@ckeditor/ckeditor5-ai 47.5.0 → 47.6.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (515) hide show
  1. package/build/966.ai.js +5 -0
  2. package/build/ai.js +1 -2
  3. package/build/translations/af.js +1 -1
  4. package/build/translations/ar.js +1 -1
  5. package/build/translations/ast.js +1 -1
  6. package/build/translations/az.js +1 -1
  7. package/build/translations/be.js +1 -1
  8. package/build/translations/bg.js +1 -1
  9. package/build/translations/bn.js +1 -1
  10. package/build/translations/bs.js +1 -1
  11. package/build/translations/ca.js +1 -1
  12. package/build/translations/cs.js +1 -1
  13. package/build/translations/da.js +1 -1
  14. package/build/translations/de-ch.js +1 -1
  15. package/build/translations/de.js +1 -1
  16. package/build/translations/el.js +1 -1
  17. package/build/translations/en-au.js +1 -1
  18. package/build/translations/en-gb.js +1 -1
  19. package/build/translations/en.js +1 -0
  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-editor.css +387 -403
  77. package/dist/index.css +441 -413
  78. package/dist/index.js +5 -5
  79. package/dist/translations/af.js +1 -1
  80. package/dist/translations/af.umd.js +1 -1
  81. package/dist/translations/ar.js +1 -1
  82. package/dist/translations/ar.umd.js +1 -1
  83. package/dist/translations/ast.js +1 -1
  84. package/dist/translations/ast.umd.js +1 -1
  85. package/dist/translations/az.js +1 -1
  86. package/dist/translations/az.umd.js +1 -1
  87. package/dist/translations/be.js +1 -1
  88. package/dist/translations/be.umd.js +1 -1
  89. package/dist/translations/bg.js +1 -1
  90. package/dist/translations/bg.umd.js +1 -1
  91. package/dist/translations/bn.js +1 -1
  92. package/dist/translations/bn.umd.js +1 -1
  93. package/dist/translations/bs.js +1 -1
  94. package/dist/translations/bs.umd.js +1 -1
  95. package/dist/translations/ca.js +1 -1
  96. package/dist/translations/ca.umd.js +1 -1
  97. package/dist/translations/cs.js +1 -1
  98. package/dist/translations/cs.umd.js +1 -1
  99. package/dist/translations/da.js +1 -1
  100. package/dist/translations/da.umd.js +1 -1
  101. package/dist/translations/de-ch.js +1 -1
  102. package/dist/translations/de-ch.umd.js +1 -1
  103. package/dist/translations/de.js +1 -1
  104. package/dist/translations/de.umd.js +1 -1
  105. package/dist/translations/el.js +1 -1
  106. package/dist/translations/el.umd.js +1 -1
  107. package/dist/translations/en-au.js +1 -1
  108. package/dist/translations/en-au.umd.js +1 -1
  109. package/dist/translations/en-gb.js +1 -1
  110. package/dist/translations/en-gb.umd.js +1 -1
  111. package/dist/translations/en.js +1 -1
  112. package/dist/translations/en.umd.js +1 -1
  113. package/dist/translations/eo.js +1 -1
  114. package/dist/translations/eo.umd.js +1 -1
  115. package/dist/translations/es-co.js +1 -1
  116. package/dist/translations/es-co.umd.js +1 -1
  117. package/dist/translations/es.js +1 -1
  118. package/dist/translations/es.umd.js +1 -1
  119. package/dist/translations/et.js +1 -1
  120. package/dist/translations/et.umd.js +1 -1
  121. package/dist/translations/eu.js +1 -1
  122. package/dist/translations/eu.umd.js +1 -1
  123. package/dist/translations/fa.js +1 -1
  124. package/dist/translations/fa.umd.js +1 -1
  125. package/dist/translations/fi.js +1 -1
  126. package/dist/translations/fi.umd.js +1 -1
  127. package/dist/translations/fr.js +1 -1
  128. package/dist/translations/fr.umd.js +1 -1
  129. package/dist/translations/gl.js +1 -1
  130. package/dist/translations/gl.umd.js +1 -1
  131. package/dist/translations/gu.js +1 -1
  132. package/dist/translations/gu.umd.js +1 -1
  133. package/dist/translations/he.js +1 -1
  134. package/dist/translations/he.umd.js +1 -1
  135. package/dist/translations/hi.js +1 -1
  136. package/dist/translations/hi.umd.js +1 -1
  137. package/dist/translations/hr.js +1 -1
  138. package/dist/translations/hr.umd.js +1 -1
  139. package/dist/translations/hu.js +1 -1
  140. package/dist/translations/hu.umd.js +1 -1
  141. package/dist/translations/hy.js +1 -1
  142. package/dist/translations/hy.umd.js +1 -1
  143. package/dist/translations/id.js +1 -1
  144. package/dist/translations/id.umd.js +1 -1
  145. package/dist/translations/it.js +1 -1
  146. package/dist/translations/it.umd.js +1 -1
  147. package/dist/translations/ja.js +1 -1
  148. package/dist/translations/ja.umd.js +1 -1
  149. package/dist/translations/jv.js +1 -1
  150. package/dist/translations/jv.umd.js +1 -1
  151. package/dist/translations/kk.js +1 -1
  152. package/dist/translations/kk.umd.js +1 -1
  153. package/dist/translations/km.js +1 -1
  154. package/dist/translations/km.umd.js +1 -1
  155. package/dist/translations/kn.js +1 -1
  156. package/dist/translations/kn.umd.js +1 -1
  157. package/dist/translations/ko.js +1 -1
  158. package/dist/translations/ko.umd.js +1 -1
  159. package/dist/translations/ku.js +1 -1
  160. package/dist/translations/ku.umd.js +1 -1
  161. package/dist/translations/lt.js +1 -1
  162. package/dist/translations/lt.umd.js +1 -1
  163. package/dist/translations/lv.js +1 -1
  164. package/dist/translations/lv.umd.js +1 -1
  165. package/dist/translations/ms.js +1 -1
  166. package/dist/translations/ms.umd.js +1 -1
  167. package/dist/translations/nb.js +1 -1
  168. package/dist/translations/nb.umd.js +1 -1
  169. package/dist/translations/ne.js +1 -1
  170. package/dist/translations/ne.umd.js +1 -1
  171. package/dist/translations/nl.js +1 -1
  172. package/dist/translations/nl.umd.js +1 -1
  173. package/dist/translations/no.js +1 -1
  174. package/dist/translations/no.umd.js +1 -1
  175. package/dist/translations/oc.js +1 -1
  176. package/dist/translations/oc.umd.js +1 -1
  177. package/dist/translations/pl.js +1 -1
  178. package/dist/translations/pl.umd.js +1 -1
  179. package/dist/translations/pt-br.js +1 -1
  180. package/dist/translations/pt-br.umd.js +1 -1
  181. package/dist/translations/pt.js +1 -1
  182. package/dist/translations/pt.umd.js +1 -1
  183. package/dist/translations/ro.js +1 -1
  184. package/dist/translations/ro.umd.js +1 -1
  185. package/dist/translations/ru.js +1 -1
  186. package/dist/translations/ru.umd.js +1 -1
  187. package/dist/translations/si.js +1 -1
  188. package/dist/translations/si.umd.js +1 -1
  189. package/dist/translations/sk.js +1 -1
  190. package/dist/translations/sk.umd.js +1 -1
  191. package/dist/translations/sl.js +1 -1
  192. package/dist/translations/sl.umd.js +1 -1
  193. package/dist/translations/sq.js +1 -1
  194. package/dist/translations/sq.umd.js +1 -1
  195. package/dist/translations/sr-latn.js +1 -1
  196. package/dist/translations/sr-latn.umd.js +1 -1
  197. package/dist/translations/sr.js +1 -1
  198. package/dist/translations/sr.umd.js +1 -1
  199. package/dist/translations/sv.js +1 -1
  200. package/dist/translations/sv.umd.js +1 -1
  201. package/dist/translations/th.js +1 -1
  202. package/dist/translations/th.umd.js +1 -1
  203. package/dist/translations/ti.js +1 -1
  204. package/dist/translations/ti.umd.js +1 -1
  205. package/dist/translations/tk.js +1 -1
  206. package/dist/translations/tk.umd.js +1 -1
  207. package/dist/translations/tr.js +1 -1
  208. package/dist/translations/tr.umd.js +1 -1
  209. package/dist/translations/tt.js +1 -1
  210. package/dist/translations/tt.umd.js +1 -1
  211. package/dist/translations/ug.js +1 -1
  212. package/dist/translations/ug.umd.js +1 -1
  213. package/dist/translations/uk.js +1 -1
  214. package/dist/translations/uk.umd.js +1 -1
  215. package/dist/translations/ur.js +1 -1
  216. package/dist/translations/ur.umd.js +1 -1
  217. package/dist/translations/uz.js +1 -1
  218. package/dist/translations/uz.umd.js +1 -1
  219. package/dist/translations/vi.js +1 -1
  220. package/dist/translations/vi.umd.js +1 -1
  221. package/dist/translations/zh-cn.js +1 -1
  222. package/dist/translations/zh-cn.umd.js +1 -1
  223. package/dist/translations/zh.js +1 -1
  224. package/dist/translations/zh.umd.js +1 -1
  225. package/lang/contexts.json +1 -0
  226. package/lang/translations/af.po +8 -4
  227. package/lang/translations/ar.po +8 -4
  228. package/lang/translations/ast.po +8 -4
  229. package/lang/translations/az.po +8 -4
  230. package/lang/translations/be.po +8 -4
  231. package/lang/translations/bg.po +8 -4
  232. package/lang/translations/bn.po +8 -4
  233. package/lang/translations/bs.po +8 -4
  234. package/lang/translations/ca.po +8 -4
  235. package/lang/translations/cs.po +8 -4
  236. package/lang/translations/da.po +8 -4
  237. package/lang/translations/de-ch.po +8 -4
  238. package/lang/translations/de.po +8 -4
  239. package/lang/translations/el.po +8 -4
  240. package/lang/translations/en-au.po +8 -4
  241. package/lang/translations/en-gb.po +8 -4
  242. package/lang/translations/en.po +8 -4
  243. package/lang/translations/eo.po +8 -4
  244. package/lang/translations/es-co.po +8 -4
  245. package/lang/translations/es.po +8 -4
  246. package/lang/translations/et.po +8 -4
  247. package/lang/translations/eu.po +8 -4
  248. package/lang/translations/fa.po +8 -4
  249. package/lang/translations/fi.po +8 -4
  250. package/lang/translations/fr.po +8 -4
  251. package/lang/translations/gl.po +8 -4
  252. package/lang/translations/gu.po +8 -4
  253. package/lang/translations/he.po +8 -4
  254. package/lang/translations/hi.po +8 -4
  255. package/lang/translations/hr.po +8 -4
  256. package/lang/translations/hu.po +8 -4
  257. package/lang/translations/hy.po +8 -4
  258. package/lang/translations/id.po +8 -4
  259. package/lang/translations/it.po +8 -4
  260. package/lang/translations/ja.po +8 -4
  261. package/lang/translations/jv.po +8 -4
  262. package/lang/translations/kk.po +8 -4
  263. package/lang/translations/km.po +8 -4
  264. package/lang/translations/kn.po +8 -4
  265. package/lang/translations/ko.po +8 -4
  266. package/lang/translations/ku.po +8 -4
  267. package/lang/translations/lt.po +8 -4
  268. package/lang/translations/lv.po +8 -4
  269. package/lang/translations/ms.po +8 -4
  270. package/lang/translations/nb.po +8 -4
  271. package/lang/translations/ne.po +8 -4
  272. package/lang/translations/nl.po +8 -4
  273. package/lang/translations/no.po +8 -4
  274. package/lang/translations/oc.po +8 -4
  275. package/lang/translations/pl.po +8 -4
  276. package/lang/translations/pt-br.po +8 -4
  277. package/lang/translations/pt.po +8 -4
  278. package/lang/translations/ro.po +8 -4
  279. package/lang/translations/ru.po +8 -4
  280. package/lang/translations/si.po +8 -4
  281. package/lang/translations/sk.po +8 -4
  282. package/lang/translations/sl.po +8 -4
  283. package/lang/translations/sq.po +8 -4
  284. package/lang/translations/sr-latn.po +8 -4
  285. package/lang/translations/sr.po +8 -4
  286. package/lang/translations/sv.po +8 -4
  287. package/lang/translations/th.po +8 -4
  288. package/lang/translations/ti.po +8 -4
  289. package/lang/translations/tk.po +8 -4
  290. package/lang/translations/tr.po +8 -4
  291. package/lang/translations/tt.po +8 -4
  292. package/lang/translations/ug.po +8 -4
  293. package/lang/translations/uk.po +8 -4
  294. package/lang/translations/ur.po +8 -4
  295. package/lang/translations/uz.po +8 -4
  296. package/lang/translations/vi.po +8 -4
  297. package/lang/translations/zh-cn.po +8 -4
  298. package/lang/translations/zh.po +8 -4
  299. package/package.json +21 -21
  300. package/src/aiactions/aiactions.js +1 -1
  301. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  302. package/src/aiactions/model/aiactionsreply.js +1 -1
  303. package/src/aiassistant/adapters/aiadapter.js +1 -1
  304. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  305. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  306. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  307. package/src/aiassistant/aiassistant.js +1 -1
  308. package/src/aiassistant/aiassistantediting.js +1 -1
  309. package/src/aiassistant/aiassistantui.js +1 -1
  310. package/src/aiassistant/legacyerrors.js +1 -1
  311. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  312. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  313. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  314. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  315. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  316. package/src/aiassistant/ui/form/aiformview.js +1 -1
  317. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  318. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  319. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  320. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  321. package/src/aiassistant/utils/common-translations.js +1 -1
  322. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  323. package/src/aiballoon/aiballoon.js +1 -1
  324. package/src/aiballoon/ui/aiballoonview.js +1 -1
  325. package/src/aichat/aichat.d.ts +12 -8
  326. package/src/aichat/aichat.js +1 -1
  327. package/src/aichat/aichatballoon.js +1 -1
  328. package/src/aichat/aichatcontroller.d.ts +4 -0
  329. package/src/aichat/aichatcontroller.js +1 -1
  330. package/src/aichat/aichatui.d.ts +24 -1
  331. package/src/aichat/aichatui.js +1 -1
  332. package/src/aichat/model/aichatcontext.js +1 -1
  333. package/src/aichat/model/aichatconversation.d.ts +13 -0
  334. package/src/aichat/model/aichatconversation.js +1 -1
  335. package/src/aichat/model/aichatinteraction.js +1 -1
  336. package/src/aichat/ui/aichatballoonview.js +1 -1
  337. package/src/aichat/ui/aichatcontrolsview.d.ts +5 -1
  338. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  339. package/src/aichat/ui/aichatfeedview.d.ts +4 -0
  340. package/src/aichat/ui/aichatfeedview.js +1 -1
  341. package/src/aichat/ui/aichatheaderview.js +1 -1
  342. package/src/aichat/ui/aichatview.js +1 -1
  343. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  344. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  345. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  346. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  347. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  348. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  349. package/src/aichat/ui/controls/aichatpromptinputview.d.ts +5 -0
  350. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  351. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  352. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  353. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  354. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  355. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  356. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  357. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  358. package/src/aichat/ui/feed/aichatfeedcustomelementview.js +1 -1
  359. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  360. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  361. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  362. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  363. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  364. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  365. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  366. package/src/aichat/utils/eventnames.js +1 -1
  367. package/src/aichat/utils/promisequeue.js +1 -1
  368. package/src/aichathistory/aichathistory.js +1 -1
  369. package/src/aichathistory/aichathistorycontroller.js +1 -1
  370. package/src/aichathistory/aichathistoryui.js +1 -1
  371. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  372. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  373. package/src/aichathistory/ui/aichathistorylistitemview.d.ts +1 -1
  374. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  375. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  376. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  377. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  378. package/src/aichatshortcuts/aichatshortcuts.d.ts +324 -0
  379. package/src/aichatshortcuts/aichatshortcuts.js +23 -0
  380. package/src/aichatshortcuts/ui/aichatshortcutsview.d.ts +23 -0
  381. package/src/aichatshortcuts/ui/aichatshortcutsview.js +23 -0
  382. package/src/aichatshortcuts/ui/aichatshortcutview.d.ts +23 -0
  383. package/src/aichatshortcuts/ui/aichatshortcutview.js +23 -0
  384. package/src/aiconfig.d.ts +7 -0
  385. package/src/aicore/aiconnector.js +1 -1
  386. package/src/aicore/aiediting.js +1 -1
  387. package/src/aicore/model/aicapabilities.d.ts +8 -0
  388. package/src/aicore/model/aicapabilities.js +1 -1
  389. package/src/aicore/model/aicontext.d.ts +7 -1
  390. package/src/aicore/model/aicontext.js +1 -1
  391. package/src/aicore/model/aiinteraction.js +1 -1
  392. package/src/aicore/model/aimodels.js +1 -1
  393. package/src/aicore/model/aireply.js +1 -1
  394. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  395. package/src/aicore/pipeline/airesponseparser.js +2 -2
  396. package/src/aicore/ui/aidisclaimerview.js +1 -1
  397. package/src/aicore/ui/aiskeleton.js +1 -1
  398. package/src/aicore/ui/aispinner.js +1 -1
  399. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  400. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  401. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  402. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
  403. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
  404. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
  405. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  406. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  407. package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
  408. package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
  409. package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
  410. package/src/aicore/utils/common-translations.js +1 -1
  411. package/src/aicore/utils/createresizebutton.d.ts +1 -0
  412. package/src/aicore/utils/createresizebutton.js +1 -1
  413. package/src/aicore/utils/documentposition.js +1 -1
  414. package/src/aicore/utils/documentrange.js +1 -1
  415. package/src/aicore/utils/eventnames.js +1 -1
  416. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  417. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  418. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  419. package/src/aicore/utils/htmlparser.js +1 -1
  420. package/src/aicore/utils/htmlstreamer.js +1 -1
  421. package/src/aicore/utils/scrollmanager.js +1 -1
  422. package/src/aieditorintegration/aieditorintegration.js +1 -1
  423. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  424. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  425. package/src/aiquickactions/aiquickactions.js +1 -1
  426. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  427. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  428. package/src/aiquickactions/aiquickactionsui.js +1 -1
  429. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  430. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  431. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  432. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
  433. package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
  434. package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
  435. package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
  436. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  437. package/src/aireviewcore/aireviewcorecontroller.js +1 -1
  438. package/src/aireviewcore/aireviewcoreediting.js +1 -1
  439. package/src/aireviewcore/aireviewcoreui.js +1 -1
  440. package/src/aireviewcore/model/aireviewcheck.d.ts +4 -0
  441. package/src/aireviewcore/model/aireviewcheck.js +1 -1
  442. package/src/aireviewcore/model/aireviewchecklist.d.ts +3 -3
  443. package/src/aireviewcore/model/aireviewchecklist.js +1 -1
  444. package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
  445. package/src/aireviewcore/model/aireviewcheckresultchange.js +1 -1
  446. package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
  447. package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
  448. package/src/aireviewcore/types.d.ts +11 -2
  449. package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
  450. package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
  451. package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
  452. package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
  453. package/src/aireviewcore/ui/aireviewcoregeneralerrorview.js +1 -1
  454. package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
  455. package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
  456. package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
  457. package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
  458. package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
  459. package/src/aireviewcore/ui/aireviewcoreview.js +1 -1
  460. package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
  461. package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +1 -1
  462. package/src/aireviewmode/aireviewcheckdefinitions.d.ts +4 -0
  463. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  464. package/src/aireviewmode/aireviewmode.d.ts +95 -0
  465. package/src/aireviewmode/aireviewmode.js +1 -1
  466. package/src/aireviewmode/aireviewmodecontroller.d.ts +5 -0
  467. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  468. package/src/aireviewmode/aireviewmodeui.js +1 -1
  469. package/src/aireviewmode/model/aireviewcheckcustom.d.ts +6 -3
  470. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  471. package/src/aireviewmode/model/aireviewcheckextra.d.ts +35 -0
  472. package/src/aireviewmode/model/aireviewcheckextra.js +23 -0
  473. package/src/aireviewmode/model/aireviewcustomcheckrun.d.ts +2 -1
  474. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  475. package/src/aireviewmode/model/aireviewextracheckrun.d.ts +20 -0
  476. package/src/aireviewmode/model/aireviewextracheckrun.js +23 -0
  477. package/src/aireviewmode/model/aireviewmodechecklist.d.ts +10 -0
  478. package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
  479. package/src/aitabs/aitabs.js +1 -1
  480. package/src/aitabs/aitabsmainview.js +1 -1
  481. package/src/aitabs/tabs/aitabsview.js +1 -1
  482. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  483. package/src/aitabs/tabs/tabpanelview.js +1 -1
  484. package/src/aitranslate/aitranslate.js +1 -1
  485. package/src/aitranslate/aitranslatecontroller.js +1 -1
  486. package/src/aitranslate/aitranslateui.js +1 -1
  487. package/src/aitranslate/model/aitranslatecheck.js +1 -1
  488. package/src/aitranslate/model/aitranslatechecklist.d.ts +5 -0
  489. package/src/aitranslate/model/aitranslatechecklist.js +1 -1
  490. package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
  491. package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
  492. package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
  493. package/src/augmentation.d.ts +2 -0
  494. package/src/errors.js +1 -1
  495. package/src/errorsmap.js +1 -1
  496. package/src/index.d.ts +2 -1
  497. package/src/index.js +1 -1
  498. package/theme/aichat/aichat-controls/aichat-context-controls.css +0 -1
  499. package/theme/aichat/aichat-controls/aichat-controls-button.css +22 -23
  500. package/theme/aichat/aichat-controls/prompt-input.css +23 -0
  501. package/theme/aichat/aichat-controls.css +0 -19
  502. package/theme/aichat/aichathistory.css +1 -1
  503. package/theme/aichat/aiminitoolbar.css +0 -16
  504. package/theme/aichatshortcuts/aichatshortcuts.css +84 -0
  505. package/theme/aieditorintegration/aitogglebutton.css +5 -11
  506. package/theme/aiquickactions/aiquickactions.css +6 -11
  507. package/theme/aiquickactions/aiquickactionsballoon.css +37 -29
  508. package/theme/aireviewcore/aireviewcore-check-run.css +4 -0
  509. package/theme/aireviewcore/aireviewcore.css +4 -4
  510. package/theme/aitabs/aitabsresizebutton.css +14 -0
  511. package/theme/aitranslate/aitranslate.css +4 -0
  512. package/theme/common/aibutton.css +56 -67
  513. package/theme/common/aiheader.css +1 -1
  514. package/theme/common/aisuggestioncontentparttoolbar.css +1 -1
  515. package/theme/common/aisuggestionstreamablecontent.css +4 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x446c6a=_0x1289;(function(_0x46cab2,_0x43c5f8){const _0x353632=_0x1289,_0x1682ff=_0x46cab2();while(!![]){try{const _0x545a74=parseInt(_0x353632(0xfa))/0x1+parseInt(_0x353632(0x117))/0x2+parseInt(_0x353632(0x142))/0x3+parseInt(_0x353632(0x123))/0x4*(parseInt(_0x353632(0x128))/0x5)+parseInt(_0x353632(0x119))/0x6*(-parseInt(_0x353632(0x141))/0x7)+-parseInt(_0x353632(0x15a))/0x8*(parseInt(_0x353632(0x132))/0x9)+-parseInt(_0x353632(0x14a))/0xa;if(_0x545a74===_0x43c5f8)break;else _0x1682ff['push'](_0x1682ff['shift']());}catch(_0x447539){_0x1682ff['push'](_0x1682ff['shift']());}}}(_0x151d,0x5d031));import{View as _0x5527c0,BalloonPanelView as _0x4fadfd,ButtonView as _0x29ce90,clickOutsideHandler as _0x506766}from'ckeditor5/src/ui.js';import{Collection as _0x180001}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},an=_0x446c6a(0x106);function _0x1289(_0x3350cb,_0x215a98){const _0x151df1=_0x151d();return _0x1289=function(_0x1289e4,_0x1b8d85){_0x1289e4=_0x1289e4-0xe2;let _0x32d53d=_0x151df1[_0x1289e4];return _0x32d53d;},_0x1289(_0x3350cb,_0x215a98);}function _0x151d(){const _0x5a0e55=['innerHeight','className','_applyOverflowResults','isConnected','boxSizing','includes','height','block\x20!important','getComputedStyle','pin','185208rWTcpq','_createContainerElements','_repinBalloonPanel','bottom','children','_calculateOverflowInContainer','_findTargetContainer','_setupVisibilityObserver','_pendingCalculation','right','add','pointerEvents','300px','button','overflowChips','_checkAndHandleOverflow','_parentView','isVisible','overflowContainer','0px','_showMoreButtonView','reorganizeChips','_renderChipsAndCountRows','content','maxVisibleRows','slice','zIndex','body','hideBalloonPanel','208032CZSies','controlsButton','65400KsEfUi','hide','_overflowChips','destroy','undefined','none','createElement','push','_bodyCollection','auto','1988248gyCBFb','isOn','_targetContainer','setContainerElement','_createShowMoreBalloonPanelView','5CPGrUp','from','textContent','clear','element','hidden','visible\x20!important','_updateBalloonContent','documentElement','display','9Smqkro','clientWidth','position','calculationContainer','+\x201','width','visibility','visible','abs','toLowerCase','filter','execute','_restoreAncestorVisibility','querySelector','left','28CYQYjO','1804422LjePam','_handleShowMoreButtonClick','_distributeChips','show','_testButtonFit','showBalloonPanel','render','_updateOverflowUI','6124100yDgDjb','_calculateContainerWidth','showMoreButton','clientHeight','setTemplate','parentElement','top','disconnect','.ck-ai-chat','disableAnimationOnEnter','set','isIntersecting','innerWidth','absolute','_ancestorsToRestore','tagName','2806184PvpMTb','showMoreBalloon','_updateShowMoreButtonVisibility','extendTemplate','_createShowMoreButtonView','cloneNode','getBoundingClientRect','some','50px','_isContainerVisible','forEach','rowDetectionTolerance','style','block','-9999px','_createCalculationContainer','_showMoreBalloonPanelView','showMoreLabelPrefix','div','_visibleChips','appendChild','_createShowMoreButton','cssClasses','_intersectionObserver','_makeAncestorsVisible','_config','pop','opacity','_containerElement','remove','border-box','_createMockButton','offsetWidth','observe','ck-calculation-container','label','_applyCalculationStyles','classList','innerHTML','showMoreButtonView','length','_locale'];_0x151d=function(){return _0x5a0e55;};return _0x151d();}export class AIChatChipsOverflowManager{[_0x446c6a(0xef)];[_0x446c6a(0x173)];[_0x446c6a(0x16d)];[_0x446c6a(0x11b)];[_0x446c6a(0x10e)]=null;[_0x446c6a(0x16a)]=null;[_0x446c6a(0xe2)]=null;[_0x446c6a(0x121)];[_0x446c6a(0x10a)]=null;[_0x446c6a(0x171)]=null;[_0x446c6a(0x102)]=!0x1;constructor(_0x4274c4,_0x79997b,_0x5f45dd,_0x2f6a25,_0x5e006c){const _0x5ee836=_0x446c6a;this[_0x5ee836(0xef)]=_0x4274c4,this[_0x5ee836(0x16d)]=_0x79997b,this[_0x5ee836(0x173)]={...hn,..._0x5f45dd,'cssClasses':{'controlsButton':'','calculationContainer':_0x5ee836(0xe8),..._0x5f45dd[_0x5ee836(0x170)]}},this[_0x5ee836(0x11b)]=new _0x180001(),this[_0x5ee836(0x121)]=_0x2f6a25,this[_0x5ee836(0x10a)]=_0x5e006c||null;}[_0x446c6a(0x126)](_0x46e402){const _0x41a400=_0x446c6a;this[_0x41a400(0x171)]&&(this[_0x41a400(0x171)][_0x41a400(0x151)](),this[_0x41a400(0x171)]=null),this[_0x41a400(0xe2)]=_0x46e402,this[_0x41a400(0x101)]();}get[_0x446c6a(0xed)](){const _0x5944ae=_0x446c6a;return this[_0x5944ae(0x10e)];}get[_0x446c6a(0x108)](){const _0x3daa3a=_0x446c6a;return this[_0x3daa3a(0x11b)];}[_0x446c6a(0x10f)](){requestAnimationFrame(()=>{const _0x59e86b=_0x1289;this[_0x59e86b(0x109)]();});}[_0x446c6a(0x147)](){const _0x5c7715=_0x446c6a;this[_0x5c7715(0x10e)]&&this[_0x5c7715(0x16a)]&&(this[_0x5c7715(0x12f)](),this[_0x5c7715(0x10e)][_0x5c7715(0x124)]=!0x0,this[_0x5c7715(0x16a)][_0x5c7715(0x145)](),this[_0x5c7715(0x16a)][_0x5c7715(0xf9)]({'target':this[_0x5c7715(0x10e)][_0x5c7715(0x12c)],'limiter':document[_0x5c7715(0x13f)](_0x5c7715(0x152))}));}[_0x446c6a(0x116)](){const _0x58f5ad=_0x446c6a;this[_0x58f5ad(0x10e)]&&this[_0x58f5ad(0x16a)]&&(this[_0x58f5ad(0x10e)][_0x58f5ad(0x124)]=!0x1,this[_0x58f5ad(0x16a)][_0x58f5ad(0x11a)]());}[_0x446c6a(0x12b)](){const _0x2bc6d5=_0x446c6a;this[_0x2bc6d5(0x11b)][_0x2bc6d5(0x12b)](),this[_0x2bc6d5(0x116)](),this[_0x2bc6d5(0x15c)](),this[_0x2bc6d5(0x10e)]&&(this[_0x2bc6d5(0x10e)][_0x2bc6d5(0xe9)]=''),this[_0x2bc6d5(0x16a)]&&this[_0x2bc6d5(0x16a)][_0x2bc6d5(0x111)][_0x2bc6d5(0x12b)]();}[_0x446c6a(0x11c)](){const _0x4dcbbd=_0x446c6a;this[_0x4dcbbd(0x171)]&&(this[_0x4dcbbd(0x171)][_0x4dcbbd(0x151)](),this[_0x4dcbbd(0x171)]=null),this[_0x4dcbbd(0x10e)]&&(this[_0x4dcbbd(0x10e)][_0x4dcbbd(0x11c)](),this[_0x4dcbbd(0x10e)]=null),this[_0x4dcbbd(0x16a)]&&(this[_0x4dcbbd(0x16a)][_0x4dcbbd(0x11c)](),this[_0x4dcbbd(0x16a)]=null);}[_0x446c6a(0x109)](){const _0x58d96d=_0x446c6a;if(!this[_0x58d96d(0xe2)])return;if(!this[_0x58d96d(0x163)]())return void(this[_0x58d96d(0x102)]=!0x0);this[_0x58d96d(0x102)]=!0x1;const _0x440282=[...this[_0x58d96d(0x16d)],...this[_0x58d96d(0x11b)]],_0x28236e=this[_0x58d96d(0x169)](),_0x87067e=this[_0x58d96d(0xff)](_0x28236e,_0x440282),_0x367208=_0x28236e[_0x58d96d(0x158)];_0x367208&&this[_0x58d96d(0x13e)](_0x367208),_0x28236e[_0x58d96d(0xe3)](),this[_0x58d96d(0xf2)](_0x440282,_0x87067e);}[_0x446c6a(0x16f)](){const _0xf64cfb=_0x446c6a;this[_0xf64cfb(0x10e)]=this[_0xf64cfb(0x15e)](),this[_0xf64cfb(0x16a)]=this[_0xf64cfb(0x127)](),this[_0xf64cfb(0x10e)][_0xf64cfb(0x148)](),this[_0xf64cfb(0xe2)][_0xf64cfb(0x16e)](this[_0xf64cfb(0x10e)][_0xf64cfb(0x12c)]),this[_0xf64cfb(0x10e)]['on'](_0xf64cfb(0x13d),()=>{const _0x3e7e32=_0xf64cfb;this[_0x3e7e32(0x143)]();}),_0x506766({'emitter':this[_0xf64cfb(0x16a)],'contextElements':[this[_0xf64cfb(0x16a)][_0xf64cfb(0x12c)],this[_0xf64cfb(0x10e)][_0xf64cfb(0x12c)]],'callback':()=>this[_0xf64cfb(0x116)](),'activator':()=>this[_0xf64cfb(0x10e)][_0xf64cfb(0x124)]});}[_0x446c6a(0x15e)](){const _0x202324=_0x446c6a,_0x1f1459=new _0x29ce90(this[_0x202324(0xef)]);_0x1f1459[_0x202324(0x154)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x515b35=[this[_0x202324(0x173)][_0x202324(0x170)][_0x202324(0x14c)]];return this[_0x202324(0x173)][_0x202324(0x170)][_0x202324(0x118)]&&_0x515b35[_0x202324(0x120)](this[_0x202324(0x173)][_0x202324(0x170)][_0x202324(0x118)]),_0x1f1459[_0x202324(0x15d)]({'attributes':{'class':_0x515b35}}),_0x1f1459;}[_0x446c6a(0x127)](){const _0x4b8831=_0x446c6a,_0x32a834=new _0x4fadfd(this[_0x4b8831(0xef)]);return _0x32a834[_0x4b8831(0x15d)]({'attributes':{'class':this[_0x4b8831(0x173)][_0x4b8831(0x170)][_0x4b8831(0x15b)]}}),this[_0x4b8831(0x121)][_0x4b8831(0x104)](_0x32a834),_0x32a834;}[_0x446c6a(0x12f)](){const _0x4daeb3=_0x446c6a;if(this[_0x4daeb3(0x16a)]&&(this[_0x4daeb3(0x16a)][_0x4daeb3(0x111)][_0x4daeb3(0x12b)](),this[_0x4daeb3(0x11b)][_0x4daeb3(0xee)]>0x0)){this[_0x4daeb3(0x11b)][_0x4daeb3(0x164)](_0x180351=>{const _0x30b8c6=_0x4daeb3;_0x180351[_0x30b8c6(0x153)]();});const _0x21ef3d=new _0x5527c0(this[_0x4daeb3(0xef)]);_0x21ef3d[_0x4daeb3(0x14e)]({'tag':_0x4daeb3(0x16c),'attributes':{'class':this[_0x4daeb3(0x173)][_0x4daeb3(0x170)][_0x4daeb3(0x10c)]},'children':this[_0x4daeb3(0x11b)]}),this[_0x4daeb3(0x16a)][_0x4daeb3(0x111)][_0x4daeb3(0x104)](_0x21ef3d);}}[_0x446c6a(0x143)](){const _0x14cae1=_0x446c6a;this[_0x14cae1(0x10e)][_0x14cae1(0x124)]?this[_0x14cae1(0x116)]():this[_0x14cae1(0x147)]();}[_0x446c6a(0x15c)](){const _0xaeb570=_0x446c6a,_0x56f53c=this[_0xaeb570(0x11b)][_0xaeb570(0xee)]>0x0;this[_0xaeb570(0x10e)]?.[_0xaeb570(0x12c)]&&(this[_0xaeb570(0x10e)][_0xaeb570(0x12c)][_0xaeb570(0x166)][_0xaeb570(0x131)]=_0x56f53c?'':_0xaeb570(0x11e));}[_0x446c6a(0xfc)](){const _0x520294=_0x446c6a;this[_0x520294(0x10e)]?.[_0x520294(0x124)]&&this[_0x520294(0x16a)]?.[_0x520294(0x10b)]&&this[_0x520294(0x10e)][_0x520294(0x12c)]&&this[_0x520294(0x16a)][_0x520294(0xf9)]({'target':this[_0x520294(0x10e)][_0x520294(0x12c)],'limiter':document[_0x520294(0x13f)](_0x520294(0x152))});}[_0x446c6a(0x100)](_0x2b49f2){const _0x5ef623=_0x446c6a,_0x332551=this[_0x5ef623(0xe2)]?.[_0x5ef623(0x159)][_0x5ef623(0x13b)]()||_0x5ef623(0x16c),_0x36386d=this[_0x5ef623(0xe2)]?.[_0x5ef623(0xeb)];if(_0x36386d){const _0x52cc51=_0x36386d[0x0]||'',_0x4ecade=_0x2b49f2[_0x5ef623(0x13f)]('.'+_0x52cc51),_0x2c1538=_0x2b49f2[_0x5ef623(0x13f)](_0x332551);return _0x4ecade||_0x2c1538||_0x2b49f2;}return _0x2b49f2[_0x5ef623(0x13f)](_0x332551)||_0x2b49f2;}[_0x446c6a(0x14b)](){const _0x326873=_0x446c6a,_0x5cea4e=this[_0x326873(0x10a)]?.[_0x326873(0x12c)]||this[_0x326873(0xe2)];if(!_0x5cea4e)return an;const _0x41a6ca=window[_0x326873(0xf8)](_0x5cea4e)[_0x326873(0x137)];if(_0x326873(0x122)===_0x41a6ca||_0x326873(0x10d)===_0x41a6ca||!_0x41a6ca){const _0x30f9b9=_0x5cea4e[_0x326873(0x14f)];if(_0x30f9b9){const _0x1ce1f7=window[_0x326873(0xf8)](_0x30f9b9);return _0x326873(0x122)!==_0x1ce1f7[_0x326873(0x137)]?_0x1ce1f7[_0x326873(0x137)]:an;}return an;}return _0x41a6ca;}[_0x446c6a(0xea)](_0x312ef2,_0xa44555){const _0x52de12=_0x446c6a;this[_0x52de12(0x173)][_0x52de12(0x170)][_0x52de12(0x135)]&&_0x312ef2[_0x52de12(0xeb)][_0x52de12(0x104)](this[_0x52de12(0x173)][_0x52de12(0x170)][_0x52de12(0x135)]),_0x312ef2[_0x52de12(0x166)][_0x52de12(0x137)]=_0xa44555,_0x312ef2[_0x52de12(0x166)][_0x52de12(0x134)]=_0x52de12(0x157),_0x312ef2[_0x52de12(0x166)][_0x52de12(0x150)]=_0x52de12(0x168),_0x312ef2[_0x52de12(0x166)][_0x52de12(0x140)]=_0x52de12(0x168),_0x312ef2[_0x52de12(0x166)][_0x52de12(0x175)]='0',_0x312ef2[_0x52de12(0x166)][_0x52de12(0x105)]=_0x52de12(0x11e),_0x312ef2[_0x52de12(0x166)][_0x52de12(0x114)]='-1',_0x312ef2[_0x52de12(0x166)][_0x52de12(0x138)]=_0x52de12(0x12e),_0x312ef2[_0x52de12(0x166)][_0x52de12(0x131)]=_0x52de12(0xf7),_0x312ef2[_0x52de12(0x166)][_0x52de12(0xf4)]=_0x52de12(0xe4);}[_0x446c6a(0x13e)](_0x3be8f1){const _0x2b1e35=_0x446c6a;_0x3be8f1[_0x2b1e35(0x164)](({element:_0x42b5d2,originalDisplay:_0x52043f,originalVisibility:_0x4be0bd})=>{const _0x4ba379=_0x2b1e35;_0x42b5d2[_0x4ba379(0x166)][_0x4ba379(0x131)]=_0x52043f,_0x42b5d2[_0x4ba379(0x166)][_0x4ba379(0x138)]=_0x4be0bd;});}[_0x446c6a(0x172)](_0x2ac862){const _0x47fbd4=_0x446c6a,_0x359d3a=[];let _0x53a87b=_0x2ac862;for(;_0x53a87b&&_0x53a87b!==document[_0x47fbd4(0x115)];){const _0x146d81=window[_0x47fbd4(0xf8)](_0x53a87b);_0x47fbd4(0x11e)!==_0x146d81[_0x47fbd4(0x131)]&&_0x47fbd4(0x12d)!==_0x146d81[_0x47fbd4(0x138)]||(_0x359d3a[_0x47fbd4(0x120)]({'element':_0x53a87b,'originalDisplay':_0x53a87b[_0x47fbd4(0x166)][_0x47fbd4(0x131)],'originalVisibility':_0x53a87b[_0x47fbd4(0x166)][_0x47fbd4(0x138)]}),_0x53a87b[_0x47fbd4(0x166)][_0x47fbd4(0x131)]=_0x47fbd4(0x167),_0x53a87b[_0x47fbd4(0x166)][_0x47fbd4(0x138)]=_0x47fbd4(0x139)),_0x53a87b=_0x53a87b[_0x47fbd4(0x14f)];}return _0x359d3a;}[_0x446c6a(0xfb)](){const _0x116aef=_0x446c6a;let _0x5d0c0f,_0x435b06;return this[_0x116aef(0x10a)]?.[_0x116aef(0x12c)]?(_0x5d0c0f=this[_0x116aef(0x10a)][_0x116aef(0x12c)][_0x116aef(0x15f)](!0x0),_0x435b06=this[_0x116aef(0x100)](_0x5d0c0f)):(_0x5d0c0f=document[_0x116aef(0x11f)](_0x116aef(0x16c)),_0x435b06=_0x5d0c0f),{'calculationContainer':_0x5d0c0f,'targetContainer':_0x435b06};}[_0x446c6a(0x169)](){const _0x1480e4=_0x446c6a,{calculationContainer:_0x3f2b57,targetContainer:_0x1de805}=this[_0x1480e4(0xfb)](),_0x16bcd6=this[_0x1480e4(0x14b)]();this[_0x1480e4(0xea)](_0x3f2b57,_0x16bcd6);const _0x2d274e=this[_0x1480e4(0x10a)]?.[_0x1480e4(0x12c)]||this[_0x1480e4(0xe2)],_0x4efa6f=_0x2d274e?.[_0x1480e4(0x14f)];_0x4efa6f?_0x4efa6f[_0x1480e4(0x16e)](_0x3f2b57):document[_0x1480e4(0x115)][_0x1480e4(0x16e)](_0x3f2b57),_0x3f2b57[_0x1480e4(0x125)]=_0x1de805;const _0x2d03a8=this[_0x1480e4(0x172)](_0x4efa6f||null);return _0x3f2b57[_0x1480e4(0xe6)],_0x3f2b57[_0x1480e4(0x158)]=_0x2d03a8,_0x3f2b57;}[_0x446c6a(0xff)](_0x295b3f,_0x1e58c5){const _0xc7a7bc=_0x446c6a,_0x5ecdb8=_0x295b3f[_0xc7a7bc(0x125)]||_0x295b3f,_0x110eee=[],{rowCount:_0x483404}=this[_0xc7a7bc(0x110)](_0x5ecdb8,_0x1e58c5);if(_0x483404<=this[_0xc7a7bc(0x173)][_0xc7a7bc(0x112)])return _0x110eee;const _0x159a5f=_0x1e58c5[_0xc7a7bc(0x113)]();for(;_0x159a5f[_0xc7a7bc(0xee)]>0x0;){if(this[_0xc7a7bc(0x146)](_0x295b3f,_0x5ecdb8,_0x159a5f)){const _0x277c62=_0x1e58c5[_0xc7a7bc(0x13c)](_0x24a689=>!_0x159a5f[_0xc7a7bc(0xf5)](_0x24a689));_0x110eee[_0xc7a7bc(0x120)](..._0x277c62);break;}if(!_0x159a5f[_0xc7a7bc(0x174)]())break;}return _0x110eee;}[_0x446c6a(0x110)](_0x4a06b4,_0x414851){const _0x193981=_0x446c6a;_0x4a06b4[_0x193981(0xec)]='',_0x414851[_0x193981(0x164)](_0x2ecab9=>{const _0x556e53=_0x193981;if(_0x2ecab9[_0x556e53(0x12c)]){const _0x1bc6ac=_0x2ecab9[_0x556e53(0x12c)][_0x556e53(0x15f)](!0x0);_0x4a06b4[_0x556e53(0x16e)](_0x1bc6ac);}}),_0x4a06b4[_0x193981(0xe6)];const _0x5d53b6=_0x4a06b4[_0x193981(0xfe)],_0x378cd4=[];return Array[_0x193981(0x129)](_0x5d53b6)[_0x193981(0x164)](_0x30908b=>{const _0x45f9a6=_0x193981,_0x4b918e=_0x30908b[_0x45f9a6(0x160)]()[_0x45f9a6(0x150)];_0x378cd4[_0x45f9a6(0x161)](_0x27c9d4=>Math[_0x45f9a6(0x13a)](_0x27c9d4-_0x4b918e)<this[_0x45f9a6(0x173)][_0x45f9a6(0x165)])||_0x378cd4[_0x45f9a6(0x120)](_0x4b918e);}),{'rowCount':_0x378cd4[_0x193981(0xee)]};}[_0x446c6a(0xe5)](){const _0x668ac2=_0x446c6a,_0x21aa34=document[_0x668ac2(0x11f)](_0x668ac2(0x107));return _0x21aa34[_0x668ac2(0xf1)]=this[_0x668ac2(0x173)][_0x668ac2(0x170)][_0x668ac2(0x14c)],this[_0x668ac2(0x173)][_0x668ac2(0x170)][_0x668ac2(0x118)]&&_0x21aa34[_0x668ac2(0xeb)][_0x668ac2(0x104)](this[_0x668ac2(0x173)][_0x668ac2(0x170)][_0x668ac2(0x118)]),_0x21aa34[_0x668ac2(0x12a)]=_0x668ac2(0x136),_0x21aa34;}[_0x446c6a(0x146)](_0x3551b9,_0x441e70,_0x5ec64c){const _0x259d81=_0x446c6a;this[_0x259d81(0x110)](_0x441e70,_0x5ec64c);const _0x2af57c=this[_0x259d81(0xe5)]();_0x3551b9[_0x259d81(0x16e)](_0x2af57c),_0x3551b9[_0x259d81(0xe6)];const _0x39335a=[..._0x441e70[_0x259d81(0xfe)],_0x2af57c],_0x2a862f=[];_0x39335a[_0x259d81(0x164)](_0x1ab8b9=>{const _0x27129a=_0x259d81,_0x3af929=_0x1ab8b9[_0x27129a(0x160)]()[_0x27129a(0x150)];_0x2a862f[_0x27129a(0x161)](_0x333f75=>Math[_0x27129a(0x13a)](_0x333f75-_0x3af929)<this[_0x27129a(0x173)][_0x27129a(0x165)])||_0x2a862f[_0x27129a(0x120)](_0x3af929);});const _0xf28a48=_0x2a862f[_0x259d81(0xee)];return _0x2af57c[_0x259d81(0xe3)](),_0xf28a48<=this[_0x259d81(0x173)][_0x259d81(0x112)];}[_0x446c6a(0x144)](_0x28c1db,_0x1df9c3){const _0x229f3b=_0x446c6a;this[_0x229f3b(0x16d)][_0x229f3b(0x12b)](),this[_0x229f3b(0x11b)][_0x229f3b(0x12b)](),_0x28c1db[_0x229f3b(0x164)](_0x4815fe=>{const _0x515923=_0x229f3b;_0x1df9c3[_0x515923(0xf5)](_0x4815fe)?this[_0x515923(0x11b)][_0x515923(0x104)](_0x4815fe):this[_0x515923(0x16d)][_0x515923(0x104)](_0x4815fe);});}[_0x446c6a(0x149)](_0x14805f){const _0x3340ed=_0x446c6a;if(_0x14805f>0x0&&!this[_0x3340ed(0x10e)]&&this[_0x3340ed(0x16f)](),_0x14805f>0x0&&this[_0x3340ed(0x10e)]){const _0x30b95d=''+this[_0x3340ed(0x173)][_0x3340ed(0x16b)]+(_0x14805f<0x63?_0x14805f:'99');this[_0x3340ed(0x10e)][_0x3340ed(0xe9)]=_0x30b95d;}this[_0x3340ed(0x12f)](),this[_0x3340ed(0x15c)](),this[_0x3340ed(0xfc)]();}[_0x446c6a(0xf2)](_0x13ca9f,_0x51599d){const _0x3547fb=_0x446c6a;this[_0x3547fb(0x144)](_0x13ca9f,_0x51599d),this[_0x3547fb(0x149)](_0x51599d[_0x3547fb(0xee)]);}[_0x446c6a(0x101)](){const _0x4fb734=_0x446c6a;this[_0x4fb734(0xe2)]&&_0x4fb734(0x11d)!=typeof IntersectionObserver&&(this[_0x4fb734(0x171)]=new IntersectionObserver(_0x1d6f10=>{const _0x402d40=_0x4fb734;_0x1d6f10[0x0][_0x402d40(0x155)]&&this[_0x402d40(0x102)]&&requestAnimationFrame(()=>{const _0x12a35c=_0x402d40;this[_0x12a35c(0x109)]();});},{'threshold':0.01,'rootMargin':_0x4fb734(0x162)}),this[_0x4fb734(0x171)][_0x4fb734(0xe7)](this[_0x4fb734(0xe2)]));}[_0x446c6a(0x163)](){const _0x272586=_0x446c6a;if(!this[_0x272586(0xe2)])return!0x1;if(!this[_0x272586(0xe2)][_0x272586(0xf3)])return!0x1;const _0xf96cbe=this[_0x272586(0xe2)][_0x272586(0x160)]();if(0x0===_0xf96cbe[_0x272586(0x137)]||0x0===_0xf96cbe[_0x272586(0xf6)])return!0x1;const _0x3fe284=window[_0x272586(0xf0)]||document[_0x272586(0x130)][_0x272586(0x14d)],_0x5005e0=window[_0x272586(0x156)]||document[_0x272586(0x130)][_0x272586(0x133)],_0x3e3385=0xc8;return _0xf96cbe[_0x272586(0xfd)]>=-0xc8&&_0xf96cbe[_0x272586(0x150)]<=_0x3fe284+_0x3e3385&&_0xf96cbe[_0x272586(0x103)]>=-0xc8&&_0xf96cbe[_0x272586(0x140)]<=_0x5005e0+_0x3e3385;}}
23
+ const _0x10bbae=_0x600c;function _0x56bf(){const _0x4fe255=['visibility','_parentView','_createShowMoreButtonView','filter','classList','controlsButton','block','_targetContainer','documentElement','showMoreButtonView','_createMockButton','pointerEvents','hidden','abs','parentElement','zIndex','overflowChips','extendTemplate','196087Fypval','_containerElement','textContent','height','isConnected','boxSizing','length','execute','_repinBalloonPanel','offsetWidth','_isContainerVisible','innerWidth','none','push','auto','set','calculationContainer','isOn','element','_calculateContainerWidth','slice','setContainerElement','appendChild','button','includes','disableAnimationOnEnter','clientHeight','body','toLowerCase','opacity','pin','getComputedStyle','cloneNode','_checkAndHandleOverflow','forEach','overflowContainer','_makeAncestorsVisible','position','show','getBoundingClientRect','_showMoreButtonView','_updateOverflowUI','children','div','showMoreButton','793989baPigA','_pendingCalculation','add','_renderChipsAndCountRows','_restoreAncestorVisibility','_calculateOverflowInContainer','clear','16408fZuZwH','_setupVisibilityObserver','15bOXRBV','+\x201','border-box','tagName','_showMoreBalloonPanelView','absolute','_createContainerElements','191100LthDTl','0px','innerHeight','clientWidth','_distributeChips','remove','_ancestorsToRestore','visible','left','style','showMoreLabelPrefix','reorganizeChips','block\x20!important','bottom','isIntersecting','some','_updateShowMoreButtonVisibility','_createShowMoreButton','_intersectionObserver','top','_config','_handleShowMoreButtonClick','300px','showMoreBalloon','isVisible','observe','showBalloonPanel','createElement','cssClasses','disconnect','ck-calculation-container','from','setTemplate','maxVisibleRows','_createShowMoreBalloonPanelView','2015688yfujxe','rowDetectionTolerance','hide','render','innerHTML','.ck-ai-chat','pop','165LwVxqm','display','width','_updateBalloonContent','content','-9999px','_applyOverflowResults','undefined','21910nRfENM','_testButtonFit','destroy','querySelector','_bodyCollection','_findTargetContainer','label','_applyCalculationStyles','right','_overflowChips','hideBalloonPanel','_visibleChips','_locale','351540eIhVYO','_createCalculationContainer','50px','visible\x20!important','className'];_0x56bf=function(){return _0x4fe255;};return _0x56bf();}function _0x600c(_0x20547c,_0x2e62e4){const _0x56bf99=_0x56bf();return _0x600c=function(_0x600c7d,_0x21a528){_0x600c7d=_0x600c7d-0x163;let _0x5716fb=_0x56bf99[_0x600c7d];return _0x5716fb;},_0x600c(_0x20547c,_0x2e62e4);}(function(_0x420902,_0x2bf5d8){const _0x1f6c89=_0x600c,_0x3210d9=_0x420902();while(!![]){try{const _0xaf426=parseInt(_0x1f6c89(0x1d0))/0x1+parseInt(_0x1f6c89(0x1ac))/0x2*(-parseInt(_0x1f6c89(0x173))/0x3)+parseInt(_0x1f6c89(0x171))/0x4*(-parseInt(_0x1f6c89(0x1a4))/0x5)+parseInt(_0x1f6c89(0x1b9))/0x6+-parseInt(_0x1f6c89(0x17a))/0x7+parseInt(_0x1f6c89(0x19d))/0x8+-parseInt(_0x1f6c89(0x16a))/0x9;if(_0xaf426===_0x2bf5d8)break;else _0x3210d9['push'](_0x3210d9['shift']());}catch(_0x1957c5){_0x3210d9['push'](_0x3210d9['shift']());}}}(_0x56bf,0x31110));import{View as _0x5eb93e,BalloonPanelView as _0x3d9d97,ButtonView as _0x149cdf,clickOutsideHandler as _0xba9c1c}from'ckeditor5/src/ui.js';import{Collection as _0x23da21}from'ckeditor5/src/utils.js';const wn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},dn=_0x10bbae(0x190);export class AIChatChipsOverflowManager{[_0x10bbae(0x1b8)];[_0x10bbae(0x18e)];[_0x10bbae(0x1b7)];[_0x10bbae(0x1b5)];[_0x10bbae(0x165)]=null;[_0x10bbae(0x177)]=null;[_0x10bbae(0x1d1)]=null;[_0x10bbae(0x1b0)];[_0x10bbae(0x1bf)]=null;[_0x10bbae(0x18c)]=null;[_0x10bbae(0x16b)]=!0x1;constructor(_0x5405cc,_0x11813c,_0x48dd32,_0x3faed5,_0x11e283){const _0x7aafb6=_0x10bbae;this[_0x7aafb6(0x1b8)]=_0x5405cc,this[_0x7aafb6(0x1b7)]=_0x11813c,this[_0x7aafb6(0x18e)]={...wn,..._0x48dd32,'cssClasses':{'controlsButton':'','calculationContainer':_0x7aafb6(0x198),..._0x48dd32[_0x7aafb6(0x196)]}},this[_0x7aafb6(0x1b5)]=new _0x23da21(),this[_0x7aafb6(0x1b0)]=_0x3faed5,this[_0x7aafb6(0x1bf)]=_0x11e283||null;}[_0x10bbae(0x1e5)](_0x31d404){const _0x409181=_0x10bbae;this[_0x409181(0x18c)]&&(this[_0x409181(0x18c)][_0x409181(0x197)](),this[_0x409181(0x18c)]=null),this[_0x409181(0x1d1)]=_0x31d404,this[_0x409181(0x172)]();}get[_0x10bbae(0x1c7)](){const _0x2d8367=_0x10bbae;return this[_0x2d8367(0x165)];}get[_0x10bbae(0x1ce)](){const _0x4e8971=_0x10bbae;return this[_0x4e8971(0x1b5)];}[_0x10bbae(0x185)](){requestAnimationFrame(()=>{const _0x5797b4=_0x600c;this[_0x5797b4(0x1f1)]();});}[_0x10bbae(0x194)](){const _0x16c641=_0x10bbae;this[_0x16c641(0x165)]&&this[_0x16c641(0x177)]&&(this[_0x16c641(0x1a7)](),this[_0x16c641(0x165)][_0x16c641(0x1e1)]=!0x0,this[_0x16c641(0x177)][_0x16c641(0x163)](),this[_0x16c641(0x177)][_0x16c641(0x1ee)]({'target':this[_0x16c641(0x165)][_0x16c641(0x1e2)],'limiter':document[_0x16c641(0x1af)](_0x16c641(0x1a2))}));}[_0x10bbae(0x1b6)](){const _0x286985=_0x10bbae;this[_0x286985(0x165)]&&this[_0x286985(0x177)]&&(this[_0x286985(0x165)][_0x286985(0x1e1)]=!0x1,this[_0x286985(0x177)][_0x286985(0x19f)]());}[_0x10bbae(0x170)](){const _0x51b07b=_0x10bbae;this[_0x51b07b(0x1b5)][_0x51b07b(0x170)](),this[_0x51b07b(0x1b6)](),this[_0x51b07b(0x18a)](),this[_0x51b07b(0x165)]&&(this[_0x51b07b(0x165)][_0x51b07b(0x1b2)]=''),this[_0x51b07b(0x177)]&&this[_0x51b07b(0x177)][_0x51b07b(0x1a8)][_0x51b07b(0x170)]();}[_0x10bbae(0x1ae)](){const _0x390240=_0x10bbae;this[_0x390240(0x18c)]&&(this[_0x390240(0x18c)][_0x390240(0x197)](),this[_0x390240(0x18c)]=null),this[_0x390240(0x165)]&&(this[_0x390240(0x165)][_0x390240(0x1ae)](),this[_0x390240(0x165)]=null),this[_0x390240(0x177)]&&(this[_0x390240(0x177)][_0x390240(0x1ae)](),this[_0x390240(0x177)]=null);}[_0x10bbae(0x1f1)](){const _0x1102d1=_0x10bbae;if(!this[_0x1102d1(0x1d1)])return;if(!this[_0x1102d1(0x1da)]())return void(this[_0x1102d1(0x16b)]=!0x0);this[_0x1102d1(0x16b)]=!0x1;const _0xe8e985=[...this[_0x1102d1(0x1b7)],...this[_0x1102d1(0x1b5)]],_0x22b017=this[_0x1102d1(0x1ba)](),_0x14e432=this[_0x1102d1(0x16f)](_0x22b017,_0xe8e985),_0x42dafa=_0x22b017[_0x1102d1(0x180)];_0x42dafa&&this[_0x1102d1(0x16e)](_0x42dafa),_0x22b017[_0x1102d1(0x17f)](),this[_0x1102d1(0x1aa)](_0xe8e985,_0x14e432);}[_0x10bbae(0x18b)](){const _0x265b6d=_0x10bbae;this[_0x265b6d(0x165)]=this[_0x265b6d(0x1c0)](),this[_0x265b6d(0x177)]=this[_0x265b6d(0x19c)](),this[_0x265b6d(0x165)][_0x265b6d(0x1a0)](),this[_0x265b6d(0x1d1)][_0x265b6d(0x1e6)](this[_0x265b6d(0x165)][_0x265b6d(0x1e2)]),this[_0x265b6d(0x165)]['on'](_0x265b6d(0x1d7),()=>{const _0x31edad=_0x265b6d;this[_0x31edad(0x18f)]();}),_0xba9c1c({'emitter':this[_0x265b6d(0x177)],'contextElements':[this[_0x265b6d(0x177)][_0x265b6d(0x1e2)],this[_0x265b6d(0x165)][_0x265b6d(0x1e2)]],'callback':()=>this[_0x265b6d(0x1b6)](),'activator':()=>this[_0x265b6d(0x165)][_0x265b6d(0x1e1)]});}[_0x10bbae(0x1c0)](){const _0x717ac2=_0x10bbae,_0x36934f=new _0x149cdf(this[_0x717ac2(0x1b8)]);_0x36934f[_0x717ac2(0x1df)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x5b0763=[this[_0x717ac2(0x18e)][_0x717ac2(0x196)][_0x717ac2(0x169)]];return this[_0x717ac2(0x18e)][_0x717ac2(0x196)][_0x717ac2(0x1c3)]&&_0x5b0763[_0x717ac2(0x1dd)](this[_0x717ac2(0x18e)][_0x717ac2(0x196)][_0x717ac2(0x1c3)]),_0x36934f[_0x717ac2(0x1cf)]({'attributes':{'class':_0x5b0763}}),_0x36934f;}[_0x10bbae(0x19c)](){const _0x53ccea=_0x10bbae,_0x1162e6=new _0x3d9d97(this[_0x53ccea(0x1b8)]);return _0x1162e6[_0x53ccea(0x1cf)]({'attributes':{'class':this[_0x53ccea(0x18e)][_0x53ccea(0x196)][_0x53ccea(0x191)]}}),this[_0x53ccea(0x1b0)][_0x53ccea(0x16c)](_0x1162e6),_0x1162e6;}[_0x10bbae(0x1a7)](){const _0x5c8c32=_0x10bbae;if(this[_0x5c8c32(0x177)]&&(this[_0x5c8c32(0x177)][_0x5c8c32(0x1a8)][_0x5c8c32(0x170)](),this[_0x5c8c32(0x1b5)][_0x5c8c32(0x1d6)]>0x0)){this[_0x5c8c32(0x1b5)][_0x5c8c32(0x1f2)](_0x1c33df=>{const _0x56746c=_0x5c8c32;_0x1c33df[_0x56746c(0x1e9)]();});const _0x816273=new _0x5eb93e(this[_0x5c8c32(0x1b8)]);_0x816273[_0x5c8c32(0x19a)]({'tag':_0x5c8c32(0x168),'attributes':{'class':this[_0x5c8c32(0x18e)][_0x5c8c32(0x196)][_0x5c8c32(0x1f3)]},'children':this[_0x5c8c32(0x1b5)]}),this[_0x5c8c32(0x177)][_0x5c8c32(0x1a8)][_0x5c8c32(0x16c)](_0x816273);}}[_0x10bbae(0x18f)](){const _0x3a529a=_0x10bbae;this[_0x3a529a(0x165)][_0x3a529a(0x1e1)]?this[_0x3a529a(0x1b6)]():this[_0x3a529a(0x194)]();}[_0x10bbae(0x18a)](){const _0x264bce=_0x10bbae,_0x368c1a=this[_0x264bce(0x1b5)][_0x264bce(0x1d6)]>0x0;this[_0x264bce(0x165)]?.[_0x264bce(0x1e2)]&&(this[_0x264bce(0x165)][_0x264bce(0x1e2)][_0x264bce(0x183)][_0x264bce(0x1a5)]=_0x368c1a?'':_0x264bce(0x1dc));}[_0x10bbae(0x1d8)](){const _0x562d77=_0x10bbae;this[_0x562d77(0x165)]?.[_0x562d77(0x1e1)]&&this[_0x562d77(0x177)]?.[_0x562d77(0x192)]&&this[_0x562d77(0x165)][_0x562d77(0x1e2)]&&this[_0x562d77(0x177)][_0x562d77(0x1ee)]({'target':this[_0x562d77(0x165)][_0x562d77(0x1e2)],'limiter':document[_0x562d77(0x1af)](_0x562d77(0x1a2))});}[_0x10bbae(0x1b1)](_0xa750a4){const _0x1f27f=_0x10bbae,_0x2d560e=this[_0x1f27f(0x1d1)]?.[_0x1f27f(0x176)][_0x1f27f(0x1ec)]()||_0x1f27f(0x168),_0x25e279=this[_0x1f27f(0x1d1)]?.[_0x1f27f(0x1c2)];if(_0x25e279){const _0x212176=_0x25e279[0x0]||'',_0x26b9d9=_0xa750a4[_0x1f27f(0x1af)]('.'+_0x212176),_0x4dc591=_0xa750a4[_0x1f27f(0x1af)](_0x2d560e);return _0x26b9d9||_0x4dc591||_0xa750a4;}return _0xa750a4[_0x1f27f(0x1af)](_0x2d560e)||_0xa750a4;}[_0x10bbae(0x1e3)](){const _0x3b673d=_0x10bbae,_0x36645a=this[_0x3b673d(0x1bf)]?.[_0x3b673d(0x1e2)]||this[_0x3b673d(0x1d1)];if(!_0x36645a)return dn;const _0x15c19d=window[_0x3b673d(0x1ef)](_0x36645a)[_0x3b673d(0x1a6)];if(_0x3b673d(0x1de)===_0x15c19d||_0x3b673d(0x17b)===_0x15c19d||!_0x15c19d){const _0x20fd75=_0x36645a[_0x3b673d(0x1cc)];if(_0x20fd75){const _0x48f91c=window[_0x3b673d(0x1ef)](_0x20fd75);return _0x3b673d(0x1de)!==_0x48f91c[_0x3b673d(0x1a6)]?_0x48f91c[_0x3b673d(0x1a6)]:dn;}return dn;}return _0x15c19d;}[_0x10bbae(0x1b3)](_0x1d3a78,_0x3f7012){const _0x19b414=_0x10bbae;this[_0x19b414(0x18e)][_0x19b414(0x196)][_0x19b414(0x1e0)]&&_0x1d3a78[_0x19b414(0x1c2)][_0x19b414(0x16c)](this[_0x19b414(0x18e)][_0x19b414(0x196)][_0x19b414(0x1e0)]),_0x1d3a78[_0x19b414(0x183)][_0x19b414(0x1a6)]=_0x3f7012,_0x1d3a78[_0x19b414(0x183)][_0x19b414(0x1f5)]=_0x19b414(0x178),_0x1d3a78[_0x19b414(0x183)][_0x19b414(0x18d)]=_0x19b414(0x1a9),_0x1d3a78[_0x19b414(0x183)][_0x19b414(0x182)]=_0x19b414(0x1a9),_0x1d3a78[_0x19b414(0x183)][_0x19b414(0x1ed)]='0',_0x1d3a78[_0x19b414(0x183)][_0x19b414(0x1c9)]=_0x19b414(0x1dc),_0x1d3a78[_0x19b414(0x183)][_0x19b414(0x1cd)]='-1',_0x1d3a78[_0x19b414(0x183)][_0x19b414(0x1be)]=_0x19b414(0x1bc),_0x1d3a78[_0x19b414(0x183)][_0x19b414(0x1a5)]=_0x19b414(0x186),_0x1d3a78[_0x19b414(0x183)][_0x19b414(0x1d5)]=_0x19b414(0x175);}[_0x10bbae(0x16e)](_0x494a8c){const _0x55f24c=_0x10bbae;_0x494a8c[_0x55f24c(0x1f2)](({element:_0x477639,originalDisplay:_0x3b9d4b,originalVisibility:_0x240c5c})=>{const _0x106cc6=_0x55f24c;_0x477639[_0x106cc6(0x183)][_0x106cc6(0x1a5)]=_0x3b9d4b,_0x477639[_0x106cc6(0x183)][_0x106cc6(0x1be)]=_0x240c5c;});}[_0x10bbae(0x1f4)](_0x229075){const _0x4e89b3=_0x10bbae,_0x347160=[];let _0xbed267=_0x229075;for(;_0xbed267&&_0xbed267!==document[_0x4e89b3(0x1eb)];){const _0x4c3826=window[_0x4e89b3(0x1ef)](_0xbed267);_0x4e89b3(0x1dc)!==_0x4c3826[_0x4e89b3(0x1a5)]&&_0x4e89b3(0x1ca)!==_0x4c3826[_0x4e89b3(0x1be)]||(_0x347160[_0x4e89b3(0x1dd)]({'element':_0xbed267,'originalDisplay':_0xbed267[_0x4e89b3(0x183)][_0x4e89b3(0x1a5)],'originalVisibility':_0xbed267[_0x4e89b3(0x183)][_0x4e89b3(0x1be)]}),_0xbed267[_0x4e89b3(0x183)][_0x4e89b3(0x1a5)]=_0x4e89b3(0x1c4),_0xbed267[_0x4e89b3(0x183)][_0x4e89b3(0x1be)]=_0x4e89b3(0x181)),_0xbed267=_0xbed267[_0x4e89b3(0x1cc)];}return _0x347160;}[_0x10bbae(0x179)](){const _0x527e7c=_0x10bbae;let _0x21a861,_0x210c11;return this[_0x527e7c(0x1bf)]?.[_0x527e7c(0x1e2)]?(_0x21a861=this[_0x527e7c(0x1bf)][_0x527e7c(0x1e2)][_0x527e7c(0x1f0)](!0x0),_0x210c11=this[_0x527e7c(0x1b1)](_0x21a861)):(_0x21a861=document[_0x527e7c(0x195)](_0x527e7c(0x168)),_0x210c11=_0x21a861),{'calculationContainer':_0x21a861,'targetContainer':_0x210c11};}[_0x10bbae(0x1ba)](){const _0x14c7ad=_0x10bbae,{calculationContainer:_0x2e3e8e,targetContainer:_0x487a64}=this[_0x14c7ad(0x179)](),_0x234a14=this[_0x14c7ad(0x1e3)]();this[_0x14c7ad(0x1b3)](_0x2e3e8e,_0x234a14);const _0x567114=this[_0x14c7ad(0x1bf)]?.[_0x14c7ad(0x1e2)]||this[_0x14c7ad(0x1d1)],_0x19223b=_0x567114?.[_0x14c7ad(0x1cc)];_0x19223b?_0x19223b[_0x14c7ad(0x1e6)](_0x2e3e8e):document[_0x14c7ad(0x1eb)][_0x14c7ad(0x1e6)](_0x2e3e8e),_0x2e3e8e[_0x14c7ad(0x1c5)]=_0x487a64;const _0x54372e=this[_0x14c7ad(0x1f4)](_0x19223b||null);return _0x2e3e8e[_0x14c7ad(0x1d9)],_0x2e3e8e[_0x14c7ad(0x180)]=_0x54372e,_0x2e3e8e;}[_0x10bbae(0x16f)](_0x484335,_0x1a06b8){const _0x4c522f=_0x10bbae,_0x5a4256=_0x484335[_0x4c522f(0x1c5)]||_0x484335,_0xb39cb=[],{rowCount:_0x1905e4}=this[_0x4c522f(0x16d)](_0x5a4256,_0x1a06b8);if(_0x1905e4<=this[_0x4c522f(0x18e)][_0x4c522f(0x19b)])return _0xb39cb;const _0x3f718f=_0x1a06b8[_0x4c522f(0x1e4)]();for(;_0x3f718f[_0x4c522f(0x1d6)]>0x0;){if(this[_0x4c522f(0x1ad)](_0x484335,_0x5a4256,_0x3f718f)){const _0x22fae3=_0x1a06b8[_0x4c522f(0x1c1)](_0x32a47d=>!_0x3f718f[_0x4c522f(0x1e8)](_0x32a47d));_0xb39cb[_0x4c522f(0x1dd)](..._0x22fae3);break;}if(!_0x3f718f[_0x4c522f(0x1a3)]())break;}return _0xb39cb;}[_0x10bbae(0x16d)](_0x1e448d,_0x3b84f5){const _0x10b91a=_0x10bbae;_0x1e448d[_0x10b91a(0x1a1)]='',_0x3b84f5[_0x10b91a(0x1f2)](_0x3f0fbd=>{const _0x7a3130=_0x10b91a;if(_0x3f0fbd[_0x7a3130(0x1e2)]){const _0x1ad51b=_0x3f0fbd[_0x7a3130(0x1e2)][_0x7a3130(0x1f0)](!0x0);_0x1e448d[_0x7a3130(0x1e6)](_0x1ad51b);}}),_0x1e448d[_0x10b91a(0x1d9)];const _0x8d693=_0x1e448d[_0x10b91a(0x167)],_0x2ad2b8=[];return Array[_0x10b91a(0x199)](_0x8d693)[_0x10b91a(0x1f2)](_0x239762=>{const _0x2aa784=_0x10b91a,_0x464bcd=_0x239762[_0x2aa784(0x164)]()[_0x2aa784(0x18d)];_0x2ad2b8[_0x2aa784(0x189)](_0x3df1ae=>Math[_0x2aa784(0x1cb)](_0x3df1ae-_0x464bcd)<this[_0x2aa784(0x18e)][_0x2aa784(0x19e)])||_0x2ad2b8[_0x2aa784(0x1dd)](_0x464bcd);}),{'rowCount':_0x2ad2b8[_0x10b91a(0x1d6)]};}[_0x10bbae(0x1c8)](){const _0x8b3480=_0x10bbae,_0x16a7ab=document[_0x8b3480(0x195)](_0x8b3480(0x1e7));return _0x16a7ab[_0x8b3480(0x1bd)]=this[_0x8b3480(0x18e)][_0x8b3480(0x196)][_0x8b3480(0x169)],this[_0x8b3480(0x18e)][_0x8b3480(0x196)][_0x8b3480(0x1c3)]&&_0x16a7ab[_0x8b3480(0x1c2)][_0x8b3480(0x16c)](this[_0x8b3480(0x18e)][_0x8b3480(0x196)][_0x8b3480(0x1c3)]),_0x16a7ab[_0x8b3480(0x1d2)]=_0x8b3480(0x174),_0x16a7ab;}[_0x10bbae(0x1ad)](_0x1d7c7a,_0x134ee7,_0x15d381){const _0x16e8c=_0x10bbae;this[_0x16e8c(0x16d)](_0x134ee7,_0x15d381);const _0x52c6f9=this[_0x16e8c(0x1c8)]();_0x1d7c7a[_0x16e8c(0x1e6)](_0x52c6f9),_0x1d7c7a[_0x16e8c(0x1d9)];const _0x5839f8=[..._0x134ee7[_0x16e8c(0x167)],_0x52c6f9],_0x28fbd2=[];_0x5839f8[_0x16e8c(0x1f2)](_0x13e596=>{const _0x11b5f7=_0x16e8c,_0x30ac3f=_0x13e596[_0x11b5f7(0x164)]()[_0x11b5f7(0x18d)];_0x28fbd2[_0x11b5f7(0x189)](_0x9a33c8=>Math[_0x11b5f7(0x1cb)](_0x9a33c8-_0x30ac3f)<this[_0x11b5f7(0x18e)][_0x11b5f7(0x19e)])||_0x28fbd2[_0x11b5f7(0x1dd)](_0x30ac3f);});const _0x4b5d92=_0x28fbd2[_0x16e8c(0x1d6)];return _0x52c6f9[_0x16e8c(0x17f)](),_0x4b5d92<=this[_0x16e8c(0x18e)][_0x16e8c(0x19b)];}[_0x10bbae(0x17e)](_0x313ff9,_0x1c66ef){const _0x59c51a=_0x10bbae;this[_0x59c51a(0x1b7)][_0x59c51a(0x170)](),this[_0x59c51a(0x1b5)][_0x59c51a(0x170)](),_0x313ff9[_0x59c51a(0x1f2)](_0x9bb1e0=>{const _0x8f2d5f=_0x59c51a;_0x1c66ef[_0x8f2d5f(0x1e8)](_0x9bb1e0)?this[_0x8f2d5f(0x1b5)][_0x8f2d5f(0x16c)](_0x9bb1e0):this[_0x8f2d5f(0x1b7)][_0x8f2d5f(0x16c)](_0x9bb1e0);});}[_0x10bbae(0x166)](_0x550d8a){const _0x51844a=_0x10bbae;if(_0x550d8a>0x0&&!this[_0x51844a(0x165)]&&this[_0x51844a(0x18b)](),_0x550d8a>0x0&&this[_0x51844a(0x165)]){const _0x4f955a=''+this[_0x51844a(0x18e)][_0x51844a(0x184)]+(_0x550d8a<0x63?_0x550d8a:'99');this[_0x51844a(0x165)][_0x51844a(0x1b2)]=_0x4f955a;}this[_0x51844a(0x1a7)](),this[_0x51844a(0x18a)](),this[_0x51844a(0x1d8)]();}[_0x10bbae(0x1aa)](_0x4470d1,_0x4b9e55){const _0x4c1801=_0x10bbae;this[_0x4c1801(0x17e)](_0x4470d1,_0x4b9e55),this[_0x4c1801(0x166)](_0x4b9e55[_0x4c1801(0x1d6)]);}[_0x10bbae(0x172)](){const _0xa917d5=_0x10bbae;this[_0xa917d5(0x1d1)]&&_0xa917d5(0x1ab)!=typeof IntersectionObserver&&(this[_0xa917d5(0x18c)]=new IntersectionObserver(_0x3c2546=>{const _0x4f4c31=_0xa917d5;_0x3c2546[0x0][_0x4f4c31(0x188)]&&this[_0x4f4c31(0x16b)]&&requestAnimationFrame(()=>{const _0x550670=_0x4f4c31;this[_0x550670(0x1f1)]();});},{'threshold':0.01,'rootMargin':_0xa917d5(0x1bb)}),this[_0xa917d5(0x18c)][_0xa917d5(0x193)](this[_0xa917d5(0x1d1)]));}[_0x10bbae(0x1da)](){const _0x36fbf1=_0x10bbae;if(!this[_0x36fbf1(0x1d1)])return!0x1;if(!this[_0x36fbf1(0x1d1)][_0x36fbf1(0x1d4)])return!0x1;const _0x208095=this[_0x36fbf1(0x1d1)][_0x36fbf1(0x164)]();if(0x0===_0x208095[_0x36fbf1(0x1a6)]||0x0===_0x208095[_0x36fbf1(0x1d3)])return!0x1;const _0x1dae16=window[_0x36fbf1(0x17c)]||document[_0x36fbf1(0x1c6)][_0x36fbf1(0x1ea)],_0x10a545=window[_0x36fbf1(0x1db)]||document[_0x36fbf1(0x1c6)][_0x36fbf1(0x17d)],_0x503fe4=0xc8;return _0x208095[_0x36fbf1(0x187)]>=-0xc8&&_0x208095[_0x36fbf1(0x18d)]<=_0x1dae16+_0x503fe4&&_0x208095[_0x36fbf1(0x1b4)]>=-0xc8&&_0x208095[_0x36fbf1(0x182)]<=_0x10a545+_0x503fe4;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x48b8(){const _0x44994f=['tooltip','1413699GNJFOL','ck-ai-chat-context-chip_document','add','252921pKVOEC','ck-hidden','slice','isLoading','isVisible','_isAnimationOnEnterEnabled','9198808KXJqBu','lastIndexOf','webkitAnimationEnd','5dvAyEK','disableAnimationOnEnter','8sSvKLd','ck-ai-chat-context-chip_wide','addEventListener','document','div','small','render','itemType','_handleAnimationEndOnce','ck-ai-chat-context-chip','17314857QGTGaF','ck-ai-chat-context-chip__label','bindTemplate','length','element','setTemplate','classList','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','label','ck-ai-chat-context-chip__type-icon','2565940QQMzEe','type','uiId','removeEventListener','_createLoaderIcon','_setupRemoveButtonEvent','ck-ai-chat-context-chip_new-chip','removeContextItemChip','execute','2954076bSPtuc','set','selection','_createTemplateAttributes','_createTemplateChildren','3515127AyVHRQ','animationend','extendTemplate','_createRemoveButton','ck-ai-chat-context-controls__chip-tooltip','remove','bind','span','_setupTemplate','_createLabelElement','locale','_createIconView','readonly','_initializeProperties','content','fire'];_0x48b8=function(){return _0x44994f;};return _0x48b8();}const _0x246ae8=_0xc8e8;(function(_0xff3df4,_0x24730e){const _0x3d85fd=_0xc8e8,_0x2945ba=_0xff3df4();while(!![]){try{const _0x3536b2=-parseInt(_0x3d85fd(0x155))/0x1*(-parseInt(_0x3d85fd(0x160))/0x2)+-parseInt(_0x3d85fd(0x152))/0x3+parseInt(_0x3d85fd(0x133))/0x4+parseInt(_0x3d85fd(0x15e))/0x5*(-parseInt(_0x3d85fd(0x13c))/0x6)+-parseInt(_0x3d85fd(0x141))/0x7+-parseInt(_0x3d85fd(0x15b))/0x8+parseInt(_0x3d85fd(0x16a))/0x9;if(_0x3536b2===_0x24730e)break;else _0x2945ba['push'](_0x2945ba['shift']());}catch(_0x416288){_0x2945ba['push'](_0x2945ba['shift']());}}}(_0x48b8,0xeabab));import{ButtonView as _0x5d15f8,IconView as _0x48bde0}from'ckeditor5/src/ui.js';import{IconClose as _0x10fba5,IconDocument as _0x3391f8,IconFileUpload as _0x4ddcfb,IconLink as _0x4aa3c2,IconSelection as _0x234623}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x310f14}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0xc5708}from'../../../aicore/ui/aispinner.js';function _0xc8e8(_0x5a441f,_0x323771){const _0x48b898=_0x48b8();return _0xc8e8=function(_0xc8e878,_0xac5f3d){_0xc8e878=_0xc8e878-0x133;let _0x264cb8=_0x48b898[_0xc8e878];return _0x264cb8;},_0xc8e8(_0x5a441f,_0x323771);}const xn={'file':_0x4ddcfb,'document':_0x3391f8,'web-resource':_0x4aa3c2,'text':_0x4ddcfb,'selection':_0x234623,'mcp-tool-context':_0x3391f8},bn=_0x246ae8(0x169),wn=_0x246ae8(0x161),Tn=_0x246ae8(0x153),En=_0x246ae8(0x16b),fn=_0x246ae8(0x173),An=_0x246ae8(0x145),Cn='n';export class AIChatContextItemButtonView extends _0x5d15f8{constructor(_0xf3b1df,_0x1a5005,_0x2cd7fe,_0x504f46,_0x436363=!0x1){const _0xbb8668=_0x246ae8;super(_0xf3b1df),this[_0xbb8668(0x15a)]=_0x504f46,this[_0xbb8668(0x14e)](_0x1a5005,_0x2cd7fe,_0x436363),this[_0xbb8668(0x149)]();}[_0x246ae8(0x166)](){const _0x3b15d1=_0x246ae8;super[_0x3b15d1(0x166)](),this[_0x3b15d1(0x15a)]&&this[_0x3b15d1(0x16e)]&&(this[_0x3b15d1(0x16e)][_0x3b15d1(0x170)][_0x3b15d1(0x154)](_0x3b15d1(0x139)),this[_0x3b15d1(0x168)](this[_0x3b15d1(0x16e)],()=>{const _0x2fda4c=_0x3b15d1;this[_0x2fda4c(0x16e)]&&this[_0x2fda4c(0x16e)][_0x2fda4c(0x170)][_0x2fda4c(0x146)](_0x2fda4c(0x139));}));}[_0x246ae8(0x15f)](){const _0x103b3a=_0x246ae8;this[_0x103b3a(0x15a)]=!0x1,this[_0x103b3a(0x16e)]&&this[_0x103b3a(0x16e)][_0x103b3a(0x170)][_0x103b3a(0x146)](_0x103b3a(0x139));}[_0x246ae8(0x14e)](_0x5c9f1b,_0x4c3063,_0x59adba){const _0x5acf60=_0x246ae8;this[_0x5acf60(0x13d)](_0x5acf60(0x172),_0x5c9f1b[_0x5acf60(0x172)]),this[_0x5acf60(0x13d)](_0x5acf60(0x151),!0x0),this[_0x5acf60(0x13d)](_0x5acf60(0x167),_0x5c9f1b[_0x5acf60(0x134)]),this[_0x5acf60(0x13d)]('id',_0x5c9f1b[_0x5acf60(0x135)]),this[_0x5acf60(0x13d)](_0x5acf60(0x14d),_0x4c3063),this[_0x5acf60(0x13d)](_0x5acf60(0x158),_0x59adba);}[_0x246ae8(0x149)](){const _0x4fc880=_0x246ae8,_0x658425=this[_0x4fc880(0x14c)](),_0x538941=this[_0x4fc880(0x144)](),_0x566c46=this[_0x4fc880(0x16c)];this[_0x4fc880(0x16f)]({'tag':_0x4fc880(0x164),'attributes':this[_0x4fc880(0x13f)](_0x566c46),'children':this[_0x4fc880(0x140)](_0x658425,_0x538941,_0x566c46)});}[_0x246ae8(0x13f)](_0x4001ad){const _0x3fe6f0=_0x246ae8;return{'class':[bn,_0x4001ad['if'](_0x3fe6f0(0x167),Tn,_0x4d34d1=>_0x3fe6f0(0x163)==_0x4d34d1),_0x4001ad['if'](_0x3fe6f0(0x167),wn,_0xa9548e=>_0x3fe6f0(0x13e)==_0xa9548e)],'data-cke-tooltip-text':_0x4001ad['to'](_0x3fe6f0(0x172),In),'data-cke-tooltip-position':Cn,'data-cke-tooltip-class':An};}[_0x246ae8(0x140)](_0x334c41,_0x1df9ff,_0x23ca25){const _0x581102=_0x246ae8,_0x39f564=this[_0x581102(0x14a)](_0x23ca25),_0x44205e=this[_0x581102(0x137)]();return this[_0x581102(0x14d)]?[_0x334c41,_0x39f564]:[_0x334c41,_0x44205e,_0x39f564,_0x1df9ff];}[_0x246ae8(0x14a)](_0x203675){const _0x20b5fc=_0x246ae8;return{'tag':_0x20b5fc(0x148),'attributes':{'class':En},'children':[{'text':_0x203675['to'](_0x20b5fc(0x172))}]};}[_0x246ae8(0x144)](){const _0x4a8348=_0x246ae8,_0x1e7ed6=new _0x5d15f8(this[_0x4a8348(0x14b)]);return _0x1e7ed6[_0x4a8348(0x13d)]({'label':_0x310f14(this[_0x4a8348(0x14b)],_0x4a8348(0x171)),'icon':_0x10fba5}),this[_0x4a8348(0x138)](_0x1e7ed6),_0x1e7ed6;}[_0x246ae8(0x138)](_0x247900){const _0xfa9fef=_0x246ae8;_0x247900['on'](_0xfa9fef(0x13b),()=>{const _0x16d65a=_0xfa9fef;this[_0x16d65a(0x150)](_0x16d65a(0x13a),this['id']);});}[_0x246ae8(0x14c)](){const _0x28202a=_0x246ae8,_0x42b671=this[_0x28202a(0x16c)],_0x1db265=new _0x48bde0();return _0x1db265[_0x28202a(0x14f)]=xn[this[_0x28202a(0x167)]],_0x1db265[_0x28202a(0x143)]({'attributes':{'class':[fn,_0x42b671['if'](_0x28202a(0x158),_0x28202a(0x156),_0x324ec1=>_0x324ec1)]}}),_0x1db265;}[_0x246ae8(0x168)](_0x5c6deb,_0x4a75fe){const _0x4f9315=_0x246ae8;if(!_0x5c6deb)return;const _0x421ebd=()=>{const _0x31b3c0=_0xc8e8;_0x4a75fe(),_0x5c6deb[_0x31b3c0(0x136)](_0x31b3c0(0x142),_0x421ebd),_0x5c6deb[_0x31b3c0(0x136)](_0x31b3c0(0x15d),_0x421ebd);};_0x5c6deb[_0x4f9315(0x162)](_0x4f9315(0x142),_0x421ebd),_0x5c6deb[_0x4f9315(0x162)](_0x4f9315(0x15d),_0x421ebd);}[_0x246ae8(0x137)](){const _0x1537bb=_0x246ae8,_0x7bdd0f=new _0xc5708(_0x1537bb(0x165));return _0x7bdd0f[_0x1537bb(0x147)](_0x1537bb(0x159))['to'](this,_0x1537bb(0x158),_0x224c31=>_0x224c31),_0x7bdd0f;}}function In(_0xd5b2cf){const _0x2a4194=_0x246ae8;if(!_0xd5b2cf)return _0xd5b2cf;if(_0xd5b2cf[_0x2a4194(0x16d)]<=0x78)return _0xd5b2cf;const _0x227ab0=_0xd5b2cf[_0x2a4194(0x157)](0x0,0x78),_0x3f812a=_0x227ab0[_0x2a4194(0x15c)]('\x20');return(_0x3f812a>0x0?_0x227ab0[_0x2a4194(0x157)](0x0,_0x3f812a):_0x227ab0)+'…';}
23
+ const _0xa98424=_0x293b;(function(_0x5f095a,_0x681c13){const _0x5efd0c=_0x293b,_0x207910=_0x5f095a();while(!![]){try{const _0x4f6895=parseInt(_0x5efd0c(0x90))/0x1*(parseInt(_0x5efd0c(0x8a))/0x2)+-parseInt(_0x5efd0c(0xb4))/0x3*(parseInt(_0x5efd0c(0x9f))/0x4)+parseInt(_0x5efd0c(0x9e))/0x5*(parseInt(_0x5efd0c(0xa4))/0x6)+-parseInt(_0x5efd0c(0xb0))/0x7*(-parseInt(_0x5efd0c(0xb7))/0x8)+-parseInt(_0x5efd0c(0x95))/0x9*(-parseInt(_0x5efd0c(0xc1))/0xa)+parseInt(_0x5efd0c(0xc5))/0xb+-parseInt(_0x5efd0c(0xb5))/0xc*(parseInt(_0x5efd0c(0x9c))/0xd);if(_0x4f6895===_0x681c13)break;else _0x207910['push'](_0x207910['shift']());}catch(_0x33ed77){_0x207910['push'](_0x207910['shift']());}}}(_0x1674,0x32fc5));import{ButtonView as _0x143dc5,IconView as _0x449dbc}from'ckeditor5/src/ui.js';function _0x293b(_0x5cf89d,_0x5ed660){const _0x1674c1=_0x1674();return _0x293b=function(_0x293be1,_0x36298a){_0x293be1=_0x293be1-0x87;let _0x2801b4=_0x1674c1[_0x293be1];return _0x2801b4;},_0x293b(_0x5cf89d,_0x5ed660);}import{IconClose as _0x4cf738,IconDocument as _0x27995d,IconFileUpload as _0x1b36ff,IconLink as _0x27c662,IconSelection as _0x1b517a}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0xaee610}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x5cb50b}from'../../../aicore/ui/aispinner.js';function _0x1674(){const _0x18cad1=['remove','locale','extendTemplate','2456847FFLBVz','disableAnimationOnEnter','_createLabelElement','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','itemType','removeEventListener','render','4342ZvzTYM','content','10febtvt','4AOmqrE','document','_initializeProperties','_setupRemoveButtonEvent','type','56472rAQpBM','ck-ai-chat-context-chip_wide','add','length','_createLoaderIcon','ck-ai-chat-context-chip_new-chip','uiId','animationend','ck-ai-chat-context-chip_document','isVisible','_createIconView','classList','2645405ZELsjj','tooltip','setTemplate','bind','471585vcDnap','25332IgkgDg','webkitAnimationEnd','8TjtgCo','selection','isLoading','slice','label','ck-ai-chat-context-controls__chip-tooltip','fire','_createTemplateChildren','ck-ai-chat-context-chip','_handleAnimationEndOnce','10jUTRCC','_setupTemplate','execute','_createRemoveButton','4298305jYVNPt','ck-hidden','small','bindTemplate','ck-ai-chat-context-chip__label','span','addEventListener','_createTemplateAttributes','_isAnimationOnEnterEnabled','removeContextItemChip','2RmypFx','set','ck-ai-chat-context-chip__type-icon','element','lastIndexOf','div','10629YCFabz','readonly'];_0x1674=function(){return _0x18cad1;};return _0x1674();}const bn={'file':_0x1b36ff,'document':_0x27995d,'web-resource':_0x27c662,'text':_0x1b36ff,'selection':_0x1b517a,'mcp-tool-context':_0x27995d},Tn=_0xa98424(0xbf),En=_0xa98424(0xa5),fn=_0xa98424(0xac),An=_0xa98424(0xc9),Cn=_0xa98424(0x8c),In=_0xa98424(0xbc),On='n';export class AIChatContextItemButtonView extends _0x143dc5{constructor(_0x441fa5,_0x18de0e,_0x859d8c,_0xb471,_0x489de3=!0x1){const _0x19fa86=_0xa98424;super(_0x441fa5),this[_0x19fa86(0x88)]=_0xb471,this[_0x19fa86(0xa1)](_0x18de0e,_0x859d8c,_0x489de3),this[_0x19fa86(0xc2)]();}[_0xa98424(0x9b)](){const _0x4db2b2=_0xa98424;super[_0x4db2b2(0x9b)](),this[_0x4db2b2(0x88)]&&this[_0x4db2b2(0x8d)]&&(this[_0x4db2b2(0x8d)][_0x4db2b2(0xaf)][_0x4db2b2(0xa6)](_0x4db2b2(0xa9)),this[_0x4db2b2(0xc0)](this[_0x4db2b2(0x8d)],()=>{const _0x5ea23f=_0x4db2b2;this[_0x5ea23f(0x8d)]&&this[_0x5ea23f(0x8d)][_0x5ea23f(0xaf)][_0x5ea23f(0x92)](_0x5ea23f(0xa9));}));}[_0xa98424(0x96)](){const _0x40739d=_0xa98424;this[_0x40739d(0x88)]=!0x1,this[_0x40739d(0x8d)]&&this[_0x40739d(0x8d)][_0x40739d(0xaf)][_0x40739d(0x92)](_0x40739d(0xa9));}[_0xa98424(0xa1)](_0x113f42,_0x283d15,_0x336b68){const _0x23470c=_0xa98424;this[_0x23470c(0x8b)](_0x23470c(0xbb),_0x113f42[_0x23470c(0xbb)]),this[_0x23470c(0x8b)](_0x23470c(0xb1),!0x0),this[_0x23470c(0x8b)](_0x23470c(0x99),_0x113f42[_0x23470c(0xa3)]),this[_0x23470c(0x8b)]('id',_0x113f42[_0x23470c(0xaa)]),this[_0x23470c(0x8b)](_0x23470c(0x91),_0x283d15),this[_0x23470c(0x8b)](_0x23470c(0xb9),_0x336b68);}[_0xa98424(0xc2)](){const _0x22516f=_0xa98424,_0x218905=this[_0x22516f(0xae)](),_0x50f45e=this[_0x22516f(0xc4)](),_0x15457e=this[_0x22516f(0xc8)];this[_0x22516f(0xb2)]({'tag':_0x22516f(0x8f),'attributes':this[_0x22516f(0x87)](_0x15457e),'children':this[_0x22516f(0xbe)](_0x218905,_0x50f45e,_0x15457e)});}[_0xa98424(0x87)](_0xfbaf1b){const _0x13d53e=_0xa98424;return{'class':[Tn,_0xfbaf1b['if'](_0x13d53e(0x99),fn,_0x463624=>_0x13d53e(0xa0)==_0x463624),_0xfbaf1b['if'](_0x13d53e(0x99),En,_0x39326d=>_0x13d53e(0xb8)==_0x39326d)],'data-cke-tooltip-text':_0xfbaf1b['to'](_0x13d53e(0xbb),gn),'data-cke-tooltip-position':On,'data-cke-tooltip-class':In};}[_0xa98424(0xbe)](_0x247138,_0x13890b,_0x430ef2){const _0xfa1c07=_0xa98424,_0x482f50=this[_0xfa1c07(0x97)](_0x430ef2),_0x5e873e=this[_0xfa1c07(0xa8)]();return this[_0xfa1c07(0x91)]?[_0x247138,_0x482f50]:[_0x247138,_0x5e873e,_0x482f50,_0x13890b];}[_0xa98424(0x97)](_0x1b1c57){const _0x251322=_0xa98424;return{'tag':_0x251322(0xca),'attributes':{'class':An},'children':[{'text':_0x1b1c57['to'](_0x251322(0xbb))}]};}[_0xa98424(0xc4)](){const _0x335b3a=_0xa98424,_0x238b2b=new _0x143dc5(this[_0x335b3a(0x93)]);return _0x238b2b[_0x335b3a(0x8b)]({'label':_0xaee610(this[_0x335b3a(0x93)],_0x335b3a(0x98)),'icon':_0x4cf738}),this[_0x335b3a(0xa2)](_0x238b2b),_0x238b2b;}[_0xa98424(0xa2)](_0x13b6ff){const _0x5c6eb2=_0xa98424;_0x13b6ff['on'](_0x5c6eb2(0xc3),()=>{const _0x364739=_0x5c6eb2;this[_0x364739(0xbd)](_0x364739(0x89),this['id']);});}[_0xa98424(0xae)](){const _0x3d8851=_0xa98424,_0xafff65=this[_0x3d8851(0xc8)],_0x515392=new _0x449dbc();return _0x515392[_0x3d8851(0x9d)]=bn[this[_0x3d8851(0x99)]],_0x515392[_0x3d8851(0x94)]({'attributes':{'class':[Cn,_0xafff65['if'](_0x3d8851(0xb9),_0x3d8851(0xc6),_0x23e3f3=>_0x23e3f3)]}}),_0x515392;}[_0xa98424(0xc0)](_0x425a59,_0x40fe3b){const _0x78b009=_0xa98424;if(!_0x425a59)return;const _0x45cbf3=()=>{const _0x3b3a43=_0x293b;_0x40fe3b(),_0x425a59[_0x3b3a43(0x9a)](_0x3b3a43(0xab),_0x45cbf3),_0x425a59[_0x3b3a43(0x9a)](_0x3b3a43(0xb6),_0x45cbf3);};_0x425a59[_0x78b009(0xcb)](_0x78b009(0xab),_0x45cbf3),_0x425a59[_0x78b009(0xcb)](_0x78b009(0xb6),_0x45cbf3);}[_0xa98424(0xa8)](){const _0x541730=_0xa98424,_0x3cd9f1=new _0x5cb50b(_0x541730(0xc7));return _0x3cd9f1[_0x541730(0xb3)](_0x541730(0xad))['to'](this,_0x541730(0xb9),_0x28121b=>_0x28121b),_0x3cd9f1;}}function gn(_0x471957){const _0x2cf5a9=_0xa98424;if(!_0x471957)return _0x471957;if(_0x471957[_0x2cf5a9(0xa7)]<=0x78)return _0x471957;const _0x142882=_0x471957[_0x2cf5a9(0xba)](0x0,0x78),_0x11dd32=_0x142882[_0x2cf5a9(0x8e)]('\x20');return(_0x11dd32>0x0?_0x142882[_0x2cf5a9(0xba)](0x0,_0x11dd32):_0x142882)+'…';}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x137ff1=_0x3d3c;(function(_0x45f841,_0x4c94fa){const _0x544b39=_0x3d3c,_0x1fc82c=_0x45f841();while(!![]){try{const _0x5842bd=parseInt(_0x544b39(0x12f))/0x1+-parseInt(_0x544b39(0x16a))/0x2+-parseInt(_0x544b39(0x14a))/0x3*(-parseInt(_0x544b39(0x14d))/0x4)+-parseInt(_0x544b39(0x142))/0x5*(parseInt(_0x544b39(0x138))/0x6)+parseInt(_0x544b39(0x168))/0x7+parseInt(_0x544b39(0x132))/0x8+parseInt(_0x544b39(0x124))/0x9*(-parseInt(_0x544b39(0x12a))/0xa);if(_0x5842bd===_0x4c94fa)break;else _0x1fc82c['push'](_0x1fc82c['shift']());}catch(_0x545869){_0x1fc82c['push'](_0x1fc82c['shift']());}}}(_0x4495,0x34fd2));import{FocusTracker as _0x123e03,KeystrokeHandler as _0x264255}from'ckeditor5/src/utils.js';function _0x4495(){const _0x1bdd9e=['_createUrlInputField','910dgLwMt','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','\x20ck-hidden','focusTracker','destroy','230443bqVDGe','tab','ck-button-icon\x20ck-button-back','1515664mDWyme','submit','setTemplate','_focusables','fieldView','_isValidUrl','5388DkXsmM','AI_CHAT_CONTEXT_URL_PLACEHOLDER','_setupKeystrokes','ck-labeled-field-view_empty','trim','cancel','fire','element','change:withBackButton','_setupTemplate','1135IktxZr','refreshBalloon','errorText','esc','createCollection','_setupEventHandlers','listenTo','children','3vuYQxJ','_handleSubmit','confirmButton','1674208mAqJNt','getValue','isEnabled','render','withBackButton','locale','clearError','AI_CHAT_CONTEXT_URL_ADD_URL','set','div','stop','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','focus','submitUrl','form','AI_CHAT_CONTEXT_URL_INVALID_ERROR','forEach','ck-ai-chat-context-controls__url-form','setError','execute','length','urlInputField','add','focusCycler','input','shift+tab','ck-ai-chat-context-controls__url-input-section','578130XgChgy','_createConfirmButton','746784FdUBOh','_updateConfirmButtonState','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','AI_CHAT_CONTEXT_URL_LABEL','clear','keystrokes','12537UQIVYv','_createBackButton','value','ck-button-icon','backButton'];_0x4495=function(){return _0x1bdd9e;};return _0x4495();}import{ButtonView as _0x51d4d5,FocusCycler as _0x13774b,LabeledFieldView as _0x59f4ff,View as _0x3d72e2,FormHeaderView as _0x5a7446,createLabeledInputText as _0x352c94,submitHandler as _0x57887e}from'ckeditor5/src/ui.js';import{IconCheck as _0x38d41b,IconPreviousArrow as _0x58f7fe}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x110877}from'../../../aicore/utils/common-translations.js';const oh=_0x137ff1(0x15e),ch=_0x137ff1(0x167);function _0x3d3c(_0x3e7643,_0x4e1ebb){const _0x44955f=_0x4495();return _0x3d3c=function(_0x3d3c67,_0x50ca81){_0x3d3c67=_0x3d3c67-0x121;let _0x31cac6=_0x44955f[_0x3d3c67];return _0x31cac6;},_0x3d3c(_0x3e7643,_0x4e1ebb);}export class AIChatContextPanelUrlInputView extends _0x3d72e2{[_0x137ff1(0x12d)];[_0x137ff1(0x123)];[_0x137ff1(0x135)];[_0x137ff1(0x164)];[_0x137ff1(0x162)];[_0x137ff1(0x128)];[_0x137ff1(0x14c)];constructor(_0x44b369){const _0x5d30c4=_0x137ff1;super(_0x44b369),this[_0x5d30c4(0x12d)]=new _0x123e03(),this[_0x5d30c4(0x123)]=new _0x264255(),this[_0x5d30c4(0x128)]=this[_0x5d30c4(0x125)](),this[_0x5d30c4(0x162)]=this[_0x5d30c4(0x129)](),this[_0x5d30c4(0x14c)]=this[_0x5d30c4(0x169)](),this[_0x5d30c4(0x135)]=this[_0x5d30c4(0x146)]([this[_0x5d30c4(0x128)],this[_0x5d30c4(0x162)],this[_0x5d30c4(0x14c)]]),this[_0x5d30c4(0x164)]=new _0x13774b({'focusables':this[_0x5d30c4(0x135)],'focusTracker':this[_0x5d30c4(0x12d)],'keystrokeHandler':this[_0x5d30c4(0x123)],'actions':{'focusPrevious':_0x5d30c4(0x166),'focusNext':_0x5d30c4(0x130)}}),this[_0x5d30c4(0x155)](_0x5d30c4(0x151),!0x0),this[_0x5d30c4(0x141)](),this[_0x5d30c4(0x147)](),this[_0x5d30c4(0x13a)]();}[_0x137ff1(0x150)](){const _0x192df5=_0x137ff1;super[_0x192df5(0x150)](),this[_0x192df5(0x135)][_0x192df5(0x15d)](_0x257888=>{const _0x240fbd=_0x192df5;this[_0x240fbd(0x12d)][_0x240fbd(0x163)](_0x257888[_0x240fbd(0x13f)]),this[_0x240fbd(0x123)][_0x240fbd(0x148)](_0x257888[_0x240fbd(0x13f)]);}),_0x57887e({'view':this}),this[_0x192df5(0x159)]();}[_0x137ff1(0x12e)](){const _0x18355a=_0x137ff1;super[_0x18355a(0x12e)](),this[_0x18355a(0x12d)][_0x18355a(0x12e)](),this[_0x18355a(0x123)][_0x18355a(0x12e)]();}[_0x137ff1(0x159)](){const _0x44de84=_0x137ff1;this[_0x44de84(0x162)][_0x44de84(0x159)]();}[_0x137ff1(0x14e)](){const _0x1193cd=_0x137ff1;return this[_0x1193cd(0x162)][_0x1193cd(0x136)][_0x1193cd(0x13f)]?.[_0x1193cd(0x126)]?.[_0x1193cd(0x13c)]()||'';}[_0x137ff1(0x122)](){const _0x5cc96e=_0x137ff1;this[_0x5cc96e(0x162)][_0x5cc96e(0x136)][_0x5cc96e(0x13f)][_0x5cc96e(0x126)]='',this[_0x5cc96e(0x162)][_0x5cc96e(0x144)]=null,this[_0x5cc96e(0x14c)][_0x5cc96e(0x14f)]=!0x1;}[_0x137ff1(0x15f)](_0x1cacca){const _0x39d0ad=_0x137ff1;this[_0x39d0ad(0x162)][_0x39d0ad(0x144)]=_0x1cacca,this[_0x39d0ad(0x16b)](),this[_0x39d0ad(0x13e)](_0x39d0ad(0x143));}[_0x137ff1(0x153)](){const _0x1d8a52=_0x137ff1;this[_0x1d8a52(0x162)][_0x1d8a52(0x144)]=null,this[_0x1d8a52(0x16b)]();}[_0x137ff1(0x125)](){const _0x5b94a0=_0x137ff1,_0x4cf597=new _0x51d4d5(this[_0x5b94a0(0x152)]);return _0x4cf597[_0x5b94a0(0x155)]({'icon':_0x58f7fe,'tooltip':_0x110877(this[_0x5b94a0(0x152)],_0x5b94a0(0x12b)),'tooltipPosition':'n','class':[_0x5b94a0(0x131)]}),this['on'](_0x5b94a0(0x140),(_0x306d26,_0x1a0545,_0x1a2ef4)=>{const _0x287811=_0x5b94a0;_0x4cf597[_0x287811(0x155)]({'class':[_0x287811(0x131)+(_0x1a2ef4?'':_0x287811(0x12c))]});}),_0x4cf597;}[_0x137ff1(0x129)](){const _0x47f28d=_0x137ff1,_0x5bae1e=new _0x59f4ff(this[_0x47f28d(0x152)],_0x352c94);return _0x5bae1e[_0x47f28d(0x155)]({'label':_0x110877(this[_0x47f28d(0x152)],_0x47f28d(0x121)),'class':_0x47f28d(0x13b)}),_0x5bae1e[_0x47f28d(0x136)][_0x47f28d(0x155)]({'placeholder':_0x110877(this[_0x47f28d(0x152)],_0x47f28d(0x139))}),_0x5bae1e;}[_0x137ff1(0x169)](){const _0x1c5c59=_0x137ff1,_0x344d37=new _0x51d4d5(this[_0x1c5c59(0x152)]);return _0x344d37[_0x1c5c59(0x155)]({'icon':_0x38d41b,'tooltip':_0x110877(this[_0x1c5c59(0x152)],_0x1c5c59(0x154)),'tooltipPosition':'n','class':_0x1c5c59(0x127),'type':_0x1c5c59(0x133),'isEnabled':!0x1}),_0x344d37;}[_0x137ff1(0x141)](){const _0x3dc9a3=_0x137ff1,_0x1e0543=new _0x5a7446(this[_0x3dc9a3(0x152)],{'label':_0x110877(this[_0x3dc9a3(0x152)],_0x3dc9a3(0x154)),'class':_0x3dc9a3(0x16c)});_0x1e0543[_0x3dc9a3(0x149)][_0x3dc9a3(0x163)](this[_0x3dc9a3(0x128)],0x0),this[_0x3dc9a3(0x134)]({'tag':_0x3dc9a3(0x15b),'attributes':{'class':oh,'tabindex':'-1'},'children':[_0x1e0543,{'tag':_0x3dc9a3(0x156),'attributes':{'class':ch},'children':[this[_0x3dc9a3(0x162)],this[_0x3dc9a3(0x14c)]]}]});}[_0x137ff1(0x147)](){const _0x4e0c5b=_0x137ff1;this[_0x4e0c5b(0x128)]['on'](_0x4e0c5b(0x160),()=>{const _0x21ea13=_0x4e0c5b;this[_0x21ea13(0x122)](),this[_0x21ea13(0x13e)](_0x21ea13(0x13d));}),this[_0x4e0c5b(0x162)][_0x4e0c5b(0x136)]['on'](_0x4e0c5b(0x165),()=>{const _0x227fd5=_0x4e0c5b;this[_0x227fd5(0x153)](),this[_0x227fd5(0x16b)](),this[_0x227fd5(0x13e)](_0x227fd5(0x143));}),this['on'](_0x4e0c5b(0x133),_0x4ae85b=>{const _0x2aec4e=_0x4e0c5b;_0x4ae85b[_0x2aec4e(0x157)](),this[_0x2aec4e(0x14b)]();});}[_0x137ff1(0x13a)](){const _0x42b387=_0x137ff1;this[_0x42b387(0x123)][_0x42b387(0x155)](_0x42b387(0x145),(_0x2df2c8,_0x293e24)=>{const _0x20437d=_0x42b387;this[_0x20437d(0x122)](),this[_0x20437d(0x13e)](_0x20437d(0x13d)),_0x293e24();});}[_0x137ff1(0x14b)](){const _0x5969dd=_0x137ff1,_0x24851b=this[_0x5969dd(0x14e)]()[_0x5969dd(0x13c)]();_0x24851b?this[_0x5969dd(0x137)](_0x24851b)?(this[_0x5969dd(0x153)](),this[_0x5969dd(0x13e)](_0x5969dd(0x15a),_0x24851b)):this[_0x5969dd(0x15f)](_0x110877(this[_0x5969dd(0x152)],_0x5969dd(0x15c))):this[_0x5969dd(0x15f)](_0x110877(this[_0x5969dd(0x152)],_0x5969dd(0x158)));}[_0x137ff1(0x16b)](){const _0x308aeb=_0x137ff1,_0x51ae5a=this[_0x308aeb(0x14e)]()[_0x308aeb(0x13c)](),_0x2e910d=!!this[_0x308aeb(0x162)][_0x308aeb(0x144)];this[_0x308aeb(0x14c)][_0x308aeb(0x14f)]=_0x51ae5a[_0x308aeb(0x161)]>0x0&&!_0x2e910d;}[_0x137ff1(0x137)](_0x48fc3c){try{return!!new URL(_0x48fc3c);}catch{return!0x1;}}}
23
+ function _0x44eb(_0x5508b0,_0x2211e4){const _0x45e056=_0x45e0();return _0x44eb=function(_0x44eb4a,_0x43c244){_0x44eb4a=_0x44eb4a-0xdc;let _0x33f830=_0x45e056[_0x44eb4a];return _0x33f830;},_0x44eb(_0x5508b0,_0x2211e4);}const _0x229222=_0x44eb;(function(_0x3fb244,_0x345383){const _0x4736f9=_0x44eb,_0x398880=_0x3fb244();while(!![]){try{const _0x545006=parseInt(_0x4736f9(0x119))/0x1*(parseInt(_0x4736f9(0xeb))/0x2)+-parseInt(_0x4736f9(0xfa))/0x3*(-parseInt(_0x4736f9(0xe1))/0x4)+-parseInt(_0x4736f9(0xfb))/0x5+parseInt(_0x4736f9(0xfd))/0x6+-parseInt(_0x4736f9(0xdc))/0x7+-parseInt(_0x4736f9(0xfe))/0x8*(-parseInt(_0x4736f9(0x120))/0x9)+parseInt(_0x4736f9(0x10d))/0xa*(parseInt(_0x4736f9(0x112))/0xb);if(_0x545006===_0x345383)break;else _0x398880['push'](_0x398880['shift']());}catch(_0x3b9ea5){_0x398880['push'](_0x398880['shift']());}}}(_0x45e0,0x581fc));import{FocusTracker as _0x12eea0,KeystrokeHandler as _0xde480f}from'ckeditor5/src/utils.js';import{ButtonView as _0x206ade,FocusCycler as _0x21f1a7,LabeledFieldView as _0x3d6bbb,View as _0x48835c,FormHeaderView as _0x1bf61c,createLabeledInputText as _0x56e67c,submitHandler as _0x36eb50}from'ckeditor5/src/ui.js';import{IconCheck as _0x20ee1c,IconPreviousArrow as _0x266d40}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x3a0b9c}from'../../../aicore/utils/common-translations.js';function _0x45e0(){const _0x217656=['ck-ai-chat-context-controls__url-form','div','_createBackButton','set','_setupKeystrokes','_setupEventHandlers','10DKBHpU','AI_CHAT_CONTEXT_URL_PLACEHOLDER','locale','keystrokes','_createConfirmButton','focusCycler','render','59346sSGXfT','ck-button-icon\x20ck-button-back','element','submitUrl','AI_CHAT_CONTEXT_URL_LABEL','fire','ck-button-icon','trim','listenTo','3335451QfJtqn','stop','getValue','confirmButton','_createUrlInputField','203956QUfORs','isEnabled','cancel','urlInputField','_updateConfirmButtonState','clear','focusTracker','add','setError','children','33620lSxNog','ck-ai-chat-context-controls__url-input-section','setTemplate','focus','withBackButton','ck-labeled-field-view_empty','errorText','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','shift+tab','change:withBackButton','tab','esc','_setupTemplate','refreshBalloon','destroy','30HJMONZ','1619505wFyCHK','input','31194VQORDV','312pqHVfr','createCollection','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','clearError','length','\x20ck-hidden','execute','value','_isValidUrl','forEach','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','_handleSubmit','AI_CHAT_CONTEXT_URL_ADD_URL','backButton','AI_CHAT_CONTEXT_URL_INVALID_ERROR','150JomnGj','submit','_focusables','fieldView','form','162063ANnSbT'];_0x45e0=function(){return _0x217656;};return _0x45e0();}const ch=_0x229222(0x113),rh=_0x229222(0xec);export class AIChatContextPanelUrlInputView extends _0x48835c{[_0x229222(0xe7)];[_0x229222(0x11c)];[_0x229222(0x10f)];[_0x229222(0x11e)];[_0x229222(0xe4)];[_0x229222(0x10b)];[_0x229222(0xdf)];constructor(_0x342dca){const _0x5e8f31=_0x229222;super(_0x342dca),this[_0x5e8f31(0xe7)]=new _0x12eea0(),this[_0x5e8f31(0x11c)]=new _0xde480f(),this[_0x5e8f31(0x10b)]=this[_0x5e8f31(0x115)](),this[_0x5e8f31(0xe4)]=this[_0x5e8f31(0xe0)](),this[_0x5e8f31(0xdf)]=this[_0x5e8f31(0x11d)](),this[_0x5e8f31(0x10f)]=this[_0x5e8f31(0xff)]([this[_0x5e8f31(0x10b)],this[_0x5e8f31(0xe4)],this[_0x5e8f31(0xdf)]]),this[_0x5e8f31(0x11e)]=new _0x21f1a7({'focusables':this[_0x5e8f31(0x10f)],'focusTracker':this[_0x5e8f31(0xe7)],'keystrokeHandler':this[_0x5e8f31(0x11c)],'actions':{'focusPrevious':_0x5e8f31(0xf3),'focusNext':_0x5e8f31(0xf5)}}),this[_0x5e8f31(0x116)](_0x5e8f31(0xef),!0x0),this[_0x5e8f31(0xf7)](),this[_0x5e8f31(0x118)](),this[_0x5e8f31(0x117)]();}[_0x229222(0x11f)](){const _0x36ef40=_0x229222;super[_0x36ef40(0x11f)](),this[_0x36ef40(0x10f)][_0x36ef40(0x107)](_0x421a14=>{const _0x3baad2=_0x36ef40;this[_0x3baad2(0xe7)][_0x3baad2(0xe8)](_0x421a14[_0x3baad2(0x122)]),this[_0x3baad2(0x11c)][_0x3baad2(0x128)](_0x421a14[_0x3baad2(0x122)]);}),_0x36eb50({'view':this}),this[_0x36ef40(0xee)]();}[_0x229222(0xf9)](){const _0x1a19a3=_0x229222;super[_0x1a19a3(0xf9)](),this[_0x1a19a3(0xe7)][_0x1a19a3(0xf9)](),this[_0x1a19a3(0x11c)][_0x1a19a3(0xf9)]();}[_0x229222(0xee)](){const _0x9e41f4=_0x229222;this[_0x9e41f4(0xe4)][_0x9e41f4(0xee)]();}[_0x229222(0xde)](){const _0x4deaf8=_0x229222;return this[_0x4deaf8(0xe4)][_0x4deaf8(0x110)][_0x4deaf8(0x122)]?.[_0x4deaf8(0x105)]?.[_0x4deaf8(0x127)]()||'';}[_0x229222(0xe6)](){const _0x5d269d=_0x229222;this[_0x5d269d(0xe4)][_0x5d269d(0x110)][_0x5d269d(0x122)][_0x5d269d(0x105)]='',this[_0x5d269d(0xe4)][_0x5d269d(0xf1)]=null,this[_0x5d269d(0xdf)][_0x5d269d(0xe2)]=!0x1;}[_0x229222(0xe9)](_0x4e5f80){const _0x1a309e=_0x229222;this[_0x1a309e(0xe4)][_0x1a309e(0xf1)]=_0x4e5f80,this[_0x1a309e(0xe5)](),this[_0x1a309e(0x125)](_0x1a309e(0xf8));}[_0x229222(0x101)](){const _0x1d6188=_0x229222;this[_0x1d6188(0xe4)][_0x1d6188(0xf1)]=null,this[_0x1d6188(0xe5)]();}[_0x229222(0x115)](){const _0x489472=_0x229222,_0x56ee3a=new _0x206ade(this[_0x489472(0x11b)]);return _0x56ee3a[_0x489472(0x116)]({'icon':_0x266d40,'tooltip':_0x3a0b9c(this[_0x489472(0x11b)],_0x489472(0x100)),'tooltipPosition':'n','class':[_0x489472(0x121)]}),this['on'](_0x489472(0xf4),(_0x5ac11a,_0x3b6ce7,_0x3049a6)=>{const _0x51ceee=_0x489472;_0x56ee3a[_0x51ceee(0x116)]({'class':[_0x51ceee(0x121)+(_0x3049a6?'':_0x51ceee(0x103))]});}),_0x56ee3a;}[_0x229222(0xe0)](){const _0x48dce4=_0x229222,_0x2110f2=new _0x3d6bbb(this[_0x48dce4(0x11b)],_0x56e67c);return _0x2110f2[_0x48dce4(0x116)]({'label':_0x3a0b9c(this[_0x48dce4(0x11b)],_0x48dce4(0x124)),'class':_0x48dce4(0xf0)}),_0x2110f2[_0x48dce4(0x110)][_0x48dce4(0x116)]({'placeholder':_0x3a0b9c(this[_0x48dce4(0x11b)],_0x48dce4(0x11a))}),_0x2110f2;}[_0x229222(0x11d)](){const _0xc81a26=_0x229222,_0x309546=new _0x206ade(this[_0xc81a26(0x11b)]);return _0x309546[_0xc81a26(0x116)]({'icon':_0x20ee1c,'tooltip':_0x3a0b9c(this[_0xc81a26(0x11b)],_0xc81a26(0x10a)),'tooltipPosition':'n','class':_0xc81a26(0x126),'type':_0xc81a26(0x10e),'isEnabled':!0x1}),_0x309546;}[_0x229222(0xf7)](){const _0x1a9c9c=_0x229222,_0x26e943=new _0x1bf61c(this[_0x1a9c9c(0x11b)],{'label':_0x3a0b9c(this[_0x1a9c9c(0x11b)],_0x1a9c9c(0x10a)),'class':_0x1a9c9c(0x108)});_0x26e943[_0x1a9c9c(0xea)][_0x1a9c9c(0xe8)](this[_0x1a9c9c(0x10b)],0x0),this[_0x1a9c9c(0xed)]({'tag':_0x1a9c9c(0x111),'attributes':{'class':ch,'tabindex':'-1'},'children':[_0x26e943,{'tag':_0x1a9c9c(0x114),'attributes':{'class':rh},'children':[this[_0x1a9c9c(0xe4)],this[_0x1a9c9c(0xdf)]]}]});}[_0x229222(0x118)](){const _0x16a4f3=_0x229222;this[_0x16a4f3(0x10b)]['on'](_0x16a4f3(0x104),()=>{const _0xaab98a=_0x16a4f3;this[_0xaab98a(0xe6)](),this[_0xaab98a(0x125)](_0xaab98a(0xe3));}),this[_0x16a4f3(0xe4)][_0x16a4f3(0x110)]['on'](_0x16a4f3(0xfc),()=>{const _0x2dc86d=_0x16a4f3;this[_0x2dc86d(0x101)](),this[_0x2dc86d(0xe5)](),this[_0x2dc86d(0x125)](_0x2dc86d(0xf8));}),this['on'](_0x16a4f3(0x10e),_0x272593=>{const _0x225310=_0x16a4f3;_0x272593[_0x225310(0xdd)](),this[_0x225310(0x109)]();});}[_0x229222(0x117)](){const _0x190a67=_0x229222;this[_0x190a67(0x11c)][_0x190a67(0x116)](_0x190a67(0xf6),(_0x246df9,_0x2167e2)=>{const _0x1cc50a=_0x190a67;this[_0x1cc50a(0xe6)](),this[_0x1cc50a(0x125)](_0x1cc50a(0xe3)),_0x2167e2();});}[_0x229222(0x109)](){const _0x333e73=_0x229222,_0x3310be=this[_0x333e73(0xde)]()[_0x333e73(0x127)]();_0x3310be?this[_0x333e73(0x106)](_0x3310be)?(this[_0x333e73(0x101)](),this[_0x333e73(0x125)](_0x333e73(0x123),_0x3310be)):this[_0x333e73(0xe9)](_0x3a0b9c(this[_0x333e73(0x11b)],_0x333e73(0x10c))):this[_0x333e73(0xe9)](_0x3a0b9c(this[_0x333e73(0x11b)],_0x333e73(0xf2)));}[_0x229222(0xe5)](){const _0x2c639e=_0x229222,_0x144d23=this[_0x2c639e(0xde)]()[_0x2c639e(0x127)](),_0x54d9fa=!!this[_0x2c639e(0xe4)][_0x2c639e(0xf1)];this[_0x2c639e(0xdf)][_0x2c639e(0xe2)]=_0x144d23[_0x2c639e(0x102)]>0x0&&!_0x54d9fa;}[_0x229222(0x106)](_0x6913e5){try{return!!new URL(_0x6913e5);}catch{return!0x1;}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5b4f25=_0x3dfa;(function(_0x3b6ad0,_0x445af0){const _0x3675f5=_0x3dfa,_0x428eda=_0x3b6ad0();while(!![]){try{const _0xe2ce4d=parseInt(_0x3675f5(0x20a))/0x1+-parseInt(_0x3675f5(0x234))/0x2+-parseInt(_0x3675f5(0x1aa))/0x3*(-parseInt(_0x3675f5(0x1a6))/0x4)+-parseInt(_0x3675f5(0x1d7))/0x5+-parseInt(_0x3675f5(0x1af))/0x6*(-parseInt(_0x3675f5(0x214))/0x7)+-parseInt(_0x3675f5(0x1e1))/0x8*(-parseInt(_0x3675f5(0x1e4))/0x9)+parseInt(_0x3675f5(0x210))/0xa*(parseInt(_0x3675f5(0x1cb))/0xb);if(_0xe2ce4d===_0x445af0)break;else _0x428eda['push'](_0x428eda['shift']());}catch(_0x3a3988){_0x428eda['push'](_0x428eda['shift']());}}}(_0x468b,0x85609));function _0x3dfa(_0x14259e,_0x43b242){const _0x468b7e=_0x468b();return _0x3dfa=function(_0x3dfa34,_0x217776){_0x3dfa34=_0x3dfa34-0x1a4;let _0x389715=_0x468b7e[_0x3dfa34];return _0x389715;},_0x3dfa(_0x14259e,_0x43b242);}import{BalloonPanelView as _0x46c417,ButtonView as _0x24bcd4,clickOutsideHandler as _0x119ef5,FileDialogButtonView as _0x2ae85c,IconView as _0x41efa0,View as _0x885a4c}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x77def6,IconDocument as _0x1fda8f,IconDocumentOutline as _0x3ea621,IconDropdownArrow as _0x288f94,IconLink as _0x5ab1de,IconPaperClip as _0x19c750}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x3b7bda}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x1432e0}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x15c100}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x5ccf7c}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x61e016}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x5b4f25(0x1cf),_0x5b4f25(0x1b3),_0x5b4f25(0x1e8),_0x5b4f25(0x1cc),_0x5b4f25(0x23a),_0x5b4f25(0x1bd),_0x5b4f25(0x1fe)];const Uo=_0x5b4f25(0x238),Lo=_0x5b4f25(0x1ff),No=_0x5b4f25(0x1dd),Mo=_0x5b4f25(0x1f6),Ho=_0x5b4f25(0x1a8),jo=_0x5b4f25(0x1d8),Fo=_0x5b4f25(0x1db),Xo=_0x5b4f25(0x1e9),yo=_0x5b4f25(0x22f),Do=_0x5b4f25(0x1ea),$o=_0x5b4f25(0x1d9),Wo=_0x5b4f25(0x220),qo=[_0x46c417[_0x5b4f25(0x1c3)][_0x5b4f25(0x1b2)],_0x46c417[_0x5b4f25(0x1c3)][_0x5b4f25(0x202)],_0x46c417[_0x5b4f25(0x1c3)][_0x5b4f25(0x1d6)],_0x46c417[_0x5b4f25(0x1c3)][_0x5b4f25(0x236)],_0x46c417[_0x5b4f25(0x1c3)][_0x5b4f25(0x1f0)],_0x46c417[_0x5b4f25(0x1c3)][_0x5b4f25(0x22a)]];export class AIChatContextPanelView extends _0x885a4c{[_0x5b4f25(0x213)];[_0x5b4f25(0x223)]=this[_0x5b4f25(0x217)]();[_0x5b4f25(0x1fb)]=this[_0x5b4f25(0x217)]();[_0x5b4f25(0x22b)];[_0x5b4f25(0x1b4)];[_0x5b4f25(0x1ad)];[_0x5b4f25(0x208)];[_0x5b4f25(0x1ba)];[_0x5b4f25(0x1a7)];[_0x5b4f25(0x1a4)]=!0x1;[_0x5b4f25(0x1d2)];constructor(_0x203dab,_0x4ad9db){const _0x2bd3b1=_0x5b4f25;super(_0x203dab),this[_0x2bd3b1(0x1d2)]=_0x4ad9db[_0x2bd3b1(0x1d2)],this[_0x2bd3b1(0x223)]=this[_0x2bd3b1(0x217)](),this[_0x2bd3b1(0x1fb)]=this[_0x2bd3b1(0x217)](),this[_0x2bd3b1(0x213)]=this[_0x2bd3b1(0x1e5)](_0x203dab),this[_0x2bd3b1(0x1b4)]=this[_0x2bd3b1(0x1c6)](_0x203dab),this[_0x2bd3b1(0x1ad)]=this[_0x2bd3b1(0x1b0)](_0x203dab),this[_0x2bd3b1(0x1ba)]=this[_0x2bd3b1(0x1eb)](_0x203dab,_0x4ad9db);const _0xde91e9={'cssClasses':{'showMoreButton':Do,'showMoreBalloon':$o,'overflowContainer':yo,'controlsButton':Xo}};this[_0x2bd3b1(0x22b)]=new _0x15c100(_0x203dab,this[_0x2bd3b1(0x223)],_0xde91e9,this[_0x2bd3b1(0x1d2)],this),this[_0x2bd3b1(0x1a7)]={'buttonView':this[_0x2bd3b1(0x213)],'balloonView':this[_0x2bd3b1(0x1b4)],'hideMethod':this[_0x2bd3b1(0x1e6)][_0x2bd3b1(0x1ec)](this),'showMethod':this[_0x2bd3b1(0x215)][_0x2bd3b1(0x1ec)](this)},this[_0x2bd3b1(0x209)](),this[_0x2bd3b1(0x1bc)]();}[_0x5b4f25(0x230)](){const _0x2f5d3a=_0x5b4f25;super[_0x2f5d3a(0x230)](),this[_0x2f5d3a(0x21e)](),this[_0x2f5d3a(0x22b)][_0x2f5d3a(0x1c9)](this[_0x2f5d3a(0x211)]),this[_0x2f5d3a(0x22b)][_0x2f5d3a(0x1dc)]();}[_0x5b4f25(0x23b)](){const _0x52eba8=_0x5b4f25;super[_0x52eba8(0x23b)](),this[_0x52eba8(0x22b)][_0x52eba8(0x23b)](),this[_0x52eba8(0x1ba)][_0x52eba8(0x23b)]();}[_0x5b4f25(0x21a)](_0x1abd12,_0x4eeac9){const _0x4c25c0=_0x5b4f25,_0x5a1501=this[_0x4c25c0(0x1e2)](_0x1abd12,_0x4c25c0(0x1b7),!0x0,_0x4eeac9);this[_0x4c25c0(0x1cd)](_0x5a1501,this[_0x4c25c0(0x223)]),this[_0x4c25c0(0x22b)][_0x4c25c0(0x1dc)]();}[_0x5b4f25(0x23a)](_0x82ff55){const _0x5c5c01=_0x5b4f25;this[_0x5c5c01(0x20f)](_0x82ff55,this[_0x5c5c01(0x223)]),this[_0x5c5c01(0x20f)](_0x82ff55,this[_0x5c5c01(0x22b)][_0x5c5c01(0x224)]),this[_0x5c5c01(0x22b)][_0x5c5c01(0x1dc)]();}[_0x5b4f25(0x1f5)](_0x54db78,_0x129082){const _0x491ae8=_0x5b4f25;let _0x4b941b=this[_0x491ae8(0x223)][_0x491ae8(0x1f1)](_0x226552=>_0x226552['id']===_0x54db78);_0x4b941b||(_0x4b941b=this[_0x491ae8(0x22b)][_0x491ae8(0x224)][_0x491ae8(0x1f1)](_0x76a689=>_0x76a689['id']===_0x54db78)),_0x4b941b&&(_0x4b941b[_0x491ae8(0x22e)]=_0x129082);}[_0x5b4f25(0x1e7)](_0x3ff8c2){const _0x27365e=_0x5b4f25;this[_0x27365e(0x1fb)][_0x27365e(0x1d5)]();for(const _0x54efed of _0x3ff8c2){const _0x559a51=this[_0x27365e(0x1e2)](_0x54efed,_0x27365e(0x206),!0x1,!0x1);this[_0x27365e(0x1cd)](_0x559a51,this[_0x27365e(0x1fb)]);}}[_0x5b4f25(0x20b)](){const _0x5964c4=_0x5b4f25;this[_0x5964c4(0x223)][_0x5964c4(0x1d5)](),this[_0x5964c4(0x22b)][_0x5964c4(0x1d5)]();}[_0x5b4f25(0x1fd)](){const _0x22057a=_0x5b4f25;this[_0x22057a(0x1fb)][_0x22057a(0x1d5)]();}[_0x5b4f25(0x1d0)](_0x4eeb1a,_0x1b52be,_0x71034f){const _0x240e0d=_0x5b4f25;this[_0x240e0d(0x1ba)][_0x240e0d(0x1d0)](_0x4eeb1a,_0x1b52be,_0x71034f);}[_0x5b4f25(0x1e6)](){const _0x305ebf=_0x5b4f25;this[_0x305ebf(0x1f3)](!0x1);}[_0x5b4f25(0x215)](){const _0x78a3fa=_0x5b4f25;this[_0x78a3fa(0x1f3)](!0x0);}[_0x5b4f25(0x20e)](){const _0x4dcaf8=_0x5b4f25;this[_0x4dcaf8(0x1ad)][_0x4dcaf8(0x205)](),this[_0x4dcaf8(0x213)][_0x4dcaf8(0x1e0)]=!0x1,this[_0x4dcaf8(0x208)]&&this[_0x4dcaf8(0x208)][_0x4dcaf8(0x1d5)]();}[_0x5b4f25(0x1df)](){const _0x54cc6e=_0x5b4f25;this[_0x54cc6e(0x1ad)][_0x54cc6e(0x1be)](),this[_0x54cc6e(0x213)][_0x54cc6e(0x1e0)]=!0x0;}[_0x5b4f25(0x227)]({source:_0x29e86e,withBackButton:_0xbd068a}){const _0xa113c3=_0x5b4f25;this[_0xa113c3(0x1ba)][_0xa113c3(0x20d)]({'source':_0x29e86e,'withBackButton':_0xbd068a}),this[_0xa113c3(0x213)][_0xa113c3(0x1e0)]=!0x0;}[_0x5b4f25(0x1bb)](_0x6a513e,_0xe5e51e,_0xab957,_0x1d923b){const _0x29399b=_0x5b4f25;this[_0x29399b(0x1ba)][_0x29399b(0x1bb)](_0x6a513e,_0xab957,_0x1d923b);}[_0x5b4f25(0x207)](_0xfa124b){const _0x282e1b=_0x5b4f25;this[_0x282e1b(0x1ba)][_0x282e1b(0x207)](_0xfa124b),this[_0x282e1b(0x213)][_0x282e1b(0x1e0)]=!0x1;}[_0x5b4f25(0x1ce)](_0x3ce046){const _0x36a9d7=_0x5b4f25;this[_0x36a9d7(0x232)](this[_0x36a9d7(0x1b4)],this[_0x36a9d7(0x1b9)],_0x3ce046),this[_0x36a9d7(0x219)](_0x3ce046);}[_0x5b4f25(0x219)](_0x4f82c0){const _0x4a6e93=_0x5b4f25,_0x43e6b7=!_0x4f82c0[_0x4a6e93(0x1de)][_0x4a6e93(0x1f9)]&&_0x4f82c0[_0x4a6e93(0x1de)][_0x4a6e93(0x1a5)],_0x1ea271=_0x4f82c0[_0x4a6e93(0x1f7)][_0x4a6e93(0x1a5)],_0x4d88b6=_0x4f82c0[_0x4a6e93(0x1ef)][_0x4a6e93(0x1a5)],_0x319d82=_0x4f82c0[_0x4a6e93(0x216)][_0x4a6e93(0x1ee)]>0x0,_0x135644=_0x4f82c0[_0x4a6e93(0x233)]&&_0x4f82c0[_0x4a6e93(0x233)][_0x4a6e93(0x1ee)]>0x0;this[_0x4a6e93(0x213)][_0x4a6e93(0x1b8)]=_0x43e6b7||_0x1ea271||_0x4d88b6||_0x319d82||_0x135644;}[_0x5b4f25(0x209)](){const _0x3c390d=_0x5b4f25;this[_0x3c390d(0x203)]({'tag':_0x3c390d(0x229),'attributes':{'class':[Uo,_0x3c390d(0x1a9)]},'children':[{'tag':_0x3c390d(0x229),'attributes':{'class':Lo},'children':this[_0x3c390d(0x223)]}]});}[_0x5b4f25(0x1bc)](){const _0xa9a72c=_0x5b4f25;this[_0xa9a72c(0x213)]['on'](_0xa9a72c(0x1c5),()=>{const _0x33502c=_0xa9a72c;this[_0x33502c(0x226)]();});}[_0x5b4f25(0x1e5)](_0x24160f){const _0x257a3a=_0x5b4f25,_0x31d895=new _0x24bcd4(_0x24160f);return _0x31d895[_0x257a3a(0x1ed)]({'label':_0x5ccf7c(_0x24160f,_0x257a3a(0x231)),'class':Xo+'\x20'+Mo,'icon':_0x19c750,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x31d895;}[_0x5b4f25(0x1c6)](_0x136f62){const _0xb7ab15=_0x5b4f25;return this[_0xb7ab15(0x204)](_0x136f62,No);}[_0x5b4f25(0x1b0)](_0x35a57c){const _0x55c024=_0x5b4f25,_0x10d8c3=this[_0x55c024(0x204)](_0x35a57c,Ho);return this[_0x55c024(0x200)](_0x10d8c3,_0x35a57c),_0x10d8c3;}[_0x5b4f25(0x1eb)](_0x563356,_0x1ba404){const _0x43d6f9=_0x5b4f25,_0x425562={'searchInputVisibleFrom':_0x1ba404[_0x43d6f9(0x21b)],'onBackToContext':()=>{const _0x212d4a=_0x43d6f9;this[_0x212d4a(0x215)](),this[_0x212d4a(0x1b4)][_0x212d4a(0x239)]({'target':this[_0x212d4a(0x213)][_0x212d4a(0x211)],'limiter':this[_0x212d4a(0x1c2)](),'positions':qo});},'onResourceSelected':(_0x12cd07,_0x2f199b)=>{const _0x8c6fc7=_0x43d6f9;this[_0x8c6fc7(0x201)](_0x8c6fc7(0x1cc),{'source':_0x12cd07,'resource':_0x2f199b});},'onLoadSourceResources':_0x1f299c=>{const _0x124c00=_0x43d6f9;this[_0x124c00(0x201)](_0x124c00(0x1bd),_0x1f299c);},'onBalloonClosed':()=>{const _0x66b223=_0x43d6f9;this[_0x66b223(0x213)][_0x66b223(0x1e0)]=!0x1;},'getLimiterElement':()=>this[_0x43d6f9(0x1c2)](),'getTargetElement':()=>this[_0x43d6f9(0x213)][_0x43d6f9(0x211)]};return new _0x61e016(_0x563356,_0x1ba404[_0x43d6f9(0x1d2)],_0x425562);}[_0x5b4f25(0x1c2)](){const _0x48d2ee=_0x5b4f25;return this[_0x48d2ee(0x211)]?.[_0x48d2ee(0x1d3)]('.'+Wo)||document[_0x48d2ee(0x1f8)];}[_0x5b4f25(0x204)](_0x42c093,_0x1e864f){const _0x16dc18=_0x5b4f25,_0x4d6269=new _0x46c417(_0x42c093);return _0x4d6269[_0x16dc18(0x1b1)]({'attributes':{'class':_0x1e864f}}),this[_0x16dc18(0x1d2)][_0x16dc18(0x218)](_0x4d6269),_0x4d6269;}[_0x5b4f25(0x232)](_0x33269b,_0x160f8b,_0x5222ed){const _0x2a20de=_0x5b4f25;if(_0x33269b[_0x2a20de(0x21d)][_0x2a20de(0x1d5)](),!_0x5222ed[_0x2a20de(0x1de)][_0x2a20de(0x1f9)]&&_0x5222ed[_0x2a20de(0x1de)][_0x2a20de(0x1a5)]){const _0x22177f=this[_0x2a20de(0x1b6)](_0x160f8b,{'label':_0x5ccf7c(_0x160f8b,_0x2a20de(0x22d)),'icon':_0x1fda8f});_0x22177f['on'](_0x2a20de(0x1c5),()=>{const _0x91dca7=_0x2a20de;this[_0x91dca7(0x201)](_0x91dca7(0x1cf)),this[_0x91dca7(0x1e6)]();}),_0x33269b[_0x2a20de(0x21d)][_0x2a20de(0x218)](_0x22177f);}if(_0x5222ed[_0x2a20de(0x1f7)][_0x2a20de(0x1a5)]){const _0x4c462c=this[_0x2a20de(0x1b6)](_0x160f8b,{'label':_0x5ccf7c(_0x160f8b,_0x2a20de(0x222)),'icon':_0x5ab1de});_0x4c462c['on'](_0x2a20de(0x1c5),()=>{const _0x56787d=_0x2a20de;this[_0x56787d(0x1e6)](),this[_0x56787d(0x1df)](),this[_0x56787d(0x1ad)][_0x56787d(0x239)]({'target':this[_0x56787d(0x213)][_0x56787d(0x211)],'limiter':this[_0x56787d(0x1c2)](),'positions':qo}),this[_0x56787d(0x208)][_0x56787d(0x21c)]();}),_0x33269b[_0x2a20de(0x21d)][_0x2a20de(0x218)](_0x4c462c);}if(_0x5222ed[_0x2a20de(0x1ef)][_0x2a20de(0x1a5)]){const _0x216879=new _0x2ae85c(_0x160f8b);_0x216879[_0x2a20de(0x1ed)]({'label':_0x5ccf7c(_0x160f8b,_0x2a20de(0x228)),'icon':_0x77def6,'withText':!0x0,'tooltip':!0x0,'class':jo,'allowMultipleFiles':!0x0}),_0x216879['on'](_0x2a20de(0x1c5),()=>{const _0x120d42=_0x2a20de;this[_0x120d42(0x1e6)]();}),_0x216879['on'](_0x2a20de(0x225),(_0x28c717,_0x146a7d)=>{const _0x48da16=_0x2a20de;this[_0x48da16(0x201)](_0x48da16(0x1b3),_0x146a7d);}),_0x216879[_0x2a20de(0x1c1)]=!0x0,_0x33269b[_0x2a20de(0x21d)][_0x2a20de(0x218)](_0x216879);}for(const _0x59273c of _0x5222ed[_0x2a20de(0x216)]){const _0x49de6b=this[_0x2a20de(0x1b6)](_0x160f8b,{'label':_0x59273c[_0x2a20de(0x1c4)],'icon':_0x59273c[_0x2a20de(0x1c8)]||_0x3ea621,'type':_0x2a20de(0x212)});_0x33269b[_0x2a20de(0x21d)][_0x2a20de(0x218)](_0x49de6b),_0x49de6b['on'](_0x2a20de(0x1c5),()=>{const _0x215834=_0x2a20de;this[_0x215834(0x1e6)](),this[_0x215834(0x227)]({'source':_0x59273c,'withBackButton':!this[_0x215834(0x1a4)]});});}for(const _0xc4990f of _0x5222ed[_0x2a20de(0x233)]||[]){const _0x49da85=this[_0x2a20de(0x1b6)](_0x160f8b,{'label':_0xc4990f[_0x2a20de(0x1c4)],'icon':_0xc4990f[_0x2a20de(0x1c8)]||_0x3ea621,'type':_0x2a20de(0x1e3)});_0x33269b[_0x2a20de(0x21d)][_0x2a20de(0x218)](_0x49da85),_0x49da85['on'](_0x2a20de(0x1c5),()=>{const _0x3d751d=_0x2a20de;this[_0x3d751d(0x1e6)](),this[_0x3d751d(0x201)](_0x3d751d(0x1fe),_0xc4990f);});}this[_0x2a20de(0x1a4)]=0x1===_0x33269b[_0x2a20de(0x21d)][_0x2a20de(0x1ee)],this[_0x2a20de(0x208)][_0x2a20de(0x1ac)]=!this[_0x2a20de(0x1a4)];}[_0x5b4f25(0x200)](_0x3a4327,_0xcef65a){const _0x3a0609=_0x5b4f25;this[_0x3a0609(0x208)]=new _0x1432e0(_0xcef65a),this[_0x3a0609(0x208)]['on'](_0x3a0609(0x1b5),(_0x1840c1,_0x4170c1)=>{const _0x20a60f=_0x3a0609;this[_0x20a60f(0x1d4)](_0x4170c1);}),this[_0x3a0609(0x208)]['on'](_0x3a0609(0x235),()=>{const _0x5e9be2=_0x3a0609;this[_0x5e9be2(0x20e)](),this[_0x5e9be2(0x1a4)]||(this[_0x5e9be2(0x215)](),this[_0x5e9be2(0x1b4)][_0x5e9be2(0x239)]({'target':this[_0x5e9be2(0x213)][_0x5e9be2(0x211)],'limiter':this[_0x5e9be2(0x1c2)](),'positions':qo}));}),this[_0x3a0609(0x208)]['on'](_0x3a0609(0x1ca),()=>{const _0x25d991=_0x3a0609;this[_0x25d991(0x1ad)][_0x25d991(0x1ae)]&&this[_0x25d991(0x1ad)][_0x25d991(0x239)]({'target':this[_0x25d991(0x213)][_0x25d991(0x211)],'limiter':this[_0x25d991(0x1c2)](),'positions':qo});}),_0x3a4327[_0x3a0609(0x21d)][_0x3a0609(0x218)](this[_0x3a0609(0x208)]);}[_0x5b4f25(0x1b6)](_0x1624cb,_0x524c15){const _0x17b1af=_0x5b4f25,_0xb0a252=_0x17b1af(0x212)===_0x524c15[_0x17b1af(0x237)]?new SourcesBalloonButtonView(_0x1624cb):new _0x24bcd4(_0x1624cb);return _0xb0a252[_0x17b1af(0x1ed)]({'label':_0x524c15[_0x17b1af(0x1c4)],'icon':_0x524c15[_0x17b1af(0x1c8)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':jo}),_0xb0a252;}[_0x5b4f25(0x21e)](){const _0x45860d=_0x5b4f25;this[_0x45860d(0x1c7)](),this[_0x45860d(0x20c)]();}[_0x5b4f25(0x20c)](){const _0x11bf35=_0x5b4f25;_0x119ef5({'emitter':this[_0x11bf35(0x1ad)],'contextElements':[this[_0x11bf35(0x1ad)][_0x11bf35(0x211)]],'callback':()=>{const _0x53e648=_0x11bf35;this[_0x53e648(0x20e)]();},'activator':()=>this[_0x11bf35(0x1ad)][_0x11bf35(0x1ae)]});}[_0x5b4f25(0x1f3)](_0x232f55){const _0x68ed14=_0x5b4f25,_0x38fdc5=this[_0x68ed14(0x1a7)];_0x38fdc5[_0x68ed14(0x1ab)][_0x68ed14(0x1e0)]=_0x232f55,_0x232f55?_0x38fdc5[_0x68ed14(0x1da)][_0x68ed14(0x1be)]():_0x38fdc5[_0x68ed14(0x1da)][_0x68ed14(0x205)]();}[_0x5b4f25(0x1c7)](){const _0x2118e7=_0x5b4f25,{balloonView:_0x1b871e,buttonView:_0x22e585,hideMethod:_0x5a3c7f}=this[_0x2118e7(0x1a7)];_0x119ef5({'emitter':_0x1b871e,'contextElements':[_0x1b871e[_0x2118e7(0x211)],_0x22e585[_0x2118e7(0x211)]],'callback':()=>{_0x5a3c7f();},'activator':()=>_0x22e585[_0x2118e7(0x1e0)]&&!this[_0x2118e7(0x1ad)][_0x2118e7(0x1ae)]&&!this[_0x2118e7(0x1ba)][_0x2118e7(0x1d1)]()});}[_0x5b4f25(0x1e2)](_0x46cd73,_0x5666ee,_0x26c380=!0x1,_0x4a9789=!0x1){const _0x22b22f=_0x5b4f25,_0x3631a3=_0x22b22f(0x206)===_0x5666ee||!0x0===_0x46cd73[_0x22b22f(0x1bf)],_0x3df6bb=new _0x3b7bda(this[_0x22b22f(0x1b9)],_0x46cd73,_0x3631a3,_0x26c380,_0x4a9789);return _0x3631a3||_0x3df6bb['on'](_0x22b22f(0x1c0),()=>{const _0x2af1ff=_0x22b22f;this[_0x2af1ff(0x201)](_0x2af1ff(0x23a),_0x3df6bb['id']);}),_0x3df6bb;}[_0x5b4f25(0x1cd)](_0x2bbed6,_0x2ec74b){const _0xf76f2f=_0x5b4f25;_0x2ec74b[_0xf76f2f(0x218)](_0x2bbed6,0x0);}[_0x5b4f25(0x20f)](_0x212136,_0x28f141){const _0x353a4d=_0x5b4f25,_0x4616e3=_0x28f141[_0x353a4d(0x1f1)](_0x50f3d1=>_0x50f3d1['id']===_0x212136);_0x4616e3&&_0x28f141[_0x353a4d(0x1fa)](_0x4616e3);}[_0x5b4f25(0x226)](){const _0x5c3285=_0x5b4f25;this[_0x5c3285(0x213)][_0x5c3285(0x1e0)]?this[_0x5c3285(0x1e6)]():(this[_0x5c3285(0x215)](),this[_0x5c3285(0x1b4)][_0x5c3285(0x239)]({'target':this[_0x5c3285(0x213)][_0x5c3285(0x211)],'limiter':this[_0x5c3285(0x1c2)](),'positions':qo}),this[_0x5c3285(0x1a4)]&&this[_0x5c3285(0x1b4)][_0x5c3285(0x21d)][_0x5c3285(0x1f2)](0x0)?.[_0x5c3285(0x201)](_0x5c3285(0x1c5)));}[_0x5b4f25(0x1d4)](_0xe660a1){const _0x94b937=_0x5b4f25;this[_0x94b937(0x208)][_0x94b937(0x1d5)](),this[_0x94b937(0x20e)](),this[_0x94b937(0x201)](_0x94b937(0x1e8),_0xe660a1);}}function _0x468b(){const _0x417a30=['extendTemplate','northArrowSouthWest','addFileToContext','_addContextBalloonPanelView','submitUrl','_createBalloonButton','current','isEnabled','locale','_resourcesBalloonView','populateSourceResourceBalloon','_bindEventHandlers','loadSourceResources','show','isReadOnly','removeContextItemChip','tooltip','_getLimiterElement','defaultPositions','label','execute','_createAddContextBalloonPanelView','_setupAddContextBalloonClickOutsideHandler','icon','setContainerElement','refreshBalloon','905179CJZjMe','addResourceToContext','_addContextToCollection','setAddContextOptions','addDocumentToContext','updateResourceState','isAnyResourceBalloonVisible','bodyCollection','closest','_handleUrlSubmit','clear','northArrowSouthEast','1961290HTKLhT','ck-ai-chat-context-controls__balloon-button','ck-ai-chat-context-controls__show-more-balloon-panel','balloonView','ck-ai-chat-context-controls__balloon-button-source','reorganizeChips','ck-ai-chat-context-controls__add-context-balloon-panel','document','showUrlBalloonPanel','isOn','2123032JNjfnt','_createContextButton','customItem','9vTaOsq','_createAddContextButtonView','hideAddContextBalloonPanel','setConversationContext','addUrlToContext','ck-ai-chat-controls-button','ck-ai-chat-controls_context_show-more-button','_createResourcesBalloonView','bind','set','length','files','southArrowNorth','find','get','_toggleAddContextBalloon','menuitem','setContextItemLoading','ck-ai-chat-context-controls__add-context-button','urls','body','isHidden','remove','_conversationContextsChips','arrowView','clearConversationContextItems','executeCustomItemCallback','ck-ai-chat-context-controls__pending-contexts','_addUrlContent','fire','northArrowSouth','setTemplate','_createBaseBalloonPanel','hide','conversation','closeSourceResourceBalloon','_urlInputView','_setupTemplate','373716IFKCTP','clearCurrentContextItems','_setupUrlBalloonClickOutsideHandler','showSourceResourcesBalloon','hideUrlBalloonPanel','_removeContextFromCollection','50JIDfqC','element','source','addContextButtonView','7uuEUol','showAddContextBalloonPanel','sources','createCollection','add','_setAddContextButtonEnabled','addContextItem','searchInputVisibleFrom','focus','content','_setupAllBalloonClickOutsideHandlers','__arrow','ck-ai-chat','children','AI_CHAT_CONTEXT_URL_LABEL','_currentContextsChips','overflowChips','done','_handleAddContextButtonClick','_showSourceResourcesBalloon','AI_CHAT_CONTEXT_FILE_LABEL','div','southArrowNorthEast','_overflowManager','_createArrowView','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','isLoading','ck-ai-chat-context-chips-wrapper-balloon','render','AI_CHAT_CONTEXT_ADD_CONTEXT','_setBalloonPanelContent','customItems','1256142UlkBTi','cancel','southArrowNorthWest','type','ck-ai-chat-context-controls','pin','removeContextItem','destroy','_hasExactlyOneSource','enabled','60692sCIkOL','_addContextBalloonConfig','ck-ai-chat-context-controls__url-balloon-panel','ck-reset_all-excluded','69NPyTSM','buttonView','withBackButton','_urlBalloonPanelView','isVisible','1002738ORVDBR','_createUrlBalloonPanelView'];_0x468b=function(){return _0x417a30;};return _0x468b();}export class SourcesBalloonButtonView extends _0x24bcd4{[_0x5b4f25(0x1fc)];constructor(_0x20cacd){const _0x7f6406=_0x5b4f25;super(_0x20cacd),this[_0x7f6406(0x1ed)]({'withText':!0x0,'role':_0x7f6406(0x1f4)}),this[_0x7f6406(0x1fc)]=this[_0x7f6406(0x22c)](),this[_0x7f6406(0x1b1)]({'attributes':{'class':[Fo]}});}[_0x5b4f25(0x230)](){const _0x469016=_0x5b4f25;super[_0x469016(0x230)](),this[_0x469016(0x221)][_0x469016(0x218)](this[_0x469016(0x1fc)]);}[_0x5b4f25(0x22c)](){const _0x4f59c4=_0x5b4f25,_0x330b26=new _0x41efa0();return _0x330b26[_0x4f59c4(0x21d)]=_0x288f94,_0x330b26[_0x4f59c4(0x1b1)]({'attributes':{'class':Fo+_0x4f59c4(0x21f)}}),_0x330b26;}}
23
+ const _0x499980=_0x46d0;(function(_0x406d96,_0x13af41){const _0x132bc9=_0x46d0,_0x4f5502=_0x406d96();while(!![]){try{const _0x4c3dc8=parseInt(_0x132bc9(0x1c8))/0x1*(-parseInt(_0x132bc9(0x1c9))/0x2)+-parseInt(_0x132bc9(0x228))/0x3*(-parseInt(_0x132bc9(0x207))/0x4)+-parseInt(_0x132bc9(0x21d))/0x5*(-parseInt(_0x132bc9(0x1a8))/0x6)+parseInt(_0x132bc9(0x227))/0x7*(parseInt(_0x132bc9(0x202))/0x8)+-parseInt(_0x132bc9(0x1a3))/0x9*(-parseInt(_0x132bc9(0x1aa))/0xa)+-parseInt(_0x132bc9(0x20b))/0xb*(-parseInt(_0x132bc9(0x20a))/0xc)+parseInt(_0x132bc9(0x1c6))/0xd;if(_0x4c3dc8===_0x13af41)break;else _0x4f5502['push'](_0x4f5502['shift']());}catch(_0x5e0a46){_0x4f5502['push'](_0x4f5502['shift']());}}}(_0x13e7,0x4730e));import{BalloonPanelView as _0xaafc4e,ButtonView as _0x592d73,clickOutsideHandler as _0x25d1a7,FileDialogButtonView as _0x4a273f,IconView as _0x4ea828,View as _0x2501fc}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x4c9e7f,IconDocument as _0x39d4c5,IconDocumentOutline as _0x26d694,IconDropdownArrow as _0x5b355f,IconLink as _0x1da40f,IconPaperClip as _0x365444}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0xdda243}from'./aichatcontextitembuttonview.js';function _0x46d0(_0x10fb7e,_0x15890e){const _0x13e720=_0x13e7();return _0x46d0=function(_0x46d0f8,_0x55ab70){_0x46d0f8=_0x46d0f8-0x19d;let _0x58336f=_0x13e720[_0x46d0f8];return _0x58336f;},_0x46d0(_0x10fb7e,_0x15890e);}import{AIChatContextPanelUrlInputView as _0x4dcd2f}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x93f5a}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x290f9d}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x54df1d}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x499980(0x205),_0x499980(0x1c1),_0x499980(0x225),_0x499980(0x1bc),_0x499980(0x213),_0x499980(0x1b8),_0x499980(0x1d9)];function _0x13e7(){const _0x271195=['_overflowManager','pin','showAddContextBalloonPanel','ck-ai-chat-context-controls__balloon-button','createCollection','ck-ai-chat-context-controls__add-context-balloon-panel','cancel','children','icon','submitUrl','label','loadSourceResources','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','updateResourceState','setConversationContext','addResourceToContext','_createUrlBalloonPanelView','get','_setupUrlBalloonClickOutsideHandler','ck-ai-chat-context-controls__url-balloon-panel','addFileToContext','extendTemplate','ck-ai-chat-context-controls__show-more-balloon-panel','_resourcesBalloonView','setContainerElement','2603978wMvLLM','_createContextButton','94989WIrgXS','12IDddmr','buttonView','showSourceResourcesBalloon','_addUrlContent','AI_CHAT_CONTEXT_URL_LABEL','populateSourceResourceBalloon','ck-ai-chat','_createBalloonButton','_setAddContextButtonEnabled','reorganizeChips','ck-ai-chat-context-controls__balloon-button-source','isVisible','locale','fire','_createAddContextBalloonPanelView','_addContextBalloonConfig','executeCustomItemCallback','AI_CHAT_CONTEXT_ADD_CONTEXT','hideAddContextBalloonPanel','isHidden','addContextButtonView','_addContextToCollection','execute','_addContextBalloonPanelView','ck-ai-chat-context-chips-wrapper-balloon','northArrowSouthEast','hideUrlBalloonPanel','ck-reset_all-excluded','_hasExactlyOneSource','files','_setupAllBalloonClickOutsideHandlers','find','document','isEnabled','_showSourceResourcesBalloon','northArrowSouth','bind','source','hide','_createAddContextButtonView','AI_CHAT_CONTEXT_FILE_LABEL','set','refreshBalloon','ck-ai-chat-context-controls__add-context-button','_createArrowView','__arrow','southArrowNorthWest','content','_removeContextFromCollection','isOn','ck-ai-chat-context-controls','urls','isReadOnly','_setupAddContextBalloonClickOutsideHandler','show','defaultPositions','_urlBalloonPanelView','32152ToDfPY','_urlInputView','overflowChips','addDocumentToContext','conversation','25488nWPbee','customItems','div','52344cWgarT','484TEfMxm','isAnyResourceBalloonVisible','_handleAddContextButtonClick','withBackButton','_conversationContextsChips','done','ck-ai-chat-controls_context_show-more-button','focus','removeContextItem','render','type','_createBaseBalloonPanel','setAddContextOptions','add','element','_currentContextsChips','current','_toggleAddContextBalloon','90XmCOMN','setContextItemLoading','southArrowNorthEast','clearCurrentContextItems','bodyCollection','isLoading','closest','ck-ai-chat-context-controls__pending-contexts','addUrlToContext','removeContextItemChip','343ukwlJA','12cPJPQS','showUrlBalloonPanel','_createResourcesBalloonView','_handleUrlSubmit','northArrowSouthWest','_getLimiterElement','clear','tooltip','addContextItem','ck-ai-chat-controls-button','_bindEventHandlers','_setBalloonPanelContent','southArrowNorth','length','closeSourceResourceBalloon','sources','remove','enabled','arrowView','body','clearConversationContextItems','27vQFAgJ','balloonView','setTemplate','destroy','searchInputVisibleFrom','41334MuzGDw','menuitem','409590nqeMMx','customItem','_setupTemplate'];_0x13e7=function(){return _0x271195;};return _0x13e7();}const Uo=_0x499980(0x1fb),Lo=_0x499980(0x224),No=_0x499980(0x1b2),Mo=_0x499980(0x1f4),Ho=_0x499980(0x1c0),jo=_0x499980(0x1b0),Fo=_0x499980(0x1d3),Xo=_0x499980(0x231),Do=_0x499980(0x1e1),$o=_0x499980(0x211),Wo=_0x499980(0x1c3),qo=_0x499980(0x1cf),zo=[_0xaafc4e[_0x499980(0x200)][_0x499980(0x22c)],_0xaafc4e[_0x499980(0x200)][_0x499980(0x1ec)],_0xaafc4e[_0x499980(0x200)][_0x499980(0x1e2)],_0xaafc4e[_0x499980(0x200)][_0x499980(0x1f7)],_0xaafc4e[_0x499980(0x200)][_0x499980(0x234)],_0xaafc4e[_0x499980(0x200)][_0x499980(0x21f)]];export class AIChatContextPanelView extends _0x2501fc{[_0x499980(0x1dd)];[_0x499980(0x21a)]=this[_0x499980(0x1b1)]();[_0x499980(0x20f)]=this[_0x499980(0x1b1)]();[_0x499980(0x1ad)];[_0x499980(0x1e0)];[_0x499980(0x201)];[_0x499980(0x203)];[_0x499980(0x1c4)];[_0x499980(0x1d8)];[_0x499980(0x1e5)]=!0x1;[_0x499980(0x221)];constructor(_0x1e6476,_0x48b46c){const _0x3003b3=_0x499980;super(_0x1e6476),this[_0x3003b3(0x221)]=_0x48b46c[_0x3003b3(0x221)],this[_0x3003b3(0x21a)]=this[_0x3003b3(0x1b1)](),this[_0x3003b3(0x20f)]=this[_0x3003b3(0x1b1)](),this[_0x3003b3(0x1dd)]=this[_0x3003b3(0x1f0)](_0x1e6476),this[_0x3003b3(0x1e0)]=this[_0x3003b3(0x1d7)](_0x1e6476),this[_0x3003b3(0x201)]=this[_0x3003b3(0x1bd)](_0x1e6476),this[_0x3003b3(0x1c4)]=this[_0x3003b3(0x22a)](_0x1e6476,_0x48b46c);const _0x136594={'cssClasses':{'showMoreButton':$o,'showMoreBalloon':Wo,'overflowContainer':Do,'controlsButton':Xo}};this[_0x3003b3(0x1ad)]=new _0x93f5a(_0x1e6476,this[_0x3003b3(0x21a)],_0x136594,this[_0x3003b3(0x221)],this),this[_0x3003b3(0x1d8)]={'buttonView':this[_0x3003b3(0x1dd)],'balloonView':this[_0x3003b3(0x1e0)],'hideMethod':this[_0x3003b3(0x1db)][_0x3003b3(0x1ed)](this),'showMethod':this[_0x3003b3(0x1af)][_0x3003b3(0x1ed)](this)},this[_0x3003b3(0x1ac)](),this[_0x3003b3(0x232)]();}[_0x499980(0x214)](){const _0x12895b=_0x499980;super[_0x12895b(0x214)](),this[_0x12895b(0x1e7)](),this[_0x12895b(0x1ad)][_0x12895b(0x1c5)](this[_0x12895b(0x219)]),this[_0x12895b(0x1ad)][_0x12895b(0x1d2)]();}[_0x499980(0x1a6)](){const _0x48aba4=_0x499980;super[_0x48aba4(0x1a6)](),this[_0x48aba4(0x1ad)][_0x48aba4(0x1a6)](),this[_0x48aba4(0x1c4)][_0x48aba4(0x1a6)]();}[_0x499980(0x230)](_0x5590e3,_0x1bec5e){const _0x3f38cf=_0x499980,_0xa73ba6=this[_0x3f38cf(0x1c7)](_0x5590e3,_0x3f38cf(0x21b),!0x0,_0x1bec5e);this[_0x3f38cf(0x1de)](_0xa73ba6,this[_0x3f38cf(0x21a)]),this[_0x3f38cf(0x1ad)][_0x3f38cf(0x1d2)]();}[_0x499980(0x213)](_0x274219){const _0x1f9e11=_0x499980;this[_0x1f9e11(0x1f9)](_0x274219,this[_0x1f9e11(0x21a)]),this[_0x1f9e11(0x1f9)](_0x274219,this[_0x1f9e11(0x1ad)][_0x1f9e11(0x204)]),this[_0x1f9e11(0x1ad)][_0x1f9e11(0x1d2)]();}[_0x499980(0x21e)](_0x4f8970,_0x3d11bc){const _0x33de31=_0x499980;let _0x1de8b2=this[_0x33de31(0x21a)][_0x33de31(0x1e8)](_0x2e0551=>_0x2e0551['id']===_0x4f8970);_0x1de8b2||(_0x1de8b2=this[_0x33de31(0x1ad)][_0x33de31(0x204)][_0x33de31(0x1e8)](_0x55afc8=>_0x55afc8['id']===_0x4f8970)),_0x1de8b2&&(_0x1de8b2[_0x33de31(0x222)]=_0x3d11bc);}[_0x499980(0x1bb)](_0x447d98){const _0x5ded32=_0x499980;this[_0x5ded32(0x20f)][_0x5ded32(0x22e)]();for(const _0x42a47b of _0x447d98){const _0x1f872c=this[_0x5ded32(0x1c7)](_0x42a47b,_0x5ded32(0x206),!0x1,!0x1);this[_0x5ded32(0x1de)](_0x1f872c,this[_0x5ded32(0x20f)]);}}[_0x499980(0x220)](){const _0x306452=_0x499980;this[_0x306452(0x21a)][_0x306452(0x22e)](),this[_0x306452(0x1ad)][_0x306452(0x22e)]();}[_0x499980(0x1a2)](){const _0x55ea3c=_0x499980;this[_0x55ea3c(0x20f)][_0x55ea3c(0x22e)]();}[_0x499980(0x1ba)](_0x3651aa,_0x5a0c18,_0xe5dcdb){const _0x39b8bc=_0x499980;this[_0x39b8bc(0x1c4)][_0x39b8bc(0x1ba)](_0x3651aa,_0x5a0c18,_0xe5dcdb);}[_0x499980(0x1db)](){const _0x5f025e=_0x499980;this[_0x5f025e(0x21c)](!0x1);}[_0x499980(0x1af)](){const _0xaa888d=_0x499980;this[_0xaa888d(0x21c)](!0x0);}[_0x499980(0x1e3)](){const _0xa912c4=_0x499980;this[_0xa912c4(0x201)][_0xa912c4(0x1ef)](),this[_0xa912c4(0x1dd)][_0xa912c4(0x1fa)]=!0x1,this[_0xa912c4(0x203)]&&this[_0xa912c4(0x203)][_0xa912c4(0x22e)]();}[_0x499980(0x229)](){const _0x4bbe22=_0x499980;this[_0x4bbe22(0x201)][_0x4bbe22(0x1ff)](),this[_0x4bbe22(0x1dd)][_0x4bbe22(0x1fa)]=!0x0;}[_0x499980(0x1eb)]({source:_0xaf149d,withBackButton:_0x488a7f}){const _0x45a65e=_0x499980;this[_0x45a65e(0x1c4)][_0x45a65e(0x1cb)]({'source':_0xaf149d,'withBackButton':_0x488a7f}),this[_0x45a65e(0x1dd)][_0x45a65e(0x1fa)]=!0x0;}[_0x499980(0x1ce)](_0x4622e9,_0x348f1f,_0x2bd7ec,_0x177983){const _0x25d305=_0x499980;this[_0x25d305(0x1c4)][_0x25d305(0x1ce)](_0x4622e9,_0x2bd7ec,_0x177983);}[_0x499980(0x236)](_0x262e5f){const _0x4d8a0e=_0x499980;this[_0x4d8a0e(0x1c4)][_0x4d8a0e(0x236)](_0x262e5f),this[_0x4d8a0e(0x1dd)][_0x4d8a0e(0x1fa)]=!0x1;}[_0x499980(0x217)](_0x2890a8){const _0x150da9=_0x499980;this[_0x150da9(0x233)](this[_0x150da9(0x1e0)],this[_0x150da9(0x1d5)],_0x2890a8),this[_0x150da9(0x1d1)](_0x2890a8);}[_0x499980(0x1d1)](_0xc9ddeb){const _0xa89e42=_0x499980,_0x22ab38=!_0xc9ddeb[_0xa89e42(0x1e9)][_0xa89e42(0x1dc)]&&_0xc9ddeb[_0xa89e42(0x1e9)][_0xa89e42(0x19f)],_0x180769=_0xc9ddeb[_0xa89e42(0x1fc)][_0xa89e42(0x19f)],_0xda41a7=_0xc9ddeb[_0xa89e42(0x1e6)][_0xa89e42(0x19f)],_0x116b8a=_0xc9ddeb[_0xa89e42(0x19d)][_0xa89e42(0x235)]>0x0,_0x530ace=_0xc9ddeb[_0xa89e42(0x208)]&&_0xc9ddeb[_0xa89e42(0x208)][_0xa89e42(0x235)]>0x0;this[_0xa89e42(0x1dd)][_0xa89e42(0x1ea)]=_0x22ab38||_0x180769||_0xda41a7||_0x116b8a||_0x530ace;}[_0x499980(0x1ac)](){const _0x32b748=_0x499980;this[_0x32b748(0x1a5)]({'tag':_0x32b748(0x209),'attributes':{'class':[Uo,_0x32b748(0x1e4)]},'children':[{'tag':_0x32b748(0x209),'attributes':{'class':Lo},'children':this[_0x32b748(0x21a)]}]});}[_0x499980(0x232)](){const _0x24b5f6=_0x499980;this[_0x24b5f6(0x1dd)]['on'](_0x24b5f6(0x1df),()=>{const _0x3c22ad=_0x24b5f6;this[_0x3c22ad(0x20d)]();});}[_0x499980(0x1f0)](_0x4b7d67){const _0x4d5eec=_0x499980,_0x178985=new _0x592d73(_0x4b7d67);return _0x178985[_0x4d5eec(0x1f2)]({'label':_0x290f9d(_0x4b7d67,_0x4d5eec(0x1da)),'class':Xo+'\x20'+Mo,'icon':_0x365444,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x178985;}[_0x499980(0x1d7)](_0x1c764f){const _0x190c0f=_0x499980;return this[_0x190c0f(0x216)](_0x1c764f,No);}[_0x499980(0x1bd)](_0xfb789a){const _0x5872a0=_0x499980,_0x34f37f=this[_0x5872a0(0x216)](_0xfb789a,Ho);return this[_0x5872a0(0x1cc)](_0x34f37f,_0xfb789a),_0x34f37f;}[_0x499980(0x22a)](_0x3588df,_0x115766){const _0x1fadf5=_0x499980,_0x112d5e={'searchInputVisibleFrom':_0x115766[_0x1fadf5(0x1a7)],'onBackToContext':()=>{const _0xac37fe=_0x1fadf5;this[_0xac37fe(0x1af)](),this[_0xac37fe(0x1e0)][_0xac37fe(0x1ae)]({'target':this[_0xac37fe(0x1dd)][_0xac37fe(0x219)],'limiter':this[_0xac37fe(0x22d)](),'positions':zo});},'onResourceSelected':(_0x40bf70,_0x3835ca)=>{const _0x4a0e63=_0x1fadf5;this[_0x4a0e63(0x1d6)](_0x4a0e63(0x1bc),{'source':_0x40bf70,'resource':_0x3835ca});},'onLoadSourceResources':_0x66544e=>{const _0x2457cb=_0x1fadf5;this[_0x2457cb(0x1d6)](_0x2457cb(0x1b8),_0x66544e);},'onBalloonClosed':()=>{const _0x4cdf9e=_0x1fadf5;this[_0x4cdf9e(0x1dd)][_0x4cdf9e(0x1fa)]=!0x1;},'getLimiterElement':()=>this[_0x1fadf5(0x22d)](),'getTargetElement':()=>this[_0x1fadf5(0x1dd)][_0x1fadf5(0x219)]};return new _0x54df1d(_0x3588df,_0x115766[_0x1fadf5(0x221)],_0x112d5e);}[_0x499980(0x22d)](){const _0x1709e3=_0x499980;return this[_0x1709e3(0x219)]?.[_0x1709e3(0x223)]('.'+qo)||document[_0x1709e3(0x1a1)];}[_0x499980(0x216)](_0x42a63f,_0x407232){const _0x2ef4ef=_0x499980,_0x3d1da2=new _0xaafc4e(_0x42a63f);return _0x3d1da2[_0x2ef4ef(0x1c2)]({'attributes':{'class':_0x407232}}),this[_0x2ef4ef(0x221)][_0x2ef4ef(0x218)](_0x3d1da2),_0x3d1da2;}[_0x499980(0x233)](_0x1069ee,_0x24b3ce,_0x2a7c78){const _0x1394d3=_0x499980;if(_0x1069ee[_0x1394d3(0x1f8)][_0x1394d3(0x22e)](),!_0x2a7c78[_0x1394d3(0x1e9)][_0x1394d3(0x1dc)]&&_0x2a7c78[_0x1394d3(0x1e9)][_0x1394d3(0x19f)]){const _0x5664d6=this[_0x1394d3(0x1d0)](_0x24b3ce,{'label':_0x290f9d(_0x24b3ce,_0x1394d3(0x1b9)),'icon':_0x39d4c5});_0x5664d6['on'](_0x1394d3(0x1df),()=>{const _0x4756b2=_0x1394d3;this[_0x4756b2(0x1d6)](_0x4756b2(0x205)),this[_0x4756b2(0x1db)]();}),_0x1069ee[_0x1394d3(0x1f8)][_0x1394d3(0x218)](_0x5664d6);}if(_0x2a7c78[_0x1394d3(0x1fc)][_0x1394d3(0x19f)]){const _0x21f8f8=this[_0x1394d3(0x1d0)](_0x24b3ce,{'label':_0x290f9d(_0x24b3ce,_0x1394d3(0x1cd)),'icon':_0x1da40f});_0x21f8f8['on'](_0x1394d3(0x1df),()=>{const _0x4ff0e1=_0x1394d3;this[_0x4ff0e1(0x1db)](),this[_0x4ff0e1(0x229)](),this[_0x4ff0e1(0x201)][_0x4ff0e1(0x1ae)]({'target':this[_0x4ff0e1(0x1dd)][_0x4ff0e1(0x219)],'limiter':this[_0x4ff0e1(0x22d)](),'positions':zo}),this[_0x4ff0e1(0x203)][_0x4ff0e1(0x212)]();}),_0x1069ee[_0x1394d3(0x1f8)][_0x1394d3(0x218)](_0x21f8f8);}if(_0x2a7c78[_0x1394d3(0x1e6)][_0x1394d3(0x19f)]){const _0x216049=new _0x4a273f(_0x24b3ce);_0x216049[_0x1394d3(0x1f2)]({'label':_0x290f9d(_0x24b3ce,_0x1394d3(0x1f1)),'icon':_0x4c9e7f,'withText':!0x0,'tooltip':!0x0,'class':jo,'allowMultipleFiles':!0x0}),_0x216049['on'](_0x1394d3(0x1df),()=>{const _0x4cd61f=_0x1394d3;this[_0x4cd61f(0x1db)]();}),_0x216049['on'](_0x1394d3(0x210),(_0x3efdc1,_0x479cdf)=>{const _0x2ab545=_0x1394d3;this[_0x2ab545(0x1d6)](_0x2ab545(0x1c1),_0x479cdf);}),_0x216049[_0x1394d3(0x22f)]=!0x0,_0x1069ee[_0x1394d3(0x1f8)][_0x1394d3(0x218)](_0x216049);}for(const _0x445f67 of _0x2a7c78[_0x1394d3(0x19d)]){const _0x1fbd1d=this[_0x1394d3(0x1d0)](_0x24b3ce,{'label':_0x445f67[_0x1394d3(0x1b7)],'icon':_0x445f67[_0x1394d3(0x1b5)]||_0x26d694,'type':_0x1394d3(0x1ee)});_0x1069ee[_0x1394d3(0x1f8)][_0x1394d3(0x218)](_0x1fbd1d),_0x1fbd1d['on'](_0x1394d3(0x1df),()=>{const _0x3f2a2f=_0x1394d3;this[_0x3f2a2f(0x1db)](),this[_0x3f2a2f(0x1eb)]({'source':_0x445f67,'withBackButton':!this[_0x3f2a2f(0x1e5)]});});}for(const _0x53c5f6 of _0x2a7c78[_0x1394d3(0x208)]||[]){const _0x2954b8=this[_0x1394d3(0x1d0)](_0x24b3ce,{'label':_0x53c5f6[_0x1394d3(0x1b7)],'icon':_0x53c5f6[_0x1394d3(0x1b5)]||_0x26d694,'type':_0x1394d3(0x1ab)});_0x1069ee[_0x1394d3(0x1f8)][_0x1394d3(0x218)](_0x2954b8),_0x2954b8['on'](_0x1394d3(0x1df),()=>{const _0x460f1f=_0x1394d3;this[_0x460f1f(0x1db)](),this[_0x460f1f(0x1d6)](_0x460f1f(0x1d9),_0x53c5f6);});}this[_0x1394d3(0x1e5)]=0x1===_0x1069ee[_0x1394d3(0x1f8)][_0x1394d3(0x235)],this[_0x1394d3(0x203)][_0x1394d3(0x20e)]=!this[_0x1394d3(0x1e5)];}[_0x499980(0x1cc)](_0x4ab5e4,_0x309baf){const _0x776545=_0x499980;this[_0x776545(0x203)]=new _0x4dcd2f(_0x309baf),this[_0x776545(0x203)]['on'](_0x776545(0x1b6),(_0x1e536e,_0x58b08a)=>{const _0x3a9299=_0x776545;this[_0x3a9299(0x22b)](_0x58b08a);}),this[_0x776545(0x203)]['on'](_0x776545(0x1b3),()=>{const _0x2e6208=_0x776545;this[_0x2e6208(0x1e3)](),this[_0x2e6208(0x1e5)]||(this[_0x2e6208(0x1af)](),this[_0x2e6208(0x1e0)][_0x2e6208(0x1ae)]({'target':this[_0x2e6208(0x1dd)][_0x2e6208(0x219)],'limiter':this[_0x2e6208(0x22d)](),'positions':zo}));}),this[_0x776545(0x203)]['on'](_0x776545(0x1f3),()=>{const _0x20c238=_0x776545;this[_0x20c238(0x201)][_0x20c238(0x1d4)]&&this[_0x20c238(0x201)][_0x20c238(0x1ae)]({'target':this[_0x20c238(0x1dd)][_0x20c238(0x219)],'limiter':this[_0x20c238(0x22d)](),'positions':zo});}),_0x4ab5e4[_0x776545(0x1f8)][_0x776545(0x218)](this[_0x776545(0x203)]);}[_0x499980(0x1d0)](_0x19a2db,_0x248c63){const _0x3b3f04=_0x499980,_0x4481ed=_0x3b3f04(0x1ee)===_0x248c63[_0x3b3f04(0x215)]?new SourcesBalloonButtonView(_0x19a2db):new _0x592d73(_0x19a2db);return _0x4481ed[_0x3b3f04(0x1f2)]({'label':_0x248c63[_0x3b3f04(0x1b7)],'icon':_0x248c63[_0x3b3f04(0x1b5)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':jo}),_0x4481ed;}[_0x499980(0x1e7)](){const _0x5bc85b=_0x499980;this[_0x5bc85b(0x1fe)](),this[_0x5bc85b(0x1bf)]();}[_0x499980(0x1bf)](){const _0x5bacf1=_0x499980;_0x25d1a7({'emitter':this[_0x5bacf1(0x201)],'contextElements':[this[_0x5bacf1(0x201)][_0x5bacf1(0x219)]],'callback':()=>{const _0x211d41=_0x5bacf1;this[_0x211d41(0x1e3)]();},'activator':()=>this[_0x5bacf1(0x201)][_0x5bacf1(0x1d4)]});}[_0x499980(0x21c)](_0x140a6d){const _0x516407=_0x499980,_0x22cf12=this[_0x516407(0x1d8)];_0x22cf12[_0x516407(0x1ca)][_0x516407(0x1fa)]=_0x140a6d,_0x140a6d?_0x22cf12[_0x516407(0x1a4)][_0x516407(0x1ff)]():_0x22cf12[_0x516407(0x1a4)][_0x516407(0x1ef)]();}[_0x499980(0x1fe)](){const _0xa4bee4=_0x499980,{balloonView:_0x5e37dc,buttonView:_0x4a7400,hideMethod:_0x57c872}=this[_0xa4bee4(0x1d8)];_0x25d1a7({'emitter':_0x5e37dc,'contextElements':[_0x5e37dc[_0xa4bee4(0x219)],_0x4a7400[_0xa4bee4(0x219)]],'callback':()=>{_0x57c872();},'activator':()=>_0x4a7400[_0xa4bee4(0x1fa)]&&!this[_0xa4bee4(0x201)][_0xa4bee4(0x1d4)]&&!this[_0xa4bee4(0x1c4)][_0xa4bee4(0x20c)]()});}[_0x499980(0x1c7)](_0x28cca4,_0x3a7ab1,_0x11347a=!0x1,_0x27fd89=!0x1){const _0x578e54=_0x499980,_0x182caf=_0x578e54(0x206)===_0x3a7ab1||!0x0===_0x28cca4[_0x578e54(0x1fd)],_0x504369=new _0xdda243(this[_0x578e54(0x1d5)],_0x28cca4,_0x182caf,_0x11347a,_0x27fd89);return _0x182caf||_0x504369['on'](_0x578e54(0x226),()=>{const _0x34b105=_0x578e54;this[_0x34b105(0x1d6)](_0x34b105(0x213),_0x504369['id']);}),_0x504369;}[_0x499980(0x1de)](_0x39de73,_0x97cad){const _0x5afa47=_0x499980;_0x97cad[_0x5afa47(0x218)](_0x39de73,0x0);}[_0x499980(0x1f9)](_0x46bff7,_0x3ff5d0){const _0x218acf=_0x499980,_0x3a3cc1=_0x3ff5d0[_0x218acf(0x1e8)](_0x30e48c=>_0x30e48c['id']===_0x46bff7);_0x3a3cc1&&_0x3ff5d0[_0x218acf(0x19e)](_0x3a3cc1);}[_0x499980(0x20d)](){const _0xdba746=_0x499980;this[_0xdba746(0x1dd)][_0xdba746(0x1fa)]?this[_0xdba746(0x1db)]():(this[_0xdba746(0x1af)](),this[_0xdba746(0x1e0)][_0xdba746(0x1ae)]({'target':this[_0xdba746(0x1dd)][_0xdba746(0x219)],'limiter':this[_0xdba746(0x22d)](),'positions':zo}),this[_0xdba746(0x1e5)]&&this[_0xdba746(0x1e0)][_0xdba746(0x1f8)][_0xdba746(0x1be)](0x0)?.[_0xdba746(0x1d6)](_0xdba746(0x1df)));}[_0x499980(0x22b)](_0x5d6168){const _0x4ff264=_0x499980;this[_0x4ff264(0x203)][_0x4ff264(0x22e)](),this[_0x4ff264(0x1e3)](),this[_0x4ff264(0x1d6)](_0x4ff264(0x225),_0x5d6168);}}export class SourcesBalloonButtonView extends _0x592d73{[_0x499980(0x1a0)];constructor(_0x56ceb7){const _0x46d22a=_0x499980;super(_0x56ceb7),this[_0x46d22a(0x1f2)]({'withText':!0x0,'role':_0x46d22a(0x1a9)}),this[_0x46d22a(0x1a0)]=this[_0x46d22a(0x1f5)](),this[_0x46d22a(0x1c2)]({'attributes':{'class':[Fo]}});}[_0x499980(0x214)](){const _0x3d3fa8=_0x499980;super[_0x3d3fa8(0x214)](),this[_0x3d3fa8(0x1b4)][_0x3d3fa8(0x218)](this[_0x3d3fa8(0x1a0)]);}[_0x499980(0x1f5)](){const _0x4b0094=_0x499980,_0x3ce912=new _0x4ea828();return _0x3ce912[_0x4b0094(0x1f8)]=_0x5b355f,_0x3ce912[_0x4b0094(0x1c2)]({'attributes':{'class':Fo+_0x4b0094(0x1f6)}}),_0x3ce912;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x434554=_0x57fe;(function(_0x3aa133,_0x2e0e1e){const _0x20558c=_0x57fe,_0x4de7a1=_0x3aa133();while(!![]){try{const _0x409c8d=parseInt(_0x20558c(0x1c1))/0x1*(-parseInt(_0x20558c(0x1c2))/0x2)+parseInt(_0x20558c(0x1ca))/0x3*(-parseInt(_0x20558c(0x1c0))/0x4)+parseInt(_0x20558c(0x1d2))/0x5+-parseInt(_0x20558c(0x1bd))/0x6*(-parseInt(_0x20558c(0x1d1))/0x7)+-parseInt(_0x20558c(0x1ce))/0x8*(parseInt(_0x20558c(0x1bc))/0x9)+parseInt(_0x20558c(0x1ba))/0xa+parseInt(_0x20558c(0x1d3))/0xb;if(_0x409c8d===_0x2e0e1e)break;else _0x4de7a1['push'](_0x4de7a1['shift']());}catch(_0x5123f9){_0x4de7a1['push'](_0x4de7a1['shift']());}}}(_0x3b55,0xf1728));import{ButtonView as _0x54cf40,View as _0x263b92}from'ckeditor5/src/ui.js';function _0x3b55(){const _0x27b7fe=['ck-ai-chat-controls-loader-wrapper','ck-ai-chat-controls-loader-icon','ck-ai-button-secondary\x20ck-ai-button-stop-generating','416VkKkYQ','execute','set','3724SVFvII','9637045opxKYS','4724962bfDbcS','_createLoaderView','setTemplate','locale','AI_CHAT_IS_WRITING','11633160WVJhMk','_loaderView','13176ITEEyN','2112DQrISy','ck-reset_all','fire','938500gAKYcn','5Xalsuz','681574KZahrm','ck-ai-chat-controls-loader-icon-dot','AI_CHAT_STOP_GENERATING','_createCancelButtonView','ck-ai-chat-controls-loader','abortPromptStream','_cancelButtonView','div','12BNmsov'];_0x3b55=function(){return _0x27b7fe;};return _0x3b55();}function _0x57fe(_0x4eccbf,_0x4551fe){const _0x3b5514=_0x3b55();return _0x57fe=function(_0x57fe7c,_0x29fccc){_0x57fe7c=_0x57fe7c-0x1b9;let _0x5b4944=_0x3b5514[_0x57fe7c];return _0x5b4944;},_0x57fe(_0x4eccbf,_0x4551fe);}import{IconStop as _0x29d805}from'ckeditor5/src/icons.js';import{getTranslation as _0x971f6d}from'../../../aicore/utils/common-translations.js';export class AIChatControlsLoaderView extends _0x263b92{[_0x434554(0x1c8)];[_0x434554(0x1bb)];constructor(_0x348dc5){const _0x40309a=_0x434554;super(_0x348dc5),this[_0x40309a(0x1c8)]=this[_0x40309a(0x1c5)](),this[_0x40309a(0x1bb)]=this[_0x40309a(0x1d4)](),this[_0x40309a(0x1d5)]({'tag':_0x40309a(0x1c9),'attributes':{'class':['ck',_0x40309a(0x1cb),_0x40309a(0x1be)]},'children':[this[_0x40309a(0x1bb)],this[_0x40309a(0x1c8)]]});}[_0x434554(0x1c5)](){const _0x4c3fda=_0x434554,_0x583e4b=new _0x54cf40(this[_0x4c3fda(0x1d6)]);return _0x583e4b[_0x4c3fda(0x1d0)]({'label':_0x971f6d(this[_0x4c3fda(0x1d6)],_0x4c3fda(0x1c4)),'withText':!0x0,'class':_0x4c3fda(0x1cd),'icon':_0x29d805}),_0x583e4b['on'](_0x4c3fda(0x1cf),()=>{const _0x18d17b=_0x4c3fda;this[_0x18d17b(0x1bf)](_0x18d17b(0x1c7));}),_0x583e4b;}[_0x434554(0x1d4)](){const _0x590261=_0x434554,_0x27c082=new _0x263b92(this[_0x590261(0x1d6)]);return _0x27c082[_0x590261(0x1d5)]({'tag':_0x590261(0x1c9),'attributes':{'class':[_0x590261(0x1c6)]},'children':[{'tag':_0x590261(0x1c9),'attributes':{'class':[_0x590261(0x1cc)]},'children':[{'tag':_0x590261(0x1c9),'attributes':{'class':[_0x590261(0x1c3)]}},{'tag':_0x590261(0x1c9),'attributes':{'class':[_0x590261(0x1c3)]}},{'tag':_0x590261(0x1c9),'attributes':{'class':[_0x590261(0x1c3)]}}]},{'text':_0x971f6d(this[_0x590261(0x1d6)],_0x590261(0x1b9))}]}),_0x27c082;}}
23
+ const _0x54b3d8=_0x274a;function _0x274a(_0x1ba27b,_0x46d1e7){const _0x22a3be=_0x22a3();return _0x274a=function(_0x274a15,_0x45b3ce){_0x274a15=_0x274a15-0xed;let _0x2349e4=_0x22a3be[_0x274a15];return _0x2349e4;},_0x274a(_0x1ba27b,_0x46d1e7);}(function(_0x55e923,_0x30bb18){const _0x2d3063=_0x274a,_0x18a083=_0x55e923();while(!![]){try{const _0x155a32=-parseInt(_0x2d3063(0xfa))/0x1+parseInt(_0x2d3063(0x101))/0x2+parseInt(_0x2d3063(0x107))/0x3*(parseInt(_0x2d3063(0xf7))/0x4)+-parseInt(_0x2d3063(0x104))/0x5*(-parseInt(_0x2d3063(0xf0))/0x6)+parseInt(_0x2d3063(0xf1))/0x7+parseInt(_0x2d3063(0xf9))/0x8+parseInt(_0x2d3063(0xf3))/0x9*(-parseInt(_0x2d3063(0xee))/0xa);if(_0x155a32===_0x30bb18)break;else _0x18a083['push'](_0x18a083['shift']());}catch(_0x23cc7b){_0x18a083['push'](_0x18a083['shift']());}}}(_0x22a3,0x7b2fa));function _0x22a3(){const _0x1dad26=['abortPromptStream','ck-ai-chat-controls-loader-wrapper','6755fKDBFm','_loaderView','setTemplate','3TArMjw','ck-ai-chat-controls-loader-icon-dot','_cancelButtonView','AI_CHAT_IS_WRITING','250SrXfZE','ck-ai-chat-controls-loader','402Dcyrtf','4198432zuzIjo','ck-ai-chat-controls-loader-icon','156375JWjiQV','div','_createLoaderView','AI_CHAT_STOP_GENERATING','1306904UPHOfo','execute','2184992ILCGPK','674058SNRjlk','locale','ck-ai-button-secondary\x20ck-ai-button-stop-generating','set','_createCancelButtonView','fire','ck-reset_all','645720Hljqlx'];_0x22a3=function(){return _0x1dad26;};return _0x22a3();}import{ButtonView as _0x6103dd,View as _0x78398b}from'ckeditor5/src/ui.js';import{IconStop as _0xa65957}from'ckeditor5/src/icons.js';import{getTranslation as _0x1a639e}from'../../../aicore/utils/common-translations.js';export class AIChatControlsLoaderView extends _0x78398b{[_0x54b3d8(0x109)];[_0x54b3d8(0x105)];constructor(_0x398241){const _0xb628cf=_0x54b3d8;super(_0x398241),this[_0xb628cf(0x109)]=this[_0xb628cf(0xfe)](),this[_0xb628cf(0x105)]=this[_0xb628cf(0xf5)](),this[_0xb628cf(0x106)]({'tag':_0xb628cf(0xf4),'attributes':{'class':['ck',_0xb628cf(0x103),_0xb628cf(0x100)]},'children':[this[_0xb628cf(0x105)],this[_0xb628cf(0x109)]]});}[_0x54b3d8(0xfe)](){const _0x3ccf46=_0x54b3d8,_0x201a22=new _0x6103dd(this[_0x3ccf46(0xfb)]);return _0x201a22[_0x3ccf46(0xfd)]({'label':_0x1a639e(this[_0x3ccf46(0xfb)],_0x3ccf46(0xf6)),'withText':!0x0,'class':_0x3ccf46(0xfc),'icon':_0xa65957}),_0x201a22['on'](_0x3ccf46(0xf8),()=>{const _0xa01582=_0x3ccf46;this[_0xa01582(0xff)](_0xa01582(0x102));}),_0x201a22;}[_0x54b3d8(0xf5)](){const _0x4e2387=_0x54b3d8,_0x2029f7=new _0x78398b(this[_0x4e2387(0xfb)]);return _0x2029f7[_0x4e2387(0x106)]({'tag':_0x4e2387(0xf4),'attributes':{'class':[_0x4e2387(0xef)]},'children':[{'tag':_0x4e2387(0xf4),'attributes':{'class':[_0x4e2387(0xf2)]},'children':[{'tag':_0x4e2387(0xf4),'attributes':{'class':[_0x4e2387(0x108)]}},{'tag':_0x4e2387(0xf4),'attributes':{'class':[_0x4e2387(0x108)]}},{'tag':_0x4e2387(0xf4),'attributes':{'class':[_0x4e2387(0x108)]}}]},{'text':_0x1a639e(this[_0x4e2387(0xfb)],_0x4e2387(0xed))}]}),_0x2029f7;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x360a(_0x2e1a4d,_0x2f3c73){const _0x47374d=_0x4737();return _0x360a=function(_0x360ae4,_0x20de39){_0x360ae4=_0x360ae4-0x1b9;let _0x23ca2b=_0x47374d[_0x360ae4];return _0x23ca2b;},_0x360a(_0x2e1a4d,_0x2f3c73);}const _0x4191ad=_0x360a;(function(_0x784cd8,_0x452815){const _0x5be2a6=_0x360a,_0x5d72dc=_0x784cd8();while(!![]){try{const _0x174c99=parseInt(_0x5be2a6(0x1d6))/0x1+-parseInt(_0x5be2a6(0x1d9))/0x2+-parseInt(_0x5be2a6(0x1c0))/0x3+parseInt(_0x5be2a6(0x20d))/0x4+parseInt(_0x5be2a6(0x1f6))/0x5*(-parseInt(_0x5be2a6(0x1f4))/0x6)+parseInt(_0x5be2a6(0x212))/0x7+parseInt(_0x5be2a6(0x201))/0x8;if(_0x174c99===_0x452815)break;else _0x5d72dc['push'](_0x5d72dc['shift']());}catch(_0x447f4c){_0x5d72dc['push'](_0x5d72dc['shift']());}}}(_0x4737,0x5e901));import{Collection as _0x5c9ee6}from'ckeditor5/src/utils.js';import{IconAI as _0x3fbc6c,IconBulb as _0x2f6b5,IconWeb as _0x2cd46a}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x1e094f,ButtonLabelView as _0x310d77,ButtonView as _0x9146c4,createDropdown as _0x302b0b,IconView as _0x133b18,UIModel as _0x2fbe13,View as _0x3cc023}from'ckeditor5/src/ui.js';function _0x4737(){const _0x115c2c=['_createCommandsButton','28254lcSGOE','content','enableModelSelector','selector','source','text','label','AI_CHAT_ENABLE_REASONING','button','addMany','Commands\x20are\x20not\x20implemented\x20yet.','ck-ai-chat-controls__model-selection__item-description','AI_CHAT_CAPABILITIES_NO','_commandsButton','log','listenTo','webSearch','buttonView','reasoningActive','div','ck-ai-chat-controls__model-name','isVisible','289055FuyYEW','span','setModel','1549300ToJbTh','length','_reasoningButton','add','locale','_modelSelectionDropdown','set','fire','bind','enabled','_modelNameView','execute','_createModelSelectionDropdown','modelDisplayMode','AI_CHAT_DISABLE_REASONING','activeModelName','setWebSearch','AI_CHAT_DISABLE_WEB_SEARCH','createCollection','AI_CHAT_SEARCH_WEB','_createWebSearchButton','disableModelSelector','_getCapabilityParts','toggleReasoning','capabilities','selectModel','activeModelId','98466LxWphr','AI_CHAT_REASONING','175AqqPYP','clear','ck-ai-chat-controls__model-selection__item-name','hidden','tooltip','_webSearchButton','menuitemradio','ck-button__label','name','isEnabled','ck-ai-chat-controls-button','2928752WnitqU','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','AI_CHAT_COMMANDS','setReasoning','description','ck-ai-chat-controls-button--commands','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','style','webSearchActive','setTemplate','ck-hidden','isOn','1468140nAcslu','AI_CHAT_CAPABILITIES_YES','reasoning','ck-ai-chat__prompt-capabilities','toggleWebSearch','5065186eCGufd','_modelSelectionDropdownItems','setModelList','extendTemplate','AI_CHAT_ENABLE_WEB_SEARCH','_createModelNameView','bindTemplate','ck-ai-chat-controls__model-selection','_createReasoningButton','modelSelectorEnabled','ck-ai-chat-controls__model-selection__item-capabilities','model'];_0x4737=function(){return _0x115c2c;};return _0x4737();}import{getTranslation as _0x5a79a0}from'../../../aicore/utils/common-translations.js';const Jo=_0x4191ad(0x210),Xo=_0x4191ad(0x200),Ko=_0x4191ad(0x206),Qo=_0x4191ad(0x1ba),Zo=_0x4191ad(0x1f8),tl=_0x4191ad(0x1cb),el=_0x4191ad(0x1bd),il='n';export class AIChatPromptCapabilitiesView extends _0x3cc023{[_0x4191ad(0x1fb)];[_0x4191ad(0x1db)];[_0x4191ad(0x1cd)];[_0x4191ad(0x1de)];[_0x4191ad(0x213)];[_0x4191ad(0x1e3)];constructor(_0x4d37f4){const _0x126b3e=_0x4191ad;super(_0x4d37f4),this[_0x126b3e(0x1df)](_0x126b3e(0x209),!0x1),this[_0x126b3e(0x1df)](_0x126b3e(0x1d2),!0x1),this[_0x126b3e(0x1df)](_0x126b3e(0x1e6),_0x126b3e(0x1c3)),this[_0x126b3e(0x1df)](_0x126b3e(0x1bc),!0x0),this[_0x126b3e(0x1df)](_0x126b3e(0x1f3),null),this[_0x126b3e(0x1df)](_0x126b3e(0x1e8),null),this[_0x126b3e(0x1de)]=this[_0x126b3e(0x1e5)](),this[_0x126b3e(0x1e3)]=this[_0x126b3e(0x217)](),this[_0x126b3e(0x1fb)]=this[_0x126b3e(0x1ed)](),this[_0x126b3e(0x1db)]=this[_0x126b3e(0x1bb)](),this[_0x126b3e(0x1cd)]=this[_0x126b3e(0x1bf)](),this[_0x126b3e(0x1de)][_0x126b3e(0x1d1)][_0x126b3e(0x1e1)](_0x126b3e(0x1d5))['to'](this,_0x126b3e(0x1e6),_0x57343e=>_0x126b3e(0x1c3)===_0x57343e),this[_0x126b3e(0x1de)][_0x126b3e(0x1d1)][_0x126b3e(0x1e1)](_0x126b3e(0x1fa))['to'](this,_0x126b3e(0x1bc),_0x5e5677=>_0x5e5677?this[_0x126b3e(0x1de)][_0x126b3e(0x1d1)][_0x126b3e(0x1c6)]:_0x5a79a0(this[_0x126b3e(0x1dd)],_0x126b3e(0x207))),this[_0x126b3e(0x1de)][_0x126b3e(0x1e1)](_0x126b3e(0x1ff))['to'](this,_0x126b3e(0x1bc),_0x556396=>_0x556396),this[_0x126b3e(0x1fb)][_0x126b3e(0x1e1)](_0x126b3e(0x20c))['to'](this,_0x126b3e(0x209),_0x545136=>_0x545136),this[_0x126b3e(0x1fb)][_0x126b3e(0x1e1)](_0x126b3e(0x1fa))['to'](this,_0x126b3e(0x209),_0x33546c=>_0x5a79a0(this[_0x126b3e(0x1dd)],_0x33546c?_0x126b3e(0x1ea):_0x126b3e(0x216))),this[_0x126b3e(0x1db)][_0x126b3e(0x1e1)](_0x126b3e(0x20c))['to'](this,_0x126b3e(0x1d2),_0x3ed205=>_0x3ed205),this[_0x126b3e(0x1db)][_0x126b3e(0x1e1)](_0x126b3e(0x1fa))['to'](this,_0x126b3e(0x1d2),_0x14d238=>_0x5a79a0(this[_0x126b3e(0x1dd)],_0x14d238?_0x126b3e(0x1e7):_0x126b3e(0x1c7))),this[_0x126b3e(0x20a)]({'tag':_0x126b3e(0x1d3),'attributes':{'class':[Jo]},'children':[this[_0x126b3e(0x1de)],this[_0x126b3e(0x1e3)],this[_0x126b3e(0x1fb)],this[_0x126b3e(0x1db)],this[_0x126b3e(0x1cd)]]}),this[_0x126b3e(0x213)]=new _0x5c9ee6(),_0x1e094f(this[_0x126b3e(0x1de)],this[_0x126b3e(0x213)]);}[_0x4191ad(0x214)](_0x5175b6,_0x4ffef3){const _0x48a10f=_0x4191ad;if(_0x4ffef3)this[_0x48a10f(0x1df)](_0x48a10f(0x1e6),_0x48a10f(0x1f9));else{const _0x1eaa36=0x1===_0x5175b6[_0x48a10f(0x1da)];this[_0x48a10f(0x1df)](_0x48a10f(0x1e6),_0x1eaa36?_0x48a10f(0x1fe):_0x48a10f(0x1c3));}if(this[_0x48a10f(0x213)][_0x48a10f(0x1f7)](),_0x5175b6?.[_0x48a10f(0x1da)])for(const _0x2fe462 of _0x5175b6){const _0x12b121=new _0x2fbe13({'label':_0x2fe462[_0x48a10f(0x1fe)],'withText':!0x0,'role':_0x48a10f(0x1fc),'id':_0x2fe462['id'],'model':_0x2fe462});_0x12b121[_0x48a10f(0x1e1)](_0x48a10f(0x20c))['to'](this,_0x48a10f(0x1f3),_0x28caf9=>_0x28caf9===_0x2fe462['id']),this[_0x48a10f(0x213)][_0x48a10f(0x1dc)]({'type':_0x48a10f(0x1c8),'model':_0x12b121,'labelView':new _o(this[_0x48a10f(0x1dd)],_0x2fe462)});}}[_0x4191ad(0x1e9)](_0x173e83){const _0x3f0b02=_0x4191ad;this[_0x3f0b02(0x1df)](_0x3f0b02(0x209),_0x173e83);}[_0x4191ad(0x204)](_0x5b90e9){const _0x48ea83=_0x4191ad;this[_0x48ea83(0x1df)](_0x48ea83(0x1d2),_0x5b90e9);}[_0x4191ad(0x1d8)](_0x121d36){const _0x521edd=_0x4191ad;if(!_0x121d36)return;this[_0x521edd(0x1f3)]=_0x121d36['id'],this[_0x521edd(0x1e8)]=_0x121d36[_0x521edd(0x1fe)]||_0x121d36['id'],this[_0x521edd(0x1de)][_0x521edd(0x1d1)][_0x521edd(0x1df)](_0x521edd(0x1c6),_0x121d36[_0x521edd(0x1fe)]),this[_0x521edd(0x1de)][_0x521edd(0x1d1)][_0x521edd(0x1df)](_0x521edd(0x1fa),_0x121d36[_0x521edd(0x1fe)]);const _0x25fe77=_0x121d36[_0x521edd(0x1f1)][_0x521edd(0x1d0)]?.[_0x521edd(0x1e2)]??!0x1;this[_0x521edd(0x1df)](_0x521edd(0x209),!0x1),this[_0x521edd(0x1fb)][_0x521edd(0x1df)](_0x521edd(0x20c),!0x1),this[_0x521edd(0x1fb)][_0x521edd(0x1df)](_0x521edd(0x1ff),_0x25fe77),this[_0x521edd(0x1fb)][_0x521edd(0x1df)](_0x521edd(0x1d5),_0x25fe77);const _0x4ad228=_0x121d36[_0x521edd(0x1f1)][_0x521edd(0x20f)]?.[_0x521edd(0x1e2)]??!0x1;this[_0x521edd(0x1df)](_0x521edd(0x1d2),!0x1),this[_0x521edd(0x1db)][_0x521edd(0x1df)](_0x521edd(0x20c),!0x1),this[_0x521edd(0x1db)][_0x521edd(0x1df)](_0x521edd(0x1ff),_0x4ad228),this[_0x521edd(0x1db)][_0x521edd(0x1df)](_0x521edd(0x1d5),_0x4ad228);}[_0x4191ad(0x1c2)](){const _0x2c7cd5=_0x4191ad;this[_0x2c7cd5(0x1df)](_0x2c7cd5(0x1bc),!0x0);}[_0x4191ad(0x1ee)](_0x5df866){const _0x5ac17b=_0x4191ad;this[_0x5ac17b(0x1df)](_0x5ac17b(0x1bc),!0x1),_0x5df866&&this[_0x5ac17b(0x1df)](_0x5ac17b(0x1e6),_0x5ac17b(0x1f9));}[_0x4191ad(0x1ed)](){const _0x57a0f6=_0x4191ad,_0x41f5fb=new _0x9146c4();return _0x41f5fb[_0x57a0f6(0x1df)]({'label':_0x5a79a0(this[_0x57a0f6(0x1dd)],_0x57a0f6(0x1ec)),'icon':_0x2cd46a,'class':Xo,'isToggleable':!0x0,'tooltipPosition':il}),_0x41f5fb['on'](_0x57a0f6(0x1e4),()=>{const _0x429d89=_0x57a0f6;this[_0x429d89(0x1e0)](_0x429d89(0x211));}),_0x41f5fb;}[_0x4191ad(0x1bb)](){const _0xd7c927=_0x4191ad,_0xb623bb=new _0x9146c4();return _0xb623bb[_0xd7c927(0x1df)]({'label':_0x5a79a0(this[_0xd7c927(0x1dd)],_0xd7c927(0x1f5)),'icon':_0x2f6b5,'class':Xo,'isToggleable':!0x0,'tooltipPosition':il}),_0xb623bb['on'](_0xd7c927(0x1e4),()=>{const _0x4e88c0=_0xd7c927;this[_0x4e88c0(0x1e0)](_0x4e88c0(0x1f0));}),_0xb623bb;}[_0x4191ad(0x1bf)](){const _0x1ad392=_0x4191ad,_0x116cbe=new _0x9146c4();return _0x116cbe[_0x1ad392(0x1df)]({'label':_0x5a79a0(this[_0x1ad392(0x1dd)],_0x1ad392(0x203)),'icon':_0x3fbc6c,'withText':!0x0,'class':Xo,'isToggleable':!0x0,'tooltip':_0x5a79a0(this[_0x1ad392(0x1dd)],_0x1ad392(0x203)),'tooltipPosition':il}),_0x116cbe[_0x1ad392(0x215)]({'attributes':{'class':[Ko]}}),_0x116cbe['on'](_0x1ad392(0x1e4),()=>{const _0x48c444=_0x1ad392;console[_0x48c444(0x1ce)](_0x48c444(0x1ca)),alert(_0x48c444(0x1ca));}),_0x116cbe;}[_0x4191ad(0x1e5)](){const _0x38d3c5=_0x4191ad,_0x19ca3d=_0x302b0b(this[_0x38d3c5(0x1dd)]);return _0x19ca3d[_0x38d3c5(0x1df)]({'panelPosition':'ne','class':[Qo]}),_0x19ca3d[_0x38d3c5(0x1d1)][_0x38d3c5(0x1df)]({'label':_0x5a79a0(this[_0x38d3c5(0x1dd)],_0x38d3c5(0x202)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':il}),this[_0x38d3c5(0x1cf)](_0x19ca3d,_0x38d3c5(0x1e4),_0x47db6a=>{const _0x3acf1e=_0x38d3c5;this[_0x3acf1e(0x1e0)](_0x3acf1e(0x1f2),_0x47db6a[_0x3acf1e(0x1c4)][_0x3acf1e(0x1be)]);}),_0x19ca3d;}[_0x4191ad(0x217)](){const _0x52a291=_0x4191ad,_0x257d4b=new po(this[_0x52a291(0x1dd)]);return _0x257d4b[_0x52a291(0x1e1)](_0x52a291(0x1c5))['to'](this,_0x52a291(0x1e8),_0x848e27=>_0x848e27??''),_0x257d4b[_0x52a291(0x1e1)](_0x52a291(0x1d5))['to'](this,_0x52a291(0x1e6),_0x3926ee=>_0x52a291(0x1fe)===_0x3926ee),_0x257d4b;}}class _o extends _0x310d77{constructor(_0x287478,_0x273f80){const _0x46ef69=_0x4191ad;super();const _0x7a1e72=this[_0x46ef69(0x1b9)],_0x228739=this[_0x46ef69(0x1eb)]();this[_0x46ef69(0x20a)]({'tag':_0x46ef69(0x1d3),'attributes':{'class':['ck',_0x46ef69(0x1fd)],'style':_0x7a1e72['to'](_0x46ef69(0x208)),'id':_0x7a1e72['to']('id')},'children':[{'tag':_0x46ef69(0x1d3),'attributes':{'class':[Zo]},'children':[{'text':_0x7a1e72['to'](_0x46ef69(0x1c5))}]},{'tag':_0x46ef69(0x1d3),'attributes':{'class':[tl]},'children':[{'tag':_0x46ef69(0x1d7),'children':[{'text':_0x273f80[_0x46ef69(0x205)]}]}]},{'tag':_0x46ef69(0x1d3),'attributes':{'class':[el]},'children':_0x228739}]}),_0x228739[_0x46ef69(0x1c9)](this[_0x46ef69(0x1ef)](_0x287478,_0x2cd46a,_0x46ef69(0x1ec),_0x273f80[_0x46ef69(0x1f1)][_0x46ef69(0x1d0)]?.[_0x46ef69(0x1e2)]??!0x1)),_0x228739[_0x46ef69(0x1c9)](this[_0x46ef69(0x1ef)](_0x287478,_0x2f6b5,_0x46ef69(0x1f5),_0x273f80[_0x46ef69(0x1f1)][_0x46ef69(0x20f)]?.[_0x46ef69(0x1e2)]??!0x1));}[_0x4191ad(0x1ef)](_0x45959b,_0x346e41,_0x532ed4,_0x318c3f){const _0x56af17=_0x4191ad,_0x577947=new _0x133b18();_0x577947[_0x56af17(0x1c1)]=_0x346e41;const _0x2b8dc0=new _0x3cc023(_0x45959b);_0x2b8dc0[_0x56af17(0x20a)]({'tag':_0x56af17(0x1d7),'children':[{'text':_0x5a79a0(_0x45959b,_0x532ed4)+':\x20'}]});const _0x243b8a=new _0x3cc023(_0x45959b);return _0x243b8a[_0x56af17(0x20a)]({'tag':_0x56af17(0x1d7),'children':[{'text':_0x5a79a0(_0x45959b,_0x318c3f?_0x56af17(0x20e):_0x56af17(0x1cc))}]}),[_0x577947,_0x2b8dc0,_0x243b8a];}}class po extends _0x3cc023{constructor(_0x46f193){const _0xf8a173=_0x4191ad;super(_0x46f193),this[_0xf8a173(0x1df)](_0xf8a173(0x1c5),void 0x0),this[_0xf8a173(0x1df)](_0xf8a173(0x1d5),!0x0);const _0xf77413=this[_0xf8a173(0x1b9)];this[_0xf8a173(0x20a)]({'tag':_0xf8a173(0x1d7),'attributes':{'class':['ck',_0xf8a173(0x1d4),_0xf77413['if'](_0xf8a173(0x1d5),_0xf8a173(0x20b),_0x4ee821=>!_0x4ee821)]},'children':[{'text':_0xf77413['to'](_0xf8a173(0x1c5))}]});}}
23
+ const _0x1145ae=_0x5601;(function(_0xef4906,_0x28d1ad){const _0x19c214=_0x5601,_0x3dd724=_0xef4906();while(!![]){try{const _0x2ccf30=parseInt(_0x19c214(0xab))/0x1*(-parseInt(_0x19c214(0xa9))/0x2)+parseInt(_0x19c214(0xa8))/0x3+parseInt(_0x19c214(0xcd))/0x4+-parseInt(_0x19c214(0xe9))/0x5*(-parseInt(_0x19c214(0x98))/0x6)+-parseInt(_0x19c214(0x9a))/0x7*(-parseInt(_0x19c214(0xa2))/0x8)+parseInt(_0x19c214(0xca))/0x9*(-parseInt(_0x19c214(0xb6))/0xa)+-parseInt(_0x19c214(0xeb))/0xb*(-parseInt(_0x19c214(0xb4))/0xc);if(_0x2ccf30===_0x28d1ad)break;else _0x3dd724['push'](_0x3dd724['shift']());}catch(_0x114b37){_0x3dd724['push'](_0x3dd724['shift']());}}}(_0x38c4,0xde801));function _0x38c4(){const _0xc6df6a=['ck-button__label','activeModelName','_modelNameView','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','ck-ai-chat-controls__model-selection__item-capabilities','67356ujtEqL','activeModelId','228400FirNRS','_createWebSearchButton','Commands\x20are\x20not\x20implemented\x20yet.','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','buttonView','ck-ai-chat-controls-button--commands','setReasoning','_webSearchButton','set','AI_CHAT_ENABLE_WEB_SEARCH','label','listenTo','_createModelSelectionDropdown','tooltip','ck-ai-chat-controls__model-selection__item-name','toggleReasoning','addMany','enableModelSelector','log','button','414kJBIgM','enabled','AI_CHAT_CAPABILITIES_NO','918088ifgjsM','reasoningActive','selectModel','ck-ai-chat-controls-button','createCollection','content','modelSelectorEnabled','ck-ai-chat__prompt-capabilities','setWebSearch','span','AI_CHAT_ENABLE_REASONING','description','extendTemplate','add','AI_CHAT_CAPABILITIES_YES','webSearch','_createReasoningButton','_reasoningButton','clear','source','reasoning','name','hidden','AI_CHAT_REASONING','_modelSelectionDropdownItems','isVisible','isEnabled','AI_CHAT_SEARCH_WEB','204690grABFT','AI_CHAT_DISABLE_WEB_SEARCH','2178HOlDWZ','setModel','length','_getCapabilityParts','_createModelNameView','fire','ck-hidden','webSearchActive','isOn','ck-ai-button-tertiary','disableModelSelector','_createCommandsButton','locale','modelDisplayMode','div','ck-ai-chat-controls__model-selection','_commandsButton','192ujegwj','bindTemplate','7HoWwol','AI_CHAT_COMMANDS','menuitemradio','toggleWebSearch','execute','text','bind','ck-ai-chat-controls__model-name','5487992sCZTeO','model','_modelSelectionDropdown','setTemplate','setModelList','ck-ai-chat-controls__model-selection__item-description','656226pHPVJE','6668dHPOjf','selector','478lGCSJp','style','AI_CHAT_DISABLE_REASONING','capabilities'];_0x38c4=function(){return _0xc6df6a;};return _0x38c4();}import{Collection as _0x3c29ec}from'ckeditor5/src/utils.js';import{IconAI as _0x271a30,IconBulb as _0x48d2d0,IconWeb as _0x5404e0}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x543e52,ButtonLabelView as _0x1ad2d9,ButtonView as _0x2bef29,createDropdown as _0x50fc38,IconView as _0x2a2fb0,UIModel as _0x3ac470,View as _0xdc7182}from'ckeditor5/src/ui.js';import{getTranslation as _0x4f4d21}from'../../../aicore/utils/common-translations.js';const Ko=_0x1145ae(0xd4),Xo=_0x1145ae(0xd0),Qo=_0x1145ae(0xbb),Zo=_0x1145ae(0xf4),tl=_0x1145ae(0x96),el=_0x1145ae(0xc4),il=_0x1145ae(0xa7),sl=_0x1145ae(0xb3),ol='n';function _0x5601(_0x4bb875,_0x22099a){const _0x38c44d=_0x38c4();return _0x5601=function(_0x560175,_0x33f2c9){_0x560175=_0x560175-0x94;let _0x230d58=_0x38c44d[_0x560175];return _0x230d58;},_0x5601(_0x4bb875,_0x22099a);}export class AIChatPromptCapabilitiesView extends _0xdc7182{[_0x1145ae(0xbd)];[_0x1145ae(0xde)];[_0x1145ae(0x97)];[_0x1145ae(0xa4)];[_0x1145ae(0xe5)];[_0x1145ae(0xb1)];constructor(_0x311d25){const _0x1994c2=_0x1145ae;super(_0x311d25),this[_0x1994c2(0xbe)](_0x1994c2(0xf2),!0x1),this[_0x1994c2(0xbe)](_0x1994c2(0xce),!0x1),this[_0x1994c2(0xbe)](_0x1994c2(0x94),_0x1994c2(0xaa)),this[_0x1994c2(0xbe)](_0x1994c2(0xd3),!0x0),this[_0x1994c2(0xbe)](_0x1994c2(0xb5),null),this[_0x1994c2(0xbe)](_0x1994c2(0xb0),null),this[_0x1994c2(0xa4)]=this[_0x1994c2(0xc2)](),this[_0x1994c2(0xb1)]=this[_0x1994c2(0xef)](),this[_0x1994c2(0xbd)]=this[_0x1994c2(0xb7)](),this[_0x1994c2(0xde)]=this[_0x1994c2(0xdd)](),this[_0x1994c2(0x97)]=this[_0x1994c2(0xf6)](),this[_0x1994c2(0xa4)][_0x1994c2(0xba)][_0x1994c2(0xa0)](_0x1994c2(0xe6))['to'](this,_0x1994c2(0x94),_0x44b553=>_0x1994c2(0xaa)===_0x44b553),this[_0x1994c2(0xa4)][_0x1994c2(0xba)][_0x1994c2(0xa0)](_0x1994c2(0xc3))['to'](this,_0x1994c2(0xd3),_0x1445ed=>_0x1445ed?this[_0x1994c2(0xa4)][_0x1994c2(0xba)][_0x1994c2(0xc0)]:_0x4f4d21(this[_0x1994c2(0xf7)],_0x1994c2(0xb9))),this[_0x1994c2(0xa4)][_0x1994c2(0xa0)](_0x1994c2(0xe7))['to'](this,_0x1994c2(0xd3),_0x1be70e=>_0x1be70e),this[_0x1994c2(0xbd)][_0x1994c2(0xa0)](_0x1994c2(0xf3))['to'](this,_0x1994c2(0xf2),_0x39d476=>_0x39d476),this[_0x1994c2(0xbd)][_0x1994c2(0xa0)](_0x1994c2(0xc3))['to'](this,_0x1994c2(0xf2),_0x402c22=>_0x4f4d21(this[_0x1994c2(0xf7)],_0x402c22?_0x1994c2(0xea):_0x1994c2(0xbf))),this[_0x1994c2(0xde)][_0x1994c2(0xa0)](_0x1994c2(0xf3))['to'](this,_0x1994c2(0xce),_0x55bb86=>_0x55bb86),this[_0x1994c2(0xde)][_0x1994c2(0xa0)](_0x1994c2(0xc3))['to'](this,_0x1994c2(0xce),_0xb8a9a6=>_0x4f4d21(this[_0x1994c2(0xf7)],_0xb8a9a6?_0x1994c2(0xad):_0x1994c2(0xd7))),this[_0x1994c2(0xa5)]({'tag':_0x1994c2(0x95),'attributes':{'class':[Ko]},'children':[this[_0x1994c2(0xa4)],this[_0x1994c2(0xb1)],this[_0x1994c2(0xbd)],this[_0x1994c2(0xde)],this[_0x1994c2(0x97)]]}),this[_0x1994c2(0xe5)]=new _0x3c29ec(),_0x543e52(this[_0x1994c2(0xa4)],this[_0x1994c2(0xe5)]);}[_0x1145ae(0xa6)](_0x21c566,_0x26a980){const _0x2004ea=_0x1145ae;if(_0x26a980)this[_0x2004ea(0xbe)](_0x2004ea(0x94),_0x2004ea(0xe3));else{const _0x37e135=0x1===_0x21c566[_0x2004ea(0xed)];this[_0x2004ea(0xbe)](_0x2004ea(0x94),_0x37e135?_0x2004ea(0xe2):_0x2004ea(0xaa));}if(this[_0x2004ea(0xe5)][_0x2004ea(0xdf)](),_0x21c566?.[_0x2004ea(0xed)])for(const _0x44d857 of _0x21c566){const _0x4570c9=new _0x3ac470({'label':_0x44d857[_0x2004ea(0xe2)],'withText':!0x0,'role':_0x2004ea(0x9c),'id':_0x44d857['id'],'model':_0x44d857});_0x4570c9[_0x2004ea(0xa0)](_0x2004ea(0xf3))['to'](this,_0x2004ea(0xb5),_0x161e7d=>_0x161e7d===_0x44d857['id']),this[_0x2004ea(0xe5)][_0x2004ea(0xda)]({'type':_0x2004ea(0xc9),'model':_0x4570c9,'labelView':new ko(this[_0x2004ea(0xf7)],_0x44d857)});}}[_0x1145ae(0xd5)](_0x545add){const _0x3d9973=_0x1145ae;this[_0x3d9973(0xbe)](_0x3d9973(0xf2),_0x545add);}[_0x1145ae(0xbc)](_0x2c8b41){const _0x423b6b=_0x1145ae;this[_0x423b6b(0xbe)](_0x423b6b(0xce),_0x2c8b41);}[_0x1145ae(0xec)](_0x498f60){const _0x3e5ce6=_0x1145ae;if(!_0x498f60)return;this[_0x3e5ce6(0xb5)]=_0x498f60['id'],this[_0x3e5ce6(0xb0)]=_0x498f60[_0x3e5ce6(0xe2)]||_0x498f60['id'],this[_0x3e5ce6(0xa4)][_0x3e5ce6(0xba)][_0x3e5ce6(0xbe)](_0x3e5ce6(0xc0),_0x498f60[_0x3e5ce6(0xe2)]),this[_0x3e5ce6(0xa4)][_0x3e5ce6(0xba)][_0x3e5ce6(0xbe)](_0x3e5ce6(0xc3),_0x498f60[_0x3e5ce6(0xe2)]);const _0x4d3e9f=_0x498f60[_0x3e5ce6(0xae)][_0x3e5ce6(0xdc)]?.[_0x3e5ce6(0xcb)]??!0x1;this[_0x3e5ce6(0xbe)](_0x3e5ce6(0xf2),!0x1),this[_0x3e5ce6(0xbd)][_0x3e5ce6(0xbe)](_0x3e5ce6(0xf3),!0x1),this[_0x3e5ce6(0xbd)][_0x3e5ce6(0xbe)](_0x3e5ce6(0xe7),_0x4d3e9f),this[_0x3e5ce6(0xbd)][_0x3e5ce6(0xbe)](_0x3e5ce6(0xe6),_0x4d3e9f);const _0x209e78=_0x498f60[_0x3e5ce6(0xae)][_0x3e5ce6(0xe1)]?.[_0x3e5ce6(0xcb)]??!0x1;this[_0x3e5ce6(0xbe)](_0x3e5ce6(0xce),!0x1),this[_0x3e5ce6(0xde)][_0x3e5ce6(0xbe)](_0x3e5ce6(0xf3),!0x1),this[_0x3e5ce6(0xde)][_0x3e5ce6(0xbe)](_0x3e5ce6(0xe7),_0x209e78),this[_0x3e5ce6(0xde)][_0x3e5ce6(0xbe)](_0x3e5ce6(0xe6),_0x209e78);}[_0x1145ae(0xc7)](){const _0x522a90=_0x1145ae;this[_0x522a90(0xbe)](_0x522a90(0xd3),!0x0);}[_0x1145ae(0xf5)](_0x1db5a7){const _0x570c6a=_0x1145ae;this[_0x570c6a(0xbe)](_0x570c6a(0xd3),!0x1),_0x1db5a7&&this[_0x570c6a(0xbe)](_0x570c6a(0x94),_0x570c6a(0xe3));}[_0x1145ae(0xb7)](){const _0x487701=_0x1145ae,_0x146cfb=new _0x2bef29();return _0x146cfb[_0x487701(0xbe)]({'label':_0x4f4d21(this[_0x487701(0xf7)],_0x487701(0xe8)),'icon':_0x5404e0,'class':Xo,'isToggleable':!0x0,'tooltipPosition':ol}),_0x146cfb['on'](_0x487701(0x9e),()=>{const _0x1b4202=_0x487701;this[_0x1b4202(0xf0)](_0x1b4202(0x9d));}),_0x146cfb;}[_0x1145ae(0xdd)](){const _0x223985=_0x1145ae,_0x310ff5=new _0x2bef29();return _0x310ff5[_0x223985(0xbe)]({'label':_0x4f4d21(this[_0x223985(0xf7)],_0x223985(0xe4)),'icon':_0x48d2d0,'class':Xo,'isToggleable':!0x0,'tooltipPosition':ol}),_0x310ff5['on'](_0x223985(0x9e),()=>{const _0x13f344=_0x223985;this[_0x13f344(0xf0)](_0x13f344(0xc5));}),_0x310ff5;}[_0x1145ae(0xf6)](){const _0x50dd4d=_0x1145ae,_0x5b1772=new _0x2bef29();return _0x5b1772[_0x50dd4d(0xbe)]({'label':_0x4f4d21(this[_0x50dd4d(0xf7)],_0x50dd4d(0x9b)),'icon':_0x271a30,'withText':!0x0,'class':Xo,'isToggleable':!0x0,'tooltip':_0x4f4d21(this[_0x50dd4d(0xf7)],_0x50dd4d(0x9b)),'tooltipPosition':ol}),_0x5b1772[_0x50dd4d(0xd9)]({'attributes':{'class':[Qo]}}),_0x5b1772['on'](_0x50dd4d(0x9e),()=>{const _0x4c8fa2=_0x50dd4d;console[_0x4c8fa2(0xc8)](_0x4c8fa2(0xb8)),alert(_0x4c8fa2(0xb8));}),_0x5b1772;}[_0x1145ae(0xc2)](){const _0x52d342=_0x1145ae,_0x249c63=_0x50fc38(this[_0x52d342(0xf7)]);return _0x249c63[_0x52d342(0xbe)]({'panelPosition':'ne','class':[tl]}),_0x249c63[_0x52d342(0xba)][_0x52d342(0xbe)]({'label':_0x4f4d21(this[_0x52d342(0xf7)],_0x52d342(0xb2)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':ol,'class':Zo}),this[_0x52d342(0xc1)](_0x249c63,_0x52d342(0x9e),_0x1087b7=>{const _0x39fe10=_0x52d342;this[_0x39fe10(0xf0)](_0x39fe10(0xcf),_0x1087b7[_0x39fe10(0xe0)][_0x39fe10(0xa3)]);}),_0x249c63;}[_0x1145ae(0xef)](){const _0x5e6dc4=_0x1145ae,_0xd8a393=new _o(this[_0x5e6dc4(0xf7)]);return _0xd8a393[_0x5e6dc4(0xa0)](_0x5e6dc4(0x9f))['to'](this,_0x5e6dc4(0xb0),_0x2b4e00=>_0x2b4e00??''),_0xd8a393[_0x5e6dc4(0xa0)](_0x5e6dc4(0xe6))['to'](this,_0x5e6dc4(0x94),_0x30e72a=>_0x5e6dc4(0xe2)===_0x30e72a),_0xd8a393;}}class ko extends _0x1ad2d9{constructor(_0x20283d,_0x387b6b){const _0x59aa80=_0x1145ae;super();const _0x4b6b57=this[_0x59aa80(0x99)],_0x10973e=this[_0x59aa80(0xd1)]();this[_0x59aa80(0xa5)]({'tag':_0x59aa80(0x95),'attributes':{'class':['ck',_0x59aa80(0xaf)],'style':_0x4b6b57['to'](_0x59aa80(0xac)),'id':_0x4b6b57['to']('id')},'children':[{'tag':_0x59aa80(0x95),'attributes':{'class':[el]},'children':[{'text':_0x4b6b57['to'](_0x59aa80(0x9f))}]},{'tag':_0x59aa80(0x95),'attributes':{'class':[il]},'children':[{'tag':_0x59aa80(0xd6),'children':[{'text':_0x387b6b[_0x59aa80(0xd8)]}]}]},{'tag':_0x59aa80(0x95),'attributes':{'class':[sl]},'children':_0x10973e}]}),_0x10973e[_0x59aa80(0xc6)](this[_0x59aa80(0xee)](_0x20283d,_0x5404e0,_0x59aa80(0xe8),_0x387b6b[_0x59aa80(0xae)][_0x59aa80(0xdc)]?.[_0x59aa80(0xcb)]??!0x1)),_0x10973e[_0x59aa80(0xc6)](this[_0x59aa80(0xee)](_0x20283d,_0x48d2d0,_0x59aa80(0xe4),_0x387b6b[_0x59aa80(0xae)][_0x59aa80(0xe1)]?.[_0x59aa80(0xcb)]??!0x1));}[_0x1145ae(0xee)](_0x3db684,_0x37b83c,_0x75129a,_0x48db77){const _0x21ea01=_0x1145ae,_0x2ff8d7=new _0x2a2fb0();_0x2ff8d7[_0x21ea01(0xd2)]=_0x37b83c;const _0x2e9cb4=new _0xdc7182(_0x3db684);_0x2e9cb4[_0x21ea01(0xa5)]({'tag':_0x21ea01(0xd6),'children':[{'text':_0x4f4d21(_0x3db684,_0x75129a)+':\x20'}]});const _0x1c366d=new _0xdc7182(_0x3db684);return _0x1c366d[_0x21ea01(0xa5)]({'tag':_0x21ea01(0xd6),'children':[{'text':_0x4f4d21(_0x3db684,_0x48db77?_0x21ea01(0xdb):_0x21ea01(0xcc))}]}),[_0x2ff8d7,_0x2e9cb4,_0x1c366d];}}class _o extends _0xdc7182{constructor(_0x470e25){const _0x5e8cda=_0x1145ae;super(_0x470e25),this[_0x5e8cda(0xbe)](_0x5e8cda(0x9f),void 0x0),this[_0x5e8cda(0xbe)](_0x5e8cda(0xe6),!0x0);const _0x4a899b=this[_0x5e8cda(0x99)];this[_0x5e8cda(0xa5)]({'tag':_0x5e8cda(0xd6),'attributes':{'class':['ck',_0x5e8cda(0xa1),_0x4a899b['if'](_0x5e8cda(0xe6),_0x5e8cda(0xf1),_0x5d78a4=>!_0x5d78a4)]},'children':[{'text':_0x4a899b['to'](_0x5e8cda(0x9f))}]});}}
@@ -33,6 +33,11 @@ export declare class AIChatPromptInputView extends AutocompleteView<TextareaView
33
33
  * Sets the placeholder text for the input.
34
34
  */
35
35
  setPlaceholderText(placeholder: string): void;
36
+ /**
37
+ * Focuses the prompt input in DOM. When `useHighlight` is `true`, the prompt input will be highlighted for a short time
38
+ * to capture the user's attention.
39
+ */
40
+ focus(useHighlight?: boolean): void;
36
41
  /**
37
42
  * Sets the upload in progress state.
38
43
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x28e35d=_0xb6d0;(function(_0x8aea93,_0x2e8818){const _0x130805=_0xb6d0,_0x258a28=_0x8aea93();while(!![]){try{const _0x2f509e=parseInt(_0x130805(0xcc))/0x1*(parseInt(_0x130805(0xc3))/0x2)+parseInt(_0x130805(0xc6))/0x3*(-parseInt(_0x130805(0xcb))/0x4)+-parseInt(_0x130805(0xce))/0x5+-parseInt(_0x130805(0xac))/0x6+parseInt(_0x130805(0x94))/0x7*(parseInt(_0x130805(0xb7))/0x8)+parseInt(_0x130805(0xbe))/0x9+-parseInt(_0x130805(0xba))/0xa*(-parseInt(_0x130805(0xc7))/0xb);if(_0x2f509e===_0x2e8818)break;else _0x258a28['push'](_0x258a28['shift']());}catch(_0x2ecae7){_0x258a28['push'](_0x258a28['shift']());}}}(_0x1f71,0x69cd9));function _0x1f71(){const _0x3e88e4=['submitButtonView','locale','fieldWrapperChildren','isUploadInProgress','minRows','set','queryView','_setUpAddContextButtonPositioning','hasError','AI_CHAT_PROMPT_EMPTY_ERROR','fieldView','bind','calc(','style','rtl','ck-ai-chat__prompt-input','sendUserMessage','_addContextButtonView','_queryViewResizeObserver','MIN_ROWS','MAX_ROWS','execute','AI_CHAT_LABEL_SUBMIT','3024732UChUhj','update','extendTemplate','value','right','width','uiLanguageDirection','trim','setIsUploadInProgress','fire','reset','964112zPmNlf','isEnabled','maxRows','18350SZLcXD','requestAnimationFrame','px\x20-\x20var(--ck-spacing-tiny))','setPlaceholderText','7174278FPwuVT','left','destroy','enter','_createSubmitButton','6666OcSkcf','target','window','27543cRCrsK','1045LSOrUi','submit','errorText','excludeScrollbarsAndBorders','60rkqJJG','88fqECIL','element','2152965MFXoMJ','focusableChildren','add','placeholder','render','keystrokes','ck-ai-chat__prompt-submit-button','isEmpty','14rHTyAY'];_0x1f71=function(){return _0x3e88e4;};return _0x1f71();}import{IconSubmit as _0x3483b4}from'ckeditor5/src/icons.js';import{ButtonView as _0x58599e,AutocompleteView as _0xfef505,createLabeledTextarea as _0x40a17a}from'ckeditor5/src/ui.js';import{global as _0x19bc7b,isVisible as _0x3510d8,Rect as _0x159a1a,ResizeObserver as _0x20a669}from'ckeditor5/src/utils.js';import{getTranslation as _0x4b6e05}from'../../../aicore/utils/common-translations.js';function _0xb6d0(_0x507fd6,_0xe5b209){const _0x1f711d=_0x1f71();return _0xb6d0=function(_0xb6d09c,_0x38e2fa){_0xb6d09c=_0xb6d09c-0x90;let _0x497b42=_0x1f711d[_0xb6d09c];return _0x497b42;},_0xb6d0(_0x507fd6,_0xe5b209);}import{AIChatPromptSuggestionsListView as _0x481c11}from'./aichatpromptsuggestionslistview.js';import{escape as _0x602b95}from'es-toolkit/compat';export class AIChatPromptInputView extends _0xfef505{[_0x28e35d(0x95)];static [_0x28e35d(0xa8)]=0x1;static [_0x28e35d(0xa9)]=0xc;[_0x28e35d(0xa6)];[_0x28e35d(0xa7)];constructor(_0xdf5905,_0x241698){const _0x26d655=_0x28e35d;super(_0xdf5905,{'queryView':{'label':'','creator':_0x40a17a,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x481c11(_0xdf5905),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x26d655(0x9a)](_0x26d655(0x93),!0x0),this[_0x26d655(0x9a)](_0x26d655(0x98),!0x1),this[_0x26d655(0xa6)]=_0x241698,this[_0x26d655(0xa7)]=null,this[_0x26d655(0x9b)][_0x26d655(0x9f)][_0x26d655(0x99)]=AIChatPromptInputView[_0x26d655(0xa8)],this[_0x26d655(0x9b)][_0x26d655(0x9f)][_0x26d655(0xb9)]=AIChatPromptInputView[_0x26d655(0xa9)],this[_0x26d655(0x9b)][_0x26d655(0x97)][_0x26d655(0xd0)](this[_0x26d655(0xa6)]),this[_0x26d655(0x9c)](),this[_0x26d655(0xae)]({'attributes':{'class':['ck',_0x26d655(0xa4)]}}),this[_0x26d655(0x95)]=this[_0x26d655(0xc2)](),this[_0x26d655(0x95)][_0x26d655(0xa0)](_0x26d655(0xb8))['to'](this,_0x26d655(0x93),this,_0x26d655(0x98),(_0x1bb6fe,_0x3c3f90)=>!_0x1bb6fe&&!_0x3c3f90),this[_0x26d655(0xcf)][_0x26d655(0xd0)](this[_0x26d655(0x95)]);}[_0x28e35d(0x90)](){const _0x2c26d2=_0x28e35d;super[_0x2c26d2(0x90)](),this[_0x2c26d2(0x9b)][_0x2c26d2(0x97)][_0x2c26d2(0xd0)](this[_0x2c26d2(0x95)]),this[_0x2c26d2(0x91)][_0x2c26d2(0x9a)](_0x2c26d2(0xc1),(_0x2aa69d,_0x24986a)=>{const _0x759f01=_0x2c26d2;this[_0x759f01(0x98)]||this[_0x759f01(0x93)]||_0x2aa69d[_0x759f01(0xc4)]==this[_0x759f01(0x9b)][_0x759f01(0x9f)][_0x759f01(0xcd)]&&(this[_0x759f01(0xc8)](),_0x24986a());}),this[_0x2c26d2(0x9b)][_0x2c26d2(0x9f)]['on'](_0x2c26d2(0xad),()=>{const _0x1d85ef=_0x2c26d2;this[_0x1d85ef(0x93)]=''===this[_0x1d85ef(0x9b)][_0x1d85ef(0x9f)][_0x1d85ef(0xcd)][_0x1d85ef(0xaf)]?.[_0x1d85ef(0xb3)]();});}[_0x28e35d(0xc0)](){const _0x4a435a=_0x28e35d;super[_0x4a435a(0xc0)](),this[_0x4a435a(0xa7)]&&this[_0x4a435a(0xa7)][_0x4a435a(0xc0)]();}[_0x28e35d(0xc8)](){const _0x41c7e3=_0x28e35d,_0x3ee7fa=this[_0x41c7e3(0x9b)][_0x41c7e3(0x9f)][_0x41c7e3(0xcd)][_0x41c7e3(0xaf)]?.[_0x41c7e3(0xb3)]();if(!_0x3ee7fa)return this[_0x41c7e3(0x9b)][_0x41c7e3(0xc9)]=_0x4b6e05(this[_0x41c7e3(0x96)],_0x41c7e3(0x9e)),void(this[_0x41c7e3(0x9b)][_0x41c7e3(0x9f)][_0x41c7e3(0x9d)]=!0x0);this[_0x41c7e3(0x9b)][_0x41c7e3(0x9f)][_0x41c7e3(0x9d)]=!0x1;const _0xb6aa18=_0x602b95(_0x3ee7fa);this[_0x41c7e3(0xb5)](_0x41c7e3(0xa5),_0xb6aa18),this[_0x41c7e3(0x9b)][_0x41c7e3(0x9f)][_0x41c7e3(0xb6)]();}[_0x28e35d(0xbd)](_0x11ece8){const _0x115763=_0x28e35d;this[_0x115763(0x9b)][_0x115763(0x9f)][_0x115763(0x9a)](_0x115763(0xd1),_0x11ece8);}[_0x28e35d(0xc2)](){const _0x1b2555=_0x28e35d,_0x164078=new _0x58599e(this[_0x1b2555(0x96)]);return _0x164078[_0x1b2555(0x9a)]({'icon':_0x3483b4,'label':_0x4b6e05(this[_0x1b2555(0x96)],_0x1b2555(0xab)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x1b2555(0x92),'isEnabled':!0x1}),_0x164078['on'](_0x1b2555(0xaa),()=>{const _0x2a445e=_0x1b2555;this[_0x2a445e(0xc8)]();}),_0x164078;}[_0x28e35d(0xb4)](_0xe25986){const _0x107fd6=_0x28e35d;this[_0x107fd6(0x98)]=_0xe25986;}[_0x28e35d(0x9c)](){const _0xd24fd7=_0x28e35d,_0x3eb00f=this[_0xd24fd7(0x96)],_0x5eec3c=()=>{const _0xcd3d7f=_0xd24fd7;_0x19bc7b[_0xcd3d7f(0xc5)][_0xcd3d7f(0xbb)](()=>{const _0x1db74a=_0xcd3d7f;if(_0x3510d8(this[_0x1db74a(0xcd)])){const _0x1b7df3=new _0x159a1a(this[_0x1db74a(0x9b)][_0x1db74a(0x9f)][_0x1db74a(0xcd)]),_0x17dc13=new _0x159a1a(this[_0x1db74a(0xa6)][_0x1db74a(0xcd)]),_0x2e7877=_0x1b7df3[_0x1db74a(0xb1)],_0x5b5cb4=_0x1db74a(0xa3)===_0x3eb00f[_0x1db74a(0xb2)]?_0x1db74a(0xb0):_0x1db74a(0xbf);_0x1b7df3[_0x1db74a(0xca)]();const _0x3abd4f=_0x2e7877-_0x1b7df3[_0x1db74a(0xb1)]+0x1;this[_0x1db74a(0xa6)][_0x1db74a(0xcd)][_0x1db74a(0xa2)][_0x5b5cb4]=_0x1db74a(0xa1)+(_0x2e7877-_0x17dc13[_0x1db74a(0xb1)]-_0x3abd4f)+_0x1db74a(0xbc);}});};this[_0xd24fd7(0x9b)][_0xd24fd7(0x9f)]['on'](_0xd24fd7(0xad),_0x5eec3c),this['on'](_0xd24fd7(0x90),()=>{const _0x8abf81=_0xd24fd7;_0x5eec3c(),this[_0x8abf81(0xa7)]=new _0x20a669(this[_0x8abf81(0x9b)][_0x8abf81(0x9f)][_0x8abf81(0xcd)],()=>{_0x5eec3c();});});}}
23
+ const _0x1ea6b2=_0x5b73;(function(_0x50ea41,_0x54bbab){const _0x5aa170=_0x5b73,_0x187231=_0x50ea41();while(!![]){try{const _0x207deb=parseInt(_0x5aa170(0x9b))/0x1*(-parseInt(_0x5aa170(0x97))/0x2)+parseInt(_0x5aa170(0xa7))/0x3*(-parseInt(_0x5aa170(0xce))/0x4)+parseInt(_0x5aa170(0xc2))/0x5+parseInt(_0x5aa170(0xc6))/0x6*(-parseInt(_0x5aa170(0xa2))/0x7)+parseInt(_0x5aa170(0x99))/0x8*(parseInt(_0x5aa170(0xa3))/0x9)+-parseInt(_0x5aa170(0xab))/0xa*(parseInt(_0x5aa170(0xb2))/0xb)+parseInt(_0x5aa170(0xc5))/0xc;if(_0x207deb===_0x54bbab)break;else _0x187231['push'](_0x187231['shift']());}catch(_0x13c906){_0x187231['push'](_0x187231['shift']());}}}(_0x3fce,0x61539));import{IconSubmit as _0x26c47d}from'ckeditor5/src/icons.js';import{ButtonView as _0x1f6940,AutocompleteView as _0x515265,createLabeledTextarea as _0x892cb5}from'ckeditor5/src/ui.js';import{global as _0xa27494,isVisible as _0x1949ec,Rect as _0x57c433,ResizeObserver as _0x111386}from'ckeditor5/src/utils.js';import{getTranslation as _0x2ce07b}from'../../../aicore/utils/common-translations.js';import{AIChatPromptSuggestionsListView as _0x141b4b}from'./aichatpromptsuggestionslistview.js';function _0x5b73(_0xbd8870,_0x2251cc){const _0x3fce84=_0x3fce();return _0x5b73=function(_0x5b7303,_0x502a51){_0x5b7303=_0x5b7303-0x97;let _0x1aa637=_0x3fce84[_0x5b7303];return _0x1aa637;},_0x5b73(_0xbd8870,_0x2251cc);}import{escape as _0x2ed5bc}from'es-toolkit/compat';const ph=_0x1ea6b2(0xca);function _0x3fce(){const _0x494caa=['locale','reset','isEnabled','_queryViewResizeObserver','fieldWrapperChildren','297iWgldZ','width','classList','execute','minRows','calc(','contains','add','destroy','excludeScrollbarsAndBorders','bind','keystrokes','queryView','fieldView','AI_CHAT_LABEL_SUBMIT','MIN_ROWS','1654450OXeZCc','isUploadInProgress','value','14700456BJqVNm','42vSiNiO','_addContextButtonView','_setUpAddContextButtonPositioning','submit','ck-ai-chat__prompt-input_highlighted','focus','rtl','errorText','283420MvydId','remove','_createSubmitButton','placeholder','style','submitButtonView','isEmpty','extendTemplate','ck-ai-chat__prompt-submit-button','target','render','setPlaceholderText','update','uiLanguageDirection','maxRows','requestAnimationFrame','AI_CHAT_PROMPT_EMPTY_ERROR','2ktjeYq','right','10536qblgfR','window','113651GChMdA','left','MAX_ROWS','focusableChildren','ck-ai-chat__prompt-input','px\x20-\x20var(--ck-spacing-tiny))','enter','240394EEdGoG','4356LWodfb','set','fire','sendUserMessage','33ngjaki','setIsUploadInProgress','element','hasError','244910IvYbiA','trim'];_0x3fce=function(){return _0x494caa;};return _0x3fce();}export class AIChatPromptInputView extends _0x515265{[_0x1ea6b2(0xd3)];static [_0x1ea6b2(0xc1)]=0x1;static [_0x1ea6b2(0x9d)]=0xc;[_0x1ea6b2(0xc7)];[_0x1ea6b2(0xb0)];constructor(_0x1f60e1,_0x3e188a){const _0x54cb85=_0x1ea6b2;super(_0x1f60e1,{'queryView':{'label':'','creator':_0x892cb5,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x141b4b(_0x1f60e1),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x54cb85(0xa4)](_0x54cb85(0xd4),!0x0),this[_0x54cb85(0xa4)](_0x54cb85(0xc3),!0x1),this[_0x54cb85(0xc7)]=_0x3e188a,this[_0x54cb85(0xb0)]=null,this[_0x54cb85(0xbe)][_0x54cb85(0xbf)][_0x54cb85(0xb6)]=AIChatPromptInputView[_0x54cb85(0xc1)],this[_0x54cb85(0xbe)][_0x54cb85(0xbf)][_0x54cb85(0xdc)]=AIChatPromptInputView[_0x54cb85(0x9d)],this[_0x54cb85(0xbe)][_0x54cb85(0xb1)][_0x54cb85(0xb9)](this[_0x54cb85(0xc7)]),this[_0x54cb85(0xc8)](),this[_0x54cb85(0xd5)]({'attributes':{'class':['ck',_0x54cb85(0x9f)]}}),this[_0x54cb85(0xd3)]=this[_0x54cb85(0xd0)](),this[_0x54cb85(0xd3)][_0x54cb85(0xbc)](_0x54cb85(0xaf))['to'](this,_0x54cb85(0xd4),this,_0x54cb85(0xc3),(_0x3f8257,_0x3faa6b)=>!_0x3f8257&&!_0x3faa6b),this[_0x54cb85(0x9e)][_0x54cb85(0xb9)](this[_0x54cb85(0xd3)]);}[_0x1ea6b2(0xd8)](){const _0x4bc560=_0x1ea6b2;super[_0x4bc560(0xd8)](),this[_0x4bc560(0xbe)][_0x4bc560(0xb1)][_0x4bc560(0xb9)](this[_0x4bc560(0xd3)]),this[_0x4bc560(0xbd)][_0x4bc560(0xa4)](_0x4bc560(0xa1),(_0x119f1f,_0x459021)=>{const _0x303f35=_0x4bc560;this[_0x303f35(0xc3)]||this[_0x303f35(0xd4)]||_0x119f1f[_0x303f35(0xd7)]==this[_0x303f35(0xbe)][_0x303f35(0xbf)][_0x303f35(0xa9)]&&(this[_0x303f35(0xc9)](),_0x459021());}),this[_0x4bc560(0xbe)][_0x4bc560(0xbf)]['on'](_0x4bc560(0xda),()=>{const _0x5237d6=_0x4bc560;this[_0x5237d6(0xd4)]=''===this[_0x5237d6(0xbe)][_0x5237d6(0xbf)][_0x5237d6(0xa9)][_0x5237d6(0xc4)]?.[_0x5237d6(0xac)]();});}[_0x1ea6b2(0xba)](){const _0x4d1263=_0x1ea6b2;super[_0x4d1263(0xba)](),this[_0x4d1263(0xb0)]&&this[_0x4d1263(0xb0)][_0x4d1263(0xba)]();}[_0x1ea6b2(0xc9)](){const _0x4bd88a=_0x1ea6b2,_0x7a6604=this[_0x4bd88a(0xbe)][_0x4bd88a(0xbf)][_0x4bd88a(0xa9)][_0x4bd88a(0xc4)]?.[_0x4bd88a(0xac)]();if(!_0x7a6604)return this[_0x4bd88a(0xbe)][_0x4bd88a(0xcd)]=_0x2ce07b(this[_0x4bd88a(0xad)],_0x4bd88a(0xde)),void(this[_0x4bd88a(0xbe)][_0x4bd88a(0xbf)][_0x4bd88a(0xaa)]=!0x0);this[_0x4bd88a(0xbe)][_0x4bd88a(0xbf)][_0x4bd88a(0xaa)]=!0x1;const _0x4c0913=_0x2ed5bc(_0x7a6604);this[_0x4bd88a(0xa5)](_0x4bd88a(0xa6),_0x4c0913),this[_0x4bd88a(0xbe)][_0x4bd88a(0xbf)][_0x4bd88a(0xae)]();}[_0x1ea6b2(0xd9)](_0x505fac){const _0x2790ab=_0x1ea6b2;this[_0x2790ab(0xbe)][_0x2790ab(0xbf)][_0x2790ab(0xa4)](_0x2790ab(0xd1),_0x505fac);}[_0x1ea6b2(0xcb)](_0xb59c8f=!0x1){const _0x5ca571=_0x1ea6b2;super[_0x5ca571(0xcb)](),_0xb59c8f&&(this[_0x5ca571(0xa9)][_0x5ca571(0xb4)][_0x5ca571(0xb8)](ph)||(this[_0x5ca571(0xa9)][_0x5ca571(0xb4)][_0x5ca571(0xb9)](ph),setTimeout(()=>{const _0x445a89=_0x5ca571;this[_0x445a89(0xa9)][_0x445a89(0xb4)][_0x445a89(0xcf)](ph);},0x320)));}[_0x1ea6b2(0xd0)](){const _0x13cfc0=_0x1ea6b2,_0x1ee22a=new _0x1f6940(this[_0x13cfc0(0xad)]);return _0x1ee22a[_0x13cfc0(0xa4)]({'icon':_0x26c47d,'label':_0x2ce07b(this[_0x13cfc0(0xad)],_0x13cfc0(0xc0)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x13cfc0(0xd6),'isEnabled':!0x1}),_0x1ee22a['on'](_0x13cfc0(0xb5),()=>{const _0x28503d=_0x13cfc0;this[_0x28503d(0xc9)]();}),_0x1ee22a;}[_0x1ea6b2(0xa8)](_0x37cdd4){const _0x1accd9=_0x1ea6b2;this[_0x1accd9(0xc3)]=_0x37cdd4;}[_0x1ea6b2(0xc8)](){const _0x56bab9=_0x1ea6b2,_0x53b16f=this[_0x56bab9(0xad)],_0xc43f43=()=>{const _0x23fff5=_0x56bab9;_0xa27494[_0x23fff5(0x9a)][_0x23fff5(0xdd)](()=>{const _0x2ab16e=_0x23fff5;if(_0x1949ec(this[_0x2ab16e(0xa9)])){const _0x4e1ca6=new _0x57c433(this[_0x2ab16e(0xbe)][_0x2ab16e(0xbf)][_0x2ab16e(0xa9)]),_0x29a3b3=new _0x57c433(this[_0x2ab16e(0xc7)][_0x2ab16e(0xa9)]),_0x42c97c=_0x4e1ca6[_0x2ab16e(0xb3)],_0x33f66d=_0x2ab16e(0xcc)===_0x53b16f[_0x2ab16e(0xdb)]?_0x2ab16e(0x98):_0x2ab16e(0x9c);_0x4e1ca6[_0x2ab16e(0xbb)]();const _0x456f25=_0x42c97c-_0x4e1ca6[_0x2ab16e(0xb3)]+0x1;this[_0x2ab16e(0xc7)][_0x2ab16e(0xa9)][_0x2ab16e(0xd2)][_0x33f66d]=_0x2ab16e(0xb7)+(_0x42c97c-_0x29a3b3[_0x2ab16e(0xb3)]-_0x456f25)+_0x2ab16e(0xa0);}});};this[_0x56bab9(0xbe)][_0x56bab9(0xbf)]['on'](_0x56bab9(0xda),_0xc43f43),this['on'](_0x56bab9(0xd8),()=>{const _0x11766a=_0x56bab9;_0xc43f43(),this[_0x11766a(0xb0)]=new _0x111386(this[_0x11766a(0xbe)][_0x11766a(0xbf)][_0x11766a(0xa9)],()=>{_0xc43f43();});});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x2462(){const _0x543536=['42MCoPxs','10qANDZH','8945936WXPSAD','length','6840358syKwXm','481692HHddRZ','items','1262886jftaae','5091816Kzoozk','289368OjSLAv','filter','237826hCkTTu'];_0x2462=function(){return _0x543536;};return _0x2462();}const _0x46ed58=_0x54c0;(function(_0x5a5ff0,_0x3ec8f6){const _0x15c00f=_0x54c0,_0x5f0993=_0x5a5ff0();while(!![]){try{const _0xac9d0c=parseInt(_0x15c00f(0xb7))/0x1+-parseInt(_0x15c00f(0xaf))/0x2*(parseInt(_0x15c00f(0xb0))/0x3)+parseInt(_0x15c00f(0xb8))/0x4+parseInt(_0x15c00f(0xb1))/0x5*(parseInt(_0x15c00f(0xb5))/0x6)+parseInt(_0x15c00f(0xb4))/0x7+-parseInt(_0x15c00f(0xb2))/0x8+-parseInt(_0x15c00f(0xb9))/0x9;if(_0xac9d0c===_0x3ec8f6)break;else _0x5f0993['push'](_0x5f0993['shift']());}catch(_0x46eae6){_0x5f0993['push'](_0x5f0993['shift']());}}}(_0x2462,0xd1936));function _0x54c0(_0x3b1249,_0x27dea0){const _0x24623d=_0x2462();return _0x54c0=function(_0x54c074,_0xa0617e){_0x54c074=_0x54c074-0xaf;let _0x541ff1=_0x24623d[_0x54c074];return _0x541ff1;},_0x54c0(_0x3b1249,_0x27dea0);}import{ListView as _0x553690}from'ckeditor5/src/ui.js';export class AIChatPromptSuggestionsListView extends _0x553690{[_0x46ed58(0xba)](){const _0x29a788=_0x46ed58;let _0x1fca7f=0x0;for(const _0x3412c6 of this[_0x29a788(0xb6)])_0x1fca7f+=_0x3412c6[_0x29a788(0xb6)][_0x29a788(0xb3)];return{'resultsCount':_0x1fca7f,'totalItemsCount':_0x1fca7f};}}
23
+ function _0xd899(){const _0x3a0e2e=['31537UWBlYQ','8juuRFA','634442YlgvuB','6731676PCjFDU','items','filter','4vMMeiP','length','6985146BNwzzp','1310ozpzEy','28865532bsihtm','30485Ddvrpn','1ZOxmzZ','3185235pQPfpc','1074QMhfmv'];_0xd899=function(){return _0x3a0e2e;};return _0xd899();}const _0x4ac341=_0x35fc;(function(_0x31ff39,_0x26dbb7){const _0x5aa7db=_0x35fc,_0x6da5dc=_0x31ff39();while(!![]){try{const _0x300b9f=parseInt(_0x5aa7db(0x14a))/0x1*(-parseInt(_0x5aa7db(0x14f))/0x2)+parseInt(_0x5aa7db(0x14b))/0x3*(-parseInt(_0x5aa7db(0x153))/0x4)+-parseInt(_0x5aa7db(0x149))/0x5*(parseInt(_0x5aa7db(0x14c))/0x6)+parseInt(_0x5aa7db(0x155))/0x7*(parseInt(_0x5aa7db(0x14e))/0x8)+-parseInt(_0x5aa7db(0x150))/0x9+parseInt(_0x5aa7db(0x156))/0xa*(parseInt(_0x5aa7db(0x14d))/0xb)+parseInt(_0x5aa7db(0x148))/0xc;if(_0x300b9f===_0x26dbb7)break;else _0x6da5dc['push'](_0x6da5dc['shift']());}catch(_0x3d697c){_0x6da5dc['push'](_0x6da5dc['shift']());}}}(_0xd899,0x88def));function _0x35fc(_0x5a78f0,_0x8f1378){const _0xd89975=_0xd899();return _0x35fc=function(_0x35fc83,_0x52edcc){_0x35fc83=_0x35fc83-0x148;let _0x4abc11=_0xd89975[_0x35fc83];return _0x4abc11;},_0x35fc(_0x5a78f0,_0x8f1378);}import{ListView as _0x5249c3}from'ckeditor5/src/ui.js';export class AIChatPromptSuggestionsListView extends _0x5249c3{[_0x4ac341(0x152)](){const _0x47a096=_0x4ac341;let _0x58fcb4=0x0;for(const _0x573b62 of this[_0x47a096(0x151)])_0x58fcb4+=_0x573b62[_0x47a096(0x151)][_0x47a096(0x154)];return{'resultsCount':_0x58fcb4,'totalItemsCount':_0x58fcb4};}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1c5a0e=_0x337c;function _0x337c(_0x47c7fc,_0x3020c0){const _0x107053=_0x1070();return _0x337c=function(_0x337cf6,_0x509df1){_0x337cf6=_0x337cf6-0x1c7;let _0x4d0e4a=_0x107053[_0x337cf6];return _0x4d0e4a;},_0x337c(_0x47c7fc,_0x3020c0);}(function(_0x380cca,_0x54895d){const _0x34e3e8=_0x337c,_0x46ee49=_0x380cca();while(!![]){try{const _0x242088=-parseInt(_0x34e3e8(0x1da))/0x1+parseInt(_0x34e3e8(0x1d2))/0x2+-parseInt(_0x34e3e8(0x1d8))/0x3+-parseInt(_0x34e3e8(0x1dd))/0x4+-parseInt(_0x34e3e8(0x1d5))/0x5*(parseInt(_0x34e3e8(0x1e5))/0x6)+parseInt(_0x34e3e8(0x1c8))/0x7+parseInt(_0x34e3e8(0x1cd))/0x8;if(_0x242088===_0x54895d)break;else _0x46ee49['push'](_0x46ee49['shift']());}catch(_0x3bda1b){_0x46ee49['push'](_0x46ee49['shift']());}}}(_0x1070,0x3de34));import{ListView as _0x12d59b}from'ckeditor5/src/ui.js';import{AIChatResourceListItemView as _0x5dd593}from'./aichatresourcelistitemview.js';const uc=_0x1c5a0e(0x1d9);export class AIChatContextResourcesListView extends _0x12d59b{[_0x1c5a0e(0x1d1)];constructor(_0xcc0eee,_0x333eed){const _0x1d42c6=_0x1c5a0e;super(_0xcc0eee),this[_0x1d42c6(0x1d1)]=_0x333eed,this[_0x1d42c6(0x1cf)]({'attributes':{'class':[uc]}});}[_0x1c5a0e(0x1de)](_0x3b47d0,_0x2371bb){const _0x27fa98=_0x1c5a0e;this[_0x27fa98(0x1ca)][_0x27fa98(0x1d7)]();let _0x56f3ab=_0x3b47d0;if(this[_0x27fa98(0x1d1)][_0x27fa98(0x1e0)]&&_0x2371bb&&''!==_0x2371bb[_0x27fa98(0x1c9)]()){const _0x4beea0=new RegExp(_0x2371bb[_0x27fa98(0x1df)](/[.*+?^${}()|[\]\\]/g,_0x27fa98(0x1e3)),'gi');_0x56f3ab=_0x3b47d0[_0x27fa98(0x1d0)](_0x3c84bb=>_0x4beea0[_0x27fa98(0x1d3)](_0x3c84bb[_0x27fa98(0x1cb)]));}for(const _0x139544 of _0x56f3ab){const _0x5e2177=new _0x5dd593(this[_0x27fa98(0x1e4)],_0x139544);_0x5e2177['on'](_0x27fa98(0x1e2),()=>{const _0x4ea0eb=_0x27fa98;this[_0x4ea0eb(0x1cc)](this[_0x4ea0eb(0x1d1)],_0x139544);}),this[_0x27fa98(0x1ca)][_0x27fa98(0x1d4)](_0x5e2177);}this[_0x27fa98(0x1d1)][_0x27fa98(0x1e0)]&&this[_0x27fa98(0x1ce)](_0x2371bb);}[_0x1c5a0e(0x1ce)](_0x1bea9f){const _0x47e6fc=_0x1c5a0e;this[_0x47e6fc(0x1d1)][_0x47e6fc(0x1e0)]&&this[_0x47e6fc(0x1ca)][_0x47e6fc(0x1e1)](_0xbbc218=>{const _0x450aba=_0x47e6fc;_0xbbc218[_0x450aba(0x1ce)](_0x1bea9f);});}[_0x1c5a0e(0x1db)](_0x15d078,_0x45cb9d){const _0x200d43=_0x1c5a0e;for(const _0x4adc57 of this[_0x200d43(0x1ca)]){const _0x1e1ee1=_0x4adc57;_0x1e1ee1[_0x200d43(0x1dc)]['id']===_0x15d078&&_0x1e1ee1[_0x200d43(0x1db)](_0x45cb9d);}}[_0x1c5a0e(0x1cc)](_0x1b3f46,_0x5b6a19){const _0x145cf4=_0x1c5a0e;this[_0x145cf4(0x1c7)](_0x145cf4(0x1d6),{'source':_0x1b3f46,'resource':_0x5b6a19});}}function _0x1070(){const _0x3f7bbc=['label','_handleResourceSelection','8261448sKwtle','highlightText','extendTemplate','filter','_source','539104TtNUnQ','test','add','230RBXHAr','addResourceToContext','clear','1278630cZjiLo','ck-ai-chat-resources__list','12076SQDQMs','updateResourceState','resource','1646264FCNswQ','setResources','replace','useDefaultFiltering','forEach','execute','\x5c$&','locale','51990jqbMSm','fire','1397907fBpQYv','trim','items'];_0x1070=function(){return _0x3f7bbc;};return _0x1070();}
23
+ const _0x2fa126=_0x4874;(function(_0x1de9c4,_0x55e79d){const _0x5533c0=_0x4874,_0x4d9728=_0x1de9c4();while(!![]){try{const _0x52cd71=parseInt(_0x5533c0(0x16a))/0x1+parseInt(_0x5533c0(0x168))/0x2+parseInt(_0x5533c0(0x162))/0x3+parseInt(_0x5533c0(0x15d))/0x4+parseInt(_0x5533c0(0x15e))/0x5*(-parseInt(_0x5533c0(0x153))/0x6)+parseInt(_0x5533c0(0x169))/0x7*(parseInt(_0x5533c0(0x15f))/0x8)+parseInt(_0x5533c0(0x161))/0x9*(-parseInt(_0x5533c0(0x15c))/0xa);if(_0x52cd71===_0x55e79d)break;else _0x4d9728['push'](_0x4d9728['shift']());}catch(_0x247629){_0x4d9728['push'](_0x4d9728['shift']());}}}(_0x4071,0xdcdab));import{ListView as _0x381e02}from'ckeditor5/src/ui.js';function _0x4874(_0x456b81,_0xcf2891){const _0x407107=_0x4071();return _0x4874=function(_0x487472,_0x4ce388){_0x487472=_0x487472-0x14b;let _0x59e8aa=_0x407107[_0x487472];return _0x59e8aa;},_0x4874(_0x456b81,_0xcf2891);}import{AIChatResourceListItemView as _0xffcf77}from'./aichatresourcelistitemview.js';const uc=_0x2fa126(0x158);function _0x4071(){const _0x3e55ac=['locale','updateResourceState','657114WEOSfj','execute','addResourceToContext','_handleResourceSelection','\x5c$&','ck-ai-chat-resources__list','fire','filter','replace','40aMcoep','525804EHyUvR','30WVDPdL','136OPZxnC','forEach','7996842ixtIWQ','4491741ZlQCxC','useDefaultFiltering','_source','extendTemplate','clear','items','3231888rMJxqY','599312iYHlYI','415771OGEnjn','test','setResources','trim','resource','add','label','highlightText'];_0x4071=function(){return _0x3e55ac;};return _0x4071();}export class AIChatContextResourcesListView extends _0x381e02{[_0x2fa126(0x164)];constructor(_0x24666b,_0x13ce82){const _0x2a0263=_0x2fa126;super(_0x24666b),this[_0x2a0263(0x164)]=_0x13ce82,this[_0x2a0263(0x165)]({'attributes':{'class':[uc]}});}[_0x2fa126(0x14b)](_0x467fc8,_0x53b7b6){const _0x692c6=_0x2fa126;this[_0x692c6(0x167)][_0x692c6(0x166)]();let _0x51103f=_0x467fc8;if(this[_0x692c6(0x164)][_0x692c6(0x163)]&&_0x53b7b6&&''!==_0x53b7b6[_0x692c6(0x14c)]()){const _0xb3e5f9=new RegExp(_0x53b7b6[_0x692c6(0x15b)](/[.*+?^${}()|[\]\\]/g,_0x692c6(0x157)),'gi');_0x51103f=_0x467fc8[_0x692c6(0x15a)](_0x4d7d77=>_0xb3e5f9[_0x692c6(0x16b)](_0x4d7d77[_0x692c6(0x14f)]));}for(const _0x5e884d of _0x51103f){const _0x4ab94a=new _0xffcf77(this[_0x692c6(0x151)],_0x5e884d);_0x4ab94a['on'](_0x692c6(0x154),()=>{const _0x3e0fca=_0x692c6;this[_0x3e0fca(0x156)](this[_0x3e0fca(0x164)],_0x5e884d);}),this[_0x692c6(0x167)][_0x692c6(0x14e)](_0x4ab94a);}this[_0x692c6(0x164)][_0x692c6(0x163)]&&this[_0x692c6(0x150)](_0x53b7b6);}[_0x2fa126(0x150)](_0x1f5262){const _0x413a49=_0x2fa126;this[_0x413a49(0x164)][_0x413a49(0x163)]&&this[_0x413a49(0x167)][_0x413a49(0x160)](_0x36a493=>{const _0x41f86c=_0x413a49;_0x36a493[_0x41f86c(0x150)](_0x1f5262);});}[_0x2fa126(0x152)](_0x301ba4,_0x150fec){const _0x25cf04=_0x2fa126;for(const _0x4b12a3 of this[_0x25cf04(0x167)]){const _0x52de83=_0x4b12a3;_0x52de83[_0x25cf04(0x14d)]['id']===_0x301ba4&&_0x52de83[_0x25cf04(0x152)](_0x150fec);}}[_0x2fa126(0x156)](_0x3e6110,_0x4d7c70){const _0x282f24=_0x2fa126;this[_0x282f24(0x159)](_0x282f24(0x155),{'source':_0x3e6110,'resource':_0x4d7c70});}}