@ckeditor/ckeditor5-ai 47.1.0-alpha.2 → 47.2.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (498) hide show
  1. package/build/ai.js +2 -2
  2. package/build/translations/af.js +1 -1
  3. package/build/translations/ar.js +1 -1
  4. package/build/translations/ast.js +1 -1
  5. package/build/translations/az.js +1 -1
  6. package/build/translations/be.js +1 -1
  7. package/build/translations/bg.js +1 -1
  8. package/build/translations/bn.js +1 -1
  9. package/build/translations/bs.js +1 -1
  10. package/build/translations/ca.js +1 -1
  11. package/build/translations/cs.js +1 -1
  12. package/build/translations/da.js +1 -1
  13. package/build/translations/de-ch.js +1 -1
  14. package/build/translations/de.js +1 -1
  15. package/build/translations/el.js +1 -1
  16. package/build/translations/en-au.js +1 -1
  17. package/build/translations/en-gb.js +1 -1
  18. package/build/translations/eo.js +1 -1
  19. package/build/translations/es-co.js +1 -1
  20. package/build/translations/es.js +1 -1
  21. package/build/translations/et.js +1 -1
  22. package/build/translations/eu.js +1 -1
  23. package/build/translations/fa.js +1 -1
  24. package/build/translations/fi.js +1 -1
  25. package/build/translations/fr.js +1 -1
  26. package/build/translations/gl.js +1 -1
  27. package/build/translations/gu.js +1 -1
  28. package/build/translations/he.js +1 -1
  29. package/build/translations/hi.js +1 -1
  30. package/build/translations/hr.js +1 -1
  31. package/build/translations/hu.js +1 -1
  32. package/build/translations/hy.js +1 -1
  33. package/build/translations/id.js +1 -1
  34. package/build/translations/it.js +1 -1
  35. package/build/translations/ja.js +1 -1
  36. package/build/translations/jv.js +1 -1
  37. package/build/translations/kk.js +1 -1
  38. package/build/translations/km.js +1 -1
  39. package/build/translations/kn.js +1 -1
  40. package/build/translations/ko.js +1 -1
  41. package/build/translations/ku.js +1 -1
  42. package/build/translations/lt.js +1 -1
  43. package/build/translations/lv.js +1 -1
  44. package/build/translations/ms.js +1 -1
  45. package/build/translations/nb.js +1 -1
  46. package/build/translations/ne.js +1 -1
  47. package/build/translations/nl.js +1 -1
  48. package/build/translations/no.js +1 -1
  49. package/build/translations/oc.js +1 -1
  50. package/build/translations/pl.js +1 -1
  51. package/build/translations/pt-br.js +1 -1
  52. package/build/translations/pt.js +1 -1
  53. package/build/translations/ro.js +1 -1
  54. package/build/translations/ru.js +1 -1
  55. package/build/translations/si.js +1 -1
  56. package/build/translations/sk.js +1 -1
  57. package/build/translations/sl.js +1 -1
  58. package/build/translations/sq.js +1 -1
  59. package/build/translations/sr-latn.js +1 -1
  60. package/build/translations/sr.js +1 -1
  61. package/build/translations/sv.js +1 -1
  62. package/build/translations/th.js +1 -1
  63. package/build/translations/ti.js +1 -1
  64. package/build/translations/tk.js +1 -1
  65. package/build/translations/tr.js +1 -1
  66. package/build/translations/tt.js +1 -1
  67. package/build/translations/ug.js +1 -1
  68. package/build/translations/uk.js +1 -1
  69. package/build/translations/ur.js +1 -1
  70. package/build/translations/uz.js +1 -1
  71. package/build/translations/vi.js +1 -1
  72. package/build/translations/zh-cn.js +1 -1
  73. package/build/translations/zh.js +1 -1
  74. package/dist/index-editor.css +573 -203
  75. package/dist/index.css +627 -204
  76. package/dist/index.js +5 -4
  77. package/dist/translations/af.js +1 -1
  78. package/dist/translations/af.umd.js +1 -1
  79. package/dist/translations/ar.js +1 -1
  80. package/dist/translations/ar.umd.js +1 -1
  81. package/dist/translations/ast.js +1 -1
  82. package/dist/translations/ast.umd.js +1 -1
  83. package/dist/translations/az.js +1 -1
  84. package/dist/translations/az.umd.js +1 -1
  85. package/dist/translations/be.js +1 -1
  86. package/dist/translations/be.umd.js +1 -1
  87. package/dist/translations/bg.js +1 -1
  88. package/dist/translations/bg.umd.js +1 -1
  89. package/dist/translations/bn.js +1 -1
  90. package/dist/translations/bn.umd.js +1 -1
  91. package/dist/translations/bs.js +1 -1
  92. package/dist/translations/bs.umd.js +1 -1
  93. package/dist/translations/ca.js +1 -1
  94. package/dist/translations/ca.umd.js +1 -1
  95. package/dist/translations/cs.js +1 -1
  96. package/dist/translations/cs.umd.js +1 -1
  97. package/dist/translations/da.js +1 -1
  98. package/dist/translations/da.umd.js +1 -1
  99. package/dist/translations/de-ch.js +1 -1
  100. package/dist/translations/de-ch.umd.js +1 -1
  101. package/dist/translations/de.js +1 -1
  102. package/dist/translations/de.umd.js +1 -1
  103. package/dist/translations/el.js +1 -1
  104. package/dist/translations/el.umd.js +1 -1
  105. package/dist/translations/en-au.js +1 -1
  106. package/dist/translations/en-au.umd.js +1 -1
  107. package/dist/translations/en-gb.js +1 -1
  108. package/dist/translations/en-gb.umd.js +1 -1
  109. package/dist/translations/en.js +1 -1
  110. package/dist/translations/en.umd.js +1 -1
  111. package/dist/translations/eo.js +1 -1
  112. package/dist/translations/eo.umd.js +1 -1
  113. package/dist/translations/es-co.js +1 -1
  114. package/dist/translations/es-co.umd.js +1 -1
  115. package/dist/translations/es.js +1 -1
  116. package/dist/translations/es.umd.js +1 -1
  117. package/dist/translations/et.js +1 -1
  118. package/dist/translations/et.umd.js +1 -1
  119. package/dist/translations/eu.js +1 -1
  120. package/dist/translations/eu.umd.js +1 -1
  121. package/dist/translations/fa.js +1 -1
  122. package/dist/translations/fa.umd.js +1 -1
  123. package/dist/translations/fi.js +1 -1
  124. package/dist/translations/fi.umd.js +1 -1
  125. package/dist/translations/fr.js +1 -1
  126. package/dist/translations/fr.umd.js +1 -1
  127. package/dist/translations/gl.js +1 -1
  128. package/dist/translations/gl.umd.js +1 -1
  129. package/dist/translations/gu.js +1 -1
  130. package/dist/translations/gu.umd.js +1 -1
  131. package/dist/translations/he.js +1 -1
  132. package/dist/translations/he.umd.js +1 -1
  133. package/dist/translations/hi.js +1 -1
  134. package/dist/translations/hi.umd.js +1 -1
  135. package/dist/translations/hr.js +1 -1
  136. package/dist/translations/hr.umd.js +1 -1
  137. package/dist/translations/hu.js +1 -1
  138. package/dist/translations/hu.umd.js +1 -1
  139. package/dist/translations/hy.js +1 -1
  140. package/dist/translations/hy.umd.js +1 -1
  141. package/dist/translations/id.js +1 -1
  142. package/dist/translations/id.umd.js +1 -1
  143. package/dist/translations/it.js +1 -1
  144. package/dist/translations/it.umd.js +1 -1
  145. package/dist/translations/ja.js +1 -1
  146. package/dist/translations/ja.umd.js +1 -1
  147. package/dist/translations/jv.js +1 -1
  148. package/dist/translations/jv.umd.js +1 -1
  149. package/dist/translations/kk.js +1 -1
  150. package/dist/translations/kk.umd.js +1 -1
  151. package/dist/translations/km.js +1 -1
  152. package/dist/translations/km.umd.js +1 -1
  153. package/dist/translations/kn.js +1 -1
  154. package/dist/translations/kn.umd.js +1 -1
  155. package/dist/translations/ko.js +1 -1
  156. package/dist/translations/ko.umd.js +1 -1
  157. package/dist/translations/ku.js +1 -1
  158. package/dist/translations/ku.umd.js +1 -1
  159. package/dist/translations/lt.js +1 -1
  160. package/dist/translations/lt.umd.js +1 -1
  161. package/dist/translations/lv.js +1 -1
  162. package/dist/translations/lv.umd.js +1 -1
  163. package/dist/translations/ms.js +1 -1
  164. package/dist/translations/ms.umd.js +1 -1
  165. package/dist/translations/nb.js +1 -1
  166. package/dist/translations/nb.umd.js +1 -1
  167. package/dist/translations/ne.js +1 -1
  168. package/dist/translations/ne.umd.js +1 -1
  169. package/dist/translations/nl.js +1 -1
  170. package/dist/translations/nl.umd.js +1 -1
  171. package/dist/translations/no.js +1 -1
  172. package/dist/translations/no.umd.js +1 -1
  173. package/dist/translations/oc.js +1 -1
  174. package/dist/translations/oc.umd.js +1 -1
  175. package/dist/translations/pl.js +1 -1
  176. package/dist/translations/pl.umd.js +1 -1
  177. package/dist/translations/pt-br.js +1 -1
  178. package/dist/translations/pt-br.umd.js +1 -1
  179. package/dist/translations/pt.js +1 -1
  180. package/dist/translations/pt.umd.js +1 -1
  181. package/dist/translations/ro.js +1 -1
  182. package/dist/translations/ro.umd.js +1 -1
  183. package/dist/translations/ru.js +1 -1
  184. package/dist/translations/ru.umd.js +1 -1
  185. package/dist/translations/si.js +1 -1
  186. package/dist/translations/si.umd.js +1 -1
  187. package/dist/translations/sk.js +1 -1
  188. package/dist/translations/sk.umd.js +1 -1
  189. package/dist/translations/sl.js +1 -1
  190. package/dist/translations/sl.umd.js +1 -1
  191. package/dist/translations/sq.js +1 -1
  192. package/dist/translations/sq.umd.js +1 -1
  193. package/dist/translations/sr-latn.js +1 -1
  194. package/dist/translations/sr-latn.umd.js +1 -1
  195. package/dist/translations/sr.js +1 -1
  196. package/dist/translations/sr.umd.js +1 -1
  197. package/dist/translations/sv.js +1 -1
  198. package/dist/translations/sv.umd.js +1 -1
  199. package/dist/translations/th.js +1 -1
  200. package/dist/translations/th.umd.js +1 -1
  201. package/dist/translations/ti.js +1 -1
  202. package/dist/translations/ti.umd.js +1 -1
  203. package/dist/translations/tk.js +1 -1
  204. package/dist/translations/tk.umd.js +1 -1
  205. package/dist/translations/tr.js +1 -1
  206. package/dist/translations/tr.umd.js +1 -1
  207. package/dist/translations/tt.js +1 -1
  208. package/dist/translations/tt.umd.js +1 -1
  209. package/dist/translations/ug.js +1 -1
  210. package/dist/translations/ug.umd.js +1 -1
  211. package/dist/translations/uk.js +1 -1
  212. package/dist/translations/uk.umd.js +1 -1
  213. package/dist/translations/ur.js +1 -1
  214. package/dist/translations/ur.umd.js +1 -1
  215. package/dist/translations/uz.js +1 -1
  216. package/dist/translations/uz.umd.js +1 -1
  217. package/dist/translations/vi.js +1 -1
  218. package/dist/translations/vi.umd.js +1 -1
  219. package/dist/translations/zh-cn.js +1 -1
  220. package/dist/translations/zh-cn.umd.js +1 -1
  221. package/dist/translations/zh.js +1 -1
  222. package/dist/translations/zh.umd.js +1 -1
  223. package/lang/contexts.json +8 -1
  224. package/lang/translations/af.po +52 -4
  225. package/lang/translations/ar.po +52 -4
  226. package/lang/translations/ast.po +52 -4
  227. package/lang/translations/az.po +52 -4
  228. package/lang/translations/be.po +52 -4
  229. package/lang/translations/bg.po +52 -4
  230. package/lang/translations/bn.po +52 -4
  231. package/lang/translations/bs.po +52 -4
  232. package/lang/translations/ca.po +52 -4
  233. package/lang/translations/cs.po +52 -4
  234. package/lang/translations/da.po +52 -4
  235. package/lang/translations/de-ch.po +52 -4
  236. package/lang/translations/de.po +52 -4
  237. package/lang/translations/el.po +52 -4
  238. package/lang/translations/en-au.po +52 -4
  239. package/lang/translations/en-gb.po +52 -4
  240. package/lang/translations/en.po +52 -4
  241. package/lang/translations/eo.po +52 -4
  242. package/lang/translations/es-co.po +52 -4
  243. package/lang/translations/es.po +52 -4
  244. package/lang/translations/et.po +52 -4
  245. package/lang/translations/eu.po +52 -4
  246. package/lang/translations/fa.po +52 -4
  247. package/lang/translations/fi.po +52 -4
  248. package/lang/translations/fr.po +52 -4
  249. package/lang/translations/gl.po +52 -4
  250. package/lang/translations/gu.po +52 -4
  251. package/lang/translations/he.po +52 -4
  252. package/lang/translations/hi.po +52 -4
  253. package/lang/translations/hr.po +52 -4
  254. package/lang/translations/hu.po +52 -4
  255. package/lang/translations/hy.po +52 -4
  256. package/lang/translations/id.po +52 -4
  257. package/lang/translations/it.po +52 -4
  258. package/lang/translations/ja.po +52 -4
  259. package/lang/translations/jv.po +52 -4
  260. package/lang/translations/kk.po +52 -4
  261. package/lang/translations/km.po +52 -4
  262. package/lang/translations/kn.po +52 -4
  263. package/lang/translations/ko.po +52 -4
  264. package/lang/translations/ku.po +52 -4
  265. package/lang/translations/lt.po +52 -4
  266. package/lang/translations/lv.po +52 -4
  267. package/lang/translations/ms.po +52 -4
  268. package/lang/translations/nb.po +52 -4
  269. package/lang/translations/ne.po +52 -4
  270. package/lang/translations/nl.po +52 -4
  271. package/lang/translations/no.po +52 -4
  272. package/lang/translations/oc.po +52 -4
  273. package/lang/translations/pl.po +52 -4
  274. package/lang/translations/pt-br.po +52 -4
  275. package/lang/translations/pt.po +52 -4
  276. package/lang/translations/ro.po +52 -4
  277. package/lang/translations/ru.po +52 -4
  278. package/lang/translations/si.po +52 -4
  279. package/lang/translations/sk.po +52 -4
  280. package/lang/translations/sl.po +52 -4
  281. package/lang/translations/sq.po +52 -4
  282. package/lang/translations/sr-latn.po +52 -4
  283. package/lang/translations/sr.po +52 -4
  284. package/lang/translations/sv.po +52 -4
  285. package/lang/translations/th.po +52 -4
  286. package/lang/translations/ti.po +52 -4
  287. package/lang/translations/tk.po +52 -4
  288. package/lang/translations/tr.po +52 -4
  289. package/lang/translations/tt.po +52 -4
  290. package/lang/translations/ug.po +52 -4
  291. package/lang/translations/uk.po +52 -4
  292. package/lang/translations/ur.po +52 -4
  293. package/lang/translations/uz.po +52 -4
  294. package/lang/translations/vi.po +52 -4
  295. package/lang/translations/zh-cn.po +52 -4
  296. package/lang/translations/zh.po +52 -4
  297. package/package.json +15 -15
  298. package/src/aiactions/aiactions.d.ts +1 -1
  299. package/src/aiactions/aiactions.js +1 -1
  300. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  301. package/src/aiactions/model/aiactionsreply.js +1 -1
  302. package/src/aiassistant/adapters/aiadapter.js +1 -1
  303. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  304. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  305. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  306. package/src/aiassistant/aiassistant.js +1 -1
  307. package/src/aiassistant/aiassistantediting.js +1 -1
  308. package/src/aiassistant/aiassistantui.js +1 -1
  309. package/src/aiassistant/legacyerrors.js +1 -1
  310. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  311. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  312. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  313. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  314. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  315. package/src/aiassistant/ui/form/aiformview.js +1 -1
  316. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  317. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  318. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  319. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  320. package/src/aiassistant/utils/common-translations.js +1 -1
  321. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  322. package/src/aiballoon/aiballoon.d.ts +5 -1
  323. package/src/aiballoon/aiballoon.js +1 -1
  324. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  325. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  326. package/src/aiballoon/ui/aiballoonview.d.ts +40 -1
  327. package/src/aiballoon/ui/aiballoonview.js +1 -1
  328. package/src/aichat/aichat.js +1 -1
  329. package/src/aichat/aichatcontroller.d.ts +1 -1
  330. package/src/aichat/aichatcontroller.js +1 -1
  331. package/src/aichat/aichatui.d.ts +1 -0
  332. package/src/aichat/aichatui.js +1 -1
  333. package/src/aichat/model/aichatcontext.d.ts +4 -0
  334. package/src/aichat/model/aichatcontext.js +1 -1
  335. package/src/aichat/model/aichatconversation.js +1 -1
  336. package/src/aichat/model/aichatinteraction.js +1 -1
  337. package/src/aichat/model/aichatmodels.d.ts +8 -29
  338. package/src/aichat/model/aichatmodels.js +1 -1
  339. package/src/aichat/ui/aichatcontrolsview.d.ts +4 -1
  340. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  341. package/src/aichat/ui/aichatfeedview.d.ts +2 -2
  342. package/src/aichat/ui/aichatfeedview.js +1 -1
  343. package/src/aichat/ui/aichatheaderview.js +1 -1
  344. package/src/aichat/ui/aichatview.d.ts +4 -1
  345. package/src/aichat/ui/aichatview.js +1 -1
  346. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  347. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  348. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  349. package/src/aichat/ui/controls/aichatcontextpanelview.d.ts +4 -1
  350. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  351. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  352. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  353. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  354. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  355. package/src/aichat/ui/controls/resources/{aichatresourceslistview.d.ts → aichatcontextresourceslistview.d.ts} +1 -1
  356. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +23 -0
  357. package/src/aichat/ui/controls/resources/{aichatresourcesview.d.ts → aichatcontextresourcesview.d.ts} +5 -2
  358. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +23 -0
  359. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  360. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.d.ts +4 -0
  361. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  362. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  363. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  364. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  365. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  366. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  367. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  368. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.d.ts +3 -3
  369. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  370. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.d.ts +3 -3
  371. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  372. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  373. package/src/aichat/utils/eventnames.js +1 -1
  374. package/src/aichat/utils/promisequeue.js +1 -1
  375. package/src/aichat/utils/scrollmanager.js +1 -1
  376. package/src/aichathistory/aichathistory.js +1 -1
  377. package/src/aichathistory/aichathistorycontroller.js +1 -1
  378. package/src/aichathistory/aichathistoryui.js +1 -1
  379. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  380. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  381. package/src/aichathistory/ui/aichathistorylistitemview.d.ts +1 -1
  382. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -1
  383. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  384. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  385. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  386. package/src/aiconfig.d.ts +28 -7
  387. package/src/aicore/aiconnector.d.ts +1 -0
  388. package/src/aicore/aiconnector.js +1 -1
  389. package/src/aicore/aiediting.js +1 -1
  390. package/src/aicore/model/aicapabilities.js +1 -1
  391. package/src/aicore/model/aicontext.js +1 -1
  392. package/src/aicore/model/aiinteraction.js +1 -1
  393. package/src/aicore/model/aimodels.d.ts +66 -0
  394. package/src/aicore/model/aimodels.js +23 -0
  395. package/src/aicore/model/aireply.d.ts +9 -1
  396. package/src/aicore/model/aireply.js +1 -1
  397. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  398. package/src/aicore/pipeline/airesponseparser.js +2 -2
  399. package/src/aicore/ui/aidisclaimerview.js +1 -1
  400. package/src/aicore/ui/aiskeleton.js +1 -1
  401. package/src/aicore/ui/aispinner.js +1 -1
  402. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  403. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.d.ts +5 -2
  404. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  405. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.d.ts +3 -1
  406. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  407. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.d.ts +6 -2
  408. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  409. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  410. package/src/aicore/utils/common-translations.js +1 -1
  411. package/src/aicore/utils/createresizebutton.js +1 -1
  412. package/src/aicore/utils/documentposition.js +1 -1
  413. package/src/aicore/utils/documentrange.js +1 -1
  414. package/src/aicore/utils/eventnames.js +1 -1
  415. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  416. package/src/aicore/utils/getoperationsfromreply.d.ts +2 -1
  417. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  418. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  419. package/src/aicore/utils/htmlparser.js +1 -1
  420. package/src/aicore/utils/htmlstreamer.js +1 -1
  421. package/src/aieditorintegration/aieditorintegration.d.ts +2 -1
  422. package/src/aieditorintegration/aieditorintegration.js +1 -1
  423. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  424. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  425. package/src/aiquickactions/aiquickactions.js +1 -1
  426. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  427. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  428. package/src/aiquickactions/aiquickactionsui.js +1 -1
  429. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  430. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  431. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  432. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  433. package/src/aireviewmode/aireviewmode.js +1 -1
  434. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  435. package/src/aireviewmode/aireviewmodeediting.d.ts +18 -0
  436. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  437. package/src/aireviewmode/aireviewmodeui.d.ts +1 -1
  438. package/src/aireviewmode/aireviewmodeui.js +1 -1
  439. package/src/aireviewmode/model/aireviewcheck.js +1 -1
  440. package/src/aireviewmode/model/aireviewcheckcustom.d.ts +3 -3
  441. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  442. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  443. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  444. package/src/aireviewmode/model/aireviewcheckresultchange.d.ts +1 -1
  445. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  446. package/src/aireviewmode/model/aireviewcheckrun.d.ts +9 -10
  447. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  448. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  449. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  450. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  451. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  452. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.d.ts +6 -0
  453. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  454. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  455. package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.d.ts +13 -0
  456. package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +23 -0
  457. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  458. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.d.ts +9 -1
  459. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  460. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  461. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.d.ts +0 -4
  462. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  463. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  464. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  465. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  466. package/src/aitabs/aitabs.js +1 -1
  467. package/src/aitabs/aitabsmainview.js +1 -1
  468. package/src/aitabs/tabs/aitabsview.js +1 -1
  469. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  470. package/src/aitabs/tabs/tabpanelview.js +1 -1
  471. package/src/errors.js +1 -1
  472. package/src/index.d.ts +1 -0
  473. package/src/index.js +1 -1
  474. package/theme/aiballoon/aiballoon.css +12 -0
  475. package/theme/aichat/aichat-controls/aichat-context-chip.css +1 -1
  476. package/theme/aichat/aichat-controls/aichat-context-controls-balloon-panels.css +52 -43
  477. package/theme/aichat/aichat-controls/aichat-controls-button.css +8 -6
  478. package/theme/aichat/aichat-controls/aichat-controls-loader.css +36 -52
  479. package/theme/aichat/aichat-controls/prompt-capabilities.css +0 -1
  480. package/theme/aichat/aichat-controls.css +11 -27
  481. package/theme/aichat/aichat.css +2 -3
  482. package/theme/aichat/aichatfeed.css +1 -27
  483. package/theme/aichat/aichathistory.css +12 -0
  484. package/theme/aichat/aisuggestioncontainer.css +5 -0
  485. package/theme/aireviewmode/aireviewmode-check-list.css +25 -23
  486. package/theme/aireviewmode/aireviewmode-check-run-result.css +45 -0
  487. package/theme/aireviewmode/aireviewmode-check-run.css +28 -5
  488. package/theme/aireviewmode/aireviewmode.css +17 -7
  489. package/theme/aitabs/aitabsview.css +1 -1
  490. package/theme/aitabs/tabs/tabbuttonview.css +1 -0
  491. package/theme/aitabs/tabs/tabsview.css +1 -0
  492. package/theme/common/aibutton.css +27 -0
  493. package/theme/common/aiheader.css +14 -4
  494. package/theme/common/aitrackchanges.css +8 -1
  495. package/src/aichat/ui/controls/resources/aichatresourceslistview.js +0 -23
  496. package/src/aichat/ui/controls/resources/aichatresourcesview.js +0 -23
  497. package/src/aireviewmode/model/aireviewmodels.d.ts +0 -26
  498. package/src/aireviewmode/model/aireviewmodels.js +0 -23
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x11254b=_0x4664;(function(_0x5a250f,_0xa9ece2){var _0x3e1b99=_0x4664,_0x57e3c3=_0x5a250f();while(!![]){try{var _0x24ef0d=parseInt(_0x3e1b99(0x148))/0x1*(parseInt(_0x3e1b99(0x153))/0x2)+parseInt(_0x3e1b99(0x14a))/0x3*(-parseInt(_0x3e1b99(0x143))/0x4)+parseInt(_0x3e1b99(0x150))/0x5+-parseInt(_0x3e1b99(0x151))/0x6*(-parseInt(_0x3e1b99(0x14e))/0x7)+-parseInt(_0x3e1b99(0x146))/0x8+-parseInt(_0x3e1b99(0x147))/0x9+parseInt(_0x3e1b99(0x14d))/0xa;if(_0x24ef0d===_0xa9ece2)break;else _0x57e3c3['push'](_0x57e3c3['shift']());}catch(_0x1bd362){_0x57e3c3['push'](_0x57e3c3['shift']());}}}(_0x1e50,0x4ffaa));function _0x4664(_0x909384,_0x3462d2){var _0x1e5098=_0x1e50();return _0x4664=function(_0x46644e,_0x8a7cd7){_0x46644e=_0x46644e-0x143;var _0x2113db=_0x1e5098[_0x46644e];return _0x2113db;},_0x4664(_0x909384,_0x3462d2);}import{ObservableMixin as _0x16361f}from'ckeditor5/src/utils.js';function _0x1e50(){var _0x4a7ddc=['title','1134820yWShFI','1126405HljKzw','pinned','1906505mQdGSm','6TxtrHd','updateTitle','2yUQHaR','4piZEzm','set','createdAt','2113136BMBszn','2573838bTlbiv','559571NeVsbO','updatedAt','1012653KGbZZW','updatePinned'];_0x1e50=function(){return _0x4a7ddc;};return _0x1e50();}import{escape as _0x10cf01}from'es-toolkit/compat';export class AIChatHistoryItem extends _0x16361f(){['id'];[_0x11254b(0x145)];constructor({id:_0x1b6aab,title:_0x5eccdf,createdAt:_0x5b510b,updatedAt:_0x1fe41e,pinned:_0x3075b6}){var _0x15eb5f=_0x11254b;super(),this['id']=_0x1b6aab,this[_0x15eb5f(0x145)]=new Date(_0x5b510b),this[_0x15eb5f(0x144)](_0x15eb5f(0x14c),_0x5eccdf),this[_0x15eb5f(0x144)](_0x15eb5f(0x149),_0x1fe41e?new Date(_0x1fe41e):null),this[_0x15eb5f(0x144)](_0x15eb5f(0x14f),_0x3075b6||!0x1);}[_0x11254b(0x152)](_0x132c70){var _0x25bbf1=_0x11254b;this[_0x25bbf1(0x144)](_0x25bbf1(0x14c),_0x10cf01(_0x132c70)),this[_0x25bbf1(0x149)]=new Date();}[_0x11254b(0x14b)](_0x36a83b){var _0x439a5b=_0x11254b;this[_0x439a5b(0x144)](_0x439a5b(0x14f),_0x36a83b),this[_0x439a5b(0x149)]=new Date();}}
23
+ function _0x360b(){var _0x3e4784=['4411516flcajA','set','19201jkCSEJ','1760QGtxbN','updatePinned','2594934SxXBIS','112045xqBQvl','title','4572684FMtFgQ','7409UOYTQh','146uhbIgZ','30qbeQeu','6517742huyLUs','pinned','updatedAt','276eoLdbg','updateTitle','createdAt','3kLtiBX'];_0x360b=function(){return _0x3e4784;};return _0x360b();}var _0x2abb57=_0x2a2e;function _0x2a2e(_0x898479,_0x5a5cea){var _0x360bb7=_0x360b();return _0x2a2e=function(_0x2a2efd,_0x3cb977){_0x2a2efd=_0x2a2efd-0x1e8;var _0x4c636f=_0x360bb7[_0x2a2efd];return _0x4c636f;},_0x2a2e(_0x898479,_0x5a5cea);}(function(_0x49d7d3,_0x4026fa){var _0x2c399d=_0x2a2e,_0x5176ad=_0x49d7d3();while(!![]){try{var _0x53a34a=-parseInt(_0x2c399d(0x1ef))/0x1*(-parseInt(_0x2c399d(0x1f0))/0x2)+parseInt(_0x2c399d(0x1f8))/0x3*(parseInt(_0x2c399d(0x1f9))/0x4)+parseInt(_0x2c399d(0x1ec))/0x5*(-parseInt(_0x2c399d(0x1f5))/0x6)+parseInt(_0x2c399d(0x1e8))/0x7*(parseInt(_0x2c399d(0x1e9))/0x8)+-parseInt(_0x2c399d(0x1eb))/0x9*(parseInt(_0x2c399d(0x1f1))/0xa)+parseInt(_0x2c399d(0x1f2))/0xb+-parseInt(_0x2c399d(0x1ee))/0xc;if(_0x53a34a===_0x4026fa)break;else _0x5176ad['push'](_0x5176ad['shift']());}catch(_0x2c615a){_0x5176ad['push'](_0x5176ad['shift']());}}}(_0x360b,0x896b5));import{ObservableMixin as _0x1c4057}from'ckeditor5/src/utils.js';import{escape as _0x113113}from'es-toolkit/compat';export class AIChatHistoryItem extends _0x1c4057(){['id'];[_0x2abb57(0x1f7)];constructor({id:_0x525f16,title:_0x4fbf76,createdAt:_0x5a8ae9,updatedAt:_0x4a27b3,pinned:_0x3227eb}){var _0x15d3bf=_0x2abb57;super(),this['id']=_0x525f16,this[_0x15d3bf(0x1f7)]=new Date(_0x5a8ae9),this[_0x15d3bf(0x1fa)](_0x15d3bf(0x1ed),_0x4fbf76),this[_0x15d3bf(0x1fa)](_0x15d3bf(0x1f4),_0x4a27b3?new Date(_0x4a27b3):null),this[_0x15d3bf(0x1fa)](_0x15d3bf(0x1f3),_0x3227eb||!0x1);}[_0x2abb57(0x1f6)](_0x32c0e8){var _0xa61643=_0x2abb57;this[_0xa61643(0x1fa)](_0xa61643(0x1ed),_0x113113(_0x32c0e8)),this[_0xa61643(0x1f4)]=new Date();}[_0x2abb57(0x1ea)](_0x474999){var _0x1f537d=_0x2abb57;this[_0x1f537d(0x1fa)](_0x1f537d(0x1f3),_0x474999),this[_0x1f537d(0x1f4)]=new Date();}}
@@ -11,7 +11,7 @@ interface AIChatHistoryListItemViewConfig {
11
11
  id: string;
12
12
  }
