@ckeditor/ckeditor5-ai 46.1.1 → 47.0.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 (623) hide show
  1. package/LICENSE.md +18 -5
  2. package/README.md +10 -9
  3. package/build/ai.js +2 -2
  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/ckeditor5-metadata.json +24 -3
  77. package/dist/index-content.css +0 -1
  78. package/dist/index-editor.css +2742 -0
  79. package/dist/index.css +3141 -0
  80. package/dist/index.js +4 -2
  81. package/dist/translations/af.js +1 -1
  82. package/dist/translations/af.umd.js +1 -1
  83. package/dist/translations/ar.js +1 -1
  84. package/dist/translations/ar.umd.js +1 -1
  85. package/dist/translations/ast.js +1 -1
  86. package/dist/translations/ast.umd.js +1 -1
  87. package/dist/translations/az.js +1 -1
  88. package/dist/translations/az.umd.js +1 -1
  89. package/dist/translations/be.js +1 -1
  90. package/dist/translations/be.umd.js +1 -1
  91. package/dist/translations/bg.js +1 -1
  92. package/dist/translations/bg.umd.js +1 -1
  93. package/dist/translations/bn.js +1 -1
  94. package/dist/translations/bn.umd.js +1 -1
  95. package/dist/translations/bs.js +1 -1
  96. package/dist/translations/bs.umd.js +1 -1
  97. package/dist/translations/ca.js +1 -1
  98. package/dist/translations/ca.umd.js +1 -1
  99. package/dist/translations/cs.js +1 -1
  100. package/dist/translations/cs.umd.js +1 -1
  101. package/dist/translations/da.js +1 -1
  102. package/dist/translations/da.umd.js +1 -1
  103. package/dist/translations/de-ch.js +1 -1
  104. package/dist/translations/de-ch.umd.js +1 -1
  105. package/dist/translations/de.js +1 -1
  106. package/dist/translations/de.umd.js +1 -1
  107. package/dist/translations/el.js +1 -1
  108. package/dist/translations/el.umd.js +1 -1
  109. package/dist/translations/en-au.js +1 -1
  110. package/dist/translations/en-au.umd.js +1 -1
  111. package/dist/translations/en-gb.js +1 -1
  112. package/dist/translations/en-gb.umd.js +1 -1
  113. package/dist/translations/en.js +1 -1
  114. package/dist/translations/en.umd.js +1 -1
  115. package/dist/translations/eo.js +1 -1
  116. package/dist/translations/eo.umd.js +1 -1
  117. package/dist/translations/es-co.js +1 -1
  118. package/dist/translations/es-co.umd.js +1 -1
  119. package/dist/translations/es.js +1 -1
  120. package/dist/translations/es.umd.js +1 -1
  121. package/dist/translations/et.js +1 -1
  122. package/dist/translations/et.umd.js +1 -1
  123. package/dist/translations/eu.js +1 -1
  124. package/dist/translations/eu.umd.js +1 -1
  125. package/dist/translations/fa.js +1 -1
  126. package/dist/translations/fa.umd.js +1 -1
  127. package/dist/translations/fi.js +1 -1
  128. package/dist/translations/fi.umd.js +1 -1
  129. package/dist/translations/fr.js +1 -1
  130. package/dist/translations/fr.umd.js +1 -1
  131. package/dist/translations/gl.js +1 -1
  132. package/dist/translations/gl.umd.js +1 -1
  133. package/dist/translations/gu.js +1 -1
  134. package/dist/translations/gu.umd.js +1 -1
  135. package/dist/translations/he.js +1 -1
  136. package/dist/translations/he.umd.js +1 -1
  137. package/dist/translations/hi.js +1 -1
  138. package/dist/translations/hi.umd.js +1 -1
  139. package/dist/translations/hr.js +1 -1
  140. package/dist/translations/hr.umd.js +1 -1
  141. package/dist/translations/hu.js +1 -1
  142. package/dist/translations/hu.umd.js +1 -1
  143. package/dist/translations/hy.js +1 -1
  144. package/dist/translations/hy.umd.js +1 -1
  145. package/dist/translations/id.js +1 -1
  146. package/dist/translations/id.umd.js +1 -1
  147. package/dist/translations/it.js +1 -1
  148. package/dist/translations/it.umd.js +1 -1
  149. package/dist/translations/ja.js +1 -1
  150. package/dist/translations/ja.umd.js +1 -1
  151. package/dist/translations/jv.js +1 -1
  152. package/dist/translations/jv.umd.js +1 -1
  153. package/dist/translations/kk.js +1 -1
  154. package/dist/translations/kk.umd.js +1 -1
  155. package/dist/translations/km.js +1 -1
  156. package/dist/translations/km.umd.js +1 -1
  157. package/dist/translations/kn.js +1 -1
  158. package/dist/translations/kn.umd.js +1 -1
  159. package/dist/translations/ko.js +1 -1
  160. package/dist/translations/ko.umd.js +1 -1
  161. package/dist/translations/ku.js +1 -1
  162. package/dist/translations/ku.umd.js +1 -1
  163. package/dist/translations/lt.js +1 -1
  164. package/dist/translations/lt.umd.js +1 -1
  165. package/dist/translations/lv.js +1 -1
  166. package/dist/translations/lv.umd.js +1 -1
  167. package/dist/translations/ms.js +1 -1
  168. package/dist/translations/ms.umd.js +1 -1
  169. package/dist/translations/nb.js +1 -1
  170. package/dist/translations/nb.umd.js +1 -1
  171. package/dist/translations/ne.js +1 -1
  172. package/dist/translations/ne.umd.js +1 -1
  173. package/dist/translations/nl.js +1 -1
  174. package/dist/translations/nl.umd.js +1 -1
  175. package/dist/translations/no.js +1 -1
  176. package/dist/translations/no.umd.js +1 -1
  177. package/dist/translations/oc.js +1 -1
  178. package/dist/translations/oc.umd.js +1 -1
  179. package/dist/translations/pl.js +1 -1
  180. package/dist/translations/pl.umd.js +1 -1
  181. package/dist/translations/pt-br.js +1 -1
  182. package/dist/translations/pt-br.umd.js +1 -1
  183. package/dist/translations/pt.js +1 -1
  184. package/dist/translations/pt.umd.js +1 -1
  185. package/dist/translations/ro.js +1 -1
  186. package/dist/translations/ro.umd.js +1 -1
  187. package/dist/translations/ru.js +1 -1
  188. package/dist/translations/ru.umd.js +1 -1
  189. package/dist/translations/si.js +1 -1
  190. package/dist/translations/si.umd.js +1 -1
  191. package/dist/translations/sk.js +1 -1
  192. package/dist/translations/sk.umd.js +1 -1
  193. package/dist/translations/sl.js +1 -1
  194. package/dist/translations/sl.umd.js +1 -1
  195. package/dist/translations/sq.js +1 -1
  196. package/dist/translations/sq.umd.js +1 -1
  197. package/dist/translations/sr-latn.js +1 -1
  198. package/dist/translations/sr-latn.umd.js +1 -1
  199. package/dist/translations/sr.js +1 -1
  200. package/dist/translations/sr.umd.js +1 -1
  201. package/dist/translations/sv.js +1 -1
  202. package/dist/translations/sv.umd.js +1 -1
  203. package/dist/translations/th.js +1 -1
  204. package/dist/translations/th.umd.js +1 -1
  205. package/dist/translations/ti.js +1 -1
  206. package/dist/translations/ti.umd.js +1 -1
  207. package/dist/translations/tk.js +1 -1
  208. package/dist/translations/tk.umd.js +1 -1
  209. package/dist/translations/tr.js +1 -1
  210. package/dist/translations/tr.umd.js +1 -1
  211. package/dist/translations/tt.js +1 -1
  212. package/dist/translations/tt.umd.js +1 -1
  213. package/dist/translations/ug.js +1 -1
  214. package/dist/translations/ug.umd.js +1 -1
  215. package/dist/translations/uk.js +1 -1
  216. package/dist/translations/uk.umd.js +1 -1
  217. package/dist/translations/ur.js +1 -1
  218. package/dist/translations/ur.umd.js +1 -1
  219. package/dist/translations/uz.js +1 -1
  220. package/dist/translations/uz.umd.js +1 -1
  221. package/dist/translations/vi.js +1 -1
  222. package/dist/translations/vi.umd.js +1 -1
  223. package/dist/translations/zh-cn.js +1 -1
  224. package/dist/translations/zh-cn.umd.js +1 -1
  225. package/dist/translations/zh.js +1 -1
  226. package/dist/translations/zh.umd.js +1 -1
  227. package/lang/contexts.json +163 -1
  228. package/lang/translations/af.po +612 -0
  229. package/lang/translations/ar.po +628 -0
  230. package/lang/translations/ast.po +612 -0
  231. package/lang/translations/az.po +612 -0
  232. package/lang/translations/be.po +616 -0
  233. package/lang/translations/bg.po +612 -0
  234. package/lang/translations/bn.po +612 -0
  235. package/lang/translations/bs.po +616 -0
  236. package/lang/translations/ca.po +612 -0
  237. package/lang/translations/cs.po +616 -0
  238. package/lang/translations/da.po +612 -0
  239. package/lang/translations/de-ch.po +612 -0
  240. package/lang/translations/de.po +612 -0
  241. package/lang/translations/el.po +612 -0
  242. package/lang/translations/en-au.po +612 -0
  243. package/lang/translations/en-gb.po +612 -0
  244. package/lang/translations/en.po +612 -0
  245. package/lang/translations/eo.po +612 -0
  246. package/lang/translations/es-co.po +612 -0
  247. package/lang/translations/es.po +612 -0
  248. package/lang/translations/et.po +612 -0
  249. package/lang/translations/eu.po +612 -0
  250. package/lang/translations/fa.po +608 -0
  251. package/lang/translations/fi.po +612 -0
  252. package/lang/translations/fr.po +612 -0
  253. package/lang/translations/gl.po +612 -0
  254. package/lang/translations/gu.po +612 -0
  255. package/lang/translations/he.po +612 -0
  256. package/lang/translations/hi.po +612 -0
  257. package/lang/translations/hr.po +616 -0
  258. package/lang/translations/hu.po +612 -0
  259. package/lang/translations/hy.po +612 -0
  260. package/lang/translations/id.po +608 -0
  261. package/lang/translations/it.po +612 -0
  262. package/lang/translations/ja.po +608 -0
  263. package/lang/translations/jv.po +612 -0
  264. package/lang/translations/kk.po +612 -0
  265. package/lang/translations/km.po +608 -0
  266. package/lang/translations/kn.po +612 -0
  267. package/lang/translations/ko.po +608 -0
  268. package/lang/translations/ku.po +612 -0
  269. package/lang/translations/lt.po +616 -0
  270. package/lang/translations/lv.po +616 -0
  271. package/lang/translations/ms.po +608 -0
  272. package/lang/translations/nb.po +612 -0
  273. package/lang/translations/ne.po +612 -0
  274. package/lang/translations/nl.po +612 -0
  275. package/lang/translations/no.po +612 -0
  276. package/lang/translations/oc.po +612 -0
  277. package/lang/translations/pl.po +616 -0
  278. package/lang/translations/pt-br.po +612 -0
  279. package/lang/translations/pt.po +612 -0
  280. package/lang/translations/ro.po +616 -0
  281. package/lang/translations/ru.po +616 -0
  282. package/lang/translations/si.po +612 -0
  283. package/lang/translations/sk.po +616 -0
  284. package/lang/translations/sl.po +620 -0
  285. package/lang/translations/sq.po +612 -0
  286. package/lang/translations/sr-latn.po +616 -0
  287. package/lang/translations/sr.po +616 -0
  288. package/lang/translations/sv.po +612 -0
  289. package/lang/translations/th.po +608 -0
  290. package/lang/translations/ti.po +612 -0
  291. package/lang/translations/tk.po +612 -0
  292. package/lang/translations/tr.po +612 -0
  293. package/lang/translations/tt.po +608 -0
  294. package/lang/translations/ug.po +608 -0
  295. package/lang/translations/uk.po +616 -0
  296. package/lang/translations/ur.po +612 -0
  297. package/lang/translations/uz.po +612 -0
  298. package/lang/translations/vi.po +608 -0
  299. package/lang/translations/zh-cn.po +608 -0
  300. package/lang/translations/zh.po +608 -0
  301. package/package.json +23 -11
  302. package/src/aiactions/aiactions.d.ts +48 -0
  303. package/src/aiactions/aiactions.js +23 -0
  304. package/src/aiactions/model/aiactionsinteraction.d.ts +48 -0
  305. package/src/aiactions/model/aiactionsinteraction.js +23 -0
  306. package/src/aiactions/model/aiactionsreply.d.ts +15 -0
  307. package/src/aiactions/model/aiactionsreply.js +23 -0
  308. package/src/{adapters → aiassistant/adapters}/aiadapter.d.ts +1 -1
  309. package/src/aiassistant/adapters/aiadapter.js +23 -0
  310. package/src/{adapters → aiassistant/adapters}/aitextadapter.d.ts +9 -9
  311. package/src/aiassistant/adapters/aitextadapter.js +23 -0
  312. package/src/{adapters → aiassistant/adapters}/awstextadapter.d.ts +36 -23
  313. package/src/aiassistant/adapters/awstextadapter.js +23 -0
  314. package/src/{adapters → aiassistant/adapters}/openaitextadapter.d.ts +38 -25
  315. package/src/aiassistant/adapters/openaitextadapter.js +23 -0
  316. package/src/{aiassistant.d.ts → aiassistant/aiassistant.d.ts} +54 -13
  317. package/src/aiassistant/aiassistant.js +23 -0
  318. package/src/aiassistant/aiassistantediting.js +23 -0
  319. package/src/{aiassistantui.d.ts → aiassistant/aiassistantui.d.ts} +4 -4
  320. package/src/aiassistant/aiassistantui.js +23 -0
  321. package/src/{legacyerrors.js → aiassistant/legacyerrors.js} +1 -1
  322. package/src/{ui → aiassistant/ui}/aiassistantcontroller.d.ts +5 -4
  323. package/src/aiassistant/ui/aiassistantcontroller.js +24 -0
  324. package/src/{ui → aiassistant/ui}/form/aiformcontentarea.d.ts +1 -1
  325. package/src/aiassistant/ui/form/aiformcontentarea.js +23 -0
  326. package/src/aiassistant/ui/form/aiformerrorview.js +23 -0
  327. package/src/{ui → aiassistant/ui}/form/aiformpromptview.d.ts +1 -1
  328. package/src/aiassistant/ui/form/aiformpromptview.js +23 -0
  329. package/src/{ui → aiassistant/ui}/form/aiformtoolbarview.d.ts +1 -1
  330. package/src/aiassistant/ui/form/aiformtoolbarview.js +23 -0
  331. package/src/{ui → aiassistant/ui}/form/aiformview.d.ts +1 -1
  332. package/src/aiassistant/ui/form/aiformview.js +23 -0
  333. package/src/{ui → aiassistant/ui}/form/aihistorylistitemview.d.ts +1 -1
  334. package/src/aiassistant/ui/form/aihistorylistitemview.js +23 -0
  335. package/src/{ui → aiassistant/ui}/form/aihistorylistview.d.ts +1 -1
  336. package/src/aiassistant/ui/form/aihistorylistview.js +23 -0
  337. package/src/{ui → aiassistant/ui}/form/prompthistory.d.ts +3 -0
  338. package/src/aiassistant/ui/form/prompthistory.js +23 -0
  339. package/src/{ui → aiassistant/ui}/showaiassistantcommand.d.ts +2 -2
  340. package/src/aiassistant/ui/showaiassistantcommand.js +23 -0
  341. package/src/{utils → aiassistant/utils}/common-translations.d.ts +1 -1
  342. package/src/{utils → aiassistant/utils}/common-translations.js +1 -1
  343. package/src/{utils → aiassistant/utils}/normalizecommandsconfig.d.ts +2 -2
  344. package/src/{utils → aiassistant/utils}/normalizecommandsconfig.js +1 -1
  345. package/src/aiballoon/aiballoon.d.ts +72 -0
  346. package/src/aiballoon/aiballoon.js +23 -0
  347. package/src/aiballoon/ui/aiballoondisclaimerview.d.ts +17 -0
  348. package/src/aiballoon/ui/aiballoondisclaimerview.js +23 -0
  349. package/src/aiballoon/ui/aiballoontoolbarview.d.ts +31 -0
  350. package/src/aiballoon/ui/aiballoontoolbarview.js +23 -0
  351. package/src/aiballoon/ui/aiballoonview.d.ts +109 -0
  352. package/src/aiballoon/ui/aiballoonview.js +23 -0
  353. package/src/aichat/aichat.d.ts +79 -0
  354. package/src/aichat/aichat.js +23 -0
  355. package/src/aichat/aichatcontroller.d.ts +68 -0
  356. package/src/aichat/aichatcontroller.js +23 -0
  357. package/src/aichat/aichatui.d.ts +297 -0
  358. package/src/aichat/aichatui.js +23 -0
  359. package/src/aichat/model/aichatcontext.d.ts +360 -0
  360. package/src/aichat/model/aichatcontext.js +23 -0
  361. package/src/aichat/model/aichatconversation.d.ts +270 -0
  362. package/src/aichat/model/aichatconversation.js +23 -0
  363. package/src/aichat/model/aichatinteraction.d.ts +46 -0
  364. package/src/aichat/model/aichatinteraction.js +23 -0
  365. package/src/aichat/model/aichatmodels.d.ts +77 -0
  366. package/src/aichat/model/aichatmodels.js +23 -0
  367. package/src/aichat/ui/aichatcontrolsview.d.ts +98 -0
  368. package/src/aichat/ui/aichatcontrolsview.js +23 -0
  369. package/src/aichat/ui/aichatfeedview.d.ts +114 -0
  370. package/src/aichat/ui/aichatfeedview.js +23 -0
  371. package/src/aichat/ui/aichatheaderview.d.ts +29 -0
  372. package/src/aichat/ui/aichatheaderview.js +23 -0
  373. package/src/aichat/ui/aichatview.d.ts +37 -0
  374. package/src/aichat/ui/aichatview.js +23 -0
  375. package/src/aichat/ui/controls/aichatchipsoverflowmanager.d.ts +71 -0
  376. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +23 -0
  377. package/src/aichat/ui/controls/aichatcontextitembuttonview.d.ts +46 -0
  378. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +23 -0
  379. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.d.ts +89 -0
  380. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +23 -0
  381. package/src/aichat/ui/controls/aichatcontextpanelview.d.ts +105 -0
  382. package/src/aichat/ui/controls/aichatcontextpanelview.js +23 -0
  383. package/src/aichat/ui/controls/aichatcontrolsloaderview.d.ts +12 -0
  384. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +23 -0
  385. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.d.ts +89 -0
  386. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +23 -0
  387. package/src/aichat/ui/controls/aichatpromptinputview.d.ts +44 -0
  388. package/src/aichat/ui/controls/aichatpromptinputview.js +23 -0
  389. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.d.ts +17 -0
  390. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +23 -0
  391. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.d.ts +61 -0
  392. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +23 -0
  393. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.d.ts +100 -0
  394. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +23 -0
  395. package/src/aichat/ui/controls/resources/aichatresourceslistview.d.ts +49 -0
  396. package/src/aichat/ui/controls/resources/aichatresourceslistview.js +23 -0
  397. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.d.ts +61 -0
  398. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +23 -0
  399. package/src/aichat/ui/controls/resources/aichatresourcesview.d.ts +54 -0
  400. package/src/aichat/ui/controls/resources/aichatresourcesview.js +23 -0
  401. package/src/aichat/ui/feed/aichatfeedcontextchipsview.d.ts +27 -0
  402. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +23 -0
  403. package/src/aichat/ui/feed/aichatfeederroritemview.d.ts +39 -0
  404. package/src/aichat/ui/feed/aichatfeederroritemview.js +23 -0
  405. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.d.ts +29 -0
  406. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +23 -0
  407. package/src/aichat/ui/feed/aichatfeeditemview.d.ts +46 -0
  408. package/src/aichat/ui/feed/aichatfeeditemview.js +23 -0
  409. package/src/aichat/ui/feed/aichatfeedreplyitemview.d.ts +46 -0
  410. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +23 -0
  411. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.d.ts +74 -0
  412. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +23 -0
  413. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.d.ts +74 -0
  414. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +23 -0
  415. package/src/aichat/ui/feed/aichatfeedusermessageitem.d.ts +40 -0
  416. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +23 -0
  417. package/src/aichat/utils/eventnames.d.ts +5 -0
  418. package/src/aichat/utils/eventnames.js +23 -0
  419. package/src/aichat/utils/promisequeue.d.ts +32 -0
  420. package/src/aichat/utils/promisequeue.js +23 -0
  421. package/src/aichat/utils/scrollmanager.d.ts +23 -0
  422. package/src/aichat/utils/scrollmanager.js +23 -0
  423. package/src/aichathistory/aichathistory.d.ts +30 -0
  424. package/src/aichathistory/aichathistory.js +23 -0
  425. package/src/aichathistory/aichathistorycontroller.d.ts +40 -0
  426. package/src/aichathistory/aichathistorycontroller.js +23 -0
  427. package/src/aichathistory/aichathistoryui.d.ts +112 -0
  428. package/src/aichathistory/aichathistoryui.js +23 -0
  429. package/src/aichathistory/model/aichathistoryconversations.d.ts +114 -0
  430. package/src/aichathistory/model/aichathistoryconversations.js +23 -0
  431. package/src/aichathistory/model/aichathistoryitem.d.ts +59 -0
  432. package/src/aichathistory/model/aichathistoryitem.js +23 -0
  433. package/src/aichathistory/ui/aichathistorylistitemview.d.ts +42 -0
  434. package/src/aichathistory/ui/aichathistorylistitemview.js +23 -0
  435. package/src/aichathistory/ui/aichathistorylistview.d.ts +31 -0
  436. package/src/aichathistory/ui/aichathistorylistview.js +23 -0
  437. package/src/aichathistory/ui/aichathistorysectionlistview.d.ts +17 -0
  438. package/src/aichathistory/ui/aichathistorysectionlistview.js +23 -0
  439. package/src/aichathistory/ui/aichathistoryview.d.ts +41 -0
  440. package/src/aichathistory/ui/aichathistoryview.js +23 -0
  441. package/src/aiconfig.d.ts +92 -30
  442. package/src/aicore/aiconnector.d.ts +302 -0
  443. package/src/aicore/aiconnector.js +23 -0
  444. package/src/aicore/aiediting.d.ts +61 -0
  445. package/src/aicore/aiediting.js +23 -0
  446. package/src/aicore/model/aicapabilities.d.ts +55 -0
  447. package/src/aicore/model/aicapabilities.js +23 -0
  448. package/src/aicore/model/aicontext.d.ts +53 -0
  449. package/src/aicore/model/aicontext.js +23 -0
  450. package/src/aicore/model/aiinteraction.d.ts +135 -0
  451. package/src/aicore/model/aiinteraction.js +23 -0
  452. package/src/aicore/model/aireply.d.ts +178 -0
  453. package/src/aicore/model/aireply.js +23 -0
  454. package/src/aicore/pipeline/airesponseapplier.d.ts +291 -0
  455. package/src/aicore/pipeline/airesponseapplier.js +24 -0
  456. package/src/aicore/pipeline/airesponseparser.d.ts +27 -0
  457. package/src/aicore/pipeline/airesponseparser.js +24 -0
  458. package/src/aicore/ui/aidisclaimerview.d.ts +17 -0
  459. package/src/aicore/ui/aidisclaimerview.js +23 -0
  460. package/src/aicore/ui/aiskeleton.d.ts +37 -0
  461. package/src/aicore/ui/aiskeleton.js +23 -0
  462. package/src/aicore/ui/aispinner.d.ts +14 -0
  463. package/src/aicore/ui/aispinner.js +23 -0
  464. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.d.ts +62 -0
  465. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +23 -0
  466. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.d.ts +38 -0
  467. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +23 -0
  468. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.d.ts +80 -0
  469. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +23 -0
  470. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.d.ts +39 -0
  471. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +23 -0
  472. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.d.ts +39 -0
  473. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +23 -0
  474. package/src/aicore/utils/common-translations.d.ts +9 -0
  475. package/src/aicore/utils/common-translations.js +23 -0
  476. package/src/aicore/utils/createresizebutton.d.ts +12 -0
  477. package/src/aicore/utils/createresizebutton.js +23 -0
  478. package/src/aicore/utils/documentposition.d.ts +41 -0
  479. package/src/aicore/utils/documentposition.js +23 -0
  480. package/src/aicore/utils/documentrange.d.ts +46 -0
  481. package/src/aicore/utils/documentrange.js +23 -0
  482. package/src/aicore/utils/eventnames.d.ts +9 -0
  483. package/src/aicore/utils/eventnames.js +23 -0
  484. package/src/aicore/utils/geteditorfromcontext.d.ts +6 -0
  485. package/src/aicore/utils/geteditorfromcontext.js +23 -0
  486. package/src/aicore/utils/getoperationsfromreply.d.ts +21 -0
  487. package/src/aicore/utils/getoperationsfromreply.js +23 -0
  488. package/src/aicore/utils/getsuggestionpartsfromreply.d.ts +19 -0
  489. package/src/aicore/utils/getsuggestionpartsfromreply.js +23 -0
  490. package/src/aicore/utils/htmlparser.d.ts +35 -0
  491. package/src/aicore/utils/htmlparser.js +23 -0
  492. package/src/aicore/utils/htmlstreamer.d.ts +123 -0
  493. package/src/aicore/utils/htmlstreamer.js +23 -0
  494. package/src/aiquickactions/aiquickactions.d.ts +41 -0
  495. package/src/aiquickactions/aiquickactions.js +23 -0
  496. package/src/aiquickactions/aiquickactionscommand.d.ts +12 -0
  497. package/src/aiquickactions/aiquickactionscommand.js +23 -0
  498. package/src/aiquickactions/aiquickactionsediting.d.ts +23 -0
  499. package/src/aiquickactions/aiquickactionsediting.js +23 -0
  500. package/src/aiquickactions/aiquickactionsui.d.ts +150 -0
  501. package/src/aiquickactions/aiquickactionsui.js +23 -0
  502. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.d.ts +30 -0
  503. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +23 -0
  504. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.d.ts +45 -0
  505. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +23 -0
  506. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.d.ts +45 -0
  507. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +23 -0
  508. package/src/aiquickactions/utils/common-translations.d.ts +9 -0
  509. package/src/aiquickactions/utils/common-translations.js +23 -0
  510. package/src/aireviewmode/aireviewmode.d.ts +30 -0
  511. package/src/aireviewmode/aireviewmode.js +23 -0
  512. package/src/aireviewmode/aireviewmodecontroller.d.ts +32 -0
  513. package/src/aireviewmode/aireviewmodecontroller.js +23 -0
  514. package/src/aireviewmode/aireviewmodeediting.d.ts +129 -0
  515. package/src/aireviewmode/aireviewmodeediting.js +23 -0
  516. package/src/aireviewmode/aireviewmodeui.d.ts +73 -0
  517. package/src/aireviewmode/aireviewmodeui.js +23 -0
  518. package/src/aireviewmode/model/aireviewcheck.d.ts +60 -0
  519. package/src/aireviewmode/model/aireviewcheck.js +23 -0
  520. package/src/aireviewmode/model/aireviewcheckcustom.d.ts +17 -0
  521. package/src/aireviewmode/model/aireviewcheckcustom.js +23 -0
  522. package/src/aireviewmode/model/aireviewchecklist.d.ts +31 -0
  523. package/src/aireviewmode/model/aireviewchecklist.js +23 -0
  524. package/src/aireviewmode/model/aireviewcheckresult.d.ts +39 -0
  525. package/src/aireviewmode/model/aireviewcheckresult.js +23 -0
  526. package/src/aireviewmode/model/aireviewcheckresultchange.d.ts +42 -0
  527. package/src/aireviewmode/model/aireviewcheckresultchange.js +23 -0
  528. package/src/aireviewmode/model/aireviewcheckrun.d.ts +102 -0
  529. package/src/aireviewmode/model/aireviewcheckrun.js +23 -0
  530. package/src/aireviewmode/model/aireviewcustomcheckrun.d.ts +18 -0
  531. package/src/aireviewmode/model/aireviewcustomcheckrun.js +23 -0
  532. package/src/aireviewmode/model/aireviewmodels.d.ts +26 -0
  533. package/src/aireviewmode/model/aireviewmodels.js +23 -0
  534. package/src/aireviewmode/model/aireviewsystemcheckrun.d.ts +14 -0
  535. package/src/aireviewmode/model/aireviewsystemcheckrun.js +23 -0
  536. package/src/aireviewmode/ui/aireviemodepromptinputview.d.ts +29 -0
  537. package/src/aireviewmode/ui/aireviemodepromptinputview.js +23 -0
  538. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.d.ts +46 -0
  539. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +23 -0
  540. package/src/aireviewmode/ui/aireviewmodecustomcheckview.d.ts +23 -0
  541. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +23 -0
  542. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.d.ts +23 -0
  543. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +23 -0
  544. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.d.ts +80 -0
  545. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +23 -0
  546. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.d.ts +45 -0
  547. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +23 -0
  548. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.d.ts +18 -0
  549. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +23 -0
  550. package/src/aireviewmode/ui/aireviewmodeview.d.ts +42 -0
  551. package/src/aireviewmode/ui/aireviewmodeview.js +23 -0
  552. package/src/aireviewmode/ui/form/aireviewmodeformamanager.d.ts +16 -0
  553. package/src/aireviewmode/ui/form/aireviewmodeformamanager.js +23 -0
  554. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.d.ts +20 -0
  555. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +23 -0
  556. package/src/aireviewmode/ui/form/aireviewmodeformmanager.d.ts +16 -0
  557. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +23 -0
  558. package/src/aireviewmode/utils/common-translations.d.ts +9 -0
  559. package/src/aireviewmode/utils/common-translations.js +23 -0
  560. package/src/aitabs/aitabs.d.ts +92 -0
  561. package/src/aitabs/aitabs.js +23 -0
  562. package/src/aitabs/aitabsmainview.d.ts +45 -0
  563. package/src/aitabs/aitabsmainview.js +23 -0
  564. package/src/aitabs/tabs/aitabsview.d.ts +147 -0
  565. package/src/aitabs/tabs/aitabsview.js +23 -0
  566. package/src/aitabs/tabs/tabbuttonview.d.ts +47 -0
  567. package/src/aitabs/tabs/tabbuttonview.js +23 -0
  568. package/src/aitabs/tabs/tabpanelview.d.ts +44 -0
  569. package/src/aitabs/tabs/tabpanelview.js +23 -0
  570. package/src/augmentation.d.ts +22 -6
  571. package/src/index.d.ts +40 -9
  572. package/src/index.js +1 -1
  573. package/theme/aiballoon/aiballoon.css +207 -0
  574. package/theme/aichat/aichat-controls/aichat-context-chip.css +139 -0
  575. package/theme/aichat/aichat-controls/aichat-context-controls-balloon-panels.css +194 -0
  576. package/theme/aichat/aichat-controls/aichat-context-controls.css +46 -0
  577. package/theme/aichat/aichat-controls/aichat-controls-button.css +74 -0
  578. package/theme/aichat/aichat-controls/aichat-controls-loader.css +93 -0
  579. package/theme/aichat/aichat-controls/prompt-capabilities.css +46 -0
  580. package/theme/aichat/aichat-controls/prompt-input.css +55 -0
  581. package/theme/aichat/aichat-controls.css +154 -0
  582. package/theme/aichat/aichat.css +68 -0
  583. package/theme/aichat/aichatfeed.css +376 -0
  584. package/theme/aichat/aichathistory.css +235 -0
  585. package/theme/aichat/aiminitoolbar.css +94 -0
  586. package/theme/aichat/aisuggestioncontainer.css +203 -0
  587. package/theme/aiquickactions/aiquickactions.css +43 -0
  588. package/theme/aireviewmode/aireviewmode-check-list.css +255 -0
  589. package/theme/aireviewmode/aireviewmode-check-run.css +202 -0
  590. package/theme/aireviewmode/aireviewmode-review-completed.css +52 -0
  591. package/theme/aireviewmode/aireviewmode.css +73 -0
  592. package/theme/aitabs/aitabsview.css +64 -0
  593. package/theme/aitabs/tabs/tabbuttonview.css +74 -0
  594. package/theme/aitabs/tabs/tabsview.css +78 -0
  595. package/theme/common/aibutton.css +145 -0
  596. package/theme/common/aichaterror.css +61 -0
  597. package/theme/common/aidisclaimer.css +29 -0
  598. package/theme/common/aiheader.css +88 -0
  599. package/theme/common/aiskeleton.css +54 -0
  600. package/theme/common/aispinner.css +58 -0
  601. package/src/adapters/aiadapter.js +0 -23
  602. package/src/adapters/aitextadapter.js +0 -23
  603. package/src/adapters/awstextadapter.js +0 -23
  604. package/src/adapters/openaitextadapter.js +0 -23
  605. package/src/aiassistant.js +0 -23
  606. package/src/aiassistantediting.js +0 -23
  607. package/src/aiassistantui.js +0 -23
  608. package/src/ui/aiassistantcontroller.js +0 -24
  609. package/src/ui/form/aiformcontentarea.js +0 -23
  610. package/src/ui/form/aiformerrorview.js +0 -23
  611. package/src/ui/form/aiformpromptview.js +0 -23
  612. package/src/ui/form/aiformtoolbarview.js +0 -23
  613. package/src/ui/form/aiformview.js +0 -23
  614. package/src/ui/form/aihistorylistitemview.js +0 -23
  615. package/src/ui/form/aihistorylistview.js +0 -23
  616. package/src/ui/form/prompthistory.js +0 -23
  617. package/src/ui/showaiassistantcommand.js +0 -23
  618. /package/src/{aiassistantediting.d.ts → aiassistant/aiassistantediting.d.ts} +0 -0
  619. /package/src/{legacyerrors.d.ts → aiassistant/legacyerrors.d.ts} +0 -0
  620. /package/src/{ui → aiassistant/ui}/form/aiformerrorview.d.ts +0 -0
  621. /package/theme/{ai-dropdown.css → aiassistant/ai-dropdown.css} +0 -0
  622. /package/theme/{ai-form.css → aiassistant/ai-form.css} +0 -0
  623. /package/theme/{ai.css → aiassistant/ai.css} +0 -0
