@simai-studio/chat 1.0.0 → 1.1.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 (208) hide show
  1. package/README.md +7 -5
  2. package/dist/package-receipt.json +438 -436
  3. package/dist/set.json +4 -2
  4. package/dist/smart/chat-composer/aliases.json +11 -0
  5. package/dist/smart/chat-composer/aliases.json.gz +0 -0
  6. package/dist/smart/chat-composer/component.json +44 -4
  7. package/dist/smart/chat-composer/component.json.gz +0 -0
  8. package/dist/smart/chat-composer/css/chat-composer.css +8 -103
  9. package/dist/smart/chat-composer/css/chat-composer.css.gz +0 -0
  10. package/dist/smart/chat-composer/css/chat-composer.min.css +2 -2
  11. package/dist/smart/chat-composer/css/chat-composer.min.css.gz +0 -0
  12. package/dist/smart/chat-composer/examples.json +27 -8
  13. package/dist/smart/chat-composer/examples.json.gz +0 -0
  14. package/dist/smart/chat-composer/js/chat-composer.js +65 -60
  15. package/dist/smart/chat-composer/js/chat-composer.js.gz +0 -0
  16. package/dist/smart/chat-composer/js/chat-composer.min.js +17 -19
  17. package/dist/smart/chat-composer/js/chat-composer.min.js.gz +0 -0
  18. package/dist/smart/chat-composer/lang/en.json +1 -4
  19. package/dist/smart/chat-composer/lang/en.json.gz +0 -0
  20. package/dist/smart/chat-composer/lang/ru.json +1 -4
  21. package/dist/smart/chat-composer/lang/ru.json.gz +0 -0
  22. package/dist/smart/chat-composer/probe.json +21 -5
  23. package/dist/smart/chat-composer/probe.json.gz +0 -0
  24. package/dist/smart/chat-composer/smart.manifest.json +41 -15
  25. package/dist/smart/chat-composer/smart.manifest.json.gz +0 -0
  26. package/dist/smart/chat-composer/static/default/busy.html +2 -2
  27. package/dist/smart/chat-composer/static/default/busy.html.gz +0 -0
  28. package/dist/smart/chat-composer/static/default/disabled.html +1 -1
  29. package/dist/smart/chat-composer/static/default/disabled.html.gz +0 -0
  30. package/dist/smart/chat-composer/static/default/files.html +82 -27
  31. package/dist/smart/chat-composer/static/default/files.html.gz +0 -0
  32. package/dist/smart/chat-composer/static/default/near-limit.html +2 -2
  33. package/dist/smart/chat-composer/static/default/near-limit.html.gz +0 -0
  34. package/dist/smart/chat-composer/static/default/reference.html +2 -2
  35. package/dist/smart/chat-composer/static/default/reference.html.gz +0 -0
  36. package/dist/smart/chat-composer/static/sheets.json +24 -2
  37. package/dist/smart/chat-composer/static/sheets.json.gz +0 -0
  38. package/dist/smart/chat-composer/template/default.css +7 -82
  39. package/dist/smart/chat-composer/template/default.css.gz +0 -0
  40. package/dist/smart/chat-composer/template/default.js +1 -1
  41. package/dist/smart/chat-composer/template/default.js.gz +0 -0
  42. package/dist/smart/chat-composer/template/parts.js +40 -33
  43. package/dist/smart/chat-composer/template/parts.js.gz +0 -0
  44. package/dist/smart/chat-interlocutor/component.json +3 -2
  45. package/dist/smart/chat-interlocutor/component.json.gz +0 -0
  46. package/dist/smart/chat-interlocutor/css/chat-interlocutor.css +1 -36
  47. package/dist/smart/chat-interlocutor/css/chat-interlocutor.css.gz +0 -0
  48. package/dist/smart/chat-interlocutor/css/chat-interlocutor.min.css +2 -2
  49. package/dist/smart/chat-interlocutor/css/chat-interlocutor.min.css.gz +0 -0
  50. package/dist/smart/chat-interlocutor/js/chat-interlocutor.js +1 -1
  51. package/dist/smart/chat-interlocutor/js/chat-interlocutor.js.gz +0 -0
  52. package/dist/smart/chat-interlocutor/js/chat-interlocutor.min.js +1 -1
  53. package/dist/smart/chat-interlocutor/js/chat-interlocutor.min.js.gz +0 -0
  54. package/dist/smart/chat-interlocutor/smart.manifest.json +4 -4
  55. package/dist/smart/chat-interlocutor/smart.manifest.json.gz +0 -0
  56. package/dist/smart/chat-interlocutor/static/default/former.html +1 -1
  57. package/dist/smart/chat-interlocutor/static/default/former.html.gz +0 -0
  58. package/dist/smart/chat-interlocutor/static/default/grouped.html +1 -1
  59. package/dist/smart/chat-interlocutor/static/default/grouped.html.gz +0 -0
  60. package/dist/smart/chat-interlocutor/static/default/reference.html +1 -1
  61. package/dist/smart/chat-interlocutor/static/default/reference.html.gz +0 -0
  62. package/dist/smart/chat-interlocutor/static/default/single.html +1 -1
  63. package/dist/smart/chat-interlocutor/static/default/single.html.gz +0 -0
  64. package/dist/smart/chat-interlocutor/static/sheets.json +10 -5
  65. package/dist/smart/chat-interlocutor/static/sheets.json.gz +0 -0
  66. package/dist/smart/chat-interlocutor/template/default.css +1 -1
  67. package/dist/smart/chat-interlocutor/template/default.css.gz +0 -0
  68. package/dist/smart/chat-message/aliases.json +11 -0
  69. package/dist/smart/chat-message/aliases.json.gz +0 -0
  70. package/dist/smart/chat-message/component.json +30 -2
  71. package/dist/smart/chat-message/component.json.gz +0 -0
  72. package/dist/smart/chat-message/css/chat-message.css +91 -1122
  73. package/dist/smart/chat-message/css/chat-message.css.gz +0 -0
  74. package/dist/smart/chat-message/css/chat-message.min.css +2 -2
  75. package/dist/smart/chat-message/css/chat-message.min.css.gz +0 -0
  76. package/dist/smart/chat-message/examples.json +32 -10
  77. package/dist/smart/chat-message/examples.json.gz +0 -0
  78. package/dist/smart/chat-message/js/chat-message.js +511 -150
  79. package/dist/smart/chat-message/js/chat-message.js.gz +0 -0
  80. package/dist/smart/chat-message/js/chat-message.min.js +15 -25
  81. package/dist/smart/chat-message/js/chat-message.min.js.gz +0 -0
  82. package/dist/smart/chat-message/lang/en.json +1 -6
  83. package/dist/smart/chat-message/lang/en.json.gz +0 -0
  84. package/dist/smart/chat-message/lang/ru.json +1 -6
  85. package/dist/smart/chat-message/lang/ru.json.gz +0 -0
  86. package/dist/smart/chat-message/probe.json +31 -9
  87. package/dist/smart/chat-message/probe.json.gz +0 -0
  88. package/dist/smart/chat-message/smart.manifest.json +23 -13
  89. package/dist/smart/chat-message/smart.manifest.json.gz +0 -0
  90. package/dist/smart/chat-message/static/default/brief-card.html +1 -1
  91. package/dist/smart/chat-message/static/default/brief-card.html.gz +0 -0
  92. package/dist/smart/chat-message/static/default/brief-questions.html +1 -1
  93. package/dist/smart/chat-message/static/default/brief-questions.html.gz +0 -0
  94. package/dist/smart/chat-message/static/default/deliverables.html +1 -1
  95. package/dist/smart/chat-message/static/default/deliverables.html.gz +0 -0
  96. package/dist/smart/chat-message/static/default/document.html +2 -2
  97. package/dist/smart/chat-message/static/default/document.html.gz +0 -0
  98. package/dist/smart/chat-message/static/default/failed.html +1 -1
  99. package/dist/smart/chat-message/static/default/failed.html.gz +0 -0
  100. package/dist/smart/chat-message/static/default/feedback-reason.html +1 -1
  101. package/dist/smart/chat-message/static/default/feedback-reason.html.gz +0 -0
  102. package/dist/smart/chat-message/static/default/limit.html +1 -1
  103. package/dist/smart/chat-message/static/default/limit.html.gz +0 -0
  104. package/dist/smart/chat-message/static/default/proposal.html +17 -19
  105. package/dist/smart/chat-message/static/default/proposal.html.gz +0 -0
  106. package/dist/smart/chat-message/static/default/question.html +15 -11
  107. package/dist/smart/chat-message/static/default/question.html.gz +0 -0
  108. package/dist/smart/chat-message/static/default/reference.html +1 -1
  109. package/dist/smart/chat-message/static/default/reference.html.gz +0 -0
  110. package/dist/smart/chat-message/static/default/steps.html +1 -1
  111. package/dist/smart/chat-message/static/default/steps.html.gz +0 -0
  112. package/dist/smart/chat-message/static/default/stopped.html +1 -1
  113. package/dist/smart/chat-message/static/default/stopped.html.gz +0 -0
  114. package/dist/smart/chat-message/static/person/person-own.html +1 -1
  115. package/dist/smart/chat-message/static/person/person-own.html.gz +0 -0
  116. package/dist/smart/chat-message/static/person/person-reply.html +1 -5
  117. package/dist/smart/chat-message/static/person/person-reply.html.gz +0 -0
  118. package/dist/smart/chat-message/static/person/person.html +8 -10
  119. package/dist/smart/chat-message/static/person/person.html.gz +0 -0
  120. package/dist/smart/chat-message/static/sheets.json +66 -12
  121. package/dist/smart/chat-message/static/sheets.json.gz +0 -0
  122. package/dist/smart/chat-message/template/default.css +9 -99
  123. package/dist/smart/chat-message/template/default.css.gz +0 -0
  124. package/dist/smart/chat-threads/component.json +10 -2
  125. package/dist/smart/chat-threads/component.json.gz +0 -0
  126. package/dist/smart/chat-threads/css/chat-threads.css +1 -17
  127. package/dist/smart/chat-threads/css/chat-threads.css.gz +0 -0
  128. package/dist/smart/chat-threads/css/chat-threads.min.css +2 -2
  129. package/dist/smart/chat-threads/css/chat-threads.min.css.gz +0 -0
  130. package/dist/smart/chat-threads/examples.json +3 -3
  131. package/dist/smart/chat-threads/examples.json.gz +0 -0
  132. package/dist/smart/chat-threads/js/chat-threads.js +1 -1
  133. package/dist/smart/chat-threads/js/chat-threads.js.gz +0 -0
  134. package/dist/smart/chat-threads/js/chat-threads.min.js +1 -1
  135. package/dist/smart/chat-threads/js/chat-threads.min.js.gz +0 -0
  136. package/dist/smart/chat-threads/probe.json +3 -3
  137. package/dist/smart/chat-threads/probe.json.gz +0 -0
  138. package/dist/smart/chat-threads/smart.manifest.json +11 -4
  139. package/dist/smart/chat-threads/smart.manifest.json.gz +0 -0
  140. package/dist/smart/chat-threads/static/default/activity.html +27 -21
  141. package/dist/smart/chat-threads/static/default/activity.html.gz +0 -0
  142. package/dist/smart/chat-threads/static/default/activity.skeleton.html +27 -21
  143. package/dist/smart/chat-threads/static/default/activity.skeleton.html.gz +0 -0
  144. package/dist/smart/chat-threads/static/default/archive.html +9 -6
  145. package/dist/smart/chat-threads/static/default/archive.html.gz +0 -0
  146. package/dist/smart/chat-threads/static/default/archive.skeleton.html +9 -6
  147. package/dist/smart/chat-threads/static/default/archive.skeleton.html.gz +0 -0
  148. package/dist/smart/chat-threads/static/default/avatars.html +25 -13
  149. package/dist/smart/chat-threads/static/default/avatars.html.gz +0 -0
  150. package/dist/smart/chat-threads/static/default/avatars.skeleton.html +25 -13
  151. package/dist/smart/chat-threads/static/default/avatars.skeleton.html.gz +0 -0
  152. package/dist/smart/chat-threads/static/default/empty.html +11 -9
  153. package/dist/smart/chat-threads/static/default/empty.html.gz +0 -0
  154. package/dist/smart/chat-threads/static/default/loading.html +11 -9
  155. package/dist/smart/chat-threads/static/default/loading.html.gz +0 -0
  156. package/dist/smart/chat-threads/static/default/people.html +20 -11
  157. package/dist/smart/chat-threads/static/default/people.html.gz +0 -0
  158. package/dist/smart/chat-threads/static/default/people.skeleton.html +20 -11
  159. package/dist/smart/chat-threads/static/default/people.skeleton.html.gz +0 -0
  160. package/dist/smart/chat-threads/static/default/reference.html +22 -13
  161. package/dist/smart/chat-threads/static/default/reference.html.gz +0 -0
  162. package/dist/smart/chat-threads/static/default/reference.skeleton.html +22 -13
  163. package/dist/smart/chat-threads/static/default/reference.skeleton.html.gz +0 -0
  164. package/dist/smart/chat-threads/static/default/ungrouped.html +18 -13
  165. package/dist/smart/chat-threads/static/default/ungrouped.html.gz +0 -0
  166. package/dist/smart/chat-threads/static/default/ungrouped.skeleton.html +18 -13
  167. package/dist/smart/chat-threads/static/default/ungrouped.skeleton.html.gz +0 -0
  168. package/dist/smart/chat-threads/static/sheets.json +81 -0
  169. package/dist/smart/chat-threads/static/sheets.json.gz +0 -0
  170. package/dist/smart/chat-threads/template/default.css +1 -1
  171. package/dist/smart/chat-threads/template/default.css.gz +0 -0
  172. package/dist/smart/chat-window/component.json +12 -2
  173. package/dist/smart/chat-window/component.json.gz +0 -0
  174. package/dist/smart/chat-window/css/chat-window.css +1 -209
  175. package/dist/smart/chat-window/css/chat-window.css.gz +0 -0
  176. package/dist/smart/chat-window/css/chat-window.min.css +2 -2
  177. package/dist/smart/chat-window/css/chat-window.min.css.gz +0 -0
  178. package/dist/smart/chat-window/examples.json +3 -3
  179. package/dist/smart/chat-window/examples.json.gz +0 -0
  180. package/dist/smart/chat-window/js/chat-window.js +520 -122
  181. package/dist/smart/chat-window/js/chat-window.js.gz +0 -0
  182. package/dist/smart/chat-window/js/chat-window.min.js +1 -1
  183. package/dist/smart/chat-window/js/chat-window.min.js.gz +0 -0
  184. package/dist/smart/chat-window/probe.json +3 -3
  185. package/dist/smart/chat-window/probe.json.gz +0 -0
  186. package/dist/smart/chat-window/smart.manifest.json +15 -6
  187. package/dist/smart/chat-window/smart.manifest.json.gz +0 -0
  188. package/dist/smart/chat-window/static/default/archived.html +15 -12
  189. package/dist/smart/chat-window/static/default/archived.html.gz +0 -0
  190. package/dist/smart/chat-window/static/default/embedded.html +19 -13
  191. package/dist/smart/chat-window/static/default/embedded.html.gz +0 -0
  192. package/dist/smart/chat-window/static/default/greeting.html +19 -13
  193. package/dist/smart/chat-window/static/default/greeting.html.gz +0 -0
  194. package/dist/smart/chat-window/static/default/people.html +21 -27
  195. package/dist/smart/chat-window/static/default/people.html.gz +0 -0
  196. package/dist/smart/chat-window/static/default/proposal.html +36 -32
  197. package/dist/smart/chat-window/static/default/proposal.html.gz +0 -0
  198. package/dist/smart/chat-window/static/default/reference.html +20 -14
  199. package/dist/smart/chat-window/static/default/reference.html.gz +0 -0
  200. package/dist/smart/chat-window/static/default/waiting.html +19 -13
  201. package/dist/smart/chat-window/static/default/waiting.html.gz +0 -0
  202. package/dist/smart/chat-window/static/sheets.json +50 -0
  203. package/dist/smart/chat-window/static/sheets.json.gz +0 -0
  204. package/dist/smart/chat-window/template/default.css +1 -1
  205. package/dist/smart/chat-window/template/default.css.gz +0 -0
  206. package/dist/smart/rule.js +8 -0
  207. package/dist/smart/rule.js.gz +0 -0
  208. package/package.json +1 -1