13
13
  declare const AIChatHistoryListItemView_base: import("ckeditor5/src/utils.js").Mixed<typeof ListItemView, import("@ckeditor/ckeditor5-collaboration-core/src/utils/confirmmixin.js").ConfirmApi>;
14
- export declare class AIChatHistoryListItemView extends AIChatHistoryListItemView_base {
14
+ export declare class AIChatHistoryListItemView extends /* #__PURE__ -- @preserve */ AIChatHistoryListItemView_base {
15
15
  id: string;
16
16
  isVisible: boolean;
17
17
  pinned: boolean;
@@ -20,4 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x49abae=_0x12b0;(function(_0x2b22e2,_0x1eb096){const _0x54ed81=_0x12b0,_0x1f2984=_0x2b22e2();while(!![]){try{const _0x38400c=parseInt(_0x54ed81(0x1ec))/0x1+parseInt(_0x54ed81(0x208))/0x2+-parseInt(_0x54ed81(0x234))/0x3*(parseInt(_0x54ed81(0x20b))/0x4)+parseInt(_0x54ed81(0x1fc))/0x5+parseInt(_0x54ed81(0x1f0))/0x6*(parseInt(_0x54ed81(0x1eb))/0x7)+parseInt(_0x54ed81(0x1f8))/0x8*(parseInt(_0x54ed81(0x226))/0x9)+-parseInt(_0x54ed81(0x22f))/0xa*(parseInt(_0x54ed81(0x242))/0xb);if(_0x38400c===_0x1eb096)break;else _0x1f2984['push'](_0x1f2984['shift']());}catch(_0x5456f2){_0x1f2984['push'](_0x1f2984['shift']());}}}(_0x29fd,0x976d5));import{ListItemView as _0x2ebbec,HighlightedTextView as _0x140a75,ButtonView as _0x45e6fe,ListView as _0x2667ea,IconView as _0xce0c39,createDropdown as _0x513490,InputTextView as _0x3cb1ca}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0x279bd1,IconPin as _0x119cde,IconCheck as _0xabb492,IconCancel as _0x4f727b}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x2bc894,ConfirmMixin as _0x1d6bee}from'ckeditor5-collaboration/src/collaboration-core.js';import{escape as _0x3c3118}from'es-toolkit/compat';import{AISpinnerView as _0x436288}from'../../aicore/ui/aispinner.js';import{getTranslation as _0x5d7906}from'../../aicore/utils/common-translations.js';function _0x12b0(_0x505c45,_0x3df57f){const _0x29fd67=_0x29fd();return _0x12b0=function(_0x12b076,_0x1af8c0){_0x12b076=_0x12b076-0x1e5;let _0x5814b9=_0x29fd67[_0x12b076];return _0x5814b9;},_0x12b0(_0x505c45,_0x3df57f);}function _0x29fd(){const _0x3be7bb=['ck-hidden','112406PlInoa','600862bDlasm','isOn','match','set','438fUSkzf','AI_CHAT_HISTORY_CANCEL','AI_CHAT_HISTORY_LOADING_PINNING','_createMenuDropdownView','ck-ai-chat-history__item-actions','bind','_createEditInputView','loadingState','72wLGzoI','element','locale','span','4671295hFXkzm','highlightText','panelPosition','AI_CHAT_HISTORY_PIN_BUTTON','AI_CHAT_HISTORY_ACCEPT','mainContent','selectConversation','_createCheckView','children','_createSpinnerView','bindTemplate','click','2079926hjCoHs','string','updateTitle','2179104JxrSpN','ck-ai-chat-history__item','AI_CHAT_HISTORY_REMOVE_CONFIRM','change:isEdit','ck-confirm-view-cancel','tiny','setTemplate','updateLoadingState','editConversationTitle','ck-ai-loader__text','div','ck-ai-chat-history__item-check','edit:cancel','value','ck-ai-chat-history__item-content','_createAcceptEditButtonView','label','execute','showConfirm','_titleView','panelView','key','AI_CHAT_HISTORY_EDIT_NAME','isEdit','AI_CHAT_HISTORY_LOADING_REMOVING','ck-ai-chat-history__item-title','AI_CHAT_HISTORY_REMOVE','73269dvQbJB','removeConversation','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','focus','ck-ai-chat-history__item-check-container','text','_commitEditInputValue','isVisible','createCollection','26555660xxSMcK','fire','AI_CHAT_HISTORY_LOADING_RENAMING','ck-ai-loader','AI_CHAT_HISTORY_LOADING_UNPINNING','3dHwoIC','pinned','then','ck-ai-chat-history__item-date','ck-ai-chat-history__item-main-content','add','_createPinButtonView','ck-confirm-view-submit','LOADING_LABELS','actions','ck-ai-chat-history__item-row','ck-ai-chat-history__item--edit','setConversationPinned','extendTemplate','11mfbwpL','isMatching','withText','items','clear','addMany','Enter','listitem','buttonView','ck-ai-chat-history__item--active','_createCancelEditButtonView'];_0x29fd=function(){return _0x3be7bb;};return _0x29fd();}export class AIChatHistoryListItemView extends _0x1d6bee(_0x2ebbec){['id'];static [_0x49abae(0x23c)]={'remove':_0x49abae(0x223),'rename':_0x49abae(0x231),'pin':_0x49abae(0x1f2),'unpin':_0x49abae(0x233)};[_0x49abae(0x23d)];[_0x49abae(0x201)];[_0x49abae(0x21e)];constructor(_0x57a31f,_0x5d9c37){const _0x3b1537=_0x49abae;super(_0x57a31f);const _0x38a4b8=this[_0x3b1537(0x206)];this[_0x3b1537(0x1ef)](_0x3b1537(0x222),!0x1),this[_0x3b1537(0x1ef)](_0x3b1537(0x22d),!0x0),this[_0x3b1537(0x1ef)](_0x3b1537(0x235),!!_0x5d9c37[_0x3b1537(0x235)]),this[_0x3b1537(0x1ef)](_0x3b1537(0x1f7),null),this['id']=_0x5d9c37['id'];const {title:_0x55d5fa,createdAt:_0x6ec62e,active:_0x6a4d8c=!0x1}=_0x5d9c37;this[_0x3b1537(0x21e)]=new _0x140a75(),this[_0x3b1537(0x21e)][_0x3b1537(0x22b)]=_0x55d5fa,this[_0x3b1537(0x21e)][_0x3b1537(0x241)]({'attributes':{'class':[_0x3b1537(0x224)]}});const _0x588830=this[_0x3b1537(0x203)](),_0x581f3c=this[_0x3b1537(0x23a)](_0x57a31f),_0x2cd307=this[_0x3b1537(0x1f3)](),_0x1b4d9f=this[_0x3b1537(0x1f6)](_0x57a31f,_0x55d5fa),_0x2f8945=this[_0x3b1537(0x21a)](_0x57a31f,_0x1b4d9f),_0x50a045=this[_0x3b1537(0x1e9)](_0x57a31f,_0x1b4d9f);this[_0x3b1537(0x23d)]=this[_0x3b1537(0x22e)](),this[_0x3b1537(0x201)]=this[_0x3b1537(0x22e)](),this[_0x3b1537(0x201)][_0x3b1537(0x239)](this[_0x3b1537(0x21e)]),this[_0x3b1537(0x23d)][_0x3b1537(0x239)](_0x581f3c),this[_0x3b1537(0x23d)][_0x3b1537(0x239)](_0x2cd307),this['on'](_0x3b1537(0x20e),(_0x26f1ca,_0x308943,_0x35ca0e)=>{const _0x1d5845=_0x3b1537;this[_0x1d5845(0x23d)][_0x1d5845(0x246)](),this[_0x1d5845(0x201)][_0x1d5845(0x246)](),_0x35ca0e?(this[_0x1d5845(0x23d)][_0x1d5845(0x239)](_0x2f8945),this[_0x1d5845(0x23d)][_0x1d5845(0x239)](_0x50a045),this[_0x1d5845(0x201)][_0x1d5845(0x239)](_0x1b4d9f),_0x1b4d9f[_0x1d5845(0x1f9)][_0x1d5845(0x229)]()):(this[_0x1d5845(0x23d)][_0x1d5845(0x239)](_0x581f3c),this[_0x1d5845(0x23d)][_0x1d5845(0x239)](_0x2cd307),this[_0x1d5845(0x201)][_0x1d5845(0x239)](this[_0x1d5845(0x21e)]));}),this[_0x3b1537(0x211)]({'tag':'li','attributes':{'class':[_0x3b1537(0x20c),_0x6a4d8c?_0x3b1537(0x1e8):'',_0x38a4b8['if'](_0x3b1537(0x22d),_0x3b1537(0x1ea),_0x51dab6=>!_0x51dab6),_0x38a4b8['if'](_0x3b1537(0x222),_0x3b1537(0x23f))],'role':_0x3b1537(0x1e6)},'children':[{'tag':_0x3b1537(0x1fb),'attributes':{'class':[_0x3b1537(0x22a)]},'children':[{'tag':_0x3b1537(0x215),'attributes':{'class':[_0x3b1537(0x216),_0x38a4b8['if'](_0x3b1537(0x1f7),_0x3b1537(0x1ea),_0x2ba0f3=>!!_0x2ba0f3)]},'children':_0x6a4d8c?[_0x588830]:[]},{'tag':_0x3b1537(0x215),'attributes':{'class':[_0x3b1537(0x232),_0x38a4b8['if'](_0x3b1537(0x1f7),_0x3b1537(0x1ea),_0x563ecf=>!_0x563ecf)]},'children':[this[_0x3b1537(0x205)]()]}]},{'tag':_0x3b1537(0x215),'attributes':{'class':[_0x3b1537(0x23e)]},'children':[{'tag':_0x3b1537(0x215),'attributes':{'class':[_0x3b1537(0x219)]},'on':{'click':this[_0x3b1537(0x206)]['to'](_0x3b1537(0x207))},'children':[{'tag':_0x3b1537(0x215),'attributes':{'class':[_0x3b1537(0x238)]},'children':[{'tag':_0x3b1537(0x215),'attributes':{'class':[_0x3b1537(0x224),_0x38a4b8['if'](_0x3b1537(0x1f7),_0x3b1537(0x1ea),_0x556576=>!!_0x556576)]},'children':this[_0x3b1537(0x201)]},{'tag':_0x3b1537(0x215),'attributes':{'class':[_0x3b1537(0x214),_0x38a4b8['if'](_0x3b1537(0x1f7),_0x3b1537(0x1ea),_0xd4b41a=>!_0xd4b41a)]},'children':[{'text':_0x38a4b8['to'](_0x3b1537(0x1f7),_0x2f7c2b=>_0x2f7c2b?_0x5d7906(this[_0x3b1537(0x1fa)],AIChatHistoryListItemView[_0x3b1537(0x23c)][_0x2f7c2b]):'')}]}]},{'tag':_0x3b1537(0x1fb),'attributes':{'class':[_0x3b1537(0x237)]},'children':[_0x6ec62e]}]},{'tag':_0x3b1537(0x215),'attributes':{'class':[_0x3b1537(0x1f4)]},'children':this[_0x3b1537(0x23d)]}]}]}),this['on'](_0x3b1537(0x207),()=>{const _0x375c27=_0x3b1537;this[_0x375c27(0x222)]||this[_0x375c27(0x230)](_0x375c27(0x202),{'id':this['id']});});}[_0x49abae(0x20a)](_0x35db81){const _0x5b2317=_0x49abae;this[_0x5b2317(0x21e)][_0x5b2317(0x22b)]=_0x3c3118(_0x35db81);}[_0x49abae(0x212)](_0x5577d7,_0x5c2984){const _0x49b63e=_0x49abae;this[_0x49b63e(0x1ef)](_0x49b63e(0x1f7),_0x5c2984?_0x5577d7:null);}[_0x49abae(0x203)](){const _0x469002=_0x49abae,_0x4b7b10=new _0xce0c39();return _0x4b7b10[_0x469002(0x1ef)]({'content':_0xabb492}),_0x4b7b10;}[_0x49abae(0x23a)](_0x59a088){const _0x47c378=_0x49abae,_0x289444=new _0x45e6fe(_0x59a088);return _0x289444[_0x47c378(0x1ef)]({'label':_0x5d7906(_0x59a088,_0x47c378(0x1ff)),'icon':_0x119cde,'withText':!0x1,'tooltip':!0x0}),_0x289444[_0x47c378(0x1f5)](_0x47c378(0x1ed))['to'](this,_0x47c378(0x235)),_0x289444['on'](_0x47c378(0x21c),()=>{const _0x57ea8a=_0x47c378,_0x80cd3e=!this[_0x57ea8a(0x235)];this[_0x57ea8a(0x230)](_0x57ea8a(0x240),{'id':this['id'],'pinned':_0x80cd3e});}),_0x289444;}[_0x49abae(0x1f3)](){const _0xb11693=_0x49abae,_0x23fd8c=_0x513490(this[_0xb11693(0x1fa)],_0x2bc894),_0x1f8da4=_0x23fd8c[_0xb11693(0x21f)][_0xb11693(0x204)];_0x23fd8c[_0xb11693(0x1e7)][_0xb11693(0x1ef)]({'label':_0x5d7906(this[_0xb11693(0x1fa)],_0xb11693(0x228)),'icon':_0x279bd1}),_0x23fd8c[_0xb11693(0x1fe)]='sw';const _0x51b5a4=new _0x45e6fe(this[_0xb11693(0x1fa)]);_0x51b5a4[_0xb11693(0x21b)]=_0x5d7906(this[_0xb11693(0x1fa)],_0xb11693(0x221)),_0x51b5a4[_0xb11693(0x244)]=!0x0,_0x51b5a4['on'](_0xb11693(0x21c),()=>{const _0x38da9f=_0xb11693;this[_0x38da9f(0x222)]=!0x0;});const _0x57b0d2=new _0x45e6fe(this[_0xb11693(0x1fa)]);_0x57b0d2[_0xb11693(0x21b)]=_0x5d7906(this[_0xb11693(0x1fa)],_0xb11693(0x225)),_0x57b0d2[_0xb11693(0x244)]=!0x0,_0x57b0d2['on'](_0xb11693(0x21c),()=>{const _0x2f7047=_0xb11693;this[_0x2f7047(0x21d)](_0x5d7906(this[_0x2f7047(0x1fa)],_0x2f7047(0x20d)),this[_0x2f7047(0x1f9)])[_0x2f7047(0x236)](()=>{const _0x3e2e04=_0x2f7047;this[_0x3e2e04(0x230)](_0x3e2e04(0x227),{'id':this['id']});});});const _0x1d71ee=new _0x2667ea(this[_0xb11693(0x1fa)]),_0x6dc613=new _0x2ebbec(this[_0xb11693(0x1fa)]);_0x6dc613[_0xb11693(0x204)][_0xb11693(0x239)](_0x51b5a4);const _0x1c68a2=new _0x2ebbec(this[_0xb11693(0x1fa)]);return _0x1c68a2[_0xb11693(0x204)][_0xb11693(0x239)](_0x57b0d2),_0x1d71ee[_0xb11693(0x245)][_0xb11693(0x247)]([_0x6dc613,_0x1c68a2]),_0x1f8da4[_0xb11693(0x239)](_0x1d71ee),_0x23fd8c;}[_0x49abae(0x1f6)](_0x12df6a,_0x2ee6f4){const _0x5b713f=_0x49abae,_0x442bfc=new _0x3cb1ca(_0x12df6a),_0x112ec3=_0x442bfc[_0x5b713f(0x206)];return _0x442bfc[_0x5b713f(0x218)]=_0x2ee6f4,_0x442bfc[_0x5b713f(0x241)]({'on':{'keydown':_0x112ec3['to'](_0x371390=>{const _0x11e568=_0x5b713f;_0x11e568(0x1e5)==_0x371390[_0x11e568(0x220)]&&this[_0x11e568(0x22c)](_0x442bfc);})}}),_0x442bfc;}[_0x49abae(0x21a)](_0xae24e0,_0x3ff5fe){const _0x585ae6=_0x49abae,_0x4f36fe=new _0x45e6fe(_0xae24e0);return _0x4f36fe[_0x585ae6(0x1ef)]({'icon':_0xabb492,'withText':!0x1,'tooltip':_0x5d7906(_0xae24e0,_0x585ae6(0x200))}),_0x4f36fe[_0x585ae6(0x241)]({'attributes':{'class':[_0x585ae6(0x23b)]}}),_0x4f36fe['on'](_0x585ae6(0x21c),()=>{const _0x3f3c64=_0x585ae6;this[_0x3f3c64(0x22c)](_0x3ff5fe);}),_0x4f36fe;}[_0x49abae(0x22c)](_0x220ff7){const _0x3f7663=_0x49abae,_0x82e7db=_0x220ff7[_0x3f7663(0x1f9)][_0x3f7663(0x218)]||'';this[_0x3f7663(0x21e)][_0x3f7663(0x22b)]=_0x82e7db,this[_0x3f7663(0x222)]=!0x1,this[_0x3f7663(0x230)](_0x3f7663(0x213),{'id':this['id'],'title':_0x82e7db});}[_0x49abae(0x1e9)](_0x19e763,_0x4832b0){const _0x26d868=_0x49abae,_0x3fca7b=new _0x45e6fe(_0x19e763);return _0x3fca7b[_0x26d868(0x1ef)]({'icon':_0x4f727b,'withText':!0x1,'tooltip':_0x5d7906(_0x19e763,_0x26d868(0x1f1))}),_0x3fca7b[_0x26d868(0x241)]({'attributes':{'class':[_0x26d868(0x20f)]}}),_0x3fca7b['on'](_0x26d868(0x21c),()=>{const _0x1963e4=_0x26d868;this[_0x1963e4(0x222)]=!0x1,_0x4832b0[_0x1963e4(0x218)]=this[_0x1963e4(0x21e)][_0x1963e4(0x22b)]||'',this[_0x1963e4(0x230)](_0x1963e4(0x217));}),_0x3fca7b;}[_0x49abae(0x205)](){const _0x2755a7=_0x49abae,_0x1df5d5=new _0x436288(_0x2755a7(0x210));return _0x1df5d5[_0x2755a7(0x22d)]=!0x0,_0x1df5d5;}[_0x49abae(0x243)](_0xaba72){const _0x469922=_0x49abae;return this[_0x469922(0x21e)]&&_0x469922(0x209)==typeof this[_0x469922(0x21e)][_0x469922(0x22b)]&&this[_0x469922(0x21e)][_0x469922(0x22b)][_0x469922(0x1ee)](_0xaba72)?{'title':!0x0}:null;}[_0x49abae(0x1fd)](_0x2d2a45){const _0xcbb4a0=_0x49abae;this[_0xcbb4a0(0x21e)][_0xcbb4a0(0x1fd)](_0x2d2a45);}}
23
+ function _0x4fa0(){const _0x296168=['ck-ai-chat-history__item-check','ck-ai-chat-history__item-title','ck-ai-loader','updateLoadingState','withText','isOn','138TIjRZW','string','_createMenuDropdownView','highlightText','_createCheckView','listitem','_titleView','then','ck-ai-chat-history__item','16ycRBdJ','extendTemplate','AI_CHAT_HISTORY_LOADING_PINNING','ck-ai-chat-history__item-check-container','_createSpinnerView','pinned','mainContent','ck-ai-chat-history__item-actions','click','ck-confirm-view-cancel','_commitEditInputValue','3500420iDpvUw','AI_CHAT_HISTORY_LOADING_RENAMING','updateTitle','AI_CHAT_HISTORY_PIN_BUTTON','text','4150232wvLUgQ','AI_CHAT_HISTORY_ACCEPT','AI_CHAT_HISTORY_REMOVE','execute','ck-ai-chat-history__item--edit','_createPinButtonView','span','AI_CHAT_HISTORY_REMOVE_CONFIRM','AI_CHAT_HISTORY_EDIT_NAME','div','key','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','panelView','LOADING_LABELS','value','ck-ai-chat-history__item--active','tiny','314105CTdsuc','2241kUuAOZ','AI_CHAT_HISTORY_LOADING_UNPINNING','1163463rBXTgw','ck-ai-loader__text','edit:cancel','ck-ai-chat-history__item-row','ck-confirm-view-submit','actions','20QHwynY','ck-ai-chat-history__item-main-content','2242PEqOoO','element','5465042djGinV','match','setTemplate','panelPosition','label','clear','add','ck-ai-chat-history__item-date','set','_createEditInputView','AI_CHAT_HISTORY_CANCEL','bindTemplate','_createCancelEditButtonView','fire','change:isEdit','Enter','AI_CHAT_HISTORY_LOADING_REMOVING','loadingState','selectConversation','focus','isMatching','createCollection','4260402foRcin','isVisible','addMany','isEdit','locale','items','editConversationTitle','buttonView','showConfirm','removeConversation','ck-ai-chat-history__item-content','setConversationPinned','children','ck-hidden','bind','_createAcceptEditButtonView'];_0x4fa0=function(){return _0x296168;};return _0x4fa0();}const _0x527be2=_0x3e7d;(function(_0x55adc2,_0x1daa3a){const _0x1e3cef=_0x3e7d,_0x46a88a=_0x55adc2();while(!![]){try{const _0x4c3134=parseInt(_0x1e3cef(0xf4))/0x1+-parseInt(_0x1e3cef(0xfc))/0x2*(-parseInt(_0x1e3cef(0xf2))/0x3)+-parseInt(_0x1e3cef(0xe0))/0x4+-parseInt(_0x1e3cef(0xf1))/0x5*(-parseInt(_0x1e3cef(0xc7))/0x6)+-parseInt(_0x1e3cef(0xdb))/0x7*(parseInt(_0x1e3cef(0xd0))/0x8)+parseInt(_0x1e3cef(0xb1))/0x9+parseInt(_0x1e3cef(0xfa))/0xa*(-parseInt(_0x1e3cef(0xfe))/0xb);if(_0x4c3134===_0x1daa3a)break;else _0x46a88a['push'](_0x46a88a['shift']());}catch(_0x252838){_0x46a88a['push'](_0x46a88a['shift']());}}}(_0x4fa0,0xd8bed));import{ListItemView as _0x3b8905,HighlightedTextView as _0x29fdad,ButtonView as _0x2c89f1,ListView as _0x4fd5b8,IconView as _0x5490db,createDropdown as _0x51d089,InputTextView as _0x1c329c}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0x53f7cb,IconPin as _0x1a08d6,IconCheck as _0x85bc50,IconCancel as _0x5b679e}from'ckeditor5/src/icons.js';function _0x3e7d(_0x5c753f,_0x200002){const _0x4fa090=_0x4fa0();return _0x3e7d=function(_0x3e7d29,_0x449f82){_0x3e7d29=_0x3e7d29-0xa8;let _0x2272db=_0x4fa090[_0x3e7d29];return _0x2272db;},_0x3e7d(_0x5c753f,_0x200002);}import{LateFocusDropdownButtonView as _0x308659,ConfirmMixin as _0x50d753}from'ckeditor5-collaboration/src/collaboration-core.js';import{escape as _0x766038}from'es-toolkit/compat';import{AISpinnerView as _0x2ef97d}from'../../aicore/ui/aispinner.js';import{getTranslation as _0x2fcf22}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends/* #__PURE__ -- @preserve */
24
+ _0x50d753(_0x3b8905){['id'];static [_0x527be2(0xed)]={'remove':_0x527be2(0xab),'rename':_0x527be2(0xdc),'pin':_0x527be2(0xd2),'unpin':_0x527be2(0xf3)};[_0x527be2(0xf9)];[_0x527be2(0xd6)];[_0x527be2(0xcd)];constructor(_0x55185a,_0x3dfbe4){const _0x330868=_0x527be2;super(_0x55185a);const _0x5baf5e=this[_0x330868(0x109)];this[_0x330868(0x106)](_0x330868(0xb4),!0x1),this[_0x330868(0x106)](_0x330868(0xb2),!0x0),this[_0x330868(0x106)](_0x330868(0xd5),!!_0x3dfbe4[_0x330868(0xd5)]),this[_0x330868(0x106)](_0x330868(0xac),null),this['id']=_0x3dfbe4['id'];const {title:_0x50a28c,createdAt:_0x382e16,active:_0x55868f=!0x1}=_0x3dfbe4;this[_0x330868(0xcd)]=new _0x29fdad(),this[_0x330868(0xcd)][_0x330868(0xdf)]=_0x50a28c,this[_0x330868(0xcd)][_0x330868(0xd1)]({'attributes':{'class':[_0x330868(0xc2)]}});const _0x1c6df1=this[_0x330868(0xcb)](),_0x47f652=this[_0x330868(0xe5)](_0x55185a),_0x285b15=this[_0x330868(0xc9)](),_0xb11ee7=this[_0x330868(0x107)](_0x55185a,_0x50a28c),_0x270864=this[_0x330868(0xc0)](_0x55185a,_0xb11ee7),_0x13b8e7=this[_0x330868(0x10a)](_0x55185a,_0xb11ee7);this[_0x330868(0xf9)]=this[_0x330868(0xb0)](),this[_0x330868(0xd6)]=this[_0x330868(0xb0)](),this[_0x330868(0xd6)][_0x330868(0x104)](this[_0x330868(0xcd)]),this[_0x330868(0xf9)][_0x330868(0x104)](_0x47f652),this[_0x330868(0xf9)][_0x330868(0x104)](_0x285b15),this['on'](_0x330868(0xa9),(_0x541387,_0x47a29e,_0xe09e61)=>{const _0x413a3=_0x330868;this[_0x413a3(0xf9)][_0x413a3(0x103)](),this[_0x413a3(0xd6)][_0x413a3(0x103)](),_0xe09e61?(this[_0x413a3(0xf9)][_0x413a3(0x104)](_0x270864),this[_0x413a3(0xf9)][_0x413a3(0x104)](_0x13b8e7),this[_0x413a3(0xd6)][_0x413a3(0x104)](_0xb11ee7),_0xb11ee7[_0x413a3(0xfd)][_0x413a3(0xae)]()):(this[_0x413a3(0xf9)][_0x413a3(0x104)](_0x47f652),this[_0x413a3(0xf9)][_0x413a3(0x104)](_0x285b15),this[_0x413a3(0xd6)][_0x413a3(0x104)](this[_0x413a3(0xcd)]));}),this[_0x330868(0x100)]({'tag':'li','attributes':{'class':[_0x330868(0xcf),_0x55868f?_0x330868(0xef):'',_0x5baf5e['if'](_0x330868(0xb2),_0x330868(0xbe),_0x4fd624=>!_0x4fd624),_0x5baf5e['if'](_0x330868(0xb4),_0x330868(0xe4))],'role':_0x330868(0xcc)},'children':[{'tag':_0x330868(0xe6),'attributes':{'class':[_0x330868(0xd3)]},'children':[{'tag':_0x330868(0xe9),'attributes':{'class':[_0x330868(0xc1),_0x5baf5e['if'](_0x330868(0xac),_0x330868(0xbe),_0xe970d4=>!!_0xe970d4)]},'children':_0x55868f?[_0x1c6df1]:[]},{'tag':_0x330868(0xe9),'attributes':{'class':[_0x330868(0xc3),_0x5baf5e['if'](_0x330868(0xac),_0x330868(0xbe),_0x25031e=>!_0x25031e)]},'children':[this[_0x330868(0xd4)]()]}]},{'tag':_0x330868(0xe9),'attributes':{'class':[_0x330868(0xf7)]},'children':[{'tag':_0x330868(0xe9),'attributes':{'class':[_0x330868(0xbb)]},'on':{'click':this[_0x330868(0x109)]['to'](_0x330868(0xd8))},'children':[{'tag':_0x330868(0xe9),'attributes':{'class':[_0x330868(0xfb)]},'children':[{'tag':_0x330868(0xe9),'attributes':{'class':[_0x330868(0xc2),_0x5baf5e['if'](_0x330868(0xac),_0x330868(0xbe),_0x55ff10=>!!_0x55ff10)]},'children':this[_0x330868(0xd6)]},{'tag':_0x330868(0xe9),'attributes':{'class':[_0x330868(0xf5),_0x5baf5e['if'](_0x330868(0xac),_0x330868(0xbe),_0x4cd9c2=>!_0x4cd9c2)]},'children':[{'text':_0x5baf5e['to'](_0x330868(0xac),_0x27555b=>_0x27555b?_0x2fcf22(this[_0x330868(0xb5)],AIChatHistoryListItemView[_0x330868(0xed)][_0x27555b]):'')}]}]},{'tag':_0x330868(0xe6),'attributes':{'class':[_0x330868(0x105)]},'children':[_0x382e16]}]},{'tag':_0x330868(0xe9),'attributes':{'class':[_0x330868(0xd7)]},'children':this[_0x330868(0xf9)]}]}]}),this['on'](_0x330868(0xd8),()=>{const _0x563f11=_0x330868;this[_0x563f11(0xb4)]||this[_0x563f11(0xa8)](_0x563f11(0xad),{'id':this['id']});});}[_0x527be2(0xdd)](_0x4d7775){const _0x3cd44a=_0x527be2;this[_0x3cd44a(0xcd)][_0x3cd44a(0xdf)]=_0x766038(_0x4d7775);}[_0x527be2(0xc4)](_0x468f4b,_0x209859){const _0x4d5452=_0x527be2;this[_0x4d5452(0x106)](_0x4d5452(0xac),_0x209859?_0x468f4b:null);}[_0x527be2(0xcb)](){const _0x3c59b6=_0x527be2,_0xc2d96e=new _0x5490db();return _0xc2d96e[_0x3c59b6(0x106)]({'content':_0x85bc50}),_0xc2d96e;}[_0x527be2(0xe5)](_0x458028){const _0x5341cc=_0x527be2,_0x26d62d=new _0x2c89f1(_0x458028);return _0x26d62d[_0x5341cc(0x106)]({'label':_0x2fcf22(_0x458028,_0x5341cc(0xde)),'icon':_0x1a08d6,'withText':!0x1,'tooltip':!0x0}),_0x26d62d[_0x5341cc(0xbf)](_0x5341cc(0xc6))['to'](this,_0x5341cc(0xd5)),_0x26d62d['on'](_0x5341cc(0xe3),()=>{const _0x552c8b=_0x5341cc,_0x1df3e6=!this[_0x552c8b(0xd5)];this[_0x552c8b(0xa8)](_0x552c8b(0xbc),{'id':this['id'],'pinned':_0x1df3e6});}),_0x26d62d;}[_0x527be2(0xc9)](){const _0x4a5b92=_0x527be2,_0x5d04af=_0x51d089(this[_0x4a5b92(0xb5)],_0x308659),_0x1d7589=_0x5d04af[_0x4a5b92(0xec)][_0x4a5b92(0xbd)];_0x5d04af[_0x4a5b92(0xb8)][_0x4a5b92(0x106)]({'label':_0x2fcf22(this[_0x4a5b92(0xb5)],_0x4a5b92(0xeb)),'icon':_0x53f7cb}),_0x5d04af[_0x4a5b92(0x101)]='sw';const _0x12f7dc=new _0x2c89f1(this[_0x4a5b92(0xb5)]);_0x12f7dc[_0x4a5b92(0x102)]=_0x2fcf22(this[_0x4a5b92(0xb5)],_0x4a5b92(0xe8)),_0x12f7dc[_0x4a5b92(0xc5)]=!0x0,_0x12f7dc['on'](_0x4a5b92(0xe3),()=>{const _0x6ec6cf=_0x4a5b92;this[_0x6ec6cf(0xb4)]=!0x0;});const _0x23b582=new _0x2c89f1(this[_0x4a5b92(0xb5)]);_0x23b582[_0x4a5b92(0x102)]=_0x2fcf22(this[_0x4a5b92(0xb5)],_0x4a5b92(0xe2)),_0x23b582[_0x4a5b92(0xc5)]=!0x0,_0x23b582['on'](_0x4a5b92(0xe3),()=>{const _0x4c3f1f=_0x4a5b92;this[_0x4c3f1f(0xb9)](_0x2fcf22(this[_0x4c3f1f(0xb5)],_0x4c3f1f(0xe7)),this[_0x4c3f1f(0xfd)])[_0x4c3f1f(0xce)](()=>{const _0x244522=_0x4c3f1f;this[_0x244522(0xa8)](_0x244522(0xba),{'id':this['id']});});});const _0x94b24b=new _0x4fd5b8(this[_0x4a5b92(0xb5)]),_0x56c047=new _0x3b8905(this[_0x4a5b92(0xb5)]);_0x56c047[_0x4a5b92(0xbd)][_0x4a5b92(0x104)](_0x12f7dc);const _0xeb4954=new _0x3b8905(this[_0x4a5b92(0xb5)]);return _0xeb4954[_0x4a5b92(0xbd)][_0x4a5b92(0x104)](_0x23b582),_0x94b24b[_0x4a5b92(0xb6)][_0x4a5b92(0xb3)]([_0x56c047,_0xeb4954]),_0x1d7589[_0x4a5b92(0x104)](_0x94b24b),_0x5d04af;}[_0x527be2(0x107)](_0x15212c,_0x31abe8){const _0x27f185=_0x527be2,_0x46b8f1=new _0x1c329c(_0x15212c),_0x1c60f0=_0x46b8f1[_0x27f185(0x109)];return _0x46b8f1[_0x27f185(0xee)]=_0x31abe8,_0x46b8f1[_0x27f185(0xd1)]({'on':{'keydown':_0x1c60f0['to'](_0x51a2a5=>{const _0x33a9c5=_0x27f185;_0x33a9c5(0xaa)==_0x51a2a5[_0x33a9c5(0xea)]&&this[_0x33a9c5(0xda)](_0x46b8f1);})}}),_0x46b8f1;}[_0x527be2(0xc0)](_0x56cc01,_0x56d43b){const _0x21cb96=_0x527be2,_0x533f8f=new _0x2c89f1(_0x56cc01);return _0x533f8f[_0x21cb96(0x106)]({'icon':_0x85bc50,'withText':!0x1,'tooltip':_0x2fcf22(_0x56cc01,_0x21cb96(0xe1))}),_0x533f8f[_0x21cb96(0xd1)]({'attributes':{'class':[_0x21cb96(0xf8)]}}),_0x533f8f['on'](_0x21cb96(0xe3),()=>{const _0x1122c7=_0x21cb96;this[_0x1122c7(0xda)](_0x56d43b);}),_0x533f8f;}[_0x527be2(0xda)](_0x263f24){const _0xa0c79c=_0x527be2,_0x29858f=_0x263f24[_0xa0c79c(0xfd)][_0xa0c79c(0xee)]||'';this[_0xa0c79c(0xcd)][_0xa0c79c(0xdf)]=_0x29858f,this[_0xa0c79c(0xb4)]=!0x1,this[_0xa0c79c(0xa8)](_0xa0c79c(0xb7),{'id':this['id'],'title':_0x29858f});}[_0x527be2(0x10a)](_0xfa093e,_0x57f812){const _0x4071ef=_0x527be2,_0x5a1b24=new _0x2c89f1(_0xfa093e);return _0x5a1b24[_0x4071ef(0x106)]({'icon':_0x5b679e,'withText':!0x1,'tooltip':_0x2fcf22(_0xfa093e,_0x4071ef(0x108))}),_0x5a1b24[_0x4071ef(0xd1)]({'attributes':{'class':[_0x4071ef(0xd9)]}}),_0x5a1b24['on'](_0x4071ef(0xe3),()=>{const _0x416472=_0x4071ef;this[_0x416472(0xb4)]=!0x1,_0x57f812[_0x416472(0xee)]=this[_0x416472(0xcd)][_0x416472(0xdf)]||'',this[_0x416472(0xa8)](_0x416472(0xf6));}),_0x5a1b24;}[_0x527be2(0xd4)](){const _0x31ba25=_0x527be2,_0x2e6627=new _0x2ef97d(_0x31ba25(0xf0));return _0x2e6627[_0x31ba25(0xb2)]=!0x0,_0x2e6627;}[_0x527be2(0xaf)](_0x10dc58){const _0x755c96=_0x527be2;return this[_0x755c96(0xcd)]&&_0x755c96(0xc8)==typeof this[_0x755c96(0xcd)][_0x755c96(0xdf)]&&this[_0x755c96(0xcd)][_0x755c96(0xdf)][_0x755c96(0xff)](_0x10dc58)?{'title':!0x0}:null;}[_0x527be2(0xca)](_0x51ffe7){const _0x10ac7f=_0x527be2;this[_0x10ac7f(0xcd)][_0x10ac7f(0xca)](_0x51ffe7);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x528363=_0x1b33;function _0xf89e(){const _0x1a6e56=['ck-ai-chat-history__section','splice','4699158hXPhSE','setTemplate','filter','find','indexOf','3062570rnQPPC','title','itemsViews','1401238RjjlEd','ck-ai-chat-history__section-title','items','14021532ySaEha','removeItem','div','2337433iFYuGx','bindTemplate','addMany','ck-hidden','set','16eAUrye','isMatching','remove','length','highlightText','668343CLABRi','_itemsListView','3FdTzqf','getItem','2835016IwknwA','isVisible'];_0xf89e=function(){return _0x1a6e56;};return _0xf89e();}function _0x1b33(_0x14de54,_0x27abc0){const _0xf89e8=_0xf89e();return _0x1b33=function(_0x1b3323,_0x5dd883){_0x1b3323=_0x1b3323-0x10f;let _0x51ad0a=_0xf89e8[_0x1b3323];return _0x51ad0a;},_0x1b33(_0x14de54,_0x27abc0);}(function(_0x13b586,_0x52110a){const _0x4f8d31=_0x1b33,_0x4a2f91=_0x13b586();while(!![]){try{const _0x55f6d6=-parseInt(_0x4f8d31(0x117))/0x1+-parseInt(_0x4f8d31(0x127))/0x2+-parseInt(_0x4f8d31(0x119))/0x3*(-parseInt(_0x4f8d31(0x11b))/0x4)+-parseInt(_0x4f8d31(0x124))/0x5+parseInt(_0x4f8d31(0x11f))/0x6+-parseInt(_0x4f8d31(0x12d))/0x7*(parseInt(_0x4f8d31(0x112))/0x8)+parseInt(_0x4f8d31(0x12a))/0x9;if(_0x55f6d6===_0x52110a)break;else _0x4a2f91['push'](_0x4a2f91['shift']());}catch(_0x29b069){_0x4a2f91['push'](_0x4a2f91['shift']());}}}(_0xf89e,0x61cc5));import{ListItemView as _0x48e1f2,View as _0x25a53a,ListView as _0x541104}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0x48e1f2{[_0x528363(0x125)];[_0x528363(0x126)];[_0x528363(0x118)];constructor(_0x1e91b3,{title:_0x107609,items:_0x37d1d7}){const _0x14272f=_0x528363;super(_0x1e91b3);const _0x5c5970=this[_0x14272f(0x12e)];this[_0x14272f(0x111)](_0x14272f(0x11c),!0x0),this[_0x14272f(0x125)]=_0x107609,this[_0x14272f(0x126)]=_0x37d1d7;const _0x55a17a=new _0x25a53a(_0x1e91b3);_0x55a17a[_0x14272f(0x120)]({'tag':_0x14272f(0x12c),'attributes':{'class':[_0x14272f(0x128)]},'children':[this[_0x14272f(0x125)]]}),this[_0x14272f(0x118)]=new _0x541104(_0x1e91b3),this[_0x14272f(0x118)][_0x14272f(0x129)][_0x14272f(0x10f)](this[_0x14272f(0x126)]),this[_0x14272f(0x120)]({'tag':'li','attributes':{'class':[_0x14272f(0x11d),_0x5c5970['if'](_0x14272f(0x11c),_0x14272f(0x110),_0x5b6d59=>!_0x5b6d59)]},'children':[_0x55a17a,this[_0x14272f(0x118)]]});}[_0x528363(0x121)](_0x50d9f0){const _0x14e75e=_0x528363,_0x5db2cc=this[_0x14e75e(0x126)][_0x14e75e(0x115)];let _0x584a30=0x0;for(const _0x364bd3 of this[_0x14e75e(0x126)]){if(_0x50d9f0){const _0x3ce293=_0x364bd3[_0x14e75e(0x113)](_0x50d9f0);_0x364bd3[_0x14e75e(0x11c)]=!!_0x3ce293,_0x364bd3[_0x14e75e(0x116)](_0x50d9f0);}else _0x364bd3[_0x14e75e(0x11c)]=!0x0,_0x364bd3[_0x14e75e(0x116)](null);_0x364bd3[_0x14e75e(0x11c)]&&_0x584a30++;}return this[_0x14e75e(0x11c)]=_0x584a30>0x0,{'resultsCount':_0x584a30,'totalItemsCount':_0x5db2cc};}[_0x528363(0x11a)](_0x599a0d){const _0x2128d4=_0x528363;return this[_0x2128d4(0x126)][_0x2128d4(0x122)](_0x34ab50=>_0x34ab50['id']===_0x599a0d);}[_0x528363(0x12b)](_0x2a0801){const _0xf8c8d5=_0x528363,_0x11daea=this[_0xf8c8d5(0x126)][_0xf8c8d5(0x123)](_0x2a0801);-0x1!==_0x11daea&&(this[_0xf8c8d5(0x126)][_0xf8c8d5(0x11e)](_0x11daea,0x1),this[_0xf8c8d5(0x118)][_0xf8c8d5(0x129)][_0xf8c8d5(0x114)](_0x2a0801));}}
23
+ const _0x248a0e=_0x521c;(function(_0x4bc786,_0x5e7a67){const _0x566eaa=_0x521c,_0x41556e=_0x4bc786();while(!![]){try{const _0x309f05=-parseInt(_0x566eaa(0x192))/0x1+parseInt(_0x566eaa(0x193))/0x2*(-parseInt(_0x566eaa(0x1a2))/0x3)+-parseInt(_0x566eaa(0x197))/0x4*(-parseInt(_0x566eaa(0x18e))/0x5)+-parseInt(_0x566eaa(0x19a))/0x6*(parseInt(_0x566eaa(0x1a3))/0x7)+parseInt(_0x566eaa(0x1a9))/0x8*(-parseInt(_0x566eaa(0x1a6))/0x9)+-parseInt(_0x566eaa(0x196))/0xa*(-parseInt(_0x566eaa(0x1a7))/0xb)+parseInt(_0x566eaa(0x1ac))/0xc;if(_0x309f05===_0x5e7a67)break;else _0x41556e['push'](_0x41556e['shift']());}catch(_0x5e0ee7){_0x41556e['push'](_0x41556e['shift']());}}}(_0x97a4,0xa9d4b));function _0x521c(_0x3bc7a8,_0x3f7e56){const _0x97a49b=_0x97a4();return _0x521c=function(_0x521c07,_0x268dbb){_0x521c07=_0x521c07-0x18d;let _0x37daae=_0x97a49b[_0x521c07];return _0x37daae;},_0x521c(_0x3bc7a8,_0x3f7e56);}import{ListItemView as _0x4d48c0,View as _0x447a58,ListView as _0x17f99b}from'ckeditor5/src/ui.js';function _0x97a4(){const _0x15225b=['items','ck-ai-chat-history__section','set','12380VVUABP','8AiBJLg','ck-hidden','_itemsListView','602170NrAOlF','348DjSzSb','addMany','filter','1542OclQxu','ck-ai-chat-history__section-title','isVisible','remove','splice','bindTemplate','itemsViews','isMatching','207744QlGTVP','14882QmglVB','indexOf','highlightText','9yeVteW','165cqihqm','getItem','8141880fYDJiH','find','length','13357920KfLecM','removeItem','div','title','setTemplate','30615TuJtsW'];_0x97a4=function(){return _0x15225b;};return _0x97a4();}export class AIChatHistoryListView extends _0x4d48c0{[_0x248a0e(0x1af)];[_0x248a0e(0x1a0)];[_0x248a0e(0x195)];constructor(_0x527413,{title:_0x469560,items:_0x5b15ac}){const _0x4b41bb=_0x248a0e;super(_0x527413);const _0x486dce=this[_0x4b41bb(0x19f)];this[_0x4b41bb(0x191)](_0x4b41bb(0x19c),!0x0),this[_0x4b41bb(0x1af)]=_0x469560,this[_0x4b41bb(0x1a0)]=_0x5b15ac;const _0x4ca697=new _0x447a58(_0x527413);_0x4ca697[_0x4b41bb(0x18d)]({'tag':_0x4b41bb(0x1ae),'attributes':{'class':[_0x4b41bb(0x19b)]},'children':[this[_0x4b41bb(0x1af)]]}),this[_0x4b41bb(0x195)]=new _0x17f99b(_0x527413),this[_0x4b41bb(0x195)][_0x4b41bb(0x18f)][_0x4b41bb(0x198)](this[_0x4b41bb(0x1a0)]),this[_0x4b41bb(0x18d)]({'tag':'li','attributes':{'class':[_0x4b41bb(0x190),_0x486dce['if'](_0x4b41bb(0x19c),_0x4b41bb(0x194),_0x2b0375=>!_0x2b0375)]},'children':[_0x4ca697,this[_0x4b41bb(0x195)]]});}[_0x248a0e(0x199)](_0x5014fe){const _0x8080c9=_0x248a0e,_0x214e3b=this[_0x8080c9(0x1a0)][_0x8080c9(0x1ab)];let _0x3456da=0x0;for(const _0x26abdc of this[_0x8080c9(0x1a0)]){if(_0x5014fe){const _0x1db69c=_0x26abdc[_0x8080c9(0x1a1)](_0x5014fe);_0x26abdc[_0x8080c9(0x19c)]=!!_0x1db69c,_0x26abdc[_0x8080c9(0x1a5)](_0x5014fe);}else _0x26abdc[_0x8080c9(0x19c)]=!0x0,_0x26abdc[_0x8080c9(0x1a5)](null);_0x26abdc[_0x8080c9(0x19c)]&&_0x3456da++;}return this[_0x8080c9(0x19c)]=_0x3456da>0x0,{'resultsCount':_0x3456da,'totalItemsCount':_0x214e3b};}[_0x248a0e(0x1a8)](_0x1a91fa){const _0x286190=_0x248a0e;return this[_0x286190(0x1a0)][_0x286190(0x1aa)](_0x124ad9=>_0x124ad9['id']===_0x1a91fa);}[_0x248a0e(0x1ad)](_0xb6cf68){const _0x3a1019=_0x248a0e,_0x320881=this[_0x3a1019(0x1a0)][_0x3a1019(0x1a4)](_0xb6cf68);-0x1!==_0x320881&&(this[_0x3a1019(0x1a0)][_0x3a1019(0x19e)](_0x320881,0x1),this[_0x3a1019(0x195)][_0x3a1019(0x18f)][_0x3a1019(0x19d)](_0xb6cf68));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3d0867=_0x5e8f;function _0x5e8f(_0x360e8f,_0x2e29f5){const _0x4d0a24=_0x4d0a();return _0x5e8f=function(_0x5e8fa7,_0x157eb4){_0x5e8fa7=_0x5e8fa7-0x13a;let _0x1f28fe=_0x4d0a24[_0x5e8fa7];return _0x1f28fe;},_0x5e8f(_0x360e8f,_0x2e29f5);}(function(_0x1aa81f,_0x6b4592){const _0x5f0aae=_0x5e8f,_0x58f913=_0x1aa81f();while(!![]){try{const _0x36aca5=parseInt(_0x5f0aae(0x144))/0x1+-parseInt(_0x5f0aae(0x13d))/0x2*(parseInt(_0x5f0aae(0x13f))/0x3)+-parseInt(_0x5f0aae(0x13b))/0x4+parseInt(_0x5f0aae(0x145))/0x5*(-parseInt(_0x5f0aae(0x148))/0x6)+parseInt(_0x5f0aae(0x13e))/0x7+parseInt(_0x5f0aae(0x141))/0x8+parseInt(_0x5f0aae(0x142))/0x9;if(_0x36aca5===_0x6b4592)break;else _0x58f913['push'](_0x58f913['shift']());}catch(_0x189ee8){_0x58f913['push'](_0x58f913['shift']());}}}(_0x4d0a,0x6060a));import{ListView as _0x44275d}from'ckeditor5/src/ui.js';function _0x4d0a(){const _0xa4fbf=['2gkLttv','940751YkBmut','492819DycALv','extendTemplate','2053832NNmnhp','912087EzRNKL','filter','132594fQsfRt','7520kfLube','sections','items','192wRMKYW','addMany','71584afIiwJ','ck-ai-chat-history__sections'];_0x4d0a=function(){return _0xa4fbf;};return _0x4d0a();}export class AIChatHistorySectionListView extends _0x44275d{[_0x3d0867(0x146)];constructor(_0x470b6f,_0x521b32){const _0x277c64=_0x3d0867;super(_0x470b6f),this[_0x277c64(0x146)]=_0x521b32,this[_0x277c64(0x147)][_0x277c64(0x13a)](this[_0x277c64(0x146)]),this[_0x277c64(0x140)]({'attributes':{'class':[_0x277c64(0x13c)]}});}[_0x3d0867(0x143)](_0x1662f3){const _0x43cb13=_0x3d0867;let _0x1f622f=0x0,_0x4ee608=0x0;for(const _0x7bafa7 of this[_0x43cb13(0x146)]){const {resultsCount:_0x39992f,totalItemsCount:_0x21c4f9}=_0x7bafa7[_0x43cb13(0x143)](_0x1662f3);_0x1f622f+=_0x39992f,_0x4ee608+=_0x21c4f9;}return{'resultsCount':_0x1f622f,'totalItemsCount':_0x4ee608};}}
23
+ const _0x36f506=_0x44bf;(function(_0x3ce3b2,_0x5168e1){const _0x15c573=_0x44bf,_0x4c8772=_0x3ce3b2();while(!![]){try{const _0x1c9a99=parseInt(_0x15c573(0x17e))/0x1*(parseInt(_0x15c573(0x18c))/0x2)+-parseInt(_0x15c573(0x17f))/0x3+-parseInt(_0x15c573(0x18e))/0x4*(parseInt(_0x15c573(0x180))/0x5)+parseInt(_0x15c573(0x18b))/0x6+-parseInt(_0x15c573(0x185))/0x7+parseInt(_0x15c573(0x18a))/0x8*(-parseInt(_0x15c573(0x183))/0x9)+-parseInt(_0x15c573(0x188))/0xa*(-parseInt(_0x15c573(0x18d))/0xb);if(_0x1c9a99===_0x5168e1)break;else _0x4c8772['push'](_0x4c8772['shift']());}catch(_0x4b9c67){_0x4c8772['push'](_0x4c8772['shift']());}}}(_0x40da,0x1eb29));import{ListView as _0x44c586}from'ckeditor5/src/ui.js';function _0x44bf(_0x4a9b46,_0x1a4ad5){const _0x40daec=_0x40da();return _0x44bf=function(_0x44bfd8,_0x24ae37){_0x44bfd8=_0x44bfd8-0x17e;let _0x196e9a=_0x40daec[_0x44bfd8];return _0x196e9a;},_0x44bf(_0x4a9b46,_0x1a4ad5);}export class AIChatHistorySectionListView extends _0x44c586{[_0x36f506(0x181)];constructor(_0xa61ffa,_0x2aa872){const _0x173d5c=_0x36f506;super(_0xa61ffa),this[_0x173d5c(0x181)]=_0x2aa872,this[_0x173d5c(0x187)][_0x173d5c(0x182)](this[_0x173d5c(0x181)]),this[_0x173d5c(0x189)]({'attributes':{'class':[_0x173d5c(0x186)]}});}[_0x36f506(0x184)](_0x48165d){const _0x5e5daa=_0x36f506;let _0xa608e=0x0,_0x4bac76=0x0;for(const _0x3dc5cc of this[_0x5e5daa(0x181)]){const {resultsCount:_0x17f5b1,totalItemsCount:_0x3f2991}=_0x3dc5cc[_0x5e5daa(0x184)](_0x48165d);_0xa608e+=_0x17f5b1,_0x4bac76+=_0x3f2991;}return{'resultsCount':_0xa608e,'totalItemsCount':_0x4bac76};}}function _0x40da(){const _0x4b3701=['463384oHoNfM','46650gaXBCM','6198eibLGX','11WzJeAX','5316DlmGtu','67SJQtvN','78813gBXJRf','35XOvORO','sections','addMany','27gJpJsU','filter','124082IIyDkT','ck-ai-chat-history__sections','items','1373980aKrGkr','extendTemplate'];_0x40da=function(){return _0x4b3701;};return _0x40da();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x545b(_0x1c1ac7,_0x47c318){const _0x3a8a6f=_0x3a8a();return _0x545b=function(_0x545b65,_0x193524){_0x545b65=_0x545b65-0x10e;let _0x442348=_0x3a8a6f[_0x545b65];return _0x442348;},_0x545b(_0x1c1ac7,_0x47c318);}const _0x212580=_0x545b;(function(_0x4f4892,_0xa6cb4d){const _0x5a5698=_0x545b,_0x16c301=_0x4f4892();while(!![]){try{const _0x36590d=parseInt(_0x5a5698(0x15d))/0x1+parseInt(_0x5a5698(0x167))/0x2+-parseInt(_0x5a5698(0x156))/0x3+parseInt(_0x5a5698(0x117))/0x4*(parseInt(_0x5a5698(0x15f))/0x5)+-parseInt(_0x5a5698(0x130))/0x6*(-parseInt(_0x5a5698(0x159))/0x7)+-parseInt(_0x5a5698(0x152))/0x8+parseInt(_0x5a5698(0x135))/0x9*(-parseInt(_0x5a5698(0x13a))/0xa);if(_0x36590d===_0xa6cb4d)break;else _0x16c301['push'](_0x16c301['shift']());}catch(_0x2778d0){_0x16c301['push'](_0x16c301['shift']());}}}(_0x3a8a,0x83286));import{View as _0x2d5fa9,SearchTextView as _0x11d34a,FormHeaderView as _0x56f1a3,ButtonView as _0x4e3ba4}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x40d80d,IconCancel as _0x56f0fd,IconPlus as _0x220d08}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x586905}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x5c04a2}from'./aichathistorylistview.js';function _0x3a8a(){const _0x436480=['extendTemplate','items','ck-rounded-corners','removeItem','errorView','isMaximized','_createEmptyStateView','change:hasItems','isSearchViewVisible','AI_CHAT_LABEL_NEW_CHAT','_createSkeletonView','fieldView','ltr','bindTemplate','children','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','locale','value','getItem','delegate','2566360FyZkaX','fire','render','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','1060089UKVPdl','sectionsView','queryView','2151569sBIqQK','push','element','_createListItemViews','57620QTLjRN','_updateViewVisibility','5SYrMdz','remove','emptyView','setTemplate','ck-ai-header\x20ck-ai-header_history','removeHistoryItem','isEmptyViewVisible','errorMessage','317202zMYbIr','isLoading','splice','AI_CHAT_HISTORY_HEADING','AI_CHAT_HISTORY_SEARCH_LABEL','updateItemTitle','change:errorMessage','ck-ai-chat-error','ck-reset_all','_refreshSearch','ck-ai-chat-history__empty-message','3698836WXtHJW','addMany','hasItems','ck-ai-chat-history__content','set','isVisible','div','aiHistory','resizeButton','updateHistoryItemsWithCategories','_createSearchView','AI_CHAT_HISTORY_EMPTY_MESSAGE','updateTitle','ck-ai-chat-history','sections','ck-ai-chat-error__dismiss-button','updateItemLoadingState','add','title','execute','some','ck-ai-chat__start-conversation','search','indexOf','openChat','6xvoXtd','itemsViews','_createErrorView','searchView','change:isLoading','2132253FyXTXa','length','ck-ai-chat-history__empty','clear','updateLoadingState','10PZguDj','ck-hidden','bind','skeletonView'];_0x3a8a=function(){return _0x436480;};return _0x3a8a();}import{AIChatHistoryListItemView as _0x5d1c3f}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0xc935bc}from'../aichathistoryui.js';import{AISkeletonView as _0x44489a,SKELETON_DEFINITIONS as _0x52cf4d}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x40b245}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x574855}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x2d5fa9{[_0x212580(0x133)];[_0x212580(0x142)];[_0x212580(0x13d)];[_0x212580(0x161)];[_0x212580(0x157)];[_0x212580(0x11f)];constructor(_0x1d1b24,_0x9f16e2){const _0x511de4=_0x212580;super(_0x1d1b24),this[_0x511de4(0x11b)](_0x511de4(0x119),!0x1),this[_0x511de4(0x11b)](_0x511de4(0x168),!0x0),this[_0x511de4(0x11b)](_0x511de4(0x166),''),this[_0x511de4(0x11b)](_0x511de4(0x143),!0x1),this[_0x511de4(0x11b)](_0x511de4(0x146),!0x1),this[_0x511de4(0x11b)](_0x511de4(0x165),!0x1);const _0x369d58=new _0x56f1a3(_0x1d1b24,{'label':_0x574855(_0x1d1b24,_0x511de4(0x10f)),'icon':_0x40d80d,'class':_0x511de4(0x163)});_0x9f16e2&&(this[_0x511de4(0x11f)]=_0x40b245(_0x1d1b24,this),_0x369d58[_0x511de4(0x14c)][_0x511de4(0x128)](this[_0x511de4(0x11f)])),this[_0x511de4(0x157)]=new _0x586905(_0x1d1b24,[]),this[_0x511de4(0x157)][_0x511de4(0x151)](..._0xc935bc)['to'](this),this[_0x511de4(0x142)]=this[_0x511de4(0x132)](),this[_0x511de4(0x13d)]=this[_0x511de4(0x148)](),this[_0x511de4(0x161)]=this[_0x511de4(0x144)](),this[_0x511de4(0x133)]=this[_0x511de4(0x121)](),this['on'](_0x511de4(0x134),()=>this[_0x511de4(0x15e)]()),this['on'](_0x511de4(0x145),()=>this[_0x511de4(0x15e)]()),this['on'](_0x511de4(0x112),()=>this[_0x511de4(0x15e)]()),this[_0x511de4(0x162)]({'tag':_0x511de4(0x11d),'attributes':{'class':['ck',_0x511de4(0x114),_0x511de4(0x124),_0x511de4(0x140)],'dir':_0x511de4(0x14a)},'children':[_0x369d58,{'tag':_0x511de4(0x11d),'attributes':{'class':[_0x511de4(0x11a)]},'children':[this[_0x511de4(0x13d)],this[_0x511de4(0x142)],this[_0x511de4(0x161)],this[_0x511de4(0x133)]]}]});}[_0x212580(0x15e)](){const _0x13e8e4=_0x212580;this[_0x13e8e4(0x146)]=!this[_0x13e8e4(0x168)]&&this[_0x13e8e4(0x119)]&&!this[_0x13e8e4(0x166)],this[_0x13e8e4(0x165)]=!this[_0x13e8e4(0x168)]&&!this[_0x13e8e4(0x119)]&&!this[_0x13e8e4(0x166)];}[_0x212580(0x121)](){const _0x59fc64=_0x212580,_0x5571c0=new _0x11d34a(this[_0x59fc64(0x14e)],{'filteredView':this[_0x59fc64(0x157)],'queryView':{'label':_0x574855(this[_0x59fc64(0x14e)],_0x59fc64(0x110))},'infoView':{'text':{'notFound':{'primary':_0x1ca5cf=>_0x574855(this[_0x59fc64(0x14e)],_0x59fc64(0x155),_0x1ca5cf),'secondary':_0x574855(this[_0x59fc64(0x14e)],_0x59fc64(0x14d))}}}});return _0x5571c0['on'](_0x59fc64(0x154),()=>{const _0x464979=_0x59fc64;this[_0x464979(0x133)][_0x464979(0x14c)][_0x464979(0x128)](this[_0x464979(0x142)],0x1);}),_0x5571c0[_0x59fc64(0x13e)]({'attributes':{'class':[this[_0x59fc64(0x14b)]['if'](_0x59fc64(0x146),_0x59fc64(0x13b),_0x166c84=>!_0x166c84)]}}),_0x5571c0;}[_0x212580(0x148)](){const _0x4eb26a=_0x212580,_0x402d7c=new _0x44489a(this[_0x4eb26a(0x14e)],_0x52cf4d[_0x4eb26a(0x11e)]);return _0x402d7c[_0x4eb26a(0x13e)]({'attributes':{'class':[this[_0x4eb26a(0x14b)]['if'](_0x4eb26a(0x168),_0x4eb26a(0x13b),_0xeca38=>!_0xeca38)]}}),_0x402d7c;}[_0x212580(0x132)](){const _0x2867c5=_0x212580,_0x3cc5d9=new _0x2d5fa9(this[_0x2867c5(0x14e)]),_0x237e92=new _0x4e3ba4(this[_0x2867c5(0x14e)]);return _0x237e92[_0x2867c5(0x11b)]({'withText':!0x1,'icon':_0x56f0fd,'class':_0x2867c5(0x126)}),_0x237e92[_0x2867c5(0x13c)](_0x2867c5(0x11c))['to'](this,_0x2867c5(0x119),_0x7da371=>!!_0x7da371),_0x237e92['on'](_0x2867c5(0x12a),()=>{const _0x1e4977=_0x2867c5;this[_0x1e4977(0x166)]='';}),_0x3cc5d9[_0x2867c5(0x162)]({'tag':_0x2867c5(0x11d),'attributes':{'class':['ck',_0x2867c5(0x113),this[_0x2867c5(0x14b)]['if'](_0x2867c5(0x166),_0x2867c5(0x13b),_0x3b6866=>!_0x3b6866)]},'children':[{'tag':'p','children':[{'text':this[_0x2867c5(0x14b)]['to'](_0x2867c5(0x166))}]},_0x237e92]}),_0x3cc5d9;}[_0x212580(0x144)](){const _0x9fd980=_0x212580,_0x132e47=new _0x4e3ba4(this[_0x9fd980(0x14e)]);_0x132e47[_0x9fd980(0x11b)]({'label':_0x574855(this[_0x9fd980(0x14e)],_0x9fd980(0x147)),'withText':!0x0,'icon':_0x220d08,'class':_0x9fd980(0x12c)}),_0x132e47['on'](_0x9fd980(0x12a),()=>{const _0x43594f=_0x9fd980;this[_0x43594f(0x153)](_0x43594f(0x12f));});const _0x9bbe08=new _0x2d5fa9(this[_0x9fd980(0x14e)]);return _0x9bbe08[_0x9fd980(0x162)]({'tag':_0x9fd980(0x11d),'attributes':{'class':[_0x9fd980(0x137),this[_0x9fd980(0x14b)]['if'](_0x9fd980(0x165),_0x9fd980(0x13b),_0x552e31=>!_0x552e31)]},'children':[{'tag':'p','attributes':{'class':[_0x9fd980(0x116)]},'children':[_0x574855(this[_0x9fd980(0x14e)],_0x9fd980(0x122))]},_0x132e47]}),_0x9bbe08;}[_0x212580(0x15c)](_0x2dc803,_0x490681){const _0x5f1e3e=_0x212580,_0x3d29d6=[];for(const _0x5d537a of _0x2dc803){const _0x25fceb=new _0x5d1c3f(_0x490681,_0x5d537a);_0x25fceb[_0x5f1e3e(0x151)](..._0xc935bc)['to'](this),_0x3d29d6[_0x5f1e3e(0x15a)](_0x25fceb);}return _0x3d29d6;}[_0x212580(0x120)](_0x457d6c){const _0x520a08=_0x212580,_0x48baeb=this[_0x520a08(0x14e)]||'en',_0x2dacd0=[];for(const _0x3a8fca of _0x457d6c){const _0x567d4a=this[_0x520a08(0x15c)](_0x3a8fca[_0x520a08(0x13f)],_0x48baeb);_0x2dacd0[_0x520a08(0x15a)](new _0x5c04a2(_0x48baeb,{'title':_0x3a8fca[_0x520a08(0x129)],'items':_0x567d4a}));}this[_0x520a08(0x157)][_0x520a08(0x125)]=_0x2dacd0,this[_0x520a08(0x157)][_0x520a08(0x13f)][_0x520a08(0x138)](),this[_0x520a08(0x157)][_0x520a08(0x13f)][_0x520a08(0x118)](_0x2dacd0),this[_0x520a08(0x119)]=_0x457d6c[_0x520a08(0x12b)](_0x38150f=>_0x38150f[_0x520a08(0x13f)][_0x520a08(0x136)]>0x0),this[_0x520a08(0x115)]();}[_0x212580(0x164)](_0x578502){const _0x1056d0=_0x212580;for(const _0x459910 of this[_0x1056d0(0x157)][_0x1056d0(0x125)]){const _0x346f5d=_0x459910[_0x1056d0(0x150)](_0x578502);if(_0x346f5d){if(_0x459910[_0x1056d0(0x141)](_0x346f5d),0x0===_0x459910[_0x1056d0(0x131)][_0x1056d0(0x136)]){const _0x355080=this[_0x1056d0(0x157)][_0x1056d0(0x125)][_0x1056d0(0x12e)](_0x459910);-0x1!==_0x355080&&(this[_0x1056d0(0x157)][_0x1056d0(0x125)][_0x1056d0(0x10e)](_0x355080,0x1),this[_0x1056d0(0x157)][_0x1056d0(0x13f)][_0x1056d0(0x160)](_0x459910));}this[_0x1056d0(0x119)]=this[_0x1056d0(0x157)][_0x1056d0(0x125)][_0x1056d0(0x136)]>0x0,this[_0x1056d0(0x115)]();break;}}}[_0x212580(0x111)](_0x4e665e,_0x6e4954){const _0x2a30e6=_0x212580;for(const _0x5c7dc1 of this[_0x2a30e6(0x157)][_0x2a30e6(0x125)]){const _0x137d31=_0x5c7dc1[_0x2a30e6(0x150)](_0x4e665e);if(_0x137d31){_0x137d31[_0x2a30e6(0x123)](_0x6e4954);break;}}}[_0x212580(0x127)](_0x3909fb,_0x5ee76b,_0x255533){const _0x34f1b0=_0x212580;for(const _0x127c62 of this[_0x34f1b0(0x157)][_0x34f1b0(0x125)]){const _0x371afd=_0x127c62[_0x34f1b0(0x150)](_0x3909fb);if(_0x371afd){_0x371afd[_0x34f1b0(0x139)](_0x5ee76b,_0x255533);break;}}}[_0x212580(0x115)](){const _0x2587a6=_0x212580;if(this[_0x2587a6(0x119)]){const _0x407929=this[_0x2587a6(0x133)][_0x2587a6(0x158)][_0x2587a6(0x149)]?.[_0x2587a6(0x15b)]?.[_0x2587a6(0x14f)]||'';this[_0x2587a6(0x133)][_0x2587a6(0x12d)](_0x407929);}}}
23
+ function _0x9f7b(_0x51d10b,_0x1a0281){const _0x4a3a25=_0x4a3a();return _0x9f7b=function(_0x9f7b27,_0x5a4e19){_0x9f7b27=_0x9f7b27-0x11a;let _0x36811c=_0x4a3a25[_0x9f7b27];return _0x36811c;},_0x9f7b(_0x51d10b,_0x1a0281);}const _0x345706=_0x9f7b;(function(_0x122514,_0x140c7c){const _0x30eb41=_0x9f7b,_0x7b9c1e=_0x122514();while(!![]){try{const _0x1eff68=parseInt(_0x30eb41(0x160))/0x1+parseInt(_0x30eb41(0x140))/0x2*(parseInt(_0x30eb41(0x13a))/0x3)+parseInt(_0x30eb41(0x11c))/0x4*(parseInt(_0x30eb41(0x135))/0x5)+parseInt(_0x30eb41(0x125))/0x6*(-parseInt(_0x30eb41(0x12f))/0x7)+-parseInt(_0x30eb41(0x139))/0x8*(parseInt(_0x30eb41(0x174))/0x9)+parseInt(_0x30eb41(0x153))/0xa*(parseInt(_0x30eb41(0x124))/0xb)+parseInt(_0x30eb41(0x15d))/0xc;if(_0x1eff68===_0x140c7c)break;else _0x7b9c1e['push'](_0x7b9c1e['shift']());}catch(_0x403478){_0x7b9c1e['push'](_0x7b9c1e['shift']());}}}(_0x4a3a,0x798f6));import{View as _0x400490,SearchTextView as _0x2819c8,FormHeaderView as _0x2bf012,ButtonView as _0x429f71}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x900533,IconCancel as _0x4b4329,IconPlus as _0x12927b}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x14f794}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x139da0}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x4a2efb}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x10e9e8}from'../aichathistoryui.js';import{AISkeletonView as _0x10ed7d,SKELETON_DEFINITIONS as _0xa5156c}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x46f892}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x599956}from'../../aicore/utils/common-translations.js';function _0x4a3a(){const _0x2a1fd2=['ck-hidden','aiHistory','openChat','locale','bindTemplate','isEmptyViewVisible','ck-ai-chat-history','length','div','36GDwTDc','ck-reset_all','delegate','_createErrorView','_createSkeletonView','387628dRwYli','change:isLoading','change:errorMessage','change:hasItems','isMaximized','title','itemsViews','render','6193OPlRPt','6990uXOovP','ck-ai-chat-error','bind','fieldView','queryView','search','fire','updateItemLoadingState','AI_CHAT_LABEL_NEW_CHAT','ck-ai-chat-history__empty-message','2758Bibhvo','AI_CHAT_HISTORY_HEADING','emptyView','_createSearchView','extendTemplate','ck-ai-header\x20ck-ai-header_history','20JEvINg','sections','remove','ck-rounded-corners','1941752JSNzkM','948kjVbIZ','children','_createEmptyStateView','add','skeletonView','clear','4126uZcerF','ltr','some','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','errorMessage','updateHistoryItemsWithCategories','ck-ai-chat-history__content','removeHistoryItem','ck-ai-chat-history__empty','indexOf','value','updateItemTitle','searchView','isVisible','_refreshSearch','resizeButton','hasItems','items','getItem','8630yJXqzX','sectionsView','AI_CHAT_HISTORY_SEARCH_LABEL','updateTitle','push','removeItem','ck-ai-chat-error__dismiss-button','errorView','_updateViewVisibility','isSearchViewVisible','3405504BVsEfF','AI_CHAT_HISTORY_EMPTY_MESSAGE','setTemplate','118599CYJDud','execute','ck-ai-chat__start-conversation','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','updateLoadingState','splice','set','_createListItemViews','element','addMany','isLoading'];_0x4a3a=function(){return _0x2a1fd2;};return _0x4a3a();}export class AIChatHistoryView extends _0x400490{[_0x345706(0x14c)];[_0x345706(0x15a)];[_0x345706(0x13e)];[_0x345706(0x131)];[_0x345706(0x154)];[_0x345706(0x14f)];constructor(_0x371ac4,_0x54f48f){const _0x1fc80c=_0x345706;super(_0x371ac4),this[_0x1fc80c(0x166)](_0x1fc80c(0x150),!0x1),this[_0x1fc80c(0x166)](_0x1fc80c(0x16a),!0x0),this[_0x1fc80c(0x166)](_0x1fc80c(0x144),''),this[_0x1fc80c(0x166)](_0x1fc80c(0x120),!0x1),this[_0x1fc80c(0x166)](_0x1fc80c(0x15c),!0x1),this[_0x1fc80c(0x166)](_0x1fc80c(0x170),!0x1);const _0x577185=new _0x2bf012(_0x371ac4,{'label':_0x599956(_0x371ac4,_0x1fc80c(0x130)),'icon':_0x900533,'class':_0x1fc80c(0x134)});_0x54f48f&&(this[_0x1fc80c(0x14f)]=_0x46f892(_0x371ac4,this),_0x577185[_0x1fc80c(0x13b)][_0x1fc80c(0x13d)](this[_0x1fc80c(0x14f)])),this[_0x1fc80c(0x154)]=new _0x14f794(_0x371ac4,[]),this[_0x1fc80c(0x154)][_0x1fc80c(0x176)](..._0x10e9e8)['to'](this),this[_0x1fc80c(0x15a)]=this[_0x1fc80c(0x11a)](),this[_0x1fc80c(0x13e)]=this[_0x1fc80c(0x11b)](),this[_0x1fc80c(0x131)]=this[_0x1fc80c(0x13c)](),this[_0x1fc80c(0x14c)]=this[_0x1fc80c(0x132)](),this['on'](_0x1fc80c(0x11d),()=>this[_0x1fc80c(0x15b)]()),this['on'](_0x1fc80c(0x11f),()=>this[_0x1fc80c(0x15b)]()),this['on'](_0x1fc80c(0x11e),()=>this[_0x1fc80c(0x15b)]()),this[_0x1fc80c(0x15f)]({'tag':_0x1fc80c(0x173),'attributes':{'class':['ck',_0x1fc80c(0x175),_0x1fc80c(0x171),_0x1fc80c(0x138)],'dir':_0x1fc80c(0x141)},'children':[_0x577185,{'tag':_0x1fc80c(0x173),'attributes':{'class':[_0x1fc80c(0x146)]},'children':[this[_0x1fc80c(0x13e)],this[_0x1fc80c(0x15a)],this[_0x1fc80c(0x131)],this[_0x1fc80c(0x14c)]]}]});}[_0x345706(0x15b)](){const _0x50e747=_0x345706;this[_0x50e747(0x15c)]=!this[_0x50e747(0x16a)]&&this[_0x50e747(0x150)]&&!this[_0x50e747(0x144)],this[_0x50e747(0x170)]=!this[_0x50e747(0x16a)]&&!this[_0x50e747(0x150)]&&!this[_0x50e747(0x144)];}[_0x345706(0x132)](){const _0x49455c=_0x345706,_0x3be45c=new _0x2819c8(this[_0x49455c(0x16e)],{'filteredView':this[_0x49455c(0x154)],'queryView':{'label':_0x599956(this[_0x49455c(0x16e)],_0x49455c(0x155))},'infoView':{'text':{'notFound':{'primary':_0x32cda1=>_0x599956(this[_0x49455c(0x16e)],_0x49455c(0x163),_0x32cda1),'secondary':_0x599956(this[_0x49455c(0x16e)],_0x49455c(0x143))}}}});return _0x3be45c['on'](_0x49455c(0x123),()=>{const _0x1e78e8=_0x49455c;this[_0x1e78e8(0x14c)][_0x1e78e8(0x13b)][_0x1e78e8(0x13d)](this[_0x1e78e8(0x15a)],0x1);}),_0x3be45c[_0x49455c(0x133)]({'attributes':{'class':[this[_0x49455c(0x16f)]['if'](_0x49455c(0x15c),_0x49455c(0x16b),_0x2b6de7=>!_0x2b6de7)]}}),_0x3be45c;}[_0x345706(0x11b)](){const _0x4e19de=_0x345706,_0x1c9848=new _0x10ed7d(this[_0x4e19de(0x16e)],_0xa5156c[_0x4e19de(0x16c)]);return _0x1c9848[_0x4e19de(0x133)]({'attributes':{'class':[this[_0x4e19de(0x16f)]['if'](_0x4e19de(0x16a),_0x4e19de(0x16b),_0x51bd08=>!_0x51bd08)]}}),_0x1c9848;}[_0x345706(0x11a)](){const _0x5e403e=_0x345706,_0x1ca204=new _0x400490(this[_0x5e403e(0x16e)]),_0x4cc323=new _0x429f71(this[_0x5e403e(0x16e)]);return _0x4cc323[_0x5e403e(0x166)]({'withText':!0x1,'icon':_0x4b4329,'class':_0x5e403e(0x159)}),_0x4cc323[_0x5e403e(0x127)](_0x5e403e(0x14d))['to'](this,_0x5e403e(0x150),_0x5dea51=>!!_0x5dea51),_0x4cc323['on'](_0x5e403e(0x161),()=>{const _0x1d2ea3=_0x5e403e;this[_0x1d2ea3(0x144)]='';}),_0x1ca204[_0x5e403e(0x15f)]({'tag':_0x5e403e(0x173),'attributes':{'class':['ck',_0x5e403e(0x126),this[_0x5e403e(0x16f)]['if'](_0x5e403e(0x144),_0x5e403e(0x16b),_0x3b6bf7=>!_0x3b6bf7)]},'children':[{'tag':'p','children':[{'text':this[_0x5e403e(0x16f)]['to'](_0x5e403e(0x144))}]},_0x4cc323]}),_0x1ca204;}[_0x345706(0x13c)](){const _0x35bf25=_0x345706,_0x5abc99=new _0x429f71(this[_0x35bf25(0x16e)]);_0x5abc99[_0x35bf25(0x166)]({'label':_0x599956(this[_0x35bf25(0x16e)],_0x35bf25(0x12d)),'withText':!0x0,'icon':_0x12927b,'class':_0x35bf25(0x162)}),_0x5abc99['on'](_0x35bf25(0x161),()=>{const _0x2d6cc6=_0x35bf25;this[_0x2d6cc6(0x12b)](_0x2d6cc6(0x16d));});const _0x573249=new _0x400490(this[_0x35bf25(0x16e)]);return _0x573249[_0x35bf25(0x15f)]({'tag':_0x35bf25(0x173),'attributes':{'class':[_0x35bf25(0x148),this[_0x35bf25(0x16f)]['if'](_0x35bf25(0x170),_0x35bf25(0x16b),_0x315962=>!_0x315962)]},'children':[{'tag':'p','attributes':{'class':[_0x35bf25(0x12e)]},'children':[_0x599956(this[_0x35bf25(0x16e)],_0x35bf25(0x15e))]},_0x5abc99]}),_0x573249;}[_0x345706(0x167)](_0x570f14,_0x60da6a){const _0x599056=_0x345706,_0x19b636=[];for(const _0x4ad580 of _0x570f14){const _0x5527e8=new _0x4a2efb(_0x60da6a,_0x4ad580);_0x5527e8[_0x599056(0x176)](..._0x10e9e8)['to'](this),_0x19b636[_0x599056(0x157)](_0x5527e8);}return _0x19b636;}[_0x345706(0x145)](_0x5494b3){const _0x561da4=_0x345706,_0x46a80a=this[_0x561da4(0x16e)]||'en',_0x5829ae=[];for(const _0x24ccbd of _0x5494b3){const _0x4c80b9=this[_0x561da4(0x167)](_0x24ccbd[_0x561da4(0x151)],_0x46a80a);_0x5829ae[_0x561da4(0x157)](new _0x139da0(_0x46a80a,{'title':_0x24ccbd[_0x561da4(0x121)],'items':_0x4c80b9}));}this[_0x561da4(0x154)][_0x561da4(0x136)]=_0x5829ae,this[_0x561da4(0x154)][_0x561da4(0x151)][_0x561da4(0x13f)](),this[_0x561da4(0x154)][_0x561da4(0x151)][_0x561da4(0x169)](_0x5829ae),this[_0x561da4(0x150)]=_0x5494b3[_0x561da4(0x142)](_0x29f260=>_0x29f260[_0x561da4(0x151)][_0x561da4(0x172)]>0x0),this[_0x561da4(0x14e)]();}[_0x345706(0x147)](_0x348697){const _0xbe59f3=_0x345706;for(const _0x51ae07 of this[_0xbe59f3(0x154)][_0xbe59f3(0x136)]){const _0x42834e=_0x51ae07[_0xbe59f3(0x152)](_0x348697);if(_0x42834e){if(_0x51ae07[_0xbe59f3(0x158)](_0x42834e),0x0===_0x51ae07[_0xbe59f3(0x122)][_0xbe59f3(0x172)]){const _0x56bb61=this[_0xbe59f3(0x154)][_0xbe59f3(0x136)][_0xbe59f3(0x149)](_0x51ae07);-0x1!==_0x56bb61&&(this[_0xbe59f3(0x154)][_0xbe59f3(0x136)][_0xbe59f3(0x165)](_0x56bb61,0x1),this[_0xbe59f3(0x154)][_0xbe59f3(0x151)][_0xbe59f3(0x137)](_0x51ae07));}this[_0xbe59f3(0x150)]=this[_0xbe59f3(0x154)][_0xbe59f3(0x136)][_0xbe59f3(0x172)]>0x0,this[_0xbe59f3(0x14e)]();break;}}}[_0x345706(0x14b)](_0xa1df1b,_0x17eed3){const _0x410843=_0x345706;for(const _0x4de36f of this[_0x410843(0x154)][_0x410843(0x136)]){const _0x1e6108=_0x4de36f[_0x410843(0x152)](_0xa1df1b);if(_0x1e6108){_0x1e6108[_0x410843(0x156)](_0x17eed3);break;}}}[_0x345706(0x12c)](_0x4777bd,_0x385e0d,_0xa2d537){const _0x5d9c4f=_0x345706;for(const _0x5123eb of this[_0x5d9c4f(0x154)][_0x5d9c4f(0x136)]){const _0x3bd4eb=_0x5123eb[_0x5d9c4f(0x152)](_0x4777bd);if(_0x3bd4eb){_0x3bd4eb[_0x5d9c4f(0x164)](_0x385e0d,_0xa2d537);break;}}}[_0x345706(0x14e)](){const _0x5ea9cf=_0x345706;if(this[_0x5ea9cf(0x150)]){const _0x2ca9c2=this[_0x5ea9cf(0x14c)][_0x5ea9cf(0x129)][_0x5ea9cf(0x128)]?.[_0x5ea9cf(0x168)]?.[_0x5ea9cf(0x14a)]||'';this[_0x5ea9cf(0x14c)][_0x5ea9cf(0x12a)](_0x2ca9c2);}}}
package/src/aiconfig.d.ts CHANGED
@@ -6,7 +6,7 @@
6
6
  * @module ai/aiconfig
