@ckeditor/ckeditor5-ai 47.1.0-alpha.2 → 47.2.0-alpha.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 (498) hide show
  1. package/build/ai.js +2 -2
  2. package/build/translations/af.js +1 -1
  3. package/build/translations/ar.js +1 -1
  4. package/build/translations/ast.js +1 -1
  5. package/build/translations/az.js +1 -1
  6. package/build/translations/be.js +1 -1
  7. package/build/translations/bg.js +1 -1
  8. package/build/translations/bn.js +1 -1
  9. package/build/translations/bs.js +1 -1
  10. package/build/translations/ca.js +1 -1
  11. package/build/translations/cs.js +1 -1
  12. package/build/translations/da.js +1 -1
  13. package/build/translations/de-ch.js +1 -1
  14. package/build/translations/de.js +1 -1
  15. package/build/translations/el.js +1 -1
  16. package/build/translations/en-au.js +1 -1
  17. package/build/translations/en-gb.js +1 -1
  18. package/build/translations/eo.js +1 -1
  19. package/build/translations/es-co.js +1 -1
  20. package/build/translations/es.js +1 -1
  21. package/build/translations/et.js +1 -1
  22. package/build/translations/eu.js +1 -1
  23. package/build/translations/fa.js +1 -1
  24. package/build/translations/fi.js +1 -1
  25. package/build/translations/fr.js +1 -1
  26. package/build/translations/gl.js +1 -1
  27. package/build/translations/gu.js +1 -1
  28. package/build/translations/he.js +1 -1
  29. package/build/translations/hi.js +1 -1
  30. package/build/translations/hr.js +1 -1
  31. package/build/translations/hu.js +1 -1
  32. package/build/translations/hy.js +1 -1
  33. package/build/translations/id.js +1 -1
  34. package/build/translations/it.js +1 -1
  35. package/build/translations/ja.js +1 -1
  36. package/build/translations/jv.js +1 -1
  37. package/build/translations/kk.js +1 -1
  38. package/build/translations/km.js +1 -1
  39. package/build/translations/kn.js +1 -1
  40. package/build/translations/ko.js +1 -1
  41. package/build/translations/ku.js +1 -1
  42. package/build/translations/lt.js +1 -1
  43. package/build/translations/lv.js +1 -1
  44. package/build/translations/ms.js +1 -1
  45. package/build/translations/nb.js +1 -1
  46. package/build/translations/ne.js +1 -1
  47. package/build/translations/nl.js +1 -1
  48. package/build/translations/no.js +1 -1
  49. package/build/translations/oc.js +1 -1
  50. package/build/translations/pl.js +1 -1
  51. package/build/translations/pt-br.js +1 -1
  52. package/build/translations/pt.js +1 -1
  53. package/build/translations/ro.js +1 -1
  54. package/build/translations/ru.js +1 -1
  55. package/build/translations/si.js +1 -1
  56. package/build/translations/sk.js +1 -1
  57. package/build/translations/sl.js +1 -1
  58. package/build/translations/sq.js +1 -1
  59. package/build/translations/sr-latn.js +1 -1
  60. package/build/translations/sr.js +1 -1
  61. package/build/translations/sv.js +1 -1
  62. package/build/translations/th.js +1 -1
  63. package/build/translations/ti.js +1 -1
  64. package/build/translations/tk.js +1 -1
  65. package/build/translations/tr.js +1 -1
  66. package/build/translations/tt.js +1 -1
  67. package/build/translations/ug.js +1 -1
  68. package/build/translations/uk.js +1 -1
  69. package/build/translations/ur.js +1 -1
  70. package/build/translations/uz.js +1 -1
  71. package/build/translations/vi.js +1 -1
  72. package/build/translations/zh-cn.js +1 -1
  73. package/build/translations/zh.js +1 -1
  74. package/dist/index-editor.css +573 -203
  75. package/dist/index.css +627 -204
  76. package/dist/index.js +5 -4
  77. package/dist/translations/af.js +1 -1
  78. package/dist/translations/af.umd.js +1 -1
  79. package/dist/translations/ar.js +1 -1
  80. package/dist/translations/ar.umd.js +1 -1
  81. package/dist/translations/ast.js +1 -1
  82. package/dist/translations/ast.umd.js +1 -1
  83. package/dist/translations/az.js +1 -1
  84. package/dist/translations/az.umd.js +1 -1
  85. package/dist/translations/be.js +1 -1
  86. package/dist/translations/be.umd.js +1 -1
  87. package/dist/translations/bg.js +1 -1
  88. package/dist/translations/bg.umd.js +1 -1
  89. package/dist/translations/bn.js +1 -1
  90. package/dist/translations/bn.umd.js +1 -1
  91. package/dist/translations/bs.js +1 -1
  92. package/dist/translations/bs.umd.js +1 -1
  93. package/dist/translations/ca.js +1 -1
  94. package/dist/translations/ca.umd.js +1 -1
  95. package/dist/translations/cs.js +1 -1
  96. package/dist/translations/cs.umd.js +1 -1
  97. package/dist/translations/da.js +1 -1
  98. package/dist/translations/da.umd.js +1 -1
  99. package/dist/translations/de-ch.js +1 -1
  100. package/dist/translations/de-ch.umd.js +1 -1
  101. package/dist/translations/de.js +1 -1
  102. package/dist/translations/de.umd.js +1 -1
  103. package/dist/translations/el.js +1 -1
  104. package/dist/translations/el.umd.js +1 -1
  105. package/dist/translations/en-au.js +1 -1
  106. package/dist/translations/en-au.umd.js +1 -1
  107. package/dist/translations/en-gb.js +1 -1
  108. package/dist/translations/en-gb.umd.js +1 -1
  109. package/dist/translations/en.js +1 -1
  110. package/dist/translations/en.umd.js +1 -1
  111. package/dist/translations/eo.js +1 -1
  112. package/dist/translations/eo.umd.js +1 -1
  113. package/dist/translations/es-co.js +1 -1
  114. package/dist/translations/es-co.umd.js +1 -1
  115. package/dist/translations/es.js +1 -1
  116. package/dist/translations/es.umd.js +1 -1
  117. package/dist/translations/et.js +1 -1
  118. package/dist/translations/et.umd.js +1 -1
  119. package/dist/translations/eu.js +1 -1
  120. package/dist/translations/eu.umd.js +1 -1
  121. package/dist/translations/fa.js +1 -1
  122. package/dist/translations/fa.umd.js +1 -1
  123. package/dist/translations/fi.js +1 -1
  124. package/dist/translations/fi.umd.js +1 -1
  125. package/dist/translations/fr.js +1 -1
  126. package/dist/translations/fr.umd.js +1 -1
  127. package/dist/translations/gl.js +1 -1
  128. package/dist/translations/gl.umd.js +1 -1
  129. package/dist/translations/gu.js +1 -1
  130. package/dist/translations/gu.umd.js +1 -1
  131. package/dist/translations/he.js +1 -1
  132. package/dist/translations/he.umd.js +1 -1
  133. package/dist/translations/hi.js +1 -1
  134. package/dist/translations/hi.umd.js +1 -1
  135. package/dist/translations/hr.js +1 -1
  136. package/dist/translations/hr.umd.js +1 -1
  137. package/dist/translations/hu.js +1 -1
  138. package/dist/translations/hu.umd.js +1 -1
  139. package/dist/translations/hy.js +1 -1
  140. package/dist/translations/hy.umd.js +1 -1
  141. package/dist/translations/id.js +1 -1
  142. package/dist/translations/id.umd.js +1 -1
  143. package/dist/translations/it.js +1 -1
  144. package/dist/translations/it.umd.js +1 -1
  145. package/dist/translations/ja.js +1 -1
  146. package/dist/translations/ja.umd.js +1 -1
  147. package/dist/translations/jv.js +1 -1
  148. package/dist/translations/jv.umd.js +1 -1
  149. package/dist/translations/kk.js +1 -1
  150. package/dist/translations/kk.umd.js +1 -1
  151. package/dist/translations/km.js +1 -1
  152. package/dist/translations/km.umd.js +1 -1
  153. package/dist/translations/kn.js +1 -1
  154. package/dist/translations/kn.umd.js +1 -1
  155. package/dist/translations/ko.js +1 -1
  156. package/dist/translations/ko.umd.js +1 -1
  157. package/dist/translations/ku.js +1 -1
  158. package/dist/translations/ku.umd.js +1 -1
  159. package/dist/translations/lt.js +1 -1
  160. package/dist/translations/lt.umd.js +1 -1
  161. package/dist/translations/lv.js +1 -1
  162. package/dist/translations/lv.umd.js +1 -1
  163. package/dist/translations/ms.js +1 -1
  164. package/dist/translations/ms.umd.js +1 -1
  165. package/dist/translations/nb.js +1 -1
  166. package/dist/translations/nb.umd.js +1 -1
  167. package/dist/translations/ne.js +1 -1
  168. package/dist/translations/ne.umd.js +1 -1
  169. package/dist/translations/nl.js +1 -1
  170. package/dist/translations/nl.umd.js +1 -1
  171. package/dist/translations/no.js +1 -1
  172. package/dist/translations/no.umd.js +1 -1
  173. package/dist/translations/oc.js +1 -1
  174. package/dist/translations/oc.umd.js +1 -1
  175. package/dist/translations/pl.js +1 -1
  176. package/dist/translations/pl.umd.js +1 -1
  177. package/dist/translations/pt-br.js +1 -1
  178. package/dist/translations/pt-br.umd.js +1 -1
  179. package/dist/translations/pt.js +1 -1
  180. package/dist/translations/pt.umd.js +1 -1
  181. package/dist/translations/ro.js +1 -1
  182. package/dist/translations/ro.umd.js +1 -1
  183. package/dist/translations/ru.js +1 -1
  184. package/dist/translations/ru.umd.js +1 -1
  185. package/dist/translations/si.js +1 -1
  186. package/dist/translations/si.umd.js +1 -1
  187. package/dist/translations/sk.js +1 -1
  188. package/dist/translations/sk.umd.js +1 -1
  189. package/dist/translations/sl.js +1 -1
  190. package/dist/translations/sl.umd.js +1 -1
  191. package/dist/translations/sq.js +1 -1
  192. package/dist/translations/sq.umd.js +1 -1
  193. package/dist/translations/sr-latn.js +1 -1
  194. package/dist/translations/sr-latn.umd.js +1 -1
  195. package/dist/translations/sr.js +1 -1
  196. package/dist/translations/sr.umd.js +1 -1
  197. package/dist/translations/sv.js +1 -1
  198. package/dist/translations/sv.umd.js +1 -1
  199. package/dist/translations/th.js +1 -1
  200. package/dist/translations/th.umd.js +1 -1
  201. package/dist/translations/ti.js +1 -1
  202. package/dist/translations/ti.umd.js +1 -1
  203. package/dist/translations/tk.js +1 -1
  204. package/dist/translations/tk.umd.js +1 -1
  205. package/dist/translations/tr.js +1 -1
  206. package/dist/translations/tr.umd.js +1 -1
  207. package/dist/translations/tt.js +1 -1
  208. package/dist/translations/tt.umd.js +1 -1
  209. package/dist/translations/ug.js +1 -1
  210. package/dist/translations/ug.umd.js +1 -1
  211. package/dist/translations/uk.js +1 -1
  212. package/dist/translations/uk.umd.js +1 -1
  213. package/dist/translations/ur.js +1 -1
  214. package/dist/translations/ur.umd.js +1 -1
  215. package/dist/translations/uz.js +1 -1
  216. package/dist/translations/uz.umd.js +1 -1
  217. package/dist/translations/vi.js +1 -1
  218. package/dist/translations/vi.umd.js +1 -1
  219. package/dist/translations/zh-cn.js +1 -1
  220. package/dist/translations/zh-cn.umd.js +1 -1
  221. package/dist/translations/zh.js +1 -1
  222. package/dist/translations/zh.umd.js +1 -1
  223. package/lang/contexts.json +8 -1
  224. package/lang/translations/af.po +52 -4
  225. package/lang/translations/ar.po +52 -4
  226. package/lang/translations/ast.po +52 -4
  227. package/lang/translations/az.po +52 -4
  228. package/lang/translations/be.po +52 -4
  229. package/lang/translations/bg.po +52 -4
  230. package/lang/translations/bn.po +52 -4
  231. package/lang/translations/bs.po +52 -4
  232. package/lang/translations/ca.po +52 -4
  233. package/lang/translations/cs.po +52 -4
  234. package/lang/translations/da.po +52 -4
  235. package/lang/translations/de-ch.po +52 -4
  236. package/lang/translations/de.po +52 -4
  237. package/lang/translations/el.po +52 -4
  238. package/lang/translations/en-au.po +52 -4
  239. package/lang/translations/en-gb.po +52 -4
  240. package/lang/translations/en.po +52 -4
  241. package/lang/translations/eo.po +52 -4
  242. package/lang/translations/es-co.po +52 -4
  243. package/lang/translations/es.po +52 -4
  244. package/lang/translations/et.po +52 -4
  245. package/lang/translations/eu.po +52 -4
  246. package/lang/translations/fa.po +52 -4
  247. package/lang/translations/fi.po +52 -4
  248. package/lang/translations/fr.po +52 -4
  249. package/lang/translations/gl.po +52 -4
  250. package/lang/translations/gu.po +52 -4
  251. package/lang/translations/he.po +52 -4
  252. package/lang/translations/hi.po +52 -4
  253. package/lang/translations/hr.po +52 -4
  254. package/lang/translations/hu.po +52 -4
  255. package/lang/translations/hy.po +52 -4
  256. package/lang/translations/id.po +52 -4
  257. package/lang/translations/it.po +52 -4
  258. package/lang/translations/ja.po +52 -4
  259. package/lang/translations/jv.po +52 -4
  260. package/lang/translations/kk.po +52 -4
  261. package/lang/translations/km.po +52 -4
  262. package/lang/translations/kn.po +52 -4
  263. package/lang/translations/ko.po +52 -4
  264. package/lang/translations/ku.po +52 -4
  265. package/lang/translations/lt.po +52 -4
  266. package/lang/translations/lv.po +52 -4
  267. package/lang/translations/ms.po +52 -4
  268. package/lang/translations/nb.po +52 -4
  269. package/lang/translations/ne.po +52 -4
  270. package/lang/translations/nl.po +52 -4
  271. package/lang/translations/no.po +52 -4
  272. package/lang/translations/oc.po +52 -4
  273. package/lang/translations/pl.po +52 -4
  274. package/lang/translations/pt-br.po +52 -4
  275. package/lang/translations/pt.po +52 -4
  276. package/lang/translations/ro.po +52 -4
  277. package/lang/translations/ru.po +52 -4
  278. package/lang/translations/si.po +52 -4
  279. package/lang/translations/sk.po +52 -4
  280. package/lang/translations/sl.po +52 -4
  281. package/lang/translations/sq.po +52 -4
  282. package/lang/translations/sr-latn.po +52 -4
  283. package/lang/translations/sr.po +52 -4
  284. package/lang/translations/sv.po +52 -4
  285. package/lang/translations/th.po +52 -4
  286. package/lang/translations/ti.po +52 -4
  287. package/lang/translations/tk.po +52 -4
  288. package/lang/translations/tr.po +52 -4
  289. package/lang/translations/tt.po +52 -4
  290. package/lang/translations/ug.po +52 -4
  291. package/lang/translations/uk.po +52 -4
  292. package/lang/translations/ur.po +52 -4
  293. package/lang/translations/uz.po +52 -4
  294. package/lang/translations/vi.po +52 -4
  295. package/lang/translations/zh-cn.po +52 -4
  296. package/lang/translations/zh.po +52 -4
  297. package/package.json +15 -15
  298. package/src/aiactions/aiactions.d.ts +1 -1
  299. package/src/aiactions/aiactions.js +1 -1
  300. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  301. package/src/aiactions/model/aiactionsreply.js +1 -1
  302. package/src/aiassistant/adapters/aiadapter.js +1 -1
  303. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  304. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  305. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  306. package/src/aiassistant/aiassistant.js +1 -1
  307. package/src/aiassistant/aiassistantediting.js +1 -1
  308. package/src/aiassistant/aiassistantui.js +1 -1
  309. package/src/aiassistant/legacyerrors.js +1 -1
  310. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  311. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  312. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  313. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  314. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  315. package/src/aiassistant/ui/form/aiformview.js +1 -1
  316. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  317. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  318. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  319. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  320. package/src/aiassistant/utils/common-translations.js +1 -1
  321. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  322. package/src/aiballoon/aiballoon.d.ts +5 -1
  323. package/src/aiballoon/aiballoon.js +1 -1
  324. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  325. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  326. package/src/aiballoon/ui/aiballoonview.d.ts +40 -1
  327. package/src/aiballoon/ui/aiballoonview.js +1 -1
  328. package/src/aichat/aichat.js +1 -1
  329. package/src/aichat/aichatcontroller.d.ts +1 -1
  330. package/src/aichat/aichatcontroller.js +1 -1
  331. package/src/aichat/aichatui.d.ts +1 -0
  332. package/src/aichat/aichatui.js +1 -1
  333. package/src/aichat/model/aichatcontext.d.ts +4 -0
  334. package/src/aichat/model/aichatcontext.js +1 -1
  335. package/src/aichat/model/aichatconversation.js +1 -1
  336. package/src/aichat/model/aichatinteraction.js +1 -1
  337. package/src/aichat/model/aichatmodels.d.ts +8 -29
  338. package/src/aichat/model/aichatmodels.js +1 -1
  339. package/src/aichat/ui/aichatcontrolsview.d.ts +4 -1
  340. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  341. package/src/aichat/ui/aichatfeedview.d.ts +2 -2
  342. package/src/aichat/ui/aichatfeedview.js +1 -1
  343. package/src/aichat/ui/aichatheaderview.js +1 -1
  344. package/src/aichat/ui/aichatview.d.ts +4 -1
  345. package/src/aichat/ui/aichatview.js +1 -1
  346. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  347. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  348. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  349. package/src/aichat/ui/controls/aichatcontextpanelview.d.ts +4 -1
  350. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  351. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  352. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  353. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  354. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  355. package/src/aichat/ui/controls/resources/{aichatresourceslistview.d.ts → aichatcontextresourceslistview.d.ts} +1 -1
  356. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +23 -0
  357. package/src/aichat/ui/controls/resources/{aichatresourcesview.d.ts → aichatcontextresourcesview.d.ts} +5 -2
  358. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +23 -0
  359. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  360. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.d.ts +4 -0
  361. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  362. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  363. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  364. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  365. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  366. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  367. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  368. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.d.ts +3 -3
  369. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  370. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.d.ts +3 -3
  371. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  372. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  373. package/src/aichat/utils/eventnames.js +1 -1
  374. package/src/aichat/utils/promisequeue.js +1 -1
  375. package/src/aichat/utils/scrollmanager.js +1 -1
  376. package/src/aichathistory/aichathistory.js +1 -1
  377. package/src/aichathistory/aichathistorycontroller.js +1 -1
  378. package/src/aichathistory/aichathistoryui.js +1 -1
  379. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  380. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  381. package/src/aichathistory/ui/aichathistorylistitemview.d.ts +1 -1
  382. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -1
  383. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  384. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  385. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  386. package/src/aiconfig.d.ts +28 -7
  387. package/src/aicore/aiconnector.d.ts +1 -0
  388. package/src/aicore/aiconnector.js +1 -1
  389. package/src/aicore/aiediting.js +1 -1
  390. package/src/aicore/model/aicapabilities.js +1 -1
  391. package/src/aicore/model/aicontext.js +1 -1
  392. package/src/aicore/model/aiinteraction.js +1 -1
  393. package/src/aicore/model/aimodels.d.ts +66 -0
  394. package/src/aicore/model/aimodels.js +23 -0
  395. package/src/aicore/model/aireply.d.ts +9 -1
  396. package/src/aicore/model/aireply.js +1 -1
  397. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  398. package/src/aicore/pipeline/airesponseparser.js +2 -2
  399. package/src/aicore/ui/aidisclaimerview.js +1 -1
  400. package/src/aicore/ui/aiskeleton.js +1 -1
  401. package/src/aicore/ui/aispinner.js +1 -1
  402. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  403. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.d.ts +5 -2
  404. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  405. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.d.ts +3 -1
  406. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  407. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.d.ts +6 -2
  408. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  409. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  410. package/src/aicore/utils/common-translations.js +1 -1
  411. package/src/aicore/utils/createresizebutton.js +1 -1
  412. package/src/aicore/utils/documentposition.js +1 -1
  413. package/src/aicore/utils/documentrange.js +1 -1
  414. package/src/aicore/utils/eventnames.js +1 -1
  415. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  416. package/src/aicore/utils/getoperationsfromreply.d.ts +2 -1
  417. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  418. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  419. package/src/aicore/utils/htmlparser.js +1 -1
  420. package/src/aicore/utils/htmlstreamer.js +1 -1
  421. package/src/aieditorintegration/aieditorintegration.d.ts +2 -1
  422. package/src/aieditorintegration/aieditorintegration.js +1 -1
  423. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  424. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  425. package/src/aiquickactions/aiquickactions.js +1 -1
  426. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  427. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  428. package/src/aiquickactions/aiquickactionsui.js +1 -1
  429. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  430. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  431. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  432. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  433. package/src/aireviewmode/aireviewmode.js +1 -1
  434. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  435. package/src/aireviewmode/aireviewmodeediting.d.ts +18 -0
  436. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  437. package/src/aireviewmode/aireviewmodeui.d.ts +1 -1
  438. package/src/aireviewmode/aireviewmodeui.js +1 -1
  439. package/src/aireviewmode/model/aireviewcheck.js +1 -1
  440. package/src/aireviewmode/model/aireviewcheckcustom.d.ts +3 -3
  441. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  442. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  443. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  444. package/src/aireviewmode/model/aireviewcheckresultchange.d.ts +1 -1
  445. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  446. package/src/aireviewmode/model/aireviewcheckrun.d.ts +9 -10
  447. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  448. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  449. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  450. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  451. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  452. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.d.ts +6 -0
  453. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  454. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  455. package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.d.ts +13 -0
  456. package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +23 -0
  457. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  458. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.d.ts +9 -1
  459. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  460. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  461. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.d.ts +0 -4
  462. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  463. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  464. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  465. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  466. package/src/aitabs/aitabs.js +1 -1
  467. package/src/aitabs/aitabsmainview.js +1 -1
  468. package/src/aitabs/tabs/aitabsview.js +1 -1
  469. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  470. package/src/aitabs/tabs/tabpanelview.js +1 -1
  471. package/src/errors.js +1 -1
  472. package/src/index.d.ts +1 -0
  473. package/src/index.js +1 -1
  474. package/theme/aiballoon/aiballoon.css +12 -0
  475. package/theme/aichat/aichat-controls/aichat-context-chip.css +1 -1
  476. package/theme/aichat/aichat-controls/aichat-context-controls-balloon-panels.css +52 -43
  477. package/theme/aichat/aichat-controls/aichat-controls-button.css +8 -6
  478. package/theme/aichat/aichat-controls/aichat-controls-loader.css +36 -52
  479. package/theme/aichat/aichat-controls/prompt-capabilities.css +0 -1
  480. package/theme/aichat/aichat-controls.css +11 -27
  481. package/theme/aichat/aichat.css +2 -3
  482. package/theme/aichat/aichatfeed.css +1 -27
  483. package/theme/aichat/aichathistory.css +12 -0
  484. package/theme/aichat/aisuggestioncontainer.css +5 -0
  485. package/theme/aireviewmode/aireviewmode-check-list.css +25 -23
  486. package/theme/aireviewmode/aireviewmode-check-run-result.css +45 -0
  487. package/theme/aireviewmode/aireviewmode-check-run.css +28 -5
  488. package/theme/aireviewmode/aireviewmode.css +17 -7
  489. package/theme/aitabs/aitabsview.css +1 -1
  490. package/theme/aitabs/tabs/tabbuttonview.css +1 -0
  491. package/theme/aitabs/tabs/tabsview.css +1 -0
  492. package/theme/common/aibutton.css +27 -0
  493. package/theme/common/aiheader.css +14 -4
  494. package/theme/common/aitrackchanges.css +8 -1
  495. package/src/aichat/ui/controls/resources/aichatresourceslistview.js +0 -23
  496. package/src/aichat/ui/controls/resources/aichatresourcesview.js +0 -23
  497. package/src/aireviewmode/model/aireviewmodels.d.ts +0 -26
  498. package/src/aireviewmode/model/aireviewmodels.js +0 -23