@@ -12,9 +12,6 @@
12
12
  "action-up": "Helpful",
13
13
  "assistant": "Assistant",
14
14
  "attachment-deleted": "File unavailable",
15
- "attachment-file": "File {name}, {size}",
16
- "attachment-remove": "Remove the file {name}",
17
- "attachment-uploading": "Uploading, {percent}%",
18
15
  "brief-answered": "your answer",
19
16
  "brief-assumptions": "Assumptions",
20
17
  "brief-card": "How I understood the task",
@@ -43,7 +40,6 @@
43
40
  "feedback-send": "Send",
44
41
  "feedback-skip": "Not now",
45
42
  "files-download": "Download",
46
- "files-download-label": "Download {name}",
47
43
  "files-preview": "Preview",
48
44
  "files-ready": "Ready",
49
45
  "fold-less": "Collapse",
@@ -62,7 +58,6 @@
62
58
  "people-delete-ask": "Delete the message?",
63
59
  "people-deleted": "Message deleted",
64
60
  "people-deleting": "Deleting…",
65
- "people-download": "Download {name}",
66
61
  "people-edit": "Edit",
67
62
  "people-edit-count": "{count} of {max}",
68
63
  "people-edit-label": "Message text",
@@ -72,7 +67,6 @@
72
67
  "people-failed": "Not sent",
73
68
  "people-failed-delete": "Not deleted",
74
69
  "people-failed-edit": "Not saved",
75
- "people-file-failed": "The file did not upload",
76
70
  "people-keep-theirs": "Keep theirs",
77
71
  "people-replace-mine": "Replace with mine",
78
72
  "people-save": "Save",
@@ -155,6 +149,7 @@
155
149
  "block-cancelled": "Cancelled",
156
150
  "block-stale": "The record changed elsewhere",
157
151
  "block-closed": "This card no longer takes input",
152
+ "block-sent": "Sent",
158
153
  "block-conflict": "The record changed: check the values and save again",
159
154
  "block-failed": "Could not save. Try again",
160
155
  "block-busy": "Already saving",
@@ -12,9 +12,6 @@
12
12
  "action-up": "Полезно",
13
13
  "assistant": "Помощник",
14
14
  "attachment-deleted": "Файл недоступен",
15
- "attachment-file": "Файл {name}, {size}",
16
- "attachment-remove": "Убрать файл {name}",
17
- "attachment-uploading": "Загружается, {percent}%",
18
15
  "brief-answered": "ваш ответ",
19
16
  "brief-assumptions": "Допущения",
20
17
  "brief-card": "Как я понял задачу",
@@ -43,7 +40,6 @@
43
40
  "feedback-send": "Отправить",
44
41
  "feedback-skip": "Не сейчас",
45
42
  "files-download": "Скачать",
46
- "files-download-label": "Скачать {name}",
47
43
  "files-preview": "Просмотр",
48
44
  "files-ready": "Что готово",
49
45
  "fold-less": "Свернуть",
@@ -62,7 +58,6 @@
62
58
  "people-delete-ask": "Удалить сообщение?",
63
59
  "people-deleted": "Сообщение удалено",
64
60
  "people-deleting": "Удаляется…",
65
- "people-download": "Скачать {name}",
66
61
  "people-edit": "Изменить",
67
62
  "people-edit-count": "{count} из {max}",
68
63
  "people-edit-label": "Текст сообщения",
@@ -72,7 +67,6 @@
72
67
  "people-failed": "Не отправлено",
73
68
  "people-failed-delete": "Не удалено",
74
69
  "people-failed-edit": "Не сохранено",
75
- "people-file-failed": "Файл не загрузился",
76
70
  "people-keep-theirs": "Оставить их",
77
71
  "people-replace-mine": "Заменить своим",
78
72
  "people-save": "Сохранить",
@@ -157,6 +151,7 @@
157
151
  "block-cancelled": "Отменено",
158
152
  "block-stale": "Запись изменилась в другом месте",
159
153
  "block-closed": "Карточка больше не принимает ввод",
154
+ "block-sent": "Отправлено",
160
155
  "block-conflict": "Запись изменилась: проверьте значения и сохраните ещё раз",
161
156
  "block-failed": "Не удалось сохранить. Попробуйте ещё раз",
162
157
  "block-busy": "Сохранение уже идёт",
@@ -413,18 +413,18 @@
413
413
  },
414
414
  {
415
415
  "id": "p7-question-files",
416
- "title": "a person's question: a bubble and its files as sf-chat-composer's chips; a sent file with href is a download link, checked first — a file gone (404) loses its link and says «Файл недоступен»; a question sent by a button is a note",
417
- "covers": "message.attachments, runtime.attachment-deleted, runtime.files-download-label, display.note",
416
+ "title": "a person's question: a bubble and its files as the Framework's sf-file-preview chips (K-08; the dated class sf-chat-attachment on the host until 2027-01-01); a sent file with href is the chip's name link, its download request checked first — a file gone (404) loses its link and says «Файл недоступен» in place of its size, once, politely; a question sent by a button is a note",
417
+ "covers": "message.attachments, runtime.attachment-deleted, display.note",
418
418
  "steps": [
419
419
  {
420
- "script": "(await customElements.whenDefined('sf-chat-message'), document.querySelector('#a').display = {}, document.querySelector('#a').message = {id: 'q1', role: 'user', text: 'Проверьте договор', attachments: [{id: 'att_1', name: 'Удалённый.pdf', bytes: 48213, href: '/sf-chat-message-probe/missing.pdf'}, {id: 'att_2', name: 'Приложение.docx', bytes: 1572864}]}, true)",
421
- "wait": 300,
422
- "check": "(() => { const a = document.querySelector('#a'); const link = a.querySelector('.sf-chat-attachment__link'); return a.querySelector('article').getAttribute('aria-label') === 'Вы' && a.querySelector('.sf-chat-message__bubble').textContent === 'Проверьте договор' && link.getAttribute('download') === 'Удалённый.pdf' && link.title === 'Скачать Удалённый.pdf' && a.querySelectorAll('.sf-chat-attachment').length === 2 && a.querySelectorAll('.sf-chat-attachment__meta')[1].textContent === '1,5 МБ'; })()"
420
+ "script": "(await customElements.whenDefined('sf-chat-message'), document.querySelector('#a').display = {}, document.querySelector('#a').message = {id: 'q1', role: 'user', text: 'Проверьте договор', attachments: [{id: 'att_1', name: 'Удалённый.docx', bytes: 48213, href: '/sf-chat-message-probe/missing.docx'}, {id: 'att_2', name: 'Приложение.docx', bytes: 1572864}]}, true)",
421
+ "wait": 1500,
422
+ "check": "(() => { const a = document.querySelector('#a'); const chips = [...a.querySelectorAll('.sf-chat-message__files > sf-file-preview')]; const link = chips[0]?.querySelector('a.sf-file-preview-name'); return a.querySelector('article').getAttribute('aria-label') === 'Вы' && a.querySelector('.sf-chat-message__bubble').textContent === 'Проверьте договор' && chips.length === 2 && chips.every((chip) => chip.getAttribute('appearance') === 'chip' && chip.classList.contains('sf-chat-attachment') && chip.getAttribute('remove-action') === 'false') && chips[0].getAttribute('file-name') === 'Удалённый.docx' && link?.getAttribute('href') === '/sf-chat-message-probe/missing.docx' && link.getAttribute('download') === 'Удалённый.docx' && !chips[1].hasAttribute('href') && !chips[1].querySelector('a') && chips[1].getAttribute('file-size') === '1572864' && /МБ/u.test(chips[1].querySelector('.sf-file-preview-meta')?.textContent ?? '') && !a.querySelector('.sf-chat-attachment__name, .sf-chat-attachment__meta'); })()"
423
423
  },
424
424
  {
425
- "user": "click:#a .sf-chat-attachment__link",
426
- "wait": 600,
427
- "check": "(() => { const a = document.querySelector('#a'); const meta = a.querySelector('.sf-chat-attachment__meta'); return !a.querySelector('.sf-chat-attachment__link') && meta.textContent === 'Файл недоступен' && meta.getAttribute('role') === 'status'; })()"
425
+ "user": "click:#a .sf-chat-message__files a.sf-file-preview-name",
426
+ "wait": 900,
427
+ "check": "(() => { const a = document.querySelector('#a'); const chip = a.querySelector('.sf-chat-message__files > sf-file-preview'); const said = a.querySelector('.sf-chat-message__files [role=status]'); return !chip.hasAttribute('href') && !chip.querySelector('a') && chip.getAttribute('file-size') === 'Файл недоступен' && /Файл недоступен/u.test(chip.querySelector('.sf-file-preview-meta')?.textContent ?? '') && said?.textContent === 'Файл недоступен'; })()"
428
428
  },
429
429
  {
430
430
  "script": "(document.querySelector('#a').display = {note: 'confirm', code: 'P-17'}, document.querySelector('#a').message = {id: 'q2', role: 'user', text: 'подтверждаю P-17'}, true)",
@@ -554,7 +554,7 @@
554
554
  {
555
555
  "script": "(document.querySelector('#s').message = {\"id\":\"s4\",\"role\":\"assistant\",\"status\":\"completed\",\"text\":\"Отпуск — 28 дней.\",\"html\":\"<h3>Итог</h3><p><strong>28</strong> дней, <em>см.</em> <a href=\\\"https://example.gov.ru/tk/125\\\">ТК</a> и <a href=\\\"/app/help\\\">справку</a></p><pre><code class=\\\"language-js\\\">a &lt; b</code></pre><blockquote>цитата</blockquote><ul><li>раз</li></ul><table><thead><tr><th colspan=\\\"2\\\" scope=\\\"col\\\">A</th></tr></thead></table>\"}, true)",
556
556
  "wait": 300,
557
- "check": "(() => { const m = document.querySelector('#s .sf-chat-markup'); const html = m.innerHTML; const code = m.querySelector('code.language-js'); return html.startsWith('<h3>Итог</h3><p><strong>28</strong> дней, <em>см.</em> <a href=\"https://example.gov.ru/tk/125\" rel=\"noopener noreferrer nofollow\" target=\"_blank\">ТК</a> и <a href=\"/app/help\" rel=\"noopener noreferrer nofollow\" target=\"_blank\">справку</a></p>') && html.includes('<blockquote>цитата</blockquote><ul><li>раз</li></ul>') && code && code.textContent === 'a < b' && m.querySelector('th[colspan=\"2\"][scope=col]').textContent === 'A'; })()"
557
+ "check": "(() => { const m = document.querySelector('#s .sf-chat-markup'); const links = [...m.querySelectorAll('a')]; const [tk, help] = links; const code = m.querySelector('code'); return m.querySelector('h3')?.textContent === 'Итог' && m.querySelector('p strong')?.textContent === '28' && m.querySelector('p em')?.textContent === 'см.' && links.length === 2 && tk.getAttribute('href') === 'https://example.gov.ru/tk/125' && help.getAttribute('href') === '/app/help' && links.every((a) => a.getAttribute('rel') === 'noopener noreferrer nofollow' && a.getAttribute('target') === '_blank') && tk.textContent.startsWith('ТК') && help.textContent.startsWith('справку') && m.innerHTML.includes('<blockquote>цитата</blockquote><ul><li>раз</li></ul>') && Boolean(code) && code.textContent === 'a < b' && m.querySelector('th[colspan=\"2\"][scope=col]').textContent === 'A'; })()"
558
558
  }
559
559
  ]
560
560
  },
@@ -1024,6 +1024,28 @@
1024
1024
  "check": "q.querySelector('sf-menu-context')?.entries?.map((one) => one.id).join() === 'edit,delete'"
1025
1025
  }