7
7
  * @publicApi
8
8
  */
9
- import type { AIAssistantConfig } from './aiassistant/aiassistant.js';
9
+ import { type AIAssistantConfig } from './aiassistant/aiassistant.js';
10
10
  import { type AIChatConfig } from './aichat/aichat.js';
11
11
  import { type AISuggestionActionName } from './aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';
12
12
  import { type AIQuickActionsConfig } from './aiquickactions/aiquickactions.js';
@@ -68,19 +68,40 @@ export interface AIConfig {
68
68
  */
69
69
  reviewMode?: AIReviewModeConfig;
70
70
  /**
71
- * The configuration of the advanced reply dropdown in the AI chat feed. It also affects the buttons in quick actions balloon.
71
+ * Defines what actions are available for the user when interacting with AI responses in AI Chat and AI Quick Actions features.
72
72
  *
73
- * It defines which actions and in which order will be displayed in the dropdown in the AI chat feed.
74
- * The first action is used as the default action for the dropdown button.
75
- * By default, it contains the following actions:
73
+ * Users can perform following three actions:
76
74
  *
77
- * Note, that the quick actions balloon does not display `'showChangeInText'` button.
75
+ * * `'applySuggestion'` - applies the presented change directly into the editor content.
76
+ * * `'insertSuggestion'` - applies the presented change as a suggestion, which can be later on accepted or rejected.
77
+ * * `'showChangeInText'` - locates the changed part of document in the editor and opens a balloon with the preview.
78
78
  *
79
- * Note, that the `'applySuggestion'` button is hidden when track changes feature is turned on.
79
+ * By default, the editor configuration enables all available actions, in following order:
80
80
  *
81
81
  * ```ts
82
82
  * [ 'applySuggestion', 'insertSuggestion', 'showChangeInText' ]
83
83
  * ```
84
+ *
85
+ * This setting impacts:
86
+ *
87
+ * * The action dropdown located below an AI reply in the chat feed. The setting affects the main action for the button, as well as
88
+ * actions available in the dropdown and their order.
89
+ * * The buttons located in the header of each change preview in the chat feed. Note, that the header is visible only if the AI Chat
90
+ * proposed multiple changes.
91
+ * * The buttons located in the balloon which shows the change preview.
92
+ *
93
+ * Through this configuration option, you can change how users use the AI replies. For example, if you want to force users to always
94
+ * insert AI-proposed changes as suggestions, omit `'applySuggestion'` action.
95
+ *
96
+ * Please note other factors that impact the availability of these actions:
97
+ *
98
+ * * Buttons related to `'applySuggestion'` action are hidden if {@link module:track-changes/trackchanges~TrackChanges track changes}
99
+ * feature is turned on.
100
+ * * Buttons related to `'insertSuggestion'` action are hidden if {@link module:track-changes/trackchanges~TrackChanges track changes}
101
+ * feature is not loaded in the editor.
102
+ *
103
+ * Please note, that due to these factors, it is possible to accidentally configure the editor in a way, that no UI elements are
104
+ * presented to the user.
84
105
  */
85
106
  availableReplyActions?: Array<AISuggestionActionName>;
86
107
  }
