@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
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x295731=_0x5d87;(function(_0x232fdc,_0xeb86a0){const _0xe1826e=_0x5d87,_0x4f4489=_0x232fdc();while(!![]){try{const _0x3886d8=-parseInt(_0xe1826e(0x1b6))/0x1*(parseInt(_0xe1826e(0x1b9))/0x2)+-parseInt(_0xe1826e(0x1b5))/0x3*(parseInt(_0xe1826e(0x19f))/0x4)+parseInt(_0xe1826e(0x1b4))/0x5*(-parseInt(_0xe1826e(0x1c6))/0x6)+parseInt(_0xe1826e(0x1b2))/0x7+-parseInt(_0xe1826e(0x1a7))/0x8+parseInt(_0xe1826e(0x1c1))/0x9*(-parseInt(_0xe1826e(0x1c3))/0xa)+parseInt(_0xe1826e(0x1db))/0xb;if(_0x3886d8===_0xeb86a0)break;else _0x4f4489['push'](_0x4f4489['shift']());}catch(_0x143b35){_0x4f4489['push'](_0x4f4489['shift']());}}}(_0x976f,0xe8d60));import{FocusTracker as _0x2f3978,KeystrokeHandler as _0x2e8a17}from'ckeditor5/src/utils.js';import{View as _0xc7b00a,FocusCycler as _0x544ec9,createLabeledTextarea as _0x31c4e6}from'ckeditor5/src/ui.js';import{AIFormToolbarView as _0x161077,AIFormToolbarViewMainActionLabel as _0xb54f01}from'./aiformtoolbarview.js';import{AIFormContentArea as _0x548fab}from'./aiformcontentarea.js';function _0x5d87(_0x165b00,_0x5b19c6){const _0x976fdc=_0x976f();return _0x5d87=function(_0x5d87e6,_0x21529e){_0x5d87e6=_0x5d87e6-0x19e;let _0xcfa69d=_0x976fdc[_0x5d87e6];return _0xcfa69d;},_0x5d87(_0x165b00,_0x5b19c6);}import{AIFormErrorView as _0x4f67d6}from'./aiformerrorview.js';import{AIFormPromptView as _0x56f60b}from'./aiformpromptview.js';import{AIHistoryListView as _0xa181e7}from'./aihistorylistview.js';import{AIHistoryListItemView as _0x3b5bf6}from'./aihistorylistitemview.js';import{PromptHistory as _0x299491}from'./prompthistory.js';function _0x976f(){const _0x576b38=['_focusables','170CXrvhC','ck-ai-form-content','AI_ERROR_FAILED','42162CtTAdd','replaceButton','delegate','focus','_promptHistory','fieldView','set','bind','items','mainAction','search','isEnabled','stopProcessing','trim','_createHistoryView','setTemplate','clearHistory','keystrokes','text','insertContentBelow','reset','39327706VHFcnK','add','queryView','Ask\x20AI\x20to\x20edit\x20or\x20generate','tryAgainEvent','submit','bindTo','stopButton','focusFirst','clear','tab','handleError','element','focusCycler','isError','listenTo','shift\x20+\x20tab','isVisible','focusLast','label','_createToolbar','toolbar','Ask\x20AI\x20to\x20improve\x20generated\x20text','chain','submitPrompt','focusTracker','20ZeKMXh','locale','Empty\x20history','startProcessing','REPLACE','ck-ai-form','div','promptView','3359504hKeoAw','_createPromptView','isProcessing','bindTemplate','copyButtonView','finishProcessing','tryAgainButton','contentArea','errorView','insertButton','render','1573075CdJSnl','value','5mjRRcj','271317czvOas','419778DpSSBO','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','ck-hidden','4JQlame','createCollection','high','historyGroupView','fire','execute','prompt','replaceContent','596943ccBmFU'];_0x976f=function(){return _0x576b38;};return _0x976f();}import{getTranslation as _0x14ff1c}from'../../utils/common-translations.js';import{escape as _0x4ea725}from'es-toolkit/compat';export class AIFormView extends _0xc7b00a{[_0x295731(0x19e)];[_0x295731(0x1d7)];[_0x295731(0x1ae)];[_0x295731(0x1f0)];[_0x295731(0x1a6)];[_0x295731(0x1af)];[_0x295731(0x1c2)];[_0x295731(0x1e8)];[_0x295731(0x1ca)];constructor(_0x4fc1c4,_0x3c4e12,_0x3fa89f=''){const _0x5b6d90=_0x295731;super(_0x4fc1c4),this[_0x5b6d90(0x1cc)](_0x5b6d90(0x1d1),!0x0),this[_0x5b6d90(0x1cc)](_0x5b6d90(0x1a9),!0x1),this[_0x5b6d90(0x1cc)](_0x5b6d90(0x1bf),''),this[_0x5b6d90(0x1cc)](_0x5b6d90(0x1b3),''),this[_0x5b6d90(0x1cc)](_0x5b6d90(0x1e9),!0x1),this[_0x5b6d90(0x1cc)](_0x5b6d90(0x1cf),_0xb54f01[_0x5b6d90(0x1a3)]),this[_0x5b6d90(0x1ca)]=new _0x299491(),this[_0x5b6d90(0x1af)]=new _0x4f67d6(_0x4fc1c4),this[_0x5b6d90(0x1ae)]=new _0x548fab(_0x4fc1c4,_0x3fa89f),this[_0x5b6d90(0x1ae)][_0x5b6d90(0x1cd)](_0x5b6d90(0x1a9))['to'](this),this[_0x5b6d90(0x1ae)][_0x5b6d90(0x1cd)](_0x5b6d90(0x1b3))['to'](this),this[_0x5b6d90(0x1f0)]=this[_0x5b6d90(0x1ef)](),this[_0x5b6d90(0x1f0)][_0x5b6d90(0x1cd)](_0x5b6d90(0x1cf))['to'](this),this[_0x5b6d90(0x1a6)]=this[_0x5b6d90(0x1a8)](),this[_0x5b6d90(0x19e)]=new _0x2f3978(),this[_0x5b6d90(0x1d7)]=new _0x2e8a17(),this[_0x5b6d90(0x1c2)]=this[_0x5b6d90(0x1ba)]([this[_0x5b6d90(0x1ae)],this[_0x5b6d90(0x1ae)][_0x5b6d90(0x1ab)],this[_0x5b6d90(0x1f0)],this[_0x5b6d90(0x1a6)]]),this[_0x5b6d90(0x1e8)]=new _0x544ec9({'focusables':this[_0x5b6d90(0x1c2)],'focusTracker':this[_0x5b6d90(0x19e)],'keystrokeHandler':this[_0x5b6d90(0x1d7)],'actions':{'focusPrevious':_0x5b6d90(0x1eb),'focusNext':_0x5b6d90(0x1e5)}}),this[_0x5b6d90(0x1e8)][_0x5b6d90(0x1f2)](this[_0x5b6d90(0x1a6)][_0x5b6d90(0x1e8)]),this[_0x5b6d90(0x1a6)][_0x5b6d90(0x1dd)][_0x5b6d90(0x1cb)][_0x5b6d90(0x1cd)](_0x5b6d90(0x1b3))['to'](this,_0x5b6d90(0x1bf));const _0x28b47c=this[_0x5b6d90(0x1aa)];this[_0x5b6d90(0x1d5)]({'tag':_0x5b6d90(0x1a5),'attributes':{'class':['ck',_0x5b6d90(0x1a4),_0x3c4e12],'tabindex':'-1'},'children':[{'tag':_0x5b6d90(0x1a5),'attributes':{'class':['ck',_0x5b6d90(0x1c4)]},'children':[{'tag':_0x5b6d90(0x1a5),'attributes':{'class':[_0x28b47c['if'](_0x5b6d90(0x1e9),_0x5b6d90(0x1b8),_0x66f497=>!_0x66f497)]},'children':[this[_0x5b6d90(0x1af)]]},this[_0x5b6d90(0x1ae)],this[_0x5b6d90(0x1f0)],this[_0x5b6d90(0x1a6)]]}]});}[_0x295731(0x1b1)](){const _0x4bbb72=_0x295731;super[_0x4bbb72(0x1b1)](),this[_0x4bbb72(0x19e)][_0x4bbb72(0x1dc)](this[_0x4bbb72(0x1ae)][_0x4bbb72(0x1e7)]),this[_0x4bbb72(0x19e)][_0x4bbb72(0x1dc)](this[_0x4bbb72(0x1ae)][_0x4bbb72(0x1ab)][_0x4bbb72(0x1e7)]),this[_0x4bbb72(0x19e)][_0x4bbb72(0x1dc)](this[_0x4bbb72(0x1f0)][_0x4bbb72(0x1e7)]),this[_0x4bbb72(0x19e)][_0x4bbb72(0x1dc)](this[_0x4bbb72(0x1a6)][_0x4bbb72(0x1e7)]),this[_0x4bbb72(0x1d7)][_0x4bbb72(0x1ea)](this[_0x4bbb72(0x1e7)]);}[_0x295731(0x1c9)](_0x1961e0=0x1){const _0x491eb4=_0x295731;-0x1===_0x1961e0?this[_0x491eb4(0x1e8)][_0x491eb4(0x1ed)]():this[_0x491eb4(0x1e8)][_0x491eb4(0x1e3)]();}[_0x295731(0x1da)](){const _0x205ef7=_0x295731;this[_0x205ef7(0x1bf)]='',this[_0x205ef7(0x1b3)]='',this[_0x205ef7(0x1e9)]=!0x1,this[_0x205ef7(0x1a6)][_0x205ef7(0x1da)](),this[_0x205ef7(0x1ae)][_0x205ef7(0x1ec)]=!0x1,this[_0x205ef7(0x1f0)][_0x205ef7(0x1ec)]=!0x1;}[_0x295731(0x1a8)](){const _0x705b82=_0x295731,_0x3cb6ce=this[_0x705b82(0x1a0)],_0x5dd343=new _0x56f60b(_0x3cb6ce,{'queryView':{'label':_0x14ff1c(_0x3cb6ce,_0x705b82(0x1de)),'creator':_0x31c4e6,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x14ff1c(_0x3cb6ce,_0x705b82(0x1a1)),'secondary':_0x14ff1c(_0x3cb6ce,_0x705b82(0x1b7))}}},'filteredView':this[_0x705b82(0x1d4)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x5dd343[_0x705b82(0x1cd)](_0x705b82(0x1d1))['to'](this,_0x705b82(0x1d1),this,_0x705b82(0x1a9),(_0xde22b0,_0x297a6f)=>_0xde22b0&&!_0x297a6f),this[_0x705b82(0x1ea)](_0x5dd343,_0x705b82(0x1e0),(_0x2bf5bc,_0x2dd709)=>{const _0x576f5a=_0x705b82;this[_0x576f5a(0x1bf)]=_0x2dd709;const _0x12b8cf=_0x4ea725(_0x2dd709);this[_0x576f5a(0x1bd)](_0x576f5a(0x1f3),_0x12b8cf),_0x2dd709[_0x576f5a(0x1d3)]()&&this[_0x576f5a(0x1ca)][_0x576f5a(0x1dc)]({'prompt':_0x12b8cf},0x0);},{'priority':_0x705b82(0x1bb)}),_0x5dd343;}[_0x295731(0x1d4)](){const _0x249902=_0x295731,_0x20bffb=new _0xa181e7(this[_0x249902(0x1a0)]);return _0x20bffb[_0x249902(0x1bc)][_0x249902(0x1ce)][_0x249902(0x1e1)](this[_0x249902(0x1ca)])['as'](_0x3b5bf6),_0x20bffb['on'](_0x249902(0x1d6),()=>{const _0x203176=_0x249902;this[_0x203176(0x1ca)][_0x203176(0x1e4)](),this[_0x203176(0x1a6)][_0x203176(0x1d0)](''),this[_0x203176(0x1a6)][_0x203176(0x1c9)]();}),_0x20bffb;}[_0x295731(0x1ef)](){const _0x9a6b75=_0x295731,_0x2c0fe1=new _0x161077(this[_0x9a6b75(0x1a0)]);return _0x2c0fe1[_0x9a6b75(0x1c7)][_0x9a6b75(0x1cd)](_0x9a6b75(0x1d1))['to'](this,_0x9a6b75(0x1d1),this,_0x9a6b75(0x1a9),this,_0x9a6b75(0x1b3),(_0x5e7998,_0x2950dc,_0x40c31d)=>_0x5e7998&&!_0x2950dc&&!!_0x40c31d),_0x2c0fe1[_0x9a6b75(0x1c7)][_0x9a6b75(0x1c8)](_0x9a6b75(0x1be))['to'](this,_0x9a6b75(0x1c0)),_0x2c0fe1[_0x9a6b75(0x1b0)][_0x9a6b75(0x1cd)](_0x9a6b75(0x1d1))['to'](this,_0x9a6b75(0x1d1),this,_0x9a6b75(0x1a9),this,_0x9a6b75(0x1b3),(_0x521157,_0x5dce1e,_0x15972a)=>_0x521157&&!_0x5dce1e&&!!_0x15972a),_0x2c0fe1[_0x9a6b75(0x1b0)][_0x9a6b75(0x1c8)](_0x9a6b75(0x1be))['to'](this,_0x9a6b75(0x1d9)),_0x2c0fe1[_0x9a6b75(0x1ad)][_0x9a6b75(0x1cd)](_0x9a6b75(0x1d1))['to'](this,_0x9a6b75(0x1d1),this,_0x9a6b75(0x1a9),(_0x5bc34c,_0x39663a)=>_0x5bc34c&&!_0x39663a),_0x2c0fe1[_0x9a6b75(0x1ad)][_0x9a6b75(0x1c8)](_0x9a6b75(0x1be))['to'](this,_0x9a6b75(0x1df)),_0x2c0fe1[_0x9a6b75(0x1e2)][_0x9a6b75(0x1cd)](_0x9a6b75(0x1d1))['to'](this,_0x9a6b75(0x1a9)),_0x2c0fe1[_0x9a6b75(0x1e2)][_0x9a6b75(0x1c8)](_0x9a6b75(0x1be))['to'](this,_0x9a6b75(0x1d2)),_0x2c0fe1;}[_0x295731(0x1a2)](){const _0x543b42=_0x295731;this[_0x543b42(0x1b3)]='',this[_0x543b42(0x1e9)]=!0x1,this[_0x543b42(0x1a9)]=!0x0,this[_0x543b42(0x1ae)][_0x543b42(0x1ec)]=!0x0,this[_0x543b42(0x1f0)][_0x543b42(0x1ec)]=!0x0,this[_0x543b42(0x1ae)][_0x543b42(0x1c9)]();}[_0x295731(0x1ac)](){const _0x9e0f0d=_0x295731,_0x554834=this[_0x9e0f0d(0x1a0)];this[_0x9e0f0d(0x1a9)]=!0x1,this[_0x9e0f0d(0x1bf)]='',this[_0x9e0f0d(0x1a6)][_0x9e0f0d(0x1da)](),this[_0x9e0f0d(0x1b3)]&&(this[_0x9e0f0d(0x1a6)][_0x9e0f0d(0x1dd)][_0x9e0f0d(0x1ee)]=_0x14ff1c(_0x554834,_0x9e0f0d(0x1f1)));}[_0x295731(0x1e6)](_0x2e17e6){const _0x18d658=_0x295731,_0x2b4b66=this[_0x18d658(0x1a0)];this[_0x18d658(0x1ac)](),this[_0x18d658(0x1e9)]=!0x0,this[_0x18d658(0x1af)][_0x18d658(0x1d8)]=_0x2e17e6||_0x14ff1c(_0x2b4b66,_0x18d658(0x1c5)),this[_0x18d658(0x1b3)]||(this[_0x18d658(0x1ae)][_0x18d658(0x1ec)]=!0x1);}}
23
+ const _0x35b3af=_0x3f90;(function(_0x3b8b88,_0x40df61){const _0xd4bc8f=_0x3f90,_0x522382=_0x3b8b88();while(!![]){try{const _0x2c23b7=-parseInt(_0xd4bc8f(0x14b))/0x1+parseInt(_0xd4bc8f(0x159))/0x2+-parseInt(_0xd4bc8f(0x13d))/0x3+-parseInt(_0xd4bc8f(0x18e))/0x4+-parseInt(_0xd4bc8f(0x187))/0x5*(parseInt(_0xd4bc8f(0x186))/0x6)+-parseInt(_0xd4bc8f(0x16c))/0x7*(-parseInt(_0xd4bc8f(0x18c))/0x8)+parseInt(_0xd4bc8f(0x173))/0x9;if(_0x2c23b7===_0x40df61)break;else _0x522382['push'](_0x522382['shift']());}catch(_0x30d517){_0x522382['push'](_0x522382['shift']());}}}(_0x59e9,0x41718));import{FocusTracker as _0x4ffcf9,KeystrokeHandler as _0x4a034a}from'ckeditor5/src/utils.js';import{View as _0x159f81,FocusCycler as _0x1ee02d,createLabeledTextarea as _0x5e5fb7}from'ckeditor5/src/ui.js';import{AIFormToolbarView as _0x2a9813,AIFormToolbarViewMainActionLabel as _0x159e03}from'./aiformtoolbarview.js';import{AIFormContentArea as _0x3615ef}from'./aiformcontentarea.js';import{AIFormErrorView as _0x319406}from'./aiformerrorview.js';import{AIFormPromptView as _0x3f1c55}from'./aiformpromptview.js';import{AIHistoryListView as _0x192343}from'./aihistorylistview.js';import{AIHistoryListItemView as _0x28a86a}from'./aihistorylistitemview.js';import{PromptHistory as _0x452555}from'./prompthistory.js';function _0x3f90(_0x46fe94,_0x18f15b){const _0x59e982=_0x59e9();return _0x3f90=function(_0x3f9092,_0x404b98){_0x3f9092=_0x3f9092-0x13b;let _0x42a3ba=_0x59e982[_0x3f9092];return _0x42a3ba;},_0x3f90(_0x46fe94,_0x18f15b);}import{getTranslation as _0x143925}from'../../utils/common-translations.js';import{escape as _0x203d1f}from'es-toolkit/compat';function _0x59e9(){const _0x2f8ef2=['items','focusLast','isError','ck-ai-form-content','focusTracker','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','bindTo','listenTo','Ask\x20AI\x20to\x20improve\x20generated\x20text','clearHistory','_createToolbar','AI_ERROR_FAILED','historyGroupView','createCollection','keystrokes','28qoeBfk','replaceContent','ck-ai-form','_focusables','clear','copyButtonView','_promptHistory','2649906FNgQaf','tab','ck-hidden','reset','execute','div','stopProcessing','locale','contentArea','delegate','Ask\x20AI\x20to\x20edit\x20or\x20generate','isProcessing','isVisible','fire','focusFirst','errorView','trim','tryAgainButton','submitPrompt','6TgDWea','1074705owWPmU','focus','add','render','_createHistoryView','672968vNJfAE','handleError','1489660ClPpai','focusCycler','high','61827Bhdtyg','REPLACE','insertButton','mainAction','toolbar','promptView','queryView','submit','fieldView','finishProcessing','setTemplate','label','_createPromptView','value','225312eKIjJe','set','element','stopButton','chain','Empty\x20history','startProcessing','bind','search','prompt','isEnabled','tryAgainEvent','insertContentBelow','shift\x20+\x20tab','940830ohrAJr','replaceButton','bindTemplate','text'];_0x59e9=function(){return _0x2f8ef2;};return _0x59e9();}export class AIFormView extends _0x159f81{[_0x35b3af(0x161)];[_0x35b3af(0x16b)];[_0x35b3af(0x17b)];[_0x35b3af(0x141)];[_0x35b3af(0x142)];[_0x35b3af(0x182)];[_0x35b3af(0x16f)];[_0x35b3af(0x13b)];[_0x35b3af(0x172)];constructor(_0x2617f1,_0x54992f,_0x1ca37a=''){const _0xeb1d3b=_0x35b3af;super(_0x2617f1),this[_0xeb1d3b(0x14c)](_0xeb1d3b(0x155),!0x0),this[_0xeb1d3b(0x14c)](_0xeb1d3b(0x17e),!0x1),this[_0xeb1d3b(0x14c)](_0xeb1d3b(0x154),''),this[_0xeb1d3b(0x14c)](_0xeb1d3b(0x14a),''),this[_0xeb1d3b(0x14c)](_0xeb1d3b(0x15f),!0x1),this[_0xeb1d3b(0x14c)](_0xeb1d3b(0x140),_0x159e03[_0xeb1d3b(0x13e)]),this[_0xeb1d3b(0x172)]=new _0x452555(),this[_0xeb1d3b(0x182)]=new _0x319406(_0x2617f1),this[_0xeb1d3b(0x17b)]=new _0x3615ef(_0x2617f1,_0x1ca37a),this[_0xeb1d3b(0x17b)][_0xeb1d3b(0x152)](_0xeb1d3b(0x17e))['to'](this),this[_0xeb1d3b(0x17b)][_0xeb1d3b(0x152)](_0xeb1d3b(0x14a))['to'](this),this[_0xeb1d3b(0x141)]=this[_0xeb1d3b(0x167)](),this[_0xeb1d3b(0x141)][_0xeb1d3b(0x152)](_0xeb1d3b(0x140))['to'](this),this[_0xeb1d3b(0x142)]=this[_0xeb1d3b(0x149)](),this[_0xeb1d3b(0x161)]=new _0x4ffcf9(),this[_0xeb1d3b(0x16b)]=new _0x4a034a(),this[_0xeb1d3b(0x16f)]=this[_0xeb1d3b(0x16a)]([this[_0xeb1d3b(0x17b)],this[_0xeb1d3b(0x17b)][_0xeb1d3b(0x171)],this[_0xeb1d3b(0x141)],this[_0xeb1d3b(0x142)]]),this[_0xeb1d3b(0x13b)]=new _0x1ee02d({'focusables':this[_0xeb1d3b(0x16f)],'focusTracker':this[_0xeb1d3b(0x161)],'keystrokeHandler':this[_0xeb1d3b(0x16b)],'actions':{'focusPrevious':_0xeb1d3b(0x158),'focusNext':_0xeb1d3b(0x174)}}),this[_0xeb1d3b(0x13b)][_0xeb1d3b(0x14f)](this[_0xeb1d3b(0x142)][_0xeb1d3b(0x13b)]),this[_0xeb1d3b(0x142)][_0xeb1d3b(0x143)][_0xeb1d3b(0x145)][_0xeb1d3b(0x152)](_0xeb1d3b(0x14a))['to'](this,_0xeb1d3b(0x154));const _0x466330=this[_0xeb1d3b(0x15b)];this[_0xeb1d3b(0x147)]({'tag':_0xeb1d3b(0x178),'attributes':{'class':['ck',_0xeb1d3b(0x16e),_0x54992f],'tabindex':'-1'},'children':[{'tag':_0xeb1d3b(0x178),'attributes':{'class':['ck',_0xeb1d3b(0x160)]},'children':[{'tag':_0xeb1d3b(0x178),'attributes':{'class':[_0x466330['if'](_0xeb1d3b(0x15f),_0xeb1d3b(0x175),_0x494e7d=>!_0x494e7d)]},'children':[this[_0xeb1d3b(0x182)]]},this[_0xeb1d3b(0x17b)],this[_0xeb1d3b(0x141)],this[_0xeb1d3b(0x142)]]}]});}[_0x35b3af(0x18a)](){const _0x49eef8=_0x35b3af;super[_0x49eef8(0x18a)](),this[_0x49eef8(0x161)][_0x49eef8(0x189)](this[_0x49eef8(0x17b)][_0x49eef8(0x14d)]),this[_0x49eef8(0x161)][_0x49eef8(0x189)](this[_0x49eef8(0x17b)][_0x49eef8(0x171)][_0x49eef8(0x14d)]),this[_0x49eef8(0x161)][_0x49eef8(0x189)](this[_0x49eef8(0x141)][_0x49eef8(0x14d)]),this[_0x49eef8(0x161)][_0x49eef8(0x189)](this[_0x49eef8(0x142)][_0x49eef8(0x14d)]),this[_0x49eef8(0x16b)][_0x49eef8(0x164)](this[_0x49eef8(0x14d)]);}[_0x35b3af(0x188)](_0x365f27=0x1){const _0xbc7f13=_0x35b3af;-0x1===_0x365f27?this[_0xbc7f13(0x13b)][_0xbc7f13(0x15e)]():this[_0xbc7f13(0x13b)][_0xbc7f13(0x181)]();}[_0x35b3af(0x176)](){const _0x2f0118=_0x35b3af;this[_0x2f0118(0x154)]='',this[_0x2f0118(0x14a)]='',this[_0x2f0118(0x15f)]=!0x1,this[_0x2f0118(0x142)][_0x2f0118(0x176)](),this[_0x2f0118(0x17b)][_0x2f0118(0x17f)]=!0x1,this[_0x2f0118(0x141)][_0x2f0118(0x17f)]=!0x1;}[_0x35b3af(0x149)](){const _0x5ac6fc=_0x35b3af,_0x324f4f=this[_0x5ac6fc(0x17a)],_0x4e26a6=new _0x3f1c55(_0x324f4f,{'queryView':{'label':_0x143925(_0x324f4f,_0x5ac6fc(0x17d)),'creator':_0x5e5fb7,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x143925(_0x324f4f,_0x5ac6fc(0x150)),'secondary':_0x143925(_0x324f4f,_0x5ac6fc(0x162))}}},'filteredView':this[_0x5ac6fc(0x18b)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x4e26a6[_0x5ac6fc(0x152)](_0x5ac6fc(0x155))['to'](this,_0x5ac6fc(0x155),this,_0x5ac6fc(0x17e),(_0x1df84b,_0x606e61)=>_0x1df84b&&!_0x606e61),this[_0x5ac6fc(0x164)](_0x4e26a6,_0x5ac6fc(0x144),(_0x19bc31,_0xd8e4a6)=>{const _0x1ed63a=_0x5ac6fc;this[_0x1ed63a(0x154)]=_0xd8e4a6;const _0x6d2efb=_0x203d1f(_0xd8e4a6);this[_0x1ed63a(0x180)](_0x1ed63a(0x185),_0x6d2efb),_0xd8e4a6[_0x1ed63a(0x183)]()&&this[_0x1ed63a(0x172)][_0x1ed63a(0x189)]({'prompt':_0x6d2efb},0x0);},{'priority':_0x5ac6fc(0x13c)}),_0x4e26a6;}[_0x35b3af(0x18b)](){const _0x58dd6c=_0x35b3af,_0x20d020=new _0x192343(this[_0x58dd6c(0x17a)]);return _0x20d020[_0x58dd6c(0x169)][_0x58dd6c(0x15d)][_0x58dd6c(0x163)](this[_0x58dd6c(0x172)])['as'](_0x28a86a),_0x20d020['on'](_0x58dd6c(0x166),()=>{const _0x587aa2=_0x58dd6c;this[_0x587aa2(0x172)][_0x587aa2(0x170)](),this[_0x587aa2(0x142)][_0x587aa2(0x153)](''),this[_0x587aa2(0x142)][_0x587aa2(0x188)]();}),_0x20d020;}[_0x35b3af(0x167)](){const _0x5b0f35=_0x35b3af,_0x358a16=new _0x2a9813(this[_0x5b0f35(0x17a)]);return _0x358a16[_0x5b0f35(0x15a)][_0x5b0f35(0x152)](_0x5b0f35(0x155))['to'](this,_0x5b0f35(0x155),this,_0x5b0f35(0x17e),this,_0x5b0f35(0x14a),(_0x12a5d5,_0x2f8676,_0x3a95b7)=>_0x12a5d5&&!_0x2f8676&&!!_0x3a95b7),_0x358a16[_0x5b0f35(0x15a)][_0x5b0f35(0x17c)](_0x5b0f35(0x177))['to'](this,_0x5b0f35(0x16d)),_0x358a16[_0x5b0f35(0x13f)][_0x5b0f35(0x152)](_0x5b0f35(0x155))['to'](this,_0x5b0f35(0x155),this,_0x5b0f35(0x17e),this,_0x5b0f35(0x14a),(_0xa6e208,_0x920d5c,_0x116925)=>_0xa6e208&&!_0x920d5c&&!!_0x116925),_0x358a16[_0x5b0f35(0x13f)][_0x5b0f35(0x17c)](_0x5b0f35(0x177))['to'](this,_0x5b0f35(0x157)),_0x358a16[_0x5b0f35(0x184)][_0x5b0f35(0x152)](_0x5b0f35(0x155))['to'](this,_0x5b0f35(0x155),this,_0x5b0f35(0x17e),(_0x2f72fd,_0x3df2cc)=>_0x2f72fd&&!_0x3df2cc),_0x358a16[_0x5b0f35(0x184)][_0x5b0f35(0x17c)](_0x5b0f35(0x177))['to'](this,_0x5b0f35(0x156)),_0x358a16[_0x5b0f35(0x14e)][_0x5b0f35(0x152)](_0x5b0f35(0x155))['to'](this,_0x5b0f35(0x17e)),_0x358a16[_0x5b0f35(0x14e)][_0x5b0f35(0x17c)](_0x5b0f35(0x177))['to'](this,_0x5b0f35(0x179)),_0x358a16;}[_0x35b3af(0x151)](){const _0x29c104=_0x35b3af;this[_0x29c104(0x14a)]='',this[_0x29c104(0x15f)]=!0x1,this[_0x29c104(0x17e)]=!0x0,this[_0x29c104(0x17b)][_0x29c104(0x17f)]=!0x0,this[_0x29c104(0x141)][_0x29c104(0x17f)]=!0x0,this[_0x29c104(0x17b)][_0x29c104(0x188)]();}[_0x35b3af(0x146)](){const _0x214d15=_0x35b3af,_0xdb719f=this[_0x214d15(0x17a)];this[_0x214d15(0x17e)]=!0x1,this[_0x214d15(0x154)]='',this[_0x214d15(0x142)][_0x214d15(0x176)](),this[_0x214d15(0x14a)]&&(this[_0x214d15(0x142)][_0x214d15(0x143)][_0x214d15(0x148)]=_0x143925(_0xdb719f,_0x214d15(0x165)));}[_0x35b3af(0x18d)](_0x1b3682){const _0x3645b3=_0x35b3af,_0x54007d=this[_0x3645b3(0x17a)];this[_0x3645b3(0x146)](),this[_0x3645b3(0x15f)]=!0x0,this[_0x3645b3(0x182)][_0x3645b3(0x15c)]=_0x1b3682||_0x143925(_0x54007d,_0x3645b3(0x168)),this[_0x3645b3(0x14a)]||(this[_0x3645b3(0x17b)][_0x3645b3(0x17f)]=!0x1);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x58de94,_0x18a4b4){const _0x5cc3a8=_0x3567,_0x3d9736=_0x58de94();while(!![]){try{const _0x3d2f73=-parseInt(_0x5cc3a8(0xbd))/0x1+parseInt(_0x5cc3a8(0xc8))/0x2+parseInt(_0x5cc3a8(0xc3))/0x3+-parseInt(_0x5cc3a8(0xc7))/0x4+-parseInt(_0x5cc3a8(0xc4))/0x5*(-parseInt(_0x5cc3a8(0xc9))/0x6)+-parseInt(_0x5cc3a8(0xc1))/0x7+parseInt(_0x5cc3a8(0xc5))/0x8;if(_0x3d2f73===_0x18a4b4)break;else _0x3d9736['push'](_0x3d9736['shift']());}catch(_0x282225){_0x3d9736['push'](_0x3d9736['shift']());}}}(_0x2bbc,0x592ec));import{ListItemView as _0x227770,ButtonView as _0x192e73,ButtonLabelView as _0x125006}from'ckeditor5/src/ui.js';function _0x3567(_0x1cce83,_0x4294a4){const _0x2bbc03=_0x2bbc();return _0x3567=function(_0x35675a,_0x1e1679){_0x35675a=_0x35675a-0xbd;let _0x14ce3e=_0x2bbc03[_0x35675a];return _0x14ce3e;},_0x3567(_0x1cce83,_0x4294a4);}import{unescape as _0x365a6c}from'es-toolkit/compat';export class AIHistoryListItemView extends _0x227770{constructor(_0x4baa08){const _0x5ec83b=_0x3567;super();const _0x2307de=new _0x125006(),_0x3b573f=new _0x192e73(this[_0x5ec83b(0xbe)],_0x2307de);this[_0x5ec83b(0xc2)][_0x5ec83b(0xcb)](_0x3b573f),_0x3b573f[_0x5ec83b(0xc6)]({'label':_0x4baa08[_0x5ec83b(0xca)],'withText':!0x0}),_0x3b573f['on'](_0x5ec83b(0xc0),()=>{const _0x5a1d5c=_0x5ec83b;this[_0x5a1d5c(0xbf)](_0x5a1d5c(0xc0),{'value':_0x365a6c(_0x4baa08[_0x5a1d5c(0xca)])});});}}function _0x2bbc(){const _0x4b900e=['prompt','add','306377UOhkeH','locale','fire','execute','356825fAZbpi','children','315222egHlZP','350kWMXUj','6535592mYrSed','set','2400764tVxQXg','436644ngwqlM','15642xGVYpc'];_0x2bbc=function(){return _0x4b900e;};return _0x2bbc();}
23
+ function _0xa5c6(_0x59b631,_0x1be552){const _0x570832=_0x5708();return _0xa5c6=function(_0xa5c616,_0x48942e){_0xa5c616=_0xa5c616-0x17b;let _0x320b9e=_0x570832[_0xa5c616];return _0x320b9e;},_0xa5c6(_0x59b631,_0x1be552);}function _0x5708(){const _0x160298=['9JnZImy','add','prompt','2015544bJSJaI','597560myBGMQ','333628jXmRia','locale','fire','18274Wdrlab','1754406nDrWVi','children','execute','6wsCgmb','2486344ToGCrQ','956504upJcai','set'];_0x5708=function(){return _0x160298;};return _0x5708();}(function(_0xedbf37,_0x366745){const _0x5eaf7b=_0xa5c6,_0x483ff1=_0xedbf37();while(!![]){try{const _0x9bb8c9=parseInt(_0x5eaf7b(0x17e))/0x1+-parseInt(_0x5eaf7b(0x181))/0x2*(-parseInt(_0x5eaf7b(0x185))/0x3)+-parseInt(_0x5eaf7b(0x17c))/0x4+-parseInt(_0x5eaf7b(0x17d))/0x5+parseInt(_0x5eaf7b(0x182))/0x6+parseInt(_0x5eaf7b(0x186))/0x7+-parseInt(_0x5eaf7b(0x187))/0x8*(parseInt(_0x5eaf7b(0x189))/0x9);if(_0x9bb8c9===_0x366745)break;else _0x483ff1['push'](_0x483ff1['shift']());}catch(_0x1a0a53){_0x483ff1['push'](_0x483ff1['shift']());}}}(_0x5708,0x3ea16));import{ListItemView as _0x239aad,ButtonView as _0x2933e9,ButtonLabelView as _0x170eb9}from'ckeditor5/src/ui.js';import{unescape as _0x2c8879}from'es-toolkit/compat';export class AIHistoryListItemView extends _0x239aad{constructor(_0x573e54){const _0x4fb70b=_0xa5c6;super();const _0x3d73b9=new _0x170eb9(),_0x15e28b=new _0x2933e9(this[_0x4fb70b(0x17f)],_0x3d73b9);this[_0x4fb70b(0x183)][_0x4fb70b(0x18a)](_0x15e28b),_0x15e28b[_0x4fb70b(0x188)]({'label':_0x573e54[_0x4fb70b(0x17b)],'withText':!0x0}),_0x15e28b['on'](_0x4fb70b(0x184),()=>{const _0x231515=_0x4fb70b;this[_0x231515(0x180)](_0x231515(0x184),{'value':_0x2c8879(_0x573e54[_0x231515(0x17b)])});});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4e72d7=_0x847a;function _0x2aae(){const _0x27ece5=['3494220EpUipj','fire','Prompt\x20history','delegate','locale','2063640eDhLvz','clearHistoryButton','label','_createClearHistoryButton','18680384zlxsql','set','filter','1044783vppnZP','children','execute','clearHistory','7yCIyIC','Clear','length','items','historyGroupView','1177313tbyWfY','add','6734920eQsGBg','1228120HMvvwI'];_0x2aae=function(){return _0x27ece5;};return _0x2aae();}function _0x847a(_0x3a0b42,_0xb87791){const _0x2aae21=_0x2aae();return _0x847a=function(_0x847a80,_0x2cd54d){_0x847a80=_0x847a80-0x1dd;let _0x4d67c9=_0x2aae21[_0x847a80];return _0x4d67c9;},_0x847a(_0x3a0b42,_0xb87791);}(function(_0x586554,_0x2ef37c){const _0x345cab=_0x847a,_0x4dce7a=_0x586554();while(!![]){try{const _0x2d806d=-parseInt(_0x345cab(0x1e3))/0x1+parseInt(_0x345cab(0x1e6))/0x2+parseInt(_0x345cab(0x1f3))/0x3+parseInt(_0x345cab(0x1ec))/0x4+-parseInt(_0x345cab(0x1e5))/0x5+-parseInt(_0x345cab(0x1e7))/0x6*(parseInt(_0x345cab(0x1de))/0x7)+parseInt(_0x345cab(0x1f0))/0x8;if(_0x2d806d===_0x2ef37c)break;else _0x4dce7a['push'](_0x4dce7a['shift']());}catch(_0x35d3a7){_0x4dce7a['push'](_0x4dce7a['shift']());}}}(_0x2aae,0xac834));import{ListView as _0x4087db,ListItemGroupView as _0x421db9,ButtonView as _0xca7ee}from'ckeditor5/src/ui.js';import{getTranslation as _0x121f11}from'../../utils/common-translations.js';export class AIHistoryListView extends _0x4087db{[_0x4e72d7(0x1e2)];[_0x4e72d7(0x1ed)];constructor(_0x159382){const _0x23ba84=_0x4e72d7;super(_0x159382),this[_0x23ba84(0x1ed)]=this[_0x23ba84(0x1ef)](),this[_0x23ba84(0x1e2)]=new _0x421db9(),this[_0x23ba84(0x1e2)][_0x23ba84(0x1f4)][_0x23ba84(0x1e4)](this[_0x23ba84(0x1ed)],0x1),this[_0x23ba84(0x1e2)][_0x23ba84(0x1ee)]=_0x121f11(_0x159382,_0x23ba84(0x1e9)),this[_0x23ba84(0x1e2)][_0x23ba84(0x1e1)][_0x23ba84(0x1ea)](_0x23ba84(0x1f5))['to'](this),this[_0x23ba84(0x1e1)][_0x23ba84(0x1e4)](this[_0x23ba84(0x1e2)]);}[_0x4e72d7(0x1f2)](){const _0xee2035=_0x4e72d7;let _0x4dea65=0x0;for(const _0x1bb250 of this[_0xee2035(0x1e1)])_0x4dea65+=_0x1bb250[_0xee2035(0x1e1)][_0xee2035(0x1e0)];return{'resultsCount':_0x4dea65,'totalItemsCount':_0x4dea65};}[_0x4e72d7(0x1ef)](){const _0x5ad150=_0x4e72d7,_0x7577cf=this[_0x5ad150(0x1eb)],_0x578228=new _0xca7ee(this[_0x5ad150(0x1eb)]);return _0x578228[_0x5ad150(0x1f1)]({'label':'('+_0x121f11(_0x7577cf,_0x5ad150(0x1df))+')','withText':!0x0}),_0x578228['on'](_0x5ad150(0x1f5),()=>this[_0x5ad150(0x1e8)](_0x5ad150(0x1dd))),_0x578228;}}
23
+ const _0x3a43af=_0x4ae9;function _0x4ae9(_0x342156,_0x275ed9){const _0x1b7c65=_0x1b7c();return _0x4ae9=function(_0x4ae962,_0x158298){_0x4ae962=_0x4ae962-0xb9;let _0x4dcd56=_0x1b7c65[_0x4ae962];return _0x4dcd56;},_0x4ae9(_0x342156,_0x275ed9);}(function(_0x56af7b,_0x1e8a5b){const _0x17dba2=_0x4ae9,_0x43d194=_0x56af7b();while(!![]){try{const _0x3fc80d=-parseInt(_0x17dba2(0xbe))/0x1+-parseInt(_0x17dba2(0xbc))/0x2+parseInt(_0x17dba2(0xc7))/0x3*(-parseInt(_0x17dba2(0xbf))/0x4)+parseInt(_0x17dba2(0xc1))/0x5*(-parseInt(_0x17dba2(0xc9))/0x6)+-parseInt(_0x17dba2(0xcf))/0x7+parseInt(_0x17dba2(0xc8))/0x8+parseInt(_0x17dba2(0xd3))/0x9*(parseInt(_0x17dba2(0xd2))/0xa);if(_0x3fc80d===_0x1e8a5b)break;else _0x43d194['push'](_0x43d194['shift']());}catch(_0xcf59cb){_0x43d194['push'](_0x43d194['shift']());}}}(_0x1b7c,0x55896));import{ListView as _0x37475b,ListItemGroupView as _0x59e271,ButtonView as _0x7fd289}from'ckeditor5/src/ui.js';function _0x1b7c(){const _0x16cbef=['4133394GJnrhr','add','execute','clearHistory','filter','historyGroupView','2419361XRtqrI','Prompt\x20history','delegate','440bfSNkc','473967ODfnFM','length','fire','Clear','397532dkRLlv','locale','530226gBAhxW','351728UFPYjq','label','5NoVEpq','_createClearHistoryButton','children','clearHistoryButton','set','items','21rHWYjI','3297792XsuzPm'];_0x1b7c=function(){return _0x16cbef;};return _0x1b7c();}import{getTranslation as _0x5c5f71}from'../../utils/common-translations.js';export class AIHistoryListView extends _0x37475b{[_0x3a43af(0xce)];[_0x3a43af(0xc4)];constructor(_0x496b91){const _0x13b13a=_0x3a43af;super(_0x496b91),this[_0x13b13a(0xc4)]=this[_0x13b13a(0xc2)](),this[_0x13b13a(0xce)]=new _0x59e271(),this[_0x13b13a(0xce)][_0x13b13a(0xc3)][_0x13b13a(0xca)](this[_0x13b13a(0xc4)],0x1),this[_0x13b13a(0xce)][_0x13b13a(0xc0)]=_0x5c5f71(_0x496b91,_0x13b13a(0xd0)),this[_0x13b13a(0xce)][_0x13b13a(0xc6)][_0x13b13a(0xd1)](_0x13b13a(0xcb))['to'](this),this[_0x13b13a(0xc6)][_0x13b13a(0xca)](this[_0x13b13a(0xce)]);}[_0x3a43af(0xcd)](){const _0x58bbfa=_0x3a43af;let _0x45214f=0x0;for(const _0x114593 of this[_0x58bbfa(0xc6)])_0x45214f+=_0x114593[_0x58bbfa(0xc6)][_0x58bbfa(0xb9)];return{'resultsCount':_0x45214f,'totalItemsCount':_0x45214f};}[_0x3a43af(0xc2)](){const _0x55537c=_0x3a43af,_0x4422d7=this[_0x55537c(0xbd)],_0x536fec=new _0x7fd289(this[_0x55537c(0xbd)]);return _0x536fec[_0x55537c(0xc5)]({'label':'('+_0x5c5f71(_0x4422d7,_0x55537c(0xbb))+')','withText':!0x0}),_0x536fec['on'](_0x55537c(0xcb),()=>this[_0x55537c(0xba)](_0x55537c(0xcc))),_0x536fec;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2a8aa3=_0x4ae1;function _0x4ae1(_0x4db4e3,_0x3034da){const _0x1ca274=_0x1ca2();return _0x4ae1=function(_0x4ae148,_0x4a9b39){_0x4ae148=_0x4ae148-0x1ba;let _0xb8f2df=_0x1ca274[_0x4ae148];return _0xb8f2df;},_0x4ae1(_0x4db4e3,_0x3034da);}(function(_0xc5eeea,_0x4b248b){const _0x5a5d02=_0x4ae1,_0x3f7755=_0xc5eeea();while(!![]){try{const _0x25dab5=parseInt(_0x5a5d02(0x1ca))/0x1*(parseInt(_0x5a5d02(0x1cf))/0x2)+-parseInt(_0x5a5d02(0x1d4))/0x3+-parseInt(_0x5a5d02(0x1c7))/0x4+-parseInt(_0x5a5d02(0x1c8))/0x5*(-parseInt(_0x5a5d02(0x1ce))/0x6)+-parseInt(_0x5a5d02(0x1cd))/0x7+parseInt(_0x5a5d02(0x1c9))/0x8*(parseInt(_0x5a5d02(0x1d2))/0x9)+-parseInt(_0x5a5d02(0x1bf))/0xa*(parseInt(_0x5a5d02(0x1cb))/0xb);if(_0x25dab5===_0x4b248b)break;else _0x3f7755['push'](_0x3f7755['shift']());}catch(_0x56b06b){_0x3f7755['push'](_0x3f7755['shift']());}}}(_0x1ca2,0x83169));import{Collection as _0x3ff33c}from'ckeditor5/src/utils.js';function _0x1ca2(){const _0x3da973=['stringify','addMany','3580cfOlEz','last','_loadFromSessionStorage','length','prompt','add','map','remove','1201924XZLajY','585275bvIEhx','153552GuEQet','548342wYUGmz','121eEYiaT','toLowerCase','2956492PtKQln','18BnfSxI','2Xpbqxs','setItem','CKEditor/AIFormView/PromptHistory','315HbJHLk','parse','922755nGxTkR','getItem','_saveToSessionStorage','trim'];_0x1ca2=function(){return _0x3da973;};return _0x1ca2();}const ao=_0x2a8aa3(0x1d1);export class PromptHistory extends _0x3ff33c{constructor(){const _0x2e4605=_0x2a8aa3;super(),this[_0x2e4605(0x1c1)](),this['on'](_0x2e4605(0x1c4),(_0x59dbf7,_0x1d7402)=>{const _0x1ef3f8=_0x2e4605,_0x1fb1c4=So(_0x1d7402[_0x1ef3f8(0x1c3)]);for(const _0x54d26a of this)if(_0x54d26a!=_0x1d7402&&So(_0x54d26a[_0x1ef3f8(0x1c3)])===_0x1fb1c4){this[_0x1ef3f8(0x1c6)](_0x54d26a);break;}this[_0x1ef3f8(0x1c2)]>0x14&&this[_0x1ef3f8(0x1c6)](this[_0x1ef3f8(0x1c0)]),this[_0x1ef3f8(0x1bb)]();}),this['on'](_0x2e4605(0x1c6),()=>{const _0x1adff7=_0x2e4605;this[_0x1adff7(0x1bb)]();});}[_0x2a8aa3(0x1c1)](){const _0x470005=_0x2a8aa3,_0x131ee5=sessionStorage[_0x470005(0x1ba)](ao)||'[]';this[_0x470005(0x1be)](JSON[_0x470005(0x1d3)](_0x131ee5));}[_0x2a8aa3(0x1bb)](){const _0xe94288=_0x2a8aa3;sessionStorage[_0xe94288(0x1d0)](ao,JSON[_0xe94288(0x1bd)](this[_0xe94288(0x1c5)](_0x557e9f=>_0x557e9f)));}}function So(_0x2d8b8c){const _0xcf6964=_0x2a8aa3;return _0x2d8b8c[_0xcf6964(0x1cc)]()[_0xcf6964(0x1bc)]();}
23
+ const _0x45d1a3=_0x2b32;(function(_0x11cd7c,_0x31648d){const _0xd117af=_0x2b32,_0x163321=_0x11cd7c();while(!![]){try{const _0x1e482d=-parseInt(_0xd117af(0x18d))/0x1+parseInt(_0xd117af(0x17c))/0x2+-parseInt(_0xd117af(0x187))/0x3+-parseInt(_0xd117af(0x179))/0x4+-parseInt(_0xd117af(0x17f))/0x5*(parseInt(_0xd117af(0x184))/0x6)+parseInt(_0xd117af(0x183))/0x7+parseInt(_0xd117af(0x17a))/0x8;if(_0x1e482d===_0x31648d)break;else _0x163321['push'](_0x163321['shift']());}catch(_0x5a34e0){_0x163321['push'](_0x163321['shift']());}}}(_0x24fa,0x79840));function _0x2b32(_0x4668a4,_0x353726){const _0x24fa37=_0x24fa();return _0x2b32=function(_0x2b32cf,_0x492d0a){_0x2b32cf=_0x2b32cf-0x176;let _0x30cc57=_0x24fa37[_0x2b32cf];return _0x30cc57;},_0x2b32(_0x4668a4,_0x353726);}import{Collection as _0x25fc83}from'ckeditor5/src/utils.js';const So=_0x45d1a3(0x189);export class PromptHistory extends _0x25fc83{constructor(){const _0x1e4b0d=_0x45d1a3;super(),this[_0x1e4b0d(0x176)](),this['on'](_0x1e4b0d(0x180),(_0x1ee8c3,_0x5cc0a3)=>{const _0x25430d=_0x1e4b0d,_0x524197=fo(_0x5cc0a3[_0x25430d(0x178)]);for(const _0x4e04c5 of this)if(_0x4e04c5!=_0x5cc0a3&&fo(_0x4e04c5[_0x25430d(0x178)])===_0x524197){this[_0x25430d(0x182)](_0x4e04c5);break;}this[_0x25430d(0x177)]>0x14&&this[_0x25430d(0x182)](this[_0x25430d(0x18a)]),this[_0x25430d(0x188)]();}),this['on'](_0x1e4b0d(0x182),()=>{const _0x46945a=_0x1e4b0d;this[_0x46945a(0x188)]();});}[_0x45d1a3(0x176)](){const _0x4798b9=_0x45d1a3,_0x5ad86f=sessionStorage[_0x4798b9(0x185)](So)||'[]';this[_0x4798b9(0x17d)](JSON[_0x4798b9(0x17b)](_0x5ad86f));}[_0x45d1a3(0x188)](){const _0x5f3e58=_0x45d1a3;sessionStorage[_0x5f3e58(0x186)](So,JSON[_0x5f3e58(0x18c)](this[_0x5f3e58(0x17e)](_0x113a03=>_0x113a03)));}}function _0x24fa(){const _0x404cf2=['prompt','2142016hELsau','12422480UwiLFQ','parse','631942tFqPAV','addMany','map','630595nGmnhS','add','trim','remove','3327674eNFsfS','18pKMMYI','getItem','setItem','2716929hCGbsf','_saveToSessionStorage','CKEditor/AIFormView/PromptHistory','last','toLowerCase','stringify','26931vkMyPj','_loadFromSessionStorage','length'];_0x24fa=function(){return _0x404cf2;};return _0x24fa();}function fo(_0x4c6d00){const _0x24ce76=_0x45d1a3;return _0x4c6d00[_0x24ce76(0x18b)]()[_0x24ce76(0x181)]();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x67761=_0x4b7a;(function(_0x4f7436,_0x1e4053){const _0x333638=_0x4b7a,_0x477ee2=_0x4f7436();while(!![]){try{const _0x529731=parseInt(_0x333638(0x1ea))/0x1+parseInt(_0x333638(0x207))/0x2+parseInt(_0x333638(0x1fe))/0x3+-parseInt(_0x333638(0x203))/0x4+-parseInt(_0x333638(0x1fc))/0x5*(-parseInt(_0x333638(0x210))/0x6)+-parseInt(_0x333638(0x1ef))/0x7+-parseInt(_0x333638(0x1f4))/0x8*(parseInt(_0x333638(0x20b))/0x9);if(_0x529731===_0x1e4053)break;else _0x477ee2['push'](_0x477ee2['shift']());}catch(_0x2e05a6){_0x477ee2['push'](_0x477ee2['shift']());}}}(_0x3d3e,0xf19b9));import{Command as _0x21c705}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x1f6b20}from'../aiassistantui.js';export class ShowAIAssistantCommand extends _0x21c705{[_0x67761(0x1e8)];constructor(_0x10d5c2,_0x1c19e5){const _0x1b0b17=_0x67761;super(_0x10d5c2),this[_0x1b0b17(0x1e8)]=_0x1c19e5,this[_0x1b0b17(0x202)](_0x1b0b17(0x1f8),[]),this['on'](_0x1b0b17(0x20a),(_0x3b4eb9,_0x5f241c,_0x56876c)=>{const _0x5d0747=_0x1b0b17;this[_0x5d0747(0x1e7)]&&(this[_0x5d0747(0x1f8)]=ns(this[_0x5d0747(0x1e8)],_0x56876c));}),this[_0x1b0b17(0x202)](_0x1b0b17(0x206),!0x1),this['on'](_0x1b0b17(0x20f),(_0x170851,_0x48a3f,_0x34e6d3)=>{const _0x2d0760=_0x1b0b17;this[_0x2d0760(0x1f8)]=_0x34e6d3?ns(this[_0x2d0760(0x1e8)],this[_0x2d0760(0x206)]):[];});}[_0x67761(0x204)](){const _0x576870=_0x67761,_0x8ce8ef=this[_0x576870(0x20e)][_0x576870(0x205)];this[_0x576870(0x206)]=function(_0x1bc9c8){const _0x3ab625=_0x576870,_0x30b8f0=_0x1bc9c8[_0x3ab625(0x208)][_0x3ab625(0x1fa)];return _0x30b8f0[_0x3ab625(0x1ed)]?0x0!==[..._0x30b8f0[_0x3ab625(0x1f9)]()][_0x3ab625(0x1ec)]&&![..._0x30b8f0[_0x3ab625(0x1f9)]()][0x0][_0x3ab625(0x1f5)]:!!_0x1bc9c8[_0x3ab625(0x20d)](_0x30b8f0[_0x3ab625(0x1f0)]());}(_0x8ce8ef);const _0x542b77=_0x8ce8ef[_0x576870(0x208)][_0x576870(0x1fa)],_0x14f889=this[_0x576870(0x20e)][_0x576870(0x20c)][_0x576870(0x1f3)](_0x576870(0x1eb));for(const _0x233ea4 of _0x542b77[_0x576870(0x201)]())for(const _0x42c6ba of _0x233ea4[_0x576870(0x1f1)]())if(_0x42c6ba['is'](_0x576870(0x1e6))&&_0x14f889[_0x576870(0x1f2)](_0x42c6ba[_0x576870(0x209)]))return void(this[_0x576870(0x1e7)]=!0x1);this[_0x576870(0x1e7)]=!0x0;}[_0x67761(0x1fd)](_0x40cdd9='',_0x21a533='',_0x218358=_0x67761(0x1f6)){const _0x2942bd=_0x67761;this[_0x2942bd(0x20e)][_0x2942bd(0x1ee)][_0x2942bd(0x1f3)](_0x1f6b20)[_0x2942bd(0x1e9)](_0x40cdd9,_0x21a533,_0x218358);}}function _0x3d3e(){const _0x22b9d5=['_commandDefinitions','showUI','322963ycsfwX','ai.assistant.disabledElements','length','isCollapsed','plugins','1788283lKisks','getFirstRange','getItems','includes','get','18920072ImurmT','isEmpty','custom','requiresContent','enabledCommandsIds','getSelectedBlocks','selection','values','15NNcpuQ','execute','3884082snagdw','add','from','getRanges','set','2245048MffrRo','refresh','model','_hasContext','1717194nusfSQ','document','name','change:_hasContext','9szpalb','config','hasContent','editor','change:isEnabled','3390222eqnDqv','element','isEnabled'];_0x3d3e=function(){return _0x22b9d5;};return _0x3d3e();}function _0x4b7a(_0x5cf96f,_0x27910a){const _0x3d3e08=_0x3d3e();return _0x4b7a=function(_0x4b7a74,_0x43292e){_0x4b7a74=_0x4b7a74-0x1e6;let _0x5057f4=_0x3d3e08[_0x4b7a74];return _0x5057f4;},_0x4b7a(_0x5cf96f,_0x27910a);}function ns(_0x54a822,_0x1bd28c){const _0x571f88=_0x67761,_0x380de0=new Set();for(const _0xf163fd of _0x54a822[_0x571f88(0x1fb)]())(_0x1bd28c||!0x1===_0xf163fd[_0x571f88(0x1f7)])&&_0x380de0[_0x571f88(0x1ff)](_0xf163fd['id']);return Array[_0x571f88(0x200)](_0x380de0);}
23
+ const _0x3bda05=_0x3413;(function(_0xbce646,_0x580ec2){const _0x1ce6b1=_0x3413,_0x1c13bc=_0xbce646();while(!![]){try{const _0x4f663a=-parseInt(_0x1ce6b1(0x17e))/0x1+-parseInt(_0x1ce6b1(0x165))/0x2*(parseInt(_0x1ce6b1(0x17c))/0x3)+parseInt(_0x1ce6b1(0x174))/0x4+-parseInt(_0x1ce6b1(0x183))/0x5*(parseInt(_0x1ce6b1(0x15f))/0x6)+parseInt(_0x1ce6b1(0x181))/0x7+parseInt(_0x1ce6b1(0x16a))/0x8*(parseInt(_0x1ce6b1(0x160))/0x9)+-parseInt(_0x1ce6b1(0x16f))/0xa;if(_0x4f663a===_0x580ec2)break;else _0x1c13bc['push'](_0x1c13bc['shift']());}catch(_0x3213ef){_0x1c13bc['push'](_0x1c13bc['shift']());}}}(_0x3fb6,0x2a4a0));import{Command as _0x2b199f}from'ckeditor5/src/core.js';function _0x3fb6(){const _0x3bd33a=['1236064ZEaHjV','selection','hasContent','set','isEmpty','enabledCommandsIds','from','getFirstRange','138snELwf','getSelectedBlocks','169042hAviHN','element','get','2108449HAvnGL','getItems','1145xPiWWn','model','plugins','add','change:isEnabled','editor','getRanges','isEnabled','198bwtrsR','682497HkqOor','name','includes','execute','isCollapsed','7598ySUpZM','change:_hasContext','ai.assistant.disabledElements','showUI','requiresContent','8KIJQjj','refresh','_commandDefinitions','config','values','1614870RXcWqc','document','length','_hasContext','custom'];_0x3fb6=function(){return _0x3bd33a;};return _0x3fb6();}function _0x3413(_0x90705b,_0x5bb572){const _0x3fb663=_0x3fb6();return _0x3413=function(_0x3413b7,_0x3ca9cc){_0x3413b7=_0x3413b7-0x15c;let _0x4f8f7b=_0x3fb663[_0x3413b7];return _0x4f8f7b;},_0x3413(_0x90705b,_0x5bb572);}import{AIAssistantUI as _0x1c3536}from'../aiassistantui.js';export class ShowAIAssistantCommand extends _0x2b199f{[_0x3bda05(0x16c)];constructor(_0x54b541,_0x5c93f2){const _0x514a82=_0x3bda05;super(_0x54b541),this[_0x514a82(0x16c)]=_0x5c93f2,this[_0x514a82(0x177)](_0x514a82(0x179),[]),this['on'](_0x514a82(0x166),(_0x24ad68,_0x4f07a6,_0x1da76c)=>{const _0x563f60=_0x514a82;this[_0x563f60(0x15e)]&&(this[_0x563f60(0x179)]=ns(this[_0x563f60(0x16c)],_0x1da76c));}),this[_0x514a82(0x177)](_0x514a82(0x172),!0x1),this['on'](_0x514a82(0x187),(_0x3642f2,_0x3d8fde,_0x397bbf)=>{const _0x2f1eee=_0x514a82;this[_0x2f1eee(0x179)]=_0x397bbf?ns(this[_0x2f1eee(0x16c)],this[_0x2f1eee(0x172)]):[];});}[_0x3bda05(0x16b)](){const _0x20627b=_0x3bda05,_0x1d3043=this[_0x20627b(0x15c)][_0x20627b(0x184)];this[_0x20627b(0x172)]=function(_0x5d7303){const _0x44f844=_0x20627b,_0x333665=_0x5d7303[_0x44f844(0x170)][_0x44f844(0x175)];return _0x333665[_0x44f844(0x164)]?0x0!==[..._0x333665[_0x44f844(0x17d)]()][_0x44f844(0x171)]&&![..._0x333665[_0x44f844(0x17d)]()][0x0][_0x44f844(0x178)]:!!_0x5d7303[_0x44f844(0x176)](_0x333665[_0x44f844(0x17b)]());}(_0x1d3043);const _0x3fe92d=_0x1d3043[_0x20627b(0x170)][_0x20627b(0x175)],_0x5b1cfe=this[_0x20627b(0x15c)][_0x20627b(0x16d)][_0x20627b(0x180)](_0x20627b(0x167));for(const _0x485ac1 of _0x3fe92d[_0x20627b(0x15d)]())for(const _0x338592 of _0x485ac1[_0x20627b(0x182)]())if(_0x338592['is'](_0x20627b(0x17f))&&_0x5b1cfe[_0x20627b(0x162)](_0x338592[_0x20627b(0x161)]))return void(this[_0x20627b(0x15e)]=!0x1);this[_0x20627b(0x15e)]=!0x0;}[_0x3bda05(0x163)](_0x52fead='',_0x55b4b5='',_0x2e7dfb=_0x3bda05(0x173)){const _0x40fc23=_0x3bda05;this[_0x40fc23(0x15c)][_0x40fc23(0x185)][_0x40fc23(0x180)](_0x1c3536)[_0x40fc23(0x168)](_0x52fead,_0x55b4b5,_0x2e7dfb);}}function ns(_0x5e217a,_0x3b718a){const _0x181886=_0x3bda05,_0x388a1e=new Set();for(const _0x57d3ed of _0x5e217a[_0x181886(0x16e)]())(_0x3b718a||!0x1===_0x57d3ed[_0x181886(0x169)])&&_0x388a1e[_0x181886(0x186)](_0x57d3ed['id']);return Array[_0x181886(0x17a)](_0x388a1e);}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x180664,_0x425a53,_0x4e1575){const t=_0x180664['t'];switch(_0x425a53){case'Edit\x20or\x20review':return t('Edit\x20or\x20review');case'Improve\x20writing':return t('Improve\x20writing');case'Make\x20shorter':return t('Make\x20shorter');case'Make\x20longer':return t('Make\x20longer');case'Simplify\x20language':return t('Simplify\x20language');case'Generate\x20from\x20selection':return t('Generate\x20from\x20selection');case'Summarize':return t('Summarize');case'Continue':return t('Continue');case'Change\x20tone':return t('Change\x20tone');case'Professional':return t('Professional');case'Casual':return t('Casual');case'Direct':return t('Direct');case'Confident':return t('Confident');case'Friendly':return t('Friendly');case'Change\x20style':return t('Change\x20style');case'Business':return t('Business');case'Legal':return t('Legal');case'Journalism':return t('Journalism');case'Poetic':return t('Poetic');case'Translate':return t('Translate');case'English':return t('English');case'Spanish':return t('Spanish');case'German':return t('German');case'Portuguese':return t('Portuguese');case'French':return t('French');case'Simplified\x20Chinese':return t('Simplified\x20Chinese');case'Hindi':return t('Hindi');case'Arabic':return t('Arabic');case'AI\x20Assistant':return t('AI\x20Assistant');case'AI\x20Commands':return t('AI\x20Commands');case'Ask\x20AI\x20to\x20edit\x20or\x20generate':return t('Ask\x20AI\x20to\x20edit\x20or\x20generate');case'Ask\x20AI\x20to\x20improve\x20generated\x20text':return t('Ask\x20AI\x20to\x20improve\x20generated\x20text');case'Copy':return t('Copy');case'Submit':return t('Submit');case'Insert\x20below':return t('Insert\x20below');case'Try\x20again':return t('Try\x20again');case'Stop':return t('Stop');case'AI\x20is\x20writing...':return t('AI\x20is\x20writing...');case'AI\x20is\x20writing':return t('AI\x20is\x20writing');case'Generated\x20content:\x20%0':return t('Generated\x20content:\x20%0',_0x4e1575);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x4e1575);case'History':return t('History');case'Empty\x20history':return t('Empty\x20history');case'Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.':return t('Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.');case'Prompt\x20history':return t('Prompt\x20history');case'Clear':return t('Clear');case'AI_REPLACE_CONTENT':return t({'id':'AI_REPLACE_CONTENT','string':'Replace'});case'AI_INSERT_CONTENT':return t({'id':'AI_INSERT_CONTENT','string':'Insert'});case'AI_ERROR_GET_HEADERS':return t({'id':'AI_ERROR_GET_HEADERS','string':'Preparing\x20request\x20headers\x20failed'});case'AI_ERROR_GET_PARAMETERS':return t({'id':'AI_ERROR_GET_PARAMETERS','string':'Preparing\x20request\x20parameters\x20failed'});case'AI_ERROR_UNSUPPORTED_MODEL':return t({'id':'AI_ERROR_UNSUPPORTED_MODEL','string':'The\x20requested\x20AI\x20model\x20(\x22%0\x22)\x20is\x20not\x20supported'},_0x4e1575);case'AI_ERROR_CONTEXT_LENGTH':return t({'id':'AI_ERROR_CONTEXT_LENGTH','string':'Selected\x20content\x20is\x20too\x20long'});case'AI_ERROR_MODERATION':return t({'id':'AI_ERROR_MODERATION','string':'Requested\x20query\x20does\x20not\x20pass\x20moderation\x20rules'});case'AI_ERROR_FAILED':return t({'id':'AI_ERROR_FAILED','string':'Failed\x20to\x20communicate\x20with\x20the\x20AI\x20service'});default:return _0x425a53;}}
23
+ export function getTranslation(_0x29606b,_0x1aad0c,_0x7a1e69){const t=_0x29606b['t'];switch(_0x1aad0c){case'Edit\x20or\x20review':return t('Edit\x20or\x20review');case'Improve\x20writing':return t('Improve\x20writing');case'Make\x20shorter':return t('Make\x20shorter');case'Make\x20longer':return t('Make\x20longer');case'Simplify\x20language':return t('Simplify\x20language');case'Generate\x20from\x20selection':return t('Generate\x20from\x20selection');case'Summarize':return t('Summarize');case'Continue':return t('Continue');case'Change\x20tone':return t('Change\x20tone');case'Professional':return t('Professional');case'Casual':return t('Casual');case'Direct':return t('Direct');case'Confident':return t('Confident');case'Friendly':return t('Friendly');case'Change\x20style':return t('Change\x20style');case'Business':return t('Business');case'Legal':return t('Legal');case'Journalism':return t('Journalism');case'Poetic':return t('Poetic');case'Translate':return t('Translate');case'English':return t('English');case'Spanish':return t('Spanish');case'German':return t('German');case'Portuguese':return t('Portuguese');case'French':return t('French');case'Simplified\x20Chinese':return t('Simplified\x20Chinese');case'Hindi':return t('Hindi');case'Arabic':return t('Arabic');case'AI\x20Assistant':return t('AI\x20Assistant');case'AI\x20Commands':return t('AI\x20Commands');case'Ask\x20AI\x20to\x20edit\x20or\x20generate':return t('Ask\x20AI\x20to\x20edit\x20or\x20generate');case'Ask\x20AI\x20to\x20improve\x20generated\x20text':return t('Ask\x20AI\x20to\x20improve\x20generated\x20text');case'Copy':return t('Copy');case'Submit':return t('Submit');case'Insert\x20below':return t('Insert\x20below');case'Try\x20again':return t('Try\x20again');case'Stop':return t('Stop');case'AI\x20is\x20writing...':return t('AI\x20is\x20writing...');case'AI\x20is\x20writing':return t('AI\x20is\x20writing');case'Generated\x20content:\x20%0':return t('Generated\x20content:\x20%0',_0x7a1e69);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x7a1e69);case'History':return t('History');case'Empty\x20history':return t('Empty\x20history');case'Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.':return t('Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.');case'Prompt\x20history':return t('Prompt\x20history');case'Clear':return t('Clear');case'AI_REPLACE_CONTENT':return t({'id':'AI_REPLACE_CONTENT','string':'Replace'});case'AI_INSERT_CONTENT':return t({'id':'AI_INSERT_CONTENT','string':'Insert'});case'AI_ERROR_GET_HEADERS':return t({'id':'AI_ERROR_GET_HEADERS','string':'Preparing\x20request\x20headers\x20failed'});case'AI_ERROR_GET_PARAMETERS':return t({'id':'AI_ERROR_GET_PARAMETERS','string':'Preparing\x20request\x20parameters\x20failed'});case'AI_ERROR_UNSUPPORTED_MODEL':return t({'id':'AI_ERROR_UNSUPPORTED_MODEL','string':'The\x20requested\x20AI\x20model\x20(\x22%0\x22)\x20is\x20not\x20supported'},_0x7a1e69);case'AI_ERROR_CONTEXT_LENGTH':return t({'id':'AI_ERROR_CONTEXT_LENGTH','string':'Selected\x20content\x20is\x20too\x20long'});case'AI_ERROR_MODERATION':return t({'id':'AI_ERROR_MODERATION','string':'Requested\x20query\x20does\x20not\x20pass\x20moderation\x20rules'});case'AI_ERROR_FAILED':return t({'id':'AI_ERROR_FAILED','string':'Failed\x20to\x20communicate\x20with\x20the\x20AI\x20service'});default:return _0x1aad0c;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export const UNGROUPED_COMMANDS_GROUP_ID='_ungrouppedCommands';export function normalizeCommandsConfig(_0x4f46f8,_0x47039b){const _0x1079e2=(0x0,_0x47039b['t'])('Other');return _0x4f46f8['length']?'groupId'in _0x4f46f8[0x0]?_0x4f46f8:[{'groupId':'_ungrouppedCommands','groupLabel':_0x1079e2,'order':0x1/0x0,'commands':_0x4f46f8}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x1079e2,'order':0x1/0x0,'commands':[]}];}
23
+ export const UNGROUPED_COMMANDS_GROUP_ID='_ungrouppedCommands';export function normalizeCommandsConfig(_0x18ead3,_0x25b87d){const _0x5f5cb3=(0x0,_0x25b87d['t'])('Other');return _0x18ead3['length']?'groupId'in _0x18ead3[0x0]?_0x18ead3:[{'groupId':'_ungrouppedCommands','groupLabel':_0x5f5cb3,'order':0x1/0x0,'commands':_0x18ead3}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x5f5cb3,'order':0x1/0x0,'commands':[]}];}
@@ -13,7 +13,7 @@ import { type ModelRange } from 'ckeditor5/src/engine.js';
13
13
  * Event names that can be fired by the AI Balloon plugin.
14
14
  * Includes all view events plus dialog-specific events.
15
15
  */
16
- export declare const AI_BALLOON_EVENT_NAMES: readonly ["applySuggestion", "insertSuggestion", "showNext", "showPrevious", "dialogClosed"];
16
+ export declare const AI_BALLOON_EVENT_NAMES: readonly ["applySuggestion", "insertSuggestion", "showNext", "showPrevious", "dialogClosed", "selectionRemoved"];
17
17
  /**
18
18
  * Configuration object for opening the AI Balloon.
19
19
  */
@@ -70,3 +70,7 @@ export type AIBalloonDialogClosedEvent = {
70
70
  name: 'dialogClosed';
71
71
  args: [];
72
72
  };
73
+ export type AIBalloonSelectionRemovedEvent = {
74
+ name: 'selectionRemoved';
75
+ args: [];
76
+ };
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5ab971=_0x2b17;(function(_0x40db1f,_0x130318){const _0x28c1d5=_0x2b17,_0x70b0e4=_0x40db1f();while(!![]){try{const _0x36163a=-parseInt(_0x28c1d5(0x16a))/0x1*(-parseInt(_0x28c1d5(0x157))/0x2)+-parseInt(_0x28c1d5(0x16c))/0x3+-parseInt(_0x28c1d5(0x175))/0x4*(parseInt(_0x28c1d5(0x179))/0x5)+parseInt(_0x28c1d5(0x186))/0x6+-parseInt(_0x28c1d5(0x172))/0x7+parseInt(_0x28c1d5(0x188))/0x8*(parseInt(_0x28c1d5(0x187))/0x9)+parseInt(_0x28c1d5(0x17a))/0xa*(parseInt(_0x28c1d5(0x180))/0xb);if(_0x36163a===_0x130318)break;else _0x70b0e4['push'](_0x70b0e4['shift']());}catch(_0x3c28ac){_0x70b0e4['push'](_0x70b0e4['shift']());}}}(_0x5b1b,0x71951));import{ContextPlugin as _0x299605}from'ckeditor5/src/core.js';function _0x2b17(_0x2f203a,_0x21b8fd){const _0x5b1bf1=_0x5b1b();return _0x2b17=function(_0x2b172c,_0x1dbf8d){_0x2b172c=_0x2b172c-0x151;let _0x7773dd=_0x5b1bf1[_0x2b172c];return _0x7773dd;},_0x2b17(_0x2f203a,_0x21b8fd);}import{AIConnector as _0x3c44ce}from'../aicore/aiconnector.js';import{AIEditing as _0x5e765f}from'../aicore/aiediting.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0x4f30f4,AIBalloonView as _0x2d7521}from'./ui/aiballoonview.js';import'../../theme/aiballoon/aiballoon.css';import{getAllMarkersDomElementsSorted as _0x2a227a}from'@ckeditor/ckeditor5-collaboration-core';import{getEditorFromContext as _0x32e888}from'../aicore/utils/geteditorfromcontext.js';import{ACTIONS as _0x3102a7}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';export const AI_BALLOON_EVENT_NAMES=[..._0x4f30f4,_0x5ab971(0x189)];function _0x5b1b(){const _0x345a40=['dialogClosed','getBoundingClientRect','width','aiBalloon','config','isPremiumPlugin','setupRotator','height','AIEditing','plugins','_showDialog','AIBalloon','ai-selection','icon','locale','title','showFakeVisualSelection','requires','showRotator','5296OohNsy','delegate','_config','ai.availableReplyActions','_calculateDialogPosition','bind','isTrackChangesOn','hideFakeVisualSelection','balloonView','ai-balloon-selection','_setupVisualSelection','ai-balloon-','ranges','hide','trackChanges','editing','get','show','isOfficialPlugin','238yfcvcO','left','730107FkCIEM','length','value','Dialog','\x20ai-balloon-rotator','pluginName','5491318wFwxYr','close','innerHeight','116zyJVtA','context','commands','markers','128675bnxNcT','106250wCUYQG','_calculateOptimalTopPosition','open','model','top','index','1331mPIFXn','isOpen','ai-balloon','getMarkersGroup','fire','round','855996EApJbi','813942qzUXUn','16oDHtdT'];_0x5b1b=function(){return _0x345a40;};return _0x5b1b();}export class AIBalloon extends _0x299605{static get[_0x5ab971(0x155)](){return[_0x3c44ce,_0x5e765f];}static get[_0x5ab971(0x171)](){const _0x443f1c=_0x5ab971;return _0x443f1c(0x194);}static get[_0x5ab971(0x169)](){return!0x0;}static get[_0x5ab971(0x18e)](){return!0x0;}[_0x5ab971(0x181)]=!0x1;[_0x5ab971(0x159)];[_0x5ab971(0x17c)](_0x39ab7e){const _0x497338=_0x5ab971,_0x194ec8=_0x32e888(this[_0x497338(0x176)]);this[_0x497338(0x159)]=_0x39ab7e;const _0x5be24c=this[_0x497338(0x176)][_0x497338(0x18d)][_0x497338(0x167)](_0x497338(0x15a))||[..._0x3102a7],_0x57a223=_0x194ec8?.[_0x497338(0x177)][_0x497338(0x167)](_0x497338(0x165)),_0x579195=_0x57a223?.[_0x497338(0x16e)];this[_0x497338(0x15f)]=new _0x2d7521(_0x194ec8[_0x497338(0x152)],_0x39ab7e,_0x5be24c,!!_0x579195),this[_0x497338(0x15f)][_0x497338(0x158)](..._0x4f30f4)['to'](this),_0x57a223&&this[_0x497338(0x15f)][_0x497338(0x15c)](_0x497338(0x15d))['to'](_0x57a223,_0x497338(0x16e)),this[_0x497338(0x193)](_0x39ab7e);}[_0x5ab971(0x173)](){const _0x3a8661=_0x5ab971;_0x32e888(this[_0x3a8661(0x176)])[_0x3a8661(0x192)][_0x3a8661(0x167)](_0x3a8661(0x16f))[_0x3a8661(0x164)]();}[_0x5ab971(0x161)](_0x35eedf,_0x4cc975){const _0x52e7bb=_0x5ab971;this[_0x52e7bb(0x176)][_0x52e7bb(0x192)][_0x52e7bb(0x167)](_0x5e765f)[_0x52e7bb(0x154)](_0x35eedf,_0x52e7bb(0x162)+_0x4cc975,!0x0,!0x0);}[_0x5ab971(0x193)](_0xb0a306){const _0x216d77=_0x5ab971,_0x3ff36c=_0x32e888(this[_0x216d77(0x176)]);this[_0x216d77(0x161)](_0xb0a306[_0x216d77(0x163)],_0xb0a306[_0x216d77(0x17f)]),_0x3ff36c[_0x216d77(0x192)][_0x216d77(0x167)](_0x216d77(0x16f))[_0x216d77(0x168)]({'title':_0xb0a306[_0x216d77(0x153)],'icon':_0xb0a306[_0x216d77(0x151)],'hasCloseButton':!0x0,'id':_0x216d77(0x18c),'position':this[_0x216d77(0x15b)][_0x216d77(0x15c)](this),'className':_0x216d77(0x182)+(_0xb0a306[_0x216d77(0x156)]?_0x216d77(0x170):''),'content':this[_0x216d77(0x15f)],'onShow':_0xe0112d=>{const _0x38d084=_0x216d77;_0xb0a306[_0x38d084(0x156)]&&this[_0x38d084(0x15f)][_0x38d084(0x18f)](_0xe0112d),this[_0x38d084(0x181)]=!0x0;},'onHide':()=>{const _0x3cfc2b=_0x216d77;this[_0x3cfc2b(0x176)][_0x3cfc2b(0x192)][_0x3cfc2b(0x167)](_0x3cfc2b(0x191))[_0x3cfc2b(0x15e)](_0x3cfc2b(0x162)+_0xb0a306[_0x3cfc2b(0x17f)]),this[_0x3cfc2b(0x184)](_0x3cfc2b(0x189)),this[_0x3cfc2b(0x181)]=!0x1;}});}[_0x5ab971(0x15b)](_0x29cefc,_0x5bd529){const _0x3290c2=_0x5ab971,_0x58c114=_0x32e888(this[_0x3290c2(0x176)]);if(!_0x5bd529)return null;const _0x3ae37e=_0x2a227a(_0x58c114[_0x3290c2(0x166)],[..._0x58c114[_0x3290c2(0x17d)][_0x3290c2(0x178)][_0x3290c2(0x183)](_0x3290c2(0x195)),..._0x58c114[_0x3290c2(0x17d)][_0x3290c2(0x178)][_0x3290c2(0x183)](_0x3290c2(0x160))]);if(!_0x3ae37e||0x0===_0x3ae37e[_0x3290c2(0x16d)])return{'left':Math[_0x3290c2(0x185)](_0x5bd529[_0x3290c2(0x16b)]+_0x5bd529[_0x3290c2(0x18b)]/0x2-_0x29cefc[_0x3290c2(0x18b)]/0x2),'top':Math[_0x3290c2(0x185)](_0x5bd529[_0x3290c2(0x17e)]+_0x5bd529[_0x3290c2(0x190)]/0x2-_0x29cefc[_0x3290c2(0x190)]/0x2)};const _0x5ab551=Math[_0x3290c2(0x185)](_0x5bd529[_0x3290c2(0x16b)]+_0x5bd529[_0x3290c2(0x18b)]/0x2-_0x29cefc[_0x3290c2(0x18b)]/0x2),_0x28811e=_0x3ae37e[0x0][_0x3290c2(0x18a)](),_0x59601c=_0x3ae37e[_0x3ae37e[_0x3290c2(0x16d)]-0x1][_0x3290c2(0x18a)](),_0x316abc=_0x29cefc[_0x3290c2(0x190)],_0xfaf088=this[_0x3290c2(0x159)][_0x3290c2(0x156)]?0x8:0x0;return{'left':_0x5ab551,'top':this[_0x3290c2(0x17b)](_0x28811e,_0x59601c,_0x316abc,_0xfaf088)};}[_0x5ab971(0x17b)](_0x546f34,_0x4b200d,_0x282162,_0x4c72a7=0x0){const _0xefbeaa=_0x5ab971,_0x455d9a=_0x4b200d[_0xefbeaa(0x17e)]+_0x4b200d[_0xefbeaa(0x190)],_0x2067a0=_0x546f34[_0xefbeaa(0x17e)]-_0x282162-_0x4c72a7,_0x167986=window[_0xefbeaa(0x174)]-_0x455d9a-0xa,_0x3b7b9f=_0x546f34[_0xefbeaa(0x17e)]-_0x4c72a7-0xa;let _0x469c02;if(_0x167986>=_0x282162)_0x469c02=_0x455d9a+0xa;else{if(_0x3b7b9f>=_0x282162)_0x469c02=_0x2067a0-0xa;else _0x469c02=_0x546f34[_0xefbeaa(0x17e)]+(_0x4b200d[_0xefbeaa(0x17e)]+_0x4b200d[_0xefbeaa(0x190)])/0x2-(_0x282162+_0x4c72a7)/0x2;}return _0x469c02;}}
23
+ function _0x434a(){const _0x8e298=['isEqual','_cleanupMarkerRemovalListener','view','round','getChangedMarkers','\x20ai-balloon-rotator','get','root','_pendingRenderCallback','1223445jntOBW','ai.availableReplyActions','12026016HSJGXc','Dialog','isOpen','7NhrtUc','isTrackChangesOn','getMarkersGroup','trackChanges','iconView','_setupMarkerRemovalListener','showBlockingError','getBoundingRect','off','_updateBalloon','index','_getSelectionElements','delegate','open','ranges','selectionRemoved','stopListening','differ','top','plugins','ai-balloon-selection','content','bind','balloonView','getIntersection','_setupVisualSelection','startsWith','AIEditing','headerView','mainView','_calculateDialogPosition','left','close','_isUpdatingMarkers','rootName','start','ai-balloon','commands','ai-selection','aiBalloon','show','fire','render','max','_showDialog','isPremiumPlugin','once','getVisible','4dQiFtU','length','dialogClosed','showRotator','width','config','$graveyard','showFakeVisualSelection','isOfficialPlugin','window','icon','height','label','context','3051861MnbTPR','updatePosition','requires','change','filter','AI_ACTIONS_SELECTION_REMOVED_ERROR','title','11677824CFstnh','listenTo','_calculateOptimalTopPosition','model','editing','end','_config','404481FZVLdT','markers','value','AIBalloon','ai-balloon-','6218772ImZYut','pluginName','locale','ai-selection:','setupRotator','bottom','updateContent','2326268nlvICa','hide','document','hideFakeVisualSelection'];_0x434a=function(){return _0x8e298;};return _0x434a();}const _0x19b543=_0x5b35;(function(_0x15fd2b,_0x35c0ea){const _0x14341f=_0x5b35,_0x4fdc27=_0x15fd2b();while(!![]){try{const _0x46379a=-parseInt(_0x14341f(0x18c))/0x1+-parseInt(_0x14341f(0x198))/0x2+parseInt(_0x14341f(0x17e))/0x3*(parseInt(_0x14341f(0x1da))/0x4)+parseInt(_0x14341f(0x1a5))/0x5+parseInt(_0x14341f(0x191))/0x6*(parseInt(_0x14341f(0x1aa))/0x7)+parseInt(_0x14341f(0x1a7))/0x8+-parseInt(_0x14341f(0x185))/0x9;if(_0x46379a===_0x35c0ea)break;else _0x4fdc27['push'](_0x4fdc27['shift']());}catch(_0x41e80d){_0x4fdc27['push'](_0x4fdc27['shift']());}}}(_0x434a,0xe4a5b));import{ContextPlugin as _0x5c418f}from'ckeditor5/src/core.js';import{AIConnector as _0x28b852}from'../aicore/aiconnector.js';import{AIEditing as _0x1f1c44}from'../aicore/aiediting.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0x56f4dc,AIBalloonView as _0x468195}from'./ui/aiballoonview.js';function _0x5b35(_0x5663a2,_0x9577da){const _0x434ad3=_0x434a();return _0x5b35=function(_0x5b358b,_0x2691e1){_0x5b358b=_0x5b358b-0x17a;let _0x1b1305=_0x434ad3[_0x5b358b];return _0x1b1305;},_0x5b35(_0x5663a2,_0x9577da);}import'../../theme/aiballoon/aiballoon.css';import{getAllMarkersDomElementsSorted as _0x2e88ed}from'ckeditor5-collaboration/src/collaboration-core.js';import{global as _0x15e9ef,Rect as _0x78860b,scrollViewportToShowTarget as _0x2bc175}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x47ca16}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x93a816}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';import{getTranslation as _0x48ad9d}from'../aicore/utils/common-translations.js';export const AI_BALLOON_EVENT_NAMES=[..._0x56f4dc,_0x19b543(0x1dc),_0x19b543(0x1b9)];const ut=0xa;export class AIBalloon extends _0x5c418f{static get[_0x19b543(0x180)](){return[_0x28b852,_0x1f1c44];}static get[_0x19b543(0x192)](){const _0x129e9d=_0x19b543;return _0x129e9d(0x18f);}static get[_0x19b543(0x1e2)](){return!0x0;}static get[_0x19b543(0x1d7)](){return!0x0;}[_0x19b543(0x1a9)]=!0x1;[_0x19b543(0x18b)];[_0x19b543(0x1cb)]=!0x1;[_0x19b543(0x1a4)]=null;[_0x19b543(0x1b7)](_0x164525){const _0x158898=_0x19b543,_0x137f7e=_0x47ca16(this[_0x158898(0x17d)]);if(this[_0x158898(0x18b)]=_0x164525,this[_0x158898(0x1a9)])return void this[_0x158898(0x1b3)](_0x164525);const _0x1509cc=this[_0x158898(0x17d)][_0x158898(0x1df)][_0x158898(0x1a2)](_0x158898(0x1a6))||[..._0x93a816],_0x51c6dd=_0x137f7e?.[_0x158898(0x1cf)][_0x158898(0x1a2)](_0x158898(0x1ad)),_0x5dee81=_0x51c6dd?.[_0x158898(0x18e)];this[_0x158898(0x1c1)]=new _0x468195(_0x137f7e[_0x158898(0x193)],_0x164525,_0x1509cc,!!_0x5dee81),this[_0x158898(0x1c1)][_0x158898(0x1b6)](..._0x56f4dc)['to'](this),_0x51c6dd&&this[_0x158898(0x1c1)][_0x158898(0x1c0)](_0x158898(0x1ab))['to'](_0x51c6dd,_0x158898(0x18e)),this[_0x158898(0x1d6)](_0x164525);}[_0x19b543(0x1ca)](){const _0x9b0d58=_0x19b543;_0x47ca16(this[_0x9b0d58(0x17d)])[_0x9b0d58(0x1bd)][_0x9b0d58(0x1a2)](_0x9b0d58(0x1a8))[_0x9b0d58(0x199)]();}[_0x19b543(0x1b3)](_0xc6b806){const _0x23831f=_0x19b543,_0x41f0ee=_0x47ca16(this[_0x23831f(0x17d)]),_0x4e6986=_0x41f0ee[_0x23831f(0x1bd)][_0x23831f(0x1a2)](_0x23831f(0x1a8));this[_0x23831f(0x1a4)]&&(_0x41f0ee[_0x23831f(0x189)][_0x23831f(0x19e)][_0x23831f(0x1b2)](_0x23831f(0x1d4),this[_0x23831f(0x1a4)]),this[_0x23831f(0x1a4)]=null),this[_0x23831f(0x1cb)]=!0x0,_0x4e6986[_0x23831f(0x19e)]?.[_0x23831f(0x1c6)]&&(_0x4e6986[_0x23831f(0x19e)][_0x23831f(0x1c6)][_0x23831f(0x17c)]=_0xc6b806[_0x23831f(0x184)],_0x4e6986[_0x23831f(0x19e)][_0x23831f(0x1c6)][_0x23831f(0x1ae)]&&_0xc6b806[_0x23831f(0x17a)]&&(_0x4e6986[_0x23831f(0x19e)][_0x23831f(0x1c6)][_0x23831f(0x1ae)][_0x23831f(0x1bf)]=_0xc6b806[_0x23831f(0x17a)])),this[_0x23831f(0x1c1)][_0x23831f(0x197)](_0xc6b806[_0x23831f(0x1c7)]),this[_0x23831f(0x1c3)](_0xc6b806[_0x23831f(0x1b8)],_0xc6b806[_0x23831f(0x1b4)]),this[_0x23831f(0x1a4)]=()=>{const _0x53276d=_0x23831f;this[_0x53276d(0x1cb)]=!0x1,this[_0x53276d(0x1a4)]=null,_0x4e6986[_0x53276d(0x19e)]&&_0x4e6986[_0x53276d(0x19e)][_0x53276d(0x17f)]();},_0x41f0ee[_0x23831f(0x189)][_0x23831f(0x19e)][_0x23831f(0x1d8)](_0x23831f(0x1d4),this[_0x23831f(0x1a4)]);}[_0x19b543(0x1c3)](_0x4ffc5c,_0x44c8fa){const _0x5eee88=_0x19b543;this[_0x5eee88(0x17d)][_0x5eee88(0x1bd)][_0x5eee88(0x1a2)](_0x1f1c44)[_0x5eee88(0x1e1)](_0x4ffc5c,_0x5eee88(0x190)+_0x44c8fa,!0x0,!0x0);}[_0x19b543(0x1d6)](_0x522332){const _0x4eea90=_0x19b543,_0x35e5dc=_0x47ca16(this[_0x4eea90(0x17d)]);this[_0x4eea90(0x1c3)](_0x522332[_0x4eea90(0x1b8)],_0x522332[_0x4eea90(0x1b4)]);const _0x193aa1=this[_0x4eea90(0x1b5)]();_0x193aa1&&_0x193aa1[0x0]&&_0x2bc175({'target':_0x193aa1[0x0],'ancestorOffset':0x14,'alignToTop':!0x0,'viewportOffset':{'top':0x14,'bottom':0x14,'left':0x0,'right':0x0}}),_0x35e5dc[_0x4eea90(0x1bd)][_0x4eea90(0x1a2)](_0x4eea90(0x1a8))[_0x4eea90(0x1d2)]({'title':_0x522332[_0x4eea90(0x184)],'icon':_0x522332[_0x4eea90(0x17a)],'hasCloseButton':!0x0,'id':_0x4eea90(0x1d1),'position':this[_0x4eea90(0x1c8)][_0x4eea90(0x1c0)](this),'className':_0x4eea90(0x1ce)+(_0x522332[_0x4eea90(0x1dd)]?_0x4eea90(0x1a1):''),'content':this[_0x4eea90(0x1c1)],'onShow':_0x39d16a=>{const _0x57cdfe=_0x4eea90;_0x522332[_0x57cdfe(0x1dd)]&&this[_0x57cdfe(0x1c1)][_0x57cdfe(0x195)](_0x39d16a),this[_0x57cdfe(0x1af)](),this[_0x57cdfe(0x1a9)]=!0x0;},'onHide':()=>{const _0x2417e0=_0x4eea90;this[_0x2417e0(0x17d)][_0x2417e0(0x1bd)][_0x2417e0(0x1a2)](_0x2417e0(0x1c5))[_0x2417e0(0x19b)](_0x2417e0(0x190)+this[_0x2417e0(0x18b)][_0x2417e0(0x1b4)]),this[_0x2417e0(0x19d)](),this[_0x2417e0(0x1d3)](_0x2417e0(0x1dc)),this[_0x2417e0(0x1a9)]=!0x1;}});}[_0x19b543(0x1c8)](_0x463ed8,_0x318663){const _0x3fd1d9=_0x19b543;if(!_0x318663)return null;const _0x38eafd=this[_0x3fd1d9(0x1b5)]();if(!_0x38eafd||0x0===_0x38eafd[_0x3fd1d9(0x1db)])return{'left':Math[_0x3fd1d9(0x19f)](_0x318663[_0x3fd1d9(0x1c9)]+_0x318663[_0x3fd1d9(0x1de)]/0x2-_0x463ed8[_0x3fd1d9(0x1de)]/0x2),'top':Math[_0x3fd1d9(0x19f)](_0x318663[_0x3fd1d9(0x1bc)]+_0x318663[_0x3fd1d9(0x17b)]/0x2-_0x463ed8[_0x3fd1d9(0x17b)]/0x2)};const _0x4755f0=Math[_0x3fd1d9(0x19f)](_0x318663[_0x3fd1d9(0x1c9)]+_0x318663[_0x3fd1d9(0x1de)]/0x2-_0x463ed8[_0x3fd1d9(0x1de)]/0x2),_0x24c648=new _0x78860b(_0x38eafd[0x0]),_0x6558c=new _0x78860b(_0x38eafd[_0x38eafd[_0x3fd1d9(0x1db)]-0x1]),_0x327beb=_0x463ed8[_0x3fd1d9(0x17b)],_0x48bb19=this[_0x3fd1d9(0x18b)][_0x3fd1d9(0x1dd)]?0x8:0x0;return{'left':_0x4755f0,'top':this[_0x3fd1d9(0x187)](_0x24c648,_0x6558c,_0x327beb,_0x48bb19,_0x318663)};}[_0x19b543(0x187)](_0x3820ac,_0x30e935,_0x16fc3d,_0x4807bd=0x0,_0x15200c){const _0x2b3cd0=_0x19b543,_0x2caa47=_0x16fc3d+_0x4807bd,_0x11aa39=new _0x78860b(_0x15e9ef[_0x2b3cd0(0x1e3)]),_0x2067ac=[_0x3820ac[_0x2b3cd0(0x1d9)](),_0x30e935[_0x2b3cd0(0x1d9)]()][_0x2b3cd0(0x182)](_0xa20c93=>_0xa20c93),_0x30b2e3=_0x78860b[_0x2b3cd0(0x1b1)](_0x2067ac);if(!_0x30b2e3)return Math[_0x2b3cd0(0x19f)](_0x15200c[_0x2b3cd0(0x1bc)]+_0x15200c[_0x2b3cd0(0x17b)]/0x2);const _0x379322=_0x11aa39[_0x2b3cd0(0x1c2)](_0x30b2e3);if(!_0x379322)return Math[_0x2b3cd0(0x19f)](_0x15200c[_0x2b3cd0(0x1bc)]+_0x15200c[_0x2b3cd0(0x17b)]/0x2);const _0x467142=_0x15200c[_0x2b3cd0(0x1d9)](),_0x2240d7=_0x467142&&_0x30b2e3[_0x2b3cd0(0x17b)]>_0x467142[_0x2b3cd0(0x17b)],_0x38353f=_0x379322[_0x2b3cd0(0x1bc)],_0x22972d=_0x379322[_0x2b3cd0(0x196)];if(_0x2240d7){const _0x1a3eea=(_0x467142||_0x11aa39)[_0x2b3cd0(0x17b)]/0x2-_0x2caa47/0x2,_0x592c26=_0x38353f-ut-_0x15200c[_0x2b3cd0(0x1bc)],_0x518c59=_0x15200c[_0x2b3cd0(0x196)]-_0x22972d-ut;return _0x592c26>=_0x2caa47?Math[_0x2b3cd0(0x1d5)](ut,_0x38353f-_0x2caa47-ut):_0x518c59>=_0x2caa47?_0x22972d+ut:Math[_0x2b3cd0(0x1d5)](ut,_0x1a3eea);}const _0x3d9e0f=_0x38353f-_0x2caa47,_0x4aaeb0=_0x15200c[_0x2b3cd0(0x196)]-_0x22972d-ut,_0x109f1d=_0x38353f-ut-_0x15200c[_0x2b3cd0(0x1bc)];let _0x3caa53;if(_0x4aaeb0>=_0x2caa47)_0x3caa53=_0x22972d+ut;else{if(_0x109f1d>=_0x2caa47)_0x3caa53=_0x3d9e0f-ut;else _0x3caa53=_0x38353f+_0x30b2e3[_0x2b3cd0(0x17b)]/0x2-_0x2caa47/0x2;}return _0x3caa53;}[_0x19b543(0x1af)](){const _0x2e0e85=_0x19b543,_0x3c6a95=_0x47ca16(this[_0x2e0e85(0x17d)]);this[_0x2e0e85(0x186)](_0x3c6a95[_0x2e0e85(0x188)][_0x2e0e85(0x19a)],_0x2e0e85(0x181),()=>{const _0x3c06b8=_0x2e0e85;if(this[_0x3c06b8(0x1cb)])return;for(const {name:_0x12c8df,data:{newRange:_0x398689}}of _0x3c6a95[_0x3c06b8(0x188)][_0x3c06b8(0x19a)][_0x3c06b8(0x1bb)][_0x3c06b8(0x1a0)]())if(_0x12c8df[_0x3c06b8(0x1c4)](_0x3c06b8(0x194))&&(_0x398689&&(_0x398689[_0x3c06b8(0x1cd)][_0x3c06b8(0x19c)](_0x398689[_0x3c06b8(0x18a)])||_0x3c06b8(0x1e0)==_0x398689[_0x3c06b8(0x1a3)][_0x3c06b8(0x1cc)])||null==_0x398689)){const _0x5cb36e=_0x48ad9d(this[_0x3c06b8(0x17d)][_0x3c06b8(0x193)],_0x3c06b8(0x183));this[_0x3c06b8(0x1c1)][_0x3c06b8(0x1b0)](_0x5cb36e),this[_0x3c06b8(0x1d3)](_0x3c06b8(0x1b9));}});}[_0x19b543(0x19d)](){const _0x2cc26d=_0x19b543,_0x59af91=_0x47ca16(this[_0x2cc26d(0x17d)]);this[_0x2cc26d(0x1ba)](_0x59af91[_0x2cc26d(0x188)][_0x2cc26d(0x19a)]);}[_0x19b543(0x1b5)](){const _0x519226=_0x19b543,_0x23c7a5=_0x47ca16(this[_0x519226(0x17d)]);return _0x2e88ed(_0x23c7a5[_0x519226(0x189)],[..._0x23c7a5[_0x519226(0x188)][_0x519226(0x18d)][_0x519226(0x1ac)](_0x519226(0x1d0)),..._0x23c7a5[_0x519226(0x188)][_0x519226(0x18d)][_0x519226(0x1ac)](_0x519226(0x1be))]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x40bf25,_0x425d45){var _0x14729d=_0x51d2,_0x504c96=_0x40bf25();while(!![]){try{var _0x4e2c68=-parseInt(_0x14729d(0xaa))/0x1*(-parseInt(_0x14729d(0x9a))/0x2)+-parseInt(_0x14729d(0xa4))/0x3*(-parseInt(_0x14729d(0xa1))/0x4)+parseInt(_0x14729d(0xa2))/0x5+parseInt(_0x14729d(0xa5))/0x6+-parseInt(_0x14729d(0xa3))/0x7*(-parseInt(_0x14729d(0xa7))/0x8)+-parseInt(_0x14729d(0xa0))/0x9*(parseInt(_0x14729d(0xa9))/0xa)+parseInt(_0x14729d(0x9f))/0xb*(-parseInt(_0x14729d(0xa8))/0xc);if(_0x4e2c68===_0x425d45)break;else _0x504c96['push'](_0x504c96['shift']());}catch(_0x494d20){_0x504c96['push'](_0x504c96['shift']());}}}(_0x342d,0xdb66f));import{View as _0x5dada0}from'ckeditor5/src/ui.js';import{getTranslation as _0x509539}from'../../aicore/utils/common-translations.js';export class AIBalloonDisclaimerView extends _0x5dada0{constructor(_0x39e1e4){var _0x580069=_0x51d2;super(_0x39e1e4),this[_0x580069(0xa6)]({'tag':_0x580069(0x9c),'attributes':{'class':['ck',_0x580069(0x9d)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x580069(0x9e)]},'children':[{'text':_0x509539(_0x39e1e4,_0x580069(0x9b))}]}]});}}function _0x51d2(_0x1783a2,_0x4a543e){var _0x342d95=_0x342d();return _0x51d2=function(_0x51d242,_0x363d71){_0x51d242=_0x51d242-0x9a;var _0x138c94=_0x342d95[_0x51d242];return _0x138c94;},_0x51d2(_0x1783a2,_0x4a543e);}function _0x342d(){var _0x48760a=['div','ck-ai-balloon__disclaimer','ck-ai-balloon__disclaimer-content','11FUjGWo','776331XwZebC','661916yQWvxE','2313145CbYauo','492660vLOyOZ','15QWXkYZ','5168100SHOzLX','setTemplate','64ndSQKe','38790312YZkkNJ','10DfQkyZ','1DEdHot','3006084bvuaME','AI_DISCLAIMER_TEXT'];_0x342d=function(){return _0x48760a;};return _0x342d();}
23
+ function _0x493d(){var _0x38ad90=['5435KnXmTC','1153056IKzxQD','369887bBFyXY','24jUYmkp','setTemplate','ck-ai-balloon__disclaimer-content','9OOHoOF','AI_DISCLAIMER_TEXT','10SePFgY','ck-ai-balloon__disclaimer','27921RSYoBL','11494307ZUpWhV','15400UwdeTU','5922730HgLMdH','div','654vQwZhQ'];_0x493d=function(){return _0x38ad90;};return _0x493d();}(function(_0x3c7863,_0x5cb087){var _0x556682=_0x2d4c,_0x1f1198=_0x3c7863();while(!![]){try{var _0x4fc934=-parseInt(_0x556682(0x11c))/0x1*(-parseInt(_0x556682(0x11a))/0x2)+parseInt(_0x556682(0x115))/0x3*(-parseInt(_0x556682(0x10e))/0x4)+-parseInt(_0x556682(0x112))/0x5*(parseInt(_0x556682(0x111))/0x6)+parseInt(_0x556682(0x114))/0x7+-parseInt(_0x556682(0x113))/0x8+-parseInt(_0x556682(0x118))/0x9*(parseInt(_0x556682(0x10f))/0xa)+parseInt(_0x556682(0x10d))/0xb;if(_0x4fc934===_0x5cb087)break;else _0x1f1198['push'](_0x1f1198['shift']());}catch(_0x53c006){_0x1f1198['push'](_0x1f1198['shift']());}}}(_0x493d,0x55dcf));import{View as _0x36d8d1}from'ckeditor5/src/ui.js';import{getTranslation as _0x3d2499}from'../../aicore/utils/common-translations.js';function _0x2d4c(_0x563fb7,_0x46e907){var _0x493dbe=_0x493d();return _0x2d4c=function(_0x2d4cf7,_0x4fcbd1){_0x2d4cf7=_0x2d4cf7-0x10d;var _0x1338e3=_0x493dbe[_0x2d4cf7];return _0x1338e3;},_0x2d4c(_0x563fb7,_0x46e907);}export class AIBalloonDisclaimerView extends _0x36d8d1{constructor(_0x27a33a){var _0x7e833c=_0x2d4c;super(_0x27a33a),this[_0x7e833c(0x116)]({'tag':_0x7e833c(0x110),'attributes':{'class':['ck',_0x7e833c(0x11b)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x7e833c(0x117)]},'children':[{'text':_0x3d2499(_0x27a33a,_0x7e833c(0x119))}]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x13ca21=_0x2013;(function(_0x52a239,_0x282361){const _0x494abb=_0x2013,_0x207172=_0x52a239();while(!![]){try{const _0x32ec14=-parseInt(_0x494abb(0x1b9))/0x1+-parseInt(_0x494abb(0x1ae))/0x2+parseInt(_0x494abb(0x1aa))/0x3+parseInt(_0x494abb(0x1a4))/0x4*(-parseInt(_0x494abb(0x1af))/0x5)+parseInt(_0x494abb(0x1ba))/0x6*(-parseInt(_0x494abb(0x1bb))/0x7)+parseInt(_0x494abb(0x1b5))/0x8*(-parseInt(_0x494abb(0x1a3))/0x9)+-parseInt(_0x494abb(0x1b8))/0xa*(-parseInt(_0x494abb(0x1a1))/0xb);if(_0x32ec14===_0x282361)break;else _0x207172['push'](_0x207172['shift']());}catch(_0x11a42b){_0x207172['push'](_0x207172['shift']());}}}(_0x2bb9,0xb71da));import{ToolbarView as _0x179bab,ButtonView as _0x573419}from'ckeditor5/src/ui.js';import{getTranslation as _0xb6e418}from'../../aicore/utils/common-translations.js';function _0x2013(_0x3e0034,_0x3ecc84){const _0x2bb9c7=_0x2bb9();return _0x2013=function(_0x2013ee,_0x245e21){_0x2013ee=_0x2013ee-0x1a1;let _0x3e4610=_0x2bb9c7[_0x2013ee];return _0x3e4610;},_0x2013(_0x3e0034,_0x3ecc84);}export class AIBalloonToolbarView extends _0x179bab{constructor(_0x3e465b,_0x3c4f18=!0x0,_0x430ea7=!0x0){const _0x2f2c48=_0x2013;super(_0x3e465b),this[_0x2f2c48(0x1a9)](_0x2f2c48(0x1b3),!0x1),_0x3c4f18&&(this[_0x2f2c48(0x1b4)]=this[_0x2f2c48(0x1a7)](_0xb6e418(_0x3e465b,_0x2f2c48(0x1a5)),_0x2f2c48(0x1a8)),this[_0x2f2c48(0x1b4)][_0x2f2c48(0x1ab)](_0x2f2c48(0x1b1))['to'](this,_0x2f2c48(0x1b3),_0x1e121a=>!_0x1e121a),this[_0x2f2c48(0x1a6)][_0x2f2c48(0x1b7)](this[_0x2f2c48(0x1b4)])),_0x430ea7&&(this[_0x2f2c48(0x1b0)]=this[_0x2f2c48(0x1a7)](_0xb6e418(_0x3e465b,_0x2f2c48(0x1b6)),_0x3c4f18?_0x2f2c48(0x1b2):_0x2f2c48(0x1a8)),this[_0x2f2c48(0x1b0)][_0x2f2c48(0x1ab)](_0x2f2c48(0x1b1))['to'](this,_0x2f2c48(0x1b3),_0x416308=>!_0x416308),this[_0x2f2c48(0x1a6)][_0x2f2c48(0x1b7)](this[_0x2f2c48(0x1b0)])),this[_0x2f2c48(0x1ad)]({'attributes':{'class':[_0x2f2c48(0x1a2)]}});}[_0x13ca21(0x1a7)](_0x247784,_0xfd99be){const _0x3275d8=_0x13ca21,_0x19482d=new _0x573419(this[_0x3275d8(0x1ac)]);return _0x19482d[_0x3275d8(0x1a9)]({'label':_0x247784,'class':_0xfd99be||'','isVisible':!0x0,'withText':!0x0}),_0x19482d;}}function _0x2bb9(){const _0x1bbd86=['set','138309BRfcWl','bind','locale','extendTemplate','1387532vLsFFi','5UCpXHi','suggestButton','isEnabled','ck-ai-button-secondary','isLoading','applyButton','24BQRcXQ','AI_BALLOON_SUGGEST_BUTTON','add','16225760LEddhg','1416754CrCWHo','3180480xeKlxK','7kwrgTP','33HjfWHn','ck-ai-balloon__toolbar','3490479AkCELj','1438784Dpjscv','AI_BALLOON_APPLY_BUTTON','items','_createButton','ck-ai-button-primary'];_0x2bb9=function(){return _0x1bbd86;};return _0x2bb9();}
23
+ function _0x3ccb(_0x10ed83,_0x2142fe){const _0x5519de=_0x5519();return _0x3ccb=function(_0x3ccb7c,_0x3f0fc9){_0x3ccb7c=_0x3ccb7c-0x6d;let _0x297da9=_0x5519de[_0x3ccb7c];return _0x297da9;},_0x3ccb(_0x10ed83,_0x2142fe);}const _0x3ba598=_0x3ccb;function _0x5519(){const _0x4cfe17=['AI_BALLOON_SUGGEST_BUTTON','ck-ai-button-secondary','5309466zjKyUu','ck-ai-button-primary','4811700OKFNgW','applyButton','suggestButton','set','ck-ai-balloon__toolbar','add','1807374qSxoAf','40aaQjri','2kOAEwF','extendTemplate','8954088FHZjAa','2875280ZYyGbc','7pahqVB','items','414553rngRAX','1346580JbyAkY','bind','isEnabled','locale','isLoading','_createButton','AI_BALLOON_APPLY_BUTTON'];_0x5519=function(){return _0x4cfe17;};return _0x5519();}(function(_0x48fa00,_0x39da9e){const _0x5e5f4c=_0x3ccb,_0x45ad91=_0x48fa00();while(!![]){try{const _0x7a6a74=parseInt(_0x5e5f4c(0x75))/0x1*(parseInt(_0x5e5f4c(0x6f))/0x2)+parseInt(_0x5e5f4c(0x6d))/0x3+-parseInt(_0x5e5f4c(0x72))/0x4+-parseInt(_0x5e5f4c(0x81))/0x5+-parseInt(_0x5e5f4c(0x7f))/0x6*(-parseInt(_0x5e5f4c(0x73))/0x7)+parseInt(_0x5e5f4c(0x71))/0x8+-parseInt(_0x5e5f4c(0x76))/0x9*(parseInt(_0x5e5f4c(0x6e))/0xa);if(_0x7a6a74===_0x39da9e)break;else _0x45ad91['push'](_0x45ad91['shift']());}catch(_0x31c1f5){_0x45ad91['push'](_0x45ad91['shift']());}}}(_0x5519,0xb50a7));import{ToolbarView as _0x3397a5,ButtonView as _0x8a05f9}from'ckeditor5/src/ui.js';import{getTranslation as _0x545c76}from'../../aicore/utils/common-translations.js';export class AIBalloonToolbarView extends _0x3397a5{constructor(_0x1a7a30,_0x4822df=!0x0,_0x47eb2c=!0x0){const _0x10b841=_0x3ccb;super(_0x1a7a30),this[_0x10b841(0x84)](_0x10b841(0x7a),!0x1),_0x4822df&&(this[_0x10b841(0x82)]=this[_0x10b841(0x7b)](_0x545c76(_0x1a7a30,_0x10b841(0x7c)),_0x10b841(0x80)),this[_0x10b841(0x82)][_0x10b841(0x77)](_0x10b841(0x78))['to'](this,_0x10b841(0x7a),_0x4db4d3=>!_0x4db4d3),this[_0x10b841(0x74)][_0x10b841(0x86)](this[_0x10b841(0x82)])),_0x47eb2c&&(this[_0x10b841(0x83)]=this[_0x10b841(0x7b)](_0x545c76(_0x1a7a30,_0x10b841(0x7d)),_0x4822df?_0x10b841(0x7e):_0x10b841(0x80)),this[_0x10b841(0x83)][_0x10b841(0x77)](_0x10b841(0x78))['to'](this,_0x10b841(0x7a),_0x1bf747=>!_0x1bf747),this[_0x10b841(0x74)][_0x10b841(0x86)](this[_0x10b841(0x83)])),this[_0x10b841(0x70)]({'attributes':{'class':[_0x10b841(0x85)]}});}[_0x3ba598(0x7b)](_0x23334e,_0x1dfa93){const _0x53302d=_0x3ba598,_0x18c0c8=new _0x8a05f9(this[_0x53302d(0x79)]);return _0x18c0c8[_0x53302d(0x84)]({'label':_0x23334e,'class':_0x1dfa93||'','isVisible':!0x0,'withText':!0x0}),_0x18c0c8;}}
@@ -56,7 +56,15 @@ export declare class AIBalloonView extends View implements ViewWithFocusCycler {
56
56
  */
57
57
  isLoading: boolean;
58
58
  isTrackChangesOn: boolean;
59
- constructor(locale: Locale, config: AIBalloonContentConfig, dropdownConfig: Array<AISuggestionActionName>, isTrackChangesOn: boolean);
59
+ /**
60
+ * Observable property that indicates whether the error view is visible.
61
+ */
62
+ isErrorVisible: boolean;
63
+ /**
64
+ * Current error message displayed in the error view.
65
+ */
66
+ errorMessage: string;
67
+ constructor(locale: Locale, config: AIBalloonContentConfig, availableActions: Array<AISuggestionActionName>, isTrackChangesOn: boolean);
60
68
  /**
61
69
  * @inheritDoc
62
70
  */
@@ -73,6 +81,30 @@ export declare class AIBalloonView extends View implements ViewWithFocusCycler {
73
81
  * Clears the loading state, enabling all interactive elements.
74
82
  */
75
83
  clearLoading(): void;
84
+ /**
85
+ * Shows an error message in the balloon.
86
+ *
87
+ * @param message The error message to display
88
+ */
89
+ showError(message: string): void;
90
+ /**
91
+ * Hides the error message in the balloon.
92
+ */
93
+ hideError(): void;
94
+ /**
95
+ * Shows a recoverable error message in the balloon.
96
+ * This is an alias for `showError()` - the error is displayed but user can still interact with other replies or retry.
97
+ *
98
+ * @param message The error message to display
99
+ */
100
+ showRecoverableError(message: string): void;
101
+ /**
102
+ * Shows a blocking error message and disables toolbar buttons.
103
+ * This should be used for terminal errors where the interaction cannot continue (e.g., selection removed).
104
+ *
105
+ * @param message The error message to display
106
+ */
107
+ showBlockingError(message: string): void;
76
108
  /**
77
109
  * Sets up the rotator functionality for navigating between multiple suggestions.
78
110
  * Adds next and previous buttons to the dialog header.
@@ -80,6 +112,13 @@ export declare class AIBalloonView extends View implements ViewWithFocusCycler {
80
112
  * @param dialog The dialog instance to add navigation buttons to
81
113
  */
82
114
  setupRotator(dialog: Dialog): void;
115
+ /**
116
+ * Updates the main content view of the balloon.
117
+ * This method replaces the current main view with a new one without recreating the entire balloon.
118
+ *
119
+ * @param mainView The new main view to display in the balloon
120
+ */
121
+ updateContent(mainView: View): void;
83
122
  }
84
123
  /**
85
124
  * Event fired when user clicks the apply button to apply a suggestion.
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5a8235=_0x11e0;function _0x11e0(_0x13d433,_0xfdcdc4){const _0x113070=_0x1130();return _0x11e0=function(_0x11e00b,_0x20ea0b){_0x11e00b=_0x11e00b-0x107;let _0x155d42=_0x113070[_0x11e00b];return _0x155d42;},_0x11e0(_0x13d433,_0xfdcdc4);}function _0x1130(){const _0x5a642c=['clear','render','set','setTemplate','element','_dropdownConfig','ai-balloon-content','listenTo','353266PULBYQ','bind','setupRotator','view','showNext','_focusables','904251oKFIxa','3553ligbDS','AI_BALLOON_NEXT_TOOLTIP','focusFirst','setLoading','createCollection','_addContentView','disclaimerView','remove','focus','_createPreviousButtonView','showApplyButton','10318bhgqMv','isTrackChangesOn','15030SQovDt','tab','_mainView','shift\x20+\x20tab','_addToolbar','insertSuggestion','focusLast','fire','execute','_createNextButtonView','toolbar','343164sErVlV','mainView','focusTracker','_dialogContent','children','includes','showPrevious','keystrokes','applyButton','1182WgybtY','3055yroRyf','focusCycler','24UvWYvR','locale','change:isTrackChangesOn','addMany','applySuggestion','isLoading','_addDisclaimerView','suggestButton','751392nWeWHe','add','div','340hFuVie','clearLoading','AI_BALLOON_PREVIOUS_TOOLTIP','showSuggestButton','headerView'];_0x1130=function(){return _0x5a642c;};return _0x1130();}(function(_0x3015c4,_0x16604a){const _0x525fc9=_0x11e0,_0xeae4d4=_0x3015c4();while(!![]){try{const _0x2e2826=parseInt(_0x525fc9(0x127))/0x1+parseInt(_0x525fc9(0x108))/0x2+-parseInt(_0x525fc9(0x10e))/0x3+-parseInt(_0x525fc9(0x13e))/0x4*(-parseInt(_0x525fc9(0x131))/0x5)+parseInt(_0x525fc9(0x130))/0x6*(-parseInt(_0x525fc9(0x11a))/0x7)+-parseInt(_0x525fc9(0x133))/0x8*(parseInt(_0x525fc9(0x13b))/0x9)+-parseInt(_0x525fc9(0x11c))/0xa*(-parseInt(_0x525fc9(0x10f))/0xb);if(_0x2e2826===_0x16604a)break;else _0xeae4d4['push'](_0xeae4d4['shift']());}catch(_0x3a6b7e){_0xeae4d4['push'](_0xeae4d4['shift']());}}}(_0x1130,0x3479e));import{ButtonView as _0xb85141,View as _0x5749cd,ViewCollection as _0x53b553,FocusCycler as _0xb49c8c}from'ckeditor5/src/ui.js';import{FocusTracker as _0x15171f,KeystrokeHandler as _0x3eda54}from'ckeditor5/src/utils.js';import{IconNextArrow as _0x262473,IconPreviousArrow as _0x59d048}from'@ckeditor/ckeditor5-icons';import{AIBalloonToolbarView as _0x32a6ab}from'./aiballoontoolbarview.js';import{AIBalloonDisclaimerView as _0x5b9789}from'./aiballoondisclaimerview.js';import{getTranslation as _0x1228a4}from'../../aicore/utils/common-translations.js';export const AI_BALLOON_VIEW_EVENT_NAMES=[_0x5a8235(0x137),_0x5a8235(0x121),_0x5a8235(0x10c),_0x5a8235(0x12d)];export class AIBalloonView extends _0x5749cd{[_0x5a8235(0x129)];[_0x5a8235(0x12e)];[_0x5a8235(0x132)];[_0x5a8235(0x148)];[_0x5a8235(0x10d)];constructor(_0x15e11a,_0x508537,_0x26cc0d,_0xa8dfdd){const _0x38fbb5=_0x5a8235;super(_0x15e11a),this[_0x38fbb5(0x148)]=_0x26cc0d,this[_0x38fbb5(0x145)](_0x38fbb5(0x138),!0x1),this[_0x38fbb5(0x145)](_0x38fbb5(0x11b),_0xa8dfdd),this[_0x38fbb5(0x129)]=new _0x15171f(),this[_0x38fbb5(0x12e)]=new _0x3eda54(),this[_0x38fbb5(0x10d)]=this[_0x38fbb5(0x113)](),this[_0x38fbb5(0x132)]=new _0xb49c8c({'focusables':this[_0x38fbb5(0x10d)],'focusTracker':this[_0x38fbb5(0x129)],'keystrokeHandler':this[_0x38fbb5(0x12e)],'actions':{'focusPrevious':_0x38fbb5(0x11f),'focusNext':_0x38fbb5(0x11d)}}),this[_0x38fbb5(0x12a)]=new _0x53b553(),this[_0x38fbb5(0x114)](_0x508537[_0x38fbb5(0x128)]),this[_0x38fbb5(0x139)](),this[_0x38fbb5(0x120)](_0x508537[_0x38fbb5(0x119)],_0x508537[_0x38fbb5(0x141)]),this[_0x38fbb5(0x126)][_0x38fbb5(0x109)](_0x38fbb5(0x138))['to'](this),this[_0x38fbb5(0x10d)][_0x38fbb5(0x143)](),this[_0x38fbb5(0x10d)][_0x38fbb5(0x136)]([this[_0x38fbb5(0x126)]]),this[_0x38fbb5(0x146)]({'tag':_0x38fbb5(0x13d),'attributes':{'class':_0x38fbb5(0x149)},'children':this[_0x38fbb5(0x12a)]}),this[_0x38fbb5(0x107)](this,_0x38fbb5(0x135),()=>{const _0xbdc836=_0x38fbb5;this[_0xbdc836(0x12a)][_0xbdc836(0x116)](this[_0xbdc836(0x126)]),this[_0xbdc836(0x120)](_0x508537[_0xbdc836(0x119)],_0x508537[_0xbdc836(0x141)]);});}[_0x5a8235(0x144)](){const _0x42d916=_0x5a8235;super[_0x42d916(0x144)]();for(const _0x2341d0 of this[_0x42d916(0x10d)])this[_0x42d916(0x129)][_0x42d916(0x13c)](_0x2341d0[_0x42d916(0x147)]);this[_0x42d916(0x12e)][_0x42d916(0x107)](this[_0x42d916(0x147)]);}[_0x5a8235(0x117)](_0x328b52){const _0x11571f=_0x5a8235;-0x1===_0x328b52?this[_0x11571f(0x132)][_0x11571f(0x122)]():this[_0x11571f(0x132)][_0x11571f(0x111)]();}[_0x5a8235(0x112)](){const _0x5ef2a9=_0x5a8235;this[_0x5ef2a9(0x138)]=!0x0;}[_0x5a8235(0x13f)](){const _0x11dc07=_0x5a8235;this[_0x11dc07(0x138)]=!0x1;}[_0x5a8235(0x10a)](_0x1c7725){const _0x5890d5=_0x5a8235,_0x91eb87=this[_0x5890d5(0x125)](),_0x43eb69=this[_0x5890d5(0x118)]();_0x1c7725[_0x5890d5(0x10b)][_0x5890d5(0x142)][_0x5890d5(0x12b)][_0x5890d5(0x13c)](_0x91eb87,0x2),_0x1c7725[_0x5890d5(0x10b)][_0x5890d5(0x142)][_0x5890d5(0x12b)][_0x5890d5(0x13c)](_0x43eb69,0x0),this[_0x5890d5(0x10d)][_0x5890d5(0x136)]([_0x91eb87,_0x43eb69]),this[_0x5890d5(0x129)][_0x5890d5(0x13c)](_0x91eb87[_0x5890d5(0x147)]),this[_0x5890d5(0x129)][_0x5890d5(0x13c)](_0x43eb69[_0x5890d5(0x147)]);}[_0x5a8235(0x114)](_0x409d80){const _0x25bf8e=_0x5a8235;this[_0x25bf8e(0x11e)]=_0x409d80,this[_0x25bf8e(0x12a)][_0x25bf8e(0x13c)](this[_0x25bf8e(0x11e)]);}[_0x5a8235(0x139)](){const _0xc6b51=_0x5a8235;this[_0xc6b51(0x115)]=new _0x5b9789(this[_0xc6b51(0x134)]),this[_0xc6b51(0x12a)][_0xc6b51(0x13c)](this[_0xc6b51(0x115)]);}[_0x5a8235(0x120)](_0x58d694=!0x0,_0x4456fc=!0x0){const _0x5a6396=_0x5a8235;_0x58d694=_0x58d694&&!this[_0x5a6396(0x11b)]&&this[_0x5a6396(0x148)][_0x5a6396(0x12c)](_0x5a6396(0x137)),_0x4456fc=_0x4456fc&&this[_0x5a6396(0x148)][_0x5a6396(0x12c)](_0x5a6396(0x121)),this[_0x5a6396(0x126)]=new _0x32a6ab(this[_0x5a6396(0x134)],_0x58d694,_0x4456fc),this[_0x5a6396(0x126)][_0x5a6396(0x12f)]?.['on'](_0x5a6396(0x124),()=>{const _0x3dd5c3=_0x5a6396;this[_0x3dd5c3(0x123)](_0x3dd5c3(0x137));}),this[_0x5a6396(0x126)][_0x5a6396(0x13a)]?.['on'](_0x5a6396(0x124),()=>{const _0x222eff=_0x5a6396;this[_0x222eff(0x123)](_0x222eff(0x121));}),this[_0x5a6396(0x12a)][_0x5a6396(0x13c)](this[_0x5a6396(0x126)]);}[_0x5a8235(0x125)](){const _0x235d30=_0x5a8235,_0x3051ab=new _0xb85141(this[_0x235d30(0x134)]);return _0x3051ab[_0x235d30(0x145)]({'icon':_0x262473,'tooltip':_0x1228a4(this[_0x235d30(0x134)],_0x235d30(0x110))}),_0x3051ab['on'](_0x235d30(0x124),()=>{const _0x5544a7=_0x235d30;this[_0x5544a7(0x123)](_0x5544a7(0x10c));}),_0x3051ab;}[_0x5a8235(0x118)](){const _0x4ea37a=_0x5a8235,_0x53b83d=new _0xb85141(this[_0x4ea37a(0x134)]);return _0x53b83d[_0x4ea37a(0x145)]({'icon':_0x59d048,'tooltip':_0x1228a4(this[_0x4ea37a(0x134)],_0x4ea37a(0x140))}),_0x53b83d['on'](_0x4ea37a(0x124),()=>{const _0x467945=_0x4ea37a;this[_0x467945(0x123)](_0x467945(0x12d));}),_0x53b83d;}}
23
+ const _0x4d3108=_0x1455;(function(_0x168fb0,_0x1f2e42){const _0x4362af=_0x1455,_0xb9ca5e=_0x168fb0();while(!![]){try{const _0x3fd500=-parseInt(_0x4362af(0x1c3))/0x1+parseInt(_0x4362af(0x1be))/0x2+-parseInt(_0x4362af(0x1b9))/0x3+parseInt(_0x4362af(0x1c6))/0x4+parseInt(_0x4362af(0x1ed))/0x5*(parseInt(_0x4362af(0x1c0))/0x6)+-parseInt(_0x4362af(0x1c1))/0x7*(-parseInt(_0x4362af(0x1b5))/0x8)+parseInt(_0x4362af(0x1b7))/0x9*(-parseInt(_0x4362af(0x203))/0xa);if(_0x3fd500===_0x1f2e42)break;else _0xb9ca5e['push'](_0xb9ca5e['shift']());}catch(_0x1463c9){_0xb9ca5e['push'](_0xb9ca5e['shift']());}}}(_0x417b,0xc747c));import{ButtonView as _0x7a60ed,View as _0x94f39b,ViewCollection as _0x2fd613,FocusCycler as _0x43588d}from'ckeditor5/src/ui.js';function _0x417b(){const _0x3eb5c8=['children','showSuggestButton','toolbar','40ZEzgOI','listenTo','477odQPaT','AI_BALLOON_PREVIOUS_TOOLTIP','3469521lHvrXr','execute','createCollection','setupRotator','setTemplate','2510988daGRfP','mainView','42mHPkYT','2176559ZJXLDQ','suggestButton','1371113AreXwC','ai-balloon-content','_mainView','4534244SLtDiQ','_addContentView','setLoading','AI_BALLOON_NEXT_TOOLTIP','tab','_dialogContent','focusFirst','hideError','view','applySuggestion','set','focusCycler','shift\x20+\x20tab','_createErrorView','_focusables','bindTemplate','ck-ai-suggestion__error-text','_errorView','clearLoading','fire','_createPreviousButtonView','updateContent','_createNextButtonView','errorMessage','div','isErrorVisible','insertSuggestion','_addToolbar','showError','isTrackChangesOn','applyButton','headerView','locale','showBlockingError','showApplyButton','focusTracker','isLoading','getIndex','showNext','202715wVQTJh','addMany','element','isEnabled','remove','showRecoverableError','clear','ck-hidden','showPrevious','_availableActions','keystrokes','includes','add','render','focusLast','focus','disclaimerView','ck-ai-suggestion__error','_addDisclaimerView','span','ai-balloon-error','change:isTrackChangesOn','166730MNtHSO','bind'];_0x417b=function(){return _0x3eb5c8;};return _0x417b();}import{FocusTracker as _0x201669,KeystrokeHandler as _0x889db4}from'ckeditor5/src/utils.js';import{IconNextArrow as _0x29b2d2,IconPreviousArrow as _0x543570}from'@ckeditor/ckeditor5-icons';import{AIBalloonToolbarView as _0x1c82c5}from'./aiballoontoolbarview.js';import{AIBalloonDisclaimerView as _0x5af72a}from'./aiballoondisclaimerview.js';function _0x1455(_0x52f6af,_0x3c55f7){const _0x417bfc=_0x417b();return _0x1455=function(_0x145586,_0x287407){_0x145586=_0x145586-0x1b5;let _0x40c493=_0x417bfc[_0x145586];return _0x40c493;},_0x1455(_0x52f6af,_0x3c55f7);}import{getTranslation as _0x297779}from'../../aicore/utils/common-translations.js';export const AI_BALLOON_VIEW_EVENT_NAMES=[_0x4d3108(0x1cf),_0x4d3108(0x1e0),_0x4d3108(0x1ec),_0x4d3108(0x1f5)];export class AIBalloonView extends _0x94f39b{[_0x4d3108(0x1e9)];[_0x4d3108(0x1f7)];[_0x4d3108(0x1d1)];[_0x4d3108(0x1f6)];[_0x4d3108(0x1d4)];[_0x4d3108(0x1d7)];constructor(_0x2a0305,_0x599949,_0x5d0cd1,_0x244869){const _0x5d3453=_0x4d3108;super(_0x2a0305),this[_0x5d3453(0x1f6)]=_0x5d0cd1,this[_0x5d3453(0x1d0)](_0x5d3453(0x1ea),!0x1),this[_0x5d3453(0x1d0)](_0x5d3453(0x1e3),_0x244869),this[_0x5d3453(0x1d0)](_0x5d3453(0x1df),!0x1),this[_0x5d3453(0x1d0)](_0x5d3453(0x1dd),''),this[_0x5d3453(0x1e9)]=new _0x201669(),this[_0x5d3453(0x1f7)]=new _0x889db4(),this[_0x5d3453(0x1d4)]=this[_0x5d3453(0x1bb)](),this[_0x5d3453(0x1d1)]=new _0x43588d({'focusables':this[_0x5d3453(0x1d4)],'focusTracker':this[_0x5d3453(0x1e9)],'keystrokeHandler':this[_0x5d3453(0x1f7)],'actions':{'focusPrevious':_0x5d3453(0x1d2),'focusNext':_0x5d3453(0x1ca)}}),this[_0x5d3453(0x1cb)]=new _0x2fd613(),this[_0x5d3453(0x1c7)](_0x599949[_0x5d3453(0x1bf)]),this[_0x5d3453(0x1ff)](),this[_0x5d3453(0x1e1)](_0x599949[_0x5d3453(0x1e8)],_0x599949[_0x5d3453(0x206)]),this[_0x5d3453(0x207)][_0x5d3453(0x204)](_0x5d3453(0x1ea))['to'](this),this[_0x5d3453(0x1d4)][_0x5d3453(0x1f3)](),this[_0x5d3453(0x1d4)][_0x5d3453(0x1ee)]([this[_0x5d3453(0x207)]]),this[_0x5d3453(0x1bd)]({'tag':_0x5d3453(0x1de),'attributes':{'class':_0x5d3453(0x1c4)},'children':this[_0x5d3453(0x1cb)]}),this['on'](_0x5d3453(0x202),()=>{const _0x56fab4=_0x5d3453;this[_0x56fab4(0x1cb)][_0x56fab4(0x1f1)](this[_0x56fab4(0x207)]),this[_0x56fab4(0x1e1)](_0x599949[_0x56fab4(0x1e8)],_0x599949[_0x56fab4(0x206)]);});}[_0x4d3108(0x1fa)](){const _0x37192d=_0x4d3108;super[_0x37192d(0x1fa)]();for(const _0x4bae3a of this[_0x37192d(0x1d4)])this[_0x37192d(0x1e9)][_0x37192d(0x1f9)](_0x4bae3a[_0x37192d(0x1ef)]);this[_0x37192d(0x1f7)][_0x37192d(0x1b6)](this[_0x37192d(0x1ef)]);}[_0x4d3108(0x1fc)](_0x3b99ef){const _0x5f5b5d=_0x4d3108;-0x1===_0x3b99ef?this[_0x5f5b5d(0x1d1)][_0x5f5b5d(0x1fb)]():this[_0x5f5b5d(0x1d1)][_0x5f5b5d(0x1cc)]();}[_0x4d3108(0x1c8)](){const _0x141230=_0x4d3108;this[_0x141230(0x1ea)]=!0x0;}[_0x4d3108(0x1d8)](){const _0x31eb38=_0x4d3108;this[_0x31eb38(0x1ea)]=!0x1;}[_0x4d3108(0x1e2)](_0x19d984){const _0x2c0852=_0x4d3108;this[_0x2c0852(0x1d7)]||(this[_0x2c0852(0x1d7)]=this[_0x2c0852(0x1d3)](),this[_0x2c0852(0x1cb)][_0x2c0852(0x1ee)]([this[_0x2c0852(0x1d7)]],0x0)),this[_0x2c0852(0x1dd)]=_0x19d984,this[_0x2c0852(0x1df)]=!0x0;}[_0x4d3108(0x1cd)](){const _0xba4419=_0x4d3108;this[_0xba4419(0x1df)]=!0x1;}[_0x4d3108(0x1f2)](_0x57e77f){const _0x4973a8=_0x4d3108;this[_0x4973a8(0x1e2)](_0x57e77f);}[_0x4d3108(0x1e7)](_0x2909ec){const _0x278577=_0x4d3108;this[_0x278577(0x1e2)](_0x2909ec),this[_0x278577(0x207)]&&(this[_0x278577(0x207)][_0x278577(0x1e4)]&&(this[_0x278577(0x207)][_0x278577(0x1e4)][_0x278577(0x1f0)]=!0x1),this[_0x278577(0x207)][_0x278577(0x1c2)]&&(this[_0x278577(0x207)][_0x278577(0x1c2)][_0x278577(0x1f0)]=!0x1));}[_0x4d3108(0x1bc)](_0x3c39c3){const _0x3d3c8d=_0x4d3108,_0x50ca6c=this[_0x3d3c8d(0x1dc)](),_0x3a724c=this[_0x3d3c8d(0x1da)]();_0x3c39c3[_0x3d3c8d(0x1ce)][_0x3d3c8d(0x1e5)][_0x3d3c8d(0x205)][_0x3d3c8d(0x1f9)](_0x50ca6c,0x2),_0x3c39c3[_0x3d3c8d(0x1ce)][_0x3d3c8d(0x1e5)][_0x3d3c8d(0x205)][_0x3d3c8d(0x1f9)](_0x3a724c,0x0),this[_0x3d3c8d(0x1d4)][_0x3d3c8d(0x1ee)]([_0x50ca6c,_0x3a724c]),this[_0x3d3c8d(0x1e9)][_0x3d3c8d(0x1f9)](_0x50ca6c[_0x3d3c8d(0x1ef)]),this[_0x3d3c8d(0x1e9)][_0x3d3c8d(0x1f9)](_0x3a724c[_0x3d3c8d(0x1ef)]);}[_0x4d3108(0x1c7)](_0x1b7195){const _0x663fd0=_0x4d3108;this[_0x663fd0(0x1c5)]=_0x1b7195,this[_0x663fd0(0x1cb)][_0x663fd0(0x1f9)](this[_0x663fd0(0x1c5)]);}[_0x4d3108(0x1db)](_0x541728){const _0x5de4e5=_0x4d3108,_0x4b08fd=this[_0x5de4e5(0x1cb)][_0x5de4e5(0x1eb)](this[_0x5de4e5(0x1c5)]);this[_0x5de4e5(0x1cb)][_0x5de4e5(0x1f1)](this[_0x5de4e5(0x1c5)]),this[_0x5de4e5(0x1c5)]=_0x541728,this[_0x5de4e5(0x1cb)][_0x5de4e5(0x1f9)](this[_0x5de4e5(0x1c5)],_0x4b08fd),this[_0x5de4e5(0x1cd)]();}[_0x4d3108(0x1ff)](){const _0x3d0f2a=_0x4d3108;this[_0x3d0f2a(0x1fd)]=new _0x5af72a(this[_0x3d0f2a(0x1e6)]),this[_0x3d0f2a(0x1cb)][_0x3d0f2a(0x1f9)](this[_0x3d0f2a(0x1fd)]);}[_0x4d3108(0x1e1)](_0x317ba7=!0x0,_0x5dee39=!0x0){const _0x3de8d3=_0x4d3108;_0x317ba7=_0x317ba7&&!this[_0x3de8d3(0x1e3)]&&this[_0x3de8d3(0x1f6)][_0x3de8d3(0x1f8)](_0x3de8d3(0x1cf)),_0x5dee39=_0x5dee39&&this[_0x3de8d3(0x1f6)][_0x3de8d3(0x1f8)](_0x3de8d3(0x1e0)),this[_0x3de8d3(0x207)]=new _0x1c82c5(this[_0x3de8d3(0x1e6)],_0x317ba7,_0x5dee39),this[_0x3de8d3(0x207)][_0x3de8d3(0x1e4)]?.['on'](_0x3de8d3(0x1ba),()=>{const _0x546860=_0x3de8d3;this[_0x546860(0x1d9)](_0x546860(0x1cf));}),this[_0x3de8d3(0x207)][_0x3de8d3(0x1c2)]?.['on'](_0x3de8d3(0x1ba),()=>{const _0x3d550c=_0x3de8d3;this[_0x3d550c(0x1d9)](_0x3d550c(0x1e0));}),this[_0x3de8d3(0x1cb)][_0x3de8d3(0x1f9)](this[_0x3de8d3(0x207)]);}[_0x4d3108(0x1dc)](){const _0x70102=_0x4d3108,_0x309798=new _0x7a60ed(this[_0x70102(0x1e6)]);return _0x309798[_0x70102(0x1d0)]({'icon':_0x29b2d2,'tooltip':_0x297779(this[_0x70102(0x1e6)],_0x70102(0x1c9))}),_0x309798['on'](_0x70102(0x1ba),()=>{const _0x305317=_0x70102;this[_0x305317(0x1d9)](_0x305317(0x1ec));}),_0x309798;}[_0x4d3108(0x1da)](){const _0x267570=_0x4d3108,_0x3579a2=new _0x7a60ed(this[_0x267570(0x1e6)]);return _0x3579a2[_0x267570(0x1d0)]({'icon':_0x543570,'tooltip':_0x297779(this[_0x267570(0x1e6)],_0x267570(0x1b8))}),_0x3579a2['on'](_0x267570(0x1ba),()=>{const _0x11f854=_0x267570;this[_0x11f854(0x1d9)](_0x11f854(0x1f5));}),_0x3579a2;}[_0x4d3108(0x1d3)](){const _0x152620=_0x4d3108,_0x3f8b0a=new _0x94f39b(this[_0x152620(0x1e6)]),_0x39cf3d=new _0x94f39b(this[_0x152620(0x1e6)]);return _0x39cf3d[_0x152620(0x1bd)]({'tag':_0x152620(0x200),'attributes':{'class':['ck',_0x152620(0x1d6)]},'children':[{'text':this[_0x152620(0x1d5)]['to'](_0x152620(0x1dd))}]}),_0x3f8b0a[_0x152620(0x1bd)]({'tag':_0x152620(0x1de),'attributes':{'class':['ck',_0x152620(0x1fe),_0x152620(0x201),this[_0x152620(0x1d5)]['if'](_0x152620(0x1df),_0x152620(0x1f4),_0x4aa4ab=>!_0x4aa4ab)]},'children':[_0x39cf3d]}),_0x3f8b0a;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x33bc70=_0x4422;(function(_0x2f9fd9,_0x57d55d){var _0x13ac43=_0x4422,_0x4cc256=_0x2f9fd9();while(!![]){try{var _0x21b0a2=parseInt(_0x13ac43(0x132))/0x1+-parseInt(_0x13ac43(0x141))/0x2*(parseInt(_0x13ac43(0x13c))/0x3)+-parseInt(_0x13ac43(0x135))/0x4*(parseInt(_0x13ac43(0x143))/0x5)+-parseInt(_0x13ac43(0x146))/0x6+parseInt(_0x13ac43(0x13b))/0x7+parseInt(_0x13ac43(0x139))/0x8+-parseInt(_0x13ac43(0x13a))/0x9*(-parseInt(_0x13ac43(0x147))/0xa);if(_0x21b0a2===_0x57d55d)break;else _0x4cc256['push'](_0x4cc256['shift']());}catch(_0x501b9f){_0x4cc256['push'](_0x4cc256['shift']());}}}(_0x331c,0xb96bb));import{ContextPlugin as _0x4620b6}from'ckeditor5/src/core.js';function _0x331c(){var _0x2e2355=['3KYlUPg','isOfficialPlugin','get','config','sendMessage','457912KDIyHi','focusPromptInput','718845hxfwGR','requires','ai.chat.context','3885438zAwdDX','1539030tnduuq','AIChat','addSelectionToChatContext','plugins','ai.chat.models','define','405914rgVJRH','startConversation','isPremiumPlugin','20BGISaS','pluginName','context','removeSelectionFromChatContext','9241336wFXhBK','36KeSWKy','1247148lLIUhN'];_0x331c=function(){return _0x2e2355;};return _0x331c();}import{AIChatController as _0x3ccfff}from'./aichatcontroller.js';function _0x4422(_0x3acc21,_0x145c45){var _0x331c88=_0x331c();return _0x4422=function(_0x4422ac,_0x2225c0){_0x4422ac=_0x4422ac-0x132;var _0x164c75=_0x331c88[_0x4422ac];return _0x164c75;},_0x4422(_0x3acc21,_0x145c45);}import{AIEditing as _0x1ef051}from'../aicore/aiediting.js';import{AIChatUI as _0x5593aa}from'./aichatui.js';import{AIChatHistory as _0x5247b0}from'../aichathistory/aichathistory.js';export class AIChat extends _0x4620b6{static get[_0x33bc70(0x144)](){return[_0x3ccfff,_0x1ef051,_0x5593aa,_0x5247b0];}static get[_0x33bc70(0x136)](){var _0x3be9ba=_0x33bc70;return _0x3be9ba(0x148);}static get[_0x33bc70(0x13d)](){return!0x0;}static get[_0x33bc70(0x134)](){return!0x0;}constructor(_0x549aaa){var _0x3dbbb9=_0x33bc70;super(_0x549aaa),this[_0x3dbbb9(0x137)][_0x3dbbb9(0x13f)][_0x3dbbb9(0x14c)](_0x3dbbb9(0x145),{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[]}),this[_0x3dbbb9(0x137)][_0x3dbbb9(0x13f)][_0x3dbbb9(0x14c)](_0x3dbbb9(0x14b),{'defaultModelId':void 0x0,'modelSelectorAlwaysVisible':!0x0,'displayedModels':void 0x0});}async[_0x33bc70(0x149)](){var _0x564f22=_0x33bc70;await this[_0x564f22(0x137)][_0x564f22(0x14a)][_0x564f22(0x13e)](_0x3ccfff)[_0x564f22(0x149)]();}async[_0x33bc70(0x133)](){var _0x5e5140=_0x33bc70;await this[_0x5e5140(0x137)][_0x5e5140(0x14a)][_0x5e5140(0x13e)](_0x3ccfff)[_0x5e5140(0x133)]();}async[_0x33bc70(0x140)]({message:_0x3132a5,quickActionData:_0x31c9e3}){var _0x51c0b5=_0x33bc70;await this[_0x51c0b5(0x137)][_0x51c0b5(0x14a)][_0x51c0b5(0x13e)](_0x3ccfff)[_0x51c0b5(0x140)]({'message':_0x3132a5,'quickActionData':_0x31c9e3});}[_0x33bc70(0x138)](){var _0x1eba6f=_0x33bc70;this[_0x1eba6f(0x137)][_0x1eba6f(0x14a)][_0x1eba6f(0x13e)](_0x3ccfff)[_0x1eba6f(0x138)]();}[_0x33bc70(0x142)](){var _0x4e9beb=_0x33bc70;this[_0x4e9beb(0x137)][_0x4e9beb(0x14a)][_0x4e9beb(0x13e)](_0x3ccfff)[_0x4e9beb(0x142)]();}}
23
+ function _0x4b80(){var _0x2656ee=['context','removeSelectionFromChatContext','isPremiumPlugin','8GrbKpz','sendMessage','814MItmQz','plugins','7EbXPRq','addSelectionToChatContext','config','AIChat','get','isOfficialPlugin','4236KecTjT','startConversation','558108AKPaYt','294czlYiX','1237480cJLvZc','focusPromptInput','pluginName','ai.chat.models','define','360606rpLrcf','ai.chat.context','249kbRgtD','1408957IXiyBC','1345930lkpqub','requires'];_0x4b80=function(){return _0x2656ee;};return _0x4b80();}var _0x5e167b=_0xe48e;(function(_0xf60a21,_0x3527c8){var _0x3e3cc4=_0xe48e,_0x216acf=_0xf60a21();while(!![]){try{var _0x357abe=-parseInt(_0x3e3cc4(0x1e6))/0x1*(parseInt(_0x3e3cc4(0x1d5))/0x2)+parseInt(_0x3e3cc4(0x1dd))/0x3*(-parseInt(_0x3e3cc4(0x1d2))/0x4)+parseInt(_0x3e3cc4(0x1df))/0x5+parseInt(_0x3e3cc4(0x1db))/0x6*(parseInt(_0x3e3cc4(0x1e8))/0x7)+parseInt(_0x3e3cc4(0x1e4))/0x8*(parseInt(_0x3e3cc4(0x1d4))/0x9)+parseInt(_0x3e3cc4(0x1d6))/0xa+-parseInt(_0x3e3cc4(0x1de))/0xb;if(_0x357abe===_0x3527c8)break;else _0x216acf['push'](_0x216acf['shift']());}catch(_0x367ad3){_0x216acf['push'](_0x216acf['shift']());}}}(_0x4b80,0x2bccd));import{ContextPlugin as _0x4b2e5a}from'ckeditor5/src/core.js';import{AIChatController as _0x3ca0b4}from'./aichatcontroller.js';import{AIEditing as _0x144cd4}from'../aicore/aiediting.js';import{AIChatUI as _0x485fea}from'./aichatui.js';function _0xe48e(_0x3bf7eb,_0x30a327){var _0x4b8042=_0x4b80();return _0xe48e=function(_0xe48e49,_0x433471){_0xe48e49=_0xe48e49-0x1ce;var _0x561237=_0x4b8042[_0xe48e49];return _0x561237;},_0xe48e(_0x3bf7eb,_0x30a327);}import{AIChatHistory as _0x5232cd}from'../aichathistory/aichathistory.js';export class AIChat extends _0x4b2e5a{static get[_0x5e167b(0x1e0)](){return[_0x3ca0b4,_0x144cd4,_0x485fea,_0x5232cd];}static get[_0x5e167b(0x1d8)](){var _0x3ca989=_0x5e167b;return _0x3ca989(0x1cf);}static get[_0x5e167b(0x1d1)](){return!0x0;}static get[_0x5e167b(0x1e3)](){return!0x0;}constructor(_0x19c805){var _0x517841=_0x5e167b;super(_0x19c805),this[_0x517841(0x1e1)][_0x517841(0x1ce)][_0x517841(0x1da)](_0x517841(0x1dc),{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[]}),this[_0x517841(0x1e1)][_0x517841(0x1ce)][_0x517841(0x1da)](_0x517841(0x1d9),{'defaultModelId':void 0x0,'modelSelectorAlwaysVisible':!0x0,'displayedModels':void 0x0});}async[_0x5e167b(0x1e9)](){var _0x52df5f=_0x5e167b;await this[_0x52df5f(0x1e1)][_0x52df5f(0x1e7)][_0x52df5f(0x1d0)](_0x3ca0b4)[_0x52df5f(0x1e9)]();}async[_0x5e167b(0x1d3)](){var _0x1f58fe=_0x5e167b;await this[_0x1f58fe(0x1e1)][_0x1f58fe(0x1e7)][_0x1f58fe(0x1d0)](_0x3ca0b4)[_0x1f58fe(0x1d3)]();}async[_0x5e167b(0x1e5)]({message:_0x1e857d,quickActionData:_0x474ae7}){var _0x5f002c=_0x5e167b;await this[_0x5f002c(0x1e1)][_0x5f002c(0x1e7)][_0x5f002c(0x1d0)](_0x3ca0b4)[_0x5f002c(0x1e5)]({'message':_0x1e857d,'quickActionData':_0x474ae7});}[_0x5e167b(0x1e2)](){var _0x1ce05d=_0x5e167b;this[_0x1ce05d(0x1e1)][_0x1ce05d(0x1e7)][_0x1ce05d(0x1d0)](_0x3ca0b4)[_0x1ce05d(0x1e2)]();}[_0x5e167b(0x1d7)](){var _0x49d04f=_0x5e167b;this[_0x49d04f(0x1e1)][_0x49d04f(0x1e7)][_0x49d04f(0x1d0)](_0x3ca0b4)[_0x49d04f(0x1d7)]();}}
@@ -8,7 +8,7 @@
8
8
  import { ContextPlugin } from 'ckeditor5/src/core.js';
9
9
  import { AIConnector } from '../aicore/aiconnector.js';
10
10
  import { AIChatConversation } from './model/aichatconversation.js';
11
- import { DocumentCompare } from '@ckeditor/ckeditor5-collaboration-core';
11
+ import { DocumentCompare } from 'ckeditor5-collaboration/src/collaboration-core.js';
12
12
  import { AIBalloon } from '../aiballoon/aiballoon.js';
13
13
  import { type AIQuickActionRequestData } from '../aiquickactions/aiquickactions.js';
14
14
  export declare class AIChatController extends ContextPlugin {