1026
1026
  ]
1027
+ },
1028
+ {
1029
+ "id": "p-block-ask-sent",
1030
+ "title": "1.8.0: a card block whose record.source is ask (the assistant's form, Mirai24 API v1.6, BLOCKS.md §6) says «Отправлено» when applied (block-sent); any other source keeps «Сохранено» (block-applied)",
1031
+ "covers": "runtime.block-sent, runtime.block-applied, features.blocks",
1032
+ "steps": [
1033
+ {
1034
+ "script": "(await customElements.whenDefined('sf-chat-message'), document.querySelector('#a').display = {}, document.querySelector('#a').features = {blocks: true}, document.querySelector('#a').message = {id: 'ask1', role: 'assistant', status: 'completed', html: '<p>Принято.</p>', text: 'Принято.', blocks: [{id: 'blk_ask', kind: 'card', mode: 'view', state: 'applied', title: 'Уточнение', record: {source: 'ask', record_id: 'r1', revision: 'v1', sections: [{key: 'main', label: 'Ответ', groups: [{key: 'g', label: null, fields: [{key: 'city', label: 'Город', propertyType: 'string', value: 'Казань'}]}]}]}}]}, true)",
1035
+ "wait": 400,
1036
+ "check": "(() => { const line = document.querySelector('#a .sf-chat-block__state'); return Boolean(line) && line.textContent === 'Отправлено' && line.getAttribute('role') === 'status'; })()"
1037
+ },
1038
+ {
1039
+ "script": "(document.querySelector('#a').message = {id: 'ask2', role: 'assistant', status: 'completed', html: '<p>Сохранил.</p>', text: 'Сохранил.', blocks: [{id: 'blk_card', kind: 'card', mode: 'view', state: 'applied', title: 'ООО «Пример»', record: {source: 'companies', record_id: 'r1', revision: 'v1', sections: [{key: 'main', label: 'Ответ', groups: [{key: 'g', label: null, fields: [{key: 'city', label: 'Город', propertyType: 'string', value: 'Казань'}]}]}]}}]}, true)",
1040
+ "wait": 400,
1041
+ "check": "document.querySelector('#a .sf-chat-block__state')?.textContent === 'Сохранено'"
1042
+ },
1043
+ {
1044
+ "script": "(document.querySelector('#a').features = {}, document.querySelector('#a').message = {id: 'ask3', role: 'assistant', status: 'completed', html: '<p>Ок.</p>', text: 'Ок.'}, true)",
1045
+ "wait": 300,
1046
+ "check": "!document.querySelector('#a .sf-chat-block')"
1047
+ }
1048
+ ]
1027
1049
  }
1028
1050
  ]
1029
1051
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "schema_version": 2,
3
3
  "id": "smart.chat-message",
4
- "version": "1.7.7",
4
+ "version": "1.8.0",
5
5
  "title": "Chat message",
6
6
  "summary": "One chat message: an assistant's answer with its markup, sources, verification, notices, proposal, rating and task brief, or its wait; a person's question with its files; or, in the template person, a message of a conversation between people. It reports what a person does; the host decides what it means.",
7
7
  "kind": "smart",
@@ -31,6 +31,7 @@
31
31
  "smart.avatar",
32
32
  "smart.badge",
33
33
  "smart.confirm-change",
34
+ "smart.file-preview",
34
35
  "smart.icon",
35
36
  "smart.menu-context",
36
37
  "smart.view-properties"
@@ -591,8 +592,8 @@
591
592
  "version": 2
592
593
  },
593
594
  "runtime_pair": {
594
- "ui_revision": "0edd49be08f802b60ed92f176b68911a42a12f3f",
595
- "ui_smart_revision": "0edd49be08f802b60ed92f176b68911a42a12f3f"
595
+ "ui_revision": "0000000000000000000000000000000000000000",
596
+ "ui_smart_revision": "0000000000000000000000000000000000000000"
596
597
  },
597
598
  "aliases": [],
598
599
  "deprecations": [],
@@ -726,6 +727,15 @@
726
727
  "changes": [
727
728
  "Inline code in a table cell of an answer keeps SIMAI Framework's plate (the cell rule that took it away is gone), and inline code in the markup wraps inside a narrow bubble rather than staying on one line as the Framework's running text keeps it (tokens.typography 1.3.0, the pair ui-5edc71bd6936). Settings, values and events are unchanged."
728
729
  ]
730
+ },
731
+ {
732
+ "from": "1.7.7",
733
+ "to": "1.8.0",
734
+ "changes": [
735
+ "K-08 (pair ui-73df5d1b4d4c): a question's and a person's files are SIMAI Framework's sf-file-preview (appearance chip). The markup sf-chat-attachment__* (name, meta, link) is gone: a page that read it reads the chip's file-name, href and file-size; «Файл недоступен» is now the chip's file-size and a polite status line. The class sf-chat-attachment and sf-chat-attachment--<state> stay on the chip until 2027-01-01.",
736
+ "A card block with record.source ask, applied, says «Отправлено» (block-sent) instead of «Сохранено». Other cards are unchanged.",
737
+ "Needs a SIMAI Framework pair with sf-file-preview 1.4 or later (core.runtime >= 1.58.0)."
738
+ ]
729
739
  }
730
740
  ]
731
741
  },
@@ -735,7 +745,7 @@
735
745
  "source_artifacts": [
736
746
  {
737
747
  "path": "src/smart/chat-message/index.js",
738
- "sha256": "8c334d59b84ebef40cfce21c824b7e26083b771904dd3d3c1981bef9969b141a"
748
+ "sha256": "bf5c56c99782d9ccf05f254801f9da96b279b805a42874a0b9733137b62b4667"
739
749
  },
740
750
  {
741
751
  "path": "src/smart/chat-message/js/templates/default.js",
@@ -747,11 +757,11 @@
747
757
  },
748
758
  {
749
759
  "path": "src/smart/chat-message/js/view/message.js",
750
- "sha256": "d74814ba590d7a9c6500df5977710ffd810efc5e84d28c4cdeb4a2338aa3635f"
760
+ "sha256": "444cf08593493d6506e9f4286c0188fe0118ff6c1187a298cf0f83eef08b77aa"
751
761
  },
752
762
  {
753
763
  "path": "src/smart/chat-message/js/view/person.js",
754
- "sha256": "f727ff4223b435b162da27a66b959748c44146dfad22fdeb193515a2bafc81be"
764
+ "sha256": "9883ed5a11d318dd354fa48020e287215d53a6c381558c19a08ffc4f7b28fd0e"
755
765
  },
756
766
  {
757
767
  "path": "src/smart/chat-message/js/view/proposed.js",
@@ -763,31 +773,31 @@
763
773
  },
764
774
  {
765
775
  "path": "src/smart/chat-message/js/templates/default.css",
766
- "sha256": "a77925c431dd87397f16f69b4494e2514bbd724d53474cb803df91504b09ae1c"
776
+ "sha256": "6ccc7c5d0190ab921de77d624149ee993782f89a97a5f4c3b6278df94de19ef4"
767
777
  },
768
778
  {
769
779
  "path": "src/smart/chat-message/rule.js",
770
- "sha256": "90893f5212999745164827779d00d5d5a5e451f95c0d49a59557c3f629807337"
780
+ "sha256": "86cadc63eb98e4beff88db5f7ca682d81eb1a0d5cc4dd70b523578985d7d3222"
771
781
  },
772
782
  {
773
783
  "path": "src/smart/chat-message/docs.md",
774
- "sha256": "df566fdc9b790b12f1717d0392d4ca0d8fc39d6cf4e733d125f95365472c36e5"
784
+ "sha256": "5c551e9c25faf50fc7db9051e64be78462dccdcd8ef6b968ab1bcfdf4180ac88"
775
785
  },
776
786
  {
777
787
  "path": "src/smart/chat-message/component.json",
778
- "sha256": "d836388fb93dc0b44cec81cf52176b3b794823a1760f126ca5511ea855f92aed"
788
+ "sha256": "77f7f063e5e571ceb56c3ef7a92e8222c9dab4d611032f9aa605c3e0efebe80c"
779
789
  },
780
790
  {
781
791
  "path": "src/smart/chat-message/aliases.json",
782
- "sha256": "da94ebcf9f8623abc57956b57056c8b0c9b2e2526e0a122a93b4fe5569dd9a0e"
792
+ "sha256": "49b041059484eb2d64fc4abf6a5f7f7fab1e0a208d18e8ffa749443b7f07c198"
783
793
  },
784
794
  {
785
795
  "path": "src/smart/chat-message/lang/en.json",
786
- "sha256": "86f43c7eda76879b415fe8eb7f523e22eff099509cd0630b39152b447ab74d20"
796
+ "sha256": "f1fa70c2262789b9a11e13b4b4a745c90d545f1ba76e7fb0ceaece1f6692cd11"
787
797
  },
788
798
  {
789
799
  "path": "src/smart/chat-message/lang/ru.json",
790
- "sha256": "df50f78675a67343cb9a9ee072664bc85b13b73a89a78f48533c30237f2ae2be"
800
+ "sha256": "765ccb8f791acfdbc47eac9c9dbc327c3e278c2c4b5af86cdec9aeb78f900587"
791
801
  }
792
802
  ],
793
803
  "generated_runtime": []
@@ -1,2 +1,2 @@
1
1
  <!-- sf-chat-message, example «brief-card»: the static markup (standard simai.smart-component 1.3.8 §5.4). Generated by scripts/snapshot-first-paint.mjs from the built output; do not edit, run it again. -->