@@ -311,4 +311,5 @@ export type AIUpdateRating = {
311
311
  export type AIRating = {
312
312
  positiveCount: number;
313
313
  totalCount: number;
314
+ modificationId?: string;
314
315
  };
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x4744(_0x1fbd1d,_0x2dd812){const _0x188bbf=_0x188b();return _0x4744=function(_0x474472,_0x2b3002){_0x474472=_0x474472-0xc9;let _0x20541c=_0x188bbf[_0x474472];return _0x20541c;},_0x4744(_0x1fbd1d,_0x2dd812);}function _0x188b(){const _0x5e958f=['Content-Type','/calls','make-tone-casual','CloudServices','DELETE','ai.serviceUrl','upsertAIReviewRating','startConversation','pluginName','fetchConversation','424964htNSEt','name','fetchConversations','3420Cnhdcy','https://ai.cke-cs.com/v1','updateConversation','init','1753820RxzquX','_token','locale','decode','group','CONTINUE','keys','length','/actions/custom/calls','text','IMPROVE_WRITING','_decoder','get','totalCount','feed','/documents','8Lyezia','POST','_apiUrl','deleteConversation','true','_sendApiRequest','toString','file','data','uploadDocument','_handleError','/actions/system/','json','/reviews/custom/calls','deleteDocument','/files','385TfGxFL','4HAQcEi','getModels','/files/','queryAssistant','AIConnector','ai-request-failed','100','plugins','signal','Bearer\x20','token','deleteWebResource','getReader','uploadUrl','toUpperCase','GET','abortController','/conversations/','/conversations?','FIX_GRAMMAR','stringify','isOfficialPlugin','ai-missing-token','upsertCustomAIReviewRating','callCustomReview','82542ewsNAk','12408qTYIEF','fetchConversationMessages','ai-request-aborted','reset','continue','status','/models/1','excludeEmpty','executeAction','/calls/','TRANSLATE','_getStreamReader','search','776oMlUTN','append','4400991lkZWtY','make-tone-formal','/conversations','statusText','/documents/','read','MAKE_TONE_CASUAL','PUT','/messages','context','attributes','limit','1869ZxUrnw','/messages/','parse','/web-resources/','requires','upsertAIActionRating','value','executeCustomAction','map','AbortError','uploadFile','body','then','fetchDocument','/reviews/system/','/actions/custom/calls/','AI_MODEL_DESCRIPTION_','upsertAIChatRating','push','make-shorter','positiveCount','releaseLock','/ratings','MAKE_LONGER','define','catch','deleteFile','callSystemReview','upsertCustomAIActionRating','MAKE_SHORTER','improve-writing','fix-grammar','MAKE_TONE_FORMAL','make-longer','application/json','/reviews/custom/calls/','47892neSYTN','translate','1651GfHWqr','PATCH','items','request','config','/web-resources','isPremiumPlugin'];_0x188b=function(){return _0x5e958f;};return _0x188b();}const _0x46140e=_0x4744;(function(_0x53eb3a,_0x25ae60){const _0x5f4f05=_0x4744,_0x3a4bd3=_0x53eb3a();while(!![]){try{const _0x48e14=-parseInt(_0x5f4f05(0x107))/0x1*(parseInt(_0x5f4f05(0xdf))/0x2)+parseInt(_0x5f4f05(0x13c))/0x3*(-parseInt(_0x5f4f05(0x12e))/0x4)+parseInt(_0x5f4f05(0xe6))/0x5+parseInt(_0x5f4f05(0x120))/0x6*(parseInt(_0x5f4f05(0x106))/0x7)+parseInt(_0x5f4f05(0xf6))/0x8*(parseInt(_0x5f4f05(0x130))/0x9)+parseInt(_0x5f4f05(0xe2))/0xa*(parseInt(_0x5f4f05(0x121))/0xb)+-parseInt(_0x5f4f05(0xcc))/0xc*(parseInt(_0x5f4f05(0xce))/0xd);if(_0x48e14===_0x25ae60)break;else _0x3a4bd3['push'](_0x3a4bd3['shift']());}catch(_0x1c03f1){_0x3a4bd3['push'](_0x3a4bd3['shift']());}}}(_0x188b,0x7b2cf));import{createParser as _0x31ce6f}from'eventsource-parser';import{ContextPlugin as _0xcb0cb1}from'ckeditor5/src/core.js';import{CKEditorError as _0x2df2be}from'ckeditor5/src/utils.js';import{getTranslation as _0x3b6160}from'./utils/common-translations.js';export var AIActionsNames;!function(_0x5324c1){const _0x3bf303=_0x4744;_0x5324c1[_0x3bf303(0xeb)]=_0x3bf303(0x125),_0x5324c1[_0x3bf303(0x11a)]=_0x3bf303(0x15b),_0x5324c1[_0x3bf303(0xf0)]=_0x3bf303(0x15a),_0x5324c1[_0x3bf303(0x153)]=_0x3bf303(0xc9),_0x5324c1[_0x3bf303(0x159)]=_0x3bf303(0x14f),_0x5324c1[_0x3bf303(0x136)]=_0x3bf303(0xd7),_0x5324c1[_0x3bf303(0x15c)]=_0x3bf303(0x131),_0x5324c1[_0x3bf303(0x12b)]=_0x3bf303(0xcd);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0xcb0cb1{[_0x46140e(0xf8)];[_0x46140e(0xe7)];[_0x46140e(0xf1)];static get[_0x46140e(0x140)](){const _0x368a66=_0x46140e;return[_0x368a66(0xd8)];}static get[_0x46140e(0xdd)](){const _0x253b78=_0x46140e;return _0x253b78(0x10b);}static get[_0x46140e(0x11c)](){return!0x0;}static get[_0x46140e(0xd4)](){return!0x0;}constructor(_0x1e72fe){const _0x379773=_0x46140e;super(_0x1e72fe),this[_0x379773(0x139)][_0x379773(0xd2)][_0x379773(0x154)](_0x379773(0xda),_0x379773(0xe3)),this[_0x379773(0xf8)]=this[_0x379773(0x139)][_0x379773(0xd2)][_0x379773(0xf2)](_0x379773(0xda)),this[_0x379773(0xe7)]=null,this[_0x379773(0xf1)]=new TextDecoder();}[_0x46140e(0xe5)](){const _0xa6229f=_0x46140e,_0x5ecf90=this[_0xa6229f(0x139)][_0xa6229f(0x10e)][_0xa6229f(0xf2)](_0xa6229f(0xd8));if(!_0x5ecf90[_0xa6229f(0x111)])throw new _0x2df2be(_0xa6229f(0x11d),this);this[_0xa6229f(0xe7)]=_0x5ecf90[_0xa6229f(0x111)];}[_0x46140e(0xdc)](_0x14d1a1,_0x5b91a8){const _0x53465f=_0x46140e,_0x4581e1=this[_0x53465f(0xfb)](_0x53465f(0x132),_0x53465f(0xf7),{'id':_0x14d1a1,'group':_0x5b91a8});return{'getConversation':async()=>(await _0x4581e1[_0x53465f(0xd1)])[_0x53465f(0x102)](),'abortController':_0x4581e1[_0x53465f(0x117)]};}[_0x46140e(0x10a)]({message:_0x4507f6,conversationId:_0x478af0,parts:_0x17ed5b,capabilities:_0x3eb8be,model:_0x6a6fba,quickActionData:_0x22ca02}){const _0x383d45=_0x46140e,_0x57f272={..._0x22ca02&&{'quickActionData':_0x22ca02}},_0x19edcf={'prompt':_0x4507f6,'content':_0x17ed5b,'model':_0x6a6fba,..._0x3eb8be&&{'capabilities':_0x3eb8be},...Object[_0x383d45(0xec)](_0x57f272)[_0x383d45(0xed)]>0x0&&{'attributes':_0x57f272}},_0x594c00=this[_0x383d45(0xfb)](_0x383d45(0x118)+_0x478af0+_0x383d45(0x138),_0x383d45(0xf7),_0x19edcf);return{'getStream':async()=>{const _0x5e565b=_0x383d45,_0x3bad50=(await _0x594c00[_0x5e565b(0xd1)])[_0x5e565b(0x147)];return this[_0x5e565b(0x12c)](_0x3bad50);},'abortController':_0x594c00[_0x383d45(0x117)]};}[_0x46140e(0x143)]({content:_0xb9ed23,message:_0x46e312,model:_0x2136c1,outputFormat:_0x45e5b6}){const _0x34f9b3=_0x46140e,_0x13aaf5={'content':[{'type':_0x34f9b3(0xef),'content':_0xb9ed23}],'prompt':_0x46e312,'model':_0x2136c1,'outputFormat':_0x45e5b6},_0xc96d1=this[_0x34f9b3(0xfb)](_0x34f9b3(0xee),_0x34f9b3(0xf7),_0x13aaf5);return{'getStream':async()=>{const _0x4efd4a=_0x34f9b3,_0x2394e8=(await _0xc96d1[_0x4efd4a(0xd1)])[_0x4efd4a(0x147)];return this[_0x4efd4a(0x12c)](_0x2394e8);},'abortController':_0xc96d1[_0x34f9b3(0x117)]};}[_0x46140e(0x129)]({actionName:_0x6f7e13,content:_0x2aa45d,args:_0x59d75e}){const _0x2fdbbc=_0x46140e,_0x4dfeb3={'content':[{'type':_0x2fdbbc(0xef),'content':_0x2aa45d}],'args':_0x59d75e},_0x2873d5=this[_0x2fdbbc(0xfb)](_0x2fdbbc(0x101)+_0x6f7e13+_0x2fdbbc(0xd6),_0x2fdbbc(0xf7),_0x4dfeb3);return{'getStream':async()=>{const _0x2c345a=_0x2fdbbc,_0x3bb9eb=(await _0x2873d5[_0x2c345a(0xd1)])[_0x2c345a(0x147)];return this[_0x2c345a(0x12c)](_0x3bb9eb);},'abortController':_0x2873d5[_0x2fdbbc(0x117)]};}[_0x46140e(0x146)](_0xfae493,_0x50d3db,_0x1ae7c1){const _0x4a09b0=_0x46140e,_0x5618b5=new FormData();_0x5618b5[_0x4a09b0(0x12f)](_0x4a09b0(0xfd),_0x50d3db,_0x50d3db[_0x4a09b0(0xe0)]),_0x1ae7c1&&_0x5618b5[_0x4a09b0(0x12f)](_0x4a09b0(0x13a),JSON[_0x4a09b0(0x11b)](_0x1ae7c1));const _0x515415=this[_0x4a09b0(0xfb)](_0x4a09b0(0x118)+_0xfae493+_0x4a09b0(0x105),_0x4a09b0(0xf7),_0x5618b5);return{'getId':async()=>(await _0x515415[_0x4a09b0(0xd1)])[_0x4a09b0(0x102)](),'abortController':_0x515415[_0x4a09b0(0x117)]};}[_0x46140e(0x149)](_0x5f30d5,_0x57241c){const _0x1a1ef3=_0x46140e,_0x3d0dc1=this[_0x1a1ef3(0xfb)](_0x1a1ef3(0x118)+_0x5f30d5+_0x1a1ef3(0x134)+_0x57241c,_0x1a1ef3(0x116));return{'getDocument':async()=>(await _0x3d0dc1[_0x1a1ef3(0xd1)])[_0x1a1ef3(0x102)](),'abortController':_0x3d0dc1[_0x1a1ef3(0x117)]};}[_0x46140e(0xff)](_0x510e48,_0x29bde7,_0x97ce40){const _0xc3802a=_0x46140e,_0x269057={'content':_0x29bde7};_0x97ce40&&(_0x269057[_0xc3802a(0x13a)]=_0x97ce40);const _0x406fe8=this[_0xc3802a(0xfb)](_0xc3802a(0x118)+_0x510e48+_0xc3802a(0xf5),_0xc3802a(0xf7),_0x269057);return{'getId':async()=>(await _0x406fe8[_0xc3802a(0xd1)])[_0xc3802a(0x102)](),'abortController':_0x406fe8[_0xc3802a(0x117)]};}[_0x46140e(0xe1)](_0x485a93,_0x5720fa){const _0x3c98e1=_0x46140e,_0x519ba6=new URLSearchParams();_0x519ba6[_0x3c98e1(0x12f)](_0x3c98e1(0x128),_0x3c98e1(0xfa)),_0x519ba6[_0x3c98e1(0x12f)](_0x3c98e1(0x13b),_0x3c98e1(0x10d)),_0x519ba6[_0x3c98e1(0x12f)](_0x3c98e1(0xea),_0x485a93),_0x5720fa&&_0x519ba6[_0x3c98e1(0x12f)](_0x3c98e1(0x12d),_0x5720fa);const _0x4d0231=this[_0x3c98e1(0xfb)](_0x3c98e1(0x119)+_0x519ba6[_0x3c98e1(0xfc)](),_0x3c98e1(0x116));return{'getConversations':async()=>{const _0x30c05a=_0x3c98e1,_0x2bc50f=await _0x4d0231[_0x30c05a(0xd1)];return(await _0x2bc50f[_0x30c05a(0x102)]())[_0x30c05a(0xd0)];},'abortController':_0x4d0231[_0x3c98e1(0x117)]};}[_0x46140e(0xf9)](_0x3d8556){const _0x1c95f0=_0x46140e,_0x4381ce=this[_0x1c95f0(0xfb)](_0x1c95f0(0x118)+_0x3d8556,_0x1c95f0(0xd9));return{'execute':async()=>{const _0x3cfba7=_0x1c95f0;await _0x4381ce[_0x3cfba7(0xd1)];},'abortController':_0x4381ce[_0x1c95f0(0x117)]};}[_0x46140e(0xe4)](_0x20ed2c,_0x195e16){const _0x21ee48=_0x46140e,_0x461b31=this[_0x21ee48(0xfb)](_0x21ee48(0x118)+_0x20ed2c,_0x21ee48(0xcf),_0x195e16);return{'getResult':async()=>(await _0x461b31[_0x21ee48(0xd1)],_0x195e16),'abortController':_0x461b31[_0x21ee48(0x117)]};}[_0x46140e(0xde)](_0xb1e034){const _0xcbdff=_0x46140e,_0x491bdd=this[_0xcbdff(0xfb)](_0xcbdff(0x118)+_0xb1e034,_0xcbdff(0x116));return{'getConversation':async()=>(await _0x491bdd[_0xcbdff(0xd1)])[_0xcbdff(0x102)](),'abortController':_0x491bdd[_0xcbdff(0x117)]};}[_0x46140e(0x122)](_0x49d727){const _0x53f740=_0x46140e,_0x2d2d87=this[_0x53f740(0xfb)](_0x53f740(0x118)+_0x49d727+_0x53f740(0x138),_0x53f740(0x116));return{'getMessages':async()=>{const _0xff52df=_0x53f740,_0x12b33e=await _0x2d2d87[_0xff52df(0xd1)];return(await _0x12b33e[_0xff52df(0x102)]())[_0xff52df(0xd0)];},'abortController':_0x2d2d87[_0x53f740(0x117)]};}[_0x46140e(0x114)](_0x425f2f,_0x28ad2f,_0x4f5508){const _0x38bc91=_0x46140e,_0x5a3cb0=this[_0x38bc91(0xfb)](_0x38bc91(0x118)+_0x425f2f+_0x38bc91(0xd3),_0x38bc91(0xf7),{'url':_0x28ad2f,'attributes':_0x4f5508});return{'getId':async()=>(await _0x5a3cb0[_0x38bc91(0xd1)])[_0x38bc91(0x102)](),'abortController':_0x5a3cb0[_0x38bc91(0x117)]};}[_0x46140e(0x108)](){const _0x5a02cb=_0x46140e,_0x490df6=this[_0x5a02cb(0xfb)](_0x5a02cb(0x127),_0x5a02cb(0x116));return{'list':async()=>{const _0x5bae3b=_0x5a02cb,_0x1484e6=await(await _0x490df6[_0x5bae3b(0xd1)])[_0x5bae3b(0x102)](),_0x5180d7=_0x1484e6[_0x5bae3b(0xd0)][_0x5bae3b(0x144)](_0x5aeff6=>({..._0x5aeff6,'description':_0x3b6160(this[_0x5bae3b(0x139)][_0x5bae3b(0xe8)],_0x5bae3b(0x14c)+_0x5aeff6['id'][_0x5bae3b(0x115)]())}));return{..._0x1484e6,'items':_0x5180d7};},'abortController':_0x490df6[_0x5a02cb(0x117)]};}[_0x46140e(0x156)](_0x382189,_0x5cf46f){const _0x1c0a3f=_0x46140e,_0x4430be=this[_0x1c0a3f(0xfb)](_0x1c0a3f(0x118)+_0x382189+_0x1c0a3f(0x109)+_0x5cf46f,_0x1c0a3f(0xd9));return{'execute':async()=>{const _0x338413=_0x1c0a3f;await _0x4430be[_0x338413(0xd1)];},'abortController':_0x4430be[_0x1c0a3f(0x117)]};}[_0x46140e(0x104)](_0x41545a,_0x14a241){const _0x2f36a1=_0x46140e,_0x589f91=this[_0x2f36a1(0xfb)](_0x2f36a1(0x118)+_0x41545a+_0x2f36a1(0x134)+_0x14a241,_0x2f36a1(0xd9));return{'execute':async()=>{const _0x535fa3=_0x2f36a1;await _0x589f91[_0x535fa3(0xd1)];},'abortController':_0x589f91[_0x2f36a1(0x117)]};}[_0x46140e(0x112)](_0x137d9c,_0x4b0ed9){const _0x1e100c=_0x46140e,_0x25e9c4=this[_0x1e100c(0xfb)](_0x1e100c(0x118)+_0x137d9c+_0x1e100c(0x13f)+_0x4b0ed9,_0x1e100c(0xd9));return{'execute':async()=>{const _0x26a6f0=_0x1e100c;await _0x25e9c4[_0x26a6f0(0xd1)];},'abortController':_0x25e9c4[_0x1e100c(0x117)]};}[_0x46140e(0x157)]({reviewName:_0x52bdf1,content:_0x192375,args:_0x10c013}){const _0x391e3c=_0x46140e,_0xf3838e=this[_0x391e3c(0xfb)](_0x391e3c(0x14a)+_0x52bdf1+_0x391e3c(0xd6),_0x391e3c(0xf7),{'content':[{'type':_0x391e3c(0xef),'content':_0x192375}],'args':_0x10c013});return{'getStream':async()=>{const _0x326963=_0x391e3c,_0x3db77e=(await _0xf3838e[_0x326963(0xd1)])[_0x326963(0x147)];return this[_0x326963(0x12c)](_0x3db77e);},'abortController':_0xf3838e[_0x391e3c(0x117)]};}[_0x46140e(0x11f)]({content:_0x8eb217,prompt:_0x5c14cd,model:_0x4cf634}){const _0x446529=_0x46140e,_0x167a2d=this[_0x446529(0xfb)](_0x446529(0x103),_0x446529(0xf7),{'content':[{'type':_0x446529(0xef),'content':_0x8eb217}],'prompt':_0x5c14cd,'model':_0x4cf634});return{'getStream':async()=>{const _0x4bfdd9=_0x446529,_0xc8e6=(await _0x167a2d[_0x4bfdd9(0xd1)])[_0x4bfdd9(0x147)];return this[_0x4bfdd9(0x12c)](_0xc8e6);},'abortController':_0x167a2d[_0x446529(0x117)]};}[_0x46140e(0x14d)](_0x40d58d,_0x3ab876,_0x2dc2ff){const _0x22205e=_0x46140e,_0x3fef27=this[_0x22205e(0xfb)](_0x22205e(0x118)+_0x40d58d+_0x22205e(0x13d)+_0x3ab876+_0x22205e(0x152),_0x22205e(0x137),{'positiveCount':_0x2dc2ff[_0x22205e(0x150)],'totalCount':_0x2dc2ff[_0x22205e(0xf3)]});return{'execute':async()=>{const _0x47c7f7=_0x22205e;await _0x3fef27[_0x47c7f7(0xd1)];},'abortController':_0x3fef27[_0x22205e(0x117)]};}[_0x46140e(0x141)](_0x3cfe06,_0x59de5e,_0x49bec3){const _0x1d8fcc=_0x46140e,_0x483781=this[_0x1d8fcc(0xfb)](_0x1d8fcc(0x101)+_0x3cfe06+_0x1d8fcc(0x12a)+_0x59de5e+_0x1d8fcc(0x152),_0x1d8fcc(0x137),{'positiveCount':_0x49bec3[_0x1d8fcc(0x150)],'totalCount':_0x49bec3[_0x1d8fcc(0xf3)]});return{'execute':async()=>{const _0x1ca980=_0x1d8fcc;await _0x483781[_0x1ca980(0xd1)];},'abortController':_0x483781[_0x1d8fcc(0x117)]};}[_0x46140e(0x158)](_0x1027c4,_0x5ec098){const _0x21479f=_0x46140e,_0x306c02=this[_0x21479f(0xfb)](_0x21479f(0x14b)+_0x1027c4+_0x21479f(0x152),_0x21479f(0x137),{'positiveCount':_0x5ec098[_0x21479f(0x150)],'totalCount':_0x5ec098[_0x21479f(0xf3)]});return{'execute':async()=>{const _0x2aa9db=_0x21479f;await _0x306c02[_0x2aa9db(0xd1)];},'abortController':_0x306c02[_0x21479f(0x117)]};}[_0x46140e(0xdb)](_0x209cce,_0xf58d84,_0x273053,_0x342fa1){const _0x34ec8c=_0x46140e,_0x8e55ca=this[_0x34ec8c(0xfb)](_0x34ec8c(0x14a)+_0x209cce+_0x34ec8c(0x12a)+_0xf58d84+_0x34ec8c(0x152),_0x34ec8c(0x137),{'positiveCount':_0x273053[_0x34ec8c(0x150)],'totalCount':_0x273053[_0x34ec8c(0xf3)],'dataId':_0x342fa1});return{'execute':async()=>{const _0x398138=_0x34ec8c;await _0x8e55ca[_0x398138(0xd1)];},'abortController':_0x8e55ca[_0x34ec8c(0x117)]};}[_0x46140e(0x11e)](_0x10164b,_0x283053,_0x5e20bc){const _0x46bf72=_0x46140e,_0x3f7609=this[_0x46bf72(0xfb)](_0x46bf72(0xcb)+_0x10164b+_0x46bf72(0x152),_0x46bf72(0x137),{'positiveCount':_0x283053[_0x46bf72(0x150)],'totalCount':_0x283053[_0x46bf72(0xf3)],'dataId':_0x5e20bc});return{'execute':async()=>{const _0x33629b=_0x46bf72;await _0x3f7609[_0x33629b(0xd1)];},'abortController':_0x3f7609[_0x46bf72(0x117)]};}[_0x46140e(0xfb)](_0x49517e,_0x3d6c7b,_0xc2292b){const _0x25af87=_0x46140e,_0x1a18ba=new AbortController(),_0x202752=_0xc2292b instanceof FormData,_0x1e6d64={'Authorization':_0x25af87(0x110)+this[_0x25af87(0xe7)]?.[_0x25af87(0x142)]};_0xc2292b&&!_0x202752&&(_0x1e6d64[_0x25af87(0xd5)]=_0x25af87(0xca));const _0x814d69={'method':_0x3d6c7b,'headers':_0x1e6d64,'signal':_0x1a18ba[_0x25af87(0x10f)]};return _0xc2292b&&(_0x814d69[_0x25af87(0x147)]=_0x202752?_0xc2292b:JSON[_0x25af87(0x11b)](_0xc2292b)),{'request':fetch(''+this[_0x25af87(0xf8)]+_0x49517e,_0x814d69)[_0x25af87(0x155)](_0x1d141d=>{const _0x5bca1d=_0x25af87;this[_0x5bca1d(0x100)](_0x1d141d);})[_0x25af87(0x148)](_0x1a3d1f=>{const _0x204331=_0x25af87;if(!_0x1a3d1f['ok'])throw new _0x2df2be(_0x204331(0x10c),this,{'url':this[_0x204331(0xf8)],'path':_0x49517e,'method':_0x3d6c7b,'body':_0xc2292b,'status':(_0x1a3d1f||{})[_0x204331(0x126)],'statusText':(_0x1a3d1f||{})[_0x204331(0x133)]});return _0x1a3d1f;}),'abortController':_0x1a18ba};}async*[_0x46140e(0x12c)](_0x4ca3d4){const _0x14755d=_0x46140e,_0x73f15f=[],_0x5920da=_0x4ca3d4[_0x14755d(0x113)](),_0x1663a0=_0x31ce6f({'onError':_0x4576c5=>{const _0x9e5889=_0x14755d;this[_0x9e5889(0x100)](_0x4576c5);},'onEvent':_0x2cbf68=>{const _0x88b161=_0x14755d;_0x2cbf68[_0x88b161(0xfe)]=JSON[_0x88b161(0x13e)](_0x2cbf68[_0x88b161(0xfe)]),_0x73f15f[_0x88b161(0x14e)](_0x2cbf68);}});try{let _0x34aa8=!0x1;for(;!_0x34aa8;){const {done:_0x33b0f9,value:_0x34e580}=await _0x5920da[_0x14755d(0x135)]();_0x33b0f9&&(_0x34aa8=!0x0),_0x1663a0[_0x14755d(0xf4)](this[_0x14755d(0xf1)][_0x14755d(0xe9)](_0x34e580,{'stream':!0x0})),yield*_0x73f15f,_0x73f15f[_0x14755d(0xed)]=0x0;}}catch(_0x2b4b59){this[_0x14755d(0x100)](_0x2b4b59);}finally{_0x5920da[_0x14755d(0x151)](),_0x1663a0[_0x14755d(0x124)]();}}[_0x46140e(0x100)](_0x540eb3){const _0x5cdb05=_0x46140e;if(_0x540eb3 instanceof _0x2df2be)throw _0x540eb3;if(_0x540eb3 instanceof Error&&_0x5cdb05(0x145)===_0x540eb3[_0x5cdb05(0xe0)])throw new _0x2df2be(_0x5cdb05(0x123),this,{'originalError':_0x540eb3});throw new _0x2df2be(_0x5cdb05(0x10c),this,{'originalError':_0x540eb3});}}
23
+ const _0x16a027=_0x488c;(function(_0x38a86a,_0x5ad10d){const _0xb5a187=_0x488c,_0x56d6df=_0x38a86a();while(!![]){try{const _0x50c15d=-parseInt(_0xb5a187(0x21d))/0x1+parseInt(_0xb5a187(0x1da))/0x2+parseInt(_0xb5a187(0x1d9))/0x3+-parseInt(_0xb5a187(0x224))/0x4*(parseInt(_0xb5a187(0x1b3))/0x5)+parseInt(_0xb5a187(0x1ab))/0x6+parseInt(_0xb5a187(0x1c3))/0x7*(parseInt(_0xb5a187(0x1ad))/0x8)+-parseInt(_0xb5a187(0x1ce))/0x9;if(_0x50c15d===_0x5ad10d)break;else _0x56d6df['push'](_0x56d6df['shift']());}catch(_0x1ee1ff){_0x56d6df['push'](_0x56d6df['shift']());}}}(_0x4e02,0xb9149));import{createParser as _0xd5ea59}from'eventsource-parser';function _0x488c(_0x4030e2,_0xe3e595){const _0x4e0282=_0x4e02();return _0x488c=function(_0x488c0c,_0x2cb6f6){_0x488c0c=_0x488c0c-0x1a3;let _0x31914e=_0x4e0282[_0x488c0c];return _0x31914e;},_0x488c(_0x4030e2,_0xe3e595);}import{ContextPlugin as _0x35dccf}from'ckeditor5/src/core.js';import{CKEditorError as _0x253a4e}from'ckeditor5/src/utils.js';export var AIActionsNames;!function(_0x103614){const _0x3f14b1=_0x488c;_0x103614[_0x3f14b1(0x22e)]=_0x3f14b1(0x22a),_0x103614[_0x3f14b1(0x1bb)]=_0x3f14b1(0x200),_0x103614[_0x3f14b1(0x1d4)]=_0x3f14b1(0x1cc),_0x103614[_0x3f14b1(0x21c)]=_0x3f14b1(0x1f6),_0x103614[_0x3f14b1(0x1f0)]=_0x3f14b1(0x1bd),_0x103614[_0x3f14b1(0x22f)]=_0x3f14b1(0x1a7),_0x103614[_0x3f14b1(0x221)]=_0x3f14b1(0x1fe),_0x103614[_0x3f14b1(0x216)]=_0x3f14b1(0x1c7);}(AIActionsNames||(AIActionsNames={}));function _0x4e02(){const _0x756430=['stringify','append','statusText','uploadFile','deleteConversation','pluginName','AIConnector','getReader','get','AbortError','/conversations/','/conversations','fetchDocument','isPremiumPlugin','ai.serviceUrl','push','/actions/system/','decode','config','TRANSLATE','_decoder','_sendApiRequest','json','/actions/custom/calls','getModels','MAKE_LONGER','1126766mmnUCo','signal','request','items','MAKE_TONE_FORMAL','upsertAIChatRating','upsertCustomAIReviewRating','37132IiRBJa','name','queryAssistant','PUT','isOfficialPlugin','CloudServices','continue','/web-resources','ai-request-failed','positiveCount','CONTINUE','MAKE_TONE_CASUAL','/conversations?','fetchConversation','status','deleteDocument','make-tone-casual','init','Bearer\x20','/files/','3123402ISoNyG','search','11070152vAweKB','feed','releaseLock','uploadDocument','deleteWebResource','/reviews/system/','715maAOZV','/files','keys','callCustomReview','/ratings','/calls','/web-resources/','upsertCustomAIActionRating','FIX_GRAMMAR','https://ai.cke-cs.com/v1','make-shorter','totalCount','context','/reviews/custom/calls/','plugins','body','7COQTqI','true','requires','upsertAIReviewRating','translate','/messages/','POST','DELETE','fetchConversations','improve-writing','100','8055234iRulrB','executeCustomAction','/actions/custom/calls/','/documents','upsertAIActionRating','fetchConversationMessages','IMPROVE_WRITING','/documents/','text','_apiUrl','_getStreamReader','2195781EqSWnl','2942174zkfETc','ai-missing-token','define','modificationId','GET','value','toString','/messages','group','length','then','deleteFile','startConversation','data','file','Content-Type','read','/reviews/custom/calls','_handleError','catch','token','attributes','MAKE_SHORTER','/calls/','executeAction','abortController','callSystemReview','limit','make-longer','_token','/models/1','PATCH','ai-request-aborted','excludeEmpty','parse','updateConversation','make-tone-formal','uploadUrl','fix-grammar','application/json','reset'];_0x4e02=function(){return _0x756430;};return _0x4e02();}export class AIConnector extends _0x35dccf{[_0x16a027(0x1d7)];[_0x16a027(0x1f7)];[_0x16a027(0x217)];static get[_0x16a027(0x1c5)](){const _0x149c0f=_0x16a027;return[_0x149c0f(0x229)];}static get[_0x16a027(0x208)](){const _0x36fba5=_0x16a027;return _0x36fba5(0x209);}static get[_0x16a027(0x228)](){return!0x0;}static get[_0x16a027(0x210)](){return!0x0;}constructor(_0x54f303){const _0x57667c=_0x16a027;super(_0x54f303),this[_0x57667c(0x1bf)][_0x57667c(0x215)][_0x57667c(0x1dc)](_0x57667c(0x211),_0x57667c(0x1bc)),this[_0x57667c(0x1d7)]=this[_0x57667c(0x1bf)][_0x57667c(0x215)][_0x57667c(0x20b)](_0x57667c(0x211)),this[_0x57667c(0x1f7)]=null,this[_0x57667c(0x217)]=new TextDecoder();}[_0x16a027(0x1a8)](){const _0x4e914e=_0x16a027,_0x22937e=this[_0x4e914e(0x1bf)][_0x4e914e(0x1c1)][_0x4e914e(0x20b)](_0x4e914e(0x229));if(!_0x22937e[_0x4e914e(0x1ee)])throw new _0x253a4e(_0x4e914e(0x1db),this);this[_0x4e914e(0x1f7)]=_0x22937e[_0x4e914e(0x1ee)];}[_0x16a027(0x1e6)](_0x17ae54,_0x2ede02){const _0x525696=_0x16a027,_0x50cab3=this[_0x525696(0x218)](_0x525696(0x20e),_0x525696(0x1c9),{'id':_0x17ae54,'group':_0x2ede02});return{'getConversation':async()=>(await _0x50cab3[_0x525696(0x21f)])[_0x525696(0x219)](),'abortController':_0x50cab3[_0x525696(0x1f3)]};}[_0x16a027(0x226)]({message:_0x3474c7,conversationId:_0x258d40,parts:_0x236f20,capabilities:_0x576671,model:_0x1ba48a,quickActionData:_0x44debc}){const _0x57ce3e=_0x16a027,_0x14bef7={..._0x44debc&&{'quickActionData':_0x44debc}},_0x2f79c6={'prompt':_0x3474c7,'content':_0x236f20,'model':_0x1ba48a,..._0x576671&&{'capabilities':_0x576671},...Object[_0x57ce3e(0x1b5)](_0x14bef7)[_0x57ce3e(0x1e3)]>0x0&&{'attributes':_0x14bef7}},_0x42dcbc=this[_0x57ce3e(0x218)](_0x57ce3e(0x20d)+_0x258d40+_0x57ce3e(0x1e1),_0x57ce3e(0x1c9),_0x2f79c6);return{'getStream':async()=>{const _0x9b1235=_0x57ce3e,_0x4b2e96=(await _0x42dcbc[_0x9b1235(0x21f)])[_0x9b1235(0x1c2)];return this[_0x9b1235(0x1d8)](_0x4b2e96);},'abortController':_0x42dcbc[_0x57ce3e(0x1f3)]};}[_0x16a027(0x1cf)]({content:_0x15c2e9,message:_0x5b4691,model:_0x1bea67,outputFormat:_0x43dffe}){const _0x208f98=_0x16a027,_0x45f3a3={'content':[{'type':_0x208f98(0x1d6),'content':_0x15c2e9}],'prompt':_0x5b4691,'model':_0x1bea67,'outputFormat':_0x43dffe},_0x332973=this[_0x208f98(0x218)](_0x208f98(0x21a),_0x208f98(0x1c9),_0x45f3a3);return{'getStream':async()=>{const _0x22de8b=_0x208f98,_0x4530b3=(await _0x332973[_0x22de8b(0x21f)])[_0x22de8b(0x1c2)];return this[_0x22de8b(0x1d8)](_0x4530b3);},'abortController':_0x332973[_0x208f98(0x1f3)]};}[_0x16a027(0x1f2)]({actionName:_0x477fe7,content:_0xe9acb7,args:_0x1bf058}){const _0x58e90b=_0x16a027,_0x591867={'content':[{'type':_0x58e90b(0x1d6),'content':_0xe9acb7}],'args':_0x1bf058},_0x17034b=this[_0x58e90b(0x218)](_0x58e90b(0x213)+_0x477fe7+_0x58e90b(0x1b8),_0x58e90b(0x1c9),_0x591867);return{'getStream':async()=>{const _0x12799a=_0x58e90b,_0x5a9d8d=(await _0x17034b[_0x12799a(0x21f)])[_0x12799a(0x1c2)];return this[_0x12799a(0x1d8)](_0x5a9d8d);},'abortController':_0x17034b[_0x58e90b(0x1f3)]};}[_0x16a027(0x206)](_0xb1ab81,_0xe3b142,_0x31d8ac){const _0x39f14f=_0x16a027,_0x4ca005=new FormData();_0x4ca005[_0x39f14f(0x204)](_0x39f14f(0x1e8),_0xe3b142,_0xe3b142[_0x39f14f(0x225)]),_0x31d8ac&&_0x4ca005[_0x39f14f(0x204)](_0x39f14f(0x1ef),JSON[_0x39f14f(0x203)](_0x31d8ac));const _0x4ea75e=this[_0x39f14f(0x218)](_0x39f14f(0x20d)+_0xb1ab81+_0x39f14f(0x1b4),_0x39f14f(0x1c9),_0x4ca005);return{'getId':async()=>(await _0x4ea75e[_0x39f14f(0x21f)])[_0x39f14f(0x219)](),'abortController':_0x4ea75e[_0x39f14f(0x1f3)]};}[_0x16a027(0x20f)](_0x253314,_0x27c1fc){const _0x194674=_0x16a027,_0x53d410=this[_0x194674(0x218)](_0x194674(0x20d)+_0x253314+_0x194674(0x1d5)+_0x27c1fc,_0x194674(0x1de));return{'getDocument':async()=>(await _0x53d410[_0x194674(0x21f)])[_0x194674(0x219)](),'abortController':_0x53d410[_0x194674(0x1f3)]};}[_0x16a027(0x1b0)](_0x40251a,_0x418121,_0x5d5e8f){const _0x323c30=_0x16a027,_0x3d8a90={'content':_0x418121};_0x5d5e8f&&(_0x3d8a90[_0x323c30(0x1ef)]=_0x5d5e8f);const _0x162c53=this[_0x323c30(0x218)](_0x323c30(0x20d)+_0x40251a+_0x323c30(0x1d1),_0x323c30(0x1c9),_0x3d8a90);return{'getId':async()=>(await _0x162c53[_0x323c30(0x21f)])[_0x323c30(0x219)](),'abortController':_0x162c53[_0x323c30(0x1f3)]};}[_0x16a027(0x1cb)](_0x320800,_0xc71721){const _0x2a4267=_0x16a027,_0x5d7464=new URLSearchParams();_0x5d7464[_0x2a4267(0x204)](_0x2a4267(0x1fb),_0x2a4267(0x1c4)),_0x5d7464[_0x2a4267(0x204)](_0x2a4267(0x1f5),_0x2a4267(0x1cd)),_0x5d7464[_0x2a4267(0x204)](_0x2a4267(0x1e2),_0x320800),_0xc71721&&_0x5d7464[_0x2a4267(0x204)](_0x2a4267(0x1ac),_0xc71721);const _0x3105c9=this[_0x2a4267(0x218)](_0x2a4267(0x1a3)+_0x5d7464[_0x2a4267(0x1e0)](),_0x2a4267(0x1de));return{'getConversations':async()=>{const _0xe5cf11=_0x2a4267,_0x33d79b=await _0x3105c9[_0xe5cf11(0x21f)];return(await _0x33d79b[_0xe5cf11(0x219)]())[_0xe5cf11(0x220)];},'abortController':_0x3105c9[_0x2a4267(0x1f3)]};}[_0x16a027(0x207)](_0x287803){const _0x3ed658=_0x16a027,_0x2df359=this[_0x3ed658(0x218)](_0x3ed658(0x20d)+_0x287803,_0x3ed658(0x1ca));return{'execute':async()=>{const _0xacdb7a=_0x3ed658;await _0x2df359[_0xacdb7a(0x21f)];},'abortController':_0x2df359[_0x3ed658(0x1f3)]};}[_0x16a027(0x1fd)](_0x2fc299,_0x49ddc5){const _0x15bcd5=_0x16a027,_0x190293=this[_0x15bcd5(0x218)](_0x15bcd5(0x20d)+_0x2fc299,_0x15bcd5(0x1f9),_0x49ddc5);return{'getResult':async()=>(await _0x190293[_0x15bcd5(0x21f)],_0x49ddc5),'abortController':_0x190293[_0x15bcd5(0x1f3)]};}[_0x16a027(0x1a4)](_0x564a77){const _0x5eb91f=_0x16a027,_0x19dcc0=this[_0x5eb91f(0x218)](_0x5eb91f(0x20d)+_0x564a77,_0x5eb91f(0x1de));return{'getConversation':async()=>(await _0x19dcc0[_0x5eb91f(0x21f)])[_0x5eb91f(0x219)](),'abortController':_0x19dcc0[_0x5eb91f(0x1f3)]};}[_0x16a027(0x1d3)](_0x39e5ab){const _0x2ba718=_0x16a027,_0x100cdd=this[_0x2ba718(0x218)](_0x2ba718(0x20d)+_0x39e5ab+_0x2ba718(0x1e1),_0x2ba718(0x1de));return{'getMessages':async()=>{const _0x1302bc=_0x2ba718,_0x55d5cd=await _0x100cdd[_0x1302bc(0x21f)];return(await _0x55d5cd[_0x1302bc(0x219)]())[_0x1302bc(0x220)];},'abortController':_0x100cdd[_0x2ba718(0x1f3)]};}[_0x16a027(0x1ff)](_0xe20d87,_0x2ad99d,_0x565912){const _0x207efc=_0x16a027,_0x26dd84=this[_0x207efc(0x218)](_0x207efc(0x20d)+_0xe20d87+_0x207efc(0x22b),_0x207efc(0x1c9),{'url':_0x2ad99d,'attributes':_0x565912});return{'getId':async()=>(await _0x26dd84[_0x207efc(0x21f)])[_0x207efc(0x219)](),'abortController':_0x26dd84[_0x207efc(0x1f3)]};}[_0x16a027(0x21b)](){const _0x4a08a8=_0x16a027,_0x302d10=this[_0x4a08a8(0x218)](_0x4a08a8(0x1f8),_0x4a08a8(0x1de));return{'list':async()=>await(await _0x302d10[_0x4a08a8(0x21f)])[_0x4a08a8(0x219)](),'abortController':_0x302d10[_0x4a08a8(0x1f3)]};}[_0x16a027(0x1e5)](_0x9447ae,_0x4cc8b1){const _0x318c52=_0x16a027,_0x1802f1=this[_0x318c52(0x218)](_0x318c52(0x20d)+_0x9447ae+_0x318c52(0x1aa)+_0x4cc8b1,_0x318c52(0x1ca));return{'execute':async()=>{const _0x11f1f2=_0x318c52;await _0x1802f1[_0x11f1f2(0x21f)];},'abortController':_0x1802f1[_0x318c52(0x1f3)]};}[_0x16a027(0x1a6)](_0x47f71c,_0x14cfe7){const _0x123da0=_0x16a027,_0x2b894c=this[_0x123da0(0x218)](_0x123da0(0x20d)+_0x47f71c+_0x123da0(0x1d5)+_0x14cfe7,_0x123da0(0x1ca));return{'execute':async()=>{const _0xae3515=_0x123da0;await _0x2b894c[_0xae3515(0x21f)];},'abortController':_0x2b894c[_0x123da0(0x1f3)]};}[_0x16a027(0x1b1)](_0x24339d,_0x2c7934){const _0x22e7f8=_0x16a027,_0x192058=this[_0x22e7f8(0x218)](_0x22e7f8(0x20d)+_0x24339d+_0x22e7f8(0x1b9)+_0x2c7934,_0x22e7f8(0x1ca));return{'execute':async()=>{const _0xf93164=_0x22e7f8;await _0x192058[_0xf93164(0x21f)];},'abortController':_0x192058[_0x22e7f8(0x1f3)]};}[_0x16a027(0x1f4)]({reviewName:_0x2fae84,content:_0x5b8135,args:_0x11d58e}){const _0x2b92fe=_0x16a027,_0xa6b774=this[_0x2b92fe(0x218)](_0x2b92fe(0x1b2)+_0x2fae84+_0x2b92fe(0x1b8),_0x2b92fe(0x1c9),{'content':[{'type':_0x2b92fe(0x1d6),'content':_0x5b8135}],'args':_0x11d58e});return{'getStream':async()=>{const _0xe69c63=_0x2b92fe,_0x2ff99f=(await _0xa6b774[_0xe69c63(0x21f)])[_0xe69c63(0x1c2)];return this[_0xe69c63(0x1d8)](_0x2ff99f);},'abortController':_0xa6b774[_0x2b92fe(0x1f3)]};}[_0x16a027(0x1b6)]({content:_0x2d4f0e,prompt:_0x26dbf4,model:_0x55213a}){const _0x2deafa=_0x16a027,_0x1e4f51=this[_0x2deafa(0x218)](_0x2deafa(0x1eb),_0x2deafa(0x1c9),{'content':[{'type':_0x2deafa(0x1d6),'content':_0x2d4f0e}],'prompt':_0x26dbf4,'model':_0x55213a});return{'getStream':async()=>{const _0x1d6c72=_0x2deafa,_0x4d9b00=(await _0x1e4f51[_0x1d6c72(0x21f)])[_0x1d6c72(0x1c2)];return this[_0x1d6c72(0x1d8)](_0x4d9b00);},'abortController':_0x1e4f51[_0x2deafa(0x1f3)]};}[_0x16a027(0x222)](_0x24494f,_0x26b003,_0x2da5db){const _0x498137=_0x16a027,_0x57c38b=this[_0x498137(0x218)](_0x498137(0x20d)+_0x24494f+_0x498137(0x1c8)+_0x26b003+_0x498137(0x1b7),_0x498137(0x227),{'positiveCount':_0x2da5db[_0x498137(0x22d)],'totalCount':_0x2da5db[_0x498137(0x1be)],'modificationId':_0x2da5db[_0x498137(0x1dd)]});return{'execute':async()=>{const _0x365b76=_0x498137;await _0x57c38b[_0x365b76(0x21f)];},'abortController':_0x57c38b[_0x498137(0x1f3)]};}[_0x16a027(0x1d2)](_0x56a919,_0x61e0d9,_0xe8e1c){const _0x637dc0=_0x16a027,_0x40bacd=this[_0x637dc0(0x218)](_0x637dc0(0x213)+_0x56a919+_0x637dc0(0x1f1)+_0x61e0d9+_0x637dc0(0x1b7),_0x637dc0(0x227),{'positiveCount':_0xe8e1c[_0x637dc0(0x22d)],'totalCount':_0xe8e1c[_0x637dc0(0x1be)]});return{'execute':async()=>{const _0x554988=_0x637dc0;await _0x40bacd[_0x554988(0x21f)];},'abortController':_0x40bacd[_0x637dc0(0x1f3)]};}[_0x16a027(0x1ba)](_0x520488,_0x4ea4ae){const _0x2a2b90=_0x16a027,_0x4dae14=this[_0x2a2b90(0x218)](_0x2a2b90(0x1d0)+_0x520488+_0x2a2b90(0x1b7),_0x2a2b90(0x227),{'positiveCount':_0x4ea4ae[_0x2a2b90(0x22d)],'totalCount':_0x4ea4ae[_0x2a2b90(0x1be)]});return{'execute':async()=>{const _0x4dea26=_0x2a2b90;await _0x4dae14[_0x4dea26(0x21f)];},'abortController':_0x4dae14[_0x2a2b90(0x1f3)]};}[_0x16a027(0x1c6)](_0x589eb2,_0x385531,_0x2ff74d,_0x4a001c){const _0x252321=_0x16a027,_0x5d599b=this[_0x252321(0x218)](_0x252321(0x1b2)+_0x589eb2+_0x252321(0x1f1)+_0x385531+_0x252321(0x1b7),_0x252321(0x227),{'positiveCount':_0x2ff74d[_0x252321(0x22d)],'totalCount':_0x2ff74d[_0x252321(0x1be)],'dataId':_0x4a001c});return{'execute':async()=>{const _0x253e98=_0x252321;await _0x5d599b[_0x253e98(0x21f)];},'abortController':_0x5d599b[_0x252321(0x1f3)]};}[_0x16a027(0x223)](_0x3152a5,_0x4741ea,_0x36dad4){const _0x1bd408=_0x16a027,_0x2cffa2=this[_0x1bd408(0x218)](_0x1bd408(0x1c0)+_0x3152a5+_0x1bd408(0x1b7),_0x1bd408(0x227),{'positiveCount':_0x4741ea[_0x1bd408(0x22d)],'totalCount':_0x4741ea[_0x1bd408(0x1be)],'dataId':_0x36dad4});return{'execute':async()=>{const _0x38ba23=_0x1bd408;await _0x2cffa2[_0x38ba23(0x21f)];},'abortController':_0x2cffa2[_0x1bd408(0x1f3)]};}[_0x16a027(0x218)](_0x478978,_0x61d209,_0x47c81d){const _0x56cecc=_0x16a027,_0x19da50=new AbortController(),_0x14d592=_0x47c81d instanceof FormData,_0x42b81e={'Authorization':_0x56cecc(0x1a9)+this[_0x56cecc(0x1f7)]?.[_0x56cecc(0x1df)]};_0x47c81d&&!_0x14d592&&(_0x42b81e[_0x56cecc(0x1e9)]=_0x56cecc(0x201));const _0x149128={'method':_0x61d209,'headers':_0x42b81e,'signal':_0x19da50[_0x56cecc(0x21e)]};return _0x47c81d&&(_0x149128[_0x56cecc(0x1c2)]=_0x14d592?_0x47c81d:JSON[_0x56cecc(0x203)](_0x47c81d)),{'request':fetch(''+this[_0x56cecc(0x1d7)]+_0x478978,_0x149128)[_0x56cecc(0x1ed)](_0x5e376f=>{const _0x140b0c=_0x56cecc;this[_0x140b0c(0x1ec)](_0x5e376f);})[_0x56cecc(0x1e4)](_0x305706=>{const _0x1be1f4=_0x56cecc;if(!_0x305706['ok'])throw new _0x253a4e(_0x1be1f4(0x22c),this,{'url':this[_0x1be1f4(0x1d7)],'path':_0x478978,'method':_0x61d209,'body':_0x47c81d,'status':(_0x305706||{})[_0x1be1f4(0x1a5)],'statusText':(_0x305706||{})[_0x1be1f4(0x205)]});return _0x305706;}),'abortController':_0x19da50};}async*[_0x16a027(0x1d8)](_0x69b80e){const _0x3f49cd=_0x16a027,_0x17a333=[],_0x4e24a9=_0x69b80e[_0x3f49cd(0x20a)](),_0x172ed2=_0xd5ea59({'onError':_0x3b4c04=>{const _0x207dac=_0x3f49cd;this[_0x207dac(0x1ec)](_0x3b4c04);},'onEvent':_0x1a4bc4=>{const _0x2ada61=_0x3f49cd;_0x1a4bc4[_0x2ada61(0x1e7)]=JSON[_0x2ada61(0x1fc)](_0x1a4bc4[_0x2ada61(0x1e7)]),_0x17a333[_0x2ada61(0x212)](_0x1a4bc4);}});try{let _0xac4480=!0x1;for(;!_0xac4480;){const {done:_0x4af311,value:_0xfde38}=await _0x4e24a9[_0x3f49cd(0x1ea)]();_0x4af311&&(_0xac4480=!0x0),_0x172ed2[_0x3f49cd(0x1ae)](this[_0x3f49cd(0x217)][_0x3f49cd(0x214)](_0xfde38,{'stream':!0x0})),yield*_0x17a333,_0x17a333[_0x3f49cd(0x1e3)]=0x0;}}catch(_0xa64342){this[_0x3f49cd(0x1ec)](_0xa64342);}finally{_0x4e24a9[_0x3f49cd(0x1af)](),_0x172ed2[_0x3f49cd(0x202)]();}}[_0x16a027(0x1ec)](_0x148891){const _0x578ce3=_0x16a027;if(_0x148891 instanceof _0x253a4e)throw _0x148891;if(_0x148891 instanceof Error&&_0x578ce3(0x20c)===_0x148891[_0x578ce3(0x225)])throw new _0x253a4e(_0x578ce3(0x1fa),this,{'originalError':_0x148891});throw new _0x253a4e(_0x578ce3(0x22c),this,{'originalError':_0x148891});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4b140f=_0x3b47;(function(_0x553a0a,_0x583162){const _0x322578=_0x3b47,_0x13f953=_0x553a0a();while(!![]){try{const _0x397e97=-parseInt(_0x322578(0x14d))/0x1+-parseInt(_0x322578(0x167))/0x2+parseInt(_0x322578(0x148))/0x3+parseInt(_0x322578(0x15d))/0x4*(-parseInt(_0x322578(0x162))/0x5)+-parseInt(_0x322578(0x130))/0x6*(parseInt(_0x322578(0x11f))/0x7)+parseInt(_0x322578(0x137))/0x8*(-parseInt(_0x322578(0x115))/0x9)+parseInt(_0x322578(0x16d))/0xa;if(_0x397e97===_0x583162)break;else _0x13f953['push'](_0x13f953['shift']());}catch(_0x40c317){_0x13f953['push'](_0x13f953['shift']());}}}(_0xf8d8,0xddb7a));import{ViewDowncastWriter as _0x3f52f0}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x342401,Editor as _0x179baa}from'ckeditor5/src/core.js';function _0x3b47(_0x32ff75,_0x296d4a){const _0xf8d899=_0xf8d8();return _0x3b47=function(_0x3b47d6,_0x295871){_0x3b47d6=_0x3b47d6-0x105;let _0xb3d7b0=_0xf8d899[_0x3b47d6];return _0xb3d7b0;},_0x3b47(_0x32ff75,_0x296d4a);}import{uid as _0x39cab1}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x159af4}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x4b140f(0x13c);function _0xf8d8(){const _0x56667d=['RealTimeCollaborationClient',':end>','_displayedFakeSelectionLocked','fromCharCode','schema','data-id','push','join','2863365nDTXOa','listenTo','end','random','isOfficialPlugin','1501167CLJjNc','context','start','model','markers','_setDataIdsOnChildren','editors','_displayedFakeSelectionId','conversion',':end></','markerName','getSelectionText','$textProxy','ck-ai-assistant-ui_theme','toView','emptyElement','167564KLCQuL','trim','_sessionId','toData','pluginName','55FpbZwo','editingDowncast','getRoot','view','removeMarker','767052HKBiAk','for','createRangeIn','get','change','has','44741810WeMFFm','from','name','getWalker','getMarkersGroup','dataDowncast','add','document','markerToHighlight','afterInit','ck-fake-ai-selection','AIEditing','ready','hideFakeVisualSelection','isBefore','modelToViewWithIds','version','162CeAQHe','convertAiChatSelectionMarker','markerToElement','processor','length','setAttribute','getChildren','getStart','addMarker','getSelection','14kEOHWm',':start>','createUIElement','substring','plugins','sessionId','indexOf','isPremiumPlugin','_nextDataId','floor','editing','getSelectedContent','isAfter','_integrateEditor','sort','isOpening','data','4819860tIJPKD','containerElement','getDocumentData','getLastMatchingPosition','showFakeVisualSelection','isContent','createRange','252608KiMNBz','ai-selection:','element','isAtEnd','removeAllRanges','ai-selection','_getMarkersInDocumentOrder','selection',':start></'];_0xf8d8=function(){return _0x56667d;};return _0xf8d8();}export class AIEditing extends _0x342401{[_0x4b140f(0x154)]=null;[_0x4b140f(0x142)]=!0x1;[_0x4b140f(0x15f)];static get[_0x4b140f(0x161)](){const _0x381e93=_0x4b140f;return _0x381e93(0x10f);}static get[_0x4b140f(0x14c)](){return!0x0;}static get[_0x4b140f(0x126)](){return!0x0;}get[_0x4b140f(0x124)](){const _0x13fae3=_0x4b140f;if(!this[_0x13fae3(0x15f)]){const _0x49a468=_0x159af4(this[_0x13fae3(0x14e)]),_0x46e47b=_0x49a468[_0x13fae3(0x123)][_0x13fae3(0x16c)](_0x13fae3(0x140))&&_0x49a468[_0x13fae3(0x123)][_0x13fae3(0x16a)](_0x13fae3(0x140))[_0x13fae3(0x124)];this[_0x13fae3(0x15f)]=_0x46e47b||_0x39cab1();}return this[_0x13fae3(0x15f)];}[_0x4b140f(0x132)](){const _0x41b9d1=_0x4b140f,_0x51123e=_0x159af4(this[_0x41b9d1(0x14e)]),_0x4a8405=_0x51123e[_0x41b9d1(0x150)],_0x425c47=_0x51123e[_0x41b9d1(0x12f)][_0x41b9d1(0x15b)](_0x4a8405[_0x41b9d1(0x10b)][_0x41b9d1(0x164)](),{'convertAiChatSelectionMarker':!0x0}),_0x265caa=new _0x3f52f0(_0x51123e[_0x41b9d1(0x129)][_0x41b9d1(0x165)][_0x41b9d1(0x10b)]);this[_0x41b9d1(0x152)](_0x425c47,_0x265caa);let _0x5cfc7b=_0x51123e[_0x41b9d1(0x12f)][_0x41b9d1(0x118)][_0x41b9d1(0x160)](_0x425c47);const _0x11ff1e=this[_0x41b9d1(0x13d)](),_0x38e7c8=[];for(const _0x455510 of _0x11ff1e){const _0x455a45='<'+_0x455510[_0x41b9d1(0x106)]+_0x41b9d1(0x13f)+_0x455510[_0x41b9d1(0x106)]+_0x41b9d1(0x120),_0xa6c35a=_0x5cfc7b[_0x41b9d1(0x125)](_0x455a45);_0x5cfc7b=_0x5cfc7b[_0x41b9d1(0x122)](0x0,_0xa6c35a)+_0x5cfc7b[_0x41b9d1(0x122)](_0xa6c35a+_0x455a45[_0x41b9d1(0x119)]);const _0x432388='<'+_0x455510[_0x41b9d1(0x106)]+_0x41b9d1(0x156)+_0x455510[_0x41b9d1(0x106)]+_0x41b9d1(0x141),_0x5242ae=_0x5cfc7b[_0x41b9d1(0x125)](_0x432388);_0x5cfc7b=_0x5cfc7b[_0x41b9d1(0x122)](0x0,_0x5242ae)+_0x5cfc7b[_0x41b9d1(0x122)](_0x5242ae+_0x432388[_0x41b9d1(0x119)]),_0x38e7c8[_0x41b9d1(0x146)]({'markerName':_0x455510[_0x41b9d1(0x106)],'start':_0xa6c35a,'end':_0x5242ae,'htmlFragment':_0x5cfc7b[_0x41b9d1(0x122)](_0xa6c35a,_0x5242ae)});}return{'content':_0x5cfc7b,'version':_0x51123e[_0x41b9d1(0x150)][_0x41b9d1(0x10b)][_0x41b9d1(0x114)],'sessionId':this[_0x41b9d1(0x124)],'selections':_0x38e7c8};}async[_0x4b140f(0x10d)](){const _0x1bccdd=_0x4b140f;this[_0x1bccdd(0x14e)]instanceof _0x179baa?this[_0x1bccdd(0x12c)](this[_0x1bccdd(0x14e)]):this[_0x1bccdd(0x149)](this[_0x1bccdd(0x14e)][_0x1bccdd(0x153)],_0x1bccdd(0x10a),(_0x4ee0ee,_0x4733fd)=>{const _0x5a428e=_0x1bccdd;_0x4733fd['on'](_0x5a428e(0x110),()=>{const _0x5bf9da=_0x5a428e;this[_0x5bf9da(0x12c)](_0x4733fd);});});}[_0x4b140f(0x12c)](_0x63c822){const _0x379414=_0x4b140f;_0x63c822[_0x379414(0x155)][_0x379414(0x168)](_0x379414(0x163))[_0x379414(0x10c)]({'model':_0x379414(0x13c),'view':{'classes':[_0x379414(0x10e),_0x379414(0x15a)],'priority':0xc}}),_0x63c822[_0x379414(0x155)][_0x379414(0x168)](_0x379414(0x109))[_0x379414(0x117)]({'model':_0x379414(0x13c),'view':(_0xf031f8,{writer:_0x1e58dc,options:_0x30fb7e})=>_0x30fb7e[_0x379414(0x116)]?_0x1e58dc[_0x379414(0x121)](_0xf031f8[_0x379414(0x157)]+':'+(_0xf031f8[_0x379414(0x12e)]?_0x379414(0x14f):_0x379414(0x14a))):null});}[_0x4b140f(0x134)](_0x2a2fc0,_0x1f827b,_0x4cb0cc=!0x1,_0x12d658=!0x1){const _0x299fbf=_0x4b140f;if(this[_0x299fbf(0x142)]&&!_0x12d658)return!0x1;this[_0x299fbf(0x154)]&&this[_0x299fbf(0x111)](this[_0x299fbf(0x154)]),this[_0x299fbf(0x154)]=_0x1f827b,this[_0x299fbf(0x142)]=_0x4cb0cc;const _0xe297a6=_0x159af4(this[_0x299fbf(0x14e)])[_0x299fbf(0x150)];return _0xe297a6[_0x299fbf(0x16b)](_0xf16db4=>{const _0x281eb2=_0x299fbf;let _0x1808d2=0x0;for(let _0x58d21a of _0x2a2fc0){const _0xf7c4c=_0x281eb2(0x138)+_0x1808d2;if(_0x58d21a[_0x281eb2(0x14f)][_0x281eb2(0x13a)]){const _0x555cc8=_0x58d21a[_0x281eb2(0x14f)][_0x281eb2(0x133)](({item:_0x1c695a})=>!_0xe297a6[_0x281eb2(0x144)][_0x281eb2(0x135)](_0x1c695a),{'boundaries':_0x58d21a});_0x58d21a=_0xf16db4[_0x281eb2(0x136)](_0x555cc8,_0x58d21a[_0x281eb2(0x14a)]);}_0xf16db4[_0x281eb2(0x11d)](_0xf7c4c,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x58d21a}),_0x1808d2++;}}),window[_0x299fbf(0x11e)]()?.[_0x299fbf(0x13b)](),!0x0;}[_0x4b140f(0x111)](_0x26ea9f){const _0x34cae2=_0x4b140f;if(this[_0x34cae2(0x154)]!=_0x26ea9f)return!0x1;this[_0x34cae2(0x154)]=null,this[_0x34cae2(0x142)]=!0x1;const _0xc52e75=_0x159af4(this[_0x34cae2(0x14e)]),_0x4189e3=_0xc52e75[_0x34cae2(0x150)][_0x34cae2(0x151)][_0x34cae2(0x108)](_0x34cae2(0x13c));return _0xc52e75[_0x34cae2(0x150)][_0x34cae2(0x16b)](_0x12c476=>{const _0x124df1=_0x34cae2;for(const _0x55bfa2 of _0x4189e3)_0x12c476[_0x124df1(0x166)](_0x55bfa2);}),!0x0;}[_0x4b140f(0x113)](_0x1137b6){const _0x2c645d=_0x4b140f,_0x1c441e=_0x159af4(this[_0x2c645d(0x14e)]),_0x3c553a=_0x1c441e[_0x2c645d(0x12f)][_0x2c645d(0x15b)](_0x1137b6),_0x23c19d=new _0x3f52f0(_0x1c441e[_0x2c645d(0x129)][_0x2c645d(0x165)][_0x2c645d(0x10b)]);return this[_0x2c645d(0x152)](_0x3c553a,_0x23c19d),_0x3c553a;}[_0x4b140f(0x152)](_0xfe53ae,_0x30406f){const _0xc6b9fa=_0x4b140f;let _0x3a7d71=!0x1;const _0x14938d=new Set();for(const _0xdb706b of _0xfe53ae[_0xc6b9fa(0x11b)]()){const _0x3587b8=_0xdb706b['is'](_0xc6b9fa(0x15c))||_0xdb706b['is'](_0xc6b9fa(0x131));if(!_0xdb706b['is'](_0xc6b9fa(0x139)))continue;(this[_0xc6b9fa(0x152)](_0xdb706b,_0x30406f)||_0x3587b8)&&(_0x30406f[_0xc6b9fa(0x11a)](_0xc6b9fa(0x145),this[_0xc6b9fa(0x127)](_0x14938d),_0xdb706b),_0x3a7d71=!0x0);}return _0x3a7d71;}[_0x4b140f(0x127)](_0x480fc0){const _0x2fae3e=_0x4b140f;let _0x342ff2;do{_0x342ff2='';for(let _0xb1c47f=0x0;_0xb1c47f<0x4;_0xb1c47f++)_0x342ff2+=String[_0x2fae3e(0x143)](0x61+Math[_0x2fae3e(0x128)](0x1a*Math[_0x2fae3e(0x14b)]()));}while(_0x480fc0[_0x2fae3e(0x16c)](_0x342ff2));return _0x480fc0[_0x2fae3e(0x10a)](_0x342ff2),_0x342ff2;}[_0x4b140f(0x158)](){const _0x5ba4ad=_0x4b140f,{model:_0x5eacee}=_0x159af4(this[_0x5ba4ad(0x14e)]),_0x2ee4b5=_0x5eacee[_0x5ba4ad(0x10b)][_0x5ba4ad(0x13e)],_0x5304a7=_0x5eacee[_0x5ba4ad(0x12a)](_0x2ee4b5),_0x55fd57=[],_0x4aa2fb=_0x5eacee[_0x5ba4ad(0x169)](_0x5304a7)[_0x5ba4ad(0x107)]();for(const {item:_0x490580}of _0x4aa2fb)_0x490580['is'](_0x5ba4ad(0x159))?_0x55fd57[_0x5ba4ad(0x146)](_0x490580[_0x5ba4ad(0x12f)]):_0x490580['is'](_0x5ba4ad(0x139))&&_0x55fd57[_0x5ba4ad(0x119)]>0x0&&'\x20'!==_0x55fd57[_0x55fd57[_0x5ba4ad(0x119)]-0x1]&&_0x55fd57[_0x5ba4ad(0x146)]('\x20');return'\x22'+_0x55fd57[_0x5ba4ad(0x147)]('')[_0x5ba4ad(0x15e)]()+'\x22';}[_0x4b140f(0x13d)](){const _0x473978=_0x4b140f,_0x370fd5=_0x159af4(this[_0x473978(0x14e)])[_0x473978(0x150)];return Array[_0x473978(0x105)](_0x370fd5[_0x473978(0x151)][_0x473978(0x108)](_0x473978(0x13c)))[_0x473978(0x12d)]((_0x35228c,_0x5c10ca)=>_0x35228c[_0x473978(0x11c)]()[_0x473978(0x112)](_0x5c10ca[_0x473978(0x11c)]())?-0x1:_0x35228c[_0x473978(0x11c)]()[_0x473978(0x12b)](_0x5c10ca[_0x473978(0x11c)]())?0x1:0x0);}}
23
+ const _0x4c8dd2=_0x3a50;(function(_0x218664,_0xd4224d){const _0x310a8b=_0x3a50,_0x1de09a=_0x218664();while(!![]){try{const _0x499ff9=parseInt(_0x310a8b(0xa6))/0x1*(parseInt(_0x310a8b(0x91))/0x2)+parseInt(_0x310a8b(0x99))/0x3*(-parseInt(_0x310a8b(0xb8))/0x4)+parseInt(_0x310a8b(0xa7))/0x5*(-parseInt(_0x310a8b(0xc7))/0x6)+-parseInt(_0x310a8b(0x9f))/0x7*(parseInt(_0x310a8b(0x81))/0x8)+-parseInt(_0x310a8b(0xcf))/0x9+parseInt(_0x310a8b(0xb5))/0xa*(parseInt(_0x310a8b(0xbe))/0xb)+-parseInt(_0x310a8b(0xb1))/0xc*(-parseInt(_0x310a8b(0x94))/0xd);if(_0x499ff9===_0xd4224d)break;else _0x1de09a['push'](_0x1de09a['shift']());}catch(_0x36d703){_0x1de09a['push'](_0x1de09a['shift']());}}}(_0x1b30,0x7adf4));import{ViewDowncastWriter as _0x50047a}from'ckeditor5/src/engine.js';function _0x3a50(_0x4e9141,_0x1be1f6){const _0x1b30c1=_0x1b30();return _0x3a50=function(_0x3a50aa,_0x37f797){_0x3a50aa=_0x3a50aa-0x6b;let _0x47f768=_0x1b30c1[_0x3a50aa];return _0x47f768;},_0x3a50(_0x4e9141,_0x1be1f6);}function _0x1b30(){const _0x3887b8=['emptyElement','from','element','isAfter','isOpening','getWalker','_displayedFakeSelectionId','sessionId','_setDataIdsOnChildren','push','editingDowncast','substring','pluginName','ck-fake-ai-selection','createRange','plugins','processor','isContent','removeMarker','createUIElement','add','modelToViewWithIds','containerElement','length','2806424wNvShO','ready','context','has','isOfficialPlugin','getSelectionText','sort','_nextDataId','isPremiumPlugin','version','toData','hideFakeVisualSelection','random','_displayedFakeSelectionLocked','removeAllRanges','showFakeVisualSelection','2OBQukj','schema','setAttribute','3612518MuZhTR','ai-selection',':end></','getStart','isAtEnd','2901171TPaqPW','join','markerToHighlight','_sessionId','afterInit','$textProxy','7gUISYt','listenTo','getSelection','name','editors','_getMarkersInDocumentOrder',':start></','286057XZXqTK','2568365iCRHsm','document','getSelectedContent','conversion','data','markerName','data-id','_integrateEditor','getRoot','view','108sFcOLs','editing','getMarkersGroup','addMarker','968140pQTtYe','floor','fromCharCode','4jNbqwU','trim','getDocumentData','dataDowncast','createRangeIn',':end>','11fDuPfW','getLastMatchingPosition','end','markers','convertAiChatSelectionMarker','start','change','indexOf','markerToElement','6cotDxf',':start>','ck-ai-assistant-ui_theme','for','ai-selection:','isBefore','model','selection','4941252XJLTuS','toView','getChildren','get','RealTimeCollaborationClient','AIEditing'];_0x1b30=function(){return _0x3887b8;};return _0x1b30();}import{ContextPlugin as _0x3606d4,Editor as _0x3bc9b7}from'ckeditor5/src/core.js';import{uid as _0x1d73d6}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0xb4aad2}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x4c8dd2(0x95);export class AIEditing extends _0x3606d4{[_0x4c8dd2(0x6f)]=null;[_0x4c8dd2(0x8e)]=!0x1;[_0x4c8dd2(0x9c)];static get[_0x4c8dd2(0x75)](){const _0x1484be=_0x4c8dd2;return _0x1484be(0xd4);}static get[_0x4c8dd2(0x85)](){return!0x0;}static get[_0x4c8dd2(0x89)](){return!0x0;}get[_0x4c8dd2(0x70)](){const _0x23d315=_0x4c8dd2;if(!this[_0x23d315(0x9c)]){const _0x40be84=_0xb4aad2(this[_0x23d315(0x83)]),_0x12ddd1=_0x40be84[_0x23d315(0x78)][_0x23d315(0x84)](_0x23d315(0xd3))&&_0x40be84[_0x23d315(0x78)][_0x23d315(0xd2)](_0x23d315(0xd3))[_0x23d315(0x70)];this[_0x23d315(0x9c)]=_0x12ddd1||_0x1d73d6();}return this[_0x23d315(0x9c)];}[_0x4c8dd2(0xba)](){const _0xfca2bc=_0x4c8dd2,_0x6a0f72=_0xb4aad2(this[_0xfca2bc(0x83)]),_0x3f7961=_0x6a0f72[_0xfca2bc(0xcd)],_0x4bf05e=_0x6a0f72[_0xfca2bc(0xab)][_0xfca2bc(0xd0)](_0x3f7961[_0xfca2bc(0xa8)][_0xfca2bc(0xaf)](),{'convertAiChatSelectionMarker':!0x0}),_0x5ba1a1=new _0x50047a(_0x6a0f72[_0xfca2bc(0xb2)][_0xfca2bc(0xb0)][_0xfca2bc(0xa8)]);this[_0xfca2bc(0x71)](_0x4bf05e,_0x5ba1a1);let _0x20a92f=_0x6a0f72[_0xfca2bc(0xab)][_0xfca2bc(0x79)][_0xfca2bc(0x8b)](_0x4bf05e);const _0x36883=this[_0xfca2bc(0xa4)](),_0x198b7f=[];for(const _0x685df1 of _0x36883){const _0x1208cb='<'+_0x685df1[_0xfca2bc(0xa2)]+_0xfca2bc(0xa5)+_0x685df1[_0xfca2bc(0xa2)]+_0xfca2bc(0xc8),_0x3cb133=_0x20a92f[_0xfca2bc(0xc5)](_0x1208cb);_0x20a92f=_0x20a92f[_0xfca2bc(0x74)](0x0,_0x3cb133)+_0x20a92f[_0xfca2bc(0x74)](_0x3cb133+_0x1208cb[_0xfca2bc(0x80)]);const _0x1aef74='<'+_0x685df1[_0xfca2bc(0xa2)]+_0xfca2bc(0x96)+_0x685df1[_0xfca2bc(0xa2)]+_0xfca2bc(0xbd),_0x4d3843=_0x20a92f[_0xfca2bc(0xc5)](_0x1aef74);_0x20a92f=_0x20a92f[_0xfca2bc(0x74)](0x0,_0x4d3843)+_0x20a92f[_0xfca2bc(0x74)](_0x4d3843+_0x1aef74[_0xfca2bc(0x80)]),_0x198b7f[_0xfca2bc(0x72)]({'markerName':_0x685df1[_0xfca2bc(0xa2)],'start':_0x3cb133,'end':_0x4d3843,'htmlFragment':_0x20a92f[_0xfca2bc(0x74)](_0x3cb133,_0x4d3843)});}return{'content':_0x20a92f,'version':_0x6a0f72[_0xfca2bc(0xcd)][_0xfca2bc(0xa8)][_0xfca2bc(0x8a)],'sessionId':this[_0xfca2bc(0x70)],'selections':_0x198b7f};}async[_0x4c8dd2(0x9d)](){const _0x50ec7a=_0x4c8dd2;this[_0x50ec7a(0x83)]instanceof _0x3bc9b7?this[_0x50ec7a(0xae)](this[_0x50ec7a(0x83)]):this[_0x50ec7a(0xa0)](this[_0x50ec7a(0x83)][_0x50ec7a(0xa3)],_0x50ec7a(0x7d),(_0x2f35e2,_0x2b14b4)=>{const _0x522417=_0x50ec7a;_0x2b14b4['on'](_0x522417(0x82),()=>{const _0x518a6c=_0x522417;this[_0x518a6c(0xae)](_0x2b14b4);});});}[_0x4c8dd2(0xae)](_0xbcb721){const _0x217984=_0x4c8dd2;_0xbcb721[_0x217984(0xaa)][_0x217984(0xca)](_0x217984(0x73))[_0x217984(0x9b)]({'model':_0x217984(0x95),'view':{'classes':[_0x217984(0x76),_0x217984(0xc9)],'priority':0xc}}),_0xbcb721[_0x217984(0xaa)][_0x217984(0xca)](_0x217984(0xbb))[_0x217984(0xc6)]({'model':_0x217984(0x95),'view':(_0x1fdaa4,{writer:_0x2ab841,options:_0x5103c0})=>_0x5103c0[_0x217984(0xc2)]?_0x2ab841[_0x217984(0x7c)](_0x1fdaa4[_0x217984(0xac)]+':'+(_0x1fdaa4[_0x217984(0x6d)]?_0x217984(0xc3):_0x217984(0xc0))):null});}[_0x4c8dd2(0x90)](_0x43934d,_0x4a104f,_0x421a54=!0x1,_0x4a090f=!0x1){const _0x2a9489=_0x4c8dd2;if(this[_0x2a9489(0x8e)]&&!_0x4a090f)return!0x1;const _0x4d7a07=_0xb4aad2(this[_0x2a9489(0x83)])[_0x2a9489(0xcd)];return _0x4d7a07[_0x2a9489(0xc4)](_0x32f822=>{const _0xe4911e=_0x2a9489;this[_0xe4911e(0x6f)]&&this[_0xe4911e(0x8c)](this[_0xe4911e(0x6f)]),this[_0xe4911e(0x6f)]=_0x4a104f,this[_0xe4911e(0x8e)]=_0x421a54;let _0x4dda08=0x0;for(let _0x456d34 of _0x43934d){const _0x3e8725=_0xe4911e(0xcb)+_0x4dda08;if(_0x456d34[_0xe4911e(0xc3)][_0xe4911e(0x98)]){const _0x2d1623=_0x456d34[_0xe4911e(0xc3)][_0xe4911e(0xbf)](({item:_0x41d2f6})=>!_0x4d7a07[_0xe4911e(0x92)][_0xe4911e(0x7a)](_0x41d2f6),{'boundaries':_0x456d34});_0x456d34=_0x32f822[_0xe4911e(0x77)](_0x2d1623,_0x456d34[_0xe4911e(0xc0)]);}_0x32f822[_0xe4911e(0xb4)](_0x3e8725,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x456d34}),_0x4dda08++;}}),window[_0x2a9489(0xa1)]()?.[_0x2a9489(0x8f)](),!0x0;}[_0x4c8dd2(0x8c)](_0x122093){const _0x4bbec0=_0x4c8dd2;if(this[_0x4bbec0(0x6f)]!=_0x122093)return!0x1;this[_0x4bbec0(0x6f)]=null,this[_0x4bbec0(0x8e)]=!0x1;const _0x30781c=_0xb4aad2(this[_0x4bbec0(0x83)]),_0x94309f=_0x30781c[_0x4bbec0(0xcd)][_0x4bbec0(0xc1)][_0x4bbec0(0xb3)](_0x4bbec0(0x95));return _0x30781c[_0x4bbec0(0xcd)][_0x4bbec0(0xc4)](_0x517b35=>{const _0x473aa0=_0x4bbec0;for(const _0xb8e47e of _0x94309f)_0x517b35[_0x473aa0(0x7b)](_0xb8e47e);}),!0x0;}[_0x4c8dd2(0x7e)](_0x18d823){const _0x79e636=_0x4c8dd2,_0x126a3c=_0xb4aad2(this[_0x79e636(0x83)]),_0x19599e=_0x126a3c[_0x79e636(0xab)][_0x79e636(0xd0)](_0x18d823),_0x1656e3=new _0x50047a(_0x126a3c[_0x79e636(0xb2)][_0x79e636(0xb0)][_0x79e636(0xa8)]);return this[_0x79e636(0x71)](_0x19599e,_0x1656e3),_0x19599e;}[_0x4c8dd2(0x71)](_0x4dca6a,_0x417dfb){const _0x42ad03=_0x4c8dd2;let _0x388420=!0x1;const _0x1928ac=new Set();for(const _0xe5601a of _0x4dca6a[_0x42ad03(0xd1)]()){const _0x5f3acb=_0xe5601a['is'](_0x42ad03(0xd5))||_0xe5601a['is'](_0x42ad03(0x7f));if(!_0xe5601a['is'](_0x42ad03(0x6b)))continue;(this[_0x42ad03(0x71)](_0xe5601a,_0x417dfb)||_0x5f3acb)&&(_0x417dfb[_0x42ad03(0x93)](_0x42ad03(0xad),this[_0x42ad03(0x88)](_0x1928ac),_0xe5601a),_0x388420=!0x0);}return _0x388420;}[_0x4c8dd2(0x88)](_0x4f0455){const _0x58d922=_0x4c8dd2;let _0x381ff4;do{_0x381ff4='';for(let _0x59b188=0x0;_0x59b188<0x4;_0x59b188++)_0x381ff4+=String[_0x58d922(0xb7)](0x61+Math[_0x58d922(0xb6)](0x1a*Math[_0x58d922(0x8d)]()));}while(_0x4f0455[_0x58d922(0x84)](_0x381ff4));return _0x4f0455[_0x58d922(0x7d)](_0x381ff4),_0x381ff4;}[_0x4c8dd2(0x86)](){const _0xea884=_0x4c8dd2,{model:_0x48138b}=_0xb4aad2(this[_0xea884(0x83)]),_0x4bca89=_0x48138b[_0xea884(0xa8)][_0xea884(0xce)],_0x52b787=_0x48138b[_0xea884(0xa9)](_0x4bca89),_0x107629=[],_0x254ae5=_0x48138b[_0xea884(0xbc)](_0x52b787)[_0xea884(0x6e)]();for(const {item:_0x592d80}of _0x254ae5)_0x592d80['is'](_0xea884(0x9e))?_0x107629[_0xea884(0x72)](_0x592d80[_0xea884(0xab)]):_0x592d80['is'](_0xea884(0x6b))&&_0x107629[_0xea884(0x80)]>0x0&&'\x20'!==_0x107629[_0x107629[_0xea884(0x80)]-0x1]&&_0x107629[_0xea884(0x72)]('\x20');return'\x22'+_0x107629[_0xea884(0x9a)]('')[_0xea884(0xb9)]()+'\x22';}[_0x4c8dd2(0xa4)](){const _0x4e1622=_0x4c8dd2,_0x1ceb97=_0xb4aad2(this[_0x4e1622(0x83)])[_0x4e1622(0xcd)];return Array[_0x4e1622(0xd6)](_0x1ceb97[_0x4e1622(0xc1)][_0x4e1622(0xb3)](_0x4e1622(0x95)))[_0x4e1622(0x87)]((_0x1749d6,_0x178a9e)=>_0x1749d6[_0x4e1622(0x97)]()[_0x4e1622(0xcc)](_0x178a9e[_0x4e1622(0x97)]())?-0x1:_0x1749d6[_0x4e1622(0x97)]()[_0x4e1622(0x6c)](_0x178a9e[_0x4e1622(0x97)]())?0x1:0x0);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3f1433=_0x369e;(function(_0x385ad2,_0x30ce56){const _0x10b064=_0x369e,_0x144e85=_0x385ad2();while(!![]){try{const _0x27213d=parseInt(_0x10b064(0x138))/0x1*(-parseInt(_0x10b064(0x143))/0x2)+-parseInt(_0x10b064(0x13f))/0x3*(parseInt(_0x10b064(0x135))/0x4)+-parseInt(_0x10b064(0x144))/0x5*(parseInt(_0x10b064(0x134))/0x6)+-parseInt(_0x10b064(0x12e))/0x7*(parseInt(_0x10b064(0x142))/0x8)+parseInt(_0x10b064(0x141))/0x9*(parseInt(_0x10b064(0x128))/0xa)+-parseInt(_0x10b064(0x12c))/0xb+-parseInt(_0x10b064(0x13d))/0xc*(-parseInt(_0x10b064(0x12d))/0xd);if(_0x27213d===_0x30ce56)break;else _0x144e85['push'](_0x144e85['shift']());}catch(_0x965894){_0x144e85['push'](_0x144e85['shift']());}}}(_0x13a3,0x27a42));import{EmitterMixin as _0x144c45}from'ckeditor5/src/utils.js';function _0x369e(_0x53dc84,_0x20cbbe){const _0x13a367=_0x13a3();return _0x369e=function(_0x369e6c,_0x310c4a){_0x369e6c=_0x369e6c-0x128;let _0x40647d=_0x13a367[_0x369e6c];return _0x40647d;},_0x369e(_0x53dc84,_0x20cbbe);}export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x3f1433(0x130)];function _0x13a3(){const _0xdd1091=['init','827004evyhWc','237572UJFhGX','isWebSearchEnabled','webSearch','2fzfczA','toggleReasoning','_isWebSearchEnabled','_isReasoningEnabled','isReasoningEnabled','2463828axdlex','getCapabilitiesRequestData','6AFeZTI','setWebSearch','2744136sKirgt','8axJgaK','87382jkejha','5KUYlAd','10qKABWW','getCapabilitiesConfig','reasoning','reset','2843060fJgTsq','39FZvVdI','1092203matVLF','setReasoning','capabilitiesUpdated','fire','toggleWebSearch'];_0x13a3=function(){return _0xdd1091;};return _0x13a3();}export class AICapabilities extends _0x144c45(){[_0x3f1433(0x13a)];[_0x3f1433(0x13b)];constructor(){const _0xf88ff0=_0x3f1433;super(),this[_0xf88ff0(0x13a)]=!0x1,this[_0xf88ff0(0x13b)]=!0x1;}[_0x3f1433(0x133)](){const _0x23f38f=_0x3f1433;this[_0x23f38f(0x12b)]();}[_0x3f1433(0x12b)](){const _0x282cba=_0x3f1433;this[_0x282cba(0x140)](!0x1),this[_0x282cba(0x12f)](!0x1);}[_0x3f1433(0x129)](){const _0x436315=_0x3f1433;return{'isWebSearchEnabled':this[_0x436315(0x13a)],'isReasoningEnabled':this[_0x436315(0x13b)]};}static[_0x3f1433(0x13e)](_0x93449d){const _0x20c057=_0x3f1433,_0x1bf071={};return _0x93449d&&_0x93449d[_0x20c057(0x136)]&&(_0x1bf071[_0x20c057(0x137)]={}),_0x93449d&&_0x93449d[_0x20c057(0x13c)]&&(_0x1bf071[_0x20c057(0x12a)]={}),_0x1bf071;}[_0x3f1433(0x132)](){const _0x213120=_0x3f1433;this[_0x213120(0x140)](!this[_0x213120(0x13a)]);}[_0x3f1433(0x139)](){const _0x5e977d=_0x3f1433;this[_0x5e977d(0x12f)](!this[_0x5e977d(0x13b)]);}[_0x3f1433(0x140)](_0x8127cc){const _0x2c21f6=_0x3f1433;_0x8127cc!==this[_0x2c21f6(0x13a)]&&(this[_0x2c21f6(0x13a)]=_0x8127cc,this[_0x2c21f6(0x131)](_0x2c21f6(0x130),this[_0x2c21f6(0x129)]()));}[_0x3f1433(0x12f)](_0x4c936e){const _0x37eb69=_0x3f1433;_0x4c936e!==this[_0x37eb69(0x13b)]&&(this[_0x37eb69(0x13b)]=_0x4c936e,this[_0x37eb69(0x131)](_0x37eb69(0x130),this[_0x37eb69(0x129)]()));}}
23
+ const _0x43b491=_0x308f;(function(_0x42f74a,_0x12169f){const _0x572b0f=_0x308f,_0x5a0db8=_0x42f74a();while(!![]){try{const _0x26596c=-parseInt(_0x572b0f(0x103))/0x1*(parseInt(_0x572b0f(0xf3))/0x2)+parseInt(_0x572b0f(0xfe))/0x3+parseInt(_0x572b0f(0xf9))/0x4*(parseInt(_0x572b0f(0xfd))/0x5)+parseInt(_0x572b0f(0xf6))/0x6+-parseInt(_0x572b0f(0x101))/0x7+-parseInt(_0x572b0f(0xf2))/0x8*(-parseInt(_0x572b0f(0xff))/0x9)+-parseInt(_0x572b0f(0x107))/0xa;if(_0x26596c===_0x12169f)break;else _0x5a0db8['push'](_0x5a0db8['shift']());}catch(_0x1b94a1){_0x5a0db8['push'](_0x5a0db8['shift']());}}}(_0x21b0,0xbc2b1));function _0x21b0(){const _0x433a72=['toggleWebSearch','webSearch','getCapabilitiesConfig','5FmZwXC','1418433NNMjCM','4761GhBJct','getCapabilitiesRequestData','2530031hWPDkA','setReasoning','1PHsQjX','_isWebSearchEnabled','init','toggleReasoning','20601070QAOoUd','reasoning','capabilitiesUpdated','_isReasoningEnabled','setWebSearch','13648WMxFGS','4412ZSmRGI','isWebSearchEnabled','fire','4350906YLmRQh','reset','isReasoningEnabled','4376188YypqFl'];_0x21b0=function(){return _0x433a72;};return _0x21b0();}import{EmitterMixin as _0x1a0314}from'ckeditor5/src/utils.js';function _0x308f(_0x5ac548,_0x2434ad){const _0x21b000=_0x21b0();return _0x308f=function(_0x308f99,_0xdfc25d){_0x308f99=_0x308f99-0xf2;let _0x4c5d64=_0x21b000[_0x308f99];return _0x4c5d64;},_0x308f(_0x5ac548,_0x2434ad);}export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x43b491(0x109)];export class AICapabilities extends _0x1a0314(){[_0x43b491(0x104)];[_0x43b491(0x10a)];constructor(){const _0x43a6ad=_0x43b491;super(),this[_0x43a6ad(0x104)]=!0x1,this[_0x43a6ad(0x10a)]=!0x1;}[_0x43b491(0x105)](){const _0x3e5c11=_0x43b491;this[_0x3e5c11(0xf7)]();}[_0x43b491(0xf7)](){const _0x12b9a5=_0x43b491;this[_0x12b9a5(0x10b)](!0x1),this[_0x12b9a5(0x102)](!0x1);}[_0x43b491(0xfc)](){const _0x2394d7=_0x43b491;return{'isWebSearchEnabled':this[_0x2394d7(0x104)],'isReasoningEnabled':this[_0x2394d7(0x10a)]};}static[_0x43b491(0x100)](_0x2bd2c3){const _0xee0b8b=_0x43b491,_0x113465={};return _0x2bd2c3&&_0x2bd2c3[_0xee0b8b(0xf4)]&&(_0x113465[_0xee0b8b(0xfb)]={}),_0x2bd2c3&&_0x2bd2c3[_0xee0b8b(0xf8)]&&(_0x113465[_0xee0b8b(0x108)]={}),_0x113465;}[_0x43b491(0xfa)](){const _0x29fa0d=_0x43b491;this[_0x29fa0d(0x10b)](!this[_0x29fa0d(0x104)]);}[_0x43b491(0x106)](){const _0x43b419=_0x43b491;this[_0x43b419(0x102)](!this[_0x43b419(0x10a)]);}[_0x43b491(0x10b)](_0x3c432b){const _0x259956=_0x43b491;_0x3c432b!==this[_0x259956(0x104)]&&(this[_0x259956(0x104)]=_0x3c432b,this[_0x259956(0xf5)](_0x259956(0x109),this[_0x259956(0xfc)]()));}[_0x43b491(0x102)](_0x3afbe4){const _0x24d6af=_0x43b491;_0x3afbe4!==this[_0x24d6af(0x10a)]&&(this[_0x24d6af(0x10a)]=_0x3afbe4,this[_0x24d6af(0xf5)](_0x24d6af(0x109),this[_0x24d6af(0xfc)]()));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0xa9b9fd,_0x1cebbc){var _0xd71deb=_0x2b51,_0x407999=_0xa9b9fd();while(!![]){try{var _0x4f07ad=parseInt(_0xd71deb(0x1ad))/0x1*(-parseInt(_0xd71deb(0x1b5))/0x2)+parseInt(_0xd71deb(0x1ae))/0x3*(parseInt(_0xd71deb(0x1aa))/0x4)+parseInt(_0xd71deb(0x1bc))/0x5+parseInt(_0xd71deb(0x1b8))/0x6*(parseInt(_0xd71deb(0x1a9))/0x7)+parseInt(_0xd71deb(0x1b1))/0x8+-parseInt(_0xd71deb(0x1c0))/0x9*(parseInt(_0xd71deb(0x1be))/0xa)+parseInt(_0xd71deb(0x1bf))/0xb*(parseInt(_0xd71deb(0x1ba))/0xc);if(_0x4f07ad===_0x1cebbc)break;else _0x407999['push'](_0x407999['shift']());}catch(_0x1736f2){_0x407999['push'](_0x407999['shift']());}}}(_0x5208,0x84836));export var AIContextItemType;!function(_0x32c052){var _0x3e542e=_0x2b51;_0x32c052[_0x3e542e(0x1c2)]=_0x3e542e(0x1b7),_0x32c052[_0x3e542e(0x1b0)]=_0x3e542e(0x1ab),_0x32c052[_0x3e542e(0x1af)]=_0x3e542e(0x1b9),_0x32c052[_0x3e542e(0x1b3)]=_0x3e542e(0x1ac),_0x32c052[_0x3e542e(0x1b4)]=_0x3e542e(0x1b2);}(AIContextItemType||(AIContextItemType={}));export var AIContextTextResourceType;function _0x2b51(_0x20b411,_0x38a852){var _0x52087c=_0x5208();return _0x2b51=function(_0x2b51f2,_0x578f21){_0x2b51f2=_0x2b51f2-0x1a9;var _0x35d77c=_0x52087c[_0x2b51f2];return _0x35d77c;},_0x2b51(_0x20b411,_0x38a852);}!function(_0x364001){var _0x4882cf=_0x2b51;_0x364001[_0x4882cf(0x1b3)]=_0x4882cf(0x1ac),_0x364001[_0x4882cf(0x1b6)]=_0x4882cf(0x1bb),_0x364001[_0x4882cf(0x1bd)]=_0x4882cf(0x1c1);}(AIContextTextResourceType||(AIContextTextResourceType={}));function _0x5208(){var _0x5669f1=['1243140JKPCZI','HTML','10sFFUdx','338151Lmdzsl','6007032IkStrD','html','FILE','324681bNDwFe','24gfsnuc','document','text','17TikAVK','538899dbeRRG','URL','DOCUMENT','2809664XJVoJE','selection','TEXT','SELECTION','96804XaUAVs','MARKDOWN','file','42ZSVKDW','web-resource','12tOZgyF','markdown'];_0x5208=function(){return _0x5669f1;};return _0x5208();}
23
+ function _0x2780(){var _0xb170fc=['selection','DOCUMENT','markdown','document','TEXT','MARKDOWN','15gYDtDN','7617780mteMoP','FILE','web-resource','6493374eMnATm','text','139298QitrWr','7498464zqZNvj','html','1232204hkaUAD','99633VnfsWt','file','HTML','6875316JhJKDo','URL','14veyhaO','SELECTION'];_0x2780=function(){return _0xb170fc;};return _0x2780();}function _0x59f3(_0x435288,_0x9e3949){var _0x278081=_0x2780();return _0x59f3=function(_0x59f33f,_0x7dab2e){_0x59f33f=_0x59f33f-0x1a3;var _0x63fe18=_0x278081[_0x59f33f];return _0x63fe18;},_0x59f3(_0x435288,_0x9e3949);}(function(_0x25ce63,_0x43a5b7){var _0x1814d4=_0x59f3,_0x277ca8=_0x25ce63();while(!![]){try{var _0x3c4d56=-parseInt(_0x1814d4(0x1aa))/0x1+parseInt(_0x1814d4(0x1b3))/0x2*(-parseInt(_0x1814d4(0x1ae))/0x3)+parseInt(_0x1814d4(0x1ad))/0x4*(-parseInt(_0x1814d4(0x1a4))/0x5)+parseInt(_0x1814d4(0x1a5))/0x6+-parseInt(_0x1814d4(0x1b1))/0x7+parseInt(_0x1814d4(0x1ab))/0x8+parseInt(_0x1814d4(0x1a8))/0x9;if(_0x3c4d56===_0x43a5b7)break;else _0x277ca8['push'](_0x277ca8['shift']());}catch(_0x350e94){_0x277ca8['push'](_0x277ca8['shift']());}}}(_0x2780,0x9ec44));export var AIContextItemType;!function(_0x33bd6b){var _0x4b1d49=_0x59f3;_0x33bd6b[_0x4b1d49(0x1a6)]=_0x4b1d49(0x1af),_0x33bd6b[_0x4b1d49(0x1b6)]=_0x4b1d49(0x1b8),_0x33bd6b[_0x4b1d49(0x1b2)]=_0x4b1d49(0x1a7),_0x33bd6b[_0x4b1d49(0x1b9)]=_0x4b1d49(0x1a9),_0x33bd6b[_0x4b1d49(0x1b4)]=_0x4b1d49(0x1b5);}(AIContextItemType||(AIContextItemType={}));export var AIContextTextResourceType;!function(_0x2e76ab){var _0x1cc7d0=_0x59f3;_0x2e76ab[_0x1cc7d0(0x1b9)]=_0x1cc7d0(0x1a9),_0x2e76ab[_0x1cc7d0(0x1a3)]=_0x1cc7d0(0x1b7),_0x2e76ab[_0x1cc7d0(0x1b0)]=_0x1cc7d0(0x1ac);}(AIContextTextResourceType||(AIContextTextResourceType={}));
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2dedde=_0x3d9e;(function(_0x237fea,_0x1638ea){const _0x134e24=_0x3d9e,_0x44da37=_0x237fea();while(!![]){try{const _0x5ca504=-parseInt(_0x134e24(0xda))/0x1+-parseInt(_0x134e24(0xd9))/0x2+parseInt(_0x134e24(0xd0))/0x3+parseInt(_0x134e24(0x10d))/0x4+parseInt(_0x134e24(0x112))/0x5+parseInt(_0x134e24(0xdc))/0x6*(-parseInt(_0x134e24(0xff))/0x7)+parseInt(_0x134e24(0xf1))/0x8*(parseInt(_0x134e24(0xf5))/0x9);if(_0x5ca504===_0x1638ea)break;else _0x44da37['push'](_0x44da37['shift']());}catch(_0x153101){_0x44da37['push'](_0x44da37['shift']());}}}(_0x3763,0x41e2e));import{CKEditorError as _0x42b4d1,EmitterMixin as _0x41ad42,logWarning as _0x3adbbc,uid as _0x1e6871}from'ckeditor5/src/utils.js';import{AIReply as _0x1b8ea2,isIgnoredReplyType as _0x5b0ae0,isValidReplyType as _0x54c072,isReplyTitleType as _0x3a74db,isSourceType as _0x2980ef}from'./aireply.js';export const AI_MODEL_EVENT_NAMES=[_0x2dedde(0x107),_0x2dedde(0xde),_0x2dedde(0xe1),_0x2dedde(0xe8),_0x2dedde(0x111),_0x2dedde(0xfa),_0x2dedde(0x103),_0x2dedde(0xdd),_0x2dedde(0x101),_0x2dedde(0xd2),_0x2dedde(0xe2),_0x2dedde(0xd1),_0x2dedde(0xf3),_0x2dedde(0x10e)];export class AIInteraction extends _0x41ad42(){['id'];[_0x2dedde(0xe3)]=[];[_0x2dedde(0xfc)];[_0x2dedde(0xe9)];[_0x2dedde(0xd8)];[_0x2dedde(0xf4)];[_0x2dedde(0xd6)];[_0x2dedde(0xee)]=!0x1;[_0x2dedde(0xe7)]=!0x1;[_0x2dedde(0xf8)];[_0x2dedde(0xe0)]=!0x1;[_0x2dedde(0xd7)]=!0x1;constructor({connector:_0x2c47ef,editor:_0x502502}){const _0x333d5a=_0x2dedde;super(),this['id']=_0x1e6871(),this[_0x333d5a(0xd6)]=_0x2c47ef,this[_0x333d5a(0xee)]=!0x0,this[_0x333d5a(0xf8)]=_0x502502;}async[_0x2dedde(0xdf)](){const _0x1de993=_0x2dedde;let _0x3f64cc;const _0x1ed942=[];this[_0x1de993(0xee)]=!0x1;try{this[_0x1de993(0xf4)]=await this[_0x1de993(0xf9)](),this[_0x1de993(0xcf)](_0x1de993(0xde),this);const _0x3b8376=await this[_0x1de993(0xf4)][_0x1de993(0xcd)]();for await(const _0x405ea2 of _0x3b8376){if(this[_0x1de993(0xee)])return;if(_0x1de993(0x10e)===_0x405ea2[_0x1de993(0xec)])return void this[_0x1de993(0xcf)](_0x1de993(0x10e),{'error':new _0x42b4d1(_0x1de993(0xef),this)});if(_0x1de993(0x110)!==_0x405ea2[_0x1de993(0xec)]){if(_0x1de993(0xce)!==_0x405ea2[_0x1de993(0xec)]){if(_0x3a74db(_0x405ea2[_0x1de993(0xec)])&&this[_0x1de993(0x101)](_0x405ea2[_0x1de993(0x105)][_0x1de993(0x10f)],!0x0),_0x2980ef(_0x405ea2[_0x1de993(0xec)]))_0x1ed942[_0x1de993(0xeb)](_0x405ea2[_0x1de993(0x105)][_0x1de993(0xd4)]);else{if(_0x54c072(_0x405ea2[_0x1de993(0xec)])){if(_0x405ea2[_0x1de993(0xec)]!==_0x3f64cc){if(_0x3f64cc=_0x405ea2[_0x1de993(0xec)],_0x1de993(0xed)===_0x405ea2[_0x1de993(0xec)]){this[_0x1de993(0xd7)]||(this[_0x1de993(0xd7)]=!0x0,this[_0x1de993(0xcf)](_0x1de993(0xd2),this));continue;}if(_0x1de993(0x10c)===_0x405ea2[_0x1de993(0xec)]){this[_0x1de993(0xe0)]||(this[_0x1de993(0xe0)]=!0x0,this[_0x1de993(0xcf)](_0x1de993(0xd1),this));continue;}this[_0x1de993(0xe0)]&&(this[_0x1de993(0xe0)]=!0x1,this[_0x1de993(0xcf)](_0x1de993(0xf3),this)),this[_0x1de993(0xd7)]&&(this[_0x1de993(0xd7)]=!0x1,this[_0x1de993(0xcf)](_0x1de993(0xe2),this)),this[_0x1de993(0xfc)]&&this[_0x1de993(0xfc)][_0x1de993(0xd3)](),this[_0x1de993(0xfc)]=this[_0x1de993(0x102)]({'type':_0x405ea2[_0x1de993(0xec)],'interactionId':this['id']}),_0x1ed942[_0x1de993(0xfe)]>0x0&&_0x1de993(0xea)===_0x405ea2[_0x1de993(0xec)]&&(this[_0x1de993(0xfc)][_0x1de993(0xf6)]=_0x1ed942[_0x1de993(0x104)](0x0));}_0x405ea2[_0x1de993(0x105)][_0x1de993(0xfd)]&&this[_0x1de993(0xfc)][_0x1de993(0xe5)](_0x405ea2[_0x1de993(0x105)][_0x1de993(0xfd)]);}else _0x5b0ae0(_0x405ea2[_0x1de993(0xec)])||_0x3adbbc(_0x1de993(0x108),{'chunk':_0x405ea2});}}else this[_0x1de993(0xd8)]=_0x405ea2[_0x1de993(0x105)][_0x1de993(0xdb)];}else this[_0x1de993(0xe9)]=_0x405ea2[_0x1de993(0x105)]['id'];}}finally{this[_0x1de993(0xee)]||(_0x1ed942[_0x1de993(0xfe)]>0x0&&(this[_0x1de993(0xfc)][_0x1de993(0xf6)]=_0x1ed942[_0x1de993(0x104)](0x0)),this[_0x1de993(0xd5)](),this[_0x1de993(0xcf)](_0x1de993(0xe8),this));}}[_0x2dedde(0xfb)](){const _0x3be98c=_0x2dedde;this[_0x3be98c(0xee)]||(this[_0x3be98c(0xd5)](),this[_0x3be98c(0xcf)](_0x3be98c(0xe1),this));}[_0x2dedde(0x106)](_0x515fdd){const _0x1be151=_0x2dedde;return this[_0x1be151(0xe3)][_0x1be151(0xf7)](_0x2b20a3=>_0x2b20a3['id']===_0x515fdd);}[_0x2dedde(0x10a)](){const _0x499148=_0x2dedde;this[_0x499148(0xe7)]||(this[_0x499148(0xfb)](),this[_0x499148(0xe3)][_0x499148(0xe4)](_0x59949f=>_0x59949f[_0x499148(0x10a)]()),this[_0x499148(0xe3)]=[],this[_0x499148(0xe7)]=!0x0,this[_0x499148(0xcf)](_0x499148(0x111),this),this[_0x499148(0x100)]());}[_0x2dedde(0x102)](_0x2f6e46){const _0x39169e=_0x2dedde,_0xa94f4c=new _0x1b8ea2({'editor':this[_0x39169e(0xf8)],'documentContextContent':this[_0x39169e(0x109)]()?.[_0x39169e(0xf2)],..._0x2f6e46});return this[_0x39169e(0xe3)][_0x39169e(0xeb)](_0xa94f4c),_0xa94f4c[_0x39169e(0xf0)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x39169e(0xcf)](_0x39169e(0xfa),_0xa94f4c),_0xa94f4c;}[_0x2dedde(0x101)](_0x1d174b,_0x566cbd=!0x1){const _0x505b2f=_0x2dedde;this[_0x505b2f(0xcf)](_0x505b2f(0x101),_0x1d174b,_0x566cbd);}[_0x2dedde(0xd5)](){const _0x89a87=_0x2dedde;this[_0x89a87(0xee)]=!0x0,this[_0x89a87(0xf4)]&&this[_0x89a87(0xf4)][_0x89a87(0xe6)][_0x89a87(0x10b)](),this[_0x89a87(0xfc)]&&this[_0x89a87(0xfc)][_0x89a87(0xd3)](),this[_0x89a87(0xf4)]=this[_0x89a87(0xfc)]=void 0x0;}}function _0x3d9e(_0x18688f,_0x19af63){const _0x3763c2=_0x3763();return _0x3d9e=function(_0x3d9eb1,_0x22199b){_0x3d9eb1=_0x3d9eb1-0xcd;let _0x4bd85a=_0x3763c2[_0x3d9eb1];return _0x4bd85a;},_0x3d9e(_0x18688f,_0x19af63);}function _0x3763(){const _0x7e2c76=['896tfebEM','stopListening','setConversationTitle','createReply','replyContentUpdated','splice','data','getReply','interactionCreated','ai-interaction-invalid-event-type','getDocumentContext','destroy','abort','reasoning','435692naMZXG','error','conversationTitle','message-metadata','interactionDestroyed','1827305iCutaI','getStream','action-metadata','fire','1453251Yabbhf','reasoningStarted','webSearchStarted','done','source','_finalizeInteraction','connector','_isWebSearching','actionCallId','946270xfyYtR','243624MOxQpt','callId','10044YNWJtT','replyChangeGroupStateUpdated','interactionStarted','start','_isReasoning','interactionStopped','webSearchFinished','replies','forEach','appendContent','abortController','isDestroyed','interactionFinished','messageId','modification-delta','push','event','web-search','isStopped','ai-chat-interaction-error','delegate','64560jkLknK','content','reasoningFinished','currentRequest','270trRbNs','sources','find','editor','sendRequest','replyCreated','stop','currentReply','textDelta','length'];_0x3763=function(){return _0x7e2c76;};return _0x3763();}
23
+ const _0x45d5f6=_0xd85b;(function(_0x4744aa,_0x2fd40c){const _0x283507=_0xd85b,_0x2101aa=_0x4744aa();while(!![]){try{const _0xf2b0db=-parseInt(_0x283507(0x132))/0x1+-parseInt(_0x283507(0x13d))/0x2*(parseInt(_0x283507(0x148))/0x3)+-parseInt(_0x283507(0x137))/0x4*(-parseInt(_0x283507(0x128))/0x5)+parseInt(_0x283507(0x140))/0x6+-parseInt(_0x283507(0x112))/0x7+-parseInt(_0x283507(0x117))/0x8*(-parseInt(_0x283507(0x111))/0x9)+parseInt(_0x283507(0x136))/0xa*(parseInt(_0x283507(0x149))/0xb);if(_0xf2b0db===_0x2fd40c)break;else _0x2101aa['push'](_0x2101aa['shift']());}catch(_0x2b42a1){_0x2101aa['push'](_0x2101aa['shift']());}}}(_0xb2a2,0x995c5));import{CKEditorError as _0x1849fc,EmitterMixin as _0x2a4cec,logWarning as _0x144baf,uid as _0x431a21}from'ckeditor5/src/utils.js';import{AIReply as _0x4f1ff7,isIgnoredReplyType as _0x59e578,isValidReplyType as _0x4e10fe,isReplyTitleType as _0x8b6651,isSourceType as _0x4ceecf}from'./aireply.js';function _0xb2a2(){const _0x31771b=['26732nyafsA','actionCallId','replyChangeGroupStateUpdated','done','find','getDocumentContext','6622jtAuoq','replyCreated','abortController','598260avCVDn','reasoningStarted','data','abort','source','event','stopListening','reasoningFinished','834AROIBb','11hskOlP','webSearchStarted','error','getStream','splice','reasoning','delegate','push','createReply','interactionCreated','getReply','callId','textDelta','messageId','content','length','9iSNyHV','504994gFYzfw','_finalizeInteraction','destroy','message-metadata','ai-chat-interaction-error','573256KCWvjK','interactionStarted','interactionStopped','replies','currentRequest','sources','start','modification-delta','replyContentUpdated','conversationTitle','_isReasoning','connector','stop','appendContent','web-search','forEach','isDestroyed','595SpdQrn','_isWebSearching','webSearchFinished','sendRequest','currentReply','fire','action-metadata','setConversationTitle','ai-interaction-invalid-event-type','interactionDestroyed','900059kiWtlQ','interactionFinished','editor','isStopped','15541800PbDCnp'];_0xb2a2=function(){return _0x31771b;};return _0xb2a2();}function _0xd85b(_0xc302e9,_0x1120da){const _0xb2a2b=_0xb2a2();return _0xd85b=function(_0xd85bf,_0x3e9763){_0xd85bf=_0xd85bf-0x103;let _0x4575b9=_0xb2a2b[_0xd85bf];return _0x4575b9;},_0xd85b(_0xc302e9,_0x1120da);}export const AI_MODEL_EVENT_NAMES=[_0x45d5f6(0x10a),_0x45d5f6(0x118),_0x45d5f6(0x119),_0x45d5f6(0x133),_0x45d5f6(0x131),_0x45d5f6(0x13e),_0x45d5f6(0x11f),_0x45d5f6(0x139),_0x45d5f6(0x12f),_0x45d5f6(0x14a),_0x45d5f6(0x12a),_0x45d5f6(0x141),_0x45d5f6(0x147),_0x45d5f6(0x103)];export class AIInteraction extends _0x2a4cec(){['id'];[_0x45d5f6(0x11a)]=[];[_0x45d5f6(0x12c)];[_0x45d5f6(0x10e)];[_0x45d5f6(0x138)];[_0x45d5f6(0x11b)];[_0x45d5f6(0x122)];[_0x45d5f6(0x135)]=!0x1;[_0x45d5f6(0x127)]=!0x1;[_0x45d5f6(0x134)];[_0x45d5f6(0x121)]=!0x1;[_0x45d5f6(0x129)]=!0x1;constructor({connector:_0x1dde6a,editor:_0xebc625}){const _0x466ff7=_0x45d5f6;super(),this['id']=_0x431a21(),this[_0x466ff7(0x122)]=_0x1dde6a,this[_0x466ff7(0x135)]=!0x0,this[_0x466ff7(0x134)]=_0xebc625;}async[_0x45d5f6(0x11d)](){const _0x4502ae=_0x45d5f6;let _0x29f5b2;const _0x1ce166=[];this[_0x4502ae(0x135)]=!0x1;try{this[_0x4502ae(0x11b)]=await this[_0x4502ae(0x12b)](),this[_0x4502ae(0x12d)](_0x4502ae(0x118),this);const _0x140a1c=await this[_0x4502ae(0x11b)][_0x4502ae(0x104)]();for await(const _0x225d2a of _0x140a1c){if(this[_0x4502ae(0x135)])return;if(_0x4502ae(0x103)===_0x225d2a[_0x4502ae(0x145)])return void this[_0x4502ae(0x12d)](_0x4502ae(0x103),{'error':new _0x1849fc(_0x4502ae(0x116),this)});if(_0x4502ae(0x115)!==_0x225d2a[_0x4502ae(0x145)]){if(_0x4502ae(0x12e)!==_0x225d2a[_0x4502ae(0x145)]){if(_0x8b6651(_0x225d2a[_0x4502ae(0x145)])&&this[_0x4502ae(0x12f)](_0x225d2a[_0x4502ae(0x142)][_0x4502ae(0x120)],!0x0),_0x4ceecf(_0x225d2a[_0x4502ae(0x145)]))_0x1ce166[_0x4502ae(0x108)](_0x225d2a[_0x4502ae(0x142)][_0x4502ae(0x144)]);else{if(_0x4e10fe(_0x225d2a[_0x4502ae(0x145)])){if(_0x225d2a[_0x4502ae(0x145)]!==_0x29f5b2){if(_0x29f5b2=_0x225d2a[_0x4502ae(0x145)],_0x4502ae(0x125)===_0x225d2a[_0x4502ae(0x145)]){this[_0x4502ae(0x129)]||(this[_0x4502ae(0x129)]=!0x0,this[_0x4502ae(0x12d)](_0x4502ae(0x14a),this));continue;}if(_0x4502ae(0x106)===_0x225d2a[_0x4502ae(0x145)]){this[_0x4502ae(0x121)]||(this[_0x4502ae(0x121)]=!0x0,this[_0x4502ae(0x12d)](_0x4502ae(0x141),this));continue;}this[_0x4502ae(0x121)]&&(this[_0x4502ae(0x121)]=!0x1,this[_0x4502ae(0x12d)](_0x4502ae(0x147),this)),this[_0x4502ae(0x129)]&&(this[_0x4502ae(0x129)]=!0x1,this[_0x4502ae(0x12d)](_0x4502ae(0x12a),this)),this[_0x4502ae(0x12c)]&&this[_0x4502ae(0x12c)][_0x4502ae(0x13a)](),this[_0x4502ae(0x12c)]=this[_0x4502ae(0x109)]({'type':_0x225d2a[_0x4502ae(0x145)],'interactionId':this['id'],'id':_0x225d2a[_0x4502ae(0x142)]?.['id']}),_0x1ce166[_0x4502ae(0x110)]>0x0&&_0x4502ae(0x11e)===_0x225d2a[_0x4502ae(0x145)]&&(this[_0x4502ae(0x12c)][_0x4502ae(0x11c)]=_0x1ce166[_0x4502ae(0x105)](0x0));}_0x225d2a[_0x4502ae(0x142)][_0x4502ae(0x10d)]&&this[_0x4502ae(0x12c)][_0x4502ae(0x124)](_0x225d2a[_0x4502ae(0x142)][_0x4502ae(0x10d)]);}else _0x59e578(_0x225d2a[_0x4502ae(0x145)])||_0x144baf(_0x4502ae(0x130),{'chunk':_0x225d2a});}}else this[_0x4502ae(0x138)]=_0x225d2a[_0x4502ae(0x142)][_0x4502ae(0x10c)];}else this[_0x4502ae(0x10e)]=_0x225d2a[_0x4502ae(0x142)][_0x4502ae(0x10e)];}}finally{this[_0x4502ae(0x135)]||(_0x1ce166[_0x4502ae(0x110)]>0x0&&(this[_0x4502ae(0x12c)][_0x4502ae(0x11c)]=_0x1ce166[_0x4502ae(0x105)](0x0)),this[_0x4502ae(0x113)](),this[_0x4502ae(0x12d)](_0x4502ae(0x133),this));}}[_0x45d5f6(0x123)](){const _0x3a77d9=_0x45d5f6;this[_0x3a77d9(0x135)]||(this[_0x3a77d9(0x113)](),this[_0x3a77d9(0x12d)](_0x3a77d9(0x119),this));}[_0x45d5f6(0x10b)](_0x312d0d){const _0x5d2ad5=_0x45d5f6;return this[_0x5d2ad5(0x11a)][_0x5d2ad5(0x13b)](_0x47dc8f=>_0x47dc8f['id']===_0x312d0d);}[_0x45d5f6(0x114)](){const _0x98a118=_0x45d5f6;this[_0x98a118(0x127)]||(this[_0x98a118(0x123)](),this[_0x98a118(0x11a)][_0x98a118(0x126)](_0x37da03=>_0x37da03[_0x98a118(0x114)]()),this[_0x98a118(0x11a)]=[],this[_0x98a118(0x127)]=!0x0,this[_0x98a118(0x12d)](_0x98a118(0x131),this),this[_0x98a118(0x146)]());}[_0x45d5f6(0x109)](_0x418872){const _0x1ff848=_0x45d5f6,_0x81de37=new _0x4f1ff7({'editor':this[_0x1ff848(0x134)],'documentContextContent':this[_0x1ff848(0x13c)]()?.[_0x1ff848(0x10f)],..._0x418872});return this[_0x1ff848(0x11a)][_0x1ff848(0x108)](_0x81de37),_0x81de37[_0x1ff848(0x107)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x1ff848(0x12d)](_0x1ff848(0x13e),_0x81de37),_0x81de37;}[_0x45d5f6(0x12f)](_0x371532,_0x1d9101=!0x1){const _0x234142=_0x45d5f6;this[_0x234142(0x12d)](_0x234142(0x12f),_0x371532,_0x1d9101);}[_0x45d5f6(0x113)](){const _0x1550c4=_0x45d5f6;this[_0x1550c4(0x135)]=!0x0,this[_0x1550c4(0x11b)]&&this[_0x1550c4(0x11b)][_0x1550c4(0x13f)][_0x1550c4(0x143)](),this[_0x1550c4(0x12c)]&&this[_0x1550c4(0x12c)][_0x1550c4(0x13a)](),this[_0x1550c4(0x11b)]=this[_0x1550c4(0x12c)]=void 0x0;}}