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

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 (307) hide show
  1. package/build/ai.js +1 -1
  2. package/ckeditor5-metadata.json +14 -0
  3. package/dist/index-editor.css +27 -3
  4. package/dist/index.css +28 -3
  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 +1 -0
  153. package/package.json +15 -15
  154. package/src/aiactions/aiactions.js +1 -1
  155. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  156. package/src/aiactions/model/aiactionsreply.js +1 -1
  157. package/src/aiassistant/adapters/aiadapter.js +1 -1
  158. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  159. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  160. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  161. package/src/aiassistant/aiassistant.js +1 -1
  162. package/src/aiassistant/aiassistantediting.js +1 -1
  163. package/src/aiassistant/aiassistantui.js +1 -1
  164. package/src/aiassistant/legacyerrors.js +1 -1
  165. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  166. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  167. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  168. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  169. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  170. package/src/aiassistant/ui/form/aiformview.js +1 -1
  171. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  172. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  173. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  174. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  175. package/src/aiassistant/utils/common-translations.js +1 -1
  176. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  177. package/src/aiballoon/aiballoon.js +1 -1
  178. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  179. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  180. package/src/aiballoon/ui/aiballoonview.js +1 -1
  181. package/src/aichat/aichat.js +1 -1
  182. package/src/aichat/aichatcontroller.d.ts +4 -0
  183. package/src/aichat/aichatcontroller.js +1 -1
  184. package/src/aichat/aichatui.d.ts +2 -0
  185. package/src/aichat/aichatui.js +1 -1
  186. package/src/aichat/model/aichatcontext.js +1 -1
  187. package/src/aichat/model/aichatconversation.js +1 -1
  188. package/src/aichat/model/aichatinteraction.js +1 -1
  189. package/src/aichat/model/aichatmodels.js +1 -1
  190. package/src/aichat/ui/aichatcontrolsview.d.ts +6 -0
  191. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  192. package/src/aichat/ui/aichatfeedview.js +1 -1
  193. package/src/aichat/ui/aichatheaderview.js +1 -1
  194. package/src/aichat/ui/aichatview.js +1 -1
  195. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  196. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  197. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  198. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  199. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  200. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  201. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  202. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  203. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  204. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  205. package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
  206. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  207. package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
  208. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  209. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  210. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  211. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  212. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  213. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  214. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  215. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  216. package/src/aichat/utils/eventnames.js +1 -1
  217. package/src/aichat/utils/promisequeue.js +1 -1
  218. package/src/aichat/utils/scrollmanager.js +1 -1
  219. package/src/aichathistory/aichathistory.js +1 -1
  220. package/src/aichathistory/aichathistorycontroller.js +1 -1
  221. package/src/aichathistory/aichathistoryui.js +1 -1
  222. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  223. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  224. package/src/aichathistory/ui/aichathistorylistitemview.js +1 -1
  225. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  226. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  227. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  228. package/src/aicore/aiconnector.js +1 -1
  229. package/src/aicore/aiediting.js +1 -1
  230. package/src/aicore/model/aicapabilities.js +1 -1
  231. package/src/aicore/model/aicontext.js +1 -1
  232. package/src/aicore/model/aiinteraction.js +1 -1
  233. package/src/aicore/model/aireply.js +1 -1
  234. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  235. package/src/aicore/pipeline/airesponseparser.js +2 -2
  236. package/src/aicore/ui/aidisclaimerview.js +1 -1
  237. package/src/aicore/ui/aiskeleton.js +1 -1
  238. package/src/aicore/ui/aispinner.js +1 -1
  239. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  240. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  241. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  242. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  243. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  244. package/src/aicore/utils/common-translations.js +1 -1
  245. package/src/aicore/utils/createresizebutton.js +1 -1
  246. package/src/aicore/utils/documentposition.js +1 -1
  247. package/src/aicore/utils/documentrange.js +1 -1
  248. package/src/aicore/utils/eventnames.js +1 -1
  249. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  250. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  251. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  252. package/src/aicore/utils/htmlparser.js +1 -1
  253. package/src/aicore/utils/htmlstreamer.js +1 -1
  254. package/src/aieditorintegration/aieditorintegration.d.ts +35 -0
  255. package/src/aieditorintegration/aieditorintegration.js +23 -0
  256. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.d.ts +38 -0
  257. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +23 -0
  258. package/src/aieditorintegration/aitogglebutton/toggleaicommand.d.ts +16 -0
  259. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +23 -0
  260. package/src/aiquickactions/aiquickactions.js +1 -1
  261. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  262. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  263. package/src/aiquickactions/aiquickactionsui.js +1 -1
  264. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  265. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  266. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  267. package/src/aiquickactions/utils/common-translations.js +1 -1
  268. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  269. package/src/aireviewmode/aireviewmode.js +1 -1
  270. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  271. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  272. package/src/aireviewmode/aireviewmodeui.js +1 -1
  273. package/src/aireviewmode/model/aireviewcheck.js +1 -1
  274. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  275. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  276. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  277. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  278. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  279. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  280. package/src/aireviewmode/model/aireviewmodels.js +1 -1
  281. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  282. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  283. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  284. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  285. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  286. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  287. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  288. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  289. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  290. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  291. package/src/aireviewmode/ui/form/aireviewmodeformamanager.js +1 -1
  292. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  293. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  294. package/src/aitabs/aitabs.js +1 -1
  295. package/src/aitabs/aitabsmainview.d.ts +6 -0
  296. package/src/aitabs/aitabsmainview.js +1 -1
  297. package/src/aitabs/tabs/aitabsview.js +1 -1
  298. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  299. package/src/aitabs/tabs/tabpanelview.js +1 -1
  300. package/src/augmentation.d.ts +6 -0
  301. package/src/index.d.ts +3 -0
  302. package/src/index.js +1 -1
  303. package/theme/aichat/aichat-controls.css +6 -0
  304. package/theme/aichat/aichat.css +2 -0
  305. package/theme/aichat/aisuggestioncontainer.css +8 -2
  306. package/theme/aireviewmode/aireviewmode-check-list.css +10 -1
  307. package/theme/aireviewmode/aireviewmode-check-run-result.css +5 -0
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3b5382=_0x59d2;(function(_0x57c006,_0xfd9ce6){const _0x559a90=_0x59d2,_0x49006e=_0x57c006();while(!![]){try{const _0x429795=parseInt(_0x559a90(0x173))/0x1*(-parseInt(_0x559a90(0x101))/0x2)+parseInt(_0x559a90(0x10a))/0x3+parseInt(_0x559a90(0xe6))/0x4*(-parseInt(_0x559a90(0x121))/0x5)+parseInt(_0x559a90(0xde))/0x6*(parseInt(_0x559a90(0xea))/0x7)+-parseInt(_0x559a90(0x14b))/0x8*(parseInt(_0x559a90(0x138))/0x9)+parseInt(_0x559a90(0x159))/0xa*(-parseInt(_0x559a90(0x13b))/0xb)+parseInt(_0x559a90(0xe8))/0xc;if(_0x429795===_0xfd9ce6)break;else _0x49006e['push'](_0x49006e['shift']());}catch(_0x126a59){_0x49006e['push'](_0x49006e['shift']());}}}(_0x5b22,0x54330));import{ContextPlugin as _0x4ec831}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x2b4318}from'ckeditor5/src/utils.js';import{AIChatView as _0x5a28c8}from'./ui/aichatview.js';import{AITabs as _0x262287}from'../aitabs/aitabs.js';import{getTranslation as _0x4404f3}from'../aicore/utils/common-translations.js';function _0x5b22(){const _0x4632e9=['addItem','addContextItem','markFeedItemAsDone','options','removeContextItem','setFeedItemRenderingStrategy','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','queueEmptyPromise','clearConversationContextUI','_titleAnimationInterval','capabilities','bind','plugins','finishInteraction','contextItems','resetConversationTitle','startsWith','interactionId','setIsUploadInProgress','setReasoning','</p>','toggleLoadingSkeleton','focusPromptInput','pluginName','145957Qmxwco','updateFeedItemAIReplySuggestionContent','_promiseQueue','displayedPrompt','82122DYiuax','interaction-header','updateSuggestionPartState','updateFeedItemAIReplyContent','addFeedInteractionHeader','startInteraction','resetMessageInput','isPremiumPlugin','652rwPVKi','then','11852856iNJLWI','scrollFeedToSuggestion','91BXcWpy','updateReplyItem','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','delegate','AIChatUI','isBusy','setInputPlaceholder','setContextItemLoading','user-message','enqueue','feedItemRenderingStrategy','context','ai.chat.models.modelSelectorAlwaysVisible','abort','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','isVisible','view','_getInputPlaceholder','updateWebSources','forEach','availableModels','addFeedItemAIReply','_animateConversationTitle','2aHvDmG','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','addTab','AITabs','_getLoadingMessage','conversation-start','updateSuggestionItem','find','stopInteraction','464736qkVbAc','_view','removeItem','disableModelSelector','getItemIds','isPending','closeSourceResourceBalloon','AI_CHAT_HEADING','clear','ai-reply','stopAutoScroll','chat','from','isLoading','areActionsDisabled','updateFeedItemAIReplySuggestionPartState','updateFeedItemAIReplySources','chatControls','isWebSearchEnabled','streaming','filter','values','createConversation','9845qToDxS','populateSourceResourceBalloon','label','setConversationTitle','clearPendingContextUI','chatHeader','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','setAddContextOptions','get','chatFeed','addFeedItemError','setModel','toggleSuggestionDisplayMode','isOfficialPlugin','_interactionPromiseResolver','quickActionData','setModelList','destroy','requires','updateCapabilities','addFeedItemAISuggestion','setWebSearch','showResizeButton','471177bRvHvt','config','setSelectedModel','644853bHIZfu','startAutoScroll','setLoadingMessage','addFeedItemStaticMessage','updateFeedInteractionHeader','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','userMessage','isDone','set','setIsMaximized','length','setConversationContext','locale','updateResourceState','showDiff','AI_CHAT_WELCOME_MESSAGE','24pSLUfk','scrollToSuggestion','error-message','renderingStrategy','ai-suggestion-reply','children','enableModelSelector','removeFeedInteraction','isReasoningEnabled','addFeedItemUserMessage','<p>','isMaximized','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','markItemAsDone','60pzLrZQ','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING'];_0x5b22=function(){return _0x4632e9;};return _0x5b22();}function _0x59d2(_0x4ba91d,_0x3e6679){const _0x5b227a=_0x5b22();return _0x59d2=function(_0x59d20c,_0x6ec585){_0x59d20c=_0x59d20c-0xdb;let _0x1ce62=_0x5b227a[_0x59d20c];return _0x1ce62;},_0x59d2(_0x4ba91d,_0x3e6679);}import{IconAIChat as _0x4e1a1e}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x10621f}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0x1d6154}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0x16ae80}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';export class AIChatUI extends _0x4ec831{static get[_0x3b5382(0x133)](){return[_0x262287];}[_0x3b5382(0x10b)];static get[_0x3b5382(0x172)](){const _0x34ae2d=_0x3b5382;return _0x34ae2d(0xee);}static get[_0x3b5382(0x12e)](){return!0x0;}static get[_0x3b5382(0xe5)](){return!0x0;}[_0x3b5382(0xf4)]=_0x3b5382(0x11d);[_0x3b5382(0x149)]=!0x0;[_0x3b5382(0xdc)];[_0x3b5382(0x12f)];[_0x3b5382(0x164)]=void 0x0;constructor(_0x581d38){const _0x1d760e=_0x3b5382;super(_0x581d38);const _0x3b9f15=this[_0x1d760e(0xf5)][_0x1d760e(0x167)][_0x1d760e(0x129)](_0x1d760e(0x104));this[_0x1d760e(0x143)](_0x1d760e(0xef),!0x1),this[_0x1d760e(0xdc)]=new _0x1d6154(),this[_0x1d760e(0x10b)]=new _0x5a28c8(this[_0x1d760e(0xf5)][_0x1d760e(0x147)],_0x3b9f15[_0x1d760e(0x137)]),this[_0x1d760e(0x10b)][_0x1d760e(0xed)](..._0x16ae80)['to'](this),this[_0x1d760e(0x10b)]['on'](_0x1d760e(0x12d),(_0x55f128,{showDiff:_0x5d55c2})=>{const _0x18145e=_0x1d760e;this[_0x18145e(0x149)]=_0x5d55c2;}),_0x3b9f15[_0x1d760e(0xfa)][_0x1d760e(0x103)]({'id':_0x1d760e(0x115),'buttonLabel':_0x4404f3(this[_0x1d760e(0xf5)][_0x1d760e(0x147)],_0x1d760e(0x111)),'buttonIcon':_0x4e1a1e,'order':0x0,'content':this[_0x1d760e(0x10b)]}),this[_0x1d760e(0x10b)][_0x1d760e(0x11b)][_0x1d760e(0x166)](_0x1d760e(0x117))['to'](this,_0x1d760e(0xef),_0x2f171e=>_0x2f171e),this[_0x1d760e(0x10b)][_0x1d760e(0x12a)][_0x1d760e(0x166)](_0x1d760e(0x10f))['to'](this,_0x1d760e(0xef),_0x4994c8=>_0x4994c8),this[_0x1d760e(0x10b)][_0x1d760e(0x11b)][_0x1d760e(0xf0)](this[_0x1d760e(0xfb)]());}[_0x3b5382(0x132)](){const _0x8b2c9a=_0x3b5382;super[_0x8b2c9a(0x132)](),this[_0x8b2c9a(0x164)]&&clearInterval(this[_0x8b2c9a(0x164)]);}[_0x3b5382(0x120)](_0x4052d0){const _0x30880a=_0x3b5382;this[_0x30880a(0x10b)][_0x30880a(0x12a)][_0x30880a(0x112)](),this[_0x30880a(0x10b)][_0x30880a(0x11b)][_0x30880a(0x151)](),this[_0x30880a(0x10b)][_0x30880a(0x11b)][_0x30880a(0x131)](_0x4052d0[_0x30880a(0xfe)],!this[_0x30880a(0xf5)][_0x30880a(0x139)][_0x30880a(0x129)](_0x30880a(0xf6))),this[_0x30880a(0x13e)]({'id':_0x30880a(0x106),'staticMessage':_0x4404f3(this[_0x30880a(0xf5)][_0x30880a(0x147)],_0x30880a(0x14a))});}[_0x3b5382(0x13e)]({id:_0x101e58,staticMessage:_0x354e31}){const _0x5aafa8=_0x3b5382;this[_0x5aafa8(0x10b)][_0x5aafa8(0x12a)][_0x5aafa8(0x15b)](_0x5aafa8(0x113),{'id':_0x101e58,'initialContent':_0x5aafa8(0x155)+_0x354e31+_0x5aafa8(0x16f)});}[_0x3b5382(0x154)](_0x2eb3b2){const _0x330a6e=_0x3b5382,_0x24d0d4=_0x2eb3b2[_0x330a6e(0x130)]?.[_0x330a6e(0xdd)]||_0x2eb3b2[_0x330a6e(0x141)];this[_0x330a6e(0x10b)][_0x330a6e(0x12a)][_0x330a6e(0x15b)](_0x330a6e(0xf2),{'contextItems':Array[_0x330a6e(0x116)](_0x2eb3b2[_0x330a6e(0x169)][_0x330a6e(0x11f)]()),'initialContent':_0x330a6e(0x155)+_0x24d0d4+_0x330a6e(0x16f),'id':_0x2eb3b2['id']});}[_0x3b5382(0x12b)]({errorMessage:_0x5e5cc4,id:_0x1c06b0}){const _0x5ea6dd=_0x3b5382;this[_0x5ea6dd(0x10b)][_0x5ea6dd(0x12a)][_0x5ea6dd(0x15b)](_0x5ea6dd(0x14d),{'initialContent':_0x5ea6dd(0x155)+_0x5e5cc4+_0x5ea6dd(0x16f),'id':_0x1c06b0});}[_0x3b5382(0xff)](_0x27ab8d){const _0x1b65c1=_0x3b5382;return this[_0x1b65c1(0xdc)][_0x1b65c1(0xf3)](async()=>{const _0x4ac41b=_0x1b65c1;this[_0x4ac41b(0x10b)][_0x4ac41b(0x12a)][_0x4ac41b(0x15b)](_0x4ac41b(0x113),{'id':_0x27ab8d[_0x4ac41b(0x16c)]+':'+_0x27ab8d['id']}),this[_0x4ac41b(0x10b)][_0x4ac41b(0x12a)][_0x4ac41b(0x13d)]('');});}async[_0x3b5382(0x135)](_0x391317){const _0x45a149=_0x3b5382;return this[_0x45a149(0xdc)][_0x45a149(0xf3)](async()=>{const _0x4885f4=_0x45a149;this[_0x4885f4(0x10b)][_0x4885f4(0x12a)][_0x4885f4(0x15b)](_0x4885f4(0x14f),{'id':_0x391317[_0x4885f4(0x16c)]+':'+_0x391317['id'],'areActionsDisabled':_0x391317[_0x4885f4(0x118)],'showDiff':this[_0x4885f4(0x149)]}),this[_0x4885f4(0x10b)][_0x4885f4(0x12a)][_0x4885f4(0x13d)]('');});}[_0x3b5382(0xe2)](_0x12b354){const _0x4c0a16=_0x3b5382;this[_0x4c0a16(0x10b)][_0x4c0a16(0x12a)][_0x4c0a16(0x15b)](_0x4c0a16(0xdf),{'id':_0x12b354['id'],'capabilities':_0x12b354[_0x4c0a16(0x165)]});}[_0x3b5382(0x13f)](_0x30af60){const _0x119b52=_0x3b5382,_0x395800=this[_0x119b52(0x10b)][_0x119b52(0x12a)][_0x119b52(0x150)][_0x119b52(0x108)](_0x5ab651=>_0x5ab651[_0x119b52(0x15e)]['id']==_0x30af60['id']&&_0x5ab651 instanceof _0x10621f);_0x395800&&_0x395800[_0x119b52(0x143)](_0x119b52(0xf9),_0x30af60[_0x119b52(0xf9)]);}async[_0x3b5382(0xe1)](_0x1e6859){const _0x5097ca=_0x3b5382,_0x2ab723=_0x1e6859[_0x5097ca(0x14e)]||this[_0x5097ca(0xf4)];return this[_0x5097ca(0xdc)][_0x5097ca(0xf3)](async _0x5de92a=>{const _0x55ba11=_0x5097ca;await this[_0x55ba11(0x10b)][_0x55ba11(0x12a)][_0x55ba11(0xeb)]({..._0x1e6859,'abortSignal':_0x5de92a,'renderingStrategy':_0x2ab723}),_0x1e6859[_0x55ba11(0x142)]&&this[_0x55ba11(0x15d)](_0x1e6859['id']);});}[_0x3b5382(0x11a)](_0x3f466e,_0x229146){const _0x538dcd=_0x3b5382;this[_0x538dcd(0x10b)][_0x538dcd(0x12a)][_0x538dcd(0xfc)](_0x3f466e,_0x229146);}async[_0x3b5382(0xdb)](_0x477eaf){const _0x86d443=_0x3b5382,_0x32e4aa=_0x477eaf[_0x86d443(0x14e)]||this[_0x86d443(0xf4)];return this[_0x86d443(0xdc)][_0x86d443(0xf3)](async _0x140e8c=>{const _0x4bb422=_0x86d443;await this[_0x4bb422(0x10b)][_0x4bb422(0x12a)][_0x4bb422(0x107)]({..._0x477eaf,'abortSignal':_0x140e8c,'renderingStrategy':_0x32e4aa}),_0x477eaf[_0x4bb422(0x142)]&&this[_0x4bb422(0x15d)](_0x477eaf['id']);});}[_0x3b5382(0x119)](_0x38315d){const _0x3091cd=_0x3b5382;this[_0x3091cd(0x10b)][_0x3091cd(0x12a)][_0x3091cd(0xe0)](_0x38315d);}[_0x3b5382(0x15d)](_0x2ceae0){const _0x314fb5=_0x3b5382;this[_0x314fb5(0x10b)][_0x314fb5(0x12a)][_0x314fb5(0x158)](_0x2ceae0);}[_0x3b5382(0x152)](_0x4b038b){const _0x2c4adb=_0x3b5382;this[_0x2c4adb(0x10b)][_0x2c4adb(0x12a)][_0x2c4adb(0x10e)]()[_0x2c4adb(0x11e)](_0x2d92cb=>_0x2d92cb[_0x2c4adb(0x16b)](_0x4b038b))[_0x2c4adb(0xfd)](_0x5e8a2a=>this[_0x2c4adb(0x10b)][_0x2c4adb(0x12a)][_0x2c4adb(0x10c)](_0x5e8a2a));}[_0x3b5382(0xe3)](_0x589456){const _0x3bce0b=_0x3b5382;this[_0x3bce0b(0x10b)][_0x3bce0b(0x12a)][_0x3bce0b(0x13d)](this[_0x3bce0b(0x105)](_0x589456)),this[_0x3bce0b(0x10b)][_0x3bce0b(0x11b)][_0x3bce0b(0x10d)](!this[_0x3bce0b(0xf5)][_0x3bce0b(0x139)][_0x3bce0b(0x129)](_0x3bce0b(0xf6))),this[_0x3bce0b(0xef)]=!0x0,this[_0x3bce0b(0x10b)][_0x3bce0b(0x12a)][_0x3bce0b(0x13c)]();}[_0x3b5382(0x109)](_0x1d89b7){const _0x36353a=_0x3b5382;this[_0x36353a(0xdc)][_0x36353a(0xf7)](),this[_0x36353a(0x10b)][_0x36353a(0x12a)][_0x36353a(0x10e)]()[_0x36353a(0x11e)](_0x442875=>_0x442875[_0x36353a(0x16b)](_0x1d89b7['id']))[_0x36353a(0xfd)](_0x2f49cc=>this[_0x36353a(0x15d)](_0x2f49cc)),this[_0x36353a(0xef)]=!0x1,this[_0x36353a(0x10b)][_0x36353a(0x12a)][_0x36353a(0x114)]();}async[_0x3b5382(0x168)](){const _0x45c004=_0x3b5382;return this[_0x45c004(0xdc)][_0x45c004(0x162)][_0x45c004(0xe7)](()=>{const _0xc04d83=_0x45c004;this[_0xc04d83(0xef)]=!0x1,this[_0xc04d83(0x10b)][_0xc04d83(0x12a)][_0xc04d83(0x114)]();});}[_0x3b5382(0x15c)](_0x1433e6,_0x4cd0f9){const _0x47c644=_0x3b5382;this[_0x47c644(0x10b)][_0x47c644(0x11b)][_0x47c644(0x15c)](_0x1433e6,_0x4cd0f9);}[_0x3b5382(0x15f)](_0x457d12){const _0x2e576e=_0x3b5382;this[_0x2e576e(0x10b)][_0x2e576e(0x11b)][_0x2e576e(0x15f)](_0x457d12);}[_0x3b5382(0xf1)](_0xd52dda,_0x4074ad){const _0x5219c6=_0x3b5382;this[_0x5219c6(0x10b)][_0x5219c6(0x11b)][_0x5219c6(0xf1)](_0xd52dda,_0x4074ad);}[_0x3b5382(0x16d)](_0x3f7baa){const _0x5effcf=_0x3b5382;this[_0x5effcf(0x10b)][_0x5effcf(0x11b)][_0x5effcf(0x16d)](_0x3f7baa);}[_0x3b5382(0x146)](_0x889a84){const _0x5ea714=_0x3b5382;this[_0x5ea714(0x10b)][_0x5ea714(0x11b)][_0x5ea714(0x146)](_0x889a84);}[_0x3b5382(0x125)](){const _0x1facfb=_0x3b5382;this[_0x1facfb(0x10b)][_0x1facfb(0x11b)][_0x1facfb(0x125)]();}[_0x3b5382(0x163)](){const _0x4f290d=_0x3b5382;this[_0x4f290d(0x10b)][_0x4f290d(0x11b)][_0x4f290d(0x163)]();}[_0x3b5382(0x148)](_0x3e3847,_0x24123c,_0x1754e5){const _0x8936bb=_0x3b5382;this[_0x8936bb(0x10b)][_0x8936bb(0x11b)][_0x8936bb(0x148)](_0x3e3847,_0x24123c,_0x1754e5);}[_0x3b5382(0xe4)](){const _0x36b2d6=_0x3b5382;this[_0x36b2d6(0x10b)][_0x36b2d6(0x11b)][_0x36b2d6(0xe4)](),this[_0x36b2d6(0x10b)][_0x36b2d6(0x11b)][_0x36b2d6(0xf0)](this[_0x36b2d6(0xfb)]());}[_0x3b5382(0x128)](_0x35e638){const _0x5226d1=_0x3b5382;this[_0x5226d1(0x10b)][_0x5226d1(0x11b)][_0x5226d1(0x128)](_0x35e638);}[_0x3b5382(0x134)](_0x1ac2d4){const _0xcdd29a=_0x3b5382;this[_0xcdd29a(0x10b)][_0xcdd29a(0x11b)][_0xcdd29a(0x136)](_0x1ac2d4[_0xcdd29a(0x11c)]),this[_0xcdd29a(0x10b)][_0xcdd29a(0x11b)][_0xcdd29a(0x16e)](_0x1ac2d4[_0xcdd29a(0x153)]),this[_0xcdd29a(0x10b)][_0xcdd29a(0x11b)][_0xcdd29a(0xf0)](this[_0xcdd29a(0xfb)](_0x1ac2d4));}[_0x3b5382(0x13a)](_0xb593dc,_0x2fb432){const _0x3f60b3=_0x3b5382;this[_0x3f60b3(0x10b)][_0x3f60b3(0x11b)][_0x3f60b3(0x12c)](_0xb593dc),_0x2fb432&&this[_0x3f60b3(0x10b)][_0x3f60b3(0x11b)][_0x3f60b3(0x10d)](!0x1);}[_0x3b5382(0x160)](_0x4aeb7d){const _0x48c5ff=_0x3b5382;this[_0x48c5ff(0xf4)]=_0x4aeb7d;}[_0x3b5382(0x170)](_0x288bd1){const _0x3c4088=_0x3b5382;this[_0x3c4088(0x10b)][_0x3c4088(0x12a)][_0x3c4088(0x170)](_0x288bd1);}[_0x3b5382(0x16a)](){const _0x547fd2=_0x3b5382;this[_0x547fd2(0x124)](_0x4404f3(this[_0x547fd2(0xf5)][_0x547fd2(0x147)],_0x547fd2(0x111)));}[_0x3b5382(0x124)](_0x50d136,_0x144cda=!0x1){const _0x1dc9df=_0x3b5382;if(_0x144cda&&!_0x2b4318()&&_0x50d136[_0x1dc9df(0x145)])return this[_0x1dc9df(0x10b)][_0x1dc9df(0x126)][_0x1dc9df(0x123)]='',void this[_0x1dc9df(0x100)](_0x50d136);this[_0x1dc9df(0x10b)][_0x1dc9df(0x126)][_0x1dc9df(0x123)]=_0x50d136;}[_0x3b5382(0x100)](_0x3bf405){const _0x282d82=_0x3b5382;let _0x349209=0x0;clearInterval(this[_0x282d82(0x164)]),this[_0x282d82(0x164)]=setInterval(()=>{const _0xea4b07=_0x282d82;this[_0xea4b07(0x10b)][_0xea4b07(0x126)][_0xea4b07(0x123)]=this[_0xea4b07(0x10b)][_0xea4b07(0x126)][_0xea4b07(0x123)]+_0x3bf405[_0x349209],_0x349209++,_0x349209===_0x3bf405[_0xea4b07(0x145)]&&clearInterval(this[_0xea4b07(0x164)]);},0x1e);}[_0x3b5382(0x144)](_0x4ccd5b){const _0x313810=_0x3b5382;this[_0x313810(0x10b)][_0x313810(0x126)][_0x313810(0x156)]=_0x4ccd5b;}[_0x3b5382(0x105)](_0x5ead87){const _0x2ad62d=_0x3b5382,_0x3d9c87=_0x5ead87[_0x2ad62d(0x165)];return _0x3d9c87[_0x2ad62d(0x11c)]&&_0x3d9c87[_0x2ad62d(0x153)]?_0x4404f3(this[_0x2ad62d(0xf5)][_0x2ad62d(0x147)],_0x2ad62d(0x127)):_0x3d9c87[_0x2ad62d(0x11c)]?_0x4404f3(this[_0x2ad62d(0xf5)][_0x2ad62d(0x147)],_0x2ad62d(0x157)):_0x3d9c87[_0x2ad62d(0x153)]?_0x4404f3(this[_0x2ad62d(0xf5)][_0x2ad62d(0x147)],_0x2ad62d(0xf8)):_0x4404f3(this[_0x2ad62d(0xf5)][_0x2ad62d(0x147)],_0x2ad62d(0xec));}[_0x3b5382(0xfb)](_0x1faf4f){const _0x1b3fe9=_0x3b5382;return _0x1faf4f?_0x1faf4f[_0x1b3fe9(0x11c)]&&_0x1faf4f[_0x1b3fe9(0x153)]?_0x4404f3(this[_0x1b3fe9(0xf5)][_0x1b3fe9(0x147)],_0x1b3fe9(0x15a)):_0x1faf4f[_0x1b3fe9(0x11c)]?_0x4404f3(this[_0x1b3fe9(0xf5)][_0x1b3fe9(0x147)],_0x1b3fe9(0x102)):_0x1faf4f[_0x1b3fe9(0x153)]?_0x4404f3(this[_0x1b3fe9(0xf5)][_0x1b3fe9(0x147)],_0x1b3fe9(0x140)):_0x4404f3(this[_0x1b3fe9(0xf5)][_0x1b3fe9(0x147)],_0x1b3fe9(0x161)):_0x4404f3(this[_0x1b3fe9(0xf5)][_0x1b3fe9(0x147)],_0x1b3fe9(0x161));}[_0x3b5382(0x122)](_0x484bd0,_0x6de347,_0x120dee,_0x246f36){const _0x1af17c=_0x3b5382;this[_0x1af17c(0x10b)][_0x1af17c(0x122)](_0x484bd0,_0x6de347,_0x120dee,_0x246f36);}[_0x3b5382(0x110)](_0x2a4afa){const _0x4daa04=_0x3b5382;this[_0x4daa04(0x10b)][_0x4daa04(0x110)](_0x2a4afa);}[_0x3b5382(0x171)](){const _0x5db3bf=_0x3b5382;this[_0x5db3bf(0x10b)][_0x5db3bf(0x11b)][_0x5db3bf(0x171)]();}[_0x3b5382(0xe9)](_0x5915db,_0x348490){const _0x4c3653=_0x3b5382;this[_0x4c3653(0x10b)][_0x4c3653(0x12a)][_0x4c3653(0x14c)](_0x5915db,_0x348490);}}
23
+ const _0x111335=_0x5d33;(function(_0x833c49,_0x1b5260){const _0x5d5dc4=_0x5d33,_0x328527=_0x833c49();while(!![]){try{const _0xc1358f=parseInt(_0x5d5dc4(0x171))/0x1*(-parseInt(_0x5d5dc4(0x13d))/0x2)+parseInt(_0x5d5dc4(0x150))/0x3+-parseInt(_0x5d5dc4(0x180))/0x4+-parseInt(_0x5d5dc4(0xfe))/0x5*(-parseInt(_0x5d5dc4(0x132))/0x6)+parseInt(_0x5d5dc4(0x14b))/0x7*(parseInt(_0x5d5dc4(0x156))/0x8)+-parseInt(_0x5d5dc4(0x148))/0x9+parseInt(_0x5d5dc4(0x12c))/0xa;if(_0xc1358f===_0x1b5260)break;else _0x328527['push'](_0x328527['shift']());}catch(_0x420ed7){_0x328527['push'](_0x328527['shift']());}}}(_0xd2e9,0x8d281));import{ContextPlugin as _0x13564b}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x348b65}from'ckeditor5/src/utils.js';import{AIChatView as _0x4956fc}from'./ui/aichatview.js';import{AITabs as _0x209546}from'../aitabs/aitabs.js';import{getTranslation as _0x57e3d5}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x1ea53f}from'ckeditor5/src/icons.js';function _0xd2e9(){const _0x1305cc=['setFeedItemRenderingStrategy','scrollToSuggestion','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','forEach','updateWebSources','resetMessageInput','config','then','removeItem','_titleAnimationInterval','clearConversationContextUI','filter','stopInteraction','<p>','focusPromptInput','chat','setModelList','set','queueEmptyPromise','createConversation','addFeedItemUserMessage','error-message','destroy','updateFeedItemAIReplySuggestionContent','updateCapabilities','addFeedItemAIReply','addFeedItemError','updateResourceState','enqueue','_getInputPlaceholder','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','AITabs','isLoading','chatControls','chatHeader','setConversationTitle','isWebSearchEnabled','setIsUploadInProgress','userMessage','isMaximized','removeContextItem','</p>','getItemIds','setSelectedModel','delegate','4766060LNfNes','isPending','view','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','startInteraction','isBusy','12TgRkbV','enableModelSelector','addTab','stopAutoScroll','quickActionData','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','toggleLoadingSkeleton','ai-reply','disableModelSelector','pluginName','setAddContextOptions','80NuPFTL','_getLoadingMessage','isDisabled','_promiseQueue','setContextItemLoading','context','updateFeedInteractionHeader','startsWith','availableModels','AIChatUI','closeSourceResourceBalloon','6837399icqbmG','setConversationContext','updateSuggestionPartState','22813puXnKO','setWebSearch','clear','ai-suggestion-reply','populateSourceResourceBalloon','1860057dRibQY','setReasoning','updateFeedItemAIReplySuggestionPartState','children','areActionsDisabled','updateReplyItem','2744XLKkJA','capabilities','from','updateFeedItemAIReplyContent','user-message','setLoadingMessage','find','renderingStrategy','addContextItem','chatFeed','removeFeedInteraction','setModel','interactionId','displayedPrompt','showDiff','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','isOfficialPlugin','updateSuggestionItem','interaction-header','requires','AI_CHAT_WELCOME_MESSAGE','startAutoScroll','resetConversationTitle','setIsMaximized','values','_animateConversationTitle','plugins','14662KuGszP','AI_CHAT_HEADING','isPremiumPlugin','options','abort','locale','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','bind','length','finishInteraction','get','addItem','label','enableControls','addFeedItemStaticMessage','1797368vtbaGv','showResizeButton','streaming','_view','setInputPlaceholder','isVisible','addFeedItemAISuggestion','clearPendingContextUI','markItemAsDone','contextItems','disableControls','addFeedInteractionHeader','updateFeedItemAIReplySources','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','toggleSuggestionDisplayMode','isDone','scrollFeedToSuggestion','conversation-start','markFeedItemAsDone','feedItemRenderingStrategy','isReasoningEnabled','_interactionPromiseResolver','ai.chat.models.modelSelectorAlwaysVisible','398120tcLQUy'];_0xd2e9=function(){return _0x1305cc;};return _0xd2e9();}import{AIChatFeedInteractionHeaderView as _0x5bf630}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0x889a5b}from'./utils/promisequeue.js';function _0x5d33(_0x1f8918,_0x3ccb47){const _0xd2e943=_0xd2e9();return _0x5d33=function(_0x5d3330,_0x8a8b46){_0x5d3330=_0x5d3330-0xef;let _0x1bea47=_0xd2e943[_0x5d3330];return _0x1bea47;},_0x5d33(_0x1f8918,_0x3ccb47);}import{AI_CHAT_UI_EVENT_NAMES as _0x6018fe}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';export class AIChatUI extends _0x13564b{static get[_0x111335(0x169)](){return[_0x209546];}[_0x111335(0x183)];static get[_0x111335(0x13b)](){const _0x23ff2b=_0x111335;return _0x23ff2b(0x146);}static get[_0x111335(0x166)](){return!0x0;}static get[_0x111335(0x173)](){return!0x0;}[_0x111335(0xfa)]=_0x111335(0x182);[_0x111335(0x164)]=!0x0;[_0x111335(0x140)];[_0x111335(0xfc)];[_0x111335(0x108)]=void 0x0;constructor(_0x407b6f){const _0x22384e=_0x111335;super(_0x407b6f);const _0x210d45=this[_0x22384e(0x142)][_0x22384e(0x170)][_0x22384e(0x17b)](_0x22384e(0x11e));this[_0x22384e(0x110)](_0x22384e(0x131),!0x1),this[_0x22384e(0x140)]=new _0x889a5b(),this[_0x22384e(0x183)]=new _0x4956fc(this[_0x22384e(0x142)][_0x22384e(0x176)],_0x210d45[_0x22384e(0x181)]),this[_0x22384e(0x183)][_0x22384e(0x12b)](..._0x6018fe)['to'](this),this[_0x22384e(0x183)]['on'](_0x22384e(0xf5),(_0x2e1e5b,{showDiff:_0xcc722a})=>{const _0x3a5d76=_0x22384e;this[_0x3a5d76(0x164)]=_0xcc722a;}),_0x210d45[_0x22384e(0x12e)][_0x22384e(0x134)]({'id':_0x22384e(0x10e),'buttonLabel':_0x57e3d5(this[_0x22384e(0x142)][_0x22384e(0x176)],_0x22384e(0x172)),'buttonIcon':_0x1ea53f,'order':0x0,'content':this[_0x22384e(0x183)]}),this[_0x22384e(0x183)][_0x22384e(0x120)][_0x22384e(0x178)](_0x22384e(0x11f))['to'](this,_0x22384e(0x131),_0x285c90=>_0x285c90),this[_0x22384e(0x183)][_0x22384e(0x15f)][_0x22384e(0x178)](_0x22384e(0x12d))['to'](this,_0x22384e(0x131),_0x4cb4f1=>_0x4cb4f1),this[_0x22384e(0x183)][_0x22384e(0x120)][_0x22384e(0x184)](this[_0x22384e(0x11c)]());}[_0x111335(0x115)](){const _0x179e5f=_0x111335;super[_0x179e5f(0x115)](),this[_0x179e5f(0x108)]&&clearInterval(this[_0x179e5f(0x108)]);}[_0x111335(0x112)](_0x20d2ab){const _0x384933=_0x111335;this[_0x384933(0x183)][_0x384933(0x15f)][_0x384933(0x14d)](),this[_0x384933(0x183)][_0x384933(0x120)][_0x384933(0x133)](),this[_0x384933(0x183)][_0x384933(0x120)][_0x384933(0x10f)](_0x20d2ab[_0x384933(0x145)],!this[_0x384933(0x142)][_0x384933(0x105)][_0x384933(0x17b)](_0x384933(0xfd))),this[_0x384933(0x17f)]({'id':_0x384933(0xf8),'staticMessage':_0x57e3d5(this[_0x384933(0x142)][_0x384933(0x176)],_0x384933(0x16a))});}[_0x111335(0x17f)]({id:_0x59aecf,staticMessage:_0x22204f}){const _0x260f06=_0x111335;this[_0x260f06(0x183)][_0x260f06(0x15f)][_0x260f06(0x17c)](_0x260f06(0x139),{'id':_0x59aecf,'initialContent':_0x260f06(0x10c)+_0x22204f+_0x260f06(0x128)});}[_0x111335(0x113)](_0x551193){const _0x2f09e1=_0x111335,_0x45b7b8=_0x551193[_0x2f09e1(0x136)]?.[_0x2f09e1(0x163)]||_0x551193[_0x2f09e1(0x125)];this[_0x2f09e1(0x183)][_0x2f09e1(0x15f)][_0x2f09e1(0x17c)](_0x2f09e1(0x15a),{'contextItems':Array[_0x2f09e1(0x158)](_0x551193[_0x2f09e1(0xef)][_0x2f09e1(0x16e)]()),'initialContent':_0x2f09e1(0x10c)+_0x45b7b8+_0x2f09e1(0x128),'id':_0x551193['id']});}[_0x111335(0x119)]({errorMessage:_0x31d94d,id:_0x433259}){const _0x361545=_0x111335;this[_0x361545(0x183)][_0x361545(0x15f)][_0x361545(0x17c)](_0x361545(0x114),{'initialContent':_0x361545(0x10c)+_0x31d94d+_0x361545(0x128),'id':_0x433259});}[_0x111335(0x118)](_0x329ce8){const _0xb13ce9=_0x111335;return this[_0xb13ce9(0x140)][_0xb13ce9(0x11b)](async()=>{const _0x28a250=_0xb13ce9;this[_0x28a250(0x183)][_0x28a250(0x15f)][_0x28a250(0x17c)](_0x28a250(0x139),{'id':_0x329ce8[_0x28a250(0x162)]+':'+_0x329ce8['id']}),this[_0x28a250(0x183)][_0x28a250(0x15f)][_0x28a250(0x15b)]('');});}async[_0x111335(0x186)](_0x11643f){const _0x31c6f3=_0x111335;return this[_0x31c6f3(0x140)][_0x31c6f3(0x11b)](async()=>{const _0x2cef30=_0x31c6f3;this[_0x2cef30(0x183)][_0x2cef30(0x15f)][_0x2cef30(0x17c)](_0x2cef30(0x14e),{'id':_0x11643f[_0x2cef30(0x162)]+':'+_0x11643f['id'],'areActionsDisabled':_0x11643f[_0x2cef30(0x154)],'showDiff':this[_0x2cef30(0x164)]}),this[_0x2cef30(0x183)][_0x2cef30(0x15f)][_0x2cef30(0x15b)]('');});}[_0x111335(0xf1)](_0x2c93c7){const _0x1014fe=_0x111335;this[_0x1014fe(0x183)][_0x1014fe(0x15f)][_0x1014fe(0x17c)](_0x1014fe(0x168),{'id':_0x2c93c7['id'],'capabilities':_0x2c93c7[_0x1014fe(0x157)]});}[_0x111335(0x143)](_0x29d1ea){const _0x2e9a35=_0x111335,_0xa734a=this[_0x2e9a35(0x183)][_0x2e9a35(0x15f)][_0x2e9a35(0x153)][_0x2e9a35(0x15c)](_0x4a9faa=>_0x4a9faa[_0x2e9a35(0x174)]['id']==_0x29d1ea['id']&&_0x4a9faa instanceof _0x5bf630);_0xa734a&&_0xa734a[_0x2e9a35(0x110)](_0x2e9a35(0x185),_0x29d1ea[_0x2e9a35(0x185)]);}async[_0x111335(0x159)](_0x5f07fd){const _0x5e56d8=_0x111335,_0x34b03a=_0x5f07fd[_0x5e56d8(0x15d)]||this[_0x5e56d8(0xfa)];return this[_0x5e56d8(0x140)][_0x5e56d8(0x11b)](async _0x592b9b=>{const _0x32b754=_0x5e56d8;await this[_0x32b754(0x183)][_0x32b754(0x15f)][_0x32b754(0x155)]({..._0x5f07fd,'abortSignal':_0x592b9b,'renderingStrategy':_0x34b03a}),_0x5f07fd[_0x32b754(0xf6)]&&this[_0x32b754(0xf9)](_0x5f07fd['id']);});}[_0x111335(0xf2)](_0x3b0f02,_0x480701){const _0x28e686=_0x111335;this[_0x28e686(0x183)][_0x28e686(0x15f)][_0x28e686(0x103)](_0x3b0f02,_0x480701);}async[_0x111335(0x116)](_0xb14e42){const _0x4d3dfa=_0x111335,_0x4bc816=_0xb14e42[_0x4d3dfa(0x15d)]||this[_0x4d3dfa(0xfa)];return this[_0x4d3dfa(0x140)][_0x4d3dfa(0x11b)](async _0x5a94c6=>{const _0x339c99=_0x4d3dfa;await this[_0x339c99(0x183)][_0x339c99(0x15f)][_0x339c99(0x167)]({..._0xb14e42,'abortSignal':_0x5a94c6,'renderingStrategy':_0x4bc816}),_0xb14e42[_0x339c99(0xf6)]&&this[_0x339c99(0xf9)](_0xb14e42['id']);});}[_0x111335(0x152)](_0x438bab){const _0x34ce84=_0x111335;this[_0x34ce84(0x183)][_0x34ce84(0x15f)][_0x34ce84(0x14a)](_0x438bab);}[_0x111335(0xf9)](_0x29ff66){const _0x540396=_0x111335;this[_0x540396(0x183)][_0x540396(0x15f)][_0x540396(0x188)](_0x29ff66);}[_0x111335(0x160)](_0xc808ec){const _0x3cd9fa=_0x111335;this[_0x3cd9fa(0x183)][_0x3cd9fa(0x15f)][_0x3cd9fa(0x129)]()[_0x3cd9fa(0x10a)](_0x456757=>_0x456757[_0x3cd9fa(0x144)](_0xc808ec))[_0x3cd9fa(0x102)](_0x5505e1=>this[_0x3cd9fa(0x183)][_0x3cd9fa(0x15f)][_0x3cd9fa(0x107)](_0x5505e1));}[_0x111335(0x130)](_0x5dde9e){const _0x1cde9b=_0x111335;this[_0x1cde9b(0x183)][_0x1cde9b(0x15f)][_0x1cde9b(0x15b)](this[_0x1cde9b(0x13e)](_0x5dde9e)),this[_0x1cde9b(0x183)][_0x1cde9b(0x120)][_0x1cde9b(0x13a)](!this[_0x1cde9b(0x142)][_0x1cde9b(0x105)][_0x1cde9b(0x17b)](_0x1cde9b(0xfd))),this[_0x1cde9b(0x131)]=!0x0,this[_0x1cde9b(0x183)][_0x1cde9b(0x15f)][_0x1cde9b(0x16b)]();}[_0x111335(0x10b)](_0x57bef7){const _0x3a3ff3=_0x111335;this[_0x3a3ff3(0x140)][_0x3a3ff3(0x175)](),this[_0x3a3ff3(0x183)][_0x3a3ff3(0x15f)][_0x3a3ff3(0x129)]()[_0x3a3ff3(0x10a)](_0x54b1a9=>_0x54b1a9[_0x3a3ff3(0x144)](_0x57bef7['id']))[_0x3a3ff3(0x102)](_0x32f242=>this[_0x3a3ff3(0xf9)](_0x32f242)),this[_0x3a3ff3(0x131)]=!0x1,this[_0x3a3ff3(0x183)][_0x3a3ff3(0x15f)][_0x3a3ff3(0x135)]();}async[_0x111335(0x17a)](){const _0x6273f6=_0x111335;return this[_0x6273f6(0x140)][_0x6273f6(0x111)][_0x6273f6(0x106)](()=>{const _0x5c85ed=_0x6273f6;this[_0x5c85ed(0x131)]=!0x1,this[_0x5c85ed(0x183)][_0x5c85ed(0x15f)][_0x5c85ed(0x135)]();});}[_0x111335(0x15e)](_0x43c10e,_0x3ff636){const _0x5c67b1=_0x111335;this[_0x5c67b1(0x183)][_0x5c67b1(0x120)][_0x5c67b1(0x15e)](_0x43c10e,_0x3ff636);}[_0x111335(0x127)](_0x415307){const _0x153386=_0x111335;this[_0x153386(0x183)][_0x153386(0x120)][_0x153386(0x127)](_0x415307);}[_0x111335(0x141)](_0x1d455e,_0x4bff2f){const _0x278c8b=_0x111335;this[_0x278c8b(0x183)][_0x278c8b(0x120)][_0x278c8b(0x141)](_0x1d455e,_0x4bff2f);}[_0x111335(0x124)](_0x200e95){const _0x101746=_0x111335;this[_0x101746(0x183)][_0x101746(0x120)][_0x101746(0x124)](_0x200e95);}[_0x111335(0x149)](_0x23fd7b){const _0x131fe1=_0x111335;this[_0x131fe1(0x183)][_0x131fe1(0x120)][_0x131fe1(0x149)](_0x23fd7b);}[_0x111335(0x187)](){const _0x3275cd=_0x111335;this[_0x3275cd(0x183)][_0x3275cd(0x120)][_0x3275cd(0x187)]();}[_0x111335(0x109)](){const _0x397820=_0x111335;this[_0x397820(0x183)][_0x397820(0x120)][_0x397820(0x109)]();}[_0x111335(0x11a)](_0x7bc645,_0x6d1067,_0x423948){const _0x16dddc=_0x111335;this[_0x16dddc(0x183)][_0x16dddc(0x120)][_0x16dddc(0x11a)](_0x7bc645,_0x6d1067,_0x423948);}[_0x111335(0x104)](){const _0x92b849=_0x111335;this[_0x92b849(0x183)][_0x92b849(0x120)][_0x92b849(0x104)](),this[_0x92b849(0x183)][_0x92b849(0x120)][_0x92b849(0x184)](this[_0x92b849(0x11c)]());}[_0x111335(0x13c)](_0x2b2719){const _0x3ddc40=_0x111335;this[_0x3ddc40(0x183)][_0x3ddc40(0x120)][_0x3ddc40(0x13c)](_0x2b2719);}[_0x111335(0x117)](_0x5ee989){const _0x1b83e8=_0x111335;this[_0x1b83e8(0x183)][_0x1b83e8(0x120)][_0x1b83e8(0x14c)](_0x5ee989[_0x1b83e8(0x123)]),this[_0x1b83e8(0x183)][_0x1b83e8(0x120)][_0x1b83e8(0x151)](_0x5ee989[_0x1b83e8(0xfb)]),this[_0x1b83e8(0x183)][_0x1b83e8(0x120)][_0x1b83e8(0x184)](this[_0x1b83e8(0x11c)](_0x5ee989));}[_0x111335(0x12a)](_0xae4096,_0xc3facb){const _0x5acea7=_0x111335;this[_0x5acea7(0x183)][_0x5acea7(0x120)][_0x5acea7(0x161)](_0xae4096),_0xc3facb&&this[_0x5acea7(0x183)][_0x5acea7(0x120)][_0x5acea7(0x13a)](!0x1);}[_0x111335(0xff)](_0x2aca49){const _0x2ecc8f=_0x111335;this[_0x2ecc8f(0xfa)]=_0x2aca49;}[_0x111335(0x138)](_0xa8cabd){const _0xad22c7=_0x111335;this[_0xad22c7(0x183)][_0xad22c7(0x15f)][_0xad22c7(0x138)](_0xa8cabd);}[_0x111335(0x16c)](){const _0x28b865=_0x111335;this[_0x28b865(0x122)](_0x57e3d5(this[_0x28b865(0x142)][_0x28b865(0x176)],_0x28b865(0x172)));}[_0x111335(0x122)](_0x5a6874,_0x104d15=!0x1){const _0x20670e=_0x111335;if(_0x104d15&&!_0x348b65()&&_0x5a6874[_0x20670e(0x179)])return this[_0x20670e(0x183)][_0x20670e(0x121)][_0x20670e(0x17d)]='',void this[_0x20670e(0x16f)](_0x5a6874);this[_0x20670e(0x183)][_0x20670e(0x121)][_0x20670e(0x17d)]=_0x5a6874;}[_0x111335(0x16f)](_0x382738){const _0x51f52d=_0x111335;let _0x53c7fa=0x0;clearInterval(this[_0x51f52d(0x108)]),this[_0x51f52d(0x108)]=setInterval(()=>{const _0x35999d=_0x51f52d;this[_0x35999d(0x183)][_0x35999d(0x121)][_0x35999d(0x17d)]=this[_0x35999d(0x183)][_0x35999d(0x121)][_0x35999d(0x17d)]+_0x382738[_0x53c7fa],_0x53c7fa++,_0x53c7fa===_0x382738[_0x35999d(0x179)]&&clearInterval(this[_0x35999d(0x108)]);},0x1e);}[_0x111335(0x16d)](_0x14b48d){const _0x3da802=_0x111335;this[_0x3da802(0x183)][_0x3da802(0x121)][_0x3da802(0x126)]=_0x14b48d;}[_0x111335(0x13e)](_0x168b43){const _0x5591e3=_0x111335,_0x5c8209=_0x168b43[_0x5591e3(0x157)];return _0x5c8209[_0x5591e3(0x123)]&&_0x5c8209[_0x5591e3(0xfb)]?_0x57e3d5(this[_0x5591e3(0x142)][_0x5591e3(0x176)],_0x5591e3(0xf3)):_0x5c8209[_0x5591e3(0x123)]?_0x57e3d5(this[_0x5591e3(0x142)][_0x5591e3(0x176)],_0x5591e3(0x11d)):_0x5c8209[_0x5591e3(0xfb)]?_0x57e3d5(this[_0x5591e3(0x142)][_0x5591e3(0x176)],_0x5591e3(0x101)):_0x57e3d5(this[_0x5591e3(0x142)][_0x5591e3(0x176)],_0x5591e3(0x177));}[_0x111335(0x11c)](_0x13470d){const _0x3cc536=_0x111335;return _0x13470d?_0x13470d[_0x3cc536(0x123)]&&_0x13470d[_0x3cc536(0xfb)]?_0x57e3d5(this[_0x3cc536(0x142)][_0x3cc536(0x176)],_0x3cc536(0x137)):_0x13470d[_0x3cc536(0x123)]?_0x57e3d5(this[_0x3cc536(0x142)][_0x3cc536(0x176)],_0x3cc536(0xf4)):_0x13470d[_0x3cc536(0xfb)]?_0x57e3d5(this[_0x3cc536(0x142)][_0x3cc536(0x176)],_0x3cc536(0x165)):_0x57e3d5(this[_0x3cc536(0x142)][_0x3cc536(0x176)],_0x3cc536(0x12f)):_0x57e3d5(this[_0x3cc536(0x142)][_0x3cc536(0x176)],_0x3cc536(0x12f));}[_0x111335(0x14f)](_0x5e63c6,_0x41b1c9,_0x14b15c,_0x549f60){const _0x489ea6=_0x111335;this[_0x489ea6(0x183)][_0x489ea6(0x14f)](_0x5e63c6,_0x41b1c9,_0x14b15c,_0x549f60);}[_0x111335(0x147)](_0x4855a1){const _0x576cf2=_0x111335;this[_0x576cf2(0x183)][_0x576cf2(0x147)](_0x4855a1);}[_0x111335(0x10d)](){const _0x490389=_0x111335;this[_0x490389(0x183)][_0x490389(0x120)][_0x490389(0x10d)]();}[_0x111335(0xf7)](_0x2353f3,_0x1254e0){const _0x8fa3a5=_0x111335;this[_0x8fa3a5(0x183)][_0x8fa3a5(0x15f)][_0x8fa3a5(0x100)](_0x2353f3,_0x1254e0);}[_0x111335(0xf0)](){const _0xace2a5=_0x111335;this[_0xace2a5(0x183)][_0xace2a5(0x120)][_0xace2a5(0x13f)]=!0x0;}[_0x111335(0x17e)](){const _0x22cb01=_0x111335;this[_0x22cb01(0x183)][_0x22cb01(0x120)][_0x22cb01(0x13f)]=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x194de3=_0x2311;function _0x458c(){const _0x2d9a17=['ai-chat-source-resources-load-failed','urls','addUrlToContext','addSelectionToContext','filter','_removeContextItem','Current\x20document','addFilesToContext','addResourceToContext','map','delete','name','_config','current-document','start','contextItemAdded','mapContextItemsToRequestData','hidden','HTML','isReadOnly','contextItemRemoved','_connector','length','ai-request-aborted','removeFromContext','addToConversationContext','uploadUrl','set','_ownerId','text/markdown','values','_isResourceInContext','ai-chat-context-invalid-data','ai-chat-file-upload-failed','sourceResourcesLoaded','data','message','ai-chat-document-upload-failed','text/plain','uiId','loadSourceResources','uploadProgressChanged','resourceStateChanged','isCurrentDocumentInConversation','label','_pendingContextItems','_findSourceIdsByResourceId','2085612AsZYvh','ai-chat-resource-no-data','ai-chat-url-upload-failed','content','ai-chat-resource-load-failed','getDocument','clearPendingContextItems','contextSent','resources','SELECTION','object','_startUploadOperation','url','document','URL','size','selection','_getCustomSourcesInitialState','_finishUploadOperation','populateFromMessage','1xPrLCF','getResources','find','file-','ai-chat-source-not-found','sources','getSentContextItems','all','push','isCurrentDocumentInContext','addCurrentDocumentToContext','_convertTextResourceToFile','_addToConversationContextItem','files','File','end','_updateResourceInContextState','DOCUMENT','7017976sHvjpV','6749616sqzBca','_mapContextItemToRequestData','enabled','getData','_addContextOptionsState','error','attributes','object\x20with\x20content\x20and\x20type\x20properties','FILE','from','isHidden','_ongoingUploads','text/html','contextItemLoadingEnded','_conversationContextItems','version','fetchDocument','_ongoingUploadOperations','string','fire','type','getId','removeSelectionFromContext','forEach','ai-chat-context-unsupported-type','_setAddContextOptionsDefaultState','stack','_createContextItemFromContent','init','_finishContextItemLoading','51763768AJxwJm','uploadDocument','url-','isSelectionInContext','has','2639362QKgycu','_addContextItem','resourceId','sessionId','addContextOptionsChanged','abortController','isInContext','abort','files-','getPendingContextItems','get','9056175pbvycd','updateCurrentDocument','5108865MzKCeK','startsWith','uploadFile','MARKDOWN','_toggleAddCurrentDocumentOptionVisibility','TEXT'];_0x458c=function(){return _0x2d9a17;};return _0x458c();}(function(_0x434c15,_0x350514){const _0x1a195c=_0x2311,_0x3a0112=_0x434c15();while(!![]){try{const _0x341566=parseInt(_0x1a195c(0xb3))/0x1*(-parseInt(_0x1a195c(0xe9))/0x2)+-parseInt(_0x1a195c(0xf6))/0x3+-parseInt(_0x1a195c(0x9f))/0x4+-parseInt(_0x1a195c(0xf4))/0x5+-parseInt(_0x1a195c(0xc6))/0x6+parseInt(_0x1a195c(0xc5))/0x7+parseInt(_0x1a195c(0xe4))/0x8;if(_0x341566===_0x350514)break;else _0x3a0112['push'](_0x3a0112['shift']());}catch(_0x3133b1){_0x3a0112['push'](_0x3a0112['shift']());}}}(_0x458c,0xf263d));import{CKEditorError as _0x74f2b5,ObservableMixin as _0x377a6e,uid as _0x4d7999}from'ckeditor5/src/utils.js';import{AIContextItemType as _0x285026,AIContextTextResourceType as _0x3b0f38}from'../../aicore/model/aicontext.js';import{escape as _0x59e1df}from'es-toolkit/compat';function _0x2311(_0x5748ed,_0x586d72){const _0x458cd0=_0x458c();return _0x2311=function(_0x23116f,_0x578653){_0x23116f=_0x23116f-0x9f;let _0x3ea888=_0x458cd0[_0x23116f];return _0x3ea888;},_0x2311(_0x5748ed,_0x586d72);}export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x194de3(0x10b),_0x194de3(0x110),_0x194de3(0xd3),_0x194de3(0xa6),_0x194de3(0xcb),_0x194de3(0xed),_0x194de3(0x11e),_0x194de3(0x126),_0x194de3(0x125)];export class AIChatContext extends _0x377a6e(){[_0x194de3(0x111)];[_0x194de3(0x108)];[_0x194de3(0x118)];constructor({connector:_0xa8a3df,config:_0x4fc587,ownerId:_0x31c41e}){const _0x174f44=_0x194de3;super(),this[_0x174f44(0x111)]=_0xa8a3df,this[_0x174f44(0x108)]=_0x4fc587,this[_0x174f44(0x118)]=_0x31c41e;}[_0x194de3(0xe2)](){const _0x46c816=_0x194de3;this[_0x46c816(0x129)]=new Map(),this[_0x46c816(0xd4)]=new Map(),this[_0x46c816(0xd1)]=new Map(),this[_0x46c816(0xd7)]=new Map(),this[_0x46c816(0xdf)]();}[_0x194de3(0xf2)](){const _0x2c5d8c=_0x194de3;return this[_0x2c5d8c(0x129)];}async[_0x194de3(0xb2)](_0x18e48f){const _0x152e51=_0x194de3,_0x568aec=await this[_0x152e51(0xe1)](_0x18e48f);return this[_0x152e51(0xbf)](_0x568aec),_0x152e51(0x109)===_0x568aec[_0x152e51(0x123)]&&this[_0x152e51(0xfa)](),_0x568aec;}async[_0x194de3(0xe1)](_0x51d8e5){const _0x4fe3c8=_0x194de3;if(_0x51d8e5[_0x4fe3c8(0xda)]===_0x285026[_0x4fe3c8(0xc4)]){const _0x270482=await this[_0x4fe3c8(0x111)][_0x4fe3c8(0xd6)](this[_0x4fe3c8(0x118)],_0x51d8e5['id'])[_0x4fe3c8(0xa4)]();return{'id':_0x4fe3c8(0x109),'uiId':_0x4fe3c8(0x109),'label':_0x4fe3c8(0x102),'type':_0x51d8e5[_0x4fe3c8(0xda)],'content':_0x270482[_0x4fe3c8(0xa2)],'hidden':this[_0x4fe3c8(0xd4)][_0x4fe3c8(0xe8)](_0x4fe3c8(0x109)),'version':_0x270482[_0x4fe3c8(0xcc)]?.[_0x4fe3c8(0xd5)],'sessionId':_0x270482[_0x4fe3c8(0xcc)]?.[_0x4fe3c8(0xec)]};}return{'id':_0x51d8e5['id'],'uiId':_0x51d8e5['id'],'label':_0x51d8e5[_0x4fe3c8(0xcc)]?.[_0x4fe3c8(0x128)]||_0x51d8e5[_0x4fe3c8(0x107)]||_0x51d8e5[_0x4fe3c8(0xab)]||_0x51d8e5['id'],'type':_0x51d8e5[_0x4fe3c8(0xda)],..._0x51d8e5?.[_0x4fe3c8(0xcc)]?.[_0x4fe3c8(0xeb)]?{'resourceId':_0x51d8e5[_0x4fe3c8(0xcc)]?.[_0x4fe3c8(0xeb)]}:{}};}[_0x194de3(0xb9)](){const _0x3e78db=_0x194de3;return new Map(this[_0x3e78db(0xd4)]);}[_0x194de3(0x114)](_0x25035b){const _0x1f5b31=_0x194de3,_0x3a8cec=this[_0x1f5b31(0x129)][_0x1f5b31(0xf3)](_0x25035b);_0x3a8cec?.[_0x1f5b31(0x10f)]||this[_0x1f5b31(0x101)](_0x25035b);}[_0x194de3(0xa5)](){const _0x3e3776=_0x194de3;if(0x0===this[_0x3e3776(0x129)][_0x3e3776(0xae)])return;for(const _0x5ac66a of this[_0x3e3776(0x129)][_0x3e3776(0x11a)]())this[_0x3e3776(0x101)](_0x5ac66a[_0x3e3776(0x123)]);const _0x5a1d39=this[_0x3e3776(0xd4)][_0x3e3776(0xf3)](_0x3e3776(0x109))||this[_0x3e3776(0x129)][_0x3e3776(0xf3)](_0x3e3776(0x109));_0x5a1d39&&this[_0x3e3776(0xea)]({..._0x5a1d39,'isReadOnly':!0x0,'hidden':!0x0});}[_0x194de3(0x115)](_0x4c646d){const _0x4621d7=_0x194de3;for(const _0x270765 of _0x4c646d[_0x4621d7(0x11a)]())this[_0x4621d7(0xbf)](_0x270765);this[_0x4621d7(0xa5)](),this[_0x4621d7(0xd9)](_0x4621d7(0xa6),{'contextItems':Array[_0x4621d7(0xcf)](this[_0x4621d7(0xb9)]()[_0x4621d7(0x11a)]())});}[_0x194de3(0xbc)](){const _0x4f8baf=_0x194de3;return this[_0x4f8baf(0x129)][_0x4f8baf(0xe8)](_0x4f8baf(0x109));}[_0x194de3(0xe7)](){const _0x381234=_0x194de3;return this[_0x381234(0x129)][_0x381234(0xe8)](_0x381234(0xaf));}[_0x194de3(0x127)](){const _0x24d397=_0x194de3;return this[_0x24d397(0xd4)][_0x24d397(0xe8)](_0x24d397(0x109));}static[_0x194de3(0x10c)](_0x400d87){const _0x5de0b0=_0x194de3;return Array[_0x5de0b0(0xcf)](_0x400d87[_0x5de0b0(0x11a)]())[_0x5de0b0(0x105)](_0x3c4568=>this[_0x5de0b0(0xc7)](_0x3c4568))[_0x5de0b0(0x100)](_0x491aaf=>null!==_0x491aaf);}async[_0x194de3(0x103)](_0x2c5a82,_0x3d0ef0,_0x48ff9d=_0x285026[_0x194de3(0xce)]){const _0x328819=_0x194de3,_0x200b1a=_0x328819(0xf1)+_0x4d7999();this[_0x328819(0xaa)](_0x200b1a);try{await Promise[_0x328819(0xba)](_0x2c5a82[_0x328819(0x105)](async _0x4d3891=>{const _0x2734bf=_0x328819,_0x4c8e56=_0x2734bf(0xb6)+_0x4d7999(),_0x54b542=_0x59e1df(_0x4d3891[_0x2734bf(0x107)]);try{this[_0x2734bf(0xea)]({'type':_0x48ff9d,'label':_0x3d0ef0?.[_0x2734bf(0x128)]||_0x54b542,'uiId':_0x4c8e56,'resourceId':_0x3d0ef0?.[_0x2734bf(0xeb)]},!0x0);const _0x60ccf4=this[_0x2734bf(0x111)][_0x2734bf(0xf8)](this[_0x2734bf(0x118)],_0x4d3891,_0x3d0ef0);this[_0x2734bf(0xd1)][_0x2734bf(0x117)](_0x4c8e56,_0x60ccf4[_0x2734bf(0xee)]);const {id:_0x4fa755}=await _0x60ccf4[_0x2734bf(0xdb)]();this[_0x2734bf(0xd1)][_0x2734bf(0x106)](_0x4c8e56),this[_0x2734bf(0xe3)]({'type':_0x48ff9d,'id':_0x4fa755,'label':_0x3d0ef0?.[_0x2734bf(0x128)]||_0x54b542,'uiId':_0x4c8e56,'resourceId':_0x3d0ef0?.[_0x2734bf(0xeb)]},!0x1);}catch(_0x13818c){this[_0x2734bf(0xd1)][_0x2734bf(0x106)](_0x4c8e56);if(!_0x13818c[_0x2734bf(0x120)][_0x2734bf(0xf7)](_0x2734bf(0x113))){const _0x1f0b14=new _0x74f2b5(_0x2734bf(0x11d),null,{'fileName':_0x54b542});_0x1f0b14[_0x2734bf(0xe0)]=_0x13818c[_0x2734bf(0xe0)],this[_0x2734bf(0xd9)](_0x2734bf(0xcb),{'error':_0x1f0b14,'fileName':_0x54b542});}this[_0x2734bf(0x101)](_0x4c8e56);}}));}finally{this[_0x328819(0xb1)](_0x200b1a);}}[_0x194de3(0xbd)](_0x3bad72){const _0x57731a=_0x194de3;if(this[_0x57731a(0xbc)]())return;const _0x28d22e={'type':_0x285026[_0x57731a(0xc4)],'uiId':_0x57731a(0x109),'label':_0x3bad72,'isReadOnly':this[_0x57731a(0xd4)][_0x57731a(0xe8)](_0x57731a(0x109)),'hidden':this[_0x57731a(0xd4)][_0x57731a(0xe8)](_0x57731a(0x109))};this[_0x57731a(0xea)](_0x28d22e);}async[_0x194de3(0xf5)](_0x1c551f,_0x5e03bd,_0x485170,_0x15efb4){const _0x1d6164=_0x194de3,_0x1c3d2f=this[_0x1d6164(0x129)][_0x1d6164(0xf3)](_0x1d6164(0x109));if(_0x1c3d2f&&_0x1c551f){_0x1c3d2f[_0x1d6164(0xaf)]=_0x15efb4?_0x15efb4[_0x1d6164(0x105)](_0x2129c9=>({'start':_0x2129c9[_0x1d6164(0x10a)],'end':_0x2129c9[_0x1d6164(0xc2)]})):[];try{if(_0x1c3d2f[_0x1d6164(0xd5)]===_0x5e03bd)return;const {id:_0x436173}=await this[_0x1d6164(0x111)][_0x1d6164(0xe5)](this[_0x1d6164(0x118)],_0x1c551f,{'version':_0x5e03bd,'sessionId':_0x485170})[_0x1d6164(0xdb)]();_0x1c3d2f['id']=_0x436173,_0x1c3d2f[_0x1d6164(0xa2)]=_0x1c551f,_0x1c3d2f[_0x1d6164(0xd5)]=_0x5e03bd,_0x1c3d2f[_0x1d6164(0xec)]=_0x485170;}catch(_0xc06538){const _0x162433=new _0x74f2b5(_0x1d6164(0x121),null);_0x162433[_0x1d6164(0xe0)]=_0xc06538[_0x1d6164(0xe0)],this[_0x1d6164(0xd9)](_0x1d6164(0xcb),{'error':_0x162433});}}}[_0x194de3(0xff)](_0x421f5f){const _0x421f85=_0x194de3;this[_0x421f85(0xea)]({'type':_0x285026[_0x421f85(0xa8)],'label':_0x421f5f,'uiId':_0x421f85(0xaf),'content':_0x421f5f});}[_0x194de3(0xdc)](){const _0x49a4ea=_0x194de3;this[_0x49a4ea(0x101)](_0x49a4ea(0xaf));}async[_0x194de3(0xfe)](_0x1da7df,_0x3c5c2a){const _0x155d23=_0x194de3,_0x16bacd=_0x155d23(0xe6)+_0x4d7999();this[_0x155d23(0xaa)](_0x16bacd);const _0xcb5d24=_0x155d23(0xe6)+_0x4d7999();try{this[_0x155d23(0xea)]({'type':_0x285026[_0x155d23(0xad)],'label':_0x3c5c2a?.[_0x155d23(0x128)]||_0x1da7df,'uiId':_0xcb5d24,'resourceId':_0x3c5c2a?.[_0x155d23(0xeb)]},!0x0);const _0x113dee=this[_0x155d23(0x111)][_0x155d23(0x116)](this[_0x155d23(0x118)],_0x1da7df,_0x3c5c2a);this[_0x155d23(0xd1)][_0x155d23(0x117)](_0xcb5d24,_0x113dee[_0x155d23(0xee)]);const {id:_0x506de8}=await _0x113dee[_0x155d23(0xdb)]();this[_0x155d23(0xd1)][_0x155d23(0x106)](_0xcb5d24),this[_0x155d23(0xe3)]({'type':_0x285026[_0x155d23(0xad)],'id':_0x506de8,'label':_0x3c5c2a?.[_0x155d23(0x128)]||_0x1da7df,'uiId':_0xcb5d24,'resourceId':_0x3c5c2a?.[_0x155d23(0xeb)]},!0x1);}catch(_0x25b661){this[_0x155d23(0xd1)][_0x155d23(0x106)](_0xcb5d24),(_0x25b661[_0x155d23(0x120)][_0x155d23(0xf7)](_0x155d23(0x113))||this[_0x155d23(0xd9)](_0x155d23(0xcb),{'error':new _0x74f2b5(_0x155d23(0xa1),this,{'url':_0x1da7df,'originalError':_0x25b661}),'url':_0x1da7df}),this[_0x155d23(0x101)](_0xcb5d24));}finally{this[_0x155d23(0xb1)](_0x16bacd);}}async[_0x194de3(0x124)](_0x43a6d0,_0x5a6e03,_0x1dc80a){const _0x2ff54a=_0x194de3,_0x265cda=this[_0x2ff54a(0xca)][_0x2ff54a(0xb8)][_0x2ff54a(0xb5)](_0x1056c4=>_0x1056c4['id']===_0x43a6d0);if(!_0x265cda)return this[_0x2ff54a(0xd9)](_0x2ff54a(0xcb),{'error':new _0x74f2b5(_0x2ff54a(0xb7),this,{'sourceId':_0x43a6d0}),'sourceId':_0x43a6d0}),[];try{const _0xca362e=(await _0x265cda[_0x2ff54a(0xb4)](_0x5a6e03))[_0x2ff54a(0x105)](_0x10593e=>{const _0xa5821b=_0x2ff54a,_0x169061=this[_0xa5821b(0x11b)](_0x10593e['id']);return{..._0x10593e,'isInContext':_0x169061};});return _0x265cda[_0x2ff54a(0xa7)]=_0xca362e,this[_0x2ff54a(0xd9)](_0x2ff54a(0x11e),{'sourceId':_0x43a6d0,'source':_0x265cda,'resources':_0xca362e,'uid':_0x1dc80a}),_0xca362e;}catch(_0x361727){return this[_0x2ff54a(0xd9)](_0x2ff54a(0xcb),{'error':new _0x74f2b5(_0x2ff54a(0xfc),this,{'sourceId':_0x43a6d0,'originalError':_0x361727}),'sourceId':_0x43a6d0,'sourceLabel':_0x265cda[_0x2ff54a(0x128)]}),[];}}async[_0x194de3(0x104)](_0x2fa0ac,_0x23ed66){const _0x540213=_0x194de3;if(this[_0x540213(0x11b)](_0x23ed66['id']))return;let _0x1967a7=_0x23ed66[_0x540213(0x11f)];if(!_0x1967a7&&_0x2fa0ac[_0x540213(0xc9)])try{_0x1967a7=await _0x2fa0ac[_0x540213(0xc9)](_0x23ed66['id']);}catch(_0x5208ec){return void this[_0x540213(0xd9)](_0x540213(0xcb),{'error':new _0x74f2b5(_0x540213(0xa3),this,{'resourceId':_0x23ed66['id'],'sourceId':_0x2fa0ac['id'],'originalError':_0x5208ec}),'resourceId':_0x23ed66['id'],'sourceId':_0x2fa0ac['id']});}if(_0x1967a7)switch(_0x23ed66[_0x540213(0xda)]){case _0x285026[_0x540213(0xad)]:if(_0x540213(0xd8)!=typeof _0x1967a7)return void this[_0x540213(0xd9)](_0x540213(0xcb),{'error':new _0x74f2b5(_0x540213(0x11c),this,{'resourceId':_0x23ed66['id'],'sourceId':_0x2fa0ac['id'],'expectedType':_0x540213(0xd8),'actualType':typeof _0x1967a7}),'resourceId':_0x23ed66['id'],'sourceId':_0x2fa0ac['id']});await this[_0x540213(0xfe)](_0x1967a7,{'label':_0x23ed66[_0x540213(0x128)],'resourceId':_0x23ed66['id']});break;case _0x285026[_0x540213(0xce)]:if(!(_0x1967a7 instanceof File))return void this[_0x540213(0xd9)](_0x540213(0xcb),{'error':new _0x74f2b5(_0x540213(0x11c),this,{'resourceId':_0x23ed66['id'],'sourceId':_0x2fa0ac['id'],'expectedType':_0x540213(0xc1),'actualType':typeof _0x1967a7}),'resourceId':_0x23ed66['id'],'sourceId':_0x2fa0ac['id']});await this[_0x540213(0x103)]([_0x1967a7],{'label':_0x23ed66[_0x540213(0x128)],'resourceId':_0x23ed66['id']});break;case _0x285026[_0x540213(0xfb)]:if(_0x540213(0xa9)!=typeof _0x1967a7||!(_0x540213(0xa2)in _0x1967a7)||!(_0x540213(0xda)in _0x1967a7))return void this[_0x540213(0xd9)](_0x540213(0xcb),{'error':new _0x74f2b5(_0x540213(0x11c),this,{'resourceId':_0x23ed66['id'],'sourceId':_0x2fa0ac['id'],'expectedType':_0x540213(0xcd),'actualType':typeof _0x1967a7}),'resourceId':_0x23ed66['id'],'sourceId':_0x2fa0ac['id']});_0x1967a7=AIChatContext[_0x540213(0xbe)](_0x1967a7,_0x23ed66[_0x540213(0x128)]),await this[_0x540213(0x103)]([_0x1967a7],{'label':_0x23ed66[_0x540213(0x128)],'resourceId':_0x23ed66['id']},_0x285026[_0x540213(0xfb)]);break;default:this[_0x540213(0xd9)](_0x540213(0xcb),{'error':new _0x74f2b5(_0x540213(0xde),this,{'resourceId':_0x23ed66['id'],'sourceId':_0x2fa0ac['id'],'resourceType':_0x23ed66[_0x540213(0xda)]}),'resourceId':_0x23ed66['id'],'sourceId':_0x2fa0ac['id']});}else this[_0x540213(0xd9)](_0x540213(0xcb),{'error':new _0x74f2b5(_0x540213(0xa0),this,{'resourceId':_0x23ed66['id'],'sourceId':_0x2fa0ac['id']}),'resourceId':_0x23ed66['id'],'sourceId':_0x2fa0ac['id']});}static[_0x194de3(0xbe)](_0x512a33,_0x294f74){const _0xcbc37d=_0x194de3;switch(_0x512a33[_0xcbc37d(0xda)]){case _0x3b0f38[_0xcbc37d(0xf9)]:return new File([_0x512a33[_0xcbc37d(0xa2)]],_0x294f74,{'type':_0xcbc37d(0x119)});case _0x3b0f38[_0xcbc37d(0x10e)]:return new File([_0x512a33[_0xcbc37d(0xa2)]],_0x294f74,{'type':_0xcbc37d(0xd2)});default:return new File([_0x512a33[_0xcbc37d(0xa2)]],_0x294f74,{'type':_0xcbc37d(0x122)});}}static[_0x194de3(0xc7)](_0x33a5a7){const _0x466733=_0x194de3;switch(_0x33a5a7[_0x466733(0xda)]){case _0x285026[_0x466733(0xce)]:return{'type':_0x285026[_0x466733(0xce)],'id':_0x33a5a7['id']};case _0x285026[_0x466733(0xad)]:return{'type':_0x285026[_0x466733(0xad)],'id':_0x33a5a7['id']};case _0x285026[_0x466733(0xc4)]:return{'type':_0x285026[_0x466733(0xc4)],'id':_0x33a5a7['id'],..._0x33a5a7[_0x466733(0xaf)]?.[_0x466733(0x112)]&&{'selection':_0x33a5a7[_0x466733(0xaf)]}};case _0x285026[_0x466733(0xfb)]:return{'type':_0x285026[_0x466733(0xce)],'id':_0x33a5a7['id']};default:return null;}}[_0x194de3(0xea)](_0x11f6d0,_0x28b321=!0x1){const _0x47a875=_0x194de3;if(this[_0x47a875(0x129)][_0x47a875(0x117)](_0x11f6d0[_0x47a875(0x123)],_0x11f6d0),_0x11f6d0[_0x47a875(0x10d)]||this[_0x47a875(0xd9)](_0x47a875(0x10b),{'contextItem':_0x11f6d0,'isLoading':_0x28b321}),_0x47a875(0x109)===_0x11f6d0[_0x47a875(0x123)]&&this[_0x47a875(0xfa)](),_0x11f6d0[_0x47a875(0xeb)]){const _0x1da753=this[_0x47a875(0x12a)](_0x11f6d0[_0x47a875(0xeb)]);_0x1da753&&_0x1da753[_0x47a875(0xdd)](_0x1515c5=>{const _0x2c7c45=_0x47a875;this[_0x2c7c45(0xc3)](_0x1515c5,_0x11f6d0[_0x2c7c45(0xeb)],!0x0);});}}[_0x194de3(0x101)](_0x40dd87){const _0xb51e80=_0x194de3,_0x35afca=this[_0xb51e80(0x129)][_0xb51e80(0xf3)](_0x40dd87),_0x167a1a=this[_0xb51e80(0xd1)][_0xb51e80(0xf3)](_0x40dd87);if(_0x167a1a&&(_0x167a1a[_0xb51e80(0xf0)](),this[_0xb51e80(0xd1)][_0xb51e80(0x106)](_0x40dd87)),_0x35afca?.[_0xb51e80(0xeb)]){const _0x36dbd2=this[_0xb51e80(0x12a)](_0x35afca[_0xb51e80(0xeb)]);_0x36dbd2&&_0x36dbd2[_0xb51e80(0xdd)](_0x36462e=>{const _0x370561=_0xb51e80;this[_0x370561(0xc3)](_0x36462e,_0x35afca[_0x370561(0xeb)],!0x1);});}this[_0xb51e80(0x129)][_0xb51e80(0x106)](_0x40dd87),this[_0xb51e80(0xd9)](_0xb51e80(0x110),{'uiId':_0x40dd87,'type':_0x35afca?.[_0xb51e80(0xda)]}),_0xb51e80(0x109)===_0x40dd87&&this[_0xb51e80(0xfa)]();}[_0x194de3(0xe3)](_0x11d467,_0x1cb936){const _0xc71f74=_0x194de3;if(this[_0xc71f74(0x129)][_0xc71f74(0xe8)](_0x11d467[_0xc71f74(0x123)])&&(this[_0xc71f74(0x129)][_0xc71f74(0x117)](_0x11d467[_0xc71f74(0x123)],_0x11d467),this[_0xc71f74(0xd9)](_0xc71f74(0xd3),{'contextItem':_0x11d467,'isLoading':_0x1cb936}),_0x11d467[_0xc71f74(0xeb)])){const _0x3ebe19=this[_0xc71f74(0x12a)](_0x11d467[_0xc71f74(0xeb)]);_0x3ebe19&&_0x3ebe19[_0xc71f74(0xdd)](_0xbb4e5=>{const _0x28f3c5=_0xc71f74;this[_0x28f3c5(0xc3)](_0xbb4e5,_0x11d467[_0x28f3c5(0xeb)],!0x0);});}}[_0x194de3(0xbf)](_0x263783){const _0x8934e4=_0x194de3;this[_0x8934e4(0xd4)][_0x8934e4(0x117)](_0x263783[_0x8934e4(0x123)],_0x263783);}[_0x194de3(0xdf)](){const _0x13353c=_0x194de3;this[_0x13353c(0xca)]={'document':{'enabled':!0x1!==this[_0x13353c(0x108)]?.[_0x13353c(0xac)]?.[_0x13353c(0xc8)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x13353c(0x108)]?.[_0x13353c(0xfd)]?.[_0x13353c(0xc8)]},'files':{'enabled':!0x1!==this[_0x13353c(0x108)]?.[_0x13353c(0xc0)]?.[_0x13353c(0xc8)]},'sources':this[_0x13353c(0xb0)]()},this[_0x13353c(0xd9)](_0x13353c(0xed),{'options':this[_0x13353c(0xca)]});}[_0x194de3(0xb0)](){const _0x23acb5=_0x194de3;return this[_0x23acb5(0x108)]?.[_0x23acb5(0xb8)]?.[_0x23acb5(0x105)](_0x586f09=>({..._0x586f09,'resources':[]}))??[];}[_0x194de3(0xfa)](){const _0x41bc4d=_0x194de3,_0x1cf8c1=this[_0x41bc4d(0xbc)]()||this[_0x41bc4d(0x127)]();this[_0x41bc4d(0xca)][_0x41bc4d(0xac)][_0x41bc4d(0xd0)]=_0x1cf8c1,this[_0x41bc4d(0xd9)](_0x41bc4d(0xed),{'options':this[_0x41bc4d(0xca)]});}[_0x194de3(0x11b)](_0x3d597a){const _0x49b646=_0x194de3;for(const _0x4f29b7 of this[_0x49b646(0x129)][_0x49b646(0x11a)]())if(_0x4f29b7[_0x49b646(0xeb)]===_0x3d597a)return!0x0;for(const _0x15174b of this[_0x49b646(0xd4)][_0x49b646(0x11a)]())if(_0x15174b[_0x49b646(0xeb)]===_0x3d597a)return!0x0;return!0x1;}[_0x194de3(0x12a)](_0x85f959){const _0x3a3b9c=_0x194de3,_0x54d145=[];for(const _0x47a41c of this[_0x3a3b9c(0xca)][_0x3a3b9c(0xb8)]){_0x47a41c[_0x3a3b9c(0xa7)][_0x3a3b9c(0xb5)](_0x3a7288=>_0x3a7288['id']===_0x85f959)&&_0x54d145[_0x3a3b9c(0xbb)](_0x47a41c['id']);}return 0x0===_0x54d145[_0x3a3b9c(0x112)]?null:_0x54d145;}[_0x194de3(0xc3)](_0x5a7a56,_0x173dbd,_0x77f170){const _0x590174=_0x194de3,_0x175b88=this[_0x590174(0xca)][_0x590174(0xb8)][_0x590174(0xb5)](_0x387878=>_0x387878['id']===_0x5a7a56);if(!_0x175b88)return;const _0x467227=_0x175b88[_0x590174(0xa7)][_0x590174(0xb5)](_0x8685e5=>_0x8685e5['id']===_0x173dbd);_0x467227&&(_0x467227[_0x590174(0xef)]=_0x77f170,this[_0x590174(0xd9)](_0x590174(0x126),{'sourceId':_0x5a7a56,'resourceId':_0x173dbd,'isInContext':_0x77f170}));}[_0x194de3(0xaa)](_0x50c9bc){const _0x35a6ed=_0x194de3;this[_0x35a6ed(0xd7)][_0x35a6ed(0x117)](_0x50c9bc,!0x0),this[_0x35a6ed(0xd7)][_0x35a6ed(0xae)]&&this[_0x35a6ed(0xd9)](_0x35a6ed(0x125),{'isUploadInProgress':!0x0});}[_0x194de3(0xb1)](_0x4a0cc7){const _0x145929=_0x194de3;this[_0x145929(0xd7)][_0x145929(0x106)](_0x4a0cc7),0x0===this[_0x145929(0xd7)][_0x145929(0xae)]&&this[_0x145929(0xd9)](_0x145929(0x125),{'isUploadInProgress':!0x1});}}
23
+ const _0x51d86b=_0x5812;(function(_0x1abeb5,_0x340aaa){const _0x4557a6=_0x5812,_0x2a9f6e=_0x1abeb5();while(!![]){try{const _0x5b8351=-parseInt(_0x4557a6(0x1e9))/0x1+-parseInt(_0x4557a6(0x1f4))/0x2*(-parseInt(_0x4557a6(0x239))/0x3)+-parseInt(_0x4557a6(0x1f0))/0x4+-parseInt(_0x4557a6(0x1c4))/0x5+parseInt(_0x4557a6(0x212))/0x6*(-parseInt(_0x4557a6(0x21a))/0x7)+-parseInt(_0x4557a6(0x204))/0x8*(parseInt(_0x4557a6(0x22a))/0x9)+parseInt(_0x4557a6(0x1d0))/0xa;if(_0x5b8351===_0x340aaa)break;else _0x2a9f6e['push'](_0x2a9f6e['shift']());}catch(_0x2ee8db){_0x2a9f6e['push'](_0x2a9f6e['shift']());}}}(_0x59cb,0xb2812));import{CKEditorError as _0x13f7d3,ObservableMixin as _0x45da12,uid as _0xddbaee}from'ckeditor5/src/utils.js';import{AIContextItemType as _0x22fe05,AIContextTextResourceType as _0x362fe0}from'../../aicore/model/aicontext.js';function _0x5812(_0x35cff8,_0x83933c){const _0x59cbc5=_0x59cb();return _0x5812=function(_0x581248,_0x2373f2){_0x581248=_0x581248-0x1bf;let _0x118258=_0x59cbc5[_0x581248];return _0x118258;},_0x5812(_0x35cff8,_0x83933c);}function _0x59cb(){const _0x2d26a9=['content','_addToConversationContextItem','set','401167QNBVKr','isSelectionInContext','forEach','TEXT','resourceStateChanged','push','abortController','3105560IFAeYY','delete','string','_ongoingUploadOperations','21626kZJOfI','ai-chat-context-unsupported-type','uploadProgressChanged','fetchDocument','_ongoingUploads','find','_finishUploadOperation','_toggleAddCurrentDocumentOptionVisibility','abort','resources','addFilesToContext','isHidden','document','startsWith','object\x20with\x20content\x20and\x20type\x20properties','ai-chat-resource-load-failed','10343272RcROqb','isInContext','ai-chat-context-invalid-data','enabled','resourceId','hidden','addSelectionToContext','length','SELECTION','attributes','ai-chat-document-upload-failed','_isResourceInContext','_addContextItem','ai-chat-source-not-found','6OFEjrb','_mapContextItemToRequestData','Current\x20document','uploadDocument','_findSourceIdsByResourceId','size','getDocument','current-document','3004323uiEVRQ','_createContextItemFromContent','sessionId','isReadOnly','DOCUMENT','contextItemAdded','text/html','getSentContextItems','all','files-','getPendingContextItems','urls','uploadFile','addToConversationContext','uploadUrl','_pendingContextItems','9VdVfzu','_updateResourceInContextState','text/plain','MARKDOWN','from','_removeContextItem','init','uiId','isCurrentDocumentInConversation','message','_setAddContextOptionsDefaultState','updateCurrentDocument','ai-chat-file-upload-failed','sources','stack','159iyJLVF','_convertTextResourceToFile','clearPendingContextItems','_getCustomSourcesInitialState','addUrlToContext','ai-chat-source-resources-load-failed','getId','name','contextItemLoadingEnded','_connector','map','File','populateFromMessage','label','has','addCurrentDocumentToContext','url','fire','_ownerId','data','object','addResourceToContext','type','ai-chat-url-upload-failed','HTML','1866510iIcUSE','start','removeFromContext','filter','sourceResourcesLoaded','error','ai-chat-resource-no-data','_config','_finishContextItemLoading','text/markdown','FILE','mapContextItemsToRequestData','34310220MAnsdy','get','url-','_addContextOptionsState','_startUploadOperation','_conversationContextItems','values','files','addContextOptionsChanged','file-','getData','ai-request-aborted','isCurrentDocumentInContext','contextSent','contextItemRemoved','getResources','end','URL','loadSourceResources','selection','version','removeSelectionFromContext'];_0x59cb=function(){return _0x2d26a9;};return _0x59cb();}import{escape as _0x308893}from'es-toolkit/compat';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x51d86b(0x21f),_0x51d86b(0x1de),_0x51d86b(0x241),_0x51d86b(0x1dd),_0x51d86b(0x1c9),_0x51d86b(0x1d8),_0x51d86b(0x1c8),_0x51d86b(0x1ed),_0x51d86b(0x1f6)];export class AIChatContext extends _0x45da12(){[_0x51d86b(0x242)];[_0x51d86b(0x1cb)];[_0x51d86b(0x24b)];constructor({connector:_0x28ccbb,config:_0x27ae87,ownerId:_0xee569a}){const _0x4b57ba=_0x51d86b;super(),this[_0x4b57ba(0x242)]=_0x28ccbb,this[_0x4b57ba(0x1cb)]=_0x27ae87,this[_0x4b57ba(0x24b)]=_0xee569a;}[_0x51d86b(0x230)](){const _0x53d6f1=_0x51d86b;this[_0x53d6f1(0x229)]=new Map(),this[_0x53d6f1(0x1d5)]=new Map(),this[_0x53d6f1(0x1f8)]=new Map(),this[_0x53d6f1(0x1f3)]=new Map(),this[_0x53d6f1(0x234)]();}[_0x51d86b(0x224)](){const _0x387dbb=_0x51d86b;return this[_0x387dbb(0x229)];}async[_0x51d86b(0x245)](_0x1eae1e){const _0x3cd4f2=_0x51d86b,_0x14de3d=await this[_0x3cd4f2(0x21b)](_0x1eae1e);return this[_0x3cd4f2(0x1e7)](_0x14de3d),_0x3cd4f2(0x219)===_0x14de3d[_0x3cd4f2(0x231)]&&this[_0x3cd4f2(0x1fb)](),_0x14de3d;}async[_0x51d86b(0x21b)](_0x5b740c){const _0x2dcee5=_0x51d86b;if(_0x5b740c[_0x2dcee5(0x1c1)]===_0x22fe05[_0x2dcee5(0x21e)]){const _0x202699=await this[_0x2dcee5(0x242)][_0x2dcee5(0x1f7)](this[_0x2dcee5(0x24b)],_0x5b740c['id'])[_0x2dcee5(0x218)]();return{'id':_0x2dcee5(0x219),'uiId':_0x2dcee5(0x219),'label':_0x2dcee5(0x214),'type':_0x5b740c[_0x2dcee5(0x1c1)],'content':_0x202699[_0x2dcee5(0x1e6)],'hidden':this[_0x2dcee5(0x1d5)][_0x2dcee5(0x247)](_0x2dcee5(0x219)),'version':_0x202699[_0x2dcee5(0x20d)]?.[_0x2dcee5(0x1e4)],'sessionId':_0x202699[_0x2dcee5(0x20d)]?.[_0x2dcee5(0x21c)]};}return{'id':_0x5b740c['id'],'uiId':_0x5b740c['id'],'label':_0x5b740c[_0x2dcee5(0x20d)]?.[_0x2dcee5(0x246)]||_0x5b740c[_0x2dcee5(0x240)]||_0x5b740c[_0x2dcee5(0x249)]||_0x5b740c['id'],'type':_0x5b740c[_0x2dcee5(0x1c1)],..._0x5b740c?.[_0x2dcee5(0x20d)]?.[_0x2dcee5(0x208)]?{'resourceId':_0x5b740c[_0x2dcee5(0x20d)]?.[_0x2dcee5(0x208)]}:{}};}[_0x51d86b(0x221)](){const _0x2f2716=_0x51d86b;return new Map(this[_0x2f2716(0x1d5)]);}[_0x51d86b(0x1c6)](_0x3c620d){const _0x33a516=_0x51d86b,_0x1e2deb=this[_0x33a516(0x229)][_0x33a516(0x1d1)](_0x3c620d);_0x1e2deb?.[_0x33a516(0x21d)]||this[_0x33a516(0x22f)](_0x3c620d);}[_0x51d86b(0x23b)](){const _0x510c77=_0x51d86b;if(0x0===this[_0x510c77(0x229)][_0x510c77(0x217)])return;for(const _0x42b51a of this[_0x510c77(0x229)][_0x510c77(0x1d6)]())this[_0x510c77(0x22f)](_0x42b51a[_0x510c77(0x231)]);const _0x18234d=this[_0x510c77(0x1d5)][_0x510c77(0x1d1)](_0x510c77(0x219))||this[_0x510c77(0x229)][_0x510c77(0x1d1)](_0x510c77(0x219));_0x18234d&&this[_0x510c77(0x210)]({..._0x18234d,'isReadOnly':!0x0,'hidden':!0x0});}[_0x51d86b(0x227)](_0x2372cd){const _0x39336f=_0x51d86b;for(const _0x3941c1 of _0x2372cd[_0x39336f(0x1d6)]())this[_0x39336f(0x1e7)](_0x3941c1);this[_0x39336f(0x23b)](),this[_0x39336f(0x24a)](_0x39336f(0x1dd),{'contextItems':Array[_0x39336f(0x22e)](this[_0x39336f(0x221)]()[_0x39336f(0x1d6)]())});}[_0x51d86b(0x1dc)](){const _0x2df91e=_0x51d86b;return this[_0x2df91e(0x229)][_0x2df91e(0x247)](_0x2df91e(0x219));}[_0x51d86b(0x1ea)](){const _0x41b768=_0x51d86b;return this[_0x41b768(0x229)][_0x41b768(0x247)](_0x41b768(0x1e3));}[_0x51d86b(0x232)](){const _0x252b1b=_0x51d86b;return this[_0x252b1b(0x1d5)][_0x252b1b(0x247)](_0x252b1b(0x219));}static[_0x51d86b(0x1cf)](_0x69d608){const _0x5e9c21=_0x51d86b;return Array[_0x5e9c21(0x22e)](_0x69d608[_0x5e9c21(0x1d6)]())[_0x5e9c21(0x243)](_0xc454cc=>this[_0x5e9c21(0x213)](_0xc454cc))[_0x5e9c21(0x1c7)](_0x393b5b=>null!==_0x393b5b);}async[_0x51d86b(0x1fe)](_0x3c84ea,_0x2aa404,_0x1c3b03=_0x22fe05[_0x51d86b(0x1ce)]){const _0x584990=_0x51d86b,_0x378e2e=_0x584990(0x223)+_0xddbaee();this[_0x584990(0x1d4)](_0x378e2e);try{await Promise[_0x584990(0x222)](_0x3c84ea[_0x584990(0x243)](async _0x10b96c=>{const _0x5f1845=_0x584990,_0x312b60=_0x5f1845(0x1d9)+_0xddbaee(),_0x875c4c=_0x308893(_0x10b96c[_0x5f1845(0x240)]);try{this[_0x5f1845(0x210)]({'type':_0x1c3b03,'label':_0x2aa404?.[_0x5f1845(0x246)]||_0x875c4c,'uiId':_0x312b60,'resourceId':_0x2aa404?.[_0x5f1845(0x208)]},!0x0);const _0x4bb389=this[_0x5f1845(0x242)][_0x5f1845(0x226)](this[_0x5f1845(0x24b)],_0x10b96c,_0x2aa404);this[_0x5f1845(0x1f8)][_0x5f1845(0x1e8)](_0x312b60,_0x4bb389[_0x5f1845(0x1ef)]);const {id:_0x1684d0}=await _0x4bb389[_0x5f1845(0x23f)]();this[_0x5f1845(0x1f8)][_0x5f1845(0x1f1)](_0x312b60),this[_0x5f1845(0x1cc)]({'type':_0x1c3b03,'id':_0x1684d0,'label':_0x2aa404?.[_0x5f1845(0x246)]||_0x875c4c,'uiId':_0x312b60,'resourceId':_0x2aa404?.[_0x5f1845(0x208)]},!0x1);}catch(_0xc76b18){this[_0x5f1845(0x1f8)][_0x5f1845(0x1f1)](_0x312b60);if(!_0xc76b18[_0x5f1845(0x233)][_0x5f1845(0x201)](_0x5f1845(0x1db))){const _0x373f66=new _0x13f7d3(_0x5f1845(0x236),null,{'fileName':_0x875c4c});_0x373f66[_0x5f1845(0x238)]=_0xc76b18[_0x5f1845(0x238)],this[_0x5f1845(0x24a)](_0x5f1845(0x1c9),{'error':_0x373f66,'fileName':_0x875c4c});}this[_0x5f1845(0x22f)](_0x312b60);}}));}finally{this[_0x584990(0x1fa)](_0x378e2e);}}[_0x51d86b(0x248)](_0x4029d8){const _0x2e96c5=_0x51d86b;if(this[_0x2e96c5(0x1dc)]())return;const _0x5d7d36={'type':_0x22fe05[_0x2e96c5(0x21e)],'uiId':_0x2e96c5(0x219),'label':_0x4029d8,'isReadOnly':this[_0x2e96c5(0x1d5)][_0x2e96c5(0x247)](_0x2e96c5(0x219)),'hidden':this[_0x2e96c5(0x1d5)][_0x2e96c5(0x247)](_0x2e96c5(0x219))};this[_0x2e96c5(0x210)](_0x5d7d36);}async[_0x51d86b(0x235)](_0x3f97d5,_0x2cc947,_0x202d81,_0x10cbca){const _0x5e2150=_0x51d86b,_0x1eea83=this[_0x5e2150(0x229)][_0x5e2150(0x1d1)](_0x5e2150(0x219));if(_0x1eea83&&_0x3f97d5){_0x1eea83[_0x5e2150(0x1e3)]=_0x10cbca?_0x10cbca[_0x5e2150(0x243)](_0x600782=>({'start':_0x600782[_0x5e2150(0x1c5)],'end':_0x600782[_0x5e2150(0x1e0)]})):[];try{if(_0x1eea83[_0x5e2150(0x1e4)]===_0x2cc947)return;const {id:_0x38a9fb}=await this[_0x5e2150(0x242)][_0x5e2150(0x215)](this[_0x5e2150(0x24b)],_0x3f97d5,{'version':_0x2cc947,'sessionId':_0x202d81})[_0x5e2150(0x23f)]();_0x1eea83['id']=_0x38a9fb,_0x1eea83[_0x5e2150(0x1e6)]=_0x3f97d5,_0x1eea83[_0x5e2150(0x1e4)]=_0x2cc947,_0x1eea83[_0x5e2150(0x21c)]=_0x202d81;}catch(_0x4e3e22){const _0x299d4a=new _0x13f7d3(_0x5e2150(0x20e),null);_0x299d4a[_0x5e2150(0x238)]=_0x4e3e22[_0x5e2150(0x238)],this[_0x5e2150(0x24a)](_0x5e2150(0x1c9),{'error':_0x299d4a});}}}[_0x51d86b(0x20a)](_0x3ba228){const _0x109e24=_0x51d86b;this[_0x109e24(0x210)]({'type':_0x22fe05[_0x109e24(0x20c)],'label':_0x3ba228,'uiId':_0x109e24(0x1e3),'content':_0x3ba228});}[_0x51d86b(0x1e5)](){const _0x1af1af=_0x51d86b;this[_0x1af1af(0x22f)](_0x1af1af(0x1e3));}async[_0x51d86b(0x23d)](_0x455deb,_0x14af9c){const _0x5c77bc=_0x51d86b,_0x2d8c99=_0x5c77bc(0x1d2)+_0xddbaee();this[_0x5c77bc(0x1d4)](_0x2d8c99);const _0x49cb84=_0x5c77bc(0x1d2)+_0xddbaee();try{this[_0x5c77bc(0x210)]({'type':_0x22fe05[_0x5c77bc(0x1e1)],'label':_0x14af9c?.[_0x5c77bc(0x246)]||_0x455deb,'uiId':_0x49cb84,'resourceId':_0x14af9c?.[_0x5c77bc(0x208)]},!0x0);const _0x3145ba=this[_0x5c77bc(0x242)][_0x5c77bc(0x228)](this[_0x5c77bc(0x24b)],_0x455deb,_0x14af9c);this[_0x5c77bc(0x1f8)][_0x5c77bc(0x1e8)](_0x49cb84,_0x3145ba[_0x5c77bc(0x1ef)]);const {id:_0x581784}=await _0x3145ba[_0x5c77bc(0x23f)]();this[_0x5c77bc(0x1f8)][_0x5c77bc(0x1f1)](_0x49cb84),this[_0x5c77bc(0x1cc)]({'type':_0x22fe05[_0x5c77bc(0x1e1)],'id':_0x581784,'label':_0x14af9c?.[_0x5c77bc(0x246)]||_0x455deb,'uiId':_0x49cb84,'resourceId':_0x14af9c?.[_0x5c77bc(0x208)]},!0x1);}catch(_0x51ae20){this[_0x5c77bc(0x1f8)][_0x5c77bc(0x1f1)](_0x49cb84),(_0x51ae20[_0x5c77bc(0x233)][_0x5c77bc(0x201)](_0x5c77bc(0x1db))||this[_0x5c77bc(0x24a)](_0x5c77bc(0x1c9),{'error':new _0x13f7d3(_0x5c77bc(0x1c2),this,{'url':_0x455deb,'originalError':_0x51ae20}),'url':_0x455deb}),this[_0x5c77bc(0x22f)](_0x49cb84));}finally{this[_0x5c77bc(0x1fa)](_0x2d8c99);}}async[_0x51d86b(0x1e2)](_0x4fbd8,_0x349c91,_0xeb456b){const _0x5f51d7=_0x51d86b,_0x33b861=this[_0x5f51d7(0x1d3)][_0x5f51d7(0x237)][_0x5f51d7(0x1f9)](_0xc20fe8=>_0xc20fe8['id']===_0x4fbd8);if(!_0x33b861)return this[_0x5f51d7(0x24a)](_0x5f51d7(0x1c9),{'error':new _0x13f7d3(_0x5f51d7(0x211),this,{'sourceId':_0x4fbd8}),'sourceId':_0x4fbd8}),[];try{const _0x155b10=(await _0x33b861[_0x5f51d7(0x1df)](_0x349c91))[_0x5f51d7(0x243)](_0x641fcc=>{const _0x4b619f=_0x5f51d7,_0x165eaf=this[_0x4b619f(0x20f)](_0x641fcc['id']);return{..._0x641fcc,'isInContext':_0x165eaf};});return _0x33b861[_0x5f51d7(0x1fd)]=_0x155b10,this[_0x5f51d7(0x24a)](_0x5f51d7(0x1c8),{'sourceId':_0x4fbd8,'source':_0x33b861,'resources':_0x155b10,'uid':_0xeb456b}),_0x155b10;}catch(_0x757d64){return this[_0x5f51d7(0x24a)](_0x5f51d7(0x1c9),{'error':new _0x13f7d3(_0x5f51d7(0x23e),this,{'sourceId':_0x4fbd8,'originalError':_0x757d64}),'sourceId':_0x4fbd8,'sourceLabel':_0x33b861[_0x5f51d7(0x246)]}),[];}}async[_0x51d86b(0x1c0)](_0x32587e,_0x4038f1){const _0x4e8124=_0x51d86b;if(this[_0x4e8124(0x20f)](_0x4038f1['id']))return;let _0x4f55da=_0x4038f1[_0x4e8124(0x24c)];if(!_0x4f55da&&_0x32587e[_0x4e8124(0x1da)])try{_0x4f55da=await _0x32587e[_0x4e8124(0x1da)](_0x4038f1['id']);}catch(_0x59d7c7){return void this[_0x4e8124(0x24a)](_0x4e8124(0x1c9),{'error':new _0x13f7d3(_0x4e8124(0x203),this,{'resourceId':_0x4038f1['id'],'sourceId':_0x32587e['id'],'originalError':_0x59d7c7}),'resourceId':_0x4038f1['id'],'sourceId':_0x32587e['id']});}if(_0x4f55da)switch(_0x4038f1[_0x4e8124(0x1c1)]){case _0x22fe05[_0x4e8124(0x1e1)]:if(_0x4e8124(0x1f2)!=typeof _0x4f55da)return void this[_0x4e8124(0x24a)](_0x4e8124(0x1c9),{'error':new _0x13f7d3(_0x4e8124(0x206),this,{'resourceId':_0x4038f1['id'],'sourceId':_0x32587e['id'],'expectedType':_0x4e8124(0x1f2),'actualType':typeof _0x4f55da}),'resourceId':_0x4038f1['id'],'sourceId':_0x32587e['id']});await this[_0x4e8124(0x23d)](_0x4f55da,{'label':_0x4038f1[_0x4e8124(0x246)],'resourceId':_0x4038f1['id']});break;case _0x22fe05[_0x4e8124(0x1ce)]:if(!(_0x4f55da instanceof File))return void this[_0x4e8124(0x24a)](_0x4e8124(0x1c9),{'error':new _0x13f7d3(_0x4e8124(0x206),this,{'resourceId':_0x4038f1['id'],'sourceId':_0x32587e['id'],'expectedType':_0x4e8124(0x244),'actualType':typeof _0x4f55da}),'resourceId':_0x4038f1['id'],'sourceId':_0x32587e['id']});await this[_0x4e8124(0x1fe)]([_0x4f55da],{'label':_0x4038f1[_0x4e8124(0x246)],'resourceId':_0x4038f1['id']});break;case _0x22fe05[_0x4e8124(0x1ec)]:if(_0x4e8124(0x1bf)!=typeof _0x4f55da||!(_0x4e8124(0x1e6)in _0x4f55da)||!(_0x4e8124(0x1c1)in _0x4f55da))return void this[_0x4e8124(0x24a)](_0x4e8124(0x1c9),{'error':new _0x13f7d3(_0x4e8124(0x206),this,{'resourceId':_0x4038f1['id'],'sourceId':_0x32587e['id'],'expectedType':_0x4e8124(0x202),'actualType':typeof _0x4f55da}),'resourceId':_0x4038f1['id'],'sourceId':_0x32587e['id']});_0x4f55da=AIChatContext[_0x4e8124(0x23a)](_0x4f55da,_0x4038f1[_0x4e8124(0x246)]),await this[_0x4e8124(0x1fe)]([_0x4f55da],{'label':_0x4038f1[_0x4e8124(0x246)],'resourceId':_0x4038f1['id']},_0x22fe05[_0x4e8124(0x1ec)]);break;default:this[_0x4e8124(0x24a)](_0x4e8124(0x1c9),{'error':new _0x13f7d3(_0x4e8124(0x1f5),this,{'resourceId':_0x4038f1['id'],'sourceId':_0x32587e['id'],'resourceType':_0x4038f1[_0x4e8124(0x1c1)]}),'resourceId':_0x4038f1['id'],'sourceId':_0x32587e['id']});}else this[_0x4e8124(0x24a)](_0x4e8124(0x1c9),{'error':new _0x13f7d3(_0x4e8124(0x1ca),this,{'resourceId':_0x4038f1['id'],'sourceId':_0x32587e['id']}),'resourceId':_0x4038f1['id'],'sourceId':_0x32587e['id']});}static[_0x51d86b(0x23a)](_0x2c4794,_0x1160cf){const _0xb31a3d=_0x51d86b;switch(_0x2c4794[_0xb31a3d(0x1c1)]){case _0x362fe0[_0xb31a3d(0x22d)]:return new File([_0x2c4794[_0xb31a3d(0x1e6)]],_0x1160cf,{'type':_0xb31a3d(0x1cd)});case _0x362fe0[_0xb31a3d(0x1c3)]:return new File([_0x2c4794[_0xb31a3d(0x1e6)]],_0x1160cf,{'type':_0xb31a3d(0x220)});default:return new File([_0x2c4794[_0xb31a3d(0x1e6)]],_0x1160cf,{'type':_0xb31a3d(0x22c)});}}static[_0x51d86b(0x213)](_0x26f197){const _0x54cc02=_0x51d86b;switch(_0x26f197[_0x54cc02(0x1c1)]){case _0x22fe05[_0x54cc02(0x1ce)]:return{'type':_0x22fe05[_0x54cc02(0x1ce)],'id':_0x26f197['id']};case _0x22fe05[_0x54cc02(0x1e1)]:return{'type':_0x22fe05[_0x54cc02(0x1e1)],'id':_0x26f197['id']};case _0x22fe05[_0x54cc02(0x21e)]:return{'type':_0x22fe05[_0x54cc02(0x21e)],'id':_0x26f197['id'],..._0x26f197[_0x54cc02(0x1e3)]?.[_0x54cc02(0x20b)]&&{'selection':_0x26f197[_0x54cc02(0x1e3)]}};case _0x22fe05[_0x54cc02(0x1ec)]:return{'type':_0x22fe05[_0x54cc02(0x1ce)],'id':_0x26f197['id']};default:return null;}}[_0x51d86b(0x210)](_0xb95f3e,_0x5c8722=!0x1){const _0x43b8e6=_0x51d86b;if(this[_0x43b8e6(0x229)][_0x43b8e6(0x1e8)](_0xb95f3e[_0x43b8e6(0x231)],_0xb95f3e),_0xb95f3e[_0x43b8e6(0x209)]||this[_0x43b8e6(0x24a)](_0x43b8e6(0x21f),{'contextItem':_0xb95f3e,'isLoading':_0x5c8722}),_0x43b8e6(0x219)===_0xb95f3e[_0x43b8e6(0x231)]&&this[_0x43b8e6(0x1fb)](),_0xb95f3e[_0x43b8e6(0x208)]){const _0x59bd99=this[_0x43b8e6(0x216)](_0xb95f3e[_0x43b8e6(0x208)]);_0x59bd99&&_0x59bd99[_0x43b8e6(0x1eb)](_0x2d777b=>{const _0x539f19=_0x43b8e6;this[_0x539f19(0x22b)](_0x2d777b,_0xb95f3e[_0x539f19(0x208)],!0x0);});}}[_0x51d86b(0x22f)](_0x4545ec){const _0x260034=_0x51d86b,_0x209a5b=this[_0x260034(0x229)][_0x260034(0x1d1)](_0x4545ec),_0x1e99a1=this[_0x260034(0x1f8)][_0x260034(0x1d1)](_0x4545ec);if(_0x1e99a1&&(_0x1e99a1[_0x260034(0x1fc)](),this[_0x260034(0x1f8)][_0x260034(0x1f1)](_0x4545ec)),_0x209a5b?.[_0x260034(0x208)]){const _0x4607bd=this[_0x260034(0x216)](_0x209a5b[_0x260034(0x208)]);_0x4607bd&&_0x4607bd[_0x260034(0x1eb)](_0x232fa9=>{const _0x2d6c26=_0x260034;this[_0x2d6c26(0x22b)](_0x232fa9,_0x209a5b[_0x2d6c26(0x208)],!0x1);});}this[_0x260034(0x229)][_0x260034(0x1f1)](_0x4545ec),this[_0x260034(0x24a)](_0x260034(0x1de),{'uiId':_0x4545ec,'type':_0x209a5b?.[_0x260034(0x1c1)]}),_0x260034(0x219)===_0x4545ec&&this[_0x260034(0x1fb)]();}[_0x51d86b(0x1cc)](_0x7edfa1,_0xef93cc){const _0x12f4c6=_0x51d86b;if(this[_0x12f4c6(0x229)][_0x12f4c6(0x247)](_0x7edfa1[_0x12f4c6(0x231)])&&(this[_0x12f4c6(0x229)][_0x12f4c6(0x1e8)](_0x7edfa1[_0x12f4c6(0x231)],_0x7edfa1),this[_0x12f4c6(0x24a)](_0x12f4c6(0x241),{'contextItem':_0x7edfa1,'isLoading':_0xef93cc}),_0x7edfa1[_0x12f4c6(0x208)])){const _0x1552c1=this[_0x12f4c6(0x216)](_0x7edfa1[_0x12f4c6(0x208)]);_0x1552c1&&_0x1552c1[_0x12f4c6(0x1eb)](_0x110b3d=>{const _0x5086fc=_0x12f4c6;this[_0x5086fc(0x22b)](_0x110b3d,_0x7edfa1[_0x5086fc(0x208)],!0x0);});}}[_0x51d86b(0x1e7)](_0x598f99){const _0x1b36bd=_0x51d86b;this[_0x1b36bd(0x1d5)][_0x1b36bd(0x1e8)](_0x598f99[_0x1b36bd(0x231)],_0x598f99);}[_0x51d86b(0x234)](){const _0x3bb043=_0x51d86b;this[_0x3bb043(0x1d3)]={'document':{'enabled':!0x1!==this[_0x3bb043(0x1cb)]?.[_0x3bb043(0x200)]?.[_0x3bb043(0x207)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x3bb043(0x1cb)]?.[_0x3bb043(0x225)]?.[_0x3bb043(0x207)]},'files':{'enabled':!0x1!==this[_0x3bb043(0x1cb)]?.[_0x3bb043(0x1d7)]?.[_0x3bb043(0x207)]},'sources':this[_0x3bb043(0x23c)]()},this[_0x3bb043(0x24a)](_0x3bb043(0x1d8),{'options':this[_0x3bb043(0x1d3)]});}[_0x51d86b(0x23c)](){const _0x3c2964=_0x51d86b;return this[_0x3c2964(0x1cb)]?.[_0x3c2964(0x237)]?.[_0x3c2964(0x243)](_0x5907c7=>({..._0x5907c7,'resources':[]}))??[];}[_0x51d86b(0x1fb)](){const _0x2b805d=_0x51d86b,_0x47213b=this[_0x2b805d(0x1dc)]()||this[_0x2b805d(0x232)]();this[_0x2b805d(0x1d3)][_0x2b805d(0x200)][_0x2b805d(0x1ff)]=_0x47213b,this[_0x2b805d(0x24a)](_0x2b805d(0x1d8),{'options':this[_0x2b805d(0x1d3)]});}[_0x51d86b(0x20f)](_0x44c101){const _0x456ab7=_0x51d86b;for(const _0x4adaf3 of this[_0x456ab7(0x229)][_0x456ab7(0x1d6)]())if(_0x4adaf3[_0x456ab7(0x208)]===_0x44c101)return!0x0;for(const _0x8ce5e3 of this[_0x456ab7(0x1d5)][_0x456ab7(0x1d6)]())if(_0x8ce5e3[_0x456ab7(0x208)]===_0x44c101)return!0x0;return!0x1;}[_0x51d86b(0x216)](_0x5e5087){const _0x29c000=_0x51d86b,_0x1aab83=[];for(const _0x3b44eb of this[_0x29c000(0x1d3)][_0x29c000(0x237)]){_0x3b44eb[_0x29c000(0x1fd)][_0x29c000(0x1f9)](_0x3e71e2=>_0x3e71e2['id']===_0x5e5087)&&_0x1aab83[_0x29c000(0x1ee)](_0x3b44eb['id']);}return 0x0===_0x1aab83[_0x29c000(0x20b)]?null:_0x1aab83;}[_0x51d86b(0x22b)](_0x169fc1,_0x44c1fc,_0x53ed8f){const _0xc6fe2c=_0x51d86b,_0x5003a1=this[_0xc6fe2c(0x1d3)][_0xc6fe2c(0x237)][_0xc6fe2c(0x1f9)](_0x2cbf84=>_0x2cbf84['id']===_0x169fc1);if(!_0x5003a1)return;const _0x358bf4=_0x5003a1[_0xc6fe2c(0x1fd)][_0xc6fe2c(0x1f9)](_0x32ec1f=>_0x32ec1f['id']===_0x44c1fc);_0x358bf4&&(_0x358bf4[_0xc6fe2c(0x205)]=_0x53ed8f,this[_0xc6fe2c(0x24a)](_0xc6fe2c(0x1ed),{'sourceId':_0x169fc1,'resourceId':_0x44c1fc,'isInContext':_0x53ed8f}));}[_0x51d86b(0x1d4)](_0x514d7b){const _0x486b81=_0x51d86b;this[_0x486b81(0x1f3)][_0x486b81(0x1e8)](_0x514d7b,!0x0),this[_0x486b81(0x1f3)][_0x486b81(0x217)]&&this[_0x486b81(0x24a)](_0x486b81(0x1f6),{'isUploadInProgress':!0x0});}[_0x51d86b(0x1fa)](_0x591e91){const _0x50f074=_0x51d86b;this[_0x50f074(0x1f3)][_0x50f074(0x1f1)](_0x591e91),0x0===this[_0x50f074(0x1f3)][_0x50f074(0x217)]&&this[_0x50f074(0x24a)](_0x50f074(0x1f6),{'isUploadInProgress':!0x1});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x29dd(){const _0x35d9e5=['delegate','lastInteraction','getDefault','contextItems','setModel','handleUserInteraction','1032VybGyV','getInteraction','isCurrentDocumentInContext','reset','find','382417Emkyzs','36uXFcnt','ai-chat-conversation-already-started','isCurrentDocumentInConversation','getAll','153515uOUbZZ','assistant','ai-chat-conversation-init-from-id-failed','11wqVTdX','createInteraction','483VVZUnx','updateCurrentDocument','destroy','chatContext','321016Iqgswo','splice','length','getDocumentContext','group','conversationStarted','_extractContextItems','getPendingContextItems','prompt','241805mBpxKk','conversationInitialized','startConversation','message','content','addUrlToContext','currentInteraction','addResourceToContext','isStarted','ai-chat-conversation-set-model-null','fire','quickActionData','attributes','role','defaultModelId','sessionId','addToConversationContext','loadSourceResources','ai-chat-conversation-set-model-not-available','isSelectionInContext','getConversation','capabilities','isAvailable','getCapabilitiesConfig','init','interactions','removeFromContext','type','5971810DwHOpe','conversationId','text','stack','2148zMcbeE','populateFromMessage','load','indexOf','ai-chat-conversation-init-failed','title','chatCapabilities','updateCurrentDocumentInContext','start','reasoning','ai-chat-conversation-start-failed','user','setConversationTitle','addCurrentDocumentToContext','ai-chat-handle-user-conversation-not-initialized','addSelectionToContext','_processMessagesToInteractions','error','5031xPmSFF','toLowerCase','text-delta','connector','modification-delta','toggleReasoning','model','toggleWebSearch','options','currentReply','modelSelected','appendContent','webSearch','interactionCreated','hasOwn','push','set','addFilesToContext','ai-chat-handle-user-interaction-already-in-progress','removeSelectionFromContext','stop','selectedModel','removeInteraction','createReply','chatModels','fetchConversationMessages','getMessages','getCurrentDocumentContext','getEditor','fetchConversation','ai-chat-conversation-start-no-model-selected'];_0x29dd=function(){return _0x35d9e5;};return _0x29dd();}const _0x553bfe=_0x48e1;(function(_0x4019be,_0x55a62f){const _0x554c95=_0x48e1,_0x561b73=_0x4019be();while(!![]){try{const _0x1525d5=parseInt(_0x554c95(0x1fd))/0x1+parseInt(_0x554c95(0x1f4))/0x2+parseInt(_0x554c95(0x1f0))/0x3*(parseInt(_0x554c95(0x21d))/0x4)+parseInt(_0x554c95(0x1eb))/0x5*(parseInt(_0x554c95(0x1e7))/0x6)+parseInt(_0x554c95(0x1e6))/0x7+parseInt(_0x554c95(0x1e1))/0x8*(parseInt(_0x554c95(0x22f))/0x9)+-parseInt(_0x554c95(0x219))/0xa*(parseInt(_0x554c95(0x1ee))/0xb);if(_0x1525d5===_0x55a62f)break;else _0x561b73['push'](_0x561b73['shift']());}catch(_0x57418f){_0x561b73['push'](_0x561b73['shift']());}}}(_0x29dd,0x31735));function _0x48e1(_0x415212,_0xb361cb){const _0x29dde4=_0x29dd();return _0x48e1=function(_0x48e12c,_0x3263c7){_0x48e12c=_0x48e12c-0x1bd;let _0x33a984=_0x29dde4[_0x48e12c];return _0x33a984;},_0x48e1(_0x415212,_0xb361cb);}import{CKEditorError as _0x53d72b,EmitterMixin as _0x22ffd0}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x4b1e7b}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x3f2ae3,AI_CONTEXT_MODEL_EVENT_NAMES as _0x21d635}from'./aichatcontext.js';import{AICapabilities as _0x4e9e24,CAPABILITIES_MODEL_EVENT_NAMES as _0x399fac}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x467d53}from'./aichatinteraction.js';export class AIChatConversation extends _0x22ffd0(){['id'];[_0x553bfe(0x205)]=!0x1;[_0x553bfe(0x216)]=[];[_0x553bfe(0x203)];[_0x553bfe(0x1d1)];[_0x553bfe(0x1bf)];[_0x553bfe(0x1c4)];constructor(_0x4ef96c){const _0x4ebabd=_0x553bfe;super(),this[_0x4ebabd(0x1c4)]=_0x4ef96c,this[_0x4ebabd(0x1bf)]=_0x4ef96c[_0x4ebabd(0x1bf)],this[_0x4ebabd(0x1d4)]=_0x4ef96c[_0x4ebabd(0x1d4)],this['id']=_0x4ef96c[_0x4ebabd(0x21a)];}async[_0x553bfe(0x215)](_0x152a66){const _0x2d477b=_0x553bfe;try{this[_0x2d477b(0x1f3)]=new _0x3f2ae3({'connector':this[_0x2d477b(0x1bf)],'config':_0x152a66,'ownerId':this['id']}),this[_0x2d477b(0x1f3)][_0x2d477b(0x1db)](..._0x21d635)['to'](this),this[_0x2d477b(0x1f3)][_0x2d477b(0x215)](),this[_0x2d477b(0x223)]=new _0x4e9e24(),this[_0x2d477b(0x223)][_0x2d477b(0x1db)](..._0x399fac)['to'](this),this[_0x2d477b(0x223)][_0x2d477b(0x215)]();const _0x44e06b=await this[_0x2d477b(0x1d4)][_0x2d477b(0x1ea)]();this[_0x2d477b(0x207)](_0x2d477b(0x1fe),{'availableModels':_0x44e06b});const _0x2dc3f8=await this[_0x2d477b(0x1d4)][_0x2d477b(0x1dd)](this[_0x2d477b(0x1c4)][_0x2d477b(0x20b)]);_0x2dc3f8&&await this[_0x2d477b(0x1df)](_0x2dc3f8);}catch(_0x17d203){const _0x59417d=new _0x53d72b(_0x2d477b(0x221),null,{'message':_0x17d203[_0x2d477b(0x200)]});_0x59417d[_0x2d477b(0x21c)]=_0x17d203[_0x2d477b(0x21c)],this[_0x2d477b(0x207)](_0x2d477b(0x22e),{'error':_0x59417d});}}async[_0x553bfe(0x225)](){const _0x569b50=_0x553bfe;if(this[_0x569b50(0x205)])throw new _0x53d72b(_0x569b50(0x1e8),null,{'conversation':this});if(!this[_0x569b50(0x1d1)])throw new _0x53d72b(_0x569b50(0x1da),null,{'conversation':this});try{const {id:_0x6b8c07}=await this[_0x569b50(0x1bf)][_0x569b50(0x1ff)](this['id'],this[_0x569b50(0x1c4)][_0x569b50(0x1f8)])[_0x569b50(0x211)]();this['id']=_0x6b8c07,this[_0x569b50(0x205)]=!0x0,this[_0x569b50(0x207)](_0x569b50(0x1f9),{'conversationId':this['id'],'selectedModel':this[_0x569b50(0x1d1)]});}catch(_0x1561ea){const _0x5f51ef=new _0x53d72b(_0x569b50(0x227),null,{'message':_0x1561ea[_0x569b50(0x200)]});_0x5f51ef[_0x569b50(0x21c)]=_0x1561ea[_0x569b50(0x21c)],this[_0x569b50(0x207)](_0x569b50(0x22e),{'error':_0x5f51ef});}}async[_0x553bfe(0x21f)](_0x279b98,_0x1a88d4){const _0x2fd802=_0x553bfe;try{const _0xeac405=await this[_0x2fd802(0x1bf)][_0x2fd802(0x1d9)](_0x279b98)[_0x2fd802(0x211)](),_0x4ce7c8=await this[_0x2fd802(0x1bf)][_0x2fd802(0x1d5)](_0x279b98)[_0x2fd802(0x1d6)](),_0x521661=_0x4ce7c8[0x0][_0x2fd802(0x1c2)];this[_0x2fd802(0x205)]=!0x0,this['id']=_0xeac405['id'],_0x2fd802(0x222)in _0xeac405?this[_0x2fd802(0x207)](_0x2fd802(0x229),_0xeac405[_0x2fd802(0x222)],!0x0):this[_0x2fd802(0x207)](_0x2fd802(0x229),'',!0x0);const _0x5a820d=(await this[_0x2fd802(0x1d4)][_0x2fd802(0x1ea)]())[_0x2fd802(0x1e5)](_0x407914=>_0x407914['id'][_0x2fd802(0x1bd)]()===_0x521661[_0x2fd802(0x1bd)]());return this[_0x2fd802(0x1d1)]=_0x5a820d,this[_0x2fd802(0x207)](_0x2fd802(0x1c6),{'selectedModel':_0x5a820d,'isDisabled':!0x0}),await this[_0x2fd802(0x22d)](_0x4ce7c8,_0x1a88d4,_0x521661),this[_0x2fd802(0x203)]=void 0x0,this;}catch(_0x193f56){const _0x4cc45d=new _0x53d72b(_0x2fd802(0x1ed),null,{'message':_0x193f56[_0x2fd802(0x200)],'conversationId':_0x279b98});throw _0x4cc45d[_0x2fd802(0x21c)]=_0x193f56[_0x2fd802(0x21c)],this[_0x2fd802(0x207)](_0x2fd802(0x22e),{'error':_0x4cc45d}),_0x4cc45d;}}async[_0x553bfe(0x22d)](_0x4d94df,_0x22b8b2,_0xc53e71){const _0x45923f=_0x553bfe;let _0x5dda47;for(const _0x175709 of _0x4d94df)if(_0x45923f(0x228)===_0x175709[_0x45923f(0x20a)]){const _0x597c05=await this[_0x45923f(0x1fa)](_0x175709),_0x1b6cf8={'isReasoningEnabled':Object[_0x45923f(0x1ca)](_0x175709[_0x45923f(0x212)],_0x45923f(0x226)),'isWebSearchEnabled':Object[_0x45923f(0x1ca)](_0x175709[_0x45923f(0x212)],_0x45923f(0x1c8))};_0x5dda47=this[_0x45923f(0x1ef)]({'userMessage':_0x175709[_0x45923f(0x1fc)],'contextItems':_0x597c05,'capabilities':_0x1b6cf8,'modelId':_0xc53e71,'quickActionData':_0x175709[_0x45923f(0x209)]?.[_0x45923f(0x208)]}),this[_0x45923f(0x203)]=_0x5dda47,this[_0x45923f(0x1f3)][_0x45923f(0x20d)](this[_0x45923f(0x203)][_0x45923f(0x1de)]);}else{if(_0x45923f(0x1ec)===_0x175709[_0x45923f(0x20a)]&&_0x5dda47)for(const _0x1c48cf of _0x175709[_0x45923f(0x201)]){const _0x5c5703=_0x45923f(0x21b)===_0x1c48cf[_0x45923f(0x218)]?_0x45923f(0x1be):_0x45923f(0x1c0),_0x19ffda=_0x5dda47[_0x45923f(0x1f7)]()?.[_0x45923f(0x20c)]!==_0x22b8b2;_0x5dda47[_0x45923f(0x1c5)]=_0x5dda47[_0x45923f(0x1d3)]({'type':_0x5c5703,'isDone':!0x0,'interactionId':_0x5dda47['id'],'areActionsDisabled':_0x19ffda}),_0x5dda47[_0x45923f(0x1c5)][_0x45923f(0x1c7)](_0x1c48cf[_0x45923f(0x201)]);}}}async[_0x553bfe(0x1fa)](_0x5535f0){const _0x52a106=_0x553bfe,_0x41ce97=new Map();if(!_0x5535f0[_0x52a106(0x201)])return _0x41ce97;for(const _0x3b7d6c of _0x5535f0[_0x52a106(0x201)]){const _0x1e7564=await this[_0x52a106(0x1f3)][_0x52a106(0x21e)](_0x3b7d6c);_0x1e7564&&_0x41ce97[_0x52a106(0x1cc)](_0x1e7564['id'],_0x1e7564);}return _0x41ce97;}async[_0x553bfe(0x1e0)]({userMessage:_0x10e13d,quickActionData:_0x30d98e}){const _0x1ffd60=_0x553bfe;if(!this[_0x1ffd60(0x205)])throw new _0x53d72b(_0x1ffd60(0x22b),null,{'conversation':this});if(this[_0x1ffd60(0x203)])throw new _0x53d72b(_0x1ffd60(0x1ce),null,{'conversation':this});try{const _0x318e60=this[_0x1ffd60(0x1f3)][_0x1ffd60(0x1fb)](),_0x491294=this[_0x1ffd60(0x223)][_0x1ffd60(0x214)](),_0x31efeb=this[_0x1ffd60(0x1d1)]['id'];this[_0x1ffd60(0x203)]=this[_0x1ffd60(0x1ef)]({'userMessage':_0x10e13d,'contextItems':_0x318e60,'capabilities':_0x491294,'modelId':_0x31efeb,'quickActionData':_0x30d98e}),await this[_0x1ffd60(0x203)][_0x1ffd60(0x225)](),this[_0x1ffd60(0x1f3)][_0x1ffd60(0x20d)](this[_0x1ffd60(0x203)][_0x1ffd60(0x1de)]);}catch(_0x21ac2e){this[_0x1ffd60(0x207)](_0x1ffd60(0x22e),{'interactionId':this[_0x1ffd60(0x203)]?this[_0x1ffd60(0x203)]['id']:void 0x0,'error':_0x21ac2e});}finally{this[_0x1ffd60(0x203)]?.[_0x1ffd60(0x1d0)](),this[_0x1ffd60(0x203)]=void 0x0;}}[_0x553bfe(0x1ef)]({userMessage:_0xd172d3,contextItems:_0x2df870,capabilities:_0x1ab136,modelId:_0x3701bc,quickActionData:_0x18f926}){const _0x5cf724=_0x553bfe,_0x45b5b7=new _0x467d53({'userMessage':_0xd172d3,'contextItems':_0x2df870,'capabilities':_0x1ab136,'conversationId':this['id'],'connector':this[_0x5cf724(0x1bf)],'editor':this[_0x5cf724(0x1c4)][_0x5cf724(0x1d8)]&&this[_0x5cf724(0x1c4)][_0x5cf724(0x1d8)](),'model':_0x3701bc,'quickActionData':_0x18f926});return _0x45b5b7[_0x5cf724(0x1db)](..._0x4b1e7b)['to'](this),this[_0x5cf724(0x216)][_0x5cf724(0x1cb)](_0x45b5b7),this[_0x5cf724(0x207)](_0x5cf724(0x1c9),_0x45b5b7),_0x45b5b7;}[_0x553bfe(0x1e2)](_0x523a57){const _0x272802=_0x553bfe;return this[_0x272802(0x216)][_0x272802(0x1e5)](_0x3e2ae8=>_0x3e2ae8['id']===_0x523a57);}[_0x553bfe(0x1d2)](_0xcfdfda){const _0x54f81b=_0x553bfe,_0x3e50cf=this[_0x54f81b(0x1e2)](_0xcfdfda);_0x3e50cf&&(_0x3e50cf[_0x54f81b(0x1f2)](),this[_0x54f81b(0x216)][_0x54f81b(0x1f5)](this[_0x54f81b(0x216)][_0x54f81b(0x220)](_0x3e50cf),0x1));}get[_0x553bfe(0x1dc)](){const _0x18542=_0x553bfe;return this[_0x18542(0x216)][this[_0x18542(0x216)][_0x18542(0x1f6)]-0x1];}[_0x553bfe(0x22a)](_0x4ed1fb){const _0x4283a1=_0x553bfe;this[_0x4283a1(0x1f3)][_0x4283a1(0x22a)](_0x4ed1fb);}async[_0x553bfe(0x224)]({content:_0x25801a,version:_0xa812b3,sessionId:_0x4c7ed6,selections:_0x1c2217}){const _0x48fe52=_0x553bfe;await this[_0x48fe52(0x1f3)][_0x48fe52(0x1f1)](_0x25801a,_0xa812b3,_0x4c7ed6,_0x1c2217);}[_0x553bfe(0x1d7)](){const _0x4c202b=_0x553bfe;return this[_0x4c202b(0x203)]?.[_0x4c202b(0x1f7)]()?.[_0x4c202b(0x201)]||'';}[_0x553bfe(0x22c)](_0x24df40){const _0x4c0734=_0x553bfe;this[_0x4c0734(0x1f3)][_0x4c0734(0x22c)](_0x24df40);}[_0x553bfe(0x1cf)](){const _0xdd65a2=_0x553bfe;this[_0xdd65a2(0x1f3)][_0xdd65a2(0x1cf)]();}[_0x553bfe(0x1cd)](_0x520a57){const _0xf57391=_0x553bfe;this[_0xf57391(0x1f3)][_0xf57391(0x1cd)](_0x520a57);}[_0x553bfe(0x202)](_0x592bb5){const _0x1282c6=_0x553bfe;this[_0x1282c6(0x1f3)][_0x1282c6(0x202)](_0x592bb5);}[_0x553bfe(0x204)](_0x42cf91,_0x5b35db){const _0x317d12=_0x553bfe;this[_0x317d12(0x1f3)][_0x317d12(0x204)](_0x42cf91,_0x5b35db);}[_0x553bfe(0x20e)](_0x2c1709,_0x285988,_0x5e4870){const _0x1dd1c0=_0x553bfe;return this[_0x1dd1c0(0x1f3)][_0x1dd1c0(0x20e)](_0x2c1709,_0x285988,_0x5e4870);}[_0x553bfe(0x217)](_0x2cea2d){const _0x43281e=_0x553bfe;this[_0x43281e(0x1f3)][_0x43281e(0x217)](_0x2cea2d);}[_0x553bfe(0x1c3)](){const _0x47b5ef=_0x553bfe;this[_0x47b5ef(0x223)][_0x47b5ef(0x1c3)]();}[_0x553bfe(0x1c1)](){const _0x2d44c2=_0x553bfe;this[_0x2d44c2(0x223)][_0x2d44c2(0x1c1)]();}[_0x553bfe(0x1e3)](){const _0x46534d=_0x553bfe;return this[_0x46534d(0x1f3)][_0x46534d(0x1e3)]();}[_0x553bfe(0x1e9)](){const _0x5077d9=_0x553bfe;return this[_0x5077d9(0x1f3)][_0x5077d9(0x1e9)]();}[_0x553bfe(0x210)](){const _0x49c764=_0x553bfe;return this[_0x49c764(0x1f3)][_0x49c764(0x210)]();}async[_0x553bfe(0x1df)](_0x2cea70){const _0x1c46f7=_0x553bfe;if(!_0x2cea70)throw new _0x53d72b(_0x1c46f7(0x206),null,{'conversation':this});if(!0x1===await this[_0x1c46f7(0x1d4)][_0x1c46f7(0x213)](_0x2cea70))throw new _0x53d72b(_0x1c46f7(0x20f),null,{'conversation':this,'model':_0x2cea70});_0x2cea70['id']!==this[_0x1c46f7(0x1d1)]?.['id']&&(this[_0x1c46f7(0x1d1)]=_0x2cea70,this[_0x1c46f7(0x223)][_0x1c46f7(0x1e4)](),this[_0x1c46f7(0x207)](_0x1c46f7(0x1c6),{'selectedModel':_0x2cea70}));}}
23
+ const _0x125b94=_0x573a;function _0x573a(_0x2dc29c,_0x290adb){const _0x5dad54=_0x5dad();return _0x573a=function(_0x573a0a,_0x229c07){_0x573a0a=_0x573a0a-0x1b1;let _0x4d758d=_0x5dad54[_0x573a0a];return _0x4d758d;},_0x573a(_0x2dc29c,_0x290adb);}(function(_0x570d8b,_0x1c2206){const _0x367247=_0x573a,_0x57af42=_0x570d8b();while(!![]){try{const _0x308bea=-parseInt(_0x367247(0x1d2))/0x1*(-parseInt(_0x367247(0x1d1))/0x2)+-parseInt(_0x367247(0x1ec))/0x3*(-parseInt(_0x367247(0x1e1))/0x4)+parseInt(_0x367247(0x21d))/0x5+parseInt(_0x367247(0x204))/0x6+-parseInt(_0x367247(0x1c9))/0x7*(-parseInt(_0x367247(0x1e3))/0x8)+-parseInt(_0x367247(0x219))/0x9*(-parseInt(_0x367247(0x1ba))/0xa)+parseInt(_0x367247(0x200))/0xb*(-parseInt(_0x367247(0x208))/0xc);if(_0x308bea===_0x1c2206)break;else _0x57af42['push'](_0x57af42['shift']());}catch(_0x56e7e7){_0x57af42['push'](_0x57af42['shift']());}}}(_0x5dad,0xbe52a));import{CKEditorError as _0x3b6223,EmitterMixin as _0x2610fb}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x39a293}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x437fe7,AI_CONTEXT_MODEL_EVENT_NAMES as _0x473397}from'./aichatcontext.js';function _0x5dad(){const _0x209fc5=['webSearch','34929VYIqHQ','_extractContextItems','reset','isCurrentDocumentInConversation','6542780ioWIMn','selectedModel','currentInteraction','init','assistant','model','addToConversationContext','chatModels','push','ai-chat-conversation-already-started','contextItems','getEditor','role','type','getCapabilitiesConfig','stack','chatContext','730dwDaBZ','populateFromMessage','error','getCurrentDocumentContext','load','addCurrentDocumentToContext','ai-chat-conversation-init-from-id-failed','toLowerCase','removeInteraction','setModel','isAvailable','getDefault','lastInteraction','toggleReasoning','appendContent','219583xfqlBn','message','currentReply','handleUserInteraction','addUrlToContext','getMessages','title','updateCurrentDocumentInContext','2JFpBHC','1446919jMUmwc','defaultModelId','ai-chat-conversation-start-failed','destroy','updateCurrentDocument','ai-chat-conversation-start-no-model-selected','ai-chat-handle-user-interaction-already-in-progress','createInteraction','getAll','_processMessagesToInteractions','modelSelected','setConversationTitle','removeSelectionFromContext','hasOwn','getPendingContextItems','12LIdyYb','sessionId','136shWfLe','isStarted','prompt','user','splice','set','toggleWebSearch','addSelectionToContext','fire','1180425lTpuoY','stop','getConversation','interactions','fetchConversationMessages','indexOf','modification-delta','createReply','start','find','ai-chat-conversation-init-failed','isCurrentDocumentInContext','addResourceToContext','conversationId','conversationInitialized','content','startConversation','removeFromContext','chatCapabilities','connector','53093579nFdtWb','ai-chat-conversation-set-model-null','ai-chat-handle-user-conversation-not-initialized','fetchConversation','5122590EsyZKW','isSelectionInContext','addFilesToContext','capabilities','12glqchJ','attributes','delegate','getInteraction','options','ai-chat-conversation-set-model-not-available','text','getDocumentContext','interactionCreated','group','text-delta','reasoning','quickActionData','length','loadSourceResources','conversationStarted'];_0x5dad=function(){return _0x209fc5;};return _0x5dad();}import{AICapabilities as _0x5ed96f,CAPABILITIES_MODEL_EVENT_NAMES as _0x12c4bd}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x464ead}from'./aichatinteraction.js';export class AIChatConversation extends _0x2610fb(){['id'];[_0x125b94(0x1e4)]=!0x1;[_0x125b94(0x1ef)]=[];[_0x125b94(0x21f)];[_0x125b94(0x21e)];[_0x125b94(0x1ff)];[_0x125b94(0x20c)];constructor(_0x1c2d2e){const _0xa309ac=_0x125b94;super(),this[_0xa309ac(0x20c)]=_0x1c2d2e,this[_0xa309ac(0x1ff)]=_0x1c2d2e[_0xa309ac(0x1ff)],this[_0xa309ac(0x224)]=_0x1c2d2e[_0xa309ac(0x224)],this['id']=_0x1c2d2e[_0xa309ac(0x1f9)];}async[_0x125b94(0x220)](_0xf53a3c){const _0x4298e0=_0x125b94;try{this[_0x4298e0(0x1b9)]=new _0x437fe7({'connector':this[_0x4298e0(0x1ff)],'config':_0xf53a3c,'ownerId':this['id']}),this[_0x4298e0(0x1b9)][_0x4298e0(0x20a)](..._0x473397)['to'](this),this[_0x4298e0(0x1b9)][_0x4298e0(0x220)](),this[_0x4298e0(0x1fe)]=new _0x5ed96f(),this[_0x4298e0(0x1fe)][_0x4298e0(0x20a)](..._0x12c4bd)['to'](this),this[_0x4298e0(0x1fe)][_0x4298e0(0x220)]();const _0x5491c0=await this[_0x4298e0(0x224)][_0x4298e0(0x1da)]();this[_0x4298e0(0x1eb)](_0x4298e0(0x1fa),{'availableModels':_0x5491c0});const _0x59e66b=await this[_0x4298e0(0x224)][_0x4298e0(0x1c5)](this[_0x4298e0(0x20c)][_0x4298e0(0x1d3)]);_0x59e66b&&await this[_0x4298e0(0x1c3)](_0x59e66b);}catch(_0x48788d){const _0x3367a4=new _0x3b6223(_0x4298e0(0x1f6),null,{'message':_0x48788d[_0x4298e0(0x1ca)]});_0x3367a4[_0x4298e0(0x1b8)]=_0x48788d[_0x4298e0(0x1b8)],this[_0x4298e0(0x1eb)](_0x4298e0(0x1bc),{'error':_0x3367a4});}}async[_0x125b94(0x1f4)](){const _0x4fe2d5=_0x125b94;if(this[_0x4fe2d5(0x1e4)])throw new _0x3b6223(_0x4fe2d5(0x1b2),null,{'conversation':this});if(!this[_0x4fe2d5(0x21e)])throw new _0x3b6223(_0x4fe2d5(0x1d7),null,{'conversation':this});try{const {id:_0x58af17}=await this[_0x4fe2d5(0x1ff)][_0x4fe2d5(0x1fc)](this['id'],this[_0x4fe2d5(0x20c)][_0x4fe2d5(0x211)])[_0x4fe2d5(0x1ee)]();this['id']=_0x58af17,this[_0x4fe2d5(0x1e4)]=!0x0,this[_0x4fe2d5(0x1eb)](_0x4fe2d5(0x217),{'conversationId':this['id'],'selectedModel':this[_0x4fe2d5(0x21e)]});}catch(_0x2b32a9){const _0x296bdc=new _0x3b6223(_0x4fe2d5(0x1d4),null,{'message':_0x2b32a9[_0x4fe2d5(0x1ca)]});_0x296bdc[_0x4fe2d5(0x1b8)]=_0x2b32a9[_0x4fe2d5(0x1b8)],this[_0x4fe2d5(0x1eb)](_0x4fe2d5(0x1bc),{'error':_0x296bdc});}}async[_0x125b94(0x1be)](_0x138e8,_0x49e5ec){const _0x38c01e=_0x125b94;try{const _0x2632d7=await this[_0x38c01e(0x1ff)][_0x38c01e(0x203)](_0x138e8)[_0x38c01e(0x1ee)](),_0x4867f1=await this[_0x38c01e(0x1ff)][_0x38c01e(0x1f0)](_0x138e8)[_0x38c01e(0x1ce)](),_0x235188=_0x4867f1[0x0][_0x38c01e(0x222)];this[_0x38c01e(0x1e4)]=!0x0,this['id']=_0x2632d7['id'],_0x38c01e(0x1cf)in _0x2632d7?this[_0x38c01e(0x1eb)](_0x38c01e(0x1dd),_0x2632d7[_0x38c01e(0x1cf)],!0x0):this[_0x38c01e(0x1eb)](_0x38c01e(0x1dd),'',!0x0);const _0x2585bc=(await this[_0x38c01e(0x224)][_0x38c01e(0x1da)]())[_0x38c01e(0x1f5)](_0x1ea304=>_0x1ea304['id'][_0x38c01e(0x1c1)]()===_0x235188[_0x38c01e(0x1c1)]());return this[_0x38c01e(0x21e)]=_0x2585bc,this[_0x38c01e(0x1eb)](_0x38c01e(0x1dc),{'selectedModel':_0x2585bc,'isDisabled':!0x0}),await this[_0x38c01e(0x1db)](_0x4867f1,_0x49e5ec,_0x235188),this[_0x38c01e(0x21f)]=void 0x0,this;}catch(_0x36f07e){const _0x405fb6=new _0x3b6223(_0x38c01e(0x1c0),null,{'message':_0x36f07e[_0x38c01e(0x1ca)],'conversationId':_0x138e8});throw _0x405fb6[_0x38c01e(0x1b8)]=_0x36f07e[_0x38c01e(0x1b8)],this[_0x38c01e(0x1eb)](_0x38c01e(0x1bc),{'error':_0x405fb6}),_0x405fb6;}}async[_0x125b94(0x1db)](_0x1b7c8f,_0x1bebaf,_0x4d96a2){const _0x35d308=_0x125b94;let _0x4cafe1;for(const _0x4f20e6 of _0x1b7c8f)if(_0x35d308(0x1e6)===_0x4f20e6[_0x35d308(0x1b5)]){const _0x5cbbdc=await this[_0x35d308(0x21a)](_0x4f20e6),_0x57882f={'isReasoningEnabled':Object[_0x35d308(0x1df)](_0x4f20e6[_0x35d308(0x207)],_0x35d308(0x213)),'isWebSearchEnabled':Object[_0x35d308(0x1df)](_0x4f20e6[_0x35d308(0x207)],_0x35d308(0x218))};_0x4cafe1=this[_0x35d308(0x1d9)]({'userMessage':_0x4f20e6[_0x35d308(0x1e5)],'contextItems':_0x5cbbdc,'capabilities':_0x57882f,'modelId':_0x4d96a2,'quickActionData':_0x4f20e6[_0x35d308(0x209)]?.[_0x35d308(0x214)]}),this[_0x35d308(0x21f)]=_0x4cafe1,this[_0x35d308(0x1b9)][_0x35d308(0x223)](this[_0x35d308(0x21f)][_0x35d308(0x1b3)]);}else{if(_0x35d308(0x221)===_0x4f20e6[_0x35d308(0x1b5)]&&_0x4cafe1)for(const _0x176493 of _0x4f20e6[_0x35d308(0x1fb)]){const _0x5f54e4=_0x35d308(0x20e)===_0x176493[_0x35d308(0x1b6)]?_0x35d308(0x212):_0x35d308(0x1f2),_0x195f14=_0x4cafe1[_0x35d308(0x20f)]()?.[_0x35d308(0x1e2)]!==_0x1bebaf;_0x4cafe1[_0x35d308(0x1cb)]=_0x4cafe1[_0x35d308(0x1f3)]({'type':_0x5f54e4,'isDone':!0x0,'interactionId':_0x4cafe1['id'],'areActionsDisabled':_0x195f14}),_0x4cafe1[_0x35d308(0x1cb)][_0x35d308(0x1c8)](_0x176493[_0x35d308(0x1fb)]);}}}async[_0x125b94(0x21a)](_0x572fa7){const _0x12237e=_0x125b94,_0x545809=new Map();if(!_0x572fa7[_0x12237e(0x1fb)])return _0x545809;for(const _0x277b49 of _0x572fa7[_0x12237e(0x1fb)]){const _0x28fcb3=await this[_0x12237e(0x1b9)][_0x12237e(0x1bb)](_0x277b49);_0x28fcb3&&_0x545809[_0x12237e(0x1e8)](_0x28fcb3['id'],_0x28fcb3);}return _0x545809;}async[_0x125b94(0x1cc)]({userMessage:_0x4ef7be,quickActionData:_0x47b549}){const _0x4079a6=_0x125b94;if(!this[_0x4079a6(0x1e4)])throw new _0x3b6223(_0x4079a6(0x202),null,{'conversation':this});if(this[_0x4079a6(0x21f)])throw new _0x3b6223(_0x4079a6(0x1d8),null,{'conversation':this});try{const _0x3a3d42=this[_0x4079a6(0x1b9)][_0x4079a6(0x1e0)](),_0x11f73e=this[_0x4079a6(0x1fe)][_0x4079a6(0x1b7)](),_0x134141=this[_0x4079a6(0x21e)]['id'];this[_0x4079a6(0x21f)]=this[_0x4079a6(0x1d9)]({'userMessage':_0x4ef7be,'contextItems':_0x3a3d42,'capabilities':_0x11f73e,'modelId':_0x134141,'quickActionData':_0x47b549}),await this[_0x4079a6(0x21f)][_0x4079a6(0x1f4)](),this[_0x4079a6(0x1b9)][_0x4079a6(0x223)](this[_0x4079a6(0x21f)][_0x4079a6(0x1b3)]);}catch(_0x1ad71e){this[_0x4079a6(0x1eb)](_0x4079a6(0x1bc),{'interactionId':this[_0x4079a6(0x21f)]?this[_0x4079a6(0x21f)]['id']:void 0x0,'error':_0x1ad71e});}finally{this[_0x4079a6(0x21f)]?.[_0x4079a6(0x1ed)](),this[_0x4079a6(0x21f)]=void 0x0;}}[_0x125b94(0x1d9)]({userMessage:_0x55cb5c,contextItems:_0x44bb61,capabilities:_0x5d1a51,modelId:_0x3ae774,quickActionData:_0xf6dfe9}){const _0x39c302=_0x125b94,_0x59c364=new _0x464ead({'userMessage':_0x55cb5c,'contextItems':_0x44bb61,'capabilities':_0x5d1a51,'conversationId':this['id'],'connector':this[_0x39c302(0x1ff)],'editor':this[_0x39c302(0x20c)][_0x39c302(0x1b4)]&&this[_0x39c302(0x20c)][_0x39c302(0x1b4)](),'model':_0x3ae774,'quickActionData':_0xf6dfe9});return _0x59c364[_0x39c302(0x20a)](..._0x39a293)['to'](this),this[_0x39c302(0x1ef)][_0x39c302(0x1b1)](_0x59c364),this[_0x39c302(0x1eb)](_0x39c302(0x210),_0x59c364),_0x59c364;}[_0x125b94(0x20b)](_0x59edff){const _0x5cf8ac=_0x125b94;return this[_0x5cf8ac(0x1ef)][_0x5cf8ac(0x1f5)](_0x3de3c3=>_0x3de3c3['id']===_0x59edff);}[_0x125b94(0x1c2)](_0x475e34){const _0x1a8374=_0x125b94,_0x184a25=this[_0x1a8374(0x20b)](_0x475e34);_0x184a25&&(_0x184a25[_0x1a8374(0x1d5)](),this[_0x1a8374(0x1ef)][_0x1a8374(0x1e7)](this[_0x1a8374(0x1ef)][_0x1a8374(0x1f1)](_0x184a25),0x1));}get[_0x125b94(0x1c6)](){const _0x220a66=_0x125b94;return this[_0x220a66(0x1ef)][this[_0x220a66(0x1ef)][_0x220a66(0x215)]-0x1];}[_0x125b94(0x1bf)](_0x1438d9){const _0x3ebfc5=_0x125b94;this[_0x3ebfc5(0x1b9)][_0x3ebfc5(0x1bf)](_0x1438d9);}async[_0x125b94(0x1d0)]({content:_0x10976a,version:_0x8b5de7,sessionId:_0x4f6337,selections:_0x28302a}){const _0x3a9609=_0x125b94;await this[_0x3a9609(0x1b9)][_0x3a9609(0x1d6)](_0x10976a,_0x8b5de7,_0x4f6337,_0x28302a);}[_0x125b94(0x1bd)](){const _0x5c550e=_0x125b94;return this[_0x5c550e(0x21f)]?.[_0x5c550e(0x20f)]()?.[_0x5c550e(0x1fb)]||'';}[_0x125b94(0x1ea)](_0x26a5e9){const _0x3a429c=_0x125b94;this[_0x3a429c(0x1b9)][_0x3a429c(0x1ea)](_0x26a5e9);}[_0x125b94(0x1de)](){const _0x3af4e9=_0x125b94;this[_0x3af4e9(0x1b9)][_0x3af4e9(0x1de)]();}[_0x125b94(0x206)](_0x3e3d1c){const _0x207d58=_0x125b94;this[_0x207d58(0x1b9)][_0x207d58(0x206)](_0x3e3d1c);}[_0x125b94(0x1cd)](_0x2a13c1){const _0x2f0647=_0x125b94;this[_0x2f0647(0x1b9)][_0x2f0647(0x1cd)](_0x2a13c1);}[_0x125b94(0x1f8)](_0x52a7c1,_0x3a03d6){const _0x21ae73=_0x125b94;this[_0x21ae73(0x1b9)][_0x21ae73(0x1f8)](_0x52a7c1,_0x3a03d6);}[_0x125b94(0x216)](_0x294f9a,_0x38c2b6,_0x2c6fba){const _0x1f7132=_0x125b94;return this[_0x1f7132(0x1b9)][_0x1f7132(0x216)](_0x294f9a,_0x38c2b6,_0x2c6fba);}[_0x125b94(0x1fd)](_0x55ff0b){const _0x128012=_0x125b94;this[_0x128012(0x1b9)][_0x128012(0x1fd)](_0x55ff0b);}[_0x125b94(0x1e9)](){const _0x29a1b=_0x125b94;this[_0x29a1b(0x1fe)][_0x29a1b(0x1e9)]();}[_0x125b94(0x1c7)](){const _0x50729a=_0x125b94;this[_0x50729a(0x1fe)][_0x50729a(0x1c7)]();}[_0x125b94(0x1f7)](){const _0xeaf54f=_0x125b94;return this[_0xeaf54f(0x1b9)][_0xeaf54f(0x1f7)]();}[_0x125b94(0x21c)](){const _0x44f207=_0x125b94;return this[_0x44f207(0x1b9)][_0x44f207(0x21c)]();}[_0x125b94(0x205)](){const _0x3bbe16=_0x125b94;return this[_0x3bbe16(0x1b9)][_0x3bbe16(0x205)]();}async[_0x125b94(0x1c3)](_0x23845a){const _0x3d260b=_0x125b94;if(!_0x23845a)throw new _0x3b6223(_0x3d260b(0x201),null,{'conversation':this});if(!0x1===await this[_0x3d260b(0x224)][_0x3d260b(0x1c4)](_0x23845a))throw new _0x3b6223(_0x3d260b(0x20d),null,{'conversation':this,'model':_0x23845a});_0x23845a['id']!==this[_0x3d260b(0x21e)]?.['id']&&(this[_0x3d260b(0x21e)]=_0x23845a,this[_0x3d260b(0x1fe)][_0x3d260b(0x21b)](),this[_0x3d260b(0x1eb)](_0x3d260b(0x1dc),{'selectedModel':_0x23845a}));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x47c918=_0x2498;(function(_0x2abc44,_0x289d6a){var _0x1499e3=_0x2498,_0x521989=_0x2abc44();while(!![]){try{var _0x3b1237=-parseInt(_0x1499e3(0x10b))/0x1*(-parseInt(_0x1499e3(0x109))/0x2)+-parseInt(_0x1499e3(0x104))/0x3*(parseInt(_0x1499e3(0x11b))/0x4)+parseInt(_0x1499e3(0x10f))/0x5*(parseInt(_0x1499e3(0x117))/0x6)+parseInt(_0x1499e3(0x108))/0x7+parseInt(_0x1499e3(0x113))/0x8+-parseInt(_0x1499e3(0x10a))/0x9*(-parseInt(_0x1499e3(0x107))/0xa)+parseInt(_0x1499e3(0x105))/0xb*(-parseInt(_0x1499e3(0x106))/0xc);if(_0x3b1237===_0x289d6a)break;else _0x521989['push'](_0x521989['shift']());}catch(_0x49a6df){_0x521989['push'](_0x521989['shift']());}}}(_0x55d6,0xbdecc));function _0x55d6(){var _0x1cefa6=['connector','mapContextItemsToRequestData','conversationId','2972nYFwHA','get','userMessage','129FQkIFt','1837KgqDgt','146088sVvyUQ','12790kpriTR','3687320muLnGt','5306crvVjf','7713pyWBGW','182lAPWms','contextItems','queryAssistant','sendRequest','225oDesRs','capabilities','model','current-document','839480UGgaer','quickActionData','getDocumentContext','getCapabilitiesRequestData','84306cjuXfR'];_0x55d6=function(){return _0x1cefa6;};return _0x55d6();}import{AICapabilities as _0x3b3290}from'../../aicore/model/aicapabilities.js';import{AIInteraction as _0x3b05df}from'../../aicore/model/aiinteraction.js';function _0x2498(_0xa84bc,_0x13a32f){var _0x55d667=_0x55d6();return _0x2498=function(_0x249808,_0x5cd4c5){_0x249808=_0x249808-0x103;var _0xb09426=_0x55d667[_0x249808];return _0xb09426;},_0x2498(_0xa84bc,_0x13a32f);}import{AIChatContext as _0x196754}from'./aichatcontext.js';export class AIChatInteraction extends _0x3b05df{[_0x47c918(0x103)];[_0x47c918(0x11a)];[_0x47c918(0x10c)]=new Map();[_0x47c918(0x111)];[_0x47c918(0x114)];constructor(_0x17696a){var _0x152a99=_0x47c918;super(_0x17696a),this[_0x152a99(0x11a)]=_0x17696a[_0x152a99(0x11a)],this[_0x152a99(0x10c)]=_0x17696a[_0x152a99(0x10c)],this[_0x152a99(0x110)]=_0x17696a[_0x152a99(0x110)],this[_0x152a99(0x103)]=_0x17696a[_0x152a99(0x103)],this[_0x152a99(0x111)]=_0x17696a[_0x152a99(0x111)],this[_0x152a99(0x114)]=_0x17696a[_0x152a99(0x114)];}async[_0x47c918(0x10e)](){var _0x3063b3=_0x47c918;return this[_0x3063b3(0x118)][_0x3063b3(0x10d)]({'message':this[_0x3063b3(0x103)],'conversationId':this[_0x3063b3(0x11a)],'parts':_0x196754[_0x3063b3(0x119)](this[_0x3063b3(0x10c)]),'capabilities':_0x3b3290[_0x3063b3(0x116)](this[_0x3063b3(0x110)]),'model':this[_0x3063b3(0x111)],'quickActionData':this[_0x3063b3(0x114)]});}[_0x47c918(0x115)](){var _0x15b5f1=_0x47c918;return this[_0x15b5f1(0x10c)][_0x15b5f1(0x11c)](_0x15b5f1(0x112));}}
23
+ function _0x3347(){var _0x1282cd=['4424OuhdvA','get','mapContextItemsToRequestData','11FVaizA','contextItems','2329116yHfDiG','queryAssistant','sendRequest','278104iGJjql','current-document','1661254vsWvzl','6pXiqPm','3214143omuGzl','2646220VoWgzO','connector','model','1jFwYSz','conversationId','capabilities','getCapabilitiesRequestData','getDocumentContext','quickActionData','5KbXLcY','4940394QmOyxu','userMessage','3368yrCAfc'];_0x3347=function(){return _0x1282cd;};return _0x3347();}var _0x12f7ee=_0x80e6;(function(_0x5517ea,_0x4aae8e){var _0x5f397e=_0x80e6,_0x5ade11=_0x5517ea();while(!![]){try{var _0x1ff866=parseInt(_0x5f397e(0x1ae))/0x1*(parseInt(_0x5f397e(0x1a8))/0x2)+parseInt(_0x5f397e(0x1a9))/0x3*(-parseInt(_0x5f397e(0x1a6))/0x4)+-parseInt(_0x5f397e(0x1b4))/0x5*(parseInt(_0x5f397e(0x1b5))/0x6)+parseInt(_0x5f397e(0x1b8))/0x7*(-parseInt(_0x5f397e(0x1b7))/0x8)+parseInt(_0x5f397e(0x1aa))/0x9+parseInt(_0x5f397e(0x1ab))/0xa+parseInt(_0x5f397e(0x1bb))/0xb*(parseInt(_0x5f397e(0x1a3))/0xc);if(_0x1ff866===_0x4aae8e)break;else _0x5ade11['push'](_0x5ade11['shift']());}catch(_0x4efc33){_0x5ade11['push'](_0x5ade11['shift']());}}}(_0x3347,0x6609a));import{AICapabilities as _0x246547}from'../../aicore/model/aicapabilities.js';function _0x80e6(_0x213beb,_0x2b08b9){var _0x33479e=_0x3347();return _0x80e6=function(_0x80e6d9,_0x2413b1){_0x80e6d9=_0x80e6d9-0x1a2;var _0x148d9d=_0x33479e[_0x80e6d9];return _0x148d9d;},_0x80e6(_0x213beb,_0x2b08b9);}import{AIInteraction as _0x1a664d}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x279c5f}from'./aichatcontext.js';export class AIChatInteraction extends _0x1a664d{[_0x12f7ee(0x1b6)];[_0x12f7ee(0x1af)];[_0x12f7ee(0x1a2)]=new Map();[_0x12f7ee(0x1ad)];[_0x12f7ee(0x1b3)];constructor(_0x4b865e){var _0x4baf37=_0x12f7ee;super(_0x4b865e),this[_0x4baf37(0x1af)]=_0x4b865e[_0x4baf37(0x1af)],this[_0x4baf37(0x1a2)]=_0x4b865e[_0x4baf37(0x1a2)],this[_0x4baf37(0x1b0)]=_0x4b865e[_0x4baf37(0x1b0)],this[_0x4baf37(0x1b6)]=_0x4b865e[_0x4baf37(0x1b6)],this[_0x4baf37(0x1ad)]=_0x4b865e[_0x4baf37(0x1ad)],this[_0x4baf37(0x1b3)]=_0x4b865e[_0x4baf37(0x1b3)];}async[_0x12f7ee(0x1a5)](){var _0x371943=_0x12f7ee;return this[_0x371943(0x1ac)][_0x371943(0x1a4)]({'message':this[_0x371943(0x1b6)],'conversationId':this[_0x371943(0x1af)],'parts':_0x279c5f[_0x371943(0x1ba)](this[_0x371943(0x1a2)]),'capabilities':_0x246547[_0x371943(0x1b1)](this[_0x371943(0x1b0)]),'model':this[_0x371943(0x1ad)],'quickActionData':this[_0x371943(0x1b3)]});}[_0x12f7ee(0x1b2)](){var _0x31bb7d=_0x12f7ee;return this[_0x31bb7d(0x1a2)][_0x31bb7d(0x1b9)](_0x31bb7d(0x1a7));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x40a7b2=_0x188a;(function(_0x542f93,_0x309a4a){const _0x37d1d8=_0x188a,_0x286000=_0x542f93();while(!![]){try{const _0x490f63=-parseInt(_0x37d1d8(0x1c4))/0x1+-parseInt(_0x37d1d8(0x1b8))/0x2*(parseInt(_0x37d1d8(0x1c2))/0x3)+parseInt(_0x37d1d8(0x1bd))/0x4*(-parseInt(_0x37d1d8(0x1c5))/0x5)+-parseInt(_0x37d1d8(0x1b4))/0x6*(-parseInt(_0x37d1d8(0x1c6))/0x7)+-parseInt(_0x37d1d8(0x1b0))/0x8*(-parseInt(_0x37d1d8(0x1c7))/0x9)+-parseInt(_0x37d1d8(0x1af))/0xa+parseInt(_0x37d1d8(0x1b3))/0xb;if(_0x490f63===_0x309a4a)break;else _0x286000['push'](_0x286000['shift']());}catch(_0x1d81a5){_0x286000['push'](_0x286000['shift']());}}}(_0x2b79,0xd2f75));import{EmitterMixin as _0xd1f1f,logWarning as _0x209018}from'ckeditor5/src/utils.js';function _0x188a(_0x12467c,_0x505eac){const _0x2b7936=_0x2b79();return _0x188a=function(_0x188a00,_0x59a5f7){_0x188a00=_0x188a00-0x1ae;let _0x3244cb=_0x2b7936[_0x188a00];return _0x3244cb;},_0x188a(_0x12467c,_0x505eac);}export class AIChatModels extends _0xd1f1f(){[_0x40a7b2(0x1bc)]=[];[_0x40a7b2(0x1bf)];constructor({connector:_0x334f69}){const _0x2e6139=_0x40a7b2;super(),this[_0x2e6139(0x1bf)]=_0x334f69;}async[_0x40a7b2(0x1b6)](){const _0x74bc02=_0x40a7b2;if(!this[_0x74bc02(0x1bc)][_0x74bc02(0x1ba)]){const _0x44a14e=this[_0x74bc02(0x1bf)][_0x74bc02(0x1c3)](),_0x29689c=(await _0x44a14e[_0x74bc02(0x1b9)]())[_0x74bc02(0x1ca)][_0x74bc02(0x1b1)]((_0x1ab3fc,_0x624dc2)=>{const _0x32783f=_0x74bc02,_0x1e5016=Object[_0x32783f(0x1bb)](_0x1ab3fc[_0x32783f(0x1cb)])[_0x32783f(0x1be)](_0x212570=>_0x212570[_0x32783f(0x1b2)])[_0x32783f(0x1ba)];return Object[_0x32783f(0x1bb)](_0x624dc2[_0x32783f(0x1cb)])[_0x32783f(0x1be)](_0x274def=>_0x274def[_0x32783f(0x1b2)])[_0x32783f(0x1ba)]-_0x1e5016;});this[_0x74bc02(0x1bc)]=_0x29689c;}return this[_0x74bc02(0x1bc)];}async[_0x40a7b2(0x1b7)](_0xc69262){const _0x234541=_0x40a7b2,_0x4c063=await this[_0x234541(0x1b6)]();if(!_0x4c063[_0x234541(0x1ba)])return null;if(_0xc69262){const _0x41f7b7=_0x4c063[_0x234541(0x1b5)](_0x1ff698=>_0x1ff698['id']===_0xc69262);if(_0x41f7b7)return _0x41f7b7;_0x209018(_0x234541(0x1c1),{'defaultModelId':_0xc69262,'fallBackModelId':_0x4c063[0x0]['id']});}return _0x4c063[0x0];}async[_0x40a7b2(0x1c0)](_0x434c2f){const _0x288403=_0x40a7b2;return(await this[_0x288403(0x1b6)]())[_0x288403(0x1c8)](_0xca4c05=>_0xca4c05[_0x288403(0x1ae)]===_0x434c2f[_0x288403(0x1ae)]&&_0xca4c05[_0x288403(0x1c9)]===_0x434c2f[_0x288403(0x1c9)]);}}function _0x2b79(){const _0x1efbde=['provider','items','capabilities','name','16105600oRREph','8dbINnB','sort','enabled','16632957cOodvd','366SIEQhe','find','getAll','getDefault','8zyeQIU','list','length','values','_modelList','112WifOnf','filter','_connector','isAvailable','ai-chat-default-model-id-unrecognized','272796IbuZtA','getModels','408038JYCTJJ','70130DoczQc','95333zmlOim','11666925caVWJb','some'];_0x2b79=function(){return _0x1efbde;};return _0x2b79();}
23
+ const _0xd53a74=_0x44ba;(function(_0xd5ae2,_0x228684){const _0x8392e0=_0x44ba,_0x24883f=_0xd5ae2();while(!![]){try{const _0x3c0f4b=parseInt(_0x8392e0(0xab))/0x1*(-parseInt(_0x8392e0(0x94))/0x2)+-parseInt(_0x8392e0(0xa2))/0x3+-parseInt(_0x8392e0(0x9b))/0x4+parseInt(_0x8392e0(0x9c))/0x5+parseInt(_0x8392e0(0x95))/0x6*(-parseInt(_0x8392e0(0xa7))/0x7)+parseInt(_0x8392e0(0xb0))/0x8+-parseInt(_0x8392e0(0x99))/0x9*(-parseInt(_0x8392e0(0xa9))/0xa);if(_0x3c0f4b===_0x228684)break;else _0x24883f['push'](_0x24883f['shift']());}catch(_0x3fc18b){_0x24883f['push'](_0x24883f['shift']());}}}(_0x4936,0xaae58));import{EmitterMixin as _0x564a0a,logWarning as _0x4bdebe}from'ckeditor5/src/utils.js';export class AIChatModels extends _0x564a0a(){[_0xd53a74(0xa8)]=[];[_0xd53a74(0x9e)];constructor({connector:_0x56fadc}){const _0x3ab8d0=_0xd53a74;super(),this[_0x3ab8d0(0x9e)]=_0x56fadc;}async[_0xd53a74(0xa1)](){const _0x4f6750=_0xd53a74;if(!this[_0x4f6750(0xa8)][_0x4f6750(0xad)]){const _0x383904=this[_0x4f6750(0x9e)][_0x4f6750(0xa4)](),_0x240dab=(await _0x383904[_0x4f6750(0x96)]())[_0x4f6750(0xae)][_0x4f6750(0x9f)]((_0x3ec9a0,_0x19eb98)=>{const _0x56b8dc=_0x4f6750,_0xef5531=Object[_0x56b8dc(0xa3)](_0x3ec9a0[_0x56b8dc(0xa5)])[_0x56b8dc(0xac)](_0x1fa35e=>_0x1fa35e[_0x56b8dc(0x98)])[_0x56b8dc(0xad)];return Object[_0x56b8dc(0xa3)](_0x19eb98[_0x56b8dc(0xa5)])[_0x56b8dc(0xac)](_0x16979c=>_0x16979c[_0x56b8dc(0x98)])[_0x56b8dc(0xad)]-_0xef5531;});this[_0x4f6750(0xa8)]=_0x240dab;}return this[_0x4f6750(0xa8)];}async[_0xd53a74(0x9a)](_0x5b5e8a){const _0x43332e=_0xd53a74,_0x43ad3d=await this[_0x43332e(0xa1)]();if(!_0x43ad3d[_0x43332e(0xad)])return null;if(_0x5b5e8a){const _0x28da38=_0x43ad3d[_0x43332e(0xa6)](_0x537292=>_0x537292['id']===_0x5b5e8a);if(_0x28da38)return _0x28da38;_0x4bdebe(_0x43332e(0xa0),{'defaultModelId':_0x5b5e8a,'fallBackModelId':_0x43ad3d[0x0]['id']});}return _0x43ad3d[0x0];}async[_0xd53a74(0x97)](_0x5c2063){const _0x1906f7=_0xd53a74;return(await this[_0x1906f7(0xa1)]())[_0x1906f7(0xaf)](_0x1d0bea=>_0x1d0bea[_0x1906f7(0xaa)]===_0x5c2063[_0x1906f7(0xaa)]&&_0x1d0bea[_0x1906f7(0x9d)]===_0x5c2063[_0x1906f7(0x9d)]);}}function _0x44ba(_0x5885bb,_0x231517){const _0x493669=_0x4936();return _0x44ba=function(_0x44ba6e,_0x22dc27){_0x44ba6e=_0x44ba6e-0x94;let _0x416797=_0x493669[_0x44ba6e];return _0x416797;},_0x44ba(_0x5885bb,_0x231517);}function _0x4936(){const _0x5dfbfd=['654717JKiQVt','_modelList','1546190luDIto','name','439kPKDSD','filter','length','items','some','6962328oqeQYv','3406WsVCVO','78BOfuCc','list','isAvailable','enabled','171NSutOf','getDefault','3759696baeQDO','5868685RgNKuX','provider','_connector','sort','ai-chat-default-model-id-unrecognized','getAll','4135059pubeYg','values','getModels','capabilities','find'];_0x4936=function(){return _0x5dfbfd;};return _0x4936();}
@@ -17,6 +17,12 @@ export declare class AIChatControlsView extends View {
17
17
  * @observable
18
18
  */
19
19
  isLoading: boolean;
20
+ /**
21
+ * The disabled state of the controls.
22
+ *
23
+ * @observable
24
+ */
25
+ isDisabled: boolean;
20
26
  constructor(locale: Locale, bodyCollection: BodyCollection);
21
27
  /**
22
28
  * Adds an item chip to the current context list.
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x357593=_0xcca7;(function(_0xb4f1dd,_0x1934ec){const _0x31e142=_0xcca7,_0x5435fe=_0xb4f1dd();while(!![]){try{const _0x2ee206=-parseInt(_0x31e142(0x174))/0x1*(-parseInt(_0x31e142(0x153))/0x2)+-parseInt(_0x31e142(0x16e))/0x3+parseInt(_0x31e142(0x171))/0x4+-parseInt(_0x31e142(0x17b))/0x5+parseInt(_0x31e142(0x182))/0x6+-parseInt(_0x31e142(0x151))/0x7+-parseInt(_0x31e142(0x17d))/0x8*(-parseInt(_0x31e142(0x185))/0x9);if(_0x2ee206===_0x1934ec)break;else _0x5435fe['push'](_0x5435fe['shift']());}catch(_0x37e1b8){_0x5435fe['push'](_0x5435fe['shift']());}}}(_0x105b,0xbf1c4));import{clickOutsideHandler as _0x2bd67d,View as _0x21f948}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x2f21fd}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x4c77c3}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x2f5630,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x3ca7f0}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x20f35b}from'./controls/aichatcontrolsloaderview.js';function _0xcca7(_0x293b67,_0x32f4bf){const _0x105ba1=_0x105b();return _0xcca7=function(_0xcca79d,_0x2eadcd){_0xcca79d=_0xcca79d-0x150;let _0x149372=_0x105ba1[_0xcca79d];return _0x149372;},_0xcca7(_0x293b67,_0x32f4bf);}function _0x105b(){const _0x32f6a3=['_promptInputView','clearCurrentContextItems','10331391RQlrum','closeSourceResourceBalloon','6EZeGPy','sendUserMessage','disableModelSelector','setModelList','toggleWebSearch','delegate','setConversationContext','setTemplate','bindTemplate','low','_contextPanelView','ck-ai-chat-controls','setPlaceholderText','change:isLoading','ck-hidden','_createContextPanelView','setInputPlaceholder','setContextItemLoading','reset','enableModelSelector','clearConversationContextUI','abortPromptStream','clearConversationContextItems','removeContextItem','focusPromptInput','populateSourceResourceBalloon','_loaderView','1810176aISLMK','_handlePromptInputFocus','setWebSearch','3063248evVeRd','updateResourceState','_createLoaderView','311882WwAdjX','isLoading','_createPromptInputView','addContextButtonView','_shouldRestorePromptInputFocus','addContextItem','selectModel','6324340pGBLJM','clearPendingContextUI','274384oADndx','setAddContextOptions','div','element','setReasoning','765222PJouoL','focus','_promptCapabilitiesView','603xyuWcC','setModel','resetMessageInput','form','_createPromptCapabilitiesView','toggleReasoning','setIsUploadInProgress'];_0x105b=function(){return _0x32f6a3;};return _0x105b();}export class AIChatControlsView extends _0x21f948{[_0x357593(0x15d)];[_0x357593(0x18c)];[_0x357593(0x184)];[_0x357593(0x16d)];[_0x357593(0x178)];constructor(_0x2a97af,_0x281716){const _0x2c1f64=_0x357593;super(_0x2a97af),this[_0x2c1f64(0x15d)]=this[_0x2c1f64(0x162)](_0x2a97af,_0x281716),this[_0x2c1f64(0x18c)]=this[_0x2c1f64(0x176)](_0x2a97af),this[_0x2c1f64(0x184)]=this[_0x2c1f64(0x189)](_0x2a97af),this[_0x2c1f64(0x16d)]=this[_0x2c1f64(0x173)](_0x2a97af),this[_0x2c1f64(0x178)]=!0x1,this[_0x2c1f64(0x18c)][_0x2c1f64(0x158)](_0x2c1f64(0x154))['to'](this),this[_0x2c1f64(0x16d)][_0x2c1f64(0x158)](_0x2c1f64(0x168))['to'](this),this[_0x2c1f64(0x184)][_0x2c1f64(0x158)](_0x2c1f64(0x157))['to'](this),this[_0x2c1f64(0x184)][_0x2c1f64(0x158)](_0x2c1f64(0x18a))['to'](this),this[_0x2c1f64(0x184)][_0x2c1f64(0x158)](_0x2c1f64(0x17a))['to'](this),this[_0x2c1f64(0x15d)][_0x2c1f64(0x158)](..._0x3ca7f0)['to'](this);const _0xf8562c=this[_0x2c1f64(0x15b)];this[_0x2c1f64(0x15a)]({'tag':_0x2c1f64(0x188),'attributes':{'class':['ck',_0x2c1f64(0x15e)]},'children':[{'tag':_0x2c1f64(0x17f),'attributes':{'class':[_0xf8562c['if'](_0x2c1f64(0x175),_0x2c1f64(0x161))]},'children':[this[_0x2c1f64(0x15d)],this[_0x2c1f64(0x18c)],this[_0x2c1f64(0x184)]]},{'tag':_0x2c1f64(0x17f),'attributes':{'class':[_0xf8562c['if'](_0x2c1f64(0x175),_0x2c1f64(0x161),_0xf533b6=>!_0xf533b6)]},'children':[this[_0x2c1f64(0x16d)]]}]}),_0x2bd67d({'emitter':this[_0x2c1f64(0x18c)],'activator':()=>this[_0x2c1f64(0x175)],'contextElements':()=>[this[_0x2c1f64(0x180)]],'callback':()=>{const _0x55380e=_0x2c1f64;this[_0x55380e(0x178)]=!0x1;}}),this['on'](_0x2c1f64(0x160),this[_0x2c1f64(0x16f)],{'priority':_0x2c1f64(0x15c)});}[_0x357593(0x162)](_0x116d93,_0x27b0b1){return new _0x2f5630(_0x116d93,_0x27b0b1);}[_0x357593(0x176)](_0x1b2feb){const _0x3f7157=_0x357593;return new _0x2f21fd(_0x1b2feb,this[_0x3f7157(0x15d)][_0x3f7157(0x177)]);}[_0x357593(0x189)](_0x4bc1ee){return new _0x4c77c3(_0x4bc1ee);}[_0x357593(0x173)](_0x270cda){return new _0x20f35b(_0x270cda);}[_0x357593(0x16f)](_0x12590f,_0x1bde77,_0x2dcf60){const _0x4c6a43=_0x357593;_0x2dcf60?this[_0x4c6a43(0x178)]=!0x0:this[_0x4c6a43(0x178)]&&this[_0x4c6a43(0x18c)][_0x4c6a43(0x183)]();}[_0x357593(0x179)](_0x1a71de,_0x11c717){const _0x41341b=_0x357593;this[_0x41341b(0x15d)][_0x41341b(0x179)](_0x1a71de,_0x11c717);}[_0x357593(0x16a)](_0x17e1fc){const _0x5cdcd1=_0x357593;this[_0x5cdcd1(0x15d)][_0x5cdcd1(0x16a)](_0x17e1fc);}[_0x357593(0x164)](_0x333f72,_0x4dfb8e){const _0x3953a2=_0x357593;this[_0x3953a2(0x15d)][_0x3953a2(0x164)](_0x333f72,_0x4dfb8e);}[_0x357593(0x18b)](_0x248016){const _0x24ce6c=_0x357593;this[_0x24ce6c(0x18c)][_0x24ce6c(0x18b)](_0x248016);}[_0x357593(0x159)](_0x538b07){const _0x447453=_0x357593;this[_0x447453(0x15d)][_0x447453(0x159)](_0x538b07);}[_0x357593(0x17c)](){const _0x5a855f=_0x357593;this[_0x5a855f(0x15d)][_0x5a855f(0x150)]();}[_0x357593(0x167)](){const _0x64670e=_0x357593;this[_0x64670e(0x15d)][_0x64670e(0x169)]();}[_0x357593(0x172)](_0xc92ed9,_0x4dfae2,_0x469f44){const _0x4f421e=_0x357593;this[_0x4f421e(0x15d)][_0x4f421e(0x172)](_0xc92ed9,_0x4dfae2,_0x469f44);}[_0x357593(0x170)](_0x5625b7){const _0x974bfe=_0x357593;this[_0x974bfe(0x184)][_0x974bfe(0x170)](_0x5625b7);}[_0x357593(0x181)](_0x5571ee){const _0x24de97=_0x357593;this[_0x24de97(0x184)][_0x24de97(0x181)](_0x5571ee);}[_0x357593(0x187)](){const _0x2eff78=_0x357593;this[_0x2eff78(0x18c)][_0x2eff78(0x165)]();}[_0x357593(0x17e)](_0x1eac76){const _0x57a821=_0x357593;this[_0x57a821(0x15d)][_0x57a821(0x17e)](_0x1eac76);}[_0x357593(0x163)](_0x3ec4bb){const _0x5c8741=_0x357593;this[_0x5c8741(0x18c)][_0x5c8741(0x15f)](_0x3ec4bb);}[_0x357593(0x156)](_0x172634,_0x411f5e){const _0xcb163c=_0x357593;this[_0xcb163c(0x184)][_0xcb163c(0x156)](_0x172634,_0x411f5e);}[_0x357593(0x186)](_0x4c065d){const _0x48ebd9=_0x357593;this[_0x48ebd9(0x184)][_0x48ebd9(0x186)](_0x4c065d);}[_0x357593(0x166)](){const _0x12e6b6=_0x357593;this[_0x12e6b6(0x184)][_0x12e6b6(0x166)]();}[_0x357593(0x155)](_0xe91ef6){const _0x5ef43e=_0x357593;this[_0x5ef43e(0x184)][_0x5ef43e(0x155)](_0xe91ef6);}[_0x357593(0x16c)](_0x5c2fc2,_0x5cdb8e,_0x339803,_0x4ec72d){const _0xd3d5dd=_0x357593;this[_0xd3d5dd(0x15d)][_0xd3d5dd(0x16c)](_0x5c2fc2,_0x5cdb8e,_0x339803,_0x4ec72d);}[_0x357593(0x152)](_0x5c57cf){const _0x3fc37d=_0x357593;this[_0x3fc37d(0x15d)][_0x3fc37d(0x152)](_0x5c57cf);}[_0x357593(0x16b)](){const _0x205fec=_0x357593;this[_0x205fec(0x18c)][_0x205fec(0x183)]();}}
23
+ const _0x775eca=_0x391a;function _0x391a(_0xfe3823,_0xff00c7){const _0x509a16=_0x509a();return _0x391a=function(_0x391af9,_0x20cddc){_0x391af9=_0x391af9-0xee;let _0x54cea8=_0x509a16[_0x391af9];return _0x54cea8;},_0x391a(_0xfe3823,_0xff00c7);}(function(_0x243eeb,_0x1b1c95){const _0x3884c2=_0x391a,_0x41b868=_0x243eeb();while(!![]){try{const _0x37dbc0=parseInt(_0x3884c2(0x12e))/0x1*(parseInt(_0x3884c2(0x10c))/0x2)+-parseInt(_0x3884c2(0x116))/0x3+-parseInt(_0x3884c2(0x10d))/0x4+parseInt(_0x3884c2(0x102))/0x5*(parseInt(_0x3884c2(0x10a))/0x6)+-parseInt(_0x3884c2(0xfc))/0x7*(parseInt(_0x3884c2(0xfe))/0x8)+parseInt(_0x3884c2(0x10b))/0x9*(-parseInt(_0x3884c2(0x107))/0xa)+-parseInt(_0x3884c2(0x100))/0xb*(-parseInt(_0x3884c2(0x113))/0xc);if(_0x37dbc0===_0x1b1c95)break;else _0x41b868['push'](_0x41b868['shift']());}catch(_0x14d466){_0x41b868['push'](_0x41b868['shift']());}}}(_0x509a,0xb85ef));import{clickOutsideHandler as _0x406d68,View as _0x270575}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x290890}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x65e913}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0xfebaf3,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x1b528f}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x4dcad8}from'./controls/aichatcontrolsloaderview.js';export class AIChatControlsView extends _0x270575{[_0x775eca(0x112)];[_0x775eca(0x118)];[_0x775eca(0xf6)];[_0x775eca(0x115)];[_0x775eca(0x101)];constructor(_0x327c38,_0x187eae){const _0x3d482b=_0x775eca;super(_0x327c38),this[_0x3d482b(0x112)]=this[_0x3d482b(0xef)](_0x327c38,_0x187eae),this[_0x3d482b(0x118)]=this[_0x3d482b(0x104)](_0x327c38),this[_0x3d482b(0xf6)]=this[_0x3d482b(0x12d)](_0x327c38),this[_0x3d482b(0x115)]=this[_0x3d482b(0x119)](_0x327c38),this[_0x3d482b(0x101)]=!0x1,this[_0x3d482b(0x118)][_0x3d482b(0x11a)](_0x3d482b(0x10f))['to'](this),this[_0x3d482b(0x115)][_0x3d482b(0x11a)](_0x3d482b(0xfb))['to'](this),this[_0x3d482b(0xf6)][_0x3d482b(0x11a)](_0x3d482b(0x127))['to'](this),this[_0x3d482b(0xf6)][_0x3d482b(0x11a)](_0x3d482b(0xf2))['to'](this),this[_0x3d482b(0xf6)][_0x3d482b(0x11a)](_0x3d482b(0x11d))['to'](this),this[_0x3d482b(0x112)][_0x3d482b(0x11a)](..._0x1b528f)['to'](this),this[_0x3d482b(0x12a)](_0x3d482b(0x109),!0x1);const _0x1d4cba=this[_0x3d482b(0xff)];this[_0x3d482b(0xf9)]({'tag':_0x3d482b(0xf7),'attributes':{'class':['ck',_0x3d482b(0x12c),_0x1d4cba['if'](_0x3d482b(0x109),_0x3d482b(0x103))]},'children':[{'tag':_0x3d482b(0x10e),'attributes':{'class':[_0x1d4cba['if'](_0x3d482b(0x12f),_0x3d482b(0x123))]},'children':[this[_0x3d482b(0x112)],this[_0x3d482b(0x118)],this[_0x3d482b(0xf6)]]},{'tag':_0x3d482b(0x10e),'attributes':{'class':[_0x1d4cba['if'](_0x3d482b(0x12f),_0x3d482b(0x123),_0x572d97=>!_0x572d97)]},'children':[this[_0x3d482b(0x115)]]}]}),_0x406d68({'emitter':this[_0x3d482b(0x118)],'activator':()=>this[_0x3d482b(0x12f)],'contextElements':()=>[this[_0x3d482b(0x124)]],'callback':()=>{const _0x37b552=_0x3d482b;this[_0x37b552(0x101)]=!0x1;}}),this['on'](_0x3d482b(0x125),this[_0x3d482b(0xfa)],{'priority':_0x3d482b(0x117)});}[_0x775eca(0xef)](_0x23a4f5,_0xd022be){return new _0xfebaf3(_0x23a4f5,_0xd022be);}[_0x775eca(0x104)](_0x3bb749){const _0x1736a2=_0x775eca;return new _0x290890(_0x3bb749,this[_0x1736a2(0x112)][_0x1736a2(0x128)]);}[_0x775eca(0x12d)](_0xd7fe92){return new _0x65e913(_0xd7fe92);}[_0x775eca(0x119)](_0x48c627){return new _0x4dcad8(_0x48c627);}[_0x775eca(0xfa)](_0x1902e7,_0x3bd74f,_0x28f6dc){const _0xfdbae1=_0x775eca;_0x28f6dc?this[_0xfdbae1(0x101)]=!0x0:this[_0xfdbae1(0x101)]&&this[_0xfdbae1(0x118)][_0xfdbae1(0x130)]();}[_0x775eca(0xf3)](_0x24a13c,_0x13e448){const _0xcf6537=_0x775eca;this[_0xcf6537(0x112)][_0xcf6537(0xf3)](_0x24a13c,_0x13e448);}[_0x775eca(0xf4)](_0x49a138){const _0x35a5a3=_0x775eca;this[_0x35a5a3(0x112)][_0x35a5a3(0xf4)](_0x49a138);}[_0x775eca(0xfd)](_0x1b6f7d,_0x143f8b){const _0x1b7ad5=_0x775eca;this[_0x1b7ad5(0x112)][_0x1b7ad5(0xfd)](_0x1b6f7d,_0x143f8b);}[_0x775eca(0x106)](_0x10dab4){const _0x2b7bf6=_0x775eca;this[_0x2b7bf6(0x118)][_0x2b7bf6(0x106)](_0x10dab4);}[_0x775eca(0xee)](_0x13acfe){const _0x44f886=_0x775eca;this[_0x44f886(0x112)][_0x44f886(0xee)](_0x13acfe);}[_0x775eca(0x108)](){const _0x15fa0c=_0x775eca;this[_0x15fa0c(0x112)][_0x15fa0c(0x122)]();}[_0x775eca(0x121)](){const _0x4c9db8=_0x775eca;this[_0x4c9db8(0x112)][_0x4c9db8(0x126)]();}[_0x775eca(0x11f)](_0x2f660b,_0x45c4e1,_0x399ddb){const _0x13c4bc=_0x775eca;this[_0x13c4bc(0x112)][_0x13c4bc(0x11f)](_0x2f660b,_0x45c4e1,_0x399ddb);}[_0x775eca(0x12b)](_0x50d9e0){const _0x1e289a=_0x775eca;this[_0x1e289a(0xf6)][_0x1e289a(0x12b)](_0x50d9e0);}[_0x775eca(0x11e)](_0x599442){const _0x5d6d5b=_0x775eca;this[_0x5d6d5b(0xf6)][_0x5d6d5b(0x11e)](_0x599442);}[_0x775eca(0xf8)](){const _0x2bdcdd=_0x775eca;this[_0x2bdcdd(0x118)][_0x2bdcdd(0x120)]();}[_0x775eca(0x11c)](_0x2c3191){const _0x1059ef=_0x775eca;this[_0x1059ef(0x112)][_0x1059ef(0x11c)](_0x2c3191);}[_0x775eca(0x114)](_0x4b547f){const _0x2c2389=_0x775eca;this[_0x2c2389(0x118)][_0x2c2389(0xf5)](_0x4b547f);}[_0x775eca(0xf1)](_0x51f82c,_0x55b484){const _0x392414=_0x775eca;this[_0x392414(0xf6)][_0x392414(0xf1)](_0x51f82c,_0x55b484);}[_0x775eca(0x11b)](_0x2cdc77){const _0x3ada49=_0x775eca;this[_0x3ada49(0xf6)][_0x3ada49(0x11b)](_0x2cdc77);}[_0x775eca(0x110)](){const _0x94f3d3=_0x775eca;this[_0x94f3d3(0xf6)][_0x94f3d3(0x110)]();}[_0x775eca(0xf0)](_0x4bd5bf){const _0x7a451=_0x775eca;this[_0x7a451(0xf6)][_0x7a451(0xf0)](_0x4bd5bf);}[_0x775eca(0x129)](_0x2fd62a,_0x29046c,_0x2bd953,_0x24552b){const _0x27d0ae=_0x775eca;this[_0x27d0ae(0x112)][_0x27d0ae(0x129)](_0x2fd62a,_0x29046c,_0x2bd953,_0x24552b);}[_0x775eca(0x111)](_0x3cafde){const _0x2ae9a6=_0x775eca;this[_0x2ae9a6(0x112)][_0x2ae9a6(0x111)](_0x3cafde);}[_0x775eca(0x105)](){const _0x39d10b=_0x775eca;this[_0x39d10b(0x118)][_0x39d10b(0x130)]();}}function _0x509a(){const _0xfa098e=['closeSourceResourceBalloon','_contextPanelView','12vFxprM','setInputPlaceholder','_loaderView','3034290wzIKrs','low','_promptInputView','_createLoaderView','delegate','setModel','setAddContextOptions','selectModel','setReasoning','updateResourceState','reset','clearConversationContextUI','clearCurrentContextItems','ck-hidden','element','change:isLoading','clearConversationContextItems','toggleWebSearch','addContextButtonView','populateSourceResourceBalloon','set','setWebSearch','ck-ai-chat-controls','_createPromptCapabilitiesView','501uigsSh','isLoading','focus','setConversationContext','_createContextPanelView','disableModelSelector','setModelList','toggleReasoning','addContextItem','removeContextItem','setPlaceholderText','_promptCapabilitiesView','form','resetMessageInput','setTemplate','_handlePromptInputFocus','abortPromptStream','2628367grSPNj','setContextItemLoading','8tXsHgz','bindTemplate','48434837pntHoj','_shouldRestorePromptInputFocus','5sgRjUF','ck-ai-chat-controls-disabled','_createPromptInputView','focusPromptInput','setIsUploadInProgress','2705130NLhYeM','clearPendingContextUI','isDisabled','74004ZydzFI','36DKAsEs','868hPqdjS','5635156hyUbxo','div','sendUserMessage','enableModelSelector'];_0x509a=function(){return _0xfa098e;};return _0x509a();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x574cec=_0x24b1;(function(_0x3d6d04,_0xe1fdbf){const _0x339555=_0x24b1,_0x16367b=_0x3d6d04();while(!![]){try{const _0x41ceb5=parseInt(_0x339555(0x1a2))/0x1*(-parseInt(_0x339555(0x1be))/0x2)+-parseInt(_0x339555(0x19a))/0x3*(parseInt(_0x339555(0x1b9))/0x4)+parseInt(_0x339555(0x1b6))/0x5+parseInt(_0x339555(0x1b2))/0x6+-parseInt(_0x339555(0x19d))/0x7*(parseInt(_0x339555(0x190))/0x8)+parseInt(_0x339555(0x1d4))/0x9*(parseInt(_0x339555(0x191))/0xa)+parseInt(_0x339555(0x19b))/0xb;if(_0x41ceb5===_0xe1fdbf)break;else _0x16367b['push'](_0x16367b['shift']());}catch(_0x1f59be){_0x16367b['push'](_0x16367b['shift']());}}}(_0x9f44,0x6e0fd));import{CKEditorError as _0xf8a08f,logWarning as _0xe15d4f,scrollViewportToShowTarget as _0x5b5d40}from'ckeditor5/src/utils.js';import{View as _0x4d4e4f}from'ckeditor5/src/ui.js';function _0x24b1(_0x33f14f,_0x4b5504){const _0x9f44f=_0x9f44();return _0x24b1=function(_0x24b171,_0xcbda49){_0x24b171=_0x24b171-0x190;let _0x3d80e8=_0x9f44f[_0x24b171];return _0x3d80e8;},_0x24b1(_0x33f14f,_0x4b5504);}import{AI_CHAT_UI_EVENT_NAMES as _0x4f7dd2}from'../utils/eventnames.js';function _0x9f44(){const _0x1f05f8=['removeItem','_setupTemplate','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','isVisible','set','createCollection','ck-ai-chat__feed__items','isPending','stop','2172966HrjdNZ','locale','addItem','includes','1726695zAsFJv','startAutoScroll','_createTemplateChildren','4948KaYYLe','element','start','ai-suggestion-reply','_createFeedLoader','2wFELfs','loadingMessage','markItemAsDone','updateSuggestionItem','bindTemplate','isLoadingSkeletonVisible','getItemIds','aiFeed','ai-chat-feed-view-item-not-a-suggestion-item','ck-ai-chat__feed','clear','updateWebSources','span','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','_bodyCollection','stopAutoScroll','setTemplate','getItemById','updatePartState','remove','add','updateContent','5918841uVnPse','updateReplyItem','extendTemplate','ai-reply','updateSources','toggleLoadingSkeleton','getPartView','ck-ai-chat__loader-text','updateSuggestionPartState','map','div','_createSkeletonLoader','8tZCFBG','10vMBaaJ','ai-chat-feed-view-item-not-found','options','find','scrollToSuggestion','_createLoaderChildren','interaction-header','ck-ai-chat__loader','user-message','1449InfVnJ','8742030JzJXvN','destroy','5676132dokWMj','markAsDone','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','setLoadingMessage','_createFeedItems','300719YZCYDo','scrollManager','ck-hidden','children','render','delegate','ai-chat-feed-view-item-not-a-reply-item'];_0x9f44=function(){return _0x1f05f8;};return _0x9f44();}import{AIChatFeedSuggestionItemView as _0x3c4942}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x3a8f44}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x144d8f}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x5f3c4e}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x4b66d5}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x27884a}from'../utils/scrollmanager.js';import{AISkeletonView as _0x394e38,SKELETON_DEFINITIONS as _0x5bc358}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x4fe8cf}from'../../aicore/ui/aispinner.js';export class AIChatFeedView extends _0x4d4e4f{[_0x574cec(0x1a5)];[_0x574cec(0x1a3)];[_0x574cec(0x1cc)];constructor(_0x199449,_0x365088){const _0x4a7337=_0x574cec;super(_0x199449),this[_0x4a7337(0x1cc)]=_0x365088,this[_0x4a7337(0x1ad)](_0x4a7337(0x1b0),!0x1),this[_0x4a7337(0x1ad)](_0x4a7337(0x1bf),''),this[_0x4a7337(0x1ad)](_0x4a7337(0x1c3),!0x1),this[_0x4a7337(0x1a5)]=this[_0x4a7337(0x1ae)](),this[_0x4a7337(0x1a5)][_0x4a7337(0x1a7)](..._0x4f7dd2)['to'](this),this[_0x4a7337(0x1aa)]();}[_0x574cec(0x1a6)](){const _0x1f5af4=_0x574cec;super[_0x1f5af4(0x1a6)](),this[_0x1f5af4(0x1a3)]=new _0x27884a(this[_0x1f5af4(0x1ba)]);}[_0x574cec(0x19c)](){const _0x3dfd12=_0x574cec;super[_0x3dfd12(0x19c)](),this[_0x3dfd12(0x1a3)][_0x3dfd12(0x19c)]();}[_0x574cec(0x1c8)](){const _0x18681a=_0x574cec;this[_0x18681a(0x1a5)][_0x18681a(0x1c8)]();}[_0x574cec(0x1b4)](_0x5ba7a2,_0x4b5f73){const _0x5d9d95=_0x574cec;let _0x17fd68;_0x17fd68=_0x5d9d95(0x1d7)===_0x5ba7a2?new _0x3a8f44(this[_0x5d9d95(0x1b3)],_0x4b5f73):_0x5d9d95(0x1bc)===_0x5ba7a2?new _0x3c4942(this[_0x5d9d95(0x1b3)],_0x4b5f73):_0x5d9d95(0x199)===_0x5ba7a2?new _0x144d8f(this[_0x5d9d95(0x1b3)],_0x4b5f73,this[_0x5d9d95(0x1cc)]):_0x5d9d95(0x197)===_0x5ba7a2?new _0x4b66d5(this[_0x5d9d95(0x1b3)],_0x4b5f73):new _0x5f3c4e(_0x4b5f73),this[_0x5d9d95(0x1a5)][_0x5d9d95(0x1d2)](_0x17fd68);}async[_0x574cec(0x1d5)]({id:_0x58d611,parsedContent:_0xd0e7b1,renderingStrategy:_0x5a94c3,abortSignal:_0x4b73f5}){const _0x2f57f3=_0x574cec,_0x54224d=this[_0x2f57f3(0x1cf)](_0x58d611);if(!(_0x54224d instanceof _0x3a8f44))throw new _0xf8a08f(_0x2f57f3(0x1a8),null,{'itemView':_0x54224d,'id':_0x58d611,'parsedContent':_0xd0e7b1});await _0x54224d[_0x2f57f3(0x1d3)]({'parsedContent':_0xd0e7b1,'renderingStrategy':_0x5a94c3,'abortSignal':_0x4b73f5});}async[_0x574cec(0x1c9)](_0x2f8c6e,_0x4e0a26){const _0x1a91c3=_0x574cec,_0x1e8374=this[_0x1a91c3(0x1cf)](_0x2f8c6e);if(_0x1e8374 instanceof _0x3c4942)_0x1e8374[_0x1a91c3(0x1d8)](_0x4e0a26);else{if(!(_0x1e8374 instanceof _0x3a8f44))throw new _0xf8a08f(_0x1a91c3(0x19f),null,{'itemView':_0x1e8374,'id':_0x2f8c6e,'sources':_0x4e0a26});_0x1e8374[_0x1a91c3(0x1d8)](_0x4e0a26);}}async[_0x574cec(0x1c1)]({id:_0x1366bd,parts:_0x2bc2a2,renderingStrategy:_0x365007,abortSignal:_0x165b80}){const _0x4b61e1=_0x574cec,_0xb72a65=this[_0x4b61e1(0x1cf)](_0x1366bd);if(!(_0xb72a65 instanceof _0x3c4942))throw new _0xf8a08f(_0x4b61e1(0x1c6),null,{'itemView':_0xb72a65,'id':_0x1366bd,'parts':_0x2bc2a2});await _0xb72a65[_0x4b61e1(0x1d3)]({'parts':_0x2bc2a2,'renderingStrategy':_0x365007,'abortSignal':_0x165b80});}[_0x574cec(0x1dc)]({id:_0x606701,index:_0x260e10,state:_0x35a616}){const _0x5d7dac=_0x574cec,_0x38baa0=this[_0x5d7dac(0x1cf)](_0x606701);if(!(_0x38baa0 instanceof _0x3c4942))throw new _0xf8a08f(_0x5d7dac(0x1c6),this,{'id':_0x606701});_0x38baa0[_0x5d7dac(0x1d0)](_0x260e10,_0x35a616);}[_0x574cec(0x1c0)](_0x993f50){const _0x1883fe=_0x574cec;this[_0x1883fe(0x1cf)](_0x993f50)[_0x1883fe(0x19e)]();}[_0x574cec(0x1c4)](){const _0x5c3ae4=_0x574cec;return this[_0x5c3ae4(0x1a5)][_0x5c3ae4(0x1dd)](_0x1c2ba2=>_0x1c2ba2[_0x5c3ae4(0x193)]['id']);}[_0x574cec(0x1a9)](_0x36b293){const _0x522212=_0x574cec;this[_0x522212(0x1a5)][_0x522212(0x1d1)](this[_0x522212(0x1cf)](_0x36b293));}[_0x574cec(0x195)](_0x32e4c3,_0x385a87){const _0x3ad68c=_0x574cec,_0x1b5b7f=this[_0x3ad68c(0x1cf)](_0x32e4c3);if(!(_0x1b5b7f instanceof _0x3c4942))return void _0xe15d4f(_0x3ad68c(0x1ab),{'replyId':_0x32e4c3,'partIndex':_0x385a87});const _0xefe5=_0x1b5b7f[_0x3ad68c(0x1da)](_0x385a87);_0xefe5?_0x5b5d40({'target':_0xefe5[_0x3ad68c(0x1ba)],'ancestorOffset':0x14,'alignToTop':!0x0,'forceScroll':!0x0}):_0xe15d4f(_0x3ad68c(0x1cb),{'replyId':_0x32e4c3,'partIndex':_0x385a87});}[_0x574cec(0x1aa)](){const _0x506f9c=_0x574cec;this[_0x506f9c(0x1ce)]({'tag':_0x506f9c(0x1de),'attributes':{'class':['ck',_0x506f9c(0x1c7)]},'children':this[_0x506f9c(0x1b8)]()});}[_0x574cec(0x1b8)](){const _0x46c023=_0x574cec,_0x58260a=this[_0x46c023(0x1df)]();return[this[_0x46c023(0x1a1)](),_0x58260a,this[_0x46c023(0x1bd)]()];}[_0x574cec(0x1df)](){const _0x2ef030=_0x574cec,_0x33dedd=new _0x394e38(this[_0x2ef030(0x1b3)],_0x5bc358[_0x2ef030(0x1c5)]);return _0x33dedd[_0x2ef030(0x1d6)]({'attributes':{'class':[this[_0x2ef030(0x1c2)]['if'](_0x2ef030(0x1c3),_0x2ef030(0x1a4),_0x649efd=>!_0x649efd)]}}),_0x33dedd;}[_0x574cec(0x1a1)](){const _0x32bf09=_0x574cec,_0x50c4d6=new _0x4d4e4f(this[_0x32bf09(0x1b3)]);return _0x50c4d6[_0x32bf09(0x1ce)]({'tag':_0x32bf09(0x1de),'attributes':{'class':['ck',_0x32bf09(0x1af),this[_0x32bf09(0x1c2)]['if'](_0x32bf09(0x1c3),_0x32bf09(0x1a4))]},'children':this[_0x32bf09(0x1a5)]}),_0x50c4d6;}[_0x574cec(0x1bd)](){const _0x138695=_0x574cec,_0x2cf0fb=new _0x4d4e4f(this[_0x138695(0x1b3)]);return _0x2cf0fb[_0x138695(0x1ce)]({'tag':_0x138695(0x1de),'attributes':{'class':['ck',_0x138695(0x198),this[_0x138695(0x1c2)]['if'](_0x138695(0x1b0),_0x138695(0x1a4),_0x566c12=>!_0x566c12)]},'children':this[_0x138695(0x196)]()}),_0x2cf0fb;}[_0x574cec(0x196)](){const _0xc53f76=_0x574cec,_0x3e5359=new _0x4fe8cf();return _0x3e5359[_0xc53f76(0x1ac)]=!0x0,[_0x3e5359,{'tag':_0xc53f76(0x1ca),'attributes':{'class':['ck',_0xc53f76(0x1db)]},'children':[{'text':this[_0xc53f76(0x1c2)]['to'](_0xc53f76(0x1bf))}]}];}[_0x574cec(0x1cf)](_0x55571b){const _0x1d3b2d=_0x574cec,_0xd9eb4d=this[_0x1d3b2d(0x1a5)][_0x1d3b2d(0x194)](_0x41f337=>_0x41f337[_0x1d3b2d(0x193)]['id'][_0x1d3b2d(0x1b5)](_0x55571b));if(!_0xd9eb4d)throw new _0xf8a08f(_0x1d3b2d(0x192),this,{'id':_0x55571b});return _0xd9eb4d;}[_0x574cec(0x1a0)](_0x41254f){const _0x2754ae=_0x574cec;this[_0x2754ae(0x1ad)](_0x2754ae(0x1bf),_0x41254f);}[_0x574cec(0x1d9)](_0x5ea1cd){const _0x2cc38d=_0x574cec;this[_0x2cc38d(0x1ad)](_0x2cc38d(0x1c3),_0x5ea1cd);}[_0x574cec(0x1b7)](){const _0x2bd662=_0x574cec;this[_0x2bd662(0x1a3)][_0x2bd662(0x1bb)]();}[_0x574cec(0x1cd)](){const _0x4bbff3=_0x574cec;this[_0x4bbff3(0x1a3)][_0x4bbff3(0x1b1)]();}}
23
+ const _0x3704cb=_0x2464;(function(_0x13a615,_0x169863){const _0x567179=_0x2464,_0x2beb42=_0x13a615();while(!![]){try{const _0x17fc4b=parseInt(_0x567179(0x9c))/0x1+-parseInt(_0x567179(0x73))/0x2*(-parseInt(_0x567179(0x96))/0x3)+-parseInt(_0x567179(0xb8))/0x4*(parseInt(_0x567179(0xaf))/0x5)+-parseInt(_0x567179(0x7a))/0x6+-parseInt(_0x567179(0xb5))/0x7*(parseInt(_0x567179(0x7c))/0x8)+-parseInt(_0x567179(0x95))/0x9*(-parseInt(_0x567179(0x7b))/0xa)+parseInt(_0x567179(0x79))/0xb*(parseInt(_0x567179(0x6a))/0xc);if(_0x17fc4b===_0x169863)break;else _0x2beb42['push'](_0x2beb42['shift']());}catch(_0x2f5c9f){_0x2beb42['push'](_0x2beb42['shift']());}}}(_0x41f4,0x5197d));import{CKEditorError as _0x2e0fd6,logWarning as _0x456c63,scrollViewportToShowTarget as _0x2383c2}from'ckeditor5/src/utils.js';import{View as _0x3d1a7a}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x274f32}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x5175e9}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x3f3a51}from'./feed/aichatfeedreplyitemview.js';function _0x2464(_0x18bece,_0x3fbe23){const _0x41f49f=_0x41f4();return _0x2464=function(_0x246428,_0x435210){_0x246428=_0x246428-0x69;let _0xf75df1=_0x41f49f[_0x246428];return _0xf75df1;},_0x2464(_0x18bece,_0x3fbe23);}import{AIChatFeedUserMessageItemView as _0x493618}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x1037d5}from'./feed/aichatfeederroritemview.js';function _0x41f4(){const _0x20b249=['isLoadingSkeletonVisible','createCollection','locale','clear','_createFeedLoader','setLoadingMessage','ck-ai-chat__loader-text','getItemById','add','updateWebSources','updateSuggestionPartState','stopAutoScroll','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','options','ai-chat-feed-view-item-not-a-reply-item','remove','isVisible','2048373ZeYRLa','1131kBbmHc','element','ck-ai-chat__feed','updateSuggestionItem','scrollToSuggestion','toggleLoadingSkeleton','209557fXmbVO','updateReplyItem','delegate','interaction-header','destroy','find','_setupTemplate','markAsDone','updateContent','_createSkeletonLoader','updateSources','includes','ck-ai-chat__loader','removeItem','markItemAsDone','children','user-message','_createLoaderChildren','map','280205aSghqI','ai-reply','aiFeed','extendTemplate','updatePartState','span','105CFlEmP','scrollManager','isPending','4RWSjkm','getPartView','ai-chat-feed-view-item-not-a-suggestion-item','1816044ItWHGO','render','ck-ai-chat__feed__items','loadingMessage','_bodyCollection','getItemIds','ai-chat-feed-view-item-not-found','ai-suggestion-reply','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','3104LgkyFo','div','_createTemplateChildren','setTemplate','start','startAutoScroll','33AerrVB','3525888JlblCB','10mtXczh','265800tbvvNw','ck-hidden','_createFeedItems','set','stop','bindTemplate','addItem'];_0x41f4=function(){return _0x20b249;};return _0x41f4();}import{AIChatFeedInteractionHeaderView as _0x429aba}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x162c5f}from'../utils/scrollmanager.js';import{AISkeletonView as _0x50bee6,SKELETON_DEFINITIONS as _0x50e9be}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x4a95f2}from'../../aicore/ui/aispinner.js';export class AIChatFeedView extends _0x3d1a7a{[_0x3704cb(0xab)];[_0x3704cb(0xb6)];[_0x3704cb(0x6e)];constructor(_0x51d747,_0x2dbe78){const _0x8950aa=_0x3704cb;super(_0x51d747),this[_0x8950aa(0x6e)]=_0x2dbe78,this[_0x8950aa(0x7f)](_0x8950aa(0xb7),!0x1),this[_0x8950aa(0x7f)](_0x8950aa(0x6d),''),this[_0x8950aa(0x7f)](_0x8950aa(0x83),!0x1),this[_0x8950aa(0xab)]=this[_0x8950aa(0x84)](),this[_0x8950aa(0xab)][_0x8950aa(0x9e)](..._0x274f32)['to'](this),this[_0x8950aa(0xa2)]();}[_0x3704cb(0x6b)](){const _0x1c2cc7=_0x3704cb;super[_0x1c2cc7(0x6b)](),this[_0x1c2cc7(0xb6)]=new _0x162c5f(this[_0x1c2cc7(0x97)]);}[_0x3704cb(0xa0)](){const _0x28a5c7=_0x3704cb;super[_0x28a5c7(0xa0)](),this[_0x28a5c7(0xb6)][_0x28a5c7(0xa0)]();}[_0x3704cb(0x86)](){const _0x4968d1=_0x3704cb;this[_0x4968d1(0xab)][_0x4968d1(0x86)]();}[_0x3704cb(0x82)](_0x3a6ee4,_0x4cc980){const _0x4e7063=_0x3704cb;let _0x1a5298;_0x1a5298=_0x4e7063(0xb0)===_0x3a6ee4?new _0x3f3a51(this[_0x4e7063(0x85)],_0x4cc980):_0x4e7063(0x71)===_0x3a6ee4?new _0x5175e9(this[_0x4e7063(0x85)],_0x4cc980):_0x4e7063(0xac)===_0x3a6ee4?new _0x493618(this[_0x4e7063(0x85)],_0x4cc980,this[_0x4e7063(0x6e)]):_0x4e7063(0x9f)===_0x3a6ee4?new _0x429aba(this[_0x4e7063(0x85)],_0x4cc980):new _0x1037d5(_0x4cc980),this[_0x4e7063(0xab)][_0x4e7063(0x8b)](_0x1a5298);}async[_0x3704cb(0x9d)]({id:_0x22fa0a,parsedContent:_0x75e6fd,renderingStrategy:_0x58a3c5,abortSignal:_0x1ede1d}){const _0x18e098=_0x3704cb,_0x3f4ce0=this[_0x18e098(0x8a)](_0x22fa0a);if(!(_0x3f4ce0 instanceof _0x3f3a51))throw new _0x2e0fd6(_0x18e098(0x92),null,{'itemView':_0x3f4ce0,'id':_0x22fa0a,'parsedContent':_0x75e6fd});await _0x3f4ce0[_0x18e098(0xa4)]({'parsedContent':_0x75e6fd,'renderingStrategy':_0x58a3c5,'abortSignal':_0x1ede1d});}async[_0x3704cb(0x8c)](_0x44d31f,_0x2b429d){const _0x164fac=_0x3704cb,_0x24dcf2=this[_0x164fac(0x8a)](_0x44d31f);if(_0x24dcf2 instanceof _0x5175e9)_0x24dcf2[_0x164fac(0xa6)](_0x2b429d);else{if(!(_0x24dcf2 instanceof _0x3f3a51))throw new _0x2e0fd6(_0x164fac(0x72),null,{'itemView':_0x24dcf2,'id':_0x44d31f,'sources':_0x2b429d});_0x24dcf2[_0x164fac(0xa6)](_0x2b429d);}}async[_0x3704cb(0x99)]({id:_0x1479ba,parts:_0x2e64b1,renderingStrategy:_0x2d3545,abortSignal:_0x463312}){const _0x45ab38=_0x3704cb,_0x22a103=this[_0x45ab38(0x8a)](_0x1479ba);if(!(_0x22a103 instanceof _0x5175e9))throw new _0x2e0fd6(_0x45ab38(0x69),null,{'itemView':_0x22a103,'id':_0x1479ba,'parts':_0x2e64b1});await _0x22a103[_0x45ab38(0xa4)]({'parts':_0x2e64b1,'renderingStrategy':_0x2d3545,'abortSignal':_0x463312});}[_0x3704cb(0x8d)]({id:_0x1d9b41,index:_0x4d4580,state:_0x37a57f}){const _0x21fc8b=_0x3704cb,_0x359b5d=this[_0x21fc8b(0x8a)](_0x1d9b41);if(!(_0x359b5d instanceof _0x5175e9))throw new _0x2e0fd6(_0x21fc8b(0x69),this,{'id':_0x1d9b41});_0x359b5d[_0x21fc8b(0xb3)](_0x4d4580,_0x37a57f);}[_0x3704cb(0xaa)](_0x37a0f7){const _0x448f4d=_0x3704cb;this[_0x448f4d(0x8a)](_0x37a0f7)[_0x448f4d(0xa3)]();}[_0x3704cb(0x6f)](){const _0x35a49a=_0x3704cb;return this[_0x35a49a(0xab)][_0x35a49a(0xae)](_0x4f73a6=>_0x4f73a6[_0x35a49a(0x91)]['id']);}[_0x3704cb(0xa9)](_0x1824f8){const _0x24e18d=_0x3704cb;this[_0x24e18d(0xab)][_0x24e18d(0x93)](this[_0x24e18d(0x8a)](_0x1824f8));}[_0x3704cb(0x9a)](_0x28e775,_0x21d3b4){const _0x34e92d=_0x3704cb,_0x10f7cf=this[_0x34e92d(0x8a)](_0x28e775);if(!(_0x10f7cf instanceof _0x5175e9))return void _0x456c63(_0x34e92d(0x90),{'replyId':_0x28e775,'partIndex':_0x21d3b4});const _0x386697=_0x10f7cf[_0x34e92d(0xb9)](_0x21d3b4);_0x386697?_0x2383c2({'target':_0x386697[_0x34e92d(0x97)],'ancestorOffset':0x14,'alignToTop':!0x0,'forceScroll':!0x0}):_0x456c63(_0x34e92d(0x8f),{'replyId':_0x28e775,'partIndex':_0x21d3b4});}[_0x3704cb(0xa2)](){const _0x1728e8=_0x3704cb;this[_0x1728e8(0x76)]({'tag':_0x1728e8(0x74),'attributes':{'class':['ck',_0x1728e8(0x98)]},'children':this[_0x1728e8(0x75)]()});}[_0x3704cb(0x75)](){const _0x2100a8=_0x3704cb,_0x202d1c=this[_0x2100a8(0xa5)]();return[this[_0x2100a8(0x7e)](),_0x202d1c,this[_0x2100a8(0x87)]()];}[_0x3704cb(0xa5)](){const _0x35bb13=_0x3704cb,_0x4a1d86=new _0x50bee6(this[_0x35bb13(0x85)],_0x50e9be[_0x35bb13(0xb1)]);return _0x4a1d86[_0x35bb13(0xb2)]({'attributes':{'class':[this[_0x35bb13(0x81)]['if'](_0x35bb13(0x83),_0x35bb13(0x7d),_0x44835f=>!_0x44835f)]}}),_0x4a1d86;}[_0x3704cb(0x7e)](){const _0x273dbe=_0x3704cb,_0x4af09e=new _0x3d1a7a(this[_0x273dbe(0x85)]);return _0x4af09e[_0x273dbe(0x76)]({'tag':_0x273dbe(0x74),'attributes':{'class':['ck',_0x273dbe(0x6c),this[_0x273dbe(0x81)]['if'](_0x273dbe(0x83),_0x273dbe(0x7d))]},'children':this[_0x273dbe(0xab)]}),_0x4af09e;}[_0x3704cb(0x87)](){const _0x412254=_0x3704cb,_0x8c400f=new _0x3d1a7a(this[_0x412254(0x85)]);return _0x8c400f[_0x412254(0x76)]({'tag':_0x412254(0x74),'attributes':{'class':['ck',_0x412254(0xa8),this[_0x412254(0x81)]['if'](_0x412254(0xb7),_0x412254(0x7d),_0x444e20=>!_0x444e20)]},'children':this[_0x412254(0xad)]()}),_0x8c400f;}[_0x3704cb(0xad)](){const _0x18b476=_0x3704cb,_0x1e8c40=new _0x4a95f2();return _0x1e8c40[_0x18b476(0x94)]=!0x0,[_0x1e8c40,{'tag':_0x18b476(0xb4),'attributes':{'class':['ck',_0x18b476(0x89)]},'children':[{'text':this[_0x18b476(0x81)]['to'](_0x18b476(0x6d))}]}];}[_0x3704cb(0x8a)](_0x283933){const _0x2ef810=_0x3704cb,_0x1dd3c6=this[_0x2ef810(0xab)][_0x2ef810(0xa1)](_0x390ba7=>_0x390ba7[_0x2ef810(0x91)]['id'][_0x2ef810(0xa7)](_0x283933));if(!_0x1dd3c6)throw new _0x2e0fd6(_0x2ef810(0x70),this,{'id':_0x283933});return _0x1dd3c6;}[_0x3704cb(0x88)](_0x461980){const _0x365c4b=_0x3704cb;this[_0x365c4b(0x7f)](_0x365c4b(0x6d),_0x461980);}[_0x3704cb(0x9b)](_0x53a470){const _0x13ccd4=_0x3704cb;this[_0x13ccd4(0x7f)](_0x13ccd4(0x83),_0x53a470);}[_0x3704cb(0x78)](){const _0x14bba9=_0x3704cb;this[_0x14bba9(0xb6)][_0x14bba9(0x77)]();}[_0x3704cb(0x8e)](){const _0x515762=_0x3704cb;this[_0x515762(0xb6)][_0x515762(0x80)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x1317(_0x28ea23,_0x1370f1){const _0x33b99b=_0x33b9();return _0x1317=function(_0x131786,_0x2fd9db){_0x131786=_0x131786-0x6d;let _0x522084=_0x33b99b[_0x131786];return _0x522084;},_0x1317(_0x28ea23,_0x1370f1);}const _0x27681a=_0x1317;(function(_0x1d8697,_0x25e1c0){const _0x451010=_0x1317,_0x653412=_0x1d8697();while(!![]){try{const _0xf61179=parseInt(_0x451010(0x78))/0x1*(-parseInt(_0x451010(0x80))/0x2)+parseInt(_0x451010(0x83))/0x3*(-parseInt(_0x451010(0x7e))/0x4)+parseInt(_0x451010(0x85))/0x5+-parseInt(_0x451010(0x82))/0x6+parseInt(_0x451010(0x77))/0x7*(parseInt(_0x451010(0x81))/0x8)+parseInt(_0x451010(0x86))/0x9*(-parseInt(_0x451010(0x75))/0xa)+parseInt(_0x451010(0x70))/0xb;if(_0xf61179===_0x25e1c0)break;else _0x653412['push'](_0x653412['shift']());}catch(_0x1bf654){_0x653412['push'](_0x653412['shift']());}}}(_0x33b9,0xef312));import{ButtonView as _0x3cef7b,FormHeaderView as _0xc61646}from'ckeditor5/src/ui.js';import{IconPlus as _0x1c29ca,IconAIChat as _0x1160a6}from'ckeditor5/src/icons.js';import{getTranslation as _0x1ba1aa}from'../../aicore/utils/common-translations.js';function _0x33b9(){const _0x3895a9=['AI_CHAT_LABEL_NEW_CHAT','10eBClam','set','7UnxAqT','1787oNIVFP','ck-ai-header\x20ck-ai-header_chat','startConversation','execute','resizeButton','ck-ai-chat__start-conversation','4fnPcBQ','add','74uwLHqQ','10231064nnxhSF','5075820JBcuKu','3116001IvqvuK','AI_CHAT_HEADING','6529885KMvBFz','15640389QFYGCS','fire','isMaximized','conversationStartButton','22917917qbHWdi','locale','_createStartConversationButton','children'];_0x33b9=function(){return _0x3895a9;};return _0x33b9();}import{createResizeButton as _0x3fc4af}from'../../aicore/utils/createresizebutton.js';export class AIChatHeaderView extends _0xc61646{[_0x27681a(0x6f)];[_0x27681a(0x7c)];constructor(_0x547335,_0x23d3ef){const _0x5133b3=_0x27681a;super(_0x547335,{'label':_0x1ba1aa(_0x547335,_0x5133b3(0x84)),'class':_0x5133b3(0x79),'icon':_0x1160a6}),this[_0x5133b3(0x76)](_0x5133b3(0x6e),!0x1),this[_0x5133b3(0x6f)]=this[_0x5133b3(0x72)](_0x547335),this[_0x5133b3(0x73)][_0x5133b3(0x7f)](this[_0x5133b3(0x6f)]),_0x23d3ef&&(this[_0x5133b3(0x7c)]=_0x3fc4af(_0x547335,this),this[_0x5133b3(0x73)][_0x5133b3(0x7f)](this[_0x5133b3(0x7c)]));}[_0x27681a(0x72)](_0x252da7){const _0x1267b5=_0x27681a,_0x4db12e=new _0x3cef7b(_0x252da7);return _0x4db12e[_0x1267b5(0x76)]({'label':_0x1ba1aa(this[_0x1267b5(0x71)],_0x1267b5(0x74)),'withText':!0x0,'icon':_0x1c29ca,'class':_0x1267b5(0x7d)}),_0x4db12e['on'](_0x1267b5(0x7b),()=>{const _0x4aaff5=_0x1267b5;this[_0x4aaff5(0x6d)](_0x4aaff5(0x7a));}),_0x4db12e;}}
23
+ const _0x3ee169=_0x3d5c;(function(_0x4f8bfc,_0x12ba5a){const _0x39e902=_0x3d5c,_0x1cc74d=_0x4f8bfc();while(!![]){try{const _0x2714be=parseInt(_0x39e902(0x1ec))/0x1*(-parseInt(_0x39e902(0x1eb))/0x2)+parseInt(_0x39e902(0x1f5))/0x3+-parseInt(_0x39e902(0x1fb))/0x4*(-parseInt(_0x39e902(0x1f4))/0x5)+-parseInt(_0x39e902(0x1e8))/0x6*(parseInt(_0x39e902(0x1ea))/0x7)+-parseInt(_0x39e902(0x1ed))/0x8+-parseInt(_0x39e902(0x1f2))/0x9+parseInt(_0x39e902(0x1f3))/0xa;if(_0x2714be===_0x12ba5a)break;else _0x1cc74d['push'](_0x1cc74d['shift']());}catch(_0x563799){_0x1cc74d['push'](_0x1cc74d['shift']());}}}(_0x3b81,0xc7934));import{ButtonView as _0xd77086,FormHeaderView as _0x3908a7}from'ckeditor5/src/ui.js';import{IconPlus as _0x3f10ba,IconAIChat as _0x3db927}from'ckeditor5/src/icons.js';import{getTranslation as _0xf38a28}from'../../aicore/utils/common-translations.js';import{createResizeButton as _0x57ab1e}from'../../aicore/utils/createresizebutton.js';function _0x3d5c(_0x25a0b7,_0x4709f3){const _0x3b8187=_0x3b81();return _0x3d5c=function(_0x3d5ccf,_0x1ea071){_0x3d5ccf=_0x3d5ccf-0x1e6;let _0x46f749=_0x3b8187[_0x3d5ccf];return _0x46f749;},_0x3d5c(_0x25a0b7,_0x4709f3);}export class AIChatHeaderView extends _0x3908a7{[_0x3ee169(0x1fc)];[_0x3ee169(0x1f6)];constructor(_0x300dc5,_0x527d5f){const _0x5bf24f=_0x3ee169;super(_0x300dc5,{'label':_0xf38a28(_0x300dc5,_0x5bf24f(0x1e6)),'class':_0x5bf24f(0x1e7),'icon':_0x3db927}),this[_0x5bf24f(0x1ee)](_0x5bf24f(0x1e9),!0x1),this[_0x5bf24f(0x1fc)]=this[_0x5bf24f(0x1f9)](_0x300dc5),this[_0x5bf24f(0x1ef)][_0x5bf24f(0x1fa)](this[_0x5bf24f(0x1fc)]),_0x527d5f&&(this[_0x5bf24f(0x1f6)]=_0x57ab1e(_0x300dc5,this),this[_0x5bf24f(0x1ef)][_0x5bf24f(0x1fa)](this[_0x5bf24f(0x1f6)]));}[_0x3ee169(0x1f9)](_0x2b03cb){const _0x36868e=_0x3ee169,_0x2ea23f=new _0xd77086(_0x2b03cb);return _0x2ea23f[_0x36868e(0x1ee)]({'label':_0xf38a28(this[_0x36868e(0x1f8)],_0x36868e(0x1fd)),'withText':!0x0,'icon':_0x3f10ba,'class':_0x36868e(0x1fe)}),_0x2ea23f['on'](_0x36868e(0x1f0),()=>{const _0x43605c=_0x36868e;this[_0x43605c(0x1f1)](_0x43605c(0x1f7));}),_0x2ea23f;}}function _0x3b81(){const _0x181381=['fire','14290092ybVhaO','26453000XfnGDb','2230355svezcc','3688044nKIrHP','resizeButton','startConversation','locale','_createStartConversationButton','add','8vmjhGl','conversationStartButton','AI_CHAT_LABEL_NEW_CHAT','ck-ai-chat__start-conversation','AI_CHAT_HEADING','ck-ai-header\x20ck-ai-header_chat','1774860DeTvkU','isMaximized','7MxYnjH','74rSiZqv','40685ljldbF','4483096wspWci','set','children','execute'];_0x3b81=function(){return _0x181381;};return _0x3b81();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x18a2a1=_0xbcf2;function _0x4e2a(){var _0xdf2844=['416105WhctQn','uiLanguageDirection','8ptGkbH','1307736vpwchc','1188GBtYqh','6GIZlNo','1383NUqfXl','ck-rounded-corners','destroy','chatFeed','222170cQQRLE','_bodyCollection','9pmsdfy','53163lGBORD','attachToDom','chatDisclaimer','setTemplate','delegate','chatHeader','detachFromDom','2830219IYvEhQ','ck-ai-chat','2778920uHHosC','ck-reset_all','closeSourceResourceBalloon','populateSourceResourceBalloon','308PzaxdB','chatControls','div'];_0x4e2a=function(){return _0xdf2844;};return _0x4e2a();}function _0xbcf2(_0x445e98,_0x401dc0){var _0x4e2afd=_0x4e2a();return _0xbcf2=function(_0xbcf233,_0x3fc471){_0xbcf233=_0xbcf233-0xf6;var _0x23e716=_0x4e2afd[_0xbcf233];return _0x23e716;},_0xbcf2(_0x445e98,_0x401dc0);}(function(_0x4687fb,_0x271d19){var _0x21c2f6=_0xbcf2,_0x123e17=_0x4687fb();while(!![]){try{var _0x21ca14=parseInt(_0x21c2f6(0x110))/0x1*(parseInt(_0x21c2f6(0x107))/0x2)+parseInt(_0x21c2f6(0x10d))/0x3+parseInt(_0x21c2f6(0x10c))/0x4*(-parseInt(_0x21c2f6(0x10a))/0x5)+parseInt(_0x21c2f6(0x10f))/0x6*(-parseInt(_0x21c2f6(0x101))/0x7)+parseInt(_0x21c2f6(0x103))/0x8*(-parseInt(_0x21c2f6(0xf9))/0x9)+parseInt(_0x21c2f6(0xf7))/0xa+parseInt(_0x21c2f6(0xfa))/0xb*(parseInt(_0x21c2f6(0x10e))/0xc);if(_0x21ca14===_0x271d19)break;else _0x123e17['push'](_0x123e17['shift']());}catch(_0x35a90c){_0x123e17['push'](_0x123e17['shift']());}}}(_0x4e2a,0x3881e));import{View as _0xee1c73,BodyCollection as _0x1199b9}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x59ed78}from'../utils/eventnames.js';import{AIChatFeedView as _0x301e15}from'./aichatfeedview.js';import{AIChatControlsView as _0x5d94fb}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x424843}from'./aichatheaderview.js';import{AIDisclaimerView as _0x272f53}from'../../aicore/ui/aidisclaimerview.js';export class AIChatView extends _0xee1c73{[_0x18a2a1(0xff)];[_0x18a2a1(0xf6)];[_0x18a2a1(0x108)];[_0x18a2a1(0xfc)];[_0x18a2a1(0xf8)];constructor(_0x22a510,_0x2b0b6e){var _0x21802f=_0x18a2a1;super(_0x22a510),this[_0x21802f(0xf8)]=new _0x1199b9(_0x22a510),this[_0x21802f(0xf8)][_0x21802f(0xfb)](),this[_0x21802f(0xff)]=new _0x424843(_0x22a510,_0x2b0b6e),this[_0x21802f(0xff)][_0x21802f(0xfe)](..._0x59ed78)['to'](this),this[_0x21802f(0xf6)]=new _0x301e15(_0x22a510,this[_0x21802f(0xf8)]),this[_0x21802f(0xf6)][_0x21802f(0xfe)](..._0x59ed78)['to'](this),this[_0x21802f(0x108)]=new _0x5d94fb(_0x22a510,this[_0x21802f(0xf8)]),this[_0x21802f(0x108)][_0x21802f(0xfe)](..._0x59ed78)['to'](this),this[_0x21802f(0xfc)]=new _0x272f53(_0x22a510),this[_0x21802f(0xfd)]({'tag':_0x21802f(0x109),'attributes':{'class':['ck',_0x21802f(0x104),_0x21802f(0x102),_0x21802f(0x111)],'dir':_0x22a510[_0x21802f(0x10b)]},'children':[this[_0x21802f(0xff)],this[_0x21802f(0xf6)],this[_0x21802f(0x108)],this[_0x21802f(0xfc)]]});}[_0x18a2a1(0x106)](_0x24be92,_0x39cac9,_0x3896e5,_0x1c2163){var _0x46fbc8=_0x18a2a1;this[_0x46fbc8(0x108)][_0x46fbc8(0x106)](_0x24be92,_0x39cac9,_0x3896e5,_0x1c2163);}[_0x18a2a1(0x105)](_0x4e8d78){var _0x42dada=_0x18a2a1;this[_0x42dada(0x108)][_0x42dada(0x105)](_0x4e8d78);}[_0x18a2a1(0x112)](){var _0x5b9e18=_0x18a2a1;this[_0x5b9e18(0xf8)][_0x5b9e18(0x100)](),super[_0x5b9e18(0x112)]();}}
23
+ function _0x5f00(){var _0x3bf5ff=['12oDWKku','populateSourceResourceBalloon','detachFromDom','chatHeader','1746920PnjaRw','ck-ai-chat','_bodyCollection','destroy','1774350EOMWhp','10Njejsv','ck-rounded-corners','setTemplate','ck-reset_all','uiLanguageDirection','delegate','chatControls','1871vMJTOH','277792HUSmjA','1469012dhTWWf','attachToDom','chatDisclaimer','closeSourceResourceBalloon','chatFeed','462qxmnMP','11263887zZCofU','2283778fbhqmz','div'];_0x5f00=function(){return _0x3bf5ff;};return _0x5f00();}var _0x10867c=_0x4f68;(function(_0x14e894,_0xe8b1d6){var _0x59551b=_0x4f68,_0x34d99b=_0x14e894();while(!![]){try{var _0x5de58b=parseInt(_0x59551b(0x108))/0x1*(parseInt(_0x59551b(0x10f))/0x2)+parseInt(_0x59551b(0x100))/0x3+-parseInt(_0x59551b(0x10a))/0x4+parseInt(_0x59551b(0xfc))/0x5+parseInt(_0x59551b(0x113))/0x6*(parseInt(_0x59551b(0x111))/0x7)+parseInt(_0x59551b(0x109))/0x8+parseInt(_0x59551b(0x110))/0x9*(-parseInt(_0x59551b(0x101))/0xa);if(_0x5de58b===_0xe8b1d6)break;else _0x34d99b['push'](_0x34d99b['shift']());}catch(_0x3aa9db){_0x34d99b['push'](_0x34d99b['shift']());}}}(_0x5f00,0x6bc7f));function _0x4f68(_0x2f48c1,_0x44dcf8){var _0x5f0097=_0x5f00();return _0x4f68=function(_0x4f684c,_0x1908cc){_0x4f684c=_0x4f684c-0xfb;var _0x55f6c8=_0x5f0097[_0x4f684c];return _0x55f6c8;},_0x4f68(_0x2f48c1,_0x44dcf8);}import{View as _0x208caa,BodyCollection as _0x304369}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0xb06caf}from'../utils/eventnames.js';import{AIChatFeedView as _0x12d1b8}from'./aichatfeedview.js';import{AIChatControlsView as _0x5020f4}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x407971}from'./aichatheaderview.js';import{AIDisclaimerView as _0x4102e8}from'../../aicore/ui/aidisclaimerview.js';export class AIChatView extends _0x208caa{[_0x10867c(0xfb)];[_0x10867c(0x10e)];[_0x10867c(0x107)];[_0x10867c(0x10c)];[_0x10867c(0xfe)];constructor(_0xe42b4c,_0x9c3329){var _0x30be08=_0x10867c;super(_0xe42b4c),this[_0x30be08(0xfe)]=new _0x304369(_0xe42b4c),this[_0x30be08(0xfe)][_0x30be08(0x10b)](),this[_0x30be08(0xfb)]=new _0x407971(_0xe42b4c,_0x9c3329),this[_0x30be08(0xfb)][_0x30be08(0x106)](..._0xb06caf)['to'](this),this[_0x30be08(0x10e)]=new _0x12d1b8(_0xe42b4c,this[_0x30be08(0xfe)]),this[_0x30be08(0x10e)][_0x30be08(0x106)](..._0xb06caf)['to'](this),this[_0x30be08(0x107)]=new _0x5020f4(_0xe42b4c,this[_0x30be08(0xfe)]),this[_0x30be08(0x107)][_0x30be08(0x106)](..._0xb06caf)['to'](this),this[_0x30be08(0x10c)]=new _0x4102e8(_0xe42b4c),this[_0x30be08(0x103)]({'tag':_0x30be08(0x112),'attributes':{'class':['ck',_0x30be08(0x104),_0x30be08(0xfd),_0x30be08(0x102)],'dir':_0xe42b4c[_0x30be08(0x105)]},'children':[this[_0x30be08(0xfb)],this[_0x30be08(0x10e)],this[_0x30be08(0x107)],this[_0x30be08(0x10c)]]});}[_0x10867c(0x114)](_0x8bffde,_0x2224c5,_0x36322d,_0x284434){var _0x201e9d=_0x10867c;this[_0x201e9d(0x107)][_0x201e9d(0x114)](_0x8bffde,_0x2224c5,_0x36322d,_0x284434);}[_0x10867c(0x10d)](_0x174bc5){var _0x4f7f3c=_0x10867c;this[_0x4f7f3c(0x107)][_0x4f7f3c(0x10d)](_0x174bc5);}[_0x10867c(0xff)](){var _0x19ccae=_0x10867c;this[_0x19ccae(0xfe)][_0x19ccae(0x115)](),super[_0x19ccae(0xff)]();}}