@ckeditor/ckeditor5-ai 47.3.0 → 47.4.0-alpha.1

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 (701) hide show
  1. package/LICENSE.md +1 -1
  2. package/README.md +1 -1
  3. package/build/ai.js +3 -3
  4. package/build/translations/af.js +1 -1
  5. package/build/translations/ar.js +1 -1
  6. package/build/translations/ast.js +1 -1
  7. package/build/translations/az.js +1 -1
  8. package/build/translations/be.js +1 -1
  9. package/build/translations/bg.js +1 -1
  10. package/build/translations/bn.js +1 -1
  11. package/build/translations/bs.js +1 -1
  12. package/build/translations/ca.js +1 -1
  13. package/build/translations/cs.js +1 -1
  14. package/build/translations/da.js +1 -1
  15. package/build/translations/de-ch.js +1 -1
  16. package/build/translations/de.js +1 -1
  17. package/build/translations/el.js +1 -1
  18. package/build/translations/en-au.js +1 -1
  19. package/build/translations/en-gb.js +1 -1
  20. package/build/translations/eo.js +1 -1
  21. package/build/translations/es-co.js +1 -1
  22. package/build/translations/es.js +1 -1
  23. package/build/translations/et.js +1 -1
  24. package/build/translations/eu.js +1 -1
  25. package/build/translations/fa.js +1 -1
  26. package/build/translations/fi.js +1 -1
  27. package/build/translations/fr.js +1 -1
  28. package/build/translations/gl.js +1 -1
  29. package/build/translations/gu.js +1 -1
  30. package/build/translations/he.js +1 -1
  31. package/build/translations/hi.js +1 -1
  32. package/build/translations/hr.js +1 -1
  33. package/build/translations/hu.js +1 -1
  34. package/build/translations/hy.js +1 -1
  35. package/build/translations/id.js +1 -1
  36. package/build/translations/it.js +1 -1
  37. package/build/translations/ja.js +1 -1
  38. package/build/translations/jv.js +1 -1
  39. package/build/translations/kk.js +1 -1
  40. package/build/translations/km.js +1 -1
  41. package/build/translations/kn.js +1 -1
  42. package/build/translations/ko.js +1 -1
  43. package/build/translations/ku.js +1 -1
  44. package/build/translations/lt.js +1 -1
  45. package/build/translations/lv.js +1 -1
  46. package/build/translations/ms.js +1 -1
  47. package/build/translations/nb.js +1 -1
  48. package/build/translations/ne.js +1 -1
  49. package/build/translations/nl.js +1 -1
  50. package/build/translations/no.js +1 -1
  51. package/build/translations/oc.js +1 -1
  52. package/build/translations/pl.js +1 -1
  53. package/build/translations/pt-br.js +1 -1
  54. package/build/translations/pt.js +1 -1
  55. package/build/translations/ro.js +1 -1
  56. package/build/translations/ru.js +1 -1
  57. package/build/translations/si.js +1 -1
  58. package/build/translations/sk.js +1 -1
  59. package/build/translations/sl.js +1 -1
  60. package/build/translations/sq.js +1 -1
  61. package/build/translations/sr-latn.js +1 -1
  62. package/build/translations/sr.js +1 -1
  63. package/build/translations/sv.js +1 -1
  64. package/build/translations/th.js +1 -1
  65. package/build/translations/ti.js +1 -1
  66. package/build/translations/tk.js +1 -1
  67. package/build/translations/tr.js +1 -1
  68. package/build/translations/tt.js +1 -1
  69. package/build/translations/ug.js +1 -1
  70. package/build/translations/uk.js +1 -1
  71. package/build/translations/ur.js +1 -1
  72. package/build/translations/uz.js +1 -1
  73. package/build/translations/vi.js +1 -1
  74. package/build/translations/zh-cn.js +1 -1
  75. package/build/translations/zh.js +1 -1
  76. package/dist/index-content.css +1 -1
  77. package/dist/index-editor.css +67 -4
  78. package/dist/index.css +117 -54
  79. package/dist/index.js +6 -6
  80. package/dist/translations/af.d.ts +1 -1
  81. package/dist/translations/af.js +2 -2
  82. package/dist/translations/af.umd.js +2 -2
  83. package/dist/translations/ar.d.ts +1 -1
  84. package/dist/translations/ar.js +2 -2
  85. package/dist/translations/ar.umd.js +2 -2
  86. package/dist/translations/ast.d.ts +1 -1
  87. package/dist/translations/ast.js +2 -2
  88. package/dist/translations/ast.umd.js +2 -2
  89. package/dist/translations/az.d.ts +1 -1
  90. package/dist/translations/az.js +2 -2
  91. package/dist/translations/az.umd.js +2 -2
  92. package/dist/translations/be.d.ts +1 -1
  93. package/dist/translations/be.js +2 -2
  94. package/dist/translations/be.umd.js +2 -2
  95. package/dist/translations/bg.d.ts +1 -1
  96. package/dist/translations/bg.js +2 -2
  97. package/dist/translations/bg.umd.js +2 -2
  98. package/dist/translations/bn.d.ts +1 -1
  99. package/dist/translations/bn.js +2 -2
  100. package/dist/translations/bn.umd.js +2 -2
  101. package/dist/translations/bs.d.ts +1 -1
  102. package/dist/translations/bs.js +2 -2
  103. package/dist/translations/bs.umd.js +2 -2
  104. package/dist/translations/ca.d.ts +1 -1
  105. package/dist/translations/ca.js +2 -2
  106. package/dist/translations/ca.umd.js +2 -2
  107. package/dist/translations/cs.d.ts +1 -1
  108. package/dist/translations/cs.js +2 -2
  109. package/dist/translations/cs.umd.js +2 -2
  110. package/dist/translations/da.d.ts +1 -1
  111. package/dist/translations/da.js +2 -2
  112. package/dist/translations/da.umd.js +2 -2
  113. package/dist/translations/de-ch.d.ts +1 -1
  114. package/dist/translations/de-ch.js +2 -2
  115. package/dist/translations/de-ch.umd.js +2 -2
  116. package/dist/translations/de.d.ts +1 -1
  117. package/dist/translations/de.js +2 -2
  118. package/dist/translations/de.umd.js +2 -2
  119. package/dist/translations/el.d.ts +1 -1
  120. package/dist/translations/el.js +2 -2
  121. package/dist/translations/el.umd.js +2 -2
  122. package/dist/translations/en-au.d.ts +1 -1
  123. package/dist/translations/en-au.js +2 -2
  124. package/dist/translations/en-au.umd.js +2 -2
  125. package/dist/translations/en-gb.d.ts +1 -1
  126. package/dist/translations/en-gb.js +2 -2
  127. package/dist/translations/en-gb.umd.js +2 -2
  128. package/dist/translations/en.d.ts +1 -1
  129. package/dist/translations/en.js +2 -2
  130. package/dist/translations/en.umd.js +2 -2
  131. package/dist/translations/eo.d.ts +1 -1
  132. package/dist/translations/eo.js +2 -2
  133. package/dist/translations/eo.umd.js +2 -2
  134. package/dist/translations/es-co.d.ts +1 -1
  135. package/dist/translations/es-co.js +2 -2
  136. package/dist/translations/es-co.umd.js +2 -2
  137. package/dist/translations/es.d.ts +1 -1
  138. package/dist/translations/es.js +2 -2
  139. package/dist/translations/es.umd.js +2 -2
  140. package/dist/translations/et.d.ts +1 -1
  141. package/dist/translations/et.js +2 -2
  142. package/dist/translations/et.umd.js +2 -2
  143. package/dist/translations/eu.d.ts +1 -1
  144. package/dist/translations/eu.js +2 -2
  145. package/dist/translations/eu.umd.js +2 -2
  146. package/dist/translations/fa.d.ts +1 -1
  147. package/dist/translations/fa.js +2 -2
  148. package/dist/translations/fa.umd.js +2 -2
  149. package/dist/translations/fi.d.ts +1 -1
  150. package/dist/translations/fi.js +2 -2
  151. package/dist/translations/fi.umd.js +2 -2
  152. package/dist/translations/fr.d.ts +1 -1
  153. package/dist/translations/fr.js +2 -2
  154. package/dist/translations/fr.umd.js +2 -2
  155. package/dist/translations/gl.d.ts +1 -1
  156. package/dist/translations/gl.js +2 -2
  157. package/dist/translations/gl.umd.js +2 -2
  158. package/dist/translations/gu.d.ts +1 -1
  159. package/dist/translations/gu.js +2 -2
  160. package/dist/translations/gu.umd.js +2 -2
  161. package/dist/translations/he.d.ts +1 -1
  162. package/dist/translations/he.js +2 -2
  163. package/dist/translations/he.umd.js +2 -2
  164. package/dist/translations/hi.d.ts +1 -1
  165. package/dist/translations/hi.js +2 -2
  166. package/dist/translations/hi.umd.js +2 -2
  167. package/dist/translations/hr.d.ts +1 -1
  168. package/dist/translations/hr.js +2 -2
  169. package/dist/translations/hr.umd.js +2 -2
  170. package/dist/translations/hu.d.ts +1 -1
  171. package/dist/translations/hu.js +2 -2
  172. package/dist/translations/hu.umd.js +2 -2
  173. package/dist/translations/hy.d.ts +1 -1
  174. package/dist/translations/hy.js +2 -2
  175. package/dist/translations/hy.umd.js +2 -2
  176. package/dist/translations/id.d.ts +1 -1
  177. package/dist/translations/id.js +2 -2
  178. package/dist/translations/id.umd.js +2 -2
  179. package/dist/translations/it.d.ts +1 -1
  180. package/dist/translations/it.js +2 -2
  181. package/dist/translations/it.umd.js +2 -2
  182. package/dist/translations/ja.d.ts +1 -1
  183. package/dist/translations/ja.js +2 -2
  184. package/dist/translations/ja.umd.js +2 -2
  185. package/dist/translations/jv.d.ts +1 -1
  186. package/dist/translations/jv.js +2 -2
  187. package/dist/translations/jv.umd.js +2 -2
  188. package/dist/translations/kk.d.ts +1 -1
  189. package/dist/translations/kk.js +2 -2
  190. package/dist/translations/kk.umd.js +2 -2
  191. package/dist/translations/km.d.ts +1 -1
  192. package/dist/translations/km.js +2 -2
  193. package/dist/translations/km.umd.js +2 -2
  194. package/dist/translations/kn.d.ts +1 -1
  195. package/dist/translations/kn.js +2 -2
  196. package/dist/translations/kn.umd.js +2 -2
  197. package/dist/translations/ko.d.ts +1 -1
  198. package/dist/translations/ko.js +2 -2
  199. package/dist/translations/ko.umd.js +2 -2
  200. package/dist/translations/ku.d.ts +1 -1
  201. package/dist/translations/ku.js +2 -2
  202. package/dist/translations/ku.umd.js +2 -2
  203. package/dist/translations/lt.d.ts +1 -1
  204. package/dist/translations/lt.js +2 -2
  205. package/dist/translations/lt.umd.js +2 -2
  206. package/dist/translations/lv.d.ts +1 -1
  207. package/dist/translations/lv.js +2 -2
  208. package/dist/translations/lv.umd.js +2 -2
  209. package/dist/translations/ms.d.ts +1 -1
  210. package/dist/translations/ms.js +2 -2
  211. package/dist/translations/ms.umd.js +2 -2
  212. package/dist/translations/nb.d.ts +1 -1
  213. package/dist/translations/nb.js +2 -2
  214. package/dist/translations/nb.umd.js +2 -2
  215. package/dist/translations/ne.d.ts +1 -1
  216. package/dist/translations/ne.js +2 -2
  217. package/dist/translations/ne.umd.js +2 -2
  218. package/dist/translations/nl.d.ts +1 -1
  219. package/dist/translations/nl.js +2 -2
  220. package/dist/translations/nl.umd.js +2 -2
  221. package/dist/translations/no.d.ts +1 -1
  222. package/dist/translations/no.js +2 -2
  223. package/dist/translations/no.umd.js +2 -2
  224. package/dist/translations/oc.d.ts +1 -1
  225. package/dist/translations/oc.js +2 -2
  226. package/dist/translations/oc.umd.js +2 -2
  227. package/dist/translations/pl.d.ts +1 -1
  228. package/dist/translations/pl.js +2 -2
  229. package/dist/translations/pl.umd.js +2 -2
  230. package/dist/translations/pt-br.d.ts +1 -1
  231. package/dist/translations/pt-br.js +2 -2
  232. package/dist/translations/pt-br.umd.js +2 -2
  233. package/dist/translations/pt.d.ts +1 -1
  234. package/dist/translations/pt.js +2 -2
  235. package/dist/translations/pt.umd.js +2 -2
  236. package/dist/translations/ro.d.ts +1 -1
  237. package/dist/translations/ro.js +2 -2
  238. package/dist/translations/ro.umd.js +2 -2
  239. package/dist/translations/ru.d.ts +1 -1
  240. package/dist/translations/ru.js +2 -2
  241. package/dist/translations/ru.umd.js +2 -2
  242. package/dist/translations/si.d.ts +1 -1
  243. package/dist/translations/si.js +2 -2
  244. package/dist/translations/si.umd.js +2 -2
  245. package/dist/translations/sk.d.ts +1 -1
  246. package/dist/translations/sk.js +2 -2
  247. package/dist/translations/sk.umd.js +2 -2
  248. package/dist/translations/sl.d.ts +1 -1
  249. package/dist/translations/sl.js +2 -2
  250. package/dist/translations/sl.umd.js +2 -2
  251. package/dist/translations/sq.d.ts +1 -1
  252. package/dist/translations/sq.js +2 -2
  253. package/dist/translations/sq.umd.js +2 -2
  254. package/dist/translations/sr-latn.d.ts +1 -1
  255. package/dist/translations/sr-latn.js +2 -2
  256. package/dist/translations/sr-latn.umd.js +2 -2
  257. package/dist/translations/sr.d.ts +1 -1
  258. package/dist/translations/sr.js +2 -2
  259. package/dist/translations/sr.umd.js +2 -2
  260. package/dist/translations/sv.d.ts +1 -1
  261. package/dist/translations/sv.js +2 -2
  262. package/dist/translations/sv.umd.js +2 -2
  263. package/dist/translations/th.d.ts +1 -1
  264. package/dist/translations/th.js +2 -2
  265. package/dist/translations/th.umd.js +2 -2
  266. package/dist/translations/ti.d.ts +1 -1
  267. package/dist/translations/ti.js +2 -2
  268. package/dist/translations/ti.umd.js +2 -2
  269. package/dist/translations/tk.d.ts +1 -1
  270. package/dist/translations/tk.js +2 -2
  271. package/dist/translations/tk.umd.js +2 -2
  272. package/dist/translations/tr.d.ts +1 -1
  273. package/dist/translations/tr.js +2 -2
  274. package/dist/translations/tr.umd.js +2 -2
  275. package/dist/translations/tt.d.ts +1 -1
  276. package/dist/translations/tt.js +2 -2
  277. package/dist/translations/tt.umd.js +2 -2
  278. package/dist/translations/ug.d.ts +1 -1
  279. package/dist/translations/ug.js +2 -2
  280. package/dist/translations/ug.umd.js +2 -2
  281. package/dist/translations/uk.d.ts +1 -1
  282. package/dist/translations/uk.js +2 -2
  283. package/dist/translations/uk.umd.js +2 -2
  284. package/dist/translations/ur.d.ts +1 -1
  285. package/dist/translations/ur.js +2 -2
  286. package/dist/translations/ur.umd.js +2 -2
  287. package/dist/translations/uz.d.ts +1 -1
  288. package/dist/translations/uz.js +2 -2
  289. package/dist/translations/uz.umd.js +2 -2
  290. package/dist/translations/vi.d.ts +1 -1
  291. package/dist/translations/vi.js +2 -2
  292. package/dist/translations/vi.umd.js +2 -2
  293. package/dist/translations/zh-cn.d.ts +1 -1
  294. package/dist/translations/zh-cn.js +2 -2
  295. package/dist/translations/zh-cn.umd.js +2 -2
  296. package/dist/translations/zh.d.ts +1 -1
  297. package/dist/translations/zh.js +2 -2
  298. package/dist/translations/zh.umd.js +2 -2
  299. package/lang/contexts.json +0 -11
  300. package/lang/translations/af.po +1 -45
  301. package/lang/translations/ar.po +1 -45
  302. package/lang/translations/ast.po +1 -45
  303. package/lang/translations/az.po +1 -45
  304. package/lang/translations/be.po +1 -45
  305. package/lang/translations/bg.po +1 -45
  306. package/lang/translations/bn.po +1 -45
  307. package/lang/translations/bs.po +1 -45
  308. package/lang/translations/ca.po +1 -45
  309. package/lang/translations/cs.po +1 -45
  310. package/lang/translations/da.po +1 -45
  311. package/lang/translations/de-ch.po +1 -45
  312. package/lang/translations/de.po +1 -45
  313. package/lang/translations/el.po +1 -45
  314. package/lang/translations/en-au.po +1 -45
  315. package/lang/translations/en-gb.po +1 -45
  316. package/lang/translations/en.po +1 -45
  317. package/lang/translations/eo.po +1 -45
  318. package/lang/translations/es-co.po +1 -45
  319. package/lang/translations/es.po +1 -45
  320. package/lang/translations/et.po +1 -45
  321. package/lang/translations/eu.po +1 -45
  322. package/lang/translations/fa.po +1 -45
  323. package/lang/translations/fi.po +1 -45
  324. package/lang/translations/fr.po +1 -45
  325. package/lang/translations/gl.po +1 -45
  326. package/lang/translations/gu.po +1 -45
  327. package/lang/translations/he.po +1 -45
  328. package/lang/translations/hi.po +1 -45
  329. package/lang/translations/hr.po +1 -45
  330. package/lang/translations/hu.po +1 -45
  331. package/lang/translations/hy.po +1 -45
  332. package/lang/translations/id.po +1 -45
  333. package/lang/translations/it.po +1 -45
  334. package/lang/translations/ja.po +1 -45
  335. package/lang/translations/jv.po +1 -45
  336. package/lang/translations/kk.po +1 -45
  337. package/lang/translations/km.po +1 -45
  338. package/lang/translations/kn.po +1 -45
  339. package/lang/translations/ko.po +1 -45
  340. package/lang/translations/ku.po +1 -45
  341. package/lang/translations/lt.po +1 -45
  342. package/lang/translations/lv.po +1 -45
  343. package/lang/translations/ms.po +1 -45
  344. package/lang/translations/nb.po +1 -45
  345. package/lang/translations/ne.po +1 -45
  346. package/lang/translations/nl.po +1 -45
  347. package/lang/translations/no.po +1 -45
  348. package/lang/translations/oc.po +1 -45
  349. package/lang/translations/pl.po +1 -45
  350. package/lang/translations/pt-br.po +1 -45
  351. package/lang/translations/pt.po +1 -45
  352. package/lang/translations/ro.po +1 -45
  353. package/lang/translations/ru.po +1 -45
  354. package/lang/translations/si.po +1 -45
  355. package/lang/translations/sk.po +1 -45
  356. package/lang/translations/sl.po +1 -45
  357. package/lang/translations/sq.po +1 -45
  358. package/lang/translations/sr-latn.po +1 -45
  359. package/lang/translations/sr.po +1 -45
  360. package/lang/translations/sv.po +1 -45
  361. package/lang/translations/th.po +1 -45
  362. package/lang/translations/ti.po +1 -45
  363. package/lang/translations/tk.po +1 -45
  364. package/lang/translations/tr.po +1 -45
  365. package/lang/translations/tt.po +1 -45
  366. package/lang/translations/ug.po +1 -45
  367. package/lang/translations/uk.po +1 -45
  368. package/lang/translations/ur.po +1 -45
  369. package/lang/translations/uz.po +1 -45
  370. package/lang/translations/vi.po +1 -45
  371. package/lang/translations/zh-cn.po +1 -45
  372. package/lang/translations/zh.po +1 -45
  373. package/package.json +16 -16
  374. package/src/aiactions/aiactions.d.ts +5 -1
  375. package/src/aiactions/aiactions.js +2 -2
  376. package/src/aiactions/model/aiactionsinteraction.d.ts +1 -1
  377. package/src/aiactions/model/aiactionsinteraction.js +2 -2
  378. package/src/aiactions/model/aiactionsreply.d.ts +1 -1
  379. package/src/aiactions/model/aiactionsreply.js +2 -2
  380. package/src/aiassistant/adapters/aiadapter.d.ts +1 -1
  381. package/src/aiassistant/adapters/aiadapter.js +2 -2
  382. package/src/aiassistant/adapters/aitextadapter.d.ts +1 -1
  383. package/src/aiassistant/adapters/aitextadapter.js +2 -2
  384. package/src/aiassistant/adapters/awstextadapter.d.ts +1 -1
  385. package/src/aiassistant/adapters/awstextadapter.js +2 -2
  386. package/src/aiassistant/adapters/openaitextadapter.d.ts +1 -1
  387. package/src/aiassistant/adapters/openaitextadapter.js +2 -2
  388. package/src/aiassistant/aiassistant.d.ts +1 -1
  389. package/src/aiassistant/aiassistant.js +2 -2
  390. package/src/aiassistant/aiassistantediting.d.ts +1 -1
  391. package/src/aiassistant/aiassistantediting.js +2 -2
  392. package/src/aiassistant/aiassistantui.d.ts +1 -1
  393. package/src/aiassistant/aiassistantui.js +2 -2
  394. package/src/aiassistant/legacyerrors.d.ts +1 -1
  395. package/src/aiassistant/legacyerrors.js +2 -2
  396. package/src/aiassistant/ui/aiassistantcontroller.d.ts +1 -1
  397. package/src/aiassistant/ui/aiassistantcontroller.js +3 -3
  398. package/src/aiassistant/ui/form/aiformcontentarea.d.ts +1 -1
  399. package/src/aiassistant/ui/form/aiformcontentarea.js +2 -2
  400. package/src/aiassistant/ui/form/aiformerrorview.d.ts +1 -1
  401. package/src/aiassistant/ui/form/aiformerrorview.js +2 -2
  402. package/src/aiassistant/ui/form/aiformpromptview.d.ts +1 -1
  403. package/src/aiassistant/ui/form/aiformpromptview.js +2 -2
  404. package/src/aiassistant/ui/form/aiformtoolbarview.d.ts +1 -1
  405. package/src/aiassistant/ui/form/aiformtoolbarview.js +2 -2
  406. package/src/aiassistant/ui/form/aiformview.d.ts +1 -1
  407. package/src/aiassistant/ui/form/aiformview.js +2 -2
  408. package/src/aiassistant/ui/form/aihistorylistitemview.d.ts +1 -1
  409. package/src/aiassistant/ui/form/aihistorylistitemview.js +2 -2
  410. package/src/aiassistant/ui/form/aihistorylistview.d.ts +1 -1
  411. package/src/aiassistant/ui/form/aihistorylistview.js +2 -2
  412. package/src/aiassistant/ui/form/prompthistory.d.ts +1 -1
  413. package/src/aiassistant/ui/form/prompthistory.js +2 -2
  414. package/src/aiassistant/ui/showaiassistantcommand.d.ts +1 -1
  415. package/src/aiassistant/ui/showaiassistantcommand.js +2 -2
  416. package/src/aiassistant/utils/common-translations.d.ts +1 -1
  417. package/src/aiassistant/utils/common-translations.js +2 -2
  418. package/src/aiassistant/utils/normalizecommandsconfig.d.ts +1 -1
  419. package/src/aiassistant/utils/normalizecommandsconfig.js +2 -2
  420. package/src/aiballoon/aiballoon.d.ts +1 -1
  421. package/src/aiballoon/aiballoon.js +2 -2
  422. package/src/aiballoon/ui/aiballoondisclaimerview.d.ts +1 -1
  423. package/src/aiballoon/ui/aiballoondisclaimerview.js +2 -2
  424. package/src/aiballoon/ui/aiballoontoolbarview.d.ts +1 -1
  425. package/src/aiballoon/ui/aiballoontoolbarview.js +2 -2
  426. package/src/aiballoon/ui/aiballoonview.d.ts +1 -1
  427. package/src/aiballoon/ui/aiballoonview.js +2 -2
  428. package/src/aichat/aichat.d.ts +38 -4
  429. package/src/aichat/aichat.js +2 -2
  430. package/src/aichat/aichatcontroller.d.ts +5 -1
  431. package/src/aichat/aichatcontroller.js +2 -2
  432. package/src/aichat/aichatui.d.ts +3 -3
  433. package/src/aichat/aichatui.js +2 -2
  434. package/src/aichat/model/aichatcontext.d.ts +1 -1
  435. package/src/aichat/model/aichatcontext.js +2 -2
  436. package/src/aichat/model/aichatconversation.d.ts +10 -10
  437. package/src/aichat/model/aichatconversation.js +2 -2
  438. package/src/aichat/model/aichatinteraction.d.ts +1 -1
  439. package/src/aichat/model/aichatinteraction.js +2 -2
  440. package/src/aichat/ui/aichatcontrolsview.d.ts +4 -4
  441. package/src/aichat/ui/aichatcontrolsview.js +2 -2
  442. package/src/aichat/ui/aichatfeedview.d.ts +1 -1
  443. package/src/aichat/ui/aichatfeedview.js +2 -2
  444. package/src/aichat/ui/aichatheaderview.d.ts +1 -1
  445. package/src/aichat/ui/aichatheaderview.js +2 -2
  446. package/src/aichat/ui/aichatview.d.ts +1 -1
  447. package/src/aichat/ui/aichatview.js +2 -2
  448. package/src/aichat/ui/controls/aichatchipsoverflowmanager.d.ts +1 -1
  449. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +2 -2
  450. package/src/aichat/ui/controls/aichatcontextitembuttonview.d.ts +1 -1
  451. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +2 -2
  452. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.d.ts +1 -1
  453. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +2 -2
  454. package/src/aichat/ui/controls/aichatcontextpanelview.d.ts +1 -1
  455. package/src/aichat/ui/controls/aichatcontextpanelview.js +2 -2
  456. package/src/aichat/ui/controls/aichatcontrolsloaderview.d.ts +1 -1
  457. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +2 -2
  458. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.d.ts +5 -5
  459. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +2 -2
  460. package/src/aichat/ui/controls/aichatpromptinputview.d.ts +1 -1
  461. package/src/aichat/ui/controls/aichatpromptinputview.js +2 -2
  462. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.d.ts +1 -1
  463. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +2 -2
  464. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.d.ts +1 -1
  465. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +2 -2
  466. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.d.ts +1 -1
  467. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +2 -2
  468. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.d.ts +1 -1
  469. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +2 -2
  470. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.d.ts +1 -1
  471. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +2 -2
  472. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.d.ts +1 -1
  473. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +2 -2
  474. package/src/aichat/ui/feed/aichatfeedcontextchipsview.d.ts +1 -1
  475. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +2 -2
  476. package/src/aichat/ui/feed/aichatfeederroritemview.d.ts +1 -1
  477. package/src/aichat/ui/feed/aichatfeederroritemview.js +2 -2
  478. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.d.ts +1 -1
  479. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +2 -2
  480. package/src/aichat/ui/feed/aichatfeeditemview.d.ts +1 -1
  481. package/src/aichat/ui/feed/aichatfeeditemview.js +2 -2
  482. package/src/aichat/ui/feed/aichatfeedreplyitemview.d.ts +3 -2
  483. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +2 -2
  484. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.d.ts +1 -1
  485. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +2 -2
  486. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.d.ts +3 -2
  487. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +2 -2
  488. package/src/aichat/ui/feed/aichatfeedusermessageitem.d.ts +1 -1
  489. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +2 -2
  490. package/src/aichat/utils/eventnames.d.ts +1 -1
  491. package/src/aichat/utils/eventnames.js +2 -2
  492. package/src/aichat/utils/promisequeue.d.ts +1 -1
  493. package/src/aichat/utils/promisequeue.js +2 -2
  494. package/src/aichathistory/aichathistory.d.ts +1 -1
  495. package/src/aichathistory/aichathistory.js +2 -2
  496. package/src/aichathistory/aichathistorycontroller.d.ts +1 -1
  497. package/src/aichathistory/aichathistorycontroller.js +2 -2
  498. package/src/aichathistory/aichathistoryui.d.ts +1 -1
  499. package/src/aichathistory/aichathistoryui.js +2 -2
  500. package/src/aichathistory/model/aichathistoryconversations.d.ts +1 -1
  501. package/src/aichathistory/model/aichathistoryconversations.js +2 -2
  502. package/src/aichathistory/model/aichathistoryitem.d.ts +1 -1
  503. package/src/aichathistory/model/aichathistoryitem.js +2 -2
  504. package/src/aichathistory/ui/aichathistorylistitemview.d.ts +1 -1
  505. package/src/aichathistory/ui/aichathistorylistitemview.js +3 -3
  506. package/src/aichathistory/ui/aichathistorylistview.d.ts +1 -1
  507. package/src/aichathistory/ui/aichathistorylistview.js +2 -2
  508. package/src/aichathistory/ui/aichathistorysectionlistview.d.ts +1 -1
  509. package/src/aichathistory/ui/aichathistorysectionlistview.js +2 -2
  510. package/src/aichathistory/ui/aichathistoryview.d.ts +1 -1
  511. package/src/aichathistory/ui/aichathistoryview.js +2 -2
  512. package/src/aiconfig.d.ts +1 -1
  513. package/src/aiconfig.js +1 -1
  514. package/src/aicore/aiconnector.d.ts +4 -2
  515. package/src/aicore/aiconnector.js +2 -2
  516. package/src/aicore/aiediting.d.ts +1 -1
  517. package/src/aicore/aiediting.js +2 -2
  518. package/src/aicore/model/aicapabilities.d.ts +1 -1
  519. package/src/aicore/model/aicapabilities.js +2 -2
  520. package/src/aicore/model/aicontext.d.ts +1 -1
  521. package/src/aicore/model/aicontext.js +2 -2
  522. package/src/aicore/model/aiinteraction.d.ts +1 -1
  523. package/src/aicore/model/aiinteraction.js +2 -2
  524. package/src/aicore/model/aimodels.d.ts +3 -12
  525. package/src/aicore/model/aimodels.js +2 -2
  526. package/src/aicore/model/aireply.d.ts +1 -1
  527. package/src/aicore/model/aireply.js +2 -2
  528. package/src/aicore/pipeline/airesponseapplier.d.ts +1 -1
  529. package/src/aicore/pipeline/airesponseapplier.js +3 -3
  530. package/src/aicore/pipeline/airesponseparser.d.ts +1 -1
  531. package/src/aicore/pipeline/airesponseparser.js +3 -3
  532. package/src/aicore/ui/aidisclaimerview.d.ts +1 -1
  533. package/src/aicore/ui/aidisclaimerview.js +2 -2
  534. package/src/aicore/ui/aiskeleton.d.ts +1 -1
  535. package/src/aicore/ui/aiskeleton.js +2 -2
  536. package/src/aicore/ui/aispinner.d.ts +1 -1
  537. package/src/aicore/ui/aispinner.js +2 -2
  538. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.d.ts +1 -1
  539. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +2 -2
  540. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.d.ts +1 -1
  541. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +2 -2
  542. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.d.ts +5 -5
  543. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +2 -2
  544. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.d.ts +1 -1
  545. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +2 -2
  546. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.d.ts +1 -1
  547. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +2 -2
  548. package/src/aicore/utils/common-translations.d.ts +1 -1
  549. package/src/aicore/utils/common-translations.js +2 -2
  550. package/src/aicore/utils/createresizebutton.d.ts +1 -1
  551. package/src/aicore/utils/createresizebutton.js +2 -2
  552. package/src/aicore/utils/documentposition.d.ts +1 -1
  553. package/src/aicore/utils/documentposition.js +2 -2
  554. package/src/aicore/utils/documentrange.d.ts +1 -1
  555. package/src/aicore/utils/documentrange.js +2 -2
  556. package/src/aicore/utils/eventnames.d.ts +1 -1
  557. package/src/aicore/utils/eventnames.js +2 -2
  558. package/src/aicore/utils/geteditorfromcontext.d.ts +1 -1
  559. package/src/aicore/utils/geteditorfromcontext.js +2 -2
  560. package/src/aicore/utils/getoperationsfromreply.d.ts +1 -1
  561. package/src/aicore/utils/getoperationsfromreply.js +2 -2
  562. package/src/aicore/utils/getsuggestionpartsfromreply.d.ts +1 -1
  563. package/src/aicore/utils/getsuggestionpartsfromreply.js +2 -2
  564. package/src/aicore/utils/htmlparser.d.ts +1 -1
  565. package/src/aicore/utils/htmlparser.js +2 -2
  566. package/src/aicore/utils/htmlstreamer.d.ts +1 -1
  567. package/src/aicore/utils/htmlstreamer.js +2 -2
  568. package/src/aicore/utils/scrollmanager.d.ts +1 -1
  569. package/src/aicore/utils/scrollmanager.js +2 -2
  570. package/src/aieditorintegration/aieditorintegration.d.ts +1 -1
  571. package/src/aieditorintegration/aieditorintegration.js +2 -2
  572. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.d.ts +1 -1
  573. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +2 -2
  574. package/src/aieditorintegration/aitogglebutton/toggleaicommand.d.ts +1 -1
  575. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +2 -2
  576. package/src/aiquickactions/aiquickactions.d.ts +1 -1
  577. package/src/aiquickactions/aiquickactions.js +2 -2
  578. package/src/aiquickactions/aiquickactionscommand.d.ts +1 -1
  579. package/src/aiquickactions/aiquickactionscommand.js +2 -2
  580. package/src/aiquickactions/aiquickactionsediting.d.ts +1 -1
  581. package/src/aiquickactions/aiquickactionsediting.js +2 -2
  582. package/src/aiquickactions/aiquickactionsui.d.ts +1 -1
  583. package/src/aiquickactions/aiquickactionsui.js +2 -2
  584. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.d.ts +1 -1
  585. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +2 -2
  586. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.d.ts +1 -1
  587. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +2 -2
  588. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.d.ts +1 -1
  589. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +2 -2
  590. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.d.ts +1 -1
  591. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +2 -2
  592. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.d.ts +1 -1
  593. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +2 -2
  594. package/src/aireviewmode/aireviewcheckdefinitions.d.ts +1 -1
  595. package/src/aireviewmode/aireviewcheckdefinitions.js +2 -2
  596. package/src/aireviewmode/aireviewmode.d.ts +1 -1
  597. package/src/aireviewmode/aireviewmode.js +2 -2
  598. package/src/aireviewmode/aireviewmodecontroller.d.ts +1 -1
  599. package/src/aireviewmode/aireviewmodecontroller.js +2 -2
  600. package/src/aireviewmode/aireviewmodeediting.d.ts +1 -1
  601. package/src/aireviewmode/aireviewmodeediting.js +2 -2
  602. package/src/aireviewmode/aireviewmodeui.d.ts +1 -1
  603. package/src/aireviewmode/aireviewmodeui.js +2 -2
  604. package/src/aireviewmode/model/aireviewcheck.d.ts +1 -1
  605. package/src/aireviewmode/model/aireviewcheck.js +2 -2
  606. package/src/aireviewmode/model/aireviewcheckcustom.d.ts +1 -1
  607. package/src/aireviewmode/model/aireviewcheckcustom.js +2 -2
  608. package/src/aireviewmode/model/aireviewchecklist.d.ts +1 -1
  609. package/src/aireviewmode/model/aireviewchecklist.js +2 -2
  610. package/src/aireviewmode/model/aireviewcheckresult.d.ts +1 -1
  611. package/src/aireviewmode/model/aireviewcheckresult.js +2 -2
  612. package/src/aireviewmode/model/aireviewcheckresultchange.d.ts +1 -1
  613. package/src/aireviewmode/model/aireviewcheckresultchange.js +2 -2
  614. package/src/aireviewmode/model/aireviewcheckrun.d.ts +1 -1
  615. package/src/aireviewmode/model/aireviewcheckrun.js +2 -2
  616. package/src/aireviewmode/model/aireviewcustomcheckrun.d.ts +1 -1
  617. package/src/aireviewmode/model/aireviewcustomcheckrun.js +2 -2
  618. package/src/aireviewmode/model/aireviewsystemcheckrun.d.ts +1 -1
  619. package/src/aireviewmode/model/aireviewsystemcheckrun.js +2 -2
  620. package/src/aireviewmode/ui/aireviemodepromptinputview.d.ts +1 -1
  621. package/src/aireviewmode/ui/aireviemodepromptinputview.js +2 -2
  622. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.d.ts +1 -1
  623. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +2 -2
  624. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.d.ts +2 -2
  625. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +2 -2
  626. package/src/aireviewmode/ui/aireviewmodecustomcheckview.d.ts +1 -1
  627. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +2 -2
  628. package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.d.ts +1 -1
  629. package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +2 -2
  630. package/src/aireviewmode/ui/aireviewmodegeneralerrorview.d.ts +1 -1
  631. package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +2 -2
  632. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.d.ts +1 -1
  633. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +2 -2
  634. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.d.ts +1 -1
  635. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +2 -2
  636. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.d.ts +1 -1
  637. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +2 -2
  638. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.d.ts +1 -1
  639. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +2 -2
  640. package/src/aireviewmode/ui/aireviewmodeview.d.ts +1 -1
  641. package/src/aireviewmode/ui/aireviewmodeview.js +2 -2
  642. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.d.ts +1 -1
  643. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +2 -2
  644. package/src/aireviewmode/ui/form/aireviewmodeformmanager.d.ts +1 -1
  645. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +2 -2
  646. package/src/aitabs/aitabs.d.ts +1 -1
  647. package/src/aitabs/aitabs.js +2 -2
  648. package/src/aitabs/aitabsmainview.d.ts +1 -1
  649. package/src/aitabs/aitabsmainview.js +2 -2
  650. package/src/aitabs/tabs/aitabsview.d.ts +1 -1
  651. package/src/aitabs/tabs/aitabsview.js +2 -2
  652. package/src/aitabs/tabs/tabbuttonview.d.ts +1 -1
  653. package/src/aitabs/tabs/tabbuttonview.js +2 -2
  654. package/src/aitabs/tabs/tabpanelview.d.ts +1 -1
  655. package/src/aitabs/tabs/tabpanelview.js +2 -2
  656. package/src/augmentation.d.ts +1 -1
  657. package/src/augmentation.js +1 -1
  658. package/src/errors.d.ts +1 -1
  659. package/src/errors.js +2 -2
  660. package/src/errorsmap.d.ts +1 -1
  661. package/src/errorsmap.js +2 -2
  662. package/src/index.d.ts +1 -2
  663. package/src/index.js +2 -2
  664. package/theme/aiassistant/ai-dropdown.css +1 -1
  665. package/theme/aiassistant/ai-form.css +1 -1
  666. package/theme/aiassistant/ai.css +1 -1
  667. package/theme/aiballoon/aiballoon.css +1 -1
  668. package/theme/aichat/aichat-controls/aichat-context-chip.css +1 -1
  669. package/theme/aichat/aichat-controls/aichat-context-controls-balloon-panels.css +1 -1
  670. package/theme/aichat/aichat-controls/aichat-context-controls.css +1 -1
  671. package/theme/aichat/aichat-controls/aichat-controls-button.css +1 -1
  672. package/theme/aichat/aichat-controls/aichat-controls-loader.css +1 -1
  673. package/theme/aichat/aichat-controls/model-unavailable-message.css +1 -1
  674. package/theme/aichat/aichat-controls/prompt-capabilities.css +1 -1
  675. package/theme/aichat/aichat-controls/prompt-input.css +1 -1
  676. package/theme/aichat/aichat-controls.css +1 -1
  677. package/theme/aichat/aichat.css +1 -1
  678. package/theme/aichat/aichatfeed.css +55 -1
  679. package/theme/aichat/aichathistory.css +1 -1
  680. package/theme/aichat/aiminitoolbar.css +1 -1
  681. package/theme/aichat/aisuggestioncontainer.css +1 -1
  682. package/theme/aieditorintegration/aitogglebutton.css +1 -1
  683. package/theme/aiquickactions/aiquickactions.css +1 -1
  684. package/theme/aireviewmode/aireviewmode-balloon-panel-suggestion.css +1 -1
  685. package/theme/aireviewmode/aireviewmode-check-list.css +1 -1
  686. package/theme/aireviewmode/aireviewmode-check-run-result.css +1 -1
  687. package/theme/aireviewmode/aireviewmode-check-run.css +1 -1
  688. package/theme/aireviewmode/aireviewmode-review-completed.css +1 -1
  689. package/theme/aireviewmode/aireviewmode.css +9 -4
  690. package/theme/aitabs/aitabsview.css +1 -1
  691. package/theme/aitabs/tabs/tabbuttonview.css +1 -1
  692. package/theme/aitabs/tabs/tabsview.css +1 -1
  693. package/theme/common/aibutton.css +1 -1
  694. package/theme/common/aidisclaimer.css +1 -1
  695. package/theme/common/aiheader.css +1 -1
  696. package/theme/common/ainotification.css +1 -1
  697. package/theme/common/aiskeleton.css +1 -1
  698. package/theme/common/aispinner.css +1 -1
  699. package/theme/common/aitrackchanges.css +1 -1
  700. package/src/aichat/model/aichatmodels.d.ts +0 -63
  701. package/src/aichat/model/aichatmodels.js +0 -23
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4e3e1b=_0x3fdc;(function(_0x34567e,_0x4be82d){const _0x50cec1=_0x3fdc,_0x3491b4=_0x34567e();while(!![]){try{const _0x2bafce=-parseInt(_0x50cec1(0x187))/0x1*(parseInt(_0x50cec1(0x105))/0x2)+-parseInt(_0x50cec1(0x1a4))/0x3*(parseInt(_0x50cec1(0x111))/0x4)+-parseInt(_0x50cec1(0x115))/0x5+-parseInt(_0x50cec1(0x113))/0x6+parseInt(_0x50cec1(0x19c))/0x7+-parseInt(_0x50cec1(0x139))/0x8+parseInt(_0x50cec1(0x198))/0x9;if(_0x2bafce===_0x4be82d)break;else _0x3491b4['push'](_0x3491b4['shift']());}catch(_0xd66b46){_0x3491b4['push'](_0x3491b4['shift']());}}}(_0x54d1,0xa54a2));import{ContextPlugin as _0x330b0f}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x262090}from'ckeditor5/src/utils.js';import{AIChatView as _0x21655f}from'./ui/aichatview.js';import{AITabs as _0x5da74f}from'../aitabs/aitabs.js';function _0x54d1(){const _0x3ca6bc=['closeSourceResourceBalloon','isWebSearchEnabled','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','AI_CHAT_HEADING','enqueue','updateFeedItemAIReplySources','value','chatHeader','TrackChanges','setModel','scrollToSuggestion','ai.chat.context.searchInputVisibleFrom','disableControls','queueEmptyPromise','removeFeedInteraction','clear','interactionId','scrollFeedToSuggestion','conversation-start','resetMessageInput','bind','toggleSuggestionDisplayMode','_interactionPromiseResolver','28523dESklp','updateSuggestionItem','chatControls','user-message','ai-suggestion-reply','updateResourceState','setAddContextOptions','isBusy','finishInteraction','view','destroy','setConversationContext','find','addFeedItemStaticMessage','updateFeedItemAIReplySuggestionContent','updateFeedItemAIReplyContent','requires','28165041rHyPBu','setIsMaximized','setFeedItemRenderingStrategy','<p>','3069395UBgtye','length','createConversation','insertSuggestion','ai.chat.models.modelSelectorAlwaysVisible','addFeedItemError','chatFeed','AIChatUI','184218CSKeHj','renderingStrategy','children','values','addContextItem','then','updateReplyItem','28nGSfQS','focusPromptInput','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','setConversationTitle','abort','_promiseQueue','isModelAvailable','from','isLoading','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','interaction-header','8JXIUFH','feedItemRenderingStrategy','3407442GVYpDV','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','2288385CWKDAi','displayedPrompt','startAutoScroll','showResizeButton','error-message','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','updateFeedItemAIReplySuggestionPartState','resetConversationTitle','plugins','delegate','markFeedItemAsDone','chat','setWebSearch','stopInteraction','locale','setContextItemLoading','setModelList','quickActionData','ai-reply','populateSourceResourceBalloon','addFeedItemAISuggestion','forEach','remove','AITabs','isTrackChangesOn','capabilities','toggleLoadingSkeleton','pluginName','getItemIds','addItem','setSelectedModel','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','setIsUploadInProgress','enableModelSelector','_view','updateFeedInteractionHeader','10745520YJJILc','config','setInputPlaceholder','streaming','markItemAsDone','setReasoning','context','isDisabled','contextItems','disableModelSelector','get','filter','label','addFeedInteractionHeader','isDone','updateWebSources','set','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','</p>','isPremiumPlugin','addTab','_getLoadingMessage','_titleAnimationInterval','_animateConversationTitle','commands','isMaximized','addFeedItemUserMessage','stopAutoScroll','has','updateCapabilities','addFeedItemAIReply','clearPendingContextUI','isPending','removeContextItem','userMessage','ai.availableReplyActions','areActionsDisabled','last','isReasoningEnabled','isOfficialPlugin','_isTrackChangesCommandValueBound','clearConversationContextUI','setLoadingMessage','startInteraction','isVisible','_getInputPlaceholder','removeItem','showDiff','options','AI_CHAT_WELCOME_MESSAGE','updateSuggestionPartState','startsWith','enableControls','trackChanges','availableModels'];_0x54d1=function(){return _0x3ca6bc;};return _0x54d1();}import{getTranslation as _0x273aee}from'../aicore/utils/common-translations.js';import{IconAIChat as _0xd84c93}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x49c1a5}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0x48b8dd}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0x2a81b1}from'./utils/eventnames.js';function _0x3fdc(_0x5a9afb,_0x1031e7){const _0x54d14e=_0x54d1();return _0x3fdc=function(_0x3fdc7c,_0x405c7a){_0x3fdc7c=_0x3fdc7c-0x104;let _0x26091e=_0x54d14e[_0x3fdc7c];return _0x26091e;},_0x3fdc(_0x5a9afb,_0x1031e7);}import'../../theme/aichat/aichat.css';import{getEditorFromContext as _0x37b722}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x10fd3f}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIChatUI extends _0x330b0f{static get[_0x4e3e1b(0x197)](){return[_0x5da74f];}[_0x4e3e1b(0x137)];static get[_0x4e3e1b(0x130)](){const _0x556d3a=_0x4e3e1b;return _0x556d3a(0x1a3);}static get[_0x4e3e1b(0x160)](){return!0x0;}static get[_0x4e3e1b(0x14c)](){return!0x0;}[_0x4e3e1b(0x112)]=_0x4e3e1b(0x13c);[_0x4e3e1b(0x168)]=!0x0;[_0x4e3e1b(0x10b)];[_0x4e3e1b(0x186)];[_0x4e3e1b(0x14f)]=void 0x0;[_0x4e3e1b(0x161)]=!0x1;constructor(_0x3e39f3){const _0x187bdb=_0x4e3e1b;super(_0x3e39f3);const _0x3280d6=this[_0x187bdb(0x13f)][_0x187bdb(0x11d)][_0x187bdb(0x143)](_0x187bdb(0x12c));this[_0x187bdb(0x149)](_0x187bdb(0x18e),!0x1),this[_0x187bdb(0x10b)]=new _0x48b8dd(),this[_0x187bdb(0x137)]=new _0x21655f(this[_0x187bdb(0x13f)][_0x187bdb(0x123)],{'showResizeButton':_0x3280d6[_0x187bdb(0x118)],'contextResourcesSearchInputVisibleFrom':this[_0x187bdb(0x13f)][_0x187bdb(0x13a)][_0x187bdb(0x143)](_0x187bdb(0x17b))}),this[_0x187bdb(0x137)][_0x187bdb(0x11e)](..._0x2a81b1)['to'](this),this[_0x187bdb(0x137)]['on'](_0x187bdb(0x185),(_0x3e61a6,{showDiff:_0x182b2a})=>{const _0xee3b6a=_0x187bdb;this[_0xee3b6a(0x168)]=_0x182b2a;}),_0x3280d6[_0x187bdb(0x190)][_0x187bdb(0x14d)]({'id':_0x187bdb(0x120),'buttonLabel':_0x273aee(this[_0x187bdb(0x13f)][_0x187bdb(0x123)],_0x187bdb(0x173)),'buttonIcon':_0xd84c93,'order':0x0,'content':this[_0x187bdb(0x137)]}),this[_0x187bdb(0x137)][_0x187bdb(0x189)][_0x187bdb(0x184)](_0x187bdb(0x10e))['to'](this,_0x187bdb(0x18e),_0x142dbb=>_0x142dbb),this[_0x187bdb(0x137)][_0x187bdb(0x1a2)][_0x187bdb(0x184)](_0x187bdb(0x159))['to'](this,_0x187bdb(0x18e),_0x222297=>_0x222297),this[_0x187bdb(0x137)][_0x187bdb(0x189)][_0x187bdb(0x13b)](this[_0x187bdb(0x166)]()),this[_0x187bdb(0x184)](_0x187bdb(0x10c))['to'](this[_0x187bdb(0x137)][_0x187bdb(0x189)],_0x187bdb(0x10c));}[_0x4e3e1b(0x191)](){const _0x3ff838=_0x4e3e1b;super[_0x3ff838(0x191)](),this[_0x3ff838(0x14f)]&&clearInterval(this[_0x3ff838(0x14f)]);}[_0x4e3e1b(0x19e)](_0x334de5){const _0x1c46dd=_0x4e3e1b;this[_0x1c46dd(0x137)][_0x1c46dd(0x1a2)][_0x1c46dd(0x17f)](),this[_0x1c46dd(0x137)][_0x1c46dd(0x189)][_0x1c46dd(0x136)](),this[_0x1c46dd(0x137)][_0x1c46dd(0x189)][_0x1c46dd(0x125)](_0x334de5[_0x1c46dd(0x16f)],!this[_0x1c46dd(0x13f)][_0x1c46dd(0x13a)][_0x1c46dd(0x143)](_0x1c46dd(0x1a0))),this[_0x1c46dd(0x194)]({'id':_0x1c46dd(0x182),'staticMessage':_0x273aee(this[_0x1c46dd(0x13f)][_0x1c46dd(0x123)],_0x1c46dd(0x16a))});}[_0x4e3e1b(0x194)]({id:_0x24a09f,staticMessage:_0x3f8a2d}){const _0x8bb6dc=_0x4e3e1b;this[_0x8bb6dc(0x137)][_0x8bb6dc(0x1a2)][_0x8bb6dc(0x132)](_0x8bb6dc(0x127),{'id':_0x24a09f,'initialContent':_0x8bb6dc(0x19b)+_0x3f8a2d+_0x8bb6dc(0x14b)});}[_0x4e3e1b(0x153)](_0x1c0f81){const _0x3c06b9=_0x4e3e1b,_0x459080=_0x1c0f81[_0x3c06b9(0x126)]?.[_0x3c06b9(0x116)]||_0x1c0f81[_0x3c06b9(0x15b)];this[_0x3c06b9(0x137)][_0x3c06b9(0x1a2)][_0x3c06b9(0x132)](_0x3c06b9(0x18a),{'contextItems':Array[_0x3c06b9(0x10d)](_0x1c0f81[_0x3c06b9(0x141)][_0x3c06b9(0x1a7)]()),'initialContent':_0x3c06b9(0x19b)+_0x459080+_0x3c06b9(0x14b),'id':_0x1c0f81['id']});}[_0x4e3e1b(0x1a1)]({errorMessage:_0x5c997d,id:_0x256ae3}){const _0x22bebe=_0x4e3e1b;this[_0x22bebe(0x137)][_0x22bebe(0x1a2)][_0x22bebe(0x132)](_0x22bebe(0x119),{'initialContent':_0x22bebe(0x19b)+_0x5c997d+_0x22bebe(0x14b),'id':_0x256ae3});}[_0x4e3e1b(0x157)](_0x171095){const _0x35db8b=_0x4e3e1b;return this[_0x35db8b(0x10b)][_0x35db8b(0x174)](async()=>{const _0x48204c=_0x35db8b;this[_0x48204c(0x137)][_0x48204c(0x1a2)][_0x48204c(0x132)](_0x48204c(0x127),{'id':_0x171095[_0x48204c(0x180)]+':'+_0x171095['id']}),this[_0x48204c(0x163)](null);});}async[_0x4e3e1b(0x129)](_0x332724){const _0x1f65d0=_0x4e3e1b,_0x312c4a=_0x37b722(this[_0x1f65d0(0x13f)]);let _0x37815f=_0x312c4a[_0x1f65d0(0x13a)][_0x1f65d0(0x143)](_0x1f65d0(0x15c))||[..._0x10fd3f];if(_0x312c4a[_0x1f65d0(0x11d)][_0x1f65d0(0x155)](_0x1f65d0(0x178))){if(!this[_0x1f65d0(0x161)]){this[_0x1f65d0(0x161)]=!0x0;const _0x4c2a27=_0x312c4a[_0x1f65d0(0x151)][_0x1f65d0(0x143)](_0x1f65d0(0x16e));this[_0x1f65d0(0x137)][_0x1f65d0(0x1a2)][_0x1f65d0(0x184)](_0x1f65d0(0x12d))['to'](_0x4c2a27,_0x1f65d0(0x176));}}else _0x37815f=_0x37815f[_0x1f65d0(0x144)](_0x34ed90=>_0x1f65d0(0x19f)!=_0x34ed90);return this[_0x1f65d0(0x10b)][_0x1f65d0(0x174)](async()=>{const _0x44e751=_0x1f65d0;this[_0x44e751(0x137)][_0x44e751(0x1a2)][_0x44e751(0x132)](_0x44e751(0x18b),{'id':_0x332724[_0x44e751(0x180)]+':'+_0x332724['id'],'areActionsDisabled':_0x332724[_0x44e751(0x15d)],'showDiff':this[_0x44e751(0x168)],'availableActions':_0x37815f}),this[_0x44e751(0x163)](null);});}[_0x4e3e1b(0x146)](_0x4e3e1d,_0x2aac8e){const _0x77a190=_0x4e3e1b,_0x429050=this[_0x77a190(0x137)][_0x77a190(0x1a2)][_0x77a190(0x1a6)][_0x77a190(0x15e)];if(_0x429050 instanceof _0x49c1a5)return this[_0x77a190(0x137)][_0x77a190(0x1a2)][_0x77a190(0x1a6)][_0x77a190(0x12b)](_0x429050),void this[_0x77a190(0x137)][_0x77a190(0x1a2)][_0x77a190(0x132)](_0x77a190(0x110),{'id':_0x4e3e1d['id'],'capabilities':{'isWebSearchEnabled':_0x429050[_0x77a190(0x12e)][_0x77a190(0x171)]||_0x2aac8e[_0x77a190(0x171)],'isReasoningEnabled':_0x429050[_0x77a190(0x12e)][_0x77a190(0x15f)]||_0x2aac8e[_0x77a190(0x15f)]}});this[_0x77a190(0x137)][_0x77a190(0x1a2)][_0x77a190(0x132)](_0x77a190(0x110),{'id':_0x4e3e1d['id'],'capabilities':_0x2aac8e});}[_0x4e3e1b(0x138)](_0x548f08){const _0x3029f9=_0x4e3e1b,_0xcae46d=this[_0x3029f9(0x137)][_0x3029f9(0x1a2)][_0x3029f9(0x1a6)][_0x3029f9(0x193)](_0x191344=>_0x191344[_0x3029f9(0x169)]['id']==_0x548f08['id']&&_0x191344 instanceof _0x49c1a5);_0xcae46d&&_0xcae46d[_0x3029f9(0x149)](_0x3029f9(0x165),_0x548f08[_0x3029f9(0x165)]);}async[_0x4e3e1b(0x196)](_0x3a16a3){const _0x520f10=_0x4e3e1b,_0x502071=_0x3a16a3[_0x520f10(0x1a5)]||this[_0x520f10(0x112)];return this[_0x520f10(0x10b)][_0x520f10(0x174)](async _0x2b705e=>{const _0x108ca7=_0x520f10;await this[_0x108ca7(0x137)][_0x108ca7(0x1a2)][_0x108ca7(0x104)]({..._0x3a16a3,'abortSignal':_0x2b705e,'renderingStrategy':_0x502071}),_0x3a16a3[_0x108ca7(0x147)]&&this[_0x108ca7(0x11f)](_0x3a16a3['id']);});}[_0x4e3e1b(0x175)](_0x465c5b,_0xe45395){const _0x1e32d7=_0x4e3e1b;this[_0x1e32d7(0x137)][_0x1e32d7(0x1a2)][_0x1e32d7(0x148)](_0x465c5b,_0xe45395);}async[_0x4e3e1b(0x195)](_0x29a328){const _0x599ccd=_0x4e3e1b,_0x2bca9b=_0x29a328[_0x599ccd(0x1a5)]||this[_0x599ccd(0x112)];return this[_0x599ccd(0x10b)][_0x599ccd(0x174)](async _0x156676=>{const _0x1840ce=_0x599ccd;await this[_0x1840ce(0x137)][_0x1840ce(0x1a2)][_0x1840ce(0x188)]({..._0x29a328,'abortSignal':_0x156676,'renderingStrategy':_0x2bca9b}),_0x29a328[_0x1840ce(0x147)]&&this[_0x1840ce(0x11f)](_0x29a328['id']);});}[_0x4e3e1b(0x11b)](_0x2b14bf){const _0x41cef5=_0x4e3e1b;this[_0x41cef5(0x137)][_0x41cef5(0x1a2)][_0x41cef5(0x16b)](_0x2b14bf);}[_0x4e3e1b(0x11f)](_0xb267ed){const _0x4bf56f=_0x4e3e1b;this[_0x4bf56f(0x137)][_0x4bf56f(0x1a2)][_0x4bf56f(0x13d)](_0xb267ed);}[_0x4e3e1b(0x17e)](_0x504a06){const _0x31a47f=_0x4e3e1b;this[_0x31a47f(0x137)][_0x31a47f(0x1a2)][_0x31a47f(0x131)]()[_0x31a47f(0x144)](_0x2a66a7=>_0x2a66a7[_0x31a47f(0x16c)](_0x504a06))[_0x31a47f(0x12a)](_0x435f20=>this[_0x31a47f(0x137)][_0x31a47f(0x1a2)][_0x31a47f(0x167)](_0x435f20));}[_0x4e3e1b(0x164)](){const _0xef4361=_0x4e3e1b;this[_0xef4361(0x163)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1}),this[_0xef4361(0x137)][_0xef4361(0x189)][_0xef4361(0x142)](!this[_0xef4361(0x13f)][_0xef4361(0x13a)][_0xef4361(0x143)](_0xef4361(0x1a0))),this[_0xef4361(0x18e)]=!0x0,this[_0xef4361(0x137)][_0xef4361(0x1a2)][_0xef4361(0x117)]();}[_0x4e3e1b(0x122)](_0x361e65){const _0x37f481=_0x4e3e1b;this[_0x37f481(0x10b)][_0x37f481(0x10a)](),this[_0x37f481(0x137)][_0x37f481(0x1a2)][_0x37f481(0x131)]()[_0x37f481(0x144)](_0x4354cb=>_0x4354cb[_0x37f481(0x16c)](_0x361e65['id']))[_0x37f481(0x12a)](_0x2cf29a=>this[_0x37f481(0x11f)](_0x2cf29a)),this[_0x37f481(0x18e)]=!0x1,this[_0x37f481(0x137)][_0x37f481(0x1a2)][_0x37f481(0x154)]();}async[_0x4e3e1b(0x18f)](){const _0x5efe46=_0x4e3e1b;return this[_0x5efe46(0x10b)][_0x5efe46(0x17d)][_0x5efe46(0x1a9)](()=>{const _0x5d5b56=_0x5efe46;this[_0x5d5b56(0x18e)]=!0x1,this[_0x5d5b56(0x137)][_0x5d5b56(0x1a2)][_0x5d5b56(0x154)]();});}[_0x4e3e1b(0x1a8)](_0x21ef9e,_0x4cb3c2){const _0x541660=_0x4e3e1b;this[_0x541660(0x137)][_0x541660(0x189)][_0x541660(0x1a8)](_0x21ef9e,_0x4cb3c2);}[_0x4e3e1b(0x15a)](_0x2c8d5e){const _0x2f2456=_0x4e3e1b;this[_0x2f2456(0x137)][_0x2f2456(0x189)][_0x2f2456(0x15a)](_0x2c8d5e);}[_0x4e3e1b(0x124)](_0x363c74,_0x5a36d5){const _0x259785=_0x4e3e1b;this[_0x259785(0x137)][_0x259785(0x189)][_0x259785(0x124)](_0x363c74,_0x5a36d5);}[_0x4e3e1b(0x135)](_0x522354){const _0x29df07=_0x4e3e1b;this[_0x29df07(0x137)][_0x29df07(0x189)][_0x29df07(0x135)](_0x522354);}[_0x4e3e1b(0x192)](_0x41d9ad){const _0x307859=_0x4e3e1b;this[_0x307859(0x137)][_0x307859(0x189)][_0x307859(0x192)](_0x41d9ad);}[_0x4e3e1b(0x158)](){const _0xd97a7c=_0x4e3e1b;this[_0xd97a7c(0x137)][_0xd97a7c(0x189)][_0xd97a7c(0x158)]();}[_0x4e3e1b(0x162)](){const _0x45e5f1=_0x4e3e1b;this[_0x45e5f1(0x137)][_0x45e5f1(0x189)][_0x45e5f1(0x162)]();}[_0x4e3e1b(0x18c)](_0x5238ca,_0x3e9c3b,_0x26d790){const _0x533cef=_0x4e3e1b;this[_0x533cef(0x137)][_0x533cef(0x189)][_0x533cef(0x18c)](_0x5238ca,_0x3e9c3b,_0x26d790);}[_0x4e3e1b(0x183)](){const _0x48fada=_0x4e3e1b;this[_0x48fada(0x137)][_0x48fada(0x189)][_0x48fada(0x183)](),this[_0x48fada(0x137)][_0x48fada(0x189)][_0x48fada(0x13b)](this[_0x48fada(0x166)]());}[_0x4e3e1b(0x18d)](_0x3c238c){const _0x528819=_0x4e3e1b;this[_0x528819(0x137)][_0x528819(0x189)][_0x528819(0x18d)](_0x3c238c);}[_0x4e3e1b(0x156)](_0x284803){const _0xdea1ae=_0x4e3e1b;this[_0xdea1ae(0x137)][_0xdea1ae(0x189)][_0xdea1ae(0x121)](_0x284803[_0xdea1ae(0x171)]),this[_0xdea1ae(0x137)][_0xdea1ae(0x189)][_0xdea1ae(0x13e)](_0x284803[_0xdea1ae(0x15f)]),this[_0xdea1ae(0x137)][_0xdea1ae(0x189)][_0xdea1ae(0x13b)](this[_0xdea1ae(0x166)](_0x284803));}[_0x4e3e1b(0x133)](_0x582551,_0x25071e){const _0x23433b=_0x4e3e1b;this[_0x23433b(0x137)][_0x23433b(0x189)][_0x23433b(0x179)](_0x582551),_0x25071e&&this[_0x23433b(0x137)][_0x23433b(0x189)][_0x23433b(0x142)](!0x1);}[_0x4e3e1b(0x19a)](_0x109cf0){const _0x568ddf=_0x4e3e1b;this[_0x568ddf(0x112)]=_0x109cf0;}[_0x4e3e1b(0x12f)](_0x1c8030){const _0x551f28=_0x4e3e1b;this[_0x551f28(0x137)][_0x551f28(0x1a2)][_0x551f28(0x12f)](_0x1c8030);}[_0x4e3e1b(0x11c)](){const _0x44fceb=_0x4e3e1b;this[_0x44fceb(0x109)](_0x273aee(this[_0x44fceb(0x13f)][_0x44fceb(0x123)],_0x44fceb(0x173)));}[_0x4e3e1b(0x109)](_0x24c2b2,_0x5c31c1=!0x1){const _0x11419c=_0x4e3e1b;if(_0x5c31c1&&!_0x262090()&&_0x24c2b2[_0x11419c(0x19d)])return this[_0x11419c(0x137)][_0x11419c(0x177)][_0x11419c(0x145)]='',void this[_0x11419c(0x150)](_0x24c2b2);this[_0x11419c(0x137)][_0x11419c(0x177)][_0x11419c(0x145)]=_0x24c2b2;}[_0x4e3e1b(0x163)](_0x29b029){const _0x14aaed=_0x4e3e1b,_0xab2cdf=this[_0x14aaed(0x14e)](_0x29b029);this[_0x14aaed(0x137)][_0x14aaed(0x1a2)][_0x14aaed(0x163)](_0xab2cdf);}[_0x4e3e1b(0x150)](_0x11b1e7){const _0x2ce424=_0x4e3e1b;let _0x5a5e1b=0x0;clearInterval(this[_0x2ce424(0x14f)]),this[_0x2ce424(0x14f)]=setInterval(()=>{const _0x218b90=_0x2ce424;this[_0x218b90(0x137)][_0x218b90(0x177)][_0x218b90(0x145)]=this[_0x218b90(0x137)][_0x218b90(0x177)][_0x218b90(0x145)]+_0x11b1e7[_0x5a5e1b],_0x5a5e1b++,_0x5a5e1b===_0x11b1e7[_0x218b90(0x19d)]&&clearInterval(this[_0x218b90(0x14f)]);},0x1e);}[_0x4e3e1b(0x199)](_0x4c7a7c){const _0x32d7bc=_0x4e3e1b;this[_0x32d7bc(0x137)][_0x32d7bc(0x177)][_0x32d7bc(0x152)]=_0x4c7a7c;}[_0x4e3e1b(0x14e)](_0xa7dca9){const _0x8bd827=_0x4e3e1b;return _0xa7dca9?_0xa7dca9[_0x8bd827(0x171)]&&_0xa7dca9[_0x8bd827(0x15f)]?_0x273aee(this[_0x8bd827(0x13f)][_0x8bd827(0x123)],_0x8bd827(0x14a)):_0xa7dca9[_0x8bd827(0x171)]?_0x273aee(this[_0x8bd827(0x13f)][_0x8bd827(0x123)],_0x8bd827(0x107)):_0xa7dca9[_0x8bd827(0x15f)]?_0x273aee(this[_0x8bd827(0x13f)][_0x8bd827(0x123)],_0x8bd827(0x134)):_0x273aee(this[_0x8bd827(0x13f)][_0x8bd827(0x123)],_0x8bd827(0x172)):'';}[_0x4e3e1b(0x166)](_0x5c13cb){const _0x12679a=_0x4e3e1b;return _0x5c13cb?_0x5c13cb[_0x12679a(0x171)]&&_0x5c13cb[_0x12679a(0x15f)]?_0x273aee(this[_0x12679a(0x13f)][_0x12679a(0x123)],_0x12679a(0x11a)):_0x5c13cb[_0x12679a(0x171)]?_0x273aee(this[_0x12679a(0x13f)][_0x12679a(0x123)],_0x12679a(0x108)):_0x5c13cb[_0x12679a(0x15f)]?_0x273aee(this[_0x12679a(0x13f)][_0x12679a(0x123)],_0x12679a(0x114)):_0x273aee(this[_0x12679a(0x13f)][_0x12679a(0x123)],_0x12679a(0x10f)):_0x273aee(this[_0x12679a(0x13f)][_0x12679a(0x123)],_0x12679a(0x10f));}[_0x4e3e1b(0x128)](_0x309970,_0x568191,_0x126a74,_0x51e21e){const _0x286f27=_0x4e3e1b;this[_0x286f27(0x137)][_0x286f27(0x128)](_0x309970,_0x568191,_0x126a74,_0x51e21e);}[_0x4e3e1b(0x170)](_0x22dfaf){const _0x366f95=_0x4e3e1b;this[_0x366f95(0x137)][_0x366f95(0x170)](_0x22dfaf);}[_0x4e3e1b(0x106)](){const _0x88f428=_0x4e3e1b;this[_0x88f428(0x137)][_0x88f428(0x189)][_0x88f428(0x106)]();}[_0x4e3e1b(0x181)](_0x37a626,_0x2a32de){const _0x3e0171=_0x4e3e1b;this[_0x3e0171(0x137)][_0x3e0171(0x1a2)][_0x3e0171(0x17a)](_0x37a626,_0x2a32de);}[_0x4e3e1b(0x117)](){const _0x13165=_0x4e3e1b;this[_0x13165(0x137)][_0x13165(0x1a2)][_0x13165(0x117)]();}[_0x4e3e1b(0x17c)](){const _0x2c87d2=_0x4e3e1b;this[_0x2c87d2(0x137)][_0x2c87d2(0x189)][_0x2c87d2(0x140)]=!0x0;}[_0x4e3e1b(0x16d)](){const _0x3b6677=_0x4e3e1b;this[_0x3b6677(0x137)][_0x3b6677(0x189)][_0x3b6677(0x140)]=!0x1;}}
23
+ const _0x1807d3=_0x27bc;(function(_0x40e89b,_0x2c5a09){const _0x4c38bf=_0x27bc,_0x1527ad=_0x40e89b();while(!![]){try{const _0x331584=parseInt(_0x4c38bf(0x1d3))/0x1*(-parseInt(_0x4c38bf(0x1f8))/0x2)+-parseInt(_0x4c38bf(0x19d))/0x3+-parseInt(_0x4c38bf(0x1a6))/0x4*(-parseInt(_0x4c38bf(0x18b))/0x5)+-parseInt(_0x4c38bf(0x1aa))/0x6*(parseInt(_0x4c38bf(0x1a9))/0x7)+-parseInt(_0x4c38bf(0x1b7))/0x8*(-parseInt(_0x4c38bf(0x1a4))/0x9)+-parseInt(_0x4c38bf(0x182))/0xa*(-parseInt(_0x4c38bf(0x178))/0xb)+parseInt(_0x4c38bf(0x16b))/0xc*(parseInt(_0x4c38bf(0x197))/0xd);if(_0x331584===_0x2c5a09)break;else _0x1527ad['push'](_0x1527ad['shift']());}catch(_0x219e0e){_0x1527ad['push'](_0x1527ad['shift']());}}}(_0x4f83,0xec7ec));function _0x27bc(_0x3138a6,_0x1e4748){const _0x4f830d=_0x4f83();return _0x27bc=function(_0x27bc0b,_0x2c2112){_0x27bc0b=_0x27bc0b-0x15b;let _0x250869=_0x4f830d[_0x27bc0b];return _0x250869;},_0x27bc(_0x3138a6,_0x1e4748);}import{ContextPlugin as _0x4f789c}from'ckeditor5/src/core.js';function _0x4f83(){const _0x31900e=['values','ai-reply','config','renderingStrategy','addFeedItemAIReply','1755XkLjnf','removeFeedInteraction','addFeedItemUserMessage','bind','children','label','1818693vhkqWJ','set','setAddContextOptions','updateFeedItemAIReplyContent','setConversationContext','remove','setFeedItemRenderingStrategy','2595087cLKWHC','delegate','16AIJpsI','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','isTrackChangesOn','1351dnkgoH','30846RIzRXX','updateResourceState','feedItemRenderingStrategy','isPremiumPlugin','addFeedItemStaticMessage','disableControls','then','quickActionData','scrollFeedToSuggestion','finishInteraction','removeContextItem','chat','_titleAnimationInterval','24untnOa','availableModels','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','_interactionPromiseResolver','trackChanges','startsWith','from','ai.availableReplyActions','get','ai.chat.context.searchInputVisibleFrom','has','isWebSearchEnabled','populateSourceResourceBalloon','<p>','getItemIds','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','enableControls','capabilities','toggleLoadingSkeleton','updateFeedInteractionHeader','setConversationTitle','plugins','updateWebSources','interaction-header','scrollToSuggestion','stopInteraction','setModelList','abort','1803spFyKy','setIsMaximized','resetMessageInput','AI_CHAT_WELCOME_MESSAGE','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','addItem','AITabs','setSelectedModel','setWebSearch','_isTrackChangesCommandValueBound','userMessage','stopAutoScroll','clearPendingContextUI','queueEmptyPromise','isDone','_getLoadingMessage','AI_CHAT_HEADING','showDiff','clear','filter','closeSourceResourceBalloon','updateSuggestionItem','updateFeedItemAIReplySources','setIsUploadInProgress','isMaximized','isReasoningEnabled','removeItem','updateFeedItemAIReplySuggestionPartState','addContextItem','setLoadingMessage','updateCapabilities','isPending','setInputPlaceholder','addTab','updateSuggestionPartState','_view','conversation-start','526zKQVnj','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','error-message','markFeedItemAsDone','setReasoning','commands','addFeedInteractionHeader','context','locale','streaming','startInteraction','</p>','startAutoScroll','chatFeed','contextItems','isDisabled','insertSuggestion','setModel','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','showResizeButton','_promiseQueue','isBusy','find','isModelAvailable','requires','updateFeedItemAIReplySuggestionContent','isOfficialPlugin','isLoading','TrackChanges','156804UpPbrm','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','length','chatHeader','_animateConversationTitle','value','createConversation','addFeedItemError','displayedPrompt','destroy','isVisible','toggleSuggestionDisplayMode','setContextItemLoading','11YxtyVj','ai.chat.models.modelSelectorAlwaysVisible','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','forEach','interactionId','enqueue','pluginName','last','ai-suggestion-reply','focusPromptInput','1486470YoqoMA','options','user-message','enableModelSelector','addFeedItemAISuggestion','disableModelSelector','view','clearConversationContextUI','markItemAsDone','329495oEzJhJ','_getInputPlaceholder','resetConversationTitle','chatControls','AIChatUI','areActionsDisabled','updateReplyItem'];_0x4f83=function(){return _0x31900e;};return _0x4f83();}import{_isMotionReduced as _0x5590a9}from'ckeditor5/src/utils.js';import{AIChatView as _0x1e16dd}from'./ui/aichatview.js';import{AITabs as _0x593e23}from'../aitabs/aitabs.js';import{getTranslation as _0x5e3552}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x404cc6}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x166a63}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0x4bed5d}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0x10d2d3}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';import{getEditorFromContext as _0x2d77b1}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x227b5a}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIChatUI extends _0x4f789c{static get[_0x1807d3(0x166)](){return[_0x593e23];}[_0x1807d3(0x1f6)];static get[_0x1807d3(0x17e)](){const _0xd52e63=_0x1807d3;return _0xd52e63(0x18f);}static get[_0x1807d3(0x168)](){return!0x0;}static get[_0x1807d3(0x1ad)](){return!0x0;}[_0x1807d3(0x1ac)]=_0x1807d3(0x201);[_0x1807d3(0x1e4)]=!0x0;[_0x1807d3(0x162)];[_0x1807d3(0x1ba)];[_0x1807d3(0x1b6)]=void 0x0;[_0x1807d3(0x1dc)]=!0x1;constructor(_0x706920){const _0x375a4a=_0x1807d3;super(_0x706920);const _0x2376b3=this[_0x375a4a(0x1ff)][_0x375a4a(0x1cc)][_0x375a4a(0x1bf)](_0x375a4a(0x1d9));this[_0x375a4a(0x19e)](_0x375a4a(0x163),!0x1),this[_0x375a4a(0x162)]=new _0x4bed5d(),this[_0x375a4a(0x1f6)]=new _0x1e16dd(this[_0x375a4a(0x1ff)][_0x375a4a(0x200)],{'showResizeButton':_0x2376b3[_0x375a4a(0x161)],'contextResourcesSearchInputVisibleFrom':this[_0x375a4a(0x1ff)][_0x375a4a(0x194)][_0x375a4a(0x1bf)](_0x375a4a(0x1c0))}),this[_0x375a4a(0x1f6)][_0x375a4a(0x1a5)](..._0x10d2d3)['to'](this),this[_0x375a4a(0x1f6)]['on'](_0x375a4a(0x176),(_0x3049c4,{showDiff:_0x34f5d5})=>{const _0xb66690=_0x375a4a;this[_0xb66690(0x1e4)]=_0x34f5d5;}),_0x2376b3[_0x375a4a(0x188)][_0x375a4a(0x1f4)]({'id':_0x375a4a(0x1b5),'buttonLabel':_0x5e3552(this[_0x375a4a(0x1ff)][_0x375a4a(0x200)],_0x375a4a(0x1e3)),'buttonIcon':_0x404cc6,'order':0x0,'content':this[_0x375a4a(0x1f6)]}),this[_0x375a4a(0x1f6)][_0x375a4a(0x18e)][_0x375a4a(0x19a)](_0x375a4a(0x169))['to'](this,_0x375a4a(0x163),_0x15f878=>_0x15f878),this[_0x375a4a(0x1f6)][_0x375a4a(0x15b)][_0x375a4a(0x19a)](_0x375a4a(0x1f2))['to'](this,_0x375a4a(0x163),_0x5bcaff=>_0x5bcaff),this[_0x375a4a(0x1f6)][_0x375a4a(0x18e)][_0x375a4a(0x1f3)](this[_0x375a4a(0x18c)]()),this[_0x375a4a(0x19a)](_0x375a4a(0x165))['to'](this[_0x375a4a(0x1f6)][_0x375a4a(0x18e)],_0x375a4a(0x165));}[_0x1807d3(0x174)](){const _0x51116b=_0x1807d3;super[_0x51116b(0x174)](),this[_0x51116b(0x1b6)]&&clearInterval(this[_0x51116b(0x1b6)]);}[_0x1807d3(0x171)](_0x3fba12){const _0x9a2ccb=_0x1807d3;this[_0x9a2ccb(0x1f6)][_0x9a2ccb(0x15b)][_0x9a2ccb(0x1e5)](),this[_0x9a2ccb(0x1f6)][_0x9a2ccb(0x18e)][_0x9a2ccb(0x185)](),this[_0x9a2ccb(0x1f6)][_0x9a2ccb(0x18e)][_0x9a2ccb(0x1d1)](_0x3fba12[_0x9a2ccb(0x1b8)],!this[_0x9a2ccb(0x1ff)][_0x9a2ccb(0x194)][_0x9a2ccb(0x1bf)](_0x9a2ccb(0x179))),this[_0x9a2ccb(0x1ae)]({'id':_0x9a2ccb(0x1f7),'staticMessage':_0x5e3552(this[_0x9a2ccb(0x1ff)][_0x9a2ccb(0x200)],_0x9a2ccb(0x1d6))});}[_0x1807d3(0x1ae)]({id:_0x3dcd78,staticMessage:_0x50c650}){const _0x57adda=_0x1807d3;this[_0x57adda(0x1f6)][_0x57adda(0x15b)][_0x57adda(0x1d8)](_0x57adda(0x193),{'id':_0x3dcd78,'initialContent':_0x57adda(0x1c4)+_0x50c650+_0x57adda(0x203)});}[_0x1807d3(0x199)](_0x505788){const _0x1ac608=_0x1807d3,_0x1398b3=_0x505788[_0x1ac608(0x1b1)]?.[_0x1ac608(0x173)]||_0x505788[_0x1ac608(0x1dd)];this[_0x1ac608(0x1f6)][_0x1ac608(0x15b)][_0x1ac608(0x1d8)](_0x1ac608(0x184),{'contextItems':Array[_0x1ac608(0x1bd)](_0x505788[_0x1ac608(0x15c)][_0x1ac608(0x192)]()),'initialContent':_0x1ac608(0x1c4)+_0x1398b3+_0x1ac608(0x203),'id':_0x505788['id']});}[_0x1807d3(0x172)]({errorMessage:_0x3e87cb,id:_0x299b1f}){const _0xce0357=_0x1807d3;this[_0xce0357(0x1f6)][_0xce0357(0x15b)][_0xce0357(0x1d8)](_0xce0357(0x1fa),{'initialContent':_0xce0357(0x1c4)+_0x3e87cb+_0xce0357(0x203),'id':_0x299b1f});}[_0x1807d3(0x196)](_0x272a20){const _0x507e55=_0x1807d3;return this[_0x507e55(0x162)][_0x507e55(0x17d)](async()=>{const _0x15b5ac=_0x507e55;this[_0x15b5ac(0x1f6)][_0x15b5ac(0x15b)][_0x15b5ac(0x1d8)](_0x15b5ac(0x193),{'id':_0x272a20[_0x15b5ac(0x17c)]+':'+_0x272a20['id']}),this[_0x15b5ac(0x1f0)](null);});}async[_0x1807d3(0x186)](_0x38f59c){const _0x5806aa=_0x1807d3,_0x497232=_0x2d77b1(this[_0x5806aa(0x1ff)]);let _0x23b9f0=_0x497232[_0x5806aa(0x194)][_0x5806aa(0x1bf)](_0x5806aa(0x1be))||[..._0x227b5a];if(_0x497232[_0x5806aa(0x1cc)][_0x5806aa(0x1c1)](_0x5806aa(0x16a))){if(!this[_0x5806aa(0x1dc)]){this[_0x5806aa(0x1dc)]=!0x0;const _0x3788b1=_0x497232[_0x5806aa(0x1fd)][_0x5806aa(0x1bf)](_0x5806aa(0x1bb));this[_0x5806aa(0x1f6)][_0x5806aa(0x15b)][_0x5806aa(0x19a)](_0x5806aa(0x1a8))['to'](_0x3788b1,_0x5806aa(0x170));}}else _0x23b9f0=_0x23b9f0[_0x5806aa(0x1e6)](_0x22d59c=>_0x5806aa(0x15e)!=_0x22d59c);return this[_0x5806aa(0x162)][_0x5806aa(0x17d)](async()=>{const _0x577e2a=_0x5806aa;this[_0x577e2a(0x1f6)][_0x577e2a(0x15b)][_0x577e2a(0x1d8)](_0x577e2a(0x180),{'id':_0x38f59c[_0x577e2a(0x17c)]+':'+_0x38f59c['id'],'areActionsDisabled':_0x38f59c[_0x577e2a(0x190)],'showDiff':this[_0x577e2a(0x1e4)],'availableActions':_0x23b9f0}),this[_0x577e2a(0x1f0)](null);});}[_0x1807d3(0x1fe)](_0x17a1f7,_0x4dda68){const _0x260f4e=_0x1807d3,_0x37444e=this[_0x260f4e(0x1f6)][_0x260f4e(0x15b)][_0x260f4e(0x19b)][_0x260f4e(0x17f)];if(_0x37444e instanceof _0x166a63)return this[_0x260f4e(0x1f6)][_0x260f4e(0x15b)][_0x260f4e(0x19b)][_0x260f4e(0x1a2)](_0x37444e),void this[_0x260f4e(0x1f6)][_0x260f4e(0x15b)][_0x260f4e(0x1d8)](_0x260f4e(0x1ce),{'id':_0x17a1f7['id'],'capabilities':{'isWebSearchEnabled':_0x37444e[_0x260f4e(0x1c8)][_0x260f4e(0x1c2)]||_0x4dda68[_0x260f4e(0x1c2)],'isReasoningEnabled':_0x37444e[_0x260f4e(0x1c8)][_0x260f4e(0x1ec)]||_0x4dda68[_0x260f4e(0x1ec)]}});this[_0x260f4e(0x1f6)][_0x260f4e(0x15b)][_0x260f4e(0x1d8)](_0x260f4e(0x1ce),{'id':_0x17a1f7['id'],'capabilities':_0x4dda68});}[_0x1807d3(0x1ca)](_0x16591c){const _0x104002=_0x1807d3,_0x264785=this[_0x104002(0x1f6)][_0x104002(0x15b)][_0x104002(0x19b)][_0x104002(0x164)](_0x27e608=>_0x27e608[_0x104002(0x183)]['id']==_0x16591c['id']&&_0x27e608 instanceof _0x166a63);_0x264785&&_0x264785[_0x104002(0x19e)](_0x104002(0x175),_0x16591c[_0x104002(0x175)]);}async[_0x1807d3(0x1a0)](_0x3aa59b){const _0x50f851=_0x1807d3,_0x4ed44d=_0x3aa59b[_0x50f851(0x195)]||this[_0x50f851(0x1ac)];return this[_0x50f851(0x162)][_0x50f851(0x17d)](async _0xf8bf5e=>{const _0x237d0e=_0x50f851;await this[_0x237d0e(0x1f6)][_0x237d0e(0x15b)][_0x237d0e(0x191)]({..._0x3aa59b,'abortSignal':_0xf8bf5e,'renderingStrategy':_0x4ed44d}),_0x3aa59b[_0x237d0e(0x1e1)]&&this[_0x237d0e(0x1fb)](_0x3aa59b['id']);});}[_0x1807d3(0x1e9)](_0x4022d0,_0x411d98){const _0x1168ec=_0x1807d3;this[_0x1168ec(0x1f6)][_0x1168ec(0x15b)][_0x1168ec(0x1cd)](_0x4022d0,_0x411d98);}async[_0x1807d3(0x167)](_0x3e5f72){const _0x5398d3=_0x1807d3,_0x132e81=_0x3e5f72[_0x5398d3(0x195)]||this[_0x5398d3(0x1ac)];return this[_0x5398d3(0x162)][_0x5398d3(0x17d)](async _0x4b1927=>{const _0x5ed6d6=_0x5398d3;await this[_0x5ed6d6(0x1f6)][_0x5ed6d6(0x15b)][_0x5ed6d6(0x1e8)]({..._0x3e5f72,'abortSignal':_0x4b1927,'renderingStrategy':_0x132e81}),_0x3e5f72[_0x5ed6d6(0x1e1)]&&this[_0x5ed6d6(0x1fb)](_0x3e5f72['id']);});}[_0x1807d3(0x1ee)](_0x518368){const _0x1edbdc=_0x1807d3;this[_0x1edbdc(0x1f6)][_0x1edbdc(0x15b)][_0x1edbdc(0x1f5)](_0x518368);}[_0x1807d3(0x1fb)](_0x508abd){const _0x50571e=_0x1807d3;this[_0x50571e(0x1f6)][_0x50571e(0x15b)][_0x50571e(0x18a)](_0x508abd);}[_0x1807d3(0x198)](_0x27e850){const _0x4b4a48=_0x1807d3;this[_0x4b4a48(0x1f6)][_0x4b4a48(0x15b)][_0x4b4a48(0x1c5)]()[_0x4b4a48(0x1e6)](_0x3c264a=>_0x3c264a[_0x4b4a48(0x1bc)](_0x27e850))[_0x4b4a48(0x17b)](_0x218490=>this[_0x4b4a48(0x1f6)][_0x4b4a48(0x15b)][_0x4b4a48(0x1ed)](_0x218490));}[_0x1807d3(0x202)](){const _0x520151=_0x1807d3;this[_0x520151(0x1f0)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1}),this[_0x520151(0x1f6)][_0x520151(0x18e)][_0x520151(0x187)](!this[_0x520151(0x1ff)][_0x520151(0x194)][_0x520151(0x1bf)](_0x520151(0x179))),this[_0x520151(0x163)]=!0x0,this[_0x520151(0x1f6)][_0x520151(0x15b)][_0x520151(0x204)]();}[_0x1807d3(0x1d0)](_0x232b8a){const _0x3701df=_0x1807d3;this[_0x3701df(0x162)][_0x3701df(0x1d2)](),this[_0x3701df(0x1f6)][_0x3701df(0x15b)][_0x3701df(0x1c5)]()[_0x3701df(0x1e6)](_0x5401c6=>_0x5401c6[_0x3701df(0x1bc)](_0x232b8a['id']))[_0x3701df(0x17b)](_0x5eb2c7=>this[_0x3701df(0x1fb)](_0x5eb2c7)),this[_0x3701df(0x163)]=!0x1,this[_0x3701df(0x1f6)][_0x3701df(0x15b)][_0x3701df(0x1de)]();}async[_0x1807d3(0x1b3)](){const _0x1f81c0=_0x1807d3;return this[_0x1f81c0(0x162)][_0x1f81c0(0x1e0)][_0x1f81c0(0x1b0)](()=>{const _0x5a7497=_0x1f81c0;this[_0x5a7497(0x163)]=!0x1,this[_0x5a7497(0x1f6)][_0x5a7497(0x15b)][_0x5a7497(0x1de)]();});}[_0x1807d3(0x1ef)](_0xe5a457,_0x4022af){const _0x159425=_0x1807d3;this[_0x159425(0x1f6)][_0x159425(0x18e)][_0x159425(0x1ef)](_0xe5a457,_0x4022af);}[_0x1807d3(0x1b4)](_0x2645b3){const _0x56484a=_0x1807d3;this[_0x56484a(0x1f6)][_0x56484a(0x18e)][_0x56484a(0x1b4)](_0x2645b3);}[_0x1807d3(0x177)](_0x2442a4,_0x2e9a24){const _0x3162af=_0x1807d3;this[_0x3162af(0x1f6)][_0x3162af(0x18e)][_0x3162af(0x177)](_0x2442a4,_0x2e9a24);}[_0x1807d3(0x1ea)](_0x2f75db){const _0x260db9=_0x1807d3;this[_0x260db9(0x1f6)][_0x260db9(0x18e)][_0x260db9(0x1ea)](_0x2f75db);}[_0x1807d3(0x1a1)](_0x3eebd1){const _0x3a683f=_0x1807d3;this[_0x3a683f(0x1f6)][_0x3a683f(0x18e)][_0x3a683f(0x1a1)](_0x3eebd1);}[_0x1807d3(0x1df)](){const _0x30c98a=_0x1807d3;this[_0x30c98a(0x1f6)][_0x30c98a(0x18e)][_0x30c98a(0x1df)]();}[_0x1807d3(0x189)](){const _0x34327f=_0x1807d3;this[_0x34327f(0x1f6)][_0x34327f(0x18e)][_0x34327f(0x189)]();}[_0x1807d3(0x1ab)](_0xdf9f1a,_0x1fcbda,_0x2765b2){const _0x43a952=_0x1807d3;this[_0x43a952(0x1f6)][_0x43a952(0x18e)][_0x43a952(0x1ab)](_0xdf9f1a,_0x1fcbda,_0x2765b2);}[_0x1807d3(0x1d5)](){const _0x2da1d2=_0x1807d3;this[_0x2da1d2(0x1f6)][_0x2da1d2(0x18e)][_0x2da1d2(0x1d5)](),this[_0x2da1d2(0x1f6)][_0x2da1d2(0x18e)][_0x2da1d2(0x1f3)](this[_0x2da1d2(0x18c)]());}[_0x1807d3(0x19f)](_0x3339c8){const _0x51247c=_0x1807d3;this[_0x51247c(0x1f6)][_0x51247c(0x18e)][_0x51247c(0x19f)](_0x3339c8);}[_0x1807d3(0x1f1)](_0x12d091){const _0x3658a3=_0x1807d3;this[_0x3658a3(0x1f6)][_0x3658a3(0x18e)][_0x3658a3(0x1db)](_0x12d091[_0x3658a3(0x1c2)]),this[_0x3658a3(0x1f6)][_0x3658a3(0x18e)][_0x3658a3(0x1fc)](_0x12d091[_0x3658a3(0x1ec)]),this[_0x3658a3(0x1f6)][_0x3658a3(0x18e)][_0x3658a3(0x1f3)](this[_0x3658a3(0x18c)](_0x12d091));}[_0x1807d3(0x1da)](_0x1b9d86,_0x4c0cf9){const _0x5e0d54=_0x1807d3;this[_0x5e0d54(0x1f6)][_0x5e0d54(0x18e)][_0x5e0d54(0x15f)](_0x1b9d86),_0x4c0cf9&&this[_0x5e0d54(0x1f6)][_0x5e0d54(0x18e)][_0x5e0d54(0x187)](!0x1);}[_0x1807d3(0x1a3)](_0x31a723){const _0x1939a8=_0x1807d3;this[_0x1939a8(0x1ac)]=_0x31a723;}[_0x1807d3(0x1c9)](_0xe13583){const _0x11ccb6=_0x1807d3;this[_0x11ccb6(0x1f6)][_0x11ccb6(0x15b)][_0x11ccb6(0x1c9)](_0xe13583);}[_0x1807d3(0x18d)](){const _0x2d83f0=_0x1807d3;this[_0x2d83f0(0x1cb)](_0x5e3552(this[_0x2d83f0(0x1ff)][_0x2d83f0(0x200)],_0x2d83f0(0x1e3)));}[_0x1807d3(0x1cb)](_0x2cc5d0,_0x460ab8=!0x1){const _0x1f1ed2=_0x1807d3;if(_0x460ab8&&!_0x5590a9()&&_0x2cc5d0[_0x1f1ed2(0x16d)])return this[_0x1f1ed2(0x1f6)][_0x1f1ed2(0x16e)][_0x1f1ed2(0x19c)]='',void this[_0x1f1ed2(0x16f)](_0x2cc5d0);this[_0x1f1ed2(0x1f6)][_0x1f1ed2(0x16e)][_0x1f1ed2(0x19c)]=_0x2cc5d0;}[_0x1807d3(0x1f0)](_0x3cb9ff){const _0x1f62d4=_0x1807d3,_0x5a3955=this[_0x1f62d4(0x1e2)](_0x3cb9ff);this[_0x1f62d4(0x1f6)][_0x1f62d4(0x15b)][_0x1f62d4(0x1f0)](_0x5a3955);}[_0x1807d3(0x16f)](_0x2138b6){const _0x4302fd=_0x1807d3;let _0x293f4b=0x0;clearInterval(this[_0x4302fd(0x1b6)]),this[_0x4302fd(0x1b6)]=setInterval(()=>{const _0x229bc2=_0x4302fd;this[_0x229bc2(0x1f6)][_0x229bc2(0x16e)][_0x229bc2(0x19c)]=this[_0x229bc2(0x1f6)][_0x229bc2(0x16e)][_0x229bc2(0x19c)]+_0x2138b6[_0x293f4b],_0x293f4b++,_0x293f4b===_0x2138b6[_0x229bc2(0x16d)]&&clearInterval(this[_0x229bc2(0x1b6)]);},0x1e);}[_0x1807d3(0x1d4)](_0x25ddd4){const _0x410cb8=_0x1807d3;this[_0x410cb8(0x1f6)][_0x410cb8(0x16e)][_0x410cb8(0x1eb)]=_0x25ddd4;}[_0x1807d3(0x1e2)](_0x9b3461){const _0xc6d140=_0x1807d3;return _0x9b3461?_0x9b3461[_0xc6d140(0x1c2)]&&_0x9b3461[_0xc6d140(0x1ec)]?_0x5e3552(this[_0xc6d140(0x1ff)][_0xc6d140(0x200)],_0xc6d140(0x160)):_0x9b3461[_0xc6d140(0x1c2)]?_0x5e3552(this[_0xc6d140(0x1ff)][_0xc6d140(0x200)],_0xc6d140(0x1f9)):_0x9b3461[_0xc6d140(0x1ec)]?_0x5e3552(this[_0xc6d140(0x1ff)][_0xc6d140(0x200)],_0xc6d140(0x1b9)):_0x5e3552(this[_0xc6d140(0x1ff)][_0xc6d140(0x200)],_0xc6d140(0x1c6)):'';}[_0x1807d3(0x18c)](_0x13f448){const _0x16503b=_0x1807d3;return _0x13f448?_0x13f448[_0x16503b(0x1c2)]&&_0x13f448[_0x16503b(0x1ec)]?_0x5e3552(this[_0x16503b(0x1ff)][_0x16503b(0x200)],_0x16503b(0x17a)):_0x13f448[_0x16503b(0x1c2)]?_0x5e3552(this[_0x16503b(0x1ff)][_0x16503b(0x200)],_0x16503b(0x1d7)):_0x13f448[_0x16503b(0x1ec)]?_0x5e3552(this[_0x16503b(0x1ff)][_0x16503b(0x200)],_0x16503b(0x16c)):_0x5e3552(this[_0x16503b(0x1ff)][_0x16503b(0x200)],_0x16503b(0x1a7)):_0x5e3552(this[_0x16503b(0x1ff)][_0x16503b(0x200)],_0x16503b(0x1a7));}[_0x1807d3(0x1c3)](_0x2ce0bf,_0x15a86d,_0x5a2ba2,_0x170b50){const _0x3845ae=_0x1807d3;this[_0x3845ae(0x1f6)][_0x3845ae(0x1c3)](_0x2ce0bf,_0x15a86d,_0x5a2ba2,_0x170b50);}[_0x1807d3(0x1e7)](_0x15761b){const _0x320fa3=_0x1807d3;this[_0x320fa3(0x1f6)][_0x320fa3(0x1e7)](_0x15761b);}[_0x1807d3(0x181)](){const _0x3c3a08=_0x1807d3;this[_0x3c3a08(0x1f6)][_0x3c3a08(0x18e)][_0x3c3a08(0x181)]();}[_0x1807d3(0x1b2)](_0x1f26e8,_0x6d0fa7){const _0xad116f=_0x1807d3;this[_0xad116f(0x1f6)][_0xad116f(0x15b)][_0xad116f(0x1cf)](_0x1f26e8,_0x6d0fa7);}[_0x1807d3(0x204)](){const _0x3abcd2=_0x1807d3;this[_0x3abcd2(0x1f6)][_0x3abcd2(0x15b)][_0x3abcd2(0x204)]();}[_0x1807d3(0x1af)](){const _0x33d305=_0x1807d3;this[_0x33d305(0x1f6)][_0x33d305(0x18e)][_0x33d305(0x15d)]=!0x0;}[_0x1807d3(0x1c7)](){const _0x1ca2aa=_0x1807d3;this[_0x1ca2aa(0x1f6)][_0x1ca2aa(0x18e)][_0x1ca2aa(0x15d)]=!0x1;}}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  import { type AIConnector, type AIUserMessage } from '../../aicore/aiconnector.js';
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x59bc08=_0x177f;(function(_0x12550a,_0x5a3f07){const _0x5bdbc4=_0x177f,_0x21c794=_0x12550a();while(!![]){try{const _0x5f5187=parseInt(_0x5bdbc4(0x1f2))/0x1*(-parseInt(_0x5bdbc4(0x22c))/0x2)+-parseInt(_0x5bdbc4(0x201))/0x3+parseInt(_0x5bdbc4(0x230))/0x4*(-parseInt(_0x5bdbc4(0x1ca))/0x5)+parseInt(_0x5bdbc4(0x219))/0x6+-parseInt(_0x5bdbc4(0x1fe))/0x7*(parseInt(_0x5bdbc4(0x1b4))/0x8)+parseInt(_0x5bdbc4(0x232))/0x9+parseInt(_0x5bdbc4(0x220))/0xa*(parseInt(_0x5bdbc4(0x231))/0xb);if(_0x5f5187===_0x5a3f07)break;else _0x21c794['push'](_0x21c794['shift']());}catch(_0x20fda5){_0x21c794['push'](_0x21c794['shift']());}}}(_0x1c15,0x57bef));import{CKEditorError as _0x5ebcea,ObservableMixin as _0x29ad64,uid as _0xe945a3}from'ckeditor5/src/utils.js';import{AIContextItemType as _0xd267e,AIContextTextResourceType as _0x3f6228}from'../../aicore/model/aicontext.js';function _0x1c15(){const _0x5581b7=['1341170JneyRM','MARKDOWN','object','File','DOCUMENT','_toggleAddCurrentDocumentOptionVisibility','text/html','getPendingContextItems','_ongoingUploads','URL','ai-chat-resource-no-data','ai-chat-resource-load-failed','158vwBeEw','_ongoingUploadOperations','uploadUrl','loadSourceResources','4XKCrXW','121bzPwny','891405FUyVWm','ai-chat-file-upload-failed','enabled','sessionId','set','abortController','isInContext','delete','current-document','isHidden','start','addContextOptionsChanged','resourceId','type','addToConversationContext','uploadFile','TEXT','_conversationContextItems','168tDiKgv','getData','updateCurrentDocument','_removeContextItem','_finishUploadOperation','hidden','addUrlToContext','getSentContextItems','sources','map','ai-request-aborted','addResourceToContext','data','_pendingContextItems','message','isSelectionInContext','removeFromContext','all','FILE','getId','stack','sourceResourcesLoaded','3337645UEWRWi','end','_updateResourceInContextState','ai-chat-source-not-found','length','error','_getCustomSourcesInitialState','has','addFilesToContext','_convertTextResourceToFile','contextItemLoadingEnded','file-','ai-chat-url-upload-failed','urls','_finishContextItemLoading','text/markdown','clearPendingContextItems','contextItemAdded','ai-chat-context-unsupported-type','fetchDocument','isCurrentDocumentInContext','getDocument','_ownerId','uploadDocument','string','values','size','_connector','resources','object\x20with\x20content\x20and\x20type\x20properties','_addToConversationContextItem','contextSent','_mapContextItemToRequestData','text/plain','ai-chat-source-resources-load-failed','uiId','resourceStateChanged','content','files-','ai-chat-context-invalid-data','3959vqwEZL','_findSourceIdsByResourceId','init','isCurrentDocumentInConversation','ai-chat-document-upload-failed','isReadOnly','url','push','version','_addContextOptionsState','uploadProgressChanged','addCurrentDocumentToContext','181895CzefYm','name','attributes','869400utkwwy','getResources','document','Current\x20document','label','code','_isResourceInContext','mapContextItemsToRequestData','contextItemRemoved','files','get','HTML','startsWith','_addContextItem','_config','addSelectionToContext','from','selection','abort','SELECTION','_setAddContextOptionsDefaultState','_startUploadOperation','populateFromMessage','removeSelectionFromContext','3605100PHhhDh','filter','url-','_createContextItemFromContent','fire','find','forEach'];_0x1c15=function(){return _0x5581b7;};return _0x1c15();}import{escape as _0x1d2d32}from'es-toolkit/compat';import{errorsMap as _0x54bba8}from'../../errorsmap.js';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x59bc08(0x1db),_0x59bc08(0x209),_0x59bc08(0x1d4),_0x59bc08(0x1e9),_0x59bc08(0x1cf),_0x59bc08(0x23d),_0x59bc08(0x1c9),_0x59bc08(0x1ee),_0x59bc08(0x1fc)];function _0x177f(_0x2f6272,_0x216c4d){const _0x1c157b=_0x1c15();return _0x177f=function(_0x177f0f,_0x915992){_0x177f0f=_0x177f0f-0x1af;let _0x51e6b3=_0x1c157b[_0x177f0f];return _0x51e6b3;},_0x177f(_0x2f6272,_0x216c4d);}export class AIChatContext extends _0x29ad64(){[_0x59bc08(0x1e5)];[_0x59bc08(0x20f)];[_0x59bc08(0x1e0)];constructor({connector:_0x2fec8a,config:_0x53a5b5,ownerId:_0x48331f}){const _0x344e2a=_0x59bc08;super(),this[_0x344e2a(0x1e5)]=_0x2fec8a,this[_0x344e2a(0x20f)]=_0x53a5b5,this[_0x344e2a(0x1e0)]=_0x48331f;}[_0x59bc08(0x1f4)](){const _0x497786=_0x59bc08;this[_0x497786(0x1c1)]=new Map(),this[_0x497786(0x1b3)]=new Map(),this[_0x497786(0x228)]=new Map(),this[_0x497786(0x22d)]=new Map(),this[_0x497786(0x215)]();}[_0x59bc08(0x227)](){const _0x8b2d81=_0x59bc08;return this[_0x8b2d81(0x1c1)];}async[_0x59bc08(0x217)](_0x456819){const _0x40b04b=_0x59bc08,_0x19f2ba=await this[_0x40b04b(0x21c)](_0x456819);return this[_0x40b04b(0x1e8)](_0x19f2ba),_0x40b04b(0x23a)===_0x19f2ba[_0x40b04b(0x1ed)]&&this[_0x40b04b(0x225)](),_0x19f2ba;}async[_0x59bc08(0x21c)](_0x8a19c4){const _0x3a3d31=_0x59bc08;if(_0x8a19c4[_0x3a3d31(0x1af)]===_0xd267e[_0x3a3d31(0x224)]){const _0x394d7a=await this[_0x3a3d31(0x1e5)][_0x3a3d31(0x1dd)](this[_0x3a3d31(0x1e0)],_0x8a19c4['id'])[_0x3a3d31(0x1df)]();return{'id':_0x3a3d31(0x23a),'uiId':_0x3a3d31(0x23a),'label':_0x3a3d31(0x204),'type':_0x8a19c4[_0x3a3d31(0x1af)],'content':_0x394d7a[_0x3a3d31(0x1ef)],'hidden':this[_0x3a3d31(0x1b3)][_0x3a3d31(0x1d1)](_0x3a3d31(0x23a)),'version':_0x394d7a[_0x3a3d31(0x200)]?.[_0x3a3d31(0x1fa)],'sessionId':_0x394d7a[_0x3a3d31(0x200)]?.[_0x3a3d31(0x235)]};}return{'id':_0x8a19c4['id'],'uiId':_0x8a19c4['id'],'label':_0x8a19c4[_0x3a3d31(0x200)]?.[_0x3a3d31(0x205)]||_0x8a19c4[_0x3a3d31(0x1ff)]||_0x8a19c4[_0x3a3d31(0x1f8)]||_0x8a19c4['id'],'type':_0x8a19c4[_0x3a3d31(0x1af)],..._0x8a19c4?.[_0x3a3d31(0x200)]?.[_0x3a3d31(0x23e)]?{'resourceId':_0x8a19c4[_0x3a3d31(0x200)]?.[_0x3a3d31(0x23e)]}:{}};}[_0x59bc08(0x1bb)](){const _0x3a4d9d=_0x59bc08;return new Map(this[_0x3a4d9d(0x1b3)]);}[_0x59bc08(0x1c4)](_0x542e75){const _0x134f43=_0x59bc08,_0x5efb79=this[_0x134f43(0x1c1)][_0x134f43(0x20b)](_0x542e75);_0x5efb79?.[_0x134f43(0x1f7)]||this[_0x134f43(0x1b7)](_0x542e75);}[_0x59bc08(0x1da)](){const _0x4706f1=_0x59bc08;if(0x0===this[_0x4706f1(0x1c1)][_0x4706f1(0x1e4)])return;for(const _0x1b7bd4 of this[_0x4706f1(0x1c1)][_0x4706f1(0x1e3)]())this[_0x4706f1(0x1b7)](_0x1b7bd4[_0x4706f1(0x1ed)]);const _0xe79224=this[_0x4706f1(0x1b3)][_0x4706f1(0x20b)](_0x4706f1(0x23a))||this[_0x4706f1(0x1c1)][_0x4706f1(0x20b)](_0x4706f1(0x23a));_0xe79224&&this[_0x4706f1(0x20e)]({..._0xe79224,'isReadOnly':!0x0,'hidden':!0x0});}[_0x59bc08(0x1b0)](_0x1134de){const _0x350866=_0x59bc08;for(const _0x553ea2 of _0x1134de[_0x350866(0x1e3)]())this[_0x350866(0x1e8)](_0x553ea2);this[_0x350866(0x1da)](),this[_0x350866(0x21d)](_0x350866(0x1e9),{'contextItems':Array[_0x350866(0x211)](this[_0x350866(0x1bb)]()[_0x350866(0x1e3)]())});}[_0x59bc08(0x1de)](){const _0x272ec9=_0x59bc08;return this[_0x272ec9(0x1c1)][_0x272ec9(0x1d1)](_0x272ec9(0x23a));}[_0x59bc08(0x1c3)](){const _0x24399e=_0x59bc08;return this[_0x24399e(0x1c1)][_0x24399e(0x1d1)](_0x24399e(0x212));}[_0x59bc08(0x1f5)](){const _0x332537=_0x59bc08;return this[_0x332537(0x1b3)][_0x332537(0x1d1)](_0x332537(0x23a));}static[_0x59bc08(0x208)](_0x2202e3){const _0x5acf9d=_0x59bc08;return Array[_0x5acf9d(0x211)](_0x2202e3[_0x5acf9d(0x1e3)]())[_0x5acf9d(0x1bd)](_0x43cbbd=>this[_0x5acf9d(0x1ea)](_0x43cbbd))[_0x5acf9d(0x21a)](_0xd37df8=>null!==_0xd37df8);}async[_0x59bc08(0x1d2)](_0x2c9a2b,_0x50c9d0,_0x360237=_0xd267e[_0x59bc08(0x1c6)]){const _0x21aec5=_0x59bc08,_0x56ef0e=_0x21aec5(0x1f0)+_0xe945a3();this[_0x21aec5(0x216)](_0x56ef0e);try{await Promise[_0x21aec5(0x1c5)](_0x2c9a2b[_0x21aec5(0x1bd)](async _0x5deafc=>{const _0x3f0ea2=_0x21aec5,_0x191a4d=_0x3f0ea2(0x1d5)+_0xe945a3(),_0x3afb7e=_0x1d2d32(_0x5deafc[_0x3f0ea2(0x1ff)]);try{this[_0x3f0ea2(0x20e)]({'type':_0x360237,'label':_0x50c9d0?.[_0x3f0ea2(0x205)]||_0x3afb7e,'uiId':_0x191a4d,'resourceId':_0x50c9d0?.[_0x3f0ea2(0x23e)]},!0x0);const _0x3f43fb=this[_0x3f0ea2(0x1e5)][_0x3f0ea2(0x1b1)](this[_0x3f0ea2(0x1e0)],_0x5deafc,_0x50c9d0);this[_0x3f0ea2(0x228)][_0x3f0ea2(0x236)](_0x191a4d,_0x3f43fb[_0x3f0ea2(0x237)]);const {id:_0x3cd172}=await _0x3f43fb[_0x3f0ea2(0x1c7)]();this[_0x3f0ea2(0x228)][_0x3f0ea2(0x239)](_0x191a4d),this[_0x3f0ea2(0x1d8)]({'type':_0x360237,'id':_0x3cd172,'label':_0x50c9d0?.[_0x3f0ea2(0x205)]||_0x3afb7e,'uiId':_0x191a4d,'resourceId':_0x50c9d0?.[_0x3f0ea2(0x23e)]},!0x1);}catch(_0x5c377e){this[_0x3f0ea2(0x228)][_0x3f0ea2(0x239)](_0x191a4d);if(!(_0x5c377e instanceof _0x5ebcea&&_0x5c377e[_0x3f0ea2(0x1c2)][_0x3f0ea2(0x20d)](_0x3f0ea2(0x1be)))){const _0x16064c=_0x54bba8[_0x3f0ea2(0x20b)](_0x5c377e[_0x3f0ea2(0x206)])||_0x3f0ea2(0x233),_0x564014=new _0x5ebcea(_0x16064c,null,{'fileName':_0x3afb7e,..._0x5c377e});_0x564014[_0x3f0ea2(0x1c8)]=_0x5c377e[_0x3f0ea2(0x1c8)],this[_0x3f0ea2(0x21d)](_0x3f0ea2(0x1cf),{'error':_0x564014});}this[_0x3f0ea2(0x1b7)](_0x191a4d);}}));}finally{this[_0x21aec5(0x1b8)](_0x56ef0e);}}[_0x59bc08(0x1fd)](_0x9b5066){const _0x58d2f4=_0x59bc08;if(this[_0x58d2f4(0x1de)]())return;const _0x478705={'type':_0xd267e[_0x58d2f4(0x224)],'uiId':_0x58d2f4(0x23a),'label':_0x9b5066,'isReadOnly':this[_0x58d2f4(0x1b3)][_0x58d2f4(0x1d1)](_0x58d2f4(0x23a)),'hidden':this[_0x58d2f4(0x1b3)][_0x58d2f4(0x1d1)](_0x58d2f4(0x23a))};this[_0x58d2f4(0x20e)](_0x478705);}async[_0x59bc08(0x1b6)](_0x311ca2,_0x1ef673,_0x5d1f89,_0x325b42){const _0x179704=_0x59bc08,_0x4e6ba3=this[_0x179704(0x1c1)][_0x179704(0x20b)](_0x179704(0x23a));if(_0x4e6ba3&&_0x311ca2){_0x4e6ba3[_0x179704(0x212)]=_0x325b42?_0x325b42[_0x179704(0x1bd)](_0x1a8864=>({'start':_0x1a8864[_0x179704(0x23c)],'end':_0x1a8864[_0x179704(0x1cb)]})):[];try{if(_0x4e6ba3[_0x179704(0x1fa)]===_0x1ef673)return;const {id:_0x46e8a8}=await this[_0x179704(0x1e5)][_0x179704(0x1e1)](this[_0x179704(0x1e0)],_0x311ca2,{'version':_0x1ef673,'sessionId':_0x5d1f89})[_0x179704(0x1c7)]();_0x4e6ba3['id']=_0x46e8a8,_0x4e6ba3[_0x179704(0x1ef)]=_0x311ca2,_0x4e6ba3[_0x179704(0x1fa)]=_0x1ef673,_0x4e6ba3[_0x179704(0x235)]=_0x5d1f89;}catch(_0x49a070){const _0x47fb07=new _0x5ebcea(_0x179704(0x1f6),null);_0x47fb07[_0x179704(0x1c8)]=_0x49a070[_0x179704(0x1c8)],this[_0x179704(0x21d)](_0x179704(0x1cf),{'error':_0x47fb07});}}}[_0x59bc08(0x210)](_0x560bbb){const _0x1f8a79=_0x59bc08;this[_0x1f8a79(0x20e)]({'type':_0xd267e[_0x1f8a79(0x214)],'label':_0x560bbb,'uiId':_0x1f8a79(0x212),'content':_0x560bbb});}[_0x59bc08(0x218)](){const _0x495741=_0x59bc08;this[_0x495741(0x1b7)](_0x495741(0x212));}async[_0x59bc08(0x1ba)](_0x21c441,_0x173363){const _0x417a42=_0x59bc08,_0x461c8b=_0x417a42(0x21b)+_0xe945a3();this[_0x417a42(0x216)](_0x461c8b);const _0x348412=_0x417a42(0x21b)+_0xe945a3();try{this[_0x417a42(0x20e)]({'type':_0xd267e[_0x417a42(0x229)],'label':_0x173363?.[_0x417a42(0x205)]||_0x21c441,'uiId':_0x348412,'resourceId':_0x173363?.[_0x417a42(0x23e)]},!0x0);const _0x308638=this[_0x417a42(0x1e5)][_0x417a42(0x22e)](this[_0x417a42(0x1e0)],_0x21c441,_0x173363);this[_0x417a42(0x228)][_0x417a42(0x236)](_0x348412,_0x308638[_0x417a42(0x237)]);const {id:_0x5b70e1}=await _0x308638[_0x417a42(0x1c7)]();this[_0x417a42(0x228)][_0x417a42(0x239)](_0x348412),this[_0x417a42(0x1d8)]({'type':_0xd267e[_0x417a42(0x229)],'id':_0x5b70e1,'label':_0x173363?.[_0x417a42(0x205)]||_0x21c441,'uiId':_0x348412,'resourceId':_0x173363?.[_0x417a42(0x23e)]},!0x1);}catch(_0x36eb65){this[_0x417a42(0x228)][_0x417a42(0x239)](_0x348412),(_0x36eb65[_0x417a42(0x1c2)][_0x417a42(0x20d)](_0x417a42(0x1be))||this[_0x417a42(0x21d)](_0x417a42(0x1cf),{'error':new _0x5ebcea(_0x417a42(0x1d6),this,{'url':_0x21c441,'originalError':_0x36eb65}),'url':_0x21c441}),this[_0x417a42(0x1b7)](_0x348412));}finally{this[_0x417a42(0x1b8)](_0x461c8b);}}async[_0x59bc08(0x22f)](_0x56c667,_0x126901,_0x237883){const _0x575c4d=_0x59bc08,_0x3e392a=this[_0x575c4d(0x1fb)][_0x575c4d(0x1bc)][_0x575c4d(0x21e)](_0x1f15f4=>_0x1f15f4['id']===_0x56c667);if(!_0x3e392a)return this[_0x575c4d(0x21d)](_0x575c4d(0x1cf),{'error':new _0x5ebcea(_0x575c4d(0x1cd),this,{'sourceId':_0x56c667}),'sourceId':_0x56c667}),[];try{const _0x467db3=(await _0x3e392a[_0x575c4d(0x202)](_0x126901))[_0x575c4d(0x1bd)](_0x2e4496=>{const _0x170a65=_0x575c4d,_0x58d975=this[_0x170a65(0x207)](_0x2e4496['id']);return{..._0x2e4496,'isInContext':_0x58d975};});return _0x3e392a[_0x575c4d(0x1e6)]=_0x467db3,this[_0x575c4d(0x21d)](_0x575c4d(0x1c9),{'sourceId':_0x56c667,'source':_0x3e392a,'resources':_0x467db3,'uid':_0x237883}),_0x467db3;}catch(_0x2f9c6e){return this[_0x575c4d(0x21d)](_0x575c4d(0x1cf),{'error':new _0x5ebcea(_0x575c4d(0x1ec),this,{'sourceId':_0x56c667,'originalError':_0x2f9c6e}),'sourceId':_0x56c667,'sourceLabel':_0x3e392a[_0x575c4d(0x205)]}),[];}}async[_0x59bc08(0x1bf)](_0x23dc19,_0x492448){const _0x312ac1=_0x59bc08;if(this[_0x312ac1(0x207)](_0x492448['id']))return;let _0x41303e=_0x492448[_0x312ac1(0x1c0)];if(!_0x41303e&&_0x23dc19[_0x312ac1(0x1b5)])try{_0x41303e=await _0x23dc19[_0x312ac1(0x1b5)](_0x492448['id']);}catch(_0x5152dc){return void this[_0x312ac1(0x21d)](_0x312ac1(0x1cf),{'error':new _0x5ebcea(_0x312ac1(0x22b),this,{'resourceId':_0x492448['id'],'sourceId':_0x23dc19['id'],'originalError':_0x5152dc}),'resourceId':_0x492448['id'],'sourceId':_0x23dc19['id']});}if(_0x41303e)switch(_0x492448[_0x312ac1(0x1af)]){case _0xd267e[_0x312ac1(0x229)]:if(_0x312ac1(0x1e2)!=typeof _0x41303e)return void this[_0x312ac1(0x21d)](_0x312ac1(0x1cf),{'error':new _0x5ebcea(_0x312ac1(0x1f1),this,{'resourceId':_0x492448['id'],'sourceId':_0x23dc19['id'],'expectedType':_0x312ac1(0x1e2),'actualType':typeof _0x41303e}),'resourceId':_0x492448['id'],'sourceId':_0x23dc19['id']});await this[_0x312ac1(0x1ba)](_0x41303e,{'label':_0x492448[_0x312ac1(0x205)],'resourceId':_0x492448['id']});break;case _0xd267e[_0x312ac1(0x1c6)]:if(!(_0x41303e instanceof File))return void this[_0x312ac1(0x21d)](_0x312ac1(0x1cf),{'error':new _0x5ebcea(_0x312ac1(0x1f1),this,{'resourceId':_0x492448['id'],'sourceId':_0x23dc19['id'],'expectedType':_0x312ac1(0x223),'actualType':typeof _0x41303e}),'resourceId':_0x492448['id'],'sourceId':_0x23dc19['id']});await this[_0x312ac1(0x1d2)]([_0x41303e],{'label':_0x492448[_0x312ac1(0x205)],'resourceId':_0x492448['id']});break;case _0xd267e[_0x312ac1(0x1b2)]:if(_0x312ac1(0x222)!=typeof _0x41303e||!(_0x312ac1(0x1ef)in _0x41303e)||!(_0x312ac1(0x1af)in _0x41303e))return void this[_0x312ac1(0x21d)](_0x312ac1(0x1cf),{'error':new _0x5ebcea(_0x312ac1(0x1f1),this,{'resourceId':_0x492448['id'],'sourceId':_0x23dc19['id'],'expectedType':_0x312ac1(0x1e7),'actualType':typeof _0x41303e}),'resourceId':_0x492448['id'],'sourceId':_0x23dc19['id']});_0x41303e=AIChatContext[_0x312ac1(0x1d3)](_0x41303e,_0x492448[_0x312ac1(0x205)]),await this[_0x312ac1(0x1d2)]([_0x41303e],{'label':_0x492448[_0x312ac1(0x205)],'resourceId':_0x492448['id']},_0xd267e[_0x312ac1(0x1b2)]);break;default:this[_0x312ac1(0x21d)](_0x312ac1(0x1cf),{'error':new _0x5ebcea(_0x312ac1(0x1dc),this,{'resourceId':_0x492448['id'],'sourceId':_0x23dc19['id'],'resourceType':_0x492448[_0x312ac1(0x1af)]}),'resourceId':_0x492448['id'],'sourceId':_0x23dc19['id']});}else this[_0x312ac1(0x21d)](_0x312ac1(0x1cf),{'error':new _0x5ebcea(_0x312ac1(0x22a),this,{'resourceId':_0x492448['id'],'sourceId':_0x23dc19['id']}),'resourceId':_0x492448['id'],'sourceId':_0x23dc19['id']});}static[_0x59bc08(0x1d3)](_0x23783e,_0xa7ab4c){const _0x32ca00=_0x59bc08;switch(_0x23783e[_0x32ca00(0x1af)]){case _0x3f6228[_0x32ca00(0x221)]:return new File([_0x23783e[_0x32ca00(0x1ef)]],_0xa7ab4c,{'type':_0x32ca00(0x1d9)});case _0x3f6228[_0x32ca00(0x20c)]:return new File([_0x23783e[_0x32ca00(0x1ef)]],_0xa7ab4c,{'type':_0x32ca00(0x226)});default:return new File([_0x23783e[_0x32ca00(0x1ef)]],_0xa7ab4c,{'type':_0x32ca00(0x1eb)});}}static[_0x59bc08(0x1ea)](_0x372787){const _0x79c5b4=_0x59bc08;switch(_0x372787[_0x79c5b4(0x1af)]){case _0xd267e[_0x79c5b4(0x1c6)]:return{'type':_0xd267e[_0x79c5b4(0x1c6)],'id':_0x372787['id']};case _0xd267e[_0x79c5b4(0x229)]:return{'type':_0xd267e[_0x79c5b4(0x229)],'id':_0x372787['id']};case _0xd267e[_0x79c5b4(0x224)]:return{'type':_0xd267e[_0x79c5b4(0x224)],'id':_0x372787['id'],..._0x372787[_0x79c5b4(0x212)]?.[_0x79c5b4(0x1ce)]&&{'selection':_0x372787[_0x79c5b4(0x212)]}};case _0xd267e[_0x79c5b4(0x1b2)]:return{'type':_0xd267e[_0x79c5b4(0x1c6)],'id':_0x372787['id']};default:return null;}}[_0x59bc08(0x20e)](_0x242257,_0x23442c=!0x1){const _0x167246=_0x59bc08;if(this[_0x167246(0x1c1)][_0x167246(0x236)](_0x242257[_0x167246(0x1ed)],_0x242257),_0x242257[_0x167246(0x1b9)]||this[_0x167246(0x21d)](_0x167246(0x1db),{'contextItem':_0x242257,'isLoading':_0x23442c}),_0x167246(0x23a)===_0x242257[_0x167246(0x1ed)]&&this[_0x167246(0x225)](),_0x242257[_0x167246(0x23e)]){const _0x32880a=this[_0x167246(0x1f3)](_0x242257[_0x167246(0x23e)]);_0x32880a&&_0x32880a[_0x167246(0x21f)](_0x5564cd=>{const _0x3834d4=_0x167246;this[_0x3834d4(0x1cc)](_0x5564cd,_0x242257[_0x3834d4(0x23e)],!0x0);});}}[_0x59bc08(0x1b7)](_0x5822ba){const _0x1a3894=_0x59bc08,_0x47c22f=this[_0x1a3894(0x1c1)][_0x1a3894(0x20b)](_0x5822ba),_0x278a80=this[_0x1a3894(0x228)][_0x1a3894(0x20b)](_0x5822ba);if(_0x278a80&&(_0x278a80[_0x1a3894(0x213)](),this[_0x1a3894(0x228)][_0x1a3894(0x239)](_0x5822ba)),_0x47c22f?.[_0x1a3894(0x23e)]){const _0x4fae83=this[_0x1a3894(0x1f3)](_0x47c22f[_0x1a3894(0x23e)]);_0x4fae83&&_0x4fae83[_0x1a3894(0x21f)](_0x464771=>{const _0x120bb1=_0x1a3894;this[_0x120bb1(0x1cc)](_0x464771,_0x47c22f[_0x120bb1(0x23e)],!0x1);});}this[_0x1a3894(0x1c1)][_0x1a3894(0x239)](_0x5822ba),this[_0x1a3894(0x21d)](_0x1a3894(0x209),{'uiId':_0x5822ba,'type':_0x47c22f?.[_0x1a3894(0x1af)]}),_0x1a3894(0x23a)===_0x5822ba&&this[_0x1a3894(0x225)]();}[_0x59bc08(0x1d8)](_0x167b36,_0x42da42){const _0x370343=_0x59bc08;if(this[_0x370343(0x1c1)][_0x370343(0x1d1)](_0x167b36[_0x370343(0x1ed)])&&(this[_0x370343(0x1c1)][_0x370343(0x236)](_0x167b36[_0x370343(0x1ed)],_0x167b36),this[_0x370343(0x21d)](_0x370343(0x1d4),{'contextItem':_0x167b36,'isLoading':_0x42da42}),_0x167b36[_0x370343(0x23e)])){const _0x40b621=this[_0x370343(0x1f3)](_0x167b36[_0x370343(0x23e)]);_0x40b621&&_0x40b621[_0x370343(0x21f)](_0x433b77=>{const _0x5a50f6=_0x370343;this[_0x5a50f6(0x1cc)](_0x433b77,_0x167b36[_0x5a50f6(0x23e)],!0x0);});}}[_0x59bc08(0x1e8)](_0x22dc2b){const _0x5b2ee0=_0x59bc08;this[_0x5b2ee0(0x1b3)][_0x5b2ee0(0x236)](_0x22dc2b[_0x5b2ee0(0x1ed)],_0x22dc2b);}[_0x59bc08(0x215)](){const _0x247940=_0x59bc08;this[_0x247940(0x1fb)]={'document':{'enabled':!0x1!==this[_0x247940(0x20f)]?.[_0x247940(0x203)]?.[_0x247940(0x234)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x247940(0x20f)]?.[_0x247940(0x1d7)]?.[_0x247940(0x234)]},'files':{'enabled':!0x1!==this[_0x247940(0x20f)]?.[_0x247940(0x20a)]?.[_0x247940(0x234)]},'sources':this[_0x247940(0x1d0)]()},this[_0x247940(0x21d)](_0x247940(0x23d),{'options':this[_0x247940(0x1fb)]});}[_0x59bc08(0x1d0)](){const _0x145fd9=_0x59bc08;return this[_0x145fd9(0x20f)]?.[_0x145fd9(0x1bc)]?.[_0x145fd9(0x1bd)](_0x19ec0c=>({..._0x19ec0c,'resources':[]}))??[];}[_0x59bc08(0x225)](){const _0x22a2c0=_0x59bc08,_0x32eb93=this[_0x22a2c0(0x1de)]()||this[_0x22a2c0(0x1f5)]();this[_0x22a2c0(0x1fb)][_0x22a2c0(0x203)][_0x22a2c0(0x23b)]=_0x32eb93,this[_0x22a2c0(0x21d)](_0x22a2c0(0x23d),{'options':this[_0x22a2c0(0x1fb)]});}[_0x59bc08(0x207)](_0x4e6e4e){const _0x35aada=_0x59bc08;for(const _0x49043e of this[_0x35aada(0x1c1)][_0x35aada(0x1e3)]())if(_0x49043e[_0x35aada(0x23e)]===_0x4e6e4e)return!0x0;for(const _0x1768eb of this[_0x35aada(0x1b3)][_0x35aada(0x1e3)]())if(_0x1768eb[_0x35aada(0x23e)]===_0x4e6e4e)return!0x0;return!0x1;}[_0x59bc08(0x1f3)](_0x553463){const _0x25629f=_0x59bc08,_0x11d945=[];for(const _0x346b22 of this[_0x25629f(0x1fb)][_0x25629f(0x1bc)]){_0x346b22[_0x25629f(0x1e6)][_0x25629f(0x21e)](_0x1ea344=>_0x1ea344['id']===_0x553463)&&_0x11d945[_0x25629f(0x1f9)](_0x346b22['id']);}return 0x0===_0x11d945[_0x25629f(0x1ce)]?null:_0x11d945;}[_0x59bc08(0x1cc)](_0x64a84b,_0x22d5bc,_0x44c21d){const _0x5cb424=_0x59bc08,_0xa5b35b=this[_0x5cb424(0x1fb)][_0x5cb424(0x1bc)][_0x5cb424(0x21e)](_0x12d956=>_0x12d956['id']===_0x64a84b);if(!_0xa5b35b)return;const _0x4f897f=_0xa5b35b[_0x5cb424(0x1e6)][_0x5cb424(0x21e)](_0x2788c8=>_0x2788c8['id']===_0x22d5bc);_0x4f897f&&(_0x4f897f[_0x5cb424(0x238)]=_0x44c21d,this[_0x5cb424(0x21d)](_0x5cb424(0x1ee),{'sourceId':_0x64a84b,'resourceId':_0x22d5bc,'isInContext':_0x44c21d}));}[_0x59bc08(0x216)](_0x29c215){const _0x4014d9=_0x59bc08;this[_0x4014d9(0x22d)][_0x4014d9(0x236)](_0x29c215,!0x0),this[_0x4014d9(0x22d)][_0x4014d9(0x1e4)]&&this[_0x4014d9(0x21d)](_0x4014d9(0x1fc),{'isUploadInProgress':!0x0});}[_0x59bc08(0x1b8)](_0x45a00e){const _0x3ef0d3=_0x59bc08;this[_0x3ef0d3(0x22d)][_0x3ef0d3(0x239)](_0x45a00e),0x0===this[_0x3ef0d3(0x22d)][_0x3ef0d3(0x1e4)]&&this[_0x3ef0d3(0x21d)](_0x3ef0d3(0x1fc),{'isUploadInProgress':!0x1});}}
23
+ const _0x5b195c=_0x3c6b;(function(_0x61094c,_0x5ebd34){const _0x4225f7=_0x3c6b,_0x4ee7aa=_0x61094c();while(!![]){try{const _0x2b53f4=-parseInt(_0x4225f7(0x18f))/0x1+-parseInt(_0x4225f7(0x149))/0x2*(-parseInt(_0x4225f7(0x11f))/0x3)+parseInt(_0x4225f7(0x119))/0x4*(-parseInt(_0x4225f7(0x146))/0x5)+-parseInt(_0x4225f7(0x192))/0x6+parseInt(_0x4225f7(0x16f))/0x7+-parseInt(_0x4225f7(0x196))/0x8+-parseInt(_0x4225f7(0x124))/0x9*(-parseInt(_0x4225f7(0x180))/0xa);if(_0x2b53f4===_0x5ebd34)break;else _0x4ee7aa['push'](_0x4ee7aa['shift']());}catch(_0x2dabb6){_0x4ee7aa['push'](_0x4ee7aa['shift']());}}}(_0x1906,0x92de4));import{CKEditorError as _0x1ce1c7,ObservableMixin as _0x53a141,uid as _0x296cbb}from'ckeditor5/src/utils.js';import{AIContextItemType as _0x5cd0b3,AIContextTextResourceType as _0x2f4824}from'../../aicore/model/aicontext.js';import{escape as _0x33b9b5}from'es-toolkit/compat';import{errorsMap as _0x51eff4}from'../../errorsmap.js';function _0x3c6b(_0xd4b231,_0x393a1c){const _0x190610=_0x1906();return _0x3c6b=function(_0x3c6ba9,_0x587ae3){_0x3c6ba9=_0x3c6ba9-0x109;let _0x545e49=_0x190610[_0x3c6ba9];return _0x545e49;},_0x3c6b(_0xd4b231,_0x393a1c);}export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x5b195c(0x144),_0x5b195c(0x179),_0x5b195c(0x15f),_0x5b195c(0x197),_0x5b195c(0x109),_0x5b195c(0x10e),_0x5b195c(0x193),_0x5b195c(0x162),_0x5b195c(0x114)];export class AIChatContext extends _0x53a141(){[_0x5b195c(0x11d)];[_0x5b195c(0x12a)];[_0x5b195c(0x17d)];constructor({connector:_0x120831,config:_0x129f37,ownerId:_0x379154}){const _0x386429=_0x5b195c;super(),this[_0x386429(0x11d)]=_0x120831,this[_0x386429(0x12a)]=_0x129f37,this[_0x386429(0x17d)]=_0x379154;}[_0x5b195c(0x138)](){const _0x38454a=_0x5b195c;this[_0x38454a(0x154)]=new Map(),this[_0x38454a(0x12c)]=new Map(),this[_0x38454a(0x191)]=new Map(),this[_0x38454a(0x14c)]=new Map(),this[_0x38454a(0x153)]();}[_0x5b195c(0x18e)](){const _0x2255f0=_0x5b195c;return this[_0x2255f0(0x154)];}async[_0x5b195c(0x11a)](_0x56cf42){const _0xe3c3f=_0x5b195c,_0x5652a1=await this[_0xe3c3f(0x14f)](_0x56cf42);return this[_0xe3c3f(0x190)](_0x5652a1),_0xe3c3f(0x158)===_0x5652a1[_0xe3c3f(0x166)]&&this[_0xe3c3f(0x169)](),_0x5652a1;}async[_0x5b195c(0x14f)](_0xabe0cf){const _0x4b65f7=_0x5b195c;if(_0xabe0cf[_0x4b65f7(0x187)]===_0x5cd0b3[_0x4b65f7(0x13c)]){const _0x1e611b=await this[_0x4b65f7(0x11d)][_0x4b65f7(0x133)](this[_0x4b65f7(0x17d)],_0xabe0cf['id'])[_0x4b65f7(0x122)]();return{'id':_0x4b65f7(0x158),'uiId':_0x4b65f7(0x158),'label':_0x4b65f7(0x120),'type':_0xabe0cf[_0x4b65f7(0x187)],'content':_0x1e611b[_0x4b65f7(0x140)],'hidden':this[_0x4b65f7(0x12c)][_0x4b65f7(0x16d)](_0x4b65f7(0x158)),'version':_0x1e611b[_0x4b65f7(0x13b)]?.[_0x4b65f7(0x14e)],'sessionId':_0x1e611b[_0x4b65f7(0x13b)]?.[_0x4b65f7(0x173)]};}return{'id':_0xabe0cf['id'],'uiId':_0xabe0cf['id'],'label':_0xabe0cf[_0x4b65f7(0x13b)]?.[_0x4b65f7(0x113)]||_0xabe0cf[_0x4b65f7(0x136)]||_0xabe0cf[_0x4b65f7(0x18b)]||_0xabe0cf['id'],'type':_0xabe0cf[_0x4b65f7(0x187)],..._0xabe0cf?.[_0x4b65f7(0x13b)]?.[_0x4b65f7(0x186)]?{'resourceId':_0xabe0cf[_0x4b65f7(0x13b)]?.[_0x4b65f7(0x186)]}:{}};}[_0x5b195c(0x181)](){const _0x697ef1=_0x5b195c;return new Map(this[_0x697ef1(0x12c)]);}[_0x5b195c(0x167)](_0x3e04f4){const _0x24eea5=_0x5b195c,_0x1fc56d=this[_0x24eea5(0x154)][_0x24eea5(0x15a)](_0x3e04f4);_0x1fc56d?.[_0x24eea5(0x194)]||this[_0x24eea5(0x10a)](_0x3e04f4);}[_0x5b195c(0x147)](){const _0x50f6d5=_0x5b195c;if(0x0===this[_0x50f6d5(0x154)][_0x50f6d5(0x174)])return;for(const _0xff453 of this[_0x50f6d5(0x154)][_0x50f6d5(0x123)]())this[_0x50f6d5(0x10a)](_0xff453[_0x50f6d5(0x166)]);const _0x1e84e6=this[_0x50f6d5(0x12c)][_0x50f6d5(0x15a)](_0x50f6d5(0x158))||this[_0x50f6d5(0x154)][_0x50f6d5(0x15a)](_0x50f6d5(0x158));_0x1e84e6&&this[_0x50f6d5(0x165)]({..._0x1e84e6,'isReadOnly':!0x0,'hidden':!0x0});}[_0x5b195c(0x178)](_0x5422d4){const _0x4d134e=_0x5b195c;for(const _0x4e69a4 of _0x5422d4[_0x4d134e(0x123)]())this[_0x4d134e(0x190)](_0x4e69a4);this[_0x4d134e(0x147)](),this[_0x4d134e(0x171)](_0x4d134e(0x197),{'contextItems':Array[_0x4d134e(0x111)](this[_0x4d134e(0x181)]()[_0x4d134e(0x123)]())});}[_0x5b195c(0x14b)](){const _0x5a91c2=_0x5b195c;return this[_0x5a91c2(0x154)][_0x5a91c2(0x16d)](_0x5a91c2(0x158));}[_0x5b195c(0x125)](){const _0x4342a5=_0x5b195c;return this[_0x4342a5(0x154)][_0x4342a5(0x16d)](_0x4342a5(0x117));}[_0x5b195c(0x176)](){const _0x443d35=_0x5b195c;return this[_0x443d35(0x12c)][_0x443d35(0x16d)](_0x443d35(0x158));}static[_0x5b195c(0x132)](_0x403a9e){const _0x651571=_0x5b195c;return Array[_0x651571(0x111)](_0x403a9e[_0x651571(0x123)]())[_0x651571(0x13a)](_0x6beb56=>this[_0x651571(0x10d)](_0x6beb56))[_0x651571(0x155)](_0x28586a=>null!==_0x28586a);}async[_0x5b195c(0x134)](_0x157a81,_0xcb9223,_0x159672=_0x5cd0b3[_0x5b195c(0x15b)]){const _0xf3d9bd=_0x5b195c,_0x1867d5=_0xf3d9bd(0x18d)+_0x296cbb();this[_0xf3d9bd(0x15c)](_0x1867d5);try{await Promise[_0xf3d9bd(0x126)](_0x157a81[_0xf3d9bd(0x13a)](async _0x492d8a=>{const _0x5c04e0=_0xf3d9bd,_0x3724fe=_0x5c04e0(0x172)+_0x296cbb(),_0x1ba3e=_0x33b9b5(_0x492d8a[_0x5c04e0(0x136)]);try{this[_0x5c04e0(0x165)]({'type':_0x159672,'label':_0xcb9223?.[_0x5c04e0(0x113)]||_0x1ba3e,'uiId':_0x3724fe,'resourceId':_0xcb9223?.[_0x5c04e0(0x186)]},!0x0);const _0x42aacc=this[_0x5c04e0(0x11d)][_0x5c04e0(0x10f)](this[_0x5c04e0(0x17d)],_0x492d8a,_0xcb9223);this[_0x5c04e0(0x191)][_0x5c04e0(0x189)](_0x3724fe,_0x42aacc[_0x5c04e0(0x183)]);const {id:_0x249df4}=await _0x42aacc[_0x5c04e0(0x115)]();this[_0x5c04e0(0x191)][_0x5c04e0(0x12b)](_0x3724fe),this[_0x5c04e0(0x168)]({'type':_0x159672,'id':_0x249df4,'label':_0xcb9223?.[_0x5c04e0(0x113)]||_0x1ba3e,'uiId':_0x3724fe,'resourceId':_0xcb9223?.[_0x5c04e0(0x186)]},!0x1);}catch(_0x1d2b8a){this[_0x5c04e0(0x191)][_0x5c04e0(0x12b)](_0x3724fe);if(!(_0x1d2b8a instanceof _0x1ce1c7&&_0x1d2b8a[_0x5c04e0(0x17b)][_0x5c04e0(0x110)](_0x5c04e0(0x10c)))){const _0x7b2007=_0x51eff4[_0x5c04e0(0x15a)](_0x1d2b8a[_0x5c04e0(0x128)])||_0x5c04e0(0x17c),_0xb402b9=new _0x1ce1c7(_0x7b2007,null,{'fileName':_0x1ba3e,..._0x1d2b8a});_0xb402b9[_0x5c04e0(0x127)]=_0x1d2b8a[_0x5c04e0(0x127)],this[_0x5c04e0(0x171)](_0x5c04e0(0x109),{'error':_0xb402b9});}this[_0x5c04e0(0x10a)](_0x3724fe);}}));}finally{this[_0xf3d9bd(0x17a)](_0x1867d5);}}[_0x5b195c(0x12e)](_0x2ddc83){const _0x40c9f1=_0x5b195c;if(this[_0x40c9f1(0x14b)]()||!this[_0x40c9f1(0x16c)][_0x40c9f1(0x137)][_0x40c9f1(0x135)])return;const _0x5834bb={'type':_0x5cd0b3[_0x40c9f1(0x13c)],'uiId':_0x40c9f1(0x158),'label':_0x2ddc83,'isReadOnly':this[_0x40c9f1(0x12c)][_0x40c9f1(0x16d)](_0x40c9f1(0x158)),'hidden':this[_0x40c9f1(0x12c)][_0x40c9f1(0x16d)](_0x40c9f1(0x158))};this[_0x40c9f1(0x165)](_0x5834bb);}async[_0x5b195c(0x116)](_0x154b96,_0x2ae039,_0x174523,_0x5d9429){const _0x16bf18=_0x5b195c,_0x5ea3ed=this[_0x16bf18(0x154)][_0x16bf18(0x15a)](_0x16bf18(0x158));if(_0x5ea3ed&&_0x154b96){_0x5ea3ed[_0x16bf18(0x117)]=_0x5d9429?_0x5d9429[_0x16bf18(0x13a)](_0x3c5616=>({'start':_0x3c5616[_0x16bf18(0x142)],'end':_0x3c5616[_0x16bf18(0x13d)]})):[];try{if(_0x5ea3ed[_0x16bf18(0x14e)]===_0x2ae039)return;const {id:_0x231997}=await this[_0x16bf18(0x11d)][_0x16bf18(0x14d)](this[_0x16bf18(0x17d)],_0x154b96,{'version':_0x2ae039,'sessionId':_0x174523})[_0x16bf18(0x115)]();_0x5ea3ed['id']=_0x231997,_0x5ea3ed[_0x16bf18(0x140)]=_0x154b96,_0x5ea3ed[_0x16bf18(0x14e)]=_0x2ae039,_0x5ea3ed[_0x16bf18(0x173)]=_0x174523;}catch(_0x4f54dc){const _0x10b887=new _0x1ce1c7(_0x16bf18(0x13f),null);_0x10b887[_0x16bf18(0x127)]=_0x4f54dc[_0x16bf18(0x127)],this[_0x16bf18(0x171)](_0x16bf18(0x109),{'error':_0x10b887});}}}[_0x5b195c(0x163)](_0x2ff99){const _0x228a77=_0x5b195c;this[_0x228a77(0x165)]({'type':_0x5cd0b3[_0x228a77(0x17f)],'label':_0x2ff99,'uiId':_0x228a77(0x117),'content':_0x2ff99});}[_0x5b195c(0x185)](){const _0x3b4a1b=_0x5b195c;this[_0x3b4a1b(0x10a)](_0x3b4a1b(0x117));}async[_0x5b195c(0x11b)](_0x5a967e,_0x5ce318){const _0x2662fd=_0x5b195c,_0x4a17bf=_0x2662fd(0x182)+_0x296cbb();this[_0x2662fd(0x15c)](_0x4a17bf);const _0x2ef27b=_0x2662fd(0x182)+_0x296cbb();try{this[_0x2662fd(0x165)]({'type':_0x5cd0b3[_0x2662fd(0x131)],'label':_0x5ce318?.[_0x2662fd(0x113)]||_0x5a967e,'uiId':_0x2ef27b,'resourceId':_0x5ce318?.[_0x2662fd(0x186)]},!0x0);const _0x506f96=this[_0x2662fd(0x11d)][_0x2662fd(0x16a)](this[_0x2662fd(0x17d)],_0x5a967e,_0x5ce318);this[_0x2662fd(0x191)][_0x2662fd(0x189)](_0x2ef27b,_0x506f96[_0x2662fd(0x183)]);const {id:_0x5ba3af}=await _0x506f96[_0x2662fd(0x115)]();this[_0x2662fd(0x191)][_0x2662fd(0x12b)](_0x2ef27b),this[_0x2662fd(0x168)]({'type':_0x5cd0b3[_0x2662fd(0x131)],'id':_0x5ba3af,'label':_0x5ce318?.[_0x2662fd(0x113)]||_0x5a967e,'uiId':_0x2ef27b,'resourceId':_0x5ce318?.[_0x2662fd(0x186)]},!0x1);}catch(_0x564105){this[_0x2662fd(0x191)][_0x2662fd(0x12b)](_0x2ef27b),(_0x564105[_0x2662fd(0x17b)][_0x2662fd(0x110)](_0x2662fd(0x10c))||this[_0x2662fd(0x171)](_0x2662fd(0x109),{'error':new _0x1ce1c7(_0x2662fd(0x16b),this,{'url':_0x5a967e,'originalError':_0x564105}),'url':_0x5a967e}),this[_0x2662fd(0x10a)](_0x2ef27b));}finally{this[_0x2662fd(0x17a)](_0x4a17bf);}}async[_0x5b195c(0x15e)](_0x5e9ffc,_0x5c8ce0,_0x3f248d){const _0x1eba43=_0x5b195c,_0x3e68c8=this[_0x1eba43(0x16c)][_0x1eba43(0x184)][_0x1eba43(0x188)](_0x418ee3=>_0x418ee3['id']===_0x5e9ffc);if(!_0x3e68c8)return this[_0x1eba43(0x171)](_0x1eba43(0x109),{'error':new _0x1ce1c7(_0x1eba43(0x12f),this,{'sourceId':_0x5e9ffc}),'sourceId':_0x5e9ffc}),[];try{const _0x5b9647=(await _0x3e68c8[_0x1eba43(0x161)](_0x5c8ce0))[_0x1eba43(0x13a)](_0x5aa756=>{const _0x9437a2=_0x1eba43,_0xf96148=this[_0x9437a2(0x145)](_0x5aa756['id']);return{..._0x5aa756,'isInContext':_0xf96148};});return _0x3e68c8[_0x1eba43(0x11e)]=_0x5b9647,this[_0x1eba43(0x171)](_0x1eba43(0x193),{'sourceId':_0x5e9ffc,'source':_0x3e68c8,'resources':_0x5b9647,'uid':_0x3f248d}),_0x5b9647;}catch(_0x12e0dd){return this[_0x1eba43(0x171)](_0x1eba43(0x109),{'error':new _0x1ce1c7(_0x1eba43(0x18c),this,{'sourceId':_0x5e9ffc,'originalError':_0x12e0dd}),'sourceId':_0x5e9ffc,'sourceLabel':_0x3e68c8[_0x1eba43(0x113)]}),[];}}async[_0x5b195c(0x129)](_0x4af14c,_0xaa6106){const _0x596e2a=_0x5b195c;if(this[_0x596e2a(0x145)](_0xaa6106['id']))return;let _0x4fd82a=_0xaa6106[_0x596e2a(0x11c)];if(!_0x4fd82a&&_0x4af14c[_0x596e2a(0x159)])try{_0x4fd82a=await _0x4af14c[_0x596e2a(0x159)](_0xaa6106['id']);}catch(_0x4da5e6){return void this[_0x596e2a(0x171)](_0x596e2a(0x109),{'error':new _0x1ce1c7(_0x596e2a(0x17e),this,{'resourceId':_0xaa6106['id'],'sourceId':_0x4af14c['id'],'originalError':_0x4da5e6}),'resourceId':_0xaa6106['id'],'sourceId':_0x4af14c['id']});}if(_0x4fd82a)switch(_0xaa6106[_0x596e2a(0x187)]){case _0x5cd0b3[_0x596e2a(0x131)]:if(_0x596e2a(0x160)!=typeof _0x4fd82a)return void this[_0x596e2a(0x171)](_0x596e2a(0x109),{'error':new _0x1ce1c7(_0x596e2a(0x156),this,{'resourceId':_0xaa6106['id'],'sourceId':_0x4af14c['id'],'expectedType':_0x596e2a(0x160),'actualType':typeof _0x4fd82a}),'resourceId':_0xaa6106['id'],'sourceId':_0x4af14c['id']});await this[_0x596e2a(0x11b)](_0x4fd82a,{'label':_0xaa6106[_0x596e2a(0x113)],'resourceId':_0xaa6106['id']});break;case _0x5cd0b3[_0x596e2a(0x15b)]:if(!(_0x4fd82a instanceof File))return void this[_0x596e2a(0x171)](_0x596e2a(0x109),{'error':new _0x1ce1c7(_0x596e2a(0x156),this,{'resourceId':_0xaa6106['id'],'sourceId':_0x4af14c['id'],'expectedType':_0x596e2a(0x152),'actualType':typeof _0x4fd82a}),'resourceId':_0xaa6106['id'],'sourceId':_0x4af14c['id']});await this[_0x596e2a(0x134)]([_0x4fd82a],{'label':_0xaa6106[_0x596e2a(0x113)],'resourceId':_0xaa6106['id']});break;case _0x5cd0b3[_0x596e2a(0x118)]:if(_0x596e2a(0x13e)!=typeof _0x4fd82a||!(_0x596e2a(0x140)in _0x4fd82a)||!(_0x596e2a(0x187)in _0x4fd82a))return void this[_0x596e2a(0x171)](_0x596e2a(0x109),{'error':new _0x1ce1c7(_0x596e2a(0x156),this,{'resourceId':_0xaa6106['id'],'sourceId':_0x4af14c['id'],'expectedType':_0x596e2a(0x12d),'actualType':typeof _0x4fd82a}),'resourceId':_0xaa6106['id'],'sourceId':_0x4af14c['id']});_0x4fd82a=AIChatContext[_0x596e2a(0x143)](_0x4fd82a,_0xaa6106[_0x596e2a(0x113)]),await this[_0x596e2a(0x134)]([_0x4fd82a],{'label':_0xaa6106[_0x596e2a(0x113)],'resourceId':_0xaa6106['id']},_0x5cd0b3[_0x596e2a(0x118)]);break;default:this[_0x596e2a(0x171)](_0x596e2a(0x109),{'error':new _0x1ce1c7(_0x596e2a(0x18a),this,{'resourceId':_0xaa6106['id'],'sourceId':_0x4af14c['id'],'resourceType':_0xaa6106[_0x596e2a(0x187)]}),'resourceId':_0xaa6106['id'],'sourceId':_0x4af14c['id']});}else this[_0x596e2a(0x171)](_0x596e2a(0x109),{'error':new _0x1ce1c7(_0x596e2a(0x15d),this,{'resourceId':_0xaa6106['id'],'sourceId':_0x4af14c['id']}),'resourceId':_0xaa6106['id'],'sourceId':_0x4af14c['id']});}static[_0x5b195c(0x143)](_0x59a2be,_0x1bbc9a){const _0x181283=_0x5b195c;switch(_0x59a2be[_0x181283(0x187)]){case _0x2f4824[_0x181283(0x175)]:return new File([_0x59a2be[_0x181283(0x140)]],_0x1bbc9a,{'type':_0x181283(0x148)});case _0x2f4824[_0x181283(0x141)]:return new File([_0x59a2be[_0x181283(0x140)]],_0x1bbc9a,{'type':_0x181283(0x130)});default:return new File([_0x59a2be[_0x181283(0x140)]],_0x1bbc9a,{'type':_0x181283(0x151)});}}static[_0x5b195c(0x10d)](_0x4dd5d4){const _0x4ee142=_0x5b195c;switch(_0x4dd5d4[_0x4ee142(0x187)]){case _0x5cd0b3[_0x4ee142(0x15b)]:return{'type':_0x5cd0b3[_0x4ee142(0x15b)],'id':_0x4dd5d4['id']};case _0x5cd0b3[_0x4ee142(0x131)]:return{'type':_0x5cd0b3[_0x4ee142(0x131)],'id':_0x4dd5d4['id']};case _0x5cd0b3[_0x4ee142(0x13c)]:return{'type':_0x5cd0b3[_0x4ee142(0x13c)],'id':_0x4dd5d4['id'],..._0x4dd5d4[_0x4ee142(0x117)]?.[_0x4ee142(0x150)]&&{'selection':_0x4dd5d4[_0x4ee142(0x117)]}};case _0x5cd0b3[_0x4ee142(0x118)]:return{'type':_0x5cd0b3[_0x4ee142(0x15b)],'id':_0x4dd5d4['id']};default:return null;}}[_0x5b195c(0x165)](_0x82f084,_0xfc87a9=!0x1){const _0x1946f7=_0x5b195c;if(this[_0x1946f7(0x154)][_0x1946f7(0x189)](_0x82f084[_0x1946f7(0x166)],_0x82f084),_0x82f084[_0x1946f7(0x170)]||this[_0x1946f7(0x171)](_0x1946f7(0x144),{'contextItem':_0x82f084,'isLoading':_0xfc87a9}),_0x1946f7(0x158)===_0x82f084[_0x1946f7(0x166)]&&this[_0x1946f7(0x169)](),_0x82f084[_0x1946f7(0x186)]){const _0x361d85=this[_0x1946f7(0x112)](_0x82f084[_0x1946f7(0x186)]);_0x361d85&&_0x361d85[_0x1946f7(0x121)](_0x4804bc=>{const _0x20f169=_0x1946f7;this[_0x20f169(0x10b)](_0x4804bc,_0x82f084[_0x20f169(0x186)],!0x0);});}}[_0x5b195c(0x10a)](_0x39f9a1){const _0x214de5=_0x5b195c,_0x1c2301=this[_0x214de5(0x154)][_0x214de5(0x15a)](_0x39f9a1),_0x359452=this[_0x214de5(0x191)][_0x214de5(0x15a)](_0x39f9a1);if(_0x359452&&(_0x359452[_0x214de5(0x16e)](),this[_0x214de5(0x191)][_0x214de5(0x12b)](_0x39f9a1)),_0x1c2301?.[_0x214de5(0x186)]){const _0x5cb46d=this[_0x214de5(0x112)](_0x1c2301[_0x214de5(0x186)]);_0x5cb46d&&_0x5cb46d[_0x214de5(0x121)](_0x1857cb=>{const _0x4443a7=_0x214de5;this[_0x4443a7(0x10b)](_0x1857cb,_0x1c2301[_0x4443a7(0x186)],!0x1);});}this[_0x214de5(0x154)][_0x214de5(0x12b)](_0x39f9a1),this[_0x214de5(0x171)](_0x214de5(0x179),{'uiId':_0x39f9a1,'type':_0x1c2301?.[_0x214de5(0x187)]}),_0x214de5(0x158)===_0x39f9a1&&this[_0x214de5(0x169)]();}[_0x5b195c(0x168)](_0x3375a9,_0x44dbea){const _0x1eaccb=_0x5b195c;if(this[_0x1eaccb(0x154)][_0x1eaccb(0x16d)](_0x3375a9[_0x1eaccb(0x166)])&&(this[_0x1eaccb(0x154)][_0x1eaccb(0x189)](_0x3375a9[_0x1eaccb(0x166)],_0x3375a9),this[_0x1eaccb(0x171)](_0x1eaccb(0x15f),{'contextItem':_0x3375a9,'isLoading':_0x44dbea}),_0x3375a9[_0x1eaccb(0x186)])){const _0x1e6ce3=this[_0x1eaccb(0x112)](_0x3375a9[_0x1eaccb(0x186)]);_0x1e6ce3&&_0x1e6ce3[_0x1eaccb(0x121)](_0x25e13c=>{const _0x5cc4f6=_0x1eaccb;this[_0x5cc4f6(0x10b)](_0x25e13c,_0x3375a9[_0x5cc4f6(0x186)],!0x0);});}}[_0x5b195c(0x190)](_0x17acc6){const _0x7bb2ce=_0x5b195c;this[_0x7bb2ce(0x12c)][_0x7bb2ce(0x189)](_0x17acc6[_0x7bb2ce(0x166)],_0x17acc6);}[_0x5b195c(0x153)](){const _0x137c91=_0x5b195c;this[_0x137c91(0x16c)]={'document':{'enabled':!0x1!==this[_0x137c91(0x12a)]?.[_0x137c91(0x137)]?.[_0x137c91(0x135)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x137c91(0x12a)]?.[_0x137c91(0x164)]?.[_0x137c91(0x135)]},'files':{'enabled':!0x1!==this[_0x137c91(0x12a)]?.[_0x137c91(0x139)]?.[_0x137c91(0x135)]},'sources':this[_0x137c91(0x195)]()},this[_0x137c91(0x171)](_0x137c91(0x10e),{'options':this[_0x137c91(0x16c)]});}[_0x5b195c(0x195)](){const _0xae4c2a=_0x5b195c;return this[_0xae4c2a(0x12a)]?.[_0xae4c2a(0x184)]?.[_0xae4c2a(0x13a)](_0x4e189c=>({..._0x4e189c,'resources':[]}))??[];}[_0x5b195c(0x169)](){const _0x13b03c=_0x5b195c,_0x500c6e=this[_0x13b03c(0x14b)]()||this[_0x13b03c(0x176)]();this[_0x13b03c(0x16c)][_0x13b03c(0x137)][_0x13b03c(0x177)]=_0x500c6e,this[_0x13b03c(0x171)](_0x13b03c(0x10e),{'options':this[_0x13b03c(0x16c)]});}[_0x5b195c(0x145)](_0x11ab36){const _0x5a7904=_0x5b195c;for(const _0x245e8a of this[_0x5a7904(0x154)][_0x5a7904(0x123)]())if(_0x245e8a[_0x5a7904(0x186)]===_0x11ab36)return!0x0;for(const _0x1f632c of this[_0x5a7904(0x12c)][_0x5a7904(0x123)]())if(_0x1f632c[_0x5a7904(0x186)]===_0x11ab36)return!0x0;return!0x1;}[_0x5b195c(0x112)](_0x6a1927){const _0x44832a=_0x5b195c,_0x1ec45a=[];for(const _0x591e76 of this[_0x44832a(0x16c)][_0x44832a(0x184)]){_0x591e76[_0x44832a(0x11e)][_0x44832a(0x188)](_0x308e2a=>_0x308e2a['id']===_0x6a1927)&&_0x1ec45a[_0x44832a(0x14a)](_0x591e76['id']);}return 0x0===_0x1ec45a[_0x44832a(0x150)]?null:_0x1ec45a;}[_0x5b195c(0x10b)](_0x1660a7,_0x511c0a,_0x471d54){const _0x4fcc66=_0x5b195c,_0x15deaf=this[_0x4fcc66(0x16c)][_0x4fcc66(0x184)][_0x4fcc66(0x188)](_0x26d566=>_0x26d566['id']===_0x1660a7);if(!_0x15deaf)return;const _0x402f9a=_0x15deaf[_0x4fcc66(0x11e)][_0x4fcc66(0x188)](_0x57f0ec=>_0x57f0ec['id']===_0x511c0a);_0x402f9a&&(_0x402f9a[_0x4fcc66(0x157)]=_0x471d54,this[_0x4fcc66(0x171)](_0x4fcc66(0x162),{'sourceId':_0x1660a7,'resourceId':_0x511c0a,'isInContext':_0x471d54}));}[_0x5b195c(0x15c)](_0x2434e2){const _0x532203=_0x5b195c;this[_0x532203(0x14c)][_0x532203(0x189)](_0x2434e2,!0x0),this[_0x532203(0x14c)][_0x532203(0x174)]&&this[_0x532203(0x171)](_0x532203(0x114),{'isUploadInProgress':!0x0});}[_0x5b195c(0x17a)](_0x2211d4){const _0x4ed849=_0x5b195c;this[_0x4ed849(0x14c)][_0x4ed849(0x12b)](_0x2211d4),0x0===this[_0x4ed849(0x14c)][_0x4ed849(0x174)]&&this[_0x4ed849(0x171)](_0x4ed849(0x114),{'isUploadInProgress':!0x1});}}function _0x1906(){const _0x4ffa37=['getData','get','FILE','_startUploadOperation','ai-chat-resource-no-data','loadSourceResources','contextItemLoadingEnded','string','getResources','resourceStateChanged','addSelectionToContext','urls','_addContextItem','uiId','removeFromContext','_finishContextItemLoading','_toggleAddCurrentDocumentOptionVisibility','uploadUrl','ai-chat-url-upload-failed','_addContextOptionsState','has','abort','5462380SwhqVl','hidden','fire','file-','sessionId','size','MARKDOWN','isCurrentDocumentInConversation','isHidden','addToConversationContext','contextItemRemoved','_finishUploadOperation','message','ai-chat-file-upload-failed','_ownerId','ai-chat-resource-load-failed','SELECTION','20fUswda','getSentContextItems','url-','abortController','sources','removeSelectionFromContext','resourceId','type','find','set','ai-chat-context-unsupported-type','url','ai-chat-source-resources-load-failed','files-','getPendingContextItems','1051539LQbLzB','_addToConversationContextItem','_ongoingUploads','607788aBbRIQ','sourceResourcesLoaded','isReadOnly','_getCustomSourcesInitialState','73408FxKfCE','contextSent','error','_removeContextItem','_updateResourceInContextState','ai-request-aborted','_mapContextItemToRequestData','addContextOptionsChanged','uploadFile','startsWith','from','_findSourceIdsByResourceId','label','uploadProgressChanged','getId','updateCurrentDocument','selection','TEXT','135244PjBUrw','populateFromMessage','addUrlToContext','data','_connector','resources','15szJMJp','Current\x20document','forEach','getDocument','values','7407333VScBLo','isSelectionInContext','all','stack','code','addResourceToContext','_config','delete','_conversationContextItems','object\x20with\x20content\x20and\x20type\x20properties','addCurrentDocumentToContext','ai-chat-source-not-found','text/html','URL','mapContextItemsToRequestData','fetchDocument','addFilesToContext','enabled','name','document','init','files','map','attributes','DOCUMENT','end','object','ai-chat-document-upload-failed','content','HTML','start','_convertTextResourceToFile','contextItemAdded','_isResourceInContext','145GpCrlz','clearPendingContextItems','text/markdown','127076mEVYoW','push','isCurrentDocumentInContext','_ongoingUploadOperations','uploadDocument','version','_createContextItemFromContent','length','text/plain','File','_setAddContextOptionsDefaultState','_pendingContextItems','filter','ai-chat-context-invalid-data','isInContext','current-document'];_0x1906=function(){return _0x4ffa37;};return _0x1906();}
@@ -1,16 +1,16 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
6
6
  * @module ai/aichat/model/aichatconversation
