@ckeditor/ckeditor5-ai 46.1.1 → 47.0.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (624) 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 +2648 -0
  79. package/dist/index.css +3047 -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 +162 -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/aiassistant/legacyerrors.js +23 -0
  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 +82 -31
  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 +101 -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 +19 -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 +154 -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/legacyerrors.js +0 -23
  609. package/src/ui/aiassistantcontroller.js +0 -24
  610. package/src/ui/form/aiformcontentarea.js +0 -23
  611. package/src/ui/form/aiformerrorview.js +0 -23
  612. package/src/ui/form/aiformpromptview.js +0 -23
  613. package/src/ui/form/aiformtoolbarview.js +0 -23
  614. package/src/ui/form/aiformview.js +0 -23
  615. package/src/ui/form/aihistorylistitemview.js +0 -23
  616. package/src/ui/form/aihistorylistview.js +0 -23
  617. package/src/ui/form/prompthistory.js +0 -23
  618. package/src/ui/showaiassistantcommand.js +0 -23
  619. /package/src/{aiassistantediting.d.ts → aiassistant/aiassistantediting.d.ts} +0 -0
  620. /package/src/{legacyerrors.d.ts → aiassistant/legacyerrors.d.ts} +0 -0
  621. /package/src/{ui → aiassistant/ui}/form/aiformerrorview.d.ts +0 -0
  622. /package/theme/{ai-dropdown.css → aiassistant/ai-dropdown.css} +0 -0
  623. /package/theme/{ai-form.css → aiassistant/ai-form.css} +0 -0
  624. /package/theme/{ai.css → aiassistant/ai.css} +0 -0
