@ckeditor/ckeditor5-ai 47.7.3 → 47.7.4

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 (319) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +5 -5
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +16 -16
  150. package/src/aiactions/aiactions.js +1 -1
  151. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  152. package/src/aiactions/model/aiactionsreply.js +1 -1
  153. package/src/aiassistant/adapters/aiadapter.js +1 -1
  154. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  155. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  156. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  157. package/src/aiassistant/aiassistant.js +1 -1
  158. package/src/aiassistant/aiassistantediting.js +1 -1
  159. package/src/aiassistant/aiassistantui.js +1 -1
  160. package/src/aiassistant/legacyerrors.js +1 -1
  161. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  162. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  163. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  164. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  165. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  166. package/src/aiassistant/ui/form/aiformview.js +1 -1
  167. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  168. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  169. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  170. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  171. package/src/aiassistant/utils/common-translations.js +1 -1
  172. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  173. package/src/aiballoon/aiballoon.js +1 -1
  174. package/src/aiballoon/ui/aiballoonview.js +1 -1
  175. package/src/aichat/aichat.js +1 -1
  176. package/src/aichat/aichatballoon.js +1 -1
  177. package/src/aichat/aichatcontroller.js +1 -1
  178. package/src/aichat/aichatui.js +1 -1
  179. package/src/aichat/model/aichatcontext.d.ts +21 -14
  180. package/src/aichat/model/aichatcontext.js +1 -1
  181. package/src/aichat/model/aichatconversation.js +1 -1
  182. package/src/aichat/model/aichatinteraction.js +1 -1
  183. package/src/aichat/ui/aichatballoonview.js +1 -1
  184. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  185. package/src/aichat/ui/aichatfeedview.js +1 -1
  186. package/src/aichat/ui/aichatheaderview.js +1 -1
  187. package/src/aichat/ui/aichatview.js +1 -1
  188. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  189. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  190. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  191. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  192. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  193. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  194. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  195. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  196. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  197. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  198. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  199. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  200. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  201. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  202. package/src/aichat/ui/feed/aichatfeedcustomelementview.js +1 -1
  203. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  204. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  205. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  206. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  207. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  208. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  209. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  210. package/src/aichat/utils/eventnames.js +1 -1
  211. package/src/aichat/utils/promisequeue.js +1 -1
  212. package/src/aichathistory/aichathistory.js +1 -1
  213. package/src/aichathistory/aichathistorycontroller.js +1 -1
  214. package/src/aichathistory/aichathistoryui.js +1 -1
  215. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  216. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  217. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  218. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  219. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  220. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  221. package/src/aichatshortcuts/aichatshortcuts.js +1 -1
  222. package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
  223. package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
  224. package/src/aicore/aiconnector.js +1 -1
  225. package/src/aicore/aiediting.js +1 -1
  226. package/src/aicore/model/aicapabilities.js +1 -1
  227. package/src/aicore/model/aicontext.js +1 -1
  228. package/src/aicore/model/aiinteraction.js +1 -1
  229. package/src/aicore/model/aimodels.js +1 -1
  230. package/src/aicore/model/aireply.js +1 -1
  231. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  232. package/src/aicore/pipeline/airesponseparser.js +2 -2
  233. package/src/aicore/ui/aidisclaimerview.js +1 -1
  234. package/src/aicore/ui/aiskeleton.js +1 -1
  235. package/src/aicore/ui/aispinner.js +1 -1
  236. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  237. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  238. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  239. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
  240. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
  241. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.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/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
  245. package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
  246. package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
  247. package/src/aicore/utils/common-translations.js +1 -1
  248. package/src/aicore/utils/createresizebutton.js +1 -1
  249. package/src/aicore/utils/documentposition.js +1 -1
  250. package/src/aicore/utils/documentrange.js +1 -1
  251. package/src/aicore/utils/eventnames.js +1 -1
  252. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  253. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  254. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  255. package/src/aicore/utils/htmlparser.js +1 -1
  256. package/src/aicore/utils/htmlstreamer.js +1 -1
  257. package/src/aicore/utils/scrollmanager.js +1 -1
  258. package/src/aieditorintegration/aieditorintegration.js +1 -1
  259. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  260. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  261. package/src/aiquickactions/aiquickactions.js +1 -1
  262. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  263. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  264. package/src/aiquickactions/aiquickactionsui.js +1 -1
  265. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  266. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  267. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  268. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
  269. package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
  270. package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
  271. package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
  272. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  273. package/src/aireviewcore/aireviewcorecontroller.js +1 -1
  274. package/src/aireviewcore/aireviewcoreediting.js +1 -1
  275. package/src/aireviewcore/aireviewcoreui.js +1 -1
  276. package/src/aireviewcore/model/aireviewcheck.js +1 -1
  277. package/src/aireviewcore/model/aireviewchecklist.js +1 -1
  278. package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
  279. package/src/aireviewcore/model/aireviewcheckresultchange.js +1 -1
  280. package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
  281. package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
  282. package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
  283. package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
  284. package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
  285. package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
  286. package/src/aireviewcore/ui/aireviewcoregeneralerrorview.js +1 -1
  287. package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
  288. package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
  289. package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
  290. package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
  291. package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
  292. package/src/aireviewcore/ui/aireviewcoreview.js +1 -1
  293. package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
  294. package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +1 -1
  295. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  296. package/src/aireviewmode/aireviewmode.js +1 -1
  297. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  298. package/src/aireviewmode/aireviewmodeui.js +1 -1
  299. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  300. package/src/aireviewmode/model/aireviewcheckextra.js +1 -1
  301. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  302. package/src/aireviewmode/model/aireviewextracheckrun.js +1 -1
  303. package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
  304. package/src/aitabs/aitabs.js +1 -1
  305. package/src/aitabs/aitabsmainview.js +1 -1
  306. package/src/aitabs/tabs/aitabsview.js +1 -1
  307. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  308. package/src/aitabs/tabs/tabpanelview.js +1 -1
  309. package/src/aitranslate/aitranslate.js +1 -1
  310. package/src/aitranslate/aitranslatecontroller.js +1 -1
  311. package/src/aitranslate/aitranslateui.js +1 -1
  312. package/src/aitranslate/model/aitranslatecheck.js +1 -1
  313. package/src/aitranslate/model/aitranslatechecklist.js +1 -1
  314. package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
  315. package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
  316. package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
  317. package/src/errors.js +1 -1
  318. package/src/errorsmap.js +1 -1
  319. package/src/index.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1dade9=_0x3b26;function _0x3b26(_0x2bd113,_0x4d8d09){const _0x28a4f6=_0x28a4();return _0x3b26=function(_0x3b267b,_0x2a1c04){_0x3b267b=_0x3b267b-0x145;let _0x30abba=_0x28a4f6[_0x3b267b];return _0x30abba;},_0x3b26(_0x2bd113,_0x4d8d09);}(function(_0x6142fd,_0x478c5a){const _0x2d36d1=_0x3b26,_0x118c7c=_0x6142fd();while(!![]){try{const _0x6262d7=-parseInt(_0x2d36d1(0x1cf))/0x1*(parseInt(_0x2d36d1(0x154))/0x2)+parseInt(_0x2d36d1(0x1af))/0x3+parseInt(_0x2d36d1(0x165))/0x4+parseInt(_0x2d36d1(0x182))/0x5+-parseInt(_0x2d36d1(0x189))/0x6*(parseInt(_0x2d36d1(0x19d))/0x7)+-parseInt(_0x2d36d1(0x19a))/0x8*(-parseInt(_0x2d36d1(0x188))/0x9)+-parseInt(_0x2d36d1(0x1cd))/0xa;if(_0x6262d7===_0x478c5a)break;else _0x118c7c['push'](_0x118c7c['shift']());}catch(_0x4fbad8){_0x118c7c['push'](_0x118c7c['shift']());}}}(_0x28a4,0xdb807));import{CKEditorError as _0x5921d4,ObservableMixin as _0x3b4078,uid as _0x28e5ce}from'ckeditor5/src/utils.js';import{AIContextItemType as _0x5b8b01,AIContextTextResourceType as _0x507e3f}from'../../aicore/model/aicontext.js';import{escape as _0x5b0833}from'es-toolkit/compat';function _0x28a4(){const _0x1f61ac=['_getCustomSourcesInitialState','ai-chat-resource-no-data','MARKDOWN','addFilesToContext','loadSourceResources','isCurrentDocumentInContext','3352728mOLgDX','error','_setAddContextOptionsDefaultState','startsWith','ai-chat-document-upload-failed','isHidden','_ownerId','url','label','map','ai-chat-context-unsupported-type','mapContextItemsToRequestData','ai-chat-source-resources-load-failed','substring','_createContextItemFromContent','text/plain','end','sourceResourcesLoaded','getData','resourceId','getDocument','length','updateCurrentDocument','contextSent','text/markdown','_pendingContextItems','files','_convertTextResourceToFile','object','contextItemLoadingEnded','10194670OXrszD','ai-chat-url-upload-failed','830cwJtRx','name','_ongoingUploads','contextItemAdded','_startUploadOperation','current-document','uiId','fire','addResourceToContext','data','content','TOOL','document','urls','_addContextOptionsState','abortController','_conversationContextItems','removeFromContext','isInContext','removeSelectionFromContext','getSentContextItems','customItems','all','DOCUMENT','addContextOptionsChanged','hidden','1816SXEYcn','ai-chat-source-not-found','_addContextItem','isSelectionInContext','version','toolName','message','_toggleAddCurrentDocumentOptionVisibility','_ongoingUploadOperations','getPendingContextItems','TEXT','resourceStateChanged','HTML','delete','SELECTION','get','uploadUrl','6331888bpwaSd','fetchDocument','_connector','File','contextItemRemoved','_finishContextItemLoading','push','abort','ai-chat-resource-load-failed','init','addUrlToContext','values','attributes','addCurrentDocumentToContext','addToConversationContext','code','selection','stack','ai-request-aborted','sessionId','files-','size','sources','URL','_isResourceInContext','_mapContextItemToRequestData','getResources','url-','_updateResourceInContextState','559125FDXaJb','_addToConversationContextItem','ai-chat-context-invalid-data','string','set','uploadDocument','3599991WkEIYr','18ZZYsrg','Current\x20document','type','enabled','FILE','_removeContextItem','isCurrentDocumentInConversation','file-','_findSourceIdsByResourceId','mcpServerName','populateFromMessage','find','text/html','ai-chat-file-upload-failed','from','forEach','addSelectionToContext','8OZOvsT','addToolItemToContext','has','1260434nnhgmp','resources','_finishUploadOperation','filter','getId','uploadFile','_config','object\x20with\x20content\x20and\x20type\x20properties','clearPendingContextItems','uploadProgressChanged','start','isReadOnly'];_0x28a4=function(){return _0x1f61ac;};return _0x28a4();}import{errorsMap as _0x4b39b1}from'../../errorsmap.js';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x1dade9(0x1d2),_0x1dade9(0x169),_0x1dade9(0x1cc),_0x1dade9(0x1c6),_0x1dade9(0x1b0),_0x1dade9(0x152),_0x1dade9(0x1c0),_0x1dade9(0x15f),_0x1dade9(0x1a6)];export class AIChatContext extends _0x3b4078(){[_0x1dade9(0x167)];[_0x1dade9(0x1a3)];[_0x1dade9(0x1b5)];constructor({connector:_0x317f5b,config:_0x460efd,ownerId:_0x4c7ac7}){const _0x3f8cf5=_0x1dade9;super(),this[_0x3f8cf5(0x167)]=_0x317f5b,this[_0x3f8cf5(0x1a3)]=_0x460efd,this[_0x3f8cf5(0x1b5)]=_0x4c7ac7;}[_0x1dade9(0x16e)](){const _0x3a4d84=_0x1dade9;this[_0x3a4d84(0x1c8)]=new Map(),this[_0x3a4d84(0x14a)]=new Map(),this[_0x3a4d84(0x1d1)]=new Map(),this[_0x3a4d84(0x15c)]=new Map(),this[_0x3a4d84(0x1b1)]();}[_0x1dade9(0x15d)](){const _0x12259d=_0x1dade9;return this[_0x12259d(0x1c8)];}async[_0x1dade9(0x193)](_0x130005){const _0xf8f307=_0x1dade9,_0x450992=await this[_0xf8f307(0x1bd)](_0x130005);return this[_0xf8f307(0x183)](_0x450992),_0xf8f307(0x1d4)===_0x450992[_0xf8f307(0x1d5)]&&this[_0xf8f307(0x15b)](),_0x450992;}async[_0x1dade9(0x1bd)](_0x507481){const _0xca3939=_0x1dade9;if(_0x507481[_0xca3939(0x18b)]===_0x5b8b01[_0xca3939(0x151)]){const _0x2a07f8=await this[_0xca3939(0x167)][_0xca3939(0x166)](this[_0xca3939(0x1b5)],_0x507481['id'])[_0xca3939(0x1c3)]();return{'id':_0xca3939(0x1d4),'uiId':_0xca3939(0x1d4),'label':_0xca3939(0x18a),'type':_0x507481[_0xca3939(0x18b)],'content':_0x2a07f8[_0xca3939(0x1d9)],'hidden':this[_0xca3939(0x14a)][_0xca3939(0x19c)](_0xca3939(0x1d4)),'version':_0x2a07f8[_0xca3939(0x171)]?.[_0xca3939(0x158)],'sessionId':_0x2a07f8[_0xca3939(0x171)]?.[_0xca3939(0x178)]};}if(_0x507481[_0xca3939(0x18b)]===_0x5b8b01[_0xca3939(0x145)])return{'id':_0x507481['id'],'uiId':_0x507481['id'],'label':_0x507481[_0xca3939(0x1d8)]?.[_0xca3939(0x1b7)]||_0x507481['id'],'type':_0x5b8b01[_0xca3939(0x145)],'mcpServerName':_0x507481[_0xca3939(0x192)],'toolName':_0x507481[_0xca3939(0x159)],'data':_0x507481[_0xca3939(0x1d8)]||{}};return{'id':_0x507481['id'],'uiId':_0x507481['id'],'label':_0x507481[_0xca3939(0x171)]?.[_0xca3939(0x1b7)]||_0x507481[_0xca3939(0x1d0)]||_0x507481[_0xca3939(0x1b6)]||_0x507481['id'],'type':_0x507481[_0xca3939(0x18b)],..._0x507481?.[_0xca3939(0x171)]?.[_0xca3939(0x1c2)]?{'resourceId':_0x507481[_0xca3939(0x171)]?.[_0xca3939(0x1c2)]}:{}};}[_0x1dade9(0x14e)](){const _0x14e60c=_0x1dade9;return new Map(this[_0x14e60c(0x14a)]);}[_0x1dade9(0x14b)](_0x1ea40c){const _0x5e7688=_0x1dade9,_0x26a2fc=this[_0x5e7688(0x1c8)][_0x5e7688(0x163)](_0x1ea40c);_0x26a2fc?.[_0x5e7688(0x1a8)]||this[_0x5e7688(0x18e)](_0x1ea40c);}[_0x1dade9(0x1a5)](){const _0x32ecf1=_0x1dade9;if(0x0===this[_0x32ecf1(0x1c8)][_0x32ecf1(0x17a)])return;for(const _0x20b441 of this[_0x32ecf1(0x1c8)][_0x32ecf1(0x170)]())this[_0x32ecf1(0x18e)](_0x20b441[_0x32ecf1(0x1d5)]);const _0xccec41=this[_0x32ecf1(0x14a)][_0x32ecf1(0x163)](_0x32ecf1(0x1d4))||this[_0x32ecf1(0x1c8)][_0x32ecf1(0x163)](_0x32ecf1(0x1d4));_0xccec41&&this[_0x32ecf1(0x156)]({..._0xccec41,'isReadOnly':!0x0,'hidden':!0x0});}[_0x1dade9(0x173)](_0x1c0881){const _0x329b84=_0x1dade9;for(const _0x1816a7 of _0x1c0881[_0x329b84(0x170)]())this[_0x329b84(0x183)](_0x1816a7);this[_0x329b84(0x1a5)](),this[_0x329b84(0x1d6)](_0x329b84(0x1c6),{'contextItems':Array[_0x329b84(0x197)](this[_0x329b84(0x14e)]()[_0x329b84(0x170)]())});}[_0x1dade9(0x1ae)](){const _0x3764ea=_0x1dade9;return this[_0x3764ea(0x1c8)][_0x3764ea(0x19c)](_0x3764ea(0x1d4));}[_0x1dade9(0x157)](){const _0x21508e=_0x1dade9;return this[_0x21508e(0x1c8)][_0x21508e(0x19c)](_0x21508e(0x175));}[_0x1dade9(0x18f)](){const _0x56b83b=_0x1dade9;return this[_0x56b83b(0x14a)][_0x56b83b(0x19c)](_0x56b83b(0x1d4));}static[_0x1dade9(0x1ba)](_0x4e6d52){const _0x5e5ae8=_0x1dade9;return Array[_0x5e5ae8(0x197)](_0x4e6d52[_0x5e5ae8(0x170)]())[_0x5e5ae8(0x1b8)](_0x5bcf46=>this[_0x5e5ae8(0x17e)](_0x5bcf46))[_0x5e5ae8(0x1a0)](_0x25332b=>null!==_0x25332b);}async[_0x1dade9(0x1ac)](_0x1406d9,_0x43d401,_0x314205=_0x5b8b01[_0x1dade9(0x18d)]){const _0x570fe7=_0x1dade9,_0x25f9df=_0x570fe7(0x179)+_0x28e5ce();this[_0x570fe7(0x1d3)](_0x25f9df);try{await Promise[_0x570fe7(0x150)](_0x1406d9[_0x570fe7(0x1b8)](async _0x4cd1f2=>{const _0x15a740=_0x570fe7,_0xb9e179=_0x15a740(0x190)+_0x28e5ce(),_0x1e9532=_0x5b0833(_0x4cd1f2[_0x15a740(0x1d0)]);try{this[_0x15a740(0x156)]({'type':_0x314205,'label':_0x43d401?.[_0x15a740(0x1b7)]||_0x1e9532,'uiId':_0xb9e179,'resourceId':_0x43d401?.[_0x15a740(0x1c2)]},!0x0);const _0x2c96f5=this[_0x15a740(0x167)][_0x15a740(0x1a2)](this[_0x15a740(0x1b5)],_0x4cd1f2,_0x43d401);this[_0x15a740(0x1d1)][_0x15a740(0x186)](_0xb9e179,_0x2c96f5[_0x15a740(0x149)]);const {id:_0x176fb5}=await _0x2c96f5[_0x15a740(0x1a1)]();this[_0x15a740(0x1d1)][_0x15a740(0x161)](_0xb9e179),this[_0x15a740(0x16a)]({'type':_0x314205,'id':_0x176fb5,'label':_0x43d401?.[_0x15a740(0x1b7)]||_0x1e9532,'uiId':_0xb9e179,'resourceId':_0x43d401?.[_0x15a740(0x1c2)]},!0x1);}catch(_0x2e5b7b){this[_0x15a740(0x1d1)][_0x15a740(0x161)](_0xb9e179);if(!(_0x2e5b7b instanceof _0x5921d4&&_0x2e5b7b[_0x15a740(0x15a)][_0x15a740(0x1b2)](_0x15a740(0x177)))){const _0x318f15=_0x4b39b1[_0x15a740(0x163)](_0x2e5b7b[_0x15a740(0x174)])||_0x15a740(0x196),_0x59cf73=new _0x5921d4(_0x318f15,null,{'fileName':_0x1e9532,..._0x2e5b7b});_0x59cf73[_0x15a740(0x176)]=_0x2e5b7b[_0x15a740(0x176)],this[_0x15a740(0x1d6)](_0x15a740(0x1b0),{'error':_0x59cf73});}this[_0x15a740(0x18e)](_0xb9e179);}}));}finally{this[_0x570fe7(0x19f)](_0x25f9df);}}[_0x1dade9(0x172)](_0x5e4782){const _0x3ff49a=_0x1dade9;if(this[_0x3ff49a(0x1ae)]()||!this[_0x3ff49a(0x148)][_0x3ff49a(0x146)][_0x3ff49a(0x18c)])return;const _0x72f500={'type':_0x5b8b01[_0x3ff49a(0x151)],'uiId':_0x3ff49a(0x1d4),'label':_0x5e4782,'isReadOnly':this[_0x3ff49a(0x14a)][_0x3ff49a(0x19c)](_0x3ff49a(0x1d4)),'hidden':this[_0x3ff49a(0x14a)][_0x3ff49a(0x19c)](_0x3ff49a(0x1d4))};this[_0x3ff49a(0x156)](_0x72f500);}async[_0x1dade9(0x1c5)](_0x5b7e87,_0x4c4a8b,_0x4ebb86,_0x342713){const _0x4a8ab0=_0x1dade9,_0x37f005=this[_0x4a8ab0(0x1c8)][_0x4a8ab0(0x163)](_0x4a8ab0(0x1d4));if(_0x37f005&&_0x5b7e87){_0x37f005[_0x4a8ab0(0x175)]=_0x342713?_0x342713[_0x4a8ab0(0x1b8)](_0x55fab3=>({'start':_0x55fab3[_0x4a8ab0(0x1a7)],'end':_0x55fab3[_0x4a8ab0(0x1bf)]})):[];try{if(_0x37f005[_0x4a8ab0(0x158)]===_0x4c4a8b)return;const {id:_0x3b6920}=await this[_0x4a8ab0(0x167)][_0x4a8ab0(0x187)](this[_0x4a8ab0(0x1b5)],_0x5b7e87,{'version':_0x4c4a8b,'sessionId':_0x4ebb86})[_0x4a8ab0(0x1a1)]();_0x37f005['id']=_0x3b6920,_0x37f005[_0x4a8ab0(0x1d9)]=_0x5b7e87,_0x37f005[_0x4a8ab0(0x158)]=_0x4c4a8b,_0x37f005[_0x4a8ab0(0x178)]=_0x4ebb86;}catch(_0x3a90dd){const _0x14d594=new _0x5921d4(_0x4a8ab0(0x1b3),null);_0x14d594[_0x4a8ab0(0x176)]=_0x3a90dd[_0x4a8ab0(0x176)],this[_0x4a8ab0(0x1d6)](_0x4a8ab0(0x1b0),{'error':_0x14d594});}}}[_0x1dade9(0x199)](_0x1f85ac){const _0x5aea1c=_0x1dade9;this[_0x5aea1c(0x156)]({'type':_0x5b8b01[_0x5aea1c(0x162)],'label':_0x1f85ac,'uiId':_0x5aea1c(0x175),'content':_0x1f85ac});}[_0x1dade9(0x14d)](){const _0x49bf44=_0x1dade9;this[_0x49bf44(0x18e)](_0x49bf44(0x175));}async[_0x1dade9(0x16f)](_0x450f63,_0x3e4783){const _0x363e1b=_0x1dade9,_0x461f1b=_0x363e1b(0x180)+_0x28e5ce();this[_0x363e1b(0x1d3)](_0x461f1b);const _0x3d285a=_0x363e1b(0x180)+_0x28e5ce();try{this[_0x363e1b(0x156)]({'type':_0x5b8b01[_0x363e1b(0x17c)],'label':_0x3e4783?.[_0x363e1b(0x1b7)]||_0x450f63,'uiId':_0x3d285a,'resourceId':_0x3e4783?.[_0x363e1b(0x1c2)]},!0x0);const _0x3307a5=this[_0x363e1b(0x167)][_0x363e1b(0x164)](this[_0x363e1b(0x1b5)],_0x450f63,_0x3e4783);this[_0x363e1b(0x1d1)][_0x363e1b(0x186)](_0x3d285a,_0x3307a5[_0x363e1b(0x149)]);const {id:_0x501fa5}=await _0x3307a5[_0x363e1b(0x1a1)]();this[_0x363e1b(0x1d1)][_0x363e1b(0x161)](_0x3d285a),this[_0x363e1b(0x16a)]({'type':_0x5b8b01[_0x363e1b(0x17c)],'id':_0x501fa5,'label':_0x3e4783?.[_0x363e1b(0x1b7)]||_0x450f63,'uiId':_0x3d285a,'resourceId':_0x3e4783?.[_0x363e1b(0x1c2)]},!0x1);}catch(_0x363ce5){this[_0x363e1b(0x1d1)][_0x363e1b(0x161)](_0x3d285a),(_0x363ce5[_0x363e1b(0x15a)][_0x363e1b(0x1b2)](_0x363e1b(0x177))||this[_0x363e1b(0x1d6)](_0x363e1b(0x1b0),{'error':new _0x5921d4(_0x363e1b(0x1ce),this,{'url':_0x450f63,'originalError':_0x363ce5}),'url':_0x450f63}),this[_0x363e1b(0x18e)](_0x3d285a));}finally{this[_0x363e1b(0x19f)](_0x461f1b);}}[_0x1dade9(0x19b)](_0x50bb48){const _0x1410d5=_0x1dade9;_0x50bb48['id']=_0x50bb48['id']??_0x28e5ce()[_0x1410d5(0x1bc)](0x0,0x15),this[_0x1410d5(0x1c8)][_0x1410d5(0x186)](_0x50bb48[_0x1410d5(0x1d5)],_0x50bb48),this[_0x1410d5(0x1d6)](_0x1410d5(0x1d2),{'contextItem':_0x50bb48,'isLoading':!0x1});}async[_0x1dade9(0x1ad)](_0x22e0b8,_0x3dec2a,_0x4615a4){const _0x2c56c0=_0x1dade9,_0xa926e4=this[_0x2c56c0(0x148)][_0x2c56c0(0x17b)][_0x2c56c0(0x194)](_0xa713c9=>_0xa713c9['id']===_0x22e0b8);if(!_0xa926e4)return this[_0x2c56c0(0x1d6)](_0x2c56c0(0x1b0),{'error':new _0x5921d4(_0x2c56c0(0x155),this,{'sourceId':_0x22e0b8}),'sourceId':_0x22e0b8}),[];try{const _0x45f2f1=(await _0xa926e4[_0x2c56c0(0x17f)](_0x3dec2a))[_0x2c56c0(0x1b8)](_0x44a19b=>{const _0x2114e3=_0x2c56c0,_0x440d35=this[_0x2114e3(0x17d)](_0x44a19b['id']);return{..._0x44a19b,'isInContext':_0x440d35};});return _0xa926e4[_0x2c56c0(0x19e)]=_0x45f2f1,this[_0x2c56c0(0x1d6)](_0x2c56c0(0x1c0),{'sourceId':_0x22e0b8,'source':_0xa926e4,'resources':_0x45f2f1,'uid':_0x4615a4}),_0x45f2f1;}catch(_0x47e478){return this[_0x2c56c0(0x1d6)](_0x2c56c0(0x1b0),{'error':new _0x5921d4(_0x2c56c0(0x1bb),this,{'sourceId':_0x22e0b8,'originalError':_0x47e478}),'sourceId':_0x22e0b8,'sourceLabel':_0xa926e4[_0x2c56c0(0x1b7)]}),[];}}async[_0x1dade9(0x1d7)](_0x2abefe,_0x118656){const _0x2f2dd2=_0x1dade9;if(this[_0x2f2dd2(0x17d)](_0x118656['id']))return;let _0x3329c3=_0x118656[_0x2f2dd2(0x1d8)];if(!_0x3329c3&&_0x2abefe[_0x2f2dd2(0x1c1)])try{_0x3329c3=await _0x2abefe[_0x2f2dd2(0x1c1)](_0x118656['id']);}catch(_0x3b9027){return void this[_0x2f2dd2(0x1d6)](_0x2f2dd2(0x1b0),{'error':new _0x5921d4(_0x2f2dd2(0x16d),this,{'resourceId':_0x118656['id'],'sourceId':_0x2abefe['id'],'originalError':_0x3b9027}),'resourceId':_0x118656['id'],'sourceId':_0x2abefe['id']});}if(_0x3329c3)switch(_0x118656[_0x2f2dd2(0x18b)]){case _0x5b8b01[_0x2f2dd2(0x17c)]:if(_0x2f2dd2(0x185)!=typeof _0x3329c3)return void this[_0x2f2dd2(0x1d6)](_0x2f2dd2(0x1b0),{'error':new _0x5921d4(_0x2f2dd2(0x184),this,{'resourceId':_0x118656['id'],'sourceId':_0x2abefe['id'],'expectedType':_0x2f2dd2(0x185),'actualType':typeof _0x3329c3}),'resourceId':_0x118656['id'],'sourceId':_0x2abefe['id']});await this[_0x2f2dd2(0x16f)](_0x3329c3,{'label':_0x118656[_0x2f2dd2(0x1b7)],'resourceId':_0x118656['id']});break;case _0x5b8b01[_0x2f2dd2(0x18d)]:if(!(_0x3329c3 instanceof File))return void this[_0x2f2dd2(0x1d6)](_0x2f2dd2(0x1b0),{'error':new _0x5921d4(_0x2f2dd2(0x184),this,{'resourceId':_0x118656['id'],'sourceId':_0x2abefe['id'],'expectedType':_0x2f2dd2(0x168),'actualType':typeof _0x3329c3}),'resourceId':_0x118656['id'],'sourceId':_0x2abefe['id']});await this[_0x2f2dd2(0x1ac)]([_0x3329c3],{'label':_0x118656[_0x2f2dd2(0x1b7)],'resourceId':_0x118656['id']});break;case _0x5b8b01[_0x2f2dd2(0x15e)]:if(_0x2f2dd2(0x1cb)!=typeof _0x3329c3||!(_0x2f2dd2(0x1d9)in _0x3329c3)||!(_0x2f2dd2(0x18b)in _0x3329c3))return void this[_0x2f2dd2(0x1d6)](_0x2f2dd2(0x1b0),{'error':new _0x5921d4(_0x2f2dd2(0x184),this,{'resourceId':_0x118656['id'],'sourceId':_0x2abefe['id'],'expectedType':_0x2f2dd2(0x1a4),'actualType':typeof _0x3329c3}),'resourceId':_0x118656['id'],'sourceId':_0x2abefe['id']});_0x3329c3=AIChatContext[_0x2f2dd2(0x1ca)](_0x3329c3,_0x118656[_0x2f2dd2(0x1b7)]),await this[_0x2f2dd2(0x1ac)]([_0x3329c3],{'label':_0x118656[_0x2f2dd2(0x1b7)],'resourceId':_0x118656['id']},_0x5b8b01[_0x2f2dd2(0x15e)]);break;case _0x5b8b01[_0x2f2dd2(0x145)]:break;default:this[_0x2f2dd2(0x1d6)](_0x2f2dd2(0x1b0),{'error':new _0x5921d4(_0x2f2dd2(0x1b9),this,{'resourceId':_0x118656['id'],'sourceId':_0x2abefe['id'],'resourceType':_0x118656[_0x2f2dd2(0x18b)]}),'resourceId':_0x118656['id'],'sourceId':_0x2abefe['id']});}else this[_0x2f2dd2(0x1d6)](_0x2f2dd2(0x1b0),{'error':new _0x5921d4(_0x2f2dd2(0x1aa),this,{'resourceId':_0x118656['id'],'sourceId':_0x2abefe['id']}),'resourceId':_0x118656['id'],'sourceId':_0x2abefe['id']});}static[_0x1dade9(0x1ca)](_0x14a238,_0x3166d5){const _0x51511c=_0x1dade9;switch(_0x14a238[_0x51511c(0x18b)]){case _0x507e3f[_0x51511c(0x1ab)]:return new File([_0x14a238[_0x51511c(0x1d9)]],_0x3166d5,{'type':_0x51511c(0x1c7)});case _0x507e3f[_0x51511c(0x160)]:return new File([_0x14a238[_0x51511c(0x1d9)]],_0x3166d5,{'type':_0x51511c(0x195)});default:return new File([_0x14a238[_0x51511c(0x1d9)]],_0x3166d5,{'type':_0x51511c(0x1be)});}}static[_0x1dade9(0x17e)](_0x51169d){const _0x497f68=_0x1dade9;switch(_0x51169d[_0x497f68(0x18b)]){case _0x5b8b01[_0x497f68(0x18d)]:return{'type':_0x5b8b01[_0x497f68(0x18d)],'id':_0x51169d['id']};case _0x5b8b01[_0x497f68(0x17c)]:return{'type':_0x5b8b01[_0x497f68(0x17c)],'id':_0x51169d['id']};case _0x5b8b01[_0x497f68(0x151)]:return{'type':_0x5b8b01[_0x497f68(0x151)],'id':_0x51169d['id'],..._0x51169d[_0x497f68(0x175)]?.[_0x497f68(0x1c4)]&&{'selection':_0x51169d[_0x497f68(0x175)]}};case _0x5b8b01[_0x497f68(0x15e)]:return{'type':_0x5b8b01[_0x497f68(0x18d)],'id':_0x51169d['id']};case _0x5b8b01[_0x497f68(0x145)]:{const _0x2f8214=_0x51169d;return{'type':_0x5b8b01[_0x497f68(0x145)],'mcpServerName':_0x2f8214[_0x497f68(0x192)],'toolName':_0x2f8214[_0x497f68(0x159)],'data':_0x2f8214[_0x497f68(0x1d8)],'id':_0x2f8214['id']};}default:return null;}}[_0x1dade9(0x156)](_0x4efbf8,_0x5d4af6=!0x1){const _0x3ddf7b=_0x1dade9;if(this[_0x3ddf7b(0x1c8)][_0x3ddf7b(0x186)](_0x4efbf8[_0x3ddf7b(0x1d5)],_0x4efbf8),_0x4efbf8[_0x3ddf7b(0x153)]||this[_0x3ddf7b(0x1d6)](_0x3ddf7b(0x1d2),{'contextItem':_0x4efbf8,'isLoading':_0x5d4af6}),_0x3ddf7b(0x1d4)===_0x4efbf8[_0x3ddf7b(0x1d5)]&&this[_0x3ddf7b(0x15b)](),_0x4efbf8[_0x3ddf7b(0x1c2)]){const _0x358a54=this[_0x3ddf7b(0x191)](_0x4efbf8[_0x3ddf7b(0x1c2)]);_0x358a54&&_0x358a54[_0x3ddf7b(0x198)](_0x32144d=>{const _0x3c2ada=_0x3ddf7b;this[_0x3c2ada(0x181)](_0x32144d,_0x4efbf8[_0x3c2ada(0x1c2)],!0x0);});}}[_0x1dade9(0x18e)](_0x25e359){const _0x5efbb6=_0x1dade9,_0x55845f=this[_0x5efbb6(0x1c8)][_0x5efbb6(0x163)](_0x25e359),_0x386c8f=this[_0x5efbb6(0x1d1)][_0x5efbb6(0x163)](_0x25e359);if(_0x386c8f&&(_0x386c8f[_0x5efbb6(0x16c)](),this[_0x5efbb6(0x1d1)][_0x5efbb6(0x161)](_0x25e359)),_0x55845f?.[_0x5efbb6(0x1c2)]){const _0x1e6e52=this[_0x5efbb6(0x191)](_0x55845f[_0x5efbb6(0x1c2)]);_0x1e6e52&&_0x1e6e52[_0x5efbb6(0x198)](_0x5fb372=>{const _0x465ac0=_0x5efbb6;this[_0x465ac0(0x181)](_0x5fb372,_0x55845f[_0x465ac0(0x1c2)],!0x1);});}this[_0x5efbb6(0x1c8)][_0x5efbb6(0x161)](_0x25e359),this[_0x5efbb6(0x1d6)](_0x5efbb6(0x169),{'uiId':_0x25e359,'type':_0x55845f?.[_0x5efbb6(0x18b)]}),_0x5efbb6(0x1d4)===_0x25e359&&this[_0x5efbb6(0x15b)]();}[_0x1dade9(0x16a)](_0x5bfea1,_0x263b75){const _0x4d0c6c=_0x1dade9;if(this[_0x4d0c6c(0x1c8)][_0x4d0c6c(0x19c)](_0x5bfea1[_0x4d0c6c(0x1d5)])&&(this[_0x4d0c6c(0x1c8)][_0x4d0c6c(0x186)](_0x5bfea1[_0x4d0c6c(0x1d5)],_0x5bfea1),this[_0x4d0c6c(0x1d6)](_0x4d0c6c(0x1cc),{'contextItem':_0x5bfea1,'isLoading':_0x263b75}),_0x5bfea1[_0x4d0c6c(0x1c2)])){const _0xfe384=this[_0x4d0c6c(0x191)](_0x5bfea1[_0x4d0c6c(0x1c2)]);_0xfe384&&_0xfe384[_0x4d0c6c(0x198)](_0x18ee32=>{const _0x6140b6=_0x4d0c6c;this[_0x6140b6(0x181)](_0x18ee32,_0x5bfea1[_0x6140b6(0x1c2)],!0x0);});}}[_0x1dade9(0x183)](_0xe6ca00){const _0xfd2dd3=_0x1dade9;this[_0xfd2dd3(0x14a)][_0xfd2dd3(0x186)](_0xe6ca00[_0xfd2dd3(0x1d5)],_0xe6ca00);}[_0x1dade9(0x1b1)](){const _0x38e44c=_0x1dade9;this[_0x38e44c(0x148)]={'document':{'enabled':!0x1!==this[_0x38e44c(0x1a3)]?.[_0x38e44c(0x146)]?.[_0x38e44c(0x18c)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x38e44c(0x1a3)]?.[_0x38e44c(0x147)]?.[_0x38e44c(0x18c)]},'files':{'enabled':!0x1!==this[_0x38e44c(0x1a3)]?.[_0x38e44c(0x1c9)]?.[_0x38e44c(0x18c)]},'sources':this[_0x38e44c(0x1a9)](),'customItems':this[_0x38e44c(0x1a3)]?.[_0x38e44c(0x14f)]?.[_0x38e44c(0x1b8)](_0x9cd7db=>({..._0x9cd7db,'enabled':!0x0}))??[]},this[_0x38e44c(0x1d6)](_0x38e44c(0x152),{'options':this[_0x38e44c(0x148)]});}[_0x1dade9(0x1a9)](){const _0x10eda6=_0x1dade9;return this[_0x10eda6(0x1a3)]?.[_0x10eda6(0x17b)]?.[_0x10eda6(0x1b8)](_0x7dd0e8=>({..._0x7dd0e8,'resources':[]}))??[];}[_0x1dade9(0x15b)](){const _0x2e2aa2=_0x1dade9,_0x1aeabc=this[_0x2e2aa2(0x1ae)]()||this[_0x2e2aa2(0x18f)]();this[_0x2e2aa2(0x148)][_0x2e2aa2(0x146)][_0x2e2aa2(0x1b4)]=_0x1aeabc,this[_0x2e2aa2(0x1d6)](_0x2e2aa2(0x152),{'options':this[_0x2e2aa2(0x148)]});}[_0x1dade9(0x17d)](_0x39b330){const _0x49205e=_0x1dade9;for(const _0x9f61f0 of this[_0x49205e(0x1c8)][_0x49205e(0x170)]())if(_0x9f61f0[_0x49205e(0x1c2)]===_0x39b330)return!0x0;for(const _0x406e55 of this[_0x49205e(0x14a)][_0x49205e(0x170)]())if(_0x406e55[_0x49205e(0x1c2)]===_0x39b330)return!0x0;return!0x1;}[_0x1dade9(0x191)](_0x515b95){const _0x5cf821=_0x1dade9,_0x215f3e=[];for(const _0x47c991 of this[_0x5cf821(0x148)][_0x5cf821(0x17b)]){_0x47c991[_0x5cf821(0x19e)][_0x5cf821(0x194)](_0x2b3773=>_0x2b3773['id']===_0x515b95)&&_0x215f3e[_0x5cf821(0x16b)](_0x47c991['id']);}return 0x0===_0x215f3e[_0x5cf821(0x1c4)]?null:_0x215f3e;}[_0x1dade9(0x181)](_0x5aa0e5,_0x9c620a,_0x33d433){const _0x50d579=_0x1dade9,_0x18c63b=this[_0x50d579(0x148)][_0x50d579(0x17b)][_0x50d579(0x194)](_0x5add5e=>_0x5add5e['id']===_0x5aa0e5);if(!_0x18c63b)return;const _0x33bc4d=_0x18c63b[_0x50d579(0x19e)][_0x50d579(0x194)](_0x3e4114=>_0x3e4114['id']===_0x9c620a);_0x33bc4d&&(_0x33bc4d[_0x50d579(0x14c)]=_0x33d433,this[_0x50d579(0x1d6)](_0x50d579(0x15f),{'sourceId':_0x5aa0e5,'resourceId':_0x9c620a,'isInContext':_0x33d433}));}[_0x1dade9(0x1d3)](_0x498268){const _0x40d469=_0x1dade9;this[_0x40d469(0x15c)][_0x40d469(0x186)](_0x498268,!0x0),this[_0x40d469(0x15c)][_0x40d469(0x17a)]&&this[_0x40d469(0x1d6)](_0x40d469(0x1a6),{'isUploadInProgress':!0x0});}[_0x1dade9(0x19f)](_0x4bfdc8){const _0x4edb46=_0x1dade9;this[_0x4edb46(0x15c)][_0x4edb46(0x161)](_0x4bfdc8),0x0===this[_0x4edb46(0x15c)][_0x4edb46(0x17a)]&&this[_0x4edb46(0x1d6)](_0x4edb46(0x1a6),{'isUploadInProgress':!0x1});}}