2
- <sf-chat-message style="display: contents;"><script type="application/json" data-sf-settings>{"features":{"feedback":true,"proposals":true,"memory":true,"brief":true},"message":{"id":"msg_10","role":"assistant","status":"completed","text":"Проверьте, правильно ли я понял.","brief":{"decision":"card","card":{"goal":"Перенести отпуск на две недели","result":"Заявление на перенос","steps":["Найти график","Подготовить заявление"],"assumptions":["Руководитель согласен"],"confirm":"Да"}}},"display":{"brief":{"live":true}}}</script><div class="sf-chat-message-host" data-sf-static><article class="sf-chat-message sf-chat-message--assistant sf-chat-message--completed" data-id="msg_10" aria-label="Помощник"><div class="sf-chat-message__body"><p class="sf-chat-message__plain">Проверьте, правильно ли я понял.</p><fieldset class="sf-chat-brief sf-chat-brief--card" data-live><legend class="sf-chat-brief__text" id="m-msg_10-brief-card">Как я понял задачу</legend><dl class="sf-chat-brief__parts"><dt class="sf-chat-brief__term">Цель</dt><dd class="sf-chat-brief__detail">Перенести отпуск на две недели</dd><dt class="sf-chat-brief__term">Результат</dt><dd class="sf-chat-brief__detail">Заявление на перенос</dd><dt class="sf-chat-brief__term">Шаги</dt><dd class="sf-chat-brief__detail"><ol class="sf-chat-brief__list"><li>Найти график</li><li>Подготовить заявление</li></ol></dd><dt class="sf-chat-brief__term">Допущения</dt><dd class="sf-chat-brief__detail"><ul class="sf-chat-brief__list"><li>Руководитель согласен</li></ul></dd></dl><div class="sf-chat-brief__actions"><button class="sf-button sf-button--size-1/2 sf-button--default sf-button--primary flex items-cross-center content-main-center sf-chat-brief__send" type="button" aria-describedby="m-msg_10-brief-fix"><span class="sf-button-text-container">Да</span></button><span class="sf-chat-brief__hint" id="m-msg_10-brief-fix">Чтобы поправить, напишите сообщением</span></div></fieldset><div class="sf-chat-message__actions"><button class="sf-icon-button sf-icon-button--size-1/2 sf-icon-button--icon sf-icon-button--link sf-icon-button--on-surface flex items-cross-center content-main-center sf-chat-message__tool" type="button" aria-label="Копировать ответ" title="Копировать ответ"><sf-icon icon="content_copy" size="1" aria-hidden="true" style="display: contents;" data-sf-size-relative><i class="sf-icon sf-icon--size-1 sf-icon--weight-regular" style="--sf-icon--grade:0;--sf-icon--optical-size:24" aria-hidden="true" data-sf-static>content_copy</i></sf-icon></button><button class="sf-icon-button sf-icon-button--size-1/2 sf-icon-button--icon sf-icon-button--link sf-icon-button--on-surface flex items-cross-center content-main-center sf-chat-message__tool" type="button" aria-label="Полезно" title="Полезно" aria-pressed="false" data-rating="up"><sf-icon icon="thumb_up" size="1" aria-hidden="true" style="display: contents;" data-sf-size-relative><i class="sf-icon sf-icon--size-1 sf-icon--weight-regular" style="--sf-icon--grade:0;--sf-icon--optical-size:24" aria-hidden="true" data-sf-static>thumb_up</i></sf-icon></button><button class="sf-icon-button sf-icon-button--size-1/2 sf-icon-button--icon sf-icon-button--link sf-icon-button--on-surface flex items-cross-center content-main-center sf-chat-message__tool" type="button" aria-label="Не полезно" title="Не полезно" aria-pressed="false" data-rating="down"><sf-icon icon="thumb_down" size="1" aria-hidden="true" style="display: contents;" data-sf-size-relative><i class="sf-icon sf-icon--size-1 sf-icon--weight-regular" style="--sf-icon--grade:0;--sf-icon--optical-size:24" aria-hidden="true" data-sf-static>thumb_down</i></sf-icon></button><span class="sf-chat-offscreen" role="status" aria-live="polite"></span></div></div></article></div></sf-chat-message>
2
+ <sf-chat-message style="display: contents;"><script type="application/json" data-sf-settings>{"features":{"feedback":true,"proposals":true,"memory":true,"brief":true},"message":{"id":"msg_10","role":"assistant","status":"completed","text":"Проверьте, правильно ли я понял.","brief":{"decision":"card","card":{"goal":"Перенести отпуск на две недели","result":"Заявление на перенос","steps":["Найти график","Подготовить заявление"],"assumptions":["Руководитель согласен"],"confirm":"Да"}}},"display":{"brief":{"live":true}}}</script><div class="sf-chat-message-host" data-sf-static><article class="sf-chat-message sf-chat-message--assistant sf-chat-message--completed" data-id="msg_10" aria-label="Помощник"><div class="sf-chat-message__body"><p class="sf-chat-message__plain">Проверьте, правильно ли я понял.</p><fieldset class="sf-chat-brief sf-chat-brief--card" data-live><legend class="sf-chat-brief__text" id="m-msg_10-brief-card">Как я понял задачу</legend><dl class="sf-chat-brief__parts"><dt class="sf-chat-brief__term">Цель</dt><dd class="sf-chat-brief__detail">Перенести отпуск на две недели</dd><dt class="sf-chat-brief__term">Результат</dt><dd class="sf-chat-brief__detail">Заявление на перенос</dd><dt class="sf-chat-brief__term">Шаги</dt><dd class="sf-chat-brief__detail"><ol class="sf-chat-brief__list"><li>Найти график</li><li>Подготовить заявление</li></ol></dd><dt class="sf-chat-brief__term">Допущения</dt><dd class="sf-chat-brief__detail"><ul class="sf-chat-brief__list"><li>Руководитель согласен</li></ul></dd></dl><div class="sf-chat-brief__actions"><button class="sf-button sf-button--size-1/2 sf-button--default sf-button--primary flex items-cross-center content-main-center sf-chat-brief__send" type="button" aria-describedby="m-msg_10-brief-fix"><span class="sf-button-text-container">Да</span></button><span class="sf-chat-brief__hint" id="m-msg_10-brief-fix">Чтобы поправить, напишите сообщением</span></div></fieldset><div class="sf-chat-message__actions"><button class="sf-icon-button sf-icon-button--size-1/2 sf-icon-button--icon sf-icon-button--link sf-icon-button--on-surface flex items-cross-center content-main-center sf-chat-message__tool" type="button" aria-label="Копировать ответ" title="Копировать ответ"><sf-icon icon="content_copy" size="1" aria-hidden="true" style="display: contents;" data-sf-size-relative><i class="sf-icon sf-icon--size-1" aria-hidden="true" data-sf-static>content_copy</i></sf-icon></button><button class="sf-icon-button sf-icon-button--size-1/2 sf-icon-button--icon sf-icon-button--link sf-icon-button--on-surface flex items-cross-center content-main-center sf-chat-message__tool" type="button" aria-label="Полезно" title="Полезно" aria-pressed="false" data-rating="up"><sf-icon icon="thumb_up" size="1" aria-hidden="true" style="display: contents;" data-sf-size-relative><i class="sf-icon sf-icon--size-1" aria-hidden="true" data-sf-static>thumb_up</i></sf-icon></button><button class="sf-icon-button sf-icon-button--size-1/2 sf-icon-button--icon sf-icon-button--link sf-icon-button--on-surface flex items-cross-center content-main-center sf-chat-message__tool" type="button" aria-label="Не полезно" title="Не полезно" aria-pressed="false" data-rating="down"><sf-icon icon="thumb_down" size="1" aria-hidden="true" style="display: contents;" data-sf-size-relative><i class="sf-icon sf-icon--size-1" aria-hidden="true" data-sf-static>thumb_down</i></sf-icon></button><span class="sf-chat-offscreen" role="status" aria-live="polite"></span></div></div></article></div></sf-chat-message>
@@ -1,2 +1,2 @@
1
1
  <!-- sf-chat-message, example «brief-questions»: the static markup (standard simai.smart-component 1.3.8 §5.4). Generated by scripts/snapshot-first-paint.mjs from the built output; do not edit, run it again. -->
