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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (498) hide show
  1. package/build/ai.js +2 -2
  2. package/build/translations/af.js +1 -1
  3. package/build/translations/ar.js +1 -1
  4. package/build/translations/ast.js +1 -1
  5. package/build/translations/az.js +1 -1
  6. package/build/translations/be.js +1 -1
  7. package/build/translations/bg.js +1 -1
  8. package/build/translations/bn.js +1 -1
  9. package/build/translations/bs.js +1 -1
  10. package/build/translations/ca.js +1 -1
  11. package/build/translations/cs.js +1 -1
  12. package/build/translations/da.js +1 -1
  13. package/build/translations/de-ch.js +1 -1
  14. package/build/translations/de.js +1 -1
  15. package/build/translations/el.js +1 -1
  16. package/build/translations/en-au.js +1 -1
  17. package/build/translations/en-gb.js +1 -1
  18. package/build/translations/eo.js +1 -1
  19. package/build/translations/es-co.js +1 -1
  20. package/build/translations/es.js +1 -1
  21. package/build/translations/et.js +1 -1
  22. package/build/translations/eu.js +1 -1
  23. package/build/translations/fa.js +1 -1
  24. package/build/translations/fi.js +1 -1
  25. package/build/translations/fr.js +1 -1
  26. package/build/translations/gl.js +1 -1
  27. package/build/translations/gu.js +1 -1
  28. package/build/translations/he.js +1 -1
  29. package/build/translations/hi.js +1 -1
  30. package/build/translations/hr.js +1 -1
  31. package/build/translations/hu.js +1 -1
  32. package/build/translations/hy.js +1 -1
  33. package/build/translations/id.js +1 -1
  34. package/build/translations/it.js +1 -1
  35. package/build/translations/ja.js +1 -1
  36. package/build/translations/jv.js +1 -1
  37. package/build/translations/kk.js +1 -1
  38. package/build/translations/km.js +1 -1
  39. package/build/translations/kn.js +1 -1
  40. package/build/translations/ko.js +1 -1
  41. package/build/translations/ku.js +1 -1
  42. package/build/translations/lt.js +1 -1
  43. package/build/translations/lv.js +1 -1
  44. package/build/translations/ms.js +1 -1
  45. package/build/translations/nb.js +1 -1
  46. package/build/translations/ne.js +1 -1
  47. package/build/translations/nl.js +1 -1
  48. package/build/translations/no.js +1 -1
  49. package/build/translations/oc.js +1 -1
  50. package/build/translations/pl.js +1 -1
  51. package/build/translations/pt-br.js +1 -1
  52. package/build/translations/pt.js +1 -1
  53. package/build/translations/ro.js +1 -1
  54. package/build/translations/ru.js +1 -1
  55. package/build/translations/si.js +1 -1
  56. package/build/translations/sk.js +1 -1
  57. package/build/translations/sl.js +1 -1
  58. package/build/translations/sq.js +1 -1
  59. package/build/translations/sr-latn.js +1 -1
  60. package/build/translations/sr.js +1 -1
  61. package/build/translations/sv.js +1 -1
  62. package/build/translations/th.js +1 -1
  63. package/build/translations/ti.js +1 -1
  64. package/build/translations/tk.js +1 -1
  65. package/build/translations/tr.js +1 -1
  66. package/build/translations/tt.js +1 -1
  67. package/build/translations/ug.js +1 -1
  68. package/build/translations/uk.js +1 -1
  69. package/build/translations/ur.js +1 -1
  70. package/build/translations/uz.js +1 -1
  71. package/build/translations/vi.js +1 -1
  72. package/build/translations/zh-cn.js +1 -1
  73. package/build/translations/zh.js +1 -1
  74. package/dist/index-editor.css +573 -203
  75. package/dist/index.css +627 -204
  76. package/dist/index.js +5 -4
  77. package/dist/translations/af.js +1 -1
  78. package/dist/translations/af.umd.js +1 -1
  79. package/dist/translations/ar.js +1 -1
  80. package/dist/translations/ar.umd.js +1 -1
  81. package/dist/translations/ast.js +1 -1
  82. package/dist/translations/ast.umd.js +1 -1
  83. package/dist/translations/az.js +1 -1
  84. package/dist/translations/az.umd.js +1 -1
  85. package/dist/translations/be.js +1 -1
  86. package/dist/translations/be.umd.js +1 -1
  87. package/dist/translations/bg.js +1 -1
  88. package/dist/translations/bg.umd.js +1 -1
  89. package/dist/translations/bn.js +1 -1
  90. package/dist/translations/bn.umd.js +1 -1
  91. package/dist/translations/bs.js +1 -1
  92. package/dist/translations/bs.umd.js +1 -1
  93. package/dist/translations/ca.js +1 -1
  94. package/dist/translations/ca.umd.js +1 -1
  95. package/dist/translations/cs.js +1 -1
  96. package/dist/translations/cs.umd.js +1 -1
  97. package/dist/translations/da.js +1 -1
  98. package/dist/translations/da.umd.js +1 -1
  99. package/dist/translations/de-ch.js +1 -1
  100. package/dist/translations/de-ch.umd.js +1 -1
  101. package/dist/translations/de.js +1 -1
  102. package/dist/translations/de.umd.js +1 -1
  103. package/dist/translations/el.js +1 -1
  104. package/dist/translations/el.umd.js +1 -1
  105. package/dist/translations/en-au.js +1 -1
  106. package/dist/translations/en-au.umd.js +1 -1
  107. package/dist/translations/en-gb.js +1 -1
  108. package/dist/translations/en-gb.umd.js +1 -1
  109. package/dist/translations/en.js +1 -1
  110. package/dist/translations/en.umd.js +1 -1
  111. package/dist/translations/eo.js +1 -1
  112. package/dist/translations/eo.umd.js +1 -1
  113. package/dist/translations/es-co.js +1 -1
  114. package/dist/translations/es-co.umd.js +1 -1
  115. package/dist/translations/es.js +1 -1
  116. package/dist/translations/es.umd.js +1 -1
  117. package/dist/translations/et.js +1 -1
  118. package/dist/translations/et.umd.js +1 -1
  119. package/dist/translations/eu.js +1 -1
  120. package/dist/translations/eu.umd.js +1 -1
  121. package/dist/translations/fa.js +1 -1
  122. package/dist/translations/fa.umd.js +1 -1
  123. package/dist/translations/fi.js +1 -1
  124. package/dist/translations/fi.umd.js +1 -1
  125. package/dist/translations/fr.js +1 -1
  126. package/dist/translations/fr.umd.js +1 -1
  127. package/dist/translations/gl.js +1 -1
  128. package/dist/translations/gl.umd.js +1 -1
  129. package/dist/translations/gu.js +1 -1
  130. package/dist/translations/gu.umd.js +1 -1
  131. package/dist/translations/he.js +1 -1
  132. package/dist/translations/he.umd.js +1 -1
  133. package/dist/translations/hi.js +1 -1
  134. package/dist/translations/hi.umd.js +1 -1
  135. package/dist/translations/hr.js +1 -1
  136. package/dist/translations/hr.umd.js +1 -1
  137. package/dist/translations/hu.js +1 -1
  138. package/dist/translations/hu.umd.js +1 -1
  139. package/dist/translations/hy.js +1 -1
  140. package/dist/translations/hy.umd.js +1 -1
  141. package/dist/translations/id.js +1 -1
  142. package/dist/translations/id.umd.js +1 -1
  143. package/dist/translations/it.js +1 -1
  144. package/dist/translations/it.umd.js +1 -1
  145. package/dist/translations/ja.js +1 -1
  146. package/dist/translations/ja.umd.js +1 -1
  147. package/dist/translations/jv.js +1 -1
  148. package/dist/translations/jv.umd.js +1 -1
  149. package/dist/translations/kk.js +1 -1
  150. package/dist/translations/kk.umd.js +1 -1
  151. package/dist/translations/km.js +1 -1
  152. package/dist/translations/km.umd.js +1 -1
  153. package/dist/translations/kn.js +1 -1
  154. package/dist/translations/kn.umd.js +1 -1
  155. package/dist/translations/ko.js +1 -1
  156. package/dist/translations/ko.umd.js +1 -1
  157. package/dist/translations/ku.js +1 -1
  158. package/dist/translations/ku.umd.js +1 -1
  159. package/dist/translations/lt.js +1 -1
  160. package/dist/translations/lt.umd.js +1 -1
  161. package/dist/translations/lv.js +1 -1
  162. package/dist/translations/lv.umd.js +1 -1
  163. package/dist/translations/ms.js +1 -1
  164. package/dist/translations/ms.umd.js +1 -1
  165. package/dist/translations/nb.js +1 -1
  166. package/dist/translations/nb.umd.js +1 -1
  167. package/dist/translations/ne.js +1 -1
  168. package/dist/translations/ne.umd.js +1 -1
  169. package/dist/translations/nl.js +1 -1
  170. package/dist/translations/nl.umd.js +1 -1
  171. package/dist/translations/no.js +1 -1
  172. package/dist/translations/no.umd.js +1 -1
  173. package/dist/translations/oc.js +1 -1
  174. package/dist/translations/oc.umd.js +1 -1
  175. package/dist/translations/pl.js +1 -1
  176. package/dist/translations/pl.umd.js +1 -1
  177. package/dist/translations/pt-br.js +1 -1
  178. package/dist/translations/pt-br.umd.js +1 -1
  179. package/dist/translations/pt.js +1 -1
  180. package/dist/translations/pt.umd.js +1 -1
  181. package/dist/translations/ro.js +1 -1
  182. package/dist/translations/ro.umd.js +1 -1
  183. package/dist/translations/ru.js +1 -1
  184. package/dist/translations/ru.umd.js +1 -1
  185. package/dist/translations/si.js +1 -1
  186. package/dist/translations/si.umd.js +1 -1
  187. package/dist/translations/sk.js +1 -1
  188. package/dist/translations/sk.umd.js +1 -1
  189. package/dist/translations/sl.js +1 -1
  190. package/dist/translations/sl.umd.js +1 -1
  191. package/dist/translations/sq.js +1 -1
  192. package/dist/translations/sq.umd.js +1 -1
  193. package/dist/translations/sr-latn.js +1 -1
  194. package/dist/translations/sr-latn.umd.js +1 -1
  195. package/dist/translations/sr.js +1 -1
  196. package/dist/translations/sr.umd.js +1 -1
  197. package/dist/translations/sv.js +1 -1
  198. package/dist/translations/sv.umd.js +1 -1
  199. package/dist/translations/th.js +1 -1
  200. package/dist/translations/th.umd.js +1 -1
  201. package/dist/translations/ti.js +1 -1
  202. package/dist/translations/ti.umd.js +1 -1
  203. package/dist/translations/tk.js +1 -1
  204. package/dist/translations/tk.umd.js +1 -1
  205. package/dist/translations/tr.js +1 -1
  206. package/dist/translations/tr.umd.js +1 -1
  207. package/dist/translations/tt.js +1 -1
  208. package/dist/translations/tt.umd.js +1 -1
  209. package/dist/translations/ug.js +1 -1
  210. package/dist/translations/ug.umd.js +1 -1
  211. package/dist/translations/uk.js +1 -1
  212. package/dist/translations/uk.umd.js +1 -1
  213. package/dist/translations/ur.js +1 -1
  214. package/dist/translations/ur.umd.js +1 -1
  215. package/dist/translations/uz.js +1 -1
  216. package/dist/translations/uz.umd.js +1 -1
  217. package/dist/translations/vi.js +1 -1
  218. package/dist/translations/vi.umd.js +1 -1
  219. package/dist/translations/zh-cn.js +1 -1
  220. package/dist/translations/zh-cn.umd.js +1 -1
  221. package/dist/translations/zh.js +1 -1
  222. package/dist/translations/zh.umd.js +1 -1
  223. package/lang/contexts.json +8 -1
  224. package/lang/translations/af.po +52 -4
  225. package/lang/translations/ar.po +52 -4
  226. package/lang/translations/ast.po +52 -4
  227. package/lang/translations/az.po +52 -4
  228. package/lang/translations/be.po +52 -4
  229. package/lang/translations/bg.po +52 -4
  230. package/lang/translations/bn.po +52 -4
  231. package/lang/translations/bs.po +52 -4
  232. package/lang/translations/ca.po +52 -4
  233. package/lang/translations/cs.po +52 -4
  234. package/lang/translations/da.po +52 -4
  235. package/lang/translations/de-ch.po +52 -4
  236. package/lang/translations/de.po +52 -4
  237. package/lang/translations/el.po +52 -4
  238. package/lang/translations/en-au.po +52 -4
  239. package/lang/translations/en-gb.po +52 -4
  240. package/lang/translations/en.po +52 -4
  241. package/lang/translations/eo.po +52 -4
  242. package/lang/translations/es-co.po +52 -4
  243. package/lang/translations/es.po +52 -4
  244. package/lang/translations/et.po +52 -4
  245. package/lang/translations/eu.po +52 -4
  246. package/lang/translations/fa.po +52 -4
  247. package/lang/translations/fi.po +52 -4
  248. package/lang/translations/fr.po +52 -4
  249. package/lang/translations/gl.po +52 -4
  250. package/lang/translations/gu.po +52 -4
  251. package/lang/translations/he.po +52 -4
  252. package/lang/translations/hi.po +52 -4
  253. package/lang/translations/hr.po +52 -4
  254. package/lang/translations/hu.po +52 -4
  255. package/lang/translations/hy.po +52 -4
  256. package/lang/translations/id.po +52 -4
  257. package/lang/translations/it.po +52 -4
  258. package/lang/translations/ja.po +52 -4
  259. package/lang/translations/jv.po +52 -4
  260. package/lang/translations/kk.po +52 -4
  261. package/lang/translations/km.po +52 -4
  262. package/lang/translations/kn.po +52 -4
  263. package/lang/translations/ko.po +52 -4
  264. package/lang/translations/ku.po +52 -4
  265. package/lang/translations/lt.po +52 -4
  266. package/lang/translations/lv.po +52 -4
  267. package/lang/translations/ms.po +52 -4
  268. package/lang/translations/nb.po +52 -4
  269. package/lang/translations/ne.po +52 -4
  270. package/lang/translations/nl.po +52 -4
  271. package/lang/translations/no.po +52 -4
  272. package/lang/translations/oc.po +52 -4
  273. package/lang/translations/pl.po +52 -4
  274. package/lang/translations/pt-br.po +52 -4
  275. package/lang/translations/pt.po +52 -4
  276. package/lang/translations/ro.po +52 -4
  277. package/lang/translations/ru.po +52 -4
  278. package/lang/translations/si.po +52 -4
  279. package/lang/translations/sk.po +52 -4
  280. package/lang/translations/sl.po +52 -4
  281. package/lang/translations/sq.po +52 -4
  282. package/lang/translations/sr-latn.po +52 -4
  283. package/lang/translations/sr.po +52 -4
  284. package/lang/translations/sv.po +52 -4
  285. package/lang/translations/th.po +52 -4
  286. package/lang/translations/ti.po +52 -4
  287. package/lang/translations/tk.po +52 -4
  288. package/lang/translations/tr.po +52 -4
  289. package/lang/translations/tt.po +52 -4
  290. package/lang/translations/ug.po +52 -4
  291. package/lang/translations/uk.po +52 -4
  292. package/lang/translations/ur.po +52 -4
  293. package/lang/translations/uz.po +52 -4
  294. package/lang/translations/vi.po +52 -4
  295. package/lang/translations/zh-cn.po +52 -4
  296. package/lang/translations/zh.po +52 -4
  297. package/package.json +15 -15
  298. package/src/aiactions/aiactions.d.ts +1 -1
  299. package/src/aiactions/aiactions.js +1 -1
  300. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  301. package/src/aiactions/model/aiactionsreply.js +1 -1
  302. package/src/aiassistant/adapters/aiadapter.js +1 -1
  303. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  304. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  305. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  306. package/src/aiassistant/aiassistant.js +1 -1
  307. package/src/aiassistant/aiassistantediting.js +1 -1
  308. package/src/aiassistant/aiassistantui.js +1 -1
  309. package/src/aiassistant/legacyerrors.js +1 -1
  310. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  311. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  312. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  313. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  314. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  315. package/src/aiassistant/ui/form/aiformview.js +1 -1
  316. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  317. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  318. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  319. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  320. package/src/aiassistant/utils/common-translations.js +1 -1
  321. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  322. package/src/aiballoon/aiballoon.d.ts +5 -1
  323. package/src/aiballoon/aiballoon.js +1 -1
  324. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  325. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  326. package/src/aiballoon/ui/aiballoonview.d.ts +40 -1
  327. package/src/aiballoon/ui/aiballoonview.js +1 -1
  328. package/src/aichat/aichat.js +1 -1
  329. package/src/aichat/aichatcontroller.d.ts +1 -1
  330. package/src/aichat/aichatcontroller.js +1 -1
  331. package/src/aichat/aichatui.d.ts +1 -0
  332. package/src/aichat/aichatui.js +1 -1
  333. package/src/aichat/model/aichatcontext.d.ts +4 -0
  334. package/src/aichat/model/aichatcontext.js +1 -1
  335. package/src/aichat/model/aichatconversation.js +1 -1
  336. package/src/aichat/model/aichatinteraction.js +1 -1
  337. package/src/aichat/model/aichatmodels.d.ts +8 -29
  338. package/src/aichat/model/aichatmodels.js +1 -1
  339. package/src/aichat/ui/aichatcontrolsview.d.ts +4 -1
  340. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  341. package/src/aichat/ui/aichatfeedview.d.ts +2 -2
  342. package/src/aichat/ui/aichatfeedview.js +1 -1
  343. package/src/aichat/ui/aichatheaderview.js +1 -1
  344. package/src/aichat/ui/aichatview.d.ts +4 -1
  345. package/src/aichat/ui/aichatview.js +1 -1
  346. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  347. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  348. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  349. package/src/aichat/ui/controls/aichatcontextpanelview.d.ts +4 -1
  350. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  351. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  352. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  353. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  354. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  355. package/src/aichat/ui/controls/resources/{aichatresourceslistview.d.ts → aichatcontextresourceslistview.d.ts} +1 -1
  356. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +23 -0
  357. package/src/aichat/ui/controls/resources/{aichatresourcesview.d.ts → aichatcontextresourcesview.d.ts} +5 -2
  358. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +23 -0
  359. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  360. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.d.ts +4 -0
  361. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  362. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  363. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  364. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  365. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  366. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  367. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  368. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.d.ts +3 -3
  369. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  370. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.d.ts +3 -3
  371. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  372. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  373. package/src/aichat/utils/eventnames.js +1 -1
  374. package/src/aichat/utils/promisequeue.js +1 -1
  375. package/src/aichat/utils/scrollmanager.js +1 -1
  376. package/src/aichathistory/aichathistory.js +1 -1
  377. package/src/aichathistory/aichathistorycontroller.js +1 -1
  378. package/src/aichathistory/aichathistoryui.js +1 -1
  379. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  380. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  381. package/src/aichathistory/ui/aichathistorylistitemview.d.ts +1 -1
  382. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -1
  383. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  384. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  385. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  386. package/src/aiconfig.d.ts +28 -7
  387. package/src/aicore/aiconnector.d.ts +1 -0
  388. package/src/aicore/aiconnector.js +1 -1
  389. package/src/aicore/aiediting.js +1 -1
  390. package/src/aicore/model/aicapabilities.js +1 -1
  391. package/src/aicore/model/aicontext.js +1 -1
  392. package/src/aicore/model/aiinteraction.js +1 -1
  393. package/src/aicore/model/aimodels.d.ts +66 -0
  394. package/src/aicore/model/aimodels.js +23 -0
  395. package/src/aicore/model/aireply.d.ts +9 -1
  396. package/src/aicore/model/aireply.js +1 -1
  397. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  398. package/src/aicore/pipeline/airesponseparser.js +2 -2
  399. package/src/aicore/ui/aidisclaimerview.js +1 -1
  400. package/src/aicore/ui/aiskeleton.js +1 -1
  401. package/src/aicore/ui/aispinner.js +1 -1
  402. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  403. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.d.ts +5 -2
  404. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  405. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.d.ts +3 -1
  406. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  407. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.d.ts +6 -2
  408. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  409. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  410. package/src/aicore/utils/common-translations.js +1 -1
  411. package/src/aicore/utils/createresizebutton.js +1 -1
  412. package/src/aicore/utils/documentposition.js +1 -1
  413. package/src/aicore/utils/documentrange.js +1 -1
  414. package/src/aicore/utils/eventnames.js +1 -1
  415. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  416. package/src/aicore/utils/getoperationsfromreply.d.ts +2 -1
  417. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  418. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  419. package/src/aicore/utils/htmlparser.js +1 -1
  420. package/src/aicore/utils/htmlstreamer.js +1 -1
  421. package/src/aieditorintegration/aieditorintegration.d.ts +2 -1
  422. package/src/aieditorintegration/aieditorintegration.js +1 -1
  423. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  424. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  425. package/src/aiquickactions/aiquickactions.js +1 -1
  426. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  427. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  428. package/src/aiquickactions/aiquickactionsui.js +1 -1
  429. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  430. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  431. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  432. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  433. package/src/aireviewmode/aireviewmode.js +1 -1
  434. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  435. package/src/aireviewmode/aireviewmodeediting.d.ts +18 -0
  436. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  437. package/src/aireviewmode/aireviewmodeui.d.ts +1 -1
  438. package/src/aireviewmode/aireviewmodeui.js +1 -1
  439. package/src/aireviewmode/model/aireviewcheck.js +1 -1
  440. package/src/aireviewmode/model/aireviewcheckcustom.d.ts +3 -3
  441. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  442. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  443. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  444. package/src/aireviewmode/model/aireviewcheckresultchange.d.ts +1 -1
  445. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  446. package/src/aireviewmode/model/aireviewcheckrun.d.ts +9 -10
  447. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  448. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  449. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  450. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  451. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  452. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.d.ts +6 -0
  453. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  454. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  455. package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.d.ts +13 -0
  456. package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +23 -0
  457. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  458. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.d.ts +9 -1
  459. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  460. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  461. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.d.ts +0 -4
  462. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  463. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  464. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  465. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  466. package/src/aitabs/aitabs.js +1 -1
  467. package/src/aitabs/aitabsmainview.js +1 -1
  468. package/src/aitabs/tabs/aitabsview.js +1 -1
  469. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  470. package/src/aitabs/tabs/tabpanelview.js +1 -1
  471. package/src/errors.js +1 -1
  472. package/src/index.d.ts +1 -0
  473. package/src/index.js +1 -1
  474. package/theme/aiballoon/aiballoon.css +12 -0
  475. package/theme/aichat/aichat-controls/aichat-context-chip.css +1 -1
  476. package/theme/aichat/aichat-controls/aichat-context-controls-balloon-panels.css +52 -43
  477. package/theme/aichat/aichat-controls/aichat-controls-button.css +8 -6
  478. package/theme/aichat/aichat-controls/aichat-controls-loader.css +36 -52
  479. package/theme/aichat/aichat-controls/prompt-capabilities.css +0 -1
  480. package/theme/aichat/aichat-controls.css +11 -27
  481. package/theme/aichat/aichat.css +2 -3
  482. package/theme/aichat/aichatfeed.css +1 -27
  483. package/theme/aichat/aichathistory.css +12 -0
  484. package/theme/aichat/aisuggestioncontainer.css +5 -0
  485. package/theme/aireviewmode/aireviewmode-check-list.css +25 -23
  486. package/theme/aireviewmode/aireviewmode-check-run-result.css +45 -0
  487. package/theme/aireviewmode/aireviewmode-check-run.css +28 -5
  488. package/theme/aireviewmode/aireviewmode.css +17 -7
  489. package/theme/aitabs/aitabsview.css +1 -1
  490. package/theme/aitabs/tabs/tabbuttonview.css +1 -0
  491. package/theme/aitabs/tabs/tabsview.css +1 -0
  492. package/theme/common/aibutton.css +27 -0
  493. package/theme/common/aiheader.css +14 -4
  494. package/theme/common/aitrackchanges.css +8 -1
  495. package/src/aichat/ui/controls/resources/aichatresourceslistview.js +0 -23
  496. package/src/aichat/ui/controls/resources/aichatresourcesview.js +0 -23
  497. package/src/aireviewmode/model/aireviewmodels.d.ts +0 -26
  498. package/src/aireviewmode/model/aireviewmodels.js +0 -23