@@ -0,0 +1,297 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
+ /**
6
+ * @module ai/aichat/aichatui
7
+ * @publicApi
8
+ */
9
+ import { type Context, type Editor, ContextPlugin } from 'ckeditor5/src/core.js';
10
+ import { AITabs } from '../aitabs/aitabs.js';
11
+ import { type AIAddContextOptionsState, type AIContextProvider, type AIContextResource, type AIContextResourceState } from './model/aichatcontext.js';
12
+ import { type AIContextItem } from '../aicore/model/aicontext.js';
13
+ import { type Document } from '../aicore/utils/htmlparser.js';
14
+ import { type AICapabilitiesConfig } from '../aicore/model/aicapabilities.js';
15
+ import { type AIReplySource, type AIReply, type AIReplyChangeGroupState } from '../aicore/model/aireply.js';
16
+ import { type AISuggestionContentPartDefinition } from '../aicore/utils/getsuggestionpartsfromreply.js';
17
+ import { type AIChatConversationInitializedEvent } from './model/aichatconversation.js';
18
+ import { type AIChatModel } from './model/aichatmodels.js';
19
+ import { type AIChatInteraction } from './model/aichatinteraction.js';
20
+ import { type AIContentRenderingStrategy } from '../aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js';
21
+ import '../../theme/aichat/aichat.css';
22
+ export declare class AIChatUI extends ContextPlugin {
23
+ /**
24
+ * @inheritDoc
25
+ */
26
+ static get requires(): readonly [typeof AITabs];
27
+ /**
28
+ * @inheritDoc
29
+ */
30
+ static get pluginName(): "AIChatUI";
31
+ /**
32
+ * @inheritDoc
33
+ */
34
+ static get isOfficialPlugin(): true;
35
+ /**
36
+ * @inheritDoc
37
+ */
38
+ static get isPremiumPlugin(): true;
39
+ /**
40
+ * The busy state of the UI.
41
+ *
42
+ * It is set to `true` when there are AI response being streamed or rendered.
43
+ *
44
+ * @observable
45
+ */
46
+ isBusy: boolean;
47
+ /**
48
+ * @inheritDoc
49
+ */
50
+ constructor(context: Context | Editor);
51
+ destroy(): void;
52
+ /**
53
+ * Creates a new conversation by greeting the user.
54
+ */
55
+ createConversation(data: AIChatConversationInitializedEvent['args'][0]): void;
56
+ /**
57
+ * Adds a generic message to the chat feed.
58
+ */
59
+ addFeedItemStaticMessage({ id, staticMessage }: {
60
+ id: string;
61
+ staticMessage?: string;
62
+ }): void;
63
+ /**
64
+ * Adds a user message to the chat feed.
65
+ */
66
+ addFeedItemUserMessage(interaction: AIChatInteraction): void;
67
+ /**
68
+ * Adds an error message to the chat feed.
69
+ */
70
+ addFeedItemError({ errorMessage, id }: {
71
+ errorMessage: string;
72
+ id: string;
73
+ }): void;
74
+ /**
75
+ * Adds an AI reply to the chat feed.
76
+ */
77
+ addFeedItemAIReply(reply: AIReply): Promise<void>;
78
+ /**
79
+ * Adds an AI suggestion reply to the chat feed.
80
+ */
81
+ addFeedItemAISuggestion(reply: AIReply): Promise<void>;
82
+ /**
83
+ * Adds an interaction header to the chat feed.
84
+ */
85
+ addFeedInteractionHeader(interaction: AIChatInteraction): void;
86
+ /**
87
+ * Updates the visibility of the interaction header in the chat feed.
88
+ */
89
+ updateFeedInteractionHeader(options: {
90
+ isVisible: boolean;
91
+ id: string;
92
+ }): void;
93
+ /**
94
+ * Updates the content of an AI reply in the chat feed.
95
+ */
96
+ updateFeedItemAIReplyContent(options: {
97
+ id: string;
98
+ parsedContent: Document;
99
+ renderingStrategy?: AIContentRenderingStrategy;
100
+ isDone?: boolean;
101
+ }): Promise<void>;
102
+ updateFeedItemAIReplySources(id: string, sources: Array<AIReplySource>): void;
103
+ /**
104
+ * Updates the content of an AI suggestion reply in the chat feed.
105
+ */
106
+ updateFeedItemAIReplySuggestionContent(options: {
107
+ id: string;
108
+ parts: Array<AISuggestionContentPartDefinition>;
109
+ renderingStrategy?: AIContentRenderingStrategy;
110
+ isDone?: boolean;
111
+ }): Promise<void>;
112
+ updateFeedItemAIReplySuggestionPartState(options: {
113
+ id: string;
114
+ index: number;
115
+ state: AIReplyChangeGroupState;
116
+ }): void;
117
+ /**
118
+ * Removes an interaction from the chat feed. Interaction is a user message + one or more AI replies.
119
+ */
120
+ removeFeedInteraction(interactionId: string): void;
121
+ /**
122
+ * Starts a new interaction processing in the UI and marks the UI as busy.
123
+ */
124
+ startInteraction(interaction: AIChatInteraction): void;
125
+ /**
126
+ * Handles the user stopping the interaction. It terminates all scheduled UI update promises and unlocks the UI
127
+ * immediately.
128
+ */
129
+ stopInteraction(interaction: AIChatInteraction): void;
130
+ /**
131
+ * Handles the interaction finishing due to lack of data to process (or an error). Waits for all pending UI
132
+ * updates to finish, then unlocks the UI.
133
+ */
134
+ finishInteraction(): Promise<void>;
135
+ /**
136
+ * Adds an item chip to the current context list.
137
+ */
138
+ addContextItem(contextItem: AIContextItem, isLoading: boolean): void;
139
+ /**
140
+ * Removes an item from the context as chip.
141
+ */
142
+ removeContextItem(id: string): void;
143
+ /**
144
+ * Sets the loading state of an item chip in the current context list.
145
+ */
146
+ setContextItemLoading(uiId: string, isLoading: boolean): void;
147
+ /**
148
+ * Sets the upload in progress state.
149
+ */
150
+ setIsUploadInProgress(isUploadInProgress: boolean): void;
151
+ /**
152
+ * Sets the conversation context chips.
153
+ */
154
+ setConversationContext(contextItems: Array<AIContextItem>): void;
155
+ /**
156
+ * Removes all chips from the current context list.
157
+ */
158
+ clearPendingContextUI(): void;
159
+ /**
160
+ * Clears all chips from the conversation context list.
161
+ */
162
+ clearConversationContextUI(): void;
163
+ /**
164
+ * Updates the state of a specific resource in the balloon views.
165
+ */
166
+ updateResourceState(sourceId: string, resourceId: string, isInContext: boolean): void;
167
+ /**
168
+ * Resets the message input in the controls view.
169
+ */
170
+ resetMessageInput(): void;
171
+ /**
172
+ * Sets the add context options in the UI.
173
+ */
174
+ setAddContextOptions(options: AIAddContextOptionsState): void;
175
+ /**
176
+ * Updates the capabilities of the AI chat in the UI.
177
+ */
178
+ updateCapabilities(capabilities: AICapabilitiesConfig): void;
179
+ /**
180
+ * Updates selected AI model in the controls view.
181
+ */
182
+ setSelectedModel(model: AIChatModel, isDisabled?: boolean): void;
183
+ /**
184
+ * Sets the rendering strategy for the feed items. Streaming is default and uses HTMLStreamer to stream the content.
185
+ *
186
+ * Static works out for messages that must appear instantly.
187
+ */
188
+ setFeedItemRenderingStrategy(strategy: 'streaming' | 'static'): void;
189
+ /**
190
+ * Toggles the loading skeleton in the chat feed.
191
+ */
192
+ toggleLoadingSkeleton(isLoading: boolean): void;
193
+ /**
194
+ * Resets the conversation title to the default value.
195
+ */
196
+ resetConversationTitle(): void;
197
+ /**
198
+ * Sets the title for the conversation.
199
+ *
200
+ * @param title The new title of the conversation.
201
+ * @param shouldAnimate Whether the title change should be animated. Defaults to `false`.
202
+ */
203
+ setConversationTitle(title: string, shouldAnimate?: boolean): void;
204
+ setIsMaximized(isMaximized: boolean): void;
205
+ /**
206
+ * Populates a source resource balloon with loaded resources.
207
+ */
208
+ populateSourceResourceBalloon(sourceId: string, source: AIContextProvider, resources: Array<AIContextResourceState>, uid: string): void;
209
+ /**
210
+ * Closes the source resource balloon and cleans up its state.
211
+ */
212
+ closeSourceResourceBalloon(sourceId: string): void;
213
+ focusPromptInput(): void;
214
+ scrollFeedToSuggestion(replyId: string, partIndex: number): void;
215
+ }
216
+ /**
217
+ * An event fired when the user starts a new conversation.
218
+ */
219
+ export type AIChatUIStartConversationEvent = {
220
+ name: 'startConversation';
221
+ args: [];
222
+ };
223
+ /**
224
+ * An event fired when the user sends a message to the AI.
225
+ */
226
+ export type AIChatUISendUserMessageEvent = {
227
+ name: 'sendUserMessage';
228
+ args: [
229
+ string
230
+ ];
231
+ };
232
+ /**
233
+ * An event fired when the user wants to abort the current interaction with the AI.
234
+ */
235
+ export type AIChatUIAbortPromptStreamEvent = {
236
+ name: 'abortPromptStream';
237
+ args: [];
238
+ };
239
+ /**
240
+ * An event fired when the user wants to add a document to the context.
241
+ */
242
+ export type AIChatUIAddDocumentToContextEvent = {
243
+ name: 'addDocumentToContext';
244
+ args: [];
245
+ };
246
+ /**
247
+ * An event fired when the user wants to add a file to the context.
248
+ */
249
+ export type AIChatUIAddFileToContextEvent = {
250
+ name: 'addFileToContext';
251
+ args: [
252
+ Array<File>
253
+ ];
254
+ };
255
+ /**
256
+ * An event fired when the user wants to add a URL to the context.
257
+ */
258
+ export type AIChatUIAddUrlToContextEvent = {
259
+ name: 'addUrlToContext';
260
+ args: [
261
+ string
262
+ ];
263
+ };
264
+ /**
265
+ * An event fired when the user wants to add a resource to the context.
266
+ */
267
+ export type AIChatUIAddResourceToContextEvent = {
268
+ name: 'addResourceToContext';
269
+ args: [
270
+ {
271
+ source: AIContextProvider;
272
+ resource: AIContextResource;
273
+ }
274
+ ];
275
+ };
276
+ /**
277
+ * An event fired when the user wants to remove a context item.
278
+ */
279
+ export type AIChatUIRemoveContextItemEvent = {
280
+ name: 'removeContextItem';
281
+ args: [
282
+ string
283
+ ];
284
+ };
285
+ /**
286
+ * An event fired when the user wants to load resources from a source provider.
287
+ */
288
+ export type AIChatUILoadSourceResourcesEvent = {
289
+ name: 'loadSourceResources';
290
+ args: [
291
+ {
292
+ sourceId: string;
293
+ query: string;
294
+ uid: string;
295
+ }
296
+ ];
297
+ };
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ const _0x4776d2=_0xa7fa;(function(_0x5bae63,_0x139d0a){const _0x1c13d9=_0xa7fa,_0x1b8178=_0x5bae63();while(!![]){try{const _0x141a7b=parseInt(_0x1c13d9(0x114))/0x1*(-parseInt(_0x1c13d9(0x15e))/0x2)+-parseInt(_0x1c13d9(0x132))/0x3+-parseInt(_0x1c13d9(0x133))/0x4+parseInt(_0x1c13d9(0xfe))/0x5*(-parseInt(_0x1c13d9(0x15f))/0x6)+parseInt(_0x1c13d9(0xe3))/0x7*(parseInt(_0x1c13d9(0xe5))/0x8)+parseInt(_0x1c13d9(0x12d))/0x9+parseInt(_0x1c13d9(0x168))/0xa;if(_0x141a7b===_0x139d0a)break;else _0x1b8178['push'](_0x1b8178['shift']());}catch(_0x129f7a){_0x1b8178['push'](_0x1b8178['shift']());}}}(_0x2eab,0xe8b06));import{ContextPlugin as _0x320d73}from'ckeditor5/src/core.js';import{_isMotionReduced as _0xe100d9}from'ckeditor5/src/utils.js';function _0xa7fa(_0x27ecb8,_0x1ac3f8){const _0x2eab96=_0x2eab();return _0xa7fa=function(_0xa7fa0b,_0x14919f){_0xa7fa0b=_0xa7fa0b-0xdc;let _0xc7b5b0=_0x2eab96[_0xa7fa0b];return _0xc7b5b0;},_0xa7fa(_0x27ecb8,_0x1ac3f8);}import{AIChatView as _0x4da9ac}from'./ui/aichatview.js';import{AITabs as _0x369830}from'../aitabs/aitabs.js';import{getTranslation as _0x2bacd0}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x56269e}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x61d7e2}from'./ui/feed/aichatfeedinteractionheaderview.js';function _0x2eab(){const _0x480141=['delegate','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','toggleSuggestionDisplayMode','setReasoning','destroy','renderingStrategy','_getLoadingMessage','clear','setSelectedModel','isBusy','getItemIds','requires','feedItemRenderingStrategy','updateFeedItemAIReplyContent','isReasoningEnabled','updateSuggestionPartState','markItemAsDone','2ChWhLg','8519700UvdMEm','_interactionPromiseResolver','interaction-header','abort','pluginName','isPremiumPlugin','updateWebSources','isVisible','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','42759040PikOvV','chat','AIChatUI','updateResourceState','closeSourceResourceBalloon','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','plugins','setConversationTitle','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','options','set','streaming','stopInteraction','children','_titleAnimationInterval','ai-reply','setIsMaximized','context','14qPrtcW','finishInteraction','4489880lksqrB','<p>','values','addFeedItemAIReply','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','_animateConversationTitle','chatHeader','setInputPlaceholder','updateSuggestionItem','setFeedItemRenderingStrategy','error-message','label','updateFeedInteractionHeader','clearPendingContextUI','removeItem','interactionId','AI_CHAT_WELCOME_MESSAGE','_view','updateFeedItemAIReplySources','removeContextItem','addFeedInteractionHeader','setAddContextOptions','updateReplyItem','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','isMaximized','5cbpgAZ','scrollToSuggestion','addItem','</p>','disableModelSelector','availableModels','startsWith','config','scrollFeedToSuggestion','enqueue','toggleLoadingSkeleton','setLoadingMessage','addContextItem','createConversation','ai-suggestion-reply','locale','stopAutoScroll','areActionsDisabled','ai.chat.models.modelSelectorAlwaysVisible','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','capabilities','conversation-start','1129285fauleh','resetMessageInput','length','bind','clearConversationContextUI','addFeedItemError','find','chatControls','quickActionData','isLoading','updateFeedItemAIReplySuggestionPartState','focusPromptInput','enableModelSelector','updateFeedItemAIReplySuggestionContent','forEach','then','startAutoScroll','filter','isWebSearchEnabled','displayedPrompt','populateSourceResourceBalloon','from','updateCapabilities','isDone','_getInputPlaceholder','3442653DuaHSl','setIsUploadInProgress','get','setConversationContext','contextItems','1292073OOHlVf','7391484aDNBan','addFeedItemAISuggestion','AITabs','addFeedItemUserMessage','setModelList','view','setWebSearch','isPending','setContextItemLoading','chatFeed','startInteraction','AI_CHAT_HEADING','userMessage','setModel','addFeedItemStaticMessage','removeFeedInteraction','_promiseQueue','user-message','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','isOfficialPlugin','showDiff','markFeedItemAsDone','resetConversationTitle','showResizeButton','addTab','queueEmptyPromise'];_0x2eab=function(){return _0x480141;};return _0x2eab();}import{PromiseQueue as _0x5538ba}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0x223be1}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';export class AIChatUI extends _0x320d73{static get[_0x4776d2(0x158)](){return[_0x369830];}[_0x4776d2(0xf6)];static get[_0x4776d2(0x163)](){const _0x1e4af9=_0x4776d2;return _0x1e4af9(0x16a);}static get[_0x4776d2(0x146)](){return!0x0;}static get[_0x4776d2(0x164)](){return!0x0;}[_0x4776d2(0x159)]=_0x4776d2(0xdc);[_0x4776d2(0x147)]=!0x0;[_0x4776d2(0x143)];[_0x4776d2(0x160)];[_0x4776d2(0xdf)]=void 0x0;constructor(_0x85fd69){const _0x4d0a58=_0x4776d2;super(_0x85fd69);const _0x80b5dd=this[_0x4d0a58(0xe2)][_0x4d0a58(0x16e)][_0x4d0a58(0x12f)](_0x4d0a58(0x135));this[_0x4d0a58(0x172)](_0x4d0a58(0x156),!0x1),this[_0x4d0a58(0x143)]=new _0x5538ba(),this[_0x4d0a58(0xf6)]=new _0x4da9ac(this[_0x4d0a58(0xe2)][_0x4d0a58(0x10d)],_0x80b5dd[_0x4d0a58(0x14a)]),this[_0x4d0a58(0xf6)][_0x4d0a58(0x14d)](..._0x223be1)['to'](this),this[_0x4d0a58(0xf6)]['on'](_0x4d0a58(0x14f),(_0xb0c49b,{showDiff:_0x1504ee})=>{const _0x12729f=_0x4d0a58;this[_0x12729f(0x147)]=_0x1504ee;}),_0x80b5dd[_0x4d0a58(0x138)][_0x4d0a58(0x14b)]({'id':_0x4d0a58(0x169),'buttonLabel':_0x2bacd0(this[_0x4d0a58(0xe2)][_0x4d0a58(0x10d)],_0x4d0a58(0x13e)),'buttonIcon':_0x56269e,'order':0x0,'content':this[_0x4d0a58(0xf6)]}),this[_0x4d0a58(0xf6)][_0x4d0a58(0x11b)][_0x4d0a58(0x117)](_0x4d0a58(0x11d))['to'](this,_0x4d0a58(0x156),_0x5262ce=>_0x5262ce),this[_0x4d0a58(0xf6)][_0x4d0a58(0x13c)][_0x4d0a58(0x117)](_0x4d0a58(0x13a))['to'](this,_0x4d0a58(0x156),_0x73a8df=>_0x73a8df),this[_0x4d0a58(0xf6)][_0x4d0a58(0x11b)][_0x4d0a58(0xec)](this[_0x4d0a58(0x12c)]());}[_0x4776d2(0x151)](){const _0x456811=_0x4776d2;super[_0x456811(0x151)](),this[_0x456811(0xdf)]&&clearInterval(this[_0x456811(0xdf)]);}[_0x4776d2(0x10b)](_0x5aaaf4){const _0x1f8afa=_0x4776d2;this[_0x1f8afa(0xf6)][_0x1f8afa(0x13c)][_0x1f8afa(0x154)](),this[_0x1f8afa(0xf6)][_0x1f8afa(0x11b)][_0x1f8afa(0x120)](),this[_0x1f8afa(0xf6)][_0x1f8afa(0x11b)][_0x1f8afa(0x137)](_0x5aaaf4[_0x1f8afa(0x103)],!this[_0x1f8afa(0xe2)][_0x1f8afa(0x105)][_0x1f8afa(0x12f)](_0x1f8afa(0x110))),this[_0x1f8afa(0x141)]({'id':_0x1f8afa(0x113),'staticMessage':_0x2bacd0(this[_0x1f8afa(0xe2)][_0x1f8afa(0x10d)],_0x1f8afa(0xf5))});}[_0x4776d2(0x141)]({id:_0xd9e427,staticMessage:_0x33c3ca}){const _0x41b376=_0x4776d2;this[_0x41b376(0xf6)][_0x41b376(0x13c)][_0x41b376(0x100)](_0x41b376(0xe0),{'id':_0xd9e427,'initialContent':_0x41b376(0xe6)+_0x33c3ca+_0x41b376(0x101)});}[_0x4776d2(0x136)](_0x4cea51){const _0x51c0df=_0x4776d2,_0x4b6f96=_0x4cea51[_0x51c0df(0x11c)]?.[_0x51c0df(0x127)]||_0x4cea51[_0x51c0df(0x13f)];this[_0x51c0df(0xf6)][_0x51c0df(0x13c)][_0x51c0df(0x100)](_0x51c0df(0x144),{'contextItems':Array[_0x51c0df(0x129)](_0x4cea51[_0x51c0df(0x131)][_0x51c0df(0xe7)]()),'initialContent':_0x51c0df(0xe6)+_0x4b6f96+_0x51c0df(0x101),'id':_0x4cea51['id']});}[_0x4776d2(0x119)]({errorMessage:_0xcabca0,id:_0x4fb4ad}){const _0xa647a0=_0x4776d2;this[_0xa647a0(0xf6)][_0xa647a0(0x13c)][_0xa647a0(0x100)](_0xa647a0(0xef),{'initialContent':_0xa647a0(0xe6)+_0xcabca0+_0xa647a0(0x101),'id':_0x4fb4ad});}[_0x4776d2(0xe8)](_0x2cb95d){const _0x4c54c2=_0x4776d2;return this[_0x4c54c2(0x143)][_0x4c54c2(0x107)](async()=>{const _0x1bed81=_0x4c54c2;this[_0x1bed81(0xf6)][_0x1bed81(0x13c)][_0x1bed81(0x100)](_0x1bed81(0xe0),{'id':_0x2cb95d[_0x1bed81(0xf4)]+':'+_0x2cb95d['id']}),this[_0x1bed81(0xf6)][_0x1bed81(0x13c)][_0x1bed81(0x109)]('');});}async[_0x4776d2(0x134)](_0xca2e87){const _0x3d0ed2=_0x4776d2;return this[_0x3d0ed2(0x143)][_0x3d0ed2(0x107)](async()=>{const _0x471afc=_0x3d0ed2;this[_0x471afc(0xf6)][_0x471afc(0x13c)][_0x471afc(0x100)](_0x471afc(0x10c),{'id':_0xca2e87[_0x471afc(0xf4)]+':'+_0xca2e87['id'],'areActionsDisabled':_0xca2e87[_0x471afc(0x10f)],'showDiff':this[_0x471afc(0x147)]}),this[_0x471afc(0xf6)][_0x471afc(0x13c)][_0x471afc(0x109)]('');});}[_0x4776d2(0xf9)](_0x57c8fe){const _0x4f46e5=_0x4776d2;this[_0x4f46e5(0xf6)][_0x4f46e5(0x13c)][_0x4f46e5(0x100)](_0x4f46e5(0x161),{'id':_0x57c8fe['id'],'capabilities':_0x57c8fe[_0x4f46e5(0x112)]});}[_0x4776d2(0xf1)](_0xe2759e){const _0x44a2c8=_0x4776d2,_0x188726=this[_0x44a2c8(0xf6)][_0x44a2c8(0x13c)][_0x44a2c8(0xde)][_0x44a2c8(0x11a)](_0x21559d=>_0x21559d[_0x44a2c8(0x171)]['id']==_0xe2759e['id']&&_0x21559d instanceof _0x61d7e2);_0x188726&&_0x188726[_0x44a2c8(0x172)](_0x44a2c8(0x166),_0xe2759e[_0x44a2c8(0x166)]);}async[_0x4776d2(0x15a)](_0x4e1246){const _0x395066=_0x4776d2,_0x276ab2=_0x4e1246[_0x395066(0x152)]||this[_0x395066(0x159)];return this[_0x395066(0x143)][_0x395066(0x107)](async _0x5b0639=>{const _0x1a4262=_0x395066;await this[_0x1a4262(0xf6)][_0x1a4262(0x13c)][_0x1a4262(0xfb)]({..._0x4e1246,'abortSignal':_0x5b0639,'renderingStrategy':_0x276ab2}),_0x4e1246[_0x1a4262(0x12b)]&&this[_0x1a4262(0x148)](_0x4e1246['id']);});}[_0x4776d2(0xf7)](_0x252107,_0x419ef4){const _0xcad2b7=_0x4776d2;this[_0xcad2b7(0xf6)][_0xcad2b7(0x13c)][_0xcad2b7(0x165)](_0x252107,_0x419ef4);}async[_0x4776d2(0x121)](_0x237be8){const _0xd121ef=_0x4776d2,_0x2abd47=_0x237be8[_0xd121ef(0x152)]||this[_0xd121ef(0x159)];return this[_0xd121ef(0x143)][_0xd121ef(0x107)](async _0x5088fc=>{const _0x2d5b62=_0xd121ef;await this[_0x2d5b62(0xf6)][_0x2d5b62(0x13c)][_0x2d5b62(0xed)]({..._0x237be8,'abortSignal':_0x5088fc,'renderingStrategy':_0x2abd47}),_0x237be8[_0x2d5b62(0x12b)]&&this[_0x2d5b62(0x148)](_0x237be8['id']);});}[_0x4776d2(0x11e)](_0x18abf0){const _0x32b321=_0x4776d2;this[_0x32b321(0xf6)][_0x32b321(0x13c)][_0x32b321(0x15c)](_0x18abf0);}[_0x4776d2(0x148)](_0x39d393){const _0x1fbf8b=_0x4776d2;this[_0x1fbf8b(0xf6)][_0x1fbf8b(0x13c)][_0x1fbf8b(0x15d)](_0x39d393);}[_0x4776d2(0x142)](_0x38c21b){const _0xeecc91=_0x4776d2;this[_0xeecc91(0xf6)][_0xeecc91(0x13c)][_0xeecc91(0x157)]()[_0xeecc91(0x125)](_0x4800fb=>_0x4800fb[_0xeecc91(0x104)](_0x38c21b))[_0xeecc91(0x122)](_0x2ebefa=>this[_0xeecc91(0xf6)][_0xeecc91(0x13c)][_0xeecc91(0xf3)](_0x2ebefa));}[_0x4776d2(0x13d)](_0x3e1312){const _0x29fad0=_0x4776d2;this[_0x29fad0(0xf6)][_0x29fad0(0x13c)][_0x29fad0(0x109)](this[_0x29fad0(0x153)](_0x3e1312)),this[_0x29fad0(0xf6)][_0x29fad0(0x11b)][_0x29fad0(0x102)](!this[_0x29fad0(0xe2)][_0x29fad0(0x105)][_0x29fad0(0x12f)](_0x29fad0(0x110))),this[_0x29fad0(0x156)]=!0x0,this[_0x29fad0(0xf6)][_0x29fad0(0x13c)][_0x29fad0(0x124)]();}[_0x4776d2(0xdd)](_0x92caeb){const _0x125503=_0x4776d2;this[_0x125503(0x143)][_0x125503(0x162)](),this[_0x125503(0xf6)][_0x125503(0x13c)][_0x125503(0x157)]()[_0x125503(0x125)](_0x250aff=>_0x250aff[_0x125503(0x104)](_0x92caeb['id']))[_0x125503(0x122)](_0x443474=>this[_0x125503(0x148)](_0x443474)),this[_0x125503(0x156)]=!0x1,this[_0x125503(0xf6)][_0x125503(0x13c)][_0x125503(0x10e)]();}async[_0x4776d2(0xe4)](){const _0x36d9e5=_0x4776d2;return this[_0x36d9e5(0x143)][_0x36d9e5(0x14c)][_0x36d9e5(0x123)](()=>{const _0x546875=_0x36d9e5;this[_0x546875(0x156)]=!0x1,this[_0x546875(0xf6)][_0x546875(0x13c)][_0x546875(0x10e)]();});}[_0x4776d2(0x10a)](_0x5d7040,_0x19c654){const _0x24842d=_0x4776d2;this[_0x24842d(0xf6)][_0x24842d(0x11b)][_0x24842d(0x10a)](_0x5d7040,_0x19c654);}[_0x4776d2(0xf8)](_0x398e13){const _0x23d3e9=_0x4776d2;this[_0x23d3e9(0xf6)][_0x23d3e9(0x11b)][_0x23d3e9(0xf8)](_0x398e13);}[_0x4776d2(0x13b)](_0x2aef57,_0x34a59a){const _0xb17de2=_0x4776d2;this[_0xb17de2(0xf6)][_0xb17de2(0x11b)][_0xb17de2(0x13b)](_0x2aef57,_0x34a59a);}[_0x4776d2(0x12e)](_0x537b9a){const _0x2d2687=_0x4776d2;this[_0x2d2687(0xf6)][_0x2d2687(0x11b)][_0x2d2687(0x12e)](_0x537b9a);}[_0x4776d2(0x130)](_0x3ba59f){const _0x4e2ea3=_0x4776d2;this[_0x4e2ea3(0xf6)][_0x4e2ea3(0x11b)][_0x4e2ea3(0x130)](_0x3ba59f);}[_0x4776d2(0xf2)](){const _0xf9982d=_0x4776d2;this[_0xf9982d(0xf6)][_0xf9982d(0x11b)][_0xf9982d(0xf2)]();}[_0x4776d2(0x118)](){const _0x29dcc6=_0x4776d2;this[_0x29dcc6(0xf6)][_0x29dcc6(0x11b)][_0x29dcc6(0x118)]();}[_0x4776d2(0x16b)](_0x3b0326,_0x1f230e,_0x4763ec){const _0x514d8f=_0x4776d2;this[_0x514d8f(0xf6)][_0x514d8f(0x11b)][_0x514d8f(0x16b)](_0x3b0326,_0x1f230e,_0x4763ec);}[_0x4776d2(0x115)](){const _0x4760aa=_0x4776d2;this[_0x4760aa(0xf6)][_0x4760aa(0x11b)][_0x4760aa(0x115)](),this[_0x4760aa(0xf6)][_0x4760aa(0x11b)][_0x4760aa(0xec)](this[_0x4760aa(0x12c)]());}[_0x4776d2(0xfa)](_0x474390){const _0x37361a=_0x4776d2;this[_0x37361a(0xf6)][_0x37361a(0x11b)][_0x37361a(0xfa)](_0x474390);}[_0x4776d2(0x12a)](_0x1ffebf){const _0x4401ef=_0x4776d2;this[_0x4401ef(0xf6)][_0x4401ef(0x11b)][_0x4401ef(0x139)](_0x1ffebf[_0x4401ef(0x126)]),this[_0x4401ef(0xf6)][_0x4401ef(0x11b)][_0x4401ef(0x150)](_0x1ffebf[_0x4401ef(0x15b)]),this[_0x4401ef(0xf6)][_0x4401ef(0x11b)][_0x4401ef(0xec)](this[_0x4401ef(0x12c)](_0x1ffebf));}[_0x4776d2(0x155)](_0x57f14d,_0x118b6e){const _0x203b1f=_0x4776d2;this[_0x203b1f(0xf6)][_0x203b1f(0x11b)][_0x203b1f(0x140)](_0x57f14d),_0x118b6e&&this[_0x203b1f(0xf6)][_0x203b1f(0x11b)][_0x203b1f(0x102)](!0x1);}[_0x4776d2(0xee)](_0x56892e){const _0x49b863=_0x4776d2;this[_0x49b863(0x159)]=_0x56892e;}[_0x4776d2(0x108)](_0x420fb6){const _0x3eeede=_0x4776d2;this[_0x3eeede(0xf6)][_0x3eeede(0x13c)][_0x3eeede(0x108)](_0x420fb6);}[_0x4776d2(0x149)](){const _0x3dba5d=_0x4776d2;this[_0x3dba5d(0x16f)](_0x2bacd0(this[_0x3dba5d(0xe2)][_0x3dba5d(0x10d)],_0x3dba5d(0x13e)));}[_0x4776d2(0x16f)](_0x237685,_0x4490a7=!0x1){const _0xfe7970=_0x4776d2;if(_0x4490a7&&!_0xe100d9()&&_0x237685[_0xfe7970(0x116)])return this[_0xfe7970(0xf6)][_0xfe7970(0xeb)][_0xfe7970(0xf0)]='',void this[_0xfe7970(0xea)](_0x237685);this[_0xfe7970(0xf6)][_0xfe7970(0xeb)][_0xfe7970(0xf0)]=_0x237685;}[_0x4776d2(0xea)](_0x379988){const _0x1f5fa4=_0x4776d2;let _0x170517=0x0;clearInterval(this[_0x1f5fa4(0xdf)]),this[_0x1f5fa4(0xdf)]=setInterval(()=>{const _0x189c67=_0x1f5fa4;this[_0x189c67(0xf6)][_0x189c67(0xeb)][_0x189c67(0xf0)]=this[_0x189c67(0xf6)][_0x189c67(0xeb)][_0x189c67(0xf0)]+_0x379988[_0x170517],_0x170517++,_0x170517===_0x379988[_0x189c67(0x116)]&&clearInterval(this[_0x189c67(0xdf)]);},0x1e);}[_0x4776d2(0xe1)](_0x357ff1){const _0x195c49=_0x4776d2;this[_0x195c49(0xf6)][_0x195c49(0xeb)][_0x195c49(0xfd)]=_0x357ff1;}[_0x4776d2(0x153)](_0x571c54){const _0x50866d=_0x4776d2,_0xb683af=_0x571c54[_0x50866d(0x112)];return _0xb683af[_0x50866d(0x126)]&&_0xb683af[_0x50866d(0x15b)]?_0x2bacd0(this[_0x50866d(0xe2)][_0x50866d(0x10d)],_0x50866d(0xfc)):_0xb683af[_0x50866d(0x126)]?_0x2bacd0(this[_0x50866d(0xe2)][_0x50866d(0x10d)],_0x50866d(0x16d)):_0xb683af[_0x50866d(0x15b)]?_0x2bacd0(this[_0x50866d(0xe2)][_0x50866d(0x10d)],_0x50866d(0x14e)):_0x2bacd0(this[_0x50866d(0xe2)][_0x50866d(0x10d)],_0x50866d(0x145));}[_0x4776d2(0x12c)](_0x1f8781){const _0x58f46d=_0x4776d2;return _0x1f8781?_0x1f8781[_0x58f46d(0x126)]&&_0x1f8781[_0x58f46d(0x15b)]?_0x2bacd0(this[_0x58f46d(0xe2)][_0x58f46d(0x10d)],_0x58f46d(0x111)):_0x1f8781[_0x58f46d(0x126)]?_0x2bacd0(this[_0x58f46d(0xe2)][_0x58f46d(0x10d)],_0x58f46d(0x167)):_0x1f8781[_0x58f46d(0x15b)]?_0x2bacd0(this[_0x58f46d(0xe2)][_0x58f46d(0x10d)],_0x58f46d(0xe9)):_0x2bacd0(this[_0x58f46d(0xe2)][_0x58f46d(0x10d)],_0x58f46d(0x170)):_0x2bacd0(this[_0x58f46d(0xe2)][_0x58f46d(0x10d)],_0x58f46d(0x170));}[_0x4776d2(0x128)](_0x277a07,_0x2ed62e,_0x3e70db,_0x3e787c){const _0x3d50d3=_0x4776d2;this[_0x3d50d3(0xf6)][_0x3d50d3(0x128)](_0x277a07,_0x2ed62e,_0x3e70db,_0x3e787c);}[_0x4776d2(0x16c)](_0x5d7b1c){const _0x34c0e7=_0x4776d2;this[_0x34c0e7(0xf6)][_0x34c0e7(0x16c)](_0x5d7b1c);}[_0x4776d2(0x11f)](){const _0xdf7894=_0x4776d2;this[_0xdf7894(0xf6)][_0xdf7894(0x11b)][_0xdf7894(0x11f)]();}[_0x4776d2(0x106)](_0x307bb6,_0xfb0c49){const _0x175e50=_0x4776d2;this[_0x175e50(0xf6)][_0x175e50(0x13c)][_0x175e50(0xff)](_0x307bb6,_0xfb0c49);}}