2
- <sf-chat-message style="display: contents;"><script type="application/json" data-sf-settings>{"features":{"feedback":true,"proposals":true,"memory":true,"brief":true},"message":{"id":"msg_09","role":"assistant","status":"completed","text":"Нужно уточнить.","brief":{"decision":"ask","lead":"Чтобы подготовить заявление, уточню два момента.","questions":[{"text":"С какого числа отпуск?","options":[{"label":"С 1 июля","detail":"как в графике"},{"label":"С 15 июля"}],"recommended":0},{"text":"Нужны ли отпускные заранее?","options":[{"label":"Да"},{"label":"Нет"}],"blocking":false}]}},"display":{"brief":{"live":true}}}</script><div class="sf-chat-message-host" data-sf-static><article class="sf-chat-message sf-chat-message--assistant sf-chat-message--completed" data-id="msg_09" aria-label="Помощник"><div class="sf-chat-message__body"><p class="sf-chat-message__plain">Чтобы подготовить заявление, уточню два момента.</p><fieldset class="sf-chat-brief sf-chat-brief--ask" data-live aria-label="Уточняющие вопросы"><fieldset class="sf-chat-brief__question"><legend class="sf-chat-brief__text" id="m-msg_09-brief-0-text"><span>1. С какого числа отпуск?</span></legend><div class="sf-chat-brief__options"><div class="sf-chat-brief__option"><button class="sf-button sf-button--size-1/2 sf-button--primary flex items-cross-center content-main-center sf-chat-brief__choice sf-button--tonal" type="button" data-option="0" aria-describedby="m-msg_09-brief-0-0-detail m-msg_09-brief-0-0-mark" aria-pressed="false"><span class="sf-button-text-container">С 1 июля</span></button><span class="sf-chat-brief__meta"><span id="m-msg_09-brief-0-0-detail">как в графике</span><span class="sf-chat-brief__mark" id="m-msg_09-brief-0-0-mark">рекомендую</span></span></div><div class="sf-chat-brief__option"><button class="sf-button sf-button--size-1/2 sf-button--outline sf-button--primary flex items-cross-center content-main-center sf-chat-brief__choice" type="button" data-option="1" aria-pressed="false"><span class="sf-button-text-container">С 15 июля</span></button></div><div class="sf-chat-brief__option"><button class="sf-button sf-button--size-1/2 sf-button--ghost sf-button--primary flex items-cross-center content-main-center sf-chat-brief__toggle" type="button" aria-expanded="false" aria-controls="m-msg_09-brief-0-other"><span class="sf-button-text-container">Свой вариант</span></button></div></div><div class="sf-chat-brief__other" id="m-msg_09-brief-0-other" hidden></div></fieldset><fieldset class="sf-chat-brief__question"><legend class="sf-chat-brief__text" id="m-msg_09-brief-1-text"><span>2. Нужны ли отпускные заранее?</span><span class="sf-chat-brief__optional">необязательно</span></legend><div class="sf-chat-brief__options"><div class="sf-chat-brief__option"><button class="sf-button sf-button--size-1/2 sf-button--outline sf-button--primary flex items-cross-center content-main-center sf-chat-brief__choice" type="button" data-option="0" aria-pressed="false"><span class="sf-button-text-container">Да</span></button></div><div class="sf-chat-brief__option"><button class="sf-button sf-button--size-1/2 sf-button--outline sf-button--primary flex items-cross-center content-main-center sf-chat-brief__choice" type="button" data-option="1" aria-pressed="false"><span class="sf-button-text-container">Нет</span></button></div><div class="sf-chat-brief__option"><button class="sf-button sf-button--size-1/2 sf-button--ghost sf-button--primary flex items-cross-center content-main-center sf-chat-brief__toggle" type="button" aria-expanded="false" aria-controls="m-msg_09-brief-1-other"><span class="sf-button-text-container">Свой вариант</span></button></div></div><div class="sf-chat-brief__other" id="m-msg_09-brief-1-other" hidden></div></fieldset><div class="sf-chat-brief__actions"><button class="sf-button sf-button--size-1/2 sf-button--default sf-button--primary flex items-cross-center content-main-center sf-chat-brief__send" type="button" aria-describedby="m-msg_09-brief-hint" disabled><span class="sf-button-text-container">Ответить</span></button><span class="sf-chat-brief__hint" id="m-msg_09-brief-hint">Ответьте на обязательные вопросы</span></div></fieldset><div class="sf-chat-message__actions"><button class="sf-icon-button sf-icon-button--size-1/2 sf-icon-button--icon sf-icon-button--link sf-icon-button--on-surface flex items-cross-center content-main-center sf-chat-message__tool" type="button" aria-label="Копировать ответ" title="Копировать ответ"><sf-icon icon="content_copy" size="1" aria-hidden="true" style="display: contents;" data-sf-size-relative><i class="sf-icon sf-icon--size-1 sf-icon--weight-regular" style="--sf-icon--grade:0;--sf-icon--optical-size:24" aria-hidden="true" data-sf-static>content_copy</i></sf-icon></button><button class="sf-icon-button sf-icon-button--size-1/2 sf-icon-button--icon sf-icon-button--link sf-icon-button--on-surface flex items-cross-center content-main-center sf-chat-message__tool" type="button" aria-label="Полезно" title="Полезно" aria-pressed="false" data-rating="up"><sf-icon icon="thumb_up" size="1" aria-hidden="true" style="display: contents;" data-sf-size-relative><i class="sf-icon sf-icon--size-1 sf-icon--weight-regular" style="--sf-icon--grade:0;--sf-icon--optical-size:24" aria-hidden="true" data-sf-static>thumb_up</i></sf-icon></button><button class="sf-icon-button sf-icon-button--size-1/2 sf-icon-button--icon sf-icon-button--link sf-icon-button--on-surface flex items-cross-center content-main-center sf-chat-message__tool" type="button" aria-label="Не полезно" title="Не полезно" aria-pressed="false" data-rating="down"><sf-icon icon="thumb_down" size="1" aria-hidden="true" style="display: contents;" data-sf-size-relative><i class="sf-icon sf-icon--size-1 sf-icon--weight-regular" style="--sf-icon--grade:0;--sf-icon--optical-size:24" aria-hidden="true" data-sf-static>thumb_down</i></sf-icon></button><span class="sf-chat-offscreen" role="status" aria-live="polite"></span></div></div></article></div></sf-chat-message>
2
+ <sf-chat-message style="display: contents;"><script type="application/json" data-sf-settings>{"features":{"feedback":true,"proposals":true,"memory":true,"brief":true},"message":{"id":"msg_09","role":"assistant","status":"completed","text":"Нужно уточнить.","brief":{"decision":"ask","lead":"Чтобы подготовить заявление, уточню два момента.","questions":[{"text":"С какого числа отпуск?","options":[{"label":"С 1 июля","detail":"как в графике"},{"label":"С 15 июля"}],"recommended":0},{"text":"Нужны ли отпускные заранее?","options":[{"label":"Да"},{"label":"Нет"}],"blocking":false}]}},"display":{"brief":{"live":true}}}</script><div class="sf-chat-message-host" data-sf-static><article class="sf-chat-message sf-chat-message--assistant sf-chat-message--completed" data-id="msg_09" aria-label="Помощник"><div class="sf-chat-message__body"><p class="sf-chat-message__plain">Чтобы подготовить заявление, уточню два момента.</p><fieldset class="sf-chat-brief sf-chat-brief--ask" data-live aria-label="Уточняющие вопросы"><fieldset class="sf-chat-brief__question"><legend class="sf-chat-brief__text" id="m-msg_09-brief-0-text"><span>1. С какого числа отпуск?</span></legend><div class="sf-chat-brief__options"><div class="sf-chat-brief__option"><button class="sf-button sf-button--size-1/2 sf-button--primary flex items-cross-center content-main-center sf-chat-brief__choice sf-button--tonal" type="button" data-option="0" aria-describedby="m-msg_09-brief-0-0-detail m-msg_09-brief-0-0-mark" aria-pressed="false"><span class="sf-button-text-container">С 1 июля</span></button><span class="sf-chat-brief__meta"><span id="m-msg_09-brief-0-0-detail">как в графике</span><span class="sf-chat-brief__mark" id="m-msg_09-brief-0-0-mark">рекомендую</span></span></div><div class="sf-chat-brief__option"><button class="sf-button sf-button--size-1/2 sf-button--outline sf-button--primary flex items-cross-center content-main-center sf-chat-brief__choice" type="button" data-option="1" aria-pressed="false"><span class="sf-button-text-container">С 15 июля</span></button></div><div class="sf-chat-brief__option"><button class="sf-button sf-button--size-1/2 sf-button--ghost sf-button--primary flex items-cross-center content-main-center sf-chat-brief__toggle" type="button" aria-expanded="false" aria-controls="m-msg_09-brief-0-other"><span class="sf-button-text-container">Свой вариант</span></button></div></div><div class="sf-chat-brief__other" id="m-msg_09-brief-0-other" hidden></div></fieldset><fieldset class="sf-chat-brief__question"><legend class="sf-chat-brief__text" id="m-msg_09-brief-1-text"><span>2. Нужны ли отпускные заранее?</span><span class="sf-chat-brief__optional">необязательно</span></legend><div class="sf-chat-brief__options"><div class="sf-chat-brief__option"><button class="sf-button sf-button--size-1/2 sf-button--outline sf-button--primary flex items-cross-center content-main-center sf-chat-brief__choice" type="button" data-option="0" aria-pressed="false"><span class="sf-button-text-container">Да</span></button></div><div class="sf-chat-brief__option"><button class="sf-button sf-button--size-1/2 sf-button--outline sf-button--primary flex items-cross-center content-main-center sf-chat-brief__choice" type="button" data-option="1" aria-pressed="false"><span class="sf-button-text-container">Нет</span></button></div><div class="sf-chat-brief__option"><button class="sf-button sf-button--size-1/2 sf-button--ghost sf-button--primary flex items-cross-center content-main-center sf-chat-brief__toggle" type="button" aria-expanded="false" aria-controls="m-msg_09-brief-1-other"><span class="sf-button-text-container">Свой вариант</span></button></div></div><div class="sf-chat-brief__other" id="m-msg_09-brief-1-other" hidden></div></fieldset><div class="sf-chat-brief__actions"><button class="sf-button sf-button--size-1/2 sf-button--default sf-button--primary flex items-cross-center content-main-center sf-chat-brief__send" type="button" aria-describedby="m-msg_09-brief-hint" disabled><span class="sf-button-text-container">Ответить</span></button><span class="sf-chat-brief__hint" id="m-msg_09-brief-hint">Ответьте на обязательные вопросы</span></div></fieldset><div class="sf-chat-message__actions"><button class="sf-icon-button sf-icon-button--size-1/2 sf-icon-button--icon sf-icon-button--link sf-icon-button--on-surface flex items-cross-center content-main-center sf-chat-message__tool" type="button" aria-label="Копировать ответ" title="Копировать ответ"><sf-icon icon="content_copy" size="1" aria-hidden="true" style="display: contents;" data-sf-size-relative><i class="sf-icon sf-icon--size-1" aria-hidden="true" data-sf-static>content_copy</i></sf-icon></button><button class="sf-icon-button sf-icon-button--size-1/2 sf-icon-button--icon sf-icon-button--link sf-icon-button--on-surface flex items-cross-center content-main-center sf-chat-message__tool" type="button" aria-label="Полезно" title="Полезно" aria-pressed="false" data-rating="up"><sf-icon icon="thumb_up" size="1" aria-hidden="true" style="display: contents;" data-sf-size-relative><i class="sf-icon sf-icon--size-1" aria-hidden="true" data-sf-static>thumb_up</i></sf-icon></button><button class="sf-icon-button sf-icon-button--size-1/2 sf-icon-button--icon sf-icon-button--link sf-icon-button--on-surface flex items-cross-center content-main-center sf-chat-message__tool" type="button" aria-label="Не полезно" title="Не полезно" aria-pressed="false" data-rating="down"><sf-icon icon="thumb_down" size="1" aria-hidden="true" style="display: contents;" data-sf-size-relative><i class="sf-icon sf-icon--size-1" aria-hidden="true" data-sf-static>thumb_down</i></sf-icon></button><span class="sf-chat-offscreen" role="status" aria-live="polite"></span></div></div></article></div></sf-chat-message>
@@ -1,2 +1,2 @@
1
1
  <!-- sf-chat-message, example «deliverables»: the static markup (standard simai.smart-component 1.3.8 §5.4). Generated by scripts/snapshot-first-paint.mjs from the built output; do not edit, run it again. -->
2
- <sf-chat-message style="display: contents;"><script type="application/json" data-sf-settings>{"message":{"id":"msg_21","role":"assistant","status":"completed","html":"\u003cp>Подготовил отчёт и график отпусков.\u003c/p>","text":"Подготовил отчёт и график отпусков.","attachments":[{"id":"f1","name":"Отчёт по отпускам.pdf","bytes":248213,"mime":"application/pdf","href":"/files/f1","preview_url":"/files/f1/preview"},{"id":"f2","name":"График.xlsx","bytes":18432,"mime":"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","href":"/files/f2"}]}}</script><div class="sf-chat-message-host" data-sf-static><article class="sf-chat-message sf-chat-message--assistant sf-chat-message--completed" data-id="msg_21" aria-label="Помощник"><div class="sf-chat-message__body"><div class="sf-chat-markup"><p>Подготовил отчёт и график отпусков.</p></div><section class="sf-chat-deliverables" aria-labelledby="m-msg_21-files-title"><p class="sf-chat-deliverables__title" id="m-msg_21-files-title">Что готово</p><ul class="sf-chat-deliverables__list"><li class="sf-chat-deliverable" data-id="f1"><span class="sf-chat-deliverable__icon" aria-hidden="true"><sf-icon icon="picture_as_pdf" size="2" aria-hidden="true" style="display: contents;" data-sf-size-relative><i class="sf-icon sf-icon--size-2 sf-icon--weight-regular" style="--sf-icon--grade:0;--sf-icon--optical-size:24" aria-hidden="true" data-sf-static>picture_as_pdf</i></sf-icon></span><span class="sf-chat-deliverable__body"><span class="sf-chat-deliverable__name" id="m-msg_21-file-0" title="Отчёт по отпускам.pdf">Отчёт по отпускам.pdf</span><span class="sf-chat-deliverable__meta">242 КБ · PDF</span></span><span class="sf-chat-deliverable__actions"><button class="sf-button sf-button--size-1/2 sf-button--outline sf-button--primary flex items-cross-center content-main-center sf-chat-deliverable__preview" type="button" aria-describedby="m-msg_21-file-0"><span class="sf-button-text-container">Просмотр</span></button><a class="sf-button sf-button--size-1/2 sf-button--outline sf-button--primary flex items-cross-center content-main-center sf-chat-deliverable__download" href="/files/f1" download="Отчёт по отпускам.pdf" aria-describedby="m-msg_21-file-0"><sf-icon icon="download" size="1" aria-hidden="true" style="display: contents;" data-sf-size-relative><i class="sf-icon sf-icon--size-1 sf-icon--weight-regular" style="--sf-icon--grade:0;--sf-icon--optical-size:24" aria-hidden="true" data-sf-static>download</i></sf-icon><span class="sf-button-text-container">Скачать</span></a></span></li><li class="sf-chat-deliverable" data-id="f2"><span class="sf-chat-deliverable__icon" aria-hidden="true"><sf-icon icon="table_chart" size="2" aria-hidden="true" style="display: contents;" data-sf-size-relative><i class="sf-icon sf-icon--size-2 sf-icon--weight-regular" style="--sf-icon--grade:0;--sf-icon--optical-size:24" aria-hidden="true" data-sf-static>table_chart</i></sf-icon></span><span class="sf-chat-deliverable__body"><span class="sf-chat-deliverable__name" id="m-msg_21-file-1" title="График.xlsx">График.xlsx</span><span class="sf-chat-deliverable__meta">18 КБ · XLSX</span></span><span class="sf-chat-deliverable__actions"><a class="sf-button sf-button--size-1/2 sf-button--outline sf-button--primary flex items-cross-center content-main-center sf-chat-deliverable__download" href="/files/f2" download="График.xlsx" aria-describedby="m-msg_21-file-1"><sf-icon icon="download" size="1" aria-hidden="true" style="display: contents;" data-sf-size-relative><i class="sf-icon sf-icon--size-1 sf-icon--weight-regular" style="--sf-icon--grade:0;--sf-icon--optical-size:24" aria-hidden="true" data-sf-static>download</i></sf-icon><span class="sf-button-text-container">Скачать</span></a></span></li></ul></section><div class="sf-chat-message__actions"><button class="sf-icon-button sf-icon-button--size-1/2 sf-icon-button--icon sf-icon-button--link sf-icon-button--on-surface flex items-cross-center content-main-center sf-chat-message__tool" type="button" aria-label="Копировать ответ" title="Копировать ответ"><sf-icon icon="content_copy" size="1" aria-hidden="true" style="display: contents;" data-sf-size-relative><i class="sf-icon sf-icon--size-1 sf-icon--weight-regular" style="--sf-icon--grade:0;--sf-icon--optical-size:24" aria-hidden="true" data-sf-static>content_copy</i></sf-icon></button><button class="sf-icon-button sf-icon-button--size-1/2 sf-icon-button--icon sf-icon-button--link sf-icon-button--on-surface flex items-cross-center content-main-center sf-chat-message__tool" type="button" aria-label="Полезно" title="Полезно" aria-pressed="false" data-rating="up"><sf-icon icon="thumb_up" size="1" aria-hidden="true" style="display: contents;" data-sf-size-relative><i class="sf-icon sf-icon--size-1 sf-icon--weight-regular" style="--sf-icon--grade:0;--sf-icon--optical-size:24" aria-hidden="true" data-sf-static>thumb_up</i></sf-icon></button><button class="sf-icon-button sf-icon-button--size-1/2 sf-icon-button--icon sf-icon-button--link sf-icon-button--on-surface flex items-cross-center content-main-center sf-chat-message__tool" type="button" aria-label="Не полезно" title="Не полезно" aria-pressed="false" data-rating="down"><sf-icon icon="thumb_down" size="1" aria-hidden="true" style="display: contents;" data-sf-size-relative><i class="sf-icon sf-icon--size-1 sf-icon--weight-regular" style="--sf-icon--grade:0;--sf-icon--optical-size:24" aria-hidden="true" data-sf-static>thumb_down</i></sf-icon></button><span class="sf-chat-offscreen" role="status" aria-live="polite"></span></div></div></article></div></sf-chat-message>
2
+ <sf-chat-message style="display: contents;"><script type="application/json" data-sf-settings>{"message":{"id":"msg_21","role":"assistant","status":"completed","html":"\u003cp>Подготовил отчёт и график отпусков.\u003c/p>","text":"Подготовил отчёт и график отпусков.","attachments":[{"id":"f1","name":"Отчёт по отпускам.pdf","bytes":248213,"mime":"application/pdf","href":"/files/f1","preview_url":"/files/f1/preview"},{"id":"f2","name":"График.xlsx","bytes":18432,"mime":"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","href":"/files/f2"}]}}</script><div class="sf-chat-message-host" data-sf-static><article class="sf-chat-message sf-chat-message--assistant sf-chat-message--completed" data-id="msg_21" aria-label="Помощник"><div class="sf-chat-message__body"><div class="sf-chat-markup"><p>Подготовил отчёт и график отпусков.</p></div><section class="sf-chat-deliverables" aria-labelledby="m-msg_21-files-title"><p class="sf-chat-deliverables__title" id="m-msg_21-files-title">Что готово</p><ul class="sf-chat-deliverables__list"><li class="sf-chat-deliverable" data-id="f1"><span class="sf-chat-deliverable__icon" aria-hidden="true"><sf-icon icon="picture_as_pdf" size="2" aria-hidden="true" style="display: contents;" data-sf-size-relative><i class="sf-icon sf-icon--size-2" aria-hidden="true" data-sf-static>picture_as_pdf</i></sf-icon></span><span class="sf-chat-deliverable__body"><span class="sf-chat-deliverable__name" id="m-msg_21-file-0" title="Отчёт по отпускам.pdf">Отчёт по отпускам.pdf</span><span class="sf-chat-deliverable__meta">242 КБ · PDF</span></span><span class="sf-chat-deliverable__actions"><button class="sf-button sf-button--size-1/2 sf-button--outline sf-button--primary flex items-cross-center content-main-center sf-chat-deliverable__preview" type="button" aria-describedby="m-msg_21-file-0"><span class="sf-button-text-container">Просмотр</span></button><a class="sf-button sf-button--size-1/2 sf-button--outline sf-button--primary flex items-cross-center content-main-center sf-chat-deliverable__download" href="/files/f1" download="Отчёт по отпускам.pdf" aria-describedby="m-msg_21-file-0"><sf-icon icon="download" size="1" aria-hidden="true" style="display: contents;" data-sf-size-relative><i class="sf-icon sf-icon--size-1" aria-hidden="true" data-sf-static>download</i></sf-icon><span class="sf-button-text-container">Скачать</span></a></span></li><li class="sf-chat-deliverable" data-id="f2"><span class="sf-chat-deliverable__icon" aria-hidden="true"><sf-icon icon="table_chart" size="2" aria-hidden="true" style="display: contents;" data-sf-size-relative><i class="sf-icon sf-icon--size-2" aria-hidden="true" data-sf-static>table_chart</i></sf-icon></span><span class="sf-chat-deliverable__body"><span class="sf-chat-deliverable__name" id="m-msg_21-file-1" title="График.xlsx">График.xlsx</span><span class="sf-chat-deliverable__meta">18 КБ · XLSX</span></span><span class="sf-chat-deliverable__actions"><a class="sf-button sf-button--size-1/2 sf-button--outline sf-button--primary flex items-cross-center content-main-center sf-chat-deliverable__download" href="/files/f2" download="График.xlsx" aria-describedby="m-msg_21-file-1"><sf-icon icon="download" size="1" aria-hidden="true" style="display: contents;" data-sf-size-relative><i class="sf-icon sf-icon--size-1" aria-hidden="true" data-sf-static>download</i></sf-icon><span class="sf-button-text-container">Скачать</span></a></span></li></ul></section><div class="sf-chat-message__actions"><button class="sf-icon-button sf-icon-button--size-1/2 sf-icon-button--icon sf-icon-button--link sf-icon-button--on-surface flex items-cross-center content-main-center sf-chat-message__tool" type="button" aria-label="Копировать ответ" title="Копировать ответ"><sf-icon icon="content_copy" size="1" aria-hidden="true" style="display: contents;" data-sf-size-relative><i class="sf-icon sf-icon--size-1" aria-hidden="true" data-sf-static>content_copy</i></sf-icon></button><button class="sf-icon-button sf-icon-button--size-1/2 sf-icon-button--icon sf-icon-button--link sf-icon-button--on-surface flex items-cross-center content-main-center sf-chat-message__tool" type="button" aria-label="Полезно" title="Полезно" aria-pressed="false" data-rating="up"><sf-icon icon="thumb_up" size="1" aria-hidden="true" style="display: contents;" data-sf-size-relative><i class="sf-icon sf-icon--size-1" aria-hidden="true" data-sf-static>thumb_up</i></sf-icon></button><button class="sf-icon-button sf-icon-button--size-1/2 sf-icon-button--icon sf-icon-button--link sf-icon-button--on-surface flex items-cross-center content-main-center sf-chat-message__tool" type="button" aria-label="Не полезно" title="Не полезно" aria-pressed="false" data-rating="down"><sf-icon icon="thumb_down" size="1" aria-hidden="true" style="display: contents;" data-sf-size-relative><i class="sf-icon sf-icon--size-1" aria-hidden="true" data-sf-static>thumb_down</i></sf-icon></button><span class="sf-chat-offscreen" role="status" aria-live="polite"></span></div></div></article></div></sf-chat-message>
@@ -1,5 +1,5 @@
1
1
  <!-- sf-chat-message, example «document»: the static markup (standard simai.smart-component 1.3.8 §5.4). Generated by scripts/snapshot-first-paint.mjs from the built output; do not edit, run it again. -->
