@ckeditor/ckeditor5-ai 47.0.0-alpha.5 → 47.0.0-alpha.7

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 (327) hide show
  1. package/LICENSE.md +4 -0
  2. package/build/ai.js +1 -1
  3. package/ckeditor5-metadata.json +14 -0
  4. package/dist/index-editor.css +70 -19
  5. package/dist/index.css +80 -19
  6. package/dist/index.js +4 -4
  7. package/dist/translations/af.js +1 -1
  8. package/dist/translations/af.umd.js +1 -1
  9. package/dist/translations/ar.js +1 -1
  10. package/dist/translations/ar.umd.js +1 -1
  11. package/dist/translations/ast.js +1 -1
  12. package/dist/translations/ast.umd.js +1 -1
  13. package/dist/translations/az.js +1 -1
  14. package/dist/translations/az.umd.js +1 -1
  15. package/dist/translations/be.js +1 -1
  16. package/dist/translations/be.umd.js +1 -1
  17. package/dist/translations/bg.js +1 -1
  18. package/dist/translations/bg.umd.js +1 -1
  19. package/dist/translations/bn.js +1 -1
  20. package/dist/translations/bn.umd.js +1 -1
  21. package/dist/translations/bs.js +1 -1
  22. package/dist/translations/bs.umd.js +1 -1
  23. package/dist/translations/ca.js +1 -1
  24. package/dist/translations/ca.umd.js +1 -1
  25. package/dist/translations/cs.js +1 -1
  26. package/dist/translations/cs.umd.js +1 -1
  27. package/dist/translations/da.js +1 -1
  28. package/dist/translations/da.umd.js +1 -1
  29. package/dist/translations/de-ch.js +1 -1
  30. package/dist/translations/de-ch.umd.js +1 -1
  31. package/dist/translations/de.js +1 -1
  32. package/dist/translations/de.umd.js +1 -1
  33. package/dist/translations/el.js +1 -1
  34. package/dist/translations/el.umd.js +1 -1
  35. package/dist/translations/en-au.js +1 -1
  36. package/dist/translations/en-au.umd.js +1 -1
  37. package/dist/translations/en-gb.js +1 -1
  38. package/dist/translations/en-gb.umd.js +1 -1
  39. package/dist/translations/en.js +1 -1
  40. package/dist/translations/en.umd.js +1 -1
  41. package/dist/translations/eo.js +1 -1
  42. package/dist/translations/eo.umd.js +1 -1
  43. package/dist/translations/es-co.js +1 -1
  44. package/dist/translations/es-co.umd.js +1 -1
  45. package/dist/translations/es.js +1 -1
  46. package/dist/translations/es.umd.js +1 -1
  47. package/dist/translations/et.js +1 -1
  48. package/dist/translations/et.umd.js +1 -1
  49. package/dist/translations/eu.js +1 -1
  50. package/dist/translations/eu.umd.js +1 -1
  51. package/dist/translations/fa.js +1 -1
  52. package/dist/translations/fa.umd.js +1 -1
  53. package/dist/translations/fi.js +1 -1
  54. package/dist/translations/fi.umd.js +1 -1
  55. package/dist/translations/fr.js +1 -1
  56. package/dist/translations/fr.umd.js +1 -1
  57. package/dist/translations/gl.js +1 -1
  58. package/dist/translations/gl.umd.js +1 -1
  59. package/dist/translations/gu.js +1 -1
  60. package/dist/translations/gu.umd.js +1 -1
  61. package/dist/translations/he.js +1 -1
  62. package/dist/translations/he.umd.js +1 -1
  63. package/dist/translations/hi.js +1 -1
  64. package/dist/translations/hi.umd.js +1 -1
  65. package/dist/translations/hr.js +1 -1
  66. package/dist/translations/hr.umd.js +1 -1
  67. package/dist/translations/hu.js +1 -1
  68. package/dist/translations/hu.umd.js +1 -1
  69. package/dist/translations/hy.js +1 -1
  70. package/dist/translations/hy.umd.js +1 -1
  71. package/dist/translations/id.js +1 -1
  72. package/dist/translations/id.umd.js +1 -1
  73. package/dist/translations/it.js +1 -1
  74. package/dist/translations/it.umd.js +1 -1
  75. package/dist/translations/ja.js +1 -1
  76. package/dist/translations/ja.umd.js +1 -1
  77. package/dist/translations/jv.js +1 -1
  78. package/dist/translations/jv.umd.js +1 -1
  79. package/dist/translations/kk.js +1 -1
  80. package/dist/translations/kk.umd.js +1 -1
  81. package/dist/translations/km.js +1 -1
  82. package/dist/translations/km.umd.js +1 -1
  83. package/dist/translations/kn.js +1 -1
  84. package/dist/translations/kn.umd.js +1 -1
  85. package/dist/translations/ko.js +1 -1
  86. package/dist/translations/ko.umd.js +1 -1
  87. package/dist/translations/ku.js +1 -1
  88. package/dist/translations/ku.umd.js +1 -1
  89. package/dist/translations/lt.js +1 -1
  90. package/dist/translations/lt.umd.js +1 -1
  91. package/dist/translations/lv.js +1 -1
  92. package/dist/translations/lv.umd.js +1 -1
  93. package/dist/translations/ms.js +1 -1
  94. package/dist/translations/ms.umd.js +1 -1
  95. package/dist/translations/nb.js +1 -1
  96. package/dist/translations/nb.umd.js +1 -1
  97. package/dist/translations/ne.js +1 -1
  98. package/dist/translations/ne.umd.js +1 -1
  99. package/dist/translations/nl.js +1 -1
  100. package/dist/translations/nl.umd.js +1 -1
  101. package/dist/translations/no.js +1 -1
  102. package/dist/translations/no.umd.js +1 -1
  103. package/dist/translations/oc.js +1 -1
  104. package/dist/translations/oc.umd.js +1 -1
  105. package/dist/translations/pl.js +1 -1
  106. package/dist/translations/pl.umd.js +1 -1
  107. package/dist/translations/pt-br.js +1 -1
  108. package/dist/translations/pt-br.umd.js +1 -1
  109. package/dist/translations/pt.js +1 -1
  110. package/dist/translations/pt.umd.js +1 -1
  111. package/dist/translations/ro.js +1 -1
  112. package/dist/translations/ro.umd.js +1 -1
  113. package/dist/translations/ru.js +1 -1
  114. package/dist/translations/ru.umd.js +1 -1
  115. package/dist/translations/si.js +1 -1
  116. package/dist/translations/si.umd.js +1 -1
  117. package/dist/translations/sk.js +1 -1
  118. package/dist/translations/sk.umd.js +1 -1
  119. package/dist/translations/sl.js +1 -1
  120. package/dist/translations/sl.umd.js +1 -1
  121. package/dist/translations/sq.js +1 -1
  122. package/dist/translations/sq.umd.js +1 -1
  123. package/dist/translations/sr-latn.js +1 -1
  124. package/dist/translations/sr-latn.umd.js +1 -1
  125. package/dist/translations/sr.js +1 -1
  126. package/dist/translations/sr.umd.js +1 -1
  127. package/dist/translations/sv.js +1 -1
  128. package/dist/translations/sv.umd.js +1 -1
  129. package/dist/translations/th.js +1 -1
  130. package/dist/translations/th.umd.js +1 -1
  131. package/dist/translations/ti.js +1 -1
  132. package/dist/translations/ti.umd.js +1 -1
  133. package/dist/translations/tk.js +1 -1
  134. package/dist/translations/tk.umd.js +1 -1
  135. package/dist/translations/tr.js +1 -1
  136. package/dist/translations/tr.umd.js +1 -1
  137. package/dist/translations/tt.js +1 -1
  138. package/dist/translations/tt.umd.js +1 -1
  139. package/dist/translations/ug.js +1 -1
  140. package/dist/translations/ug.umd.js +1 -1
  141. package/dist/translations/uk.js +1 -1
  142. package/dist/translations/uk.umd.js +1 -1
  143. package/dist/translations/ur.js +1 -1
  144. package/dist/translations/ur.umd.js +1 -1
  145. package/dist/translations/uz.js +1 -1
  146. package/dist/translations/uz.umd.js +1 -1
  147. package/dist/translations/vi.js +1 -1
  148. package/dist/translations/vi.umd.js +1 -1
  149. package/dist/translations/zh-cn.js +1 -1
  150. package/dist/translations/zh-cn.umd.js +1 -1
  151. package/dist/translations/zh.js +1 -1
  152. package/dist/translations/zh.umd.js +1 -1
  153. package/lang/contexts.json +6 -0
  154. package/package.json +15 -15
  155. package/src/aiactions/aiactions.d.ts +0 -2
  156. package/src/aiactions/aiactions.js +1 -1
  157. package/src/aiactions/model/aiactionsinteraction.d.ts +1 -0
  158. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  159. package/src/aiactions/model/aiactionsreply.js +1 -1
  160. package/src/aiassistant/adapters/aiadapter.js +1 -1
  161. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  162. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  163. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  164. package/src/aiassistant/aiassistant.js +1 -1
  165. package/src/aiassistant/aiassistantediting.js +1 -1
  166. package/src/aiassistant/aiassistantui.js +1 -1
  167. package/src/aiassistant/legacyerrors.js +1 -1
  168. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  169. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  170. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  171. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  172. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  173. package/src/aiassistant/ui/form/aiformview.js +1 -1
  174. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  175. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  176. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  177. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  178. package/src/aiassistant/utils/common-translations.js +1 -1
  179. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  180. package/src/aiballoon/aiballoon.js +1 -1
  181. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  182. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  183. package/src/aiballoon/ui/aiballoonview.d.ts +3 -1
  184. package/src/aiballoon/ui/aiballoonview.js +1 -1
  185. package/src/aichat/aichat.js +1 -1
  186. package/src/aichat/aichatcontroller.d.ts +4 -0
  187. package/src/aichat/aichatcontroller.js +1 -1
  188. package/src/aichat/aichatui.d.ts +9 -2
  189. package/src/aichat/aichatui.js +1 -1
  190. package/src/aichat/model/aichatcontext.js +1 -1
  191. package/src/aichat/model/aichatconversation.js +1 -1
  192. package/src/aichat/model/aichatinteraction.js +1 -1
  193. package/src/aichat/model/aichatmodels.js +1 -1
  194. package/src/aichat/ui/aichatcontrolsview.d.ts +6 -0
  195. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  196. package/src/aichat/ui/aichatfeedview.d.ts +4 -0
  197. package/src/aichat/ui/aichatfeedview.js +1 -1
  198. package/src/aichat/ui/aichatheaderview.js +1 -1
  199. package/src/aichat/ui/aichatview.js +1 -1
  200. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  201. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  202. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  203. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  204. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  205. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  206. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  207. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  208. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  209. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  210. package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
  211. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  212. package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
  213. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  214. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  215. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.d.ts +1 -0
  216. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  217. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  218. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  219. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.d.ts +8 -2
  220. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  221. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.d.ts +9 -0
  222. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  223. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  224. package/src/aichat/utils/eventnames.js +1 -1
  225. package/src/aichat/utils/promisequeue.js +1 -1
  226. package/src/aichat/utils/scrollmanager.js +1 -1
  227. package/src/aichathistory/aichathistory.js +1 -1
  228. package/src/aichathistory/aichathistorycontroller.js +1 -1
  229. package/src/aichathistory/aichathistoryui.js +1 -1
  230. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  231. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  232. package/src/aichathistory/ui/aichathistorylistitemview.js +1 -1
  233. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  234. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  235. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  236. package/src/aiconfig.d.ts +17 -0
  237. package/src/aicore/aiconnector.d.ts +13 -0
  238. package/src/aicore/aiconnector.js +1 -1
  239. package/src/aicore/aiediting.js +1 -1
  240. package/src/aicore/model/aicapabilities.js +1 -1
  241. package/src/aicore/model/aicontext.js +1 -1
  242. package/src/aicore/model/aiinteraction.d.ts +41 -1
  243. package/src/aicore/model/aiinteraction.js +1 -1
  244. package/src/aicore/model/aireply.d.ts +2 -2
  245. package/src/aicore/model/aireply.js +1 -1
  246. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  247. package/src/aicore/pipeline/airesponseparser.js +2 -2
  248. package/src/aicore/ui/aidisclaimerview.js +1 -1
  249. package/src/aicore/ui/aiskeleton.js +1 -1
  250. package/src/aicore/ui/aispinner.js +1 -1
  251. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  252. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  253. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.d.ts +16 -0
  254. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  255. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  256. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  257. package/src/aicore/utils/common-translations.js +1 -1
  258. package/src/aicore/utils/createresizebutton.js +1 -1
  259. package/src/aicore/utils/documentposition.js +1 -1
  260. package/src/aicore/utils/documentrange.js +1 -1
  261. package/src/aicore/utils/eventnames.js +1 -1
  262. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  263. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  264. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  265. package/src/aicore/utils/htmlparser.js +1 -1
  266. package/src/aicore/utils/htmlstreamer.js +1 -1
  267. package/src/aieditorintegration/aieditorintegration.d.ts +35 -0
  268. package/src/aieditorintegration/aieditorintegration.js +23 -0
  269. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.d.ts +38 -0
  270. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +23 -0
  271. package/src/aieditorintegration/aitogglebutton/toggleaicommand.d.ts +16 -0
  272. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +23 -0
  273. package/src/aiquickactions/aiquickactions.js +1 -1
  274. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  275. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  276. package/src/aiquickactions/aiquickactionsui.js +1 -1
  277. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  278. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  279. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  280. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  281. package/src/aireviewmode/aireviewmode.js +1 -1
  282. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  283. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  284. package/src/aireviewmode/aireviewmodeui.js +1 -1
  285. package/src/aireviewmode/model/aireviewcheck.js +1 -1
  286. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  287. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  288. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  289. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  290. package/src/aireviewmode/model/aireviewcheckrun.d.ts +4 -0
  291. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  292. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  293. package/src/aireviewmode/model/aireviewmodels.js +1 -1
  294. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  295. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  296. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  297. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  298. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  299. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  300. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  301. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  302. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  303. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  304. package/src/aireviewmode/ui/form/aireviewmodeformamanager.js +1 -1
  305. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  306. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  307. package/src/aitabs/aitabs.js +1 -1
  308. package/src/aitabs/aitabsmainview.d.ts +6 -0
  309. package/src/aitabs/aitabsmainview.js +1 -1
  310. package/src/aitabs/tabs/aitabsview.js +1 -1
  311. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  312. package/src/aitabs/tabs/tabpanelview.js +1 -1
  313. package/src/augmentation.d.ts +6 -0
  314. package/src/index.d.ts +4 -1
  315. package/src/index.js +1 -1
  316. package/theme/aiballoon/aiballoon.css +17 -4
  317. package/theme/aichat/aichat-controls.css +6 -0
  318. package/theme/aichat/aichat.css +2 -0
  319. package/theme/aichat/aichathistory.css +26 -9
  320. package/theme/aichat/aiminitoolbar.css +8 -0
  321. package/theme/aichat/aisuggestioncontainer.css +14 -2
  322. package/theme/aireviewmode/aireviewmode-check-run-result.css +6 -0
  323. package/theme/aitabs/aitabsview.css +6 -1
  324. package/theme/common/aibutton.css +0 -4
  325. package/theme/common/aiheader.css +1 -0
  326. package/src/aiquickactions/utils/common-translations.d.ts +0 -9
  327. package/src/aiquickactions/utils/common-translations.js +0 -23
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x1e5b(){const _0x10971c=['isHidden','set','_setAddContextButtonEnabled','_addContextBalloonConfig','updateResourceState','ck-ai-chat-context-chips-wrapper-balloon','type','3827362MJuBik','addResourceToContext','addFileToContext','addContextButtonView','addDocumentToContext','southArrowNorthWest','setTemplate','_urlInputView','document','current','79968YrXipK','createCollection','sources','enabled','_createArrowView','removeContextItemChip','ck-ai-chat-context-controls','icon','menuitem','conversation','ck-ai-chat-controls_context_show-more-button','_showSourceResourcesBalloon','hideAddContextBalloonPanel','isOn','destroy','_handleAddContextButtonClick','focus','buttonView','submitUrl','_createUrlBalloonPanelView','setConversationContext','__arrow','3028725BBIpTS','6hHFrdb','clear','ck-reset_all-excluded','southArrowNorth','add','addContextItem','ck-ai-chat-context-controls__balloon-button-source','hide','div','_setBalloonPanelContent','setAddContextOptions','_conversationContextsChips','3SfpNgu','935164YAYJqE','AI_CHAT_CONTEXT_URL_LABEL','ck-ai-chat-context-controls__pending-contexts','_getLimiterElement','execute','tooltip','4378pjxWQY','clearCurrentContextItems','_handleUrlSubmit','_urlBalloonPanelView','removeContextItem','159065gjZQjS','files','_createResourcesBalloonView','setContextItemLoading','closest','southArrowNorthEast','populateSourceResourceBalloon','bind','_overflowManager','showAddContextBalloonPanel','defaultPositions','done','locale','urls','1602265zqYDBY','northArrowSouth','northArrowSouthEast','_setupTemplate','AI_CHAT_CONTEXT_FILE_LABEL','isLoading','_addContextToCollection','setContainerElement','northArrowSouthWest','find','_addContextBalloonPanelView','isAnyResourceBalloonVisible','remove','10CuLrRC','8sNzIzB','_setupUrlBalloonClickOutsideHandler','_createAddContextBalloonPanelView','arrowView','extendTemplate','closeSourceResourceBalloon','_createContextButton','208FqdtSp','_removeContextFromCollection','balloonView','render','_toggleAddContextBalloon','refreshBalloon','content','ck-ai-chat-controls-button','show','fire','ck-ai-chat-context-controls__balloon-button','_createBaseBalloonPanel','children','_resourcesBalloonView','showSourceResourcesBalloon','ck-ai-chat-context-controls__add-context-balloon-panel','ck-ai-chat','source','isEnabled','showUrlBalloonPanel','_setupAddContextBalloonClickOutsideHandler','_currentContextsChips','hideUrlBalloonPanel','_setupAllBalloonClickOutsideHandlers','element','label','cancel','overflowChips','_createAddContextButtonView','AI_CHAT_CONTEXT_ADD_CONTEXT','reorganizeChips','addUrlToContext','_addUrlContent','_bindEventHandlers','loadSourceResources','pin','ck-ai-chat-context-controls__show-more-balloon-panel','_createBalloonButton','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','58JCkTFv','clearConversationContextItems','isReadOnly','isVisible','bodyCollection','ck-ai-chat-context-controls__add-context-button','ck-ai-chat-context-controls__url-balloon-panel','body'];_0x1e5b=function(){return _0x10971c;};return _0x1e5b();}const _0x2a1b80=_0x20f6;(function(_0x4aa0c9,_0x26ba98){const _0x39d9fa=_0x20f6,_0x2c0185=_0x4aa0c9();while(!![]){try{const _0x285601=-parseInt(_0x39d9fa(0x190))/0x1*(-parseInt(_0x39d9fa(0x1d3))/0x2)+parseInt(_0x39d9fa(0x1cc))/0x3*(-parseInt(_0x39d9fa(0x1cd))/0x4)+-parseInt(_0x39d9fa(0x1d8))/0x5*(parseInt(_0x39d9fa(0x1c0))/0x6)+-parseInt(_0x39d9fa(0x1e6))/0x7+-parseInt(_0x39d9fa(0x1f4))/0x8*(-parseInt(_0x39d9fa(0x1bf))/0x9)+-parseInt(_0x39d9fa(0x1f3))/0xa*(-parseInt(_0x39d9fa(0x19f))/0xb)+parseInt(_0x39d9fa(0x1a9))/0xc*(-parseInt(_0x39d9fa(0x1fb))/0xd);if(_0x285601===_0x26ba98)break;else _0x2c0185['push'](_0x2c0185['shift']());}catch(_0x576243){_0x2c0185['push'](_0x2c0185['shift']());}}}(_0x1e5b,0x33582));import{BalloonPanelView as _0xd97f0a,ButtonView as _0x53f213,clickOutsideHandler as _0xb7579c,FileDialogButtonView as _0x5d0e9f,IconView as _0xf2b7d4,View as _0x5c5759}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x4e693f,IconDocument as _0x5baeda,IconDocumentOutline as _0x17490f,IconDropdownArrow as _0x1b8916,IconLink as _0x3c3bb6,IconPaperClip as _0x509479}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x36aaac}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x5ffd88}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x5b307c}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x1a0bfc}from'../../../aicore/utils/common-translations.js';function _0x20f6(_0x500f39,_0x39cae4){const _0x1e5bee=_0x1e5b();return _0x20f6=function(_0x20f663,_0x2b48fc){_0x20f663=_0x20f663-0x175;let _0x33a997=_0x1e5bee[_0x20f663];return _0x33a997;},_0x20f6(_0x500f39,_0x39cae4);}import{AIChatResourcesBalloonView as _0x48750c}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x2a1b80(0x1a3),_0x2a1b80(0x1a1),_0x2a1b80(0x188),_0x2a1b80(0x1a0),_0x2a1b80(0x1d7),_0x2a1b80(0x18b)];const po=_0x2a1b80(0x1af),Bo=_0x2a1b80(0x1cf),bo=_0x2a1b80(0x178),To=_0x2a1b80(0x195),Ao=_0x2a1b80(0x196),ko=_0x2a1b80(0x205),Eo=_0x2a1b80(0x1c6),vo=_0x2a1b80(0x202),go=_0x2a1b80(0x19d),Vo=_0x2a1b80(0x1b3),fo=_0x2a1b80(0x18d),Io=_0x2a1b80(0x179),Po=[_0xd97f0a[_0x2a1b80(0x1e2)][_0x2a1b80(0x1ee)],_0xd97f0a[_0x2a1b80(0x1e2)][_0x2a1b80(0x1e7)],_0xd97f0a[_0x2a1b80(0x1e2)][_0x2a1b80(0x1e8)],_0xd97f0a[_0x2a1b80(0x1e2)][_0x2a1b80(0x1a4)],_0xd97f0a[_0x2a1b80(0x1e2)][_0x2a1b80(0x1c3)],_0xd97f0a[_0x2a1b80(0x1e2)][_0x2a1b80(0x1dd)]];export class AIChatContextPanelView extends _0x5c5759{[_0x2a1b80(0x1a2)];[_0x2a1b80(0x17e)]=this[_0x2a1b80(0x1aa)]();[_0x2a1b80(0x1cb)]=this[_0x2a1b80(0x1aa)]();[_0x2a1b80(0x1e0)];[_0x2a1b80(0x1f0)];[_0x2a1b80(0x1d6)];[_0x2a1b80(0x1a6)];[_0x2a1b80(0x176)];[_0x2a1b80(0x19b)];[_0x2a1b80(0x194)];constructor(_0x10b443,_0x157913){const _0x4500d7=_0x2a1b80;super(_0x10b443),this[_0x4500d7(0x194)]=_0x157913,this[_0x4500d7(0x17e)]=this[_0x4500d7(0x1aa)](),this[_0x4500d7(0x1cb)]=this[_0x4500d7(0x1aa)](),this[_0x4500d7(0x1a2)]=this[_0x4500d7(0x185)](_0x10b443),this[_0x4500d7(0x1f0)]=this[_0x4500d7(0x1f6)](_0x10b443),this[_0x4500d7(0x1d6)]=this[_0x4500d7(0x1bc)](_0x10b443),this[_0x4500d7(0x176)]=this[_0x4500d7(0x1da)](_0x10b443,_0x157913);const _0x49a7a6={'cssClasses':{'showMoreButton':Vo,'showMoreBalloon':fo,'overflowContainer':go,'controlsButton':vo}};this[_0x4500d7(0x1e0)]=new _0x5b307c(_0x10b443,this[_0x4500d7(0x17e)],_0x49a7a6,this[_0x4500d7(0x194)],this),this[_0x4500d7(0x19b)]={'buttonView':this[_0x4500d7(0x1a2)],'balloonView':this[_0x4500d7(0x1f0)],'hideMethod':this[_0x4500d7(0x1b5)][_0x4500d7(0x1df)](this),'showMethod':this[_0x4500d7(0x1e1)][_0x4500d7(0x1df)](this)},this[_0x4500d7(0x1e9)](),this[_0x4500d7(0x18a)]();}[_0x2a1b80(0x1fe)](){const _0x2841a1=_0x2a1b80;super[_0x2841a1(0x1fe)](),this[_0x2841a1(0x180)](),this[_0x2841a1(0x1e0)][_0x2841a1(0x1ed)](this[_0x2841a1(0x181)]),this[_0x2841a1(0x1e0)][_0x2841a1(0x187)]();}[_0x2a1b80(0x1b7)](){const _0x390068=_0x2a1b80;super[_0x390068(0x1b7)](),this[_0x390068(0x1e0)][_0x390068(0x1b7)](),this[_0x390068(0x176)][_0x390068(0x1b7)]();}[_0x2a1b80(0x1c5)](_0x9037dd,_0x503845){const _0x36eb0e=_0x2a1b80,_0x245813=this[_0x36eb0e(0x1fa)](_0x9037dd,_0x36eb0e(0x1a8),!0x0,_0x503845);this[_0x36eb0e(0x1ec)](_0x245813,this[_0x36eb0e(0x17e)]),this[_0x36eb0e(0x1e0)][_0x36eb0e(0x187)]();}[_0x2a1b80(0x1d7)](_0x2eee89){const _0x3f1f9c=_0x2a1b80;this[_0x3f1f9c(0x1fc)](_0x2eee89,this[_0x3f1f9c(0x17e)]),this[_0x3f1f9c(0x1fc)](_0x2eee89,this[_0x3f1f9c(0x1e0)][_0x3f1f9c(0x184)]),this[_0x3f1f9c(0x1e0)][_0x3f1f9c(0x187)]();}[_0x2a1b80(0x1db)](_0xd7f09c,_0xd6e52){const _0x35cdfe=_0x2a1b80;let _0x551e6f=this[_0x35cdfe(0x17e)][_0x35cdfe(0x1ef)](_0x133960=>_0x133960['id']===_0xd7f09c);_0x551e6f||(_0x551e6f=this[_0x35cdfe(0x1e0)][_0x35cdfe(0x184)][_0x35cdfe(0x1ef)](_0x5398f7=>_0x5398f7['id']===_0xd7f09c)),_0x551e6f&&(_0x551e6f[_0x35cdfe(0x1eb)]=_0xd6e52);}[_0x2a1b80(0x1bd)](_0x32bc75){const _0x4f3c35=_0x2a1b80;this[_0x4f3c35(0x1cb)][_0x4f3c35(0x1c1)]();for(const _0x4f4b0a of _0x32bc75){const _0x32ed8c=this[_0x4f3c35(0x1fa)](_0x4f4b0a,_0x4f3c35(0x1b2),!0x1,!0x1);this[_0x4f3c35(0x1ec)](_0x32ed8c,this[_0x4f3c35(0x1cb)]);}}[_0x2a1b80(0x1d4)](){const _0x30a8f3=_0x2a1b80;this[_0x30a8f3(0x17e)][_0x30a8f3(0x1c1)](),this[_0x30a8f3(0x1e0)][_0x30a8f3(0x1c1)]();}[_0x2a1b80(0x191)](){const _0x283fd0=_0x2a1b80;this[_0x283fd0(0x1cb)][_0x283fd0(0x1c1)]();}[_0x2a1b80(0x19c)](_0x1c443e,_0x4ef5be,_0x47876d){const _0x238bfb=_0x2a1b80;this[_0x238bfb(0x176)][_0x238bfb(0x19c)](_0x1c443e,_0x4ef5be,_0x47876d);}[_0x2a1b80(0x1b5)](){const _0x476cfd=_0x2a1b80;this[_0x476cfd(0x1ff)](!0x1);}[_0x2a1b80(0x1e1)](){const _0x15e7d7=_0x2a1b80;this[_0x15e7d7(0x1ff)](!0x0);}[_0x2a1b80(0x17f)](){const _0x53eff7=_0x2a1b80;this[_0x53eff7(0x1d6)][_0x53eff7(0x1c7)](),this[_0x53eff7(0x1a2)][_0x53eff7(0x1b6)]=!0x1,this[_0x53eff7(0x1a6)]&&this[_0x53eff7(0x1a6)][_0x53eff7(0x1c1)]();}[_0x2a1b80(0x17c)](){const _0x567c04=_0x2a1b80;this[_0x567c04(0x1d6)][_0x567c04(0x203)](),this[_0x567c04(0x1a2)][_0x567c04(0x1b6)]=!0x0;}[_0x2a1b80(0x1b4)](_0x25bf91){const _0x3c11b0=_0x2a1b80;this[_0x3c11b0(0x176)][_0x3c11b0(0x177)](_0x25bf91),this[_0x3c11b0(0x1a2)][_0x3c11b0(0x1b6)]=!0x0;}[_0x2a1b80(0x1de)](_0x387de9,_0x24287c,_0x790fdc,_0x901129){const _0x1579d3=_0x2a1b80;this[_0x1579d3(0x176)][_0x1579d3(0x1de)](_0x387de9,_0x790fdc,_0x901129);}[_0x2a1b80(0x1f9)](_0x89ce1e){const _0x1232d6=_0x2a1b80;this[_0x1232d6(0x176)][_0x1232d6(0x1f9)](_0x89ce1e),this[_0x1232d6(0x1a2)][_0x1232d6(0x1b6)]=!0x1;}[_0x2a1b80(0x1ca)](_0x4b5351){const _0xfafe49=_0x2a1b80;this[_0xfafe49(0x1c9)](this[_0xfafe49(0x1f0)],this[_0xfafe49(0x1e4)],_0x4b5351),this[_0xfafe49(0x19a)](_0x4b5351);}[_0x2a1b80(0x19a)](_0x100b47){const _0x553366=_0x2a1b80,_0x5e5c03=!_0x100b47[_0x553366(0x1a7)][_0x553366(0x198)]&&_0x100b47[_0x553366(0x1a7)][_0x553366(0x1ac)],_0x9cd169=_0x100b47[_0x553366(0x1e5)][_0x553366(0x1ac)],_0x49f6c1=_0x100b47[_0x553366(0x1d9)][_0x553366(0x1ac)];this[_0x553366(0x1a2)][_0x553366(0x17b)]=_0x5e5c03||_0x9cd169||_0x49f6c1;}[_0x2a1b80(0x1e9)](){const _0x501bd1=_0x2a1b80;this[_0x501bd1(0x1a5)]({'tag':_0x501bd1(0x1c8),'attributes':{'class':[po,_0x501bd1(0x1c2)]},'children':[{'tag':_0x501bd1(0x1c8),'attributes':{'class':Bo},'children':this[_0x501bd1(0x17e)]}]});}[_0x2a1b80(0x18a)](){const _0x333f07=_0x2a1b80;this[_0x333f07(0x1a2)]['on'](_0x333f07(0x1d1),()=>{const _0x598f50=_0x333f07;this[_0x598f50(0x1b8)]();});}[_0x2a1b80(0x185)](_0x19f37d){const _0x10e6ab=_0x2a1b80,_0x4e098e=new _0x53f213(_0x19f37d);return _0x4e098e[_0x10e6ab(0x199)]({'label':_0x1a0bfc(_0x19f37d,_0x10e6ab(0x186)),'class':vo+'\x20'+To,'icon':_0x509479,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x4e098e;}[_0x2a1b80(0x1f6)](_0x3e5995){const _0x1d91da=_0x2a1b80;return this[_0x1d91da(0x206)](_0x3e5995,bo);}[_0x2a1b80(0x1bc)](_0x35c282){const _0x178c1f=_0x2a1b80,_0x33d105=this[_0x178c1f(0x206)](_0x35c282,Ao);return this[_0x178c1f(0x189)](_0x33d105,_0x35c282),_0x33d105;}[_0x2a1b80(0x1da)](_0x53562e,_0x4ec004){const _0x5be9c1=_0x2a1b80;return new _0x48750c(_0x53562e,_0x4ec004,{'onBackToContext':()=>{const _0x4f22b5=_0x20f6;this[_0x4f22b5(0x1e1)](),this[_0x4f22b5(0x1f0)][_0x4f22b5(0x18c)]({'target':this[_0x4f22b5(0x1a2)][_0x4f22b5(0x181)],'limiter':this[_0x4f22b5(0x1d0)](),'positions':Po});},'onResourceSelected':(_0x5c76bc,_0x8d922a)=>{const _0x1ab08a=_0x20f6;this[_0x1ab08a(0x204)](_0x1ab08a(0x1a0),{'source':_0x5c76bc,'resource':_0x8d922a});},'onLoadSourceResources':_0x465279=>{const _0x524b20=_0x20f6;this[_0x524b20(0x204)](_0x524b20(0x18b),_0x465279);},'onBalloonClosed':()=>{const _0x288c16=_0x20f6;this[_0x288c16(0x1a2)][_0x288c16(0x1b6)]=!0x1;},'getLimiterElement':()=>this[_0x5be9c1(0x1d0)](),'getTargetElement':()=>this[_0x5be9c1(0x1a2)][_0x5be9c1(0x181)]});}[_0x2a1b80(0x1d0)](){const _0x54d3f4=_0x2a1b80;return this[_0x54d3f4(0x181)]?.[_0x54d3f4(0x1dc)]('.'+Io)||document[_0x54d3f4(0x197)];}[_0x2a1b80(0x206)](_0xa0ffbb,_0x4ce952){const _0x19f690=_0x2a1b80,_0x458097=new _0xd97f0a(_0xa0ffbb);return _0x458097[_0x19f690(0x1f8)]({'attributes':{'class':_0x4ce952}}),this[_0x19f690(0x194)][_0x19f690(0x1c4)](_0x458097),_0x458097;}[_0x2a1b80(0x1c9)](_0x293821,_0x2ca0eb,_0x15bc06){const _0x249a4c=_0x2a1b80;if(_0x293821[_0x249a4c(0x201)][_0x249a4c(0x1c1)](),!_0x15bc06[_0x249a4c(0x1a7)][_0x249a4c(0x198)]&&_0x15bc06[_0x249a4c(0x1a7)][_0x249a4c(0x1ac)]){const _0x1a4fb3=this[_0x249a4c(0x18e)](_0x2ca0eb,{'label':_0x1a0bfc(_0x2ca0eb,_0x249a4c(0x18f)),'icon':_0x5baeda});_0x1a4fb3['on'](_0x249a4c(0x1d1),()=>{const _0x23832f=_0x249a4c;this[_0x23832f(0x204)](_0x23832f(0x1a3)),this[_0x23832f(0x1b5)]();}),_0x293821[_0x249a4c(0x201)][_0x249a4c(0x1c4)](_0x1a4fb3);}if(_0x15bc06[_0x249a4c(0x1e5)][_0x249a4c(0x1ac)]){const _0x141eb3=this[_0x249a4c(0x18e)](_0x2ca0eb,{'label':_0x1a0bfc(_0x2ca0eb,_0x249a4c(0x1ce)),'icon':_0x3c3bb6});_0x141eb3['on'](_0x249a4c(0x1d1),()=>{const _0x5c7f4f=_0x249a4c;this[_0x5c7f4f(0x1b5)](),this[_0x5c7f4f(0x17c)](),this[_0x5c7f4f(0x1d6)][_0x5c7f4f(0x18c)]({'target':this[_0x5c7f4f(0x1a2)][_0x5c7f4f(0x181)],'limiter':this[_0x5c7f4f(0x1d0)](),'positions':Po}),this[_0x5c7f4f(0x1a6)][_0x5c7f4f(0x1b9)]();}),_0x293821[_0x249a4c(0x201)][_0x249a4c(0x1c4)](_0x141eb3);}if(_0x15bc06[_0x249a4c(0x1d9)][_0x249a4c(0x1ac)]){const _0x35777c=new _0x5d0e9f(_0x2ca0eb);_0x35777c[_0x249a4c(0x199)]({'label':_0x1a0bfc(_0x2ca0eb,_0x249a4c(0x1ea)),'icon':_0x4e693f,'withText':!0x0,'tooltip':!0x0,'class':ko,'allowMultipleFiles':!0x0}),_0x35777c['on'](_0x249a4c(0x1e3),(_0x4c0484,_0x2be06b)=>{const _0x354b9a=_0x249a4c;this[_0x354b9a(0x204)](_0x354b9a(0x1a1),_0x2be06b),this[_0x354b9a(0x1b5)]();}),_0x35777c[_0x249a4c(0x1d2)]=!0x0,_0x293821[_0x249a4c(0x201)][_0x249a4c(0x1c4)](_0x35777c);}for(const _0x41cd4b of _0x15bc06[_0x249a4c(0x1ab)]){const _0x427d56=this[_0x249a4c(0x18e)](_0x2ca0eb,{'label':_0x41cd4b[_0x249a4c(0x182)],'icon':_0x41cd4b[_0x249a4c(0x1b0)]||_0x17490f,'type':_0x249a4c(0x17a)});_0x293821[_0x249a4c(0x201)][_0x249a4c(0x1c4)](_0x427d56),_0x427d56['on'](_0x249a4c(0x1d1),()=>{const _0x5bb7c5=_0x249a4c;this[_0x5bb7c5(0x1b5)](),this[_0x5bb7c5(0x1b4)](_0x41cd4b);});}}[_0x2a1b80(0x189)](_0x260d5a,_0x36d75a){const _0x3811f6=_0x2a1b80;this[_0x3811f6(0x1a6)]=new _0x5ffd88(_0x36d75a),this[_0x3811f6(0x1a6)]['on'](_0x3811f6(0x1bb),(_0x2edd61,_0x4e27c1)=>{const _0x4a2199=_0x3811f6;this[_0x4a2199(0x1d5)](_0x4e27c1);}),this[_0x3811f6(0x1a6)]['on'](_0x3811f6(0x183),()=>{const _0x8538d8=_0x3811f6;this[_0x8538d8(0x17f)](),this[_0x8538d8(0x1e1)](),this[_0x8538d8(0x1f0)][_0x8538d8(0x18c)]({'target':this[_0x8538d8(0x1a2)][_0x8538d8(0x181)],'limiter':this[_0x8538d8(0x1d0)](),'positions':Po});}),this[_0x3811f6(0x1a6)]['on'](_0x3811f6(0x200),()=>{const _0x51b051=_0x3811f6;this[_0x51b051(0x1d6)][_0x51b051(0x193)]&&this[_0x51b051(0x1d6)][_0x51b051(0x18c)]({'target':this[_0x51b051(0x1a2)][_0x51b051(0x181)],'limiter':this[_0x51b051(0x1d0)](),'positions':Po});}),_0x260d5a[_0x3811f6(0x201)][_0x3811f6(0x1c4)](this[_0x3811f6(0x1a6)]);}[_0x2a1b80(0x18e)](_0x4a95b6,_0x28c627){const _0x4170d1=_0x2a1b80,_0x2a2716=_0x4170d1(0x17a)===_0x28c627[_0x4170d1(0x19e)]?new SourcesBalloonButtonView(_0x4a95b6):new _0x53f213(_0x4a95b6);return _0x2a2716[_0x4170d1(0x199)]({'label':_0x28c627[_0x4170d1(0x182)],'icon':_0x28c627[_0x4170d1(0x1b0)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':ko}),_0x2a2716;}[_0x2a1b80(0x180)](){const _0x414004=_0x2a1b80;this[_0x414004(0x17d)](),this[_0x414004(0x1f5)]();}[_0x2a1b80(0x1f5)](){const _0x4da4df=_0x2a1b80;_0xb7579c({'emitter':this[_0x4da4df(0x1d6)],'contextElements':[this[_0x4da4df(0x1d6)][_0x4da4df(0x181)]],'callback':()=>{const _0x478cc3=_0x4da4df;this[_0x478cc3(0x17f)]();},'activator':()=>this[_0x4da4df(0x1d6)][_0x4da4df(0x193)]});}[_0x2a1b80(0x1ff)](_0x563d21){const _0x24d741=_0x2a1b80,_0xed96d6=this[_0x24d741(0x19b)];_0xed96d6[_0x24d741(0x1ba)][_0x24d741(0x1b6)]=_0x563d21,_0x563d21?_0xed96d6[_0x24d741(0x1fd)][_0x24d741(0x203)]():_0xed96d6[_0x24d741(0x1fd)][_0x24d741(0x1c7)]();}[_0x2a1b80(0x17d)](){const _0x487763=_0x2a1b80,{balloonView:_0x31ec94,buttonView:_0x384993,hideMethod:_0xd7771e}=this[_0x487763(0x19b)];_0xb7579c({'emitter':_0x31ec94,'contextElements':[_0x31ec94[_0x487763(0x181)],_0x384993[_0x487763(0x181)]],'callback':()=>{_0xd7771e();},'activator':()=>_0x384993[_0x487763(0x1b6)]&&!this[_0x487763(0x1d6)][_0x487763(0x193)]&&!this[_0x487763(0x176)][_0x487763(0x1f1)]()});}[_0x2a1b80(0x1fa)](_0x4ac952,_0x3b65e7,_0x53b6b1=!0x1,_0x830b05=!0x1){const _0x13431c=_0x2a1b80,_0x4724f2=_0x13431c(0x1b2)===_0x3b65e7||!0x0===_0x4ac952[_0x13431c(0x192)],_0x538925=new _0x36aaac(this[_0x13431c(0x1e4)],_0x4ac952,_0x4724f2,_0x53b6b1,_0x830b05);return _0x4724f2||_0x538925['on'](_0x13431c(0x1ae),()=>{const _0x247828=_0x13431c;this[_0x247828(0x204)](_0x247828(0x1d7),_0x538925['id']);}),_0x538925;}[_0x2a1b80(0x1ec)](_0x231e4a,_0x2307f4){const _0x8bc736=_0x2a1b80;_0x2307f4[_0x8bc736(0x1c4)](_0x231e4a,0x0);}[_0x2a1b80(0x1fc)](_0x49746f,_0x4fa8c7){const _0x486f50=_0x2a1b80,_0x214332=_0x4fa8c7[_0x486f50(0x1ef)](_0x423902=>_0x423902['id']===_0x49746f);_0x214332&&_0x4fa8c7[_0x486f50(0x1f2)](_0x214332);}[_0x2a1b80(0x1b8)](){const _0x55a4e0=_0x2a1b80;this[_0x55a4e0(0x1a2)][_0x55a4e0(0x1b6)]?this[_0x55a4e0(0x1b5)]():(this[_0x55a4e0(0x1e1)](),this[_0x55a4e0(0x1f0)][_0x55a4e0(0x18c)]({'target':this[_0x55a4e0(0x1a2)][_0x55a4e0(0x181)],'limiter':this[_0x55a4e0(0x1d0)](),'positions':Po}));}[_0x2a1b80(0x1d5)](_0x2e5329){const _0xd2f881=_0x2a1b80;this[_0xd2f881(0x1a6)][_0xd2f881(0x1c1)](),this[_0xd2f881(0x17f)](),this[_0xd2f881(0x204)](_0xd2f881(0x188),_0x2e5329);}}export class SourcesBalloonButtonView extends _0x53f213{[_0x2a1b80(0x1f7)];constructor(_0x3c39df){const _0x38cccc=_0x2a1b80;super(_0x3c39df),this[_0x38cccc(0x199)]({'withText':!0x0,'role':_0x38cccc(0x1b1)}),this[_0x38cccc(0x1f7)]=this[_0x38cccc(0x1ad)](),this[_0x38cccc(0x1f8)]({'attributes':{'class':[Eo]}});}[_0x2a1b80(0x1fe)](){const _0x13157e=_0x2a1b80;super[_0x13157e(0x1fe)](),this[_0x13157e(0x175)][_0x13157e(0x1c4)](this[_0x13157e(0x1f7)]);}[_0x2a1b80(0x1ad)](){const _0x27657b=_0x2a1b80,_0x31937e=new _0xf2b7d4();return _0x31937e[_0x27657b(0x201)]=_0x1b8916,_0x31937e[_0x27657b(0x1f8)]({'attributes':{'class':Eo+_0x27657b(0x1be)}}),_0x31937e;}}
23
+ const _0x15f2a2=_0x148d;(function(_0x264ac4,_0x5eb158){const _0x4ae073=_0x148d,_0x3e049e=_0x264ac4();while(!![]){try{const _0x55e29f=parseInt(_0x4ae073(0x103))/0x1*(-parseInt(_0x4ae073(0x7e))/0x2)+-parseInt(_0x4ae073(0xc1))/0x3*(parseInt(_0x4ae073(0xbd))/0x4)+-parseInt(_0x4ae073(0x94))/0x5+-parseInt(_0x4ae073(0xb8))/0x6*(parseInt(_0x4ae073(0x91))/0x7)+-parseInt(_0x4ae073(0xf7))/0x8+-parseInt(_0x4ae073(0xa8))/0x9+-parseInt(_0x4ae073(0xdf))/0xa*(-parseInt(_0x4ae073(0x8c))/0xb);if(_0x55e29f===_0x5eb158)break;else _0x3e049e['push'](_0x3e049e['shift']());}catch(_0x1ac0ba){_0x3e049e['push'](_0x3e049e['shift']());}}}(_0x50ce,0xeff07));import{BalloonPanelView as _0x59c6a5,ButtonView as _0x5af781,clickOutsideHandler as _0x245e77,FileDialogButtonView as _0x342ac6,IconView as _0x17fc9a,View as _0x32674c}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x5a5878,IconDocument as _0x410a4e,IconDocumentOutline as _0x1c3ead,IconDropdownArrow as _0x297e58,IconLink as _0x317191,IconPaperClip as _0x2ebee7}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x23c1a8}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x33610c}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0xb28182}from'./aichatchipsoverflowmanager.js';function _0x50ce(){const _0x4960eb=['AI_CHAT_CONTEXT_ADD_CONTEXT','urls','children','tooltip','content','10OyUQxG','ck-ai-chat-controls_context_show-more-button','_resourcesBalloonView','_removeContextFromCollection','clearConversationContextItems','ck-ai-chat-context-controls__balloon-button','execute','showUrlBalloonPanel','southArrowNorth','element','buttonView','overflowChips','_showSourceResourcesBalloon','find','9167246XttdZV','isReadOnly','showAddContextBalloonPanel','current','ck-ai-chat-context-controls__add-context-button','13986hiRRay','_urlInputView','arrowView','2054680VthCjK','northArrowSouthEast','_setupAddContextBalloonClickOutsideHandler','ck-ai-chat-context-chips-wrapper-balloon','_createArrowView','destroy','_setAddContextButtonEnabled','enabled','balloonView','removeContextItem','populateSourceResourceBalloon','northArrowSouth','label','_createAddContextBalloonPanelView','_handleAddContextButtonClick','document','removeContextItemChip','_createBalloonButton','_handleUrlSubmit','updateResourceState','4941396iCkBAr','createCollection','files','setContextItemLoading','closest','closeSourceResourceBalloon','ck-ai-chat-context-controls__url-balloon-panel','set','__arrow','_urlBalloonPanelView','defaultPositions','icon','show','ck-ai-chat','_overflowManager','refreshBalloon','4494RtIGGO','isHidden','sources','ck-ai-chat-context-controls','_setupTemplate','348KNUndr','loadSourceResources','northArrowSouthWest','isAnyResourceBalloonVisible','5571JLnduF','_conversationContextsChips','setAddContextOptions','render','type','isEnabled','body','_addUrlContent','addContextButtonView','ck-ai-chat-context-controls__add-context-balloon-panel','_bindEventHandlers','addDocumentToContext','_createContextButton','_setupUrlBalloonClickOutsideHandler','_createResourcesBalloonView','_addContextBalloonPanelView','pin','focus','fire','hide','addUrlToContext','_createUrlBalloonPanelView','submitUrl','_toggleAddContextBalloon','ck-reset_all-excluded','southArrowNorthWest','setTemplate','menuitem','reorganizeChips','hideAddContextBalloonPanel','70AHEzmF','locale','bind','extendTemplate','addFileToContext','div','_addContextToCollection','ck-ai-chat-controls-button','ck-ai-chat-context-controls__balloon-button-source','cancel','ck-ai-chat-context-controls__pending-contexts','setConversationContext','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','_createBaseBalloonPanel','clearCurrentContextItems','done','ck-ai-chat-context-controls__show-more-balloon-panel','remove','AI_CHAT_CONTEXT_FILE_LABEL','source','isOn','add','_addContextBalloonConfig','addContextItem','10497720ZujhaU','_currentContextsChips','_setupAllBalloonClickOutsideHandlers','isLoading','conversation','_getLimiterElement','_createAddContextButtonView','hideUrlBalloonPanel','bodyCollection','isVisible','addResourceToContext','AI_CHAT_CONTEXT_URL_LABEL','184131FXlYcM','showSourceResourcesBalloon','setContainerElement','clear','_setBalloonPanelContent','southArrowNorthEast'];_0x50ce=function(){return _0x4960eb;};return _0x50ce();}import{getTranslation as _0x1ad7b8}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x28db72}from'./resources/aichatresourcesballoonview.js';function _0x148d(_0x4092be,_0x399563){const _0x50cec=_0x50ce();return _0x148d=function(_0x148d95,_0x2ca270){_0x148d95=_0x148d95-0x76;let _0x4c29bf=_0x50cec[_0x148d95];return _0x4c29bf;},_0x148d(_0x4092be,_0x399563);}export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x15f2a2(0xcc),_0x15f2a2(0xe3),_0x15f2a2(0xd5),_0x15f2a2(0x101),_0x15f2a2(0x9d),_0x15f2a2(0xbe)];const vo=_0x15f2a2(0xbb),go=_0x15f2a2(0xe9),Vo=_0x15f2a2(0xca),fo=_0x15f2a2(0x90),Io=_0x15f2a2(0xae),Po=_0x15f2a2(0x83),Ro=_0x15f2a2(0xe7),uo=_0x15f2a2(0xe6),So=_0x15f2a2(0x97),xo=_0x15f2a2(0x7f),mo=_0x15f2a2(0xef),Uo=_0x15f2a2(0xb5),Lo=[_0x59c6a5[_0x15f2a2(0xb2)][_0x15f2a2(0xbf)],_0x59c6a5[_0x15f2a2(0xb2)][_0x15f2a2(0x9f)],_0x59c6a5[_0x15f2a2(0xb2)][_0x15f2a2(0x95)],_0x59c6a5[_0x15f2a2(0xb2)][_0x15f2a2(0xda)],_0x59c6a5[_0x15f2a2(0xb2)][_0x15f2a2(0x86)],_0x59c6a5[_0x15f2a2(0xb2)][_0x15f2a2(0x78)]];export class AIChatContextPanelView extends _0x32674c{[_0x15f2a2(0xc9)];[_0x15f2a2(0xf8)]=this[_0x15f2a2(0xa9)]();[_0x15f2a2(0xc2)]=this[_0x15f2a2(0xa9)]();[_0x15f2a2(0xb6)];[_0x15f2a2(0xd0)];[_0x15f2a2(0xb1)];[_0x15f2a2(0x92)];[_0x15f2a2(0x80)];[_0x15f2a2(0xf5)];[_0x15f2a2(0xff)];constructor(_0x4ad397,_0x42e16b){const _0x5518f2=_0x15f2a2;super(_0x4ad397),this[_0x5518f2(0xff)]=_0x42e16b,this[_0x5518f2(0xf8)]=this[_0x5518f2(0xa9)](),this[_0x5518f2(0xc2)]=this[_0x5518f2(0xa9)](),this[_0x5518f2(0xc9)]=this[_0x5518f2(0xfd)](_0x4ad397),this[_0x5518f2(0xd0)]=this[_0x5518f2(0xa1)](_0x4ad397),this[_0x5518f2(0xb1)]=this[_0x5518f2(0xd6)](_0x4ad397),this[_0x5518f2(0x80)]=this[_0x5518f2(0xcf)](_0x4ad397,_0x42e16b);const _0x32602d={'cssClasses':{'showMoreButton':xo,'showMoreBalloon':mo,'overflowContainer':So,'controlsButton':uo}};this[_0x5518f2(0xb6)]=new _0xb28182(_0x4ad397,this[_0x5518f2(0xf8)],_0x32602d,this[_0x5518f2(0xff)],this),this[_0x5518f2(0xf5)]={'buttonView':this[_0x5518f2(0xc9)],'balloonView':this[_0x5518f2(0xd0)],'hideMethod':this[_0x5518f2(0xde)][_0x5518f2(0xe1)](this),'showMethod':this[_0x5518f2(0x8e)][_0x5518f2(0xe1)](this)},this[_0x5518f2(0xbc)](),this[_0x5518f2(0xcb)]();}[_0x15f2a2(0xc4)](){const _0x3c7191=_0x15f2a2;super[_0x3c7191(0xc4)](),this[_0x3c7191(0xf9)](),this[_0x3c7191(0xb6)][_0x3c7191(0x105)](this[_0x3c7191(0x87)]),this[_0x3c7191(0xb6)][_0x3c7191(0xdd)]();}[_0x15f2a2(0x99)](){const _0x32c9fa=_0x15f2a2;super[_0x32c9fa(0x99)](),this[_0x32c9fa(0xb6)][_0x32c9fa(0x99)](),this[_0x32c9fa(0x80)][_0x32c9fa(0x99)]();}[_0x15f2a2(0xf6)](_0x3ddb8c,_0x53054f){const _0x24a1d6=_0x15f2a2,_0x264e21=this[_0x24a1d6(0xcd)](_0x3ddb8c,_0x24a1d6(0x8f),!0x0,_0x53054f);this[_0x24a1d6(0xe5)](_0x264e21,this[_0x24a1d6(0xf8)]),this[_0x24a1d6(0xb6)][_0x24a1d6(0xdd)]();}[_0x15f2a2(0x9d)](_0x4e1d8){const _0x39e213=_0x15f2a2;this[_0x39e213(0x81)](_0x4e1d8,this[_0x39e213(0xf8)]),this[_0x39e213(0x81)](_0x4e1d8,this[_0x39e213(0xb6)][_0x39e213(0x89)]),this[_0x39e213(0xb6)][_0x39e213(0xdd)]();}[_0x15f2a2(0xab)](_0x2bb628,_0x29024d){const _0x186e06=_0x15f2a2;let _0x335ff5=this[_0x186e06(0xf8)][_0x186e06(0x8b)](_0x17d124=>_0x17d124['id']===_0x2bb628);_0x335ff5||(_0x335ff5=this[_0x186e06(0xb6)][_0x186e06(0x89)][_0x186e06(0x8b)](_0x64db18=>_0x64db18['id']===_0x2bb628)),_0x335ff5&&(_0x335ff5[_0x186e06(0xfa)]=_0x29024d);}[_0x15f2a2(0xea)](_0x2aadf5){const _0x3554f8=_0x15f2a2;this[_0x3554f8(0xc2)][_0x3554f8(0x76)]();for(const _0x33d24f of _0x2aadf5){const _0x32e79b=this[_0x3554f8(0xcd)](_0x33d24f,_0x3554f8(0xfb),!0x1,!0x1);this[_0x3554f8(0xe5)](_0x32e79b,this[_0x3554f8(0xc2)]);}}[_0x15f2a2(0xed)](){const _0x3d4649=_0x15f2a2;this[_0x3d4649(0xf8)][_0x3d4649(0x76)](),this[_0x3d4649(0xb6)][_0x3d4649(0x76)]();}[_0x15f2a2(0x82)](){const _0x2c299f=_0x15f2a2;this[_0x2c299f(0xc2)][_0x2c299f(0x76)]();}[_0x15f2a2(0xa7)](_0x5c8d5d,_0x3f5bdd,_0x40d52c){const _0x5ea233=_0x15f2a2;this[_0x5ea233(0x80)][_0x5ea233(0xa7)](_0x5c8d5d,_0x3f5bdd,_0x40d52c);}[_0x15f2a2(0xde)](){const _0x5644cc=_0x15f2a2;this[_0x5644cc(0xd8)](!0x1);}[_0x15f2a2(0x8e)](){const _0x4c1c6a=_0x15f2a2;this[_0x4c1c6a(0xd8)](!0x0);}[_0x15f2a2(0xfe)](){const _0x191970=_0x15f2a2;this[_0x191970(0xb1)][_0x191970(0xd4)](),this[_0x191970(0xc9)][_0x191970(0xf3)]=!0x1,this[_0x191970(0x92)]&&this[_0x191970(0x92)][_0x191970(0x76)]();}[_0x15f2a2(0x85)](){const _0x3289be=_0x15f2a2;this[_0x3289be(0xb1)][_0x3289be(0xb4)](),this[_0x3289be(0xc9)][_0x3289be(0xf3)]=!0x0;}[_0x15f2a2(0x8a)](_0x47e135){const _0x2a1ce3=_0x15f2a2;this[_0x2a1ce3(0x80)][_0x2a1ce3(0x104)](_0x47e135),this[_0x2a1ce3(0xc9)][_0x2a1ce3(0xf3)]=!0x0;}[_0x15f2a2(0x9e)](_0x596287,_0x13ad08,_0x1793aa,_0x4348db){const _0x393334=_0x15f2a2;this[_0x393334(0x80)][_0x393334(0x9e)](_0x596287,_0x1793aa,_0x4348db);}[_0x15f2a2(0xad)](_0x548664){const _0x538732=_0x15f2a2;this[_0x538732(0x80)][_0x538732(0xad)](_0x548664),this[_0x538732(0xc9)][_0x538732(0xf3)]=!0x1;}[_0x15f2a2(0xc3)](_0x3c9652){const _0x74aaca=_0x15f2a2;this[_0x74aaca(0x77)](this[_0x74aaca(0xd0)],this[_0x74aaca(0xe0)],_0x3c9652),this[_0x74aaca(0x9a)](_0x3c9652);}[_0x15f2a2(0x9a)](_0x2a87f3){const _0xd0ff46=_0x15f2a2,_0x413598=!_0x2a87f3[_0xd0ff46(0xa3)][_0xd0ff46(0xb9)]&&_0x2a87f3[_0xd0ff46(0xa3)][_0xd0ff46(0x9b)],_0x3ad2c3=_0x2a87f3[_0xd0ff46(0x7a)][_0xd0ff46(0x9b)],_0x3cc9f0=_0x2a87f3[_0xd0ff46(0xaa)][_0xd0ff46(0x9b)];this[_0xd0ff46(0xc9)][_0xd0ff46(0xc6)]=_0x413598||_0x3ad2c3||_0x3cc9f0;}[_0x15f2a2(0xbc)](){const _0x17a02e=_0x15f2a2;this[_0x17a02e(0xdb)]({'tag':_0x17a02e(0xe4),'attributes':{'class':[vo,_0x17a02e(0xd9)]},'children':[{'tag':_0x17a02e(0xe4),'attributes':{'class':go},'children':this[_0x17a02e(0xf8)]}]});}[_0x15f2a2(0xcb)](){const _0xcd7779=_0x15f2a2;this[_0xcd7779(0xc9)]['on'](_0xcd7779(0x84),()=>{const _0x16995a=_0xcd7779;this[_0x16995a(0xa2)]();});}[_0x15f2a2(0xfd)](_0x4348fc){const _0x4c066a=_0x15f2a2,_0x19e354=new _0x5af781(_0x4348fc);return _0x19e354[_0x4c066a(0xaf)]({'label':_0x1ad7b8(_0x4348fc,_0x4c066a(0x79)),'class':uo+'\x20'+fo,'icon':_0x2ebee7,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x19e354;}[_0x15f2a2(0xa1)](_0xcabd25){const _0x5161aa=_0x15f2a2;return this[_0x5161aa(0xec)](_0xcabd25,Vo);}[_0x15f2a2(0xd6)](_0x26f613){const _0x272e53=_0x15f2a2,_0x137279=this[_0x272e53(0xec)](_0x26f613,Io);return this[_0x272e53(0xc8)](_0x137279,_0x26f613),_0x137279;}[_0x15f2a2(0xcf)](_0x7bd77b,_0x151f35){const _0x5bba66=_0x15f2a2;return new _0x28db72(_0x7bd77b,_0x151f35,{'onBackToContext':()=>{const _0x278e74=_0x148d;this[_0x278e74(0x8e)](),this[_0x278e74(0xd0)][_0x278e74(0xd1)]({'target':this[_0x278e74(0xc9)][_0x278e74(0x87)],'limiter':this[_0x278e74(0xfc)](),'positions':Lo});},'onResourceSelected':(_0x41edc8,_0x53d61c)=>{const _0x36fe8d=_0x148d;this[_0x36fe8d(0xd3)](_0x36fe8d(0x101),{'source':_0x41edc8,'resource':_0x53d61c});},'onLoadSourceResources':_0x372a9a=>{const _0x48b876=_0x148d;this[_0x48b876(0xd3)](_0x48b876(0xbe),_0x372a9a);},'onBalloonClosed':()=>{const _0x39076a=_0x148d;this[_0x39076a(0xc9)][_0x39076a(0xf3)]=!0x1;},'getLimiterElement':()=>this[_0x5bba66(0xfc)](),'getTargetElement':()=>this[_0x5bba66(0xc9)][_0x5bba66(0x87)]});}[_0x15f2a2(0xfc)](){const _0x200f91=_0x15f2a2;return this[_0x200f91(0x87)]?.[_0x200f91(0xac)]('.'+Uo)||document[_0x200f91(0xc7)];}[_0x15f2a2(0xec)](_0x40aedb,_0x4413b3){const _0xa4d77=_0x15f2a2,_0xefce88=new _0x59c6a5(_0x40aedb);return _0xefce88[_0xa4d77(0xe2)]({'attributes':{'class':_0x4413b3}}),this[_0xa4d77(0xff)][_0xa4d77(0xf4)](_0xefce88),_0xefce88;}[_0x15f2a2(0x77)](_0x539e8b,_0x556f7a,_0x170938){const _0x9ea024=_0x15f2a2;if(_0x539e8b[_0x9ea024(0x7d)][_0x9ea024(0x76)](),!_0x170938[_0x9ea024(0xa3)][_0x9ea024(0xb9)]&&_0x170938[_0x9ea024(0xa3)][_0x9ea024(0x9b)]){const _0x2e23f8=this[_0x9ea024(0xa5)](_0x556f7a,{'label':_0x1ad7b8(_0x556f7a,_0x9ea024(0xeb)),'icon':_0x410a4e});_0x2e23f8['on'](_0x9ea024(0x84),()=>{const _0xc73a47=_0x9ea024;this[_0xc73a47(0xd3)](_0xc73a47(0xcc)),this[_0xc73a47(0xde)]();}),_0x539e8b[_0x9ea024(0x7d)][_0x9ea024(0xf4)](_0x2e23f8);}if(_0x170938[_0x9ea024(0x7a)][_0x9ea024(0x9b)]){const _0x2002b5=this[_0x9ea024(0xa5)](_0x556f7a,{'label':_0x1ad7b8(_0x556f7a,_0x9ea024(0x102)),'icon':_0x317191});_0x2002b5['on'](_0x9ea024(0x84),()=>{const _0x125413=_0x9ea024;this[_0x125413(0xde)](),this[_0x125413(0x85)](),this[_0x125413(0xb1)][_0x125413(0xd1)]({'target':this[_0x125413(0xc9)][_0x125413(0x87)],'limiter':this[_0x125413(0xfc)](),'positions':Lo}),this[_0x125413(0x92)][_0x125413(0xd2)]();}),_0x539e8b[_0x9ea024(0x7d)][_0x9ea024(0xf4)](_0x2002b5);}if(_0x170938[_0x9ea024(0xaa)][_0x9ea024(0x9b)]){const _0x46d366=new _0x342ac6(_0x556f7a);_0x46d366[_0x9ea024(0xaf)]({'label':_0x1ad7b8(_0x556f7a,_0x9ea024(0xf1)),'icon':_0x5a5878,'withText':!0x0,'tooltip':!0x0,'class':Po,'allowMultipleFiles':!0x0}),_0x46d366['on'](_0x9ea024(0xee),(_0x2146d6,_0x229038)=>{const _0x50659a=_0x9ea024;this[_0x50659a(0xd3)](_0x50659a(0xe3),_0x229038),this[_0x50659a(0xde)]();}),_0x46d366[_0x9ea024(0x7c)]=!0x0,_0x539e8b[_0x9ea024(0x7d)][_0x9ea024(0xf4)](_0x46d366);}for(const _0xe9ec1 of _0x170938[_0x9ea024(0xba)]){const _0x229793=this[_0x9ea024(0xa5)](_0x556f7a,{'label':_0xe9ec1[_0x9ea024(0xa0)],'icon':_0xe9ec1[_0x9ea024(0xb3)]||_0x1c3ead,'type':_0x9ea024(0xf2)});_0x539e8b[_0x9ea024(0x7d)][_0x9ea024(0xf4)](_0x229793),_0x229793['on'](_0x9ea024(0x84),()=>{const _0x5768d8=_0x9ea024;this[_0x5768d8(0xde)](),this[_0x5768d8(0x8a)](_0xe9ec1);});}}[_0x15f2a2(0xc8)](_0x3b169c,_0x34019e){const _0x9283b1=_0x15f2a2;this[_0x9283b1(0x92)]=new _0x33610c(_0x34019e),this[_0x9283b1(0x92)]['on'](_0x9283b1(0xd7),(_0x4e4be0,_0x38453c)=>{const _0x266ee1=_0x9283b1;this[_0x266ee1(0xa6)](_0x38453c);}),this[_0x9283b1(0x92)]['on'](_0x9283b1(0xe8),()=>{const _0x401706=_0x9283b1;this[_0x401706(0xfe)](),this[_0x401706(0x8e)](),this[_0x401706(0xd0)][_0x401706(0xd1)]({'target':this[_0x401706(0xc9)][_0x401706(0x87)],'limiter':this[_0x401706(0xfc)](),'positions':Lo});}),this[_0x9283b1(0x92)]['on'](_0x9283b1(0xb7),()=>{const _0x3e8773=_0x9283b1;this[_0x3e8773(0xb1)][_0x3e8773(0x100)]&&this[_0x3e8773(0xb1)][_0x3e8773(0xd1)]({'target':this[_0x3e8773(0xc9)][_0x3e8773(0x87)],'limiter':this[_0x3e8773(0xfc)](),'positions':Lo});}),_0x3b169c[_0x9283b1(0x7d)][_0x9283b1(0xf4)](this[_0x9283b1(0x92)]);}[_0x15f2a2(0xa5)](_0x229fa1,_0x5c1957){const _0x48d752=_0x15f2a2,_0x4511ca=_0x48d752(0xf2)===_0x5c1957[_0x48d752(0xc5)]?new SourcesBalloonButtonView(_0x229fa1):new _0x5af781(_0x229fa1);return _0x4511ca[_0x48d752(0xaf)]({'label':_0x5c1957[_0x48d752(0xa0)],'icon':_0x5c1957[_0x48d752(0xb3)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Po}),_0x4511ca;}[_0x15f2a2(0xf9)](){const _0x6eeaf=_0x15f2a2;this[_0x6eeaf(0x96)](),this[_0x6eeaf(0xce)]();}[_0x15f2a2(0xce)](){const _0x143289=_0x15f2a2;_0x245e77({'emitter':this[_0x143289(0xb1)],'contextElements':[this[_0x143289(0xb1)][_0x143289(0x87)]],'callback':()=>{const _0x33b1a3=_0x143289;this[_0x33b1a3(0xfe)]();},'activator':()=>this[_0x143289(0xb1)][_0x143289(0x100)]});}[_0x15f2a2(0xd8)](_0x224dc6){const _0x3fc971=_0x15f2a2,_0x5a1b12=this[_0x3fc971(0xf5)];_0x5a1b12[_0x3fc971(0x88)][_0x3fc971(0xf3)]=_0x224dc6,_0x224dc6?_0x5a1b12[_0x3fc971(0x9c)][_0x3fc971(0xb4)]():_0x5a1b12[_0x3fc971(0x9c)][_0x3fc971(0xd4)]();}[_0x15f2a2(0x96)](){const _0x441631=_0x15f2a2,{balloonView:_0x33825b,buttonView:_0x391658,hideMethod:_0x192882}=this[_0x441631(0xf5)];_0x245e77({'emitter':_0x33825b,'contextElements':[_0x33825b[_0x441631(0x87)],_0x391658[_0x441631(0x87)]],'callback':()=>{_0x192882();},'activator':()=>_0x391658[_0x441631(0xf3)]&&!this[_0x441631(0xb1)][_0x441631(0x100)]&&!this[_0x441631(0x80)][_0x441631(0xc0)]()});}[_0x15f2a2(0xcd)](_0x3cff13,_0x24b6ec,_0xea3699=!0x1,_0x2a42c4=!0x1){const _0x3975b1=_0x15f2a2,_0x3cc04d=_0x3975b1(0xfb)===_0x24b6ec||!0x0===_0x3cff13[_0x3975b1(0x8d)],_0x4848ba=new _0x23c1a8(this[_0x3975b1(0xe0)],_0x3cff13,_0x3cc04d,_0xea3699,_0x2a42c4);return _0x3cc04d||_0x4848ba['on'](_0x3975b1(0xa4),()=>{const _0x5a9555=_0x3975b1;this[_0x5a9555(0xd3)](_0x5a9555(0x9d),_0x4848ba['id']);}),_0x4848ba;}[_0x15f2a2(0xe5)](_0xe6b779,_0x3261c7){const _0x221c67=_0x15f2a2;_0x3261c7[_0x221c67(0xf4)](_0xe6b779,0x0);}[_0x15f2a2(0x81)](_0xc0b9a4,_0x299d8d){const _0xf2d37b=_0x15f2a2,_0x2561f3=_0x299d8d[_0xf2d37b(0x8b)](_0xb54317=>_0xb54317['id']===_0xc0b9a4);_0x2561f3&&_0x299d8d[_0xf2d37b(0xf0)](_0x2561f3);}[_0x15f2a2(0xa2)](){const _0x5b0f36=_0x15f2a2;this[_0x5b0f36(0xc9)][_0x5b0f36(0xf3)]?this[_0x5b0f36(0xde)]():(this[_0x5b0f36(0x8e)](),this[_0x5b0f36(0xd0)][_0x5b0f36(0xd1)]({'target':this[_0x5b0f36(0xc9)][_0x5b0f36(0x87)],'limiter':this[_0x5b0f36(0xfc)](),'positions':Lo}));}[_0x15f2a2(0xa6)](_0x1b2c4e){const _0x288d95=_0x15f2a2;this[_0x288d95(0x92)][_0x288d95(0x76)](),this[_0x288d95(0xfe)](),this[_0x288d95(0xd3)](_0x288d95(0xd5),_0x1b2c4e);}}export class SourcesBalloonButtonView extends _0x5af781{[_0x15f2a2(0x93)];constructor(_0x1482d3){const _0x302137=_0x15f2a2;super(_0x1482d3),this[_0x302137(0xaf)]({'withText':!0x0,'role':_0x302137(0xdc)}),this[_0x302137(0x93)]=this[_0x302137(0x98)](),this[_0x302137(0xe2)]({'attributes':{'class':[Ro]}});}[_0x15f2a2(0xc4)](){const _0x9e396f=_0x15f2a2;super[_0x9e396f(0xc4)](),this[_0x9e396f(0x7b)][_0x9e396f(0xf4)](this[_0x9e396f(0x93)]);}[_0x15f2a2(0x98)](){const _0x504e00=_0x15f2a2,_0x599528=new _0x17fc9a();return _0x599528[_0x504e00(0x7d)]=_0x297e58,_0x599528[_0x504e00(0xe2)]({'attributes':{'class':Ro+_0x504e00(0xb0)}}),_0x599528;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xb5d69b=_0x1d91;function _0x1d91(_0x1e80f6,_0x46931b){const _0x4bdbba=_0x4bdb();return _0x1d91=function(_0x1d91f4,_0x1ec4f7){_0x1d91f4=_0x1d91f4-0x15e;let _0x14cbfc=_0x4bdbba[_0x1d91f4];return _0x14cbfc;},_0x1d91(_0x1e80f6,_0x46931b);}(function(_0x188c2d,_0x42b7c8){const _0x48f645=_0x1d91,_0x781c15=_0x188c2d();while(!![]){try{const _0x8a279e=-parseInt(_0x48f645(0x167))/0x1+-parseInt(_0x48f645(0x15f))/0x2+-parseInt(_0x48f645(0x179))/0x3*(-parseInt(_0x48f645(0x16e))/0x4)+-parseInt(_0x48f645(0x177))/0x5+-parseInt(_0x48f645(0x171))/0x6*(parseInt(_0x48f645(0x172))/0x7)+parseInt(_0x48f645(0x166))/0x8+parseInt(_0x48f645(0x174))/0x9;if(_0x8a279e===_0x42b7c8)break;else _0x781c15['push'](_0x781c15['shift']());}catch(_0x4c67c3){_0x781c15['push'](_0x781c15['shift']());}}}(_0x4bdb,0xdce28));function _0x4bdb(){const _0x368ebc=['ck-ai-chat-controls-loader-icon','ai-chat-controls-loader__cancel-button','_createCancelButtonView','ck-ai-chat-controls-loader-icon-dot','_loaderView','ck-ai-chat-controls-loader-wrapper','53916MEXsjl','AI_CHAT_STOP_GENERATING','ck-ai-chat-controls-loader','6QfjymA','5493082QjsusN','abortPromptStream','18341226LsVpOK','div','fire','7849850atqZNX','setTemplate','369OPwiqY','_createLoaderView','207568XYiFqw','_cancelButtonView','AI_CHAT_IS_WRITING','execute','set','ck-reset_all','locale','9756976WfXfDg','1552229DNrXMP'];_0x4bdb=function(){return _0x368ebc;};return _0x4bdb();}import{ButtonView as _0x1ea2ee,View as _0x510501}from'ckeditor5/src/ui.js';import{IconStop as _0xdf7d69}from'ckeditor5/src/icons.js';import{getTranslation as _0x3d9cff}from'../../../aicore/utils/common-translations.js';export class AIChatControlsLoaderView extends _0x510501{[_0xb5d69b(0x160)];[_0xb5d69b(0x16c)];constructor(_0x4aa64a){const _0x599643=_0xb5d69b;super(_0x4aa64a),this[_0x599643(0x160)]=this[_0x599643(0x16a)](),this[_0x599643(0x16c)]=this[_0x599643(0x15e)](),this[_0x599643(0x178)]({'tag':_0x599643(0x175),'attributes':{'class':['ck',_0x599643(0x16d),_0x599643(0x164)]},'children':[this[_0x599643(0x16c)],this[_0x599643(0x160)]]});}[_0xb5d69b(0x16a)](){const _0x3f7ca5=_0xb5d69b,_0x4d22c4=new _0x1ea2ee(this[_0x3f7ca5(0x165)]);return _0x4d22c4[_0x3f7ca5(0x163)]({'label':_0x3d9cff(this[_0x3f7ca5(0x165)],_0x3f7ca5(0x16f)),'withText':!0x0,'class':_0x3f7ca5(0x169),'icon':_0xdf7d69}),_0x4d22c4['on'](_0x3f7ca5(0x162),()=>{const _0x3a99d2=_0x3f7ca5;this[_0x3a99d2(0x176)](_0x3a99d2(0x173));}),_0x4d22c4;}[_0xb5d69b(0x15e)](){const _0xc73dd9=_0xb5d69b,_0x30740f=new _0x510501(this[_0xc73dd9(0x165)]);return _0x30740f[_0xc73dd9(0x178)]({'tag':_0xc73dd9(0x175),'attributes':{'class':[_0xc73dd9(0x170)]},'children':[{'tag':_0xc73dd9(0x175),'attributes':{'class':[_0xc73dd9(0x168)]},'children':[{'tag':_0xc73dd9(0x175),'attributes':{'class':[_0xc73dd9(0x16b)]}},{'tag':_0xc73dd9(0x175),'attributes':{'class':[_0xc73dd9(0x16b)]}},{'tag':_0xc73dd9(0x175),'attributes':{'class':[_0xc73dd9(0x16b)]}}]},{'text':_0x3d9cff(this[_0xc73dd9(0x165)],_0xc73dd9(0x161))}]}),_0x30740f;}}
23
+ const _0x4e0eeb=_0x29b3;function _0x29b3(_0x38e069,_0x4f1bc6){const _0x55e1fa=_0x55e1();return _0x29b3=function(_0x29b34b,_0x3e1f60){_0x29b34b=_0x29b34b-0x17e;let _0x4b222b=_0x55e1fa[_0x29b34b];return _0x4b222b;},_0x29b3(_0x38e069,_0x4f1bc6);}(function(_0x53e284,_0x305538){const _0x180da2=_0x29b3,_0x13c6a3=_0x53e284();while(!![]){try{const _0x2e74a4=parseInt(_0x180da2(0x193))/0x1*(parseInt(_0x180da2(0x188))/0x2)+parseInt(_0x180da2(0x195))/0x3+-parseInt(_0x180da2(0x18b))/0x4+-parseInt(_0x180da2(0x181))/0x5*(-parseInt(_0x180da2(0x17f))/0x6)+parseInt(_0x180da2(0x18a))/0x7*(-parseInt(_0x180da2(0x18f))/0x8)+-parseInt(_0x180da2(0x189))/0x9+parseInt(_0x180da2(0x191))/0xa;if(_0x2e74a4===_0x305538)break;else _0x13c6a3['push'](_0x13c6a3['shift']());}catch(_0x28b3b5){_0x13c6a3['push'](_0x13c6a3['shift']());}}}(_0x55e1,0x206dc));function _0x55e1(){const _0x533fd3=['_createLoaderView','80103Dwvujw','ck-ai-chat-controls-loader-wrapper','ai-chat-controls-loader__cancel-button','_cancelButtonView','ck-ai-chat-controls-loader','_createCancelButtonView','setTemplate','13272WiYQFG','AI_CHAT_IS_WRITING','25BDuvkh','ck-reset_all','AI_CHAT_STOP_GENERATING','locale','div','set','abortPromptStream','1446YVQhpZ','1127421ATczaW','17647WQWkIn','553032vtGkCD','ck-ai-chat-controls-loader-icon-dot','execute','ck-ai-chat-controls-loader-icon','88BwUaeO','_loaderView','3002880rPZKKB','fire','119fkxPcm'];_0x55e1=function(){return _0x533fd3;};return _0x55e1();}import{ButtonView as _0x1fefbb,View as _0x19d01e}from'ckeditor5/src/ui.js';import{IconStop as _0x224940}from'ckeditor5/src/icons.js';import{getTranslation as _0x20db71}from'../../../aicore/utils/common-translations.js';export class AIChatControlsLoaderView extends _0x19d01e{[_0x4e0eeb(0x198)];[_0x4e0eeb(0x190)];constructor(_0x29b556){const _0x57e868=_0x4e0eeb;super(_0x29b556),this[_0x57e868(0x198)]=this[_0x57e868(0x19a)](),this[_0x57e868(0x190)]=this[_0x57e868(0x194)](),this[_0x57e868(0x17e)]({'tag':_0x57e868(0x185),'attributes':{'class':['ck',_0x57e868(0x196),_0x57e868(0x182)]},'children':[this[_0x57e868(0x190)],this[_0x57e868(0x198)]]});}[_0x4e0eeb(0x19a)](){const _0x17abf3=_0x4e0eeb,_0x50f4a0=new _0x1fefbb(this[_0x17abf3(0x184)]);return _0x50f4a0[_0x17abf3(0x186)]({'label':_0x20db71(this[_0x17abf3(0x184)],_0x17abf3(0x183)),'withText':!0x0,'class':_0x17abf3(0x197),'icon':_0x224940}),_0x50f4a0['on'](_0x17abf3(0x18d),()=>{const _0x5d9f4e=_0x17abf3;this[_0x5d9f4e(0x192)](_0x5d9f4e(0x187));}),_0x50f4a0;}[_0x4e0eeb(0x194)](){const _0x6fdba8=_0x4e0eeb,_0x3b48ff=new _0x19d01e(this[_0x6fdba8(0x184)]);return _0x3b48ff[_0x6fdba8(0x17e)]({'tag':_0x6fdba8(0x185),'attributes':{'class':[_0x6fdba8(0x199)]},'children':[{'tag':_0x6fdba8(0x185),'attributes':{'class':[_0x6fdba8(0x18e)]},'children':[{'tag':_0x6fdba8(0x185),'attributes':{'class':[_0x6fdba8(0x18c)]}},{'tag':_0x6fdba8(0x185),'attributes':{'class':[_0x6fdba8(0x18c)]}},{'tag':_0x6fdba8(0x185),'attributes':{'class':[_0x6fdba8(0x18c)]}}]},{'text':_0x20db71(this[_0x6fdba8(0x184)],_0x6fdba8(0x180))}]}),_0x3b48ff;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x568fbf=_0xeb28;(function(_0x190f09,_0x19d67b){const _0x1dea34=_0xeb28,_0xa69c35=_0x190f09();while(!![]){try{const _0x8514fd=-parseInt(_0x1dea34(0x201))/0x1+parseInt(_0x1dea34(0x216))/0x2*(parseInt(_0x1dea34(0x24e))/0x3)+-parseInt(_0x1dea34(0x245))/0x4*(-parseInt(_0x1dea34(0x21a))/0x5)+parseInt(_0x1dea34(0x225))/0x6*(parseInt(_0x1dea34(0x237))/0x7)+-parseInt(_0x1dea34(0x250))/0x8+-parseInt(_0x1dea34(0x23f))/0x9*(parseInt(_0x1dea34(0x23a))/0xa)+parseInt(_0x1dea34(0x206))/0xb*(parseInt(_0x1dea34(0x1f6))/0xc);if(_0x8514fd===_0x19d67b)break;else _0xa69c35['push'](_0xa69c35['shift']());}catch(_0x58a5a5){_0xa69c35['push'](_0xa69c35['shift']());}}}(_0x4466,0xb9c6e));import{Collection as _0x1afed0}from'ckeditor5/src/utils.js';import{IconAI as _0x2cc2fe,IconBulb as _0x408f87,IconWeb as _0x5cad2a}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x4c904c,ButtonLabelView as _0x2429f2,ButtonView as _0x947e8a,createDropdown as _0xc7f222,IconView as _0xf93f4f,UIModel as _0xd809ca,View as _0x1033b4}from'ckeditor5/src/ui.js';import{getTranslation as _0x4b8cb1}from'../../../aicore/utils/common-translations.js';function _0xeb28(_0x6ca4df,_0x9ca6bf){const _0x446642=_0x4466();return _0xeb28=function(_0xeb282f,_0xefa24a){_0xeb282f=_0xeb282f-0x1f4;let _0x397242=_0x446642[_0xeb282f];return _0x397242;},_0xeb28(_0x6ca4df,_0x9ca6bf);}const No=_0x568fbf(0x1fa),vo=_0x568fbf(0x210),Ho=_0x568fbf(0x1f8),Mo=_0x568fbf(0x22d),Lo=_0x568fbf(0x20a),Ro=_0x568fbf(0x20e),Do=_0x568fbf(0x226),Wo='n';export class AIChatPromptCapabilitiesView extends _0x1033b4{[_0x568fbf(0x221)];[_0x568fbf(0x252)];[_0x568fbf(0x24d)];[_0x568fbf(0x227)];[_0x568fbf(0x22e)];[_0x568fbf(0x228)];constructor(_0x27869){const _0x526b84=_0x568fbf;super(_0x27869),this[_0x526b84(0x235)](_0x526b84(0x247),!0x1),this[_0x526b84(0x235)](_0x526b84(0x1f7),!0x1),this[_0x526b84(0x235)](_0x526b84(0x234),!0x0),this[_0x526b84(0x235)](_0x526b84(0x1fd),!0x0),this[_0x526b84(0x235)](_0x526b84(0x21d),''),this[_0x526b84(0x235)](_0x526b84(0x240),''),this[_0x526b84(0x227)]=this[_0x526b84(0x1fb)](),this[_0x526b84(0x228)]=this[_0x526b84(0x241)](),this[_0x526b84(0x221)]=this[_0x526b84(0x24f)](),this[_0x526b84(0x252)]=this[_0x526b84(0x239)](),this[_0x526b84(0x24d)]=this[_0x526b84(0x236)](),this[_0x526b84(0x227)][_0x526b84(0x23c)][_0x526b84(0x24b)](_0x526b84(0x20f))['to'](this,_0x526b84(0x234),_0xd360d9=>_0xd360d9),this[_0x526b84(0x227)][_0x526b84(0x23c)][_0x526b84(0x24b)](_0x526b84(0x255))['to'](this,_0x526b84(0x1fd),_0x1390f5=>_0x1390f5?this[_0x526b84(0x227)][_0x526b84(0x23c)][_0x526b84(0x22b)]:_0x4b8cb1(this[_0x526b84(0x246)],_0x526b84(0x23b))),this[_0x526b84(0x227)][_0x526b84(0x24b)](_0x526b84(0x21e))['to'](this,_0x526b84(0x1fd),_0x24879b=>_0x24879b),this[_0x526b84(0x221)][_0x526b84(0x24b)](_0x526b84(0x233))['to'](this,_0x526b84(0x247),_0x224365=>_0x224365),this[_0x526b84(0x221)][_0x526b84(0x24b)](_0x526b84(0x244))['to'](this,_0x526b84(0x234),_0x392fa5=>!_0x392fa5),this[_0x526b84(0x221)][_0x526b84(0x24b)](_0x526b84(0x255))['to'](this,_0x526b84(0x247),_0x375dc4=>_0x4b8cb1(this[_0x526b84(0x246)],_0x375dc4?_0x526b84(0x23e):_0x526b84(0x22c))),this[_0x526b84(0x252)][_0x526b84(0x24b)](_0x526b84(0x233))['to'](this,_0x526b84(0x1f7),_0x1816ca=>_0x1816ca),this[_0x526b84(0x252)][_0x526b84(0x24b)](_0x526b84(0x244))['to'](this,_0x526b84(0x234),_0x50a652=>!_0x50a652),this[_0x526b84(0x252)][_0x526b84(0x24b)](_0x526b84(0x255))['to'](this,_0x526b84(0x1f7),_0x35c544=>_0x4b8cb1(this[_0x526b84(0x246)],_0x35c544?_0x526b84(0x211):_0x526b84(0x217))),this[_0x526b84(0x248)]({'tag':_0x526b84(0x215),'attributes':{'class':[No]},'children':[this[_0x526b84(0x227)],this[_0x526b84(0x228)],this[_0x526b84(0x221)],this[_0x526b84(0x252)],this[_0x526b84(0x24d)]]}),this[_0x526b84(0x22e)]=new _0x1afed0(),_0x4c904c(this[_0x526b84(0x227)],this[_0x526b84(0x22e)]);}[_0x568fbf(0x214)](_0x11c9b1,_0xdb27a){const _0x3afce0=_0x568fbf;if(this[_0x3afce0(0x235)](_0x3afce0(0x234),!(_0xdb27a&&_0x11c9b1[_0x3afce0(0x220)]<=0x1)),this[_0x3afce0(0x22e)][_0x3afce0(0x21f)](),_0x11c9b1?.[_0x3afce0(0x220)])for(const _0x290603 of _0x11c9b1){const _0x1b8cd9=new _0xd809ca({'label':_0x290603[_0x3afce0(0x254)],'withText':!0x0,'role':_0x3afce0(0x207),'id':_0x290603['id'],'model':_0x290603});_0x1b8cd9[_0x3afce0(0x24b)](_0x3afce0(0x233))['to'](this,_0x3afce0(0x21d),_0x1098ac=>_0x1098ac===_0x290603['id']),this[_0x3afce0(0x22e)][_0x3afce0(0x200)]({'type':_0x3afce0(0x21c),'model':_0x1b8cd9,'labelView':new Ts(this[_0x3afce0(0x246)],_0x290603)});}}[_0x568fbf(0x256)](_0x18e874){const _0xe00a07=_0x568fbf;this[_0xe00a07(0x235)](_0xe00a07(0x247),_0x18e874);}[_0x568fbf(0x224)](_0x24c477){const _0x39b7c5=_0x568fbf;this[_0x39b7c5(0x235)](_0x39b7c5(0x1f7),_0x24c477);}[_0x568fbf(0x203)](_0x4ed216){const _0x5ca631=_0x568fbf;if(!_0x4ed216)return;this[_0x5ca631(0x21d)]=_0x4ed216['id'],this[_0x5ca631(0x240)]=_0x4ed216[_0x5ca631(0x254)]||_0x4ed216['id'],this[_0x5ca631(0x227)][_0x5ca631(0x23c)][_0x5ca631(0x235)](_0x5ca631(0x22b),_0x4ed216[_0x5ca631(0x254)]),this[_0x5ca631(0x227)][_0x5ca631(0x23c)][_0x5ca631(0x235)](_0x5ca631(0x255),_0x4ed216[_0x5ca631(0x254)]);const _0x57b779=_0x4ed216[_0x5ca631(0x243)][_0x5ca631(0x213)]?.[_0x5ca631(0x1fe)]??!0x1;this[_0x5ca631(0x235)](_0x5ca631(0x247),!0x1),this[_0x5ca631(0x221)][_0x5ca631(0x235)](_0x5ca631(0x233),!0x1),this[_0x5ca631(0x221)][_0x5ca631(0x235)](_0x5ca631(0x21e),_0x57b779),this[_0x5ca631(0x221)][_0x5ca631(0x235)](_0x5ca631(0x20f),_0x57b779);const _0x4307e2=_0x4ed216[_0x5ca631(0x243)][_0x5ca631(0x251)]?.[_0x5ca631(0x1fe)]??!0x1;this[_0x5ca631(0x235)](_0x5ca631(0x1f7),!0x1),this[_0x5ca631(0x252)][_0x5ca631(0x235)](_0x5ca631(0x233),!0x1),this[_0x5ca631(0x252)][_0x5ca631(0x235)](_0x5ca631(0x21e),_0x4307e2),this[_0x5ca631(0x252)][_0x5ca631(0x235)](_0x5ca631(0x20f),_0x4307e2);}[_0x568fbf(0x238)](){const _0x2e503f=_0x568fbf;this[_0x2e503f(0x235)](_0x2e503f(0x1fd),!0x0),this[_0x2e503f(0x235)](_0x2e503f(0x234),!0x0);}[_0x568fbf(0x1f9)](_0x5c8d22){const _0x114484=_0x568fbf;this[_0x114484(0x235)](_0x114484(0x1fd),!0x1),_0x5c8d22&&this[_0x114484(0x235)](_0x114484(0x234),!0x1);}[_0x568fbf(0x24f)](){const _0x1610c3=_0x568fbf,_0x3b2998=new _0x947e8a();return _0x3b2998[_0x1610c3(0x235)]({'label':_0x4b8cb1(this[_0x1610c3(0x246)],_0x1610c3(0x232)),'icon':_0x5cad2a,'class':vo,'isToggleable':!0x0,'tooltipPosition':Wo}),_0x3b2998['on'](_0x1610c3(0x231),()=>{const _0x496532=_0x1610c3;this[_0x496532(0x24a)](_0x496532(0x1f4));}),_0x3b2998;}[_0x568fbf(0x239)](){const _0x47fe12=_0x568fbf,_0x54c37c=new _0x947e8a();return _0x54c37c[_0x47fe12(0x235)]({'label':_0x4b8cb1(this[_0x47fe12(0x246)],_0x47fe12(0x257)),'icon':_0x408f87,'class':vo,'isToggleable':!0x0,'tooltipPosition':Wo}),_0x54c37c['on'](_0x47fe12(0x231),()=>{const _0x87f9d0=_0x47fe12;this[_0x87f9d0(0x24a)](_0x87f9d0(0x1ff));}),_0x54c37c;}[_0x568fbf(0x236)](){const _0x3fa89a=_0x568fbf,_0x4264fd=new _0x947e8a();return _0x4264fd[_0x3fa89a(0x235)]({'label':_0x4b8cb1(this[_0x3fa89a(0x246)],_0x3fa89a(0x222)),'icon':_0x2cc2fe,'withText':!0x0,'class':vo,'isToggleable':!0x0,'tooltip':_0x4b8cb1(this[_0x3fa89a(0x246)],_0x3fa89a(0x222)),'tooltipPosition':Wo}),_0x4264fd[_0x3fa89a(0x22f)]({'attributes':{'class':[Ho]}}),_0x4264fd['on'](_0x3fa89a(0x231),()=>{const _0x44c64a=_0x3fa89a;console[_0x44c64a(0x212)](_0x44c64a(0x205)),alert(_0x44c64a(0x205));}),_0x4264fd;}[_0x568fbf(0x1fb)](){const _0x4714f4=_0x568fbf,_0x8a13e7=_0xc7f222(this[_0x4714f4(0x246)]);return _0x8a13e7[_0x4714f4(0x235)]({'panelPosition':'ne','class':[Mo]}),_0x8a13e7[_0x4714f4(0x23c)][_0x4714f4(0x235)]({'label':_0x4b8cb1(this[_0x4714f4(0x246)],_0x4714f4(0x22a)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':Wo}),this[_0x4714f4(0x258)](_0x8a13e7,_0x4714f4(0x231),_0x590bc6=>{const _0x536f73=_0x4714f4;this[_0x536f73(0x24a)](_0x536f73(0x204),_0x590bc6[_0x536f73(0x223)][_0x536f73(0x209)]);}),_0x8a13e7;}[_0x568fbf(0x241)](){const _0x359209=_0x568fbf,_0x378b9f=new yo(this[_0x359209(0x246)]);return _0x378b9f[_0x359209(0x24b)](_0x359209(0x253))['to'](this,_0x359209(0x240),_0x168211=>_0x168211??''),_0x378b9f[_0x359209(0x24b)](_0x359209(0x20f))['to'](this,_0x359209(0x234),this,_0x359209(0x240),(_0x3aedd6,_0x5e7a7d)=>!_0x3aedd6&&!_0x5e7a7d?.[_0x359209(0x230)]()[_0x359209(0x218)](_0x359209(0x242))),_0x378b9f;}}function _0x4466(){const _0x4d16b3=['isOn','modelSelectorVisible','set','_createCommandsButton','35ljXzAH','enableModelSelector','_createReasoningButton','6350TAVzxz','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','buttonView','AI_CHAT_CAPABILITIES_YES','AI_CHAT_DISABLE_WEB_SEARCH','8523dDEFxi','activeModelName','_createModelNameView','agent','capabilities','withText','20BQfgdt','locale','webSearchActive','setTemplate','ck-button__label','fire','bind','span','_commandsButton','30LsCJzy','_createWebSearchButton','4573840UfiJbh','reasoning','_reasoningButton','text','name','tooltip','setWebSearch','AI_CHAT_REASONING','listenTo','toggleWebSearch','_getCapabilityParts','60qrmsNG','reasoningActive','ck-ai-chat-controls-button--commands','disableModelSelector','ck-ai-chat__prompt-capabilities','_createModelSelectionDropdown','style','modelSelectorEnabled','enabled','toggleReasoning','add','471543qoaWHV','description','setModel','selectModel','Commands\x20are\x20not\x20implemented\x20yet.','787534vHiHOk','menuitemradio','addMany','model','ck-ai-chat-controls__model-selection__item-name','AI_CHAT_CAPABILITIES_NO','content','bindTemplate','ck-ai-chat-controls__model-selection__item-description','isVisible','ck-ai-chat-controls-button','AI_CHAT_DISABLE_REASONING','log','webSearch','setModelList','div','2218SRBUHH','AI_CHAT_ENABLE_REASONING','startsWith','ck-ai-chat-controls__model-name','741835qmDsRw','createCollection','button','activeModelId','isEnabled','clear','length','_webSearchButton','AI_CHAT_COMMANDS','source','setReasoning','1553598soMutr','ck-ai-chat-controls__model-selection__item-capabilities','_modelSelectionDropdown','_modelNameView','ck-hidden','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','label','AI_CHAT_ENABLE_WEB_SEARCH','ck-ai-chat-controls__model-selection','_modelSelectionDropdownItems','extendTemplate','toLowerCase','execute','AI_CHAT_SEARCH_WEB'];_0x4466=function(){return _0x4d16b3;};return _0x4466();}class Ts extends _0x2429f2{constructor(_0x16b380,_0x3affb8){const _0x394804=_0x568fbf;super();const _0x2f67da=this[_0x394804(0x20d)],_0x586f8e=this[_0x394804(0x21b)]();this[_0x394804(0x248)]({'tag':_0x394804(0x215),'attributes':{'class':['ck',_0x394804(0x249)],'style':_0x2f67da['to'](_0x394804(0x1fc)),'id':_0x2f67da['to']('id')},'children':[{'tag':_0x394804(0x215),'attributes':{'class':[Lo]},'children':[{'text':_0x2f67da['to'](_0x394804(0x253))}]},{'tag':_0x394804(0x215),'attributes':{'class':[Ro]},'children':[{'tag':_0x394804(0x24c),'children':[{'text':_0x3affb8[_0x394804(0x202)]}]}]},{'tag':_0x394804(0x215),'attributes':{'class':[Do]},'children':_0x586f8e}]}),_0x586f8e[_0x394804(0x208)](this[_0x394804(0x1f5)](_0x16b380,_0x5cad2a,_0x394804(0x232),_0x3affb8[_0x394804(0x243)][_0x394804(0x213)]?.[_0x394804(0x1fe)]??!0x1)),_0x586f8e[_0x394804(0x208)](this[_0x394804(0x1f5)](_0x16b380,_0x408f87,_0x394804(0x257),_0x3affb8[_0x394804(0x243)][_0x394804(0x251)]?.[_0x394804(0x1fe)]??!0x1));}[_0x568fbf(0x1f5)](_0x47280b,_0x47d6a7,_0x2d6587,_0x2951f0){const _0x2f4988=_0x568fbf,_0x41e126=new _0xf93f4f();_0x41e126[_0x2f4988(0x20c)]=_0x47d6a7;const _0x1a0390=new _0x1033b4(_0x47280b);_0x1a0390[_0x2f4988(0x248)]({'tag':_0x2f4988(0x24c),'children':[{'text':_0x4b8cb1(_0x47280b,_0x2d6587)+':\x20'}]});const _0x442635=new _0x1033b4(_0x47280b);return _0x442635[_0x2f4988(0x248)]({'tag':_0x2f4988(0x24c),'children':[{'text':_0x4b8cb1(_0x47280b,_0x2951f0?_0x2f4988(0x23d):_0x2f4988(0x20b))}]}),[_0x41e126,_0x1a0390,_0x442635];}}class yo extends _0x1033b4{constructor(_0x5e0036){const _0x4bbd6e=_0x568fbf;super(_0x5e0036),this[_0x4bbd6e(0x235)](_0x4bbd6e(0x253),void 0x0),this[_0x4bbd6e(0x235)](_0x4bbd6e(0x20f),!0x0);const _0x25608f=this[_0x4bbd6e(0x20d)];this[_0x4bbd6e(0x248)]({'tag':_0x4bbd6e(0x24c),'attributes':{'class':['ck',_0x4bbd6e(0x219),_0x25608f['if'](_0x4bbd6e(0x20f),_0x4bbd6e(0x229),_0x708eaa=>!_0x708eaa)]},'children':[{'text':_0x25608f['to'](_0x4bbd6e(0x253))}]});}}
23
+ const _0x1fe7e6=_0x1b02;(function(_0x25fa7d,_0x297d6c){const _0x1df810=_0x1b02,_0x19eff4=_0x25fa7d();while(!![]){try{const _0xc9c0aa=-parseInt(_0x1df810(0x82))/0x1*(parseInt(_0x1df810(0xb8))/0x2)+parseInt(_0x1df810(0x7d))/0x3+-parseInt(_0x1df810(0x83))/0x4*(-parseInt(_0x1df810(0xd0))/0x5)+parseInt(_0x1df810(0x81))/0x6+-parseInt(_0x1df810(0x9a))/0x7+-parseInt(_0x1df810(0xbc))/0x8+parseInt(_0x1df810(0xd7))/0x9*(parseInt(_0x1df810(0xa3))/0xa);if(_0xc9c0aa===_0x297d6c)break;else _0x19eff4['push'](_0x19eff4['shift']());}catch(_0x34063c){_0x19eff4['push'](_0x19eff4['shift']());}}}(_0xa7b1,0x34521));import{Collection as _0x39200a}from'ckeditor5/src/utils.js';function _0x1b02(_0x55d376,_0x3eb874){const _0xa7b1e9=_0xa7b1();return _0x1b02=function(_0x1b02b6,_0x176528){_0x1b02b6=_0x1b02b6-0x7d;let _0xc8095=_0xa7b1e9[_0x1b02b6];return _0xc8095;},_0x1b02(_0x55d376,_0x3eb874);}import{IconAI as _0x414731,IconBulb as _0x377355,IconWeb as _0x10403c}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x3828b8,ButtonLabelView as _0x2346e7,ButtonView as _0x545412,createDropdown as _0x49dc79,IconView as _0x2c5a69,UIModel as _0x5dbdd5,View as _0xc952b3}from'ckeditor5/src/ui.js';import{getTranslation as _0x43bdd8}from'../../../aicore/utils/common-translations.js';const Oo=_0x1fe7e6(0xcb),uo=_0x1fe7e6(0xa4),No=_0x1fe7e6(0xc4),Ho=_0x1fe7e6(0x7f),Mo=_0x1fe7e6(0xd2),Do=_0x1fe7e6(0x95),Wo=_0x1fe7e6(0xc0),yo='n';export class AIChatPromptCapabilitiesView extends _0xc952b3{[_0x1fe7e6(0xae)];[_0x1fe7e6(0x9b)];[_0x1fe7e6(0xc6)];[_0x1fe7e6(0x90)];[_0x1fe7e6(0xa8)];[_0x1fe7e6(0xb9)];constructor(_0x394ed3){const _0x8e9002=_0x1fe7e6;super(_0x394ed3),this[_0x8e9002(0x9d)](_0x8e9002(0xb0),!0x1),this[_0x8e9002(0x9d)](_0x8e9002(0x93),!0x1),this[_0x8e9002(0x9d)](_0x8e9002(0xcc),!0x0),this[_0x8e9002(0x9d)](_0x8e9002(0xa2),!0x0),this[_0x8e9002(0x9d)](_0x8e9002(0xb5),''),this[_0x8e9002(0x9d)](_0x8e9002(0x9c),''),this[_0x8e9002(0x90)]=this[_0x8e9002(0xc8)](),this[_0x8e9002(0xb9)]=this[_0x8e9002(0x89)](),this[_0x8e9002(0xae)]=this[_0x8e9002(0xac)](),this[_0x8e9002(0x9b)]=this[_0x8e9002(0xdb)](),this[_0x8e9002(0xc6)]=this[_0x8e9002(0x9f)](),this[_0x8e9002(0x90)][_0x8e9002(0xdf)][_0x8e9002(0xb6)](_0x8e9002(0xb4))['to'](this,_0x8e9002(0xcc),_0x47724e=>_0x47724e),this[_0x8e9002(0x90)][_0x8e9002(0xdf)][_0x8e9002(0xb6)](_0x8e9002(0xc3))['to'](this,_0x8e9002(0xa2),_0x156e45=>_0x156e45?this[_0x8e9002(0x90)][_0x8e9002(0xdf)][_0x8e9002(0x97)]:_0x43bdd8(this[_0x8e9002(0xaa)],_0x8e9002(0x87))),this[_0x8e9002(0x90)][_0x8e9002(0xb6)](_0x8e9002(0xc1))['to'](this,_0x8e9002(0xa2),_0x50d562=>_0x50d562),this[_0x8e9002(0xae)][_0x8e9002(0xb6)](_0x8e9002(0xa7))['to'](this,_0x8e9002(0xb0),_0x3efccf=>_0x3efccf),this[_0x8e9002(0xae)][_0x8e9002(0xb6)](_0x8e9002(0xc7))['to'](this,_0x8e9002(0xcc),_0x6e91d8=>!_0x6e91d8),this[_0x8e9002(0xae)][_0x8e9002(0xb6)](_0x8e9002(0xc3))['to'](this,_0x8e9002(0xb0),_0x3a31d4=>_0x43bdd8(this[_0x8e9002(0xaa)],_0x3a31d4?_0x8e9002(0x8e):_0x8e9002(0xc5))),this[_0x8e9002(0x9b)][_0x8e9002(0xb6)](_0x8e9002(0xa7))['to'](this,_0x8e9002(0x93),_0x563e5f=>_0x563e5f),this[_0x8e9002(0x9b)][_0x8e9002(0xb6)](_0x8e9002(0xc7))['to'](this,_0x8e9002(0xcc),_0x487512=>!_0x487512),this[_0x8e9002(0x9b)][_0x8e9002(0xb6)](_0x8e9002(0xc3))['to'](this,_0x8e9002(0x93),_0x40948f=>_0x43bdd8(this[_0x8e9002(0xaa)],_0x40948f?_0x8e9002(0xab):_0x8e9002(0x84))),this[_0x8e9002(0xde)]({'tag':_0x8e9002(0x86),'attributes':{'class':[Oo]},'children':[this[_0x8e9002(0x90)],this[_0x8e9002(0xb9)],this[_0x8e9002(0xae)],this[_0x8e9002(0x9b)],this[_0x8e9002(0xc6)]]}),this[_0x8e9002(0xa8)]=new _0x39200a(),_0x3828b8(this[_0x8e9002(0x90)],this[_0x8e9002(0xa8)]);}[_0x1fe7e6(0x85)](_0x204187,_0x21cb47){const _0x402820=_0x1fe7e6;if(this[_0x402820(0x9d)](_0x402820(0xcc),!(_0x21cb47&&_0x204187[_0x402820(0x94)]<=0x1)),this[_0x402820(0xa8)][_0x402820(0xb3)](),_0x204187?.[_0x402820(0x94)])for(const _0x3cee85 of _0x204187){const _0x496a51=new _0x5dbdd5({'label':_0x3cee85[_0x402820(0x8b)],'withText':!0x0,'role':_0x402820(0xc2),'id':_0x3cee85['id'],'model':_0x3cee85});_0x496a51[_0x402820(0xb6)](_0x402820(0xa7))['to'](this,_0x402820(0xb5),_0x594423=>_0x594423===_0x3cee85['id']),this[_0x402820(0xa8)][_0x402820(0xd9)]({'type':_0x402820(0xda),'model':_0x496a51,'labelView':new Bs(this[_0x402820(0xaa)],_0x3cee85)});}}[_0x1fe7e6(0xa1)](_0xdb2ff1){const _0x2c2870=_0x1fe7e6;this[_0x2c2870(0x9d)](_0x2c2870(0xb0),_0xdb2ff1);}[_0x1fe7e6(0xcf)](_0x3d821b){const _0x1e2140=_0x1fe7e6;this[_0x1e2140(0x9d)](_0x1e2140(0x93),_0x3d821b);}[_0x1fe7e6(0x9e)](_0x36b4bf){const _0x30e938=_0x1fe7e6;if(!_0x36b4bf)return;this[_0x30e938(0xb5)]=_0x36b4bf['id'],this[_0x30e938(0x9c)]=_0x36b4bf[_0x30e938(0x8b)]||_0x36b4bf['id'],this[_0x30e938(0x90)][_0x30e938(0xdf)][_0x30e938(0x9d)](_0x30e938(0x97),_0x36b4bf[_0x30e938(0x8b)]),this[_0x30e938(0x90)][_0x30e938(0xdf)][_0x30e938(0x9d)](_0x30e938(0xc3),_0x36b4bf[_0x30e938(0x8b)]);const _0x41b165=_0x36b4bf[_0x30e938(0xad)][_0x30e938(0xd5)]?.[_0x30e938(0x91)]??!0x1;this[_0x30e938(0x9d)](_0x30e938(0xb0),!0x1),this[_0x30e938(0xae)][_0x30e938(0x9d)](_0x30e938(0xa7),!0x1),this[_0x30e938(0xae)][_0x30e938(0x9d)](_0x30e938(0xc1),_0x41b165),this[_0x30e938(0xae)][_0x30e938(0x9d)](_0x30e938(0xb4),_0x41b165);const _0x276daf=_0x36b4bf[_0x30e938(0xad)][_0x30e938(0x8a)]?.[_0x30e938(0x91)]??!0x1;this[_0x30e938(0x9d)](_0x30e938(0x93),!0x1),this[_0x30e938(0x9b)][_0x30e938(0x9d)](_0x30e938(0xa7),!0x1),this[_0x30e938(0x9b)][_0x30e938(0x9d)](_0x30e938(0xc1),_0x276daf),this[_0x30e938(0x9b)][_0x30e938(0x9d)](_0x30e938(0xb4),_0x276daf);}[_0x1fe7e6(0xd1)](){const _0x5d3b6d=_0x1fe7e6;this[_0x5d3b6d(0x9d)](_0x5d3b6d(0xa2),!0x0),this[_0x5d3b6d(0x9d)](_0x5d3b6d(0xcc),!0x0);}[_0x1fe7e6(0xdd)](_0x58f6ae){const _0x534eaf=_0x1fe7e6;this[_0x534eaf(0x9d)](_0x534eaf(0xa2),!0x1),_0x58f6ae&&this[_0x534eaf(0x9d)](_0x534eaf(0xcc),!0x1);}[_0x1fe7e6(0xac)](){const _0x45ba1e=_0x1fe7e6,_0x70f5d7=new _0x545412();return _0x70f5d7[_0x45ba1e(0x9d)]({'label':_0x43bdd8(this[_0x45ba1e(0xaa)],_0x45ba1e(0x8c)),'icon':_0x10403c,'class':uo,'isToggleable':!0x0,'tooltipPosition':yo}),_0x70f5d7['on'](_0x45ba1e(0xd6),()=>{const _0x26bfb3=_0x45ba1e;this[_0x26bfb3(0xce)](_0x26bfb3(0x8f));}),_0x70f5d7;}[_0x1fe7e6(0xdb)](){const _0x2f3168=_0x1fe7e6,_0x49a830=new _0x545412();return _0x49a830[_0x2f3168(0x9d)]({'label':_0x43bdd8(this[_0x2f3168(0xaa)],_0x2f3168(0xb2)),'icon':_0x377355,'class':uo,'isToggleable':!0x0,'tooltipPosition':yo}),_0x49a830['on'](_0x2f3168(0xd6),()=>{const _0x5882b4=_0x2f3168;this[_0x5882b4(0xce)](_0x5882b4(0xd4));}),_0x49a830;}[_0x1fe7e6(0x9f)](){const _0x1ebb17=_0x1fe7e6,_0x5f48cb=new _0x545412();return _0x5f48cb[_0x1ebb17(0x9d)]({'label':_0x43bdd8(this[_0x1ebb17(0xaa)],_0x1ebb17(0x99)),'icon':_0x414731,'withText':!0x0,'class':uo,'isToggleable':!0x0,'tooltip':_0x43bdd8(this[_0x1ebb17(0xaa)],_0x1ebb17(0x99)),'tooltipPosition':yo}),_0x5f48cb[_0x1ebb17(0xdc)]({'attributes':{'class':[No]}}),_0x5f48cb['on'](_0x1ebb17(0xd6),()=>{const _0x3c6650=_0x1ebb17;console[_0x3c6650(0xbf)](_0x3c6650(0xa0)),alert(_0x3c6650(0xa0));}),_0x5f48cb;}[_0x1fe7e6(0xc8)](){const _0x3d6dba=_0x1fe7e6,_0xf81452=_0x49dc79(this[_0x3d6dba(0xaa)]);return _0xf81452[_0x3d6dba(0x9d)]({'panelPosition':'ne','class':[Ho]}),_0xf81452[_0x3d6dba(0xdf)][_0x3d6dba(0x9d)]({'label':_0x43bdd8(this[_0x3d6dba(0xaa)],_0x3d6dba(0xc9)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':yo}),this[_0x3d6dba(0xbe)](_0xf81452,_0x3d6dba(0xd6),_0x5bd199=>{const _0x462369=_0x3d6dba;this[_0x462369(0xce)](_0x462369(0xbb),_0x5bd199[_0x462369(0xaf)][_0x462369(0xb1)]);}),_0xf81452;}[_0x1fe7e6(0x89)](){const _0x2ecb87=_0x1fe7e6,_0x10be36=new Go(this[_0x2ecb87(0xaa)]);return _0x10be36[_0x2ecb87(0xb6)](_0x2ecb87(0xbd))['to'](this,_0x2ecb87(0x9c),_0x4fb0d0=>_0x4fb0d0??''),_0x10be36[_0x2ecb87(0xb6)](_0x2ecb87(0xb4))['to'](this,_0x2ecb87(0xcc),this,_0x2ecb87(0x9c),(_0x1a2d53,_0x22727b)=>!_0x1a2d53&&!_0x22727b?.[_0x2ecb87(0x7e)]()[_0x2ecb87(0xcd)](_0x2ecb87(0x98))),_0x10be36;}}class Bs extends _0x2346e7{constructor(_0x301d97,_0x450aec){const _0x378839=_0x1fe7e6;super();const _0x54ffbc=this[_0x378839(0xca)],_0x15f396=this[_0x378839(0xd8)]();this[_0x378839(0xde)]({'tag':_0x378839(0x86),'attributes':{'class':['ck',_0x378839(0x80)],'style':_0x54ffbc['to'](_0x378839(0xba)),'id':_0x54ffbc['to']('id')},'children':[{'tag':_0x378839(0x86),'attributes':{'class':[Mo]},'children':[{'text':_0x54ffbc['to'](_0x378839(0xbd))}]},{'tag':_0x378839(0x86),'attributes':{'class':[Do]},'children':[{'tag':_0x378839(0x96),'children':[{'text':_0x450aec[_0x378839(0xa9)]}]}]},{'tag':_0x378839(0x86),'attributes':{'class':[Wo]},'children':_0x15f396}]}),_0x15f396[_0x378839(0xa5)](this[_0x378839(0x8d)](_0x301d97,_0x10403c,_0x378839(0x8c),_0x450aec[_0x378839(0xad)][_0x378839(0xd5)]?.[_0x378839(0x91)]??!0x1)),_0x15f396[_0x378839(0xa5)](this[_0x378839(0x8d)](_0x301d97,_0x377355,_0x378839(0xb2),_0x450aec[_0x378839(0xad)][_0x378839(0x8a)]?.[_0x378839(0x91)]??!0x1));}[_0x1fe7e6(0x8d)](_0x5aa2bb,_0x2c87b8,_0x490d09,_0x372f12){const _0x26607f=_0x1fe7e6,_0x427bd8=new _0x2c5a69();_0x427bd8[_0x26607f(0x88)]=_0x2c87b8;const _0x179372=new _0xc952b3(_0x5aa2bb);_0x179372[_0x26607f(0xde)]({'tag':_0x26607f(0x96),'children':[{'text':_0x43bdd8(_0x5aa2bb,_0x490d09)+':\x20'}]});const _0x56f622=new _0xc952b3(_0x5aa2bb);return _0x56f622[_0x26607f(0xde)]({'tag':_0x26607f(0x96),'children':[{'text':_0x43bdd8(_0x5aa2bb,_0x372f12?_0x26607f(0xb7):_0x26607f(0xa6))}]}),[_0x427bd8,_0x179372,_0x56f622];}}class Go extends _0xc952b3{constructor(_0x14454d){const _0x13d847=_0x1fe7e6;super(_0x14454d),this[_0x13d847(0x9d)](_0x13d847(0xbd),void 0x0),this[_0x13d847(0x9d)](_0x13d847(0xb4),!0x0);const _0xb70222=this[_0x13d847(0xca)];this[_0x13d847(0xde)]({'tag':_0x13d847(0x96),'attributes':{'class':['ck',_0x13d847(0xd3),_0xb70222['if'](_0x13d847(0xb4),_0x13d847(0x92),_0x1b27f8=>!_0x1b27f8)]},'children':[{'text':_0xb70222['to'](_0x13d847(0xbd))}]});}}function _0xa7b1(){const _0x42b66c=['18BXdGQT','createCollection','add','button','_createReasoningButton','extendTemplate','disableModelSelector','setTemplate','buttonView','661938ccdBhj','toLowerCase','ck-ai-chat-controls__model-selection','ck-button__label','703626OQXvkt','69NqyAvJ','4wwiDWN','AI_CHAT_ENABLE_REASONING','setModelList','div','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','content','_createModelNameView','reasoning','name','AI_CHAT_SEARCH_WEB','_getCapabilityParts','AI_CHAT_DISABLE_WEB_SEARCH','toggleWebSearch','_modelSelectionDropdown','enabled','ck-hidden','reasoningActive','length','ck-ai-chat-controls__model-selection__item-description','span','label','agent','AI_CHAT_COMMANDS','2466366bintkN','_reasoningButton','activeModelName','set','setModel','_createCommandsButton','Commands\x20are\x20not\x20implemented\x20yet.','setWebSearch','modelSelectorEnabled','3455770OVVyPj','ck-ai-chat-controls-button','addMany','AI_CHAT_CAPABILITIES_NO','isOn','_modelSelectionDropdownItems','description','locale','AI_CHAT_DISABLE_REASONING','_createWebSearchButton','capabilities','_webSearchButton','source','webSearchActive','model','AI_CHAT_REASONING','clear','isVisible','activeModelId','bind','AI_CHAT_CAPABILITIES_YES','12386EyNRIf','_modelNameView','style','selectModel','2496064SmlgXQ','text','listenTo','log','ck-ai-chat-controls__model-selection__item-capabilities','isEnabled','menuitemradio','tooltip','ck-ai-chat-controls-button--commands','AI_CHAT_ENABLE_WEB_SEARCH','_commandsButton','withText','_createModelSelectionDropdown','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','bindTemplate','ck-ai-chat__prompt-capabilities','modelSelectorVisible','startsWith','fire','setReasoning','1384485uAlmdy','enableModelSelector','ck-ai-chat-controls__model-selection__item-name','ck-ai-chat-controls__model-name','toggleReasoning','webSearch','execute'];_0xa7b1=function(){return _0x42b66c;};return _0xa7b1();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4b0ff3=_0x5cca;(function(_0x530cfb,_0x562ef9){const _0x32ca8f=_0x5cca,_0x68b726=_0x530cfb();while(!![]){try{const _0x17b54a=-parseInt(_0x32ca8f(0x212))/0x1*(parseInt(_0x32ca8f(0x224))/0x2)+parseInt(_0x32ca8f(0x225))/0x3*(-parseInt(_0x32ca8f(0x20a))/0x4)+-parseInt(_0x32ca8f(0x1f7))/0x5+-parseInt(_0x32ca8f(0x20f))/0x6*(-parseInt(_0x32ca8f(0x1f4))/0x7)+-parseInt(_0x32ca8f(0x22e))/0x8+parseInt(_0x32ca8f(0x1fe))/0x9+parseInt(_0x32ca8f(0x20d))/0xa;if(_0x17b54a===_0x562ef9)break;else _0x68b726['push'](_0x68b726['shift']());}catch(_0x361884){_0x68b726['push'](_0x68b726['shift']());}}}(_0x23d9,0xb6bee));import{IconSubmit as _0x2c17cd}from'ckeditor5/src/icons.js';import{ButtonView as _0x5d2e73,AutocompleteView as _0x2f237d,createLabeledTextarea as _0x3896db}from'ckeditor5/src/ui.js';function _0x5cca(_0x3a333b,_0x55796a){const _0x23d9f7=_0x23d9();return _0x5cca=function(_0x5cca5f,_0x479bf3){_0x5cca5f=_0x5cca5f-0x1f4;let _0x5c5db4=_0x23d9f7[_0x5cca5f];return _0x5c5db4;},_0x5cca(_0x3a333b,_0x55796a);}import{global as _0x2c5e28,isVisible as _0x19dbe4,Rect as _0x536464,ResizeObserver as _0x45c33c}from'ckeditor5/src/utils.js';import{getTranslation as _0x38758a}from'../../../aicore/utils/common-translations.js';import{AIChatPromptSuggestionsListView as _0x5ba0ab}from'./aichatpromptsuggestionslistview.js';import{escape as _0x322687}from'es-toolkit/compat';export class AIChatPromptInputView extends _0x2f237d{[_0x4b0ff3(0x1f5)];static [_0x4b0ff3(0x214)]=0x1;static [_0x4b0ff3(0x216)]=0xc;[_0x4b0ff3(0x206)];[_0x4b0ff3(0x1f6)];constructor(_0x21b4ce,_0x42349f){const _0x1875d4=_0x4b0ff3;super(_0x21b4ce,{'queryView':{'label':'','creator':_0x3896db,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x5ba0ab(_0x21b4ce),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x1875d4(0x21c)](_0x1875d4(0x203),!0x0),this[_0x1875d4(0x21c)](_0x1875d4(0x221),!0x1),this[_0x1875d4(0x206)]=_0x42349f,this[_0x1875d4(0x1f6)]=null,this[_0x1875d4(0x201)][_0x1875d4(0x222)][_0x1875d4(0x204)]=AIChatPromptInputView[_0x1875d4(0x214)],this[_0x1875d4(0x201)][_0x1875d4(0x222)][_0x1875d4(0x22f)]=AIChatPromptInputView[_0x1875d4(0x216)],this[_0x1875d4(0x201)][_0x1875d4(0x233)][_0x1875d4(0x217)](this[_0x1875d4(0x206)]),this[_0x1875d4(0x227)](),this[_0x1875d4(0x232)]({'attributes':{'class':['ck',_0x1875d4(0x205)]}}),this[_0x1875d4(0x1f5)]=this[_0x1875d4(0x210)](),this[_0x1875d4(0x1f5)][_0x1875d4(0x208)](_0x1875d4(0x229))['to'](this,_0x1875d4(0x203),this,_0x1875d4(0x221),(_0x551e95,_0x513c90)=>!_0x551e95&&!_0x513c90),this[_0x1875d4(0x223)][_0x1875d4(0x217)](this[_0x1875d4(0x1f5)]);}[_0x4b0ff3(0x1fb)](){const _0x15c1f7=_0x4b0ff3;super[_0x15c1f7(0x1fb)](),this[_0x15c1f7(0x201)][_0x15c1f7(0x233)][_0x15c1f7(0x217)](this[_0x15c1f7(0x1f5)]),this[_0x15c1f7(0x211)][_0x15c1f7(0x21c)](_0x15c1f7(0x219),(_0x28afdb,_0x176ebf)=>{const _0xf7dd15=_0x15c1f7;this[_0xf7dd15(0x221)]||this[_0xf7dd15(0x203)]||_0x28afdb[_0xf7dd15(0x231)]==this[_0xf7dd15(0x201)][_0xf7dd15(0x222)][_0xf7dd15(0x220)]&&(this[_0xf7dd15(0x22a)](),_0x176ebf());}),this[_0x15c1f7(0x201)][_0x15c1f7(0x222)]['on'](_0x15c1f7(0x21d),()=>{const _0x586c6f=_0x15c1f7;this[_0x586c6f(0x203)]=''===this[_0x586c6f(0x201)][_0x586c6f(0x222)][_0x586c6f(0x220)][_0x586c6f(0x209)]?.[_0x586c6f(0x213)]();});}[_0x4b0ff3(0x230)](){const _0x3433df=_0x4b0ff3;super[_0x3433df(0x230)](),this[_0x3433df(0x1f6)]&&this[_0x3433df(0x1f6)][_0x3433df(0x230)]();}[_0x4b0ff3(0x22a)](){const _0x2ab4ed=_0x4b0ff3,_0x484b14=this[_0x2ab4ed(0x201)][_0x2ab4ed(0x222)][_0x2ab4ed(0x220)][_0x2ab4ed(0x209)]?.[_0x2ab4ed(0x213)]();if(!_0x484b14)return this[_0x2ab4ed(0x201)][_0x2ab4ed(0x22c)]=_0x38758a(this[_0x2ab4ed(0x215)],_0x2ab4ed(0x20b)),void(this[_0x2ab4ed(0x201)][_0x2ab4ed(0x222)][_0x2ab4ed(0x234)]=!0x0);this[_0x2ab4ed(0x201)][_0x2ab4ed(0x222)][_0x2ab4ed(0x234)]=!0x1;const _0x3e2173=_0x322687(_0x484b14);this[_0x2ab4ed(0x1fc)](_0x2ab4ed(0x21b),_0x3e2173),this[_0x2ab4ed(0x201)][_0x2ab4ed(0x222)][_0x2ab4ed(0x22b)]();}[_0x4b0ff3(0x1fa)](_0x53c1ac){const _0x216b41=_0x4b0ff3;this[_0x216b41(0x201)][_0x216b41(0x222)][_0x216b41(0x21c)](_0x216b41(0x202),_0x53c1ac);}[_0x4b0ff3(0x210)](){const _0x1d6cc3=_0x4b0ff3,_0x342e14=new _0x5d2e73(this[_0x1d6cc3(0x215)]);return _0x342e14[_0x1d6cc3(0x21c)]({'icon':_0x2c17cd,'label':_0x38758a(this[_0x1d6cc3(0x215)],_0x1d6cc3(0x21e)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x1d6cc3(0x22d),'isEnabled':!0x1}),_0x342e14['on'](_0x1d6cc3(0x20e),()=>{const _0x2d40ee=_0x1d6cc3;this[_0x2d40ee(0x22a)]();}),_0x342e14;}[_0x4b0ff3(0x207)](_0x1ca7d8){const _0x12048d=_0x4b0ff3;this[_0x12048d(0x221)]=_0x1ca7d8;}[_0x4b0ff3(0x227)](){const _0xbf62a3=_0x4b0ff3,_0x27ac75=this[_0xbf62a3(0x215)],_0x18028a=()=>{const _0x3233ed=_0xbf62a3;_0x2c5e28[_0x3233ed(0x1ff)][_0x3233ed(0x218)](()=>{const _0x4e5d93=_0x3233ed;if(_0x19dbe4(this[_0x4e5d93(0x220)])){const _0xa0444b=new _0x536464(this[_0x4e5d93(0x201)][_0x4e5d93(0x222)][_0x4e5d93(0x220)]),_0x124ef9=new _0x536464(this[_0x4e5d93(0x206)][_0x4e5d93(0x220)]),_0xd075c0=_0xa0444b[_0x4e5d93(0x20c)],_0x23c3e0=_0x4e5d93(0x1fd)===_0x27ac75[_0x4e5d93(0x1f8)]?_0x4e5d93(0x226):_0x4e5d93(0x200);_0xa0444b[_0x4e5d93(0x228)]();const _0x86d52e=_0xd075c0-_0xa0444b[_0x4e5d93(0x20c)]+0x1;this[_0x4e5d93(0x206)][_0x4e5d93(0x220)][_0x4e5d93(0x1f9)][_0x23c3e0]=_0x4e5d93(0x21f)+(_0xd075c0-_0x124ef9[_0x4e5d93(0x20c)]-_0x86d52e)+_0x4e5d93(0x21a);}});};this[_0xbf62a3(0x201)][_0xbf62a3(0x222)]['on'](_0xbf62a3(0x21d),_0x18028a),this['on'](_0xbf62a3(0x1fb),()=>{const _0x2e79e4=_0xbf62a3;_0x18028a(),this[_0x2e79e4(0x1f6)]=new _0x45c33c(this[_0x2e79e4(0x201)][_0x2e79e4(0x222)][_0x2e79e4(0x220)],()=>{_0x18028a();});});}}function _0x23d9(){const _0x236a10=['extendTemplate','fieldWrapperChildren','hasError','91YlEsJH','submitButtonView','_queryViewResizeObserver','6668310RPWRQp','uiLanguageDirection','style','setPlaceholderText','render','fire','rtl','9471807nScvHQ','window','left','queryView','placeholder','isEmpty','minRows','ck-ai-chat__prompt-input','_addContextButtonView','setIsUploadInProgress','bind','value','1243876fDtxOD','AI_CHAT_PROMPT_EMPTY_ERROR','width','21780770dJDiId','execute','666876WtPtVg','_createSubmitButton','keystrokes','2tykHaV','trim','MIN_ROWS','locale','MAX_ROWS','add','requestAnimationFrame','enter','px\x20-\x20var(--ck-spacing-tiny))','sendUserMessage','set','update','AI_CHAT_LABEL_SUBMIT','calc(','element','isUploadInProgress','fieldView','focusableChildren','432010paCqUO','9nMegkG','right','_setUpAddContextButtonPositioning','excludeScrollbarsAndBorders','isEnabled','submit','reset','errorText','ck-ai-chat__prompt-submit-button','9826344VvYnnG','maxRows','destroy','target'];_0x23d9=function(){return _0x236a10;};return _0x23d9();}
23
+ const _0x4083e0=_0x5fa0;function _0x5fa0(_0x9226de,_0x26ef9a){const _0x47f695=_0x47f6();return _0x5fa0=function(_0x5fa099,_0x430a76){_0x5fa099=_0x5fa099-0x150;let _0x85615f=_0x47f695[_0x5fa099];return _0x85615f;},_0x5fa0(_0x9226de,_0x26ef9a);}(function(_0x2c3968,_0x139307){const _0x471bbc=_0x5fa0,_0x9b8c36=_0x2c3968();while(!![]){try{const _0x522ff7=-parseInt(_0x471bbc(0x177))/0x1*(parseInt(_0x471bbc(0x181))/0x2)+-parseInt(_0x471bbc(0x17c))/0x3+parseInt(_0x471bbc(0x173))/0x4*(parseInt(_0x471bbc(0x18b))/0x5)+parseInt(_0x471bbc(0x18e))/0x6+parseInt(_0x471bbc(0x15a))/0x7+parseInt(_0x471bbc(0x157))/0x8+-parseInt(_0x471bbc(0x152))/0x9;if(_0x522ff7===_0x139307)break;else _0x9b8c36['push'](_0x9b8c36['shift']());}catch(_0x4d6f49){_0x9b8c36['push'](_0x9b8c36['shift']());}}}(_0x47f6,0x36b07));import{IconSubmit as _0x5e74ea}from'ckeditor5/src/icons.js';import{ButtonView as _0x3bb085,AutocompleteView as _0x551b17,createLabeledTextarea as _0x125650}from'ckeditor5/src/ui.js';import{global as _0x901d75,isVisible as _0xf95658,Rect as _0x4151a9,ResizeObserver as _0x46f2d8}from'ckeditor5/src/utils.js';function _0x47f6(){const _0x38ee09=['window','errorText','168952wALQtd','sendUserMessage','target','style','right','extendTemplate','_queryViewResizeObserver','maxRows','MAX_ROWS','submit','trim','value','_addContextButtonView','placeholder','requestAnimationFrame','add','fieldView','minRows','excludeScrollbarsAndBorders','width','fire','isUploadInProgress','calc(','AI_CHAT_LABEL_SUBMIT','locale','1228XjGxYJ','update','AI_CHAT_PROMPT_EMPTY_ERROR','px\x20-\x20var(--ck-spacing-tiny))','742srpEVM','isEmpty','setPlaceholderText','_setUpAddContextButtonPositioning','rtl','563802toksjc','MIN_ROWS','submitButtonView','set','isEnabled','1198WhpEAD','execute','ck-ai-chat__prompt-input','setIsUploadInProgress','enter','ck-ai-chat__prompt-submit-button','_createSubmitButton','focusableChildren','keystrokes','reset','2525DSBItU','fieldWrapperChildren','bind','2460360zBspzr','uiLanguageDirection','render','element','888993qfhcio','queryView','hasError','destroy','left','2927560BGFZEN'];_0x47f6=function(){return _0x38ee09;};return _0x47f6();}import{getTranslation as _0x6b5ec}from'../../../aicore/utils/common-translations.js';import{AIChatPromptSuggestionsListView as _0x47807a}from'./aichatpromptsuggestionslistview.js';import{escape as _0x234065}from'es-toolkit/compat';export class AIChatPromptInputView extends _0x551b17{[_0x4083e0(0x17e)];static [_0x4083e0(0x17d)]=0x1;static [_0x4083e0(0x162)]=0xc;[_0x4083e0(0x166)];[_0x4083e0(0x160)];constructor(_0x52b9b5,_0x4af6f4){const _0x46f6c1=_0x4083e0;super(_0x52b9b5,{'queryView':{'label':'','creator':_0x125650,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x47807a(_0x52b9b5),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x46f6c1(0x17f)](_0x46f6c1(0x178),!0x0),this[_0x46f6c1(0x17f)](_0x46f6c1(0x16f),!0x1),this[_0x46f6c1(0x166)]=_0x4af6f4,this[_0x46f6c1(0x160)]=null,this[_0x46f6c1(0x153)][_0x46f6c1(0x16a)][_0x46f6c1(0x16b)]=AIChatPromptInputView[_0x46f6c1(0x17d)],this[_0x46f6c1(0x153)][_0x46f6c1(0x16a)][_0x46f6c1(0x161)]=AIChatPromptInputView[_0x46f6c1(0x162)],this[_0x46f6c1(0x153)][_0x46f6c1(0x18c)][_0x46f6c1(0x169)](this[_0x46f6c1(0x166)]),this[_0x46f6c1(0x17a)](),this[_0x46f6c1(0x15f)]({'attributes':{'class':['ck',_0x46f6c1(0x183)]}}),this[_0x46f6c1(0x17e)]=this[_0x46f6c1(0x187)](),this[_0x46f6c1(0x17e)][_0x46f6c1(0x18d)](_0x46f6c1(0x180))['to'](this,_0x46f6c1(0x178),this,_0x46f6c1(0x16f),(_0x3b0a85,_0x28638d)=>!_0x3b0a85&&!_0x28638d),this[_0x46f6c1(0x188)][_0x46f6c1(0x169)](this[_0x46f6c1(0x17e)]);}[_0x4083e0(0x150)](){const _0x3f6d2b=_0x4083e0;super[_0x3f6d2b(0x150)](),this[_0x3f6d2b(0x153)][_0x3f6d2b(0x18c)][_0x3f6d2b(0x169)](this[_0x3f6d2b(0x17e)]),this[_0x3f6d2b(0x189)][_0x3f6d2b(0x17f)](_0x3f6d2b(0x185),(_0x1e9f16,_0x12a7f0)=>{const _0x51cb67=_0x3f6d2b;this[_0x51cb67(0x16f)]||this[_0x51cb67(0x178)]||_0x1e9f16[_0x51cb67(0x15c)]==this[_0x51cb67(0x153)][_0x51cb67(0x16a)][_0x51cb67(0x151)]&&(this[_0x51cb67(0x163)](),_0x12a7f0());}),this[_0x3f6d2b(0x153)][_0x3f6d2b(0x16a)]['on'](_0x3f6d2b(0x174),()=>{const _0xa2b6b6=_0x3f6d2b;this[_0xa2b6b6(0x178)]=''===this[_0xa2b6b6(0x153)][_0xa2b6b6(0x16a)][_0xa2b6b6(0x151)][_0xa2b6b6(0x165)]?.[_0xa2b6b6(0x164)]();});}[_0x4083e0(0x155)](){const _0x2d479c=_0x4083e0;super[_0x2d479c(0x155)](),this[_0x2d479c(0x160)]&&this[_0x2d479c(0x160)][_0x2d479c(0x155)]();}[_0x4083e0(0x163)](){const _0x3f9bdb=_0x4083e0,_0x54a158=this[_0x3f9bdb(0x153)][_0x3f9bdb(0x16a)][_0x3f9bdb(0x151)][_0x3f9bdb(0x165)]?.[_0x3f9bdb(0x164)]();if(!_0x54a158)return this[_0x3f9bdb(0x153)][_0x3f9bdb(0x159)]=_0x6b5ec(this[_0x3f9bdb(0x172)],_0x3f9bdb(0x175)),void(this[_0x3f9bdb(0x153)][_0x3f9bdb(0x16a)][_0x3f9bdb(0x154)]=!0x0);this[_0x3f9bdb(0x153)][_0x3f9bdb(0x16a)][_0x3f9bdb(0x154)]=!0x1;const _0x5ee495=_0x234065(_0x54a158);this[_0x3f9bdb(0x16e)](_0x3f9bdb(0x15b),_0x5ee495),this[_0x3f9bdb(0x153)][_0x3f9bdb(0x16a)][_0x3f9bdb(0x18a)]();}[_0x4083e0(0x179)](_0x15ecba){const _0x4dea3d=_0x4083e0;this[_0x4dea3d(0x153)][_0x4dea3d(0x16a)][_0x4dea3d(0x17f)](_0x4dea3d(0x167),_0x15ecba);}[_0x4083e0(0x187)](){const _0x47ea6d=_0x4083e0,_0x1faec0=new _0x3bb085(this[_0x47ea6d(0x172)]);return _0x1faec0[_0x47ea6d(0x17f)]({'icon':_0x5e74ea,'label':_0x6b5ec(this[_0x47ea6d(0x172)],_0x47ea6d(0x171)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x47ea6d(0x186),'isEnabled':!0x1}),_0x1faec0['on'](_0x47ea6d(0x182),()=>{const _0x56a866=_0x47ea6d;this[_0x56a866(0x163)]();}),_0x1faec0;}[_0x4083e0(0x184)](_0x34a04f){const _0x9e66b5=_0x4083e0;this[_0x9e66b5(0x16f)]=_0x34a04f;}[_0x4083e0(0x17a)](){const _0x4b1022=_0x4083e0,_0x16c978=this[_0x4b1022(0x172)],_0x686c89=()=>{const _0x505f88=_0x4b1022;_0x901d75[_0x505f88(0x158)][_0x505f88(0x168)](()=>{const _0x20cca9=_0x505f88;if(_0xf95658(this[_0x20cca9(0x151)])){const _0x40e315=new _0x4151a9(this[_0x20cca9(0x153)][_0x20cca9(0x16a)][_0x20cca9(0x151)]),_0x58d303=new _0x4151a9(this[_0x20cca9(0x166)][_0x20cca9(0x151)]),_0x117522=_0x40e315[_0x20cca9(0x16d)],_0x6ae75=_0x20cca9(0x17b)===_0x16c978[_0x20cca9(0x18f)]?_0x20cca9(0x15e):_0x20cca9(0x156);_0x40e315[_0x20cca9(0x16c)]();const _0x1cac70=_0x117522-_0x40e315[_0x20cca9(0x16d)]+0x1;this[_0x20cca9(0x166)][_0x20cca9(0x151)][_0x20cca9(0x15d)][_0x6ae75]=_0x20cca9(0x170)+(_0x117522-_0x58d303[_0x20cca9(0x16d)]-_0x1cac70)+_0x20cca9(0x176);}});};this[_0x4b1022(0x153)][_0x4b1022(0x16a)]['on'](_0x4b1022(0x174),_0x686c89),this['on'](_0x4b1022(0x150),()=>{const _0x14efcc=_0x4b1022;_0x686c89(),this[_0x14efcc(0x160)]=new _0x46f2d8(this[_0x14efcc(0x153)][_0x14efcc(0x16a)][_0x14efcc(0x151)],()=>{_0x686c89();});});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x428bc3=_0xe611;(function(_0x2e7d72,_0x2cbac5){const _0x1ea22d=_0xe611,_0x3d56b0=_0x2e7d72();while(!![]){try{const _0x396e87=-parseInt(_0x1ea22d(0x105))/0x1+-parseInt(_0x1ea22d(0x10c))/0x2+parseInt(_0x1ea22d(0x10b))/0x3*(-parseInt(_0x1ea22d(0x10f))/0x4)+-parseInt(_0x1ea22d(0x107))/0x5*(parseInt(_0x1ea22d(0x102))/0x6)+parseInt(_0x1ea22d(0x10a))/0x7+parseInt(_0x1ea22d(0x10d))/0x8*(-parseInt(_0x1ea22d(0x108))/0x9)+-parseInt(_0x1ea22d(0x109))/0xa*(-parseInt(_0x1ea22d(0x104))/0xb);if(_0x396e87===_0x2cbac5)break;else _0x3d56b0['push'](_0x3d56b0['shift']());}catch(_0x4fdee4){_0x3d56b0['push'](_0x3d56b0['shift']());}}}(_0x536c,0x9b1c2));function _0xe611(_0x5de038,_0x42da96){const _0x536cc9=_0x536c();return _0xe611=function(_0xe6117b,_0x508492){_0xe6117b=_0xe6117b-0x102;let _0x5d8eb6=_0x536cc9[_0xe6117b];return _0x5d8eb6;},_0xe611(_0x5de038,_0x42da96);}import{ListView as _0x355f65}from'ckeditor5/src/ui.js';export class AIChatPromptSuggestionsListView extends _0x355f65{[_0x428bc3(0x106)](){const _0x3d73a1=_0x428bc3;let _0x5b669d=0x0;for(const _0x49ccd4 of this[_0x3d73a1(0x103)])_0x5b669d+=_0x49ccd4[_0x3d73a1(0x103)][_0x3d73a1(0x10e)];return{'resultsCount':_0x5b669d,'totalItemsCount':_0x5b669d};}}function _0x536c(){const _0x560c6e=['2514ykLKmC','items','88JnOfkQ','1078944tBKSqK','filter','6485kwwMve','3499065EjThoo','4565620GFwYix','7383894apqeZL','6WAvFnK','1967026VTTMgM','16GXIkvw','length','1377076BDdCVk'];_0x536c=function(){return _0x560c6e;};return _0x536c();}
23
+ function _0x5503(_0x204a1d,_0x7be905){const _0x596677=_0x5966();return _0x5503=function(_0x550307,_0x14536a){_0x550307=_0x550307-0x108;let _0x1b91e8=_0x596677[_0x550307];return _0x1b91e8;},_0x5503(_0x204a1d,_0x7be905);}const _0x137d5b=_0x5503;(function(_0x1f4390,_0x584219){const _0x2b2754=_0x5503,_0x108077=_0x1f4390();while(!![]){try{const _0x1a2c71=parseInt(_0x2b2754(0x10f))/0x1+-parseInt(_0x2b2754(0x109))/0x2*(parseInt(_0x2b2754(0x108))/0x3)+-parseInt(_0x2b2754(0x10b))/0x4+-parseInt(_0x2b2754(0x111))/0x5*(-parseInt(_0x2b2754(0x10c))/0x6)+parseInt(_0x2b2754(0x110))/0x7+-parseInt(_0x2b2754(0x112))/0x8*(-parseInt(_0x2b2754(0x10e))/0x9)+-parseInt(_0x2b2754(0x10a))/0xa;if(_0x1a2c71===_0x584219)break;else _0x108077['push'](_0x108077['shift']());}catch(_0x3b670e){_0x108077['push'](_0x108077['shift']());}}}(_0x5966,0x46b82));function _0x5966(){const _0x1897b8=['items','length','15pFxbEZ','63382XCsUDK','324990PWfYsV','1451920hXexfC','147474cZvChv','filter','194751dJuvPB','271662LDgfwB','1566831AuTRzy','40QKbMyl','56MGHEqb'];_0x5966=function(){return _0x1897b8;};return _0x5966();}import{ListView as _0x4be276}from'ckeditor5/src/ui.js';export class AIChatPromptSuggestionsListView extends _0x4be276{[_0x137d5b(0x10d)](){const _0x5d87ea=_0x137d5b;let _0x3d5100=0x0;for(const _0x2b7f78 of this[_0x5d87ea(0x113)])_0x3d5100+=_0x2b7f78[_0x5d87ea(0x113)][_0x5d87ea(0x114)];return{'resultsCount':_0x3d5100,'totalItemsCount':_0x3d5100};}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x1233(_0x59c6c1,_0x1bae5f){const _0x102673=_0x1026();return _0x1233=function(_0x12333a,_0x2bc1c3){_0x12333a=_0x12333a-0x198;let _0x5623a0=_0x102673[_0x12333a];return _0x5623a0;},_0x1233(_0x59c6c1,_0x1bae5f);}const _0x16dbf3=_0x1233;(function(_0x1e06c3,_0x54bf17){const _0x24ddcc=_0x1233,_0x2fffa3=_0x1e06c3();while(!![]){try{const _0x4c0f43=parseInt(_0x24ddcc(0x19a))/0x1+parseInt(_0x24ddcc(0x1c3))/0x2+-parseInt(_0x24ddcc(0x1c2))/0x3*(-parseInt(_0x24ddcc(0x1a7))/0x4)+parseInt(_0x24ddcc(0x198))/0x5*(-parseInt(_0x24ddcc(0x1a1))/0x6)+-parseInt(_0x24ddcc(0x1af))/0x7*(parseInt(_0x24ddcc(0x1b0))/0x8)+parseInt(_0x24ddcc(0x1ba))/0x9+-parseInt(_0x24ddcc(0x1ac))/0xa;if(_0x4c0f43===_0x54bf17)break;else _0x2fffa3['push'](_0x2fffa3['shift']());}catch(_0x27733c){_0x2fffa3['push'](_0x2fffa3['shift']());}}}(_0x1026,0x344ce));import{HighlightedTextView as _0x2680ed,IconView as _0x377670,ListItemView as _0x1c8265}from'ckeditor5/src/ui.js';import{escapeRegExp as _0x24a264}from'es-toolkit/compat';function _0x1026(){const _0x551311=['ck-hidden','_iconView','_updateIcon','span','6KQEYAD','extendTemplate','ck-ai-chat-resources__item--in-context','type','isVisible','URL','10228osmkSw','set','render','text','ck-ai-chat-resources__item__icon','5576640IzJyIW','TEXT','FILE','1093253qTLeTy','8VLqaGT','content','resource','_titleView','isInContext','_createTitleView','setTemplate','DOCUMENT','execute','div','3575259VJzeJN','updateResourceState','ck-ai-chat-resources__item-title','label','_createIconView','bindTemplate','highlightText','ck-ai-chat-resources__item','501tkBNUz','417254rGSTJD','1383630DtYZyz','getResourceIcon','171894XIcUYe','_setupTemplate','trim'];_0x1026=function(){return _0x551311;};return _0x1026();}import{AIContextItemType as _0x38b44d}from'../../../../aicore/model/aicontext.js';import{IconFileUpload as _0x159058,IconCheck as _0x3f8512,IconDocument as _0xab1b32,IconDocumentOutline as _0x1f2089,IconLink as _0x285984}from'@ckeditor/ckeditor5-icons';const Rr=_0x16dbf3(0x1c1),Tr=_0x16dbf3(0x1a3),Ar=_0x16dbf3(0x1bc),Er=_0x16dbf3(0x1ab);export class AIChatResourceListItemView extends _0x1c8265{[_0x16dbf3(0x1b2)];[_0x16dbf3(0x1b3)];[_0x16dbf3(0x19e)];constructor(_0x13747d,_0x58bf06){const _0x52c26e=_0x16dbf3;super(_0x13747d),this[_0x52c26e(0x1b2)]=_0x58bf06,this[_0x52c26e(0x1a8)](_0x52c26e(0x1b4),!!_0x58bf06[_0x52c26e(0x1b4)]),this[_0x52c26e(0x1b3)]=this[_0x52c26e(0x1b5)](),this[_0x52c26e(0x19e)]=this[_0x52c26e(0x1be)](),this[_0x52c26e(0x19b)]();}[_0x16dbf3(0x1a9)](){const _0x329d7e=_0x16dbf3;super[_0x329d7e(0x1a9)]();}[_0x16dbf3(0x199)](_0x523a76){const _0x93ecb7=_0x16dbf3;if(_0x523a76[_0x93ecb7(0x1b4)])return _0x3f8512;switch(_0x523a76[_0x93ecb7(0x1a4)]){case _0x38b44d[_0x93ecb7(0x1b7)]:return _0xab1b32;case _0x38b44d[_0x93ecb7(0x1a6)]:return _0x285984;case _0x38b44d[_0x93ecb7(0x1ae)]:case _0x38b44d[_0x93ecb7(0x1ad)]:return _0x159058;default:return _0x1f2089;}}[_0x16dbf3(0x1c0)](_0x35b00f){const _0x22662e=_0x16dbf3;if(!_0x35b00f||''===_0x35b00f[_0x22662e(0x19c)]())return void this[_0x22662e(0x1b3)][_0x22662e(0x1c0)](null);const _0x234d0d=new RegExp(_0x24a264(_0x35b00f),'gi');this[_0x22662e(0x1b3)][_0x22662e(0x1c0)](_0x234d0d);}[_0x16dbf3(0x1bb)](_0x5f0af2){const _0x234b46=_0x16dbf3;this[_0x234b46(0x1b2)][_0x234b46(0x1b4)]=_0x5f0af2,this[_0x234b46(0x1b4)]=_0x5f0af2,this[_0x234b46(0x19f)]();}[_0x16dbf3(0x1b5)](){const _0x2a704e=_0x16dbf3,_0x2648cf=new _0x2680ed();return _0x2648cf[_0x2a704e(0x1aa)]=this[_0x2a704e(0x1b2)][_0x2a704e(0x1bd)],_0x2648cf[_0x2a704e(0x1a2)]({'tag':_0x2a704e(0x1a0),'attributes':{'class':[Ar]}}),_0x2648cf;}[_0x16dbf3(0x1be)](){const _0x56dd2c=_0x16dbf3,_0x5b0102=new _0x377670();return _0x5b0102[_0x56dd2c(0x1b1)]=this[_0x56dd2c(0x199)](this[_0x56dd2c(0x1b2)]),_0x5b0102;}[_0x16dbf3(0x19b)](){const _0x2b3e3f=_0x16dbf3,_0x5046cb=this[_0x2b3e3f(0x1bf)];this[_0x2b3e3f(0x1b6)]({'tag':_0x2b3e3f(0x1b9),'attributes':{'class':[Rr,_0x5046cb['if'](_0x2b3e3f(0x1a5),_0x2b3e3f(0x19d),_0x350765=>!_0x350765),_0x5046cb['if'](_0x2b3e3f(0x1b4),Tr)]},'children':[{'tag':_0x2b3e3f(0x1b9),'attributes':{'class':[Er]},'children':[this[_0x2b3e3f(0x19e)]]},this[_0x2b3e3f(0x1b3)]],'on':{'click':_0x5046cb['to'](_0x2b3e3f(0x1b8))}});}[_0x16dbf3(0x19f)](){const _0xcb259b=_0x16dbf3;this[_0xcb259b(0x19e)][_0xcb259b(0x1b1)]=this[_0xcb259b(0x199)](this[_0xcb259b(0x1b2)]);}}
23
+ const _0x2ba090=_0x1555;(function(_0x6bd045,_0xd695c8){const _0x5435d0=_0x1555,_0x26fed0=_0x6bd045();while(!![]){try{const _0x3e8b68=-parseInt(_0x5435d0(0x1e4))/0x1+-parseInt(_0x5435d0(0x1d8))/0x2+-parseInt(_0x5435d0(0x1db))/0x3+parseInt(_0x5435d0(0x1d4))/0x4+parseInt(_0x5435d0(0x1ce))/0x5+-parseInt(_0x5435d0(0x1ee))/0x6+parseInt(_0x5435d0(0x1de))/0x7;if(_0x3e8b68===_0xd695c8)break;else _0x26fed0['push'](_0x26fed0['shift']());}catch(_0x34cff0){_0x26fed0['push'](_0x26fed0['shift']());}}}(_0x2d05,0x567ed));function _0x1555(_0x183fee,_0x36bf1a){const _0x2d056c=_0x2d05();return _0x1555=function(_0x155551,_0x5a67b1){_0x155551=_0x155551-0x1ce;let _0x43a5e8=_0x2d056c[_0x155551];return _0x43a5e8;},_0x1555(_0x183fee,_0x36bf1a);}import{HighlightedTextView as _0x1d7a0e,IconView as _0x2e38a2,ListItemView as _0x422407}from'ckeditor5/src/ui.js';import{escapeRegExp as _0x44e7de}from'es-toolkit/compat';import{AIContextItemType as _0x372e55}from'../../../../aicore/model/aicontext.js';import{IconFileUpload as _0x7ac485,IconCheck as _0x596fde,IconDocument as _0x5e9497,IconDocumentOutline as _0x411351,IconLink as _0x91cdc2}from'@ckeditor/ckeditor5-icons';function _0x2d05(){const _0x45ecc0=['971319NCYTIN','_createIconView','content','1785231MsSrji','ck-ai-chat-resources__item-title','div','render','label','isVisible','59143dEWmig','extendTemplate','_titleView','ck-hidden','_iconView','trim','isInContext','execute','text','DOCUMENT','2494008uklLYn','updateResourceState','TEXT','ck-ai-chat-resources__item--in-context','span','_updateIcon','URL','ck-ai-chat-resources__item','setTemplate','3271750FKCGTS','highlightText','_setupTemplate','set','_createTitleView','bindTemplate','2741396kDbLAx','type','getResourceIcon','ck-ai-chat-resources__item__icon','883726cGgtWW','resource','FILE'];_0x2d05=function(){return _0x45ecc0;};return _0x2d05();}const qr=_0x2ba090(0x1f5),zr=_0x2ba090(0x1f1),Br=_0x2ba090(0x1df),Fr=_0x2ba090(0x1d7);export class AIChatResourceListItemView extends _0x422407{[_0x2ba090(0x1d9)];[_0x2ba090(0x1e6)];[_0x2ba090(0x1e8)];constructor(_0x294ecd,_0x8c53dd){const _0x433c4b=_0x2ba090;super(_0x294ecd),this[_0x433c4b(0x1d9)]=_0x8c53dd,this[_0x433c4b(0x1d1)](_0x433c4b(0x1ea),!!_0x8c53dd[_0x433c4b(0x1ea)]),this[_0x433c4b(0x1e6)]=this[_0x433c4b(0x1d2)](),this[_0x433c4b(0x1e8)]=this[_0x433c4b(0x1dc)](),this[_0x433c4b(0x1d0)]();}[_0x2ba090(0x1e1)](){const _0x2433d3=_0x2ba090;super[_0x2433d3(0x1e1)]();}[_0x2ba090(0x1d6)](_0x4d94fe){const _0x6dbac3=_0x2ba090;if(_0x4d94fe[_0x6dbac3(0x1ea)])return _0x596fde;switch(_0x4d94fe[_0x6dbac3(0x1d5)]){case _0x372e55[_0x6dbac3(0x1ed)]:return _0x5e9497;case _0x372e55[_0x6dbac3(0x1f4)]:return _0x91cdc2;case _0x372e55[_0x6dbac3(0x1da)]:case _0x372e55[_0x6dbac3(0x1f0)]:return _0x7ac485;default:return _0x411351;}}[_0x2ba090(0x1cf)](_0xe2dae){const _0x12c184=_0x2ba090;if(!_0xe2dae||''===_0xe2dae[_0x12c184(0x1e9)]())return void this[_0x12c184(0x1e6)][_0x12c184(0x1cf)](null);const _0x4d8c36=new RegExp(_0x44e7de(_0xe2dae),'gi');this[_0x12c184(0x1e6)][_0x12c184(0x1cf)](_0x4d8c36);}[_0x2ba090(0x1ef)](_0x58a488){const _0x1c0aa9=_0x2ba090;this[_0x1c0aa9(0x1d9)][_0x1c0aa9(0x1ea)]=_0x58a488,this[_0x1c0aa9(0x1ea)]=_0x58a488,this[_0x1c0aa9(0x1f3)]();}[_0x2ba090(0x1d2)](){const _0x32d2d8=_0x2ba090,_0x49b704=new _0x1d7a0e();return _0x49b704[_0x32d2d8(0x1ec)]=this[_0x32d2d8(0x1d9)][_0x32d2d8(0x1e2)],_0x49b704[_0x32d2d8(0x1e5)]({'tag':_0x32d2d8(0x1f2),'attributes':{'class':[Br]}}),_0x49b704;}[_0x2ba090(0x1dc)](){const _0x4048cf=_0x2ba090,_0x36dea9=new _0x2e38a2();return _0x36dea9[_0x4048cf(0x1dd)]=this[_0x4048cf(0x1d6)](this[_0x4048cf(0x1d9)]),_0x36dea9;}[_0x2ba090(0x1d0)](){const _0x14f2c2=_0x2ba090,_0x4ea348=this[_0x14f2c2(0x1d3)];this[_0x14f2c2(0x1f6)]({'tag':_0x14f2c2(0x1e0),'attributes':{'class':[qr,_0x4ea348['if'](_0x14f2c2(0x1e3),_0x14f2c2(0x1e7),_0x4e60c5=>!_0x4e60c5),_0x4ea348['if'](_0x14f2c2(0x1ea),zr)]},'children':[{'tag':_0x14f2c2(0x1e0),'attributes':{'class':[Fr]},'children':[this[_0x14f2c2(0x1e8)]]},this[_0x14f2c2(0x1e6)]],'on':{'click':_0x4ea348['to'](_0x14f2c2(0x1eb))}});}[_0x2ba090(0x1f3)](){const _0x388486=_0x2ba090;this[_0x388486(0x1e8)][_0x388486(0x1dd)]=this[_0x388486(0x1d6)](this[_0x388486(0x1d9)]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xee422b=_0x55f3;(function(_0x477c93,_0xaf5ea1){const _0x2a53b7=_0x55f3,_0x4d80b9=_0x477c93();while(!![]){try{const _0x69ecd4=parseInt(_0x2a53b7(0x137))/0x1*(parseInt(_0x2a53b7(0x131))/0x2)+parseInt(_0x2a53b7(0x125))/0x3*(parseInt(_0x2a53b7(0x110))/0x4)+parseInt(_0x2a53b7(0x123))/0x5+parseInt(_0x2a53b7(0x143))/0x6+parseInt(_0x2a53b7(0x13c))/0x7*(-parseInt(_0x2a53b7(0x136))/0x8)+-parseInt(_0x2a53b7(0x10f))/0x9*(-parseInt(_0x2a53b7(0x12a))/0xa)+parseInt(_0x2a53b7(0x148))/0xb*(-parseInt(_0x2a53b7(0x129))/0xc);if(_0x69ecd4===_0xaf5ea1)break;else _0x4d80b9['push'](_0x4d80b9['shift']());}catch(_0x501ec6){_0x4d80b9['push'](_0x4d80b9['shift']());}}}(_0x13fc,0x59583));import{BalloonPanelView as _0x4171b9,ButtonView as _0x3731aa,clickOutsideHandler as _0x33870e,FormHeaderView as _0x5095c8}from'ckeditor5/src/ui.js';function _0x13fc(){const _0x1a04f0=['delete','clear','pin','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','444922aYQKRq','_setupSingleResourceBalloonClickOutsideHandler','content','ck-button-icon\x20ck-button-back','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_source','2856DWKaEC','2coHpPx','resource','set','ck-ai-chat-context-controls__source-balloon-panel','get','3157sVzEAj','getTargetElement','_createBalloonHeader','showSourceResourcesBalloon','element','_config','destroy','3430410HzKnCg','values','onLoadSourceResources','execute','_locale','3577409sFlRvc','closeSourceResourceBalloon','children','2637eIZyXp','32winFTK','source','getLimiterElement','populateSourceResourceBalloon','_sourceResourceBalloons','onBalloonClosed','_createSourceResourceBalloonPanel','_createBalloonResourcesView','updateResourceState','loadSourceResources','onBackToContext','setResources','_addSourceResourceContent','isVisible','onResourceSelected','_getResourcesViewFromBalloon','extendTemplate','show','label','2885840bXwFij','add','131367rnJamR','hide','_bodyCollection','isAnyResourceBalloonVisible','72DnCEuZ','18230sZnjhp','_createBackButton','addResourceToContext'];_0x13fc=function(){return _0x1a04f0;};return _0x13fc();}function _0x55f3(_0x3ffe90,_0x43eb02){const _0x13fc01=_0x13fc();return _0x55f3=function(_0x55f3a6,_0x34a822){_0x55f3a6=_0x55f3a6-0x10e;let _0x48aea8=_0x13fc01[_0x55f3a6];return _0x48aea8;},_0x55f3(_0x3ffe90,_0x43eb02);}import{IconPreviousArrow as _0x531ccc}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x2c1179}from'../../../../aicore/utils/common-translations.js';import{AIChatContextResourcesView as _0x501d5c}from'./aichatresourcesview.js';const Or=_0xee422b(0x13a),Hr=_0xee422b(0x134),Fr=_0xee422b(0x135);export class AIChatResourcesBalloonView{[_0xee422b(0x114)]=new Map();[_0xee422b(0x127)];[_0xee422b(0x147)];[_0xee422b(0x141)];constructor(_0x48ad1a,_0x3cfa82,_0x40347d){const _0x1a47e3=_0xee422b;this[_0x1a47e3(0x147)]=_0x48ad1a,this[_0x1a47e3(0x127)]=_0x3cfa82,this[_0x1a47e3(0x141)]=_0x40347d;}[_0xee422b(0x13f)](_0x2ba663){const _0x280d9f=_0xee422b;let _0x29604d=this[_0x280d9f(0x114)][_0x280d9f(0x13b)](_0x2ba663['id']);_0x29604d||(_0x29604d=this[_0x280d9f(0x116)](),this[_0x280d9f(0x114)][_0x280d9f(0x139)](_0x2ba663['id'],_0x29604d),this[_0x280d9f(0x132)](_0x29604d)),this[_0x280d9f(0x11c)](_0x29604d,_0x2ba663),_0x29604d[_0x280d9f(0x121)]();const _0x55a511=this[_0x280d9f(0x141)][_0x280d9f(0x13d)]();_0x55a511&&_0x29604d[_0x280d9f(0x12f)]({'target':_0x55a511,'limiter':this[_0x280d9f(0x141)][_0x280d9f(0x112)]()});}[_0xee422b(0x113)](_0x4b4268,_0x5a7675,_0x2b5d64){const _0x3554e5=_0xee422b,_0x1fc274=this[_0x3554e5(0x114)][_0x3554e5(0x13b)](_0x4b4268);if(!_0x1fc274)return;const _0x355834=this[_0x3554e5(0x11f)](_0x1fc274);_0x355834&&_0x355834[_0x3554e5(0x11b)](_0x5a7675,_0x2b5d64);}[_0xee422b(0x149)](_0x18daa5){const _0x51ce5d=_0xee422b,_0x1c4a57=this[_0x51ce5d(0x114)][_0x51ce5d(0x13b)](_0x18daa5);_0x1c4a57&&requestAnimationFrame(()=>{const _0x30d347=_0x51ce5d;_0x1c4a57[_0x30d347(0x126)](),this[_0x30d347(0x114)][_0x30d347(0x12d)](_0x18daa5),this[_0x30d347(0x141)][_0x30d347(0x115)]();});}[_0xee422b(0x128)](){const _0x219f38=_0xee422b;for(const _0x179c13 of this[_0x219f38(0x114)][_0x219f38(0x144)]())if(_0x179c13[_0x219f38(0x11d)])return!0x0;return!0x1;}[_0xee422b(0x118)](_0x4f994a,_0x5f2c9a,_0x19d622){const _0x998f33=_0xee422b,_0x492666=this[_0x998f33(0x114)][_0x998f33(0x13b)](_0x4f994a);if(!_0x492666||!_0x492666[_0x998f33(0x11d)])return;const _0x14207f=this[_0x998f33(0x141)][_0x998f33(0x13d)]();if(!_0x14207f)return;_0x492666[_0x998f33(0x12f)]({'target':_0x14207f,'limiter':this[_0x998f33(0x141)][_0x998f33(0x112)]()});const _0x4399c8=this[_0x998f33(0x11f)](_0x492666);_0x4399c8&&_0x4399c8[_0x998f33(0x118)](_0x5f2c9a,_0x19d622);}[_0xee422b(0x142)](){const _0x404161=_0xee422b;for(const _0x19e341 of this[_0x404161(0x114)][_0x404161(0x144)]())_0x19e341[_0x404161(0x142)]();this[_0x404161(0x114)][_0x404161(0x12e)]();}[_0xee422b(0x116)](){const _0x291880=_0xee422b,_0x5d874b=new _0x4171b9(this[_0x291880(0x147)]);return _0x5d874b[_0x291880(0x120)]({'attributes':{'class':Or}}),this[_0x291880(0x127)][_0x291880(0x124)](_0x5d874b),_0x5d874b;}[_0xee422b(0x11c)](_0x37dedf,_0x34411a){const _0x24e1b8=_0xee422b;_0x37dedf[_0x24e1b8(0x133)][_0x24e1b8(0x12e)]();const _0x11cb3d=this[_0x24e1b8(0x13e)](_0x37dedf,_0x34411a);_0x37dedf[_0x24e1b8(0x133)][_0x24e1b8(0x124)](_0x11cb3d);const _0x45740e=this[_0x24e1b8(0x117)](_0x34411a);_0x37dedf[_0x24e1b8(0x133)][_0x24e1b8(0x124)](_0x45740e);}[_0xee422b(0x13e)](_0x2afbad,_0x183be7){const _0x47a22c=_0xee422b,_0x33e20e=this[_0x47a22c(0x12b)](_0x2afbad),_0x51dcfb=new _0x5095c8(this[_0x47a22c(0x147)],{'label':_0x183be7[_0x47a22c(0x122)],'class':Fr});return _0x51dcfb[_0x47a22c(0x10e)][_0x47a22c(0x124)](_0x33e20e,0x0),_0x51dcfb;}[_0xee422b(0x12b)](_0x34f296){const _0x3a9bfd=_0xee422b,_0x409a8f=new _0x3731aa(this[_0x3a9bfd(0x147)]);return _0x409a8f[_0x3a9bfd(0x139)]({'icon':_0x531ccc,'tooltip':_0x2c1179(this[_0x3a9bfd(0x147)],_0x3a9bfd(0x130)),'tooltipPosition':'n','class':Hr}),_0x409a8f['on'](_0x3a9bfd(0x146),()=>{const _0x223b45=_0x3a9bfd;_0x34f296[_0x223b45(0x126)](),this[_0x223b45(0x141)][_0x223b45(0x11a)]();}),_0x409a8f;}[_0xee422b(0x117)](_0x5652c0){const _0x1ae005=_0xee422b,_0x1867f8=new _0x501d5c(this[_0x1ae005(0x147)],_0x5652c0);return _0x1867f8['on'](_0x1ae005(0x119),(_0x431997,_0x3e86f7)=>{const _0x47346a=_0x1ae005;this[_0x47346a(0x141)][_0x47346a(0x145)](_0x3e86f7);}),_0x1867f8['on'](_0x1ae005(0x12c),(_0x349c02,_0x37afd2)=>{const _0x1b0904=_0x1ae005;this[_0x1b0904(0x141)][_0x1b0904(0x11e)](_0x37afd2[_0x1b0904(0x111)],_0x37afd2[_0x1b0904(0x138)]),this[_0x1b0904(0x149)](_0x5652c0['id']);}),_0x1867f8;}[_0xee422b(0x11f)](_0x3186a0){const _0xb54e21=_0xee422b,_0xe3ef26=_0x3186a0[_0xb54e21(0x133)][_0xb54e21(0x13b)](0x1);return _0xe3ef26 instanceof _0x501d5c?_0xe3ef26:null;}[_0xee422b(0x132)](_0x3d81b5){const _0x2cf5de=_0xee422b;_0x33870e({'emitter':_0x3d81b5,'contextElements':[_0x3d81b5[_0x2cf5de(0x140)]],'callback':()=>{const _0x1d0578=_0x2cf5de;_0x3d81b5[_0x1d0578(0x126)](),this[_0x1d0578(0x141)][_0x1d0578(0x115)]();},'activator':()=>_0x3d81b5[_0x2cf5de(0x11d)]});}}
23
+ const _0x4bf854=_0x253e;function _0x5a24(){const _0x37c623=['isVisible','onBackToContext','_createBalloonResourcesView','24tAhnkz','children','add','_setupSingleResourceBalloonClickOutsideHandler','clear','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_source','_config','getLimiterElement','_sourceResourceBalloons','_createSourceResourceBalloonPanel','ck-button-icon\x20ck-button-back','onBalloonClosed','delete','setResources','show','_addSourceResourceContent','onResourceSelected','pin','content','addResourceToContext','_createBalloonHeader','1076369RMJxZJ','execute','isAnyResourceBalloonVisible','473354WveIPh','_bodyCollection','779280LPvWBt','_createBackButton','hide','ck-ai-chat-context-controls__source-balloon-panel','set','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','loadSourceResources','showSourceResourcesBalloon','element','617688jjmrzv','onLoadSourceResources','_getResourcesViewFromBalloon','populateSourceResourceBalloon','_locale','get','getTargetElement','8BFrlXT','1627767aNfGTH','updateResourceState','source','resource','values','93680HFHVaQ','label','destroy','closeSourceResourceBalloon','46610qYcnkq','extendTemplate'];_0x5a24=function(){return _0x37c623;};return _0x5a24();}(function(_0x27e635,_0x5c08c8){const _0x3e8f0a=_0x253e,_0x466fa7=_0x27e635();while(!![]){try{const _0x50970d=parseInt(_0x3e8f0a(0x1e9))/0x1+-parseInt(_0x3e8f0a(0x1cc))/0x2+-parseInt(_0x3e8f0a(0x1eb))/0x3+-parseInt(_0x3e8f0a(0x1f4))/0x4+parseInt(_0x3e8f0a(0x1c8))/0x5*(-parseInt(_0x3e8f0a(0x1d1))/0x6)+parseInt(_0x3e8f0a(0x1e6))/0x7+parseInt(_0x3e8f0a(0x1fb))/0x8*(parseInt(_0x3e8f0a(0x1fc))/0x9);if(_0x50970d===_0x5c08c8)break;else _0x466fa7['push'](_0x466fa7['shift']());}catch(_0x2f31b2){_0x466fa7['push'](_0x466fa7['shift']());}}}(_0x5a24,0x48281));import{BalloonPanelView as _0x39df25,ButtonView as _0x19fa0d,clickOutsideHandler as _0x561d5f,FormHeaderView as _0x381ca1}from'ckeditor5/src/ui.js';import{IconPreviousArrow as _0x5a96ac}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x405148}from'../../../../aicore/utils/common-translations.js';import{AIChatContextResourcesView as _0x2c96b0}from'./aichatresourcesview.js';function _0x253e(_0x1181fa,_0x25d8f9){const _0x5a2451=_0x5a24();return _0x253e=function(_0x253ee3,_0x2b1d31){_0x253ee3=_0x253ee3-0x1c5;let _0x527cc7=_0x5a2451[_0x253ee3];return _0x527cc7;},_0x253e(_0x1181fa,_0x25d8f9);}const Xo=_0x4bf854(0x1ee),qo=_0x4bf854(0x1db),zo=_0x4bf854(0x1d6);export class AIChatResourcesBalloonView{[_0x4bf854(0x1d9)]=new Map();[_0x4bf854(0x1ea)];[_0x4bf854(0x1f8)];[_0x4bf854(0x1d7)];constructor(_0x5d35b9,_0x366b0d,_0x362da3){const _0x44fa97=_0x4bf854;this[_0x44fa97(0x1f8)]=_0x5d35b9,this[_0x44fa97(0x1ea)]=_0x366b0d,this[_0x44fa97(0x1d7)]=_0x362da3;}[_0x4bf854(0x1f2)](_0x337beb){const _0x5b9994=_0x4bf854;let _0x51d00d=this[_0x5b9994(0x1d9)][_0x5b9994(0x1f9)](_0x337beb['id']);_0x51d00d||(_0x51d00d=this[_0x5b9994(0x1da)](),this[_0x5b9994(0x1d9)][_0x5b9994(0x1ef)](_0x337beb['id'],_0x51d00d),this[_0x5b9994(0x1d4)](_0x51d00d)),this[_0x5b9994(0x1e0)](_0x51d00d,_0x337beb),_0x51d00d[_0x5b9994(0x1df)]();const _0x48d1b7=this[_0x5b9994(0x1d7)][_0x5b9994(0x1fa)]();_0x48d1b7&&_0x51d00d[_0x5b9994(0x1e2)]({'target':_0x48d1b7,'limiter':this[_0x5b9994(0x1d7)][_0x5b9994(0x1d8)]()});}[_0x4bf854(0x1f7)](_0x3ef73d,_0x3cae8d,_0xacdaf6){const _0x539fd3=_0x4bf854,_0x5a06de=this[_0x539fd3(0x1d9)][_0x539fd3(0x1f9)](_0x3ef73d);if(!_0x5a06de)return;const _0x5026a2=this[_0x539fd3(0x1f6)](_0x5a06de);_0x5026a2&&_0x5026a2[_0x539fd3(0x1de)](_0x3cae8d,_0xacdaf6);}[_0x4bf854(0x1cb)](_0x4bbd94){const _0x1d2233=_0x4bf854,_0x4771a1=this[_0x1d2233(0x1d9)][_0x1d2233(0x1f9)](_0x4bbd94);_0x4771a1&&requestAnimationFrame(()=>{const _0x2d3100=_0x1d2233;_0x4771a1[_0x2d3100(0x1ed)](),this[_0x2d3100(0x1d9)][_0x2d3100(0x1dd)](_0x4bbd94),this[_0x2d3100(0x1d7)][_0x2d3100(0x1dc)]();});}[_0x4bf854(0x1e8)](){const _0x470575=_0x4bf854;for(const _0x40a4c4 of this[_0x470575(0x1d9)][_0x470575(0x1c7)]())if(_0x40a4c4[_0x470575(0x1ce)])return!0x0;return!0x1;}[_0x4bf854(0x1fd)](_0xa203fe,_0x20a26c,_0x4e7a22){const _0x5c3de7=_0x4bf854,_0x4dc887=this[_0x5c3de7(0x1d9)][_0x5c3de7(0x1f9)](_0xa203fe);if(!_0x4dc887||!_0x4dc887[_0x5c3de7(0x1ce)])return;const _0x3c8cc0=this[_0x5c3de7(0x1d7)][_0x5c3de7(0x1fa)]();if(!_0x3c8cc0)return;_0x4dc887[_0x5c3de7(0x1e2)]({'target':_0x3c8cc0,'limiter':this[_0x5c3de7(0x1d7)][_0x5c3de7(0x1d8)]()});const _0x52eef7=this[_0x5c3de7(0x1f6)](_0x4dc887);_0x52eef7&&_0x52eef7[_0x5c3de7(0x1fd)](_0x20a26c,_0x4e7a22);}[_0x4bf854(0x1ca)](){const _0x40889d=_0x4bf854;for(const _0x212a48 of this[_0x40889d(0x1d9)][_0x40889d(0x1c7)]())_0x212a48[_0x40889d(0x1ca)]();this[_0x40889d(0x1d9)][_0x40889d(0x1d5)]();}[_0x4bf854(0x1da)](){const _0x2bf1cc=_0x4bf854,_0x40b750=new _0x39df25(this[_0x2bf1cc(0x1f8)]);return _0x40b750[_0x2bf1cc(0x1cd)]({'attributes':{'class':Xo}}),this[_0x2bf1cc(0x1ea)][_0x2bf1cc(0x1d3)](_0x40b750),_0x40b750;}[_0x4bf854(0x1e0)](_0x572469,_0x5133b5){const _0x2fcb13=_0x4bf854;_0x572469[_0x2fcb13(0x1e3)][_0x2fcb13(0x1d5)]();const _0x5ed0ae=this[_0x2fcb13(0x1e5)](_0x572469,_0x5133b5);_0x572469[_0x2fcb13(0x1e3)][_0x2fcb13(0x1d3)](_0x5ed0ae);const _0x10cfee=this[_0x2fcb13(0x1d0)](_0x5133b5);_0x572469[_0x2fcb13(0x1e3)][_0x2fcb13(0x1d3)](_0x10cfee);}[_0x4bf854(0x1e5)](_0x9919b3,_0x5698d5){const _0xce86d0=_0x4bf854,_0x592c7a=this[_0xce86d0(0x1ec)](_0x9919b3),_0x38eb81=new _0x381ca1(this[_0xce86d0(0x1f8)],{'label':_0x5698d5[_0xce86d0(0x1c9)],'class':zo});return _0x38eb81[_0xce86d0(0x1d2)][_0xce86d0(0x1d3)](_0x592c7a,0x0),_0x38eb81;}[_0x4bf854(0x1ec)](_0x3d1981){const _0x5a5ed5=_0x4bf854,_0x569627=new _0x19fa0d(this[_0x5a5ed5(0x1f8)]);return _0x569627[_0x5a5ed5(0x1ef)]({'icon':_0x5a96ac,'tooltip':_0x405148(this[_0x5a5ed5(0x1f8)],_0x5a5ed5(0x1f0)),'tooltipPosition':'n','class':qo}),_0x569627['on'](_0x5a5ed5(0x1e7),()=>{const _0x387fb1=_0x5a5ed5;_0x3d1981[_0x387fb1(0x1ed)](),this[_0x387fb1(0x1d7)][_0x387fb1(0x1cf)]();}),_0x569627;}[_0x4bf854(0x1d0)](_0x35a078){const _0x572c85=_0x4bf854,_0xdd3200=new _0x2c96b0(this[_0x572c85(0x1f8)],_0x35a078);return _0xdd3200['on'](_0x572c85(0x1f1),(_0x2ea92e,_0x50839c)=>{const _0x493ad6=_0x572c85;this[_0x493ad6(0x1d7)][_0x493ad6(0x1f5)](_0x50839c);}),_0xdd3200['on'](_0x572c85(0x1e4),(_0x25e94b,_0xd849ec)=>{const _0x8c4a68=_0x572c85;this[_0x8c4a68(0x1d7)][_0x8c4a68(0x1e1)](_0xd849ec[_0x8c4a68(0x1c5)],_0xd849ec[_0x8c4a68(0x1c6)]),this[_0x8c4a68(0x1cb)](_0x35a078['id']);}),_0xdd3200;}[_0x4bf854(0x1f6)](_0x2ff36c){const _0x4f00d7=_0x4bf854,_0x359eee=_0x2ff36c[_0x4f00d7(0x1e3)][_0x4f00d7(0x1f9)](0x1);return _0x359eee instanceof _0x2c96b0?_0x359eee:null;}[_0x4bf854(0x1d4)](_0x486264){const _0x5e9ff9=_0x4bf854;_0x561d5f({'emitter':_0x486264,'contextElements':[_0x486264[_0x5e9ff9(0x1f3)]],'callback':()=>{const _0x32f118=_0x5e9ff9;_0x486264[_0x32f118(0x1ed)](),this[_0x32f118(0x1d7)][_0x32f118(0x1dc)]();},'activator':()=>_0x486264[_0x5e9ff9(0x1ce)]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x20c90f=_0x4f8c;(function(_0xda969d,_0xed7fb7){const _0x4da83c=_0x4f8c,_0x2e7cd8=_0xda969d();while(!![]){try{const _0x7ff140=parseInt(_0x4da83c(0x16c))/0x1+parseInt(_0x4da83c(0x167))/0x2*(-parseInt(_0x4da83c(0x163))/0x3)+-parseInt(_0x4da83c(0x15e))/0x4+-parseInt(_0x4da83c(0x15b))/0x5*(parseInt(_0x4da83c(0x164))/0x6)+parseInt(_0x4da83c(0x166))/0x7+-parseInt(_0x4da83c(0x16d))/0x8*(parseInt(_0x4da83c(0x15c))/0x9)+parseInt(_0x4da83c(0x165))/0xa;if(_0x7ff140===_0xed7fb7)break;else _0x2e7cd8['push'](_0x2e7cd8['shift']());}catch(_0x360a2f){_0x2e7cd8['push'](_0x2e7cd8['shift']());}}}(_0x727a,0x4f82b));function _0x4f8c(_0x545c95,_0x501fd1){const _0x727a4a=_0x727a();return _0x4f8c=function(_0x4f8c3b,_0x58d7ce){_0x4f8c3b=_0x4f8c3b-0x158;let _0x1b0197=_0x727a4a[_0x4f8c3b];return _0x1b0197;},_0x4f8c(_0x545c95,_0x501fd1);}import{ListView as _0x1f27dd}from'ckeditor5/src/ui.js';import{AIChatResourceListItemView as _0x36a3b6}from'./aichatresourcelistitemview.js';const sc=_0x20c90f(0x158);export class AIChatContextResourcesListView extends _0x1f27dd{[_0x20c90f(0x178)];constructor(_0x2ac345,_0x8854d3){const _0x185db2=_0x20c90f;super(_0x2ac345),this[_0x185db2(0x178)]=_0x8854d3,this[_0x185db2(0x175)]({'attributes':{'class':[sc]}});}[_0x20c90f(0x170)](_0x268425,_0x44af8e){const _0x1dcf23=_0x20c90f;this[_0x1dcf23(0x159)][_0x1dcf23(0x162)]();let _0x5ab71b=_0x268425;if(this[_0x1dcf23(0x178)][_0x1dcf23(0x176)]&&_0x44af8e&&''!==_0x44af8e[_0x1dcf23(0x174)]()){const _0x3a54eb=new RegExp(_0x44af8e[_0x1dcf23(0x173)](/[.*+?^${}()|[\]\\]/g,_0x1dcf23(0x16a)),'gi');_0x5ab71b=_0x268425[_0x1dcf23(0x15f)](_0x6485f0=>_0x3a54eb[_0x1dcf23(0x171)](_0x6485f0[_0x1dcf23(0x161)]));}for(const _0x18fe76 of _0x5ab71b){const _0x2c0107=new _0x36a3b6(this[_0x1dcf23(0x169)],_0x18fe76);_0x2c0107['on'](_0x1dcf23(0x160),()=>{const _0x5925f2=_0x1dcf23;this[_0x5925f2(0x16b)](this[_0x5925f2(0x178)],_0x18fe76);}),this[_0x1dcf23(0x159)][_0x1dcf23(0x16f)](_0x2c0107);}this[_0x1dcf23(0x178)][_0x1dcf23(0x176)]&&this[_0x1dcf23(0x168)](_0x44af8e);}[_0x20c90f(0x168)](_0x1dadfd){const _0x507a87=_0x20c90f;this[_0x507a87(0x178)][_0x507a87(0x176)]&&this[_0x507a87(0x159)][_0x507a87(0x177)](_0x3ba7c7=>{const _0xc8d06=_0x507a87;_0x3ba7c7[_0xc8d06(0x168)](_0x1dadfd);});}[_0x20c90f(0x172)](_0x1c48b2,_0x215501){const _0x776a2b=_0x20c90f;for(const _0x314ca4 of this[_0x776a2b(0x159)]){const _0xa1d606=_0x314ca4;_0xa1d606[_0x776a2b(0x16e)]['id']===_0x1c48b2&&_0xa1d606[_0x776a2b(0x172)](_0x215501);}}[_0x20c90f(0x16b)](_0x192938,_0x2ea504){const _0x253cae=_0x20c90f;this[_0x253cae(0x15d)](_0x253cae(0x15a),{'source':_0x192938,'resource':_0x2ea504});}}function _0x727a(){const _0x3848df=['18YKqvQE','fire','2593084teYUiN','filter','execute','label','clear','6MhMwmn','156672CaZBmK','20158800hgsXOZ','809662sKEZxM','616570fEqEgJ','highlightText','locale','\x5c$&','_handleResourceSelection','296580buyYtY','1052584awvJxf','resource','add','setResources','test','updateResourceState','replace','trim','extendTemplate','useDefaultFiltering','forEach','_source','ck-ai-chat-resources__list','items','addResourceToContext','110xEtEkD'];_0x727a=function(){return _0x3848df;};return _0x727a();}
23
+ const _0x29c849=_0xb0c6;(function(_0x5244b1,_0xf54282){const _0x2c2451=_0xb0c6,_0x2d9fdf=_0x5244b1();while(!![]){try{const _0x3336b8=parseInt(_0x2c2451(0x1a2))/0x1+-parseInt(_0x2c2451(0x1a5))/0x2*(parseInt(_0x2c2451(0x1ae))/0x3)+parseInt(_0x2c2451(0x198))/0x4*(-parseInt(_0x2c2451(0x199))/0x5)+parseInt(_0x2c2451(0x1a1))/0x6+parseInt(_0x2c2451(0x19d))/0x7+-parseInt(_0x2c2451(0x196))/0x8+parseInt(_0x2c2451(0x1a0))/0x9;if(_0x3336b8===_0xf54282)break;else _0x2d9fdf['push'](_0x2d9fdf['shift']());}catch(_0x3ec669){_0x2d9fdf['push'](_0x2d9fdf['shift']());}}}(_0x18de,0x89efe));function _0x18de(){const _0x22262f=['5805846nvcJMe','31933UJNBHS','\x5c$&','setResources','2OvKpiF','clear','forEach','items','label','resource','replace','_handleResourceSelection','trim','2981490EsAYqF','test','ck-ai-chat-resources__list','add','useDefaultFiltering','locale','_source','filter','5906024qoYFVm','fire','7300FdaaQv','2045uEXsbL','extendTemplate','execute','addResourceToContext','4785445gXywce','updateResourceState','highlightText','12242601XxdJKS'];_0x18de=function(){return _0x22262f;};return _0x18de();}function _0xb0c6(_0x48b37d,_0x22e675){const _0x18defe=_0x18de();return _0xb0c6=function(_0xb0c667,_0x520fa2){_0xb0c667=_0xb0c667-0x192;let _0x5d87da=_0x18defe[_0xb0c667];return _0x5d87da;},_0xb0c6(_0x48b37d,_0x22e675);}import{ListView as _0x4e9c44}from'ckeditor5/src/ui.js';import{AIChatResourceListItemView as _0x1e81e5}from'./aichatresourcelistitemview.js';const Jo=_0x29c849(0x1b0);export class AIChatContextResourcesListView extends _0x4e9c44{[_0x29c849(0x194)];constructor(_0x58737b,_0x5b7a39){const _0x1f3f54=_0x29c849;super(_0x58737b),this[_0x1f3f54(0x194)]=_0x5b7a39,this[_0x1f3f54(0x19a)]({'attributes':{'class':[Jo]}});}[_0x29c849(0x1a4)](_0x1a8b97,_0x41db70){const _0xbcc94d=_0x29c849;this[_0xbcc94d(0x1a8)][_0xbcc94d(0x1a6)]();let _0x157d75=_0x1a8b97;if(this[_0xbcc94d(0x194)][_0xbcc94d(0x192)]&&_0x41db70&&''!==_0x41db70[_0xbcc94d(0x1ad)]()){const _0x81677c=new RegExp(_0x41db70[_0xbcc94d(0x1ab)](/[.*+?^${}()|[\]\\]/g,_0xbcc94d(0x1a3)),'gi');_0x157d75=_0x1a8b97[_0xbcc94d(0x195)](_0x2bb257=>_0x81677c[_0xbcc94d(0x1af)](_0x2bb257[_0xbcc94d(0x1a9)]));}for(const _0x585128 of _0x157d75){const _0x4c8124=new _0x1e81e5(this[_0xbcc94d(0x193)],_0x585128);_0x4c8124['on'](_0xbcc94d(0x19b),()=>{const _0x2d411b=_0xbcc94d;this[_0x2d411b(0x1ac)](this[_0x2d411b(0x194)],_0x585128);}),this[_0xbcc94d(0x1a8)][_0xbcc94d(0x1b1)](_0x4c8124);}this[_0xbcc94d(0x194)][_0xbcc94d(0x192)]&&this[_0xbcc94d(0x19f)](_0x41db70);}[_0x29c849(0x19f)](_0x25e64d){const _0x5a74f1=_0x29c849;this[_0x5a74f1(0x194)][_0x5a74f1(0x192)]&&this[_0x5a74f1(0x1a8)][_0x5a74f1(0x1a7)](_0x4b5539=>{const _0x5c6b72=_0x5a74f1;_0x4b5539[_0x5c6b72(0x19f)](_0x25e64d);});}[_0x29c849(0x19e)](_0x2bc952,_0x538586){const _0xfc57c3=_0x29c849;for(const _0x17d4b1 of this[_0xfc57c3(0x1a8)]){const _0x2a13ab=_0x17d4b1;_0x2a13ab[_0xfc57c3(0x1aa)]['id']===_0x2bc952&&_0x2a13ab[_0xfc57c3(0x19e)](_0x538586);}}[_0x29c849(0x1ac)](_0x43a631,_0x1e2fef){const _0x2b225e=_0x29c849;this[_0x2b225e(0x197)](_0x2b225e(0x19c),{'source':_0x43a631,'resource':_0x1e2fef});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{ButtonView as _0x18513c,IconView as _0x34b3f7,LabeledFieldView as th,createLabeledInputText as _0x4b1424}from'ckeditor5/src/ui.js';import{IconLoupe as _0x82b206,IconCancel as _0x5ce12f}from'ckeditor5/src/icons.js';import{getTranslation as _0x3c73fd}from'../../../../aicore/utils/common-translations.js';export class AIChatContextResourcesSearchInputView extends th{['iconView'];['resetButtonView'];['_viewConfig'];constructor(_0x73f847){const t=_0x73f847['t'],_0x5766f2={'showResetButton':!0x0,'showIcon':!0x0,'creator':_0x4b1424,'label':_0x3c73fd(_0x73f847,'AI_CHAT_SEARCH_RESOURCES')};super(_0x73f847,_0x5766f2['creator']),this['label']=_0x5766f2['label'],this['_viewConfig']=_0x5766f2,this['_viewConfig']['showIcon']&&this['_setupSearchIcon'](),this['_viewConfig']['showResetButton']&&this['_setupResetButton'](_0x73f847,t),this['_setupEventListeners']();}['reset'](){this['fieldView']['reset'](),this['_viewConfig']['showResetButton']&&this['resetButtonView']&&(this['resetButtonView']['isVisible']=!0x1),this['search']('');}['search'](_0x5e383b){this['fire']('search',_0x5e383b);}['getQuery'](){return this['fieldView']['element']?.['value']||'';}['_setupSearchIcon'](){this['iconView']=new _0x34b3f7(),this['iconView']['content']=_0x82b206,this['fieldWrapperChildren']['add'](this['iconView'],0x0),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-icon'}});}['_setupResetButton'](_0x15ff7f,t){this['resetButtonView']=new _0x18513c(_0x15ff7f),this['resetButtonView']['set']({'label':t('Clear'),'icon':_0x5ce12f,'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',_0x3b92b4=>!_0x3b92b4),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 _0xf100f3,IconView as _0x3313f5,LabeledFieldView as _0x5df8a9,createLabeledInputText as _0x3ece97}from'ckeditor5/src/ui.js';import{IconLoupe as _0x16c32a,IconCancel as _0xe3ad05}from'ckeditor5/src/icons.js';import{getTranslation as _0x305943}from'../../../../aicore/utils/common-translations.js';export class AIChatContextResourcesSearchInputView extends _0x5df8a9{['iconView'];['resetButtonView'];['_viewConfig'];constructor(_0x31c91c){const t=_0x31c91c['t'],_0x4ac875={'showResetButton':!0x0,'showIcon':!0x0,'creator':_0x3ece97,'label':_0x305943(_0x31c91c,'AI_CHAT_SEARCH_RESOURCES')};super(_0x31c91c,_0x4ac875['creator']),this['label']=_0x4ac875['label'],this['_viewConfig']=_0x4ac875,this['_viewConfig']['showIcon']&&this['_setupSearchIcon'](),this['_viewConfig']['showResetButton']&&this['_setupResetButton'](_0x31c91c,t),this['_setupEventListeners']();}['reset'](){this['fieldView']['reset'](),this['_viewConfig']['showResetButton']&&this['resetButtonView']&&(this['resetButtonView']['isVisible']=!0x1),this['search']('');}['search'](_0x4bfee3){this['fire']('search',_0x4bfee3);}['getQuery'](){return this['fieldView']['element']?.['value']||'';}['_setupSearchIcon'](){this['iconView']=new _0x3313f5(),this['iconView']['content']=_0x16c32a,this['fieldWrapperChildren']['add'](this['iconView'],0x0),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-icon'}});}['_setupResetButton'](_0x6cffe2,t){this['resetButtonView']=new _0xf100f3(_0x6cffe2),this['resetButtonView']['set']({'label':t('Clear'),'icon':_0xe3ad05,'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',_0x3c48b4=>!_0x3c48b4),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 _0x3e6400=_0x5776;(function(_0xe85b88,_0x3f4a0d){const _0x3f5968=_0x5776,_0x530ba9=_0xe85b88();while(!![]){try{const _0x22a7ed=parseInt(_0x3f5968(0x1d7))/0x1*(parseInt(_0x3f5968(0x1f9))/0x2)+parseInt(_0x3f5968(0x1f0))/0x3*(-parseInt(_0x3f5968(0x1f8))/0x4)+-parseInt(_0x3f5968(0x1d6))/0x5*(-parseInt(_0x3f5968(0x1f7))/0x6)+parseInt(_0x3f5968(0x1dd))/0x7*(-parseInt(_0x3f5968(0x1fd))/0x8)+-parseInt(_0x3f5968(0x1fb))/0x9+-parseInt(_0x3f5968(0x1ee))/0xa+parseInt(_0x3f5968(0x1e1))/0xb*(parseInt(_0x3f5968(0x1f3))/0xc);if(_0x22a7ed===_0x3f4a0d)break;else _0x530ba9['push'](_0x530ba9['shift']());}catch(_0x3c8015){_0x530ba9['push'](_0x530ba9['shift']());}}}(_0x1555,0x93fdf));import{View as _0xaeb554,ViewCollection as _0x1c3789}from'ckeditor5/src/ui.js';function _0x1555(){const _0x1f1957=['aiChatResources','useDefaultFiltering','updateResourceState','delegate','10977020pNzkkD','_createSkeletonView','9KLnLfG','ck\x20ck-search','bindTemplate','32518116HooBZs','getQuery','fire','locale','6cmIJRI','343532ugcTNB','2Snqonr','set','8653482WViCsQ','search','939208nDsSCu','addResourceToContext','div','render','_searchView','setResources','2521895Ortdch','765411wtODAd','children','loadSourceResources','ck-ai-chat-resources','_skeletonLoader','isLoading','63JrOwPe','_latestLoadResourcesUid','_createSearchSection','_createSearchView','11UlKeUk','ck-hidden','_source','_createResourcesListView','setTemplate','_resourcesListView','loadResources','highlightText','extendTemplate'];_0x1555=function(){return _0x1f1957;};return _0x1555();}import{uid as _0x1f06d5}from'ckeditor5/src/utils.js';function _0x5776(_0x2028d8,_0x318c3b){const _0x15554f=_0x1555();return _0x5776=function(_0x57766e,_0x1999b9){_0x57766e=_0x57766e-0x1d4;let _0xa1f501=_0x15554f[_0x57766e];return _0xa1f501;},_0x5776(_0x2028d8,_0x318c3b);}import{AIChatContextResourcesListView as _0x40c689}from'./aichatresourceslistview.js';import{AIChatContextResourcesSearchInputView as _0x3b61c2}from'./aichatresourcessearchinputview.js';import{AISkeletonView as _0x2fa984,SKELETON_DEFINITIONS as _0x1b7bc3}from'../../../../aicore/ui/aiskeleton.js';export class AIChatContextResourcesView extends _0xaeb554{[_0x3e6400(0x1d4)];[_0x3e6400(0x1e6)];[_0x3e6400(0x1db)];[_0x3e6400(0x1e3)];[_0x3e6400(0x1d8)];[_0x3e6400(0x1de)]=null;constructor(_0x182b0e,_0x11cf3a){const _0x120189=_0x3e6400;super(_0x182b0e),this[_0x120189(0x1e3)]=_0x11cf3a,this[_0x120189(0x1fa)](_0x120189(0x1dc),!0x0),this[_0x120189(0x1d4)]=this[_0x120189(0x1e0)]();const _0x37c408=this[_0x120189(0x1df)]();this[_0x120189(0x1e6)]=this[_0x120189(0x1e4)](),this[_0x120189(0x1db)]=this[_0x120189(0x1ef)](),this[_0x120189(0x1d8)]=new _0x1c3789([_0x37c408,this[_0x120189(0x1db)],this[_0x120189(0x1e6)]]),this[_0x120189(0x1e5)]({'tag':_0x120189(0x1ff),'attributes':{'class':_0x120189(0x1da)},'children':this[_0x120189(0x1d8)]});}[_0x3e6400(0x1e0)](){const _0x8ac7c1=_0x3e6400;return new _0x3b61c2(this[_0x8ac7c1(0x1f6)]);}[_0x3e6400(0x1df)](){const _0x31a437=_0x3e6400,_0x5f58a3=new _0xaeb554(this[_0x31a437(0x1f6)]);return _0x5f58a3[_0x31a437(0x1e5)]({'tag':_0x31a437(0x1ff),'attributes':{'class':_0x31a437(0x1f1)},'children':[this[_0x31a437(0x1d4)]]}),this[_0x31a437(0x1d4)]['on'](_0x31a437(0x1fc),(_0x3a13a5,_0x5b9d83)=>{const _0x5591a9=_0x31a437;this[_0x5591a9(0x1e7)](_0x5b9d83),this[_0x5591a9(0x1e3)][_0x5591a9(0x1eb)]&&this[_0x5591a9(0x1e6)][_0x5591a9(0x1e8)](_0x5b9d83);}),_0x5f58a3;}[_0x3e6400(0x1e4)](){const _0xb6b8d9=_0x3e6400,_0x448211=new _0x40c689(this[_0xb6b8d9(0x1f6)],this[_0xb6b8d9(0x1e3)]);return _0x448211[_0xb6b8d9(0x1ed)](_0xb6b8d9(0x1fe))['to'](this),_0x448211[_0xb6b8d9(0x1e9)]({'attributes':{'class':this[_0xb6b8d9(0x1f2)]['if'](_0xb6b8d9(0x1dc),_0xb6b8d9(0x1e2))}}),_0x448211;}[_0x3e6400(0x1ef)](){const _0x2deb55=_0x3e6400,_0x428928=new _0x2fa984(this[_0x2deb55(0x1f6)],_0x1b7bc3[_0x2deb55(0x1ea)]);return _0x428928[_0x2deb55(0x1e9)]({'attributes':{'class':[this[_0x2deb55(0x1f2)]['if'](_0x2deb55(0x1dc),_0x2deb55(0x1e2),_0x316092=>!_0x316092)]}}),_0x428928;}[_0x3e6400(0x200)](){const _0x3bb077=_0x3e6400;super[_0x3bb077(0x200)](),this[_0x3bb077(0x1e7)]('');}[_0x3e6400(0x1e7)](_0x1a0dc9){const _0x21b044=_0x3e6400,_0x3f2259=_0x1f06d5();this[_0x21b044(0x1de)]=_0x3f2259,this[_0x21b044(0x1f5)](_0x21b044(0x1d9),{'sourceId':this[_0x21b044(0x1e3)]['id'],'query':_0x1a0dc9,'uid':_0x3f2259}),this[_0x21b044(0x1dc)]=!0x0;}[_0x3e6400(0x1d5)](_0x1bc6e0,_0x5ad81d){const _0x4cf788=_0x3e6400;if(_0x5ad81d&&_0x5ad81d!==this[_0x4cf788(0x1de)])return;const _0x34c72a=this[_0x4cf788(0x1e3)][_0x4cf788(0x1eb)]?this[_0x4cf788(0x1d4)][_0x4cf788(0x1f4)]():'';this[_0x4cf788(0x1e6)][_0x4cf788(0x1d5)](_0x1bc6e0,_0x34c72a),requestAnimationFrame(()=>{const _0x362d2b=_0x4cf788;this[_0x362d2b(0x1dc)]=!0x1;});}[_0x3e6400(0x1ec)](_0xda4432,_0x34a410){const _0x1d10c5=_0x3e6400;this[_0x1d10c5(0x1e6)][_0x1d10c5(0x1ec)](_0xda4432,_0x34a410);}}
23
+ const _0x24a471=_0x55c4;(function(_0x19b880,_0x3d3b32){const _0x3a2d26=_0x55c4,_0x599b7b=_0x19b880();while(!![]){try{const _0xe72f60=parseInt(_0x3a2d26(0x12c))/0x1*(parseInt(_0x3a2d26(0x14c))/0x2)+-parseInt(_0x3a2d26(0x150))/0x3*(parseInt(_0x3a2d26(0x132))/0x4)+-parseInt(_0x3a2d26(0x130))/0x5*(-parseInt(_0x3a2d26(0x14d))/0x6)+parseInt(_0x3a2d26(0x144))/0x7+parseInt(_0x3a2d26(0x143))/0x8*(-parseInt(_0x3a2d26(0x148))/0x9)+-parseInt(_0x3a2d26(0x13d))/0xa+parseInt(_0x3a2d26(0x12f))/0xb;if(_0xe72f60===_0x3d3b32)break;else _0x599b7b['push'](_0x599b7b['shift']());}catch(_0x1a51c3){_0x599b7b['push'](_0x599b7b['shift']());}}}(_0x2dce,0x3fb8d));function _0x2dce(){const _0x101ca5=['_createSearchSection','1396532rHPkeg','ck-ai-chat-resources','fire','_source','_latestLoadResourcesUid','extendTemplate','render','loadResources','loadSourceResources','setResources','isLoading','4601800RYSNfX','ck\x20ck-search','_resourcesListView','_searchView','_createResourcesListView','children','4080488UFEKex','66360bFfzaB','useDefaultFiltering','_skeletonLoader','bindTemplate','9hoAIHU','addResourceToContext','set','_createSearchView','20BhcBCd','6DSyXAz','div','getQuery','3lIwMdy','updateResourceState','aiChatResources','search','highlightText','ck-hidden','locale','setTemplate','49199mrGhyE','_createSkeletonView','delegate','11214412CQDJxn','297085MFYbFS'];_0x2dce=function(){return _0x101ca5;};return _0x2dce();}import{View as _0x2984d5,ViewCollection as _0xf6284c}from'ckeditor5/src/ui.js';import{uid as _0x4bde25}from'ckeditor5/src/utils.js';import{AIChatContextResourcesListView as _0x18869b}from'./aichatresourceslistview.js';import{AIChatContextResourcesSearchInputView as _0x471d28}from'./aichatresourcessearchinputview.js';function _0x55c4(_0x149dbe,_0x2df0b0){const _0x2dceae=_0x2dce();return _0x55c4=function(_0x55c426,_0x2ea6a3){_0x55c426=_0x55c426-0x129;let _0x13e35d=_0x2dceae[_0x55c426];return _0x13e35d;},_0x55c4(_0x149dbe,_0x2df0b0);}import{AISkeletonView as _0xdc099b,SKELETON_DEFINITIONS as _0xc55e17}from'../../../../aicore/ui/aiskeleton.js';export class AIChatContextResourcesView extends _0x2984d5{[_0x24a471(0x140)];[_0x24a471(0x13f)];[_0x24a471(0x146)];[_0x24a471(0x135)];[_0x24a471(0x142)];[_0x24a471(0x136)]=null;constructor(_0x38cb08,_0x4d13a3){const _0x2a0f2d=_0x24a471;super(_0x38cb08),this[_0x2a0f2d(0x135)]=_0x4d13a3,this[_0x2a0f2d(0x14a)](_0x2a0f2d(0x13c),!0x0),this[_0x2a0f2d(0x140)]=this[_0x2a0f2d(0x14b)]();const _0x5ab7ab=this[_0x2a0f2d(0x131)]();this[_0x2a0f2d(0x13f)]=this[_0x2a0f2d(0x141)](),this[_0x2a0f2d(0x146)]=this[_0x2a0f2d(0x12d)](),this[_0x2a0f2d(0x142)]=new _0xf6284c([_0x5ab7ab,this[_0x2a0f2d(0x146)],this[_0x2a0f2d(0x13f)]]),this[_0x2a0f2d(0x12b)]({'tag':_0x2a0f2d(0x14e),'attributes':{'class':_0x2a0f2d(0x133)},'children':this[_0x2a0f2d(0x142)]});}[_0x24a471(0x14b)](){const _0x105c57=_0x24a471;return new _0x471d28(this[_0x105c57(0x12a)]);}[_0x24a471(0x131)](){const _0x1dd4ba=_0x24a471,_0xce9ec6=new _0x2984d5(this[_0x1dd4ba(0x12a)]);return _0xce9ec6[_0x1dd4ba(0x12b)]({'tag':_0x1dd4ba(0x14e),'attributes':{'class':_0x1dd4ba(0x13e)},'children':[this[_0x1dd4ba(0x140)]]}),this[_0x1dd4ba(0x140)]['on'](_0x1dd4ba(0x153),(_0x40d774,_0x143879)=>{const _0x30f9a1=_0x1dd4ba;this[_0x30f9a1(0x139)](_0x143879),this[_0x30f9a1(0x135)][_0x30f9a1(0x145)]&&this[_0x30f9a1(0x13f)][_0x30f9a1(0x154)](_0x143879);}),_0xce9ec6;}[_0x24a471(0x141)](){const _0x38e2e2=_0x24a471,_0x1818c4=new _0x18869b(this[_0x38e2e2(0x12a)],this[_0x38e2e2(0x135)]);return _0x1818c4[_0x38e2e2(0x12e)](_0x38e2e2(0x149))['to'](this),_0x1818c4[_0x38e2e2(0x137)]({'attributes':{'class':this[_0x38e2e2(0x147)]['if'](_0x38e2e2(0x13c),_0x38e2e2(0x129))}}),_0x1818c4;}[_0x24a471(0x12d)](){const _0x5ec6c3=_0x24a471,_0xf642a1=new _0xdc099b(this[_0x5ec6c3(0x12a)],_0xc55e17[_0x5ec6c3(0x152)]);return _0xf642a1[_0x5ec6c3(0x137)]({'attributes':{'class':[this[_0x5ec6c3(0x147)]['if'](_0x5ec6c3(0x13c),_0x5ec6c3(0x129),_0x546775=>!_0x546775)]}}),_0xf642a1;}[_0x24a471(0x138)](){const _0x466592=_0x24a471;super[_0x466592(0x138)](),this[_0x466592(0x139)]('');}[_0x24a471(0x139)](_0x20d901){const _0x578c6d=_0x24a471,_0x4c620f=_0x4bde25();this[_0x578c6d(0x136)]=_0x4c620f,this[_0x578c6d(0x134)](_0x578c6d(0x13a),{'sourceId':this[_0x578c6d(0x135)]['id'],'query':_0x20d901,'uid':_0x4c620f}),this[_0x578c6d(0x13c)]=!0x0;}[_0x24a471(0x13b)](_0xc79f0a,_0x2b67f5){const _0x452ccd=_0x24a471;if(_0x2b67f5&&_0x2b67f5!==this[_0x452ccd(0x136)])return;const _0x31343c=this[_0x452ccd(0x135)][_0x452ccd(0x145)]?this[_0x452ccd(0x140)][_0x452ccd(0x14f)]():'';this[_0x452ccd(0x13f)][_0x452ccd(0x13b)](_0xc79f0a,_0x31343c),requestAnimationFrame(()=>{const _0x6f6313=_0x452ccd;this[_0x6f6313(0x13c)]=!0x1;});}[_0x24a471(0x151)](_0x2563c7,_0x406620){const _0x47e010=_0x24a471;this[_0x47e010(0x13f)][_0x47e010(0x151)](_0x2563c7,_0x406620);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x55aabc=_0x1cd5;(function(_0x416781,_0x5ec758){const _0x4966fa=_0x1cd5,_0x535704=_0x416781();while(!![]){try{const _0x714fde=parseInt(_0x4966fa(0x1bc))/0x1*(-parseInt(_0x4966fa(0x1d3))/0x2)+parseInt(_0x4966fa(0x1d4))/0x3*(parseInt(_0x4966fa(0x1cf))/0x4)+parseInt(_0x4966fa(0x1c0))/0x5*(-parseInt(_0x4966fa(0x1ce))/0x6)+-parseInt(_0x4966fa(0x1d5))/0x7+parseInt(_0x4966fa(0x1cc))/0x8+-parseInt(_0x4966fa(0x1bb))/0x9+parseInt(_0x4966fa(0x1c8))/0xa;if(_0x714fde===_0x5ec758)break;else _0x535704['push'](_0x535704['shift']());}catch(_0x416fef){_0x535704['push'](_0x535704['shift']());}}}(_0x7a11,0x3597b));import{View as _0x4ce7ca}from'ckeditor5/src/ui.js';import{AIChatContextItemButtonView as _0x2ade26}from'../controls/aichatcontextitembuttonview.js';import{AIChatChipsOverflowManager as _0xaeff71}from'../controls/aichatchipsoverflowmanager.js';function _0x7a11(){const _0x6ffd75=['element','createCollection','7084170UEfrMe','div','locale','_contextChips','279704Mtgavu','ck-ai-chat-controls_context_show-more-button','212802gNMsZm','12ACcnbL','_createContextChips','setContainerElement','ck-ai-chat__feed__context-chips','6456lXkZrD','376206oHTENC','534058eCFDyz','render','querySelector','ck-ai-chat-context-chips-wrapper-balloon','ck-ai-chat-controls-button','setTemplate','1606914cFaAFK','101PHyWUU','add','destroy','ck-reset_all','45lNaJRV','_overflowManager','reorganizeChips','ck-ai-chat-context-controls__show-more-balloon-panel','ck-ai-chat-context-chips-wrapper','_bodyCollection'];_0x7a11=function(){return _0x6ffd75;};return _0x7a11();}function _0x1cd5(_0x87b9db,_0x2af51c){const _0x7a119c=_0x7a11();return _0x1cd5=function(_0x1cd511,_0x5b35dc){_0x1cd511=_0x1cd511-0x1ba;let _0xd02fa6=_0x7a119c[_0x1cd511];return _0xd02fa6;},_0x1cd5(_0x87b9db,_0x2af51c);}const jo=_0x55aabc(0x1d2),Fo=_0x55aabc(0x1c4),$o=_0x55aabc(0x1d8),vo=_0x55aabc(0x1d9),Vo=_0x55aabc(0x1cd),fo=_0x55aabc(0x1c3);export class AIChatFeedContextChipsView extends _0x4ce7ca{[_0x55aabc(0x1cb)]=this[_0x55aabc(0x1c7)]();[_0x55aabc(0x1c1)];[_0x55aabc(0x1c5)];constructor(_0x5804cd,_0x43f796,_0x5be7df){const _0x2f718b=_0x55aabc;super(_0x5804cd),this[_0x2f718b(0x1c5)]=_0x5be7df,this[_0x2f718b(0x1d0)](_0x43f796);const _0x45262c={'cssClasses':{'showMoreButton':Vo,'showMoreBalloon':fo,'overflowContainer':$o,'controlsButton':vo}};this[_0x2f718b(0x1c1)]=new _0xaeff71(_0x5804cd,this[_0x2f718b(0x1cb)],_0x45262c,this[_0x2f718b(0x1c5)],this),this[_0x2f718b(0x1ba)]({'tag':_0x2f718b(0x1c9),'attributes':{'class':[jo,'ck',_0x2f718b(0x1bf)]},'children':[{'tag':_0x2f718b(0x1c9),'attributes':{'class':Fo},'children':this[_0x2f718b(0x1cb)]}]});}[_0x55aabc(0x1d6)](){const _0x3681d6=_0x55aabc;super[_0x3681d6(0x1d6)]();const _0x1048f7=this[_0x3681d6(0x1c6)][_0x3681d6(0x1d7)]('.'+Fo);_0x1048f7&&(this[_0x3681d6(0x1c1)][_0x3681d6(0x1d1)](_0x1048f7),this[_0x3681d6(0x1c1)][_0x3681d6(0x1c2)]());}[_0x55aabc(0x1be)](){const _0x5765bf=_0x55aabc;super[_0x5765bf(0x1be)](),this[_0x5765bf(0x1c1)][_0x5765bf(0x1be)]();}[_0x55aabc(0x1d0)](_0x503239){const _0x1739be=_0x55aabc;for(const _0x4038f7 of _0x503239){const _0x5982dd=new _0x2ade26(this[_0x1739be(0x1ca)],_0x4038f7,!0x0,!0x1);this[_0x1739be(0x1cb)][_0x1739be(0x1bd)](_0x5982dd);}}}
23
+ function _0x25e9(){const _0x3e6c27=['3omxdEg','_contextChips','ck-reset_all','_createContextChips','ck-ai-chat-context-controls__show-more-balloon-panel','7NOTFel','ck-ai-chat-controls-button','setTemplate','setContainerElement','12669660xZpzcR','createCollection','locale','_bodyCollection','reorganizeChips','render','ck-ai-chat-context-chips-wrapper','5644116IaoEzm','add','109370OcSdhW','ck-ai-chat-controls_context_show-more-button','24758844WuqbWB','1302162WBpIHe','ck-ai-chat-context-chips-wrapper-balloon','35YNPfpX','ck-ai-chat__feed__context-chips','1scyTXO','element','926322zfOsrA','_overflowManager','993056bIbkVF','1518MbWWbP','div','querySelector','destroy'];_0x25e9=function(){return _0x3e6c27;};return _0x25e9();}const _0x34e105=_0xdaba;(function(_0x41627f,_0x3d637d){const _0x23efd0=_0xdaba,_0x2abfb3=_0x41627f();while(!![]){try{const _0x54e552=-parseInt(_0x23efd0(0xd0))/0x1*(-parseInt(_0x23efd0(0xcc))/0x2)+-parseInt(_0x23efd0(0xb7))/0x3*(-parseInt(_0x23efd0(0xc7))/0x4)+parseInt(_0x23efd0(0xce))/0x5*(parseInt(_0x23efd0(0xd2))/0x6)+parseInt(_0x23efd0(0xbc))/0x7*(-parseInt(_0x23efd0(0xd4))/0x8)+parseInt(_0x23efd0(0xc0))/0x9+parseInt(_0x23efd0(0xc9))/0xa*(-parseInt(_0x23efd0(0xd5))/0xb)+-parseInt(_0x23efd0(0xcb))/0xc;if(_0x54e552===_0x3d637d)break;else _0x2abfb3['push'](_0x2abfb3['shift']());}catch(_0xb39148){_0x2abfb3['push'](_0x2abfb3['shift']());}}}(_0x25e9,0xd077c));import{View as _0x423ec2}from'ckeditor5/src/ui.js';import{AIChatContextItemButtonView as _0x4bbadc}from'../controls/aichatcontextitembuttonview.js';function _0xdaba(_0x1a36d7,_0x3105ef){const _0x25e915=_0x25e9();return _0xdaba=function(_0xdaba37,_0x539d21){_0xdaba37=_0xdaba37-0xb5;let _0x2c78a5=_0x25e915[_0xdaba37];return _0x2c78a5;},_0xdaba(_0x1a36d7,_0x3105ef);}import{AIChatChipsOverflowManager as _0x2826ff}from'../controls/aichatchipsoverflowmanager.js';const po=_0x34e105(0xcf),wo=_0x34e105(0xc6),_o=_0x34e105(0xcd),uo=_0x34e105(0xbd),xo=_0x34e105(0xca),mo=_0x34e105(0xbb);export class AIChatFeedContextChipsView extends _0x423ec2{[_0x34e105(0xb8)]=this[_0x34e105(0xc1)]();[_0x34e105(0xd3)];[_0x34e105(0xc3)];constructor(_0x8bbb14,_0x1aaace,_0x218c18){const _0x42f8c4=_0x34e105;super(_0x8bbb14),this[_0x42f8c4(0xc3)]=_0x218c18,this[_0x42f8c4(0xba)](_0x1aaace);const _0x54d61f={'cssClasses':{'showMoreButton':xo,'showMoreBalloon':mo,'overflowContainer':_o,'controlsButton':uo}};this[_0x42f8c4(0xd3)]=new _0x2826ff(_0x8bbb14,this[_0x42f8c4(0xb8)],_0x54d61f,this[_0x42f8c4(0xc3)],this),this[_0x42f8c4(0xbe)]({'tag':_0x42f8c4(0xd6),'attributes':{'class':[po,'ck',_0x42f8c4(0xb9)]},'children':[{'tag':_0x42f8c4(0xd6),'attributes':{'class':wo},'children':this[_0x42f8c4(0xb8)]}]});}[_0x34e105(0xc5)](){const _0x377c3d=_0x34e105;super[_0x377c3d(0xc5)]();const _0x226485=this[_0x377c3d(0xd1)][_0x377c3d(0xb5)]('.'+wo);_0x226485&&(this[_0x377c3d(0xd3)][_0x377c3d(0xbf)](_0x226485),this[_0x377c3d(0xd3)][_0x377c3d(0xc4)]());}[_0x34e105(0xb6)](){const _0x860e1=_0x34e105;super[_0x860e1(0xb6)](),this[_0x860e1(0xd3)][_0x860e1(0xb6)]();}[_0x34e105(0xba)](_0x489d1c){const _0x30b209=_0x34e105;for(const _0x4e0707 of _0x489d1c){const _0x469bbd=new _0x4bbadc(this[_0x30b209(0xc2)],_0x4e0707,!0x0,!0x1);this[_0x30b209(0xb8)][_0x30b209(0xc8)](_0x469bbd);}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x32205b=_0xb391;function _0xb391(_0x4f2180,_0x197a21){var _0x5e6f2b=_0x5e6f();return _0xb391=function(_0xb39151,_0x51caa6){_0xb39151=_0xb39151-0xc6;var _0xd6e28=_0x5e6f2b[_0xb39151];return _0xd6e28;},_0xb391(_0x4f2180,_0x197a21);}(function(_0x4383d2,_0x4f6592){var _0x2bd079=_0xb391,_0x1851ce=_0x4383d2();while(!![]){try{var _0x3c19fa=parseInt(_0x2bd079(0xca))/0x1+-parseInt(_0x2bd079(0xd0))/0x2*(-parseInt(_0x2bd079(0xd4))/0x3)+-parseInt(_0x2bd079(0xd1))/0x4+-parseInt(_0x2bd079(0xdc))/0x5*(parseInt(_0x2bd079(0xd3))/0x6)+parseInt(_0x2bd079(0xcd))/0x7+parseInt(_0x2bd079(0xd6))/0x8*(parseInt(_0x2bd079(0xcf))/0x9)+-parseInt(_0x2bd079(0xce))/0xa*(parseInt(_0x2bd079(0xd8))/0xb);if(_0x3c19fa===_0x4f6592)break;else _0x1851ce['push'](_0x1851ce['shift']());}catch(_0x58bf69){_0x1851ce['push'](_0x1851ce['shift']());}}}(_0x5e6f,0x82ce9));function _0x5e6f(){var _0x108551=['markAsDone','1236620TaPLFU','12099450pTWJne','9cctSPW','1569450sYlHQJ','899776otHWSZ','initialContent','506958QiPCHB','3Gmutvi','options','6112184SeKqzB','setContent','11PJhrtX','ck-ai-chat-error_warning','innerHTML','render','35uwfhhR','warning','ck-ai-chat-error','level','extendTemplate','836717DvxdMV','element'];_0x5e6f=function(){return _0x108551;};return _0x5e6f();}import{AIChatFeedItemView as _0x57b6db}from'./aichatfeeditemview.js';export class AIChatFeedErrorItemView extends _0x57b6db{constructor(_0x2ba3ab){var _0x43a63d=_0xb391;super(_0x2ba3ab),this[_0x43a63d(0xc9)]({'attributes':{'class':[_0x43a63d(0xc7),_0x43a63d(0xc6)===_0x2ba3ab[_0x43a63d(0xc8)]?_0x43a63d(0xd9):'']}});}[_0x32205b(0xdb)](){var _0x184166=_0x32205b;super[_0x184166(0xdb)](),this[_0x184166(0xd7)](this[_0x184166(0xd5)][_0x184166(0xd2)]),this[_0x184166(0xcc)]();}[_0x32205b(0xd7)](_0x1171d4){var _0x38e60d=_0x32205b;this[_0x38e60d(0xcb)][_0x38e60d(0xda)]=_0x1171d4;}}
23
+ function _0x2ec3(){var _0x449bba=['initialContent','78904ChVvNb','1162421woSIOT','6qTgGUm','warning','element','2390asXxew','336196RGgTDg','markAsDone','setContent','42zdwQPr','4021565xtUpPq','render','312yhDRFo','13DGkHsq','9PMDTLG','options','303120OUjEZC','ck-ai-chat-error_warning','24211bPrVtE','6121208QdCOyN','extendTemplate','level','ck-ai-chat-error','innerHTML'];_0x2ec3=function(){return _0x449bba;};return _0x2ec3();}var _0x267ca2=_0x447b;(function(_0xddebe1,_0x23e1e8){var _0x33e5da=_0x447b,_0xaf1670=_0xddebe1();while(!![]){try{var _0x551c2d=parseInt(_0x33e5da(0x109))/0x1*(parseInt(_0x33e5da(0xfc))/0x2)+-parseInt(_0x33e5da(0xfe))/0x3*(parseInt(_0x33e5da(0x10c))/0x4)+parseInt(_0x33e5da(0x106))/0x5+-parseInt(_0x33e5da(0x105))/0x6*(-parseInt(_0x33e5da(0x102))/0x7)+-parseInt(_0x33e5da(0x10f))/0x8*(-parseInt(_0x33e5da(0x10a))/0x9)+-parseInt(_0x33e5da(0x101))/0xa*(-parseInt(_0x33e5da(0x10e))/0xb)+parseInt(_0x33e5da(0x108))/0xc*(-parseInt(_0x33e5da(0xfd))/0xd);if(_0x551c2d===_0x23e1e8)break;else _0xaf1670['push'](_0xaf1670['shift']());}catch(_0x3961f1){_0xaf1670['push'](_0xaf1670['shift']());}}}(_0x2ec3,0x724cd));import{AIChatFeedItemView as _0x4056e0}from'./aichatfeeditemview.js';function _0x447b(_0x287910,_0x3ad407){var _0x2ec38d=_0x2ec3();return _0x447b=function(_0x447b0f,_0x230722){_0x447b0f=_0x447b0f-0xfc;var _0x58f01b=_0x2ec38d[_0x447b0f];return _0x58f01b;},_0x447b(_0x287910,_0x3ad407);}export class AIChatFeedErrorItemView extends _0x4056e0{constructor(_0x4d274f){var _0x4f894a=_0x447b;super(_0x4d274f),this[_0x4f894a(0x110)]({'attributes':{'class':[_0x4f894a(0x112),_0x4f894a(0xff)===_0x4d274f[_0x4f894a(0x111)]?_0x4f894a(0x10d):'']}});}[_0x267ca2(0x107)](){var _0x194473=_0x267ca2;super[_0x194473(0x107)](),this[_0x194473(0x104)](this[_0x194473(0x10b)][_0x194473(0x114)]),this[_0x194473(0x103)]();}[_0x267ca2(0x104)](_0x4804fb){var _0x5779a9=_0x267ca2;this[_0x5779a9(0x100)][_0x5779a9(0x113)]=_0x4804fb;}}
@@ -12,6 +12,7 @@ import { AIChatFeedItemView, type AIChatItemViewOptions } from './aichatfeeditem
12
12
  * and should be displayed above all replies for that interaction.
13
13
  */
14
14
  export declare class AIChatFeedInteractionHeaderView extends AIChatFeedItemView<AIChatFeedInteractionHeaderViewOptions> {
15
+ capabilities: AICapabilitiesConfig;
15
16
  /**
16
17
  * @inheritDoc
17
18
  */