@ckeditor/ckeditor5-ai 47.0.0-alpha.9 → 47.1.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 (328) hide show
  1. package/build/ai.js +1 -1
  2. package/ckeditor5-metadata.json +9 -2
  3. package/dist/index-editor.css +119 -34
  4. package/dist/index.css +144 -35
  5. package/dist/index.js +4 -4
  6. package/dist/translations/af.js +1 -1
  7. package/dist/translations/af.umd.js +1 -1
  8. package/dist/translations/ar.js +1 -1
  9. package/dist/translations/ar.umd.js +1 -1
  10. package/dist/translations/ast.js +1 -1
  11. package/dist/translations/ast.umd.js +1 -1
  12. package/dist/translations/az.js +1 -1
  13. package/dist/translations/az.umd.js +1 -1
  14. package/dist/translations/be.js +1 -1
  15. package/dist/translations/be.umd.js +1 -1
  16. package/dist/translations/bg.js +1 -1
  17. package/dist/translations/bg.umd.js +1 -1
  18. package/dist/translations/bn.js +1 -1
  19. package/dist/translations/bn.umd.js +1 -1
  20. package/dist/translations/bs.js +1 -1
  21. package/dist/translations/bs.umd.js +1 -1
  22. package/dist/translations/ca.js +1 -1
  23. package/dist/translations/ca.umd.js +1 -1
  24. package/dist/translations/cs.js +1 -1
  25. package/dist/translations/cs.umd.js +1 -1
  26. package/dist/translations/da.js +1 -1
  27. package/dist/translations/da.umd.js +1 -1
  28. package/dist/translations/de-ch.js +1 -1
  29. package/dist/translations/de-ch.umd.js +1 -1
  30. package/dist/translations/de.js +1 -1
  31. package/dist/translations/de.umd.js +1 -1
  32. package/dist/translations/el.js +1 -1
  33. package/dist/translations/el.umd.js +1 -1
  34. package/dist/translations/en-au.js +1 -1
  35. package/dist/translations/en-au.umd.js +1 -1
  36. package/dist/translations/en-gb.js +1 -1
  37. package/dist/translations/en-gb.umd.js +1 -1
  38. package/dist/translations/en.js +1 -1
  39. package/dist/translations/en.umd.js +1 -1
  40. package/dist/translations/eo.js +1 -1
  41. package/dist/translations/eo.umd.js +1 -1
  42. package/dist/translations/es-co.js +1 -1
  43. package/dist/translations/es-co.umd.js +1 -1
  44. package/dist/translations/es.js +1 -1
  45. package/dist/translations/es.umd.js +1 -1
  46. package/dist/translations/et.js +1 -1
  47. package/dist/translations/et.umd.js +1 -1
  48. package/dist/translations/eu.js +1 -1
  49. package/dist/translations/eu.umd.js +1 -1
  50. package/dist/translations/fa.js +1 -1
  51. package/dist/translations/fa.umd.js +1 -1
  52. package/dist/translations/fi.js +1 -1
  53. package/dist/translations/fi.umd.js +1 -1
  54. package/dist/translations/fr.js +1 -1
  55. package/dist/translations/fr.umd.js +1 -1
  56. package/dist/translations/gl.js +1 -1
  57. package/dist/translations/gl.umd.js +1 -1
  58. package/dist/translations/gu.js +1 -1
  59. package/dist/translations/gu.umd.js +1 -1
  60. package/dist/translations/he.js +1 -1
  61. package/dist/translations/he.umd.js +1 -1
  62. package/dist/translations/hi.js +1 -1
  63. package/dist/translations/hi.umd.js +1 -1
  64. package/dist/translations/hr.js +1 -1
  65. package/dist/translations/hr.umd.js +1 -1
  66. package/dist/translations/hu.js +1 -1
  67. package/dist/translations/hu.umd.js +1 -1
  68. package/dist/translations/hy.js +1 -1
  69. package/dist/translations/hy.umd.js +1 -1
  70. package/dist/translations/id.js +1 -1
  71. package/dist/translations/id.umd.js +1 -1
  72. package/dist/translations/it.js +1 -1
  73. package/dist/translations/it.umd.js +1 -1
  74. package/dist/translations/ja.js +1 -1
  75. package/dist/translations/ja.umd.js +1 -1
  76. package/dist/translations/jv.js +1 -1
  77. package/dist/translations/jv.umd.js +1 -1
  78. package/dist/translations/kk.js +1 -1
  79. package/dist/translations/kk.umd.js +1 -1
  80. package/dist/translations/km.js +1 -1
  81. package/dist/translations/km.umd.js +1 -1
  82. package/dist/translations/kn.js +1 -1
  83. package/dist/translations/kn.umd.js +1 -1
  84. package/dist/translations/ko.js +1 -1
  85. package/dist/translations/ko.umd.js +1 -1
  86. package/dist/translations/ku.js +1 -1
  87. package/dist/translations/ku.umd.js +1 -1
  88. package/dist/translations/lt.js +1 -1
  89. package/dist/translations/lt.umd.js +1 -1
  90. package/dist/translations/lv.js +1 -1
  91. package/dist/translations/lv.umd.js +1 -1
  92. package/dist/translations/ms.js +1 -1
  93. package/dist/translations/ms.umd.js +1 -1
  94. package/dist/translations/nb.js +1 -1
  95. package/dist/translations/nb.umd.js +1 -1
  96. package/dist/translations/ne.js +1 -1
  97. package/dist/translations/ne.umd.js +1 -1
  98. package/dist/translations/nl.js +1 -1
  99. package/dist/translations/nl.umd.js +1 -1
  100. package/dist/translations/no.js +1 -1
  101. package/dist/translations/no.umd.js +1 -1
  102. package/dist/translations/oc.js +1 -1
  103. package/dist/translations/oc.umd.js +1 -1
  104. package/dist/translations/pl.js +1 -1
  105. package/dist/translations/pl.umd.js +1 -1
  106. package/dist/translations/pt-br.js +1 -1
  107. package/dist/translations/pt-br.umd.js +1 -1
  108. package/dist/translations/pt.js +1 -1
  109. package/dist/translations/pt.umd.js +1 -1
  110. package/dist/translations/ro.js +1 -1
  111. package/dist/translations/ro.umd.js +1 -1
  112. package/dist/translations/ru.js +1 -1
  113. package/dist/translations/ru.umd.js +1 -1
  114. package/dist/translations/si.js +1 -1
  115. package/dist/translations/si.umd.js +1 -1
  116. package/dist/translations/sk.js +1 -1
  117. package/dist/translations/sk.umd.js +1 -1
  118. package/dist/translations/sl.js +1 -1
  119. package/dist/translations/sl.umd.js +1 -1
  120. package/dist/translations/sq.js +1 -1
  121. package/dist/translations/sq.umd.js +1 -1
  122. package/dist/translations/sr-latn.js +1 -1
  123. package/dist/translations/sr-latn.umd.js +1 -1
  124. package/dist/translations/sr.js +1 -1
  125. package/dist/translations/sr.umd.js +1 -1
  126. package/dist/translations/sv.js +1 -1
  127. package/dist/translations/sv.umd.js +1 -1
  128. package/dist/translations/th.js +1 -1
  129. package/dist/translations/th.umd.js +1 -1
  130. package/dist/translations/ti.js +1 -1
  131. package/dist/translations/ti.umd.js +1 -1
  132. package/dist/translations/tk.js +1 -1
  133. package/dist/translations/tk.umd.js +1 -1
  134. package/dist/translations/tr.js +1 -1
  135. package/dist/translations/tr.umd.js +1 -1
  136. package/dist/translations/tt.js +1 -1
  137. package/dist/translations/tt.umd.js +1 -1
  138. package/dist/translations/ug.js +1 -1
  139. package/dist/translations/ug.umd.js +1 -1
  140. package/dist/translations/uk.js +1 -1
  141. package/dist/translations/uk.umd.js +1 -1
  142. package/dist/translations/ur.js +1 -1
  143. package/dist/translations/ur.umd.js +1 -1
  144. package/dist/translations/uz.js +1 -1
  145. package/dist/translations/uz.umd.js +1 -1
  146. package/dist/translations/vi.js +1 -1
  147. package/dist/translations/vi.umd.js +1 -1
  148. package/dist/translations/zh-cn.js +1 -1
  149. package/dist/translations/zh-cn.umd.js +1 -1
  150. package/dist/translations/zh.js +1 -1
  151. package/dist/translations/zh.umd.js +1 -1
  152. package/lang/contexts.json +5 -0
  153. package/package.json +15 -15
  154. package/src/aiactions/aiactions.js +1 -1
  155. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  156. package/src/aiactions/model/aiactionsreply.js +1 -1
  157. package/src/aiassistant/adapters/aiadapter.js +1 -1
  158. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  159. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  160. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  161. package/src/aiassistant/aiassistant.js +1 -1
  162. package/src/aiassistant/aiassistantediting.js +1 -1
  163. package/src/aiassistant/aiassistantui.js +1 -1
  164. package/src/aiassistant/legacyerrors.js +1 -1
  165. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  166. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  167. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  168. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  169. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  170. package/src/aiassistant/ui/form/aiformview.js +1 -1
  171. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  172. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  173. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  174. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  175. package/src/aiassistant/utils/common-translations.js +1 -1
  176. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  177. package/src/aiballoon/aiballoon.js +1 -1
  178. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  179. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  180. package/src/aiballoon/ui/aiballoonview.js +1 -1
  181. package/src/aichat/aichat.d.ts +3 -3
  182. package/src/aichat/aichat.js +1 -1
  183. package/src/aichat/aichatcontroller.js +1 -1
  184. package/src/aichat/aichatui.d.ts +6 -0
  185. package/src/aichat/aichatui.js +1 -1
  186. package/src/aichat/model/aichatcontext.js +1 -1
  187. package/src/aichat/model/aichatconversation.d.ts +2 -4
  188. package/src/aichat/model/aichatconversation.js +1 -1
  189. package/src/aichat/model/aichatinteraction.js +1 -1
  190. package/src/aichat/model/aichatmodels.d.ts +11 -4
  191. package/src/aichat/model/aichatmodels.js +1 -1
  192. package/src/aichat/ui/aichatcontrolsview.d.ts +9 -0
  193. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  194. package/src/aichat/ui/aichatfeedview.js +1 -1
  195. package/src/aichat/ui/aichatheaderview.js +1 -1
  196. package/src/aichat/ui/aichatview.js +1 -1
  197. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  198. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  199. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  200. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  201. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  202. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  203. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  204. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  205. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  206. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  207. package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
  208. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  209. package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
  210. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  211. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  212. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  213. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  214. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  215. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  216. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  217. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  218. package/src/aichat/utils/eventnames.js +1 -1
  219. package/src/aichat/utils/promisequeue.js +1 -1
  220. package/src/aichat/utils/scrollmanager.js +1 -1
  221. package/src/aichathistory/aichathistory.js +1 -1
  222. package/src/aichathistory/aichathistorycontroller.js +1 -1
  223. package/src/aichathistory/aichathistoryui.js +1 -1
  224. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  225. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  226. package/src/aichathistory/ui/aichathistorylistitemview.js +1 -1
  227. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  228. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  229. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  230. package/src/aiconfig.d.ts +4 -0
  231. package/src/aicore/aiconnector.js +1 -1
  232. package/src/aicore/aiediting.js +1 -1
  233. package/src/aicore/model/aicapabilities.js +1 -1
  234. package/src/aicore/model/aicontext.js +1 -1
  235. package/src/aicore/model/aiinteraction.js +1 -1
  236. package/src/aicore/model/aireply.d.ts +1 -1
  237. package/src/aicore/model/aireply.js +1 -1
  238. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  239. package/src/aicore/pipeline/airesponseparser.js +2 -2
  240. package/src/aicore/ui/aidisclaimerview.js +1 -1
  241. package/src/aicore/ui/aiskeleton.js +1 -1
  242. package/src/aicore/ui/aispinner.js +1 -1
  243. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  244. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  245. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  246. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  247. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  248. package/src/aicore/utils/common-translations.js +1 -1
  249. package/src/aicore/utils/createresizebutton.js +1 -1
  250. package/src/aicore/utils/documentposition.js +1 -1
  251. package/src/aicore/utils/documentrange.js +1 -1
  252. package/src/aicore/utils/eventnames.js +1 -1
  253. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  254. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  255. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  256. package/src/aicore/utils/htmlparser.js +1 -1
  257. package/src/aicore/utils/htmlstreamer.js +1 -1
  258. package/src/aieditorintegration/aieditorintegration.js +1 -1
  259. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  260. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  261. package/src/aiquickactions/aiquickactions.d.ts +2 -1
  262. package/src/aiquickactions/aiquickactions.js +1 -1
  263. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  264. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  265. package/src/aiquickactions/aiquickactionsui.js +1 -1
  266. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.d.ts +2 -1
  267. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  268. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  269. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  270. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  271. package/src/aireviewmode/aireviewmode.js +1 -1
  272. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  273. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  274. package/src/aireviewmode/aireviewmodeui.d.ts +3 -1
  275. package/src/aireviewmode/aireviewmodeui.js +1 -1
  276. package/src/aireviewmode/model/aireviewcheck.js +1 -1
  277. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  278. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  279. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  280. package/src/aireviewmode/model/aireviewcheckresultchange.d.ts +6 -0
  281. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  282. package/src/aireviewmode/model/aireviewcheckrun.d.ts +31 -3
  283. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  284. package/src/aireviewmode/model/aireviewcustomcheckrun.d.ts +1 -1
  285. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  286. package/src/aireviewmode/model/aireviewmodels.js +1 -1
  287. package/src/aireviewmode/model/aireviewsystemcheckrun.d.ts +5 -1
  288. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  289. package/src/aireviewmode/ui/aireviemodepromptinputview.d.ts +7 -5
  290. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  291. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.d.ts +3 -0
  292. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  293. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.d.ts +4 -0
  294. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  295. package/src/aireviewmode/ui/aireviewmodecustomcheckview.d.ts +27 -3
  296. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  297. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  298. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.d.ts +13 -1
  299. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  300. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  301. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  302. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  303. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.d.ts +1 -1
  304. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  305. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  306. package/src/aitabs/aitabs.js +1 -1
  307. package/src/aitabs/aitabsmainview.d.ts +4 -0
  308. package/src/aitabs/aitabsmainview.js +1 -1
  309. package/src/aitabs/tabs/aitabsview.js +1 -1
  310. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  311. package/src/aitabs/tabs/tabpanelview.js +1 -1
  312. package/src/errors.d.ts +5 -0
  313. package/src/errors.js +23 -0
  314. package/src/index.js +1 -1
  315. package/theme/aichat/aichat-controls/aichat-context-controls-balloon-panels.css +4 -0
  316. package/theme/aichat/aichat-controls/model-unavailable-message.css +39 -0
  317. package/theme/aichat/aichat-controls.css +1 -0
  318. package/theme/aichat/aichat.css +0 -1
  319. package/theme/aichat/aichatfeed.css +9 -0
  320. package/theme/aichat/aisuggestioncontainer.css +7 -1
  321. package/theme/aireviewmode/aireviewmode-balloon-panel-suggestion.css +4 -0
  322. package/theme/aireviewmode/aireviewmode-check-list.css +4 -0
  323. package/theme/aireviewmode/aireviewmode-check-run-result.css +25 -19
  324. package/theme/aireviewmode/aireviewmode-check-run.css +35 -7
  325. package/theme/aitabs/aitabsview.css +2 -2
  326. package/theme/aitabs/tabs/tabsview.css +13 -3
  327. package/src/aireviewmode/ui/form/aireviewmodeformamanager.d.ts +0 -16
  328. package/src/aireviewmode/ui/form/aireviewmodeformamanager.js +0 -23
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x36c900=_0x1d44;(function(_0x468e21,_0x57f3af){const _0x56e174=_0x1d44,_0x467215=_0x468e21();while(!![]){try{const _0x2e1c58=-parseInt(_0x56e174(0x22c))/0x1*(-parseInt(_0x56e174(0x1ec))/0x2)+parseInt(_0x56e174(0x1d9))/0x3*(-parseInt(_0x56e174(0x216))/0x4)+-parseInt(_0x56e174(0x1dc))/0x5*(parseInt(_0x56e174(0x20e))/0x6)+-parseInt(_0x56e174(0x22e))/0x7+-parseInt(_0x56e174(0x1cb))/0x8+parseInt(_0x56e174(0x1d8))/0x9+parseInt(_0x56e174(0x239))/0xa*(parseInt(_0x56e174(0x1fc))/0xb);if(_0x2e1c58===_0x57f3af)break;else _0x467215['push'](_0x467215['shift']());}catch(_0x8c1909){_0x467215['push'](_0x467215['shift']());}}}(_0x353c,0x4b7ae));import{BalloonPanelView as _0x41d97f,ButtonView as _0x3d94e0,clickOutsideHandler as _0x45bcea,FileDialogButtonView as _0xeb0112,IconView as _0x20972b,View as _0x26500c}from'ckeditor5/src/ui.js';function _0x353c(){const _0x1af593=['ck-ai-chat-context-controls','extendTemplate','render','current','setConversationContext','ck-ai-chat-context-controls__add-context-button','_urlBalloonPanelView','northArrowSouthWest','hideAddContextBalloonPanel','4777344WScepG','7374YHlvpj','destroy','_overflowManager','4670SXsbPI','_createAddContextButtonView','setContainerElement','document','clear','closeSourceResourceBalloon','ck-ai-chat-context-controls__add-context-balloon-panel','div','createCollection','__arrow','southArrowNorthEast','setContextItemLoading','ck-ai-chat','arrowView','ck-reset_all-excluded','_setupTemplate','830658elXToB','balloonView','addFileToContext','body','children','enabled','buttonView','label','done','_setupAddContextBalloonClickOutsideHandler','type','hide','_setupAllBalloonClickOutsideHandlers','focus','addContextButtonView','showAddContextBalloonPanel','330803bvCjGf','ck-ai-chat-context-chips-wrapper-balloon','isAnyResourceBalloonVisible','ck-ai-chat-context-controls__balloon-button-source','isLoading','AI_CHAT_CONTEXT_FILE_LABEL','_handleAddContextButtonClick','clearConversationContextItems','_handleUrlSubmit','northArrowSouth','ck-ai-chat-context-controls__show-more-balloon-panel','_createResourcesBalloonView','_resourcesBalloonView','_urlInputView','_showSourceResourcesBalloon','set','refreshBalloon','northArrowSouthEast','258MYAuJy','southArrowNorthWest','menuitem','AI_CHAT_CONTEXT_URL_LABEL','urls','reorganizeChips','ck-ai-chat-context-controls__url-balloon-panel','showUrlBalloonPanel','232PVEXcY','bind','addResourceToContext','locale','populateSourceResourceBalloon','_addContextToCollection','_addContextBalloonConfig','ck-ai-chat-context-controls__pending-contexts','bodyCollection','_currentContextsChips','_addUrlContent','updateResourceState','conversation','addContextItem','show','ck-ai-chat-context-controls__balloon-button','find','addUrlToContext','defaultPositions','_createBalloonButton','removeContextItemChip','_createUrlBalloonPanelView','1YRMRsZ','execute','2605050zdhylq','_createBaseBalloonPanel','files','icon','sources','showSourceResourcesBalloon','pin','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','_addContextBalloonPanelView','add','source','80AMkvQO','_toggleAddContextBalloon','isHidden','isReadOnly','overflowChips','remove','loadSourceResources','hideUrlBalloonPanel','_conversationContextsChips','_setupUrlBalloonClickOutsideHandler','_getLimiterElement','_removeContextFromCollection','isOn','ck-ai-chat-controls-button','AI_CHAT_CONTEXT_ADD_CONTEXT','removeContextItem','cancel','closest','_createArrowView','setAddContextOptions','tooltip','_createAddContextBalloonPanelView','fire','element','ck-ai-chat-controls_context_show-more-button','isVisible','_bindEventHandlers','clearCurrentContextItems','addDocumentToContext','southArrowNorth','content','isEnabled','setTemplate','submitUrl','2581496JfEkdf','_createContextButton','_setAddContextButtonEnabled','_setBalloonPanelContent'];_0x353c=function(){return _0x1af593;};return _0x353c();}import{IconBrowseFiles as _0x377068,IconDocument as _0x113d1e,IconDocumentOutline as _0x3f90d,IconDropdownArrow as _0x5d5851,IconLink as _0x566031,IconPaperClip as _0x36ff08}from'@ckeditor/ckeditor5-icons';function _0x1d44(_0x5f3978,_0x469145){const _0x353cf5=_0x353c();return _0x1d44=function(_0x1d4482,_0x1f2bc9){_0x1d4482=_0x1d4482-0x1b9;let _0x429807=_0x353cf5[_0x1d4482];return _0x429807;},_0x1d44(_0x5f3978,_0x469145);}import{AIChatContextItemButtonView as _0x592154}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x39d29c}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x1fe335}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x1dabd2}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x33a431}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x36c900(0x1c5),_0x36c900(0x1ee),_0x36c900(0x227),_0x36c900(0x218),_0x36c900(0x248),_0x36c900(0x23f)];const vo=_0x36c900(0x1cf),go=_0x36c900(0x21d),Vo=_0x36c900(0x1e2),Io=_0x36c900(0x1d4),Po=_0x36c900(0x214),Ro=_0x36c900(0x225),So=_0x36c900(0x1ff),uo=_0x36c900(0x246),Uo=_0x36c900(0x1fd),xo=_0x36c900(0x1c1),fo=_0x36c900(0x206),Lo=_0x36c900(0x1e8),No=[_0x41d97f[_0x36c900(0x228)][_0x36c900(0x1d6)],_0x41d97f[_0x36c900(0x228)][_0x36c900(0x205)],_0x41d97f[_0x36c900(0x228)][_0x36c900(0x20d)],_0x41d97f[_0x36c900(0x228)][_0x36c900(0x20f)],_0x41d97f[_0x36c900(0x228)][_0x36c900(0x1c6)],_0x41d97f[_0x36c900(0x228)][_0x36c900(0x1e6)]];export class AIChatContextPanelView extends _0x26500c{[_0x36c900(0x1fa)];[_0x36c900(0x21f)]=this[_0x36c900(0x1e4)]();[_0x36c900(0x241)]=this[_0x36c900(0x1e4)]();[_0x36c900(0x1db)];[_0x36c900(0x236)];[_0x36c900(0x1d5)];[_0x36c900(0x209)];[_0x36c900(0x208)];[_0x36c900(0x21c)];[_0x36c900(0x21e)];constructor(_0x3bed45,_0x27d6f8){const _0x269bbe=_0x36c900;super(_0x3bed45),this[_0x269bbe(0x21e)]=_0x27d6f8,this[_0x269bbe(0x21f)]=this[_0x269bbe(0x1e4)](),this[_0x269bbe(0x241)]=this[_0x269bbe(0x1e4)](),this[_0x269bbe(0x1fa)]=this[_0x269bbe(0x1dd)](_0x3bed45),this[_0x269bbe(0x236)]=this[_0x269bbe(0x1be)](_0x3bed45),this[_0x269bbe(0x1d5)]=this[_0x269bbe(0x22b)](_0x3bed45),this[_0x269bbe(0x208)]=this[_0x269bbe(0x207)](_0x3bed45,_0x27d6f8);const _0x1f3d57={'cssClasses':{'showMoreButton':xo,'showMoreBalloon':fo,'overflowContainer':Uo,'controlsButton':uo}};this[_0x269bbe(0x1db)]=new _0x1fe335(_0x3bed45,this[_0x269bbe(0x21f)],_0x1f3d57,this[_0x269bbe(0x21e)],this),this[_0x269bbe(0x21c)]={'buttonView':this[_0x269bbe(0x1fa)],'balloonView':this[_0x269bbe(0x236)],'hideMethod':this[_0x269bbe(0x1d7)][_0x269bbe(0x217)](this),'showMethod':this[_0x269bbe(0x1fb)][_0x269bbe(0x217)](this)},this[_0x269bbe(0x1eb)](),this[_0x269bbe(0x1c3)]();}[_0x36c900(0x1d1)](){const _0x11b36f=_0x36c900;super[_0x11b36f(0x1d1)](),this[_0x11b36f(0x1f8)](),this[_0x11b36f(0x1db)][_0x11b36f(0x1de)](this[_0x11b36f(0x1c0)]),this[_0x11b36f(0x1db)][_0x11b36f(0x213)]();}[_0x36c900(0x1da)](){const _0x1cfa83=_0x36c900;super[_0x1cfa83(0x1da)](),this[_0x1cfa83(0x1db)][_0x1cfa83(0x1da)](),this[_0x1cfa83(0x208)][_0x1cfa83(0x1da)]();}[_0x36c900(0x223)](_0x3835bf,_0x58697c){const _0x42f54f=_0x36c900,_0x208439=this[_0x42f54f(0x1cc)](_0x3835bf,_0x42f54f(0x1d2),!0x0,_0x58697c);this[_0x42f54f(0x21b)](_0x208439,this[_0x42f54f(0x21f)]),this[_0x42f54f(0x1db)][_0x42f54f(0x213)]();}[_0x36c900(0x248)](_0x4f3a48){const _0x21e542=_0x36c900;this[_0x21e542(0x244)](_0x4f3a48,this[_0x21e542(0x21f)]),this[_0x21e542(0x244)](_0x4f3a48,this[_0x21e542(0x1db)][_0x21e542(0x23d)]),this[_0x21e542(0x1db)][_0x21e542(0x213)]();}[_0x36c900(0x1e7)](_0xcb3710,_0x5b9b19){const _0x44455=_0x36c900;let _0x36de8c=this[_0x44455(0x21f)][_0x44455(0x226)](_0x8b06da=>_0x8b06da['id']===_0xcb3710);_0x36de8c||(_0x36de8c=this[_0x44455(0x1db)][_0x44455(0x23d)][_0x44455(0x226)](_0x21c1cc=>_0x21c1cc['id']===_0xcb3710)),_0x36de8c&&(_0x36de8c[_0x44455(0x200)]=_0x5b9b19);}[_0x36c900(0x1d3)](_0x3a5836){const _0x5648bb=_0x36c900;this[_0x5648bb(0x241)][_0x5648bb(0x1e0)]();for(const _0x1f87d1 of _0x3a5836){const _0x3e40e8=this[_0x5648bb(0x1cc)](_0x1f87d1,_0x5648bb(0x222),!0x1,!0x1);this[_0x5648bb(0x21b)](_0x3e40e8,this[_0x5648bb(0x241)]);}}[_0x36c900(0x1c4)](){const _0x353628=_0x36c900;this[_0x353628(0x21f)][_0x353628(0x1e0)](),this[_0x353628(0x1db)][_0x353628(0x1e0)]();}[_0x36c900(0x203)](){const _0x40e192=_0x36c900;this[_0x40e192(0x241)][_0x40e192(0x1e0)]();}[_0x36c900(0x221)](_0x2084cc,_0xf7380f,_0x41adbe){const _0x8e663b=_0x36c900;this[_0x8e663b(0x208)][_0x8e663b(0x221)](_0x2084cc,_0xf7380f,_0x41adbe);}[_0x36c900(0x1d7)](){const _0x141624=_0x36c900;this[_0x141624(0x23a)](!0x1);}[_0x36c900(0x1fb)](){const _0x7f4bfc=_0x36c900;this[_0x7f4bfc(0x23a)](!0x0);}[_0x36c900(0x240)](){const _0x17284d=_0x36c900;this[_0x17284d(0x1d5)][_0x17284d(0x1f7)](),this[_0x17284d(0x1fa)][_0x17284d(0x245)]=!0x1,this[_0x17284d(0x209)]&&this[_0x17284d(0x209)][_0x17284d(0x1e0)]();}[_0x36c900(0x215)](){const _0x4491b0=_0x36c900;this[_0x4491b0(0x1d5)][_0x4491b0(0x224)](),this[_0x4491b0(0x1fa)][_0x4491b0(0x245)]=!0x0;}[_0x36c900(0x20a)](_0x5c7b1f){const _0x53befb=_0x36c900;this[_0x53befb(0x208)][_0x53befb(0x233)](_0x5c7b1f),this[_0x53befb(0x1fa)][_0x53befb(0x245)]=!0x0;}[_0x36c900(0x21a)](_0x520e27,_0x57db92,_0x3df67a,_0x573a76){const _0x1c0075=_0x36c900;this[_0x1c0075(0x208)][_0x1c0075(0x21a)](_0x520e27,_0x3df67a,_0x573a76);}[_0x36c900(0x1e1)](_0x6cc4ba){const _0x5255ce=_0x36c900;this[_0x5255ce(0x208)][_0x5255ce(0x1e1)](_0x6cc4ba),this[_0x5255ce(0x1fa)][_0x5255ce(0x245)]=!0x1;}[_0x36c900(0x1bc)](_0x370938){const _0x4c0e4e=_0x36c900;this[_0x4c0e4e(0x1ce)](this[_0x4c0e4e(0x236)],this[_0x4c0e4e(0x219)],_0x370938),this[_0x4c0e4e(0x1cd)](_0x370938);}[_0x36c900(0x1cd)](_0x38503d){const _0x132847=_0x36c900,_0x2dc6f4=!_0x38503d[_0x132847(0x1df)][_0x132847(0x23b)]&&_0x38503d[_0x132847(0x1df)][_0x132847(0x1f1)],_0x532051=_0x38503d[_0x132847(0x212)][_0x132847(0x1f1)],_0x209d21=_0x38503d[_0x132847(0x230)][_0x132847(0x1f1)];this[_0x132847(0x1fa)][_0x132847(0x1c8)]=_0x2dc6f4||_0x532051||_0x209d21;}[_0x36c900(0x1eb)](){const _0x3e1057=_0x36c900;this[_0x3e1057(0x1c9)]({'tag':_0x3e1057(0x1e3),'attributes':{'class':[vo,_0x3e1057(0x1ea)]},'children':[{'tag':_0x3e1057(0x1e3),'attributes':{'class':go},'children':this[_0x3e1057(0x21f)]}]});}[_0x36c900(0x1c3)](){const _0x37704d=_0x36c900;this[_0x37704d(0x1fa)]['on'](_0x37704d(0x22d),()=>{const _0x5f24fd=_0x37704d;this[_0x5f24fd(0x202)]();});}[_0x36c900(0x1dd)](_0x155cbf){const _0x1896a1=_0x36c900,_0x33075a=new _0x3d94e0(_0x155cbf);return _0x33075a[_0x1896a1(0x20b)]({'label':_0x1dabd2(_0x155cbf,_0x1896a1(0x247)),'class':uo+'\x20'+Io,'icon':_0x36ff08,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x33075a;}[_0x36c900(0x1be)](_0x993491){const _0x5cbd55=_0x36c900;return this[_0x5cbd55(0x22f)](_0x993491,Vo);}[_0x36c900(0x22b)](_0x57e9b2){const _0x246b1a=_0x36c900,_0x7e5be3=this[_0x246b1a(0x22f)](_0x57e9b2,Po);return this[_0x246b1a(0x220)](_0x7e5be3,_0x57e9b2),_0x7e5be3;}[_0x36c900(0x207)](_0xe84e5a,_0x543cf9){const _0x5c94c0=_0x36c900;return new _0x33a431(_0xe84e5a,_0x543cf9,{'onBackToContext':()=>{const _0x1b2221=_0x1d44;this[_0x1b2221(0x1fb)](),this[_0x1b2221(0x236)][_0x1b2221(0x234)]({'target':this[_0x1b2221(0x1fa)][_0x1b2221(0x1c0)],'limiter':this[_0x1b2221(0x243)](),'positions':No});},'onResourceSelected':(_0x175f6d,_0x396e4a)=>{const _0x3c5b9c=_0x1d44;this[_0x3c5b9c(0x1bf)](_0x3c5b9c(0x218),{'source':_0x175f6d,'resource':_0x396e4a});},'onLoadSourceResources':_0x307491=>{const _0x580698=_0x1d44;this[_0x580698(0x1bf)](_0x580698(0x23f),_0x307491);},'onBalloonClosed':()=>{const _0x1893cf=_0x1d44;this[_0x1893cf(0x1fa)][_0x1893cf(0x245)]=!0x1;},'getLimiterElement':()=>this[_0x5c94c0(0x243)](),'getTargetElement':()=>this[_0x5c94c0(0x1fa)][_0x5c94c0(0x1c0)]});}[_0x36c900(0x243)](){const _0x129f1e=_0x36c900;return this[_0x129f1e(0x1c0)]?.[_0x129f1e(0x1ba)]('.'+Lo)||document[_0x129f1e(0x1ef)];}[_0x36c900(0x22f)](_0x202cc0,_0x5c8b31){const _0x5276f1=_0x36c900,_0x479ad3=new _0x41d97f(_0x202cc0);return _0x479ad3[_0x5276f1(0x1d0)]({'attributes':{'class':_0x5c8b31}}),this[_0x5276f1(0x21e)][_0x5276f1(0x237)](_0x479ad3),_0x479ad3;}[_0x36c900(0x1ce)](_0x2a5b32,_0x28bb9e,_0x4894be){const _0x3ce011=_0x36c900;if(_0x2a5b32[_0x3ce011(0x1c7)][_0x3ce011(0x1e0)](),!_0x4894be[_0x3ce011(0x1df)][_0x3ce011(0x23b)]&&_0x4894be[_0x3ce011(0x1df)][_0x3ce011(0x1f1)]){const _0x5ad025=this[_0x3ce011(0x229)](_0x28bb9e,{'label':_0x1dabd2(_0x28bb9e,_0x3ce011(0x235)),'icon':_0x113d1e});_0x5ad025['on'](_0x3ce011(0x22d),()=>{const _0x22c55b=_0x3ce011;this[_0x22c55b(0x1bf)](_0x22c55b(0x1c5)),this[_0x22c55b(0x1d7)]();}),_0x2a5b32[_0x3ce011(0x1c7)][_0x3ce011(0x237)](_0x5ad025);}if(_0x4894be[_0x3ce011(0x212)][_0x3ce011(0x1f1)]){const _0x1eeda6=this[_0x3ce011(0x229)](_0x28bb9e,{'label':_0x1dabd2(_0x28bb9e,_0x3ce011(0x211)),'icon':_0x566031});_0x1eeda6['on'](_0x3ce011(0x22d),()=>{const _0x5cee07=_0x3ce011;this[_0x5cee07(0x1d7)](),this[_0x5cee07(0x215)](),this[_0x5cee07(0x1d5)][_0x5cee07(0x234)]({'target':this[_0x5cee07(0x1fa)][_0x5cee07(0x1c0)],'limiter':this[_0x5cee07(0x243)](),'positions':No}),this[_0x5cee07(0x209)][_0x5cee07(0x1f9)]();}),_0x2a5b32[_0x3ce011(0x1c7)][_0x3ce011(0x237)](_0x1eeda6);}if(_0x4894be[_0x3ce011(0x230)][_0x3ce011(0x1f1)]){const _0x2caf5b=new _0xeb0112(_0x28bb9e);_0x2caf5b[_0x3ce011(0x20b)]({'label':_0x1dabd2(_0x28bb9e,_0x3ce011(0x201)),'icon':_0x377068,'withText':!0x0,'tooltip':!0x0,'class':Ro,'allowMultipleFiles':!0x0}),_0x2caf5b['on'](_0x3ce011(0x1f4),(_0x17340b,_0x516c3e)=>{const _0x3646a1=_0x3ce011;this[_0x3646a1(0x1bf)](_0x3646a1(0x1ee),_0x516c3e),this[_0x3646a1(0x1d7)]();}),_0x2caf5b[_0x3ce011(0x1bd)]=!0x0,_0x2a5b32[_0x3ce011(0x1c7)][_0x3ce011(0x237)](_0x2caf5b);}for(const _0x4bba22 of _0x4894be[_0x3ce011(0x232)]){const _0x2d9587=this[_0x3ce011(0x229)](_0x28bb9e,{'label':_0x4bba22[_0x3ce011(0x1f3)],'icon':_0x4bba22[_0x3ce011(0x231)]||_0x3f90d,'type':_0x3ce011(0x238)});_0x2a5b32[_0x3ce011(0x1c7)][_0x3ce011(0x237)](_0x2d9587),_0x2d9587['on'](_0x3ce011(0x22d),()=>{const _0x533835=_0x3ce011;this[_0x533835(0x1d7)](),this[_0x533835(0x20a)](_0x4bba22);});}}[_0x36c900(0x220)](_0x55106b,_0x145bfb){const _0x57f05e=_0x36c900;this[_0x57f05e(0x209)]=new _0x39d29c(_0x145bfb),this[_0x57f05e(0x209)]['on'](_0x57f05e(0x1ca),(_0x493041,_0x283d48)=>{const _0x983861=_0x57f05e;this[_0x983861(0x204)](_0x283d48);}),this[_0x57f05e(0x209)]['on'](_0x57f05e(0x1b9),()=>{const _0x35d98d=_0x57f05e;this[_0x35d98d(0x240)](),this[_0x35d98d(0x1fb)](),this[_0x35d98d(0x236)][_0x35d98d(0x234)]({'target':this[_0x35d98d(0x1fa)][_0x35d98d(0x1c0)],'limiter':this[_0x35d98d(0x243)](),'positions':No});}),this[_0x57f05e(0x209)]['on'](_0x57f05e(0x20c),()=>{const _0x4e0ba4=_0x57f05e;this[_0x4e0ba4(0x1d5)][_0x4e0ba4(0x1c2)]&&this[_0x4e0ba4(0x1d5)][_0x4e0ba4(0x234)]({'target':this[_0x4e0ba4(0x1fa)][_0x4e0ba4(0x1c0)],'limiter':this[_0x4e0ba4(0x243)](),'positions':No});}),_0x55106b[_0x57f05e(0x1c7)][_0x57f05e(0x237)](this[_0x57f05e(0x209)]);}[_0x36c900(0x229)](_0x2efc96,_0x2f56af){const _0x1cd004=_0x36c900,_0x2db6e5=_0x1cd004(0x238)===_0x2f56af[_0x1cd004(0x1f6)]?new SourcesBalloonButtonView(_0x2efc96):new _0x3d94e0(_0x2efc96);return _0x2db6e5[_0x1cd004(0x20b)]({'label':_0x2f56af[_0x1cd004(0x1f3)],'icon':_0x2f56af[_0x1cd004(0x231)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Ro}),_0x2db6e5;}[_0x36c900(0x1f8)](){const _0x37218b=_0x36c900;this[_0x37218b(0x1f5)](),this[_0x37218b(0x242)]();}[_0x36c900(0x242)](){const _0x28a3fb=_0x36c900;_0x45bcea({'emitter':this[_0x28a3fb(0x1d5)],'contextElements':[this[_0x28a3fb(0x1d5)][_0x28a3fb(0x1c0)]],'callback':()=>{const _0x5c49fd=_0x28a3fb;this[_0x5c49fd(0x240)]();},'activator':()=>this[_0x28a3fb(0x1d5)][_0x28a3fb(0x1c2)]});}[_0x36c900(0x23a)](_0x4c15ca){const _0xf2e1fb=_0x36c900,_0x455e7d=this[_0xf2e1fb(0x21c)];_0x455e7d[_0xf2e1fb(0x1f2)][_0xf2e1fb(0x245)]=_0x4c15ca,_0x4c15ca?_0x455e7d[_0xf2e1fb(0x1ed)][_0xf2e1fb(0x224)]():_0x455e7d[_0xf2e1fb(0x1ed)][_0xf2e1fb(0x1f7)]();}[_0x36c900(0x1f5)](){const _0x13bd8d=_0x36c900,{balloonView:_0x438732,buttonView:_0xda3611,hideMethod:_0x15f614}=this[_0x13bd8d(0x21c)];_0x45bcea({'emitter':_0x438732,'contextElements':[_0x438732[_0x13bd8d(0x1c0)],_0xda3611[_0x13bd8d(0x1c0)]],'callback':()=>{_0x15f614();},'activator':()=>_0xda3611[_0x13bd8d(0x245)]&&!this[_0x13bd8d(0x1d5)][_0x13bd8d(0x1c2)]&&!this[_0x13bd8d(0x208)][_0x13bd8d(0x1fe)]()});}[_0x36c900(0x1cc)](_0x1481a3,_0x61e2b4,_0x59c4f3=!0x1,_0x42392b=!0x1){const _0x1c35ca=_0x36c900,_0x3cc34a=_0x1c35ca(0x222)===_0x61e2b4||!0x0===_0x1481a3[_0x1c35ca(0x23c)],_0x31e45e=new _0x592154(this[_0x1c35ca(0x219)],_0x1481a3,_0x3cc34a,_0x59c4f3,_0x42392b);return _0x3cc34a||_0x31e45e['on'](_0x1c35ca(0x22a),()=>{const _0x5b60f7=_0x1c35ca;this[_0x5b60f7(0x1bf)](_0x5b60f7(0x248),_0x31e45e['id']);}),_0x31e45e;}[_0x36c900(0x21b)](_0x2bad2b,_0x913b){const _0x34c24a=_0x36c900;_0x913b[_0x34c24a(0x237)](_0x2bad2b,0x0);}[_0x36c900(0x244)](_0x1c6984,_0x5c2004){const _0x5cb2ad=_0x36c900,_0x5ecb01=_0x5c2004[_0x5cb2ad(0x226)](_0xd7a104=>_0xd7a104['id']===_0x1c6984);_0x5ecb01&&_0x5c2004[_0x5cb2ad(0x23e)](_0x5ecb01);}[_0x36c900(0x202)](){const _0x1d16c8=_0x36c900;this[_0x1d16c8(0x1fa)][_0x1d16c8(0x245)]?this[_0x1d16c8(0x1d7)]():(this[_0x1d16c8(0x1fb)](),this[_0x1d16c8(0x236)][_0x1d16c8(0x234)]({'target':this[_0x1d16c8(0x1fa)][_0x1d16c8(0x1c0)],'limiter':this[_0x1d16c8(0x243)](),'positions':No}));}[_0x36c900(0x204)](_0x5d6956){const _0xbe5689=_0x36c900;this[_0xbe5689(0x209)][_0xbe5689(0x1e0)](),this[_0xbe5689(0x240)](),this[_0xbe5689(0x1bf)](_0xbe5689(0x227),_0x5d6956);}}export class SourcesBalloonButtonView extends _0x3d94e0{[_0x36c900(0x1e9)];constructor(_0x1fbdc0){const _0x3321fa=_0x36c900;super(_0x1fbdc0),this[_0x3321fa(0x20b)]({'withText':!0x0,'role':_0x3321fa(0x210)}),this[_0x3321fa(0x1e9)]=this[_0x3321fa(0x1bb)](),this[_0x3321fa(0x1d0)]({'attributes':{'class':[So]}});}[_0x36c900(0x1d1)](){const _0x39db46=_0x36c900;super[_0x39db46(0x1d1)](),this[_0x39db46(0x1f0)][_0x39db46(0x237)](this[_0x39db46(0x1e9)]);}[_0x36c900(0x1bb)](){const _0x4d0b64=_0x36c900,_0x2cbc3c=new _0x20972b();return _0x2cbc3c[_0x4d0b64(0x1c7)]=_0x5d5851,_0x2cbc3c[_0x4d0b64(0x1d0)]({'attributes':{'class':So+_0x4d0b64(0x1e5)}}),_0x2cbc3c;}}
23
+ const _0x2a36b6=_0x527a;(function(_0x19620f,_0x4d324d){const _0x461063=_0x527a,_0x29fbdf=_0x19620f();while(!![]){try{const _0x2bab2d=parseInt(_0x461063(0x11f))/0x1+-parseInt(_0x461063(0xf8))/0x2+parseInt(_0x461063(0xec))/0x3+-parseInt(_0x461063(0xd4))/0x4+-parseInt(_0x461063(0x13d))/0x5+-parseInt(_0x461063(0xf2))/0x6+parseInt(_0x461063(0x112))/0x7*(parseInt(_0x461063(0xef))/0x8);if(_0x2bab2d===_0x4d324d)break;else _0x29fbdf['push'](_0x29fbdf['shift']());}catch(_0x55b76b){_0x29fbdf['push'](_0x29fbdf['shift']());}}}(_0xab40,0x1a814));import{BalloonPanelView as _0x363dc8,ButtonView as _0x258c9c,clickOutsideHandler as _0x7d2fed,FileDialogButtonView as _0x5c2dac,IconView as _0x126796,View as _0x243f19}from'ckeditor5/src/ui.js';function _0xab40(){const _0x2f279f=['setAddContextOptions','bodyCollection','reorganizeChips','388113BjOJTX','buttonView','_setupTemplate','822552uVeCPv','createCollection','addDocumentToContext','526518SqXPGH','menuitem','_showSourceResourcesBalloon','ck-ai-chat-context-controls__show-more-balloon-panel','ck-ai-chat','_currentContextsChips','285956PiRVXi','element','ck-ai-chat-context-controls__add-context-button','isVisible','urls','isEnabled','_handleAddContextButtonClick','focus','_createResourcesBalloonView','showAddContextBalloonPanel','_addContextBalloonConfig','_addUrlContent','_overflowManager','fire','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','ck-ai-chat-context-controls__balloon-button','isHidden','ck-ai-chat-context-controls__url-balloon-panel','_createArrowView','showUrlBalloonPanel','addUrlToContext','_toggleAddContextBalloon','body','_addContextBalloonPanelView','icon','northArrowSouthEast','28PULPta','extendTemplate','_createAddContextButtonView','closest','AI_CHAT_CONTEXT_URL_LABEL','clear','addContextButtonView','ck-ai-chat-context-controls','hideAddContextBalloonPanel','add','enabled','content','ck-ai-chat-context-controls__pending-contexts','133383lItDkf','addContextItem','_createContextButton','_setupUrlBalloonClickOutsideHandler','_resourcesBalloonView','hideUrlBalloonPanel','tooltip','ck-reset_all-excluded','setTemplate','isAnyResourceBalloonVisible','ck-ai-chat-controls-button','ck-ai-chat-context-chips-wrapper-balloon','locale','clearCurrentContextItems','_bindEventHandlers','_createBaseBalloonPanel','execute','find','defaultPositions','show','type','_getLimiterElement','removeContextItem','render','ck-ai-chat-context-controls__balloon-button-source','clearConversationContextItems','addResourceToContext','pin','showSourceResourcesBalloon','submitUrl','852795xTCYqq','setConversationContext','ck-ai-chat-context-controls__add-context-balloon-panel','_urlBalloonPanelView','_conversationContextsChips','overflowChips','populateSourceResourceBalloon','setContainerElement','northArrowSouthWest','destroy','_setupAddContextBalloonClickOutsideHandler','northArrowSouth','_createUrlBalloonPanelView','refreshBalloon','AI_CHAT_CONTEXT_FILE_LABEL','_removeContextFromCollection','setContextItemLoading','__arrow','cancel','removeContextItemChip','children','files','balloonView','set','arrowView','_setupAllBalloonClickOutsideHandlers','southArrowNorthEast','_setAddContextButtonEnabled','div','isReadOnly','AI_CHAT_CONTEXT_ADD_CONTEXT','addFileToContext','hide','_setBalloonPanelContent','_createAddContextBalloonPanelView','loadSourceResources','656704vnbAjg','done','_handleUrlSubmit','_addContextToCollection','conversation','closeSourceResourceBalloon','southArrowNorthWest','updateResourceState','remove','isOn','_urlInputView','isLoading','current','document','sources','bind','source','southArrowNorth','label','ck-ai-chat-controls_context_show-more-button','_createBalloonButton'];_0xab40=function(){return _0x2f279f;};return _0xab40();}import{IconBrowseFiles as _0x3cd925,IconDocument as _0x512a46,IconDocumentOutline as _0x5bee98,IconDropdownArrow as _0x266538,IconLink as _0x213f71,IconPaperClip as _0x1849f7}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x5d6946}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x396dfb}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x31fbfc}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x5e3b2e}from'../../../aicore/utils/common-translations.js';function _0x527a(_0x17b1d4,_0x661e33){const _0xab4031=_0xab40();return _0x527a=function(_0x527a18,_0x370537){_0x527a18=_0x527a18-0xb4;let _0x2ae212=_0xab4031[_0x527a18];return _0x2ae212;},_0x527a(_0x17b1d4,_0x661e33);}import{AIChatResourcesBalloonView as _0x28cd2e}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x2a36b6(0xf1),_0x2a36b6(0xcf),_0x2a36b6(0x10c),_0x2a36b6(0x139),_0x2a36b6(0x135),_0x2a36b6(0xd3)];const To=_0x2a36b6(0x119),Ao=_0x2a36b6(0x11e),ko=_0x2a36b6(0x13f),Eo=_0x2a36b6(0xfa),vo=_0x2a36b6(0x109),go=_0x2a36b6(0x107),Vo=_0x2a36b6(0x137),fo=_0x2a36b6(0x129),Io=_0x2a36b6(0x12a),Po=_0x2a36b6(0xe7),Ro=_0x2a36b6(0xf5),Uo=_0x2a36b6(0xf6),Lo=[_0x363dc8[_0x2a36b6(0x131)][_0x2a36b6(0xb8)],_0x363dc8[_0x2a36b6(0x131)][_0x2a36b6(0xbb)],_0x363dc8[_0x2a36b6(0x131)][_0x2a36b6(0x111)],_0x363dc8[_0x2a36b6(0x131)][_0x2a36b6(0xda)],_0x363dc8[_0x2a36b6(0x131)][_0x2a36b6(0xe5)],_0x363dc8[_0x2a36b6(0x131)][_0x2a36b6(0xca)]];export class AIChatContextPanelView extends _0x243f19{[_0x2a36b6(0x118)];[_0x2a36b6(0xf7)]=this[_0x2a36b6(0xf0)]();[_0x2a36b6(0xb4)]=this[_0x2a36b6(0xf0)]();[_0x2a36b6(0x104)];[_0x2a36b6(0x10f)];[_0x2a36b6(0x140)];[_0x2a36b6(0xde)];[_0x2a36b6(0x123)];[_0x2a36b6(0x102)];[_0x2a36b6(0xea)];constructor(_0x4c81c0,_0x2c6b56){const _0xdc107e=_0x2a36b6;super(_0x4c81c0),this[_0xdc107e(0xea)]=_0x2c6b56,this[_0xdc107e(0xf7)]=this[_0xdc107e(0xf0)](),this[_0xdc107e(0xb4)]=this[_0xdc107e(0xf0)](),this[_0xdc107e(0x118)]=this[_0xdc107e(0x114)](_0x4c81c0),this[_0xdc107e(0x10f)]=this[_0xdc107e(0xd2)](_0x4c81c0),this[_0xdc107e(0x140)]=this[_0xdc107e(0xbc)](_0x4c81c0),this[_0xdc107e(0x123)]=this[_0xdc107e(0x100)](_0x4c81c0,_0x2c6b56);const _0x3a06cd={'cssClasses':{'showMoreButton':Po,'showMoreBalloon':Ro,'overflowContainer':Io,'controlsButton':fo}};this[_0xdc107e(0x104)]=new _0x31fbfc(_0x4c81c0,this[_0xdc107e(0xf7)],_0x3a06cd,this[_0xdc107e(0xea)],this),this[_0xdc107e(0x102)]={'buttonView':this[_0xdc107e(0x118)],'balloonView':this[_0xdc107e(0x10f)],'hideMethod':this[_0xdc107e(0x11a)][_0xdc107e(0xe3)](this),'showMethod':this[_0xdc107e(0x101)][_0xdc107e(0xe3)](this)},this[_0xdc107e(0xee)](),this[_0xdc107e(0x12d)]();}[_0x2a36b6(0x136)](){const _0x14498f=_0x2a36b6;super[_0x14498f(0x136)](),this[_0x14498f(0xc9)](),this[_0x14498f(0x104)][_0x14498f(0xb7)](this[_0x14498f(0xf9)]),this[_0x14498f(0x104)][_0x14498f(0xeb)]();}[_0x2a36b6(0xb9)](){const _0x294f05=_0x2a36b6;super[_0x294f05(0xb9)](),this[_0x294f05(0x104)][_0x294f05(0xb9)](),this[_0x294f05(0x123)][_0x294f05(0xb9)]();}[_0x2a36b6(0x120)](_0x48d525,_0x473678){const _0x4178c0=_0x2a36b6,_0x35d4f5=this[_0x4178c0(0x121)](_0x48d525,_0x4178c0(0xe0),!0x0,_0x473678);this[_0x4178c0(0xd7)](_0x35d4f5,this[_0x4178c0(0xf7)]),this[_0x4178c0(0x104)][_0x4178c0(0xeb)]();}[_0x2a36b6(0x135)](_0x375b47){const _0x37d414=_0x2a36b6;this[_0x37d414(0xbf)](_0x375b47,this[_0x37d414(0xf7)]),this[_0x37d414(0xbf)](_0x375b47,this[_0x37d414(0x104)][_0x37d414(0xb5)]),this[_0x37d414(0x104)][_0x37d414(0xeb)]();}[_0x2a36b6(0xc0)](_0x43c57d,_0xc22695){const _0x18d41a=_0x2a36b6;let _0x5e79cf=this[_0x18d41a(0xf7)][_0x18d41a(0x130)](_0x3c9758=>_0x3c9758['id']===_0x43c57d);_0x5e79cf||(_0x5e79cf=this[_0x18d41a(0x104)][_0x18d41a(0xb5)][_0x18d41a(0x130)](_0x17721d=>_0x17721d['id']===_0x43c57d)),_0x5e79cf&&(_0x5e79cf[_0x18d41a(0xdf)]=_0xc22695);}[_0x2a36b6(0x13e)](_0x5d55d8){const _0x1d0b0c=_0x2a36b6;this[_0x1d0b0c(0xb4)][_0x1d0b0c(0x117)]();for(const _0x1e4956 of _0x5d55d8){const _0x1f0eaa=this[_0x1d0b0c(0x121)](_0x1e4956,_0x1d0b0c(0xd8),!0x1,!0x1);this[_0x1d0b0c(0xd7)](_0x1f0eaa,this[_0x1d0b0c(0xb4)]);}}[_0x2a36b6(0x12c)](){const _0x1e5a7e=_0x2a36b6;this[_0x1e5a7e(0xf7)][_0x1e5a7e(0x117)](),this[_0x1e5a7e(0x104)][_0x1e5a7e(0x117)]();}[_0x2a36b6(0x138)](){const _0x1a2b34=_0x2a36b6;this[_0x1a2b34(0xb4)][_0x1a2b34(0x117)]();}[_0x2a36b6(0xdb)](_0x24de9a,_0x69df81,_0x33ca4a){const _0x4fe836=_0x2a36b6;this[_0x4fe836(0x123)][_0x4fe836(0xdb)](_0x24de9a,_0x69df81,_0x33ca4a);}[_0x2a36b6(0x11a)](){const _0x4f43bf=_0x2a36b6;this[_0x4f43bf(0x10d)](!0x1);}[_0x2a36b6(0x101)](){const _0x1d207c=_0x2a36b6;this[_0x1d207c(0x10d)](!0x0);}[_0x2a36b6(0x124)](){const _0x3c0ed3=_0x2a36b6;this[_0x3c0ed3(0x140)][_0x3c0ed3(0xd0)](),this[_0x3c0ed3(0x118)][_0x3c0ed3(0xdd)]=!0x1,this[_0x3c0ed3(0xde)]&&this[_0x3c0ed3(0xde)][_0x3c0ed3(0x117)]();}[_0x2a36b6(0x10b)](){const _0x17b028=_0x2a36b6;this[_0x17b028(0x140)][_0x17b028(0x132)](),this[_0x17b028(0x118)][_0x17b028(0xdd)]=!0x0;}[_0x2a36b6(0xf4)](_0x5066a8){const _0x3a4f68=_0x2a36b6;this[_0x3a4f68(0x123)][_0x3a4f68(0x13b)](_0x5066a8),this[_0x3a4f68(0x118)][_0x3a4f68(0xdd)]=!0x0;}[_0x2a36b6(0xb6)](_0x12d39f,_0x31912b,_0x170caf,_0x314ea3){const _0x5c7612=_0x2a36b6;this[_0x5c7612(0x123)][_0x5c7612(0xb6)](_0x12d39f,_0x170caf,_0x314ea3);}[_0x2a36b6(0xd9)](_0x1ea139){const _0xa3ee28=_0x2a36b6;this[_0xa3ee28(0x123)][_0xa3ee28(0xd9)](_0x1ea139),this[_0xa3ee28(0x118)][_0xa3ee28(0xdd)]=!0x1;}[_0x2a36b6(0xe9)](_0x2b78d5){const _0x5129e9=_0x2a36b6;this[_0x5129e9(0xd1)](this[_0x5129e9(0x10f)],this[_0x5129e9(0x12b)],_0x2b78d5),this[_0x5129e9(0xcb)](_0x2b78d5);}[_0x2a36b6(0xcb)](_0x1f60c9){const _0x126a4d=_0x2a36b6,_0x3c4228=!_0x1f60c9[_0x126a4d(0xe1)][_0x126a4d(0x108)]&&_0x1f60c9[_0x126a4d(0xe1)][_0x126a4d(0x11c)],_0x481d2e=_0x1f60c9[_0x126a4d(0xfc)][_0x126a4d(0x11c)],_0x74b6cc=_0x1f60c9[_0x126a4d(0xc5)][_0x126a4d(0x11c)];this[_0x126a4d(0x118)][_0x126a4d(0xfd)]=_0x3c4228||_0x481d2e||_0x74b6cc;}[_0x2a36b6(0xee)](){const _0x2c3ded=_0x2a36b6;this[_0x2c3ded(0x127)]({'tag':_0x2c3ded(0xcc),'attributes':{'class':[To,_0x2c3ded(0x126)]},'children':[{'tag':_0x2c3ded(0xcc),'attributes':{'class':Ao},'children':this[_0x2c3ded(0xf7)]}]});}[_0x2a36b6(0x12d)](){const _0x5f1a48=_0x2a36b6;this[_0x5f1a48(0x118)]['on'](_0x5f1a48(0x12f),()=>{const _0x2a3e51=_0x5f1a48;this[_0x2a3e51(0xfe)]();});}[_0x2a36b6(0x114)](_0x4f81f4){const _0x2e824c=_0x2a36b6,_0x390bf6=new _0x258c9c(_0x4f81f4);return _0x390bf6[_0x2e824c(0xc7)]({'label':_0x5e3b2e(_0x4f81f4,_0x2e824c(0xce)),'class':fo+'\x20'+Eo,'icon':_0x1849f7,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x390bf6;}[_0x2a36b6(0xd2)](_0x415df){const _0x5abef1=_0x2a36b6;return this[_0x5abef1(0x12e)](_0x415df,ko);}[_0x2a36b6(0xbc)](_0x4c49c0){const _0x4ae9c3=_0x2a36b6,_0x16352d=this[_0x4ae9c3(0x12e)](_0x4c49c0,vo);return this[_0x4ae9c3(0x103)](_0x16352d,_0x4c49c0),_0x16352d;}[_0x2a36b6(0x100)](_0xf93236,_0xed1125){const _0x5b929e=_0x2a36b6;return new _0x28cd2e(_0xf93236,_0xed1125,{'onBackToContext':()=>{const _0x716317=_0x527a;this[_0x716317(0x101)](),this[_0x716317(0x10f)][_0x716317(0x13a)]({'target':this[_0x716317(0x118)][_0x716317(0xf9)],'limiter':this[_0x716317(0x134)](),'positions':Lo});},'onResourceSelected':(_0x1d9499,_0x566e7)=>{const _0x2a8c5b=_0x527a;this[_0x2a8c5b(0x105)](_0x2a8c5b(0x139),{'source':_0x1d9499,'resource':_0x566e7});},'onLoadSourceResources':_0x413219=>{const _0x2ee8fd=_0x527a;this[_0x2ee8fd(0x105)](_0x2ee8fd(0xd3),_0x413219);},'onBalloonClosed':()=>{const _0x543b38=_0x527a;this[_0x543b38(0x118)][_0x543b38(0xdd)]=!0x1;},'getLimiterElement':()=>this[_0x5b929e(0x134)](),'getTargetElement':()=>this[_0x5b929e(0x118)][_0x5b929e(0xf9)]});}[_0x2a36b6(0x134)](){const _0xdbc66b=_0x2a36b6;return this[_0xdbc66b(0xf9)]?.[_0xdbc66b(0x115)]('.'+Uo)||document[_0xdbc66b(0x10e)];}[_0x2a36b6(0x12e)](_0x1d6387,_0x45805f){const _0x44c7cf=_0x2a36b6,_0x31b751=new _0x363dc8(_0x1d6387);return _0x31b751[_0x44c7cf(0x113)]({'attributes':{'class':_0x45805f}}),this[_0x44c7cf(0xea)][_0x44c7cf(0x11b)](_0x31b751),_0x31b751;}[_0x2a36b6(0xd1)](_0x39d4b0,_0x3afe1b,_0x215f7f){const _0x57f292=_0x2a36b6;if(_0x39d4b0[_0x57f292(0x11d)][_0x57f292(0x117)](),!_0x215f7f[_0x57f292(0xe1)][_0x57f292(0x108)]&&_0x215f7f[_0x57f292(0xe1)][_0x57f292(0x11c)]){const _0x4d6d22=this[_0x57f292(0xe8)](_0x3afe1b,{'label':_0x5e3b2e(_0x3afe1b,_0x57f292(0x106)),'icon':_0x512a46});_0x4d6d22['on'](_0x57f292(0x12f),()=>{const _0x3453da=_0x57f292;this[_0x3453da(0x105)](_0x3453da(0xf1)),this[_0x3453da(0x11a)]();}),_0x39d4b0[_0x57f292(0x11d)][_0x57f292(0x11b)](_0x4d6d22);}if(_0x215f7f[_0x57f292(0xfc)][_0x57f292(0x11c)]){const _0x623724=this[_0x57f292(0xe8)](_0x3afe1b,{'label':_0x5e3b2e(_0x3afe1b,_0x57f292(0x116)),'icon':_0x213f71});_0x623724['on'](_0x57f292(0x12f),()=>{const _0x57d4af=_0x57f292;this[_0x57d4af(0x11a)](),this[_0x57d4af(0x10b)](),this[_0x57d4af(0x140)][_0x57d4af(0x13a)]({'target':this[_0x57d4af(0x118)][_0x57d4af(0xf9)],'limiter':this[_0x57d4af(0x134)](),'positions':Lo}),this[_0x57d4af(0xde)][_0x57d4af(0xff)]();}),_0x39d4b0[_0x57f292(0x11d)][_0x57f292(0x11b)](_0x623724);}if(_0x215f7f[_0x57f292(0xc5)][_0x57f292(0x11c)]){const _0x4df333=new _0x5c2dac(_0x3afe1b);_0x4df333[_0x57f292(0xc7)]({'label':_0x5e3b2e(_0x3afe1b,_0x57f292(0xbe)),'icon':_0x3cd925,'withText':!0x0,'tooltip':!0x0,'class':go,'allowMultipleFiles':!0x0}),_0x4df333['on'](_0x57f292(0xd5),(_0x1887be,_0x2e32ed)=>{const _0xb3b139=_0x57f292;this[_0xb3b139(0x105)](_0xb3b139(0xcf),_0x2e32ed),this[_0xb3b139(0x11a)]();}),_0x4df333[_0x57f292(0x125)]=!0x0,_0x39d4b0[_0x57f292(0x11d)][_0x57f292(0x11b)](_0x4df333);}for(const _0x5b0eef of _0x215f7f[_0x57f292(0xe2)]){const _0x1c0b8d=this[_0x57f292(0xe8)](_0x3afe1b,{'label':_0x5b0eef[_0x57f292(0xe6)],'icon':_0x5b0eef[_0x57f292(0x110)]||_0x5bee98,'type':_0x57f292(0xe4)});_0x39d4b0[_0x57f292(0x11d)][_0x57f292(0x11b)](_0x1c0b8d),_0x1c0b8d['on'](_0x57f292(0x12f),()=>{const _0x506177=_0x57f292;this[_0x506177(0x11a)](),this[_0x506177(0xf4)](_0x5b0eef);});}}[_0x2a36b6(0x103)](_0x21d173,_0x226c4c){const _0x300119=_0x2a36b6;this[_0x300119(0xde)]=new _0x396dfb(_0x226c4c),this[_0x300119(0xde)]['on'](_0x300119(0x13c),(_0x214e79,_0x1626b1)=>{const _0x1f2da1=_0x300119;this[_0x1f2da1(0xd6)](_0x1626b1);}),this[_0x300119(0xde)]['on'](_0x300119(0xc2),()=>{const _0x486939=_0x300119;this[_0x486939(0x124)](),this[_0x486939(0x101)](),this[_0x486939(0x10f)][_0x486939(0x13a)]({'target':this[_0x486939(0x118)][_0x486939(0xf9)],'limiter':this[_0x486939(0x134)](),'positions':Lo});}),this[_0x300119(0xde)]['on'](_0x300119(0xbd),()=>{const _0x466edd=_0x300119;this[_0x466edd(0x140)][_0x466edd(0xfb)]&&this[_0x466edd(0x140)][_0x466edd(0x13a)]({'target':this[_0x466edd(0x118)][_0x466edd(0xf9)],'limiter':this[_0x466edd(0x134)](),'positions':Lo});}),_0x21d173[_0x300119(0x11d)][_0x300119(0x11b)](this[_0x300119(0xde)]);}[_0x2a36b6(0xe8)](_0x58675e,_0x4621c8){const _0x116294=_0x2a36b6,_0x406772=_0x116294(0xe4)===_0x4621c8[_0x116294(0x133)]?new SourcesBalloonButtonView(_0x58675e):new _0x258c9c(_0x58675e);return _0x406772[_0x116294(0xc7)]({'label':_0x4621c8[_0x116294(0xe6)],'icon':_0x4621c8[_0x116294(0x110)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':go}),_0x406772;}[_0x2a36b6(0xc9)](){const _0xfeedf2=_0x2a36b6;this[_0xfeedf2(0xba)](),this[_0xfeedf2(0x122)]();}[_0x2a36b6(0x122)](){const _0x12fd19=_0x2a36b6;_0x7d2fed({'emitter':this[_0x12fd19(0x140)],'contextElements':[this[_0x12fd19(0x140)][_0x12fd19(0xf9)]],'callback':()=>{const _0x4e96b6=_0x12fd19;this[_0x4e96b6(0x124)]();},'activator':()=>this[_0x12fd19(0x140)][_0x12fd19(0xfb)]});}[_0x2a36b6(0x10d)](_0x4a62d9){const _0x137412=_0x2a36b6,_0x511162=this[_0x137412(0x102)];_0x511162[_0x137412(0xed)][_0x137412(0xdd)]=_0x4a62d9,_0x4a62d9?_0x511162[_0x137412(0xc6)][_0x137412(0x132)]():_0x511162[_0x137412(0xc6)][_0x137412(0xd0)]();}[_0x2a36b6(0xba)](){const _0x8aae4=_0x2a36b6,{balloonView:_0x166457,buttonView:_0x3c6b35,hideMethod:_0x58b40e}=this[_0x8aae4(0x102)];_0x7d2fed({'emitter':_0x166457,'contextElements':[_0x166457[_0x8aae4(0xf9)],_0x3c6b35[_0x8aae4(0xf9)]],'callback':()=>{_0x58b40e();},'activator':()=>_0x3c6b35[_0x8aae4(0xdd)]&&!this[_0x8aae4(0x140)][_0x8aae4(0xfb)]&&!this[_0x8aae4(0x123)][_0x8aae4(0x128)]()});}[_0x2a36b6(0x121)](_0x588f50,_0x126c76,_0x40002b=!0x1,_0x3f7f98=!0x1){const _0x43b04d=_0x2a36b6,_0x1a6dc5=_0x43b04d(0xd8)===_0x126c76||!0x0===_0x588f50[_0x43b04d(0xcd)],_0x3ef555=new _0x5d6946(this[_0x43b04d(0x12b)],_0x588f50,_0x1a6dc5,_0x40002b,_0x3f7f98);return _0x1a6dc5||_0x3ef555['on'](_0x43b04d(0xc3),()=>{const _0x35aa79=_0x43b04d;this[_0x35aa79(0x105)](_0x35aa79(0x135),_0x3ef555['id']);}),_0x3ef555;}[_0x2a36b6(0xd7)](_0x38256a,_0xaf9bc5){const _0x238cf7=_0x2a36b6;_0xaf9bc5[_0x238cf7(0x11b)](_0x38256a,0x0);}[_0x2a36b6(0xbf)](_0x18d693,_0xd97836){const _0x2325a2=_0x2a36b6,_0x291aca=_0xd97836[_0x2325a2(0x130)](_0x23af7f=>_0x23af7f['id']===_0x18d693);_0x291aca&&_0xd97836[_0x2325a2(0xdc)](_0x291aca);}[_0x2a36b6(0xfe)](){const _0x50f5aa=_0x2a36b6;this[_0x50f5aa(0x118)][_0x50f5aa(0xdd)]?this[_0x50f5aa(0x11a)]():(this[_0x50f5aa(0x101)](),this[_0x50f5aa(0x10f)][_0x50f5aa(0x13a)]({'target':this[_0x50f5aa(0x118)][_0x50f5aa(0xf9)],'limiter':this[_0x50f5aa(0x134)](),'positions':Lo}));}[_0x2a36b6(0xd6)](_0x350c3c){const _0x532355=_0x2a36b6;this[_0x532355(0xde)][_0x532355(0x117)](),this[_0x532355(0x124)](),this[_0x532355(0x105)](_0x532355(0x10c),_0x350c3c);}}export class SourcesBalloonButtonView extends _0x258c9c{[_0x2a36b6(0xc8)];constructor(_0x533288){const _0x1c3ef4=_0x2a36b6;super(_0x533288),this[_0x1c3ef4(0xc7)]({'withText':!0x0,'role':_0x1c3ef4(0xf3)}),this[_0x1c3ef4(0xc8)]=this[_0x1c3ef4(0x10a)](),this[_0x1c3ef4(0x113)]({'attributes':{'class':[Vo]}});}[_0x2a36b6(0x136)](){const _0x6c7198=_0x2a36b6;super[_0x6c7198(0x136)](),this[_0x6c7198(0xc4)][_0x6c7198(0x11b)](this[_0x6c7198(0xc8)]);}[_0x2a36b6(0x10a)](){const _0x42b0c4=_0x2a36b6,_0x40fa50=new _0x126796();return _0x40fa50[_0x42b0c4(0x11d)]=_0x266538,_0x40fa50[_0x42b0c4(0x113)]({'attributes':{'class':Vo+_0x42b0c4(0xc1)}}),_0x40fa50;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2ec294=_0x2264;(function(_0x126773,_0x4e5669){const _0x44f30b=_0x2264,_0x1be251=_0x126773();while(!![]){try{const _0x397719=parseInt(_0x44f30b(0xdd))/0x1*(-parseInt(_0x44f30b(0xe0))/0x2)+parseInt(_0x44f30b(0xe5))/0x3+parseInt(_0x44f30b(0xd4))/0x4*(-parseInt(_0x44f30b(0xdc))/0x5)+-parseInt(_0x44f30b(0xeb))/0x6+parseInt(_0x44f30b(0xd8))/0x7*(parseInt(_0x44f30b(0xef))/0x8)+parseInt(_0x44f30b(0xe3))/0x9*(-parseInt(_0x44f30b(0xe2))/0xa)+parseInt(_0x44f30b(0xda))/0xb*(parseInt(_0x44f30b(0xed))/0xc);if(_0x397719===_0x4e5669)break;else _0x1be251['push'](_0x1be251['shift']());}catch(_0x257719){_0x1be251['push'](_0x1be251['shift']());}}}(_0x34cc,0xdc172));import{ButtonView as _0x3c93cf,View as _0x347fa4}from'ckeditor5/src/ui.js';import{IconStop as _0x43d6d5}from'ckeditor5/src/icons.js';function _0x2264(_0x418b28,_0x11b92a){const _0x34cca6=_0x34cc();return _0x2264=function(_0x2264f1,_0x39e0b2){_0x2264f1=_0x2264f1-0xd2;let _0x307c2b=_0x34cca6[_0x2264f1];return _0x307c2b;},_0x2264(_0x418b28,_0x11b92a);}import{getTranslation as _0xdfe5e}from'../../../aicore/utils/common-translations.js';export class AIChatControlsLoaderView extends _0x347fa4{[_0x2ec294(0xe6)];[_0x2ec294(0xe7)];constructor(_0x309f50){const _0x553612=_0x2ec294;super(_0x309f50),this[_0x553612(0xe6)]=this[_0x553612(0xd2)](),this[_0x553612(0xe7)]=this[_0x553612(0xe9)](),this[_0x553612(0xe4)]({'tag':_0x553612(0xdf),'attributes':{'class':['ck',_0x553612(0xea),_0x553612(0xd7)]},'children':[this[_0x553612(0xe7)],this[_0x553612(0xe6)]]});}[_0x2ec294(0xd2)](){const _0xa174aa=_0x2ec294,_0x5ab1bf=new _0x3c93cf(this[_0xa174aa(0xec)]);return _0x5ab1bf[_0xa174aa(0xd6)]({'label':_0xdfe5e(this[_0xa174aa(0xec)],_0xa174aa(0xd3)),'withText':!0x0,'class':_0xa174aa(0xde),'icon':_0x43d6d5}),_0x5ab1bf['on'](_0xa174aa(0xd9),()=>{const _0x1c7c85=_0xa174aa;this[_0x1c7c85(0xd5)](_0x1c7c85(0xe1));}),_0x5ab1bf;}[_0x2ec294(0xe9)](){const _0x4a1fa4=_0x2ec294,_0x3659bf=new _0x347fa4(this[_0x4a1fa4(0xec)]);return _0x3659bf[_0x4a1fa4(0xe4)]({'tag':_0x4a1fa4(0xdf),'attributes':{'class':[_0x4a1fa4(0xdb)]},'children':[{'tag':_0x4a1fa4(0xdf),'attributes':{'class':[_0x4a1fa4(0xee)]},'children':[{'tag':_0x4a1fa4(0xdf),'attributes':{'class':[_0x4a1fa4(0xf0)]}},{'tag':_0x4a1fa4(0xdf),'attributes':{'class':[_0x4a1fa4(0xf0)]}},{'tag':_0x4a1fa4(0xdf),'attributes':{'class':[_0x4a1fa4(0xf0)]}}]},{'text':_0xdfe5e(this[_0x4a1fa4(0xec)],_0x4a1fa4(0xe8))}]}),_0x3659bf;}}function _0x34cc(){const _0x4a757b=['1415OSVWdP','67dKcXsq','ai-chat-controls-loader__cancel-button','div','40582gdkNHU','abortPromptStream','250aKoqwc','268119RdrzwP','setTemplate','4539894pCHITD','_cancelButtonView','_loaderView','AI_CHAT_IS_WRITING','_createLoaderView','ck-ai-chat-controls-loader-wrapper','1744782UxIeJV','locale','1644mUdWJC','ck-ai-chat-controls-loader-icon','1888dgkKoQ','ck-ai-chat-controls-loader-icon-dot','_createCancelButtonView','AI_CHAT_STOP_GENERATING','9572zQNIut','fire','set','ck-reset_all','10304TRQDQb','execute','169664HziPUl','ck-ai-chat-controls-loader'];_0x34cc=function(){return _0x4a757b;};return _0x34cc();}
23
+ const _0x293c3d=_0x3037;(function(_0x10a0c5,_0x272d35){const _0x4501ff=_0x3037,_0x521ddf=_0x10a0c5();while(!![]){try{const _0x391f37=parseInt(_0x4501ff(0x71))/0x1+parseInt(_0x4501ff(0x74))/0x2*(parseInt(_0x4501ff(0x81))/0x3)+parseInt(_0x4501ff(0x68))/0x4*(-parseInt(_0x4501ff(0x69))/0x5)+parseInt(_0x4501ff(0x82))/0x6+-parseInt(_0x4501ff(0x70))/0x7*(parseInt(_0x4501ff(0x7f))/0x8)+parseInt(_0x4501ff(0x6e))/0x9+parseInt(_0x4501ff(0x6c))/0xa*(-parseInt(_0x4501ff(0x75))/0xb);if(_0x391f37===_0x272d35)break;else _0x521ddf['push'](_0x521ddf['shift']());}catch(_0x4905b6){_0x521ddf['push'](_0x521ddf['shift']());}}}(_0x3718,0x71525));function _0x3037(_0x264ba9,_0x5e3770){const _0x3718d4=_0x3718();return _0x3037=function(_0x303780,_0x43179e){_0x303780=_0x303780-0x68;let _0x522833=_0x3718d4[_0x303780];return _0x522833;},_0x3037(_0x264ba9,_0x5e3770);}function _0x3718(){const _0x3ca44f=['_loaderView','_cancelButtonView','ck-ai-chat-controls-loader-icon-dot','ck-ai-chat-controls-loader','setTemplate','AI_CHAT_STOP_GENERATING','_createCancelButtonView','88vYmpJV','set','3WDLmmt','4193232lxQZcR','ck-ai-chat-controls-loader-wrapper','ck-reset_all','_createLoaderView','339968rqLzqb','20CgXAcg','ck-ai-chat-controls-loader-icon','locale','630BefmRq','div','6257772iGItej','execute','805EmmMbr','395463vywmpG','abortPromptStream','fire','1678328hVtvNo','318373DfDinB','AI_CHAT_IS_WRITING','ai-chat-controls-loader__cancel-button'];_0x3718=function(){return _0x3ca44f;};return _0x3718();}import{ButtonView as _0x140e74,View as _0x54fa01}from'ckeditor5/src/ui.js';import{IconStop as _0x350d40}from'ckeditor5/src/icons.js';import{getTranslation as _0x3cdb22}from'../../../aicore/utils/common-translations.js';export class AIChatControlsLoaderView extends _0x54fa01{[_0x293c3d(0x79)];[_0x293c3d(0x78)];constructor(_0x73dc3b){const _0x452801=_0x293c3d;super(_0x73dc3b),this[_0x452801(0x79)]=this[_0x452801(0x7e)](),this[_0x452801(0x78)]=this[_0x452801(0x85)](),this[_0x452801(0x7c)]({'tag':_0x452801(0x6d),'attributes':{'class':['ck',_0x452801(0x83),_0x452801(0x84)]},'children':[this[_0x452801(0x78)],this[_0x452801(0x79)]]});}[_0x293c3d(0x7e)](){const _0x161748=_0x293c3d,_0x502428=new _0x140e74(this[_0x161748(0x6b)]);return _0x502428[_0x161748(0x80)]({'label':_0x3cdb22(this[_0x161748(0x6b)],_0x161748(0x7d)),'withText':!0x0,'class':_0x161748(0x77),'icon':_0x350d40}),_0x502428['on'](_0x161748(0x6f),()=>{const _0x28420e=_0x161748;this[_0x28420e(0x73)](_0x28420e(0x72));}),_0x502428;}[_0x293c3d(0x85)](){const _0x432ed1=_0x293c3d,_0x5b454c=new _0x54fa01(this[_0x432ed1(0x6b)]);return _0x5b454c[_0x432ed1(0x7c)]({'tag':_0x432ed1(0x6d),'attributes':{'class':[_0x432ed1(0x7b)]},'children':[{'tag':_0x432ed1(0x6d),'attributes':{'class':[_0x432ed1(0x6a)]},'children':[{'tag':_0x432ed1(0x6d),'attributes':{'class':[_0x432ed1(0x7a)]}},{'tag':_0x432ed1(0x6d),'attributes':{'class':[_0x432ed1(0x7a)]}},{'tag':_0x432ed1(0x6d),'attributes':{'class':[_0x432ed1(0x7a)]}}]},{'text':_0x3cdb22(this[_0x432ed1(0x6b)],_0x432ed1(0x76))}]}),_0x5b454c;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x1df8(){const _0x5dfc3d=['bindTemplate','tooltip','setModel','ck-ai-chat-controls-button','addMany','reasoningActive','AI_CHAT_DISABLE_REASONING','_modelNameView','_reasoningButton','_modelSelectionDropdown','AI_CHAT_REASONING','modelSelectorVisible','7388300zlYIzR','setTemplate','source','1225084DtAtfP','_createModelNameView','9150768vyFInD','model','text','enabled','execute','_modelSelectionDropdownItems','enableModelSelector','ck-ai-chat-controls__model-selection__item-capabilities','setWebSearch','10856867iiroGl','content','_createCommandsButton','clear','setReasoning','disableModelSelector','3NFsOWX','isOn','2995AVGeaW','button','13naqSEd','ck-ai-chat-controls__model-name','ck-ai-chat-controls__model-selection__item-description','ck-hidden','AI_CHAT_COMMANDS','description','span','_createWebSearchButton','_getCapabilityParts','AI_CHAT_SEARCH_WEB','style','locale','AI_CHAT_ENABLE_REASONING','activeModelId','160602mzDDwz','setModelList','11cCxKio','ck-ai-chat-controls__model-selection__item-name','ck-ai-chat-controls__model-selection','set','modelSelectorEnabled','activeModelName','toggleWebSearch','isEnabled','menuitemradio','Commands\x20are\x20not\x20implemented\x20yet.','div','capabilities','webSearchActive','toggleReasoning','ck-ai-chat__prompt-capabilities','ck-ai-chat-controls-button--commands','withText','12766728NevGpz','_commandsButton','createCollection','webSearch','extendTemplate','label','length','buttonView','bind','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','agent','AI_CHAT_CAPABILITIES_NO','_createModelSelectionDropdown','add','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','fire','listenTo','AI_CHAT_ENABLE_WEB_SEARCH','name','selectModel','AI_CHAT_DISABLE_WEB_SEARCH','_webSearchButton','1518OKxFNT','log','isVisible','toLowerCase','startsWith','reasoning','AI_CHAT_CAPABILITIES_YES','_createReasoningButton','ck-button__label'];_0x1df8=function(){return _0x5dfc3d;};return _0x1df8();}const _0x49fc10=_0x2b0c;(function(_0x5388e0,_0x1d9aa5){const _0x311277=_0x2b0c,_0x925af2=_0x5388e0();while(!![]){try{const _0x87ffb1=-parseInt(_0x311277(0x127))/0x1*(-parseInt(_0x311277(0x135))/0x2)+parseInt(_0x311277(0x123))/0x3*(parseInt(_0x311277(0x112))/0x4)+-parseInt(_0x311277(0x125))/0x5*(parseInt(_0x311277(0xfa))/0x6)+parseInt(_0x311277(0x11d))/0x7+-parseInt(_0x311277(0xe4))/0x8+-parseInt(_0x311277(0x114))/0x9+-parseInt(_0x311277(0x10f))/0xa*(-parseInt(_0x311277(0x137))/0xb);if(_0x87ffb1===_0x1d9aa5)break;else _0x925af2['push'](_0x925af2['shift']());}catch(_0x5420bc){_0x925af2['push'](_0x925af2['shift']());}}}(_0x1df8,0xd5d4f));import{Collection as _0x5246c9}from'ckeditor5/src/utils.js';import{IconAI as _0xf357d7,IconBulb as _0x2b61f7,IconWeb as _0x32b44d}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x199c62,ButtonLabelView as _0x8e4a32,ButtonView as _0x5cde7b,createDropdown as _0x4fc89d,IconView as _0x54b3f1,UIModel as _0x13118f,View as _0x36154d}from'ckeditor5/src/ui.js';function _0x2b0c(_0x383b90,_0x2a23db){const _0x1df8f8=_0x1df8();return _0x2b0c=function(_0x2b0c70,_0x121772){_0x2b0c70=_0x2b0c70-0xd4;let _0x41d0e7=_0x1df8f8[_0x2b0c70];return _0x41d0e7;},_0x2b0c(_0x383b90,_0x2a23db);}import{getTranslation as _0x339bf8}from'../../../aicore/utils/common-translations.js';const Oo=_0x49fc10(0xe1),uo=_0x49fc10(0x106),Ho=_0x49fc10(0xe2),Mo=_0x49fc10(0xd5),Do=_0x49fc10(0xd4),Wo=_0x49fc10(0x129),yo=_0x49fc10(0x11b),Go='n';export class AIChatPromptCapabilitiesView extends _0x36154d{[_0x49fc10(0xf9)];[_0x49fc10(0x10b)];[_0x49fc10(0xe5)];[_0x49fc10(0x10c)];[_0x49fc10(0x119)];[_0x49fc10(0x10a)];constructor(_0x136788){const _0x6586ba=_0x49fc10;super(_0x136788),this[_0x6586ba(0xd6)](_0x6586ba(0xdf),!0x1),this[_0x6586ba(0xd6)](_0x6586ba(0x108),!0x1),this[_0x6586ba(0xd6)](_0x6586ba(0x10e),!0x0),this[_0x6586ba(0xd6)](_0x6586ba(0xd7),!0x0),this[_0x6586ba(0xd6)](_0x6586ba(0x134),''),this[_0x6586ba(0xd6)](_0x6586ba(0xd8),''),this[_0x6586ba(0x10c)]=this[_0x6586ba(0xf0)](),this[_0x6586ba(0x10a)]=this[_0x6586ba(0x113)](),this[_0x6586ba(0xf9)]=this[_0x6586ba(0x12e)](),this[_0x6586ba(0x10b)]=this[_0x6586ba(0x101)](),this[_0x6586ba(0xe5)]=this[_0x6586ba(0x11f)](),this[_0x6586ba(0x10c)][_0x6586ba(0xeb)][_0x6586ba(0xec)](_0x6586ba(0xfc))['to'](this,_0x6586ba(0x10e),_0x1adc79=>_0x1adc79),this[_0x6586ba(0x10c)][_0x6586ba(0xeb)][_0x6586ba(0xec)](_0x6586ba(0x104))['to'](this,_0x6586ba(0xd7),_0x2b6dac=>_0x2b6dac?this[_0x6586ba(0x10c)][_0x6586ba(0xeb)][_0x6586ba(0xe9)]:_0x339bf8(this[_0x6586ba(0x132)],_0x6586ba(0xed))),this[_0x6586ba(0x10c)][_0x6586ba(0xec)](_0x6586ba(0xda))['to'](this,_0x6586ba(0xd7),_0x1e50fc=>_0x1e50fc),this[_0x6586ba(0xf9)][_0x6586ba(0xec)](_0x6586ba(0x124))['to'](this,_0x6586ba(0xdf),_0x5ac9a6=>_0x5ac9a6),this[_0x6586ba(0xf9)][_0x6586ba(0xec)](_0x6586ba(0xe3))['to'](this,_0x6586ba(0x10e),_0x1f289a=>!_0x1f289a),this[_0x6586ba(0xf9)][_0x6586ba(0xec)](_0x6586ba(0x104))['to'](this,_0x6586ba(0xdf),_0x174307=>_0x339bf8(this[_0x6586ba(0x132)],_0x174307?_0x6586ba(0xf8):_0x6586ba(0xf5))),this[_0x6586ba(0x10b)][_0x6586ba(0xec)](_0x6586ba(0x124))['to'](this,_0x6586ba(0x108),_0x32b551=>_0x32b551),this[_0x6586ba(0x10b)][_0x6586ba(0xec)](_0x6586ba(0xe3))['to'](this,_0x6586ba(0x10e),_0x135cd9=>!_0x135cd9),this[_0x6586ba(0x10b)][_0x6586ba(0xec)](_0x6586ba(0x104))['to'](this,_0x6586ba(0x108),_0x54d563=>_0x339bf8(this[_0x6586ba(0x132)],_0x54d563?_0x6586ba(0x109):_0x6586ba(0x133))),this[_0x6586ba(0x110)]({'tag':_0x6586ba(0xdd),'attributes':{'class':[Oo]},'children':[this[_0x6586ba(0x10c)],this[_0x6586ba(0x10a)],this[_0x6586ba(0xf9)],this[_0x6586ba(0x10b)],this[_0x6586ba(0xe5)]]}),this[_0x6586ba(0x119)]=new _0x5246c9(),_0x199c62(this[_0x6586ba(0x10c)],this[_0x6586ba(0x119)]);}[_0x49fc10(0x136)](_0x11e2dd,_0x55c2dd){const _0xafa205=_0x49fc10;if(this[_0xafa205(0xd6)](_0xafa205(0x10e),!(_0x55c2dd&&_0x11e2dd[_0xafa205(0xea)]<=0x1)),this[_0xafa205(0x119)][_0xafa205(0x120)](),_0x11e2dd?.[_0xafa205(0xea)])for(const _0x5e6a03 of _0x11e2dd){const _0x2cee65=new _0x13118f({'label':_0x5e6a03[_0xafa205(0xf6)],'withText':!0x0,'role':_0xafa205(0xdb),'id':_0x5e6a03['id'],'model':_0x5e6a03});_0x2cee65[_0xafa205(0xec)](_0xafa205(0x124))['to'](this,_0xafa205(0x134),_0x515b96=>_0x515b96===_0x5e6a03['id']),this[_0xafa205(0x119)][_0xafa205(0xf1)]({'type':_0xafa205(0x126),'model':_0x2cee65,'labelView':new js(this[_0xafa205(0x132)],_0x5e6a03)});}}[_0x49fc10(0x11c)](_0x29ebf6){const _0x475baf=_0x49fc10;this[_0x475baf(0xd6)](_0x475baf(0xdf),_0x29ebf6);}[_0x49fc10(0x121)](_0x596146){const _0x561006=_0x49fc10;this[_0x561006(0xd6)](_0x561006(0x108),_0x596146);}[_0x49fc10(0x105)](_0x57f18c){const _0x2ffd79=_0x49fc10;if(!_0x57f18c)return;this[_0x2ffd79(0x134)]=_0x57f18c['id'],this[_0x2ffd79(0xd8)]=_0x57f18c[_0x2ffd79(0xf6)]||_0x57f18c['id'],this[_0x2ffd79(0x10c)][_0x2ffd79(0xeb)][_0x2ffd79(0xd6)](_0x2ffd79(0xe9),_0x57f18c[_0x2ffd79(0xf6)]),this[_0x2ffd79(0x10c)][_0x2ffd79(0xeb)][_0x2ffd79(0xd6)](_0x2ffd79(0x104),_0x57f18c[_0x2ffd79(0xf6)]);const _0x3f880d=_0x57f18c[_0x2ffd79(0xde)][_0x2ffd79(0xe7)]?.[_0x2ffd79(0x117)]??!0x1;this[_0x2ffd79(0xd6)](_0x2ffd79(0xdf),!0x1),this[_0x2ffd79(0xf9)][_0x2ffd79(0xd6)](_0x2ffd79(0x124),!0x1),this[_0x2ffd79(0xf9)][_0x2ffd79(0xd6)](_0x2ffd79(0xda),_0x3f880d),this[_0x2ffd79(0xf9)][_0x2ffd79(0xd6)](_0x2ffd79(0xfc),_0x3f880d);const _0x3b9173=_0x57f18c[_0x2ffd79(0xde)][_0x2ffd79(0xff)]?.[_0x2ffd79(0x117)]??!0x1;this[_0x2ffd79(0xd6)](_0x2ffd79(0x108),!0x1),this[_0x2ffd79(0x10b)][_0x2ffd79(0xd6)](_0x2ffd79(0x124),!0x1),this[_0x2ffd79(0x10b)][_0x2ffd79(0xd6)](_0x2ffd79(0xda),_0x3b9173),this[_0x2ffd79(0x10b)][_0x2ffd79(0xd6)](_0x2ffd79(0xfc),_0x3b9173);}[_0x49fc10(0x11a)](){const _0x2cd16f=_0x49fc10;this[_0x2cd16f(0xd6)](_0x2cd16f(0xd7),!0x0),this[_0x2cd16f(0xd6)](_0x2cd16f(0x10e),!0x0);}[_0x49fc10(0x122)](_0x1ae7c8){const _0x5d37df=_0x49fc10;this[_0x5d37df(0xd6)](_0x5d37df(0xd7),!0x1),_0x1ae7c8&&this[_0x5d37df(0xd6)](_0x5d37df(0x10e),!0x1);}[_0x49fc10(0x12e)](){const _0x3bc4fe=_0x49fc10,_0xceaeb1=new _0x5cde7b();return _0xceaeb1[_0x3bc4fe(0xd6)]({'label':_0x339bf8(this[_0x3bc4fe(0x132)],_0x3bc4fe(0x130)),'icon':_0x32b44d,'class':uo,'isToggleable':!0x0,'tooltipPosition':Go}),_0xceaeb1['on'](_0x3bc4fe(0x118),()=>{const _0x1079b8=_0x3bc4fe;this[_0x1079b8(0xf3)](_0x1079b8(0xd9));}),_0xceaeb1;}[_0x49fc10(0x101)](){const _0x51f2f8=_0x49fc10,_0x541259=new _0x5cde7b();return _0x541259[_0x51f2f8(0xd6)]({'label':_0x339bf8(this[_0x51f2f8(0x132)],_0x51f2f8(0x10d)),'icon':_0x2b61f7,'class':uo,'isToggleable':!0x0,'tooltipPosition':Go}),_0x541259['on'](_0x51f2f8(0x118),()=>{const _0xf498f=_0x51f2f8;this[_0xf498f(0xf3)](_0xf498f(0xe0));}),_0x541259;}[_0x49fc10(0x11f)](){const _0x426459=_0x49fc10,_0x4466b6=new _0x5cde7b();return _0x4466b6[_0x426459(0xd6)]({'label':_0x339bf8(this[_0x426459(0x132)],_0x426459(0x12b)),'icon':_0xf357d7,'withText':!0x0,'class':uo,'isToggleable':!0x0,'tooltip':_0x339bf8(this[_0x426459(0x132)],_0x426459(0x12b)),'tooltipPosition':Go}),_0x4466b6[_0x426459(0xe8)]({'attributes':{'class':[Ho]}}),_0x4466b6['on'](_0x426459(0x118),()=>{const _0xac2550=_0x426459;console[_0xac2550(0xfb)](_0xac2550(0xdc)),alert(_0xac2550(0xdc));}),_0x4466b6;}[_0x49fc10(0xf0)](){const _0x4cb4dc=_0x49fc10,_0x16638b=_0x4fc89d(this[_0x4cb4dc(0x132)]);return _0x16638b[_0x4cb4dc(0xd6)]({'panelPosition':'ne','class':[Mo]}),_0x16638b[_0x4cb4dc(0xeb)][_0x4cb4dc(0xd6)]({'label':_0x339bf8(this[_0x4cb4dc(0x132)],_0x4cb4dc(0xf2)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':Go}),this[_0x4cb4dc(0xf4)](_0x16638b,_0x4cb4dc(0x118),_0x595e5b=>{const _0x548c32=_0x4cb4dc;this[_0x548c32(0xf3)](_0x548c32(0xf7),_0x595e5b[_0x548c32(0x111)][_0x548c32(0x115)]);}),_0x16638b;}[_0x49fc10(0x113)](){const _0x185dd2=_0x49fc10,_0x156dc3=new jo(this[_0x185dd2(0x132)]);return _0x156dc3[_0x185dd2(0xec)](_0x185dd2(0x116))['to'](this,_0x185dd2(0xd8),_0x440616=>_0x440616??''),_0x156dc3[_0x185dd2(0xec)](_0x185dd2(0xfc))['to'](this,_0x185dd2(0x10e),this,_0x185dd2(0xd8),(_0x4c8f38,_0x3c9eeb)=>!_0x4c8f38&&!_0x3c9eeb?.[_0x185dd2(0xfd)]()[_0x185dd2(0xfe)](_0x185dd2(0xee))),_0x156dc3;}}class js extends _0x8e4a32{constructor(_0x133d73,_0x37e591){const _0x2e0fc3=_0x49fc10;super();const _0x4fb544=this[_0x2e0fc3(0x103)],_0x4346f7=this[_0x2e0fc3(0xe6)]();this[_0x2e0fc3(0x110)]({'tag':_0x2e0fc3(0xdd),'attributes':{'class':['ck',_0x2e0fc3(0x102)],'style':_0x4fb544['to'](_0x2e0fc3(0x131)),'id':_0x4fb544['to']('id')},'children':[{'tag':_0x2e0fc3(0xdd),'attributes':{'class':[Do]},'children':[{'text':_0x4fb544['to'](_0x2e0fc3(0x116))}]},{'tag':_0x2e0fc3(0xdd),'attributes':{'class':[Wo]},'children':[{'tag':_0x2e0fc3(0x12d),'children':[{'text':_0x37e591[_0x2e0fc3(0x12c)]}]}]},{'tag':_0x2e0fc3(0xdd),'attributes':{'class':[yo]},'children':_0x4346f7}]}),_0x4346f7[_0x2e0fc3(0x107)](this[_0x2e0fc3(0x12f)](_0x133d73,_0x32b44d,_0x2e0fc3(0x130),_0x37e591[_0x2e0fc3(0xde)][_0x2e0fc3(0xe7)]?.[_0x2e0fc3(0x117)]??!0x1)),_0x4346f7[_0x2e0fc3(0x107)](this[_0x2e0fc3(0x12f)](_0x133d73,_0x2b61f7,_0x2e0fc3(0x10d),_0x37e591[_0x2e0fc3(0xde)][_0x2e0fc3(0xff)]?.[_0x2e0fc3(0x117)]??!0x1));}[_0x49fc10(0x12f)](_0xec32,_0x16247b,_0x4d7c5c,_0x17bce6){const _0x1cf3eb=_0x49fc10,_0x587528=new _0x54b3f1();_0x587528[_0x1cf3eb(0x11e)]=_0x16247b;const _0x530b61=new _0x36154d(_0xec32);_0x530b61[_0x1cf3eb(0x110)]({'tag':_0x1cf3eb(0x12d),'children':[{'text':_0x339bf8(_0xec32,_0x4d7c5c)+':\x20'}]});const _0x574b34=new _0x36154d(_0xec32);return _0x574b34[_0x1cf3eb(0x110)]({'tag':_0x1cf3eb(0x12d),'children':[{'text':_0x339bf8(_0xec32,_0x17bce6?_0x1cf3eb(0x100):_0x1cf3eb(0xef))}]}),[_0x587528,_0x530b61,_0x574b34];}}class jo extends _0x36154d{constructor(_0xcd9885){const _0x26efb3=_0x49fc10;super(_0xcd9885),this[_0x26efb3(0xd6)](_0x26efb3(0x116),void 0x0),this[_0x26efb3(0xd6)](_0x26efb3(0xfc),!0x0);const _0x40e2fd=this[_0x26efb3(0x103)];this[_0x26efb3(0x110)]({'tag':_0x26efb3(0x12d),'attributes':{'class':['ck',_0x26efb3(0x128),_0x40e2fd['if'](_0x26efb3(0xfc),_0x26efb3(0x12a),_0x5da055=>!_0x5da055)]},'children':[{'text':_0x40e2fd['to'](_0x26efb3(0x116))}]});}}
23
+ const _0xe7273b=_0x3a46;(function(_0x919a3a,_0x76099b){const _0x10635f=_0x3a46,_0x3ff96d=_0x919a3a();while(!![]){try{const _0x3bea01=-parseInt(_0x10635f(0x14e))/0x1*(-parseInt(_0x10635f(0x155))/0x2)+-parseInt(_0x10635f(0x104))/0x3*(parseInt(_0x10635f(0x132))/0x4)+parseInt(_0x10635f(0x11a))/0x5+-parseInt(_0x10635f(0x110))/0x6*(parseInt(_0x10635f(0x14f))/0x7)+parseInt(_0x10635f(0x143))/0x8+parseInt(_0x10635f(0x144))/0x9*(parseInt(_0x10635f(0x112))/0xa)+-parseInt(_0x10635f(0x121))/0xb;if(_0x3bea01===_0x76099b)break;else _0x3ff96d['push'](_0x3ff96d['shift']());}catch(_0x5c00d3){_0x3ff96d['push'](_0x3ff96d['shift']());}}}(_0x2a1a,0xa41b9));import{Collection as _0x537450}from'ckeditor5/src/utils.js';function _0x2a1a(){const _0x337aa5=['bindTemplate','enableModelSelector','ck-ai-chat-controls__model-selection__item-name','clear','execute','Commands\x20are\x20not\x20implemented\x20yet.','set','listenTo','ck-ai-chat-controls__model-selection','ck-button__label','ck-ai-chat-controls__model-name','3bJPUfh','webSearch','name','locale','style','description','capabilities','source','toggleReasoning','log','ck-ai-chat-controls__model-selection__item-description','button','237390iebhxd','AI_CHAT_SEARCH_WEB','10GOxRAg','toLowerCase','_commandsButton','model','AI_CHAT_CAPABILITIES_YES','isVisible','ck-ai-chat__prompt-capabilities','tooltip','4853010oJaYCm','AI_CHAT_ENABLE_REASONING','ck-ai-chat-controls-button--commands','_createReasoningButton','activeModelName','activeModelId','withText','2146782jYLwoT','ck-hidden','content','_modelSelectionDropdown','enabled','AI_CHAT_CAPABILITIES_NO','setModelList','AI_CHAT_REASONING','setModel','buttonView','_modelNameView','ck-ai-chat-controls-button','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','bind','_reasoningButton','setReasoning','createCollection','4891868MABFKZ','span','text','webSearchActive','reasoning','isOn','isEnabled','selectModel','reasoningActive','agent','AI_CHAT_DISABLE_WEB_SEARCH','menuitemradio','label','toggleWebSearch','modelSelectorEnabled','_webSearchButton','startsWith','874336briOYL','10126683zIwHtj','_getCapabilityParts','_createWebSearchButton','fire','add','setTemplate','extendTemplate','AI_CHAT_COMMANDS','modelSelectorVisible','addMany','2739yMtsbA','140MoyEaK','_createCommandsButton','div','setWebSearch','ck-ai-chat-controls__model-selection__item-capabilities','disableModelSelector','494gouCEf','AI_CHAT_ENABLE_WEB_SEARCH','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','_createModelSelectionDropdown','AI_CHAT_DISABLE_REASONING','length','_modelSelectionDropdownItems','_createModelNameView'];_0x2a1a=function(){return _0x337aa5;};return _0x2a1a();}import{IconAI as _0x4f14c5,IconBulb as _0x1037e7,IconWeb as _0xc1ef40}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x476fd4,ButtonLabelView as _0x555f04,ButtonView as _0x2b26a8,createDropdown as _0x550aa3,IconView as _0x39c9d9,UIModel as _0x4c0344,View as _0x2adc93}from'ckeditor5/src/ui.js';import{getTranslation as _0x4820f3}from'../../../aicore/utils/common-translations.js';const Ho=_0xe7273b(0x118),fo=_0xe7273b(0x12c),Mo=_0xe7273b(0x11c),Do=_0xe7273b(0x165),Wo=_0xe7273b(0x15f),yo=_0xe7273b(0x10e),Go=_0xe7273b(0x153),jo='n';function _0x3a46(_0x3d059c,_0x64705c){const _0x2a1a22=_0x2a1a();return _0x3a46=function(_0x3a4688,_0x14598c){_0x3a4688=_0x3a4688-0x103;let _0x1078b4=_0x2a1a22[_0x3a4688];return _0x1078b4;},_0x3a46(_0x3d059c,_0x64705c);}export class AIChatPromptCapabilitiesView extends _0x2adc93{[_0xe7273b(0x141)];[_0xe7273b(0x12f)];[_0xe7273b(0x114)];[_0xe7273b(0x124)];[_0xe7273b(0x15b)];[_0xe7273b(0x12b)];constructor(_0x37aca4){const _0x5441bb=_0xe7273b;super(_0x37aca4),this[_0x5441bb(0x163)](_0x5441bb(0x135),!0x1),this[_0x5441bb(0x163)](_0x5441bb(0x13a),!0x1),this[_0x5441bb(0x163)](_0x5441bb(0x14c),!0x0),this[_0x5441bb(0x163)](_0x5441bb(0x140),!0x0),this[_0x5441bb(0x163)](_0x5441bb(0x11f),null),this[_0x5441bb(0x163)](_0x5441bb(0x11e),null),this[_0x5441bb(0x124)]=this[_0x5441bb(0x158)](),this[_0x5441bb(0x12b)]=this[_0x5441bb(0x15c)](),this[_0x5441bb(0x141)]=this[_0x5441bb(0x146)](),this[_0x5441bb(0x12f)]=this[_0x5441bb(0x11d)](),this[_0x5441bb(0x114)]=this[_0x5441bb(0x150)](),this[_0x5441bb(0x124)][_0x5441bb(0x12a)][_0x5441bb(0x12e)](_0x5441bb(0x117))['to'](this,_0x5441bb(0x14c),_0x5a8f5d=>_0x5a8f5d),this[_0x5441bb(0x124)][_0x5441bb(0x12a)][_0x5441bb(0x12e)](_0x5441bb(0x119))['to'](this,_0x5441bb(0x140),_0x20391a=>_0x20391a?this[_0x5441bb(0x124)][_0x5441bb(0x12a)][_0x5441bb(0x13e)]:_0x4820f3(this[_0x5441bb(0x107)],_0x5441bb(0x157))),this[_0x5441bb(0x124)][_0x5441bb(0x12e)](_0x5441bb(0x138))['to'](this,_0x5441bb(0x140),_0x4b65cc=>_0x4b65cc),this[_0x5441bb(0x141)][_0x5441bb(0x12e)](_0x5441bb(0x137))['to'](this,_0x5441bb(0x135),_0x9a4553=>_0x9a4553),this[_0x5441bb(0x141)][_0x5441bb(0x12e)](_0x5441bb(0x120))['to'](this,_0x5441bb(0x14c),_0x2d5a0d=>!_0x2d5a0d),this[_0x5441bb(0x141)][_0x5441bb(0x12e)](_0x5441bb(0x119))['to'](this,_0x5441bb(0x135),_0x5985d6=>_0x4820f3(this[_0x5441bb(0x107)],_0x5985d6?_0x5441bb(0x13c):_0x5441bb(0x156))),this[_0x5441bb(0x12f)][_0x5441bb(0x12e)](_0x5441bb(0x137))['to'](this,_0x5441bb(0x13a),_0x5db870=>_0x5db870),this[_0x5441bb(0x12f)][_0x5441bb(0x12e)](_0x5441bb(0x120))['to'](this,_0x5441bb(0x14c),_0xed0fd4=>!_0xed0fd4),this[_0x5441bb(0x12f)][_0x5441bb(0x12e)](_0x5441bb(0x119))['to'](this,_0x5441bb(0x13a),_0x6f2ec1=>_0x4820f3(this[_0x5441bb(0x107)],_0x6f2ec1?_0x5441bb(0x159):_0x5441bb(0x11b))),this[_0x5441bb(0x149)]({'tag':_0x5441bb(0x151),'attributes':{'class':[Ho]},'children':[this[_0x5441bb(0x124)],this[_0x5441bb(0x12b)],this[_0x5441bb(0x141)],this[_0x5441bb(0x12f)],this[_0x5441bb(0x114)]]}),this[_0x5441bb(0x15b)]=new _0x537450(),_0x476fd4(this[_0x5441bb(0x124)],this[_0x5441bb(0x15b)]);}[_0xe7273b(0x127)](_0x4a3597,_0x54c18b){const _0x5db215=_0xe7273b;if(this[_0x5db215(0x163)](_0x5db215(0x14c),!(_0x54c18b&&_0x4a3597[_0x5db215(0x15a)]<=0x1)),this[_0x5db215(0x15b)][_0x5db215(0x160)](),_0x4a3597?.[_0x5db215(0x15a)])for(const _0x56b62b of _0x4a3597){const _0x543d70=new _0x4c0344({'label':_0x56b62b[_0x5db215(0x106)],'withText':!0x0,'role':_0x5db215(0x13d),'id':_0x56b62b['id'],'model':_0x56b62b});_0x543d70[_0x5db215(0x12e)](_0x5db215(0x137))['to'](this,_0x5db215(0x11f),_0x43aec5=>_0x43aec5===_0x56b62b['id']),this[_0x5db215(0x15b)][_0x5db215(0x148)]({'type':_0x5db215(0x10f),'model':_0x543d70,'labelView':new Ns(this[_0x5db215(0x107)],_0x56b62b)});}}[_0xe7273b(0x152)](_0x4b1a84){const _0xe15cd=_0xe7273b;this[_0xe15cd(0x163)](_0xe15cd(0x135),_0x4b1a84);}[_0xe7273b(0x130)](_0xab1e66){const _0x3045e7=_0xe7273b;this[_0x3045e7(0x163)](_0x3045e7(0x13a),_0xab1e66);}[_0xe7273b(0x129)](_0x5724e2){const _0x50ffe7=_0xe7273b;if(!_0x5724e2)return;this[_0x50ffe7(0x11f)]=_0x5724e2['id'],this[_0x50ffe7(0x11e)]=_0x5724e2[_0x50ffe7(0x106)]||_0x5724e2['id'],this[_0x50ffe7(0x124)][_0x50ffe7(0x12a)][_0x50ffe7(0x163)](_0x50ffe7(0x13e),_0x5724e2[_0x50ffe7(0x106)]),this[_0x50ffe7(0x124)][_0x50ffe7(0x12a)][_0x50ffe7(0x163)](_0x50ffe7(0x119),_0x5724e2[_0x50ffe7(0x106)]);const _0x6a8fa7=_0x5724e2[_0x50ffe7(0x10a)][_0x50ffe7(0x105)]?.[_0x50ffe7(0x125)]??!0x1;this[_0x50ffe7(0x163)](_0x50ffe7(0x135),!0x1),this[_0x50ffe7(0x141)][_0x50ffe7(0x163)](_0x50ffe7(0x137),!0x1),this[_0x50ffe7(0x141)][_0x50ffe7(0x163)](_0x50ffe7(0x138),_0x6a8fa7),this[_0x50ffe7(0x141)][_0x50ffe7(0x163)](_0x50ffe7(0x117),_0x6a8fa7);const _0x3955a9=_0x5724e2[_0x50ffe7(0x10a)][_0x50ffe7(0x136)]?.[_0x50ffe7(0x125)]??!0x1;this[_0x50ffe7(0x163)](_0x50ffe7(0x13a),!0x1),this[_0x50ffe7(0x12f)][_0x50ffe7(0x163)](_0x50ffe7(0x137),!0x1),this[_0x50ffe7(0x12f)][_0x50ffe7(0x163)](_0x50ffe7(0x138),_0x3955a9),this[_0x50ffe7(0x12f)][_0x50ffe7(0x163)](_0x50ffe7(0x117),_0x3955a9);}[_0xe7273b(0x15e)](){const _0x311840=_0xe7273b;this[_0x311840(0x163)](_0x311840(0x140),!0x0),this[_0x311840(0x163)](_0x311840(0x14c),!0x0);}[_0xe7273b(0x154)](_0x2d2d76){const _0x225928=_0xe7273b;this[_0x225928(0x163)](_0x225928(0x140),!0x1),_0x2d2d76&&this[_0x225928(0x163)](_0x225928(0x14c),!0x1);}[_0xe7273b(0x146)](){const _0x1c88b6=_0xe7273b,_0x489781=new _0x2b26a8();return _0x489781[_0x1c88b6(0x163)]({'label':_0x4820f3(this[_0x1c88b6(0x107)],_0x1c88b6(0x111)),'icon':_0xc1ef40,'class':fo,'isToggleable':!0x0,'tooltipPosition':jo}),_0x489781['on'](_0x1c88b6(0x161),()=>{const _0x4932f9=_0x1c88b6;this[_0x4932f9(0x147)](_0x4932f9(0x13f));}),_0x489781;}[_0xe7273b(0x11d)](){const _0x1686a0=_0xe7273b,_0x4e7ed0=new _0x2b26a8();return _0x4e7ed0[_0x1686a0(0x163)]({'label':_0x4820f3(this[_0x1686a0(0x107)],_0x1686a0(0x128)),'icon':_0x1037e7,'class':fo,'isToggleable':!0x0,'tooltipPosition':jo}),_0x4e7ed0['on'](_0x1686a0(0x161),()=>{const _0x109234=_0x1686a0;this[_0x109234(0x147)](_0x109234(0x10c));}),_0x4e7ed0;}[_0xe7273b(0x150)](){const _0xce9095=_0xe7273b,_0x26edbe=new _0x2b26a8();return _0x26edbe[_0xce9095(0x163)]({'label':_0x4820f3(this[_0xce9095(0x107)],_0xce9095(0x14b)),'icon':_0x4f14c5,'withText':!0x0,'class':fo,'isToggleable':!0x0,'tooltip':_0x4820f3(this[_0xce9095(0x107)],_0xce9095(0x14b)),'tooltipPosition':jo}),_0x26edbe[_0xce9095(0x14a)]({'attributes':{'class':[Mo]}}),_0x26edbe['on'](_0xce9095(0x161),()=>{const _0x3170c7=_0xce9095;console[_0x3170c7(0x10d)](_0x3170c7(0x162)),alert(_0x3170c7(0x162));}),_0x26edbe;}[_0xe7273b(0x158)](){const _0x14ce63=_0xe7273b,_0x217970=_0x550aa3(this[_0x14ce63(0x107)]);return _0x217970[_0x14ce63(0x163)]({'panelPosition':'ne','class':[Do]}),_0x217970[_0x14ce63(0x12a)][_0x14ce63(0x163)]({'label':_0x4820f3(this[_0x14ce63(0x107)],_0x14ce63(0x12d)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':jo}),this[_0x14ce63(0x164)](_0x217970,_0x14ce63(0x161),_0x4bd074=>{const _0x1ce9be=_0x14ce63;this[_0x1ce9be(0x147)](_0x1ce9be(0x139),_0x4bd074[_0x1ce9be(0x10b)][_0x1ce9be(0x115)]);}),_0x217970;}[_0xe7273b(0x15c)](){const _0x364708=_0xe7273b,_0x28bbda=new Yo(this[_0x364708(0x107)]);return _0x28bbda[_0x364708(0x12e)](_0x364708(0x134))['to'](this,_0x364708(0x11e),_0xf502cf=>_0xf502cf??''),_0x28bbda[_0x364708(0x12e)](_0x364708(0x117))['to'](this,_0x364708(0x14c),this,_0x364708(0x11e),(_0x8c94fe,_0x2c0cde)=>!_0x8c94fe&&!_0x2c0cde?.[_0x364708(0x113)]()[_0x364708(0x142)](_0x364708(0x13b))),_0x28bbda;}}class Ns extends _0x555f04{constructor(_0x5303f1,_0x365e24){const _0x5a28f7=_0xe7273b;super();const _0x3bd1bf=this[_0x5a28f7(0x15d)],_0x5e7ca6=this[_0x5a28f7(0x131)]();this[_0x5a28f7(0x149)]({'tag':_0x5a28f7(0x151),'attributes':{'class':['ck',_0x5a28f7(0x166)],'style':_0x3bd1bf['to'](_0x5a28f7(0x108)),'id':_0x3bd1bf['to']('id')},'children':[{'tag':_0x5a28f7(0x151),'attributes':{'class':[Wo]},'children':[{'text':_0x3bd1bf['to'](_0x5a28f7(0x134))}]},{'tag':_0x5a28f7(0x151),'attributes':{'class':[yo]},'children':[{'tag':_0x5a28f7(0x133),'children':[{'text':_0x365e24[_0x5a28f7(0x109)]}]}]},{'tag':_0x5a28f7(0x151),'attributes':{'class':[Go]},'children':_0x5e7ca6}]}),_0x5e7ca6[_0x5a28f7(0x14d)](this[_0x5a28f7(0x145)](_0x5303f1,_0xc1ef40,_0x5a28f7(0x111),_0x365e24[_0x5a28f7(0x10a)][_0x5a28f7(0x105)]?.[_0x5a28f7(0x125)]??!0x1)),_0x5e7ca6[_0x5a28f7(0x14d)](this[_0x5a28f7(0x145)](_0x5303f1,_0x1037e7,_0x5a28f7(0x128),_0x365e24[_0x5a28f7(0x10a)][_0x5a28f7(0x136)]?.[_0x5a28f7(0x125)]??!0x1));}[_0xe7273b(0x145)](_0xc13973,_0xfddaf2,_0x3ea181,_0x4f2404){const _0x32e8e8=_0xe7273b,_0x47a21d=new _0x39c9d9();_0x47a21d[_0x32e8e8(0x123)]=_0xfddaf2;const _0x460fc8=new _0x2adc93(_0xc13973);_0x460fc8[_0x32e8e8(0x149)]({'tag':_0x32e8e8(0x133),'children':[{'text':_0x4820f3(_0xc13973,_0x3ea181)+':\x20'}]});const _0x2d4eb1=new _0x2adc93(_0xc13973);return _0x2d4eb1[_0x32e8e8(0x149)]({'tag':_0x32e8e8(0x133),'children':[{'text':_0x4820f3(_0xc13973,_0x4f2404?_0x32e8e8(0x116):_0x32e8e8(0x126))}]}),[_0x47a21d,_0x460fc8,_0x2d4eb1];}}class Yo extends _0x2adc93{constructor(_0x4ec00b){const _0x5d2336=_0xe7273b;super(_0x4ec00b),this[_0x5d2336(0x163)](_0x5d2336(0x134),void 0x0),this[_0x5d2336(0x163)](_0x5d2336(0x117),!0x0);const _0x2f52fa=this[_0x5d2336(0x15d)];this[_0x5d2336(0x149)]({'tag':_0x5d2336(0x133),'attributes':{'class':['ck',_0x5d2336(0x103),_0x2f52fa['if'](_0x5d2336(0x117),_0x5d2336(0x122),_0xef7190=>!_0xef7190)]},'children':[{'text':_0x2f52fa['to'](_0x5d2336(0x134))}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x300748=_0x5d50;function _0x32ab(){const _0x1e6f28=['fieldView','focusableChildren','window','enter','maxRows','locale','isEnabled','element','16027398Kajnvx','MIN_ROWS','submit','ck-ai-chat__prompt-input','width','target','_setUpAddContextButtonPositioning','errorText','MAX_ROWS','41547oERVRU','set','11441442PEqEyM','extendTemplate','keystrokes','update','8NTAlTG','rtl','reset','fieldWrapperChildren','render','1097659lgFhkD','setPlaceholderText','169887ammfKb','calc(','right','5EOxBof','isEmpty','10714732mxIJAj','submitButtonView','isUploadInProgress','style','_createSubmitButton','setIsUploadInProgress','minRows','_addContextButtonView','uiLanguageDirection','placeholder','bind','left','_queryViewResizeObserver','fire','excludeScrollbarsAndBorders','queryView','hasError','1179682GueOPO','value','6270tmfJoN','trim','sendUserMessage','add','execute','56ZpZrvv','destroy','AI_CHAT_LABEL_SUBMIT','AI_CHAT_PROMPT_EMPTY_ERROR','px\x20-\x20var(--ck-spacing-tiny))','ck-ai-chat__prompt-submit-button','requestAnimationFrame'];_0x32ab=function(){return _0x1e6f28;};return _0x32ab();}(function(_0x1392ee,_0xc13190){const _0x4ee4f0=_0x5d50,_0x245840=_0x1392ee();while(!![]){try{const _0x451872=-parseInt(_0x4ee4f0(0x1e7))/0x1+parseInt(_0x4ee4f0(0x1bd))/0x2+-parseInt(_0x4ee4f0(0x1a7))/0x3*(-parseInt(_0x4ee4f0(0x1c4))/0x4)+parseInt(_0x4ee4f0(0x1aa))/0x5*(-parseInt(_0x4ee4f0(0x1de))/0x6)+-parseInt(_0x4ee4f0(0x1ac))/0x7+parseInt(_0x4ee4f0(0x1e2))/0x8*(parseInt(_0x4ee4f0(0x1d3))/0x9)+-parseInt(_0x4ee4f0(0x1bf))/0xa*(-parseInt(_0x4ee4f0(0x1dc))/0xb);if(_0x451872===_0xc13190)break;else _0x245840['push'](_0x245840['shift']());}catch(_0x1fcf79){_0x245840['push'](_0x245840['shift']());}}}(_0x32ab,0xf3436));import{IconSubmit as _0x5cdbfa}from'ckeditor5/src/icons.js';import{ButtonView as _0x28f613,AutocompleteView as _0x8565b3,createLabeledTextarea as _0x44da5c}from'ckeditor5/src/ui.js';import{global as _0x13fc72,isVisible as _0x490267,Rect as _0x1ceee0,ResizeObserver as _0x13862a}from'ckeditor5/src/utils.js';import{getTranslation as _0x11bb82}from'../../../aicore/utils/common-translations.js';import{AIChatPromptSuggestionsListView as _0x2d5c17}from'./aichatpromptsuggestionslistview.js';function _0x5d50(_0x48e8fa,_0x3fb852){const _0x32ab16=_0x32ab();return _0x5d50=function(_0x5d507d,_0x54bdf5){_0x5d507d=_0x5d507d-0x1a6;let _0x35a17f=_0x32ab16[_0x5d507d];return _0x35a17f;},_0x5d50(_0x48e8fa,_0x3fb852);}import{escape as _0x29b212}from'es-toolkit/compat';export class AIChatPromptInputView extends _0x8565b3{[_0x300748(0x1ad)];static [_0x300748(0x1d4)]=0x1;static [_0x300748(0x1db)]=0xc;[_0x300748(0x1b3)];[_0x300748(0x1b8)];constructor(_0x2a7c10,_0x5f33ef){const _0x6ba08d=_0x300748;super(_0x2a7c10,{'queryView':{'label':'','creator':_0x44da5c,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x2d5c17(_0x2a7c10),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x6ba08d(0x1dd)](_0x6ba08d(0x1ab),!0x0),this[_0x6ba08d(0x1dd)](_0x6ba08d(0x1ae),!0x1),this[_0x6ba08d(0x1b3)]=_0x5f33ef,this[_0x6ba08d(0x1b8)]=null,this[_0x6ba08d(0x1bb)][_0x6ba08d(0x1cb)][_0x6ba08d(0x1b2)]=AIChatPromptInputView[_0x6ba08d(0x1d4)],this[_0x6ba08d(0x1bb)][_0x6ba08d(0x1cb)][_0x6ba08d(0x1cf)]=AIChatPromptInputView[_0x6ba08d(0x1db)],this[_0x6ba08d(0x1bb)][_0x6ba08d(0x1e5)][_0x6ba08d(0x1c2)](this[_0x6ba08d(0x1b3)]),this[_0x6ba08d(0x1d9)](),this[_0x6ba08d(0x1df)]({'attributes':{'class':['ck',_0x6ba08d(0x1d6)]}}),this[_0x6ba08d(0x1ad)]=this[_0x6ba08d(0x1b0)](),this[_0x6ba08d(0x1ad)][_0x6ba08d(0x1b6)](_0x6ba08d(0x1d1))['to'](this,_0x6ba08d(0x1ab),this,_0x6ba08d(0x1ae),(_0x329a1d,_0x20550a)=>!_0x329a1d&&!_0x20550a),this[_0x6ba08d(0x1cc)][_0x6ba08d(0x1c2)](this[_0x6ba08d(0x1ad)]);}[_0x300748(0x1e6)](){const _0xd57a16=_0x300748;super[_0xd57a16(0x1e6)](),this[_0xd57a16(0x1bb)][_0xd57a16(0x1e5)][_0xd57a16(0x1c2)](this[_0xd57a16(0x1ad)]),this[_0xd57a16(0x1e0)][_0xd57a16(0x1dd)](_0xd57a16(0x1ce),(_0x9ef584,_0x1fbdd9)=>{const _0x2081b9=_0xd57a16;this[_0x2081b9(0x1ae)]||this[_0x2081b9(0x1ab)]||_0x9ef584[_0x2081b9(0x1d8)]==this[_0x2081b9(0x1bb)][_0x2081b9(0x1cb)][_0x2081b9(0x1d2)]&&(this[_0x2081b9(0x1d5)](),_0x1fbdd9());}),this[_0xd57a16(0x1bb)][_0xd57a16(0x1cb)]['on'](_0xd57a16(0x1e1),()=>{const _0x31b7d7=_0xd57a16;this[_0x31b7d7(0x1ab)]=''===this[_0x31b7d7(0x1bb)][_0x31b7d7(0x1cb)][_0x31b7d7(0x1d2)][_0x31b7d7(0x1be)]?.[_0x31b7d7(0x1c0)]();});}[_0x300748(0x1c5)](){const _0x3e19f1=_0x300748;super[_0x3e19f1(0x1c5)](),this[_0x3e19f1(0x1b8)]&&this[_0x3e19f1(0x1b8)][_0x3e19f1(0x1c5)]();}[_0x300748(0x1d5)](){const _0x1d686b=_0x300748,_0x18a6c5=this[_0x1d686b(0x1bb)][_0x1d686b(0x1cb)][_0x1d686b(0x1d2)][_0x1d686b(0x1be)]?.[_0x1d686b(0x1c0)]();if(!_0x18a6c5)return this[_0x1d686b(0x1bb)][_0x1d686b(0x1da)]=_0x11bb82(this[_0x1d686b(0x1d0)],_0x1d686b(0x1c7)),void(this[_0x1d686b(0x1bb)][_0x1d686b(0x1cb)][_0x1d686b(0x1bc)]=!0x0);this[_0x1d686b(0x1bb)][_0x1d686b(0x1cb)][_0x1d686b(0x1bc)]=!0x1;const _0x3564b1=_0x29b212(_0x18a6c5);this[_0x1d686b(0x1b9)](_0x1d686b(0x1c1),_0x3564b1),this[_0x1d686b(0x1bb)][_0x1d686b(0x1cb)][_0x1d686b(0x1e4)]();}[_0x300748(0x1a6)](_0x28c07b){const _0xa6980a=_0x300748;this[_0xa6980a(0x1bb)][_0xa6980a(0x1cb)][_0xa6980a(0x1dd)](_0xa6980a(0x1b5),_0x28c07b);}[_0x300748(0x1b0)](){const _0x35089d=_0x300748,_0xfa363c=new _0x28f613(this[_0x35089d(0x1d0)]);return _0xfa363c[_0x35089d(0x1dd)]({'icon':_0x5cdbfa,'label':_0x11bb82(this[_0x35089d(0x1d0)],_0x35089d(0x1c6)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x35089d(0x1c9),'isEnabled':!0x1}),_0xfa363c['on'](_0x35089d(0x1c3),()=>{const _0x4d3590=_0x35089d;this[_0x4d3590(0x1d5)]();}),_0xfa363c;}[_0x300748(0x1b1)](_0x28a147){const _0xb2c7c9=_0x300748;this[_0xb2c7c9(0x1ae)]=_0x28a147;}[_0x300748(0x1d9)](){const _0x33622b=_0x300748,_0x2f36dd=this[_0x33622b(0x1d0)],_0x258b6=()=>{const _0x37481c=_0x33622b;_0x13fc72[_0x37481c(0x1cd)][_0x37481c(0x1ca)](()=>{const _0x2f7db8=_0x37481c;if(_0x490267(this[_0x2f7db8(0x1d2)])){const _0x2817fe=new _0x1ceee0(this[_0x2f7db8(0x1bb)][_0x2f7db8(0x1cb)][_0x2f7db8(0x1d2)]),_0x1ff1b6=new _0x1ceee0(this[_0x2f7db8(0x1b3)][_0x2f7db8(0x1d2)]),_0x3b5877=_0x2817fe[_0x2f7db8(0x1d7)],_0x3349ae=_0x2f7db8(0x1e3)===_0x2f36dd[_0x2f7db8(0x1b4)]?_0x2f7db8(0x1a9):_0x2f7db8(0x1b7);_0x2817fe[_0x2f7db8(0x1ba)]();const _0x347c0c=_0x3b5877-_0x2817fe[_0x2f7db8(0x1d7)]+0x1;this[_0x2f7db8(0x1b3)][_0x2f7db8(0x1d2)][_0x2f7db8(0x1af)][_0x3349ae]=_0x2f7db8(0x1a8)+(_0x3b5877-_0x1ff1b6[_0x2f7db8(0x1d7)]-_0x347c0c)+_0x2f7db8(0x1c8);}});};this[_0x33622b(0x1bb)][_0x33622b(0x1cb)]['on'](_0x33622b(0x1e1),_0x258b6),this['on'](_0x33622b(0x1e6),()=>{const _0x58ca19=_0x33622b;_0x258b6(),this[_0x58ca19(0x1b8)]=new _0x13862a(this[_0x58ca19(0x1bb)][_0x58ca19(0x1cb)][_0x58ca19(0x1d2)],()=>{_0x258b6();});});}}
23
+ const _0x4fecb4=_0x59ef;(function(_0x40d334,_0x55ee60){const _0x17168a=_0x59ef,_0x3abfd7=_0x40d334();while(!![]){try{const _0x465a8f=-parseInt(_0x17168a(0x174))/0x1*(-parseInt(_0x17168a(0x15e))/0x2)+parseInt(_0x17168a(0x16d))/0x3+parseInt(_0x17168a(0x150))/0x4+-parseInt(_0x17168a(0x14e))/0x5*(-parseInt(_0x17168a(0x155))/0x6)+parseInt(_0x17168a(0x15f))/0x7+parseInt(_0x17168a(0x13f))/0x8*(-parseInt(_0x17168a(0x15d))/0x9)+parseInt(_0x17168a(0x154))/0xa*(-parseInt(_0x17168a(0x144))/0xb);if(_0x465a8f===_0x55ee60)break;else _0x3abfd7['push'](_0x3abfd7['shift']());}catch(_0x7aa678){_0x3abfd7['push'](_0x3abfd7['shift']());}}}(_0x24f5,0x2a240));import{IconSubmit as _0x325c77}from'ckeditor5/src/icons.js';import{ButtonView as _0x49274e,AutocompleteView as _0x2e7f45,createLabeledTextarea as _0x5a0344}from'ckeditor5/src/ui.js';import{global as _0x482dce,isVisible as _0x2c48f6,Rect as _0x9e8d90,ResizeObserver as _0x51a10a}from'ckeditor5/src/utils.js';import{getTranslation as _0x564909}from'../../../aicore/utils/common-translations.js';import{AIChatPromptSuggestionsListView as _0x10b3ce}from'./aichatpromptsuggestionslistview.js';import{escape as _0x7b05e5}from'es-toolkit/compat';function _0x59ef(_0x40a92e,_0x17bd14){const _0x24f5e0=_0x24f5();return _0x59ef=function(_0x59efa7,_0x465bab){_0x59efa7=_0x59efa7-0x135;let _0x207f05=_0x24f5e0[_0x59efa7];return _0x207f05;},_0x59ef(_0x40a92e,_0x17bd14);}export class AIChatPromptInputView extends _0x2e7f45{[_0x4fecb4(0x156)];static [_0x4fecb4(0x164)]=0x1;static [_0x4fecb4(0x146)]=0xc;[_0x4fecb4(0x14c)];[_0x4fecb4(0x172)];constructor(_0x1c54df,_0x4cec80){const _0x1c21b2=_0x4fecb4;super(_0x1c54df,{'queryView':{'label':'','creator':_0x5a0344,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x10b3ce(_0x1c54df),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x1c21b2(0x14b)](_0x1c21b2(0x136),!0x0),this[_0x1c21b2(0x14b)](_0x1c21b2(0x13a),!0x1),this[_0x1c21b2(0x14c)]=_0x4cec80,this[_0x1c21b2(0x172)]=null,this[_0x1c21b2(0x135)][_0x1c21b2(0x13c)][_0x1c21b2(0x173)]=AIChatPromptInputView[_0x1c21b2(0x164)],this[_0x1c21b2(0x135)][_0x1c21b2(0x13c)][_0x1c21b2(0x148)]=AIChatPromptInputView[_0x1c21b2(0x146)],this[_0x1c21b2(0x135)][_0x1c21b2(0x137)][_0x1c21b2(0x13b)](this[_0x1c21b2(0x14c)]),this[_0x1c21b2(0x138)](),this[_0x1c21b2(0x14f)]({'attributes':{'class':['ck',_0x1c21b2(0x151)]}}),this[_0x1c21b2(0x156)]=this[_0x1c21b2(0x170)](),this[_0x1c21b2(0x156)][_0x1c21b2(0x157)](_0x1c21b2(0x161))['to'](this,_0x1c21b2(0x136),this,_0x1c21b2(0x13a),(_0x41e21f,_0x41745a)=>!_0x41e21f&&!_0x41745a),this[_0x1c21b2(0x142)][_0x1c21b2(0x13b)](this[_0x1c21b2(0x156)]);}[_0x4fecb4(0x16a)](){const _0x1a93a4=_0x4fecb4;super[_0x1a93a4(0x16a)](),this[_0x1a93a4(0x135)][_0x1a93a4(0x137)][_0x1a93a4(0x13b)](this[_0x1a93a4(0x156)]),this[_0x1a93a4(0x141)][_0x1a93a4(0x14b)](_0x1a93a4(0x14a),(_0x15f1d7,_0x89c188)=>{const _0x5f087d=_0x1a93a4;this[_0x5f087d(0x13a)]||this[_0x5f087d(0x136)]||_0x15f1d7[_0x5f087d(0x163)]==this[_0x5f087d(0x135)][_0x5f087d(0x13c)][_0x5f087d(0x14d)]&&(this[_0x5f087d(0x167)](),_0x89c188());}),this[_0x1a93a4(0x135)][_0x1a93a4(0x13c)]['on'](_0x1a93a4(0x171),()=>{const _0x4f7bed=_0x1a93a4;this[_0x4f7bed(0x136)]=''===this[_0x4f7bed(0x135)][_0x4f7bed(0x13c)][_0x4f7bed(0x14d)][_0x4f7bed(0x162)]?.[_0x4f7bed(0x143)]();});}[_0x4fecb4(0x147)](){const _0x4dd8f8=_0x4fecb4;super[_0x4dd8f8(0x147)](),this[_0x4dd8f8(0x172)]&&this[_0x4dd8f8(0x172)][_0x4dd8f8(0x147)]();}[_0x4fecb4(0x167)](){const _0x514419=_0x4fecb4,_0x4f3840=this[_0x514419(0x135)][_0x514419(0x13c)][_0x514419(0x14d)][_0x514419(0x162)]?.[_0x514419(0x143)]();if(!_0x4f3840)return this[_0x514419(0x135)][_0x514419(0x15a)]=_0x564909(this[_0x514419(0x139)],_0x514419(0x140)),void(this[_0x514419(0x135)][_0x514419(0x13c)][_0x514419(0x159)]=!0x0);this[_0x514419(0x135)][_0x514419(0x13c)][_0x514419(0x159)]=!0x1;const _0x275283=_0x7b05e5(_0x4f3840);this[_0x514419(0x152)](_0x514419(0x13e),_0x275283),this[_0x514419(0x135)][_0x514419(0x13c)][_0x514419(0x168)]();}[_0x4fecb4(0x166)](_0x5d36bc){const _0x31d150=_0x4fecb4;this[_0x31d150(0x135)][_0x31d150(0x13c)][_0x31d150(0x14b)](_0x31d150(0x15b),_0x5d36bc);}[_0x4fecb4(0x170)](){const _0x88d152=_0x4fecb4,_0x1e191d=new _0x49274e(this[_0x88d152(0x139)]);return _0x1e191d[_0x88d152(0x14b)]({'icon':_0x325c77,'label':_0x564909(this[_0x88d152(0x139)],_0x88d152(0x145)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x88d152(0x13d),'isEnabled':!0x1}),_0x1e191d['on'](_0x88d152(0x169),()=>{const _0x2cd7ff=_0x88d152;this[_0x2cd7ff(0x167)]();}),_0x1e191d;}[_0x4fecb4(0x153)](_0x1d162b){const _0x5427f2=_0x4fecb4;this[_0x5427f2(0x13a)]=_0x1d162b;}[_0x4fecb4(0x138)](){const _0x5687fc=_0x4fecb4,_0x1a62c1=this[_0x5687fc(0x139)],_0x593a1f=()=>{const _0x243b5d=_0x5687fc;_0x482dce[_0x243b5d(0x175)][_0x243b5d(0x16e)](()=>{const _0x16b0ae=_0x243b5d;if(_0x2c48f6(this[_0x16b0ae(0x14d)])){const _0x309887=new _0x9e8d90(this[_0x16b0ae(0x135)][_0x16b0ae(0x13c)][_0x16b0ae(0x14d)]),_0x4818a5=new _0x9e8d90(this[_0x16b0ae(0x14c)][_0x16b0ae(0x14d)]),_0x1a0a3d=_0x309887[_0x16b0ae(0x15c)],_0x5677fc=_0x16b0ae(0x158)===_0x1a62c1[_0x16b0ae(0x160)]?_0x16b0ae(0x165):_0x16b0ae(0x149);_0x309887[_0x16b0ae(0x16b)]();const _0x279ad0=_0x1a0a3d-_0x309887[_0x16b0ae(0x15c)]+0x1;this[_0x16b0ae(0x14c)][_0x16b0ae(0x14d)][_0x16b0ae(0x16c)][_0x5677fc]=_0x16b0ae(0x176)+(_0x1a0a3d-_0x4818a5[_0x16b0ae(0x15c)]-_0x279ad0)+_0x16b0ae(0x16f);}});};this[_0x5687fc(0x135)][_0x5687fc(0x13c)]['on'](_0x5687fc(0x171),_0x593a1f),this['on'](_0x5687fc(0x16a),()=>{const _0x2fb418=_0x5687fc;_0x593a1f(),this[_0x2fb418(0x172)]=new _0x51a10a(this[_0x2fb418(0x135)][_0x2fb418(0x13c)][_0x2fb418(0x14d)],()=>{_0x593a1f();});});}}function _0x24f5(){const _0x240822=['523008dIptfN','requestAnimationFrame','px\x20-\x20var(--ck-spacing-tiny))','_createSubmitButton','update','_queryViewResizeObserver','minRows','1bnqPkU','window','calc(','queryView','isEmpty','fieldWrapperChildren','_setUpAddContextButtonPositioning','locale','isUploadInProgress','add','fieldView','ck-ai-chat__prompt-submit-button','sendUserMessage','16PjjDxd','AI_CHAT_PROMPT_EMPTY_ERROR','keystrokes','focusableChildren','trim','44tEkDFU','AI_CHAT_LABEL_SUBMIT','MAX_ROWS','destroy','maxRows','left','enter','set','_addContextButtonView','element','76955Htmgom','extendTemplate','90864OAmgCE','ck-ai-chat__prompt-input','fire','setIsUploadInProgress','1133660mBWvso','66tmpzPu','submitButtonView','bind','rtl','hasError','errorText','placeholder','width','400941IrnFrZ','186028DiZMCj','1790621pWJLMK','uiLanguageDirection','isEnabled','value','target','MIN_ROWS','right','setPlaceholderText','submit','reset','execute','render','excludeScrollbarsAndBorders','style'];_0x24f5=function(){return _0x240822;};return _0x24f5();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x386779=_0x5457;(function(_0x2fb1e2,_0x41dc5e){const _0x511f3b=_0x5457,_0x18a251=_0x2fb1e2();while(!![]){try{const _0x3319e1=parseInt(_0x511f3b(0x1b7))/0x1*(-parseInt(_0x511f3b(0x1ba))/0x2)+-parseInt(_0x511f3b(0x1bb))/0x3+-parseInt(_0x511f3b(0x1b9))/0x4+parseInt(_0x511f3b(0x1bc))/0x5+parseInt(_0x511f3b(0x1b3))/0x6*(parseInt(_0x511f3b(0x1b6))/0x7)+parseInt(_0x511f3b(0x1b1))/0x8*(-parseInt(_0x511f3b(0x1b8))/0x9)+parseInt(_0x511f3b(0x1bd))/0xa;if(_0x3319e1===_0x41dc5e)break;else _0x18a251['push'](_0x18a251['shift']());}catch(_0x5a596a){_0x18a251['push'](_0x18a251['shift']());}}}(_0x1f28,0x4d4ca));import{ListView as _0x9baaa7}from'ckeditor5/src/ui.js';export class AIChatPromptSuggestionsListView extends _0x9baaa7{[_0x386779(0x1b4)](){const _0x44da44=_0x386779;let _0x34667b=0x0;for(const _0x2fc1eb of this[_0x44da44(0x1b2)])_0x34667b+=_0x2fc1eb[_0x44da44(0x1b2)][_0x44da44(0x1b5)];return{'resultsCount':_0x34667b,'totalItemsCount':_0x34667b};}}function _0x5457(_0x564d01,_0xc4cbb){const _0x1f28c7=_0x1f28();return _0x5457=function(_0x5457a8,_0x5dbab2){_0x5457a8=_0x5457a8-0x1b1;let _0x486188=_0x1f28c7[_0x5457a8];return _0x486188;},_0x5457(_0x564d01,_0xc4cbb);}function _0x1f28(){const _0xbf0a69=['31136uDUPJD','531SMlwKl','99081Jcqeub','2416700mrhWqR','258MGlnjU','204906CgeQts','1333195oZJTnk','6399530VRYsAL','304lezgek','items','768bMqSlA','filter','length'];_0x1f28=function(){return _0xbf0a69;};return _0x1f28();}
23
+ const _0x2bd467=_0x4b86;(function(_0x4db324,_0xec9d02){const _0x2a11f1=_0x4b86,_0x149974=_0x4db324();while(!![]){try{const _0x24280d=parseInt(_0x2a11f1(0x9b))/0x1*(parseInt(_0x2a11f1(0xa6))/0x2)+parseInt(_0x2a11f1(0x9d))/0x3*(-parseInt(_0x2a11f1(0x9c))/0x4)+parseInt(_0x2a11f1(0xa1))/0x5+parseInt(_0x2a11f1(0xa4))/0x6*(parseInt(_0x2a11f1(0x98))/0x7)+parseInt(_0x2a11f1(0x99))/0x8*(-parseInt(_0x2a11f1(0xa5))/0x9)+parseInt(_0x2a11f1(0xa0))/0xa*(-parseInt(_0x2a11f1(0x9f))/0xb)+-parseInt(_0x2a11f1(0xa2))/0xc;if(_0x24280d===_0xec9d02)break;else _0x149974['push'](_0x149974['shift']());}catch(_0x19f473){_0x149974['push'](_0x149974['shift']());}}}(_0x5aad,0xe1cfd));function _0x5aad(){const _0x396516=['3459141OaukRJ','46976GaZlox','items','38sSDYKx','1068948cSqEJL','12bWuMVL','filter','37334YweyoK','510VMFvNl','7681025sGVzGo','5910516XDsXRx','length','6EnDwLE','558fHOHUA','52274wDBOKu'];_0x5aad=function(){return _0x396516;};return _0x5aad();}function _0x4b86(_0x27044a,_0x703e48){const _0x5aad55=_0x5aad();return _0x4b86=function(_0x4b8602,_0x347c14){_0x4b8602=_0x4b8602-0x98;let _0x1bf6ca=_0x5aad55[_0x4b8602];return _0x1bf6ca;},_0x4b86(_0x27044a,_0x703e48);}import{ListView as _0x40b81e}from'ckeditor5/src/ui.js';export class AIChatPromptSuggestionsListView extends _0x40b81e{[_0x2bd467(0x9e)](){const _0x2e4b1d=_0x2bd467;let _0x34adb9=0x0;for(const _0x57525d of this[_0x2e4b1d(0x9a)])_0x34adb9+=_0x57525d[_0x2e4b1d(0x9a)][_0x2e4b1d(0xa3)];return{'resultsCount':_0x34adb9,'totalItemsCount':_0x34adb9};}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x33b4(){const _0x3f5d2b=['14019445KdDzUI','ck-ai-chat-resources__item--in-context','getResourceIcon','ck-ai-chat-resources__item-title','setTemplate','set','128346QSExep','ck-ai-chat-resources__item','ck-ai-chat-resources__item__icon','4455130syYrKB','isVisible','text','_iconView','33OiSDgp','2667933xgWqDR','2275670eYRAwx','TEXT','span','URL','label','trim','172684SOLSMX','type','resource','175PGSzUw','bindTemplate','FILE','updateResourceState','_createTitleView','render','38121zhATdp','ck-hidden','isInContext','content','_updateIcon','24ZiyypH','_setupTemplate','_createIconView','execute','_titleView','highlightText','DOCUMENT','div','10sapIfc','extendTemplate'];_0x33b4=function(){return _0x3f5d2b;};return _0x33b4();}const _0x5d4fec=_0x9fc5;(function(_0x5b37f2,_0x2e00da){const _0x495155=_0x9fc5,_0x43e2da=_0x5b37f2();while(!![]){try{const _0x4d6c73=parseInt(_0x495155(0xd2))/0x1*(parseInt(_0x495155(0xdf))/0x2)+-parseInt(_0x495155(0xee))/0x3*(parseInt(_0x495155(0xc9))/0x4)+parseInt(_0x495155(0xf0))/0x5+parseInt(_0x495155(0xe7))/0x6*(-parseInt(_0x495155(0xcc))/0x7)+-parseInt(_0x495155(0xd7))/0x8*(parseInt(_0x495155(0xef))/0x9)+parseInt(_0x495155(0xea))/0xa+parseInt(_0x495155(0xe1))/0xb;if(_0x4d6c73===_0x2e00da)break;else _0x43e2da['push'](_0x43e2da['shift']());}catch(_0x5d7171){_0x43e2da['push'](_0x43e2da['shift']());}}}(_0x33b4,0x71f5c));import{HighlightedTextView as _0x5f0fcd,IconView as _0xfa0d90,ListItemView as _0x58edda}from'ckeditor5/src/ui.js';function _0x9fc5(_0x35a5b6,_0x21018b){const _0x33b421=_0x33b4();return _0x9fc5=function(_0x9fc54b,_0x107e26){_0x9fc54b=_0x9fc54b-0xc5;let _0x116cfe=_0x33b421[_0x9fc54b];return _0x116cfe;},_0x9fc5(_0x35a5b6,_0x21018b);}import{escapeRegExp as _0x33fd79}from'es-toolkit/compat';import{AIContextItemType as _0x1362bd}from'../../../../aicore/model/aicontext.js';import{IconFileUpload as _0xbce51a,IconCheck as _0x457300,IconDocument as _0x12004e,IconDocumentOutline as _0x512785,IconLink as _0x91ba4e}from'@ckeditor/ckeditor5-icons';const qr=_0x5d4fec(0xe8),zr=_0x5d4fec(0xe2),Br=_0x5d4fec(0xe4),Fr=_0x5d4fec(0xe9);export class AIChatResourceListItemView extends _0x58edda{[_0x5d4fec(0xcb)];[_0x5d4fec(0xdb)];[_0x5d4fec(0xed)];constructor(_0x58a243,_0x349ee2){const _0x4cbfb4=_0x5d4fec;super(_0x58a243),this[_0x4cbfb4(0xcb)]=_0x349ee2,this[_0x4cbfb4(0xe6)](_0x4cbfb4(0xd4),!!_0x349ee2[_0x4cbfb4(0xd4)]),this[_0x4cbfb4(0xdb)]=this[_0x4cbfb4(0xd0)](),this[_0x4cbfb4(0xed)]=this[_0x4cbfb4(0xd9)](),this[_0x4cbfb4(0xd8)]();}[_0x5d4fec(0xd1)](){const _0x57fbf3=_0x5d4fec;super[_0x57fbf3(0xd1)]();}[_0x5d4fec(0xe3)](_0x4eab68){const _0x417434=_0x5d4fec;if(_0x4eab68[_0x417434(0xd4)])return _0x457300;switch(_0x4eab68[_0x417434(0xca)]){case _0x1362bd[_0x417434(0xdd)]:return _0x12004e;case _0x1362bd[_0x417434(0xc6)]:return _0x91ba4e;case _0x1362bd[_0x417434(0xce)]:case _0x1362bd[_0x417434(0xf1)]:return _0xbce51a;default:return _0x512785;}}[_0x5d4fec(0xdc)](_0x382f24){const _0x2fc496=_0x5d4fec;if(!_0x382f24||''===_0x382f24[_0x2fc496(0xc8)]())return void this[_0x2fc496(0xdb)][_0x2fc496(0xdc)](null);const _0x3219ee=new RegExp(_0x33fd79(_0x382f24),'gi');this[_0x2fc496(0xdb)][_0x2fc496(0xdc)](_0x3219ee);}[_0x5d4fec(0xcf)](_0x24e4c6){const _0x51251b=_0x5d4fec;this[_0x51251b(0xcb)][_0x51251b(0xd4)]=_0x24e4c6,this[_0x51251b(0xd4)]=_0x24e4c6,this[_0x51251b(0xd6)]();}[_0x5d4fec(0xd0)](){const _0x1fd386=_0x5d4fec,_0x3320e6=new _0x5f0fcd();return _0x3320e6[_0x1fd386(0xec)]=this[_0x1fd386(0xcb)][_0x1fd386(0xc7)],_0x3320e6[_0x1fd386(0xe0)]({'tag':_0x1fd386(0xc5),'attributes':{'class':[Br]}}),_0x3320e6;}[_0x5d4fec(0xd9)](){const _0x149419=_0x5d4fec,_0x55b38d=new _0xfa0d90();return _0x55b38d[_0x149419(0xd5)]=this[_0x149419(0xe3)](this[_0x149419(0xcb)]),_0x55b38d;}[_0x5d4fec(0xd8)](){const _0x42cce0=_0x5d4fec,_0x403b61=this[_0x42cce0(0xcd)];this[_0x42cce0(0xe5)]({'tag':_0x42cce0(0xde),'attributes':{'class':[qr,_0x403b61['if'](_0x42cce0(0xeb),_0x42cce0(0xd3),_0x216a37=>!_0x216a37),_0x403b61['if'](_0x42cce0(0xd4),zr)]},'children':[{'tag':_0x42cce0(0xde),'attributes':{'class':[Fr]},'children':[this[_0x42cce0(0xed)]]},this[_0x42cce0(0xdb)]],'on':{'click':_0x403b61['to'](_0x42cce0(0xda))}});}[_0x5d4fec(0xd6)](){const _0x5994f4=_0x5d4fec;this[_0x5994f4(0xed)][_0x5994f4(0xd5)]=this[_0x5994f4(0xe3)](this[_0x5994f4(0xcb)]);}}
23
+ const _0x598bda=_0x58aa;(function(_0x691335,_0x4b6674){const _0xa329db=_0x58aa,_0x2216e4=_0x691335();while(!![]){try{const _0x4584eb=parseInt(_0xa329db(0x157))/0x1*(-parseInt(_0xa329db(0x161))/0x2)+-parseInt(_0xa329db(0x165))/0x3+parseInt(_0xa329db(0x162))/0x4*(parseInt(_0xa329db(0x150))/0x5)+parseInt(_0xa329db(0x15b))/0x6+-parseInt(_0xa329db(0x173))/0x7+parseInt(_0xa329db(0x168))/0x8+parseInt(_0xa329db(0x160))/0x9;if(_0x4584eb===_0x4b6674)break;else _0x2216e4['push'](_0x2216e4['shift']());}catch(_0x16faa5){_0x2216e4['push'](_0x2216e4['shift']());}}}(_0x5593,0xbb7b0));import{HighlightedTextView as _0x4ef482,IconView as _0x44f5ff,ListItemView as _0x2efefa}from'ckeditor5/src/ui.js';import{escapeRegExp as _0x35b257}from'es-toolkit/compat';import{AIContextItemType as _0x338cca}from'../../../../aicore/model/aicontext.js';function _0x5593(){const _0x249da1=['render','19800819iroZfS','5332XnfOqX','13664RtlNip','isVisible','ck-ai-chat-resources__item-title','2535093rsOrMe','label','updateResourceState','1388344QCQKkT','div','_createTitleView','isInContext','setTemplate','span','ck-ai-chat-resources__item','execute','ck-ai-chat-resources__item__icon','_titleView','getResourceIcon','10421705CDwkJo','type','URL','text','resource','DOCUMENT','_iconView','highlightText','2205KwOCgk','content','set','FILE','ck-hidden','trim','bindTemplate','388UGikwH','_createIconView','_updateIcon','_setupTemplate','1536504BCWagS','extendTemplate','TEXT','ck-ai-chat-resources__item--in-context'];_0x5593=function(){return _0x249da1;};return _0x5593();}import{IconFileUpload as _0x575434,IconCheck as _0x46258a,IconDocument as _0x2311e6,IconDocumentOutline as _0x4b80fc,IconLink as _0x2fc52c}from'@ckeditor/ckeditor5-icons';const Tr=_0x598bda(0x16e),qr=_0x598bda(0x15e),zr=_0x598bda(0x164),Br=_0x598bda(0x170);function _0x58aa(_0x33babc,_0x41b2c3){const _0x55930a=_0x5593();return _0x58aa=function(_0x58aa80,_0x36e58b){_0x58aa80=_0x58aa80-0x14a;let _0x3a1cc1=_0x55930a[_0x58aa80];return _0x3a1cc1;},_0x58aa(_0x33babc,_0x41b2c3);}export class AIChatResourceListItemView extends _0x2efefa{[_0x598bda(0x14c)];[_0x598bda(0x171)];[_0x598bda(0x14e)];constructor(_0x2db7de,_0x35053c){const _0x46126d=_0x598bda;super(_0x2db7de),this[_0x46126d(0x14c)]=_0x35053c,this[_0x46126d(0x152)](_0x46126d(0x16b),!!_0x35053c[_0x46126d(0x16b)]),this[_0x46126d(0x171)]=this[_0x46126d(0x16a)](),this[_0x46126d(0x14e)]=this[_0x46126d(0x158)](),this[_0x46126d(0x15a)]();}[_0x598bda(0x15f)](){const _0x926ec4=_0x598bda;super[_0x926ec4(0x15f)]();}[_0x598bda(0x172)](_0x5843e4){const _0x15df6b=_0x598bda;if(_0x5843e4[_0x15df6b(0x16b)])return _0x46258a;switch(_0x5843e4[_0x15df6b(0x174)]){case _0x338cca[_0x15df6b(0x14d)]:return _0x2311e6;case _0x338cca[_0x15df6b(0x14a)]:return _0x2fc52c;case _0x338cca[_0x15df6b(0x153)]:case _0x338cca[_0x15df6b(0x15d)]:return _0x575434;default:return _0x4b80fc;}}[_0x598bda(0x14f)](_0x5549d0){const _0xff7e31=_0x598bda;if(!_0x5549d0||''===_0x5549d0[_0xff7e31(0x155)]())return void this[_0xff7e31(0x171)][_0xff7e31(0x14f)](null);const _0x40b786=new RegExp(_0x35b257(_0x5549d0),'gi');this[_0xff7e31(0x171)][_0xff7e31(0x14f)](_0x40b786);}[_0x598bda(0x167)](_0x219319){const _0x1db7d0=_0x598bda;this[_0x1db7d0(0x14c)][_0x1db7d0(0x16b)]=_0x219319,this[_0x1db7d0(0x16b)]=_0x219319,this[_0x1db7d0(0x159)]();}[_0x598bda(0x16a)](){const _0x361542=_0x598bda,_0x2c412a=new _0x4ef482();return _0x2c412a[_0x361542(0x14b)]=this[_0x361542(0x14c)][_0x361542(0x166)],_0x2c412a[_0x361542(0x15c)]({'tag':_0x361542(0x16d),'attributes':{'class':[zr]}}),_0x2c412a;}[_0x598bda(0x158)](){const _0xd78bb6=_0x598bda,_0x1ee533=new _0x44f5ff();return _0x1ee533[_0xd78bb6(0x151)]=this[_0xd78bb6(0x172)](this[_0xd78bb6(0x14c)]),_0x1ee533;}[_0x598bda(0x15a)](){const _0x49f281=_0x598bda,_0x3dc149=this[_0x49f281(0x156)];this[_0x49f281(0x16c)]({'tag':_0x49f281(0x169),'attributes':{'class':[Tr,_0x3dc149['if'](_0x49f281(0x163),_0x49f281(0x154),_0x148d94=>!_0x148d94),_0x3dc149['if'](_0x49f281(0x16b),qr)]},'children':[{'tag':_0x49f281(0x169),'attributes':{'class':[Br]},'children':[this[_0x49f281(0x14e)]]},this[_0x49f281(0x171)]],'on':{'click':_0x3dc149['to'](_0x49f281(0x16f))}});}[_0x598bda(0x159)](){const _0x26fe48=_0x598bda;this[_0x26fe48(0x14e)][_0x26fe48(0x151)]=this[_0x26fe48(0x172)](this[_0x26fe48(0x14c)]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x78ea10=_0x4b58;function _0x4b58(_0x50baf8,_0x1e6e7e){const _0x4f61fa=_0x4f61();return _0x4b58=function(_0x4b58c8,_0x77d3dc){_0x4b58c8=_0x4b58c8-0x86;let _0x5408ce=_0x4f61fa[_0x4b58c8];return _0x5408ce;},_0x4b58(_0x50baf8,_0x1e6e7e);}(function(_0x59690c,_0x349a06){const _0xc971ed=_0x4b58,_0x5d9298=_0x59690c();while(!![]){try{const _0x1ba6dd=parseInt(_0xc971ed(0xa0))/0x1+parseInt(_0xc971ed(0xa3))/0x2+parseInt(_0xc971ed(0x95))/0x3+parseInt(_0xc971ed(0xb7))/0x4+-parseInt(_0xc971ed(0x92))/0x5+-parseInt(_0xc971ed(0xa8))/0x6+-parseInt(_0xc971ed(0x9d))/0x7;if(_0x1ba6dd===_0x349a06)break;else _0x5d9298['push'](_0x5d9298['shift']());}catch(_0x81f5ac){_0x5d9298['push'](_0x5d9298['shift']());}}}(_0x4f61,0xcab3a));import{BalloonPanelView as _0x18b586,ButtonView as _0x108d06,clickOutsideHandler as _0x678aaa,FormHeaderView as _0x15b859}from'ckeditor5/src/ui.js';function _0x4f61(){const _0x188523=['getTargetElement','set','show','_getResourcesViewFromBalloon','label','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_source','updateResourceState','2931308jHIMfU','_setupSingleResourceBalloonClickOutsideHandler','resource','_bodyCollection','pin','children','_createBalloonResourcesView','isAnyResourceBalloonVisible','_addSourceResourceContent','values','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','ck-button-icon\x20ck-button-back','onBalloonClosed','onResourceSelected','_config','extendTemplate','addResourceToContext','element','1212960QMfLUM','content','showSourceResourcesBalloon','111912ZMveHC','add','closeSourceResourceBalloon','destroy','_createSourceResourceBalloonPanel','isVisible','setResources','source','6524448GwbApZ','ck-ai-chat-context-controls__source-balloon-panel','clear','725254MbxoOH','_createBackButton','getLimiterElement','2671954EJFLWx','_locale','execute','populateSourceResourceBalloon','_createBalloonHeader','4958640djqKsb','onLoadSourceResources','loadSourceResources','hide','get','onBackToContext','delete','_sourceResourceBalloons'];_0x4f61=function(){return _0x188523;};return _0x4f61();}import{IconPreviousArrow as _0x4da272}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x26788a}from'../../../../aicore/utils/common-translations.js';import{AIChatContextResourcesView as _0x28c08d}from'./aichatresourcesview.js';const Xo=_0x78ea10(0x9e),zo=_0x78ea10(0x8b),Jo=_0x78ea10(0xb5);export class AIChatResourcesBalloonView{[_0x78ea10(0xaf)]=new Map();[_0x78ea10(0xba)];[_0x78ea10(0xa4)];[_0x78ea10(0x8e)];constructor(_0x56645b,_0x15ddbc,_0x5dfc9b){const _0x583461=_0x78ea10;this[_0x583461(0xa4)]=_0x56645b,this[_0x583461(0xba)]=_0x15ddbc,this[_0x583461(0x8e)]=_0x5dfc9b;}[_0x78ea10(0x94)](_0x6d2cb1){const _0x2c0c71=_0x78ea10;let _0x43e32a=this[_0x2c0c71(0xaf)][_0x2c0c71(0xac)](_0x6d2cb1['id']);_0x43e32a||(_0x43e32a=this[_0x2c0c71(0x99)](),this[_0x2c0c71(0xaf)][_0x2c0c71(0xb1)](_0x6d2cb1['id'],_0x43e32a),this[_0x2c0c71(0xb8)](_0x43e32a)),this[_0x2c0c71(0x88)](_0x43e32a,_0x6d2cb1),_0x43e32a[_0x2c0c71(0xb2)]();const _0x40c122=this[_0x2c0c71(0x8e)][_0x2c0c71(0xb0)]();_0x40c122&&_0x43e32a[_0x2c0c71(0xbb)]({'target':_0x40c122,'limiter':this[_0x2c0c71(0x8e)][_0x2c0c71(0xa2)]()});}[_0x78ea10(0xa6)](_0x3cb49e,_0x222b58,_0x18640f){const _0x4cbd58=_0x78ea10,_0x18de1d=this[_0x4cbd58(0xaf)][_0x4cbd58(0xac)](_0x3cb49e);if(!_0x18de1d)return;const _0x31df2c=this[_0x4cbd58(0xb3)](_0x18de1d);_0x31df2c&&_0x31df2c[_0x4cbd58(0x9b)](_0x222b58,_0x18640f);}[_0x78ea10(0x97)](_0x39b3a8){const _0x4fd02c=_0x78ea10,_0x18940d=this[_0x4fd02c(0xaf)][_0x4fd02c(0xac)](_0x39b3a8);_0x18940d&&requestAnimationFrame(()=>{const _0x309b0b=_0x4fd02c;_0x18940d[_0x309b0b(0xab)](),this[_0x309b0b(0xaf)][_0x309b0b(0xae)](_0x39b3a8),this[_0x309b0b(0x8e)][_0x309b0b(0x8c)]();});}[_0x78ea10(0x87)](){const _0x4d1a03=_0x78ea10;for(const _0x20481e of this[_0x4d1a03(0xaf)][_0x4d1a03(0x89)]())if(_0x20481e[_0x4d1a03(0x9a)])return!0x0;return!0x1;}[_0x78ea10(0xb6)](_0x1806ae,_0x366f37,_0x46257f){const _0x5708df=_0x78ea10,_0x4db11e=this[_0x5708df(0xaf)][_0x5708df(0xac)](_0x1806ae);if(!_0x4db11e||!_0x4db11e[_0x5708df(0x9a)])return;const _0x236b36=this[_0x5708df(0x8e)][_0x5708df(0xb0)]();if(!_0x236b36)return;_0x4db11e[_0x5708df(0xbb)]({'target':_0x236b36,'limiter':this[_0x5708df(0x8e)][_0x5708df(0xa2)]()});const _0x5e4427=this[_0x5708df(0xb3)](_0x4db11e);_0x5e4427&&_0x5e4427[_0x5708df(0xb6)](_0x366f37,_0x46257f);}[_0x78ea10(0x98)](){const _0x9e322e=_0x78ea10;for(const _0xa18b7 of this[_0x9e322e(0xaf)][_0x9e322e(0x89)]())_0xa18b7[_0x9e322e(0x98)]();this[_0x9e322e(0xaf)][_0x9e322e(0x9f)]();}[_0x78ea10(0x99)](){const _0x328213=_0x78ea10,_0x4e73db=new _0x18b586(this[_0x328213(0xa4)]);return _0x4e73db[_0x328213(0x8f)]({'attributes':{'class':Xo}}),this[_0x328213(0xba)][_0x328213(0x96)](_0x4e73db),_0x4e73db;}[_0x78ea10(0x88)](_0x849824,_0x3310cc){const _0x32c444=_0x78ea10;_0x849824[_0x32c444(0x93)][_0x32c444(0x9f)]();const _0x17ac84=this[_0x32c444(0xa7)](_0x849824,_0x3310cc);_0x849824[_0x32c444(0x93)][_0x32c444(0x96)](_0x17ac84);const _0x1fb97d=this[_0x32c444(0x86)](_0x3310cc);_0x849824[_0x32c444(0x93)][_0x32c444(0x96)](_0x1fb97d);}[_0x78ea10(0xa7)](_0x36b9fc,_0xdaae04){const _0x22eb53=_0x78ea10,_0x480c6c=this[_0x22eb53(0xa1)](_0x36b9fc),_0x5d4b3b=new _0x15b859(this[_0x22eb53(0xa4)],{'label':_0xdaae04[_0x22eb53(0xb4)],'class':Jo});return _0x5d4b3b[_0x22eb53(0xbc)][_0x22eb53(0x96)](_0x480c6c,0x0),_0x5d4b3b;}[_0x78ea10(0xa1)](_0x130b2d){const _0x47fcaf=_0x78ea10,_0x3de552=new _0x108d06(this[_0x47fcaf(0xa4)]);return _0x3de552[_0x47fcaf(0xb1)]({'icon':_0x4da272,'tooltip':_0x26788a(this[_0x47fcaf(0xa4)],_0x47fcaf(0x8a)),'tooltipPosition':'n','class':zo}),_0x3de552['on'](_0x47fcaf(0xa5),()=>{const _0x85095d=_0x47fcaf;_0x130b2d[_0x85095d(0xab)](),this[_0x85095d(0x8e)][_0x85095d(0xad)]();}),_0x3de552;}[_0x78ea10(0x86)](_0xed3a39){const _0x4428e4=_0x78ea10,_0x7419a2=new _0x28c08d(this[_0x4428e4(0xa4)],_0xed3a39);return _0x7419a2['on'](_0x4428e4(0xaa),(_0x23a515,_0x5a2100)=>{const _0x4bc2d9=_0x4428e4;this[_0x4bc2d9(0x8e)][_0x4bc2d9(0xa9)](_0x5a2100);}),_0x7419a2['on'](_0x4428e4(0x90),(_0x35afb7,_0x32b031)=>{const _0x467e74=_0x4428e4;this[_0x467e74(0x8e)][_0x467e74(0x8d)](_0x32b031[_0x467e74(0x9c)],_0x32b031[_0x467e74(0xb9)]),this[_0x467e74(0x97)](_0xed3a39['id']);}),_0x7419a2;}[_0x78ea10(0xb3)](_0x162cb3){const _0xd6a935=_0x78ea10,_0x48fbda=_0x162cb3[_0xd6a935(0x93)][_0xd6a935(0xac)](0x1);return _0x48fbda instanceof _0x28c08d?_0x48fbda:null;}[_0x78ea10(0xb8)](_0x3b6948){const _0x115718=_0x78ea10;_0x678aaa({'emitter':_0x3b6948,'contextElements':[_0x3b6948[_0x115718(0x91)]],'callback':()=>{const _0x3fd738=_0x115718;_0x3b6948[_0x3fd738(0xab)](),this[_0x3fd738(0x8e)][_0x3fd738(0x8c)]();},'activator':()=>_0x3b6948[_0x115718(0x9a)]});}}
23
+ const _0x4000ea=_0x3778;(function(_0x59a56b,_0x2e1560){const _0x5b8a75=_0x3778,_0x4f4cce=_0x59a56b();while(!![]){try{const _0x14f1f3=parseInt(_0x5b8a75(0x14b))/0x1+parseInt(_0x5b8a75(0x13b))/0x2*(parseInt(_0x5b8a75(0x150))/0x3)+-parseInt(_0x5b8a75(0x157))/0x4+-parseInt(_0x5b8a75(0x139))/0x5*(parseInt(_0x5b8a75(0x15d))/0x6)+-parseInt(_0x5b8a75(0x144))/0x7+-parseInt(_0x5b8a75(0x137))/0x8*(parseInt(_0x5b8a75(0x126))/0x9)+parseInt(_0x5b8a75(0x13d))/0xa;if(_0x14f1f3===_0x2e1560)break;else _0x4f4cce['push'](_0x4f4cce['shift']());}catch(_0x3448dc){_0x4f4cce['push'](_0x4f4cce['shift']());}}}(_0x2f61,0xc1b91));function _0x2f61(){const _0x127a0c=['source','values','show','3027488ryhNoX','onResourceSelected','setResources','ck-button-icon\x20ck-button-back','loadSourceResources','label','6kJrTqq','get','addResourceToContext','9zXJNES','_createBalloonResourcesView','onBackToContext','_locale','_sourceResourceBalloons','ck-ai-chat-context-controls__source-balloon-panel','element','updateResourceState','getTargetElement','resource','_createBalloonHeader','_createSourceResourceBalloonPanel','getLimiterElement','delete','pin','onBalloonClosed','closeSourceResourceBalloon','3287680QrHAes','showSourceResourcesBalloon','5966385NZhQqv','_getResourcesViewFromBalloon','244ZxyUdq','_setupSingleResourceBalloonClickOutsideHandler','25910630LShjYO','isVisible','_config','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','populateSourceResourceBalloon','extendTemplate','content','9123338fTvpkk','set','clear','add','hide','onLoadSourceResources','isAnyResourceBalloonVisible','559761GBmkIx','_bodyCollection','children','_addSourceResourceContent','destroy','32142rCeLIo','execute','_createBackButton','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_source'];_0x2f61=function(){return _0x127a0c;};return _0x2f61();}function _0x3778(_0x1ee908,_0x4475f6){const _0x2f6183=_0x2f61();return _0x3778=function(_0x37783c,_0x54b1df){_0x37783c=_0x37783c-0x124;let _0x589eb3=_0x2f6183[_0x37783c];return _0x589eb3;},_0x3778(_0x1ee908,_0x4475f6);}import{BalloonPanelView as _0xd772c4,ButtonView as _0x379ad6,clickOutsideHandler as _0xe7f111,FormHeaderView as _0x56af5a}from'ckeditor5/src/ui.js';import{IconPreviousArrow as _0x349dc9}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x5a68e6}from'../../../../aicore/utils/common-translations.js';import{AIChatContextResourcesView as _0x2f60f7}from'./aichatresourcesview.js';const Qo=_0x4000ea(0x12b),Zo=_0x4000ea(0x15a),Or=_0x4000ea(0x153);export class AIChatResourcesBalloonView{[_0x4000ea(0x12a)]=new Map();[_0x4000ea(0x14c)];[_0x4000ea(0x129)];[_0x4000ea(0x13f)];constructor(_0x538013,_0x3ed222,_0x438dab){const _0x1b893c=_0x4000ea;this[_0x1b893c(0x129)]=_0x538013,this[_0x1b893c(0x14c)]=_0x3ed222,this[_0x1b893c(0x13f)]=_0x438dab;}[_0x4000ea(0x138)](_0xf24a45){const _0x3d03c4=_0x4000ea;let _0x5e8137=this[_0x3d03c4(0x12a)][_0x3d03c4(0x124)](_0xf24a45['id']);_0x5e8137||(_0x5e8137=this[_0x3d03c4(0x131)](),this[_0x3d03c4(0x12a)][_0x3d03c4(0x145)](_0xf24a45['id'],_0x5e8137),this[_0x3d03c4(0x13c)](_0x5e8137)),this[_0x3d03c4(0x14e)](_0x5e8137,_0xf24a45),_0x5e8137[_0x3d03c4(0x156)]();const _0x57cec8=this[_0x3d03c4(0x13f)][_0x3d03c4(0x12e)]();_0x57cec8&&_0x5e8137[_0x3d03c4(0x134)]({'target':_0x57cec8,'limiter':this[_0x3d03c4(0x13f)][_0x3d03c4(0x132)]()});}[_0x4000ea(0x141)](_0x9a9599,_0x141b18,_0x6249ee){const _0x1077b4=_0x4000ea,_0x13fdcf=this[_0x1077b4(0x12a)][_0x1077b4(0x124)](_0x9a9599);if(!_0x13fdcf)return;const _0x5925ee=this[_0x1077b4(0x13a)](_0x13fdcf);_0x5925ee&&_0x5925ee[_0x1077b4(0x159)](_0x141b18,_0x6249ee);}[_0x4000ea(0x136)](_0xc13790){const _0x4d00a1=_0x4000ea,_0x364cee=this[_0x4d00a1(0x12a)][_0x4d00a1(0x124)](_0xc13790);_0x364cee&&requestAnimationFrame(()=>{const _0x123a5a=_0x4d00a1;_0x364cee[_0x123a5a(0x148)](),this[_0x123a5a(0x12a)][_0x123a5a(0x133)](_0xc13790),this[_0x123a5a(0x13f)][_0x123a5a(0x135)]();});}[_0x4000ea(0x14a)](){const _0x59f148=_0x4000ea;for(const _0xa6d917 of this[_0x59f148(0x12a)][_0x59f148(0x155)]())if(_0xa6d917[_0x59f148(0x13e)])return!0x0;return!0x1;}[_0x4000ea(0x12d)](_0x37720a,_0x1d422e,_0x12053c){const _0x428266=_0x4000ea,_0x4c41ef=this[_0x428266(0x12a)][_0x428266(0x124)](_0x37720a);if(!_0x4c41ef||!_0x4c41ef[_0x428266(0x13e)])return;const _0x445ac8=this[_0x428266(0x13f)][_0x428266(0x12e)]();if(!_0x445ac8)return;_0x4c41ef[_0x428266(0x134)]({'target':_0x445ac8,'limiter':this[_0x428266(0x13f)][_0x428266(0x132)]()});const _0x3a7cb1=this[_0x428266(0x13a)](_0x4c41ef);_0x3a7cb1&&_0x3a7cb1[_0x428266(0x12d)](_0x1d422e,_0x12053c);}[_0x4000ea(0x14f)](){const _0x598323=_0x4000ea;for(const _0x13f669 of this[_0x598323(0x12a)][_0x598323(0x155)]())_0x13f669[_0x598323(0x14f)]();this[_0x598323(0x12a)][_0x598323(0x146)]();}[_0x4000ea(0x131)](){const _0x304154=_0x4000ea,_0x53bea7=new _0xd772c4(this[_0x304154(0x129)]);return _0x53bea7[_0x304154(0x142)]({'attributes':{'class':Qo}}),this[_0x304154(0x14c)][_0x304154(0x147)](_0x53bea7),_0x53bea7;}[_0x4000ea(0x14e)](_0x19be18,_0x157a36){const _0x18728d=_0x4000ea;_0x19be18[_0x18728d(0x143)][_0x18728d(0x146)]();const _0x2ed3ea=this[_0x18728d(0x130)](_0x19be18,_0x157a36);_0x19be18[_0x18728d(0x143)][_0x18728d(0x147)](_0x2ed3ea);const _0x20f846=this[_0x18728d(0x127)](_0x157a36);_0x19be18[_0x18728d(0x143)][_0x18728d(0x147)](_0x20f846);}[_0x4000ea(0x130)](_0x5b9827,_0x4de30f){const _0x1fe981=_0x4000ea,_0x2b8eb6=this[_0x1fe981(0x152)](_0x5b9827),_0x51eea1=new _0x56af5a(this[_0x1fe981(0x129)],{'label':_0x4de30f[_0x1fe981(0x15c)],'class':Or});return _0x51eea1[_0x1fe981(0x14d)][_0x1fe981(0x147)](_0x2b8eb6,0x0),_0x51eea1;}[_0x4000ea(0x152)](_0x179c67){const _0xeadb18=_0x4000ea,_0x482465=new _0x379ad6(this[_0xeadb18(0x129)]);return _0x482465[_0xeadb18(0x145)]({'icon':_0x349dc9,'tooltip':_0x5a68e6(this[_0xeadb18(0x129)],_0xeadb18(0x140)),'tooltipPosition':'n','class':Zo}),_0x482465['on'](_0xeadb18(0x151),()=>{const _0x37178f=_0xeadb18;_0x179c67[_0x37178f(0x148)](),this[_0x37178f(0x13f)][_0x37178f(0x128)]();}),_0x482465;}[_0x4000ea(0x127)](_0x1e5ab0){const _0x348723=_0x4000ea,_0x1a2de8=new _0x2f60f7(this[_0x348723(0x129)],_0x1e5ab0);return _0x1a2de8['on'](_0x348723(0x15b),(_0x388a49,_0x2e6c75)=>{const _0x5a19f1=_0x348723;this[_0x5a19f1(0x13f)][_0x5a19f1(0x149)](_0x2e6c75);}),_0x1a2de8['on'](_0x348723(0x125),(_0x38a9a9,_0x5a577b)=>{const _0xae21db=_0x348723;this[_0xae21db(0x13f)][_0xae21db(0x158)](_0x5a577b[_0xae21db(0x154)],_0x5a577b[_0xae21db(0x12f)]),this[_0xae21db(0x136)](_0x1e5ab0['id']);}),_0x1a2de8;}[_0x4000ea(0x13a)](_0x125bd0){const _0x3d9bda=_0x4000ea,_0xe72563=_0x125bd0[_0x3d9bda(0x143)][_0x3d9bda(0x124)](0x1);return _0xe72563 instanceof _0x2f60f7?_0xe72563:null;}[_0x4000ea(0x13c)](_0x5f2471){const _0x399999=_0x4000ea;_0xe7f111({'emitter':_0x5f2471,'contextElements':[_0x5f2471[_0x399999(0x12c)]],'callback':()=>{const _0x4105a9=_0x399999;_0x5f2471[_0x4105a9(0x148)](),this[_0x4105a9(0x13f)][_0x4105a9(0x135)]();},'activator':()=>_0x5f2471[_0x399999(0x13e)]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x568d55=_0xc55a;(function(_0x5e6913,_0x115cd8){const _0x3e40d4=_0xc55a,_0x4c2c79=_0x5e6913();while(!![]){try{const _0xe45f58=-parseInt(_0x3e40d4(0x1fd))/0x1+parseInt(_0x3e40d4(0x1fe))/0x2+parseInt(_0x3e40d4(0x1ef))/0x3+-parseInt(_0x3e40d4(0x205))/0x4*(-parseInt(_0x3e40d4(0x1f0))/0x5)+parseInt(_0x3e40d4(0x1f8))/0x6+-parseInt(_0x3e40d4(0x204))/0x7+-parseInt(_0x3e40d4(0x201))/0x8*(parseInt(_0x3e40d4(0x1ed))/0x9);if(_0xe45f58===_0x115cd8)break;else _0x4c2c79['push'](_0x4c2c79['shift']());}catch(_0x13a68d){_0x4c2c79['push'](_0x4c2c79['shift']());}}}(_0x5540,0xede0f));function _0x5540(){const _0x38083d=['_source','locale','filter','add','setResources','test','highlightText','382437PbikUy','extendTemplate','3758172DqVJEj','10GqcLSk','_handleResourceSelection','clear','replace','trim','resource','fire','label','5801712ogtAGP','items','\x5c$&','execute','addResourceToContext','554130hlmOWj','3705818evKjhJ','ck-ai-chat-resources__list','updateResourceState','368jRpWbK','useDefaultFiltering','forEach','8292032UizwVV','1190300xtIxtT'];_0x5540=function(){return _0x38083d;};return _0x5540();}import{ListView as _0x5c607b}from'ckeditor5/src/ui.js';function _0xc55a(_0x1213dc,_0x26604e){const _0x554043=_0x5540();return _0xc55a=function(_0xc55ac0,_0x347576){_0xc55ac0=_0xc55ac0-0x1ea;let _0x10418a=_0x554043[_0xc55ac0];return _0x10418a;},_0xc55a(_0x1213dc,_0x26604e);}import{AIChatResourceListItemView as _0x592192}from'./aichatresourcelistitemview.js';const Qo=_0x568d55(0x1ff);export class AIChatContextResourcesListView extends _0x5c607b{[_0x568d55(0x206)];constructor(_0x4dbdf8,_0x3bbd46){const _0x63991e=_0x568d55;super(_0x4dbdf8),this[_0x63991e(0x206)]=_0x3bbd46,this[_0x63991e(0x1ee)]({'attributes':{'class':[Qo]}});}[_0x568d55(0x1ea)](_0x107e27,_0x5d8928){const _0x2fc499=_0x568d55;this[_0x2fc499(0x1f9)][_0x2fc499(0x1f2)]();let _0x3547bc=_0x107e27;if(this[_0x2fc499(0x206)][_0x2fc499(0x202)]&&_0x5d8928&&''!==_0x5d8928[_0x2fc499(0x1f4)]()){const _0x1cdb1a=new RegExp(_0x5d8928[_0x2fc499(0x1f3)](/[.*+?^${}()|[\]\\]/g,_0x2fc499(0x1fa)),'gi');_0x3547bc=_0x107e27[_0x2fc499(0x208)](_0x4f31ef=>_0x1cdb1a[_0x2fc499(0x1eb)](_0x4f31ef[_0x2fc499(0x1f7)]));}for(const _0x409032 of _0x3547bc){const _0x360c27=new _0x592192(this[_0x2fc499(0x207)],_0x409032);_0x360c27['on'](_0x2fc499(0x1fb),()=>{const _0x3010ae=_0x2fc499;this[_0x3010ae(0x1f1)](this[_0x3010ae(0x206)],_0x409032);}),this[_0x2fc499(0x1f9)][_0x2fc499(0x209)](_0x360c27);}this[_0x2fc499(0x206)][_0x2fc499(0x202)]&&this[_0x2fc499(0x1ec)](_0x5d8928);}[_0x568d55(0x1ec)](_0x21848d){const _0x2345da=_0x568d55;this[_0x2345da(0x206)][_0x2345da(0x202)]&&this[_0x2345da(0x1f9)][_0x2345da(0x203)](_0x2c9586=>{const _0x1536b1=_0x2345da;_0x2c9586[_0x1536b1(0x1ec)](_0x21848d);});}[_0x568d55(0x200)](_0x317c58,_0x2ca89b){const _0x3a4067=_0x568d55;for(const _0x41c0ee of this[_0x3a4067(0x1f9)]){const _0x5af1f9=_0x41c0ee;_0x5af1f9[_0x3a4067(0x1f5)]['id']===_0x317c58&&_0x5af1f9[_0x3a4067(0x200)](_0x2ca89b);}}[_0x568d55(0x1f1)](_0x5545f3,_0x4c942a){const _0x91bac5=_0x568d55;this[_0x91bac5(0x1f6)](_0x91bac5(0x1fc),{'source':_0x5545f3,'resource':_0x4c942a});}}
23
+ function _0x1315(_0x801d75,_0x24ee62){const _0x437879=_0x4378();return _0x1315=function(_0x1315b1,_0x499583){_0x1315b1=_0x1315b1-0x10f;let _0x52213e=_0x437879[_0x1315b1];return _0x52213e;},_0x1315(_0x801d75,_0x24ee62);}const _0x15098c=_0x1315;(function(_0x43dc15,_0x50bb07){const _0x1f9606=_0x1315,_0x4d92ef=_0x43dc15();while(!![]){try{const _0x407f2b=parseInt(_0x1f9606(0x121))/0x1+-parseInt(_0x1f9606(0x117))/0x2+parseInt(_0x1f9606(0x126))/0x3+parseInt(_0x1f9606(0x110))/0x4+parseInt(_0x1f9606(0x10f))/0x5+-parseInt(_0x1f9606(0x12b))/0x6*(-parseInt(_0x1f9606(0x11a))/0x7)+-parseInt(_0x1f9606(0x11c))/0x8;if(_0x407f2b===_0x50bb07)break;else _0x4d92ef['push'](_0x4d92ef['shift']());}catch(_0x33890c){_0x4d92ef['push'](_0x4d92ef['shift']());}}}(_0x4378,0x6e0fe));import{ListView as _0x6b9968}from'ckeditor5/src/ui.js';import{AIChatResourceListItemView as _0x54c5c3}from'./aichatresourcelistitemview.js';const sc=_0x15098c(0x116);function _0x4378(){const _0x206acd=['extendTemplate','923671mUujlE','add','14277920wWpKvD','highlightText','locale','forEach','addResourceToContext','891999KPNESF','updateResourceState','_handleResourceSelection','clear','items','2076255awkWfD','filter','useDefaultFiltering','_source','setResources','30uvcPyY','execute','trim','1411365PXxqUt','2433804dvZeUK','label','test','resource','fire','\x5c$&','ck-ai-chat-resources__list','1798038oriwYl','replace'];_0x4378=function(){return _0x206acd;};return _0x4378();}export class AIChatContextResourcesListView extends _0x6b9968{[_0x15098c(0x129)];constructor(_0x543562,_0x3fd58c){const _0x201973=_0x15098c;super(_0x543562),this[_0x201973(0x129)]=_0x3fd58c,this[_0x201973(0x119)]({'attributes':{'class':[sc]}});}[_0x15098c(0x12a)](_0x15875c,_0x13758e){const _0x1f49ee=_0x15098c;this[_0x1f49ee(0x125)][_0x1f49ee(0x124)]();let _0x5eca55=_0x15875c;if(this[_0x1f49ee(0x129)][_0x1f49ee(0x128)]&&_0x13758e&&''!==_0x13758e[_0x1f49ee(0x12d)]()){const _0x4d4656=new RegExp(_0x13758e[_0x1f49ee(0x118)](/[.*+?^${}()|[\]\\]/g,_0x1f49ee(0x115)),'gi');_0x5eca55=_0x15875c[_0x1f49ee(0x127)](_0x3f0120=>_0x4d4656[_0x1f49ee(0x112)](_0x3f0120[_0x1f49ee(0x111)]));}for(const _0x553f1f of _0x5eca55){const _0x66a3d4=new _0x54c5c3(this[_0x1f49ee(0x11e)],_0x553f1f);_0x66a3d4['on'](_0x1f49ee(0x12c),()=>{const _0x1ac0c5=_0x1f49ee;this[_0x1ac0c5(0x123)](this[_0x1ac0c5(0x129)],_0x553f1f);}),this[_0x1f49ee(0x125)][_0x1f49ee(0x11b)](_0x66a3d4);}this[_0x1f49ee(0x129)][_0x1f49ee(0x128)]&&this[_0x1f49ee(0x11d)](_0x13758e);}[_0x15098c(0x11d)](_0x59183f){const _0x20f0df=_0x15098c;this[_0x20f0df(0x129)][_0x20f0df(0x128)]&&this[_0x20f0df(0x125)][_0x20f0df(0x11f)](_0x1603b6=>{const _0x40ebec=_0x20f0df;_0x1603b6[_0x40ebec(0x11d)](_0x59183f);});}[_0x15098c(0x122)](_0x4554c0,_0x10dec0){const _0x118d28=_0x15098c;for(const _0x14355f of this[_0x118d28(0x125)]){const _0x721bb=_0x14355f;_0x721bb[_0x118d28(0x113)]['id']===_0x4554c0&&_0x721bb[_0x118d28(0x122)](_0x10dec0);}}[_0x15098c(0x123)](_0x13f5b9,_0x14437b){const _0x59b776=_0x15098c;this[_0x59b776(0x114)](_0x59b776(0x120),{'source':_0x13f5b9,'resource':_0x14437b});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{ButtonView as _0x29aa4b,IconView as _0x3b0732,LabeledFieldView as _0xb87814,createLabeledInputText as _0x21a793}from'ckeditor5/src/ui.js';import{IconLoupe as _0x4b025e,IconCancel as _0x4fb583}from'ckeditor5/src/icons.js';import{getTranslation as _0x1babad}from'../../../../aicore/utils/common-translations.js';export class AIChatContextResourcesSearchInputView extends _0xb87814{['iconView'];['resetButtonView'];['_viewConfig'];constructor(_0x529cad){const t=_0x529cad['t'],_0x1e7ff9={'showResetButton':!0x0,'showIcon':!0x0,'creator':_0x21a793,'label':_0x1babad(_0x529cad,'AI_CHAT_SEARCH_RESOURCES')};super(_0x529cad,_0x1e7ff9['creator']),this['label']=_0x1e7ff9['label'],this['_viewConfig']=_0x1e7ff9,this['_viewConfig']['showIcon']&&this['_setupSearchIcon'](),this['_viewConfig']['showResetButton']&&this['_setupResetButton'](_0x529cad,t),this['_setupEventListeners']();}['reset'](){this['fieldView']['reset'](),this['_viewConfig']['showResetButton']&&this['resetButtonView']&&(this['resetButtonView']['isVisible']=!0x1),this['search']('');}['search'](_0x49d50e){this['fire']('search',_0x49d50e);}['getQuery'](){return this['fieldView']['element']?.['value']||'';}['_setupSearchIcon'](){this['iconView']=new _0x3b0732(),this['iconView']['content']=_0x4b025e,this['fieldWrapperChildren']['add'](this['iconView'],0x0),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-icon'}});}['_setupResetButton'](_0x3b6aef,t){this['resetButtonView']=new _0x29aa4b(_0x3b6aef),this['resetButtonView']['set']({'label':t('Clear'),'icon':_0x4fb583,'class':'ck-search__reset','isVisible':!0x1,'tooltip':!0x0}),this['resetButtonView']['on']('execute',()=>{this['reset'](),this['focus'](),this['fire']('reset');}),this['resetButtonView']['bind']('isVisible')['to'](this['fieldView'],'isEmpty',_0x4be7ad=>!_0x4be7ad),this['fieldWrapperChildren']['add'](this['resetButtonView']),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-reset'}});}['_setupEventListeners'](){this['listenTo'](this['fieldView'],'input',()=>{this['search'](this['fieldView']['element']['value']);}),this['bind']('isEnabled')['to'](this);}}
23
+ import{ButtonView as _0x2ef2fe,IconView as _0x1c4bea,LabeledFieldView as _0x310456,createLabeledInputText as th}from'ckeditor5/src/ui.js';import{IconLoupe as _0x3b8eea,IconCancel as _0x3fea8f}from'ckeditor5/src/icons.js';import{getTranslation as _0x19dd92}from'../../../../aicore/utils/common-translations.js';export class AIChatContextResourcesSearchInputView extends _0x310456{['iconView'];['resetButtonView'];['_viewConfig'];constructor(_0x29f3ca){const t=_0x29f3ca['t'],_0x4102c1={'showResetButton':!0x0,'showIcon':!0x0,'creator':th,'label':_0x19dd92(_0x29f3ca,'AI_CHAT_SEARCH_RESOURCES')};super(_0x29f3ca,_0x4102c1['creator']),this['label']=_0x4102c1['label'],this['_viewConfig']=_0x4102c1,this['_viewConfig']['showIcon']&&this['_setupSearchIcon'](),this['_viewConfig']['showResetButton']&&this['_setupResetButton'](_0x29f3ca,t),this['_setupEventListeners']();}['reset'](){this['fieldView']['reset'](),this['_viewConfig']['showResetButton']&&this['resetButtonView']&&(this['resetButtonView']['isVisible']=!0x1),this['search']('');}['search'](_0x47986d){this['fire']('search',_0x47986d);}['getQuery'](){return this['fieldView']['element']?.['value']||'';}['_setupSearchIcon'](){this['iconView']=new _0x1c4bea(),this['iconView']['content']=_0x3b8eea,this['fieldWrapperChildren']['add'](this['iconView'],0x0),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-icon'}});}['_setupResetButton'](_0xf69615,t){this['resetButtonView']=new _0x2ef2fe(_0xf69615),this['resetButtonView']['set']({'label':t('Clear'),'icon':_0x3fea8f,'class':'ck-search__reset','isVisible':!0x1,'tooltip':!0x0}),this['resetButtonView']['on']('execute',()=>{this['reset'](),this['focus'](),this['fire']('reset');}),this['resetButtonView']['bind']('isVisible')['to'](this['fieldView'],'isEmpty',_0x29bc82=>!_0x29bc82),this['fieldWrapperChildren']['add'](this['resetButtonView']),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-reset'}});}['_setupEventListeners'](){this['listenTo'](this['fieldView'],'input',()=>{this['search'](this['fieldView']['element']['value']);}),this['bind']('isEnabled')['to'](this);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x346500=_0x35f9;function _0x2034(){const _0x1e63e8=['_resourcesListView','fire','_createResourcesListView','23524rWNeFu','useDefaultFiltering','updateResourceState','extendTemplate','_skeletonLoader','set','_searchView','1071193NvKyNS','div','1524616vNnvcr','3419675sYjsrX','_createSearchView','bindTemplate','loadSourceResources','429zGmUgm','_createSearchSection','79597SzUixH','render','search','ck-ai-chat-resources','_source','2908040AvcjCr','31136058fDRpIR','198qUGWFn','locale','delegate','loadResources','isLoading','children','getQuery','addResourceToContext','aiChatResources','_createSkeletonView','setTemplate','ck\x20ck-search','_latestLoadResourcesUid','highlightText','setResources','ck-hidden'];_0x2034=function(){return _0x1e63e8;};return _0x2034();}(function(_0x4cd3f0,_0x52b9d1){const _0x15cada=_0x35f9,_0x46d46b=_0x4cd3f0();while(!![]){try{const _0x4f6068=parseInt(_0x15cada(0x1b0))/0x1+parseInt(_0x15cada(0x1b2))/0x2+-parseInt(_0x15cada(0x1b7))/0x3*(-parseInt(_0x15cada(0x1a9))/0x4)+parseInt(_0x15cada(0x1b3))/0x5+parseInt(_0x15cada(0x196))/0x6*(parseInt(_0x15cada(0x1b9))/0x7)+parseInt(_0x15cada(0x1be))/0x8+-parseInt(_0x15cada(0x195))/0x9;if(_0x4f6068===_0x52b9d1)break;else _0x46d46b['push'](_0x46d46b['shift']());}catch(_0x8c1eb8){_0x46d46b['push'](_0x46d46b['shift']());}}}(_0x2034,0x9baa5));import{View as _0x545e45,ViewCollection as _0x68f4dd}from'ckeditor5/src/ui.js';function _0x35f9(_0x36bee9,_0x2ec4b7){const _0x203471=_0x2034();return _0x35f9=function(_0x35f9a7,_0x81122e){_0x35f9a7=_0x35f9a7-0x195;let _0x55147f=_0x203471[_0x35f9a7];return _0x55147f;},_0x35f9(_0x36bee9,_0x2ec4b7);}import{uid as _0x5dd13e}from'ckeditor5/src/utils.js';import{AIChatContextResourcesListView as _0x272610}from'./aichatresourceslistview.js';import{AIChatContextResourcesSearchInputView as _0xeefa22}from'./aichatresourcessearchinputview.js';import{AISkeletonView as _0x39c801,SKELETON_DEFINITIONS as _0x2feadf}from'../../../../aicore/ui/aiskeleton.js';export class AIChatContextResourcesView extends _0x545e45{[_0x346500(0x1af)];[_0x346500(0x1a6)];[_0x346500(0x1ad)];[_0x346500(0x1bd)];[_0x346500(0x19b)];[_0x346500(0x1a2)]=null;constructor(_0x281756,_0x515aaf){const _0x16b425=_0x346500;super(_0x281756),this[_0x16b425(0x1bd)]=_0x515aaf,this[_0x16b425(0x1ae)](_0x16b425(0x19a),!0x0),this[_0x16b425(0x1af)]=this[_0x16b425(0x1b4)]();const _0x23c2aa=this[_0x16b425(0x1b8)]();this[_0x16b425(0x1a6)]=this[_0x16b425(0x1a8)](),this[_0x16b425(0x1ad)]=this[_0x16b425(0x19f)](),this[_0x16b425(0x19b)]=new _0x68f4dd([_0x23c2aa,this[_0x16b425(0x1ad)],this[_0x16b425(0x1a6)]]),this[_0x16b425(0x1a0)]({'tag':_0x16b425(0x1b1),'attributes':{'class':_0x16b425(0x1bc)},'children':this[_0x16b425(0x19b)]});}[_0x346500(0x1b4)](){const _0x3aa2c0=_0x346500;return new _0xeefa22(this[_0x3aa2c0(0x197)]);}[_0x346500(0x1b8)](){const _0x316851=_0x346500,_0x53aa11=new _0x545e45(this[_0x316851(0x197)]);return _0x53aa11[_0x316851(0x1a0)]({'tag':_0x316851(0x1b1),'attributes':{'class':_0x316851(0x1a1)},'children':[this[_0x316851(0x1af)]]}),this[_0x316851(0x1af)]['on'](_0x316851(0x1bb),(_0x1add6c,_0x2dab25)=>{const _0x3070e7=_0x316851;this[_0x3070e7(0x199)](_0x2dab25),this[_0x3070e7(0x1bd)][_0x3070e7(0x1aa)]&&this[_0x3070e7(0x1a6)][_0x3070e7(0x1a3)](_0x2dab25);}),_0x53aa11;}[_0x346500(0x1a8)](){const _0x2a3e99=_0x346500,_0x2a8f98=new _0x272610(this[_0x2a3e99(0x197)],this[_0x2a3e99(0x1bd)]);return _0x2a8f98[_0x2a3e99(0x198)](_0x2a3e99(0x19d))['to'](this),_0x2a8f98[_0x2a3e99(0x1ac)]({'attributes':{'class':this[_0x2a3e99(0x1b5)]['if'](_0x2a3e99(0x19a),_0x2a3e99(0x1a5))}}),_0x2a8f98;}[_0x346500(0x19f)](){const _0x3221d8=_0x346500,_0x5c89f9=new _0x39c801(this[_0x3221d8(0x197)],_0x2feadf[_0x3221d8(0x19e)]);return _0x5c89f9[_0x3221d8(0x1ac)]({'attributes':{'class':[this[_0x3221d8(0x1b5)]['if'](_0x3221d8(0x19a),_0x3221d8(0x1a5),_0xa7cf8c=>!_0xa7cf8c)]}}),_0x5c89f9;}[_0x346500(0x1ba)](){const _0x218ec5=_0x346500;super[_0x218ec5(0x1ba)](),this[_0x218ec5(0x199)]('');}[_0x346500(0x199)](_0x93f978){const _0x4074d3=_0x346500,_0x405fe0=_0x5dd13e();this[_0x4074d3(0x1a2)]=_0x405fe0,this[_0x4074d3(0x1a7)](_0x4074d3(0x1b6),{'sourceId':this[_0x4074d3(0x1bd)]['id'],'query':_0x93f978,'uid':_0x405fe0}),this[_0x4074d3(0x19a)]=!0x0;}[_0x346500(0x1a4)](_0x1d61df,_0x3f86c9){const _0x1fddd0=_0x346500;if(_0x3f86c9&&_0x3f86c9!==this[_0x1fddd0(0x1a2)])return;const _0x3fc459=this[_0x1fddd0(0x1bd)][_0x1fddd0(0x1aa)]?this[_0x1fddd0(0x1af)][_0x1fddd0(0x19c)]():'';this[_0x1fddd0(0x1a6)][_0x1fddd0(0x1a4)](_0x1d61df,_0x3fc459),requestAnimationFrame(()=>{const _0x55be26=_0x1fddd0;this[_0x55be26(0x19a)]=!0x1;});}[_0x346500(0x1ab)](_0x21d8b3,_0x3581d1){const _0x2f8501=_0x346500;this[_0x2f8501(0x1a6)][_0x2f8501(0x1ab)](_0x21d8b3,_0x3581d1);}}
23
+ const _0x4c7c94=_0x3470;(function(_0x57aafb,_0x5a6aa2){const _0x26fcb7=_0x3470,_0x55d7ff=_0x57aafb();while(!![]){try{const _0x33b263=parseInt(_0x26fcb7(0x184))/0x1*(parseInt(_0x26fcb7(0x185))/0x2)+-parseInt(_0x26fcb7(0x17a))/0x3+parseInt(_0x26fcb7(0x186))/0x4+parseInt(_0x26fcb7(0x16d))/0x5*(-parseInt(_0x26fcb7(0x17c))/0x6)+-parseInt(_0x26fcb7(0x170))/0x7+-parseInt(_0x26fcb7(0x176))/0x8*(parseInt(_0x26fcb7(0x16b))/0x9)+parseInt(_0x26fcb7(0x16a))/0xa;if(_0x33b263===_0x5a6aa2)break;else _0x55d7ff['push'](_0x55d7ff['shift']());}catch(_0x1530e5){_0x55d7ff['push'](_0x55d7ff['shift']());}}}(_0x144f,0xa1b5c));import{View as _0x87aaca,ViewCollection as _0x34aa72}from'ckeditor5/src/ui.js';import{uid as _0xdd1f6a}from'ckeditor5/src/utils.js';import{AIChatContextResourcesListView as _0x59992f}from'./aichatresourceslistview.js';function _0x144f(){const _0x16115f=['_createSearchView','_source','setTemplate','3882453Iarski','search','318JbsxWN','delegate','bindTemplate','highlightText','_resourcesListView','isLoading','setResources','_createResourcesListView','1279eUpxOH','206qvKhBl','2142248mqdagR','_createSkeletonView','locale','_skeletonLoader','getQuery','_latestLoadResourcesUid','loadResources','div','extendTemplate','ck-hidden','updateResourceState','aiChatResources','children','useDefaultFiltering','render','44992200MRvFUm','7542yuGFzQ','ck-ai-chat-resources','94945TYHZKH','loadSourceResources','addResourceToContext','8960777AFgnco','fire','set','ck\x20ck-search','_searchView','_createSearchSection','8816sLNVKZ'];_0x144f=function(){return _0x16115f;};return _0x144f();}import{AIChatContextResourcesSearchInputView as _0x48035f}from'./aichatresourcessearchinputview.js';import{AISkeletonView as _0x33c63b,SKELETON_DEFINITIONS as _0xd76ff7}from'../../../../aicore/ui/aiskeleton.js';function _0x3470(_0x535a3e,_0x37187e){const _0x144fc3=_0x144f();return _0x3470=function(_0x34702d,_0x564515){_0x34702d=_0x34702d-0x16a;let _0x2e3e8e=_0x144fc3[_0x34702d];return _0x2e3e8e;},_0x3470(_0x535a3e,_0x37187e);}export class AIChatContextResourcesView extends _0x87aaca{[_0x4c7c94(0x174)];[_0x4c7c94(0x180)];[_0x4c7c94(0x189)];[_0x4c7c94(0x178)];[_0x4c7c94(0x192)];[_0x4c7c94(0x18b)]=null;constructor(_0x368d83,_0x477a33){const _0xb451cd=_0x4c7c94;super(_0x368d83),this[_0xb451cd(0x178)]=_0x477a33,this[_0xb451cd(0x172)](_0xb451cd(0x181),!0x0),this[_0xb451cd(0x174)]=this[_0xb451cd(0x177)]();const _0x586e92=this[_0xb451cd(0x175)]();this[_0xb451cd(0x180)]=this[_0xb451cd(0x183)](),this[_0xb451cd(0x189)]=this[_0xb451cd(0x187)](),this[_0xb451cd(0x192)]=new _0x34aa72([_0x586e92,this[_0xb451cd(0x189)],this[_0xb451cd(0x180)]]),this[_0xb451cd(0x179)]({'tag':_0xb451cd(0x18d),'attributes':{'class':_0xb451cd(0x16c)},'children':this[_0xb451cd(0x192)]});}[_0x4c7c94(0x177)](){const _0x4a01e3=_0x4c7c94;return new _0x48035f(this[_0x4a01e3(0x188)]);}[_0x4c7c94(0x175)](){const _0x149f3b=_0x4c7c94,_0x5d988b=new _0x87aaca(this[_0x149f3b(0x188)]);return _0x5d988b[_0x149f3b(0x179)]({'tag':_0x149f3b(0x18d),'attributes':{'class':_0x149f3b(0x173)},'children':[this[_0x149f3b(0x174)]]}),this[_0x149f3b(0x174)]['on'](_0x149f3b(0x17b),(_0x1bbad1,_0x611d5c)=>{const _0x71b64f=_0x149f3b;this[_0x71b64f(0x18c)](_0x611d5c),this[_0x71b64f(0x178)][_0x71b64f(0x193)]&&this[_0x71b64f(0x180)][_0x71b64f(0x17f)](_0x611d5c);}),_0x5d988b;}[_0x4c7c94(0x183)](){const _0x450545=_0x4c7c94,_0x5cae18=new _0x59992f(this[_0x450545(0x188)],this[_0x450545(0x178)]);return _0x5cae18[_0x450545(0x17d)](_0x450545(0x16f))['to'](this),_0x5cae18[_0x450545(0x18e)]({'attributes':{'class':this[_0x450545(0x17e)]['if'](_0x450545(0x181),_0x450545(0x18f))}}),_0x5cae18;}[_0x4c7c94(0x187)](){const _0x3d0ab0=_0x4c7c94,_0x2341b4=new _0x33c63b(this[_0x3d0ab0(0x188)],_0xd76ff7[_0x3d0ab0(0x191)]);return _0x2341b4[_0x3d0ab0(0x18e)]({'attributes':{'class':[this[_0x3d0ab0(0x17e)]['if'](_0x3d0ab0(0x181),_0x3d0ab0(0x18f),_0x1ae95c=>!_0x1ae95c)]}}),_0x2341b4;}[_0x4c7c94(0x194)](){const _0x3ff3a8=_0x4c7c94;super[_0x3ff3a8(0x194)](),this[_0x3ff3a8(0x18c)]('');}[_0x4c7c94(0x18c)](_0x33fb6a){const _0x59ae55=_0x4c7c94,_0x3213b9=_0xdd1f6a();this[_0x59ae55(0x18b)]=_0x3213b9,this[_0x59ae55(0x171)](_0x59ae55(0x16e),{'sourceId':this[_0x59ae55(0x178)]['id'],'query':_0x33fb6a,'uid':_0x3213b9}),this[_0x59ae55(0x181)]=!0x0;}[_0x4c7c94(0x182)](_0x122d57,_0x348eee){const _0x1a57e2=_0x4c7c94;if(_0x348eee&&_0x348eee!==this[_0x1a57e2(0x18b)])return;const _0x28cc33=this[_0x1a57e2(0x178)][_0x1a57e2(0x193)]?this[_0x1a57e2(0x174)][_0x1a57e2(0x18a)]():'';this[_0x1a57e2(0x180)][_0x1a57e2(0x182)](_0x122d57,_0x28cc33),requestAnimationFrame(()=>{const _0x33c001=_0x1a57e2;this[_0x33c001(0x181)]=!0x1;});}[_0x4c7c94(0x190)](_0x2e4c40,_0x3ac779){const _0x2c5d33=_0x4c7c94;this[_0x2c5d33(0x180)][_0x2c5d33(0x190)](_0x2e4c40,_0x3ac779);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x41acb8=_0x19b8;(function(_0x4e1cfd,_0x51b0a6){const _0x4de4c7=_0x19b8,_0x1c4678=_0x4e1cfd();while(!![]){try{const _0x1e3bd8=-parseInt(_0x4de4c7(0x196))/0x1+-parseInt(_0x4de4c7(0x184))/0x2*(-parseInt(_0x4de4c7(0x18e))/0x3)+-parseInt(_0x4de4c7(0x181))/0x4*(parseInt(_0x4de4c7(0x198))/0x5)+-parseInt(_0x4de4c7(0x199))/0x6+parseInt(_0x4de4c7(0x191))/0x7+-parseInt(_0x4de4c7(0x18d))/0x8*(-parseInt(_0x4de4c7(0x18c))/0x9)+parseInt(_0x4de4c7(0x189))/0xa*(parseInt(_0x4de4c7(0x185))/0xb);if(_0x1e3bd8===_0x51b0a6)break;else _0x1c4678['push'](_0x1c4678['shift']());}catch(_0x5556d2){_0x1c4678['push'](_0x1c4678['shift']());}}}(_0x387b,0x68aed));import{View as _0x20ad52}from'ckeditor5/src/ui.js';import{AIChatContextItemButtonView as _0x328bc0}from'../controls/aichatcontextitembuttonview.js';import{AIChatChipsOverflowManager as _0x182b1b}from'../controls/aichatchipsoverflowmanager.js';function _0x19b8(_0x5caa8c,_0x42f76a){const _0x387be4=_0x387b();return _0x19b8=function(_0x19b880,_0x492fdc){_0x19b880=_0x19b880-0x179;let _0x466b3c=_0x387be4[_0x19b880];return _0x466b3c;},_0x19b8(_0x5caa8c,_0x42f76a);}function _0x387b(){const _0x27198c=['200610IsaRYa','div','setTemplate','261MKYNZU','157128YQSAzm','525DTNklW','_createContextChips','ck-ai-chat-controls-button','2752386oUiQwo','add','element','_bodyCollection','ck-ai-chat-context-chips-wrapper-balloon','586138QTzaxN','ck-ai-chat-context-chips-wrapper','20AyEZRl','2573544dlXBkD','ck-ai-chat-controls_context_show-more-button','ck-reset_all','setContainerElement','createCollection','ck-ai-chat__feed__context-chips','_overflowManager','destroy','querySelector','473156Pqpjis','_contextChips','ck-ai-chat-context-controls__show-more-balloon-panel','1276XvNZCv','462yVGHna','render','locale','reorganizeChips'];_0x387b=function(){return _0x27198c;};return _0x387b();}const po=_0x41acb8(0x17d),wo=_0x41acb8(0x197),_o=_0x41acb8(0x195),uo=_0x41acb8(0x190),xo=_0x41acb8(0x179),fo=_0x41acb8(0x183);export class AIChatFeedContextChipsView extends _0x20ad52{[_0x41acb8(0x182)]=this[_0x41acb8(0x17c)]();[_0x41acb8(0x17e)];[_0x41acb8(0x194)];constructor(_0x5eecf7,_0x554a83,_0x4d7188){const _0x1588f6=_0x41acb8;super(_0x5eecf7),this[_0x1588f6(0x194)]=_0x4d7188,this[_0x1588f6(0x18f)](_0x554a83);const _0x374a10={'cssClasses':{'showMoreButton':xo,'showMoreBalloon':fo,'overflowContainer':_o,'controlsButton':uo}};this[_0x1588f6(0x17e)]=new _0x182b1b(_0x5eecf7,this[_0x1588f6(0x182)],_0x374a10,this[_0x1588f6(0x194)],this),this[_0x1588f6(0x18b)]({'tag':_0x1588f6(0x18a),'attributes':{'class':[po,'ck',_0x1588f6(0x17a)]},'children':[{'tag':_0x1588f6(0x18a),'attributes':{'class':wo},'children':this[_0x1588f6(0x182)]}]});}[_0x41acb8(0x186)](){const _0xd1cea5=_0x41acb8;super[_0xd1cea5(0x186)]();const _0x551841=this[_0xd1cea5(0x193)][_0xd1cea5(0x180)]('.'+wo);_0x551841&&(this[_0xd1cea5(0x17e)][_0xd1cea5(0x17b)](_0x551841),this[_0xd1cea5(0x17e)][_0xd1cea5(0x188)]());}[_0x41acb8(0x17f)](){const _0x34eab6=_0x41acb8;super[_0x34eab6(0x17f)](),this[_0x34eab6(0x17e)][_0x34eab6(0x17f)]();}[_0x41acb8(0x18f)](_0x3c7ddb){const _0x3c5e30=_0x41acb8;for(const _0x13b596 of _0x3c7ddb){const _0x23fed4=new _0x328bc0(this[_0x3c5e30(0x187)],_0x13b596,!0x0,!0x1);this[_0x3c5e30(0x182)][_0x3c5e30(0x192)](_0x23fed4);}}}
23
+ const _0x5da4a4=_0x3ce3;(function(_0x2e40e1,_0x4d0b75){const _0x2ca004=_0x3ce3,_0x2b99f2=_0x2e40e1();while(!![]){try{const _0x30c8eb=parseInt(_0x2ca004(0xdb))/0x1+parseInt(_0x2ca004(0xdc))/0x2*(parseInt(_0x2ca004(0xdf))/0x3)+parseInt(_0x2ca004(0xe7))/0x4*(parseInt(_0x2ca004(0xd8))/0x5)+-parseInt(_0x2ca004(0xce))/0x6+-parseInt(_0x2ca004(0xd9))/0x7+-parseInt(_0x2ca004(0xde))/0x8+-parseInt(_0x2ca004(0xd4))/0x9;if(_0x30c8eb===_0x4d0b75)break;else _0x2b99f2['push'](_0x2b99f2['shift']());}catch(_0x3cbd1d){_0x2b99f2['push'](_0x2b99f2['shift']());}}}(_0xad63,0x5fed6));function _0xad63(){const _0x5c5d3c=['add','ck-reset_all','createCollection','_createContextChips','1497796VubLYF','render','reorganizeChips','ck-ai-chat-controls_context_show-more-button','destroy','ck-ai-chat-context-controls__show-more-balloon-panel','518946rSACiw','querySelector','_bodyCollection','ck-ai-chat-context-chips-wrapper','_overflowManager','ck-ai-chat__feed__context-chips','602883UTeAyf','setTemplate','div','ck-ai-chat-context-chips-wrapper-balloon','5uksLLf','2550408jZBtmD','element','557933jfRBZB','2yDrUHh','ck-ai-chat-controls-button','5475800uscIta','1988499hHiUWk','_contextChips','setContainerElement','locale'];_0xad63=function(){return _0x5c5d3c;};return _0xad63();}import{View as _0x1a3669}from'ckeditor5/src/ui.js';import{AIChatContextItemButtonView as _0x1a400f}from'../controls/aichatcontextitembuttonview.js';import{AIChatChipsOverflowManager as _0x45baca}from'../controls/aichatchipsoverflowmanager.js';function _0x3ce3(_0x5821c2,_0x594d30){const _0xad637e=_0xad63();return _0x3ce3=function(_0x3ce33a,_0xbd96d5){_0x3ce33a=_0x3ce33a-0xce;let _0x189e19=_0xad637e[_0x3ce33a];return _0x189e19;},_0x3ce3(_0x5821c2,_0x594d30);}const Fo=_0x5da4a4(0xd3),$o=_0x5da4a4(0xd1),qo=_0x5da4a4(0xd7),fo=_0x5da4a4(0xdd),Po=_0x5da4a4(0xea),Ro=_0x5da4a4(0xec);export class AIChatFeedContextChipsView extends _0x1a3669{[_0x5da4a4(0xe0)]=this[_0x5da4a4(0xe5)]();[_0x5da4a4(0xd2)];[_0x5da4a4(0xd0)];constructor(_0x166a70,_0x3e77e5,_0x340740){const _0x5ae417=_0x5da4a4;super(_0x166a70),this[_0x5ae417(0xd0)]=_0x340740,this[_0x5ae417(0xe6)](_0x3e77e5);const _0x33948a={'cssClasses':{'showMoreButton':Po,'showMoreBalloon':Ro,'overflowContainer':qo,'controlsButton':fo}};this[_0x5ae417(0xd2)]=new _0x45baca(_0x166a70,this[_0x5ae417(0xe0)],_0x33948a,this[_0x5ae417(0xd0)],this),this[_0x5ae417(0xd5)]({'tag':_0x5ae417(0xd6),'attributes':{'class':[Fo,'ck',_0x5ae417(0xe4)]},'children':[{'tag':_0x5ae417(0xd6),'attributes':{'class':$o},'children':this[_0x5ae417(0xe0)]}]});}[_0x5da4a4(0xe8)](){const _0x4cb49c=_0x5da4a4;super[_0x4cb49c(0xe8)]();const _0x4dffed=this[_0x4cb49c(0xda)][_0x4cb49c(0xcf)]('.'+$o);_0x4dffed&&(this[_0x4cb49c(0xd2)][_0x4cb49c(0xe1)](_0x4dffed),this[_0x4cb49c(0xd2)][_0x4cb49c(0xe9)]());}[_0x5da4a4(0xeb)](){const _0x24618f=_0x5da4a4;super[_0x24618f(0xeb)](),this[_0x24618f(0xd2)][_0x24618f(0xeb)]();}[_0x5da4a4(0xe6)](_0x159623){const _0x48b5ae=_0x5da4a4;for(const _0x4419e7 of _0x159623){const _0x5cfc59=new _0x1a400f(this[_0x48b5ae(0xe2)],_0x4419e7,!0x0,!0x1);this[_0x48b5ae(0xe0)][_0x48b5ae(0xe3)](_0x5cfc59);}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x4739fe=_0x1cf1;(function(_0x3b6e23,_0x2ab722){var _0x21ec53=_0x1cf1,_0x183234=_0x3b6e23();while(!![]){try{var _0x4d7756=-parseInt(_0x21ec53(0x191))/0x1+-parseInt(_0x21ec53(0x19c))/0x2+-parseInt(_0x21ec53(0x1a4))/0x3+-parseInt(_0x21ec53(0x19e))/0x4*(-parseInt(_0x21ec53(0x199))/0x5)+-parseInt(_0x21ec53(0x190))/0x6*(parseInt(_0x21ec53(0x1a6))/0x7)+-parseInt(_0x21ec53(0x195))/0x8*(parseInt(_0x21ec53(0x192))/0x9)+-parseInt(_0x21ec53(0x197))/0xa*(-parseInt(_0x21ec53(0x1a0))/0xb);if(_0x4d7756===_0x2ab722)break;else _0x183234['push'](_0x183234['shift']());}catch(_0x376b3c){_0x183234['push'](_0x183234['shift']());}}}(_0x1cbf,0xe65f1));import{AIChatFeedItemView as _0x3856b5}from'./aichatfeeditemview.js';function _0x1cf1(_0xc46e81,_0x74d95d){var _0x1cbfb4=_0x1cbf();return _0x1cf1=function(_0x1cf131,_0x1e2fdc){_0x1cf131=_0x1cf131-0x190;var _0x26a9df=_0x1cbfb4[_0x1cf131];return _0x26a9df;},_0x1cf1(_0xc46e81,_0x74d95d);}function _0x1cbf(){var _0x6f6b77=['render','markAsDone','2864mJfeWU','innerHTML','10fHMpIx','warning','960440YdSGRF','element','ck-ai-chat-error_warning','1797700oJeZVD','extendTemplate','8JlajQk','initialContent','72807383cDbykB','options','level','setContent','5454612AWjexm','ck-ai-chat-error','745255elpJpR','66GMMsCf','1394041ISYSmj','19539vKokpg'];_0x1cbf=function(){return _0x6f6b77;};return _0x1cbf();}export class AIChatFeedErrorItemView extends _0x3856b5{constructor(_0x54ee05){var _0x1410e7=_0x1cf1;super(_0x54ee05),this[_0x1410e7(0x19d)]({'attributes':{'class':[_0x1410e7(0x1a5),_0x1410e7(0x198)===_0x54ee05[_0x1410e7(0x1a2)]?_0x1410e7(0x19b):'']}});}[_0x4739fe(0x193)](){var _0x4af823=_0x4739fe;super[_0x4af823(0x193)](),this[_0x4af823(0x1a3)](this[_0x4af823(0x1a1)][_0x4af823(0x19f)]),this[_0x4af823(0x194)]();}[_0x4739fe(0x1a3)](_0x2e9dd7){var _0x1a2491=_0x4739fe;this[_0x1a2491(0x19a)][_0x1a2491(0x196)]=_0x2e9dd7;}}
23
+ function _0x32b8(){var _0x29e194=['4qFenMr','setContent','initialContent','level','extendTemplate','88aiQXJh','129144qsidjR','ck-ai-chat-error','6QtUfjp','235359diDuKT','ck-ai-chat-error_warning','warning','441320waVsSQ','innerHTML','element','options','markAsDone','279118uqYtMg','render','643866oDtFlM','83682Xoleny','5PoJltV','28455ytpMks','44sCXKGT'];_0x32b8=function(){return _0x29e194;};return _0x32b8();}var _0x45760d=_0x4c8a;(function(_0x37ed90,_0x2836ef){var _0x5820d8=_0x4c8a,_0x240705=_0x37ed90();while(!![]){try{var _0x502185=-parseInt(_0x5820d8(0x17a))/0x1*(-parseInt(_0x5820d8(0x16c))/0x2)+parseInt(_0x5820d8(0x16d))/0x3*(parseInt(_0x5820d8(0x17c))/0x4)+parseInt(_0x5820d8(0x179))/0x5*(-parseInt(_0x5820d8(0x177))/0x6)+-parseInt(_0x5820d8(0x175))/0x7+parseInt(_0x5820d8(0x181))/0x8*(-parseInt(_0x5820d8(0x178))/0x9)+-parseInt(_0x5820d8(0x170))/0xa*(-parseInt(_0x5820d8(0x17b))/0xb)+parseInt(_0x5820d8(0x182))/0xc;if(_0x502185===_0x2836ef)break;else _0x240705['push'](_0x240705['shift']());}catch(_0x31c7cf){_0x240705['push'](_0x240705['shift']());}}}(_0x32b8,0x18d0d));import{AIChatFeedItemView as _0x8bc7f9}from'./aichatfeeditemview.js';function _0x4c8a(_0x40c0ff,_0x380d66){var _0x32b8a5=_0x32b8();return _0x4c8a=function(_0x4c8ae8,_0x2e9095){_0x4c8ae8=_0x4c8ae8-0x16b;var _0x3d16f1=_0x32b8a5[_0x4c8ae8];return _0x3d16f1;},_0x4c8a(_0x40c0ff,_0x380d66);}export class AIChatFeedErrorItemView extends _0x8bc7f9{constructor(_0x274212){var _0x266bb1=_0x4c8a;super(_0x274212),this[_0x266bb1(0x180)]({'attributes':{'class':[_0x266bb1(0x16b),_0x266bb1(0x16f)===_0x274212[_0x266bb1(0x17f)]?_0x266bb1(0x16e):'']}});}[_0x45760d(0x176)](){var _0x4c05ef=_0x45760d;super[_0x4c05ef(0x176)](),this[_0x4c05ef(0x17d)](this[_0x4c05ef(0x173)][_0x4c05ef(0x17e)]),this[_0x4c05ef(0x174)]();}[_0x45760d(0x17d)](_0x587c63){var _0x320e0a=_0x45760d;this[_0x320e0a(0x172)][_0x320e0a(0x171)]=_0x587c63;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x504402=_0x394f;function _0x394f(_0x1e463b,_0x1a292d){const _0x2f49a2=_0x2f49();return _0x394f=function(_0x394f78,_0x16e504){_0x394f78=_0x394f78-0x1ac;let _0x4b4f83=_0x2f49a2[_0x394f78];return _0x4b4f83;},_0x394f(_0x1e463b,_0x1a292d);}function _0x2f49(){const _0x4e4141=['10FUewaL','20ZYuzJX','ck-ai-chat__feed__interaction-header__capabilities','div','10zClctY','ck-ai-chat__feed__interaction-header','24rvQpfl','402996dJjkUS','content','91xVPMay','AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH','1131218LiBmmG','children','ck-hidden','3004918yAyLzG','span','add','capabilities','AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH_REASONING','setTemplate','push','AI_CHAT_FEED_REPLY_ITEM_USED_REASONING','ck-ai-chat__feed__interaction-header__capabilities__text','690328pfScvy','13GpJtXk','28344XCHZqu','extendTemplate','8519895JXJwQj','2bgMyrC','865843EMEEDQ'];_0x2f49=function(){return _0x4e4141;};return _0x2f49();}(function(_0x4eba2c,_0x1dd153){const _0x33ce64=_0x394f,_0x2b29cd=_0x4eba2c();while(!![]){try{const _0x5472e2=-parseInt(_0x33ce64(0x1b3))/0x1*(-parseInt(_0x33ce64(0x1c4))/0x2)+parseInt(_0x33ce64(0x1af))/0x3*(-parseInt(_0x33ce64(0x1c7))/0x4)+-parseInt(_0x33ce64(0x1c6))/0x5*(-parseInt(_0x33ce64(0x1c1))/0x6)+-parseInt(_0x33ce64(0x1b1))/0x7*(-parseInt(_0x33ce64(0x1bf))/0x8)+parseInt(_0x33ce64(0x1c3))/0x9*(-parseInt(_0x33ce64(0x1ac))/0xa)+parseInt(_0x33ce64(0x1c5))/0xb*(parseInt(_0x33ce64(0x1ae))/0xc)+parseInt(_0x33ce64(0x1c0))/0xd*(-parseInt(_0x33ce64(0x1b6))/0xe);if(_0x5472e2===_0x1dd153)break;else _0x2b29cd['push'](_0x2b29cd['shift']());}catch(_0xcbcd3a){_0x2b29cd['push'](_0x2b29cd['shift']());}}}(_0x2f49,0x8f4ab));import{IconBulb as _0x10a06c,IconWeb as _0x1be699}from'@ckeditor/ckeditor5-icons';import{IconView as _0x4877f3,View as _0x5e59f1}from'ckeditor5/src/ui.js';import{AIChatFeedItemView as _0x877df4}from'./aichatfeeditemview.js';import{getTranslation as _0x39f108}from'../../../aicore/utils/common-translations.js';export class AIChatFeedInteractionHeaderView extends _0x877df4{[_0x504402(0x1b9)];constructor(_0xe2f8c9,_0x4c39f9){const _0x5e88f3=_0x504402;super(_0x4c39f9);const {isWebSearchEnabled:_0x26ca34,isReasoningEnabled:_0x1aeb33}=_0x4c39f9[_0x5e88f3(0x1b9)],_0xb50959=[];let _0x3140dd='';_0x26ca34&&_0x1aeb33?(_0x3140dd=_0x39f108(_0xe2f8c9,_0x5e88f3(0x1ba)),_0xb50959[_0x5e88f3(0x1bc)](ia(_0x1be699)),_0xb50959[_0x5e88f3(0x1bc)](ia(_0x10a06c))):_0x26ca34?(_0x3140dd=_0x39f108(_0xe2f8c9,_0x5e88f3(0x1b2)),_0xb50959[_0x5e88f3(0x1bc)](ia(_0x1be699))):_0x1aeb33&&(_0x3140dd=_0x39f108(_0xe2f8c9,_0x5e88f3(0x1bd)),_0xb50959[_0x5e88f3(0x1bc)](ia(_0x10a06c))),this[_0x5e88f3(0x1c2)]({'attributes':{'class':[_0x5e88f3(0x1ad),_0x3140dd?'':_0x5e88f3(0x1b5)]}});const _0x552eb7=new _0x5e59f1();_0x552eb7[_0x5e88f3(0x1bb)]({'tag':_0x5e88f3(0x1c9),'attributes':{'class':['ck',_0x5e88f3(0x1c8)]},'children':[..._0xb50959,{'tag':_0x5e88f3(0x1b7),'attributes':{'class':[_0x5e88f3(0x1be)]},'children':[_0x3140dd]}]}),this[_0x5e88f3(0x1b4)][_0x5e88f3(0x1b8)](_0x552eb7),this[_0x5e88f3(0x1b9)]=_0x4c39f9[_0x5e88f3(0x1b9)];}}function ia(_0x1b1636){const _0x33157d=_0x504402,_0x43c495=new _0x4877f3();return _0x43c495[_0x33157d(0x1b0)]=_0x1b1636,_0x43c495;}
23
+ const _0x4aeb32=_0x33ce;function _0x16cc(){const _0x901027=['11109928gRbYBS','setTemplate','AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH_REASONING','AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH','ck-ai-chat__feed__interaction-header__capabilities','extendTemplate','17432RkCRnH','AI_CHAT_FEED_REPLY_ITEM_USED_REASONING','ck-ai-chat__feed__interaction-header__capabilities__text','3829872wmkoDy','8009526xOlJDb','86iUevYq','ck-hidden','children','content','50bhcLyD','3864520taQOJb','5omiNHV','push','span','div','4205540tDXstP','ck-ai-chat__feed__interaction-header','add','9SeUpBa','6BcPtds','capabilities','734103PUnVHP'];_0x16cc=function(){return _0x901027;};return _0x16cc();}(function(_0x37a717,_0x408756){const _0x56ab04=_0x33ce,_0x13f1e8=_0x37a717();while(!![]){try{const _0xfba876=parseInt(_0x56ab04(0xd8))/0x1*(parseInt(_0x56ab04(0xdd))/0x2)+parseInt(_0x56ab04(0xd1))/0x3+-parseInt(_0x56ab04(0xcb))/0x4*(-parseInt(_0x56ab04(0xc7))/0x5)+parseInt(_0x56ab04(0xcf))/0x6*(-parseInt(_0x56ab04(0xdc))/0x7)+-parseInt(_0x56ab04(0xd2))/0x8*(parseInt(_0x56ab04(0xce))/0x9)+parseInt(_0x56ab04(0xe1))/0xa*(parseInt(_0x56ab04(0xe2))/0xb)+-parseInt(_0x56ab04(0xdb))/0xc;if(_0xfba876===_0x408756)break;else _0x13f1e8['push'](_0x13f1e8['shift']());}catch(_0xb2bc6b){_0x13f1e8['push'](_0x13f1e8['shift']());}}}(_0x16cc,0xe7f83));import{IconBulb as _0x529dfb,IconWeb as _0x404107}from'@ckeditor/ckeditor5-icons';import{IconView as _0x27c07c,View as _0x49d869}from'ckeditor5/src/ui.js';import{AIChatFeedItemView as _0x5cbb1d}from'./aichatfeeditemview.js';import{getTranslation as _0x1ba63b}from'../../../aicore/utils/common-translations.js';export class AIChatFeedInteractionHeaderView extends _0x5cbb1d{[_0x4aeb32(0xd0)];constructor(_0x4d5828,_0x943dd6){const _0x49946f=_0x4aeb32;super(_0x943dd6);const {isWebSearchEnabled:_0x3d5ecb,isReasoningEnabled:_0x129146}=_0x943dd6[_0x49946f(0xd0)],_0x17c061=[];let _0x4f6af7='';_0x3d5ecb&&_0x129146?(_0x4f6af7=_0x1ba63b(_0x4d5828,_0x49946f(0xd4)),_0x17c061[_0x49946f(0xc8)](ea(_0x404107)),_0x17c061[_0x49946f(0xc8)](ea(_0x529dfb))):_0x3d5ecb?(_0x4f6af7=_0x1ba63b(_0x4d5828,_0x49946f(0xd5)),_0x17c061[_0x49946f(0xc8)](ea(_0x404107))):_0x129146&&(_0x4f6af7=_0x1ba63b(_0x4d5828,_0x49946f(0xd9)),_0x17c061[_0x49946f(0xc8)](ea(_0x529dfb))),this[_0x49946f(0xd7)]({'attributes':{'class':[_0x49946f(0xcc),_0x4f6af7?'':_0x49946f(0xde)]}});const _0x384efe=new _0x49d869();_0x384efe[_0x49946f(0xd3)]({'tag':_0x49946f(0xca),'attributes':{'class':['ck',_0x49946f(0xd6)]},'children':[..._0x17c061,{'tag':_0x49946f(0xc9),'attributes':{'class':[_0x49946f(0xda)]},'children':[_0x4f6af7]}]}),this[_0x49946f(0xdf)][_0x49946f(0xcd)](_0x384efe),this[_0x49946f(0xd0)]=_0x943dd6[_0x49946f(0xd0)];}}function _0x33ce(_0x1c5aad,_0x923b71){const _0x16ccbc=_0x16cc();return _0x33ce=function(_0x33cec6,_0x272310){_0x33cec6=_0x33cec6-0xc7;let _0x52ccde=_0x16ccbc[_0x33cec6];return _0x52ccde;},_0x33ce(_0x1c5aad,_0x923b71);}function ea(_0x1f2bd2){const _0xeb90e2=_0x4aeb32,_0x324a21=new _0x27c07c();return _0x324a21[_0xeb90e2(0xe0)]=_0x1f2bd2,_0x324a21;}