2
- <sf-chat-message style="display: contents;"><script type="application/json" data-sf-settings>{"message":{"id":"m7","role":"assistant","status":"completed","text":"Срок возврата: регламент 30 дней, шаблон 14.","speaker":{"kind":"assistant","name":"Mirai"},"asked_by":{"name":"Анны"},"reactions":[{"emoji":"👀","count":1,"mine":false}]},"display":{"document":true,"showAuthor":true,"canReact":true,"canReply":true}}</script><div class="sf-chat-message-host" data-sf-static><article class="sf-chat-message sf-chat-message--assistant sf-chat-message--completed sf-chat-message--document sf-chat-message--named" data-id="m7" aria-label="Mirai, ИИ"><div class="sf-chat-message__head"><span class="sf-chat-person__avatar" aria-hidden="true"><span class="sf-avatar sf-avatar--size-1/2 sf-avatar--placeholder inline-flex flex-none items-cross-center content-main-center overflow-hidden" aria-hidden="true"><sf-icon icon="auto_awesome" size="1" aria-hidden="true" style="display: contents;" data-sf-size-relative><i class="sf-icon sf-icon--size-1 sf-icon--weight-regular" style="--sf-icon--grade:0;--sf-icon--optical-size:24" aria-hidden="true" data-sf-static>auto_awesome</i></sf-icon></span></span><p class="sf-chat-message__who"><span class="sf-chat-message__name">Mirai</span><sf-badge text="ИИ" size="1/3" appearance="outline" scheme="on-surface" tight class="sf-chat-message__word" data-sf-size-relative style="display: contents;">
2
+ <sf-chat-message style="display: contents;"><script type="application/json" data-sf-settings>{"message":{"id":"m7","role":"assistant","status":"completed","text":"Срок возврата: регламент 30 дней, шаблон 14.","speaker":{"kind":"assistant","name":"Mirai"},"asked_by":{"name":"Анны"},"reactions":[{"emoji":"👀","count":1,"mine":false}]},"display":{"document":true,"showAuthor":true,"canReact":true,"canReply":true}}</script><div class="sf-chat-message-host" data-sf-static><article class="sf-chat-message sf-chat-message--assistant sf-chat-message--completed sf-chat-message--document sf-chat-message--named" data-id="m7" aria-label="Mirai, ИИ"><div class="sf-chat-message__head"><span class="sf-chat-person__avatar" aria-hidden="true"><span class="sf-avatar sf-avatar--size-1/2 sf-avatar--placeholder inline-flex flex-none items-cross-center content-main-center overflow-hidden" aria-hidden="true"><sf-icon icon="auto_awesome" size="1" aria-hidden="true" style="display: contents;" data-sf-size-relative><i class="sf-icon sf-icon--size-1" aria-hidden="true" data-sf-static>auto_awesome</i></sf-icon></span></span><p class="sf-chat-message__who"><span class="sf-chat-message__name">Mirai</span><sf-badge text="ИИ" size="1/3" appearance="outline" scheme="on-surface" tight class="sf-chat-message__word" data-sf-size-relative style="display: contents;">
3
3
  <span class="sf-badge sf-badge--outline sf-badge--on-surface sf-badge--size-1/3 sf-badge--tight inline-flex flex-row flex-nowrap content-main-center items-center" data-sf-static>
4
4
 
5
5
 
@@ -10,4 +10,4 @@
10
10
 
11
11
 
12
12
  </span>
13
- </sf-badge><span class="sf-chat-message__asked">по просьбе Анны</span></p></div><div class="sf-chat-message__body"><p class="sf-chat-message__plain" id="m-m7-fold">Срок возврата: регламент 30 дней, шаблон 14.</p><button class="sf-chat-fold" type="button" aria-expanded="false" aria-controls="m-m7-fold" hidden></button><div class="sf-chat-reactions" role="group" aria-label="Реакции"><button class="sf-chat-reaction" type="button" data-emoji="👀" aria-pressed="false" aria-label="Реакция 👀, 1"><span class="sf-chat-reaction__emoji" aria-hidden="true">👀</span><span class="sf-chat-reaction__count" aria-hidden="true">1</span></button></div><div class="sf-chat-message__actions"><button class="sf-icon-button sf-icon-button--size-1/2 sf-icon-button--icon sf-icon-button--link sf-icon-button--on-surface flex items-cross-center content-main-center sf-chat-message__tool" type="button" aria-label="Копировать ответ" title="Копировать ответ"><sf-icon icon="content_copy" size="1" aria-hidden="true" style="display: contents;" data-sf-size-relative><i class="sf-icon sf-icon--size-1 sf-icon--weight-regular" style="--sf-icon--grade:0;--sf-icon--optical-size:24" aria-hidden="true" data-sf-static>content_copy</i></sf-icon></button><button class="sf-icon-button sf-icon-button--size-1/2 sf-icon-button--icon sf-icon-button--link sf-icon-button--on-surface flex items-cross-center content-main-center sf-chat-message__tool" type="button" aria-label="Полезно" title="Полезно" aria-pressed="false" data-rating="up"><sf-icon icon="thumb_up" size="1" aria-hidden="true" style="display: contents;" data-sf-size-relative><i class="sf-icon sf-icon--size-1 sf-icon--weight-regular" style="--sf-icon--grade:0;--sf-icon--optical-size:24" aria-hidden="true" data-sf-static>thumb_up</i></sf-icon></button><button class="sf-icon-button sf-icon-button--size-1/2 sf-icon-button--icon sf-icon-button--link sf-icon-button--on-surface flex items-cross-center content-main-center sf-chat-message__tool" type="button" aria-label="Не полезно" title="Не полезно" aria-pressed="false" data-rating="down"><sf-icon icon="thumb_down" size="1" aria-hidden="true" style="display: contents;" data-sf-size-relative><i class="sf-icon sf-icon--size-1 sf-icon--weight-regular" style="--sf-icon--grade:0;--sf-icon--optical-size:24" aria-hidden="true" data-sf-static>thumb_down</i></sf-icon></button><div class="sf-chat-tools" role="group" aria-label="Действия с сообщением"><button class="sf-icon-button sf-icon-button--size-1/2 sf-icon-button--icon sf-icon-button--link sf-icon-button--on-surface flex items-cross-center content-main-center sf-chat-tools__reply" type="button" aria-label="Ответить" title="Ответить"><sf-icon icon="reply" size="1" aria-hidden="true" style="display: contents;" data-sf-size-relative><i class="sf-icon sf-icon--size-1 sf-icon--weight-regular" style="--sf-icon--grade:0;--sf-icon--optical-size:24" aria-hidden="true" data-sf-static>reply</i></sf-icon></button><button class="sf-icon-button sf-icon-button--size-1/2 sf-icon-button--icon sf-icon-button--link sf-icon-button--on-surface flex items-cross-center content-main-center sf-chat-tools__react" type="button" aria-label="Реакция" title="Реакция" aria-haspopup="true" aria-expanded="false"><sf-icon icon="add_reaction" size="1" aria-hidden="true" style="display: contents;" data-sf-size-relative><i class="sf-icon sf-icon--size-1 sf-icon--weight-regular" style="--sf-icon--grade:0;--sf-icon--optical-size:24" aria-hidden="true" data-sf-static>add_reaction</i></sf-icon></button></div><span class="sf-chat-offscreen" role="status" aria-live="polite"></span></div></div></article></div></sf-chat-message>
13
+ </sf-badge><span class="sf-chat-message__asked">по просьбе Анны</span></p></div><div class="sf-chat-message__body"><p class="sf-chat-message__plain" id="m-m7-fold">Срок возврата: регламент 30 дней, шаблон 14.</p><button class="sf-chat-fold" type="button" aria-expanded="false" aria-controls="m-m7-fold" hidden></button><div class="sf-chat-reactions" role="group" aria-label="Реакции"><button class="sf-chat-reaction" type="button" data-emoji="👀" aria-pressed="false" aria-label="Реакция 👀, 1"><span class="sf-chat-reaction__emoji" aria-hidden="true">👀</span><span class="sf-chat-reaction__count" aria-hidden="true">1</span></button></div><div class="sf-chat-message__actions"><button class="sf-icon-button sf-icon-button--size-1/2 sf-icon-button--icon sf-icon-button--link sf-icon-button--on-surface flex items-cross-center content-main-center sf-chat-message__tool" type="button" aria-label="Копировать ответ" title="Копировать ответ"><sf-icon icon="content_copy" size="1" aria-hidden="true" style="display: contents;" data-sf-size-relative><i class="sf-icon sf-icon--size-1" aria-hidden="true" data-sf-static>content_copy</i></sf-icon></button><button class="sf-icon-button sf-icon-button--size-1/2 sf-icon-button--icon sf-icon-button--link sf-icon-button--on-surface flex items-cross-center content-main-center sf-chat-message__tool" type="button" aria-label="Полезно" title="Полезно" aria-pressed="false" data-rating="up"><sf-icon icon="thumb_up" size="1" aria-hidden="true" style="display: contents;" data-sf-size-relative><i class="sf-icon sf-icon--size-1" aria-hidden="true" data-sf-static>thumb_up</i></sf-icon></button><button class="sf-icon-button sf-icon-button--size-1/2 sf-icon-button--icon sf-icon-button--link sf-icon-button--on-surface flex items-cross-center content-main-center sf-chat-message__tool" type="button" aria-label="Не полезно" title="Не полезно" aria-pressed="false" data-rating="down"><sf-icon icon="thumb_down" size="1" aria-hidden="true" style="display: contents;" data-sf-size-relative><i class="sf-icon sf-icon--size-1" aria-hidden="true" data-sf-static>thumb_down</i></sf-icon></button><div class="sf-chat-tools" role="group" aria-label="Действия с сообщением"><button class="sf-icon-button sf-icon-button--size-1/2 sf-icon-button--icon sf-icon-button--link sf-icon-button--on-surface flex items-cross-center content-main-center sf-chat-tools__reply" type="button" aria-label="Ответить" title="Ответить"><sf-icon icon="reply" size="1" aria-hidden="true" style="display: contents;" data-sf-size-relative><i class="sf-icon sf-icon--size-1" data-sf-icon-mirror aria-hidden="true" data-sf-static>reply</i></sf-icon></button><button class="sf-icon-button sf-icon-button--size-1/2 sf-icon-button--icon sf-icon-button--link sf-icon-button--on-surface flex items-cross-center content-main-center sf-chat-tools__react" type="button" aria-label="Реакция" title="Реакция" aria-haspopup="true" aria-expanded="false"><sf-icon icon="add_reaction" size="1" aria-hidden="true" style="display: contents;" data-sf-size-relative><i class="sf-icon sf-icon--size-1" aria-hidden="true" data-sf-static>add_reaction</i></sf-icon></button></div><span class="sf-chat-offscreen" role="status" aria-live="polite"></span></div></div></article></div></sf-chat-message>
@@ -1,2 +1,2 @@
1
1
  <!-- sf-chat-message, example «failed»: the static markup (standard simai.smart-component 1.3.8 §5.4). Generated by scripts/snapshot-first-paint.mjs from the built output; do not edit, run it again. -->