23
+ function _0x2aeb(_0x513dbb,_0xa0971){const _0x280d37=_0x280d();return _0x2aeb=function(_0x2aebba,_0x438f3b){_0x2aebba=_0x2aebba-0x112;let _0x2288ec=_0x280d37[_0x2aebba];return _0x2288ec;},_0x2aeb(_0x513dbb,_0xa0971);}const _0x23bb7d=_0x2aeb;(function(_0x300c9e,_0x1b74e8){const _0x4e6072=_0x2aeb,_0x20bb58=_0x300c9e();while(!![]){try{const _0x166e5b=-parseInt(_0x4e6072(0x12c))/0x1*(parseInt(_0x4e6072(0x18b))/0x2)+-parseInt(_0x4e6072(0x114))/0x3*(parseInt(_0x4e6072(0x177))/0x4)+-parseInt(_0x4e6072(0x149))/0x5*(-parseInt(_0x4e6072(0x11c))/0x6)+-parseInt(_0x4e6072(0x151))/0x7*(parseInt(_0x4e6072(0x185))/0x8)+parseInt(_0x4e6072(0x1a1))/0x9+parseInt(_0x4e6072(0x131))/0xa+parseInt(_0x4e6072(0x181))/0xb;if(_0x166e5b===_0x1b74e8)break;else _0x20bb58['push'](_0x20bb58['shift']());}catch(_0x25bf23){_0x20bb58['push'](_0x20bb58['shift']());}}}(_0x280d,0x655f6));import{CKEditorError as _0x4becd9,ObservableMixin as _0x4642a2,uid as _0x39d101}from'ckeditor5/src/utils.js';import{AIContextItemType as _0x1e64cf,AIContextTextResourceType as _0x177591}from'../../aicore/model/aicontext.js';function _0x280d(){const _0x3844f9=['stack','toolName','selection','populateFromMessage','updateCurrentDocument','_pendingContextItems','HTML','_convertTextResourceToFile','size','9372561DeuaNJ','uploadDocument','forEach','ai-chat-source-not-found','568712qgmGZV','ai-request-aborted','abortController','FILE','_finishUploadOperation','label','2mfXeFc','_ownerId','isReadOnly','TOOL','ai-chat-resource-load-failed','push','error','isHidden','isInContext','urls','sources','sessionId','Current\x20document','text/markdown','_setAddContextOptionsDefaultState','contextSent','_removeContextItem','_finishContextItemLoading','isCurrentDocumentInContext','startsWith','resources','set','2164473JNCFAd','files','url','content','mapContextItemsToRequestData','sourceResourcesLoaded','addResourceToContext','_getCustomSourcesInitialState','addSelectionToContext','3ulLZbq','_updateResourceInContextState','removeSelectionFromContext','resourceId','getDocument','_config','hidden','ai-chat-file-upload-failed','14286gdmrua','isCurrentDocumentInConversation','getPendingContextItems','getResources','start','ai-chat-context-invalid-data','values','contextItemAdded','TEXT','_isResourceInContext','substring','addToConversationContext','addCurrentDocumentToContext','data','customItems','version','735645WMAEfT','current-document','has','type','_mapContextItemToRequestData','6497870NTiBIB','_createContextItemFromContent','uploadProgressChanged','document','addUrlToContext','loadSourceResources','addFilesToContext','uploadFile','contextItemLoadingEnded','object\x20with\x20content\x20and\x20type\x20properties','file-','files-','abort','from','resourceStateChanged','_addToConversationContextItem','delete','filter','_startUploadOperation','SELECTION','File','uploadUrl','_conversationContextItems','all','1165XXbfVW','object','fire','_toggleAddCurrentDocumentOptionVisibility','ai-chat-resource-no-data','getSentContextItems','clearPendingContextItems','message','77RoQINF','ai-chat-url-upload-failed','text/html','code','MARKDOWN','uiId','isSelectionInContext','init','_connector','mcpServerName','_ongoingUploadOperations','getData','contextItemRemoved','_addContextOptionsState','attributes','_ongoingUploads','text/plain','addToolItemToContext','getId','ai-chat-source-resources-load-failed','ai-chat-context-unsupported-type','DOCUMENT','_addContextItem','removeFromContext','addContextOptionsChanged','fetchDocument','url-','map','length','_findSourceIdsByResourceId','URL','get','ai-chat-document-upload-failed','name','end','find','enabled','string','1457048OADCxx'];_0x280d=function(){return _0x3844f9;};return _0x280d();}import{escape as _0x13c15d}from'es-toolkit/compat';import{errorsMap as _0x29f0af}from'../../errorsmap.js';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x23bb7d(0x123),_0x23bb7d(0x15d),_0x23bb7d(0x139),_0x23bb7d(0x19a),_0x23bb7d(0x191),_0x23bb7d(0x169),_0x23bb7d(0x1a6),_0x23bb7d(0x13f),_0x23bb7d(0x133)];export class AIChatContext extends _0x4642a2(){[_0x23bb7d(0x159)];[_0x23bb7d(0x119)];[_0x23bb7d(0x18c)];constructor({connector:_0x1f5d48,config:_0x239981,ownerId:_0x23dc9e}){const _0x41b3dd=_0x23bb7d;super(),this[_0x41b3dd(0x159)]=_0x1f5d48,this[_0x41b3dd(0x119)]=_0x239981,this[_0x41b3dd(0x18c)]=_0x23dc9e;}[_0x23bb7d(0x158)](){const _0x44fe23=_0x23bb7d;this[_0x44fe23(0x17d)]=new Map(),this[_0x44fe23(0x147)]=new Map(),this[_0x44fe23(0x160)]=new Map(),this[_0x44fe23(0x15b)]=new Map(),this[_0x44fe23(0x199)]();}[_0x23bb7d(0x11e)](){const _0x5e6abb=_0x23bb7d;return this[_0x5e6abb(0x17d)];}async[_0x23bb7d(0x17b)](_0x494dba){const _0x6c2171=_0x23bb7d,_0x197f17=await this[_0x6c2171(0x132)](_0x494dba);return this[_0x6c2171(0x140)](_0x197f17),_0x6c2171(0x12d)===_0x197f17[_0x6c2171(0x156)]&&this[_0x6c2171(0x14c)](),_0x197f17;}async[_0x23bb7d(0x132)](_0x1d2bfc){const _0x360e3b=_0x23bb7d;if(_0x1d2bfc[_0x360e3b(0x12f)]===_0x1e64cf[_0x360e3b(0x166)]){const _0x429cc5=await this[_0x360e3b(0x159)][_0x360e3b(0x16a)](this[_0x360e3b(0x18c)],_0x1d2bfc['id'])[_0x360e3b(0x118)]();return{'id':_0x360e3b(0x12d),'uiId':_0x360e3b(0x12d),'label':_0x360e3b(0x197),'type':_0x1d2bfc[_0x360e3b(0x12f)],'content':_0x429cc5[_0x360e3b(0x1a4)],'hidden':this[_0x360e3b(0x147)][_0x360e3b(0x12e)](_0x360e3b(0x12d)),'version':_0x429cc5[_0x360e3b(0x15f)]?.[_0x360e3b(0x12b)],'sessionId':_0x429cc5[_0x360e3b(0x15f)]?.[_0x360e3b(0x196)]};}if(_0x1d2bfc[_0x360e3b(0x12f)]===_0x1e64cf[_0x360e3b(0x18e)])return{'id':_0x1d2bfc['id'],'uiId':_0x1d2bfc['id'],'label':_0x1d2bfc[_0x360e3b(0x129)]?.[_0x360e3b(0x18a)]||_0x1d2bfc['id'],'type':_0x1e64cf[_0x360e3b(0x18e)],'mcpServerName':_0x1d2bfc[_0x360e3b(0x15a)],'toolName':_0x1d2bfc[_0x360e3b(0x179)],'data':_0x1d2bfc[_0x360e3b(0x129)]||{}};return{'id':_0x1d2bfc['id'],'uiId':_0x1d2bfc['id'],'label':_0x1d2bfc[_0x360e3b(0x15f)]?.[_0x360e3b(0x18a)]||_0x1d2bfc[_0x360e3b(0x172)]||_0x1d2bfc[_0x360e3b(0x1a3)]||_0x1d2bfc['id'],'type':_0x1d2bfc[_0x360e3b(0x12f)],..._0x1d2bfc?.[_0x360e3b(0x15f)]?.[_0x360e3b(0x117)]?{'resourceId':_0x1d2bfc[_0x360e3b(0x15f)]?.[_0x360e3b(0x117)]}:{}};}[_0x23bb7d(0x14e)](){const _0x2d8929=_0x23bb7d;return new Map(this[_0x2d8929(0x147)]);}[_0x23bb7d(0x168)](_0x34a760){const _0x3fb904=_0x23bb7d,_0x346ba6=this[_0x3fb904(0x17d)][_0x3fb904(0x170)](_0x34a760);_0x346ba6?.[_0x3fb904(0x18d)]||this[_0x3fb904(0x19b)](_0x34a760);}[_0x23bb7d(0x14f)](){const _0x9ab5d2=_0x23bb7d;if(0x0===this[_0x9ab5d2(0x17d)][_0x9ab5d2(0x180)])return;for(const _0x1c00b0 of this[_0x9ab5d2(0x17d)][_0x9ab5d2(0x122)]())this[_0x9ab5d2(0x19b)](_0x1c00b0[_0x9ab5d2(0x156)]);const _0x2d24c9=this[_0x9ab5d2(0x147)][_0x9ab5d2(0x170)](_0x9ab5d2(0x12d))||this[_0x9ab5d2(0x17d)][_0x9ab5d2(0x170)](_0x9ab5d2(0x12d));_0x2d24c9&&this[_0x9ab5d2(0x167)]({..._0x2d24c9,'isReadOnly':!0x0,'hidden':!0x0});}[_0x23bb7d(0x127)](_0x281cc2){const _0xe22c37=_0x23bb7d;for(const _0x211798 of _0x281cc2[_0xe22c37(0x122)]())this[_0xe22c37(0x140)](_0x211798);this[_0xe22c37(0x14f)](),this[_0xe22c37(0x14b)](_0xe22c37(0x19a),{'contextItems':Array[_0xe22c37(0x13e)](this[_0xe22c37(0x14e)]()[_0xe22c37(0x122)]())});}[_0x23bb7d(0x19d)](){const _0xb4cba6=_0x23bb7d;return this[_0xb4cba6(0x17d)][_0xb4cba6(0x12e)](_0xb4cba6(0x12d));}[_0x23bb7d(0x157)](){const _0x1bf4a6=_0x23bb7d;return this[_0x1bf4a6(0x17d)][_0x1bf4a6(0x12e)](_0x1bf4a6(0x17a));}[_0x23bb7d(0x11d)](){const _0x1cce6c=_0x23bb7d;return this[_0x1cce6c(0x147)][_0x1cce6c(0x12e)](_0x1cce6c(0x12d));}static[_0x23bb7d(0x1a5)](_0x13bfbf){const _0x39b5ab=_0x23bb7d;return Array[_0x39b5ab(0x13e)](_0x13bfbf[_0x39b5ab(0x122)]())[_0x39b5ab(0x16c)](_0x1afba9=>this[_0x39b5ab(0x130)](_0x1afba9))[_0x39b5ab(0x142)](_0x111b62=>null!==_0x111b62);}async[_0x23bb7d(0x137)](_0x3c8d96,_0x41e577,_0x5c17c1=_0x1e64cf[_0x23bb7d(0x188)]){const _0x1f9067=_0x23bb7d,_0x218d97=_0x1f9067(0x13c)+_0x39d101();this[_0x1f9067(0x143)](_0x218d97);try{await Promise[_0x1f9067(0x148)](_0x3c8d96[_0x1f9067(0x16c)](async _0x302dfc=>{const _0x5b6bea=_0x1f9067,_0x1984a1=_0x5b6bea(0x13b)+_0x39d101(),_0x139258=_0x13c15d(_0x302dfc[_0x5b6bea(0x172)]);try{this[_0x5b6bea(0x167)]({'type':_0x5c17c1,'label':_0x41e577?.[_0x5b6bea(0x18a)]||_0x139258,'uiId':_0x1984a1,'resourceId':_0x41e577?.[_0x5b6bea(0x117)]},!0x0);const _0x11fbda=this[_0x5b6bea(0x159)][_0x5b6bea(0x138)](this[_0x5b6bea(0x18c)],_0x302dfc,_0x41e577);this[_0x5b6bea(0x160)][_0x5b6bea(0x1a0)](_0x1984a1,_0x11fbda[_0x5b6bea(0x187)]);const {id:_0x378c05}=await _0x11fbda[_0x5b6bea(0x163)]();this[_0x5b6bea(0x160)][_0x5b6bea(0x141)](_0x1984a1),this[_0x5b6bea(0x19c)]({'type':_0x5c17c1,'id':_0x378c05,'label':_0x41e577?.[_0x5b6bea(0x18a)]||_0x139258,'uiId':_0x1984a1,'resourceId':_0x41e577?.[_0x5b6bea(0x117)]},!0x1);}catch(_0x1ee820){this[_0x5b6bea(0x160)][_0x5b6bea(0x141)](_0x1984a1);if(!(_0x1ee820 instanceof _0x4becd9&&_0x1ee820[_0x5b6bea(0x150)][_0x5b6bea(0x19e)](_0x5b6bea(0x186)))){const _0x115d44=_0x29f0af[_0x5b6bea(0x170)](_0x1ee820[_0x5b6bea(0x154)])||_0x5b6bea(0x11b),_0x16dd37=new _0x4becd9(_0x115d44,null,{'fileName':_0x139258,..._0x1ee820});_0x16dd37[_0x5b6bea(0x178)]=_0x1ee820[_0x5b6bea(0x178)],this[_0x5b6bea(0x14b)](_0x5b6bea(0x191),{'error':_0x16dd37});}this[_0x5b6bea(0x19b)](_0x1984a1);}}));}finally{this[_0x1f9067(0x189)](_0x218d97);}}[_0x23bb7d(0x128)](_0x3b8dfb){const _0x1f5de2=_0x23bb7d;if(this[_0x1f5de2(0x19d)]()||!this[_0x1f5de2(0x15e)][_0x1f5de2(0x134)][_0x1f5de2(0x175)])return;const _0x24f5ae={'type':_0x1e64cf[_0x1f5de2(0x166)],'uiId':_0x1f5de2(0x12d),'label':_0x3b8dfb,'isReadOnly':this[_0x1f5de2(0x147)][_0x1f5de2(0x12e)](_0x1f5de2(0x12d)),'hidden':this[_0x1f5de2(0x147)][_0x1f5de2(0x12e)](_0x1f5de2(0x12d))};this[_0x1f5de2(0x167)](_0x24f5ae);}async[_0x23bb7d(0x17c)](_0xd4c5ca,_0x561213,_0x5125c5,_0x12df0b){const _0x4d4ef8=_0x23bb7d,_0x40dc42=this[_0x4d4ef8(0x17d)][_0x4d4ef8(0x170)](_0x4d4ef8(0x12d));if(_0x40dc42&&_0xd4c5ca){_0x40dc42[_0x4d4ef8(0x17a)]=_0x12df0b?_0x12df0b[_0x4d4ef8(0x16c)](_0x584564=>({'start':_0x584564[_0x4d4ef8(0x120)],'end':_0x584564[_0x4d4ef8(0x173)]})):[];try{if(_0x40dc42[_0x4d4ef8(0x12b)]===_0x561213)return;const {id:_0x460a36}=await this[_0x4d4ef8(0x159)][_0x4d4ef8(0x182)](this[_0x4d4ef8(0x18c)],_0xd4c5ca,{'version':_0x561213,'sessionId':_0x5125c5})[_0x4d4ef8(0x163)]();_0x40dc42['id']=_0x460a36,_0x40dc42[_0x4d4ef8(0x1a4)]=_0xd4c5ca,_0x40dc42[_0x4d4ef8(0x12b)]=_0x561213,_0x40dc42[_0x4d4ef8(0x196)]=_0x5125c5;}catch(_0x25a897){const _0x4c90fb=new _0x4becd9(_0x4d4ef8(0x171),null);_0x4c90fb[_0x4d4ef8(0x178)]=_0x25a897[_0x4d4ef8(0x178)],this[_0x4d4ef8(0x14b)](_0x4d4ef8(0x191),{'error':_0x4c90fb});}}}[_0x23bb7d(0x113)](_0xa6f23a){const _0xe25aab=_0x23bb7d;this[_0xe25aab(0x167)]({'type':_0x1e64cf[_0xe25aab(0x144)],'label':_0xa6f23a,'uiId':_0xe25aab(0x17a),'content':_0xa6f23a});}[_0x23bb7d(0x116)](){const _0x103582=_0x23bb7d;this[_0x103582(0x19b)](_0x103582(0x17a));}async[_0x23bb7d(0x135)](_0x3a4292,_0x107edc){const _0x2f5f77=_0x23bb7d,_0x1d9ed0=_0x2f5f77(0x16b)+_0x39d101();this[_0x2f5f77(0x143)](_0x1d9ed0);const _0x37cc77=_0x2f5f77(0x16b)+_0x39d101();try{this[_0x2f5f77(0x167)]({'type':_0x1e64cf[_0x2f5f77(0x16f)],'label':_0x107edc?.[_0x2f5f77(0x18a)]||_0x3a4292,'uiId':_0x37cc77,'resourceId':_0x107edc?.[_0x2f5f77(0x117)]},!0x0);const _0x4e120a=this[_0x2f5f77(0x159)][_0x2f5f77(0x146)](this[_0x2f5f77(0x18c)],_0x3a4292,_0x107edc);this[_0x2f5f77(0x160)][_0x2f5f77(0x1a0)](_0x37cc77,_0x4e120a[_0x2f5f77(0x187)]);const {id:_0x1e7131}=await _0x4e120a[_0x2f5f77(0x163)]();this[_0x2f5f77(0x160)][_0x2f5f77(0x141)](_0x37cc77),this[_0x2f5f77(0x19c)]({'type':_0x1e64cf[_0x2f5f77(0x16f)],'id':_0x1e7131,'label':_0x107edc?.[_0x2f5f77(0x18a)]||_0x3a4292,'uiId':_0x37cc77,'resourceId':_0x107edc?.[_0x2f5f77(0x117)]},!0x1);}catch(_0x40ad46){this[_0x2f5f77(0x160)][_0x2f5f77(0x141)](_0x37cc77),(_0x40ad46[_0x2f5f77(0x150)][_0x2f5f77(0x19e)](_0x2f5f77(0x186))||this[_0x2f5f77(0x14b)](_0x2f5f77(0x191),{'error':new _0x4becd9(_0x2f5f77(0x152),this,{'url':_0x3a4292,'originalError':_0x40ad46}),'url':_0x3a4292}),this[_0x2f5f77(0x19b)](_0x37cc77));}finally{this[_0x2f5f77(0x189)](_0x1d9ed0);}}[_0x23bb7d(0x162)](_0x28b1f0){const _0x230d0f=_0x23bb7d;_0x28b1f0['id']=_0x28b1f0['id']??_0x39d101()[_0x230d0f(0x126)](0x0,0x15),this[_0x230d0f(0x17d)][_0x230d0f(0x1a0)](_0x28b1f0[_0x230d0f(0x156)],_0x28b1f0),this[_0x230d0f(0x14b)](_0x230d0f(0x123),{'contextItem':_0x28b1f0,'isLoading':!0x1});}async[_0x23bb7d(0x136)](_0x1691d0,_0x262988,_0x2c7e0c){const _0x2150f2=_0x23bb7d,_0x3a2d80=this[_0x2150f2(0x15e)][_0x2150f2(0x195)][_0x2150f2(0x174)](_0x527225=>_0x527225['id']===_0x1691d0);if(!_0x3a2d80)return this[_0x2150f2(0x14b)](_0x2150f2(0x191),{'error':new _0x4becd9(_0x2150f2(0x184),this,{'sourceId':_0x1691d0}),'sourceId':_0x1691d0}),[];try{const _0x45f445=(await _0x3a2d80[_0x2150f2(0x11f)](_0x262988))[_0x2150f2(0x16c)](_0xf833e3=>{const _0x1541a0=_0x2150f2,_0x2fa12c=this[_0x1541a0(0x125)](_0xf833e3['id']);return{..._0xf833e3,'isInContext':_0x2fa12c};});return _0x3a2d80[_0x2150f2(0x19f)]=_0x45f445,this[_0x2150f2(0x14b)](_0x2150f2(0x1a6),{'sourceId':_0x1691d0,'source':_0x3a2d80,'resources':_0x45f445,'uid':_0x2c7e0c}),_0x45f445;}catch(_0x1c4cc6){return this[_0x2150f2(0x14b)](_0x2150f2(0x191),{'error':new _0x4becd9(_0x2150f2(0x164),this,{'sourceId':_0x1691d0,'originalError':_0x1c4cc6}),'sourceId':_0x1691d0,'sourceLabel':_0x3a2d80[_0x2150f2(0x18a)]}),[];}}async[_0x23bb7d(0x1a7)](_0x3f7434,_0x564795){const _0x5b704d=_0x23bb7d;if(this[_0x5b704d(0x125)](_0x564795['id']))return;let _0x23807d=_0x564795[_0x5b704d(0x129)];if(!_0x23807d&&_0x3f7434[_0x5b704d(0x15c)])try{_0x23807d=await _0x3f7434[_0x5b704d(0x15c)](_0x564795['id']);}catch(_0x350991){return void this[_0x5b704d(0x14b)](_0x5b704d(0x191),{'error':new _0x4becd9(_0x5b704d(0x18f),this,{'resourceId':_0x564795['id'],'sourceId':_0x3f7434['id'],'originalError':_0x350991}),'resourceId':_0x564795['id'],'sourceId':_0x3f7434['id']});}if(_0x23807d)switch(_0x564795[_0x5b704d(0x12f)]){case _0x1e64cf[_0x5b704d(0x16f)]:if(_0x5b704d(0x176)!=typeof _0x23807d)return void this[_0x5b704d(0x14b)](_0x5b704d(0x191),{'error':new _0x4becd9(_0x5b704d(0x121),this,{'resourceId':_0x564795['id'],'sourceId':_0x3f7434['id'],'expectedType':_0x5b704d(0x176),'actualType':typeof _0x23807d}),'resourceId':_0x564795['id'],'sourceId':_0x3f7434['id']});await this[_0x5b704d(0x135)](_0x23807d,{'label':_0x564795[_0x5b704d(0x18a)],'resourceId':_0x564795['id']});break;case _0x1e64cf[_0x5b704d(0x188)]:if(!(_0x23807d instanceof File))return void this[_0x5b704d(0x14b)](_0x5b704d(0x191),{'error':new _0x4becd9(_0x5b704d(0x121),this,{'resourceId':_0x564795['id'],'sourceId':_0x3f7434['id'],'expectedType':_0x5b704d(0x145),'actualType':typeof _0x23807d}),'resourceId':_0x564795['id'],'sourceId':_0x3f7434['id']});await this[_0x5b704d(0x137)]([_0x23807d],{'label':_0x564795[_0x5b704d(0x18a)],'resourceId':_0x564795['id']});break;case _0x1e64cf[_0x5b704d(0x124)]:if(_0x5b704d(0x14a)!=typeof _0x23807d||!(_0x5b704d(0x1a4)in _0x23807d)||!(_0x5b704d(0x12f)in _0x23807d))return void this[_0x5b704d(0x14b)](_0x5b704d(0x191),{'error':new _0x4becd9(_0x5b704d(0x121),this,{'resourceId':_0x564795['id'],'sourceId':_0x3f7434['id'],'expectedType':_0x5b704d(0x13a),'actualType':typeof _0x23807d}),'resourceId':_0x564795['id'],'sourceId':_0x3f7434['id']});_0x23807d=AIChatContext[_0x5b704d(0x17f)](_0x23807d,_0x564795[_0x5b704d(0x18a)]),await this[_0x5b704d(0x137)]([_0x23807d],{'label':_0x564795[_0x5b704d(0x18a)],'resourceId':_0x564795['id']},_0x1e64cf[_0x5b704d(0x124)]);break;case _0x1e64cf[_0x5b704d(0x18e)]:break;default:this[_0x5b704d(0x14b)](_0x5b704d(0x191),{'error':new _0x4becd9(_0x5b704d(0x165),this,{'resourceId':_0x564795['id'],'sourceId':_0x3f7434['id'],'resourceType':_0x564795[_0x5b704d(0x12f)]}),'resourceId':_0x564795['id'],'sourceId':_0x3f7434['id']});}else this[_0x5b704d(0x14b)](_0x5b704d(0x191),{'error':new _0x4becd9(_0x5b704d(0x14d),this,{'resourceId':_0x564795['id'],'sourceId':_0x3f7434['id']}),'resourceId':_0x564795['id'],'sourceId':_0x3f7434['id']});}static[_0x23bb7d(0x17f)](_0x27b470,_0x56f601){const _0x1cdd39=_0x23bb7d;switch(_0x27b470[_0x1cdd39(0x12f)]){case _0x177591[_0x1cdd39(0x155)]:return new File([_0x27b470[_0x1cdd39(0x1a4)]],_0x56f601,{'type':_0x1cdd39(0x198)});case _0x177591[_0x1cdd39(0x17e)]:return new File([_0x27b470[_0x1cdd39(0x1a4)]],_0x56f601,{'type':_0x1cdd39(0x153)});default:return new File([_0x27b470[_0x1cdd39(0x1a4)]],_0x56f601,{'type':_0x1cdd39(0x161)});}}static[_0x23bb7d(0x130)](_0x292772){const _0x1adf84=_0x23bb7d;switch(_0x292772[_0x1adf84(0x12f)]){case _0x1e64cf[_0x1adf84(0x188)]:return{'type':_0x1e64cf[_0x1adf84(0x188)],'id':_0x292772['id']};case _0x1e64cf[_0x1adf84(0x16f)]:return{'type':_0x1e64cf[_0x1adf84(0x16f)],'id':_0x292772['id']};case _0x1e64cf[_0x1adf84(0x166)]:return{'type':_0x1e64cf[_0x1adf84(0x166)],'id':_0x292772['id'],..._0x292772[_0x1adf84(0x17a)]?.[_0x1adf84(0x16d)]&&{'selection':_0x292772[_0x1adf84(0x17a)]}};case _0x1e64cf[_0x1adf84(0x124)]:return{'type':_0x1e64cf[_0x1adf84(0x188)],'id':_0x292772['id']};case _0x1e64cf[_0x1adf84(0x18e)]:{const _0x51b89c=_0x292772;return{'type':_0x1e64cf[_0x1adf84(0x18e)],'mcpServerName':_0x51b89c[_0x1adf84(0x15a)],'toolName':_0x51b89c[_0x1adf84(0x179)],'data':_0x51b89c[_0x1adf84(0x129)],'id':_0x51b89c['id']};}default:return null;}}[_0x23bb7d(0x167)](_0x4fa991,_0x556dd4=!0x1){const _0x8f760d=_0x23bb7d;if(this[_0x8f760d(0x17d)][_0x8f760d(0x1a0)](_0x4fa991[_0x8f760d(0x156)],_0x4fa991),_0x4fa991[_0x8f760d(0x11a)]||this[_0x8f760d(0x14b)](_0x8f760d(0x123),{'contextItem':_0x4fa991,'isLoading':_0x556dd4}),_0x8f760d(0x12d)===_0x4fa991[_0x8f760d(0x156)]&&this[_0x8f760d(0x14c)](),_0x4fa991[_0x8f760d(0x117)]){const _0x4a9280=this[_0x8f760d(0x16e)](_0x4fa991[_0x8f760d(0x117)]);_0x4a9280&&_0x4a9280[_0x8f760d(0x183)](_0x475bae=>{const _0x4fd39f=_0x8f760d;this[_0x4fd39f(0x115)](_0x475bae,_0x4fa991[_0x4fd39f(0x117)],!0x0);});}}[_0x23bb7d(0x19b)](_0x1982ec){const _0x29745d=_0x23bb7d,_0x5a5fcf=this[_0x29745d(0x17d)][_0x29745d(0x170)](_0x1982ec),_0x2d7dc4=this[_0x29745d(0x160)][_0x29745d(0x170)](_0x1982ec);if(_0x2d7dc4&&(_0x2d7dc4[_0x29745d(0x13d)](),this[_0x29745d(0x160)][_0x29745d(0x141)](_0x1982ec)),_0x5a5fcf?.[_0x29745d(0x117)]){const _0x1e1999=this[_0x29745d(0x16e)](_0x5a5fcf[_0x29745d(0x117)]);_0x1e1999&&_0x1e1999[_0x29745d(0x183)](_0x1cf7de=>{const _0x2a63a9=_0x29745d;this[_0x2a63a9(0x115)](_0x1cf7de,_0x5a5fcf[_0x2a63a9(0x117)],!0x1);});}this[_0x29745d(0x17d)][_0x29745d(0x141)](_0x1982ec),this[_0x29745d(0x14b)](_0x29745d(0x15d),{'uiId':_0x1982ec,'type':_0x5a5fcf?.[_0x29745d(0x12f)]}),_0x29745d(0x12d)===_0x1982ec&&this[_0x29745d(0x14c)]();}[_0x23bb7d(0x19c)](_0x20a697,_0x300b06){const _0x4bfdae=_0x23bb7d;if(this[_0x4bfdae(0x17d)][_0x4bfdae(0x12e)](_0x20a697[_0x4bfdae(0x156)])&&(this[_0x4bfdae(0x17d)][_0x4bfdae(0x1a0)](_0x20a697[_0x4bfdae(0x156)],_0x20a697),this[_0x4bfdae(0x14b)](_0x4bfdae(0x139),{'contextItem':_0x20a697,'isLoading':_0x300b06}),_0x20a697[_0x4bfdae(0x117)])){const _0x3fc009=this[_0x4bfdae(0x16e)](_0x20a697[_0x4bfdae(0x117)]);_0x3fc009&&_0x3fc009[_0x4bfdae(0x183)](_0x28fcca=>{const _0x44e20a=_0x4bfdae;this[_0x44e20a(0x115)](_0x28fcca,_0x20a697[_0x44e20a(0x117)],!0x0);});}}[_0x23bb7d(0x140)](_0x4d7557){const _0x10cca8=_0x23bb7d;this[_0x10cca8(0x147)][_0x10cca8(0x1a0)](_0x4d7557[_0x10cca8(0x156)],_0x4d7557);}[_0x23bb7d(0x199)](){const _0x5b623f=_0x23bb7d;this[_0x5b623f(0x15e)]={'document':{'enabled':!0x1!==this[_0x5b623f(0x119)]?.[_0x5b623f(0x134)]?.[_0x5b623f(0x175)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x5b623f(0x119)]?.[_0x5b623f(0x194)]?.[_0x5b623f(0x175)]},'files':{'enabled':!0x1!==this[_0x5b623f(0x119)]?.[_0x5b623f(0x1a2)]?.[_0x5b623f(0x175)]},'sources':this[_0x5b623f(0x112)](),'customItems':this[_0x5b623f(0x119)]?.[_0x5b623f(0x12a)]?.[_0x5b623f(0x16c)](_0x2f3213=>({..._0x2f3213,'enabled':!0x0}))??[]},this[_0x5b623f(0x14b)](_0x5b623f(0x169),{'options':this[_0x5b623f(0x15e)]});}[_0x23bb7d(0x112)](){const _0x13c219=_0x23bb7d;return this[_0x13c219(0x119)]?.[_0x13c219(0x195)]?.[_0x13c219(0x16c)](_0x5f06ae=>({..._0x5f06ae,'resources':[]}))??[];}[_0x23bb7d(0x14c)](){const _0x4b1f46=_0x23bb7d,_0x2be11a=this[_0x4b1f46(0x19d)]()||this[_0x4b1f46(0x11d)]();this[_0x4b1f46(0x15e)][_0x4b1f46(0x134)][_0x4b1f46(0x192)]=_0x2be11a,this[_0x4b1f46(0x14b)](_0x4b1f46(0x169),{'options':this[_0x4b1f46(0x15e)]});}[_0x23bb7d(0x125)](_0x1ed474){const _0xbad4d8=_0x23bb7d;for(const _0x46406e of this[_0xbad4d8(0x17d)][_0xbad4d8(0x122)]())if(_0x46406e[_0xbad4d8(0x117)]===_0x1ed474)return!0x0;for(const _0x3ea531 of this[_0xbad4d8(0x147)][_0xbad4d8(0x122)]())if(_0x3ea531[_0xbad4d8(0x117)]===_0x1ed474)return!0x0;return!0x1;}[_0x23bb7d(0x16e)](_0x51d461){const _0x5e0e81=_0x23bb7d,_0x4d9aa0=[];for(const _0x293c8c of this[_0x5e0e81(0x15e)][_0x5e0e81(0x195)]){_0x293c8c[_0x5e0e81(0x19f)][_0x5e0e81(0x174)](_0x1d74da=>_0x1d74da['id']===_0x51d461)&&_0x4d9aa0[_0x5e0e81(0x190)](_0x293c8c['id']);}return 0x0===_0x4d9aa0[_0x5e0e81(0x16d)]?null:_0x4d9aa0;}[_0x23bb7d(0x115)](_0x4bbdd4,_0xd19d48,_0x12a7f0){const _0x43ab5b=_0x23bb7d,_0x24451d=this[_0x43ab5b(0x15e)][_0x43ab5b(0x195)][_0x43ab5b(0x174)](_0x18c83c=>_0x18c83c['id']===_0x4bbdd4);if(!_0x24451d)return;const _0x7c35f5=_0x24451d[_0x43ab5b(0x19f)][_0x43ab5b(0x174)](_0x5a9e40=>_0x5a9e40['id']===_0xd19d48);_0x7c35f5&&(_0x7c35f5[_0x43ab5b(0x193)]=_0x12a7f0,this[_0x43ab5b(0x14b)](_0x43ab5b(0x13f),{'sourceId':_0x4bbdd4,'resourceId':_0xd19d48,'isInContext':_0x12a7f0}));}[_0x23bb7d(0x143)](_0x13cb28){const _0x3c195c=_0x23bb7d;this[_0x3c195c(0x15b)][_0x3c195c(0x1a0)](_0x13cb28,!0x0),this[_0x3c195c(0x15b)][_0x3c195c(0x180)]&&this[_0x3c195c(0x14b)](_0x3c195c(0x133),{'isUploadInProgress':!0x0});}[_0x23bb7d(0x189)](_0x17997b){const _0x455d7e=_0x23bb7d;this[_0x455d7e(0x15b)][_0x455d7e(0x141)](_0x17997b),0x0===this[_0x455d7e(0x15b)][_0x455d7e(0x180)]&&this[_0x455d7e(0x14b)](_0x455d7e(0x133),{'isUploadInProgress':!0x1});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1dc51d=_0x6343;function _0x6343(_0x2b2c5e,_0x1d556d){const _0x20ad60=_0x20ad();return _0x6343=function(_0x6343e4,_0x5b6b17){_0x6343e4=_0x6343e4-0x10e;let _0x1cd416=_0x20ad60[_0x6343e4];return _0x1cd416;},_0x6343(_0x2b2c5e,_0x1d556d);}(function(_0x32408b,_0x370877){const _0x3b3bfd=_0x6343,_0x3ed799=_0x32408b();while(!![]){try{const _0x17b69f=-parseInt(_0x3b3bfd(0x11e))/0x1*(-parseInt(_0x3b3bfd(0x17e))/0x2)+-parseInt(_0x3b3bfd(0x18a))/0x3*(parseInt(_0x3b3bfd(0x181))/0x4)+parseInt(_0x3b3bfd(0x151))/0x5*(parseInt(_0x3b3bfd(0x177))/0x6)+-parseInt(_0x3b3bfd(0x136))/0x7*(-parseInt(_0x3b3bfd(0x174))/0x8)+-parseInt(_0x3b3bfd(0x143))/0x9*(parseInt(_0x3b3bfd(0x14f))/0xa)+-parseInt(_0x3b3bfd(0x165))/0xb*(-parseInt(_0x3b3bfd(0x16d))/0xc)+-parseInt(_0x3b3bfd(0x15a))/0xd*(parseInt(_0x3b3bfd(0x16a))/0xe);if(_0x17b69f===_0x370877)break;else _0x3ed799['push'](_0x3ed799['shift']());}catch(_0x36adad){_0x3ed799['push'](_0x3ed799['shift']());}}}(_0x20ad,0x7fac8));import{CKEditorError as _0x3c6d59,EmitterMixin as _0x48b84a,logWarning as _0x3eb7d5}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x5aec34}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0xfd1c9f,AI_CONTEXT_MODEL_EVENT_NAMES as _0x116d7f}from'./aichatcontext.js';import{AICapabilities as _0x15b93e,CAPABILITIES_MODEL_EVENT_NAMES as _0x64eb2}from'../../aicore/model/aicapabilities.js';function _0x20ad(){const _0x1f0a7b=['selectedModel','populateFromMessage','getMessages','role','title','stop','createInteraction','updateCurrentDocument','removeInteraction','ai-chat-handle-user-interaction-start-failed','10MrNXEv','addResourceToContext','3260ZRmXia','fetchConversationMessages','setWebSearch','removeSelectionFromContext','ai-chat-conversation-set-model-not-available','isStarted','load','addFilesToContext','ai-chat-conversation-set-model-null','18369bomvlx','modelSelected','addUrlToContext','_extractContextItems','set','ai-chat-conversation-init-failed','stack','parse','getAll','_processMessagesToInteractions','addSelectionToContext','113927UEVFYS','init','length','chatContext','updateCurrentDocumentInContext','6286nAcdrU','setReasoning','getAvailableModels','1032aVUxnX','hasOwn','isCurrentDocumentInConversation','addCurrentDocumentToContext','toLowerCase','addToolItemToContext','start','8atgeCl','createReply','type','2634IDzUyg','isCurrentDocumentInContext','code','reasoning','ai-chat-conversation-already-started','push','chatModels','11636soPFce','setConversationTitle','getCurrentDocumentContext','3385748xialmI','ai-chat-handle-user-conversation-not-initialized','reset','fire','ai-chat-conversation-start-failed','content','getCapabilitiesConfig','splice','currentInteraction','3SkdHvX','setModel','appendContent','error','lastInteraction','conversationId','contextItems','user','group','conversationStarted','chatCapabilities','sources','webSearch','addToConversationContext','toolName','ai-chat-conversation-init-from-id-failed','message','find','modification','currentReply','text','toggleWebSearch','72faUWTe','getInteraction','interactionCreated','attributes','assistant','toggleReasoning','sessionId','loadSourceResources','ai-chat-conversation-start-no-model-selected','connector','isSelectionInContext','selectedModelId','_handleToolResultData','get','url','indexOf','getDocumentContext','isFromHistory','removeFromContext','capabilities','delegate','model','options','ai-chat-handle-user-interaction-already-in-progress','5904997DkZAsM','mcp-tool-result','startConversation','getEditor','getModel','prompt','fetchConversation','destroy','getConversation','isAvailable','conversationInitialized','getPendingContextItems','handleUserInteraction','3920139cEZXSs','interactions'];_0x20ad=function(){return _0x1f0a7b;};return _0x20ad();}import{AIChatInteraction as _0x2aad21}from'./aichatinteraction.js';import{errorsMap as _0x1cc055}from'../../errorsmap.js';export class AIChatConversation extends _0x48b84a(){['id'];[_0x1dc51d(0x156)]=!0x1;[_0x1dc51d(0x12f)];[_0x1dc51d(0x144)]=[];[_0x1dc51d(0x189)];[_0x1dc51d(0x145)];[_0x1dc51d(0x127)];[_0x1dc51d(0x134)];constructor(_0x418c75){const _0x51fa1e=_0x1dc51d;super(),this[_0x51fa1e(0x134)]=_0x418c75,this[_0x51fa1e(0x127)]=_0x418c75[_0x51fa1e(0x127)],this[_0x51fa1e(0x17d)]=_0x418c75[_0x51fa1e(0x17d)],this['id']=_0x418c75[_0x51fa1e(0x18f)],this[_0x51fa1e(0x12f)]=_0x418c75[_0x51fa1e(0x12f)];}async[_0x1dc51d(0x166)](_0x235d17){const _0x281d25=_0x1dc51d;try{this[_0x281d25(0x168)]=new _0xfd1c9f({'connector':this[_0x281d25(0x127)],'config':_0x235d17,'ownerId':this['id']}),this[_0x281d25(0x168)][_0x281d25(0x132)](..._0x116d7f)['to'](this),this[_0x281d25(0x168)][_0x281d25(0x166)](),this[_0x281d25(0x112)]=new _0x15b93e(),this[_0x281d25(0x112)][_0x281d25(0x132)](..._0x64eb2)['to'](this),this[_0x281d25(0x112)][_0x281d25(0x166)]();const _0x3d75ce=await this[_0x281d25(0x17d)][_0x281d25(0x16c)]();this[_0x281d25(0x184)](_0x281d25(0x140),{'availableModels':_0x3d75ce});const _0x570254=await this[_0x281d25(0x17d)][_0x281d25(0x13a)](this[_0x281d25(0x134)][_0x281d25(0x129)]);_0x570254&&await this[_0x281d25(0x18b)](_0x570254);}catch(_0x49312e){const _0xb72e3b=new _0x3c6d59(_0x281d25(0x15f),null,{'message':_0x49312e[_0x281d25(0x118)]||_0x49312e});_0xb72e3b[_0x281d25(0x160)]=_0x49312e[_0x281d25(0x160)],this[_0x281d25(0x184)](_0x281d25(0x18d),{'error':_0xb72e3b});}}async[_0x1dc51d(0x173)](){const _0x286f66=_0x1dc51d;if(this[_0x286f66(0x156)])throw new _0x3c6d59(_0x286f66(0x17b),null,{'conversation':this});if(!this[_0x286f66(0x145)])throw new _0x3c6d59(_0x286f66(0x126),null,{'conversation':this});try{const {id:_0x35096e}=await this[_0x286f66(0x127)][_0x286f66(0x138)](this['id'],this[_0x286f66(0x134)][_0x286f66(0x110)])[_0x286f66(0x13e)]();this['id']=_0x35096e,this[_0x286f66(0x156)]=!0x0,this[_0x286f66(0x184)](_0x286f66(0x111),{'conversationId':this['id'],'selectedModel':this[_0x286f66(0x145)]});}catch(_0x57d7ff){const _0x8be4fe=new _0x3c6d59(_0x286f66(0x185),null,{'message':_0x57d7ff[_0x286f66(0x118)],'conversationId':this['id']});throw _0x8be4fe[_0x286f66(0x160)]=_0x57d7ff[_0x286f66(0x160)],this[_0x286f66(0x184)](_0x286f66(0x18d),{'error':_0x8be4fe}),_0x8be4fe;}}async[_0x1dc51d(0x157)](_0x34ab86,_0x44dcb4){const _0x35f430=_0x1dc51d;try{const _0x51cbbf=await this[_0x35f430(0x127)][_0x35f430(0x13c)](_0x34ab86)[_0x35f430(0x13e)](),_0x762aa6=await this[_0x35f430(0x127)][_0x35f430(0x152)](_0x34ab86)[_0x35f430(0x147)](),_0x40d4c2=_0x762aa6[0x0][_0x35f430(0x133)];this[_0x35f430(0x156)]=!0x0,this['id']=_0x51cbbf['id'],_0x35f430(0x149)in _0x51cbbf?this[_0x35f430(0x184)](_0x35f430(0x17f),_0x51cbbf[_0x35f430(0x149)],!0x0):this[_0x35f430(0x184)](_0x35f430(0x17f),'',!0x0);const _0x272926=(await this[_0x35f430(0x17d)][_0x35f430(0x162)]())[_0x35f430(0x119)](_0x33850e=>_0x33850e['id'][_0x35f430(0x171)]()===_0x40d4c2[_0x35f430(0x171)]());return this[_0x35f430(0x145)]=_0x272926,this[_0x35f430(0x184)](_0x35f430(0x15b),{'selectedModel':_0x272926,'isDisabled':!0x0}),await this[_0x35f430(0x163)](_0x762aa6,_0x44dcb4,_0x40d4c2),this[_0x35f430(0x189)]=void 0x0,this;}catch(_0x24b835){const _0x3d5049=new _0x3c6d59(_0x35f430(0x117),null,{'message':_0x24b835[_0x35f430(0x118)],'conversationId':_0x34ab86});throw _0x3d5049[_0x35f430(0x160)]=_0x24b835[_0x35f430(0x160)],this[_0x35f430(0x184)](_0x35f430(0x18d),{'error':_0x3d5049}),_0x3d5049;}}async[_0x1dc51d(0x163)](_0x342de3,_0xe383ac,_0x127f6e){const _0x3ea599=_0x1dc51d;let _0x357fa3;for(const _0x4a2d25 of _0x342de3)if(_0x3ea599(0x10f)===_0x4a2d25[_0x3ea599(0x148)]){const _0x43d17c=await this[_0x3ea599(0x15d)](_0x4a2d25),_0x2ca50c={'isReasoningEnabled':Object[_0x3ea599(0x16e)](_0x4a2d25[_0x3ea599(0x131)],_0x3ea599(0x17a)),'isWebSearchEnabled':Object[_0x3ea599(0x16e)](_0x4a2d25[_0x3ea599(0x131)],_0x3ea599(0x114))};_0x357fa3=this[_0x3ea599(0x14b)]({'userMessage':_0x4a2d25[_0x3ea599(0x13b)],'contextItems':_0x43d17c,'capabilities':_0x2ca50c,'modelId':_0x127f6e,'attributes':_0x4a2d25[_0x3ea599(0x121)]}),this[_0x3ea599(0x189)]=_0x357fa3,this[_0x3ea599(0x168)][_0x3ea599(0x115)](this[_0x3ea599(0x189)][_0x3ea599(0x10e)]);}else{if(_0x3ea599(0x122)===_0x4a2d25[_0x3ea599(0x148)]&&_0x357fa3){const _0x193ec4=[];for(const _0x41e523 of _0x4a2d25[_0x3ea599(0x186)])switch(_0x41e523[_0x3ea599(0x176)]){case _0x3ea599(0x11c):case _0x3ea599(0x11a):{const _0x37a10e=_0x357fa3[_0x3ea599(0x12e)]()?.[_0x3ea599(0x124)]!==_0xe383ac;_0x357fa3[_0x3ea599(0x11b)]=_0x357fa3[_0x3ea599(0x175)]({'type':_0x41e523[_0x3ea599(0x176)],'isDone':!0x0,'interactionId':_0x357fa3['id'],'areActionsDisabled':_0x37a10e}),_0x357fa3[_0x3ea599(0x11b)][_0x3ea599(0x18c)](_0x41e523[_0x3ea599(0x186)]),_0x193ec4[_0x3ea599(0x167)]>0x0&&(_0x357fa3[_0x3ea599(0x11b)][_0x3ea599(0x113)]=_0x193ec4[_0x3ea599(0x188)](0x0));break;}case _0x3ea599(0x12c):_0x193ec4[_0x3ea599(0x17c)](_0x41e523);break;case _0x3ea599(0x137):{const {data:_0x138bfc,attributes:_0x296755}=JSON[_0x3ea599(0x161)](_0x41e523[_0x3ea599(0x186)]);_0x357fa3[_0x3ea599(0x12a)]({'toolName':_0x41e523[_0x3ea599(0x116)],'data':_0x138bfc,'attributes':_0x296755});break;}}}}}async[_0x1dc51d(0x15d)](_0x4dcd6b){const _0xadaf0b=_0x1dc51d,_0x28df93=new Map();if(!_0x4dcd6b[_0xadaf0b(0x186)])return _0x28df93;for(const _0x4c8f10 of _0x4dcd6b[_0xadaf0b(0x186)]){const _0x22787a=await this[_0xadaf0b(0x168)][_0xadaf0b(0x146)](_0x4c8f10);_0x22787a&&_0x28df93[_0xadaf0b(0x15e)](_0x22787a['id'],_0x22787a);}return _0x28df93;}async[_0x1dc51d(0x142)]({userMessage:_0x571aaf,attributes:_0xd68ddb}){const _0x129fed=_0x1dc51d;if(!this[_0x129fed(0x156)])throw new _0x3c6d59(_0x129fed(0x182),null,{'conversation':this});if(this[_0x129fed(0x189)])throw new _0x3c6d59(_0x129fed(0x135),null,{'conversation':this});try{const _0x2c3157=this[_0x129fed(0x168)][_0x129fed(0x141)](),_0x4cba0e=this[_0x129fed(0x112)][_0x129fed(0x187)](),_0x4fa735=this[_0x129fed(0x145)]['id'];this[_0x129fed(0x189)]=this[_0x129fed(0x14b)]({'userMessage':_0x571aaf,'contextItems':_0x2c3157,'capabilities':_0x4cba0e,'modelId':_0x4fa735,'attributes':_0xd68ddb}),await this[_0x129fed(0x189)][_0x129fed(0x173)](),this[_0x129fed(0x168)][_0x129fed(0x115)](this[_0x129fed(0x189)][_0x129fed(0x10e)]);}catch(_0x41c526){if(_0x41c526 instanceof _0x3c6d59)this[_0x129fed(0x184)](_0x129fed(0x18d),{'interactionId':this[_0x129fed(0x189)]?this[_0x129fed(0x189)]['id']:void 0x0,'error':_0x41c526});else{const _0x9157ff=_0x1cc055[_0x129fed(0x12b)](_0x41c526[_0x129fed(0x179)])||_0x129fed(0x14e);this[_0x129fed(0x184)](_0x129fed(0x18d),{'interactionId':this[_0x129fed(0x189)]?this[_0x129fed(0x189)]['id']:void 0x0,'error':new _0x3c6d59(_0x9157ff,null,{'error':_0x41c526})});}}finally{this[_0x129fed(0x189)]?.[_0x129fed(0x14a)](),this[_0x129fed(0x189)]=void 0x0;}}[_0x1dc51d(0x14b)]({userMessage:_0xd2aef2,contextItems:_0x25293b,capabilities:_0x14c405,modelId:_0x1ea949,attributes:_0x4bc754}){const _0x5e42da=_0x1dc51d,_0x448453=new _0x2aad21({'userMessage':_0xd2aef2,'contextItems':_0x25293b,'capabilities':_0x14c405,'conversationId':this['id'],'connector':this[_0x5e42da(0x127)],'editor':this[_0x5e42da(0x134)][_0x5e42da(0x139)]&&this[_0x5e42da(0x134)][_0x5e42da(0x139)](),'model':_0x1ea949,'attributes':_0x4bc754});return _0x448453[_0x5e42da(0x132)](..._0x5aec34)['to'](this),this[_0x5e42da(0x144)][_0x5e42da(0x17c)](_0x448453),this[_0x5e42da(0x184)](_0x5e42da(0x120),_0x448453),_0x448453;}[_0x1dc51d(0x11f)](_0x29f710){const _0x5753b1=_0x1dc51d;return this[_0x5753b1(0x144)][_0x5753b1(0x119)](_0x625ac5=>_0x625ac5['id']===_0x29f710);}[_0x1dc51d(0x14d)](_0x53a13f){const _0x2fcc98=_0x1dc51d,_0x55f2b2=this[_0x2fcc98(0x11f)](_0x53a13f);_0x55f2b2&&(_0x55f2b2[_0x2fcc98(0x13d)](),this[_0x2fcc98(0x144)][_0x2fcc98(0x188)](this[_0x2fcc98(0x144)][_0x2fcc98(0x12d)](_0x55f2b2),0x1));}get[_0x1dc51d(0x18e)](){const _0x116a8f=_0x1dc51d;return this[_0x116a8f(0x144)][this[_0x116a8f(0x144)][_0x116a8f(0x167)]-0x1];}[_0x1dc51d(0x170)](_0x2bcc56){const _0x504024=_0x1dc51d;this[_0x504024(0x168)][_0x504024(0x170)](_0x2bcc56);}async[_0x1dc51d(0x169)]({content:_0x2b624e,version:_0x2b56fb,sessionId:_0xb492ae,selections:_0x3a3e1a}){const _0x5a7572=_0x1dc51d;await this[_0x5a7572(0x168)][_0x5a7572(0x14c)](_0x2b624e,_0x2b56fb,_0xb492ae,_0x3a3e1a);}[_0x1dc51d(0x180)](){const _0x14cc59=_0x1dc51d;return this[_0x14cc59(0x189)]?.[_0x14cc59(0x12e)]()?.[_0x14cc59(0x186)]||'';}[_0x1dc51d(0x164)](_0x5299e4){const _0x1f9195=_0x1dc51d;this[_0x1f9195(0x168)][_0x1f9195(0x164)](_0x5299e4);}[_0x1dc51d(0x154)](){const _0x404fb5=_0x1dc51d;this[_0x404fb5(0x168)][_0x404fb5(0x154)]();}[_0x1dc51d(0x158)](_0x481a3b){const _0x596b4d=_0x1dc51d;this[_0x596b4d(0x168)][_0x596b4d(0x158)](_0x481a3b);}[_0x1dc51d(0x15c)](_0x36de0a){const _0x3f5c1f=_0x1dc51d;this[_0x3f5c1f(0x168)][_0x3f5c1f(0x15c)](_0x36de0a);}[_0x1dc51d(0x172)](_0x49359b){const _0x2c47b7=_0x1dc51d;this[_0x2c47b7(0x168)][_0x2c47b7(0x172)](_0x49359b);}[_0x1dc51d(0x150)](_0x3e63c7,_0x49d2e0){const _0x3af144=_0x1dc51d;this[_0x3af144(0x168)][_0x3af144(0x150)](_0x3e63c7,_0x49d2e0);}[_0x1dc51d(0x125)](_0x31e377,_0x2efb6e,_0x1991a1){const _0x478731=_0x1dc51d;return this[_0x478731(0x168)][_0x478731(0x125)](_0x31e377,_0x2efb6e,_0x1991a1);}[_0x1dc51d(0x130)](_0x1649c1){const _0x1d408d=_0x1dc51d;this[_0x1d408d(0x168)][_0x1d408d(0x130)](_0x1649c1);}[_0x1dc51d(0x153)](_0x30e6a4){const _0x2722d1=_0x1dc51d;this[_0x2722d1(0x112)][_0x2722d1(0x153)](_0x30e6a4);}[_0x1dc51d(0x11d)](){const _0x2d90b8=_0x1dc51d;this[_0x2d90b8(0x112)][_0x2d90b8(0x11d)]();}[_0x1dc51d(0x16b)](_0x297967){const _0x3c2b06=_0x1dc51d;this[_0x3c2b06(0x112)][_0x3c2b06(0x16b)](_0x297967);}[_0x1dc51d(0x123)](){const _0x4f2c38=_0x1dc51d;this[_0x4f2c38(0x112)][_0x4f2c38(0x123)]();}[_0x1dc51d(0x178)](){const _0x4e6a81=_0x1dc51d;return this[_0x4e6a81(0x168)][_0x4e6a81(0x178)]();}[_0x1dc51d(0x16f)](){const _0x53b547=_0x1dc51d;return this[_0x53b547(0x168)][_0x53b547(0x16f)]();}[_0x1dc51d(0x128)](){const _0x53bd79=_0x1dc51d;return this[_0x53bd79(0x168)][_0x53bd79(0x128)]();}async[_0x1dc51d(0x18b)](_0x33a544){const _0xfda723=_0x1dc51d;_0x33a544?!0x1===await this[_0xfda723(0x17d)][_0xfda723(0x13f)](_0x33a544)&&(_0x3eb7d5(_0xfda723(0x155),{'conversation':this,'model':_0x33a544}),_0x33a544=(await this[_0xfda723(0x17d)][_0xfda723(0x16c)]())[0x0]):(_0x3eb7d5(_0xfda723(0x159),{'conversation':this}),_0x33a544=(await this[_0xfda723(0x17d)][_0xfda723(0x16c)]())[0x0]),_0x33a544['id']!==this[_0xfda723(0x145)]?.['id']&&(this[_0xfda723(0x145)]=_0x33a544,this[_0xfda723(0x112)][_0xfda723(0x183)](),this[_0xfda723(0x184)](_0xfda723(0x15b),{'selectedModel':_0x33a544}));}}
23
+ function _0x4247(){const _0xcc373f=['ai-chat-handle-user-interaction-start-failed','length','mcp-tool-result','handleUserInteraction','addSelectionToContext','toggleReasoning','sessionId','updateCurrentDocument','isFromHistory','getModel','modelSelected','addToConversationContext','capabilities','conversationInitialized','selectedModel','user','start','setWebSearch','fetchConversation','20936emviET','getDocumentContext','prompt','url','addToolItemToContext','ai-chat-conversation-start-no-model-selected','code','removeSelectionFromContext','push','attributes','stop','getInteraction','getAvailableModels','chatModels','getEditor','ai-chat-conversation-already-started','isStarted','connector','getAll','toLowerCase','addResourceToContext','model','toolName','indexOf','getCapabilitiesConfig','updateCurrentDocumentInContext','options','interactions','ai-chat-conversation-start-failed','_handleToolResultData','isAvailable','23694FeIChP','reset','ai-chat-conversation-set-model-not-available','chatContext','createReply','type','addFilesToContext','init','group','_processMessagesToInteractions','selectedModelId','1263700RAJAHv','hasOwn','appendContent','6489380ELpLWn','removeFromContext','isCurrentDocumentInContext','toggleWebSearch','setReasoning','ai-chat-conversation-set-model-null','interactionCreated','3132yLzqBu','ai-chat-conversation-init-failed','title','_extractContextItems','isSelectionInContext','addUrlToContext','text','1719pOsJck','error','ai-chat-conversation-init-from-id-failed','setConversationTitle','6xQkJRc','splice','loadSourceResources','6yxEjOv','webSearch','currentInteraction','createInteraction','reasoning','content','getCurrentDocumentContext','get','startConversation','getPendingContextItems','contextItems','lastInteraction','addCurrentDocumentToContext','ai-chat-handle-user-conversation-not-initialized','populateFromMessage','destroy','assistant','load','parse','ai-chat-handle-user-interaction-already-in-progress','delegate','role','fire','modification','currentReply','1536157TFgVnZ','214LXrBJV','removeInteraction','conversationId','getMessages','isCurrentDocumentInConversation','fetchConversationMessages','sources','stack','find','6672Tlsmig','message','set','getConversation','chatCapabilities','setModel','365715lEKdJU','conversationStarted'];_0x4247=function(){return _0xcc373f;};return _0x4247();}const _0x264d7b=_0x5369;(function(_0x595b16,_0x31a966){const _0x1c7043=_0x5369,_0x53123f=_0x595b16();while(!![]){try{const _0x436da9=-parseInt(_0x1c7043(0xba))/0x1*(parseInt(_0x1c7043(0xb1))/0x2)+-parseInt(_0x1c7043(0x94))/0x3*(parseInt(_0x1c7043(0x7f))/0x4)+-parseInt(_0x1c7043(0xc0))/0x5+parseInt(_0x1c7043(0x97))/0x6*(parseInt(_0x1c7043(0xb0))/0x7)+-parseInt(_0x1c7043(0xd5))/0x8*(-parseInt(_0x1c7043(0x90))/0x9)+parseInt(_0x1c7043(0x82))/0xa+parseInt(_0x1c7043(0x74))/0xb*(parseInt(_0x1c7043(0x89))/0xc);if(_0x436da9===_0x31a966)break;else _0x53123f['push'](_0x53123f['shift']());}catch(_0x12e60f){_0x53123f['push'](_0x53123f['shift']());}}}(_0x4247,0x7ce2d));function _0x5369(_0x24fd76,_0x353426){const _0x424770=_0x4247();return _0x5369=function(_0x5369c4,_0x26b3e9){_0x5369c4=_0x5369c4-0x6d;let _0x6bd4d=_0x424770[_0x5369c4];return _0x6bd4d;},_0x5369(_0x24fd76,_0x353426);}import{CKEditorError as _0x312a30,EmitterMixin as _0xd47f38,logWarning as _0x1a6f60}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x5cdd0a}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x9f8e15,AI_CONTEXT_MODEL_EVENT_NAMES as _0x50710e}from'./aichatcontext.js';import{AICapabilities as _0x3e2e5d,CAPABILITIES_MODEL_EVENT_NAMES as _0x958d76}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x4ce4fb}from'./aichatinteraction.js';import{errorsMap as _0x458ca5}from'../../errorsmap.js';export class AIChatConversation extends _0xd47f38(){['id'];[_0x264d7b(0xe5)]=!0x1;[_0x264d7b(0xca)];[_0x264d7b(0x70)]=[];[_0x264d7b(0x99)];[_0x264d7b(0xd0)];[_0x264d7b(0xe6)];[_0x264d7b(0x6f)];constructor(_0xc5b745){const _0x466ab8=_0x264d7b;super(),this[_0x466ab8(0x6f)]=_0xc5b745,this[_0x466ab8(0xe6)]=_0xc5b745[_0x466ab8(0xe6)],this[_0x466ab8(0xe2)]=_0xc5b745[_0x466ab8(0xe2)],this['id']=_0xc5b745[_0x466ab8(0xb3)],this[_0x466ab8(0xca)]=_0xc5b745[_0x466ab8(0xca)];}async[_0x264d7b(0x7b)](_0x5c02a4){const _0x56a8c7=_0x264d7b;try{this[_0x56a8c7(0x77)]=new _0x9f8e15({'connector':this[_0x56a8c7(0xe6)],'config':_0x5c02a4,'ownerId':this['id']}),this[_0x56a8c7(0x77)][_0x56a8c7(0xab)](..._0x50710e)['to'](this),this[_0x56a8c7(0x77)][_0x56a8c7(0x7b)](),this[_0x56a8c7(0xbe)]=new _0x3e2e5d(),this[_0x56a8c7(0xbe)][_0x56a8c7(0xab)](..._0x958d76)['to'](this),this[_0x56a8c7(0xbe)][_0x56a8c7(0x7b)]();const _0x569b00=await this[_0x56a8c7(0xe2)][_0x56a8c7(0xe1)]();this[_0x56a8c7(0xad)](_0x56a8c7(0xcf),{'availableModels':_0x569b00});const _0x195807=await this[_0x56a8c7(0xe2)][_0x56a8c7(0xcb)](this[_0x56a8c7(0x6f)][_0x56a8c7(0x7e)]);_0x195807&&await this[_0x56a8c7(0xbf)](_0x195807);}catch(_0x45f960){const _0x1786fb=new _0x312a30(_0x56a8c7(0x8a),null,{'message':_0x45f960[_0x56a8c7(0xbb)]||_0x45f960});_0x1786fb[_0x56a8c7(0xb8)]=_0x45f960[_0x56a8c7(0xb8)],this[_0x56a8c7(0xad)](_0x56a8c7(0x91),{'error':_0x1786fb});}}async[_0x264d7b(0xd2)](){const _0xc53c90=_0x264d7b;if(this[_0xc53c90(0xe5)])throw new _0x312a30(_0xc53c90(0xe4),null,{'conversation':this});if(!this[_0xc53c90(0xd0)])throw new _0x312a30(_0xc53c90(0xda),null,{'conversation':this});try{const {id:_0xc4106a}=await this[_0xc53c90(0xe6)][_0xc53c90(0x9f)](this['id'],this[_0xc53c90(0x6f)][_0xc53c90(0x7c)])[_0xc53c90(0xbd)]();this['id']=_0xc4106a,this[_0xc53c90(0xe5)]=!0x0,this[_0xc53c90(0xad)](_0xc53c90(0xc1),{'conversationId':this['id'],'selectedModel':this[_0xc53c90(0xd0)]});}catch(_0x1ade23){const _0x1fab48=new _0x312a30(_0xc53c90(0x71),null,{'message':_0x1ade23[_0xc53c90(0xbb)],'conversationId':this['id']});throw _0x1fab48[_0xc53c90(0xb8)]=_0x1ade23[_0xc53c90(0xb8)],this[_0xc53c90(0xad)](_0xc53c90(0x91),{'error':_0x1fab48}),_0x1fab48;}}async[_0x264d7b(0xa8)](_0x16d7f0,_0x3da82f){const _0x21efa1=_0x264d7b;try{const _0x28ca3e=await this[_0x21efa1(0xe6)][_0x21efa1(0xd4)](_0x16d7f0)[_0x21efa1(0xbd)](),_0x551e47=await this[_0x21efa1(0xe6)][_0x21efa1(0xb6)](_0x16d7f0)[_0x21efa1(0xb4)](),_0x1d5270=_0x551e47[0x0][_0x21efa1(0xea)];this[_0x21efa1(0xe5)]=!0x0,this['id']=_0x28ca3e['id'],_0x21efa1(0x8b)in _0x28ca3e?this[_0x21efa1(0xad)](_0x21efa1(0x93),_0x28ca3e[_0x21efa1(0x8b)],!0x0):this[_0x21efa1(0xad)](_0x21efa1(0x93),'',!0x0);const _0x23b4a1=(await this[_0x21efa1(0xe2)][_0x21efa1(0xe7)]())[_0x21efa1(0xb9)](_0x24886a=>_0x24886a['id'][_0x21efa1(0xe8)]()===_0x1d5270[_0x21efa1(0xe8)]());return this[_0x21efa1(0xd0)]=_0x23b4a1,this[_0x21efa1(0xad)](_0x21efa1(0xcc),{'selectedModel':_0x23b4a1,'isDisabled':!0x0}),await this[_0x21efa1(0x7d)](_0x551e47,_0x3da82f,_0x1d5270),this[_0x21efa1(0x99)]=void 0x0,this;}catch(_0x57f991){const _0xefcff5=new _0x312a30(_0x21efa1(0x92),null,{'message':_0x57f991[_0x21efa1(0xbb)],'conversationId':_0x16d7f0});throw _0xefcff5[_0x21efa1(0xb8)]=_0x57f991[_0x21efa1(0xb8)],this[_0x21efa1(0xad)](_0x21efa1(0x91),{'error':_0xefcff5}),_0xefcff5;}}async[_0x264d7b(0x7d)](_0x3ed542,_0x3ee042,_0x2c7cd5){const _0x66a1d9=_0x264d7b;let _0x59fc6e;for(const _0x5c17f0 of _0x3ed542)if(_0x66a1d9(0xd1)===_0x5c17f0[_0x66a1d9(0xac)]){const _0x2e4bb9=await this[_0x66a1d9(0x8c)](_0x5c17f0),_0x181874={'isReasoningEnabled':Object[_0x66a1d9(0x80)](_0x5c17f0[_0x66a1d9(0xce)],_0x66a1d9(0x9b)),'isWebSearchEnabled':Object[_0x66a1d9(0x80)](_0x5c17f0[_0x66a1d9(0xce)],_0x66a1d9(0x98))};_0x59fc6e=this[_0x66a1d9(0x9a)]({'userMessage':_0x5c17f0[_0x66a1d9(0xd7)],'contextItems':_0x2e4bb9,'capabilities':_0x181874,'modelId':_0x2c7cd5,'attributes':_0x5c17f0[_0x66a1d9(0xde)]}),this[_0x66a1d9(0x99)]=_0x59fc6e,this[_0x66a1d9(0x77)][_0x66a1d9(0xcd)](this[_0x66a1d9(0x99)][_0x66a1d9(0xa1)]);}else{if(_0x66a1d9(0xa7)===_0x5c17f0[_0x66a1d9(0xac)]&&_0x59fc6e){const _0xbcc11d=[];for(const _0xf325a6 of _0x5c17f0[_0x66a1d9(0x9c)])switch(_0xf325a6[_0x66a1d9(0x79)]){case _0x66a1d9(0x8f):case _0x66a1d9(0xae):{const _0x33be6d=_0x59fc6e[_0x66a1d9(0xd6)]()?.[_0x66a1d9(0xc8)]!==_0x3ee042;_0x59fc6e[_0x66a1d9(0xaf)]=_0x59fc6e[_0x66a1d9(0x78)]({'type':_0xf325a6[_0x66a1d9(0x79)],'isDone':!0x0,'interactionId':_0x59fc6e['id'],'areActionsDisabled':_0x33be6d}),_0x59fc6e[_0x66a1d9(0xaf)][_0x66a1d9(0x81)](_0xf325a6[_0x66a1d9(0x9c)]),_0xbcc11d[_0x66a1d9(0xc3)]>0x0&&(_0x59fc6e[_0x66a1d9(0xaf)][_0x66a1d9(0xb7)]=_0xbcc11d[_0x66a1d9(0x95)](0x0));break;}case _0x66a1d9(0xd8):_0xbcc11d[_0x66a1d9(0xdd)](_0xf325a6);break;case _0x66a1d9(0xc4):{const {data:_0x4a9c77,attributes:_0x21fee8}=JSON[_0x66a1d9(0xa9)](_0xf325a6[_0x66a1d9(0x9c)]);_0x59fc6e[_0x66a1d9(0x72)]({'toolName':_0xf325a6[_0x66a1d9(0xeb)],'data':_0x4a9c77,'attributes':_0x21fee8});break;}}}}}async[_0x264d7b(0x8c)](_0x5296a7){const _0x1f7a27=_0x264d7b,_0x257139=new Map();if(!_0x5296a7[_0x1f7a27(0x9c)])return _0x257139;for(const _0x7efb60 of _0x5296a7[_0x1f7a27(0x9c)]){const _0x591869=await this[_0x1f7a27(0x77)][_0x1f7a27(0xa5)](_0x7efb60);_0x591869&&_0x257139[_0x1f7a27(0xbc)](_0x591869['id'],_0x591869);}return _0x257139;}async[_0x264d7b(0xc5)]({userMessage:_0x2685f6,attributes:_0x1ec341}){const _0x476af5=_0x264d7b;if(!this[_0x476af5(0xe5)])throw new _0x312a30(_0x476af5(0xa4),null,{'conversation':this});if(this[_0x476af5(0x99)])throw new _0x312a30(_0x476af5(0xaa),null,{'conversation':this});try{const _0x3bfe33=this[_0x476af5(0x77)][_0x476af5(0xa0)](),_0x3b6157=this[_0x476af5(0xbe)][_0x476af5(0x6d)](),_0x22211e=this[_0x476af5(0xd0)]['id'];this[_0x476af5(0x99)]=this[_0x476af5(0x9a)]({'userMessage':_0x2685f6,'contextItems':_0x3bfe33,'capabilities':_0x3b6157,'modelId':_0x22211e,'attributes':_0x1ec341}),await this[_0x476af5(0x99)][_0x476af5(0xd2)](),this[_0x476af5(0x77)][_0x476af5(0xcd)](this[_0x476af5(0x99)][_0x476af5(0xa1)]);}catch(_0xf47097){if(_0xf47097 instanceof _0x312a30)this[_0x476af5(0xad)](_0x476af5(0x91),{'interactionId':this[_0x476af5(0x99)]?this[_0x476af5(0x99)]['id']:void 0x0,'error':_0xf47097});else{const _0x285fac=_0x458ca5[_0x476af5(0x9e)](_0xf47097[_0x476af5(0xdb)])||_0x476af5(0xc2);this[_0x476af5(0xad)](_0x476af5(0x91),{'interactionId':this[_0x476af5(0x99)]?this[_0x476af5(0x99)]['id']:void 0x0,'error':new _0x312a30(_0x285fac,null,{'error':_0xf47097})});}}finally{this[_0x476af5(0x99)]?.[_0x476af5(0xdf)](),this[_0x476af5(0x99)]=void 0x0;}}[_0x264d7b(0x9a)]({userMessage:_0x5dd719,contextItems:_0x2b751f,capabilities:_0x4583dd,modelId:_0x3dc195,attributes:_0x650a96}){const _0x234ed3=_0x264d7b,_0x59642d=new _0x4ce4fb({'userMessage':_0x5dd719,'contextItems':_0x2b751f,'capabilities':_0x4583dd,'conversationId':this['id'],'connector':this[_0x234ed3(0xe6)],'editor':this[_0x234ed3(0x6f)][_0x234ed3(0xe3)]&&this[_0x234ed3(0x6f)][_0x234ed3(0xe3)](),'model':_0x3dc195,'attributes':_0x650a96});return _0x59642d[_0x234ed3(0xab)](..._0x5cdd0a)['to'](this),this[_0x234ed3(0x70)][_0x234ed3(0xdd)](_0x59642d),this[_0x234ed3(0xad)](_0x234ed3(0x88),_0x59642d),_0x59642d;}[_0x264d7b(0xe0)](_0x1318be){const _0x1b6f88=_0x264d7b;return this[_0x1b6f88(0x70)][_0x1b6f88(0xb9)](_0x57133d=>_0x57133d['id']===_0x1318be);}[_0x264d7b(0xb2)](_0x4858db){const _0x575ed0=_0x264d7b,_0x24b2ba=this[_0x575ed0(0xe0)](_0x4858db);_0x24b2ba&&(_0x24b2ba[_0x575ed0(0xa6)](),this[_0x575ed0(0x70)][_0x575ed0(0x95)](this[_0x575ed0(0x70)][_0x575ed0(0xec)](_0x24b2ba),0x1));}get[_0x264d7b(0xa2)](){const _0x3455fe=_0x264d7b;return this[_0x3455fe(0x70)][this[_0x3455fe(0x70)][_0x3455fe(0xc3)]-0x1];}[_0x264d7b(0xa3)](_0x27e6e7){const _0x18d46b=_0x264d7b;this[_0x18d46b(0x77)][_0x18d46b(0xa3)](_0x27e6e7);}async[_0x264d7b(0x6e)]({content:_0x43879f,version:_0x240cfb,sessionId:_0x147283,selections:_0x3d63b5}){const _0x3d47bb=_0x264d7b;await this[_0x3d47bb(0x77)][_0x3d47bb(0xc9)](_0x43879f,_0x240cfb,_0x147283,_0x3d63b5);}[_0x264d7b(0x9d)](){const _0x1911d9=_0x264d7b;return this[_0x1911d9(0x99)]?.[_0x1911d9(0xd6)]()?.[_0x1911d9(0x9c)]||'';}[_0x264d7b(0xc6)](_0x563935){const _0x494065=_0x264d7b;this[_0x494065(0x77)][_0x494065(0xc6)](_0x563935);}[_0x264d7b(0xdc)](){const _0x116ae5=_0x264d7b;this[_0x116ae5(0x77)][_0x116ae5(0xdc)]();}[_0x264d7b(0x7a)](_0x552997){const _0x183ba7=_0x264d7b;this[_0x183ba7(0x77)][_0x183ba7(0x7a)](_0x552997);}[_0x264d7b(0x8e)](_0x330dd2){const _0x556e76=_0x264d7b;this[_0x556e76(0x77)][_0x556e76(0x8e)](_0x330dd2);}[_0x264d7b(0xd9)](_0x1e7cb0){const _0x269815=_0x264d7b;this[_0x269815(0x77)][_0x269815(0xd9)](_0x1e7cb0);}[_0x264d7b(0xe9)](_0x4d9220,_0x549a01){const _0x55e984=_0x264d7b;this[_0x55e984(0x77)][_0x55e984(0xe9)](_0x4d9220,_0x549a01);}[_0x264d7b(0x96)](_0x51bf7e,_0x151d9b,_0x19fb65){const _0x18ecfe=_0x264d7b;return this[_0x18ecfe(0x77)][_0x18ecfe(0x96)](_0x51bf7e,_0x151d9b,_0x19fb65);}[_0x264d7b(0x83)](_0x5ce79b){const _0x4f23bd=_0x264d7b;this[_0x4f23bd(0x77)][_0x4f23bd(0x83)](_0x5ce79b);}[_0x264d7b(0xd3)](_0x2369f9){const _0x1bb43d=_0x264d7b;this[_0x1bb43d(0xbe)][_0x1bb43d(0xd3)](_0x2369f9);}[_0x264d7b(0x85)](){const _0x513b6a=_0x264d7b;this[_0x513b6a(0xbe)][_0x513b6a(0x85)]();}[_0x264d7b(0x86)](_0xff8951){const _0x22a2c7=_0x264d7b;this[_0x22a2c7(0xbe)][_0x22a2c7(0x86)](_0xff8951);}[_0x264d7b(0xc7)](){const _0x37b340=_0x264d7b;this[_0x37b340(0xbe)][_0x37b340(0xc7)]();}[_0x264d7b(0x84)](){const _0x5477bc=_0x264d7b;return this[_0x5477bc(0x77)][_0x5477bc(0x84)]();}[_0x264d7b(0xb5)](){const _0x4c2cdb=_0x264d7b;return this[_0x4c2cdb(0x77)][_0x4c2cdb(0xb5)]();}[_0x264d7b(0x8d)](){const _0x2d6816=_0x264d7b;return this[_0x2d6816(0x77)][_0x2d6816(0x8d)]();}async[_0x264d7b(0xbf)](_0x594907){const _0x3845a3=_0x264d7b;_0x594907?!0x1===await this[_0x3845a3(0xe2)][_0x3845a3(0x73)](_0x594907)&&(_0x1a6f60(_0x3845a3(0x76),{'conversation':this,'model':_0x594907}),_0x594907=(await this[_0x3845a3(0xe2)][_0x3845a3(0xe1)]())[0x0]):(_0x1a6f60(_0x3845a3(0x87),{'conversation':this}),_0x594907=(await this[_0x3845a3(0xe2)][_0x3845a3(0xe1)]())[0x0]),_0x594907['id']!==this[_0x3845a3(0xd0)]?.['id']&&(this[_0x3845a3(0xd0)]=_0x594907,this[_0x3845a3(0xbe)][_0x3845a3(0x75)](),this[_0x3845a3(0xad)](_0x3845a3(0xcc),{'selectedModel':_0x594907}));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x3c29(_0x597bd7,_0x11d921){var _0x4da44d=_0x4da4();return _0x3c29=function(_0x3c2924,_0x37ca8c){_0x3c2924=_0x3c2924-0x18c;var _0x4d7527=_0x4da44d[_0x3c2924];return _0x4d7527;},_0x3c29(_0x597bd7,_0x11d921);}function _0x4da4(){var _0x472043=['current-document','getCapabilitiesRequestData','mapContextItemsToRequestData','12602907GZCKpV','30104rBQMNM','4873GXHCKe','userMessage','10002UpJesg','capabilities','137slPCuE','1490ukrztP','23532YEbUzP','attributes','conversationId','1477MxoIyH','queryAssistant','14434hzuCMs','137530tuuBZy','sendRequest','connector','5904024hcuCrp','getDocumentContext','get','model','contextItems'];_0x4da4=function(){return _0x472043;};return _0x4da4();}var _0x32d062=_0x3c29;(function(_0x16e4b3,_0x8c7665){var _0x572658=_0x3c29,_0xb84aa1=_0x16e4b3();while(!![]){try{var _0x2fc870=-parseInt(_0x572658(0x19d))/0x1*(parseInt(_0x572658(0x1a4))/0x2)+-parseInt(_0x572658(0x19f))/0x3+-parseInt(_0x572658(0x18f))/0x4+-parseInt(_0x572658(0x19e))/0x5*(parseInt(_0x572658(0x19b))/0x6)+-parseInt(_0x572658(0x1a2))/0x7*(parseInt(_0x572658(0x198))/0x8)+-parseInt(_0x572658(0x197))/0x9+parseInt(_0x572658(0x18c))/0xa*(parseInt(_0x572658(0x199))/0xb);if(_0x2fc870===_0x8c7665)break;else _0xb84aa1['push'](_0xb84aa1['shift']());}catch(_0x4251f0){_0xb84aa1['push'](_0xb84aa1['shift']());}}}(_0x4da4,0xe2c96));import{AICapabilities as _0x23a281}from'../../aicore/model/aicapabilities.js';import{AIInteraction as _0x5ac0b8}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x3d6dd3}from'./aichatcontext.js';export class AIChatInteraction extends _0x5ac0b8{[_0x32d062(0x19a)];[_0x32d062(0x1a1)];[_0x32d062(0x193)]=new Map();[_0x32d062(0x192)];[_0x32d062(0x1a0)];constructor(_0x643ab6){var _0x2880ff=_0x32d062;super(_0x643ab6),this[_0x2880ff(0x1a1)]=_0x643ab6[_0x2880ff(0x1a1)],this[_0x2880ff(0x193)]=_0x643ab6[_0x2880ff(0x193)],this[_0x2880ff(0x19c)]=_0x643ab6[_0x2880ff(0x19c)],this[_0x2880ff(0x19a)]=_0x643ab6[_0x2880ff(0x19a)],this[_0x2880ff(0x192)]=_0x643ab6[_0x2880ff(0x192)],this[_0x2880ff(0x1a0)]=_0x643ab6[_0x2880ff(0x1a0)];}async[_0x32d062(0x18d)](){var _0x279888=_0x32d062;return this[_0x279888(0x18e)][_0x279888(0x1a3)]({'message':this[_0x279888(0x19a)],'conversationId':this[_0x279888(0x1a1)],'parts':_0x3d6dd3[_0x279888(0x196)](this[_0x279888(0x193)]),'capabilities':_0x23a281[_0x279888(0x195)](this[_0x279888(0x19c)]),'model':this[_0x279888(0x192)],'attributes':this[_0x279888(0x1a0)]});}[_0x32d062(0x190)](){var _0x20ebc1=_0x32d062;return this[_0x20ebc1(0x193)][_0x20ebc1(0x191)](_0x20ebc1(0x194));}}
23
+ function _0x28ed(_0x18e201,_0x339cd9){var _0x325b6c=_0x325b();return _0x28ed=function(_0x28ed2a,_0x466d43){_0x28ed2a=_0x28ed2a-0x1ce;var _0x1723f4=_0x325b6c[_0x28ed2a];return _0x1723f4;},_0x28ed(_0x18e201,_0x339cd9);}var _0x19dc1f=_0x28ed;function _0x325b(){var _0x4ac066=['capabilities','get','connector','conversationId','getCapabilitiesRequestData','attributes','24111zDuZfj','contextItems','786932tdMFLr','3DgoEkn','592032niScat','987605PzcPdM','109134ydsCyV','userMessage','mapContextItemsToRequestData','1182696IOGqeM','model','sendRequest','getDocumentContext','current-document','queryAssistant','564928ftdCBk'];_0x325b=function(){return _0x4ac066;};return _0x325b();}(function(_0x22db0b,_0x51294d){var _0x5a2dae=_0x28ed,_0x51c6be=_0x22db0b();while(!![]){try{var _0x55aa45=-parseInt(_0x5a2dae(0x1d4))/0x1+-parseInt(_0x5a2dae(0x1da))/0x2+parseInt(_0x5a2dae(0x1d7))/0x3*(-parseInt(_0x5a2dae(0x1d6))/0x4)+parseInt(_0x5a2dae(0x1d9))/0x5+parseInt(_0x5a2dae(0x1dd))/0x6+parseInt(_0x5a2dae(0x1d8))/0x7+-parseInt(_0x5a2dae(0x1e3))/0x8;if(_0x55aa45===_0x51294d)break;else _0x51c6be['push'](_0x51c6be['shift']());}catch(_0x70aa71){_0x51c6be['push'](_0x51c6be['shift']());}}}(_0x325b,0x20842));import{AICapabilities as _0x37a38a}from'../../aicore/model/aicapabilities.js';import{AIInteraction as _0x507f36}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x46da8d}from'./aichatcontext.js';export class AIChatInteraction extends _0x507f36{[_0x19dc1f(0x1db)];[_0x19dc1f(0x1d1)];[_0x19dc1f(0x1d5)]=new Map();[_0x19dc1f(0x1de)];[_0x19dc1f(0x1d3)];constructor(_0x4b28ee){var _0x55064b=_0x19dc1f;super(_0x4b28ee),this[_0x55064b(0x1d1)]=_0x4b28ee[_0x55064b(0x1d1)],this[_0x55064b(0x1d5)]=_0x4b28ee[_0x55064b(0x1d5)],this[_0x55064b(0x1ce)]=_0x4b28ee[_0x55064b(0x1ce)],this[_0x55064b(0x1db)]=_0x4b28ee[_0x55064b(0x1db)],this[_0x55064b(0x1de)]=_0x4b28ee[_0x55064b(0x1de)],this[_0x55064b(0x1d3)]=_0x4b28ee[_0x55064b(0x1d3)];}async[_0x19dc1f(0x1df)](){var _0x962c75=_0x19dc1f;return this[_0x962c75(0x1d0)][_0x962c75(0x1e2)]({'message':this[_0x962c75(0x1db)],'conversationId':this[_0x962c75(0x1d1)],'parts':_0x46da8d[_0x962c75(0x1dc)](this[_0x962c75(0x1d5)]),'capabilities':_0x37a38a[_0x962c75(0x1d2)](this[_0x962c75(0x1ce)]),'model':this[_0x962c75(0x1de)],'attributes':this[_0x962c75(0x1d3)]});}[_0x19dc1f(0x1e0)](){var _0x1a965e=_0x19dc1f;return this[_0x1a965e(0x1d5)][_0x1a965e(0x1cf)](_0x1a965e(0x1e1));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x18f8c5=_0x5212;(function(_0x53bf76,_0x21ae32){const _0x1b53ff=_0x5212,_0xadfdd0=_0x53bf76();while(!![]){try{const _0x4d25a0=-parseInt(_0x1b53ff(0x14f))/0x1*(-parseInt(_0x1b53ff(0x157))/0x2)+-parseInt(_0x1b53ff(0x106))/0x3+parseInt(_0x1b53ff(0x126))/0x4*(-parseInt(_0x1b53ff(0x114))/0x5)+-parseInt(_0x1b53ff(0x141))/0x6+parseInt(_0x1b53ff(0x13f))/0x7*(parseInt(_0x1b53ff(0x111))/0x8)+-parseInt(_0x1b53ff(0x10a))/0x9+parseInt(_0x1b53ff(0x124))/0xa;if(_0x4d25a0===_0x21ae32)break;else _0xadfdd0['push'](_0xadfdd0['shift']());}catch(_0x3a47ff){_0xadfdd0['push'](_0xadfdd0['shift']());}}}(_0x153b,0xe4981));function _0x153b(){const _0x3de2f1=['availableActions','showNext','_state','_focusables','insertSuggestion','addMany','7qUZWgG','focusFirst','8006586TqFNGf','ck-ai-chat-balloon-main_state_','ck-ai-chat-balloon__toolbar-container','has','focusCycler','isShowChangesOn','keepErrors','shift\x20+\x20tab','hideError','execute','showError','div','_partToolbarView','full','459mtRkQq','isTrackChangesOn','tab','isVisible','_togglePartToolbarButtonsVisibility','_streamableContentView','destroy','setState','7302GscXPq','update','toggleRotatorButtonsVisibility','236727QffMjy','setButtonsVisibility','updateContent','fire','4357260SGrIOm','createCollection','add','showDiff','_createPreviousButtonView','_stateView','change:_state','8722984OWywOm','applySuggestion','bindTemplate','13605YtIsnz','focus','_createNextButtonView','render','_focusTracker','toggleShowChanges','AI_BALLOON_PREVIOUS_LABEL','change:isTrackChangesOn','showPrevious','ck-ai-chat-balloon-main','locale','AI_BALLOON_NEXT_LABEL','listenTo','rejectSuggestion','nextButtonView','_toolbarContainerView','2363210CuLBcl','previousButtonView','248ucNoqy','focusLast','togglePartToolbarEnabled','_errorView','pending','set','delegate','bind','toggleSuggestionDisplayMode','isEnabled','children','_miniToolbarView','setTemplate','_keystrokes','includes','showBlockingError','_config','_isErrorVisible','element'];_0x153b=function(){return _0x3de2f1;};return _0x153b();}import{FocusTracker as _0x3734a2,KeystrokeHandler as _0x4d5bd2}from'ckeditor5/src/utils.js';import{AISuggestionStreamableContentView as _0xaa1a57}from'../../aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js';function _0x5212(_0x26fb95,_0x2e6e6c){const _0x153b14=_0x153b();return _0x5212=function(_0x5212c3,_0x5ec989){_0x5212c3=_0x5212c3-0x105;let _0x553955=_0x153b14[_0x5212c3];return _0x553955;},_0x5212(_0x26fb95,_0x2e6e6c);}import{AISuggestionContentPartToolbarView as _0xbd253f}from'../../aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js';import{AIMiniToolbarView as _0x5c8a1f}from'../../aicore/ui/suggestioncontainer/aiminitoolbarview.js';import{AIBalloonView as _0x32a25f}from'../../aiballoon/ui/aiballoonview.js';import{ButtonView as _0x4703bc,FocusCycler as _0x4e7153,View as _0x1fcd82}from'ckeditor5/src/ui.js';import{AISuggestionContentPartStateView as _0x58b5fe}from'../../aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js';import{IconChevronDown as _0x2128fd,IconChevronUp as _0x1e068f}from'ckeditor5/src/icons.js';import{getTranslation as _0x1823c9}from'../../aicore/utils/common-translations.js';import'../../../theme/aichat/aichatballoon.css';export class AIChatBalloonView extends _0x32a25f{[_0x18f8c5(0x130)];[_0x18f8c5(0x122)];[_0x18f8c5(0x125)];[_0x18f8c5(0x145)];[_0x18f8c5(0x13c)];[_0x18f8c5(0x118)];[_0x18f8c5(0x133)];[_0x18f8c5(0x136)];[_0x18f8c5(0x154)];[_0x18f8c5(0x123)];[_0x18f8c5(0x14d)];[_0x18f8c5(0x10f)];[_0x18f8c5(0x131)];constructor(_0x3ce0b7,_0x3019c7){const _0x22792a=_0x18f8c5;super(_0x3ce0b7);const _0x55f8da=this[_0x22792a(0x113)];this[_0x22792a(0x12b)](_0x22792a(0x10d),!0x1),this[_0x22792a(0x12b)](_0x22792a(0x13b),_0x22792a(0x12a)),this[_0x22792a(0x118)]=new _0x3734a2(),this[_0x22792a(0x133)]=new _0x4d5bd2(),this[_0x22792a(0x13c)]=this[_0x22792a(0x10b)](),this[_0x22792a(0x145)]=new _0x4e7153({'focusables':this[_0x22792a(0x13c)],'focusTracker':this[_0x22792a(0x118)],'keystrokeHandler':this[_0x22792a(0x133)],'actions':{'focusPrevious':_0x22792a(0x148),'focusNext':_0x22792a(0x151)}}),this[_0x22792a(0x136)]=_0x3019c7,this[_0x22792a(0x122)]=this[_0x22792a(0x116)](),this[_0x22792a(0x125)]=this[_0x22792a(0x10e)](),this[_0x22792a(0x154)]=new _0xaa1a57(_0x3ce0b7),this[_0x22792a(0x14d)]=new _0xbd253f(_0x3ce0b7,_0x3019c7[_0x22792a(0x139)]),this[_0x22792a(0x14d)][_0x22792a(0x12c)](_0x22792a(0x112),_0x22792a(0x13d),_0x22792a(0x121))['to'](this),this[_0x22792a(0x153)](_0x3019c7),this[_0x22792a(0x10f)]=new _0x58b5fe(_0x3ce0b7),this[_0x22792a(0x10f)][_0x22792a(0x152)]=!0x1,this[_0x22792a(0x131)]=new _0x5c8a1f(_0x3ce0b7,{'showChanges':_0x22792a(0x14e)}),this[_0x22792a(0x131)][_0x22792a(0x12d)](_0x22792a(0x146))['to'](this,_0x22792a(0x10d)),this[_0x22792a(0x131)]['on'](_0x22792a(0x119),()=>{const _0x7ff1e2=_0x22792a;this[_0x7ff1e2(0x109)](_0x7ff1e2(0x12e));}),this[_0x22792a(0x123)]=new AIChatBalloonToolbarContainerView(_0x3ce0b7,[this[_0x22792a(0x14d)],this[_0x22792a(0x10f)],this[_0x22792a(0x131)]]),this[_0x22792a(0x130)]=this[_0x22792a(0x10b)]([this[_0x22792a(0x154)],this[_0x22792a(0x123)]]),this['on'](_0x22792a(0x110),(_0x4cad47,_0x421c81,_0x120c55,_0x46cc6d)=>{const _0x17eba4=_0x22792a;let _0x1c77f4,_0x5e083a;_0x17eba4(0x12a)===_0x46cc6d?(_0x1c77f4=this[_0x17eba4(0x14d)],_0x5e083a=this[_0x17eba4(0x10f)]):(_0x1c77f4=this[_0x17eba4(0x10f)],_0x5e083a=this[_0x17eba4(0x14d)]),this[_0x17eba4(0x10f)][_0x17eba4(0x156)](_0x120c55),_0x1c77f4[_0x17eba4(0x152)]=!0x1,_0x5e083a[_0x17eba4(0x152)]=!0x0;}),this[_0x22792a(0x132)]({'tag':_0x22792a(0x14c),'attributes':{'class':['ck',_0x22792a(0x11d),_0x55f8da['to'](_0x22792a(0x13b),_0x1f15e6=>_0x22792a(0x142)+_0x1f15e6)]},'children':this[_0x22792a(0x130)]}),this['on'](_0x22792a(0x11b),()=>{const _0x3f9f6d=_0x22792a;this[_0x3f9f6d(0x153)](_0x3019c7);});}[_0x18f8c5(0x117)](){const _0x5ac024=_0x18f8c5;super[_0x5ac024(0x117)](),this[_0x5ac024(0x122)][_0x5ac024(0x117)](),this[_0x5ac024(0x125)][_0x5ac024(0x117)](),this[_0x5ac024(0x118)][_0x5ac024(0x10c)](this[_0x5ac024(0x138)]),this[_0x5ac024(0x118)][_0x5ac024(0x10c)](this[_0x5ac024(0x122)]),this[_0x5ac024(0x118)][_0x5ac024(0x10c)](this[_0x5ac024(0x125)]),this[_0x5ac024(0x118)][_0x5ac024(0x10c)](this[_0x5ac024(0x131)]),this[_0x5ac024(0x118)][_0x5ac024(0x10c)](this[_0x5ac024(0x14d)]),this[_0x5ac024(0x133)][_0x5ac024(0x120)](this[_0x5ac024(0x138)]),this[_0x5ac024(0x133)][_0x5ac024(0x120)](this[_0x5ac024(0x122)][_0x5ac024(0x138)]),this[_0x5ac024(0x133)][_0x5ac024(0x120)](this[_0x5ac024(0x125)][_0x5ac024(0x138)]),this[_0x5ac024(0x13c)][_0x5ac024(0x13e)]([this[_0x5ac024(0x122)],this[_0x5ac024(0x125)],this[_0x5ac024(0x14d)],this[_0x5ac024(0x131)]]);}[_0x18f8c5(0x155)](){const _0x215fe5=_0x18f8c5;super[_0x215fe5(0x155)](),this[_0x215fe5(0x125)][_0x215fe5(0x155)](),this[_0x215fe5(0x122)][_0x215fe5(0x155)]();}[_0x18f8c5(0x115)](){const _0xd0b996=_0x18f8c5;this[_0xd0b996(0x145)][_0xd0b996(0x140)]();}[_0x18f8c5(0x127)](){const _0x40a2b8=_0x18f8c5;this[_0x40a2b8(0x145)][_0x40a2b8(0x127)]();}async[_0x18f8c5(0x108)](_0x56c9f7){const _0x48080a=_0x18f8c5;_0x56c9f7?.[_0x48080a(0x147)]||this[_0x48080a(0x149)](),await this[_0x48080a(0x154)][_0x48080a(0x158)](_0x56c9f7);}[_0x18f8c5(0x156)](_0x21671e){const _0x241b22=_0x18f8c5;this[_0x241b22(0x13b)]=_0x21671e;}[_0x18f8c5(0x14b)](_0x573335){const _0x59091b=_0x18f8c5;super[_0x59091b(0x14b)](_0x573335),this[_0x59091b(0x130)][_0x59091b(0x144)](this[_0x59091b(0x129)])||this[_0x59091b(0x130)][_0x59091b(0x10c)](this[_0x59091b(0x129)],0x0);}[_0x18f8c5(0x149)](){const _0x4078df=_0x18f8c5;this[_0x4078df(0x137)]&&(super[_0x4078df(0x149)](),this[_0x4078df(0x128)](!0x0));}[_0x18f8c5(0x135)](_0x7f4690){const _0x4d7fea=_0x18f8c5;super[_0x4d7fea(0x135)](_0x7f4690),this[_0x4d7fea(0x128)](!0x1);}[_0x18f8c5(0x105)](_0x401769){const _0x991ced=_0x18f8c5;this[_0x991ced(0x122)][_0x991ced(0x152)]=this[_0x991ced(0x125)][_0x991ced(0x152)]=_0x401769;}[_0x18f8c5(0x128)](_0x2ba31d){const _0x3e7753=_0x18f8c5;this[_0x3e7753(0x14d)][_0x3e7753(0x12f)]=_0x2ba31d;}[_0x18f8c5(0x153)]({showApplyButton:_0x3e17ef,showSuggestButton:_0x17fece}){const _0x234bb3=_0x18f8c5;_0x3e17ef=_0x3e17ef&&!this[_0x234bb3(0x150)]&&this[_0x234bb3(0x136)][_0x234bb3(0x139)][_0x234bb3(0x134)](_0x234bb3(0x112)),_0x17fece=_0x17fece&&this[_0x234bb3(0x136)][_0x234bb3(0x139)][_0x234bb3(0x134)](_0x234bb3(0x13d)),this[_0x234bb3(0x14d)][_0x234bb3(0x107)]({'showApplyButton':_0x3e17ef,'showSuggestButton':_0x17fece});}[_0x18f8c5(0x116)](){const _0x467772=_0x18f8c5,_0x32d0c5=new _0x4703bc(this[_0x467772(0x11e)]);return _0x32d0c5[_0x467772(0x12b)]({'icon':_0x2128fd,'label':_0x1823c9(this[_0x467772(0x11e)],_0x467772(0x11f)),'isVisible':!0x0}),_0x32d0c5['on'](_0x467772(0x14a),()=>{const _0x1822bf=_0x467772;this[_0x1822bf(0x109)](_0x1822bf(0x13a));}),_0x32d0c5;}[_0x18f8c5(0x10e)](){const _0x3b9a16=_0x18f8c5,_0x373c1f=new _0x4703bc(this[_0x3b9a16(0x11e)]);return _0x373c1f[_0x3b9a16(0x12b)]({'icon':_0x1e068f,'label':_0x1823c9(this[_0x3b9a16(0x11e)],_0x3b9a16(0x11a)),'isVisible':!0x0}),_0x373c1f['on'](_0x3b9a16(0x14a),()=>{const _0x47a7fc=_0x3b9a16;this[_0x47a7fc(0x109)](_0x47a7fc(0x11c));}),_0x373c1f;}}class AIChatBalloonToolbarContainerView extends _0x1fcd82{constructor(_0x28bfcf,_0x57e865){const _0x56fec7=_0x18f8c5;super(_0x28bfcf),this[_0x56fec7(0x132)]({'tag':_0x56fec7(0x14c),'attributes':{'class':[_0x56fec7(0x143)]},'children':_0x57e865});}}
23
+ const _0x3a3abe=_0x4f28;(function(_0x18800d,_0x3365e6){const _0x209281=_0x4f28,_0x35d220=_0x18800d();while(!![]){try{const _0x58ec96=-parseInt(_0x209281(0xb4))/0x1+-parseInt(_0x209281(0xb0))/0x2*(parseInt(_0x209281(0xcb))/0x3)+parseInt(_0x209281(0xbb))/0x4+parseInt(_0x209281(0x9d))/0x5+parseInt(_0x209281(0x9c))/0x6*(parseInt(_0x209281(0xb7))/0x7)+-parseInt(_0x209281(0xae))/0x8+parseInt(_0x209281(0xb1))/0x9;if(_0x58ec96===_0x3365e6)break;else _0x35d220['push'](_0x35d220['shift']());}catch(_0xbae290){_0x35d220['push'](_0x35d220['shift']());}}}(_0x2d93,0xab616));import{FocusTracker as _0x4fd42c,KeystrokeHandler as _0x399db5}from'ckeditor5/src/utils.js';import{AISuggestionStreamableContentView as _0x4d8c41}from'../../aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js';import{AISuggestionContentPartToolbarView as _0x177314}from'../../aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js';import{AIMiniToolbarView as _0x25f6f4}from'../../aicore/ui/suggestioncontainer/aiminitoolbarview.js';import{AIBalloonView as _0x5c6a5c}from'../../aiballoon/ui/aiballoonview.js';import{ButtonView as _0x364af1,FocusCycler as _0x3cf16c,View as _0x4b67a3}from'ckeditor5/src/ui.js';function _0x2d93(){const _0x51fa19=['focusCycler','tab','toggleSuggestionDisplayMode','change:_state','_focusTracker','applySuggestion','execute','setState','toggleRotatorButtonsVisibility','listenTo','updateContent','destroy','ck-ai-chat-balloon__toolbar-container','_state','showPrevious','pending','previousButtonView','div','add','_miniToolbarView','addMany','createCollection','_keystrokes','setButtonsVisibility','element','fire','showBlockingError','showError','_createPreviousButtonView','ck-ai-chat-balloon-main','delegate','hideError','36aHZmdI','3144890LRfKps','isEnabled','nextButtonView','children','render','_isErrorVisible','set','ck-ai-chat-balloon-main_state_','_streamableContentView','has','bind','_focusables','showNext','keepErrors','focusFirst','togglePartToolbarEnabled','_createNextButtonView','5648848iOwkVW','full','18zZrMoW','12267765wioDSJ','_partToolbarView','_togglePartToolbarButtonsVisibility','600085OlfsUe','includes','insertSuggestion','157948EQtOmZ','_config','focus','locale','3279148XuViPi','update','_toolbarContainerView','isShowChangesOn','isVisible','change:isTrackChangesOn','showDiff','toggleShowChanges','focusLast','shift\x20+\x20tab','AI_BALLOON_NEXT_LABEL','_stateView','availableActions','bindTemplate','rejectSuggestion','isTrackChangesOn','313023MaBJfb','AI_BALLOON_PREVIOUS_LABEL','_errorView','setTemplate'];_0x2d93=function(){return _0x51fa19;};return _0x2d93();}import{AISuggestionContentPartStateView as _0x5d0549}from'../../aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js';import{IconChevronDown as _0x2862e3,IconChevronUp as _0x452ba3}from'ckeditor5/src/icons.js';function _0x4f28(_0x39ff75,_0x3861a9){const _0x2d9337=_0x2d93();return _0x4f28=function(_0x4f282c,_0x5b7eb6){_0x4f282c=_0x4f282c-0x7e;let _0x5c24fb=_0x2d9337[_0x4f282c];return _0x5c24fb;},_0x4f28(_0x39ff75,_0x3861a9);}import{getTranslation as _0xc97ce3}from'../../aicore/utils/common-translations.js';import'../../../theme/aichat/aichatballoon.css';export class AIChatBalloonView extends _0x5c6a5c{[_0x3a3abe(0xa0)];[_0x3a3abe(0x9f)];[_0x3a3abe(0x8c)];[_0x3a3abe(0xcf)];[_0x3a3abe(0xa8)];[_0x3a3abe(0x80)];[_0x3a3abe(0x92)];[_0x3a3abe(0xb8)];[_0x3a3abe(0xa5)];[_0x3a3abe(0xbd)];[_0x3a3abe(0xb2)];[_0x3a3abe(0xc6)];[_0x3a3abe(0x8f)];constructor(_0x4c000c,_0x3364a9){const _0x72cf7a=_0x3a3abe;super(_0x4c000c);const _0x5bd6d0=this[_0x72cf7a(0xc8)];this[_0x72cf7a(0xa3)](_0x72cf7a(0xc1),!0x1),this[_0x72cf7a(0xa3)](_0x72cf7a(0x89),_0x72cf7a(0x8b)),this[_0x72cf7a(0x80)]=new _0x4fd42c(),this[_0x72cf7a(0x92)]=new _0x399db5(),this[_0x72cf7a(0xa8)]=this[_0x72cf7a(0x91)](),this[_0x72cf7a(0xcf)]=new _0x3cf16c({'focusables':this[_0x72cf7a(0xa8)],'focusTracker':this[_0x72cf7a(0x80)],'keystrokeHandler':this[_0x72cf7a(0x92)],'actions':{'focusPrevious':_0x72cf7a(0xc4),'focusNext':_0x72cf7a(0xd0)}}),this[_0x72cf7a(0xb8)]=_0x3364a9,this[_0x72cf7a(0x9f)]=this[_0x72cf7a(0xad)](),this[_0x72cf7a(0x8c)]=this[_0x72cf7a(0x98)](),this[_0x72cf7a(0xa5)]=new _0x4d8c41(_0x4c000c),this[_0x72cf7a(0xb2)]=new _0x177314(_0x4c000c,_0x3364a9[_0x72cf7a(0xc7)]),this[_0x72cf7a(0xb2)][_0x72cf7a(0x9a)](_0x72cf7a(0x81),_0x72cf7a(0xb6),_0x72cf7a(0xc9))['to'](this),this[_0x72cf7a(0xb3)](_0x3364a9),this[_0x72cf7a(0xc6)]=new _0x5d0549(_0x4c000c),this[_0x72cf7a(0xc6)][_0x72cf7a(0xbf)]=!0x1,this[_0x72cf7a(0x8f)]=new _0x25f6f4(_0x4c000c,{'showChanges':_0x72cf7a(0xaf)}),this[_0x72cf7a(0x8f)][_0x72cf7a(0xa7)](_0x72cf7a(0xbe))['to'](this,_0x72cf7a(0xc1)),this[_0x72cf7a(0x8f)]['on'](_0x72cf7a(0xc2),()=>{const _0x5a253a=_0x72cf7a;this[_0x5a253a(0x95)](_0x5a253a(0x7e));}),this[_0x72cf7a(0xbd)]=new AIChatBalloonToolbarContainerView(_0x4c000c,[this[_0x72cf7a(0xb2)],this[_0x72cf7a(0xc6)],this[_0x72cf7a(0x8f)]]),this[_0x72cf7a(0xa0)]=this[_0x72cf7a(0x91)]([this[_0x72cf7a(0xa5)],this[_0x72cf7a(0xbd)]]),this['on'](_0x72cf7a(0x7f),(_0x3737d6,_0x375574,_0x16db58,_0x56d374)=>{const _0x397f9e=_0x72cf7a;let _0x329099,_0x136992;_0x397f9e(0x8b)===_0x56d374?(_0x329099=this[_0x397f9e(0xb2)],_0x136992=this[_0x397f9e(0xc6)]):(_0x329099=this[_0x397f9e(0xc6)],_0x136992=this[_0x397f9e(0xb2)]),this[_0x397f9e(0xc6)][_0x397f9e(0x83)](_0x16db58),_0x329099[_0x397f9e(0xbf)]=!0x1,_0x136992[_0x397f9e(0xbf)]=!0x0;}),this[_0x72cf7a(0xce)]({'tag':_0x72cf7a(0x8d),'attributes':{'class':['ck',_0x72cf7a(0x99),_0x5bd6d0['to'](_0x72cf7a(0x89),_0x46c063=>_0x72cf7a(0xa4)+_0x46c063)]},'children':this[_0x72cf7a(0xa0)]}),this['on'](_0x72cf7a(0xc0),()=>{const _0x75c763=_0x72cf7a;this[_0x75c763(0xb3)](_0x3364a9);});}[_0x3a3abe(0xa1)](){const _0x1a0353=_0x3a3abe;super[_0x1a0353(0xa1)](),this[_0x1a0353(0x9f)][_0x1a0353(0xa1)](),this[_0x1a0353(0x8c)][_0x1a0353(0xa1)](),this[_0x1a0353(0x80)][_0x1a0353(0x8e)](this[_0x1a0353(0x94)]),this[_0x1a0353(0x80)][_0x1a0353(0x8e)](this[_0x1a0353(0x9f)]),this[_0x1a0353(0x80)][_0x1a0353(0x8e)](this[_0x1a0353(0x8c)]),this[_0x1a0353(0x80)][_0x1a0353(0x8e)](this[_0x1a0353(0x8f)]),this[_0x1a0353(0x80)][_0x1a0353(0x8e)](this[_0x1a0353(0xb2)]),this[_0x1a0353(0x92)][_0x1a0353(0x85)](this[_0x1a0353(0x94)]),this[_0x1a0353(0x92)][_0x1a0353(0x85)](this[_0x1a0353(0x9f)][_0x1a0353(0x94)]),this[_0x1a0353(0x92)][_0x1a0353(0x85)](this[_0x1a0353(0x8c)][_0x1a0353(0x94)]),this[_0x1a0353(0xa8)][_0x1a0353(0x90)]([this[_0x1a0353(0x9f)],this[_0x1a0353(0x8c)],this[_0x1a0353(0xb2)],this[_0x1a0353(0x8f)]]);}[_0x3a3abe(0x87)](){const _0x21c175=_0x3a3abe;super[_0x21c175(0x87)](),this[_0x21c175(0x8c)][_0x21c175(0x87)](),this[_0x21c175(0x9f)][_0x21c175(0x87)]();}[_0x3a3abe(0xb9)](){const _0x54ce6f=_0x3a3abe;this[_0x54ce6f(0xcf)][_0x54ce6f(0xab)]();}[_0x3a3abe(0xc3)](){const _0x3aca40=_0x3a3abe;this[_0x3aca40(0xcf)][_0x3aca40(0xc3)]();}async[_0x3a3abe(0x86)](_0x51871e){const _0x754f45=_0x3a3abe;_0x51871e?.[_0x754f45(0xaa)]||this[_0x754f45(0x9b)](),await this[_0x754f45(0xa5)][_0x754f45(0xbc)](_0x51871e);}[_0x3a3abe(0x83)](_0x4b3d2a){const _0x15e894=_0x3a3abe;this[_0x15e894(0x89)]=_0x4b3d2a;}[_0x3a3abe(0x97)](_0x5be728){const _0x5a2516=_0x3a3abe;super[_0x5a2516(0x97)](_0x5be728),this[_0x5a2516(0xa0)][_0x5a2516(0xa6)](this[_0x5a2516(0xcd)])||this[_0x5a2516(0xa0)][_0x5a2516(0x8e)](this[_0x5a2516(0xcd)],0x0);}[_0x3a3abe(0x9b)](){const _0x1e873f=_0x3a3abe;this[_0x1e873f(0xa2)]&&(super[_0x1e873f(0x9b)](),this[_0x1e873f(0xac)](!0x0));}[_0x3a3abe(0x96)](_0x38ec08){const _0x90fd1a=_0x3a3abe;super[_0x90fd1a(0x96)](_0x38ec08),this[_0x90fd1a(0xac)](!0x1);}[_0x3a3abe(0x84)](_0x311679){const _0x3f382d=_0x3a3abe;this[_0x3f382d(0x9f)][_0x3f382d(0xbf)]=this[_0x3f382d(0x8c)][_0x3f382d(0xbf)]=_0x311679;}[_0x3a3abe(0xac)](_0x2d337a){const _0x3c2a6f=_0x3a3abe;this[_0x3c2a6f(0xb2)][_0x3c2a6f(0x9e)]=_0x2d337a;}[_0x3a3abe(0xb3)]({showApplyButton:_0x4aebbb,showSuggestButton:_0x3797b4}){const _0x12dc0c=_0x3a3abe;_0x4aebbb=_0x4aebbb&&!this[_0x12dc0c(0xca)]&&this[_0x12dc0c(0xb8)][_0x12dc0c(0xc7)][_0x12dc0c(0xb5)](_0x12dc0c(0x81)),_0x3797b4=_0x3797b4&&this[_0x12dc0c(0xb8)][_0x12dc0c(0xc7)][_0x12dc0c(0xb5)](_0x12dc0c(0xb6)),this[_0x12dc0c(0xb2)][_0x12dc0c(0x93)]({'showApplyButton':_0x4aebbb,'showSuggestButton':_0x3797b4});}[_0x3a3abe(0xad)](){const _0x454f7a=_0x3a3abe,_0x8cade9=new _0x364af1(this[_0x454f7a(0xba)]);return _0x8cade9[_0x454f7a(0xa3)]({'icon':_0x2862e3,'label':_0xc97ce3(this[_0x454f7a(0xba)],_0x454f7a(0xc5)),'isVisible':!0x0}),_0x8cade9['on'](_0x454f7a(0x82),()=>{const _0x25de90=_0x454f7a;this[_0x25de90(0x95)](_0x25de90(0xa9));}),_0x8cade9;}[_0x3a3abe(0x98)](){const _0x356860=_0x3a3abe,_0x59d731=new _0x364af1(this[_0x356860(0xba)]);return _0x59d731[_0x356860(0xa3)]({'icon':_0x452ba3,'label':_0xc97ce3(this[_0x356860(0xba)],_0x356860(0xcc)),'isVisible':!0x0}),_0x59d731['on'](_0x356860(0x82),()=>{const _0x14c647=_0x356860;this[_0x14c647(0x95)](_0x14c647(0x8a));}),_0x59d731;}}class AIChatBalloonToolbarContainerView extends _0x4b67a3{constructor(_0x8cb0af,_0x5b6b28){const _0x4c5d91=_0x3a3abe;super(_0x8cb0af),this[_0x4c5d91(0xce)]({'tag':_0x4c5d91(0x8d),'attributes':{'class':[_0x4c5d91(0x88)]},'children':_0x5b6b28});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5af3b5=_0x3c7e;(function(_0x5e39e0,_0x5c1e40){const _0x5f3159=_0x3c7e,_0x5eda14=_0x5e39e0();while(!![]){try{const _0x10970e=-parseInt(_0x5f3159(0x1f3))/0x1*(parseInt(_0x5f3159(0x1f6))/0x2)+parseInt(_0x5f3159(0x1d5))/0x3*(-parseInt(_0x5f3159(0x1f5))/0x4)+parseInt(_0x5f3159(0x1e0))/0x5*(parseInt(_0x5f3159(0x1ae))/0x6)+-parseInt(_0x5f3159(0x1f0))/0x7+parseInt(_0x5f3159(0x1c0))/0x8*(parseInt(_0x5f3159(0x1c6))/0x9)+parseInt(_0x5f3159(0x1f8))/0xa+-parseInt(_0x5f3159(0x1b8))/0xb*(-parseInt(_0x5f3159(0x1b2))/0xc);if(_0x10970e===_0x5c1e40)break;else _0x5eda14['push'](_0x5eda14['shift']());}catch(_0x18415e){_0x5eda14['push'](_0x5eda14['shift']());}}}(_0x84aa,0xd58a3));function _0x3c7e(_0x10a184,_0x3c1471){const _0x84aaf8=_0x84aa();return _0x3c7e=function(_0x3c7e34,_0x377e75){_0x3c7e34=_0x3c7e34-0x1ac;let _0x3cf814=_0x84aaf8[_0x3c7e34];return _0x3cf814;},_0x3c7e(_0x10a184,_0x3c1471);}function _0x84aa(){const _0x5b611e=['reset','_createModelUnavailableMessageView','disableModelSelector','addContextButtonView','ck-ai-chat-controls-disabled','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','sendUserMessage','ck-hidden','9726NhvKtU','isLoading','setConversationContext','clearConversationContextUI','2412DyGLck','focus','setWebSearch','_modelUnavailableMessageView','_loaderView','setTemplate','26587XyvxRW','_promptCapabilitiesView','locale','isDisabled','toggleReasoning','element','setInputPlaceholder','div','648nEqSYM','clearConversationContextItems','closeSourceResourceBalloon','focusPromptInput','value','updateResourceState','75798BKnQHy','contextResourcesSearchInputVisibleFrom','enableModelSelector','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','setReasoning','_createPromptCapabilitiesView','setIsUploadInProgress','_promptInputView','queryView','clearCurrentContextItems','ck-ai-chat-controls-model-unavailable-message','setContextItemLoading','fieldView','bodyCollection','clearPendingContextUI','9TmJgom','setModel','execute','_createContextPanelView','_createLoaderView','setPromptInputValue','resetMessageInput','change:isLoading','_handlePromptInputFocus','set','low','3265KlWQRa','selectModel','_createPromptInputView','ck-ai-chat-controls__start-new-chat-button','toggleWebSearch','bindTemplate','addContextItem','form','setPlaceholderText','_shouldRestorePromptInputFocus','_contextPanelView','removeContextItem','setModelList','ck-ai-chat-controls','setAddContextOptions','isModelAvailable','4043340AjcEaV','startConversation','delegate','20nNXeQd','populateSourceResourceBalloon','1073528iwUUuI','146022QXAzJV','abortPromptStream','14911330oJezoc'];_0x84aa=function(){return _0x5b611e;};return _0x84aa();}import{ButtonView as _0xf3cf43,clickOutsideHandler as _0x40b633,View as _0x767c04}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x44a652}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x2dbc2e}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x22ce3f,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x664d10}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x22e17f}from'./controls/aichatcontrolsloaderview.js';import{getTranslation as _0x3dfdaf}from'../../aicore/utils/common-translations.js';import'../../../theme/aichat/aichat-controls.css';import'../../../theme/aichat/aichat-controls/prompt-input.css';import'../../../theme/aichat/aichat-controls/prompt-capabilities.css';import'../../../theme/aichat/aichat-controls/model-unavailable-message.css';import'../../../theme/aichat/aichat-controls/aichat-context-controls.css';import'../../../theme/aichat/aichat-controls/aichat-context-chip.css';import'../../../theme/aichat/aichat-controls/aichat-controls-button.css';import'../../../theme/aichat/aichat-controls/aichat-controls-loader.css';import'../../../theme/aichat/aichat-controls/aichat-context-controls-balloon-panels.css';export class AIChatControlsView extends _0x767c04{[_0x5af3b5(0x1ea)];[_0x5af3b5(0x1cd)];[_0x5af3b5(0x1b9)];[_0x5af3b5(0x1b6)];[_0x5af3b5(0x1b5)];[_0x5af3b5(0x1e9)];constructor(_0x5021b3,_0x5377f5){const _0x20abb9=_0x5af3b5;super(_0x5021b3),this[_0x20abb9(0x1ea)]=this[_0x20abb9(0x1d8)](_0x5021b3,{'bodyCollection':_0x5377f5[_0x20abb9(0x1d3)],'searchInputVisibleFrom':_0x5377f5[_0x20abb9(0x1c7)]}),this[_0x20abb9(0x1cd)]=this[_0x20abb9(0x1e2)](_0x5021b3),this[_0x20abb9(0x1b9)]=this[_0x20abb9(0x1cb)](_0x5021b3),this[_0x20abb9(0x1b6)]=this[_0x20abb9(0x1d9)](_0x5021b3),this[_0x20abb9(0x1b5)]=this[_0x20abb9(0x1fa)](_0x5021b3),this[_0x20abb9(0x1e9)]=!0x1,this[_0x20abb9(0x1cd)][_0x20abb9(0x1f2)](_0x20abb9(0x1ac))['to'](this),this[_0x20abb9(0x1b6)][_0x20abb9(0x1f2)](_0x20abb9(0x1f7))['to'](this),this[_0x20abb9(0x1b9)][_0x20abb9(0x1f2)](_0x20abb9(0x1e4))['to'](this),this[_0x20abb9(0x1b9)][_0x20abb9(0x1f2)](_0x20abb9(0x1bc))['to'](this),this[_0x20abb9(0x1b9)][_0x20abb9(0x1f2)](_0x20abb9(0x1e1))['to'](this),this[_0x20abb9(0x1ea)][_0x20abb9(0x1f2)](..._0x664d10)['to'](this),this[_0x20abb9(0x1de)](_0x20abb9(0x1ef),!0x0),this[_0x20abb9(0x1de)](_0x20abb9(0x1bb),!0x1);const _0x33c973=this[_0x20abb9(0x1e5)];this[_0x20abb9(0x1b7)]({'tag':_0x20abb9(0x1e7),'attributes':{'class':['ck',_0x20abb9(0x1ed),_0x33c973['if'](_0x20abb9(0x1bb),_0x20abb9(0x1fd))]},'children':[{'tag':_0x20abb9(0x1bf),'attributes':{'class':[_0x33c973['if'](_0x20abb9(0x1af),_0x20abb9(0x1ad),_0x553ef6=>_0x553ef6||!this[_0x20abb9(0x1ef)]),_0x33c973['if'](_0x20abb9(0x1ef),_0x20abb9(0x1ad),_0x90c790=>!_0x90c790||this[_0x20abb9(0x1af)])]},'children':[this[_0x20abb9(0x1ea)],this[_0x20abb9(0x1cd)],this[_0x20abb9(0x1b9)]]},{'tag':_0x20abb9(0x1bf),'attributes':{'class':[_0x33c973['if'](_0x20abb9(0x1af),_0x20abb9(0x1ad),_0x55a69d=>!_0x55a69d)]},'children':[this[_0x20abb9(0x1b6)]]},{'tag':_0x20abb9(0x1bf),'attributes':{'class':[_0x33c973['if'](_0x20abb9(0x1ef),_0x20abb9(0x1ad),_0xd547ec=>_0xd547ec)]},'children':[this[_0x20abb9(0x1b5)]]}]}),_0x40b633({'emitter':this[_0x20abb9(0x1cd)],'activator':()=>this[_0x20abb9(0x1af)],'contextElements':()=>[this[_0x20abb9(0x1bd)]],'callback':()=>{const _0x2a82dd=_0x20abb9;this[_0x2a82dd(0x1e9)]=!0x1;}}),this['on'](_0x20abb9(0x1dc),this[_0x20abb9(0x1dd)],{'priority':_0x20abb9(0x1df)});}[_0x5af3b5(0x1d8)](_0x22f6c5,_0x4c01f8){return new _0x22ce3f(_0x22f6c5,_0x4c01f8);}[_0x5af3b5(0x1e2)](_0x17aa33){const _0x3e36b0=_0x5af3b5;return new _0x44a652(_0x17aa33,this[_0x3e36b0(0x1ea)][_0x3e36b0(0x1fc)]);}[_0x5af3b5(0x1cb)](_0x3e8caf){return new _0x2dbc2e(_0x3e8caf);}[_0x5af3b5(0x1d9)](_0x48d9f7){return new _0x22e17f(_0x48d9f7);}[_0x5af3b5(0x1fa)](_0x3072c3){const _0x50cc95=_0x5af3b5,_0x4d77f9=new AIChatModelUnavailableMessageView(_0x3072c3);return _0x4d77f9[_0x50cc95(0x1f2)](_0x50cc95(0x1f1))['to'](this),_0x4d77f9;}[_0x5af3b5(0x1dd)](_0x21f84e,_0x4f6861,_0x40f3a4){const _0x2b5130=_0x5af3b5;_0x40f3a4?this[_0x2b5130(0x1e9)]=!0x0:this[_0x2b5130(0x1e9)]&&this[_0x2b5130(0x1cd)][_0x2b5130(0x1b3)]();}[_0x5af3b5(0x1e6)](_0x4746e5,_0x5ef64e){const _0x390179=_0x5af3b5;this[_0x390179(0x1ea)][_0x390179(0x1e6)](_0x4746e5,_0x5ef64e);}[_0x5af3b5(0x1eb)](_0x4d4f1d){const _0x710e0f=_0x5af3b5;this[_0x710e0f(0x1ea)][_0x710e0f(0x1eb)](_0x4d4f1d);}[_0x5af3b5(0x1d1)](_0x2bf834,_0x8fa5fd){const _0x171f93=_0x5af3b5;this[_0x171f93(0x1ea)][_0x171f93(0x1d1)](_0x2bf834,_0x8fa5fd);}[_0x5af3b5(0x1cc)](_0x406875){const _0x47f13e=_0x5af3b5;this[_0x47f13e(0x1cd)][_0x47f13e(0x1cc)](_0x406875);}[_0x5af3b5(0x1b0)](_0x364c5f){const _0x4ff265=_0x5af3b5;this[_0x4ff265(0x1ea)][_0x4ff265(0x1b0)](_0x364c5f);}[_0x5af3b5(0x1d4)](){const _0x1f83b6=_0x5af3b5;this[_0x1f83b6(0x1ea)][_0x1f83b6(0x1cf)]();}[_0x5af3b5(0x1b1)](){const _0x3c48ec=_0x5af3b5;this[_0x3c48ec(0x1ea)][_0x3c48ec(0x1c1)]();}[_0x5af3b5(0x1c5)](_0x4d3cdf,_0x2b0417,_0x5cb3a3){const _0x417867=_0x5af3b5;this[_0x417867(0x1ea)][_0x417867(0x1c5)](_0x4d3cdf,_0x2b0417,_0x5cb3a3);}[_0x5af3b5(0x1b4)](_0xde177){const _0x3900af=_0x5af3b5;this[_0x3900af(0x1b9)][_0x3900af(0x1b4)](_0xde177);}[_0x5af3b5(0x1ca)](_0x3d4108){const _0x2b2562=_0x5af3b5;this[_0x2b2562(0x1b9)][_0x2b2562(0x1ca)](_0x3d4108);}[_0x5af3b5(0x1db)](){const _0x25fb9e=_0x5af3b5;this[_0x25fb9e(0x1cd)][_0x25fb9e(0x1f9)]();}[_0x5af3b5(0x1ee)](_0x47ea67){const _0x2d483d=_0x5af3b5;this[_0x2d483d(0x1ea)][_0x2d483d(0x1ee)](_0x47ea67);}[_0x5af3b5(0x1be)](_0x132be2){const _0x492ef2=_0x5af3b5;this[_0x492ef2(0x1cd)][_0x492ef2(0x1e8)](_0x132be2);}[_0x5af3b5(0x1ec)](_0x235c65,_0x4836fa){const _0x356a73=_0x5af3b5;this[_0x356a73(0x1b9)][_0x356a73(0x1ec)](_0x235c65,_0x4836fa);}[_0x5af3b5(0x1d6)](_0x1b8b5c){const _0x24b0cb=_0x5af3b5;_0x1b8b5c?(this[_0x24b0cb(0x1ef)]=!0x0,this[_0x24b0cb(0x1b9)][_0x24b0cb(0x1d6)](_0x1b8b5c)):this[_0x24b0cb(0x1ef)]=!0x1;}[_0x5af3b5(0x1c8)](){const _0x3768e2=_0x5af3b5;this[_0x3768e2(0x1b9)][_0x3768e2(0x1c8)]();}[_0x5af3b5(0x1fb)](_0x10107c){const _0x4eff36=_0x5af3b5;this[_0x4eff36(0x1b9)][_0x4eff36(0x1fb)](_0x10107c);}[_0x5af3b5(0x1f4)](_0xda7742,_0x1980a9,_0x399b62,_0x1f83c2){const _0x40d6d2=_0x5af3b5;this[_0x40d6d2(0x1ea)][_0x40d6d2(0x1f4)](_0xda7742,_0x1980a9,_0x399b62,_0x1f83c2);}[_0x5af3b5(0x1c2)](_0x161d19){const _0x143f2b=_0x5af3b5;this[_0x143f2b(0x1ea)][_0x143f2b(0x1c2)](_0x161d19);}[_0x5af3b5(0x1c3)](_0x2fd10f=!0x1){const _0x422a70=_0x5af3b5;this[_0x422a70(0x1cd)][_0x422a70(0x1b3)](_0x2fd10f);}[_0x5af3b5(0x1da)](_0x1a9138){const _0x38e355=_0x5af3b5;this[_0x38e355(0x1cd)][_0x38e355(0x1ce)][_0x38e355(0x1d2)][_0x38e355(0x1f9)](),this[_0x38e355(0x1cd)][_0x38e355(0x1ce)][_0x38e355(0x1d2)][_0x38e355(0x1c4)]=_0x1a9138;}}class AIChatModelUnavailableMessageView extends _0x767c04{constructor(_0x58227f){const _0xc7ba79=_0x5af3b5;super(_0x58227f);const _0x3024cf=new _0xf3cf43(_0x58227f);_0x3024cf[_0xc7ba79(0x1de)]({'label':_0x3dfdaf(this[_0xc7ba79(0x1ba)],_0xc7ba79(0x1fe)),'withText':!0x0,'class':[_0xc7ba79(0x1e3)],'tooltip':''}),_0x3024cf[_0xc7ba79(0x1f2)](_0xc7ba79(0x1d7))['to'](this,_0xc7ba79(0x1f1)),this[_0xc7ba79(0x1b7)]({'tag':_0xc7ba79(0x1bf),'attributes':{'class':['ck',_0xc7ba79(0x1d0)]},'children':[{'tag':'p','children':[{'text':_0x3dfdaf(this[_0xc7ba79(0x1ba)],_0xc7ba79(0x1c9))+'\x20'},_0x3024cf]}]});}}
23
+ const _0x43b2b8=_0x3d93;(function(_0x4f4cec,_0x185350){const _0xaec1cf=_0x3d93,_0x1f6601=_0x4f4cec();while(!![]){try{const _0x273279=-parseInt(_0xaec1cf(0x214))/0x1*(parseInt(_0xaec1cf(0x1e8))/0x2)+parseInt(_0xaec1cf(0x1fe))/0x3*(-parseInt(_0xaec1cf(0x219))/0x4)+-parseInt(_0xaec1cf(0x1f7))/0x5*(parseInt(_0xaec1cf(0x215))/0x6)+-parseInt(_0xaec1cf(0x200))/0x7*(parseInt(_0xaec1cf(0x1e3))/0x8)+parseInt(_0xaec1cf(0x1e0))/0x9+parseInt(_0xaec1cf(0x1d9))/0xa*(parseInt(_0xaec1cf(0x1e6))/0xb)+parseInt(_0xaec1cf(0x207))/0xc*(parseInt(_0xaec1cf(0x1de))/0xd);if(_0x273279===_0x185350)break;else _0x1f6601['push'](_0x1f6601['shift']());}catch(_0x1016e5){_0x1f6601['push'](_0x1f6601['shift']());}}}(_0x2ace,0x8f6ad));import{ButtonView as _0x33bae4,clickOutsideHandler as _0x3e5a79,View as _0x37911d}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x545db2}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x55162a}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x56d966,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x5b93be}from'./controls/aichatcontextpanelview.js';function _0x2ace(){const _0x3618b1=['setConversationContext','21447xMRiEx','contextResourcesSearchInputVisibleFrom','7NenqUr','removeContextItem','setReasoning','sendUserMessage','setPlaceholderText','set','locale','502140NecUbf','bodyCollection','ck-ai-chat-controls-model-unavailable-message','enableModelSelector','clearConversationContextItems','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','_createContextPanelView','ck-hidden','delegate','setInputPlaceholder','disableModelSelector','execute','setIsUploadInProgress','139OBNiqo','6cQqBjj','_loaderView','setModel','ck-ai-chat-controls','484VEDOcf','div','_modelUnavailableMessageView','_promptCapabilitiesView','toggleWebSearch','updateResourceState','setWebSearch','focusPromptInput','value','low','element','_createPromptCapabilitiesView','closeSourceResourceBalloon','ck-ai-chat-controls-disabled','_createPromptInputView','_createLoaderView','fieldView','_promptInputView','setAddContextOptions','addContextItem','2289170xnWlXF','clearConversationContextUI','isLoading','focus','ck-ai-chat-controls__start-new-chat-button','208TJZnBb','queryView','9179811fEJpru','_shouldRestorePromptInputFocus','toggleReasoning','1171184wMIqzZ','clearCurrentContextItems','setTemplate','55oCActX','bindTemplate','11962vAlrCn','setPromptInputValue','isModelAvailable','startConversation','abortPromptStream','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','isDisabled','_handlePromptInputFocus','form','clearPendingContextUI','addContextButtonView','reset','change:isLoading','setModelList','_contextPanelView','2019305TZQXYg','resetMessageInput','setContextItemLoading','selectModel','_createModelUnavailableMessageView','populateSourceResourceBalloon'];_0x2ace=function(){return _0x3618b1;};return _0x2ace();}import{AIChatControlsLoaderView as _0x5d5ea5}from'./controls/aichatcontrolsloaderview.js';import{getTranslation as _0xbfc70b}from'../../aicore/utils/common-translations.js';import'../../../theme/aichat/aichat-controls.css';import'../../../theme/aichat/aichat-controls/prompt-input.css';import'../../../theme/aichat/aichat-controls/prompt-capabilities.css';import'../../../theme/aichat/aichat-controls/model-unavailable-message.css';import'../../../theme/aichat/aichat-controls/aichat-context-controls.css';function _0x3d93(_0x17c448,_0x414cb5){const _0x2ace6f=_0x2ace();return _0x3d93=function(_0x3d93b8,_0x5a9d45){_0x3d93b8=_0x3d93b8-0x1c8;let _0x3360d2=_0x2ace6f[_0x3d93b8];return _0x3360d2;},_0x3d93(_0x17c448,_0x414cb5);}import'../../../theme/aichat/aichat-controls/aichat-context-chip.css';import'../../../theme/aichat/aichat-controls/aichat-controls-button.css';import'../../../theme/aichat/aichat-controls/aichat-controls-loader.css';import'../../../theme/aichat/aichat-controls/aichat-context-controls-balloon-panels.css';export class AIChatControlsView extends _0x37911d{[_0x43b2b8(0x1f6)];[_0x43b2b8(0x1d6)];[_0x43b2b8(0x1c8)];[_0x43b2b8(0x216)];[_0x43b2b8(0x21b)];[_0x43b2b8(0x1e1)];constructor(_0x11eb61,_0x34555d){const _0x847caf=_0x43b2b8;super(_0x11eb61),this[_0x847caf(0x1f6)]=this[_0x847caf(0x20d)](_0x11eb61,{'bodyCollection':_0x34555d[_0x847caf(0x208)],'searchInputVisibleFrom':_0x34555d[_0x847caf(0x1ff)]}),this[_0x847caf(0x1d6)]=this[_0x847caf(0x1d3)](_0x11eb61),this[_0x847caf(0x1c8)]=this[_0x847caf(0x1d0)](_0x11eb61),this[_0x847caf(0x216)]=this[_0x847caf(0x1d4)](_0x11eb61),this[_0x847caf(0x21b)]=this[_0x847caf(0x1fb)](_0x11eb61),this[_0x847caf(0x1e1)]=!0x1,this[_0x847caf(0x1d6)][_0x847caf(0x20f)](_0x847caf(0x203))['to'](this),this[_0x847caf(0x216)][_0x847caf(0x20f)](_0x847caf(0x1ec))['to'](this),this[_0x847caf(0x1c8)][_0x847caf(0x20f)](_0x847caf(0x1c9))['to'](this),this[_0x847caf(0x1c8)][_0x847caf(0x20f)](_0x847caf(0x1e2))['to'](this),this[_0x847caf(0x1c8)][_0x847caf(0x20f)](_0x847caf(0x1fa))['to'](this),this[_0x847caf(0x1f6)][_0x847caf(0x20f)](..._0x5b93be)['to'](this),this[_0x847caf(0x205)](_0x847caf(0x1ea),!0x0),this[_0x847caf(0x205)](_0x847caf(0x1ee),!0x1);const _0x13a87b=this[_0x847caf(0x1e7)];this[_0x847caf(0x1e5)]({'tag':_0x847caf(0x1f0),'attributes':{'class':['ck',_0x847caf(0x218),_0x13a87b['if'](_0x847caf(0x1ee),_0x847caf(0x1d2))]},'children':[{'tag':_0x847caf(0x21a),'attributes':{'class':[_0x13a87b['if'](_0x847caf(0x1db),_0x847caf(0x20e),_0x279acc=>_0x279acc||!this[_0x847caf(0x1ea)]),_0x13a87b['if'](_0x847caf(0x1ea),_0x847caf(0x20e),_0x1b26f9=>!_0x1b26f9||this[_0x847caf(0x1db)])]},'children':[this[_0x847caf(0x1f6)],this[_0x847caf(0x1d6)],this[_0x847caf(0x1c8)]]},{'tag':_0x847caf(0x21a),'attributes':{'class':[_0x13a87b['if'](_0x847caf(0x1db),_0x847caf(0x20e),_0x2ad775=>!_0x2ad775)]},'children':[this[_0x847caf(0x216)]]},{'tag':_0x847caf(0x21a),'attributes':{'class':[_0x13a87b['if'](_0x847caf(0x1ea),_0x847caf(0x20e),_0x13dca4=>_0x13dca4)]},'children':[this[_0x847caf(0x21b)]]}]}),_0x3e5a79({'emitter':this[_0x847caf(0x1d6)],'activator':()=>this[_0x847caf(0x1db)],'contextElements':()=>[this[_0x847caf(0x1cf)]],'callback':()=>{const _0x34db4c=_0x847caf;this[_0x34db4c(0x1e1)]=!0x1;}}),this['on'](_0x847caf(0x1f4),this[_0x847caf(0x1ef)],{'priority':_0x847caf(0x1ce)});}[_0x43b2b8(0x20d)](_0x89da55,_0x2af6a6){return new _0x56d966(_0x89da55,_0x2af6a6);}[_0x43b2b8(0x1d3)](_0x28239f){const _0x1e4b07=_0x43b2b8;return new _0x545db2(_0x28239f,this[_0x1e4b07(0x1f6)][_0x1e4b07(0x1f2)]);}[_0x43b2b8(0x1d0)](_0x1e8f39){return new _0x55162a(_0x1e8f39);}[_0x43b2b8(0x1d4)](_0x549f0c){return new _0x5d5ea5(_0x549f0c);}[_0x43b2b8(0x1fb)](_0xbc3caa){const _0x29df50=_0x43b2b8,_0x20d8cb=new AIChatModelUnavailableMessageView(_0xbc3caa);return _0x20d8cb[_0x29df50(0x20f)](_0x29df50(0x1eb))['to'](this),_0x20d8cb;}[_0x43b2b8(0x1ef)](_0x4af361,_0x42c1f5,_0x21f9ec){const _0x399425=_0x43b2b8;_0x21f9ec?this[_0x399425(0x1e1)]=!0x0:this[_0x399425(0x1e1)]&&this[_0x399425(0x1d6)][_0x399425(0x1dc)]();}[_0x43b2b8(0x1d8)](_0x306e03,_0x460cc2){const _0x361667=_0x43b2b8;this[_0x361667(0x1f6)][_0x361667(0x1d8)](_0x306e03,_0x460cc2);}[_0x43b2b8(0x201)](_0x269b13){const _0x3e579b=_0x43b2b8;this[_0x3e579b(0x1f6)][_0x3e579b(0x201)](_0x269b13);}[_0x43b2b8(0x1f9)](_0x54f724,_0x52bcf6){const _0x3e90ad=_0x43b2b8;this[_0x3e90ad(0x1f6)][_0x3e90ad(0x1f9)](_0x54f724,_0x52bcf6);}[_0x43b2b8(0x213)](_0x1503e9){const _0x2be2d9=_0x43b2b8;this[_0x2be2d9(0x1d6)][_0x2be2d9(0x213)](_0x1503e9);}[_0x43b2b8(0x1fd)](_0x3e1184){const _0x5606e5=_0x43b2b8;this[_0x5606e5(0x1f6)][_0x5606e5(0x1fd)](_0x3e1184);}[_0x43b2b8(0x1f1)](){const _0x23ad6f=_0x43b2b8;this[_0x23ad6f(0x1f6)][_0x23ad6f(0x1e4)]();}[_0x43b2b8(0x1da)](){const _0x77783c=_0x43b2b8;this[_0x77783c(0x1f6)][_0x77783c(0x20b)]();}[_0x43b2b8(0x1ca)](_0x478c67,_0x500a58,_0x8e486a){const _0x149cae=_0x43b2b8;this[_0x149cae(0x1f6)][_0x149cae(0x1ca)](_0x478c67,_0x500a58,_0x8e486a);}[_0x43b2b8(0x1cb)](_0x375b35){const _0x1fee02=_0x43b2b8;this[_0x1fee02(0x1c8)][_0x1fee02(0x1cb)](_0x375b35);}[_0x43b2b8(0x202)](_0x645e8a){const _0x250a62=_0x43b2b8;this[_0x250a62(0x1c8)][_0x250a62(0x202)](_0x645e8a);}[_0x43b2b8(0x1f8)](){const _0x20bf72=_0x43b2b8;this[_0x20bf72(0x1d6)][_0x20bf72(0x1f3)]();}[_0x43b2b8(0x1d7)](_0x33118b){const _0x50530e=_0x43b2b8;this[_0x50530e(0x1f6)][_0x50530e(0x1d7)](_0x33118b);}[_0x43b2b8(0x210)](_0x1fe02b){const _0x483c60=_0x43b2b8;this[_0x483c60(0x1d6)][_0x483c60(0x204)](_0x1fe02b);}[_0x43b2b8(0x1f5)](_0x3071b0,_0x2f8e9c){const _0x166512=_0x43b2b8;this[_0x166512(0x1c8)][_0x166512(0x1f5)](_0x3071b0,_0x2f8e9c);}[_0x43b2b8(0x217)](_0x4703eb){const _0x3ee03e=_0x43b2b8;_0x4703eb?(this[_0x3ee03e(0x1ea)]=!0x0,this[_0x3ee03e(0x1c8)][_0x3ee03e(0x217)](_0x4703eb)):this[_0x3ee03e(0x1ea)]=!0x1;}[_0x43b2b8(0x20a)](){const _0x20c1cc=_0x43b2b8;this[_0x20c1cc(0x1c8)][_0x20c1cc(0x20a)]();}[_0x43b2b8(0x211)](_0x3e70c1){const _0xe37d06=_0x43b2b8;this[_0xe37d06(0x1c8)][_0xe37d06(0x211)](_0x3e70c1);}[_0x43b2b8(0x1fc)](_0x3db7a4,_0x8b1e73,_0x4cde53,_0x5e002a){const _0x37240e=_0x43b2b8;this[_0x37240e(0x1f6)][_0x37240e(0x1fc)](_0x3db7a4,_0x8b1e73,_0x4cde53,_0x5e002a);}[_0x43b2b8(0x1d1)](_0x12413f){const _0x1e120b=_0x43b2b8;this[_0x1e120b(0x1f6)][_0x1e120b(0x1d1)](_0x12413f);}[_0x43b2b8(0x1cc)](_0x4ca9b3=!0x1){const _0x7921b8=_0x43b2b8;this[_0x7921b8(0x1d6)][_0x7921b8(0x1dc)](_0x4ca9b3);}[_0x43b2b8(0x1e9)](_0x318d6e){const _0x1c97bc=_0x43b2b8;this[_0x1c97bc(0x1d6)][_0x1c97bc(0x1df)][_0x1c97bc(0x1d5)][_0x1c97bc(0x1f3)](),this[_0x1c97bc(0x1d6)][_0x1c97bc(0x1df)][_0x1c97bc(0x1d5)][_0x1c97bc(0x1cd)]=_0x318d6e;}}class AIChatModelUnavailableMessageView extends _0x37911d{constructor(_0x50e359){const _0x598c09=_0x43b2b8;super(_0x50e359);const _0x47429f=new _0x33bae4(_0x50e359);_0x47429f[_0x598c09(0x205)]({'label':_0xbfc70b(this[_0x598c09(0x206)],_0x598c09(0x20c)),'withText':!0x0,'class':[_0x598c09(0x1dd)],'tooltip':''}),_0x47429f[_0x598c09(0x20f)](_0x598c09(0x212))['to'](this,_0x598c09(0x1eb)),this[_0x598c09(0x1e5)]({'tag':_0x598c09(0x21a),'attributes':{'class':['ck',_0x598c09(0x209)]},'children':[{'tag':'p','children':[{'text':_0xbfc70b(this[_0x598c09(0x206)],_0x598c09(0x1ed))+'\x20'},_0x47429f]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x29f9c6=_0x2b30;(function(_0x5b52d3,_0x446e45){const _0x40536d=_0x2b30,_0x202866=_0x5b52d3();while(!![]){try{const _0x35a572=-parseInt(_0x40536d(0x20f))/0x1*(parseInt(_0x40536d(0x236))/0x2)+parseInt(_0x40536d(0x24a))/0x3+-parseInt(_0x40536d(0x229))/0x4*(parseInt(_0x40536d(0x237))/0x5)+-parseInt(_0x40536d(0x202))/0x6*(-parseInt(_0x40536d(0x221))/0x7)+parseInt(_0x40536d(0x231))/0x8+-parseInt(_0x40536d(0x245))/0x9*(-parseInt(_0x40536d(0x1fb))/0xa)+-parseInt(_0x40536d(0x22e))/0xb;if(_0x35a572===_0x446e45)break;else _0x202866['push'](_0x202866['shift']());}catch(_0xdf7656){_0x202866['push'](_0x202866['shift']());}}}(_0x2ade,0xa467e));import{CKEditorError as _0x417f61,logWarning as _0x18ae10,scrollAncestorsToShowTarget as _0x56c1a7}from'ckeditor5/src/utils.js';import{View as _0x21bf49}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x5e76d1}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x19a6e2}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x1d2073}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x372b7d}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x4dee49}from'./feed/aichatfeederroritemview.js';function _0x2b30(_0x3750d6,_0x2ddced){const _0x2adee0=_0x2ade();return _0x2b30=function(_0x2b305e,_0x45a39a){_0x2b305e=_0x2b305e-0x1f4;let _0x4c1167=_0x2adee0[_0x2b305e];return _0x4c1167;},_0x2b30(_0x3750d6,_0x2ddced);}import{AIChatFeedInteractionHeaderView as _0x105c2f}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x505a5a}from'../../aicore/utils/scrollmanager.js';import{AISkeletonView as _0x14d75a,SKELETON_DEFINITIONS as _0xdbf875}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x5296ba}from'../../aicore/ui/aispinner.js';import{AIChatFeedCustomElementView as _0x5ea61d}from'./feed/aichatfeedcustomelementview.js';function _0x2ade(){const _0x3a8644=['options','updateReplyItem','10toHvlW','remove','toggleLoadingSkeleton','interaction-header','updateWebSources','start','delegate','84IwPHHS','render','isLoadingSkeletonVisible','_createLoaderChildren','removeItem','ck-ai-chat__loader-text','destroy','map','div','custom-element','filter','markAsDone','createCollection','5htEpuG','parentElement','aiFeed','bind','isVisible','_bodyCollection','updateSuggestionPartState','locale','updateSources','span','_createFeedLoader','ai-chat-feed-view-item-not-a-suggestion-item','getItemIds','ck-ai-chat__loader','find','setSuggestionPartActive','getItemById','ai-chat-feed-view-item-not-found','298515ETGjwz','ai-reply','ai-chat-feed-view-item-not-a-reply-item','startAutoScroll','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','element','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','ai-suggestion-reply','58388ZDmRFs','children','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','_createSkeletonLoader','extendTemplate','6857895sdpFAs','loadingMessage','_createTemplateChildren','463296SPAbwS','user-message','scrollManager','updateContent','setTemplate','288440jPrpwN','55gxTMhr','setLoadingMessage','ck-ai-chat__feed__items','markItemAsDone','isPending','isTrackChangesOn','includes','ck-hidden','updateSuggestionItem','scrollToSuggestion','setPartActive','_setupTemplate','set','getPartView','11368908llEXxN','forEach','ck-ai-chat__feed','addItem','hasItem','781092LIHbDj','clear','bindTemplate','_createFeedItems','stop','add','stopAutoScroll','updatePartState'];_0x2ade=function(){return _0x3a8644;};return _0x2ade();}import'../../../theme/aichat/aichatfeed.css';export class AIChatFeedView extends _0x21bf49{[_0x29f9c6(0x22a)];[_0x29f9c6(0x233)];[_0x29f9c6(0x214)];constructor(_0x2ec569,_0x1419f7){const _0x1fb039=_0x29f9c6;super(_0x2ec569),this[_0x1fb039(0x214)]=_0x1419f7,this[_0x1fb039(0x243)](_0x1fb039(0x23b),!0x1),this[_0x1fb039(0x243)](_0x1fb039(0x22f),''),this[_0x1fb039(0x243)](_0x1fb039(0x204),!0x1),this[_0x1fb039(0x243)](_0x1fb039(0x23c),!0x1),this[_0x1fb039(0x22a)]=this[_0x1fb039(0x20e)](),this[_0x1fb039(0x22a)][_0x1fb039(0x201)](..._0x5e76d1)['to'](this),this[_0x1fb039(0x242)]();}[_0x29f9c6(0x203)](){const _0x5ccd07=_0x29f9c6;super[_0x5ccd07(0x203)](),this[_0x5ccd07(0x233)]=new _0x505a5a(this[_0x5ccd07(0x226)]);}[_0x29f9c6(0x208)](){const _0x48920b=_0x29f9c6;super[_0x48920b(0x208)](),this[_0x48920b(0x233)][_0x48920b(0x208)]();}[_0x29f9c6(0x24b)](){const _0x39c6fe=_0x29f9c6;this[_0x39c6fe(0x22a)][_0x39c6fe(0x24b)]();}[_0x29f9c6(0x248)](_0x17d3bc,_0x5dfb80){const _0x276785=_0x29f9c6;let _0x324870;return _0x276785(0x222)===_0x17d3bc?_0x324870=new _0x1d2073(this[_0x276785(0x216)],_0x5dfb80,this[_0x276785(0x214)]):_0x276785(0x228)===_0x17d3bc?(_0x324870=new _0x19a6e2(this[_0x276785(0x216)],_0x5dfb80,this[_0x276785(0x214)]),_0x324870[_0x276785(0x212)](_0x276785(0x23c))['to'](this)):_0x324870=_0x276785(0x232)===_0x17d3bc?new _0x372b7d(this[_0x276785(0x216)],_0x5dfb80,this[_0x276785(0x214)]):_0x276785(0x1fe)===_0x17d3bc?new _0x105c2f(this[_0x276785(0x216)],_0x5dfb80):_0x276785(0x20b)===_0x17d3bc?new _0x5ea61d(_0x5dfb80):new _0x4dee49(_0x5dfb80),this[_0x276785(0x22a)][_0x276785(0x1f6)](_0x324870),_0x324870;}async[_0x29f9c6(0x1fa)]({id:_0x471e58,parsedContent:_0x1b17ec,renderingStrategy:_0x52c6a3,abortSignal:_0x165f4e}){const _0x4f5966=_0x29f9c6,_0x543b02=this[_0x4f5966(0x21f)](_0x471e58);if(!(_0x543b02 instanceof _0x1d2073))throw new _0x417f61(_0x4f5966(0x223),null,{'itemView':_0x543b02,'id':_0x471e58,'parsedContent':_0x1b17ec});await _0x543b02[_0x4f5966(0x234)]({'parsedContent':_0x1b17ec,'renderingStrategy':_0x52c6a3,'abortSignal':_0x165f4e});}async[_0x29f9c6(0x1ff)](_0x170a13,_0x4c2bfe){const _0x3e5785=_0x29f9c6,_0x1a3ad3=this[_0x3e5785(0x21f)](_0x170a13);if(_0x1a3ad3 instanceof _0x19a6e2)_0x1a3ad3[_0x3e5785(0x217)](_0x4c2bfe);else{if(!(_0x1a3ad3 instanceof _0x1d2073))throw new _0x417f61(_0x3e5785(0x225),null,{'itemView':_0x1a3ad3,'id':_0x170a13,'sources':_0x4c2bfe});_0x1a3ad3[_0x3e5785(0x217)](_0x4c2bfe);}}async[_0x29f9c6(0x23f)]({id:_0x5de8ec,parts:_0x3fb359,renderingStrategy:_0xac8f33,abortSignal:_0x262c0f}){const _0x56a8f2=_0x29f9c6,_0x215080=this[_0x56a8f2(0x21f)](_0x5de8ec);if(!(_0x215080 instanceof _0x19a6e2))throw new _0x417f61(_0x56a8f2(0x21a),null,{'itemView':_0x215080,'id':_0x5de8ec,'parts':_0x3fb359});await _0x215080[_0x56a8f2(0x234)]({'parts':_0x3fb359,'renderingStrategy':_0xac8f33,'abortSignal':_0x262c0f});}[_0x29f9c6(0x215)]({id:_0x248a0f,index:_0x306404,state:_0x2fb69f}){const _0x485111=_0x29f9c6,_0x2dcbcd=this[_0x485111(0x21f)](_0x248a0f);if(!(_0x2dcbcd instanceof _0x19a6e2))throw new _0x417f61(_0x485111(0x21a),this,{'id':_0x248a0f});_0x2dcbcd[_0x485111(0x1f8)](_0x306404,_0x2fb69f);}[_0x29f9c6(0x21e)]({id:_0x4f26c5,index:_0x26c3af,isActive:_0x3eb213}){const _0x255bc0=_0x29f9c6,_0x28f327=this[_0x255bc0(0x21f)](_0x4f26c5);if(!(_0x28f327 instanceof _0x19a6e2))throw new _0x417f61(_0x255bc0(0x21a),this,{'id':_0x4f26c5});this[_0x255bc0(0x22a)][_0x255bc0(0x20c)](_0xe5e9cb=>_0xe5e9cb instanceof _0x19a6e2)[_0x255bc0(0x246)](_0x2166bc=>{const _0x4d0f5a=_0x255bc0;_0x2166bc[_0x4d0f5a(0x241)](!0x1);}),_0x28f327[_0x255bc0(0x241)](_0x26c3af,_0x3eb213);}[_0x29f9c6(0x23a)](_0x44ebed){const _0x4daca3=_0x29f9c6;this[_0x4daca3(0x21f)](_0x44ebed)[_0x4daca3(0x20d)]();}[_0x29f9c6(0x21b)](){const _0x1e3ac1=_0x29f9c6;return this[_0x1e3ac1(0x22a)][_0x1e3ac1(0x209)](_0x57f047=>_0x57f047[_0x1e3ac1(0x1f9)]['id']);}[_0x29f9c6(0x206)](_0x142f8d){const _0xef553b=_0x29f9c6;this[_0xef553b(0x22a)][_0xef553b(0x1fc)](this[_0xef553b(0x21f)](_0x142f8d));}[_0x29f9c6(0x249)](_0x591e25){const _0xff792d=_0x29f9c6;return!!this[_0xff792d(0x22a)][_0xff792d(0x21d)](_0x3894de=>_0x3894de[_0xff792d(0x1f9)]['id'][_0xff792d(0x23d)](_0x591e25));}[_0x29f9c6(0x240)](_0x12cf24,_0x163b01){const _0x342833=_0x29f9c6,_0x125964=this[_0x342833(0x21f)](_0x12cf24);if(!(_0x125964 instanceof _0x19a6e2))return void _0x18ae10(_0x342833(0x227),{'replyId':_0x12cf24,'partIndex':_0x163b01});const _0x3ded6f=_0x125964[_0x342833(0x244)](_0x163b01);_0x3ded6f?_0x56c1a7(_0x3ded6f[_0x342833(0x226)],0x14,this[_0x342833(0x226)][_0x342833(0x210)],!0x0,!0x0):_0x18ae10(_0x342833(0x22b),{'replyId':_0x12cf24,'partIndex':_0x163b01});}[_0x29f9c6(0x242)](){const _0x30452a=_0x29f9c6;this[_0x30452a(0x235)]({'tag':_0x30452a(0x20a),'attributes':{'class':['ck',_0x30452a(0x247)]},'children':this[_0x30452a(0x230)]()});}[_0x29f9c6(0x230)](){const _0x311318=_0x29f9c6,_0x20ad84=this[_0x311318(0x22c)]();return[this[_0x311318(0x1f4)](),_0x20ad84,this[_0x311318(0x219)]()];}[_0x29f9c6(0x22c)](){const _0x3228b9=_0x29f9c6,_0x462f63=new _0x14d75a(this[_0x3228b9(0x216)],_0xdbf875[_0x3228b9(0x211)]);return _0x462f63[_0x3228b9(0x22d)]({'attributes':{'class':[this[_0x3228b9(0x24c)]['if'](_0x3228b9(0x204),_0x3228b9(0x23e),_0x3c93c1=>!_0x3c93c1)]}}),_0x462f63;}[_0x29f9c6(0x1f4)](){const _0x52b2b7=_0x29f9c6,_0x3452f6=new _0x21bf49(this[_0x52b2b7(0x216)]);return _0x3452f6[_0x52b2b7(0x235)]({'tag':_0x52b2b7(0x20a),'attributes':{'class':['ck',_0x52b2b7(0x239),this[_0x52b2b7(0x24c)]['if'](_0x52b2b7(0x204),_0x52b2b7(0x23e))]},'children':this[_0x52b2b7(0x22a)]}),_0x3452f6;}[_0x29f9c6(0x219)](){const _0x3cdf15=_0x29f9c6,_0xf2a96d=new _0x21bf49(this[_0x3cdf15(0x216)]);return _0xf2a96d[_0x3cdf15(0x235)]({'tag':_0x3cdf15(0x20a),'attributes':{'class':['ck',_0x3cdf15(0x21c),this[_0x3cdf15(0x24c)]['if'](_0x3cdf15(0x23b),_0x3cdf15(0x23e),_0x496300=>!_0x496300)]},'children':this[_0x3cdf15(0x205)]()}),_0xf2a96d;}[_0x29f9c6(0x205)](){const _0x23f1c8=_0x29f9c6,_0x21e1b1=new _0x5296ba();return _0x21e1b1[_0x23f1c8(0x213)]=!0x0,[_0x21e1b1,{'tag':_0x23f1c8(0x218),'attributes':{'class':['ck',_0x23f1c8(0x207)]},'children':[{'text':this[_0x23f1c8(0x24c)]['to'](_0x23f1c8(0x22f))}]}];}[_0x29f9c6(0x21f)](_0x538e8){const _0x3bde3c=_0x29f9c6,_0x1ab6b8=this[_0x3bde3c(0x22a)][_0x3bde3c(0x21d)](_0x4eb13c=>_0x4eb13c[_0x3bde3c(0x1f9)]['id'][_0x3bde3c(0x23d)](_0x538e8));if(!_0x1ab6b8)throw new _0x417f61(_0x3bde3c(0x220),this,{'id':_0x538e8});return _0x1ab6b8;}[_0x29f9c6(0x238)](_0x4b860a){const _0x62fbad=_0x29f9c6;this[_0x62fbad(0x243)](_0x62fbad(0x22f),_0x4b860a);}[_0x29f9c6(0x1fd)](_0x58cd05){const _0xcea42e=_0x29f9c6;this[_0xcea42e(0x243)](_0xcea42e(0x204),_0x58cd05);}[_0x29f9c6(0x224)](){const _0x4c0f1c=_0x29f9c6;this[_0x4c0f1c(0x233)][_0x4c0f1c(0x200)]();}[_0x29f9c6(0x1f7)](){const _0x133d58=_0x29f9c6;this[_0x133d58(0x233)][_0x133d58(0x1f5)]();}}
23
+ function _0x4b59(){const _0x500aa4=['4339735SxnRJA','ai-suggestion-reply','aiFeed','element','includes','destroy','children','interaction-header','div','_setupTemplate','updateWebSources','_bodyCollection','markAsDone','ck-ai-chat__feed','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','setSuggestionPartActive','delegate','setPartActive','117CwBEBy','startAutoScroll','custom-element','9799647FvzHLk','clear','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','updatePartState','updateSuggestionPartState','2oMAcge','extendTemplate','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','bindTemplate','getItemIds','ck-ai-chat__loader','updateSources','isVisible','isPending','parentElement','remove','scrollManager','span','ck-ai-chat__feed__items','options','313571vNQUsC','loadingMessage','4007129FRcBgh','_createLoaderChildren','bind','updateSuggestionItem','locale','forEach','isTrackChangesOn','264132PubMzQ','start','find','toggleLoadingSkeleton','set','filter','hasItem','_createTemplateChildren','addItem','scrollToSuggestion','18492sJGlSw','removeItem','stopAutoScroll','user-message','ai-chat-feed-view-item-not-a-reply-item','_createFeedLoader','ai-chat-feed-view-item-not-a-suggestion-item','setTemplate','markItemAsDone','setLoadingMessage','add','ck-hidden','isLoadingSkeletonVisible','_createFeedItems','194630GHkGKu','getPartView','ai-reply','getItemById','createCollection','render','map','ai-chat-feed-view-item-not-found','6kFPJvY','8TrNgoC','updateReplyItem','stop','_createSkeletonLoader','ck-ai-chat__loader-text','updateContent'];_0x4b59=function(){return _0x500aa4;};return _0x4b59();}const _0x10a493=_0x2e0e;(function(_0x25e4d6,_0x2bf15d){const _0x249c50=_0x2e0e,_0x2a56ad=_0x25e4d6();while(!![]){try{const _0x4d52f5=-parseInt(_0x249c50(0x191))/0x1*(parseInt(_0x249c50(0x1db))/0x2)+-parseInt(_0x249c50(0x19a))/0x3+-parseInt(_0x249c50(0x1a4))/0x4+parseInt(_0x249c50(0x1c1))/0x5*(-parseInt(_0x249c50(0x1ba))/0x6)+-parseInt(_0x249c50(0x193))/0x7*(-parseInt(_0x249c50(0x1bb))/0x8)+parseInt(_0x249c50(0x1d3))/0x9*(parseInt(_0x249c50(0x1b2))/0xa)+parseInt(_0x249c50(0x1d6))/0xb;if(_0x4d52f5===_0x2bf15d)break;else _0x2a56ad['push'](_0x2a56ad['shift']());}catch(_0x560328){_0x2a56ad['push'](_0x2a56ad['shift']());}}}(_0x4b59,0x6bf2e));import{CKEditorError as _0x233a99,logWarning as _0x58392b,scrollAncestorsToShowTarget as _0x58140d}from'ckeditor5/src/utils.js';import{View as _0x392094}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x42fb04}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x4b54d4}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x2c12a0}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x308692}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x324abc}from'./feed/aichatfeederroritemview.js';function _0x2e0e(_0x90b9a0,_0x4ccdb9){const _0x4b5955=_0x4b59();return _0x2e0e=function(_0x2e0ef5,_0x4bdeaf){_0x2e0ef5=_0x2e0ef5-0x18f;let _0x4627d4=_0x4b5955[_0x2e0ef5];return _0x4627d4;},_0x2e0e(_0x90b9a0,_0x4ccdb9);}import{AIChatFeedInteractionHeaderView as _0xc22c09}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x2607da}from'../../aicore/utils/scrollmanager.js';import{AISkeletonView as _0x4a8374,SKELETON_DEFINITIONS as _0x3122ce}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x553365}from'../../aicore/ui/aispinner.js';import{AIChatFeedCustomElementView as _0x58a46c}from'./feed/aichatfeedcustomelementview.js';import'../../../theme/aichat/aichatfeed.css';export class AIChatFeedView extends _0x392094{[_0x10a493(0x1c7)];[_0x10a493(0x1e6)];[_0x10a493(0x1cc)];constructor(_0x1a5456,_0x2b07c0){const _0x2d3c9b=_0x10a493;super(_0x1a5456),this[_0x2d3c9b(0x1cc)]=_0x2b07c0,this[_0x2d3c9b(0x19e)](_0x2d3c9b(0x1e3),!0x1),this[_0x2d3c9b(0x19e)](_0x2d3c9b(0x192),''),this[_0x2d3c9b(0x19e)](_0x2d3c9b(0x1b0),!0x1),this[_0x2d3c9b(0x19e)](_0x2d3c9b(0x199),!0x1),this[_0x2d3c9b(0x1c7)]=this[_0x2d3c9b(0x1b6)](),this[_0x2d3c9b(0x1c7)][_0x2d3c9b(0x1d1)](..._0x42fb04)['to'](this),this[_0x2d3c9b(0x1ca)]();}[_0x10a493(0x1b7)](){const _0x4480d4=_0x10a493;super[_0x4480d4(0x1b7)](),this[_0x4480d4(0x1e6)]=new _0x2607da(this[_0x4480d4(0x1c4)]);}[_0x10a493(0x1c6)](){const _0xb0c068=_0x10a493;super[_0xb0c068(0x1c6)](),this[_0xb0c068(0x1e6)][_0xb0c068(0x1c6)]();}[_0x10a493(0x1d7)](){const _0x326e86=_0x10a493;this[_0x326e86(0x1c7)][_0x326e86(0x1d7)]();}[_0x10a493(0x1a2)](_0x438e9b,_0x5e860e){const _0x344e85=_0x10a493;let _0x98172c;return _0x344e85(0x1b4)===_0x438e9b?_0x98172c=new _0x2c12a0(this[_0x344e85(0x197)],_0x5e860e,this[_0x344e85(0x1cc)]):_0x344e85(0x1c2)===_0x438e9b?(_0x98172c=new _0x4b54d4(this[_0x344e85(0x197)],_0x5e860e,this[_0x344e85(0x1cc)]),_0x98172c[_0x344e85(0x195)](_0x344e85(0x199))['to'](this)):_0x98172c=_0x344e85(0x1a7)===_0x438e9b?new _0x308692(this[_0x344e85(0x197)],_0x5e860e,this[_0x344e85(0x1cc)]):_0x344e85(0x1c8)===_0x438e9b?new _0xc22c09(this[_0x344e85(0x197)],_0x5e860e):_0x344e85(0x1d5)===_0x438e9b?new _0x58a46c(_0x5e860e):new _0x324abc(_0x5e860e),this[_0x344e85(0x1c7)][_0x344e85(0x1ae)](_0x98172c),_0x98172c;}async[_0x10a493(0x1bc)]({id:_0x9fccc5,parsedContent:_0x35161b,renderingStrategy:_0x4a216e,abortSignal:_0x5721db}){const _0x2b3312=_0x10a493,_0x36e7ff=this[_0x2b3312(0x1b5)](_0x9fccc5);if(!(_0x36e7ff instanceof _0x2c12a0))throw new _0x233a99(_0x2b3312(0x1a8),null,{'itemView':_0x36e7ff,'id':_0x9fccc5,'parsedContent':_0x35161b});await _0x36e7ff[_0x2b3312(0x1c0)]({'parsedContent':_0x35161b,'renderingStrategy':_0x4a216e,'abortSignal':_0x5721db});}async[_0x10a493(0x1cb)](_0x178917,_0x3096bc){const _0x55bf89=_0x10a493,_0x1ff9c1=this[_0x55bf89(0x1b5)](_0x178917);if(_0x1ff9c1 instanceof _0x4b54d4)_0x1ff9c1[_0x55bf89(0x1e1)](_0x3096bc);else{if(!(_0x1ff9c1 instanceof _0x2c12a0))throw new _0x233a99(_0x55bf89(0x1dd),null,{'itemView':_0x1ff9c1,'id':_0x178917,'sources':_0x3096bc});_0x1ff9c1[_0x55bf89(0x1e1)](_0x3096bc);}}async[_0x10a493(0x196)]({id:_0x41a798,parts:_0x1aa361,renderingStrategy:_0x4cbc56,abortSignal:_0x371fb5}){const _0x250f3a=_0x10a493,_0x1d1f79=this[_0x250f3a(0x1b5)](_0x41a798);if(!(_0x1d1f79 instanceof _0x4b54d4))throw new _0x233a99(_0x250f3a(0x1aa),null,{'itemView':_0x1d1f79,'id':_0x41a798,'parts':_0x1aa361});await _0x1d1f79[_0x250f3a(0x1c0)]({'parts':_0x1aa361,'renderingStrategy':_0x4cbc56,'abortSignal':_0x371fb5});}[_0x10a493(0x1da)]({id:_0x27db2a,index:_0x1b74f8,state:_0x58d682}){const _0x1d37b4=_0x10a493,_0x3732fc=this[_0x1d37b4(0x1b5)](_0x27db2a);if(!(_0x3732fc instanceof _0x4b54d4))throw new _0x233a99(_0x1d37b4(0x1aa),this,{'id':_0x27db2a});_0x3732fc[_0x1d37b4(0x1d9)](_0x1b74f8,_0x58d682);}[_0x10a493(0x1d0)]({id:_0x9edf3e,index:_0x463481,isActive:_0x174aff}){const _0x4dad85=_0x10a493,_0x2c7bb3=this[_0x4dad85(0x1b5)](_0x9edf3e);if(!(_0x2c7bb3 instanceof _0x4b54d4))throw new _0x233a99(_0x4dad85(0x1aa),this,{'id':_0x9edf3e});this[_0x4dad85(0x1c7)][_0x4dad85(0x19f)](_0x3335b2=>_0x3335b2 instanceof _0x4b54d4)[_0x4dad85(0x198)](_0x5205ca=>{const _0x34a900=_0x4dad85;_0x5205ca[_0x34a900(0x1d2)](!0x1);}),_0x2c7bb3[_0x4dad85(0x1d2)](_0x463481,_0x174aff);}[_0x10a493(0x1ac)](_0x1f2971){const _0x33659b=_0x10a493;this[_0x33659b(0x1b5)](_0x1f2971)[_0x33659b(0x1cd)]();}[_0x10a493(0x1df)](){const _0x2c81cc=_0x10a493;return this[_0x2c81cc(0x1c7)][_0x2c81cc(0x1b8)](_0x395d06=>_0x395d06[_0x2c81cc(0x190)]['id']);}[_0x10a493(0x1a5)](_0x1ab1b3){const _0x400b99=_0x10a493;this[_0x400b99(0x1c7)][_0x400b99(0x1e5)](this[_0x400b99(0x1b5)](_0x1ab1b3));}[_0x10a493(0x1a0)](_0x2f3821){const _0x10a5d7=_0x10a493;return!!this[_0x10a5d7(0x1c7)][_0x10a5d7(0x19c)](_0x455ff4=>_0x455ff4[_0x10a5d7(0x190)]['id'][_0x10a5d7(0x1c5)](_0x2f3821));}[_0x10a493(0x1a3)](_0xf65b0,_0x23a259){const _0x2a50a6=_0x10a493,_0x4b2a93=this[_0x2a50a6(0x1b5)](_0xf65b0);if(!(_0x4b2a93 instanceof _0x4b54d4))return void _0x58392b(_0x2a50a6(0x1cf),{'replyId':_0xf65b0,'partIndex':_0x23a259});const _0xb81aec=_0x4b2a93[_0x2a50a6(0x1b3)](_0x23a259);_0xb81aec?_0x58140d(_0xb81aec[_0x2a50a6(0x1c4)],0x14,this[_0x2a50a6(0x1c4)][_0x2a50a6(0x1e4)],!0x0,!0x0):_0x58392b(_0x2a50a6(0x1d8),{'replyId':_0xf65b0,'partIndex':_0x23a259});}[_0x10a493(0x1ca)](){const _0x4e9acb=_0x10a493;this[_0x4e9acb(0x1ab)]({'tag':_0x4e9acb(0x1c9),'attributes':{'class':['ck',_0x4e9acb(0x1ce)]},'children':this[_0x4e9acb(0x1a1)]()});}[_0x10a493(0x1a1)](){const _0x44037b=_0x10a493,_0x3a0d98=this[_0x44037b(0x1be)]();return[this[_0x44037b(0x1b1)](),_0x3a0d98,this[_0x44037b(0x1a9)]()];}[_0x10a493(0x1be)](){const _0x4c5ba0=_0x10a493,_0x401c32=new _0x4a8374(this[_0x4c5ba0(0x197)],_0x3122ce[_0x4c5ba0(0x1c3)]);return _0x401c32[_0x4c5ba0(0x1dc)]({'attributes':{'class':[this[_0x4c5ba0(0x1de)]['if'](_0x4c5ba0(0x1b0),_0x4c5ba0(0x1af),_0x559701=>!_0x559701)]}}),_0x401c32;}[_0x10a493(0x1b1)](){const _0x4d3548=_0x10a493,_0x17dad2=new _0x392094(this[_0x4d3548(0x197)]);return _0x17dad2[_0x4d3548(0x1ab)]({'tag':_0x4d3548(0x1c9),'attributes':{'class':['ck',_0x4d3548(0x18f),this[_0x4d3548(0x1de)]['if'](_0x4d3548(0x1b0),_0x4d3548(0x1af))]},'children':this[_0x4d3548(0x1c7)]}),_0x17dad2;}[_0x10a493(0x1a9)](){const _0x3dba30=_0x10a493,_0x224ee4=new _0x392094(this[_0x3dba30(0x197)]);return _0x224ee4[_0x3dba30(0x1ab)]({'tag':_0x3dba30(0x1c9),'attributes':{'class':['ck',_0x3dba30(0x1e0),this[_0x3dba30(0x1de)]['if'](_0x3dba30(0x1e3),_0x3dba30(0x1af),_0x1a9cd0=>!_0x1a9cd0)]},'children':this[_0x3dba30(0x194)]()}),_0x224ee4;}[_0x10a493(0x194)](){const _0x448445=_0x10a493,_0x1ea10d=new _0x553365();return _0x1ea10d[_0x448445(0x1e2)]=!0x0,[_0x1ea10d,{'tag':_0x448445(0x1e7),'attributes':{'class':['ck',_0x448445(0x1bf)]},'children':[{'text':this[_0x448445(0x1de)]['to'](_0x448445(0x192))}]}];}[_0x10a493(0x1b5)](_0x430bd7){const _0x4d688c=_0x10a493,_0x224bf8=this[_0x4d688c(0x1c7)][_0x4d688c(0x19c)](_0x3673c3=>_0x3673c3[_0x4d688c(0x190)]['id'][_0x4d688c(0x1c5)](_0x430bd7));if(!_0x224bf8)throw new _0x233a99(_0x4d688c(0x1b9),this,{'id':_0x430bd7});return _0x224bf8;}[_0x10a493(0x1ad)](_0x5cf345){const _0x50d06d=_0x10a493;this[_0x50d06d(0x19e)](_0x50d06d(0x192),_0x5cf345);}[_0x10a493(0x19d)](_0x27c9e6){const _0xde8cb3=_0x10a493;this[_0xde8cb3(0x19e)](_0xde8cb3(0x1b0),_0x27c9e6);}[_0x10a493(0x1d4)](){const _0x265e3b=_0x10a493;this[_0x265e3b(0x1e6)][_0x265e3b(0x19b)]();}[_0x10a493(0x1a6)](){const _0x4e77c1=_0x10a493;this[_0x4e77c1(0x1e6)][_0x4e77c1(0x1bd)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x224d7=_0x4daf;function _0xf0f8(){const _0x22cb9e=['135qrSUSU','add','8466408vtdSNG','ck-ai-header\x20ck-ai-header_chat','65154YkOAbS','_createStartConversationButton','children','AI_CHAT_LABEL_NEW_CHAT','525VflFsG','6224000uhvQJU','489750MABLbB','52112yBbCVN','resizeButton','isMaximized','startConversation','AI_CHAT_HEADING','1699892SIDhII','16ECGFNW','638ZpztCl','conversationStartButton','execute','set','locale','fire','ck-ai-chat__start-conversation','7354675ImNmHw'];_0xf0f8=function(){return _0x22cb9e;};return _0xf0f8();}(function(_0x33b5c0,_0x40474a){const _0x458c8d=_0x4daf,_0x480f1c=_0x33b5c0();while(!![]){try{const _0x29eac1=-parseInt(_0x458c8d(0x11c))/0x1+parseInt(_0x458c8d(0x117))/0x2*(-parseInt(_0x458c8d(0x126))/0x3)+-parseInt(_0x458c8d(0x115))/0x4+parseInt(_0x458c8d(0x125))/0x5+parseInt(_0x458c8d(0x12a))/0x6*(-parseInt(_0x458c8d(0x114))/0x7)+parseInt(_0x458c8d(0x11d))/0x8*(parseInt(_0x458c8d(0x128))/0x9)+-parseInt(_0x458c8d(0x116))/0xa*(-parseInt(_0x458c8d(0x11e))/0xb);if(_0x29eac1===_0x40474a)break;else _0x480f1c['push'](_0x480f1c['shift']());}catch(_0x2b8991){_0x480f1c['push'](_0x480f1c['shift']());}}}(_0xf0f8,0xe7f38));import{ButtonView as _0x4bd666,FormHeaderView as _0x463cd4}from'ckeditor5/src/ui.js';import{IconPlus as _0x554696,IconAIChat as _0x39b37d}from'ckeditor5/src/icons.js';import{getTranslation as _0x1f6714}from'../../aicore/utils/common-translations.js';import{createResizeButton as _0x29f4f6}from'../../aicore/utils/createresizebutton.js';import'../../../theme/common/aiheader.css';function _0x4daf(_0xe6826,_0x44d37c){const _0xf0f8a5=_0xf0f8();return _0x4daf=function(_0x4dafdf,_0x259020){_0x4dafdf=_0x4dafdf-0x113;let _0xfd5fbf=_0xf0f8a5[_0x4dafdf];return _0xfd5fbf;},_0x4daf(_0xe6826,_0x44d37c);}export class AIChatHeaderView extends _0x463cd4{[_0x224d7(0x11f)];[_0x224d7(0x118)];constructor(_0x26a1cc,_0x16dca1){const _0x529c18=_0x224d7;super(_0x26a1cc,{'label':_0x1f6714(_0x26a1cc,_0x529c18(0x11b)),'class':_0x529c18(0x129),'icon':_0x39b37d}),this[_0x529c18(0x121)](_0x529c18(0x119),!0x1),this[_0x529c18(0x11f)]=this[_0x529c18(0x12b)](_0x26a1cc),this[_0x529c18(0x12c)][_0x529c18(0x127)](this[_0x529c18(0x11f)]),_0x16dca1&&(this[_0x529c18(0x118)]=_0x29f4f6(_0x26a1cc,this),this[_0x529c18(0x12c)][_0x529c18(0x127)](this[_0x529c18(0x118)]));}[_0x224d7(0x12b)](_0x4a6fca){const _0x4183a0=_0x224d7,_0x312429=new _0x4bd666(_0x4a6fca);return _0x312429[_0x4183a0(0x121)]({'label':_0x1f6714(this[_0x4183a0(0x122)],_0x4183a0(0x113)),'withText':!0x0,'icon':_0x554696,'class':_0x4183a0(0x124)}),_0x312429['on'](_0x4183a0(0x120),()=>{const _0x190716=_0x4183a0;this[_0x190716(0x123)](_0x190716(0x11a));}),_0x312429;}}
23
+ function _0x1adf(_0x4313e8,_0x10f2ed){const _0x579631=_0x5796();return _0x1adf=function(_0x1adf9e,_0x5e099b){_0x1adf9e=_0x1adf9e-0xc0;let _0x3a94e4=_0x579631[_0x1adf9e];return _0x3a94e4;},_0x1adf(_0x4313e8,_0x10f2ed);}const _0xde58bb=_0x1adf;(function(_0x437459,_0x4bc319){const _0x83e511=_0x1adf,_0x24b723=_0x437459();while(!![]){try{const _0x4b8f0d=parseInt(_0x83e511(0xcc))/0x1*(parseInt(_0x83e511(0xc0))/0x2)+-parseInt(_0x83e511(0xc5))/0x3+-parseInt(_0x83e511(0xc6))/0x4*(-parseInt(_0x83e511(0xcd))/0x5)+parseInt(_0x83e511(0xc9))/0x6+parseInt(_0x83e511(0xc7))/0x7*(-parseInt(_0x83e511(0xd1))/0x8)+parseInt(_0x83e511(0xd3))/0x9+-parseInt(_0x83e511(0xd8))/0xa;if(_0x4b8f0d===_0x4bc319)break;else _0x24b723['push'](_0x24b723['shift']());}catch(_0x48c1f7){_0x24b723['push'](_0x24b723['shift']());}}}(_0x5796,0xbe2bc));function _0x5796(){const _0x93c492=['children','add','resizeButton','startConversation','11272630AZqyvn','2386OTTsnF','ck-ai-header\x20ck-ai-header_chat','execute','set','locale','2852619GaxAmI','4gDeoRp','913185mwaCDg','AI_CHAT_LABEL_NEW_CHAT','4362888YPPThy','AI_CHAT_HEADING','isMaximized','1141ZRvzYU','4116205ErwDgi','_createStartConversationButton','conversationStartButton','fire','8LslABQ','ck-ai-chat__start-conversation','683361fxOwyo'];_0x5796=function(){return _0x93c492;};return _0x5796();}import{ButtonView as _0x5de471,FormHeaderView as _0x36cd7a}from'ckeditor5/src/ui.js';import{IconPlus as _0x405f7d,IconAIChat as _0x4a4603}from'ckeditor5/src/icons.js';import{getTranslation as _0x3f3742}from'../../aicore/utils/common-translations.js';import{createResizeButton as _0x393254}from'../../aicore/utils/createresizebutton.js';import'../../../theme/common/aiheader.css';export class AIChatHeaderView extends _0x36cd7a{[_0xde58bb(0xcf)];[_0xde58bb(0xd6)];constructor(_0x4aaa18,_0x2ddbb0){const _0x3dae24=_0xde58bb;super(_0x4aaa18,{'label':_0x3f3742(_0x4aaa18,_0x3dae24(0xca)),'class':_0x3dae24(0xc1),'icon':_0x4a4603}),this[_0x3dae24(0xc3)](_0x3dae24(0xcb),!0x1),this[_0x3dae24(0xcf)]=this[_0x3dae24(0xce)](_0x4aaa18),this[_0x3dae24(0xd4)][_0x3dae24(0xd5)](this[_0x3dae24(0xcf)]),_0x2ddbb0&&(this[_0x3dae24(0xd6)]=_0x393254(_0x4aaa18,this),this[_0x3dae24(0xd4)][_0x3dae24(0xd5)](this[_0x3dae24(0xd6)]));}[_0xde58bb(0xce)](_0xcc17fd){const _0x28b045=_0xde58bb,_0x54cd19=new _0x5de471(_0xcc17fd);return _0x54cd19[_0x28b045(0xc3)]({'label':_0x3f3742(this[_0x28b045(0xc4)],_0x28b045(0xc8)),'withText':!0x0,'icon':_0x405f7d,'class':_0x28b045(0xd2)}),_0x54cd19['on'](_0x28b045(0xc2),()=>{const _0x5e5978=_0x28b045;this[_0x5e5978(0xd0)](_0x5e5978(0xd7));}),_0x54cd19;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x2af52b=_0x49fd;(function(_0x29d7e2,_0x24bccd){var _0x113be2=_0x49fd,_0x4676b8=_0x29d7e2();while(!![]){try{var _0x2f2c7b=-parseInt(_0x113be2(0xd3))/0x1*(parseInt(_0x113be2(0xd7))/0x2)+-parseInt(_0x113be2(0xe8))/0x3+parseInt(_0x113be2(0xe0))/0x4*(parseInt(_0x113be2(0xd6))/0x5)+-parseInt(_0x113be2(0xe2))/0x6*(parseInt(_0x113be2(0xeb))/0x7)+parseInt(_0x113be2(0xe7))/0x8+-parseInt(_0x113be2(0xce))/0x9*(parseInt(_0x113be2(0xdc))/0xa)+-parseInt(_0x113be2(0xd8))/0xb*(-parseInt(_0x113be2(0xe3))/0xc);if(_0x2f2c7b===_0x24bccd)break;else _0x4676b8['push'](_0x4676b8['shift']());}catch(_0x4b3a82){_0x4676b8['push'](_0x4676b8['shift']());}}}(_0x44e2,0x1d382));import{View as _0x29e3d7,BodyCollection as _0x45cd85}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x594067}from'../utils/eventnames.js';import{AIChatFeedView as _0x48bd79}from'./aichatfeedview.js';import{AIChatControlsView as _0x1fcef9}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x29dff1}from'./aichatheaderview.js';import{AIDisclaimerView as _0x5db01f}from'../../aicore/ui/aidisclaimerview.js';import'../../../theme/common/ainotification.css';import'../../../theme/common/aibutton.css';import'../../../theme/common/aitrackchanges.css';function _0x49fd(_0x4ceb6a,_0x3044ca){var _0x44e2c2=_0x44e2();return _0x49fd=function(_0x49fd25,_0x42ec31){_0x49fd25=_0x49fd25-0xce;var _0x2f80d5=_0x44e2c2[_0x49fd25];return _0x2f80d5;},_0x49fd(_0x4ceb6a,_0x3044ca);}function _0x44e2(){var _0x20ccf3=['contextResourcesSearchInputVisibleFrom','chatHeader','_bodyCollection','267200ASuAtj','680838fOnQBY','ck-rounded-corners','delegate','7xwRJwd','chatFeed','9zowmPT','div','ck-reset_all','populateSourceResourceBalloon','detachFromDom','1RfQmFS','attachToDom','setTemplate','260qzAPgn','25158SQKaPJ','142219zvyQlN','chatDisclaimer','chatControls','uiLanguageDirection','607310qPMeov','closeSourceResourceBalloon','showResizeButton','ck-ai-chat','13100SAdhTt','destroy','874644grVBmO','336HJyBqr'];_0x44e2=function(){return _0x20ccf3;};return _0x44e2();}export class AIChatView extends _0x29e3d7{[_0x2af52b(0xe5)];[_0x2af52b(0xec)];[_0x2af52b(0xda)];[_0x2af52b(0xd9)];[_0x2af52b(0xe6)];constructor(_0x484fcb,_0x1be2f4){var _0x1daf06=_0x2af52b;super(_0x484fcb),this[_0x1daf06(0xe6)]=new _0x45cd85(_0x484fcb),this[_0x1daf06(0xe6)][_0x1daf06(0xd4)](),this[_0x1daf06(0xe5)]=new _0x29dff1(_0x484fcb,_0x1be2f4[_0x1daf06(0xde)]),this[_0x1daf06(0xe5)][_0x1daf06(0xea)](..._0x594067)['to'](this),this[_0x1daf06(0xec)]=new _0x48bd79(_0x484fcb,this[_0x1daf06(0xe6)]),this[_0x1daf06(0xec)][_0x1daf06(0xea)](..._0x594067)['to'](this),this[_0x1daf06(0xda)]=new _0x1fcef9(_0x484fcb,{'bodyCollection':this[_0x1daf06(0xe6)],'contextResourcesSearchInputVisibleFrom':_0x1be2f4[_0x1daf06(0xe4)]}),this[_0x1daf06(0xda)][_0x1daf06(0xea)](..._0x594067)['to'](this),this[_0x1daf06(0xd9)]=new _0x5db01f(_0x484fcb),this[_0x1daf06(0xd5)]({'tag':_0x1daf06(0xcf),'attributes':{'class':['ck',_0x1daf06(0xd0),_0x1daf06(0xdf),_0x1daf06(0xe9)],'dir':_0x484fcb[_0x1daf06(0xdb)]},'children':[this[_0x1daf06(0xe5)],this[_0x1daf06(0xec)],this[_0x1daf06(0xda)],this[_0x1daf06(0xd9)]]});}[_0x2af52b(0xd1)](_0xc5d2ab,_0x5cfb13,_0x31ea4d,_0x3293e1){var _0x36c4cd=_0x2af52b;this[_0x36c4cd(0xda)][_0x36c4cd(0xd1)](_0xc5d2ab,_0x5cfb13,_0x31ea4d,_0x3293e1);}[_0x2af52b(0xdd)](_0x10f037){var _0x218fa3=_0x2af52b;this[_0x218fa3(0xda)][_0x218fa3(0xdd)](_0x10f037);}[_0x2af52b(0xe1)](){var _0xc883e7=_0x2af52b;this[_0xc883e7(0xe6)][_0xc883e7(0xd2)](),super[_0xc883e7(0xe1)]();}}
23
+ var _0x1ae93b=_0x5c94;(function(_0x19ca19,_0x45b274){var _0x13ac03=_0x5c94,_0x456a15=_0x19ca19();while(!![]){try{var _0x41b534=parseInt(_0x13ac03(0x129))/0x1+-parseInt(_0x13ac03(0x130))/0x2*(parseInt(_0x13ac03(0x131))/0x3)+-parseInt(_0x13ac03(0x135))/0x4*(parseInt(_0x13ac03(0x13c))/0x5)+parseInt(_0x13ac03(0x13b))/0x6+parseInt(_0x13ac03(0x12f))/0x7*(-parseInt(_0x13ac03(0x125))/0x8)+-parseInt(_0x13ac03(0x134))/0x9*(parseInt(_0x13ac03(0x124))/0xa)+parseInt(_0x13ac03(0x137))/0xb;if(_0x41b534===_0x45b274)break;else _0x456a15['push'](_0x456a15['shift']());}catch(_0x472524){_0x456a15['push'](_0x456a15['shift']());}}}(_0x2692,0xea7c2));import{View as _0x2656fd,BodyCollection as _0x199912}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x321fcb}from'../utils/eventnames.js';import{AIChatFeedView as _0x516bed}from'./aichatfeedview.js';import{AIChatControlsView as _0x2c0730}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x527d7d}from'./aichatheaderview.js';import{AIDisclaimerView as _0x3a4631}from'../../aicore/ui/aidisclaimerview.js';import'../../../theme/common/ainotification.css';import'../../../theme/common/aibutton.css';import'../../../theme/common/aitrackchanges.css';function _0x5c94(_0x40fec0,_0x4e1206){var _0x26924d=_0x2692();return _0x5c94=function(_0x5c9469,_0x4c403d){_0x5c9469=_0x5c9469-0x122;var _0x2a056c=_0x26924d[_0x5c9469];return _0x2a056c;},_0x5c94(_0x40fec0,_0x4e1206);}function _0x2692(){var _0x5847c5=['showResizeButton','attachToDom','contextResourcesSearchInputVisibleFrom','_bodyCollection','350ffkySL','3772534KtYkby','3WUCayk','setTemplate','uiLanguageDirection','369gXXIwe','53616PVFwPM','chatHeader','38046613XzUIBT','chatDisclaimer','delegate','chatFeed','9081078rdJhrC','110teeYlR','chatControls','ck-rounded-corners','ck-reset_all','destroy','closeSourceResourceBalloon','375970wyrLrH','99208dziGRz','detachFromDom','div','ck-ai-chat','330836GzGRvi','populateSourceResourceBalloon'];_0x2692=function(){return _0x5847c5;};return _0x2692();}export class AIChatView extends _0x2656fd{[_0x1ae93b(0x136)];[_0x1ae93b(0x13a)];[_0x1ae93b(0x13d)];[_0x1ae93b(0x138)];[_0x1ae93b(0x12e)];constructor(_0x282ada,_0x24f810){var _0x39b2a6=_0x1ae93b;super(_0x282ada),this[_0x39b2a6(0x12e)]=new _0x199912(_0x282ada),this[_0x39b2a6(0x12e)][_0x39b2a6(0x12c)](),this[_0x39b2a6(0x136)]=new _0x527d7d(_0x282ada,_0x24f810[_0x39b2a6(0x12b)]),this[_0x39b2a6(0x136)][_0x39b2a6(0x139)](..._0x321fcb)['to'](this),this[_0x39b2a6(0x13a)]=new _0x516bed(_0x282ada,this[_0x39b2a6(0x12e)]),this[_0x39b2a6(0x13a)][_0x39b2a6(0x139)](..._0x321fcb)['to'](this),this[_0x39b2a6(0x13d)]=new _0x2c0730(_0x282ada,{'bodyCollection':this[_0x39b2a6(0x12e)],'contextResourcesSearchInputVisibleFrom':_0x24f810[_0x39b2a6(0x12d)]}),this[_0x39b2a6(0x13d)][_0x39b2a6(0x139)](..._0x321fcb)['to'](this),this[_0x39b2a6(0x138)]=new _0x3a4631(_0x282ada),this[_0x39b2a6(0x132)]({'tag':_0x39b2a6(0x127),'attributes':{'class':['ck',_0x39b2a6(0x13f),_0x39b2a6(0x128),_0x39b2a6(0x13e)],'dir':_0x282ada[_0x39b2a6(0x133)]},'children':[this[_0x39b2a6(0x136)],this[_0x39b2a6(0x13a)],this[_0x39b2a6(0x13d)],this[_0x39b2a6(0x138)]]});}[_0x1ae93b(0x12a)](_0x3cabb3,_0x5b8e26,_0x495b1b,_0x4e46b4){var _0x8a335b=_0x1ae93b;this[_0x8a335b(0x13d)][_0x8a335b(0x12a)](_0x3cabb3,_0x5b8e26,_0x495b1b,_0x4e46b4);}[_0x1ae93b(0x123)](_0x2f54f9){var _0x3405cc=_0x1ae93b;this[_0x3405cc(0x13d)][_0x3405cc(0x123)](_0x2f54f9);}[_0x1ae93b(0x122)](){var _0x1ba2ae=_0x1ae93b;this[_0x1ba2ae(0x12e)][_0x1ba2ae(0x126)](),super[_0x1ba2ae(0x122)]();}}