7
7
  */
8
8
  import { CKEditorError } from 'ckeditor5/src/utils.js';
9
- import { type AIConnector } from '../../aicore/aiconnector.js';
9
+ import type { AIConnector, AIModelData } from '../../aicore/aiconnector.js';
10
10
  import { AIChatContext, type AIChatContextConfig, type AIContextProvider, type AIContextResource, type AIContextResourceState } from './aichatcontext.js';
11
11
  import { type AIContextItem } from '../../aicore/model/aicontext.js';
12
12
  import { AICapabilities, type AICapabilitiesConfig } from '../../aicore/model/aicapabilities.js';
13
- import type { AIChatModel, AIChatModels } from './aichatmodels.js';
13
+ import type { AIModels } from '../../aicore/model/aimodels.js';
14
14
  import { type Editor } from 'ckeditor5/src/core.js';
15
15
  import { AIChatInteraction } from './aichatinteraction.js';
16
16
  import { type AIQuickActionRequestData } from '../../aiquickactions/aiquickactions.js';
@@ -56,7 +56,7 @@ export declare class AIChatConversation extends /* #__PURE__ */ AIChatConversati
56
56
  * This is set when the user selects a model from the list of available models.
57
57
  * If not set, the default model will be used.
58
58
  */
59
- selectedModel?: AIChatModel;
59
+ selectedModel?: AIModelData;
60
60
  /**
61
61
  * Service for managing the conversation context.
62
62
  */