@@ -0,0 +1,66 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
+ /**
6
+ * @module ai/aicore/model/aimodels
7
+ * @publicApi
8
+ */
9
+ import { type Locale } from 'ckeditor5/src/utils.js';
10
+ import { type AIConnector, type AIModelData } from '../../aicore/aiconnector.js';
11
+ declare const AIModels_base: {
12
+ new (): import("ckeditor5/src/utils.js").Emitter;
13
+ prototype: import("ckeditor5/src/utils.js").Emitter;
14
+ };
15
+ /**
16
+ * Stores the list of available AI models acquired from the AI connector.
17
+ */
18
+ export declare class AIModels extends /* #__PURE__ */ AIModels_base {
19
+ /**
20
+ * @inheritDoc
21
+ */
22
+ constructor({ connector, availableModels, defaultModelId }: {
23
+ connector: AIConnector;
24
+ availableModels?: string | Array<string>;
25
+ defaultModelId?: string;
26
+ });
27
+ /**
28
+ * Returns a list of available models.
29
+ */
30
+ getAll(): Promise<Array<AIModelData>>;
31
+ /**
32
+ * Returns a list of available models, which corresponds to {@link #getAll all models} narrowed down
33
+ * by the `availableModels` passed to the {@link #constructor}.
34
+ *
35
+ * **Note:** `availableModels` may include ids, names, and/or providers.
36
+ */
37
+ getAvailableModels(): Promise<Array<AIModelData>>;
38
+ /**
39
+ * Returns a specific AI model from among {@link #getAll all models} by its id.
40
+ *
41
+ * **Note:** `'auto'` id always matches the `'agent*'` model.
42
+ */
43
+ getModel(modelId?: string): Promise<AIModelData | null>;
44
+ /**
45
+ * Returns default AI model among the {@link #getAvailableModels available models} accounting for the
46
+ * `defaultModelId` passed to the {@link #constructor}.
47
+ *
48
+ * **Note**: If `'auto'` id was specified as `defaultModelId` in the {@link #constructor}, it will match the `'agent*'` model.
49
+ */
50
+ getDefault(): Promise<AIModelData | null>;
51
+ /**
52
+ * Checks whether the given model is available among the {@link #getAvailableModels available models}.
53
+ */
54
+ isAvailable(model: AIModelData): Promise<boolean>;
55
+ /**
56
+ * Translates an arbitrary list of models using the given {@link module:utils/locale~Locale} instance.
57
+ *
58
+ * **Note:**
59
+ * * Models with `id`s starting with "agent" will be named "Auto" (localized) in the user interface and get a localized description.
60
+ * * The rest of models known to the translation service keep their original name but still get a localized description.
61
+ * * Models unknown to the translation service keep their original name and description.
62
+ */
63
+ static getLocalized(locale: Locale, models: Array<AIModelData>): Array<LocalizedAIModelData>;
64
+ }
65
+ export type LocalizedAIModelData = AIModelData;
66
+ export {};
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ const _0x39524f=_0x10b9;(function(_0x13f4e8,_0x47cab6){const _0x4c4186=_0x10b9,_0x54e150=_0x13f4e8();while(!![]){try{const _0x3082c2=-parseInt(_0x4c4186(0x1c1))/0x1+parseInt(_0x4c4186(0x1a1))/0x2+-parseInt(_0x4c4186(0x1c5))/0x3*(parseInt(_0x4c4186(0x1ae))/0x4)+-parseInt(_0x4c4186(0x1c0))/0x5+parseInt(_0x4c4186(0x1a8))/0x6+-parseInt(_0x4c4186(0x1ab))/0x7*(-parseInt(_0x4c4186(0x1c3))/0x8)+-parseInt(_0x4c4186(0x1b4))/0x9*(-parseInt(_0x4c4186(0x1b9))/0xa);if(_0x3082c2===_0x47cab6)break;else _0x54e150['push'](_0x54e150['shift']());}catch(_0xf81db4){_0x54e150['push'](_0x54e150['shift']());}}}(_0xdfe7,0x4f356));import{CKEditorError as _0x2bd73a,EmitterMixin as _0x23b162,logWarning as _0x5462a6}from'ckeditor5/src/utils.js';function _0xdfe7(){const _0x591d0b=['ai-models-unable-to-retrieve','AI_MODEL_DESCRIPTION_AUTO','items','_availableModels','10nRfPEy','toUpperCase','ai-chat-model-id-unrecognized','length','provider','AI_MODEL_DESCRIPTION_','_modelList','2206490ZLvRAF','30530IBevno','getModels','144efRgKR','_defaultModelId','183mxuIeV','some','ai-chat-default-model-id-unrecognized','_filterModels','name','getModel','getAll','startsWith','getDefault','378630Ypgaqp','toLocaleLowerCase','_getModelById','_connector','push','AI_MODEL_NAME_AUTO','map','3005538VeJDgQ','string','find','31451XBSuOi','getAvailableModels','list','31532WKGWEx','isAvailable','auto','agent','getLocalized','description','4554153NEGWcN'];_0xdfe7=function(){return _0x591d0b;};return _0xdfe7();}import{getTranslation as _0x499d47}from'../utils/common-translations.js';function _0x10b9(_0x37c5bf,_0xe9e514){const _0xdfe71a=_0xdfe7();return _0x10b9=function(_0x10b99e,_0x14531d){_0x10b99e=_0x10b99e-0x19f;let _0x4ad5ee=_0xdfe71a[_0x10b99e];return _0x4ad5ee;},_0x10b9(_0x37c5bf,_0xe9e514);}export class AIModels extends _0x23b162(){[_0x39524f(0x1a4)];[_0x39524f(0x1b8)];[_0x39524f(0x1c4)];[_0x39524f(0x1bf)]=[];constructor({connector:_0x4a5d0e,availableModels:_0x2cf6ba,defaultModelId:_0x9aa429}){const _0x1fc0ae=_0x39524f;super(),this[_0x1fc0ae(0x1a4)]=_0x4a5d0e,this[_0x1fc0ae(0x1b8)]=_0x2cf6ba,this[_0x1fc0ae(0x1c4)]=_0x9aa429;}async[_0x39524f(0x1cb)](){const _0x356ad0=_0x39524f;if(!this[_0x356ad0(0x1bf)][_0x356ad0(0x1bc)])try{const _0x53d2fc=this[_0x356ad0(0x1a4)][_0x356ad0(0x1c2)](),_0x412d3d=await _0x53d2fc[_0x356ad0(0x1ad)]();this[_0x356ad0(0x1bf)]=_0x412d3d[_0x356ad0(0x1b7)];}catch(_0x17acac){throw new _0x2bd73a(_0x356ad0(0x1b5),null,{'error':_0x17acac});}return[...this[_0x356ad0(0x1bf)]];}async[_0x39524f(0x1ac)](){const _0x3d7ae2=_0x39524f,_0x1212da=await this[_0x3d7ae2(0x1cb)]();return this[_0x3d7ae2(0x1c8)](_0x1212da,this[_0x3d7ae2(0x1b8)]);}async[_0x39524f(0x1ca)](_0x4577fc){const _0x490285=_0x39524f,_0x335b63=await this[_0x490285(0x1cb)]();if(!_0x335b63[_0x490285(0x1bc)])return null;if(_0x4577fc){const _0x20f132=this[_0x490285(0x1a3)](_0x335b63,_0x4577fc);if(_0x20f132)return _0x20f132;_0x5462a6(_0x490285(0x1bb),{'modelId':_0x4577fc,'fallBackModelId':this[_0x490285(0x1c4)]});}return this[_0x490285(0x1a0)]();}async[_0x39524f(0x1a0)](){const _0xbfa537=_0x39524f,_0x5cbb6a=await this[_0xbfa537(0x1ac)]();if(!_0x5cbb6a[_0xbfa537(0x1bc)])return null;if(this[_0xbfa537(0x1c4)]){const _0xa0069c=this[_0xbfa537(0x1a3)](_0x5cbb6a,this[_0xbfa537(0x1c4)]);if(_0xa0069c)return _0xa0069c;_0x5462a6(_0xbfa537(0x1c7),{'defaultModelId':this[_0xbfa537(0x1c4)],'fallBackModelId':_0x5cbb6a[0x0]['id']});}return _0x5cbb6a[0x0];}async[_0x39524f(0x1af)](_0x219123){const _0x2fd10f=_0x39524f;return(await this[_0x2fd10f(0x1ac)]())[_0x2fd10f(0x1c6)](_0x205f0c=>_0x205f0c[_0x2fd10f(0x1c9)]===_0x219123[_0x2fd10f(0x1c9)]&&_0x205f0c[_0x2fd10f(0x1bd)]===_0x219123[_0x2fd10f(0x1bd)]);}[_0x39524f(0x1c8)](_0xcf4be5,_0x53d320){const _0x2d8031=_0x39524f;let _0x366aa7;if(_0x53d320){_0x366aa7=[];const _0x4c4ab2=_0x2d8031(0x1a9)==typeof _0x53d320?[_0x53d320[_0x2d8031(0x1a2)]()]:_0x53d320[_0x2d8031(0x1a7)](_0x108e9e=>_0x108e9e[_0x2d8031(0x1a2)]());for(const _0x2f46ba of _0x4c4ab2)for(const _0x11b08f of _0xcf4be5)(_0x11b08f['id'][_0x2d8031(0x1a2)]()===_0x2f46ba||_0x11b08f[_0x2d8031(0x1c9)][_0x2d8031(0x1a2)]()===_0x2f46ba||Ne(_0x11b08f)&&_0x2d8031(0x1b0)===_0x2f46ba||_0x11b08f[_0x2d8031(0x1bd)][_0x2d8031(0x1a2)]()===_0x2f46ba||_0x11b08f['id'][_0x2d8031(0x1a2)]()[_0x2d8031(0x19f)](_0x2f46ba))&&_0x366aa7[_0x2d8031(0x1a5)](_0x11b08f);}else _0x366aa7=_0xcf4be5;return _0x366aa7;}[_0x39524f(0x1a3)](_0x4d0586,_0x2038d4){const _0x3e3ce6=_0x39524f;return _0x4d0586[_0x3e3ce6(0x1aa)](_0xc17cd6=>Ne(_0xc17cd6)&&_0x3e3ce6(0x1b0)===_0x2038d4?_0xc17cd6:_0xc17cd6['id']===_0x2038d4)||null;}static[_0x39524f(0x1b2)](_0x40589d,_0x51fc7a){const _0x129ed3=_0x39524f;return _0x51fc7a[_0x129ed3(0x1a7)](_0x1e64b7=>{const _0x282a18=_0x129ed3;if(Ne(_0x1e64b7))_0x1e64b7[_0x282a18(0x1c9)]=_0x499d47(_0x40589d,_0x282a18(0x1a6)),_0x1e64b7[_0x282a18(0x1b3)]=_0x499d47(_0x40589d,_0x282a18(0x1b6));else _0x499d47(_0x40589d,_0x282a18(0x1be)+_0x1e64b7['id'][_0x282a18(0x1ba)]())[_0x282a18(0x19f)](_0x282a18(0x1be))||(_0x1e64b7[_0x282a18(0x1b3)]=_0x499d47(_0x40589d,_0x282a18(0x1be)+_0x1e64b7['id'][_0x282a18(0x1ba)]()));return _0x1e64b7;});}}function Ne(_0x4946e7){const _0x275655=_0x39524f;return _0x4946e7['id'][_0x275655(0x19f)](_0x275655(0x1b1));}
@@ -79,7 +79,7 @@ export declare class AIReply extends /* #__PURE__ */ AIReply_base {
79
79
  /**
80
80
  * @inheritDoc
81
81
  */
82
- constructor({ type, content, isDone, interactionId, areActionsDisabled, documentContextContent, editor }: {
82
+ constructor({ type, content, isDone, interactionId, areActionsDisabled, documentContextContent, editor, id }: {
83
83
  type: AIReplyType;
84
84
  interactionId: string;
85
85
  areActionsDisabled?: boolean;
@@ -87,6 +87,7 @@ export declare class AIReply extends /* #__PURE__ */ AIReply_base {
87
87
  isDone?: boolean;
88
88
  documentContextContent?: string;
89
89
  editor?: Editor;
90
+ id?: string;
90
91
  });
91
92
  /**
92
93
  * Appends new content to the reply.
@@ -110,6 +111,13 @@ export declare class AIReply extends /* #__PURE__ */ AIReply_base {
110
111
  * Fires event.
111
112
  */
112
113
  setChangeGroupState(index: number, state: AIReplyChangeGroupState): void;
114
+ /**
115
+ * Returns the content parts of the reply that correspond to {@link #changeGroups}.
116
+ */
117
+ getContentParts({ showDiff, groupIndex }: {
118
+ showDiff: boolean;
119
+ groupIndex?: number;
120
+ }): Array<AISuggestionContentPartDefinition>;
113
121
  }
114
122
  /**
115
123
  * Validates if the given reply type (SSE type) is a valid reply type.
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x293809=_0x4667;(function(_0x4dba5c,_0x273149){const _0x45b1e6=_0x4667,_0x5759f2=_0x4dba5c();while(!![]){try{const _0x4275c3=-parseInt(_0x45b1e6(0x9b))/0x1*(-parseInt(_0x45b1e6(0x97))/0x2)+-parseInt(_0x45b1e6(0x95))/0x3*(-parseInt(_0x45b1e6(0xba))/0x4)+-parseInt(_0x45b1e6(0xaf))/0x5*(-parseInt(_0x45b1e6(0xc1))/0x6)+-parseInt(_0x45b1e6(0xb6))/0x7*(parseInt(_0x45b1e6(0x8c))/0x8)+parseInt(_0x45b1e6(0x86))/0x9*(parseInt(_0x45b1e6(0xa3))/0xa)+parseInt(_0x45b1e6(0xa8))/0xb+-parseInt(_0x45b1e6(0xa4))/0xc*(parseInt(_0x45b1e6(0x8d))/0xd);if(_0x4275c3===_0x273149)break;else _0x5759f2['push'](_0x5759f2['shift']());}catch(_0x2614e2){_0x5759f2['push'](_0x5759f2['shift']());}}}(_0x1ff0,0xedb27));import{ObservableMixin as _0x1b50a2,uid as _0x79310c}from'ckeditor5/src/utils.js';import{Element as _0x343edc,findAll as _0x39f783,getAttribute as _0x356648,getParents as _0x5f3d60,Document as _0x115def,parse as _0x1683b6,Text as _0x414071}from'../utils/htmlparser.js';import{AIResponseParser as _0x319c6e}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x199385}from'../pipeline/airesponseapplier.js';import{getTranslation as _0x17272e}from'../utils/common-translations.js';export const AI_REPLY_TYPES=[_0x293809(0xbe),_0x293809(0x87),_0x293809(0xb3),_0x293809(0xad)];export const AI_REPLY_TYPES_IGNORED=[_0x293809(0xcd)];export const AI_REPLY_TITLE_TYPE=_0x293809(0xcd);function _0x4667(_0x1d0153,_0x121efc){const _0x1ff03e=_0x1ff0();return _0x4667=function(_0x4667e9,_0x3ff6cf){_0x4667e9=_0x4667e9-0x82;let _0x3a012e=_0x1ff03e[_0x4667e9];return _0x3a012e;},_0x4667(_0x1d0153,_0x121efc);}export class AIReply extends _0x1b50a2(){['id'];[_0x293809(0x8e)];[_0x293809(0x88)];[_0x293809(0xab)]=[];[_0x293809(0xaa)]=new _0x115def([]);[_0x293809(0x84)]=new _0x115def([]);[_0x293809(0xc6)]=[];[_0x293809(0x96)]=!0x1;[_0x293809(0x94)];[_0x293809(0x9f)];[_0x293809(0xa7)];[_0x293809(0xbd)];constructor({type:_0x59dad2,content:_0x2bb018='',isDone:_0x3f8ba1=!0x1,interactionId:_0xd64245,areActionsDisabled:_0x5e9ae7,documentContextContent:_0x3c44c8,editor:_0x36019a}){const _0x2c31c2=_0x293809;super(),this['id']=_0x79310c(),this[_0x2c31c2(0x8e)]=_0xd64245,this[_0x2c31c2(0x88)]=_0x59dad2,this[_0x2c31c2(0x96)]=!!_0x5e9ae7,this[_0x2c31c2(0xbd)]=_0x36019a,this[_0x2c31c2(0x9f)]=new _0x319c6e(),this[_0x2c31c2(0xa7)]=new _0x199385(),this[_0x2c31c2(0x94)]=_0x1683b6(_0x3c44c8||''),this[_0x2c31c2(0xb4)](_0x2c31c2(0xa9),_0x3f8ba1),this['on'](_0x2c31c2(0x90),()=>{const _0x466991=_0x2c31c2;this[_0x466991(0x9a)]();}),this[_0x2c31c2(0xb4)](_0x2c31c2(0xa6),_0x2bb018);}[_0x293809(0xbf)](_0x257d61){const _0x5f0b86=_0x293809;this[_0x5f0b86(0xb4)](_0x5f0b86(0xa6),this[_0x5f0b86(0xa6)]+_0x257d61);}[_0x293809(0xb7)](){const _0x2d4a25=_0x293809;this[_0x2d4a25(0xa9)]||(this[_0x2d4a25(0xb4)](_0x2d4a25(0xa9),!0x0),this[_0x2d4a25(0x9a)]());}[_0x293809(0xcc)](){const _0x162086=_0x293809;this[_0x162086(0x93)]();}[_0x293809(0xac)](_0x476758,_0x18f1cb){const _0x17c149=_0x293809;this[_0x17c149(0xc6)][_0x476758][_0x17c149(0xc7)]=_0x18f1cb,this[_0x17c149(0xc3)](_0x17c149(0xb5),{'reply':this,'index':_0x476758,'state':_0x18f1cb});}[_0x293809(0x9a)](){const _0x8396b8=_0x293809;if(_0x8396b8(0xbe)===this[_0x8396b8(0x88)]){this[_0x8396b8(0xaa)]=this[_0x8396b8(0x9f)][_0x8396b8(0x8f)](this[_0x8396b8(0xa6)]);const _0x3e7432=this[_0x8396b8(0xc6)];this[_0x8396b8(0xbb)]();const _0x3cb575=this[_0x8396b8(0xca)](_0x3e7432,this[_0x8396b8(0xc6)]);(_0x3cb575[_0x8396b8(0x91)]||this[_0x8396b8(0xa9)])&&this[_0x8396b8(0xc3)](_0x8396b8(0xc5),this,_0x3cb575);}else this[_0x8396b8(0xaa)]=this[_0x8396b8(0x9f)][_0x8396b8(0xc8)](this[_0x8396b8(0xa6)]),this[_0x8396b8(0xc3)](_0x8396b8(0xc5),this);}[_0x293809(0xca)](_0x5c95d3,_0x5eff1f){const _0x94f089=_0x293809,_0x5eae6f=[];for(const _0x50cc28 of _0x5eff1f){const _0x420ef8=_0x5c95d3[_0x50cc28[_0x94f089(0xcf)]];_0x420ef8?_0x420ef8[_0x94f089(0x92)][_0x94f089(0x91)]!==_0x50cc28[_0x94f089(0x92)][_0x94f089(0x91)]?_0x5eae6f[_0x94f089(0xa5)](_0x50cc28):_0x420ef8[_0x94f089(0x92)][_0x94f089(0x9d)]((_0x4c69eb,_0x29a7d6)=>{const _0x3f11e2=_0x94f089,_0x1241fa=_0x50cc28[_0x3f11e2(0x92)][_0x29a7d6];_0x4c69eb['id']!==_0x1241fa['id']&&_0x5eae6f[_0x3f11e2(0xa5)](_0x50cc28);}):_0x5eae6f[_0x94f089(0xa5)](_0x50cc28);}return _0x5eae6f;}[_0x293809(0xbb)](){const _0x2f8e24=_0x293809,_0x3c3a5f=new _0x343edc('p',{},[new _0x343edc(_0x2f8e24(0x99),{'style':_0x2f8e24(0xc9)},[new _0x414071(_0x17272e(this[_0x2f8e24(0xbd)][_0x2f8e24(0x85)],_0x2f8e24(0xb2)))])]),_0x96f71c=this[_0x2f8e24(0xa7)][_0x2f8e24(0xb0)](this[_0x2f8e24(0xaa)],this[_0x2f8e24(0x94)][_0x2f8e24(0x89)](!0x0),{'markUnstableElements':!this[_0x2f8e24(0xa9)],'replaceRemovedWith':_0x3c3a5f,'cutAfterLastChange':!this[_0x2f8e24(0xa9)]});if(!_0x96f71c[_0x2f8e24(0x8b)][_0x2f8e24(0x91)]&&!this[_0x2f8e24(0xa9)])return;this[_0x2f8e24(0x84)]=_0x96f71c[_0x2f8e24(0xaa)];let _0x369017=[];if(_0x39f783(_0xe51af1=>{const _0x5390fe=_0x2f8e24,_0x4dbf26=_0x356648(_0xe51af1,_0x5390fe(0x82));if(!_0x4dbf26||!_0x259baf(_0x4dbf26))return!0x1;const _0x5ad28e=[_0xe51af1,..._0x5f3d60(_0xe51af1)]['at'](-0x2);if(_0xe51af1!=_0x5ad28e){const _0x2d3c9c=_0x356648(_0x5ad28e,_0x5390fe(0x82));_0x259baf(_0x2d3c9c)||(_0x369017[_0x5390fe(0xa5)]({'node':_0x5ad28e,'id':_0x2d3c9c,'type':_0x5390fe(0xae)}),_0x96f71c[_0x5390fe(0x8b)][_0x5390fe(0xa5)](_0x2d3c9c));}else _0x96f71c[_0x5390fe(0x8b)][_0x5390fe(0x98)](_0x4dbf26)?_0x369017[_0x5390fe(0xa5)]({'node':_0xe51af1,'type':_0x5390fe(0xae),'id':_0x4dbf26}):_0x96f71c[_0x5390fe(0x9c)][_0x5390fe(0x98)](_0x4dbf26)?_0x369017[_0x5390fe(0xa5)]({'node':_0xe51af1,'type':_0x5390fe(0xc0),'id':_0x4dbf26,'anchorId':_0x356648(_0xe51af1[_0x5390fe(0xa2)],_0x5390fe(0x82))}):_0x369017[_0x5390fe(0xa5)]({'node':_0xe51af1,'type':_0x5390fe(0x9e),'id':_0x4dbf26});return!0x0;},this[_0x2f8e24(0x84)]),_0x369017=_0x369017[_0x2f8e24(0xa0)](({node:_0x259724})=>[..._0x5f3d60(_0x259724),_0x259724][_0x2f8e24(0xbc)](_0x3da2f8=>!_0x356648(_0x3da2f8,_0x2f8e24(0xce)))),0x0==_0x369017[_0x2f8e24(0x91)])return;const _0x4d4520=[[_0x369017[0x0]]];for(let _0x24884e=0x1;_0x24884e<_0x369017[_0x2f8e24(0x91)];_0x24884e++){const _0x4b76d4=_0x4d4520[_0x4d4520[_0x2f8e24(0x91)]-0x1],_0x4f72e8=_0x4b76d4[_0x4b76d4[_0x2f8e24(0x91)]-0x1];_0x369017[_0x24884e][_0x2f8e24(0xb9)][_0x2f8e24(0xa2)]==_0x4f72e8[_0x2f8e24(0xb9)]&&_0x2f8e24(0xae)!=_0x369017[_0x24884e][_0x2f8e24(0x88)]&&_0x2f8e24(0xae)!=_0x4f72e8[_0x2f8e24(0x88)]?_0x4b76d4[_0x2f8e24(0xa5)](_0x369017[_0x24884e]):_0x4d4520[_0x2f8e24(0xa5)]([_0x369017[_0x24884e]]);}for(const _0x3895a0 of _0x4d4520){const _0x1be215=_0x3895a0[0x0],_0x23581d=_0x3895a0[_0x3895a0[_0x2f8e24(0x91)]-0x1],_0x2b90e3=_0x2cdbba(_0x1be215[_0x2f8e24(0xb9)][_0x2f8e24(0xa2)]);_0x2b90e3&&_0x3895a0[_0x2f8e24(0xb8)](_0x2b90e3);const _0x46cc7d=_0x2cdbba(_0x23581d[_0x2f8e24(0xb9)][_0x2f8e24(0xc4)]);_0x46cc7d&&_0x3895a0[_0x2f8e24(0xa5)](_0x46cc7d);}function _0x259baf(_0x3d552b){const _0x202092=_0x2f8e24;return _0x96f71c[_0x202092(0x8b)][_0x202092(0x98)](_0x3d552b)||_0x96f71c[_0x202092(0x9c)][_0x202092(0x98)](_0x3d552b)||_0x96f71c[_0x202092(0x8a)][_0x202092(0x98)](_0x3d552b);}function _0x2cdbba(_0x22baba){const _0x4e298b=_0x2f8e24;if(_0x22baba&&_0x356648(_0x22baba,_0x4e298b(0x82))&&!_0x356648(_0x22baba,_0x4e298b(0xce))){const _0x2979d2=_0x356648(_0x22baba,_0x4e298b(0x82));if(!_0x259baf(_0x2979d2))return{'node':_0x22baba,'type':_0x4e298b(0xcb),'id':_0x2979d2};}return null;}this[_0x2f8e24(0xc6)]=_0x4d4520[_0x2f8e24(0xc2)]((_0x37b4e2,_0x5a0012)=>({'changes':_0x37b4e2,'state':_0x2f8e24(0xb1),'index':_0x5a0012}));}}export function isValidReplyType(_0x1e4a59){const _0x766f1=_0x293809;return Object[_0x766f1(0xa1)](AI_REPLY_TYPES)[_0x766f1(0x98)](_0x1e4a59);}export function isIgnoredReplyType(_0x1f43e0){const _0x25b1ed=_0x293809;return AI_REPLY_TYPES_IGNORED[_0x25b1ed(0x98)](_0x1f43e0);}export function isReplyTitleType(_0x3894a1){return _0x3894a1===AI_REPLY_TITLE_TYPE;}function _0x1ff0(){const _0x459f0b=['editor','modification-delta','appendContent','new','6894348zcTeFe','map','fire','nextSibling','replyContentUpdated','changeGroups','state','convertMarkdownToHTML','color:\x20#808080;\x20font-style:\x20italic','_getDifferentChangeGroups','context','destroy','conversation-title','data-unstable','index','data-id','source','parsedMergedContent','locale','8748Biphxn','text-delta','type','cloneNode','removedNodeIds','modifiedNodeIds','13438728tehbIv','26eMGgEw','interactionId','parseAndNormalizeHTML','change:content','length','changes','stopListening','documentContextContent','15AmdDKl','areActionsDisabled','35516DMhBvD','includes','span','onContentChange','9qTDnkp','newNodeIds','forEach','removed','aiResponseParser','filter','values','previousSibling','7890ADMfoi','7649328HZfWbP','push','content','aiResponseApplier','14237333ZafDXj','isDone','parsedContent','sources','setChangeGroupState','reasoning','modified','5zRreSC','merge','pending','AI_SUGGESTION_CONTENT_PART_REMOVED','web-search','set','replyChangeGroupStateUpdated','7MMiWlT','done','unshift','node','446596tbXnwg','updateChangeGroups','every'];_0x1ff0=function(){return _0x459f0b;};return _0x1ff0();}export function isSourceType(_0xdf7581){const _0x2014b7=_0x293809;return _0x2014b7(0x83)===_0xdf7581;}
23
+ const _0x13f60d=_0x384c;(function(_0x4a4cdb,_0x471075){const _0x5ba438=_0x384c,_0x395af2=_0x4a4cdb();while(!![]){try{const _0x3fb2df=-parseInt(_0x5ba438(0xcd))/0x1+parseInt(_0x5ba438(0xf0))/0x2*(-parseInt(_0x5ba438(0xd7))/0x3)+parseInt(_0x5ba438(0xd4))/0x4+-parseInt(_0x5ba438(0xd5))/0x5*(-parseInt(_0x5ba438(0xd2))/0x6)+parseInt(_0x5ba438(0xec))/0x7+-parseInt(_0x5ba438(0xde))/0x8*(parseInt(_0x5ba438(0xc9))/0x9)+parseInt(_0x5ba438(0xc5))/0xa;if(_0x3fb2df===_0x471075)break;else _0x395af2['push'](_0x395af2['shift']());}catch(_0x4788bd){_0x395af2['push'](_0x395af2['shift']());}}}(_0x3cc1,0x4f8b4));import{CKEditorError as _0x33f035,ObservableMixin as _0x3c6092,uid as _0x537489}from'ckeditor5/src/utils.js';import{Element as _0xcaff6d,findAll as _0x307a86,getAttribute as _0xc5f579,getParents as _0x34c83b,Document as _0x4f5ab6,parse as _0x113494,Text as _0x35cf97}from'../utils/htmlparser.js';import{AIResponseParser as _0x4a0224}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x2e9cef}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x1afaac}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0x428f98}from'../utils/common-translations.js';import{cloneDeep as _0x1d2873}from'es-toolkit';function _0x384c(_0x4820b6,_0x23bf16){const _0x3cc1a0=_0x3cc1();return _0x384c=function(_0x384c3c,_0x3601b2){_0x384c3c=_0x384c3c-0xc5;let _0x200def=_0x3cc1a0[_0x384c3c];return _0x200def;},_0x384c(_0x4820b6,_0x23bf16);}function _0x3cc1(){const _0x4ca59b=['source','context','changes','unshift','text-delta','changeGroups','forEach','getContentParts','appendContent','2976141xXOqDp','sources','cachedSuggestionContentParts','color:\x20#808080;\x20font-style:\x20italic','2hIpvwQ','replyContentUpdated','conversation-title','content','withoutDiff','locale','type','node','interactionId','stopListening','includes','data-id','every','fire','updateChangeGroups','newNodeIds','removed','destroy','editor','filter','aiResponseParser','areActionsDisabled','AI_SUGGESTION_CONTENT_PART_REMOVED','splice','indexOf','push','parsedMergedContent','replyChangeGroupStateUpdated','merge','withDiff','data-unstable','state','change:content','web-search','removedNodeIds','map','previousSibling','documentContextContent','_setCachedContentParts','isDone','modification-delta','values','cloneNode','2478480VfjlHT','span','index','_getCachedContentParts','18mTegXT','done','parseAndNormalizeHTML','new','555416qqPAOA','reasoning','modified','onContentChange','ai-get-editor-from-context-no-editor','4380Zrzqei','modifiedNodeIds','1517424vMpTQq','250ApCfns','convertMarkdownToHTML','80877baEZSe','aiResponseApplier','_getDifferentChangeGroups','parsedContent','find','length','nextSibling','722720Kjtmcz','setChangeGroupState','ai-reply-get-content-parts-group-not-found','pending','set'];_0x3cc1=function(){return _0x4ca59b;};return _0x3cc1();}export const AI_REPLY_TYPES=[_0x13f60d(0x118),_0x13f60d(0xe7),_0x13f60d(0x111),_0x13f60d(0xce)];export const AI_REPLY_TYPES_IGNORED=[_0x13f60d(0xf2)];export const AI_REPLY_TITLE_TYPE=_0x13f60d(0xf2);export class AIReply extends _0x3c6092(){['id'];[_0x13f60d(0xf8)];[_0x13f60d(0xf6)];[_0x13f60d(0xed)]=[];[_0x13f60d(0xda)]=new _0x4f5ab6([]);[_0x13f60d(0x10a)]=new _0x4f5ab6([]);[_0x13f60d(0xe8)]=[];[_0x13f60d(0x105)]=!0x1;[_0x13f60d(0x115)];[_0x13f60d(0x104)];[_0x13f60d(0xd8)];[_0x13f60d(0x102)];[_0x13f60d(0xee)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x328c69,content:_0x44dedb='',isDone:_0x37ee2d=!0x1,interactionId:_0x5ef03c,areActionsDisabled:_0x3ea292,documentContextContent:_0x4c12eb,editor:_0x521330,id:_0xb4340c}){const _0x3f06c8=_0x13f60d;super(),this['id']=_0xb4340c||_0x537489(),this[_0x3f06c8(0xf8)]=_0x5ef03c,this[_0x3f06c8(0xf6)]=_0x328c69,this[_0x3f06c8(0x105)]=!!_0x3ea292,this[_0x3f06c8(0x102)]=_0x521330,this[_0x3f06c8(0x104)]=new _0x4a0224(),this[_0x3f06c8(0xd8)]=new _0x2e9cef(),this[_0x3f06c8(0x115)]=_0x113494(_0x4c12eb||''),this[_0x3f06c8(0xe2)](_0x3f06c8(0x117),_0x37ee2d),this['on'](_0x3f06c8(0x110),()=>{const _0x427caa=_0x3f06c8;this[_0x427caa(0xd0)]();}),this[_0x3f06c8(0xe2)](_0x3f06c8(0xf3),_0x44dedb);}[_0x13f60d(0xeb)](_0x3298f3){const _0x597aa2=_0x13f60d;this[_0x597aa2(0xe2)](_0x597aa2(0xf3),this[_0x597aa2(0xf3)]+_0x3298f3);}[_0x13f60d(0xca)](){const _0x6caba9=_0x13f60d;this[_0x6caba9(0x117)]||(this[_0x6caba9(0xe2)](_0x6caba9(0x117),!0x0),this[_0x6caba9(0xd0)]());}[_0x13f60d(0x101)](){const _0x49978f=_0x13f60d;this[_0x49978f(0xf9)]();}[_0x13f60d(0xdf)](_0x5788b4,_0x4b6389){const _0x5ac2c6=_0x13f60d;this[_0x5ac2c6(0xe8)][_0x5788b4][_0x5ac2c6(0x10f)]=_0x4b6389,this[_0x5ac2c6(0xfd)](_0x5ac2c6(0x10b),{'reply':this,'index':_0x5788b4,'state':_0x4b6389});}[_0x13f60d(0xea)]({showDiff:_0x2c984d,groupIndex:_0x5e5dbe}){const _0x2bcd4e=_0x13f60d;if(!this[_0x2bcd4e(0x102)])throw new _0x33f035(_0x2bcd4e(0xd1),null,{'aiReply':this});const _0x31124e=this[_0x2bcd4e(0xc8)](_0x2c984d,_0x5e5dbe);if(_0x31124e)return _0x31124e;let _0x2613f4=[];if(void 0x0===_0x5e5dbe)_0x2613f4=this[_0x2bcd4e(0xe8)];else{const _0x53fadd=this[_0x2bcd4e(0xe8)][_0x2bcd4e(0xdb)](({index:_0x3c487d})=>_0x3c487d===_0x5e5dbe);if(!_0x53fadd)throw new _0x33f035(_0x2bcd4e(0xe0),null,{'aiReply':this,'groupIndex':_0x5e5dbe});_0x2613f4=[_0x53fadd];}const _0x55928c=_0x1afaac({'editor':this[_0x2bcd4e(0x102)],'showDiff':_0x2c984d,'changeGroups':_0x2613f4,'documentContextContent':this[_0x2bcd4e(0x115)]});return this[_0x2bcd4e(0x116)](_0x2c984d,_0x55928c),_0x55928c;}[_0x13f60d(0xc8)](_0x2b8f74,_0x5ccade){const _0x1de5c9=_0x13f60d,_0x534b3b=_0x2b8f74?_0x1de5c9(0x10d):_0x1de5c9(0xf4);if(!this[_0x1de5c9(0xee)][_0x534b3b][_0x1de5c9(0xdc)])return null;const _0x35832b=this[_0x1de5c9(0xee)][_0x534b3b];if(void 0x0===_0x5ccade)return _0x1d2873(_0x35832b);{const _0x5095dc=_0x35832b[_0x1de5c9(0xdb)](({index:_0x120d02})=>_0x120d02===_0x5ccade);if(_0x5095dc)return[_0x1d2873(_0x5095dc)];}return null;}[_0x13f60d(0x116)](_0x12471d,_0x1eb305){const _0x3b9dda=_0x13f60d,_0x387c84=_0x12471d?_0x3b9dda(0x10d):_0x3b9dda(0xf4);_0x1eb305[_0x3b9dda(0xe9)](_0x4fed7a=>{const _0x6135fb=_0x3b9dda,_0x2e51fe=this[_0x6135fb(0xee)][_0x387c84],_0x55a6c8=_0x2e51fe[_0x6135fb(0xdb)](({index:_0x23b8cd})=>_0x23b8cd===_0x4fed7a[_0x6135fb(0xc7)]);if(_0x55a6c8){const _0xba7531=_0x2e51fe[_0x6135fb(0x108)](_0x55a6c8);_0x2e51fe[_0x6135fb(0x107)](_0xba7531,0x1,_0x4fed7a);}else _0x2e51fe[_0x6135fb(0x109)](_0x4fed7a);});}[_0x13f60d(0xd0)](){const _0x13ed7e=_0x13f60d;if(_0x13ed7e(0x118)===this[_0x13ed7e(0xf6)]){this[_0x13ed7e(0xda)]=this[_0x13ed7e(0x104)][_0x13ed7e(0xcb)](this[_0x13ed7e(0xf3)]);const _0x252ee0=this[_0x13ed7e(0xe8)];this[_0x13ed7e(0xfe)]();const _0x4d15fa=this[_0x13ed7e(0xd9)](_0x252ee0,this[_0x13ed7e(0xe8)]);(_0x4d15fa[_0x13ed7e(0xdc)]||this[_0x13ed7e(0x117)])&&(this[_0x13ed7e(0xfd)](_0x13ed7e(0xf1),this,_0x4d15fa),this[_0x13ed7e(0xee)][_0x13ed7e(0x10d)][_0x13ed7e(0xdc)]=this[_0x13ed7e(0xee)][_0x13ed7e(0xf4)][_0x13ed7e(0xdc)]=0x0);}else this[_0x13ed7e(0xda)]=this[_0x13ed7e(0x104)][_0x13ed7e(0xd6)](this[_0x13ed7e(0xf3)]),this[_0x13ed7e(0xfd)](_0x13ed7e(0xf1),this);}[_0x13f60d(0xd9)](_0x4420a6,_0x60744c){const _0x41c163=_0x13f60d,_0x3a2552=[];for(const _0xfec401 of _0x60744c){const _0xa79224=_0x4420a6[_0xfec401[_0x41c163(0xc7)]];_0xa79224?_0xa79224[_0x41c163(0xe5)][_0x41c163(0xdc)]!==_0xfec401[_0x41c163(0xe5)][_0x41c163(0xdc)]?_0x3a2552[_0x41c163(0x109)](_0xfec401):_0xa79224[_0x41c163(0xe5)][_0x41c163(0xe9)]((_0x22ad34,_0x487c37)=>{const _0x23735e=_0x41c163,_0x22c6ae=_0xfec401[_0x23735e(0xe5)][_0x487c37];_0x22ad34['id']!==_0x22c6ae['id']&&_0x3a2552[_0x23735e(0x109)](_0xfec401);}):_0x3a2552[_0x41c163(0x109)](_0xfec401);}return _0x3a2552;}[_0x13f60d(0xfe)](){const _0x11e480=_0x13f60d,_0x1ce16b=new _0xcaff6d('p',{},[new _0xcaff6d(_0x11e480(0xc6),{'style':_0x11e480(0xef)},[new _0x35cf97(_0x428f98(this[_0x11e480(0x102)][_0x11e480(0xf5)],_0x11e480(0x106)))])]),_0x4a0fdd=this[_0x11e480(0xd8)][_0x11e480(0x10c)](this[_0x11e480(0xda)],this[_0x11e480(0x115)][_0x11e480(0x11a)](!0x0),{'markUnstableElements':!this[_0x11e480(0x117)],'replaceRemovedWith':_0x1ce16b,'cutAfterLastChange':!this[_0x11e480(0x117)]});if(!_0x4a0fdd[_0x11e480(0xd3)][_0x11e480(0xdc)]&&!this[_0x11e480(0x117)])return;this[_0x11e480(0x10a)]=_0x4a0fdd[_0x11e480(0xda)];let _0x22468f=[];if(_0x307a86(_0x370c62=>{const _0xdcdc71=_0x11e480,_0x200954=_0xc5f579(_0x370c62,_0xdcdc71(0xfb));if(!_0x200954||!_0x1e38ab(_0x200954))return!0x1;const _0x565ec8=[_0x370c62,..._0x34c83b(_0x370c62)]['at'](-0x2);if(_0x370c62!=_0x565ec8){const _0x4866de=_0xc5f579(_0x565ec8,_0xdcdc71(0xfb));_0x1e38ab(_0x4866de)||(_0x22468f[_0xdcdc71(0x109)]({'node':_0x565ec8,'id':_0x4866de,'type':_0xdcdc71(0xcf)}),_0x4a0fdd[_0xdcdc71(0xd3)][_0xdcdc71(0x109)](_0x4866de));}else _0x4a0fdd[_0xdcdc71(0xd3)][_0xdcdc71(0xfa)](_0x200954)?_0x22468f[_0xdcdc71(0x109)]({'node':_0x370c62,'type':_0xdcdc71(0xcf),'id':_0x200954}):_0x4a0fdd[_0xdcdc71(0xff)][_0xdcdc71(0xfa)](_0x200954)?_0x22468f[_0xdcdc71(0x109)]({'node':_0x370c62,'type':_0xdcdc71(0xcc),'id':_0x200954,'anchorId':_0xc5f579(_0x370c62[_0xdcdc71(0x114)],_0xdcdc71(0xfb))}):_0x22468f[_0xdcdc71(0x109)]({'node':_0x370c62,'type':_0xdcdc71(0x100),'id':_0x200954});return!0x0;},this[_0x11e480(0x10a)]),_0x22468f=_0x22468f[_0x11e480(0x103)](({node:_0x54cfc7})=>[..._0x34c83b(_0x54cfc7),_0x54cfc7][_0x11e480(0xfc)](_0x2d91b8=>!_0xc5f579(_0x2d91b8,_0x11e480(0x10e)))),0x0==_0x22468f[_0x11e480(0xdc)])return;const _0x9adff8=[[_0x22468f[0x0]]];for(let _0x42645d=0x1;_0x42645d<_0x22468f[_0x11e480(0xdc)];_0x42645d++){const _0x4a9030=_0x9adff8[_0x9adff8[_0x11e480(0xdc)]-0x1],_0x300852=_0x4a9030[_0x4a9030[_0x11e480(0xdc)]-0x1];_0x22468f[_0x42645d][_0x11e480(0xf7)][_0x11e480(0x114)]==_0x300852[_0x11e480(0xf7)]&&_0x11e480(0xcf)!=_0x22468f[_0x42645d][_0x11e480(0xf6)]&&_0x11e480(0xcf)!=_0x300852[_0x11e480(0xf6)]?_0x4a9030[_0x11e480(0x109)](_0x22468f[_0x42645d]):_0x9adff8[_0x11e480(0x109)]([_0x22468f[_0x42645d]]);}for(const _0x5c7bc3 of _0x9adff8){const _0x668006=_0x5c7bc3[0x0],_0x1b2782=_0x5c7bc3[_0x5c7bc3[_0x11e480(0xdc)]-0x1],_0x4a23a4=_0x172124(_0x668006[_0x11e480(0xf7)][_0x11e480(0x114)]);_0x4a23a4&&_0x5c7bc3[_0x11e480(0xe6)](_0x4a23a4);const _0x4ae4ed=_0x172124(_0x1b2782[_0x11e480(0xf7)][_0x11e480(0xdd)]);_0x4ae4ed&&_0x5c7bc3[_0x11e480(0x109)](_0x4ae4ed);}function _0x1e38ab(_0x32b690){const _0x18a3ed=_0x11e480;return _0x4a0fdd[_0x18a3ed(0xd3)][_0x18a3ed(0xfa)](_0x32b690)||_0x4a0fdd[_0x18a3ed(0xff)][_0x18a3ed(0xfa)](_0x32b690)||_0x4a0fdd[_0x18a3ed(0x112)][_0x18a3ed(0xfa)](_0x32b690);}function _0x172124(_0x317017){const _0x460147=_0x11e480;if(_0x317017&&_0xc5f579(_0x317017,_0x460147(0xfb))&&!_0xc5f579(_0x317017,_0x460147(0x10e))){const _0x1a050c=_0xc5f579(_0x317017,_0x460147(0xfb));if(!_0x1e38ab(_0x1a050c))return{'node':_0x317017,'type':_0x460147(0xe4),'id':_0x1a050c};}return null;}this[_0x11e480(0xe8)]=_0x9adff8[_0x11e480(0x113)]((_0x3c12bb,_0x55ad6b)=>({'changes':_0x3c12bb,'state':_0x11e480(0xe1),'index':_0x55ad6b}));}}export function isValidReplyType(_0x35ea69){const _0x49444e=_0x13f60d;return Object[_0x49444e(0x119)](AI_REPLY_TYPES)[_0x49444e(0xfa)](_0x35ea69);}export function isIgnoredReplyType(_0x146981){const _0x478301=_0x13f60d;return AI_REPLY_TYPES_IGNORED[_0x478301(0xfa)](_0x146981);}export function isReplyTitleType(_0x28697d){return _0x28697d===AI_REPLY_TITLE_TYPE;}export function isSourceType(_0x244c65){const _0x1836d1=_0x13f60d;return _0x1836d1(0xe3)===_0x244c65;}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x38db5d=_0x3233;function _0x3233(_0x17fbc3,_0xa16c40){const _0x4f8360=_0x4f83();return _0x3233=function(_0x323311,_0x4761bf){_0x323311=_0x323311-0x17f;let _0x5174b8=_0x4f8360[_0x323311];return _0x5174b8;},_0x3233(_0x17fbc3,_0xa16c40);}(function(_0x29baae,_0x56b6c5){const _0x4655ea=_0x3233,_0x558aee=_0x29baae();while(!![]){try{const _0x748255=-parseInt(_0x4655ea(0x192))/0x1*(parseInt(_0x4655ea(0x191))/0x2)+parseInt(_0x4655ea(0x18c))/0x3*(-parseInt(_0x4655ea(0x180))/0x4)+parseInt(_0x4655ea(0x190))/0x5+-parseInt(_0x4655ea(0x18b))/0x6*(-parseInt(_0x4655ea(0x1a0))/0x7)+-parseInt(_0x4655ea(0x1a8))/0x8+-parseInt(_0x4655ea(0x197))/0x9+parseInt(_0x4655ea(0x18d))/0xa*(parseInt(_0x4655ea(0x1a7))/0xb);if(_0x748255===_0x56b6c5)break;else _0x558aee['push'](_0x558aee['shift']());}catch(_0x2822c8){_0x558aee['push'](_0x558aee['shift']());}}}(_0x4f83,0xc18d3));function _0x4f83(){const _0x2295b0=['data-unstable','_getUid','trim','_removeSpecialComments','removedIds','replaceRemovedWith','data-wrapped-id','637908OFpNKd','1482NwxoBW','10yYNusi','_findReferenceNode','_markUnstableElements','4970590GSeoMY','4uleFAq','486187xErVtO','_markLastTagElementUnstable','previousSibling','_touchedNodesState','_hasWrappedParent','7498503AwkAgG','reverse','push','merge','markUnstableElementsDepth','afterend','slice','_existingDataIds','new-element','91eTlwpD','_isExistingContentComment','_findPrevElementWithDataId','_insertNodes','_getNodeDataId','_isNewNode','lastTouchedId','24307987pNMIwH','10740616MgCRup','_generateUid','_findNextElementWithDataId','beforebegin','lastChild','_isExistingNode','invalidIds','nodeType','_markWrappedElements','markUnstableElements','_replaceNode','splice','has','indexOf','cutAfterLastChange','_findFallbackReferenceNode','parentNode','forEach','_isDelNode','_storeDeletedElementIds','true','match','childNodes','nextSibling','from','filter','modifiedIds','map','afterbegin','data-id','cloneNode','data-removed','5224uwLzYm','length','newIds','includes'];_0x4f83=function(){return _0x2295b0;};return _0x4f83();}import{ObservableMixin as _0x55715f,uid as _0x7169af}from'ckeditor5/src/utils.js';import{findAllByAttribute as _0x5cf85d,findByAttribute as _0x326a2d,getAttribute as _0x1f0838,isComment as _0x5cf372,isTag as _0x268071,insertElement as _0x2b3fa7,moveElement as _0x823ecc,removeElement as _0x56f057,replaceElement as _0x41c414,serialize as _0x2e4f7f,setAttribute as _0x1f0f32,clone as _0x232bc9,findAllComments as _0x49c946,getParents as _0x231981,getNodeNestingLevel as _0x1977b0,areNodesSame as _0x1bfbe1,removeElementsAfter as _0x5dff24}from'../utils/htmlparser.js';export class AIResponseApplier extends/* #__PURE__ -- @preserve */
24
- _0x55715f(){[_0x38db5d(0x1a9)];[_0x38db5d(0x195)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x38db5d(0x19e)]=new Set();constructor(_0x4886d3){const _0x2a35ed=_0x38db5d;super(),this[_0x2a35ed(0x1a9)]=_0x4886d3||_0x7169af;}[_0x38db5d(0x19a)](_0x223f13,_0x30dec0,_0x1cbe53){const _0x8db97c=_0x38db5d,_0x22df2e=_0x232bc9(_0x223f13);if(0x0===_0x30dec0[_0x8db97c(0x1be)][_0x8db97c(0x181)]){const _0x277b3f=[];return _0x5cf85d(_0x8db97c(0x1c5),_0x8db97c(0x19f),_0x22df2e)[_0x8db97c(0x1b9)](_0x3ee8e2=>{const _0x2ab58e=_0x8db97c,_0x4b5998=this[_0x2ab58e(0x1a9)]();_0x1f0f32(_0x3ee8e2,_0x2ab58e(0x1c5),_0x4b5998),_0x277b3f[_0x2ab58e(0x199)](_0x4b5998);}),this[_0x8db97c(0x187)](_0x22df2e),{'parsedContent':_0x22df2e,'newNodeIds':_0x277b3f,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x1cbe53&&_0x1cbe53[_0x8db97c(0x1b1)]&&this[_0x8db97c(0x193)](_0x22df2e),this[_0x8db97c(0x195)][_0x8db97c(0x182)]=[],this[_0x8db97c(0x195)][_0x8db97c(0x1c2)]=[],this[_0x8db97c(0x195)][_0x8db97c(0x188)]=[],this[_0x8db97c(0x195)][_0x8db97c(0x1ae)]=[],this[_0x8db97c(0x195)][_0x8db97c(0x1a6)]=null,this[_0x8db97c(0x19e)]=new Set(_0x5cf85d(_0x8db97c(0x1c5),null,_0x30dec0)[_0x8db97c(0x1c3)](_0x4adad5=>_0x1f0838(_0x4adad5,_0x8db97c(0x1c5)))[_0x8db97c(0x1c1)](_0x5f1ed4=>!!_0x5f1ed4));let _0x2a5989=-0x1,_0x556956=!0x1;const _0x503b4a=_0x22df2e[_0x8db97c(0x1be)],_0x358754=Array[_0x8db97c(0x1c0)](_0x503b4a)[_0x8db97c(0x1c1)](_0x506d55=>!(0x3===_0x506d55[_0x8db97c(0x1af)]&&''===_0x2e4f7f(_0x506d55)[_0x8db97c(0x186)]())),_0x35371e=_0x358754[_0x8db97c(0x181)];for(let _0x369e22=0x0;_0x369e22<_0x35371e;_0x369e22++){const _0x1e49cb=_0x358754[_0x369e22],_0x5bfb58=_0x358754[_0x369e22+0x1];if(this[_0x8db97c(0x1a5)](_0x1e49cb)){if(-0x1===_0x2a5989&&(_0x2a5989=_0x369e22),this[_0x8db97c(0x1b0)](_0x1e49cb),!this[_0x8db97c(0x1a5)](_0x5bfb58)){const [_0x921fd2,_0x4324cf]=this[_0x8db97c(0x18e)](_0x1e49cb,_0x556956,_0x30dec0);if(_0x921fd2){const _0x282565=Array[_0x8db97c(0x1c0)](_0x358754)[_0x8db97c(0x19d)](_0x2a5989,_0x369e22+0x1);this[_0x8db97c(0x1a3)](_0x921fd2,_0x282565,_0x4324cf),_0x2a5989=-0x1;}}}else{if(this[_0x8db97c(0x1a1)](_0x1e49cb))_0x556956=!0x0;else{if(this[_0x8db97c(0x1ad)](_0x1e49cb)){const _0x14d7cb=_0x1f0838(_0x1e49cb,_0x8db97c(0x1c5));if(_0x14d7cb&&this[_0x8db97c(0x19e)][_0x8db97c(0x1b4)](_0x14d7cb)){const _0x3fbe64=_0x326a2d(_0x8db97c(0x1c5),_0x14d7cb,_0x30dec0);this[_0x8db97c(0x1b2)](_0x3fbe64,_0x1e49cb);}if(this[_0x8db97c(0x195)][_0x8db97c(0x188)][_0x8db97c(0x183)](_0x14d7cb)){const _0x26b1b5=this[_0x8db97c(0x195)][_0x8db97c(0x188)][_0x8db97c(0x1b5)](_0x14d7cb);this[_0x8db97c(0x195)][_0x8db97c(0x188)][_0x8db97c(0x1b3)](_0x26b1b5,0x1);}}else{if(this[_0x8db97c(0x1ba)](_0x1e49cb)){const _0x23ef2a=_0x1f0838(_0x1e49cb,_0x8db97c(0x1c5));this[_0x8db97c(0x195)][_0x8db97c(0x1c2)][_0x8db97c(0x183)](_0x23ef2a)||this[_0x8db97c(0x1bb)](_0x1e49cb);}}}}}for(const _0x531595 of this[_0x8db97c(0x195)][_0x8db97c(0x188)]){const _0x5cf25=_0x326a2d(_0x8db97c(0x1c5),_0x531595,_0x30dec0);if(_0x5cf25){if(_0x1cbe53&&_0x1cbe53[_0x8db97c(0x189)]){this[_0x8db97c(0x195)][_0x8db97c(0x1a6)]=_0x531595;const _0x8119ff=_0x1cbe53[_0x8db97c(0x189)][_0x8db97c(0x1c6)](!0x0);_0x1f0f32(_0x8119ff,_0x8db97c(0x1c5),_0x531595),_0x1f0f32(_0x8119ff,_0x8db97c(0x17f),_0x8db97c(0x1bc)),_0x41c414(_0x5cf25,_0x8119ff);}else _0x56f057(_0x5cf25);}}if(_0x5cf85d(_0x8db97c(0x18a),null,_0x30dec0)[_0x8db97c(0x1b9)](_0x37d7fb=>{const _0x36cd96=_0x8db97c,_0x1e9da9=_0x1f0838(_0x37d7fb,_0x36cd96(0x18a)),_0x44c8f5=_0x326a2d(_0x36cd96(0x1c5),_0x1e9da9,_0x30dec0);_0x44c8f5&&_0x823ecc(_0x44c8f5,_0x37d7fb);}),_0x5cf85d(_0x8db97c(0x1c5),_0x8db97c(0x19f),_0x30dec0)[_0x8db97c(0x1b9)](_0x3dea2b=>{const _0x1c312=_0x8db97c,_0x4c44b8=this[_0x1c312(0x185)](_0x3dea2b);_0x1f0f32(_0x3dea2b,_0x1c312(0x1c5),_0x4c44b8),this[_0x1c312(0x195)][_0x1c312(0x182)][_0x1c312(0x199)](_0x4c44b8);}),this[_0x8db97c(0x187)](_0x30dec0),_0x1cbe53&&_0x1cbe53[_0x8db97c(0x1b1)]&&this[_0x8db97c(0x18f)](_0x30dec0,_0x1cbe53[_0x8db97c(0x19b)]||0x0),_0x1cbe53&&_0x1cbe53[_0x8db97c(0x1b6)]&&this[_0x8db97c(0x195)][_0x8db97c(0x1a6)]){let _0x3d8fb5=_0x326a2d(_0x8db97c(0x1c5),this[_0x8db97c(0x195)][_0x8db97c(0x1a6)],_0x30dec0);for(;_0x3d8fb5;)_0x5dff24(_0x3d8fb5),_0x3d8fb5=_0x3d8fb5[_0x8db97c(0x1b8)];}return{'parsedContent':_0x30dec0,'newNodeIds':this[_0x8db97c(0x195)][_0x8db97c(0x182)],'modifiedNodeIds':this[_0x8db97c(0x195)][_0x8db97c(0x1c2)],'removedNodeIds':this[_0x8db97c(0x195)][_0x8db97c(0x188)]};}[_0x38db5d(0x1a3)](_0x2f6a90,_0xca5576,_0xea5978){const _0x41e76b=_0x38db5d;for(const _0x14d64b of _0xca5576){const _0x2395a6=this[_0x41e76b(0x185)](_0x14d64b);_0x1f0f32(_0x14d64b,_0x41e76b(0x1c5),_0x2395a6),this[_0x41e76b(0x195)][_0x41e76b(0x182)][_0x41e76b(0x199)](_0x2395a6),this[_0x41e76b(0x195)][_0x41e76b(0x1a6)]=_0x2395a6;}const _0x1101f2=_0x41e76b(0x1c4)===_0xea5978||_0x41e76b(0x19c)===_0xea5978?_0xca5576[_0x41e76b(0x198)]():_0xca5576;for(const _0x3fb7ca of _0x1101f2)_0x2b3fa7(_0x2f6a90,_0x3fb7ca,_0xea5978);}[_0x38db5d(0x1b2)](_0x14e930,_0x392f85){const _0x5406b6=_0x38db5d;if(!_0x14e930)return;if(_0x1bfbe1(_0x14e930,_0x392f85))return;const _0x54106d=this[_0x5406b6(0x185)](_0x14e930);_0x1f0f32(_0x392f85,_0x5406b6(0x1c5),_0x54106d),this[_0x5406b6(0x195)][_0x5406b6(0x1c2)][_0x5406b6(0x199)](_0x54106d),this[_0x5406b6(0x195)][_0x5406b6(0x1a6)]=_0x54106d,_0x41c414(_0x14e930,_0x392f85[_0x5406b6(0x1c6)](!0x0));}[_0x38db5d(0x18e)](_0x53d7fe,_0x33a7a9,_0x352ccb){const _0x186157=_0x38db5d,_0x47cb76=this[_0x186157(0x1a2)](_0x53d7fe,!0x1);if(_0x47cb76){const _0x5ccb14=this[_0x186157(0x1a4)](_0x47cb76),_0x5d7c1c=_0x326a2d(_0x186157(0x1c5),_0x5ccb14,_0x352ccb);if(_0x5d7c1c)return[_0x5d7c1c,_0x186157(0x19c)];this[_0x186157(0x195)][_0x186157(0x1ae)][_0x186157(0x199)](_0x5ccb14);}const _0x458acb=this[_0x186157(0x1aa)](_0x53d7fe,!0x1);if(_0x458acb){const _0x503bf3=this[_0x186157(0x1a4)](_0x458acb),_0x1857e1=_0x326a2d(_0x186157(0x1c5),_0x503bf3,_0x352ccb);if(_0x1857e1)return[_0x1857e1,_0x186157(0x1ab)];this[_0x186157(0x195)][_0x186157(0x1ae)][_0x186157(0x199)](_0x503bf3);}return _0x33a7a9?_0x53d7fe[_0x186157(0x1bf)]?this[_0x186157(0x1b7)](_0x53d7fe,_0x352ccb):[_0x352ccb[_0x186157(0x1be)][_0x352ccb[_0x186157(0x1be)][_0x186157(0x181)]-0x1],_0x186157(0x19c)]:[_0x352ccb[_0x186157(0x1be)][0x0],_0x186157(0x1ab)];}[_0x38db5d(0x1b7)](_0x25ad15,_0x4d5cbc){const _0x14710e=_0x38db5d,_0x15b799=[],_0xc55f28=this[_0x14710e(0x1a2)](_0x25ad15,!0x0);if(_0xc55f28){const _0x2619ff=this[_0x14710e(0x1a4)](_0xc55f28),_0x5d1c3c=_0x326a2d(_0x14710e(0x1c5),_0x2619ff,_0x4d5cbc);_0x5d1c3c&&_0x15b799[_0x14710e(0x199)]([_0x5d1c3c,_0x14710e(0x19c)]);}const _0x532ec5=this[_0x14710e(0x1aa)](_0x25ad15,!0x0);if(_0x532ec5){const _0x4bce1e=this[_0x14710e(0x1a4)](_0x532ec5),_0x317d7a=_0x326a2d(_0x14710e(0x1c5),_0x4bce1e,_0x4d5cbc);_0x317d7a&&_0x15b799[_0x14710e(0x199)]([_0x317d7a,_0x14710e(0x1ab)]);}if(_0x15b799[_0x14710e(0x181)]>0x1)return _0x1977b0(_0x15b799[0x0][0x0])<=_0x1977b0(_0x15b799[0x1][0x0])?_0x15b799[0x0]:_0x15b799[0x1];return 0x1===_0x15b799[_0x14710e(0x181)]?_0x15b799[0x0]:[_0x4d5cbc[_0x14710e(0x1ac)],_0x14710e(0x19c)];}[_0x38db5d(0x1aa)](_0x2d3bab,_0x41c31b){const _0x70b491=_0x38db5d;let _0x833935=_0x2d3bab[_0x70b491(0x1bf)],_0x82996a=null,_0x15057b=!0x1;for(;_0x833935;){if(_0x5cf372(_0x833935)){if(this[_0x70b491(0x1ba)](_0x833935)&&(_0x82996a=_0x833935),this[_0x70b491(0x1a1)](_0x833935)&&_0x41c31b&&!_0x15057b){_0x15057b=!0x0,_0x833935=_0x833935[_0x70b491(0x1bf)];continue;}break;}const _0x1248e3=_0x1f0838(_0x833935,_0x70b491(0x1c5));if(_0x1248e3&&_0x70b491(0x19f)!==_0x1248e3&&this[_0x70b491(0x19e)][_0x70b491(0x1b4)](_0x1248e3)){_0x82996a=_0x833935;break;}_0x833935=_0x833935[_0x70b491(0x1bf)];}return _0x82996a;}[_0x38db5d(0x1a2)](_0x32f840,_0x1e09db){const _0x47ec6f=_0x38db5d;let _0x4392db=_0x32f840[_0x47ec6f(0x194)],_0x23ef02=null,_0x185553=!0x1;for(;_0x4392db;){if(_0x5cf372(_0x4392db)){if(this[_0x47ec6f(0x1ba)](_0x4392db)&&(_0x23ef02=_0x4392db),this[_0x47ec6f(0x1a1)](_0x4392db)&&_0x1e09db&&!_0x185553){_0x185553=!0x0,_0x4392db=_0x4392db[_0x47ec6f(0x194)];continue;}break;}const _0x1ac9d5=_0x1f0838(_0x4392db,_0x47ec6f(0x1c5));if(_0x1ac9d5&&_0x47ec6f(0x19f)!==_0x1ac9d5&&this[_0x47ec6f(0x19e)][_0x47ec6f(0x1b4)](_0x1ac9d5)){_0x23ef02=_0x4392db;break;}_0x4392db=_0x4392db[_0x47ec6f(0x194)];}return _0x23ef02;}[_0x38db5d(0x1b0)](_0x303b4e){const _0x498533=_0x38db5d;_0x268071(_0x303b4e)&&_0x5cf85d(_0x498533(0x1c5),null,_0x303b4e)[_0x498533(0x1b9)](_0x1e20aa=>{const _0x41f3d7=_0x498533;if(this[_0x41f3d7(0x1ad)](_0x1e20aa)&&!this[_0x41f3d7(0x196)](_0x1e20aa)){const _0x268068=_0x1f0838(_0x1e20aa,_0x41f3d7(0x1c5));_0x1f0f32(_0x1e20aa,_0x41f3d7(0x18a),_0x268068),_0x1f0f32(_0x1e20aa,_0x41f3d7(0x1c5),null);}});}[_0x38db5d(0x1a4)](_0x5c7815){const _0x1a928d=_0x38db5d;if(!_0x5c7815)return null;if(_0x268071(_0x5c7815))return _0x1f0838(_0x5c7815,_0x1a928d(0x1c5));if(_0x5cf372(_0x5c7815)){const _0x4f2159=_0x2e4f7f(_0x5c7815)[_0x1a928d(0x1bd)](/removed[\s*-]data-id="([^"]+)"/);if(_0x4f2159&&_0x4f2159[0x1])return _0x4f2159[0x1];}return null;}[_0x38db5d(0x1bb)](_0x87372b){const _0x16bdef=_0x38db5d;if(_0x5cf372(_0x87372b)){const _0x1b9669=_0x2e4f7f(_0x87372b)[_0x16bdef(0x1bd)](/removed[\s*-]data-id="([^"]+)"/);_0x1b9669&&_0x1b9669[0x1]&&this[_0x16bdef(0x195)][_0x16bdef(0x188)][_0x16bdef(0x199)](_0x1b9669[0x1]);}}[_0x38db5d(0x185)](_0x224052){const _0x1d72c1=_0x38db5d;return this[_0x1d72c1(0x1ad)](_0x224052)?_0x1f0838(_0x224052,_0x1d72c1(0x1c5)):this[_0x1d72c1(0x1a9)]();}[_0x38db5d(0x187)](_0x37f876){const _0x3efe4d=_0x38db5d;_0x49c946(_0x37f876)[_0x3efe4d(0x1c1)](_0x4722de=>this[_0x3efe4d(0x1ba)](_0x4722de)||this[_0x3efe4d(0x1a1)](_0x4722de))[_0x3efe4d(0x1b9)](_0x253cb9=>{_0x56f057(_0x253cb9);});}[_0x38db5d(0x193)](_0x28ae8f){const _0x3480cb=_0x38db5d,_0x484f80=_0x28ae8f[_0x3480cb(0x1be)],_0x41339e=_0x484f80[_0x484f80[_0x3480cb(0x181)]-0x1];_0x41339e&&_0x268071(_0x41339e)&&_0x1f0f32(_0x41339e,_0x3480cb(0x184),_0x3480cb(0x1bc));}[_0x38db5d(0x18f)](_0x1ab2bd,_0x509ebe){const _0x174e8d=_0x38db5d,_0x130af4=_0x326a2d(_0x174e8d(0x184),_0x174e8d(0x1bc),_0x1ab2bd);if(!_0x130af4)return;const _0x1cb6cc=_0x231981(_0x130af4)[_0x174e8d(0x19d)](0x0,-0x1),_0x57c93f=_0x1cb6cc[_0x174e8d(0x181)];let _0x3b961f=_0x130af4;if(_0x57c93f>_0x509ebe){let _0x38a01b=_0x57c93f,_0xcbea3=null;for(;_0x38a01b>_0x509ebe&&_0x38a01b>=0x0;)_0x38a01b--,_0xcbea3=_0x1cb6cc[_0x38a01b];_0xcbea3&&(_0x3b961f=_0xcbea3,_0x1f0f32(_0x130af4,_0x174e8d(0x184),null),_0x1f0f32(_0xcbea3,_0x174e8d(0x184),_0x174e8d(0x1bc)));}else{if(_0x57c93f<_0x509ebe){let _0x37007b=_0x57c93f,_0x3925d5=_0x130af4;for(;_0x37007b<_0x509ebe;){const _0x24db0f=_0x3925d5[_0x174e8d(0x1be)][_0x174e8d(0x1c1)](_0x35d560=>_0x268071(_0x35d560));if(0x0===_0x24db0f[_0x174e8d(0x181)])break;_0x37007b++,_0x3925d5=_0x24db0f[_0x24db0f[_0x174e8d(0x181)]-0x1];}_0x3925d5&&(_0x3b961f=_0x3925d5,_0x1f0f32(_0x130af4,_0x174e8d(0x184),null),_0x1f0f32(_0x3925d5,_0x174e8d(0x184),_0x174e8d(0x1bc)));}}let _0x151652=_0x3b961f;for(;_0x151652;){for(;_0x151652[_0x174e8d(0x1bf)];)_0x151652=_0x151652[_0x174e8d(0x1bf)],_0x268071(_0x151652)&&_0x1f0f32(_0x151652,_0x174e8d(0x184),_0x174e8d(0x1bc));_0x151652=_0x151652[_0x174e8d(0x1b8)];}}[_0x38db5d(0x1a5)](_0x3926c1){const _0x3abf73=_0x38db5d;return Boolean(_0x3abf73(0x19f)===_0x1f0838(_0x3926c1,_0x3abf73(0x1c5)));}[_0x38db5d(0x1ad)](_0x4d887e){const _0x157cab=_0x38db5d;return Boolean((_0x1f0838(_0x4d887e,_0x157cab(0x1c5))||'')[_0x157cab(0x181)]>0x0&&_0x157cab(0x19f)!==_0x1f0838(_0x4d887e,_0x157cab(0x1c5)));}[_0x38db5d(0x1ba)](_0x481696){const _0x1743c8=_0x38db5d;return!!_0x481696&&Boolean(_0x5cf372(_0x481696)&&_0x2e4f7f(_0x481696)[_0x1743c8(0x1bd)](/removed[\s*-]data-id="[^"]+"/));}[_0x38db5d(0x196)](_0x3d92bc){const _0x40a410=_0x38db5d;let _0x227a35=_0x3d92bc[_0x40a410(0x1b8)];for(;_0x227a35;){if(_0x1f0838(_0x227a35,_0x40a410(0x18a)))return!0x0;_0x227a35=_0x227a35[_0x40a410(0x1b8)];}return!0x1;}[_0x38db5d(0x1a1)](_0x1d3a33){const _0x32a896=_0x38db5d;return Boolean(_0x5cf372(_0x1d3a33)&&_0x2e4f7f(_0x1d3a33)[_0x32a896(0x1bd)](/\s*existing[\s*-](content|document)\s*/g));}}
23
+ function _0x4174(){const _0x5ec76d=['newIds','has','nodeType','_isExistingNode','markUnstableElementsDepth','trim','new-element','modifiedIds','childNodes','markUnstableElements','5BQdguK','filter','includes','replaceRemovedWith','slice','6593416lJpbQE','forEach','afterend','_markUnstableElements','28RnKGOz','_markLastTagElementUnstable','_existingDataIds','_markWrappedElements','_storeDeletedElementIds','cutAfterLastChange','lastChild','data-unstable','_removeSpecialComments','afterbegin','data-wrapped-id','102018bPiXmb','4378038IsvvnI','_getNodeDataId','1858941yHdopX','push','_isExistingContentComment','reverse','19304310JRBKPb','_isDelNode','154258uVrJDl','indexOf','parentNode','merge','_insertNodes','from','_findNextElementWithDataId','10iNmsgF','_getUid','true','cloneNode','_replaceNode','data-removed','nextSibling','_findFallbackReferenceNode','splice','previousSibling','data-id','match','_generateUid','_findPrevElementWithDataId','removedIds','_touchedNodesState','_isNewNode','1729494pnzXfM','invalidIds','length','lastTouchedId','_findReferenceNode','_hasWrappedParent','map','beforebegin'];_0x4174=function(){return _0x5ec76d;};return _0x4174();}const _0x147f2e=_0x4313;(function(_0x1fdb69,_0x179813){const _0x368436=_0x4313,_0x4c6151=_0x1fdb69();while(!![]){try{const _0x2e2058=-parseInt(_0x368436(0xdb))/0x1*(parseInt(_0x368436(0xd4))/0x2)+parseInt(_0x368436(0xcb))/0x3*(parseInt(_0x368436(0xc0))/0x4)+parseInt(_0x368436(0xb7))/0x5*(parseInt(_0x368436(0xa5))/0x6)+-parseInt(_0x368436(0xcc))/0x7+-parseInt(_0x368436(0xbc))/0x8+parseInt(_0x368436(0xce))/0x9+parseInt(_0x368436(0xd2))/0xa;if(_0x2e2058===_0x179813)break;else _0x4c6151['push'](_0x4c6151['shift']());}catch(_0x4537c1){_0x4c6151['push'](_0x4c6151['shift']());}}}(_0x4174,0x6c002));import{ObservableMixin as _0x3456c5,uid as _0x2ccc5a}from'ckeditor5/src/utils.js';function _0x4313(_0x15cd59,_0x15319c){const _0x417467=_0x4174();return _0x4313=function(_0x43130c,_0xcec71f){_0x43130c=_0x43130c-0xa0;let _0x37740b=_0x417467[_0x43130c];return _0x37740b;},_0x4313(_0x15cd59,_0x15319c);}import{findAllByAttribute as _0x3bdabb,findByAttribute as _0x5285b9,getAttribute as _0x1e4764,isComment as _0xc090df,isTag as _0x11c97b,insertElement as _0x48f4cd,moveElement as _0x3836b8,removeElement as _0x271e4a,replaceElement as _0x53c549,serialize as _0x36cb8d,setAttribute as _0x574449,clone as _0x37f4c7,findAllComments as _0x50e9bf,getParents as _0x45df39,getNodeNestingLevel as _0x4d6003,areNodesSame as _0x397fee,removeElementsAfter as _0x23c0ec}from'../utils/htmlparser.js';export class AIResponseApplier extends/* #__PURE__ -- @preserve */
24
+ _0x3456c5(){[_0x147f2e(0xa0)];[_0x147f2e(0xa3)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x147f2e(0xc2)]=new Set();constructor(_0x3f9e19){const _0x231527=_0x147f2e;super(),this[_0x231527(0xa0)]=_0x3f9e19||_0x2ccc5a;}[_0x147f2e(0xd7)](_0x66120c,_0x103c3b,_0x52d1be){const _0x517eed=_0x147f2e,_0x2254bb=_0x37f4c7(_0x66120c);if(0x0===_0x103c3b[_0x517eed(0xb5)][_0x517eed(0xa7)]){const _0x1b361c=[];return _0x3bdabb(_0x517eed(0xe5),_0x517eed(0xb3),_0x2254bb)[_0x517eed(0xbd)](_0x2e63c7=>{const _0x543fa6=_0x517eed,_0x3b7d3d=this[_0x543fa6(0xa0)]();_0x574449(_0x2e63c7,_0x543fa6(0xe5),_0x3b7d3d),_0x1b361c[_0x543fa6(0xcf)](_0x3b7d3d);}),this[_0x517eed(0xc8)](_0x2254bb),{'parsedContent':_0x2254bb,'newNodeIds':_0x1b361c,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x52d1be&&_0x52d1be[_0x517eed(0xb6)]&&this[_0x517eed(0xc1)](_0x2254bb),this[_0x517eed(0xa3)][_0x517eed(0xad)]=[],this[_0x517eed(0xa3)][_0x517eed(0xb4)]=[],this[_0x517eed(0xa3)][_0x517eed(0xa2)]=[],this[_0x517eed(0xa3)][_0x517eed(0xa6)]=[],this[_0x517eed(0xa3)][_0x517eed(0xa8)]=null,this[_0x517eed(0xc2)]=new Set(_0x3bdabb(_0x517eed(0xe5),null,_0x103c3b)[_0x517eed(0xab)](_0x16b344=>_0x1e4764(_0x16b344,_0x517eed(0xe5)))[_0x517eed(0xb8)](_0x592506=>!!_0x592506));let _0x2b358c=-0x1,_0x34a7df=!0x1;const _0x1444bd=_0x2254bb[_0x517eed(0xb5)],_0x126d9d=Array[_0x517eed(0xd9)](_0x1444bd)[_0x517eed(0xb8)](_0x2a833a=>!(0x3===_0x2a833a[_0x517eed(0xaf)]&&''===_0x36cb8d(_0x2a833a)[_0x517eed(0xb2)]())),_0x274d4b=_0x126d9d[_0x517eed(0xa7)];for(let _0x26fe42=0x0;_0x26fe42<_0x274d4b;_0x26fe42++){const _0x4e3bfc=_0x126d9d[_0x26fe42],_0x3d1134=_0x126d9d[_0x26fe42+0x1];if(this[_0x517eed(0xa4)](_0x4e3bfc)){if(-0x1===_0x2b358c&&(_0x2b358c=_0x26fe42),this[_0x517eed(0xc3)](_0x4e3bfc),!this[_0x517eed(0xa4)](_0x3d1134)){const [_0x18c1a7,_0x1d7feb]=this[_0x517eed(0xa9)](_0x4e3bfc,_0x34a7df,_0x103c3b);if(_0x18c1a7){const _0x1cf141=Array[_0x517eed(0xd9)](_0x126d9d)[_0x517eed(0xbb)](_0x2b358c,_0x26fe42+0x1);this[_0x517eed(0xd8)](_0x18c1a7,_0x1cf141,_0x1d7feb),_0x2b358c=-0x1;}}}else{if(this[_0x517eed(0xd0)](_0x4e3bfc))_0x34a7df=!0x0;else{if(this[_0x517eed(0xb0)](_0x4e3bfc)){const _0x4a7ede=_0x1e4764(_0x4e3bfc,_0x517eed(0xe5));if(_0x4a7ede&&this[_0x517eed(0xc2)][_0x517eed(0xae)](_0x4a7ede)){const _0x14cf5b=_0x5285b9(_0x517eed(0xe5),_0x4a7ede,_0x103c3b);this[_0x517eed(0xdf)](_0x14cf5b,_0x4e3bfc);}if(this[_0x517eed(0xa3)][_0x517eed(0xa2)][_0x517eed(0xb9)](_0x4a7ede)){const _0x22d08a=this[_0x517eed(0xa3)][_0x517eed(0xa2)][_0x517eed(0xd5)](_0x4a7ede);this[_0x517eed(0xa3)][_0x517eed(0xa2)][_0x517eed(0xe3)](_0x22d08a,0x1);}}else{if(this[_0x517eed(0xd3)](_0x4e3bfc)){const _0x51151a=_0x1e4764(_0x4e3bfc,_0x517eed(0xe5));this[_0x517eed(0xa3)][_0x517eed(0xb4)][_0x517eed(0xb9)](_0x51151a)||this[_0x517eed(0xc4)](_0x4e3bfc);}}}}}for(const _0xff5757 of this[_0x517eed(0xa3)][_0x517eed(0xa2)]){const _0x33f145=_0x5285b9(_0x517eed(0xe5),_0xff5757,_0x103c3b);if(_0x33f145){if(_0x52d1be&&_0x52d1be[_0x517eed(0xba)]){this[_0x517eed(0xa3)][_0x517eed(0xa8)]=_0xff5757;const _0x5bf1c6=_0x52d1be[_0x517eed(0xba)][_0x517eed(0xde)](!0x0);_0x574449(_0x5bf1c6,_0x517eed(0xe5),_0xff5757),_0x574449(_0x5bf1c6,_0x517eed(0xe0),_0x517eed(0xdd)),_0x53c549(_0x33f145,_0x5bf1c6);}else _0x271e4a(_0x33f145);}}if(_0x3bdabb(_0x517eed(0xca),null,_0x103c3b)[_0x517eed(0xbd)](_0x5a41f7=>{const _0x449a20=_0x517eed,_0x53bb33=_0x1e4764(_0x5a41f7,_0x449a20(0xca)),_0x149b2f=_0x5285b9(_0x449a20(0xe5),_0x53bb33,_0x103c3b);_0x149b2f&&_0x3836b8(_0x149b2f,_0x5a41f7);}),_0x3bdabb(_0x517eed(0xe5),_0x517eed(0xb3),_0x103c3b)[_0x517eed(0xbd)](_0x2506a5=>{const _0x4dffc4=_0x517eed,_0x1ae3a5=this[_0x4dffc4(0xdc)](_0x2506a5);_0x574449(_0x2506a5,_0x4dffc4(0xe5),_0x1ae3a5),this[_0x4dffc4(0xa3)][_0x4dffc4(0xad)][_0x4dffc4(0xcf)](_0x1ae3a5);}),this[_0x517eed(0xc8)](_0x103c3b),_0x52d1be&&_0x52d1be[_0x517eed(0xb6)]&&this[_0x517eed(0xbf)](_0x103c3b,_0x52d1be[_0x517eed(0xb1)]||0x0),_0x52d1be&&_0x52d1be[_0x517eed(0xc5)]&&this[_0x517eed(0xa3)][_0x517eed(0xa8)]){let _0x500660=_0x5285b9(_0x517eed(0xe5),this[_0x517eed(0xa3)][_0x517eed(0xa8)],_0x103c3b);for(;_0x500660;)_0x23c0ec(_0x500660),_0x500660=_0x500660[_0x517eed(0xd6)];}return{'parsedContent':_0x103c3b,'newNodeIds':this[_0x517eed(0xa3)][_0x517eed(0xad)],'modifiedNodeIds':this[_0x517eed(0xa3)][_0x517eed(0xb4)],'removedNodeIds':this[_0x517eed(0xa3)][_0x517eed(0xa2)]};}[_0x147f2e(0xd8)](_0x1edb62,_0x532bb9,_0x11dc29){const _0x3dce58=_0x147f2e;for(const _0xbe4075 of _0x532bb9){const _0x2b438b=this[_0x3dce58(0xdc)](_0xbe4075);_0x574449(_0xbe4075,_0x3dce58(0xe5),_0x2b438b),this[_0x3dce58(0xa3)][_0x3dce58(0xad)][_0x3dce58(0xcf)](_0x2b438b),this[_0x3dce58(0xa3)][_0x3dce58(0xa8)]=_0x2b438b;}const _0x396772=_0x3dce58(0xc9)===_0x11dc29||_0x3dce58(0xbe)===_0x11dc29?_0x532bb9[_0x3dce58(0xd1)]():_0x532bb9;for(const _0x92a9b4 of _0x396772)_0x48f4cd(_0x1edb62,_0x92a9b4,_0x11dc29);}[_0x147f2e(0xdf)](_0x18fea2,_0x15a95a){const _0x153e25=_0x147f2e;if(!_0x18fea2)return;if(_0x397fee(_0x18fea2,_0x15a95a))return;const _0x6056b7=this[_0x153e25(0xdc)](_0x18fea2);_0x574449(_0x15a95a,_0x153e25(0xe5),_0x6056b7),this[_0x153e25(0xa3)][_0x153e25(0xb4)][_0x153e25(0xcf)](_0x6056b7),this[_0x153e25(0xa3)][_0x153e25(0xa8)]=_0x6056b7,_0x53c549(_0x18fea2,_0x15a95a[_0x153e25(0xde)](!0x0));}[_0x147f2e(0xa9)](_0x4f09cb,_0x17ab07,_0x3f965b){const _0x12b641=_0x147f2e,_0x2795aa=this[_0x12b641(0xa1)](_0x4f09cb,!0x1);if(_0x2795aa){const _0xbb80fb=this[_0x12b641(0xcd)](_0x2795aa),_0x181d3e=_0x5285b9(_0x12b641(0xe5),_0xbb80fb,_0x3f965b);if(_0x181d3e)return[_0x181d3e,_0x12b641(0xbe)];this[_0x12b641(0xa3)][_0x12b641(0xa6)][_0x12b641(0xcf)](_0xbb80fb);}const _0x3a6dac=this[_0x12b641(0xda)](_0x4f09cb,!0x1);if(_0x3a6dac){const _0x532457=this[_0x12b641(0xcd)](_0x3a6dac),_0x21126a=_0x5285b9(_0x12b641(0xe5),_0x532457,_0x3f965b);if(_0x21126a)return[_0x21126a,_0x12b641(0xac)];this[_0x12b641(0xa3)][_0x12b641(0xa6)][_0x12b641(0xcf)](_0x532457);}return _0x17ab07?_0x4f09cb[_0x12b641(0xe1)]?this[_0x12b641(0xe2)](_0x4f09cb,_0x3f965b):[_0x3f965b[_0x12b641(0xb5)][_0x3f965b[_0x12b641(0xb5)][_0x12b641(0xa7)]-0x1],_0x12b641(0xbe)]:[_0x3f965b[_0x12b641(0xb5)][0x0],_0x12b641(0xac)];}[_0x147f2e(0xe2)](_0x556746,_0xa522d1){const _0x28eaa0=_0x147f2e,_0x48ef01=[],_0xf5485e=this[_0x28eaa0(0xa1)](_0x556746,!0x0);if(_0xf5485e){const _0x47695e=this[_0x28eaa0(0xcd)](_0xf5485e),_0x53ff81=_0x5285b9(_0x28eaa0(0xe5),_0x47695e,_0xa522d1);_0x53ff81&&_0x48ef01[_0x28eaa0(0xcf)]([_0x53ff81,_0x28eaa0(0xbe)]);}const _0x16fadb=this[_0x28eaa0(0xda)](_0x556746,!0x0);if(_0x16fadb){const _0x171f4d=this[_0x28eaa0(0xcd)](_0x16fadb),_0x187b8d=_0x5285b9(_0x28eaa0(0xe5),_0x171f4d,_0xa522d1);_0x187b8d&&_0x48ef01[_0x28eaa0(0xcf)]([_0x187b8d,_0x28eaa0(0xac)]);}if(_0x48ef01[_0x28eaa0(0xa7)]>0x1)return _0x4d6003(_0x48ef01[0x0][0x0])<=_0x4d6003(_0x48ef01[0x1][0x0])?_0x48ef01[0x0]:_0x48ef01[0x1];return 0x1===_0x48ef01[_0x28eaa0(0xa7)]?_0x48ef01[0x0]:[_0xa522d1[_0x28eaa0(0xc6)],_0x28eaa0(0xbe)];}[_0x147f2e(0xda)](_0x15db30,_0x2a46ff){const _0x4e9150=_0x147f2e;let _0x538828=_0x15db30[_0x4e9150(0xe1)],_0x192d71=null,_0x4a1201=!0x1;for(;_0x538828;){if(_0xc090df(_0x538828)){if(this[_0x4e9150(0xd3)](_0x538828)&&(_0x192d71=_0x538828),this[_0x4e9150(0xd0)](_0x538828)&&_0x2a46ff&&!_0x4a1201){_0x4a1201=!0x0,_0x538828=_0x538828[_0x4e9150(0xe1)];continue;}break;}const _0x5a0c3d=_0x1e4764(_0x538828,_0x4e9150(0xe5));if(_0x5a0c3d&&_0x4e9150(0xb3)!==_0x5a0c3d&&this[_0x4e9150(0xc2)][_0x4e9150(0xae)](_0x5a0c3d)){_0x192d71=_0x538828;break;}_0x538828=_0x538828[_0x4e9150(0xe1)];}return _0x192d71;}[_0x147f2e(0xa1)](_0x31effc,_0x42f54a){const _0x2d9dfa=_0x147f2e;let _0x120030=_0x31effc[_0x2d9dfa(0xe4)],_0x16adf5=null,_0x17820e=!0x1;for(;_0x120030;){if(_0xc090df(_0x120030)){if(this[_0x2d9dfa(0xd3)](_0x120030)&&(_0x16adf5=_0x120030),this[_0x2d9dfa(0xd0)](_0x120030)&&_0x42f54a&&!_0x17820e){_0x17820e=!0x0,_0x120030=_0x120030[_0x2d9dfa(0xe4)];continue;}break;}const _0xcf8363=_0x1e4764(_0x120030,_0x2d9dfa(0xe5));if(_0xcf8363&&_0x2d9dfa(0xb3)!==_0xcf8363&&this[_0x2d9dfa(0xc2)][_0x2d9dfa(0xae)](_0xcf8363)){_0x16adf5=_0x120030;break;}_0x120030=_0x120030[_0x2d9dfa(0xe4)];}return _0x16adf5;}[_0x147f2e(0xc3)](_0x14700e){const _0x28f1fc=_0x147f2e;_0x11c97b(_0x14700e)&&_0x3bdabb(_0x28f1fc(0xe5),null,_0x14700e)[_0x28f1fc(0xbd)](_0x37a25a=>{const _0x58a08a=_0x28f1fc;if(this[_0x58a08a(0xb0)](_0x37a25a)&&!this[_0x58a08a(0xaa)](_0x37a25a)){const _0x4cf140=_0x1e4764(_0x37a25a,_0x58a08a(0xe5));_0x574449(_0x37a25a,_0x58a08a(0xca),_0x4cf140),_0x574449(_0x37a25a,_0x58a08a(0xe5),null);}});}[_0x147f2e(0xcd)](_0x189cd7){const _0x1eb494=_0x147f2e;if(!_0x189cd7)return null;if(_0x11c97b(_0x189cd7))return _0x1e4764(_0x189cd7,_0x1eb494(0xe5));if(_0xc090df(_0x189cd7)){const _0x56838b=_0x36cb8d(_0x189cd7)[_0x1eb494(0xe6)](/removed[\s*-]data-id="([^"]+)"/);if(_0x56838b&&_0x56838b[0x1])return _0x56838b[0x1];}return null;}[_0x147f2e(0xc4)](_0x158909){const _0x1e6d69=_0x147f2e;if(_0xc090df(_0x158909)){const _0x4297be=_0x36cb8d(_0x158909)[_0x1e6d69(0xe6)](/removed[\s*-]data-id="([^"]+)"/);_0x4297be&&_0x4297be[0x1]&&this[_0x1e6d69(0xa3)][_0x1e6d69(0xa2)][_0x1e6d69(0xcf)](_0x4297be[0x1]);}}[_0x147f2e(0xdc)](_0x3bbbdd){const _0xf928d5=_0x147f2e;return this[_0xf928d5(0xb0)](_0x3bbbdd)?_0x1e4764(_0x3bbbdd,_0xf928d5(0xe5)):this[_0xf928d5(0xa0)]();}[_0x147f2e(0xc8)](_0x530eb7){const _0x4fec19=_0x147f2e;_0x50e9bf(_0x530eb7)[_0x4fec19(0xb8)](_0x4be650=>this[_0x4fec19(0xd3)](_0x4be650)||this[_0x4fec19(0xd0)](_0x4be650))[_0x4fec19(0xbd)](_0x21b170=>{_0x271e4a(_0x21b170);});}[_0x147f2e(0xc1)](_0x5503c9){const _0x20f106=_0x147f2e,_0x56ef94=_0x5503c9[_0x20f106(0xb5)],_0x402f93=_0x56ef94[_0x56ef94[_0x20f106(0xa7)]-0x1];_0x402f93&&_0x11c97b(_0x402f93)&&_0x574449(_0x402f93,_0x20f106(0xc7),_0x20f106(0xdd));}[_0x147f2e(0xbf)](_0x1b442a,_0x44b3b1){const _0x4debd0=_0x147f2e,_0x14f4b3=_0x5285b9(_0x4debd0(0xc7),_0x4debd0(0xdd),_0x1b442a);if(!_0x14f4b3)return;const _0x878843=_0x45df39(_0x14f4b3)[_0x4debd0(0xbb)](0x0,-0x1),_0x21b0ee=_0x878843[_0x4debd0(0xa7)];let _0x491761=_0x14f4b3;if(_0x21b0ee>_0x44b3b1){let _0xda6a4a=_0x21b0ee,_0x5692fe=null;for(;_0xda6a4a>_0x44b3b1&&_0xda6a4a>=0x0;)_0xda6a4a--,_0x5692fe=_0x878843[_0xda6a4a];_0x5692fe&&(_0x491761=_0x5692fe,_0x574449(_0x14f4b3,_0x4debd0(0xc7),null),_0x574449(_0x5692fe,_0x4debd0(0xc7),_0x4debd0(0xdd)));}else{if(_0x21b0ee<_0x44b3b1){let _0x3c7e6e=_0x21b0ee,_0x20f944=_0x14f4b3;for(;_0x3c7e6e<_0x44b3b1;){const _0x1d9fcb=_0x20f944[_0x4debd0(0xb5)][_0x4debd0(0xb8)](_0x1d3b9d=>_0x11c97b(_0x1d3b9d));if(0x0===_0x1d9fcb[_0x4debd0(0xa7)])break;_0x3c7e6e++,_0x20f944=_0x1d9fcb[_0x1d9fcb[_0x4debd0(0xa7)]-0x1];}_0x20f944&&(_0x491761=_0x20f944,_0x574449(_0x14f4b3,_0x4debd0(0xc7),null),_0x574449(_0x20f944,_0x4debd0(0xc7),_0x4debd0(0xdd)));}}let _0x1c14ea=_0x491761;for(;_0x1c14ea;){for(;_0x1c14ea[_0x4debd0(0xe1)];)_0x1c14ea=_0x1c14ea[_0x4debd0(0xe1)],_0x11c97b(_0x1c14ea)&&_0x574449(_0x1c14ea,_0x4debd0(0xc7),_0x4debd0(0xdd));_0x1c14ea=_0x1c14ea[_0x4debd0(0xd6)];}}[_0x147f2e(0xa4)](_0x380ab3){const _0x380b7d=_0x147f2e;return Boolean(_0x380b7d(0xb3)===_0x1e4764(_0x380ab3,_0x380b7d(0xe5)));}[_0x147f2e(0xb0)](_0x495d33){const _0x59df07=_0x147f2e;return Boolean((_0x1e4764(_0x495d33,_0x59df07(0xe5))||'')[_0x59df07(0xa7)]>0x0&&_0x59df07(0xb3)!==_0x1e4764(_0x495d33,_0x59df07(0xe5)));}[_0x147f2e(0xd3)](_0x1fddd5){const _0x2d3689=_0x147f2e;return!!_0x1fddd5&&Boolean(_0xc090df(_0x1fddd5)&&_0x36cb8d(_0x1fddd5)[_0x2d3689(0xe6)](/removed[\s*-]data-id="[^"]+"/));}[_0x147f2e(0xaa)](_0x2b82ad){const _0xa3009c=_0x147f2e;let _0x36834d=_0x2b82ad[_0xa3009c(0xd6)];for(;_0x36834d;){if(_0x1e4764(_0x36834d,_0xa3009c(0xca)))return!0x0;_0x36834d=_0x36834d[_0xa3009c(0xd6)];}return!0x1;}[_0x147f2e(0xd0)](_0x357673){const _0x8ecb25=_0x147f2e;return Boolean(_0xc090df(_0x357673)&&_0x36cb8d(_0x357673)[_0x8ecb25(0xe6)](/\s*existing[\s*-](content|document)\s*/g));}}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4606bc=_0x4b86;(function(_0x537eb2,_0x4a3b06){const _0x555c21=_0x4b86,_0x3199f6=_0x537eb2();while(!![]){try{const _0x2c4088=-parseInt(_0x555c21(0x84))/0x1*(parseInt(_0x555c21(0x81))/0x2)+parseInt(_0x555c21(0x7a))/0x3+parseInt(_0x555c21(0x7b))/0x4*(-parseInt(_0x555c21(0x77))/0x5)+parseInt(_0x555c21(0x82))/0x6+parseInt(_0x555c21(0x7d))/0x7+parseInt(_0x555c21(0x7e))/0x8*(parseInt(_0x555c21(0x73))/0x9)+-parseInt(_0x555c21(0x74))/0xa*(-parseInt(_0x555c21(0x7c))/0xb);if(_0x2c4088===_0x4a3b06)break;else _0x3199f6['push'](_0x3199f6['shift']());}catch(_0x1cefdb){_0x3199f6['push'](_0x3199f6['shift']());}}}(_0x115f,0xba1ff));function _0x115f(){const _0x50d61b=['826021kofmew','3638888RJENuL','_m2html','_parseHTML','1194696nWsqLa','6736182rvONDb','parseAndNormalizeHTML','1GmZkPq','parse','replace','9DIOhFI','209980vPZoUn','children','</dummy>','15xYLptQ','<dummy>','convertMarkdownToHTML','1910022foPzHi','1772648eVNUAl','187bgbJNi'];_0x115f=function(){return _0x50d61b;};return _0x115f();}import{ObservableMixin as _0x466cd3}from'ckeditor5/src/utils.js';import{MarkdownGfmMdToHtml as _0x3e7d7c}from'@ckeditor/ckeditor5-markdown-gfm';function _0x4b86(_0x3f1e6d,_0x216f02){const _0x115fd1=_0x115f();return _0x4b86=function(_0x4b869a,_0x6d9535){_0x4b869a=_0x4b869a-0x73;let _0x5b2217=_0x115fd1[_0x4b869a];return _0x5b2217;},_0x4b86(_0x3f1e6d,_0x216f02);}import{parse as _0xc43f39}from'../utils/htmlparser.js';export class AIResponseParser extends/* #__PURE__ -- @preserve */
24
- _0x466cd3(){[_0x4606bc(0x7f)];constructor(){const _0x22b6be=_0x4606bc;super(),this[_0x22b6be(0x7f)]=new _0x3e7d7c();}[_0x4606bc(0x79)](_0x482dea){const _0x3e14ce=_0x4606bc,_0x58ebf9=this[_0x3e14ce(0x7f)][_0x3e14ce(0x85)](_0x482dea);return this[_0x3e14ce(0x83)](_0x58ebf9);}[_0x4606bc(0x83)](_0x234b98){const _0x24271d=_0x4606bc;return this[_0x24271d(0x80)](_0x234b98);}[_0x4606bc(0x80)](_0x373c56){const _0x3a606a=_0x4606bc,_0x1940be=_0x373c56[_0x3a606a(0x86)](/^\t+/gm,'\x20')[_0x3a606a(0x86)](/\n*/g,'')[_0x3a606a(0x86)](/\s+/g,'\x20')[_0x3a606a(0x86)](/<[^>]*?$/g,''),_0x3f8c71=_0xc43f39(_0x3a606a(0x78)+_0x1940be+_0x3a606a(0x76));return _0x3f8c71[_0x3a606a(0x75)]=_0x3f8c71[_0x3a606a(0x75)][0x0][_0x3a606a(0x75)],_0x3f8c71;}}
23
+ const _0x116980=_0x5548;function _0x5548(_0x1a8cdd,_0x4e5d8f){const _0x5a9147=_0x5a91();return _0x5548=function(_0x55488b,_0x1d8b3f){_0x55488b=_0x55488b-0xcc;let _0x18f6b9=_0x5a9147[_0x55488b];return _0x18f6b9;},_0x5548(_0x1a8cdd,_0x4e5d8f);}(function(_0x47ad93,_0x3ce586){const _0xab0af1=_0x5548,_0x5afb06=_0x47ad93();while(!![]){try{const _0xd58698=-parseInt(_0xab0af1(0xd2))/0x1*(-parseInt(_0xab0af1(0xd9))/0x2)+-parseInt(_0xab0af1(0xd3))/0x3+-parseInt(_0xab0af1(0xcc))/0x4*(parseInt(_0xab0af1(0xd4))/0x5)+-parseInt(_0xab0af1(0xd7))/0x6+parseInt(_0xab0af1(0xcf))/0x7*(-parseInt(_0xab0af1(0xde))/0x8)+-parseInt(_0xab0af1(0xd0))/0x9+parseInt(_0xab0af1(0xd6))/0xa;if(_0xd58698===_0x3ce586)break;else _0x5afb06['push'](_0x5afb06['shift']());}catch(_0x559de2){_0x5afb06['push'](_0x5afb06['shift']());}}}(_0x5a91,0x36824));import{ObservableMixin as _0x52cfa3}from'ckeditor5/src/utils.js';import{MarkdownGfmMdToHtml as _0x3fb4f5}from'@ckeditor/ckeditor5-markdown-gfm';function _0x5a91(){const _0x149826=['3njEWSs','415959LQnLUu','180470XmzfGL','children','14529130QzBUJg','1777710fzcEzV','_m2html','27278GAqXTJ','replace','parse','parseAndNormalizeHTML','<dummy>','24AcgCym','12jHMLjz','</dummy>','convertMarkdownToHTML','745276xqNufm','3671442DfwnZm','_parseHTML'];_0x5a91=function(){return _0x149826;};return _0x5a91();}import{parse as _0x3f218f}from'../utils/htmlparser.js';export class AIResponseParser extends/* #__PURE__ -- @preserve */
24
+ _0x52cfa3(){[_0x116980(0xd8)];constructor(){const _0x21e04c=_0x116980;super(),this[_0x21e04c(0xd8)]=new _0x3fb4f5();}[_0x116980(0xce)](_0x1d2070){const _0x161876=_0x116980,_0x655725=this[_0x161876(0xd8)][_0x161876(0xdb)](_0x1d2070);return this[_0x161876(0xdc)](_0x655725);}[_0x116980(0xdc)](_0x167f88){const _0x4c51d2=_0x116980;return this[_0x4c51d2(0xd1)](_0x167f88);}[_0x116980(0xd1)](_0x143eaf){const _0x4762d0=_0x116980,_0x1b1f5b=_0x143eaf[_0x4762d0(0xda)](/^\t+/gm,'\x20')[_0x4762d0(0xda)](/\n*/g,'')[_0x4762d0(0xda)](/\s+/g,'\x20')[_0x4762d0(0xda)](/<[^>]*?$/g,''),_0x2f5d23=_0x3f218f(_0x4762d0(0xdd)+_0x1b1f5b+_0x4762d0(0xcd));return _0x2f5d23[_0x4762d0(0xd5)]=_0x2f5d23[_0x4762d0(0xd5)][0x0][_0x4762d0(0xd5)],_0x2f5d23;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0xe9dd6a,_0x1dd8ec){var _0x4c0b75=_0x3b4f,_0x28ec38=_0xe9dd6a();while(!![]){try{var _0x3a2cc5=-parseInt(_0x4c0b75(0x98))/0x1*(parseInt(_0x4c0b75(0x8f))/0x2)+parseInt(_0x4c0b75(0x99))/0x3*(-parseInt(_0x4c0b75(0x96))/0x4)+parseInt(_0x4c0b75(0x95))/0x5*(-parseInt(_0x4c0b75(0x91))/0x6)+-parseInt(_0x4c0b75(0x9a))/0x7+-parseInt(_0x4c0b75(0x93))/0x8+-parseInt(_0x4c0b75(0x94))/0x9+parseInt(_0x4c0b75(0x9d))/0xa;if(_0x3a2cc5===_0x1dd8ec)break;else _0x28ec38['push'](_0x28ec38['shift']());}catch(_0x507793){_0x28ec38['push'](_0x28ec38['shift']());}}}(_0x34a4,0xee550));import{View as _0x2d44f2}from'ckeditor5/src/ui.js';import{getTranslation as _0x51cc4e}from'../../aicore/utils/common-translations.js';function _0x3b4f(_0x29e87f,_0xe2c51d){var _0x34a4b8=_0x34a4();return _0x3b4f=function(_0x3b4f46,_0x204981){_0x3b4f46=_0x3b4f46-0x8f;var _0x379e7a=_0x34a4b8[_0x3b4f46];return _0x379e7a;},_0x3b4f(_0x29e87f,_0xe2c51d);}export class AIDisclaimerView extends _0x2d44f2{constructor(_0x5ae116){var _0xdfbdbe=_0x3b4f;super(_0x5ae116),this[_0xdfbdbe(0x9b)]({'tag':_0xdfbdbe(0x90),'attributes':{'class':['ck',_0xdfbdbe(0x92)]},'children':[{'tag':'p','attributes':{'class':['ck',_0xdfbdbe(0x97)]},'children':[{'text':_0x51cc4e(_0x5ae116,_0xdfbdbe(0x9c))}]}]});}}function _0x34a4(){var _0x402cbc=['1314162ZQMOKf','ck-ai-disclaimer','8520392wlfrTX','5691114rpbGnV','35lJXrzr','4sWWACI','ck-ai-disclaimer__content','379uTBOrB','2388147rhETHG','450261dimZuD','setTemplate','AI_DISCLAIMER_TEXT','52350610JUzqto','886ZNySya','div'];_0x34a4=function(){return _0x402cbc;};return _0x34a4();}
23
+ (function(_0x1fe57f,_0x11b979){var _0x44ac87=_0x1e84,_0x2557b3=_0x1fe57f();while(!![]){try{var _0x1fdd86=parseInt(_0x44ac87(0x1a1))/0x1+-parseInt(_0x44ac87(0x19c))/0x2+parseInt(_0x44ac87(0x19d))/0x3+parseInt(_0x44ac87(0x19e))/0x4+parseInt(_0x44ac87(0x1a7))/0x5*(-parseInt(_0x44ac87(0x1a5))/0x6)+parseInt(_0x44ac87(0x1a4))/0x7*(parseInt(_0x44ac87(0x1a0))/0x8)+parseInt(_0x44ac87(0x1a3))/0x9*(-parseInt(_0x44ac87(0x1a6))/0xa);if(_0x1fdd86===_0x11b979)break;else _0x2557b3['push'](_0x2557b3['shift']());}catch(_0x12137c){_0x2557b3['push'](_0x2557b3['shift']());}}}(_0x19d5,0x2d0d0));function _0x19d5(){var _0xe637b0=['555980bhvJTS','84288rfImwd','710796nNHDLg','setTemplate','29576qmhkTg','293086QdCbLT','ck-ai-disclaimer__content','251037NqAVik','469fAEILx','5538zjzUOb','80UTBzYC','330TutxcG','ck-ai-disclaimer','div','AI_DISCLAIMER_TEXT'];_0x19d5=function(){return _0xe637b0;};return _0x19d5();}import{View as _0x2318d2}from'ckeditor5/src/ui.js';function _0x1e84(_0x175d0d,_0x24ec6c){var _0x19d56b=_0x19d5();return _0x1e84=function(_0x1e84d2,_0x53794b){_0x1e84d2=_0x1e84d2-0x19c;var _0x2accea=_0x19d56b[_0x1e84d2];return _0x2accea;},_0x1e84(_0x175d0d,_0x24ec6c);}import{getTranslation as _0x5173a}from'../../aicore/utils/common-translations.js';export class AIDisclaimerView extends _0x2318d2{constructor(_0x148418){var _0x1adca1=_0x1e84;super(_0x148418),this[_0x1adca1(0x19f)]({'tag':_0x1adca1(0x1a9),'attributes':{'class':['ck',_0x1adca1(0x1a8)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x1adca1(0x1a2)]},'children':[{'text':_0x5173a(_0x148418,_0x1adca1(0x1aa))}]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3a378e=_0x56f2;(function(_0xc4c39d,_0x13ec1c){const _0x1e3158=_0x56f2,_0x4a2361=_0xc4c39d();while(!![]){try{const _0x5d7eba=parseInt(_0x1e3158(0x122))/0x1*(-parseInt(_0x1e3158(0x134))/0x2)+parseInt(_0x1e3158(0x120))/0x3*(parseInt(_0x1e3158(0x13e))/0x4)+parseInt(_0x1e3158(0x130))/0x5+parseInt(_0x1e3158(0x124))/0x6+parseInt(_0x1e3158(0x143))/0x7+-parseInt(_0x1e3158(0x128))/0x8*(-parseInt(_0x1e3158(0x137))/0x9)+-parseInt(_0x1e3158(0x139))/0xa;if(_0x5d7eba===_0x13ec1c)break;else _0x4a2361['push'](_0x4a2361['shift']());}catch(_0x4ba29d){_0x4a2361['push'](_0x4a2361['shift']());}}}(_0x4da8,0x869f6));import{View as _0x1d08e1}from'ckeditor5/src/ui.js';export class AISkeletonView extends _0x1d08e1{constructor(_0x3409f1,_0x23f126){const _0x53b690=_0x56f2;super(_0x3409f1),this[_0x53b690(0x132)]({'tag':_0x53b690(0x131),'attributes':{'class':['ck',_0x53b690(0x125)]},'children':this[_0x53b690(0x140)](_0x23f126)});}[_0x3a378e(0x140)](_0x1cee66){const _0x1c78ba=_0x3a378e,_0x5608f9=['ck',_0x1c78ba(0x126)];return _0x1cee66[_0x1c78ba(0x121)](_0x439f23=>{const _0x8a037a=_0x1c78ba;let _0xc95c9f='';switch(_0x439f23[_0x8a037a(0x12b)][_0x8a037a(0x13d)]){case _0x8a037a(0x11d):_0xc95c9f=_0x8a037a(0x11c);break;case _0x8a037a(0x11b):_0xc95c9f=_0x8a037a(0x123);break;case _0x8a037a(0x13b):_0xc95c9f=_0x8a037a(0x135);}return{'tag':_0x439f23[_0x8a037a(0x12a)],'attributes':{'class':[..._0x5608f9,_0x439f23[_0x8a037a(0x12b)][_0x8a037a(0x136)]?_0x439f23[_0x8a037a(0x12b)][_0x8a037a(0x136)]:''],'style':_0x8a037a(0x12d)+_0x439f23[_0x8a037a(0x12b)][_0x8a037a(0x13a)]+_0x8a037a(0x138)+_0x439f23[_0x8a037a(0x12b)][_0x8a037a(0x13c)]+';'+_0xc95c9f}};});}}function _0x56f2(_0x16f2b6,_0x13efe2){const _0x4da8a4=_0x4da8();return _0x56f2=function(_0x56f23f,_0x5804f1){_0x56f23f=_0x56f23f-0x11b;let _0x2221de=_0x4da8a4[_0x56f23f];return _0x2221de;},_0x56f2(_0x16f2b6,_0x13efe2);}export const SKELETON_DEFINITIONS={'aiFeed':[{'tag':_0x3a378e(0x131),'attributes':{'width':_0x3a378e(0x127),'height':_0x3a378e(0x142),'align':_0x3a378e(0x11d)}},{'tag':_0x3a378e(0x131),'attributes':{'width':_0x3a378e(0x141),'height':_0x3a378e(0x12c),'align':_0x3a378e(0x11d)}},{'tag':_0x3a378e(0x131),'attributes':{'width':_0x3a378e(0x127),'height':_0x3a378e(0x129),'align':_0x3a378e(0x11d)}},{'tag':_0x3a378e(0x131),'attributes':{'width':_0x3a378e(0x133),'height':_0x3a378e(0x12c),'align':_0x3a378e(0x11d)}},{'tag':_0x3a378e(0x131),'attributes':{'width':_0x3a378e(0x127),'height':_0x3a378e(0x11e),'align':_0x3a378e(0x11d)}},{'tag':_0x3a378e(0x131),'attributes':{'width':_0x3a378e(0x141),'height':_0x3a378e(0x12c),'align':_0x3a378e(0x11d)}},{'tag':_0x3a378e(0x131),'attributes':{'width':_0x3a378e(0x127),'height':_0x3a378e(0x129),'align':_0x3a378e(0x11d)}}],'aiHistory':$i(0x5,_0x3a378e(0x127),_0x3a378e(0x12f),_0x3a378e(0x11d)),'aiChatResources':$i(0x8,_0x3a378e(0x127),_0x3a378e(0x11f),_0x3a378e(0x11d)),'aiReviewChecks':[{'tag':_0x3a378e(0x131),'attributes':{'width':_0x3a378e(0x13f),'height':_0x3a378e(0x11f),'align':_0x3a378e(0x13b)}},{'tag':_0x3a378e(0x131),'attributes':{'width':_0x3a378e(0x127),'height':_0x3a378e(0x11f),'align':_0x3a378e(0x13b)}},{'tag':_0x3a378e(0x131),'attributes':{'width':_0x3a378e(0x13f),'height':_0x3a378e(0x11f),'align':_0x3a378e(0x13b)}}]};function $i(_0x20fc54,_0x5d93bf,_0x3eff12,_0x1b0424){const _0x547ab8=_0x3a378e;return new Array(_0x20fc54)[_0x547ab8(0x12e)](null)[_0x547ab8(0x121)](()=>({'tag':_0x547ab8(0x131),'attributes':{'width':_0x5d93bf,'height':_0x3eff12,'align':_0x1b0424}}));}function _0x4da8(){const _0x5df2de=['map','815PYOcsZ','margin-left:\x20auto;\x20margin-right:\x20auto;\x20text-align:\x20center;','541770fLFpIV','ck-ai-skeleton','ck-ai-skeleton__item','100%','56RtYCCu','88px','tag','attributes','40px','width:\x20','fill','44px','1954405vHkVif','div','setTemplate','150px','306yEEOuf','margin-left:\x200;\x20margin-right:\x20auto;\x20text-align:\x20left;','class','108189jcbbcS',';\x20height:\x20','15586580WLGWRn','width','left','height','align','244444feTNAp','128px','_createSkeletonItems','250px','72px','6980561seUvVX','center','margin-left:\x20auto;\x20margin-right:\x200;\x20text-align:\x20right;','right','140px','24px','33NxeMoM'];_0x4da8=function(){return _0x5df2de;};return _0x4da8();}
23
+ const _0x44c64f=_0x1efc;(function(_0x241a05,_0x368981){const _0x4af5e7=_0x1efc,_0x2f43ef=_0x241a05();while(!![]){try{const _0x11350b=parseInt(_0x4af5e7(0x102))/0x1+-parseInt(_0x4af5e7(0x106))/0x2+-parseInt(_0x4af5e7(0x125))/0x3*(-parseInt(_0x4af5e7(0x124))/0x4)+parseInt(_0x4af5e7(0x122))/0x5*(parseInt(_0x4af5e7(0x11b))/0x6)+-parseInt(_0x4af5e7(0x118))/0x7+parseInt(_0x4af5e7(0x120))/0x8*(parseInt(_0x4af5e7(0x121))/0x9)+parseInt(_0x4af5e7(0x112))/0xa*(parseInt(_0x4af5e7(0x115))/0xb);if(_0x11350b===_0x368981)break;else _0x2f43ef['push'](_0x2f43ef['shift']());}catch(_0x37943e){_0x2f43ef['push'](_0x2f43ef['shift']());}}}(_0x211f,0xa9532));function _0x1efc(_0x10e469,_0x3bce25){const _0x211f88=_0x211f();return _0x1efc=function(_0x1efc8a,_0x4393e9){_0x1efc8a=_0x1efc8a-0xfe;let _0x4a4b28=_0x211f88[_0x1efc8a];return _0x4a4b28;},_0x1efc(_0x10e469,_0x3bce25);}import{View as _0x4023da}from'ckeditor5/src/ui.js';export class AISkeletonView extends _0x4023da{constructor(_0x5a4233,_0x18e78e){const _0x7d901c=_0x1efc;super(_0x5a4233),this[_0x7d901c(0x11e)]({'tag':_0x7d901c(0xfe),'attributes':{'class':['ck',_0x7d901c(0x11d)]},'children':this[_0x7d901c(0x103)](_0x18e78e)});}[_0x44c64f(0x103)](_0x133417){const _0x4006cc=_0x44c64f,_0x2c7924=['ck',_0x4006cc(0x10d)];return _0x133417[_0x4006cc(0x10f)](_0x2749cc=>{const _0x461eb8=_0x4006cc;let _0x5a5644='';switch(_0x2749cc[_0x461eb8(0x107)][_0x461eb8(0x117)]){case _0x461eb8(0x104):_0x5a5644=_0x461eb8(0x126);break;case _0x461eb8(0x101):_0x5a5644=_0x461eb8(0x111);break;case _0x461eb8(0x109):_0x5a5644=_0x461eb8(0x10c);}return{'tag':_0x2749cc[_0x461eb8(0x11a)],'attributes':{'class':[..._0x2c7924,_0x2749cc[_0x461eb8(0x107)][_0x461eb8(0x105)]?_0x2749cc[_0x461eb8(0x107)][_0x461eb8(0x105)]:''],'style':_0x461eb8(0x116)+_0x2749cc[_0x461eb8(0x107)][_0x461eb8(0x108)]+_0x461eb8(0x119)+_0x2749cc[_0x461eb8(0x107)][_0x461eb8(0x10b)]+';'+_0x5a5644}};});}}export const SKELETON_DEFINITIONS={'aiFeed':[{'tag':_0x44c64f(0xfe),'attributes':{'width':_0x44c64f(0x100),'height':_0x44c64f(0xff),'align':_0x44c64f(0x104)}},{'tag':_0x44c64f(0xfe),'attributes':{'width':_0x44c64f(0x127),'height':_0x44c64f(0x123),'align':_0x44c64f(0x104)}},{'tag':_0x44c64f(0xfe),'attributes':{'width':_0x44c64f(0x100),'height':_0x44c64f(0x113),'align':_0x44c64f(0x104)}},{'tag':_0x44c64f(0xfe),'attributes':{'width':_0x44c64f(0x11c),'height':_0x44c64f(0x123),'align':_0x44c64f(0x104)}},{'tag':_0x44c64f(0xfe),'attributes':{'width':_0x44c64f(0x100),'height':_0x44c64f(0x10a),'align':_0x44c64f(0x104)}},{'tag':_0x44c64f(0xfe),'attributes':{'width':_0x44c64f(0x127),'height':_0x44c64f(0x123),'align':_0x44c64f(0x104)}},{'tag':_0x44c64f(0xfe),'attributes':{'width':_0x44c64f(0x100),'height':_0x44c64f(0x113),'align':_0x44c64f(0x104)}}],'aiHistory':ta(0x5,_0x44c64f(0x100),_0x44c64f(0x11f),_0x44c64f(0x104)),'aiChatResources':ta(0x8,_0x44c64f(0x100),_0x44c64f(0x114),_0x44c64f(0x104)),'aiReviewChecks':[{'tag':_0x44c64f(0xfe),'attributes':{'width':_0x44c64f(0x10e),'height':_0x44c64f(0x114),'align':_0x44c64f(0x109)}},{'tag':_0x44c64f(0xfe),'attributes':{'width':_0x44c64f(0x100),'height':_0x44c64f(0x114),'align':_0x44c64f(0x109)}},{'tag':_0x44c64f(0xfe),'attributes':{'width':_0x44c64f(0x10e),'height':_0x44c64f(0x114),'align':_0x44c64f(0x109)}}]};function ta(_0x2e659d,_0x5048c2,_0x239377,_0x2ed625){const _0x1d54c1=_0x44c64f;return new Array(_0x2e659d)[_0x1d54c1(0x110)](null)[_0x1d54c1(0x10f)](()=>({'tag':_0x1d54c1(0xfe),'attributes':{'width':_0x5048c2,'height':_0x239377,'align':_0x2ed625}}));}function _0x211f(){const _0x475f3f=['height','margin-left:\x200;\x20margin-right:\x20auto;\x20text-align:\x20left;','ck-ai-skeleton__item','128px','map','fill','margin-left:\x20auto;\x20margin-right:\x20auto;\x20text-align:\x20center;','10KXaqJm','88px','24px','471988ZCFPuN','width:\x20','align','1106028fEGwMn',';\x20height:\x20','tag','4692570nMglVw','150px','ck-ai-skeleton','setTemplate','44px','624JhKNXM','243lphcRJ','5fiIUuf','40px','2936yczMZe','2622KBMzng','margin-left:\x20auto;\x20margin-right:\x200;\x20text-align:\x20right;','250px','div','72px','100%','center','480070bKVuYS','_createSkeletonItems','right','class','2194274IQpDMt','attributes','width','left','140px'];_0x211f=function(){return _0x475f3f;};return _0x211f();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x23b8ec,_0x5001fb){const _0x27785e=_0x4f4e,_0x523790=_0x23b8ec();while(!![]){try{const _0x17dd36=parseInt(_0x27785e(0xe3))/0x1+-parseInt(_0x27785e(0xd9))/0x2+parseInt(_0x27785e(0xde))/0x3*(parseInt(_0x27785e(0xdc))/0x4)+-parseInt(_0x27785e(0xdd))/0x5+-parseInt(_0x27785e(0xe5))/0x6*(parseInt(_0x27785e(0xe1))/0x7)+-parseInt(_0x27785e(0xe4))/0x8+parseInt(_0x27785e(0xda))/0x9*(parseInt(_0x27785e(0xe0))/0xa);if(_0x17dd36===_0x5001fb)break;else _0x523790['push'](_0x523790['shift']());}catch(_0x57fd6b){_0x523790['push'](_0x523790['shift']());}}}(_0x528a,0xc6e3f));import{SpinnerView as _0x294127}from'ckeditor5/src/ui.js';export class AISpinnerView extends _0x294127{constructor(_0x3e499a=void 0x0){const _0x182039=_0x4f4e;super();const _0x35dd4a=_0x3e499a?_0x182039(0xdf)+_0x3e499a:'';this[_0x182039(0xe2)]({'tag':_0x182039(0xe6),'attributes':{'class':[_0x182039(0xdb),_0x35dd4a]}});}}function _0x4f4e(_0x5a44e4,_0x5330a0){const _0x528a9a=_0x528a();return _0x4f4e=function(_0x4f4e7b,_0x2a2912){_0x4f4e7b=_0x4f4e7b-0xd9;let _0x1815b3=_0x528a9a[_0x4f4e7b];return _0x1815b3;},_0x4f4e(_0x5a44e4,_0x5330a0);}function _0x528a(){const _0x25054b=['610374FHShAV','span','700034WACTtz','8361unIgJd','ck-ai-spinner','1761332CNJAuT','7745950zTSYwH','3dgEDgM','ck-ai-spinner_','22690BHkKoV','35iwCKnC','extendTemplate','1015893HaAWMS','2732960yOjusK'];_0x528a=function(){return _0x25054b;};return _0x528a();}
23
+ (function(_0x5bce8a,_0x211fce){const _0x288721=_0x46a0,_0x4c3b31=_0x5bce8a();while(!![]){try{const _0x43afaa=-parseInt(_0x288721(0x123))/0x1+-parseInt(_0x288721(0x11f))/0x2*(-parseInt(_0x288721(0x120))/0x3)+-parseInt(_0x288721(0x125))/0x4*(-parseInt(_0x288721(0x124))/0x5)+parseInt(_0x288721(0x118))/0x6+parseInt(_0x288721(0x122))/0x7*(parseInt(_0x288721(0x11b))/0x8)+-parseInt(_0x288721(0x126))/0x9*(-parseInt(_0x288721(0x11c))/0xa)+-parseInt(_0x288721(0x119))/0xb*(parseInt(_0x288721(0x11a))/0xc);if(_0x43afaa===_0x211fce)break;else _0x4c3b31['push'](_0x4c3b31['shift']());}catch(_0x4b3ee7){_0x4c3b31['push'](_0x4c3b31['shift']());}}}(_0x1893,0xb43a9));function _0x46a0(_0x314838,_0x53f276){const _0x1893f8=_0x1893();return _0x46a0=function(_0x46a0ce,_0x2b014f){_0x46a0ce=_0x46a0ce-0x117;let _0x1a1b65=_0x1893f8[_0x46a0ce];return _0x1a1b65;},_0x46a0(_0x314838,_0x53f276);}import{SpinnerView as _0x5be226}from'ckeditor5/src/ui.js';export class AISpinnerView extends _0x5be226{constructor(_0x11986d=void 0x0){const _0x12f569=_0x46a0;super();const _0x18b056=_0x11986d?_0x12f569(0x117)+_0x11986d:'';this[_0x12f569(0x11e)]({'tag':_0x12f569(0x11d),'attributes':{'class':[_0x12f569(0x121),_0x18b056]}});}}function _0x1893(){const _0x2ac560=['4660752ybEkGM','1560376SYnJIZ','9277810wsDTgh','span','extendTemplate','2742zaWJcE','1530tIHvRd','ck-ai-spinner','14KtTHsq','840221iknimn','5dwcDaD','900892uAdSpG','9VOFfPz','ck-ai-spinner_','5338284KBBqkA','44TAmDYt'];_0x1893=function(){return _0x2ac560;};return _0x1893();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xb8f5d9=_0x421f;(function(_0x58e00e,_0x59e4ca){const _0x358aee=_0x421f,_0x277bca=_0x58e00e();while(!![]){try{const _0x3960be=parseInt(_0x358aee(0x1ed))/0x1*(-parseInt(_0x358aee(0x1ee))/0x2)+-parseInt(_0x358aee(0x1f3))/0x3*(-parseInt(_0x358aee(0x1f1))/0x4)+parseInt(_0x358aee(0x1e8))/0x5+parseInt(_0x358aee(0x1e2))/0x6*(parseInt(_0x358aee(0x1da))/0x7)+-parseInt(_0x358aee(0x1e7))/0x8*(parseInt(_0x358aee(0x1eb))/0x9)+parseInt(_0x358aee(0x1e4))/0xa*(parseInt(_0x358aee(0x201))/0xb)+-parseInt(_0x358aee(0x1dc))/0xc;if(_0x3960be===_0x59e4ca)break;else _0x277bca['push'](_0x277bca['shift']());}catch(_0x22fd62){_0x277bca['push'](_0x277bca['shift']());}}}(_0x2f11,0x64f75));function _0x2f11(){const _0x2fac8c=['ck-ai-mini-toolbar-copy-button\x20ck-ai-mini-toolbar-copy-button_copied','ck-ai-mini-toolbar\x20ck-hidden','locale','full','class','42oeHMaR','dislike','1828656jYITRb','customView','isEnabled','copyButton','isOn','_config','313374ISOiqR','_setupRatingButtons','2341460fKbhLC','isLoading','children','4383224hBUGRK','95285IiOgwY','AI_MINI_TOOLBAR_DISLIKE','_setupShowChangesButton','9LBMBSM','bind','3421EKsLww','222ortFQN','add','like','366968USVlzB','dislikeButton','15bGkmQZ','extendTemplate','showDislike','showChangesButton','ck-ai-mini-toolbar-copy-button__check-mark','items','toggleShowChanges','ck-ai-mini-toolbar','AI_SUGGESTION_BUTTON_SHOW_CHANGES','AI_MINI_TOOLBAR_LIKE','fire','showLike','likeButton','set','33dRyfhM','ck-ai-mini-toolbar-copy-button','AI_MINI_TOOLBAR_COPY','_setupCopyButton','addMany','execute','showCopy','showChanges','length'];_0x2f11=function(){return _0x2fac8c;};return _0x2f11();}import{ButtonView as _0x134639,IconView as _0x7090cc,ToolbarView as _0xb12f99}from'ckeditor5/src/ui.js';function _0x421f(_0x59f140,_0x1218c5){const _0x2f115c=_0x2f11();return _0x421f=function(_0x421f26,_0x3520c0){_0x421f26=_0x421f26-0x1d1;let _0xf59571=_0x2f115c[_0x421f26];return _0xf59571;},_0x421f(_0x59f140,_0x1218c5);}import{IconCheck as _0x52d5e7,IconCopy as _0x4dc8a1,IconShowChangesOff as _0x360aad,IconShowChangesOn as _0x201cfb,IconThumbDown as _0x3e7ae6,IconThumbUp as _0x398ac8}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x41f7ef}from'../../utils/common-translations.js';export class AIMiniToolbarView extends _0xb12f99{[_0xb8f5d9(0x1df)];[_0xb8f5d9(0x1ff)];[_0xb8f5d9(0x1f2)];[_0xb8f5d9(0x1f6)];[_0xb8f5d9(0x1e1)];constructor(_0x30bca7,_0x4154d8={},_0x24f095){const _0x3859c5=_0xb8f5d9;super(_0x30bca7),this[_0x3859c5(0x200)](_0x3859c5(0x1e5),!0x1),this[_0x3859c5(0x1e1)]={'showCopy':!0x1,'showLike':!0x1,'showDislike':!0x1,..._0x4154d8};const _0x4e0d33=!(this[_0x3859c5(0x1e1)][_0x3859c5(0x1d2)]||this[_0x3859c5(0x1e1)][_0x3859c5(0x1d3)]||this[_0x3859c5(0x1e1)][_0x3859c5(0x1fe)]||this[_0x3859c5(0x1e1)][_0x3859c5(0x1f5)]||this[_0x3859c5(0x1e1)][_0x3859c5(0x1dd)]?.[_0x3859c5(0x1d4)]);this[_0x3859c5(0x1d9)]=_0x4e0d33?_0x3859c5(0x1d6):_0x3859c5(0x1fa),this[_0x3859c5(0x1e1)][_0x3859c5(0x1d2)]&&(this[_0x3859c5(0x204)](),this[_0x3859c5(0x1f8)][_0x3859c5(0x1ef)](this[_0x3859c5(0x1df)])),this[_0x3859c5(0x1e1)][_0x3859c5(0x1d3)]&&(this[_0x3859c5(0x1ea)](_0x24f095),this[_0x3859c5(0x1f8)][_0x3859c5(0x1ef)](this[_0x3859c5(0x1f6)])),this[_0x3859c5(0x1e3)](),this[_0x3859c5(0x1e1)][_0x3859c5(0x1fe)]&&this[_0x3859c5(0x1f8)][_0x3859c5(0x1ef)](this[_0x3859c5(0x1ff)]),this[_0x3859c5(0x1e1)][_0x3859c5(0x1f5)]&&this[_0x3859c5(0x1f8)][_0x3859c5(0x1ef)](this[_0x3859c5(0x1f2)]),this[_0x3859c5(0x1e1)][_0x3859c5(0x1dd)]&&this[_0x3859c5(0x1f8)][_0x3859c5(0x205)](this[_0x3859c5(0x1e1)][_0x3859c5(0x1dd)]);}[_0xb8f5d9(0x1e3)](){const _0x1367bd=_0xb8f5d9;this[_0x1367bd(0x1ff)]=new _0x134639(this[_0x1367bd(0x1d7)]),this[_0x1367bd(0x1ff)][_0x1367bd(0x200)]({'icon':_0x398ac8,'label':_0x41f7ef(this[_0x1367bd(0x1d7)],_0x1367bd(0x1fc)),'tooltip':!0x0}),this[_0x1367bd(0x1ff)][_0x1367bd(0x1ec)](_0x1367bd(0x1de))['to'](this,_0x1367bd(0x1e5),_0x3609f5=>!_0x3609f5),this[_0x1367bd(0x1ff)]['on'](_0x1367bd(0x1d1),()=>{const _0x591c9e=_0x1367bd;this[_0x591c9e(0x1fd)](_0x591c9e(0x1f0));}),this[_0x1367bd(0x1f2)]=new _0x134639(this[_0x1367bd(0x1d7)]),this[_0x1367bd(0x1f2)][_0x1367bd(0x200)]({'icon':_0x3e7ae6,'label':_0x41f7ef(this[_0x1367bd(0x1d7)],_0x1367bd(0x1e9)),'tooltip':!0x0}),this[_0x1367bd(0x1f2)][_0x1367bd(0x1ec)](_0x1367bd(0x1de))['to'](this,_0x1367bd(0x1e5),_0x41a48f=>!_0x41a48f),this[_0x1367bd(0x1f2)]['on'](_0x1367bd(0x1d1),()=>{const _0x3de03f=_0x1367bd;this[_0x3de03f(0x1fd)](_0x3de03f(0x1db));});}[_0xb8f5d9(0x204)](){const _0xda301b=_0xb8f5d9;this[_0xda301b(0x1df)]=new _0x134639(this[_0xda301b(0x1d7)]),this[_0xda301b(0x1df)][_0xda301b(0x200)]({'icon':_0x4dc8a1,'label':_0x41f7ef(this[_0xda301b(0x1d7)],_0xda301b(0x203)),'class':_0xda301b(0x202),'tooltip':!0x0}),this[_0xda301b(0x1df)][_0xda301b(0x1ec)](_0xda301b(0x1de))['to'](this,_0xda301b(0x1e5),_0x4f5d2a=>!_0x4f5d2a);const _0x3309b4=new _0x7090cc();_0x3309b4[_0xda301b(0x200)]({'content':_0x52d5e7}),_0x3309b4[_0xda301b(0x1f4)]({'attributes':{'class':[_0xda301b(0x1f7)]}}),this[_0xda301b(0x1df)]['on'](_0xda301b(0x1d1),()=>{const _0x6e002f=_0xda301b;this[_0x6e002f(0x1df)][_0x6e002f(0x1d9)]=_0x6e002f(0x1d5),setTimeout(()=>{const _0x442431=_0x6e002f;this[_0x442431(0x1df)][_0x442431(0x1d9)]=_0x442431(0x202);},0x7d0);}),this[_0xda301b(0x1df)][_0xda301b(0x1e6)][_0xda301b(0x1ef)](_0x3309b4);}[_0xb8f5d9(0x1ea)](_0x4f1653){const _0x1806fa=_0xb8f5d9;this[_0x1806fa(0x1f6)]=new _0x134639(this[_0x1806fa(0x1d7)]),this[_0x1806fa(0x1f6)][_0x1806fa(0x200)]({'icon':_0x360aad,'label':_0x41f7ef(this[_0x1806fa(0x1d7)],_0x1806fa(0x1fb)),'withText':_0x1806fa(0x1d8)==this[_0x1806fa(0x1e1)][_0x1806fa(0x1d3)],'tooltip':_0x1806fa(0x1d8)!=this[_0x1806fa(0x1e1)][_0x1806fa(0x1d3)],'isOn':_0x4f1653}),this[_0x1806fa(0x1f6)][_0x1806fa(0x1ec)](_0x1806fa(0x1de))['to'](this,_0x1806fa(0x1e5),_0x210284=>!_0x210284),this[_0x1806fa(0x1f6)]['on'](_0x1806fa(0x1d1),()=>{const _0xfa5dca=_0x1806fa,_0x596f11=!this[_0xfa5dca(0x1f6)][_0xfa5dca(0x1e0)];this[_0xfa5dca(0x1f6)][_0xfa5dca(0x200)]({'isOn':_0x596f11,'icon':_0x596f11?_0x201cfb:_0x360aad}),this[_0xfa5dca(0x1fd)](_0xfa5dca(0x1f9),_0x596f11);});}}
23
+ const _0x2c2a0b=_0x5911;(function(_0x9b7fc2,_0x174ff6){const _0x5234af=_0x5911,_0x5dd301=_0x9b7fc2();while(!![]){try{const _0x2ed12f=parseInt(_0x5234af(0xb2))/0x1*(parseInt(_0x5234af(0x9d))/0x2)+-parseInt(_0x5234af(0xab))/0x3+-parseInt(_0x5234af(0xb5))/0x4+parseInt(_0x5234af(0xa5))/0x5*(-parseInt(_0x5234af(0xbd))/0x6)+-parseInt(_0x5234af(0xa7))/0x7*(-parseInt(_0x5234af(0xaf))/0x8)+-parseInt(_0x5234af(0x95))/0x9*(parseInt(_0x5234af(0xb0))/0xa)+-parseInt(_0x5234af(0xbb))/0xb*(-parseInt(_0x5234af(0xa8))/0xc);if(_0x2ed12f===_0x174ff6)break;else _0x5dd301['push'](_0x5dd301['shift']());}catch(_0x3c6108){_0x5dd301['push'](_0x5dd301['shift']());}}}(_0xd688,0x312e7));function _0xd688(){const _0x33784e=['showCopy','locale','dislike','2337003zSUmiw','AI_MINI_TOOLBAR_COPY','ck-ai-mini-toolbar-copy-button','execute','showChangesButton','add','_setupCopyButton','AI_MINI_TOOLBAR_DISLIKE','2siMhQs','AI_SUGGESTION_BUTTON_SHOW_CHANGES','_setupRatingButtons','likeButton','isOn','class','isLoading','showLike','511310oBWmRA','like','258398PVUGpc','12dQZqpf','children','set','70185mZVHXv','customView','ck-ai-mini-toolbar\x20ck-hidden','ck-ai-mini-toolbar-copy-button\x20ck-ai-mini-toolbar-copy-button_copied','16uquiIx','10ELDnsv','addMany','26833iIafxp','ck-ai-mini-toolbar-copy-button__check-mark','copyButton','888348HCLeVo','ck-ai-mini-toolbar','items','toggleShowChanges','full','_setupShowChangesButton','7790167tjGLFE','extendTemplate','6QSxEPV','fire','_config','showChanges','showDislike','isEnabled','dislikeButton','length','AI_MINI_TOOLBAR_LIKE','bind'];_0xd688=function(){return _0x33784e;};return _0xd688();}import{ButtonView as _0x509ad2,IconView as _0x3011b4,ToolbarView as _0x25f3e1}from'ckeditor5/src/ui.js';import{IconCheck as _0x44cd7f,IconCopy as _0x4387d0,IconShowChangesOff as _0x2bfdf4,IconShowChangesOn as _0x3c2a04,IconThumbDown as _0x5204d8,IconThumbUp as _0x370c3d}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x102b33}from'../../utils/common-translations.js';function _0x5911(_0x3161af,_0x12b01c){const _0xd688eb=_0xd688();return _0x5911=function(_0x591134,_0x1a010b){_0x591134=_0x591134-0x8f;let _0x4f89cb=_0xd688eb[_0x591134];return _0x4f89cb;},_0x5911(_0x3161af,_0x12b01c);}export class AIMiniToolbarView extends _0x25f3e1{[_0x2c2a0b(0xb4)];[_0x2c2a0b(0xa0)];[_0x2c2a0b(0xc3)];[_0x2c2a0b(0x99)];[_0x2c2a0b(0xbf)];constructor(_0x5a1171,_0x5d1be3={},_0x542705){const _0x5d22fe=_0x2c2a0b;super(_0x5a1171),this[_0x5d22fe(0xaa)](_0x5d22fe(0xa3),!0x1),this[_0x5d22fe(0xbf)]={'showCopy':!0x1,'showLike':!0x1,'showDislike':!0x1,..._0x5d1be3};const _0x27c9cd=!(this[_0x5d22fe(0xbf)][_0x5d22fe(0x92)]||this[_0x5d22fe(0xbf)][_0x5d22fe(0xc0)]||this[_0x5d22fe(0xbf)][_0x5d22fe(0xa4)]||this[_0x5d22fe(0xbf)][_0x5d22fe(0xc1)]||this[_0x5d22fe(0xbf)][_0x5d22fe(0xac)]?.[_0x5d22fe(0x8f)]);this[_0x5d22fe(0xa2)]=_0x27c9cd?_0x5d22fe(0xad):_0x5d22fe(0xb6),this[_0x5d22fe(0xbf)][_0x5d22fe(0x92)]&&(this[_0x5d22fe(0x9b)](),this[_0x5d22fe(0xb7)][_0x5d22fe(0x9a)](this[_0x5d22fe(0xb4)])),this[_0x5d22fe(0xbf)][_0x5d22fe(0xc0)]&&(this[_0x5d22fe(0xba)](_0x542705),this[_0x5d22fe(0xb7)][_0x5d22fe(0x9a)](this[_0x5d22fe(0x99)])),this[_0x5d22fe(0x9f)](),this[_0x5d22fe(0xbf)][_0x5d22fe(0xa4)]&&this[_0x5d22fe(0xb7)][_0x5d22fe(0x9a)](this[_0x5d22fe(0xa0)]),this[_0x5d22fe(0xbf)][_0x5d22fe(0xc1)]&&this[_0x5d22fe(0xb7)][_0x5d22fe(0x9a)](this[_0x5d22fe(0xc3)]),this[_0x5d22fe(0xbf)][_0x5d22fe(0xac)]&&this[_0x5d22fe(0xb7)][_0x5d22fe(0xb1)](this[_0x5d22fe(0xbf)][_0x5d22fe(0xac)]);}[_0x2c2a0b(0x9f)](){const _0x4d8b68=_0x2c2a0b;this[_0x4d8b68(0xa0)]=new _0x509ad2(this[_0x4d8b68(0x93)]),this[_0x4d8b68(0xa0)][_0x4d8b68(0xaa)]({'icon':_0x370c3d,'label':_0x102b33(this[_0x4d8b68(0x93)],_0x4d8b68(0x90)),'tooltip':!0x0}),this[_0x4d8b68(0xa0)][_0x4d8b68(0x91)](_0x4d8b68(0xc2))['to'](this,_0x4d8b68(0xa3),_0x4e822f=>!_0x4e822f),this[_0x4d8b68(0xa0)]['on'](_0x4d8b68(0x98),()=>{const _0x24b7cb=_0x4d8b68;this[_0x24b7cb(0xbe)](_0x24b7cb(0xa6));}),this[_0x4d8b68(0xc3)]=new _0x509ad2(this[_0x4d8b68(0x93)]),this[_0x4d8b68(0xc3)][_0x4d8b68(0xaa)]({'icon':_0x5204d8,'label':_0x102b33(this[_0x4d8b68(0x93)],_0x4d8b68(0x9c)),'tooltip':!0x0}),this[_0x4d8b68(0xc3)][_0x4d8b68(0x91)](_0x4d8b68(0xc2))['to'](this,_0x4d8b68(0xa3),_0x1e3a6d=>!_0x1e3a6d),this[_0x4d8b68(0xc3)]['on'](_0x4d8b68(0x98),()=>{const _0x5630ee=_0x4d8b68;this[_0x5630ee(0xbe)](_0x5630ee(0x94));});}[_0x2c2a0b(0x9b)](){const _0x1b8c90=_0x2c2a0b;this[_0x1b8c90(0xb4)]=new _0x509ad2(this[_0x1b8c90(0x93)]),this[_0x1b8c90(0xb4)][_0x1b8c90(0xaa)]({'icon':_0x4387d0,'label':_0x102b33(this[_0x1b8c90(0x93)],_0x1b8c90(0x96)),'class':_0x1b8c90(0x97),'tooltip':!0x0}),this[_0x1b8c90(0xb4)][_0x1b8c90(0x91)](_0x1b8c90(0xc2))['to'](this,_0x1b8c90(0xa3),_0x2b63a9=>!_0x2b63a9);const _0x4bde46=new _0x3011b4();_0x4bde46[_0x1b8c90(0xaa)]({'content':_0x44cd7f}),_0x4bde46[_0x1b8c90(0xbc)]({'attributes':{'class':[_0x1b8c90(0xb3)]}}),this[_0x1b8c90(0xb4)]['on'](_0x1b8c90(0x98),()=>{const _0x3899bf=_0x1b8c90;this[_0x3899bf(0xb4)][_0x3899bf(0xa2)]=_0x3899bf(0xae),setTimeout(()=>{const _0x442298=_0x3899bf;this[_0x442298(0xb4)][_0x442298(0xa2)]=_0x442298(0x97);},0x7d0);}),this[_0x1b8c90(0xb4)][_0x1b8c90(0xa9)][_0x1b8c90(0x9a)](_0x4bde46);}[_0x2c2a0b(0xba)](_0x262feb){const _0x591679=_0x2c2a0b;this[_0x591679(0x99)]=new _0x509ad2(this[_0x591679(0x93)]),this[_0x591679(0x99)][_0x591679(0xaa)]({'icon':_0x2bfdf4,'label':_0x102b33(this[_0x591679(0x93)],_0x591679(0x9e)),'withText':_0x591679(0xb9)==this[_0x591679(0xbf)][_0x591679(0xc0)],'tooltip':_0x591679(0xb9)!=this[_0x591679(0xbf)][_0x591679(0xc0)],'isOn':_0x262feb}),this[_0x591679(0x99)][_0x591679(0x91)](_0x591679(0xc2))['to'](this,_0x591679(0xa3),_0x515cda=>!_0x515cda),this[_0x591679(0x99)]['on'](_0x591679(0x98),()=>{const _0x5baeb0=_0x591679,_0x47e830=!this[_0x5baeb0(0x99)][_0x5baeb0(0xa1)];this[_0x5baeb0(0x99)][_0x5baeb0(0xaa)]({'isOn':_0x47e830,'icon':_0x47e830?_0x3c2a04:_0x2bfdf4}),this[_0x5baeb0(0xbe)](_0x5baeb0(0xb8),_0x47e830);});}}
@@ -9,14 +9,17 @@ import { type Locale } from 'ckeditor5/src/utils.js';
9
9
  import { View } from 'ckeditor5/src/ui.js';
10
10
  import { AISuggestionBodyViewContentPartView, type AIContentRenderingStrategy } from './aisuggestioncontentpartview.js';
11
11
  import { type AISuggestionContentPartDefinition } from '../../utils/getsuggestionpartsfromreply.js';
12
+ import { type AISuggestionActionName } from '../../../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';
13
+ import { type AIReplyChangeGroupState } from '../../model/aireply.js';
12
14
  /**
13
15
  * The inner view of the suggestion container that displays the content of the suggestion (or multiple parts of it).
14
16
  */
15
17
  export declare class AISuggestionBodyView extends View<HTMLDivElement> {
16
18
  hasPendingParts: boolean;
17
- constructor(locale: Locale, { areActionsDisabled, showUnchangedParts }: {
19
+ constructor(locale: Locale, options: {
18
20
  areActionsDisabled: boolean;
19
21
  showUnchangedParts: boolean;
22
+ availableActions: Array<AISuggestionActionName>;
20
23
  });
21
24
  get partsCount(): number;
22
25
  updateContentParts({ parts, renderingStrategy, abortSignal }: {
@@ -24,7 +27,7 @@ export declare class AISuggestionBodyView extends View<HTMLDivElement> {
24
27
  renderingStrategy: AIContentRenderingStrategy;
25
28
  abortSignal?: AbortSignal;
26
29
  }): Promise<void>;
27
- updatePartState(index: number, state: string): void;
30
+ updatePartState(index: number, state: AIReplyChangeGroupState): void;
28
31
  getPartView(index: number): AISuggestionBodyViewContentPartView | null;
29
32
  /**
30
33
  * Marks the body view as done.
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x5369(){const _0x36295b=['add','index','AI_SUGGESTION_NO_PARTS_WARNING','addEventListener','hasNonEmptyParts','createCollection','hasPendingParts','first','252FkWiDS','updatePartState','locale','set','updateContentParts','empty-parts-warning','_updateContentPartsPromiseQueue','_areActionsDisabled','length','setTemplate','185979VGyfZh','warning','_showUnchangedParts','from','setContent','getPartView','abort','_children','pending','queueEmptyPromise','enqueue','hasChanges','4497140KwQRmT','div','9734355ULvqxA','delegate','some','ck-ai-suggestion__body','find','ck-ai-suggestion__body__content-parts','582872kmxzkM','AI_SUGGESTION_EMPTY_PART_WARNING','isVisible','28VpCSmx','updateContent','10PtXkvc','21182fzwCpZ','partsCount','get','markAsDone','3043964yupKlu','toggleHeader','partDefinition','state','123040hJPczc','_emptyPartsWarningView'];_0x5369=function(){return _0x36295b;};return _0x5369();}const _0x1ad5ae=_0x34b6;(function(_0x146d66,_0x3d56b9){const _0x48d211=_0x34b6,_0x1b954c=_0x146d66();while(!![]){try{const _0x50c54c=-parseInt(_0x48d211(0x12b))/0x1+parseInt(_0x48d211(0x128))/0x2*(-parseInt(_0x48d211(0x147))/0x3)+parseInt(_0x48d211(0x153))/0x4+parseInt(_0x48d211(0x133))/0x5*(-parseInt(_0x48d211(0x13d))/0x6)+parseInt(_0x48d211(0x12f))/0x7+-parseInt(_0x48d211(0x15b))/0x8+-parseInt(_0x48d211(0x155))/0x9*(-parseInt(_0x48d211(0x12a))/0xa);if(_0x50c54c===_0x3d56b9)break;else _0x1b954c['push'](_0x1b954c['shift']());}catch(_0x3e7d68){_0x1b954c['push'](_0x1b954c['shift']());}}}(_0x5369,0x9d885));import{View as _0x190ced}from'ckeditor5/src/ui.js';import{AISuggestionBodyViewContentPartView as _0x469694}from'./aisuggestioncontentpartview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x2d74e2}from'../../utils/eventnames.js';import{PromiseQueue as _0x63850a}from'../../../aichat/utils/promisequeue.js';import{AIChatFeedErrorItemView as _0x37baca}from'../../../aichat/ui/feed/aichatfeederroritemview.js';function _0x34b6(_0x576bdc,_0x1aa118){const _0x5369b7=_0x5369();return _0x34b6=function(_0x34b6da,_0x15e79a){_0x34b6da=_0x34b6da-0x128;let _0x7304d8=_0x5369b7[_0x34b6da];return _0x7304d8;},_0x34b6(_0x576bdc,_0x1aa118);}import{getTranslation as _0x3aeb9b}from'../../utils/common-translations.js';export class AISuggestionBodyView extends _0x190ced{[_0x1ad5ae(0x14e)];[_0x1ad5ae(0x144)];[_0x1ad5ae(0x149)];[_0x1ad5ae(0x143)];[_0x1ad5ae(0x134)];constructor(_0x31de0e,{areActionsDisabled:_0x4e4382,showUnchangedParts:_0x2348ca}){const _0x170d65=_0x1ad5ae;super(_0x31de0e),this[_0x170d65(0x144)]=_0x4e4382,this[_0x170d65(0x149)]=_0x2348ca,this[_0x170d65(0x140)](_0x170d65(0x13b),!0x1),this[_0x170d65(0x14e)]=this[_0x170d65(0x13a)](),this[_0x170d65(0x143)]=new _0x63850a(),this[_0x170d65(0x134)]=new _0x37baca({'id':_0x170d65(0x142),'initialContent':_0x3aeb9b(_0x31de0e,_0x170d65(0x15c)),'level':_0x170d65(0x148)}),this[_0x170d65(0x134)][_0x170d65(0x15d)]=!0x1,this[_0x170d65(0x146)]({'tag':_0x170d65(0x154),'attributes':{'class':['ck',_0x170d65(0x158)]},'children':[{'tag':_0x170d65(0x154),'attributes':{'class':['ck',_0x170d65(0x15a)]},'children':this[_0x170d65(0x14e)]},this[_0x170d65(0x134)]]});}get[_0x1ad5ae(0x12c)](){const _0x34f097=_0x1ad5ae;return this[_0x34f097(0x14e)][_0x34f097(0x145)];}async[_0x1ad5ae(0x141)]({parts:_0x26fa08,renderingStrategy:_0x4ab641,abortSignal:_0x275a0f}){const _0x5810ba=_0x1ad5ae;for(const _0x2052d8 of _0x26fa08)this[_0x5810ba(0x143)][_0x5810ba(0x151)](async _0x28d367=>{const _0x3e276a=_0x5810ba;let _0x6c2cd7=this[_0x3e276a(0x14e)][_0x3e276a(0x159)](_0x58cbfb=>_0x58cbfb[_0x3e276a(0x131)][_0x3e276a(0x136)]==_0x2052d8[_0x3e276a(0x136)]);_0x6c2cd7||(_0x6c2cd7=new _0x469694(this[_0x3e276a(0x13f)],{'part':_0x2052d8,'areActionsDisabled':this[_0x3e276a(0x144)]}),_0x6c2cd7[_0x3e276a(0x156)](..._0x2d74e2)['to'](this),this[_0x3e276a(0x14e)][_0x3e276a(0x135)](_0x6c2cd7),this[_0x3e276a(0x13b)]=!0x0),0x2===this[_0x3e276a(0x14e)][_0x3e276a(0x145)]&&this[_0x3e276a(0x14e)][_0x3e276a(0x13c)][_0x3e276a(0x130)](!0x0),_0x6c2cd7[_0x3e276a(0x130)](this[_0x3e276a(0x14e)][_0x3e276a(0x145)]>0x1),await _0x6c2cd7[_0x3e276a(0x129)]({'part':_0x2052d8,'renderingStrategy':_0x4ab641,'showUnchangedParts':this[_0x3e276a(0x149)],'abortSignal':_0x28d367});});return _0x275a0f?.[_0x5810ba(0x138)](_0x5810ba(0x14d),()=>{const _0x14f0ea=_0x5810ba;this[_0x14f0ea(0x143)][_0x14f0ea(0x14d)]();}),this[_0x5810ba(0x143)][_0x5810ba(0x150)];}[_0x1ad5ae(0x13e)](_0x39ef13,_0x191cb0){const _0xadf8b7=_0x1ad5ae;this[_0xadf8b7(0x14e)][_0xadf8b7(0x12d)](_0x39ef13)[_0xadf8b7(0x132)]=_0x191cb0,this[_0xadf8b7(0x13b)]=_0xadf8b7(0x14f)==_0x191cb0||Array[_0xadf8b7(0x14a)](this[_0xadf8b7(0x14e)])[_0xadf8b7(0x157)](_0x11f0de=>_0xadf8b7(0x14f)==_0x11f0de[_0xadf8b7(0x132)]);}[_0x1ad5ae(0x14c)](_0x4701ba){const _0xbf8947=_0x1ad5ae;return this[_0xbf8947(0x14e)][_0xbf8947(0x12d)](_0x4701ba);}[_0x1ad5ae(0x12e)](){const _0xf4d005=_0x1ad5ae;if(!this[_0xf4d005(0x149)]){const _0x1a0779=!this[_0xf4d005(0x14e)][_0xf4d005(0x159)](_0xe591ec=>_0xe591ec[_0xf4d005(0x131)][_0xf4d005(0x152)]),_0x433c90=!!this[_0xf4d005(0x14e)][_0xf4d005(0x159)](_0xacf9bf=>!_0xacf9bf[_0xf4d005(0x131)][_0xf4d005(0x152)]);this[_0xf4d005(0x134)][_0xf4d005(0x15d)]=0x0==this[_0xf4d005(0x14e)][_0xf4d005(0x145)]||_0x433c90,_0x1a0779?this[_0xf4d005(0x134)][_0xf4d005(0x14b)](_0x3aeb9b(this[_0xf4d005(0x13f)],_0xf4d005(0x137))):this[_0xf4d005(0x134)][_0xf4d005(0x14b)](_0x3aeb9b(this[_0xf4d005(0x13f)],_0xf4d005(0x15c)));}}get[_0x1ad5ae(0x139)](){const _0x108e74=_0x1ad5ae;return!!this[_0x108e74(0x14e)][_0x108e74(0x159)](_0x2b2dbe=>_0x2b2dbe[_0x108e74(0x131)][_0x108e74(0x152)]);}}
23
+ function _0x1fb4(){const _0xf3d770=['partsCount','isVisible','137155PcGTWY','delegate','269564vuJObJ','hasPendingParts','length','index','filter','_emptyPartsWarningView','addEventListener','partDefinition','2VMgxEY','findIndex','div','_availableActions','hasChanges','_cachedContentParts','_updateContentPartsPromiseQueue','304wzhLsn','hasNonEmptyParts','getPartView','3590172nDvfjj','updateContentParts','markAsDone','setContent','pending','15fOlFwH','createCollection','470976qFhlCN','_showUnchangedParts','_children','abort','ck-ai-suggestion__body__content-parts','some','push','_areActionsDisabled','ck-ai-suggestion__body','updatePartState','enqueue','add','first','forEach','state','empty-parts-warning','5vyYaEt','warning','7487730pSmKBy','AI_SUGGESTION_NO_PARTS_WARNING','queueEmptyPromise','252fAmXdr','2794610CsRgqa','set','AI_SUGGESTION_EMPTY_PART_WARNING','182502RtTFsj','toggleHeader','setTemplate','updateContent','find','from','locale'];_0x1fb4=function(){return _0xf3d770;};return _0x1fb4();}const _0x4d0863=_0x155a;(function(_0x263efb,_0x2f6ba6){const _0x2f1d69=_0x155a,_0x40c7f6=_0x263efb();while(!![]){try{const _0x49f9ca=-parseInt(_0x2f1d69(0x124))/0x1*(parseInt(_0x2f1d69(0x12e))/0x2)+parseInt(_0x2f1d69(0x13d))/0x3*(parseInt(_0x2f1d69(0x126))/0x4)+parseInt(_0x2f1d69(0x14f))/0x5*(parseInt(_0x2f1d69(0x138))/0x6)+parseInt(_0x2f1d69(0x155))/0x7+-parseInt(_0x2f1d69(0x135))/0x8*(parseInt(_0x2f1d69(0x158))/0x9)+-parseInt(_0x2f1d69(0x151))/0xa+-parseInt(_0x2f1d69(0x13f))/0xb*(-parseInt(_0x2f1d69(0x154))/0xc);if(_0x49f9ca===_0x2f6ba6)break;else _0x40c7f6['push'](_0x40c7f6['shift']());}catch(_0x270db4){_0x40c7f6['push'](_0x40c7f6['shift']());}}}(_0x1fb4,0x8cea7));function _0x155a(_0x374e16,_0x3d970f){const _0x1fb435=_0x1fb4();return _0x155a=function(_0x155ac3,_0xf4f0c7){_0x155ac3=_0x155ac3-0x11e;let _0x1f40e6=_0x1fb435[_0x155ac3];return _0x1f40e6;},_0x155a(_0x374e16,_0x3d970f);}import{View as _0x54d45b}from'ckeditor5/src/ui.js';import{AISuggestionBodyViewContentPartView as _0x5138ba}from'./aisuggestioncontentpartview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x2ef850}from'../../utils/eventnames.js';import{PromiseQueue as _0x1d4b0f}from'../../../aichat/utils/promisequeue.js';import{AIChatFeedErrorItemView as _0x11032a}from'../../../aichat/ui/feed/aichatfeederroritemview.js';import{getTranslation as _0x545927}from'../../utils/common-translations.js';export class AISuggestionBodyView extends _0x54d45b{[_0x4d0863(0x141)];[_0x4d0863(0x146)];[_0x4d0863(0x140)];[_0x4d0863(0x134)];[_0x4d0863(0x12b)];[_0x4d0863(0x131)];[_0x4d0863(0x133)]=[];constructor(_0x511c17,_0x595ea4){const _0x100e08=_0x4d0863;super(_0x511c17);const {areActionsDisabled:_0xf29348,showUnchangedParts:_0x582550,availableActions:_0x19a30b}=_0x595ea4;this[_0x100e08(0x146)]=_0xf29348,this[_0x100e08(0x140)]=_0x582550,this[_0x100e08(0x131)]=_0x19a30b,this[_0x100e08(0x156)](_0x100e08(0x127),!0x1),this[_0x100e08(0x141)]=this[_0x100e08(0x13e)](),this[_0x100e08(0x134)]=new _0x1d4b0f(),this[_0x100e08(0x12b)]=new _0x11032a({'id':_0x100e08(0x14e),'initialContent':_0x545927(_0x511c17,_0x100e08(0x157)),'level':_0x100e08(0x150)}),this[_0x100e08(0x12b)][_0x100e08(0x123)]=!0x1,this[_0x100e08(0x15a)]({'tag':_0x100e08(0x130),'attributes':{'class':['ck',_0x100e08(0x147)]},'children':[{'tag':_0x100e08(0x130),'attributes':{'class':['ck',_0x100e08(0x143)]},'children':this[_0x100e08(0x141)]},this[_0x100e08(0x12b)]]});}get[_0x4d0863(0x122)](){const _0x54a9c0=_0x4d0863;return this[_0x54a9c0(0x141)][_0x54a9c0(0x128)];}async[_0x4d0863(0x139)]({parts:_0x5b28d1,renderingStrategy:_0x2461c0,abortSignal:_0x110450}){const _0x1a5b8c=_0x4d0863;this[_0x1a5b8c(0x141)][_0x1a5b8c(0x128)]?_0x5b28d1[_0x1a5b8c(0x14c)](_0x5d7a83=>{const _0x18b75e=_0x1a5b8c,_0x57f9bd=this[_0x18b75e(0x133)][_0x18b75e(0x12f)](_0x3e9a18=>_0x3e9a18[_0x18b75e(0x129)]==_0x5d7a83[_0x18b75e(0x129)]);-0x1===_0x57f9bd?this[_0x18b75e(0x133)][_0x18b75e(0x145)](_0x5d7a83):this[_0x18b75e(0x133)][_0x57f9bd]=_0x5d7a83;}):this[_0x1a5b8c(0x133)]=_0x5b28d1;for(const _0x1a0e35 of _0x5b28d1[_0x1a5b8c(0x12a)](_0x2ece8e=>_0x2ece8e[_0x1a5b8c(0x132)]))this[_0x1a5b8c(0x134)][_0x1a5b8c(0x149)](async _0x4c1e40=>{const _0x1b50f1=_0x1a5b8c;let _0x17f580=this[_0x1b50f1(0x137)](_0x1a0e35[_0x1b50f1(0x129)]);_0x17f580||(_0x17f580=new _0x5138ba(this[_0x1b50f1(0x121)],{'part':_0x1a0e35,'uiIndex':this[_0x1b50f1(0x141)][_0x1b50f1(0x128)]+0x1,'areActionsDisabled':this[_0x1b50f1(0x146)],'availableActions':this[_0x1b50f1(0x131)]}),_0x17f580[_0x1b50f1(0x125)](..._0x2ef850)['to'](this),this[_0x1b50f1(0x141)][_0x1b50f1(0x14a)](_0x17f580),this[_0x1b50f1(0x127)]=!0x0),0x2===this[_0x1b50f1(0x141)][_0x1b50f1(0x128)]&&this[_0x1b50f1(0x141)][_0x1b50f1(0x14b)][_0x1b50f1(0x159)](!0x0),_0x17f580[_0x1b50f1(0x159)](this[_0x1b50f1(0x141)][_0x1b50f1(0x128)]>0x1),await _0x17f580[_0x1b50f1(0x11e)]({'part':_0x1a0e35,'renderingStrategy':_0x2461c0,'showUnchangedParts':this[_0x1b50f1(0x140)],'abortSignal':_0x4c1e40});});return _0x110450?.[_0x1a5b8c(0x12c)](_0x1a5b8c(0x142),()=>{const _0xd3ec14=_0x1a5b8c;this[_0xd3ec14(0x134)][_0xd3ec14(0x142)]();}),this[_0x1a5b8c(0x134)][_0x1a5b8c(0x153)];}[_0x4d0863(0x148)](_0x4d4241,_0x7dda2e){const _0x1c2951=_0x4d0863,_0x15b1b5=this[_0x1c2951(0x137)](_0x4d4241);_0x15b1b5&&(_0x15b1b5[_0x1c2951(0x14d)]=_0x7dda2e),this[_0x1c2951(0x127)]=_0x1c2951(0x13c)==_0x7dda2e||Array[_0x1c2951(0x120)](this[_0x1c2951(0x141)])[_0x1c2951(0x144)](_0x3f3cd=>_0x1c2951(0x13c)==_0x3f3cd[_0x1c2951(0x14d)]);}[_0x4d0863(0x137)](_0x319e0c){const _0x13c95d=_0x4d0863;return this[_0x13c95d(0x141)][_0x13c95d(0x11f)](_0x43de0b=>_0x43de0b[_0x13c95d(0x12d)][_0x13c95d(0x129)]==_0x319e0c)??null;}[_0x4d0863(0x13a)](){const _0x223fa1=_0x4d0863;if(!this[_0x223fa1(0x140)]){const _0xbce4ac=!this[_0x223fa1(0x133)][_0x223fa1(0x11f)](({hasChanges:_0x59cbc2})=>_0x59cbc2),_0x57e297=!!this[_0x223fa1(0x133)][_0x223fa1(0x11f)](({hasChanges:_0x33fe36})=>!_0x33fe36);this[_0x223fa1(0x12b)][_0x223fa1(0x123)]=0x0==this[_0x223fa1(0x141)][_0x223fa1(0x128)]||_0x57e297,_0xbce4ac?this[_0x223fa1(0x12b)][_0x223fa1(0x13b)](_0x545927(this[_0x223fa1(0x121)],_0x223fa1(0x152))):this[_0x223fa1(0x12b)][_0x223fa1(0x13b)](_0x545927(this[_0x223fa1(0x121)],_0x223fa1(0x157)));}}get[_0x4d0863(0x136)](){const _0x3d22dd=_0x4d0863;return!!this[_0x3d22dd(0x141)][_0x3d22dd(0x11f)](_0x4f73a1=>_0x4f73a1[_0x3d22dd(0x12d)][_0x3d22dd(0x132)]);}}
@@ -11,6 +11,7 @@ import { type AIMiniToolbarConfig } from './aiminitoolbarview.js';
11
11
  import { type AISuggestionContentPartDefinition } from '../../utils/getsuggestionpartsfromreply.js';
12
12
  import { type AIContentRenderingStrategy } from './aisuggestioncontentpartview.js';
13
13
  import { type AIReplySource } from '../../model/aireply.js';
14
+ import { type AISuggestionActionName } from '../../../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';
14
15
  /**
15
16
  * This view displays a suggestion from the AI.
16
17
  *
@@ -29,7 +30,7 @@ export declare class AISuggestionContainerView extends View<HTMLDivElement> {
29
30
  /**
30
31
  * @inheritDoc
31
32
  */
32
- constructor(locale: Locale, { showDiff, areActionsDisabled, miniToolbarConfig, hideHeader, showLoader, showUnchangedParts }: AISuggestionContainerViewOptions);
33
+ constructor(locale: Locale, options: AISuggestionContainerViewOptions);
33
34
  updateContent(options: {
34
35
  parts: Array<AISuggestionContentPartDefinition>;
35
36
  renderingStrategy: AIContentRenderingStrategy;
@@ -82,6 +83,7 @@ export type AISuggestionContainerToggleSuggestionDisplayModeEvent = {
82
83
  export type AISuggestionContainerViewOptions = {
83
84
  showDiff: boolean;
84
85
  areActionsDisabled: boolean;
86
+ availableActions: Array<AISuggestionActionName>;
85
87
  miniToolbarConfig?: AIMiniToolbarConfig;
86
88
  hideHeader?: boolean;
87
89
  showLoader?: boolean;