@ckeditor/ckeditor5-ai 47.5.0 → 47.6.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 (515) hide show
  1. package/build/966.ai.js +5 -0
  2. package/build/ai.js +1 -2
  3. package/build/translations/af.js +1 -1
  4. package/build/translations/ar.js +1 -1
  5. package/build/translations/ast.js +1 -1
  6. package/build/translations/az.js +1 -1
  7. package/build/translations/be.js +1 -1
  8. package/build/translations/bg.js +1 -1
  9. package/build/translations/bn.js +1 -1
  10. package/build/translations/bs.js +1 -1
  11. package/build/translations/ca.js +1 -1
  12. package/build/translations/cs.js +1 -1
  13. package/build/translations/da.js +1 -1
  14. package/build/translations/de-ch.js +1 -1
  15. package/build/translations/de.js +1 -1
  16. package/build/translations/el.js +1 -1
  17. package/build/translations/en-au.js +1 -1
  18. package/build/translations/en-gb.js +1 -1
  19. package/build/translations/en.js +1 -0
  20. package/build/translations/eo.js +1 -1
  21. package/build/translations/es-co.js +1 -1
  22. package/build/translations/es.js +1 -1
  23. package/build/translations/et.js +1 -1
  24. package/build/translations/eu.js +1 -1
  25. package/build/translations/fa.js +1 -1
  26. package/build/translations/fi.js +1 -1
  27. package/build/translations/fr.js +1 -1
  28. package/build/translations/gl.js +1 -1
  29. package/build/translations/gu.js +1 -1
  30. package/build/translations/he.js +1 -1
  31. package/build/translations/hi.js +1 -1
  32. package/build/translations/hr.js +1 -1
  33. package/build/translations/hu.js +1 -1
  34. package/build/translations/hy.js +1 -1
  35. package/build/translations/id.js +1 -1
  36. package/build/translations/it.js +1 -1
  37. package/build/translations/ja.js +1 -1
  38. package/build/translations/jv.js +1 -1
  39. package/build/translations/kk.js +1 -1
  40. package/build/translations/km.js +1 -1
  41. package/build/translations/kn.js +1 -1
  42. package/build/translations/ko.js +1 -1
  43. package/build/translations/ku.js +1 -1
  44. package/build/translations/lt.js +1 -1
  45. package/build/translations/lv.js +1 -1
  46. package/build/translations/ms.js +1 -1
  47. package/build/translations/nb.js +1 -1
  48. package/build/translations/ne.js +1 -1
  49. package/build/translations/nl.js +1 -1
  50. package/build/translations/no.js +1 -1
  51. package/build/translations/oc.js +1 -1
  52. package/build/translations/pl.js +1 -1
  53. package/build/translations/pt-br.js +1 -1
  54. package/build/translations/pt.js +1 -1
  55. package/build/translations/ro.js +1 -1
  56. package/build/translations/ru.js +1 -1
  57. package/build/translations/si.js +1 -1
  58. package/build/translations/sk.js +1 -1
  59. package/build/translations/sl.js +1 -1
  60. package/build/translations/sq.js +1 -1
  61. package/build/translations/sr-latn.js +1 -1
  62. package/build/translations/sr.js +1 -1
  63. package/build/translations/sv.js +1 -1
  64. package/build/translations/th.js +1 -1
  65. package/build/translations/ti.js +1 -1
  66. package/build/translations/tk.js +1 -1
  67. package/build/translations/tr.js +1 -1
  68. package/build/translations/tt.js +1 -1
  69. package/build/translations/ug.js +1 -1
  70. package/build/translations/uk.js +1 -1
  71. package/build/translations/ur.js +1 -1
  72. package/build/translations/uz.js +1 -1
  73. package/build/translations/vi.js +1 -1
  74. package/build/translations/zh-cn.js +1 -1
  75. package/build/translations/zh.js +1 -1
  76. package/dist/index-editor.css +387 -403
  77. package/dist/index.css +441 -413
  78. package/dist/index.js +5 -5
  79. package/dist/translations/af.js +1 -1
  80. package/dist/translations/af.umd.js +1 -1
  81. package/dist/translations/ar.js +1 -1
  82. package/dist/translations/ar.umd.js +1 -1
  83. package/dist/translations/ast.js +1 -1
  84. package/dist/translations/ast.umd.js +1 -1
  85. package/dist/translations/az.js +1 -1
  86. package/dist/translations/az.umd.js +1 -1
  87. package/dist/translations/be.js +1 -1
  88. package/dist/translations/be.umd.js +1 -1
  89. package/dist/translations/bg.js +1 -1
  90. package/dist/translations/bg.umd.js +1 -1
  91. package/dist/translations/bn.js +1 -1
  92. package/dist/translations/bn.umd.js +1 -1
  93. package/dist/translations/bs.js +1 -1
  94. package/dist/translations/bs.umd.js +1 -1
  95. package/dist/translations/ca.js +1 -1
  96. package/dist/translations/ca.umd.js +1 -1
  97. package/dist/translations/cs.js +1 -1
  98. package/dist/translations/cs.umd.js +1 -1
  99. package/dist/translations/da.js +1 -1
  100. package/dist/translations/da.umd.js +1 -1
  101. package/dist/translations/de-ch.js +1 -1
  102. package/dist/translations/de-ch.umd.js +1 -1
  103. package/dist/translations/de.js +1 -1
  104. package/dist/translations/de.umd.js +1 -1
  105. package/dist/translations/el.js +1 -1
  106. package/dist/translations/el.umd.js +1 -1
  107. package/dist/translations/en-au.js +1 -1
  108. package/dist/translations/en-au.umd.js +1 -1
  109. package/dist/translations/en-gb.js +1 -1
  110. package/dist/translations/en-gb.umd.js +1 -1
  111. package/dist/translations/en.js +1 -1
  112. package/dist/translations/en.umd.js +1 -1
  113. package/dist/translations/eo.js +1 -1
  114. package/dist/translations/eo.umd.js +1 -1
  115. package/dist/translations/es-co.js +1 -1
  116. package/dist/translations/es-co.umd.js +1 -1
  117. package/dist/translations/es.js +1 -1
  118. package/dist/translations/es.umd.js +1 -1
  119. package/dist/translations/et.js +1 -1
  120. package/dist/translations/et.umd.js +1 -1
  121. package/dist/translations/eu.js +1 -1
  122. package/dist/translations/eu.umd.js +1 -1
  123. package/dist/translations/fa.js +1 -1
  124. package/dist/translations/fa.umd.js +1 -1
  125. package/dist/translations/fi.js +1 -1
  126. package/dist/translations/fi.umd.js +1 -1
  127. package/dist/translations/fr.js +1 -1
  128. package/dist/translations/fr.umd.js +1 -1
  129. package/dist/translations/gl.js +1 -1
  130. package/dist/translations/gl.umd.js +1 -1
  131. package/dist/translations/gu.js +1 -1
  132. package/dist/translations/gu.umd.js +1 -1
  133. package/dist/translations/he.js +1 -1
  134. package/dist/translations/he.umd.js +1 -1
  135. package/dist/translations/hi.js +1 -1
  136. package/dist/translations/hi.umd.js +1 -1
  137. package/dist/translations/hr.js +1 -1
  138. package/dist/translations/hr.umd.js +1 -1
  139. package/dist/translations/hu.js +1 -1
  140. package/dist/translations/hu.umd.js +1 -1
  141. package/dist/translations/hy.js +1 -1
  142. package/dist/translations/hy.umd.js +1 -1
  143. package/dist/translations/id.js +1 -1
  144. package/dist/translations/id.umd.js +1 -1
  145. package/dist/translations/it.js +1 -1
  146. package/dist/translations/it.umd.js +1 -1
  147. package/dist/translations/ja.js +1 -1
  148. package/dist/translations/ja.umd.js +1 -1
  149. package/dist/translations/jv.js +1 -1
  150. package/dist/translations/jv.umd.js +1 -1
  151. package/dist/translations/kk.js +1 -1
  152. package/dist/translations/kk.umd.js +1 -1
  153. package/dist/translations/km.js +1 -1
  154. package/dist/translations/km.umd.js +1 -1
  155. package/dist/translations/kn.js +1 -1
  156. package/dist/translations/kn.umd.js +1 -1
  157. package/dist/translations/ko.js +1 -1
  158. package/dist/translations/ko.umd.js +1 -1
  159. package/dist/translations/ku.js +1 -1
  160. package/dist/translations/ku.umd.js +1 -1
  161. package/dist/translations/lt.js +1 -1
  162. package/dist/translations/lt.umd.js +1 -1
  163. package/dist/translations/lv.js +1 -1
  164. package/dist/translations/lv.umd.js +1 -1
  165. package/dist/translations/ms.js +1 -1
  166. package/dist/translations/ms.umd.js +1 -1
  167. package/dist/translations/nb.js +1 -1
  168. package/dist/translations/nb.umd.js +1 -1
  169. package/dist/translations/ne.js +1 -1
  170. package/dist/translations/ne.umd.js +1 -1
  171. package/dist/translations/nl.js +1 -1
  172. package/dist/translations/nl.umd.js +1 -1
  173. package/dist/translations/no.js +1 -1
  174. package/dist/translations/no.umd.js +1 -1
  175. package/dist/translations/oc.js +1 -1
  176. package/dist/translations/oc.umd.js +1 -1
  177. package/dist/translations/pl.js +1 -1
  178. package/dist/translations/pl.umd.js +1 -1
  179. package/dist/translations/pt-br.js +1 -1
  180. package/dist/translations/pt-br.umd.js +1 -1
  181. package/dist/translations/pt.js +1 -1
  182. package/dist/translations/pt.umd.js +1 -1
  183. package/dist/translations/ro.js +1 -1
  184. package/dist/translations/ro.umd.js +1 -1
  185. package/dist/translations/ru.js +1 -1
  186. package/dist/translations/ru.umd.js +1 -1
  187. package/dist/translations/si.js +1 -1
  188. package/dist/translations/si.umd.js +1 -1
  189. package/dist/translations/sk.js +1 -1
  190. package/dist/translations/sk.umd.js +1 -1
  191. package/dist/translations/sl.js +1 -1
  192. package/dist/translations/sl.umd.js +1 -1
  193. package/dist/translations/sq.js +1 -1
  194. package/dist/translations/sq.umd.js +1 -1
  195. package/dist/translations/sr-latn.js +1 -1
  196. package/dist/translations/sr-latn.umd.js +1 -1
  197. package/dist/translations/sr.js +1 -1
  198. package/dist/translations/sr.umd.js +1 -1
  199. package/dist/translations/sv.js +1 -1
  200. package/dist/translations/sv.umd.js +1 -1
  201. package/dist/translations/th.js +1 -1
  202. package/dist/translations/th.umd.js +1 -1
  203. package/dist/translations/ti.js +1 -1
  204. package/dist/translations/ti.umd.js +1 -1
  205. package/dist/translations/tk.js +1 -1
  206. package/dist/translations/tk.umd.js +1 -1
  207. package/dist/translations/tr.js +1 -1
  208. package/dist/translations/tr.umd.js +1 -1
  209. package/dist/translations/tt.js +1 -1
  210. package/dist/translations/tt.umd.js +1 -1
  211. package/dist/translations/ug.js +1 -1
  212. package/dist/translations/ug.umd.js +1 -1
  213. package/dist/translations/uk.js +1 -1
  214. package/dist/translations/uk.umd.js +1 -1
  215. package/dist/translations/ur.js +1 -1
  216. package/dist/translations/ur.umd.js +1 -1
  217. package/dist/translations/uz.js +1 -1
  218. package/dist/translations/uz.umd.js +1 -1
  219. package/dist/translations/vi.js +1 -1
  220. package/dist/translations/vi.umd.js +1 -1
  221. package/dist/translations/zh-cn.js +1 -1
  222. package/dist/translations/zh-cn.umd.js +1 -1
  223. package/dist/translations/zh.js +1 -1
  224. package/dist/translations/zh.umd.js +1 -1
  225. package/lang/contexts.json +1 -0
  226. package/lang/translations/af.po +8 -4
  227. package/lang/translations/ar.po +8 -4
  228. package/lang/translations/ast.po +8 -4
  229. package/lang/translations/az.po +8 -4
  230. package/lang/translations/be.po +8 -4
  231. package/lang/translations/bg.po +8 -4
  232. package/lang/translations/bn.po +8 -4
  233. package/lang/translations/bs.po +8 -4
  234. package/lang/translations/ca.po +8 -4
  235. package/lang/translations/cs.po +8 -4
  236. package/lang/translations/da.po +8 -4
  237. package/lang/translations/de-ch.po +8 -4
  238. package/lang/translations/de.po +8 -4
  239. package/lang/translations/el.po +8 -4
  240. package/lang/translations/en-au.po +8 -4
  241. package/lang/translations/en-gb.po +8 -4
  242. package/lang/translations/en.po +8 -4
  243. package/lang/translations/eo.po +8 -4
  244. package/lang/translations/es-co.po +8 -4
  245. package/lang/translations/es.po +8 -4
  246. package/lang/translations/et.po +8 -4
  247. package/lang/translations/eu.po +8 -4
  248. package/lang/translations/fa.po +8 -4
  249. package/lang/translations/fi.po +8 -4
  250. package/lang/translations/fr.po +8 -4
  251. package/lang/translations/gl.po +8 -4
  252. package/lang/translations/gu.po +8 -4
  253. package/lang/translations/he.po +8 -4
  254. package/lang/translations/hi.po +8 -4
  255. package/lang/translations/hr.po +8 -4
  256. package/lang/translations/hu.po +8 -4
  257. package/lang/translations/hy.po +8 -4
  258. package/lang/translations/id.po +8 -4
  259. package/lang/translations/it.po +8 -4
  260. package/lang/translations/ja.po +8 -4
  261. package/lang/translations/jv.po +8 -4
  262. package/lang/translations/kk.po +8 -4
  263. package/lang/translations/km.po +8 -4
  264. package/lang/translations/kn.po +8 -4
  265. package/lang/translations/ko.po +8 -4
  266. package/lang/translations/ku.po +8 -4
  267. package/lang/translations/lt.po +8 -4
  268. package/lang/translations/lv.po +8 -4
  269. package/lang/translations/ms.po +8 -4
  270. package/lang/translations/nb.po +8 -4
  271. package/lang/translations/ne.po +8 -4
  272. package/lang/translations/nl.po +8 -4
  273. package/lang/translations/no.po +8 -4
  274. package/lang/translations/oc.po +8 -4
  275. package/lang/translations/pl.po +8 -4
  276. package/lang/translations/pt-br.po +8 -4
  277. package/lang/translations/pt.po +8 -4
  278. package/lang/translations/ro.po +8 -4
  279. package/lang/translations/ru.po +8 -4
  280. package/lang/translations/si.po +8 -4
  281. package/lang/translations/sk.po +8 -4
  282. package/lang/translations/sl.po +8 -4
  283. package/lang/translations/sq.po +8 -4
  284. package/lang/translations/sr-latn.po +8 -4
  285. package/lang/translations/sr.po +8 -4
  286. package/lang/translations/sv.po +8 -4
  287. package/lang/translations/th.po +8 -4
  288. package/lang/translations/ti.po +8 -4
  289. package/lang/translations/tk.po +8 -4
  290. package/lang/translations/tr.po +8 -4
  291. package/lang/translations/tt.po +8 -4
  292. package/lang/translations/ug.po +8 -4
  293. package/lang/translations/uk.po +8 -4
  294. package/lang/translations/ur.po +8 -4
  295. package/lang/translations/uz.po +8 -4
  296. package/lang/translations/vi.po +8 -4
  297. package/lang/translations/zh-cn.po +8 -4
  298. package/lang/translations/zh.po +8 -4
  299. package/package.json +21 -21
  300. package/src/aiactions/aiactions.js +1 -1
  301. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  302. package/src/aiactions/model/aiactionsreply.js +1 -1
  303. package/src/aiassistant/adapters/aiadapter.js +1 -1
  304. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  305. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  306. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  307. package/src/aiassistant/aiassistant.js +1 -1
  308. package/src/aiassistant/aiassistantediting.js +1 -1
  309. package/src/aiassistant/aiassistantui.js +1 -1
  310. package/src/aiassistant/legacyerrors.js +1 -1
  311. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  312. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  313. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  314. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  315. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  316. package/src/aiassistant/ui/form/aiformview.js +1 -1
  317. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  318. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  319. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  320. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  321. package/src/aiassistant/utils/common-translations.js +1 -1
  322. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  323. package/src/aiballoon/aiballoon.js +1 -1
  324. package/src/aiballoon/ui/aiballoonview.js +1 -1
  325. package/src/aichat/aichat.d.ts +12 -8
  326. package/src/aichat/aichat.js +1 -1
  327. package/src/aichat/aichatballoon.js +1 -1
  328. package/src/aichat/aichatcontroller.d.ts +4 -0
  329. package/src/aichat/aichatcontroller.js +1 -1
  330. package/src/aichat/aichatui.d.ts +24 -1
  331. package/src/aichat/aichatui.js +1 -1
  332. package/src/aichat/model/aichatcontext.js +1 -1
  333. package/src/aichat/model/aichatconversation.d.ts +13 -0
  334. package/src/aichat/model/aichatconversation.js +1 -1
  335. package/src/aichat/model/aichatinteraction.js +1 -1
  336. package/src/aichat/ui/aichatballoonview.js +1 -1
  337. package/src/aichat/ui/aichatcontrolsview.d.ts +5 -1
  338. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  339. package/src/aichat/ui/aichatfeedview.d.ts +4 -0
  340. package/src/aichat/ui/aichatfeedview.js +1 -1
  341. package/src/aichat/ui/aichatheaderview.js +1 -1
  342. package/src/aichat/ui/aichatview.js +1 -1
  343. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  344. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  345. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  346. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  347. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  348. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  349. package/src/aichat/ui/controls/aichatpromptinputview.d.ts +5 -0
  350. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  351. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  352. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  353. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  354. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  355. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  356. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  357. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  358. package/src/aichat/ui/feed/aichatfeedcustomelementview.js +1 -1
  359. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  360. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  361. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  362. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  363. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  364. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  365. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  366. package/src/aichat/utils/eventnames.js +1 -1
  367. package/src/aichat/utils/promisequeue.js +1 -1
  368. package/src/aichathistory/aichathistory.js +1 -1
  369. package/src/aichathistory/aichathistorycontroller.js +1 -1
  370. package/src/aichathistory/aichathistoryui.js +1 -1
  371. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  372. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  373. package/src/aichathistory/ui/aichathistorylistitemview.d.ts +1 -1
  374. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  375. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  376. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  377. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  378. package/src/aichatshortcuts/aichatshortcuts.d.ts +324 -0
  379. package/src/aichatshortcuts/aichatshortcuts.js +23 -0
  380. package/src/aichatshortcuts/ui/aichatshortcutsview.d.ts +23 -0
  381. package/src/aichatshortcuts/ui/aichatshortcutsview.js +23 -0
  382. package/src/aichatshortcuts/ui/aichatshortcutview.d.ts +23 -0
  383. package/src/aichatshortcuts/ui/aichatshortcutview.js +23 -0
  384. package/src/aiconfig.d.ts +7 -0
  385. package/src/aicore/aiconnector.js +1 -1
  386. package/src/aicore/aiediting.js +1 -1
  387. package/src/aicore/model/aicapabilities.d.ts +8 -0
  388. package/src/aicore/model/aicapabilities.js +1 -1
  389. package/src/aicore/model/aicontext.d.ts +7 -1
  390. package/src/aicore/model/aicontext.js +1 -1
  391. package/src/aicore/model/aiinteraction.js +1 -1
  392. package/src/aicore/model/aimodels.js +1 -1
  393. package/src/aicore/model/aireply.js +1 -1
  394. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  395. package/src/aicore/pipeline/airesponseparser.js +2 -2
  396. package/src/aicore/ui/aidisclaimerview.js +1 -1
  397. package/src/aicore/ui/aiskeleton.js +1 -1
  398. package/src/aicore/ui/aispinner.js +1 -1
  399. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  400. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  401. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  402. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
  403. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
  404. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
  405. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  406. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  407. package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
  408. package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
  409. package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
  410. package/src/aicore/utils/common-translations.js +1 -1
  411. package/src/aicore/utils/createresizebutton.d.ts +1 -0
  412. package/src/aicore/utils/createresizebutton.js +1 -1
  413. package/src/aicore/utils/documentposition.js +1 -1
  414. package/src/aicore/utils/documentrange.js +1 -1
  415. package/src/aicore/utils/eventnames.js +1 -1
  416. package/src/aicore/utils/geteditorfromcontext.js +1 -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/aicore/utils/scrollmanager.js +1 -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/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
  433. package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
  434. package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
  435. package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
  436. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  437. package/src/aireviewcore/aireviewcorecontroller.js +1 -1
  438. package/src/aireviewcore/aireviewcoreediting.js +1 -1
  439. package/src/aireviewcore/aireviewcoreui.js +1 -1
  440. package/src/aireviewcore/model/aireviewcheck.d.ts +4 -0
  441. package/src/aireviewcore/model/aireviewcheck.js +1 -1
  442. package/src/aireviewcore/model/aireviewchecklist.d.ts +3 -3
  443. package/src/aireviewcore/model/aireviewchecklist.js +1 -1
  444. package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
  445. package/src/aireviewcore/model/aireviewcheckresultchange.js +1 -1
  446. package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
  447. package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
  448. package/src/aireviewcore/types.d.ts +11 -2
  449. package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
  450. package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
  451. package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
  452. package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
  453. package/src/aireviewcore/ui/aireviewcoregeneralerrorview.js +1 -1
  454. package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
  455. package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
  456. package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
  457. package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
  458. package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
  459. package/src/aireviewcore/ui/aireviewcoreview.js +1 -1
  460. package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
  461. package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +1 -1
  462. package/src/aireviewmode/aireviewcheckdefinitions.d.ts +4 -0
  463. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  464. package/src/aireviewmode/aireviewmode.d.ts +95 -0
  465. package/src/aireviewmode/aireviewmode.js +1 -1
  466. package/src/aireviewmode/aireviewmodecontroller.d.ts +5 -0
  467. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  468. package/src/aireviewmode/aireviewmodeui.js +1 -1
  469. package/src/aireviewmode/model/aireviewcheckcustom.d.ts +6 -3
  470. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  471. package/src/aireviewmode/model/aireviewcheckextra.d.ts +35 -0
  472. package/src/aireviewmode/model/aireviewcheckextra.js +23 -0
  473. package/src/aireviewmode/model/aireviewcustomcheckrun.d.ts +2 -1
  474. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  475. package/src/aireviewmode/model/aireviewextracheckrun.d.ts +20 -0
  476. package/src/aireviewmode/model/aireviewextracheckrun.js +23 -0
  477. package/src/aireviewmode/model/aireviewmodechecklist.d.ts +10 -0
  478. package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
  479. package/src/aitabs/aitabs.js +1 -1
  480. package/src/aitabs/aitabsmainview.js +1 -1
  481. package/src/aitabs/tabs/aitabsview.js +1 -1
  482. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  483. package/src/aitabs/tabs/tabpanelview.js +1 -1
  484. package/src/aitranslate/aitranslate.js +1 -1
  485. package/src/aitranslate/aitranslatecontroller.js +1 -1
  486. package/src/aitranslate/aitranslateui.js +1 -1
  487. package/src/aitranslate/model/aitranslatecheck.js +1 -1
  488. package/src/aitranslate/model/aitranslatechecklist.d.ts +5 -0
  489. package/src/aitranslate/model/aitranslatechecklist.js +1 -1
  490. package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
  491. package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
  492. package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
  493. package/src/augmentation.d.ts +2 -0
  494. package/src/errors.js +1 -1
  495. package/src/errorsmap.js +1 -1
  496. package/src/index.d.ts +2 -1
  497. package/src/index.js +1 -1
  498. package/theme/aichat/aichat-controls/aichat-context-controls.css +0 -1
  499. package/theme/aichat/aichat-controls/aichat-controls-button.css +22 -23
  500. package/theme/aichat/aichat-controls/prompt-input.css +23 -0
  501. package/theme/aichat/aichat-controls.css +0 -19
  502. package/theme/aichat/aichathistory.css +1 -1
  503. package/theme/aichat/aiminitoolbar.css +0 -16
  504. package/theme/aichatshortcuts/aichatshortcuts.css +84 -0
  505. package/theme/aieditorintegration/aitogglebutton.css +5 -11
  506. package/theme/aiquickactions/aiquickactions.css +6 -11
  507. package/theme/aiquickactions/aiquickactionsballoon.css +37 -29
  508. package/theme/aireviewcore/aireviewcore-check-run.css +4 -0
  509. package/theme/aireviewcore/aireviewcore.css +4 -4
  510. package/theme/aitabs/aitabsresizebutton.css +14 -0
  511. package/theme/aitranslate/aitranslate.css +4 -0
  512. package/theme/common/aibutton.css +56 -67
  513. package/theme/common/aiheader.css +1 -1
  514. package/theme/common/aisuggestioncontentparttoolbar.css +1 -1
  515. package/theme/common/aisuggestionstreamablecontent.css +4 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2f91cd=_0x50c9;(function(_0x22907d,_0x49ac3c){const _0x2bb404=_0x50c9,_0x2905f1=_0x22907d();while(!![]){try{const _0x447488=-parseInt(_0x2bb404(0x174))/0x1+parseInt(_0x2bb404(0x17f))/0x2+parseInt(_0x2bb404(0x17b))/0x3*(-parseInt(_0x2bb404(0x15e))/0x4)+parseInt(_0x2bb404(0x160))/0x5*(-parseInt(_0x2bb404(0x156))/0x6)+parseInt(_0x2bb404(0x14c))/0x7*(-parseInt(_0x2bb404(0x173))/0x8)+parseInt(_0x2bb404(0x161))/0x9+parseInt(_0x2bb404(0x150))/0xa;if(_0x447488===_0x49ac3c)break;else _0x2905f1['push'](_0x2905f1['shift']());}catch(_0x2f9909){_0x2905f1['push'](_0x2905f1['shift']());}}}(_0x2040,0x78ec6));function _0x2040(){const _0xb3be26=['width','bind','value','submit','Submit','History','resultsView','filteredView','minRows','focusableChildren','enter','requestAnimationFrame','40JmwAfS','883778SqMMDt','queryView','ck-ai-form__toggle-history','excludeScrollbarsAndBorders','maxRows','execute','target','3xPFQON','ck-ai-form__submit','element','render','985854zUtlcH','showHistoryButtonView','keystrokes','isEnabled','rtl','add','_createShowHistoryButton','1222046bPmYFL','isEmpty','window','style','20649360jqKmjQ','set','focusCycler','focus','fire','right','12sspwYe','uiLanguageDirection','_createSubmitButton','focusLast','locale','children','focusFirst','fieldView','3344840XyLeoc','submitButtonView','60745RLJqZE','4991535uOnJau','update','fieldWrapperChildren','isOn','left','isVisible'];_0x2040=function(){return _0xb3be26;};return _0x2040();}import{Rect as _0x4ced94,global as _0x23ce30,isVisible as _0x59fcc8}from'ckeditor5/src/utils.js';import{IconAIHistory as _0x596d35,IconSubmit as _0x536be5}from'ckeditor5/src/icons.js';import{AutocompleteView as _0xb7dfc4,ButtonView as _0x9d13ef}from'ckeditor5/src/ui.js';function _0x50c9(_0x3bc11b,_0x3df145){const _0x2040ff=_0x2040();return _0x50c9=function(_0x50c96b,_0x40fc31){_0x50c96b=_0x50c96b-0x149;let _0x3ed830=_0x2040ff[_0x50c96b];return _0x3ed830;},_0x50c9(_0x3bc11b,_0x3df145);}import{getTranslation as _0x3866ac}from'../../utils/common-translations.js';export class AIFormPromptView extends _0xb7dfc4{[_0x2f91cd(0x15f)];[_0x2f91cd(0x180)];constructor(_0x5f583b,_0x5159ca){const _0x549576=_0x2f91cd;super(_0x5f583b,_0x5159ca),this[_0x549576(0x175)][_0x549576(0x15d)][_0x549576(0x16f)]=0x1,this[_0x549576(0x175)][_0x549576(0x15d)][_0x549576(0x178)]=0x3,this[_0x549576(0x15f)]=this[_0x549576(0x158)](),this[_0x549576(0x180)]=this[_0x549576(0x14b)](),this[_0x549576(0x170)][_0x549576(0x14a)](this[_0x549576(0x180)],0x1),this[_0x549576(0x170)][_0x549576(0x14a)](this[_0x549576(0x15f)]);}[_0x2f91cd(0x17e)](){const _0x26a9ca=_0x2f91cd;super[_0x26a9ca(0x17e)](),this[_0x26a9ca(0x175)][_0x26a9ca(0x163)][_0x26a9ca(0x14a)](this[_0x26a9ca(0x180)]),this[_0x26a9ca(0x15b)][_0x26a9ca(0x14a)](this[_0x26a9ca(0x15f)]),this[_0x26a9ca(0x181)][_0x26a9ca(0x151)](_0x26a9ca(0x171),(_0x5555bc,_0x2773d8)=>{const _0x31693f=_0x26a9ca;_0x5555bc[_0x31693f(0x17a)]==this[_0x31693f(0x175)][_0x31693f(0x15d)][_0x31693f(0x17d)]&&(this[_0x31693f(0x16a)](),_0x2773d8());});}[_0x2f91cd(0x158)](){const _0x59fcbf=_0x2f91cd,_0x4f52cd=new _0x9d13ef(this[_0x59fcbf(0x15a)]),_0x29ec70=this[_0x59fcbf(0x15a)];return _0x4f52cd[_0x59fcbf(0x151)]({'icon':_0x536be5,'label':_0x3866ac(_0x29ec70,_0x59fcbf(0x16b)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x59fcbf(0x17c)}),_0x4f52cd['on'](_0x59fcbf(0x179),()=>{const _0x16c260=_0x59fcbf;this[_0x16c260(0x16a)]();}),_0x4f52cd[_0x59fcbf(0x168)](_0x59fcbf(0x182))['to'](this[_0x59fcbf(0x175)][_0x59fcbf(0x15d)],_0x59fcbf(0x14d),this,_0x59fcbf(0x182),(_0x443286,_0x58c1f7)=>!_0x443286&&_0x58c1f7),_0x4f52cd;}[_0x2f91cd(0x14b)](){const _0x610d93=_0x2f91cd,_0x23c1f6=new _0x9d13ef(this[_0x610d93(0x15a)]),_0x80e74c=this[_0x610d93(0x16d)],_0x65d9c2=this[_0x610d93(0x15a)];_0x23c1f6[_0x610d93(0x151)]({'label':_0x3866ac(_0x65d9c2,_0x610d93(0x16c)),'withText':!0x1,'icon':_0x596d35,'tooltip':!0x0,'tooltipPosition':'sw','class':_0x610d93(0x176)}),_0x23c1f6[_0x610d93(0x168)](_0x610d93(0x164))['to'](_0x80e74c,_0x610d93(0x166)),_0x23c1f6[_0x610d93(0x168)](_0x610d93(0x182))['to'](this,_0x610d93(0x182)),_0x23c1f6['on'](_0x610d93(0x179),()=>{const _0x5a539f=_0x610d93;_0x80e74c[_0x5a539f(0x166)]=!_0x80e74c[_0x5a539f(0x166)],_0x80e74c[_0x5a539f(0x166)]?this[_0x5a539f(0x16e)][_0x5a539f(0x153)]():this[_0x5a539f(0x153)]();});const _0x4a054f=()=>{const _0xde6402=_0x610d93;_0x23ce30[_0xde6402(0x14e)][_0xde6402(0x172)](()=>{const _0x30e92c=_0xde6402;if(_0x59fcc8(this[_0x30e92c(0x17d)])){const _0xaf1f37=new _0x4ced94(this[_0x30e92c(0x175)][_0x30e92c(0x15d)][_0x30e92c(0x17d)]),_0x367bdf=_0xaf1f37[_0x30e92c(0x167)],_0x5f3bc6=_0x30e92c(0x149)===_0x65d9c2[_0x30e92c(0x157)]?_0x30e92c(0x165):_0x30e92c(0x155);_0xaf1f37[_0x30e92c(0x177)](),_0x23c1f6[_0x30e92c(0x17d)][_0x30e92c(0x14f)][_0x5f3bc6]=_0x367bdf-_0xaf1f37[_0x30e92c(0x167)]+0x1+'px';}});};return this[_0x610d93(0x175)][_0x610d93(0x15d)]['on'](_0x610d93(0x162),_0x4a054f),this['on'](_0x610d93(0x17e),_0x4a054f),_0x23c1f6;}[_0x2f91cd(0x16a)](){const _0x576d91=_0x2f91cd,_0x3022f2=this[_0x576d91(0x175)][_0x576d91(0x15d)][_0x576d91(0x17d)][_0x576d91(0x169)];this[_0x576d91(0x154)](_0x576d91(0x16a),_0x3022f2);}[_0x2f91cd(0x153)](_0x180b9d){const _0x44c8d9=_0x2f91cd;-0x1===_0x180b9d?this[_0x44c8d9(0x152)][_0x44c8d9(0x159)]():this[_0x44c8d9(0x152)][_0x44c8d9(0x15c)]();}}
23
+ const _0x20413c=_0xff1c;(function(_0x328152,_0x40b442){const _0x52d2f8=_0xff1c,_0x245801=_0x328152();while(!![]){try{const _0x57b50f=-parseInt(_0x52d2f8(0x73))/0x1*(-parseInt(_0x52d2f8(0xa3))/0x2)+-parseInt(_0x52d2f8(0x8c))/0x3*(parseInt(_0x52d2f8(0x80))/0x4)+parseInt(_0x52d2f8(0xa0))/0x5+-parseInt(_0x52d2f8(0x7d))/0x6+-parseInt(_0x52d2f8(0x98))/0x7+-parseInt(_0x52d2f8(0x7f))/0x8+-parseInt(_0x52d2f8(0x95))/0x9*(-parseInt(_0x52d2f8(0x7b))/0xa);if(_0x57b50f===_0x40b442)break;else _0x245801['push'](_0x245801['shift']());}catch(_0x401283){_0x245801['push'](_0x245801['shift']());}}}(_0x17f5,0x384ed));function _0x17f5(){const _0x45693b=['value','maxRows','enter','isEnabled','uiLanguageDirection','left','isVisible','71271bxmqDz','isOn','fieldWrapperChildren','showHistoryButtonView','_createShowHistoryButton','rtl','bind','window','keystrokes','38169mxdvij','focusCycler','submitButtonView','2613611QrFmNs','resultsView','focusFirst','submit','requestAnimationFrame','isEmpty','render','right','1205750GDJVck','add','fire','6paznmL','fieldView','minRows','_createSubmitButton','set','locale','focusableChildren','ck-ai-form__submit','ck-ai-form__toggle-history','Submit','68821QbCXUX','focusLast','update','focus','width','filteredView','element','execute','710fxrKog','children','331596BNkmLw','style','335472BfzBcR','8jXrrdm','queryView','History','excludeScrollbarsAndBorders','target'];_0x17f5=function(){return _0x45693b;};return _0x17f5();}import{Rect as _0xe401de,global as _0x1a2154,isVisible as _0x42d695}from'ckeditor5/src/utils.js';import{IconAIHistory as _0x6bfc78,IconSubmit as _0x232dff}from'ckeditor5/src/icons.js';import{AutocompleteView as _0x2232af,ButtonView as _0x5cf1ce}from'ckeditor5/src/ui.js';function _0xff1c(_0x24fb73,_0x12d164){const _0x17f59e=_0x17f5();return _0xff1c=function(_0xff1c08,_0x3929b1){_0xff1c08=_0xff1c08-0x70;let _0x3e09d3=_0x17f59e[_0xff1c08];return _0x3e09d3;},_0xff1c(_0x24fb73,_0x12d164);}import{getTranslation as _0x3aeb52}from'../../utils/common-translations.js';export class AIFormPromptView extends _0x2232af{[_0x20413c(0x97)];[_0x20413c(0x8f)];constructor(_0x281861,_0x44cff2){const _0x305831=_0x20413c;super(_0x281861,_0x44cff2),this[_0x305831(0x81)][_0x305831(0xa4)][_0x305831(0xa5)]=0x1,this[_0x305831(0x81)][_0x305831(0xa4)][_0x305831(0x86)]=0x3,this[_0x305831(0x97)]=this[_0x305831(0xa6)](),this[_0x305831(0x8f)]=this[_0x305831(0x90)](),this[_0x305831(0xa9)][_0x305831(0xa1)](this[_0x305831(0x8f)],0x1),this[_0x305831(0xa9)][_0x305831(0xa1)](this[_0x305831(0x97)]);}[_0x20413c(0x9e)](){const _0x478ffa=_0x20413c;super[_0x478ffa(0x9e)](),this[_0x478ffa(0x81)][_0x478ffa(0x8e)][_0x478ffa(0xa1)](this[_0x478ffa(0x8f)]),this[_0x478ffa(0x7c)][_0x478ffa(0xa1)](this[_0x478ffa(0x97)]),this[_0x478ffa(0x94)][_0x478ffa(0xa7)](_0x478ffa(0x87),(_0x37492c,_0x4300ce)=>{const _0x2f5f79=_0x478ffa;_0x37492c[_0x2f5f79(0x84)]==this[_0x2f5f79(0x81)][_0x2f5f79(0xa4)][_0x2f5f79(0x79)]&&(this[_0x2f5f79(0x9b)](),_0x4300ce());});}[_0x20413c(0xa6)](){const _0x171551=_0x20413c,_0xacd7c2=new _0x5cf1ce(this[_0x171551(0xa8)]),_0x2e059b=this[_0x171551(0xa8)];return _0xacd7c2[_0x171551(0xa7)]({'icon':_0x232dff,'label':_0x3aeb52(_0x2e059b,_0x171551(0x72)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x171551(0x70)}),_0xacd7c2['on'](_0x171551(0x7a),()=>{const _0x24a506=_0x171551;this[_0x24a506(0x9b)]();}),_0xacd7c2[_0x171551(0x92)](_0x171551(0x88))['to'](this[_0x171551(0x81)][_0x171551(0xa4)],_0x171551(0x9d),this,_0x171551(0x88),(_0x46c96c,_0x2eaf21)=>!_0x46c96c&&_0x2eaf21),_0xacd7c2;}[_0x20413c(0x90)](){const _0x5944ce=_0x20413c,_0x217a1b=new _0x5cf1ce(this[_0x5944ce(0xa8)]),_0x510d89=this[_0x5944ce(0x99)],_0x430736=this[_0x5944ce(0xa8)];_0x217a1b[_0x5944ce(0xa7)]({'label':_0x3aeb52(_0x430736,_0x5944ce(0x82)),'withText':!0x1,'icon':_0x6bfc78,'tooltip':!0x0,'tooltipPosition':'sw','class':_0x5944ce(0x71)}),_0x217a1b[_0x5944ce(0x92)](_0x5944ce(0x8d))['to'](_0x510d89,_0x5944ce(0x8b)),_0x217a1b[_0x5944ce(0x92)](_0x5944ce(0x88))['to'](this,_0x5944ce(0x88)),_0x217a1b['on'](_0x5944ce(0x7a),()=>{const _0x386887=_0x5944ce;_0x510d89[_0x386887(0x8b)]=!_0x510d89[_0x386887(0x8b)],_0x510d89[_0x386887(0x8b)]?this[_0x386887(0x78)][_0x386887(0x76)]():this[_0x386887(0x76)]();});const _0x33aef=()=>{const _0x34b830=_0x5944ce;_0x1a2154[_0x34b830(0x93)][_0x34b830(0x9c)](()=>{const _0x5db2dc=_0x34b830;if(_0x42d695(this[_0x5db2dc(0x79)])){const _0x1c19b0=new _0xe401de(this[_0x5db2dc(0x81)][_0x5db2dc(0xa4)][_0x5db2dc(0x79)]),_0x50812e=_0x1c19b0[_0x5db2dc(0x77)],_0x2eaf75=_0x5db2dc(0x91)===_0x430736[_0x5db2dc(0x89)]?_0x5db2dc(0x8a):_0x5db2dc(0x9f);_0x1c19b0[_0x5db2dc(0x83)](),_0x217a1b[_0x5db2dc(0x79)][_0x5db2dc(0x7e)][_0x2eaf75]=_0x50812e-_0x1c19b0[_0x5db2dc(0x77)]+0x1+'px';}});};return this[_0x5944ce(0x81)][_0x5944ce(0xa4)]['on'](_0x5944ce(0x75),_0x33aef),this['on'](_0x5944ce(0x9e),_0x33aef),_0x217a1b;}[_0x20413c(0x9b)](){const _0x336d75=_0x20413c,_0x1c9d31=this[_0x336d75(0x81)][_0x336d75(0xa4)][_0x336d75(0x79)][_0x336d75(0x85)];this[_0x336d75(0xa2)](_0x336d75(0x9b),_0x1c9d31);}[_0x20413c(0x76)](_0x33caa9){const _0x3c2eac=_0x20413c;-0x1===_0x33caa9?this[_0x3c2eac(0x96)][_0x3c2eac(0x74)]():this[_0x3c2eac(0x96)][_0x3c2eac(0x9a)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1c5f85=_0x3332;(function(_0x548701,_0x1f3f3d){const _0x1b75a1=_0x3332,_0x1058a4=_0x548701();while(!![]){try{const _0x4ad17d=-parseInt(_0x1b75a1(0x11f))/0x1+-parseInt(_0x1b75a1(0x114))/0x2+parseInt(_0x1b75a1(0x119))/0x3+-parseInt(_0x1b75a1(0x110))/0x4+parseInt(_0x1b75a1(0x115))/0x5+parseInt(_0x1b75a1(0x130))/0x6+parseInt(_0x1b75a1(0x10e))/0x7*(-parseInt(_0x1b75a1(0x116))/0x8);if(_0x4ad17d===_0x1f3f3d)break;else _0x1058a4['push'](_0x1058a4['shift']());}catch(_0x3d4d73){_0x1058a4['push'](_0x1058a4['shift']());}}}(_0x50e6,0x5f9f2));import{ToolbarView as _0x324d7b,ButtonView as _0x441118}from'ckeditor5/src/ui.js';import{getTranslation as _0x2cbbd1}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x1c5f85(0x11b),'INSERT':_0x1c5f85(0x126)};function _0x3332(_0x3c9feb,_0xfcca4d){const _0x50e647=_0x50e6();return _0x3332=function(_0x333281,_0x501c87){_0x333281=_0x333281-0x10e;let _0x1c59e5=_0x50e647[_0x333281];return _0x1c59e5;},_0x3332(_0x3c9feb,_0xfcca4d);}export class AIFormToolbarView extends _0x324d7b{constructor(_0x50548a){const _0x4758f4=_0x1c5f85;super(_0x50548a),this[_0x4758f4(0x12a)](_0x4758f4(0x12b),!0x1),this[_0x4758f4(0x12a)](_0x4758f4(0x118),AIFormToolbarViewMainActionLabel[_0x4758f4(0x128)]),this[_0x4758f4(0x113)]=this[_0x4758f4(0x120)]('',_0x4758f4(0x117)),this[_0x4758f4(0x113)][_0x4758f4(0x11a)](_0x4758f4(0x112))['to'](this,_0x4758f4(0x118),_0x751e41=>_0x2cbbd1(_0x50548a,_0x4758f4(0x111)+_0x751e41[_0x4758f4(0x10f)]()+_0x4758f4(0x11e))),this[_0x4758f4(0x12e)]=this[_0x4758f4(0x120)](_0x2cbbd1(_0x50548a,_0x4758f4(0x12c))),this[_0x4758f4(0x125)]=this[_0x4758f4(0x120)](_0x2cbbd1(_0x50548a,_0x4758f4(0x11c))),this[_0x4758f4(0x124)]=this[_0x4758f4(0x120)](_0x2cbbd1(_0x50548a,_0x4758f4(0x129)));const _0x3e4d26=this[_0x4758f4(0x127)];this[_0x4758f4(0x123)]({'attributes':{'class':[_0x4758f4(0x12f),_0x3e4d26['if'](_0x4758f4(0x12b),_0x4758f4(0x11d),_0xa5b2bd=>!_0xa5b2bd)]}}),this[_0x4758f4(0x12d)][_0x4758f4(0x122)]([this[_0x4758f4(0x113)],this[_0x4758f4(0x12e)],this[_0x4758f4(0x125)],this[_0x4758f4(0x124)]]);}[_0x1c5f85(0x120)](_0x3dae94,_0xc20c93){const _0x2366aa=_0x1c5f85,_0x19af7d=new _0x441118(this[_0x2366aa(0x121)]);return _0x19af7d[_0x2366aa(0x12a)]({'label':_0x3dae94,'class':_0xc20c93||'','isVisible':!0x0,'withText':!0x0}),_0x19af7d;}}function _0x50e6(){const _0x4bbcbd=['items','insertButton','ck-ai-form__toolbar','2531586lmkAly','7NvcYbe','toUpperCase','1554712qbbkCP','AI_','label','replaceButton','263488aLdkUA','2318155CJPcDa','7000vkZOBF','ck-button-action','mainAction','533172MznjOG','bind','replace','Try\x20again','ck-hidden','_CONTENT','150323ArqKbI','_createButton','locale','addMany','extendTemplate','stopButton','tryAgainButton','insert','bindTemplate','REPLACE','Stop','set','isVisible','Insert\x20below'];_0x50e6=function(){return _0x4bbcbd;};return _0x50e6();}
23
+ function _0x459b(_0x1253e3,_0x4f7f6d){const _0x114429=_0x1144();return _0x459b=function(_0x459b44,_0x101a2b){_0x459b44=_0x459b44-0x9a;let _0x1ae0cf=_0x114429[_0x459b44];return _0x1ae0cf;},_0x459b(_0x1253e3,_0x4f7f6d);}const _0x3d28b7=_0x459b;(function(_0x48ad97,_0x173ada){const _0x2074c8=_0x459b,_0x1f5e30=_0x48ad97();while(!![]){try{const _0x7265e4=parseInt(_0x2074c8(0xb8))/0x1*(-parseInt(_0x2074c8(0x9c))/0x2)+-parseInt(_0x2074c8(0xb4))/0x3+-parseInt(_0x2074c8(0xaf))/0x4+-parseInt(_0x2074c8(0x9f))/0x5*(parseInt(_0x2074c8(0xb0))/0x6)+parseInt(_0x2074c8(0x9a))/0x7*(parseInt(_0x2074c8(0xab))/0x8)+-parseInt(_0x2074c8(0xae))/0x9+-parseInt(_0x2074c8(0xa1))/0xa*(-parseInt(_0x2074c8(0xa8))/0xb);if(_0x7265e4===_0x173ada)break;else _0x1f5e30['push'](_0x1f5e30['shift']());}catch(_0x357195){_0x1f5e30['push'](_0x1f5e30['shift']());}}}(_0x1144,0x7ba59));import{ToolbarView as _0x1ea80b,ButtonView as _0x308299}from'ckeditor5/src/ui.js';import{getTranslation as _0xae66a7}from'../../utils/common-translations.js';function _0x1144(){const _0x500662=['96wukekQ','REPLACE','tryAgainButton','Try\x20again','2110785xIWKUN','mainAction','bind','replace','2gcydKe','ck-button-action','_CONTENT','items','isVisible','locale','insertButton','stopButton','14VHMEnL','bindTemplate','419168krFaQa','_createButton','insert','150435FZMOGK','ck-ai-form__toolbar','20BRHmDR','ck-hidden','label','addMany','extendTemplate','AI_','Stop','14710443rVzhJb','toUpperCase','Insert\x20below','2361896dqCnSd','replaceButton','set','4580739iIWsZd','2582068mFeJhR'];_0x1144=function(){return _0x500662;};return _0x1144();}export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x3d28b7(0xb7),'INSERT':_0x3d28b7(0x9e)};export class AIFormToolbarView extends _0x1ea80b{constructor(_0x23c92b){const _0x28902f=_0x3d28b7;super(_0x23c92b),this[_0x28902f(0xad)](_0x28902f(0xbc),!0x1),this[_0x28902f(0xad)](_0x28902f(0xb5),AIFormToolbarViewMainActionLabel[_0x28902f(0xb1)]),this[_0x28902f(0xac)]=this[_0x28902f(0x9d)]('',_0x28902f(0xb9)),this[_0x28902f(0xac)][_0x28902f(0xb6)](_0x28902f(0xa3))['to'](this,_0x28902f(0xb5),_0x52df55=>_0xae66a7(_0x23c92b,_0x28902f(0xa6)+_0x52df55[_0x28902f(0xa9)]()+_0x28902f(0xba))),this[_0x28902f(0xbe)]=this[_0x28902f(0x9d)](_0xae66a7(_0x23c92b,_0x28902f(0xaa))),this[_0x28902f(0xb2)]=this[_0x28902f(0x9d)](_0xae66a7(_0x23c92b,_0x28902f(0xb3))),this[_0x28902f(0xbf)]=this[_0x28902f(0x9d)](_0xae66a7(_0x23c92b,_0x28902f(0xa7)));const _0x3aff40=this[_0x28902f(0x9b)];this[_0x28902f(0xa5)]({'attributes':{'class':[_0x28902f(0xa0),_0x3aff40['if'](_0x28902f(0xbc),_0x28902f(0xa2),_0x519543=>!_0x519543)]}}),this[_0x28902f(0xbb)][_0x28902f(0xa4)]([this[_0x28902f(0xac)],this[_0x28902f(0xbe)],this[_0x28902f(0xb2)],this[_0x28902f(0xbf)]]);}[_0x3d28b7(0x9d)](_0x50952d,_0x28b209){const _0x535f74=_0x3d28b7,_0x4eb3eb=new _0x308299(this[_0x535f74(0xbd)]);return _0x4eb3eb[_0x535f74(0xad)]({'label':_0x50952d,'class':_0x28b209||'','isVisible':!0x0,'withText':!0x0}),_0x4eb3eb;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x34c6(_0x4ddb0f,_0x4db338){const _0x2a5031=_0x2a50();return _0x34c6=function(_0x34c62c,_0x546890){_0x34c62c=_0x34c62c-0x116;let _0x101fe1=_0x2a5031[_0x34c62c];return _0x101fe1;},_0x34c6(_0x4ddb0f,_0x4db338);}const _0x3c8328=_0x34c6;(function(_0x3da487,_0x2b2515){const _0x3e161b=_0x34c6,_0x430f9a=_0x3da487();while(!![]){try{const _0x70566=parseInt(_0x3e161b(0x162))/0x1+parseInt(_0x3e161b(0x146))/0x2*(parseInt(_0x3e161b(0x157))/0x3)+-parseInt(_0x3e161b(0x166))/0x4*(parseInt(_0x3e161b(0x12e))/0x5)+-parseInt(_0x3e161b(0x140))/0x6+-parseInt(_0x3e161b(0x153))/0x7+-parseInt(_0x3e161b(0x14a))/0x8+parseInt(_0x3e161b(0x151))/0x9*(parseInt(_0x3e161b(0x11c))/0xa);if(_0x70566===_0x2b2515)break;else _0x430f9a['push'](_0x430f9a['shift']());}catch(_0x48d098){_0x430f9a['push'](_0x430f9a['shift']());}}}(_0x2a50,0x4c6c3));import{FocusTracker as _0x5e138c,KeystrokeHandler as _0x1b9faa}from'ckeditor5/src/utils.js';import{View as _0x4959b2,FocusCycler as _0xebc91d,createLabeledTextarea as _0x9c757e}from'ckeditor5/src/ui.js';import{AIFormToolbarView as _0x332cc2,AIFormToolbarViewMainActionLabel as _0x22d2e1}from'./aiformtoolbarview.js';import{AIFormContentArea as _0x1f8274}from'./aiformcontentarea.js';import{AIFormErrorView as _0x4cc35c}from'./aiformerrorview.js';function _0x2a50(){const _0x258265=['shift\x20+\x20tab','focus','locale','focusTracker','replaceButton','_createHistoryView','promptView','2662600QtcmRg','tryAgainEvent','_promptHistory','div','prompt','isVisible','_createToolbar','render','stopProcessing','value','errorView','ck-ai-form-content','tab','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','_focusables','ck-hidden','isProcessing','REPLACE','96765PpCPCC','add','trim','AI_ERROR_FAILED','insertButton','fire','delegate','finishProcessing','queryView','_createPromptView','bind','tryAgainButton','focusFirst','createCollection','clearHistory','keystrokes','label','reset','608472iqoBqg','search','element','stopButton','insertContentBelow','high','891578PsHoPM','items','replaceContent','chain','4667576djJKgT','startProcessing','isError','handleError','copyButtonView','text','submitPrompt','18VhkUYi','submit','607306fSgIfu','mainAction','Ask\x20AI\x20to\x20improve\x20generated\x20text','execute','3zbNisd','bindTemplate','isEnabled','clear','bindTo','set','focusLast','setTemplate','Empty\x20history','fieldView','focusCycler','203100VDFXcr','toolbar','Ask\x20AI\x20to\x20edit\x20or\x20generate','listenTo','20DGBFXT','ck-ai-form','historyGroupView','contentArea'];_0x2a50=function(){return _0x258265;};return _0x2a50();}import{AIFormPromptView as _0x48c04a}from'./aiformpromptview.js';import{AIHistoryListView as _0x390594}from'./aihistorylistview.js';import{AIHistoryListItemView as _0x4bf6c2}from'./aihistorylistitemview.js';import{PromptHistory as _0x5772a2}from'./prompthistory.js';import{getTranslation as _0x352912}from'../../utils/common-translations.js';import{escape as _0x2114dd}from'es-toolkit/compat';export class AIFormView extends _0x4959b2{[_0x3c8328(0x118)];[_0x3c8328(0x13d)];[_0x3c8328(0x169)];[_0x3c8328(0x163)];[_0x3c8328(0x11b)];[_0x3c8328(0x126)];[_0x3c8328(0x12a)];[_0x3c8328(0x161)];[_0x3c8328(0x11e)];constructor(_0x4a9886,_0x631b86,_0xaf5df9=''){const _0x2aa9e9=_0x3c8328;super(_0x4a9886),this[_0x2aa9e9(0x15c)](_0x2aa9e9(0x159),!0x0),this[_0x2aa9e9(0x15c)](_0x2aa9e9(0x12c),!0x1),this[_0x2aa9e9(0x15c)](_0x2aa9e9(0x120),''),this[_0x2aa9e9(0x15c)](_0x2aa9e9(0x125),''),this[_0x2aa9e9(0x15c)](_0x2aa9e9(0x14c),!0x1),this[_0x2aa9e9(0x15c)](_0x2aa9e9(0x154),_0x22d2e1[_0x2aa9e9(0x12d)]),this[_0x2aa9e9(0x11e)]=new _0x5772a2(),this[_0x2aa9e9(0x126)]=new _0x4cc35c(_0x4a9886),this[_0x2aa9e9(0x169)]=new _0x1f8274(_0x4a9886,_0xaf5df9),this[_0x2aa9e9(0x169)][_0x2aa9e9(0x138)](_0x2aa9e9(0x12c))['to'](this),this[_0x2aa9e9(0x169)][_0x2aa9e9(0x138)](_0x2aa9e9(0x125))['to'](this),this[_0x2aa9e9(0x163)]=this[_0x2aa9e9(0x122)](),this[_0x2aa9e9(0x163)][_0x2aa9e9(0x138)](_0x2aa9e9(0x154))['to'](this),this[_0x2aa9e9(0x11b)]=this[_0x2aa9e9(0x137)](),this[_0x2aa9e9(0x118)]=new _0x5e138c(),this[_0x2aa9e9(0x13d)]=new _0x1b9faa(),this[_0x2aa9e9(0x12a)]=this[_0x2aa9e9(0x13b)]([this[_0x2aa9e9(0x169)],this[_0x2aa9e9(0x169)][_0x2aa9e9(0x14e)],this[_0x2aa9e9(0x163)],this[_0x2aa9e9(0x11b)]]),this[_0x2aa9e9(0x161)]=new _0xebc91d({'focusables':this[_0x2aa9e9(0x12a)],'focusTracker':this[_0x2aa9e9(0x118)],'keystrokeHandler':this[_0x2aa9e9(0x13d)],'actions':{'focusPrevious':_0x2aa9e9(0x16a),'focusNext':_0x2aa9e9(0x128)}}),this[_0x2aa9e9(0x161)][_0x2aa9e9(0x149)](this[_0x2aa9e9(0x11b)][_0x2aa9e9(0x161)]),this[_0x2aa9e9(0x11b)][_0x2aa9e9(0x136)][_0x2aa9e9(0x160)][_0x2aa9e9(0x138)](_0x2aa9e9(0x125))['to'](this,_0x2aa9e9(0x120));const _0x10960a=this[_0x2aa9e9(0x158)];this[_0x2aa9e9(0x15e)]({'tag':_0x2aa9e9(0x11f),'attributes':{'class':['ck',_0x2aa9e9(0x167),_0x631b86],'tabindex':'-1'},'children':[{'tag':_0x2aa9e9(0x11f),'attributes':{'class':['ck',_0x2aa9e9(0x127)]},'children':[{'tag':_0x2aa9e9(0x11f),'attributes':{'class':[_0x10960a['if'](_0x2aa9e9(0x14c),_0x2aa9e9(0x12b),_0x134f34=>!_0x134f34)]},'children':[this[_0x2aa9e9(0x126)]]},this[_0x2aa9e9(0x169)],this[_0x2aa9e9(0x163)],this[_0x2aa9e9(0x11b)]]}]});}[_0x3c8328(0x123)](){const _0x574171=_0x3c8328;super[_0x574171(0x123)](),this[_0x574171(0x118)][_0x574171(0x12f)](this[_0x574171(0x169)][_0x574171(0x142)]),this[_0x574171(0x118)][_0x574171(0x12f)](this[_0x574171(0x169)][_0x574171(0x14e)][_0x574171(0x142)]),this[_0x574171(0x118)][_0x574171(0x12f)](this[_0x574171(0x163)][_0x574171(0x142)]),this[_0x574171(0x118)][_0x574171(0x12f)](this[_0x574171(0x11b)][_0x574171(0x142)]),this[_0x574171(0x13d)][_0x574171(0x165)](this[_0x574171(0x142)]);}[_0x3c8328(0x116)](_0x3d9c1b=0x1){const _0x937cdf=_0x3c8328;-0x1===_0x3d9c1b?this[_0x937cdf(0x161)][_0x937cdf(0x15d)]():this[_0x937cdf(0x161)][_0x937cdf(0x13a)]();}[_0x3c8328(0x13f)](){const _0x49756e=_0x3c8328;this[_0x49756e(0x120)]='',this[_0x49756e(0x125)]='',this[_0x49756e(0x14c)]=!0x1,this[_0x49756e(0x11b)][_0x49756e(0x13f)](),this[_0x49756e(0x169)][_0x49756e(0x121)]=!0x1,this[_0x49756e(0x163)][_0x49756e(0x121)]=!0x1;}[_0x3c8328(0x137)](){const _0x1437de=_0x3c8328,_0x372d9f=this[_0x1437de(0x117)],_0x1b93ca=new _0x48c04a(_0x372d9f,{'queryView':{'label':_0x352912(_0x372d9f,_0x1437de(0x164)),'creator':_0x9c757e,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x352912(_0x372d9f,_0x1437de(0x15f)),'secondary':_0x352912(_0x372d9f,_0x1437de(0x129))}}},'filteredView':this[_0x1437de(0x11a)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x1b93ca[_0x1437de(0x138)](_0x1437de(0x159))['to'](this,_0x1437de(0x159),this,_0x1437de(0x12c),(_0x550349,_0x139952)=>_0x550349&&!_0x139952),this[_0x1437de(0x165)](_0x1b93ca,_0x1437de(0x152),(_0x5b4c6f,_0x1f1eb0)=>{const _0x25c4c5=_0x1437de;this[_0x25c4c5(0x120)]=_0x1f1eb0;const _0x57952f=_0x2114dd(_0x1f1eb0);this[_0x25c4c5(0x133)](_0x25c4c5(0x150),_0x57952f),_0x1f1eb0[_0x25c4c5(0x130)]()&&this[_0x25c4c5(0x11e)][_0x25c4c5(0x12f)]({'prompt':_0x57952f},0x0);},{'priority':_0x1437de(0x145)}),_0x1b93ca;}[_0x3c8328(0x11a)](){const _0x428077=_0x3c8328,_0x29696d=new _0x390594(this[_0x428077(0x117)]);return _0x29696d[_0x428077(0x168)][_0x428077(0x147)][_0x428077(0x15b)](this[_0x428077(0x11e)])['as'](_0x4bf6c2),_0x29696d['on'](_0x428077(0x13c),()=>{const _0x773b9=_0x428077;this[_0x773b9(0x11e)][_0x773b9(0x15a)](),this[_0x773b9(0x11b)][_0x773b9(0x141)](''),this[_0x773b9(0x11b)][_0x773b9(0x116)]();}),_0x29696d;}[_0x3c8328(0x122)](){const _0x37aa6d=_0x3c8328,_0x5526c7=new _0x332cc2(this[_0x37aa6d(0x117)]);return _0x5526c7[_0x37aa6d(0x119)][_0x37aa6d(0x138)](_0x37aa6d(0x159))['to'](this,_0x37aa6d(0x159),this,_0x37aa6d(0x12c),this,_0x37aa6d(0x125),(_0x44bd11,_0x525e24,_0x26f97e)=>_0x44bd11&&!_0x525e24&&!!_0x26f97e),_0x5526c7[_0x37aa6d(0x119)][_0x37aa6d(0x134)](_0x37aa6d(0x156))['to'](this,_0x37aa6d(0x148)),_0x5526c7[_0x37aa6d(0x132)][_0x37aa6d(0x138)](_0x37aa6d(0x159))['to'](this,_0x37aa6d(0x159),this,_0x37aa6d(0x12c),this,_0x37aa6d(0x125),(_0x2ac484,_0x117001,_0x25fb86)=>_0x2ac484&&!_0x117001&&!!_0x25fb86),_0x5526c7[_0x37aa6d(0x132)][_0x37aa6d(0x134)](_0x37aa6d(0x156))['to'](this,_0x37aa6d(0x144)),_0x5526c7[_0x37aa6d(0x139)][_0x37aa6d(0x138)](_0x37aa6d(0x159))['to'](this,_0x37aa6d(0x159),this,_0x37aa6d(0x12c),(_0x53bc2d,_0x3fb950)=>_0x53bc2d&&!_0x3fb950),_0x5526c7[_0x37aa6d(0x139)][_0x37aa6d(0x134)](_0x37aa6d(0x156))['to'](this,_0x37aa6d(0x11d)),_0x5526c7[_0x37aa6d(0x143)][_0x37aa6d(0x138)](_0x37aa6d(0x159))['to'](this,_0x37aa6d(0x12c)),_0x5526c7[_0x37aa6d(0x143)][_0x37aa6d(0x134)](_0x37aa6d(0x156))['to'](this,_0x37aa6d(0x124)),_0x5526c7;}[_0x3c8328(0x14b)](){const _0x48fa23=_0x3c8328;this[_0x48fa23(0x125)]='',this[_0x48fa23(0x14c)]=!0x1,this[_0x48fa23(0x12c)]=!0x0,this[_0x48fa23(0x169)][_0x48fa23(0x121)]=!0x0,this[_0x48fa23(0x163)][_0x48fa23(0x121)]=!0x0,this[_0x48fa23(0x169)][_0x48fa23(0x116)]();}[_0x3c8328(0x135)](){const _0x159697=_0x3c8328,_0x400165=this[_0x159697(0x117)];this[_0x159697(0x12c)]=!0x1,this[_0x159697(0x120)]='',this[_0x159697(0x11b)][_0x159697(0x13f)](),this[_0x159697(0x125)]&&(this[_0x159697(0x11b)][_0x159697(0x136)][_0x159697(0x13e)]=_0x352912(_0x400165,_0x159697(0x155)));}[_0x3c8328(0x14d)](_0x4ea5d1){const _0x25fb6a=_0x3c8328,_0x29988c=this[_0x25fb6a(0x117)];this[_0x25fb6a(0x135)](),this[_0x25fb6a(0x14c)]=!0x0,this[_0x25fb6a(0x126)][_0x25fb6a(0x14f)]=_0x4ea5d1||_0x352912(_0x29988c,_0x25fb6a(0x131)),this[_0x25fb6a(0x125)]||(this[_0x25fb6a(0x169)][_0x25fb6a(0x121)]=!0x1);}}
23
+ const _0x463985=_0x36b5;(function(_0x46a8b6,_0x37d8fd){const _0x25db91=_0x36b5,_0x5687b0=_0x46a8b6();while(!![]){try{const _0xe05745=parseInt(_0x25db91(0x1d5))/0x1+parseInt(_0x25db91(0x1cc))/0x2+parseInt(_0x25db91(0x1d7))/0x3+-parseInt(_0x25db91(0x1c8))/0x4*(parseInt(_0x25db91(0x1f0))/0x5)+-parseInt(_0x25db91(0x1ad))/0x6+parseInt(_0x25db91(0x1c2))/0x7+-parseInt(_0x25db91(0x1c5))/0x8;if(_0xe05745===_0x37d8fd)break;else _0x5687b0['push'](_0x5687b0['shift']());}catch(_0x5444a1){_0x5687b0['push'](_0x5687b0['shift']());}}}(_0x7cc2,0x45257));import{FocusTracker as _0x26e218,KeystrokeHandler as _0x2fb424}from'ckeditor5/src/utils.js';import{View as _0x3bcaff,FocusCycler as _0x1ac9c5,createLabeledTextarea as _0x2b38fe}from'ckeditor5/src/ui.js';import{AIFormToolbarView as _0x1e24ea,AIFormToolbarViewMainActionLabel as _0x280966}from'./aiformtoolbarview.js';import{AIFormContentArea as _0x2ab765}from'./aiformcontentarea.js';import{AIFormErrorView as _0x1216bf}from'./aiformerrorview.js';function _0x36b5(_0x1198cc,_0x5a3d95){const _0x7cc231=_0x7cc2();return _0x36b5=function(_0x36b530,_0x5af913){_0x36b530=_0x36b530-0x1a6;let _0x46ae38=_0x7cc231[_0x36b530];return _0x46ae38;},_0x36b5(_0x1198cc,_0x5a3d95);}import{AIFormPromptView as _0x340508}from'./aiformpromptview.js';function _0x7cc2(){const _0x14a35b=['errorView','_createToolbar','listenTo','insertButton','trim','ck-ai-form','label','tryAgainEvent','keystrokes','clearHistory','element','mainAction','delegate','render','isProcessing','2031806CsjmLh','Ask\x20AI\x20to\x20improve\x20generated\x20text','replaceButton','873184HRNsCy','_createHistoryView','Empty\x20history','1396780KmLDKy','copyButtonView','startProcessing','createCollection','648314hlCjjn','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','div','contentArea','stopButton','high','fire','_promptHistory','focusFirst','146346PJiKfS','search','281154yUpqlH','tryAgainButton','add','promptView','replaceContent','AI_ERROR_FAILED','stopProcessing','value','focusCycler','queryView','historyGroupView','bindTo','REPLACE','submit','focusLast','submitPrompt','tab','shift\x20+\x20tab','ck-hidden','finishProcessing','text','execute','reset','set','handleError','5kVARDe','items','toolbar','chain','_focusables','setTemplate','ck-ai-form-content','bindTemplate','isEnabled','clear','locale','isError','focusTracker','insertContentBelow','bind','_createPromptView','677478LRHSae','isVisible','prompt','Ask\x20AI\x20to\x20edit\x20or\x20generate','focus','fieldView'];_0x7cc2=function(){return _0x14a35b;};return _0x7cc2();}import{AIHistoryListView as _0x109122}from'./aihistorylistview.js';import{AIHistoryListItemView as _0x9611c1}from'./aihistorylistitemview.js';import{PromptHistory as _0x160f6a}from'./prompthistory.js';import{getTranslation as _0x353fae}from'../../utils/common-translations.js';import{escape as _0x42cd64}from'es-toolkit/compat';export class AIFormView extends _0x3bcaff{[_0x463985(0x1a9)];[_0x463985(0x1bb)];[_0x463985(0x1cf)];[_0x463985(0x1f2)];[_0x463985(0x1da)];[_0x463985(0x1b3)];[_0x463985(0x1f4)];[_0x463985(0x1df)];[_0x463985(0x1d3)];constructor(_0x28b400,_0x63d870,_0x518f23=''){const _0x3f198b=_0x463985;super(_0x28b400),this[_0x3f198b(0x1ee)](_0x3f198b(0x1f8),!0x0),this[_0x3f198b(0x1ee)](_0x3f198b(0x1c1),!0x1),this[_0x3f198b(0x1ee)](_0x3f198b(0x1af),''),this[_0x3f198b(0x1ee)](_0x3f198b(0x1de),''),this[_0x3f198b(0x1ee)](_0x3f198b(0x1a8),!0x1),this[_0x3f198b(0x1ee)](_0x3f198b(0x1be),_0x280966[_0x3f198b(0x1e3)]),this[_0x3f198b(0x1d3)]=new _0x160f6a(),this[_0x3f198b(0x1b3)]=new _0x1216bf(_0x28b400),this[_0x3f198b(0x1cf)]=new _0x2ab765(_0x28b400,_0x518f23),this[_0x3f198b(0x1cf)][_0x3f198b(0x1ab)](_0x3f198b(0x1c1))['to'](this),this[_0x3f198b(0x1cf)][_0x3f198b(0x1ab)](_0x3f198b(0x1de))['to'](this),this[_0x3f198b(0x1f2)]=this[_0x3f198b(0x1b4)](),this[_0x3f198b(0x1f2)][_0x3f198b(0x1ab)](_0x3f198b(0x1be))['to'](this),this[_0x3f198b(0x1da)]=this[_0x3f198b(0x1ac)](),this[_0x3f198b(0x1a9)]=new _0x26e218(),this[_0x3f198b(0x1bb)]=new _0x2fb424(),this[_0x3f198b(0x1f4)]=this[_0x3f198b(0x1cb)]([this[_0x3f198b(0x1cf)],this[_0x3f198b(0x1cf)][_0x3f198b(0x1c9)],this[_0x3f198b(0x1f2)],this[_0x3f198b(0x1da)]]),this[_0x3f198b(0x1df)]=new _0x1ac9c5({'focusables':this[_0x3f198b(0x1f4)],'focusTracker':this[_0x3f198b(0x1a9)],'keystrokeHandler':this[_0x3f198b(0x1bb)],'actions':{'focusPrevious':_0x3f198b(0x1e8),'focusNext':_0x3f198b(0x1e7)}}),this[_0x3f198b(0x1df)][_0x3f198b(0x1f3)](this[_0x3f198b(0x1da)][_0x3f198b(0x1df)]),this[_0x3f198b(0x1da)][_0x3f198b(0x1e0)][_0x3f198b(0x1b2)][_0x3f198b(0x1ab)](_0x3f198b(0x1de))['to'](this,_0x3f198b(0x1af));const _0x3c54c5=this[_0x3f198b(0x1f7)];this[_0x3f198b(0x1f5)]({'tag':_0x3f198b(0x1ce),'attributes':{'class':['ck',_0x3f198b(0x1b8),_0x63d870],'tabindex':'-1'},'children':[{'tag':_0x3f198b(0x1ce),'attributes':{'class':['ck',_0x3f198b(0x1f6)]},'children':[{'tag':_0x3f198b(0x1ce),'attributes':{'class':[_0x3c54c5['if'](_0x3f198b(0x1a8),_0x3f198b(0x1e9),_0x10b8fd=>!_0x10b8fd)]},'children':[this[_0x3f198b(0x1b3)]]},this[_0x3f198b(0x1cf)],this[_0x3f198b(0x1f2)],this[_0x3f198b(0x1da)]]}]});}[_0x463985(0x1c0)](){const _0x5d2e16=_0x463985;super[_0x5d2e16(0x1c0)](),this[_0x5d2e16(0x1a9)][_0x5d2e16(0x1d9)](this[_0x5d2e16(0x1cf)][_0x5d2e16(0x1bd)]),this[_0x5d2e16(0x1a9)][_0x5d2e16(0x1d9)](this[_0x5d2e16(0x1cf)][_0x5d2e16(0x1c9)][_0x5d2e16(0x1bd)]),this[_0x5d2e16(0x1a9)][_0x5d2e16(0x1d9)](this[_0x5d2e16(0x1f2)][_0x5d2e16(0x1bd)]),this[_0x5d2e16(0x1a9)][_0x5d2e16(0x1d9)](this[_0x5d2e16(0x1da)][_0x5d2e16(0x1bd)]),this[_0x5d2e16(0x1bb)][_0x5d2e16(0x1b5)](this[_0x5d2e16(0x1bd)]);}[_0x463985(0x1b1)](_0x2cdc14=0x1){const _0xfc4704=_0x463985;-0x1===_0x2cdc14?this[_0xfc4704(0x1df)][_0xfc4704(0x1e5)]():this[_0xfc4704(0x1df)][_0xfc4704(0x1d4)]();}[_0x463985(0x1ed)](){const _0x4806f1=_0x463985;this[_0x4806f1(0x1af)]='',this[_0x4806f1(0x1de)]='',this[_0x4806f1(0x1a8)]=!0x1,this[_0x4806f1(0x1da)][_0x4806f1(0x1ed)](),this[_0x4806f1(0x1cf)][_0x4806f1(0x1ae)]=!0x1,this[_0x4806f1(0x1f2)][_0x4806f1(0x1ae)]=!0x1;}[_0x463985(0x1ac)](){const _0x4d087b=_0x463985,_0x39a7bd=this[_0x4d087b(0x1a7)],_0x442db2=new _0x340508(_0x39a7bd,{'queryView':{'label':_0x353fae(_0x39a7bd,_0x4d087b(0x1b0)),'creator':_0x2b38fe,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x353fae(_0x39a7bd,_0x4d087b(0x1c7)),'secondary':_0x353fae(_0x39a7bd,_0x4d087b(0x1cd))}}},'filteredView':this[_0x4d087b(0x1c6)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x442db2[_0x4d087b(0x1ab)](_0x4d087b(0x1f8))['to'](this,_0x4d087b(0x1f8),this,_0x4d087b(0x1c1),(_0x2bf2b1,_0x4c34e4)=>_0x2bf2b1&&!_0x4c34e4),this[_0x4d087b(0x1b5)](_0x442db2,_0x4d087b(0x1e4),(_0x227aab,_0x1216fa)=>{const _0x24fcdf=_0x4d087b;this[_0x24fcdf(0x1af)]=_0x1216fa;const _0xdc730c=_0x42cd64(_0x1216fa);this[_0x24fcdf(0x1d2)](_0x24fcdf(0x1e6),_0xdc730c),_0x1216fa[_0x24fcdf(0x1b7)]()&&this[_0x24fcdf(0x1d3)][_0x24fcdf(0x1d9)]({'prompt':_0xdc730c},0x0);},{'priority':_0x4d087b(0x1d1)}),_0x442db2;}[_0x463985(0x1c6)](){const _0x35f5a2=_0x463985,_0x598834=new _0x109122(this[_0x35f5a2(0x1a7)]);return _0x598834[_0x35f5a2(0x1e1)][_0x35f5a2(0x1f1)][_0x35f5a2(0x1e2)](this[_0x35f5a2(0x1d3)])['as'](_0x9611c1),_0x598834['on'](_0x35f5a2(0x1bc),()=>{const _0x13a25e=_0x35f5a2;this[_0x13a25e(0x1d3)][_0x13a25e(0x1a6)](),this[_0x13a25e(0x1da)][_0x13a25e(0x1d6)](''),this[_0x13a25e(0x1da)][_0x13a25e(0x1b1)]();}),_0x598834;}[_0x463985(0x1b4)](){const _0x193d4=_0x463985,_0x384a07=new _0x1e24ea(this[_0x193d4(0x1a7)]);return _0x384a07[_0x193d4(0x1c4)][_0x193d4(0x1ab)](_0x193d4(0x1f8))['to'](this,_0x193d4(0x1f8),this,_0x193d4(0x1c1),this,_0x193d4(0x1de),(_0x5b55c7,_0x2fcd4d,_0x43fe5d)=>_0x5b55c7&&!_0x2fcd4d&&!!_0x43fe5d),_0x384a07[_0x193d4(0x1c4)][_0x193d4(0x1bf)](_0x193d4(0x1ec))['to'](this,_0x193d4(0x1db)),_0x384a07[_0x193d4(0x1b6)][_0x193d4(0x1ab)](_0x193d4(0x1f8))['to'](this,_0x193d4(0x1f8),this,_0x193d4(0x1c1),this,_0x193d4(0x1de),(_0x2ecac6,_0x11df27,_0x43196d)=>_0x2ecac6&&!_0x11df27&&!!_0x43196d),_0x384a07[_0x193d4(0x1b6)][_0x193d4(0x1bf)](_0x193d4(0x1ec))['to'](this,_0x193d4(0x1aa)),_0x384a07[_0x193d4(0x1d8)][_0x193d4(0x1ab)](_0x193d4(0x1f8))['to'](this,_0x193d4(0x1f8),this,_0x193d4(0x1c1),(_0x3e7b63,_0x26f456)=>_0x3e7b63&&!_0x26f456),_0x384a07[_0x193d4(0x1d8)][_0x193d4(0x1bf)](_0x193d4(0x1ec))['to'](this,_0x193d4(0x1ba)),_0x384a07[_0x193d4(0x1d0)][_0x193d4(0x1ab)](_0x193d4(0x1f8))['to'](this,_0x193d4(0x1c1)),_0x384a07[_0x193d4(0x1d0)][_0x193d4(0x1bf)](_0x193d4(0x1ec))['to'](this,_0x193d4(0x1dd)),_0x384a07;}[_0x463985(0x1ca)](){const _0x2903d2=_0x463985;this[_0x2903d2(0x1de)]='',this[_0x2903d2(0x1a8)]=!0x1,this[_0x2903d2(0x1c1)]=!0x0,this[_0x2903d2(0x1cf)][_0x2903d2(0x1ae)]=!0x0,this[_0x2903d2(0x1f2)][_0x2903d2(0x1ae)]=!0x0,this[_0x2903d2(0x1cf)][_0x2903d2(0x1b1)]();}[_0x463985(0x1ea)](){const _0x44d3ac=_0x463985,_0x2becc9=this[_0x44d3ac(0x1a7)];this[_0x44d3ac(0x1c1)]=!0x1,this[_0x44d3ac(0x1af)]='',this[_0x44d3ac(0x1da)][_0x44d3ac(0x1ed)](),this[_0x44d3ac(0x1de)]&&(this[_0x44d3ac(0x1da)][_0x44d3ac(0x1e0)][_0x44d3ac(0x1b9)]=_0x353fae(_0x2becc9,_0x44d3ac(0x1c3)));}[_0x463985(0x1ef)](_0x3bf6ac){const _0x49d6f8=_0x463985,_0x55d177=this[_0x49d6f8(0x1a7)];this[_0x49d6f8(0x1ea)](),this[_0x49d6f8(0x1a8)]=!0x0,this[_0x49d6f8(0x1b3)][_0x49d6f8(0x1eb)]=_0x3bf6ac||_0x353fae(_0x55d177,_0x49d6f8(0x1dc)),this[_0x49d6f8(0x1de)]||(this[_0x49d6f8(0x1cf)][_0x49d6f8(0x1ae)]=!0x1);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x326284,_0x277eae){const _0x2101b1=_0x23aa,_0x18698b=_0x326284();while(!![]){try{const _0x62debe=-parseInt(_0x2101b1(0x1f7))/0x1*(-parseInt(_0x2101b1(0x1f5))/0x2)+-parseInt(_0x2101b1(0x1f0))/0x3+-parseInt(_0x2101b1(0x1ef))/0x4*(-parseInt(_0x2101b1(0x1fa))/0x5)+-parseInt(_0x2101b1(0x1f9))/0x6+parseInt(_0x2101b1(0x1f2))/0x7+parseInt(_0x2101b1(0x1f1))/0x8*(-parseInt(_0x2101b1(0x1ed))/0x9)+parseInt(_0x2101b1(0x1ec))/0xa*(parseInt(_0x2101b1(0x1f3))/0xb);if(_0x62debe===_0x277eae)break;else _0x18698b['push'](_0x18698b['shift']());}catch(_0x21ebc9){_0x18698b['push'](_0x18698b['shift']());}}}(_0x3a1e,0xd2a64));import{ListItemView as _0x5e0d52,ButtonView as _0x5e2918,ButtonLabelView as _0x177c9a}from'ckeditor5/src/ui.js';function _0x23aa(_0x3f7c95,_0x1e3398){const _0x3a1e21=_0x3a1e();return _0x23aa=function(_0x23aa12,_0x27f0c6){_0x23aa12=_0x23aa12-0x1ea;let _0x27729c=_0x3a1e21[_0x23aa12];return _0x27729c;},_0x23aa(_0x3f7c95,_0x1e3398);}function _0x3a1e(){const _0x3f8a32=['63dVWoXG','children','3218532DhCdKc','768915eRLXBh','1537352oJMqDz','449085GvvxRI','11aeGjLn','set','2LuRgla','prompt','964001tpRKJM','add','9334218fLGodU','5irgWou','fire','locale','execute','21872220VJrZLd'];_0x3a1e=function(){return _0x3f8a32;};return _0x3a1e();}import{unescape as _0x4121b8}from'es-toolkit/compat';export class AIHistoryListItemView extends _0x5e0d52{constructor(_0xf4f808){const _0x3b9b70=_0x23aa;super();const _0x2ef743=new _0x177c9a(),_0x9542fe=new _0x5e2918(this[_0x3b9b70(0x1ea)],_0x2ef743);this[_0x3b9b70(0x1ee)][_0x3b9b70(0x1f8)](_0x9542fe),_0x9542fe[_0x3b9b70(0x1f4)]({'label':_0xf4f808[_0x3b9b70(0x1f6)],'withText':!0x0}),_0x9542fe['on'](_0x3b9b70(0x1eb),()=>{const _0xb9d880=_0x3b9b70;this[_0xb9d880(0x1fb)](_0xb9d880(0x1eb),{'value':_0x4121b8(_0xf4f808[_0xb9d880(0x1f6)])});});}}
23
+ (function(_0x3bbfa2,_0x594369){const _0x917163=_0x3db6,_0x1a095d=_0x3bbfa2();while(!![]){try{const _0x29aa7b=parseInt(_0x917163(0x99))/0x1+-parseInt(_0x917163(0x93))/0x2*(-parseInt(_0x917163(0x95))/0x3)+-parseInt(_0x917163(0x8e))/0x4*(-parseInt(_0x917163(0x8d))/0x5)+parseInt(_0x917163(0x94))/0x6*(-parseInt(_0x917163(0x8f))/0x7)+parseInt(_0x917163(0x9b))/0x8+-parseInt(_0x917163(0x8b))/0x9+parseInt(_0x917163(0x9c))/0xa*(-parseInt(_0x917163(0x98))/0xb);if(_0x29aa7b===_0x594369)break;else _0x1a095d['push'](_0x1a095d['shift']());}catch(_0x3aaf52){_0x1a095d['push'](_0x1a095d['shift']());}}}(_0x5191,0xc4929));function _0x3db6(_0x4e53af,_0x32fefc){const _0x519140=_0x5191();return _0x3db6=function(_0x3db62f,_0x219a35){_0x3db62f=_0x3db62f-0x8b;let _0x24d4e8=_0x519140[_0x3db62f];return _0x24d4e8;},_0x3db6(_0x4e53af,_0x32fefc);}import{ListItemView as _0x28001d,ButtonView as _0x58c1a0,ButtonLabelView as _0x222d60}from'ckeditor5/src/ui.js';function _0x5191(){const _0x166738=['fire','520274YKKGNg','1086PYvsZR','18iYMAnY','add','execute','26521bJvCfE','1302237aGOSSW','children','11107176HcxQHG','8570HboBEx','11687364fPasOC','locale','1159645QoygHo','20dbAnIN','47999UKdzpA','set','prompt'];_0x5191=function(){return _0x166738;};return _0x5191();}import{unescape as _0xfc74fe}from'es-toolkit/compat';export class AIHistoryListItemView extends _0x28001d{constructor(_0x45147b){const _0x2f8856=_0x3db6;super();const _0x371378=new _0x222d60(),_0x14eca0=new _0x58c1a0(this[_0x2f8856(0x8c)],_0x371378);this[_0x2f8856(0x9a)][_0x2f8856(0x96)](_0x14eca0),_0x14eca0[_0x2f8856(0x90)]({'label':_0x45147b[_0x2f8856(0x91)],'withText':!0x0}),_0x14eca0['on'](_0x2f8856(0x97),()=>{const _0x402e5a=_0x2f8856;this[_0x402e5a(0x92)](_0x402e5a(0x97),{'value':_0xfc74fe(_0x45147b[_0x402e5a(0x91)])});});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x129f5e=_0x2d5c;(function(_0x1e421a,_0xa025c4){const _0x1c4e3c=_0x2d5c,_0x4442cb=_0x1e421a();while(!![]){try{const _0xdc011d=parseInt(_0x1c4e3c(0xcf))/0x1*(-parseInt(_0x1c4e3c(0xe7))/0x2)+parseInt(_0x1c4e3c(0xe6))/0x3*(-parseInt(_0x1c4e3c(0xd2))/0x4)+parseInt(_0x1c4e3c(0xe4))/0x5+-parseInt(_0x1c4e3c(0xd7))/0x6+-parseInt(_0x1c4e3c(0xe0))/0x7*(parseInt(_0x1c4e3c(0xe8))/0x8)+-parseInt(_0x1c4e3c(0xde))/0x9*(-parseInt(_0x1c4e3c(0xdc))/0xa)+parseInt(_0x1c4e3c(0xd9))/0xb*(parseInt(_0x1c4e3c(0xea))/0xc);if(_0xdc011d===_0xa025c4)break;else _0x4442cb['push'](_0x4442cb['shift']());}catch(_0x38ad18){_0x4442cb['push'](_0x4442cb['shift']());}}}(_0x5670,0x6ee08));import{ListView as _0x6d63cf,ListItemGroupView as _0x180525,ButtonView as _0x2d6d8a}from'ckeditor5/src/ui.js';import{getTranslation as _0x24eeab}from'../../utils/common-translations.js';function _0x5670(){const _0x50d094=['length','Prompt\x20history','3694950opjuCz','filter','6961350kLJQki','historyGroupView','set','651870FOQQAl','delegate','27kkfzES','clearHistoryButton','1179668IUiAyC','Clear','items','fire','3608950cHHsXe','execute','50016YvgTBL','8GrmizJ','24Ezlzgc','clearHistory','36YOKKsr','add','122528EZbiUR','_createClearHistoryButton','label','180WhQEhA','locale','children'];_0x5670=function(){return _0x50d094;};return _0x5670();}function _0x2d5c(_0x5c4262,_0x1a63ba){const _0x5670a9=_0x5670();return _0x2d5c=function(_0x2d5cdd,_0x5d8cd0){_0x2d5cdd=_0x2d5cdd-0xcf;let _0x572ee0=_0x5670a9[_0x2d5cdd];return _0x572ee0;},_0x2d5c(_0x5c4262,_0x1a63ba);}export class AIHistoryListView extends _0x6d63cf{[_0x129f5e(0xda)];[_0x129f5e(0xdf)];constructor(_0x498904){const _0x42d55d=_0x129f5e;super(_0x498904),this[_0x42d55d(0xdf)]=this[_0x42d55d(0xd0)](),this[_0x42d55d(0xda)]=new _0x180525(),this[_0x42d55d(0xda)][_0x42d55d(0xd4)][_0x42d55d(0xeb)](this[_0x42d55d(0xdf)],0x1),this[_0x42d55d(0xda)][_0x42d55d(0xd1)]=_0x24eeab(_0x498904,_0x42d55d(0xd6)),this[_0x42d55d(0xda)][_0x42d55d(0xe2)][_0x42d55d(0xdd)](_0x42d55d(0xe5))['to'](this),this[_0x42d55d(0xe2)][_0x42d55d(0xeb)](this[_0x42d55d(0xda)]);}[_0x129f5e(0xd8)](){const _0x4c17b8=_0x129f5e;let _0x2336ce=0x0;for(const _0x2361a8 of this[_0x4c17b8(0xe2)])_0x2336ce+=_0x2361a8[_0x4c17b8(0xe2)][_0x4c17b8(0xd5)];return{'resultsCount':_0x2336ce,'totalItemsCount':_0x2336ce};}[_0x129f5e(0xd0)](){const _0x125d2b=_0x129f5e,_0x79d3a8=this[_0x125d2b(0xd3)],_0x536c4f=new _0x2d6d8a(this[_0x125d2b(0xd3)]);return _0x536c4f[_0x125d2b(0xdb)]({'label':'('+_0x24eeab(_0x79d3a8,_0x125d2b(0xe1))+')','withText':!0x0}),_0x536c4f['on'](_0x125d2b(0xe5),()=>this[_0x125d2b(0xe3)](_0x125d2b(0xe9))),_0x536c4f;}}
23
+ const _0x1f89cc=_0x5c5b;(function(_0xbafe26,_0x16918e){const _0x326459=_0x5c5b,_0x385a30=_0xbafe26();while(!![]){try{const _0x5eb3bc=parseInt(_0x326459(0x17a))/0x1+parseInt(_0x326459(0x16a))/0x2*(-parseInt(_0x326459(0x173))/0x3)+-parseInt(_0x326459(0x171))/0x4*(-parseInt(_0x326459(0x163))/0x5)+-parseInt(_0x326459(0x170))/0x6*(parseInt(_0x326459(0x168))/0x7)+parseInt(_0x326459(0x174))/0x8*(-parseInt(_0x326459(0x167))/0x9)+parseInt(_0x326459(0x17d))/0xa*(-parseInt(_0x326459(0x17b))/0xb)+-parseInt(_0x326459(0x17f))/0xc*(-parseInt(_0x326459(0x16c))/0xd);if(_0x5eb3bc===_0x16918e)break;else _0x385a30['push'](_0x385a30['shift']());}catch(_0x2d9bcf){_0x385a30['push'](_0x385a30['shift']());}}}(_0x55d5,0x873c2));import{ListView as _0x327a20,ListItemGroupView as _0x212dec,ButtonView as _0x59a8cb}from'ckeditor5/src/ui.js';function _0x55d5(){const _0x23f696=['2615XYCclq','length','clearHistoryButton','filter','657ublbjb','2339449tDDeqU','fire','2gjgutr','execute','27157ucFxGY','historyGroupView','label','_createClearHistoryButton','12EsuaAS','3908FUaAdo','clearHistory','112242rGDRUy','38608wXtzQt','set','Prompt\x20history','locale','delegate','children','13885retMPZ','3464813JcSVlb','items','20KHNgnH','Clear','9864OebmWe','add'];_0x55d5=function(){return _0x23f696;};return _0x55d5();}import{getTranslation as _0x544768}from'../../utils/common-translations.js';function _0x5c5b(_0x5c0b88,_0x2973de){const _0x55d5ab=_0x55d5();return _0x5c5b=function(_0x5c5b1f,_0x5ec44f){_0x5c5b1f=_0x5c5b1f-0x163;let _0x3205b1=_0x55d5ab[_0x5c5b1f];return _0x3205b1;},_0x5c5b(_0x5c0b88,_0x2973de);}export class AIHistoryListView extends _0x327a20{[_0x1f89cc(0x16d)];[_0x1f89cc(0x165)];constructor(_0x49ea1d){const _0x504f47=_0x1f89cc;super(_0x49ea1d),this[_0x504f47(0x165)]=this[_0x504f47(0x16f)](),this[_0x504f47(0x16d)]=new _0x212dec(),this[_0x504f47(0x16d)][_0x504f47(0x179)][_0x504f47(0x180)](this[_0x504f47(0x165)],0x1),this[_0x504f47(0x16d)][_0x504f47(0x16e)]=_0x544768(_0x49ea1d,_0x504f47(0x176)),this[_0x504f47(0x16d)][_0x504f47(0x17c)][_0x504f47(0x178)](_0x504f47(0x16b))['to'](this),this[_0x504f47(0x17c)][_0x504f47(0x180)](this[_0x504f47(0x16d)]);}[_0x1f89cc(0x166)](){const _0x1f44c7=_0x1f89cc;let _0x5b12d0=0x0;for(const _0x2be7eb of this[_0x1f44c7(0x17c)])_0x5b12d0+=_0x2be7eb[_0x1f44c7(0x17c)][_0x1f44c7(0x164)];return{'resultsCount':_0x5b12d0,'totalItemsCount':_0x5b12d0};}[_0x1f89cc(0x16f)](){const _0x187b28=_0x1f89cc,_0x1a4bea=this[_0x187b28(0x177)],_0x1ffba3=new _0x59a8cb(this[_0x187b28(0x177)]);return _0x1ffba3[_0x187b28(0x175)]({'label':'('+_0x544768(_0x1a4bea,_0x187b28(0x17e))+')','withText':!0x0}),_0x1ffba3['on'](_0x187b28(0x16b),()=>this[_0x187b28(0x169)](_0x187b28(0x172))),_0x1ffba3;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x20bf34=_0x1040;function _0x1040(_0x412183,_0x30fd50){const _0x182efb=_0x182e();return _0x1040=function(_0x104077,_0xe8c1e4){_0x104077=_0x104077-0x1eb;let _0x43c49a=_0x182efb[_0x104077];return _0x43c49a;},_0x1040(_0x412183,_0x30fd50);}(function(_0x1f1b3f,_0x204a23){const _0x290a1d=_0x1040,_0x2cf7a4=_0x1f1b3f();while(!![]){try{const _0x56507e=parseInt(_0x290a1d(0x1fd))/0x1*(-parseInt(_0x290a1d(0x1f5))/0x2)+-parseInt(_0x290a1d(0x1eb))/0x3+parseInt(_0x290a1d(0x1f0))/0x4*(-parseInt(_0x290a1d(0x1f6))/0x5)+parseInt(_0x290a1d(0x1ec))/0x6+-parseInt(_0x290a1d(0x1fe))/0x7*(-parseInt(_0x290a1d(0x1fc))/0x8)+-parseInt(_0x290a1d(0x1f3))/0x9*(parseInt(_0x290a1d(0x1f8))/0xa)+parseInt(_0x290a1d(0x1ef))/0xb;if(_0x56507e===_0x204a23)break;else _0x2cf7a4['push'](_0x2cf7a4['shift']());}catch(_0x1dab34){_0x2cf7a4['push'](_0x2cf7a4['shift']());}}}(_0x182e,0x496b8));import{Collection as _0x17ca48}from'ckeditor5/src/utils.js';const So=_0x20bf34(0x205);export class PromptHistory extends _0x17ca48{constructor(){const _0x73136f=_0x20bf34;super(),this[_0x73136f(0x200)](),this['on'](_0x73136f(0x203),(_0x13be80,_0x31a9f7)=>{const _0x32f03a=_0x73136f,_0xb9ea8a=vo(_0x31a9f7[_0x32f03a(0x201)]);for(const _0x1878e7 of this)if(_0x1878e7!=_0x31a9f7&&vo(_0x1878e7[_0x32f03a(0x201)])===_0xb9ea8a){this[_0x32f03a(0x202)](_0x1878e7);break;}this[_0x32f03a(0x1f1)]>0x14&&this[_0x32f03a(0x202)](this[_0x32f03a(0x1ff)]),this[_0x32f03a(0x1f4)]();}),this['on'](_0x73136f(0x202),()=>{const _0x56306d=_0x73136f;this[_0x56306d(0x1f4)]();});}[_0x20bf34(0x200)](){const _0x1248c5=_0x20bf34,_0x49b33d=sessionStorage[_0x1248c5(0x1fb)](So)||'[]';this[_0x1248c5(0x1fa)](JSON[_0x1248c5(0x1f9)](_0x49b33d));}[_0x20bf34(0x1f4)](){const _0x2fab76=_0x20bf34;sessionStorage[_0x2fab76(0x1f2)](So,JSON[_0x2fab76(0x204)](this[_0x2fab76(0x1ed)](_0x10726c=>_0x10726c)));}}function vo(_0x5c5507){const _0x4b374d=_0x20bf34;return _0x5c5507[_0x4b374d(0x1ee)]()[_0x4b374d(0x1f7)]();}function _0x182e(){const _0x419363=['38262pYUegq','last','_loadFromSessionStorage','prompt','remove','add','stringify','CKEditor/AIFormView/PromptHistory','538443PHfUcu','1292646XTtTla','map','toLowerCase','14305434ITQswk','1865456YwRJLr','length','setItem','3673827pYjvbH','_saveToSessionStorage','64786SsEGiK','5BjWQOC','trim','10LKcaWq','parse','addMany','getItem','96DTNKfe','7JTnirO'];_0x182e=function(){return _0x419363;};return _0x182e();}
23
+ const _0x4abe0d=_0x4acc;(function(_0x39f6b5,_0x16ee37){const _0x35804d=_0x4acc,_0x59ccd6=_0x39f6b5();while(!![]){try{const _0x44c909=parseInt(_0x35804d(0xf9))/0x1*(-parseInt(_0x35804d(0xe6))/0x2)+parseInt(_0x35804d(0xe3))/0x3*(-parseInt(_0x35804d(0xeb))/0x4)+-parseInt(_0x35804d(0xf6))/0x5+-parseInt(_0x35804d(0xe9))/0x6*(parseInt(_0x35804d(0xe7))/0x7)+-parseInt(_0x35804d(0xf3))/0x8+-parseInt(_0x35804d(0xed))/0x9+parseInt(_0x35804d(0xf8))/0xa;if(_0x44c909===_0x16ee37)break;else _0x59ccd6['push'](_0x59ccd6['shift']());}catch(_0x4c6b72){_0x59ccd6['push'](_0x59ccd6['shift']());}}}(_0x46fd,0x1f5b4));function _0x46fd(){const _0x36a9d3=['_loadFromSessionStorage','last','length','3nEeBCb','map','parse','10xfrKsz','89873yRIyGz','prompt','114qyYfGE','stringify','910148FtNjkZ','setItem','730071qXVZEe','CKEditor/AIFormView/PromptHistory','trim','_saveToSessionStorage','remove','toLowerCase','1219592ScqsiZ','getItem','addMany','70325zkuVDi','add','8606120SjatmE','2613uxyzTn'];_0x46fd=function(){return _0x36a9d3;};return _0x46fd();}function _0x4acc(_0x2ba4ff,_0x4fc0ed){const _0x46fdda=_0x46fd();return _0x4acc=function(_0x4accd3,_0x4b4de4){_0x4accd3=_0x4accd3-0xe0;let _0x3e1990=_0x46fdda[_0x4accd3];return _0x3e1990;},_0x4acc(_0x2ba4ff,_0x4fc0ed);}import{Collection as _0x20ef80}from'ckeditor5/src/utils.js';const So=_0x4abe0d(0xee);export class PromptHistory extends _0x20ef80{constructor(){const _0x44cf7f=_0x4abe0d;super(),this[_0x44cf7f(0xe0)](),this['on'](_0x44cf7f(0xf7),(_0x55e221,_0x2be19f)=>{const _0x391916=_0x44cf7f,_0x2f4c49=go(_0x2be19f[_0x391916(0xe8)]);for(const _0x4869e0 of this)if(_0x4869e0!=_0x2be19f&&go(_0x4869e0[_0x391916(0xe8)])===_0x2f4c49){this[_0x391916(0xf1)](_0x4869e0);break;}this[_0x391916(0xe2)]>0x14&&this[_0x391916(0xf1)](this[_0x391916(0xe1)]),this[_0x391916(0xf0)]();}),this['on'](_0x44cf7f(0xf1),()=>{const _0x38b5ef=_0x44cf7f;this[_0x38b5ef(0xf0)]();});}[_0x4abe0d(0xe0)](){const _0x5b1859=_0x4abe0d,_0xc636f7=sessionStorage[_0x5b1859(0xf4)](So)||'[]';this[_0x5b1859(0xf5)](JSON[_0x5b1859(0xe5)](_0xc636f7));}[_0x4abe0d(0xf0)](){const _0x449c8a=_0x4abe0d;sessionStorage[_0x449c8a(0xec)](So,JSON[_0x449c8a(0xea)](this[_0x449c8a(0xe4)](_0x1fb926=>_0x1fb926)));}}function go(_0x18b822){const _0x13ea2e=_0x4abe0d;return _0x18b822[_0x13ea2e(0xf2)]()[_0x13ea2e(0xef)]();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x178e3b=_0x3b40;function _0x3b40(_0x5bcb1b,_0x5487d6){const _0x6fea7f=_0x6fea();return _0x3b40=function(_0x3b4048,_0x766dd8){_0x3b4048=_0x3b4048-0x75;let _0x30ebd7=_0x6fea7f[_0x3b4048];return _0x30ebd7;},_0x3b40(_0x5bcb1b,_0x5487d6);}(function(_0x3ebda0,_0x2cc4cd){const _0x325750=_0x3b40,_0x1b7533=_0x3ebda0();while(!![]){try{const _0xbdb534=-parseInt(_0x325750(0x7d))/0x1+-parseInt(_0x325750(0x98))/0x2*(-parseInt(_0x325750(0x91))/0x3)+-parseInt(_0x325750(0x9c))/0x4+-parseInt(_0x325750(0x90))/0x5*(-parseInt(_0x325750(0x78))/0x6)+-parseInt(_0x325750(0x83))/0x7*(parseInt(_0x325750(0x94))/0x8)+-parseInt(_0x325750(0x87))/0x9*(parseInt(_0x325750(0x86))/0xa)+parseInt(_0x325750(0x89))/0xb*(parseInt(_0x325750(0xa2))/0xc);if(_0xbdb534===_0x2cc4cd)break;else _0x1b7533['push'](_0x1b7533['shift']());}catch(_0x37c0dd){_0x1b7533['push'](_0x1b7533['shift']());}}}(_0x6fea,0x6ab3b));function _0x6fea(){const _0x4b851d=['config','set','includes','change:isEnabled','enabledCommandsIds','35rOBmdS','_commandDefinitions','element','10RKVvkk','709047HRTAfw','values','11OLHfLl','length','plugins','change:_hasContext','isCollapsed','refresh','name','150lmycHl','9318XKFZIW','getSelectedBlocks','_hasContext','474856TaTKHR','isEmpty','getFirstRange','get','106JaTFdU','ai.assistant.disabledElements','getItems','editor','3039344QRocYb','add','showUI','document','model','hasContent','17597148EDqNKt','getRanges','execute','isEnabled','154236pWbZgK','from','custom','selection','requiresContent','829772UuKNcZ'];_0x6fea=function(){return _0x4b851d;};return _0x6fea();}import{Command as _0x396e00}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x506664}from'../aiassistantui.js';export class ShowAIAssistantCommand extends _0x396e00{[_0x178e3b(0x84)];constructor(_0x20c848,_0x446664){const _0x110b5d=_0x178e3b;super(_0x20c848),this[_0x110b5d(0x84)]=_0x446664,this[_0x110b5d(0x7f)](_0x110b5d(0x82),[]),this['on'](_0x110b5d(0x8c),(_0x3d20f3,_0x2c49a6,_0x3bddac)=>{const _0x4ba8c3=_0x110b5d;this[_0x4ba8c3(0x77)]&&(this[_0x4ba8c3(0x82)]=ns(this[_0x4ba8c3(0x84)],_0x3bddac));}),this[_0x110b5d(0x7f)](_0x110b5d(0x93),!0x1),this['on'](_0x110b5d(0x81),(_0x119d7c,_0x4f1168,_0x50730b)=>{const _0x3da577=_0x110b5d;this[_0x3da577(0x82)]=_0x50730b?ns(this[_0x3da577(0x84)],this[_0x3da577(0x93)]):[];});}[_0x178e3b(0x8e)](){const _0x3ebb4d=_0x178e3b,_0x3edf98=this[_0x3ebb4d(0x9b)][_0x3ebb4d(0xa0)];this[_0x3ebb4d(0x93)]=function(_0x4380c5){const _0x1820e3=_0x3ebb4d,_0x411ba3=_0x4380c5[_0x1820e3(0x9f)][_0x1820e3(0x7b)];return _0x411ba3[_0x1820e3(0x8d)]?0x0!==[..._0x411ba3[_0x1820e3(0x92)]()][_0x1820e3(0x8a)]&&![..._0x411ba3[_0x1820e3(0x92)]()][0x0][_0x1820e3(0x95)]:!!_0x4380c5[_0x1820e3(0xa1)](_0x411ba3[_0x1820e3(0x96)]());}(_0x3edf98);const _0xfc8837=_0x3edf98[_0x3ebb4d(0x9f)][_0x3ebb4d(0x7b)],_0x4d1a42=this[_0x3ebb4d(0x9b)][_0x3ebb4d(0x7e)][_0x3ebb4d(0x97)](_0x3ebb4d(0x99));for(const _0x2461ca of _0xfc8837[_0x3ebb4d(0x75)]())for(const _0x5084e4 of _0x2461ca[_0x3ebb4d(0x9a)]())if(_0x5084e4['is'](_0x3ebb4d(0x85))&&_0x4d1a42[_0x3ebb4d(0x80)](_0x5084e4[_0x3ebb4d(0x8f)]))return void(this[_0x3ebb4d(0x77)]=!0x1);this[_0x3ebb4d(0x77)]=!0x0;}[_0x178e3b(0x76)](_0x36c415='',_0xc115ee='',_0x2c2fc9=_0x178e3b(0x7a)){const _0x13164a=_0x178e3b;this[_0x13164a(0x9b)][_0x13164a(0x8b)][_0x13164a(0x97)](_0x506664)[_0x13164a(0x9e)](_0x36c415,_0xc115ee,_0x2c2fc9);}}function ns(_0x996e58,_0x5ae501){const _0x1410e2=_0x178e3b,_0x32fdd4=new Set();for(const _0x20cbc6 of _0x996e58[_0x1410e2(0x88)]())(_0x5ae501||!0x1===_0x20cbc6[_0x1410e2(0x7c)])&&_0x32fdd4[_0x1410e2(0x9d)](_0x20cbc6['id']);return Array[_0x1410e2(0x79)](_0x32fdd4);}
23
+ function _0x2f99(_0x21f29d,_0x22afca){const _0x3ff029=_0x3ff0();return _0x2f99=function(_0x2f9964,_0x34d801){_0x2f9964=_0x2f9964-0x180;let _0x2303b0=_0x3ff029[_0x2f9964];return _0x2303b0;},_0x2f99(_0x21f29d,_0x22afca);}const _0x32d15d=_0x2f99;(function(_0x1d5878,_0x3d3a79){const _0xbb090e=_0x2f99,_0x19d097=_0x1d5878();while(!![]){try{const _0x21c708=-parseInt(_0xbb090e(0x1ab))/0x1*(parseInt(_0xbb090e(0x180))/0x2)+-parseInt(_0xbb090e(0x1a4))/0x3+parseInt(_0xbb090e(0x1a0))/0x4*(parseInt(_0xbb090e(0x183))/0x5)+parseInt(_0xbb090e(0x19c))/0x6+-parseInt(_0xbb090e(0x182))/0x7+parseInt(_0xbb090e(0x185))/0x8*(-parseInt(_0xbb090e(0x18a))/0x9)+parseInt(_0xbb090e(0x1a7))/0xa;if(_0x21c708===_0x3d3a79)break;else _0x19d097['push'](_0x19d097['shift']());}catch(_0x340905){_0x19d097['push'](_0x19d097['shift']());}}}(_0x3ff0,0x90dd2));import{Command as _0x36b38c}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x2fd601}from'../aiassistantui.js';export class ShowAIAssistantCommand extends _0x36b38c{[_0x32d15d(0x194)];constructor(_0x198b68,_0x1741f2){const _0x219917=_0x32d15d;super(_0x198b68),this[_0x219917(0x194)]=_0x1741f2,this[_0x219917(0x1a9)](_0x219917(0x191),[]),this['on'](_0x219917(0x19a),(_0x1b2890,_0xb1e9ea,_0x2ccf49)=>{const _0x50fa22=_0x219917;this[_0x50fa22(0x1a2)]&&(this[_0x50fa22(0x191)]=ns(this[_0x50fa22(0x194)],_0x2ccf49));}),this[_0x219917(0x1a9)](_0x219917(0x18b),!0x1),this['on'](_0x219917(0x187),(_0x2d9117,_0x52ef13,_0xa6036d)=>{const _0x594da=_0x219917;this[_0x594da(0x191)]=_0xa6036d?ns(this[_0x594da(0x194)],this[_0x594da(0x18b)]):[];});}[_0x32d15d(0x181)](){const _0x474ce0=_0x32d15d,_0x30bd68=this[_0x474ce0(0x195)][_0x474ce0(0x18c)];this[_0x474ce0(0x18b)]=function(_0x1813eb){const _0x430c14=_0x474ce0,_0x298d30=_0x1813eb[_0x430c14(0x184)][_0x430c14(0x1aa)];return _0x298d30[_0x430c14(0x1a6)]?0x0!==[..._0x298d30[_0x430c14(0x19d)]()][_0x430c14(0x1a1)]&&![..._0x298d30[_0x430c14(0x19d)]()][0x0][_0x430c14(0x1a3)]:!!_0x1813eb[_0x430c14(0x188)](_0x298d30[_0x430c14(0x19f)]());}(_0x30bd68);const _0x128565=_0x30bd68[_0x474ce0(0x184)][_0x474ce0(0x1aa)],_0x16a2c9=this[_0x474ce0(0x195)][_0x474ce0(0x18f)][_0x474ce0(0x18e)](_0x474ce0(0x193));for(const _0x20bf1d of _0x128565[_0x474ce0(0x197)]())for(const _0x5b721b of _0x20bf1d[_0x474ce0(0x199)]())if(_0x5b721b['is'](_0x474ce0(0x196))&&_0x16a2c9[_0x474ce0(0x189)](_0x5b721b[_0x474ce0(0x1a8)]))return void(this[_0x474ce0(0x1a2)]=!0x1);this[_0x474ce0(0x1a2)]=!0x0;}[_0x32d15d(0x19b)](_0x523a4e='',_0x2078fb='',_0x5663c3=_0x32d15d(0x192)){const _0x41aa6e=_0x32d15d;this[_0x41aa6e(0x195)][_0x41aa6e(0x190)][_0x41aa6e(0x18e)](_0x2fd601)[_0x41aa6e(0x18d)](_0x523a4e,_0x2078fb,_0x5663c3);}}function _0x3ff0(){const _0x5c8dcd=['_hasContext','model','showUI','get','config','plugins','enabledCommandsIds','custom','ai.assistant.disabledElements','_commandDefinitions','editor','element','getRanges','add','getItems','change:_hasContext','execute','7068918NyMXyN','getSelectedBlocks','from','getFirstRange','17452SiUyLn','length','isEnabled','isEmpty','2406552kjmtEw','requiresContent','isCollapsed','22672320Ocwxlu','name','set','selection','113383lDKoDR','6NQzpFi','refresh','4896115wsBHOM','90ychkdd','document','424hhCcsC','values','change:isEnabled','hasContent','includes','184887yGkpbV'];_0x3ff0=function(){return _0x5c8dcd;};return _0x3ff0();}function ns(_0x57d2fa,_0x53061a){const _0x57c2cb=_0x32d15d,_0x1ccf84=new Set();for(const _0x18714a of _0x57d2fa[_0x57c2cb(0x186)]())(_0x53061a||!0x1===_0x18714a[_0x57c2cb(0x1a5)])&&_0x1ccf84[_0x57c2cb(0x198)](_0x18714a['id']);return Array[_0x57c2cb(0x19e)](_0x1ccf84);}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x551751,_0x12814f,_0x4132e9){const t=_0x551751['t'];switch(_0x12814f){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',_0x4132e9);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x4132e9);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'},_0x4132e9);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 _0x12814f;}}
23
+ export function getTranslation(_0x41c7d0,_0x5c01e3,_0x43d7e1){const t=_0x41c7d0['t'];switch(_0x5c01e3){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',_0x43d7e1);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x43d7e1);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'},_0x43d7e1);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 _0x5c01e3;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export const UNGROUPED_COMMANDS_GROUP_ID='_ungrouppedCommands';export function normalizeCommandsConfig(_0x51fd10,_0x4093e5){const _0x3c8d85=(0x0,_0x4093e5['t'])('Other');return _0x51fd10['length']?'groupId'in _0x51fd10[0x0]?_0x51fd10:[{'groupId':'_ungrouppedCommands','groupLabel':_0x3c8d85,'order':0x1/0x0,'commands':_0x51fd10}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x3c8d85,'order':0x1/0x0,'commands':[]}];}
23
+ export const UNGROUPED_COMMANDS_GROUP_ID='_ungrouppedCommands';export function normalizeCommandsConfig(_0x4ff739,_0x211c61){const _0x212340=(0x0,_0x211c61['t'])('Other');return _0x4ff739['length']?'groupId'in _0x4ff739[0x0]?_0x4ff739:[{'groupId':'_ungrouppedCommands','groupLabel':_0x212340,'order':0x1/0x0,'commands':_0x4ff739}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x212340,'order':0x1/0x0,'commands':[]}];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x49f9f5=_0x47e1;(function(_0x53818f,_0x3b46b2){const _0x1cc665=_0x47e1,_0x3da44a=_0x53818f();while(!![]){try{const _0x578179=parseInt(_0x1cc665(0xce))/0x1*(parseInt(_0x1cc665(0xb3))/0x2)+-parseInt(_0x1cc665(0xd1))/0x3*(parseInt(_0x1cc665(0xae))/0x4)+-parseInt(_0x1cc665(0xcf))/0x5+parseInt(_0x1cc665(0xb0))/0x6*(parseInt(_0x1cc665(0x105))/0x7)+parseInt(_0x1cc665(0xe9))/0x8+-parseInt(_0x1cc665(0xb8))/0x9+parseInt(_0x1cc665(0xe5))/0xa;if(_0x578179===_0x3b46b2)break;else _0x3da44a['push'](_0x3da44a['shift']());}catch(_0x4fde97){_0x3da44a['push'](_0x3da44a['shift']());}}}(_0x246c,0xb7954));import{ContextPlugin as _0x205ca3}from'ckeditor5/src/core.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x105500,AIEditing as _0x12c0cf}from'../aicore/aiediting.js';function _0x47e1(_0x21b80d,_0x2b40d6){const _0x246c73=_0x246c();return _0x47e1=function(_0x47e144,_0x25de49){_0x47e144=_0x47e144-0xa9;let _0x42cafb=_0x246c73[_0x47e144];return _0x42cafb;},_0x47e1(_0x21b80d,_0x2b40d6);}import'../../theme/aiballoon/aiballoon.css';import{getAllMarkersDomElementsSorted as _0x186c1a}from'ckeditor5-collaboration/src/collaboration-core.js';import{global as _0x427409,Rect as _0x46d9ab,scrollViewportToShowTarget as _0x49e6c0}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x55ac63}from'../aicore/utils/geteditorfromcontext.js';import{getTranslation as _0x5c5c1e}from'../aicore/utils/common-translations.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0x487c8b}from'./ui/aiballoonview.js';export const AI_BALLOON_EVENT_NAMES=[..._0x487c8b,_0x49f9f5(0xda),_0x49f9f5(0xc8)];const $=0xa;export class AIBalloon extends _0x205ca3{static get[_0x49f9f5(0xea)](){return[_0x12c0cf];}static get[_0x49f9f5(0xd3)](){const _0x955a20=_0x49f9f5;return _0x955a20(0xf3);}static get[_0x49f9f5(0xb7)](){return!0x0;}static get[_0x49f9f5(0xab)](){return!0x0;}[_0x49f9f5(0xed)]=!0x1;[_0x49f9f5(0xdf)];[_0x49f9f5(0xd8)]=!0x1;[_0x49f9f5(0xf2)](_0x4aca54){const _0xe74dbb=_0x49f9f5,{id:_0x95055c}=this[_0xe74dbb(0xdf)]??{};this[_0xe74dbb(0xdf)]=_0x4aca54;const {id:_0x3796c1}=this[_0xe74dbb(0xdf)];this[_0xe74dbb(0xed)]&&_0x95055c===_0x3796c1?this[_0xe74dbb(0xf6)]():this[_0xe74dbb(0x103)]();}[_0x49f9f5(0xb2)](){const _0x1ffa39=_0x49f9f5;_0x55ac63(this[_0x1ffa39(0xe8)])[_0x1ffa39(0xff)][_0x1ffa39(0xc4)](_0x1ffa39(0x104))[_0x1ffa39(0xd2)]();}[_0x49f9f5(0xf6)](){const _0x4602c1=_0x49f9f5,_0x6cc03a=_0x55ac63(this[_0x4602c1(0xe8)])[_0x4602c1(0xff)][_0x4602c1(0xc4)](_0x4602c1(0x104)),{icon:_0x153726,title:_0x142198}=this[_0x4602c1(0xdf)];_0x6cc03a[_0x4602c1(0xaf)]?.[_0x4602c1(0xaa)]&&(_0x6cc03a[_0x4602c1(0xaf)][_0x4602c1(0xaa)][_0x4602c1(0xc5)]=_0x142198,_0x6cc03a[_0x4602c1(0xaf)][_0x4602c1(0xaa)][_0x4602c1(0xb5)]&&_0x153726&&(_0x6cc03a[_0x4602c1(0xaf)][_0x4602c1(0xaa)][_0x4602c1(0xb5)][_0x4602c1(0xf5)]=_0x153726)),this[_0x4602c1(0xd8)]=!0x0,this[_0x4602c1(0xbf)](),this[_0x4602c1(0xd8)]=!0x1,_0x6cc03a[_0x4602c1(0xaf)]?.[_0x4602c1(0xf0)]();}[_0x49f9f5(0xbf)](){const _0x20c72f=_0x49f9f5;this[_0x20c72f(0xe8)][_0x20c72f(0xff)][_0x20c72f(0xc4)](_0x12c0cf)[_0x20c72f(0xcd)](this[_0x20c72f(0xdf)][_0x20c72f(0xf8)],_0x20c72f(0xd9)+this[_0x20c72f(0xdf)][_0x20c72f(0xc2)],!0x0,!0x0);}[_0x49f9f5(0xc9)](_0x2ef3b9){const _0x47101d=_0x49f9f5;this[_0x47101d(0xe8)][_0x47101d(0xff)][_0x47101d(0xc4)](_0x12c0cf)[_0x47101d(0xec)](_0x47101d(0xd9)+_0x2ef3b9);}[_0x49f9f5(0x103)](){const _0x35da64=_0x49f9f5,_0x9d7a1e=_0x55ac63(this[_0x35da64(0xe8)])[_0x35da64(0xff)][_0x35da64(0xc4)](_0x35da64(0x104)),{id:_0x32be68,title:_0x40570a,icon:_0x1e202b,class:_0x1c4ce0,mainView:_0x45a19a}=this[_0x35da64(0xdf)];_0x45a19a[_0x35da64(0xf1)](..._0x487c8b)['to'](this),_0x9d7a1e[_0x35da64(0xb4)]({'title':_0x40570a,'icon':_0x1e202b,'hasCloseButton':!0x0,'id':_0x32be68,'position':this[_0x35da64(0xc0)][_0x35da64(0x102)](this),'className':_0x35da64(0xfb)+(_0x1c4ce0||''),'content':_0x45a19a,'onShow':_0x593f73=>{const _0x195089=_0x35da64;this[_0x195089(0xbf)](),this[_0x195089(0xe0)]();const _0x52b6e0=this[_0x195089(0xbd)]();_0x52b6e0&&_0x52b6e0[0x0]&&_0x49e6c0({'target':_0x52b6e0[0x0],'ancestorOffset':0x14,'alignToTop':!0x0,'viewportOffset':{'top':0x14,'bottom':0x14,'left':0x0,'right':0x0}}),this[_0x195089(0xed)]=!0x0,_0x593f73[_0x195089(0xdb)](_0x195089(0xd2),()=>{const _0x5d9136=_0x195089;this[_0x5d9136(0xbc)](_0x5d9136(0xbe),{'id':_0x32be68});},{'priority':_0x195089(0xc3)});},'onHide':()=>{const _0x467e89=_0x35da64;this[_0x467e89(0xc9)](this[_0x467e89(0xdf)][_0x467e89(0xc2)]),this[_0x467e89(0xef)](),this[_0x467e89(0xbc)](_0x467e89(0xda),{'id':_0x32be68}),this[_0x467e89(0xed)]=!0x1;}});}[_0x49f9f5(0xc0)](_0x31df7c,_0x30e405){const _0x206f81=_0x49f9f5;if(!_0x30e405)return null;const _0x5cc962=this[_0x206f81(0xbd)]();if(!_0x5cc962||0x0===_0x5cc962[_0x206f81(0xf7)])return{'left':Math[_0x206f81(0xc6)](_0x30e405[_0x206f81(0xd6)]+_0x30e405[_0x206f81(0xfd)]/0x2-_0x31df7c[_0x206f81(0xfd)]/0x2),'top':Math[_0x206f81(0xc6)](_0x30e405[_0x206f81(0xd0)]+_0x30e405[_0x206f81(0x100)]/0x2-_0x31df7c[_0x206f81(0x100)]/0x2)};const _0xd43dbf=Math[_0x206f81(0xc6)](_0x30e405[_0x206f81(0xd6)]+_0x30e405[_0x206f81(0xfd)]/0x2-_0x31df7c[_0x206f81(0xfd)]/0x2),_0x1183a0=_0x5cc962[_0x206f81(0xee)](_0xa04e50=>new _0x46d9ab(_0xa04e50)),_0x31639d=_0x31df7c[_0x206f81(0x100)];return{'left':_0xd43dbf,'top':this[_0x206f81(0xfa)](_0x1183a0,_0x31639d,_0x30e405)};}[_0x49f9f5(0xfa)](_0x525433,_0x34801f,_0x800e9e){const _0x22a211=_0x49f9f5,_0x198118=new _0x46d9ab(_0x427409[_0x22a211(0xd7)]),_0x53a6d3=_0x525433[_0x22a211(0xee)](_0xfec6eb=>_0xfec6eb[_0x22a211(0xd5)]())[_0x22a211(0xf4)](_0x504c64=>_0x504c64),_0x4dbf18=_0x46d9ab[_0x22a211(0xb9)](_0x53a6d3);if(!_0x4dbf18)return Math[_0x22a211(0xc6)](_0x800e9e[_0x22a211(0xd0)]+_0x800e9e[_0x22a211(0x100)]/0x2);const _0x349a70=_0x198118[_0x22a211(0xdd)](_0x4dbf18);if(!_0x349a70)return Math[_0x22a211(0xc6)](_0x800e9e[_0x22a211(0xd0)]+_0x800e9e[_0x22a211(0x100)]/0x2);const _0x381014=_0x800e9e[_0x22a211(0xd5)](),_0xef6a52=_0x381014&&_0x4dbf18[_0x22a211(0x100)]>_0x381014[_0x22a211(0x100)],_0x447e02=_0x349a70[_0x22a211(0xd0)],_0x58e9df=_0x349a70[_0x22a211(0xba)];if(_0xef6a52){const _0x1d0db0=(_0x381014||_0x198118)[_0x22a211(0x100)]/0x2-_0x34801f/0x2,_0x2418f6=_0x447e02-$-_0x800e9e[_0x22a211(0xd0)],_0x522f12=_0x800e9e[_0x22a211(0xba)]-_0x58e9df-$;return _0x2418f6>=_0x34801f?Math[_0x22a211(0xcc)]($,_0x447e02-_0x34801f-$):_0x522f12>=_0x34801f?_0x58e9df+$:Math[_0x22a211(0xcc)]($,_0x1d0db0);}const _0x410be4=_0x447e02-_0x34801f,_0x387020=_0x800e9e[_0x22a211(0xba)]-_0x58e9df-$,_0x3f08fa=_0x447e02-$-_0x800e9e[_0x22a211(0xd0)];let _0xf79748;if(_0x387020>=_0x34801f)_0xf79748=_0x58e9df+$;else{if(_0x3f08fa>=_0x34801f)_0xf79748=_0x410be4-$;else _0xf79748=_0x447e02+_0x4dbf18[_0x22a211(0x100)]/0x2-_0x34801f/0x2;}return _0xf79748;}[_0x49f9f5(0xe0)](){const _0x5aa1b0=_0x49f9f5,_0x4eb823=_0x55ac63(this[_0x5aa1b0(0xe8)]);this[_0x5aa1b0(0xdc)](_0x4eb823[_0x5aa1b0(0xe1)][_0x5aa1b0(0xca)],_0x5aa1b0(0xfe),()=>{const _0xa3c4c1=_0x5aa1b0;if(!this[_0xa3c4c1(0xd8)]){for(const {name:_0x51d3d0,data:{newRange:_0x1cfe20}}of _0x4eb823[_0xa3c4c1(0xe1)][_0xa3c4c1(0xca)][_0xa3c4c1(0xfc)][_0xa3c4c1(0xa9)]())if(_0x51d3d0[_0xa3c4c1(0xcb)](_0x105500+':')&&(_0x1cfe20&&(_0x1cfe20[_0xa3c4c1(0xb6)][_0xa3c4c1(0xeb)](_0x1cfe20[_0xa3c4c1(0xad)])||_0xa3c4c1(0xac)==_0x1cfe20[_0xa3c4c1(0xbb)][_0xa3c4c1(0xde)])||null==_0x1cfe20)){const _0x1001aa=_0x5c5c1e(this[_0xa3c4c1(0xe8)][_0xa3c4c1(0xc1)],_0xa3c4c1(0xb1));this[_0xa3c4c1(0xdf)][_0xa3c4c1(0xc7)][_0xa3c4c1(0xd4)](_0x1001aa),this[_0xa3c4c1(0xbc)](_0xa3c4c1(0xc8));}}});}[_0x49f9f5(0xef)](){const _0x33861e=_0x49f9f5,_0x55b725=_0x55ac63(this[_0x33861e(0xe8)]);this[_0x33861e(0xdf)][_0x33861e(0xc7)][_0x33861e(0xe2)](),this[_0x33861e(0xf9)](_0x55b725[_0x33861e(0xe1)][_0x33861e(0xca)]);}[_0x49f9f5(0xbd)](){const _0x1f642b=_0x49f9f5,_0x10cb88=_0x55ac63(this[_0x1f642b(0xe8)]);return _0x186c1a(_0x10cb88[_0x1f642b(0xe7)],[..._0x10cb88[_0x1f642b(0xe1)][_0x1f642b(0xe4)][_0x1f642b(0xe3)](_0x1f642b(0x101)),..._0x10cb88[_0x1f642b(0xe1)][_0x1f642b(0xe4)][_0x1f642b(0xe3)](_0x1f642b(0xe6))]);}}function _0x246c(){const _0x3f2cb7=['rootName','_currentConfig','_setupFakeVisualSelectionMarkerRemovalListener','model','hideError','getMarkersGroup','markers','29061860KeTxWo','ai-balloon-selection','editing','context','1183688cEFNWx','requires','isEqual','hideFakeVisualSelection','isOpen','map','_cleanupFakeVisualSelectionMarkerRemovalListener','updatePosition','delegate','open','AIBalloon','filter','content','_updateDialog','length','ranges','stopListening','_calculateOptimalTopPosition','ck-ai-balloon\x20','differ','width','change','plugins','height','ai-selection','bind','_showDialog','Dialog','148946IcGtBK','getChangedMarkers','headerView','isPremiumPlugin','$graveyard','end','2101640SPOENB','view','186xihzgE','AI_BALLOON_SELECTION_REMOVED_ERROR','close','622308NVQYXs','show','iconView','start','isOfficialPlugin','12644082ahoZZd','getBoundingRect','bottom','root','fire','_getSelectionElements','beforeDialogClosed','_showFakeVisualSelection','_calculateDialogPosition','locale','index','high','get','label','round','mainView','selectionRemoved','_hideFakeVisualSelection','document','startsWith','max','showFakeVisualSelection','2HoyBBz','5641995bkIkpH','top','6cjfPwC','hide','pluginName','showBlockingError','getVisible','left','window','_isUpdatingMarkers','ai-balloon-','dialogClosed','once','listenTo','getIntersection'];_0x246c=function(){return _0x3f2cb7;};return _0x246c();}
23
+ const _0x2f8c68=_0x52b0;function _0x52b0(_0x3eaf88,_0x2f14a1){const _0x10558a=_0x1055();return _0x52b0=function(_0x52b02c,_0x9d3060){_0x52b02c=_0x52b02c-0x7a;let _0x2548a9=_0x10558a[_0x52b02c];return _0x2548a9;},_0x52b0(_0x3eaf88,_0x2f14a1);}(function(_0x406a94,_0x166a77){const _0x39152f=_0x52b0,_0x42b553=_0x406a94();while(!![]){try{const _0x49ede1=parseInt(_0x39152f(0x95))/0x1+-parseInt(_0x39152f(0x93))/0x2*(-parseInt(_0x39152f(0xc7))/0x3)+parseInt(_0x39152f(0xbb))/0x4+-parseInt(_0x39152f(0x8c))/0x5*(parseInt(_0x39152f(0x7b))/0x6)+-parseInt(_0x39152f(0xa4))/0x7*(-parseInt(_0x39152f(0xc4))/0x8)+parseInt(_0x39152f(0x87))/0x9*(-parseInt(_0x39152f(0xd4))/0xa)+-parseInt(_0x39152f(0x8e))/0xb;if(_0x49ede1===_0x166a77)break;else _0x42b553['push'](_0x42b553['shift']());}catch(_0x23140b){_0x42b553['push'](_0x42b553['shift']());}}}(_0x1055,0x8812c));import{ContextPlugin as _0x4aca4a}from'ckeditor5/src/core.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x4837d3,AIEditing as _0x51abf4}from'../aicore/aiediting.js';import'../../theme/aiballoon/aiballoon.css';import{getAllMarkersDomElementsSorted as _0x2d4577}from'ckeditor5-collaboration/src/collaboration-core.js';import{global as _0xf2c7bb,Rect as _0x351304,scrollViewportToShowTarget as _0x49de3d}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x55a8f7}from'../aicore/utils/geteditorfromcontext.js';import{getTranslation as _0x36792d}from'../aicore/utils/common-translations.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0x1d447a}from'./ui/aiballoonview.js';function _0x1055(){const _0x5b3225=['_currentConfig','get','delegate','ai-balloon-','startsWith','_showFakeVisualSelection','document','bind','map','show','high','selectionRemoved','597260cOcIIC','start','Dialog','locale','max','498mAjyot','ai-selection','pluginName','plugins','requires','listenTo','getIntersection','label','mainView','_calculateDialogPosition','_showDialog','_getSelectionElements','9rPwDLY','hideError','isOpen','getVisible','showFakeVisualSelection','21890jcIdGT','left','6663800eMkaqa','isPremiumPlugin','_cleanupFakeVisualSelectionMarkerRemovalListener','editing','close','2AAkxcv','AIBalloon','33280uVeieL','length','isEqual','_setupFakeVisualSelectionMarkerRemovalListener','content','$graveyard','once','round','rootName','showBlockingError','ranges','differ','height','hide','beforeDialogClosed','7ljCijb','change','_isUpdatingMarkers','index','open','context','model','markers','window','width','_calculateOptimalTopPosition','view','getBoundingRect','hideFakeVisualSelection','headerView','top','getChangedMarkers','updatePosition','end','stopListening','getMarkersGroup','isOfficialPlugin','fire','696728yLZAHz','_hideFakeVisualSelection','dialogClosed','_updateDialog','AI_BALLOON_SELECTION_REMOVED_ERROR','bottom','root','ck-ai-balloon\x20','iconView','6030488VfKOki','filter','ai-balloon-selection','1874949AmEags'];_0x1055=function(){return _0x5b3225;};return _0x1055();}export const AI_BALLOON_EVENT_NAMES=[..._0x1d447a,_0x2f8c68(0xbd),_0x2f8c68(0xd3)];const at=0xa;export class AIBalloon extends _0x4aca4a{static get[_0x2f8c68(0x7f)](){return[_0x51abf4];}static get[_0x2f8c68(0x7d)](){const _0x12c4d9=_0x2f8c68;return _0x12c4d9(0x94);}static get[_0x2f8c68(0xb9)](){return!0x0;}static get[_0x2f8c68(0x8f)](){return!0x0;}[_0x2f8c68(0x89)]=!0x1;[_0x2f8c68(0xc8)];[_0x2f8c68(0xa6)]=!0x1;[_0x2f8c68(0xa8)](_0x4b8c45){const _0x18e6dc=_0x2f8c68,{id:_0x43cdd4}=this[_0x18e6dc(0xc8)]??{};this[_0x18e6dc(0xc8)]=_0x4b8c45;const {id:_0x2ef64c}=this[_0x18e6dc(0xc8)];this[_0x18e6dc(0x89)]&&_0x43cdd4===_0x2ef64c?this[_0x18e6dc(0xbe)]():this[_0x18e6dc(0x85)]();}[_0x2f8c68(0x92)](){const _0x39eb0c=_0x2f8c68,_0x3fac72=_0x55a8f7(this[_0x39eb0c(0xa9)])[_0x39eb0c(0x7e)][_0x39eb0c(0xc9)](_0x39eb0c(0xd6));_0x3fac72[_0x39eb0c(0x89)]&&this[_0x39eb0c(0xc8)]&&_0x3fac72['id']===this[_0x39eb0c(0xc8)]['id']&&_0x3fac72[_0x39eb0c(0xa2)]();}[_0x2f8c68(0xbe)](){const _0x109698=_0x2f8c68,_0x178e7d=_0x55a8f7(this[_0x109698(0xa9)])[_0x109698(0x7e)][_0x109698(0xc9)](_0x109698(0xd6)),{icon:_0x5dbaaa,title:_0x4c5676}=this[_0x109698(0xc8)];_0x178e7d[_0x109698(0xaf)]?.[_0x109698(0xb2)]&&(_0x178e7d[_0x109698(0xaf)][_0x109698(0xb2)][_0x109698(0x82)]=_0x4c5676,_0x178e7d[_0x109698(0xaf)][_0x109698(0xb2)][_0x109698(0xc3)]&&_0x5dbaaa&&(_0x178e7d[_0x109698(0xaf)][_0x109698(0xb2)][_0x109698(0xc3)][_0x109698(0x99)]=_0x5dbaaa)),this[_0x109698(0xa6)]=!0x0,this[_0x109698(0xcd)](),this[_0x109698(0xa6)]=!0x1,_0x178e7d[_0x109698(0xaf)]?.[_0x109698(0xb5)]();}[_0x2f8c68(0xcd)](){const _0x1e036f=_0x2f8c68;this[_0x1e036f(0xa9)][_0x1e036f(0x7e)][_0x1e036f(0xc9)](_0x51abf4)[_0x1e036f(0x8b)](this[_0x1e036f(0xc8)][_0x1e036f(0x9f)],_0x1e036f(0xcb)+this[_0x1e036f(0xc8)][_0x1e036f(0xa7)],!0x0,!0x0);}[_0x2f8c68(0xbc)](_0x5e0fa7){const _0x4fe423=_0x2f8c68;this[_0x4fe423(0xa9)][_0x4fe423(0x7e)][_0x4fe423(0xc9)](_0x51abf4)[_0x4fe423(0xb1)](_0x4fe423(0xcb)+_0x5e0fa7);}[_0x2f8c68(0x85)](){const _0x55772b=_0x2f8c68,_0x1c27eb=_0x55a8f7(this[_0x55772b(0xa9)])[_0x55772b(0x7e)][_0x55772b(0xc9)](_0x55772b(0xd6)),{id:_0x9958b1,title:_0x3d2dcf,icon:_0x52d8fe,class:_0x376abd,mainView:_0x2eb880}=this[_0x55772b(0xc8)];_0x2eb880[_0x55772b(0xca)](..._0x1d447a)['to'](this),_0x1c27eb[_0x55772b(0xd1)]({'title':_0x3d2dcf,'icon':_0x52d8fe,'hasCloseButton':!0x0,'id':_0x9958b1,'position':this[_0x55772b(0x84)][_0x55772b(0xcf)](this),'className':_0x55772b(0xc2)+(_0x376abd||''),'content':_0x2eb880,'onShow':_0x4f557f=>{const _0x2d5467=_0x55772b;this[_0x2d5467(0xcd)](),this[_0x2d5467(0x98)]();const _0x1ba5c8=this[_0x2d5467(0x86)]();_0x1ba5c8&&_0x1ba5c8[0x0]&&_0x49de3d({'target':_0x1ba5c8[0x0],'ancestorOffset':0x14,'alignToTop':!0x0,'viewportOffset':{'top':0x14,'bottom':0x14,'left':0x0,'right':0x0}}),this[_0x2d5467(0x89)]=!0x0,_0x4f557f[_0x2d5467(0x9b)](_0x2d5467(0xa2),()=>{const _0xb58922=_0x2d5467;this[_0xb58922(0xba)](_0xb58922(0xa3),{'id':_0x9958b1});},{'priority':_0x2d5467(0xd2)});},'onHide':()=>{const _0x5b8c56=_0x55772b;this[_0x5b8c56(0xbc)](this[_0x5b8c56(0xc8)][_0x5b8c56(0xa7)]),this[_0x5b8c56(0x90)](),this[_0x5b8c56(0xba)](_0x5b8c56(0xbd),{'id':_0x9958b1}),this[_0x5b8c56(0x89)]=!0x1;}});}[_0x2f8c68(0x84)](_0x15494c,_0x47fb1b){const _0x56a6c5=_0x2f8c68;if(!_0x47fb1b)return null;const _0xfbb27=this[_0x56a6c5(0x86)]();if(!_0xfbb27||0x0===_0xfbb27[_0x56a6c5(0x96)])return{'left':Math[_0x56a6c5(0x9c)](_0x47fb1b[_0x56a6c5(0x8d)]+_0x47fb1b[_0x56a6c5(0xad)]/0x2-_0x15494c[_0x56a6c5(0xad)]/0x2),'top':Math[_0x56a6c5(0x9c)](_0x47fb1b[_0x56a6c5(0xb3)]+_0x47fb1b[_0x56a6c5(0xa1)]/0x2-_0x15494c[_0x56a6c5(0xa1)]/0x2)};const _0x2a01be=Math[_0x56a6c5(0x9c)](_0x47fb1b[_0x56a6c5(0x8d)]+_0x47fb1b[_0x56a6c5(0xad)]/0x2-_0x15494c[_0x56a6c5(0xad)]/0x2),_0x25295e=_0xfbb27[_0x56a6c5(0xd0)](_0x3a18f2=>new _0x351304(_0x3a18f2)),_0x21f23d=_0x15494c[_0x56a6c5(0xa1)];return{'left':_0x2a01be,'top':this[_0x56a6c5(0xae)](_0x25295e,_0x21f23d,_0x47fb1b)};}[_0x2f8c68(0xae)](_0x5bac6e,_0x228016,_0x17361f){const _0x4cac82=_0x2f8c68,_0x35e44a=new _0x351304(_0xf2c7bb[_0x4cac82(0xac)]),_0x595ada=_0x5bac6e[_0x4cac82(0xd0)](_0x1a0c3f=>_0x1a0c3f[_0x4cac82(0x8a)]())[_0x4cac82(0xc5)](_0x309b22=>_0x309b22),_0x4f2165=_0x351304[_0x4cac82(0xb0)](_0x595ada);if(!_0x4f2165)return Math[_0x4cac82(0x9c)](_0x17361f[_0x4cac82(0xb3)]+_0x17361f[_0x4cac82(0xa1)]/0x2);const _0x57b8f0=_0x35e44a[_0x4cac82(0x81)](_0x4f2165);if(!_0x57b8f0)return Math[_0x4cac82(0x9c)](_0x17361f[_0x4cac82(0xb3)]+_0x17361f[_0x4cac82(0xa1)]/0x2);const _0x46c9fc=_0x17361f[_0x4cac82(0x8a)](),_0x13f738=_0x46c9fc&&_0x4f2165[_0x4cac82(0xa1)]>_0x46c9fc[_0x4cac82(0xa1)],_0x16f04b=_0x57b8f0[_0x4cac82(0xb3)],_0x2c48cf=_0x57b8f0[_0x4cac82(0xc0)];if(_0x13f738){const _0x48b0a2=(_0x46c9fc||_0x35e44a)[_0x4cac82(0xa1)]/0x2-_0x228016/0x2,_0x41cc81=_0x16f04b-at-_0x17361f[_0x4cac82(0xb3)],_0x279d3e=_0x17361f[_0x4cac82(0xc0)]-_0x2c48cf-at;return _0x41cc81>=_0x228016?Math[_0x4cac82(0x7a)](at,_0x16f04b-_0x228016-at):_0x279d3e>=_0x228016?_0x2c48cf+at:Math[_0x4cac82(0x7a)](at,_0x48b0a2);}const _0x3053b9=_0x16f04b-_0x228016,_0xdc83de=_0x17361f[_0x4cac82(0xc0)]-_0x2c48cf-at,_0x5c935a=_0x16f04b-at-_0x17361f[_0x4cac82(0xb3)];let _0x4efcaf;if(_0xdc83de>=_0x228016)_0x4efcaf=_0x2c48cf+at;else{if(_0x5c935a>=_0x228016)_0x4efcaf=_0x3053b9-at;else _0x4efcaf=_0x16f04b+_0x4f2165[_0x4cac82(0xa1)]/0x2-_0x228016/0x2;}return _0x4efcaf;}[_0x2f8c68(0x98)](){const _0x3dc586=_0x2f8c68,_0xb51600=_0x55a8f7(this[_0x3dc586(0xa9)]);this[_0x3dc586(0x80)](_0xb51600[_0x3dc586(0xaa)][_0x3dc586(0xce)],_0x3dc586(0xa5),()=>{const _0x1a3ab9=_0x3dc586;if(!this[_0x1a3ab9(0xa6)]){for(const {name:_0x322113,data:{newRange:_0x58e24c}}of _0xb51600[_0x1a3ab9(0xaa)][_0x1a3ab9(0xce)][_0x1a3ab9(0xa0)][_0x1a3ab9(0xb4)]())if(_0x322113[_0x1a3ab9(0xcc)](_0x4837d3+':')&&(_0x58e24c&&(_0x58e24c[_0x1a3ab9(0xd5)][_0x1a3ab9(0x97)](_0x58e24c[_0x1a3ab9(0xb6)])||_0x1a3ab9(0x9a)==_0x58e24c[_0x1a3ab9(0xc1)][_0x1a3ab9(0x9d)])||null==_0x58e24c)){const _0x5db400=_0x36792d(this[_0x1a3ab9(0xa9)][_0x1a3ab9(0xd7)],_0x1a3ab9(0xbf));this[_0x1a3ab9(0xc8)][_0x1a3ab9(0x83)][_0x1a3ab9(0x9e)](_0x5db400),this[_0x1a3ab9(0xba)](_0x1a3ab9(0xd3));}}});}[_0x2f8c68(0x90)](){const _0x13ba56=_0x2f8c68,_0x1396b7=_0x55a8f7(this[_0x13ba56(0xa9)]);this[_0x13ba56(0xc8)][_0x13ba56(0x83)][_0x13ba56(0x88)](),this[_0x13ba56(0xb7)](_0x1396b7[_0x13ba56(0xaa)][_0x13ba56(0xce)]);}[_0x2f8c68(0x86)](){const _0x276ca6=_0x2f8c68,_0x2fbd0e=_0x55a8f7(this[_0x276ca6(0xa9)]);return _0x2d4577(_0x2fbd0e[_0x276ca6(0x91)],[..._0x2fbd0e[_0x276ca6(0xaa)][_0x276ca6(0xab)][_0x276ca6(0xb8)](_0x276ca6(0x7c)),..._0x2fbd0e[_0x276ca6(0xaa)][_0x276ca6(0xab)][_0x276ca6(0xb8)](_0x276ca6(0xc6))]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x4620(_0x2b53eb,_0x160056){const _0x12261e=_0x1226();return _0x4620=function(_0x46205d,_0x172af8){_0x46205d=_0x46205d-0xd4;let _0x14eeb8=_0x12261e[_0x46205d];return _0x14eeb8;},_0x4620(_0x2b53eb,_0x160056);}const _0x1d5a39=_0x4620;(function(_0x1ff00f,_0x473b52){const _0x2fe130=_0x4620,_0x5e6f29=_0x1ff00f();while(!![]){try{const _0x12b1f1=-parseInt(_0x2fe130(0xd9))/0x1*(-parseInt(_0x2fe130(0xe2))/0x2)+parseInt(_0x2fe130(0xea))/0x3+parseInt(_0x2fe130(0xe8))/0x4+parseInt(_0x2fe130(0xeb))/0x5+-parseInt(_0x2fe130(0xd5))/0x6*(-parseInt(_0x2fe130(0xe9))/0x7)+-parseInt(_0x2fe130(0xee))/0x8+-parseInt(_0x2fe130(0xe4))/0x9;if(_0x12b1f1===_0x473b52)break;else _0x5e6f29['push'](_0x5e6f29['shift']());}catch(_0x18a601){_0x5e6f29['push'](_0x5e6f29['shift']());}}}(_0x1226,0x89fcd));import{View as _0x4e17ff}from'ckeditor5/src/ui.js';export const AI_BALLOON_VIEW_EVENT_NAMES=[_0x1d5a39(0xe5),_0x1d5a39(0xd7),_0x1d5a39(0xd6),_0x1d5a39(0xdb)];function _0x1226(){const _0x56e7d1=['showBlockingError','ck-ai-suggestion__error','95174CRlyCN','_errorMessage','20616003isfMlQ','applySuggestion','hideError','ck-hidden','676248yabCVE','167062DOstIq','3042774wPtrTD','5217750PtqwjN','ck-ai-balloon-error','set','1825216JRtUWr','showError','setTemplate','bindTemplate','locale','48takmKb','showNext','insertSuggestion','span','14nboWKD','_createErrorView','showPrevious','div','_isErrorVisible','ck-ai-suggestion__error-text','_errorView'];_0x1226=function(){return _0x56e7d1;};return _0x1226();}export class AIBalloonView extends _0x4e17ff{[_0x1d5a39(0xdf)];constructor(_0x11a2f2){const _0x5079c1=_0x1d5a39;super(_0x11a2f2),this[_0x5079c1(0xed)](_0x5079c1(0xe3),''),this[_0x5079c1(0xed)](_0x5079c1(0xdd),!0x1);}[_0x1d5a39(0xe0)](_0x2788e3){const _0x2949f5=_0x1d5a39;this[_0x2949f5(0xef)](_0x2788e3);}[_0x1d5a39(0xef)](_0x10906c){const _0x13b0b6=_0x1d5a39;this[_0x13b0b6(0xdf)]||(this[_0x13b0b6(0xdf)]=this[_0x13b0b6(0xda)]()),this[_0x13b0b6(0xe3)]=_0x10906c,this[_0x13b0b6(0xdd)]=!0x0;}[_0x1d5a39(0xe6)](){const _0x84dbf6=_0x1d5a39;this[_0x84dbf6(0xdd)]=!0x1;}[_0x1d5a39(0xda)](){const _0x4de83e=_0x1d5a39,_0x3d0970=new _0x4e17ff(this[_0x4de83e(0xd4)]),_0x4d57e4=new _0x4e17ff(this[_0x4de83e(0xd4)]);return _0x4d57e4[_0x4de83e(0xf0)]({'tag':_0x4de83e(0xd8),'attributes':{'class':['ck',_0x4de83e(0xde)]},'children':[{'text':this[_0x4de83e(0xf1)]['to'](_0x4de83e(0xe3))}]}),_0x3d0970[_0x4de83e(0xf0)]({'tag':_0x4de83e(0xdc),'attributes':{'class':['ck',_0x4de83e(0xe1),_0x4de83e(0xec),this[_0x4de83e(0xf1)]['if'](_0x4de83e(0xdd),_0x4de83e(0xe7),_0x544ded=>!_0x544ded)]},'children':[_0x4d57e4]}),_0x3d0970;}}
23
+ const _0x8a7a7=_0x1d95;(function(_0x30c2ac,_0x3d25fc){const _0x2e42ca=_0x1d95,_0x6dc776=_0x30c2ac();while(!![]){try{const _0x2f692a=parseInt(_0x2e42ca(0x13f))/0x1*(-parseInt(_0x2e42ca(0x13d))/0x2)+parseInt(_0x2e42ca(0x14a))/0x3*(parseInt(_0x2e42ca(0x153))/0x4)+parseInt(_0x2e42ca(0x152))/0x5+-parseInt(_0x2e42ca(0x155))/0x6*(parseInt(_0x2e42ca(0x13c))/0x7)+parseInt(_0x2e42ca(0x147))/0x8+parseInt(_0x2e42ca(0x144))/0x9+parseInt(_0x2e42ca(0x13e))/0xa;if(_0x2f692a===_0x3d25fc)break;else _0x6dc776['push'](_0x6dc776['shift']());}catch(_0x492232){_0x6dc776['push'](_0x6dc776['shift']());}}}(_0x48ff,0x535f4));function _0x1d95(_0x154e5e,_0x47f853){const _0x48ffc7=_0x48ff();return _0x1d95=function(_0x1d9581,_0x45ce03){_0x1d9581=_0x1d9581-0x13a;let _0x28a613=_0x48ffc7[_0x1d9581];return _0x28a613;},_0x1d95(_0x154e5e,_0x47f853);}function _0x48ff(){const _0x1be21a=['showNext','1456295TZEFnS','16jmcjNJ','locale','6jddzBM','_isErrorVisible','bindTemplate','showError','hideError','set','3916591KomXno','3310cSLUaF','3667010rwhezL','187sVLLCT','setTemplate','_errorView','ck-hidden','showPrevious','177849JKXLTf','ck-ai-balloon-error','insertSuggestion','3084360jNJXPx','_errorMessage','applySuggestion','110418WVQoSE','_createErrorView','div','ck-ai-suggestion__error-text','span','showBlockingError','ck-ai-suggestion__error'];_0x48ff=function(){return _0x1be21a;};return _0x48ff();}import{View as _0x6a0e3b}from'ckeditor5/src/ui.js';export const AI_BALLOON_VIEW_EVENT_NAMES=[_0x8a7a7(0x149),_0x8a7a7(0x146),_0x8a7a7(0x151),_0x8a7a7(0x143)];export class AIBalloonView extends _0x6a0e3b{[_0x8a7a7(0x141)];constructor(_0x243cc4){const _0x2775ad=_0x8a7a7;super(_0x243cc4),this[_0x2775ad(0x13b)](_0x2775ad(0x148),''),this[_0x2775ad(0x13b)](_0x2775ad(0x156),!0x1);}[_0x8a7a7(0x14f)](_0x564538){const _0x1c4ca8=_0x8a7a7;this[_0x1c4ca8(0x158)](_0x564538);}[_0x8a7a7(0x158)](_0x9d38e8){const _0x190e69=_0x8a7a7;this[_0x190e69(0x141)]||(this[_0x190e69(0x141)]=this[_0x190e69(0x14b)]()),this[_0x190e69(0x148)]=_0x9d38e8,this[_0x190e69(0x156)]=!0x0;}[_0x8a7a7(0x13a)](){const _0x1c8de5=_0x8a7a7;this[_0x1c8de5(0x156)]=!0x1;}[_0x8a7a7(0x14b)](){const _0x23286c=_0x8a7a7,_0x4cbfd6=new _0x6a0e3b(this[_0x23286c(0x154)]),_0x4e27ae=new _0x6a0e3b(this[_0x23286c(0x154)]);return _0x4e27ae[_0x23286c(0x140)]({'tag':_0x23286c(0x14e),'attributes':{'class':['ck',_0x23286c(0x14d)]},'children':[{'text':this[_0x23286c(0x157)]['to'](_0x23286c(0x148))}]}),_0x4cbfd6[_0x23286c(0x140)]({'tag':_0x23286c(0x14c),'attributes':{'class':['ck',_0x23286c(0x150),_0x23286c(0x145),this[_0x23286c(0x157)]['if'](_0x23286c(0x156),_0x23286c(0x142),_0x31b136=>!_0x31b136)]},'children':[_0x4e27ae]}),_0x4cbfd6;}}
@@ -46,13 +46,13 @@ export declare class AIChat extends ContextPlugin {
46
46
  /**
47
47
  * Submits a user message to the currently active conversation.
48
48
  *
49
- * You can pass additional parameters with the message using `attributes` property.
49
+ * You can pass additional parameters with the message using the `attributes` property.
50
50
  *
51
- * Following properties are currently supported in `attributes`:
51
+ * The following properties are currently supported in `attributes`:
52
52
  *
53
53
  * * `displayedPrompt` (`string`) - If set, will be displayed instead of the actual `message`. You can use it to display a shorter,
54
54
  * or otherwise different or friendlier user message. This is also respected in the conversation history. Original `message` will
55
- * be still used to query the AI model.
55
+ * still be used to query the AI model.
56
56
  *
57
57
  * Besides supported properties, `attributes` can be used to save any additional metadata with the message, which can be used by your
58
58
  * integration in any way. Data passed in `attributes` will be saved in the conversation history. If your integration connects external
@@ -70,7 +70,7 @@ export declare class AIChat extends ContextPlugin {
70
70
  /**
71
71
  * Registers a function that is called when data from a custom AI tool is received from the backend service.
72
72
  *
73
- * This data can be only received if you connected your own custom AI tool with the Cloud Services AI backend. By registering a callback
73
+ * This data can only be received if you connect your own custom AI tool with the Cloud Services AI backend. By registering a callback
74
74
  * function, you can implement custom handling for this data, such as displaying custom elements inside the AI chat component, or
75
75
  * setting a custom loading message.
76
76
  *
@@ -78,17 +78,17 @@ export declare class AIChat extends ContextPlugin {
78
78
  *
79
79
  * * `toolData` – data returned by the tool,
80
80
  * * `api` – the {@link module:ai/aichat/aichat~AIChatInteractionAPI AI Chat Interaction API},
81
- * enables manipulating the current interaction accordingly to the received data.
81
+ * enables manipulating the current interaction according to the received data.
82
82
  *
83
83
  * The callback is called for data received from all tools that you have connected, and both for tool results and tool notifications.
84
84
  * Check `toolData.toolName` and `toolData.type` to handle various tools and actions. You can register multiple callbacks to better
85
85
  * organize your code.
86
86
  *
87
- * Please remember, that your tool is fully responsible for generating contents of `toolData.data` and `toolData.attributes`.
87
+ * Please remember, that your tool is fully responsible for generating the contents of `toolData.data` and `toolData.attributes`.
88
88
  *
89
89
  * Example usage:
90
90
  *
91
- * 1. Register a callback that changes loading message when tool "my-tool" returns a notification:
91
+ * 1. Register a callback that changes the loading message when tool "my-tool" returns a notification:
92
92
  *
93
93
  * ```ts
94
94
  * aiChat.registerToolDataCallback( ( toolData, api ) => {
@@ -98,7 +98,7 @@ export declare class AIChat extends ContextPlugin {
98
98
  * } );
99
99
  * ```
100
100
  *
101
- * 2. Register a callback to create custom text chat reply based on custom tool data:
101
+ * 2. Register a callback to create a custom text chat reply based on custom tool data:
102
102
  *
103
103
  * ```ts
104
104
  * aiChat.registerToolDataCallback( ( toolData, api ) => {
@@ -173,6 +173,10 @@ export interface AIChatConfig {
173
173
  * @default 'new'
174
174
  */
175
175
  initialConversation?: string;
176
+ /**
177
+ * The welcome message to be displayed when the AI chat is initialized. When not set, the default welcome message will be used.
178
+ */
179
+ welcomeMessage?: string;
176
180
  }
177
181
  /**
178
182
  * An API allowing to manipulate the {@link module:ai/aichat/aichat~AIChat AI Chat} interaction while it is being streamed
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x37e7b6=_0x56df;(function(_0x34aa10,_0x4445b0){var _0x3ee6aa=_0x56df,_0x13019a=_0x34aa10();while(!![]){try{var _0x3dd407=-parseInt(_0x3ee6aa(0x8f))/0x1+parseInt(_0x3ee6aa(0xa3))/0x2+parseInt(_0x3ee6aa(0xa4))/0x3*(-parseInt(_0x3ee6aa(0xab))/0x4)+parseInt(_0x3ee6aa(0x94))/0x5*(-parseInt(_0x3ee6aa(0x9b))/0x6)+-parseInt(_0x3ee6aa(0x9a))/0x7+-parseInt(_0x3ee6aa(0xa9))/0x8*(parseInt(_0x3ee6aa(0xac))/0x9)+parseInt(_0x3ee6aa(0xa6))/0xa;if(_0x3dd407===_0x4445b0)break;else _0x13019a['push'](_0x13019a['shift']());}catch(_0x42da58){_0x13019a['push'](_0x13019a['shift']());}}}(_0x44f3,0x2b732));function _0x56df(_0x242d6b,_0x2badde){var _0x44f399=_0x44f3();return _0x56df=function(_0x56df3f,_0x2a9a62){_0x56df3f=_0x56df3f-0x8f;var _0x3f1edd=_0x44f399[_0x56df3f];return _0x3f1edd;},_0x56df(_0x242d6b,_0x2badde);}import{ContextPlugin as _0x1eaf62}from'ckeditor5/src/core.js';function _0x44f3(){var _0x451ca8=['53142xpXuqS','isPremiumPlugin','get','plugins','startConversation','sendMessage','addSelectionToChatContext','isOfficialPlugin','424942PAESZa','33JrvSDA','config','5338280wZultN','focusPromptInput','requires','347032aQvjHb','ai.chat.initialConversation','25124mTucKr','18RKmutV','341571xnNjzq','pluginName','new','registerToolDataCallback','removeSelectionFromChatContext','5UlYnyw','ai.chat.context','_registerToolDataCallback','context','AIChat','define','434364Jlpibx'];_0x44f3=function(){return _0x451ca8;};return _0x44f3();}import{AIChatController as _0x43af56}from'./aichatcontroller.js';import{AIEditing as _0x533a9e}from'../aicore/aiediting.js';import{AIChatUI as _0x19614e}from'./aichatui.js';import{AIChatHistory as _0x2fc3e3}from'../aichathistory/aichathistory.js';export class AIChat extends _0x1eaf62{static get[_0x37e7b6(0xa8)](){return[_0x43af56,_0x533a9e,_0x19614e,_0x2fc3e3];}static get[_0x37e7b6(0x90)](){var _0x1694fc=_0x37e7b6;return _0x1694fc(0x98);}static get[_0x37e7b6(0xa2)](){return!0x0;}static get[_0x37e7b6(0x9c)](){return!0x0;}constructor(_0x5bf2f5){var _0x1dfdd4=_0x37e7b6;super(_0x5bf2f5),this[_0x1dfdd4(0x97)][_0x1dfdd4(0xa5)][_0x1dfdd4(0x99)](_0x1dfdd4(0x95),{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[]}),this[_0x1dfdd4(0x97)][_0x1dfdd4(0xa5)][_0x1dfdd4(0x99)](_0x1dfdd4(0xaa),_0x1dfdd4(0x91));}async[_0x37e7b6(0xa1)](){var _0x424704=_0x37e7b6;await this[_0x424704(0x97)][_0x424704(0x9e)][_0x424704(0x9d)](_0x43af56)[_0x424704(0xa1)]();}async[_0x37e7b6(0x9f)](){var _0x31327f=_0x37e7b6;await this[_0x31327f(0x97)][_0x31327f(0x9e)][_0x31327f(0x9d)](_0x43af56)[_0x31327f(0x9f)]();}async[_0x37e7b6(0xa0)]({message:_0x2ba80a,attributes:_0x18e7a5}){var _0x324326=_0x37e7b6;await this[_0x324326(0x97)][_0x324326(0x9e)][_0x324326(0x9d)](_0x43af56)[_0x324326(0xa0)]({'message':_0x2ba80a,'attributes':_0x18e7a5});}[_0x37e7b6(0x93)](){var _0x175bfb=_0x37e7b6;this[_0x175bfb(0x97)][_0x175bfb(0x9e)][_0x175bfb(0x9d)](_0x43af56)[_0x175bfb(0x93)]();}[_0x37e7b6(0xa7)](){var _0x414ab4=_0x37e7b6;this[_0x414ab4(0x97)][_0x414ab4(0x9e)][_0x414ab4(0x9d)](_0x43af56)[_0x414ab4(0xa7)]();}[_0x37e7b6(0x92)](_0x42317e){var _0x41c33e=_0x37e7b6;this[_0x41c33e(0x97)][_0x41c33e(0x9e)][_0x41c33e(0x9d)](_0x43af56)[_0x41c33e(0x96)](_0x42317e);}}
23
+ var _0x423e8d=_0x2ed1;function _0x2ed1(_0x4062d2,_0x776ef1){var _0x33e2dc=_0x33e2();return _0x2ed1=function(_0x2ed16b,_0x5d66fb){_0x2ed16b=_0x2ed16b-0x199;var _0x5cdec6=_0x33e2dc[_0x2ed16b];return _0x5cdec6;},_0x2ed1(_0x4062d2,_0x776ef1);}(function(_0x375227,_0x2972c3){var _0x248edb=_0x2ed1,_0xf4525c=_0x375227();while(!![]){try{var _0x1f69fb=parseInt(_0x248edb(0x1a4))/0x1+parseInt(_0x248edb(0x1a7))/0x2*(-parseInt(_0x248edb(0x19a))/0x3)+parseInt(_0x248edb(0x1b1))/0x4+parseInt(_0x248edb(0x199))/0x5+parseInt(_0x248edb(0x1a3))/0x6*(parseInt(_0x248edb(0x1b5))/0x7)+-parseInt(_0x248edb(0x19f))/0x8*(-parseInt(_0x248edb(0x1b2))/0x9)+-parseInt(_0x248edb(0x1ae))/0xa;if(_0x1f69fb===_0x2972c3)break;else _0xf4525c['push'](_0xf4525c['shift']());}catch(_0x39c91d){_0xf4525c['push'](_0xf4525c['shift']());}}}(_0x33e2,0xa7d5c));import{ContextPlugin as _0xbec9a1}from'ckeditor5/src/core.js';function _0x33e2(){var _0xa3f114=['plugins','addSelectionToChatContext','pluginName','registerToolDataCallback','23108390MxkvCl','startConversation','sendMessage','5026048vKcAgG','36Sbzmrj','ai.chat.initialConversation','removeSelectionFromChatContext','25697jStlrb','_registerToolDataCallback','4730995pQhmST','15108mkERsi','focusPromptInput','AIChat','isPremiumPlugin','ai.chat.context','2410048dLYvQV','get','config','context','618GnuQYL','249859eRsRyS','isOfficialPlugin','requires','412NsZvmz','define','new'];_0x33e2=function(){return _0xa3f114;};return _0x33e2();}import{AIChatController as _0x2c53ea}from'./aichatcontroller.js';import{AIEditing as _0x4d8e41}from'../aicore/aiediting.js';import{AIChatUI as _0x3db97d}from'./aichatui.js';import{AIChatHistory as _0x4ecc6b}from'../aichathistory/aichathistory.js';export class AIChat extends _0xbec9a1{static get[_0x423e8d(0x1a6)](){return[_0x2c53ea,_0x4d8e41,_0x3db97d,_0x4ecc6b];}static get[_0x423e8d(0x1ac)](){var _0x30f4f3=_0x423e8d;return _0x30f4f3(0x19c);}static get[_0x423e8d(0x1a5)](){return!0x0;}static get[_0x423e8d(0x19d)](){return!0x0;}constructor(_0x17b068){var _0x3f0db0=_0x423e8d;super(_0x17b068),this[_0x3f0db0(0x1a2)][_0x3f0db0(0x1a1)][_0x3f0db0(0x1a8)](_0x3f0db0(0x19e),{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[]}),this[_0x3f0db0(0x1a2)][_0x3f0db0(0x1a1)][_0x3f0db0(0x1a8)](_0x3f0db0(0x1b3),_0x3f0db0(0x1a9));}async[_0x423e8d(0x1ab)](){var _0x51c17a=_0x423e8d;await this[_0x51c17a(0x1a2)][_0x51c17a(0x1aa)][_0x51c17a(0x1a0)](_0x2c53ea)[_0x51c17a(0x1ab)]();}async[_0x423e8d(0x1af)](){var _0x170d1a=_0x423e8d;await this[_0x170d1a(0x1a2)][_0x170d1a(0x1aa)][_0x170d1a(0x1a0)](_0x2c53ea)[_0x170d1a(0x1af)]();}async[_0x423e8d(0x1b0)]({message:_0x2ff38a,attributes:_0x5d08b4}){var _0x58d7d3=_0x423e8d;await this[_0x58d7d3(0x1a2)][_0x58d7d3(0x1aa)][_0x58d7d3(0x1a0)](_0x2c53ea)[_0x58d7d3(0x1b0)]({'message':_0x2ff38a,'attributes':_0x5d08b4});}[_0x423e8d(0x1b4)](){var _0x5eb0ca=_0x423e8d;this[_0x5eb0ca(0x1a2)][_0x5eb0ca(0x1aa)][_0x5eb0ca(0x1a0)](_0x2c53ea)[_0x5eb0ca(0x1b4)]();}[_0x423e8d(0x19b)](){var _0x2356ea=_0x423e8d;this[_0x2356ea(0x1a2)][_0x2356ea(0x1aa)][_0x2356ea(0x1a0)](_0x2c53ea)[_0x2356ea(0x19b)]();}[_0x423e8d(0x1ad)](_0x5d3459){var _0x5b31a2=_0x423e8d;this[_0x5b31a2(0x1a2)][_0x5b31a2(0x1aa)][_0x5b31a2(0x1a0)](_0x2c53ea)[_0x5b31a2(0x1b6)](_0x5d3459);}}