@@ -68,7 +68,7 @@ export declare class AIChatConversation extends /* #__PURE__ */ AIChatConversati
68
68
  /**
69
69
  * Service for providing the list of available AI chat models.
70
70
  */
71
- chatModels: AIChatModels;
71
+ chatModels: AIModels;
72
72
  /**
73
73
  * @inheritDoc
74
74
  */
@@ -184,7 +184,7 @@ export declare class AIChatConversation extends /* #__PURE__ */ AIChatConversati
184
184
  /**
185
185
  * Sets the AI model for the conversation.
186
186
  */
187
- setModel(model: AIChatModel): Promise<void>;
187
+ setModel(model: AIModelData): Promise<void>;
188
188
  }
189
189
  /**
190
190
  * An event emitted by {@link module:ai/aichat/model/aichatconversation~AIChatConversation} when a new interaction is created.
@@ -222,7 +222,7 @@ export type AIChatConversationInitializedEvent = {
222
222
  name: 'conversationInitialized';
223
223
  args: [
224
224
  {
225
- availableModels: Array<AIChatModel>;
225
+ availableModels: Array<AIModelData>;
226
226
  }
227
227
  ];
228
228
  };
@@ -236,7 +236,7 @@ export type AIChatConversationStartedEvent = {
236
236
  args: [
237
237
  {
238
238
  conversationId: string;
239
- selectedModel: AIChatModel;
239
+ selectedModel: AIModelData;
240
240
  }
241
241
  ];
242
242
  };
@@ -249,7 +249,7 @@ export type AIChatConversationModelSelectedEvent = {
249
249
  name: 'modelSelected';
250
250
  args: [
251
251
  {
252
- selectedModel: AIChatModel;
252
+ selectedModel: AIModelData;
253
253
  isDisabled?: boolean;
254
254
  }
255
255
  ];
@@ -259,7 +259,7 @@ export type AIChatConversationModelSelectedEvent = {
259
259
  */