@@ -0,0 +1,105 @@
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/ui/controls/aichatcontextpanelview
7
+ */
8
+ import { type Locale } from 'ckeditor5/src/utils.js';
9
+ import { type BodyCollection, ButtonView, IconView, View } from 'ckeditor5/src/ui.js';
10
+ import { type AIContextProvider, type AIContextResourceState, type AIAddContextOptionsState } from '../../../aichat/model/aichatcontext.js';
11
+ import { type AIContextItem } from '../../../aicore/model/aicontext.js';
12
+ export declare const CONTEXT_PANEL_VIEW_EVENT_NAMES: readonly ["addDocumentToContext", "addFileToContext", "addUrlToContext", "addResourceToContext", "removeContextItem", "loadSourceResources"];
13
+ /**
14
+ * Manages the context panel UI for AI chat, including pending contexts and conversation contexts.
15
+ */
16
+ export declare class AIChatContextPanelView extends View {
17
+ /**
18
+ * Button view for adding a context.
19
+ *
20
+ * **Note**: It gets rendered in the `AIChatPromptInputView` due to positioning constraints.
21
+ */
22
+ readonly addContextButtonView: ButtonView;
23
+ constructor(locale: Locale, bodyCollection: BodyCollection);
24
+ /**
25
+ * @inheritDoc
26
+ */
27
+ render(): void;
28
+ /**
29
+ * @inheritDoc
30
+ */
31
+ destroy(): void;
32
+ /**
33
+ * Adds a context item to the current contexts collection.
34
+ */
35
+ addContextItem(contextItem: AIContextItem, isLoading: boolean): void;
36
+ /**
37
+ * Removes a context item by ID from the current contexts.
38
+ */
39
+ removeContextItem(id: string): void;
40
+ /**
41
+ * Sets the loading state of a context item.
42
+ */
43
+ setContextItemLoading(uiId: string, isLoading: boolean): void;
44
+ /**
45
+ * Sets the conversation context chips.
46
+ */
47
+ setConversationContext(contextItems: Array<AIContextItem>): void;
48
+ /**
49
+ * Clears all current context items.
50
+ */
51
+ clearCurrentContextItems(): void;
52
+ /**
53
+ * Clears all conversation context items.
54
+ */
55
+ clearConversationContextItems(): void;
56
+ /**
57
+ * Updates the state of a specific resource in the balloon views.
58
+ */
59
+ updateResourceState(sourceId: string, resourceId: string, isInContext: boolean): void;
60
+ /**
61
+ * Hides the add context balloon panel.
62
+ */
63
+ hideAddContextBalloonPanel(): void;
64
+ /**
65
+ * Shows the add context balloon panel.
66
+ */
67
+ showAddContextBalloonPanel(): void;
68
+ /**
69
+ * Hides the URL balloon panel.
70
+ */
71
+ hideUrlBalloonPanel(): void;
72
+ /**
73
+ * Shows the URL balloon panel.
74
+ */
75
+ showUrlBalloonPanel(): void;
76
+ /**
77
+ * Populates a source resource balloon with loaded resources.
78
+ */
79
+ populateSourceResourceBalloon(sourceId: string, source: AIContextProvider, resources: Array<AIContextResourceState>, uid: string): void;
80
+ /**
81
+ * Closes the source resource balloon and cleans up its state.
82
+ */
83
+ closeSourceResourceBalloon(sourceId: string): void;
84
+ /**
85
+ * Sets the add context options.
86
+ */
87
+ setAddContextOptions(options: AIAddContextOptionsState): void;
88
+ }
89
+ /**
90
+ * A balloon button view for sources. It includes an arrow.
91
+ */
92
+ export declare class SourcesBalloonButtonView extends ButtonView {
93
+ /**
94
+ * An icon that displays an arrow to indicate it's a menu button.
95
+ */
96
+ readonly arrowView: IconView;
97
+ /**
98
+ * @inheritDoc
99
+ */
100
+ constructor(locale: Locale);
101
+ /**
102
+ * @inheritDoc
103
+ */
104
+ render(): void;
105
+ }
@@ -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 _0x443f7a=_0x44d2;function _0x44d2(_0x33075f,_0x558e38){const _0x2d1236=_0x2d12();return _0x44d2=function(_0x44d2ba,_0x40b23b){_0x44d2ba=_0x44d2ba-0x1cb;let _0x5d800c=_0x2d1236[_0x44d2ba];return _0x5d800c;},_0x44d2(_0x33075f,_0x558e38);}(function(_0x5e4908,_0x79059e){const _0x1f9137=_0x44d2,_0x3951b8=_0x5e4908();while(!![]){try{const _0x5b2178=parseInt(_0x1f9137(0x204))/0x1*(-parseInt(_0x1f9137(0x206))/0x2)+parseInt(_0x1f9137(0x216))/0x3+parseInt(_0x1f9137(0x22e))/0x4*(-parseInt(_0x1f9137(0x257))/0x5)+parseInt(_0x1f9137(0x237))/0x6+parseInt(_0x1f9137(0x246))/0x7*(-parseInt(_0x1f9137(0x1ed))/0x8)+-parseInt(_0x1f9137(0x21f))/0x9*(-parseInt(_0x1f9137(0x219))/0xa)+parseInt(_0x1f9137(0x20e))/0xb;if(_0x5b2178===_0x79059e)break;else _0x3951b8['push'](_0x3951b8['shift']());}catch(_0x464487){_0x3951b8['push'](_0x3951b8['shift']());}}}(_0x2d12,0x49120));import{BalloonPanelView as _0x551729,ButtonView as _0x39c52e,clickOutsideHandler as _0x5ef739,FileDialogButtonView as _0x3228c0,IconView as _0x41a391,View as _0x3e2b4a}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x1caa61,IconDocument as _0x1a80e0,IconDocumentOutline as _0x519699,IconDropdownArrow as _0x12a1f5,IconLink as _0x34dbd4,IconPaperClip as _0x8b38f1}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x1ec021}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x241762}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x4101cd}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x1f398a}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x3d6395}from'./resources/aichatresourcesballoonview.js';function _0x2d12(){const _0xdb4cd9=['_setupAddContextBalloonClickOutsideHandler','isAnyResourceBalloonVisible','add','hide','_createBalloonButton','2960888Jmnytq','submitUrl','addContextItem','ck-ai-chat-context-chips-wrapper-balloon','document','div','__arrow','addUrlToContext','current','children','southArrowNorthWest','ck-ai-chat-context-controls__add-context-balloon-panel','urls','isVisible','southArrowNorthEast','clearConversationContextItems','reorganizeChips','locale','clearCurrentContextItems','northArrowSouthWest','updateResourceState','icon','_bindEventHandlers','5YsmKik','find','208252MGDFJx','arrowView','render','cancel','_overflowManager','_showSourceResourcesBalloon','northArrowSouthEast','_resourcesBalloonView','5081285aKCIAn','ck-ai-chat-controls-button','AI_CHAT_CONTEXT_ADD_CONTEXT','_createBaseBalloonPanel','_setupAllBalloonClickOutsideHandlers','_addContextToCollection','_currentContextsChips','addFileToContext','1318566ziasBJ','ck-ai-chat','addDocumentToContext','10ibUQMv','_toggleAddContextBalloon','ck-ai-chat-context-controls__balloon-button','_handleAddContextButtonClick','hideAddContextBalloonPanel','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','4816431BfGoEt','populateSourceResourceBalloon','addContextButtonView','southArrowNorth','bodyCollection','tooltip','isReadOnly','closeSourceResourceBalloon','_addContextBalloonPanelView','fire','ck-ai-chat-controls_context_show-more-button','removeContextItemChip','defaultPositions','_urlInputView','ck-ai-chat-context-controls__add-context-button','2363356sCidOc','showAddContextBalloonPanel','_createResourcesBalloonView','pin','setConversationContext','setContainerElement','_getLimiterElement','_createAddContextButtonView','_createArrowView','2065560VikAQa','bind','_addUrlContent','body','show','_setAddContextButtonEnabled','addResourceToContext','AI_CHAT_CONTEXT_URL_LABEL','northArrowSouth','_createUrlBalloonPanelView','ck-ai-chat-context-controls__url-balloon-panel','_createContextButton','menuitem','isEnabled','_handleUrlSubmit','7XaeefW','loadSourceResources','setTemplate','_conversationContextsChips','content','_urlBalloonPanelView','overflowChips','ck-ai-chat-context-controls','buttonView','setContextItemLoading','remove','label','AI_CHAT_CONTEXT_FILE_LABEL','source','isHidden','execute','sources','5GkZvoJ','setAddContextOptions','_addContextBalloonConfig','closest','isOn','_setBalloonPanelContent','_setupUrlBalloonClickOutsideHandler','ck-ai-chat-context-controls__balloon-button-source','ck-reset_all-excluded','_createAddContextBalloonPanelView','enabled','_removeContextFromCollection','ck-ai-chat-context-controls__pending-contexts','extendTemplate','hideUrlBalloonPanel','done','element','destroy','ck-ai-chat-context-controls__show-more-balloon-panel','conversation','createCollection','focus','showUrlBalloonPanel','removeContextItem','type','showSourceResourcesBalloon','balloonView','_setupTemplate','isLoading','files','refreshBalloon','set','clear'];_0x2d12=function(){return _0xdb4cd9;};return _0x2d12();}export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x443f7a(0x218),_0x443f7a(0x215),_0x443f7a(0x1f4),_0x443f7a(0x23d),_0x443f7a(0x1de),_0x443f7a(0x247)];const wo=_0x443f7a(0x24d),po=_0x443f7a(0x1d3),Bo=_0x443f7a(0x1f8),bo=_0x443f7a(0x22d),To=_0x443f7a(0x241),Ao=_0x443f7a(0x21b),ko=_0x443f7a(0x1ce),Eo=_0x443f7a(0x20f),vo=_0x443f7a(0x1f0),go=_0x443f7a(0x229),Vo=_0x443f7a(0x1d9),fo=_0x443f7a(0x217),Io=[_0x551729[_0x443f7a(0x22b)][_0x443f7a(0x200)],_0x551729[_0x443f7a(0x22b)][_0x443f7a(0x23f)],_0x551729[_0x443f7a(0x22b)][_0x443f7a(0x20c)],_0x551729[_0x443f7a(0x22b)][_0x443f7a(0x1f7)],_0x551729[_0x443f7a(0x22b)][_0x443f7a(0x222)],_0x551729[_0x443f7a(0x22b)][_0x443f7a(0x1fb)]];export class AIChatContextPanelView extends _0x3e2b4a{[_0x443f7a(0x221)];[_0x443f7a(0x214)]=this[_0x443f7a(0x1db)]();[_0x443f7a(0x249)]=this[_0x443f7a(0x1db)]();[_0x443f7a(0x20a)];[_0x443f7a(0x227)];[_0x443f7a(0x24b)];[_0x443f7a(0x22c)];[_0x443f7a(0x20d)];[_0x443f7a(0x259)];[_0x443f7a(0x223)];constructor(_0x2005f8,_0x19ee30){const _0xd2972b=_0x443f7a;super(_0x2005f8),this[_0xd2972b(0x223)]=_0x19ee30,this[_0xd2972b(0x214)]=this[_0xd2972b(0x1db)](),this[_0xd2972b(0x249)]=this[_0xd2972b(0x1db)](),this[_0xd2972b(0x221)]=this[_0xd2972b(0x235)](_0x2005f8),this[_0xd2972b(0x227)]=this[_0xd2972b(0x1d0)](_0x2005f8),this[_0xd2972b(0x24b)]=this[_0xd2972b(0x240)](_0x2005f8),this[_0xd2972b(0x20d)]=this[_0xd2972b(0x230)](_0x2005f8,_0x19ee30);const _0x4b745a={'cssClasses':{'showMoreButton':go,'showMoreBalloon':Vo,'overflowContainer':vo,'controlsButton':Eo}};this[_0xd2972b(0x20a)]=new _0x4101cd(_0x2005f8,this[_0xd2972b(0x214)],_0x4b745a,this[_0xd2972b(0x223)],this),this[_0xd2972b(0x259)]={'buttonView':this[_0xd2972b(0x221)],'balloonView':this[_0xd2972b(0x227)],'hideMethod':this[_0xd2972b(0x21d)][_0xd2972b(0x238)](this),'showMethod':this[_0xd2972b(0x22f)][_0xd2972b(0x238)](this)},this[_0xd2972b(0x1e2)](),this[_0xd2972b(0x203)]();}[_0x443f7a(0x208)](){const _0x2d0f1c=_0x443f7a;super[_0x2d0f1c(0x208)](),this[_0x2d0f1c(0x212)](),this[_0x2d0f1c(0x20a)][_0x2d0f1c(0x233)](this[_0x2d0f1c(0x1d7)]),this[_0x2d0f1c(0x20a)][_0x2d0f1c(0x1fd)]();}[_0x443f7a(0x1d8)](){const _0x423c02=_0x443f7a;super[_0x423c02(0x1d8)](),this[_0x423c02(0x20a)][_0x423c02(0x1d8)](),this[_0x423c02(0x20d)][_0x423c02(0x1d8)]();}[_0x443f7a(0x1ef)](_0x4635e2,_0x24121b){const _0x234d79=_0x443f7a,_0x13494e=this[_0x234d79(0x242)](_0x4635e2,_0x234d79(0x1f5),!0x0,_0x24121b);this[_0x234d79(0x213)](_0x13494e,this[_0x234d79(0x214)]),this[_0x234d79(0x20a)][_0x234d79(0x1fd)]();}[_0x443f7a(0x1de)](_0x365ac8){const _0x2ff639=_0x443f7a;this[_0x2ff639(0x1d2)](_0x365ac8,this[_0x2ff639(0x214)]),this[_0x2ff639(0x1d2)](_0x365ac8,this[_0x2ff639(0x20a)][_0x2ff639(0x24c)]),this[_0x2ff639(0x20a)][_0x2ff639(0x1fd)]();}[_0x443f7a(0x24f)](_0x26f7aa,_0x324c08){const _0x26803a=_0x443f7a;let _0x5ac392=this[_0x26803a(0x214)][_0x26803a(0x205)](_0x22d7cf=>_0x22d7cf['id']===_0x26f7aa);_0x5ac392||(_0x5ac392=this[_0x26803a(0x20a)][_0x26803a(0x24c)][_0x26803a(0x205)](_0x4ca773=>_0x4ca773['id']===_0x26f7aa)),_0x5ac392&&(_0x5ac392[_0x26803a(0x1e3)]=_0x324c08);}[_0x443f7a(0x232)](_0x342817){const _0x169417=_0x443f7a;this[_0x169417(0x249)][_0x169417(0x1e7)]();for(const _0x38802c of _0x342817){const _0x3243dd=this[_0x169417(0x242)](_0x38802c,_0x169417(0x1da),!0x1,!0x1);this[_0x169417(0x213)](_0x3243dd,this[_0x169417(0x249)]);}}[_0x443f7a(0x1ff)](){const _0xb8580f=_0x443f7a;this[_0xb8580f(0x214)][_0xb8580f(0x1e7)](),this[_0xb8580f(0x20a)][_0xb8580f(0x1e7)]();}[_0x443f7a(0x1fc)](){const _0x2d91db=_0x443f7a;this[_0x2d91db(0x249)][_0x2d91db(0x1e7)]();}[_0x443f7a(0x201)](_0x1aa368,_0x1dd363,_0x132eb4){const _0x4d0c62=_0x443f7a;this[_0x4d0c62(0x20d)][_0x4d0c62(0x201)](_0x1aa368,_0x1dd363,_0x132eb4);}[_0x443f7a(0x21d)](){const _0xdc6f2d=_0x443f7a;this[_0xdc6f2d(0x21a)](!0x1);}[_0x443f7a(0x22f)](){const _0x1ba07a=_0x443f7a;this[_0x1ba07a(0x21a)](!0x0);}[_0x443f7a(0x1d5)](){const _0x1452c0=_0x443f7a;this[_0x1452c0(0x24b)][_0x1452c0(0x1eb)](),this[_0x1452c0(0x221)][_0x1452c0(0x1cb)]=!0x1,this[_0x1452c0(0x22c)]&&this[_0x1452c0(0x22c)][_0x1452c0(0x1e7)]();}[_0x443f7a(0x1dd)](){const _0x35396c=_0x443f7a;this[_0x35396c(0x24b)][_0x35396c(0x23b)](),this[_0x35396c(0x221)][_0x35396c(0x1cb)]=!0x0;}[_0x443f7a(0x20b)](_0xefafc2){const _0x204223=_0x443f7a;this[_0x204223(0x20d)][_0x204223(0x1e0)](_0xefafc2),this[_0x204223(0x221)][_0x204223(0x1cb)]=!0x0;}[_0x443f7a(0x220)](_0x4fa908,_0x1a3cad,_0x438ee7,_0x131572){const _0x2606d4=_0x443f7a;this[_0x2606d4(0x20d)][_0x2606d4(0x220)](_0x4fa908,_0x438ee7,_0x131572);}[_0x443f7a(0x226)](_0x5d955b){const _0x234648=_0x443f7a;this[_0x234648(0x20d)][_0x234648(0x226)](_0x5d955b),this[_0x234648(0x221)][_0x234648(0x1cb)]=!0x1;}[_0x443f7a(0x258)](_0xcb884c){const _0x176e79=_0x443f7a;this[_0x176e79(0x1cc)](this[_0x176e79(0x227)],this[_0x176e79(0x1fe)],_0xcb884c),this[_0x176e79(0x23c)](_0xcb884c);}[_0x443f7a(0x23c)](_0x5808d1){const _0x44d083=_0x443f7a,_0x2354b3=!_0x5808d1[_0x44d083(0x1f1)][_0x44d083(0x254)]&&_0x5808d1[_0x44d083(0x1f1)][_0x44d083(0x1d1)],_0x4abcf9=_0x5808d1[_0x44d083(0x1f9)][_0x44d083(0x1d1)],_0x53754c=_0x5808d1[_0x44d083(0x1e4)][_0x44d083(0x1d1)];this[_0x44d083(0x221)][_0x44d083(0x244)]=_0x2354b3||_0x4abcf9||_0x53754c;}[_0x443f7a(0x1e2)](){const _0x359ca4=_0x443f7a;this[_0x359ca4(0x248)]({'tag':_0x359ca4(0x1f2),'attributes':{'class':[wo,_0x359ca4(0x1cf)]},'children':[{'tag':_0x359ca4(0x1f2),'attributes':{'class':po},'children':this[_0x359ca4(0x214)]}]});}[_0x443f7a(0x203)](){const _0x36fd09=_0x443f7a;this[_0x36fd09(0x221)]['on'](_0x36fd09(0x255),()=>{const _0x58a60f=_0x36fd09;this[_0x58a60f(0x21c)]();});}[_0x443f7a(0x235)](_0x18975e){const _0x360984=_0x443f7a,_0x11ce3b=new _0x39c52e(_0x18975e);return _0x11ce3b[_0x360984(0x1e6)]({'label':_0x1f398a(_0x18975e,_0x360984(0x210)),'class':Eo+'\x20'+bo,'icon':_0x8b38f1,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x11ce3b;}[_0x443f7a(0x1d0)](_0x5a2d67){const _0x2192f6=_0x443f7a;return this[_0x2192f6(0x211)](_0x5a2d67,Bo);}[_0x443f7a(0x240)](_0x14763f){const _0x241afd=_0x443f7a,_0x3f1ce7=this[_0x241afd(0x211)](_0x14763f,To);return this[_0x241afd(0x239)](_0x3f1ce7,_0x14763f),_0x3f1ce7;}[_0x443f7a(0x230)](_0x989b36,_0x5ef135){const _0x4d89ea=_0x443f7a;return new _0x3d6395(_0x989b36,_0x5ef135,{'onBackToContext':()=>{const _0x3f84ec=_0x44d2;this[_0x3f84ec(0x22f)](),this[_0x3f84ec(0x227)][_0x3f84ec(0x231)]({'target':this[_0x3f84ec(0x221)][_0x3f84ec(0x1d7)],'limiter':this[_0x3f84ec(0x234)](),'positions':Io});},'onResourceSelected':(_0x522a3c,_0x514da4)=>{const _0x2faec8=_0x44d2;this[_0x2faec8(0x228)](_0x2faec8(0x23d),{'source':_0x522a3c,'resource':_0x514da4});},'onLoadSourceResources':_0x7fd72b=>{const _0x22b34d=_0x44d2;this[_0x22b34d(0x228)](_0x22b34d(0x247),_0x7fd72b);},'onBalloonClosed':()=>{const _0x3a3cd1=_0x44d2;this[_0x3a3cd1(0x221)][_0x3a3cd1(0x1cb)]=!0x1;},'getLimiterElement':()=>this[_0x4d89ea(0x234)](),'getTargetElement':()=>this[_0x4d89ea(0x221)][_0x4d89ea(0x1d7)]});}[_0x443f7a(0x234)](){const _0x56c25e=_0x443f7a;return this[_0x56c25e(0x1d7)]?.[_0x56c25e(0x25a)]('.'+fo)||document[_0x56c25e(0x23a)];}[_0x443f7a(0x211)](_0x34b89a,_0x1db755){const _0x538332=_0x443f7a,_0x34352b=new _0x551729(_0x34b89a);return _0x34352b[_0x538332(0x1d4)]({'attributes':{'class':_0x1db755}}),this[_0x538332(0x223)][_0x538332(0x1ea)](_0x34352b),_0x34352b;}[_0x443f7a(0x1cc)](_0x191f7d,_0x1ee00a,_0x407008){const _0x5763a1=_0x443f7a;if(_0x191f7d[_0x5763a1(0x24a)][_0x5763a1(0x1e7)](),!_0x407008[_0x5763a1(0x1f1)][_0x5763a1(0x254)]&&_0x407008[_0x5763a1(0x1f1)][_0x5763a1(0x1d1)]){const _0x3eb004=this[_0x5763a1(0x1ec)](_0x1ee00a,{'label':_0x1f398a(_0x1ee00a,_0x5763a1(0x21e)),'icon':_0x1a80e0});_0x3eb004['on'](_0x5763a1(0x255),()=>{const _0x3f213b=_0x5763a1;this[_0x3f213b(0x228)](_0x3f213b(0x218)),this[_0x3f213b(0x21d)]();}),_0x191f7d[_0x5763a1(0x24a)][_0x5763a1(0x1ea)](_0x3eb004);}if(_0x407008[_0x5763a1(0x1f9)][_0x5763a1(0x1d1)]){const _0xb46c4a=this[_0x5763a1(0x1ec)](_0x1ee00a,{'label':_0x1f398a(_0x1ee00a,_0x5763a1(0x23e)),'icon':_0x34dbd4});_0xb46c4a['on'](_0x5763a1(0x255),()=>{const _0x5253d5=_0x5763a1;this[_0x5253d5(0x21d)](),this[_0x5253d5(0x1dd)](),this[_0x5253d5(0x24b)][_0x5253d5(0x231)]({'target':this[_0x5253d5(0x221)][_0x5253d5(0x1d7)],'limiter':this[_0x5253d5(0x234)](),'positions':Io}),this[_0x5253d5(0x22c)][_0x5253d5(0x1dc)]();}),_0x191f7d[_0x5763a1(0x24a)][_0x5763a1(0x1ea)](_0xb46c4a);}if(_0x407008[_0x5763a1(0x1e4)][_0x5763a1(0x1d1)]){const _0x126038=new _0x3228c0(_0x1ee00a);_0x126038[_0x5763a1(0x1e6)]({'label':_0x1f398a(_0x1ee00a,_0x5763a1(0x252)),'icon':_0x1caa61,'withText':!0x0,'tooltip':!0x0,'class':Ao,'allowMultipleFiles':!0x0}),_0x126038['on'](_0x5763a1(0x1d6),(_0x26ea77,_0x510b20)=>{const _0x272a20=_0x5763a1;this[_0x272a20(0x228)](_0x272a20(0x215),_0x510b20),this[_0x272a20(0x21d)]();}),_0x126038[_0x5763a1(0x224)]=!0x0,_0x191f7d[_0x5763a1(0x24a)][_0x5763a1(0x1ea)](_0x126038);}for(const _0x48a8ff of _0x407008[_0x5763a1(0x256)]){const _0x439926=this[_0x5763a1(0x1ec)](_0x1ee00a,{'label':_0x48a8ff[_0x5763a1(0x251)],'icon':_0x48a8ff[_0x5763a1(0x202)]||_0x519699,'type':_0x5763a1(0x253)});_0x191f7d[_0x5763a1(0x24a)][_0x5763a1(0x1ea)](_0x439926),_0x439926['on'](_0x5763a1(0x255),()=>{const _0x2573f5=_0x5763a1;this[_0x2573f5(0x21d)](),this[_0x2573f5(0x20b)](_0x48a8ff);});}}[_0x443f7a(0x239)](_0x152f6c,_0x63d446){const _0x5cf71c=_0x443f7a;this[_0x5cf71c(0x22c)]=new _0x241762(_0x63d446),this[_0x5cf71c(0x22c)]['on'](_0x5cf71c(0x1ee),(_0x176e3a,_0x1c93af)=>{const _0x4ed0fa=_0x5cf71c;this[_0x4ed0fa(0x245)](_0x1c93af);}),this[_0x5cf71c(0x22c)]['on'](_0x5cf71c(0x209),()=>{const _0x3ad18c=_0x5cf71c;this[_0x3ad18c(0x1d5)](),this[_0x3ad18c(0x22f)](),this[_0x3ad18c(0x227)][_0x3ad18c(0x231)]({'target':this[_0x3ad18c(0x221)][_0x3ad18c(0x1d7)],'limiter':this[_0x3ad18c(0x234)](),'positions':Io});}),this[_0x5cf71c(0x22c)]['on'](_0x5cf71c(0x1e5),()=>{const _0x297d9f=_0x5cf71c;this[_0x297d9f(0x24b)][_0x297d9f(0x1fa)]&&this[_0x297d9f(0x24b)][_0x297d9f(0x231)]({'target':this[_0x297d9f(0x221)][_0x297d9f(0x1d7)],'limiter':this[_0x297d9f(0x234)](),'positions':Io});}),_0x152f6c[_0x5cf71c(0x24a)][_0x5cf71c(0x1ea)](this[_0x5cf71c(0x22c)]);}[_0x443f7a(0x1ec)](_0x12fc1c,_0x1d093c){const _0x14ce06=_0x443f7a,_0x223981=_0x14ce06(0x253)===_0x1d093c[_0x14ce06(0x1df)]?new SourcesBalloonButtonView(_0x12fc1c):new _0x39c52e(_0x12fc1c);return _0x223981[_0x14ce06(0x1e6)]({'label':_0x1d093c[_0x14ce06(0x251)],'icon':_0x1d093c[_0x14ce06(0x202)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Ao}),_0x223981;}[_0x443f7a(0x212)](){const _0x37b083=_0x443f7a;this[_0x37b083(0x1e8)](),this[_0x37b083(0x1cd)]();}[_0x443f7a(0x1cd)](){const _0x38939f=_0x443f7a;_0x5ef739({'emitter':this[_0x38939f(0x24b)],'contextElements':[this[_0x38939f(0x24b)][_0x38939f(0x1d7)]],'callback':()=>{const _0x48ce95=_0x38939f;this[_0x48ce95(0x1d5)]();},'activator':()=>this[_0x38939f(0x24b)][_0x38939f(0x1fa)]});}[_0x443f7a(0x21a)](_0x5a8c0a){const _0x5e9f74=_0x443f7a,_0x3d349c=this[_0x5e9f74(0x259)];_0x3d349c[_0x5e9f74(0x24e)][_0x5e9f74(0x1cb)]=_0x5a8c0a,_0x5a8c0a?_0x3d349c[_0x5e9f74(0x1e1)][_0x5e9f74(0x23b)]():_0x3d349c[_0x5e9f74(0x1e1)][_0x5e9f74(0x1eb)]();}[_0x443f7a(0x1e8)](){const _0x5a21e1=_0x443f7a,{balloonView:_0x234d0e,buttonView:_0x53f4e1,hideMethod:_0x5ce334}=this[_0x5a21e1(0x259)];_0x5ef739({'emitter':_0x234d0e,'contextElements':[_0x234d0e[_0x5a21e1(0x1d7)],_0x53f4e1[_0x5a21e1(0x1d7)]],'callback':()=>{_0x5ce334();},'activator':()=>_0x53f4e1[_0x5a21e1(0x1cb)]&&!this[_0x5a21e1(0x24b)][_0x5a21e1(0x1fa)]&&!this[_0x5a21e1(0x20d)][_0x5a21e1(0x1e9)]()});}[_0x443f7a(0x242)](_0x31544f,_0x3efc0e,_0x2c8c09=!0x1,_0x4f58d0=!0x1){const _0xc01937=_0x443f7a,_0xf41e0c=_0xc01937(0x1da)===_0x3efc0e||!0x0===_0x31544f[_0xc01937(0x225)],_0x16bda1=new _0x1ec021(this[_0xc01937(0x1fe)],_0x31544f,_0xf41e0c,_0x2c8c09,_0x4f58d0);return _0xf41e0c||_0x16bda1['on'](_0xc01937(0x22a),()=>{const _0x427cfd=_0xc01937;this[_0x427cfd(0x228)](_0x427cfd(0x1de),_0x16bda1['id']);}),_0x16bda1;}[_0x443f7a(0x213)](_0x916199,_0x405cb6){const _0x1c7806=_0x443f7a;_0x405cb6[_0x1c7806(0x1ea)](_0x916199,0x0);}[_0x443f7a(0x1d2)](_0x4a0a8a,_0x251b28){const _0x4c2c12=_0x443f7a,_0x316b39=_0x251b28[_0x4c2c12(0x205)](_0x24a26b=>_0x24a26b['id']===_0x4a0a8a);_0x316b39&&_0x251b28[_0x4c2c12(0x250)](_0x316b39);}[_0x443f7a(0x21c)](){const _0x121734=_0x443f7a;this[_0x121734(0x221)][_0x121734(0x1cb)]?this[_0x121734(0x21d)]():(this[_0x121734(0x22f)](),this[_0x121734(0x227)][_0x121734(0x231)]({'target':this[_0x121734(0x221)][_0x121734(0x1d7)],'limiter':this[_0x121734(0x234)](),'positions':Io}));}[_0x443f7a(0x245)](_0x32492d){const _0x416b64=_0x443f7a;this[_0x416b64(0x22c)][_0x416b64(0x1e7)](),this[_0x416b64(0x1d5)](),this[_0x416b64(0x228)](_0x416b64(0x1f4),_0x32492d);}}export class SourcesBalloonButtonView extends _0x39c52e{[_0x443f7a(0x207)];constructor(_0x2857fd){const _0x45376a=_0x443f7a;super(_0x2857fd),this[_0x45376a(0x1e6)]({'withText':!0x0,'role':_0x45376a(0x243)}),this[_0x45376a(0x207)]=this[_0x45376a(0x236)](),this[_0x45376a(0x1d4)]({'attributes':{'class':[ko]}});}[_0x443f7a(0x208)](){const _0x1c8110=_0x443f7a;super[_0x1c8110(0x208)](),this[_0x1c8110(0x1f6)][_0x1c8110(0x1ea)](this[_0x1c8110(0x207)]);}[_0x443f7a(0x236)](){const _0x5e06d6=_0x443f7a,_0x54b338=new _0x41a391();return _0x54b338[_0x5e06d6(0x24a)]=_0x12a1f5,_0x54b338[_0x5e06d6(0x1d4)]({'attributes':{'class':ko+_0x5e06d6(0x1f3)}}),_0x54b338;}}
@@ -0,0 +1,12 @@
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/ui/controls/aichatcontrolsloaderview
7
+ */
8
+ import type { Locale } from 'ckeditor5/src/utils.js';
9
+ import { View } from 'ckeditor5/src/ui.js';
10
+ export declare class AIChatControlsLoaderView extends View {
11
+ constructor(locale: Locale);
12
+ }
@@ -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
+ function _0x29b4(_0x50d9a9,_0x45ac4a){const _0x5873f2=_0x5873();return _0x29b4=function(_0x29b42f,_0x4f18ae){_0x29b42f=_0x29b42f-0xa1;let _0x113821=_0x5873f2[_0x29b42f];return _0x113821;},_0x29b4(_0x50d9a9,_0x45ac4a);}const _0x2d96fb=_0x29b4;(function(_0x3a50f5,_0x172609){const _0x1a86c3=_0x29b4,_0x241682=_0x3a50f5();while(!![]){try{const _0xe113c4=parseInt(_0x1a86c3(0xaa))/0x1+parseInt(_0x1a86c3(0xbb))/0x2*(parseInt(_0x1a86c3(0xa4))/0x3)+-parseInt(_0x1a86c3(0xb5))/0x4+parseInt(_0x1a86c3(0xb4))/0x5*(-parseInt(_0x1a86c3(0xa8))/0x6)+parseInt(_0x1a86c3(0xb6))/0x7*(parseInt(_0x1a86c3(0xb8))/0x8)+parseInt(_0x1a86c3(0xad))/0x9*(parseInt(_0x1a86c3(0xbe))/0xa)+-parseInt(_0x1a86c3(0xa2))/0xb*(parseInt(_0x1a86c3(0xa6))/0xc);if(_0xe113c4===_0x172609)break;else _0x241682['push'](_0x241682['shift']());}catch(_0x488e19){_0x241682['push'](_0x241682['shift']());}}}(_0x5873,0x67402));import{ButtonView as _0x58a143,View as _0x9950c8}from'ckeditor5/src/ui.js';import{IconStop as _0x1196a5}from'ckeditor5/src/icons.js';import{getTranslation as _0xbadec}from'../../../aicore/utils/common-translations.js';export class AIChatControlsLoaderView extends _0x9950c8{[_0x2d96fb(0xbd)];[_0x2d96fb(0xa1)];constructor(_0x3a481c){const _0x531663=_0x2d96fb;super(_0x3a481c),this[_0x531663(0xbd)]=this[_0x531663(0xb7)](),this[_0x531663(0xa1)]=this[_0x531663(0xb1)](),this[_0x531663(0xb0)]({'tag':_0x531663(0xa5),'attributes':{'class':['ck',_0x531663(0xba),_0x531663(0xa3)]},'children':[this[_0x531663(0xa1)],this[_0x531663(0xbd)]]});}[_0x2d96fb(0xb7)](){const _0x516c98=_0x2d96fb,_0x383029=new _0x58a143(this[_0x516c98(0xa7)]);return _0x383029[_0x516c98(0xaf)]({'label':_0xbadec(this[_0x516c98(0xa7)],_0x516c98(0xb3)),'withText':!0x0,'class':_0x516c98(0xbc),'icon':_0x1196a5}),_0x383029['on'](_0x516c98(0xb9),()=>{const _0x20afc7=_0x516c98;this[_0x20afc7(0xa9)](_0x20afc7(0xae));}),_0x383029;}[_0x2d96fb(0xb1)](){const _0x498e0d=_0x2d96fb,_0x23f2c3=new _0x9950c8(this[_0x498e0d(0xa7)]);return _0x23f2c3[_0x498e0d(0xb0)]({'tag':_0x498e0d(0xa5),'attributes':{'class':[_0x498e0d(0xab)]},'children':[{'tag':_0x498e0d(0xa5),'attributes':{'class':[_0x498e0d(0xbf)]},'children':[{'tag':_0x498e0d(0xa5),'attributes':{'class':[_0x498e0d(0xac)]}},{'tag':_0x498e0d(0xa5),'attributes':{'class':[_0x498e0d(0xac)]}},{'tag':_0x498e0d(0xa5),'attributes':{'class':[_0x498e0d(0xac)]}}]},{'text':_0xbadec(this[_0x498e0d(0xa7)],_0x498e0d(0xb2))}]}),_0x23f2c3;}}function _0x5873(){const _0x1af62a=['5SGKyaa','500916NVBTaL','7uuqWLk','_createCancelButtonView','6638200uAxkOD','execute','ck-ai-chat-controls-loader-wrapper','372PBNDMN','ai-chat-controls-loader__cancel-button','_cancelButtonView','266080TVisfk','ck-ai-chat-controls-loader-icon','_loaderView','329021xDgxlS','ck-reset_all','204dznoGF','div','168Sqkvoo','locale','4382526PhvTwI','fire','429167DEEBRJ','ck-ai-chat-controls-loader','ck-ai-chat-controls-loader-icon-dot','144ZVhSLc','abortPromptStream','set','setTemplate','_createLoaderView','AI_CHAT_IS_WRITING','AI_CHAT_STOP_GENERATING'];_0x5873=function(){return _0x1af62a;};return _0x5873();}
@@ -0,0 +1,89 @@
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/ui/controls/aichatpromptcapabilitiesview
7
+ */
8
+ import { type Locale } from 'ckeditor5/src/utils.js';
9
+ import { View } from 'ckeditor5/src/ui.js';
10
+ import { type AIChatModel } from '../../model/aichatmodels.js';
11
+ /**
12
+ * Manages the prompt capabilities UI for AI chat, including web search, commands functionality, and model selection.
13
+ */
14
+ export declare class AIChatPromptCapabilitiesView extends View {
15
+ /**
16
+ * Indicates whether the web search is active.
17
+ *
18
+ * @observable
19
+ */
20
+ webSearchActive: boolean;
21
+ /**
22
+ * Indicates whether reasoning is active.
23
+ *
24
+ * @observable
25
+ */
26
+ reasoningActive: boolean;
27
+ /**
28
+ * Indicates whether the model selection UI is visible.
29
+ *
30
+ * @observable
31
+ */
32
+ modelSelectorVisible: boolean;
33
+ /**
34
+ * Indicates whether the model selection UI is enabled. The selection gets disabled
35
+ * after the first message is sent to the API, as the model cannot be changed then.
36
+ *
37
+ * @observable
38
+ */
39
+ modelSelectorEnabled: boolean;
40
+ /**
41
+ * The ID of the currently active model.
42
+ *
43
+ * @observable
44
+ */
45
+ activeModelId: string | null;
46
+ /**
47
+ * The name of the currently active model.
48
+ *
49
+ * @observable
50
+ */
51
+ activeModelName: string | null;
52
+ constructor(locale: Locale);
53
+ /**
54
+ * Sets model list dropdown.
55
+ */
56
+ setModelList(models: Array<AIChatModel>, hideIfSingleModel: boolean): void;
57
+ /**
58
+ * Sets the web search state.
59
+ */
60
+ setWebSearch(isWebSearchEnabled: boolean): void;
61
+ /**
62
+ * Sets the reasoning state.
63
+ */
64
+ setReasoning(isReasoningEnabled: boolean): void;
65
+ /**
66
+ * Sets the selected model.
67
+ */
68
+ setModel(model: AIChatModel | null): void;
69
+ /**
70
+ * Enables the model selector dropdown.
71
+ */
72
+ enableModelSelector(): void;
73
+ /**
74
+ * Disables the model selector dropdown.
75
+ */
76
+ disableModelSelector(hideSelector: boolean): void;
77
+ }
78
+ export type AIChatUIToggleWebSearchEvent = {
79
+ name: 'toggleWebSearch';
80
+ args: [];
81
+ };
82
+ export type AIChatUIToggleReasoningEvent = {
83
+ name: 'toggleReasoning';
84
+ args: [];
85
+ };
86
+ export type AIChatUISelectModelEvent = {
87
+ name: 'selectModel';
88
+ args: [model: AIChatModel];
89
+ };
@@ -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 _0x960844=_0x2472;(function(_0x1221f9,_0x3dedea){const _0x826c82=_0x2472,_0x50e6ec=_0x1221f9();while(!![]){try{const _0x378761=-parseInt(_0x826c82(0xb4))/0x1+-parseInt(_0x826c82(0xbb))/0x2+-parseInt(_0x826c82(0xd5))/0x3+parseInt(_0x826c82(0xcd))/0x4+-parseInt(_0x826c82(0xbd))/0x5*(parseInt(_0x826c82(0xca))/0x6)+parseInt(_0x826c82(0xee))/0x7*(-parseInt(_0x826c82(0xb6))/0x8)+parseInt(_0x826c82(0xe7))/0x9*(parseInt(_0x826c82(0xac))/0xa);if(_0x378761===_0x3dedea)break;else _0x50e6ec['push'](_0x50e6ec['shift']());}catch(_0x48ff65){_0x50e6ec['push'](_0x50e6ec['shift']());}}}(_0x151a,0xec7ce));import{Collection as _0x443443}from'ckeditor5/src/utils.js';import{IconAI as _0x3eccbd,IconBulb as _0x2a3188,IconWeb as _0x3d2a7a}from'@ckeditor/ckeditor5-icons';function _0x2472(_0x1a6103,_0x992dcd){const _0x151ab6=_0x151a();return _0x2472=function(_0x2472c0,_0x4ab40c){_0x2472c0=_0x2472c0-0xa8;let _0x1b043a=_0x151ab6[_0x2472c0];return _0x1b043a;},_0x2472(_0x1a6103,_0x992dcd);}import{addListToDropdown as _0x4ffce4,ButtonLabelView as _0x5406e5,ButtonView as _0x4c64f4,createDropdown as _0x365a08,IconView as _0x50f9f1,UIModel as _0x3da1a4,View as _0x1f8759}from'ckeditor5/src/ui.js';import{getTranslation as _0x59c461}from'../../../aicore/utils/common-translations.js';const No=_0x960844(0x100),Eo=_0x960844(0xf8),Ho=_0x960844(0x108),Mo=_0x960844(0xc3),Lo=_0x960844(0xdb),Ro=_0x960844(0xda),Do=_0x960844(0xc9),Po='n';export class AIChatPromptCapabilitiesView extends _0x1f8759{[_0x960844(0xc5)];[_0x960844(0x105)];[_0x960844(0xa9)];[_0x960844(0xae)];[_0x960844(0xaa)];[_0x960844(0xe2)];constructor(_0xcd881c){const _0x366473=_0x960844;super(_0xcd881c),this[_0x366473(0xcf)](_0x366473(0xc6),!0x1),this[_0x366473(0xcf)](_0x366473(0xe0),!0x1),this[_0x366473(0xcf)](_0x366473(0xd8),!0x0),this[_0x366473(0xcf)](_0x366473(0xc0),!0x0),this[_0x366473(0xcf)](_0x366473(0x104),''),this[_0x366473(0xcf)](_0x366473(0xbf),''),this[_0x366473(0xae)]=this[_0x366473(0xde)](),this[_0x366473(0xe2)]=this[_0x366473(0x10a)](),this[_0x366473(0xc5)]=this[_0x366473(0xd9)](),this[_0x366473(0x105)]=this[_0x366473(0xf2)](),this[_0x366473(0xa9)]=this[_0x366473(0xb9)](),this[_0x366473(0xae)][_0x366473(0xfd)][_0x366473(0xcb)](_0x366473(0xf9))['to'](this,_0x366473(0xd8),_0x2b2a1d=>_0x2b2a1d),this[_0x366473(0xae)][_0x366473(0xfd)][_0x366473(0xcb)](_0x366473(0xb1))['to'](this,_0x366473(0xc0),_0x1e1a5a=>_0x1e1a5a?this[_0x366473(0xae)][_0x366473(0xfd)][_0x366473(0xb7)]:_0x59c461(this[_0x366473(0xb0)],_0x366473(0xe6))),this[_0x366473(0xae)][_0x366473(0xcb)](_0x366473(0xed))['to'](this,_0x366473(0xc0),_0x4b1eb0=>_0x4b1eb0),this[_0x366473(0xc5)][_0x366473(0xcb)](_0x366473(0xc8))['to'](this,_0x366473(0xc6),_0x398a64=>_0x398a64),this[_0x366473(0xc5)][_0x366473(0xcb)](_0x366473(0xf1))['to'](this,_0x366473(0xd8),_0x12269f=>!_0x12269f),this[_0x366473(0xc5)][_0x366473(0xcb)](_0x366473(0xb1))['to'](this,_0x366473(0xc6),_0x6e0a5d=>_0x59c461(this[_0x366473(0xb0)],_0x6e0a5d?_0x366473(0xc7):_0x366473(0xb2))),this[_0x366473(0x105)][_0x366473(0xcb)](_0x366473(0xc8))['to'](this,_0x366473(0xe0),_0x32f068=>_0x32f068),this[_0x366473(0x105)][_0x366473(0xcb)](_0x366473(0xf1))['to'](this,_0x366473(0xd8),_0x2dfe44=>!_0x2dfe44),this[_0x366473(0x105)][_0x366473(0xcb)](_0x366473(0xb1))['to'](this,_0x366473(0xe0),_0x59d172=>_0x59c461(this[_0x366473(0xb0)],_0x59d172?_0x366473(0x103):_0x366473(0xd3))),this[_0x366473(0xb5)]({'tag':_0x366473(0xd0),'attributes':{'class':[No]},'children':[this[_0x366473(0xae)],this[_0x366473(0xe2)],this[_0x366473(0xc5)],this[_0x366473(0x105)],this[_0x366473(0xa9)]]}),this[_0x366473(0xaa)]=new _0x443443(),_0x4ffce4(this[_0x366473(0xae)],this[_0x366473(0xaa)]);}[_0x960844(0xec)](_0x3d91df,_0x31f5ee){const _0x5ee214=_0x960844;if(this[_0x5ee214(0xcf)](_0x5ee214(0xd8),!(_0x31f5ee&&_0x3d91df[_0x5ee214(0xe1)]<=0x1)),this[_0x5ee214(0xaa)][_0x5ee214(0xe4)](),_0x3d91df?.[_0x5ee214(0xe1)])for(const _0xa83c of _0x3d91df){const _0x409e26=new _0x3da1a4({'label':_0xa83c[_0x5ee214(0xf5)],'withText':!0x0,'role':_0x5ee214(0xeb),'id':_0xa83c['id'],'model':_0xa83c});_0x409e26[_0x5ee214(0xcb)](_0x5ee214(0xc8))['to'](this,_0x5ee214(0x104),_0x597bc0=>_0x597bc0===_0xa83c['id']),this[_0x5ee214(0xaa)][_0x5ee214(0xcc)]({'type':_0x5ee214(0xaf),'model':_0x409e26,'labelView':new Wo(this[_0x5ee214(0xb0)],_0xa83c)});}}[_0x960844(0xbe)](_0x4fc4e2){const _0x58d3d7=_0x960844;this[_0x58d3d7(0xcf)](_0x58d3d7(0xc6),_0x4fc4e2);}[_0x960844(0xf4)](_0x3169f0){const _0x554768=_0x960844;this[_0x554768(0xcf)](_0x554768(0xe0),_0x3169f0);}[_0x960844(0xc4)](_0x2aed05){const _0x2e91c7=_0x960844;if(!_0x2aed05)return;this[_0x2e91c7(0x104)]=_0x2aed05['id'],this[_0x2e91c7(0xbf)]=_0x2aed05[_0x2e91c7(0xf5)]||_0x2aed05['id'],this[_0x2e91c7(0xae)][_0x2e91c7(0xfd)][_0x2e91c7(0xcf)](_0x2e91c7(0xb7),_0x2aed05[_0x2e91c7(0xf5)]),this[_0x2e91c7(0xae)][_0x2e91c7(0xfd)][_0x2e91c7(0xcf)](_0x2e91c7(0xb1),_0x2aed05[_0x2e91c7(0xf5)]);const _0xb093da=_0x2aed05[_0x2e91c7(0xfa)][_0x2e91c7(0xdf)]?.[_0x2e91c7(0xba)]??!0x1;this[_0x2e91c7(0xcf)](_0x2e91c7(0xc6),!0x1),this[_0x2e91c7(0xc5)][_0x2e91c7(0xcf)](_0x2e91c7(0xc8),!0x1),this[_0x2e91c7(0xc5)][_0x2e91c7(0xcf)](_0x2e91c7(0xed),_0xb093da),this[_0x2e91c7(0xc5)][_0x2e91c7(0xcf)](_0x2e91c7(0xf9),_0xb093da);const _0x322edf=_0x2aed05[_0x2e91c7(0xfa)][_0x2e91c7(0xd1)]?.[_0x2e91c7(0xba)]??!0x1;this[_0x2e91c7(0xcf)](_0x2e91c7(0xe0),!0x1),this[_0x2e91c7(0x105)][_0x2e91c7(0xcf)](_0x2e91c7(0xc8),!0x1),this[_0x2e91c7(0x105)][_0x2e91c7(0xcf)](_0x2e91c7(0xed),_0x322edf),this[_0x2e91c7(0x105)][_0x2e91c7(0xcf)](_0x2e91c7(0xf9),_0x322edf);}[_0x960844(0xc2)](){const _0x28e641=_0x960844;this[_0x28e641(0xcf)](_0x28e641(0xc0),!0x0),this[_0x28e641(0xcf)](_0x28e641(0xd8),!0x0);}[_0x960844(0xf6)](_0x3bb33a){const _0x57604b=_0x960844;this[_0x57604b(0xcf)](_0x57604b(0xc0),!0x1),_0x3bb33a&&this[_0x57604b(0xcf)](_0x57604b(0xd8),!0x1);}[_0x960844(0xd9)](){const _0x4e8f5a=_0x960844,_0x4677ea=new _0x4c64f4();return _0x4677ea[_0x4e8f5a(0xcf)]({'label':_0x59c461(this[_0x4e8f5a(0xb0)],_0x4e8f5a(0xad)),'icon':_0x3d2a7a,'class':Eo,'isToggleable':!0x0,'tooltipPosition':Po}),_0x4677ea['on'](_0x4e8f5a(0xa8),()=>{const _0x342b8f=_0x4e8f5a;this[_0x342b8f(0xab)](_0x342b8f(0x101));}),_0x4677ea;}[_0x960844(0xf2)](){const _0x35f8a5=_0x960844,_0x33fd80=new _0x4c64f4();return _0x33fd80[_0x35f8a5(0xcf)]({'label':_0x59c461(this[_0x35f8a5(0xb0)],_0x35f8a5(0xea)),'icon':_0x2a3188,'class':Eo,'isToggleable':!0x0,'tooltipPosition':Po}),_0x33fd80['on'](_0x35f8a5(0xa8),()=>{const _0x2e8a9e=_0x35f8a5;this[_0x2e8a9e(0xab)](_0x2e8a9e(0xe9));}),_0x33fd80;}[_0x960844(0xb9)](){const _0x1bc935=_0x960844,_0x4d3714=new _0x4c64f4();return _0x4d3714[_0x1bc935(0xcf)]({'label':_0x59c461(this[_0x1bc935(0xb0)],_0x1bc935(0xf7)),'icon':_0x3eccbd,'withText':!0x0,'class':Eo,'isToggleable':!0x0,'tooltip':_0x59c461(this[_0x1bc935(0xb0)],_0x1bc935(0xf7)),'tooltipPosition':Po}),_0x4d3714[_0x1bc935(0xfc)]({'attributes':{'class':[Ho]}}),_0x4d3714['on'](_0x1bc935(0xa8),()=>{const _0x5f47c5=_0x1bc935;console[_0x5f47c5(0xc1)](_0x5f47c5(0x109)),alert(_0x5f47c5(0x109));}),_0x4d3714;}[_0x960844(0xde)](){const _0xd05677=_0x960844,_0x204f59=_0x365a08(this[_0xd05677(0xb0)]);return _0x204f59[_0xd05677(0xcf)]({'panelPosition':'ne','class':[Mo]}),_0x204f59[_0xd05677(0xfd)][_0xd05677(0xcf)]({'label':_0x59c461(this[_0xd05677(0xb0)],_0xd05677(0xef)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':Po}),this[_0xd05677(0xce)](_0x204f59,_0xd05677(0xa8),_0x219b63=>{const _0x1174d7=_0xd05677;this[_0x1174d7(0xab)](_0x1174d7(0xe5),_0x219b63[_0x1174d7(0x107)][_0x1174d7(0xdc)]);}),_0x204f59;}[_0x960844(0x10a)](){const _0x2c2723=_0x960844,_0x58072d=new yo(this[_0x2c2723(0xb0)]);return _0x58072d[_0x2c2723(0xcb)](_0x2c2723(0xb3))['to'](this,_0x2c2723(0xbf),_0x2aa074=>_0x2aa074??''),_0x58072d[_0x2c2723(0xcb)](_0x2c2723(0xf9))['to'](this,_0x2c2723(0xd8),this,_0x2c2723(0xbf),(_0xe34a10,_0x42ffbc)=>!_0xe34a10&&!_0x42ffbc?.[_0x2c2723(0xd4)]()[_0x2c2723(0x102)](_0x2c2723(0xf0))),_0x58072d;}}class Wo extends _0x5406e5{constructor(_0x579360,_0x3a1ec4){const _0x178c8f=_0x960844;super();const _0x62552=this[_0x178c8f(0xf3)],_0x5abad9=this[_0x178c8f(0xff)]();this[_0x178c8f(0xb5)]({'tag':_0x178c8f(0xd0),'attributes':{'class':['ck',_0x178c8f(0x106)],'style':_0x62552['to'](_0x178c8f(0xe3)),'id':_0x62552['to']('id')},'children':[{'tag':_0x178c8f(0xd0),'attributes':{'class':[Lo]},'children':[{'text':_0x62552['to'](_0x178c8f(0xb3))}]},{'tag':_0x178c8f(0xd0),'attributes':{'class':[Ro]},'children':[{'tag':_0x178c8f(0xfb),'children':[{'text':_0x3a1ec4[_0x178c8f(0xbc)]}]}]},{'tag':_0x178c8f(0xd0),'attributes':{'class':[Do]},'children':_0x5abad9}]}),_0x5abad9[_0x178c8f(0xfe)](this[_0x178c8f(0xd2)](_0x579360,_0x3d2a7a,_0x178c8f(0xad),_0x3a1ec4[_0x178c8f(0xfa)][_0x178c8f(0xdf)]?.[_0x178c8f(0xba)]??!0x1)),_0x5abad9[_0x178c8f(0xfe)](this[_0x178c8f(0xd2)](_0x579360,_0x2a3188,_0x178c8f(0xea),_0x3a1ec4[_0x178c8f(0xfa)][_0x178c8f(0xd1)]?.[_0x178c8f(0xba)]??!0x1));}[_0x960844(0xd2)](_0x6cf78a,_0x569333,_0x41cb99,_0x38319e){const _0x3f9055=_0x960844,_0x43bf6c=new _0x50f9f1();_0x43bf6c[_0x3f9055(0xb8)]=_0x569333;const _0x58ec49=new _0x1f8759(_0x6cf78a);_0x58ec49[_0x3f9055(0xb5)]({'tag':_0x3f9055(0xfb),'children':[{'text':_0x59c461(_0x6cf78a,_0x41cb99)+':\x20'}]});const _0x19b909=new _0x1f8759(_0x6cf78a);return _0x19b909[_0x3f9055(0xb5)]({'tag':_0x3f9055(0xfb),'children':[{'text':_0x59c461(_0x6cf78a,_0x38319e?_0x3f9055(0xd6):_0x3f9055(0xdd))}]}),[_0x43bf6c,_0x58ec49,_0x19b909];}}class yo extends _0x1f8759{constructor(_0x2f857b){const _0xc42ef7=_0x960844;super(_0x2f857b),this[_0xc42ef7(0xcf)](_0xc42ef7(0xb3),void 0x0),this[_0xc42ef7(0xcf)](_0xc42ef7(0xf9),!0x0);const _0x598732=this[_0xc42ef7(0xf3)];this[_0xc42ef7(0xb5)]({'tag':_0xc42ef7(0xfb),'attributes':{'class':['ck',_0xc42ef7(0xe8),_0x598732['if'](_0xc42ef7(0xf9),_0xc42ef7(0xd7),_0x3a0699=>!_0x3a0699)]},'children':[{'text':_0x598732['to'](_0xc42ef7(0xb3))}]});}}function _0x151a(){const _0x35d20d=['length','_modelNameView','style','clear','selectModel','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','41948415DxEaNV','ck-ai-chat-controls__model-name','toggleReasoning','AI_CHAT_REASONING','menuitemradio','setModelList','isEnabled','6459138DGbLNi','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','agent','withText','_createReasoningButton','bindTemplate','setReasoning','name','disableModelSelector','AI_CHAT_COMMANDS','ck-ai-chat-controls-button','isVisible','capabilities','span','extendTemplate','buttonView','addMany','createCollection','ck-ai-chat__prompt-capabilities','toggleWebSearch','startsWith','AI_CHAT_DISABLE_REASONING','activeModelId','_reasoningButton','ck-button__label','source','ck-ai-chat-controls-button--commands','Commands\x20are\x20not\x20implemented\x20yet.','_createModelNameView','execute','_commandsButton','_modelSelectionDropdownItems','fire','10RdTaWJ','AI_CHAT_SEARCH_WEB','_modelSelectionDropdown','button','locale','tooltip','AI_CHAT_ENABLE_WEB_SEARCH','text','16286GrbMZi','setTemplate','16aNXDvU','label','content','_createCommandsButton','enabled','1755824hXsCZR','description','1097735XrKXdk','setWebSearch','activeModelName','modelSelectorEnabled','log','enableModelSelector','ck-ai-chat-controls__model-selection','setModel','_webSearchButton','webSearchActive','AI_CHAT_DISABLE_WEB_SEARCH','isOn','ck-ai-chat-controls__model-selection__item-capabilities','24dwzPwp','bind','add','1092508BpfweA','listenTo','set','div','reasoning','_getCapabilityParts','AI_CHAT_ENABLE_REASONING','toLowerCase','1042662uklomG','AI_CHAT_CAPABILITIES_YES','ck-hidden','modelSelectorVisible','_createWebSearchButton','ck-ai-chat-controls__model-selection__item-description','ck-ai-chat-controls__model-selection__item-name','model','AI_CHAT_CAPABILITIES_NO','_createModelSelectionDropdown','webSearch','reasoningActive'];_0x151a=function(){return _0x35d20d;};return _0x151a();}
@@ -0,0 +1,44 @@
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
+ import { ButtonView, type TextareaView, AutocompleteView } from 'ckeditor5/src/ui.js';
6
+ import { type Locale } from 'ckeditor5/src/utils.js';
7
+ export declare class AIChatPromptInputView extends AutocompleteView<TextareaView> {
8
+ /**
9
+ * The submit button view.
10
+ */
11
+ submitButtonView: ButtonView;
12
+ /**
13
+ * Flag indicating if the upload is in progress.
14
+ *
15
+ * @observable
16
+ */
17
+ isUploadInProgress: boolean;
18
+ /**
19
+ * Flag indicating if the input is empty.
20
+ * @observable
21
+ */
22
+ isEmpty: boolean;
23
+ constructor(locale: Locale, addContextButtonView: ButtonView);
24
+ /**
25
+ * @inheritDoc
26
+ */
27
+ render(): void;
28
+ /**
29
+ * @inheritDoc
30
+ */
31
+ destroy(): void;
32
+ /**
33
+ * Sets the placeholder text for the input.
34
+ */
35
+ setPlaceholderText(placeholder: string): void;
36
+ /**
37
+ * Sets the upload in progress state.
38
+ */
39
+ setIsUploadInProgress(isUploadInProgress: boolean): void;
40
+ }
41
+ export type AIChatSendUserMessageEvent = {
42
+ name: 'sendUserMessage';
43
+ args: [query: string];
44
+ };
@@ -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 _0x3c0aad=_0xe853;(function(_0x510c7c,_0x2eec77){const _0x1940fa=_0xe853,_0x29bbc1=_0x510c7c();while(!![]){try{const _0x2199e7=-parseInt(_0x1940fa(0x178))/0x1+parseInt(_0x1940fa(0x196))/0x2*(-parseInt(_0x1940fa(0x199))/0x3)+-parseInt(_0x1940fa(0x195))/0x4+parseInt(_0x1940fa(0x1af))/0x5*(-parseInt(_0x1940fa(0x1b3))/0x6)+parseInt(_0x1940fa(0x1a7))/0x7*(-parseInt(_0x1940fa(0x18f))/0x8)+-parseInt(_0x1940fa(0x18e))/0x9*(parseInt(_0x1940fa(0x182))/0xa)+parseInt(_0x1940fa(0x17a))/0xb;if(_0x2199e7===_0x2eec77)break;else _0x29bbc1['push'](_0x29bbc1['shift']());}catch(_0x4b1acb){_0x29bbc1['push'](_0x29bbc1['shift']());}}}(_0x58e5,0xee2e2));function _0x58e5(){const _0xef9183=['window','MAX_ROWS','trim','placeholder','excludeScrollbarsAndBorders','render','1910985tCsrUr','enter','value','_queryViewResizeObserver','24MeucTT','submit','uiLanguageDirection','fieldWrapperChildren','minRows','target','add','176306eUxwUS','element','69559204hwsHmf','AI_CHAT_PROMPT_EMPTY_ERROR','_createSubmitButton','reset','fire','left','isUploadInProgress','fieldView','1200xaMEPd','bind','setPlaceholderText','isEmpty','requestAnimationFrame','setIsUploadInProgress','rtl','keystrokes','width','execute','ck-ai-chat__prompt-submit-button','AI_CHAT_LABEL_SUBMIT','78741mYgvMR','15060272nwArxq','maxRows','ck-ai-chat__prompt-input','locale','set','isEnabled','1075756oYBkmc','1422VmVQHW','errorText','submitButtonView','1863XOpilC','queryView','style','hasError','focusableChildren','extendTemplate','calc(','right','_setUpAddContextButtonPositioning','MIN_ROWS','destroy','sendUserMessage','_addContextButtonView','px\x20-\x20var(--ck-spacing-tiny))','7lyTkYC','update'];_0x58e5=function(){return _0xef9183;};return _0x58e5();}import{IconSubmit as _0x426b19}from'ckeditor5/src/icons.js';import{ButtonView as _0x57507c,AutocompleteView as _0x4a6caf,createLabeledTextarea as _0x14654b}from'ckeditor5/src/ui.js';import{global as _0x16ba44,isVisible as _0x3b0567,Rect as _0xc62ddb,ResizeObserver as _0x5c32ee}from'ckeditor5/src/utils.js';function _0xe853(_0x494fab,_0x22cfb8){const _0x58e522=_0x58e5();return _0xe853=function(_0xe853e6,_0x298fae){_0xe853e6=_0xe853e6-0x175;let _0x36c991=_0x58e522[_0xe853e6];return _0x36c991;},_0xe853(_0x494fab,_0x22cfb8);}import{getTranslation as _0x2dd1f3}from'../../../aicore/utils/common-translations.js';import{AIChatPromptSuggestionsListView as _0xe1a09e}from'./aichatpromptsuggestionslistview.js';export class AIChatPromptInputView extends _0x4a6caf{[_0x3c0aad(0x198)];static [_0x3c0aad(0x1a2)]=0x1;static [_0x3c0aad(0x1aa)]=0xc;[_0x3c0aad(0x1a5)];[_0x3c0aad(0x1b2)];constructor(_0x40fcdb,_0x2e2852){const _0x34081d=_0x3c0aad;super(_0x40fcdb,{'queryView':{'label':'','creator':_0x14654b,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0xe1a09e(_0x40fcdb),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x34081d(0x193)](_0x34081d(0x185),!0x0),this[_0x34081d(0x193)](_0x34081d(0x180),!0x1),this[_0x34081d(0x1a5)]=_0x2e2852,this[_0x34081d(0x1b2)]=null,this[_0x34081d(0x19a)][_0x34081d(0x181)][_0x34081d(0x175)]=AIChatPromptInputView[_0x34081d(0x1a2)],this[_0x34081d(0x19a)][_0x34081d(0x181)][_0x34081d(0x190)]=AIChatPromptInputView[_0x34081d(0x1aa)],this[_0x34081d(0x19a)][_0x34081d(0x1b6)][_0x34081d(0x177)](this[_0x34081d(0x1a5)]),this[_0x34081d(0x1a1)](),this[_0x34081d(0x19e)]({'attributes':{'class':['ck',_0x34081d(0x191)]}}),this[_0x34081d(0x198)]=this[_0x34081d(0x17c)](),this[_0x34081d(0x198)][_0x34081d(0x183)](_0x34081d(0x194))['to'](this,_0x34081d(0x185),this,_0x34081d(0x180),(_0x245efa,_0x4b47f9)=>!_0x245efa&&!_0x4b47f9),this[_0x34081d(0x19d)][_0x34081d(0x177)](this[_0x34081d(0x198)]);}[_0x3c0aad(0x1ae)](){const _0x4699d2=_0x3c0aad;super[_0x4699d2(0x1ae)](),this[_0x4699d2(0x19a)][_0x4699d2(0x1b6)][_0x4699d2(0x177)](this[_0x4699d2(0x198)]),this[_0x4699d2(0x189)][_0x4699d2(0x193)](_0x4699d2(0x1b0),(_0x464ddd,_0x6fa216)=>{const _0x5763fa=_0x4699d2;this[_0x5763fa(0x180)]||this[_0x5763fa(0x185)]||_0x464ddd[_0x5763fa(0x176)]==this[_0x5763fa(0x19a)][_0x5763fa(0x181)][_0x5763fa(0x179)]&&(this[_0x5763fa(0x1b4)](),_0x6fa216());}),this[_0x4699d2(0x19a)][_0x4699d2(0x181)]['on'](_0x4699d2(0x1a8),()=>{const _0x50affb=_0x4699d2;this[_0x50affb(0x185)]=''===this[_0x50affb(0x19a)][_0x50affb(0x181)][_0x50affb(0x179)][_0x50affb(0x1b1)]?.[_0x50affb(0x1ab)]();});}[_0x3c0aad(0x1a3)](){const _0x339f5b=_0x3c0aad;super[_0x339f5b(0x1a3)](),this[_0x339f5b(0x1b2)]&&this[_0x339f5b(0x1b2)][_0x339f5b(0x1a3)]();}[_0x3c0aad(0x1b4)](){const _0x1733d2=_0x3c0aad,_0x2b2519=this[_0x1733d2(0x19a)][_0x1733d2(0x181)][_0x1733d2(0x179)][_0x1733d2(0x1b1)]?.[_0x1733d2(0x1ab)]();if(!_0x2b2519)return this[_0x1733d2(0x19a)][_0x1733d2(0x197)]=_0x2dd1f3(this[_0x1733d2(0x192)],_0x1733d2(0x17b)),void(this[_0x1733d2(0x19a)][_0x1733d2(0x181)][_0x1733d2(0x19c)]=!0x0);this[_0x1733d2(0x19a)][_0x1733d2(0x181)][_0x1733d2(0x19c)]=!0x1,this[_0x1733d2(0x17e)](_0x1733d2(0x1a4),_0x2b2519),this[_0x1733d2(0x19a)][_0x1733d2(0x181)][_0x1733d2(0x17d)]();}[_0x3c0aad(0x184)](_0x221f39){const _0x267245=_0x3c0aad;this[_0x267245(0x19a)][_0x267245(0x181)][_0x267245(0x193)](_0x267245(0x1ac),_0x221f39);}[_0x3c0aad(0x17c)](){const _0x3ec38b=_0x3c0aad,_0x3607b4=new _0x57507c(this[_0x3ec38b(0x192)]);return _0x3607b4[_0x3ec38b(0x193)]({'icon':_0x426b19,'label':_0x2dd1f3(this[_0x3ec38b(0x192)],_0x3ec38b(0x18d)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x3ec38b(0x18c),'isEnabled':!0x1}),_0x3607b4['on'](_0x3ec38b(0x18b),()=>{const _0x188361=_0x3ec38b;this[_0x188361(0x1b4)]();}),_0x3607b4;}[_0x3c0aad(0x187)](_0x37aa49){const _0x5793d7=_0x3c0aad;this[_0x5793d7(0x180)]=_0x37aa49;}[_0x3c0aad(0x1a1)](){const _0x335fe6=_0x3c0aad,_0x4f46be=this[_0x335fe6(0x192)],_0x314b11=()=>{const _0x24dcff=_0x335fe6;_0x16ba44[_0x24dcff(0x1a9)][_0x24dcff(0x186)](()=>{const _0x28ced2=_0x24dcff;if(_0x3b0567(this[_0x28ced2(0x179)])){const _0x504241=new _0xc62ddb(this[_0x28ced2(0x19a)][_0x28ced2(0x181)][_0x28ced2(0x179)]),_0x1b79f2=new _0xc62ddb(this[_0x28ced2(0x1a5)][_0x28ced2(0x179)]),_0x41863f=_0x504241[_0x28ced2(0x18a)],_0x537728=_0x28ced2(0x188)===_0x4f46be[_0x28ced2(0x1b5)]?_0x28ced2(0x1a0):_0x28ced2(0x17f);_0x504241[_0x28ced2(0x1ad)]();const _0x272de4=_0x41863f-_0x504241[_0x28ced2(0x18a)]+0x1;this[_0x28ced2(0x1a5)][_0x28ced2(0x179)][_0x28ced2(0x19b)][_0x537728]=_0x28ced2(0x19f)+(_0x41863f-_0x1b79f2[_0x28ced2(0x18a)]-_0x272de4)+_0x28ced2(0x1a6);}});};this[_0x335fe6(0x19a)][_0x335fe6(0x181)]['on'](_0x335fe6(0x1a8),_0x314b11),this['on'](_0x335fe6(0x1ae),()=>{const _0x521159=_0x335fe6;_0x314b11(),this[_0x521159(0x1b2)]=new _0x5c32ee(this[_0x521159(0x19a)][_0x521159(0x181)][_0x521159(0x179)],()=>{_0x314b11();});});}}
@@ -0,0 +1,17 @@
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/ui/controls/aichatpromptsuggestionslistview
7
+ */
8
+ import { type FilteredView, ListView } from 'ckeditor5/src/ui.js';
9
+ export declare class AIChatPromptSuggestionsListView extends ListView implements FilteredView {
10
+ /**
11
+ * @inheritDoc
12
+ */
13
+ filter(): {
14
+ resultsCount: number;
15
+ totalItemsCount: number;
16
+ };
17
+ }
@@ -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 _0x21b773=_0x4983;function _0x4983(_0x35561f,_0x4bb20c){const _0x9331f6=_0x9331();return _0x4983=function(_0x498349,_0x4481bb){_0x498349=_0x498349-0x1aa;let _0x45d3d8=_0x9331f6[_0x498349];return _0x45d3d8;},_0x4983(_0x35561f,_0x4bb20c);}(function(_0x595a7f,_0xcd5bb4){const _0x69e668=_0x4983,_0x4f7fd1=_0x595a7f();while(!![]){try{const _0x12de2f=-parseInt(_0x69e668(0x1af))/0x1+parseInt(_0x69e668(0x1b0))/0x2*(-parseInt(_0x69e668(0x1ab))/0x3)+parseInt(_0x69e668(0x1b4))/0x4+parseInt(_0x69e668(0x1aa))/0x5+parseInt(_0x69e668(0x1b5))/0x6+-parseInt(_0x69e668(0x1b2))/0x7*(-parseInt(_0x69e668(0x1b1))/0x8)+parseInt(_0x69e668(0x1ac))/0x9;if(_0x12de2f===_0xcd5bb4)break;else _0x4f7fd1['push'](_0x4f7fd1['shift']());}catch(_0x3fd202){_0x4f7fd1['push'](_0x4f7fd1['shift']());}}}(_0x9331,0x24547));import{ListView as _0x377845}from'ckeditor5/src/ui.js';function _0x9331(){const _0x1a88ee=['40RjqCdI','202790sdemQZ','items','567328wyHkGb','38928PCzkiT','1137695cVwNTc','35067EZnoHL','618138HNeDyy','filter','length','288627kcZNMe','26qKAmgu'];_0x9331=function(){return _0x1a88ee;};return _0x9331();}export class AIChatPromptSuggestionsListView extends _0x377845{[_0x21b773(0x1ad)](){const _0x2f69ff=_0x21b773;let _0x4b222b=0x0;for(const _0x457d6a of this[_0x2f69ff(0x1b3)])_0x4b222b+=_0x457d6a[_0x2f69ff(0x1b3)][_0x2f69ff(0x1ae)];return{'resultsCount':_0x4b222b,'totalItemsCount':_0x4b222b};}}
@@ -0,0 +1,61 @@
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/ui/controls/resources/aichatresourcelistitemview
7
+ */
8
+ import { type Locale } from 'ckeditor5/src/utils.js';
9
+ import { ListItemView } from 'ckeditor5/src/ui.js';
10
+ import { type AIContextResourceState } from '../../../../aichat/model/aichatcontext.js';
11
+ /**
12
+ * A view representing a single resource item in the AI chat context resource list.
13
+ * Displays resource information with appropriate icons and handles selection state.
14
+ */
15
+ export declare class AIChatResourceListItemView extends ListItemView {
16
+ /**
17
+ * The context resource state this view represents.
18
+ * Contains the resource data including ID, label, type, and context status.
19
+ */
20
+ resource: AIContextResourceState;
21
+ /**
22
+ * Whether the resource is currently in the context.
23
+ * This property is observable and automatically updates the view's appearance.
24
+ *
25
+ * @observable
26
+ */
27
+ isInContext: boolean;
28
+ /**
29
+ * Creates a new AI context resource list item view.
30
+ *
31
+ * @param locale The locale instance for internationalization
32
+ * @param resource The context resource state to represent
33
+ */
34
+ constructor(locale: Locale, resource: AIContextResourceState);
35
+ /**
36
+ * Renders the view and its child components.
37
+ */
38
+ render(): void;
39
+ /**
40
+ * Gets the appropriate icon for a resource based on its type and context state.
41
+ * Returns a checkmark icon if the resource is in context, otherwise returns
42
+ * a type-specific icon (document, link, file, or default outline).
43
+ *
44
+ * @param resource The context resource state
45
+ * @returns The appropriate icon string for the resource
46
+ */
47
+ getResourceIcon(resource: AIContextResourceState): string;
48
+ /**
49
+ * Highlights text in the resource title based on the provided search query.
50
+ * This method should only be called when highlighting is enabled for the source.
51
+ *
52
+ * @param query The search query string to highlight, or empty string to clear highlighting
53
+ */
54
+ highlightText(query: string): void;
55
+ /**
56
+ * Updates the resource state and refreshes the icon accordingly.
57
+ *
58
+ * @param isInContext Whether the resource is currently in the context
59
+ */
60
+ updateResourceState(isInContext: boolean): void;
61
+ }
@@ -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 _0x4d945a=_0x3102;(function(_0xa14640,_0x284f6a){const _0x1736b5=_0x3102,_0x58d158=_0xa14640();while(!![]){try{const _0x5df18b=parseInt(_0x1736b5(0x164))/0x1*(-parseInt(_0x1736b5(0x16f))/0x2)+parseInt(_0x1736b5(0x17d))/0x3*(parseInt(_0x1736b5(0x173))/0x4)+parseInt(_0x1736b5(0x162))/0x5+-parseInt(_0x1736b5(0x15b))/0x6+-parseInt(_0x1736b5(0x16c))/0x7+parseInt(_0x1736b5(0x16e))/0x8*(-parseInt(_0x1736b5(0x16d))/0x9)+parseInt(_0x1736b5(0x179))/0xa;if(_0x5df18b===_0x284f6a)break;else _0x58d158['push'](_0x58d158['shift']());}catch(_0x12f140){_0x58d158['push'](_0x58d158['shift']());}}}(_0x167f,0xea8b5));import{HighlightedTextView as _0x2cd482,IconView as _0x1f09c9,ListItemView as _0x4028ae}from'ckeditor5/src/ui.js';import{escapeRegExp as _0x4e8a5f}from'es-toolkit/compat';import{AIContextItemType as _0x264fe9}from'../../../../aicore/model/aicontext.js';import{IconFileUpload as _0x5b3da6,IconCheck as _0x39c0f9,IconDocument as _0x25b921,IconDocumentOutline as _0x57bdd1,IconLink as _0x2f9228}from'@ckeditor/ckeditor5-icons';function _0x3102(_0x3ace9e,_0x2fa9d2){const _0x167f36=_0x167f();return _0x3102=function(_0x3102fd,_0x235a04){_0x3102fd=_0x3102fd-0x152;let _0x3d6576=_0x167f36[_0x3102fd];return _0x3d6576;},_0x3102(_0x3ace9e,_0x2fa9d2);}function _0x167f(){const _0x38bef7=['label','27475900giJdpm','_updateIcon','isVisible','type','6wTKsaQ','FILE','_titleView','div','execute','isInContext','setTemplate','getResourceIcon','content','URL','11474430OeDTfl','updateResourceState','text','ck-ai-chat-resources__item__icon','_iconView','ck-hidden','_createTitleView','9470645wxtVZw','resource','1dzXEyp','render','ck-ai-chat-resources__item--in-context','_setupTemplate','trim','ck-ai-chat-resources__item','span','DOCUMENT','9007453PCpXfy','61011XPLOxm','104EtxZmN','803074GEqPoN','extendTemplate','highlightText','set','15644AdnYmQ','TEXT','bindTemplate','ck-ai-chat-resources__item-title','_createIconView'];_0x167f=function(){return _0x38bef7;};return _0x167f();}const Rr=_0x4d945a(0x169),Tr=_0x4d945a(0x166),Lr=_0x4d945a(0x176),qr=_0x4d945a(0x15e);export class AIChatResourceListItemView extends _0x4028ae{[_0x4d945a(0x163)];[_0x4d945a(0x153)];[_0x4d945a(0x15f)];constructor(_0x161452,_0xe4714e){const _0x51f3c2=_0x4d945a;super(_0x161452),this[_0x51f3c2(0x163)]=_0xe4714e,this[_0x51f3c2(0x172)](_0x51f3c2(0x156),!!_0xe4714e[_0x51f3c2(0x156)]),this[_0x51f3c2(0x153)]=this[_0x51f3c2(0x161)](),this[_0x51f3c2(0x15f)]=this[_0x51f3c2(0x177)](),this[_0x51f3c2(0x167)]();}[_0x4d945a(0x165)](){const _0x4134f4=_0x4d945a;super[_0x4134f4(0x165)]();}[_0x4d945a(0x158)](_0x57bc22){const _0x56f270=_0x4d945a;if(_0x57bc22[_0x56f270(0x156)])return _0x39c0f9;switch(_0x57bc22[_0x56f270(0x17c)]){case _0x264fe9[_0x56f270(0x16b)]:return _0x25b921;case _0x264fe9[_0x56f270(0x15a)]:return _0x2f9228;case _0x264fe9[_0x56f270(0x152)]:case _0x264fe9[_0x56f270(0x174)]:return _0x5b3da6;default:return _0x57bdd1;}}[_0x4d945a(0x171)](_0x45a7e5){const _0x15ab5d=_0x4d945a;if(!_0x45a7e5||''===_0x45a7e5[_0x15ab5d(0x168)]())return void this[_0x15ab5d(0x153)][_0x15ab5d(0x171)](null);const _0x55114a=new RegExp(_0x4e8a5f(_0x45a7e5),'gi');this[_0x15ab5d(0x153)][_0x15ab5d(0x171)](_0x55114a);}[_0x4d945a(0x15c)](_0x274fe3){const _0x25a673=_0x4d945a;this[_0x25a673(0x163)][_0x25a673(0x156)]=_0x274fe3,this[_0x25a673(0x156)]=_0x274fe3,this[_0x25a673(0x17a)]();}[_0x4d945a(0x161)](){const _0x11fe1f=_0x4d945a,_0x15cf82=new _0x2cd482();return _0x15cf82[_0x11fe1f(0x15d)]=this[_0x11fe1f(0x163)][_0x11fe1f(0x178)],_0x15cf82[_0x11fe1f(0x170)]({'tag':_0x11fe1f(0x16a),'attributes':{'class':[Lr]}}),_0x15cf82;}[_0x4d945a(0x177)](){const _0x461b22=_0x4d945a,_0x4b5fcb=new _0x1f09c9();return _0x4b5fcb[_0x461b22(0x159)]=this[_0x461b22(0x158)](this[_0x461b22(0x163)]),_0x4b5fcb;}[_0x4d945a(0x167)](){const _0x5c7d4f=_0x4d945a,_0x2369e2=this[_0x5c7d4f(0x175)];this[_0x5c7d4f(0x157)]({'tag':_0x5c7d4f(0x154),'attributes':{'class':[Rr,_0x2369e2['if'](_0x5c7d4f(0x17b),_0x5c7d4f(0x160),_0x22eff0=>!_0x22eff0),_0x2369e2['if'](_0x5c7d4f(0x156),Tr)]},'children':[{'tag':_0x5c7d4f(0x154),'attributes':{'class':[qr]},'children':[this[_0x5c7d4f(0x15f)]]},this[_0x5c7d4f(0x153)]],'on':{'click':_0x2369e2['to'](_0x5c7d4f(0x155))}});}[_0x4d945a(0x17a)](){const _0x21a3fb=_0x4d945a;this[_0x21a3fb(0x15f)][_0x21a3fb(0x159)]=this[_0x21a3fb(0x158)](this[_0x21a3fb(0x163)]);}}