@@ -20,7 +20,10 @@ export declare class AIChatContextPanelView extends View {
20
20
  * **Note**: It gets rendered in the `AIChatPromptInputView` due to positioning constraints.
21
21
  */
22
22
  readonly addContextButtonView: ButtonView;
23
- constructor(locale: Locale, bodyCollection: BodyCollection);
23
+ constructor(locale: Locale, options: {
24
+ bodyCollection: BodyCollection;
25
+ searchInputVisibleFrom?: number;
26
+ });
24
27
  /**
25
28
  * @inheritDoc
26
29
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5a6694=_0x364d;(function(_0x421c39,_0x5ccf40){const _0x31f2d8=_0x364d,_0x313e7e=_0x421c39();while(!![]){try{const _0x5ef059=parseInt(_0x31f2d8(0x1b0))/0x1+parseInt(_0x31f2d8(0x175))/0x2*(parseInt(_0x31f2d8(0x1b9))/0x3)+parseInt(_0x31f2d8(0x1c3))/0x4*(-parseInt(_0x31f2d8(0x1f6))/0x5)+-parseInt(_0x31f2d8(0x19c))/0x6*(-parseInt(_0x31f2d8(0x1a7))/0x7)+-parseInt(_0x31f2d8(0x177))/0x8+-parseInt(_0x31f2d8(0x1d0))/0x9+-parseInt(_0x31f2d8(0x1ee))/0xa;if(_0x5ef059===_0x5ccf40)break;else _0x313e7e['push'](_0x313e7e['shift']());}catch(_0x1e63e9){_0x313e7e['push'](_0x313e7e['shift']());}}}(_0x4d8e,0xecf87));import{BalloonPanelView as _0x52eb9f,ButtonView as _0x301170,clickOutsideHandler as _0x44e341,FileDialogButtonView as _0x39892f,IconView as _0x30333b,View as _0x464d1e}from'ckeditor5/src/ui.js';function _0x364d(_0x313c69,_0x3b91da){const _0x4d8ec6=_0x4d8e();return _0x364d=function(_0x364d50,_0x45c74c){_0x364d50=_0x364d50-0x16d;let _0x1d052d=_0x4d8ec6[_0x364d50];return _0x1d052d;},_0x364d(_0x313c69,_0x3b91da);}import{IconBrowseFiles as _0x1a5789,IconDocument as _0x5e8ae3,IconDocumentOutline as _0x3dba5a,IconDropdownArrow as _0x40f7b3,IconLink as _0x444830,IconPaperClip as _0x4c1a08}from'@ckeditor/ckeditor5-icons';function _0x4d8e(){const _0x58eb3c=['AI_CHAT_CONTEXT_FILE_LABEL','pin','showUrlBalloonPanel','execute','AI_CHAT_CONTEXT_URL_LABEL','ck-ai-chat-context-controls__url-balloon-panel','closeSourceResourceBalloon','_createBalloonButton','_setBalloonPanelContent','_resourcesBalloonView','document','type','_createUrlBalloonPanelView','southArrowNorthEast','6684520VVuRgC','northArrowSouthWest','setConversationContext','setContainerElement','add','isLoading','hideAddContextBalloonPanel','_createArrowView','1545ArEOxu','conversation','render','_setAddContextButtonEnabled','_showSourceResourcesBalloon','bodyCollection','urls','label','addDocumentToContext','ck-ai-chat-controls-button','_setupTemplate','_urlBalloonPanelView','body','arrowView','1233868eNyLou','_urlInputView','8168264MpoRuo','_setupUrlBalloonClickOutsideHandler','ck-ai-chat-context-controls__balloon-button','show','remove','_handleUrlSubmit','_handleAddContextButtonClick','ck-reset_all-excluded','submitUrl','enabled','source','addContextItem','_setupAddContextBalloonClickOutsideHandler','clear','balloonView','destroy','addResourceToContext','buttonView','populateSourceResourceBalloon','sources','ck-ai-chat','cancel','clearConversationContextItems','northArrowSouthEast','menuitem','_toggleAddContextBalloon','showSourceResourcesBalloon','updateResourceState','closest','ck-ai-chat-context-controls__add-context-button','ck-ai-chat-context-controls__balloon-button-source','refreshBalloon','extendTemplate','files','southArrowNorthWest','element','isOn','12DVvngT','ck-ai-chat-context-controls__pending-contexts','overflowChips','isVisible','_createContextButton','bind','setAddContextOptions','_createResourcesBalloonView','clearCurrentContextItems','_addContextToCollection','_conversationContextsChips','6754615fQkNKQ','southArrowNorth','addUrlToContext','find','icon','_addContextBalloonConfig','_getLimiterElement','addFileToContext','removeContextItem','523428GIvABk','current','ck-ai-chat-controls_context_show-more-button','set','_setupAllBalloonClickOutsideHandlers','_createBaseBalloonPanel','isAnyResourceBalloonVisible','defaultPositions','hideUrlBalloonPanel','3kMOZAk','done','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','hide','__arrow','_overflowManager','removeContextItemChip','ck-ai-chat-context-controls__add-context-balloon-panel','_addUrlContent','isHidden','316ygXeRp','setContextItemLoading','isEnabled','loadSourceResources','_currentContextsChips','addContextButtonView','setTemplate','createCollection','isReadOnly','ck-ai-chat-context-controls__show-more-balloon-panel','tooltip','_bindEventHandlers','focus','3471525knyTHl','AI_CHAT_CONTEXT_ADD_CONTEXT','northArrowSouth','ck-ai-chat-context-chips-wrapper-balloon','locale','div','fire','_createAddContextButtonView','_removeContextFromCollection','_createAddContextBalloonPanelView','_addContextBalloonPanelView','children','showAddContextBalloonPanel','ck-ai-chat-context-controls','content','reorganizeChips'];_0x4d8e=function(){return _0x58eb3c;};return _0x4d8e();}import{AIChatContextItemButtonView as _0x30086b}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x1429ff}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x167240}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x2928ca}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x3edc12}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x5a6694(0x16f),_0x5a6694(0x1ae),_0x5a6694(0x1a9),_0x5a6694(0x187),_0x5a6694(0x1af),_0x5a6694(0x1c6)];const Ao=_0x5a6694(0x1dd),ko=_0x5a6694(0x19d),Eo=_0x5a6694(0x1c0),vo=_0x5a6694(0x194),go=_0x5a6694(0x1e5),Vo=_0x5a6694(0x179),fo=_0x5a6694(0x195),Io=_0x5a6694(0x170),Po=_0x5a6694(0x1d3),Ro=_0x5a6694(0x1b2),Uo=_0x5a6694(0x1cc),Lo=_0x5a6694(0x18b),No=[_0x52eb9f[_0x5a6694(0x1b7)][_0x5a6694(0x1ef)],_0x52eb9f[_0x5a6694(0x1b7)][_0x5a6694(0x1d2)],_0x52eb9f[_0x5a6694(0x1b7)][_0x5a6694(0x18e)],_0x52eb9f[_0x5a6694(0x1b7)][_0x5a6694(0x199)],_0x52eb9f[_0x5a6694(0x1b7)][_0x5a6694(0x1a8)],_0x52eb9f[_0x5a6694(0x1b7)][_0x5a6694(0x1ed)]];export class AIChatContextPanelView extends _0x464d1e{[_0x5a6694(0x1c8)];[_0x5a6694(0x1c7)]=this[_0x5a6694(0x1ca)]();[_0x5a6694(0x1a6)]=this[_0x5a6694(0x1ca)]();[_0x5a6694(0x1be)];[_0x5a6694(0x1da)];[_0x5a6694(0x172)];[_0x5a6694(0x176)];[_0x5a6694(0x1e9)];[_0x5a6694(0x1ac)];[_0x5a6694(0x1fb)];constructor(_0x4d878e,_0x506dd0){const _0xf8694c=_0x5a6694;super(_0x4d878e),this[_0xf8694c(0x1fb)]=_0x506dd0,this[_0xf8694c(0x1c7)]=this[_0xf8694c(0x1ca)](),this[_0xf8694c(0x1a6)]=this[_0xf8694c(0x1ca)](),this[_0xf8694c(0x1c8)]=this[_0xf8694c(0x1d7)](_0x4d878e),this[_0xf8694c(0x1da)]=this[_0xf8694c(0x1d9)](_0x4d878e),this[_0xf8694c(0x172)]=this[_0xf8694c(0x1ec)](_0x4d878e),this[_0xf8694c(0x1e9)]=this[_0xf8694c(0x1a3)](_0x4d878e,_0x506dd0);const _0x2dfdd0={'cssClasses':{'showMoreButton':Ro,'showMoreBalloon':Uo,'overflowContainer':Po,'controlsButton':Io}};this[_0xf8694c(0x1be)]=new _0x167240(_0x4d878e,this[_0xf8694c(0x1c7)],_0x2dfdd0,this[_0xf8694c(0x1fb)],this),this[_0xf8694c(0x1ac)]={'buttonView':this[_0xf8694c(0x1c8)],'balloonView':this[_0xf8694c(0x1da)],'hideMethod':this[_0xf8694c(0x1f4)][_0xf8694c(0x1a1)](this),'showMethod':this[_0xf8694c(0x1dc)][_0xf8694c(0x1a1)](this)},this[_0xf8694c(0x171)](),this[_0xf8694c(0x1ce)]();}[_0x5a6694(0x1f8)](){const _0x5c7e85=_0x5a6694;super[_0x5c7e85(0x1f8)](),this[_0x5c7e85(0x1b4)](),this[_0x5c7e85(0x1be)][_0x5c7e85(0x1f1)](this[_0x5c7e85(0x19a)]),this[_0x5c7e85(0x1be)][_0x5c7e85(0x1df)]();}[_0x5a6694(0x186)](){const _0x3e25b6=_0x5a6694;super[_0x3e25b6(0x186)](),this[_0x3e25b6(0x1be)][_0x3e25b6(0x186)](),this[_0x3e25b6(0x1e9)][_0x3e25b6(0x186)]();}[_0x5a6694(0x182)](_0x42a34e,_0x32cb56){const _0x3398a7=_0x5a6694,_0x1c86b1=this[_0x3398a7(0x1a0)](_0x42a34e,_0x3398a7(0x1b1),!0x0,_0x32cb56);this[_0x3398a7(0x1a5)](_0x1c86b1,this[_0x3398a7(0x1c7)]),this[_0x3398a7(0x1be)][_0x3398a7(0x1df)]();}[_0x5a6694(0x1af)](_0x538013){const _0x2b3538=_0x5a6694;this[_0x2b3538(0x1d8)](_0x538013,this[_0x2b3538(0x1c7)]),this[_0x2b3538(0x1d8)](_0x538013,this[_0x2b3538(0x1be)][_0x2b3538(0x19e)]),this[_0x2b3538(0x1be)][_0x2b3538(0x1df)]();}[_0x5a6694(0x1c4)](_0x2764e8,_0x8b84e4){const _0x41c2f0=_0x5a6694;let _0x2ee65f=this[_0x41c2f0(0x1c7)][_0x41c2f0(0x1aa)](_0x20987f=>_0x20987f['id']===_0x2764e8);_0x2ee65f||(_0x2ee65f=this[_0x41c2f0(0x1be)][_0x41c2f0(0x19e)][_0x41c2f0(0x1aa)](_0x4a5e38=>_0x4a5e38['id']===_0x2764e8)),_0x2ee65f&&(_0x2ee65f[_0x41c2f0(0x1f3)]=_0x8b84e4);}[_0x5a6694(0x1f0)](_0x41cd08){const _0x3ab172=_0x5a6694;this[_0x3ab172(0x1a6)][_0x3ab172(0x184)]();for(const _0x5e7ae1 of _0x41cd08){const _0x91301f=this[_0x3ab172(0x1a0)](_0x5e7ae1,_0x3ab172(0x1f7),!0x1,!0x1);this[_0x3ab172(0x1a5)](_0x91301f,this[_0x3ab172(0x1a6)]);}}[_0x5a6694(0x1a4)](){const _0x797a58=_0x5a6694;this[_0x797a58(0x1c7)][_0x797a58(0x184)](),this[_0x797a58(0x1be)][_0x797a58(0x184)]();}[_0x5a6694(0x18d)](){const _0x1f0c80=_0x5a6694;this[_0x1f0c80(0x1a6)][_0x1f0c80(0x184)]();}[_0x5a6694(0x192)](_0x33bbf6,_0x212489,_0x58b8a9){const _0x2726f1=_0x5a6694;this[_0x2726f1(0x1e9)][_0x2726f1(0x192)](_0x33bbf6,_0x212489,_0x58b8a9);}[_0x5a6694(0x1f4)](){const _0x1e0d5e=_0x5a6694;this[_0x1e0d5e(0x190)](!0x1);}[_0x5a6694(0x1dc)](){const _0x3abb33=_0x5a6694;this[_0x3abb33(0x190)](!0x0);}[_0x5a6694(0x1b8)](){const _0x17c3e5=_0x5a6694;this[_0x17c3e5(0x172)][_0x17c3e5(0x1bc)](),this[_0x17c3e5(0x1c8)][_0x17c3e5(0x19b)]=!0x1,this[_0x17c3e5(0x176)]&&this[_0x17c3e5(0x176)][_0x17c3e5(0x184)]();}[_0x5a6694(0x1e2)](){const _0x21fd46=_0x5a6694;this[_0x21fd46(0x172)][_0x21fd46(0x17a)](),this[_0x21fd46(0x1c8)][_0x21fd46(0x19b)]=!0x0;}[_0x5a6694(0x1fa)](_0x5be12e){const _0x1d6bfc=_0x5a6694;this[_0x1d6bfc(0x1e9)][_0x1d6bfc(0x191)](_0x5be12e),this[_0x1d6bfc(0x1c8)][_0x1d6bfc(0x19b)]=!0x0;}[_0x5a6694(0x189)](_0x3e765b,_0x67785b,_0x5d6d87,_0xcfd817){const _0x34ad48=_0x5a6694;this[_0x34ad48(0x1e9)][_0x34ad48(0x189)](_0x3e765b,_0x5d6d87,_0xcfd817);}[_0x5a6694(0x1e6)](_0x51e827){const _0xf582ae=_0x5a6694;this[_0xf582ae(0x1e9)][_0xf582ae(0x1e6)](_0x51e827),this[_0xf582ae(0x1c8)][_0xf582ae(0x19b)]=!0x1;}[_0x5a6694(0x1a2)](_0x2cead1){const _0x525992=_0x5a6694;this[_0x525992(0x1e8)](this[_0x525992(0x1da)],this[_0x525992(0x1d4)],_0x2cead1),this[_0x525992(0x1f9)](_0x2cead1);}[_0x5a6694(0x1f9)](_0xa76526){const _0x547da7=_0x5a6694,_0xee6510=!_0xa76526[_0x547da7(0x1ea)][_0x547da7(0x1c2)]&&_0xa76526[_0x547da7(0x1ea)][_0x547da7(0x180)],_0x1fb1ec=_0xa76526[_0x547da7(0x16d)][_0x547da7(0x180)],_0x375bd8=_0xa76526[_0x547da7(0x198)][_0x547da7(0x180)];this[_0x547da7(0x1c8)][_0x547da7(0x1c5)]=_0xee6510||_0x1fb1ec||_0x375bd8;}[_0x5a6694(0x171)](){const _0x313a8d=_0x5a6694;this[_0x313a8d(0x1c9)]({'tag':_0x313a8d(0x1d5),'attributes':{'class':[Ao,_0x313a8d(0x17e)]},'children':[{'tag':_0x313a8d(0x1d5),'attributes':{'class':ko},'children':this[_0x313a8d(0x1c7)]}]});}[_0x5a6694(0x1ce)](){const _0x343e08=_0x5a6694;this[_0x343e08(0x1c8)]['on'](_0x343e08(0x1e3),()=>{const _0x1079a7=_0x343e08;this[_0x1079a7(0x17d)]();});}[_0x5a6694(0x1d7)](_0x2da3d3){const _0x5a40a9=_0x5a6694,_0xe3751b=new _0x301170(_0x2da3d3);return _0xe3751b[_0x5a40a9(0x1b3)]({'label':_0x2928ca(_0x2da3d3,_0x5a40a9(0x1d1)),'class':Io+'\x20'+vo,'icon':_0x4c1a08,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0xe3751b;}[_0x5a6694(0x1d9)](_0x1e694f){const _0x5e96a1=_0x5a6694;return this[_0x5e96a1(0x1b5)](_0x1e694f,Eo);}[_0x5a6694(0x1ec)](_0xa45ca3){const _0x577d1e=_0x5a6694,_0x19007b=this[_0x577d1e(0x1b5)](_0xa45ca3,go);return this[_0x577d1e(0x1c1)](_0x19007b,_0xa45ca3),_0x19007b;}[_0x5a6694(0x1a3)](_0x529727,_0x2acdb4){const _0x353d1a=_0x5a6694;return new _0x3edc12(_0x529727,_0x2acdb4,{'onBackToContext':()=>{const _0x113de2=_0x364d;this[_0x113de2(0x1dc)](),this[_0x113de2(0x1da)][_0x113de2(0x1e1)]({'target':this[_0x113de2(0x1c8)][_0x113de2(0x19a)],'limiter':this[_0x113de2(0x1ad)](),'positions':No});},'onResourceSelected':(_0x4c05e6,_0x1a7cea)=>{const _0x15e0d7=_0x364d;this[_0x15e0d7(0x1d6)](_0x15e0d7(0x187),{'source':_0x4c05e6,'resource':_0x1a7cea});},'onLoadSourceResources':_0x407675=>{const _0x34b2e8=_0x364d;this[_0x34b2e8(0x1d6)](_0x34b2e8(0x1c6),_0x407675);},'onBalloonClosed':()=>{const _0x21f90a=_0x364d;this[_0x21f90a(0x1c8)][_0x21f90a(0x19b)]=!0x1;},'getLimiterElement':()=>this[_0x353d1a(0x1ad)](),'getTargetElement':()=>this[_0x353d1a(0x1c8)][_0x353d1a(0x19a)]});}[_0x5a6694(0x1ad)](){const _0x2699a4=_0x5a6694;return this[_0x2699a4(0x19a)]?.[_0x2699a4(0x193)]('.'+Lo)||document[_0x2699a4(0x173)];}[_0x5a6694(0x1b5)](_0x208e99,_0x523d5b){const _0x387e8d=_0x5a6694,_0x41d00a=new _0x52eb9f(_0x208e99);return _0x41d00a[_0x387e8d(0x197)]({'attributes':{'class':_0x523d5b}}),this[_0x387e8d(0x1fb)][_0x387e8d(0x1f2)](_0x41d00a),_0x41d00a;}[_0x5a6694(0x1e8)](_0x428303,_0x4dcc2b,_0x3ff91e){const _0x5ddc46=_0x5a6694;if(_0x428303[_0x5ddc46(0x1de)][_0x5ddc46(0x184)](),!_0x3ff91e[_0x5ddc46(0x1ea)][_0x5ddc46(0x1c2)]&&_0x3ff91e[_0x5ddc46(0x1ea)][_0x5ddc46(0x180)]){const _0x8d039f=this[_0x5ddc46(0x1e7)](_0x4dcc2b,{'label':_0x2928ca(_0x4dcc2b,_0x5ddc46(0x1bb)),'icon':_0x5e8ae3});_0x8d039f['on'](_0x5ddc46(0x1e3),()=>{const _0x5726e7=_0x5ddc46;this[_0x5726e7(0x1d6)](_0x5726e7(0x16f)),this[_0x5726e7(0x1f4)]();}),_0x428303[_0x5ddc46(0x1de)][_0x5ddc46(0x1f2)](_0x8d039f);}if(_0x3ff91e[_0x5ddc46(0x16d)][_0x5ddc46(0x180)]){const _0x549c62=this[_0x5ddc46(0x1e7)](_0x4dcc2b,{'label':_0x2928ca(_0x4dcc2b,_0x5ddc46(0x1e4)),'icon':_0x444830});_0x549c62['on'](_0x5ddc46(0x1e3),()=>{const _0x129887=_0x5ddc46;this[_0x129887(0x1f4)](),this[_0x129887(0x1e2)](),this[_0x129887(0x172)][_0x129887(0x1e1)]({'target':this[_0x129887(0x1c8)][_0x129887(0x19a)],'limiter':this[_0x129887(0x1ad)](),'positions':No}),this[_0x129887(0x176)][_0x129887(0x1cf)]();}),_0x428303[_0x5ddc46(0x1de)][_0x5ddc46(0x1f2)](_0x549c62);}if(_0x3ff91e[_0x5ddc46(0x198)][_0x5ddc46(0x180)]){const _0x154d8b=new _0x39892f(_0x4dcc2b);_0x154d8b[_0x5ddc46(0x1b3)]({'label':_0x2928ca(_0x4dcc2b,_0x5ddc46(0x1e0)),'icon':_0x1a5789,'withText':!0x0,'tooltip':!0x0,'class':Vo,'allowMultipleFiles':!0x0}),_0x154d8b['on'](_0x5ddc46(0x1ba),(_0x935892,_0x83fc3d)=>{const _0x2fd558=_0x5ddc46;this[_0x2fd558(0x1d6)](_0x2fd558(0x1ae),_0x83fc3d),this[_0x2fd558(0x1f4)]();}),_0x154d8b[_0x5ddc46(0x1cd)]=!0x0,_0x428303[_0x5ddc46(0x1de)][_0x5ddc46(0x1f2)](_0x154d8b);}for(const _0x2952ca of _0x3ff91e[_0x5ddc46(0x18a)]){const _0x3d0545=this[_0x5ddc46(0x1e7)](_0x4dcc2b,{'label':_0x2952ca[_0x5ddc46(0x16e)],'icon':_0x2952ca[_0x5ddc46(0x1ab)]||_0x3dba5a,'type':_0x5ddc46(0x181)});_0x428303[_0x5ddc46(0x1de)][_0x5ddc46(0x1f2)](_0x3d0545),_0x3d0545['on'](_0x5ddc46(0x1e3),()=>{const _0xa26db8=_0x5ddc46;this[_0xa26db8(0x1f4)](),this[_0xa26db8(0x1fa)](_0x2952ca);});}}[_0x5a6694(0x1c1)](_0x2ecd64,_0x4b225f){const _0x322339=_0x5a6694;this[_0x322339(0x176)]=new _0x1429ff(_0x4b225f),this[_0x322339(0x176)]['on'](_0x322339(0x17f),(_0x465ff6,_0x209311)=>{const _0x38cdd5=_0x322339;this[_0x38cdd5(0x17c)](_0x209311);}),this[_0x322339(0x176)]['on'](_0x322339(0x18c),()=>{const _0x3aebab=_0x322339;this[_0x3aebab(0x1b8)](),this[_0x3aebab(0x1dc)](),this[_0x3aebab(0x1da)][_0x3aebab(0x1e1)]({'target':this[_0x3aebab(0x1c8)][_0x3aebab(0x19a)],'limiter':this[_0x3aebab(0x1ad)](),'positions':No});}),this[_0x322339(0x176)]['on'](_0x322339(0x196),()=>{const _0x517f8a=_0x322339;this[_0x517f8a(0x172)][_0x517f8a(0x19f)]&&this[_0x517f8a(0x172)][_0x517f8a(0x1e1)]({'target':this[_0x517f8a(0x1c8)][_0x517f8a(0x19a)],'limiter':this[_0x517f8a(0x1ad)](),'positions':No});}),_0x2ecd64[_0x322339(0x1de)][_0x322339(0x1f2)](this[_0x322339(0x176)]);}[_0x5a6694(0x1e7)](_0x3f694e,_0x2070f2){const _0x550f93=_0x5a6694,_0x28bf1f=_0x550f93(0x181)===_0x2070f2[_0x550f93(0x1eb)]?new SourcesBalloonButtonView(_0x3f694e):new _0x301170(_0x3f694e);return _0x28bf1f[_0x550f93(0x1b3)]({'label':_0x2070f2[_0x550f93(0x16e)],'icon':_0x2070f2[_0x550f93(0x1ab)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Vo}),_0x28bf1f;}[_0x5a6694(0x1b4)](){const _0x8cce07=_0x5a6694;this[_0x8cce07(0x183)](),this[_0x8cce07(0x178)]();}[_0x5a6694(0x178)](){const _0x2a2058=_0x5a6694;_0x44e341({'emitter':this[_0x2a2058(0x172)],'contextElements':[this[_0x2a2058(0x172)][_0x2a2058(0x19a)]],'callback':()=>{const _0x31da2c=_0x2a2058;this[_0x31da2c(0x1b8)]();},'activator':()=>this[_0x2a2058(0x172)][_0x2a2058(0x19f)]});}[_0x5a6694(0x190)](_0x36799f){const _0x1e0af4=_0x5a6694,_0x565125=this[_0x1e0af4(0x1ac)];_0x565125[_0x1e0af4(0x188)][_0x1e0af4(0x19b)]=_0x36799f,_0x36799f?_0x565125[_0x1e0af4(0x185)][_0x1e0af4(0x17a)]():_0x565125[_0x1e0af4(0x185)][_0x1e0af4(0x1bc)]();}[_0x5a6694(0x183)](){const _0x56e09b=_0x5a6694,{balloonView:_0x29bc56,buttonView:_0x118319,hideMethod:_0x1a65f2}=this[_0x56e09b(0x1ac)];_0x44e341({'emitter':_0x29bc56,'contextElements':[_0x29bc56[_0x56e09b(0x19a)],_0x118319[_0x56e09b(0x19a)]],'callback':()=>{_0x1a65f2();},'activator':()=>_0x118319[_0x56e09b(0x19b)]&&!this[_0x56e09b(0x172)][_0x56e09b(0x19f)]&&!this[_0x56e09b(0x1e9)][_0x56e09b(0x1b6)]()});}[_0x5a6694(0x1a0)](_0x1973fe,_0x31d567,_0x558fc9=!0x1,_0x396b32=!0x1){const _0x3f0ec0=_0x5a6694,_0x588a9a=_0x3f0ec0(0x1f7)===_0x31d567||!0x0===_0x1973fe[_0x3f0ec0(0x1cb)],_0xfb8c28=new _0x30086b(this[_0x3f0ec0(0x1d4)],_0x1973fe,_0x588a9a,_0x558fc9,_0x396b32);return _0x588a9a||_0xfb8c28['on'](_0x3f0ec0(0x1bf),()=>{const _0x32ce99=_0x3f0ec0;this[_0x32ce99(0x1d6)](_0x32ce99(0x1af),_0xfb8c28['id']);}),_0xfb8c28;}[_0x5a6694(0x1a5)](_0x2aac3a,_0x31843f){const _0x5e4ced=_0x5a6694;_0x31843f[_0x5e4ced(0x1f2)](_0x2aac3a,0x0);}[_0x5a6694(0x1d8)](_0x1c6260,_0x230135){const _0x2a6b5f=_0x5a6694,_0xd3e242=_0x230135[_0x2a6b5f(0x1aa)](_0x5d8826=>_0x5d8826['id']===_0x1c6260);_0xd3e242&&_0x230135[_0x2a6b5f(0x17b)](_0xd3e242);}[_0x5a6694(0x17d)](){const _0x207670=_0x5a6694;this[_0x207670(0x1c8)][_0x207670(0x19b)]?this[_0x207670(0x1f4)]():(this[_0x207670(0x1dc)](),this[_0x207670(0x1da)][_0x207670(0x1e1)]({'target':this[_0x207670(0x1c8)][_0x207670(0x19a)],'limiter':this[_0x207670(0x1ad)](),'positions':No}));}[_0x5a6694(0x17c)](_0xbce947){const _0x24a6d6=_0x5a6694;this[_0x24a6d6(0x176)][_0x24a6d6(0x184)](),this[_0x24a6d6(0x1b8)](),this[_0x24a6d6(0x1d6)](_0x24a6d6(0x1a9),_0xbce947);}}export class SourcesBalloonButtonView extends _0x301170{[_0x5a6694(0x174)];constructor(_0x2e51f3){const _0xb39e9e=_0x5a6694;super(_0x2e51f3),this[_0xb39e9e(0x1b3)]({'withText':!0x0,'role':_0xb39e9e(0x18f)}),this[_0xb39e9e(0x174)]=this[_0xb39e9e(0x1f5)](),this[_0xb39e9e(0x197)]({'attributes':{'class':[fo]}});}[_0x5a6694(0x1f8)](){const _0x4dd4be=_0x5a6694;super[_0x4dd4be(0x1f8)](),this[_0x4dd4be(0x1db)][_0x4dd4be(0x1f2)](this[_0x4dd4be(0x174)]);}[_0x5a6694(0x1f5)](){const _0x4b38c2=_0x5a6694,_0x36c202=new _0x30333b();return _0x36c202[_0x4b38c2(0x1de)]=_0x40f7b3,_0x36c202[_0x4b38c2(0x197)]({'attributes':{'class':fo+_0x4b38c2(0x1bd)}}),_0x36c202;}}
23
+ const _0x18e543=_0x4e29;(function(_0x447322,_0x2acc08){const _0x2eaefe=_0x4e29,_0x58a341=_0x447322();while(!![]){try{const _0x299c8a=-parseInt(_0x2eaefe(0x98))/0x1+-parseInt(_0x2eaefe(0xde))/0x2*(-parseInt(_0x2eaefe(0xb9))/0x3)+parseInt(_0x2eaefe(0x9d))/0x4*(-parseInt(_0x2eaefe(0xc6))/0x5)+-parseInt(_0x2eaefe(0x77))/0x6*(parseInt(_0x2eaefe(0xef))/0x7)+parseInt(_0x2eaefe(0x6e))/0x8+parseInt(_0x2eaefe(0xa0))/0x9*(-parseInt(_0x2eaefe(0x82))/0xa)+parseInt(_0x2eaefe(0xac))/0xb;if(_0x299c8a===_0x2acc08)break;else _0x58a341['push'](_0x58a341['shift']());}catch(_0x4b3676){_0x58a341['push'](_0x58a341['shift']());}}}(_0x4950,0xb3645));function _0x4e29(_0x53452b,_0x3db647){const _0x495086=_0x4950();return _0x4e29=function(_0x4e29c4,_0x522f28){_0x4e29c4=_0x4e29c4-0x65;let _0x2dca7a=_0x495086[_0x4e29c4];return _0x2dca7a;},_0x4e29(_0x53452b,_0x3db647);}import{BalloonPanelView as _0x33f2c7,ButtonView as _0x1cb146,clickOutsideHandler as _0x3a88fc,FileDialogButtonView as _0x143f99,IconView as _0x28a6ad,View as _0x3ed62b}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x11ec26,IconDocument as _0x1ce4bc,IconDocumentOutline as _0x30ee8d,IconDropdownArrow as _0x55a1dd,IconLink as _0x40e864,IconPaperClip as _0xd794e7}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0xd6e288}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x115e3e}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x54e20c}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x44b1f2}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x38255c}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x18e543(0xd0),_0x18e543(0xa4),_0x18e543(0x7e),_0x18e543(0x65),_0x18e543(0xe6),_0x18e543(0x81)];const Eo=_0x18e543(0x6a),vo=_0x18e543(0x6c),Vo=_0x18e543(0xdd),Io=_0x18e543(0xce),Po=_0x18e543(0x9b),Ro=_0x18e543(0xa7),Uo=_0x18e543(0xab),Lo=_0x18e543(0x90),No=_0x18e543(0x83),Oo=_0x18e543(0x73),Mo=_0x18e543(0xf5),Ho=_0x18e543(0x86),jo=[_0x33f2c7[_0x18e543(0xaa)][_0x18e543(0xd9)],_0x33f2c7[_0x18e543(0xaa)][_0x18e543(0xc0)],_0x33f2c7[_0x18e543(0xaa)][_0x18e543(0xd6)],_0x33f2c7[_0x18e543(0xaa)][_0x18e543(0x71)],_0x33f2c7[_0x18e543(0xaa)][_0x18e543(0xec)],_0x33f2c7[_0x18e543(0xaa)][_0x18e543(0xa5)]];export class AIChatContextPanelView extends _0x3ed62b{[_0x18e543(0xa8)];[_0x18e543(0xda)]=this[_0x18e543(0x9e)]();[_0x18e543(0x67)]=this[_0x18e543(0x9e)]();[_0x18e543(0xd2)];[_0x18e543(0xe3)];[_0x18e543(0xb3)];[_0x18e543(0x80)];[_0x18e543(0x79)];[_0x18e543(0xbf)];[_0x18e543(0xba)];constructor(_0x1513fb,_0x2fba24){const _0x3489d5=_0x18e543;super(_0x1513fb),this[_0x3489d5(0xba)]=_0x2fba24[_0x3489d5(0xba)],this[_0x3489d5(0xda)]=this[_0x3489d5(0x9e)](),this[_0x3489d5(0x67)]=this[_0x3489d5(0x9e)](),this[_0x3489d5(0xa8)]=this[_0x3489d5(0xea)](_0x1513fb),this[_0x3489d5(0xe3)]=this[_0x3489d5(0x6d)](_0x1513fb),this[_0x3489d5(0xb3)]=this[_0x3489d5(0x9c)](_0x1513fb),this[_0x3489d5(0x79)]=this[_0x3489d5(0xdb)](_0x1513fb,_0x2fba24);const _0x2b2734={'cssClasses':{'showMoreButton':Oo,'showMoreBalloon':Mo,'overflowContainer':No,'controlsButton':Lo}};this[_0x3489d5(0xd2)]=new _0x54e20c(_0x1513fb,this[_0x3489d5(0xda)],_0x2b2734,this[_0x3489d5(0xba)],this),this[_0x3489d5(0xbf)]={'buttonView':this[_0x3489d5(0xa8)],'balloonView':this[_0x3489d5(0xe3)],'hideMethod':this[_0x3489d5(0xb2)][_0x3489d5(0x7b)](this),'showMethod':this[_0x3489d5(0xf2)][_0x3489d5(0x7b)](this)},this[_0x3489d5(0x6f)](),this[_0x3489d5(0x72)]();}[_0x18e543(0xb6)](){const _0x4db324=_0x18e543;super[_0x4db324(0xb6)](),this[_0x4db324(0xe0)](),this[_0x4db324(0xd2)][_0x4db324(0xe2)](this[_0x4db324(0xc5)]),this[_0x4db324(0xd2)][_0x4db324(0xbe)]();}[_0x18e543(0xe5)](){const _0x1a6c0e=_0x18e543;super[_0x1a6c0e(0xe5)](),this[_0x1a6c0e(0xd2)][_0x1a6c0e(0xe5)](),this[_0x1a6c0e(0x79)][_0x1a6c0e(0xe5)]();}[_0x18e543(0x93)](_0x18c078,_0x1869dd){const _0x464a69=_0x18e543,_0x2252b7=this[_0x464a69(0xa9)](_0x18c078,_0x464a69(0x92),!0x0,_0x1869dd);this[_0x464a69(0xb8)](_0x2252b7,this[_0x464a69(0xda)]),this[_0x464a69(0xd2)][_0x464a69(0xbe)]();}[_0x18e543(0xe6)](_0x23eccc){const _0x3a993f=_0x18e543;this[_0x3a993f(0x6b)](_0x23eccc,this[_0x3a993f(0xda)]),this[_0x3a993f(0x6b)](_0x23eccc,this[_0x3a993f(0xd2)][_0x3a993f(0xc8)]),this[_0x3a993f(0xd2)][_0x3a993f(0xbe)]();}[_0x18e543(0xe4)](_0x51774f,_0x55fb55){const _0x564f14=_0x18e543;let _0x22f06c=this[_0x564f14(0xda)][_0x564f14(0x75)](_0x3a1456=>_0x3a1456['id']===_0x51774f);_0x22f06c||(_0x22f06c=this[_0x564f14(0xd2)][_0x564f14(0xc8)][_0x564f14(0x75)](_0x406164=>_0x406164['id']===_0x51774f)),_0x22f06c&&(_0x22f06c[_0x564f14(0x8a)]=_0x55fb55);}[_0x18e543(0x8d)](_0x7b62bb){const _0x2519f2=_0x18e543;this[_0x2519f2(0x67)][_0x2519f2(0xe8)]();for(const _0x3b815e of _0x7b62bb){const _0x1a3efb=this[_0x2519f2(0xa9)](_0x3b815e,_0x2519f2(0x95),!0x1,!0x1);this[_0x2519f2(0xb8)](_0x1a3efb,this[_0x2519f2(0x67)]);}}[_0x18e543(0xed)](){const _0x330fa9=_0x18e543;this[_0x330fa9(0xda)][_0x330fa9(0xe8)](),this[_0x330fa9(0xd2)][_0x330fa9(0xe8)]();}[_0x18e543(0xb4)](){const _0x2fdbd1=_0x18e543;this[_0x2fdbd1(0x67)][_0x2fdbd1(0xe8)]();}[_0x18e543(0x9a)](_0xc9437e,_0x3c9e77,_0x51d843){const _0x26092d=_0x18e543;this[_0x26092d(0x79)][_0x26092d(0x9a)](_0xc9437e,_0x3c9e77,_0x51d843);}[_0x18e543(0xb2)](){const _0x155d78=_0x18e543;this[_0x155d78(0x7f)](!0x1);}[_0x18e543(0xf2)](){const _0x3befa5=_0x18e543;this[_0x3befa5(0x7f)](!0x0);}[_0x18e543(0xb1)](){const _0x1bfa1e=_0x18e543;this[_0x1bfa1e(0xb3)][_0x1bfa1e(0x97)](),this[_0x1bfa1e(0xa8)][_0x1bfa1e(0xeb)]=!0x1,this[_0x1bfa1e(0x80)]&&this[_0x1bfa1e(0x80)][_0x1bfa1e(0xe8)]();}[_0x18e543(0x89)](){const _0x441e5d=_0x18e543;this[_0x441e5d(0xb3)][_0x441e5d(0x7a)](),this[_0x441e5d(0xa8)][_0x441e5d(0xeb)]=!0x0;}[_0x18e543(0x7d)](_0x3c50d3){const _0x1023de=_0x18e543;this[_0x1023de(0x79)][_0x1023de(0x87)](_0x3c50d3),this[_0x1023de(0xa8)][_0x1023de(0xeb)]=!0x0;}[_0x18e543(0x88)](_0x4ae0a5,_0x232037,_0x30d991,_0x6036d5){const _0x1e8d7b=_0x18e543;this[_0x1e8d7b(0x79)][_0x1e8d7b(0x88)](_0x4ae0a5,_0x30d991,_0x6036d5);}[_0x18e543(0xaf)](_0x1f8eb7){const _0x3d6159=_0x18e543;this[_0x3d6159(0x79)][_0x3d6159(0xaf)](_0x1f8eb7),this[_0x3d6159(0xa8)][_0x3d6159(0xeb)]=!0x1;}[_0x18e543(0x76)](_0x560eae){const _0x344c8d=_0x18e543;this[_0x344c8d(0xb7)](this[_0x344c8d(0xe3)],this[_0x344c8d(0xca)],_0x560eae),this[_0x344c8d(0xa3)](_0x560eae);}[_0x18e543(0xa3)](_0xf8510d){const _0x4a566f=_0x18e543,_0x41fffc=!_0xf8510d[_0x4a566f(0x78)][_0x4a566f(0x70)]&&_0xf8510d[_0x4a566f(0x78)][_0x4a566f(0xd5)],_0x6feae4=_0xf8510d[_0x4a566f(0xf1)][_0x4a566f(0xd5)],_0x932646=_0xf8510d[_0x4a566f(0xf0)][_0x4a566f(0xd5)];this[_0x4a566f(0xa8)][_0x4a566f(0xe7)]=_0x41fffc||_0x6feae4||_0x932646;}[_0x18e543(0x6f)](){const _0x45c6e0=_0x18e543;this[_0x45c6e0(0xcd)]({'tag':_0x45c6e0(0x94),'attributes':{'class':[Eo,_0x45c6e0(0x8c)]},'children':[{'tag':_0x45c6e0(0x94),'attributes':{'class':vo},'children':this[_0x45c6e0(0xda)]}]});}[_0x18e543(0x72)](){const _0x53d376=_0x18e543;this[_0x53d376(0xa8)]['on'](_0x53d376(0xdc),()=>{const _0x5b4a79=_0x53d376;this[_0x5b4a79(0xbb)]();});}[_0x18e543(0xea)](_0x3ccad2){const _0xf9e0fd=_0x18e543,_0x17d6a8=new _0x1cb146(_0x3ccad2);return _0x17d6a8[_0xf9e0fd(0xb5)]({'label':_0x44b1f2(_0x3ccad2,_0xf9e0fd(0xc9)),'class':Lo+'\x20'+Io,'icon':_0xd794e7,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x17d6a8;}[_0x18e543(0x6d)](_0x4d152f){const _0x5235cd=_0x18e543;return this[_0x5235cd(0xad)](_0x4d152f,Vo);}[_0x18e543(0x9c)](_0x5137c9){const _0x221270=_0x18e543,_0x104d08=this[_0x221270(0xad)](_0x5137c9,Po);return this[_0x221270(0xc3)](_0x104d08,_0x5137c9),_0x104d08;}[_0x18e543(0xdb)](_0x59f607,_0x20c6d3){const _0x4ab49d=_0x18e543,_0x243487={'searchInputVisibleFrom':_0x20c6d3[_0x4ab49d(0xdf)],'onBackToContext':()=>{const _0x4958d2=_0x4ab49d;this[_0x4958d2(0xf2)](),this[_0x4958d2(0xe3)][_0x4958d2(0xa1)]({'target':this[_0x4958d2(0xa8)][_0x4958d2(0xc5)],'limiter':this[_0x4958d2(0xe9)](),'positions':jo});},'onResourceSelected':(_0x31754d,_0x2ac612)=>{const _0x5f0870=_0x4ab49d;this[_0x5f0870(0xbc)](_0x5f0870(0x65),{'source':_0x31754d,'resource':_0x2ac612});},'onLoadSourceResources':_0x1c789a=>{const _0x7c0147=_0x4ab49d;this[_0x7c0147(0xbc)](_0x7c0147(0x81),_0x1c789a);},'onBalloonClosed':()=>{const _0x316efa=_0x4ab49d;this[_0x316efa(0xa8)][_0x316efa(0xeb)]=!0x1;},'getLimiterElement':()=>this[_0x4ab49d(0xe9)](),'getTargetElement':()=>this[_0x4ab49d(0xa8)][_0x4ab49d(0xc5)]};return new _0x38255c(_0x59f607,_0x20c6d3[_0x4ab49d(0xba)],_0x243487);}[_0x18e543(0xe9)](){const _0x8fb6ee=_0x18e543;return this[_0x8fb6ee(0xc5)]?.[_0x8fb6ee(0x8b)]('.'+Ho)||document[_0x8fb6ee(0x9f)];}[_0x18e543(0xad)](_0x5de2e8,_0x2d1171){const _0x5daef3=_0x18e543,_0x559167=new _0x33f2c7(_0x5de2e8);return _0x559167[_0x5daef3(0xae)]({'attributes':{'class':_0x2d1171}}),this[_0x5daef3(0xba)][_0x5daef3(0xcf)](_0x559167),_0x559167;}[_0x18e543(0xb7)](_0x540822,_0x22ccc0,_0x39801e){const _0x47f4a4=_0x18e543;if(_0x540822[_0x47f4a4(0xc4)][_0x47f4a4(0xe8)](),!_0x39801e[_0x47f4a4(0x78)][_0x47f4a4(0x70)]&&_0x39801e[_0x47f4a4(0x78)][_0x47f4a4(0xd5)]){const _0x5aff17=this[_0x47f4a4(0x85)](_0x22ccc0,{'label':_0x44b1f2(_0x22ccc0,_0x47f4a4(0x74)),'icon':_0x1ce4bc});_0x5aff17['on'](_0x47f4a4(0xdc),()=>{const _0x17bed2=_0x47f4a4;this[_0x17bed2(0xbc)](_0x17bed2(0xd0)),this[_0x17bed2(0xb2)]();}),_0x540822[_0x47f4a4(0xc4)][_0x47f4a4(0xcf)](_0x5aff17);}if(_0x39801e[_0x47f4a4(0xf1)][_0x47f4a4(0xd5)]){const _0x360f6f=this[_0x47f4a4(0x85)](_0x22ccc0,{'label':_0x44b1f2(_0x22ccc0,_0x47f4a4(0x84)),'icon':_0x40e864});_0x360f6f['on'](_0x47f4a4(0xdc),()=>{const _0x57ca46=_0x47f4a4;this[_0x57ca46(0xb2)](),this[_0x57ca46(0x89)](),this[_0x57ca46(0xb3)][_0x57ca46(0xa1)]({'target':this[_0x57ca46(0xa8)][_0x57ca46(0xc5)],'limiter':this[_0x57ca46(0xe9)](),'positions':jo}),this[_0x57ca46(0x80)][_0x57ca46(0xc1)]();}),_0x540822[_0x47f4a4(0xc4)][_0x47f4a4(0xcf)](_0x360f6f);}if(_0x39801e[_0x47f4a4(0xf0)][_0x47f4a4(0xd5)]){const _0x3100a2=new _0x143f99(_0x22ccc0);_0x3100a2[_0x47f4a4(0xb5)]({'label':_0x44b1f2(_0x22ccc0,_0x47f4a4(0xc2)),'icon':_0x11ec26,'withText':!0x0,'tooltip':!0x0,'class':Ro,'allowMultipleFiles':!0x0}),_0x3100a2['on'](_0x47f4a4(0xb0),(_0xcd4ff1,_0x334213)=>{const _0x209c80=_0x47f4a4;this[_0x209c80(0xbc)](_0x209c80(0xa4),_0x334213),this[_0x209c80(0xb2)]();}),_0x3100a2[_0x47f4a4(0xc7)]=!0x0,_0x540822[_0x47f4a4(0xc4)][_0x47f4a4(0xcf)](_0x3100a2);}for(const _0x19687d of _0x39801e[_0x47f4a4(0xe1)]){const _0x26f565=this[_0x47f4a4(0x85)](_0x22ccc0,{'label':_0x19687d[_0x47f4a4(0x91)],'icon':_0x19687d[_0x47f4a4(0x8e)]||_0x30ee8d,'type':_0x47f4a4(0xd4)});_0x540822[_0x47f4a4(0xc4)][_0x47f4a4(0xcf)](_0x26f565),_0x26f565['on'](_0x47f4a4(0xdc),()=>{const _0x336363=_0x47f4a4;this[_0x336363(0xb2)](),this[_0x336363(0x7d)](_0x19687d);});}}[_0x18e543(0xc3)](_0x243e43,_0x39027c){const _0x5215b0=_0x18e543;this[_0x5215b0(0x80)]=new _0x115e3e(_0x39027c),this[_0x5215b0(0x80)]['on'](_0x5215b0(0xa6),(_0x2ea831,_0xa3c004)=>{const _0x4c3e0a=_0x5215b0;this[_0x4c3e0a(0xd3)](_0xa3c004);}),this[_0x5215b0(0x80)]['on'](_0x5215b0(0xd1),()=>{const _0x4e27fa=_0x5215b0;this[_0x4e27fa(0xb1)](),this[_0x4e27fa(0xf2)](),this[_0x4e27fa(0xe3)][_0x4e27fa(0xa1)]({'target':this[_0x4e27fa(0xa8)][_0x4e27fa(0xc5)],'limiter':this[_0x4e27fa(0xe9)](),'positions':jo});}),this[_0x5215b0(0x80)]['on'](_0x5215b0(0xf3),()=>{const _0x20e818=_0x5215b0;this[_0x20e818(0xb3)][_0x20e818(0x69)]&&this[_0x20e818(0xb3)][_0x20e818(0xa1)]({'target':this[_0x20e818(0xa8)][_0x20e818(0xc5)],'limiter':this[_0x20e818(0xe9)](),'positions':jo});}),_0x243e43[_0x5215b0(0xc4)][_0x5215b0(0xcf)](this[_0x5215b0(0x80)]);}[_0x18e543(0x85)](_0x22d035,_0x55bb73){const _0x15eae9=_0x18e543,_0x3bc934=_0x15eae9(0xd4)===_0x55bb73[_0x15eae9(0x99)]?new SourcesBalloonButtonView(_0x22d035):new _0x1cb146(_0x22d035);return _0x3bc934[_0x15eae9(0xb5)]({'label':_0x55bb73[_0x15eae9(0x91)],'icon':_0x55bb73[_0x15eae9(0x8e)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Ro}),_0x3bc934;}[_0x18e543(0xe0)](){const _0xd62364=_0x18e543;this[_0xd62364(0xf4)](),this[_0xd62364(0x68)]();}[_0x18e543(0x68)](){const _0x14bda5=_0x18e543;_0x3a88fc({'emitter':this[_0x14bda5(0xb3)],'contextElements':[this[_0x14bda5(0xb3)][_0x14bda5(0xc5)]],'callback':()=>{const _0xb0d9fd=_0x14bda5;this[_0xb0d9fd(0xb1)]();},'activator':()=>this[_0x14bda5(0xb3)][_0x14bda5(0x69)]});}[_0x18e543(0x7f)](_0x4d0147){const _0x58ffeb=_0x18e543,_0x13ff1f=this[_0x58ffeb(0xbf)];_0x13ff1f[_0x58ffeb(0xd7)][_0x58ffeb(0xeb)]=_0x4d0147,_0x4d0147?_0x13ff1f[_0x58ffeb(0xd8)][_0x58ffeb(0x7a)]():_0x13ff1f[_0x58ffeb(0xd8)][_0x58ffeb(0x97)]();}[_0x18e543(0xf4)](){const _0x128402=_0x18e543,{balloonView:_0x50e50d,buttonView:_0x5c07bc,hideMethod:_0x490a23}=this[_0x128402(0xbf)];_0x3a88fc({'emitter':_0x50e50d,'contextElements':[_0x50e50d[_0x128402(0xc5)],_0x5c07bc[_0x128402(0xc5)]],'callback':()=>{_0x490a23();},'activator':()=>_0x5c07bc[_0x128402(0xeb)]&&!this[_0x128402(0xb3)][_0x128402(0x69)]&&!this[_0x128402(0x79)][_0x128402(0x8f)]()});}[_0x18e543(0xa9)](_0x1d02ce,_0x2811d1,_0x2f484a=!0x1,_0x496ad0=!0x1){const _0x28fb88=_0x18e543,_0x347032=_0x28fb88(0x95)===_0x2811d1||!0x0===_0x1d02ce[_0x28fb88(0xa2)],_0x380be6=new _0xd6e288(this[_0x28fb88(0xca)],_0x1d02ce,_0x347032,_0x2f484a,_0x496ad0);return _0x347032||_0x380be6['on'](_0x28fb88(0xcc),()=>{const _0x170486=_0x28fb88;this[_0x170486(0xbc)](_0x170486(0xe6),_0x380be6['id']);}),_0x380be6;}[_0x18e543(0xb8)](_0x289636,_0x470f8e){const _0x4a7fcc=_0x18e543;_0x470f8e[_0x4a7fcc(0xcf)](_0x289636,0x0);}[_0x18e543(0x6b)](_0x16abed,_0x4192ab){const _0x3e7f02=_0x18e543,_0x184136=_0x4192ab[_0x3e7f02(0x75)](_0x369317=>_0x369317['id']===_0x16abed);_0x184136&&_0x4192ab[_0x3e7f02(0x7c)](_0x184136);}[_0x18e543(0xbb)](){const _0x342381=_0x18e543;this[_0x342381(0xa8)][_0x342381(0xeb)]?this[_0x342381(0xb2)]():(this[_0x342381(0xf2)](),this[_0x342381(0xe3)][_0x342381(0xa1)]({'target':this[_0x342381(0xa8)][_0x342381(0xc5)],'limiter':this[_0x342381(0xe9)](),'positions':jo}));}[_0x18e543(0xd3)](_0x3e2d90){const _0x2dd79c=_0x18e543;this[_0x2dd79c(0x80)][_0x2dd79c(0xe8)](),this[_0x2dd79c(0xb1)](),this[_0x2dd79c(0xbc)](_0x2dd79c(0x7e),_0x3e2d90);}}function _0x4950(){const _0x10e884=['_createContextButton','defaultPositions','ck-ai-chat-context-controls__balloon-button-source','29728523rUYMgJ','_createBaseBalloonPanel','extendTemplate','closeSourceResourceBalloon','done','hideUrlBalloonPanel','hideAddContextBalloonPanel','_urlBalloonPanelView','clearConversationContextItems','set','render','_setBalloonPanelContent','_addContextToCollection','504843oTSOpt','bodyCollection','_handleAddContextButtonClick','fire','menuitem','reorganizeChips','_addContextBalloonConfig','northArrowSouth','focus','AI_CHAT_CONTEXT_FILE_LABEL','_addUrlContent','content','element','5uYTWwA','tooltip','overflowChips','AI_CHAT_CONTEXT_ADD_CONTEXT','locale','children','removeContextItemChip','setTemplate','ck-ai-chat-context-controls__add-context-button','add','addDocumentToContext','cancel','_overflowManager','_handleUrlSubmit','source','enabled','northArrowSouthEast','buttonView','balloonView','northArrowSouthWest','_currentContextsChips','_createResourcesBalloonView','execute','ck-ai-chat-context-controls__add-context-balloon-panel','2VHADBr','searchInputVisibleFrom','_setupAllBalloonClickOutsideHandlers','sources','setContainerElement','_addContextBalloonPanelView','setContextItemLoading','destroy','removeContextItem','isEnabled','clear','_getLimiterElement','_createAddContextButtonView','isOn','southArrowNorth','clearCurrentContextItems','_createArrowView','84238LQFKqN','files','urls','showAddContextBalloonPanel','refreshBalloon','_setupAddContextBalloonClickOutsideHandler','ck-ai-chat-context-controls__show-more-balloon-panel','addResourceToContext','__arrow','_conversationContextsChips','_setupUrlBalloonClickOutsideHandler','isVisible','ck-ai-chat-context-controls','_removeContextFromCollection','ck-ai-chat-context-controls__pending-contexts','_createAddContextBalloonPanelView','3732336MBwhEd','_setupTemplate','isHidden','southArrowNorthWest','_bindEventHandlers','ck-ai-chat-controls_context_show-more-button','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','find','setAddContextOptions','54ywtZpZ','document','_resourcesBalloonView','show','bind','remove','_showSourceResourcesBalloon','addUrlToContext','_toggleAddContextBalloon','_urlInputView','loadSourceResources','12700DRFwoQ','ck-ai-chat-context-chips-wrapper-balloon','AI_CHAT_CONTEXT_URL_LABEL','_createBalloonButton','ck-ai-chat','showSourceResourcesBalloon','populateSourceResourceBalloon','showUrlBalloonPanel','isLoading','closest','ck-reset_all-excluded','setConversationContext','icon','isAnyResourceBalloonVisible','ck-ai-chat-controls-button','label','current','addContextItem','div','conversation','arrowView','hide','496325PKKrOc','type','updateResourceState','ck-ai-chat-context-controls__url-balloon-panel','_createUrlBalloonPanelView','2876424cVkeXa','createCollection','body','9063CYzOur','pin','isReadOnly','_setAddContextButtonEnabled','addFileToContext','southArrowNorthEast','submitUrl','ck-ai-chat-context-controls__balloon-button','addContextButtonView'];_0x4950=function(){return _0x10e884;};return _0x4950();}export class SourcesBalloonButtonView extends _0x1cb146{[_0x18e543(0x96)];constructor(_0x2d8ff6){const _0x273514=_0x18e543;super(_0x2d8ff6),this[_0x273514(0xb5)]({'withText':!0x0,'role':_0x273514(0xbd)}),this[_0x273514(0x96)]=this[_0x273514(0xee)](),this[_0x273514(0xae)]({'attributes':{'class':[Uo]}});}[_0x18e543(0xb6)](){const _0x44b708=_0x18e543;super[_0x44b708(0xb6)](),this[_0x44b708(0xcb)][_0x44b708(0xcf)](this[_0x44b708(0x96)]);}[_0x18e543(0xee)](){const _0x212107=_0x18e543,_0x5e0f5c=new _0x28a6ad();return _0x5e0f5c[_0x212107(0xc4)]=_0x55a1dd,_0x5e0f5c[_0x212107(0xae)]({'attributes':{'class':Uo+_0x212107(0x66)}}),_0x5e0f5c;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5e28f0=_0x5208;(function(_0x5d32d,_0x393aef){const _0x373641=_0x5208,_0x17139d=_0x5d32d();while(!![]){try{const _0x1e012b=parseInt(_0x373641(0x114))/0x1+-parseInt(_0x373641(0x118))/0x2+-parseInt(_0x373641(0x11a))/0x3*(-parseInt(_0x373641(0x126))/0x4)+parseInt(_0x373641(0x119))/0x5+-parseInt(_0x373641(0x11e))/0x6+-parseInt(_0x373641(0x113))/0x7*(parseInt(_0x373641(0x120))/0x8)+parseInt(_0x373641(0x122))/0x9;if(_0x1e012b===_0x393aef)break;else _0x17139d['push'](_0x17139d['shift']());}catch(_0x4c3b8a){_0x17139d['push'](_0x17139d['shift']());}}}(_0x2a90,0xbd4a2));import{ButtonView as _0x406ca3,View as _0x57fe2f}from'ckeditor5/src/ui.js';import{IconStop as _0x5e5ab8}from'ckeditor5/src/icons.js';function _0x5208(_0x3d9c16,_0x39522f){const _0x2a90f0=_0x2a90();return _0x5208=function(_0x520844,_0x497a5f){_0x520844=_0x520844-0x113;let _0x3afa5f=_0x2a90f0[_0x520844];return _0x3afa5f;},_0x5208(_0x3d9c16,_0x39522f);}function _0x2a90(){const _0x3352d3=['setTemplate','4771806wsKYXG','_cancelButtonView','12223608WxylNy','fire','13685274UJsWYv','locale','div','ck-ai-chat-controls-loader-icon-dot','21948QtPOFf','AI_CHAT_IS_WRITING','ck-ai-chat-controls-loader-wrapper','_createLoaderView','ck-reset_all','AI_CHAT_STOP_GENERATING','ck-ai-chat-controls-loader-icon','_createCancelButtonView','_loaderView','7zlgoLP','555823WpRUxI','set','ai-chat-controls-loader__cancel-button','ck-ai-chat-controls-loader','1277048GZKVMJ','7453000ruszId','93mlNjbP','abortPromptStream','execute'];_0x2a90=function(){return _0x3352d3;};return _0x2a90();}import{getTranslation as _0x4a4c28}from'../../../aicore/utils/common-translations.js';export class AIChatControlsLoaderView extends _0x57fe2f{[_0x5e28f0(0x11f)];[_0x5e28f0(0x12e)];constructor(_0x1fc616){const _0x1efd80=_0x5e28f0;super(_0x1fc616),this[_0x1efd80(0x11f)]=this[_0x1efd80(0x12d)](),this[_0x1efd80(0x12e)]=this[_0x1efd80(0x129)](),this[_0x1efd80(0x11d)]({'tag':_0x1efd80(0x124),'attributes':{'class':['ck',_0x1efd80(0x128),_0x1efd80(0x12a)]},'children':[this[_0x1efd80(0x12e)],this[_0x1efd80(0x11f)]]});}[_0x5e28f0(0x12d)](){const _0x100f74=_0x5e28f0,_0x1a910b=new _0x406ca3(this[_0x100f74(0x123)]);return _0x1a910b[_0x100f74(0x115)]({'label':_0x4a4c28(this[_0x100f74(0x123)],_0x100f74(0x12b)),'withText':!0x0,'class':_0x100f74(0x116),'icon':_0x5e5ab8}),_0x1a910b['on'](_0x100f74(0x11c),()=>{const _0x178043=_0x100f74;this[_0x178043(0x121)](_0x178043(0x11b));}),_0x1a910b;}[_0x5e28f0(0x129)](){const _0x23c827=_0x5e28f0,_0x4d497d=new _0x57fe2f(this[_0x23c827(0x123)]);return _0x4d497d[_0x23c827(0x11d)]({'tag':_0x23c827(0x124),'attributes':{'class':[_0x23c827(0x117)]},'children':[{'tag':_0x23c827(0x124),'attributes':{'class':[_0x23c827(0x12c)]},'children':[{'tag':_0x23c827(0x124),'attributes':{'class':[_0x23c827(0x125)]}},{'tag':_0x23c827(0x124),'attributes':{'class':[_0x23c827(0x125)]}},{'tag':_0x23c827(0x124),'attributes':{'class':[_0x23c827(0x125)]}}]},{'text':_0x4a4c28(this[_0x23c827(0x123)],_0x23c827(0x127))}]}),_0x4d497d;}}
23
+ function _0x25a0(){const _0x103f45=['_cancelButtonView','ck-reset_all','setTemplate','div','3871528hyCjZu','abortPromptStream','ck-ai-button-secondary\x20ck-ai-button-stop-generating','60dZdVNH','17021147TbZNwW','ck-ai-chat-controls-loader-icon-dot','168394LctmVW','_createLoaderView','344880TxsWUt','_createCancelButtonView','_loaderView','execute','ck-ai-chat-controls-loader','fire','10QpDXhS','5JxWYYn','ck-ai-chat-controls-loader-icon','set','30HPdRJu','locale','110343EgPpSz','AI_CHAT_IS_WRITING','AI_CHAT_STOP_GENERATING','1136051DohzrD','4400766WppDAi','ck-ai-chat-controls-loader-wrapper'];_0x25a0=function(){return _0x103f45;};return _0x25a0();}const _0x87265b=_0x5aa9;(function(_0x5ce7d1,_0x59438c){const _0x4b1d09=_0x5aa9,_0x2d7a9c=_0x5ce7d1();while(!![]){try{const _0x52e795=parseInt(_0x4b1d09(0x1dd))/0x1*(-parseInt(_0x4b1d09(0x1d4))/0x2)+-parseInt(_0x4b1d09(0x1c4))/0x3*(-parseInt(_0x4b1d09(0x1d1))/0x4)+parseInt(_0x4b1d09(0x1d6))/0x5+parseInt(_0x4b1d09(0x1c2))/0x6*(parseInt(_0x4b1d09(0x1c7))/0x7)+parseInt(_0x4b1d09(0x1ce))/0x8+parseInt(_0x4b1d09(0x1c8))/0x9+-parseInt(_0x4b1d09(0x1dc))/0xa*(parseInt(_0x4b1d09(0x1d2))/0xb);if(_0x52e795===_0x59438c)break;else _0x2d7a9c['push'](_0x2d7a9c['shift']());}catch(_0x2b5182){_0x2d7a9c['push'](_0x2d7a9c['shift']());}}}(_0x25a0,0x6a9e5));function _0x5aa9(_0x155350,_0x348038){const _0x25a065=_0x25a0();return _0x5aa9=function(_0x5aa93a,_0x10286b){_0x5aa93a=_0x5aa93a-0x1c0;let _0x50cdfc=_0x25a065[_0x5aa93a];return _0x50cdfc;},_0x5aa9(_0x155350,_0x348038);}import{ButtonView as _0x4ba335,View as _0x180446}from'ckeditor5/src/ui.js';import{IconStop as _0x1f67fb}from'ckeditor5/src/icons.js';import{getTranslation as _0xb37944}from'../../../aicore/utils/common-translations.js';export class AIChatControlsLoaderView extends _0x180446{[_0x87265b(0x1ca)];[_0x87265b(0x1d8)];constructor(_0x33cca9){const _0x353a99=_0x87265b;super(_0x33cca9),this[_0x353a99(0x1ca)]=this[_0x353a99(0x1d7)](),this[_0x353a99(0x1d8)]=this[_0x353a99(0x1d5)](),this[_0x353a99(0x1cc)]({'tag':_0x353a99(0x1cd),'attributes':{'class':['ck',_0x353a99(0x1c9),_0x353a99(0x1cb)]},'children':[this[_0x353a99(0x1d8)],this[_0x353a99(0x1ca)]]});}[_0x87265b(0x1d7)](){const _0x59ab5d=_0x87265b,_0x5056af=new _0x4ba335(this[_0x59ab5d(0x1c3)]);return _0x5056af[_0x59ab5d(0x1c1)]({'label':_0xb37944(this[_0x59ab5d(0x1c3)],_0x59ab5d(0x1c6)),'withText':!0x0,'class':_0x59ab5d(0x1d0),'icon':_0x1f67fb}),_0x5056af['on'](_0x59ab5d(0x1d9),()=>{const _0xb1e3f3=_0x59ab5d;this[_0xb1e3f3(0x1db)](_0xb1e3f3(0x1cf));}),_0x5056af;}[_0x87265b(0x1d5)](){const _0x96d196=_0x87265b,_0x1f4fa0=new _0x180446(this[_0x96d196(0x1c3)]);return _0x1f4fa0[_0x96d196(0x1cc)]({'tag':_0x96d196(0x1cd),'attributes':{'class':[_0x96d196(0x1da)]},'children':[{'tag':_0x96d196(0x1cd),'attributes':{'class':[_0x96d196(0x1c0)]},'children':[{'tag':_0x96d196(0x1cd),'attributes':{'class':[_0x96d196(0x1d3)]}},{'tag':_0x96d196(0x1cd),'attributes':{'class':[_0x96d196(0x1d3)]}},{'tag':_0x96d196(0x1cd),'attributes':{'class':[_0x96d196(0x1d3)]}}]},{'text':_0xb37944(this[_0x96d196(0x1c3)],_0x96d196(0x1c5))}]}),_0x1f4fa0;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xf14791=_0x3341;(function(_0x598d39,_0x3a239a){const _0x4b5768=_0x3341,_0x20cf1e=_0x598d39();while(!![]){try{const _0x266ccb=parseInt(_0x4b5768(0x1b6))/0x1*(-parseInt(_0x4b5768(0x1c8))/0x2)+parseInt(_0x4b5768(0x1af))/0x3+parseInt(_0x4b5768(0x1d5))/0x4*(parseInt(_0x4b5768(0x18b))/0x5)+-parseInt(_0x4b5768(0x199))/0x6+parseInt(_0x4b5768(0x1ce))/0x7+-parseInt(_0x4b5768(0x1a0))/0x8+parseInt(_0x4b5768(0x1b7))/0x9;if(_0x266ccb===_0x3a239a)break;else _0x20cf1e['push'](_0x20cf1e['shift']());}catch(_0x536374){_0x20cf1e['push'](_0x20cf1e['shift']());}}}(_0x2b35,0x765bb));import{Collection as _0x3b0973}from'ckeditor5/src/utils.js';function _0x3341(_0x24a3ca,_0x434abc){const _0x2b35ae=_0x2b35();return _0x3341=function(_0x33411d,_0x5cefd6){_0x33411d=_0x33411d-0x182;let _0x2c6f2e=_0x2b35ae[_0x33411d];return _0x2c6f2e;},_0x3341(_0x24a3ca,_0x434abc);}import{IconAI as _0x41ac4c,IconBulb as _0x4381bc,IconWeb as _0x3d3970}from'@ckeditor/ckeditor5-icons';function _0x2b35(){const _0x2133f9=['5318744WaLSOJ','agent','webSearchActive','ck-ai-chat-controls__model-selection','selectModel','setTemplate','_createModelNameView','toLowerCase','source','execute','AI_CHAT_CAPABILITIES_NO','AI_CHAT_REASONING','enabled','locale','ck-ai-chat-controls__model-name','639684nmXqMB','AI_CHAT_CAPABILITIES_YES','_getCapabilityParts','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','isOn','capabilities','clear','47255DhjSUj','9349362duUEKM','content','span','log','ck-ai-chat-controls__model-selection__item-description','modelSelectorVisible','text','isEnabled','isVisible','add','ck-ai-chat-controls-button','model','disableModelSelector','modelSelectorEnabled','AI_CHAT_DISABLE_WEB_SEARCH','activeModelId','set','34cKpkaz','enableModelSelector','buttonView','AI_CHAT_COMMANDS','addMany','reasoningActive','1987643eyrChO','setWebSearch','_modelNameView','bind','Commands\x20are\x20not\x20implemented\x20yet.','button','createCollection','12AKDoBb','setReasoning','menuitemradio','ck-ai-chat-controls-button--commands','tooltip','ck-ai-chat__prompt-capabilities','_reasoningButton','_createCommandsButton','AI_CHAT_ENABLE_REASONING','activeModelName','fire','_commandsButton','_webSearchButton','webSearch','ck-button__label','withText','div','label','_createReasoningButton','listenTo','AI_CHAT_DISABLE_REASONING','setModelList','_modelSelectionDropdown','AI_CHAT_SEARCH_WEB','1533680pCGVxr','setModel','bindTemplate','description','startsWith','ck-ai-chat-controls__model-selection__item-capabilities','length','extendTemplate','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','ck-ai-chat-controls__model-selection__item-name','name','toggleWebSearch','reasoning','ck-hidden','3019380AZECPr','_createWebSearchButton','_createModelSelectionDropdown','toggleReasoning','AI_CHAT_ENABLE_WEB_SEARCH','_modelSelectionDropdownItems','style'];_0x2b35=function(){return _0x2133f9;};return _0x2b35();}import{addListToDropdown as _0x29ab69,ButtonLabelView as _0x43336c,ButtonView as _0x3ee16c,createDropdown as _0x86eec0,IconView as _0x2f04da,UIModel as _0x2eb106,View as _0x5eb136}from'ckeditor5/src/ui.js';import{getTranslation as _0x3aff95}from'../../../aicore/utils/common-translations.js';const Mo=_0xf14791(0x1da),Io=_0xf14791(0x1c1),Do=_0xf14791(0x1d8),Wo=_0xf14791(0x1a3),yo=_0xf14791(0x194),Go=_0xf14791(0x1bb),jo=_0xf14791(0x190),Yo='n';export class AIChatPromptCapabilitiesView extends _0x5eb136{[_0xf14791(0x1e1)];[_0xf14791(0x1db)];[_0xf14791(0x1e0)];[_0xf14791(0x189)];[_0xf14791(0x19e)];[_0xf14791(0x1d0)];constructor(_0x80c055){const _0x3e86be=_0xf14791;super(_0x80c055),this[_0x3e86be(0x1c7)](_0x3e86be(0x1a2),!0x1),this[_0x3e86be(0x1c7)](_0x3e86be(0x1cd),!0x1),this[_0x3e86be(0x1c7)](_0x3e86be(0x1bc),!0x0),this[_0x3e86be(0x1c7)](_0x3e86be(0x1c4),!0x0),this[_0x3e86be(0x1c7)](_0x3e86be(0x1c6),null),this[_0x3e86be(0x1c7)](_0x3e86be(0x1de),null),this[_0x3e86be(0x189)]=this[_0x3e86be(0x19b)](),this[_0x3e86be(0x1d0)]=this[_0x3e86be(0x1a6)](),this[_0x3e86be(0x1e1)]=this[_0x3e86be(0x19a)](),this[_0x3e86be(0x1db)]=this[_0x3e86be(0x185)](),this[_0x3e86be(0x1e0)]=this[_0x3e86be(0x1dc)](),this[_0x3e86be(0x189)][_0x3e86be(0x1ca)][_0x3e86be(0x1d1)](_0x3e86be(0x1bf))['to'](this,_0x3e86be(0x1bc),_0x1eea7a=>_0x1eea7a),this[_0x3e86be(0x189)][_0x3e86be(0x1ca)][_0x3e86be(0x1d1)](_0x3e86be(0x1d9))['to'](this,_0x3e86be(0x1c4),_0xa700c4=>_0xa700c4?this[_0x3e86be(0x189)][_0x3e86be(0x1ca)][_0x3e86be(0x184)]:_0x3aff95(this[_0x3e86be(0x1ad)],_0x3e86be(0x1b2))),this[_0x3e86be(0x189)][_0x3e86be(0x1d1)](_0x3e86be(0x1be))['to'](this,_0x3e86be(0x1c4),_0x2af181=>_0x2af181),this[_0x3e86be(0x1e1)][_0x3e86be(0x1d1)](_0x3e86be(0x1b3))['to'](this,_0x3e86be(0x1a2),_0x4c4e57=>_0x4c4e57),this[_0x3e86be(0x1e1)][_0x3e86be(0x1d1)](_0x3e86be(0x182))['to'](this,_0x3e86be(0x1bc),_0x4e41a5=>!_0x4e41a5),this[_0x3e86be(0x1e1)][_0x3e86be(0x1d1)](_0x3e86be(0x1d9))['to'](this,_0x3e86be(0x1a2),_0x55cf9e=>_0x3aff95(this[_0x3e86be(0x1ad)],_0x55cf9e?_0x3e86be(0x1c5):_0x3e86be(0x19d))),this[_0x3e86be(0x1db)][_0x3e86be(0x1d1)](_0x3e86be(0x1b3))['to'](this,_0x3e86be(0x1cd),_0x1bca31=>_0x1bca31),this[_0x3e86be(0x1db)][_0x3e86be(0x1d1)](_0x3e86be(0x182))['to'](this,_0x3e86be(0x1bc),_0x5983ac=>!_0x5983ac),this[_0x3e86be(0x1db)][_0x3e86be(0x1d1)](_0x3e86be(0x1d9))['to'](this,_0x3e86be(0x1cd),_0x1b627f=>_0x3aff95(this[_0x3e86be(0x1ad)],_0x1b627f?_0x3e86be(0x187):_0x3e86be(0x1dd))),this[_0x3e86be(0x1a5)]({'tag':_0x3e86be(0x183),'attributes':{'class':[Mo]},'children':[this[_0x3e86be(0x189)],this[_0x3e86be(0x1d0)],this[_0x3e86be(0x1e1)],this[_0x3e86be(0x1db)],this[_0x3e86be(0x1e0)]]}),this[_0x3e86be(0x19e)]=new _0x3b0973(),_0x29ab69(this[_0x3e86be(0x189)],this[_0x3e86be(0x19e)]);}[_0xf14791(0x188)](_0x2a564f,_0x2bef19){const _0x2d48fd=_0xf14791;if(this[_0x2d48fd(0x1c7)](_0x2d48fd(0x1bc),!(_0x2bef19&&_0x2a564f[_0x2d48fd(0x191)]<=0x1)),this[_0x2d48fd(0x19e)][_0x2d48fd(0x1b5)](),_0x2a564f?.[_0x2d48fd(0x191)])for(const _0x54c9ab of _0x2a564f){const _0x308978=new _0x2eb106({'label':_0x54c9ab[_0x2d48fd(0x195)],'withText':!0x0,'role':_0x2d48fd(0x1d7),'id':_0x54c9ab['id'],'model':_0x54c9ab});_0x308978[_0x2d48fd(0x1d1)](_0x2d48fd(0x1b3))['to'](this,_0x2d48fd(0x1c6),_0x4bff3a=>_0x4bff3a===_0x54c9ab['id']),this[_0x2d48fd(0x19e)][_0x2d48fd(0x1c0)]({'type':_0x2d48fd(0x1d3),'model':_0x308978,'labelView':new Hs(this[_0x2d48fd(0x1ad)],_0x54c9ab)});}}[_0xf14791(0x1cf)](_0x38ce15){const _0x3bd49c=_0xf14791;this[_0x3bd49c(0x1c7)](_0x3bd49c(0x1a2),_0x38ce15);}[_0xf14791(0x1d6)](_0x1ffe9a){const _0xd7cf7f=_0xf14791;this[_0xd7cf7f(0x1c7)](_0xd7cf7f(0x1cd),_0x1ffe9a);}[_0xf14791(0x18c)](_0x40d8f8){const _0x5053ac=_0xf14791;if(!_0x40d8f8)return;this[_0x5053ac(0x1c6)]=_0x40d8f8['id'],this[_0x5053ac(0x1de)]=_0x40d8f8[_0x5053ac(0x195)]||_0x40d8f8['id'],this[_0x5053ac(0x189)][_0x5053ac(0x1ca)][_0x5053ac(0x1c7)](_0x5053ac(0x184),_0x40d8f8[_0x5053ac(0x195)]),this[_0x5053ac(0x189)][_0x5053ac(0x1ca)][_0x5053ac(0x1c7)](_0x5053ac(0x1d9),_0x40d8f8[_0x5053ac(0x195)]);const _0x3b0b75=_0x40d8f8[_0x5053ac(0x1b4)][_0x5053ac(0x1e2)]?.[_0x5053ac(0x1ac)]??!0x1;this[_0x5053ac(0x1c7)](_0x5053ac(0x1a2),!0x1),this[_0x5053ac(0x1e1)][_0x5053ac(0x1c7)](_0x5053ac(0x1b3),!0x1),this[_0x5053ac(0x1e1)][_0x5053ac(0x1c7)](_0x5053ac(0x1be),_0x3b0b75),this[_0x5053ac(0x1e1)][_0x5053ac(0x1c7)](_0x5053ac(0x1bf),_0x3b0b75);const _0x207f7f=_0x40d8f8[_0x5053ac(0x1b4)][_0x5053ac(0x197)]?.[_0x5053ac(0x1ac)]??!0x1;this[_0x5053ac(0x1c7)](_0x5053ac(0x1cd),!0x1),this[_0x5053ac(0x1db)][_0x5053ac(0x1c7)](_0x5053ac(0x1b3),!0x1),this[_0x5053ac(0x1db)][_0x5053ac(0x1c7)](_0x5053ac(0x1be),_0x207f7f),this[_0x5053ac(0x1db)][_0x5053ac(0x1c7)](_0x5053ac(0x1bf),_0x207f7f);}[_0xf14791(0x1c9)](){const _0xb01296=_0xf14791;this[_0xb01296(0x1c7)](_0xb01296(0x1c4),!0x0),this[_0xb01296(0x1c7)](_0xb01296(0x1bc),!0x0);}[_0xf14791(0x1c3)](_0x3e080c){const _0x4fd030=_0xf14791;this[_0x4fd030(0x1c7)](_0x4fd030(0x1c4),!0x1),_0x3e080c&&this[_0x4fd030(0x1c7)](_0x4fd030(0x1bc),!0x1);}[_0xf14791(0x19a)](){const _0x617edd=_0xf14791,_0x2e9e39=new _0x3ee16c();return _0x2e9e39[_0x617edd(0x1c7)]({'label':_0x3aff95(this[_0x617edd(0x1ad)],_0x617edd(0x18a)),'icon':_0x3d3970,'class':Io,'isToggleable':!0x0,'tooltipPosition':Yo}),_0x2e9e39['on'](_0x617edd(0x1a9),()=>{const _0x51e32d=_0x617edd;this[_0x51e32d(0x1df)](_0x51e32d(0x196));}),_0x2e9e39;}[_0xf14791(0x185)](){const _0x3917d0=_0xf14791,_0x414ef5=new _0x3ee16c();return _0x414ef5[_0x3917d0(0x1c7)]({'label':_0x3aff95(this[_0x3917d0(0x1ad)],_0x3917d0(0x1ab)),'icon':_0x4381bc,'class':Io,'isToggleable':!0x0,'tooltipPosition':Yo}),_0x414ef5['on'](_0x3917d0(0x1a9),()=>{const _0x316e6d=_0x3917d0;this[_0x316e6d(0x1df)](_0x316e6d(0x19c));}),_0x414ef5;}[_0xf14791(0x1dc)](){const _0x3f61e3=_0xf14791,_0x27a44d=new _0x3ee16c();return _0x27a44d[_0x3f61e3(0x1c7)]({'label':_0x3aff95(this[_0x3f61e3(0x1ad)],_0x3f61e3(0x1cb)),'icon':_0x41ac4c,'withText':!0x0,'class':Io,'isToggleable':!0x0,'tooltip':_0x3aff95(this[_0x3f61e3(0x1ad)],_0x3f61e3(0x1cb)),'tooltipPosition':Yo}),_0x27a44d[_0x3f61e3(0x192)]({'attributes':{'class':[Do]}}),_0x27a44d['on'](_0x3f61e3(0x1a9),()=>{const _0xe224ed=_0x3f61e3;console[_0xe224ed(0x1ba)](_0xe224ed(0x1d2)),alert(_0xe224ed(0x1d2));}),_0x27a44d;}[_0xf14791(0x19b)](){const _0x291a11=_0xf14791,_0x2bc0ee=_0x86eec0(this[_0x291a11(0x1ad)]);return _0x2bc0ee[_0x291a11(0x1c7)]({'panelPosition':'ne','class':[Wo]}),_0x2bc0ee[_0x291a11(0x1ca)][_0x291a11(0x1c7)]({'label':_0x3aff95(this[_0x291a11(0x1ad)],_0x291a11(0x193)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':Yo}),this[_0x291a11(0x186)](_0x2bc0ee,_0x291a11(0x1a9),_0x4a700=>{const _0x540a28=_0x291a11;this[_0x540a28(0x1df)](_0x540a28(0x1a4),_0x4a700[_0x540a28(0x1a8)][_0x540a28(0x1c2)]);}),_0x2bc0ee;}[_0xf14791(0x1a6)](){const _0x55c4a1=_0xf14791,_0x1abeea=new qo(this[_0x55c4a1(0x1ad)]);return _0x1abeea[_0x55c4a1(0x1d1)](_0x55c4a1(0x1bd))['to'](this,_0x55c4a1(0x1de),_0x3e1f66=>_0x3e1f66??''),_0x1abeea[_0x55c4a1(0x1d1)](_0x55c4a1(0x1bf))['to'](this,_0x55c4a1(0x1bc),this,_0x55c4a1(0x1de),(_0x3b9bfe,_0x4b6656)=>!_0x3b9bfe&&!_0x4b6656?.[_0x55c4a1(0x1a7)]()[_0x55c4a1(0x18f)](_0x55c4a1(0x1a1))),_0x1abeea;}}class Hs extends _0x43336c{constructor(_0x2c621b,_0x314a43){const _0xbf3fb8=_0xf14791;super();const _0x2ae729=this[_0xbf3fb8(0x18d)],_0x2ea0ac=this[_0xbf3fb8(0x1d4)]();this[_0xbf3fb8(0x1a5)]({'tag':_0xbf3fb8(0x183),'attributes':{'class':['ck',_0xbf3fb8(0x1e3)],'style':_0x2ae729['to'](_0xbf3fb8(0x19f)),'id':_0x2ae729['to']('id')},'children':[{'tag':_0xbf3fb8(0x183),'attributes':{'class':[yo]},'children':[{'text':_0x2ae729['to'](_0xbf3fb8(0x1bd))}]},{'tag':_0xbf3fb8(0x183),'attributes':{'class':[Go]},'children':[{'tag':_0xbf3fb8(0x1b9),'children':[{'text':_0x314a43[_0xbf3fb8(0x18e)]}]}]},{'tag':_0xbf3fb8(0x183),'attributes':{'class':[jo]},'children':_0x2ea0ac}]}),_0x2ea0ac[_0xbf3fb8(0x1cc)](this[_0xbf3fb8(0x1b1)](_0x2c621b,_0x3d3970,_0xbf3fb8(0x18a),_0x314a43[_0xbf3fb8(0x1b4)][_0xbf3fb8(0x1e2)]?.[_0xbf3fb8(0x1ac)]??!0x1)),_0x2ea0ac[_0xbf3fb8(0x1cc)](this[_0xbf3fb8(0x1b1)](_0x2c621b,_0x4381bc,_0xbf3fb8(0x1ab),_0x314a43[_0xbf3fb8(0x1b4)][_0xbf3fb8(0x197)]?.[_0xbf3fb8(0x1ac)]??!0x1));}[_0xf14791(0x1b1)](_0x1a5f07,_0x1c0aae,_0x29cba1,_0x25461a){const _0x4a51ae=_0xf14791,_0x4b573e=new _0x2f04da();_0x4b573e[_0x4a51ae(0x1b8)]=_0x1c0aae;const _0x22c575=new _0x5eb136(_0x1a5f07);_0x22c575[_0x4a51ae(0x1a5)]({'tag':_0x4a51ae(0x1b9),'children':[{'text':_0x3aff95(_0x1a5f07,_0x29cba1)+':\x20'}]});const _0xe78776=new _0x5eb136(_0x1a5f07);return _0xe78776[_0x4a51ae(0x1a5)]({'tag':_0x4a51ae(0x1b9),'children':[{'text':_0x3aff95(_0x1a5f07,_0x25461a?_0x4a51ae(0x1b0):_0x4a51ae(0x1aa))}]}),[_0x4b573e,_0x22c575,_0xe78776];}}class qo extends _0x5eb136{constructor(_0x3cf004){const _0x47c8f1=_0xf14791;super(_0x3cf004),this[_0x47c8f1(0x1c7)](_0x47c8f1(0x1bd),void 0x0),this[_0x47c8f1(0x1c7)](_0x47c8f1(0x1bf),!0x0);const _0x493580=this[_0x47c8f1(0x18d)];this[_0x47c8f1(0x1a5)]({'tag':_0x47c8f1(0x1b9),'attributes':{'class':['ck',_0x47c8f1(0x1ae),_0x493580['if'](_0x47c8f1(0x1bf),_0x47c8f1(0x198),_0x39e65a=>!_0x39e65a)]},'children':[{'text':_0x493580['to'](_0x47c8f1(0x1bd))}]});}}
23
+ const _0x402d19=_0x1332;(function(_0x5e28d5,_0x5dff39){const _0x493c24=_0x1332,_0x226623=_0x5e28d5();while(!![]){try{const _0x5e5a16=parseInt(_0x493c24(0x1cc))/0x1+-parseInt(_0x493c24(0x215))/0x2*(-parseInt(_0x493c24(0x1e4))/0x3)+parseInt(_0x493c24(0x222))/0x4+-parseInt(_0x493c24(0x1cf))/0x5*(parseInt(_0x493c24(0x1e7))/0x6)+-parseInt(_0x493c24(0x1ee))/0x7+parseInt(_0x493c24(0x1c8))/0x8*(parseInt(_0x493c24(0x1d7))/0x9)+-parseInt(_0x493c24(0x1d2))/0xa*(-parseInt(_0x493c24(0x1fd))/0xb);if(_0x5e5a16===_0x5dff39)break;else _0x226623['push'](_0x226623['shift']());}catch(_0x3d2825){_0x226623['push'](_0x226623['shift']());}}}(_0x1d50,0x557b0));import{Collection as _0x195087}from'ckeditor5/src/utils.js';import{IconAI as _0x502d1c,IconBulb as _0x54a27f,IconWeb as _0x24d250}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x541c30,ButtonLabelView as _0x3b3591,ButtonView as _0x1ff45e,createDropdown as _0x1b8ab0,IconView as _0x388a85,UIModel as _0x277936,View as _0x44311d}from'ckeditor5/src/ui.js';import{getTranslation as _0x587cb4}from'../../../aicore/utils/common-translations.js';import{AIModels as _0x20f481}from'../../../aicore/model/aimodels.js';function _0x1332(_0x464a8c,_0x322b6c){const _0x1d50f0=_0x1d50();return _0x1332=function(_0x1332a5,_0x3401e2){_0x1332a5=_0x1332a5-0x1c1;let _0x4b6344=_0x1d50f0[_0x1332a5];return _0x4b6344;},_0x1332(_0x464a8c,_0x322b6c);}const yo=_0x402d19(0x1fb),Lo=_0x402d19(0x223),Go=_0x402d19(0x218),Yo=_0x402d19(0x204),qo=_0x402d19(0x1ca),zo=_0x402d19(0x20d),Fo=_0x402d19(0x208),Jo='n';function _0x1d50(){const _0x94b78d=['reasoning','ck-ai-chat-controls__model-name','AI_CHAT_ENABLE_WEB_SEARCH','tooltip','listenTo','modelSelectorVisible','ck-ai-chat__prompt-capabilities','setWebSearch','803869qXoyUc','isVisible','style','content','_reasoningButton','model','bindTemplate','ck-ai-chat-controls__model-selection','getLocalized','AI_CHAT_REASONING','startsWith','ck-ai-chat-controls__model-selection__item-capabilities','_createCommandsButton','bind','div','text','ck-ai-chat-controls__model-selection__item-description','buttonView','_createModelSelectionDropdown','AI_CHAT_ENABLE_REASONING','label','_webSearchButton','_commandsButton','ck-hidden','142ZNIqVq','log','menuitemradio','ck-ai-chat-controls-button--commands','_modelSelectionDropdown','isOn','length','setModelList','add','webSearchActive','ck-button__label','withText','AI_CHAT_DISABLE_WEB_SEARCH','919736WlRkwV','ck-ai-chat-controls-button','toggleWebSearch','span','source','AI_CHAT_CAPABILITIES_YES','AI_CHAT_COMMANDS','toggleReasoning','AI_CHAT_CAPABILITIES_NO','fire','set','8eAkoJt','activeModelName','ck-ai-chat-controls__model-selection__item-name','createCollection','100926MmBjIH','enableModelSelector','AI_CHAT_DISABLE_REASONING','170KsWtyK','setModel','addMany','10qQdufc','clear','_modelSelectionDropdownItems','_createModelNameView','isEnabled','5745231tHgKWf','enabled','_getCapabilityParts','capabilities','_createWebSearchButton','_modelNameView','activeModelId','Commands\x20are\x20not\x20implemented\x20yet.','modelSelectorEnabled','selectModel','setTemplate','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','agent','3783vtcNqL','disableModelSelector','webSearch','65334AjhqYi','reasoningActive','description','name','button','locale','_createReasoningButton','2880325KNrzsw','setReasoning','execute','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','AI_CHAT_SEARCH_WEB','toLowerCase','extendTemplate'];_0x1d50=function(){return _0x94b78d;};return _0x1d50();}export class AIChatPromptCapabilitiesView extends _0x44311d{[_0x402d19(0x212)];[_0x402d19(0x201)];[_0x402d19(0x213)];[_0x402d19(0x219)];[_0x402d19(0x1d4)];[_0x402d19(0x1dc)];constructor(_0x58c4aa){const _0x231d4a=_0x402d19;super(_0x58c4aa),this[_0x231d4a(0x1c7)](_0x231d4a(0x21e),!0x1),this[_0x231d4a(0x1c7)](_0x231d4a(0x1e8),!0x1),this[_0x231d4a(0x1c7)](_0x231d4a(0x1fa),!0x0),this[_0x231d4a(0x1c7)](_0x231d4a(0x1df),!0x0),this[_0x231d4a(0x1c7)](_0x231d4a(0x1dd),null),this[_0x231d4a(0x1c7)](_0x231d4a(0x1c9),null),this[_0x231d4a(0x219)]=this[_0x231d4a(0x20f)](),this[_0x231d4a(0x1dc)]=this[_0x231d4a(0x1d5)](),this[_0x231d4a(0x212)]=this[_0x231d4a(0x1db)](),this[_0x231d4a(0x201)]=this[_0x231d4a(0x1ed)](),this[_0x231d4a(0x213)]=this[_0x231d4a(0x209)](),this[_0x231d4a(0x219)][_0x231d4a(0x20e)][_0x231d4a(0x20a)](_0x231d4a(0x1fe))['to'](this,_0x231d4a(0x1fa),_0x56aa23=>_0x56aa23),this[_0x231d4a(0x219)][_0x231d4a(0x20e)][_0x231d4a(0x20a)](_0x231d4a(0x1f8))['to'](this,_0x231d4a(0x1df),_0x16770d=>_0x16770d?this[_0x231d4a(0x219)][_0x231d4a(0x20e)][_0x231d4a(0x211)]:_0x587cb4(this[_0x231d4a(0x1ec)],_0x231d4a(0x1e2))),this[_0x231d4a(0x219)][_0x231d4a(0x20a)](_0x231d4a(0x1d6))['to'](this,_0x231d4a(0x1df),_0x1a8236=>_0x1a8236),this[_0x231d4a(0x212)][_0x231d4a(0x20a)](_0x231d4a(0x21a))['to'](this,_0x231d4a(0x21e),_0x46f17f=>_0x46f17f),this[_0x231d4a(0x212)][_0x231d4a(0x20a)](_0x231d4a(0x220))['to'](this,_0x231d4a(0x1fa),_0x57decf=>!_0x57decf),this[_0x231d4a(0x212)][_0x231d4a(0x20a)](_0x231d4a(0x1f8))['to'](this,_0x231d4a(0x21e),_0x41bc51=>_0x587cb4(this[_0x231d4a(0x1ec)],_0x41bc51?_0x231d4a(0x221):_0x231d4a(0x1f7))),this[_0x231d4a(0x201)][_0x231d4a(0x20a)](_0x231d4a(0x21a))['to'](this,_0x231d4a(0x1e8),_0x3330f5=>_0x3330f5),this[_0x231d4a(0x201)][_0x231d4a(0x20a)](_0x231d4a(0x220))['to'](this,_0x231d4a(0x1fa),_0x2b9aec=>!_0x2b9aec),this[_0x231d4a(0x201)][_0x231d4a(0x20a)](_0x231d4a(0x1f8))['to'](this,_0x231d4a(0x1e8),_0x3f01c8=>_0x587cb4(this[_0x231d4a(0x1ec)],_0x3f01c8?_0x231d4a(0x1ce):_0x231d4a(0x210))),this[_0x231d4a(0x1e1)]({'tag':_0x231d4a(0x20b),'attributes':{'class':[yo]},'children':[this[_0x231d4a(0x219)],this[_0x231d4a(0x1dc)],this[_0x231d4a(0x212)],this[_0x231d4a(0x201)],this[_0x231d4a(0x213)]]}),this[_0x231d4a(0x1d4)]=new _0x195087(),_0x541c30(this[_0x231d4a(0x219)],this[_0x231d4a(0x1d4)]);}[_0x402d19(0x21c)](_0x31a56d,_0x29222c){const _0x4837a8=_0x402d19;if(this[_0x4837a8(0x1c7)](_0x4837a8(0x1fa),!(_0x29222c&&_0x31a56d[_0x4837a8(0x21b)]<=0x1)),this[_0x4837a8(0x1d4)][_0x4837a8(0x1d3)](),_0x31a56d?.[_0x4837a8(0x21b)]){const _0x20376a=_0x20f481[_0x4837a8(0x205)](this[_0x4837a8(0x1ec)],_0x31a56d);for(const _0x1cd7ac of _0x20376a){const _0x312843=new _0x277936({'label':_0x1cd7ac[_0x4837a8(0x1ea)],'withText':!0x0,'role':_0x4837a8(0x217),'id':_0x1cd7ac['id'],'model':_0x1cd7ac});_0x312843[_0x4837a8(0x20a)](_0x4837a8(0x21a))['to'](this,_0x4837a8(0x1dd),_0x53acba=>_0x53acba===_0x1cd7ac['id']),this[_0x4837a8(0x1d4)][_0x4837a8(0x21d)]({'type':_0x4837a8(0x1eb),'model':_0x312843,'labelView':new Ws(this[_0x4837a8(0x1ec)],_0x1cd7ac)});}}}[_0x402d19(0x1fc)](_0x39750a){const _0x32dc62=_0x402d19;this[_0x32dc62(0x1c7)](_0x32dc62(0x21e),_0x39750a);}[_0x402d19(0x1ef)](_0x172d66){const _0x446d2c=_0x402d19;this[_0x446d2c(0x1c7)](_0x446d2c(0x1e8),_0x172d66);}[_0x402d19(0x1d0)](_0x36858e){const _0x238d56=_0x402d19;if(!_0x36858e)return;this[_0x238d56(0x1dd)]=_0x36858e['id'],this[_0x238d56(0x1c9)]=_0x36858e[_0x238d56(0x1ea)]||_0x36858e['id'],this[_0x238d56(0x219)][_0x238d56(0x20e)][_0x238d56(0x1c7)](_0x238d56(0x211),_0x36858e[_0x238d56(0x1ea)]),this[_0x238d56(0x219)][_0x238d56(0x20e)][_0x238d56(0x1c7)](_0x238d56(0x1f8),_0x36858e[_0x238d56(0x1ea)]);const _0x1a01a4=_0x36858e[_0x238d56(0x1da)][_0x238d56(0x1e6)]?.[_0x238d56(0x1d8)]??!0x1;this[_0x238d56(0x1c7)](_0x238d56(0x21e),!0x1),this[_0x238d56(0x212)][_0x238d56(0x1c7)](_0x238d56(0x21a),!0x1),this[_0x238d56(0x212)][_0x238d56(0x1c7)](_0x238d56(0x1d6),_0x1a01a4),this[_0x238d56(0x212)][_0x238d56(0x1c7)](_0x238d56(0x1fe),_0x1a01a4);const _0x38b13e=_0x36858e[_0x238d56(0x1da)][_0x238d56(0x1f5)]?.[_0x238d56(0x1d8)]??!0x1;this[_0x238d56(0x1c7)](_0x238d56(0x1e8),!0x1),this[_0x238d56(0x201)][_0x238d56(0x1c7)](_0x238d56(0x21a),!0x1),this[_0x238d56(0x201)][_0x238d56(0x1c7)](_0x238d56(0x1d6),_0x38b13e),this[_0x238d56(0x201)][_0x238d56(0x1c7)](_0x238d56(0x1fe),_0x38b13e);}[_0x402d19(0x1cd)](){const _0x212d26=_0x402d19;this[_0x212d26(0x1c7)](_0x212d26(0x1df),!0x0),this[_0x212d26(0x1c7)](_0x212d26(0x1fa),!0x0);}[_0x402d19(0x1e5)](_0x52f7c3){const _0x97f381=_0x402d19;this[_0x97f381(0x1c7)](_0x97f381(0x1df),!0x1),_0x52f7c3&&this[_0x97f381(0x1c7)](_0x97f381(0x1fa),!0x1);}[_0x402d19(0x1db)](){const _0x19ac84=_0x402d19,_0x37a1b6=new _0x1ff45e();return _0x37a1b6[_0x19ac84(0x1c7)]({'label':_0x587cb4(this[_0x19ac84(0x1ec)],_0x19ac84(0x1f2)),'icon':_0x24d250,'class':Lo,'isToggleable':!0x0,'tooltipPosition':Jo}),_0x37a1b6['on'](_0x19ac84(0x1f0),()=>{const _0x3f4c11=_0x19ac84;this[_0x3f4c11(0x1c6)](_0x3f4c11(0x224));}),_0x37a1b6;}[_0x402d19(0x1ed)](){const _0x1edccf=_0x402d19,_0x37d879=new _0x1ff45e();return _0x37d879[_0x1edccf(0x1c7)]({'label':_0x587cb4(this[_0x1edccf(0x1ec)],_0x1edccf(0x206)),'icon':_0x54a27f,'class':Lo,'isToggleable':!0x0,'tooltipPosition':Jo}),_0x37d879['on'](_0x1edccf(0x1f0),()=>{const _0x4cc590=_0x1edccf;this[_0x4cc590(0x1c6)](_0x4cc590(0x1c4));}),_0x37d879;}[_0x402d19(0x209)](){const _0x57de20=_0x402d19,_0x215877=new _0x1ff45e();return _0x215877[_0x57de20(0x1c7)]({'label':_0x587cb4(this[_0x57de20(0x1ec)],_0x57de20(0x1c3)),'icon':_0x502d1c,'withText':!0x0,'class':Lo,'isToggleable':!0x0,'tooltip':_0x587cb4(this[_0x57de20(0x1ec)],_0x57de20(0x1c3)),'tooltipPosition':Jo}),_0x215877[_0x57de20(0x1f4)]({'attributes':{'class':[Go]}}),_0x215877['on'](_0x57de20(0x1f0),()=>{const _0x4510d9=_0x57de20;console[_0x4510d9(0x216)](_0x4510d9(0x1de)),alert(_0x4510d9(0x1de));}),_0x215877;}[_0x402d19(0x20f)](){const _0x2ea731=_0x402d19,_0x216ccb=_0x1b8ab0(this[_0x2ea731(0x1ec)]);return _0x216ccb[_0x2ea731(0x1c7)]({'panelPosition':'ne','class':[Yo]}),_0x216ccb[_0x2ea731(0x20e)][_0x2ea731(0x1c7)]({'label':_0x587cb4(this[_0x2ea731(0x1ec)],_0x2ea731(0x1f1)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':Jo}),this[_0x2ea731(0x1f9)](_0x216ccb,_0x2ea731(0x1f0),_0x280732=>{const _0x509e4e=_0x2ea731;this[_0x509e4e(0x1c6)](_0x509e4e(0x1e0),_0x280732[_0x509e4e(0x1c1)][_0x509e4e(0x202)]);}),_0x216ccb;}[_0x402d19(0x1d5)](){const _0x4b7a37=_0x402d19,_0x2b4172=new Ko(this[_0x4b7a37(0x1ec)]);return _0x2b4172[_0x4b7a37(0x20a)](_0x4b7a37(0x20c))['to'](this,_0x4b7a37(0x1c9),_0x475dd2=>_0x475dd2??''),_0x2b4172[_0x4b7a37(0x20a)](_0x4b7a37(0x1fe))['to'](this,_0x4b7a37(0x1fa),this,_0x4b7a37(0x1c9),(_0xb27f8e,_0x11bcc1)=>!_0xb27f8e&&!_0x11bcc1?.[_0x4b7a37(0x1f3)]()[_0x4b7a37(0x207)](_0x4b7a37(0x1e3))),_0x2b4172;}}class Ws extends _0x3b3591{constructor(_0xb2a12a,_0x3ef2f7){const _0x5e1024=_0x402d19;super();const _0x57475e=this[_0x5e1024(0x203)],_0x5ce0bc=this[_0x5e1024(0x1cb)]();this[_0x5e1024(0x1e1)]({'tag':_0x5e1024(0x20b),'attributes':{'class':['ck',_0x5e1024(0x21f)],'style':_0x57475e['to'](_0x5e1024(0x1ff)),'id':_0x57475e['to']('id')},'children':[{'tag':_0x5e1024(0x20b),'attributes':{'class':[qo]},'children':[{'text':_0x57475e['to'](_0x5e1024(0x20c))}]},{'tag':_0x5e1024(0x20b),'attributes':{'class':[zo]},'children':[{'tag':_0x5e1024(0x225),'children':[{'text':_0x3ef2f7[_0x5e1024(0x1e9)]}]}]},{'tag':_0x5e1024(0x20b),'attributes':{'class':[Fo]},'children':_0x5ce0bc}]}),_0x5ce0bc[_0x5e1024(0x1d1)](this[_0x5e1024(0x1d9)](_0xb2a12a,_0x24d250,_0x5e1024(0x1f2),_0x3ef2f7[_0x5e1024(0x1da)][_0x5e1024(0x1e6)]?.[_0x5e1024(0x1d8)]??!0x1)),_0x5ce0bc[_0x5e1024(0x1d1)](this[_0x5e1024(0x1d9)](_0xb2a12a,_0x54a27f,_0x5e1024(0x206),_0x3ef2f7[_0x5e1024(0x1da)][_0x5e1024(0x1f5)]?.[_0x5e1024(0x1d8)]??!0x1));}[_0x402d19(0x1d9)](_0x40ffcf,_0x55369e,_0x13c02c,_0x41e350){const _0x416c83=_0x402d19,_0x5a8265=new _0x388a85();_0x5a8265[_0x416c83(0x200)]=_0x55369e;const _0x49e273=new _0x44311d(_0x40ffcf);_0x49e273[_0x416c83(0x1e1)]({'tag':_0x416c83(0x225),'children':[{'text':_0x587cb4(_0x40ffcf,_0x13c02c)+':\x20'}]});const _0x39950a=new _0x44311d(_0x40ffcf);return _0x39950a[_0x416c83(0x1e1)]({'tag':_0x416c83(0x225),'children':[{'text':_0x587cb4(_0x40ffcf,_0x41e350?_0x416c83(0x1c2):_0x416c83(0x1c5))}]}),[_0x5a8265,_0x49e273,_0x39950a];}}class Ko extends _0x44311d{constructor(_0x2fed8d){const _0x5dcdb6=_0x402d19;super(_0x2fed8d),this[_0x5dcdb6(0x1c7)](_0x5dcdb6(0x20c),void 0x0),this[_0x5dcdb6(0x1c7)](_0x5dcdb6(0x1fe),!0x0);const _0x1baa13=this[_0x5dcdb6(0x203)];this[_0x5dcdb6(0x1e1)]({'tag':_0x5dcdb6(0x225),'attributes':{'class':['ck',_0x5dcdb6(0x1f6),_0x1baa13['if'](_0x5dcdb6(0x1fe),_0x5dcdb6(0x214),_0x14f50c=>!_0x14f50c)]},'children':[{'text':_0x1baa13['to'](_0x5dcdb6(0x20c))}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2377cb=_0x16ef;(function(_0x1496e7,_0x1c17a7){const _0x28029b=_0x16ef,_0x2c6c02=_0x1496e7();while(!![]){try{const _0xde50b7=-parseInt(_0x28029b(0x128))/0x1*(parseInt(_0x28029b(0x13b))/0x2)+-parseInt(_0x28029b(0x113))/0x3+-parseInt(_0x28029b(0x138))/0x4+parseInt(_0x28029b(0x134))/0x5*(parseInt(_0x28029b(0x14a))/0x6)+-parseInt(_0x28029b(0x13f))/0x7*(-parseInt(_0x28029b(0x125))/0x8)+parseInt(_0x28029b(0x150))/0x9*(parseInt(_0x28029b(0x11c))/0xa)+parseInt(_0x28029b(0x14b))/0xb*(parseInt(_0x28029b(0x148))/0xc);if(_0xde50b7===_0x1c17a7)break;else _0x2c6c02['push'](_0x2c6c02['shift']());}catch(_0x23f1ca){_0x2c6c02['push'](_0x2c6c02['shift']());}}}(_0x2214,0xd57b0));import{IconSubmit as _0x420b0a}from'ckeditor5/src/icons.js';function _0x2214(){const _0x54500a=['minRows','413189zUbwzj','_addContextButtonView','ck-ai-chat__prompt-input','uiLanguageDirection','AI_CHAT_PROMPT_EMPTY_ERROR','style','fire','MIN_ROWS','ck-ai-chat__prompt-submit-button','setIsUploadInProgress','add','target','5TFjgNo','keystrokes','calc(','right','2462008pFTvtC','left','queryView','2UTdMbt','sendUserMessage','bind','trim','2842287zRFouV','destroy','hasError','px\x20-\x20var(--ck-spacing-tiny))','fieldWrapperChildren','focusableChildren','excludeScrollbarsAndBorders','maxRows','isEnabled','7635972YNbkoN','value','3644718nlMkiw','11yLNUrz','placeholder','extendTemplate','_createSubmitButton','_queryViewResizeObserver','36NqshzW','isEmpty','update','requestAnimationFrame','window','element','4884231lBZEef','rtl','submit','_setUpAddContextButtonPositioning','locale','enter','errorText','reset','render','1658090YluObS','setPlaceholderText','submitButtonView','set','AI_CHAT_LABEL_SUBMIT','execute','fieldView','MAX_ROWS','isUploadInProgress','32UgEWMS','width'];_0x2214=function(){return _0x54500a;};return _0x2214();}import{ButtonView as _0x26ce51,AutocompleteView as _0x24e19c,createLabeledTextarea as _0x4f75a8}from'ckeditor5/src/ui.js';import{global as _0x5739e6,isVisible as _0x32859f,Rect as _0x4f4349,ResizeObserver as _0x435f9b}from'ckeditor5/src/utils.js';import{getTranslation as _0x5394e3}from'../../../aicore/utils/common-translations.js';import{AIChatPromptSuggestionsListView as _0x5748a4}from'./aichatpromptsuggestionslistview.js';import{escape as _0x49301e}from'es-toolkit/compat';function _0x16ef(_0x4dad4d,_0x4d4e7d){const _0x221420=_0x2214();return _0x16ef=function(_0x16efd9,_0x66b2f){_0x16efd9=_0x16efd9-0x10f;let _0x2668db=_0x221420[_0x16efd9];return _0x2668db;},_0x16ef(_0x4dad4d,_0x4d4e7d);}export class AIChatPromptInputView extends _0x24e19c{[_0x2377cb(0x11e)];static [_0x2377cb(0x12f)]=0x1;static [_0x2377cb(0x123)]=0xc;[_0x2377cb(0x129)];[_0x2377cb(0x14f)];constructor(_0xc84276,_0x292ada){const _0x4f90d4=_0x2377cb;super(_0xc84276,{'queryView':{'label':'','creator':_0x4f75a8,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x5748a4(_0xc84276),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x4f90d4(0x11f)](_0x4f90d4(0x151),!0x0),this[_0x4f90d4(0x11f)](_0x4f90d4(0x124),!0x1),this[_0x4f90d4(0x129)]=_0x292ada,this[_0x4f90d4(0x14f)]=null,this[_0x4f90d4(0x13a)][_0x4f90d4(0x122)][_0x4f90d4(0x127)]=AIChatPromptInputView[_0x4f90d4(0x12f)],this[_0x4f90d4(0x13a)][_0x4f90d4(0x122)][_0x4f90d4(0x146)]=AIChatPromptInputView[_0x4f90d4(0x123)],this[_0x4f90d4(0x13a)][_0x4f90d4(0x143)][_0x4f90d4(0x132)](this[_0x4f90d4(0x129)]),this[_0x4f90d4(0x116)](),this[_0x4f90d4(0x14d)]({'attributes':{'class':['ck',_0x4f90d4(0x12a)]}}),this[_0x4f90d4(0x11e)]=this[_0x4f90d4(0x14e)](),this[_0x4f90d4(0x11e)][_0x4f90d4(0x13d)](_0x4f90d4(0x147))['to'](this,_0x4f90d4(0x151),this,_0x4f90d4(0x124),(_0x2a7768,_0x1aafcf)=>!_0x2a7768&&!_0x1aafcf),this[_0x4f90d4(0x144)][_0x4f90d4(0x132)](this[_0x4f90d4(0x11e)]);}[_0x2377cb(0x11b)](){const _0x32b25a=_0x2377cb;super[_0x32b25a(0x11b)](),this[_0x32b25a(0x13a)][_0x32b25a(0x143)][_0x32b25a(0x132)](this[_0x32b25a(0x11e)]),this[_0x32b25a(0x135)][_0x32b25a(0x11f)](_0x32b25a(0x118),(_0x554581,_0x3ed4df)=>{const _0x5cfa9d=_0x32b25a;this[_0x5cfa9d(0x124)]||this[_0x5cfa9d(0x151)]||_0x554581[_0x5cfa9d(0x133)]==this[_0x5cfa9d(0x13a)][_0x5cfa9d(0x122)][_0x5cfa9d(0x112)]&&(this[_0x5cfa9d(0x115)](),_0x3ed4df());}),this[_0x32b25a(0x13a)][_0x32b25a(0x122)]['on'](_0x32b25a(0x10f),()=>{const _0x449bb3=_0x32b25a;this[_0x449bb3(0x151)]=''===this[_0x449bb3(0x13a)][_0x449bb3(0x122)][_0x449bb3(0x112)][_0x449bb3(0x149)]?.[_0x449bb3(0x13e)]();});}[_0x2377cb(0x140)](){const _0x349b10=_0x2377cb;super[_0x349b10(0x140)](),this[_0x349b10(0x14f)]&&this[_0x349b10(0x14f)][_0x349b10(0x140)]();}[_0x2377cb(0x115)](){const _0x2d3456=_0x2377cb,_0x4599de=this[_0x2d3456(0x13a)][_0x2d3456(0x122)][_0x2d3456(0x112)][_0x2d3456(0x149)]?.[_0x2d3456(0x13e)]();if(!_0x4599de)return this[_0x2d3456(0x13a)][_0x2d3456(0x119)]=_0x5394e3(this[_0x2d3456(0x117)],_0x2d3456(0x12c)),void(this[_0x2d3456(0x13a)][_0x2d3456(0x122)][_0x2d3456(0x141)]=!0x0);this[_0x2d3456(0x13a)][_0x2d3456(0x122)][_0x2d3456(0x141)]=!0x1;const _0x46d984=_0x49301e(_0x4599de);this[_0x2d3456(0x12e)](_0x2d3456(0x13c),_0x46d984),this[_0x2d3456(0x13a)][_0x2d3456(0x122)][_0x2d3456(0x11a)]();}[_0x2377cb(0x11d)](_0x545d0f){const _0x38e9d4=_0x2377cb;this[_0x38e9d4(0x13a)][_0x38e9d4(0x122)][_0x38e9d4(0x11f)](_0x38e9d4(0x14c),_0x545d0f);}[_0x2377cb(0x14e)](){const _0x55e350=_0x2377cb,_0x23bdd4=new _0x26ce51(this[_0x55e350(0x117)]);return _0x23bdd4[_0x55e350(0x11f)]({'icon':_0x420b0a,'label':_0x5394e3(this[_0x55e350(0x117)],_0x55e350(0x120)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x55e350(0x130),'isEnabled':!0x1}),_0x23bdd4['on'](_0x55e350(0x121),()=>{const _0x1a854d=_0x55e350;this[_0x1a854d(0x115)]();}),_0x23bdd4;}[_0x2377cb(0x131)](_0x1e8802){const _0x27de7c=_0x2377cb;this[_0x27de7c(0x124)]=_0x1e8802;}[_0x2377cb(0x116)](){const _0x54be9a=_0x2377cb,_0xd10bfa=this[_0x54be9a(0x117)],_0x56cedc=()=>{const _0xfde639=_0x54be9a;_0x5739e6[_0xfde639(0x111)][_0xfde639(0x110)](()=>{const _0x1259d6=_0xfde639;if(_0x32859f(this[_0x1259d6(0x112)])){const _0x5de01c=new _0x4f4349(this[_0x1259d6(0x13a)][_0x1259d6(0x122)][_0x1259d6(0x112)]),_0x263edc=new _0x4f4349(this[_0x1259d6(0x129)][_0x1259d6(0x112)]),_0x46bc7f=_0x5de01c[_0x1259d6(0x126)],_0x34faf8=_0x1259d6(0x114)===_0xd10bfa[_0x1259d6(0x12b)]?_0x1259d6(0x137):_0x1259d6(0x139);_0x5de01c[_0x1259d6(0x145)]();const _0x2d488f=_0x46bc7f-_0x5de01c[_0x1259d6(0x126)]+0x1;this[_0x1259d6(0x129)][_0x1259d6(0x112)][_0x1259d6(0x12d)][_0x34faf8]=_0x1259d6(0x136)+(_0x46bc7f-_0x263edc[_0x1259d6(0x126)]-_0x2d488f)+_0x1259d6(0x142);}});};this[_0x54be9a(0x13a)][_0x54be9a(0x122)]['on'](_0x54be9a(0x10f),_0x56cedc),this['on'](_0x54be9a(0x11b),()=>{const _0x19a65c=_0x54be9a;_0x56cedc(),this[_0x19a65c(0x14f)]=new _0x435f9b(this[_0x19a65c(0x13a)][_0x19a65c(0x122)][_0x19a65c(0x112)],()=>{_0x56cedc();});});}}
23
+ const _0x4e3df2=_0x5ad7;function _0x5ad7(_0x52efde,_0x4c6bf5){const _0x2ef529=_0x2ef5();return _0x5ad7=function(_0x5ad721,_0x3bb4ce){_0x5ad721=_0x5ad721-0x1dd;let _0x629db9=_0x2ef529[_0x5ad721];return _0x629db9;},_0x5ad7(_0x52efde,_0x4c6bf5);}(function(_0x4d88ed,_0x4dd6bd){const _0xe82e80=_0x5ad7,_0x2815a3=_0x4d88ed();while(!![]){try{const _0x154b74=-parseInt(_0xe82e80(0x21a))/0x1+-parseInt(_0xe82e80(0x1f9))/0x2*(-parseInt(_0xe82e80(0x21b))/0x3)+-parseInt(_0xe82e80(0x211))/0x4+parseInt(_0xe82e80(0x204))/0x5*(parseInt(_0xe82e80(0x1f1))/0x6)+parseInt(_0xe82e80(0x210))/0x7+parseInt(_0xe82e80(0x209))/0x8+-parseInt(_0xe82e80(0x1df))/0x9*(parseInt(_0xe82e80(0x1ed))/0xa);if(_0x154b74===_0x4dd6bd)break;else _0x2815a3['push'](_0x2815a3['shift']());}catch(_0x56c2a7){_0x2815a3['push'](_0x2815a3['shift']());}}}(_0x2ef5,0x78e2c));import{IconSubmit as _0x41d53f}from'ckeditor5/src/icons.js';import{ButtonView as _0x30b0f5,AutocompleteView as _0x438efd,createLabeledTextarea as _0x1fca82}from'ckeditor5/src/ui.js';import{global as _0xcaa75a,isVisible as _0x485f3b,Rect as _0x2d22be,ResizeObserver as _0x458955}from'ckeditor5/src/utils.js';import{getTranslation as _0x7d5a9c}from'../../../aicore/utils/common-translations.js';import{AIChatPromptSuggestionsListView as _0x555b37}from'./aichatpromptsuggestionslistview.js';import{escape as _0x3291c6}from'es-toolkit/compat';function _0x2ef5(){const _0x2383a2=['fire','_createSubmitButton','extendTemplate','destroy','calc(','isUploadInProgress','324631Zgrsvl','501NbAvIx','requestAnimationFrame','_setUpAddContextButtonPositioning','width','keystrokes','15818157usfbrv','right','rtl','element','value','submitButtonView','enter','ck-ai-chat__prompt-submit-button','MAX_ROWS','px\x20-\x20var(--ck-spacing-tiny))','ck-ai-chat__prompt-input','update','_queryViewResizeObserver','errorText','10nJJrAn','window','trim','_addContextButtonView','810VbhReP','AI_CHAT_LABEL_SUBMIT','minRows','set','setIsUploadInProgress','sendUserMessage','target','queryView','6348UNOiIx','hasError','focusableChildren','isEmpty','setPlaceholderText','bind','excludeScrollbarsAndBorders','placeholder','add','left','render','12580wYiDhQ','execute','fieldWrapperChildren','style','maxRows','7354648LMhEcg','fieldView','AI_CHAT_PROMPT_EMPTY_ERROR','uiLanguageDirection','submit','isEnabled','MIN_ROWS','5689411yseMhn','97880mvDRYz','locale','reset'];_0x2ef5=function(){return _0x2383a2;};return _0x2ef5();}export class AIChatPromptInputView extends _0x438efd{[_0x4e3df2(0x1e4)];static [_0x4e3df2(0x20f)]=0x1;static [_0x4e3df2(0x1e7)]=0xc;[_0x4e3df2(0x1f0)];[_0x4e3df2(0x1eb)];constructor(_0x3d925c,_0x1a2c01){const _0x5f21db=_0x4e3df2;super(_0x3d925c,{'queryView':{'label':'','creator':_0x1fca82,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x555b37(_0x3d925c),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x5f21db(0x1f4)](_0x5f21db(0x1fc),!0x0),this[_0x5f21db(0x1f4)](_0x5f21db(0x219),!0x1),this[_0x5f21db(0x1f0)]=_0x1a2c01,this[_0x5f21db(0x1eb)]=null,this[_0x5f21db(0x1f8)][_0x5f21db(0x20a)][_0x5f21db(0x1f3)]=AIChatPromptInputView[_0x5f21db(0x20f)],this[_0x5f21db(0x1f8)][_0x5f21db(0x20a)][_0x5f21db(0x208)]=AIChatPromptInputView[_0x5f21db(0x1e7)],this[_0x5f21db(0x1f8)][_0x5f21db(0x206)][_0x5f21db(0x201)](this[_0x5f21db(0x1f0)]),this[_0x5f21db(0x21d)](),this[_0x5f21db(0x216)]({'attributes':{'class':['ck',_0x5f21db(0x1e9)]}}),this[_0x5f21db(0x1e4)]=this[_0x5f21db(0x215)](),this[_0x5f21db(0x1e4)][_0x5f21db(0x1fe)](_0x5f21db(0x20e))['to'](this,_0x5f21db(0x1fc),this,_0x5f21db(0x219),(_0xa0373e,_0x25240f)=>!_0xa0373e&&!_0x25240f),this[_0x5f21db(0x1fb)][_0x5f21db(0x201)](this[_0x5f21db(0x1e4)]);}[_0x4e3df2(0x203)](){const _0x607f33=_0x4e3df2;super[_0x607f33(0x203)](),this[_0x607f33(0x1f8)][_0x607f33(0x206)][_0x607f33(0x201)](this[_0x607f33(0x1e4)]),this[_0x607f33(0x1de)][_0x607f33(0x1f4)](_0x607f33(0x1e5),(_0x370061,_0x328823)=>{const _0x53f7af=_0x607f33;this[_0x53f7af(0x219)]||this[_0x53f7af(0x1fc)]||_0x370061[_0x53f7af(0x1f7)]==this[_0x53f7af(0x1f8)][_0x53f7af(0x20a)][_0x53f7af(0x1e2)]&&(this[_0x53f7af(0x20d)](),_0x328823());}),this[_0x607f33(0x1f8)][_0x607f33(0x20a)]['on'](_0x607f33(0x1ea),()=>{const _0x2e19e3=_0x607f33;this[_0x2e19e3(0x1fc)]=''===this[_0x2e19e3(0x1f8)][_0x2e19e3(0x20a)][_0x2e19e3(0x1e2)][_0x2e19e3(0x1e3)]?.[_0x2e19e3(0x1ef)]();});}[_0x4e3df2(0x217)](){const _0x49ba6a=_0x4e3df2;super[_0x49ba6a(0x217)](),this[_0x49ba6a(0x1eb)]&&this[_0x49ba6a(0x1eb)][_0x49ba6a(0x217)]();}[_0x4e3df2(0x20d)](){const _0x3c65b5=_0x4e3df2,_0x446c3f=this[_0x3c65b5(0x1f8)][_0x3c65b5(0x20a)][_0x3c65b5(0x1e2)][_0x3c65b5(0x1e3)]?.[_0x3c65b5(0x1ef)]();if(!_0x446c3f)return this[_0x3c65b5(0x1f8)][_0x3c65b5(0x1ec)]=_0x7d5a9c(this[_0x3c65b5(0x212)],_0x3c65b5(0x20b)),void(this[_0x3c65b5(0x1f8)][_0x3c65b5(0x20a)][_0x3c65b5(0x1fa)]=!0x0);this[_0x3c65b5(0x1f8)][_0x3c65b5(0x20a)][_0x3c65b5(0x1fa)]=!0x1;const _0x4eb8c2=_0x3291c6(_0x446c3f);this[_0x3c65b5(0x214)](_0x3c65b5(0x1f6),_0x4eb8c2),this[_0x3c65b5(0x1f8)][_0x3c65b5(0x20a)][_0x3c65b5(0x213)]();}[_0x4e3df2(0x1fd)](_0x44056c){const _0x1cf0fd=_0x4e3df2;this[_0x1cf0fd(0x1f8)][_0x1cf0fd(0x20a)][_0x1cf0fd(0x1f4)](_0x1cf0fd(0x200),_0x44056c);}[_0x4e3df2(0x215)](){const _0x49291f=_0x4e3df2,_0x41716a=new _0x30b0f5(this[_0x49291f(0x212)]);return _0x41716a[_0x49291f(0x1f4)]({'icon':_0x41d53f,'label':_0x7d5a9c(this[_0x49291f(0x212)],_0x49291f(0x1f2)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x49291f(0x1e6),'isEnabled':!0x1}),_0x41716a['on'](_0x49291f(0x205),()=>{const _0x994e58=_0x49291f;this[_0x994e58(0x20d)]();}),_0x41716a;}[_0x4e3df2(0x1f5)](_0x316473){const _0x1bd584=_0x4e3df2;this[_0x1bd584(0x219)]=_0x316473;}[_0x4e3df2(0x21d)](){const _0x539c4f=_0x4e3df2,_0x3c149f=this[_0x539c4f(0x212)],_0x3a4704=()=>{const _0x77900a=_0x539c4f;_0xcaa75a[_0x77900a(0x1ee)][_0x77900a(0x21c)](()=>{const _0x59d5e8=_0x77900a;if(_0x485f3b(this[_0x59d5e8(0x1e2)])){const _0x42f6a1=new _0x2d22be(this[_0x59d5e8(0x1f8)][_0x59d5e8(0x20a)][_0x59d5e8(0x1e2)]),_0x34c206=new _0x2d22be(this[_0x59d5e8(0x1f0)][_0x59d5e8(0x1e2)]),_0x938e7d=_0x42f6a1[_0x59d5e8(0x1dd)],_0x4c08ca=_0x59d5e8(0x1e1)===_0x3c149f[_0x59d5e8(0x20c)]?_0x59d5e8(0x1e0):_0x59d5e8(0x202);_0x42f6a1[_0x59d5e8(0x1ff)]();const _0x2c2cd5=_0x938e7d-_0x42f6a1[_0x59d5e8(0x1dd)]+0x1;this[_0x59d5e8(0x1f0)][_0x59d5e8(0x1e2)][_0x59d5e8(0x207)][_0x4c08ca]=_0x59d5e8(0x218)+(_0x938e7d-_0x34c206[_0x59d5e8(0x1dd)]-_0x2c2cd5)+_0x59d5e8(0x1e8);}});};this[_0x539c4f(0x1f8)][_0x539c4f(0x20a)]['on'](_0x539c4f(0x1ea),_0x3a4704),this['on'](_0x539c4f(0x203),()=>{const _0x13d378=_0x539c4f;_0x3a4704(),this[_0x13d378(0x1eb)]=new _0x458955(this[_0x13d378(0x1f8)][_0x13d378(0x20a)][_0x13d378(0x1e2)],()=>{_0x3a4704();});});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x3c2e(_0x4c69a7,_0x5bd15a){const _0x2d5acf=_0x2d5a();return _0x3c2e=function(_0x3c2e5c,_0x43145e){_0x3c2e5c=_0x3c2e5c-0x167;let _0x2bb8b7=_0x2d5acf[_0x3c2e5c];return _0x2bb8b7;},_0x3c2e(_0x4c69a7,_0x5bd15a);}const _0x45a5fe=_0x3c2e;(function(_0x4daf70,_0x1a09ad){const _0x47cb7c=_0x3c2e,_0x199f31=_0x4daf70();while(!![]){try{const _0x52316c=-parseInt(_0x47cb7c(0x16b))/0x1*(parseInt(_0x47cb7c(0x173))/0x2)+parseInt(_0x47cb7c(0x16f))/0x3*(parseInt(_0x47cb7c(0x172))/0x4)+-parseInt(_0x47cb7c(0x171))/0x5+parseInt(_0x47cb7c(0x16d))/0x6+parseInt(_0x47cb7c(0x168))/0x7+-parseInt(_0x47cb7c(0x16e))/0x8+-parseInt(_0x47cb7c(0x170))/0x9*(-parseInt(_0x47cb7c(0x169))/0xa);if(_0x52316c===_0x1a09ad)break;else _0x199f31['push'](_0x199f31['shift']());}catch(_0x2493ca){_0x199f31['push'](_0x199f31['shift']());}}}(_0x2d5a,0x9625e));function _0x2d5a(){const _0x375fcb=['443244EEfbYg','92691gNiZfC','4382630EaFVBO','20LmITZG','2169348kiWExk','length','4451531FutowJ','1230xqSOZz','filter','1YZcSOG','items','3689850IkRyln','5441752TYOIdg'];_0x2d5a=function(){return _0x375fcb;};return _0x2d5a();}import{ListView as _0x2a07e6}from'ckeditor5/src/ui.js';export class AIChatPromptSuggestionsListView extends _0x2a07e6{[_0x45a5fe(0x16a)](){const _0xf591a6=_0x45a5fe;let _0x362c34=0x0;for(const _0xb43956 of this[_0xf591a6(0x16c)])_0x362c34+=_0xb43956[_0xf591a6(0x16c)][_0xf591a6(0x167)];return{'resultsCount':_0x362c34,'totalItemsCount':_0x362c34};}}
23
+ function _0xf8a1(_0x39c8c8,_0x5792f3){const _0xd58f05=_0xd58f();return _0xf8a1=function(_0xf8a1c5,_0x5649a2){_0xf8a1c5=_0xf8a1c5-0x12d;let _0x5a0327=_0xd58f05[_0xf8a1c5];return _0x5a0327;},_0xf8a1(_0x39c8c8,_0x5792f3);}function _0xd58f(){const _0x11675a=['length','12ldbdDY','104LMDROs','2015864cklsnM','filter','270099QGlyja','62763LNwFJc','1455937RPgSNr','75420efumbN','264khoYwm','2082640GOtFuE','251422qnApRJ','items','6eCuuCK'];_0xd58f=function(){return _0x11675a;};return _0xd58f();}const _0x4144f9=_0xf8a1;(function(_0x377438,_0xde0a5b){const _0x53a230=_0xf8a1,_0x5bf46f=_0x377438();while(!![]){try{const _0x33ecaf=-parseInt(_0x53a230(0x131))/0x1+parseInt(_0x53a230(0x133))/0x2*(-parseInt(_0x53a230(0x13a))/0x3)+parseInt(_0x53a230(0x137))/0x4+-parseInt(_0x53a230(0x130))/0x5+parseInt(_0x53a230(0x135))/0x6*(parseInt(_0x53a230(0x12d))/0x7)+-parseInt(_0x53a230(0x136))/0x8*(-parseInt(_0x53a230(0x139))/0x9)+parseInt(_0x53a230(0x12e))/0xa*(-parseInt(_0x53a230(0x12f))/0xb);if(_0x33ecaf===_0xde0a5b)break;else _0x5bf46f['push'](_0x5bf46f['shift']());}catch(_0x48e0c7){_0x5bf46f['push'](_0x5bf46f['shift']());}}}(_0xd58f,0x61422));import{ListView as _0x1c0ace}from'ckeditor5/src/ui.js';export class AIChatPromptSuggestionsListView extends _0x1c0ace{[_0x4144f9(0x138)](){const _0x448922=_0x4144f9;let _0x1e2c4c=0x0;for(const _0x58389c of this[_0x448922(0x132)])_0x1e2c4c+=_0x58389c[_0x448922(0x132)][_0x448922(0x134)];return{'resultsCount':_0x1e2c4c,'totalItemsCount':_0x1e2c4c};}}
@@ -7,7 +7,7 @@
7
7
  */
8
8
  import { type Locale } from 'ckeditor5/src/utils.js';
9
9
  import { ListView } from 'ckeditor5/src/ui.js';
10
- import { type AIContextProvider, type AIContextResourceState } from '../../../../aichat/model/aichatcontext.js';
10
+ import { type AIContextProvider, type AIContextResourceState } from '../../../model/aichatcontext.js';
11
11
  /**
12
12
  * A specialized list view for displaying AI context resources.
13
13
  *
@@ -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 _0x2e896e=_0x522d;(function(_0x2c11f8,_0x279f7f){const _0x5f4877=_0x522d,_0xbe93aa=_0x2c11f8();while(!![]){try{const _0x2b4fb6=parseInt(_0x5f4877(0x157))/0x1*(parseInt(_0x5f4877(0x15f))/0x2)+parseInt(_0x5f4877(0x169))/0x3+-parseInt(_0x5f4877(0x170))/0x4*(-parseInt(_0x5f4877(0x16b))/0x5)+-parseInt(_0x5f4877(0x159))/0x6+-parseInt(_0x5f4877(0x166))/0x7+-parseInt(_0x5f4877(0x155))/0x8*(parseInt(_0x5f4877(0x150))/0x9)+parseInt(_0x5f4877(0x152))/0xa*(parseInt(_0x5f4877(0x15e))/0xb);if(_0x2b4fb6===_0x279f7f)break;else _0xbe93aa['push'](_0xbe93aa['shift']());}catch(_0x335f18){_0xbe93aa['push'](_0xbe93aa['shift']());}}}(_0x2b56,0x40ecc));import{ListView as _0x53660a}from'ckeditor5/src/ui.js';import{AIChatResourceListItemView as _0x26338a}from'./aichatresourcelistitemview.js';const sc=_0x2e896e(0x16c);function _0x522d(_0xbc4f22,_0x1d8c0f){const _0x2b5650=_0x2b56();return _0x522d=function(_0x522d09,_0x240f60){_0x522d09=_0x522d09-0x150;let _0xa80c2=_0x2b5650[_0x522d09];return _0xa80c2;},_0x522d(_0xbc4f22,_0x1d8c0f);}export class AIChatContextResourcesListView extends _0x53660a{[_0x2e896e(0x16e)];constructor(_0x3d6d26,_0x2ddfb1){const _0x22d91d=_0x2e896e;super(_0x3d6d26),this[_0x22d91d(0x16e)]=_0x2ddfb1,this[_0x22d91d(0x15b)]({'attributes':{'class':[sc]}});}[_0x2e896e(0x16a)](_0x2db049,_0x5ca007){const _0x68d8ce=_0x2e896e;this[_0x68d8ce(0x15c)][_0x68d8ce(0x165)]();let _0x4eb36a=_0x2db049;if(this[_0x68d8ce(0x16e)][_0x68d8ce(0x162)]&&_0x5ca007&&''!==_0x5ca007[_0x68d8ce(0x156)]()){const _0x2c75e0=new RegExp(_0x5ca007[_0x68d8ce(0x160)](/[.*+?^${}()|[\]\\]/g,_0x68d8ce(0x16f)),'gi');_0x4eb36a=_0x2db049[_0x68d8ce(0x171)](_0x1717ac=>_0x2c75e0[_0x68d8ce(0x15a)](_0x1717ac[_0x68d8ce(0x154)]));}for(const _0x1e738f of _0x4eb36a){const _0x45c8f0=new _0x26338a(this[_0x68d8ce(0x168)],_0x1e738f);_0x45c8f0['on'](_0x68d8ce(0x15d),()=>{const _0x4282bd=_0x68d8ce;this[_0x4282bd(0x151)](this[_0x4282bd(0x16e)],_0x1e738f);}),this[_0x68d8ce(0x15c)][_0x68d8ce(0x158)](_0x45c8f0);}this[_0x68d8ce(0x16e)][_0x68d8ce(0x162)]&&this[_0x68d8ce(0x164)](_0x5ca007);}[_0x2e896e(0x164)](_0x1e0db8){const _0xf8818d=_0x2e896e;this[_0xf8818d(0x16e)][_0xf8818d(0x162)]&&this[_0xf8818d(0x15c)][_0xf8818d(0x163)](_0xbf61e=>{const _0x37377f=_0xf8818d;_0xbf61e[_0x37377f(0x164)](_0x1e0db8);});}[_0x2e896e(0x167)](_0x17163b,_0x4dd738){const _0x27d80f=_0x2e896e;for(const _0x36f63f of this[_0x27d80f(0x15c)]){const _0x225986=_0x36f63f;_0x225986[_0x27d80f(0x153)]['id']===_0x17163b&&_0x225986[_0x27d80f(0x167)](_0x4dd738);}}[_0x2e896e(0x151)](_0x174799,_0x5dfb1b){const _0xe17876=_0x2e896e;this[_0xe17876(0x161)](_0xe17876(0x16d),{'source':_0x174799,'resource':_0x5dfb1b});}}function _0x2b56(){const _0x554d0a=['clear','2618728KzJqlA','updateResourceState','locale','262515zkImaL','setResources','2965mYdald','ck-ai-chat-resources__list','addResourceToContext','_source','\x5c$&','3120RHzAIo','filter','163107yFDpOV','_handleResourceSelection','2440EbKPxj','resource','label','168pdLUyk','trim','112157cNjLHq','add','2335164IiLtUS','test','extendTemplate','items','execute','18535QrljFt','8kzaqMI','replace','fire','useDefaultFiltering','forEach','highlightText'];_0x2b56=function(){return _0x554d0a;};return _0x2b56();}
@@ -7,7 +7,7 @@
7
7
  */
8
8
  import { View } from 'ckeditor5/src/ui.js';
9
9
  import { type Locale } from 'ckeditor5/src/utils.js';
10
- import { type AIContextResourceState, type AIContextProvider } from '../../../../aichat/model/aichatcontext.js';
10
+ import { type AIContextResourceState, type AIContextProvider } from '../../../model/aichatcontext.js';
11
11
  /**
12
12
  * Main view component for AI context resources management.
13
13
  *
@@ -22,7 +22,10 @@ export declare class AIChatContextResourcesView extends View {
22
22
  * @param locale The locale instance for internationalization
23
23
  * @param source The AI context provider source for this resources view
24
24
  */
25
- constructor(locale: Locale, source: AIContextProvider);
25
+ constructor(locale: Locale, options: {
26
+ source: AIContextProvider;
27
+ searchInputVisibleFrom?: number;
28
+ });
26
29
  /**
27
30
  * Renders the view and initiates initial resource loading.
28
31
  */
@@ -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 _0x2a7595=_0x4b7e;function _0x4b7e(_0x21d9f8,_0x357c50){const _0x466f4c=_0x466f();return _0x4b7e=function(_0x4b7eb6,_0x50d56f){_0x4b7eb6=_0x4b7eb6-0x16f;let _0x4def71=_0x466f4c[_0x4b7eb6];return _0x4def71;},_0x4b7e(_0x21d9f8,_0x357c50);}(function(_0x5c264c,_0x5c08b9){const _0x4b2cd4=_0x4b7e,_0x42e818=_0x5c264c();while(!![]){try{const _0x324c4c=parseInt(_0x4b2cd4(0x190))/0x1*(-parseInt(_0x4b2cd4(0x184))/0x2)+-parseInt(_0x4b2cd4(0x196))/0x3*(-parseInt(_0x4b2cd4(0x19a))/0x4)+-parseInt(_0x4b2cd4(0x174))/0x5*(-parseInt(_0x4b2cd4(0x194))/0x6)+-parseInt(_0x4b2cd4(0x189))/0x7*(-parseInt(_0x4b2cd4(0x17a))/0x8)+parseInt(_0x4b2cd4(0x1a1))/0x9*(parseInt(_0x4b2cd4(0x19b))/0xa)+parseInt(_0x4b2cd4(0x179))/0xb*(-parseInt(_0x4b2cd4(0x18b))/0xc)+parseInt(_0x4b2cd4(0x197))/0xd*(-parseInt(_0x4b2cd4(0x191))/0xe);if(_0x324c4c===_0x5c08b9)break;else _0x42e818['push'](_0x42e818['shift']());}catch(_0xf6d186){_0x42e818['push'](_0x42e818['shift']());}}}(_0x466f,0x6341f));import{View as _0x2dbb41,ViewCollection as _0x3b7bec}from'ckeditor5/src/ui.js';import{uid as _0x851fa5}from'ckeditor5/src/utils.js';import{AIChatContextResourcesListView as _0x274111}from'./aichatcontextresourceslistview.js';import{AIChatContextResourcesSearchInputView as _0x72222b}from'./aichatresourcessearchinputview.js';function _0x466f(){const _0x199b8a=['ck-hidden','_searchView','_skeletonLoader','235SokMVo','_resourcesListView','bindTemplate','_source','ck-ai-chat-resources','176GMknJt','3504008xxyVMb','locale','setTemplate','delegate','highlightText','_createSearchSection','addResourceToContext','isLoading','_searchInputVisibleFrom','loadSourceResources','612MHMgLQ','length','loadResources','getQuery','fire','7mUyFtt','searchInputVisibleFrom','5352fshptd','_createResourcesListView','_latestLoadResourcesUid','_searchSection','setResources','2206krVldl','41748kkkCOx','source','set','65958eDiIfc','search','72VbnaWC','247WMgHVd','add','extendTemplate','12756WOTtXh','2270mOcFAc','updateResourceState','div','has','_createSkeletonView','useDefaultFiltering','4527wQdCTK','ck\x20ck-search','children','render','_createSearchView','aiChatResources'];_0x466f=function(){return _0x199b8a;};return _0x466f();}import{AISkeletonView as _0x5e823d,SKELETON_DEFINITIONS as _0x59f078}from'../../../../aicore/ui/aiskeleton.js';export class AIChatContextResourcesView extends _0x2dbb41{[_0x2a7595(0x172)];[_0x2a7595(0x18e)];[_0x2a7595(0x182)];[_0x2a7595(0x175)];[_0x2a7595(0x173)];[_0x2a7595(0x177)];[_0x2a7595(0x1a3)];[_0x2a7595(0x18d)]=null;constructor(_0x256f14,_0x1ee421){const _0x26778b=_0x2a7595;super(_0x256f14),this[_0x26778b(0x177)]=_0x1ee421[_0x26778b(0x192)],this[_0x26778b(0x182)]=_0x1ee421[_0x26778b(0x18a)]??0x7,this[_0x26778b(0x193)](_0x26778b(0x181),!0x0),this[_0x26778b(0x172)]=this[_0x26778b(0x16f)](),this[_0x26778b(0x18e)]=this[_0x26778b(0x17f)](),this[_0x26778b(0x175)]=this[_0x26778b(0x18c)](),this[_0x26778b(0x173)]=this[_0x26778b(0x19f)](),this[_0x26778b(0x1a3)]=new _0x3b7bec([this[_0x26778b(0x173)],this[_0x26778b(0x175)]]),this[_0x26778b(0x17c)]({'tag':_0x26778b(0x19d),'attributes':{'class':_0x26778b(0x178)},'children':this[_0x26778b(0x1a3)]});}[_0x2a7595(0x16f)](){const _0x1cb67d=_0x2a7595;return new _0x72222b(this[_0x1cb67d(0x17b)]);}[_0x2a7595(0x17f)](){const _0x1ea4ce=_0x2a7595,_0x3bafe4=new _0x2dbb41(this[_0x1ea4ce(0x17b)]);return _0x3bafe4[_0x1ea4ce(0x17c)]({'tag':_0x1ea4ce(0x19d),'attributes':{'class':_0x1ea4ce(0x1a2)},'children':[this[_0x1ea4ce(0x172)]]}),this[_0x1ea4ce(0x172)]['on'](_0x1ea4ce(0x195),(_0x242ba3,_0x48f2ec)=>{const _0x320d7f=_0x1ea4ce;this[_0x320d7f(0x186)](_0x48f2ec),this[_0x320d7f(0x177)][_0x320d7f(0x1a0)]&&this[_0x320d7f(0x175)][_0x320d7f(0x17e)](_0x48f2ec);}),_0x3bafe4;}[_0x2a7595(0x18c)](){const _0x52a83a=_0x2a7595,_0x1481d6=new _0x274111(this[_0x52a83a(0x17b)],this[_0x52a83a(0x177)]);return _0x1481d6[_0x52a83a(0x17d)](_0x52a83a(0x180))['to'](this),_0x1481d6[_0x52a83a(0x199)]({'attributes':{'class':this[_0x52a83a(0x176)]['if'](_0x52a83a(0x181),_0x52a83a(0x171))}}),_0x1481d6;}[_0x2a7595(0x19f)](){const _0x2924bc=_0x2a7595,_0x316d11=new _0x5e823d(this[_0x2924bc(0x17b)],_0x59f078[_0x2924bc(0x170)]);return _0x316d11[_0x2924bc(0x199)]({'attributes':{'class':[this[_0x2924bc(0x176)]['if'](_0x2924bc(0x181),_0x2924bc(0x171),_0x4fdaf8=>!_0x4fdaf8)]}}),_0x316d11;}[_0x2a7595(0x1a4)](){const _0x520370=_0x2a7595;super[_0x520370(0x1a4)](),this[_0x520370(0x186)]('');}[_0x2a7595(0x186)](_0x122cfe){const _0x5e6306=_0x2a7595,_0x3254e3=_0x851fa5();this[_0x5e6306(0x18d)]=_0x3254e3,this[_0x5e6306(0x188)](_0x5e6306(0x183),{'sourceId':this[_0x5e6306(0x177)]['id'],'query':_0x122cfe,'uid':_0x3254e3}),this[_0x5e6306(0x181)]=!0x0;}[_0x2a7595(0x18f)](_0x595403,_0xc64716){const _0x338417=_0x2a7595;if(_0xc64716&&_0xc64716!==this[_0x338417(0x18d)])return;const _0x365c3b=this[_0x338417(0x177)][_0x338417(0x1a0)]?this[_0x338417(0x172)][_0x338417(0x187)]():'';this[_0x338417(0x175)][_0x338417(0x18f)](_0x595403,_0x365c3b),_0x595403[_0x338417(0x185)]>=this[_0x338417(0x182)]&&!this[_0x338417(0x1a3)][_0x338417(0x19e)](this[_0x338417(0x18e)])&&this[_0x338417(0x1a3)][_0x338417(0x198)](this[_0x338417(0x18e)],0x0),requestAnimationFrame(()=>{const _0x37dc0a=_0x338417;this[_0x37dc0a(0x181)]=!0x1;});}[_0x2a7595(0x19c)](_0x30c6a0,_0x5a7d47){const _0x4b0286=_0x2a7595;this[_0x4b0286(0x175)][_0x4b0286(0x19c)](_0x30c6a0,_0x5a7d47);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3ff345=_0x73b7;(function(_0x49b78d,_0x5a585f){const _0x16c76f=_0x73b7,_0x5c8dae=_0x49b78d();while(!![]){try{const _0x37156f=-parseInt(_0x16c76f(0x106))/0x1*(parseInt(_0x16c76f(0x110))/0x2)+-parseInt(_0x16c76f(0xfe))/0x3+parseInt(_0x16c76f(0x10a))/0x4+parseInt(_0x16c76f(0xf5))/0x5*(parseInt(_0x16c76f(0x101))/0x6)+-parseInt(_0x16c76f(0xf0))/0x7*(parseInt(_0x16c76f(0xe8))/0x8)+-parseInt(_0x16c76f(0xf4))/0x9+parseInt(_0x16c76f(0x103))/0xa;if(_0x37156f===_0x5a585f)break;else _0x5c8dae['push'](_0x5c8dae['shift']());}catch(_0x10b59f){_0x5c8dae['push'](_0x5c8dae['shift']());}}}(_0x50d0,0x2244b));import{HighlightedTextView as _0x244965,IconView as _0x19effa,ListItemView as _0x30674e}from'ckeditor5/src/ui.js';function _0x73b7(_0x5625ff,_0x44f25d){const _0x50d058=_0x50d0();return _0x73b7=function(_0x73b75f,_0x11388f){_0x73b75f=_0x73b75f-0xe6;let _0xc4b5d5=_0x50d058[_0x73b75f];return _0xc4b5d5;},_0x73b7(_0x5625ff,_0x44f25d);}import{escapeRegExp as _0x532b24}from'es-toolkit/compat';import{AIContextItemType as _0x33b69c}from'../../../../aicore/model/aicontext.js';import{IconFileUpload as _0xa8fe80,IconCheck as _0x45e459,IconDocument as _0xca2425,IconDocumentOutline as _0x528aa1,IconLink as _0x44a079}from'@ckeditor/ckeditor5-icons';function _0x50d0(){const _0x35f8b9=['_createTitleView','7GNAywg','_setupTemplate','_titleView','URL','1819107JYDJQL','208790kYKHTU','isInContext','highlightText','TEXT','execute','_createIconView','type','setTemplate','trim','725208RMjaJd','content','resource','6jwqgWd','set','5895320OBDhOR','ck-ai-chat-resources__item__icon','_iconView','1376hukkQl','extendTemplate','div','render','365288MMlhws','bindTemplate','ck-hidden','FILE','ck-ai-chat-resources__item--in-context','updateResourceState','22ACyRqg','span','_updateIcon','ck-ai-chat-resources__item-title','986032tfmnjy','label','DOCUMENT','ck-ai-chat-resources__item','isVisible','getResourceIcon','text'];_0x50d0=function(){return _0x35f8b9;};return _0x50d0();}const Tr=_0x3ff345(0xeb),qr=_0x3ff345(0x10e),zr=_0x3ff345(0xe7),Br=_0x3ff345(0x104);export class AIChatResourceListItemView extends _0x30674e{[_0x3ff345(0x100)];[_0x3ff345(0xf2)];[_0x3ff345(0x105)];constructor(_0x5aaec8,_0x11bc22){const _0x6722c4=_0x3ff345;super(_0x5aaec8),this[_0x6722c4(0x100)]=_0x11bc22,this[_0x6722c4(0x102)](_0x6722c4(0xf6),!!_0x11bc22[_0x6722c4(0xf6)]),this[_0x6722c4(0xf2)]=this[_0x6722c4(0xef)](),this[_0x6722c4(0x105)]=this[_0x6722c4(0xfa)](),this[_0x6722c4(0xf1)]();}[_0x3ff345(0x109)](){const _0x1a625e=_0x3ff345;super[_0x1a625e(0x109)]();}[_0x3ff345(0xed)](_0x1306ac){const _0x59d4ce=_0x3ff345;if(_0x1306ac[_0x59d4ce(0xf6)])return _0x45e459;switch(_0x1306ac[_0x59d4ce(0xfb)]){case _0x33b69c[_0x59d4ce(0xea)]:return _0xca2425;case _0x33b69c[_0x59d4ce(0xf3)]:return _0x44a079;case _0x33b69c[_0x59d4ce(0x10d)]:case _0x33b69c[_0x59d4ce(0xf8)]:return _0xa8fe80;default:return _0x528aa1;}}[_0x3ff345(0xf7)](_0x46d50d){const _0x441857=_0x3ff345;if(!_0x46d50d||''===_0x46d50d[_0x441857(0xfd)]())return void this[_0x441857(0xf2)][_0x441857(0xf7)](null);const _0xffc4cc=new RegExp(_0x532b24(_0x46d50d),'gi');this[_0x441857(0xf2)][_0x441857(0xf7)](_0xffc4cc);}[_0x3ff345(0x10f)](_0x2343ad){const _0x1e502f=_0x3ff345;this[_0x1e502f(0x100)][_0x1e502f(0xf6)]=_0x2343ad,this[_0x1e502f(0xf6)]=_0x2343ad,this[_0x1e502f(0xe6)]();}[_0x3ff345(0xef)](){const _0x2fc8d6=_0x3ff345,_0x1494cd=new _0x244965();return _0x1494cd[_0x2fc8d6(0xee)]=this[_0x2fc8d6(0x100)][_0x2fc8d6(0xe9)],_0x1494cd[_0x2fc8d6(0x107)]({'tag':_0x2fc8d6(0x111),'attributes':{'class':[zr]}}),_0x1494cd;}[_0x3ff345(0xfa)](){const _0x5133db=_0x3ff345,_0x4dfc07=new _0x19effa();return _0x4dfc07[_0x5133db(0xff)]=this[_0x5133db(0xed)](this[_0x5133db(0x100)]),_0x4dfc07;}[_0x3ff345(0xf1)](){const _0x99caa2=_0x3ff345,_0x3d49c3=this[_0x99caa2(0x10b)];this[_0x99caa2(0xfc)]({'tag':_0x99caa2(0x108),'attributes':{'class':[Tr,_0x3d49c3['if'](_0x99caa2(0xec),_0x99caa2(0x10c),_0x42d497=>!_0x42d497),_0x3d49c3['if'](_0x99caa2(0xf6),qr)]},'children':[{'tag':_0x99caa2(0x108),'attributes':{'class':[Br]},'children':[this[_0x99caa2(0x105)]]},this[_0x99caa2(0xf2)]],'on':{'click':_0x3d49c3['to'](_0x99caa2(0xf9))}});}[_0x3ff345(0xe6)](){const _0x2c13cd=_0x3ff345;this[_0x2c13cd(0x105)][_0x2c13cd(0xff)]=this[_0x2c13cd(0xed)](this[_0x2c13cd(0x100)]);}}
23
+ const _0x5b2b29=_0x1dd8;(function(_0x2d6b25,_0x3898d6){const _0x478ef9=_0x1dd8,_0x57d19a=_0x2d6b25();while(!![]){try{const _0x15fafc=parseInt(_0x478ef9(0xb7))/0x1+parseInt(_0x478ef9(0x96))/0x2+parseInt(_0x478ef9(0xaa))/0x3*(parseInt(_0x478ef9(0x9e))/0x4)+parseInt(_0x478ef9(0x8d))/0x5*(-parseInt(_0x478ef9(0x93))/0x6)+-parseInt(_0x478ef9(0xa4))/0x7*(-parseInt(_0x478ef9(0xa0))/0x8)+parseInt(_0x478ef9(0xa7))/0x9*(parseInt(_0x478ef9(0xad))/0xa)+parseInt(_0x478ef9(0x95))/0xb*(-parseInt(_0x478ef9(0x92))/0xc);if(_0x15fafc===_0x3898d6)break;else _0x57d19a['push'](_0x57d19a['shift']());}catch(_0x5c00ff){_0x57d19a['push'](_0x57d19a['shift']());}}}(_0x2439,0xa9ecd));import{HighlightedTextView as _0x28f9cc,IconView as _0x43859c,ListItemView as _0x532904}from'ckeditor5/src/ui.js';import{escapeRegExp as _0x481a0d}from'es-toolkit/compat';function _0x2439(){const _0x35e969=['FILE','extendTemplate','404870PlLRRm','bindTemplate','ck-ai-chat-resources__item--in-context','highlightText','ck-ai-chat-resources__item-title','isVisible','_setupTemplate','_createTitleView','content','getResourceIcon','377915GZzLtW','trim','div','TEXT','235995XBdvYD','text','_titleView','URL','setTemplate','209976YyDirB','174HDvtKX','DOCUMENT','11tcIUJw','287104HFsJdb','resource','set','label','updateResourceState','span','type','render','12cLRuNQ','_createIconView','16ikNsNK','ck-ai-chat-resources__item','ck-hidden','execute','3873198eYQekF','isInContext','ck-ai-chat-resources__item__icon','63zjspYc','_updateIcon','_iconView','170778GnFCNh'];_0x2439=function(){return _0x35e969;};return _0x2439();}import{AIContextItemType as _0xb8dca8}from'../../../../aicore/model/aicontext.js';function _0x1dd8(_0x20e633,_0x477de7){const _0x2439a9=_0x2439();return _0x1dd8=function(_0x1dd810,_0x52b11c){_0x1dd810=_0x1dd810-0x8b;let _0x1ec727=_0x2439a9[_0x1dd810];return _0x1ec727;},_0x1dd8(_0x20e633,_0x477de7);}import{IconFileUpload as _0x15899b,IconCheck as _0x34c6e0,IconDocument as _0x29cc44,IconDocumentOutline as _0x2999ba,IconLink as _0x5b0fdd}from'@ckeditor/ckeditor5-icons';const zr=_0x5b2b29(0xa1),Br=_0x5b2b29(0xaf),Gr=_0x5b2b29(0xb1),Hr=_0x5b2b29(0xa6);export class AIChatResourceListItemView extends _0x532904{[_0x5b2b29(0x97)];[_0x5b2b29(0x8f)];[_0x5b2b29(0xa9)];constructor(_0x18a1d1,_0x1e5e4d){const _0x22a78e=_0x5b2b29;super(_0x18a1d1),this[_0x22a78e(0x97)]=_0x1e5e4d,this[_0x22a78e(0x98)](_0x22a78e(0xa5),!!_0x1e5e4d[_0x22a78e(0xa5)]),this[_0x22a78e(0x8f)]=this[_0x22a78e(0xb4)](),this[_0x22a78e(0xa9)]=this[_0x22a78e(0x9f)](),this[_0x22a78e(0xb3)]();}[_0x5b2b29(0x9d)](){const _0x239c32=_0x5b2b29;super[_0x239c32(0x9d)]();}[_0x5b2b29(0xb6)](_0xac447d){const _0x200935=_0x5b2b29;if(_0xac447d[_0x200935(0xa5)])return _0x34c6e0;switch(_0xac447d[_0x200935(0x9c)]){case _0xb8dca8[_0x200935(0x94)]:return _0x29cc44;case _0xb8dca8[_0x200935(0x90)]:return _0x5b0fdd;case _0xb8dca8[_0x200935(0xab)]:case _0xb8dca8[_0x200935(0x8c)]:return _0x15899b;default:return _0x2999ba;}}[_0x5b2b29(0xb0)](_0x4b5b08){const _0x228485=_0x5b2b29;if(!_0x4b5b08||''===_0x4b5b08[_0x228485(0xb8)]())return void this[_0x228485(0x8f)][_0x228485(0xb0)](null);const _0x5decf6=new RegExp(_0x481a0d(_0x4b5b08),'gi');this[_0x228485(0x8f)][_0x228485(0xb0)](_0x5decf6);}[_0x5b2b29(0x9a)](_0x1cc010){const _0x3f6de0=_0x5b2b29;this[_0x3f6de0(0x97)][_0x3f6de0(0xa5)]=_0x1cc010,this[_0x3f6de0(0xa5)]=_0x1cc010,this[_0x3f6de0(0xa8)]();}[_0x5b2b29(0xb4)](){const _0x1e17d5=_0x5b2b29,_0x4a28b4=new _0x28f9cc();return _0x4a28b4[_0x1e17d5(0x8e)]=this[_0x1e17d5(0x97)][_0x1e17d5(0x99)],_0x4a28b4[_0x1e17d5(0xac)]({'tag':_0x1e17d5(0x9b),'attributes':{'class':[Gr]}}),_0x4a28b4;}[_0x5b2b29(0x9f)](){const _0x472824=_0x5b2b29,_0x5296c2=new _0x43859c();return _0x5296c2[_0x472824(0xb5)]=this[_0x472824(0xb6)](this[_0x472824(0x97)]),_0x5296c2;}[_0x5b2b29(0xb3)](){const _0x18b164=_0x5b2b29,_0x1aff56=this[_0x18b164(0xae)];this[_0x18b164(0x91)]({'tag':_0x18b164(0x8b),'attributes':{'class':[zr,_0x1aff56['if'](_0x18b164(0xb2),_0x18b164(0xa2),_0x2d12ea=>!_0x2d12ea),_0x1aff56['if'](_0x18b164(0xa5),Br)]},'children':[{'tag':_0x18b164(0x8b),'attributes':{'class':[Hr]},'children':[this[_0x18b164(0xa9)]]},this[_0x18b164(0x8f)]],'on':{'click':_0x1aff56['to'](_0x18b164(0xa3))}});}[_0x5b2b29(0xa8)](){const _0x54aa11=_0x5b2b29;this[_0x54aa11(0xa9)][_0x54aa11(0xb5)]=this[_0x54aa11(0xb6)](this[_0x54aa11(0x97)]);}}
@@ -37,6 +37,10 @@ export interface AIChatResourcesBalloonViewConfig {
37
37
  * Returns the target element for balloon positioning.
38
38
  */
39
39
  getTargetElement: () => HTMLElement;
40
+ /**
41
+ * The minimum number of resources to show the search input.
42
+ */
43
+ searchInputVisibleFrom?: number;
40
44
  }
41
45
  /**
42
46
  * Manages resource balloon panels for AI chat context sources.
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x411dc6=_0x2202;(function(_0x166234,_0x4c4584){const _0x492306=_0x2202,_0x4c24a8=_0x166234();while(!![]){try{const _0x3740f6=-parseInt(_0x492306(0x9b))/0x1*(-parseInt(_0x492306(0x7b))/0x2)+-parseInt(_0x492306(0x85))/0x3+-parseInt(_0x492306(0x7f))/0x4*(-parseInt(_0x492306(0x9f))/0x5)+parseInt(_0x492306(0x81))/0x6*(-parseInt(_0x492306(0x6e))/0x7)+-parseInt(_0x492306(0x89))/0x8*(-parseInt(_0x492306(0x82))/0x9)+parseInt(_0x492306(0x91))/0xa*(parseInt(_0x492306(0x75))/0xb)+parseInt(_0x492306(0x90))/0xc;if(_0x3740f6===_0x4c4584)break;else _0x4c24a8['push'](_0x4c24a8['shift']());}catch(_0x3f593e){_0x4c24a8['push'](_0x4c24a8['shift']());}}}(_0x683d,0x53077));import{BalloonPanelView as _0x5b94b8,ButtonView as _0x220a83,clickOutsideHandler as _0x18d836,FormHeaderView as _0x1e905a}from'ckeditor5/src/ui.js';import{IconPreviousArrow as _0x4d9d62}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x4d496d}from'../../../../aicore/utils/common-translations.js';import{AIChatContextResourcesView as _0x35bc87}from'./aichatresourcesview.js';const Zo=_0x411dc6(0x69),Or=_0x411dc6(0x80),Hr=_0x411dc6(0x97);function _0x2202(_0x3eca81,_0x4c99da){const _0x683d62=_0x683d();return _0x2202=function(_0x2202ad,_0x554ec5){_0x2202ad=_0x2202ad-0x64;let _0x5a1d7a=_0x683d62[_0x2202ad];return _0x5a1d7a;},_0x2202(_0x3eca81,_0x4c99da);}export class AIChatResourcesBalloonView{[_0x411dc6(0x8c)]=new Map();[_0x411dc6(0x84)];[_0x411dc6(0x67)];[_0x411dc6(0x70)];constructor(_0x4e5ba2,_0xcf14e2,_0x41245d){const _0x184bd8=_0x411dc6;this[_0x184bd8(0x67)]=_0x4e5ba2,this[_0x184bd8(0x84)]=_0xcf14e2,this[_0x184bd8(0x70)]=_0x41245d;}[_0x411dc6(0x6f)](_0x22379e){const _0x242b5d=_0x411dc6;let _0x52810e=this[_0x242b5d(0x8c)][_0x242b5d(0x88)](_0x22379e['id']);_0x52810e||(_0x52810e=this[_0x242b5d(0x8f)](),this[_0x242b5d(0x8c)][_0x242b5d(0x9e)](_0x22379e['id'],_0x52810e),this[_0x242b5d(0x7a)](_0x52810e)),this[_0x242b5d(0x83)](_0x52810e,_0x22379e),_0x52810e[_0x242b5d(0x6d)]();const _0x1d88ab=this[_0x242b5d(0x70)][_0x242b5d(0x7c)]();_0x1d88ab&&_0x52810e[_0x242b5d(0x79)]({'target':_0x1d88ab,'limiter':this[_0x242b5d(0x70)][_0x242b5d(0x95)]()});}[_0x411dc6(0x77)](_0x3207bf,_0x10d69b,_0x9435ec){const _0x475704=_0x411dc6,_0x1c2162=this[_0x475704(0x8c)][_0x475704(0x88)](_0x3207bf);if(!_0x1c2162)return;const _0x88f401=this[_0x475704(0x8b)](_0x1c2162);_0x88f401&&_0x88f401[_0x475704(0x8a)](_0x10d69b,_0x9435ec);}[_0x411dc6(0x86)](_0x1fc586){const _0x24eb07=_0x411dc6,_0x132cc0=this[_0x24eb07(0x8c)][_0x24eb07(0x88)](_0x1fc586);_0x132cc0&&requestAnimationFrame(()=>{const _0x158cd6=_0x24eb07;_0x132cc0[_0x158cd6(0x6b)](),this[_0x158cd6(0x8c)][_0x158cd6(0x64)](_0x1fc586),this[_0x158cd6(0x70)][_0x158cd6(0x73)]();});}[_0x411dc6(0x6a)](){const _0x52c748=_0x411dc6;for(const _0x125dc8 of this[_0x52c748(0x8c)][_0x52c748(0x9a)]())if(_0x125dc8[_0x52c748(0x94)])return!0x0;return!0x1;}[_0x411dc6(0x92)](_0x5cc853,_0x415f7c,_0x690f4){const _0x2b997e=_0x411dc6,_0x3161e3=this[_0x2b997e(0x8c)][_0x2b997e(0x88)](_0x5cc853);if(!_0x3161e3||!_0x3161e3[_0x2b997e(0x94)])return;const _0x3d8944=this[_0x2b997e(0x70)][_0x2b997e(0x7c)]();if(!_0x3d8944)return;_0x3161e3[_0x2b997e(0x79)]({'target':_0x3d8944,'limiter':this[_0x2b997e(0x70)][_0x2b997e(0x95)]()});const _0x157561=this[_0x2b997e(0x8b)](_0x3161e3);_0x157561&&_0x157561[_0x2b997e(0x92)](_0x415f7c,_0x690f4);}[_0x411dc6(0x68)](){const _0x27847c=_0x411dc6;for(const _0x6855df of this[_0x27847c(0x8c)][_0x27847c(0x9a)]())_0x6855df[_0x27847c(0x68)]();this[_0x27847c(0x8c)][_0x27847c(0x78)]();}[_0x411dc6(0x8f)](){const _0x3bc88c=_0x411dc6,_0x22030d=new _0x5b94b8(this[_0x3bc88c(0x67)]);return _0x22030d[_0x3bc88c(0x6c)]({'attributes':{'class':Zo}}),this[_0x3bc88c(0x84)][_0x3bc88c(0x66)](_0x22030d),_0x22030d;}[_0x411dc6(0x83)](_0x18ee1f,_0x255193){const _0x26a2aa=_0x411dc6;_0x18ee1f[_0x26a2aa(0x8e)][_0x26a2aa(0x78)]();const _0xd6a1a2=this[_0x26a2aa(0x93)](_0x18ee1f,_0x255193);_0x18ee1f[_0x26a2aa(0x8e)][_0x26a2aa(0x66)](_0xd6a1a2);const _0x4ae5b7=this[_0x26a2aa(0x9d)](_0x255193);_0x18ee1f[_0x26a2aa(0x8e)][_0x26a2aa(0x66)](_0x4ae5b7);}[_0x411dc6(0x93)](_0x2c4171,_0x5d448f){const _0xaf8d65=_0x411dc6,_0x479f82=this[_0xaf8d65(0x9c)](_0x2c4171),_0x2a21c2=new _0x1e905a(this[_0xaf8d65(0x67)],{'label':_0x5d448f[_0xaf8d65(0x98)],'class':Hr});return _0x2a21c2[_0xaf8d65(0x7e)][_0xaf8d65(0x66)](_0x479f82,0x0),_0x2a21c2;}[_0x411dc6(0x9c)](_0x38aa48){const _0x1a2514=_0x411dc6,_0x1522ed=new _0x220a83(this[_0x1a2514(0x67)]);return _0x1522ed[_0x1a2514(0x9e)]({'icon':_0x4d9d62,'tooltip':_0x4d496d(this[_0x1a2514(0x67)],_0x1a2514(0x71)),'tooltipPosition':'n','class':Or}),_0x1522ed['on'](_0x1a2514(0x96),()=>{const _0x490698=_0x1a2514;_0x38aa48[_0x490698(0x6b)](),this[_0x490698(0x70)][_0x490698(0x65)]();}),_0x1522ed;}[_0x411dc6(0x9d)](_0x1c20ad){const _0x2cb7f8=_0x411dc6,_0x5cbbfe=new _0x35bc87(this[_0x2cb7f8(0x67)],_0x1c20ad);return _0x5cbbfe['on'](_0x2cb7f8(0x99),(_0x2aa4cd,_0x144c66)=>{const _0x2f1dda=_0x2cb7f8;this[_0x2f1dda(0x70)][_0x2f1dda(0x76)](_0x144c66);}),_0x5cbbfe['on'](_0x2cb7f8(0x72),(_0x1b6e37,_0x50988a)=>{const _0x14be4b=_0x2cb7f8;this[_0x14be4b(0x70)][_0x14be4b(0x74)](_0x50988a[_0x14be4b(0x7d)],_0x50988a[_0x14be4b(0x87)]),this[_0x14be4b(0x86)](_0x1c20ad['id']);}),_0x5cbbfe;}[_0x411dc6(0x8b)](_0x22502d){const _0x12194f=_0x411dc6,_0x41485f=_0x22502d[_0x12194f(0x8e)][_0x12194f(0x88)](0x1);return _0x41485f instanceof _0x35bc87?_0x41485f:null;}[_0x411dc6(0x7a)](_0x13c380){const _0xfd2666=_0x411dc6;_0x18d836({'emitter':_0x13c380,'contextElements':[_0x13c380[_0xfd2666(0x8d)]],'callback':()=>{const _0x1910b5=_0xfd2666;_0x13c380[_0x1910b5(0x6b)](),this[_0x1910b5(0x70)][_0x1910b5(0x73)]();},'activator':()=>_0x13c380[_0xfd2666(0x94)]});}}function _0x683d(){const _0x2f3843=['delete','onBackToContext','add','_locale','destroy','ck-ai-chat-context-controls__source-balloon-panel','isAnyResourceBalloonVisible','hide','extendTemplate','show','382067YOTnfb','showSourceResourcesBalloon','_config','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','addResourceToContext','onBalloonClosed','onResourceSelected','187NdpUot','onLoadSourceResources','populateSourceResourceBalloon','clear','pin','_setupSingleResourceBalloonClickOutsideHandler','26PWvivd','getTargetElement','source','children','143680ZoXycH','ck-button-icon\x20ck-button-back','48kewwcw','695619ssbRMy','_addSourceResourceContent','_bodyCollection','1325613rqSTkG','closeSourceResourceBalloon','resource','get','24gFXDJe','setResources','_getResourcesViewFromBalloon','_sourceResourceBalloons','element','content','_createSourceResourceBalloonPanel','6082668DgBEXg','238550hylOhE','updateResourceState','_createBalloonHeader','isVisible','getLimiterElement','execute','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_source','label','loadSourceResources','values','2953DQUmdn','_createBackButton','_createBalloonResourcesView','set','5XdJHzy'];_0x683d=function(){return _0x2f3843;};return _0x683d();}
23
+ const _0x1cf8b8=_0x3a2a;(function(_0x39fd95,_0x51b395){const _0xf36e59=_0x3a2a,_0x258223=_0x39fd95();while(!![]){try{const _0x1bd215=parseInt(_0xf36e59(0x10a))/0x1+-parseInt(_0xf36e59(0xfc))/0x2*(-parseInt(_0xf36e59(0x133))/0x3)+-parseInt(_0xf36e59(0x130))/0x4*(-parseInt(_0xf36e59(0x127))/0x5)+-parseInt(_0xf36e59(0x12a))/0x6*(parseInt(_0xf36e59(0x11f))/0x7)+-parseInt(_0xf36e59(0x122))/0x8*(-parseInt(_0xf36e59(0x124))/0x9)+parseInt(_0xf36e59(0xff))/0xa*(-parseInt(_0xf36e59(0x123))/0xb)+-parseInt(_0xf36e59(0x113))/0xc;if(_0x1bd215===_0x51b395)break;else _0x258223['push'](_0x258223['shift']());}catch(_0x563122){_0x258223['push'](_0x258223['shift']());}}}(_0x1b9b,0x53500));import{BalloonPanelView as _0xe3e124,ButtonView as _0x5781f0,clickOutsideHandler as _0x2641bc,FormHeaderView as _0x2b21e1}from'ckeditor5/src/ui.js';function _0x3a2a(_0x517f32,_0x4548eb){const _0x1b9b20=_0x1b9b();return _0x3a2a=function(_0x3a2aec,_0x258619){_0x3a2aec=_0x3a2aec-0xfa;let _0x38fb61=_0x1b9b20[_0x3a2aec];return _0x38fb61;},_0x3a2a(_0x517f32,_0x4548eb);}import{IconPreviousArrow as _0x47f762}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x1f618b}from'../../../../aicore/utils/common-translations.js';function _0x1b9b(){const _0x52ab2e=['children','_createBalloonHeader','_bodyCollection','onResourceSelected','614293BqIjwF','_sourceResourceBalloons','onLoadSourceResources','element','_addSourceResourceContent','onBalloonClosed','isVisible','add','loadSourceResources','6361884uGLBid','getLimiterElement','clear','_locale','get','_getResourcesViewFromBalloon','destroy','_setupSingleResourceBalloonClickOutsideHandler','show','extendTemplate','pin','addResourceToContext','5131EWWeNA','_createBackButton','onBackToContext','16tIHnOG','11JUWyyW','578808NTMWvE','values','resource','2316620admQKA','content','showSourceResourcesBalloon','546Qqqpot','source','getTargetElement','closeSourceResourceBalloon','_createBalloonResourcesView','change:isLoading','4Lujunm','setResources','delete','12ssxgxh','set','isAnyResourceBalloonVisible','updateResourceState','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','_config','label','execute','84628fVlGjM','searchInputVisibleFrom','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_source','4373890lxWcRm','ck-button-icon\x20ck-button-back','once','ck-ai-chat-context-controls__source-balloon-panel','hide','populateSourceResourceBalloon','_createSourceResourceBalloonPanel'];_0x1b9b=function(){return _0x52ab2e;};return _0x1b9b();}import{AIChatContextResourcesView as _0x35955e}from'./aichatcontextresourcesview.js';const Nr=_0x1cf8b8(0x102),Xr=_0x1cf8b8(0x100),Kr=_0x1cf8b8(0xfe);export class AIChatResourcesBalloonView{[_0x1cf8b8(0x10b)]=new Map();[_0x1cf8b8(0x108)];[_0x1cf8b8(0x116)];[_0x1cf8b8(0x138)];constructor(_0x5e0b5c,_0x429c9c,_0x5f0747){const _0x480add=_0x1cf8b8;this[_0x480add(0x116)]=_0x5e0b5c,this[_0x480add(0x108)]=_0x429c9c,this[_0x480add(0x138)]=_0x5f0747;}[_0x1cf8b8(0x129)](_0x502395){const _0x4b5c41=_0x1cf8b8;let _0x1def99=this[_0x4b5c41(0x10b)][_0x4b5c41(0x117)](_0x502395['id']);_0x1def99||(_0x1def99=this[_0x4b5c41(0x105)](),this[_0x4b5c41(0x10b)][_0x4b5c41(0x134)](_0x502395['id'],_0x1def99),this[_0x4b5c41(0x11a)](_0x1def99)),this[_0x4b5c41(0x10e)](_0x1def99,_0x502395),_0x1def99[_0x4b5c41(0x11b)]();const _0x3c3fc3=this[_0x4b5c41(0x138)][_0x4b5c41(0x12c)]();_0x3c3fc3&&_0x1def99[_0x4b5c41(0x11d)]({'target':_0x3c3fc3,'limiter':this[_0x4b5c41(0x138)][_0x4b5c41(0x114)]()});}[_0x1cf8b8(0x104)](_0x437443,_0x1a3cd6,_0x14d2c5){const _0x5d4c52=_0x1cf8b8,_0xa3cd6b=this[_0x5d4c52(0x10b)][_0x5d4c52(0x117)](_0x437443);if(!_0xa3cd6b)return;const _0x5d7fbe=this[_0x5d4c52(0x118)](_0xa3cd6b);_0x5d7fbe&&(_0x5d7fbe[_0x5d4c52(0x131)](_0x1a3cd6,_0x14d2c5),_0x5d7fbe[_0x5d4c52(0x101)](_0x5d4c52(0x12f),()=>{const _0x496f05=_0x5d4c52;_0xa3cd6b[_0x496f05(0x11d)]({'target':this[_0x496f05(0x138)][_0x496f05(0x12c)](),'limiter':this[_0x496f05(0x138)][_0x496f05(0x114)]()});}));}[_0x1cf8b8(0x12d)](_0x1f64da){const _0xa9e959=_0x1cf8b8,_0x2a4ac0=this[_0xa9e959(0x10b)][_0xa9e959(0x117)](_0x1f64da);_0x2a4ac0&&requestAnimationFrame(()=>{const _0x1b5841=_0xa9e959;_0x2a4ac0[_0x1b5841(0x103)](),this[_0x1b5841(0x10b)][_0x1b5841(0x132)](_0x1f64da),this[_0x1b5841(0x138)][_0x1b5841(0x10f)]();});}[_0x1cf8b8(0x135)](){const _0x225db9=_0x1cf8b8;for(const _0x25b256 of this[_0x225db9(0x10b)][_0x225db9(0x125)]())if(_0x25b256[_0x225db9(0x110)])return!0x0;return!0x1;}[_0x1cf8b8(0x136)](_0x2fc9ba,_0x19d480,_0x5457a9){const _0x315b6d=_0x1cf8b8,_0xfe1af9=this[_0x315b6d(0x10b)][_0x315b6d(0x117)](_0x2fc9ba);if(!_0xfe1af9||!_0xfe1af9[_0x315b6d(0x110)])return;const _0x4b1843=this[_0x315b6d(0x138)][_0x315b6d(0x12c)]();if(!_0x4b1843)return;_0xfe1af9[_0x315b6d(0x11d)]({'target':_0x4b1843,'limiter':this[_0x315b6d(0x138)][_0x315b6d(0x114)]()});const _0x4c388c=this[_0x315b6d(0x118)](_0xfe1af9);_0x4c388c&&_0x4c388c[_0x315b6d(0x136)](_0x19d480,_0x5457a9);}[_0x1cf8b8(0x119)](){const _0x2414b6=_0x1cf8b8;for(const _0x30f20f of this[_0x2414b6(0x10b)][_0x2414b6(0x125)]())_0x30f20f[_0x2414b6(0x119)]();this[_0x2414b6(0x10b)][_0x2414b6(0x115)]();}[_0x1cf8b8(0x105)](){const _0x4f9e7c=_0x1cf8b8,_0x386023=new _0xe3e124(this[_0x4f9e7c(0x116)]);return _0x386023[_0x4f9e7c(0x11c)]({'attributes':{'class':Nr}}),this[_0x4f9e7c(0x108)][_0x4f9e7c(0x111)](_0x386023),_0x386023;}[_0x1cf8b8(0x10e)](_0x18f687,_0x52debe){const _0x2d2afb=_0x1cf8b8;_0x18f687[_0x2d2afb(0x128)][_0x2d2afb(0x115)]();const _0x105543=this[_0x2d2afb(0x107)](_0x18f687,_0x52debe);_0x18f687[_0x2d2afb(0x128)][_0x2d2afb(0x111)](_0x105543);const _0x2c50b8=this[_0x2d2afb(0x12e)](_0x52debe);_0x18f687[_0x2d2afb(0x128)][_0x2d2afb(0x111)](_0x2c50b8);}[_0x1cf8b8(0x107)](_0x16cb7d,_0x1e082b){const _0x295f79=_0x1cf8b8,_0x4f7959=this[_0x295f79(0x120)](_0x16cb7d),_0x1b89f5=new _0x2b21e1(this[_0x295f79(0x116)],{'label':_0x1e082b[_0x295f79(0xfa)],'class':Kr});return _0x1b89f5[_0x295f79(0x106)][_0x295f79(0x111)](_0x4f7959,0x0),_0x1b89f5;}[_0x1cf8b8(0x120)](_0x40e0d6){const _0x4bb806=_0x1cf8b8,_0x2b6c4e=new _0x5781f0(this[_0x4bb806(0x116)]);return _0x2b6c4e[_0x4bb806(0x134)]({'icon':_0x47f762,'tooltip':_0x1f618b(this[_0x4bb806(0x116)],_0x4bb806(0x137)),'tooltipPosition':'n','class':Xr}),_0x2b6c4e['on'](_0x4bb806(0xfb),()=>{const _0x1424ac=_0x4bb806;_0x40e0d6[_0x1424ac(0x103)](),this[_0x1424ac(0x138)][_0x1424ac(0x121)]();}),_0x2b6c4e;}[_0x1cf8b8(0x12e)](_0x109518){const _0x14c9ab=_0x1cf8b8,_0x12577f=new _0x35955e(this[_0x14c9ab(0x116)],{'source':_0x109518,'searchInputVisibleFrom':this[_0x14c9ab(0x138)][_0x14c9ab(0xfd)]});return _0x12577f['on'](_0x14c9ab(0x112),(_0x1451d4,_0xf5cea4)=>{const _0x9fb4a0=_0x14c9ab;this[_0x9fb4a0(0x138)][_0x9fb4a0(0x10c)](_0xf5cea4);}),_0x12577f['on'](_0x14c9ab(0x11e),(_0x379651,_0x29a3e1)=>{const _0x4f10fc=_0x14c9ab;this[_0x4f10fc(0x138)][_0x4f10fc(0x109)](_0x29a3e1[_0x4f10fc(0x12b)],_0x29a3e1[_0x4f10fc(0x126)]),this[_0x4f10fc(0x12d)](_0x109518['id']);}),_0x12577f;}[_0x1cf8b8(0x118)](_0x10f4c2){const _0x6e25e6=_0x1cf8b8,_0x2fdd5e=_0x10f4c2[_0x6e25e6(0x128)][_0x6e25e6(0x117)](0x1);return _0x2fdd5e instanceof _0x35955e?_0x2fdd5e:null;}[_0x1cf8b8(0x11a)](_0x5b75ef){const _0x4328a3=_0x1cf8b8;_0x2641bc({'emitter':_0x5b75ef,'contextElements':[_0x5b75ef[_0x4328a3(0x10d)]],'callback':()=>{const _0x53270e=_0x4328a3;_0x5b75ef[_0x53270e(0x103)](),this[_0x53270e(0x138)][_0x53270e(0x10f)]();},'activator':()=>_0x5b75ef[_0x4328a3(0x110)]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{ButtonView as _0x4e98e0,IconView as _0x8f712f,LabeledFieldView as _0x3dd43b,createLabeledInputText as th}from'ckeditor5/src/ui.js';import{IconLoupe as _0x193b88,IconCancel as _0xd1324f}from'ckeditor5/src/icons.js';import{getTranslation as _0x38266a}from'../../../../aicore/utils/common-translations.js';export class AIChatContextResourcesSearchInputView extends _0x3dd43b{['iconView'];['resetButtonView'];['_viewConfig'];constructor(_0x5c51c3){const t=_0x5c51c3['t'],_0x4cbdd5={'showResetButton':!0x0,'showIcon':!0x0,'creator':th,'label':_0x38266a(_0x5c51c3,'AI_CHAT_SEARCH_RESOURCES')};super(_0x5c51c3,_0x4cbdd5['creator']),this['label']=_0x4cbdd5['label'],this['_viewConfig']=_0x4cbdd5,this['_viewConfig']['showIcon']&&this['_setupSearchIcon'](),this['_viewConfig']['showResetButton']&&this['_setupResetButton'](_0x5c51c3,t),this['_setupEventListeners']();}['reset'](){this['fieldView']['reset'](),this['_viewConfig']['showResetButton']&&this['resetButtonView']&&(this['resetButtonView']['isVisible']=!0x1),this['search']('');}['search'](_0x2c3abf){this['fire']('search',_0x2c3abf);}['getQuery'](){return this['fieldView']['element']?.['value']||'';}['_setupSearchIcon'](){this['iconView']=new _0x8f712f(),this['iconView']['content']=_0x193b88,this['fieldWrapperChildren']['add'](this['iconView'],0x0),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-icon'}});}['_setupResetButton'](_0xea0fd7,t){this['resetButtonView']=new _0x4e98e0(_0xea0fd7),this['resetButtonView']['set']({'label':t('Clear'),'icon':_0xd1324f,'class':'ck-search__reset','isVisible':!0x1,'tooltip':!0x0}),this['resetButtonView']['on']('execute',()=>{this['reset'](),this['focus'](),this['fire']('reset');}),this['resetButtonView']['bind']('isVisible')['to'](this['fieldView'],'isEmpty',_0x2f847a=>!_0x2f847a),this['fieldWrapperChildren']['add'](this['resetButtonView']),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-reset'}});}['_setupEventListeners'](){this['listenTo'](this['fieldView'],'input',()=>{this['search'](this['fieldView']['element']['value']);}),this['bind']('isEnabled')['to'](this);}}
23
+ import{ButtonView as _0x7db920,IconView as _0x4960cd,LabeledFieldView as _0x2f80f0,createLabeledInputText as th}from'ckeditor5/src/ui.js';import{IconLoupe as _0x6c9ecb,IconCancel as _0x6275b}from'ckeditor5/src/icons.js';import{getTranslation as _0x489519}from'../../../../aicore/utils/common-translations.js';export class AIChatContextResourcesSearchInputView extends _0x2f80f0{['iconView'];['resetButtonView'];['_viewConfig'];constructor(_0x28c3bc){const t=_0x28c3bc['t'],_0x5813ee={'showResetButton':!0x0,'showIcon':!0x0,'creator':th,'label':_0x489519(_0x28c3bc,'AI_CHAT_SEARCH_RESOURCES')};super(_0x28c3bc,_0x5813ee['creator']),this['label']=_0x5813ee['label'],this['_viewConfig']=_0x5813ee,this['_viewConfig']['showIcon']&&this['_setupSearchIcon'](),this['_viewConfig']['showResetButton']&&this['_setupResetButton'](_0x28c3bc,t),this['_setupEventListeners']();}['reset'](){this['fieldView']['reset'](),this['_viewConfig']['showResetButton']&&this['resetButtonView']&&(this['resetButtonView']['isVisible']=!0x1),this['search']('');}['search'](_0x3327b9){this['fire']('search',_0x3327b9);}['getQuery'](){return this['fieldView']['element']?.['value']||'';}['_setupSearchIcon'](){this['iconView']=new _0x4960cd(),this['iconView']['content']=_0x6c9ecb,this['fieldWrapperChildren']['add'](this['iconView'],0x0),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-icon'}});}['_setupResetButton'](_0x2699ca,t){this['resetButtonView']=new _0x7db920(_0x2699ca),this['resetButtonView']['set']({'label':t('Clear'),'icon':_0x6275b,'class':'ck-search__reset','isVisible':!0x1,'tooltip':!0x0}),this['resetButtonView']['on']('execute',()=>{this['reset'](),this['focus'](),this['fire']('reset');}),this['resetButtonView']['bind']('isVisible')['to'](this['fieldView'],'isEmpty',_0x3a6469=>!_0x3a6469),this['fieldWrapperChildren']['add'](this['resetButtonView']),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-reset'}});}['_setupEventListeners'](){this['listenTo'](this['fieldView'],'input',()=>{this['search'](this['fieldView']['element']['value']);}),this['bind']('isEnabled')['to'](this);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x14e8d3=_0xff9e;(function(_0x4a1625,_0x4214b4){const _0x399688=_0xff9e,_0x475e29=_0x4a1625();while(!![]){try{const _0x73c0df=parseInt(_0x399688(0x15a))/0x1+-parseInt(_0x399688(0x15d))/0x2*(parseInt(_0x399688(0x159))/0x3)+parseInt(_0x399688(0x167))/0x4+parseInt(_0x399688(0x153))/0x5*(parseInt(_0x399688(0x14a))/0x6)+parseInt(_0x399688(0x14c))/0x7*(-parseInt(_0x399688(0x15c))/0x8)+parseInt(_0x399688(0x155))/0x9*(-parseInt(_0x399688(0x151))/0xa)+-parseInt(_0x399688(0x15f))/0xb*(parseInt(_0x399688(0x154))/0xc);if(_0x73c0df===_0x4214b4)break;else _0x475e29['push'](_0x475e29['shift']());}catch(_0x589f83){_0x475e29['push'](_0x475e29['shift']());}}}(_0x2d32,0xb6709));function _0x2d32(){const _0x1adb59=['setContainerElement','213xLBiKm','1049706mMUcHA','element','200624lhIUqT','1286KHdjFf','ck-reset_all','66979IphKbF','querySelector','createCollection','_contextChips','render','_overflowManager','ck-ai-chat-context-chips-wrapper','ck-ai-chat-context-chips-wrapper-balloon','4261960IUmMdB','ck-ai-chat-context-controls__show-more-balloon-panel','ck-ai-chat__feed__context-chips','ck-ai-chat-controls-button','add','348288FrUkRQ','_bodyCollection','175RGGvQl','reorganizeChips','div','setTemplate','locale','375980NQebQA','destroy','125mUZbgv','4008rPuGld','27lZQPVl','_createContextChips','ck-ai-chat-controls_context_show-more-button'];_0x2d32=function(){return _0x1adb59;};return _0x2d32();}import{View as _0x469e4a}from'ckeditor5/src/ui.js';import{AIChatContextItemButtonView as _0x4cba56}from'../controls/aichatcontextitembuttonview.js';import{AIChatChipsOverflowManager as _0x2f3a4d}from'../controls/aichatchipsoverflowmanager.js';function _0xff9e(_0x3e40bd,_0x3cd695){const _0x2d32b1=_0x2d32();return _0xff9e=function(_0xff9edc,_0x3450c6){_0xff9edc=_0xff9edc-0x14a;let _0x5913ef=_0x2d32b1[_0xff9edc];return _0x5913ef;},_0xff9e(_0x3e40bd,_0x3cd695);}const Fo=_0x14e8d3(0x169),$o=_0x14e8d3(0x165),zo=_0x14e8d3(0x166),Io=_0x14e8d3(0x16a),Ro=_0x14e8d3(0x157),Uo=_0x14e8d3(0x168);export class AIChatFeedContextChipsView extends _0x469e4a{[_0x14e8d3(0x162)]=this[_0x14e8d3(0x161)]();[_0x14e8d3(0x164)];[_0x14e8d3(0x14b)];constructor(_0x23ce81,_0x1bd131,_0x8c0a32){const _0x2dbfc2=_0x14e8d3;super(_0x23ce81),this[_0x2dbfc2(0x14b)]=_0x8c0a32,this[_0x2dbfc2(0x156)](_0x1bd131);const _0x78b420={'cssClasses':{'showMoreButton':Ro,'showMoreBalloon':Uo,'overflowContainer':zo,'controlsButton':Io}};this[_0x2dbfc2(0x164)]=new _0x2f3a4d(_0x23ce81,this[_0x2dbfc2(0x162)],_0x78b420,this[_0x2dbfc2(0x14b)],this),this[_0x2dbfc2(0x14f)]({'tag':_0x2dbfc2(0x14e),'attributes':{'class':[Fo,'ck',_0x2dbfc2(0x15e)]},'children':[{'tag':_0x2dbfc2(0x14e),'attributes':{'class':$o},'children':this[_0x2dbfc2(0x162)]}]});}[_0x14e8d3(0x163)](){const _0x8ce506=_0x14e8d3;super[_0x8ce506(0x163)]();const _0x36b890=this[_0x8ce506(0x15b)][_0x8ce506(0x160)]('.'+$o);_0x36b890&&(this[_0x8ce506(0x164)][_0x8ce506(0x158)](_0x36b890),this[_0x8ce506(0x164)][_0x8ce506(0x14d)]());}[_0x14e8d3(0x152)](){const _0x1e1ad2=_0x14e8d3;super[_0x1e1ad2(0x152)](),this[_0x1e1ad2(0x164)][_0x1e1ad2(0x152)]();}[_0x14e8d3(0x156)](_0x27aac5){const _0x18e849=_0x14e8d3;for(const _0x5ea3e7 of _0x27aac5){const _0x337b45=new _0x4cba56(this[_0x18e849(0x150)],_0x5ea3e7,!0x0,!0x1);this[_0x18e849(0x162)][_0x18e849(0x16b)](_0x337b45);}}}
23
+ function _0xd06e(_0x308aa1,_0x544198){const _0x256366=_0x2563();return _0xd06e=function(_0xd06e6,_0x458370){_0xd06e6=_0xd06e6-0xbc;let _0x15695f=_0x256366[_0xd06e6];return _0x15695f;},_0xd06e(_0x308aa1,_0x544198);}const _0x4fd3da=_0xd06e;function _0x2563(){const _0x308eb4=['_overflowManager','createCollection','div','destroy','ck-reset_all','ck-ai-chat__feed__context-chips','12534zbWZsZ','ck-ai-chat-context-chips-wrapper','ck-ai-chat-controls_context_show-more-button','272492cLAKhB','setContainerElement','35YpOCLb','ck-ai-chat-context-controls__show-more-balloon-panel','595uRxFuj','ck-ai-chat-context-chips-wrapper-balloon','locale','_createContextChips','212413pSOvkY','_bodyCollection','1722072VqwotT','_contextChips','710SVGJhx','42489mVkmvC','element','querySelector','95572QkPtPY','setTemplate','ck-ai-chat-controls-button','526623PkAqZB','render','reorganizeChips','add'];_0x2563=function(){return _0x308eb4;};return _0x2563();}(function(_0x1a815e,_0xab07dd){const _0x513ac7=_0xd06e,_0x4b8956=_0x1a815e();while(!![]){try{const _0x4a5e6e=parseInt(_0x513ac7(0xd9))/0x1+-parseInt(_0x513ac7(0xd1))/0x2+-parseInt(_0x513ac7(0xc4))/0x3+parseInt(_0x513ac7(0xc1))/0x4*(parseInt(_0x513ac7(0xd3))/0x5)+-parseInt(_0x513ac7(0xce))/0x6*(-parseInt(_0x513ac7(0xd5))/0x7)+parseInt(_0x513ac7(0xdb))/0x8+-parseInt(_0x513ac7(0xbe))/0x9*(parseInt(_0x513ac7(0xbd))/0xa);if(_0x4a5e6e===_0xab07dd)break;else _0x4b8956['push'](_0x4b8956['shift']());}catch(_0x56418f){_0x4b8956['push'](_0x4b8956['shift']());}}}(_0x2563,0x1ea46));import{View as _0x5b4cef}from'ckeditor5/src/ui.js';import{AIChatContextItemButtonView as _0x3d938b}from'../controls/aichatcontextitembuttonview.js';import{AIChatChipsOverflowManager as _0x3047bb}from'../controls/aichatchipsoverflowmanager.js';const $o=_0x4fd3da(0xcd),Qo=_0x4fd3da(0xcf),Xo=_0x4fd3da(0xd6),Lo=_0x4fd3da(0xc3),Oo=_0x4fd3da(0xd0),Mo=_0x4fd3da(0xd4);export class AIChatFeedContextChipsView extends _0x5b4cef{[_0x4fd3da(0xbc)]=this[_0x4fd3da(0xc9)]();[_0x4fd3da(0xc8)];[_0x4fd3da(0xda)];constructor(_0x1c55ce,_0x3fa2fe,_0x286fe3){const _0xba974e=_0x4fd3da;super(_0x1c55ce),this[_0xba974e(0xda)]=_0x286fe3,this[_0xba974e(0xd8)](_0x3fa2fe);const _0x3294f2={'cssClasses':{'showMoreButton':Oo,'showMoreBalloon':Mo,'overflowContainer':Xo,'controlsButton':Lo}};this[_0xba974e(0xc8)]=new _0x3047bb(_0x1c55ce,this[_0xba974e(0xbc)],_0x3294f2,this[_0xba974e(0xda)],this),this[_0xba974e(0xc2)]({'tag':_0xba974e(0xca),'attributes':{'class':[$o,'ck',_0xba974e(0xcc)]},'children':[{'tag':_0xba974e(0xca),'attributes':{'class':Qo},'children':this[_0xba974e(0xbc)]}]});}[_0x4fd3da(0xc5)](){const _0x5a29ec=_0x4fd3da;super[_0x5a29ec(0xc5)]();const _0x8bf12a=this[_0x5a29ec(0xbf)][_0x5a29ec(0xc0)]('.'+Qo);_0x8bf12a&&(this[_0x5a29ec(0xc8)][_0x5a29ec(0xd2)](_0x8bf12a),this[_0x5a29ec(0xc8)][_0x5a29ec(0xc6)]());}[_0x4fd3da(0xcb)](){const _0x353a9b=_0x4fd3da;super[_0x353a9b(0xcb)](),this[_0x353a9b(0xc8)][_0x353a9b(0xcb)]();}[_0x4fd3da(0xd8)](_0x102959){const _0x19085f=_0x4fd3da;for(const _0x15fc83 of _0x102959){const _0x304aa3=new _0x3d938b(this[_0x19085f(0xd7)],_0x15fc83,!0x0,!0x1);this[_0x19085f(0xbc)][_0x19085f(0xc7)](_0x304aa3);}}}