260
260
  export type AIChatConversationOptions = {
261
261
  connector: AIConnector;
262
- chatModels: AIChatModels;
262
+ chatModels: AIModels;
263
263
  getEditor?: () => Editor;
264
264
  conversationId: string;
265
265
  group: string;
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x38b1fd=_0x17a4;(function(_0x3d88ad,_0x5ba9ae){const _0x527888=_0x17a4,_0x1224c0=_0x3d88ad();while(!![]){try{const _0x3e921b=parseInt(_0x527888(0x129))/0x1+parseInt(_0x527888(0x13a))/0x2*(parseInt(_0x527888(0x184))/0x3)+parseInt(_0x527888(0x172))/0x4*(-parseInt(_0x527888(0x13c))/0x5)+-parseInt(_0x527888(0x181))/0x6*(parseInt(_0x527888(0x180))/0x7)+-parseInt(_0x527888(0x13b))/0x8+parseInt(_0x527888(0x155))/0x9+-parseInt(_0x527888(0x148))/0xa*(parseInt(_0x527888(0x130))/0xb);if(_0x3e921b===_0x5ba9ae)break;else _0x1224c0['push'](_0x1224c0['shift']());}catch(_0x1f612d){_0x1224c0['push'](_0x1224c0['shift']());}}}(_0x537c,0x9dc9a));import{CKEditorError as _0x2d0456,EmitterMixin as _0x58ca8d,logWarning as _0x477542}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x25055f}from'../../aicore/model/aiinteraction.js';function _0x537c(){const _0x4297a1=['ai-chat-handle-user-interaction-already-in-progress','getCurrentDocumentContext','toggleWebSearch','isAvailable','capabilities','isCurrentDocumentInConversation','splice','addResourceToContext','_processMessagesToInteractions','fire','modelSelected','getEditor','getDocumentContext','chatContext','group','addSelectionToContext','ai-chat-handle-user-conversation-not-initialized','delegate','removeSelectionFromContext','currentReply','stop','getMessages','getPendingContextItems','isCurrentDocumentInContext','_extractContextItems','461042ItWPkP','start','setConversationTitle','lastInteraction','removeInteraction','addUrlToContext','hasOwn','587455DDGvCx','conversationInitialized','getAvailableModels','quickActionData','chatCapabilities','role','code','sessionId','user','error','989498UBvMWS','3348576LjBcKe','4130WrtCDh','updateCurrentDocument','set','selectedModel','stack','ai-chat-conversation-init-failed','toggleReasoning','addFilesToContext','toLowerCase','attributes','length','isStarted','50NNTKpl','message','model','init','prompt','webSearch','appendContent','chatModels','interactionCreated','title','destroy','isSelectionInContext','ai-chat-handle-user-interaction-start-failed','11025702mFVGst','contextItems','getConversation','connector','type','indexOf','fetchConversation','push','conversationId','modification-delta','text','currentInteraction','text-delta','conversationStarted','reset','createInteraction','createReply','ai-chat-conversation-set-model-null','ai-chat-conversation-already-started','assistant','selectedModelId','ai-chat-conversation-start-failed','addToConversationContext','addCurrentDocumentToContext','fetchConversationMessages','interactions','ai-chat-conversation-set-model-not-available','load','loadSourceResources','1524HwgPNP','content','reasoning','startConversation','ai-chat-conversation-start-no-model-selected','options','removeFromContext','getCapabilitiesConfig','setModel','ai-chat-conversation-init-from-id-failed','getInteraction','updateCurrentDocumentInContext','get','populateFromMessage','7203119CbpXsq','6DSRFgQ','getModel','handleUserInteraction','6TsyfmF','getAll','find'];_0x537c=function(){return _0x4297a1;};return _0x537c();}function _0x17a4(_0x2e9f87,_0x10c86c){const _0x537cb3=_0x537c();return _0x17a4=function(_0x17a4e8,_0x5187b5){_0x17a4e8=_0x17a4e8-0x121;let _0x2cc205=_0x537cb3[_0x17a4e8];return _0x2cc205;},_0x17a4(_0x2e9f87,_0x10c86c);}import{AIChatContext as _0x53f609,AI_CONTEXT_MODEL_EVENT_NAMES as _0x265374}from'./aichatcontext.js';import{AICapabilities as _0x4361b3,CAPABILITIES_MODEL_EVENT_NAMES as _0x323ce9}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0xc77839}from'./aichatinteraction.js';import{errorsMap as _0x2f3650}from'../../errorsmap.js';export class AIChatConversation extends _0x58ca8d(){['id'];[_0x38b1fd(0x147)]=!0x1;[_0x38b1fd(0x16e)]=[];[_0x38b1fd(0x160)];[_0x38b1fd(0x13f)];[_0x38b1fd(0x158)];[_0x38b1fd(0x177)];constructor(_0x5db504){const _0x55493a=_0x38b1fd;super(),this[_0x55493a(0x177)]=_0x5db504,this[_0x55493a(0x158)]=_0x5db504[_0x55493a(0x158)],this[_0x55493a(0x14f)]=_0x5db504[_0x55493a(0x14f)],this['id']=_0x5db504[_0x55493a(0x15d)];}async[_0x38b1fd(0x14b)](_0x52f6f5){const _0x254496=_0x38b1fd;try{this[_0x254496(0x194)]=new _0x53f609({'connector':this[_0x254496(0x158)],'config':_0x52f6f5,'ownerId':this['id']}),this[_0x254496(0x194)][_0x254496(0x121)](..._0x265374)['to'](this),this[_0x254496(0x194)][_0x254496(0x14b)](),this[_0x254496(0x134)]=new _0x4361b3(),this[_0x254496(0x134)][_0x254496(0x121)](..._0x323ce9)['to'](this),this[_0x254496(0x134)][_0x254496(0x14b)]();const _0x22c992=await this[_0x254496(0x14f)][_0x254496(0x132)]();this[_0x254496(0x190)](_0x254496(0x131),{'availableModels':_0x22c992});const _0x2dfebb=await this[_0x254496(0x14f)][_0x254496(0x182)](this[_0x254496(0x177)][_0x254496(0x169)]);_0x2dfebb&&await this[_0x254496(0x17a)](_0x2dfebb);}catch(_0x1af493){const _0x758a8d=new _0x2d0456(_0x254496(0x141),null,{'message':_0x1af493[_0x254496(0x149)]||_0x1af493});_0x758a8d[_0x254496(0x140)]=_0x1af493[_0x254496(0x140)],this[_0x254496(0x190)](_0x254496(0x139),{'error':_0x758a8d});}}async[_0x38b1fd(0x12a)](){const _0x3d6b5b=_0x38b1fd;if(this[_0x3d6b5b(0x147)])throw new _0x2d0456(_0x3d6b5b(0x167),null,{'conversation':this});if(!this[_0x3d6b5b(0x13f)])throw new _0x2d0456(_0x3d6b5b(0x176),null,{'conversation':this});try{const {id:_0x132f93}=await this[_0x3d6b5b(0x158)][_0x3d6b5b(0x175)](this['id'],this[_0x3d6b5b(0x177)][_0x3d6b5b(0x195)])[_0x3d6b5b(0x157)]();this['id']=_0x132f93,this[_0x3d6b5b(0x147)]=!0x0,this[_0x3d6b5b(0x190)](_0x3d6b5b(0x162),{'conversationId':this['id'],'selectedModel':this[_0x3d6b5b(0x13f)]});}catch(_0x3046ba){const _0x42ae78=new _0x2d0456(_0x3d6b5b(0x16a),null,{'message':_0x3046ba[_0x3d6b5b(0x149)],'conversationId':this['id']});throw _0x42ae78[_0x3d6b5b(0x140)]=_0x3046ba[_0x3d6b5b(0x140)],this[_0x3d6b5b(0x190)](_0x3d6b5b(0x139),{'error':_0x42ae78}),_0x42ae78;}}async[_0x38b1fd(0x170)](_0x45fa64,_0x535437){const _0x3c7229=_0x38b1fd;try{const _0x17453c=await this[_0x3c7229(0x158)][_0x3c7229(0x15b)](_0x45fa64)[_0x3c7229(0x157)](),_0xf2102d=await this[_0x3c7229(0x158)][_0x3c7229(0x16d)](_0x45fa64)[_0x3c7229(0x125)](),_0x116c55=_0xf2102d[0x0][_0x3c7229(0x14a)];this[_0x3c7229(0x147)]=!0x0,this['id']=_0x17453c['id'],_0x3c7229(0x151)in _0x17453c?this[_0x3c7229(0x190)](_0x3c7229(0x12b),_0x17453c[_0x3c7229(0x151)],!0x0):this[_0x3c7229(0x190)](_0x3c7229(0x12b),'',!0x0);const _0x2c5b88=(await this[_0x3c7229(0x14f)][_0x3c7229(0x185)]())[_0x3c7229(0x186)](_0x3c219d=>_0x3c219d['id'][_0x3c7229(0x144)]()===_0x116c55[_0x3c7229(0x144)]());return this[_0x3c7229(0x13f)]=_0x2c5b88,this[_0x3c7229(0x190)](_0x3c7229(0x191),{'selectedModel':_0x2c5b88,'isDisabled':!0x0}),await this[_0x3c7229(0x18f)](_0xf2102d,_0x535437,_0x116c55),this[_0x3c7229(0x160)]=void 0x0,this;}catch(_0x128a86){const _0x4ef02a=new _0x2d0456(_0x3c7229(0x17b),null,{'message':_0x128a86[_0x3c7229(0x149)],'conversationId':_0x45fa64});throw _0x4ef02a[_0x3c7229(0x140)]=_0x128a86[_0x3c7229(0x140)],this[_0x3c7229(0x190)](_0x3c7229(0x139),{'error':_0x4ef02a}),_0x4ef02a;}}async[_0x38b1fd(0x18f)](_0x347c07,_0x4cba4b,_0xcb348b){const _0x56ae86=_0x38b1fd;let _0x55098f;for(const _0x5701ed of _0x347c07)if(_0x56ae86(0x138)===_0x5701ed[_0x56ae86(0x135)]){const _0xf867d5=await this[_0x56ae86(0x128)](_0x5701ed),_0x342a59={'isReasoningEnabled':Object[_0x56ae86(0x12f)](_0x5701ed[_0x56ae86(0x18b)],_0x56ae86(0x174)),'isWebSearchEnabled':Object[_0x56ae86(0x12f)](_0x5701ed[_0x56ae86(0x18b)],_0x56ae86(0x14d))};_0x55098f=this[_0x56ae86(0x164)]({'userMessage':_0x5701ed[_0x56ae86(0x14c)],'contextItems':_0xf867d5,'capabilities':_0x342a59,'modelId':_0xcb348b,'quickActionData':_0x5701ed[_0x56ae86(0x145)]?.[_0x56ae86(0x133)]}),this[_0x56ae86(0x160)]=_0x55098f,this[_0x56ae86(0x194)][_0x56ae86(0x16b)](this[_0x56ae86(0x160)][_0x56ae86(0x156)]);}else{if(_0x56ae86(0x168)===_0x5701ed[_0x56ae86(0x135)]&&_0x55098f)for(const _0x1144b0 of _0x5701ed[_0x56ae86(0x173)]){const _0x1da5b9=_0x56ae86(0x15f)===_0x1144b0[_0x56ae86(0x159)]?_0x56ae86(0x161):_0x56ae86(0x15e),_0x3fc9ba=_0x55098f[_0x56ae86(0x193)]()?.[_0x56ae86(0x137)]!==_0x4cba4b;_0x55098f[_0x56ae86(0x123)]=_0x55098f[_0x56ae86(0x165)]({'type':_0x1da5b9,'isDone':!0x0,'interactionId':_0x55098f['id'],'areActionsDisabled':_0x3fc9ba}),_0x55098f[_0x56ae86(0x123)][_0x56ae86(0x14e)](_0x1144b0[_0x56ae86(0x173)]);}}}async[_0x38b1fd(0x128)](_0x51777b){const _0x53dc40=_0x38b1fd,_0x4f00bf=new Map();if(!_0x51777b[_0x53dc40(0x173)])return _0x4f00bf;for(const _0x400027 of _0x51777b[_0x53dc40(0x173)]){const _0x2540a4=await this[_0x53dc40(0x194)][_0x53dc40(0x17f)](_0x400027);_0x2540a4&&_0x4f00bf[_0x53dc40(0x13e)](_0x2540a4['id'],_0x2540a4);}return _0x4f00bf;}async[_0x38b1fd(0x183)]({userMessage:_0x591939,quickActionData:_0x3a13a8}){const _0x54275a=_0x38b1fd;if(!this[_0x54275a(0x147)])throw new _0x2d0456(_0x54275a(0x197),null,{'conversation':this});if(this[_0x54275a(0x160)])throw new _0x2d0456(_0x54275a(0x187),null,{'conversation':this});try{const _0x584b3f=this[_0x54275a(0x194)][_0x54275a(0x126)](),_0x365c16=this[_0x54275a(0x134)][_0x54275a(0x179)](),_0x452d75=this[_0x54275a(0x13f)]['id'];this[_0x54275a(0x160)]=this[_0x54275a(0x164)]({'userMessage':_0x591939,'contextItems':_0x584b3f,'capabilities':_0x365c16,'modelId':_0x452d75,'quickActionData':_0x3a13a8}),await this[_0x54275a(0x160)][_0x54275a(0x12a)](),this[_0x54275a(0x194)][_0x54275a(0x16b)](this[_0x54275a(0x160)][_0x54275a(0x156)]);}catch(_0x4b16ba){if(_0x4b16ba instanceof _0x2d0456)this[_0x54275a(0x190)](_0x54275a(0x139),{'interactionId':this[_0x54275a(0x160)]?this[_0x54275a(0x160)]['id']:void 0x0,'error':_0x4b16ba});else{const _0x234fd3=_0x2f3650[_0x54275a(0x17e)](_0x4b16ba[_0x54275a(0x136)])||_0x54275a(0x154);this[_0x54275a(0x190)](_0x54275a(0x139),{'interactionId':this[_0x54275a(0x160)]?this[_0x54275a(0x160)]['id']:void 0x0,'error':new _0x2d0456(_0x234fd3,null,{'error':_0x4b16ba})});}}finally{this[_0x54275a(0x160)]?.[_0x54275a(0x124)](),this[_0x54275a(0x160)]=void 0x0;}}[_0x38b1fd(0x164)]({userMessage:_0x5be2ba,contextItems:_0x4750ca,capabilities:_0x3aca1b,modelId:_0x5c7974,quickActionData:_0x22fc87}){const _0x327b81=_0x38b1fd,_0xac3a56=new _0xc77839({'userMessage':_0x5be2ba,'contextItems':_0x4750ca,'capabilities':_0x3aca1b,'conversationId':this['id'],'connector':this[_0x327b81(0x158)],'editor':this[_0x327b81(0x177)][_0x327b81(0x192)]&&this[_0x327b81(0x177)][_0x327b81(0x192)](),'model':_0x5c7974,'quickActionData':_0x22fc87});return _0xac3a56[_0x327b81(0x121)](..._0x25055f)['to'](this),this[_0x327b81(0x16e)][_0x327b81(0x15c)](_0xac3a56),this[_0x327b81(0x190)](_0x327b81(0x150),_0xac3a56),_0xac3a56;}[_0x38b1fd(0x17c)](_0x62ef55){const _0x14162d=_0x38b1fd;return this[_0x14162d(0x16e)][_0x14162d(0x186)](_0x5843f0=>_0x5843f0['id']===_0x62ef55);}[_0x38b1fd(0x12d)](_0x278831){const _0x74d961=_0x38b1fd,_0x357110=this[_0x74d961(0x17c)](_0x278831);_0x357110&&(_0x357110[_0x74d961(0x152)](),this[_0x74d961(0x16e)][_0x74d961(0x18d)](this[_0x74d961(0x16e)][_0x74d961(0x15a)](_0x357110),0x1));}get[_0x38b1fd(0x12c)](){const _0x2c06d1=_0x38b1fd;return this[_0x2c06d1(0x16e)][this[_0x2c06d1(0x16e)][_0x2c06d1(0x146)]-0x1];}[_0x38b1fd(0x16c)](_0x289c9e){const _0x2f0fc4=_0x38b1fd;this[_0x2f0fc4(0x194)][_0x2f0fc4(0x16c)](_0x289c9e);}async[_0x38b1fd(0x17d)]({content:_0x7c8fda,version:_0x58961c,sessionId:_0x4a725e,selections:_0x4cf9de}){const _0x481148=_0x38b1fd;await this[_0x481148(0x194)][_0x481148(0x13d)](_0x7c8fda,_0x58961c,_0x4a725e,_0x4cf9de);}[_0x38b1fd(0x188)](){const _0x1c67bb=_0x38b1fd;return this[_0x1c67bb(0x160)]?.[_0x1c67bb(0x193)]()?.[_0x1c67bb(0x173)]||'';}[_0x38b1fd(0x196)](_0x2b6478){const _0x3936fc=_0x38b1fd;this[_0x3936fc(0x194)][_0x3936fc(0x196)](_0x2b6478);}[_0x38b1fd(0x122)](){const _0x29dfd7=_0x38b1fd;this[_0x29dfd7(0x194)][_0x29dfd7(0x122)]();}[_0x38b1fd(0x143)](_0x37b7d1){const _0xe777d=_0x38b1fd;this[_0xe777d(0x194)][_0xe777d(0x143)](_0x37b7d1);}[_0x38b1fd(0x12e)](_0x3fdcf1){const _0x14002e=_0x38b1fd;this[_0x14002e(0x194)][_0x14002e(0x12e)](_0x3fdcf1);}[_0x38b1fd(0x18e)](_0x3f050b,_0x50dc6c){const _0x5d275d=_0x38b1fd;this[_0x5d275d(0x194)][_0x5d275d(0x18e)](_0x3f050b,_0x50dc6c);}[_0x38b1fd(0x171)](_0x5e614b,_0x5bb7e3,_0x453d8d){const _0x273bd4=_0x38b1fd;return this[_0x273bd4(0x194)][_0x273bd4(0x171)](_0x5e614b,_0x5bb7e3,_0x453d8d);}[_0x38b1fd(0x178)](_0x567d77){const _0x4fb199=_0x38b1fd;this[_0x4fb199(0x194)][_0x4fb199(0x178)](_0x567d77);}[_0x38b1fd(0x189)](){const _0x2bd45c=_0x38b1fd;this[_0x2bd45c(0x134)][_0x2bd45c(0x189)]();}[_0x38b1fd(0x142)](){const _0x5e4680=_0x38b1fd;this[_0x5e4680(0x134)][_0x5e4680(0x142)]();}[_0x38b1fd(0x127)](){const _0x3dceae=_0x38b1fd;return this[_0x3dceae(0x194)][_0x3dceae(0x127)]();}[_0x38b1fd(0x18c)](){const _0x2255c9=_0x38b1fd;return this[_0x2255c9(0x194)][_0x2255c9(0x18c)]();}[_0x38b1fd(0x153)](){const _0x249a29=_0x38b1fd;return this[_0x249a29(0x194)][_0x249a29(0x153)]();}async[_0x38b1fd(0x17a)](_0x3f5be5){const _0x2aa840=_0x38b1fd;_0x3f5be5?!0x1===await this[_0x2aa840(0x14f)][_0x2aa840(0x18a)](_0x3f5be5)&&(_0x477542(_0x2aa840(0x16f),{'conversation':this,'model':_0x3f5be5}),_0x3f5be5=(await this[_0x2aa840(0x14f)][_0x2aa840(0x132)]())[0x0]):(_0x477542(_0x2aa840(0x166),{'conversation':this}),_0x3f5be5=(await this[_0x2aa840(0x14f)][_0x2aa840(0x132)]())[0x0]),_0x3f5be5['id']!==this[_0x2aa840(0x13f)]?.['id']&&(this[_0x2aa840(0x13f)]=_0x3f5be5,this[_0x2aa840(0x134)][_0x2aa840(0x163)](),this[_0x2aa840(0x190)](_0x2aa840(0x191),{'selectedModel':_0x3f5be5}));}}
23
+ const _0xa4e42=_0x581b;(function(_0x406f51,_0x452903){const _0x1ebb23=_0x581b,_0x58ae33=_0x406f51();while(!![]){try{const _0x26dc56=-parseInt(_0x1ebb23(0xf7))/0x1+-parseInt(_0x1ebb23(0x12a))/0x2+-parseInt(_0x1ebb23(0xf5))/0x3*(-parseInt(_0x1ebb23(0x14d))/0x4)+-parseInt(_0x1ebb23(0x115))/0x5+-parseInt(_0x1ebb23(0x139))/0x6+parseInt(_0x1ebb23(0x11f))/0x7*(-parseInt(_0x1ebb23(0xde))/0x8)+-parseInt(_0x1ebb23(0x136))/0x9*(-parseInt(_0x1ebb23(0x131))/0xa);if(_0x26dc56===_0x452903)break;else _0x58ae33['push'](_0x58ae33['shift']());}catch(_0x1c46d2){_0x58ae33['push'](_0x58ae33['shift']());}}}(_0x1f8c,0x22883));import{CKEditorError as _0x21c9b8,EmitterMixin as _0xd3d689,logWarning as _0x5bed54}from'ckeditor5/src/utils.js';function _0x581b(_0x118524,_0x329bf0){const _0x1f8c8b=_0x1f8c();return _0x581b=function(_0x581b05,_0x423725){_0x581b05=_0x581b05-0xdc;let _0x1126a8=_0x1f8c8b[_0x581b05];return _0x1126a8;},_0x581b(_0x118524,_0x329bf0);}import{AI_MODEL_EVENT_NAMES as _0x1240ce}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x3ce10c,AI_CONTEXT_MODEL_EVENT_NAMES as _0x58535d}from'./aichatcontext.js';import{AICapabilities as _0x3b2d76,CAPABILITIES_MODEL_EVENT_NAMES as _0x5b1c76}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x3914d9}from'./aichatinteraction.js';import{errorsMap as _0x5226d4}from'../../errorsmap.js';function _0x1f8c(){const _0x5916e4=['conversationInitialized','error','getEditor','addSelectionToContext','_extractContextItems','conversationStarted','user','490443AbRuCX','setModel','157630GSeNuq','reasoning','fetchConversation','connector','modelSelected','fetchConversationMessages','sessionId','chatCapabilities','ai-chat-conversation-set-model-null','prompt','content','createInteraction','destroy','options','toggleReasoning','interactionCreated','toggleWebSearch','reset','ai-chat-conversation-init-failed','ai-chat-conversation-start-no-model-selected','appendContent','handleUserInteraction','text-delta','contextItems','loadSourceResources','addUrlToContext','start','stack','get','conversationId','735155rzFNzw','getCurrentDocumentContext','getCapabilitiesConfig','model','ai-chat-conversation-set-model-not-available','init','webSearch','getDocumentContext','createReply','delegate','5299uXhcHm','attributes','selectedModel','push','getPendingContextItems','updateCurrentDocument','isCurrentDocumentInContext','chatContext','isStarted','load','getMessages','470688Vkomtl','indexOf','group','fire','length','ai-chat-conversation-already-started','code','3860460mXKUlD','addFilesToContext','addToConversationContext','addResourceToContext','getAll','18xxVOSK','populateFromMessage','currentInteraction','1265856hOTBaU','ai-chat-conversation-start-failed','selectedModelId','hasOwn','removeSelectionFromContext','interactions','getConversation','quickActionData','isCurrentDocumentInConversation','find','role','set','getModel','currentReply','text','getInteraction','isSelectionInContext','lastInteraction','modification-delta','stop','4RPSIYZ','toLowerCase','ai-chat-conversation-init-from-id-failed','ai-chat-handle-user-interaction-already-in-progress','updateCurrentDocumentInContext','_processMessagesToInteractions','title','456InmQEe','startConversation','ai-chat-handle-user-interaction-start-failed','message','getAvailableModels','capabilities','type','addCurrentDocumentToContext','chatModels','splice','setConversationTitle','removeFromContext','isAvailable','ai-chat-handle-user-conversation-not-initialized','assistant','removeInteraction'];_0x1f8c=function(){return _0x5916e4;};return _0x1f8c();}export class AIChatConversation extends _0xd3d689(){['id'];[_0xa4e42(0x127)]=!0x1;[_0xa4e42(0x13e)]=[];[_0xa4e42(0x138)];[_0xa4e42(0x121)];[_0xa4e42(0xfa)];[_0xa4e42(0x104)];constructor(_0x4920ed){const _0x8bf488=_0xa4e42;super(),this[_0x8bf488(0x104)]=_0x4920ed,this[_0x8bf488(0xfa)]=_0x4920ed[_0x8bf488(0xfa)],this[_0x8bf488(0xe6)]=_0x4920ed[_0x8bf488(0xe6)],this['id']=_0x4920ed[_0x8bf488(0x114)];}async[_0xa4e42(0x11a)](_0x230381){const _0x3adfb9=_0xa4e42;try{this[_0x3adfb9(0x126)]=new _0x3ce10c({'connector':this[_0x3adfb9(0xfa)],'config':_0x230381,'ownerId':this['id']}),this[_0x3adfb9(0x126)][_0x3adfb9(0x11e)](..._0x58535d)['to'](this),this[_0x3adfb9(0x126)][_0x3adfb9(0x11a)](),this[_0x3adfb9(0xfe)]=new _0x3b2d76(),this[_0x3adfb9(0xfe)][_0x3adfb9(0x11e)](..._0x5b1c76)['to'](this),this[_0x3adfb9(0xfe)][_0x3adfb9(0x11a)]();const _0x12739a=await this[_0x3adfb9(0xe6)][_0x3adfb9(0xe2)]();this[_0x3adfb9(0x12d)](_0x3adfb9(0xee),{'availableModels':_0x12739a});const _0x3c2897=await this[_0x3adfb9(0xe6)][_0x3adfb9(0x145)](this[_0x3adfb9(0x104)][_0x3adfb9(0x13b)]);_0x3c2897&&await this[_0x3adfb9(0xf6)](_0x3c2897);}catch(_0x4dc144){const _0x2bc933=new _0x21c9b8(_0x3adfb9(0x109),null,{'message':_0x4dc144[_0x3adfb9(0xe1)]||_0x4dc144});_0x2bc933[_0x3adfb9(0x112)]=_0x4dc144[_0x3adfb9(0x112)],this[_0x3adfb9(0x12d)](_0x3adfb9(0xef),{'error':_0x2bc933});}}async[_0xa4e42(0x111)](){const _0x590975=_0xa4e42;if(this[_0x590975(0x127)])throw new _0x21c9b8(_0x590975(0x12f),null,{'conversation':this});if(!this[_0x590975(0x121)])throw new _0x21c9b8(_0x590975(0x10a),null,{'conversation':this});try{const {id:_0x330671}=await this[_0x590975(0xfa)][_0x590975(0xdf)](this['id'],this[_0x590975(0x104)][_0x590975(0x12c)])[_0x590975(0x13f)]();this['id']=_0x330671,this[_0x590975(0x127)]=!0x0,this[_0x590975(0x12d)](_0x590975(0xf3),{'conversationId':this['id'],'selectedModel':this[_0x590975(0x121)]});}catch(_0x2ff0f3){const _0x426efb=new _0x21c9b8(_0x590975(0x13a),null,{'message':_0x2ff0f3[_0x590975(0xe1)],'conversationId':this['id']});throw _0x426efb[_0x590975(0x112)]=_0x2ff0f3[_0x590975(0x112)],this[_0x590975(0x12d)](_0x590975(0xef),{'error':_0x426efb}),_0x426efb;}}async[_0xa4e42(0x128)](_0x18729b,_0x570148){const _0x2fc34d=_0xa4e42;try{const _0x6e1580=await this[_0x2fc34d(0xfa)][_0x2fc34d(0xf9)](_0x18729b)[_0x2fc34d(0x13f)](),_0x38ccc4=await this[_0x2fc34d(0xfa)][_0x2fc34d(0xfc)](_0x18729b)[_0x2fc34d(0x129)](),_0x6364b2=_0x38ccc4[0x0][_0x2fc34d(0x118)];this[_0x2fc34d(0x127)]=!0x0,this['id']=_0x6e1580['id'],_0x2fc34d(0xdd)in _0x6e1580?this[_0x2fc34d(0x12d)](_0x2fc34d(0xe8),_0x6e1580[_0x2fc34d(0xdd)],!0x0):this[_0x2fc34d(0x12d)](_0x2fc34d(0xe8),'',!0x0);const _0x3317c4=(await this[_0x2fc34d(0xe6)][_0x2fc34d(0x135)]())[_0x2fc34d(0x142)](_0x7132db=>_0x7132db['id'][_0x2fc34d(0x14e)]()===_0x6364b2[_0x2fc34d(0x14e)]());return this[_0x2fc34d(0x121)]=_0x3317c4,this[_0x2fc34d(0x12d)](_0x2fc34d(0xfb),{'selectedModel':_0x3317c4,'isDisabled':!0x0}),await this[_0x2fc34d(0xdc)](_0x38ccc4,_0x570148,_0x6364b2),this[_0x2fc34d(0x138)]=void 0x0,this;}catch(_0x20cd49){const _0x5813b5=new _0x21c9b8(_0x2fc34d(0x14f),null,{'message':_0x20cd49[_0x2fc34d(0xe1)],'conversationId':_0x18729b});throw _0x5813b5[_0x2fc34d(0x112)]=_0x20cd49[_0x2fc34d(0x112)],this[_0x2fc34d(0x12d)](_0x2fc34d(0xef),{'error':_0x5813b5}),_0x5813b5;}}async[_0xa4e42(0xdc)](_0x3c1f38,_0x4c1a9c,_0x426bea){const _0x2baf7c=_0xa4e42;let _0x38dab7;for(const _0x27a10f of _0x3c1f38)if(_0x2baf7c(0xf4)===_0x27a10f[_0x2baf7c(0x143)]){const _0x25d68c=await this[_0x2baf7c(0xf2)](_0x27a10f),_0x4f36b6={'isReasoningEnabled':Object[_0x2baf7c(0x13c)](_0x27a10f[_0x2baf7c(0xe3)],_0x2baf7c(0xf8)),'isWebSearchEnabled':Object[_0x2baf7c(0x13c)](_0x27a10f[_0x2baf7c(0xe3)],_0x2baf7c(0x11b))};_0x38dab7=this[_0x2baf7c(0x102)]({'userMessage':_0x27a10f[_0x2baf7c(0x100)],'contextItems':_0x25d68c,'capabilities':_0x4f36b6,'modelId':_0x426bea,'quickActionData':_0x27a10f[_0x2baf7c(0x120)]?.[_0x2baf7c(0x140)]}),this[_0x2baf7c(0x138)]=_0x38dab7,this[_0x2baf7c(0x126)][_0x2baf7c(0x133)](this[_0x2baf7c(0x138)][_0x2baf7c(0x10e)]);}else{if(_0x2baf7c(0xec)===_0x27a10f[_0x2baf7c(0x143)]&&_0x38dab7)for(const _0x50e057 of _0x27a10f[_0x2baf7c(0x101)]){const _0x1fccb8=_0x2baf7c(0x147)===_0x50e057[_0x2baf7c(0xe4)]?_0x2baf7c(0x10d):_0x2baf7c(0x14b),_0x2f0730=_0x38dab7[_0x2baf7c(0x11c)]()?.[_0x2baf7c(0xfd)]!==_0x4c1a9c;_0x38dab7[_0x2baf7c(0x146)]=_0x38dab7[_0x2baf7c(0x11d)]({'type':_0x1fccb8,'isDone':!0x0,'interactionId':_0x38dab7['id'],'areActionsDisabled':_0x2f0730}),_0x38dab7[_0x2baf7c(0x146)][_0x2baf7c(0x10b)](_0x50e057[_0x2baf7c(0x101)]);}}}async[_0xa4e42(0xf2)](_0x1aab04){const _0x6ef330=_0xa4e42,_0x140fc0=new Map();if(!_0x1aab04[_0x6ef330(0x101)])return _0x140fc0;for(const _0x3d973a of _0x1aab04[_0x6ef330(0x101)]){const _0x56b808=await this[_0x6ef330(0x126)][_0x6ef330(0x137)](_0x3d973a);_0x56b808&&_0x140fc0[_0x6ef330(0x144)](_0x56b808['id'],_0x56b808);}return _0x140fc0;}async[_0xa4e42(0x10c)]({userMessage:_0xd32564,quickActionData:_0x4d36ec}){const _0x12bb99=_0xa4e42;if(!this[_0x12bb99(0x127)])throw new _0x21c9b8(_0x12bb99(0xeb),null,{'conversation':this});if(this[_0x12bb99(0x138)])throw new _0x21c9b8(_0x12bb99(0x150),null,{'conversation':this});try{const _0x332658=this[_0x12bb99(0x126)][_0x12bb99(0x123)](),_0x24c50f=this[_0x12bb99(0xfe)][_0x12bb99(0x117)](),_0x3171f9=this[_0x12bb99(0x121)]['id'];this[_0x12bb99(0x138)]=this[_0x12bb99(0x102)]({'userMessage':_0xd32564,'contextItems':_0x332658,'capabilities':_0x24c50f,'modelId':_0x3171f9,'quickActionData':_0x4d36ec}),await this[_0x12bb99(0x138)][_0x12bb99(0x111)](),this[_0x12bb99(0x126)][_0x12bb99(0x133)](this[_0x12bb99(0x138)][_0x12bb99(0x10e)]);}catch(_0x5ac8fa){if(_0x5ac8fa instanceof _0x21c9b8)this[_0x12bb99(0x12d)](_0x12bb99(0xef),{'interactionId':this[_0x12bb99(0x138)]?this[_0x12bb99(0x138)]['id']:void 0x0,'error':_0x5ac8fa});else{const _0x5d5cf3=_0x5226d4[_0x12bb99(0x113)](_0x5ac8fa[_0x12bb99(0x130)])||_0x12bb99(0xe0);this[_0x12bb99(0x12d)](_0x12bb99(0xef),{'interactionId':this[_0x12bb99(0x138)]?this[_0x12bb99(0x138)]['id']:void 0x0,'error':new _0x21c9b8(_0x5d5cf3,null,{'error':_0x5ac8fa})});}}finally{this[_0x12bb99(0x138)]?.[_0x12bb99(0x14c)](),this[_0x12bb99(0x138)]=void 0x0;}}[_0xa4e42(0x102)]({userMessage:_0x330cf9,contextItems:_0x54b7a7,capabilities:_0x3f2452,modelId:_0x368850,quickActionData:_0x26e091}){const _0x3ec4de=_0xa4e42,_0x5035bd=new _0x3914d9({'userMessage':_0x330cf9,'contextItems':_0x54b7a7,'capabilities':_0x3f2452,'conversationId':this['id'],'connector':this[_0x3ec4de(0xfa)],'editor':this[_0x3ec4de(0x104)][_0x3ec4de(0xf0)]&&this[_0x3ec4de(0x104)][_0x3ec4de(0xf0)](),'model':_0x368850,'quickActionData':_0x26e091});return _0x5035bd[_0x3ec4de(0x11e)](..._0x1240ce)['to'](this),this[_0x3ec4de(0x13e)][_0x3ec4de(0x122)](_0x5035bd),this[_0x3ec4de(0x12d)](_0x3ec4de(0x106),_0x5035bd),_0x5035bd;}[_0xa4e42(0x148)](_0x1de15a){const _0x1dcd9a=_0xa4e42;return this[_0x1dcd9a(0x13e)][_0x1dcd9a(0x142)](_0x41ee19=>_0x41ee19['id']===_0x1de15a);}[_0xa4e42(0xed)](_0x3d25b8){const _0x1ece33=_0xa4e42,_0x51d1c3=this[_0x1ece33(0x148)](_0x3d25b8);_0x51d1c3&&(_0x51d1c3[_0x1ece33(0x103)](),this[_0x1ece33(0x13e)][_0x1ece33(0xe7)](this[_0x1ece33(0x13e)][_0x1ece33(0x12b)](_0x51d1c3),0x1));}get[_0xa4e42(0x14a)](){const _0x179428=_0xa4e42;return this[_0x179428(0x13e)][this[_0x179428(0x13e)][_0x179428(0x12e)]-0x1];}[_0xa4e42(0xe5)](_0x55bda9){const _0x3972b8=_0xa4e42;this[_0x3972b8(0x126)][_0x3972b8(0xe5)](_0x55bda9);}async[_0xa4e42(0x151)]({content:_0x51fc84,version:_0x1fdb91,sessionId:_0x3b20ff,selections:_0x539e3c}){const _0x2db046=_0xa4e42;await this[_0x2db046(0x126)][_0x2db046(0x124)](_0x51fc84,_0x1fdb91,_0x3b20ff,_0x539e3c);}[_0xa4e42(0x116)](){const _0x3c724c=_0xa4e42;return this[_0x3c724c(0x138)]?.[_0x3c724c(0x11c)]()?.[_0x3c724c(0x101)]||'';}[_0xa4e42(0xf1)](_0x3423aa){const _0x359abd=_0xa4e42;this[_0x359abd(0x126)][_0x359abd(0xf1)](_0x3423aa);}[_0xa4e42(0x13d)](){const _0x5ae355=_0xa4e42;this[_0x5ae355(0x126)][_0x5ae355(0x13d)]();}[_0xa4e42(0x132)](_0xccd401){const _0xde6eb2=_0xa4e42;this[_0xde6eb2(0x126)][_0xde6eb2(0x132)](_0xccd401);}[_0xa4e42(0x110)](_0x2c1bbd){const _0x483809=_0xa4e42;this[_0x483809(0x126)][_0x483809(0x110)](_0x2c1bbd);}[_0xa4e42(0x134)](_0x309202,_0x584b9f){const _0x327444=_0xa4e42;this[_0x327444(0x126)][_0x327444(0x134)](_0x309202,_0x584b9f);}[_0xa4e42(0x10f)](_0x3f9453,_0x473127,_0x2bf3e6){const _0x81b5ea=_0xa4e42;return this[_0x81b5ea(0x126)][_0x81b5ea(0x10f)](_0x3f9453,_0x473127,_0x2bf3e6);}[_0xa4e42(0xe9)](_0x6c1c64){const _0x7af457=_0xa4e42;this[_0x7af457(0x126)][_0x7af457(0xe9)](_0x6c1c64);}[_0xa4e42(0x107)](){const _0x797e53=_0xa4e42;this[_0x797e53(0xfe)][_0x797e53(0x107)]();}[_0xa4e42(0x105)](){const _0x5a3b55=_0xa4e42;this[_0x5a3b55(0xfe)][_0x5a3b55(0x105)]();}[_0xa4e42(0x125)](){const _0x31302e=_0xa4e42;return this[_0x31302e(0x126)][_0x31302e(0x125)]();}[_0xa4e42(0x141)](){const _0x2a7b78=_0xa4e42;return this[_0x2a7b78(0x126)][_0x2a7b78(0x141)]();}[_0xa4e42(0x149)](){const _0x5a9520=_0xa4e42;return this[_0x5a9520(0x126)][_0x5a9520(0x149)]();}async[_0xa4e42(0xf6)](_0x35c38a){const _0x20a1f2=_0xa4e42;_0x35c38a?!0x1===await this[_0x20a1f2(0xe6)][_0x20a1f2(0xea)](_0x35c38a)&&(_0x5bed54(_0x20a1f2(0x119),{'conversation':this,'model':_0x35c38a}),_0x35c38a=(await this[_0x20a1f2(0xe6)][_0x20a1f2(0xe2)]())[0x0]):(_0x5bed54(_0x20a1f2(0xff),{'conversation':this}),_0x35c38a=(await this[_0x20a1f2(0xe6)][_0x20a1f2(0xe2)]())[0x0]),_0x35c38a['id']!==this[_0x20a1f2(0x121)]?.['id']&&(this[_0x20a1f2(0x121)]=_0x35c38a,this[_0x20a1f2(0xfe)][_0x20a1f2(0x108)](),this[_0x20a1f2(0x12d)](_0x20a1f2(0xfb),{'selectedModel':_0x35c38a}));}}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x48a82f=_0x3132;(function(_0x5d8630,_0x55440c){var _0x362806=_0x3132,_0x175ced=_0x5d8630();while(!![]){try{var _0x57afc0=parseInt(_0x362806(0x1f4))/0x1+-parseInt(_0x362806(0x204))/0x2+parseInt(_0x362806(0x1f5))/0x3+parseInt(_0x362806(0x1fc))/0x4*(parseInt(_0x362806(0x203))/0x5)+parseInt(_0x362806(0x1ff))/0x6*(parseInt(_0x362806(0x200))/0x7)+parseInt(_0x362806(0x1f7))/0x8*(parseInt(_0x362806(0x207))/0x9)+-parseInt(_0x362806(0x1fe))/0xa;if(_0x57afc0===_0x55440c)break;else _0x175ced['push'](_0x175ced['shift']());}catch(_0x231371){_0x175ced['push'](_0x175ced['shift']());}}}(_0x58e1,0xb3e04));function _0x58e1(){var _0x4454ca=['785kRgisv','2801818FjQDKU','current-document','getDocumentContext','12328092LqKRaw','userMessage','quickActionData','contextItems','connector','1278997PlHDkc','3816063TxBPnG','capabilities','8DnlTXc','sendRequest','getCapabilitiesRequestData','get','queryAssistant','18832VCcwtw','model','33856470vGLRBe','62412OmFAEg','581MWFWov','conversationId','mapContextItemsToRequestData'];_0x58e1=function(){return _0x4454ca;};return _0x58e1();}function _0x3132(_0x458dc7,_0x4c3f0a){var _0x58e174=_0x58e1();return _0x3132=function(_0x313227,_0xeab68c){_0x313227=_0x313227-0x1f4;var _0x4b2614=_0x58e174[_0x313227];return _0x4b2614;},_0x3132(_0x458dc7,_0x4c3f0a);}import{AICapabilities as _0x4c81ea}from'../../aicore/model/aicapabilities.js';import{AIInteraction as _0x560663}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x3a8db0}from'./aichatcontext.js';export class AIChatInteraction extends _0x560663{[_0x48a82f(0x208)];[_0x48a82f(0x201)];[_0x48a82f(0x20a)]=new Map();[_0x48a82f(0x1fd)];[_0x48a82f(0x209)];constructor(_0x327a72){var _0x472a6e=_0x48a82f;super(_0x327a72),this[_0x472a6e(0x201)]=_0x327a72[_0x472a6e(0x201)],this[_0x472a6e(0x20a)]=_0x327a72[_0x472a6e(0x20a)],this[_0x472a6e(0x1f6)]=_0x327a72[_0x472a6e(0x1f6)],this[_0x472a6e(0x208)]=_0x327a72[_0x472a6e(0x208)],this[_0x472a6e(0x1fd)]=_0x327a72[_0x472a6e(0x1fd)],this[_0x472a6e(0x209)]=_0x327a72[_0x472a6e(0x209)];}async[_0x48a82f(0x1f8)](){var _0x229e1a=_0x48a82f;return this[_0x229e1a(0x20b)][_0x229e1a(0x1fb)]({'message':this[_0x229e1a(0x208)],'conversationId':this[_0x229e1a(0x201)],'parts':_0x3a8db0[_0x229e1a(0x202)](this[_0x229e1a(0x20a)]),'capabilities':_0x4c81ea[_0x229e1a(0x1f9)](this[_0x229e1a(0x1f6)]),'model':this[_0x229e1a(0x1fd)],'quickActionData':this[_0x229e1a(0x209)]});}[_0x48a82f(0x206)](){var _0x339d5d=_0x48a82f;return this[_0x339d5d(0x20a)][_0x339d5d(0x1fa)](_0x339d5d(0x205));}}
23
+ var _0x599604=_0x5448;(function(_0x59691a,_0x18b1f0){var _0x15b2d2=_0x5448,_0x336708=_0x59691a();while(!![]){try{var _0x592a23=parseInt(_0x15b2d2(0xcb))/0x1*(-parseInt(_0x15b2d2(0xe0))/0x2)+-parseInt(_0x15b2d2(0xda))/0x3*(parseInt(_0x15b2d2(0xd6))/0x4)+parseInt(_0x15b2d2(0xcd))/0x5*(parseInt(_0x15b2d2(0xdd))/0x6)+-parseInt(_0x15b2d2(0xd1))/0x7+-parseInt(_0x15b2d2(0xe1))/0x8+-parseInt(_0x15b2d2(0xd7))/0x9+-parseInt(_0x15b2d2(0xde))/0xa*(-parseInt(_0x15b2d2(0xd0))/0xb);if(_0x592a23===_0x18b1f0)break;else _0x336708['push'](_0x336708['shift']());}catch(_0x3ba482){_0x336708['push'](_0x336708['shift']());}}}(_0x4c6c,0xa5622));import{AICapabilities as _0x4a9f99}from'../../aicore/model/aicapabilities.js';function _0x4c6c(){var _0x592c2b=['getCapabilitiesRequestData','363nddrfB','1307712KvFifx','getDocumentContext','contextItems','get','mapContextItemsToRequestData','4RzQBGy','2848185XNmupK','queryAssistant','quickActionData','3137955jBanTH','capabilities','model','6AeBQwz','856880GJryFV','sendRequest','6TPybyn','2089904mqDcQa','conversationId','current-document','153446ZKxUxF','connector','602740tVGubg','userMessage'];_0x4c6c=function(){return _0x592c2b;};return _0x4c6c();}import{AIInteraction as _0x116ca4}from'../../aicore/model/aiinteraction.js';function _0x5448(_0x5c8e60,_0x1301d5){var _0x4c6cbd=_0x4c6c();return _0x5448=function(_0x544863,_0x2e5822){_0x544863=_0x544863-0xc9;var _0x2e7e21=_0x4c6cbd[_0x544863];return _0x2e7e21;},_0x5448(_0x5c8e60,_0x1301d5);}import{AIChatContext as _0x51bf32}from'./aichatcontext.js';export class AIChatInteraction extends _0x116ca4{[_0x599604(0xce)];[_0x599604(0xc9)];[_0x599604(0xd3)]=new Map();[_0x599604(0xdc)];[_0x599604(0xd9)];constructor(_0xba6c01){var _0x20c524=_0x599604;super(_0xba6c01),this[_0x20c524(0xc9)]=_0xba6c01[_0x20c524(0xc9)],this[_0x20c524(0xd3)]=_0xba6c01[_0x20c524(0xd3)],this[_0x20c524(0xdb)]=_0xba6c01[_0x20c524(0xdb)],this[_0x20c524(0xce)]=_0xba6c01[_0x20c524(0xce)],this[_0x20c524(0xdc)]=_0xba6c01[_0x20c524(0xdc)],this[_0x20c524(0xd9)]=_0xba6c01[_0x20c524(0xd9)];}async[_0x599604(0xdf)](){var _0x2be555=_0x599604;return this[_0x2be555(0xcc)][_0x2be555(0xd8)]({'message':this[_0x2be555(0xce)],'conversationId':this[_0x2be555(0xc9)],'parts':_0x51bf32[_0x2be555(0xd5)](this[_0x2be555(0xd3)]),'capabilities':_0x4a9f99[_0x2be555(0xcf)](this[_0x2be555(0xdb)]),'model':this[_0x2be555(0xdc)],'quickActionData':this[_0x2be555(0xd9)]});}[_0x599604(0xd2)](){var _0x185966=_0x599604;return this[_0x185966(0xd3)][_0x185966(0xd4)](_0x185966(0xca));}}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
@@ -9,7 +9,7 @@ import type { Locale } from 'ckeditor5/src/utils.js';
9
9
  import { View, type BodyCollection } from 'ckeditor5/src/ui.js';
