@ckeditor/ckeditor5-ai 47.0.0 → 47.1.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (328) hide show
  1. package/build/ai.js +1 -1
  2. package/ckeditor5-metadata.json +9 -2
  3. package/dist/index-editor.css +119 -34
  4. package/dist/index.css +144 -35
  5. package/dist/index.js +4 -4
  6. package/dist/translations/af.js +1 -1
  7. package/dist/translations/af.umd.js +1 -1
  8. package/dist/translations/ar.js +1 -1
  9. package/dist/translations/ar.umd.js +1 -1
  10. package/dist/translations/ast.js +1 -1
  11. package/dist/translations/ast.umd.js +1 -1
  12. package/dist/translations/az.js +1 -1
  13. package/dist/translations/az.umd.js +1 -1
  14. package/dist/translations/be.js +1 -1
  15. package/dist/translations/be.umd.js +1 -1
  16. package/dist/translations/bg.js +1 -1
  17. package/dist/translations/bg.umd.js +1 -1
  18. package/dist/translations/bn.js +1 -1
  19. package/dist/translations/bn.umd.js +1 -1
  20. package/dist/translations/bs.js +1 -1
  21. package/dist/translations/bs.umd.js +1 -1
  22. package/dist/translations/ca.js +1 -1
  23. package/dist/translations/ca.umd.js +1 -1
  24. package/dist/translations/cs.js +1 -1
  25. package/dist/translations/cs.umd.js +1 -1
  26. package/dist/translations/da.js +1 -1
  27. package/dist/translations/da.umd.js +1 -1
  28. package/dist/translations/de-ch.js +1 -1
  29. package/dist/translations/de-ch.umd.js +1 -1
  30. package/dist/translations/de.js +1 -1
  31. package/dist/translations/de.umd.js +1 -1
  32. package/dist/translations/el.js +1 -1
  33. package/dist/translations/el.umd.js +1 -1
  34. package/dist/translations/en-au.js +1 -1
  35. package/dist/translations/en-au.umd.js +1 -1
  36. package/dist/translations/en-gb.js +1 -1
  37. package/dist/translations/en-gb.umd.js +1 -1
  38. package/dist/translations/en.js +1 -1
  39. package/dist/translations/en.umd.js +1 -1
  40. package/dist/translations/eo.js +1 -1
  41. package/dist/translations/eo.umd.js +1 -1
  42. package/dist/translations/es-co.js +1 -1
  43. package/dist/translations/es-co.umd.js +1 -1
  44. package/dist/translations/es.js +1 -1
  45. package/dist/translations/es.umd.js +1 -1
  46. package/dist/translations/et.js +1 -1
  47. package/dist/translations/et.umd.js +1 -1
  48. package/dist/translations/eu.js +1 -1
  49. package/dist/translations/eu.umd.js +1 -1
  50. package/dist/translations/fa.js +1 -1
  51. package/dist/translations/fa.umd.js +1 -1
  52. package/dist/translations/fi.js +1 -1
  53. package/dist/translations/fi.umd.js +1 -1
  54. package/dist/translations/fr.js +1 -1
  55. package/dist/translations/fr.umd.js +1 -1
  56. package/dist/translations/gl.js +1 -1
  57. package/dist/translations/gl.umd.js +1 -1
  58. package/dist/translations/gu.js +1 -1
  59. package/dist/translations/gu.umd.js +1 -1
  60. package/dist/translations/he.js +1 -1
  61. package/dist/translations/he.umd.js +1 -1
  62. package/dist/translations/hi.js +1 -1
  63. package/dist/translations/hi.umd.js +1 -1
  64. package/dist/translations/hr.js +1 -1
  65. package/dist/translations/hr.umd.js +1 -1
  66. package/dist/translations/hu.js +1 -1
  67. package/dist/translations/hu.umd.js +1 -1
  68. package/dist/translations/hy.js +1 -1
  69. package/dist/translations/hy.umd.js +1 -1
  70. package/dist/translations/id.js +1 -1
  71. package/dist/translations/id.umd.js +1 -1
  72. package/dist/translations/it.js +1 -1
  73. package/dist/translations/it.umd.js +1 -1
  74. package/dist/translations/ja.js +1 -1
  75. package/dist/translations/ja.umd.js +1 -1
  76. package/dist/translations/jv.js +1 -1
  77. package/dist/translations/jv.umd.js +1 -1
  78. package/dist/translations/kk.js +1 -1
  79. package/dist/translations/kk.umd.js +1 -1
  80. package/dist/translations/km.js +1 -1
  81. package/dist/translations/km.umd.js +1 -1
  82. package/dist/translations/kn.js +1 -1
  83. package/dist/translations/kn.umd.js +1 -1
  84. package/dist/translations/ko.js +1 -1
  85. package/dist/translations/ko.umd.js +1 -1
  86. package/dist/translations/ku.js +1 -1
  87. package/dist/translations/ku.umd.js +1 -1
  88. package/dist/translations/lt.js +1 -1
  89. package/dist/translations/lt.umd.js +1 -1
  90. package/dist/translations/lv.js +1 -1
  91. package/dist/translations/lv.umd.js +1 -1
  92. package/dist/translations/ms.js +1 -1
  93. package/dist/translations/ms.umd.js +1 -1
  94. package/dist/translations/nb.js +1 -1
  95. package/dist/translations/nb.umd.js +1 -1
  96. package/dist/translations/ne.js +1 -1
  97. package/dist/translations/ne.umd.js +1 -1
  98. package/dist/translations/nl.js +1 -1
  99. package/dist/translations/nl.umd.js +1 -1
  100. package/dist/translations/no.js +1 -1
  101. package/dist/translations/no.umd.js +1 -1
  102. package/dist/translations/oc.js +1 -1
  103. package/dist/translations/oc.umd.js +1 -1
  104. package/dist/translations/pl.js +1 -1
  105. package/dist/translations/pl.umd.js +1 -1
  106. package/dist/translations/pt-br.js +1 -1
  107. package/dist/translations/pt-br.umd.js +1 -1
  108. package/dist/translations/pt.js +1 -1
  109. package/dist/translations/pt.umd.js +1 -1
  110. package/dist/translations/ro.js +1 -1
  111. package/dist/translations/ro.umd.js +1 -1
  112. package/dist/translations/ru.js +1 -1
  113. package/dist/translations/ru.umd.js +1 -1
  114. package/dist/translations/si.js +1 -1
  115. package/dist/translations/si.umd.js +1 -1
  116. package/dist/translations/sk.js +1 -1
  117. package/dist/translations/sk.umd.js +1 -1
  118. package/dist/translations/sl.js +1 -1
  119. package/dist/translations/sl.umd.js +1 -1
  120. package/dist/translations/sq.js +1 -1
  121. package/dist/translations/sq.umd.js +1 -1
  122. package/dist/translations/sr-latn.js +1 -1
  123. package/dist/translations/sr-latn.umd.js +1 -1
  124. package/dist/translations/sr.js +1 -1
  125. package/dist/translations/sr.umd.js +1 -1
  126. package/dist/translations/sv.js +1 -1
  127. package/dist/translations/sv.umd.js +1 -1
  128. package/dist/translations/th.js +1 -1
  129. package/dist/translations/th.umd.js +1 -1
  130. package/dist/translations/ti.js +1 -1
  131. package/dist/translations/ti.umd.js +1 -1
  132. package/dist/translations/tk.js +1 -1
  133. package/dist/translations/tk.umd.js +1 -1
  134. package/dist/translations/tr.js +1 -1
  135. package/dist/translations/tr.umd.js +1 -1
  136. package/dist/translations/tt.js +1 -1
  137. package/dist/translations/tt.umd.js +1 -1
  138. package/dist/translations/ug.js +1 -1
  139. package/dist/translations/ug.umd.js +1 -1
  140. package/dist/translations/uk.js +1 -1
  141. package/dist/translations/uk.umd.js +1 -1
  142. package/dist/translations/ur.js +1 -1
  143. package/dist/translations/ur.umd.js +1 -1
  144. package/dist/translations/uz.js +1 -1
  145. package/dist/translations/uz.umd.js +1 -1
  146. package/dist/translations/vi.js +1 -1
  147. package/dist/translations/vi.umd.js +1 -1
  148. package/dist/translations/zh-cn.js +1 -1
  149. package/dist/translations/zh-cn.umd.js +1 -1
  150. package/dist/translations/zh.js +1 -1
  151. package/dist/translations/zh.umd.js +1 -1
  152. package/lang/contexts.json +5 -0
  153. package/package.json +15 -15
  154. package/src/aiactions/aiactions.js +1 -1
  155. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  156. package/src/aiactions/model/aiactionsreply.js +1 -1
  157. package/src/aiassistant/adapters/aiadapter.js +1 -1
  158. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  159. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  160. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  161. package/src/aiassistant/aiassistant.js +1 -1
  162. package/src/aiassistant/aiassistantediting.js +1 -1
  163. package/src/aiassistant/aiassistantui.js +1 -1
  164. package/src/aiassistant/legacyerrors.js +1 -1
  165. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  166. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  167. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  168. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  169. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  170. package/src/aiassistant/ui/form/aiformview.js +1 -1
  171. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  172. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  173. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  174. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  175. package/src/aiassistant/utils/common-translations.js +1 -1
  176. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  177. package/src/aiballoon/aiballoon.js +1 -1
  178. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  179. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  180. package/src/aiballoon/ui/aiballoonview.js +1 -1
  181. package/src/aichat/aichat.d.ts +3 -3
  182. package/src/aichat/aichat.js +1 -1
  183. package/src/aichat/aichatcontroller.js +1 -1
  184. package/src/aichat/aichatui.d.ts +6 -0
  185. package/src/aichat/aichatui.js +1 -1
  186. package/src/aichat/model/aichatcontext.js +1 -1
  187. package/src/aichat/model/aichatconversation.d.ts +2 -4
  188. package/src/aichat/model/aichatconversation.js +1 -1
  189. package/src/aichat/model/aichatinteraction.js +1 -1
  190. package/src/aichat/model/aichatmodels.d.ts +11 -4
  191. package/src/aichat/model/aichatmodels.js +1 -1
  192. package/src/aichat/ui/aichatcontrolsview.d.ts +9 -0
  193. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  194. package/src/aichat/ui/aichatfeedview.js +1 -1
  195. package/src/aichat/ui/aichatheaderview.js +1 -1
  196. package/src/aichat/ui/aichatview.js +1 -1
  197. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  198. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  199. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  200. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  201. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  202. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  203. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  204. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  205. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  206. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  207. package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
  208. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  209. package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
  210. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  211. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  212. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  213. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  214. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  215. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  216. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  217. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  218. package/src/aichat/utils/eventnames.js +1 -1
  219. package/src/aichat/utils/promisequeue.js +1 -1
  220. package/src/aichat/utils/scrollmanager.js +1 -1
  221. package/src/aichathistory/aichathistory.js +1 -1
  222. package/src/aichathistory/aichathistorycontroller.js +1 -1
  223. package/src/aichathistory/aichathistoryui.js +1 -1
  224. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  225. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  226. package/src/aichathistory/ui/aichathistorylistitemview.js +1 -1
  227. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  228. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  229. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  230. package/src/aiconfig.d.ts +4 -0
  231. package/src/aicore/aiconnector.js +1 -1
  232. package/src/aicore/aiediting.js +1 -1
  233. package/src/aicore/model/aicapabilities.js +1 -1
  234. package/src/aicore/model/aicontext.js +1 -1
  235. package/src/aicore/model/aiinteraction.js +1 -1
  236. package/src/aicore/model/aireply.d.ts +1 -1
  237. package/src/aicore/model/aireply.js +1 -1
  238. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  239. package/src/aicore/pipeline/airesponseparser.js +2 -2
  240. package/src/aicore/ui/aidisclaimerview.js +1 -1
  241. package/src/aicore/ui/aiskeleton.js +1 -1
  242. package/src/aicore/ui/aispinner.js +1 -1
  243. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  244. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  245. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  246. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  247. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  248. package/src/aicore/utils/common-translations.js +1 -1
  249. package/src/aicore/utils/createresizebutton.js +1 -1
  250. package/src/aicore/utils/documentposition.js +1 -1
  251. package/src/aicore/utils/documentrange.js +1 -1
  252. package/src/aicore/utils/eventnames.js +1 -1
  253. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  254. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  255. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  256. package/src/aicore/utils/htmlparser.js +1 -1
  257. package/src/aicore/utils/htmlstreamer.js +1 -1
  258. package/src/aieditorintegration/aieditorintegration.js +1 -1
  259. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  260. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  261. package/src/aiquickactions/aiquickactions.d.ts +2 -1
  262. package/src/aiquickactions/aiquickactions.js +1 -1
  263. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  264. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  265. package/src/aiquickactions/aiquickactionsui.js +1 -1
  266. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.d.ts +2 -1
  267. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  268. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  269. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  270. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  271. package/src/aireviewmode/aireviewmode.js +1 -1
  272. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  273. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  274. package/src/aireviewmode/aireviewmodeui.d.ts +3 -1
  275. package/src/aireviewmode/aireviewmodeui.js +1 -1
  276. package/src/aireviewmode/model/aireviewcheck.js +1 -1
  277. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  278. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  279. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  280. package/src/aireviewmode/model/aireviewcheckresultchange.d.ts +6 -0
  281. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  282. package/src/aireviewmode/model/aireviewcheckrun.d.ts +31 -3
  283. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  284. package/src/aireviewmode/model/aireviewcustomcheckrun.d.ts +1 -1
  285. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  286. package/src/aireviewmode/model/aireviewmodels.js +1 -1
  287. package/src/aireviewmode/model/aireviewsystemcheckrun.d.ts +5 -1
  288. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  289. package/src/aireviewmode/ui/aireviemodepromptinputview.d.ts +7 -5
  290. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  291. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.d.ts +3 -0
  292. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  293. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.d.ts +4 -0
  294. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  295. package/src/aireviewmode/ui/aireviewmodecustomcheckview.d.ts +27 -3
  296. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  297. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  298. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.d.ts +13 -1
  299. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  300. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  301. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  302. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  303. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.d.ts +1 -1
  304. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  305. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  306. package/src/aitabs/aitabs.js +1 -1
  307. package/src/aitabs/aitabsmainview.d.ts +4 -0
  308. package/src/aitabs/aitabsmainview.js +1 -1
  309. package/src/aitabs/tabs/aitabsview.js +1 -1
  310. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  311. package/src/aitabs/tabs/tabpanelview.js +1 -1
  312. package/src/errors.d.ts +5 -0
  313. package/src/errors.js +23 -0
  314. package/src/index.js +1 -1
  315. package/theme/aichat/aichat-controls/aichat-context-controls-balloon-panels.css +4 -0
  316. package/theme/aichat/aichat-controls/model-unavailable-message.css +39 -0
  317. package/theme/aichat/aichat-controls.css +1 -0
  318. package/theme/aichat/aichat.css +0 -1
  319. package/theme/aichat/aichatfeed.css +9 -0
  320. package/theme/aichat/aisuggestioncontainer.css +7 -1
  321. package/theme/aireviewmode/aireviewmode-balloon-panel-suggestion.css +4 -0
  322. package/theme/aireviewmode/aireviewmode-check-list.css +4 -0
  323. package/theme/aireviewmode/aireviewmode-check-run-result.css +25 -19
  324. package/theme/aireviewmode/aireviewmode-check-run.css +35 -7
  325. package/theme/aitabs/aitabsview.css +2 -2
  326. package/theme/aitabs/tabs/tabsview.css +13 -3
  327. package/src/aireviewmode/ui/form/aireviewmodeformamanager.d.ts +0 -16
  328. package/src/aireviewmode/ui/form/aireviewmodeformamanager.js +0 -23
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x5af7(_0x5572ce,_0x190d5d){const _0x5c018b=_0x5c01();return _0x5af7=function(_0x5af798,_0xc92ce7){_0x5af798=_0x5af798-0x1f2;let _0x236f65=_0x5c018b[_0x5af798];return _0x236f65;},_0x5af7(_0x5572ce,_0x190d5d);}const _0x5295ce=_0x5af7;(function(_0x433e86,_0x2adb5a){const _0x538d2f=_0x5af7,_0x1fc99c=_0x433e86();while(!![]){try{const _0x388719=parseInt(_0x538d2f(0x20e))/0x1+parseInt(_0x538d2f(0x23a))/0x2+-parseInt(_0x538d2f(0x26a))/0x3*(parseInt(_0x538d2f(0x259))/0x4)+-parseInt(_0x538d2f(0x222))/0x5+parseInt(_0x538d2f(0x21a))/0x6+-parseInt(_0x538d2f(0x207))/0x7+-parseInt(_0x538d2f(0x26c))/0x8*(-parseInt(_0x538d2f(0x22f))/0x9);if(_0x388719===_0x2adb5a)break;else _0x1fc99c['push'](_0x1fc99c['shift']());}catch(_0x462be5){_0x1fc99c['push'](_0x1fc99c['shift']());}}}(_0x5c01,0x69437));import{BalloonPanelView as _0xe68e74,ButtonView as _0x338a4f,clickOutsideHandler as _0x365b23,FileDialogButtonView as _0x4f054f,IconView as _0x2be7bd,View as _0x55c271}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x3337bc,IconDocument as _0x41a09f,IconDocumentOutline as _0x279a9f,IconDropdownArrow as _0x93c803,IconLink as _0x30491c,IconPaperClip as _0x2d847b}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x2fc5d8}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x1611c8}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x5d1362}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x37ce30}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x370ec7}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x5295ce(0x27b),_0x5295ce(0x235),_0x5295ce(0x258),_0x5295ce(0x1f4),_0x5295ce(0x215),_0x5295ce(0x21f)];const bo=_0x5295ce(0x23e),To=_0x5295ce(0x24b),Ao=_0x5295ce(0x22c),ko=_0x5295ce(0x24c),Eo=_0x5295ce(0x21c),vo=_0x5295ce(0x263),go=_0x5295ce(0x1f5),Vo=_0x5295ce(0x265),fo=_0x5295ce(0x250),Io=_0x5295ce(0x24e),Po=_0x5295ce(0x272),Ro=_0x5295ce(0x27d),So=[_0xe68e74[_0x5295ce(0x201)][_0x5295ce(0x245)],_0xe68e74[_0x5295ce(0x201)][_0x5295ce(0x1f2)],_0xe68e74[_0x5295ce(0x201)][_0x5295ce(0x23f)],_0xe68e74[_0x5295ce(0x201)][_0x5295ce(0x261)],_0xe68e74[_0x5295ce(0x201)][_0x5295ce(0x267)],_0xe68e74[_0x5295ce(0x201)][_0x5295ce(0x20c)]];export class AIChatContextPanelView extends _0x55c271{[_0x5295ce(0x228)];[_0x5295ce(0x211)]=this[_0x5295ce(0x25a)]();[_0x5295ce(0x20d)]=this[_0x5295ce(0x25a)]();[_0x5295ce(0x1fd)];[_0x5295ce(0x209)];[_0x5295ce(0x210)];[_0x5295ce(0x1f9)];[_0x5295ce(0x27c)];[_0x5295ce(0x213)];[_0x5295ce(0x249)];constructor(_0x32f703,_0x2e657f){const _0x376a05=_0x5295ce;super(_0x32f703),this[_0x376a05(0x249)]=_0x2e657f,this[_0x376a05(0x211)]=this[_0x376a05(0x25a)](),this[_0x376a05(0x20d)]=this[_0x376a05(0x25a)](),this[_0x376a05(0x228)]=this[_0x376a05(0x20a)](_0x32f703),this[_0x376a05(0x209)]=this[_0x376a05(0x216)](_0x32f703),this[_0x376a05(0x210)]=this[_0x376a05(0x25b)](_0x32f703),this[_0x376a05(0x27c)]=this[_0x376a05(0x220)](_0x32f703,_0x2e657f);const _0x26d3dd={'cssClasses':{'showMoreButton':Io,'showMoreBalloon':Po,'overflowContainer':fo,'controlsButton':Vo}};this[_0x376a05(0x1fd)]=new _0x5d1362(_0x32f703,this[_0x376a05(0x211)],_0x26d3dd,this[_0x376a05(0x249)],this),this[_0x376a05(0x213)]={'buttonView':this[_0x376a05(0x228)],'balloonView':this[_0x376a05(0x209)],'hideMethod':this[_0x376a05(0x1f8)][_0x376a05(0x260)](this),'showMethod':this[_0x376a05(0x238)][_0x376a05(0x260)](this)},this[_0x376a05(0x224)](),this[_0x376a05(0x274)]();}[_0x5295ce(0x20f)](){const _0x52ecf5=_0x5295ce;super[_0x52ecf5(0x20f)](),this[_0x52ecf5(0x1f6)](),this[_0x52ecf5(0x1fd)][_0x52ecf5(0x278)](this[_0x52ecf5(0x254)]),this[_0x52ecf5(0x1fd)][_0x52ecf5(0x230)]();}[_0x5295ce(0x239)](){const _0x1e93a1=_0x5295ce;super[_0x1e93a1(0x239)](),this[_0x1e93a1(0x1fd)][_0x1e93a1(0x239)](),this[_0x1e93a1(0x27c)][_0x1e93a1(0x239)]();}[_0x5295ce(0x275)](_0x248aec,_0x20c157){const _0x46e363=_0x5295ce,_0x3c1376=this[_0x46e363(0x269)](_0x248aec,_0x46e363(0x257),!0x0,_0x20c157);this[_0x46e363(0x268)](_0x3c1376,this[_0x46e363(0x211)]),this[_0x46e363(0x1fd)][_0x46e363(0x230)]();}[_0x5295ce(0x215)](_0x3e4530){const _0x2d141a=_0x5295ce;this[_0x2d141a(0x27a)](_0x3e4530,this[_0x2d141a(0x211)]),this[_0x2d141a(0x27a)](_0x3e4530,this[_0x2d141a(0x1fd)][_0x2d141a(0x240)]),this[_0x2d141a(0x1fd)][_0x2d141a(0x230)]();}[_0x5295ce(0x262)](_0x3ed6f8,_0x4f9b0f){const _0x4b8e12=_0x5295ce;let _0x582df7=this[_0x4b8e12(0x211)][_0x4b8e12(0x27e)](_0x52062b=>_0x52062b['id']===_0x3ed6f8);_0x582df7||(_0x582df7=this[_0x4b8e12(0x1fd)][_0x4b8e12(0x240)][_0x4b8e12(0x27e)](_0x503487=>_0x503487['id']===_0x3ed6f8)),_0x582df7&&(_0x582df7[_0x4b8e12(0x22b)]=_0x4f9b0f);}[_0x5295ce(0x271)](_0x5940b4){const _0x3304a4=_0x5295ce;this[_0x3304a4(0x20d)][_0x3304a4(0x26b)]();for(const _0xbee25c of _0x5940b4){const _0x4e00ef=this[_0x3304a4(0x269)](_0xbee25c,_0x3304a4(0x23c),!0x1,!0x1);this[_0x3304a4(0x268)](_0x4e00ef,this[_0x3304a4(0x20d)]);}}[_0x5295ce(0x25e)](){const _0x239691=_0x5295ce;this[_0x239691(0x211)][_0x239691(0x26b)](),this[_0x239691(0x1fd)][_0x239691(0x26b)]();}[_0x5295ce(0x246)](){const _0x195f92=_0x5295ce;this[_0x195f92(0x20d)][_0x195f92(0x26b)]();}[_0x5295ce(0x255)](_0x5137ad,_0x3fd357,_0x2aa241){const _0x4887bd=_0x5295ce;this[_0x4887bd(0x27c)][_0x4887bd(0x255)](_0x5137ad,_0x3fd357,_0x2aa241);}[_0x5295ce(0x1f8)](){const _0x106749=_0x5295ce;this[_0x106749(0x24a)](!0x1);}[_0x5295ce(0x238)](){const _0x36f2be=_0x5295ce;this[_0x36f2be(0x24a)](!0x0);}[_0x5295ce(0x214)](){const _0x2078f9=_0x5295ce;this[_0x2078f9(0x210)][_0x2078f9(0x23b)](),this[_0x2078f9(0x228)][_0x2078f9(0x21e)]=!0x1,this[_0x2078f9(0x1f9)]&&this[_0x2078f9(0x1f9)][_0x2078f9(0x26b)]();}[_0x5295ce(0x1f3)](){const _0xf602cd=_0x5295ce;this[_0xf602cd(0x210)][_0xf602cd(0x227)](),this[_0xf602cd(0x228)][_0xf602cd(0x21e)]=!0x0;}[_0x5295ce(0x243)](_0x5bda21){const _0x5d0aa3=_0x5295ce;this[_0x5d0aa3(0x27c)][_0x5d0aa3(0x233)](_0x5bda21),this[_0x5d0aa3(0x228)][_0x5d0aa3(0x21e)]=!0x0;}[_0x5295ce(0x276)](_0x4a58c0,_0x52b726,_0x18d620,_0x5971c2){const _0x5293f4=_0x5295ce;this[_0x5293f4(0x27c)][_0x5293f4(0x276)](_0x4a58c0,_0x18d620,_0x5971c2);}[_0x5295ce(0x1fa)](_0x44e3a6){const _0x55b12c=_0x5295ce;this[_0x55b12c(0x27c)][_0x55b12c(0x1fa)](_0x44e3a6),this[_0x55b12c(0x228)][_0x55b12c(0x21e)]=!0x1;}[_0x5295ce(0x236)](_0x3aa2bd){const _0x2f8124=_0x5295ce;this[_0x2f8124(0x24f)](this[_0x2f8124(0x209)],this[_0x2f8124(0x205)],_0x3aa2bd),this[_0x2f8124(0x203)](_0x3aa2bd);}[_0x5295ce(0x203)](_0x27866d){const _0x53fc5a=_0x5295ce,_0x109460=!_0x27866d[_0x53fc5a(0x273)][_0x53fc5a(0x212)]&&_0x27866d[_0x53fc5a(0x273)][_0x53fc5a(0x244)],_0x3cc8f8=_0x27866d[_0x53fc5a(0x1ff)][_0x53fc5a(0x244)],_0x319965=_0x27866d[_0x53fc5a(0x277)][_0x53fc5a(0x244)];this[_0x53fc5a(0x228)][_0x53fc5a(0x26d)]=_0x109460||_0x3cc8f8||_0x319965;}[_0x5295ce(0x224)](){const _0xb483e1=_0x5295ce;this[_0xb483e1(0x231)]({'tag':_0xb483e1(0x226),'attributes':{'class':[bo,_0xb483e1(0x264)]},'children':[{'tag':_0xb483e1(0x226),'attributes':{'class':To},'children':this[_0xb483e1(0x211)]}]});}[_0x5295ce(0x274)](){const _0x55c4c0=_0x5295ce;this[_0x55c4c0(0x228)]['on'](_0x55c4c0(0x279),()=>{const _0x3f48f5=_0x55c4c0;this[_0x3f48f5(0x248)]();});}[_0x5295ce(0x20a)](_0x40095b){const _0x11fe1b=_0x5295ce,_0x112e94=new _0x338a4f(_0x40095b);return _0x112e94[_0x11fe1b(0x266)]({'label':_0x37ce30(_0x40095b,_0x11fe1b(0x229)),'class':Vo+'\x20'+ko,'icon':_0x2d847b,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x112e94;}[_0x5295ce(0x216)](_0x57f09c){const _0x60a526=_0x5295ce;return this[_0x60a526(0x23d)](_0x57f09c,Ao);}[_0x5295ce(0x25b)](_0x413e1e){const _0x383dc8=_0x5295ce,_0xe3fd02=this[_0x383dc8(0x23d)](_0x413e1e,Eo);return this[_0x383dc8(0x234)](_0xe3fd02,_0x413e1e),_0xe3fd02;}[_0x5295ce(0x220)](_0x5cc4f7,_0x3e4827){const _0x2fe1e4=_0x5295ce;return new _0x370ec7(_0x5cc4f7,_0x3e4827,{'onBackToContext':()=>{const _0x1ab4c7=_0x5af7;this[_0x1ab4c7(0x238)](),this[_0x1ab4c7(0x209)][_0x1ab4c7(0x225)]({'target':this[_0x1ab4c7(0x228)][_0x1ab4c7(0x254)],'limiter':this[_0x1ab4c7(0x20b)](),'positions':So});},'onResourceSelected':(_0x373230,_0x34a1cb)=>{const _0x164ffa=_0x5af7;this[_0x164ffa(0x26f)](_0x164ffa(0x1f4),{'source':_0x373230,'resource':_0x34a1cb});},'onLoadSourceResources':_0xe0c609=>{const _0x3a60a1=_0x5af7;this[_0x3a60a1(0x26f)](_0x3a60a1(0x21f),_0xe0c609);},'onBalloonClosed':()=>{const _0x287f4f=_0x5af7;this[_0x287f4f(0x228)][_0x287f4f(0x21e)]=!0x1;},'getLimiterElement':()=>this[_0x2fe1e4(0x20b)](),'getTargetElement':()=>this[_0x2fe1e4(0x228)][_0x2fe1e4(0x254)]});}[_0x5295ce(0x20b)](){const _0x7eb720=_0x5295ce;return this[_0x7eb720(0x254)]?.[_0x7eb720(0x208)]('.'+Ro)||document[_0x7eb720(0x22a)];}[_0x5295ce(0x23d)](_0x10b6c8,_0x2b1559){const _0x448e22=_0x5295ce,_0x2b9631=new _0xe68e74(_0x10b6c8);return _0x2b9631[_0x448e22(0x241)]({'attributes':{'class':_0x2b1559}}),this[_0x448e22(0x249)][_0x448e22(0x200)](_0x2b9631),_0x2b9631;}[_0x5295ce(0x24f)](_0x3806d,_0x139dbf,_0x1302bd){const _0x524710=_0x5295ce;if(_0x3806d[_0x524710(0x232)][_0x524710(0x26b)](),!_0x1302bd[_0x524710(0x273)][_0x524710(0x212)]&&_0x1302bd[_0x524710(0x273)][_0x524710(0x244)]){const _0x58664a=this[_0x524710(0x21b)](_0x139dbf,{'label':_0x37ce30(_0x139dbf,_0x524710(0x24d)),'icon':_0x41a09f});_0x58664a['on'](_0x524710(0x279),()=>{const _0x2f33b3=_0x524710;this[_0x2f33b3(0x26f)](_0x2f33b3(0x27b)),this[_0x2f33b3(0x1f8)]();}),_0x3806d[_0x524710(0x232)][_0x524710(0x200)](_0x58664a);}if(_0x1302bd[_0x524710(0x1ff)][_0x524710(0x244)]){const _0x5c08a2=this[_0x524710(0x21b)](_0x139dbf,{'label':_0x37ce30(_0x139dbf,_0x524710(0x1fc)),'icon':_0x30491c});_0x5c08a2['on'](_0x524710(0x279),()=>{const _0x3610cd=_0x524710;this[_0x3610cd(0x1f8)](),this[_0x3610cd(0x1f3)](),this[_0x3610cd(0x210)][_0x3610cd(0x225)]({'target':this[_0x3610cd(0x228)][_0x3610cd(0x254)],'limiter':this[_0x3610cd(0x20b)](),'positions':So}),this[_0x3610cd(0x1f9)][_0x3610cd(0x237)]();}),_0x3806d[_0x524710(0x232)][_0x524710(0x200)](_0x5c08a2);}if(_0x1302bd[_0x524710(0x277)][_0x524710(0x244)]){const _0x8ce114=new _0x4f054f(_0x139dbf);_0x8ce114[_0x524710(0x266)]({'label':_0x37ce30(_0x139dbf,_0x524710(0x202)),'icon':_0x3337bc,'withText':!0x0,'tooltip':!0x0,'class':vo,'allowMultipleFiles':!0x0}),_0x8ce114['on'](_0x524710(0x22d),(_0x3f4616,_0x30d15c)=>{const _0x232255=_0x524710;this[_0x232255(0x26f)](_0x232255(0x235),_0x30d15c),this[_0x232255(0x1f8)]();}),_0x8ce114[_0x524710(0x25f)]=!0x0,_0x3806d[_0x524710(0x232)][_0x524710(0x200)](_0x8ce114);}for(const _0x23cfee of _0x1302bd[_0x524710(0x253)]){const _0x2ece6a=this[_0x524710(0x21b)](_0x139dbf,{'label':_0x23cfee[_0x524710(0x251)],'icon':_0x23cfee[_0x524710(0x270)]||_0x279a9f,'type':_0x524710(0x252)});_0x3806d[_0x524710(0x232)][_0x524710(0x200)](_0x2ece6a),_0x2ece6a['on'](_0x524710(0x279),()=>{const _0x372a65=_0x524710;this[_0x372a65(0x1f8)](),this[_0x372a65(0x243)](_0x23cfee);});}}[_0x5295ce(0x234)](_0x34bed7,_0x120945){const _0x37dc4f=_0x5295ce;this[_0x37dc4f(0x1f9)]=new _0x1611c8(_0x120945),this[_0x37dc4f(0x1f9)]['on'](_0x37dc4f(0x223),(_0xe6677d,_0x2f27f8)=>{const _0x25f985=_0x37dc4f;this[_0x25f985(0x22e)](_0x2f27f8);}),this[_0x37dc4f(0x1f9)]['on'](_0x37dc4f(0x247),()=>{const _0x56ceb1=_0x37dc4f;this[_0x56ceb1(0x214)](),this[_0x56ceb1(0x238)](),this[_0x56ceb1(0x209)][_0x56ceb1(0x225)]({'target':this[_0x56ceb1(0x228)][_0x56ceb1(0x254)],'limiter':this[_0x56ceb1(0x20b)](),'positions':So});}),this[_0x37dc4f(0x1f9)]['on'](_0x37dc4f(0x206),()=>{const _0x1c46a7=_0x37dc4f;this[_0x1c46a7(0x210)][_0x1c46a7(0x204)]&&this[_0x1c46a7(0x210)][_0x1c46a7(0x225)]({'target':this[_0x1c46a7(0x228)][_0x1c46a7(0x254)],'limiter':this[_0x1c46a7(0x20b)](),'positions':So});}),_0x34bed7[_0x37dc4f(0x232)][_0x37dc4f(0x200)](this[_0x37dc4f(0x1f9)]);}[_0x5295ce(0x21b)](_0x1527d7,_0x3e016f){const _0x460f9b=_0x5295ce,_0x14de27=_0x460f9b(0x252)===_0x3e016f[_0x460f9b(0x221)]?new SourcesBalloonButtonView(_0x1527d7):new _0x338a4f(_0x1527d7);return _0x14de27[_0x460f9b(0x266)]({'label':_0x3e016f[_0x460f9b(0x251)],'icon':_0x3e016f[_0x460f9b(0x270)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':vo}),_0x14de27;}[_0x5295ce(0x1f6)](){const _0xab15c4=_0x5295ce;this[_0xab15c4(0x218)](),this[_0xab15c4(0x27f)]();}[_0x5295ce(0x27f)](){const _0x59bb6a=_0x5295ce;_0x365b23({'emitter':this[_0x59bb6a(0x210)],'contextElements':[this[_0x59bb6a(0x210)][_0x59bb6a(0x254)]],'callback':()=>{const _0xbe37e=_0x59bb6a;this[_0xbe37e(0x214)]();},'activator':()=>this[_0x59bb6a(0x210)][_0x59bb6a(0x204)]});}[_0x5295ce(0x24a)](_0x1eaace){const _0xa2d607=_0x5295ce,_0x61cd05=this[_0xa2d607(0x213)];_0x61cd05[_0xa2d607(0x242)][_0xa2d607(0x21e)]=_0x1eaace,_0x1eaace?_0x61cd05[_0xa2d607(0x219)][_0xa2d607(0x227)]():_0x61cd05[_0xa2d607(0x219)][_0xa2d607(0x23b)]();}[_0x5295ce(0x218)](){const _0x47f8b6=_0x5295ce,{balloonView:_0x5f37e2,buttonView:_0x24e323,hideMethod:_0x3223e1}=this[_0x47f8b6(0x213)];_0x365b23({'emitter':_0x5f37e2,'contextElements':[_0x5f37e2[_0x47f8b6(0x254)],_0x24e323[_0x47f8b6(0x254)]],'callback':()=>{_0x3223e1();},'activator':()=>_0x24e323[_0x47f8b6(0x21e)]&&!this[_0x47f8b6(0x210)][_0x47f8b6(0x204)]&&!this[_0x47f8b6(0x27c)][_0x47f8b6(0x1fe)]()});}[_0x5295ce(0x269)](_0x338e22,_0x5359a0,_0x559eb1=!0x1,_0x3bd3be=!0x1){const _0x4c3659=_0x5295ce,_0x1792ca=_0x4c3659(0x23c)===_0x5359a0||!0x0===_0x338e22[_0x4c3659(0x25c)],_0xf25d74=new _0x2fc5d8(this[_0x4c3659(0x205)],_0x338e22,_0x1792ca,_0x559eb1,_0x3bd3be);return _0x1792ca||_0xf25d74['on'](_0x4c3659(0x21d),()=>{const _0xd2413a=_0x4c3659;this[_0xd2413a(0x26f)](_0xd2413a(0x215),_0xf25d74['id']);}),_0xf25d74;}[_0x5295ce(0x268)](_0x276ca6,_0xe6cc0e){const _0x530b77=_0x5295ce;_0xe6cc0e[_0x530b77(0x200)](_0x276ca6,0x0);}[_0x5295ce(0x27a)](_0x10338c,_0x1fba37){const _0x2349d5=_0x5295ce,_0x5ed8f6=_0x1fba37[_0x2349d5(0x27e)](_0x2927d0=>_0x2927d0['id']===_0x10338c);_0x5ed8f6&&_0x1fba37[_0x2349d5(0x1fb)](_0x5ed8f6);}[_0x5295ce(0x248)](){const _0x1ce86c=_0x5295ce;this[_0x1ce86c(0x228)][_0x1ce86c(0x21e)]?this[_0x1ce86c(0x1f8)]():(this[_0x1ce86c(0x238)](),this[_0x1ce86c(0x209)][_0x1ce86c(0x225)]({'target':this[_0x1ce86c(0x228)][_0x1ce86c(0x254)],'limiter':this[_0x1ce86c(0x20b)](),'positions':So}));}[_0x5295ce(0x22e)](_0x300ab3){const _0x187b61=_0x5295ce;this[_0x187b61(0x1f9)][_0x187b61(0x26b)](),this[_0x187b61(0x214)](),this[_0x187b61(0x26f)](_0x187b61(0x258),_0x300ab3);}}export class SourcesBalloonButtonView extends _0x338a4f{[_0x5295ce(0x26e)];constructor(_0x391c0b){const _0x2dd6df=_0x5295ce;super(_0x391c0b),this[_0x2dd6df(0x266)]({'withText':!0x0,'role':_0x2dd6df(0x1f7)}),this[_0x2dd6df(0x26e)]=this[_0x2dd6df(0x217)](),this[_0x2dd6df(0x241)]({'attributes':{'class':[go]}});}[_0x5295ce(0x20f)](){const _0x2bab17=_0x5295ce;super[_0x2bab17(0x20f)](),this[_0x2bab17(0x256)][_0x2bab17(0x200)](this[_0x2bab17(0x26e)]);}[_0x5295ce(0x217)](){const _0x6df028=_0x5295ce,_0x36713b=new _0x2be7bd();return _0x36713b[_0x6df028(0x232)]=_0x93c803,_0x36713b[_0x6df028(0x241)]({'attributes':{'class':go+_0x6df028(0x25d)}}),_0x36713b;}}function _0x5c01(){const _0x3b2863=['urls','add','defaultPositions','AI_CHAT_CONTEXT_FILE_LABEL','_setAddContextButtonEnabled','isVisible','locale','refreshBalloon','802319zcOnnv','closest','_addContextBalloonPanelView','_createAddContextButtonView','_getLimiterElement','southArrowNorthEast','_conversationContextsChips','663926UxQCIO','render','_urlBalloonPanelView','_currentContextsChips','isHidden','_addContextBalloonConfig','hideUrlBalloonPanel','removeContextItem','_createAddContextBalloonPanelView','_createArrowView','_setupAddContextBalloonClickOutsideHandler','balloonView','3571116JjNyqr','_createBalloonButton','ck-ai-chat-context-controls__url-balloon-panel','removeContextItemChip','isOn','loadSourceResources','_createResourcesBalloonView','type','3830690aatwAQ','submitUrl','_setupTemplate','pin','div','show','addContextButtonView','AI_CHAT_CONTEXT_ADD_CONTEXT','body','isLoading','ck-ai-chat-context-controls__add-context-balloon-panel','done','_handleUrlSubmit','1962wpYxQV','reorganizeChips','setTemplate','content','showSourceResourcesBalloon','_addUrlContent','addFileToContext','setAddContextOptions','focus','showAddContextBalloonPanel','destroy','1200736AVFbWE','hide','conversation','_createBaseBalloonPanel','ck-ai-chat-context-controls','northArrowSouthEast','overflowChips','extendTemplate','buttonView','_showSourceResourcesBalloon','enabled','northArrowSouthWest','clearConversationContextItems','cancel','_handleAddContextButtonClick','bodyCollection','_toggleAddContextBalloon','ck-ai-chat-context-controls__pending-contexts','ck-ai-chat-context-controls__add-context-button','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','ck-ai-chat-controls_context_show-more-button','_setBalloonPanelContent','ck-ai-chat-context-chips-wrapper-balloon','label','source','sources','element','updateResourceState','children','current','addUrlToContext','2221656LajaFZ','createCollection','_createUrlBalloonPanelView','isReadOnly','__arrow','clearCurrentContextItems','tooltip','bind','southArrowNorthWest','setContextItemLoading','ck-ai-chat-context-controls__balloon-button','ck-reset_all-excluded','ck-ai-chat-controls-button','set','southArrowNorth','_addContextToCollection','_createContextButton','3lywUrI','clear','288RWsToM','isEnabled','arrowView','fire','icon','setConversationContext','ck-ai-chat-context-controls__show-more-balloon-panel','document','_bindEventHandlers','addContextItem','populateSourceResourceBalloon','files','setContainerElement','execute','_removeContextFromCollection','addDocumentToContext','_resourcesBalloonView','ck-ai-chat','find','_setupUrlBalloonClickOutsideHandler','northArrowSouth','showUrlBalloonPanel','addResourceToContext','ck-ai-chat-context-controls__balloon-button-source','_setupAllBalloonClickOutsideHandlers','menuitem','hideAddContextBalloonPanel','_urlInputView','closeSourceResourceBalloon','remove','AI_CHAT_CONTEXT_URL_LABEL','_overflowManager','isAnyResourceBalloonVisible'];_0x5c01=function(){return _0x3b2863;};return _0x5c01();}
23
+ const _0x318cd3=_0x3ba0;(function(_0x175e41,_0x1d6c63){const _0x495b6e=_0x3ba0,_0xcaf66f=_0x175e41();while(!![]){try{const _0x6a0711=parseInt(_0x495b6e(0x10a))/0x1+-parseInt(_0x495b6e(0x103))/0x2*(parseInt(_0x495b6e(0x14c))/0x3)+parseInt(_0x495b6e(0xc1))/0x4*(-parseInt(_0x495b6e(0x126))/0x5)+parseInt(_0x495b6e(0xe8))/0x6+-parseInt(_0x495b6e(0xcc))/0x7+parseInt(_0x495b6e(0x148))/0x8*(parseInt(_0x495b6e(0xbf))/0x9)+-parseInt(_0x495b6e(0x13a))/0xa*(-parseInt(_0x495b6e(0x13b))/0xb);if(_0x6a0711===_0x1d6c63)break;else _0xcaf66f['push'](_0xcaf66f['shift']());}catch(_0x26fb88){_0xcaf66f['push'](_0xcaf66f['shift']());}}}(_0x134a,0xac987));import{BalloonPanelView as _0x4681c8,ButtonView as _0x16ecf4,clickOutsideHandler as _0x288ed2,FileDialogButtonView as _0x2d9777,IconView as _0x38c52d,View as _0x2a63f8}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x44c458,IconDocument as _0x9c9a6a,IconDocumentOutline as _0x55fe32,IconDropdownArrow as _0x5a9a93,IconLink as _0x5b7183,IconPaperClip as _0x52accd}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x1e2d4f}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0xa963b8}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x1d50a2}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x46ba45}from'../../../aicore/utils/common-translations.js';function _0x134a(){const _0x1b5f8c=['source','_createBalloonButton','847470BBCUsA','isLoading','_setAddContextButtonEnabled','addContextButtonView','isReadOnly','northArrowSouth','_addContextToCollection','overflowChips','_createAddContextButtonView','locale','hide','children','populateSourceResourceBalloon','_setupTemplate','arrowView','addResourceToContext','southArrowNorthEast','body','AI_CHAT_CONTEXT_FILE_LABEL','ck-ai-chat','set','enabled','label','bind','done','_handleUrlSubmit','tooltip','12756ovuvcf','ck-ai-chat-controls_context_show-more-button','southArrowNorthWest','_currentContextsChips','isHidden','add','ck-ai-chat-controls-button','628983DCWzDa','sources','bodyCollection','_addContextBalloonConfig','showSourceResourcesBalloon','removeContextItem','balloonView','_createBaseBalloonPanel','ck-ai-chat-context-controls__balloon-button-source','reorganizeChips','element','ck-ai-chat-context-controls','clearCurrentContextItems','ck-ai-chat-context-chips-wrapper-balloon','div','submitUrl','content','updateResourceState','menuitem','type','cancel','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','hideAddContextBalloonPanel','_setBalloonPanelContent','_showSourceResourcesBalloon','ck-ai-chat-context-controls__pending-contexts','setContextItemLoading','createCollection','1435HbCJrr','removeContextItemChip','extendTemplate','addFileToContext','_createArrowView','showUrlBalloonPanel','_addContextBalloonPanelView','_toggleAddContextBalloon','defaultPositions','northArrowSouthEast','conversation','_bindEventHandlers','render','clear','_urlBalloonPanelView','isOn','_overflowManager','southArrowNorth','_setupUrlBalloonClickOutsideHandler','fire','7010UccGup','29095ZvTbkr','ck-reset_all-excluded','_handleAddContextButtonClick','AI_CHAT_CONTEXT_ADD_CONTEXT','AI_CHAT_CONTEXT_URL_LABEL','setAddContextOptions','focus','remove','closeSourceResourceBalloon','_createAddContextBalloonPanelView','_setupAddContextBalloonClickOutsideHandler','_urlInputView','_createContextButton','26608qNMtxC','hideUrlBalloonPanel','files','ck-ai-chat-context-controls__url-balloon-panel','156hOsmQu','isEnabled','setTemplate','351qJMbkP','setConversationContext','10716oOvfCB','_removeContextFromCollection','ck-ai-chat-context-controls__show-more-balloon-panel','isAnyResourceBalloonVisible','addContextItem','buttonView','addDocumentToContext','current','show','document','urls','6626249RvpZCl','_createResourcesBalloonView','_conversationContextsChips','destroy','closest','icon','__arrow','_addUrlContent','ck-ai-chat-context-controls__add-context-button','showAddContextBalloonPanel','setContainerElement','_getLimiterElement','loadSourceResources','pin','ck-ai-chat-context-controls__add-context-balloon-panel','refreshBalloon','ck-ai-chat-context-controls__balloon-button','_setupAllBalloonClickOutsideHandlers','addUrlToContext','northArrowSouthWest','execute','_resourcesBalloonView','clearConversationContextItems','isVisible','find','_createUrlBalloonPanelView'];_0x134a=function(){return _0x1b5f8c;};return _0x134a();}import{AIChatResourcesBalloonView as _0x1730df}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x318cd3(0xc7),_0x318cd3(0x129),_0x318cd3(0xde),_0x318cd3(0xf7),_0x318cd3(0x10f),_0x318cd3(0xd8)];const Ao=_0x318cd3(0x115),ko=_0x318cd3(0x123),Eo=_0x318cd3(0xda),vo=_0x318cd3(0xd4),go=_0x318cd3(0x14b),Vo=_0x318cd3(0xdc),fo=_0x318cd3(0x112),Io=_0x318cd3(0x109),Po=_0x318cd3(0x117),Ro=_0x318cd3(0x104),Uo=_0x318cd3(0xc3),Lo=_0x318cd3(0xfb),No=[_0x4681c8[_0x318cd3(0x12e)][_0x318cd3(0xdf)],_0x4681c8[_0x318cd3(0x12e)][_0x318cd3(0xed)],_0x4681c8[_0x318cd3(0x12e)][_0x318cd3(0x12f)],_0x4681c8[_0x318cd3(0x12e)][_0x318cd3(0x105)],_0x4681c8[_0x318cd3(0x12e)][_0x318cd3(0x137)],_0x4681c8[_0x318cd3(0x12e)][_0x318cd3(0xf8)]];export class AIChatContextPanelView extends _0x2a63f8{[_0x318cd3(0xeb)];[_0x318cd3(0x106)]=this[_0x318cd3(0x125)]();[_0x318cd3(0xce)]=this[_0x318cd3(0x125)]();[_0x318cd3(0x136)];[_0x318cd3(0x12c)];[_0x318cd3(0x134)];[_0x318cd3(0x146)];[_0x318cd3(0xe1)];[_0x318cd3(0x10d)];[_0x318cd3(0x10c)];constructor(_0x1818ab,_0x33ed34){const _0x41d9c9=_0x318cd3;super(_0x1818ab),this[_0x41d9c9(0x10c)]=_0x33ed34,this[_0x41d9c9(0x106)]=this[_0x41d9c9(0x125)](),this[_0x41d9c9(0xce)]=this[_0x41d9c9(0x125)](),this[_0x41d9c9(0xeb)]=this[_0x41d9c9(0xf0)](_0x1818ab),this[_0x41d9c9(0x12c)]=this[_0x41d9c9(0x144)](_0x1818ab),this[_0x41d9c9(0x134)]=this[_0x41d9c9(0xe5)](_0x1818ab),this[_0x41d9c9(0xe1)]=this[_0x41d9c9(0xcd)](_0x1818ab,_0x33ed34);const _0x310557={'cssClasses':{'showMoreButton':Ro,'showMoreBalloon':Uo,'overflowContainer':Po,'controlsButton':Io}};this[_0x41d9c9(0x136)]=new _0x1d50a2(_0x1818ab,this[_0x41d9c9(0x106)],_0x310557,this[_0x41d9c9(0x10c)],this),this[_0x41d9c9(0x10d)]={'buttonView':this[_0x41d9c9(0xeb)],'balloonView':this[_0x41d9c9(0x12c)],'hideMethod':this[_0x41d9c9(0x120)][_0x41d9c9(0xff)](this),'showMethod':this[_0x41d9c9(0xd5)][_0x41d9c9(0xff)](this)},this[_0x41d9c9(0xf5)](),this[_0x41d9c9(0x131)]();}[_0x318cd3(0x132)](){const _0x1dee4c=_0x318cd3;super[_0x1dee4c(0x132)](),this[_0x1dee4c(0xdd)](),this[_0x1dee4c(0x136)][_0x1dee4c(0xd6)](this[_0x1dee4c(0x114)]),this[_0x1dee4c(0x136)][_0x1dee4c(0x113)]();}[_0x318cd3(0xcf)](){const _0x84309=_0x318cd3;super[_0x84309(0xcf)](),this[_0x84309(0x136)][_0x84309(0xcf)](),this[_0x84309(0xe1)][_0x84309(0xcf)]();}[_0x318cd3(0xc5)](_0x5c58b2,_0x1eaf2a){const _0x560874=_0x318cd3,_0x136067=this[_0x560874(0x147)](_0x5c58b2,_0x560874(0xc8),!0x0,_0x1eaf2a);this[_0x560874(0xee)](_0x136067,this[_0x560874(0x106)]),this[_0x560874(0x136)][_0x560874(0x113)]();}[_0x318cd3(0x10f)](_0x1864f7){const _0x55e449=_0x318cd3;this[_0x55e449(0xc2)](_0x1864f7,this[_0x55e449(0x106)]),this[_0x55e449(0xc2)](_0x1864f7,this[_0x55e449(0x136)][_0x55e449(0xef)]),this[_0x55e449(0x136)][_0x55e449(0x113)]();}[_0x318cd3(0x124)](_0x41da88,_0x2ea138){const _0x3c834f=_0x318cd3;let _0x18e78e=this[_0x3c834f(0x106)][_0x3c834f(0xe4)](_0x1ceccc=>_0x1ceccc['id']===_0x41da88);_0x18e78e||(_0x18e78e=this[_0x3c834f(0x136)][_0x3c834f(0xef)][_0x3c834f(0xe4)](_0x2a8181=>_0x2a8181['id']===_0x41da88)),_0x18e78e&&(_0x18e78e[_0x3c834f(0xe9)]=_0x2ea138);}[_0x318cd3(0xc0)](_0x46e49c){const _0x299bd4=_0x318cd3;this[_0x299bd4(0xce)][_0x299bd4(0x133)]();for(const _0x2622bf of _0x46e49c){const _0x3dc884=this[_0x299bd4(0x147)](_0x2622bf,_0x299bd4(0x130),!0x1,!0x1);this[_0x299bd4(0xee)](_0x3dc884,this[_0x299bd4(0xce)]);}}[_0x318cd3(0x116)](){const _0x23ce3a=_0x318cd3;this[_0x23ce3a(0x106)][_0x23ce3a(0x133)](),this[_0x23ce3a(0x136)][_0x23ce3a(0x133)]();}[_0x318cd3(0xe2)](){const _0x461bd3=_0x318cd3;this[_0x461bd3(0xce)][_0x461bd3(0x133)]();}[_0x318cd3(0x11b)](_0x497a78,_0x2df900,_0x46bae1){const _0x3ae052=_0x318cd3;this[_0x3ae052(0xe1)][_0x3ae052(0x11b)](_0x497a78,_0x2df900,_0x46bae1);}[_0x318cd3(0x120)](){const _0x1624c7=_0x318cd3;this[_0x1624c7(0x12d)](!0x1);}[_0x318cd3(0xd5)](){const _0x5ea652=_0x318cd3;this[_0x5ea652(0x12d)](!0x0);}[_0x318cd3(0x149)](){const _0x1d5c8f=_0x318cd3;this[_0x1d5c8f(0x134)][_0x1d5c8f(0xf2)](),this[_0x1d5c8f(0xeb)][_0x1d5c8f(0x135)]=!0x1,this[_0x1d5c8f(0x146)]&&this[_0x1d5c8f(0x146)][_0x1d5c8f(0x133)]();}[_0x318cd3(0x12b)](){const _0xcf9cb3=_0x318cd3;this[_0xcf9cb3(0x134)][_0xcf9cb3(0xc9)](),this[_0xcf9cb3(0xeb)][_0xcf9cb3(0x135)]=!0x0;}[_0x318cd3(0x122)](_0x194ec4){const _0x13cd30=_0x318cd3;this[_0x13cd30(0xe1)][_0x13cd30(0x10e)](_0x194ec4),this[_0x13cd30(0xeb)][_0x13cd30(0x135)]=!0x0;}[_0x318cd3(0xf4)](_0x1d26ce,_0xd729d3,_0x328b92,_0x44f529){const _0x163bb7=_0x318cd3;this[_0x163bb7(0xe1)][_0x163bb7(0xf4)](_0x1d26ce,_0x328b92,_0x44f529);}[_0x318cd3(0x143)](_0x5dc3cd){const _0x5334e2=_0x318cd3;this[_0x5334e2(0xe1)][_0x5334e2(0x143)](_0x5dc3cd),this[_0x5334e2(0xeb)][_0x5334e2(0x135)]=!0x1;}[_0x318cd3(0x140)](_0x56bb40){const _0xc08ca5=_0x318cd3;this[_0xc08ca5(0x121)](this[_0xc08ca5(0x12c)],this[_0xc08ca5(0xf1)],_0x56bb40),this[_0xc08ca5(0xea)](_0x56bb40);}[_0x318cd3(0xea)](_0xe431e4){const _0x42afcc=_0x318cd3,_0x54e421=!_0xe431e4[_0x42afcc(0xca)][_0x42afcc(0x107)]&&_0xe431e4[_0x42afcc(0xca)][_0x42afcc(0xfd)],_0x431e6f=_0xe431e4[_0x42afcc(0xcb)][_0x42afcc(0xfd)],_0x41aff7=_0xe431e4[_0x42afcc(0x14a)][_0x42afcc(0xfd)];this[_0x42afcc(0xeb)][_0x42afcc(0xbd)]=_0x54e421||_0x431e6f||_0x41aff7;}[_0x318cd3(0xf5)](){const _0x20d77b=_0x318cd3;this[_0x20d77b(0xbe)]({'tag':_0x20d77b(0x118),'attributes':{'class':[Ao,_0x20d77b(0x13c)]},'children':[{'tag':_0x20d77b(0x118),'attributes':{'class':ko},'children':this[_0x20d77b(0x106)]}]});}[_0x318cd3(0x131)](){const _0x47dd13=_0x318cd3;this[_0x47dd13(0xeb)]['on'](_0x47dd13(0xe0),()=>{const _0x5a9da7=_0x47dd13;this[_0x5a9da7(0x13d)]();});}[_0x318cd3(0xf0)](_0x284633){const _0x3efb8=_0x318cd3,_0x3244d0=new _0x16ecf4(_0x284633);return _0x3244d0[_0x3efb8(0xfc)]({'label':_0x46ba45(_0x284633,_0x3efb8(0x13e)),'class':Io+'\x20'+vo,'icon':_0x52accd,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x3244d0;}[_0x318cd3(0x144)](_0x234436){const _0x15a612=_0x318cd3;return this[_0x15a612(0x111)](_0x234436,Eo);}[_0x318cd3(0xe5)](_0xffdbda){const _0x2e87d8=_0x318cd3,_0x1d98b4=this[_0x2e87d8(0x111)](_0xffdbda,go);return this[_0x2e87d8(0xd3)](_0x1d98b4,_0xffdbda),_0x1d98b4;}[_0x318cd3(0xcd)](_0x117d9c,_0x3153fa){const _0xe913e=_0x318cd3;return new _0x1730df(_0x117d9c,_0x3153fa,{'onBackToContext':()=>{const _0x546cd5=_0x3ba0;this[_0x546cd5(0xd5)](),this[_0x546cd5(0x12c)][_0x546cd5(0xd9)]({'target':this[_0x546cd5(0xeb)][_0x546cd5(0x114)],'limiter':this[_0x546cd5(0xd7)](),'positions':No});},'onResourceSelected':(_0x5f1c92,_0x46481f)=>{const _0x344b46=_0x3ba0;this[_0x344b46(0x139)](_0x344b46(0xf7),{'source':_0x5f1c92,'resource':_0x46481f});},'onLoadSourceResources':_0x31b0a1=>{const _0x5ec2f1=_0x3ba0;this[_0x5ec2f1(0x139)](_0x5ec2f1(0xd8),_0x31b0a1);},'onBalloonClosed':()=>{const _0xfeb007=_0x3ba0;this[_0xfeb007(0xeb)][_0xfeb007(0x135)]=!0x1;},'getLimiterElement':()=>this[_0xe913e(0xd7)](),'getTargetElement':()=>this[_0xe913e(0xeb)][_0xe913e(0x114)]});}[_0x318cd3(0xd7)](){const _0x2edf0f=_0x318cd3;return this[_0x2edf0f(0x114)]?.[_0x2edf0f(0xd0)]('.'+Lo)||document[_0x2edf0f(0xf9)];}[_0x318cd3(0x111)](_0x4b2297,_0x8f418a){const _0x468f68=_0x318cd3,_0x3eb99d=new _0x4681c8(_0x4b2297);return _0x3eb99d[_0x468f68(0x128)]({'attributes':{'class':_0x8f418a}}),this[_0x468f68(0x10c)][_0x468f68(0x108)](_0x3eb99d),_0x3eb99d;}[_0x318cd3(0x121)](_0x86c5d9,_0x5e2fdf,_0x59f234){const _0x201c13=_0x318cd3;if(_0x86c5d9[_0x201c13(0x11a)][_0x201c13(0x133)](),!_0x59f234[_0x201c13(0xca)][_0x201c13(0x107)]&&_0x59f234[_0x201c13(0xca)][_0x201c13(0xfd)]){const _0x518eb1=this[_0x201c13(0xe7)](_0x5e2fdf,{'label':_0x46ba45(_0x5e2fdf,_0x201c13(0x11f)),'icon':_0x9c9a6a});_0x518eb1['on'](_0x201c13(0xe0),()=>{const _0x45577b=_0x201c13;this[_0x45577b(0x139)](_0x45577b(0xc7)),this[_0x45577b(0x120)]();}),_0x86c5d9[_0x201c13(0x11a)][_0x201c13(0x108)](_0x518eb1);}if(_0x59f234[_0x201c13(0xcb)][_0x201c13(0xfd)]){const _0x25b2c4=this[_0x201c13(0xe7)](_0x5e2fdf,{'label':_0x46ba45(_0x5e2fdf,_0x201c13(0x13f)),'icon':_0x5b7183});_0x25b2c4['on'](_0x201c13(0xe0),()=>{const _0x4853de=_0x201c13;this[_0x4853de(0x120)](),this[_0x4853de(0x12b)](),this[_0x4853de(0x134)][_0x4853de(0xd9)]({'target':this[_0x4853de(0xeb)][_0x4853de(0x114)],'limiter':this[_0x4853de(0xd7)](),'positions':No}),this[_0x4853de(0x146)][_0x4853de(0x141)]();}),_0x86c5d9[_0x201c13(0x11a)][_0x201c13(0x108)](_0x25b2c4);}if(_0x59f234[_0x201c13(0x14a)][_0x201c13(0xfd)]){const _0x12d042=new _0x2d9777(_0x5e2fdf);_0x12d042[_0x201c13(0xfc)]({'label':_0x46ba45(_0x5e2fdf,_0x201c13(0xfa)),'icon':_0x44c458,'withText':!0x0,'tooltip':!0x0,'class':Vo,'allowMultipleFiles':!0x0}),_0x12d042['on'](_0x201c13(0x100),(_0x175953,_0xe876e7)=>{const _0x2cad99=_0x201c13;this[_0x2cad99(0x139)](_0x2cad99(0x129),_0xe876e7),this[_0x2cad99(0x120)]();}),_0x12d042[_0x201c13(0x102)]=!0x0,_0x86c5d9[_0x201c13(0x11a)][_0x201c13(0x108)](_0x12d042);}for(const _0x2c705d of _0x59f234[_0x201c13(0x10b)]){const _0x486eff=this[_0x201c13(0xe7)](_0x5e2fdf,{'label':_0x2c705d[_0x201c13(0xfe)],'icon':_0x2c705d[_0x201c13(0xd1)]||_0x55fe32,'type':_0x201c13(0xe6)});_0x86c5d9[_0x201c13(0x11a)][_0x201c13(0x108)](_0x486eff),_0x486eff['on'](_0x201c13(0xe0),()=>{const _0x6e61eb=_0x201c13;this[_0x6e61eb(0x120)](),this[_0x6e61eb(0x122)](_0x2c705d);});}}[_0x318cd3(0xd3)](_0x3921f1,_0x3a26d8){const _0x43e241=_0x318cd3;this[_0x43e241(0x146)]=new _0xa963b8(_0x3a26d8),this[_0x43e241(0x146)]['on'](_0x43e241(0x119),(_0xb2279d,_0x59d09e)=>{const _0x5cc87c=_0x43e241;this[_0x5cc87c(0x101)](_0x59d09e);}),this[_0x43e241(0x146)]['on'](_0x43e241(0x11e),()=>{const _0x4804b6=_0x43e241;this[_0x4804b6(0x149)](),this[_0x4804b6(0xd5)](),this[_0x4804b6(0x12c)][_0x4804b6(0xd9)]({'target':this[_0x4804b6(0xeb)][_0x4804b6(0x114)],'limiter':this[_0x4804b6(0xd7)](),'positions':No});}),this[_0x43e241(0x146)]['on'](_0x43e241(0xdb),()=>{const _0x3fdcf3=_0x43e241;this[_0x3fdcf3(0x134)][_0x3fdcf3(0xe3)]&&this[_0x3fdcf3(0x134)][_0x3fdcf3(0xd9)]({'target':this[_0x3fdcf3(0xeb)][_0x3fdcf3(0x114)],'limiter':this[_0x3fdcf3(0xd7)](),'positions':No});}),_0x3921f1[_0x43e241(0x11a)][_0x43e241(0x108)](this[_0x43e241(0x146)]);}[_0x318cd3(0xe7)](_0x482b99,_0x32ac57){const _0x5af0e3=_0x318cd3,_0x47965b=_0x5af0e3(0xe6)===_0x32ac57[_0x5af0e3(0x11d)]?new SourcesBalloonButtonView(_0x482b99):new _0x16ecf4(_0x482b99);return _0x47965b[_0x5af0e3(0xfc)]({'label':_0x32ac57[_0x5af0e3(0xfe)],'icon':_0x32ac57[_0x5af0e3(0xd1)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Vo}),_0x47965b;}[_0x318cd3(0xdd)](){const _0x17c179=_0x318cd3;this[_0x17c179(0x145)](),this[_0x17c179(0x138)]();}[_0x318cd3(0x138)](){const _0x153793=_0x318cd3;_0x288ed2({'emitter':this[_0x153793(0x134)],'contextElements':[this[_0x153793(0x134)][_0x153793(0x114)]],'callback':()=>{const _0x326ca2=_0x153793;this[_0x326ca2(0x149)]();},'activator':()=>this[_0x153793(0x134)][_0x153793(0xe3)]});}[_0x318cd3(0x12d)](_0x578b02){const _0x10839b=_0x318cd3,_0x171351=this[_0x10839b(0x10d)];_0x171351[_0x10839b(0xc6)][_0x10839b(0x135)]=_0x578b02,_0x578b02?_0x171351[_0x10839b(0x110)][_0x10839b(0xc9)]():_0x171351[_0x10839b(0x110)][_0x10839b(0xf2)]();}[_0x318cd3(0x145)](){const _0xa5d94f=_0x318cd3,{balloonView:_0x3ed57c,buttonView:_0x57d068,hideMethod:_0x3fd866}=this[_0xa5d94f(0x10d)];_0x288ed2({'emitter':_0x3ed57c,'contextElements':[_0x3ed57c[_0xa5d94f(0x114)],_0x57d068[_0xa5d94f(0x114)]],'callback':()=>{_0x3fd866();},'activator':()=>_0x57d068[_0xa5d94f(0x135)]&&!this[_0xa5d94f(0x134)][_0xa5d94f(0xe3)]&&!this[_0xa5d94f(0xe1)][_0xa5d94f(0xc4)]()});}[_0x318cd3(0x147)](_0xad7dcf,_0x23117e,_0x40900b=!0x1,_0x3d8c42=!0x1){const _0x2b102b=_0x318cd3,_0x39b004=_0x2b102b(0x130)===_0x23117e||!0x0===_0xad7dcf[_0x2b102b(0xec)],_0x58e9b1=new _0x1e2d4f(this[_0x2b102b(0xf1)],_0xad7dcf,_0x39b004,_0x40900b,_0x3d8c42);return _0x39b004||_0x58e9b1['on'](_0x2b102b(0x127),()=>{const _0x4ba857=_0x2b102b;this[_0x4ba857(0x139)](_0x4ba857(0x10f),_0x58e9b1['id']);}),_0x58e9b1;}[_0x318cd3(0xee)](_0x305326,_0x17c246){const _0x51a2b9=_0x318cd3;_0x17c246[_0x51a2b9(0x108)](_0x305326,0x0);}[_0x318cd3(0xc2)](_0x400783,_0x23cc96){const _0x4db41b=_0x318cd3,_0x285936=_0x23cc96[_0x4db41b(0xe4)](_0x52cbbe=>_0x52cbbe['id']===_0x400783);_0x285936&&_0x23cc96[_0x4db41b(0x142)](_0x285936);}[_0x318cd3(0x13d)](){const _0x44c16c=_0x318cd3;this[_0x44c16c(0xeb)][_0x44c16c(0x135)]?this[_0x44c16c(0x120)]():(this[_0x44c16c(0xd5)](),this[_0x44c16c(0x12c)][_0x44c16c(0xd9)]({'target':this[_0x44c16c(0xeb)][_0x44c16c(0x114)],'limiter':this[_0x44c16c(0xd7)](),'positions':No}));}[_0x318cd3(0x101)](_0x54b883){const _0x11a65c=_0x318cd3;this[_0x11a65c(0x146)][_0x11a65c(0x133)](),this[_0x11a65c(0x149)](),this[_0x11a65c(0x139)](_0x11a65c(0xde),_0x54b883);}}function _0x3ba0(_0x46fe73,_0x5070f4){const _0x134ad3=_0x134a();return _0x3ba0=function(_0x3ba051,_0x58a822){_0x3ba051=_0x3ba051-0xbd;let _0x4b5a27=_0x134ad3[_0x3ba051];return _0x4b5a27;},_0x3ba0(_0x46fe73,_0x5070f4);}export class SourcesBalloonButtonView extends _0x16ecf4{[_0x318cd3(0xf6)];constructor(_0x5d5949){const _0x410ec0=_0x318cd3;super(_0x5d5949),this[_0x410ec0(0xfc)]({'withText':!0x0,'role':_0x410ec0(0x11c)}),this[_0x410ec0(0xf6)]=this[_0x410ec0(0x12a)](),this[_0x410ec0(0x128)]({'attributes':{'class':[fo]}});}[_0x318cd3(0x132)](){const _0x56c9e1=_0x318cd3;super[_0x56c9e1(0x132)](),this[_0x56c9e1(0xf3)][_0x56c9e1(0x108)](this[_0x56c9e1(0xf6)]);}[_0x318cd3(0x12a)](){const _0x2bcaf6=_0x318cd3,_0x237e66=new _0x38c52d();return _0x237e66[_0x2bcaf6(0x11a)]=_0x5a9a93,_0x237e66[_0x2bcaf6(0x128)]({'attributes':{'class':fo+_0x2bcaf6(0xd2)}}),_0x237e66;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xab7b0f=_0x31e7;(function(_0x3d70de,_0x1f897f){const _0x3f2884=_0x31e7,_0x5a32b6=_0x3d70de();while(!![]){try{const _0x34fd73=parseInt(_0x3f2884(0x175))/0x1*(-parseInt(_0x3f2884(0x17b))/0x2)+parseInt(_0x3f2884(0x165))/0x3*(-parseInt(_0x3f2884(0x177))/0x4)+parseInt(_0x3f2884(0x15f))/0x5*(-parseInt(_0x3f2884(0x15e))/0x6)+-parseInt(_0x3f2884(0x166))/0x7*(parseInt(_0x3f2884(0x160))/0x8)+-parseInt(_0x3f2884(0x16d))/0x9*(parseInt(_0x3f2884(0x171))/0xa)+parseInt(_0x3f2884(0x167))/0xb+parseInt(_0x3f2884(0x164))/0xc*(parseInt(_0x3f2884(0x16c))/0xd);if(_0x34fd73===_0x1f897f)break;else _0x5a32b6['push'](_0x5a32b6['shift']());}catch(_0x153771){_0x5a32b6['push'](_0x5a32b6['shift']());}}}(_0x1a84,0x4c9cb));function _0x31e7(_0x220fb4,_0x1a9ea0){const _0x1a849b=_0x1a84();return _0x31e7=function(_0x31e78a,_0x5ae45e){_0x31e78a=_0x31e78a-0x15d;let _0x385493=_0x1a849b[_0x31e78a];return _0x385493;},_0x31e7(_0x220fb4,_0x1a9ea0);}import{ButtonView as _0x11571d,View as _0x41b449}from'ckeditor5/src/ui.js';import{IconStop as _0x180439}from'ckeditor5/src/icons.js';import{getTranslation as _0x412048}from'../../../aicore/utils/common-translations.js';function _0x1a84(){const _0x12ca91=['ai-chat-controls-loader__cancel-button','_cancelButtonView','24ZOkSyi','set','execute','24oWWaPj','26640VHKnhL','104kEDqgs','abortPromptStream','fire','AI_CHAT_STOP_GENERATING','383772aSxZJn','449487EWFvqp','240261MVvSqE','4251522VXYmYx','setTemplate','ck-reset_all','div','ck-ai-chat-controls-loader','533LQoDTP','18WVVNkc','ck-ai-chat-controls-loader-icon-dot','_loaderView','locale','1285120ACjRIX','ck-ai-chat-controls-loader-wrapper','ck-ai-chat-controls-loader-icon','AI_CHAT_IS_WRITING','42463gDXHzB','_createLoaderView','4jBtCyN','_createCancelButtonView'];_0x1a84=function(){return _0x12ca91;};return _0x1a84();}export class AIChatControlsLoaderView extends _0x41b449{[_0xab7b0f(0x17a)];[_0xab7b0f(0x16f)];constructor(_0x40a456){const _0x2a46d9=_0xab7b0f;super(_0x40a456),this[_0x2a46d9(0x17a)]=this[_0x2a46d9(0x178)](),this[_0x2a46d9(0x16f)]=this[_0x2a46d9(0x176)](),this[_0x2a46d9(0x168)]({'tag':_0x2a46d9(0x16a),'attributes':{'class':['ck',_0x2a46d9(0x172),_0x2a46d9(0x169)]},'children':[this[_0x2a46d9(0x16f)],this[_0x2a46d9(0x17a)]]});}[_0xab7b0f(0x178)](){const _0x5459d3=_0xab7b0f,_0x365c66=new _0x11571d(this[_0x5459d3(0x170)]);return _0x365c66[_0x5459d3(0x17c)]({'label':_0x412048(this[_0x5459d3(0x170)],_0x5459d3(0x163)),'withText':!0x0,'class':_0x5459d3(0x179),'icon':_0x180439}),_0x365c66['on'](_0x5459d3(0x15d),()=>{const _0x565ede=_0x5459d3;this[_0x565ede(0x162)](_0x565ede(0x161));}),_0x365c66;}[_0xab7b0f(0x176)](){const _0x4f4743=_0xab7b0f,_0x5842b5=new _0x41b449(this[_0x4f4743(0x170)]);return _0x5842b5[_0x4f4743(0x168)]({'tag':_0x4f4743(0x16a),'attributes':{'class':[_0x4f4743(0x16b)]},'children':[{'tag':_0x4f4743(0x16a),'attributes':{'class':[_0x4f4743(0x173)]},'children':[{'tag':_0x4f4743(0x16a),'attributes':{'class':[_0x4f4743(0x16e)]}},{'tag':_0x4f4743(0x16a),'attributes':{'class':[_0x4f4743(0x16e)]}},{'tag':_0x4f4743(0x16a),'attributes':{'class':[_0x4f4743(0x16e)]}}]},{'text':_0x412048(this[_0x4f4743(0x170)],_0x4f4743(0x174))}]}),_0x5842b5;}}
23
+ const _0x461730=_0x10e7;(function(_0xbe87fb,_0x6f5f74){const _0x5e2cb6=_0x10e7,_0x6c89d8=_0xbe87fb();while(!![]){try{const _0x4f5e22=-parseInt(_0x5e2cb6(0x6d))/0x1*(parseInt(_0x5e2cb6(0x69))/0x2)+-parseInt(_0x5e2cb6(0x75))/0x3*(-parseInt(_0x5e2cb6(0x7f))/0x4)+-parseInt(_0x5e2cb6(0x65))/0x5+-parseInt(_0x5e2cb6(0x79))/0x6+-parseInt(_0x5e2cb6(0x7a))/0x7*(parseInt(_0x5e2cb6(0x81))/0x8)+-parseInt(_0x5e2cb6(0x7c))/0x9+parseInt(_0x5e2cb6(0x80))/0xa;if(_0x4f5e22===_0x6f5f74)break;else _0x6c89d8['push'](_0x6c89d8['shift']());}catch(_0x193b76){_0x6c89d8['push'](_0x6c89d8['shift']());}}}(_0x35b2,0xd28f4));import{ButtonView as _0x3858fa,View as _0x516b17}from'ckeditor5/src/ui.js';function _0x10e7(_0x5a148c,_0x57b037){const _0x35b216=_0x35b2();return _0x10e7=function(_0x10e713,_0x4ec6d5){_0x10e713=_0x10e713-0x65;let _0x5cc882=_0x35b216[_0x10e713];return _0x5cc882;},_0x10e7(_0x5a148c,_0x57b037);}import{IconStop as _0x37580a}from'ckeditor5/src/icons.js';function _0x35b2(){const _0x2dbb63=['_cancelButtonView','ck-ai-chat-controls-loader-icon-dot','_createCancelButtonView','401XEJUOB','ai-chat-controls-loader__cancel-button','div','_loaderView','ck-ai-chat-controls-loader-icon','fire','_createLoaderView','execute','3hMWxhb','AI_CHAT_STOP_GENERATING','set','locale','4082916tuZefd','7gTqxJn','ck-ai-chat-controls-loader-wrapper','9520317CLfces','setTemplate','abortPromptStream','2659496DJeSxm','56365310jJeoKV','9835352nTVHrl','4129660EAyMZo','AI_CHAT_IS_WRITING','ck-ai-chat-controls-loader','ck-reset_all','8206CFmKZF'];_0x35b2=function(){return _0x2dbb63;};return _0x35b2();}import{getTranslation as _0x4bc66d}from'../../../aicore/utils/common-translations.js';export class AIChatControlsLoaderView extends _0x516b17{[_0x461730(0x6a)];[_0x461730(0x70)];constructor(_0x33fb45){const _0x526f68=_0x461730;super(_0x33fb45),this[_0x526f68(0x6a)]=this[_0x526f68(0x6c)](),this[_0x526f68(0x70)]=this[_0x526f68(0x73)](),this[_0x526f68(0x7d)]({'tag':_0x526f68(0x6f),'attributes':{'class':['ck',_0x526f68(0x7b),_0x526f68(0x68)]},'children':[this[_0x526f68(0x70)],this[_0x526f68(0x6a)]]});}[_0x461730(0x6c)](){const _0x270fcc=_0x461730,_0x3f043a=new _0x3858fa(this[_0x270fcc(0x78)]);return _0x3f043a[_0x270fcc(0x77)]({'label':_0x4bc66d(this[_0x270fcc(0x78)],_0x270fcc(0x76)),'withText':!0x0,'class':_0x270fcc(0x6e),'icon':_0x37580a}),_0x3f043a['on'](_0x270fcc(0x74),()=>{const _0x1dc2f2=_0x270fcc;this[_0x1dc2f2(0x72)](_0x1dc2f2(0x7e));}),_0x3f043a;}[_0x461730(0x73)](){const _0x43380d=_0x461730,_0x22499a=new _0x516b17(this[_0x43380d(0x78)]);return _0x22499a[_0x43380d(0x7d)]({'tag':_0x43380d(0x6f),'attributes':{'class':[_0x43380d(0x67)]},'children':[{'tag':_0x43380d(0x6f),'attributes':{'class':[_0x43380d(0x71)]},'children':[{'tag':_0x43380d(0x6f),'attributes':{'class':[_0x43380d(0x6b)]}},{'tag':_0x43380d(0x6f),'attributes':{'class':[_0x43380d(0x6b)]}},{'tag':_0x43380d(0x6f),'attributes':{'class':[_0x43380d(0x6b)]}}]},{'text':_0x4bc66d(this[_0x43380d(0x78)],_0x43380d(0x66))}]}),_0x22499a;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5e100a=_0x2ddd;(function(_0x25d1ae,_0x236851){const _0x155c3c=_0x2ddd,_0x12bbe9=_0x25d1ae();while(!![]){try{const _0x1815ae=parseInt(_0x155c3c(0xf7))/0x1*(-parseInt(_0x155c3c(0xef))/0x2)+-parseInt(_0x155c3c(0xc5))/0x3*(parseInt(_0x155c3c(0xd7))/0x4)+parseInt(_0x155c3c(0xde))/0x5+parseInt(_0x155c3c(0xc0))/0x6*(parseInt(_0x155c3c(0xa8))/0x7)+parseInt(_0x155c3c(0xf1))/0x8+-parseInt(_0x155c3c(0xe7))/0x9+-parseInt(_0x155c3c(0xed))/0xa;if(_0x1815ae===_0x236851)break;else _0x12bbe9['push'](_0x12bbe9['shift']());}catch(_0x8f9063){_0x12bbe9['push'](_0x12bbe9['shift']());}}}(_0x2881,0x86d3b));import{Collection as _0xfc2991}from'ckeditor5/src/utils.js';import{IconAI as _0xa9523b,IconBulb as _0x2c3d2e,IconWeb as _0x1808c9}from'@ckeditor/ckeditor5-icons';function _0x2ddd(_0x426d76,_0x3f5fe7){const _0x288126=_0x2881();return _0x2ddd=function(_0x2dddfa,_0x42f497){_0x2dddfa=_0x2dddfa-0x97;let _0x468d84=_0x288126[_0x2dddfa];return _0x468d84;},_0x2ddd(_0x426d76,_0x3f5fe7);}import{addListToDropdown as _0x3b1778,ButtonLabelView as _0x3edc36,ButtonView as _0x5e4c81,createDropdown as _0xcbe46d,IconView as _0x3cea26,UIModel as _0x48d887,View as _0x50fe97}from'ckeditor5/src/ui.js';import{getTranslation as _0x2c93d2}from'../../../aicore/utils/common-translations.js';const Ho=_0x5e100a(0xe5),Vo=_0x5e100a(0xdc),Mo=_0x5e100a(0x9d),Lo=_0x5e100a(0xd3),Do=_0x5e100a(0x9a),Wo=_0x5e100a(0xa6),yo=_0x5e100a(0xea),Go='n';function _0x2881(){const _0x12d985=['toLowerCase','ck-ai-chat-controls__model-selection__item-description','bindTemplate','7TqCndr','listenTo','reasoningActive','AI_CHAT_COMMANDS','ck-hidden','add','modelSelectorVisible','_createCommandsButton','isEnabled','addMany','capabilities','button','activeModelId','log','_getCapabilityParts','toggleReasoning','AI_CHAT_REASONING','setWebSearch','description','fire','buttonView','extendTemplate','enabled','text','5322090QJWZBE','startsWith','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','agent','setModelList','3CxXZUq','reasoning','AI_CHAT_SEARCH_WEB','isVisible','_modelSelectionDropdownItems','_createModelSelectionDropdown','isOn','ck-button__label','setModel','_reasoningButton','AI_CHAT_DISABLE_WEB_SEARCH','tooltip','style','webSearchActive','ck-ai-chat-controls__model-selection','div','withText','AI_CHAT_ENABLE_WEB_SEARCH','2435588sruKPV','ck-ai-chat-controls__model-name','_webSearchButton','webSearch','toggleWebSearch','ck-ai-chat-controls-button','_createWebSearchButton','3609065wIcpbA','_createModelNameView','activeModelName','execute','setReasoning','_createReasoningButton','set','ck-ai-chat__prompt-capabilities','modelSelectorEnabled','1278414ORJYNe','createCollection','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','ck-ai-chat-controls__model-selection__item-capabilities','model','content','574520bkfzaH','label','6476UhYztE','Commands\x20are\x20not\x20implemented\x20yet.','242288STUGqF','selectModel','locale','AI_CHAT_CAPABILITIES_NO','span','_modelSelectionDropdown','86FIoOKt','disableModelSelector','length','setTemplate','menuitemradio','bind','ck-ai-chat-controls__model-selection__item-name','enableModelSelector','name','ck-ai-chat-controls-button--commands','AI_CHAT_DISABLE_REASONING','_commandsButton','_modelNameView','source','AI_CHAT_ENABLE_REASONING','AI_CHAT_CAPABILITIES_YES','clear'];_0x2881=function(){return _0x12d985;};return _0x2881();}export class AIChatPromptCapabilitiesView extends _0x50fe97{[_0x5e100a(0xd9)];[_0x5e100a(0xce)];[_0x5e100a(0x9f)];[_0x5e100a(0xf6)];[_0x5e100a(0xc9)];[_0x5e100a(0xa0)];constructor(_0x50aa8c){const _0x2907c5=_0x5e100a;super(_0x50aa8c),this[_0x2907c5(0xe4)](_0x2907c5(0xd2),!0x1),this[_0x2907c5(0xe4)](_0x2907c5(0xaa),!0x1),this[_0x2907c5(0xe4)](_0x2907c5(0xae),!0x0),this[_0x2907c5(0xe4)](_0x2907c5(0xe6),!0x0),this[_0x2907c5(0xe4)](_0x2907c5(0xb4),''),this[_0x2907c5(0xe4)](_0x2907c5(0xe0),''),this[_0x2907c5(0xf6)]=this[_0x2907c5(0xca)](),this[_0x2907c5(0xa0)]=this[_0x2907c5(0xdf)](),this[_0x2907c5(0xd9)]=this[_0x2907c5(0xdd)](),this[_0x2907c5(0xce)]=this[_0x2907c5(0xe3)](),this[_0x2907c5(0x9f)]=this[_0x2907c5(0xaf)](),this[_0x2907c5(0xf6)][_0x2907c5(0xbc)][_0x2907c5(0x99)](_0x2907c5(0xc8))['to'](this,_0x2907c5(0xae),_0x120e59=>_0x120e59),this[_0x2907c5(0xf6)][_0x2907c5(0xbc)][_0x2907c5(0x99)](_0x2907c5(0xd0))['to'](this,_0x2907c5(0xe6),_0x4eee06=>_0x4eee06?this[_0x2907c5(0xf6)][_0x2907c5(0xbc)][_0x2907c5(0xee)]:_0x2c93d2(this[_0x2907c5(0xf3)],_0x2907c5(0xc2))),this[_0x2907c5(0xf6)][_0x2907c5(0x99)](_0x2907c5(0xb0))['to'](this,_0x2907c5(0xe6),_0x1c2d49=>_0x1c2d49),this[_0x2907c5(0xd9)][_0x2907c5(0x99)](_0x2907c5(0xcb))['to'](this,_0x2907c5(0xd2),_0x55847b=>_0x55847b),this[_0x2907c5(0xd9)][_0x2907c5(0x99)](_0x2907c5(0xd5))['to'](this,_0x2907c5(0xae),_0x4b5502=>!_0x4b5502),this[_0x2907c5(0xd9)][_0x2907c5(0x99)](_0x2907c5(0xd0))['to'](this,_0x2907c5(0xd2),_0x3b7946=>_0x2c93d2(this[_0x2907c5(0xf3)],_0x3b7946?_0x2907c5(0xcf):_0x2907c5(0xd6))),this[_0x2907c5(0xce)][_0x2907c5(0x99)](_0x2907c5(0xcb))['to'](this,_0x2907c5(0xaa),_0x84ffea=>_0x84ffea),this[_0x2907c5(0xce)][_0x2907c5(0x99)](_0x2907c5(0xd5))['to'](this,_0x2907c5(0xae),_0x2a44b5=>!_0x2a44b5),this[_0x2907c5(0xce)][_0x2907c5(0x99)](_0x2907c5(0xd0))['to'](this,_0x2907c5(0xaa),_0x4982ad=>_0x2c93d2(this[_0x2907c5(0xf3)],_0x4982ad?_0x2907c5(0x9e):_0x2907c5(0xa2))),this[_0x2907c5(0x97)]({'tag':_0x2907c5(0xd4),'attributes':{'class':[Ho]},'children':[this[_0x2907c5(0xf6)],this[_0x2907c5(0xa0)],this[_0x2907c5(0xd9)],this[_0x2907c5(0xce)],this[_0x2907c5(0x9f)]]}),this[_0x2907c5(0xc9)]=new _0xfc2991(),_0x3b1778(this[_0x2907c5(0xf6)],this[_0x2907c5(0xc9)]);}[_0x5e100a(0xc4)](_0x7525f,_0x300fb0){const _0x14fab3=_0x5e100a;if(this[_0x14fab3(0xe4)](_0x14fab3(0xae),!(_0x300fb0&&_0x7525f[_0x14fab3(0xf9)]<=0x1)),this[_0x14fab3(0xc9)][_0x14fab3(0xa4)](),_0x7525f?.[_0x14fab3(0xf9)])for(const _0x5e33a3 of _0x7525f){const _0x30547d=new _0x48d887({'label':_0x5e33a3[_0x14fab3(0x9c)],'withText':!0x0,'role':_0x14fab3(0x98),'id':_0x5e33a3['id'],'model':_0x5e33a3});_0x30547d[_0x14fab3(0x99)](_0x14fab3(0xcb))['to'](this,_0x14fab3(0xb4),_0x41c8d8=>_0x41c8d8===_0x5e33a3['id']),this[_0x14fab3(0xc9)][_0x14fab3(0xad)]({'type':_0x14fab3(0xb3),'model':_0x30547d,'labelView':new js(this[_0x14fab3(0xf3)],_0x5e33a3)});}}[_0x5e100a(0xb9)](_0x4ebd57){const _0x1851b1=_0x5e100a;this[_0x1851b1(0xe4)](_0x1851b1(0xd2),_0x4ebd57);}[_0x5e100a(0xe2)](_0x36e27d){const _0x3b825d=_0x5e100a;this[_0x3b825d(0xe4)](_0x3b825d(0xaa),_0x36e27d);}[_0x5e100a(0xcd)](_0x6c8b8c){const _0x5dc7f4=_0x5e100a;if(!_0x6c8b8c)return;this[_0x5dc7f4(0xb4)]=_0x6c8b8c['id'],this[_0x5dc7f4(0xe0)]=_0x6c8b8c[_0x5dc7f4(0x9c)]||_0x6c8b8c['id'],this[_0x5dc7f4(0xf6)][_0x5dc7f4(0xbc)][_0x5dc7f4(0xe4)](_0x5dc7f4(0xee),_0x6c8b8c[_0x5dc7f4(0x9c)]),this[_0x5dc7f4(0xf6)][_0x5dc7f4(0xbc)][_0x5dc7f4(0xe4)](_0x5dc7f4(0xd0),_0x6c8b8c[_0x5dc7f4(0x9c)]);const _0x1f5072=_0x6c8b8c[_0x5dc7f4(0xb2)][_0x5dc7f4(0xda)]?.[_0x5dc7f4(0xbe)]??!0x1;this[_0x5dc7f4(0xe4)](_0x5dc7f4(0xd2),!0x1),this[_0x5dc7f4(0xd9)][_0x5dc7f4(0xe4)](_0x5dc7f4(0xcb),!0x1),this[_0x5dc7f4(0xd9)][_0x5dc7f4(0xe4)](_0x5dc7f4(0xb0),_0x1f5072),this[_0x5dc7f4(0xd9)][_0x5dc7f4(0xe4)](_0x5dc7f4(0xc8),_0x1f5072);const _0x126afd=_0x6c8b8c[_0x5dc7f4(0xb2)][_0x5dc7f4(0xc6)]?.[_0x5dc7f4(0xbe)]??!0x1;this[_0x5dc7f4(0xe4)](_0x5dc7f4(0xaa),!0x1),this[_0x5dc7f4(0xce)][_0x5dc7f4(0xe4)](_0x5dc7f4(0xcb),!0x1),this[_0x5dc7f4(0xce)][_0x5dc7f4(0xe4)](_0x5dc7f4(0xb0),_0x126afd),this[_0x5dc7f4(0xce)][_0x5dc7f4(0xe4)](_0x5dc7f4(0xc8),_0x126afd);}[_0x5e100a(0x9b)](){const _0x4d559f=_0x5e100a;this[_0x4d559f(0xe4)](_0x4d559f(0xe6),!0x0),this[_0x4d559f(0xe4)](_0x4d559f(0xae),!0x0);}[_0x5e100a(0xf8)](_0x4c6a73){const _0x5e0e80=_0x5e100a;this[_0x5e0e80(0xe4)](_0x5e0e80(0xe6),!0x1),_0x4c6a73&&this[_0x5e0e80(0xe4)](_0x5e0e80(0xae),!0x1);}[_0x5e100a(0xdd)](){const _0x27b78e=_0x5e100a,_0x2f6ce1=new _0x5e4c81();return _0x2f6ce1[_0x27b78e(0xe4)]({'label':_0x2c93d2(this[_0x27b78e(0xf3)],_0x27b78e(0xc7)),'icon':_0x1808c9,'class':Vo,'isToggleable':!0x0,'tooltipPosition':Go}),_0x2f6ce1['on'](_0x27b78e(0xe1),()=>{const _0x5b63b7=_0x27b78e;this[_0x5b63b7(0xbb)](_0x5b63b7(0xdb));}),_0x2f6ce1;}[_0x5e100a(0xe3)](){const _0x188af5=_0x5e100a,_0x2215f3=new _0x5e4c81();return _0x2215f3[_0x188af5(0xe4)]({'label':_0x2c93d2(this[_0x188af5(0xf3)],_0x188af5(0xb8)),'icon':_0x2c3d2e,'class':Vo,'isToggleable':!0x0,'tooltipPosition':Go}),_0x2215f3['on'](_0x188af5(0xe1),()=>{const _0x6c34f1=_0x188af5;this[_0x6c34f1(0xbb)](_0x6c34f1(0xb7));}),_0x2215f3;}[_0x5e100a(0xaf)](){const _0x2c27d6=_0x5e100a,_0x2be18f=new _0x5e4c81();return _0x2be18f[_0x2c27d6(0xe4)]({'label':_0x2c93d2(this[_0x2c27d6(0xf3)],_0x2c27d6(0xab)),'icon':_0xa9523b,'withText':!0x0,'class':Vo,'isToggleable':!0x0,'tooltip':_0x2c93d2(this[_0x2c27d6(0xf3)],_0x2c27d6(0xab)),'tooltipPosition':Go}),_0x2be18f[_0x2c27d6(0xbd)]({'attributes':{'class':[Mo]}}),_0x2be18f['on'](_0x2c27d6(0xe1),()=>{const _0x5dd426=_0x2c27d6;console[_0x5dd426(0xb5)](_0x5dd426(0xf0)),alert(_0x5dd426(0xf0));}),_0x2be18f;}[_0x5e100a(0xca)](){const _0x57afe4=_0x5e100a,_0xabfb2c=_0xcbe46d(this[_0x57afe4(0xf3)]);return _0xabfb2c[_0x57afe4(0xe4)]({'panelPosition':'ne','class':[Lo]}),_0xabfb2c[_0x57afe4(0xbc)][_0x57afe4(0xe4)]({'label':_0x2c93d2(this[_0x57afe4(0xf3)],_0x57afe4(0xe9)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':Go}),this[_0x57afe4(0xa9)](_0xabfb2c,_0x57afe4(0xe1),_0x1adeb7=>{const _0x30033f=_0x57afe4;this[_0x30033f(0xbb)](_0x30033f(0xf2),_0x1adeb7[_0x30033f(0xa1)][_0x30033f(0xeb)]);}),_0xabfb2c;}[_0x5e100a(0xdf)](){const _0x58e911=_0x5e100a,_0x2ae8ae=new jo(this[_0x58e911(0xf3)]);return _0x2ae8ae[_0x58e911(0x99)](_0x58e911(0xbf))['to'](this,_0x58e911(0xe0),_0x4baee4=>_0x4baee4??''),_0x2ae8ae[_0x58e911(0x99)](_0x58e911(0xc8))['to'](this,_0x58e911(0xae),this,_0x58e911(0xe0),(_0x166d5d,_0x2d9139)=>!_0x166d5d&&!_0x2d9139?.[_0x58e911(0xa5)]()[_0x58e911(0xc1)](_0x58e911(0xc3))),_0x2ae8ae;}}class js extends _0x3edc36{constructor(_0x2c850b,_0x34dd2e){const _0x34f2a1=_0x5e100a;super();const _0x299caa=this[_0x34f2a1(0xa7)],_0x368ff3=this[_0x34f2a1(0xe8)]();this[_0x34f2a1(0x97)]({'tag':_0x34f2a1(0xd4),'attributes':{'class':['ck',_0x34f2a1(0xcc)],'style':_0x299caa['to'](_0x34f2a1(0xd1)),'id':_0x299caa['to']('id')},'children':[{'tag':_0x34f2a1(0xd4),'attributes':{'class':[Do]},'children':[{'text':_0x299caa['to'](_0x34f2a1(0xbf))}]},{'tag':_0x34f2a1(0xd4),'attributes':{'class':[Wo]},'children':[{'tag':_0x34f2a1(0xf5),'children':[{'text':_0x34dd2e[_0x34f2a1(0xba)]}]}]},{'tag':_0x34f2a1(0xd4),'attributes':{'class':[yo]},'children':_0x368ff3}]}),_0x368ff3[_0x34f2a1(0xb1)](this[_0x34f2a1(0xb6)](_0x2c850b,_0x1808c9,_0x34f2a1(0xc7),_0x34dd2e[_0x34f2a1(0xb2)][_0x34f2a1(0xda)]?.[_0x34f2a1(0xbe)]??!0x1)),_0x368ff3[_0x34f2a1(0xb1)](this[_0x34f2a1(0xb6)](_0x2c850b,_0x2c3d2e,_0x34f2a1(0xb8),_0x34dd2e[_0x34f2a1(0xb2)][_0x34f2a1(0xc6)]?.[_0x34f2a1(0xbe)]??!0x1));}[_0x5e100a(0xb6)](_0x46e31e,_0x4611b0,_0x3553c5,_0x24c922){const _0x4b9ee7=_0x5e100a,_0x506451=new _0x3cea26();_0x506451[_0x4b9ee7(0xec)]=_0x4611b0;const _0x180eec=new _0x50fe97(_0x46e31e);_0x180eec[_0x4b9ee7(0x97)]({'tag':_0x4b9ee7(0xf5),'children':[{'text':_0x2c93d2(_0x46e31e,_0x3553c5)+':\x20'}]});const _0x6544ca=new _0x50fe97(_0x46e31e);return _0x6544ca[_0x4b9ee7(0x97)]({'tag':_0x4b9ee7(0xf5),'children':[{'text':_0x2c93d2(_0x46e31e,_0x24c922?_0x4b9ee7(0xa3):_0x4b9ee7(0xf4))}]}),[_0x506451,_0x180eec,_0x6544ca];}}class jo extends _0x50fe97{constructor(_0x5c1cd6){const _0x27b9fd=_0x5e100a;super(_0x5c1cd6),this[_0x27b9fd(0xe4)](_0x27b9fd(0xbf),void 0x0),this[_0x27b9fd(0xe4)](_0x27b9fd(0xc8),!0x0);const _0x1c7e00=this[_0x27b9fd(0xa7)];this[_0x27b9fd(0x97)]({'tag':_0x27b9fd(0xf5),'attributes':{'class':['ck',_0x27b9fd(0xd8),_0x1c7e00['if'](_0x27b9fd(0xc8),_0x27b9fd(0xac),_0x422d46=>!_0x422d46)]},'children':[{'text':_0x1c7e00['to'](_0x27b9fd(0xbf))}]});}}
23
+ const _0xd5577=_0x29a9;(function(_0x2da4e0,_0x538714){const _0x48deb6=_0x29a9,_0x341d1e=_0x2da4e0();while(!![]){try{const _0x2a15dd=-parseInt(_0x48deb6(0xf7))/0x1*(parseInt(_0x48deb6(0xf2))/0x2)+parseInt(_0x48deb6(0xef))/0x3+parseInt(_0x48deb6(0x127))/0x4*(-parseInt(_0x48deb6(0x120))/0x5)+-parseInt(_0x48deb6(0xda))/0x6+-parseInt(_0x48deb6(0x11c))/0x7*(-parseInt(_0x48deb6(0xf4))/0x8)+parseInt(_0x48deb6(0xec))/0x9+parseInt(_0x48deb6(0xf5))/0xa;if(_0x2a15dd===_0x538714)break;else _0x341d1e['push'](_0x341d1e['shift']());}catch(_0x1a1593){_0x341d1e['push'](_0x341d1e['shift']());}}}(_0x45c8,0x364ab));import{Collection as _0x425cee}from'ckeditor5/src/utils.js';import{IconAI as _0x51be6d,IconBulb as _0x262f1a,IconWeb as _0x236a58}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x4951a4,ButtonLabelView as _0x5b3b73,ButtonView as _0x502880,createDropdown as _0x404c91,IconView as _0xe71593,UIModel as _0x1e7e0b,View as _0x4a59f}from'ckeditor5/src/ui.js';import{getTranslation as _0x505da2}from'../../../aicore/utils/common-translations.js';function _0x45c8(){const _0x4dd25c=['tooltip','_getCapabilityParts','activeModelName','5lWaumN','_modelSelectionDropdownItems','webSearchActive','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','toggleWebSearch','AI_CHAT_REASONING','_commandsButton','752788tAUxbI','AI_CHAT_ENABLE_REASONING','ck-button__label','setModel','reasoning','startsWith','AI_CHAT_ENABLE_WEB_SEARCH','locale','_createModelSelectionDropdown','createCollection','set','withText','AI_CHAT_COMMANDS','label','add','ck-ai-chat__prompt-capabilities','capabilities','_createReasoningButton','setTemplate','setModelList','_modelSelectionDropdown','addMany','769272YGNptO','extendTemplate','_modelNameView','ck-ai-chat-controls__model-selection','execute','div','bind','fire','setReasoning','enabled','model','description','clear','AI_CHAT_CAPABILITIES_NO','ck-ai-chat-controls__model-name','enableModelSelector','ck-hidden','bindTemplate','982926clvtSp','span','ck-ai-chat-controls-button--commands','253002LfQtWM','listenTo','button','834BkfcYq','Commands\x20are\x20not\x20implemented\x20yet.','80Vxpdxv','4063490YCPoiV','menuitemradio','147oyzhiC','_webSearchButton','isOn','isVisible','log','ck-ai-chat-controls__model-selection__item-capabilities','_createCommandsButton','AI_CHAT_SEARCH_WEB','_reasoningButton','ck-ai-chat-controls__model-selection__item-description','content','reasoningActive','source','setWebSearch','_createModelNameView','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','toLowerCase','name','toggleReasoning','_createWebSearchButton','ck-ai-chat-controls__model-selection__item-name','AI_CHAT_CAPABILITIES_YES','isEnabled','activeModelId','agent','ck-ai-chat-controls-button','AI_CHAT_DISABLE_REASONING','modelSelectorEnabled','text','style','AI_CHAT_DISABLE_WEB_SEARCH','selectModel','modelSelectorVisible','buttonView','disableModelSelector','webSearch','length','133cCLvWd'];_0x45c8=function(){return _0x4dd25c;};return _0x45c8();}const Mo=_0xd5577(0xd3),Io=_0xd5577(0x110),Do=_0xd5577(0xee),Wo=_0xd5577(0xdd),yo=_0xd5577(0x10b),Go=_0xd5577(0x100),jo=_0xd5577(0xfc),Yo='n';function _0x29a9(_0x35a663,_0x58130a){const _0x45c84d=_0x45c8();return _0x29a9=function(_0x29a96c,_0x245fed){_0x29a96c=_0x29a96c-0xca;let _0x5a9531=_0x45c84d[_0x29a96c];return _0x5a9531;},_0x29a9(_0x35a663,_0x58130a);}export class AIChatPromptCapabilitiesView extends _0x4a59f{[_0xd5577(0xf8)];[_0xd5577(0xff)];[_0xd5577(0x126)];[_0xd5577(0xd8)];[_0xd5577(0x121)];[_0xd5577(0xdc)];constructor(_0x592743){const _0x191255=_0xd5577;super(_0x592743),this[_0x191255(0xce)](_0x191255(0x122),!0x1),this[_0x191255(0xce)](_0x191255(0x102),!0x1),this[_0x191255(0xce)](_0x191255(0x117),!0x0),this[_0x191255(0xce)](_0x191255(0x112),!0x0),this[_0x191255(0xce)](_0x191255(0x10e),null),this[_0x191255(0xce)](_0x191255(0x11f),null),this[_0x191255(0xd8)]=this[_0x191255(0xcc)](),this[_0x191255(0xdc)]=this[_0x191255(0x105)](),this[_0x191255(0xf8)]=this[_0x191255(0x10a)](),this[_0x191255(0xff)]=this[_0x191255(0xd5)](),this[_0x191255(0x126)]=this[_0x191255(0xfd)](),this[_0x191255(0xd8)][_0x191255(0x118)][_0x191255(0xe0)](_0x191255(0xfa))['to'](this,_0x191255(0x117),_0x3cc58b=>_0x3cc58b),this[_0x191255(0xd8)][_0x191255(0x118)][_0x191255(0xe0)](_0x191255(0x11d))['to'](this,_0x191255(0x112),_0x10e437=>_0x10e437?this[_0x191255(0xd8)][_0x191255(0x118)][_0x191255(0xd1)]:_0x505da2(this[_0x191255(0xcb)],_0x191255(0x123))),this[_0x191255(0xd8)][_0x191255(0xe0)](_0x191255(0x10d))['to'](this,_0x191255(0x112),_0x274335=>_0x274335),this[_0x191255(0xf8)][_0x191255(0xe0)](_0x191255(0xf9))['to'](this,_0x191255(0x122),_0x18a924=>_0x18a924),this[_0x191255(0xf8)][_0x191255(0xe0)](_0x191255(0xcf))['to'](this,_0x191255(0x117),_0x1fe43e=>!_0x1fe43e),this[_0x191255(0xf8)][_0x191255(0xe0)](_0x191255(0x11d))['to'](this,_0x191255(0x122),_0x2e3b66=>_0x505da2(this[_0x191255(0xcb)],_0x2e3b66?_0x191255(0x115):_0x191255(0xca))),this[_0x191255(0xff)][_0x191255(0xe0)](_0x191255(0xf9))['to'](this,_0x191255(0x102),_0x2ce2a4=>_0x2ce2a4),this[_0x191255(0xff)][_0x191255(0xe0)](_0x191255(0xcf))['to'](this,_0x191255(0x117),_0x323b9a=>!_0x323b9a),this[_0x191255(0xff)][_0x191255(0xe0)](_0x191255(0x11d))['to'](this,_0x191255(0x102),_0x4e500b=>_0x505da2(this[_0x191255(0xcb)],_0x4e500b?_0x191255(0x111):_0x191255(0x128))),this[_0x191255(0xd6)]({'tag':_0x191255(0xdf),'attributes':{'class':[Mo]},'children':[this[_0x191255(0xd8)],this[_0x191255(0xdc)],this[_0x191255(0xf8)],this[_0x191255(0xff)],this[_0x191255(0x126)]]}),this[_0x191255(0x121)]=new _0x425cee(),_0x4951a4(this[_0x191255(0xd8)],this[_0x191255(0x121)]);}[_0xd5577(0xd7)](_0x41d903,_0x30af9f){const _0x3c8a61=_0xd5577;if(this[_0x3c8a61(0xce)](_0x3c8a61(0x117),!(_0x30af9f&&_0x41d903[_0x3c8a61(0x11b)]<=0x1)),this[_0x3c8a61(0x121)][_0x3c8a61(0xe6)](),_0x41d903?.[_0x3c8a61(0x11b)])for(const _0x3ae019 of _0x41d903){const _0x40abdd=new _0x1e7e0b({'label':_0x3ae019[_0x3c8a61(0x108)],'withText':!0x0,'role':_0x3c8a61(0xf6),'id':_0x3ae019['id'],'model':_0x3ae019});_0x40abdd[_0x3c8a61(0xe0)](_0x3c8a61(0xf9))['to'](this,_0x3c8a61(0x10e),_0x5064dc=>_0x5064dc===_0x3ae019['id']),this[_0x3c8a61(0x121)][_0x3c8a61(0xd2)]({'type':_0x3c8a61(0xf1),'model':_0x40abdd,'labelView':new Hs(this[_0x3c8a61(0xcb)],_0x3ae019)});}}[_0xd5577(0x104)](_0x3bf65e){const _0x4aaaa7=_0xd5577;this[_0x4aaaa7(0xce)](_0x4aaaa7(0x122),_0x3bf65e);}[_0xd5577(0xe2)](_0x8b0f46){const _0x5222bf=_0xd5577;this[_0x5222bf(0xce)](_0x5222bf(0x102),_0x8b0f46);}[_0xd5577(0x12a)](_0x341e6e){const _0x460009=_0xd5577;if(!_0x341e6e)return;this[_0x460009(0x10e)]=_0x341e6e['id'],this[_0x460009(0x11f)]=_0x341e6e[_0x460009(0x108)]||_0x341e6e['id'],this[_0x460009(0xd8)][_0x460009(0x118)][_0x460009(0xce)](_0x460009(0xd1),_0x341e6e[_0x460009(0x108)]),this[_0x460009(0xd8)][_0x460009(0x118)][_0x460009(0xce)](_0x460009(0x11d),_0x341e6e[_0x460009(0x108)]);const _0x1d33fb=_0x341e6e[_0x460009(0xd4)][_0x460009(0x11a)]?.[_0x460009(0xe3)]??!0x1;this[_0x460009(0xce)](_0x460009(0x122),!0x1),this[_0x460009(0xf8)][_0x460009(0xce)](_0x460009(0xf9),!0x1),this[_0x460009(0xf8)][_0x460009(0xce)](_0x460009(0x10d),_0x1d33fb),this[_0x460009(0xf8)][_0x460009(0xce)](_0x460009(0xfa),_0x1d33fb);const _0x2eed38=_0x341e6e[_0x460009(0xd4)][_0x460009(0x12b)]?.[_0x460009(0xe3)]??!0x1;this[_0x460009(0xce)](_0x460009(0x102),!0x1),this[_0x460009(0xff)][_0x460009(0xce)](_0x460009(0xf9),!0x1),this[_0x460009(0xff)][_0x460009(0xce)](_0x460009(0x10d),_0x2eed38),this[_0x460009(0xff)][_0x460009(0xce)](_0x460009(0xfa),_0x2eed38);}[_0xd5577(0xe9)](){const _0x205c60=_0xd5577;this[_0x205c60(0xce)](_0x205c60(0x112),!0x0),this[_0x205c60(0xce)](_0x205c60(0x117),!0x0);}[_0xd5577(0x119)](_0x4080de){const _0xad9da0=_0xd5577;this[_0xad9da0(0xce)](_0xad9da0(0x112),!0x1),_0x4080de&&this[_0xad9da0(0xce)](_0xad9da0(0x117),!0x1);}[_0xd5577(0x10a)](){const _0x3d0dd1=_0xd5577,_0x51cd31=new _0x502880();return _0x51cd31[_0x3d0dd1(0xce)]({'label':_0x505da2(this[_0x3d0dd1(0xcb)],_0x3d0dd1(0xfe)),'icon':_0x236a58,'class':Io,'isToggleable':!0x0,'tooltipPosition':Yo}),_0x51cd31['on'](_0x3d0dd1(0xde),()=>{const _0x35f2d0=_0x3d0dd1;this[_0x35f2d0(0xe1)](_0x35f2d0(0x124));}),_0x51cd31;}[_0xd5577(0xd5)](){const _0xded50b=_0xd5577,_0x32562a=new _0x502880();return _0x32562a[_0xded50b(0xce)]({'label':_0x505da2(this[_0xded50b(0xcb)],_0xded50b(0x125)),'icon':_0x262f1a,'class':Io,'isToggleable':!0x0,'tooltipPosition':Yo}),_0x32562a['on'](_0xded50b(0xde),()=>{const _0x89f640=_0xded50b;this[_0x89f640(0xe1)](_0x89f640(0x109));}),_0x32562a;}[_0xd5577(0xfd)](){const _0x192fe2=_0xd5577,_0x39f9ca=new _0x502880();return _0x39f9ca[_0x192fe2(0xce)]({'label':_0x505da2(this[_0x192fe2(0xcb)],_0x192fe2(0xd0)),'icon':_0x51be6d,'withText':!0x0,'class':Io,'isToggleable':!0x0,'tooltip':_0x505da2(this[_0x192fe2(0xcb)],_0x192fe2(0xd0)),'tooltipPosition':Yo}),_0x39f9ca[_0x192fe2(0xdb)]({'attributes':{'class':[Do]}}),_0x39f9ca['on'](_0x192fe2(0xde),()=>{const _0x4572aa=_0x192fe2;console[_0x4572aa(0xfb)](_0x4572aa(0xf3)),alert(_0x4572aa(0xf3));}),_0x39f9ca;}[_0xd5577(0xcc)](){const _0x315adf=_0xd5577,_0x2fdbf5=_0x404c91(this[_0x315adf(0xcb)]);return _0x2fdbf5[_0x315adf(0xce)]({'panelPosition':'ne','class':[Wo]}),_0x2fdbf5[_0x315adf(0x118)][_0x315adf(0xce)]({'label':_0x505da2(this[_0x315adf(0xcb)],_0x315adf(0x106)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':Yo}),this[_0x315adf(0xf0)](_0x2fdbf5,_0x315adf(0xde),_0x5cd10b=>{const _0xbbdcb2=_0x315adf;this[_0xbbdcb2(0xe1)](_0xbbdcb2(0x116),_0x5cd10b[_0xbbdcb2(0x103)][_0xbbdcb2(0xe4)]);}),_0x2fdbf5;}[_0xd5577(0x105)](){const _0x318e55=_0xd5577,_0x59902f=new qo(this[_0x318e55(0xcb)]);return _0x59902f[_0x318e55(0xe0)](_0x318e55(0x113))['to'](this,_0x318e55(0x11f),_0x4c1eb1=>_0x4c1eb1??''),_0x59902f[_0x318e55(0xe0)](_0x318e55(0xfa))['to'](this,_0x318e55(0x117),this,_0x318e55(0x11f),(_0x4f577b,_0x59025c)=>!_0x4f577b&&!_0x59025c?.[_0x318e55(0x107)]()[_0x318e55(0x12c)](_0x318e55(0x10f))),_0x59902f;}}class Hs extends _0x5b3b73{constructor(_0xaf909e,_0x325bd7){const _0x355752=_0xd5577;super();const _0xaf4f38=this[_0x355752(0xeb)],_0x5b448b=this[_0x355752(0xcd)]();this[_0x355752(0xd6)]({'tag':_0x355752(0xdf),'attributes':{'class':['ck',_0x355752(0x129)],'style':_0xaf4f38['to'](_0x355752(0x114)),'id':_0xaf4f38['to']('id')},'children':[{'tag':_0x355752(0xdf),'attributes':{'class':[yo]},'children':[{'text':_0xaf4f38['to'](_0x355752(0x113))}]},{'tag':_0x355752(0xdf),'attributes':{'class':[Go]},'children':[{'tag':_0x355752(0xed),'children':[{'text':_0x325bd7[_0x355752(0xe5)]}]}]},{'tag':_0x355752(0xdf),'attributes':{'class':[jo]},'children':_0x5b448b}]}),_0x5b448b[_0x355752(0xd9)](this[_0x355752(0x11e)](_0xaf909e,_0x236a58,_0x355752(0xfe),_0x325bd7[_0x355752(0xd4)][_0x355752(0x11a)]?.[_0x355752(0xe3)]??!0x1)),_0x5b448b[_0x355752(0xd9)](this[_0x355752(0x11e)](_0xaf909e,_0x262f1a,_0x355752(0x125),_0x325bd7[_0x355752(0xd4)][_0x355752(0x12b)]?.[_0x355752(0xe3)]??!0x1));}[_0xd5577(0x11e)](_0x55722a,_0x4d8055,_0x3c9c0e,_0xc0054f){const _0x532eda=_0xd5577,_0x4443b6=new _0xe71593();_0x4443b6[_0x532eda(0x101)]=_0x4d8055;const _0x520f76=new _0x4a59f(_0x55722a);_0x520f76[_0x532eda(0xd6)]({'tag':_0x532eda(0xed),'children':[{'text':_0x505da2(_0x55722a,_0x3c9c0e)+':\x20'}]});const _0x3983b6=new _0x4a59f(_0x55722a);return _0x3983b6[_0x532eda(0xd6)]({'tag':_0x532eda(0xed),'children':[{'text':_0x505da2(_0x55722a,_0xc0054f?_0x532eda(0x10c):_0x532eda(0xe7))}]}),[_0x4443b6,_0x520f76,_0x3983b6];}}class qo extends _0x4a59f{constructor(_0x44d483){const _0x24871b=_0xd5577;super(_0x44d483),this[_0x24871b(0xce)](_0x24871b(0x113),void 0x0),this[_0x24871b(0xce)](_0x24871b(0xfa),!0x0);const _0x593df1=this[_0x24871b(0xeb)];this[_0x24871b(0xd6)]({'tag':_0x24871b(0xed),'attributes':{'class':['ck',_0x24871b(0xe8),_0x593df1['if'](_0x24871b(0xfa),_0x24871b(0xea),_0x4d5f26=>!_0x4d5f26)]},'children':[{'text':_0x593df1['to'](_0x24871b(0x113))}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3f31cc=_0x3005;function _0x4c81(){const _0xecbf50=['_addContextButtonView','add','1775901EZivXm','focusableChildren','style','keystrokes','fieldWrapperChildren','5zBayiU','fire','_setUpAddContextButtonPositioning','MIN_ROWS','errorText','MAX_ROWS','hasError','px\x20-\x20var(--ck-spacing-tiny))','right','AI_CHAT_PROMPT_EMPTY_ERROR','calc(','width','isEnabled','508lXgaOu','7185310UgRpJG','setIsUploadInProgress','14rRREnE','5158616qEseTS','1041354DdvhZO','_queryViewResizeObserver','excludeScrollbarsAndBorders','reset','bind','2705nOtGCo','submitButtonView','placeholder','value','uiLanguageDirection','ck-ai-chat__prompt-input','minRows','setPlaceholderText','isUploadInProgress','1440063yOlMUy','left','_createSubmitButton','target','ck-ai-chat__prompt-submit-button','rtl','window','update','isEmpty','40dMEqfw','render','submit','queryView','AI_CHAT_LABEL_SUBMIT','requestAnimationFrame','execute','element','extendTemplate','set','2236076LKBlDv','destroy','locale','enter','fieldView','maxRows','trim','sendUserMessage'];_0x4c81=function(){return _0xecbf50;};return _0x4c81();}(function(_0x112403,_0x29fe81){const _0x5c6e9b=_0x3005,_0x38153f=_0x112403();while(!![]){try{const _0x23117a=parseInt(_0x5c6e9b(0x1a8))/0x1*(parseInt(_0x5c6e9b(0x19e))/0x2)+parseInt(_0x5c6e9b(0x18c))/0x3+parseInt(_0x5c6e9b(0x1c4))/0x4*(parseInt(_0x5c6e9b(0x191))/0x5)+-parseInt(_0x5c6e9b(0x1a3))/0x6*(-parseInt(_0x5c6e9b(0x1a1))/0x7)+parseInt(_0x5c6e9b(0x1a2))/0x8+parseInt(_0x5c6e9b(0x1b1))/0x9+-parseInt(_0x5c6e9b(0x1ba))/0xa*(parseInt(_0x5c6e9b(0x19f))/0xb);if(_0x23117a===_0x29fe81)break;else _0x38153f['push'](_0x38153f['shift']());}catch(_0x458d13){_0x38153f['push'](_0x38153f['shift']());}}}(_0x4c81,0x5c150));import{IconSubmit as _0x14ff81}from'ckeditor5/src/icons.js';import{ButtonView as _0x5c1a30,AutocompleteView as _0x366119,createLabeledTextarea as _0x54526a}from'ckeditor5/src/ui.js';import{global as _0x2064f8,isVisible as _0x583f79,Rect as _0x306e79,ResizeObserver as _0x1b2700}from'ckeditor5/src/utils.js';import{getTranslation as _0x3bd97d}from'../../../aicore/utils/common-translations.js';import{AIChatPromptSuggestionsListView as _0x57b142}from'./aichatpromptsuggestionslistview.js';import{escape as _0x1baac0}from'es-toolkit/compat';function _0x3005(_0x14025b,_0x28d6a1){const _0x4c81e0=_0x4c81();return _0x3005=function(_0x3005ed,_0x316ab0){_0x3005ed=_0x3005ed-0x185;let _0x3e3ac0=_0x4c81e0[_0x3005ed];return _0x3e3ac0;},_0x3005(_0x14025b,_0x28d6a1);}export class AIChatPromptInputView extends _0x366119{[_0x3f31cc(0x1a9)];static [_0x3f31cc(0x194)]=0x1;static [_0x3f31cc(0x196)]=0xc;[_0x3f31cc(0x18a)];[_0x3f31cc(0x1a4)];constructor(_0x1da687,_0x53e3a7){const _0x5d12be=_0x3f31cc;super(_0x1da687,{'queryView':{'label':'','creator':_0x54526a,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x57b142(_0x1da687),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x5d12be(0x1c3)](_0x5d12be(0x1b9),!0x0),this[_0x5d12be(0x1c3)](_0x5d12be(0x1b0),!0x1),this[_0x5d12be(0x18a)]=_0x53e3a7,this[_0x5d12be(0x1a4)]=null,this[_0x5d12be(0x1bd)][_0x5d12be(0x186)][_0x5d12be(0x1ae)]=AIChatPromptInputView[_0x5d12be(0x194)],this[_0x5d12be(0x1bd)][_0x5d12be(0x186)][_0x5d12be(0x187)]=AIChatPromptInputView[_0x5d12be(0x196)],this[_0x5d12be(0x1bd)][_0x5d12be(0x190)][_0x5d12be(0x18b)](this[_0x5d12be(0x18a)]),this[_0x5d12be(0x193)](),this[_0x5d12be(0x1c2)]({'attributes':{'class':['ck',_0x5d12be(0x1ad)]}}),this[_0x5d12be(0x1a9)]=this[_0x5d12be(0x1b3)](),this[_0x5d12be(0x1a9)][_0x5d12be(0x1a7)](_0x5d12be(0x19d))['to'](this,_0x5d12be(0x1b9),this,_0x5d12be(0x1b0),(_0x156b0d,_0x597ae8)=>!_0x156b0d&&!_0x597ae8),this[_0x5d12be(0x18d)][_0x5d12be(0x18b)](this[_0x5d12be(0x1a9)]);}[_0x3f31cc(0x1bb)](){const _0x51218b=_0x3f31cc;super[_0x51218b(0x1bb)](),this[_0x51218b(0x1bd)][_0x51218b(0x190)][_0x51218b(0x18b)](this[_0x51218b(0x1a9)]),this[_0x51218b(0x18f)][_0x51218b(0x1c3)](_0x51218b(0x185),(_0x598d1d,_0x135467)=>{const _0x9f20af=_0x51218b;this[_0x9f20af(0x1b0)]||this[_0x9f20af(0x1b9)]||_0x598d1d[_0x9f20af(0x1b4)]==this[_0x9f20af(0x1bd)][_0x9f20af(0x186)][_0x9f20af(0x1c1)]&&(this[_0x9f20af(0x1bc)](),_0x135467());}),this[_0x51218b(0x1bd)][_0x51218b(0x186)]['on'](_0x51218b(0x1b8),()=>{const _0x161a23=_0x51218b;this[_0x161a23(0x1b9)]=''===this[_0x161a23(0x1bd)][_0x161a23(0x186)][_0x161a23(0x1c1)][_0x161a23(0x1ab)]?.[_0x161a23(0x188)]();});}[_0x3f31cc(0x1c5)](){const _0x14f33f=_0x3f31cc;super[_0x14f33f(0x1c5)](),this[_0x14f33f(0x1a4)]&&this[_0x14f33f(0x1a4)][_0x14f33f(0x1c5)]();}[_0x3f31cc(0x1bc)](){const _0x371c93=_0x3f31cc,_0x176e80=this[_0x371c93(0x1bd)][_0x371c93(0x186)][_0x371c93(0x1c1)][_0x371c93(0x1ab)]?.[_0x371c93(0x188)]();if(!_0x176e80)return this[_0x371c93(0x1bd)][_0x371c93(0x195)]=_0x3bd97d(this[_0x371c93(0x1c6)],_0x371c93(0x19a)),void(this[_0x371c93(0x1bd)][_0x371c93(0x186)][_0x371c93(0x197)]=!0x0);this[_0x371c93(0x1bd)][_0x371c93(0x186)][_0x371c93(0x197)]=!0x1;const _0x4a442a=_0x1baac0(_0x176e80);this[_0x371c93(0x192)](_0x371c93(0x189),_0x4a442a),this[_0x371c93(0x1bd)][_0x371c93(0x186)][_0x371c93(0x1a6)]();}[_0x3f31cc(0x1af)](_0x4f147b){const _0xc307cc=_0x3f31cc;this[_0xc307cc(0x1bd)][_0xc307cc(0x186)][_0xc307cc(0x1c3)](_0xc307cc(0x1aa),_0x4f147b);}[_0x3f31cc(0x1b3)](){const _0x563f1b=_0x3f31cc,_0x2e49df=new _0x5c1a30(this[_0x563f1b(0x1c6)]);return _0x2e49df[_0x563f1b(0x1c3)]({'icon':_0x14ff81,'label':_0x3bd97d(this[_0x563f1b(0x1c6)],_0x563f1b(0x1be)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x563f1b(0x1b5),'isEnabled':!0x1}),_0x2e49df['on'](_0x563f1b(0x1c0),()=>{const _0x24eb2d=_0x563f1b;this[_0x24eb2d(0x1bc)]();}),_0x2e49df;}[_0x3f31cc(0x1a0)](_0x58855e){const _0x44c600=_0x3f31cc;this[_0x44c600(0x1b0)]=_0x58855e;}[_0x3f31cc(0x193)](){const _0x57f7ff=_0x3f31cc,_0x5bb095=this[_0x57f7ff(0x1c6)],_0x3bc73f=()=>{const _0xbe31e1=_0x57f7ff;_0x2064f8[_0xbe31e1(0x1b7)][_0xbe31e1(0x1bf)](()=>{const _0x25ad0e=_0xbe31e1;if(_0x583f79(this[_0x25ad0e(0x1c1)])){const _0x5d67a1=new _0x306e79(this[_0x25ad0e(0x1bd)][_0x25ad0e(0x186)][_0x25ad0e(0x1c1)]),_0xfa7612=new _0x306e79(this[_0x25ad0e(0x18a)][_0x25ad0e(0x1c1)]),_0x5b5359=_0x5d67a1[_0x25ad0e(0x19c)],_0xa28ba5=_0x25ad0e(0x1b6)===_0x5bb095[_0x25ad0e(0x1ac)]?_0x25ad0e(0x199):_0x25ad0e(0x1b2);_0x5d67a1[_0x25ad0e(0x1a5)]();const _0x58ae9b=_0x5b5359-_0x5d67a1[_0x25ad0e(0x19c)]+0x1;this[_0x25ad0e(0x18a)][_0x25ad0e(0x1c1)][_0x25ad0e(0x18e)][_0xa28ba5]=_0x25ad0e(0x19b)+(_0x5b5359-_0xfa7612[_0x25ad0e(0x19c)]-_0x58ae9b)+_0x25ad0e(0x198);}});};this[_0x57f7ff(0x1bd)][_0x57f7ff(0x186)]['on'](_0x57f7ff(0x1b8),_0x3bc73f),this['on'](_0x57f7ff(0x1bb),()=>{const _0x1af385=_0x57f7ff;_0x3bc73f(),this[_0x1af385(0x1a4)]=new _0x1b2700(this[_0x1af385(0x1bd)][_0x1af385(0x186)][_0x1af385(0x1c1)],()=>{_0x3bc73f();});});}}
23
+ const _0x2e5abf=_0x5366;function _0x5366(_0x53900c,_0x155e14){const _0x2b73bf=_0x2b73();return _0x5366=function(_0x536618,_0x3c4ac7){_0x536618=_0x536618-0x13e;let _0x36252c=_0x2b73bf[_0x536618];return _0x36252c;},_0x5366(_0x53900c,_0x155e14);}(function(_0x584207,_0x48c065){const _0x13d8d1=_0x5366,_0x3f5b72=_0x584207();while(!![]){try{const _0x3cc2fd=parseInt(_0x13d8d1(0x157))/0x1+-parseInt(_0x13d8d1(0x16d))/0x2+-parseInt(_0x13d8d1(0x175))/0x3*(-parseInt(_0x13d8d1(0x17b))/0x4)+parseInt(_0x13d8d1(0x149))/0x5*(-parseInt(_0x13d8d1(0x17f))/0x6)+-parseInt(_0x13d8d1(0x14c))/0x7*(parseInt(_0x13d8d1(0x17e))/0x8)+-parseInt(_0x13d8d1(0x156))/0x9+parseInt(_0x13d8d1(0x17d))/0xa*(parseInt(_0x13d8d1(0x174))/0xb);if(_0x3cc2fd===_0x48c065)break;else _0x3f5b72['push'](_0x3f5b72['shift']());}catch(_0x128a72){_0x3f5b72['push'](_0x3f5b72['shift']());}}}(_0x2b73,0x53eb0));import{IconSubmit as _0x16ceb0}from'ckeditor5/src/icons.js';import{ButtonView as _0x1abfbc,AutocompleteView as _0x5d0e7a,createLabeledTextarea as _0x590406}from'ckeditor5/src/ui.js';import{global as _0x4c57d2,isVisible as _0x361c9d,Rect as _0x422ef2,ResizeObserver as _0x4759ea}from'ckeditor5/src/utils.js';function _0x2b73(){const _0x53adfc=['1674231dNluIW','execute','set','maxRows','minRows','render','4gFQTZC','left','10MkdXjo','68840kbTQvs','186vexETX','sendUserMessage','window','calc(','isEmpty','destroy','rtl','fieldView','hasError','update','locale','ck-ai-chat__prompt-input','46015evbbco','_setUpAddContextButtonPositioning','MIN_ROWS','119drQntt','extendTemplate','add','ck-ai-chat__prompt-submit-button','_queryViewResizeObserver','reset','queryView','setIsUploadInProgress','trim','isUploadInProgress','5880906ATdXAy','232439FrfPIv','target','px\x20-\x20var(--ck-spacing-tiny))','uiLanguageDirection','style','keystrokes','value','errorText','_createSubmitButton','enter','fieldWrapperChildren','focusableChildren','placeholder','fire','submitButtonView','AI_CHAT_PROMPT_EMPTY_ERROR','excludeScrollbarsAndBorders','submit','right','MAX_ROWS','requestAnimationFrame','AI_CHAT_LABEL_SUBMIT','599204XrZeps','bind','width','isEnabled','element','_addContextButtonView','setPlaceholderText','10316086UlKnhb'];_0x2b73=function(){return _0x53adfc;};return _0x2b73();}import{getTranslation as _0x1c5c8e}from'../../../aicore/utils/common-translations.js';import{AIChatPromptSuggestionsListView as _0x44997f}from'./aichatpromptsuggestionslistview.js';import{escape as _0x531be1}from'es-toolkit/compat';export class AIChatPromptInputView extends _0x5d0e7a{[_0x2e5abf(0x165)];static [_0x2e5abf(0x14b)]=0x1;static [_0x2e5abf(0x16a)]=0xc;[_0x2e5abf(0x172)];[_0x2e5abf(0x150)];constructor(_0x153e41,_0x304794){const _0x5b32d7=_0x2e5abf;super(_0x153e41,{'queryView':{'label':'','creator':_0x590406,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x44997f(_0x153e41),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x5b32d7(0x177)](_0x5b32d7(0x141),!0x0),this[_0x5b32d7(0x177)](_0x5b32d7(0x155),!0x1),this[_0x5b32d7(0x172)]=_0x304794,this[_0x5b32d7(0x150)]=null,this[_0x5b32d7(0x152)][_0x5b32d7(0x144)][_0x5b32d7(0x179)]=AIChatPromptInputView[_0x5b32d7(0x14b)],this[_0x5b32d7(0x152)][_0x5b32d7(0x144)][_0x5b32d7(0x178)]=AIChatPromptInputView[_0x5b32d7(0x16a)],this[_0x5b32d7(0x152)][_0x5b32d7(0x161)][_0x5b32d7(0x14e)](this[_0x5b32d7(0x172)]),this[_0x5b32d7(0x14a)](),this[_0x5b32d7(0x14d)]({'attributes':{'class':['ck',_0x5b32d7(0x148)]}}),this[_0x5b32d7(0x165)]=this[_0x5b32d7(0x15f)](),this[_0x5b32d7(0x165)][_0x5b32d7(0x16e)](_0x5b32d7(0x170))['to'](this,_0x5b32d7(0x141),this,_0x5b32d7(0x155),(_0x23958b,_0x5ea733)=>!_0x23958b&&!_0x5ea733),this[_0x5b32d7(0x162)][_0x5b32d7(0x14e)](this[_0x5b32d7(0x165)]);}[_0x2e5abf(0x17a)](){const _0x1240f0=_0x2e5abf;super[_0x1240f0(0x17a)](),this[_0x1240f0(0x152)][_0x1240f0(0x161)][_0x1240f0(0x14e)](this[_0x1240f0(0x165)]),this[_0x1240f0(0x15c)][_0x1240f0(0x177)](_0x1240f0(0x160),(_0xa558fa,_0x5ddaea)=>{const _0x31f189=_0x1240f0;this[_0x31f189(0x155)]||this[_0x31f189(0x141)]||_0xa558fa[_0x31f189(0x158)]==this[_0x31f189(0x152)][_0x31f189(0x144)][_0x31f189(0x171)]&&(this[_0x31f189(0x168)](),_0x5ddaea());}),this[_0x1240f0(0x152)][_0x1240f0(0x144)]['on'](_0x1240f0(0x146),()=>{const _0xbf93ef=_0x1240f0;this[_0xbf93ef(0x141)]=''===this[_0xbf93ef(0x152)][_0xbf93ef(0x144)][_0xbf93ef(0x171)][_0xbf93ef(0x15d)]?.[_0xbf93ef(0x154)]();});}[_0x2e5abf(0x142)](){const _0x4407a7=_0x2e5abf;super[_0x4407a7(0x142)](),this[_0x4407a7(0x150)]&&this[_0x4407a7(0x150)][_0x4407a7(0x142)]();}[_0x2e5abf(0x168)](){const _0x3ba159=_0x2e5abf,_0x5f2a42=this[_0x3ba159(0x152)][_0x3ba159(0x144)][_0x3ba159(0x171)][_0x3ba159(0x15d)]?.[_0x3ba159(0x154)]();if(!_0x5f2a42)return this[_0x3ba159(0x152)][_0x3ba159(0x15e)]=_0x1c5c8e(this[_0x3ba159(0x147)],_0x3ba159(0x166)),void(this[_0x3ba159(0x152)][_0x3ba159(0x144)][_0x3ba159(0x145)]=!0x0);this[_0x3ba159(0x152)][_0x3ba159(0x144)][_0x3ba159(0x145)]=!0x1;const _0x1dd487=_0x531be1(_0x5f2a42);this[_0x3ba159(0x164)](_0x3ba159(0x13e),_0x1dd487),this[_0x3ba159(0x152)][_0x3ba159(0x144)][_0x3ba159(0x151)]();}[_0x2e5abf(0x173)](_0x394516){const _0x4df3da=_0x2e5abf;this[_0x4df3da(0x152)][_0x4df3da(0x144)][_0x4df3da(0x177)](_0x4df3da(0x163),_0x394516);}[_0x2e5abf(0x15f)](){const _0x552384=_0x2e5abf,_0x2f507f=new _0x1abfbc(this[_0x552384(0x147)]);return _0x2f507f[_0x552384(0x177)]({'icon':_0x16ceb0,'label':_0x1c5c8e(this[_0x552384(0x147)],_0x552384(0x16c)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x552384(0x14f),'isEnabled':!0x1}),_0x2f507f['on'](_0x552384(0x176),()=>{const _0x5edcdb=_0x552384;this[_0x5edcdb(0x168)]();}),_0x2f507f;}[_0x2e5abf(0x153)](_0x2d77e3){const _0x1c9db0=_0x2e5abf;this[_0x1c9db0(0x155)]=_0x2d77e3;}[_0x2e5abf(0x14a)](){const _0x337e41=_0x2e5abf,_0x5e6a14=this[_0x337e41(0x147)],_0x4f7260=()=>{const _0x29df0e=_0x337e41;_0x4c57d2[_0x29df0e(0x13f)][_0x29df0e(0x16b)](()=>{const _0x280932=_0x29df0e;if(_0x361c9d(this[_0x280932(0x171)])){const _0x16c7df=new _0x422ef2(this[_0x280932(0x152)][_0x280932(0x144)][_0x280932(0x171)]),_0x41da66=new _0x422ef2(this[_0x280932(0x172)][_0x280932(0x171)]),_0x36f110=_0x16c7df[_0x280932(0x16f)],_0x3c5816=_0x280932(0x143)===_0x5e6a14[_0x280932(0x15a)]?_0x280932(0x169):_0x280932(0x17c);_0x16c7df[_0x280932(0x167)]();const _0x3c5c8a=_0x36f110-_0x16c7df[_0x280932(0x16f)]+0x1;this[_0x280932(0x172)][_0x280932(0x171)][_0x280932(0x15b)][_0x3c5816]=_0x280932(0x140)+(_0x36f110-_0x41da66[_0x280932(0x16f)]-_0x3c5c8a)+_0x280932(0x159);}});};this[_0x337e41(0x152)][_0x337e41(0x144)]['on'](_0x337e41(0x146),_0x4f7260),this['on'](_0x337e41(0x17a),()=>{const _0x201281=_0x337e41;_0x4f7260(),this[_0x201281(0x150)]=new _0x4759ea(this[_0x201281(0x152)][_0x201281(0x144)][_0x201281(0x171)],()=>{_0x4f7260();});});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x386779=_0x5457;(function(_0x2fb1e2,_0x41dc5e){const _0x511f3b=_0x5457,_0x18a251=_0x2fb1e2();while(!![]){try{const _0x3319e1=parseInt(_0x511f3b(0x1b7))/0x1*(-parseInt(_0x511f3b(0x1ba))/0x2)+-parseInt(_0x511f3b(0x1bb))/0x3+-parseInt(_0x511f3b(0x1b9))/0x4+parseInt(_0x511f3b(0x1bc))/0x5+parseInt(_0x511f3b(0x1b3))/0x6*(parseInt(_0x511f3b(0x1b6))/0x7)+parseInt(_0x511f3b(0x1b1))/0x8*(-parseInt(_0x511f3b(0x1b8))/0x9)+parseInt(_0x511f3b(0x1bd))/0xa;if(_0x3319e1===_0x41dc5e)break;else _0x18a251['push'](_0x18a251['shift']());}catch(_0x5a596a){_0x18a251['push'](_0x18a251['shift']());}}}(_0x1f28,0x4d4ca));import{ListView as _0x9baaa7}from'ckeditor5/src/ui.js';export class AIChatPromptSuggestionsListView extends _0x9baaa7{[_0x386779(0x1b4)](){const _0x44da44=_0x386779;let _0x34667b=0x0;for(const _0x2fc1eb of this[_0x44da44(0x1b2)])_0x34667b+=_0x2fc1eb[_0x44da44(0x1b2)][_0x44da44(0x1b5)];return{'resultsCount':_0x34667b,'totalItemsCount':_0x34667b};}}function _0x5457(_0x564d01,_0xc4cbb){const _0x1f28c7=_0x1f28();return _0x5457=function(_0x5457a8,_0x5dbab2){_0x5457a8=_0x5457a8-0x1b1;let _0x486188=_0x1f28c7[_0x5457a8];return _0x486188;},_0x5457(_0x564d01,_0xc4cbb);}function _0x1f28(){const _0xbf0a69=['31136uDUPJD','531SMlwKl','99081Jcqeub','2416700mrhWqR','258MGlnjU','204906CgeQts','1333195oZJTnk','6399530VRYsAL','304lezgek','items','768bMqSlA','filter','length'];_0x1f28=function(){return _0xbf0a69;};return _0x1f28();}
23
+ function _0x79c4(_0x1ff80b,_0x2d0fef){const _0x212ece=_0x212e();return _0x79c4=function(_0x79c4e2,_0x1f80ea){_0x79c4e2=_0x79c4e2-0xef;let _0x8f4fd7=_0x212ece[_0x79c4e2];return _0x8f4fd7;},_0x79c4(_0x1ff80b,_0x2d0fef);}const _0x10dd15=_0x79c4;function _0x212e(){const _0x34a492=['2549141zqapHs','length','310038sAUqRI','65GUhJuB','10XJpQTT','2399NHbSWh','8764450PNDeLG','items','4376JQNkVs','10860MWNnfT','1158fLhZBe','filter','22JpwvkL','8864aqypay','7173DxMQiz'];_0x212e=function(){return _0x34a492;};return _0x212e();}(function(_0x715709,_0x17ff1f){const _0x16a9ac=_0x79c4,_0x109007=_0x715709();while(!![]){try{const _0x48eeb7=-parseInt(_0x16a9ac(0xfd))/0x1*(-parseInt(_0x16a9ac(0xfc))/0x2)+-parseInt(_0x16a9ac(0xf3))/0x3*(parseInt(_0x16a9ac(0xf6))/0x4)+parseInt(_0x16a9ac(0xfb))/0x5*(parseInt(_0x16a9ac(0xfa))/0x6)+parseInt(_0x16a9ac(0xf8))/0x7+parseInt(_0x16a9ac(0xf1))/0x8*(-parseInt(_0x16a9ac(0xf7))/0x9)+parseInt(_0x16a9ac(0xef))/0xa+-parseInt(_0x16a9ac(0xf5))/0xb*(parseInt(_0x16a9ac(0xf2))/0xc);if(_0x48eeb7===_0x17ff1f)break;else _0x109007['push'](_0x109007['shift']());}catch(_0x24d633){_0x109007['push'](_0x109007['shift']());}}}(_0x212e,0x9a1a7));import{ListView as _0x1707ce}from'ckeditor5/src/ui.js';export class AIChatPromptSuggestionsListView extends _0x1707ce{[_0x10dd15(0xf4)](){const _0x430730=_0x10dd15;let _0x279cad=0x0;for(const _0x99b4f1 of this[_0x430730(0xf0)])_0x279cad+=_0x99b4f1[_0x430730(0xf0)][_0x430730(0xf9)];return{'resultsCount':_0x279cad,'totalItemsCount':_0x279cad};}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0xb811(){const _0x365ea6=['10DObmlq','getResourceIcon','ck-hidden','type','_iconView','trim','107996LwKwqN','content','_setupTemplate','label','798840NofpWT','ck-ai-chat-resources__item__icon','_titleView','_createIconView','76UhOmsJ','ck-ai-chat-resources__item--in-context','span','isInContext','ck-ai-chat-resources__item','7866353qyGKlL','14895ltassQ','text','_createTitleView','ck-ai-chat-resources__item-title','div','DOCUMENT','150scyRhr','resource','FILE','isVisible','extendTemplate','execute','TEXT','868448bhjhLb','20524gkxtHe','set','2042405VTXkgc','render','_updateIcon','bindTemplate','setTemplate','38GVFkaw','highlightText','updateResourceState','URL'];_0xb811=function(){return _0x365ea6;};return _0xb811();}const _0xaef749=_0x10d9;(function(_0x1bfcbc,_0x18ad1){const _0x738bbc=_0x10d9,_0x1990e1=_0x1bfcbc();while(!![]){try{const _0x2d8642=-parseInt(_0x738bbc(0x1fd))/0x1*(parseInt(_0x738bbc(0x1f6))/0x2)+parseInt(_0x738bbc(0x1e8))/0x3*(-parseInt(_0x738bbc(0x1e2))/0x4)+parseInt(_0x738bbc(0x1f8))/0x5+-parseInt(_0x738bbc(0x1ee))/0x6*(parseInt(_0x738bbc(0x207))/0x7)+parseInt(_0x738bbc(0x1f5))/0x8+-parseInt(_0x738bbc(0x1de))/0x9+parseInt(_0x738bbc(0x201))/0xa*(parseInt(_0x738bbc(0x1e7))/0xb);if(_0x2d8642===_0x18ad1)break;else _0x1990e1['push'](_0x1990e1['shift']());}catch(_0x7e72ca){_0x1990e1['push'](_0x1990e1['shift']());}}}(_0xb811,0x42c01));import{HighlightedTextView as _0x2e9de8,IconView as _0x4c1340,ListItemView as _0x19e4d3}from'ckeditor5/src/ui.js';import{escapeRegExp as _0x5a6a7e}from'es-toolkit/compat';import{AIContextItemType as _0x4c58fb}from'../../../../aicore/model/aicontext.js';import{IconFileUpload as _0x7f3ef9,IconCheck as _0x1054c0,IconDocument as _0x3ab499,IconDocumentOutline as _0x1f1a0f,IconLink as _0x318ba7}from'@ckeditor/ckeditor5-icons';const Tr=_0xaef749(0x1e6),qr=_0xaef749(0x1e3),zr=_0xaef749(0x1eb),Br=_0xaef749(0x1df);function _0x10d9(_0x36620c,_0x4e93cb){const _0xb8112f=_0xb811();return _0x10d9=function(_0x10d937,_0xca6bab){_0x10d937=_0x10d937-0x1dd;let _0x525b38=_0xb8112f[_0x10d937];return _0x525b38;},_0x10d9(_0x36620c,_0x4e93cb);}export class AIChatResourceListItemView extends _0x19e4d3{[_0xaef749(0x1ef)];[_0xaef749(0x1e0)];[_0xaef749(0x205)];constructor(_0x17caf1,_0x1b52a5){const _0x231e81=_0xaef749;super(_0x17caf1),this[_0x231e81(0x1ef)]=_0x1b52a5,this[_0x231e81(0x1f7)](_0x231e81(0x1e5),!!_0x1b52a5[_0x231e81(0x1e5)]),this[_0x231e81(0x1e0)]=this[_0x231e81(0x1ea)](),this[_0x231e81(0x205)]=this[_0x231e81(0x1e1)](),this[_0x231e81(0x209)]();}[_0xaef749(0x1f9)](){const _0x2bbd73=_0xaef749;super[_0x2bbd73(0x1f9)]();}[_0xaef749(0x202)](_0x151945){const _0x1ccdda=_0xaef749;if(_0x151945[_0x1ccdda(0x1e5)])return _0x1054c0;switch(_0x151945[_0x1ccdda(0x204)]){case _0x4c58fb[_0x1ccdda(0x1ed)]:return _0x3ab499;case _0x4c58fb[_0x1ccdda(0x200)]:return _0x318ba7;case _0x4c58fb[_0x1ccdda(0x1f0)]:case _0x4c58fb[_0x1ccdda(0x1f4)]:return _0x7f3ef9;default:return _0x1f1a0f;}}[_0xaef749(0x1fe)](_0x57e045){const _0x238255=_0xaef749;if(!_0x57e045||''===_0x57e045[_0x238255(0x206)]())return void this[_0x238255(0x1e0)][_0x238255(0x1fe)](null);const _0x39a0c1=new RegExp(_0x5a6a7e(_0x57e045),'gi');this[_0x238255(0x1e0)][_0x238255(0x1fe)](_0x39a0c1);}[_0xaef749(0x1ff)](_0x596f04){const _0x4cf667=_0xaef749;this[_0x4cf667(0x1ef)][_0x4cf667(0x1e5)]=_0x596f04,this[_0x4cf667(0x1e5)]=_0x596f04,this[_0x4cf667(0x1fa)]();}[_0xaef749(0x1ea)](){const _0x7800cd=_0xaef749,_0x104be9=new _0x2e9de8();return _0x104be9[_0x7800cd(0x1e9)]=this[_0x7800cd(0x1ef)][_0x7800cd(0x1dd)],_0x104be9[_0x7800cd(0x1f2)]({'tag':_0x7800cd(0x1e4),'attributes':{'class':[zr]}}),_0x104be9;}[_0xaef749(0x1e1)](){const _0x473419=_0xaef749,_0x48f889=new _0x4c1340();return _0x48f889[_0x473419(0x208)]=this[_0x473419(0x202)](this[_0x473419(0x1ef)]),_0x48f889;}[_0xaef749(0x209)](){const _0x1abc90=_0xaef749,_0x2af801=this[_0x1abc90(0x1fb)];this[_0x1abc90(0x1fc)]({'tag':_0x1abc90(0x1ec),'attributes':{'class':[Tr,_0x2af801['if'](_0x1abc90(0x1f1),_0x1abc90(0x203),_0x593b97=>!_0x593b97),_0x2af801['if'](_0x1abc90(0x1e5),qr)]},'children':[{'tag':_0x1abc90(0x1ec),'attributes':{'class':[Br]},'children':[this[_0x1abc90(0x205)]]},this[_0x1abc90(0x1e0)]],'on':{'click':_0x2af801['to'](_0x1abc90(0x1f3))}});}[_0xaef749(0x1fa)](){const _0x4b1b9d=_0xaef749;this[_0x4b1b9d(0x205)][_0x4b1b9d(0x208)]=this[_0x4b1b9d(0x202)](this[_0x4b1b9d(0x1ef)]);}}
23
+ const _0x2ab23f=_0x26ff;(function(_0xd99a5c,_0x2031be){const _0x2c1b6f=_0x26ff,_0x250f70=_0xd99a5c();while(!![]){try{const _0x55a003=parseInt(_0x2c1b6f(0x131))/0x1+parseInt(_0x2c1b6f(0x10f))/0x2*(parseInt(_0x2c1b6f(0x12b))/0x3)+-parseInt(_0x2c1b6f(0x125))/0x4*(-parseInt(_0x2c1b6f(0x138))/0x5)+parseInt(_0x2c1b6f(0x11a))/0x6+-parseInt(_0x2c1b6f(0x137))/0x7*(parseInt(_0x2c1b6f(0x123))/0x8)+parseInt(_0x2c1b6f(0x130))/0x9+-parseInt(_0x2c1b6f(0x124))/0xa;if(_0x55a003===_0x2031be)break;else _0x250f70['push'](_0x250f70['shift']());}catch(_0x23f486){_0x250f70['push'](_0x250f70['shift']());}}}(_0x2e3b,0x897f3));function _0x2e3b(){const _0x393572=['6356394clgOwG','getResourceIcon','_iconView','type','execute','isInContext','highlightText','ck-ai-chat-resources__item--in-context','extendTemplate','64cuDEYz','9143970kasAOt','8VdVCIC','ck-ai-chat-resources__item-title','FILE','_createTitleView','_setupTemplate','div','1226937sGihQT','label','DOCUMENT','_updateIcon','trim','1578951omeYqE','343539UMTMFA','URL','resource','isVisible','updateResourceState','text','611828JxAMMT','473650pMcXgb','span','ck-ai-chat-resources__item','2iSYAQw','_createIconView','_titleView','set','bindTemplate','content','setTemplate','render','TEXT','ck-hidden','ck-ai-chat-resources__item__icon'];_0x2e3b=function(){return _0x393572;};return _0x2e3b();}import{HighlightedTextView as _0x45e3fd,IconView as _0x3c9ce0,ListItemView as _0x4d378d}from'ckeditor5/src/ui.js';import{escapeRegExp as _0x251e83}from'es-toolkit/compat';import{AIContextItemType as _0x4a47eb}from'../../../../aicore/model/aicontext.js';function _0x26ff(_0x8c4570,_0x3db4bb){const _0x2e3b47=_0x2e3b();return _0x26ff=function(_0x26ff03,_0x1ab3a6){_0x26ff03=_0x26ff03-0x10f;let _0x40c6d1=_0x2e3b47[_0x26ff03];return _0x40c6d1;},_0x26ff(_0x8c4570,_0x3db4bb);}import{IconFileUpload as _0x98b87e,IconCheck as _0x148b7f,IconDocument as _0x41b1e6,IconDocumentOutline as _0x308c12,IconLink as _0x9217c1}from'@ckeditor/ckeditor5-icons';const Tr=_0x2ab23f(0x13a),qr=_0x2ab23f(0x121),zr=_0x2ab23f(0x126),Br=_0x2ab23f(0x119);export class AIChatResourceListItemView extends _0x4d378d{[_0x2ab23f(0x133)];[_0x2ab23f(0x111)];[_0x2ab23f(0x11c)];constructor(_0x17690f,_0x428a4e){const _0x3b8371=_0x2ab23f;super(_0x17690f),this[_0x3b8371(0x133)]=_0x428a4e,this[_0x3b8371(0x112)](_0x3b8371(0x11f),!!_0x428a4e[_0x3b8371(0x11f)]),this[_0x3b8371(0x111)]=this[_0x3b8371(0x128)](),this[_0x3b8371(0x11c)]=this[_0x3b8371(0x110)](),this[_0x3b8371(0x129)]();}[_0x2ab23f(0x116)](){const _0xc1c6f4=_0x2ab23f;super[_0xc1c6f4(0x116)]();}[_0x2ab23f(0x11b)](_0x51d664){const _0x115f12=_0x2ab23f;if(_0x51d664[_0x115f12(0x11f)])return _0x148b7f;switch(_0x51d664[_0x115f12(0x11d)]){case _0x4a47eb[_0x115f12(0x12d)]:return _0x41b1e6;case _0x4a47eb[_0x115f12(0x132)]:return _0x9217c1;case _0x4a47eb[_0x115f12(0x127)]:case _0x4a47eb[_0x115f12(0x117)]:return _0x98b87e;default:return _0x308c12;}}[_0x2ab23f(0x120)](_0xaae227){const _0x8b387d=_0x2ab23f;if(!_0xaae227||''===_0xaae227[_0x8b387d(0x12f)]())return void this[_0x8b387d(0x111)][_0x8b387d(0x120)](null);const _0x2d7057=new RegExp(_0x251e83(_0xaae227),'gi');this[_0x8b387d(0x111)][_0x8b387d(0x120)](_0x2d7057);}[_0x2ab23f(0x135)](_0xc96218){const _0x36664d=_0x2ab23f;this[_0x36664d(0x133)][_0x36664d(0x11f)]=_0xc96218,this[_0x36664d(0x11f)]=_0xc96218,this[_0x36664d(0x12e)]();}[_0x2ab23f(0x128)](){const _0x737ca7=_0x2ab23f,_0x3f8f2b=new _0x45e3fd();return _0x3f8f2b[_0x737ca7(0x136)]=this[_0x737ca7(0x133)][_0x737ca7(0x12c)],_0x3f8f2b[_0x737ca7(0x122)]({'tag':_0x737ca7(0x139),'attributes':{'class':[zr]}}),_0x3f8f2b;}[_0x2ab23f(0x110)](){const _0xc5ad1a=_0x2ab23f,_0x306740=new _0x3c9ce0();return _0x306740[_0xc5ad1a(0x114)]=this[_0xc5ad1a(0x11b)](this[_0xc5ad1a(0x133)]),_0x306740;}[_0x2ab23f(0x129)](){const _0x2e98eb=_0x2ab23f,_0x564269=this[_0x2e98eb(0x113)];this[_0x2e98eb(0x115)]({'tag':_0x2e98eb(0x12a),'attributes':{'class':[Tr,_0x564269['if'](_0x2e98eb(0x134),_0x2e98eb(0x118),_0xbf8bd1=>!_0xbf8bd1),_0x564269['if'](_0x2e98eb(0x11f),qr)]},'children':[{'tag':_0x2e98eb(0x12a),'attributes':{'class':[Br]},'children':[this[_0x2e98eb(0x11c)]]},this[_0x2e98eb(0x111)]],'on':{'click':_0x564269['to'](_0x2e98eb(0x11e))}});}[_0x2ab23f(0x12e)](){const _0x139923=_0x2ab23f;this[_0x139923(0x11c)][_0x139923(0x114)]=this[_0x139923(0x11b)](this[_0x139923(0x133)]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4712a9=_0x413e;(function(_0x4626be,_0x2cd244){const _0x5ca67d=_0x413e,_0x1abe33=_0x4626be();while(!![]){try{const _0xfdb308=-parseInt(_0x5ca67d(0x1e5))/0x1+-parseInt(_0x5ca67d(0x1ea))/0x2*(parseInt(_0x5ca67d(0x1de))/0x3)+-parseInt(_0x5ca67d(0x1f1))/0x4+parseInt(_0x5ca67d(0x201))/0x5+parseInt(_0x5ca67d(0x1fc))/0x6+-parseInt(_0x5ca67d(0x1f3))/0x7+parseInt(_0x5ca67d(0x1e1))/0x8*(parseInt(_0x5ca67d(0x1ff))/0x9);if(_0xfdb308===_0x2cd244)break;else _0x1abe33['push'](_0x1abe33['shift']());}catch(_0x2bbfe7){_0x1abe33['push'](_0x1abe33['shift']());}}}(_0x249d,0x5f68a));import{BalloonPanelView as _0x54089b,ButtonView as _0x3f746d,clickOutsideHandler as _0x39b31a,FormHeaderView as _0x493b54}from'ckeditor5/src/ui.js';import{IconPreviousArrow as _0x2e8cff}from'@ckeditor/ckeditor5-icons';function _0x413e(_0x46d704,_0x5e2852){const _0x249d30=_0x249d();return _0x413e=function(_0x413ef3,_0x214b4c){_0x413ef3=_0x413ef3-0x1d2;let _0x4bdc00=_0x249d30[_0x413ef3];return _0x4bdc00;},_0x413e(_0x46d704,_0x5e2852);}function _0x249d(){const _0x3a6cb5=['element','1359635QvmdtZ','loadSourceResources','_getResourcesViewFromBalloon','execute','isAnyResourceBalloonVisible','hide','_addSourceResourceContent','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','set','add','_createBalloonHeader','_createBackButton','destroy','showSourceResourcesBalloon','get','delete','addResourceToContext','_bodyCollection','values','updateResourceState','ck-ai-chat-context-controls__source-balloon-panel','getLimiterElement','51YFXisO','ck-button-icon\x20ck-button-back','_createBalloonResourcesView','3128kYQpbj','onBalloonClosed','pin','populateSourceResourceBalloon','390656fmMGzo','_setupSingleResourceBalloonClickOutsideHandler','_config','label','_createSourceResourceBalloonPanel','85772dXPpHR','_locale','onBackToContext','clear','resource','onLoadSourceResources','content','1582076PNRppj','extendTemplate','3881465eSjWqa','_sourceResourceBalloons','closeSourceResourceBalloon','children','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_source','setResources','source','show','onResourceSelected','4397436TftURS','getTargetElement','isVisible','33507AKiDVv'];_0x249d=function(){return _0x3a6cb5;};return _0x249d();}import{getTranslation as _0x41aeb2}from'../../../../aicore/utils/common-translations.js';import{AIChatContextResourcesView as _0x48ca13}from'./aichatresourcesview.js';const zo=_0x4712a9(0x1dc),Jo=_0x4712a9(0x1df),Qo=_0x4712a9(0x1f7);export class AIChatResourcesBalloonView{[_0x4712a9(0x1f4)]=new Map();[_0x4712a9(0x1d9)];[_0x4712a9(0x1eb)];[_0x4712a9(0x1e7)];constructor(_0xf51041,_0x19d8ef,_0x108ea7){const _0x37c71d=_0x4712a9;this[_0x37c71d(0x1eb)]=_0xf51041,this[_0x37c71d(0x1d9)]=_0x19d8ef,this[_0x37c71d(0x1e7)]=_0x108ea7;}[_0x4712a9(0x1d5)](_0x4844ea){const _0x4b7c72=_0x4712a9;let _0x32479a=this[_0x4b7c72(0x1f4)][_0x4b7c72(0x1d6)](_0x4844ea['id']);_0x32479a||(_0x32479a=this[_0x4b7c72(0x1e9)](),this[_0x4b7c72(0x1f4)][_0x4b7c72(0x209)](_0x4844ea['id'],_0x32479a),this[_0x4b7c72(0x1e6)](_0x32479a)),this[_0x4b7c72(0x207)](_0x32479a,_0x4844ea),_0x32479a[_0x4b7c72(0x1fa)]();const _0x100410=this[_0x4b7c72(0x1e7)][_0x4b7c72(0x1fd)]();_0x100410&&_0x32479a[_0x4b7c72(0x1e3)]({'target':_0x100410,'limiter':this[_0x4b7c72(0x1e7)][_0x4b7c72(0x1dd)]()});}[_0x4712a9(0x1e4)](_0x1ff732,_0x384538,_0x3c66ee){const _0x118ef3=_0x4712a9,_0x76ebba=this[_0x118ef3(0x1f4)][_0x118ef3(0x1d6)](_0x1ff732);if(!_0x76ebba)return;const _0x35d19c=this[_0x118ef3(0x203)](_0x76ebba);_0x35d19c&&_0x35d19c[_0x118ef3(0x1f8)](_0x384538,_0x3c66ee);}[_0x4712a9(0x1f5)](_0x543a81){const _0x315df3=_0x4712a9,_0x1ed9b2=this[_0x315df3(0x1f4)][_0x315df3(0x1d6)](_0x543a81);_0x1ed9b2&&requestAnimationFrame(()=>{const _0x35a034=_0x315df3;_0x1ed9b2[_0x35a034(0x206)](),this[_0x35a034(0x1f4)][_0x35a034(0x1d7)](_0x543a81),this[_0x35a034(0x1e7)][_0x35a034(0x1e2)]();});}[_0x4712a9(0x205)](){const _0xf8fd3d=_0x4712a9;for(const _0x4491d4 of this[_0xf8fd3d(0x1f4)][_0xf8fd3d(0x1da)]())if(_0x4491d4[_0xf8fd3d(0x1fe)])return!0x0;return!0x1;}[_0x4712a9(0x1db)](_0xa4b156,_0x5a4caf,_0x274b53){const _0x3fff4a=_0x4712a9,_0x29f563=this[_0x3fff4a(0x1f4)][_0x3fff4a(0x1d6)](_0xa4b156);if(!_0x29f563||!_0x29f563[_0x3fff4a(0x1fe)])return;const _0x5e7b7f=this[_0x3fff4a(0x1e7)][_0x3fff4a(0x1fd)]();if(!_0x5e7b7f)return;_0x29f563[_0x3fff4a(0x1e3)]({'target':_0x5e7b7f,'limiter':this[_0x3fff4a(0x1e7)][_0x3fff4a(0x1dd)]()});const _0x206e13=this[_0x3fff4a(0x203)](_0x29f563);_0x206e13&&_0x206e13[_0x3fff4a(0x1db)](_0x5a4caf,_0x274b53);}[_0x4712a9(0x1d4)](){const _0x17111e=_0x4712a9;for(const _0x2f6ad1 of this[_0x17111e(0x1f4)][_0x17111e(0x1da)]())_0x2f6ad1[_0x17111e(0x1d4)]();this[_0x17111e(0x1f4)][_0x17111e(0x1ed)]();}[_0x4712a9(0x1e9)](){const _0x1f1965=_0x4712a9,_0x40ed17=new _0x54089b(this[_0x1f1965(0x1eb)]);return _0x40ed17[_0x1f1965(0x1f2)]({'attributes':{'class':zo}}),this[_0x1f1965(0x1d9)][_0x1f1965(0x20a)](_0x40ed17),_0x40ed17;}[_0x4712a9(0x207)](_0x30e51a,_0xb4c027){const _0x5994db=_0x4712a9;_0x30e51a[_0x5994db(0x1f0)][_0x5994db(0x1ed)]();const _0x26f711=this[_0x5994db(0x1d2)](_0x30e51a,_0xb4c027);_0x30e51a[_0x5994db(0x1f0)][_0x5994db(0x20a)](_0x26f711);const _0x59a83e=this[_0x5994db(0x1e0)](_0xb4c027);_0x30e51a[_0x5994db(0x1f0)][_0x5994db(0x20a)](_0x59a83e);}[_0x4712a9(0x1d2)](_0x255beb,_0x148550){const _0xc553e9=_0x4712a9,_0x75ab83=this[_0xc553e9(0x1d3)](_0x255beb),_0x1ec363=new _0x493b54(this[_0xc553e9(0x1eb)],{'label':_0x148550[_0xc553e9(0x1e8)],'class':Qo});return _0x1ec363[_0xc553e9(0x1f6)][_0xc553e9(0x20a)](_0x75ab83,0x0),_0x1ec363;}[_0x4712a9(0x1d3)](_0x28a1f0){const _0xedd6d4=_0x4712a9,_0x247210=new _0x3f746d(this[_0xedd6d4(0x1eb)]);return _0x247210[_0xedd6d4(0x209)]({'icon':_0x2e8cff,'tooltip':_0x41aeb2(this[_0xedd6d4(0x1eb)],_0xedd6d4(0x208)),'tooltipPosition':'n','class':Jo}),_0x247210['on'](_0xedd6d4(0x204),()=>{const _0x1f7e03=_0xedd6d4;_0x28a1f0[_0x1f7e03(0x206)](),this[_0x1f7e03(0x1e7)][_0x1f7e03(0x1ec)]();}),_0x247210;}[_0x4712a9(0x1e0)](_0x3e1a91){const _0x491986=_0x4712a9,_0x599754=new _0x48ca13(this[_0x491986(0x1eb)],_0x3e1a91);return _0x599754['on'](_0x491986(0x202),(_0x2b565e,_0x49df0a)=>{const _0x560efc=_0x491986;this[_0x560efc(0x1e7)][_0x560efc(0x1ef)](_0x49df0a);}),_0x599754['on'](_0x491986(0x1d8),(_0x25cc8d,_0x48451a)=>{const _0x486803=_0x491986;this[_0x486803(0x1e7)][_0x486803(0x1fb)](_0x48451a[_0x486803(0x1f9)],_0x48451a[_0x486803(0x1ee)]),this[_0x486803(0x1f5)](_0x3e1a91['id']);}),_0x599754;}[_0x4712a9(0x203)](_0x295ea4){const _0x3068ce=_0x4712a9,_0x1239b7=_0x295ea4[_0x3068ce(0x1f0)][_0x3068ce(0x1d6)](0x1);return _0x1239b7 instanceof _0x48ca13?_0x1239b7:null;}[_0x4712a9(0x1e6)](_0x37c683){const _0x50a0b8=_0x4712a9;_0x39b31a({'emitter':_0x37c683,'contextElements':[_0x37c683[_0x50a0b8(0x200)]],'callback':()=>{const _0x5debf3=_0x50a0b8;_0x37c683[_0x5debf3(0x206)](),this[_0x5debf3(0x1e7)][_0x5debf3(0x1e2)]();},'activator':()=>_0x37c683[_0x50a0b8(0x1fe)]});}}
23
+ const _0x1e0080=_0x442d;(function(_0x1c1510,_0x203379){const _0x1b1c7f=_0x442d,_0x163803=_0x1c1510();while(!![]){try{const _0x551544=-parseInt(_0x1b1c7f(0x15c))/0x1*(parseInt(_0x1b1c7f(0x16a))/0x2)+parseInt(_0x1b1c7f(0x167))/0x3+parseInt(_0x1b1c7f(0x16d))/0x4+parseInt(_0x1b1c7f(0x159))/0x5*(-parseInt(_0x1b1c7f(0x17e))/0x6)+-parseInt(_0x1b1c7f(0x16f))/0x7+-parseInt(_0x1b1c7f(0x175))/0x8+parseInt(_0x1b1c7f(0x183))/0x9;if(_0x551544===_0x203379)break;else _0x163803['push'](_0x163803['shift']());}catch(_0x50765a){_0x163803['push'](_0x163803['shift']());}}}(_0x4f94,0x73271));import{BalloonPanelView as _0x441f79,ButtonView as _0x486e14,clickOutsideHandler as _0x1ea25f,FormHeaderView as _0x50603a}from'ckeditor5/src/ui.js';import{IconPreviousArrow as _0x3dff87}from'@ckeditor/ckeditor5-icons';function _0x4f94(){const _0x48a5a8=['updateResourceState','_createBackButton','resource','_bodyCollection','onBalloonClosed','extendTemplate','_setupSingleResourceBalloonClickOutsideHandler','_locale','ck-ai-chat-context-controls__source-balloon-panel','execute','1912689MMdyCw','closeSourceResourceBalloon','onResourceSelected','8174fkIiBU','_createBalloonHeader','onLoadSourceResources','1036068DAPZVh','values','2676807pLXVlZ','content','populateSourceResourceBalloon','isVisible','_config','get','1404496PAfpcK','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_source','_createBalloonResourcesView','destroy','loadSourceResources','_createSourceResourceBalloonPanel','getLimiterElement','source','getTargetElement','186YyxAll','pin','add','hide','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','4545783ctMSnY','_addSourceResourceContent','set','element','setResources','show','delete','clear','onBackToContext','label','children','isAnyResourceBalloonVisible','_sourceResourceBalloons','showSourceResourcesBalloon','ck-button-icon\x20ck-button-back','7930ORaQNc','addResourceToContext','_getResourcesViewFromBalloon','79MYSZhK'];_0x4f94=function(){return _0x48a5a8;};return _0x4f94();}import{getTranslation as _0x20b909}from'../../../../aicore/utils/common-translations.js';import{AIChatContextResourcesView as _0x1a7ff8}from'./aichatresourcesview.js';function _0x442d(_0x28c597,_0x585380){const _0x4f9482=_0x4f94();return _0x442d=function(_0x442d29,_0xfa634d){_0x442d29=_0x442d29-0x14b;let _0x19d264=_0x4f9482[_0x442d29];return _0x19d264;},_0x442d(_0x28c597,_0x585380);}const Zo=_0x1e0080(0x165),Or=_0x1e0080(0x158),Hr=_0x1e0080(0x176);export class AIChatResourcesBalloonView{[_0x1e0080(0x156)]=new Map();[_0x1e0080(0x160)];[_0x1e0080(0x164)];[_0x1e0080(0x173)];constructor(_0x163fa4,_0x2588e4,_0x4d3341){const _0x46dcc5=_0x1e0080;this[_0x46dcc5(0x164)]=_0x163fa4,this[_0x46dcc5(0x160)]=_0x2588e4,this[_0x46dcc5(0x173)]=_0x4d3341;}[_0x1e0080(0x157)](_0xdf9cff){const _0x21bee1=_0x1e0080;let _0x43d5b7=this[_0x21bee1(0x156)][_0x21bee1(0x174)](_0xdf9cff['id']);_0x43d5b7||(_0x43d5b7=this[_0x21bee1(0x17a)](),this[_0x21bee1(0x156)][_0x21bee1(0x14c)](_0xdf9cff['id'],_0x43d5b7),this[_0x21bee1(0x163)](_0x43d5b7)),this[_0x21bee1(0x14b)](_0x43d5b7,_0xdf9cff),_0x43d5b7[_0x21bee1(0x14f)]();const _0x12dd77=this[_0x21bee1(0x173)][_0x21bee1(0x17d)]();_0x12dd77&&_0x43d5b7[_0x21bee1(0x17f)]({'target':_0x12dd77,'limiter':this[_0x21bee1(0x173)][_0x21bee1(0x17b)]()});}[_0x1e0080(0x171)](_0x5d93a3,_0x2b1590,_0x5f2e37){const _0x4427bf=_0x1e0080,_0x5489fc=this[_0x4427bf(0x156)][_0x4427bf(0x174)](_0x5d93a3);if(!_0x5489fc)return;const _0x2d0902=this[_0x4427bf(0x15b)](_0x5489fc);_0x2d0902&&_0x2d0902[_0x4427bf(0x14e)](_0x2b1590,_0x5f2e37);}[_0x1e0080(0x168)](_0x9b60fc){const _0xe18b69=_0x1e0080,_0x44e833=this[_0xe18b69(0x156)][_0xe18b69(0x174)](_0x9b60fc);_0x44e833&&requestAnimationFrame(()=>{const _0x22403b=_0xe18b69;_0x44e833[_0x22403b(0x181)](),this[_0x22403b(0x156)][_0x22403b(0x150)](_0x9b60fc),this[_0x22403b(0x173)][_0x22403b(0x161)]();});}[_0x1e0080(0x155)](){const _0x211253=_0x1e0080;for(const _0xbb8b5d of this[_0x211253(0x156)][_0x211253(0x16e)]())if(_0xbb8b5d[_0x211253(0x172)])return!0x0;return!0x1;}[_0x1e0080(0x15d)](_0x160fb9,_0xf5b768,_0x54ccae){const _0x4dad55=_0x1e0080,_0x4bce26=this[_0x4dad55(0x156)][_0x4dad55(0x174)](_0x160fb9);if(!_0x4bce26||!_0x4bce26[_0x4dad55(0x172)])return;const _0x403a8a=this[_0x4dad55(0x173)][_0x4dad55(0x17d)]();if(!_0x403a8a)return;_0x4bce26[_0x4dad55(0x17f)]({'target':_0x403a8a,'limiter':this[_0x4dad55(0x173)][_0x4dad55(0x17b)]()});const _0x4f11f4=this[_0x4dad55(0x15b)](_0x4bce26);_0x4f11f4&&_0x4f11f4[_0x4dad55(0x15d)](_0xf5b768,_0x54ccae);}[_0x1e0080(0x178)](){const _0x257e1d=_0x1e0080;for(const _0x3ac0be of this[_0x257e1d(0x156)][_0x257e1d(0x16e)]())_0x3ac0be[_0x257e1d(0x178)]();this[_0x257e1d(0x156)][_0x257e1d(0x151)]();}[_0x1e0080(0x17a)](){const _0x1947c2=_0x1e0080,_0x2de9c7=new _0x441f79(this[_0x1947c2(0x164)]);return _0x2de9c7[_0x1947c2(0x162)]({'attributes':{'class':Zo}}),this[_0x1947c2(0x160)][_0x1947c2(0x180)](_0x2de9c7),_0x2de9c7;}[_0x1e0080(0x14b)](_0x1727f4,_0x55788b){const _0x49aec7=_0x1e0080;_0x1727f4[_0x49aec7(0x170)][_0x49aec7(0x151)]();const _0x396115=this[_0x49aec7(0x16b)](_0x1727f4,_0x55788b);_0x1727f4[_0x49aec7(0x170)][_0x49aec7(0x180)](_0x396115);const _0x4c4090=this[_0x49aec7(0x177)](_0x55788b);_0x1727f4[_0x49aec7(0x170)][_0x49aec7(0x180)](_0x4c4090);}[_0x1e0080(0x16b)](_0x173066,_0x6578ef){const _0x580cd5=_0x1e0080,_0x9ac4e2=this[_0x580cd5(0x15e)](_0x173066),_0x3a3116=new _0x50603a(this[_0x580cd5(0x164)],{'label':_0x6578ef[_0x580cd5(0x153)],'class':Hr});return _0x3a3116[_0x580cd5(0x154)][_0x580cd5(0x180)](_0x9ac4e2,0x0),_0x3a3116;}[_0x1e0080(0x15e)](_0x36a9ae){const _0x2500ae=_0x1e0080,_0x5e28e9=new _0x486e14(this[_0x2500ae(0x164)]);return _0x5e28e9[_0x2500ae(0x14c)]({'icon':_0x3dff87,'tooltip':_0x20b909(this[_0x2500ae(0x164)],_0x2500ae(0x182)),'tooltipPosition':'n','class':Or}),_0x5e28e9['on'](_0x2500ae(0x166),()=>{const _0x1c331e=_0x2500ae;_0x36a9ae[_0x1c331e(0x181)](),this[_0x1c331e(0x173)][_0x1c331e(0x152)]();}),_0x5e28e9;}[_0x1e0080(0x177)](_0xd4f6f5){const _0x4af17c=_0x1e0080,_0x427fc2=new _0x1a7ff8(this[_0x4af17c(0x164)],_0xd4f6f5);return _0x427fc2['on'](_0x4af17c(0x179),(_0x3509dc,_0x40e412)=>{const _0x2671ce=_0x4af17c;this[_0x2671ce(0x173)][_0x2671ce(0x16c)](_0x40e412);}),_0x427fc2['on'](_0x4af17c(0x15a),(_0x1cedf7,_0x1275f2)=>{const _0x59ba23=_0x4af17c;this[_0x59ba23(0x173)][_0x59ba23(0x169)](_0x1275f2[_0x59ba23(0x17c)],_0x1275f2[_0x59ba23(0x15f)]),this[_0x59ba23(0x168)](_0xd4f6f5['id']);}),_0x427fc2;}[_0x1e0080(0x15b)](_0xef8364){const _0x6a0434=_0x1e0080,_0x23bd47=_0xef8364[_0x6a0434(0x170)][_0x6a0434(0x174)](0x1);return _0x23bd47 instanceof _0x1a7ff8?_0x23bd47:null;}[_0x1e0080(0x163)](_0x4ab85a){const _0x21914a=_0x1e0080;_0x1ea25f({'emitter':_0x4ab85a,'contextElements':[_0x4ab85a[_0x21914a(0x14d)]],'callback':()=>{const _0x4bf04f=_0x21914a;_0x4ab85a[_0x4bf04f(0x181)](),this[_0x4bf04f(0x173)][_0x4bf04f(0x161)]();},'activator':()=>_0x4ab85a[_0x21914a(0x172)]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x32cb(_0x1d3a5f,_0x233f0b){const _0x992172=_0x9921();return _0x32cb=function(_0x32cbfc,_0x118b23){_0x32cbfc=_0x32cbfc-0x90;let _0x37ca9f=_0x992172[_0x32cbfc];return _0x37ca9f;},_0x32cb(_0x1d3a5f,_0x233f0b);}const _0x46fcb4=_0x32cb;function _0x9921(){const _0xce9cad=['resource','7NzvADC','fire','filter','extendTemplate','forEach','_source','locale','execute','label','1359378YEjpkT','trim','test','418aUQBID','items','1876758ArHsKC','addResourceToContext','highlightText','1737PLLLtV','replace','useDefaultFiltering','1690040GLWjat','4fVnRWa','clear','_handleResourceSelection','439855EMvhCh','300358mccptF','1707540WbmQUb','\x5c$&','setResources','add','updateResourceState','ck-ai-chat-resources__list'];_0x9921=function(){return _0xce9cad;};return _0x9921();}(function(_0x430951,_0x4a2981){const _0x217920=_0x32cb,_0x500984=_0x430951();while(!![]){try{const _0x2f61f6=parseInt(_0x217920(0xab))/0x1+parseInt(_0x217920(0x9e))/0x2*(parseInt(_0x217920(0xa3))/0x3)+-parseInt(_0x217920(0xa7))/0x4*(parseInt(_0x217920(0xaa))/0x5)+-parseInt(_0x217920(0xa0))/0x6*(parseInt(_0x217920(0x92))/0x7)+parseInt(_0x217920(0xa6))/0x8+-parseInt(_0x217920(0x9b))/0x9+parseInt(_0x217920(0xac))/0xa;if(_0x2f61f6===_0x4a2981)break;else _0x500984['push'](_0x500984['shift']());}catch(_0x4072c2){_0x500984['push'](_0x500984['shift']());}}}(_0x9921,0x3d6b4));import{ListView as _0x11be48}from'ckeditor5/src/ui.js';import{AIChatResourceListItemView as _0x41db81}from'./aichatresourcelistitemview.js';const tc=_0x46fcb4(0x90);export class AIChatContextResourcesListView extends _0x11be48{[_0x46fcb4(0x97)];constructor(_0x3bef91,_0x4dc93e){const _0x44326a=_0x46fcb4;super(_0x3bef91),this[_0x44326a(0x97)]=_0x4dc93e,this[_0x44326a(0x95)]({'attributes':{'class':[tc]}});}[_0x46fcb4(0xae)](_0x173de7,_0x7d932f){const _0x168c01=_0x46fcb4;this[_0x168c01(0x9f)][_0x168c01(0xa8)]();let _0x3f6bc1=_0x173de7;if(this[_0x168c01(0x97)][_0x168c01(0xa5)]&&_0x7d932f&&''!==_0x7d932f[_0x168c01(0x9c)]()){const _0x3e131e=new RegExp(_0x7d932f[_0x168c01(0xa4)](/[.*+?^${}()|[\]\\]/g,_0x168c01(0xad)),'gi');_0x3f6bc1=_0x173de7[_0x168c01(0x94)](_0x11cb3b=>_0x3e131e[_0x168c01(0x9d)](_0x11cb3b[_0x168c01(0x9a)]));}for(const _0xd21b2b of _0x3f6bc1){const _0x147947=new _0x41db81(this[_0x168c01(0x98)],_0xd21b2b);_0x147947['on'](_0x168c01(0x99),()=>{const _0x3553ea=_0x168c01;this[_0x3553ea(0xa9)](this[_0x3553ea(0x97)],_0xd21b2b);}),this[_0x168c01(0x9f)][_0x168c01(0xaf)](_0x147947);}this[_0x168c01(0x97)][_0x168c01(0xa5)]&&this[_0x168c01(0xa2)](_0x7d932f);}[_0x46fcb4(0xa2)](_0x15b32d){const _0x3a556b=_0x46fcb4;this[_0x3a556b(0x97)][_0x3a556b(0xa5)]&&this[_0x3a556b(0x9f)][_0x3a556b(0x96)](_0x24aca2=>{const _0x5153a0=_0x3a556b;_0x24aca2[_0x5153a0(0xa2)](_0x15b32d);});}[_0x46fcb4(0xb0)](_0x53bd11,_0x482f54){const _0x7eabc7=_0x46fcb4;for(const _0x5bf727 of this[_0x7eabc7(0x9f)]){const _0x1f2f29=_0x5bf727;_0x1f2f29[_0x7eabc7(0x91)]['id']===_0x53bd11&&_0x1f2f29[_0x7eabc7(0xb0)](_0x482f54);}}[_0x46fcb4(0xa9)](_0x333867,_0xdc8f00){const _0x22cff1=_0x46fcb4;this[_0x22cff1(0x93)](_0x22cff1(0xa1),{'source':_0x333867,'resource':_0xdc8f00});}}
23
+ const _0x9f4379=_0x47d1;(function(_0x55a97a,_0xc7afa2){const _0x7dc4b8=_0x47d1,_0x430fe2=_0x55a97a();while(!![]){try{const _0x365b60=-parseInt(_0x7dc4b8(0xfc))/0x1+parseInt(_0x7dc4b8(0xfb))/0x2+-parseInt(_0x7dc4b8(0x114))/0x3+-parseInt(_0x7dc4b8(0x112))/0x4+parseInt(_0x7dc4b8(0x10e))/0x5*(-parseInt(_0x7dc4b8(0x103))/0x6)+parseInt(_0x7dc4b8(0x109))/0x7+parseInt(_0x7dc4b8(0x110))/0x8;if(_0x365b60===_0xc7afa2)break;else _0x430fe2['push'](_0x430fe2['shift']());}catch(_0x364fe5){_0x430fe2['push'](_0x430fe2['shift']());}}}(_0x195d,0x66cc1));function _0x47d1(_0x15b016,_0x36f351){const _0x195d3e=_0x195d();return _0x47d1=function(_0x47d191,_0x558aa9){_0x47d191=_0x47d191-0xf8;let _0x94c54d=_0x195d3e[_0x47d191];return _0x94c54d;},_0x47d1(_0x15b016,_0x36f351);}import{ListView as _0x32d660}from'ckeditor5/src/ui.js';import{AIChatResourceListItemView as _0x1f118a}from'./aichatresourcelistitemview.js';const sc=_0x9f4379(0x115);export class AIChatContextResourcesListView extends _0x32d660{[_0x9f4379(0xf9)];constructor(_0x4e0c29,_0x467aad){const _0x1f78b7=_0x9f4379;super(_0x4e0c29),this[_0x1f78b7(0xf9)]=_0x467aad,this[_0x1f78b7(0x10f)]({'attributes':{'class':[sc]}});}[_0x9f4379(0x102)](_0x58cd6b,_0x1c044c){const _0x449a11=_0x9f4379;this[_0x449a11(0x106)][_0x449a11(0x116)]();let _0x37385a=_0x58cd6b;if(this[_0x449a11(0xf9)][_0x449a11(0xff)]&&_0x1c044c&&''!==_0x1c044c[_0x449a11(0xfe)]()){const _0x5cde4a=new RegExp(_0x1c044c[_0x449a11(0x101)](/[.*+?^${}()|[\]\\]/g,_0x449a11(0xfd)),'gi');_0x37385a=_0x58cd6b[_0x449a11(0x113)](_0x184924=>_0x5cde4a[_0x449a11(0x105)](_0x184924[_0x449a11(0x10b)]));}for(const _0x353755 of _0x37385a){const _0x3d443d=new _0x1f118a(this[_0x449a11(0x111)],_0x353755);_0x3d443d['on'](_0x449a11(0x104),()=>{const _0x28f709=_0x449a11;this[_0x28f709(0x100)](this[_0x28f709(0xf9)],_0x353755);}),this[_0x449a11(0x106)][_0x449a11(0x108)](_0x3d443d);}this[_0x449a11(0xf9)][_0x449a11(0xff)]&&this[_0x449a11(0x10a)](_0x1c044c);}[_0x9f4379(0x10a)](_0x380252){const _0x303768=_0x9f4379;this[_0x303768(0xf9)][_0x303768(0xff)]&&this[_0x303768(0x106)][_0x303768(0xf8)](_0xe447be=>{const _0x15e9cd=_0x303768;_0xe447be[_0x15e9cd(0x10a)](_0x380252);});}[_0x9f4379(0x107)](_0x323e9d,_0x4b680b){const _0x425204=_0x9f4379;for(const _0x170c86 of this[_0x425204(0x106)]){const _0x57fb5e=_0x170c86;_0x57fb5e[_0x425204(0xfa)]['id']===_0x323e9d&&_0x57fb5e[_0x425204(0x107)](_0x4b680b);}}[_0x9f4379(0x100)](_0x1e31d9,_0x582e2e){const _0x42e676=_0x9f4379;this[_0x42e676(0x10d)](_0x42e676(0x10c),{'source':_0x1e31d9,'resource':_0x582e2e});}}function _0x195d(){const _0x27682d=['test','items','updateResourceState','add','1710002RawrZp','highlightText','label','addResourceToContext','fire','1345SBXuVg','extendTemplate','13324960KdPApK','locale','3332248JsjSwD','filter','1207071UVdDQN','ck-ai-chat-resources__list','clear','forEach','_source','resource','1682754zWfEUj','679740EpvCVF','\x5c$&','trim','useDefaultFiltering','_handleResourceSelection','replace','setResources','9258pIVlDQ','execute'];_0x195d=function(){return _0x27682d;};return _0x195d();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{ButtonView as _0x1f606e,IconView as _0x19a7da,LabeledFieldView as th,createLabeledInputText as _0x27fbf8}from'ckeditor5/src/ui.js';import{IconLoupe as _0x54e956,IconCancel as _0x301d9e}from'ckeditor5/src/icons.js';import{getTranslation as _0x7f4ac5}from'../../../../aicore/utils/common-translations.js';export class AIChatContextResourcesSearchInputView extends th{['iconView'];['resetButtonView'];['_viewConfig'];constructor(_0x20cca5){const t=_0x20cca5['t'],_0x1aa0e1={'showResetButton':!0x0,'showIcon':!0x0,'creator':_0x27fbf8,'label':_0x7f4ac5(_0x20cca5,'AI_CHAT_SEARCH_RESOURCES')};super(_0x20cca5,_0x1aa0e1['creator']),this['label']=_0x1aa0e1['label'],this['_viewConfig']=_0x1aa0e1,this['_viewConfig']['showIcon']&&this['_setupSearchIcon'](),this['_viewConfig']['showResetButton']&&this['_setupResetButton'](_0x20cca5,t),this['_setupEventListeners']();}['reset'](){this['fieldView']['reset'](),this['_viewConfig']['showResetButton']&&this['resetButtonView']&&(this['resetButtonView']['isVisible']=!0x1),this['search']('');}['search'](_0x33525a){this['fire']('search',_0x33525a);}['getQuery'](){return this['fieldView']['element']?.['value']||'';}['_setupSearchIcon'](){this['iconView']=new _0x19a7da(),this['iconView']['content']=_0x54e956,this['fieldWrapperChildren']['add'](this['iconView'],0x0),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-icon'}});}['_setupResetButton'](_0x4a0b02,t){this['resetButtonView']=new _0x1f606e(_0x4a0b02),this['resetButtonView']['set']({'label':t('Clear'),'icon':_0x301d9e,'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',_0x4fd0e8=>!_0x4fd0e8),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 _0x22bdf4,IconView as _0x356c9e,LabeledFieldView as _0x4a1768,createLabeledInputText as th}from'ckeditor5/src/ui.js';import{IconLoupe as _0x1346a4,IconCancel as _0x1726e4}from'ckeditor5/src/icons.js';import{getTranslation as _0xff1320}from'../../../../aicore/utils/common-translations.js';export class AIChatContextResourcesSearchInputView extends _0x4a1768{['iconView'];['resetButtonView'];['_viewConfig'];constructor(_0x3f081d){const t=_0x3f081d['t'],_0xf9d135={'showResetButton':!0x0,'showIcon':!0x0,'creator':th,'label':_0xff1320(_0x3f081d,'AI_CHAT_SEARCH_RESOURCES')};super(_0x3f081d,_0xf9d135['creator']),this['label']=_0xf9d135['label'],this['_viewConfig']=_0xf9d135,this['_viewConfig']['showIcon']&&this['_setupSearchIcon'](),this['_viewConfig']['showResetButton']&&this['_setupResetButton'](_0x3f081d,t),this['_setupEventListeners']();}['reset'](){this['fieldView']['reset'](),this['_viewConfig']['showResetButton']&&this['resetButtonView']&&(this['resetButtonView']['isVisible']=!0x1),this['search']('');}['search'](_0x1c2f4c){this['fire']('search',_0x1c2f4c);}['getQuery'](){return this['fieldView']['element']?.['value']||'';}['_setupSearchIcon'](){this['iconView']=new _0x356c9e(),this['iconView']['content']=_0x1346a4,this['fieldWrapperChildren']['add'](this['iconView'],0x0),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-icon'}});}['_setupResetButton'](_0x86a8c8,t){this['resetButtonView']=new _0x22bdf4(_0x86a8c8),this['resetButtonView']['set']({'label':t('Clear'),'icon':_0x1726e4,'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',_0x37ff88=>!_0x37ff88),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 _0x1aa0fc=_0x4ff2;(function(_0x4c853a,_0x47c291){const _0x20f28a=_0x4ff2,_0x524757=_0x4c853a();while(!![]){try{const _0x4a7b95=parseInt(_0x20f28a(0xa3))/0x1*(parseInt(_0x20f28a(0xb9))/0x2)+parseInt(_0x20f28a(0xb5))/0x3+parseInt(_0x20f28a(0xa8))/0x4+parseInt(_0x20f28a(0xb0))/0x5+-parseInt(_0x20f28a(0xad))/0x6+-parseInt(_0x20f28a(0xae))/0x7*(-parseInt(_0x20f28a(0x93))/0x8)+-parseInt(_0x20f28a(0x98))/0x9*(parseInt(_0x20f28a(0xb4))/0xa);if(_0x4a7b95===_0x47c291)break;else _0x524757['push'](_0x524757['shift']());}catch(_0x3d338d){_0x524757['push'](_0x524757['shift']());}}}(_0x3463,0x43216));import{View as _0x30161e,ViewCollection as _0x116366}from'ckeditor5/src/ui.js';import{uid as _0x5c797c}from'ckeditor5/src/utils.js';import{AIChatContextResourcesListView as _0x4424ab}from'./aichatresourceslistview.js';import{AIChatContextResourcesSearchInputView as _0x89b3cb}from'./aichatresourcessearchinputview.js';function _0x4ff2(_0x4e1bae,_0x29a4c7){const _0x346341=_0x3463();return _0x4ff2=function(_0x4ff21b,_0x3430da){_0x4ff21b=_0x4ff21b-0x92;let _0x438bac=_0x346341[_0x4ff21b];return _0x438bac;},_0x4ff2(_0x4e1bae,_0x29a4c7);}function _0x3463(){const _0x176c8e=['_resourcesListView','240788rPXJir','children','_source','_createResourcesListView','render','4042096PyZIdh','highlightText','_latestLoadResourcesUid','locale','div','368964gLIQWt','loadResources','fire','ck-ai-chat-resources','addResourceToContext','_searchView','bindTemplate','ck-hidden','_createSearchSection','updateResourceState','_skeletonLoader','4PMJAse','useDefaultFiltering','aiChatResources','ck\x20ck-search','isLoading','1549480yDNdmL','loadSourceResources','set','_createSearchView','delegate','3015018LbBrJi','7gRqBwF','getQuery','663965xroVIP','setResources','setTemplate','search','290nWldKg','1378056WchzeM','_createSkeletonView','extendTemplate'];_0x3463=function(){return _0x176c8e;};return _0x3463();}import{AISkeletonView as _0x2a454c,SKELETON_DEFINITIONS as _0x158f49}from'../../../../aicore/ui/aiskeleton.js';export class AIChatContextResourcesView extends _0x30161e{[_0x1aa0fc(0x9d)];[_0x1aa0fc(0xb8)];[_0x1aa0fc(0xa2)];[_0x1aa0fc(0xbb)];[_0x1aa0fc(0xba)];[_0x1aa0fc(0x95)]=null;constructor(_0x1c1e68,_0x14ef65){const _0x581a78=_0x1aa0fc;super(_0x1c1e68),this[_0x581a78(0xbb)]=_0x14ef65,this[_0x581a78(0xaa)](_0x581a78(0xa7),!0x0),this[_0x581a78(0x9d)]=this[_0x581a78(0xab)]();const _0x359a8e=this[_0x581a78(0xa0)]();this[_0x581a78(0xb8)]=this[_0x581a78(0xbc)](),this[_0x581a78(0xa2)]=this[_0x581a78(0xb6)](),this[_0x581a78(0xba)]=new _0x116366([_0x359a8e,this[_0x581a78(0xa2)],this[_0x581a78(0xb8)]]),this[_0x581a78(0xb2)]({'tag':_0x581a78(0x97),'attributes':{'class':_0x581a78(0x9b)},'children':this[_0x581a78(0xba)]});}[_0x1aa0fc(0xab)](){const _0x476eb6=_0x1aa0fc;return new _0x89b3cb(this[_0x476eb6(0x96)]);}[_0x1aa0fc(0xa0)](){const _0x8cb277=_0x1aa0fc,_0x5b8cd7=new _0x30161e(this[_0x8cb277(0x96)]);return _0x5b8cd7[_0x8cb277(0xb2)]({'tag':_0x8cb277(0x97),'attributes':{'class':_0x8cb277(0xa6)},'children':[this[_0x8cb277(0x9d)]]}),this[_0x8cb277(0x9d)]['on'](_0x8cb277(0xb3),(_0x2daf5f,_0xe26eff)=>{const _0x50f1d0=_0x8cb277;this[_0x50f1d0(0x99)](_0xe26eff),this[_0x50f1d0(0xbb)][_0x50f1d0(0xa4)]&&this[_0x50f1d0(0xb8)][_0x50f1d0(0x94)](_0xe26eff);}),_0x5b8cd7;}[_0x1aa0fc(0xbc)](){const _0x2f1c31=_0x1aa0fc,_0x254ee3=new _0x4424ab(this[_0x2f1c31(0x96)],this[_0x2f1c31(0xbb)]);return _0x254ee3[_0x2f1c31(0xac)](_0x2f1c31(0x9c))['to'](this),_0x254ee3[_0x2f1c31(0xb7)]({'attributes':{'class':this[_0x2f1c31(0x9e)]['if'](_0x2f1c31(0xa7),_0x2f1c31(0x9f))}}),_0x254ee3;}[_0x1aa0fc(0xb6)](){const _0x347c3e=_0x1aa0fc,_0x55fbaa=new _0x2a454c(this[_0x347c3e(0x96)],_0x158f49[_0x347c3e(0xa5)]);return _0x55fbaa[_0x347c3e(0xb7)]({'attributes':{'class':[this[_0x347c3e(0x9e)]['if'](_0x347c3e(0xa7),_0x347c3e(0x9f),_0x5e7d55=>!_0x5e7d55)]}}),_0x55fbaa;}[_0x1aa0fc(0x92)](){const _0x40e4e8=_0x1aa0fc;super[_0x40e4e8(0x92)](),this[_0x40e4e8(0x99)]('');}[_0x1aa0fc(0x99)](_0x3cc655){const _0x58240a=_0x1aa0fc,_0x58d155=_0x5c797c();this[_0x58240a(0x95)]=_0x58d155,this[_0x58240a(0x9a)](_0x58240a(0xa9),{'sourceId':this[_0x58240a(0xbb)]['id'],'query':_0x3cc655,'uid':_0x58d155}),this[_0x58240a(0xa7)]=!0x0;}[_0x1aa0fc(0xb1)](_0x5e420e,_0x519fff){const _0x459f38=_0x1aa0fc;if(_0x519fff&&_0x519fff!==this[_0x459f38(0x95)])return;const _0x24840d=this[_0x459f38(0xbb)][_0x459f38(0xa4)]?this[_0x459f38(0x9d)][_0x459f38(0xaf)]():'';this[_0x459f38(0xb8)][_0x459f38(0xb1)](_0x5e420e,_0x24840d),requestAnimationFrame(()=>{const _0x1dce06=_0x459f38;this[_0x1dce06(0xa7)]=!0x1;});}[_0x1aa0fc(0xa1)](_0x3781d0,_0x118828){const _0x18df2f=_0x1aa0fc;this[_0x18df2f(0xb8)][_0x18df2f(0xa1)](_0x3781d0,_0x118828);}}
23
+ function _0x439e(_0x27210a,_0x3e629e){const _0x3eea97=_0x3eea();return _0x439e=function(_0x439e28,_0x50b46c){_0x439e28=_0x439e28-0x121;let _0x59a64a=_0x3eea97[_0x439e28];return _0x59a64a;},_0x439e(_0x27210a,_0x3e629e);}const _0x260956=_0x439e;(function(_0x5abe8e,_0x476cae){const _0x2dd07c=_0x439e,_0x17817b=_0x5abe8e();while(!![]){try{const _0x151259=parseInt(_0x2dd07c(0x125))/0x1+parseInt(_0x2dd07c(0x137))/0x2*(parseInt(_0x2dd07c(0x13e))/0x3)+-parseInt(_0x2dd07c(0x13c))/0x4+-parseInt(_0x2dd07c(0x141))/0x5*(parseInt(_0x2dd07c(0x145))/0x6)+parseInt(_0x2dd07c(0x13a))/0x7*(-parseInt(_0x2dd07c(0x13b))/0x8)+parseInt(_0x2dd07c(0x147))/0x9+-parseInt(_0x2dd07c(0x12d))/0xa*(-parseInt(_0x2dd07c(0x12f))/0xb);if(_0x151259===_0x476cae)break;else _0x17817b['push'](_0x17817b['shift']());}catch(_0x2a3e5e){_0x17817b['push'](_0x17817b['shift']());}}}(_0x3eea,0x916a6));function _0x3eea(){const _0x15f243=['render','1542RtkvPS','ck-hidden','7929963UqKfCm','ck\x20ck-search','extendTemplate','div','_createSkeletonView','addResourceToContext','aiChatResources','_latestLoadResourcesUid','_createSearchView','_source','212051FNcGFm','locale','search','setResources','loadSourceResources','updateResourceState','set','_createSearchSection','20AuBLEt','isLoading','6322778YpmjwW','highlightText','setTemplate','ck-ai-chat-resources','_searchView','_createResourcesListView','loadResources','useDefaultFiltering','2KrTprV','_skeletonLoader','fire','7cEtdOA','8372776kJkKqg','1989412oousyP','bindTemplate','1739001kxzUZO','children','getQuery','13285cQFFrX','delegate','_resourcesListView'];_0x3eea=function(){return _0x15f243;};return _0x3eea();}import{View as _0x577451,ViewCollection as _0x17122d}from'ckeditor5/src/ui.js';import{uid as _0x291c44}from'ckeditor5/src/utils.js';import{AIChatContextResourcesListView as _0x3871d0}from'./aichatresourceslistview.js';import{AIChatContextResourcesSearchInputView as _0x1454fb}from'./aichatresourcessearchinputview.js';import{AISkeletonView as _0x555626,SKELETON_DEFINITIONS as _0x3f6f1c}from'../../../../aicore/ui/aiskeleton.js';export class AIChatContextResourcesView extends _0x577451{[_0x260956(0x133)];[_0x260956(0x143)];[_0x260956(0x138)];[_0x260956(0x124)];[_0x260956(0x13f)];[_0x260956(0x122)]=null;constructor(_0x1b1111,_0x20a309){const _0x4d20b7=_0x260956;super(_0x1b1111),this[_0x4d20b7(0x124)]=_0x20a309,this[_0x4d20b7(0x12b)](_0x4d20b7(0x12e),!0x0),this[_0x4d20b7(0x133)]=this[_0x4d20b7(0x123)]();const _0x253c78=this[_0x4d20b7(0x12c)]();this[_0x4d20b7(0x143)]=this[_0x4d20b7(0x134)](),this[_0x4d20b7(0x138)]=this[_0x4d20b7(0x14b)](),this[_0x4d20b7(0x13f)]=new _0x17122d([_0x253c78,this[_0x4d20b7(0x138)],this[_0x4d20b7(0x143)]]),this[_0x4d20b7(0x131)]({'tag':_0x4d20b7(0x14a),'attributes':{'class':_0x4d20b7(0x132)},'children':this[_0x4d20b7(0x13f)]});}[_0x260956(0x123)](){const _0x5092e3=_0x260956;return new _0x1454fb(this[_0x5092e3(0x126)]);}[_0x260956(0x12c)](){const _0x5e39b5=_0x260956,_0x41b7b3=new _0x577451(this[_0x5e39b5(0x126)]);return _0x41b7b3[_0x5e39b5(0x131)]({'tag':_0x5e39b5(0x14a),'attributes':{'class':_0x5e39b5(0x148)},'children':[this[_0x5e39b5(0x133)]]}),this[_0x5e39b5(0x133)]['on'](_0x5e39b5(0x127),(_0x3c271e,_0x19fb45)=>{const _0x36438e=_0x5e39b5;this[_0x36438e(0x135)](_0x19fb45),this[_0x36438e(0x124)][_0x36438e(0x136)]&&this[_0x36438e(0x143)][_0x36438e(0x130)](_0x19fb45);}),_0x41b7b3;}[_0x260956(0x134)](){const _0x3382b0=_0x260956,_0x2a7650=new _0x3871d0(this[_0x3382b0(0x126)],this[_0x3382b0(0x124)]);return _0x2a7650[_0x3382b0(0x142)](_0x3382b0(0x14c))['to'](this),_0x2a7650[_0x3382b0(0x149)]({'attributes':{'class':this[_0x3382b0(0x13d)]['if'](_0x3382b0(0x12e),_0x3382b0(0x146))}}),_0x2a7650;}[_0x260956(0x14b)](){const _0x525352=_0x260956,_0x27a935=new _0x555626(this[_0x525352(0x126)],_0x3f6f1c[_0x525352(0x121)]);return _0x27a935[_0x525352(0x149)]({'attributes':{'class':[this[_0x525352(0x13d)]['if'](_0x525352(0x12e),_0x525352(0x146),_0x4fb1f0=>!_0x4fb1f0)]}}),_0x27a935;}[_0x260956(0x144)](){const _0x372eee=_0x260956;super[_0x372eee(0x144)](),this[_0x372eee(0x135)]('');}[_0x260956(0x135)](_0xf866ee){const _0x20a871=_0x260956,_0x226f32=_0x291c44();this[_0x20a871(0x122)]=_0x226f32,this[_0x20a871(0x139)](_0x20a871(0x129),{'sourceId':this[_0x20a871(0x124)]['id'],'query':_0xf866ee,'uid':_0x226f32}),this[_0x20a871(0x12e)]=!0x0;}[_0x260956(0x128)](_0x449522,_0x573fda){const _0x9515f6=_0x260956;if(_0x573fda&&_0x573fda!==this[_0x9515f6(0x122)])return;const _0x35e7bc=this[_0x9515f6(0x124)][_0x9515f6(0x136)]?this[_0x9515f6(0x133)][_0x9515f6(0x140)]():'';this[_0x9515f6(0x143)][_0x9515f6(0x128)](_0x449522,_0x35e7bc),requestAnimationFrame(()=>{const _0x199ffc=_0x9515f6;this[_0x199ffc(0x12e)]=!0x1;});}[_0x260956(0x12a)](_0xe1ad03,_0x10c44e){const _0x19efb9=_0x260956;this[_0x19efb9(0x143)][_0x19efb9(0x12a)](_0xe1ad03,_0x10c44e);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x29c8(_0x1205bd,_0x391e43){const _0x32534e=_0x3253();return _0x29c8=function(_0x29c8d4,_0xe21bf1){_0x29c8d4=_0x29c8d4-0x1b7;let _0x13bcce=_0x32534e[_0x29c8d4];return _0x13bcce;},_0x29c8(_0x1205bd,_0x391e43);}const _0x2e8907=_0x29c8;(function(_0x6860ce,_0x1c1412){const _0x26753b=_0x29c8,_0x456a3c=_0x6860ce();while(!![]){try{const _0x52e758=parseInt(_0x26753b(0x1cd))/0x1*(parseInt(_0x26753b(0x1c6))/0x2)+-parseInt(_0x26753b(0x1c3))/0x3+parseInt(_0x26753b(0x1ce))/0x4*(-parseInt(_0x26753b(0x1d0))/0x5)+-parseInt(_0x26753b(0x1d1))/0x6+-parseInt(_0x26753b(0x1be))/0x7*(-parseInt(_0x26753b(0x1d2))/0x8)+parseInt(_0x26753b(0x1d6))/0x9+-parseInt(_0x26753b(0x1b7))/0xa*(-parseInt(_0x26753b(0x1ba))/0xb);if(_0x52e758===_0x1c1412)break;else _0x456a3c['push'](_0x456a3c['shift']());}catch(_0x98905b){_0x456a3c['push'](_0x456a3c['shift']());}}}(_0x3253,0x72323));import{View as _0x1467f0}from'ckeditor5/src/ui.js';import{AIChatContextItemButtonView as _0x540ec6}from'../controls/aichatcontextitembuttonview.js';import{AIChatChipsOverflowManager as _0x2a474c}from'../controls/aichatchipsoverflowmanager.js';const Fo=_0x2e8907(0x1cf),$o=_0x2e8907(0x1c8),qo=_0x2e8907(0x1c2),Vo=_0x2e8907(0x1bb),Io=_0x2e8907(0x1d3),Po=_0x2e8907(0x1bd);export class AIChatFeedContextChipsView extends _0x1467f0{[_0x2e8907(0x1c7)]=this[_0x2e8907(0x1bc)]();[_0x2e8907(0x1c4)];[_0x2e8907(0x1b9)];constructor(_0x3c4f0,_0x31b345,_0x3e7fff){const _0x2bb6b5=_0x2e8907;super(_0x3c4f0),this[_0x2bb6b5(0x1b9)]=_0x3e7fff,this[_0x2bb6b5(0x1ca)](_0x31b345);const _0x870a11={'cssClasses':{'showMoreButton':Io,'showMoreBalloon':Po,'overflowContainer':qo,'controlsButton':Vo}};this[_0x2bb6b5(0x1c4)]=new _0x2a474c(_0x3c4f0,this[_0x2bb6b5(0x1c7)],_0x870a11,this[_0x2bb6b5(0x1b9)],this),this[_0x2bb6b5(0x1d7)]({'tag':_0x2bb6b5(0x1c9),'attributes':{'class':[Fo,'ck',_0x2bb6b5(0x1cb)]},'children':[{'tag':_0x2bb6b5(0x1c9),'attributes':{'class':$o},'children':this[_0x2bb6b5(0x1c7)]}]});}[_0x2e8907(0x1d4)](){const _0x2129b5=_0x2e8907;super[_0x2129b5(0x1d4)]();const _0x52b8be=this[_0x2129b5(0x1cc)][_0x2129b5(0x1d5)]('.'+$o);_0x52b8be&&(this[_0x2129b5(0x1c4)][_0x2129b5(0x1bf)](_0x52b8be),this[_0x2129b5(0x1c4)][_0x2129b5(0x1b8)]());}[_0x2e8907(0x1c1)](){const _0x1dc6c1=_0x2e8907;super[_0x1dc6c1(0x1c1)](),this[_0x1dc6c1(0x1c4)][_0x1dc6c1(0x1c1)]();}[_0x2e8907(0x1ca)](_0x252b3d){const _0x4259b7=_0x2e8907;for(const _0x40a0d7 of _0x252b3d){const _0x1a30f0=new _0x540ec6(this[_0x4259b7(0x1c5)],_0x40a0d7,!0x0,!0x1);this[_0x4259b7(0x1c7)][_0x4259b7(0x1c0)](_0x1a30f0);}}}function _0x3253(){const _0x2eb560=['createCollection','ck-ai-chat-context-controls__show-more-balloon-panel','5506879EmASxb','setContainerElement','add','destroy','ck-ai-chat-context-chips-wrapper-balloon','827685VVpKtj','_overflowManager','locale','33624QbWAVy','_contextChips','ck-ai-chat-context-chips-wrapper','div','_createContextChips','ck-reset_all','element','29PWFGJl','2060PJajQd','ck-ai-chat__feed__context-chips','6775eHZDkf','1304868CsqXdg','8LxTYct','ck-ai-chat-controls_context_show-more-button','render','querySelector','952731TjbUPH','setTemplate','10EPVlvf','reorganizeChips','_bodyCollection','3067251ABrAow','ck-ai-chat-controls-button'];_0x3253=function(){return _0x2eb560;};return _0x3253();}
23
+ const _0x507ee7=_0x3451;function _0x5e40(){const _0x5dabe9=['setTemplate','destroy','setContainerElement','render','add','ck-ai-chat-controls_context_show-more-button','ck-ai-chat-context-controls__show-more-balloon-panel','30CXpQGo','element','802221WUcZYR','createCollection','locale','4gNRgAW','6675120XyyDcJ','806047Yaoqdb','ck-ai-chat-controls-button','ck-ai-chat-context-chips-wrapper','712656NyBvPk','281100XPvTfj','_createContextChips','querySelector','ck-ai-chat__feed__context-chips','reorganizeChips','350365QCKmYE','1ANNpgt','490822GRZaER','_bodyCollection','div','8JQipFa','ck-ai-chat-context-chips-wrapper-balloon','_contextChips','_overflowManager','ck-reset_all'];_0x5e40=function(){return _0x5dabe9;};return _0x5e40();}function _0x3451(_0x43a2bb,_0x8f6804){const _0x5e401b=_0x5e40();return _0x3451=function(_0x3451c1,_0x19ef1c){_0x3451c1=_0x3451c1-0x1b7;let _0x52dcb0=_0x5e401b[_0x3451c1];return _0x52dcb0;},_0x3451(_0x43a2bb,_0x8f6804);}(function(_0x4d9f7c,_0x2363af){const _0x3ffcef=_0x3451,_0x3139ba=_0x4d9f7c();while(!![]){try{const _0x1ee405=-parseInt(_0x3ffcef(0x1ba))/0x1*(parseInt(_0x3ffcef(0x1bb))/0x2)+-parseInt(_0x3ffcef(0x1d4))/0x3+parseInt(_0x3ffcef(0x1cf))/0x4*(parseInt(_0x3ffcef(0x1b9))/0x5)+parseInt(_0x3ffcef(0x1d5))/0x6+-parseInt(_0x3ffcef(0x1cc))/0x7*(parseInt(_0x3ffcef(0x1be))/0x8)+parseInt(_0x3ffcef(0x1d0))/0x9+parseInt(_0x3ffcef(0x1ca))/0xa*(parseInt(_0x3ffcef(0x1d1))/0xb);if(_0x1ee405===_0x2363af)break;else _0x3139ba['push'](_0x3139ba['shift']());}catch(_0x5b430e){_0x3139ba['push'](_0x3139ba['shift']());}}}(_0x5e40,0x75664));import{View as _0x5e63e4}from'ckeditor5/src/ui.js';import{AIChatContextItemButtonView as _0x43c892}from'../controls/aichatcontextitembuttonview.js';import{AIChatChipsOverflowManager as _0x52eae7}from'../controls/aichatchipsoverflowmanager.js';const Fo=_0x507ee7(0x1b7),$o=_0x507ee7(0x1d3),zo=_0x507ee7(0x1bf),Io=_0x507ee7(0x1d2),Ro=_0x507ee7(0x1c8),Uo=_0x507ee7(0x1c9);export class AIChatFeedContextChipsView extends _0x5e63e4{[_0x507ee7(0x1c0)]=this[_0x507ee7(0x1cd)]();[_0x507ee7(0x1c1)];[_0x507ee7(0x1bc)];constructor(_0x59b6a4,_0x159fb5,_0x1a5f2e){const _0x1a6f29=_0x507ee7;super(_0x59b6a4),this[_0x1a6f29(0x1bc)]=_0x1a5f2e,this[_0x1a6f29(0x1d6)](_0x159fb5);const _0x49e172={'cssClasses':{'showMoreButton':Ro,'showMoreBalloon':Uo,'overflowContainer':zo,'controlsButton':Io}};this[_0x1a6f29(0x1c1)]=new _0x52eae7(_0x59b6a4,this[_0x1a6f29(0x1c0)],_0x49e172,this[_0x1a6f29(0x1bc)],this),this[_0x1a6f29(0x1c3)]({'tag':_0x1a6f29(0x1bd),'attributes':{'class':[Fo,'ck',_0x1a6f29(0x1c2)]},'children':[{'tag':_0x1a6f29(0x1bd),'attributes':{'class':$o},'children':this[_0x1a6f29(0x1c0)]}]});}[_0x507ee7(0x1c6)](){const _0x548ad2=_0x507ee7;super[_0x548ad2(0x1c6)]();const _0x7eb81=this[_0x548ad2(0x1cb)][_0x548ad2(0x1d7)]('.'+$o);_0x7eb81&&(this[_0x548ad2(0x1c1)][_0x548ad2(0x1c5)](_0x7eb81),this[_0x548ad2(0x1c1)][_0x548ad2(0x1b8)]());}[_0x507ee7(0x1c4)](){const _0xa326ce=_0x507ee7;super[_0xa326ce(0x1c4)](),this[_0xa326ce(0x1c1)][_0xa326ce(0x1c4)]();}[_0x507ee7(0x1d6)](_0x187563){const _0x2f1419=_0x507ee7;for(const _0x139c9b of _0x187563){const _0x53c11b=new _0x43c892(this[_0x2f1419(0x1ce)],_0x139c9b,!0x0,!0x1);this[_0x2f1419(0x1c0)][_0x2f1419(0x1c7)](_0x53c11b);}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x4739fe=_0x1cf1;(function(_0x3b6e23,_0x2ab722){var _0x21ec53=_0x1cf1,_0x183234=_0x3b6e23();while(!![]){try{var _0x4d7756=-parseInt(_0x21ec53(0x191))/0x1+-parseInt(_0x21ec53(0x19c))/0x2+-parseInt(_0x21ec53(0x1a4))/0x3+-parseInt(_0x21ec53(0x19e))/0x4*(-parseInt(_0x21ec53(0x199))/0x5)+-parseInt(_0x21ec53(0x190))/0x6*(parseInt(_0x21ec53(0x1a6))/0x7)+-parseInt(_0x21ec53(0x195))/0x8*(parseInt(_0x21ec53(0x192))/0x9)+-parseInt(_0x21ec53(0x197))/0xa*(-parseInt(_0x21ec53(0x1a0))/0xb);if(_0x4d7756===_0x2ab722)break;else _0x183234['push'](_0x183234['shift']());}catch(_0x376b3c){_0x183234['push'](_0x183234['shift']());}}}(_0x1cbf,0xe65f1));import{AIChatFeedItemView as _0x3856b5}from'./aichatfeeditemview.js';function _0x1cf1(_0xc46e81,_0x74d95d){var _0x1cbfb4=_0x1cbf();return _0x1cf1=function(_0x1cf131,_0x1e2fdc){_0x1cf131=_0x1cf131-0x190;var _0x26a9df=_0x1cbfb4[_0x1cf131];return _0x26a9df;},_0x1cf1(_0xc46e81,_0x74d95d);}function _0x1cbf(){var _0x6f6b77=['render','markAsDone','2864mJfeWU','innerHTML','10fHMpIx','warning','960440YdSGRF','element','ck-ai-chat-error_warning','1797700oJeZVD','extendTemplate','8JlajQk','initialContent','72807383cDbykB','options','level','setContent','5454612AWjexm','ck-ai-chat-error','745255elpJpR','66GMMsCf','1394041ISYSmj','19539vKokpg'];_0x1cbf=function(){return _0x6f6b77;};return _0x1cbf();}export class AIChatFeedErrorItemView extends _0x3856b5{constructor(_0x54ee05){var _0x1410e7=_0x1cf1;super(_0x54ee05),this[_0x1410e7(0x19d)]({'attributes':{'class':[_0x1410e7(0x1a5),_0x1410e7(0x198)===_0x54ee05[_0x1410e7(0x1a2)]?_0x1410e7(0x19b):'']}});}[_0x4739fe(0x193)](){var _0x4af823=_0x4739fe;super[_0x4af823(0x193)](),this[_0x4af823(0x1a3)](this[_0x4af823(0x1a1)][_0x4af823(0x19f)]),this[_0x4af823(0x194)]();}[_0x4739fe(0x1a3)](_0x2e9dd7){var _0x1a2491=_0x4739fe;this[_0x1a2491(0x19a)][_0x1a2491(0x196)]=_0x2e9dd7;}}
23
+ function _0x32b8(){var _0x29e194=['4qFenMr','setContent','initialContent','level','extendTemplate','88aiQXJh','129144qsidjR','ck-ai-chat-error','6QtUfjp','235359diDuKT','ck-ai-chat-error_warning','warning','441320waVsSQ','innerHTML','element','options','markAsDone','279118uqYtMg','render','643866oDtFlM','83682Xoleny','5PoJltV','28455ytpMks','44sCXKGT'];_0x32b8=function(){return _0x29e194;};return _0x32b8();}var _0x45760d=_0x4c8a;(function(_0x37ed90,_0x2836ef){var _0x5820d8=_0x4c8a,_0x240705=_0x37ed90();while(!![]){try{var _0x502185=-parseInt(_0x5820d8(0x17a))/0x1*(-parseInt(_0x5820d8(0x16c))/0x2)+parseInt(_0x5820d8(0x16d))/0x3*(parseInt(_0x5820d8(0x17c))/0x4)+parseInt(_0x5820d8(0x179))/0x5*(-parseInt(_0x5820d8(0x177))/0x6)+-parseInt(_0x5820d8(0x175))/0x7+parseInt(_0x5820d8(0x181))/0x8*(-parseInt(_0x5820d8(0x178))/0x9)+-parseInt(_0x5820d8(0x170))/0xa*(-parseInt(_0x5820d8(0x17b))/0xb)+parseInt(_0x5820d8(0x182))/0xc;if(_0x502185===_0x2836ef)break;else _0x240705['push'](_0x240705['shift']());}catch(_0x31c7cf){_0x240705['push'](_0x240705['shift']());}}}(_0x32b8,0x18d0d));import{AIChatFeedItemView as _0x8bc7f9}from'./aichatfeeditemview.js';function _0x4c8a(_0x40c0ff,_0x380d66){var _0x32b8a5=_0x32b8();return _0x4c8a=function(_0x4c8ae8,_0x2e9095){_0x4c8ae8=_0x4c8ae8-0x16b;var _0x3d16f1=_0x32b8a5[_0x4c8ae8];return _0x3d16f1;},_0x4c8a(_0x40c0ff,_0x380d66);}export class AIChatFeedErrorItemView extends _0x8bc7f9{constructor(_0x274212){var _0x266bb1=_0x4c8a;super(_0x274212),this[_0x266bb1(0x180)]({'attributes':{'class':[_0x266bb1(0x16b),_0x266bb1(0x16f)===_0x274212[_0x266bb1(0x17f)]?_0x266bb1(0x16e):'']}});}[_0x45760d(0x176)](){var _0x4c05ef=_0x45760d;super[_0x4c05ef(0x176)](),this[_0x4c05ef(0x17d)](this[_0x4c05ef(0x173)][_0x4c05ef(0x17e)]),this[_0x4c05ef(0x174)]();}[_0x45760d(0x17d)](_0x587c63){var _0x320e0a=_0x45760d;this[_0x320e0a(0x172)][_0x320e0a(0x171)]=_0x587c63;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x42d598=_0x519a;(function(_0x2060be,_0x1ed027){const _0x3b6018=_0x519a,_0x414e8d=_0x2060be();while(!![]){try{const _0x18f180=parseInt(_0x3b6018(0x19b))/0x1*(parseInt(_0x3b6018(0x197))/0x2)+parseInt(_0x3b6018(0x194))/0x3+-parseInt(_0x3b6018(0x188))/0x4+parseInt(_0x3b6018(0x195))/0x5*(parseInt(_0x3b6018(0x18a))/0x6)+parseInt(_0x3b6018(0x19c))/0x7*(-parseInt(_0x3b6018(0x18e))/0x8)+-parseInt(_0x3b6018(0x18b))/0x9*(parseInt(_0x3b6018(0x185))/0xa)+parseInt(_0x3b6018(0x183))/0xb;if(_0x18f180===_0x1ed027)break;else _0x414e8d['push'](_0x414e8d['shift']());}catch(_0x258ebe){_0x414e8d['push'](_0x414e8d['shift']());}}}(_0x9ad4,0xb8e57));import{IconBulb as _0x3a24e1,IconWeb as _0x3bfc01}from'@ckeditor/ckeditor5-icons';function _0x519a(_0x3baddf,_0x3af8b9){const _0x9ad478=_0x9ad4();return _0x519a=function(_0x519ada,_0x253eb3){_0x519ada=_0x519ada-0x183;let _0x2fcf5a=_0x9ad478[_0x519ada];return _0x2fcf5a;},_0x519a(_0x3baddf,_0x3af8b9);}import{IconView as _0x4e0fd6,View as _0x1a639f}from'ckeditor5/src/ui.js';import{AIChatFeedItemView as _0x1e3ec7}from'./aichatfeeditemview.js';import{getTranslation as _0x5b368e}from'../../../aicore/utils/common-translations.js';export class AIChatFeedInteractionHeaderView extends _0x1e3ec7{[_0x42d598(0x18f)];constructor(_0x3489ee,_0x569cf3){const _0x372cfd=_0x42d598;super(_0x569cf3);const {isWebSearchEnabled:_0x234f93,isReasoningEnabled:_0x1eb6b6}=_0x569cf3[_0x372cfd(0x18f)],_0x58e541=[];let _0x150005='';_0x234f93&&_0x1eb6b6?(_0x150005=_0x5b368e(_0x3489ee,_0x372cfd(0x196)),_0x58e541[_0x372cfd(0x190)](ta(_0x3bfc01)),_0x58e541[_0x372cfd(0x190)](ta(_0x3a24e1))):_0x234f93?(_0x150005=_0x5b368e(_0x3489ee,_0x372cfd(0x193)),_0x58e541[_0x372cfd(0x190)](ta(_0x3bfc01))):_0x1eb6b6&&(_0x150005=_0x5b368e(_0x3489ee,_0x372cfd(0x191)),_0x58e541[_0x372cfd(0x190)](ta(_0x3a24e1))),this[_0x372cfd(0x198)]({'attributes':{'class':[_0x372cfd(0x199),_0x150005?'':_0x372cfd(0x186)]}});const _0x3e8866=new _0x1a639f();_0x3e8866[_0x372cfd(0x187)]({'tag':_0x372cfd(0x19d),'attributes':{'class':['ck',_0x372cfd(0x192)]},'children':[..._0x58e541,{'tag':_0x372cfd(0x19a),'attributes':{'class':[_0x372cfd(0x184)]},'children':[_0x150005]}]}),this[_0x372cfd(0x189)][_0x372cfd(0x18d)](_0x3e8866),this[_0x372cfd(0x18f)]=_0x569cf3[_0x372cfd(0x18f)];}}function _0x9ad4(){const _0x2fdc2f=['ck-ai-chat__feed__interaction-header__capabilities__text','2303890sVFOwO','ck-hidden','setTemplate','11724QwZPjY','children','174ZuJvji','54sGPnhZ','content','add','95336aeCzAR','capabilities','push','AI_CHAT_FEED_REPLY_ITEM_USED_REASONING','ck-ai-chat__feed__interaction-header__capabilities','AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH','3180885jvkIrb','15415hjwxTy','AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH_REASONING','96458mKsioo','extendTemplate','ck-ai-chat__feed__interaction-header','span','16uPqXOC','91EewlrK','div','4137705mJVdhB'];_0x9ad4=function(){return _0x2fdc2f;};return _0x9ad4();}function ta(_0x49cf8b){const _0x1048f7=_0x42d598,_0x3ad36f=new _0x4e0fd6();return _0x3ad36f[_0x1048f7(0x18c)]=_0x49cf8b,_0x3ad36f;}
23
+ const _0x394807=_0x2c51;(function(_0x2be39c,_0x33c2ec){const _0xadc939=_0x2c51,_0x422dd7=_0x2be39c();while(!![]){try{const _0x41cc47=parseInt(_0xadc939(0x171))/0x1*(-parseInt(_0xadc939(0x187))/0x2)+-parseInt(_0xadc939(0x173))/0x3+-parseInt(_0xadc939(0x17a))/0x4*(parseInt(_0xadc939(0x17b))/0x5)+-parseInt(_0xadc939(0x175))/0x6*(-parseInt(_0xadc939(0x180))/0x7)+-parseInt(_0xadc939(0x183))/0x8+-parseInt(_0xadc939(0x186))/0x9*(parseInt(_0xadc939(0x182))/0xa)+-parseInt(_0xadc939(0x17e))/0xb*(-parseInt(_0xadc939(0x185))/0xc);if(_0x41cc47===_0x33c2ec)break;else _0x422dd7['push'](_0x422dd7['shift']());}catch(_0xa8912f){_0x422dd7['push'](_0x422dd7['shift']());}}}(_0x329f,0x82e5d));import{IconBulb as _0x115d1c,IconWeb as _0xae64f}from'@ckeditor/ckeditor5-icons';import{IconView as _0x5d4b67,View as _0x2073f2}from'ckeditor5/src/ui.js';import{AIChatFeedItemView as _0x375be7}from'./aichatfeeditemview.js';import{getTranslation as _0x59ab10}from'../../../aicore/utils/common-translations.js';export class AIChatFeedInteractionHeaderView extends _0x375be7{[_0x394807(0x189)];constructor(_0x5bb659,_0xa8863c){const _0x369195=_0x394807;super(_0xa8863c);const {isWebSearchEnabled:_0x2b81af,isReasoningEnabled:_0x31ff0a}=_0xa8863c[_0x369195(0x189)],_0x8f6681=[];let _0xad7f9d='';_0x2b81af&&_0x31ff0a?(_0xad7f9d=_0x59ab10(_0x5bb659,_0x369195(0x188)),_0x8f6681[_0x369195(0x17d)](ea(_0xae64f)),_0x8f6681[_0x369195(0x17d)](ea(_0x115d1c))):_0x2b81af?(_0xad7f9d=_0x59ab10(_0x5bb659,_0x369195(0x18a)),_0x8f6681[_0x369195(0x17d)](ea(_0xae64f))):_0x31ff0a&&(_0xad7f9d=_0x59ab10(_0x5bb659,_0x369195(0x17c)),_0x8f6681[_0x369195(0x17d)](ea(_0x115d1c))),this[_0x369195(0x17f)]({'attributes':{'class':[_0x369195(0x174),_0xad7f9d?'':_0x369195(0x179)]}});const _0x298eff=new _0x2073f2();_0x298eff[_0x369195(0x170)]({'tag':_0x369195(0x178),'attributes':{'class':['ck',_0x369195(0x184)]},'children':[..._0x8f6681,{'tag':_0x369195(0x172),'attributes':{'class':[_0x369195(0x176)]},'children':[_0xad7f9d]}]}),this[_0x369195(0x181)][_0x369195(0x16f)](_0x298eff),this[_0x369195(0x189)]=_0xa8863c[_0x369195(0x189)];}}function _0x329f(){const _0x237b41=['add','setTemplate','2175LnMZyl','span','1204536cxGbFA','ck-ai-chat__feed__interaction-header','6TQsMHs','ck-ai-chat__feed__interaction-header__capabilities__text','content','div','ck-hidden','1569704Eowizf','5PFbmaW','AI_CHAT_FEED_REPLY_ITEM_USED_REASONING','push','44ReXNwM','extendTemplate','4415173xGtHWS','children','574660oHplRI','3765672viKgnD','ck-ai-chat__feed__interaction-header__capabilities','7472940WKbGfm','135qjhHdt','422qoirwr','AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH_REASONING','capabilities','AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH'];_0x329f=function(){return _0x237b41;};return _0x329f();}function _0x2c51(_0x52fc8d,_0x443af7){const _0x329f12=_0x329f();return _0x2c51=function(_0x2c51e0,_0xa766f){_0x2c51e0=_0x2c51e0-0x16f;let _0x14c117=_0x329f12[_0x2c51e0];return _0x14c117;},_0x2c51(_0x52fc8d,_0x443af7);}function ea(_0xcac95c){const _0x3f2ce7=_0x394807,_0x42d9af=new _0x5d4b67();return _0x42d9af[_0x3f2ce7(0x177)]=_0xcac95c,_0x42d9af;}