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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (317) hide show
  1. package/LICENSE.md +4 -0
  2. package/build/ai.js +1 -1
  3. package/dist/index-editor.css +54 -18
  4. package/dist/index.css +64 -19
  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.d.ts +0 -2
  155. package/src/aiactions/aiactions.js +1 -1
  156. package/src/aiactions/model/aiactionsinteraction.d.ts +1 -0
  157. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  158. package/src/aiactions/model/aiactionsreply.js +1 -1
  159. package/src/aiassistant/adapters/aiadapter.js +1 -1
  160. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  161. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  162. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  163. package/src/aiassistant/aiassistant.js +1 -1
  164. package/src/aiassistant/aiassistantediting.js +1 -1
  165. package/src/aiassistant/aiassistantui.js +1 -1
  166. package/src/aiassistant/legacyerrors.js +1 -1
  167. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  168. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  169. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  170. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  171. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  172. package/src/aiassistant/ui/form/aiformview.js +1 -1
  173. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  174. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  175. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  176. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  177. package/src/aiassistant/utils/common-translations.js +1 -1
  178. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  179. package/src/aiballoon/aiballoon.js +1 -1
  180. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  181. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  182. package/src/aiballoon/ui/aiballoonview.d.ts +3 -1
  183. package/src/aiballoon/ui/aiballoonview.js +1 -1
  184. package/src/aichat/aichat.js +1 -1
  185. package/src/aichat/aichatcontroller.js +1 -1
  186. package/src/aichat/aichatui.d.ts +7 -2
  187. package/src/aichat/aichatui.js +1 -1
  188. package/src/aichat/model/aichatcontext.js +1 -1
  189. package/src/aichat/model/aichatconversation.js +1 -1
  190. package/src/aichat/model/aichatinteraction.js +1 -1
  191. package/src/aichat/model/aichatmodels.js +1 -1
  192. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  193. package/src/aichat/ui/aichatfeedview.d.ts +4 -0
  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.d.ts +1 -0
  213. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  214. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  215. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  216. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.d.ts +8 -2
  217. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  218. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.d.ts +9 -0
  219. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  220. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  221. package/src/aichat/utils/eventnames.js +1 -1
  222. package/src/aichat/utils/promisequeue.js +1 -1
  223. package/src/aichat/utils/scrollmanager.js +1 -1
  224. package/src/aichathistory/aichathistory.js +1 -1
  225. package/src/aichathistory/aichathistorycontroller.js +1 -1
  226. package/src/aichathistory/aichathistoryui.js +1 -1
  227. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  228. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  229. package/src/aichathistory/ui/aichathistorylistitemview.js +1 -1
  230. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  231. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  232. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  233. package/src/aiconfig.d.ts +17 -0
  234. package/src/aicore/aiconnector.d.ts +13 -0
  235. package/src/aicore/aiconnector.js +1 -1
  236. package/src/aicore/aiediting.js +1 -1
  237. package/src/aicore/model/aicapabilities.js +1 -1
  238. package/src/aicore/model/aicontext.js +1 -1
  239. package/src/aicore/model/aiinteraction.d.ts +41 -1
  240. package/src/aicore/model/aiinteraction.js +1 -1
  241. package/src/aicore/model/aireply.d.ts +2 -2
  242. package/src/aicore/model/aireply.js +1 -1
  243. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  244. package/src/aicore/pipeline/airesponseparser.js +2 -2
  245. package/src/aicore/ui/aidisclaimerview.js +1 -1
  246. package/src/aicore/ui/aiskeleton.js +1 -1
  247. package/src/aicore/ui/aispinner.js +1 -1
  248. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  249. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  250. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.d.ts +16 -0
  251. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  252. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  253. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  254. package/src/aicore/utils/common-translations.js +1 -1
  255. package/src/aicore/utils/createresizebutton.js +1 -1
  256. package/src/aicore/utils/documentposition.js +1 -1
  257. package/src/aicore/utils/documentrange.js +1 -1
  258. package/src/aicore/utils/eventnames.js +1 -1
  259. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  260. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  261. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  262. package/src/aicore/utils/htmlparser.js +1 -1
  263. package/src/aicore/utils/htmlstreamer.js +1 -1
  264. package/src/aieditorintegration/aieditorintegration.js +1 -1
  265. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  266. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  267. package/src/aiquickactions/aiquickactions.js +1 -1
  268. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  269. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  270. package/src/aiquickactions/aiquickactionsui.js +1 -1
  271. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  272. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  273. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  274. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  275. package/src/aireviewmode/aireviewmode.js +1 -1
  276. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  277. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  278. package/src/aireviewmode/aireviewmodeui.js +1 -1
  279. package/src/aireviewmode/model/aireviewcheck.js +1 -1
  280. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  281. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  282. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  283. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  284. package/src/aireviewmode/model/aireviewcheckrun.d.ts +4 -0
  285. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  286. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  287. package/src/aireviewmode/model/aireviewmodels.js +1 -1
  288. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  289. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  290. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  291. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  292. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  293. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  294. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  295. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  296. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  297. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  298. package/src/aireviewmode/ui/form/aireviewmodeformamanager.js +1 -1
  299. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  300. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  301. package/src/aitabs/aitabs.js +1 -1
  302. package/src/aitabs/aitabsmainview.js +1 -1
  303. package/src/aitabs/tabs/aitabsview.js +1 -1
  304. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  305. package/src/aitabs/tabs/tabpanelview.js +1 -1
  306. package/src/index.d.ts +1 -1
  307. package/src/index.js +1 -1
  308. package/theme/aiballoon/aiballoon.css +17 -4
  309. package/theme/aichat/aichathistory.css +26 -9
  310. package/theme/aichat/aiminitoolbar.css +8 -0
  311. package/theme/aichat/aisuggestioncontainer.css +6 -0
  312. package/theme/aireviewmode/aireviewmode-check-run-result.css +3 -2
  313. package/theme/aitabs/aitabsview.css +6 -1
  314. package/theme/common/aibutton.css +0 -4
  315. package/theme/common/aiheader.css +1 -0
  316. package/src/aiquickactions/utils/common-translations.d.ts +0 -9
  317. package/src/aiquickactions/utils/common-translations.js +0 -23
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x4a19(_0x2e9255,_0x9f3ec2){const _0x4cac8c=_0x4cac();return _0x4a19=function(_0x4a1911,_0x19e462){_0x4a1911=_0x4a1911-0x1be;let _0x82545c=_0x4cac8c[_0x4a1911];return _0x82545c;},_0x4a19(_0x2e9255,_0x9f3ec2);}const _0x4957a4=_0x4a19;function _0x4cac(){const _0x33ca9a=['2862880zdGZHQ','set','313541YOPjud','AI_CHAT_STOP_GENERATING','_cancelButtonView','4ZfofIL','ck-ai-chat-controls-loader-icon','fire','div','ck-ai-chat-controls-loader-wrapper','521110NuzOIQ','20075968UPeYkc','3582162eqdhiK','ck-ai-chat-controls-loader-icon-dot','abortPromptStream','AI_CHAT_IS_WRITING','1035328PSWmUx','_loaderView','_createLoaderView','432612XZOiEj','ck-ai-chat-controls-loader','_createCancelButtonView','locale','setTemplate','execute','ai-chat-controls-loader__cancel-button','ck-reset_all'];_0x4cac=function(){return _0x33ca9a;};return _0x4cac();}(function(_0x358c25,_0x591df2){const _0x2ddf4f=_0x4a19,_0x4b8c48=_0x358c25();while(!![]){try{const _0x554e1f=parseInt(_0x2ddf4f(0x1be))/0x1*(-parseInt(_0x2ddf4f(0x1c1))/0x2)+-parseInt(_0x2ddf4f(0x1cf))/0x3+-parseInt(_0x2ddf4f(0x1d7))/0x4+parseInt(_0x2ddf4f(0x1c6))/0x5+-parseInt(_0x2ddf4f(0x1c8))/0x6+-parseInt(_0x2ddf4f(0x1cc))/0x7+parseInt(_0x2ddf4f(0x1c7))/0x8;if(_0x554e1f===_0x591df2)break;else _0x4b8c48['push'](_0x4b8c48['shift']());}catch(_0x415ece){_0x4b8c48['push'](_0x4b8c48['shift']());}}}(_0x4cac,0x5d355));import{ButtonView as _0x53411b,View as _0xe3c11b}from'ckeditor5/src/ui.js';import{IconStop as _0x369475}from'ckeditor5/src/icons.js';import{getTranslation as _0x2c233f}from'../../../aicore/utils/common-translations.js';export class AIChatControlsLoaderView extends _0xe3c11b{[_0x4957a4(0x1c0)];[_0x4957a4(0x1cd)];constructor(_0x557e20){const _0x5763cf=_0x4957a4;super(_0x557e20),this[_0x5763cf(0x1c0)]=this[_0x5763cf(0x1d1)](),this[_0x5763cf(0x1cd)]=this[_0x5763cf(0x1ce)](),this[_0x5763cf(0x1d3)]({'tag':_0x5763cf(0x1c4),'attributes':{'class':['ck',_0x5763cf(0x1c5),_0x5763cf(0x1d6)]},'children':[this[_0x5763cf(0x1cd)],this[_0x5763cf(0x1c0)]]});}[_0x4957a4(0x1d1)](){const _0x2706f8=_0x4957a4,_0x1f76a4=new _0x53411b(this[_0x2706f8(0x1d2)]);return _0x1f76a4[_0x2706f8(0x1d8)]({'label':_0x2c233f(this[_0x2706f8(0x1d2)],_0x2706f8(0x1bf)),'withText':!0x0,'class':_0x2706f8(0x1d5),'icon':_0x369475}),_0x1f76a4['on'](_0x2706f8(0x1d4),()=>{const _0x3ab2b1=_0x2706f8;this[_0x3ab2b1(0x1c3)](_0x3ab2b1(0x1ca));}),_0x1f76a4;}[_0x4957a4(0x1ce)](){const _0x13b39a=_0x4957a4,_0x41d611=new _0xe3c11b(this[_0x13b39a(0x1d2)]);return _0x41d611[_0x13b39a(0x1d3)]({'tag':_0x13b39a(0x1c4),'attributes':{'class':[_0x13b39a(0x1d0)]},'children':[{'tag':_0x13b39a(0x1c4),'attributes':{'class':[_0x13b39a(0x1c2)]},'children':[{'tag':_0x13b39a(0x1c4),'attributes':{'class':[_0x13b39a(0x1c9)]}},{'tag':_0x13b39a(0x1c4),'attributes':{'class':[_0x13b39a(0x1c9)]}},{'tag':_0x13b39a(0x1c4),'attributes':{'class':[_0x13b39a(0x1c9)]}}]},{'text':_0x2c233f(this[_0x13b39a(0x1d2)],_0x13b39a(0x1cb))}]}),_0x41d611;}}
23
+ const _0x4e0eeb=_0x29b3;function _0x29b3(_0x38e069,_0x4f1bc6){const _0x55e1fa=_0x55e1();return _0x29b3=function(_0x29b34b,_0x3e1f60){_0x29b34b=_0x29b34b-0x17e;let _0x4b222b=_0x55e1fa[_0x29b34b];return _0x4b222b;},_0x29b3(_0x38e069,_0x4f1bc6);}(function(_0x53e284,_0x305538){const _0x180da2=_0x29b3,_0x13c6a3=_0x53e284();while(!![]){try{const _0x2e74a4=parseInt(_0x180da2(0x193))/0x1*(parseInt(_0x180da2(0x188))/0x2)+parseInt(_0x180da2(0x195))/0x3+-parseInt(_0x180da2(0x18b))/0x4+-parseInt(_0x180da2(0x181))/0x5*(-parseInt(_0x180da2(0x17f))/0x6)+parseInt(_0x180da2(0x18a))/0x7*(-parseInt(_0x180da2(0x18f))/0x8)+-parseInt(_0x180da2(0x189))/0x9+parseInt(_0x180da2(0x191))/0xa;if(_0x2e74a4===_0x305538)break;else _0x13c6a3['push'](_0x13c6a3['shift']());}catch(_0x28b3b5){_0x13c6a3['push'](_0x13c6a3['shift']());}}}(_0x55e1,0x206dc));function _0x55e1(){const _0x533fd3=['_createLoaderView','80103Dwvujw','ck-ai-chat-controls-loader-wrapper','ai-chat-controls-loader__cancel-button','_cancelButtonView','ck-ai-chat-controls-loader','_createCancelButtonView','setTemplate','13272WiYQFG','AI_CHAT_IS_WRITING','25BDuvkh','ck-reset_all','AI_CHAT_STOP_GENERATING','locale','div','set','abortPromptStream','1446YVQhpZ','1127421ATczaW','17647WQWkIn','553032vtGkCD','ck-ai-chat-controls-loader-icon-dot','execute','ck-ai-chat-controls-loader-icon','88BwUaeO','_loaderView','3002880rPZKKB','fire','119fkxPcm'];_0x55e1=function(){return _0x533fd3;};return _0x55e1();}import{ButtonView as _0x1fefbb,View as _0x19d01e}from'ckeditor5/src/ui.js';import{IconStop as _0x224940}from'ckeditor5/src/icons.js';import{getTranslation as _0x20db71}from'../../../aicore/utils/common-translations.js';export class AIChatControlsLoaderView extends _0x19d01e{[_0x4e0eeb(0x198)];[_0x4e0eeb(0x190)];constructor(_0x29b556){const _0x57e868=_0x4e0eeb;super(_0x29b556),this[_0x57e868(0x198)]=this[_0x57e868(0x19a)](),this[_0x57e868(0x190)]=this[_0x57e868(0x194)](),this[_0x57e868(0x17e)]({'tag':_0x57e868(0x185),'attributes':{'class':['ck',_0x57e868(0x196),_0x57e868(0x182)]},'children':[this[_0x57e868(0x190)],this[_0x57e868(0x198)]]});}[_0x4e0eeb(0x19a)](){const _0x17abf3=_0x4e0eeb,_0x50f4a0=new _0x1fefbb(this[_0x17abf3(0x184)]);return _0x50f4a0[_0x17abf3(0x186)]({'label':_0x20db71(this[_0x17abf3(0x184)],_0x17abf3(0x183)),'withText':!0x0,'class':_0x17abf3(0x197),'icon':_0x224940}),_0x50f4a0['on'](_0x17abf3(0x18d),()=>{const _0x5d9f4e=_0x17abf3;this[_0x5d9f4e(0x192)](_0x5d9f4e(0x187));}),_0x50f4a0;}[_0x4e0eeb(0x194)](){const _0x6fdba8=_0x4e0eeb,_0x3b48ff=new _0x19d01e(this[_0x6fdba8(0x184)]);return _0x3b48ff[_0x6fdba8(0x17e)]({'tag':_0x6fdba8(0x185),'attributes':{'class':[_0x6fdba8(0x199)]},'children':[{'tag':_0x6fdba8(0x185),'attributes':{'class':[_0x6fdba8(0x18e)]},'children':[{'tag':_0x6fdba8(0x185),'attributes':{'class':[_0x6fdba8(0x18c)]}},{'tag':_0x6fdba8(0x185),'attributes':{'class':[_0x6fdba8(0x18c)]}},{'tag':_0x6fdba8(0x185),'attributes':{'class':[_0x6fdba8(0x18c)]}}]},{'text':_0x20db71(this[_0x6fdba8(0x184)],_0x6fdba8(0x180))}]}),_0x3b48ff;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x40cc(_0x23742b,_0x2f2dca){const _0x509e9d=_0x509e();return _0x40cc=function(_0x40ccbd,_0x7a149f){_0x40ccbd=_0x40ccbd-0x177;let _0x469290=_0x509e9d[_0x40ccbd];return _0x469290;},_0x40cc(_0x23742b,_0x2f2dca);}const _0x1111c2=_0x40cc;(function(_0x4d82b1,_0x5a1683){const _0x3dd99f=_0x40cc,_0x3d84a9=_0x4d82b1();while(!![]){try{const _0x3d5d64=-parseInt(_0x3dd99f(0x198))/0x1+parseInt(_0x3dd99f(0x1d9))/0x2*(-parseInt(_0x3dd99f(0x1c6))/0x3)+-parseInt(_0x3dd99f(0x180))/0x4*(parseInt(_0x3dd99f(0x19a))/0x5)+parseInt(_0x3dd99f(0x193))/0x6*(parseInt(_0x3dd99f(0x1d5))/0x7)+-parseInt(_0x3dd99f(0x17e))/0x8+-parseInt(_0x3dd99f(0x1a0))/0x9*(parseInt(_0x3dd99f(0x1b2))/0xa)+parseInt(_0x3dd99f(0x19f))/0xb;if(_0x3d5d64===_0x5a1683)break;else _0x3d84a9['push'](_0x3d84a9['shift']());}catch(_0x522590){_0x3d84a9['push'](_0x3d84a9['shift']());}}}(_0x509e,0xe6a54));import{Collection as _0x883430}from'ckeditor5/src/utils.js';function _0x509e(){const _0x84fb97=['AI_CHAT_REASONING','Commands\x20are\x20not\x20implemented\x20yet.','AI_CHAT_CAPABILITIES_NO','_modelSelectionDropdownItems','selectModel','73257QjAZvt','activeModelId','extendTemplate','AI_CHAT_ENABLE_REASONING','setTemplate','_createWebSearchButton','button','AI_CHAT_SEARCH_WEB','_getCapabilityParts','_createModelSelectionDropdown','clear','agent','_createCommandsButton','log','content','210NjdPbu','startsWith','addMany','AI_CHAT_COMMANDS','36AtzeJH','execute','model','style','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','AI_CHAT_CAPABILITIES_YES','modelSelectorEnabled','bind','enabled','3829280SZjQTq','ck-ai-chat-controls__model-selection__item-description','451172NimigW','ck-ai-chat-controls-button','ck-ai-chat-controls__model-name','setModelList','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','toggleWebSearch','_webSearchButton','reasoningActive','_modelSelectionDropdown','ck-ai-chat-controls__model-selection','setModel','ck-ai-chat-controls__model-selection__item-name','label','withText','tooltip','_reasoningButton','disableModelSelector','isOn','webSearch','182616UWREXi','AI_CHAT_DISABLE_REASONING','ck-button__label','name','add','1617800rSjtRd','locale','35IwyuWf','setReasoning','_modelNameView','span','ck-ai-chat-controls-button--commands','53181447GkalUK','15480tULQFM','ck-ai-chat__prompt-capabilities','buttonView','AI_CHAT_ENABLE_WEB_SEARCH','ck-hidden','enableModelSelector','AI_CHAT_DISABLE_WEB_SEARCH','fire','capabilities','ck-ai-chat-controls__model-selection__item-capabilities','toggleReasoning','isVisible','description','length','isEnabled','setWebSearch','createCollection','source','8590XOtJUF','menuitemradio','bindTemplate','set','webSearchActive','_commandsButton','activeModelName','toLowerCase','_createReasoningButton','modelSelectorVisible','listenTo','reasoning','div','_createModelNameView','text'];_0x509e=function(){return _0x84fb97;};return _0x509e();}import{IconAI as _0x2d6ca0,IconBulb as _0x400141,IconWeb as _0x525144}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x3b0384,ButtonLabelView as _0x3f9da0,ButtonView as _0x10504d,createDropdown as _0x4f3a0a,IconView as _0x451074,UIModel as _0x25f688,View as _0x30d71b}from'ckeditor5/src/ui.js';import{getTranslation as _0x4b6f02}from'../../../aicore/utils/common-translations.js';const Ho=_0x1111c2(0x1a1),Vo=_0x1111c2(0x181),Mo=_0x1111c2(0x19e),Lo=_0x1111c2(0x189),Do=_0x1111c2(0x18b),Wo=_0x1111c2(0x17f),yo=_0x1111c2(0x1a9),Go='n';export class AIChatPromptCapabilitiesView extends _0x30d71b{[_0x1111c2(0x186)];[_0x1111c2(0x18f)];[_0x1111c2(0x1b7)];[_0x1111c2(0x188)];[_0x1111c2(0x1c4)];[_0x1111c2(0x19c)];constructor(_0x5d5d48){const _0x5d989a=_0x1111c2;super(_0x5d5d48),this[_0x5d989a(0x1b5)](_0x5d989a(0x1b6),!0x1),this[_0x5d989a(0x1b5)](_0x5d989a(0x187),!0x1),this[_0x5d989a(0x1b5)](_0x5d989a(0x1bb),!0x0),this[_0x5d989a(0x1b5)](_0x5d989a(0x17b),!0x0),this[_0x5d989a(0x1b5)](_0x5d989a(0x1c7),''),this[_0x5d989a(0x1b5)](_0x5d989a(0x1b8),''),this[_0x5d989a(0x188)]=this[_0x5d989a(0x1cf)](),this[_0x5d989a(0x19c)]=this[_0x5d989a(0x1bf)](),this[_0x5d989a(0x186)]=this[_0x5d989a(0x1cb)](),this[_0x5d989a(0x18f)]=this[_0x5d989a(0x1ba)](),this[_0x5d989a(0x1b7)]=this[_0x5d989a(0x1d2)](),this[_0x5d989a(0x188)][_0x5d989a(0x1a2)][_0x5d989a(0x17c)](_0x5d989a(0x1ab))['to'](this,_0x5d989a(0x1bb),_0x1c5da8=>_0x1c5da8),this[_0x5d989a(0x188)][_0x5d989a(0x1a2)][_0x5d989a(0x17c)](_0x5d989a(0x18e))['to'](this,_0x5d989a(0x17b),_0x351bea=>_0x351bea?this[_0x5d989a(0x188)][_0x5d989a(0x1a2)][_0x5d989a(0x18c)]:_0x4b6f02(this[_0x5d989a(0x199)],_0x5d989a(0x179))),this[_0x5d989a(0x188)][_0x5d989a(0x17c)](_0x5d989a(0x1ae))['to'](this,_0x5d989a(0x17b),_0x5522e0=>_0x5522e0),this[_0x5d989a(0x186)][_0x5d989a(0x17c)](_0x5d989a(0x191))['to'](this,_0x5d989a(0x1b6),_0x2ba8e0=>_0x2ba8e0),this[_0x5d989a(0x186)][_0x5d989a(0x17c)](_0x5d989a(0x18d))['to'](this,_0x5d989a(0x1bb),_0x4a2bb5=>!_0x4a2bb5),this[_0x5d989a(0x186)][_0x5d989a(0x17c)](_0x5d989a(0x18e))['to'](this,_0x5d989a(0x1b6),_0x15ba49=>_0x4b6f02(this[_0x5d989a(0x199)],_0x15ba49?_0x5d989a(0x1a6):_0x5d989a(0x1a3))),this[_0x5d989a(0x18f)][_0x5d989a(0x17c)](_0x5d989a(0x191))['to'](this,_0x5d989a(0x187),_0x1ffe3c=>_0x1ffe3c),this[_0x5d989a(0x18f)][_0x5d989a(0x17c)](_0x5d989a(0x18d))['to'](this,_0x5d989a(0x1bb),_0x123216=>!_0x123216),this[_0x5d989a(0x18f)][_0x5d989a(0x17c)](_0x5d989a(0x18e))['to'](this,_0x5d989a(0x187),_0x47ed1d=>_0x4b6f02(this[_0x5d989a(0x199)],_0x47ed1d?_0x5d989a(0x194):_0x5d989a(0x1c9))),this[_0x5d989a(0x1ca)]({'tag':_0x5d989a(0x1be),'attributes':{'class':[Ho]},'children':[this[_0x5d989a(0x188)],this[_0x5d989a(0x19c)],this[_0x5d989a(0x186)],this[_0x5d989a(0x18f)],this[_0x5d989a(0x1b7)]]}),this[_0x5d989a(0x1c4)]=new _0x883430(),_0x3b0384(this[_0x5d989a(0x188)],this[_0x5d989a(0x1c4)]);}[_0x1111c2(0x183)](_0x4a489a,_0x46d82f){const _0x3b8109=_0x1111c2;if(this[_0x3b8109(0x1b5)](_0x3b8109(0x1bb),!(_0x46d82f&&_0x4a489a[_0x3b8109(0x1ad)]<=0x1)),this[_0x3b8109(0x1c4)][_0x3b8109(0x1d0)](),_0x4a489a?.[_0x3b8109(0x1ad)])for(const _0x579b99 of _0x4a489a){const _0x243872=new _0x25f688({'label':_0x579b99[_0x3b8109(0x196)],'withText':!0x0,'role':_0x3b8109(0x1b3),'id':_0x579b99['id'],'model':_0x579b99});_0x243872[_0x3b8109(0x17c)](_0x3b8109(0x191))['to'](this,_0x3b8109(0x1c7),_0x2b8b38=>_0x2b8b38===_0x579b99['id']),this[_0x3b8109(0x1c4)][_0x3b8109(0x197)]({'type':_0x3b8109(0x1cc),'model':_0x243872,'labelView':new Ms(this[_0x3b8109(0x199)],_0x579b99)});}}[_0x1111c2(0x1af)](_0x5daa4e){const _0x5e072b=_0x1111c2;this[_0x5e072b(0x1b5)](_0x5e072b(0x1b6),_0x5daa4e);}[_0x1111c2(0x19b)](_0x1d7cd3){const _0x1f771f=_0x1111c2;this[_0x1f771f(0x1b5)](_0x1f771f(0x187),_0x1d7cd3);}[_0x1111c2(0x18a)](_0x19b9b5){const _0x4377f3=_0x1111c2;if(!_0x19b9b5)return;this[_0x4377f3(0x1c7)]=_0x19b9b5['id'],this[_0x4377f3(0x1b8)]=_0x19b9b5[_0x4377f3(0x196)]||_0x19b9b5['id'],this[_0x4377f3(0x188)][_0x4377f3(0x1a2)][_0x4377f3(0x1b5)](_0x4377f3(0x18c),_0x19b9b5[_0x4377f3(0x196)]),this[_0x4377f3(0x188)][_0x4377f3(0x1a2)][_0x4377f3(0x1b5)](_0x4377f3(0x18e),_0x19b9b5[_0x4377f3(0x196)]);const _0x511f06=_0x19b9b5[_0x4377f3(0x1a8)][_0x4377f3(0x192)]?.[_0x4377f3(0x17d)]??!0x1;this[_0x4377f3(0x1b5)](_0x4377f3(0x1b6),!0x1),this[_0x4377f3(0x186)][_0x4377f3(0x1b5)](_0x4377f3(0x191),!0x1),this[_0x4377f3(0x186)][_0x4377f3(0x1b5)](_0x4377f3(0x1ae),_0x511f06),this[_0x4377f3(0x186)][_0x4377f3(0x1b5)](_0x4377f3(0x1ab),_0x511f06);const _0x52c885=_0x19b9b5[_0x4377f3(0x1a8)][_0x4377f3(0x1bd)]?.[_0x4377f3(0x17d)]??!0x1;this[_0x4377f3(0x1b5)](_0x4377f3(0x187),!0x1),this[_0x4377f3(0x18f)][_0x4377f3(0x1b5)](_0x4377f3(0x191),!0x1),this[_0x4377f3(0x18f)][_0x4377f3(0x1b5)](_0x4377f3(0x1ae),_0x52c885),this[_0x4377f3(0x18f)][_0x4377f3(0x1b5)](_0x4377f3(0x1ab),_0x52c885);}[_0x1111c2(0x1a5)](){const _0x5debdd=_0x1111c2;this[_0x5debdd(0x1b5)](_0x5debdd(0x17b),!0x0),this[_0x5debdd(0x1b5)](_0x5debdd(0x1bb),!0x0);}[_0x1111c2(0x190)](_0x4a3f09){const _0x46877a=_0x1111c2;this[_0x46877a(0x1b5)](_0x46877a(0x17b),!0x1),_0x4a3f09&&this[_0x46877a(0x1b5)](_0x46877a(0x1bb),!0x1);}[_0x1111c2(0x1cb)](){const _0x4aa650=_0x1111c2,_0x37607e=new _0x10504d();return _0x37607e[_0x4aa650(0x1b5)]({'label':_0x4b6f02(this[_0x4aa650(0x199)],_0x4aa650(0x1cd)),'icon':_0x525144,'class':Vo,'isToggleable':!0x0,'tooltipPosition':Go}),_0x37607e['on'](_0x4aa650(0x1da),()=>{const _0x235146=_0x4aa650;this[_0x235146(0x1a7)](_0x235146(0x185));}),_0x37607e;}[_0x1111c2(0x1ba)](){const _0x40948a=_0x1111c2,_0x4225f1=new _0x10504d();return _0x4225f1[_0x40948a(0x1b5)]({'label':_0x4b6f02(this[_0x40948a(0x199)],_0x40948a(0x1c1)),'icon':_0x400141,'class':Vo,'isToggleable':!0x0,'tooltipPosition':Go}),_0x4225f1['on'](_0x40948a(0x1da),()=>{const _0x3e8302=_0x40948a;this[_0x3e8302(0x1a7)](_0x3e8302(0x1aa));}),_0x4225f1;}[_0x1111c2(0x1d2)](){const _0x87fbc4=_0x1111c2,_0x5536e4=new _0x10504d();return _0x5536e4[_0x87fbc4(0x1b5)]({'label':_0x4b6f02(this[_0x87fbc4(0x199)],_0x87fbc4(0x1d8)),'icon':_0x2d6ca0,'withText':!0x0,'class':Vo,'isToggleable':!0x0,'tooltip':_0x4b6f02(this[_0x87fbc4(0x199)],_0x87fbc4(0x1d8)),'tooltipPosition':Go}),_0x5536e4[_0x87fbc4(0x1c8)]({'attributes':{'class':[Mo]}}),_0x5536e4['on'](_0x87fbc4(0x1da),()=>{const _0x1aa3fc=_0x87fbc4;console[_0x1aa3fc(0x1d3)](_0x1aa3fc(0x1c2)),alert(_0x1aa3fc(0x1c2));}),_0x5536e4;}[_0x1111c2(0x1cf)](){const _0x2658b9=_0x1111c2,_0x3f8191=_0x4f3a0a(this[_0x2658b9(0x199)]);return _0x3f8191[_0x2658b9(0x1b5)]({'panelPosition':'ne','class':[Lo]}),_0x3f8191[_0x2658b9(0x1a2)][_0x2658b9(0x1b5)]({'label':_0x4b6f02(this[_0x2658b9(0x199)],_0x2658b9(0x184)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':Go}),this[_0x2658b9(0x1bc)](_0x3f8191,_0x2658b9(0x1da),_0x573d12=>{const _0x2d5c11=_0x2658b9;this[_0x2d5c11(0x1a7)](_0x2d5c11(0x1c5),_0x573d12[_0x2d5c11(0x1b1)][_0x2d5c11(0x177)]);}),_0x3f8191;}[_0x1111c2(0x1bf)](){const _0x5b5d3b=_0x1111c2,_0xebf275=new jo(this[_0x5b5d3b(0x199)]);return _0xebf275[_0x5b5d3b(0x17c)](_0x5b5d3b(0x1c0))['to'](this,_0x5b5d3b(0x1b8),_0xd823f2=>_0xd823f2??''),_0xebf275[_0x5b5d3b(0x17c)](_0x5b5d3b(0x1ab))['to'](this,_0x5b5d3b(0x1bb),this,_0x5b5d3b(0x1b8),(_0x5e42f1,_0x54b0ee)=>!_0x5e42f1&&!_0x54b0ee?.[_0x5b5d3b(0x1b9)]()[_0x5b5d3b(0x1d6)](_0x5b5d3b(0x1d1))),_0xebf275;}}class Ms extends _0x3f9da0{constructor(_0x51331d,_0x4a3aa5){const _0x4f209d=_0x1111c2;super();const _0x250e04=this[_0x4f209d(0x1b4)],_0x3c20d8=this[_0x4f209d(0x1b0)]();this[_0x4f209d(0x1ca)]({'tag':_0x4f209d(0x1be),'attributes':{'class':['ck',_0x4f209d(0x195)],'style':_0x250e04['to'](_0x4f209d(0x178)),'id':_0x250e04['to']('id')},'children':[{'tag':_0x4f209d(0x1be),'attributes':{'class':[Do]},'children':[{'text':_0x250e04['to'](_0x4f209d(0x1c0))}]},{'tag':_0x4f209d(0x1be),'attributes':{'class':[Wo]},'children':[{'tag':_0x4f209d(0x19d),'children':[{'text':_0x4a3aa5[_0x4f209d(0x1ac)]}]}]},{'tag':_0x4f209d(0x1be),'attributes':{'class':[yo]},'children':_0x3c20d8}]}),_0x3c20d8[_0x4f209d(0x1d7)](this[_0x4f209d(0x1ce)](_0x51331d,_0x525144,_0x4f209d(0x1cd),_0x4a3aa5[_0x4f209d(0x1a8)][_0x4f209d(0x192)]?.[_0x4f209d(0x17d)]??!0x1)),_0x3c20d8[_0x4f209d(0x1d7)](this[_0x4f209d(0x1ce)](_0x51331d,_0x400141,_0x4f209d(0x1c1),_0x4a3aa5[_0x4f209d(0x1a8)][_0x4f209d(0x1bd)]?.[_0x4f209d(0x17d)]??!0x1));}[_0x1111c2(0x1ce)](_0x4daf03,_0x1a29b1,_0x125081,_0x1a1d77){const _0x565e6d=_0x1111c2,_0x21a5a8=new _0x451074();_0x21a5a8[_0x565e6d(0x1d4)]=_0x1a29b1;const _0x81476d=new _0x30d71b(_0x4daf03);_0x81476d[_0x565e6d(0x1ca)]({'tag':_0x565e6d(0x19d),'children':[{'text':_0x4b6f02(_0x4daf03,_0x125081)+':\x20'}]});const _0x4daed9=new _0x30d71b(_0x4daf03);return _0x4daed9[_0x565e6d(0x1ca)]({'tag':_0x565e6d(0x19d),'children':[{'text':_0x4b6f02(_0x4daf03,_0x1a1d77?_0x565e6d(0x17a):_0x565e6d(0x1c3))}]}),[_0x21a5a8,_0x81476d,_0x4daed9];}}class jo extends _0x30d71b{constructor(_0x30ab7e){const _0x2fed04=_0x1111c2;super(_0x30ab7e),this[_0x2fed04(0x1b5)](_0x2fed04(0x1c0),void 0x0),this[_0x2fed04(0x1b5)](_0x2fed04(0x1ab),!0x0);const _0x133b4c=this[_0x2fed04(0x1b4)];this[_0x2fed04(0x1ca)]({'tag':_0x2fed04(0x19d),'attributes':{'class':['ck',_0x2fed04(0x182),_0x133b4c['if'](_0x2fed04(0x1ab),_0x2fed04(0x1a4),_0x214214=>!_0x214214)]},'children':[{'text':_0x133b4c['to'](_0x2fed04(0x1c0))}]});}}
23
+ const _0x1fe7e6=_0x1b02;(function(_0x25fa7d,_0x297d6c){const _0x1df810=_0x1b02,_0x19eff4=_0x25fa7d();while(!![]){try{const _0xc9c0aa=-parseInt(_0x1df810(0x82))/0x1*(parseInt(_0x1df810(0xb8))/0x2)+parseInt(_0x1df810(0x7d))/0x3+-parseInt(_0x1df810(0x83))/0x4*(-parseInt(_0x1df810(0xd0))/0x5)+parseInt(_0x1df810(0x81))/0x6+-parseInt(_0x1df810(0x9a))/0x7+-parseInt(_0x1df810(0xbc))/0x8+parseInt(_0x1df810(0xd7))/0x9*(parseInt(_0x1df810(0xa3))/0xa);if(_0xc9c0aa===_0x297d6c)break;else _0x19eff4['push'](_0x19eff4['shift']());}catch(_0x34063c){_0x19eff4['push'](_0x19eff4['shift']());}}}(_0xa7b1,0x34521));import{Collection as _0x39200a}from'ckeditor5/src/utils.js';function _0x1b02(_0x55d376,_0x3eb874){const _0xa7b1e9=_0xa7b1();return _0x1b02=function(_0x1b02b6,_0x176528){_0x1b02b6=_0x1b02b6-0x7d;let _0xc8095=_0xa7b1e9[_0x1b02b6];return _0xc8095;},_0x1b02(_0x55d376,_0x3eb874);}import{IconAI as _0x414731,IconBulb as _0x377355,IconWeb as _0x10403c}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x3828b8,ButtonLabelView as _0x2346e7,ButtonView as _0x545412,createDropdown as _0x49dc79,IconView as _0x2c5a69,UIModel as _0x5dbdd5,View as _0xc952b3}from'ckeditor5/src/ui.js';import{getTranslation as _0x43bdd8}from'../../../aicore/utils/common-translations.js';const Oo=_0x1fe7e6(0xcb),uo=_0x1fe7e6(0xa4),No=_0x1fe7e6(0xc4),Ho=_0x1fe7e6(0x7f),Mo=_0x1fe7e6(0xd2),Do=_0x1fe7e6(0x95),Wo=_0x1fe7e6(0xc0),yo='n';export class AIChatPromptCapabilitiesView extends _0xc952b3{[_0x1fe7e6(0xae)];[_0x1fe7e6(0x9b)];[_0x1fe7e6(0xc6)];[_0x1fe7e6(0x90)];[_0x1fe7e6(0xa8)];[_0x1fe7e6(0xb9)];constructor(_0x394ed3){const _0x8e9002=_0x1fe7e6;super(_0x394ed3),this[_0x8e9002(0x9d)](_0x8e9002(0xb0),!0x1),this[_0x8e9002(0x9d)](_0x8e9002(0x93),!0x1),this[_0x8e9002(0x9d)](_0x8e9002(0xcc),!0x0),this[_0x8e9002(0x9d)](_0x8e9002(0xa2),!0x0),this[_0x8e9002(0x9d)](_0x8e9002(0xb5),''),this[_0x8e9002(0x9d)](_0x8e9002(0x9c),''),this[_0x8e9002(0x90)]=this[_0x8e9002(0xc8)](),this[_0x8e9002(0xb9)]=this[_0x8e9002(0x89)](),this[_0x8e9002(0xae)]=this[_0x8e9002(0xac)](),this[_0x8e9002(0x9b)]=this[_0x8e9002(0xdb)](),this[_0x8e9002(0xc6)]=this[_0x8e9002(0x9f)](),this[_0x8e9002(0x90)][_0x8e9002(0xdf)][_0x8e9002(0xb6)](_0x8e9002(0xb4))['to'](this,_0x8e9002(0xcc),_0x47724e=>_0x47724e),this[_0x8e9002(0x90)][_0x8e9002(0xdf)][_0x8e9002(0xb6)](_0x8e9002(0xc3))['to'](this,_0x8e9002(0xa2),_0x156e45=>_0x156e45?this[_0x8e9002(0x90)][_0x8e9002(0xdf)][_0x8e9002(0x97)]:_0x43bdd8(this[_0x8e9002(0xaa)],_0x8e9002(0x87))),this[_0x8e9002(0x90)][_0x8e9002(0xb6)](_0x8e9002(0xc1))['to'](this,_0x8e9002(0xa2),_0x50d562=>_0x50d562),this[_0x8e9002(0xae)][_0x8e9002(0xb6)](_0x8e9002(0xa7))['to'](this,_0x8e9002(0xb0),_0x3efccf=>_0x3efccf),this[_0x8e9002(0xae)][_0x8e9002(0xb6)](_0x8e9002(0xc7))['to'](this,_0x8e9002(0xcc),_0x6e91d8=>!_0x6e91d8),this[_0x8e9002(0xae)][_0x8e9002(0xb6)](_0x8e9002(0xc3))['to'](this,_0x8e9002(0xb0),_0x3a31d4=>_0x43bdd8(this[_0x8e9002(0xaa)],_0x3a31d4?_0x8e9002(0x8e):_0x8e9002(0xc5))),this[_0x8e9002(0x9b)][_0x8e9002(0xb6)](_0x8e9002(0xa7))['to'](this,_0x8e9002(0x93),_0x563e5f=>_0x563e5f),this[_0x8e9002(0x9b)][_0x8e9002(0xb6)](_0x8e9002(0xc7))['to'](this,_0x8e9002(0xcc),_0x487512=>!_0x487512),this[_0x8e9002(0x9b)][_0x8e9002(0xb6)](_0x8e9002(0xc3))['to'](this,_0x8e9002(0x93),_0x40948f=>_0x43bdd8(this[_0x8e9002(0xaa)],_0x40948f?_0x8e9002(0xab):_0x8e9002(0x84))),this[_0x8e9002(0xde)]({'tag':_0x8e9002(0x86),'attributes':{'class':[Oo]},'children':[this[_0x8e9002(0x90)],this[_0x8e9002(0xb9)],this[_0x8e9002(0xae)],this[_0x8e9002(0x9b)],this[_0x8e9002(0xc6)]]}),this[_0x8e9002(0xa8)]=new _0x39200a(),_0x3828b8(this[_0x8e9002(0x90)],this[_0x8e9002(0xa8)]);}[_0x1fe7e6(0x85)](_0x204187,_0x21cb47){const _0x402820=_0x1fe7e6;if(this[_0x402820(0x9d)](_0x402820(0xcc),!(_0x21cb47&&_0x204187[_0x402820(0x94)]<=0x1)),this[_0x402820(0xa8)][_0x402820(0xb3)](),_0x204187?.[_0x402820(0x94)])for(const _0x3cee85 of _0x204187){const _0x496a51=new _0x5dbdd5({'label':_0x3cee85[_0x402820(0x8b)],'withText':!0x0,'role':_0x402820(0xc2),'id':_0x3cee85['id'],'model':_0x3cee85});_0x496a51[_0x402820(0xb6)](_0x402820(0xa7))['to'](this,_0x402820(0xb5),_0x594423=>_0x594423===_0x3cee85['id']),this[_0x402820(0xa8)][_0x402820(0xd9)]({'type':_0x402820(0xda),'model':_0x496a51,'labelView':new Bs(this[_0x402820(0xaa)],_0x3cee85)});}}[_0x1fe7e6(0xa1)](_0xdb2ff1){const _0x2c2870=_0x1fe7e6;this[_0x2c2870(0x9d)](_0x2c2870(0xb0),_0xdb2ff1);}[_0x1fe7e6(0xcf)](_0x3d821b){const _0x1e2140=_0x1fe7e6;this[_0x1e2140(0x9d)](_0x1e2140(0x93),_0x3d821b);}[_0x1fe7e6(0x9e)](_0x36b4bf){const _0x30e938=_0x1fe7e6;if(!_0x36b4bf)return;this[_0x30e938(0xb5)]=_0x36b4bf['id'],this[_0x30e938(0x9c)]=_0x36b4bf[_0x30e938(0x8b)]||_0x36b4bf['id'],this[_0x30e938(0x90)][_0x30e938(0xdf)][_0x30e938(0x9d)](_0x30e938(0x97),_0x36b4bf[_0x30e938(0x8b)]),this[_0x30e938(0x90)][_0x30e938(0xdf)][_0x30e938(0x9d)](_0x30e938(0xc3),_0x36b4bf[_0x30e938(0x8b)]);const _0x41b165=_0x36b4bf[_0x30e938(0xad)][_0x30e938(0xd5)]?.[_0x30e938(0x91)]??!0x1;this[_0x30e938(0x9d)](_0x30e938(0xb0),!0x1),this[_0x30e938(0xae)][_0x30e938(0x9d)](_0x30e938(0xa7),!0x1),this[_0x30e938(0xae)][_0x30e938(0x9d)](_0x30e938(0xc1),_0x41b165),this[_0x30e938(0xae)][_0x30e938(0x9d)](_0x30e938(0xb4),_0x41b165);const _0x276daf=_0x36b4bf[_0x30e938(0xad)][_0x30e938(0x8a)]?.[_0x30e938(0x91)]??!0x1;this[_0x30e938(0x9d)](_0x30e938(0x93),!0x1),this[_0x30e938(0x9b)][_0x30e938(0x9d)](_0x30e938(0xa7),!0x1),this[_0x30e938(0x9b)][_0x30e938(0x9d)](_0x30e938(0xc1),_0x276daf),this[_0x30e938(0x9b)][_0x30e938(0x9d)](_0x30e938(0xb4),_0x276daf);}[_0x1fe7e6(0xd1)](){const _0x5d3b6d=_0x1fe7e6;this[_0x5d3b6d(0x9d)](_0x5d3b6d(0xa2),!0x0),this[_0x5d3b6d(0x9d)](_0x5d3b6d(0xcc),!0x0);}[_0x1fe7e6(0xdd)](_0x58f6ae){const _0x534eaf=_0x1fe7e6;this[_0x534eaf(0x9d)](_0x534eaf(0xa2),!0x1),_0x58f6ae&&this[_0x534eaf(0x9d)](_0x534eaf(0xcc),!0x1);}[_0x1fe7e6(0xac)](){const _0x45ba1e=_0x1fe7e6,_0x70f5d7=new _0x545412();return _0x70f5d7[_0x45ba1e(0x9d)]({'label':_0x43bdd8(this[_0x45ba1e(0xaa)],_0x45ba1e(0x8c)),'icon':_0x10403c,'class':uo,'isToggleable':!0x0,'tooltipPosition':yo}),_0x70f5d7['on'](_0x45ba1e(0xd6),()=>{const _0x26bfb3=_0x45ba1e;this[_0x26bfb3(0xce)](_0x26bfb3(0x8f));}),_0x70f5d7;}[_0x1fe7e6(0xdb)](){const _0x2f3168=_0x1fe7e6,_0x49a830=new _0x545412();return _0x49a830[_0x2f3168(0x9d)]({'label':_0x43bdd8(this[_0x2f3168(0xaa)],_0x2f3168(0xb2)),'icon':_0x377355,'class':uo,'isToggleable':!0x0,'tooltipPosition':yo}),_0x49a830['on'](_0x2f3168(0xd6),()=>{const _0x5882b4=_0x2f3168;this[_0x5882b4(0xce)](_0x5882b4(0xd4));}),_0x49a830;}[_0x1fe7e6(0x9f)](){const _0x1ebb17=_0x1fe7e6,_0x5f48cb=new _0x545412();return _0x5f48cb[_0x1ebb17(0x9d)]({'label':_0x43bdd8(this[_0x1ebb17(0xaa)],_0x1ebb17(0x99)),'icon':_0x414731,'withText':!0x0,'class':uo,'isToggleable':!0x0,'tooltip':_0x43bdd8(this[_0x1ebb17(0xaa)],_0x1ebb17(0x99)),'tooltipPosition':yo}),_0x5f48cb[_0x1ebb17(0xdc)]({'attributes':{'class':[No]}}),_0x5f48cb['on'](_0x1ebb17(0xd6),()=>{const _0x3c6650=_0x1ebb17;console[_0x3c6650(0xbf)](_0x3c6650(0xa0)),alert(_0x3c6650(0xa0));}),_0x5f48cb;}[_0x1fe7e6(0xc8)](){const _0x3d6dba=_0x1fe7e6,_0xf81452=_0x49dc79(this[_0x3d6dba(0xaa)]);return _0xf81452[_0x3d6dba(0x9d)]({'panelPosition':'ne','class':[Ho]}),_0xf81452[_0x3d6dba(0xdf)][_0x3d6dba(0x9d)]({'label':_0x43bdd8(this[_0x3d6dba(0xaa)],_0x3d6dba(0xc9)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':yo}),this[_0x3d6dba(0xbe)](_0xf81452,_0x3d6dba(0xd6),_0x5bd199=>{const _0x462369=_0x3d6dba;this[_0x462369(0xce)](_0x462369(0xbb),_0x5bd199[_0x462369(0xaf)][_0x462369(0xb1)]);}),_0xf81452;}[_0x1fe7e6(0x89)](){const _0x2ecb87=_0x1fe7e6,_0x10be36=new Go(this[_0x2ecb87(0xaa)]);return _0x10be36[_0x2ecb87(0xb6)](_0x2ecb87(0xbd))['to'](this,_0x2ecb87(0x9c),_0x4fb0d0=>_0x4fb0d0??''),_0x10be36[_0x2ecb87(0xb6)](_0x2ecb87(0xb4))['to'](this,_0x2ecb87(0xcc),this,_0x2ecb87(0x9c),(_0x1a2d53,_0x22727b)=>!_0x1a2d53&&!_0x22727b?.[_0x2ecb87(0x7e)]()[_0x2ecb87(0xcd)](_0x2ecb87(0x98))),_0x10be36;}}class Bs extends _0x2346e7{constructor(_0x301d97,_0x450aec){const _0x378839=_0x1fe7e6;super();const _0x54ffbc=this[_0x378839(0xca)],_0x15f396=this[_0x378839(0xd8)]();this[_0x378839(0xde)]({'tag':_0x378839(0x86),'attributes':{'class':['ck',_0x378839(0x80)],'style':_0x54ffbc['to'](_0x378839(0xba)),'id':_0x54ffbc['to']('id')},'children':[{'tag':_0x378839(0x86),'attributes':{'class':[Mo]},'children':[{'text':_0x54ffbc['to'](_0x378839(0xbd))}]},{'tag':_0x378839(0x86),'attributes':{'class':[Do]},'children':[{'tag':_0x378839(0x96),'children':[{'text':_0x450aec[_0x378839(0xa9)]}]}]},{'tag':_0x378839(0x86),'attributes':{'class':[Wo]},'children':_0x15f396}]}),_0x15f396[_0x378839(0xa5)](this[_0x378839(0x8d)](_0x301d97,_0x10403c,_0x378839(0x8c),_0x450aec[_0x378839(0xad)][_0x378839(0xd5)]?.[_0x378839(0x91)]??!0x1)),_0x15f396[_0x378839(0xa5)](this[_0x378839(0x8d)](_0x301d97,_0x377355,_0x378839(0xb2),_0x450aec[_0x378839(0xad)][_0x378839(0x8a)]?.[_0x378839(0x91)]??!0x1));}[_0x1fe7e6(0x8d)](_0x5aa2bb,_0x2c87b8,_0x490d09,_0x372f12){const _0x26607f=_0x1fe7e6,_0x427bd8=new _0x2c5a69();_0x427bd8[_0x26607f(0x88)]=_0x2c87b8;const _0x179372=new _0xc952b3(_0x5aa2bb);_0x179372[_0x26607f(0xde)]({'tag':_0x26607f(0x96),'children':[{'text':_0x43bdd8(_0x5aa2bb,_0x490d09)+':\x20'}]});const _0x56f622=new _0xc952b3(_0x5aa2bb);return _0x56f622[_0x26607f(0xde)]({'tag':_0x26607f(0x96),'children':[{'text':_0x43bdd8(_0x5aa2bb,_0x372f12?_0x26607f(0xb7):_0x26607f(0xa6))}]}),[_0x427bd8,_0x179372,_0x56f622];}}class Go extends _0xc952b3{constructor(_0x14454d){const _0x13d847=_0x1fe7e6;super(_0x14454d),this[_0x13d847(0x9d)](_0x13d847(0xbd),void 0x0),this[_0x13d847(0x9d)](_0x13d847(0xb4),!0x0);const _0xb70222=this[_0x13d847(0xca)];this[_0x13d847(0xde)]({'tag':_0x13d847(0x96),'attributes':{'class':['ck',_0x13d847(0xd3),_0xb70222['if'](_0x13d847(0xb4),_0x13d847(0x92),_0x1b27f8=>!_0x1b27f8)]},'children':[{'text':_0xb70222['to'](_0x13d847(0xbd))}]});}}function _0xa7b1(){const _0x42b66c=['18BXdGQT','createCollection','add','button','_createReasoningButton','extendTemplate','disableModelSelector','setTemplate','buttonView','661938ccdBhj','toLowerCase','ck-ai-chat-controls__model-selection','ck-button__label','703626OQXvkt','69NqyAvJ','4wwiDWN','AI_CHAT_ENABLE_REASONING','setModelList','div','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','content','_createModelNameView','reasoning','name','AI_CHAT_SEARCH_WEB','_getCapabilityParts','AI_CHAT_DISABLE_WEB_SEARCH','toggleWebSearch','_modelSelectionDropdown','enabled','ck-hidden','reasoningActive','length','ck-ai-chat-controls__model-selection__item-description','span','label','agent','AI_CHAT_COMMANDS','2466366bintkN','_reasoningButton','activeModelName','set','setModel','_createCommandsButton','Commands\x20are\x20not\x20implemented\x20yet.','setWebSearch','modelSelectorEnabled','3455770OVVyPj','ck-ai-chat-controls-button','addMany','AI_CHAT_CAPABILITIES_NO','isOn','_modelSelectionDropdownItems','description','locale','AI_CHAT_DISABLE_REASONING','_createWebSearchButton','capabilities','_webSearchButton','source','webSearchActive','model','AI_CHAT_REASONING','clear','isVisible','activeModelId','bind','AI_CHAT_CAPABILITIES_YES','12386EyNRIf','_modelNameView','style','selectModel','2496064SmlgXQ','text','listenTo','log','ck-ai-chat-controls__model-selection__item-capabilities','isEnabled','menuitemradio','tooltip','ck-ai-chat-controls-button--commands','AI_CHAT_ENABLE_WEB_SEARCH','_commandsButton','withText','_createModelSelectionDropdown','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','bindTemplate','ck-ai-chat__prompt-capabilities','modelSelectorVisible','startsWith','fire','setReasoning','1384485uAlmdy','enableModelSelector','ck-ai-chat-controls__model-selection__item-name','ck-ai-chat-controls__model-name','toggleReasoning','webSearch','execute'];_0xa7b1=function(){return _0x42b66c;};return _0xa7b1();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x13c05f=_0x20b0;(function(_0x48f046,_0x5367cc){const _0x8d8b7e=_0x20b0,_0x1ad262=_0x48f046();while(!![]){try{const _0x5749f8=-parseInt(_0x8d8b7e(0x144))/0x1+-parseInt(_0x8d8b7e(0x165))/0x2+-parseInt(_0x8d8b7e(0x150))/0x3*(parseInt(_0x8d8b7e(0x16e))/0x4)+parseInt(_0x8d8b7e(0x160))/0x5*(-parseInt(_0x8d8b7e(0x147))/0x6)+parseInt(_0x8d8b7e(0x149))/0x7*(-parseInt(_0x8d8b7e(0x140))/0x8)+-parseInt(_0x8d8b7e(0x139))/0x9*(-parseInt(_0x8d8b7e(0x14a))/0xa)+parseInt(_0x8d8b7e(0x161))/0xb;if(_0x5749f8===_0x5367cc)break;else _0x1ad262['push'](_0x1ad262['shift']());}catch(_0x364d5e){_0x1ad262['push'](_0x1ad262['shift']());}}}(_0x1f38,0x89c00));import{IconSubmit as _0x2675bc}from'ckeditor5/src/icons.js';import{ButtonView as _0x5d0349,AutocompleteView as _0x14985d,createLabeledTextarea as _0x5335eb}from'ckeditor5/src/ui.js';function _0x1f38(){const _0x2e55d7=['setPlaceholderText','submitButtonView','set','fire','uiLanguageDirection','747gQagCG','AI_CHAT_PROMPT_EMPTY_ERROR','_setUpAddContextButtonPositioning','window','minRows','destroy','placeholder','248zVgbhd','px\x20-\x20var(--ck-spacing-tiny))','isEnabled','errorText','981546bHNjog','value','fieldWrapperChildren','6LUYlww','element','50477yjAIbH','59230dilPiZ','render','add','maxRows','excludeScrollbarsAndBorders','_addContextButtonView','303UGwOZQ','focusableChildren','trim','ck-ai-chat__prompt-submit-button','target','calc(','hasError','isUploadInProgress','enter','rtl','_queryViewResizeObserver','isEmpty','queryView','locale','style','ck-ai-chat__prompt-input','1948145SepWzo','38600683NBamMs','width','setIsUploadInProgress','_createSubmitButton','1975936JWrlMK','AI_CHAT_LABEL_SUBMIT','submit','requestAnimationFrame','update','left','sendUserMessage','keystrokes','MAX_ROWS','33816lsDBAR','fieldView','reset','execute','extendTemplate','bind','right','MIN_ROWS'];_0x1f38=function(){return _0x2e55d7;};return _0x1f38();}import{global as _0x2b47fa,isVisible as _0x3c1cae,Rect as _0x58b7d9,ResizeObserver as _0x29dea6}from'ckeditor5/src/utils.js';import{getTranslation as _0x5133a6}from'../../../aicore/utils/common-translations.js';import{AIChatPromptSuggestionsListView as _0x6f1ebf}from'./aichatpromptsuggestionslistview.js';function _0x20b0(_0x16f913,_0x43da75){const _0x1f389b=_0x1f38();return _0x20b0=function(_0x20b091,_0x34c32c){_0x20b091=_0x20b091-0x130;let _0x2e5858=_0x1f389b[_0x20b091];return _0x2e5858;},_0x20b0(_0x16f913,_0x43da75);}import{escape as _0x163ab2}from'es-toolkit/compat';export class AIChatPromptInputView extends _0x14985d{[_0x13c05f(0x135)];static [_0x13c05f(0x133)]=0x1;static [_0x13c05f(0x16d)]=0xc;[_0x13c05f(0x14f)];[_0x13c05f(0x15a)];constructor(_0x440de8,_0x38dbba){const _0x4ae579=_0x13c05f;super(_0x440de8,{'queryView':{'label':'','creator':_0x5335eb,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x6f1ebf(_0x440de8),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x4ae579(0x136)](_0x4ae579(0x15b),!0x0),this[_0x4ae579(0x136)](_0x4ae579(0x157),!0x1),this[_0x4ae579(0x14f)]=_0x38dbba,this[_0x4ae579(0x15a)]=null,this[_0x4ae579(0x15c)][_0x4ae579(0x16f)][_0x4ae579(0x13d)]=AIChatPromptInputView[_0x4ae579(0x133)],this[_0x4ae579(0x15c)][_0x4ae579(0x16f)][_0x4ae579(0x14d)]=AIChatPromptInputView[_0x4ae579(0x16d)],this[_0x4ae579(0x15c)][_0x4ae579(0x146)][_0x4ae579(0x14c)](this[_0x4ae579(0x14f)]),this[_0x4ae579(0x13b)](),this[_0x4ae579(0x130)]({'attributes':{'class':['ck',_0x4ae579(0x15f)]}}),this[_0x4ae579(0x135)]=this[_0x4ae579(0x164)](),this[_0x4ae579(0x135)][_0x4ae579(0x131)](_0x4ae579(0x142))['to'](this,_0x4ae579(0x15b),this,_0x4ae579(0x157),(_0x2be3a4,_0x152d1e)=>!_0x2be3a4&&!_0x152d1e),this[_0x4ae579(0x151)][_0x4ae579(0x14c)](this[_0x4ae579(0x135)]);}[_0x13c05f(0x14b)](){const _0x65f159=_0x13c05f;super[_0x65f159(0x14b)](),this[_0x65f159(0x15c)][_0x65f159(0x146)][_0x65f159(0x14c)](this[_0x65f159(0x135)]),this[_0x65f159(0x16c)][_0x65f159(0x136)](_0x65f159(0x158),(_0x311317,_0x5d7e82)=>{const _0x45a8d1=_0x65f159;this[_0x45a8d1(0x157)]||this[_0x45a8d1(0x15b)]||_0x311317[_0x45a8d1(0x154)]==this[_0x45a8d1(0x15c)][_0x45a8d1(0x16f)][_0x45a8d1(0x148)]&&(this[_0x45a8d1(0x167)](),_0x5d7e82());}),this[_0x65f159(0x15c)][_0x65f159(0x16f)]['on'](_0x65f159(0x169),()=>{const _0x8d573a=_0x65f159;this[_0x8d573a(0x15b)]=''===this[_0x8d573a(0x15c)][_0x8d573a(0x16f)][_0x8d573a(0x148)][_0x8d573a(0x145)]?.[_0x8d573a(0x152)]();});}[_0x13c05f(0x13e)](){const _0x1cab29=_0x13c05f;super[_0x1cab29(0x13e)](),this[_0x1cab29(0x15a)]&&this[_0x1cab29(0x15a)][_0x1cab29(0x13e)]();}[_0x13c05f(0x167)](){const _0xbebad2=_0x13c05f,_0x479b96=this[_0xbebad2(0x15c)][_0xbebad2(0x16f)][_0xbebad2(0x148)][_0xbebad2(0x145)]?.[_0xbebad2(0x152)]();if(!_0x479b96)return this[_0xbebad2(0x15c)][_0xbebad2(0x143)]=_0x5133a6(this[_0xbebad2(0x15d)],_0xbebad2(0x13a)),void(this[_0xbebad2(0x15c)][_0xbebad2(0x16f)][_0xbebad2(0x156)]=!0x0);this[_0xbebad2(0x15c)][_0xbebad2(0x16f)][_0xbebad2(0x156)]=!0x1;const _0x160a8d=_0x163ab2(_0x479b96);this[_0xbebad2(0x137)](_0xbebad2(0x16b),_0x160a8d),this[_0xbebad2(0x15c)][_0xbebad2(0x16f)][_0xbebad2(0x170)]();}[_0x13c05f(0x134)](_0x20baec){const _0x4b4076=_0x13c05f;this[_0x4b4076(0x15c)][_0x4b4076(0x16f)][_0x4b4076(0x136)](_0x4b4076(0x13f),_0x20baec);}[_0x13c05f(0x164)](){const _0x1b8fe0=_0x13c05f,_0x57043e=new _0x5d0349(this[_0x1b8fe0(0x15d)]);return _0x57043e[_0x1b8fe0(0x136)]({'icon':_0x2675bc,'label':_0x5133a6(this[_0x1b8fe0(0x15d)],_0x1b8fe0(0x166)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x1b8fe0(0x153),'isEnabled':!0x1}),_0x57043e['on'](_0x1b8fe0(0x171),()=>{const _0x3c0343=_0x1b8fe0;this[_0x3c0343(0x167)]();}),_0x57043e;}[_0x13c05f(0x163)](_0x5b817d){const _0x3675f9=_0x13c05f;this[_0x3675f9(0x157)]=_0x5b817d;}[_0x13c05f(0x13b)](){const _0x30040b=_0x13c05f,_0x37e90b=this[_0x30040b(0x15d)],_0x1f3656=()=>{const _0x5c7f93=_0x30040b;_0x2b47fa[_0x5c7f93(0x13c)][_0x5c7f93(0x168)](()=>{const _0x547502=_0x5c7f93;if(_0x3c1cae(this[_0x547502(0x148)])){const _0x36f4b3=new _0x58b7d9(this[_0x547502(0x15c)][_0x547502(0x16f)][_0x547502(0x148)]),_0x4db182=new _0x58b7d9(this[_0x547502(0x14f)][_0x547502(0x148)]),_0x293301=_0x36f4b3[_0x547502(0x162)],_0x45fa53=_0x547502(0x159)===_0x37e90b[_0x547502(0x138)]?_0x547502(0x132):_0x547502(0x16a);_0x36f4b3[_0x547502(0x14e)]();const _0x47e5ec=_0x293301-_0x36f4b3[_0x547502(0x162)]+0x1;this[_0x547502(0x14f)][_0x547502(0x148)][_0x547502(0x15e)][_0x45fa53]=_0x547502(0x155)+(_0x293301-_0x4db182[_0x547502(0x162)]-_0x47e5ec)+_0x547502(0x141);}});};this[_0x30040b(0x15c)][_0x30040b(0x16f)]['on'](_0x30040b(0x169),_0x1f3656),this['on'](_0x30040b(0x14b),()=>{const _0xc8c696=_0x30040b;_0x1f3656(),this[_0xc8c696(0x15a)]=new _0x29dea6(this[_0xc8c696(0x15c)][_0xc8c696(0x16f)][_0xc8c696(0x148)],()=>{_0x1f3656();});});}}
23
+ const _0x4083e0=_0x5fa0;function _0x5fa0(_0x9226de,_0x26ef9a){const _0x47f695=_0x47f6();return _0x5fa0=function(_0x5fa099,_0x430a76){_0x5fa099=_0x5fa099-0x150;let _0x85615f=_0x47f695[_0x5fa099];return _0x85615f;},_0x5fa0(_0x9226de,_0x26ef9a);}(function(_0x2c3968,_0x139307){const _0x471bbc=_0x5fa0,_0x9b8c36=_0x2c3968();while(!![]){try{const _0x522ff7=-parseInt(_0x471bbc(0x177))/0x1*(parseInt(_0x471bbc(0x181))/0x2)+-parseInt(_0x471bbc(0x17c))/0x3+parseInt(_0x471bbc(0x173))/0x4*(parseInt(_0x471bbc(0x18b))/0x5)+parseInt(_0x471bbc(0x18e))/0x6+parseInt(_0x471bbc(0x15a))/0x7+parseInt(_0x471bbc(0x157))/0x8+-parseInt(_0x471bbc(0x152))/0x9;if(_0x522ff7===_0x139307)break;else _0x9b8c36['push'](_0x9b8c36['shift']());}catch(_0x4d6f49){_0x9b8c36['push'](_0x9b8c36['shift']());}}}(_0x47f6,0x36b07));import{IconSubmit as _0x5e74ea}from'ckeditor5/src/icons.js';import{ButtonView as _0x3bb085,AutocompleteView as _0x551b17,createLabeledTextarea as _0x125650}from'ckeditor5/src/ui.js';import{global as _0x901d75,isVisible as _0xf95658,Rect as _0x4151a9,ResizeObserver as _0x46f2d8}from'ckeditor5/src/utils.js';function _0x47f6(){const _0x38ee09=['window','errorText','168952wALQtd','sendUserMessage','target','style','right','extendTemplate','_queryViewResizeObserver','maxRows','MAX_ROWS','submit','trim','value','_addContextButtonView','placeholder','requestAnimationFrame','add','fieldView','minRows','excludeScrollbarsAndBorders','width','fire','isUploadInProgress','calc(','AI_CHAT_LABEL_SUBMIT','locale','1228XjGxYJ','update','AI_CHAT_PROMPT_EMPTY_ERROR','px\x20-\x20var(--ck-spacing-tiny))','742srpEVM','isEmpty','setPlaceholderText','_setUpAddContextButtonPositioning','rtl','563802toksjc','MIN_ROWS','submitButtonView','set','isEnabled','1198WhpEAD','execute','ck-ai-chat__prompt-input','setIsUploadInProgress','enter','ck-ai-chat__prompt-submit-button','_createSubmitButton','focusableChildren','keystrokes','reset','2525DSBItU','fieldWrapperChildren','bind','2460360zBspzr','uiLanguageDirection','render','element','888993qfhcio','queryView','hasError','destroy','left','2927560BGFZEN'];_0x47f6=function(){return _0x38ee09;};return _0x47f6();}import{getTranslation as _0x6b5ec}from'../../../aicore/utils/common-translations.js';import{AIChatPromptSuggestionsListView as _0x47807a}from'./aichatpromptsuggestionslistview.js';import{escape as _0x234065}from'es-toolkit/compat';export class AIChatPromptInputView extends _0x551b17{[_0x4083e0(0x17e)];static [_0x4083e0(0x17d)]=0x1;static [_0x4083e0(0x162)]=0xc;[_0x4083e0(0x166)];[_0x4083e0(0x160)];constructor(_0x52b9b5,_0x4af6f4){const _0x46f6c1=_0x4083e0;super(_0x52b9b5,{'queryView':{'label':'','creator':_0x125650,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x47807a(_0x52b9b5),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x46f6c1(0x17f)](_0x46f6c1(0x178),!0x0),this[_0x46f6c1(0x17f)](_0x46f6c1(0x16f),!0x1),this[_0x46f6c1(0x166)]=_0x4af6f4,this[_0x46f6c1(0x160)]=null,this[_0x46f6c1(0x153)][_0x46f6c1(0x16a)][_0x46f6c1(0x16b)]=AIChatPromptInputView[_0x46f6c1(0x17d)],this[_0x46f6c1(0x153)][_0x46f6c1(0x16a)][_0x46f6c1(0x161)]=AIChatPromptInputView[_0x46f6c1(0x162)],this[_0x46f6c1(0x153)][_0x46f6c1(0x18c)][_0x46f6c1(0x169)](this[_0x46f6c1(0x166)]),this[_0x46f6c1(0x17a)](),this[_0x46f6c1(0x15f)]({'attributes':{'class':['ck',_0x46f6c1(0x183)]}}),this[_0x46f6c1(0x17e)]=this[_0x46f6c1(0x187)](),this[_0x46f6c1(0x17e)][_0x46f6c1(0x18d)](_0x46f6c1(0x180))['to'](this,_0x46f6c1(0x178),this,_0x46f6c1(0x16f),(_0x3b0a85,_0x28638d)=>!_0x3b0a85&&!_0x28638d),this[_0x46f6c1(0x188)][_0x46f6c1(0x169)](this[_0x46f6c1(0x17e)]);}[_0x4083e0(0x150)](){const _0x3f6d2b=_0x4083e0;super[_0x3f6d2b(0x150)](),this[_0x3f6d2b(0x153)][_0x3f6d2b(0x18c)][_0x3f6d2b(0x169)](this[_0x3f6d2b(0x17e)]),this[_0x3f6d2b(0x189)][_0x3f6d2b(0x17f)](_0x3f6d2b(0x185),(_0x1e9f16,_0x12a7f0)=>{const _0x51cb67=_0x3f6d2b;this[_0x51cb67(0x16f)]||this[_0x51cb67(0x178)]||_0x1e9f16[_0x51cb67(0x15c)]==this[_0x51cb67(0x153)][_0x51cb67(0x16a)][_0x51cb67(0x151)]&&(this[_0x51cb67(0x163)](),_0x12a7f0());}),this[_0x3f6d2b(0x153)][_0x3f6d2b(0x16a)]['on'](_0x3f6d2b(0x174),()=>{const _0xa2b6b6=_0x3f6d2b;this[_0xa2b6b6(0x178)]=''===this[_0xa2b6b6(0x153)][_0xa2b6b6(0x16a)][_0xa2b6b6(0x151)][_0xa2b6b6(0x165)]?.[_0xa2b6b6(0x164)]();});}[_0x4083e0(0x155)](){const _0x2d479c=_0x4083e0;super[_0x2d479c(0x155)](),this[_0x2d479c(0x160)]&&this[_0x2d479c(0x160)][_0x2d479c(0x155)]();}[_0x4083e0(0x163)](){const _0x3f9bdb=_0x4083e0,_0x54a158=this[_0x3f9bdb(0x153)][_0x3f9bdb(0x16a)][_0x3f9bdb(0x151)][_0x3f9bdb(0x165)]?.[_0x3f9bdb(0x164)]();if(!_0x54a158)return this[_0x3f9bdb(0x153)][_0x3f9bdb(0x159)]=_0x6b5ec(this[_0x3f9bdb(0x172)],_0x3f9bdb(0x175)),void(this[_0x3f9bdb(0x153)][_0x3f9bdb(0x16a)][_0x3f9bdb(0x154)]=!0x0);this[_0x3f9bdb(0x153)][_0x3f9bdb(0x16a)][_0x3f9bdb(0x154)]=!0x1;const _0x5ee495=_0x234065(_0x54a158);this[_0x3f9bdb(0x16e)](_0x3f9bdb(0x15b),_0x5ee495),this[_0x3f9bdb(0x153)][_0x3f9bdb(0x16a)][_0x3f9bdb(0x18a)]();}[_0x4083e0(0x179)](_0x15ecba){const _0x4dea3d=_0x4083e0;this[_0x4dea3d(0x153)][_0x4dea3d(0x16a)][_0x4dea3d(0x17f)](_0x4dea3d(0x167),_0x15ecba);}[_0x4083e0(0x187)](){const _0x47ea6d=_0x4083e0,_0x1faec0=new _0x3bb085(this[_0x47ea6d(0x172)]);return _0x1faec0[_0x47ea6d(0x17f)]({'icon':_0x5e74ea,'label':_0x6b5ec(this[_0x47ea6d(0x172)],_0x47ea6d(0x171)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x47ea6d(0x186),'isEnabled':!0x1}),_0x1faec0['on'](_0x47ea6d(0x182),()=>{const _0x56a866=_0x47ea6d;this[_0x56a866(0x163)]();}),_0x1faec0;}[_0x4083e0(0x184)](_0x34a04f){const _0x9e66b5=_0x4083e0;this[_0x9e66b5(0x16f)]=_0x34a04f;}[_0x4083e0(0x17a)](){const _0x4b1022=_0x4083e0,_0x16c978=this[_0x4b1022(0x172)],_0x686c89=()=>{const _0x505f88=_0x4b1022;_0x901d75[_0x505f88(0x158)][_0x505f88(0x168)](()=>{const _0x20cca9=_0x505f88;if(_0xf95658(this[_0x20cca9(0x151)])){const _0x40e315=new _0x4151a9(this[_0x20cca9(0x153)][_0x20cca9(0x16a)][_0x20cca9(0x151)]),_0x58d303=new _0x4151a9(this[_0x20cca9(0x166)][_0x20cca9(0x151)]),_0x117522=_0x40e315[_0x20cca9(0x16d)],_0x6ae75=_0x20cca9(0x17b)===_0x16c978[_0x20cca9(0x18f)]?_0x20cca9(0x15e):_0x20cca9(0x156);_0x40e315[_0x20cca9(0x16c)]();const _0x1cac70=_0x117522-_0x40e315[_0x20cca9(0x16d)]+0x1;this[_0x20cca9(0x166)][_0x20cca9(0x151)][_0x20cca9(0x15d)][_0x6ae75]=_0x20cca9(0x170)+(_0x117522-_0x58d303[_0x20cca9(0x16d)]-_0x1cac70)+_0x20cca9(0x176);}});};this[_0x4b1022(0x153)][_0x4b1022(0x16a)]['on'](_0x4b1022(0x174),_0x686c89),this['on'](_0x4b1022(0x150),()=>{const _0x14efcc=_0x4b1022;_0x686c89(),this[_0x14efcc(0x160)]=new _0x46f2d8(this[_0x14efcc(0x153)][_0x14efcc(0x16a)][_0x14efcc(0x151)],()=>{_0x686c89();});});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0xc3be(){const _0x32d8cd=['27802ZzHLEm','911610FtZLev','216ZVsVUj','254704hsEyLv','4KcBqEw','43539cvOcnb','items','1275126QRRMFs','357590MFVjYV','filter','98904TDhFiA','length','7HplJrf'];_0xc3be=function(){return _0x32d8cd;};return _0xc3be();}const _0xefd9f4=_0x2a48;function _0x2a48(_0x35cd9a,_0xe8ec9b){const _0xc3be87=_0xc3be();return _0x2a48=function(_0x2a4888,_0x5898cf){_0x2a4888=_0x2a4888-0x108;let _0x10720a=_0xc3be87[_0x2a4888];return _0x10720a;},_0x2a48(_0x35cd9a,_0xe8ec9b);}(function(_0x1cf224,_0x3bbf2c){const _0x85e3e8=_0x2a48,_0x2dc5d1=_0x1cf224();while(!![]){try{const _0x674869=-parseInt(_0x85e3e8(0x113))/0x1+parseInt(_0x85e3e8(0x109))/0x2+parseInt(_0x85e3e8(0x10b))/0x3+-parseInt(_0x85e3e8(0x10a))/0x4*(-parseInt(_0x85e3e8(0x10e))/0x5)+-parseInt(_0x85e3e8(0x10d))/0x6*(parseInt(_0x85e3e8(0x112))/0x7)+parseInt(_0x85e3e8(0x110))/0x8*(parseInt(_0x85e3e8(0x108))/0x9)+-parseInt(_0x85e3e8(0x114))/0xa;if(_0x674869===_0x3bbf2c)break;else _0x2dc5d1['push'](_0x2dc5d1['shift']());}catch(_0x214cc8){_0x2dc5d1['push'](_0x2dc5d1['shift']());}}}(_0xc3be,0x2b9b3));import{ListView as _0x16bba0}from'ckeditor5/src/ui.js';export class AIChatPromptSuggestionsListView extends _0x16bba0{[_0xefd9f4(0x10f)](){const _0x29fd0f=_0xefd9f4;let _0x481aac=0x0;for(const _0x24a994 of this[_0x29fd0f(0x10c)])_0x481aac+=_0x24a994[_0x29fd0f(0x10c)][_0x29fd0f(0x111)];return{'resultsCount':_0x481aac,'totalItemsCount':_0x481aac};}}
23
+ function _0x5503(_0x204a1d,_0x7be905){const _0x596677=_0x5966();return _0x5503=function(_0x550307,_0x14536a){_0x550307=_0x550307-0x108;let _0x1b91e8=_0x596677[_0x550307];return _0x1b91e8;},_0x5503(_0x204a1d,_0x7be905);}const _0x137d5b=_0x5503;(function(_0x1f4390,_0x584219){const _0x2b2754=_0x5503,_0x108077=_0x1f4390();while(!![]){try{const _0x1a2c71=parseInt(_0x2b2754(0x10f))/0x1+-parseInt(_0x2b2754(0x109))/0x2*(parseInt(_0x2b2754(0x108))/0x3)+-parseInt(_0x2b2754(0x10b))/0x4+-parseInt(_0x2b2754(0x111))/0x5*(-parseInt(_0x2b2754(0x10c))/0x6)+parseInt(_0x2b2754(0x110))/0x7+-parseInt(_0x2b2754(0x112))/0x8*(-parseInt(_0x2b2754(0x10e))/0x9)+-parseInt(_0x2b2754(0x10a))/0xa;if(_0x1a2c71===_0x584219)break;else _0x108077['push'](_0x108077['shift']());}catch(_0x3b670e){_0x108077['push'](_0x108077['shift']());}}}(_0x5966,0x46b82));function _0x5966(){const _0x1897b8=['items','length','15pFxbEZ','63382XCsUDK','324990PWfYsV','1451920hXexfC','147474cZvChv','filter','194751dJuvPB','271662LDgfwB','1566831AuTRzy','40QKbMyl','56MGHEqb'];_0x5966=function(){return _0x1897b8;};return _0x5966();}import{ListView as _0x4be276}from'ckeditor5/src/ui.js';export class AIChatPromptSuggestionsListView extends _0x4be276{[_0x137d5b(0x10d)](){const _0x5d87ea=_0x137d5b;let _0x3d5100=0x0;for(const _0x2b7f78 of this[_0x5d87ea(0x113)])_0x3d5100+=_0x2b7f78[_0x5d87ea(0x113)][_0x5d87ea(0x114)];return{'resultsCount':_0x3d5100,'totalItemsCount':_0x3d5100};}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x168e83=_0x52f2;function _0x257d(){const _0x3f1494=['highlightText','set','div','ck-ai-chat-resources__item','isVisible','ck-ai-chat-resources__item-title','144vHpdMk','3481809nBSgwh','span','trim','_createTitleView','render','5231484xurwsi','label','3052324Fobvnc','getResourceIcon','_titleView','_updateIcon','TEXT','DOCUMENT','bindTemplate','resource','extendTemplate','ck-hidden','execute','49UMboMc','FILE','_setupTemplate','ck-ai-chat-resources__item__icon','URL','809214sNeTjY','3413370ATvqVS','content','type','text','62695mwLEUn','isInContext','ck-ai-chat-resources__item--in-context','_createIconView','1337048XGQGLp','updateResourceState','setTemplate','_iconView','40zcZUfA'];_0x257d=function(){return _0x3f1494;};return _0x257d();}(function(_0x500b80,_0x33bb89){const _0x292bd6=_0x52f2,_0x18eb3e=_0x500b80();while(!![]){try{const _0x2d089e=-parseInt(_0x292bd6(0x125))/0x1+-parseInt(_0x292bd6(0x126))/0x2+parseInt(_0x292bd6(0x13a))/0x3+parseInt(_0x292bd6(0x141))/0x4+-parseInt(_0x292bd6(0x12a))/0x5*(-parseInt(_0x292bd6(0x139))/0x6)+-parseInt(_0x292bd6(0x120))/0x7*(parseInt(_0x292bd6(0x12e))/0x8)+parseInt(_0x292bd6(0x13f))/0x9*(parseInt(_0x292bd6(0x132))/0xa);if(_0x2d089e===_0x33bb89)break;else _0x18eb3e['push'](_0x18eb3e['shift']());}catch(_0x302c39){_0x18eb3e['push'](_0x18eb3e['shift']());}}}(_0x257d,0xd2ea4));import{HighlightedTextView as _0x181ed2,IconView as _0x4affdd,ListItemView as _0x4a9c1f}from'ckeditor5/src/ui.js';import{escapeRegExp as _0x22568a}from'es-toolkit/compat';function _0x52f2(_0x6eb64d,_0x2c10df){const _0x257d4e=_0x257d();return _0x52f2=function(_0x52f254,_0x6ea0e1){_0x52f254=_0x52f254-0x116;let _0x57b429=_0x257d4e[_0x52f254];return _0x57b429;},_0x52f2(_0x6eb64d,_0x2c10df);}import{AIContextItemType as _0x5b74aa}from'../../../../aicore/model/aicontext.js';import{IconFileUpload as _0x5e9148,IconCheck as _0x113e8d,IconDocument as _0x575303,IconDocumentOutline as _0x53fe0a,IconLink as _0x16b442}from'@ckeditor/ckeditor5-icons';const Rr=_0x168e83(0x136),Tr=_0x168e83(0x12c),Lr=_0x168e83(0x138),qr=_0x168e83(0x123);export class AIChatResourceListItemView extends _0x4a9c1f{[_0x168e83(0x11c)];[_0x168e83(0x117)];[_0x168e83(0x131)];constructor(_0x3619cb,_0x496a85){const _0x3ef88d=_0x168e83;super(_0x3619cb),this[_0x3ef88d(0x11c)]=_0x496a85,this[_0x3ef88d(0x134)](_0x3ef88d(0x12b),!!_0x496a85[_0x3ef88d(0x12b)]),this[_0x3ef88d(0x117)]=this[_0x3ef88d(0x13d)](),this[_0x3ef88d(0x131)]=this[_0x3ef88d(0x12d)](),this[_0x3ef88d(0x122)]();}[_0x168e83(0x13e)](){const _0x48a70e=_0x168e83;super[_0x48a70e(0x13e)]();}[_0x168e83(0x116)](_0x309c2e){const _0x1201ab=_0x168e83;if(_0x309c2e[_0x1201ab(0x12b)])return _0x113e8d;switch(_0x309c2e[_0x1201ab(0x128)]){case _0x5b74aa[_0x1201ab(0x11a)]:return _0x575303;case _0x5b74aa[_0x1201ab(0x124)]:return _0x16b442;case _0x5b74aa[_0x1201ab(0x121)]:case _0x5b74aa[_0x1201ab(0x119)]:return _0x5e9148;default:return _0x53fe0a;}}[_0x168e83(0x133)](_0x523fff){const _0x49dde2=_0x168e83;if(!_0x523fff||''===_0x523fff[_0x49dde2(0x13c)]())return void this[_0x49dde2(0x117)][_0x49dde2(0x133)](null);const _0x5f0860=new RegExp(_0x22568a(_0x523fff),'gi');this[_0x49dde2(0x117)][_0x49dde2(0x133)](_0x5f0860);}[_0x168e83(0x12f)](_0x49a233){const _0x42c4f0=_0x168e83;this[_0x42c4f0(0x11c)][_0x42c4f0(0x12b)]=_0x49a233,this[_0x42c4f0(0x12b)]=_0x49a233,this[_0x42c4f0(0x118)]();}[_0x168e83(0x13d)](){const _0x3b63a4=_0x168e83,_0x52331c=new _0x181ed2();return _0x52331c[_0x3b63a4(0x129)]=this[_0x3b63a4(0x11c)][_0x3b63a4(0x140)],_0x52331c[_0x3b63a4(0x11d)]({'tag':_0x3b63a4(0x13b),'attributes':{'class':[Lr]}}),_0x52331c;}[_0x168e83(0x12d)](){const _0x493590=_0x168e83,_0x8e220c=new _0x4affdd();return _0x8e220c[_0x493590(0x127)]=this[_0x493590(0x116)](this[_0x493590(0x11c)]),_0x8e220c;}[_0x168e83(0x122)](){const _0x4a8637=_0x168e83,_0xa358d7=this[_0x4a8637(0x11b)];this[_0x4a8637(0x130)]({'tag':_0x4a8637(0x135),'attributes':{'class':[Rr,_0xa358d7['if'](_0x4a8637(0x137),_0x4a8637(0x11e),_0x2fceb2=>!_0x2fceb2),_0xa358d7['if'](_0x4a8637(0x12b),Tr)]},'children':[{'tag':_0x4a8637(0x135),'attributes':{'class':[qr]},'children':[this[_0x4a8637(0x131)]]},this[_0x4a8637(0x117)]],'on':{'click':_0xa358d7['to'](_0x4a8637(0x11f))}});}[_0x168e83(0x118)](){const _0x3a296d=_0x168e83;this[_0x3a296d(0x131)][_0x3a296d(0x127)]=this[_0x3a296d(0x116)](this[_0x3a296d(0x11c)]);}}
23
+ const _0x2ba090=_0x1555;(function(_0x6bd045,_0xd695c8){const _0x5435d0=_0x1555,_0x26fed0=_0x6bd045();while(!![]){try{const _0x3e8b68=-parseInt(_0x5435d0(0x1e4))/0x1+-parseInt(_0x5435d0(0x1d8))/0x2+-parseInt(_0x5435d0(0x1db))/0x3+parseInt(_0x5435d0(0x1d4))/0x4+parseInt(_0x5435d0(0x1ce))/0x5+-parseInt(_0x5435d0(0x1ee))/0x6+parseInt(_0x5435d0(0x1de))/0x7;if(_0x3e8b68===_0xd695c8)break;else _0x26fed0['push'](_0x26fed0['shift']());}catch(_0x34cff0){_0x26fed0['push'](_0x26fed0['shift']());}}}(_0x2d05,0x567ed));function _0x1555(_0x183fee,_0x36bf1a){const _0x2d056c=_0x2d05();return _0x1555=function(_0x155551,_0x5a67b1){_0x155551=_0x155551-0x1ce;let _0x43a5e8=_0x2d056c[_0x155551];return _0x43a5e8;},_0x1555(_0x183fee,_0x36bf1a);}import{HighlightedTextView as _0x1d7a0e,IconView as _0x2e38a2,ListItemView as _0x422407}from'ckeditor5/src/ui.js';import{escapeRegExp as _0x44e7de}from'es-toolkit/compat';import{AIContextItemType as _0x372e55}from'../../../../aicore/model/aicontext.js';import{IconFileUpload as _0x7ac485,IconCheck as _0x596fde,IconDocument as _0x5e9497,IconDocumentOutline as _0x411351,IconLink as _0x91cdc2}from'@ckeditor/ckeditor5-icons';function _0x2d05(){const _0x45ecc0=['971319NCYTIN','_createIconView','content','1785231MsSrji','ck-ai-chat-resources__item-title','div','render','label','isVisible','59143dEWmig','extendTemplate','_titleView','ck-hidden','_iconView','trim','isInContext','execute','text','DOCUMENT','2494008uklLYn','updateResourceState','TEXT','ck-ai-chat-resources__item--in-context','span','_updateIcon','URL','ck-ai-chat-resources__item','setTemplate','3271750FKCGTS','highlightText','_setupTemplate','set','_createTitleView','bindTemplate','2741396kDbLAx','type','getResourceIcon','ck-ai-chat-resources__item__icon','883726cGgtWW','resource','FILE'];_0x2d05=function(){return _0x45ecc0;};return _0x2d05();}const qr=_0x2ba090(0x1f5),zr=_0x2ba090(0x1f1),Br=_0x2ba090(0x1df),Fr=_0x2ba090(0x1d7);export class AIChatResourceListItemView extends _0x422407{[_0x2ba090(0x1d9)];[_0x2ba090(0x1e6)];[_0x2ba090(0x1e8)];constructor(_0x294ecd,_0x8c53dd){const _0x433c4b=_0x2ba090;super(_0x294ecd),this[_0x433c4b(0x1d9)]=_0x8c53dd,this[_0x433c4b(0x1d1)](_0x433c4b(0x1ea),!!_0x8c53dd[_0x433c4b(0x1ea)]),this[_0x433c4b(0x1e6)]=this[_0x433c4b(0x1d2)](),this[_0x433c4b(0x1e8)]=this[_0x433c4b(0x1dc)](),this[_0x433c4b(0x1d0)]();}[_0x2ba090(0x1e1)](){const _0x2433d3=_0x2ba090;super[_0x2433d3(0x1e1)]();}[_0x2ba090(0x1d6)](_0x4d94fe){const _0x6dbac3=_0x2ba090;if(_0x4d94fe[_0x6dbac3(0x1ea)])return _0x596fde;switch(_0x4d94fe[_0x6dbac3(0x1d5)]){case _0x372e55[_0x6dbac3(0x1ed)]:return _0x5e9497;case _0x372e55[_0x6dbac3(0x1f4)]:return _0x91cdc2;case _0x372e55[_0x6dbac3(0x1da)]:case _0x372e55[_0x6dbac3(0x1f0)]:return _0x7ac485;default:return _0x411351;}}[_0x2ba090(0x1cf)](_0xe2dae){const _0x12c184=_0x2ba090;if(!_0xe2dae||''===_0xe2dae[_0x12c184(0x1e9)]())return void this[_0x12c184(0x1e6)][_0x12c184(0x1cf)](null);const _0x4d8c36=new RegExp(_0x44e7de(_0xe2dae),'gi');this[_0x12c184(0x1e6)][_0x12c184(0x1cf)](_0x4d8c36);}[_0x2ba090(0x1ef)](_0x58a488){const _0x1c0aa9=_0x2ba090;this[_0x1c0aa9(0x1d9)][_0x1c0aa9(0x1ea)]=_0x58a488,this[_0x1c0aa9(0x1ea)]=_0x58a488,this[_0x1c0aa9(0x1f3)]();}[_0x2ba090(0x1d2)](){const _0x32d2d8=_0x2ba090,_0x49b704=new _0x1d7a0e();return _0x49b704[_0x32d2d8(0x1ec)]=this[_0x32d2d8(0x1d9)][_0x32d2d8(0x1e2)],_0x49b704[_0x32d2d8(0x1e5)]({'tag':_0x32d2d8(0x1f2),'attributes':{'class':[Br]}}),_0x49b704;}[_0x2ba090(0x1dc)](){const _0x4048cf=_0x2ba090,_0x36dea9=new _0x2e38a2();return _0x36dea9[_0x4048cf(0x1dd)]=this[_0x4048cf(0x1d6)](this[_0x4048cf(0x1d9)]),_0x36dea9;}[_0x2ba090(0x1d0)](){const _0x14f2c2=_0x2ba090,_0x4ea348=this[_0x14f2c2(0x1d3)];this[_0x14f2c2(0x1f6)]({'tag':_0x14f2c2(0x1e0),'attributes':{'class':[qr,_0x4ea348['if'](_0x14f2c2(0x1e3),_0x14f2c2(0x1e7),_0x4e60c5=>!_0x4e60c5),_0x4ea348['if'](_0x14f2c2(0x1ea),zr)]},'children':[{'tag':_0x14f2c2(0x1e0),'attributes':{'class':[Fr]},'children':[this[_0x14f2c2(0x1e8)]]},this[_0x14f2c2(0x1e6)]],'on':{'click':_0x4ea348['to'](_0x14f2c2(0x1eb))}});}[_0x2ba090(0x1f3)](){const _0x388486=_0x2ba090;this[_0x388486(0x1e8)][_0x388486(0x1dd)]=this[_0x388486(0x1d6)](this[_0x388486(0x1d9)]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5ee6b1=_0xc41b;function _0x2d92(){const _0x53e35b=['add','content','_bodyCollection','_createSourceResourceBalloonPanel','hide','201282opLbCA','isAnyResourceBalloonVisible','onLoadSourceResources','set','values','_createBalloonResourcesView','execute','_sourceResourceBalloons','59FyOEpO','_setupSingleResourceBalloonClickOutsideHandler','clear','label','_createBackButton','36fzKJpT','element','20uKqbGo','_locale','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','showSourceResourcesBalloon','ck-ai-chat-context-controls__source-balloon-panel','2127862MEQfmM','onResourceSelected','closeSourceResourceBalloon','getTargetElement','959427FqkvDb','40pGoXEZ','onBackToContext','loadSourceResources','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_source','source','updateResourceState','594738IfQMaE','show','getLimiterElement','resource','setResources','isVisible','_getResourcesViewFromBalloon','4789824MIvfdL','242235NxLHEQ','destroy','addResourceToContext','onBalloonClosed','ck-button-icon\x20ck-button-back','populateSourceResourceBalloon','get','_createBalloonHeader','pin','delete','_config','children','extendTemplate','6054CsIuJj','_addSourceResourceContent'];_0x2d92=function(){return _0x53e35b;};return _0x2d92();}(function(_0x38468b,_0x74ef02){const _0x481774=_0xc41b,_0x13b36f=_0x38468b();while(!![]){try{const _0x908f7e=parseInt(_0x481774(0xc2))/0x1*(-parseInt(_0x481774(0xee))/0x2)+-parseInt(_0x481774(0xf5))/0x3*(parseInt(_0x481774(0xc9))/0x4)+-parseInt(_0x481774(0xe1))/0x5*(parseInt(_0x481774(0xc7))/0x6)+-parseInt(_0x481774(0xd2))/0x7+parseInt(_0x481774(0xe0))/0x8+-parseInt(_0x481774(0xd9))/0x9+parseInt(_0x481774(0xd3))/0xa*(parseInt(_0x481774(0xce))/0xb);if(_0x908f7e===_0x74ef02)break;else _0x13b36f['push'](_0x13b36f['shift']());}catch(_0x297e7c){_0x13b36f['push'](_0x13b36f['shift']());}}}(_0x2d92,0x59040));import{BalloonPanelView as _0x12b797,ButtonView as _0x16093b,clickOutsideHandler as _0x256917,FormHeaderView as _0x539f32}from'ckeditor5/src/ui.js';import{IconPreviousArrow as _0x23874c}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x102e55}from'../../../../aicore/utils/common-translations.js';import{AIChatContextResourcesView as _0x512cdc}from'./aichatresourcesview.js';const Or=_0x5ee6b1(0xcd),Hr=_0x5ee6b1(0xe5),Fr=_0x5ee6b1(0xd6);function _0xc41b(_0x20e6bd,_0x3da1a5){const _0x2d929c=_0x2d92();return _0xc41b=function(_0xc41b43,_0x682a3c){_0xc41b43=_0xc41b43-0xbc;let _0x4d60de=_0x2d929c[_0xc41b43];return _0x4d60de;},_0xc41b(_0x20e6bd,_0x3da1a5);}export class AIChatResourcesBalloonView{[_0x5ee6b1(0xc1)]=new Map();[_0x5ee6b1(0xf2)];[_0x5ee6b1(0xca)];[_0x5ee6b1(0xeb)];constructor(_0x475b3e,_0x17fcf1,_0x16620d){const _0x52ae25=_0x5ee6b1;this[_0x52ae25(0xca)]=_0x475b3e,this[_0x52ae25(0xf2)]=_0x17fcf1,this[_0x52ae25(0xeb)]=_0x16620d;}[_0x5ee6b1(0xcc)](_0x524bf6){const _0x8722cd=_0x5ee6b1;let _0x1bb2b0=this[_0x8722cd(0xc1)][_0x8722cd(0xe7)](_0x524bf6['id']);_0x1bb2b0||(_0x1bb2b0=this[_0x8722cd(0xf3)](),this[_0x8722cd(0xc1)][_0x8722cd(0xbd)](_0x524bf6['id'],_0x1bb2b0),this[_0x8722cd(0xc3)](_0x1bb2b0)),this[_0x8722cd(0xef)](_0x1bb2b0,_0x524bf6),_0x1bb2b0[_0x8722cd(0xda)]();const _0x5925c1=this[_0x8722cd(0xeb)][_0x8722cd(0xd1)]();_0x5925c1&&_0x1bb2b0[_0x8722cd(0xe9)]({'target':_0x5925c1,'limiter':this[_0x8722cd(0xeb)][_0x8722cd(0xdb)]()});}[_0x5ee6b1(0xe6)](_0x367de7,_0x4b0980,_0x2400f5){const _0x21d441=_0x5ee6b1,_0x126358=this[_0x21d441(0xc1)][_0x21d441(0xe7)](_0x367de7);if(!_0x126358)return;const _0x5c090e=this[_0x21d441(0xdf)](_0x126358);_0x5c090e&&_0x5c090e[_0x21d441(0xdd)](_0x4b0980,_0x2400f5);}[_0x5ee6b1(0xd0)](_0x3f360c){const _0x58b1a0=_0x5ee6b1,_0x2f121d=this[_0x58b1a0(0xc1)][_0x58b1a0(0xe7)](_0x3f360c);_0x2f121d&&requestAnimationFrame(()=>{const _0x3a898d=_0x58b1a0;_0x2f121d[_0x3a898d(0xf4)](),this[_0x3a898d(0xc1)][_0x3a898d(0xea)](_0x3f360c),this[_0x3a898d(0xeb)][_0x3a898d(0xe4)]();});}[_0x5ee6b1(0xf6)](){const _0xb75613=_0x5ee6b1;for(const _0x5eab9f of this[_0xb75613(0xc1)][_0xb75613(0xbe)]())if(_0x5eab9f[_0xb75613(0xde)])return!0x0;return!0x1;}[_0x5ee6b1(0xd8)](_0x29add3,_0x3bc8f9,_0x28ac25){const _0x1dfa46=_0x5ee6b1,_0x22f9da=this[_0x1dfa46(0xc1)][_0x1dfa46(0xe7)](_0x29add3);if(!_0x22f9da||!_0x22f9da[_0x1dfa46(0xde)])return;const _0x1a4600=this[_0x1dfa46(0xeb)][_0x1dfa46(0xd1)]();if(!_0x1a4600)return;_0x22f9da[_0x1dfa46(0xe9)]({'target':_0x1a4600,'limiter':this[_0x1dfa46(0xeb)][_0x1dfa46(0xdb)]()});const _0x4a67bc=this[_0x1dfa46(0xdf)](_0x22f9da);_0x4a67bc&&_0x4a67bc[_0x1dfa46(0xd8)](_0x3bc8f9,_0x28ac25);}[_0x5ee6b1(0xe2)](){const _0xc25800=_0x5ee6b1;for(const _0x235459 of this[_0xc25800(0xc1)][_0xc25800(0xbe)]())_0x235459[_0xc25800(0xe2)]();this[_0xc25800(0xc1)][_0xc25800(0xc4)]();}[_0x5ee6b1(0xf3)](){const _0x29a2bf=_0x5ee6b1,_0x11e166=new _0x12b797(this[_0x29a2bf(0xca)]);return _0x11e166[_0x29a2bf(0xed)]({'attributes':{'class':Or}}),this[_0x29a2bf(0xf2)][_0x29a2bf(0xf0)](_0x11e166),_0x11e166;}[_0x5ee6b1(0xef)](_0x2bd97c,_0xf5944f){const _0x10c064=_0x5ee6b1;_0x2bd97c[_0x10c064(0xf1)][_0x10c064(0xc4)]();const _0x4cfeb2=this[_0x10c064(0xe8)](_0x2bd97c,_0xf5944f);_0x2bd97c[_0x10c064(0xf1)][_0x10c064(0xf0)](_0x4cfeb2);const _0xd2a91f=this[_0x10c064(0xbf)](_0xf5944f);_0x2bd97c[_0x10c064(0xf1)][_0x10c064(0xf0)](_0xd2a91f);}[_0x5ee6b1(0xe8)](_0x321e27,_0x2c7a13){const _0x4432cf=_0x5ee6b1,_0xefbdcb=this[_0x4432cf(0xc6)](_0x321e27),_0x2a4945=new _0x539f32(this[_0x4432cf(0xca)],{'label':_0x2c7a13[_0x4432cf(0xc5)],'class':Fr});return _0x2a4945[_0x4432cf(0xec)][_0x4432cf(0xf0)](_0xefbdcb,0x0),_0x2a4945;}[_0x5ee6b1(0xc6)](_0x1d96f9){const _0x26fa56=_0x5ee6b1,_0x1355c3=new _0x16093b(this[_0x26fa56(0xca)]);return _0x1355c3[_0x26fa56(0xbd)]({'icon':_0x23874c,'tooltip':_0x102e55(this[_0x26fa56(0xca)],_0x26fa56(0xcb)),'tooltipPosition':'n','class':Hr}),_0x1355c3['on'](_0x26fa56(0xc0),()=>{const _0x415749=_0x26fa56;_0x1d96f9[_0x415749(0xf4)](),this[_0x415749(0xeb)][_0x415749(0xd4)]();}),_0x1355c3;}[_0x5ee6b1(0xbf)](_0x44da8e){const _0x1ba8f0=_0x5ee6b1,_0xaad7b9=new _0x512cdc(this[_0x1ba8f0(0xca)],_0x44da8e);return _0xaad7b9['on'](_0x1ba8f0(0xd5),(_0x29a077,_0x32f0c3)=>{const _0x1da01d=_0x1ba8f0;this[_0x1da01d(0xeb)][_0x1da01d(0xbc)](_0x32f0c3);}),_0xaad7b9['on'](_0x1ba8f0(0xe3),(_0x1013f2,_0x1c4121)=>{const _0x59c740=_0x1ba8f0;this[_0x59c740(0xeb)][_0x59c740(0xcf)](_0x1c4121[_0x59c740(0xd7)],_0x1c4121[_0x59c740(0xdc)]),this[_0x59c740(0xd0)](_0x44da8e['id']);}),_0xaad7b9;}[_0x5ee6b1(0xdf)](_0x4c4459){const _0x3db4e8=_0x5ee6b1,_0x382a3f=_0x4c4459[_0x3db4e8(0xf1)][_0x3db4e8(0xe7)](0x1);return _0x382a3f instanceof _0x512cdc?_0x382a3f:null;}[_0x5ee6b1(0xc3)](_0x16cc2b){const _0x20b171=_0x5ee6b1;_0x256917({'emitter':_0x16cc2b,'contextElements':[_0x16cc2b[_0x20b171(0xc8)]],'callback':()=>{const _0x105840=_0x20b171;_0x16cc2b[_0x105840(0xf4)](),this[_0x105840(0xeb)][_0x105840(0xe4)]();},'activator':()=>_0x16cc2b[_0x20b171(0xde)]});}}
23
+ const _0x4bf854=_0x253e;function _0x5a24(){const _0x37c623=['isVisible','onBackToContext','_createBalloonResourcesView','24tAhnkz','children','add','_setupSingleResourceBalloonClickOutsideHandler','clear','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_source','_config','getLimiterElement','_sourceResourceBalloons','_createSourceResourceBalloonPanel','ck-button-icon\x20ck-button-back','onBalloonClosed','delete','setResources','show','_addSourceResourceContent','onResourceSelected','pin','content','addResourceToContext','_createBalloonHeader','1076369RMJxZJ','execute','isAnyResourceBalloonVisible','473354WveIPh','_bodyCollection','779280LPvWBt','_createBackButton','hide','ck-ai-chat-context-controls__source-balloon-panel','set','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','loadSourceResources','showSourceResourcesBalloon','element','617688jjmrzv','onLoadSourceResources','_getResourcesViewFromBalloon','populateSourceResourceBalloon','_locale','get','getTargetElement','8BFrlXT','1627767aNfGTH','updateResourceState','source','resource','values','93680HFHVaQ','label','destroy','closeSourceResourceBalloon','46610qYcnkq','extendTemplate'];_0x5a24=function(){return _0x37c623;};return _0x5a24();}(function(_0x27e635,_0x5c08c8){const _0x3e8f0a=_0x253e,_0x466fa7=_0x27e635();while(!![]){try{const _0x50970d=parseInt(_0x3e8f0a(0x1e9))/0x1+-parseInt(_0x3e8f0a(0x1cc))/0x2+-parseInt(_0x3e8f0a(0x1eb))/0x3+-parseInt(_0x3e8f0a(0x1f4))/0x4+parseInt(_0x3e8f0a(0x1c8))/0x5*(-parseInt(_0x3e8f0a(0x1d1))/0x6)+parseInt(_0x3e8f0a(0x1e6))/0x7+parseInt(_0x3e8f0a(0x1fb))/0x8*(parseInt(_0x3e8f0a(0x1fc))/0x9);if(_0x50970d===_0x5c08c8)break;else _0x466fa7['push'](_0x466fa7['shift']());}catch(_0x2f31b2){_0x466fa7['push'](_0x466fa7['shift']());}}}(_0x5a24,0x48281));import{BalloonPanelView as _0x39df25,ButtonView as _0x19fa0d,clickOutsideHandler as _0x561d5f,FormHeaderView as _0x381ca1}from'ckeditor5/src/ui.js';import{IconPreviousArrow as _0x5a96ac}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x405148}from'../../../../aicore/utils/common-translations.js';import{AIChatContextResourcesView as _0x2c96b0}from'./aichatresourcesview.js';function _0x253e(_0x1181fa,_0x25d8f9){const _0x5a2451=_0x5a24();return _0x253e=function(_0x253ee3,_0x2b1d31){_0x253ee3=_0x253ee3-0x1c5;let _0x527cc7=_0x5a2451[_0x253ee3];return _0x527cc7;},_0x253e(_0x1181fa,_0x25d8f9);}const Xo=_0x4bf854(0x1ee),qo=_0x4bf854(0x1db),zo=_0x4bf854(0x1d6);export class AIChatResourcesBalloonView{[_0x4bf854(0x1d9)]=new Map();[_0x4bf854(0x1ea)];[_0x4bf854(0x1f8)];[_0x4bf854(0x1d7)];constructor(_0x5d35b9,_0x366b0d,_0x362da3){const _0x44fa97=_0x4bf854;this[_0x44fa97(0x1f8)]=_0x5d35b9,this[_0x44fa97(0x1ea)]=_0x366b0d,this[_0x44fa97(0x1d7)]=_0x362da3;}[_0x4bf854(0x1f2)](_0x337beb){const _0x5b9994=_0x4bf854;let _0x51d00d=this[_0x5b9994(0x1d9)][_0x5b9994(0x1f9)](_0x337beb['id']);_0x51d00d||(_0x51d00d=this[_0x5b9994(0x1da)](),this[_0x5b9994(0x1d9)][_0x5b9994(0x1ef)](_0x337beb['id'],_0x51d00d),this[_0x5b9994(0x1d4)](_0x51d00d)),this[_0x5b9994(0x1e0)](_0x51d00d,_0x337beb),_0x51d00d[_0x5b9994(0x1df)]();const _0x48d1b7=this[_0x5b9994(0x1d7)][_0x5b9994(0x1fa)]();_0x48d1b7&&_0x51d00d[_0x5b9994(0x1e2)]({'target':_0x48d1b7,'limiter':this[_0x5b9994(0x1d7)][_0x5b9994(0x1d8)]()});}[_0x4bf854(0x1f7)](_0x3ef73d,_0x3cae8d,_0xacdaf6){const _0x539fd3=_0x4bf854,_0x5a06de=this[_0x539fd3(0x1d9)][_0x539fd3(0x1f9)](_0x3ef73d);if(!_0x5a06de)return;const _0x5026a2=this[_0x539fd3(0x1f6)](_0x5a06de);_0x5026a2&&_0x5026a2[_0x539fd3(0x1de)](_0x3cae8d,_0xacdaf6);}[_0x4bf854(0x1cb)](_0x4bbd94){const _0x1d2233=_0x4bf854,_0x4771a1=this[_0x1d2233(0x1d9)][_0x1d2233(0x1f9)](_0x4bbd94);_0x4771a1&&requestAnimationFrame(()=>{const _0x2d3100=_0x1d2233;_0x4771a1[_0x2d3100(0x1ed)](),this[_0x2d3100(0x1d9)][_0x2d3100(0x1dd)](_0x4bbd94),this[_0x2d3100(0x1d7)][_0x2d3100(0x1dc)]();});}[_0x4bf854(0x1e8)](){const _0x470575=_0x4bf854;for(const _0x40a4c4 of this[_0x470575(0x1d9)][_0x470575(0x1c7)]())if(_0x40a4c4[_0x470575(0x1ce)])return!0x0;return!0x1;}[_0x4bf854(0x1fd)](_0xa203fe,_0x20a26c,_0x4e7a22){const _0x5c3de7=_0x4bf854,_0x4dc887=this[_0x5c3de7(0x1d9)][_0x5c3de7(0x1f9)](_0xa203fe);if(!_0x4dc887||!_0x4dc887[_0x5c3de7(0x1ce)])return;const _0x3c8cc0=this[_0x5c3de7(0x1d7)][_0x5c3de7(0x1fa)]();if(!_0x3c8cc0)return;_0x4dc887[_0x5c3de7(0x1e2)]({'target':_0x3c8cc0,'limiter':this[_0x5c3de7(0x1d7)][_0x5c3de7(0x1d8)]()});const _0x52eef7=this[_0x5c3de7(0x1f6)](_0x4dc887);_0x52eef7&&_0x52eef7[_0x5c3de7(0x1fd)](_0x20a26c,_0x4e7a22);}[_0x4bf854(0x1ca)](){const _0x40889d=_0x4bf854;for(const _0x212a48 of this[_0x40889d(0x1d9)][_0x40889d(0x1c7)]())_0x212a48[_0x40889d(0x1ca)]();this[_0x40889d(0x1d9)][_0x40889d(0x1d5)]();}[_0x4bf854(0x1da)](){const _0x2bf1cc=_0x4bf854,_0x40b750=new _0x39df25(this[_0x2bf1cc(0x1f8)]);return _0x40b750[_0x2bf1cc(0x1cd)]({'attributes':{'class':Xo}}),this[_0x2bf1cc(0x1ea)][_0x2bf1cc(0x1d3)](_0x40b750),_0x40b750;}[_0x4bf854(0x1e0)](_0x572469,_0x5133b5){const _0x2fcb13=_0x4bf854;_0x572469[_0x2fcb13(0x1e3)][_0x2fcb13(0x1d5)]();const _0x5ed0ae=this[_0x2fcb13(0x1e5)](_0x572469,_0x5133b5);_0x572469[_0x2fcb13(0x1e3)][_0x2fcb13(0x1d3)](_0x5ed0ae);const _0x10cfee=this[_0x2fcb13(0x1d0)](_0x5133b5);_0x572469[_0x2fcb13(0x1e3)][_0x2fcb13(0x1d3)](_0x10cfee);}[_0x4bf854(0x1e5)](_0x9919b3,_0x5698d5){const _0xce86d0=_0x4bf854,_0x592c7a=this[_0xce86d0(0x1ec)](_0x9919b3),_0x38eb81=new _0x381ca1(this[_0xce86d0(0x1f8)],{'label':_0x5698d5[_0xce86d0(0x1c9)],'class':zo});return _0x38eb81[_0xce86d0(0x1d2)][_0xce86d0(0x1d3)](_0x592c7a,0x0),_0x38eb81;}[_0x4bf854(0x1ec)](_0x3d1981){const _0x5a5ed5=_0x4bf854,_0x569627=new _0x19fa0d(this[_0x5a5ed5(0x1f8)]);return _0x569627[_0x5a5ed5(0x1ef)]({'icon':_0x5a96ac,'tooltip':_0x405148(this[_0x5a5ed5(0x1f8)],_0x5a5ed5(0x1f0)),'tooltipPosition':'n','class':qo}),_0x569627['on'](_0x5a5ed5(0x1e7),()=>{const _0x387fb1=_0x5a5ed5;_0x3d1981[_0x387fb1(0x1ed)](),this[_0x387fb1(0x1d7)][_0x387fb1(0x1cf)]();}),_0x569627;}[_0x4bf854(0x1d0)](_0x35a078){const _0x572c85=_0x4bf854,_0xdd3200=new _0x2c96b0(this[_0x572c85(0x1f8)],_0x35a078);return _0xdd3200['on'](_0x572c85(0x1f1),(_0x2ea92e,_0x50839c)=>{const _0x493ad6=_0x572c85;this[_0x493ad6(0x1d7)][_0x493ad6(0x1f5)](_0x50839c);}),_0xdd3200['on'](_0x572c85(0x1e4),(_0x25e94b,_0xd849ec)=>{const _0x8c4a68=_0x572c85;this[_0x8c4a68(0x1d7)][_0x8c4a68(0x1e1)](_0xd849ec[_0x8c4a68(0x1c5)],_0xd849ec[_0x8c4a68(0x1c6)]),this[_0x8c4a68(0x1cb)](_0x35a078['id']);}),_0xdd3200;}[_0x4bf854(0x1f6)](_0x2ff36c){const _0x4f00d7=_0x4bf854,_0x359eee=_0x2ff36c[_0x4f00d7(0x1e3)][_0x4f00d7(0x1f9)](0x1);return _0x359eee instanceof _0x2c96b0?_0x359eee:null;}[_0x4bf854(0x1d4)](_0x486264){const _0x5e9ff9=_0x4bf854;_0x561d5f({'emitter':_0x486264,'contextElements':[_0x486264[_0x5e9ff9(0x1f3)]],'callback':()=>{const _0x32f118=_0x5e9ff9;_0x486264[_0x32f118(0x1ed)](),this[_0x32f118(0x1d7)][_0x32f118(0x1dc)]();},'activator':()=>_0x486264[_0x5e9ff9(0x1ce)]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1d749a=_0x2b67;(function(_0x325ce0,_0x2ddef8){const _0x40e2f2=_0x2b67,_0x310a04=_0x325ce0();while(!![]){try{const _0x4e1878=-parseInt(_0x40e2f2(0x19c))/0x1*(-parseInt(_0x40e2f2(0x1ae))/0x2)+parseInt(_0x40e2f2(0x1b3))/0x3*(-parseInt(_0x40e2f2(0x197))/0x4)+-parseInt(_0x40e2f2(0x193))/0x5+-parseInt(_0x40e2f2(0x1a9))/0x6+parseInt(_0x40e2f2(0x1a7))/0x7*(parseInt(_0x40e2f2(0x1a0))/0x8)+parseInt(_0x40e2f2(0x19d))/0x9*(parseInt(_0x40e2f2(0x195))/0xa)+parseInt(_0x40e2f2(0x1a6))/0xb;if(_0x4e1878===_0x2ddef8)break;else _0x310a04['push'](_0x310a04['shift']());}catch(_0x123c56){_0x310a04['push'](_0x310a04['shift']());}}}(_0x5550,0x30f04));import{ListView as _0x3610af}from'ckeditor5/src/ui.js';import{AIChatResourceListItemView as _0x544972}from'./aichatresourcelistitemview.js';const sc=_0x1d749a(0x1a4);function _0x2b67(_0x28c7e9,_0x1055a5){const _0x5550e0=_0x5550();return _0x2b67=function(_0x2b67f5,_0x4258b9){_0x2b67f5=_0x2b67f5-0x193;let _0x30241b=_0x5550e0[_0x2b67f5];return _0x30241b;},_0x2b67(_0x28c7e9,_0x1055a5);}export class AIChatContextResourcesListView extends _0x3610af{[_0x1d749a(0x196)];constructor(_0x596531,_0x3321f4){const _0x4b108e=_0x1d749a;super(_0x596531),this[_0x4b108e(0x196)]=_0x3321f4,this[_0x4b108e(0x1aa)]({'attributes':{'class':[sc]}});}[_0x1d749a(0x198)](_0x285881,_0x3efbde){const _0x3629f6=_0x1d749a;this[_0x3629f6(0x194)][_0x3629f6(0x19f)]();let _0x571554=_0x285881;if(this[_0x3629f6(0x196)][_0x3629f6(0x19a)]&&_0x3efbde&&''!==_0x3efbde[_0x3629f6(0x19b)]()){const _0x5a6146=new RegExp(_0x3efbde[_0x3629f6(0x1af)](/[.*+?^${}()|[\]\\]/g,_0x3629f6(0x1ab)),'gi');_0x571554=_0x285881[_0x3629f6(0x1a8)](_0x98031e=>_0x5a6146[_0x3629f6(0x1a1)](_0x98031e[_0x3629f6(0x199)]));}for(const _0x4b678c of _0x571554){const _0x557331=new _0x544972(this[_0x3629f6(0x1b1)],_0x4b678c);_0x557331['on'](_0x3629f6(0x1a3),()=>{const _0x1c5501=_0x3629f6;this[_0x1c5501(0x1a2)](this[_0x1c5501(0x196)],_0x4b678c);}),this[_0x3629f6(0x194)][_0x3629f6(0x1b4)](_0x557331);}this[_0x3629f6(0x196)][_0x3629f6(0x19a)]&&this[_0x3629f6(0x19e)](_0x3efbde);}[_0x1d749a(0x19e)](_0x4af6aa){const _0x29941d=_0x1d749a;this[_0x29941d(0x196)][_0x29941d(0x19a)]&&this[_0x29941d(0x194)][_0x29941d(0x1ad)](_0x5c3641=>{const _0x584a93=_0x29941d;_0x5c3641[_0x584a93(0x19e)](_0x4af6aa);});}[_0x1d749a(0x1b2)](_0x3b5c87,_0x520b96){const _0x4eca6a=_0x1d749a;for(const _0x1899a3 of this[_0x4eca6a(0x194)]){const _0x542586=_0x1899a3;_0x542586[_0x4eca6a(0x1b0)]['id']===_0x3b5c87&&_0x542586[_0x4eca6a(0x1b2)](_0x520b96);}}[_0x1d749a(0x1a2)](_0x5d4963,_0x2e7caf){const _0x5dc72e=_0x1d749a;this[_0x5dc72e(0x1a5)](_0x5dc72e(0x1ac),{'source':_0x5d4963,'resource':_0x2e7caf});}}function _0x5550(){const _0x20ff3b=['resource','locale','updateResourceState','48gAAuPA','add','253815alIVLw','items','985770VnwLOn','_source','61052kPiVEW','setResources','label','useDefaultFiltering','trim','257929glgcZJ','9aqeBqt','highlightText','clear','8QABkdh','test','_handleResourceSelection','execute','ck-ai-chat-resources__list','fire','1748714CGzqQC','609798pXQnFe','filter','643026fQwokZ','extendTemplate','\x5c$&','addResourceToContext','forEach','2fdWkWH','replace'];_0x5550=function(){return _0x20ff3b;};return _0x5550();}
23
+ const _0x29c849=_0xb0c6;(function(_0x5244b1,_0xf54282){const _0x2c2451=_0xb0c6,_0x2d9fdf=_0x5244b1();while(!![]){try{const _0x3336b8=parseInt(_0x2c2451(0x1a2))/0x1+-parseInt(_0x2c2451(0x1a5))/0x2*(parseInt(_0x2c2451(0x1ae))/0x3)+parseInt(_0x2c2451(0x198))/0x4*(-parseInt(_0x2c2451(0x199))/0x5)+parseInt(_0x2c2451(0x1a1))/0x6+parseInt(_0x2c2451(0x19d))/0x7+-parseInt(_0x2c2451(0x196))/0x8+parseInt(_0x2c2451(0x1a0))/0x9;if(_0x3336b8===_0xf54282)break;else _0x2d9fdf['push'](_0x2d9fdf['shift']());}catch(_0x3ec669){_0x2d9fdf['push'](_0x2d9fdf['shift']());}}}(_0x18de,0x89efe));function _0x18de(){const _0x22262f=['5805846nvcJMe','31933UJNBHS','\x5c$&','setResources','2OvKpiF','clear','forEach','items','label','resource','replace','_handleResourceSelection','trim','2981490EsAYqF','test','ck-ai-chat-resources__list','add','useDefaultFiltering','locale','_source','filter','5906024qoYFVm','fire','7300FdaaQv','2045uEXsbL','extendTemplate','execute','addResourceToContext','4785445gXywce','updateResourceState','highlightText','12242601XxdJKS'];_0x18de=function(){return _0x22262f;};return _0x18de();}function _0xb0c6(_0x48b37d,_0x22e675){const _0x18defe=_0x18de();return _0xb0c6=function(_0xb0c667,_0x520fa2){_0xb0c667=_0xb0c667-0x192;let _0x5d87da=_0x18defe[_0xb0c667];return _0x5d87da;},_0xb0c6(_0x48b37d,_0x22e675);}import{ListView as _0x4e9c44}from'ckeditor5/src/ui.js';import{AIChatResourceListItemView as _0x1e81e5}from'./aichatresourcelistitemview.js';const Jo=_0x29c849(0x1b0);export class AIChatContextResourcesListView extends _0x4e9c44{[_0x29c849(0x194)];constructor(_0x58737b,_0x5b7a39){const _0x1f3f54=_0x29c849;super(_0x58737b),this[_0x1f3f54(0x194)]=_0x5b7a39,this[_0x1f3f54(0x19a)]({'attributes':{'class':[Jo]}});}[_0x29c849(0x1a4)](_0x1a8b97,_0x41db70){const _0xbcc94d=_0x29c849;this[_0xbcc94d(0x1a8)][_0xbcc94d(0x1a6)]();let _0x157d75=_0x1a8b97;if(this[_0xbcc94d(0x194)][_0xbcc94d(0x192)]&&_0x41db70&&''!==_0x41db70[_0xbcc94d(0x1ad)]()){const _0x81677c=new RegExp(_0x41db70[_0xbcc94d(0x1ab)](/[.*+?^${}()|[\]\\]/g,_0xbcc94d(0x1a3)),'gi');_0x157d75=_0x1a8b97[_0xbcc94d(0x195)](_0x2bb257=>_0x81677c[_0xbcc94d(0x1af)](_0x2bb257[_0xbcc94d(0x1a9)]));}for(const _0x585128 of _0x157d75){const _0x4c8124=new _0x1e81e5(this[_0xbcc94d(0x193)],_0x585128);_0x4c8124['on'](_0xbcc94d(0x19b),()=>{const _0x2d411b=_0xbcc94d;this[_0x2d411b(0x1ac)](this[_0x2d411b(0x194)],_0x585128);}),this[_0xbcc94d(0x1a8)][_0xbcc94d(0x1b1)](_0x4c8124);}this[_0xbcc94d(0x194)][_0xbcc94d(0x192)]&&this[_0xbcc94d(0x19f)](_0x41db70);}[_0x29c849(0x19f)](_0x25e64d){const _0x5a74f1=_0x29c849;this[_0x5a74f1(0x194)][_0x5a74f1(0x192)]&&this[_0x5a74f1(0x1a8)][_0x5a74f1(0x1a7)](_0x4b5539=>{const _0x5c6b72=_0x5a74f1;_0x4b5539[_0x5c6b72(0x19f)](_0x25e64d);});}[_0x29c849(0x19e)](_0x2bc952,_0x538586){const _0xfc57c3=_0x29c849;for(const _0x17d4b1 of this[_0xfc57c3(0x1a8)]){const _0x2a13ab=_0x17d4b1;_0x2a13ab[_0xfc57c3(0x1aa)]['id']===_0x2bc952&&_0x2a13ab[_0xfc57c3(0x19e)](_0x538586);}}[_0x29c849(0x1ac)](_0x43a631,_0x1e2fef){const _0x2b225e=_0x29c849;this[_0x2b225e(0x197)](_0x2b225e(0x19c),{'source':_0x43a631,'resource':_0x1e2fef});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{ButtonView as _0x15452f,IconView as _0x594ac7,LabeledFieldView as th,createLabeledInputText as _0x317bf0}from'ckeditor5/src/ui.js';import{IconLoupe as _0x3780ce,IconCancel as _0x417cfa}from'ckeditor5/src/icons.js';import{getTranslation as _0x448b23}from'../../../../aicore/utils/common-translations.js';export class AIChatContextResourcesSearchInputView extends th{['iconView'];['resetButtonView'];['_viewConfig'];constructor(_0x2955ad){const t=_0x2955ad['t'],_0xd40095={'showResetButton':!0x0,'showIcon':!0x0,'creator':_0x317bf0,'label':_0x448b23(_0x2955ad,'AI_CHAT_SEARCH_RESOURCES')};super(_0x2955ad,_0xd40095['creator']),this['label']=_0xd40095['label'],this['_viewConfig']=_0xd40095,this['_viewConfig']['showIcon']&&this['_setupSearchIcon'](),this['_viewConfig']['showResetButton']&&this['_setupResetButton'](_0x2955ad,t),this['_setupEventListeners']();}['reset'](){this['fieldView']['reset'](),this['_viewConfig']['showResetButton']&&this['resetButtonView']&&(this['resetButtonView']['isVisible']=!0x1),this['search']('');}['search'](_0x467754){this['fire']('search',_0x467754);}['getQuery'](){return this['fieldView']['element']?.['value']||'';}['_setupSearchIcon'](){this['iconView']=new _0x594ac7(),this['iconView']['content']=_0x3780ce,this['fieldWrapperChildren']['add'](this['iconView'],0x0),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-icon'}});}['_setupResetButton'](_0x2001be,t){this['resetButtonView']=new _0x15452f(_0x2001be),this['resetButtonView']['set']({'label':t('Clear'),'icon':_0x417cfa,'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',_0x1b1df5=>!_0x1b1df5),this['fieldWrapperChildren']['add'](this['resetButtonView']),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-reset'}});}['_setupEventListeners'](){this['listenTo'](this['fieldView'],'input',()=>{this['search'](this['fieldView']['element']['value']);}),this['bind']('isEnabled')['to'](this);}}
23
+ import{ButtonView as _0xf100f3,IconView as _0x3313f5,LabeledFieldView as _0x5df8a9,createLabeledInputText as _0x3ece97}from'ckeditor5/src/ui.js';import{IconLoupe as _0x16c32a,IconCancel as _0xe3ad05}from'ckeditor5/src/icons.js';import{getTranslation as _0x305943}from'../../../../aicore/utils/common-translations.js';export class AIChatContextResourcesSearchInputView extends _0x5df8a9{['iconView'];['resetButtonView'];['_viewConfig'];constructor(_0x31c91c){const t=_0x31c91c['t'],_0x4ac875={'showResetButton':!0x0,'showIcon':!0x0,'creator':_0x3ece97,'label':_0x305943(_0x31c91c,'AI_CHAT_SEARCH_RESOURCES')};super(_0x31c91c,_0x4ac875['creator']),this['label']=_0x4ac875['label'],this['_viewConfig']=_0x4ac875,this['_viewConfig']['showIcon']&&this['_setupSearchIcon'](),this['_viewConfig']['showResetButton']&&this['_setupResetButton'](_0x31c91c,t),this['_setupEventListeners']();}['reset'](){this['fieldView']['reset'](),this['_viewConfig']['showResetButton']&&this['resetButtonView']&&(this['resetButtonView']['isVisible']=!0x1),this['search']('');}['search'](_0x4bfee3){this['fire']('search',_0x4bfee3);}['getQuery'](){return this['fieldView']['element']?.['value']||'';}['_setupSearchIcon'](){this['iconView']=new _0x3313f5(),this['iconView']['content']=_0x16c32a,this['fieldWrapperChildren']['add'](this['iconView'],0x0),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-icon'}});}['_setupResetButton'](_0x6cffe2,t){this['resetButtonView']=new _0xf100f3(_0x6cffe2),this['resetButtonView']['set']({'label':t('Clear'),'icon':_0xe3ad05,'class':'ck-search__reset','isVisible':!0x1,'tooltip':!0x0}),this['resetButtonView']['on']('execute',()=>{this['reset'](),this['focus'](),this['fire']('reset');}),this['resetButtonView']['bind']('isVisible')['to'](this['fieldView'],'isEmpty',_0x3c48b4=>!_0x3c48b4),this['fieldWrapperChildren']['add'](this['resetButtonView']),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-reset'}});}['_setupEventListeners'](){this['listenTo'](this['fieldView'],'input',()=>{this['search'](this['fieldView']['element']['value']);}),this['bind']('isEnabled')['to'](this);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0xb5c9(){const _0x1d2ad6=['highlightText','_createSearchSection','useDefaultFiltering','1634250xsnPHF','_createSearchView','aiChatResources','children','ck-ai-chat-resources','div','_createSkeletonView','8191710rgldOw','40bXkDNo','updateResourceState','loadSourceResources','_source','2375142wjBqFN','render','_skeletonLoader','ck\x20ck-search','isLoading','9166040FaQQMo','delegate','setResources','1219780AhqQZY','3EyzCTV','1162230RQrNpc','loadResources','setTemplate','addResourceToContext','fire','275jGRMEm','ck-hidden','_createResourcesListView','locale','_searchView','extendTemplate','set','_latestLoadResourcesUid','search','getQuery','bindTemplate','122088ximmim','_resourcesListView'];_0xb5c9=function(){return _0x1d2ad6;};return _0xb5c9();}const _0x886bdb=_0x3375;function _0x3375(_0x10873f,_0x5482b7){const _0xb5c9d0=_0xb5c9();return _0x3375=function(_0x33750b,_0xb964e5){_0x33750b=_0x33750b-0x15e;let _0x304b14=_0xb5c9d0[_0x33750b];return _0x304b14;},_0x3375(_0x10873f,_0x5482b7);}(function(_0x13c29a,_0x13b002){const _0x2e8b6f=_0x3375,_0x281fbc=_0x13c29a();while(!![]){try{const _0x411abc=parseInt(_0x2e8b6f(0x177))/0x1+parseInt(_0x2e8b6f(0x161))/0x2+parseInt(_0x2e8b6f(0x176))/0x3*(-parseInt(_0x2e8b6f(0x175))/0x4)+-parseInt(_0x2e8b6f(0x17c))/0x5*(-parseInt(_0x2e8b6f(0x187))/0x6)+parseInt(_0x2e8b6f(0x16d))/0x7+parseInt(_0x2e8b6f(0x172))/0x8+-parseInt(_0x2e8b6f(0x168))/0x9*(parseInt(_0x2e8b6f(0x169))/0xa);if(_0x411abc===_0x13b002)break;else _0x281fbc['push'](_0x281fbc['shift']());}catch(_0x1464bd){_0x281fbc['push'](_0x281fbc['shift']());}}}(_0xb5c9,0x9bb9b));import{View as _0x5515af,ViewCollection as _0x2d6991}from'ckeditor5/src/ui.js';import{uid as _0x35547d}from'ckeditor5/src/utils.js';import{AIChatContextResourcesListView as _0x39b9f4}from'./aichatresourceslistview.js';import{AIChatContextResourcesSearchInputView as _0x245574}from'./aichatresourcessearchinputview.js';import{AISkeletonView as _0x493632,SKELETON_DEFINITIONS as _0x8feb65}from'../../../../aicore/ui/aiskeleton.js';export class AIChatContextResourcesView extends _0x5515af{[_0x886bdb(0x180)];[_0x886bdb(0x188)];[_0x886bdb(0x16f)];[_0x886bdb(0x16c)];[_0x886bdb(0x164)];[_0x886bdb(0x183)]=null;constructor(_0x31374f,_0x83df5b){const _0x5c6244=_0x886bdb;super(_0x31374f),this[_0x5c6244(0x16c)]=_0x83df5b,this[_0x5c6244(0x182)](_0x5c6244(0x171),!0x0),this[_0x5c6244(0x180)]=this[_0x5c6244(0x162)]();const _0x337e6a=this[_0x5c6244(0x15f)]();this[_0x5c6244(0x188)]=this[_0x5c6244(0x17e)](),this[_0x5c6244(0x16f)]=this[_0x5c6244(0x167)](),this[_0x5c6244(0x164)]=new _0x2d6991([_0x337e6a,this[_0x5c6244(0x16f)],this[_0x5c6244(0x188)]]),this[_0x5c6244(0x179)]({'tag':_0x5c6244(0x166),'attributes':{'class':_0x5c6244(0x165)},'children':this[_0x5c6244(0x164)]});}[_0x886bdb(0x162)](){const _0x5af41b=_0x886bdb;return new _0x245574(this[_0x5af41b(0x17f)]);}[_0x886bdb(0x15f)](){const _0x391bb2=_0x886bdb,_0x329c5c=new _0x5515af(this[_0x391bb2(0x17f)]);return _0x329c5c[_0x391bb2(0x179)]({'tag':_0x391bb2(0x166),'attributes':{'class':_0x391bb2(0x170)},'children':[this[_0x391bb2(0x180)]]}),this[_0x391bb2(0x180)]['on'](_0x391bb2(0x184),(_0x57f383,_0x1ecf13)=>{const _0x5d0c70=_0x391bb2;this[_0x5d0c70(0x178)](_0x1ecf13),this[_0x5d0c70(0x16c)][_0x5d0c70(0x160)]&&this[_0x5d0c70(0x188)][_0x5d0c70(0x15e)](_0x1ecf13);}),_0x329c5c;}[_0x886bdb(0x17e)](){const _0x15c5c0=_0x886bdb,_0x4b2028=new _0x39b9f4(this[_0x15c5c0(0x17f)],this[_0x15c5c0(0x16c)]);return _0x4b2028[_0x15c5c0(0x173)](_0x15c5c0(0x17a))['to'](this),_0x4b2028[_0x15c5c0(0x181)]({'attributes':{'class':this[_0x15c5c0(0x186)]['if'](_0x15c5c0(0x171),_0x15c5c0(0x17d))}}),_0x4b2028;}[_0x886bdb(0x167)](){const _0x2c13f1=_0x886bdb,_0x23bcad=new _0x493632(this[_0x2c13f1(0x17f)],_0x8feb65[_0x2c13f1(0x163)]);return _0x23bcad[_0x2c13f1(0x181)]({'attributes':{'class':[this[_0x2c13f1(0x186)]['if'](_0x2c13f1(0x171),_0x2c13f1(0x17d),_0x5d77df=>!_0x5d77df)]}}),_0x23bcad;}[_0x886bdb(0x16e)](){const _0x1d7785=_0x886bdb;super[_0x1d7785(0x16e)](),this[_0x1d7785(0x178)]('');}[_0x886bdb(0x178)](_0x234d63){const _0x3eabe1=_0x886bdb,_0x50888f=_0x35547d();this[_0x3eabe1(0x183)]=_0x50888f,this[_0x3eabe1(0x17b)](_0x3eabe1(0x16b),{'sourceId':this[_0x3eabe1(0x16c)]['id'],'query':_0x234d63,'uid':_0x50888f}),this[_0x3eabe1(0x171)]=!0x0;}[_0x886bdb(0x174)](_0x5d151c,_0x4a9858){const _0x58b1e4=_0x886bdb;if(_0x4a9858&&_0x4a9858!==this[_0x58b1e4(0x183)])return;const _0x210ed0=this[_0x58b1e4(0x16c)][_0x58b1e4(0x160)]?this[_0x58b1e4(0x180)][_0x58b1e4(0x185)]():'';this[_0x58b1e4(0x188)][_0x58b1e4(0x174)](_0x5d151c,_0x210ed0),requestAnimationFrame(()=>{const _0x4d7768=_0x58b1e4;this[_0x4d7768(0x171)]=!0x1;});}[_0x886bdb(0x16a)](_0x1e50cf,_0x49b946){const _0x458d16=_0x886bdb;this[_0x458d16(0x188)][_0x458d16(0x16a)](_0x1e50cf,_0x49b946);}}
23
+ const _0x24a471=_0x55c4;(function(_0x19b880,_0x3d3b32){const _0x3a2d26=_0x55c4,_0x599b7b=_0x19b880();while(!![]){try{const _0xe72f60=parseInt(_0x3a2d26(0x12c))/0x1*(parseInt(_0x3a2d26(0x14c))/0x2)+-parseInt(_0x3a2d26(0x150))/0x3*(parseInt(_0x3a2d26(0x132))/0x4)+-parseInt(_0x3a2d26(0x130))/0x5*(-parseInt(_0x3a2d26(0x14d))/0x6)+parseInt(_0x3a2d26(0x144))/0x7+parseInt(_0x3a2d26(0x143))/0x8*(-parseInt(_0x3a2d26(0x148))/0x9)+-parseInt(_0x3a2d26(0x13d))/0xa+parseInt(_0x3a2d26(0x12f))/0xb;if(_0xe72f60===_0x3d3b32)break;else _0x599b7b['push'](_0x599b7b['shift']());}catch(_0x1a51c3){_0x599b7b['push'](_0x599b7b['shift']());}}}(_0x2dce,0x3fb8d));function _0x2dce(){const _0x101ca5=['_createSearchSection','1396532rHPkeg','ck-ai-chat-resources','fire','_source','_latestLoadResourcesUid','extendTemplate','render','loadResources','loadSourceResources','setResources','isLoading','4601800RYSNfX','ck\x20ck-search','_resourcesListView','_searchView','_createResourcesListView','children','4080488UFEKex','66360bFfzaB','useDefaultFiltering','_skeletonLoader','bindTemplate','9hoAIHU','addResourceToContext','set','_createSearchView','20BhcBCd','6DSyXAz','div','getQuery','3lIwMdy','updateResourceState','aiChatResources','search','highlightText','ck-hidden','locale','setTemplate','49199mrGhyE','_createSkeletonView','delegate','11214412CQDJxn','297085MFYbFS'];_0x2dce=function(){return _0x101ca5;};return _0x2dce();}import{View as _0x2984d5,ViewCollection as _0xf6284c}from'ckeditor5/src/ui.js';import{uid as _0x4bde25}from'ckeditor5/src/utils.js';import{AIChatContextResourcesListView as _0x18869b}from'./aichatresourceslistview.js';import{AIChatContextResourcesSearchInputView as _0x471d28}from'./aichatresourcessearchinputview.js';function _0x55c4(_0x149dbe,_0x2df0b0){const _0x2dceae=_0x2dce();return _0x55c4=function(_0x55c426,_0x2ea6a3){_0x55c426=_0x55c426-0x129;let _0x13e35d=_0x2dceae[_0x55c426];return _0x13e35d;},_0x55c4(_0x149dbe,_0x2df0b0);}import{AISkeletonView as _0xdc099b,SKELETON_DEFINITIONS as _0xc55e17}from'../../../../aicore/ui/aiskeleton.js';export class AIChatContextResourcesView extends _0x2984d5{[_0x24a471(0x140)];[_0x24a471(0x13f)];[_0x24a471(0x146)];[_0x24a471(0x135)];[_0x24a471(0x142)];[_0x24a471(0x136)]=null;constructor(_0x38cb08,_0x4d13a3){const _0x2a0f2d=_0x24a471;super(_0x38cb08),this[_0x2a0f2d(0x135)]=_0x4d13a3,this[_0x2a0f2d(0x14a)](_0x2a0f2d(0x13c),!0x0),this[_0x2a0f2d(0x140)]=this[_0x2a0f2d(0x14b)]();const _0x5ab7ab=this[_0x2a0f2d(0x131)]();this[_0x2a0f2d(0x13f)]=this[_0x2a0f2d(0x141)](),this[_0x2a0f2d(0x146)]=this[_0x2a0f2d(0x12d)](),this[_0x2a0f2d(0x142)]=new _0xf6284c([_0x5ab7ab,this[_0x2a0f2d(0x146)],this[_0x2a0f2d(0x13f)]]),this[_0x2a0f2d(0x12b)]({'tag':_0x2a0f2d(0x14e),'attributes':{'class':_0x2a0f2d(0x133)},'children':this[_0x2a0f2d(0x142)]});}[_0x24a471(0x14b)](){const _0x105c57=_0x24a471;return new _0x471d28(this[_0x105c57(0x12a)]);}[_0x24a471(0x131)](){const _0x1dd4ba=_0x24a471,_0xce9ec6=new _0x2984d5(this[_0x1dd4ba(0x12a)]);return _0xce9ec6[_0x1dd4ba(0x12b)]({'tag':_0x1dd4ba(0x14e),'attributes':{'class':_0x1dd4ba(0x13e)},'children':[this[_0x1dd4ba(0x140)]]}),this[_0x1dd4ba(0x140)]['on'](_0x1dd4ba(0x153),(_0x40d774,_0x143879)=>{const _0x30f9a1=_0x1dd4ba;this[_0x30f9a1(0x139)](_0x143879),this[_0x30f9a1(0x135)][_0x30f9a1(0x145)]&&this[_0x30f9a1(0x13f)][_0x30f9a1(0x154)](_0x143879);}),_0xce9ec6;}[_0x24a471(0x141)](){const _0x38e2e2=_0x24a471,_0x1818c4=new _0x18869b(this[_0x38e2e2(0x12a)],this[_0x38e2e2(0x135)]);return _0x1818c4[_0x38e2e2(0x12e)](_0x38e2e2(0x149))['to'](this),_0x1818c4[_0x38e2e2(0x137)]({'attributes':{'class':this[_0x38e2e2(0x147)]['if'](_0x38e2e2(0x13c),_0x38e2e2(0x129))}}),_0x1818c4;}[_0x24a471(0x12d)](){const _0x5ec6c3=_0x24a471,_0xf642a1=new _0xdc099b(this[_0x5ec6c3(0x12a)],_0xc55e17[_0x5ec6c3(0x152)]);return _0xf642a1[_0x5ec6c3(0x137)]({'attributes':{'class':[this[_0x5ec6c3(0x147)]['if'](_0x5ec6c3(0x13c),_0x5ec6c3(0x129),_0x546775=>!_0x546775)]}}),_0xf642a1;}[_0x24a471(0x138)](){const _0x466592=_0x24a471;super[_0x466592(0x138)](),this[_0x466592(0x139)]('');}[_0x24a471(0x139)](_0x20d901){const _0x578c6d=_0x24a471,_0x4c620f=_0x4bde25();this[_0x578c6d(0x136)]=_0x4c620f,this[_0x578c6d(0x134)](_0x578c6d(0x13a),{'sourceId':this[_0x578c6d(0x135)]['id'],'query':_0x20d901,'uid':_0x4c620f}),this[_0x578c6d(0x13c)]=!0x0;}[_0x24a471(0x13b)](_0xc79f0a,_0x2b67f5){const _0x452ccd=_0x24a471;if(_0x2b67f5&&_0x2b67f5!==this[_0x452ccd(0x136)])return;const _0x31343c=this[_0x452ccd(0x135)][_0x452ccd(0x145)]?this[_0x452ccd(0x140)][_0x452ccd(0x14f)]():'';this[_0x452ccd(0x13f)][_0x452ccd(0x13b)](_0xc79f0a,_0x31343c),requestAnimationFrame(()=>{const _0x6f6313=_0x452ccd;this[_0x6f6313(0x13c)]=!0x1;});}[_0x24a471(0x151)](_0x2563c7,_0x406620){const _0x47e010=_0x24a471;this[_0x47e010(0x13f)][_0x47e010(0x151)](_0x2563c7,_0x406620);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x3a91(_0x71a84f,_0x216167){const _0x3a892c=_0x3a89();return _0x3a91=function(_0x3a9149,_0x2ef66f){_0x3a9149=_0x3a9149-0x1e4;let _0x34a7ea=_0x3a892c[_0x3a9149];return _0x34a7ea;},_0x3a91(_0x71a84f,_0x216167);}const _0x27cc40=_0x3a91;(function(_0x2a3ae1,_0x474bf5){const _0x327da5=_0x3a91,_0x3360f9=_0x2a3ae1();while(!![]){try{const _0x165cf8=-parseInt(_0x327da5(0x1e7))/0x1+-parseInt(_0x327da5(0x1f5))/0x2*(parseInt(_0x327da5(0x1f1))/0x3)+-parseInt(_0x327da5(0x201))/0x4+parseInt(_0x327da5(0x1fd))/0x5*(-parseInt(_0x327da5(0x202))/0x6)+parseInt(_0x327da5(0x1e8))/0x7*(-parseInt(_0x327da5(0x1f4))/0x8)+-parseInt(_0x327da5(0x1f6))/0x9+parseInt(_0x327da5(0x203))/0xa*(parseInt(_0x327da5(0x1e4))/0xb);if(_0x165cf8===_0x474bf5)break;else _0x3360f9['push'](_0x3360f9['shift']());}catch(_0x100944){_0x3360f9['push'](_0x3360f9['shift']());}}}(_0x3a89,0xa7edf));function _0x3a89(){const _0x3681f6=['setTemplate','_createContextChips','render','3107856WdTIfr','42GVpDQP','1210tHrxVY','ck-ai-chat-context-chips-wrapper-balloon','449053gYOyTM','reorganizeChips','ck-reset_all','602494yUnrRy','28HOwdwt','destroy','_contextChips','querySelector','locale','_bodyCollection','_overflowManager','createCollection','add','15vjuLlp','element','ck-ai-chat-controls-button','1272512LaUJGf','55542feIILJ','8542071eqIaus','ck-ai-chat-context-chips-wrapper','ck-ai-chat__feed__context-chips','div','ck-ai-chat-context-controls__show-more-balloon-panel','ck-ai-chat-controls_context_show-more-button','setContainerElement','820040piJbYJ'];_0x3a89=function(){return _0x3681f6;};return _0x3a89();}import{View as _0x41253b}from'ckeditor5/src/ui.js';import{AIChatContextItemButtonView as _0x233929}from'../controls/aichatcontextitembuttonview.js';import{AIChatChipsOverflowManager as _0x3ae81f}from'../controls/aichatchipsoverflowmanager.js';const Fo=_0x27cc40(0x1f8),$o=_0x27cc40(0x1f7),qo=_0x27cc40(0x204),Vo=_0x27cc40(0x1f3),Io=_0x27cc40(0x1fb),Po=_0x27cc40(0x1fa);export class AIChatFeedContextChipsView extends _0x41253b{[_0x27cc40(0x1ea)]=this[_0x27cc40(0x1ef)]();[_0x27cc40(0x1ee)];[_0x27cc40(0x1ed)];constructor(_0xdaf29b,_0x29e4a5,_0xf40ac8){const _0xb973e5=_0x27cc40;super(_0xdaf29b),this[_0xb973e5(0x1ed)]=_0xf40ac8,this[_0xb973e5(0x1ff)](_0x29e4a5);const _0x375962={'cssClasses':{'showMoreButton':Io,'showMoreBalloon':Po,'overflowContainer':qo,'controlsButton':Vo}};this[_0xb973e5(0x1ee)]=new _0x3ae81f(_0xdaf29b,this[_0xb973e5(0x1ea)],_0x375962,this[_0xb973e5(0x1ed)],this),this[_0xb973e5(0x1fe)]({'tag':_0xb973e5(0x1f9),'attributes':{'class':[Fo,'ck',_0xb973e5(0x1e6)]},'children':[{'tag':_0xb973e5(0x1f9),'attributes':{'class':$o},'children':this[_0xb973e5(0x1ea)]}]});}[_0x27cc40(0x200)](){const _0x1c115c=_0x27cc40;super[_0x1c115c(0x200)]();const _0x1afe44=this[_0x1c115c(0x1f2)][_0x1c115c(0x1eb)]('.'+$o);_0x1afe44&&(this[_0x1c115c(0x1ee)][_0x1c115c(0x1fc)](_0x1afe44),this[_0x1c115c(0x1ee)][_0x1c115c(0x1e5)]());}[_0x27cc40(0x1e9)](){const _0x3e01cd=_0x27cc40;super[_0x3e01cd(0x1e9)](),this[_0x3e01cd(0x1ee)][_0x3e01cd(0x1e9)]();}[_0x27cc40(0x1ff)](_0x5dcaef){const _0xb62a25=_0x27cc40;for(const _0x25c0c1 of _0x5dcaef){const _0x1211b0=new _0x233929(this[_0xb62a25(0x1ec)],_0x25c0c1,!0x0,!0x1);this[_0xb62a25(0x1ea)][_0xb62a25(0x1f0)](_0x1211b0);}}}
23
+ function _0x25e9(){const _0x3e6c27=['3omxdEg','_contextChips','ck-reset_all','_createContextChips','ck-ai-chat-context-controls__show-more-balloon-panel','7NOTFel','ck-ai-chat-controls-button','setTemplate','setContainerElement','12669660xZpzcR','createCollection','locale','_bodyCollection','reorganizeChips','render','ck-ai-chat-context-chips-wrapper','5644116IaoEzm','add','109370OcSdhW','ck-ai-chat-controls_context_show-more-button','24758844WuqbWB','1302162WBpIHe','ck-ai-chat-context-chips-wrapper-balloon','35YNPfpX','ck-ai-chat__feed__context-chips','1scyTXO','element','926322zfOsrA','_overflowManager','993056bIbkVF','1518MbWWbP','div','querySelector','destroy'];_0x25e9=function(){return _0x3e6c27;};return _0x25e9();}const _0x34e105=_0xdaba;(function(_0x41627f,_0x3d637d){const _0x23efd0=_0xdaba,_0x2abfb3=_0x41627f();while(!![]){try{const _0x54e552=-parseInt(_0x23efd0(0xd0))/0x1*(-parseInt(_0x23efd0(0xcc))/0x2)+-parseInt(_0x23efd0(0xb7))/0x3*(-parseInt(_0x23efd0(0xc7))/0x4)+parseInt(_0x23efd0(0xce))/0x5*(parseInt(_0x23efd0(0xd2))/0x6)+parseInt(_0x23efd0(0xbc))/0x7*(-parseInt(_0x23efd0(0xd4))/0x8)+parseInt(_0x23efd0(0xc0))/0x9+parseInt(_0x23efd0(0xc9))/0xa*(-parseInt(_0x23efd0(0xd5))/0xb)+-parseInt(_0x23efd0(0xcb))/0xc;if(_0x54e552===_0x3d637d)break;else _0x2abfb3['push'](_0x2abfb3['shift']());}catch(_0xb39148){_0x2abfb3['push'](_0x2abfb3['shift']());}}}(_0x25e9,0xd077c));import{View as _0x423ec2}from'ckeditor5/src/ui.js';import{AIChatContextItemButtonView as _0x4bbadc}from'../controls/aichatcontextitembuttonview.js';function _0xdaba(_0x1a36d7,_0x3105ef){const _0x25e915=_0x25e9();return _0xdaba=function(_0xdaba37,_0x539d21){_0xdaba37=_0xdaba37-0xb5;let _0x2c78a5=_0x25e915[_0xdaba37];return _0x2c78a5;},_0xdaba(_0x1a36d7,_0x3105ef);}import{AIChatChipsOverflowManager as _0x2826ff}from'../controls/aichatchipsoverflowmanager.js';const po=_0x34e105(0xcf),wo=_0x34e105(0xc6),_o=_0x34e105(0xcd),uo=_0x34e105(0xbd),xo=_0x34e105(0xca),mo=_0x34e105(0xbb);export class AIChatFeedContextChipsView extends _0x423ec2{[_0x34e105(0xb8)]=this[_0x34e105(0xc1)]();[_0x34e105(0xd3)];[_0x34e105(0xc3)];constructor(_0x8bbb14,_0x1aaace,_0x218c18){const _0x42f8c4=_0x34e105;super(_0x8bbb14),this[_0x42f8c4(0xc3)]=_0x218c18,this[_0x42f8c4(0xba)](_0x1aaace);const _0x54d61f={'cssClasses':{'showMoreButton':xo,'showMoreBalloon':mo,'overflowContainer':_o,'controlsButton':uo}};this[_0x42f8c4(0xd3)]=new _0x2826ff(_0x8bbb14,this[_0x42f8c4(0xb8)],_0x54d61f,this[_0x42f8c4(0xc3)],this),this[_0x42f8c4(0xbe)]({'tag':_0x42f8c4(0xd6),'attributes':{'class':[po,'ck',_0x42f8c4(0xb9)]},'children':[{'tag':_0x42f8c4(0xd6),'attributes':{'class':wo},'children':this[_0x42f8c4(0xb8)]}]});}[_0x34e105(0xc5)](){const _0x377c3d=_0x34e105;super[_0x377c3d(0xc5)]();const _0x226485=this[_0x377c3d(0xd1)][_0x377c3d(0xb5)]('.'+wo);_0x226485&&(this[_0x377c3d(0xd3)][_0x377c3d(0xbf)](_0x226485),this[_0x377c3d(0xd3)][_0x377c3d(0xc4)]());}[_0x34e105(0xb6)](){const _0x860e1=_0x34e105;super[_0x860e1(0xb6)](),this[_0x860e1(0xd3)][_0x860e1(0xb6)]();}[_0x34e105(0xba)](_0x489d1c){const _0x30b209=_0x34e105;for(const _0x4e0707 of _0x489d1c){const _0x469bbd=new _0x4bbadc(this[_0x30b209(0xc2)],_0x4e0707,!0x0,!0x1);this[_0x30b209(0xb8)][_0x30b209(0xc8)](_0x469bbd);}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x291914=_0x4a38;(function(_0x515bf7,_0x2cd8ea){var _0x33fae5=_0x4a38,_0xc5fbe6=_0x515bf7();while(!![]){try{var _0xe492=-parseInt(_0x33fae5(0x96))/0x1+-parseInt(_0x33fae5(0x9f))/0x2+parseInt(_0x33fae5(0x99))/0x3+parseInt(_0x33fae5(0x94))/0x4+parseInt(_0x33fae5(0x92))/0x5+parseInt(_0x33fae5(0x9d))/0x6+-parseInt(_0x33fae5(0x95))/0x7*(parseInt(_0x33fae5(0x93))/0x8);if(_0xe492===_0x2cd8ea)break;else _0xc5fbe6['push'](_0xc5fbe6['shift']());}catch(_0x4de701){_0xc5fbe6['push'](_0xc5fbe6['shift']());}}}(_0x5015,0xd9bb9));function _0x4a38(_0x30b435,_0x441858){var _0x5015ec=_0x5015();return _0x4a38=function(_0x4a382a,_0x593969){_0x4a382a=_0x4a382a-0x91;var _0x2d955c=_0x5015ec[_0x4a382a];return _0x2d955c;},_0x4a38(_0x30b435,_0x441858);}function _0x5015(){var _0xcf2842=['warning','level','markAsDone','ck-ai-chat-error','6888830sZUOuX','8478536dkJbby','6104040CAmrGH','14XnNicC','395478CwoUmo','options','initialContent','794328beiWDS','element','ck-ai-chat-error_warning','render','3688182prcEuJ','innerHTML','752608ACBtwI','extendTemplate','setContent'];_0x5015=function(){return _0xcf2842;};return _0x5015();}import{AIChatFeedItemView as _0x264a27}from'./aichatfeeditemview.js';export class AIChatFeedErrorItemView extends _0x264a27{constructor(_0x5be50c){var _0x35b919=_0x4a38;super(_0x5be50c),this[_0x35b919(0xa0)]({'attributes':{'class':[_0x35b919(0x91),_0x35b919(0xa2)===_0x5be50c[_0x35b919(0xa3)]?_0x35b919(0x9b):'']}});}[_0x291914(0x9c)](){var _0x300669=_0x291914;super[_0x300669(0x9c)](),this[_0x300669(0xa1)](this[_0x300669(0x97)][_0x300669(0x98)]),this[_0x300669(0xa4)]();}[_0x291914(0xa1)](_0x4a39eb){var _0x209a4b=_0x291914;this[_0x209a4b(0x9a)][_0x209a4b(0x9e)]=_0x4a39eb;}}
23
+ function _0x2ec3(){var _0x449bba=['initialContent','78904ChVvNb','1162421woSIOT','6qTgGUm','warning','element','2390asXxew','336196RGgTDg','markAsDone','setContent','42zdwQPr','4021565xtUpPq','render','312yhDRFo','13DGkHsq','9PMDTLG','options','303120OUjEZC','ck-ai-chat-error_warning','24211bPrVtE','6121208QdCOyN','extendTemplate','level','ck-ai-chat-error','innerHTML'];_0x2ec3=function(){return _0x449bba;};return _0x2ec3();}var _0x267ca2=_0x447b;(function(_0xddebe1,_0x23e1e8){var _0x33e5da=_0x447b,_0xaf1670=_0xddebe1();while(!![]){try{var _0x551c2d=parseInt(_0x33e5da(0x109))/0x1*(parseInt(_0x33e5da(0xfc))/0x2)+-parseInt(_0x33e5da(0xfe))/0x3*(parseInt(_0x33e5da(0x10c))/0x4)+parseInt(_0x33e5da(0x106))/0x5+-parseInt(_0x33e5da(0x105))/0x6*(-parseInt(_0x33e5da(0x102))/0x7)+-parseInt(_0x33e5da(0x10f))/0x8*(-parseInt(_0x33e5da(0x10a))/0x9)+-parseInt(_0x33e5da(0x101))/0xa*(-parseInt(_0x33e5da(0x10e))/0xb)+parseInt(_0x33e5da(0x108))/0xc*(-parseInt(_0x33e5da(0xfd))/0xd);if(_0x551c2d===_0x23e1e8)break;else _0xaf1670['push'](_0xaf1670['shift']());}catch(_0x3961f1){_0xaf1670['push'](_0xaf1670['shift']());}}}(_0x2ec3,0x724cd));import{AIChatFeedItemView as _0x4056e0}from'./aichatfeeditemview.js';function _0x447b(_0x287910,_0x3ad407){var _0x2ec38d=_0x2ec3();return _0x447b=function(_0x447b0f,_0x230722){_0x447b0f=_0x447b0f-0xfc;var _0x58f01b=_0x2ec38d[_0x447b0f];return _0x58f01b;},_0x447b(_0x287910,_0x3ad407);}export class AIChatFeedErrorItemView extends _0x4056e0{constructor(_0x4d274f){var _0x4f894a=_0x447b;super(_0x4d274f),this[_0x4f894a(0x110)]({'attributes':{'class':[_0x4f894a(0x112),_0x4f894a(0xff)===_0x4d274f[_0x4f894a(0x111)]?_0x4f894a(0x10d):'']}});}[_0x267ca2(0x107)](){var _0x194473=_0x267ca2;super[_0x194473(0x107)](),this[_0x194473(0x104)](this[_0x194473(0x10b)][_0x194473(0x114)]),this[_0x194473(0x103)]();}[_0x267ca2(0x104)](_0x4804fb){var _0x5779a9=_0x267ca2;this[_0x5779a9(0x100)][_0x5779a9(0x113)]=_0x4804fb;}}
@@ -12,6 +12,7 @@ import { AIChatFeedItemView, type AIChatItemViewOptions } from './aichatfeeditem
12
12
  * and should be displayed above all replies for that interaction.
13
13
  */
14
14
  export declare class AIChatFeedInteractionHeaderView extends AIChatFeedItemView<AIChatFeedInteractionHeaderViewOptions> {
15
+ capabilities: AICapabilitiesConfig;
15
16
  /**
16
17
  * @inheritDoc
17
18
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x26abff,_0x585b77){const _0xb26254=_0x2f21,_0x3f4278=_0x26abff();while(!![]){try{const _0x3cc56=-parseInt(_0xb26254(0x19f))/0x1*(-parseInt(_0xb26254(0x1aa))/0x2)+parseInt(_0xb26254(0x19a))/0x3*(parseInt(_0xb26254(0x1a7))/0x4)+parseInt(_0xb26254(0x1a6))/0x5*(parseInt(_0xb26254(0x1a8))/0x6)+parseInt(_0xb26254(0x19d))/0x7+parseInt(_0xb26254(0x196))/0x8+parseInt(_0xb26254(0x198))/0x9*(-parseInt(_0xb26254(0x1a2))/0xa)+-parseInt(_0xb26254(0x19c))/0xb;if(_0x3cc56===_0x585b77)break;else _0x3f4278['push'](_0x3f4278['shift']());}catch(_0xfc9807){_0x3f4278['push'](_0x3f4278['shift']());}}}(_0x28e3,0xa432d));function _0x28e3(){const _0x5b96e5=['extendTemplate','4979420zqVorn','content','span','setTemplate','401845WKtpva','1256HSnSjg','72JQsYhI','ck-ai-chat__feed__interaction-header','3716LaeLVN','add','ck-hidden','ck-ai-chat__feed__interaction-header__capabilities','AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH_REASONING','div','push','225944iJkyEP','capabilities','18eTwwGe','children','11892StcKjN','AI_CHAT_FEED_REPLY_ITEM_USED_REASONING','9683564tVbkcm','2049726HHlcVb','AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH','10UZrAbp','ck-ai-chat__feed__interaction-header__capabilities__text'];_0x28e3=function(){return _0x5b96e5;};return _0x28e3();}import{IconBulb as _0xe2de64,IconWeb as _0x2cac03}from'@ckeditor/ckeditor5-icons';import{IconView as _0x2dfb74,View as _0x11c4fc}from'ckeditor5/src/ui.js';function _0x2f21(_0x24fb22,_0x6b1a15){const _0x28e3fe=_0x28e3();return _0x2f21=function(_0x2f21fc,_0x340bd7){_0x2f21fc=_0x2f21fc-0x190;let _0x468265=_0x28e3fe[_0x2f21fc];return _0x468265;},_0x2f21(_0x24fb22,_0x6b1a15);}import{AIChatFeedItemView as _0x46b2af}from'./aichatfeeditemview.js';import{getTranslation as _0x256b3f}from'../../../aicore/utils/common-translations.js';export class AIChatFeedInteractionHeaderView extends _0x46b2af{constructor(_0x380f59,_0x1bb9ac){const _0x24c77e=_0x2f21;super(_0x1bb9ac);const {isWebSearchEnabled:_0x5adfb4,isReasoningEnabled:_0xb253b}=_0x1bb9ac[_0x24c77e(0x197)],_0x1c2240=[];let _0x22f626='';_0x5adfb4&&_0xb253b?(_0x22f626=_0x256b3f(_0x380f59,_0x24c77e(0x193)),_0x1c2240[_0x24c77e(0x195)](e_(_0x2cac03)),_0x1c2240[_0x24c77e(0x195)](e_(_0xe2de64))):_0x5adfb4?(_0x22f626=_0x256b3f(_0x380f59,_0x24c77e(0x19e)),_0x1c2240[_0x24c77e(0x195)](e_(_0x2cac03))):_0xb253b&&(_0x22f626=_0x256b3f(_0x380f59,_0x24c77e(0x19b)),_0x1c2240[_0x24c77e(0x195)](e_(_0xe2de64))),this[_0x24c77e(0x1a1)]({'attributes':{'class':[_0x24c77e(0x1a9),_0x22f626?'':_0x24c77e(0x191)]}});const _0x3c6568=new _0x11c4fc();_0x3c6568[_0x24c77e(0x1a5)]({'tag':_0x24c77e(0x194),'attributes':{'class':['ck',_0x24c77e(0x192)]},'children':[..._0x1c2240,{'tag':_0x24c77e(0x1a4),'attributes':{'class':[_0x24c77e(0x1a0)]},'children':[_0x22f626]}]}),this[_0x24c77e(0x199)][_0x24c77e(0x190)](_0x3c6568);}}function e_(_0x155b54){const _0x63e54c=_0x2f21,_0x3635db=new _0x2dfb74();return _0x3635db[_0x63e54c(0x1a3)]=_0x155b54,_0x3635db;}
23
+ const _0x36be17=_0x2b06;(function(_0x302142,_0x177514){const _0x219dfb=_0x2b06,_0x3c8bcf=_0x302142();while(!![]){try{const _0x5a2949=-parseInt(_0x219dfb(0x94))/0x1*(-parseInt(_0x219dfb(0x8e))/0x2)+parseInt(_0x219dfb(0xab))/0x3*(parseInt(_0x219dfb(0x9b))/0x4)+-parseInt(_0x219dfb(0xaa))/0x5*(-parseInt(_0x219dfb(0xa3))/0x6)+parseInt(_0x219dfb(0xa6))/0x7*(parseInt(_0x219dfb(0xa9))/0x8)+parseInt(_0x219dfb(0x90))/0x9*(parseInt(_0x219dfb(0x92))/0xa)+parseInt(_0x219dfb(0xa4))/0xb*(-parseInt(_0x219dfb(0x96))/0xc)+-parseInt(_0x219dfb(0xa5))/0xd*(parseInt(_0x219dfb(0x97))/0xe);if(_0x5a2949===_0x177514)break;else _0x3c8bcf['push'](_0x3c8bcf['shift']());}catch(_0x55ca39){_0x3c8bcf['push'](_0x3c8bcf['shift']());}}}(_0x2a63,0x5109f));import{IconBulb as _0x1f29be,IconWeb as _0x18065c}from'@ckeditor/ckeditor5-icons';function _0x2a63(){const _0x51dca1=['2900628qJxXMm','1794947uQwELQ','355979kHacPV','21dsirzR','children','ck-hidden','1418248kUidrn','5yckCsJ','153xwjceB','30042cggEeP','add','4946436VjqFjs','capabilities','10ZoPecC','div','10ZyfwXV','AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH_REASONING','12NLzPnJ','672yVoqCZ','ck-ai-chat__feed__interaction-header__capabilities','span','ck-ai-chat__feed__interaction-header','7404FAZGWs','AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH','push','AI_CHAT_FEED_REPLY_ITEM_USED_REASONING','content','ck-ai-chat__feed__interaction-header__capabilities__text','setTemplate','extendTemplate'];_0x2a63=function(){return _0x51dca1;};return _0x2a63();}import{IconView as _0x4dc0cf,View as _0x1c2881}from'ckeditor5/src/ui.js';import{AIChatFeedItemView as _0x4a4a27}from'./aichatfeeditemview.js';import{getTranslation as _0x376303}from'../../../aicore/utils/common-translations.js';export class AIChatFeedInteractionHeaderView extends _0x4a4a27{[_0x36be17(0x91)];constructor(_0x2f4872,_0x5c517b){const _0x252501=_0x36be17;super(_0x5c517b);const {isWebSearchEnabled:_0x406742,isReasoningEnabled:_0x58b4aa}=_0x5c517b[_0x252501(0x91)],_0x722b2e=[];let _0x20c8b1='';_0x406742&&_0x58b4aa?(_0x20c8b1=_0x376303(_0x2f4872,_0x252501(0x95)),_0x722b2e[_0x252501(0x9d)](ia(_0x18065c)),_0x722b2e[_0x252501(0x9d)](ia(_0x1f29be))):_0x406742?(_0x20c8b1=_0x376303(_0x2f4872,_0x252501(0x9c)),_0x722b2e[_0x252501(0x9d)](ia(_0x18065c))):_0x58b4aa&&(_0x20c8b1=_0x376303(_0x2f4872,_0x252501(0x9e)),_0x722b2e[_0x252501(0x9d)](ia(_0x1f29be))),this[_0x252501(0xa2)]({'attributes':{'class':[_0x252501(0x9a),_0x20c8b1?'':_0x252501(0xa8)]}});const _0x21c0fc=new _0x1c2881();_0x21c0fc[_0x252501(0xa1)]({'tag':_0x252501(0x93),'attributes':{'class':['ck',_0x252501(0x98)]},'children':[..._0x722b2e,{'tag':_0x252501(0x99),'attributes':{'class':[_0x252501(0xa0)]},'children':[_0x20c8b1]}]}),this[_0x252501(0xa7)][_0x252501(0x8f)](_0x21c0fc),this[_0x252501(0x91)]=_0x5c517b[_0x252501(0x91)];}}function _0x2b06(_0x2b244c,_0x26ac51){const _0x2a63ab=_0x2a63();return _0x2b06=function(_0x2b0694,_0x2c76f2){_0x2b0694=_0x2b0694-0x8e;let _0xd17227=_0x2a63ab[_0x2b0694];return _0xd17227;},_0x2b06(_0x2b244c,_0x26ac51);}function ia(_0x4e3fb3){const _0x426d29=_0x36be17,_0x402865=new _0x4dc0cf();return _0x402865[_0x426d29(0x9f)]=_0x4e3fb3,_0x402865;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x29f9e4=_0x4413;(function(_0x351a51,_0x5893f4){const _0x41ad63=_0x4413,_0x3ac595=_0x351a51();while(!![]){try{const _0x509442=parseInt(_0x41ad63(0x6f))/0x1+-parseInt(_0x41ad63(0x79))/0x2*(-parseInt(_0x41ad63(0x86))/0x3)+-parseInt(_0x41ad63(0x8a))/0x4*(parseInt(_0x41ad63(0x87))/0x5)+parseInt(_0x41ad63(0x85))/0x6+-parseInt(_0x41ad63(0x72))/0x7*(-parseInt(_0x41ad63(0x78))/0x8)+-parseInt(_0x41ad63(0x77))/0x9*(parseInt(_0x41ad63(0x8d))/0xa)+-parseInt(_0x41ad63(0x7a))/0xb;if(_0x509442===_0x5893f4)break;else _0x3ac595['push'](_0x3ac595['shift']());}catch(_0x49b501){_0x3ac595['push'](_0x3ac595['shift']());}}}(_0x3416,0xad00e));function _0x3416(){const _0x4889fe=['7hFcvBH','div','[data-id]','streamIntoElement','cleanUpAnimations','9MsamLS','10700296EZNpMe','655258ugHmyH','19449188lilHhX','querySelectorAll','removeAttribute','set','markAsDone','htmlStreamer','animation:\x20ck-html-streamer-fade-in\x20.5s','content','ck-ai-chat__feed__item_done','isVisible','options','5272818toDSUj','3GZSoKa','615oPnUoy','data-id','ck-hidden','14212Hoarpj','element','children','6239170qHcNAn','ck-ai-chat__feed__text-item','bindTemplate','stream','createCollection','setTemplate','ck-ai-chat__feed__item','993697FXHaBu','isDone','forEach'];_0x3416=function(){return _0x4889fe;};return _0x3416();}import{View as _0x547bf3}from'ckeditor5/src/ui.js';function _0x4413(_0x274309,_0xbe9a6){const _0x341678=_0x3416();return _0x4413=function(_0x44131c,_0x24148d){_0x44131c=_0x44131c-0x6c;let _0x36642f=_0x341678[_0x44131c];return _0x36642f;},_0x4413(_0x274309,_0xbe9a6);}import{HTMLStreamer as _0x35ced0}from'../../../aicore/utils/htmlstreamer.js';export class AIChatFeedItemView extends _0x547bf3{[_0x29f9e4(0x84)];[_0x29f9e4(0x81)]='';[_0x29f9e4(0x7f)];[_0x29f9e4(0x8c)];constructor(_0x550080){const _0x69ec6a=_0x29f9e4;super();const _0x219db8=this[_0x69ec6a(0x8f)];this[_0x69ec6a(0x7d)](_0x69ec6a(0x70),!0x1),this[_0x69ec6a(0x7d)](_0x69ec6a(0x83),!0x0),this[_0x69ec6a(0x7f)]=new _0x35ced0({'textNodeStyle':_0x69ec6a(0x80),'delay':0x14}),this[_0x69ec6a(0x84)]=_0x550080,this[_0x69ec6a(0x8c)]=this[_0x69ec6a(0x6c)](),this[_0x69ec6a(0x6d)]({'tag':_0x69ec6a(0x73),'attributes':{'class':['ck',_0x69ec6a(0x6e),_0x219db8['if'](_0x69ec6a(0x70),_0x69ec6a(0x82)),_0x219db8['if'](_0x69ec6a(0x83),_0x69ec6a(0x89),_0x4ce81b=>!_0x4ce81b),_0x69ec6a(0x8e)],'data-cke-ai-id':this[_0x69ec6a(0x84)]['id']},'children':this[_0x69ec6a(0x8c)]});}[_0x29f9e4(0x7e)](){const _0x2f1c68=_0x29f9e4;this[_0x2f1c68(0x7f)][_0x2f1c68(0x76)]({'targetElement':this[_0x2f1c68(0x8b)]}),this[_0x2f1c68(0x8b)][_0x2f1c68(0x7b)](_0x2f1c68(0x74))[_0x2f1c68(0x71)](_0x49deef=>{const _0xc3ec05=_0x2f1c68;_0x49deef[_0xc3ec05(0x7c)](_0xc3ec05(0x88));}),this[_0x2f1c68(0x70)]=!0x0;}async[_0x29f9e4(0x75)](_0x1090af,_0x4f56cb,_0x1c8a41){const _0x3c2552=_0x29f9e4;await this[_0x3c2552(0x7f)][_0x3c2552(0x90)]({'document':_0x1090af,'targetElement':_0x4f56cb,'abortSignal':_0x1c8a41});}}
23
+ const _0x3f79cc=_0xe7eb;(function(_0x400d61,_0x3140aa){const _0x2908c7=_0xe7eb,_0xe24016=_0x400d61();while(!![]){try{const _0x4dc923=parseInt(_0x2908c7(0xc2))/0x1*(-parseInt(_0x2908c7(0xda))/0x2)+-parseInt(_0x2908c7(0xb9))/0x3*(-parseInt(_0x2908c7(0xcf))/0x4)+-parseInt(_0x2908c7(0xc3))/0x5*(parseInt(_0x2908c7(0xd8))/0x6)+-parseInt(_0x2908c7(0xd0))/0x7+-parseInt(_0x2908c7(0xb7))/0x8+-parseInt(_0x2908c7(0xbf))/0x9*(parseInt(_0x2908c7(0xb6))/0xa)+-parseInt(_0x2908c7(0xbc))/0xb*(-parseInt(_0x2908c7(0xd7))/0xc);if(_0x4dc923===_0x3140aa)break;else _0xe24016['push'](_0xe24016['shift']());}catch(_0x2fe9ee){_0xe24016['push'](_0xe24016['shift']());}}}(_0x3263,0x7deda));import{View as _0x246fc4}from'ckeditor5/src/ui.js';function _0xe7eb(_0x161831,_0xd7eed0){const _0x326350=_0x3263();return _0xe7eb=function(_0xe7eb02,_0x277087){_0xe7eb02=_0xe7eb02-0xb5;let _0x21f23c=_0x326350[_0xe7eb02];return _0x21f23c;},_0xe7eb(_0x161831,_0xd7eed0);}import{HTMLStreamer as _0x1fc81d}from'../../../aicore/utils/htmlstreamer.js';export class AIChatFeedItemView extends _0x246fc4{[_0x3f79cc(0xd3)];[_0x3f79cc(0xc7)]='';[_0x3f79cc(0xc5)];[_0x3f79cc(0xbb)];constructor(_0x1f3040){const _0x52a7ce=_0x3f79cc;super();const _0x454809=this[_0x52a7ce(0xb5)];this[_0x52a7ce(0xd1)](_0x52a7ce(0xba),!0x1),this[_0x52a7ce(0xd1)](_0x52a7ce(0xc6),!0x0),this[_0x52a7ce(0xc5)]=new _0x1fc81d({'textNodeStyle':_0x52a7ce(0xcb),'delay':0x14}),this[_0x52a7ce(0xd3)]=_0x1f3040,this[_0x52a7ce(0xbb)]=this[_0x52a7ce(0xd5)](),this[_0x52a7ce(0xce)]({'tag':_0x52a7ce(0xd2),'attributes':{'class':['ck',_0x52a7ce(0xc9),_0x454809['if'](_0x52a7ce(0xba),_0x52a7ce(0xbe)),_0x454809['if'](_0x52a7ce(0xc6),_0x52a7ce(0xc1),_0x439a82=>!_0x439a82),_0x52a7ce(0xd4)],'data-cke-ai-id':this[_0x52a7ce(0xd3)]['id']},'children':this[_0x52a7ce(0xbb)]});}[_0x3f79cc(0xbd)](){const _0x2714d8=_0x3f79cc;this[_0x2714d8(0xc5)][_0x2714d8(0xd6)]({'targetElement':this[_0x2714d8(0xcd)]}),this[_0x2714d8(0xcd)][_0x2714d8(0xc0)](_0x2714d8(0xca))[_0x2714d8(0xb8)](_0x39ad87=>{const _0x1c50eb=_0x2714d8;_0x39ad87[_0x1c50eb(0xc8)](_0x1c50eb(0xcc));}),this[_0x2714d8(0xba)]=!0x0;}async[_0x3f79cc(0xd9)](_0x3310b7,_0x11cf59,_0x5e8a0d){const _0xd939c=_0x3f79cc;await this[_0xd939c(0xc5)][_0xd939c(0xc4)]({'document':_0x3310b7,'targetElement':_0x11cf59,'abortSignal':_0x5e8a0d});}}function _0x3263(){const _0x399bf4=['[data-id]','animation:\x20ck-html-streamer-fade-in\x20.5s','data-id','element','setTemplate','244WiPAzC','4502911lJunmr','set','div','options','ck-ai-chat__feed__text-item','createCollection','cleanUpAnimations','18168OXUwpz','1506qSyzCQ','streamIntoElement','84FgLZSH','bindTemplate','10OfHOvs','6262032ZPXwEJ','forEach','13674sPTBRU','isDone','children','22363qpVfLu','markAsDone','ck-ai-chat__feed__item_done','1547982waorYn','querySelectorAll','ck-hidden','20677GyNzjb','7445GmKFjr','stream','htmlStreamer','isVisible','content','removeAttribute','ck-ai-chat__feed__item'];_0x3263=function(){return _0x399bf4;};return _0x3263();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2610b3=_0xd7d6;(function(_0x481eca,_0x1bd1aa){const _0x409707=_0xd7d6,_0x3238c0=_0x481eca();while(!![]){try{const _0x2a1320=parseInt(_0x409707(0x9d))/0x1+-parseInt(_0x409707(0x96))/0x2*(parseInt(_0x409707(0x89))/0x3)+parseInt(_0x409707(0x80))/0x4*(-parseInt(_0x409707(0x98))/0x5)+parseInt(_0x409707(0x7b))/0x6*(-parseInt(_0x409707(0x8c))/0x7)+-parseInt(_0x409707(0x7c))/0x8*(parseInt(_0x409707(0x82))/0x9)+parseInt(_0x409707(0x87))/0xa*(parseInt(_0x409707(0x86))/0xb)+parseInt(_0x409707(0x8b))/0xc;if(_0x2a1320===_0x1bd1aa)break;else _0x3238c0['push'](_0x3238c0['shift']());}catch(_0x49af11){_0x3238c0['push'](_0x3238c0['shift']());}}}(_0x1a49,0xbec66));function _0xd7d6(_0x38541f,_0x433b51){const _0x1a49a9=_0x1a49();return _0xd7d6=function(_0xd7d688,_0x5e9f41){_0xd7d688=_0xd7d688-0x7b;let _0x1db9e0=_0x1a49a9[_0xd7d688];return _0x1db9e0;},_0xd7d6(_0x38541f,_0x433b51);}import{AIChatFeedItemView as _0x1301ce}from'./aichatfeeditemview.js';import{parse as _0x1ca026,render as _0x457c64}from'../../../aicore/utils/htmlparser.js';import{View as _0x452022}from'ckeditor5/src/ui.js';function _0x1a49(){const _0xecef51=['70HZqnWG','replyContainer','5469EsSXBw','updateSources','38591496OEivcq','42SAFaIy','ck-ai-chat__feed__ai-reply','markAsDone','isVisible','add','addMany','extendTemplate','ck-ai-chat__feed__ai-reply-container','streamIntoElement','options','430eNuBks','streaming','1894765oGKQMJ','updateContent','ck-reset_all-excluded','render','div','235906HzEcgY','initialContent','961092pwzdho','137688qkZxOq','locale','setTemplate','map','4IwoYpz','element','513jrRJOT','static','children','innerHTML','66891caBXki'];_0x1a49=function(){return _0xecef51;};return _0x1a49();}import{AIWebSourcesView as _0x30f922,AIWebSourceView as _0x38ba06}from'../../../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';export class AIChatFeedReplyItemView extends _0x1301ce{[_0x2610b3(0x88)];constructor(_0x283771,_0x3c8f30){const _0x430e13=_0x2610b3;super(_0x3c8f30),this[_0x430e13(0x7d)]=_0x283771,this[_0x430e13(0x92)]({'attributes':{'class':[_0x430e13(0x8d)]}}),this[_0x430e13(0x88)]=new _0x452022(),this[_0x430e13(0x88)][_0x430e13(0x7e)]({'tag':_0x430e13(0x9c),'attributes':{'class':['ck',_0x430e13(0x9a),_0x430e13(0x93)]}}),this[_0x430e13(0x84)][_0x430e13(0x90)](this[_0x430e13(0x88)]);}async[_0x2610b3(0x9b)](){const _0x3a610e=_0x2610b3;super[_0x3a610e(0x9b)](),this[_0x3a610e(0x95)][_0x3a610e(0x9e)]&&(await this[_0x3a610e(0x99)]({'parsedContent':_0x1ca026(this[_0x3a610e(0x95)][_0x3a610e(0x9e)]),'renderingStrategy':_0x3a610e(0x83)}),this[_0x3a610e(0x8e)]());}async[_0x2610b3(0x99)]({parsedContent:_0x104f54,renderingStrategy:_0x3825ca,abortSignal:_0x457cb0}){const _0x2208a3=_0x2610b3;_0x2208a3(0x97)===_0x3825ca?await this[_0x2208a3(0x94)](_0x104f54,this[_0x2208a3(0x88)][_0x2208a3(0x81)],_0x457cb0):this[_0x2208a3(0x88)][_0x2208a3(0x81)][_0x2208a3(0x85)]=_0x457c64(_0x104f54);}[_0x2610b3(0x8a)](_0x53450c){const _0x2ade65=_0x2610b3,_0x233e7c=new _0x30f922(this[_0x2ade65(0x7d)]);_0x233e7c[_0x2ade65(0x84)][_0x2ade65(0x91)](_0x53450c[_0x2ade65(0x7f)](_0x2e01ad=>new _0x38ba06(this[_0x2ade65(0x7d)],_0x2e01ad))),_0x233e7c[_0x2ade65(0x8f)]=!0x0,this[_0x2ade65(0x84)][_0x2ade65(0x90)](_0x233e7c);}}
23
+ const _0x52060e=_0x4fa4;function _0x4fa4(_0x607753,_0x3bc92f){const _0x15d6b0=_0x15d6();return _0x4fa4=function(_0x4fa4f1,_0x35b585){_0x4fa4f1=_0x4fa4f1-0x95;let _0x58a051=_0x15d6b0[_0x4fa4f1];return _0x58a051;},_0x4fa4(_0x607753,_0x3bc92f);}(function(_0x1773df,_0x206482){const _0x55b265=_0x4fa4,_0x1b6097=_0x1773df();while(!![]){try{const _0x3e67ab=parseInt(_0x55b265(0xb8))/0x1*(-parseInt(_0x55b265(0xac))/0x2)+parseInt(_0x55b265(0xb4))/0x3*(parseInt(_0x55b265(0xae))/0x4)+-parseInt(_0x55b265(0xaa))/0x5+-parseInt(_0x55b265(0x98))/0x6*(parseInt(_0x55b265(0x9f))/0x7)+-parseInt(_0x55b265(0xa7))/0x8*(parseInt(_0x55b265(0x96))/0x9)+parseInt(_0x55b265(0x9a))/0xa*(-parseInt(_0x55b265(0xb7))/0xb)+-parseInt(_0x55b265(0x9d))/0xc*(-parseInt(_0x55b265(0xa3))/0xd);if(_0x3e67ab===_0x206482)break;else _0x1b6097['push'](_0x1b6097['shift']());}catch(_0x565cdf){_0x1b6097['push'](_0x1b6097['shift']());}}}(_0x15d6,0xb2615));import{AIChatFeedItemView as _0x237785}from'./aichatfeeditemview.js';import{parse as _0x1b9be9,render as _0x5e9a61}from'../../../aicore/utils/htmlparser.js';import{View as _0x53445a}from'ckeditor5/src/ui.js';import{AIWebSourcesView as _0x21c3de,AIWebSourceView as _0x34f3b1}from'../../../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';function _0x15d6(){const _0x2db9a8=['12037131tWuNpd','element','250026EoByDK','isVisible','2071270nyZMxu','map','initialContent','6552lJYBBG','updateContent','147ftlAzo','options','streaming','div','116363JiFZLi','replyContainer','addMany','innerHTML','8yaWScc','setTemplate','children','4396380jBNLSi','streamIntoElement','7870QOEbhA','static','1181228WQmvDJ','extendTemplate','add','ck-ai-chat__feed__ai-reply-container','ck-reset_all-excluded','render','3DPBfIG','updateSources','ck-ai-chat__feed__ai-reply','11RYxBVs','293rEhGXj','locale','markAsDone'];_0x15d6=function(){return _0x2db9a8;};return _0x15d6();}export class AIChatFeedReplyItemView extends _0x237785{[_0x52060e(0xa4)];constructor(_0x38723b,_0x5ec12e){const _0x5b7325=_0x52060e;super(_0x5ec12e),this[_0x5b7325(0xb9)]=_0x38723b,this[_0x5b7325(0xaf)]({'attributes':{'class':[_0x5b7325(0xb6)]}}),this[_0x5b7325(0xa4)]=new _0x53445a(),this[_0x5b7325(0xa4)][_0x5b7325(0xa8)]({'tag':_0x5b7325(0xa2),'attributes':{'class':['ck',_0x5b7325(0xb2),_0x5b7325(0xb1)]}}),this[_0x5b7325(0xa9)][_0x5b7325(0xb0)](this[_0x5b7325(0xa4)]);}async[_0x52060e(0xb3)](){const _0x3a2d26=_0x52060e;super[_0x3a2d26(0xb3)](),this[_0x3a2d26(0xa0)][_0x3a2d26(0x9c)]&&(await this[_0x3a2d26(0x9e)]({'parsedContent':_0x1b9be9(this[_0x3a2d26(0xa0)][_0x3a2d26(0x9c)]),'renderingStrategy':_0x3a2d26(0xad)}),this[_0x3a2d26(0x95)]());}async[_0x52060e(0x9e)]({parsedContent:_0x2a9633,renderingStrategy:_0x51bc7d,abortSignal:_0x4fff3d}){const _0x2110ac=_0x52060e;_0x2110ac(0xa1)===_0x51bc7d?await this[_0x2110ac(0xab)](_0x2a9633,this[_0x2110ac(0xa4)][_0x2110ac(0x97)],_0x4fff3d):this[_0x2110ac(0xa4)][_0x2110ac(0x97)][_0x2110ac(0xa6)]=_0x5e9a61(_0x2a9633);}[_0x52060e(0xb5)](_0x3f4730){const _0x3ce745=_0x52060e,_0x1e1438=new _0x21c3de(this[_0x3ce745(0xb9)]);_0x1e1438[_0x3ce745(0xa9)][_0x3ce745(0xa5)](_0x3f4730[_0x3ce745(0x9b)](_0x49562b=>new _0x34f3b1(this[_0x3ce745(0xb9)],_0x49562b))),_0x1e1438[_0x3ce745(0x99)]=!0x0,this[_0x3ce745(0xa9)][_0x3ce745(0xb0)](_0x1e1438);}}
@@ -7,6 +7,7 @@
7
7
  */
8
8
  import { type Locale } from 'ckeditor5/src/utils.js';
9
9
  import { View } from 'ckeditor5/src/ui.js';
10
+ export declare const ACTIONS: readonly ["applySuggestion", "insertSuggestion", "showChangeInText"];
10
11
  /**
11
12
  * A view for the actions of an AI suggestion item in the AI chat feed.
12
13
  *
@@ -21,14 +22,18 @@ export declare class AIChatFeedSuggestionItemActionsView extends View {
21
22
  * Specifies whether the view should be visible or not.
22
23
  */
23
24
  isVisible: boolean;
25
+ /**
26
+ * @observable
27
+ */
28
+ isTrackChangesOn: boolean;
24
29
  /**
25
30
  * @inheritDoc
26
31
  */
27
- constructor(locale: Locale);
32
+ constructor(locale: Locale, dropdownConfig?: Array<AISuggestionActionName>);
28
33
  /**
29
34
  * Updates the labels of the actions based on the number of parts in the suggestion.
30
35
  */
31
- updateLabels(partsCount: number): void;
36
+ updateLabels(partsCount?: number): void;
32
37
  }
33
38
  export type AIShowChangeInTextEvent = {
34
39
  name: 'showChangeInText';
@@ -72,3 +77,4 @@ export type AIMouseLeaveSuggestionEvent = {
72
77
  partIndex: number;
73
78
  }];
74
79
  };
80
+ export type AISuggestionActionName = typeof ACTIONS[number];