10
10
  import { type AIAddContextOptionsState, type AIContextProvider, type AIContextResourceState } from '../model/aichatcontext.js';
11
11
  import { type AIContextItem } from '../../aicore/model/aicontext.js';
12
- import { type AIChatModel } from '../model/aichatmodels.js';
12
+ import { type AIModelData } from '../../aicore/aiconnector.js';
13
13
  export declare class AIChatControlsView extends View {
14
14
  /**
15
15
  * The loading state of the controls.
@@ -88,11 +88,11 @@ export declare class AIChatControlsView extends View {
88
88
  /**
89
89
  * Sets model list dropdown.
90
90
  */
91
- setModelList(models: Array<AIChatModel>, hideIfSingleModel: boolean): void;
91
+ setModelList(models: Array<AIModelData>, hideIfSingleModel: boolean): void;
92
92
  /**
93
93
  * Sets the selected model in the model list dropdown.
94
94
  */
95
- setModel(model: AIChatModel | null): void;
95
+ setModel(model: AIModelData | null): void;
96
96
  /**
97
97
  * Enables the model selector in the prompt capabilities view.
98
98
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5c51c0=_0x53af;(function(_0x1383ee,_0x4c3b6a){const _0x48a6fc=_0x53af,_0x95d41b=_0x1383ee();while(!![]){try{const _0x101a85=parseInt(_0x48a6fc(0xa1))/0x1+-parseInt(_0x48a6fc(0xd4))/0x2+parseInt(_0x48a6fc(0xce))/0x3+parseInt(_0x48a6fc(0xe6))/0x4*(-parseInt(_0x48a6fc(0xdc))/0x5)+parseInt(_0x48a6fc(0xcb))/0x6+-parseInt(_0x48a6fc(0xcc))/0x7*(parseInt(_0x48a6fc(0xc8))/0x8)+parseInt(_0x48a6fc(0xbe))/0x9;if(_0x101a85===_0x4c3b6a)break;else _0x95d41b['push'](_0x95d41b['shift']());}catch(_0x1bc3f8){_0x95d41b['push'](_0x95d41b['shift']());}}}(_0x2016,0xaeec2));import{ButtonView as _0x155d3e,clickOutsideHandler as _0x5b63cf,View as _0x52b72c}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x1494c0}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x140a24}from'./controls/aichatpromptcapabilitiesview.js';function _0x2016(){const _0x46e637=['_createPromptCapabilitiesView','952190HfgFIb','agent','startsWith','execute','find','setModel','_promptInputView','startConversation','form','isModelAvailable','24vsFiTR','addContextButtonView','change:isLoading','setAddContextOptions','low','div','set','clearPendingContextUI','setInputPlaceholder','sendUserMessage','locale','229056qOJfko','setIsUploadInProgress','isDisabled','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','setModelList','bindTemplate','removeContextItem','_loaderView','updateResourceState','setPlaceholderText','bodyCollection','setWebSearch','setConversationContext','ck-hidden','focus','isLoading','_displayedModels','toggleWebSearch','_shouldRestorePromptInputFocus','setTemplate','enableModelSelector','_createContextPanelView','_modelUnavailableMessageView','clearCurrentContextItems','disableModelSelector','contextResourcesSearchInputVisibleFrom','selectModel','clearConversationContextItems','_contextPanelView','8142912gjGoZV','clearConversationContextUI','_createModelUnavailableMessageView','reset','ck-ai-chat-controls','focusPromptInput','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','addContextItem','element','toggleReasoning','6496312dtvYyY','ck-ai-chat-controls__start-new-chat-button','_handlePromptInputFocus','8320596oxMbap','7JVERet','resetMessageInput','685704ImQxPP','_promptCapabilitiesView','closeSourceResourceBalloon','ck-ai-chat-controls-model-unavailable-message','setContextItemLoading','delegate','156018WezXta','populateSourceResourceBalloon','ck-ai-chat-controls-disabled','_createPromptInputView','setReasoning','abortPromptStream','_createLoaderView'];_0x2016=function(){return _0x46e637;};return _0x2016();}import{AIChatContextPanelView as _0x50c758,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x57e45c}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x478701}from'./controls/aichatcontrolsloaderview.js';import{getTranslation as _0x23e44e}from'../../aicore/utils/common-translations.js';function _0x53af(_0x4c90be,_0x216c5f){const _0x201683=_0x2016();return _0x53af=function(_0x53af3c,_0x1d1c6f){_0x53af3c=_0x53af3c-0x9f;let _0x175eac=_0x201683[_0x53af3c];return _0x175eac;},_0x53af(_0x4c90be,_0x216c5f);}export class AIChatControlsView extends _0x52b72c{[_0x5c51c0(0xb1)]=[];[_0x5c51c0(0xbd)];[_0x5c51c0(0xe2)];[_0x5c51c0(0xcf)];[_0x5c51c0(0xa8)];[_0x5c51c0(0xb7)];[_0x5c51c0(0xb3)];constructor(_0x2c5017,_0xdd416c){const _0x52d2ee=_0x5c51c0;super(_0x2c5017),this[_0x52d2ee(0xbd)]=this[_0x52d2ee(0xb6)](_0x2c5017,{'bodyCollection':_0xdd416c[_0x52d2ee(0xab)],'searchInputVisibleFrom':_0xdd416c[_0x52d2ee(0xba)]}),this[_0x52d2ee(0xe2)]=this[_0x52d2ee(0xd7)](_0x2c5017),this[_0x52d2ee(0xcf)]=this[_0x52d2ee(0xdb)](_0x2c5017),this[_0x52d2ee(0xa8)]=this[_0x52d2ee(0xda)](_0x2c5017),this[_0x52d2ee(0xb7)]=this[_0x52d2ee(0xc0)](_0x2c5017),this[_0x52d2ee(0xb3)]=!0x1,this[_0x52d2ee(0xe2)][_0x52d2ee(0xd3)](_0x52d2ee(0x9f))['to'](this),this[_0x52d2ee(0xa8)][_0x52d2ee(0xd3)](_0x52d2ee(0xd9))['to'](this),this[_0x52d2ee(0xcf)][_0x52d2ee(0xd3)](_0x52d2ee(0xb2))['to'](this),this[_0x52d2ee(0xcf)][_0x52d2ee(0xd3)](_0x52d2ee(0xc7))['to'](this),this[_0x52d2ee(0xcf)][_0x52d2ee(0xd3)](_0x52d2ee(0xbb))['to'](this),this[_0x52d2ee(0xbd)][_0x52d2ee(0xd3)](..._0x57e45c)['to'](this),this[_0x52d2ee(0xec)](_0x52d2ee(0xe5),!0x0),this[_0x52d2ee(0xec)](_0x52d2ee(0xa3),!0x1);const _0x10cc38=this[_0x52d2ee(0xa6)];this[_0x52d2ee(0xb4)]({'tag':_0x52d2ee(0xe4),'attributes':{'class':['ck',_0x52d2ee(0xc2),_0x10cc38['if'](_0x52d2ee(0xa3),_0x52d2ee(0xd6))]},'children':[{'tag':_0x52d2ee(0xeb),'attributes':{'class':[_0x10cc38['if'](_0x52d2ee(0xb0),_0x52d2ee(0xae),_0x109eb5=>_0x109eb5||!this[_0x52d2ee(0xe5)]),_0x10cc38['if'](_0x52d2ee(0xe5),_0x52d2ee(0xae),_0x1e6dd6=>!_0x1e6dd6||this[_0x52d2ee(0xb0)])]},'children':[this[_0x52d2ee(0xbd)],this[_0x52d2ee(0xe2)],this[_0x52d2ee(0xcf)]]},{'tag':_0x52d2ee(0xeb),'attributes':{'class':[_0x10cc38['if'](_0x52d2ee(0xb0),_0x52d2ee(0xae),_0x3b9586=>!_0x3b9586)]},'children':[this[_0x52d2ee(0xa8)]]},{'tag':_0x52d2ee(0xeb),'attributes':{'class':[_0x10cc38['if'](_0x52d2ee(0xe5),_0x52d2ee(0xae),_0x2c0b16=>_0x2c0b16)]},'children':[this[_0x52d2ee(0xb7)]]}]}),_0x5b63cf({'emitter':this[_0x52d2ee(0xe2)],'activator':()=>this[_0x52d2ee(0xb0)],'contextElements':()=>[this[_0x52d2ee(0xc6)]],'callback':()=>{const _0x1d1e99=_0x52d2ee;this[_0x1d1e99(0xb3)]=!0x1;}}),this['on'](_0x52d2ee(0xe8),this[_0x52d2ee(0xca)],{'priority':_0x52d2ee(0xea)});}[_0x5c51c0(0xb6)](_0x3b9a31,_0x14a4a2){return new _0x50c758(_0x3b9a31,_0x14a4a2);}[_0x5c51c0(0xd7)](_0x3e33d7){const _0x72c650=_0x5c51c0;return new _0x1494c0(_0x3e33d7,this[_0x72c650(0xbd)][_0x72c650(0xe7)]);}[_0x5c51c0(0xdb)](_0x3351d){return new _0x140a24(_0x3351d);}[_0x5c51c0(0xda)](_0x285fb9){return new _0x478701(_0x285fb9);}[_0x5c51c0(0xc0)](_0x580259){const _0x302e32=_0x5c51c0,_0x2658e3=new _s(_0x580259);return _0x2658e3[_0x302e32(0xd3)](_0x302e32(0xe3))['to'](this),_0x2658e3;}[_0x5c51c0(0xca)](_0x2eb8fe,_0x2e6a0e,_0x3af720){const _0x51c972=_0x5c51c0;_0x3af720?this[_0x51c972(0xb3)]=!0x0:this[_0x51c972(0xb3)]&&this[_0x51c972(0xe2)][_0x51c972(0xaf)]();}[_0x5c51c0(0xc5)](_0x8d39c2,_0x3cc8f9){const _0x569fea=_0x5c51c0;this[_0x569fea(0xbd)][_0x569fea(0xc5)](_0x8d39c2,_0x3cc8f9);}[_0x5c51c0(0xa7)](_0x53e271){const _0x7a6ec9=_0x5c51c0;this[_0x7a6ec9(0xbd)][_0x7a6ec9(0xa7)](_0x53e271);}[_0x5c51c0(0xd2)](_0x88772,_0x347ce9){const _0x3ceb8e=_0x5c51c0;this[_0x3ceb8e(0xbd)][_0x3ceb8e(0xd2)](_0x88772,_0x347ce9);}[_0x5c51c0(0xa2)](_0x3fb6ec){const _0x33803b=_0x5c51c0;this[_0x33803b(0xe2)][_0x33803b(0xa2)](_0x3fb6ec);}[_0x5c51c0(0xad)](_0x5a8574){const _0x1f1550=_0x5c51c0;this[_0x1f1550(0xbd)][_0x1f1550(0xad)](_0x5a8574);}[_0x5c51c0(0xed)](){const _0x5223cc=_0x5c51c0;this[_0x5223cc(0xbd)][_0x5223cc(0xb8)]();}[_0x5c51c0(0xbf)](){const _0x5c6308=_0x5c51c0;this[_0x5c6308(0xbd)][_0x5c6308(0xbc)]();}[_0x5c51c0(0xa9)](_0x2df641,_0x897a25,_0x1dc2d0){const _0x1e4777=_0x5c51c0;this[_0x1e4777(0xbd)][_0x1e4777(0xa9)](_0x2df641,_0x897a25,_0x1dc2d0);}[_0x5c51c0(0xac)](_0x4d91fc){const _0x4ad1e8=_0x5c51c0;this[_0x4ad1e8(0xcf)][_0x4ad1e8(0xac)](_0x4d91fc);}[_0x5c51c0(0xd8)](_0x41ca8c){const _0x37f3d6=_0x5c51c0;this[_0x37f3d6(0xcf)][_0x37f3d6(0xd8)](_0x41ca8c);}[_0x5c51c0(0xcd)](){const _0x316de2=_0x5c51c0;this[_0x316de2(0xe2)][_0x316de2(0xc1)]();}[_0x5c51c0(0xe9)](_0xa10866){const _0x4f91ee=_0x5c51c0;this[_0x4f91ee(0xbd)][_0x4f91ee(0xe9)](_0xa10866);}[_0x5c51c0(0xee)](_0x8a6ea7){const _0x4bb50a=_0x5c51c0;this[_0x4bb50a(0xe2)][_0x4bb50a(0xaa)](_0x8a6ea7);}[_0x5c51c0(0xa5)](_0x49687a,_0x565449){const _0x462205=_0x5c51c0;this[_0x462205(0xb1)]=_0x49687a,this[_0x462205(0xcf)][_0x462205(0xa5)](_0x49687a,_0x565449);}[_0x5c51c0(0xe1)](_0x5817e3){const _0x544105=_0x5c51c0;(_0x5817e3?this[_0x544105(0xb1)][_0x544105(0xe0)](_0x197c98=>_0x197c98['id']===_0x5817e3['id']):null)?(this[_0x544105(0xe5)]=!0x0,this[_0x544105(0xcf)][_0x544105(0xe1)](_0x5817e3)):_0x5817e3?.['id'][_0x544105(0xde)](_0x544105(0xdd))?(this[_0x544105(0xe5)]=!0x0,this[_0x544105(0xcf)][_0x544105(0xe1)](this[_0x544105(0xb1)][0x0])):this[_0x544105(0xe5)]=!0x1;}[_0x5c51c0(0xb5)](){const _0x1cdb0a=_0x5c51c0;this[_0x1cdb0a(0xcf)][_0x1cdb0a(0xb5)]();}[_0x5c51c0(0xb9)](_0x3f53e3){const _0xc89760=_0x5c51c0;this[_0xc89760(0xcf)][_0xc89760(0xb9)](_0x3f53e3);}[_0x5c51c0(0xd5)](_0xe61e9c,_0x58fe5d,_0x27ba5d,_0x2bc42b){const _0x1da38a=_0x5c51c0;this[_0x1da38a(0xbd)][_0x1da38a(0xd5)](_0xe61e9c,_0x58fe5d,_0x27ba5d,_0x2bc42b);}[_0x5c51c0(0xd0)](_0x306887){const _0x2fe9f9=_0x5c51c0;this[_0x2fe9f9(0xbd)][_0x2fe9f9(0xd0)](_0x306887);}[_0x5c51c0(0xc3)](){const _0x470f08=_0x5c51c0;this[_0x470f08(0xe2)][_0x470f08(0xaf)]();}}class _s extends _0x52b72c{constructor(_0x4ebf26){const _0x2a1eb0=_0x5c51c0;super(_0x4ebf26);const _0x9aaefe=new _0x155d3e(_0x4ebf26);_0x9aaefe[_0x2a1eb0(0xec)]({'label':_0x23e44e(this[_0x2a1eb0(0xa0)],_0x2a1eb0(0xc4)),'withText':!0x0,'class':[_0x2a1eb0(0xc9)],'tooltip':''}),_0x9aaefe[_0x2a1eb0(0xd3)](_0x2a1eb0(0xdf))['to'](this,_0x2a1eb0(0xe3)),this[_0x2a1eb0(0xb4)]({'tag':_0x2a1eb0(0xeb),'attributes':{'class':['ck',_0x2a1eb0(0xd1)]},'children':[{'tag':'p','children':[{'text':_0x23e44e(this[_0x2a1eb0(0xa0)],_0x2a1eb0(0xa4))+'\x20'},_0x9aaefe]}]});}}
23
+ const _0x24dcc7=_0x3c31;(function(_0x5b98e0,_0x426a78){const _0xa35d6d=_0x3c31,_0x547fc7=_0x5b98e0();while(!![]){try{const _0x3d4e3d=-parseInt(_0xa35d6d(0x150))/0x1+parseInt(_0xa35d6d(0x18a))/0x2*(-parseInt(_0xa35d6d(0x161))/0x3)+parseInt(_0xa35d6d(0x187))/0x4+parseInt(_0xa35d6d(0x183))/0x5+parseInt(_0xa35d6d(0x197))/0x6+parseInt(_0xa35d6d(0x18c))/0x7*(parseInt(_0xa35d6d(0x154))/0x8)+parseInt(_0xa35d6d(0x160))/0x9*(-parseInt(_0xa35d6d(0x163))/0xa);if(_0x3d4e3d===_0x426a78)break;else _0x547fc7['push'](_0x547fc7['shift']());}catch(_0x2e1322){_0x547fc7['push'](_0x547fc7['shift']());}}}(_0x5bba,0x3cd85));import{ButtonView as _0x432c43,clickOutsideHandler as _0x4be86f,View as _0x424013}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x56743d}from'./controls/aichatpromptinputview.js';function _0x3c31(_0x4cb432,_0x8bd40d){const _0x5bba5d=_0x5bba();return _0x3c31=function(_0x3c3104,_0x22fcd4){_0x3c3104=_0x3c3104-0x14c;let _0x4171d7=_0x5bba5d[_0x3c3104];return _0x4171d7;},_0x3c31(_0x4cb432,_0x8bd40d);}function _0x5bba(){const _0x5c7ea9=['setInputPlaceholder','div','resetMessageInput','_createLoaderView','_handlePromptInputFocus','selectModel','ck-ai-chat-controls','_contextPanelView','setPlaceholderText','_loaderView','2131170PLTnCM','setTemplate','contextResourcesSearchInputVisibleFrom','updateResourceState','1878168pqnaUI','_createModelUnavailableMessageView','agent','417098SOHkYC','clearCurrentContextItems','1022muSULI','toggleReasoning','change:isLoading','execute','_shouldRestorePromptInputFocus','toggleWebSearch','setReasoning','bindTemplate','disableModelSelector','setIsUploadInProgress','setConversationContext','2049030AhuoSl','isModelAvailable','clearConversationContextUI','_promptInputView','_createPromptCapabilitiesView','find','ck-hidden','_modelUnavailableMessageView','startConversation','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','44306MuoFnL','clearConversationContextItems','set','enableModelSelector','20464USrnrb','ck-ai-chat-controls-disabled','_displayedModels','addContextItem','_createContextPanelView','delegate','closeSourceResourceBalloon','addContextButtonView','reset','ck-ai-chat-controls-model-unavailable-message','abortPromptStream','setAddContextOptions','4050558VEcivc','6YgLOrR','populateSourceResourceBalloon','20JNjWNk','setModelList','_promptCapabilitiesView','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','removeContextItem','isDisabled','locale','clearPendingContextUI','bodyCollection','setContextItemLoading','setModel','sendUserMessage','element','setWebSearch','form','focusPromptInput','low','startsWith','ck-ai-chat-controls__start-new-chat-button','isLoading','_createPromptInputView','focus'];_0x5bba=function(){return _0x5c7ea9;};return _0x5bba();}import{AIChatPromptCapabilitiesView as _0xec138c}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x2b1564,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0xdad7b5}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x5f28fd}from'./controls/aichatcontrolsloaderview.js';import{getTranslation as _0x2e33a8}from'../../aicore/utils/common-translations.js';export class AIChatControlsView extends _0x424013{[_0x24dcc7(0x156)]=[];[_0x24dcc7(0x180)];[_0x24dcc7(0x19a)];[_0x24dcc7(0x165)];[_0x24dcc7(0x182)];[_0x24dcc7(0x14d)];[_0x24dcc7(0x190)];constructor(_0x1d25a2,_0x14b43d){const _0x592988=_0x24dcc7;super(_0x1d25a2),this[_0x592988(0x180)]=this[_0x592988(0x158)](_0x1d25a2,{'bodyCollection':_0x14b43d[_0x592988(0x16b)],'searchInputVisibleFrom':_0x14b43d[_0x592988(0x185)]}),this[_0x592988(0x19a)]=this[_0x592988(0x177)](_0x1d25a2),this[_0x592988(0x165)]=this[_0x592988(0x19b)](_0x1d25a2),this[_0x592988(0x182)]=this[_0x592988(0x17c)](_0x1d25a2),this[_0x592988(0x14d)]=this[_0x592988(0x188)](_0x1d25a2),this[_0x592988(0x190)]=!0x1,this[_0x592988(0x19a)][_0x592988(0x159)](_0x592988(0x16e))['to'](this),this[_0x592988(0x182)][_0x592988(0x159)](_0x592988(0x15e))['to'](this),this[_0x592988(0x165)][_0x592988(0x159)](_0x592988(0x191))['to'](this),this[_0x592988(0x165)][_0x592988(0x159)](_0x592988(0x18d))['to'](this),this[_0x592988(0x165)][_0x592988(0x159)](_0x592988(0x17e))['to'](this),this[_0x592988(0x180)][_0x592988(0x159)](..._0xdad7b5)['to'](this),this[_0x592988(0x152)](_0x592988(0x198),!0x0),this[_0x592988(0x152)](_0x592988(0x168),!0x1);const _0x5b5ccd=this[_0x592988(0x193)];this[_0x592988(0x184)]({'tag':_0x592988(0x171),'attributes':{'class':['ck',_0x592988(0x17f),_0x5b5ccd['if'](_0x592988(0x168),_0x592988(0x155))]},'children':[{'tag':_0x592988(0x17a),'attributes':{'class':[_0x5b5ccd['if'](_0x592988(0x176),_0x592988(0x14c),_0x388c5a=>_0x388c5a||!this[_0x592988(0x198)]),_0x5b5ccd['if'](_0x592988(0x198),_0x592988(0x14c),_0xcf3cc3=>!_0xcf3cc3||this[_0x592988(0x176)])]},'children':[this[_0x592988(0x180)],this[_0x592988(0x19a)],this[_0x592988(0x165)]]},{'tag':_0x592988(0x17a),'attributes':{'class':[_0x5b5ccd['if'](_0x592988(0x176),_0x592988(0x14c),_0x45931d=>!_0x45931d)]},'children':[this[_0x592988(0x182)]]},{'tag':_0x592988(0x17a),'attributes':{'class':[_0x5b5ccd['if'](_0x592988(0x198),_0x592988(0x14c),_0x478eec=>_0x478eec)]},'children':[this[_0x592988(0x14d)]]}]}),_0x4be86f({'emitter':this[_0x592988(0x19a)],'activator':()=>this[_0x592988(0x176)],'contextElements':()=>[this[_0x592988(0x16f)]],'callback':()=>{const _0x21ca9d=_0x592988;this[_0x21ca9d(0x190)]=!0x1;}}),this['on'](_0x592988(0x18e),this[_0x592988(0x17d)],{'priority':_0x592988(0x173)});}[_0x24dcc7(0x158)](_0x52599f,_0x36cf27){return new _0x2b1564(_0x52599f,_0x36cf27);}[_0x24dcc7(0x177)](_0xd444e5){const _0x3c3028=_0x24dcc7;return new _0x56743d(_0xd444e5,this[_0x3c3028(0x180)][_0x3c3028(0x15b)]);}[_0x24dcc7(0x19b)](_0x4c4c8a){return new _0xec138c(_0x4c4c8a);}[_0x24dcc7(0x17c)](_0x1b25b7){return new _0x5f28fd(_0x1b25b7);}[_0x24dcc7(0x188)](_0x14c754){const _0x5ccfb8=_0x24dcc7,_0x42d0ad=new vs(_0x14c754);return _0x42d0ad[_0x5ccfb8(0x159)](_0x5ccfb8(0x14e))['to'](this),_0x42d0ad;}[_0x24dcc7(0x17d)](_0x2f916c,_0x2619e2,_0x238b95){const _0x2dff74=_0x24dcc7;_0x238b95?this[_0x2dff74(0x190)]=!0x0:this[_0x2dff74(0x190)]&&this[_0x2dff74(0x19a)][_0x2dff74(0x178)]();}[_0x24dcc7(0x157)](_0x387891,_0x304ce7){const _0x128f5a=_0x24dcc7;this[_0x128f5a(0x180)][_0x128f5a(0x157)](_0x387891,_0x304ce7);}[_0x24dcc7(0x167)](_0x21d1fd){const _0x5b1716=_0x24dcc7;this[_0x5b1716(0x180)][_0x5b1716(0x167)](_0x21d1fd);}[_0x24dcc7(0x16c)](_0x3c49e9,_0x50ed06){const _0x2c81db=_0x24dcc7;this[_0x2c81db(0x180)][_0x2c81db(0x16c)](_0x3c49e9,_0x50ed06);}[_0x24dcc7(0x195)](_0x5f45c9){const _0x4d0b64=_0x24dcc7;this[_0x4d0b64(0x19a)][_0x4d0b64(0x195)](_0x5f45c9);}[_0x24dcc7(0x196)](_0x20cca6){const _0x1a8f6d=_0x24dcc7;this[_0x1a8f6d(0x180)][_0x1a8f6d(0x196)](_0x20cca6);}[_0x24dcc7(0x16a)](){const _0x5d6ac3=_0x24dcc7;this[_0x5d6ac3(0x180)][_0x5d6ac3(0x18b)]();}[_0x24dcc7(0x199)](){const _0x50c6bd=_0x24dcc7;this[_0x50c6bd(0x180)][_0x50c6bd(0x151)]();}[_0x24dcc7(0x186)](_0x98f043,_0xe99697,_0x46ba6d){const _0x179bae=_0x24dcc7;this[_0x179bae(0x180)][_0x179bae(0x186)](_0x98f043,_0xe99697,_0x46ba6d);}[_0x24dcc7(0x170)](_0x5985da){const _0xfe0bd2=_0x24dcc7;this[_0xfe0bd2(0x165)][_0xfe0bd2(0x170)](_0x5985da);}[_0x24dcc7(0x192)](_0x432991){const _0x4379ac=_0x24dcc7;this[_0x4379ac(0x165)][_0x4379ac(0x192)](_0x432991);}[_0x24dcc7(0x17b)](){const _0x30c496=_0x24dcc7;this[_0x30c496(0x19a)][_0x30c496(0x15c)]();}[_0x24dcc7(0x15f)](_0x5b78d8){const _0x19a104=_0x24dcc7;this[_0x19a104(0x180)][_0x19a104(0x15f)](_0x5b78d8);}[_0x24dcc7(0x179)](_0x42bc8d){const _0x3074f6=_0x24dcc7;this[_0x3074f6(0x19a)][_0x3074f6(0x181)](_0x42bc8d);}[_0x24dcc7(0x164)](_0x537eff,_0x55eb94){const _0x204d90=_0x24dcc7;this[_0x204d90(0x156)]=_0x537eff,this[_0x204d90(0x165)][_0x204d90(0x164)](_0x537eff,_0x55eb94);}[_0x24dcc7(0x16d)](_0x1c654b){const _0x56a9b5=_0x24dcc7;(_0x1c654b?this[_0x56a9b5(0x156)][_0x56a9b5(0x19c)](_0x1bed3b=>_0x1bed3b['id']===_0x1c654b['id']):null)?(this[_0x56a9b5(0x198)]=!0x0,this[_0x56a9b5(0x165)][_0x56a9b5(0x16d)](_0x1c654b)):_0x1c654b?.['id'][_0x56a9b5(0x174)](_0x56a9b5(0x189))?(this[_0x56a9b5(0x198)]=!0x0,this[_0x56a9b5(0x165)][_0x56a9b5(0x16d)](this[_0x56a9b5(0x156)][0x0])):this[_0x56a9b5(0x198)]=!0x1;}[_0x24dcc7(0x153)](){const _0x14f776=_0x24dcc7;this[_0x14f776(0x165)][_0x14f776(0x153)]();}[_0x24dcc7(0x194)](_0x561f65){const _0x3d3013=_0x24dcc7;this[_0x3d3013(0x165)][_0x3d3013(0x194)](_0x561f65);}[_0x24dcc7(0x162)](_0x1feb23,_0x40175d,_0x1112cd,_0x19b0c3){const _0x4d2677=_0x24dcc7;this[_0x4d2677(0x180)][_0x4d2677(0x162)](_0x1feb23,_0x40175d,_0x1112cd,_0x19b0c3);}[_0x24dcc7(0x15a)](_0xaedc78){const _0x1bf167=_0x24dcc7;this[_0x1bf167(0x180)][_0x1bf167(0x15a)](_0xaedc78);}[_0x24dcc7(0x172)](){const _0x46448e=_0x24dcc7;this[_0x46448e(0x19a)][_0x46448e(0x178)]();}}class vs extends _0x424013{constructor(_0x530ad4){const _0x5384ef=_0x24dcc7;super(_0x530ad4);const _0x536a0e=new _0x432c43(_0x530ad4);_0x536a0e[_0x5384ef(0x152)]({'label':_0x2e33a8(this[_0x5384ef(0x169)],_0x5384ef(0x166)),'withText':!0x0,'class':[_0x5384ef(0x175)],'tooltip':''}),_0x536a0e[_0x5384ef(0x159)](_0x5384ef(0x18f))['to'](this,_0x5384ef(0x14e)),this[_0x5384ef(0x184)]({'tag':_0x5384ef(0x17a),'attributes':{'class':['ck',_0x5384ef(0x15d)]},'children':[{'tag':'p','children':[{'text':_0x2e33a8(this[_0x5384ef(0x169)],_0x5384ef(0x14f))+'\x20'},_0x536a0e]}]});}}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**