2
- <sf-chat-message style="display: contents;"><script type="application/json" data-sf-settings>{"message":{"id":"msg_07","role":"assistant","status":"failed","text":"Не удалось получить ответ."}}</script><div class="sf-chat-message-host" data-sf-static><article class="sf-chat-message sf-chat-message--assistant sf-chat-message--failed" data-id="msg_07" aria-label="Помощник"><div class="sf-chat-message__body"><div class="sf-chat-notice sf-chat-notice--failed" role="alert"><sf-icon icon="error" size="1" aria-hidden="true" class="sf-chat-notice__icon" style="display: contents;" data-sf-size-relative><i class="sf-icon sf-icon--size-1 sf-icon--weight-regular" style="--sf-icon--grade:0;--sf-icon--optical-size:24" aria-hidden="true" data-sf-static>error</i></sf-icon><p class="sf-chat-notice__text">Не удалось получить ответ.</p><button class="sf-chat-notice__action" type="button">Повторить</button></div></div></article></div></sf-chat-message>
2
+ <sf-chat-message style="display: contents;"><script type="application/json" data-sf-settings>{"message":{"id":"msg_07","role":"assistant","status":"failed","text":"Не удалось получить ответ."}}</script><div class="sf-chat-message-host" data-sf-static><article class="sf-chat-message sf-chat-message--assistant sf-chat-message--failed" data-id="msg_07" aria-label="Помощник"><div class="sf-chat-message__body"><div class="sf-chat-notice sf-chat-notice--failed" role="alert"><sf-icon icon="error" size="1" aria-hidden="true" class="sf-chat-notice__icon" style="display: contents;" data-sf-size-relative><i class="sf-icon sf-icon--size-1" aria-hidden="true" data-sf-static>error</i></sf-icon><p class="sf-chat-notice__text">Не удалось получить ответ.</p><button class="sf-chat-notice__action" type="button">Повторить</button></div></div></article></div></sf-chat-message>
@@ -1,2 +1,2 @@
1
1
  <!-- sf-chat-message, example «feedback-reason»: the static markup (standard simai.smart-component 1.3.8 §5.4). Generated by scripts/snapshot-first-paint.mjs from the built output; do not edit, run it again. -->
2
- <sf-chat-message style="display: contents;"><script type="application/json" data-sf-settings>{"message":{"id":"msg_11","role":"assistant","status":"completed","text":"Отпуск — 28 дней."},"display":{"feedback":{"value":"down","asking":true,"draft":{"reason":null,"note":""}}}}</script><div class="sf-chat-message-host" data-sf-static><article class="sf-chat-message sf-chat-message--assistant sf-chat-message--completed" data-id="msg_11" aria-label="Помощник"><div class="sf-chat-message__body"><p class="sf-chat-message__plain">Отпуск — 28 дней.</p><div class="sf-chat-message__actions"><button class="sf-icon-button sf-icon-button--size-1/2 sf-icon-button--icon sf-icon-button--link sf-icon-button--on-surface flex items-cross-center content-main-center sf-chat-message__tool" type="button" aria-label="Копировать ответ" title="Копировать ответ"><sf-icon icon="content_copy" size="1" aria-hidden="true" style="display: contents;" data-sf-size-relative><i class="sf-icon sf-icon--size-1 sf-icon--weight-regular" style="--sf-icon--grade:0;--sf-icon--optical-size:24" aria-hidden="true" data-sf-static>content_copy</i></sf-icon></button><button class="sf-icon-button sf-icon-button--size-1/2 sf-icon-button--icon sf-icon-button--link sf-icon-button--on-surface flex items-cross-center content-main-center sf-chat-message__tool" type="button" aria-label="Полезно" title="Полезно" aria-pressed="false" data-rating="up"><sf-icon icon="thumb_up" size="1" aria-hidden="true" style="display: contents;" data-sf-size-relative><i class="sf-icon sf-icon--size-1 sf-icon--weight-regular" style="--sf-icon--grade:0;--sf-icon--optical-size:24" aria-hidden="true" data-sf-static>thumb_up</i></sf-icon></button><button class="sf-icon-button sf-icon-button--size-1/2 sf-icon-button--icon sf-icon-button--link sf-icon-button--on-surface flex items-cross-center content-main-center active sf-chat-message__tool" type="button" aria-label="Не полезно" title="Не полезно" aria-pressed="true" data-rating="down"><sf-icon icon="thumb_down" size="1" aria-hidden="true" style="display: contents;" data-sf-size-relative><i class="sf-icon sf-icon--size-1 sf-icon--weight-regular" style="--sf-icon--grade:0;--sf-icon--optical-size:24" aria-hidden="true" data-sf-static>thumb_down</i></sf-icon></button><span class="sf-chat-offscreen" role="status" aria-live="polite"></span></div><div class="sf-chat-reason" role="group" aria-labelledby="sf-chat-message-feedback-reason-1"><p class="sf-chat-reason__title" id="sf-chat-message-feedback-reason-1">Что не так с ответом?</p><div class="sf-chat-reason__choices"><button class="sf-chat-chip sf-chat-chip--choice" type="button" aria-pressed="false" data-reason="wrong">Неверно</button><button class="sf-chat-chip sf-chat-chip--choice" type="button" aria-pressed="false" data-reason="incomplete">Неполно</button><button class="sf-chat-chip sf-chat-chip--choice" type="button" aria-pressed="false" data-reason="off_topic">Не по вопросу</button><button class="sf-chat-chip sf-chat-chip--choice" type="button" aria-pressed="false" data-reason="other">Другое</button></div><label class="sf-input sf-input--size-1/2 sf-input--bordered flex flex-col sf-chat-reason__note" data-sf-input-bound="1" for="class-sf-input-1--control"><span class="sf-chat-offscreen">Комментарий к оценке</span><span class="sf-input-field items-cross-center transition flex"><input type="text" maxlength="500" autocomplete="off" placeholder="Что именно? Можно не писать" id="class-sf-input-1--control"></span></label><div class="sf-chat-reason__actions"><button class="sf-button sf-button--size-1/2 sf-button--default sf-button--primary flex items-cross-center content-main-center" type="button"><span class="sf-button-text-container">Отправить</span></button><button class="sf-button sf-button--size-1/2 sf-button--link sf-button--primary flex items-cross-center content-main-center" type="button"><span class="sf-button-text-container">Не сейчас</span></button></div></div></div></article></div></sf-chat-message>
2
+ <sf-chat-message style="display: contents;"><script type="application/json" data-sf-settings>{"message":{"id":"msg_11","role":"assistant","status":"completed","text":"Отпуск — 28 дней."},"display":{"feedback":{"value":"down","asking":true,"draft":{"reason":null,"note":""}}}}</script><div class="sf-chat-message-host" data-sf-static><article class="sf-chat-message sf-chat-message--assistant sf-chat-message--completed" data-id="msg_11" aria-label="Помощник"><div class="sf-chat-message__body"><p class="sf-chat-message__plain">Отпуск — 28 дней.</p><div class="sf-chat-message__actions"><button class="sf-icon-button sf-icon-button--size-1/2 sf-icon-button--icon sf-icon-button--link sf-icon-button--on-surface flex items-cross-center content-main-center sf-chat-message__tool" type="button" aria-label="Копировать ответ" title="Копировать ответ"><sf-icon icon="content_copy" size="1" aria-hidden="true" style="display: contents;" data-sf-size-relative><i class="sf-icon sf-icon--size-1" aria-hidden="true" data-sf-static>content_copy</i></sf-icon></button><button class="sf-icon-button sf-icon-button--size-1/2 sf-icon-button--icon sf-icon-button--link sf-icon-button--on-surface flex items-cross-center content-main-center sf-chat-message__tool" type="button" aria-label="Полезно" title="Полезно" aria-pressed="false" data-rating="up"><sf-icon icon="thumb_up" size="1" aria-hidden="true" style="display: contents;" data-sf-size-relative><i class="sf-icon sf-icon--size-1" aria-hidden="true" data-sf-static>thumb_up</i></sf-icon></button><button class="sf-icon-button sf-icon-button--size-1/2 sf-icon-button--icon sf-icon-button--link sf-icon-button--on-surface flex items-cross-center content-main-center active sf-chat-message__tool" type="button" aria-label="Не полезно" title="Не полезно" aria-pressed="true" data-rating="down"><sf-icon icon="thumb_down" size="1" aria-hidden="true" style="display: contents;" data-sf-size-relative><i class="sf-icon sf-icon--size-1" aria-hidden="true" data-sf-static>thumb_down</i></sf-icon></button><span class="sf-chat-offscreen" role="status" aria-live="polite"></span></div><div class="sf-chat-reason" role="group" aria-labelledby="sf-chat-message-feedback-reason-1"><p class="sf-chat-reason__title" id="sf-chat-message-feedback-reason-1">Что не так с ответом?</p><div class="sf-chat-reason__choices"><button class="sf-chat-chip sf-chat-chip--choice" type="button" aria-pressed="false" data-reason="wrong">Неверно</button><button class="sf-chat-chip sf-chat-chip--choice" type="button" aria-pressed="false" data-reason="incomplete">Неполно</button><button class="sf-chat-chip sf-chat-chip--choice" type="button" aria-pressed="false" data-reason="off_topic">Не по вопросу</button><button class="sf-chat-chip sf-chat-chip--choice" type="button" aria-pressed="false" data-reason="other">Другое</button></div><label class="sf-input sf-input--size-1/2 sf-input--bordered flex flex-col sf-chat-reason__note" data-sf-input-bound="1" for="class-sf-input-1--control"><span class="sf-chat-offscreen">Комментарий к оценке</span><span class="sf-input-field items-cross-center transition flex"><input type="text" maxlength="500" autocomplete="off" placeholder="Что именно? Можно не писать" id="class-sf-input-1--control"></span></label><div class="sf-chat-reason__actions"><button class="sf-button sf-button--size-1/2 sf-button--default sf-button--primary flex items-cross-center content-main-center" type="button"><span class="sf-button-text-container">Отправить</span></button><button class="sf-button sf-button--size-1/2 sf-button--link sf-button--primary flex items-cross-center content-main-center" type="button"><span class="sf-button-text-container">Не сейчас</span></button></div></div></div></article></div></sf-chat-message>
@@ -1,2 +1,2 @@
1
1
  <!-- sf-chat-message, example «limit»: the static markup (standard simai.smart-component 1.3.8 §5.4). Generated by scripts/snapshot-first-paint.mjs from the built output; do not edit, run it again. -->
