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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (701) hide show
  1. package/LICENSE.md +1 -1
  2. package/README.md +1 -1
  3. package/build/ai.js +3 -3
  4. package/build/translations/af.js +1 -1
  5. package/build/translations/ar.js +1 -1
  6. package/build/translations/ast.js +1 -1
  7. package/build/translations/az.js +1 -1
  8. package/build/translations/be.js +1 -1
  9. package/build/translations/bg.js +1 -1
  10. package/build/translations/bn.js +1 -1
  11. package/build/translations/bs.js +1 -1
  12. package/build/translations/ca.js +1 -1
  13. package/build/translations/cs.js +1 -1
  14. package/build/translations/da.js +1 -1
  15. package/build/translations/de-ch.js +1 -1
  16. package/build/translations/de.js +1 -1
  17. package/build/translations/el.js +1 -1
  18. package/build/translations/en-au.js +1 -1
  19. package/build/translations/en-gb.js +1 -1
  20. package/build/translations/eo.js +1 -1
  21. package/build/translations/es-co.js +1 -1
  22. package/build/translations/es.js +1 -1
  23. package/build/translations/et.js +1 -1
  24. package/build/translations/eu.js +1 -1
  25. package/build/translations/fa.js +1 -1
  26. package/build/translations/fi.js +1 -1
  27. package/build/translations/fr.js +1 -1
  28. package/build/translations/gl.js +1 -1
  29. package/build/translations/gu.js +1 -1
  30. package/build/translations/he.js +1 -1
  31. package/build/translations/hi.js +1 -1
  32. package/build/translations/hr.js +1 -1
  33. package/build/translations/hu.js +1 -1
  34. package/build/translations/hy.js +1 -1
  35. package/build/translations/id.js +1 -1
  36. package/build/translations/it.js +1 -1
  37. package/build/translations/ja.js +1 -1
  38. package/build/translations/jv.js +1 -1
  39. package/build/translations/kk.js +1 -1
  40. package/build/translations/km.js +1 -1
  41. package/build/translations/kn.js +1 -1
  42. package/build/translations/ko.js +1 -1
  43. package/build/translations/ku.js +1 -1
  44. package/build/translations/lt.js +1 -1
  45. package/build/translations/lv.js +1 -1
  46. package/build/translations/ms.js +1 -1
  47. package/build/translations/nb.js +1 -1
  48. package/build/translations/ne.js +1 -1
  49. package/build/translations/nl.js +1 -1
  50. package/build/translations/no.js +1 -1
  51. package/build/translations/oc.js +1 -1
  52. package/build/translations/pl.js +1 -1
  53. package/build/translations/pt-br.js +1 -1
  54. package/build/translations/pt.js +1 -1
  55. package/build/translations/ro.js +1 -1
  56. package/build/translations/ru.js +1 -1
  57. package/build/translations/si.js +1 -1
  58. package/build/translations/sk.js +1 -1
  59. package/build/translations/sl.js +1 -1
  60. package/build/translations/sq.js +1 -1
  61. package/build/translations/sr-latn.js +1 -1
  62. package/build/translations/sr.js +1 -1
  63. package/build/translations/sv.js +1 -1
  64. package/build/translations/th.js +1 -1
  65. package/build/translations/ti.js +1 -1
  66. package/build/translations/tk.js +1 -1
  67. package/build/translations/tr.js +1 -1
  68. package/build/translations/tt.js +1 -1
  69. package/build/translations/ug.js +1 -1
  70. package/build/translations/uk.js +1 -1
  71. package/build/translations/ur.js +1 -1
  72. package/build/translations/uz.js +1 -1
  73. package/build/translations/vi.js +1 -1
  74. package/build/translations/zh-cn.js +1 -1
  75. package/build/translations/zh.js +1 -1
  76. package/dist/index-content.css +1 -1
  77. package/dist/index-editor.css +67 -4
  78. package/dist/index.css +117 -54
  79. package/dist/index.js +6 -6
  80. package/dist/translations/af.d.ts +1 -1
  81. package/dist/translations/af.js +2 -2
  82. package/dist/translations/af.umd.js +2 -2
  83. package/dist/translations/ar.d.ts +1 -1
  84. package/dist/translations/ar.js +2 -2
  85. package/dist/translations/ar.umd.js +2 -2
  86. package/dist/translations/ast.d.ts +1 -1
  87. package/dist/translations/ast.js +2 -2
  88. package/dist/translations/ast.umd.js +2 -2
  89. package/dist/translations/az.d.ts +1 -1
  90. package/dist/translations/az.js +2 -2
  91. package/dist/translations/az.umd.js +2 -2
  92. package/dist/translations/be.d.ts +1 -1
  93. package/dist/translations/be.js +2 -2
  94. package/dist/translations/be.umd.js +2 -2
  95. package/dist/translations/bg.d.ts +1 -1
  96. package/dist/translations/bg.js +2 -2
  97. package/dist/translations/bg.umd.js +2 -2
  98. package/dist/translations/bn.d.ts +1 -1
  99. package/dist/translations/bn.js +2 -2
  100. package/dist/translations/bn.umd.js +2 -2
  101. package/dist/translations/bs.d.ts +1 -1
  102. package/dist/translations/bs.js +2 -2
  103. package/dist/translations/bs.umd.js +2 -2
  104. package/dist/translations/ca.d.ts +1 -1
  105. package/dist/translations/ca.js +2 -2
  106. package/dist/translations/ca.umd.js +2 -2
  107. package/dist/translations/cs.d.ts +1 -1
  108. package/dist/translations/cs.js +2 -2
  109. package/dist/translations/cs.umd.js +2 -2
  110. package/dist/translations/da.d.ts +1 -1
  111. package/dist/translations/da.js +2 -2
  112. package/dist/translations/da.umd.js +2 -2
  113. package/dist/translations/de-ch.d.ts +1 -1
  114. package/dist/translations/de-ch.js +2 -2
  115. package/dist/translations/de-ch.umd.js +2 -2
  116. package/dist/translations/de.d.ts +1 -1
  117. package/dist/translations/de.js +2 -2
  118. package/dist/translations/de.umd.js +2 -2
  119. package/dist/translations/el.d.ts +1 -1
  120. package/dist/translations/el.js +2 -2
  121. package/dist/translations/el.umd.js +2 -2
  122. package/dist/translations/en-au.d.ts +1 -1
  123. package/dist/translations/en-au.js +2 -2
  124. package/dist/translations/en-au.umd.js +2 -2
  125. package/dist/translations/en-gb.d.ts +1 -1
  126. package/dist/translations/en-gb.js +2 -2
  127. package/dist/translations/en-gb.umd.js +2 -2
  128. package/dist/translations/en.d.ts +1 -1
  129. package/dist/translations/en.js +2 -2
  130. package/dist/translations/en.umd.js +2 -2
  131. package/dist/translations/eo.d.ts +1 -1
  132. package/dist/translations/eo.js +2 -2
  133. package/dist/translations/eo.umd.js +2 -2
  134. package/dist/translations/es-co.d.ts +1 -1
  135. package/dist/translations/es-co.js +2 -2
  136. package/dist/translations/es-co.umd.js +2 -2
  137. package/dist/translations/es.d.ts +1 -1
  138. package/dist/translations/es.js +2 -2
  139. package/dist/translations/es.umd.js +2 -2
  140. package/dist/translations/et.d.ts +1 -1
  141. package/dist/translations/et.js +2 -2
  142. package/dist/translations/et.umd.js +2 -2
  143. package/dist/translations/eu.d.ts +1 -1
  144. package/dist/translations/eu.js +2 -2
  145. package/dist/translations/eu.umd.js +2 -2
  146. package/dist/translations/fa.d.ts +1 -1
  147. package/dist/translations/fa.js +2 -2
  148. package/dist/translations/fa.umd.js +2 -2
  149. package/dist/translations/fi.d.ts +1 -1
  150. package/dist/translations/fi.js +2 -2
  151. package/dist/translations/fi.umd.js +2 -2
  152. package/dist/translations/fr.d.ts +1 -1
  153. package/dist/translations/fr.js +2 -2
  154. package/dist/translations/fr.umd.js +2 -2
  155. package/dist/translations/gl.d.ts +1 -1
  156. package/dist/translations/gl.js +2 -2
  157. package/dist/translations/gl.umd.js +2 -2
  158. package/dist/translations/gu.d.ts +1 -1
  159. package/dist/translations/gu.js +2 -2
  160. package/dist/translations/gu.umd.js +2 -2
  161. package/dist/translations/he.d.ts +1 -1
  162. package/dist/translations/he.js +2 -2
  163. package/dist/translations/he.umd.js +2 -2
  164. package/dist/translations/hi.d.ts +1 -1
  165. package/dist/translations/hi.js +2 -2
  166. package/dist/translations/hi.umd.js +2 -2
  167. package/dist/translations/hr.d.ts +1 -1
  168. package/dist/translations/hr.js +2 -2
  169. package/dist/translations/hr.umd.js +2 -2
  170. package/dist/translations/hu.d.ts +1 -1
  171. package/dist/translations/hu.js +2 -2
  172. package/dist/translations/hu.umd.js +2 -2
  173. package/dist/translations/hy.d.ts +1 -1
  174. package/dist/translations/hy.js +2 -2
  175. package/dist/translations/hy.umd.js +2 -2
  176. package/dist/translations/id.d.ts +1 -1
  177. package/dist/translations/id.js +2 -2
  178. package/dist/translations/id.umd.js +2 -2
  179. package/dist/translations/it.d.ts +1 -1
  180. package/dist/translations/it.js +2 -2
  181. package/dist/translations/it.umd.js +2 -2
  182. package/dist/translations/ja.d.ts +1 -1
  183. package/dist/translations/ja.js +2 -2
  184. package/dist/translations/ja.umd.js +2 -2
  185. package/dist/translations/jv.d.ts +1 -1
  186. package/dist/translations/jv.js +2 -2
  187. package/dist/translations/jv.umd.js +2 -2
  188. package/dist/translations/kk.d.ts +1 -1
  189. package/dist/translations/kk.js +2 -2
  190. package/dist/translations/kk.umd.js +2 -2
  191. package/dist/translations/km.d.ts +1 -1
  192. package/dist/translations/km.js +2 -2
  193. package/dist/translations/km.umd.js +2 -2
  194. package/dist/translations/kn.d.ts +1 -1
  195. package/dist/translations/kn.js +2 -2
  196. package/dist/translations/kn.umd.js +2 -2
  197. package/dist/translations/ko.d.ts +1 -1
  198. package/dist/translations/ko.js +2 -2
  199. package/dist/translations/ko.umd.js +2 -2
  200. package/dist/translations/ku.d.ts +1 -1
  201. package/dist/translations/ku.js +2 -2
  202. package/dist/translations/ku.umd.js +2 -2
  203. package/dist/translations/lt.d.ts +1 -1
  204. package/dist/translations/lt.js +2 -2
  205. package/dist/translations/lt.umd.js +2 -2
  206. package/dist/translations/lv.d.ts +1 -1
  207. package/dist/translations/lv.js +2 -2
  208. package/dist/translations/lv.umd.js +2 -2
  209. package/dist/translations/ms.d.ts +1 -1
  210. package/dist/translations/ms.js +2 -2
  211. package/dist/translations/ms.umd.js +2 -2
  212. package/dist/translations/nb.d.ts +1 -1
  213. package/dist/translations/nb.js +2 -2
  214. package/dist/translations/nb.umd.js +2 -2
  215. package/dist/translations/ne.d.ts +1 -1
  216. package/dist/translations/ne.js +2 -2
  217. package/dist/translations/ne.umd.js +2 -2
  218. package/dist/translations/nl.d.ts +1 -1
  219. package/dist/translations/nl.js +2 -2
  220. package/dist/translations/nl.umd.js +2 -2
  221. package/dist/translations/no.d.ts +1 -1
  222. package/dist/translations/no.js +2 -2
  223. package/dist/translations/no.umd.js +2 -2
  224. package/dist/translations/oc.d.ts +1 -1
  225. package/dist/translations/oc.js +2 -2
  226. package/dist/translations/oc.umd.js +2 -2
  227. package/dist/translations/pl.d.ts +1 -1
  228. package/dist/translations/pl.js +2 -2
  229. package/dist/translations/pl.umd.js +2 -2
  230. package/dist/translations/pt-br.d.ts +1 -1
  231. package/dist/translations/pt-br.js +2 -2
  232. package/dist/translations/pt-br.umd.js +2 -2
  233. package/dist/translations/pt.d.ts +1 -1
  234. package/dist/translations/pt.js +2 -2
  235. package/dist/translations/pt.umd.js +2 -2
  236. package/dist/translations/ro.d.ts +1 -1
  237. package/dist/translations/ro.js +2 -2
  238. package/dist/translations/ro.umd.js +2 -2
  239. package/dist/translations/ru.d.ts +1 -1
  240. package/dist/translations/ru.js +2 -2
  241. package/dist/translations/ru.umd.js +2 -2
  242. package/dist/translations/si.d.ts +1 -1
  243. package/dist/translations/si.js +2 -2
  244. package/dist/translations/si.umd.js +2 -2
  245. package/dist/translations/sk.d.ts +1 -1
  246. package/dist/translations/sk.js +2 -2
  247. package/dist/translations/sk.umd.js +2 -2
  248. package/dist/translations/sl.d.ts +1 -1
  249. package/dist/translations/sl.js +2 -2
  250. package/dist/translations/sl.umd.js +2 -2
  251. package/dist/translations/sq.d.ts +1 -1
  252. package/dist/translations/sq.js +2 -2
  253. package/dist/translations/sq.umd.js +2 -2
  254. package/dist/translations/sr-latn.d.ts +1 -1
  255. package/dist/translations/sr-latn.js +2 -2
  256. package/dist/translations/sr-latn.umd.js +2 -2
  257. package/dist/translations/sr.d.ts +1 -1
  258. package/dist/translations/sr.js +2 -2
  259. package/dist/translations/sr.umd.js +2 -2
  260. package/dist/translations/sv.d.ts +1 -1
  261. package/dist/translations/sv.js +2 -2
  262. package/dist/translations/sv.umd.js +2 -2
  263. package/dist/translations/th.d.ts +1 -1
  264. package/dist/translations/th.js +2 -2
  265. package/dist/translations/th.umd.js +2 -2
  266. package/dist/translations/ti.d.ts +1 -1
  267. package/dist/translations/ti.js +2 -2
  268. package/dist/translations/ti.umd.js +2 -2
  269. package/dist/translations/tk.d.ts +1 -1
  270. package/dist/translations/tk.js +2 -2
  271. package/dist/translations/tk.umd.js +2 -2
  272. package/dist/translations/tr.d.ts +1 -1
  273. package/dist/translations/tr.js +2 -2
  274. package/dist/translations/tr.umd.js +2 -2
  275. package/dist/translations/tt.d.ts +1 -1
  276. package/dist/translations/tt.js +2 -2
  277. package/dist/translations/tt.umd.js +2 -2
  278. package/dist/translations/ug.d.ts +1 -1
  279. package/dist/translations/ug.js +2 -2
  280. package/dist/translations/ug.umd.js +2 -2
  281. package/dist/translations/uk.d.ts +1 -1
  282. package/dist/translations/uk.js +2 -2
  283. package/dist/translations/uk.umd.js +2 -2
  284. package/dist/translations/ur.d.ts +1 -1
  285. package/dist/translations/ur.js +2 -2
  286. package/dist/translations/ur.umd.js +2 -2
  287. package/dist/translations/uz.d.ts +1 -1
  288. package/dist/translations/uz.js +2 -2
  289. package/dist/translations/uz.umd.js +2 -2
  290. package/dist/translations/vi.d.ts +1 -1
  291. package/dist/translations/vi.js +2 -2
  292. package/dist/translations/vi.umd.js +2 -2
  293. package/dist/translations/zh-cn.d.ts +1 -1
  294. package/dist/translations/zh-cn.js +2 -2
  295. package/dist/translations/zh-cn.umd.js +2 -2
  296. package/dist/translations/zh.d.ts +1 -1
  297. package/dist/translations/zh.js +2 -2
  298. package/dist/translations/zh.umd.js +2 -2
  299. package/lang/contexts.json +0 -11
  300. package/lang/translations/af.po +1 -45
  301. package/lang/translations/ar.po +1 -45
  302. package/lang/translations/ast.po +1 -45
  303. package/lang/translations/az.po +1 -45
  304. package/lang/translations/be.po +1 -45
  305. package/lang/translations/bg.po +1 -45
  306. package/lang/translations/bn.po +1 -45
  307. package/lang/translations/bs.po +1 -45
  308. package/lang/translations/ca.po +1 -45
  309. package/lang/translations/cs.po +1 -45
  310. package/lang/translations/da.po +1 -45
  311. package/lang/translations/de-ch.po +1 -45
  312. package/lang/translations/de.po +1 -45
  313. package/lang/translations/el.po +1 -45
  314. package/lang/translations/en-au.po +1 -45
  315. package/lang/translations/en-gb.po +1 -45
  316. package/lang/translations/en.po +1 -45
  317. package/lang/translations/eo.po +1 -45
  318. package/lang/translations/es-co.po +1 -45
  319. package/lang/translations/es.po +1 -45
  320. package/lang/translations/et.po +1 -45
  321. package/lang/translations/eu.po +1 -45
  322. package/lang/translations/fa.po +1 -45
  323. package/lang/translations/fi.po +1 -45
  324. package/lang/translations/fr.po +1 -45
  325. package/lang/translations/gl.po +1 -45
  326. package/lang/translations/gu.po +1 -45
  327. package/lang/translations/he.po +1 -45
  328. package/lang/translations/hi.po +1 -45
  329. package/lang/translations/hr.po +1 -45
  330. package/lang/translations/hu.po +1 -45
  331. package/lang/translations/hy.po +1 -45
  332. package/lang/translations/id.po +1 -45
  333. package/lang/translations/it.po +1 -45
  334. package/lang/translations/ja.po +1 -45
  335. package/lang/translations/jv.po +1 -45
  336. package/lang/translations/kk.po +1 -45
  337. package/lang/translations/km.po +1 -45
  338. package/lang/translations/kn.po +1 -45
  339. package/lang/translations/ko.po +1 -45
  340. package/lang/translations/ku.po +1 -45
  341. package/lang/translations/lt.po +1 -45
  342. package/lang/translations/lv.po +1 -45
  343. package/lang/translations/ms.po +1 -45
  344. package/lang/translations/nb.po +1 -45
  345. package/lang/translations/ne.po +1 -45
  346. package/lang/translations/nl.po +1 -45
  347. package/lang/translations/no.po +1 -45
  348. package/lang/translations/oc.po +1 -45
  349. package/lang/translations/pl.po +1 -45
  350. package/lang/translations/pt-br.po +1 -45
  351. package/lang/translations/pt.po +1 -45
  352. package/lang/translations/ro.po +1 -45
  353. package/lang/translations/ru.po +1 -45
  354. package/lang/translations/si.po +1 -45
  355. package/lang/translations/sk.po +1 -45
  356. package/lang/translations/sl.po +1 -45
  357. package/lang/translations/sq.po +1 -45
  358. package/lang/translations/sr-latn.po +1 -45
  359. package/lang/translations/sr.po +1 -45
  360. package/lang/translations/sv.po +1 -45
  361. package/lang/translations/th.po +1 -45
  362. package/lang/translations/ti.po +1 -45
  363. package/lang/translations/tk.po +1 -45
  364. package/lang/translations/tr.po +1 -45
  365. package/lang/translations/tt.po +1 -45
  366. package/lang/translations/ug.po +1 -45
  367. package/lang/translations/uk.po +1 -45
  368. package/lang/translations/ur.po +1 -45
  369. package/lang/translations/uz.po +1 -45
  370. package/lang/translations/vi.po +1 -45
  371. package/lang/translations/zh-cn.po +1 -45
  372. package/lang/translations/zh.po +1 -45
  373. package/package.json +16 -16
  374. package/src/aiactions/aiactions.d.ts +5 -1
  375. package/src/aiactions/aiactions.js +2 -2
  376. package/src/aiactions/model/aiactionsinteraction.d.ts +1 -1
  377. package/src/aiactions/model/aiactionsinteraction.js +2 -2
  378. package/src/aiactions/model/aiactionsreply.d.ts +1 -1
  379. package/src/aiactions/model/aiactionsreply.js +2 -2
  380. package/src/aiassistant/adapters/aiadapter.d.ts +1 -1
  381. package/src/aiassistant/adapters/aiadapter.js +2 -2
  382. package/src/aiassistant/adapters/aitextadapter.d.ts +1 -1
  383. package/src/aiassistant/adapters/aitextadapter.js +2 -2
  384. package/src/aiassistant/adapters/awstextadapter.d.ts +1 -1
  385. package/src/aiassistant/adapters/awstextadapter.js +2 -2
  386. package/src/aiassistant/adapters/openaitextadapter.d.ts +1 -1
  387. package/src/aiassistant/adapters/openaitextadapter.js +2 -2
  388. package/src/aiassistant/aiassistant.d.ts +1 -1
  389. package/src/aiassistant/aiassistant.js +2 -2
  390. package/src/aiassistant/aiassistantediting.d.ts +1 -1
  391. package/src/aiassistant/aiassistantediting.js +2 -2
  392. package/src/aiassistant/aiassistantui.d.ts +1 -1
  393. package/src/aiassistant/aiassistantui.js +2 -2
  394. package/src/aiassistant/legacyerrors.d.ts +1 -1
  395. package/src/aiassistant/legacyerrors.js +2 -2
  396. package/src/aiassistant/ui/aiassistantcontroller.d.ts +1 -1
  397. package/src/aiassistant/ui/aiassistantcontroller.js +3 -3
  398. package/src/aiassistant/ui/form/aiformcontentarea.d.ts +1 -1
  399. package/src/aiassistant/ui/form/aiformcontentarea.js +2 -2
  400. package/src/aiassistant/ui/form/aiformerrorview.d.ts +1 -1
  401. package/src/aiassistant/ui/form/aiformerrorview.js +2 -2
  402. package/src/aiassistant/ui/form/aiformpromptview.d.ts +1 -1
  403. package/src/aiassistant/ui/form/aiformpromptview.js +2 -2
  404. package/src/aiassistant/ui/form/aiformtoolbarview.d.ts +1 -1
  405. package/src/aiassistant/ui/form/aiformtoolbarview.js +2 -2
  406. package/src/aiassistant/ui/form/aiformview.d.ts +1 -1
  407. package/src/aiassistant/ui/form/aiformview.js +2 -2
  408. package/src/aiassistant/ui/form/aihistorylistitemview.d.ts +1 -1
  409. package/src/aiassistant/ui/form/aihistorylistitemview.js +2 -2
  410. package/src/aiassistant/ui/form/aihistorylistview.d.ts +1 -1
  411. package/src/aiassistant/ui/form/aihistorylistview.js +2 -2
  412. package/src/aiassistant/ui/form/prompthistory.d.ts +1 -1
  413. package/src/aiassistant/ui/form/prompthistory.js +2 -2
  414. package/src/aiassistant/ui/showaiassistantcommand.d.ts +1 -1
  415. package/src/aiassistant/ui/showaiassistantcommand.js +2 -2
  416. package/src/aiassistant/utils/common-translations.d.ts +1 -1
  417. package/src/aiassistant/utils/common-translations.js +2 -2
  418. package/src/aiassistant/utils/normalizecommandsconfig.d.ts +1 -1
  419. package/src/aiassistant/utils/normalizecommandsconfig.js +2 -2
  420. package/src/aiballoon/aiballoon.d.ts +1 -1
  421. package/src/aiballoon/aiballoon.js +2 -2
  422. package/src/aiballoon/ui/aiballoondisclaimerview.d.ts +1 -1
  423. package/src/aiballoon/ui/aiballoondisclaimerview.js +2 -2
  424. package/src/aiballoon/ui/aiballoontoolbarview.d.ts +1 -1
  425. package/src/aiballoon/ui/aiballoontoolbarview.js +2 -2
  426. package/src/aiballoon/ui/aiballoonview.d.ts +1 -1
  427. package/src/aiballoon/ui/aiballoonview.js +2 -2
  428. package/src/aichat/aichat.d.ts +38 -4
  429. package/src/aichat/aichat.js +2 -2
  430. package/src/aichat/aichatcontroller.d.ts +5 -1
  431. package/src/aichat/aichatcontroller.js +2 -2
  432. package/src/aichat/aichatui.d.ts +3 -3
  433. package/src/aichat/aichatui.js +2 -2
  434. package/src/aichat/model/aichatcontext.d.ts +1 -1
  435. package/src/aichat/model/aichatcontext.js +2 -2
  436. package/src/aichat/model/aichatconversation.d.ts +10 -10
  437. package/src/aichat/model/aichatconversation.js +2 -2
  438. package/src/aichat/model/aichatinteraction.d.ts +1 -1
  439. package/src/aichat/model/aichatinteraction.js +2 -2
  440. package/src/aichat/ui/aichatcontrolsview.d.ts +4 -4
  441. package/src/aichat/ui/aichatcontrolsview.js +2 -2
  442. package/src/aichat/ui/aichatfeedview.d.ts +1 -1
  443. package/src/aichat/ui/aichatfeedview.js +2 -2
  444. package/src/aichat/ui/aichatheaderview.d.ts +1 -1
  445. package/src/aichat/ui/aichatheaderview.js +2 -2
  446. package/src/aichat/ui/aichatview.d.ts +1 -1
  447. package/src/aichat/ui/aichatview.js +2 -2
  448. package/src/aichat/ui/controls/aichatchipsoverflowmanager.d.ts +1 -1
  449. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +2 -2
  450. package/src/aichat/ui/controls/aichatcontextitembuttonview.d.ts +1 -1
  451. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +2 -2
  452. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.d.ts +1 -1
  453. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +2 -2
  454. package/src/aichat/ui/controls/aichatcontextpanelview.d.ts +1 -1
  455. package/src/aichat/ui/controls/aichatcontextpanelview.js +2 -2
  456. package/src/aichat/ui/controls/aichatcontrolsloaderview.d.ts +1 -1
  457. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +2 -2
  458. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.d.ts +5 -5
  459. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +2 -2
  460. package/src/aichat/ui/controls/aichatpromptinputview.d.ts +1 -1
  461. package/src/aichat/ui/controls/aichatpromptinputview.js +2 -2
  462. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.d.ts +1 -1
  463. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +2 -2
  464. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.d.ts +1 -1
  465. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +2 -2
  466. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.d.ts +1 -1
  467. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +2 -2
  468. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.d.ts +1 -1
  469. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +2 -2
  470. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.d.ts +1 -1
  471. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +2 -2
  472. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.d.ts +1 -1
  473. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +2 -2
  474. package/src/aichat/ui/feed/aichatfeedcontextchipsview.d.ts +1 -1
  475. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +2 -2
  476. package/src/aichat/ui/feed/aichatfeederroritemview.d.ts +1 -1
  477. package/src/aichat/ui/feed/aichatfeederroritemview.js +2 -2
  478. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.d.ts +1 -1
  479. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +2 -2
  480. package/src/aichat/ui/feed/aichatfeeditemview.d.ts +1 -1
  481. package/src/aichat/ui/feed/aichatfeeditemview.js +2 -2
  482. package/src/aichat/ui/feed/aichatfeedreplyitemview.d.ts +3 -2
  483. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +2 -2
  484. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.d.ts +1 -1
  485. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +2 -2
  486. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.d.ts +3 -2
  487. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +2 -2
  488. package/src/aichat/ui/feed/aichatfeedusermessageitem.d.ts +1 -1
  489. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +2 -2
  490. package/src/aichat/utils/eventnames.d.ts +1 -1
  491. package/src/aichat/utils/eventnames.js +2 -2
  492. package/src/aichat/utils/promisequeue.d.ts +1 -1
  493. package/src/aichat/utils/promisequeue.js +2 -2
  494. package/src/aichathistory/aichathistory.d.ts +1 -1
  495. package/src/aichathistory/aichathistory.js +2 -2
  496. package/src/aichathistory/aichathistorycontroller.d.ts +1 -1
  497. package/src/aichathistory/aichathistorycontroller.js +2 -2
  498. package/src/aichathistory/aichathistoryui.d.ts +1 -1
  499. package/src/aichathistory/aichathistoryui.js +2 -2
  500. package/src/aichathistory/model/aichathistoryconversations.d.ts +1 -1
  501. package/src/aichathistory/model/aichathistoryconversations.js +2 -2
  502. package/src/aichathistory/model/aichathistoryitem.d.ts +1 -1
  503. package/src/aichathistory/model/aichathistoryitem.js +2 -2
  504. package/src/aichathistory/ui/aichathistorylistitemview.d.ts +1 -1
  505. package/src/aichathistory/ui/aichathistorylistitemview.js +3 -3
  506. package/src/aichathistory/ui/aichathistorylistview.d.ts +1 -1
  507. package/src/aichathistory/ui/aichathistorylistview.js +2 -2
  508. package/src/aichathistory/ui/aichathistorysectionlistview.d.ts +1 -1
  509. package/src/aichathistory/ui/aichathistorysectionlistview.js +2 -2
  510. package/src/aichathistory/ui/aichathistoryview.d.ts +1 -1
  511. package/src/aichathistory/ui/aichathistoryview.js +2 -2
  512. package/src/aiconfig.d.ts +1 -1
  513. package/src/aiconfig.js +1 -1
  514. package/src/aicore/aiconnector.d.ts +4 -2
  515. package/src/aicore/aiconnector.js +2 -2
  516. package/src/aicore/aiediting.d.ts +1 -1
  517. package/src/aicore/aiediting.js +2 -2
  518. package/src/aicore/model/aicapabilities.d.ts +1 -1
  519. package/src/aicore/model/aicapabilities.js +2 -2
  520. package/src/aicore/model/aicontext.d.ts +1 -1
  521. package/src/aicore/model/aicontext.js +2 -2
  522. package/src/aicore/model/aiinteraction.d.ts +1 -1
  523. package/src/aicore/model/aiinteraction.js +2 -2
  524. package/src/aicore/model/aimodels.d.ts +3 -12
  525. package/src/aicore/model/aimodels.js +2 -2
  526. package/src/aicore/model/aireply.d.ts +1 -1
  527. package/src/aicore/model/aireply.js +2 -2
  528. package/src/aicore/pipeline/airesponseapplier.d.ts +1 -1
  529. package/src/aicore/pipeline/airesponseapplier.js +3 -3
  530. package/src/aicore/pipeline/airesponseparser.d.ts +1 -1
  531. package/src/aicore/pipeline/airesponseparser.js +3 -3
  532. package/src/aicore/ui/aidisclaimerview.d.ts +1 -1
  533. package/src/aicore/ui/aidisclaimerview.js +2 -2
  534. package/src/aicore/ui/aiskeleton.d.ts +1 -1
  535. package/src/aicore/ui/aiskeleton.js +2 -2
  536. package/src/aicore/ui/aispinner.d.ts +1 -1
  537. package/src/aicore/ui/aispinner.js +2 -2
  538. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.d.ts +1 -1
  539. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +2 -2
  540. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.d.ts +1 -1
  541. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +2 -2
  542. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.d.ts +5 -5
  543. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +2 -2
  544. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.d.ts +1 -1
  545. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +2 -2
  546. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.d.ts +1 -1
  547. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +2 -2
  548. package/src/aicore/utils/common-translations.d.ts +1 -1
  549. package/src/aicore/utils/common-translations.js +2 -2
  550. package/src/aicore/utils/createresizebutton.d.ts +1 -1
  551. package/src/aicore/utils/createresizebutton.js +2 -2
  552. package/src/aicore/utils/documentposition.d.ts +1 -1
  553. package/src/aicore/utils/documentposition.js +2 -2
  554. package/src/aicore/utils/documentrange.d.ts +1 -1
  555. package/src/aicore/utils/documentrange.js +2 -2
  556. package/src/aicore/utils/eventnames.d.ts +1 -1
  557. package/src/aicore/utils/eventnames.js +2 -2
  558. package/src/aicore/utils/geteditorfromcontext.d.ts +1 -1
  559. package/src/aicore/utils/geteditorfromcontext.js +2 -2
  560. package/src/aicore/utils/getoperationsfromreply.d.ts +1 -1
  561. package/src/aicore/utils/getoperationsfromreply.js +2 -2
  562. package/src/aicore/utils/getsuggestionpartsfromreply.d.ts +1 -1
  563. package/src/aicore/utils/getsuggestionpartsfromreply.js +2 -2
  564. package/src/aicore/utils/htmlparser.d.ts +1 -1
  565. package/src/aicore/utils/htmlparser.js +2 -2
  566. package/src/aicore/utils/htmlstreamer.d.ts +1 -1
  567. package/src/aicore/utils/htmlstreamer.js +2 -2
  568. package/src/aicore/utils/scrollmanager.d.ts +1 -1
  569. package/src/aicore/utils/scrollmanager.js +2 -2
  570. package/src/aieditorintegration/aieditorintegration.d.ts +1 -1
  571. package/src/aieditorintegration/aieditorintegration.js +2 -2
  572. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.d.ts +1 -1
  573. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +2 -2
  574. package/src/aieditorintegration/aitogglebutton/toggleaicommand.d.ts +1 -1
  575. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +2 -2
  576. package/src/aiquickactions/aiquickactions.d.ts +1 -1
  577. package/src/aiquickactions/aiquickactions.js +2 -2
  578. package/src/aiquickactions/aiquickactionscommand.d.ts +1 -1
  579. package/src/aiquickactions/aiquickactionscommand.js +2 -2
  580. package/src/aiquickactions/aiquickactionsediting.d.ts +1 -1
  581. package/src/aiquickactions/aiquickactionsediting.js +2 -2
  582. package/src/aiquickactions/aiquickactionsui.d.ts +1 -1
  583. package/src/aiquickactions/aiquickactionsui.js +2 -2
  584. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.d.ts +1 -1
  585. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +2 -2
  586. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.d.ts +1 -1
  587. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +2 -2
  588. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.d.ts +1 -1
  589. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +2 -2
  590. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.d.ts +1 -1
  591. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +2 -2
  592. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.d.ts +1 -1
  593. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +2 -2
  594. package/src/aireviewmode/aireviewcheckdefinitions.d.ts +1 -1
  595. package/src/aireviewmode/aireviewcheckdefinitions.js +2 -2
  596. package/src/aireviewmode/aireviewmode.d.ts +1 -1
  597. package/src/aireviewmode/aireviewmode.js +2 -2
  598. package/src/aireviewmode/aireviewmodecontroller.d.ts +1 -1
  599. package/src/aireviewmode/aireviewmodecontroller.js +2 -2
  600. package/src/aireviewmode/aireviewmodeediting.d.ts +1 -1
  601. package/src/aireviewmode/aireviewmodeediting.js +2 -2
  602. package/src/aireviewmode/aireviewmodeui.d.ts +1 -1
  603. package/src/aireviewmode/aireviewmodeui.js +2 -2
  604. package/src/aireviewmode/model/aireviewcheck.d.ts +1 -1
  605. package/src/aireviewmode/model/aireviewcheck.js +2 -2
  606. package/src/aireviewmode/model/aireviewcheckcustom.d.ts +1 -1
  607. package/src/aireviewmode/model/aireviewcheckcustom.js +2 -2
  608. package/src/aireviewmode/model/aireviewchecklist.d.ts +1 -1
  609. package/src/aireviewmode/model/aireviewchecklist.js +2 -2
  610. package/src/aireviewmode/model/aireviewcheckresult.d.ts +1 -1
  611. package/src/aireviewmode/model/aireviewcheckresult.js +2 -2
  612. package/src/aireviewmode/model/aireviewcheckresultchange.d.ts +1 -1
  613. package/src/aireviewmode/model/aireviewcheckresultchange.js +2 -2
  614. package/src/aireviewmode/model/aireviewcheckrun.d.ts +1 -1
  615. package/src/aireviewmode/model/aireviewcheckrun.js +2 -2
  616. package/src/aireviewmode/model/aireviewcustomcheckrun.d.ts +1 -1
  617. package/src/aireviewmode/model/aireviewcustomcheckrun.js +2 -2
  618. package/src/aireviewmode/model/aireviewsystemcheckrun.d.ts +1 -1
  619. package/src/aireviewmode/model/aireviewsystemcheckrun.js +2 -2
  620. package/src/aireviewmode/ui/aireviemodepromptinputview.d.ts +1 -1
  621. package/src/aireviewmode/ui/aireviemodepromptinputview.js +2 -2
  622. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.d.ts +1 -1
  623. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +2 -2
  624. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.d.ts +2 -2
  625. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +2 -2
  626. package/src/aireviewmode/ui/aireviewmodecustomcheckview.d.ts +1 -1
  627. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +2 -2
  628. package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.d.ts +1 -1
  629. package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +2 -2
  630. package/src/aireviewmode/ui/aireviewmodegeneralerrorview.d.ts +1 -1
  631. package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +2 -2
  632. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.d.ts +1 -1
  633. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +2 -2
  634. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.d.ts +1 -1
  635. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +2 -2
  636. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.d.ts +1 -1
  637. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +2 -2
  638. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.d.ts +1 -1
  639. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +2 -2
  640. package/src/aireviewmode/ui/aireviewmodeview.d.ts +1 -1
  641. package/src/aireviewmode/ui/aireviewmodeview.js +2 -2
  642. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.d.ts +1 -1
  643. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +2 -2
  644. package/src/aireviewmode/ui/form/aireviewmodeformmanager.d.ts +1 -1
  645. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +2 -2
  646. package/src/aitabs/aitabs.d.ts +1 -1
  647. package/src/aitabs/aitabs.js +2 -2
  648. package/src/aitabs/aitabsmainview.d.ts +1 -1
  649. package/src/aitabs/aitabsmainview.js +2 -2
  650. package/src/aitabs/tabs/aitabsview.d.ts +1 -1
  651. package/src/aitabs/tabs/aitabsview.js +2 -2
  652. package/src/aitabs/tabs/tabbuttonview.d.ts +1 -1
  653. package/src/aitabs/tabs/tabbuttonview.js +2 -2
  654. package/src/aitabs/tabs/tabpanelview.d.ts +1 -1
  655. package/src/aitabs/tabs/tabpanelview.js +2 -2
  656. package/src/augmentation.d.ts +1 -1
  657. package/src/augmentation.js +1 -1
  658. package/src/errors.d.ts +1 -1
  659. package/src/errors.js +2 -2
  660. package/src/errorsmap.d.ts +1 -1
  661. package/src/errorsmap.js +2 -2
  662. package/src/index.d.ts +1 -2
  663. package/src/index.js +2 -2
  664. package/theme/aiassistant/ai-dropdown.css +1 -1
  665. package/theme/aiassistant/ai-form.css +1 -1
  666. package/theme/aiassistant/ai.css +1 -1
  667. package/theme/aiballoon/aiballoon.css +1 -1
  668. package/theme/aichat/aichat-controls/aichat-context-chip.css +1 -1
  669. package/theme/aichat/aichat-controls/aichat-context-controls-balloon-panels.css +1 -1
  670. package/theme/aichat/aichat-controls/aichat-context-controls.css +1 -1
  671. package/theme/aichat/aichat-controls/aichat-controls-button.css +1 -1
  672. package/theme/aichat/aichat-controls/aichat-controls-loader.css +1 -1
  673. package/theme/aichat/aichat-controls/model-unavailable-message.css +1 -1
  674. package/theme/aichat/aichat-controls/prompt-capabilities.css +1 -1
  675. package/theme/aichat/aichat-controls/prompt-input.css +1 -1
  676. package/theme/aichat/aichat-controls.css +1 -1
  677. package/theme/aichat/aichat.css +1 -1
  678. package/theme/aichat/aichatfeed.css +55 -1
  679. package/theme/aichat/aichathistory.css +1 -1
  680. package/theme/aichat/aiminitoolbar.css +1 -1
  681. package/theme/aichat/aisuggestioncontainer.css +1 -1
  682. package/theme/aieditorintegration/aitogglebutton.css +1 -1
  683. package/theme/aiquickactions/aiquickactions.css +1 -1
  684. package/theme/aireviewmode/aireviewmode-balloon-panel-suggestion.css +1 -1
  685. package/theme/aireviewmode/aireviewmode-check-list.css +1 -1
  686. package/theme/aireviewmode/aireviewmode-check-run-result.css +1 -1
  687. package/theme/aireviewmode/aireviewmode-check-run.css +1 -1
  688. package/theme/aireviewmode/aireviewmode-review-completed.css +1 -1
  689. package/theme/aireviewmode/aireviewmode.css +9 -4
  690. package/theme/aitabs/aitabsview.css +1 -1
  691. package/theme/aitabs/tabs/tabbuttonview.css +1 -1
  692. package/theme/aitabs/tabs/tabsview.css +1 -1
  693. package/theme/common/aibutton.css +1 -1
  694. package/theme/common/aidisclaimer.css +1 -1
  695. package/theme/common/aiheader.css +1 -1
  696. package/theme/common/ainotification.css +1 -1
  697. package/theme/common/aiskeleton.css +1 -1
  698. package/theme/common/aispinner.css +1 -1
  699. package/theme/common/aitrackchanges.css +1 -1
  700. package/src/aichat/model/aichatmodels.d.ts +0 -63
  701. package/src/aichat/model/aichatmodels.js +0 -23
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x13dd39=_0x1a37;(function(_0x8a5a67,_0x1f8bdf){const _0x20c950=_0x1a37,_0x4185ea=_0x8a5a67();while(!![]){try{const _0x4ea11e=-parseInt(_0x20c950(0x1fa))/0x1+parseInt(_0x20c950(0x1f1))/0x2*(parseInt(_0x20c950(0x212))/0x3)+parseInt(_0x20c950(0x22d))/0x4+parseInt(_0x20c950(0x215))/0x5*(-parseInt(_0x20c950(0x1e8))/0x6)+parseInt(_0x20c950(0x1f0))/0x7+-parseInt(_0x20c950(0x220))/0x8+-parseInt(_0x20c950(0x21f))/0x9;if(_0x4ea11e===_0x1f8bdf)break;else _0x4185ea['push'](_0x4185ea['shift']());}catch(_0x4d74ef){_0x4185ea['push'](_0x4185ea['shift']());}}}(_0x1db7,0x933de));import{CKEditorError as _0x44d121,logWarning as _0x2a59dd,scrollViewportToShowTarget as _0x463203}from'ckeditor5/src/utils.js';import{View as _0x719094}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x45de7d}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x5132a3}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x42857d}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x18a55d}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x1fba7a}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x3b07ca}from'./feed/aichatfeedinteractionheaderview.js';function _0x1db7(){const _0x5ea89d=['aiFeed','toggleLoadingSkeleton','isLoadingSkeletonVisible','_createFeedLoader','bind','_createFeedItems','stopAutoScroll','ai-reply','1710eXycwj','loadingMessage','_setupTemplate','25oqCZJe','ck-ai-chat__feed__items','ai-suggestion-reply','span','bindTemplate','ck-hidden','isPending','setLoadingMessage','delegate','ai-chat-feed-view-item-not-found','2655648ukYLbQ','3821864eLNtjr','getItemIds','destroy','start','clear','createCollection','scrollToSuggestion','remove','setTemplate','removeItem','user-message','element','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','2945700PvXOmZ','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','getItemById','extendTemplate','find','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','locale','ck-ai-chat__loader','map','scrollManager','markAsDone','575202QEqSuh','addItem','isTrackChangesOn','markItemAsDone','updateReplyItem','add','updateSuggestionPartState','children','1519490YcuZhg','4120TpEkYA','stop','_createSkeletonLoader','updateSources','set','ck-ai-chat__loader-text','_createTemplateChildren','updateWebSources','ai-chat-feed-view-item-not-a-suggestion-item','272453zdfQSk','updateSuggestionItem','isVisible','_bodyCollection','getPartView','ck-ai-chat__feed','startAutoScroll','ai-chat-feed-view-item-not-a-reply-item','updatePartState','updateContent','interaction-header','_createLoaderChildren','render','includes','options','div'];_0x1db7=function(){return _0x5ea89d;};return _0x1db7();}import{ScrollManager as _0x4c5172}from'../../aicore/utils/scrollmanager.js';import{AISkeletonView as _0x2df60f,SKELETON_DEFINITIONS as _0x53d832}from'../../aicore/ui/aiskeleton.js';function _0x1a37(_0x3d9b13,_0x3524de){const _0x1db75b=_0x1db7();return _0x1a37=function(_0x1a376f,_0x4cbdf9){_0x1a376f=_0x1a376f-0x1e8;let _0x55412e=_0x1db75b[_0x1a376f];return _0x55412e;},_0x1a37(_0x3d9b13,_0x3524de);}import{AISpinnerView as _0x537639}from'../../aicore/ui/aispinner.js';export class AIChatFeedView extends _0x719094{[_0x13dd39(0x1ef)];[_0x13dd39(0x236)];[_0x13dd39(0x1fd)];constructor(_0x5428f5,_0xf7450f){const _0x2f2aca=_0x13dd39;super(_0x5428f5),this[_0x2f2aca(0x1fd)]=_0xf7450f,this[_0x2f2aca(0x1f5)](_0x2f2aca(0x21b),!0x1),this[_0x2f2aca(0x1f5)](_0x2f2aca(0x213),''),this[_0x2f2aca(0x1f5)](_0x2f2aca(0x20c),!0x1),this[_0x2f2aca(0x1f5)](_0x2f2aca(0x1ea),!0x1),this[_0x2f2aca(0x1ef)]=this[_0x2f2aca(0x225)](),this[_0x2f2aca(0x1ef)][_0x2f2aca(0x21d)](..._0x45de7d)['to'](this),this[_0x2f2aca(0x214)]();}[_0x13dd39(0x206)](){const _0x25ddb4=_0x13dd39;super[_0x25ddb4(0x206)](),this[_0x25ddb4(0x236)]=new _0x4c5172(this[_0x25ddb4(0x22b)]);}[_0x13dd39(0x222)](){const _0x2b463e=_0x13dd39;super[_0x2b463e(0x222)](),this[_0x2b463e(0x236)][_0x2b463e(0x222)]();}[_0x13dd39(0x224)](){const _0x569620=_0x13dd39;this[_0x569620(0x1ef)][_0x569620(0x224)]();}[_0x13dd39(0x1e9)](_0x2a5e21,_0xed5f9e){const _0x58565f=_0x13dd39;let _0x7bfcf6;_0x58565f(0x211)===_0x2a5e21?_0x7bfcf6=new _0x42857d(this[_0x58565f(0x233)],_0xed5f9e):_0x58565f(0x217)===_0x2a5e21?(_0x7bfcf6=new _0x5132a3(this[_0x58565f(0x233)],_0xed5f9e),_0x7bfcf6[_0x58565f(0x20e)](_0x58565f(0x1ea))['to'](this,_0x58565f(0x1ea))):_0x7bfcf6=_0x58565f(0x22a)===_0x2a5e21?new _0x18a55d(this[_0x58565f(0x233)],_0xed5f9e,this[_0x58565f(0x1fd)]):_0x58565f(0x204)===_0x2a5e21?new _0x3b07ca(this[_0x58565f(0x233)],_0xed5f9e):new _0x1fba7a(_0xed5f9e),this[_0x58565f(0x1ef)][_0x58565f(0x1ed)](_0x7bfcf6);}async[_0x13dd39(0x1ec)]({id:_0x90644f,parsedContent:_0x3dd99e,renderingStrategy:_0x2b1737,abortSignal:_0x12e2ca}){const _0xfc258f=_0x13dd39,_0x38a89c=this[_0xfc258f(0x22f)](_0x90644f);if(!(_0x38a89c instanceof _0x42857d))throw new _0x44d121(_0xfc258f(0x201),null,{'itemView':_0x38a89c,'id':_0x90644f,'parsedContent':_0x3dd99e});await _0x38a89c[_0xfc258f(0x203)]({'parsedContent':_0x3dd99e,'renderingStrategy':_0x2b1737,'abortSignal':_0x12e2ca});}async[_0x13dd39(0x1f8)](_0x33a64f,_0x21355b){const _0x88925a=_0x13dd39,_0x4d9379=this[_0x88925a(0x22f)](_0x33a64f);if(_0x4d9379 instanceof _0x5132a3)_0x4d9379[_0x88925a(0x1f4)](_0x21355b);else{if(!(_0x4d9379 instanceof _0x42857d))throw new _0x44d121(_0x88925a(0x232),null,{'itemView':_0x4d9379,'id':_0x33a64f,'sources':_0x21355b});_0x4d9379[_0x88925a(0x1f4)](_0x21355b);}}async[_0x13dd39(0x1fb)]({id:_0xc54955,parts:_0x5d6c27,renderingStrategy:_0x3fed4f,abortSignal:_0x58cbb4}){const _0x3da6bc=_0x13dd39,_0x1f064d=this[_0x3da6bc(0x22f)](_0xc54955);if(!(_0x1f064d instanceof _0x5132a3))throw new _0x44d121(_0x3da6bc(0x1f9),null,{'itemView':_0x1f064d,'id':_0xc54955,'parts':_0x5d6c27});await _0x1f064d[_0x3da6bc(0x203)]({'parts':_0x5d6c27,'renderingStrategy':_0x3fed4f,'abortSignal':_0x58cbb4});}[_0x13dd39(0x1ee)]({id:_0x188a33,index:_0x23aa2a,state:_0x31c170}){const _0x5a758a=_0x13dd39,_0xf4a4c5=this[_0x5a758a(0x22f)](_0x188a33);if(!(_0xf4a4c5 instanceof _0x5132a3))throw new _0x44d121(_0x5a758a(0x1f9),this,{'id':_0x188a33});_0xf4a4c5[_0x5a758a(0x202)](_0x23aa2a,_0x31c170);}[_0x13dd39(0x1eb)](_0x3af7d2){const _0x283c6d=_0x13dd39;this[_0x283c6d(0x22f)](_0x3af7d2)[_0x283c6d(0x237)]();}[_0x13dd39(0x221)](){const _0x668b19=_0x13dd39;return this[_0x668b19(0x1ef)][_0x668b19(0x235)](_0x321864=>_0x321864[_0x668b19(0x208)]['id']);}[_0x13dd39(0x229)](_0x375db2){const _0x1bb829=_0x13dd39;this[_0x1bb829(0x1ef)][_0x1bb829(0x227)](this[_0x1bb829(0x22f)](_0x375db2));}[_0x13dd39(0x226)](_0x5e0940,_0x1ec099){const _0x16d4c6=_0x13dd39,_0xd63fd0=this[_0x16d4c6(0x22f)](_0x5e0940);if(!(_0xd63fd0 instanceof _0x5132a3))return void _0x2a59dd(_0x16d4c6(0x22c),{'replyId':_0x5e0940,'partIndex':_0x1ec099});const _0x4d39db=_0xd63fd0[_0x16d4c6(0x1fe)](_0x1ec099);_0x4d39db?_0x463203({'target':_0x4d39db[_0x16d4c6(0x22b)],'ancestorOffset':0x14,'alignToTop':!0x0,'forceScroll':!0x0}):_0x2a59dd(_0x16d4c6(0x22e),{'replyId':_0x5e0940,'partIndex':_0x1ec099});}[_0x13dd39(0x214)](){const _0x2b01f6=_0x13dd39;this[_0x2b01f6(0x228)]({'tag':_0x2b01f6(0x209),'attributes':{'class':['ck',_0x2b01f6(0x1ff)]},'children':this[_0x2b01f6(0x1f7)]()});}[_0x13dd39(0x1f7)](){const _0x59f4ae=_0x13dd39,_0x17d121=this[_0x59f4ae(0x1f3)]();return[this[_0x59f4ae(0x20f)](),_0x17d121,this[_0x59f4ae(0x20d)]()];}[_0x13dd39(0x1f3)](){const _0x3dc42d=_0x13dd39,_0x337481=new _0x2df60f(this[_0x3dc42d(0x233)],_0x53d832[_0x3dc42d(0x20a)]);return _0x337481[_0x3dc42d(0x230)]({'attributes':{'class':[this[_0x3dc42d(0x219)]['if'](_0x3dc42d(0x20c),_0x3dc42d(0x21a),_0x46aca1=>!_0x46aca1)]}}),_0x337481;}[_0x13dd39(0x20f)](){const _0x1ffa58=_0x13dd39,_0x5195a5=new _0x719094(this[_0x1ffa58(0x233)]);return _0x5195a5[_0x1ffa58(0x228)]({'tag':_0x1ffa58(0x209),'attributes':{'class':['ck',_0x1ffa58(0x216),this[_0x1ffa58(0x219)]['if'](_0x1ffa58(0x20c),_0x1ffa58(0x21a))]},'children':this[_0x1ffa58(0x1ef)]}),_0x5195a5;}[_0x13dd39(0x20d)](){const _0x1477a4=_0x13dd39,_0x36584e=new _0x719094(this[_0x1477a4(0x233)]);return _0x36584e[_0x1477a4(0x228)]({'tag':_0x1477a4(0x209),'attributes':{'class':['ck',_0x1477a4(0x234),this[_0x1477a4(0x219)]['if'](_0x1477a4(0x21b),_0x1477a4(0x21a),_0x5aae90=>!_0x5aae90)]},'children':this[_0x1477a4(0x205)]()}),_0x36584e;}[_0x13dd39(0x205)](){const _0x3df1dd=_0x13dd39,_0x2cd225=new _0x537639();return _0x2cd225[_0x3df1dd(0x1fc)]=!0x0,[_0x2cd225,{'tag':_0x3df1dd(0x218),'attributes':{'class':['ck',_0x3df1dd(0x1f6)]},'children':[{'text':this[_0x3df1dd(0x219)]['to'](_0x3df1dd(0x213))}]}];}[_0x13dd39(0x22f)](_0x5d8118){const _0x51ef58=_0x13dd39,_0x107e6a=this[_0x51ef58(0x1ef)][_0x51ef58(0x231)](_0xab56c9=>_0xab56c9[_0x51ef58(0x208)]['id'][_0x51ef58(0x207)](_0x5d8118));if(!_0x107e6a)throw new _0x44d121(_0x51ef58(0x21e),this,{'id':_0x5d8118});return _0x107e6a;}[_0x13dd39(0x21c)](_0x1fb118){const _0x3fc4be=_0x13dd39;this[_0x3fc4be(0x1f5)](_0x3fc4be(0x213),_0x1fb118);}[_0x13dd39(0x20b)](_0x2fc09a){const _0x17c6c5=_0x13dd39;this[_0x17c6c5(0x1f5)](_0x17c6c5(0x20c),_0x2fc09a);}[_0x13dd39(0x200)](){const _0x3f94d1=_0x13dd39;this[_0x3f94d1(0x236)][_0x3f94d1(0x223)]();}[_0x13dd39(0x210)](){const _0x183bec=_0x13dd39;this[_0x183bec(0x236)][_0x183bec(0x1f2)]();}}
23
+ const _0x217dc8=_0x3d67;(function(_0x3533b9,_0x2a0955){const _0x5f3552=_0x3d67,_0x6a79ba=_0x3533b9();while(!![]){try{const _0x40fe3a=-parseInt(_0x5f3552(0x21c))/0x1+parseInt(_0x5f3552(0x22a))/0x2+parseInt(_0x5f3552(0x22b))/0x3*(-parseInt(_0x5f3552(0x23e))/0x4)+-parseInt(_0x5f3552(0x220))/0x5+-parseInt(_0x5f3552(0x21f))/0x6+parseInt(_0x5f3552(0x1f6))/0x7+parseInt(_0x5f3552(0x1fb))/0x8*(parseInt(_0x5f3552(0x226))/0x9);if(_0x40fe3a===_0x2a0955)break;else _0x6a79ba['push'](_0x6a79ba['shift']());}catch(_0xf19da0){_0x6a79ba['push'](_0x6a79ba['shift']());}}}(_0x3058,0x5b893));import{CKEditorError as _0x34de43,logWarning as _0x1ac867,scrollViewportToShowTarget as _0x507231}from'ckeditor5/src/utils.js';import{View as _0x4d1bb1}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x2bee2c}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x3de866}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x118ccb}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x52ec5d}from'./feed/aichatfeedusermessageitem.js';function _0x3d67(_0x5e8f86,_0x5de6fa){const _0x305839=_0x3058();return _0x3d67=function(_0x3d672a,_0xceaa0e){_0x3d672a=_0x3d672a-0x1f3;let _0x211142=_0x305839[_0x3d672a];return _0x211142;},_0x3d67(_0x5e8f86,_0x5de6fa);}import{AIChatFeedErrorItemView as _0x4cf4cf}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0xf5e98a}from'./feed/aichatfeedinteractionheaderview.js';function _0x3058(){const _0x313991=['ck-ai-chat__loader','987438leJpdy','414438WSNExP','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','_bodyCollection','div','ck-ai-chat__feed__items','children','updateWebSources','updateReplyItem','start','getItemById','_createLoaderChildren','ck-ai-chat__feed','user-message','interaction-header','ck-hidden','isTrackChangesOn','isLoadingSkeletonVisible','isPending','options','20BQLfSO','removeItem','clear','bindTemplate','map','getPartView','add','ai-reply','598598viHIxj','addItem','find','toggleLoadingSkeleton','ai-chat-feed-view-item-not-found','136984XcwrCF','setLoadingMessage','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','startAutoScroll','updateSuggestionItem','updatePartState','getItemIds','destroy','scrollToSuggestion','set','markItemAsDone','ai-chat-feed-view-item-not-a-suggestion-item','_createTemplateChildren','delegate','scrollManager','_createFeedLoader','ck-ai-chat__loader-text','updateSources','setTemplate','element','includes','ai-chat-feed-view-item-not-a-reply-item','updateSuggestionPartState','stop','createCollection','render','updateContent','loadingMessage','_createFeedItems','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','extendTemplate','aiFeed','ai-suggestion-reply','287568bjcrnC','markAsDone','stopAutoScroll','3048252sqEsDN','2579385TQbqbi','bind','span','remove','_createSkeletonLoader','locale','945nDRdWA','_setupTemplate','isVisible'];_0x3058=function(){return _0x313991;};return _0x3058();}import{ScrollManager as _0x1524c4}from'../../aicore/utils/scrollmanager.js';import{AISkeletonView as _0x430db2,SKELETON_DEFINITIONS as _0xc76292}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x389943}from'../../aicore/ui/aispinner.js';export class AIChatFeedView extends _0x4d1bb1{[_0x217dc8(0x230)];[_0x217dc8(0x209)];[_0x217dc8(0x22d)];constructor(_0x29b6dc,_0x4cb166){const _0x2bd1ab=_0x217dc8;super(_0x29b6dc),this[_0x2bd1ab(0x22d)]=_0x4cb166,this[_0x2bd1ab(0x204)](_0x2bd1ab(0x23c),!0x1),this[_0x2bd1ab(0x204)](_0x2bd1ab(0x216),''),this[_0x2bd1ab(0x204)](_0x2bd1ab(0x23b),!0x1),this[_0x2bd1ab(0x204)](_0x2bd1ab(0x23a),!0x1),this[_0x2bd1ab(0x230)]=this[_0x2bd1ab(0x213)](),this[_0x2bd1ab(0x230)][_0x2bd1ab(0x208)](..._0x2bee2c)['to'](this),this[_0x2bd1ab(0x227)]();}[_0x217dc8(0x214)](){const _0x3d03ec=_0x217dc8;super[_0x3d03ec(0x214)](),this[_0x3d03ec(0x209)]=new _0x1524c4(this[_0x3d03ec(0x20e)]);}[_0x217dc8(0x202)](){const _0x3fb068=_0x217dc8;super[_0x3fb068(0x202)](),this[_0x3fb068(0x209)][_0x3fb068(0x202)]();}[_0x217dc8(0x240)](){const _0x89cd10=_0x217dc8;this[_0x89cd10(0x230)][_0x89cd10(0x240)]();}[_0x217dc8(0x1f7)](_0x147b77,_0x46a516){const _0x1a2f7c=_0x217dc8;let _0x408ec4;_0x1a2f7c(0x1f5)===_0x147b77?_0x408ec4=new _0x118ccb(this[_0x1a2f7c(0x225)],_0x46a516,this[_0x1a2f7c(0x22d)]):_0x1a2f7c(0x21b)===_0x147b77?(_0x408ec4=new _0x3de866(this[_0x1a2f7c(0x225)],_0x46a516,this[_0x1a2f7c(0x22d)]),_0x408ec4[_0x1a2f7c(0x221)](_0x1a2f7c(0x23a))['to'](this,_0x1a2f7c(0x23a))):_0x408ec4=_0x1a2f7c(0x237)===_0x147b77?new _0x52ec5d(this[_0x1a2f7c(0x225)],_0x46a516,this[_0x1a2f7c(0x22d)]):_0x1a2f7c(0x238)===_0x147b77?new _0xf5e98a(this[_0x1a2f7c(0x225)],_0x46a516):new _0x4cf4cf(_0x46a516),this[_0x1a2f7c(0x230)][_0x1a2f7c(0x1f4)](_0x408ec4);}async[_0x217dc8(0x232)]({id:_0x3eea7e,parsedContent:_0x2214ab,renderingStrategy:_0x53b46e,abortSignal:_0x366297}){const _0x1fb521=_0x217dc8,_0x3ce7b5=this[_0x1fb521(0x234)](_0x3eea7e);if(!(_0x3ce7b5 instanceof _0x118ccb))throw new _0x34de43(_0x1fb521(0x210),null,{'itemView':_0x3ce7b5,'id':_0x3eea7e,'parsedContent':_0x2214ab});await _0x3ce7b5[_0x1fb521(0x215)]({'parsedContent':_0x2214ab,'renderingStrategy':_0x53b46e,'abortSignal':_0x366297});}async[_0x217dc8(0x231)](_0x4a27ce,_0x18a697){const _0x1d0d4f=_0x217dc8,_0xbc49a0=this[_0x1d0d4f(0x234)](_0x4a27ce);if(_0xbc49a0 instanceof _0x3de866)_0xbc49a0[_0x1d0d4f(0x20c)](_0x18a697);else{if(!(_0xbc49a0 instanceof _0x118ccb))throw new _0x34de43(_0x1d0d4f(0x1fd),null,{'itemView':_0xbc49a0,'id':_0x4a27ce,'sources':_0x18a697});_0xbc49a0[_0x1d0d4f(0x20c)](_0x18a697);}}async[_0x217dc8(0x1ff)]({id:_0x40516f,parts:_0x5a51bf,renderingStrategy:_0x16ae3b,abortSignal:_0x295f32}){const _0x329fd1=_0x217dc8,_0x559689=this[_0x329fd1(0x234)](_0x40516f);if(!(_0x559689 instanceof _0x3de866))throw new _0x34de43(_0x329fd1(0x206),null,{'itemView':_0x559689,'id':_0x40516f,'parts':_0x5a51bf});await _0x559689[_0x329fd1(0x215)]({'parts':_0x5a51bf,'renderingStrategy':_0x16ae3b,'abortSignal':_0x295f32});}[_0x217dc8(0x211)]({id:_0x596372,index:_0x426c12,state:_0x2ddf4d}){const _0x492431=_0x217dc8,_0xbe6735=this[_0x492431(0x234)](_0x596372);if(!(_0xbe6735 instanceof _0x3de866))throw new _0x34de43(_0x492431(0x206),this,{'id':_0x596372});_0xbe6735[_0x492431(0x200)](_0x426c12,_0x2ddf4d);}[_0x217dc8(0x205)](_0x4ba742){const _0x5bb910=_0x217dc8;this[_0x5bb910(0x234)](_0x4ba742)[_0x5bb910(0x21d)]();}[_0x217dc8(0x201)](){const _0x1ec4c8=_0x217dc8;return this[_0x1ec4c8(0x230)][_0x1ec4c8(0x242)](_0x37bde8=>_0x37bde8[_0x1ec4c8(0x23d)]['id']);}[_0x217dc8(0x23f)](_0x31c5ff){const _0x33b5cc=_0x217dc8;this[_0x33b5cc(0x230)][_0x33b5cc(0x223)](this[_0x33b5cc(0x234)](_0x31c5ff));}[_0x217dc8(0x203)](_0x46fc1e,_0x199061){const _0x340833=_0x217dc8,_0x5242a3=this[_0x340833(0x234)](_0x46fc1e);if(!(_0x5242a3 instanceof _0x3de866))return void _0x1ac867(_0x340833(0x22c),{'replyId':_0x46fc1e,'partIndex':_0x199061});const _0x2d5315=_0x5242a3[_0x340833(0x1f3)](_0x199061);_0x2d5315?_0x507231({'target':_0x2d5315[_0x340833(0x20e)],'ancestorOffset':0x14,'alignToTop':!0x0,'forceScroll':!0x0}):_0x1ac867(_0x340833(0x218),{'replyId':_0x46fc1e,'partIndex':_0x199061});}[_0x217dc8(0x227)](){const _0x278750=_0x217dc8;this[_0x278750(0x20d)]({'tag':_0x278750(0x22e),'attributes':{'class':['ck',_0x278750(0x236)]},'children':this[_0x278750(0x207)]()});}[_0x217dc8(0x207)](){const _0x231989=_0x217dc8,_0x4dd651=this[_0x231989(0x224)]();return[this[_0x231989(0x217)](),_0x4dd651,this[_0x231989(0x20a)]()];}[_0x217dc8(0x224)](){const _0x120a28=_0x217dc8,_0x2b471a=new _0x430db2(this[_0x120a28(0x225)],_0xc76292[_0x120a28(0x21a)]);return _0x2b471a[_0x120a28(0x219)]({'attributes':{'class':[this[_0x120a28(0x241)]['if'](_0x120a28(0x23b),_0x120a28(0x239),_0x150c67=>!_0x150c67)]}}),_0x2b471a;}[_0x217dc8(0x217)](){const _0x4236cd=_0x217dc8,_0x2dd40e=new _0x4d1bb1(this[_0x4236cd(0x225)]);return _0x2dd40e[_0x4236cd(0x20d)]({'tag':_0x4236cd(0x22e),'attributes':{'class':['ck',_0x4236cd(0x22f),this[_0x4236cd(0x241)]['if'](_0x4236cd(0x23b),_0x4236cd(0x239))]},'children':this[_0x4236cd(0x230)]}),_0x2dd40e;}[_0x217dc8(0x20a)](){const _0xb360b=_0x217dc8,_0x525c67=new _0x4d1bb1(this[_0xb360b(0x225)]);return _0x525c67[_0xb360b(0x20d)]({'tag':_0xb360b(0x22e),'attributes':{'class':['ck',_0xb360b(0x229),this[_0xb360b(0x241)]['if'](_0xb360b(0x23c),_0xb360b(0x239),_0x80838a=>!_0x80838a)]},'children':this[_0xb360b(0x235)]()}),_0x525c67;}[_0x217dc8(0x235)](){const _0xf63004=_0x217dc8,_0x273139=new _0x389943();return _0x273139[_0xf63004(0x228)]=!0x0,[_0x273139,{'tag':_0xf63004(0x222),'attributes':{'class':['ck',_0xf63004(0x20b)]},'children':[{'text':this[_0xf63004(0x241)]['to'](_0xf63004(0x216))}]}];}[_0x217dc8(0x234)](_0x3a4362){const _0x5a8f64=_0x217dc8,_0x230381=this[_0x5a8f64(0x230)][_0x5a8f64(0x1f8)](_0xb3ca4c=>_0xb3ca4c[_0x5a8f64(0x23d)]['id'][_0x5a8f64(0x20f)](_0x3a4362));if(!_0x230381)throw new _0x34de43(_0x5a8f64(0x1fa),this,{'id':_0x3a4362});return _0x230381;}[_0x217dc8(0x1fc)](_0x22d1b0){const _0x13aa47=_0x217dc8;this[_0x13aa47(0x204)](_0x13aa47(0x216),_0x22d1b0);}[_0x217dc8(0x1f9)](_0x1b8ad8){const _0x34ade8=_0x217dc8;this[_0x34ade8(0x204)](_0x34ade8(0x23b),_0x1b8ad8);}[_0x217dc8(0x1fe)](){const _0x510f17=_0x217dc8;this[_0x510f17(0x209)][_0x510f17(0x233)]();}[_0x217dc8(0x21e)](){const _0x29086e=_0x217dc8;this[_0x29086e(0x209)][_0x29086e(0x212)]();}}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x2e1b(){const _0x5b3979=['add','fire','ck-ai-chat__start-conversation','resizeButton','778DKuMCL','5614308IqKMoI','ck-ai-header\x20ck-ai-header_chat','conversationStartButton','_createStartConversationButton','13385RjUaHt','2976xDWRbc','execute','locale','isMaximized','172774oAsSnT','1891761wHPaDb','501sNbNhd','children','1920YIDlUX','1280VzHGHQ','AI_CHAT_HEADING','27555FthbaA','22239epExiQ','set','startConversation','AI_CHAT_LABEL_NEW_CHAT'];_0x2e1b=function(){return _0x5b3979;};return _0x2e1b();}const _0x1f46ad=_0xcba5;(function(_0x35ba85,_0x3cc5c9){const _0x2591ad=_0xcba5,_0x2d918a=_0x35ba85();while(!![]){try{const _0x207be4=-parseInt(_0x2591ad(0xfc))/0x1*(-parseInt(_0x2591ad(0xf0))/0x2)+parseInt(_0x2591ad(0xfb))/0x3+parseInt(_0x2591ad(0xff))/0x4*(-parseInt(_0x2591ad(0xf5))/0x5)+parseInt(_0x2591ad(0xf1))/0x6+parseInt(_0x2591ad(0xfa))/0x7+-parseInt(_0x2591ad(0xf6))/0x8*(parseInt(_0x2591ad(0x102))/0x9)+-parseInt(_0x2591ad(0xfe))/0xa*(-parseInt(_0x2591ad(0x101))/0xb);if(_0x207be4===_0x3cc5c9)break;else _0x2d918a['push'](_0x2d918a['shift']());}catch(_0x14d7ae){_0x2d918a['push'](_0x2d918a['shift']());}}}(_0x2e1b,0x77de8));import{ButtonView as _0x328855,FormHeaderView as _0x36ef0a}from'ckeditor5/src/ui.js';import{IconPlus as _0x5b1032,IconAIChat as _0x3e0727}from'ckeditor5/src/icons.js';import{getTranslation as _0x27856f}from'../../aicore/utils/common-translations.js';function _0xcba5(_0x2bf270,_0x1831ff){const _0x2e1bd1=_0x2e1b();return _0xcba5=function(_0xcba588,_0x2c950b){_0xcba588=_0xcba588-0xef;let _0x3c967b=_0x2e1bd1[_0xcba588];return _0x3c967b;},_0xcba5(_0x2bf270,_0x1831ff);}import{createResizeButton as _0x5902bf}from'../../aicore/utils/createresizebutton.js';export class AIChatHeaderView extends _0x36ef0a{[_0x1f46ad(0xf3)];[_0x1f46ad(0xef)];constructor(_0x31c782,_0x17cda3){const _0x511801=_0x1f46ad;super(_0x31c782,{'label':_0x27856f(_0x31c782,_0x511801(0x100)),'class':_0x511801(0xf2),'icon':_0x3e0727}),this[_0x511801(0x103)](_0x511801(0xf9),!0x1),this[_0x511801(0xf3)]=this[_0x511801(0xf4)](_0x31c782),this[_0x511801(0xfd)][_0x511801(0x106)](this[_0x511801(0xf3)]),_0x17cda3&&(this[_0x511801(0xef)]=_0x5902bf(_0x31c782,this),this[_0x511801(0xfd)][_0x511801(0x106)](this[_0x511801(0xef)]));}[_0x1f46ad(0xf4)](_0x39b6ed){const _0x5da2d7=_0x1f46ad,_0x108b20=new _0x328855(_0x39b6ed);return _0x108b20[_0x5da2d7(0x103)]({'label':_0x27856f(this[_0x5da2d7(0xf8)],_0x5da2d7(0x105)),'withText':!0x0,'icon':_0x5b1032,'class':_0x5da2d7(0x108)}),_0x108b20['on'](_0x5da2d7(0xf7),()=>{const _0x1fa6a0=_0x5da2d7;this[_0x1fa6a0(0x107)](_0x1fa6a0(0x104));}),_0x108b20;}}
23
+ const _0x504ced=_0x3148;(function(_0x9a0ea5,_0x3de9f1){const _0xcfc738=_0x3148,_0x4dbf55=_0x9a0ea5();while(!![]){try{const _0x93296=-parseInt(_0xcfc738(0x98))/0x1*(-parseInt(_0xcfc738(0xb0))/0x2)+parseInt(_0xcfc738(0xa2))/0x3*(parseInt(_0xcfc738(0xa4))/0x4)+parseInt(_0xcfc738(0xad))/0x5*(parseInt(_0xcfc738(0xa5))/0x6)+parseInt(_0xcfc738(0xa7))/0x7*(-parseInt(_0xcfc738(0x9b))/0x8)+parseInt(_0xcfc738(0xaa))/0x9*(parseInt(_0xcfc738(0x9d))/0xa)+-parseInt(_0xcfc738(0x9e))/0xb+-parseInt(_0xcfc738(0xab))/0xc;if(_0x93296===_0x3de9f1)break;else _0x4dbf55['push'](_0x4dbf55['shift']());}catch(_0x217141){_0x4dbf55['push'](_0x4dbf55['shift']());}}}(_0x203f,0x3f297));import{ButtonView as _0x135172,FormHeaderView as _0x28060c}from'ckeditor5/src/ui.js';function _0x3148(_0x9de2c0,_0x4eb758){const _0x203f62=_0x203f();return _0x3148=function(_0x3148ea,_0x3e7fc0){_0x3148ea=_0x3148ea-0x97;let _0x37c985=_0x203f62[_0x3148ea];return _0x37c985;},_0x3148(_0x9de2c0,_0x4eb758);}function _0x203f(){const _0x40b655=['add','resizeButton','25605qQCasi','5922924AoDroP','conversationStartButton','255MauHSp','startConversation','set','4YSNXkq','AI_CHAT_HEADING','isMaximized','84356JbdDfY','AI_CHAT_LABEL_NEW_CHAT','ck-ai-chat__start-conversation','8pDBfVZ','locale','1180BbQrIc','2580303BzIxjS','_createStartConversationButton','execute','children','50595KQXhFM','fire','100TSjWkN','54666CqDWbl','ck-ai-header\x20ck-ai-header_chat','2826929loHDdO'];_0x203f=function(){return _0x40b655;};return _0x203f();}import{IconPlus as _0x1ae98e,IconAIChat as _0x1cb5ab}from'ckeditor5/src/icons.js';import{getTranslation as _0x429ef0}from'../../aicore/utils/common-translations.js';import{createResizeButton as _0x427b9c}from'../../aicore/utils/createresizebutton.js';export class AIChatHeaderView extends _0x28060c{[_0x504ced(0xac)];[_0x504ced(0xa9)];constructor(_0x4f0227,_0x35f3ae){const _0xe9d90a=_0x504ced;super(_0x4f0227,{'label':_0x429ef0(_0x4f0227,_0xe9d90a(0xb1)),'class':_0xe9d90a(0xa6),'icon':_0x1cb5ab}),this[_0xe9d90a(0xaf)](_0xe9d90a(0x97),!0x1),this[_0xe9d90a(0xac)]=this[_0xe9d90a(0x9f)](_0x4f0227),this[_0xe9d90a(0xa1)][_0xe9d90a(0xa8)](this[_0xe9d90a(0xac)]),_0x35f3ae&&(this[_0xe9d90a(0xa9)]=_0x427b9c(_0x4f0227,this),this[_0xe9d90a(0xa1)][_0xe9d90a(0xa8)](this[_0xe9d90a(0xa9)]));}[_0x504ced(0x9f)](_0x17c77c){const _0x474d84=_0x504ced,_0x5c67f9=new _0x135172(_0x17c77c);return _0x5c67f9[_0x474d84(0xaf)]({'label':_0x429ef0(this[_0x474d84(0x9c)],_0x474d84(0x99)),'withText':!0x0,'icon':_0x1ae98e,'class':_0x474d84(0x9a)}),_0x5c67f9['on'](_0x474d84(0xa0),()=>{const _0x4cad7c=_0x474d84;this[_0x4cad7c(0xa3)](_0x4cad7c(0xae));}),_0x5c67f9;}}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0xf708c3=_0x1eb2;(function(_0x290413,_0x61677a){var _0x7d4f9c=_0x1eb2,_0x5a88e5=_0x290413();while(!![]){try{var _0x38f9fc=parseInt(_0x7d4f9c(0x7f))/0x1+-parseInt(_0x7d4f9c(0x6e))/0x2*(-parseInt(_0x7d4f9c(0x75))/0x3)+-parseInt(_0x7d4f9c(0x7d))/0x4*(parseInt(_0x7d4f9c(0x88))/0x5)+parseInt(_0x7d4f9c(0x74))/0x6+parseInt(_0x7d4f9c(0x81))/0x7+parseInt(_0x7d4f9c(0x80))/0x8+-parseInt(_0x7d4f9c(0x76))/0x9*(parseInt(_0x7d4f9c(0x6c))/0xa);if(_0x38f9fc===_0x61677a)break;else _0x5a88e5['push'](_0x5a88e5['shift']());}catch(_0x402652){_0x5a88e5['push'](_0x5a88e5['shift']());}}}(_0x239e,0xb9b93));import{View as _0x51f595,BodyCollection as _0x5a1558}from'ckeditor5/src/ui.js';function _0x1eb2(_0x2ad040,_0x36a56d){var _0x239ec5=_0x239e();return _0x1eb2=function(_0x1eb239,_0x48fcca){_0x1eb239=_0x1eb239-0x6c;var _0x4fefb0=_0x239ec5[_0x1eb239];return _0x4fefb0;},_0x1eb2(_0x2ad040,_0x36a56d);}import{AI_CHAT_UI_EVENT_NAMES as _0x2240be}from'../utils/eventnames.js';import{AIChatFeedView as _0x3dbedf}from'./aichatfeedview.js';import{AIChatControlsView as _0x3f1e47}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x1ba95f}from'./aichatheaderview.js';import{AIDisclaimerView as _0x4013e7}from'../../aicore/ui/aidisclaimerview.js';export class AIChatView extends _0x51f595{[_0xf708c3(0x84)];[_0xf708c3(0x77)];[_0xf708c3(0x86)];[_0xf708c3(0x7b)];[_0xf708c3(0x7a)];constructor(_0x3c813d,_0x21a98a){var _0x121ec6=_0xf708c3;super(_0x3c813d),this[_0x121ec6(0x7a)]=new _0x5a1558(_0x3c813d),this[_0x121ec6(0x7a)][_0x121ec6(0x71)](),this[_0x121ec6(0x84)]=new _0x1ba95f(_0x3c813d,_0x21a98a[_0x121ec6(0x79)]),this[_0x121ec6(0x84)][_0x121ec6(0x6f)](..._0x2240be)['to'](this),this[_0x121ec6(0x77)]=new _0x3dbedf(_0x3c813d,this[_0x121ec6(0x7a)]),this[_0x121ec6(0x77)][_0x121ec6(0x6f)](..._0x2240be)['to'](this),this[_0x121ec6(0x86)]=new _0x3f1e47(_0x3c813d,{'bodyCollection':this[_0x121ec6(0x7a)],'contextResourcesSearchInputVisibleFrom':_0x21a98a[_0x121ec6(0x7e)]}),this[_0x121ec6(0x86)][_0x121ec6(0x6f)](..._0x2240be)['to'](this),this[_0x121ec6(0x7b)]=new _0x4013e7(_0x3c813d),this[_0x121ec6(0x73)]({'tag':_0x121ec6(0x82),'attributes':{'class':['ck',_0x121ec6(0x6d),_0x121ec6(0x83),_0x121ec6(0x78)],'dir':_0x3c813d[_0x121ec6(0x7c)]},'children':[this[_0x121ec6(0x84)],this[_0x121ec6(0x77)],this[_0x121ec6(0x86)],this[_0x121ec6(0x7b)]]});}[_0xf708c3(0x87)](_0x5af8d6,_0x4edac1,_0x27a364,_0x167c22){var _0x241627=_0xf708c3;this[_0x241627(0x86)][_0x241627(0x87)](_0x5af8d6,_0x4edac1,_0x27a364,_0x167c22);}[_0xf708c3(0x70)](_0x9dfa39){var _0x13e5c7=_0xf708c3;this[_0x13e5c7(0x86)][_0x13e5c7(0x70)](_0x9dfa39);}[_0xf708c3(0x85)](){var _0x16b3b7=_0xf708c3;this[_0x16b3b7(0x7a)][_0x16b3b7(0x72)](),super[_0x16b3b7(0x85)]();}}function _0x239e(){var _0x3ace1e=['chatHeader','destroy','chatControls','populateSourceResourceBalloon','3950230ugvgrO','2110qVfWQf','ck-reset_all','92HUTyLs','delegate','closeSourceResourceBalloon','attachToDom','detachFromDom','setTemplate','3384918gXrmkV','5727AJlvFK','30501TngrqS','chatFeed','ck-rounded-corners','showResizeButton','_bodyCollection','chatDisclaimer','uiLanguageDirection','4ltKSZx','contextResourcesSearchInputVisibleFrom','1036358dnkqaO','2980384JLEBOf','1434825nPaoXf','div','ck-ai-chat'];_0x239e=function(){return _0x3ace1e;};return _0x239e();}
23
+ var _0x13248d=_0xe87c;(function(_0x33b6fa,_0x36ccd6){var _0x151506=_0xe87c,_0x2e4121=_0x33b6fa();while(!![]){try{var _0x1d5d9f=parseInt(_0x151506(0xa8))/0x1*(parseInt(_0x151506(0xbe))/0x2)+parseInt(_0x151506(0xb4))/0x3*(parseInt(_0x151506(0xac))/0x4)+-parseInt(_0x151506(0xa4))/0x5+-parseInt(_0x151506(0xb9))/0x6*(parseInt(_0x151506(0xaf))/0x7)+-parseInt(_0x151506(0xa6))/0x8*(parseInt(_0x151506(0xa9))/0x9)+-parseInt(_0x151506(0xa7))/0xa*(-parseInt(_0x151506(0xb5))/0xb)+parseInt(_0x151506(0xb1))/0xc;if(_0x1d5d9f===_0x36ccd6)break;else _0x2e4121['push'](_0x2e4121['shift']());}catch(_0x4ef573){_0x2e4121['push'](_0x2e4121['shift']());}}}(_0x3989,0x6b915));import{View as _0x4bae2e,BodyCollection as _0x98d15f}from'ckeditor5/src/ui.js';function _0xe87c(_0x4b1f56,_0x30f4b9){var _0x3989e7=_0x3989();return _0xe87c=function(_0xe87cec,_0x148c85){_0xe87cec=_0xe87cec-0xa3;var _0xc37ec7=_0x3989e7[_0xe87cec];return _0xc37ec7;},_0xe87c(_0x4b1f56,_0x30f4b9);}import{AI_CHAT_UI_EVENT_NAMES as _0x172281}from'../utils/eventnames.js';import{AIChatFeedView as _0x33d0f9}from'./aichatfeedview.js';import{AIChatControlsView as _0x58bcde}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x3c76a3}from'./aichatheaderview.js';import{AIDisclaimerView as _0x4c31c7}from'../../aicore/ui/aidisclaimerview.js';export class AIChatView extends _0x4bae2e{[_0x13248d(0xaa)];[_0x13248d(0xb7)];[_0x13248d(0xb3)];[_0x13248d(0xae)];[_0x13248d(0xa5)];constructor(_0x3ffa6b,_0x530583){var _0x3ecd74=_0x13248d;super(_0x3ffa6b),this[_0x3ecd74(0xa5)]=new _0x98d15f(_0x3ffa6b),this[_0x3ecd74(0xa5)][_0x3ecd74(0xba)](),this[_0x3ecd74(0xaa)]=new _0x3c76a3(_0x3ffa6b,_0x530583[_0x3ecd74(0xb2)]),this[_0x3ecd74(0xaa)][_0x3ecd74(0xbd)](..._0x172281)['to'](this),this[_0x3ecd74(0xb7)]=new _0x33d0f9(_0x3ffa6b,this[_0x3ecd74(0xa5)]),this[_0x3ecd74(0xb7)][_0x3ecd74(0xbd)](..._0x172281)['to'](this),this[_0x3ecd74(0xb3)]=new _0x58bcde(_0x3ffa6b,{'bodyCollection':this[_0x3ecd74(0xa5)],'contextResourcesSearchInputVisibleFrom':_0x530583[_0x3ecd74(0xbc)]}),this[_0x3ecd74(0xb3)][_0x3ecd74(0xbd)](..._0x172281)['to'](this),this[_0x3ecd74(0xae)]=new _0x4c31c7(_0x3ffa6b),this[_0x3ecd74(0xa3)]({'tag':_0x3ecd74(0xb8),'attributes':{'class':['ck',_0x3ecd74(0xc1),_0x3ecd74(0xc0),_0x3ecd74(0xbf)],'dir':_0x3ffa6b[_0x3ecd74(0xb0)]},'children':[this[_0x3ecd74(0xaa)],this[_0x3ecd74(0xb7)],this[_0x3ecd74(0xb3)],this[_0x3ecd74(0xae)]]});}[_0x13248d(0xb6)](_0x2788b0,_0x329df0,_0x30cff,_0x3d0038){var _0x50929d=_0x13248d;this[_0x50929d(0xb3)][_0x50929d(0xb6)](_0x2788b0,_0x329df0,_0x30cff,_0x3d0038);}[_0x13248d(0xab)](_0x3f01e8){var _0x42ef27=_0x13248d;this[_0x42ef27(0xb3)][_0x42ef27(0xab)](_0x3f01e8);}[_0x13248d(0xbb)](){var _0x5d7e98=_0x13248d;this[_0x5d7e98(0xa5)][_0x5d7e98(0xad)](),super[_0x5d7e98(0xbb)]();}}function _0x3989(){var _0x1e1abf=['uiLanguageDirection','10220820emsCPT','showResizeButton','chatControls','6927nqyHNy','14487UdHuoW','populateSourceResourceBalloon','chatFeed','div','2040648xUDBaS','attachToDom','destroy','contextResourcesSearchInputVisibleFrom','delegate','40682BJGhWo','ck-rounded-corners','ck-ai-chat','ck-reset_all','setTemplate','701760OYRlqn','_bodyCollection','359464nAhTyF','790GGauZR','21PjAWtH','171HZXkwY','chatHeader','closeSourceResourceBalloon','1268isGwCy','detachFromDom','chatDisclaimer','14bPEbOg'];_0x3989=function(){return _0x1e1abf;};return _0x3989();}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xa66336=_0x1b83;(function(_0x901e23,_0x29df2d){const _0x201b19=_0x1b83,_0xaaa950=_0x901e23();while(!![]){try{const _0xe9af67=parseInt(_0x201b19(0x14f))/0x1+-parseInt(_0x201b19(0x13d))/0x2*(parseInt(_0x201b19(0x115))/0x3)+parseInt(_0x201b19(0x16e))/0x4+parseInt(_0x201b19(0x154))/0x5*(-parseInt(_0x201b19(0x122))/0x6)+parseInt(_0x201b19(0x114))/0x7*(-parseInt(_0x201b19(0x11a))/0x8)+parseInt(_0x201b19(0x104))/0x9*(parseInt(_0x201b19(0x12d))/0xa)+parseInt(_0x201b19(0xf8))/0xb*(-parseInt(_0x201b19(0x160))/0xc);if(_0xe9af67===_0x29df2d)break;else _0xaaa950['push'](_0xaaa950['shift']());}catch(_0x5e94a6){_0xaaa950['push'](_0xaaa950['shift']());}}}(_0x5f30,0xe4869));import{View as _0xa7c5c,BalloonPanelView as _0x4b0f99,ButtonView as _0x164cae,clickOutsideHandler as _0x1a40ad}from'ckeditor5/src/ui.js';import{Collection as _0x53970b}from'ckeditor5/src/utils.js';function _0x5f30(){const _0x189d10=['set','5QhnBYt','appendChild','_bodyCollection','querySelector','isConnected','_updateBalloonContent','visible','absolute','forEach','_locale','_checkAndHandleOverflow','maxVisibleRows','12TcKofB','pop','classList','visible\x20!important','disconnect','createElement','showMoreButtonView','visibility','setContainerElement','showMoreBalloon','block\x20!important','width','0px','pointerEvents','5299072zLIWNV','top','+\x201','toLowerCase','_renderChipsAndCountRows','rowDetectionTolerance','_showMoreBalloonPanelView','_createCalculationContainer','controlsButton','-9999px','_pendingCalculation','add','_ancestorsToRestore','_makeAncestorsVisible','300px','cloneNode','bottom','opacity','_config','from','_createShowMoreButtonView','cssClasses','div','execute','getComputedStyle','border-box','isOn','tagName','_distributeChips','element','_isContainerVisible','remove','3584141PbrAvd','right','children','label','_handleShowMoreButtonClick','_repinBalloonPanel','_calculateOverflowInContainer','_calculateContainerWidth','showMoreLabelPrefix','showBalloonPanel','extendTemplate','_applyCalculationStyles','270BQAUFl','_testButtonFit','reorganizeChips','hidden','overflowChips','pin','show','_targetContainer','parentElement','showMoreButton','zIndex','length','button','_setupVisibilityObserver','_containerElement','offsetWidth','14ovNrZJ','401061KBnDRx','block','clientWidth','destroy','_parentView','3502928gAiXLI','_applyOverflowResults','none','overflowContainer','auto','abs','observe','_overflowChips','5472066XJPxoQ','setTemplate','filter','_findTargetContainer','boxSizing','50px','hide','calculationContainer','push','_restoreAncestorVisibility','content','217850LxpKlN','_updateShowMoreButtonVisibility','getBoundingClientRect','isIntersecting','_createShowMoreButton','textContent','innerHTML','isVisible','left','className','ck-calculation-container','display','_visibleChips','height','_createMockButton','body','4wOEblL','clientHeight','style','position','clear','innerWidth','documentElement','slice','includes','hideBalloonPanel','_createShowMoreBalloonPanelView','_showMoreButtonView','innerHeight','_updateOverflowUI','some','.ck-ai-chat','undefined','render','1338671dvGFdq','_intersectionObserver','_createContainerElements','disableAnimationOnEnter'];_0x5f30=function(){return _0x189d10;};return _0x5f30();}function _0x1b83(_0x58d242,_0x30921b){const _0x5f300b=_0x5f30();return _0x1b83=function(_0x1b83d9,_0x3b8893){_0x1b83d9=_0x1b83d9-0xf6;let _0x1c1b68=_0x5f300b[_0x1b83d9];return _0x1c1b68;},_0x1b83(_0x58d242,_0x30921b);}const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},an=_0xa66336(0x17c);export class AIChatChipsOverflowManager{[_0xa66336(0x15d)];[_0xa66336(0x180)];[_0xa66336(0x139)];[_0xa66336(0x121)];[_0xa66336(0x148)]=null;[_0xa66336(0x174)]=null;[_0xa66336(0x112)]=null;[_0xa66336(0x156)];[_0xa66336(0x119)]=null;[_0xa66336(0x150)]=null;[_0xa66336(0x178)]=!0x1;constructor(_0x3f28c8,_0x10775e,_0x44638f,_0x80087c,_0xd15ed){const _0x37d09e=_0xa66336;this[_0x37d09e(0x15d)]=_0x3f28c8,this[_0x37d09e(0x139)]=_0x10775e,this[_0x37d09e(0x180)]={...hn,..._0x44638f,'cssClasses':{'controlsButton':'','calculationContainer':_0x37d09e(0x137),..._0x44638f[_0x37d09e(0x183)]}},this[_0x37d09e(0x121)]=new _0x53970b(),this[_0x37d09e(0x156)]=_0x80087c,this[_0x37d09e(0x119)]=_0xd15ed||null;}[_0xa66336(0x168)](_0x22cf5c){const _0x1b52e0=_0xa66336;this[_0x1b52e0(0x150)]&&(this[_0x1b52e0(0x150)][_0x1b52e0(0x164)](),this[_0x1b52e0(0x150)]=null),this[_0x1b52e0(0x112)]=_0x22cf5c,this[_0x1b52e0(0x111)]();}get[_0xa66336(0x166)](){const _0x23482d=_0xa66336;return this[_0x23482d(0x148)];}get[_0xa66336(0x108)](){const _0x1d562e=_0xa66336;return this[_0x1d562e(0x121)];}[_0xa66336(0x106)](){requestAnimationFrame(()=>{const _0x80d3d=_0x1b83;this[_0x80d3d(0x15e)]();});}[_0xa66336(0x101)](){const _0x125fd3=_0xa66336;this[_0x125fd3(0x148)]&&this[_0x125fd3(0x174)]&&(this[_0x125fd3(0x159)](),this[_0x125fd3(0x148)][_0x125fd3(0x188)]=!0x0,this[_0x125fd3(0x174)][_0x125fd3(0x10a)](),this[_0x125fd3(0x174)][_0x125fd3(0x109)]({'target':this[_0x125fd3(0x148)][_0x125fd3(0x18b)],'limiter':document[_0x125fd3(0x157)](_0x125fd3(0x14c))}));}[_0xa66336(0x146)](){const _0x2989fc=_0xa66336;this[_0x2989fc(0x148)]&&this[_0x2989fc(0x174)]&&(this[_0x2989fc(0x148)][_0x2989fc(0x188)]=!0x1,this[_0x2989fc(0x174)][_0x2989fc(0x128)]());}[_0xa66336(0x141)](){const _0x13969d=_0xa66336;this[_0x13969d(0x121)][_0x13969d(0x141)](),this[_0x13969d(0x146)](),this[_0x13969d(0x12e)](),this[_0x13969d(0x148)]&&(this[_0x13969d(0x148)][_0x13969d(0xfb)]=''),this[_0x13969d(0x174)]&&this[_0x13969d(0x174)][_0x13969d(0x12c)][_0x13969d(0x141)]();}[_0xa66336(0x118)](){const _0x19863f=_0xa66336;this[_0x19863f(0x150)]&&(this[_0x19863f(0x150)][_0x19863f(0x164)](),this[_0x19863f(0x150)]=null),this[_0x19863f(0x148)]&&(this[_0x19863f(0x148)][_0x19863f(0x118)](),this[_0x19863f(0x148)]=null),this[_0x19863f(0x174)]&&(this[_0x19863f(0x174)][_0x19863f(0x118)](),this[_0x19863f(0x174)]=null);}[_0xa66336(0x15e)](){const _0x5beb0a=_0xa66336;if(!this[_0x5beb0a(0x112)])return;if(!this[_0x5beb0a(0xf6)]())return void(this[_0x5beb0a(0x178)]=!0x0);this[_0x5beb0a(0x178)]=!0x1;const _0x38fa47=[...this[_0x5beb0a(0x139)],...this[_0x5beb0a(0x121)]],_0x4d9b23=this[_0x5beb0a(0x175)](),_0x178a5a=this[_0x5beb0a(0xfe)](_0x4d9b23,_0x38fa47),_0xe17ed6=_0x4d9b23[_0x5beb0a(0x17a)];_0xe17ed6&&this[_0x5beb0a(0x12b)](_0xe17ed6),_0x4d9b23[_0x5beb0a(0xf7)](),this[_0x5beb0a(0x11b)](_0x38fa47,_0x178a5a);}[_0xa66336(0x131)](){const _0xb05b3c=_0xa66336;this[_0xb05b3c(0x148)]=this[_0xb05b3c(0x182)](),this[_0xb05b3c(0x174)]=this[_0xb05b3c(0x147)](),this[_0xb05b3c(0x148)][_0xb05b3c(0x14e)](),this[_0xb05b3c(0x112)][_0xb05b3c(0x155)](this[_0xb05b3c(0x148)][_0xb05b3c(0x18b)]),this[_0xb05b3c(0x148)]['on'](_0xb05b3c(0x185),()=>{const _0x49bb00=_0xb05b3c;this[_0x49bb00(0xfc)]();}),_0x1a40ad({'emitter':this[_0xb05b3c(0x174)],'contextElements':[this[_0xb05b3c(0x174)][_0xb05b3c(0x18b)],this[_0xb05b3c(0x148)][_0xb05b3c(0x18b)]],'callback':()=>this[_0xb05b3c(0x146)](),'activator':()=>this[_0xb05b3c(0x148)][_0xb05b3c(0x188)]});}[_0xa66336(0x182)](){const _0x25835c=_0xa66336,_0x26f92e=new _0x164cae(this[_0x25835c(0x15d)]);_0x26f92e[_0x25835c(0x153)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x3f1785=[this[_0x25835c(0x180)][_0x25835c(0x183)][_0x25835c(0x10d)]];return this[_0x25835c(0x180)][_0x25835c(0x183)][_0x25835c(0x176)]&&_0x3f1785[_0x25835c(0x12a)](this[_0x25835c(0x180)][_0x25835c(0x183)][_0x25835c(0x176)]),_0x26f92e[_0x25835c(0x102)]({'attributes':{'class':_0x3f1785}}),_0x26f92e;}[_0xa66336(0x147)](){const _0x4ee7ff=_0xa66336,_0x1637f9=new _0x4b0f99(this[_0x4ee7ff(0x15d)]);return _0x1637f9[_0x4ee7ff(0x102)]({'attributes':{'class':this[_0x4ee7ff(0x180)][_0x4ee7ff(0x183)][_0x4ee7ff(0x169)]}}),this[_0x4ee7ff(0x156)][_0x4ee7ff(0x179)](_0x1637f9),_0x1637f9;}[_0xa66336(0x159)](){const _0x44ae57=_0xa66336;if(this[_0x44ae57(0x174)]&&(this[_0x44ae57(0x174)][_0x44ae57(0x12c)][_0x44ae57(0x141)](),this[_0x44ae57(0x121)][_0x44ae57(0x10f)]>0x0)){this[_0x44ae57(0x121)][_0x44ae57(0x15c)](_0x5636e3=>{const _0x45adb3=_0x44ae57;_0x5636e3[_0x45adb3(0x152)]();});const _0x45e66a=new _0xa7c5c(this[_0x44ae57(0x15d)]);_0x45e66a[_0x44ae57(0x123)]({'tag':_0x44ae57(0x184),'attributes':{'class':this[_0x44ae57(0x180)][_0x44ae57(0x183)][_0x44ae57(0x11d)]},'children':this[_0x44ae57(0x121)]}),this[_0x44ae57(0x174)][_0x44ae57(0x12c)][_0x44ae57(0x179)](_0x45e66a);}}[_0xa66336(0xfc)](){const _0x589cac=_0xa66336;this[_0x589cac(0x148)][_0x589cac(0x188)]?this[_0x589cac(0x146)]():this[_0x589cac(0x101)]();}[_0xa66336(0x12e)](){const _0x429ba8=_0xa66336,_0x184462=this[_0x429ba8(0x121)][_0x429ba8(0x10f)]>0x0;this[_0x429ba8(0x148)]?.[_0x429ba8(0x18b)]&&(this[_0x429ba8(0x148)][_0x429ba8(0x18b)][_0x429ba8(0x13f)][_0x429ba8(0x138)]=_0x184462?'':_0x429ba8(0x11c));}[_0xa66336(0xfd)](){const _0x2eb455=_0xa66336;this[_0x2eb455(0x148)]?.[_0x2eb455(0x188)]&&this[_0x2eb455(0x174)]?.[_0x2eb455(0x134)]&&this[_0x2eb455(0x148)][_0x2eb455(0x18b)]&&this[_0x2eb455(0x174)][_0x2eb455(0x109)]({'target':this[_0x2eb455(0x148)][_0x2eb455(0x18b)],'limiter':document[_0x2eb455(0x157)](_0x2eb455(0x14c))});}[_0xa66336(0x125)](_0x3676b5){const _0x398831=_0xa66336,_0x499d69=this[_0x398831(0x112)]?.[_0x398831(0x189)][_0x398831(0x171)]()||_0x398831(0x184),_0x5e27ee=this[_0x398831(0x112)]?.[_0x398831(0x162)];if(_0x5e27ee){const _0x4e755d=_0x5e27ee[0x0]||'',_0x27186a=_0x3676b5[_0x398831(0x157)]('.'+_0x4e755d),_0x16f76f=_0x3676b5[_0x398831(0x157)](_0x499d69);return _0x27186a||_0x16f76f||_0x3676b5;}return _0x3676b5[_0x398831(0x157)](_0x499d69)||_0x3676b5;}[_0xa66336(0xff)](){const _0x3f06b9=_0xa66336,_0x157fc1=this[_0x3f06b9(0x119)]?.[_0x3f06b9(0x18b)]||this[_0x3f06b9(0x112)];if(!_0x157fc1)return an;const _0x31e030=window[_0x3f06b9(0x186)](_0x157fc1)[_0x3f06b9(0x16b)];if(_0x3f06b9(0x11e)===_0x31e030||_0x3f06b9(0x16c)===_0x31e030||!_0x31e030){const _0x389822=_0x157fc1[_0x3f06b9(0x10c)];if(_0x389822){const _0x3e10ad=window[_0x3f06b9(0x186)](_0x389822);return _0x3f06b9(0x11e)!==_0x3e10ad[_0x3f06b9(0x16b)]?_0x3e10ad[_0x3f06b9(0x16b)]:an;}return an;}return _0x31e030;}[_0xa66336(0x103)](_0x52dfb3,_0x3d8cc8){const _0x2b3c4c=_0xa66336;this[_0x2b3c4c(0x180)][_0x2b3c4c(0x183)][_0x2b3c4c(0x129)]&&_0x52dfb3[_0x2b3c4c(0x162)][_0x2b3c4c(0x179)](this[_0x2b3c4c(0x180)][_0x2b3c4c(0x183)][_0x2b3c4c(0x129)]),_0x52dfb3[_0x2b3c4c(0x13f)][_0x2b3c4c(0x16b)]=_0x3d8cc8,_0x52dfb3[_0x2b3c4c(0x13f)][_0x2b3c4c(0x140)]=_0x2b3c4c(0x15b),_0x52dfb3[_0x2b3c4c(0x13f)][_0x2b3c4c(0x16f)]=_0x2b3c4c(0x177),_0x52dfb3[_0x2b3c4c(0x13f)][_0x2b3c4c(0x135)]=_0x2b3c4c(0x177),_0x52dfb3[_0x2b3c4c(0x13f)][_0x2b3c4c(0x17f)]='0',_0x52dfb3[_0x2b3c4c(0x13f)][_0x2b3c4c(0x16d)]=_0x2b3c4c(0x11c),_0x52dfb3[_0x2b3c4c(0x13f)][_0x2b3c4c(0x10e)]='-1',_0x52dfb3[_0x2b3c4c(0x13f)][_0x2b3c4c(0x167)]=_0x2b3c4c(0x163),_0x52dfb3[_0x2b3c4c(0x13f)][_0x2b3c4c(0x138)]=_0x2b3c4c(0x16a),_0x52dfb3[_0x2b3c4c(0x13f)][_0x2b3c4c(0x126)]=_0x2b3c4c(0x187);}[_0xa66336(0x12b)](_0x4d4320){const _0x342917=_0xa66336;_0x4d4320[_0x342917(0x15c)](({element:_0x4e4ba6,originalDisplay:_0x5c5199,originalVisibility:_0x3feaab})=>{const _0x514edb=_0x342917;_0x4e4ba6[_0x514edb(0x13f)][_0x514edb(0x138)]=_0x5c5199,_0x4e4ba6[_0x514edb(0x13f)][_0x514edb(0x167)]=_0x3feaab;});}[_0xa66336(0x17b)](_0x196e25){const _0x341508=_0xa66336,_0x1f155b=[];let _0x11a07=_0x196e25;for(;_0x11a07&&_0x11a07!==document[_0x341508(0x13c)];){const _0x4d0425=window[_0x341508(0x186)](_0x11a07);_0x341508(0x11c)!==_0x4d0425[_0x341508(0x138)]&&_0x341508(0x107)!==_0x4d0425[_0x341508(0x167)]||(_0x1f155b[_0x341508(0x12a)]({'element':_0x11a07,'originalDisplay':_0x11a07[_0x341508(0x13f)][_0x341508(0x138)],'originalVisibility':_0x11a07[_0x341508(0x13f)][_0x341508(0x167)]}),_0x11a07[_0x341508(0x13f)][_0x341508(0x138)]=_0x341508(0x116),_0x11a07[_0x341508(0x13f)][_0x341508(0x167)]=_0x341508(0x15a)),_0x11a07=_0x11a07[_0x341508(0x10c)];}return _0x1f155b;}[_0xa66336(0x151)](){const _0x5d0e11=_0xa66336;let _0x797ff8,_0x521fa5;return this[_0x5d0e11(0x119)]?.[_0x5d0e11(0x18b)]?(_0x797ff8=this[_0x5d0e11(0x119)][_0x5d0e11(0x18b)][_0x5d0e11(0x17d)](!0x0),_0x521fa5=this[_0x5d0e11(0x125)](_0x797ff8)):(_0x797ff8=document[_0x5d0e11(0x165)](_0x5d0e11(0x184)),_0x521fa5=_0x797ff8),{'calculationContainer':_0x797ff8,'targetContainer':_0x521fa5};}[_0xa66336(0x175)](){const _0x16739f=_0xa66336,{calculationContainer:_0x68d150,targetContainer:_0x171182}=this[_0x16739f(0x151)](),_0x28b232=this[_0x16739f(0xff)]();this[_0x16739f(0x103)](_0x68d150,_0x28b232);const _0x371a32=this[_0x16739f(0x119)]?.[_0x16739f(0x18b)]||this[_0x16739f(0x112)],_0x5a606f=_0x371a32?.[_0x16739f(0x10c)];_0x5a606f?_0x5a606f[_0x16739f(0x155)](_0x68d150):document[_0x16739f(0x13c)][_0x16739f(0x155)](_0x68d150),_0x68d150[_0x16739f(0x10b)]=_0x171182;const _0x12a4be=this[_0x16739f(0x17b)](_0x5a606f||null);return _0x68d150[_0x16739f(0x113)],_0x68d150[_0x16739f(0x17a)]=_0x12a4be,_0x68d150;}[_0xa66336(0xfe)](_0x1806f3,_0x5c720a){const _0x5e3ba3=_0xa66336,_0x6959f2=_0x1806f3[_0x5e3ba3(0x10b)]||_0x1806f3,_0x2316cc=[],{rowCount:_0x298378}=this[_0x5e3ba3(0x172)](_0x6959f2,_0x5c720a);if(_0x298378<=this[_0x5e3ba3(0x180)][_0x5e3ba3(0x15f)])return _0x2316cc;const _0x2d2290=_0x5c720a[_0x5e3ba3(0x144)]();for(;_0x2d2290[_0x5e3ba3(0x10f)]>0x0;){if(this[_0x5e3ba3(0x105)](_0x1806f3,_0x6959f2,_0x2d2290)){const _0x4f611d=_0x5c720a[_0x5e3ba3(0x124)](_0x2dd087=>!_0x2d2290[_0x5e3ba3(0x145)](_0x2dd087));_0x2316cc[_0x5e3ba3(0x12a)](..._0x4f611d);break;}if(!_0x2d2290[_0x5e3ba3(0x161)]())break;}return _0x2316cc;}[_0xa66336(0x172)](_0x25e06b,_0x35639e){const _0x1c39e1=_0xa66336;_0x25e06b[_0x1c39e1(0x133)]='',_0x35639e[_0x1c39e1(0x15c)](_0x3502c6=>{const _0xdd4f=_0x1c39e1;if(_0x3502c6[_0xdd4f(0x18b)]){const _0x1b7429=_0x3502c6[_0xdd4f(0x18b)][_0xdd4f(0x17d)](!0x0);_0x25e06b[_0xdd4f(0x155)](_0x1b7429);}}),_0x25e06b[_0x1c39e1(0x113)];const _0x530e3e=_0x25e06b[_0x1c39e1(0xfa)],_0x8d4b29=[];return Array[_0x1c39e1(0x181)](_0x530e3e)[_0x1c39e1(0x15c)](_0x58dc7a=>{const _0x2247fd=_0x1c39e1,_0xd764a=_0x58dc7a[_0x2247fd(0x12f)]()[_0x2247fd(0x16f)];_0x8d4b29[_0x2247fd(0x14b)](_0x5cd229=>Math[_0x2247fd(0x11f)](_0x5cd229-_0xd764a)<this[_0x2247fd(0x180)][_0x2247fd(0x173)])||_0x8d4b29[_0x2247fd(0x12a)](_0xd764a);}),{'rowCount':_0x8d4b29[_0x1c39e1(0x10f)]};}[_0xa66336(0x13b)](){const _0x56d97a=_0xa66336,_0x58171c=document[_0x56d97a(0x165)](_0x56d97a(0x110));return _0x58171c[_0x56d97a(0x136)]=this[_0x56d97a(0x180)][_0x56d97a(0x183)][_0x56d97a(0x10d)],this[_0x56d97a(0x180)][_0x56d97a(0x183)][_0x56d97a(0x176)]&&_0x58171c[_0x56d97a(0x162)][_0x56d97a(0x179)](this[_0x56d97a(0x180)][_0x56d97a(0x183)][_0x56d97a(0x176)]),_0x58171c[_0x56d97a(0x132)]=_0x56d97a(0x170),_0x58171c;}[_0xa66336(0x105)](_0x1726b4,_0x383ca0,_0x3acc60){const _0x3fbed1=_0xa66336;this[_0x3fbed1(0x172)](_0x383ca0,_0x3acc60);const _0x4faff7=this[_0x3fbed1(0x13b)]();_0x1726b4[_0x3fbed1(0x155)](_0x4faff7),_0x1726b4[_0x3fbed1(0x113)];const _0x3e2b64=[..._0x383ca0[_0x3fbed1(0xfa)],_0x4faff7],_0x1e5cb7=[];_0x3e2b64[_0x3fbed1(0x15c)](_0x373f55=>{const _0x39b23e=_0x3fbed1,_0x1d5d48=_0x373f55[_0x39b23e(0x12f)]()[_0x39b23e(0x16f)];_0x1e5cb7[_0x39b23e(0x14b)](_0x454b3f=>Math[_0x39b23e(0x11f)](_0x454b3f-_0x1d5d48)<this[_0x39b23e(0x180)][_0x39b23e(0x173)])||_0x1e5cb7[_0x39b23e(0x12a)](_0x1d5d48);});const _0x5be8df=_0x1e5cb7[_0x3fbed1(0x10f)];return _0x4faff7[_0x3fbed1(0xf7)](),_0x5be8df<=this[_0x3fbed1(0x180)][_0x3fbed1(0x15f)];}[_0xa66336(0x18a)](_0x5ada4f,_0x4b4b28){const _0x5ea79d=_0xa66336;this[_0x5ea79d(0x139)][_0x5ea79d(0x141)](),this[_0x5ea79d(0x121)][_0x5ea79d(0x141)](),_0x5ada4f[_0x5ea79d(0x15c)](_0xd67019=>{const _0x101aa6=_0x5ea79d;_0x4b4b28[_0x101aa6(0x145)](_0xd67019)?this[_0x101aa6(0x121)][_0x101aa6(0x179)](_0xd67019):this[_0x101aa6(0x139)][_0x101aa6(0x179)](_0xd67019);});}[_0xa66336(0x14a)](_0x1ced6d){const _0x4e785b=_0xa66336;if(_0x1ced6d>0x0&&!this[_0x4e785b(0x148)]&&this[_0x4e785b(0x131)](),_0x1ced6d>0x0&&this[_0x4e785b(0x148)]){const _0x421b20=''+this[_0x4e785b(0x180)][_0x4e785b(0x100)]+(_0x1ced6d<0x63?_0x1ced6d:'99');this[_0x4e785b(0x148)][_0x4e785b(0xfb)]=_0x421b20;}this[_0x4e785b(0x159)](),this[_0x4e785b(0x12e)](),this[_0x4e785b(0xfd)]();}[_0xa66336(0x11b)](_0x1b5a87,_0x3ec378){const _0x1f1e27=_0xa66336;this[_0x1f1e27(0x18a)](_0x1b5a87,_0x3ec378),this[_0x1f1e27(0x14a)](_0x3ec378[_0x1f1e27(0x10f)]);}[_0xa66336(0x111)](){const _0x26f21d=_0xa66336;this[_0x26f21d(0x112)]&&_0x26f21d(0x14d)!=typeof IntersectionObserver&&(this[_0x26f21d(0x150)]=new IntersectionObserver(_0x1ecabc=>{const _0xeed07e=_0x26f21d;_0x1ecabc[0x0][_0xeed07e(0x130)]&&this[_0xeed07e(0x178)]&&requestAnimationFrame(()=>{const _0x28301a=_0xeed07e;this[_0x28301a(0x15e)]();});},{'threshold':0.01,'rootMargin':_0x26f21d(0x127)}),this[_0x26f21d(0x150)][_0x26f21d(0x120)](this[_0x26f21d(0x112)]));}[_0xa66336(0xf6)](){const _0x335753=_0xa66336;if(!this[_0x335753(0x112)])return!0x1;if(!this[_0x335753(0x112)][_0x335753(0x158)])return!0x1;const _0x48c299=this[_0x335753(0x112)][_0x335753(0x12f)]();if(0x0===_0x48c299[_0x335753(0x16b)]||0x0===_0x48c299[_0x335753(0x13a)])return!0x1;const _0x270960=window[_0x335753(0x149)]||document[_0x335753(0x143)][_0x335753(0x13e)],_0x5ae70c=window[_0x335753(0x142)]||document[_0x335753(0x143)][_0x335753(0x117)],_0x1f325d=0xc8;return _0x48c299[_0x335753(0x17e)]>=-0xc8&&_0x48c299[_0x335753(0x16f)]<=_0x270960+_0x1f325d&&_0x48c299[_0x335753(0xf9)]>=-0xc8&&_0x48c299[_0x335753(0x135)]<=_0x5ae70c+_0x1f325d;}}
23
+ function _0x122a(_0x34edf4,_0x1a1525){const _0x10cf55=_0x10cf();return _0x122a=function(_0x122ac5,_0xe53358){_0x122ac5=_0x122ac5-0x13f;let _0x7c88ca=_0x10cf55[_0x122ac5];return _0x7c88ca;},_0x122a(_0x34edf4,_0x1a1525);}const _0x41eb55=_0x122a;(function(_0x5e3bdf,_0x5800b5){const _0x52a5f2=_0x122a,_0x511224=_0x5e3bdf();while(!![]){try{const _0x3b5907=parseInt(_0x52a5f2(0x155))/0x1*(parseInt(_0x52a5f2(0x169))/0x2)+-parseInt(_0x52a5f2(0x14c))/0x3*(-parseInt(_0x52a5f2(0x1b9))/0x4)+parseInt(_0x52a5f2(0x1a1))/0x5+-parseInt(_0x52a5f2(0x14f))/0x6+parseInt(_0x52a5f2(0x156))/0x7+-parseInt(_0x52a5f2(0x16c))/0x8*(-parseInt(_0x52a5f2(0x182))/0x9)+-parseInt(_0x52a5f2(0x197))/0xa*(parseInt(_0x52a5f2(0x1c8))/0xb);if(_0x3b5907===_0x5800b5)break;else _0x511224['push'](_0x511224['shift']());}catch(_0x43d69f){_0x511224['push'](_0x511224['shift']());}}}(_0x10cf,0x718b3));import{View as _0x1cacc1,BalloonPanelView as _0x4ff7e9,ButtonView as _0x321f,clickOutsideHandler as _0x5c5269}from'ckeditor5/src/ui.js';function _0x10cf(){const _0x38f5f7=['_calculateContainerWidth','300px','execute','_createShowMoreButtonView','pop','innerHTML','52CzJxCN','_handleShowMoreButtonClick','getComputedStyle','hideBalloonPanel','showMoreLabelPrefix','isConnected','_containerElement','_setupVisibilityObserver','cloneNode','_createShowMoreBalloonPanelView','isIntersecting','block','_createShowMoreButton','_findTargetContainer','maxVisibleRows','11ePKAvk','tagName','clientHeight','remove','position','div','textContent','forEach','setContainerElement','visible','add','_showMoreBalloonPanelView','+\x201','_checkAndHandleOverflow','_pendingCalculation','_updateShowMoreButtonVisibility','absolute','top','height','destroy','children','reorganizeChips','_applyOverflowResults','classList','auto','147843LWbryA','_ancestorsToRestore','_visibleChips','4805160szqJmw','calculationContainer','abs','isVisible','undefined','showMoreBalloon','251783DaBqDg','5471879xYqkmX','none','disconnect','left','includes','_restoreAncestorVisibility','push','pointerEvents','width','_createCalculationContainer','label','_locale','_updateBalloonContent','overflowContainer','_targetContainer','overflowChips','ck-calculation-container','_updateOverflowUI','block\x20!important','4gNGaIE','body','disableAnimationOnEnter','80Gluzpg','_renderChipsAndCountRows','extendTemplate','from','showBalloonPanel','_repinBalloonPanel','_testButtonFit','_parentView','_config','controlsButton','right','offsetWidth','cssClasses','show','_calculateOverflowInContainer','_createContainerElements','innerHeight','clientWidth','parentElement','zIndex','observe','clear','108513sclcha','set','appendChild','_isContainerVisible','querySelector','pin','display','render','0px','showMoreButton','boxSizing','length','visibility','setTemplate','_overflowChips','-9999px','toLowerCase','visible\x20!important','_bodyCollection','element','filter','11578990klPMkC','_intersectionObserver','rowDetectionTolerance','hide','hidden','content','opacity','_applyCalculationStyles','showMoreButtonView','.ck-ai-chat','1886740pXMJIp','bottom','documentElement','some','_createMockButton','50px','_showMoreButtonView','className','isOn','button','_distributeChips','style','getBoundingClientRect','border-box','slice','createElement','_makeAncestorsVisible','innerWidth'];_0x10cf=function(){return _0x38f5f7;};return _0x10cf();}import{Collection as _0x1cbfc3}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},an=_0x41eb55(0x1b4);export class AIChatChipsOverflowManager{[_0x41eb55(0x161)];[_0x41eb55(0x174)];[_0x41eb55(0x14e)];[_0x41eb55(0x190)];[_0x41eb55(0x1a7)]=null;[_0x41eb55(0x1d3)]=null;[_0x41eb55(0x1bf)]=null;[_0x41eb55(0x194)];[_0x41eb55(0x173)]=null;[_0x41eb55(0x198)]=null;[_0x41eb55(0x141)]=!0x1;constructor(_0x46febd,_0x282c1b,_0x344ffb,_0x581795,_0x19cc3c){const _0x2c9c31=_0x41eb55;this[_0x2c9c31(0x161)]=_0x46febd,this[_0x2c9c31(0x14e)]=_0x282c1b,this[_0x2c9c31(0x174)]={...hn,..._0x344ffb,'cssClasses':{'controlsButton':'','calculationContainer':_0x2c9c31(0x166),..._0x344ffb[_0x2c9c31(0x178)]}},this[_0x2c9c31(0x190)]=new _0x1cbfc3(),this[_0x2c9c31(0x194)]=_0x581795,this[_0x2c9c31(0x173)]=_0x19cc3c||null;}[_0x41eb55(0x1d0)](_0x4eab97){const _0x12c561=_0x41eb55;this[_0x12c561(0x198)]&&(this[_0x12c561(0x198)][_0x12c561(0x158)](),this[_0x12c561(0x198)]=null),this[_0x12c561(0x1bf)]=_0x4eab97,this[_0x12c561(0x1c0)]();}get[_0x41eb55(0x19f)](){const _0x3f903f=_0x41eb55;return this[_0x3f903f(0x1a7)];}get[_0x41eb55(0x165)](){const _0x6e3029=_0x41eb55;return this[_0x6e3029(0x190)];}[_0x41eb55(0x148)](){requestAnimationFrame(()=>{const _0x2f7903=_0x122a;this[_0x2f7903(0x140)]();});}[_0x41eb55(0x170)](){const _0x9c6b92=_0x41eb55;this[_0x9c6b92(0x1a7)]&&this[_0x9c6b92(0x1d3)]&&(this[_0x9c6b92(0x162)](),this[_0x9c6b92(0x1a7)][_0x9c6b92(0x1a9)]=!0x0,this[_0x9c6b92(0x1d3)][_0x9c6b92(0x179)](),this[_0x9c6b92(0x1d3)][_0x9c6b92(0x187)]({'target':this[_0x9c6b92(0x1a7)][_0x9c6b92(0x195)],'limiter':document[_0x9c6b92(0x186)](_0x9c6b92(0x1a0))}));}[_0x41eb55(0x1bc)](){const _0x5a5367=_0x41eb55;this[_0x5a5367(0x1a7)]&&this[_0x5a5367(0x1d3)]&&(this[_0x5a5367(0x1a7)][_0x5a5367(0x1a9)]=!0x1,this[_0x5a5367(0x1d3)][_0x5a5367(0x19a)]());}[_0x41eb55(0x181)](){const _0x5681f9=_0x41eb55;this[_0x5681f9(0x190)][_0x5681f9(0x181)](),this[_0x5681f9(0x1bc)](),this[_0x5681f9(0x142)](),this[_0x5681f9(0x1a7)]&&(this[_0x5681f9(0x1a7)][_0x5681f9(0x160)]=''),this[_0x5681f9(0x1d3)]&&this[_0x5681f9(0x1d3)][_0x5681f9(0x19c)][_0x5681f9(0x181)]();}[_0x41eb55(0x146)](){const _0x1db787=_0x41eb55;this[_0x1db787(0x198)]&&(this[_0x1db787(0x198)][_0x1db787(0x158)](),this[_0x1db787(0x198)]=null),this[_0x1db787(0x1a7)]&&(this[_0x1db787(0x1a7)][_0x1db787(0x146)](),this[_0x1db787(0x1a7)]=null),this[_0x1db787(0x1d3)]&&(this[_0x1db787(0x1d3)][_0x1db787(0x146)](),this[_0x1db787(0x1d3)]=null);}[_0x41eb55(0x140)](){const _0x13aeb1=_0x41eb55;if(!this[_0x13aeb1(0x1bf)])return;if(!this[_0x13aeb1(0x185)]())return void(this[_0x13aeb1(0x141)]=!0x0);this[_0x13aeb1(0x141)]=!0x1;const _0x1f3822=[...this[_0x13aeb1(0x14e)],...this[_0x13aeb1(0x190)]],_0x24e6ea=this[_0x13aeb1(0x15f)](),_0x4c0434=this[_0x13aeb1(0x17a)](_0x24e6ea,_0x1f3822),_0x715553=_0x24e6ea[_0x13aeb1(0x14d)];_0x715553&&this[_0x13aeb1(0x15b)](_0x715553),_0x24e6ea[_0x13aeb1(0x1cb)](),this[_0x13aeb1(0x149)](_0x1f3822,_0x4c0434);}[_0x41eb55(0x1c5)](){const _0xaf814d=_0x41eb55;this[_0xaf814d(0x1a7)]=this[_0xaf814d(0x1b6)](),this[_0xaf814d(0x1d3)]=this[_0xaf814d(0x1c2)](),this[_0xaf814d(0x1a7)][_0xaf814d(0x189)](),this[_0xaf814d(0x1bf)][_0xaf814d(0x184)](this[_0xaf814d(0x1a7)][_0xaf814d(0x195)]),this[_0xaf814d(0x1a7)]['on'](_0xaf814d(0x1b5),()=>{const _0x3fafdc=_0xaf814d;this[_0x3fafdc(0x1ba)]();}),_0x5c5269({'emitter':this[_0xaf814d(0x1d3)],'contextElements':[this[_0xaf814d(0x1d3)][_0xaf814d(0x195)],this[_0xaf814d(0x1a7)][_0xaf814d(0x195)]],'callback':()=>this[_0xaf814d(0x1bc)](),'activator':()=>this[_0xaf814d(0x1a7)][_0xaf814d(0x1a9)]});}[_0x41eb55(0x1b6)](){const _0xdc69ab=_0x41eb55,_0x4edaef=new _0x321f(this[_0xdc69ab(0x161)]);_0x4edaef[_0xdc69ab(0x183)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x1f18cd=[this[_0xdc69ab(0x174)][_0xdc69ab(0x178)][_0xdc69ab(0x18b)]];return this[_0xdc69ab(0x174)][_0xdc69ab(0x178)][_0xdc69ab(0x175)]&&_0x1f18cd[_0xdc69ab(0x15c)](this[_0xdc69ab(0x174)][_0xdc69ab(0x178)][_0xdc69ab(0x175)]),_0x4edaef[_0xdc69ab(0x16e)]({'attributes':{'class':_0x1f18cd}}),_0x4edaef;}[_0x41eb55(0x1c2)](){const _0x362586=_0x41eb55,_0x3b0e3f=new _0x4ff7e9(this[_0x362586(0x161)]);return _0x3b0e3f[_0x362586(0x16e)]({'attributes':{'class':this[_0x362586(0x174)][_0x362586(0x178)][_0x362586(0x154)]}}),this[_0x362586(0x194)][_0x362586(0x1d2)](_0x3b0e3f),_0x3b0e3f;}[_0x41eb55(0x162)](){const _0x5bd667=_0x41eb55;if(this[_0x5bd667(0x1d3)]&&(this[_0x5bd667(0x1d3)][_0x5bd667(0x19c)][_0x5bd667(0x181)](),this[_0x5bd667(0x190)][_0x5bd667(0x18d)]>0x0)){this[_0x5bd667(0x190)][_0x5bd667(0x1cf)](_0x2186c5=>{const _0xb1e54a=_0x5bd667;_0x2186c5[_0xb1e54a(0x16b)]();});const _0x1813d4=new _0x1cacc1(this[_0x5bd667(0x161)]);_0x1813d4[_0x5bd667(0x18f)]({'tag':_0x5bd667(0x1cd),'attributes':{'class':this[_0x5bd667(0x174)][_0x5bd667(0x178)][_0x5bd667(0x163)]},'children':this[_0x5bd667(0x190)]}),this[_0x5bd667(0x1d3)][_0x5bd667(0x19c)][_0x5bd667(0x1d2)](_0x1813d4);}}[_0x41eb55(0x1ba)](){const _0x56683f=_0x41eb55;this[_0x56683f(0x1a7)][_0x56683f(0x1a9)]?this[_0x56683f(0x1bc)]():this[_0x56683f(0x170)]();}[_0x41eb55(0x142)](){const _0x59900d=_0x41eb55,_0x4dabc0=this[_0x59900d(0x190)][_0x59900d(0x18d)]>0x0;this[_0x59900d(0x1a7)]?.[_0x59900d(0x195)]&&(this[_0x59900d(0x1a7)][_0x59900d(0x195)][_0x59900d(0x1ac)][_0x59900d(0x188)]=_0x4dabc0?'':_0x59900d(0x157));}[_0x41eb55(0x171)](){const _0x7e9973=_0x41eb55;this[_0x7e9973(0x1a7)]?.[_0x7e9973(0x1a9)]&&this[_0x7e9973(0x1d3)]?.[_0x7e9973(0x152)]&&this[_0x7e9973(0x1a7)][_0x7e9973(0x195)]&&this[_0x7e9973(0x1d3)][_0x7e9973(0x187)]({'target':this[_0x7e9973(0x1a7)][_0x7e9973(0x195)],'limiter':document[_0x7e9973(0x186)](_0x7e9973(0x1a0))});}[_0x41eb55(0x1c6)](_0x201859){const _0x5823f0=_0x41eb55,_0x5cc4ee=this[_0x5823f0(0x1bf)]?.[_0x5823f0(0x1c9)][_0x5823f0(0x192)]()||_0x5823f0(0x1cd),_0x427378=this[_0x5823f0(0x1bf)]?.[_0x5823f0(0x14a)];if(_0x427378){const _0x5a7c09=_0x427378[0x0]||'',_0x1b8d75=_0x201859[_0x5823f0(0x186)]('.'+_0x5a7c09),_0x5a5ffd=_0x201859[_0x5823f0(0x186)](_0x5cc4ee);return _0x1b8d75||_0x5a5ffd||_0x201859;}return _0x201859[_0x5823f0(0x186)](_0x5cc4ee)||_0x201859;}[_0x41eb55(0x1b3)](){const _0x7d714=_0x41eb55,_0xa1e6d7=this[_0x7d714(0x173)]?.[_0x7d714(0x195)]||this[_0x7d714(0x1bf)];if(!_0xa1e6d7)return an;const _0xbfa67c=window[_0x7d714(0x1bb)](_0xa1e6d7)[_0x7d714(0x15e)];if(_0x7d714(0x14b)===_0xbfa67c||_0x7d714(0x18a)===_0xbfa67c||!_0xbfa67c){const _0x382146=_0xa1e6d7[_0x7d714(0x17e)];if(_0x382146){const _0x571407=window[_0x7d714(0x1bb)](_0x382146);return _0x7d714(0x14b)!==_0x571407[_0x7d714(0x15e)]?_0x571407[_0x7d714(0x15e)]:an;}return an;}return _0xbfa67c;}[_0x41eb55(0x19e)](_0x556ff6,_0x344aba){const _0x2501e8=_0x41eb55;this[_0x2501e8(0x174)][_0x2501e8(0x178)][_0x2501e8(0x150)]&&_0x556ff6[_0x2501e8(0x14a)][_0x2501e8(0x1d2)](this[_0x2501e8(0x174)][_0x2501e8(0x178)][_0x2501e8(0x150)]),_0x556ff6[_0x2501e8(0x1ac)][_0x2501e8(0x15e)]=_0x344aba,_0x556ff6[_0x2501e8(0x1ac)][_0x2501e8(0x1cc)]=_0x2501e8(0x143),_0x556ff6[_0x2501e8(0x1ac)][_0x2501e8(0x144)]=_0x2501e8(0x191),_0x556ff6[_0x2501e8(0x1ac)][_0x2501e8(0x159)]=_0x2501e8(0x191),_0x556ff6[_0x2501e8(0x1ac)][_0x2501e8(0x19d)]='0',_0x556ff6[_0x2501e8(0x1ac)][_0x2501e8(0x15d)]=_0x2501e8(0x157),_0x556ff6[_0x2501e8(0x1ac)][_0x2501e8(0x17f)]='-1',_0x556ff6[_0x2501e8(0x1ac)][_0x2501e8(0x18e)]=_0x2501e8(0x193),_0x556ff6[_0x2501e8(0x1ac)][_0x2501e8(0x188)]=_0x2501e8(0x168),_0x556ff6[_0x2501e8(0x1ac)][_0x2501e8(0x18c)]=_0x2501e8(0x1ae);}[_0x41eb55(0x15b)](_0x2133e8){const _0x546266=_0x41eb55;_0x2133e8[_0x546266(0x1cf)](({element:_0x119881,originalDisplay:_0x3fb736,originalVisibility:_0x2b86fa})=>{const _0x43017a=_0x546266;_0x119881[_0x43017a(0x1ac)][_0x43017a(0x188)]=_0x3fb736,_0x119881[_0x43017a(0x1ac)][_0x43017a(0x18e)]=_0x2b86fa;});}[_0x41eb55(0x1b1)](_0x306939){const _0xba932c=_0x41eb55,_0x3c7ae5=[];let _0x470c1b=_0x306939;for(;_0x470c1b&&_0x470c1b!==document[_0xba932c(0x16a)];){const _0x10e004=window[_0xba932c(0x1bb)](_0x470c1b);_0xba932c(0x157)!==_0x10e004[_0xba932c(0x188)]&&_0xba932c(0x19b)!==_0x10e004[_0xba932c(0x18e)]||(_0x3c7ae5[_0xba932c(0x15c)]({'element':_0x470c1b,'originalDisplay':_0x470c1b[_0xba932c(0x1ac)][_0xba932c(0x188)],'originalVisibility':_0x470c1b[_0xba932c(0x1ac)][_0xba932c(0x18e)]}),_0x470c1b[_0xba932c(0x1ac)][_0xba932c(0x188)]=_0xba932c(0x1c4),_0x470c1b[_0xba932c(0x1ac)][_0xba932c(0x18e)]=_0xba932c(0x1d1)),_0x470c1b=_0x470c1b[_0xba932c(0x17e)];}return _0x3c7ae5;}[_0x41eb55(0x17b)](){const _0x47ad34=_0x41eb55;let _0x55096e,_0x11e980;return this[_0x47ad34(0x173)]?.[_0x47ad34(0x195)]?(_0x55096e=this[_0x47ad34(0x173)][_0x47ad34(0x195)][_0x47ad34(0x1c1)](!0x0),_0x11e980=this[_0x47ad34(0x1c6)](_0x55096e)):(_0x55096e=document[_0x47ad34(0x1b0)](_0x47ad34(0x1cd)),_0x11e980=_0x55096e),{'calculationContainer':_0x55096e,'targetContainer':_0x11e980};}[_0x41eb55(0x15f)](){const _0x37aa84=_0x41eb55,{calculationContainer:_0x48bd2c,targetContainer:_0x48368a}=this[_0x37aa84(0x17b)](),_0x1996d1=this[_0x37aa84(0x1b3)]();this[_0x37aa84(0x19e)](_0x48bd2c,_0x1996d1);const _0xca1c31=this[_0x37aa84(0x173)]?.[_0x37aa84(0x195)]||this[_0x37aa84(0x1bf)],_0xb99f6=_0xca1c31?.[_0x37aa84(0x17e)];_0xb99f6?_0xb99f6[_0x37aa84(0x184)](_0x48bd2c):document[_0x37aa84(0x16a)][_0x37aa84(0x184)](_0x48bd2c),_0x48bd2c[_0x37aa84(0x164)]=_0x48368a;const _0x4550d4=this[_0x37aa84(0x1b1)](_0xb99f6||null);return _0x48bd2c[_0x37aa84(0x177)],_0x48bd2c[_0x37aa84(0x14d)]=_0x4550d4,_0x48bd2c;}[_0x41eb55(0x17a)](_0x49b065,_0x42c456){const _0x164f82=_0x41eb55,_0x1837f8=_0x49b065[_0x164f82(0x164)]||_0x49b065,_0x19255d=[],{rowCount:_0x334218}=this[_0x164f82(0x16d)](_0x1837f8,_0x42c456);if(_0x334218<=this[_0x164f82(0x174)][_0x164f82(0x1c7)])return _0x19255d;const _0x338329=_0x42c456[_0x164f82(0x1af)]();for(;_0x338329[_0x164f82(0x18d)]>0x0;){if(this[_0x164f82(0x172)](_0x49b065,_0x1837f8,_0x338329)){const _0x127d9e=_0x42c456[_0x164f82(0x196)](_0x105cf9=>!_0x338329[_0x164f82(0x15a)](_0x105cf9));_0x19255d[_0x164f82(0x15c)](..._0x127d9e);break;}if(!_0x338329[_0x164f82(0x1b7)]())break;}return _0x19255d;}[_0x41eb55(0x16d)](_0x59ffa2,_0x4c6b95){const _0x228b76=_0x41eb55;_0x59ffa2[_0x228b76(0x1b8)]='',_0x4c6b95[_0x228b76(0x1cf)](_0x26bcd2=>{const _0x155adf=_0x228b76;if(_0x26bcd2[_0x155adf(0x195)]){const _0x52012d=_0x26bcd2[_0x155adf(0x195)][_0x155adf(0x1c1)](!0x0);_0x59ffa2[_0x155adf(0x184)](_0x52012d);}}),_0x59ffa2[_0x228b76(0x177)];const _0x5e440f=_0x59ffa2[_0x228b76(0x147)],_0x3344cd=[];return Array[_0x228b76(0x16f)](_0x5e440f)[_0x228b76(0x1cf)](_0x3ef968=>{const _0x1a0a81=_0x228b76,_0x271833=_0x3ef968[_0x1a0a81(0x1ad)]()[_0x1a0a81(0x144)];_0x3344cd[_0x1a0a81(0x1a4)](_0x20465d=>Math[_0x1a0a81(0x151)](_0x20465d-_0x271833)<this[_0x1a0a81(0x174)][_0x1a0a81(0x199)])||_0x3344cd[_0x1a0a81(0x15c)](_0x271833);}),{'rowCount':_0x3344cd[_0x228b76(0x18d)]};}[_0x41eb55(0x1a5)](){const _0x541341=_0x41eb55,_0x42940d=document[_0x541341(0x1b0)](_0x541341(0x1aa));return _0x42940d[_0x541341(0x1a8)]=this[_0x541341(0x174)][_0x541341(0x178)][_0x541341(0x18b)],this[_0x541341(0x174)][_0x541341(0x178)][_0x541341(0x175)]&&_0x42940d[_0x541341(0x14a)][_0x541341(0x1d2)](this[_0x541341(0x174)][_0x541341(0x178)][_0x541341(0x175)]),_0x42940d[_0x541341(0x1ce)]=_0x541341(0x13f),_0x42940d;}[_0x41eb55(0x172)](_0x1222ef,_0x51e005,_0x48c88){const _0x57dc09=_0x41eb55;this[_0x57dc09(0x16d)](_0x51e005,_0x48c88);const _0x8e54ca=this[_0x57dc09(0x1a5)]();_0x1222ef[_0x57dc09(0x184)](_0x8e54ca),_0x1222ef[_0x57dc09(0x177)];const _0x100897=[..._0x51e005[_0x57dc09(0x147)],_0x8e54ca],_0x3539e9=[];_0x100897[_0x57dc09(0x1cf)](_0x1a3138=>{const _0x76d602=_0x57dc09,_0x5ef97e=_0x1a3138[_0x76d602(0x1ad)]()[_0x76d602(0x144)];_0x3539e9[_0x76d602(0x1a4)](_0x25c370=>Math[_0x76d602(0x151)](_0x25c370-_0x5ef97e)<this[_0x76d602(0x174)][_0x76d602(0x199)])||_0x3539e9[_0x76d602(0x15c)](_0x5ef97e);});const _0x4f96ba=_0x3539e9[_0x57dc09(0x18d)];return _0x8e54ca[_0x57dc09(0x1cb)](),_0x4f96ba<=this[_0x57dc09(0x174)][_0x57dc09(0x1c7)];}[_0x41eb55(0x1ab)](_0x1e8334,_0x430f56){const _0x435a49=_0x41eb55;this[_0x435a49(0x14e)][_0x435a49(0x181)](),this[_0x435a49(0x190)][_0x435a49(0x181)](),_0x1e8334[_0x435a49(0x1cf)](_0x2eb012=>{const _0x2e58cd=_0x435a49;_0x430f56[_0x2e58cd(0x15a)](_0x2eb012)?this[_0x2e58cd(0x190)][_0x2e58cd(0x1d2)](_0x2eb012):this[_0x2e58cd(0x14e)][_0x2e58cd(0x1d2)](_0x2eb012);});}[_0x41eb55(0x167)](_0x209063){const _0x1d2dc4=_0x41eb55;if(_0x209063>0x0&&!this[_0x1d2dc4(0x1a7)]&&this[_0x1d2dc4(0x1c5)](),_0x209063>0x0&&this[_0x1d2dc4(0x1a7)]){const _0x19a682=''+this[_0x1d2dc4(0x174)][_0x1d2dc4(0x1bd)]+(_0x209063<0x63?_0x209063:'99');this[_0x1d2dc4(0x1a7)][_0x1d2dc4(0x160)]=_0x19a682;}this[_0x1d2dc4(0x162)](),this[_0x1d2dc4(0x142)](),this[_0x1d2dc4(0x171)]();}[_0x41eb55(0x149)](_0x28df08,_0x4b2521){const _0x2f28cb=_0x41eb55;this[_0x2f28cb(0x1ab)](_0x28df08,_0x4b2521),this[_0x2f28cb(0x167)](_0x4b2521[_0x2f28cb(0x18d)]);}[_0x41eb55(0x1c0)](){const _0x203b58=_0x41eb55;this[_0x203b58(0x1bf)]&&_0x203b58(0x153)!=typeof IntersectionObserver&&(this[_0x203b58(0x198)]=new IntersectionObserver(_0x22037c=>{const _0x4c5b4f=_0x203b58;_0x22037c[0x0][_0x4c5b4f(0x1c3)]&&this[_0x4c5b4f(0x141)]&&requestAnimationFrame(()=>{const _0x4b12d5=_0x4c5b4f;this[_0x4b12d5(0x140)]();});},{'threshold':0.01,'rootMargin':_0x203b58(0x1a6)}),this[_0x203b58(0x198)][_0x203b58(0x180)](this[_0x203b58(0x1bf)]));}[_0x41eb55(0x185)](){const _0x4c453e=_0x41eb55;if(!this[_0x4c453e(0x1bf)])return!0x1;if(!this[_0x4c453e(0x1bf)][_0x4c453e(0x1be)])return!0x1;const _0x3255ec=this[_0x4c453e(0x1bf)][_0x4c453e(0x1ad)]();if(0x0===_0x3255ec[_0x4c453e(0x15e)]||0x0===_0x3255ec[_0x4c453e(0x145)])return!0x1;const _0x3fc26b=window[_0x4c453e(0x17c)]||document[_0x4c453e(0x1a3)][_0x4c453e(0x1ca)],_0x37f469=window[_0x4c453e(0x1b2)]||document[_0x4c453e(0x1a3)][_0x4c453e(0x17d)],_0x50ce7d=0xc8;return _0x3255ec[_0x4c453e(0x1a2)]>=-0xc8&&_0x3255ec[_0x4c453e(0x144)]<=_0x3fc26b+_0x50ce7d&&_0x3255ec[_0x4c453e(0x176)]>=-0xc8&&_0x3255ec[_0x4c453e(0x159)]<=_0x37f469+_0x50ce7d;}}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x555038=_0x15ef;(function(_0x553bb9,_0x3308ad){const _0x4ba93c=_0x15ef,_0x437cf7=_0x553bb9();while(!![]){try{const _0x7992bf=-parseInt(_0x4ba93c(0x1c3))/0x1+parseInt(_0x4ba93c(0x1b3))/0x2+-parseInt(_0x4ba93c(0x1c0))/0x3*(-parseInt(_0x4ba93c(0x1b6))/0x4)+-parseInt(_0x4ba93c(0x1b9))/0x5*(-parseInt(_0x4ba93c(0x1a6))/0x6)+parseInt(_0x4ba93c(0x1d6))/0x7*(parseInt(_0x4ba93c(0x1aa))/0x8)+-parseInt(_0x4ba93c(0x1da))/0x9*(-parseInt(_0x4ba93c(0x1c8))/0xa)+parseInt(_0x4ba93c(0x1b4))/0xb*(-parseInt(_0x4ba93c(0x1d4))/0xc);if(_0x7992bf===_0x3308ad)break;else _0x437cf7['push'](_0x437cf7['shift']());}catch(_0x1a09dd){_0x437cf7['push'](_0x437cf7['shift']());}}}(_0x3ebd,0x1d696));import{ButtonView as _0x4c844e,IconView as _0x101fc3}from'ckeditor5/src/ui.js';function _0x15ef(_0x3f6c13,_0x246afd){const _0x3ebdc5=_0x3ebd();return _0x15ef=function(_0x15ef21,_0x5b7392){_0x15ef21=_0x15ef21-0x198;let _0x279c61=_0x3ebdc5[_0x15ef21];return _0x279c61;},_0x15ef(_0x3f6c13,_0x246afd);}function _0x3ebd(){const _0x449416=['653000lgqwMg','_initializeProperties','isVisible','lastIndexOf','removeEventListener','setTemplate','fire','small','isLoading','328164YSRjUS','1441Stjigk','execute','4HQSpQG','label','_handleAnimationEndOnce','5dvGcRY','element','ck-ai-chat-context-chip_new-chip','locale','ck-ai-chat-context-chip__type-icon','tooltip','add','81318ceEJfx','_createRemoveButton','itemType','143315nTqdHK','selection','_setupRemoveButtonEvent','slice','_createLoaderIcon','470pEbsKR','ck-ai-chat-context-chip__label','ck-ai-chat-context-controls__chip-tooltip','bind','classList','uiId','ck-ai-chat-context-chip_wide','render','webkitAnimationEnd','readonly','bindTemplate','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','30396HUIhxT','ck-ai-chat-context-chip','7TZmhLw','type','_isAnimationOnEnterEnabled','_createIconView','21591mQFzyn','document','ck-ai-chat-context-chip_document','removeContextItemChip','content','addEventListener','length','animationend','_createTemplateChildren','_createLabelElement','span','remove','disableAnimationOnEnter','div','ck-hidden','extendTemplate','1260252YHgSQO','set','_setupTemplate','_createTemplateAttributes'];_0x3ebd=function(){return _0x449416;};return _0x3ebd();}import{IconClose as _0x35776a,IconDocument as _0x21681a,IconFileUpload as _0x25d78d,IconLink as _0x20ca3b,IconSelection as _0x43fa46}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x34d30f}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x3dff25}from'../../../aicore/ui/aispinner.js';const xn={'file':_0x25d78d,'document':_0x21681a,'web-resource':_0x20ca3b,'text':_0x25d78d,'selection':_0x43fa46},bn=_0x555038(0x1d5),wn=_0x555038(0x1ce),Tn=_0x555038(0x198),En=_0x555038(0x1c9),fn=_0x555038(0x1bd),An=_0x555038(0x1ca),Cn='n';export class AIChatContextItemButtonView extends _0x4c844e{constructor(_0x3b0e26,_0x12814f,_0x4ba47e,_0x4fc3f9,_0x659b0b=!0x1){const _0xb99868=_0x555038;super(_0x3b0e26),this[_0xb99868(0x1d8)]=_0x4fc3f9,this[_0xb99868(0x1ab)](_0x12814f,_0x4ba47e,_0x659b0b),this[_0xb99868(0x1a8)]();}[_0x555038(0x1cf)](){const _0x28b2f0=_0x555038;super[_0x28b2f0(0x1cf)](),this[_0x28b2f0(0x1d8)]&&this[_0x28b2f0(0x1ba)]&&(this[_0x28b2f0(0x1ba)][_0x28b2f0(0x1cc)][_0x28b2f0(0x1bf)](_0x28b2f0(0x1bb)),this[_0x28b2f0(0x1b8)](this[_0x28b2f0(0x1ba)],()=>{const _0x4303ca=_0x28b2f0;this[_0x4303ca(0x1ba)]&&this[_0x4303ca(0x1ba)][_0x4303ca(0x1cc)][_0x4303ca(0x1a1)](_0x4303ca(0x1bb));}));}[_0x555038(0x1a2)](){const _0x254284=_0x555038;this[_0x254284(0x1d8)]=!0x1,this[_0x254284(0x1ba)]&&this[_0x254284(0x1ba)][_0x254284(0x1cc)][_0x254284(0x1a1)](_0x254284(0x1bb));}[_0x555038(0x1ab)](_0x113daa,_0x5e4825,_0x30c950){const _0x5b2321=_0x555038;this[_0x5b2321(0x1a7)](_0x5b2321(0x1b7),_0x113daa[_0x5b2321(0x1b7)]),this[_0x5b2321(0x1a7)](_0x5b2321(0x1be),!0x0),this[_0x5b2321(0x1a7)](_0x5b2321(0x1c2),_0x113daa[_0x5b2321(0x1d7)]),this[_0x5b2321(0x1a7)]('id',_0x113daa[_0x5b2321(0x1cd)]),this[_0x5b2321(0x1a7)](_0x5b2321(0x1d1),_0x5e4825),this[_0x5b2321(0x1a7)](_0x5b2321(0x1b2),_0x30c950);}[_0x555038(0x1a8)](){const _0x5a4b9a=_0x555038,_0x1dd372=this[_0x5a4b9a(0x1d9)](),_0x28c508=this[_0x5a4b9a(0x1c1)](),_0x531540=this[_0x5a4b9a(0x1d2)];this[_0x5a4b9a(0x1af)]({'tag':_0x5a4b9a(0x1a3),'attributes':this[_0x5a4b9a(0x1a9)](_0x531540),'children':this[_0x5a4b9a(0x19e)](_0x1dd372,_0x28c508,_0x531540)});}[_0x555038(0x1a9)](_0x501baa){const _0x26eeca=_0x555038;return{'class':[bn,_0x501baa['if'](_0x26eeca(0x1c2),Tn,_0x3a88fe=>_0x26eeca(0x1db)==_0x3a88fe),_0x501baa['if'](_0x26eeca(0x1c2),wn,_0x1cbf0f=>_0x26eeca(0x1c4)==_0x1cbf0f)],'data-cke-tooltip-text':_0x501baa['to'](_0x26eeca(0x1b7),In),'data-cke-tooltip-position':Cn,'data-cke-tooltip-class':An};}[_0x555038(0x19e)](_0x31cef9,_0x47a323,_0x3201cf){const _0x5eff0c=_0x555038,_0x4286d8=this[_0x5eff0c(0x19f)](_0x3201cf),_0x13b27d=this[_0x5eff0c(0x1c7)]();return this[_0x5eff0c(0x1d1)]?[_0x31cef9,_0x4286d8]:[_0x31cef9,_0x13b27d,_0x4286d8,_0x47a323];}[_0x555038(0x19f)](_0x3195b9){const _0x2da849=_0x555038;return{'tag':_0x2da849(0x1a0),'attributes':{'class':En},'children':[{'text':_0x3195b9['to'](_0x2da849(0x1b7))}]};}[_0x555038(0x1c1)](){const _0x363e2e=_0x555038,_0x47f855=new _0x4c844e(this[_0x363e2e(0x1bc)]);return _0x47f855[_0x363e2e(0x1a7)]({'label':_0x34d30f(this[_0x363e2e(0x1bc)],_0x363e2e(0x1d3)),'icon':_0x35776a}),this[_0x363e2e(0x1c5)](_0x47f855),_0x47f855;}[_0x555038(0x1c5)](_0x5f2ff6){const _0x29bc23=_0x555038;_0x5f2ff6['on'](_0x29bc23(0x1b5),()=>{const _0x154890=_0x29bc23;this[_0x154890(0x1b0)](_0x154890(0x199),this['id']);});}[_0x555038(0x1d9)](){const _0x55d35e=_0x555038,_0x323a0a=this[_0x55d35e(0x1d2)],_0x31c5cd=new _0x101fc3();return _0x31c5cd[_0x55d35e(0x19a)]=xn[this[_0x55d35e(0x1c2)]],_0x31c5cd[_0x55d35e(0x1a5)]({'attributes':{'class':[fn,_0x323a0a['if'](_0x55d35e(0x1b2),_0x55d35e(0x1a4),_0x5ce6b7=>_0x5ce6b7)]}}),_0x31c5cd;}[_0x555038(0x1b8)](_0x54499d,_0x24cbce){const _0x2f9a06=_0x555038;if(!_0x54499d)return;const _0x420463=()=>{const _0xd9ec0e=_0x15ef;_0x24cbce(),_0x54499d[_0xd9ec0e(0x1ae)](_0xd9ec0e(0x19d),_0x420463),_0x54499d[_0xd9ec0e(0x1ae)](_0xd9ec0e(0x1d0),_0x420463);};_0x54499d[_0x2f9a06(0x19b)](_0x2f9a06(0x19d),_0x420463),_0x54499d[_0x2f9a06(0x19b)](_0x2f9a06(0x1d0),_0x420463);}[_0x555038(0x1c7)](){const _0x922102=_0x555038,_0x274d90=new _0x3dff25(_0x922102(0x1b1));return _0x274d90[_0x922102(0x1cb)](_0x922102(0x1ac))['to'](this,_0x922102(0x1b2),_0x51208e=>_0x51208e),_0x274d90;}}function In(_0x278f86){const _0x3f0987=_0x555038;if(!_0x278f86)return _0x278f86;if(_0x278f86[_0x3f0987(0x19c)]<=0x78)return _0x278f86;const _0x358bc=_0x278f86[_0x3f0987(0x1c6)](0x0,0x78),_0x51fdf1=_0x358bc[_0x3f0987(0x1ad)]('\x20');return(_0x51fdf1>0x0?_0x358bc[_0x3f0987(0x1c6)](0x0,_0x51fdf1):_0x358bc)+'…';}
23
+ const _0x2844f7=_0x3477;(function(_0x25eb96,_0xe715be){const _0x11fbfa=_0x3477,_0x25d96d=_0x25eb96();while(!![]){try{const _0x4af2bf=parseInt(_0x11fbfa(0x89))/0x1+-parseInt(_0x11fbfa(0xad))/0x2+-parseInt(_0x11fbfa(0xc2))/0x3+parseInt(_0x11fbfa(0xb8))/0x4*(parseInt(_0x11fbfa(0xa1))/0x5)+parseInt(_0x11fbfa(0xbc))/0x6*(parseInt(_0x11fbfa(0x96))/0x7)+-parseInt(_0x11fbfa(0x85))/0x8*(-parseInt(_0x11fbfa(0x91))/0x9)+-parseInt(_0x11fbfa(0x8c))/0xa*(parseInt(_0x11fbfa(0x94))/0xb);if(_0x4af2bf===_0xe715be)break;else _0x25d96d['push'](_0x25d96d['shift']());}catch(_0x3a2669){_0x25d96d['push'](_0x25d96d['shift']());}}}(_0x232d,0x3a241));import{ButtonView as _0x507412,IconView as _0x108015}from'ckeditor5/src/ui.js';function _0x3477(_0x2cec8f,_0x215c36){const _0x232d8a=_0x232d();return _0x3477=function(_0x34778e,_0x2f9ba3){_0x34778e=_0x34778e-0x84;let _0x405ccd=_0x232d8a[_0x34778e];return _0x405ccd;},_0x3477(_0x2cec8f,_0x215c36);}import{IconClose as _0x391820,IconDocument as _0x49d1af,IconFileUpload as _0x1b6fd0,IconLink as _0x34cddd,IconSelection as _0x299a92}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x50120f}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x551689}from'../../../aicore/ui/aispinner.js';function _0x232d(){const _0x77cb6f=['bindTemplate','_createTemplateChildren','_isAnimationOnEnterEnabled','type','fire','set','disableAnimationOnEnter','ck-ai-chat-context-chip__label','div','496964OuiEsC','ck-ai-chat-context-chip_new-chip','_setupRemoveButtonEvent','isLoading','animationend','selection','small','tooltip','_initializeProperties','isVisible','addEventListener','273512HpbOUp','remove','_handleAnimationEndOnce','removeContextItemChip','564DEVIwQ','content','label','document','element','lastIndexOf','1159665wpIjip','_createRemoveButton','locale','uiId','ck-ai-chat-context-chip_document','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','4208GIguCw','ck-ai-chat-context-chip','classList','ck-ai-chat-context-chip__type-icon','474596jhpzGx','render','execute','940YiRIWi','itemType','add','webkitAnimationEnd','length','7983lkLnRj','_createTemplateAttributes','setTemplate','66561VYBaja','slice','27111duxEKT','ck-ai-chat-context-chip_wide','_createLabelElement','extendTemplate','bind','readonly','removeEventListener','span','_createLoaderIcon','_setupTemplate','_createIconView','10CjPhwp','ck-ai-chat-context-controls__chip-tooltip','ck-hidden'];_0x232d=function(){return _0x77cb6f;};return _0x232d();}const xn={'file':_0x1b6fd0,'document':_0x49d1af,'web-resource':_0x34cddd,'text':_0x1b6fd0,'selection':_0x299a92},bn=_0x2844f7(0x86),wn=_0x2844f7(0x97),Tn=_0x2844f7(0xc6),En=_0x2844f7(0xab),fn=_0x2844f7(0x88),An=_0x2844f7(0xa2),Cn='n';export class AIChatContextItemButtonView extends _0x507412{constructor(_0x1648fb,_0x12fef8,_0x492bc0,_0x82fce5,_0x2d434e=!0x1){const _0xcfc3a0=_0x2844f7;super(_0x1648fb),this[_0xcfc3a0(0xa6)]=_0x82fce5,this[_0xcfc3a0(0xb5)](_0x12fef8,_0x492bc0,_0x2d434e),this[_0xcfc3a0(0x9f)]();}[_0x2844f7(0x8a)](){const _0x95cd4e=_0x2844f7;super[_0x95cd4e(0x8a)](),this[_0x95cd4e(0xa6)]&&this[_0x95cd4e(0xc0)]&&(this[_0x95cd4e(0xc0)][_0x95cd4e(0x87)][_0x95cd4e(0x8e)](_0x95cd4e(0xae)),this[_0x95cd4e(0xba)](this[_0x95cd4e(0xc0)],()=>{const _0x9f6206=_0x95cd4e;this[_0x9f6206(0xc0)]&&this[_0x9f6206(0xc0)][_0x9f6206(0x87)][_0x9f6206(0xb9)](_0x9f6206(0xae));}));}[_0x2844f7(0xaa)](){const _0x34036e=_0x2844f7;this[_0x34036e(0xa6)]=!0x1,this[_0x34036e(0xc0)]&&this[_0x34036e(0xc0)][_0x34036e(0x87)][_0x34036e(0xb9)](_0x34036e(0xae));}[_0x2844f7(0xb5)](_0x5863b3,_0x2b3742,_0x44c6a1){const _0x280d3f=_0x2844f7;this[_0x280d3f(0xa9)](_0x280d3f(0xbe),_0x5863b3[_0x280d3f(0xbe)]),this[_0x280d3f(0xa9)](_0x280d3f(0xb4),!0x0),this[_0x280d3f(0xa9)](_0x280d3f(0x8d),_0x5863b3[_0x280d3f(0xa7)]),this[_0x280d3f(0xa9)]('id',_0x5863b3[_0x280d3f(0xc5)]),this[_0x280d3f(0xa9)](_0x280d3f(0x9b),_0x2b3742),this[_0x280d3f(0xa9)](_0x280d3f(0xb0),_0x44c6a1);}[_0x2844f7(0x9f)](){const _0x49bae6=_0x2844f7,_0x439289=this[_0x49bae6(0xa0)](),_0x52715e=this[_0x49bae6(0xc3)](),_0x226d3e=this[_0x49bae6(0xa4)];this[_0x49bae6(0x93)]({'tag':_0x49bae6(0xac),'attributes':this[_0x49bae6(0x92)](_0x226d3e),'children':this[_0x49bae6(0xa5)](_0x439289,_0x52715e,_0x226d3e)});}[_0x2844f7(0x92)](_0x53b1d2){const _0x479b09=_0x2844f7;return{'class':[bn,_0x53b1d2['if'](_0x479b09(0x8d),Tn,_0x49dee7=>_0x479b09(0xbf)==_0x49dee7),_0x53b1d2['if'](_0x479b09(0x8d),wn,_0x293811=>_0x479b09(0xb2)==_0x293811)],'data-cke-tooltip-text':_0x53b1d2['to'](_0x479b09(0xbe),In),'data-cke-tooltip-position':Cn,'data-cke-tooltip-class':An};}[_0x2844f7(0xa5)](_0x142e91,_0x510ad6,_0x36b9fa){const _0x2f6d1d=_0x2844f7,_0x440410=this[_0x2f6d1d(0x98)](_0x36b9fa),_0x1e76eb=this[_0x2f6d1d(0x9e)]();return this[_0x2f6d1d(0x9b)]?[_0x142e91,_0x440410]:[_0x142e91,_0x1e76eb,_0x440410,_0x510ad6];}[_0x2844f7(0x98)](_0x1e623a){const _0x2bdbb5=_0x2844f7;return{'tag':_0x2bdbb5(0x9d),'attributes':{'class':En},'children':[{'text':_0x1e623a['to'](_0x2bdbb5(0xbe))}]};}[_0x2844f7(0xc3)](){const _0x445393=_0x2844f7,_0x1eab5d=new _0x507412(this[_0x445393(0xc4)]);return _0x1eab5d[_0x445393(0xa9)]({'label':_0x50120f(this[_0x445393(0xc4)],_0x445393(0x84)),'icon':_0x391820}),this[_0x445393(0xaf)](_0x1eab5d),_0x1eab5d;}[_0x2844f7(0xaf)](_0x4d9b6a){const _0x2a8b8b=_0x2844f7;_0x4d9b6a['on'](_0x2a8b8b(0x8b),()=>{const _0x4690c3=_0x2a8b8b;this[_0x4690c3(0xa8)](_0x4690c3(0xbb),this['id']);});}[_0x2844f7(0xa0)](){const _0x35bc46=_0x2844f7,_0xad2b82=this[_0x35bc46(0xa4)],_0x323ee8=new _0x108015();return _0x323ee8[_0x35bc46(0xbd)]=xn[this[_0x35bc46(0x8d)]],_0x323ee8[_0x35bc46(0x99)]({'attributes':{'class':[fn,_0xad2b82['if'](_0x35bc46(0xb0),_0x35bc46(0xa3),_0x5b3458=>_0x5b3458)]}}),_0x323ee8;}[_0x2844f7(0xba)](_0x5cdb8e,_0x622a49){const _0x556cda=_0x2844f7;if(!_0x5cdb8e)return;const _0x7c0d47=()=>{const _0x1eb9a1=_0x3477;_0x622a49(),_0x5cdb8e[_0x1eb9a1(0x9c)](_0x1eb9a1(0xb1),_0x7c0d47),_0x5cdb8e[_0x1eb9a1(0x9c)](_0x1eb9a1(0x8f),_0x7c0d47);};_0x5cdb8e[_0x556cda(0xb7)](_0x556cda(0xb1),_0x7c0d47),_0x5cdb8e[_0x556cda(0xb7)](_0x556cda(0x8f),_0x7c0d47);}[_0x2844f7(0x9e)](){const _0x14315c=_0x2844f7,_0x2564e1=new _0x551689(_0x14315c(0xb3));return _0x2564e1[_0x14315c(0x9a)](_0x14315c(0xb6))['to'](this,_0x14315c(0xb0),_0x1b9ee6=>_0x1b9ee6),_0x2564e1;}}function In(_0x5c0e66){const _0x2542dc=_0x2844f7;if(!_0x5c0e66)return _0x5c0e66;if(_0x5c0e66[_0x2542dc(0x90)]<=0x78)return _0x5c0e66;const _0x348a21=_0x5c0e66[_0x2542dc(0x95)](0x0,0x78),_0x24cfc7=_0x348a21[_0x2542dc(0xc1)]('\x20');return(_0x24cfc7>0x0?_0x348a21[_0x2542dc(0x95)](0x0,_0x24cfc7):_0x348a21)+'…';}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2f4291=_0x44c9;function _0x44c9(_0x3089d2,_0x4cfe0c){const _0xca3c56=_0xca3c();return _0x44c9=function(_0x44c9dc,_0x2befd2){_0x44c9dc=_0x44c9dc-0x14e;let _0x19e59c=_0xca3c56[_0x44c9dc];return _0x19e59c;},_0x44c9(_0x3089d2,_0x4cfe0c);}(function(_0x44a94a,_0x3de9e0){const _0xfbfd99=_0x44c9,_0x3f400a=_0x44a94a();while(!![]){try{const _0x46af3a=-parseInt(_0xfbfd99(0x175))/0x1*(-parseInt(_0xfbfd99(0x185))/0x2)+parseInt(_0xfbfd99(0x18e))/0x3*(parseInt(_0xfbfd99(0x16f))/0x4)+parseInt(_0xfbfd99(0x181))/0x5+-parseInt(_0xfbfd99(0x167))/0x6+-parseInt(_0xfbfd99(0x196))/0x7+parseInt(_0xfbfd99(0x164))/0x8*(-parseInt(_0xfbfd99(0x18d))/0x9)+parseInt(_0xfbfd99(0x172))/0xa;if(_0x46af3a===_0x3de9e0)break;else _0x3f400a['push'](_0x3f400a['shift']());}catch(_0x1f6549){_0x3f400a['push'](_0x3f400a['shift']());}}}(_0xca3c,0x886fd));import{FocusTracker as _0x19992d,KeystrokeHandler as _0x5463e7}from'ckeditor5/src/utils.js';import{ButtonView as _0x266e96,FocusCycler as _0x34d381,LabeledFieldView as _0x8ffdfc,View as _0x251757,FormHeaderView as _0x4a5c42,createLabeledInputText as _0x2c39f2,submitHandler as _0x419fb0}from'ckeditor5/src/ui.js';import{IconCheck as _0x3b198d,IconPreviousArrow as _0x404aab}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x44b068}from'../../../aicore/utils/common-translations.js';function _0xca3c(){const _0x38e386=['shift+tab','_createUrlInputField','backButton','ck-button-icon\x20ck-button-back','getValue','4584VAdEhV','destroy','fire','4190730DfmCvW','_setupTemplate','urlInputField','div','locale','setError','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','ck-ai-chat-context-controls__url-input-section','18672VRnzVJ','length','forEach','855360jFfTiD','_createConfirmButton','add','9539LSIcWN','input','render','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','set','stop','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','AI_CHAT_CONTEXT_URL_ADD_URL','form','focus','AI_CHAT_CONTEXT_URL_INVALID_ERROR','execute','3041165TtSttK','refreshBalloon','_setupKeystrokes','_updateConfirmButtonState','122dIMySf','AI_CHAT_CONTEXT_URL_LABEL','children','esc','_handleSubmit','focusCycler','tab','clearError','81aSZjYO','186HCRREB','errorText','ck-labeled-field-view_empty','submit','ck-ai-chat-context-controls__url-form','isEnabled','_setupEventHandlers','element','2118249HVZIiD','setTemplate','_createBackButton','AI_CHAT_CONTEXT_URL_PLACEHOLDER','_focusables','trim','_isValidUrl','submitUrl','clear','confirmButton','fieldView','keystrokes','focusTracker','value','createCollection','ck-button-icon','listenTo','cancel'];_0xca3c=function(){return _0x38e386;};return _0xca3c();}const ch=_0x2f4291(0x192),nh=_0x2f4291(0x16e);export class AIChatContextPanelUrlInputView extends _0x251757{[_0x2f4291(0x159)];[_0x2f4291(0x158)];[_0x2f4291(0x151)];[_0x2f4291(0x18a)];[_0x2f4291(0x169)];[_0x2f4291(0x161)];[_0x2f4291(0x156)];constructor(_0x130361){const _0x36c367=_0x2f4291;super(_0x130361),this[_0x36c367(0x159)]=new _0x19992d(),this[_0x36c367(0x158)]=new _0x5463e7(),this[_0x36c367(0x161)]=this[_0x36c367(0x14f)](),this[_0x36c367(0x169)]=this[_0x36c367(0x160)](),this[_0x36c367(0x156)]=this[_0x36c367(0x173)](),this[_0x36c367(0x151)]=this[_0x36c367(0x15b)]([this[_0x36c367(0x161)],this[_0x36c367(0x169)],this[_0x36c367(0x156)]]),this[_0x36c367(0x18a)]=new _0x34d381({'focusables':this[_0x36c367(0x151)],'focusTracker':this[_0x36c367(0x159)],'keystrokeHandler':this[_0x36c367(0x158)],'actions':{'focusPrevious':_0x36c367(0x15f),'focusNext':_0x36c367(0x18b)}}),this[_0x36c367(0x168)](),this[_0x36c367(0x194)](),this[_0x36c367(0x183)]();}[_0x2f4291(0x177)](){const _0x2500e9=_0x2f4291;super[_0x2500e9(0x177)](),this[_0x2500e9(0x151)][_0x2500e9(0x171)](_0x4a90d7=>{const _0x1b587c=_0x2500e9;this[_0x1b587c(0x159)][_0x1b587c(0x174)](_0x4a90d7[_0x1b587c(0x195)]),this[_0x1b587c(0x158)][_0x1b587c(0x15d)](_0x4a90d7[_0x1b587c(0x195)]);}),_0x419fb0({'view':this}),this[_0x2500e9(0x17e)]();}[_0x2f4291(0x165)](){const _0x5b2139=_0x2f4291;super[_0x5b2139(0x165)](),this[_0x5b2139(0x159)][_0x5b2139(0x165)](),this[_0x5b2139(0x158)][_0x5b2139(0x165)]();}[_0x2f4291(0x17e)](){const _0x2818bf=_0x2f4291;this[_0x2818bf(0x169)][_0x2818bf(0x17e)]();}[_0x2f4291(0x163)](){const _0x5d31d6=_0x2f4291;return this[_0x5d31d6(0x169)][_0x5d31d6(0x157)][_0x5d31d6(0x195)]?.[_0x5d31d6(0x15a)]?.[_0x5d31d6(0x152)]()||'';}[_0x2f4291(0x155)](){const _0x172337=_0x2f4291;this[_0x172337(0x169)][_0x172337(0x157)][_0x172337(0x195)][_0x172337(0x15a)]='',this[_0x172337(0x169)][_0x172337(0x18f)]=null,this[_0x172337(0x156)][_0x172337(0x193)]=!0x1;}[_0x2f4291(0x16c)](_0x2978f7){const _0x2053e3=_0x2f4291;this[_0x2053e3(0x169)][_0x2053e3(0x18f)]=_0x2978f7,this[_0x2053e3(0x184)](),this[_0x2053e3(0x166)](_0x2053e3(0x182));}[_0x2f4291(0x18c)](){const _0x491d16=_0x2f4291;this[_0x491d16(0x169)][_0x491d16(0x18f)]=null,this[_0x491d16(0x184)]();}[_0x2f4291(0x14f)](){const _0xf0cd19=_0x2f4291,_0xddd2b9=new _0x266e96(this[_0xf0cd19(0x16b)]);return _0xddd2b9[_0xf0cd19(0x179)]({'icon':_0x404aab,'tooltip':_0x44b068(this[_0xf0cd19(0x16b)],_0xf0cd19(0x16d)),'tooltipPosition':'n','class':_0xf0cd19(0x162)}),_0xddd2b9;}[_0x2f4291(0x160)](){const _0x1d19ca=_0x2f4291,_0x1ef6d7=new _0x8ffdfc(this[_0x1d19ca(0x16b)],_0x2c39f2);return _0x1ef6d7[_0x1d19ca(0x179)]({'label':_0x44b068(this[_0x1d19ca(0x16b)],_0x1d19ca(0x186)),'class':_0x1d19ca(0x190)}),_0x1ef6d7[_0x1d19ca(0x157)][_0x1d19ca(0x179)]({'placeholder':_0x44b068(this[_0x1d19ca(0x16b)],_0x1d19ca(0x150))}),_0x1ef6d7;}[_0x2f4291(0x173)](){const _0x29ec43=_0x2f4291,_0x34e4fc=new _0x266e96(this[_0x29ec43(0x16b)]);return _0x34e4fc[_0x29ec43(0x179)]({'icon':_0x3b198d,'tooltip':_0x44b068(this[_0x29ec43(0x16b)],_0x29ec43(0x17c)),'tooltipPosition':'n','class':_0x29ec43(0x15c),'type':_0x29ec43(0x191),'isEnabled':!0x1}),_0x34e4fc;}[_0x2f4291(0x168)](){const _0x485b9d=_0x2f4291,_0x363114=new _0x4a5c42(this[_0x485b9d(0x16b)],{'label':_0x44b068(this[_0x485b9d(0x16b)],_0x485b9d(0x17c)),'class':_0x485b9d(0x178)});_0x363114[_0x485b9d(0x187)][_0x485b9d(0x174)](this[_0x485b9d(0x161)],0x0),this[_0x485b9d(0x14e)]({'tag':_0x485b9d(0x17d),'attributes':{'class':ch,'tabindex':'-1'},'children':[_0x363114,{'tag':_0x485b9d(0x16a),'attributes':{'class':nh},'children':[this[_0x485b9d(0x169)],this[_0x485b9d(0x156)]]}]});}[_0x2f4291(0x194)](){const _0x3e22af=_0x2f4291;this[_0x3e22af(0x161)]['on'](_0x3e22af(0x180),()=>{const _0x54ebcb=_0x3e22af;this[_0x54ebcb(0x155)](),this[_0x54ebcb(0x166)](_0x54ebcb(0x15e));}),this[_0x3e22af(0x169)][_0x3e22af(0x157)]['on'](_0x3e22af(0x176),()=>{const _0x42153a=_0x3e22af;this[_0x42153a(0x18c)](),this[_0x42153a(0x184)](),this[_0x42153a(0x166)](_0x42153a(0x182));}),this['on'](_0x3e22af(0x191),_0x435575=>{const _0x249c95=_0x3e22af;_0x435575[_0x249c95(0x17a)](),this[_0x249c95(0x189)]();});}[_0x2f4291(0x183)](){const _0x3a461d=_0x2f4291;this[_0x3a461d(0x158)][_0x3a461d(0x179)](_0x3a461d(0x188),(_0x564689,_0x2914be)=>{const _0x2f2ef8=_0x3a461d;this[_0x2f2ef8(0x155)](),this[_0x2f2ef8(0x166)](_0x2f2ef8(0x15e)),_0x2914be();});}[_0x2f4291(0x189)](){const _0x346341=_0x2f4291,_0x441f5d=this[_0x346341(0x163)]()[_0x346341(0x152)]();_0x441f5d?this[_0x346341(0x153)](_0x441f5d)?(this[_0x346341(0x18c)](),this[_0x346341(0x166)](_0x346341(0x154),_0x441f5d)):this[_0x346341(0x16c)](_0x44b068(this[_0x346341(0x16b)],_0x346341(0x17f))):this[_0x346341(0x16c)](_0x44b068(this[_0x346341(0x16b)],_0x346341(0x17b)));}[_0x2f4291(0x184)](){const _0x4890fa=_0x2f4291,_0x9ece08=this[_0x4890fa(0x163)]()[_0x4890fa(0x152)](),_0x554c5d=!!this[_0x4890fa(0x169)][_0x4890fa(0x18f)];this[_0x4890fa(0x156)][_0x4890fa(0x193)]=_0x9ece08[_0x4890fa(0x170)]>0x0&&!_0x554c5d;}[_0x2f4291(0x153)](_0x2d1f37){try{return!!new URL(_0x2d1f37);}catch{return!0x1;}}}
23
+ const _0x50e4af=_0x111c;(function(_0x4478f5,_0xafec79){const _0x42e8f8=_0x111c,_0x408e4c=_0x4478f5();while(!![]){try{const _0x53de41=parseInt(_0x42e8f8(0x1e3))/0x1+parseInt(_0x42e8f8(0x1cb))/0x2+parseInt(_0x42e8f8(0x1fd))/0x3+-parseInt(_0x42e8f8(0x1d3))/0x4*(-parseInt(_0x42e8f8(0x1ee))/0x5)+-parseInt(_0x42e8f8(0x1e8))/0x6+-parseInt(_0x42e8f8(0x1db))/0x7+parseInt(_0x42e8f8(0x1e7))/0x8*(parseInt(_0x42e8f8(0x1dd))/0x9);if(_0x53de41===_0xafec79)break;else _0x408e4c['push'](_0x408e4c['shift']());}catch(_0x1528d9){_0x408e4c['push'](_0x408e4c['shift']());}}}(_0x2536,0x4f7f5));function _0x2536(){const _0xbbfee1=['form','_setupTemplate','locale','focus','ck-ai-chat-context-controls__url-form','trim','shift+tab','listenTo','_createConfirmButton','_setupEventHandlers','focusCycler','length','getValue','_handleSubmit','setTemplate','add','set','fire','AI_CHAT_CONTEXT_URL_INVALID_ERROR','30330sdZfsb','errorText','_setupKeystrokes','forEach','createCollection','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','tab','ck-button-icon\x20ck-button-back','76PyjgmP','children','div','setError','AI_CHAT_CONTEXT_URL_PLACEHOLDER','refreshBalloon','AI_CHAT_CONTEXT_URL_LABEL','cancel','681471LipRrc','execute','387378PctcVi','_focusables','urlInputField','input','submitUrl','submit','186194ieCYDN','ck-labeled-field-view_empty','AI_CHAT_CONTEXT_URL_ADD_URL','_createUrlInputField','88bEPeFJ','3734988KwQtjO','confirmButton','isEnabled','ck-button-icon','_isValidUrl','ck-ai-chat-context-controls__url-input-section','50110Odribh','clearError','keystrokes','destroy','focusTracker','render','value','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','_createBackButton','fieldView','backButton','stop','_updateConfirmButtonState','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','element','540699CyZfBl','clear','esc'];_0x2536=function(){return _0xbbfee1;};return _0x2536();}import{FocusTracker as _0x2ab943,KeystrokeHandler as _0x1d2724}from'ckeditor5/src/utils.js';function _0x111c(_0x1abf28,_0x5e2fc1){const _0x2536bc=_0x2536();return _0x111c=function(_0x111c00,_0x5112c0){_0x111c00=_0x111c00-0x1c1;let _0x4221b8=_0x2536bc[_0x111c00];return _0x4221b8;},_0x111c(_0x1abf28,_0x5e2fc1);}import{ButtonView as _0x507a24,FocusCycler as _0x1d9388,LabeledFieldView as _0x10f37f,View as _0x23961f,FormHeaderView as _0x59abcc,createLabeledInputText as _0x3de0b3,submitHandler as _0x5466da}from'ckeditor5/src/ui.js';import{IconCheck as _0x5a5d4a,IconPreviousArrow as _0x2fe5d0}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x28e9a6}from'../../../aicore/utils/common-translations.js';const ch=_0x50e4af(0x204),nh=_0x50e4af(0x1ed);export class AIChatContextPanelUrlInputView extends _0x23961f{[_0x50e4af(0x1f2)];[_0x50e4af(0x1f0)];[_0x50e4af(0x1de)];[_0x50e4af(0x1c2)];[_0x50e4af(0x1df)];[_0x50e4af(0x1f8)];[_0x50e4af(0x1e9)];constructor(_0x165d6a){const _0x41cca1=_0x50e4af;super(_0x165d6a),this[_0x41cca1(0x1f2)]=new _0x2ab943(),this[_0x41cca1(0x1f0)]=new _0x1d2724(),this[_0x41cca1(0x1f8)]=this[_0x41cca1(0x1f6)](),this[_0x41cca1(0x1df)]=this[_0x41cca1(0x1e6)](),this[_0x41cca1(0x1e9)]=this[_0x41cca1(0x208)](),this[_0x41cca1(0x1de)]=this[_0x41cca1(0x1cf)]([this[_0x41cca1(0x1f8)],this[_0x41cca1(0x1df)],this[_0x41cca1(0x1e9)]]),this[_0x41cca1(0x1c2)]=new _0x1d9388({'focusables':this[_0x41cca1(0x1de)],'focusTracker':this[_0x41cca1(0x1f2)],'keystrokeHandler':this[_0x41cca1(0x1f0)],'actions':{'focusPrevious':_0x41cca1(0x206),'focusNext':_0x41cca1(0x1d1)}}),this[_0x41cca1(0x201)](),this[_0x41cca1(0x1c1)](),this[_0x41cca1(0x1cd)]();}[_0x50e4af(0x1f3)](){const _0x8b1b0b=_0x50e4af;super[_0x8b1b0b(0x1f3)](),this[_0x8b1b0b(0x1de)][_0x8b1b0b(0x1ce)](_0x52f34e=>{const _0x681608=_0x8b1b0b;this[_0x681608(0x1f2)][_0x681608(0x1c7)](_0x52f34e[_0x681608(0x1fc)]),this[_0x681608(0x1f0)][_0x681608(0x207)](_0x52f34e[_0x681608(0x1fc)]);}),_0x5466da({'view':this}),this[_0x8b1b0b(0x203)]();}[_0x50e4af(0x1f1)](){const _0x36bdaa=_0x50e4af;super[_0x36bdaa(0x1f1)](),this[_0x36bdaa(0x1f2)][_0x36bdaa(0x1f1)](),this[_0x36bdaa(0x1f0)][_0x36bdaa(0x1f1)]();}[_0x50e4af(0x203)](){const _0x302f81=_0x50e4af;this[_0x302f81(0x1df)][_0x302f81(0x203)]();}[_0x50e4af(0x1c4)](){const _0x5748f6=_0x50e4af;return this[_0x5748f6(0x1df)][_0x5748f6(0x1f7)][_0x5748f6(0x1fc)]?.[_0x5748f6(0x1f4)]?.[_0x5748f6(0x205)]()||'';}[_0x50e4af(0x1fe)](){const _0x41ad6c=_0x50e4af;this[_0x41ad6c(0x1df)][_0x41ad6c(0x1f7)][_0x41ad6c(0x1fc)][_0x41ad6c(0x1f4)]='',this[_0x41ad6c(0x1df)][_0x41ad6c(0x1cc)]=null,this[_0x41ad6c(0x1e9)][_0x41ad6c(0x1ea)]=!0x1;}[_0x50e4af(0x1d6)](_0x23e509){const _0x563b64=_0x50e4af;this[_0x563b64(0x1df)][_0x563b64(0x1cc)]=_0x23e509,this[_0x563b64(0x1fa)](),this[_0x563b64(0x1c9)](_0x563b64(0x1d8));}[_0x50e4af(0x1ef)](){const _0x2f23ec=_0x50e4af;this[_0x2f23ec(0x1df)][_0x2f23ec(0x1cc)]=null,this[_0x2f23ec(0x1fa)]();}[_0x50e4af(0x1f6)](){const _0x2f6bd9=_0x50e4af,_0x23c51d=new _0x507a24(this[_0x2f6bd9(0x202)]);return _0x23c51d[_0x2f6bd9(0x1c8)]({'icon':_0x2fe5d0,'tooltip':_0x28e9a6(this[_0x2f6bd9(0x202)],_0x2f6bd9(0x1f5)),'tooltipPosition':'n','class':_0x2f6bd9(0x1d2)}),_0x23c51d;}[_0x50e4af(0x1e6)](){const _0x330c6c=_0x50e4af,_0x244e2c=new _0x10f37f(this[_0x330c6c(0x202)],_0x3de0b3);return _0x244e2c[_0x330c6c(0x1c8)]({'label':_0x28e9a6(this[_0x330c6c(0x202)],_0x330c6c(0x1d9)),'class':_0x330c6c(0x1e4)}),_0x244e2c[_0x330c6c(0x1f7)][_0x330c6c(0x1c8)]({'placeholder':_0x28e9a6(this[_0x330c6c(0x202)],_0x330c6c(0x1d7))}),_0x244e2c;}[_0x50e4af(0x208)](){const _0x5eb378=_0x50e4af,_0x19a4cb=new _0x507a24(this[_0x5eb378(0x202)]);return _0x19a4cb[_0x5eb378(0x1c8)]({'icon':_0x5a5d4a,'tooltip':_0x28e9a6(this[_0x5eb378(0x202)],_0x5eb378(0x1e5)),'tooltipPosition':'n','class':_0x5eb378(0x1eb),'type':_0x5eb378(0x1e2),'isEnabled':!0x1}),_0x19a4cb;}[_0x50e4af(0x201)](){const _0x585a2b=_0x50e4af,_0x581d75=new _0x59abcc(this[_0x585a2b(0x202)],{'label':_0x28e9a6(this[_0x585a2b(0x202)],_0x585a2b(0x1e5)),'class':_0x585a2b(0x1d0)});_0x581d75[_0x585a2b(0x1d4)][_0x585a2b(0x1c7)](this[_0x585a2b(0x1f8)],0x0),this[_0x585a2b(0x1c6)]({'tag':_0x585a2b(0x200),'attributes':{'class':ch,'tabindex':'-1'},'children':[_0x581d75,{'tag':_0x585a2b(0x1d5),'attributes':{'class':nh},'children':[this[_0x585a2b(0x1df)],this[_0x585a2b(0x1e9)]]}]});}[_0x50e4af(0x1c1)](){const _0x6913f0=_0x50e4af;this[_0x6913f0(0x1f8)]['on'](_0x6913f0(0x1dc),()=>{const _0x285839=_0x6913f0;this[_0x285839(0x1fe)](),this[_0x285839(0x1c9)](_0x285839(0x1da));}),this[_0x6913f0(0x1df)][_0x6913f0(0x1f7)]['on'](_0x6913f0(0x1e0),()=>{const _0xcfcde0=_0x6913f0;this[_0xcfcde0(0x1ef)](),this[_0xcfcde0(0x1fa)](),this[_0xcfcde0(0x1c9)](_0xcfcde0(0x1d8));}),this['on'](_0x6913f0(0x1e2),_0x4080bf=>{const _0x3c20f8=_0x6913f0;_0x4080bf[_0x3c20f8(0x1f9)](),this[_0x3c20f8(0x1c5)]();});}[_0x50e4af(0x1cd)](){const _0x3f4c30=_0x50e4af;this[_0x3f4c30(0x1f0)][_0x3f4c30(0x1c8)](_0x3f4c30(0x1ff),(_0x5ca24d,_0x258115)=>{const _0x4b656a=_0x3f4c30;this[_0x4b656a(0x1fe)](),this[_0x4b656a(0x1c9)](_0x4b656a(0x1da)),_0x258115();});}[_0x50e4af(0x1c5)](){const _0x350145=_0x50e4af,_0x1e3bd9=this[_0x350145(0x1c4)]()[_0x350145(0x205)]();_0x1e3bd9?this[_0x350145(0x1ec)](_0x1e3bd9)?(this[_0x350145(0x1ef)](),this[_0x350145(0x1c9)](_0x350145(0x1e1),_0x1e3bd9)):this[_0x350145(0x1d6)](_0x28e9a6(this[_0x350145(0x202)],_0x350145(0x1ca))):this[_0x350145(0x1d6)](_0x28e9a6(this[_0x350145(0x202)],_0x350145(0x1fb)));}[_0x50e4af(0x1fa)](){const _0x47d78c=_0x50e4af,_0xc7673a=this[_0x47d78c(0x1c4)]()[_0x47d78c(0x205)](),_0x10bc4e=!!this[_0x47d78c(0x1df)][_0x47d78c(0x1cc)];this[_0x47d78c(0x1e9)][_0x47d78c(0x1ea)]=_0xc7673a[_0x47d78c(0x1c3)]>0x0&&!_0x10bc4e;}[_0x50e4af(0x1ec)](_0x32d4c2){try{return!!new URL(_0x32d4c2);}catch{return!0x1;}}}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0xa314(_0x4374be,_0x31521f){const _0x4bde8e=_0x4bde();return _0xa314=function(_0xa31436,_0x2f2d48){_0xa31436=_0xa31436-0x18e;let _0x391ee1=_0x4bde8e[_0xa31436];return _0x391ee1;},_0xa314(_0x4374be,_0x31521f);}const _0x247f4c=_0xa314;(function(_0x4962e2,_0x31a610){const _0x5a1add=_0xa314,_0x328624=_0x4962e2();while(!![]){try{const _0x141a8b=parseInt(_0x5a1add(0x211))/0x1*(-parseInt(_0x5a1add(0x1d4))/0x2)+parseInt(_0x5a1add(0x1e3))/0x3*(-parseInt(_0x5a1add(0x1f3))/0x4)+-parseInt(_0x5a1add(0x193))/0x5+-parseInt(_0x5a1add(0x1a8))/0x6*(parseInt(_0x5a1add(0x198))/0x7)+parseInt(_0x5a1add(0x1dd))/0x8*(parseInt(_0x5a1add(0x1d1))/0x9)+-parseInt(_0x5a1add(0x1b2))/0xa+-parseInt(_0x5a1add(0x1be))/0xb*(-parseInt(_0x5a1add(0x19b))/0xc);if(_0x141a8b===_0x31a610)break;else _0x328624['push'](_0x328624['shift']());}catch(_0x3b6cf4){_0x328624['push'](_0x328624['shift']());}}}(_0x4bde,0x35331));import{BalloonPanelView as _0x220da,ButtonView as _0x4b4e07,clickOutsideHandler as _0x46870e,FileDialogButtonView as _0x2b6d07,IconView as _0x7fb187,View as _0x4104fe}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x4b4bcb,IconDocument as _0x595f96,IconDocumentOutline as _0x5ddcc8,IconDropdownArrow as _0x202baf,IconLink as _0x12d98f,IconPaperClip as _0x13cbaf}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x5c0b74}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x7cef34}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0xe6ab1d}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x27b36e}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x46500a}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x247f4c(0x1ca),_0x247f4c(0x1e1),_0x247f4c(0x1cd),_0x247f4c(0x21d),_0x247f4c(0x1fb),_0x247f4c(0x1ee)];function _0x4bde(){const _0x3d197c=['_setupAllBalloonClickOutsideHandlers','1043cByDuL','tooltip','add','36IjYiRe','locale','_createResourcesBalloonView','ck-reset_all-excluded','ck-ai-chat-context-chips-wrapper-balloon','_addContextBalloonConfig','_urlBalloonPanelView','_currentContextsChips','ck-ai-chat-controls-button','source','_addUrlContent','extendTemplate','find','16356NjDIiP','overflowChips','_resourcesBalloonView','show','hideAddContextBalloonPanel','_toggleAddContextBalloon','_setupTemplate','ck-ai-chat-context-controls','_overflowManager','_removeContextFromCollection','87210qxlajX','_setAddContextButtonEnabled','type','southArrowNorthWest','remove','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','clear','enabled','document','AI_CHAT_CONTEXT_URL_LABEL','setConversationContext','ck-ai-chat-context-controls__balloon-button-source','3753409PQCsOv','_createUrlBalloonPanelView','menuitem','ck-ai-chat-controls_context_show-more-button','northArrowSouth','_createContextButton','_createAddContextBalloonPanelView','render','setAddContextOptions','set','isEnabled','submitUrl','addDocumentToContext','_conversationContextsChips','_createArrowView','addUrlToContext','_handleUrlSubmit','content','isOn','27eZPfES','isAnyResourceBalloonVisible','showUrlBalloonPanel','4KzqwgC','southArrowNorth','ck-ai-chat-context-controls__url-balloon-panel','_showSourceResourcesBalloon','hideUrlBalloonPanel','AI_CHAT_CONTEXT_FILE_LABEL','updateResourceState','sources','cancel','304976grovmd','files','_createBalloonButton','conversation','addFileToContext','addContextButtonView','621051XaSvTA','balloonView','_setupUrlBalloonClickOutsideHandler','ck-ai-chat-context-controls__balloon-button','bodyCollection','buttonView','done','body','northArrowSouthEast','_addContextToCollection','isVisible','loadSourceResources','isHidden','execute','closest','ck-ai-chat','4uPmrNt','_handleAddContextButtonClick','element','southArrowNorthEast','_setupAddContextBalloonClickOutsideHandler','focus','hide','label','removeContextItem','fire','clearCurrentContextItems','_urlInputView','setContextItemLoading','ck-ai-chat-context-controls__show-more-balloon-panel','isLoading','reorganizeChips','icon','ck-ai-chat-context-controls__add-context-button','ck-ai-chat-context-controls__add-context-balloon-panel','removeContextItemChip','addContextItem','destroy','isReadOnly','setContainerElement','clearConversationContextItems','populateSourceResourceBalloon','setTemplate','closeSourceResourceBalloon','northArrowSouthWest','showAddContextBalloonPanel','28019feFNuP','arrowView','searchInputVisibleFrom','_createAddContextButtonView','showSourceResourcesBalloon','defaultPositions','ck-ai-chat-context-controls__pending-contexts','children','createCollection','_getLimiterElement','current','_addContextBalloonPanelView','addResourceToContext','_bindEventHandlers','refreshBalloon','bind','pin','div','_createBaseBalloonPanel','urls','1210840NRWwPG','_setBalloonPanelContent','__arrow','AI_CHAT_CONTEXT_ADD_CONTEXT'];_0x4bde=function(){return _0x3d197c;};return _0x4bde();}const ko=_0x247f4c(0x1af),Eo=_0x247f4c(0x217),vo=_0x247f4c(0x205),Vo=_0x247f4c(0x204),Io=_0x247f4c(0x1d6),Po=_0x247f4c(0x1e6),Ro=_0x247f4c(0x1bd),Uo=_0x247f4c(0x1a3),Lo=_0x247f4c(0x19f),No=_0x247f4c(0x1c1),Oo=_0x247f4c(0x200),Mo=_0x247f4c(0x1f2),Ho=[_0x220da[_0x247f4c(0x216)][_0x247f4c(0x20f)],_0x220da[_0x247f4c(0x216)][_0x247f4c(0x1c2)],_0x220da[_0x247f4c(0x216)][_0x247f4c(0x1eb)],_0x220da[_0x247f4c(0x216)][_0x247f4c(0x1b5)],_0x220da[_0x247f4c(0x216)][_0x247f4c(0x1d5)],_0x220da[_0x247f4c(0x216)][_0x247f4c(0x1f6)]];export class AIChatContextPanelView extends _0x4104fe{[_0x247f4c(0x1e2)];[_0x247f4c(0x1a2)]=this[_0x247f4c(0x219)]();[_0x247f4c(0x1cb)]=this[_0x247f4c(0x219)]();[_0x247f4c(0x1b0)];[_0x247f4c(0x21c)];[_0x247f4c(0x1a1)];[_0x247f4c(0x1fe)];[_0x247f4c(0x1aa)];[_0x247f4c(0x1a0)];[_0x247f4c(0x1e7)];constructor(_0x39c407,_0x51352c){const _0x4ff0fc=_0x247f4c;super(_0x39c407),this[_0x4ff0fc(0x1e7)]=_0x51352c[_0x4ff0fc(0x1e7)],this[_0x4ff0fc(0x1a2)]=this[_0x4ff0fc(0x219)](),this[_0x4ff0fc(0x1cb)]=this[_0x4ff0fc(0x219)](),this[_0x4ff0fc(0x1e2)]=this[_0x4ff0fc(0x214)](_0x39c407),this[_0x4ff0fc(0x21c)]=this[_0x4ff0fc(0x1c4)](_0x39c407),this[_0x4ff0fc(0x1a1)]=this[_0x4ff0fc(0x1bf)](_0x39c407),this[_0x4ff0fc(0x1aa)]=this[_0x4ff0fc(0x19d)](_0x39c407,_0x51352c);const _0x4fa966={'cssClasses':{'showMoreButton':No,'showMoreBalloon':Oo,'overflowContainer':Lo,'controlsButton':Uo}};this[_0x4ff0fc(0x1b0)]=new _0xe6ab1d(_0x39c407,this[_0x4ff0fc(0x1a2)],_0x4fa966,this[_0x4ff0fc(0x1e7)],this),this[_0x4ff0fc(0x1a0)]={'buttonView':this[_0x4ff0fc(0x1e2)],'balloonView':this[_0x4ff0fc(0x21c)],'hideMethod':this[_0x4ff0fc(0x1ac)][_0x4ff0fc(0x18e)](this),'showMethod':this[_0x4ff0fc(0x210)][_0x4ff0fc(0x18e)](this)},this[_0x4ff0fc(0x1ae)](),this[_0x4ff0fc(0x21e)]();}[_0x247f4c(0x1c5)](){const _0x16edb9=_0x247f4c;super[_0x16edb9(0x1c5)](),this[_0x16edb9(0x197)](),this[_0x16edb9(0x1b0)][_0x16edb9(0x20a)](this[_0x16edb9(0x1f5)]),this[_0x16edb9(0x1b0)][_0x16edb9(0x202)]();}[_0x247f4c(0x208)](){const _0x5eea72=_0x247f4c;super[_0x5eea72(0x208)](),this[_0x5eea72(0x1b0)][_0x5eea72(0x208)](),this[_0x5eea72(0x1aa)][_0x5eea72(0x208)]();}[_0x247f4c(0x207)](_0x3db0d8,_0x516bb9){const _0x22a57d=_0x247f4c,_0xc2fb90=this[_0x22a57d(0x1c3)](_0x3db0d8,_0x22a57d(0x21b),!0x0,_0x516bb9);this[_0x22a57d(0x1ec)](_0xc2fb90,this[_0x22a57d(0x1a2)]),this[_0x22a57d(0x1b0)][_0x22a57d(0x202)]();}[_0x247f4c(0x1fb)](_0x5eb56d){const _0x532be5=_0x247f4c;this[_0x532be5(0x1b1)](_0x5eb56d,this[_0x532be5(0x1a2)]),this[_0x532be5(0x1b1)](_0x5eb56d,this[_0x532be5(0x1b0)][_0x532be5(0x1a9)]),this[_0x532be5(0x1b0)][_0x532be5(0x202)]();}[_0x247f4c(0x1ff)](_0x31b31e,_0xb001ee){const _0x2f67b1=_0x247f4c;let _0x14c85f=this[_0x2f67b1(0x1a2)][_0x2f67b1(0x1a7)](_0x3582dd=>_0x3582dd['id']===_0x31b31e);_0x14c85f||(_0x14c85f=this[_0x2f67b1(0x1b0)][_0x2f67b1(0x1a9)][_0x2f67b1(0x1a7)](_0x471314=>_0x471314['id']===_0x31b31e)),_0x14c85f&&(_0x14c85f[_0x2f67b1(0x201)]=_0xb001ee);}[_0x247f4c(0x1bc)](_0x24b386){const _0x399faa=_0x247f4c;this[_0x399faa(0x1cb)][_0x399faa(0x1b8)]();for(const _0x16bb6e of _0x24b386){const _0x217e5f=this[_0x399faa(0x1c3)](_0x16bb6e,_0x399faa(0x1e0),!0x1,!0x1);this[_0x399faa(0x1ec)](_0x217e5f,this[_0x399faa(0x1cb)]);}}[_0x247f4c(0x1fd)](){const _0x205fb7=_0x247f4c;this[_0x205fb7(0x1a2)][_0x205fb7(0x1b8)](),this[_0x205fb7(0x1b0)][_0x205fb7(0x1b8)]();}[_0x247f4c(0x20b)](){const _0x36cbad=_0x247f4c;this[_0x36cbad(0x1cb)][_0x36cbad(0x1b8)]();}[_0x247f4c(0x1da)](_0x5668f6,_0x43e9c9,_0xe04db4){const _0x2e3926=_0x247f4c;this[_0x2e3926(0x1aa)][_0x2e3926(0x1da)](_0x5668f6,_0x43e9c9,_0xe04db4);}[_0x247f4c(0x1ac)](){const _0x231b61=_0x247f4c;this[_0x231b61(0x1ad)](!0x1);}[_0x247f4c(0x210)](){const _0x5f117c=_0x247f4c;this[_0x5f117c(0x1ad)](!0x0);}[_0x247f4c(0x1d8)](){const _0xcc22a4=_0x247f4c;this[_0xcc22a4(0x1a1)][_0xcc22a4(0x1f9)](),this[_0xcc22a4(0x1e2)][_0xcc22a4(0x1d0)]=!0x1,this[_0xcc22a4(0x1fe)]&&this[_0xcc22a4(0x1fe)][_0xcc22a4(0x1b8)]();}[_0x247f4c(0x1d3)](){const _0x14fac2=_0x247f4c;this[_0x14fac2(0x1a1)][_0x14fac2(0x1ab)](),this[_0x14fac2(0x1e2)][_0x14fac2(0x1d0)]=!0x0;}[_0x247f4c(0x1d7)](_0x3efed0){const _0x17ea05=_0x247f4c;this[_0x17ea05(0x1aa)][_0x17ea05(0x215)](_0x3efed0),this[_0x17ea05(0x1e2)][_0x17ea05(0x1d0)]=!0x0;}[_0x247f4c(0x20c)](_0x2ac2a3,_0x132288,_0x1d18b4,_0x19f8bb){const _0x1c42d1=_0x247f4c;this[_0x1c42d1(0x1aa)][_0x1c42d1(0x20c)](_0x2ac2a3,_0x1d18b4,_0x19f8bb);}[_0x247f4c(0x20e)](_0x5a5026){const _0x5dc315=_0x247f4c;this[_0x5dc315(0x1aa)][_0x5dc315(0x20e)](_0x5a5026),this[_0x5dc315(0x1e2)][_0x5dc315(0x1d0)]=!0x1;}[_0x247f4c(0x1c6)](_0x3bb636){const _0xdb9fed=_0x247f4c;this[_0xdb9fed(0x194)](this[_0xdb9fed(0x21c)],this[_0xdb9fed(0x19c)],_0x3bb636),this[_0xdb9fed(0x1b3)](_0x3bb636);}[_0x247f4c(0x1b3)](_0x3c9743){const _0x152817=_0x247f4c,_0x3d908a=!_0x3c9743[_0x152817(0x1ba)][_0x152817(0x1ef)]&&_0x3c9743[_0x152817(0x1ba)][_0x152817(0x1b9)],_0xa3ccc0=_0x3c9743[_0x152817(0x192)][_0x152817(0x1b9)],_0x124f08=_0x3c9743[_0x152817(0x1de)][_0x152817(0x1b9)];this[_0x152817(0x1e2)][_0x152817(0x1c8)]=_0x3d908a||_0xa3ccc0||_0x124f08;}[_0x247f4c(0x1ae)](){const _0x1e2bd8=_0x247f4c;this[_0x1e2bd8(0x20d)]({'tag':_0x1e2bd8(0x190),'attributes':{'class':[ko,_0x1e2bd8(0x19e)]},'children':[{'tag':_0x1e2bd8(0x190),'attributes':{'class':Eo},'children':this[_0x1e2bd8(0x1a2)]}]});}[_0x247f4c(0x21e)](){const _0x5e7841=_0x247f4c;this[_0x5e7841(0x1e2)]['on'](_0x5e7841(0x1f0),()=>{const _0x14f75d=_0x5e7841;this[_0x14f75d(0x1f4)]();});}[_0x247f4c(0x214)](_0x3451fa){const _0x45e943=_0x247f4c,_0x347f4f=new _0x4b4e07(_0x3451fa);return _0x347f4f[_0x45e943(0x1c7)]({'label':_0x27b36e(_0x3451fa,_0x45e943(0x196)),'class':Uo+'\x20'+Vo,'icon':_0x13cbaf,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x347f4f;}[_0x247f4c(0x1c4)](_0x36b37d){const _0x193573=_0x247f4c;return this[_0x193573(0x191)](_0x36b37d,vo);}[_0x247f4c(0x1bf)](_0x469825){const _0x4097c3=_0x247f4c,_0x179418=this[_0x4097c3(0x191)](_0x469825,Io);return this[_0x4097c3(0x1a5)](_0x179418,_0x469825),_0x179418;}[_0x247f4c(0x19d)](_0x1d8d6d,_0x1a836b){const _0x26f24=_0x247f4c,_0x39edda={'searchInputVisibleFrom':_0x1a836b[_0x26f24(0x213)],'onBackToContext':()=>{const _0x115c51=_0x26f24;this[_0x115c51(0x210)](),this[_0x115c51(0x21c)][_0x115c51(0x18f)]({'target':this[_0x115c51(0x1e2)][_0x115c51(0x1f5)],'limiter':this[_0x115c51(0x21a)](),'positions':Ho});},'onResourceSelected':(_0x4232e9,_0x3394f1)=>{const _0x3451d1=_0x26f24;this[_0x3451d1(0x1fc)](_0x3451d1(0x21d),{'source':_0x4232e9,'resource':_0x3394f1});},'onLoadSourceResources':_0x43ad42=>{const _0xb4dd0b=_0x26f24;this[_0xb4dd0b(0x1fc)](_0xb4dd0b(0x1ee),_0x43ad42);},'onBalloonClosed':()=>{const _0x5c573a=_0x26f24;this[_0x5c573a(0x1e2)][_0x5c573a(0x1d0)]=!0x1;},'getLimiterElement':()=>this[_0x26f24(0x21a)](),'getTargetElement':()=>this[_0x26f24(0x1e2)][_0x26f24(0x1f5)]};return new _0x46500a(_0x1d8d6d,_0x1a836b[_0x26f24(0x1e7)],_0x39edda);}[_0x247f4c(0x21a)](){const _0x590d2a=_0x247f4c;return this[_0x590d2a(0x1f5)]?.[_0x590d2a(0x1f1)]('.'+Mo)||document[_0x590d2a(0x1ea)];}[_0x247f4c(0x191)](_0x14be31,_0xa50878){const _0x9098e6=_0x247f4c,_0x375b44=new _0x220da(_0x14be31);return _0x375b44[_0x9098e6(0x1a6)]({'attributes':{'class':_0xa50878}}),this[_0x9098e6(0x1e7)][_0x9098e6(0x19a)](_0x375b44),_0x375b44;}[_0x247f4c(0x194)](_0x5cc7f2,_0x709694,_0x5efd53){const _0x38f2d6=_0x247f4c;if(_0x5cc7f2[_0x38f2d6(0x1cf)][_0x38f2d6(0x1b8)](),!_0x5efd53[_0x38f2d6(0x1ba)][_0x38f2d6(0x1ef)]&&_0x5efd53[_0x38f2d6(0x1ba)][_0x38f2d6(0x1b9)]){const _0x407b1b=this[_0x38f2d6(0x1df)](_0x709694,{'label':_0x27b36e(_0x709694,_0x38f2d6(0x1b7)),'icon':_0x595f96});_0x407b1b['on'](_0x38f2d6(0x1f0),()=>{const _0x1f6753=_0x38f2d6;this[_0x1f6753(0x1fc)](_0x1f6753(0x1ca)),this[_0x1f6753(0x1ac)]();}),_0x5cc7f2[_0x38f2d6(0x1cf)][_0x38f2d6(0x19a)](_0x407b1b);}if(_0x5efd53[_0x38f2d6(0x192)][_0x38f2d6(0x1b9)]){const _0x397e88=this[_0x38f2d6(0x1df)](_0x709694,{'label':_0x27b36e(_0x709694,_0x38f2d6(0x1bb)),'icon':_0x12d98f});_0x397e88['on'](_0x38f2d6(0x1f0),()=>{const _0x17c706=_0x38f2d6;this[_0x17c706(0x1ac)](),this[_0x17c706(0x1d3)](),this[_0x17c706(0x1a1)][_0x17c706(0x18f)]({'target':this[_0x17c706(0x1e2)][_0x17c706(0x1f5)],'limiter':this[_0x17c706(0x21a)](),'positions':Ho}),this[_0x17c706(0x1fe)][_0x17c706(0x1f8)]();}),_0x5cc7f2[_0x38f2d6(0x1cf)][_0x38f2d6(0x19a)](_0x397e88);}if(_0x5efd53[_0x38f2d6(0x1de)][_0x38f2d6(0x1b9)]){const _0x4b21b2=new _0x2b6d07(_0x709694);_0x4b21b2[_0x38f2d6(0x1c7)]({'label':_0x27b36e(_0x709694,_0x38f2d6(0x1d9)),'icon':_0x4b4bcb,'withText':!0x0,'tooltip':!0x0,'class':Po,'allowMultipleFiles':!0x0}),_0x4b21b2['on'](_0x38f2d6(0x1e9),(_0x7767be,_0xbe24aa)=>{const _0x4ef42a=_0x38f2d6;this[_0x4ef42a(0x1fc)](_0x4ef42a(0x1e1),_0xbe24aa),this[_0x4ef42a(0x1ac)]();}),_0x4b21b2[_0x38f2d6(0x199)]=!0x0,_0x5cc7f2[_0x38f2d6(0x1cf)][_0x38f2d6(0x19a)](_0x4b21b2);}for(const _0x334e65 of _0x5efd53[_0x38f2d6(0x1db)]){const _0x547d1c=this[_0x38f2d6(0x1df)](_0x709694,{'label':_0x334e65[_0x38f2d6(0x1fa)],'icon':_0x334e65[_0x38f2d6(0x203)]||_0x5ddcc8,'type':_0x38f2d6(0x1a4)});_0x5cc7f2[_0x38f2d6(0x1cf)][_0x38f2d6(0x19a)](_0x547d1c),_0x547d1c['on'](_0x38f2d6(0x1f0),()=>{const _0x177368=_0x38f2d6;this[_0x177368(0x1ac)](),this[_0x177368(0x1d7)](_0x334e65);});}}[_0x247f4c(0x1a5)](_0x10ab1f,_0x59948a){const _0x97f836=_0x247f4c;this[_0x97f836(0x1fe)]=new _0x7cef34(_0x59948a),this[_0x97f836(0x1fe)]['on'](_0x97f836(0x1c9),(_0x31e82a,_0x3b5c31)=>{const _0x158f2=_0x97f836;this[_0x158f2(0x1ce)](_0x3b5c31);}),this[_0x97f836(0x1fe)]['on'](_0x97f836(0x1dc),()=>{const _0x56581=_0x97f836;this[_0x56581(0x1d8)](),this[_0x56581(0x210)](),this[_0x56581(0x21c)][_0x56581(0x18f)]({'target':this[_0x56581(0x1e2)][_0x56581(0x1f5)],'limiter':this[_0x56581(0x21a)](),'positions':Ho});}),this[_0x97f836(0x1fe)]['on'](_0x97f836(0x21f),()=>{const _0x1d097c=_0x97f836;this[_0x1d097c(0x1a1)][_0x1d097c(0x1ed)]&&this[_0x1d097c(0x1a1)][_0x1d097c(0x18f)]({'target':this[_0x1d097c(0x1e2)][_0x1d097c(0x1f5)],'limiter':this[_0x1d097c(0x21a)](),'positions':Ho});}),_0x10ab1f[_0x97f836(0x1cf)][_0x97f836(0x19a)](this[_0x97f836(0x1fe)]);}[_0x247f4c(0x1df)](_0x2dd08a,_0x55acd5){const _0x228579=_0x247f4c,_0x5d7f5f=_0x228579(0x1a4)===_0x55acd5[_0x228579(0x1b4)]?new SourcesBalloonButtonView(_0x2dd08a):new _0x4b4e07(_0x2dd08a);return _0x5d7f5f[_0x228579(0x1c7)]({'label':_0x55acd5[_0x228579(0x1fa)],'icon':_0x55acd5[_0x228579(0x203)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Po}),_0x5d7f5f;}[_0x247f4c(0x197)](){const _0x33241f=_0x247f4c;this[_0x33241f(0x1f7)](),this[_0x33241f(0x1e5)]();}[_0x247f4c(0x1e5)](){const _0x25fb5a=_0x247f4c;_0x46870e({'emitter':this[_0x25fb5a(0x1a1)],'contextElements':[this[_0x25fb5a(0x1a1)][_0x25fb5a(0x1f5)]],'callback':()=>{const _0x2e73a1=_0x25fb5a;this[_0x2e73a1(0x1d8)]();},'activator':()=>this[_0x25fb5a(0x1a1)][_0x25fb5a(0x1ed)]});}[_0x247f4c(0x1ad)](_0x40cdfe){const _0xb0018c=_0x247f4c,_0x5c4f01=this[_0xb0018c(0x1a0)];_0x5c4f01[_0xb0018c(0x1e8)][_0xb0018c(0x1d0)]=_0x40cdfe,_0x40cdfe?_0x5c4f01[_0xb0018c(0x1e4)][_0xb0018c(0x1ab)]():_0x5c4f01[_0xb0018c(0x1e4)][_0xb0018c(0x1f9)]();}[_0x247f4c(0x1f7)](){const _0x37c0d8=_0x247f4c,{balloonView:_0x3cdd7d,buttonView:_0x38530c,hideMethod:_0x4fa446}=this[_0x37c0d8(0x1a0)];_0x46870e({'emitter':_0x3cdd7d,'contextElements':[_0x3cdd7d[_0x37c0d8(0x1f5)],_0x38530c[_0x37c0d8(0x1f5)]],'callback':()=>{_0x4fa446();},'activator':()=>_0x38530c[_0x37c0d8(0x1d0)]&&!this[_0x37c0d8(0x1a1)][_0x37c0d8(0x1ed)]&&!this[_0x37c0d8(0x1aa)][_0x37c0d8(0x1d2)]()});}[_0x247f4c(0x1c3)](_0x342f32,_0x46482b,_0x2d2c11=!0x1,_0x4b3c49=!0x1){const _0x4c8ee0=_0x247f4c,_0xa88353=_0x4c8ee0(0x1e0)===_0x46482b||!0x0===_0x342f32[_0x4c8ee0(0x209)],_0x585f5c=new _0x5c0b74(this[_0x4c8ee0(0x19c)],_0x342f32,_0xa88353,_0x2d2c11,_0x4b3c49);return _0xa88353||_0x585f5c['on'](_0x4c8ee0(0x206),()=>{const _0x41df6c=_0x4c8ee0;this[_0x41df6c(0x1fc)](_0x41df6c(0x1fb),_0x585f5c['id']);}),_0x585f5c;}[_0x247f4c(0x1ec)](_0x22536c,_0xcb432a){const _0x19990d=_0x247f4c;_0xcb432a[_0x19990d(0x19a)](_0x22536c,0x0);}[_0x247f4c(0x1b1)](_0x39c82e,_0x1a02c6){const _0x38a596=_0x247f4c,_0x1212d7=_0x1a02c6[_0x38a596(0x1a7)](_0x2f9997=>_0x2f9997['id']===_0x39c82e);_0x1212d7&&_0x1a02c6[_0x38a596(0x1b6)](_0x1212d7);}[_0x247f4c(0x1f4)](){const _0x1de822=_0x247f4c;this[_0x1de822(0x1e2)][_0x1de822(0x1d0)]?this[_0x1de822(0x1ac)]():(this[_0x1de822(0x210)](),this[_0x1de822(0x21c)][_0x1de822(0x18f)]({'target':this[_0x1de822(0x1e2)][_0x1de822(0x1f5)],'limiter':this[_0x1de822(0x21a)](),'positions':Ho}));}[_0x247f4c(0x1ce)](_0x2de11b){const _0x3c3462=_0x247f4c;this[_0x3c3462(0x1fe)][_0x3c3462(0x1b8)](),this[_0x3c3462(0x1d8)](),this[_0x3c3462(0x1fc)](_0x3c3462(0x1cd),_0x2de11b);}}export class SourcesBalloonButtonView extends _0x4b4e07{[_0x247f4c(0x212)];constructor(_0x5d821e){const _0x12727f=_0x247f4c;super(_0x5d821e),this[_0x12727f(0x1c7)]({'withText':!0x0,'role':_0x12727f(0x1c0)}),this[_0x12727f(0x212)]=this[_0x12727f(0x1cc)](),this[_0x12727f(0x1a6)]({'attributes':{'class':[Ro]}});}[_0x247f4c(0x1c5)](){const _0x2d1530=_0x247f4c;super[_0x2d1530(0x1c5)](),this[_0x2d1530(0x218)][_0x2d1530(0x19a)](this[_0x2d1530(0x212)]);}[_0x247f4c(0x1cc)](){const _0x2fa894=_0x247f4c,_0x31aea4=new _0x7fb187();return _0x31aea4[_0x2fa894(0x1cf)]=_0x202baf,_0x31aea4[_0x2fa894(0x1a6)]({'attributes':{'class':Ro+_0x2fa894(0x195)}}),_0x31aea4;}}
23
+ function _0x1248(){const _0x49edad=['extendTemplate','isAnyResourceBalloonVisible','_urlInputView','label','reorganizeChips','destroy','northArrowSouthEast','execute','southArrowNorthEast','render','_createAddContextBalloonPanelView','_setupTemplate','4bkUYch','_setBalloonPanelContent','_conversationContextsChips','done','15068LBcvfm','130YeKMcW','icon','type','files','addUrlToContext','hide','removeContextItem','83574rfbvba','_createResourcesBalloonView','ck-ai-chat-context-controls__url-balloon-panel','ck-ai-chat-context-controls__show-more-balloon-panel','3108130PsOCEq','set','setContextItemLoading','_removeContextFromCollection','ck-ai-chat-context-chips-wrapper-balloon','locale','focus','fire','current','cancel','document','tooltip','element','_resourcesBalloonView','southArrowNorth','sources','isHidden','enabled','AI_CHAT_CONTEXT_URL_LABEL','_showSourceResourcesBalloon','show','273sXrlCj','southArrowNorthWest','_createBaseBalloonPanel','closeSourceResourceBalloon','showAddContextBalloonPanel','isReadOnly','ck-ai-chat-context-controls__add-context-balloon-panel','ck-ai-chat-context-controls__pending-contexts','add','body','_handleAddContextButtonClick','_createBalloonButton','ck-ai-chat-context-controls__balloon-button','bodyCollection','updateResourceState','pin','setTemplate','ck-ai-chat-controls-button','13ECBloV','northArrowSouth','126uJscLH','_createContextButton','removeContextItemChip','_addContextBalloonPanelView','addContextButtonView','populateSourceResourceBalloon','showUrlBalloonPanel','div','addResourceToContext','showSourceResourcesBalloon','_getLimiterElement','_createAddContextButtonView','urls','18hDQMdc','hideAddContextBalloonPanel','addDocumentToContext','ck-ai-chat-context-controls','closest','hideUrlBalloonPanel','remove','clearCurrentContextItems','815368vsEhjD','AI_CHAT_CONTEXT_FILE_LABEL','addFileToContext','isEnabled','overflowChips','isLoading','defaultPositions','ck-ai-chat','_addContextBalloonConfig','ck-ai-chat-context-controls__balloon-button-source','searchInputVisibleFrom','source','children','_setupAddContextBalloonClickOutsideHandler','loadSourceResources','_currentContextsChips','refreshBalloon','_toggleAddContextBalloon','_handleUrlSubmit','121803EtLLLw','bind','_addUrlContent','setContainerElement','_overflowManager','addContextItem','_addContextToCollection','_setupUrlBalloonClickOutsideHandler','clear','conversation','setAddContextOptions','northArrowSouthWest','ck-reset_all-excluded','createCollection','1465941cEwoUN','isOn','clearConversationContextItems','buttonView','ck-ai-chat-context-controls__add-context-button','__arrow','_createArrowView','find','setConversationContext','arrowView','_setAddContextButtonEnabled','572964KnpiJj','menuitem','balloonView','content','_createUrlBalloonPanelView','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','submitUrl','isVisible','ck-ai-chat-controls_context_show-more-button','AI_CHAT_CONTEXT_ADD_CONTEXT','_setupAllBalloonClickOutsideHandlers','_urlBalloonPanelView','_bindEventHandlers'];_0x1248=function(){return _0x49edad;};return _0x1248();}function _0x41a2(_0x109098,_0x1ff7fb){const _0x124886=_0x1248();return _0x41a2=function(_0x41a237,_0x1828cf){_0x41a237=_0x41a237-0x1b2;let _0x1fd7ed=_0x124886[_0x41a237];return _0x1fd7ed;},_0x41a2(_0x109098,_0x1ff7fb);}const _0x23ab82=_0x41a2;(function(_0x26ad5b,_0x500510){const _0x52a4f4=_0x41a2,_0x2bef76=_0x26ad5b();while(!![]){try{const _0x2d7268=parseInt(_0x52a4f4(0x223))/0x1*(-parseInt(_0x52a4f4(0x1f0))/0x2)+parseInt(_0x52a4f4(0x1c8))/0x3+parseInt(_0x52a4f4(0x1ec))/0x4*(parseInt(_0x52a4f4(0x1fc))/0x5)+-parseInt(_0x52a4f4(0x1f8))/0x6*(-parseInt(_0x52a4f4(0x225))/0x7)+-parseInt(_0x52a4f4(0x23a))/0x8*(-parseInt(_0x52a4f4(0x232))/0x9)+-parseInt(_0x52a4f4(0x1f1))/0xa*(parseInt(_0x52a4f4(0x1ba))/0xb)+parseInt(_0x52a4f4(0x1d3))/0xc*(-parseInt(_0x52a4f4(0x211))/0xd);if(_0x2d7268===_0x500510)break;else _0x2bef76['push'](_0x2bef76['shift']());}catch(_0x384513){_0x2bef76['push'](_0x2bef76['shift']());}}}(_0x1248,0x4e303));import{BalloonPanelView as _0x2bbc6f,ButtonView as _0x1996eb,clickOutsideHandler as _0x10455b,FileDialogButtonView as _0x362151,IconView as _0xb8700c,View as _0x5bafce}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x501175,IconDocument as _0xc38f9c,IconDocumentOutline as _0x3d019b,IconDropdownArrow as _0x3ca4c6,IconLink as _0xe9d30,IconPaperClip as _0x621e21}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x22d8fa}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x205b65}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x4d0c36}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x20c29a}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x58929c}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x23ab82(0x234),_0x23ab82(0x23c),_0x23ab82(0x1f5),_0x23ab82(0x22d),_0x23ab82(0x1f7),_0x23ab82(0x1b5)];const ko=_0x23ab82(0x235),Eo=_0x23ab82(0x218),vo=_0x23ab82(0x217),Vo=_0x23ab82(0x1cc),Io=_0x23ab82(0x1fa),Po=_0x23ab82(0x21d),Ro=_0x23ab82(0x243),Uo=_0x23ab82(0x222),Lo=_0x23ab82(0x200),No=_0x23ab82(0x1db),Oo=_0x23ab82(0x1fb),Mo=_0x23ab82(0x241),Ho=[_0x2bbc6f[_0x23ab82(0x240)][_0x23ab82(0x1c5)],_0x2bbc6f[_0x23ab82(0x240)][_0x23ab82(0x224)],_0x2bbc6f[_0x23ab82(0x240)][_0x23ab82(0x1e6)],_0x2bbc6f[_0x23ab82(0x240)][_0x23ab82(0x212)],_0x2bbc6f[_0x23ab82(0x240)][_0x23ab82(0x20a)],_0x2bbc6f[_0x23ab82(0x240)][_0x23ab82(0x1e8)]];export class AIChatContextPanelView extends _0x5bafce{[_0x23ab82(0x229)];[_0x23ab82(0x1b6)]=this[_0x23ab82(0x1c7)]();[_0x23ab82(0x1ee)]=this[_0x23ab82(0x1c7)]();[_0x23ab82(0x1be)];[_0x23ab82(0x228)];[_0x23ab82(0x1de)];[_0x23ab82(0x1e2)];[_0x23ab82(0x209)];[_0x23ab82(0x242)];[_0x23ab82(0x21e)];constructor(_0x2a6e82,_0x52ce9d){const _0x5240fe=_0x23ab82;super(_0x2a6e82),this[_0x5240fe(0x21e)]=_0x52ce9d[_0x5240fe(0x21e)],this[_0x5240fe(0x1b6)]=this[_0x5240fe(0x1c7)](),this[_0x5240fe(0x1ee)]=this[_0x5240fe(0x1c7)](),this[_0x5240fe(0x229)]=this[_0x5240fe(0x230)](_0x2a6e82),this[_0x5240fe(0x228)]=this[_0x5240fe(0x1ea)](_0x2a6e82),this[_0x5240fe(0x1de)]=this[_0x5240fe(0x1d7)](_0x2a6e82),this[_0x5240fe(0x209)]=this[_0x5240fe(0x1f9)](_0x2a6e82,_0x52ce9d);const _0x5d6cc8={'cssClasses':{'showMoreButton':No,'showMoreBalloon':Oo,'overflowContainer':Lo,'controlsButton':Uo}};this[_0x5240fe(0x1be)]=new _0x4d0c36(_0x2a6e82,this[_0x5240fe(0x1b6)],_0x5d6cc8,this[_0x5240fe(0x21e)],this),this[_0x5240fe(0x242)]={'buttonView':this[_0x5240fe(0x229)],'balloonView':this[_0x5240fe(0x228)],'hideMethod':this[_0x5240fe(0x233)][_0x5240fe(0x1bb)](this),'showMethod':this[_0x5240fe(0x215)][_0x5240fe(0x1bb)](this)},this[_0x5240fe(0x1eb)](),this[_0x5240fe(0x1df)]();}[_0x23ab82(0x1e9)](){const _0x10b18b=_0x23ab82;super[_0x10b18b(0x1e9)](),this[_0x10b18b(0x1dd)](),this[_0x10b18b(0x1be)][_0x10b18b(0x1bd)](this[_0x10b18b(0x208)]),this[_0x10b18b(0x1be)][_0x10b18b(0x1e4)]();}[_0x23ab82(0x1e5)](){const _0x319ddd=_0x23ab82;super[_0x319ddd(0x1e5)](),this[_0x319ddd(0x1be)][_0x319ddd(0x1e5)](),this[_0x319ddd(0x209)][_0x319ddd(0x1e5)]();}[_0x23ab82(0x1bf)](_0x4a3e56,_0x29ee7d){const _0x31b9ff=_0x23ab82,_0x5d8e5c=this[_0x31b9ff(0x226)](_0x4a3e56,_0x31b9ff(0x204),!0x0,_0x29ee7d);this[_0x31b9ff(0x1c0)](_0x5d8e5c,this[_0x31b9ff(0x1b6)]),this[_0x31b9ff(0x1be)][_0x31b9ff(0x1e4)]();}[_0x23ab82(0x1f7)](_0x42d914){const _0x2fd556=_0x23ab82;this[_0x2fd556(0x1ff)](_0x42d914,this[_0x2fd556(0x1b6)]),this[_0x2fd556(0x1ff)](_0x42d914,this[_0x2fd556(0x1be)][_0x2fd556(0x23e)]),this[_0x2fd556(0x1be)][_0x2fd556(0x1e4)]();}[_0x23ab82(0x1fe)](_0x126ddd,_0x166b35){const _0xc1d0f6=_0x23ab82;let _0x488fc2=this[_0xc1d0f6(0x1b6)][_0xc1d0f6(0x1cf)](_0x541408=>_0x541408['id']===_0x126ddd);_0x488fc2||(_0x488fc2=this[_0xc1d0f6(0x1be)][_0xc1d0f6(0x23e)][_0xc1d0f6(0x1cf)](_0x27521b=>_0x27521b['id']===_0x126ddd)),_0x488fc2&&(_0x488fc2[_0xc1d0f6(0x23f)]=_0x166b35);}[_0x23ab82(0x1d0)](_0x18cb0d){const _0x162a52=_0x23ab82;this[_0x162a52(0x1ee)][_0x162a52(0x1c2)]();for(const _0x537cca of _0x18cb0d){const _0x54364f=this[_0x162a52(0x226)](_0x537cca,_0x162a52(0x1c3),!0x1,!0x1);this[_0x162a52(0x1c0)](_0x54364f,this[_0x162a52(0x1ee)]);}}[_0x23ab82(0x239)](){const _0x343482=_0x23ab82;this[_0x343482(0x1b6)][_0x343482(0x1c2)](),this[_0x343482(0x1be)][_0x343482(0x1c2)]();}[_0x23ab82(0x1ca)](){const _0x2f2d64=_0x23ab82;this[_0x2f2d64(0x1ee)][_0x2f2d64(0x1c2)]();}[_0x23ab82(0x21f)](_0x51562a,_0x64324f,_0x544016){const _0x419ac6=_0x23ab82;this[_0x419ac6(0x209)][_0x419ac6(0x21f)](_0x51562a,_0x64324f,_0x544016);}[_0x23ab82(0x233)](){const _0x449a81=_0x23ab82;this[_0x449a81(0x1b8)](!0x1);}[_0x23ab82(0x215)](){const _0xf82d79=_0x23ab82;this[_0xf82d79(0x1b8)](!0x0);}[_0x23ab82(0x237)](){const _0x3ce0dc=_0x23ab82;this[_0x3ce0dc(0x1de)][_0x3ce0dc(0x1f6)](),this[_0x3ce0dc(0x229)][_0x3ce0dc(0x1c9)]=!0x1,this[_0x3ce0dc(0x1e2)]&&this[_0x3ce0dc(0x1e2)][_0x3ce0dc(0x1c2)]();}[_0x23ab82(0x22b)](){const _0xdd85c1=_0x23ab82;this[_0xdd85c1(0x1de)][_0xdd85c1(0x210)](),this[_0xdd85c1(0x229)][_0xdd85c1(0x1c9)]=!0x0;}[_0x23ab82(0x20f)](_0x35b38e){const _0x17c1c7=_0x23ab82;this[_0x17c1c7(0x209)][_0x17c1c7(0x22e)](_0x35b38e),this[_0x17c1c7(0x229)][_0x17c1c7(0x1c9)]=!0x0;}[_0x23ab82(0x22a)](_0x18453a,_0xa78cfe,_0x1a04ba,_0x32c56b){const _0x529484=_0x23ab82;this[_0x529484(0x209)][_0x529484(0x22a)](_0x18453a,_0x1a04ba,_0x32c56b);}[_0x23ab82(0x214)](_0x231bf1){const _0x2ac5af=_0x23ab82;this[_0x2ac5af(0x209)][_0x2ac5af(0x214)](_0x231bf1),this[_0x2ac5af(0x229)][_0x2ac5af(0x1c9)]=!0x1;}[_0x23ab82(0x1c4)](_0x204b45){const _0x165968=_0x23ab82;this[_0x165968(0x1ed)](this[_0x165968(0x228)],this[_0x165968(0x201)],_0x204b45),this[_0x165968(0x1d2)](_0x204b45);}[_0x23ab82(0x1d2)](_0x200719){const _0x194da2=_0x23ab82,_0x52980d=!_0x200719[_0x194da2(0x206)][_0x194da2(0x20c)]&&_0x200719[_0x194da2(0x206)][_0x194da2(0x20d)],_0x3af385=_0x200719[_0x194da2(0x231)][_0x194da2(0x20d)],_0x191fef=_0x200719[_0x194da2(0x1f4)][_0x194da2(0x20d)];this[_0x194da2(0x229)][_0x194da2(0x23d)]=_0x52980d||_0x3af385||_0x191fef;}[_0x23ab82(0x1eb)](){const _0x83354f=_0x23ab82;this[_0x83354f(0x221)]({'tag':_0x83354f(0x22c),'attributes':{'class':[ko,_0x83354f(0x1c6)]},'children':[{'tag':_0x83354f(0x22c),'attributes':{'class':Eo},'children':this[_0x83354f(0x1b6)]}]});}[_0x23ab82(0x1df)](){const _0x14229f=_0x23ab82;this[_0x14229f(0x229)]['on'](_0x14229f(0x1e7),()=>{const _0x5ac428=_0x14229f;this[_0x5ac428(0x21b)]();});}[_0x23ab82(0x230)](_0x431efa){const _0x254ca6=_0x23ab82,_0x247cce=new _0x1996eb(_0x431efa);return _0x247cce[_0x254ca6(0x1fd)]({'label':_0x20c29a(_0x431efa,_0x254ca6(0x1dc)),'class':Uo+'\x20'+Vo,'icon':_0x621e21,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x247cce;}[_0x23ab82(0x1ea)](_0x10b684){const _0x2a1bf0=_0x23ab82;return this[_0x2a1bf0(0x213)](_0x10b684,vo);}[_0x23ab82(0x1d7)](_0xc5803b){const _0x15d361=_0x23ab82,_0x9aadbb=this[_0x15d361(0x213)](_0xc5803b,Io);return this[_0x15d361(0x1bc)](_0x9aadbb,_0xc5803b),_0x9aadbb;}[_0x23ab82(0x1f9)](_0x3a9dcd,_0x3c5b90){const _0x2aa851=_0x23ab82,_0x3a3e0b={'searchInputVisibleFrom':_0x3c5b90[_0x2aa851(0x244)],'onBackToContext':()=>{const _0x1b3ae8=_0x2aa851;this[_0x1b3ae8(0x215)](),this[_0x1b3ae8(0x228)][_0x1b3ae8(0x220)]({'target':this[_0x1b3ae8(0x229)][_0x1b3ae8(0x208)],'limiter':this[_0x1b3ae8(0x22f)](),'positions':Ho});},'onResourceSelected':(_0x1a8f83,_0x559162)=>{const _0x11a3dc=_0x2aa851;this[_0x11a3dc(0x203)](_0x11a3dc(0x22d),{'source':_0x1a8f83,'resource':_0x559162});},'onLoadSourceResources':_0x11433d=>{const _0x359cb8=_0x2aa851;this[_0x359cb8(0x203)](_0x359cb8(0x1b5),_0x11433d);},'onBalloonClosed':()=>{const _0x490e86=_0x2aa851;this[_0x490e86(0x229)][_0x490e86(0x1c9)]=!0x1;},'getLimiterElement':()=>this[_0x2aa851(0x22f)](),'getTargetElement':()=>this[_0x2aa851(0x229)][_0x2aa851(0x208)]};return new _0x58929c(_0x3a9dcd,_0x3c5b90[_0x2aa851(0x21e)],_0x3a3e0b);}[_0x23ab82(0x22f)](){const _0x114b19=_0x23ab82;return this[_0x114b19(0x208)]?.[_0x114b19(0x236)]('.'+Mo)||document[_0x114b19(0x21a)];}[_0x23ab82(0x213)](_0x28097e,_0x3c9b30){const _0x7718ea=_0x23ab82,_0x27a591=new _0x2bbc6f(_0x28097e);return _0x27a591[_0x7718ea(0x1e0)]({'attributes':{'class':_0x3c9b30}}),this[_0x7718ea(0x21e)][_0x7718ea(0x219)](_0x27a591),_0x27a591;}[_0x23ab82(0x1ed)](_0x34fda8,_0x2e761e,_0x281b5f){const _0x2a4688=_0x23ab82;if(_0x34fda8[_0x2a4688(0x1d6)][_0x2a4688(0x1c2)](),!_0x281b5f[_0x2a4688(0x206)][_0x2a4688(0x20c)]&&_0x281b5f[_0x2a4688(0x206)][_0x2a4688(0x20d)]){const _0x5f28ba=this[_0x2a4688(0x21c)](_0x2e761e,{'label':_0x20c29a(_0x2e761e,_0x2a4688(0x1d8)),'icon':_0xc38f9c});_0x5f28ba['on'](_0x2a4688(0x1e7),()=>{const _0x381ed7=_0x2a4688;this[_0x381ed7(0x203)](_0x381ed7(0x234)),this[_0x381ed7(0x233)]();}),_0x34fda8[_0x2a4688(0x1d6)][_0x2a4688(0x219)](_0x5f28ba);}if(_0x281b5f[_0x2a4688(0x231)][_0x2a4688(0x20d)]){const _0x4f15d3=this[_0x2a4688(0x21c)](_0x2e761e,{'label':_0x20c29a(_0x2e761e,_0x2a4688(0x20e)),'icon':_0xe9d30});_0x4f15d3['on'](_0x2a4688(0x1e7),()=>{const _0x2d0508=_0x2a4688;this[_0x2d0508(0x233)](),this[_0x2d0508(0x22b)](),this[_0x2d0508(0x1de)][_0x2d0508(0x220)]({'target':this[_0x2d0508(0x229)][_0x2d0508(0x208)],'limiter':this[_0x2d0508(0x22f)](),'positions':Ho}),this[_0x2d0508(0x1e2)][_0x2d0508(0x202)]();}),_0x34fda8[_0x2a4688(0x1d6)][_0x2a4688(0x219)](_0x4f15d3);}if(_0x281b5f[_0x2a4688(0x1f4)][_0x2a4688(0x20d)]){const _0x5b13fc=new _0x362151(_0x2e761e);_0x5b13fc[_0x2a4688(0x1fd)]({'label':_0x20c29a(_0x2e761e,_0x2a4688(0x23b)),'icon':_0x501175,'withText':!0x0,'tooltip':!0x0,'class':Po,'allowMultipleFiles':!0x0}),_0x5b13fc['on'](_0x2a4688(0x1ef),(_0x406bd7,_0x51544c)=>{const _0x405c20=_0x2a4688;this[_0x405c20(0x203)](_0x405c20(0x23c),_0x51544c),this[_0x405c20(0x233)]();}),_0x5b13fc[_0x2a4688(0x207)]=!0x0,_0x34fda8[_0x2a4688(0x1d6)][_0x2a4688(0x219)](_0x5b13fc);}for(const _0x19141b of _0x281b5f[_0x2a4688(0x20b)]){const _0x22a54e=this[_0x2a4688(0x21c)](_0x2e761e,{'label':_0x19141b[_0x2a4688(0x1e3)],'icon':_0x19141b[_0x2a4688(0x1f2)]||_0x3d019b,'type':_0x2a4688(0x1b2)});_0x34fda8[_0x2a4688(0x1d6)][_0x2a4688(0x219)](_0x22a54e),_0x22a54e['on'](_0x2a4688(0x1e7),()=>{const _0x2332bd=_0x2a4688;this[_0x2332bd(0x233)](),this[_0x2332bd(0x20f)](_0x19141b);});}}[_0x23ab82(0x1bc)](_0x56ae05,_0x1fd8e0){const _0x1218ff=_0x23ab82;this[_0x1218ff(0x1e2)]=new _0x205b65(_0x1fd8e0),this[_0x1218ff(0x1e2)]['on'](_0x1218ff(0x1d9),(_0x185746,_0x2329fc)=>{const _0x4b8644=_0x1218ff;this[_0x4b8644(0x1b9)](_0x2329fc);}),this[_0x1218ff(0x1e2)]['on'](_0x1218ff(0x205),()=>{const _0x55eecb=_0x1218ff;this[_0x55eecb(0x237)](),this[_0x55eecb(0x215)](),this[_0x55eecb(0x228)][_0x55eecb(0x220)]({'target':this[_0x55eecb(0x229)][_0x55eecb(0x208)],'limiter':this[_0x55eecb(0x22f)](),'positions':Ho});}),this[_0x1218ff(0x1e2)]['on'](_0x1218ff(0x1b7),()=>{const _0x12ecdf=_0x1218ff;this[_0x12ecdf(0x1de)][_0x12ecdf(0x1da)]&&this[_0x12ecdf(0x1de)][_0x12ecdf(0x220)]({'target':this[_0x12ecdf(0x229)][_0x12ecdf(0x208)],'limiter':this[_0x12ecdf(0x22f)](),'positions':Ho});}),_0x56ae05[_0x1218ff(0x1d6)][_0x1218ff(0x219)](this[_0x1218ff(0x1e2)]);}[_0x23ab82(0x21c)](_0x18b19c,_0x529219){const _0x3eb633=_0x23ab82,_0x319a49=_0x3eb633(0x1b2)===_0x529219[_0x3eb633(0x1f3)]?new SourcesBalloonButtonView(_0x18b19c):new _0x1996eb(_0x18b19c);return _0x319a49[_0x3eb633(0x1fd)]({'label':_0x529219[_0x3eb633(0x1e3)],'icon':_0x529219[_0x3eb633(0x1f2)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Po}),_0x319a49;}[_0x23ab82(0x1dd)](){const _0x21afff=_0x23ab82;this[_0x21afff(0x1b4)](),this[_0x21afff(0x1c1)]();}[_0x23ab82(0x1c1)](){const _0x1e218e=_0x23ab82;_0x10455b({'emitter':this[_0x1e218e(0x1de)],'contextElements':[this[_0x1e218e(0x1de)][_0x1e218e(0x208)]],'callback':()=>{const _0x197645=_0x1e218e;this[_0x197645(0x237)]();},'activator':()=>this[_0x1e218e(0x1de)][_0x1e218e(0x1da)]});}[_0x23ab82(0x1b8)](_0x5df1bd){const _0x430ca8=_0x23ab82,_0x2b9818=this[_0x430ca8(0x242)];_0x2b9818[_0x430ca8(0x1cb)][_0x430ca8(0x1c9)]=_0x5df1bd,_0x5df1bd?_0x2b9818[_0x430ca8(0x1d5)][_0x430ca8(0x210)]():_0x2b9818[_0x430ca8(0x1d5)][_0x430ca8(0x1f6)]();}[_0x23ab82(0x1b4)](){const _0x2e551d=_0x23ab82,{balloonView:_0x28afc7,buttonView:_0x5cba55,hideMethod:_0x41c99c}=this[_0x2e551d(0x242)];_0x10455b({'emitter':_0x28afc7,'contextElements':[_0x28afc7[_0x2e551d(0x208)],_0x5cba55[_0x2e551d(0x208)]],'callback':()=>{_0x41c99c();},'activator':()=>_0x5cba55[_0x2e551d(0x1c9)]&&!this[_0x2e551d(0x1de)][_0x2e551d(0x1da)]&&!this[_0x2e551d(0x209)][_0x2e551d(0x1e1)]()});}[_0x23ab82(0x226)](_0x466583,_0x5efca8,_0x1da94a=!0x1,_0x232509=!0x1){const _0x524875=_0x23ab82,_0x1e39a2=_0x524875(0x1c3)===_0x5efca8||!0x0===_0x466583[_0x524875(0x216)],_0x27090a=new _0x22d8fa(this[_0x524875(0x201)],_0x466583,_0x1e39a2,_0x1da94a,_0x232509);return _0x1e39a2||_0x27090a['on'](_0x524875(0x227),()=>{const _0x2b1933=_0x524875;this[_0x2b1933(0x203)](_0x2b1933(0x1f7),_0x27090a['id']);}),_0x27090a;}[_0x23ab82(0x1c0)](_0x1632d1,_0xf9c634){const _0x4bde1b=_0x23ab82;_0xf9c634[_0x4bde1b(0x219)](_0x1632d1,0x0);}[_0x23ab82(0x1ff)](_0x16d4f8,_0x5a20ad){const _0xc97abe=_0x23ab82,_0x1d82b3=_0x5a20ad[_0xc97abe(0x1cf)](_0x616fea=>_0x616fea['id']===_0x16d4f8);_0x1d82b3&&_0x5a20ad[_0xc97abe(0x238)](_0x1d82b3);}[_0x23ab82(0x21b)](){const _0xd003bd=_0x23ab82;this[_0xd003bd(0x229)][_0xd003bd(0x1c9)]?this[_0xd003bd(0x233)]():(this[_0xd003bd(0x215)](),this[_0xd003bd(0x228)][_0xd003bd(0x220)]({'target':this[_0xd003bd(0x229)][_0xd003bd(0x208)],'limiter':this[_0xd003bd(0x22f)](),'positions':Ho}));}[_0x23ab82(0x1b9)](_0x1ac8e6){const _0x2b3ca7=_0x23ab82;this[_0x2b3ca7(0x1e2)][_0x2b3ca7(0x1c2)](),this[_0x2b3ca7(0x237)](),this[_0x2b3ca7(0x203)](_0x2b3ca7(0x1f5),_0x1ac8e6);}}export class SourcesBalloonButtonView extends _0x1996eb{[_0x23ab82(0x1d1)];constructor(_0x4fe985){const _0x3d5e85=_0x23ab82;super(_0x4fe985),this[_0x3d5e85(0x1fd)]({'withText':!0x0,'role':_0x3d5e85(0x1d4)}),this[_0x3d5e85(0x1d1)]=this[_0x3d5e85(0x1ce)](),this[_0x3d5e85(0x1e0)]({'attributes':{'class':[Ro]}});}[_0x23ab82(0x1e9)](){const _0x330514=_0x23ab82;super[_0x330514(0x1e9)](),this[_0x330514(0x1b3)][_0x330514(0x219)](this[_0x330514(0x1d1)]);}[_0x23ab82(0x1ce)](){const _0x2c28f0=_0x23ab82,_0x118df6=new _0xb8700c();return _0x118df6[_0x2c28f0(0x1d6)]=_0x3ca4c6,_0x118df6[_0x2c28f0(0x1e0)]({'attributes':{'class':Ro+_0x2c28f0(0x1cd)}}),_0x118df6;}}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**