2
- <sf-chat-message style="display: contents;"><script type="application/json" data-sf-settings>{"message":{"id":"msg_06","role":"assistant","status":"limit","text":"Лимит вопросов на месяц исчерпан."}}</script><div class="sf-chat-message-host" data-sf-static><article class="sf-chat-message sf-chat-message--assistant sf-chat-message--limit" data-id="msg_06" aria-label="Помощник"><div class="sf-chat-message__body"><div class="sf-chat-notice sf-chat-notice--limit"><sf-icon icon="account_balance_wallet" size="1" aria-hidden="true" class="sf-chat-notice__icon" style="display: contents;" data-sf-size-relative><i class="sf-icon sf-icon--size-1 sf-icon--weight-regular" style="--sf-icon--grade:0;--sf-icon--optical-size:24" aria-hidden="true" data-sf-static>account_balance_wallet</i></sf-icon><p class="sf-chat-notice__text">Лимит вопросов на месяц исчерпан.</p></div></div></article></div></sf-chat-message>
2
+ <sf-chat-message style="display: contents;"><script type="application/json" data-sf-settings>{"message":{"id":"msg_06","role":"assistant","status":"limit","text":"Лимит вопросов на месяц исчерпан."}}</script><div class="sf-chat-message-host" data-sf-static><article class="sf-chat-message sf-chat-message--assistant sf-chat-message--limit" data-id="msg_06" aria-label="Помощник"><div class="sf-chat-message__body"><div class="sf-chat-notice sf-chat-notice--limit"><sf-icon icon="account_balance_wallet" size="1" aria-hidden="true" class="sf-chat-notice__icon" style="display: contents;" data-sf-size-relative><i class="sf-icon sf-icon--size-1" aria-hidden="true" data-sf-static>account_balance_wallet</i></sf-icon><p class="sf-chat-notice__text">Лимит вопросов на месяц исчерпан.</p></div></div></article></div></sf-chat-message>
@@ -1,42 +1,40 @@
1
1
  <!-- sf-chat-message, example «proposal»: the static markup (standard simai.smart-component 1.3.8 §5.4). Generated by scripts/snapshot-first-paint.mjs from the built output; do not edit, run it again. -->
2
2
  <sf-chat-message style="display: contents;"><script type="application/json" data-sf-settings>{"message":{"id":"msg_08","role":"assistant","status":"completed","text":"Подготовил изменение отпуска.","proposal":{"code":"P-17","title":"Перенести отпуск","state":"presented","changes":[{"field":"Начало","was":"1 июля","will_be":"15 июля"}]}}}</script><div class="sf-chat-message-host" data-sf-static><article class="sf-chat-message sf-chat-message--assistant sf-chat-message--completed" data-id="msg_08" aria-label="Помощник"><div class="sf-chat-message__body"><p class="sf-chat-message__plain">Подготовил изменение отпуска.</p><sf-confirm-change heading="Перенести отпуск" heading-level="2" change-id="P-17" decline-text="Отменить" accept-text="Подтвердить" state="open" data-state="open" data-expires-at changes="[{&quot;label&quot;:&quot;Начало&quot;,&quot;before&quot;:&quot;1 июля&quot;,&quot;after&quot;:&quot;15 июля&quot;}]" style="display: contents;">
3
- <section class="sf-change-confirm sf-change-confirm--open" aria-labelledby="sf-chat-message-proposal-1" data-state="open" data-sf-static>
4
- <div class="sf-change-confirm__heading" role="heading" id="sf-chat-message-proposal-1" aria-level="2">Перенести отпуск</div>
3
+ <section class="sf-confirm-change sf-confirm-change--open sf-change-confirm sf-change-confirm--open" aria-labelledby="sf-chat-message-proposal-1" data-state="open" data-sf-static>
4
+ <div class="sf-confirm-change__heading sf-change-confirm__heading" role="heading" id="sf-chat-message-proposal-1" aria-level="2">Перенести отпуск</div>
5
5
 
6
- <div class="sf-change-confirm__changes" role="group" aria-label="Что изменится">
7
- <sf-change class="sf-change-confirm__list" layout="list" style="display: contents;" data-block="true"><script type="application/json" data-sf-settings>{"changes":[{"label":"Начало","before":"1 июля","after":"15 июля"}]}</script><dl class="sf-change sf-change--list" data-sf-static>
8
- <div class="sf-change__row"><dt class="sf-change__term">Начало</dt><dd class="sf-change__value"><span class="sf-change__before sf-change__whole">1&nbsp;июля</span><span class="sf-change__pair"> <span class="sf-change__arrow" aria-hidden="true">→</span><span class="sr-only"> на</span>&nbsp;<span class="sf-change__after sf-change__whole">15&nbsp;июля</span></span></dd></div>
6
+ <div class="sf-confirm-change__changes sf-change-confirm__changes" role="group" aria-label="Что изменится">
7
+ <sf-change class="sf-confirm-change__list sf-change-confirm__list" layout="list" style="display: contents;" data-block="true"><script type="application/json" data-sf-settings>{"changes":[{"label":"Начало","before":"1 июля","after":"15 июля"}]}</script><dl class="sf-change sf-change--list" data-sf-static>
8
+ <div class="sf-change__row"><dt class="sf-change__term">Начало</dt><dd class="sf-change__value"><span aria-hidden="true"><span class="sf-change__before sf-change__whole">1&nbsp;июля</span></span><span class="sf-change__pair"> <span class="sf-change__arrow" aria-hidden="true">→</span><span class="sr-only">было 1 июля, стало 15 июля</span>&nbsp;<span aria-hidden="true"><span class="sf-change__after sf-change__whole">15&nbsp;июля</span></span></span></dd></div>
9
9
  </dl></sf-change>
10
10
  </div>
11
11
 
12
- <footer class="sf-change-confirm__footer">
12
+ <footer class="sf-confirm-change__footer sf-change-confirm__footer">
13
+ <div class="sf-confirm-change__actions sf-change-confirm__actions">
14
+ <sf-button scheme="primary" appearance="default" size="1" text="Подтвердить" style="display: contents;" data-sf-size-relative>
15
+ <button type="button" class="sf-button sf-button--size-1 sf-button--default sf-button--primary flex items-cross-center" data-action="accept" data-sf-static>
13
16
 
14
- <p role="status" tabindex="-1" class="sf-change-confirm__status">
15
17
 
16
- </p>
17
-
18
- <div class="sf-change-confirm__actions">
19
- <sf-button scheme="primary" appearance="outline" size="1" text="Подтвердить" style="display: contents;" data-sf-size-relative>
20
- <button type="button" class="sf-button sf-button--size-1 sf-button--outline sf-button--primary flex items-cross-center" data-action="accept" data-sf-static>
21
-
22
-
23
- <span class="sf-button-text-container text-center pointer-event-none flex-1">
18
+ <span class="sf-button-text-container text-center pointer-events-none flex-1">
24
19
  Подтвердить
25
20
  </span>
26
21
 
27
22
  </button>
28
23
  </sf-button>
29
- <sf-button scheme="on-surface" appearance="outline" size="1" text="Отменить" style="display: contents;" data-sf-size-relative>
30
- <button type="button" class="sf-button sf-button--size-1 sf-button--outline sf-button--on-surface flex items-cross-center" data-action="decline" data-sf-static>
24
+ <sf-button scheme="on-surface" appearance="ghost" size="1" text="Отменить" style="display: contents;" data-sf-size-relative>
25
+ <button type="button" class="sf-button sf-button--size-1 sf-button--ghost sf-button--link sf-button--on-surface flex items-cross-center" data-action="decline" data-sf-static>
31
26
 
32
27
 
33
- <span class="sf-button-text-container text-center pointer-event-none flex-1">
28
+ <span class="sf-button-text-container text-center pointer-events-none flex-1">
34
29
  Отменить
35
30
  </span>
36
31
 
37
32
  </button>
38
33
  </sf-button>
39
34
  </div>
35
+ <p role="status" tabindex="-1" class="sf-confirm-change__status sf-change-confirm__status">
36
+
37
+ </p>
40
38
  </footer>
41
39
  </section>
42
- </sf-confirm-change><div class="sf-chat-message__actions"><button class="sf-icon-button sf-icon-button--size-1/2 sf-icon-button--icon sf-icon-button--link sf-icon-button--on-surface flex items-cross-center content-main-center sf-chat-message__tool" type="button" aria-label="Копировать ответ" title="Копировать ответ"><sf-icon icon="content_copy" size="1" aria-hidden="true" style="display: contents;" data-sf-size-relative><i class="sf-icon sf-icon--size-1 sf-icon--weight-regular" style="--sf-icon--grade:0;--sf-icon--optical-size:24" aria-hidden="true" data-sf-static>content_copy</i></sf-icon></button><button class="sf-icon-button sf-icon-button--size-1/2 sf-icon-button--icon sf-icon-button--link sf-icon-button--on-surface flex items-cross-center content-main-center sf-chat-message__tool" type="button" aria-label="Полезно" title="Полезно" aria-pressed="false" data-rating="up"><sf-icon icon="thumb_up" size="1" aria-hidden="true" style="display: contents;" data-sf-size-relative><i class="sf-icon sf-icon--size-1 sf-icon--weight-regular" style="--sf-icon--grade:0;--sf-icon--optical-size:24" aria-hidden="true" data-sf-static>thumb_up</i></sf-icon></button><button class="sf-icon-button sf-icon-button--size-1/2 sf-icon-button--icon sf-icon-button--link sf-icon-button--on-surface flex items-cross-center content-main-center sf-chat-message__tool" type="button" aria-label="Не полезно" title="Не полезно" aria-pressed="false" data-rating="down"><sf-icon icon="thumb_down" size="1" aria-hidden="true" style="display: contents;" data-sf-size-relative><i class="sf-icon sf-icon--size-1 sf-icon--weight-regular" style="--sf-icon--grade:0;--sf-icon--optical-size:24" aria-hidden="true" data-sf-static>thumb_down</i></sf-icon></button><span class="sf-chat-offscreen" role="status" aria-live="polite"></span></div></div></article></div></sf-chat-message>
40
+ </sf-confirm-change><div class="sf-chat-message__actions"><button class="sf-icon-button sf-icon-button--size-1/2 sf-icon-button--icon sf-icon-button--link sf-icon-button--on-surface flex items-cross-center content-main-center sf-chat-message__tool" type="button" aria-label="Копировать ответ" title="Копировать ответ"><sf-icon icon="content_copy" size="1" aria-hidden="true" style="display: contents;" data-sf-size-relative><i class="sf-icon sf-icon--size-1" aria-hidden="true" data-sf-static>content_copy</i></sf-icon></button><button class="sf-icon-button sf-icon-button--size-1/2 sf-icon-button--icon sf-icon-button--link sf-icon-button--on-surface flex items-cross-center content-main-center sf-chat-message__tool" type="button" aria-label="Полезно" title="Полезно" aria-pressed="false" data-rating="up"><sf-icon icon="thumb_up" size="1" aria-hidden="true" style="display: contents;" data-sf-size-relative><i class="sf-icon sf-icon--size-1" aria-hidden="true" data-sf-static>thumb_up</i></sf-icon></button><button class="sf-icon-button sf-icon-button--size-1/2 sf-icon-button--icon sf-icon-button--link sf-icon-button--on-surface flex items-cross-center content-main-center sf-chat-message__tool" type="button" aria-label="Не полезно" title="Не полезно" aria-pressed="false" data-rating="down"><sf-icon icon="thumb_down" size="1" aria-hidden="true" style="display: contents;" data-sf-size-relative><i class="sf-icon sf-icon--size-1" aria-hidden="true" data-sf-static>thumb_down</i></sf-icon></button><span class="sf-chat-offscreen" role="status" aria-live="polite"></span></div></div></article></div></sf-chat-message>