@ckeditor/ckeditor5-ai 47.6.0-alpha.8 → 47.6.0

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 (318) 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 +15 -15
  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.js +1 -1
  180. package/src/aichat/model/aichatconversation.js +1 -1
  181. package/src/aichat/model/aichatinteraction.js +1 -1
  182. package/src/aichat/ui/aichatballoonview.js +1 -1
  183. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  184. package/src/aichat/ui/aichatfeedview.js +1 -1
  185. package/src/aichat/ui/aichatheaderview.js +1 -1
  186. package/src/aichat/ui/aichatview.js +1 -1
  187. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  188. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  189. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  190. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  191. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  192. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  193. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  194. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  195. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  196. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  197. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  198. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  199. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  200. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  201. package/src/aichat/ui/feed/aichatfeedcustomelementview.js +1 -1
  202. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  203. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  204. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  205. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  206. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  207. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  208. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  209. package/src/aichat/utils/eventnames.js +1 -1
  210. package/src/aichat/utils/promisequeue.js +1 -1
  211. package/src/aichathistory/aichathistory.js +1 -1
  212. package/src/aichathistory/aichathistorycontroller.js +1 -1
  213. package/src/aichathistory/aichathistoryui.js +1 -1
  214. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  215. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  216. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  217. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  218. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  219. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  220. package/src/aichatshortcuts/aichatshortcuts.js +1 -1
  221. package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
  222. package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
  223. package/src/aicore/aiconnector.js +1 -1
  224. package/src/aicore/aiediting.js +1 -1
  225. package/src/aicore/model/aicapabilities.js +1 -1
  226. package/src/aicore/model/aicontext.js +1 -1
  227. package/src/aicore/model/aiinteraction.js +1 -1
  228. package/src/aicore/model/aimodels.js +1 -1
  229. package/src/aicore/model/aireply.js +1 -1
  230. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  231. package/src/aicore/pipeline/airesponseparser.js +2 -2
  232. package/src/aicore/ui/aidisclaimerview.js +1 -1
  233. package/src/aicore/ui/aiskeleton.js +1 -1
  234. package/src/aicore/ui/aispinner.js +1 -1
  235. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  236. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  237. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  238. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
  239. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
  240. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
  241. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  242. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  243. package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
  244. package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
  245. package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
  246. package/src/aicore/utils/common-translations.js +1 -1
  247. package/src/aicore/utils/createresizebutton.js +1 -1
  248. package/src/aicore/utils/documentposition.js +1 -1
  249. package/src/aicore/utils/documentrange.js +1 -1
  250. package/src/aicore/utils/eventnames.js +1 -1
  251. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  252. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  253. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  254. package/src/aicore/utils/htmlparser.js +1 -1
  255. package/src/aicore/utils/htmlstreamer.js +1 -1
  256. package/src/aicore/utils/scrollmanager.js +1 -1
  257. package/src/aieditorintegration/aieditorintegration.js +1 -1
  258. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  259. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  260. package/src/aiquickactions/aiquickactions.js +1 -1
  261. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  262. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  263. package/src/aiquickactions/aiquickactionsui.js +1 -1
  264. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  265. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  266. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  267. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
  268. package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
  269. package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
  270. package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
  271. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  272. package/src/aireviewcore/aireviewcorecontroller.js +1 -1
  273. package/src/aireviewcore/aireviewcoreediting.js +1 -1
  274. package/src/aireviewcore/aireviewcoreui.js +1 -1
  275. package/src/aireviewcore/model/aireviewcheck.js +1 -1
  276. package/src/aireviewcore/model/aireviewchecklist.js +1 -1
  277. package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
  278. package/src/aireviewcore/model/aireviewcheckresultchange.js +1 -1
  279. package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
  280. package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
  281. package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
  282. package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
  283. package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
  284. package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
  285. package/src/aireviewcore/ui/aireviewcoregeneralerrorview.js +1 -1
  286. package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
  287. package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
  288. package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
  289. package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
  290. package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
  291. package/src/aireviewcore/ui/aireviewcoreview.js +1 -1
  292. package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
  293. package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +1 -1
  294. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  295. package/src/aireviewmode/aireviewmode.js +1 -1
  296. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  297. package/src/aireviewmode/aireviewmodeui.js +1 -1
  298. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  299. package/src/aireviewmode/model/aireviewcheckextra.js +1 -1
  300. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  301. package/src/aireviewmode/model/aireviewextracheckrun.js +1 -1
  302. package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
  303. package/src/aitabs/aitabs.js +1 -1
  304. package/src/aitabs/aitabsmainview.js +1 -1
  305. package/src/aitabs/tabs/aitabsview.js +1 -1
  306. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  307. package/src/aitabs/tabs/tabpanelview.js +1 -1
  308. package/src/aitranslate/aitranslate.js +1 -1
  309. package/src/aitranslate/aitranslatecontroller.js +1 -1
  310. package/src/aitranslate/aitranslateui.js +1 -1
  311. package/src/aitranslate/model/aitranslatecheck.js +1 -1
  312. package/src/aitranslate/model/aitranslatechecklist.js +1 -1
  313. package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
  314. package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
  315. package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
  316. package/src/errors.js +1 -1
  317. package/src/errorsmap.js +1 -1
  318. package/src/index.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x48699b=_0x4924;(function(_0x5c07f2,_0x53fbb8){const _0x53f5c8=_0x4924,_0x5a43fd=_0x5c07f2();while(!![]){try{const _0x5dce36=parseInt(_0x53f5c8(0x1e0))/0x1*(-parseInt(_0x53f5c8(0x1dc))/0x2)+parseInt(_0x53f5c8(0x243))/0x3*(parseInt(_0x53f5c8(0x205))/0x4)+parseInt(_0x53f5c8(0x211))/0x5*(parseInt(_0x53f5c8(0x21d))/0x6)+-parseInt(_0x53f5c8(0x208))/0x7*(parseInt(_0x53f5c8(0x24c))/0x8)+parseInt(_0x53f5c8(0x248))/0x9+parseInt(_0x53f5c8(0x22b))/0xa+-parseInt(_0x53f5c8(0x22f))/0xb*(parseInt(_0x53f5c8(0x26c))/0xc);if(_0x5dce36===_0x53fbb8)break;else _0x5a43fd['push'](_0x5a43fd['shift']());}catch(_0x337b96){_0x5a43fd['push'](_0x5a43fd['shift']());}}}(_0x1060,0xd0062));import{CKEditorError as _0xd55b33,ObservableMixin as _0x567111,uid as _0x18359b}from'ckeditor5/src/utils.js';import{AIContextItemType as _0x42f679,AIContextTextResourceType as _0x3064d4}from'../../aicore/model/aicontext.js';import{escape as _0x503150}from'es-toolkit/compat';import{errorsMap as _0x45071b}from'../../errorsmap.js';function _0x1060(){const _0x103c5e=['delete','type','_finishContextItemLoading','url-','mapContextItemsToRequestData','find','fire','substring','ai-chat-source-not-found','getResources','_toggleAddCurrentDocumentOptionVisibility','stack','ai-chat-file-upload-failed','File','ai-chat-context-invalid-data','start','_ownerId','abortController','_finishUploadOperation','urls','text/html','_addContextItem','_findSourceIdsByResourceId','_convertTextResourceToFile','12TXQOav','data','current-document','resources','_connector','message','contextSent','1032wzABHQ','ai-chat-resource-no-data','text/markdown','version','694kLVsjX','abort','_pendingContextItems','isCurrentDocumentInConversation','contextItemAdded','TOOL','addFilesToContext','isHidden','_updateResourceInContextState','customItems','ai-chat-document-upload-failed','_ongoingUploadOperations','isCurrentDocumentInContext','ai-chat-resource-load-failed','updateCurrentDocument','ai-request-aborted','uploadUrl','addSelectionToContext','addCurrentDocumentToContext','_ongoingUploads','removeFromContext','_config','name','resourceId','uploadDocument','uploadProgressChanged','_mapContextItemToRequestData','ai-chat-source-resources-load-failed','_conversationContextItems','_setAddContextOptionsDefaultState','TEXT','attributes','_removeContextItem','file-','forEach','removeSelectionFromContext','size','235220gCHXud','_createContextItemFromContent','has','4172735KTkXwN','sources','all','code','content','isInContext','addToConversationContext','MARKDOWN','ai-chat-context-unsupported-type','30NUwKTk','populateFromMessage','error','object','HTML','DOCUMENT','isSelectionInContext','_addToConversationContextItem','getPendingContextItems','addContextOptionsChanged','_isResourceInContext','uiId','1055454ogScAU','FILE','Current\x20document','set','init','values','uploadFile','_getCustomSourcesInitialState','string','mcpServerName','contextItemRemoved','files-','getData','text/plain','9309180yFgVXr','url','enabled','hidden','9441641MoaUDL','length','URL','label','loadSourceResources','end','getDocument','push','ai-chat-url-upload-failed','SELECTION','isReadOnly','addToolItemToContext','files','from','map','toolName','sessionId','fetchDocument','clearPendingContextItems','_addContextOptionsState','24nqLuYj','get','addUrlToContext','addResourceToContext','document','7235091Shqdnd','selection','getSentContextItems','_startUploadOperation','16pNbmLE','object\x20with\x20content\x20and\x20type\x20properties','resourceStateChanged','sourceResourcesLoaded','contextItemLoadingEnded','startsWith','getId','filter'];_0x1060=function(){return _0x103c5e;};return _0x1060();}function _0x4924(_0x866adb,_0x408c72){const _0x106007=_0x1060();return _0x4924=function(_0x4924b5,_0x2f3ae0){_0x4924b5=_0x4924b5-0x1d9;let _0xdcc635=_0x106007[_0x4924b5];return _0xdcc635;},_0x4924(_0x866adb,_0x408c72);}export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x48699b(0x1e4),_0x48699b(0x227),_0x48699b(0x250),_0x48699b(0x1db),_0x48699b(0x213),_0x48699b(0x21a),_0x48699b(0x24f),_0x48699b(0x24e),_0x48699b(0x1f9)];export class AIChatContext extends _0x567111(){[_0x48699b(0x1d9)];[_0x48699b(0x1f5)];[_0x48699b(0x264)];constructor({connector:_0x5e34e5,config:_0xab2104,ownerId:_0x572ada}){const _0x4dedea=_0x48699b;super(),this[_0x4dedea(0x1d9)]=_0x5e34e5,this[_0x4dedea(0x1f5)]=_0xab2104,this[_0x4dedea(0x264)]=_0x572ada;}[_0x48699b(0x221)](){const _0x309b57=_0x48699b;this[_0x309b57(0x1e2)]=new Map(),this[_0x309b57(0x1fc)]=new Map(),this[_0x309b57(0x1f3)]=new Map(),this[_0x309b57(0x1eb)]=new Map(),this[_0x309b57(0x1fd)]();}[_0x48699b(0x219)](){const _0x10b2ae=_0x48699b;return this[_0x10b2ae(0x1e2)];}async[_0x48699b(0x212)](_0x93a42d){const _0x2ef6bc=_0x48699b,_0x41728b=await this[_0x2ef6bc(0x206)](_0x93a42d);return this[_0x2ef6bc(0x218)](_0x41728b),_0x2ef6bc(0x26e)===_0x41728b[_0x2ef6bc(0x21c)]&&this[_0x2ef6bc(0x25e)](),_0x41728b;}async[_0x48699b(0x206)](_0xffdfe){const _0x407e07=_0x48699b;if(_0xffdfe[_0x407e07(0x255)]===_0x42f679[_0x407e07(0x216)]){const _0x148170=await this[_0x407e07(0x1d9)][_0x407e07(0x240)](this[_0x407e07(0x264)],_0xffdfe['id'])[_0x407e07(0x235)]();return{'id':_0x407e07(0x26e),'uiId':_0x407e07(0x26e),'label':_0x407e07(0x21f),'type':_0xffdfe[_0x407e07(0x255)],'content':_0x148170[_0x407e07(0x20c)],'hidden':this[_0x407e07(0x1fc)][_0x407e07(0x207)](_0x407e07(0x26e)),'version':_0x148170[_0x407e07(0x1ff)]?.[_0x407e07(0x1df)],'sessionId':_0x148170[_0x407e07(0x1ff)]?.[_0x407e07(0x23f)]};}if(_0xffdfe[_0x407e07(0x255)]===_0x42f679[_0x407e07(0x1e5)])return{'id':_0xffdfe['id'],'uiId':_0xffdfe['id'],'label':_0xffdfe[_0x407e07(0x26d)]?.[_0x407e07(0x232)]||_0xffdfe['id'],'type':_0x42f679[_0x407e07(0x1e5)],'mcpServerName':_0xffdfe[_0x407e07(0x226)],'toolName':_0xffdfe[_0x407e07(0x23e)],'data':_0xffdfe[_0x407e07(0x26d)]||{}};return{'id':_0xffdfe['id'],'uiId':_0xffdfe['id'],'label':_0xffdfe[_0x407e07(0x1ff)]?.[_0x407e07(0x232)]||_0xffdfe[_0x407e07(0x1f6)]||_0xffdfe[_0x407e07(0x22c)]||_0xffdfe['id'],'type':_0xffdfe[_0x407e07(0x255)],..._0xffdfe?.[_0x407e07(0x1ff)]?.[_0x407e07(0x1f7)]?{'resourceId':_0xffdfe[_0x407e07(0x1ff)]?.[_0x407e07(0x1f7)]}:{}};}[_0x48699b(0x24a)](){const _0x22ba52=_0x48699b;return new Map(this[_0x22ba52(0x1fc)]);}[_0x48699b(0x1f4)](_0x5a2fbe){const _0x2f0f3e=_0x48699b,_0x540e17=this[_0x2f0f3e(0x1e2)][_0x2f0f3e(0x244)](_0x5a2fbe);_0x540e17?.[_0x2f0f3e(0x239)]||this[_0x2f0f3e(0x200)](_0x5a2fbe);}[_0x48699b(0x241)](){const _0x8b7c24=_0x48699b;if(0x0===this[_0x8b7c24(0x1e2)][_0x8b7c24(0x204)])return;for(const _0x278339 of this[_0x8b7c24(0x1e2)][_0x8b7c24(0x222)]())this[_0x8b7c24(0x200)](_0x278339[_0x8b7c24(0x21c)]);const _0x2da619=this[_0x8b7c24(0x1fc)][_0x8b7c24(0x244)](_0x8b7c24(0x26e))||this[_0x8b7c24(0x1e2)][_0x8b7c24(0x244)](_0x8b7c24(0x26e));_0x2da619&&this[_0x8b7c24(0x269)]({..._0x2da619,'isReadOnly':!0x0,'hidden':!0x0});}[_0x48699b(0x20e)](_0x13a783){const _0x31813e=_0x48699b;for(const _0x5b8b05 of _0x13a783[_0x31813e(0x222)]())this[_0x31813e(0x218)](_0x5b8b05);this[_0x31813e(0x241)](),this[_0x31813e(0x25a)](_0x31813e(0x1db),{'contextItems':Array[_0x31813e(0x23c)](this[_0x31813e(0x24a)]()[_0x31813e(0x222)]())});}[_0x48699b(0x1ec)](){const _0x3e4c1d=_0x48699b;return this[_0x3e4c1d(0x1e2)][_0x3e4c1d(0x207)](_0x3e4c1d(0x26e));}[_0x48699b(0x217)](){const _0x9458f9=_0x48699b;return this[_0x9458f9(0x1e2)][_0x9458f9(0x207)](_0x9458f9(0x249));}[_0x48699b(0x1e3)](){const _0x356ff5=_0x48699b;return this[_0x356ff5(0x1fc)][_0x356ff5(0x207)](_0x356ff5(0x26e));}static[_0x48699b(0x258)](_0x38d469){const _0x1a2599=_0x48699b;return Array[_0x1a2599(0x23c)](_0x38d469[_0x1a2599(0x222)]())[_0x1a2599(0x23d)](_0x3909f5=>this[_0x1a2599(0x1fa)](_0x3909f5))[_0x1a2599(0x253)](_0xcb9736=>null!==_0xcb9736);}async[_0x48699b(0x1e6)](_0xcc5b89,_0x36b601,_0x17ab66=_0x42f679[_0x48699b(0x21e)]){const _0xfc984a=_0x48699b,_0x31da82=_0xfc984a(0x228)+_0x18359b();this[_0xfc984a(0x24b)](_0x31da82);try{await Promise[_0xfc984a(0x20a)](_0xcc5b89[_0xfc984a(0x23d)](async _0x3c8bbf=>{const _0x209b08=_0xfc984a,_0x26c281=_0x209b08(0x201)+_0x18359b(),_0x36e1f3=_0x503150(_0x3c8bbf[_0x209b08(0x1f6)]);try{this[_0x209b08(0x269)]({'type':_0x17ab66,'label':_0x36b601?.[_0x209b08(0x232)]||_0x36e1f3,'uiId':_0x26c281,'resourceId':_0x36b601?.[_0x209b08(0x1f7)]},!0x0);const _0x2c3191=this[_0x209b08(0x1d9)][_0x209b08(0x223)](this[_0x209b08(0x264)],_0x3c8bbf,_0x36b601);this[_0x209b08(0x1f3)][_0x209b08(0x220)](_0x26c281,_0x2c3191[_0x209b08(0x265)]);const {id:_0x1ee354}=await _0x2c3191[_0x209b08(0x252)]();this[_0x209b08(0x1f3)][_0x209b08(0x254)](_0x26c281),this[_0x209b08(0x256)]({'type':_0x17ab66,'id':_0x1ee354,'label':_0x36b601?.[_0x209b08(0x232)]||_0x36e1f3,'uiId':_0x26c281,'resourceId':_0x36b601?.[_0x209b08(0x1f7)]},!0x1);}catch(_0x5e3b97){this[_0x209b08(0x1f3)][_0x209b08(0x254)](_0x26c281);if(!(_0x5e3b97 instanceof _0xd55b33&&_0x5e3b97[_0x209b08(0x1da)][_0x209b08(0x251)](_0x209b08(0x1ef)))){const _0xf0cce5=_0x45071b[_0x209b08(0x244)](_0x5e3b97[_0x209b08(0x20b)])||_0x209b08(0x260),_0x49ede4=new _0xd55b33(_0xf0cce5,null,{'fileName':_0x36e1f3,..._0x5e3b97});_0x49ede4[_0x209b08(0x25f)]=_0x5e3b97[_0x209b08(0x25f)],this[_0x209b08(0x25a)](_0x209b08(0x213),{'error':_0x49ede4});}this[_0x209b08(0x200)](_0x26c281);}}));}finally{this[_0xfc984a(0x266)](_0x31da82);}}[_0x48699b(0x1f2)](_0x1a0eb8){const _0x836ef4=_0x48699b;if(this[_0x836ef4(0x1ec)]()||!this[_0x836ef4(0x242)][_0x836ef4(0x247)][_0x836ef4(0x22d)])return;const _0x52ff4a={'type':_0x42f679[_0x836ef4(0x216)],'uiId':_0x836ef4(0x26e),'label':_0x1a0eb8,'isReadOnly':this[_0x836ef4(0x1fc)][_0x836ef4(0x207)](_0x836ef4(0x26e)),'hidden':this[_0x836ef4(0x1fc)][_0x836ef4(0x207)](_0x836ef4(0x26e))};this[_0x836ef4(0x269)](_0x52ff4a);}async[_0x48699b(0x1ee)](_0x1a83af,_0x4c2d81,_0x6b095e,_0x515abb){const _0x278fbc=_0x48699b,_0x3620fb=this[_0x278fbc(0x1e2)][_0x278fbc(0x244)](_0x278fbc(0x26e));if(_0x3620fb&&_0x1a83af){_0x3620fb[_0x278fbc(0x249)]=_0x515abb?_0x515abb[_0x278fbc(0x23d)](_0x115e16=>({'start':_0x115e16[_0x278fbc(0x263)],'end':_0x115e16[_0x278fbc(0x234)]})):[];try{if(_0x3620fb[_0x278fbc(0x1df)]===_0x4c2d81)return;const {id:_0xd0156e}=await this[_0x278fbc(0x1d9)][_0x278fbc(0x1f8)](this[_0x278fbc(0x264)],_0x1a83af,{'version':_0x4c2d81,'sessionId':_0x6b095e})[_0x278fbc(0x252)]();_0x3620fb['id']=_0xd0156e,_0x3620fb[_0x278fbc(0x20c)]=_0x1a83af,_0x3620fb[_0x278fbc(0x1df)]=_0x4c2d81,_0x3620fb[_0x278fbc(0x23f)]=_0x6b095e;}catch(_0x19735c){const _0x52f7dc=new _0xd55b33(_0x278fbc(0x1ea),null);_0x52f7dc[_0x278fbc(0x25f)]=_0x19735c[_0x278fbc(0x25f)],this[_0x278fbc(0x25a)](_0x278fbc(0x213),{'error':_0x52f7dc});}}}[_0x48699b(0x1f1)](_0x22c646){const _0x254b9b=_0x48699b;this[_0x254b9b(0x269)]({'type':_0x42f679[_0x254b9b(0x238)],'label':_0x22c646,'uiId':_0x254b9b(0x249),'content':_0x22c646});}[_0x48699b(0x203)](){const _0x2dcadb=_0x48699b;this[_0x2dcadb(0x200)](_0x2dcadb(0x249));}async[_0x48699b(0x245)](_0x512587,_0x2e5561){const _0x90753b=_0x48699b,_0x10db59=_0x90753b(0x257)+_0x18359b();this[_0x90753b(0x24b)](_0x10db59);const _0x33fc19=_0x90753b(0x257)+_0x18359b();try{this[_0x90753b(0x269)]({'type':_0x42f679[_0x90753b(0x231)],'label':_0x2e5561?.[_0x90753b(0x232)]||_0x512587,'uiId':_0x33fc19,'resourceId':_0x2e5561?.[_0x90753b(0x1f7)]},!0x0);const _0x52dabc=this[_0x90753b(0x1d9)][_0x90753b(0x1f0)](this[_0x90753b(0x264)],_0x512587,_0x2e5561);this[_0x90753b(0x1f3)][_0x90753b(0x220)](_0x33fc19,_0x52dabc[_0x90753b(0x265)]);const {id:_0x3be7ca}=await _0x52dabc[_0x90753b(0x252)]();this[_0x90753b(0x1f3)][_0x90753b(0x254)](_0x33fc19),this[_0x90753b(0x256)]({'type':_0x42f679[_0x90753b(0x231)],'id':_0x3be7ca,'label':_0x2e5561?.[_0x90753b(0x232)]||_0x512587,'uiId':_0x33fc19,'resourceId':_0x2e5561?.[_0x90753b(0x1f7)]},!0x1);}catch(_0x1973e9){this[_0x90753b(0x1f3)][_0x90753b(0x254)](_0x33fc19),(_0x1973e9[_0x90753b(0x1da)][_0x90753b(0x251)](_0x90753b(0x1ef))||this[_0x90753b(0x25a)](_0x90753b(0x213),{'error':new _0xd55b33(_0x90753b(0x237),this,{'url':_0x512587,'originalError':_0x1973e9}),'url':_0x512587}),this[_0x90753b(0x200)](_0x33fc19));}finally{this[_0x90753b(0x266)](_0x10db59);}}[_0x48699b(0x23a)](_0x50de34){const _0x206716=_0x48699b;_0x50de34['id']=_0x50de34['id']??_0x18359b()[_0x206716(0x25b)](0x0,0x15),this[_0x206716(0x1e2)][_0x206716(0x220)](_0x50de34[_0x206716(0x21c)],_0x50de34),this[_0x206716(0x25a)](_0x206716(0x1e4),{'contextItem':_0x50de34,'isLoading':!0x1});}async[_0x48699b(0x233)](_0x34b3c6,_0x2149eb,_0x3ee515){const _0x1e7667=_0x48699b,_0x1445b7=this[_0x1e7667(0x242)][_0x1e7667(0x209)][_0x1e7667(0x259)](_0x28efbf=>_0x28efbf['id']===_0x34b3c6);if(!_0x1445b7)return this[_0x1e7667(0x25a)](_0x1e7667(0x213),{'error':new _0xd55b33(_0x1e7667(0x25c),this,{'sourceId':_0x34b3c6}),'sourceId':_0x34b3c6}),[];try{const _0x493e88=(await _0x1445b7[_0x1e7667(0x25d)](_0x2149eb))[_0x1e7667(0x23d)](_0x16a8d8=>{const _0x20fb9c=_0x1e7667,_0x279323=this[_0x20fb9c(0x21b)](_0x16a8d8['id']);return{..._0x16a8d8,'isInContext':_0x279323};});return _0x1445b7[_0x1e7667(0x26f)]=_0x493e88,this[_0x1e7667(0x25a)](_0x1e7667(0x24f),{'sourceId':_0x34b3c6,'source':_0x1445b7,'resources':_0x493e88,'uid':_0x3ee515}),_0x493e88;}catch(_0x26f193){return this[_0x1e7667(0x25a)](_0x1e7667(0x213),{'error':new _0xd55b33(_0x1e7667(0x1fb),this,{'sourceId':_0x34b3c6,'originalError':_0x26f193}),'sourceId':_0x34b3c6,'sourceLabel':_0x1445b7[_0x1e7667(0x232)]}),[];}}async[_0x48699b(0x246)](_0x3f6fe5,_0x5cc4ba){const _0x5ea007=_0x48699b;if(this[_0x5ea007(0x21b)](_0x5cc4ba['id']))return;let _0x17985a=_0x5cc4ba[_0x5ea007(0x26d)];if(!_0x17985a&&_0x3f6fe5[_0x5ea007(0x229)])try{_0x17985a=await _0x3f6fe5[_0x5ea007(0x229)](_0x5cc4ba['id']);}catch(_0x5206ce){return void this[_0x5ea007(0x25a)](_0x5ea007(0x213),{'error':new _0xd55b33(_0x5ea007(0x1ed),this,{'resourceId':_0x5cc4ba['id'],'sourceId':_0x3f6fe5['id'],'originalError':_0x5206ce}),'resourceId':_0x5cc4ba['id'],'sourceId':_0x3f6fe5['id']});}if(_0x17985a)switch(_0x5cc4ba[_0x5ea007(0x255)]){case _0x42f679[_0x5ea007(0x231)]:if(_0x5ea007(0x225)!=typeof _0x17985a)return void this[_0x5ea007(0x25a)](_0x5ea007(0x213),{'error':new _0xd55b33(_0x5ea007(0x262),this,{'resourceId':_0x5cc4ba['id'],'sourceId':_0x3f6fe5['id'],'expectedType':_0x5ea007(0x225),'actualType':typeof _0x17985a}),'resourceId':_0x5cc4ba['id'],'sourceId':_0x3f6fe5['id']});await this[_0x5ea007(0x245)](_0x17985a,{'label':_0x5cc4ba[_0x5ea007(0x232)],'resourceId':_0x5cc4ba['id']});break;case _0x42f679[_0x5ea007(0x21e)]:if(!(_0x17985a instanceof File))return void this[_0x5ea007(0x25a)](_0x5ea007(0x213),{'error':new _0xd55b33(_0x5ea007(0x262),this,{'resourceId':_0x5cc4ba['id'],'sourceId':_0x3f6fe5['id'],'expectedType':_0x5ea007(0x261),'actualType':typeof _0x17985a}),'resourceId':_0x5cc4ba['id'],'sourceId':_0x3f6fe5['id']});await this[_0x5ea007(0x1e6)]([_0x17985a],{'label':_0x5cc4ba[_0x5ea007(0x232)],'resourceId':_0x5cc4ba['id']});break;case _0x42f679[_0x5ea007(0x1fe)]:if(_0x5ea007(0x214)!=typeof _0x17985a||!(_0x5ea007(0x20c)in _0x17985a)||!(_0x5ea007(0x255)in _0x17985a))return void this[_0x5ea007(0x25a)](_0x5ea007(0x213),{'error':new _0xd55b33(_0x5ea007(0x262),this,{'resourceId':_0x5cc4ba['id'],'sourceId':_0x3f6fe5['id'],'expectedType':_0x5ea007(0x24d),'actualType':typeof _0x17985a}),'resourceId':_0x5cc4ba['id'],'sourceId':_0x3f6fe5['id']});_0x17985a=AIChatContext[_0x5ea007(0x26b)](_0x17985a,_0x5cc4ba[_0x5ea007(0x232)]),await this[_0x5ea007(0x1e6)]([_0x17985a],{'label':_0x5cc4ba[_0x5ea007(0x232)],'resourceId':_0x5cc4ba['id']},_0x42f679[_0x5ea007(0x1fe)]);break;case _0x42f679[_0x5ea007(0x1e5)]:break;default:this[_0x5ea007(0x25a)](_0x5ea007(0x213),{'error':new _0xd55b33(_0x5ea007(0x210),this,{'resourceId':_0x5cc4ba['id'],'sourceId':_0x3f6fe5['id'],'resourceType':_0x5cc4ba[_0x5ea007(0x255)]}),'resourceId':_0x5cc4ba['id'],'sourceId':_0x3f6fe5['id']});}else this[_0x5ea007(0x25a)](_0x5ea007(0x213),{'error':new _0xd55b33(_0x5ea007(0x1dd),this,{'resourceId':_0x5cc4ba['id'],'sourceId':_0x3f6fe5['id']}),'resourceId':_0x5cc4ba['id'],'sourceId':_0x3f6fe5['id']});}static[_0x48699b(0x26b)](_0x132713,_0x2f4088){const _0x3631ef=_0x48699b;switch(_0x132713[_0x3631ef(0x255)]){case _0x3064d4[_0x3631ef(0x20f)]:return new File([_0x132713[_0x3631ef(0x20c)]],_0x2f4088,{'type':_0x3631ef(0x1de)});case _0x3064d4[_0x3631ef(0x215)]:return new File([_0x132713[_0x3631ef(0x20c)]],_0x2f4088,{'type':_0x3631ef(0x268)});default:return new File([_0x132713[_0x3631ef(0x20c)]],_0x2f4088,{'type':_0x3631ef(0x22a)});}}static[_0x48699b(0x1fa)](_0x431a89){const _0xf505ed=_0x48699b;switch(_0x431a89[_0xf505ed(0x255)]){case _0x42f679[_0xf505ed(0x21e)]:return{'type':_0x42f679[_0xf505ed(0x21e)],'id':_0x431a89['id']};case _0x42f679[_0xf505ed(0x231)]:return{'type':_0x42f679[_0xf505ed(0x231)],'id':_0x431a89['id']};case _0x42f679[_0xf505ed(0x216)]:return{'type':_0x42f679[_0xf505ed(0x216)],'id':_0x431a89['id'],..._0x431a89[_0xf505ed(0x249)]?.[_0xf505ed(0x230)]&&{'selection':_0x431a89[_0xf505ed(0x249)]}};case _0x42f679[_0xf505ed(0x1fe)]:return{'type':_0x42f679[_0xf505ed(0x21e)],'id':_0x431a89['id']};case _0x42f679[_0xf505ed(0x1e5)]:{const _0x398348=_0x431a89;return{'type':_0x42f679[_0xf505ed(0x1e5)],'mcpServerName':_0x398348[_0xf505ed(0x226)],'toolName':_0x398348[_0xf505ed(0x23e)],'data':_0x398348[_0xf505ed(0x26d)],'id':_0x398348['id']};}default:return null;}}[_0x48699b(0x269)](_0x255945,_0x294758=!0x1){const _0x5b49c7=_0x48699b;if(this[_0x5b49c7(0x1e2)][_0x5b49c7(0x220)](_0x255945[_0x5b49c7(0x21c)],_0x255945),_0x255945[_0x5b49c7(0x22e)]||this[_0x5b49c7(0x25a)](_0x5b49c7(0x1e4),{'contextItem':_0x255945,'isLoading':_0x294758}),_0x5b49c7(0x26e)===_0x255945[_0x5b49c7(0x21c)]&&this[_0x5b49c7(0x25e)](),_0x255945[_0x5b49c7(0x1f7)]){const _0x5f18fb=this[_0x5b49c7(0x26a)](_0x255945[_0x5b49c7(0x1f7)]);_0x5f18fb&&_0x5f18fb[_0x5b49c7(0x202)](_0x225c57=>{const _0x24a34e=_0x5b49c7;this[_0x24a34e(0x1e8)](_0x225c57,_0x255945[_0x24a34e(0x1f7)],!0x0);});}}[_0x48699b(0x200)](_0x574db3){const _0x4e39ed=_0x48699b,_0x3fd384=this[_0x4e39ed(0x1e2)][_0x4e39ed(0x244)](_0x574db3),_0x2c7274=this[_0x4e39ed(0x1f3)][_0x4e39ed(0x244)](_0x574db3);if(_0x2c7274&&(_0x2c7274[_0x4e39ed(0x1e1)](),this[_0x4e39ed(0x1f3)][_0x4e39ed(0x254)](_0x574db3)),_0x3fd384?.[_0x4e39ed(0x1f7)]){const _0x45a1a2=this[_0x4e39ed(0x26a)](_0x3fd384[_0x4e39ed(0x1f7)]);_0x45a1a2&&_0x45a1a2[_0x4e39ed(0x202)](_0xeffb0=>{const _0x390030=_0x4e39ed;this[_0x390030(0x1e8)](_0xeffb0,_0x3fd384[_0x390030(0x1f7)],!0x1);});}this[_0x4e39ed(0x1e2)][_0x4e39ed(0x254)](_0x574db3),this[_0x4e39ed(0x25a)](_0x4e39ed(0x227),{'uiId':_0x574db3,'type':_0x3fd384?.[_0x4e39ed(0x255)]}),_0x4e39ed(0x26e)===_0x574db3&&this[_0x4e39ed(0x25e)]();}[_0x48699b(0x256)](_0x20d2c3,_0x5ea2dd){const _0x9a7511=_0x48699b;if(this[_0x9a7511(0x1e2)][_0x9a7511(0x207)](_0x20d2c3[_0x9a7511(0x21c)])&&(this[_0x9a7511(0x1e2)][_0x9a7511(0x220)](_0x20d2c3[_0x9a7511(0x21c)],_0x20d2c3),this[_0x9a7511(0x25a)](_0x9a7511(0x250),{'contextItem':_0x20d2c3,'isLoading':_0x5ea2dd}),_0x20d2c3[_0x9a7511(0x1f7)])){const _0x302009=this[_0x9a7511(0x26a)](_0x20d2c3[_0x9a7511(0x1f7)]);_0x302009&&_0x302009[_0x9a7511(0x202)](_0x1146a8=>{const _0x4e13cb=_0x9a7511;this[_0x4e13cb(0x1e8)](_0x1146a8,_0x20d2c3[_0x4e13cb(0x1f7)],!0x0);});}}[_0x48699b(0x218)](_0x433b99){const _0xa6ed2c=_0x48699b;this[_0xa6ed2c(0x1fc)][_0xa6ed2c(0x220)](_0x433b99[_0xa6ed2c(0x21c)],_0x433b99);}[_0x48699b(0x1fd)](){const _0x594062=_0x48699b;this[_0x594062(0x242)]={'document':{'enabled':!0x1!==this[_0x594062(0x1f5)]?.[_0x594062(0x247)]?.[_0x594062(0x22d)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x594062(0x1f5)]?.[_0x594062(0x267)]?.[_0x594062(0x22d)]},'files':{'enabled':!0x1!==this[_0x594062(0x1f5)]?.[_0x594062(0x23b)]?.[_0x594062(0x22d)]},'sources':this[_0x594062(0x224)](),'customItems':this[_0x594062(0x1f5)]?.[_0x594062(0x1e9)]?.[_0x594062(0x23d)](_0x43d8c7=>({..._0x43d8c7,'enabled':!0x0}))??[]},this[_0x594062(0x25a)](_0x594062(0x21a),{'options':this[_0x594062(0x242)]});}[_0x48699b(0x224)](){const _0x448d87=_0x48699b;return this[_0x448d87(0x1f5)]?.[_0x448d87(0x209)]?.[_0x448d87(0x23d)](_0x599f44=>({..._0x599f44,'resources':[]}))??[];}[_0x48699b(0x25e)](){const _0x2f69bc=_0x48699b,_0xa1ed06=this[_0x2f69bc(0x1ec)]()||this[_0x2f69bc(0x1e3)]();this[_0x2f69bc(0x242)][_0x2f69bc(0x247)][_0x2f69bc(0x1e7)]=_0xa1ed06,this[_0x2f69bc(0x25a)](_0x2f69bc(0x21a),{'options':this[_0x2f69bc(0x242)]});}[_0x48699b(0x21b)](_0x1b9637){const _0x10e500=_0x48699b;for(const _0x375e9a of this[_0x10e500(0x1e2)][_0x10e500(0x222)]())if(_0x375e9a[_0x10e500(0x1f7)]===_0x1b9637)return!0x0;for(const _0x2c0c22 of this[_0x10e500(0x1fc)][_0x10e500(0x222)]())if(_0x2c0c22[_0x10e500(0x1f7)]===_0x1b9637)return!0x0;return!0x1;}[_0x48699b(0x26a)](_0x471d8b){const _0x243c2b=_0x48699b,_0x8f908f=[];for(const _0x42952d of this[_0x243c2b(0x242)][_0x243c2b(0x209)]){_0x42952d[_0x243c2b(0x26f)][_0x243c2b(0x259)](_0x51f2a8=>_0x51f2a8['id']===_0x471d8b)&&_0x8f908f[_0x243c2b(0x236)](_0x42952d['id']);}return 0x0===_0x8f908f[_0x243c2b(0x230)]?null:_0x8f908f;}[_0x48699b(0x1e8)](_0x286ad9,_0x35b1a0,_0x225084){const _0x209f0b=_0x48699b,_0x31373d=this[_0x209f0b(0x242)][_0x209f0b(0x209)][_0x209f0b(0x259)](_0x51526e=>_0x51526e['id']===_0x286ad9);if(!_0x31373d)return;const _0x10004a=_0x31373d[_0x209f0b(0x26f)][_0x209f0b(0x259)](_0x585d97=>_0x585d97['id']===_0x35b1a0);_0x10004a&&(_0x10004a[_0x209f0b(0x20d)]=_0x225084,this[_0x209f0b(0x25a)](_0x209f0b(0x24e),{'sourceId':_0x286ad9,'resourceId':_0x35b1a0,'isInContext':_0x225084}));}[_0x48699b(0x24b)](_0x27200a){const _0x455d9b=_0x48699b;this[_0x455d9b(0x1eb)][_0x455d9b(0x220)](_0x27200a,!0x0),this[_0x455d9b(0x1eb)][_0x455d9b(0x204)]&&this[_0x455d9b(0x25a)](_0x455d9b(0x1f9),{'isUploadInProgress':!0x0});}[_0x48699b(0x266)](_0x2c4ee4){const _0x4d979a=_0x48699b;this[_0x4d979a(0x1eb)][_0x4d979a(0x254)](_0x2c4ee4),0x0===this[_0x4d979a(0x1eb)][_0x4d979a(0x204)]&&this[_0x4d979a(0x25a)](_0x4d979a(0x1f9),{'isUploadInProgress':!0x1});}}
23
+ const _0x6fe328=_0x440b;(function(_0x11d7af,_0x5b1e0c){const _0x50f9df=_0x440b,_0x3c44b4=_0x11d7af();while(!![]){try{const _0x4b008e=-parseInt(_0x50f9df(0x1bf))/0x1*(-parseInt(_0x50f9df(0x13b))/0x2)+parseInt(_0x50f9df(0x174))/0x3+parseInt(_0x50f9df(0x1b2))/0x4+parseInt(_0x50f9df(0x1a7))/0x5*(-parseInt(_0x50f9df(0x14f))/0x6)+parseInt(_0x50f9df(0x178))/0x7*(parseInt(_0x50f9df(0x15e))/0x8)+-parseInt(_0x50f9df(0x1a0))/0x9+-parseInt(_0x50f9df(0x1b6))/0xa;if(_0x4b008e===_0x5b1e0c)break;else _0x3c44b4['push'](_0x3c44b4['shift']());}catch(_0x369693){_0x3c44b4['push'](_0x3c44b4['shift']());}}}(_0x26ab,0x2b0c4));import{CKEditorError as _0x3a3170,ObservableMixin as _0xa0ab8c,uid as _0xd798f1}from'ckeditor5/src/utils.js';function _0x440b(_0x28c19c,_0x27c984){const _0x26ab66=_0x26ab();return _0x440b=function(_0x440b0b,_0x3d7502){_0x440b0b=_0x440b0b-0x136;let _0x56fe64=_0x26ab66[_0x440b0b];return _0x56fe64;},_0x440b(_0x28c19c,_0x27c984);}import{AIContextItemType as _0x5192a4,AIContextTextResourceType as _0x216793}from'../../aicore/model/aicontext.js';import{escape as _0x30294f}from'es-toolkit/compat';import{errorsMap as _0xf53635}from'../../errorsmap.js';function _0x26ab(){const _0x2503aa=['start','text/html','getResources','sources','mcpServerName','delete','substring','656UqkLsC','url-','addResourceToContext','mapContextItemsToRequestData','ai-request-aborted','text/plain','isSelectionInContext','_config','ai-chat-source-not-found','files','isReadOnly','ai-chat-resource-no-data','text/markdown','uiId','sessionId','abort','toolName','all','isHidden','_addToConversationContextItem','addCurrentDocumentToContext','addToolItemToContext','41565clCuFB','addFilesToContext','getPendingContextItems','getSentContextItems','14679xojofj','data','ai-chat-url-upload-failed','size','_mapContextItemToRequestData','uploadDocument','from','MARKDOWN','label','attributes','getId','uploadUrl','filter','file-','fetchDocument','files-','abortController','removeFromContext','ai-chat-document-upload-failed','resourceId','object\x20with\x20content\x20and\x20type\x20properties','name','_conversationContextItems','URL','addSelectionToContext','stack','ai-chat-context-invalid-data','DOCUMENT','HTML','values','removeSelectionFromContext','get','populateFromMessage','uploadProgressChanged','_startUploadOperation','forEach','_ownerId','_finishContextItemLoading','find','clearPendingContextItems','1134486CixSEA','_setAddContextOptionsDefaultState','length','has','_ongoingUploads','_finishUploadOperation','_pendingContextItems','4540yjMDiL','map','_removeContextItem','_convertTextResourceToFile','startsWith','addContextOptionsChanged','sourceResourcesLoaded','_isResourceInContext','object','_findSourceIdsByResourceId','TEXT','817912UsTwhq','current-document','ai-chat-source-resources-load-failed','resources','788600iprQqK','contextItemAdded','enabled','File','isCurrentDocumentInConversation','contextSent','_createContextItemFromContent','getData','addUrlToContext','1lALXOv','addToConversationContext','isCurrentDocumentInContext','updateCurrentDocument','_connector','document','FILE','set','hidden','TOOL','fire','content','end','selection','getDocument','string','uploadFile','348734yNUOtD','_toggleAddCurrentDocumentOptionVisibility','urls','push','isInContext','message','ai-chat-resource-load-failed','ai-chat-context-unsupported-type','contextItemLoadingEnded','Current\x20document','customItems','loadSourceResources','_getCustomSourcesInitialState','_addContextOptionsState','contextItemRemoved','url','type','ai-chat-file-upload-failed','init','resourceStateChanged','1212QuTRSd','_ongoingUploadOperations','error','SELECTION','code','version','_updateResourceInContextState','_addContextItem'];_0x26ab=function(){return _0x2503aa;};return _0x26ab();}export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x6fe328(0x1b7),_0x6fe328(0x149),_0x6fe328(0x143),_0x6fe328(0x1bb),_0x6fe328(0x151),_0x6fe328(0x1ac),_0x6fe328(0x1ad),_0x6fe328(0x14e),_0x6fe328(0x199)];export class AIChatContext extends _0xa0ab8c(){[_0x6fe328(0x1c3)];[_0x6fe328(0x165)];[_0x6fe328(0x19c)];constructor({connector:_0x19e6c9,config:_0xc57ce,ownerId:_0x108f29}){const _0x1fba0a=_0x6fe328;super(),this[_0x1fba0a(0x1c3)]=_0x19e6c9,this[_0x1fba0a(0x165)]=_0xc57ce,this[_0x1fba0a(0x19c)]=_0x108f29;}[_0x6fe328(0x14d)](){const _0x4110c2=_0x6fe328;this[_0x4110c2(0x1a6)]=new Map(),this[_0x4110c2(0x18e)]=new Map(),this[_0x4110c2(0x1a4)]=new Map(),this[_0x4110c2(0x150)]=new Map(),this[_0x4110c2(0x1a1)]();}[_0x6fe328(0x176)](){const _0x26d6b9=_0x6fe328;return this[_0x26d6b9(0x1a6)];}async[_0x6fe328(0x198)](_0x515444){const _0x2717bf=_0x6fe328,_0x178047=await this[_0x2717bf(0x1bc)](_0x515444);return this[_0x2717bf(0x171)](_0x178047),_0x2717bf(0x1b3)===_0x178047[_0x2717bf(0x16b)]&&this[_0x2717bf(0x13c)](),_0x178047;}async[_0x6fe328(0x1bc)](_0x37d330){const _0x155c12=_0x6fe328;if(_0x37d330[_0x155c12(0x14b)]===_0x5192a4[_0x155c12(0x193)]){const _0x556a41=await this[_0x155c12(0x1c3)][_0x155c12(0x186)](this[_0x155c12(0x19c)],_0x37d330['id'])[_0x155c12(0x138)]();return{'id':_0x155c12(0x1b3),'uiId':_0x155c12(0x1b3),'label':_0x155c12(0x144),'type':_0x37d330[_0x155c12(0x14b)],'content':_0x556a41[_0x155c12(0x1ca)],'hidden':this[_0x155c12(0x18e)][_0x155c12(0x1a3)](_0x155c12(0x1b3)),'version':_0x556a41[_0x155c12(0x181)]?.[_0x155c12(0x154)],'sessionId':_0x556a41[_0x155c12(0x181)]?.[_0x155c12(0x16c)]};}if(_0x37d330[_0x155c12(0x14b)]===_0x5192a4[_0x155c12(0x1c8)])return{'id':_0x37d330['id'],'uiId':_0x37d330['id'],'label':_0x37d330[_0x155c12(0x179)]?.[_0x155c12(0x180)]||_0x37d330['id'],'type':_0x5192a4[_0x155c12(0x1c8)],'mcpServerName':_0x37d330[_0x155c12(0x15b)],'toolName':_0x37d330[_0x155c12(0x16e)],'data':_0x37d330[_0x155c12(0x179)]||{}};return{'id':_0x37d330['id'],'uiId':_0x37d330['id'],'label':_0x37d330[_0x155c12(0x181)]?.[_0x155c12(0x180)]||_0x37d330[_0x155c12(0x18d)]||_0x37d330[_0x155c12(0x14a)]||_0x37d330['id'],'type':_0x37d330[_0x155c12(0x14b)],..._0x37d330?.[_0x155c12(0x181)]?.[_0x155c12(0x18b)]?{'resourceId':_0x37d330[_0x155c12(0x181)]?.[_0x155c12(0x18b)]}:{}};}[_0x6fe328(0x177)](){const _0x2203a5=_0x6fe328;return new Map(this[_0x2203a5(0x18e)]);}[_0x6fe328(0x189)](_0x488103){const _0x4fc2a0=_0x6fe328,_0x4a3cb0=this[_0x4fc2a0(0x1a6)][_0x4fc2a0(0x197)](_0x488103);_0x4a3cb0?.[_0x4fc2a0(0x168)]||this[_0x4fc2a0(0x1a9)](_0x488103);}[_0x6fe328(0x19f)](){const _0x28a3c8=_0x6fe328;if(0x0===this[_0x28a3c8(0x1a6)][_0x28a3c8(0x17b)])return;for(const _0x3e1d38 of this[_0x28a3c8(0x1a6)][_0x28a3c8(0x195)]())this[_0x28a3c8(0x1a9)](_0x3e1d38[_0x28a3c8(0x16b)]);const _0x1548ae=this[_0x28a3c8(0x18e)][_0x28a3c8(0x197)](_0x28a3c8(0x1b3))||this[_0x28a3c8(0x1a6)][_0x28a3c8(0x197)](_0x28a3c8(0x1b3));_0x1548ae&&this[_0x28a3c8(0x156)]({..._0x1548ae,'isReadOnly':!0x0,'hidden':!0x0});}[_0x6fe328(0x1c0)](_0x3154fb){const _0x5809b0=_0x6fe328;for(const _0x23ae9f of _0x3154fb[_0x5809b0(0x195)]())this[_0x5809b0(0x171)](_0x23ae9f);this[_0x5809b0(0x19f)](),this[_0x5809b0(0x1c9)](_0x5809b0(0x1bb),{'contextItems':Array[_0x5809b0(0x17e)](this[_0x5809b0(0x177)]()[_0x5809b0(0x195)]())});}[_0x6fe328(0x1c1)](){const _0x1c3224=_0x6fe328;return this[_0x1c3224(0x1a6)][_0x1c3224(0x1a3)](_0x1c3224(0x1b3));}[_0x6fe328(0x164)](){const _0x3dbdd0=_0x6fe328;return this[_0x3dbdd0(0x1a6)][_0x3dbdd0(0x1a3)](_0x3dbdd0(0x137));}[_0x6fe328(0x1ba)](){const _0x26a798=_0x6fe328;return this[_0x26a798(0x18e)][_0x26a798(0x1a3)](_0x26a798(0x1b3));}static[_0x6fe328(0x161)](_0xa42802){const _0x55ced9=_0x6fe328;return Array[_0x55ced9(0x17e)](_0xa42802[_0x55ced9(0x195)]())[_0x55ced9(0x1a8)](_0x3f32d0=>this[_0x55ced9(0x17c)](_0x3f32d0))[_0x55ced9(0x184)](_0x328a32=>null!==_0x328a32);}async[_0x6fe328(0x175)](_0x4784c6,_0x5dc492,_0x5255f5=_0x5192a4[_0x6fe328(0x1c5)]){const _0x3450f6=_0x6fe328,_0x43908f=_0x3450f6(0x187)+_0xd798f1();this[_0x3450f6(0x19a)](_0x43908f);try{await Promise[_0x3450f6(0x16f)](_0x4784c6[_0x3450f6(0x1a8)](async _0x5069b0=>{const _0x2b576c=_0x3450f6,_0x6bf7ad=_0x2b576c(0x185)+_0xd798f1(),_0x9fce01=_0x30294f(_0x5069b0[_0x2b576c(0x18d)]);try{this[_0x2b576c(0x156)]({'type':_0x5255f5,'label':_0x5dc492?.[_0x2b576c(0x180)]||_0x9fce01,'uiId':_0x6bf7ad,'resourceId':_0x5dc492?.[_0x2b576c(0x18b)]},!0x0);const _0x4588fa=this[_0x2b576c(0x1c3)][_0x2b576c(0x13a)](this[_0x2b576c(0x19c)],_0x5069b0,_0x5dc492);this[_0x2b576c(0x1a4)][_0x2b576c(0x1c6)](_0x6bf7ad,_0x4588fa[_0x2b576c(0x188)]);const {id:_0x5ed1c9}=await _0x4588fa[_0x2b576c(0x182)]();this[_0x2b576c(0x1a4)][_0x2b576c(0x15c)](_0x6bf7ad),this[_0x2b576c(0x19d)]({'type':_0x5255f5,'id':_0x5ed1c9,'label':_0x5dc492?.[_0x2b576c(0x180)]||_0x9fce01,'uiId':_0x6bf7ad,'resourceId':_0x5dc492?.[_0x2b576c(0x18b)]},!0x1);}catch(_0x5ce031){this[_0x2b576c(0x1a4)][_0x2b576c(0x15c)](_0x6bf7ad);if(!(_0x5ce031 instanceof _0x3a3170&&_0x5ce031[_0x2b576c(0x140)][_0x2b576c(0x1ab)](_0x2b576c(0x162)))){const _0x3b5fed=_0xf53635[_0x2b576c(0x197)](_0x5ce031[_0x2b576c(0x153)])||_0x2b576c(0x14c),_0x201628=new _0x3a3170(_0x3b5fed,null,{'fileName':_0x9fce01,..._0x5ce031});_0x201628[_0x2b576c(0x191)]=_0x5ce031[_0x2b576c(0x191)],this[_0x2b576c(0x1c9)](_0x2b576c(0x151),{'error':_0x201628});}this[_0x2b576c(0x1a9)](_0x6bf7ad);}}));}finally{this[_0x3450f6(0x1a5)](_0x43908f);}}[_0x6fe328(0x172)](_0x2e8dd0){const _0x429fcf=_0x6fe328;if(this[_0x429fcf(0x1c1)]()||!this[_0x429fcf(0x148)][_0x429fcf(0x1c4)][_0x429fcf(0x1b8)])return;const _0x4401bf={'type':_0x5192a4[_0x429fcf(0x193)],'uiId':_0x429fcf(0x1b3),'label':_0x2e8dd0,'isReadOnly':this[_0x429fcf(0x18e)][_0x429fcf(0x1a3)](_0x429fcf(0x1b3)),'hidden':this[_0x429fcf(0x18e)][_0x429fcf(0x1a3)](_0x429fcf(0x1b3))};this[_0x429fcf(0x156)](_0x4401bf);}async[_0x6fe328(0x1c2)](_0x412c4b,_0x571358,_0x25e026,_0x2c9dd3){const _0x287e6f=_0x6fe328,_0x8de895=this[_0x287e6f(0x1a6)][_0x287e6f(0x197)](_0x287e6f(0x1b3));if(_0x8de895&&_0x412c4b){_0x8de895[_0x287e6f(0x137)]=_0x2c9dd3?_0x2c9dd3[_0x287e6f(0x1a8)](_0x537778=>({'start':_0x537778[_0x287e6f(0x157)],'end':_0x537778[_0x287e6f(0x136)]})):[];try{if(_0x8de895[_0x287e6f(0x154)]===_0x571358)return;const {id:_0x25610d}=await this[_0x287e6f(0x1c3)][_0x287e6f(0x17d)](this[_0x287e6f(0x19c)],_0x412c4b,{'version':_0x571358,'sessionId':_0x25e026})[_0x287e6f(0x182)]();_0x8de895['id']=_0x25610d,_0x8de895[_0x287e6f(0x1ca)]=_0x412c4b,_0x8de895[_0x287e6f(0x154)]=_0x571358,_0x8de895[_0x287e6f(0x16c)]=_0x25e026;}catch(_0x1a8f82){const _0x5b8735=new _0x3a3170(_0x287e6f(0x18a),null);_0x5b8735[_0x287e6f(0x191)]=_0x1a8f82[_0x287e6f(0x191)],this[_0x287e6f(0x1c9)](_0x287e6f(0x151),{'error':_0x5b8735});}}}[_0x6fe328(0x190)](_0x5a3b9d){const _0x233b0a=_0x6fe328;this[_0x233b0a(0x156)]({'type':_0x5192a4[_0x233b0a(0x152)],'label':_0x5a3b9d,'uiId':_0x233b0a(0x137),'content':_0x5a3b9d});}[_0x6fe328(0x196)](){const _0x736904=_0x6fe328;this[_0x736904(0x1a9)](_0x736904(0x137));}async[_0x6fe328(0x1be)](_0x565d19,_0x22bcf6){const _0x40d5b2=_0x6fe328,_0x59b494=_0x40d5b2(0x15f)+_0xd798f1();this[_0x40d5b2(0x19a)](_0x59b494);const _0x417b5b=_0x40d5b2(0x15f)+_0xd798f1();try{this[_0x40d5b2(0x156)]({'type':_0x5192a4[_0x40d5b2(0x18f)],'label':_0x22bcf6?.[_0x40d5b2(0x180)]||_0x565d19,'uiId':_0x417b5b,'resourceId':_0x22bcf6?.[_0x40d5b2(0x18b)]},!0x0);const _0x1268e8=this[_0x40d5b2(0x1c3)][_0x40d5b2(0x183)](this[_0x40d5b2(0x19c)],_0x565d19,_0x22bcf6);this[_0x40d5b2(0x1a4)][_0x40d5b2(0x1c6)](_0x417b5b,_0x1268e8[_0x40d5b2(0x188)]);const {id:_0x57c4cf}=await _0x1268e8[_0x40d5b2(0x182)]();this[_0x40d5b2(0x1a4)][_0x40d5b2(0x15c)](_0x417b5b),this[_0x40d5b2(0x19d)]({'type':_0x5192a4[_0x40d5b2(0x18f)],'id':_0x57c4cf,'label':_0x22bcf6?.[_0x40d5b2(0x180)]||_0x565d19,'uiId':_0x417b5b,'resourceId':_0x22bcf6?.[_0x40d5b2(0x18b)]},!0x1);}catch(_0x4aa745){this[_0x40d5b2(0x1a4)][_0x40d5b2(0x15c)](_0x417b5b),(_0x4aa745[_0x40d5b2(0x140)][_0x40d5b2(0x1ab)](_0x40d5b2(0x162))||this[_0x40d5b2(0x1c9)](_0x40d5b2(0x151),{'error':new _0x3a3170(_0x40d5b2(0x17a),this,{'url':_0x565d19,'originalError':_0x4aa745}),'url':_0x565d19}),this[_0x40d5b2(0x1a9)](_0x417b5b));}finally{this[_0x40d5b2(0x1a5)](_0x59b494);}}[_0x6fe328(0x173)](_0x240285){const _0x264427=_0x6fe328;_0x240285['id']=_0x240285['id']??_0xd798f1()[_0x264427(0x15d)](0x0,0x15),this[_0x264427(0x1a6)][_0x264427(0x1c6)](_0x240285[_0x264427(0x16b)],_0x240285),this[_0x264427(0x1c9)](_0x264427(0x1b7),{'contextItem':_0x240285,'isLoading':!0x1});}async[_0x6fe328(0x146)](_0x3fa7bb,_0x5a3123,_0xcaca5d){const _0xddfa6c=_0x6fe328,_0x416632=this[_0xddfa6c(0x148)][_0xddfa6c(0x15a)][_0xddfa6c(0x19e)](_0x43f485=>_0x43f485['id']===_0x3fa7bb);if(!_0x416632)return this[_0xddfa6c(0x1c9)](_0xddfa6c(0x151),{'error':new _0x3a3170(_0xddfa6c(0x166),this,{'sourceId':_0x3fa7bb}),'sourceId':_0x3fa7bb}),[];try{const _0x223d2c=(await _0x416632[_0xddfa6c(0x159)](_0x5a3123))[_0xddfa6c(0x1a8)](_0x7a640a=>{const _0x4dbef5=_0xddfa6c,_0x581156=this[_0x4dbef5(0x1ae)](_0x7a640a['id']);return{..._0x7a640a,'isInContext':_0x581156};});return _0x416632[_0xddfa6c(0x1b5)]=_0x223d2c,this[_0xddfa6c(0x1c9)](_0xddfa6c(0x1ad),{'sourceId':_0x3fa7bb,'source':_0x416632,'resources':_0x223d2c,'uid':_0xcaca5d}),_0x223d2c;}catch(_0x280160){return this[_0xddfa6c(0x1c9)](_0xddfa6c(0x151),{'error':new _0x3a3170(_0xddfa6c(0x1b4),this,{'sourceId':_0x3fa7bb,'originalError':_0x280160}),'sourceId':_0x3fa7bb,'sourceLabel':_0x416632[_0xddfa6c(0x180)]}),[];}}async[_0x6fe328(0x160)](_0xd0544f,_0x38e862){const _0x3d351e=_0x6fe328;if(this[_0x3d351e(0x1ae)](_0x38e862['id']))return;let _0x59486d=_0x38e862[_0x3d351e(0x179)];if(!_0x59486d&&_0xd0544f[_0x3d351e(0x1bd)])try{_0x59486d=await _0xd0544f[_0x3d351e(0x1bd)](_0x38e862['id']);}catch(_0x250d1a){return void this[_0x3d351e(0x1c9)](_0x3d351e(0x151),{'error':new _0x3a3170(_0x3d351e(0x141),this,{'resourceId':_0x38e862['id'],'sourceId':_0xd0544f['id'],'originalError':_0x250d1a}),'resourceId':_0x38e862['id'],'sourceId':_0xd0544f['id']});}if(_0x59486d)switch(_0x38e862[_0x3d351e(0x14b)]){case _0x5192a4[_0x3d351e(0x18f)]:if(_0x3d351e(0x139)!=typeof _0x59486d)return void this[_0x3d351e(0x1c9)](_0x3d351e(0x151),{'error':new _0x3a3170(_0x3d351e(0x192),this,{'resourceId':_0x38e862['id'],'sourceId':_0xd0544f['id'],'expectedType':_0x3d351e(0x139),'actualType':typeof _0x59486d}),'resourceId':_0x38e862['id'],'sourceId':_0xd0544f['id']});await this[_0x3d351e(0x1be)](_0x59486d,{'label':_0x38e862[_0x3d351e(0x180)],'resourceId':_0x38e862['id']});break;case _0x5192a4[_0x3d351e(0x1c5)]:if(!(_0x59486d instanceof File))return void this[_0x3d351e(0x1c9)](_0x3d351e(0x151),{'error':new _0x3a3170(_0x3d351e(0x192),this,{'resourceId':_0x38e862['id'],'sourceId':_0xd0544f['id'],'expectedType':_0x3d351e(0x1b9),'actualType':typeof _0x59486d}),'resourceId':_0x38e862['id'],'sourceId':_0xd0544f['id']});await this[_0x3d351e(0x175)]([_0x59486d],{'label':_0x38e862[_0x3d351e(0x180)],'resourceId':_0x38e862['id']});break;case _0x5192a4[_0x3d351e(0x1b1)]:if(_0x3d351e(0x1af)!=typeof _0x59486d||!(_0x3d351e(0x1ca)in _0x59486d)||!(_0x3d351e(0x14b)in _0x59486d))return void this[_0x3d351e(0x1c9)](_0x3d351e(0x151),{'error':new _0x3a3170(_0x3d351e(0x192),this,{'resourceId':_0x38e862['id'],'sourceId':_0xd0544f['id'],'expectedType':_0x3d351e(0x18c),'actualType':typeof _0x59486d}),'resourceId':_0x38e862['id'],'sourceId':_0xd0544f['id']});_0x59486d=AIChatContext[_0x3d351e(0x1aa)](_0x59486d,_0x38e862[_0x3d351e(0x180)]),await this[_0x3d351e(0x175)]([_0x59486d],{'label':_0x38e862[_0x3d351e(0x180)],'resourceId':_0x38e862['id']},_0x5192a4[_0x3d351e(0x1b1)]);break;case _0x5192a4[_0x3d351e(0x1c8)]:break;default:this[_0x3d351e(0x1c9)](_0x3d351e(0x151),{'error':new _0x3a3170(_0x3d351e(0x142),this,{'resourceId':_0x38e862['id'],'sourceId':_0xd0544f['id'],'resourceType':_0x38e862[_0x3d351e(0x14b)]}),'resourceId':_0x38e862['id'],'sourceId':_0xd0544f['id']});}else this[_0x3d351e(0x1c9)](_0x3d351e(0x151),{'error':new _0x3a3170(_0x3d351e(0x169),this,{'resourceId':_0x38e862['id'],'sourceId':_0xd0544f['id']}),'resourceId':_0x38e862['id'],'sourceId':_0xd0544f['id']});}static[_0x6fe328(0x1aa)](_0x232abf,_0x3dbac9){const _0x41043e=_0x6fe328;switch(_0x232abf[_0x41043e(0x14b)]){case _0x216793[_0x41043e(0x17f)]:return new File([_0x232abf[_0x41043e(0x1ca)]],_0x3dbac9,{'type':_0x41043e(0x16a)});case _0x216793[_0x41043e(0x194)]:return new File([_0x232abf[_0x41043e(0x1ca)]],_0x3dbac9,{'type':_0x41043e(0x158)});default:return new File([_0x232abf[_0x41043e(0x1ca)]],_0x3dbac9,{'type':_0x41043e(0x163)});}}static[_0x6fe328(0x17c)](_0xe31ca0){const _0x30ebb4=_0x6fe328;switch(_0xe31ca0[_0x30ebb4(0x14b)]){case _0x5192a4[_0x30ebb4(0x1c5)]:return{'type':_0x5192a4[_0x30ebb4(0x1c5)],'id':_0xe31ca0['id']};case _0x5192a4[_0x30ebb4(0x18f)]:return{'type':_0x5192a4[_0x30ebb4(0x18f)],'id':_0xe31ca0['id']};case _0x5192a4[_0x30ebb4(0x193)]:return{'type':_0x5192a4[_0x30ebb4(0x193)],'id':_0xe31ca0['id'],..._0xe31ca0[_0x30ebb4(0x137)]?.[_0x30ebb4(0x1a2)]&&{'selection':_0xe31ca0[_0x30ebb4(0x137)]}};case _0x5192a4[_0x30ebb4(0x1b1)]:return{'type':_0x5192a4[_0x30ebb4(0x1c5)],'id':_0xe31ca0['id']};case _0x5192a4[_0x30ebb4(0x1c8)]:{const _0x1f15aa=_0xe31ca0;return{'type':_0x5192a4[_0x30ebb4(0x1c8)],'mcpServerName':_0x1f15aa[_0x30ebb4(0x15b)],'toolName':_0x1f15aa[_0x30ebb4(0x16e)],'data':_0x1f15aa[_0x30ebb4(0x179)],'id':_0x1f15aa['id']};}default:return null;}}[_0x6fe328(0x156)](_0x1a5b53,_0x19f28d=!0x1){const _0x575019=_0x6fe328;if(this[_0x575019(0x1a6)][_0x575019(0x1c6)](_0x1a5b53[_0x575019(0x16b)],_0x1a5b53),_0x1a5b53[_0x575019(0x1c7)]||this[_0x575019(0x1c9)](_0x575019(0x1b7),{'contextItem':_0x1a5b53,'isLoading':_0x19f28d}),_0x575019(0x1b3)===_0x1a5b53[_0x575019(0x16b)]&&this[_0x575019(0x13c)](),_0x1a5b53[_0x575019(0x18b)]){const _0x21e45e=this[_0x575019(0x1b0)](_0x1a5b53[_0x575019(0x18b)]);_0x21e45e&&_0x21e45e[_0x575019(0x19b)](_0xa0b4a6=>{const _0x17c541=_0x575019;this[_0x17c541(0x155)](_0xa0b4a6,_0x1a5b53[_0x17c541(0x18b)],!0x0);});}}[_0x6fe328(0x1a9)](_0x3869aa){const _0x412e8e=_0x6fe328,_0x1e710e=this[_0x412e8e(0x1a6)][_0x412e8e(0x197)](_0x3869aa),_0x34b552=this[_0x412e8e(0x1a4)][_0x412e8e(0x197)](_0x3869aa);if(_0x34b552&&(_0x34b552[_0x412e8e(0x16d)](),this[_0x412e8e(0x1a4)][_0x412e8e(0x15c)](_0x3869aa)),_0x1e710e?.[_0x412e8e(0x18b)]){const _0x5af81e=this[_0x412e8e(0x1b0)](_0x1e710e[_0x412e8e(0x18b)]);_0x5af81e&&_0x5af81e[_0x412e8e(0x19b)](_0x36695c=>{const _0x12f286=_0x412e8e;this[_0x12f286(0x155)](_0x36695c,_0x1e710e[_0x12f286(0x18b)],!0x1);});}this[_0x412e8e(0x1a6)][_0x412e8e(0x15c)](_0x3869aa),this[_0x412e8e(0x1c9)](_0x412e8e(0x149),{'uiId':_0x3869aa,'type':_0x1e710e?.[_0x412e8e(0x14b)]}),_0x412e8e(0x1b3)===_0x3869aa&&this[_0x412e8e(0x13c)]();}[_0x6fe328(0x19d)](_0x505d8f,_0x5ab64c){const _0x55a404=_0x6fe328;if(this[_0x55a404(0x1a6)][_0x55a404(0x1a3)](_0x505d8f[_0x55a404(0x16b)])&&(this[_0x55a404(0x1a6)][_0x55a404(0x1c6)](_0x505d8f[_0x55a404(0x16b)],_0x505d8f),this[_0x55a404(0x1c9)](_0x55a404(0x143),{'contextItem':_0x505d8f,'isLoading':_0x5ab64c}),_0x505d8f[_0x55a404(0x18b)])){const _0x5940d8=this[_0x55a404(0x1b0)](_0x505d8f[_0x55a404(0x18b)]);_0x5940d8&&_0x5940d8[_0x55a404(0x19b)](_0x27e4d3=>{const _0xbcc89f=_0x55a404;this[_0xbcc89f(0x155)](_0x27e4d3,_0x505d8f[_0xbcc89f(0x18b)],!0x0);});}}[_0x6fe328(0x171)](_0x56e836){const _0x112e5b=_0x6fe328;this[_0x112e5b(0x18e)][_0x112e5b(0x1c6)](_0x56e836[_0x112e5b(0x16b)],_0x56e836);}[_0x6fe328(0x1a1)](){const _0x3d3a9b=_0x6fe328;this[_0x3d3a9b(0x148)]={'document':{'enabled':!0x1!==this[_0x3d3a9b(0x165)]?.[_0x3d3a9b(0x1c4)]?.[_0x3d3a9b(0x1b8)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x3d3a9b(0x165)]?.[_0x3d3a9b(0x13d)]?.[_0x3d3a9b(0x1b8)]},'files':{'enabled':!0x1!==this[_0x3d3a9b(0x165)]?.[_0x3d3a9b(0x167)]?.[_0x3d3a9b(0x1b8)]},'sources':this[_0x3d3a9b(0x147)](),'customItems':this[_0x3d3a9b(0x165)]?.[_0x3d3a9b(0x145)]?.[_0x3d3a9b(0x1a8)](_0x5840d3=>({..._0x5840d3,'enabled':!0x0}))??[]},this[_0x3d3a9b(0x1c9)](_0x3d3a9b(0x1ac),{'options':this[_0x3d3a9b(0x148)]});}[_0x6fe328(0x147)](){const _0x2ac63e=_0x6fe328;return this[_0x2ac63e(0x165)]?.[_0x2ac63e(0x15a)]?.[_0x2ac63e(0x1a8)](_0x59696e=>({..._0x59696e,'resources':[]}))??[];}[_0x6fe328(0x13c)](){const _0x1bafc9=_0x6fe328,_0x5d7fd0=this[_0x1bafc9(0x1c1)]()||this[_0x1bafc9(0x1ba)]();this[_0x1bafc9(0x148)][_0x1bafc9(0x1c4)][_0x1bafc9(0x170)]=_0x5d7fd0,this[_0x1bafc9(0x1c9)](_0x1bafc9(0x1ac),{'options':this[_0x1bafc9(0x148)]});}[_0x6fe328(0x1ae)](_0x34967e){const _0x2c0e03=_0x6fe328;for(const _0x39eef7 of this[_0x2c0e03(0x1a6)][_0x2c0e03(0x195)]())if(_0x39eef7[_0x2c0e03(0x18b)]===_0x34967e)return!0x0;for(const _0x4c794b of this[_0x2c0e03(0x18e)][_0x2c0e03(0x195)]())if(_0x4c794b[_0x2c0e03(0x18b)]===_0x34967e)return!0x0;return!0x1;}[_0x6fe328(0x1b0)](_0x4f730a){const _0x45cb93=_0x6fe328,_0x59baa1=[];for(const _0x430690 of this[_0x45cb93(0x148)][_0x45cb93(0x15a)]){_0x430690[_0x45cb93(0x1b5)][_0x45cb93(0x19e)](_0x2f6d95=>_0x2f6d95['id']===_0x4f730a)&&_0x59baa1[_0x45cb93(0x13e)](_0x430690['id']);}return 0x0===_0x59baa1[_0x45cb93(0x1a2)]?null:_0x59baa1;}[_0x6fe328(0x155)](_0x134a11,_0x28f4eb,_0x26bf59){const _0x9aa427=_0x6fe328,_0x40954f=this[_0x9aa427(0x148)][_0x9aa427(0x15a)][_0x9aa427(0x19e)](_0xbb5eca=>_0xbb5eca['id']===_0x134a11);if(!_0x40954f)return;const _0x52f3f6=_0x40954f[_0x9aa427(0x1b5)][_0x9aa427(0x19e)](_0x248f48=>_0x248f48['id']===_0x28f4eb);_0x52f3f6&&(_0x52f3f6[_0x9aa427(0x13f)]=_0x26bf59,this[_0x9aa427(0x1c9)](_0x9aa427(0x14e),{'sourceId':_0x134a11,'resourceId':_0x28f4eb,'isInContext':_0x26bf59}));}[_0x6fe328(0x19a)](_0x24a15a){const _0x56678e=_0x6fe328;this[_0x56678e(0x150)][_0x56678e(0x1c6)](_0x24a15a,!0x0),this[_0x56678e(0x150)][_0x56678e(0x17b)]&&this[_0x56678e(0x1c9)](_0x56678e(0x199),{'isUploadInProgress':!0x0});}[_0x6fe328(0x1a5)](_0x248826){const _0x5bf2d0=_0x6fe328;this[_0x5bf2d0(0x150)][_0x5bf2d0(0x15c)](_0x248826),0x0===this[_0x5bf2d0(0x150)][_0x5bf2d0(0x17b)]&&this[_0x5bf2d0(0x1c9)](_0x5bf2d0(0x199),{'isUploadInProgress':!0x1});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3f0537=_0x3167;(function(_0x8bc7b5,_0x39072e){const _0x3341e5=_0x3167,_0x463bf9=_0x8bc7b5();while(!![]){try{const _0x2830d4=parseInt(_0x3341e5(0x1dc))/0x1*(parseInt(_0x3341e5(0x1eb))/0x2)+-parseInt(_0x3341e5(0x208))/0x3*(-parseInt(_0x3341e5(0x1c2))/0x4)+parseInt(_0x3341e5(0x20f))/0x5+parseInt(_0x3341e5(0x1d7))/0x6+parseInt(_0x3341e5(0x1e4))/0x7*(-parseInt(_0x3341e5(0x1fc))/0x8)+parseInt(_0x3341e5(0x1ef))/0x9*(-parseInt(_0x3341e5(0x20b))/0xa)+parseInt(_0x3341e5(0x216))/0xb;if(_0x2830d4===_0x39072e)break;else _0x463bf9['push'](_0x463bf9['shift']());}catch(_0x354749){_0x463bf9['push'](_0x463bf9['shift']());}}}(_0xb85a,0x70534));import{CKEditorError as _0x28c57c,EmitterMixin as _0x1eeb7c,logWarning as _0x2bfa3f}from'ckeditor5/src/utils.js';function _0x3167(_0x4cb7e9,_0x6e7af){const _0xb85adc=_0xb85a();return _0x3167=function(_0x3167d8,_0x1a7ac9){_0x3167d8=_0x3167d8-0x1ba;let _0x43268b=_0xb85adc[_0x3167d8];return _0x43268b;},_0x3167(_0x4cb7e9,_0x6e7af);}import{AI_MODEL_EVENT_NAMES as _0x5bb6e2}from'../../aicore/model/aiinteraction.js';function _0xb85a(){const _0x12e1d8=['ai-chat-conversation-set-model-null','set','19iChXms','chatModels','assistant','interactionCreated','toggleReasoning','stack','getAvailableModels','setModel','15519TjaNNF','ai-chat-conversation-start-no-model-selected','reset','isFromHistory','setReasoning','getModel','ai-chat-conversation-init-from-id-failed','27562cpSMQc','sources','toLowerCase','getConversation','6500853AlomdE','indexOf','destroy','updateCurrentDocumentInContext','populateFromMessage','ai-chat-handle-user-conversation-not-initialized','chatContext','conversationStarted','loadSourceResources','url','getAll','mcp-tool-result','push','2696ZMkBgV','role','_processMessagesToInteractions','isAvailable','startConversation','ai-chat-conversation-already-started','removeFromContext','removeSelectionFromContext','appendContent','stop','isCurrentDocumentInConversation','ai-chat-conversation-start-failed','745428drohFV','capabilities','load','10jsMwjG','getCapabilitiesConfig','connector','toggleWebSearch','114220VWSJpA','ai-chat-handle-user-interaction-start-failed','addToolItemToContext','removeInteraction','fetchConversationMessages','fire','modelSelected','257345IdXGFz','createReply','start','handleUserInteraction','getEditor','options','_extractContextItems','content','toolName','addSelectionToContext','delegate','text','title','setWebSearch','getCurrentDocumentContext','contextItems','parse','ai-chat-conversation-set-model-not-available','find','addCurrentDocumentToContext','attributes','ai-chat-conversation-init-failed','addResourceToContext','_handleToolResultData','isSelectionInContext','modification','message','conversationId','selectedModelId','addUrlToContext','currentInteraction','user','group','isStarted','webSearch','conversationInitialized','model','addFilesToContext','sessionId','ai-chat-handle-user-interaction-already-in-progress','addToConversationContext','reasoning','selectedModel','12CvsFVs','get','isCurrentDocumentInContext','lastInteraction','error','splice','interactions','fetchConversation','currentReply','type','init','getDocumentContext','hasOwn','getInteraction','setConversationTitle','updateCurrentDocument','code','createInteraction','chatCapabilities','length','prompt','5256144Radxqc','getMessages','getPendingContextItems'];_0xb85a=function(){return _0x12e1d8;};return _0xb85a();}import{AIChatContext as _0x2ab20b,AI_CONTEXT_MODEL_EVENT_NAMES as _0x40c5bf}from'./aichatcontext.js';import{AICapabilities as _0x552567,CAPABILITIES_MODEL_EVENT_NAMES as _0x486477}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x1e2e90}from'./aichatinteraction.js';import{errorsMap as _0x1cb05a}from'../../errorsmap.js';export class AIChatConversation extends _0x1eeb7c(){['id'];[_0x3f0537(0x237)]=!0x1;[_0x3f0537(0x1e7)];[_0x3f0537(0x1c8)]=[];[_0x3f0537(0x234)];[_0x3f0537(0x1c1)];[_0x3f0537(0x20d)];[_0x3f0537(0x21b)];constructor(_0x2494d4){const _0x42d65f=_0x3f0537;super(),this[_0x42d65f(0x21b)]=_0x2494d4,this[_0x42d65f(0x20d)]=_0x2494d4[_0x42d65f(0x20d)],this[_0x42d65f(0x1dd)]=_0x2494d4[_0x42d65f(0x1dd)],this['id']=_0x2494d4[_0x42d65f(0x231)],this[_0x42d65f(0x1e7)]=_0x2494d4[_0x42d65f(0x1e7)];}async[_0x3f0537(0x1cc)](_0x49b1ea){const _0x2a6aec=_0x3f0537;try{this[_0x2a6aec(0x1f5)]=new _0x2ab20b({'connector':this[_0x2a6aec(0x20d)],'config':_0x49b1ea,'ownerId':this['id']}),this[_0x2a6aec(0x1f5)][_0x2a6aec(0x220)](..._0x40c5bf)['to'](this),this[_0x2a6aec(0x1f5)][_0x2a6aec(0x1cc)](),this[_0x2a6aec(0x1d4)]=new _0x552567(),this[_0x2a6aec(0x1d4)][_0x2a6aec(0x220)](..._0x486477)['to'](this),this[_0x2a6aec(0x1d4)][_0x2a6aec(0x1cc)]();const _0x54b27a=await this[_0x2a6aec(0x1dd)][_0x2a6aec(0x1e2)]();this[_0x2a6aec(0x214)](_0x2a6aec(0x1ba),{'availableModels':_0x54b27a});const _0x246c71=await this[_0x2a6aec(0x1dd)][_0x2a6aec(0x1e9)](this[_0x2a6aec(0x21b)][_0x2a6aec(0x232)]);_0x246c71&&await this[_0x2a6aec(0x1e3)](_0x246c71);}catch(_0x2e8236){const _0x50613f=new _0x28c57c(_0x2a6aec(0x22b),null,{'message':_0x2e8236[_0x2a6aec(0x230)]||_0x2e8236});_0x50613f[_0x2a6aec(0x1e1)]=_0x2e8236[_0x2a6aec(0x1e1)],this[_0x2a6aec(0x214)](_0x2a6aec(0x1c6),{'error':_0x50613f});}}async[_0x3f0537(0x218)](){const _0x1a3adc=_0x3f0537;if(this[_0x1a3adc(0x237)])throw new _0x28c57c(_0x1a3adc(0x201),null,{'conversation':this});if(!this[_0x1a3adc(0x1c1)])throw new _0x28c57c(_0x1a3adc(0x1e5),null,{'conversation':this});try{const {id:_0x2d74ff}=await this[_0x1a3adc(0x20d)][_0x1a3adc(0x200)](this['id'],this[_0x1a3adc(0x21b)][_0x1a3adc(0x236)])[_0x1a3adc(0x1ee)]();this['id']=_0x2d74ff,this[_0x1a3adc(0x237)]=!0x0,this[_0x1a3adc(0x214)](_0x1a3adc(0x1f6),{'conversationId':this['id'],'selectedModel':this[_0x1a3adc(0x1c1)]});}catch(_0x5812c3){const _0x59ec0a=new _0x28c57c(_0x1a3adc(0x207),null,{'message':_0x5812c3[_0x1a3adc(0x230)],'conversationId':this['id']});throw _0x59ec0a[_0x1a3adc(0x1e1)]=_0x5812c3[_0x1a3adc(0x1e1)],this[_0x1a3adc(0x214)](_0x1a3adc(0x1c6),{'error':_0x59ec0a}),_0x59ec0a;}}async[_0x3f0537(0x20a)](_0x2cf788,_0xc0b199){const _0x111b08=_0x3f0537;try{const _0x226fc3=await this[_0x111b08(0x20d)][_0x111b08(0x1c9)](_0x2cf788)[_0x111b08(0x1ee)](),_0x59a5bb=await this[_0x111b08(0x20d)][_0x111b08(0x213)](_0x2cf788)[_0x111b08(0x1d8)](),_0x1e66a1=_0x59a5bb[0x0][_0x111b08(0x1bb)];this[_0x111b08(0x237)]=!0x0,this['id']=_0x226fc3['id'],_0x111b08(0x222)in _0x226fc3?this[_0x111b08(0x214)](_0x111b08(0x1d0),_0x226fc3[_0x111b08(0x222)],!0x0):this[_0x111b08(0x214)](_0x111b08(0x1d0),'',!0x0);const _0x4e77d2=(await this[_0x111b08(0x1dd)][_0x111b08(0x1f9)]())[_0x111b08(0x228)](_0x5e1fd3=>_0x5e1fd3['id'][_0x111b08(0x1ed)]()===_0x1e66a1[_0x111b08(0x1ed)]());return this[_0x111b08(0x1c1)]=_0x4e77d2,this[_0x111b08(0x214)](_0x111b08(0x215),{'selectedModel':_0x4e77d2,'isDisabled':!0x0}),await this[_0x111b08(0x1fe)](_0x59a5bb,_0xc0b199,_0x1e66a1),this[_0x111b08(0x234)]=void 0x0,this;}catch(_0x3f103b){const _0x4bd7d3=new _0x28c57c(_0x111b08(0x1ea),null,{'message':_0x3f103b[_0x111b08(0x230)],'conversationId':_0x2cf788});throw _0x4bd7d3[_0x111b08(0x1e1)]=_0x3f103b[_0x111b08(0x1e1)],this[_0x111b08(0x214)](_0x111b08(0x1c6),{'error':_0x4bd7d3}),_0x4bd7d3;}}async[_0x3f0537(0x1fe)](_0x1f62d5,_0x4cdc78,_0xee0274){const _0x50f4df=_0x3f0537;let _0x25f8a2;for(const _0x18576f of _0x1f62d5)if(_0x50f4df(0x235)===_0x18576f[_0x50f4df(0x1fd)]){const _0x57d831=await this[_0x50f4df(0x21c)](_0x18576f),_0x3fb87d={'isReasoningEnabled':Object[_0x50f4df(0x1ce)](_0x18576f[_0x50f4df(0x209)],_0x50f4df(0x1c0)),'isWebSearchEnabled':Object[_0x50f4df(0x1ce)](_0x18576f[_0x50f4df(0x209)],_0x50f4df(0x238))};_0x25f8a2=this[_0x50f4df(0x1d3)]({'userMessage':_0x18576f[_0x50f4df(0x1d6)],'contextItems':_0x57d831,'capabilities':_0x3fb87d,'modelId':_0xee0274,'attributes':_0x18576f[_0x50f4df(0x22a)]}),this[_0x50f4df(0x234)]=_0x25f8a2,this[_0x50f4df(0x1f5)][_0x50f4df(0x1bf)](this[_0x50f4df(0x234)][_0x50f4df(0x225)]);}else{if(_0x50f4df(0x1de)===_0x18576f[_0x50f4df(0x1fd)]&&_0x25f8a2){const _0x180a1e=[];for(const _0x5aba7d of _0x18576f[_0x50f4df(0x21d)])switch(_0x5aba7d[_0x50f4df(0x1cb)]){case _0x50f4df(0x221):case _0x50f4df(0x22f):{const _0x262ba4=_0x25f8a2[_0x50f4df(0x1cd)]()?.[_0x50f4df(0x1bd)]!==_0x4cdc78;_0x25f8a2[_0x50f4df(0x1ca)]=_0x25f8a2[_0x50f4df(0x217)]({'type':_0x5aba7d[_0x50f4df(0x1cb)],'isDone':!0x0,'interactionId':_0x25f8a2['id'],'areActionsDisabled':_0x262ba4}),_0x25f8a2[_0x50f4df(0x1ca)][_0x50f4df(0x204)](_0x5aba7d[_0x50f4df(0x21d)]),_0x180a1e[_0x50f4df(0x1d5)]>0x0&&(_0x25f8a2[_0x50f4df(0x1ca)][_0x50f4df(0x1ec)]=_0x180a1e[_0x50f4df(0x1c7)](0x0));break;}case _0x50f4df(0x1f8):_0x180a1e[_0x50f4df(0x1fb)](_0x5aba7d);break;case _0x50f4df(0x1fa):{const {data:_0x4e6ce7,attributes:_0x2a7b2b}=JSON[_0x50f4df(0x226)](_0x5aba7d[_0x50f4df(0x21d)]);_0x25f8a2[_0x50f4df(0x22d)]({'toolName':_0x5aba7d[_0x50f4df(0x21e)],'data':_0x4e6ce7,'attributes':_0x2a7b2b});break;}}}}}async[_0x3f0537(0x21c)](_0x2fa333){const _0x4117f6=_0x3f0537,_0x10d253=new Map();if(!_0x2fa333[_0x4117f6(0x21d)])return _0x10d253;for(const _0x532af0 of _0x2fa333[_0x4117f6(0x21d)]){const _0x3cb6c0=await this[_0x4117f6(0x1f5)][_0x4117f6(0x1f3)](_0x532af0);_0x3cb6c0&&_0x10d253[_0x4117f6(0x1db)](_0x3cb6c0['id'],_0x3cb6c0);}return _0x10d253;}async[_0x3f0537(0x219)]({userMessage:_0x14873b,attributes:_0x77c0ce}){const _0x85363c=_0x3f0537;if(!this[_0x85363c(0x237)])throw new _0x28c57c(_0x85363c(0x1f4),null,{'conversation':this});if(this[_0x85363c(0x234)])throw new _0x28c57c(_0x85363c(0x1be),null,{'conversation':this});try{const _0xd5ba03=this[_0x85363c(0x1f5)][_0x85363c(0x1d9)](),_0x528bae=this[_0x85363c(0x1d4)][_0x85363c(0x20c)](),_0x218c34=this[_0x85363c(0x1c1)]['id'];this[_0x85363c(0x234)]=this[_0x85363c(0x1d3)]({'userMessage':_0x14873b,'contextItems':_0xd5ba03,'capabilities':_0x528bae,'modelId':_0x218c34,'attributes':_0x77c0ce}),await this[_0x85363c(0x234)][_0x85363c(0x218)](),this[_0x85363c(0x1f5)][_0x85363c(0x1bf)](this[_0x85363c(0x234)][_0x85363c(0x225)]);}catch(_0x47e32d){if(_0x47e32d instanceof _0x28c57c)this[_0x85363c(0x214)](_0x85363c(0x1c6),{'interactionId':this[_0x85363c(0x234)]?this[_0x85363c(0x234)]['id']:void 0x0,'error':_0x47e32d});else{const _0x179c47=_0x1cb05a[_0x85363c(0x1c3)](_0x47e32d[_0x85363c(0x1d2)])||_0x85363c(0x210);this[_0x85363c(0x214)](_0x85363c(0x1c6),{'interactionId':this[_0x85363c(0x234)]?this[_0x85363c(0x234)]['id']:void 0x0,'error':new _0x28c57c(_0x179c47,null,{'error':_0x47e32d})});}}finally{this[_0x85363c(0x234)]?.[_0x85363c(0x205)](),this[_0x85363c(0x234)]=void 0x0;}}[_0x3f0537(0x1d3)]({userMessage:_0x59091e,contextItems:_0xf00803,capabilities:_0x4c64c5,modelId:_0x1bc254,attributes:_0x46fbdd}){const _0x4c8b48=_0x3f0537,_0x420b1b=new _0x1e2e90({'userMessage':_0x59091e,'contextItems':_0xf00803,'capabilities':_0x4c64c5,'conversationId':this['id'],'connector':this[_0x4c8b48(0x20d)],'editor':this[_0x4c8b48(0x21b)][_0x4c8b48(0x21a)]&&this[_0x4c8b48(0x21b)][_0x4c8b48(0x21a)](),'model':_0x1bc254,'attributes':_0x46fbdd});return _0x420b1b[_0x4c8b48(0x220)](..._0x5bb6e2)['to'](this),this[_0x4c8b48(0x1c8)][_0x4c8b48(0x1fb)](_0x420b1b),this[_0x4c8b48(0x214)](_0x4c8b48(0x1df),_0x420b1b),_0x420b1b;}[_0x3f0537(0x1cf)](_0x127b9b){const _0x1f253b=_0x3f0537;return this[_0x1f253b(0x1c8)][_0x1f253b(0x228)](_0x572b62=>_0x572b62['id']===_0x127b9b);}[_0x3f0537(0x212)](_0x2232db){const _0x43ebf6=_0x3f0537,_0x3443f4=this[_0x43ebf6(0x1cf)](_0x2232db);_0x3443f4&&(_0x3443f4[_0x43ebf6(0x1f1)](),this[_0x43ebf6(0x1c8)][_0x43ebf6(0x1c7)](this[_0x43ebf6(0x1c8)][_0x43ebf6(0x1f0)](_0x3443f4),0x1));}get[_0x3f0537(0x1c5)](){const _0x2100b1=_0x3f0537;return this[_0x2100b1(0x1c8)][this[_0x2100b1(0x1c8)][_0x2100b1(0x1d5)]-0x1];}[_0x3f0537(0x229)](_0x621694){const _0x4b7e4b=_0x3f0537;this[_0x4b7e4b(0x1f5)][_0x4b7e4b(0x229)](_0x621694);}async[_0x3f0537(0x1f2)]({content:_0x44b187,version:_0x568b3e,sessionId:_0x23b2e0,selections:_0x1a8c96}){const _0x304f7f=_0x3f0537;await this[_0x304f7f(0x1f5)][_0x304f7f(0x1d1)](_0x44b187,_0x568b3e,_0x23b2e0,_0x1a8c96);}[_0x3f0537(0x224)](){const _0x357065=_0x3f0537;return this[_0x357065(0x234)]?.[_0x357065(0x1cd)]()?.[_0x357065(0x21d)]||'';}[_0x3f0537(0x21f)](_0x40b344){const _0xd8fc68=_0x3f0537;this[_0xd8fc68(0x1f5)][_0xd8fc68(0x21f)](_0x40b344);}[_0x3f0537(0x203)](){const _0x3a3f52=_0x3f0537;this[_0x3a3f52(0x1f5)][_0x3a3f52(0x203)]();}[_0x3f0537(0x1bc)](_0x12586b){const _0x3b6ce1=_0x3f0537;this[_0x3b6ce1(0x1f5)][_0x3b6ce1(0x1bc)](_0x12586b);}[_0x3f0537(0x233)](_0x359c9a){const _0x2ecf0e=_0x3f0537;this[_0x2ecf0e(0x1f5)][_0x2ecf0e(0x233)](_0x359c9a);}[_0x3f0537(0x211)](_0x11263d){const _0x5ba09d=_0x3f0537;this[_0x5ba09d(0x1f5)][_0x5ba09d(0x211)](_0x11263d);}[_0x3f0537(0x22c)](_0x4d3194,_0x4baa4f){const _0x18c823=_0x3f0537;this[_0x18c823(0x1f5)][_0x18c823(0x22c)](_0x4d3194,_0x4baa4f);}[_0x3f0537(0x1f7)](_0x7456ed,_0x2ceb1a,_0x5168fe){const _0x473e18=_0x3f0537;return this[_0x473e18(0x1f5)][_0x473e18(0x1f7)](_0x7456ed,_0x2ceb1a,_0x5168fe);}[_0x3f0537(0x202)](_0x377a40){const _0x1dd863=_0x3f0537;this[_0x1dd863(0x1f5)][_0x1dd863(0x202)](_0x377a40);}[_0x3f0537(0x223)](_0xdf28b2){const _0x4e9166=_0x3f0537;this[_0x4e9166(0x1d4)][_0x4e9166(0x223)](_0xdf28b2);}[_0x3f0537(0x20e)](){const _0x1b18b=_0x3f0537;this[_0x1b18b(0x1d4)][_0x1b18b(0x20e)]();}[_0x3f0537(0x1e8)](_0x257970){const _0x57cf18=_0x3f0537;this[_0x57cf18(0x1d4)][_0x57cf18(0x1e8)](_0x257970);}[_0x3f0537(0x1e0)](){const _0x32c919=_0x3f0537;this[_0x32c919(0x1d4)][_0x32c919(0x1e0)]();}[_0x3f0537(0x1c4)](){const _0x51b6eb=_0x3f0537;return this[_0x51b6eb(0x1f5)][_0x51b6eb(0x1c4)]();}[_0x3f0537(0x206)](){const _0x432b72=_0x3f0537;return this[_0x432b72(0x1f5)][_0x432b72(0x206)]();}[_0x3f0537(0x22e)](){const _0x4f8b65=_0x3f0537;return this[_0x4f8b65(0x1f5)][_0x4f8b65(0x22e)]();}async[_0x3f0537(0x1e3)](_0x2ae659){const _0x41ab51=_0x3f0537;_0x2ae659?!0x1===await this[_0x41ab51(0x1dd)][_0x41ab51(0x1ff)](_0x2ae659)&&(_0x2bfa3f(_0x41ab51(0x227),{'conversation':this,'model':_0x2ae659}),_0x2ae659=(await this[_0x41ab51(0x1dd)][_0x41ab51(0x1e2)]())[0x0]):(_0x2bfa3f(_0x41ab51(0x1da),{'conversation':this}),_0x2ae659=(await this[_0x41ab51(0x1dd)][_0x41ab51(0x1e2)]())[0x0]),_0x2ae659['id']!==this[_0x41ab51(0x1c1)]?.['id']&&(this[_0x41ab51(0x1c1)]=_0x2ae659,this[_0x41ab51(0x1d4)][_0x41ab51(0x1e6)](),this[_0x41ab51(0x214)](_0x41ab51(0x215),{'selectedModel':_0x2ae659}));}}
23
+ const _0x57fc50=_0x4fb3;function _0x4fb3(_0x2c30c8,_0x3c02aa){const _0x299594=_0x2995();return _0x4fb3=function(_0x4fb3e8,_0x505c2e){_0x4fb3e8=_0x4fb3e8-0x1d5;let _0x3229fe=_0x299594[_0x4fb3e8];return _0x3229fe;},_0x4fb3(_0x2c30c8,_0x3c02aa);}(function(_0x2b3852,_0x26f7dc){const _0x203123=_0x4fb3,_0x188c11=_0x2b3852();while(!![]){try{const _0x56b484=-parseInt(_0x203123(0x20c))/0x1+parseInt(_0x203123(0x22f))/0x2*(-parseInt(_0x203123(0x229))/0x3)+parseInt(_0x203123(0x20e))/0x4+-parseInt(_0x203123(0x22c))/0x5*(-parseInt(_0x203123(0x250))/0x6)+-parseInt(_0x203123(0x249))/0x7+parseInt(_0x203123(0x235))/0x8+parseInt(_0x203123(0x1ee))/0x9*(parseInt(_0x203123(0x236))/0xa);if(_0x56b484===_0x26f7dc)break;else _0x188c11['push'](_0x188c11['shift']());}catch(_0x5411c0){_0x188c11['push'](_0x188c11['shift']());}}}(_0x2995,0xa6259));import{CKEditorError as _0x1646c6,EmitterMixin as _0x2b91b3,logWarning as _0x3ba850}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x1109ad}from'../../aicore/model/aiinteraction.js';function _0x2995(){const _0x3ffbdb=['code','load','contextItems','model','setReasoning','title','role','ai-chat-conversation-start-failed','getCapabilitiesConfig','interactions','ai-chat-handle-user-conversation-not-initialized','content','getDocumentContext','modelSelected','conversationStarted','getInteraction','selectedModelId','getConversation','handleUserInteraction','capabilities','ai-chat-handle-user-interaction-start-failed','addToConversationContext','webSearch','ai-chat-conversation-set-model-null','options','addResourceToContext','ai-chat-conversation-init-failed','702201ChmuEt','indexOf','2311668fBdiDq','toggleReasoning','updateCurrentDocumentInContext','getPendingContextItems','init','prompt','reasoning','set','splice','isSelectionInContext','fire','selectedModel','addCurrentDocumentToContext','getEditor','stop','getMessages','setConversationTitle','toLowerCase','removeInteraction','parse','ai-chat-conversation-set-model-not-available','isFromHistory','group','startConversation','chatModels','addToolItemToContext','appendContent','12IXlCPS','attributes','sessionId','25DxzSrE','type','isCurrentDocumentInContext','367658CWblFi','populateFromMessage','assistant','conversationInitialized','find','delegate','2947576jQuQUK','230gvBTkQ','chatCapabilities','addFilesToContext','fetchConversation','stack','isStarted','ai-chat-conversation-start-no-model-selected','currentReply','getCurrentDocumentContext','currentInteraction','createInteraction','getAll','ai-chat-handle-user-interaction-already-in-progress','_processMessagesToInteractions','toggleWebSearch','ai-chat-conversation-already-started','chatContext','addSelectionToContext','destroy','6849605daKMJG','addUrlToContext','removeSelectionFromContext','mcp-tool-result','sources','_handleToolResultData','getAvailableModels','1145874deOQMf','toolName','message','isCurrentDocumentInConversation','isAvailable','url','get','_extractContextItems','ai-chat-conversation-init-from-id-failed','setModel','interactionCreated','connector','updateCurrentDocument','modification','text','lastInteraction','loadSourceResources','start','push','setWebSearch','removeFromContext','hasOwn','error','fetchConversationMessages','conversationId','user','createReply','getModel','467730tSbALS','reset','length'];_0x2995=function(){return _0x3ffbdb;};return _0x2995();}import{AIChatContext as _0x2add99,AI_CONTEXT_MODEL_EVENT_NAMES as _0x11dfd7}from'./aichatcontext.js';import{AICapabilities as _0x153298,CAPABILITIES_MODEL_EVENT_NAMES as _0x1def27}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x3c9586}from'./aichatinteraction.js';import{errorsMap as _0x590475}from'../../errorsmap.js';export class AIChatConversation extends _0x2b91b3(){['id'];[_0x57fc50(0x23b)]=!0x1;[_0x57fc50(0x223)];[_0x57fc50(0x1fa)]=[];[_0x57fc50(0x23f)];[_0x57fc50(0x219)];[_0x57fc50(0x1dd)];[_0x57fc50(0x209)];constructor(_0x18135a){const _0x2c26f0=_0x57fc50;super(),this[_0x2c26f0(0x209)]=_0x18135a,this[_0x2c26f0(0x1dd)]=_0x18135a[_0x2c26f0(0x1dd)],this[_0x2c26f0(0x226)]=_0x18135a[_0x2c26f0(0x226)],this['id']=_0x18135a[_0x2c26f0(0x1ea)],this[_0x2c26f0(0x223)]=_0x18135a[_0x2c26f0(0x223)];}async[_0x57fc50(0x212)](_0x57e05a){const _0x151ce1=_0x57fc50;try{this[_0x151ce1(0x246)]=new _0x2add99({'connector':this[_0x151ce1(0x1dd)],'config':_0x57e05a,'ownerId':this['id']}),this[_0x151ce1(0x246)][_0x151ce1(0x234)](..._0x11dfd7)['to'](this),this[_0x151ce1(0x246)][_0x151ce1(0x212)](),this[_0x151ce1(0x237)]=new _0x153298(),this[_0x151ce1(0x237)][_0x151ce1(0x234)](..._0x1def27)['to'](this),this[_0x151ce1(0x237)][_0x151ce1(0x212)]();const _0x55d496=await this[_0x151ce1(0x226)][_0x151ce1(0x24f)]();this[_0x151ce1(0x218)](_0x151ce1(0x232),{'availableModels':_0x55d496});const _0x480725=await this[_0x151ce1(0x226)][_0x151ce1(0x1ed)](this[_0x151ce1(0x209)][_0x151ce1(0x201)]);_0x480725&&await this[_0x151ce1(0x1db)](_0x480725);}catch(_0x1c9ba2){const _0x14dc96=new _0x1646c6(_0x151ce1(0x20b),null,{'message':_0x1c9ba2[_0x151ce1(0x252)]||_0x1c9ba2});_0x14dc96[_0x151ce1(0x23a)]=_0x1c9ba2[_0x151ce1(0x23a)],this[_0x151ce1(0x218)](_0x151ce1(0x1e8),{'error':_0x14dc96});}}async[_0x57fc50(0x1e3)](){const _0xae69cc=_0x57fc50;if(this[_0xae69cc(0x23b)])throw new _0x1646c6(_0xae69cc(0x245),null,{'conversation':this});if(!this[_0xae69cc(0x219)])throw new _0x1646c6(_0xae69cc(0x23c),null,{'conversation':this});try{const {id:_0x57b4d4}=await this[_0xae69cc(0x1dd)][_0xae69cc(0x225)](this['id'],this[_0xae69cc(0x209)][_0xae69cc(0x224)])[_0xae69cc(0x202)]();this['id']=_0x57b4d4,this[_0xae69cc(0x23b)]=!0x0,this[_0xae69cc(0x218)](_0xae69cc(0x1ff),{'conversationId':this['id'],'selectedModel':this[_0xae69cc(0x219)]});}catch(_0x1386dc){const _0x4a53c2=new _0x1646c6(_0xae69cc(0x1f8),null,{'message':_0x1386dc[_0xae69cc(0x252)],'conversationId':this['id']});throw _0x4a53c2[_0xae69cc(0x23a)]=_0x1386dc[_0xae69cc(0x23a)],this[_0xae69cc(0x218)](_0xae69cc(0x1e8),{'error':_0x4a53c2}),_0x4a53c2;}}async[_0x57fc50(0x1f2)](_0x3e3602,_0x34a336){const _0x44b3cf=_0x57fc50;try{const _0x12e075=await this[_0x44b3cf(0x1dd)][_0x44b3cf(0x239)](_0x3e3602)[_0x44b3cf(0x202)](),_0x2b521e=await this[_0x44b3cf(0x1dd)][_0x44b3cf(0x1e9)](_0x3e3602)[_0x44b3cf(0x21d)](),_0x180f7c=_0x2b521e[0x0][_0x44b3cf(0x1f4)];this[_0x44b3cf(0x23b)]=!0x0,this['id']=_0x12e075['id'],_0x44b3cf(0x1f6)in _0x12e075?this[_0x44b3cf(0x218)](_0x44b3cf(0x21e),_0x12e075[_0x44b3cf(0x1f6)],!0x0):this[_0x44b3cf(0x218)](_0x44b3cf(0x21e),'',!0x0);const _0x3657e9=(await this[_0x44b3cf(0x226)][_0x44b3cf(0x241)]())[_0x44b3cf(0x233)](_0x299350=>_0x299350['id'][_0x44b3cf(0x21f)]()===_0x180f7c[_0x44b3cf(0x21f)]());return this[_0x44b3cf(0x219)]=_0x3657e9,this[_0x44b3cf(0x218)](_0x44b3cf(0x1fe),{'selectedModel':_0x3657e9,'isDisabled':!0x0}),await this[_0x44b3cf(0x243)](_0x2b521e,_0x34a336,_0x180f7c),this[_0x44b3cf(0x23f)]=void 0x0,this;}catch(_0x2c5104){const _0x12ca2f=new _0x1646c6(_0x44b3cf(0x1da),null,{'message':_0x2c5104[_0x44b3cf(0x252)],'conversationId':_0x3e3602});throw _0x12ca2f[_0x44b3cf(0x23a)]=_0x2c5104[_0x44b3cf(0x23a)],this[_0x44b3cf(0x218)](_0x44b3cf(0x1e8),{'error':_0x12ca2f}),_0x12ca2f;}}async[_0x57fc50(0x243)](_0x4474af,_0x429bb7,_0xadc54){const _0x1f39ed=_0x57fc50;let _0x293e69;for(const _0x581ef7 of _0x4474af)if(_0x1f39ed(0x1eb)===_0x581ef7[_0x1f39ed(0x1f7)]){const _0x3852bd=await this[_0x1f39ed(0x1d9)](_0x581ef7),_0x26bfd3={'isReasoningEnabled':Object[_0x1f39ed(0x1e7)](_0x581ef7[_0x1f39ed(0x204)],_0x1f39ed(0x214)),'isWebSearchEnabled':Object[_0x1f39ed(0x1e7)](_0x581ef7[_0x1f39ed(0x204)],_0x1f39ed(0x207))};_0x293e69=this[_0x1f39ed(0x240)]({'userMessage':_0x581ef7[_0x1f39ed(0x213)],'contextItems':_0x3852bd,'capabilities':_0x26bfd3,'modelId':_0xadc54,'attributes':_0x581ef7[_0x1f39ed(0x22a)]}),this[_0x1f39ed(0x23f)]=_0x293e69,this[_0x1f39ed(0x246)][_0x1f39ed(0x206)](this[_0x1f39ed(0x23f)][_0x1f39ed(0x1f3)]);}else{if(_0x1f39ed(0x231)===_0x581ef7[_0x1f39ed(0x1f7)]&&_0x293e69){const _0x1894dc=[];for(const _0x43db2b of _0x581ef7[_0x1f39ed(0x1fc)])switch(_0x43db2b[_0x1f39ed(0x22d)]){case _0x1f39ed(0x1e0):case _0x1f39ed(0x1df):{const _0x500b04=_0x293e69[_0x1f39ed(0x1fd)]()?.[_0x1f39ed(0x22b)]!==_0x429bb7;_0x293e69[_0x1f39ed(0x23d)]=_0x293e69[_0x1f39ed(0x1ec)]({'type':_0x43db2b[_0x1f39ed(0x22d)],'isDone':!0x0,'interactionId':_0x293e69['id'],'areActionsDisabled':_0x500b04}),_0x293e69[_0x1f39ed(0x23d)][_0x1f39ed(0x228)](_0x43db2b[_0x1f39ed(0x1fc)]),_0x1894dc[_0x1f39ed(0x1f0)]>0x0&&(_0x293e69[_0x1f39ed(0x23d)][_0x1f39ed(0x24d)]=_0x1894dc[_0x1f39ed(0x216)](0x0));break;}case _0x1f39ed(0x1d7):_0x1894dc[_0x1f39ed(0x1e4)](_0x43db2b);break;case _0x1f39ed(0x24c):{const {data:_0x36b5d2,attributes:_0x2f72f3}=JSON[_0x1f39ed(0x221)](_0x43db2b[_0x1f39ed(0x1fc)]);_0x293e69[_0x1f39ed(0x24e)]({'toolName':_0x43db2b[_0x1f39ed(0x251)],'data':_0x36b5d2,'attributes':_0x2f72f3});break;}}}}}async[_0x57fc50(0x1d9)](_0x5c94e6){const _0x16b2d9=_0x57fc50,_0x7e0b1a=new Map();if(!_0x5c94e6[_0x16b2d9(0x1fc)])return _0x7e0b1a;for(const _0x4a0421 of _0x5c94e6[_0x16b2d9(0x1fc)]){const _0x1fa056=await this[_0x16b2d9(0x246)][_0x16b2d9(0x230)](_0x4a0421);_0x1fa056&&_0x7e0b1a[_0x16b2d9(0x215)](_0x1fa056['id'],_0x1fa056);}return _0x7e0b1a;}async[_0x57fc50(0x203)]({userMessage:_0x58f69a,attributes:_0x58601c}){const _0x4ccc70=_0x57fc50;if(!this[_0x4ccc70(0x23b)])throw new _0x1646c6(_0x4ccc70(0x1fb),null,{'conversation':this});if(this[_0x4ccc70(0x23f)])throw new _0x1646c6(_0x4ccc70(0x242),null,{'conversation':this});try{const _0x48fc99=this[_0x4ccc70(0x246)][_0x4ccc70(0x211)](),_0x3a3717=this[_0x4ccc70(0x237)][_0x4ccc70(0x1f9)](),_0x9fc595=this[_0x4ccc70(0x219)]['id'];this[_0x4ccc70(0x23f)]=this[_0x4ccc70(0x240)]({'userMessage':_0x58f69a,'contextItems':_0x48fc99,'capabilities':_0x3a3717,'modelId':_0x9fc595,'attributes':_0x58601c}),await this[_0x4ccc70(0x23f)][_0x4ccc70(0x1e3)](),this[_0x4ccc70(0x246)][_0x4ccc70(0x206)](this[_0x4ccc70(0x23f)][_0x4ccc70(0x1f3)]);}catch(_0x1e5d1f){if(_0x1e5d1f instanceof _0x1646c6)this[_0x4ccc70(0x218)](_0x4ccc70(0x1e8),{'interactionId':this[_0x4ccc70(0x23f)]?this[_0x4ccc70(0x23f)]['id']:void 0x0,'error':_0x1e5d1f});else{const _0x412996=_0x590475[_0x4ccc70(0x1d8)](_0x1e5d1f[_0x4ccc70(0x1f1)])||_0x4ccc70(0x205);this[_0x4ccc70(0x218)](_0x4ccc70(0x1e8),{'interactionId':this[_0x4ccc70(0x23f)]?this[_0x4ccc70(0x23f)]['id']:void 0x0,'error':new _0x1646c6(_0x412996,null,{'error':_0x1e5d1f})});}}finally{this[_0x4ccc70(0x23f)]?.[_0x4ccc70(0x21c)](),this[_0x4ccc70(0x23f)]=void 0x0;}}[_0x57fc50(0x240)]({userMessage:_0x5f018e,contextItems:_0x5b8cf6,capabilities:_0x3334e5,modelId:_0x4ed16c,attributes:_0x14004f}){const _0x2f227f=_0x57fc50,_0x4e9676=new _0x3c9586({'userMessage':_0x5f018e,'contextItems':_0x5b8cf6,'capabilities':_0x3334e5,'conversationId':this['id'],'connector':this[_0x2f227f(0x1dd)],'editor':this[_0x2f227f(0x209)][_0x2f227f(0x21b)]&&this[_0x2f227f(0x209)][_0x2f227f(0x21b)](),'model':_0x4ed16c,'attributes':_0x14004f});return _0x4e9676[_0x2f227f(0x234)](..._0x1109ad)['to'](this),this[_0x2f227f(0x1fa)][_0x2f227f(0x1e4)](_0x4e9676),this[_0x2f227f(0x218)](_0x2f227f(0x1dc),_0x4e9676),_0x4e9676;}[_0x57fc50(0x200)](_0x1a9578){const _0x140d58=_0x57fc50;return this[_0x140d58(0x1fa)][_0x140d58(0x233)](_0x56da8c=>_0x56da8c['id']===_0x1a9578);}[_0x57fc50(0x220)](_0xdaad3e){const _0xb00d07=_0x57fc50,_0x4cc52b=this[_0xb00d07(0x200)](_0xdaad3e);_0x4cc52b&&(_0x4cc52b[_0xb00d07(0x248)](),this[_0xb00d07(0x1fa)][_0xb00d07(0x216)](this[_0xb00d07(0x1fa)][_0xb00d07(0x20d)](_0x4cc52b),0x1));}get[_0x57fc50(0x1e1)](){const _0x16e921=_0x57fc50;return this[_0x16e921(0x1fa)][this[_0x16e921(0x1fa)][_0x16e921(0x1f0)]-0x1];}[_0x57fc50(0x21a)](_0x53372d){const _0x7a2c57=_0x57fc50;this[_0x7a2c57(0x246)][_0x7a2c57(0x21a)](_0x53372d);}async[_0x57fc50(0x210)]({content:_0x1b8a2a,version:_0xc53110,sessionId:_0x3796bc,selections:_0x19bf05}){const _0x366b6f=_0x57fc50;await this[_0x366b6f(0x246)][_0x366b6f(0x1de)](_0x1b8a2a,_0xc53110,_0x3796bc,_0x19bf05);}[_0x57fc50(0x23e)](){const _0x1a51b9=_0x57fc50;return this[_0x1a51b9(0x23f)]?.[_0x1a51b9(0x1fd)]()?.[_0x1a51b9(0x1fc)]||'';}[_0x57fc50(0x247)](_0x51ca6a){const _0x49ed16=_0x57fc50;this[_0x49ed16(0x246)][_0x49ed16(0x247)](_0x51ca6a);}[_0x57fc50(0x24b)](){const _0x4cf4dc=_0x57fc50;this[_0x4cf4dc(0x246)][_0x4cf4dc(0x24b)]();}[_0x57fc50(0x238)](_0x44808a){const _0x561497=_0x57fc50;this[_0x561497(0x246)][_0x561497(0x238)](_0x44808a);}[_0x57fc50(0x24a)](_0x34579b){const _0x559a99=_0x57fc50;this[_0x559a99(0x246)][_0x559a99(0x24a)](_0x34579b);}[_0x57fc50(0x227)](_0x2de155){const _0x4cf5b6=_0x57fc50;this[_0x4cf5b6(0x246)][_0x4cf5b6(0x227)](_0x2de155);}[_0x57fc50(0x20a)](_0x388e40,_0x27931e){const _0x236d71=_0x57fc50;this[_0x236d71(0x246)][_0x236d71(0x20a)](_0x388e40,_0x27931e);}[_0x57fc50(0x1e2)](_0x42c7ed,_0xc8807e,_0x155126){const _0x3a928b=_0x57fc50;return this[_0x3a928b(0x246)][_0x3a928b(0x1e2)](_0x42c7ed,_0xc8807e,_0x155126);}[_0x57fc50(0x1e6)](_0x392440){const _0x32a2d7=_0x57fc50;this[_0x32a2d7(0x246)][_0x32a2d7(0x1e6)](_0x392440);}[_0x57fc50(0x1e5)](_0x5a6cf9){const _0x2d7588=_0x57fc50;this[_0x2d7588(0x237)][_0x2d7588(0x1e5)](_0x5a6cf9);}[_0x57fc50(0x244)](){const _0x6cd25f=_0x57fc50;this[_0x6cd25f(0x237)][_0x6cd25f(0x244)]();}[_0x57fc50(0x1f5)](_0x1d6e26){const _0x1fb57b=_0x57fc50;this[_0x1fb57b(0x237)][_0x1fb57b(0x1f5)](_0x1d6e26);}[_0x57fc50(0x20f)](){const _0x524157=_0x57fc50;this[_0x524157(0x237)][_0x524157(0x20f)]();}[_0x57fc50(0x22e)](){const _0x55a7e5=_0x57fc50;return this[_0x55a7e5(0x246)][_0x55a7e5(0x22e)]();}[_0x57fc50(0x1d5)](){const _0x734193=_0x57fc50;return this[_0x734193(0x246)][_0x734193(0x1d5)]();}[_0x57fc50(0x217)](){const _0x4a93a2=_0x57fc50;return this[_0x4a93a2(0x246)][_0x4a93a2(0x217)]();}async[_0x57fc50(0x1db)](_0x3076aa){const _0x5a8e39=_0x57fc50;_0x3076aa?!0x1===await this[_0x5a8e39(0x226)][_0x5a8e39(0x1d6)](_0x3076aa)&&(_0x3ba850(_0x5a8e39(0x222),{'conversation':this,'model':_0x3076aa}),_0x3076aa=(await this[_0x5a8e39(0x226)][_0x5a8e39(0x24f)]())[0x0]):(_0x3ba850(_0x5a8e39(0x208),{'conversation':this}),_0x3076aa=(await this[_0x5a8e39(0x226)][_0x5a8e39(0x24f)]())[0x0]),_0x3076aa['id']!==this[_0x5a8e39(0x219)]?.['id']&&(this[_0x5a8e39(0x219)]=_0x3076aa,this[_0x5a8e39(0x237)][_0x5a8e39(0x1ef)](),this[_0x5a8e39(0x218)](_0x5a8e39(0x1fe),{'selectedModel':_0x3076aa}));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x9108f3=_0x465b;(function(_0x472345,_0x14542c){var _0x35e552=_0x465b,_0x31c293=_0x472345();while(!![]){try{var _0xd2401a=-parseInt(_0x35e552(0xce))/0x1*(parseInt(_0x35e552(0xbd))/0x2)+-parseInt(_0x35e552(0xb8))/0x3+parseInt(_0x35e552(0xb9))/0x4*(parseInt(_0x35e552(0xcc))/0x5)+parseInt(_0x35e552(0xca))/0x6*(-parseInt(_0x35e552(0xc4))/0x7)+parseInt(_0x35e552(0xc1))/0x8*(parseInt(_0x35e552(0xcd))/0x9)+-parseInt(_0x35e552(0xba))/0xa+parseInt(_0x35e552(0xbb))/0xb*(parseInt(_0x35e552(0xbf))/0xc);if(_0xd2401a===_0x14542c)break;else _0x31c293['push'](_0x31c293['shift']());}catch(_0x7bd4c5){_0x31c293['push'](_0x31c293['shift']());}}}(_0x24cf,0xd84de));function _0x24cf(){var _0x1153b3=['current-document','conversationId','1128SwesCT','mapContextItemsToRequestData','70YkLnMT','18phhICW','2176DzORlp','connector','queryAssistant','userMessage','1864218dMQrah','186652PvkKhl','5208220OvODYh','11TsdQkA','attributes','1198XxXWKs','model','23729064zIFFpr','sendRequest','3200024kcZaJv','capabilities','contextItems','3689NmEpBE','getDocumentContext','getCapabilitiesRequestData','get'];_0x24cf=function(){return _0x1153b3;};return _0x24cf();}import{AICapabilities as _0x2dc6e8}from'../../aicore/model/aicapabilities.js';import{AIInteraction as _0x30ba65}from'../../aicore/model/aiinteraction.js';function _0x465b(_0x291bd,_0x4c48fd){var _0x24cfaa=_0x24cf();return _0x465b=function(_0x465b36,_0x58da71){_0x465b36=_0x465b36-0xb6;var _0x5824cc=_0x24cfaa[_0x465b36];return _0x5824cc;},_0x465b(_0x291bd,_0x4c48fd);}import{AIChatContext as _0x3793e1}from'./aichatcontext.js';export class AIChatInteraction extends _0x30ba65{[_0x9108f3(0xb7)];[_0x9108f3(0xc9)];[_0x9108f3(0xc3)]=new Map();[_0x9108f3(0xbe)];[_0x9108f3(0xbc)];constructor(_0x6749f1){var _0x4e56f8=_0x9108f3;super(_0x6749f1),this[_0x4e56f8(0xc9)]=_0x6749f1[_0x4e56f8(0xc9)],this[_0x4e56f8(0xc3)]=_0x6749f1[_0x4e56f8(0xc3)],this[_0x4e56f8(0xc2)]=_0x6749f1[_0x4e56f8(0xc2)],this[_0x4e56f8(0xb7)]=_0x6749f1[_0x4e56f8(0xb7)],this[_0x4e56f8(0xbe)]=_0x6749f1[_0x4e56f8(0xbe)],this[_0x4e56f8(0xbc)]=_0x6749f1[_0x4e56f8(0xbc)];}async[_0x9108f3(0xc0)](){var _0x16e4e5=_0x9108f3;return this[_0x16e4e5(0xcf)][_0x16e4e5(0xb6)]({'message':this[_0x16e4e5(0xb7)],'conversationId':this[_0x16e4e5(0xc9)],'parts':_0x3793e1[_0x16e4e5(0xcb)](this[_0x16e4e5(0xc3)]),'capabilities':_0x2dc6e8[_0x16e4e5(0xc6)](this[_0x16e4e5(0xc2)]),'model':this[_0x16e4e5(0xbe)],'attributes':this[_0x16e4e5(0xbc)]});}[_0x9108f3(0xc5)](){var _0x184cdd=_0x9108f3;return this[_0x184cdd(0xc3)][_0x184cdd(0xc7)](_0x184cdd(0xc8));}}
23
+ var _0x11120d=_0x5003;function _0x5003(_0x4fbcc1,_0x580e02){var _0x40a8bc=_0x40a8();return _0x5003=function(_0x5003f6,_0xf9f3c6){_0x5003f6=_0x5003f6-0xf1;var _0x303389=_0x40a8bc[_0x5003f6];return _0x303389;},_0x5003(_0x4fbcc1,_0x580e02);}(function(_0x56d07e,_0x39c4c0){var _0x372f87=_0x5003,_0x2025f6=_0x56d07e();while(!![]){try{var _0xbcceea=parseInt(_0x372f87(0x102))/0x1+parseInt(_0x372f87(0x100))/0x2*(parseInt(_0x372f87(0x108))/0x3)+-parseInt(_0x372f87(0xf3))/0x4*(-parseInt(_0x372f87(0xf8))/0x5)+parseInt(_0x372f87(0xfa))/0x6*(parseInt(_0x372f87(0x106))/0x7)+-parseInt(_0x372f87(0xff))/0x8+parseInt(_0x372f87(0xf7))/0x9+-parseInt(_0x372f87(0xfb))/0xa;if(_0xbcceea===_0x39c4c0)break;else _0x2025f6['push'](_0x2025f6['shift']());}catch(_0x2e2068){_0x2025f6['push'](_0x2025f6['shift']());}}}(_0x40a8,0x1ba16));import{AICapabilities as _0x17d4b9}from'../../aicore/model/aicapabilities.js';import{AIInteraction as _0x432bba}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x610c5c}from'./aichatcontext.js';function _0x40a8(){var _0x2b39bf=['mapContextItemsToRequestData','189672suALHX','connector','3zqoQWF','capabilities','userMessage','2348PcvBJL','attributes','sendRequest','getCapabilitiesRequestData','1456767hraXYT','1300GhUMxQ','contextItems','30BrPaAf','2568010dNIEQQ','model','conversationId','current-document','1640128mpMKee','52134kEinrN','getDocumentContext','98961CSKJUH','get','queryAssistant'];_0x40a8=function(){return _0x2b39bf;};return _0x40a8();}export class AIChatInteraction extends _0x432bba{[_0x11120d(0xf2)];[_0x11120d(0xfd)];[_0x11120d(0xf9)]=new Map();[_0x11120d(0xfc)];[_0x11120d(0xf4)];constructor(_0xf03df4){var _0x3e2ab6=_0x11120d;super(_0xf03df4),this[_0x3e2ab6(0xfd)]=_0xf03df4[_0x3e2ab6(0xfd)],this[_0x3e2ab6(0xf9)]=_0xf03df4[_0x3e2ab6(0xf9)],this[_0x3e2ab6(0xf1)]=_0xf03df4[_0x3e2ab6(0xf1)],this[_0x3e2ab6(0xf2)]=_0xf03df4[_0x3e2ab6(0xf2)],this[_0x3e2ab6(0xfc)]=_0xf03df4[_0x3e2ab6(0xfc)],this[_0x3e2ab6(0xf4)]=_0xf03df4[_0x3e2ab6(0xf4)];}async[_0x11120d(0xf5)](){var _0x1ea615=_0x11120d;return this[_0x1ea615(0x107)][_0x1ea615(0x104)]({'message':this[_0x1ea615(0xf2)],'conversationId':this[_0x1ea615(0xfd)],'parts':_0x610c5c[_0x1ea615(0x105)](this[_0x1ea615(0xf9)]),'capabilities':_0x17d4b9[_0x1ea615(0xf6)](this[_0x1ea615(0xf1)]),'model':this[_0x1ea615(0xfc)],'attributes':this[_0x1ea615(0xf4)]});}[_0x11120d(0x101)](){var _0x39f402=_0x11120d;return this[_0x39f402(0xf9)][_0x39f402(0x103)](_0x39f402(0xfe));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4c9c8d=_0x4c0c;function _0x23ee(){const _0xd3398e=['render','isEnabled','setTemplate','focusCycler','_focusables','_state','shift\x20+\x20tab','nextButtonView','_toolbarContainerView','_miniToolbarView','4761412mSCwNi','destroy','update','_stateView','7DzXNsI','_partToolbarView','showError','showBlockingError','ck-ai-chat-balloon__toolbar-container','6654560JUdPKO','toggleShowChanges','focusFirst','execute','delegate','insertSuggestion','set','change:isTrackChangesOn','13543856WKwPIm','19810439tsTeUW','isTrackChangesOn','30GBFzCS','toggleRotatorButtonsVisibility','hideError','_errorView','_focusTracker','div','_isErrorVisible','updateContent','pending','full','createCollection','3eFeeZZ','includes','bindTemplate','setState','rejectSuggestion','3404124QjmUOo','7978632clYvYm','2877674USIpoA','AI_BALLOON_PREVIOUS_LABEL','_streamableContentView','toggleSuggestionDisplayMode','keepErrors','bind','fire','focusLast','add','_keystrokes','applySuggestion','showDiff','_togglePartToolbarButtonsVisibility','isShowChangesOn','togglePartToolbarEnabled','ck-ai-chat-balloon-main_state_','addMany','element','availableActions','has','isVisible','children','previousButtonView','change:_state','_createNextButtonView','setButtonsVisibility','showPrevious','listenTo','ck-ai-chat-balloon-main','AI_BALLOON_NEXT_LABEL','tab','_config','locale','focus','showNext','_createPreviousButtonView','1alzggv'];_0x23ee=function(){return _0xd3398e;};return _0x23ee();}(function(_0x40a4c2,_0x1ef1f7){const _0x4032e5=_0x4c0c,_0x2aed6c=_0x40a4c2();while(!![]){try{const _0x490bf4=-parseInt(_0x4032e5(0x1d0))/0x1*(-parseInt(_0x4032e5(0x201))/0x2)+parseInt(_0x4032e5(0x1fa))/0x3*(parseInt(_0x4032e5(0x1db))/0x4)+-parseInt(_0x4032e5(0x1e4))/0x5+-parseInt(_0x4032e5(0x200))/0x6+parseInt(_0x4032e5(0x1df))/0x7*(parseInt(_0x4032e5(0x1ec))/0x8)+parseInt(_0x4032e5(0x1ff))/0x9*(parseInt(_0x4032e5(0x1ef))/0xa)+-parseInt(_0x4032e5(0x1ed))/0xb;if(_0x490bf4===_0x1ef1f7)break;else _0x2aed6c['push'](_0x2aed6c['shift']());}catch(_0x4d7b0c){_0x2aed6c['push'](_0x2aed6c['shift']());}}}(_0x23ee,0xf2faf));import{FocusTracker as _0x6ca005,KeystrokeHandler as _0x3b1527}from'ckeditor5/src/utils.js';import{AISuggestionStreamableContentView as _0x1e6e0b}from'../../aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js';function _0x4c0c(_0x2bf4b7,_0x5849b8){const _0x23ee88=_0x23ee();return _0x4c0c=function(_0x4c0c99,_0x3bb127){_0x4c0c99=_0x4c0c99-0x1ca;let _0xc9d759=_0x23ee88[_0x4c0c99];return _0xc9d759;},_0x4c0c(_0x2bf4b7,_0x5849b8);}import{AISuggestionContentPartToolbarView as _0x32b983}from'../../aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js';import{AIMiniToolbarView as _0x3b27ce}from'../../aicore/ui/suggestioncontainer/aiminitoolbarview.js';import{AIBalloonView as _0x1524b3}from'../../aiballoon/ui/aiballoonview.js';import{ButtonView as _0x201d8f,FocusCycler as _0x587632,View as _0x52b89f}from'ckeditor5/src/ui.js';import{AISuggestionContentPartStateView as _0x286402}from'../../aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js';import{IconChevronDown as _0x4117b2,IconChevronUp as _0x5f2083}from'ckeditor5/src/icons.js';import{getTranslation as _0x306462}from'../../aicore/utils/common-translations.js';import'../../../theme/aichat/aichatballoon.css';export class AIChatBalloonView extends _0x1524b3{[_0x4c9c8d(0x216)];[_0x4c9c8d(0x1d8)];[_0x4c9c8d(0x217)];[_0x4c9c8d(0x1d4)];[_0x4c9c8d(0x1d5)];[_0x4c9c8d(0x1f3)];[_0x4c9c8d(0x20a)];[_0x4c9c8d(0x1cb)];[_0x4c9c8d(0x203)];[_0x4c9c8d(0x1d9)];[_0x4c9c8d(0x1e0)];[_0x4c9c8d(0x1de)];[_0x4c9c8d(0x1da)];constructor(_0x34dff4,_0x226f93){const _0x4a974a=_0x4c9c8d;super(_0x34dff4);const _0x12adf4=this[_0x4a974a(0x1fc)];this[_0x4a974a(0x1ea)](_0x4a974a(0x20c),!0x1),this[_0x4a974a(0x1ea)](_0x4a974a(0x1d6),_0x4a974a(0x1f7)),this[_0x4a974a(0x1f3)]=new _0x6ca005(),this[_0x4a974a(0x20a)]=new _0x3b1527(),this[_0x4a974a(0x1d5)]=this[_0x4a974a(0x1f9)](),this[_0x4a974a(0x1d4)]=new _0x587632({'focusables':this[_0x4a974a(0x1d5)],'focusTracker':this[_0x4a974a(0x1f3)],'keystrokeHandler':this[_0x4a974a(0x20a)],'actions':{'focusPrevious':_0x4a974a(0x1d7),'focusNext':_0x4a974a(0x1ca)}}),this[_0x4a974a(0x1cb)]=_0x226f93,this[_0x4a974a(0x1d8)]=this[_0x4a974a(0x219)](),this[_0x4a974a(0x217)]=this[_0x4a974a(0x1cf)](),this[_0x4a974a(0x203)]=new _0x1e6e0b(_0x34dff4),this[_0x4a974a(0x1e0)]=new _0x32b983(_0x34dff4,_0x226f93[_0x4a974a(0x213)]),this[_0x4a974a(0x1e0)][_0x4a974a(0x1e8)](_0x4a974a(0x20b),_0x4a974a(0x1e9),_0x4a974a(0x1fe))['to'](this),this[_0x4a974a(0x20d)](_0x226f93),this[_0x4a974a(0x1de)]=new _0x286402(_0x34dff4),this[_0x4a974a(0x1de)][_0x4a974a(0x215)]=!0x1,this[_0x4a974a(0x1da)]=new _0x3b27ce(_0x34dff4,{'showChanges':_0x4a974a(0x1f8)}),this[_0x4a974a(0x1da)][_0x4a974a(0x206)](_0x4a974a(0x20e))['to'](this,_0x4a974a(0x20c)),this[_0x4a974a(0x1da)]['on'](_0x4a974a(0x1e5),()=>{const _0x1db24e=_0x4a974a;this[_0x1db24e(0x207)](_0x1db24e(0x204));}),this[_0x4a974a(0x1d9)]=new ms(_0x34dff4,[this[_0x4a974a(0x1e0)],this[_0x4a974a(0x1de)],this[_0x4a974a(0x1da)]]),this[_0x4a974a(0x216)]=this[_0x4a974a(0x1f9)]([this[_0x4a974a(0x203)],this[_0x4a974a(0x1d9)]]),this['on'](_0x4a974a(0x218),(_0x2bf588,_0xca5c87,_0x1462be,_0x8ba478)=>{const _0x2c9257=_0x4a974a;let _0x170406,_0x1f6dfb;_0x2c9257(0x1f7)===_0x8ba478?(_0x170406=this[_0x2c9257(0x1e0)],_0x1f6dfb=this[_0x2c9257(0x1de)]):(_0x170406=this[_0x2c9257(0x1de)],_0x1f6dfb=this[_0x2c9257(0x1e0)]),this[_0x2c9257(0x1de)][_0x2c9257(0x1fd)](_0x1462be),_0x170406[_0x2c9257(0x215)]=!0x1,_0x1f6dfb[_0x2c9257(0x215)]=!0x0;}),this[_0x4a974a(0x1d3)]({'tag':_0x4a974a(0x1f4),'attributes':{'class':['ck',_0x4a974a(0x21d),_0x12adf4['to'](_0x4a974a(0x1d6),_0x4660e1=>_0x4a974a(0x210)+_0x4660e1)]},'children':this[_0x4a974a(0x216)]}),this['on'](_0x4a974a(0x1eb),()=>{const _0x41a361=_0x4a974a;this[_0x41a361(0x20d)](_0x226f93);});}[_0x4c9c8d(0x1d1)](){const _0x1db3cb=_0x4c9c8d;super[_0x1db3cb(0x1d1)](),this[_0x1db3cb(0x1d8)][_0x1db3cb(0x1d1)](),this[_0x1db3cb(0x217)][_0x1db3cb(0x1d1)](),this[_0x1db3cb(0x1f3)][_0x1db3cb(0x209)](this[_0x1db3cb(0x212)]),this[_0x1db3cb(0x1f3)][_0x1db3cb(0x209)](this[_0x1db3cb(0x1d8)]),this[_0x1db3cb(0x1f3)][_0x1db3cb(0x209)](this[_0x1db3cb(0x217)]),this[_0x1db3cb(0x1f3)][_0x1db3cb(0x209)](this[_0x1db3cb(0x1da)]),this[_0x1db3cb(0x1f3)][_0x1db3cb(0x209)](this[_0x1db3cb(0x1e0)]),this[_0x1db3cb(0x20a)][_0x1db3cb(0x21c)](this[_0x1db3cb(0x212)]),this[_0x1db3cb(0x20a)][_0x1db3cb(0x21c)](this[_0x1db3cb(0x1d8)][_0x1db3cb(0x212)]),this[_0x1db3cb(0x20a)][_0x1db3cb(0x21c)](this[_0x1db3cb(0x217)][_0x1db3cb(0x212)]),this[_0x1db3cb(0x1d5)][_0x1db3cb(0x211)]([this[_0x1db3cb(0x1d8)],this[_0x1db3cb(0x217)],this[_0x1db3cb(0x1e0)],this[_0x1db3cb(0x1da)]]);}[_0x4c9c8d(0x1dc)](){const _0x3dcd2a=_0x4c9c8d;super[_0x3dcd2a(0x1dc)](),this[_0x3dcd2a(0x217)][_0x3dcd2a(0x1dc)](),this[_0x3dcd2a(0x1d8)][_0x3dcd2a(0x1dc)]();}[_0x4c9c8d(0x1cd)](){const _0x230f49=_0x4c9c8d;this[_0x230f49(0x1d4)][_0x230f49(0x1e6)]();}[_0x4c9c8d(0x208)](){const _0x5731c9=_0x4c9c8d;this[_0x5731c9(0x1d4)][_0x5731c9(0x208)]();}async[_0x4c9c8d(0x1f6)](_0x156b0d){const _0x3ba19a=_0x4c9c8d;_0x156b0d?.[_0x3ba19a(0x205)]||this[_0x3ba19a(0x1f1)](),await this[_0x3ba19a(0x203)][_0x3ba19a(0x1dd)](_0x156b0d);}[_0x4c9c8d(0x1fd)](_0x13d85e){const _0x431565=_0x4c9c8d;this[_0x431565(0x1d6)]=_0x13d85e;}[_0x4c9c8d(0x1e1)](_0x4c0756){const _0x2bcf3c=_0x4c9c8d;super[_0x2bcf3c(0x1e1)](_0x4c0756),this[_0x2bcf3c(0x216)][_0x2bcf3c(0x214)](this[_0x2bcf3c(0x1f2)])||this[_0x2bcf3c(0x216)][_0x2bcf3c(0x209)](this[_0x2bcf3c(0x1f2)],0x0);}[_0x4c9c8d(0x1f1)](){const _0x474728=_0x4c9c8d;this[_0x474728(0x1f5)]&&(super[_0x474728(0x1f1)](),this[_0x474728(0x20f)](!0x0));}[_0x4c9c8d(0x1e2)](_0x361a8e){const _0x5bf436=_0x4c9c8d;super[_0x5bf436(0x1e2)](_0x361a8e),this[_0x5bf436(0x20f)](!0x1);}[_0x4c9c8d(0x1f0)](_0x4a5bef){const _0x5f30b1=_0x4c9c8d;this[_0x5f30b1(0x1d8)][_0x5f30b1(0x215)]=this[_0x5f30b1(0x217)][_0x5f30b1(0x215)]=_0x4a5bef;}[_0x4c9c8d(0x20f)](_0x571a74){const _0x8b9515=_0x4c9c8d;this[_0x8b9515(0x1e0)][_0x8b9515(0x1d2)]=_0x571a74;}[_0x4c9c8d(0x20d)]({showApplyButton:_0x336a7d,showSuggestButton:_0x660396}){const _0x491730=_0x4c9c8d;_0x336a7d=_0x336a7d&&!this[_0x491730(0x1ee)]&&this[_0x491730(0x1cb)][_0x491730(0x213)][_0x491730(0x1fb)](_0x491730(0x20b)),_0x660396=_0x660396&&this[_0x491730(0x1cb)][_0x491730(0x213)][_0x491730(0x1fb)](_0x491730(0x1e9)),this[_0x491730(0x1e0)][_0x491730(0x21a)]({'showApplyButton':_0x336a7d,'showSuggestButton':_0x660396});}[_0x4c9c8d(0x219)](){const _0x5319ab=_0x4c9c8d,_0x3de1e7=new _0x201d8f(this[_0x5319ab(0x1cc)]);return _0x3de1e7[_0x5319ab(0x1ea)]({'icon':_0x4117b2,'label':_0x306462(this[_0x5319ab(0x1cc)],_0x5319ab(0x21e)),'isVisible':!0x0}),_0x3de1e7['on'](_0x5319ab(0x1e7),()=>{const _0x1c9a7d=_0x5319ab;this[_0x1c9a7d(0x207)](_0x1c9a7d(0x1ce));}),_0x3de1e7;}[_0x4c9c8d(0x1cf)](){const _0x18b3ec=_0x4c9c8d,_0x1baf98=new _0x201d8f(this[_0x18b3ec(0x1cc)]);return _0x1baf98[_0x18b3ec(0x1ea)]({'icon':_0x5f2083,'label':_0x306462(this[_0x18b3ec(0x1cc)],_0x18b3ec(0x202)),'isVisible':!0x0}),_0x1baf98['on'](_0x18b3ec(0x1e7),()=>{const _0x40edfe=_0x18b3ec;this[_0x40edfe(0x207)](_0x40edfe(0x21b));}),_0x1baf98;}}class ms extends _0x52b89f{constructor(_0x54c4a4,_0x1aedd0){const _0xcb6575=_0x4c9c8d;super(_0x54c4a4),this[_0xcb6575(0x1d3)]({'tag':_0xcb6575(0x1f4),'attributes':{'class':[_0xcb6575(0x1e3)]},'children':_0x1aedd0});}}
23
+ const _0x59f102=_0x28b1;(function(_0x1976fb,_0x2fbbd2){const _0xa21ee5=_0x28b1,_0x2656f4=_0x1976fb();while(!![]){try{const _0x206a9d=parseInt(_0xa21ee5(0xce))/0x1*(-parseInt(_0xa21ee5(0xcb))/0x2)+-parseInt(_0xa21ee5(0xb2))/0x3+parseInt(_0xa21ee5(0x88))/0x4+-parseInt(_0xa21ee5(0xc0))/0x5+parseInt(_0xa21ee5(0x9c))/0x6*(-parseInt(_0xa21ee5(0x91))/0x7)+-parseInt(_0xa21ee5(0xaf))/0x8*(-parseInt(_0xa21ee5(0x82))/0x9)+-parseInt(_0xa21ee5(0xd0))/0xa*(-parseInt(_0xa21ee5(0x8c))/0xb);if(_0x206a9d===_0x2fbbd2)break;else _0x2656f4['push'](_0x2656f4['shift']());}catch(_0x2450b4){_0x2656f4['push'](_0x2656f4['shift']());}}}(_0x9809,0xbf8f8));import{FocusTracker as _0x503e14,KeystrokeHandler as _0xd9a69}from'ckeditor5/src/utils.js';import{AISuggestionStreamableContentView as _0x25484b}from'../../aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js';import{AISuggestionContentPartToolbarView as _0x572c39}from'../../aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js';import{AIMiniToolbarView as _0x1715ab}from'../../aicore/ui/suggestioncontainer/aiminitoolbarview.js';import{AIBalloonView as _0x347344}from'../../aiballoon/ui/aiballoonview.js';import{ButtonView as _0x30157b,FocusCycler as _0x1a677a,View as _0x8f0391}from'ckeditor5/src/ui.js';import{AISuggestionContentPartStateView as _0x5830ed}from'../../aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js';import{IconChevronDown as _0x4b7053,IconChevronUp as _0x299c31}from'ckeditor5/src/icons.js';import{getTranslation as _0x1a1307}from'../../aicore/utils/common-translations.js';import'../../../theme/aichat/aichatballoon.css';export class AIChatBalloonView extends _0x347344{[_0x59f102(0xa6)];[_0x59f102(0x8b)];[_0x59f102(0xca)];[_0x59f102(0xa1)];[_0x59f102(0x83)];[_0x59f102(0x85)];[_0x59f102(0xbf)];[_0x59f102(0xad)];[_0x59f102(0xc9)];[_0x59f102(0xa7)];[_0x59f102(0xbe)];[_0x59f102(0x8e)];[_0x59f102(0x8a)];constructor(_0x118059,_0x52ddd8){const _0x19fefb=_0x59f102;super(_0x118059);const _0x329c65=this[_0x19fefb(0x8d)];this[_0x19fefb(0x7d)](_0x19fefb(0xb4),!0x1),this[_0x19fefb(0x7d)](_0x19fefb(0xac),_0x19fefb(0xc5)),this[_0x19fefb(0x85)]=new _0x503e14(),this[_0x19fefb(0xbf)]=new _0xd9a69(),this[_0x19fefb(0x83)]=this[_0x19fefb(0xb5)](),this[_0x19fefb(0xa1)]=new _0x1a677a({'focusables':this[_0x19fefb(0x83)],'focusTracker':this[_0x19fefb(0x85)],'keystrokeHandler':this[_0x19fefb(0xbf)],'actions':{'focusPrevious':_0x19fefb(0x96),'focusNext':_0x19fefb(0x99)}}),this[_0x19fefb(0xad)]=_0x52ddd8,this[_0x19fefb(0x8b)]=this[_0x19fefb(0xc6)](),this[_0x19fefb(0xca)]=this[_0x19fefb(0x7f)](),this[_0x19fefb(0xc9)]=new _0x25484b(_0x118059),this[_0x19fefb(0xbe)]=new _0x572c39(_0x118059,_0x52ddd8[_0x19fefb(0x9a)]),this[_0x19fefb(0xbe)][_0x19fefb(0xcc)](_0x19fefb(0x80),_0x19fefb(0x84),_0x19fefb(0xae))['to'](this),this[_0x19fefb(0x98)](_0x52ddd8),this[_0x19fefb(0x8e)]=new _0x5830ed(_0x118059),this[_0x19fefb(0x8e)][_0x19fefb(0xa4)]=!0x1,this[_0x19fefb(0x8a)]=new _0x1715ab(_0x118059,{'showChanges':_0x19fefb(0xb9)}),this[_0x19fefb(0x8a)][_0x19fefb(0xbb)](_0x19fefb(0xa2))['to'](this,_0x19fefb(0xb4)),this[_0x19fefb(0x8a)]['on'](_0x19fefb(0x94),()=>{const _0x5b22a9=_0x19fefb;this[_0x5b22a9(0xb7)](_0x5b22a9(0xa5));}),this[_0x19fefb(0xa7)]=new fs(_0x118059,[this[_0x19fefb(0xbe)],this[_0x19fefb(0x8e)],this[_0x19fefb(0x8a)]]),this[_0x19fefb(0xa6)]=this[_0x19fefb(0xb5)]([this[_0x19fefb(0xc9)],this[_0x19fefb(0xa7)]]),this['on'](_0x19fefb(0xb6),(_0x3e8761,_0x3a5ede,_0x2c90f5,_0x24d7f8)=>{const _0x549d1e=_0x19fefb;let _0x259e2c,_0x40cdd4;_0x549d1e(0xc5)===_0x24d7f8?(_0x259e2c=this[_0x549d1e(0xbe)],_0x40cdd4=this[_0x549d1e(0x8e)]):(_0x259e2c=this[_0x549d1e(0x8e)],_0x40cdd4=this[_0x549d1e(0xbe)]),this[_0x549d1e(0x8e)][_0x549d1e(0x9f)](_0x2c90f5),_0x259e2c[_0x549d1e(0xa4)]=!0x1,_0x40cdd4[_0x549d1e(0xa4)]=!0x0;}),this[_0x19fefb(0x9d)]({'tag':_0x19fefb(0x87),'attributes':{'class':['ck',_0x19fefb(0x86),_0x329c65['to'](_0x19fefb(0xac),_0x144f50=>_0x19fefb(0xc3)+_0x144f50)]},'children':this[_0x19fefb(0xa6)]}),this['on'](_0x19fefb(0xbd),()=>{const _0x51f6cb=_0x19fefb;this[_0x51f6cb(0x98)](_0x52ddd8);});}[_0x59f102(0x90)](){const _0x5aa96b=_0x59f102;super[_0x5aa96b(0x90)](),this[_0x5aa96b(0x8b)][_0x5aa96b(0x90)](),this[_0x5aa96b(0xca)][_0x5aa96b(0x90)](),this[_0x5aa96b(0x85)][_0x5aa96b(0xcf)](this[_0x5aa96b(0xc4)]),this[_0x5aa96b(0x85)][_0x5aa96b(0xcf)](this[_0x5aa96b(0x8b)]),this[_0x5aa96b(0x85)][_0x5aa96b(0xcf)](this[_0x5aa96b(0xca)]),this[_0x5aa96b(0x85)][_0x5aa96b(0xcf)](this[_0x5aa96b(0x8a)]),this[_0x5aa96b(0x85)][_0x5aa96b(0xcf)](this[_0x5aa96b(0xbe)]),this[_0x5aa96b(0xbf)][_0x5aa96b(0xb0)](this[_0x5aa96b(0xc4)]),this[_0x5aa96b(0xbf)][_0x5aa96b(0xb0)](this[_0x5aa96b(0x8b)][_0x5aa96b(0xc4)]),this[_0x5aa96b(0xbf)][_0x5aa96b(0xb0)](this[_0x5aa96b(0xca)][_0x5aa96b(0xc4)]),this[_0x5aa96b(0x83)][_0x5aa96b(0xbc)]([this[_0x5aa96b(0x8b)],this[_0x5aa96b(0xca)],this[_0x5aa96b(0xbe)],this[_0x5aa96b(0x8a)]]);}[_0x59f102(0x9e)](){const _0x375b92=_0x59f102;super[_0x375b92(0x9e)](),this[_0x375b92(0xca)][_0x375b92(0x9e)](),this[_0x375b92(0x8b)][_0x375b92(0x9e)]();}[_0x59f102(0x9b)](){const _0x44e3d7=_0x59f102;this[_0x44e3d7(0xa1)][_0x44e3d7(0xaa)]();}[_0x59f102(0x93)](){const _0x2326b8=_0x59f102;this[_0x2326b8(0xa1)][_0x2326b8(0x93)]();}async[_0x59f102(0xcd)](_0x57229a){const _0x57dd6c=_0x59f102;_0x57229a?.[_0x57dd6c(0x97)]||this[_0x57dd6c(0x7e)](),await this[_0x57dd6c(0xc9)][_0x57dd6c(0x8f)](_0x57229a);}[_0x59f102(0x9f)](_0xdefdfa){const _0x3eaa4b=_0x59f102;this[_0x3eaa4b(0xac)]=_0xdefdfa;}[_0x59f102(0xa9)](_0x47cd81){const _0x20cf5d=_0x59f102;super[_0x20cf5d(0xa9)](_0x47cd81),this[_0x20cf5d(0xa6)][_0x20cf5d(0xc7)](this[_0x20cf5d(0x92)])||this[_0x20cf5d(0xa6)][_0x20cf5d(0xcf)](this[_0x20cf5d(0x92)],0x0);}[_0x59f102(0x7e)](){const _0x3d145a=_0x59f102;this[_0x3d145a(0x89)]&&(super[_0x3d145a(0x7e)](),this[_0x3d145a(0xd1)](!0x0));}[_0x59f102(0x81)](_0x442700){const _0xaa0112=_0x59f102;super[_0xaa0112(0x81)](_0x442700),this[_0xaa0112(0xd1)](!0x1);}[_0x59f102(0xb8)](_0x118967){const _0xce33cd=_0x59f102;this[_0xce33cd(0x8b)][_0xce33cd(0xa4)]=this[_0xce33cd(0xca)][_0xce33cd(0xa4)]=_0x118967;}[_0x59f102(0xd1)](_0x12bb1f){const _0x418be2=_0x59f102;this[_0x418be2(0xbe)][_0x418be2(0xa8)]=_0x12bb1f;}[_0x59f102(0x98)]({showApplyButton:_0x5b5982,showSuggestButton:_0x2d2f94}){const _0x2d4ba2=_0x59f102;_0x5b5982=_0x5b5982&&!this[_0x2d4ba2(0xb3)]&&this[_0x2d4ba2(0xad)][_0x2d4ba2(0x9a)][_0x2d4ba2(0xc8)](_0x2d4ba2(0x80)),_0x2d2f94=_0x2d2f94&&this[_0x2d4ba2(0xad)][_0x2d4ba2(0x9a)][_0x2d4ba2(0xc8)](_0x2d4ba2(0x84)),this[_0x2d4ba2(0xbe)][_0x2d4ba2(0xa0)]({'showApplyButton':_0x5b5982,'showSuggestButton':_0x2d2f94});}[_0x59f102(0xc6)](){const _0x19ac1d=_0x59f102,_0x464aee=new _0x30157b(this[_0x19ac1d(0xa3)]);return _0x464aee[_0x19ac1d(0x7d)]({'icon':_0x4b7053,'label':_0x1a1307(this[_0x19ac1d(0xa3)],_0x19ac1d(0xb1)),'isVisible':!0x0}),_0x464aee['on'](_0x19ac1d(0xc2),()=>{const _0x435f74=_0x19ac1d;this[_0x435f74(0xb7)](_0x435f74(0xc1));}),_0x464aee;}[_0x59f102(0x7f)](){const _0x225dea=_0x59f102,_0x285989=new _0x30157b(this[_0x225dea(0xa3)]);return _0x285989[_0x225dea(0x7d)]({'icon':_0x299c31,'label':_0x1a1307(this[_0x225dea(0xa3)],_0x225dea(0xba)),'isVisible':!0x0}),_0x285989['on'](_0x225dea(0xc2),()=>{const _0x3e302a=_0x225dea;this[_0x3e302a(0xb7)](_0x3e302a(0x95));}),_0x285989;}}function _0x28b1(_0x4c77f9,_0x51e643){const _0x980924=_0x9809();return _0x28b1=function(_0x28b19f,_0x17fd47){_0x28b19f=_0x28b19f-0x7d;let _0x2db4f6=_0x980924[_0x28b19f];return _0x2db4f6;},_0x28b1(_0x4c77f9,_0x51e643);}class fs extends _0x8f0391{constructor(_0x59f5a9,_0x461639){const _0x3e0751=_0x59f102;super(_0x59f5a9),this[_0x3e0751(0x9d)]({'tag':_0x3e0751(0x87),'attributes':{'class':[_0x3e0751(0xab)]},'children':_0x461639});}}function _0x9809(){const _0x582e4f=['addMany','change:isTrackChangesOn','_partToolbarView','_keystrokes','4918685rcbadm','showNext','execute','ck-ai-chat-balloon-main_state_','element','pending','_createNextButtonView','has','includes','_streamableContentView','previousButtonView','2YQpaEH','delegate','updateContent','517481QQfaUy','add','6723400dHqBNm','togglePartToolbarEnabled','set','hideError','_createPreviousButtonView','applySuggestion','showBlockingError','5570604IXlycc','_focusables','insertSuggestion','_focusTracker','ck-ai-chat-balloon-main','div','2092220VBEdBm','_isErrorVisible','_miniToolbarView','nextButtonView','44MwiiPb','bindTemplate','_stateView','update','render','1435hKjbiX','_errorView','focusLast','toggleShowChanges','showPrevious','shift\x20+\x20tab','keepErrors','_togglePartToolbarButtonsVisibility','tab','availableActions','focus','4992imtZaF','setTemplate','destroy','setState','setButtonsVisibility','focusCycler','isShowChangesOn','locale','isVisible','toggleSuggestionDisplayMode','children','_toolbarContainerView','isEnabled','showError','focusFirst','ck-ai-chat-balloon__toolbar-container','_state','_config','rejectSuggestion','8YVbzMA','listenTo','AI_BALLOON_NEXT_LABEL','4124883vRkfFX','isTrackChangesOn','showDiff','createCollection','change:_state','fire','toggleRotatorButtonsVisibility','full','AI_BALLOON_PREVIOUS_LABEL','bind'];_0x9809=function(){return _0x582e4f;};return _0x9809();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4a59a5=_0x471a;(function(_0x1bdfe0,_0x4c662c){const _0x475ed2=_0x471a,_0x109fd8=_0x1bdfe0();while(!![]){try{const _0x19d320=parseInt(_0x475ed2(0x110))/0x1+-parseInt(_0x475ed2(0xf3))/0x2*(-parseInt(_0x475ed2(0x126))/0x3)+parseInt(_0x475ed2(0x116))/0x4*(parseInt(_0x475ed2(0xf0))/0x5)+-parseInt(_0x475ed2(0xf8))/0x6+parseInt(_0x475ed2(0x120))/0x7+-parseInt(_0x475ed2(0x10c))/0x8*(parseInt(_0x475ed2(0xee))/0x9)+-parseInt(_0x475ed2(0x118))/0xa;if(_0x19d320===_0x4c662c)break;else _0x109fd8['push'](_0x109fd8['shift']());}catch(_0x495209){_0x109fd8['push'](_0x109fd8['shift']());}}}(_0x5f2f,0x6124a));import{ButtonView as _0x39490e,clickOutsideHandler as _0x3e3d52,View as _0x465759}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x452f34}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x5af046}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x2fe004,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x449988}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x5c97ae}from'./controls/aichatcontrolsloaderview.js';import{getTranslation as _0x341fe6}from'../../aicore/utils/common-translations.js';import'../../../theme/aichat/aichat-controls.css';import'../../../theme/aichat/aichat-controls/prompt-input.css';function _0x471a(_0x2a7031,_0x355ce5){const _0x5f2fb9=_0x5f2f();return _0x471a=function(_0x471a61,_0x4870c0){_0x471a61=_0x471a61-0xd6;let _0x3d931a=_0x5f2fb9[_0x471a61];return _0x3d931a;},_0x471a(_0x2a7031,_0x355ce5);}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';function _0x5f2f(){const _0x4d3927=['setWebSearch','queryView','ck-ai-chat-controls-model-unavailable-message','selectModel','clearPendingContextUI','_handlePromptInputFocus','focus','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','closeSourceResourceBalloon','updateResourceState','value','_createModelUnavailableMessageView','reset','setConversationContext','_createLoaderView','setModel','370719ImKvgP','isLoading','115ZRdmCC','setAddContextOptions','ck-ai-chat-controls__start-new-chat-button','28lhlBlx','execute','_shouldRestorePromptInputFocus','locale','_loaderView','300564AOvVAb','bodyCollection','form','change:isLoading','_createContextPanelView','ck-ai-chat-controls-disabled','ck-hidden','isModelAvailable','removeContextItem','setModelList','setReasoning','setPlaceholderText','setPromptInputValue','low','_createPromptCapabilitiesView','focusPromptInput','clearConversationContextUI','addContextItem','populateSourceResourceBalloon','isDisabled','24RNGbIh','_promptCapabilitiesView','_contextPanelView','startConversation','249745dfOUAi','element','fieldView','disableModelSelector','_createPromptInputView','contextResourcesSearchInputVisibleFrom','70636HogvNx','set','7005070EKaWyu','addContextButtonView','_promptInputView','bindTemplate','toggleWebSearch','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','div','resetMessageInput','892794WZAjDD','setIsUploadInProgress','setInputPlaceholder','toggleReasoning','ck-ai-chat-controls','enableModelSelector','104706uoltZz','sendUserMessage','clearCurrentContextItems','abortPromptStream','setContextItemLoading','_modelUnavailableMessageView','setTemplate','clearConversationContextItems','delegate'];_0x5f2f=function(){return _0x4d3927;};return _0x5f2f();}export class AIChatControlsView extends _0x465759{[_0x4a59a5(0x10e)];[_0x4a59a5(0x11a)];[_0x4a59a5(0x10d)];[_0x4a59a5(0xf7)];[_0x4a59a5(0xda)];[_0x4a59a5(0xf5)];constructor(_0x5d22d3,_0xc8a518){const _0x13e7d5=_0x4a59a5;super(_0x5d22d3),this[_0x13e7d5(0x10e)]=this[_0x13e7d5(0xfc)](_0x5d22d3,{'bodyCollection':_0xc8a518[_0x13e7d5(0xf9)],'searchInputVisibleFrom':_0xc8a518[_0x13e7d5(0x115)]}),this[_0x13e7d5(0x11a)]=this[_0x13e7d5(0x114)](_0x5d22d3),this[_0x13e7d5(0x10d)]=this[_0x13e7d5(0x106)](_0x5d22d3),this[_0x13e7d5(0xf7)]=this[_0x13e7d5(0xec)](_0x5d22d3),this[_0x13e7d5(0xda)]=this[_0x13e7d5(0xe9)](_0x5d22d3),this[_0x13e7d5(0xf5)]=!0x1,this[_0x13e7d5(0x11a)][_0x13e7d5(0xdd)](_0x13e7d5(0xd6))['to'](this),this[_0x13e7d5(0xf7)][_0x13e7d5(0xdd)](_0x13e7d5(0xd8))['to'](this),this[_0x13e7d5(0x10d)][_0x13e7d5(0xdd)](_0x13e7d5(0x11c))['to'](this),this[_0x13e7d5(0x10d)][_0x13e7d5(0xdd)](_0x13e7d5(0x123))['to'](this),this[_0x13e7d5(0x10d)][_0x13e7d5(0xdd)](_0x13e7d5(0xe1))['to'](this),this[_0x13e7d5(0x10e)][_0x13e7d5(0xdd)](..._0x449988)['to'](this),this[_0x13e7d5(0x117)](_0x13e7d5(0xff),!0x0),this[_0x13e7d5(0x117)](_0x13e7d5(0x10b),!0x1);const _0x5708c9=this[_0x13e7d5(0x11b)];this[_0x13e7d5(0xdb)]({'tag':_0x13e7d5(0xfa),'attributes':{'class':['ck',_0x13e7d5(0x124),_0x5708c9['if'](_0x13e7d5(0x10b),_0x13e7d5(0xfd))]},'children':[{'tag':_0x13e7d5(0x11e),'attributes':{'class':[_0x5708c9['if'](_0x13e7d5(0xef),_0x13e7d5(0xfe),_0x50ce88=>_0x50ce88||!this[_0x13e7d5(0xff)]),_0x5708c9['if'](_0x13e7d5(0xff),_0x13e7d5(0xfe),_0x2be4c2=>!_0x2be4c2||this[_0x13e7d5(0xef)])]},'children':[this[_0x13e7d5(0x10e)],this[_0x13e7d5(0x11a)],this[_0x13e7d5(0x10d)]]},{'tag':_0x13e7d5(0x11e),'attributes':{'class':[_0x5708c9['if'](_0x13e7d5(0xef),_0x13e7d5(0xfe),_0x184d04=>!_0x184d04)]},'children':[this[_0x13e7d5(0xf7)]]},{'tag':_0x13e7d5(0x11e),'attributes':{'class':[_0x5708c9['if'](_0x13e7d5(0xff),_0x13e7d5(0xfe),_0x193f09=>_0x193f09)]},'children':[this[_0x13e7d5(0xda)]]}]}),_0x3e3d52({'emitter':this[_0x13e7d5(0x11a)],'activator':()=>this[_0x13e7d5(0xef)],'contextElements':()=>[this[_0x13e7d5(0x111)]],'callback':()=>{const _0x1f466a=_0x13e7d5;this[_0x1f466a(0xf5)]=!0x1;}}),this['on'](_0x13e7d5(0xfb),this[_0x13e7d5(0xe3)],{'priority':_0x13e7d5(0x105)});}[_0x4a59a5(0xfc)](_0x378274,_0x2f65f4){return new _0x2fe004(_0x378274,_0x2f65f4);}[_0x4a59a5(0x114)](_0x4725b8){const _0x3584f9=_0x4a59a5;return new _0x452f34(_0x4725b8,this[_0x3584f9(0x10e)][_0x3584f9(0x119)]);}[_0x4a59a5(0x106)](_0x3be104){return new _0x5af046(_0x3be104);}[_0x4a59a5(0xec)](_0x348141){return new _0x5c97ae(_0x348141);}[_0x4a59a5(0xe9)](_0x1125af){const _0x185d24=_0x4a59a5,_0xa1f50d=new As(_0x1125af);return _0xa1f50d[_0x185d24(0xdd)](_0x185d24(0x10f))['to'](this),_0xa1f50d;}[_0x4a59a5(0xe3)](_0x592877,_0x2ab7d6,_0x3b9dff){const _0x3b89e7=_0x4a59a5;_0x3b9dff?this[_0x3b89e7(0xf5)]=!0x0:this[_0x3b89e7(0xf5)]&&this[_0x3b89e7(0x11a)][_0x3b89e7(0xe4)]();}[_0x4a59a5(0x109)](_0x3c3fd6,_0x13c918){const _0x3ac0f6=_0x4a59a5;this[_0x3ac0f6(0x10e)][_0x3ac0f6(0x109)](_0x3c3fd6,_0x13c918);}[_0x4a59a5(0x100)](_0x4b29fc){const _0x401669=_0x4a59a5;this[_0x401669(0x10e)][_0x401669(0x100)](_0x4b29fc);}[_0x4a59a5(0xd9)](_0x1bfd0b,_0x137441){const _0x5e6f1f=_0x4a59a5;this[_0x5e6f1f(0x10e)][_0x5e6f1f(0xd9)](_0x1bfd0b,_0x137441);}[_0x4a59a5(0x121)](_0x136659){const _0x3b59eb=_0x4a59a5;this[_0x3b59eb(0x11a)][_0x3b59eb(0x121)](_0x136659);}[_0x4a59a5(0xeb)](_0x1a0104){const _0x2496af=_0x4a59a5;this[_0x2496af(0x10e)][_0x2496af(0xeb)](_0x1a0104);}[_0x4a59a5(0xe2)](){const _0xd6cc5a=_0x4a59a5;this[_0xd6cc5a(0x10e)][_0xd6cc5a(0xd7)]();}[_0x4a59a5(0x108)](){const _0x133c5c=_0x4a59a5;this[_0x133c5c(0x10e)][_0x133c5c(0xdc)]();}[_0x4a59a5(0xe7)](_0x216f76,_0x2b3a50,_0x1b79c3){const _0x128238=_0x4a59a5;this[_0x128238(0x10e)][_0x128238(0xe7)](_0x216f76,_0x2b3a50,_0x1b79c3);}[_0x4a59a5(0xde)](_0x1e2632){const _0x113d53=_0x4a59a5;this[_0x113d53(0x10d)][_0x113d53(0xde)](_0x1e2632);}[_0x4a59a5(0x102)](_0x2b5d66){const _0xa2655c=_0x4a59a5;this[_0xa2655c(0x10d)][_0xa2655c(0x102)](_0x2b5d66);}[_0x4a59a5(0x11f)](){const _0x318894=_0x4a59a5;this[_0x318894(0x11a)][_0x318894(0xea)]();}[_0x4a59a5(0xf1)](_0x34248f){const _0x58c641=_0x4a59a5;this[_0x58c641(0x10e)][_0x58c641(0xf1)](_0x34248f);}[_0x4a59a5(0x122)](_0x120568){const _0x3787ac=_0x4a59a5;this[_0x3787ac(0x11a)][_0x3787ac(0x103)](_0x120568);}[_0x4a59a5(0x101)](_0xb53505,_0x5c880e){const _0x3e3003=_0x4a59a5;this[_0x3e3003(0x10d)][_0x3e3003(0x101)](_0xb53505,_0x5c880e);}[_0x4a59a5(0xed)](_0xea02a8){const _0x206707=_0x4a59a5;_0xea02a8?(this[_0x206707(0xff)]=!0x0,this[_0x206707(0x10d)][_0x206707(0xed)](_0xea02a8)):this[_0x206707(0xff)]=!0x1;}[_0x4a59a5(0x125)](){const _0x19dadf=_0x4a59a5;this[_0x19dadf(0x10d)][_0x19dadf(0x125)]();}[_0x4a59a5(0x113)](_0x55ff52){const _0x2b9f7f=_0x4a59a5;this[_0x2b9f7f(0x10d)][_0x2b9f7f(0x113)](_0x55ff52);}[_0x4a59a5(0x10a)](_0xae54ee,_0x122218,_0xaf26ed,_0xe21f26){const _0x5abdc2=_0x4a59a5;this[_0x5abdc2(0x10e)][_0x5abdc2(0x10a)](_0xae54ee,_0x122218,_0xaf26ed,_0xe21f26);}[_0x4a59a5(0xe6)](_0x1ba5d2){const _0x59f07f=_0x4a59a5;this[_0x59f07f(0x10e)][_0x59f07f(0xe6)](_0x1ba5d2);}[_0x4a59a5(0x107)](_0x2496f7=!0x1){const _0x5cc357=_0x4a59a5;this[_0x5cc357(0x11a)][_0x5cc357(0xe4)](_0x2496f7);}[_0x4a59a5(0x104)](_0x3335ae){const _0x56cec5=_0x4a59a5;this[_0x56cec5(0x11a)][_0x56cec5(0xdf)][_0x56cec5(0x112)][_0x56cec5(0xea)](),this[_0x56cec5(0x11a)][_0x56cec5(0xdf)][_0x56cec5(0x112)][_0x56cec5(0xe8)]=_0x3335ae;}}class As extends _0x465759{constructor(_0x4bd940){const _0xf50b8c=_0x4a59a5;super(_0x4bd940);const _0x4159e6=new _0x39490e(_0x4bd940);_0x4159e6[_0xf50b8c(0x117)]({'label':_0x341fe6(this[_0xf50b8c(0xf6)],_0xf50b8c(0xe5)),'withText':!0x0,'class':[_0xf50b8c(0xf2)],'tooltip':''}),_0x4159e6[_0xf50b8c(0xdd)](_0xf50b8c(0xf4))['to'](this,_0xf50b8c(0x10f)),this[_0xf50b8c(0xdb)]({'tag':_0xf50b8c(0x11e),'attributes':{'class':['ck',_0xf50b8c(0xe0)]},'children':[{'tag':'p','children':[{'text':_0x341fe6(this[_0xf50b8c(0xf6)],_0xf50b8c(0x11d))+'\x20'},_0x4159e6]}]});}}
23
+ const _0x45f70b=_0x3adb;function _0xb3a4(){const _0x3fadb6=['reset','clearConversationContextItems','abortPromptStream','disableModelSelector','focus','ck-ai-chat-controls-model-unavailable-message','updateResourceState','setAddContextOptions','div','change:isLoading','2045048ttuTxj','553cMdwuk','isModelAvailable','_createLoaderView','closeSourceResourceBalloon','_createContextPanelView','55xuWeRa','187588rocydy','setPlaceholderText','setTemplate','setContextItemLoading','element','locale','_createModelUnavailableMessageView','selectModel','_handlePromptInputFocus','ck-ai-chat-controls','1548EHyJzL','setModel','_modelUnavailableMessageView','contextResourcesSearchInputVisibleFrom','_promptCapabilitiesView','setIsUploadInProgress','queryView','clearPendingContextUI','startConversation','1032752VgIZbB','ck-hidden','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','47706gDpKok','_createPromptCapabilitiesView','sendUserMessage','toggleWebSearch','ck-ai-chat-controls-disabled','_contextPanelView','low','setConversationContext','isLoading','bindTemplate','setReasoning','addContextButtonView','_loaderView','fieldView','setModelList','enableModelSelector','clearConversationContextUI','form','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','isDisabled','31743270XTnGfj','1798866UdsoOc','setWebSearch','removeContextItem','_createPromptInputView','1548yPpGkc','resetMessageInput','_shouldRestorePromptInputFocus','value','set','addContextItem','populateSourceResourceBalloon','clearCurrentContextItems','delegate','bodyCollection','focusPromptInput','setInputPlaceholder','execute','_promptInputView','ck-ai-chat-controls__start-new-chat-button','setPromptInputValue','toggleReasoning'];_0xb3a4=function(){return _0x3fadb6;};return _0xb3a4();}(function(_0x337e2c,_0x331881){const _0x4241d2=_0x3adb,_0x45ee78=_0x337e2c();while(!![]){try{const _0x28c8fe=-parseInt(_0x4241d2(0x1f6))/0x1+-parseInt(_0x4241d2(0x212))/0x2*(parseInt(_0x4241d2(0x1ed))/0x3)+-parseInt(_0x4241d2(0x1e3))/0x4*(parseInt(_0x4241d2(0x1e2))/0x5)+parseInt(_0x4241d2(0x1f9))/0x6*(-parseInt(_0x4241d2(0x1dd))/0x7)+-parseInt(_0x4241d2(0x1dc))/0x8+parseInt(_0x4241d2(0x20e))/0x9+parseInt(_0x4241d2(0x20d))/0xa;if(_0x28c8fe===_0x331881)break;else _0x45ee78['push'](_0x45ee78['shift']());}catch(_0x5cef9d){_0x45ee78['push'](_0x45ee78['shift']());}}}(_0xb3a4,0x846e6));import{ButtonView as _0x40c9a5,clickOutsideHandler as _0x2a9f90,View as _0x586c38}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x3328c6}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x32627b}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x84d22b,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x478452}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x3516fe}from'./controls/aichatcontrolsloaderview.js';import{getTranslation as _0x57b166}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';function _0x3adb(_0x58a385,_0x1a220e){const _0xb3a43b=_0xb3a4();return _0x3adb=function(_0x3adb1f,_0x132a10){_0x3adb1f=_0x3adb1f-0x1c9;let _0x1a2236=_0xb3a43b[_0x3adb1f];return _0x1a2236;},_0x3adb(_0x58a385,_0x1a220e);}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 _0x586c38{[_0x45f70b(0x1fe)];[_0x45f70b(0x1ce)];[_0x45f70b(0x1f1)];[_0x45f70b(0x205)];[_0x45f70b(0x1ef)];[_0x45f70b(0x214)];constructor(_0x3db435,_0x10ad30){const _0x201b7c=_0x45f70b;super(_0x3db435),this[_0x201b7c(0x1fe)]=this[_0x201b7c(0x1e1)](_0x3db435,{'bodyCollection':_0x10ad30[_0x201b7c(0x1ca)],'searchInputVisibleFrom':_0x10ad30[_0x201b7c(0x1f0)]}),this[_0x201b7c(0x1ce)]=this[_0x201b7c(0x211)](_0x3db435),this[_0x201b7c(0x1f1)]=this[_0x201b7c(0x1fa)](_0x3db435),this[_0x201b7c(0x205)]=this[_0x201b7c(0x1df)](_0x3db435),this[_0x201b7c(0x1ef)]=this[_0x201b7c(0x1e9)](_0x3db435),this[_0x201b7c(0x214)]=!0x1,this[_0x201b7c(0x1ce)][_0x201b7c(0x1c9)](_0x201b7c(0x1fb))['to'](this),this[_0x201b7c(0x205)][_0x201b7c(0x1c9)](_0x201b7c(0x1d4))['to'](this),this[_0x201b7c(0x1f1)][_0x201b7c(0x1c9)](_0x201b7c(0x1fc))['to'](this),this[_0x201b7c(0x1f1)][_0x201b7c(0x1c9)](_0x201b7c(0x1d1))['to'](this),this[_0x201b7c(0x1f1)][_0x201b7c(0x1c9)](_0x201b7c(0x1ea))['to'](this),this[_0x201b7c(0x1fe)][_0x201b7c(0x1c9)](..._0x478452)['to'](this),this[_0x201b7c(0x216)](_0x201b7c(0x1de),!0x0),this[_0x201b7c(0x216)](_0x201b7c(0x20c),!0x1);const _0x418ef4=this[_0x201b7c(0x202)];this[_0x201b7c(0x1e5)]({'tag':_0x201b7c(0x20a),'attributes':{'class':['ck',_0x201b7c(0x1ec),_0x418ef4['if'](_0x201b7c(0x20c),_0x201b7c(0x1fd))]},'children':[{'tag':_0x201b7c(0x1da),'attributes':{'class':[_0x418ef4['if'](_0x201b7c(0x201),_0x201b7c(0x1f7),_0x3c3c65=>_0x3c3c65||!this[_0x201b7c(0x1de)]),_0x418ef4['if'](_0x201b7c(0x1de),_0x201b7c(0x1f7),_0x440933=>!_0x440933||this[_0x201b7c(0x201)])]},'children':[this[_0x201b7c(0x1fe)],this[_0x201b7c(0x1ce)],this[_0x201b7c(0x1f1)]]},{'tag':_0x201b7c(0x1da),'attributes':{'class':[_0x418ef4['if'](_0x201b7c(0x201),_0x201b7c(0x1f7),_0x42e2ac=>!_0x42e2ac)]},'children':[this[_0x201b7c(0x205)]]},{'tag':_0x201b7c(0x1da),'attributes':{'class':[_0x418ef4['if'](_0x201b7c(0x1de),_0x201b7c(0x1f7),_0x5de5f6=>_0x5de5f6)]},'children':[this[_0x201b7c(0x1ef)]]}]}),_0x2a9f90({'emitter':this[_0x201b7c(0x1ce)],'activator':()=>this[_0x201b7c(0x201)],'contextElements':()=>[this[_0x201b7c(0x1e7)]],'callback':()=>{const _0xdf10a9=_0x201b7c;this[_0xdf10a9(0x214)]=!0x1;}}),this['on'](_0x201b7c(0x1db),this[_0x201b7c(0x1eb)],{'priority':_0x201b7c(0x1ff)});}[_0x45f70b(0x1e1)](_0x14f242,_0x3cdb53){return new _0x84d22b(_0x14f242,_0x3cdb53);}[_0x45f70b(0x211)](_0x53d589){const _0x26604b=_0x45f70b;return new _0x3328c6(_0x53d589,this[_0x26604b(0x1fe)][_0x26604b(0x204)]);}[_0x45f70b(0x1fa)](_0x7f8b7c){return new _0x32627b(_0x7f8b7c);}[_0x45f70b(0x1df)](_0x63550b){return new _0x3516fe(_0x63550b);}[_0x45f70b(0x1e9)](_0x3a555f){const _0x3e57ca=_0x45f70b,_0x2f454e=new As(_0x3a555f);return _0x2f454e[_0x3e57ca(0x1c9)](_0x3e57ca(0x1f5))['to'](this),_0x2f454e;}[_0x45f70b(0x1eb)](_0x5dd076,_0x27b48d,_0x2c95e2){const _0x3d1a3c=_0x45f70b;_0x2c95e2?this[_0x3d1a3c(0x214)]=!0x0:this[_0x3d1a3c(0x214)]&&this[_0x3d1a3c(0x1ce)][_0x3d1a3c(0x1d6)]();}[_0x45f70b(0x217)](_0x384d82,_0x4b4428){const _0x55221a=_0x45f70b;this[_0x55221a(0x1fe)][_0x55221a(0x217)](_0x384d82,_0x4b4428);}[_0x45f70b(0x210)](_0x37cbb3){const _0x62d2f3=_0x45f70b;this[_0x62d2f3(0x1fe)][_0x62d2f3(0x210)](_0x37cbb3);}[_0x45f70b(0x1e6)](_0x20114e,_0x39c28f){const _0x59ca79=_0x45f70b;this[_0x59ca79(0x1fe)][_0x59ca79(0x1e6)](_0x20114e,_0x39c28f);}[_0x45f70b(0x1f2)](_0x428458){const _0x14101a=_0x45f70b;this[_0x14101a(0x1ce)][_0x14101a(0x1f2)](_0x428458);}[_0x45f70b(0x200)](_0x5d068f){const _0x33e588=_0x45f70b;this[_0x33e588(0x1fe)][_0x33e588(0x200)](_0x5d068f);}[_0x45f70b(0x1f4)](){const _0x471b75=_0x45f70b;this[_0x471b75(0x1fe)][_0x471b75(0x219)]();}[_0x45f70b(0x209)](){const _0xdc144c=_0x45f70b;this[_0xdc144c(0x1fe)][_0xdc144c(0x1d3)]();}[_0x45f70b(0x1d8)](_0x29d4c8,_0xe697c6,_0x3215d9){const _0x195a35=_0x45f70b;this[_0x195a35(0x1fe)][_0x195a35(0x1d8)](_0x29d4c8,_0xe697c6,_0x3215d9);}[_0x45f70b(0x20f)](_0x54c246){const _0xc02aa0=_0x45f70b;this[_0xc02aa0(0x1f1)][_0xc02aa0(0x20f)](_0x54c246);}[_0x45f70b(0x203)](_0x12bca3){const _0x2b5d5a=_0x45f70b;this[_0x2b5d5a(0x1f1)][_0x2b5d5a(0x203)](_0x12bca3);}[_0x45f70b(0x213)](){const _0x1cf7c3=_0x45f70b;this[_0x1cf7c3(0x1ce)][_0x1cf7c3(0x1d2)]();}[_0x45f70b(0x1d9)](_0x38a0db){const _0xad1c4c=_0x45f70b;this[_0xad1c4c(0x1fe)][_0xad1c4c(0x1d9)](_0x38a0db);}[_0x45f70b(0x1cc)](_0x185ae9){const _0x20019f=_0x45f70b;this[_0x20019f(0x1ce)][_0x20019f(0x1e4)](_0x185ae9);}[_0x45f70b(0x207)](_0x108086,_0x3b9d7c){const _0xea59f5=_0x45f70b;this[_0xea59f5(0x1f1)][_0xea59f5(0x207)](_0x108086,_0x3b9d7c);}[_0x45f70b(0x1ee)](_0x9ca36d){const _0x20cc8c=_0x45f70b;_0x9ca36d?(this[_0x20cc8c(0x1de)]=!0x0,this[_0x20cc8c(0x1f1)][_0x20cc8c(0x1ee)](_0x9ca36d)):this[_0x20cc8c(0x1de)]=!0x1;}[_0x45f70b(0x208)](){const _0x6d0c0c=_0x45f70b;this[_0x6d0c0c(0x1f1)][_0x6d0c0c(0x208)]();}[_0x45f70b(0x1d5)](_0x2dd6ce){const _0x6de621=_0x45f70b;this[_0x6de621(0x1f1)][_0x6de621(0x1d5)](_0x2dd6ce);}[_0x45f70b(0x218)](_0x465e22,_0x1fc95f,_0x31ed88,_0x2dd77a){const _0x30eb9b=_0x45f70b;this[_0x30eb9b(0x1fe)][_0x30eb9b(0x218)](_0x465e22,_0x1fc95f,_0x31ed88,_0x2dd77a);}[_0x45f70b(0x1e0)](_0x560117){const _0x1e2549=_0x45f70b;this[_0x1e2549(0x1fe)][_0x1e2549(0x1e0)](_0x560117);}[_0x45f70b(0x1cb)](_0x8c0be=!0x1){const _0x5dc6b9=_0x45f70b;this[_0x5dc6b9(0x1ce)][_0x5dc6b9(0x1d6)](_0x8c0be);}[_0x45f70b(0x1d0)](_0x593b4f){const _0x29b8ad=_0x45f70b;this[_0x29b8ad(0x1ce)][_0x29b8ad(0x1f3)][_0x29b8ad(0x206)][_0x29b8ad(0x1d2)](),this[_0x29b8ad(0x1ce)][_0x29b8ad(0x1f3)][_0x29b8ad(0x206)][_0x29b8ad(0x215)]=_0x593b4f;}}class As extends _0x586c38{constructor(_0x2180f6){const _0xb2e831=_0x45f70b;super(_0x2180f6);const _0x4cd385=new _0x40c9a5(_0x2180f6);_0x4cd385[_0xb2e831(0x216)]({'label':_0x57b166(this[_0xb2e831(0x1e8)],_0xb2e831(0x1f8)),'withText':!0x0,'class':[_0xb2e831(0x1cf)],'tooltip':''}),_0x4cd385[_0xb2e831(0x1c9)](_0xb2e831(0x1cd))['to'](this,_0xb2e831(0x1f5)),this[_0xb2e831(0x1e5)]({'tag':_0xb2e831(0x1da),'attributes':{'class':['ck',_0xb2e831(0x1d7)]},'children':[{'tag':'p','children':[{'text':_0x57b166(this[_0xb2e831(0x1e8)],_0xb2e831(0x20b))+'\x20'},_0x4cd385]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4ce1d8=_0x5b84;function _0x5b84(_0x9a8d81,_0x25da8b){const _0x49f88b=_0x49f8();return _0x5b84=function(_0x5b84cd,_0x1582ed){_0x5b84cd=_0x5b84cd-0x8b;let _0x353437=_0x49f88b[_0x5b84cd];return _0x353437;},_0x5b84(_0x9a8d81,_0x25da8b);}(function(_0xd32613,_0x5021cf){const _0x25b807=_0x5b84,_0x5172ef=_0xd32613();while(!![]){try{const _0xd03504=parseInt(_0x25b807(0xdf))/0x1+-parseInt(_0x25b807(0xb0))/0x2+-parseInt(_0x25b807(0xb7))/0x3+parseInt(_0x25b807(0xc0))/0x4*(-parseInt(_0x25b807(0x96))/0x5)+parseInt(_0x25b807(0xa9))/0x6*(-parseInt(_0x25b807(0x95))/0x7)+-parseInt(_0x25b807(0xa0))/0x8+parseInt(_0x25b807(0x98))/0x9*(parseInt(_0x25b807(0xcd))/0xa);if(_0xd03504===_0x5021cf)break;else _0x5172ef['push'](_0x5172ef['shift']());}catch(_0x1d3a6c){_0x5172ef['push'](_0x5172ef['shift']());}}}(_0x49f8,0x8df59));import{CKEditorError as _0x116e78,logWarning as _0x33b457,scrollAncestorsToShowTarget as _0x13d0bd}from'ckeditor5/src/utils.js';import{View as _0x565762}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x49f885}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x40e1c4}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x8ee108}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0xd25152}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x5872f5}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x178802}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x594357}from'../../aicore/utils/scrollmanager.js';import{AISkeletonView as _0x156ee9,SKELETON_DEFINITIONS as _0x3d28c9}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x36d70d}from'../../aicore/ui/aispinner.js';function _0x49f8(){const _0x511aab=['locale','updatePartState','ck-ai-chat__loader','ck-hidden','aiFeed','_createFeedItems','getItemById','_createFeedLoader','add','2689660mtIRfm','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','ck-ai-chat__feed','updateSources','isVisible','forEach','div','scrollToSuggestion','find','parentElement','setTemplate','updateSuggestionPartState','remove','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','loadingMessage','ck-ai-chat__feed__items','startAutoScroll','scrollManager','270985hycDBH','start','updateWebSources','ai-suggestion-reply','ai-chat-feed-view-item-not-a-suggestion-item','destroy','createCollection','element','ai-chat-feed-view-item-not-a-reply-item','ai-chat-feed-view-item-not-found','custom-element','bindTemplate','user-message','children','14805qUZAKU','1149940qEKvno','bind','117sDUHnb','interaction-header','updateSuggestionItem','isLoadingSkeletonVisible','stop','stopAutoScroll','setLoadingMessage','setPartActive','3734488PQlIuf','markItemAsDone','set','markAsDone','ck-ai-chat__loader-text','_createLoaderChildren','clear','options','getPartView','1266kbDWLR','addItem','_createSkeletonLoader','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','removeItem','updateContent','getItemIds','813178EtRqFT','span','_bodyCollection','isPending','updateReplyItem','filter','ai-reply','2839383IwTLga','delegate','isTrackChangesOn','extendTemplate','render','_setupTemplate','includes','hasItem','toggleLoadingSkeleton','16ueYIOT','map','setSuggestionPartActive','_createTemplateChildren'];_0x49f8=function(){return _0x511aab;};return _0x49f8();}import{AIChatFeedCustomElementView as _0x5690e5}from'./feed/aichatfeedcustomelementview.js';import'../../../theme/aichat/aichatfeed.css';export class AIChatFeedView extends _0x565762{[_0x4ce1d8(0x94)];[_0x4ce1d8(0xde)];[_0x4ce1d8(0xb2)];constructor(_0x4db270,_0x5ad28f){const _0x446999=_0x4ce1d8;super(_0x4db270),this[_0x446999(0xb2)]=_0x5ad28f,this[_0x446999(0xa2)](_0x446999(0xb3),!0x1),this[_0x446999(0xa2)](_0x446999(0xdb),''),this[_0x446999(0xa2)](_0x446999(0x9b),!0x1),this[_0x446999(0xa2)](_0x446999(0xb9),!0x1),this[_0x446999(0x94)]=this[_0x446999(0x8d)](),this[_0x446999(0x94)][_0x446999(0xb8)](..._0x49f885)['to'](this),this[_0x446999(0xbc)]();}[_0x4ce1d8(0xbb)](){const _0x5a5494=_0x4ce1d8;super[_0x5a5494(0xbb)](),this[_0x5a5494(0xde)]=new _0x594357(this[_0x5a5494(0x8e)]);}[_0x4ce1d8(0x8c)](){const _0x2c4731=_0x4ce1d8;super[_0x2c4731(0x8c)](),this[_0x2c4731(0xde)][_0x2c4731(0x8c)]();}[_0x4ce1d8(0xa6)](){const _0x5efadf=_0x4ce1d8;this[_0x5efadf(0x94)][_0x5efadf(0xa6)]();}[_0x4ce1d8(0xaa)](_0x184d5d,_0x167b77){const _0x457847=_0x4ce1d8;let _0x462696;return _0x457847(0xb6)===_0x184d5d?_0x462696=new _0x8ee108(this[_0x457847(0xc4)],_0x167b77,this[_0x457847(0xb2)]):_0x457847(0xe2)===_0x184d5d?(_0x462696=new _0x40e1c4(this[_0x457847(0xc4)],_0x167b77,this[_0x457847(0xb2)]),_0x462696[_0x457847(0x97)](_0x457847(0xb9))['to'](this)):_0x462696=_0x457847(0x93)===_0x184d5d?new _0xd25152(this[_0x457847(0xc4)],_0x167b77,this[_0x457847(0xb2)]):_0x457847(0x99)===_0x184d5d?new _0x178802(this[_0x457847(0xc4)],_0x167b77):_0x457847(0x91)===_0x184d5d?new _0x5690e5(_0x167b77):new _0x5872f5(_0x167b77),this[_0x457847(0x94)][_0x457847(0xcc)](_0x462696),_0x462696;}async[_0x4ce1d8(0xb4)]({id:_0x338a22,parsedContent:_0x4add30,renderingStrategy:_0x352eaf,abortSignal:_0x3c21e5}){const _0x5b3503=_0x4ce1d8,_0x25602f=this[_0x5b3503(0xca)](_0x338a22);if(!(_0x25602f instanceof _0x8ee108))throw new _0x116e78(_0x5b3503(0x8f),null,{'itemView':_0x25602f,'id':_0x338a22,'parsedContent':_0x4add30});await _0x25602f[_0x5b3503(0xae)]({'parsedContent':_0x4add30,'renderingStrategy':_0x352eaf,'abortSignal':_0x3c21e5});}async[_0x4ce1d8(0xe1)](_0x4df4b2,_0x5c518d){const _0x42a3f7=_0x4ce1d8,_0x11af22=this[_0x42a3f7(0xca)](_0x4df4b2);if(_0x11af22 instanceof _0x40e1c4)_0x11af22[_0x42a3f7(0xd0)](_0x5c518d);else{if(!(_0x11af22 instanceof _0x8ee108))throw new _0x116e78(_0x42a3f7(0xce),null,{'itemView':_0x11af22,'id':_0x4df4b2,'sources':_0x5c518d});_0x11af22[_0x42a3f7(0xd0)](_0x5c518d);}}async[_0x4ce1d8(0x9a)]({id:_0x4a9c71,parts:_0x4fce89,renderingStrategy:_0x46e002,abortSignal:_0x28f8a8}){const _0x407aa2=_0x4ce1d8,_0x4bf964=this[_0x407aa2(0xca)](_0x4a9c71);if(!(_0x4bf964 instanceof _0x40e1c4))throw new _0x116e78(_0x407aa2(0x8b),null,{'itemView':_0x4bf964,'id':_0x4a9c71,'parts':_0x4fce89});await _0x4bf964[_0x407aa2(0xae)]({'parts':_0x4fce89,'renderingStrategy':_0x46e002,'abortSignal':_0x28f8a8});}[_0x4ce1d8(0xd8)]({id:_0x3c8e55,index:_0x2c08a1,state:_0x11d12b}){const _0x5373e8=_0x4ce1d8,_0x19f9ec=this[_0x5373e8(0xca)](_0x3c8e55);if(!(_0x19f9ec instanceof _0x40e1c4))throw new _0x116e78(_0x5373e8(0x8b),this,{'id':_0x3c8e55});_0x19f9ec[_0x5373e8(0xc5)](_0x2c08a1,_0x11d12b);}[_0x4ce1d8(0xc2)]({id:_0x46abd2,index:_0x25ef1a,isActive:_0x58f83e}){const _0x2c007d=_0x4ce1d8,_0x55e703=this[_0x2c007d(0xca)](_0x46abd2);if(!(_0x55e703 instanceof _0x40e1c4))throw new _0x116e78(_0x2c007d(0x8b),this,{'id':_0x46abd2});this[_0x2c007d(0x94)][_0x2c007d(0xb5)](_0x27c6fd=>_0x27c6fd instanceof _0x40e1c4)[_0x2c007d(0xd2)](_0x2a1053=>{const _0x461e8c=_0x2c007d;_0x2a1053[_0x461e8c(0x9f)](!0x1);}),_0x55e703[_0x2c007d(0x9f)](_0x25ef1a,_0x58f83e);}[_0x4ce1d8(0xa1)](_0x37b2b4){const _0x1ed0bf=_0x4ce1d8;this[_0x1ed0bf(0xca)](_0x37b2b4)[_0x1ed0bf(0xa3)]();}[_0x4ce1d8(0xaf)](){const _0x1c88b9=_0x4ce1d8;return this[_0x1c88b9(0x94)][_0x1c88b9(0xc1)](_0x47258d=>_0x47258d[_0x1c88b9(0xa7)]['id']);}[_0x4ce1d8(0xad)](_0x4cc7cc){const _0x5641fb=_0x4ce1d8;this[_0x5641fb(0x94)][_0x5641fb(0xd9)](this[_0x5641fb(0xca)](_0x4cc7cc));}[_0x4ce1d8(0xbe)](_0x4d98e4){const _0x12a799=_0x4ce1d8;return!!this[_0x12a799(0x94)][_0x12a799(0xd5)](_0x595c64=>_0x595c64[_0x12a799(0xa7)]['id'][_0x12a799(0xbd)](_0x4d98e4));}[_0x4ce1d8(0xd4)](_0x4ee482,_0x5c25c6){const _0x1172da=_0x4ce1d8,_0x1c109f=this[_0x1172da(0xca)](_0x4ee482);if(!(_0x1c109f instanceof _0x40e1c4))return void _0x33b457(_0x1172da(0xda),{'replyId':_0x4ee482,'partIndex':_0x5c25c6});const _0x5b8a67=_0x1c109f[_0x1172da(0xa8)](_0x5c25c6);_0x5b8a67?_0x13d0bd(_0x5b8a67[_0x1172da(0x8e)],0x14,this[_0x1172da(0x8e)][_0x1172da(0xd6)],!0x0,!0x0):_0x33b457(_0x1172da(0xac),{'replyId':_0x4ee482,'partIndex':_0x5c25c6});}[_0x4ce1d8(0xbc)](){const _0x2c475e=_0x4ce1d8;this[_0x2c475e(0xd7)]({'tag':_0x2c475e(0xd3),'attributes':{'class':['ck',_0x2c475e(0xcf)]},'children':this[_0x2c475e(0xc3)]()});}[_0x4ce1d8(0xc3)](){const _0x5a07ce=_0x4ce1d8,_0x4fc53a=this[_0x5a07ce(0xab)]();return[this[_0x5a07ce(0xc9)](),_0x4fc53a,this[_0x5a07ce(0xcb)]()];}[_0x4ce1d8(0xab)](){const _0x4533f1=_0x4ce1d8,_0x3b5eaf=new _0x156ee9(this[_0x4533f1(0xc4)],_0x3d28c9[_0x4533f1(0xc8)]);return _0x3b5eaf[_0x4533f1(0xba)]({'attributes':{'class':[this[_0x4533f1(0x92)]['if'](_0x4533f1(0x9b),_0x4533f1(0xc7),_0x2a1bf0=>!_0x2a1bf0)]}}),_0x3b5eaf;}[_0x4ce1d8(0xc9)](){const _0x105cdd=_0x4ce1d8,_0x60d60f=new _0x565762(this[_0x105cdd(0xc4)]);return _0x60d60f[_0x105cdd(0xd7)]({'tag':_0x105cdd(0xd3),'attributes':{'class':['ck',_0x105cdd(0xdc),this[_0x105cdd(0x92)]['if'](_0x105cdd(0x9b),_0x105cdd(0xc7))]},'children':this[_0x105cdd(0x94)]}),_0x60d60f;}[_0x4ce1d8(0xcb)](){const _0x2877b2=_0x4ce1d8,_0x4776a3=new _0x565762(this[_0x2877b2(0xc4)]);return _0x4776a3[_0x2877b2(0xd7)]({'tag':_0x2877b2(0xd3),'attributes':{'class':['ck',_0x2877b2(0xc6),this[_0x2877b2(0x92)]['if'](_0x2877b2(0xb3),_0x2877b2(0xc7),_0x246124=>!_0x246124)]},'children':this[_0x2877b2(0xa5)]()}),_0x4776a3;}[_0x4ce1d8(0xa5)](){const _0x413d8b=_0x4ce1d8,_0x501608=new _0x36d70d();return _0x501608[_0x413d8b(0xd1)]=!0x0,[_0x501608,{'tag':_0x413d8b(0xb1),'attributes':{'class':['ck',_0x413d8b(0xa4)]},'children':[{'text':this[_0x413d8b(0x92)]['to'](_0x413d8b(0xdb))}]}];}[_0x4ce1d8(0xca)](_0x2dd287){const _0x3c601e=_0x4ce1d8,_0x360bd7=this[_0x3c601e(0x94)][_0x3c601e(0xd5)](_0x474427=>_0x474427[_0x3c601e(0xa7)]['id'][_0x3c601e(0xbd)](_0x2dd287));if(!_0x360bd7)throw new _0x116e78(_0x3c601e(0x90),this,{'id':_0x2dd287});return _0x360bd7;}[_0x4ce1d8(0x9e)](_0x3189c2){const _0x2f35af=_0x4ce1d8;this[_0x2f35af(0xa2)](_0x2f35af(0xdb),_0x3189c2);}[_0x4ce1d8(0xbf)](_0x560081){const _0x217156=_0x4ce1d8;this[_0x217156(0xa2)](_0x217156(0x9b),_0x560081);}[_0x4ce1d8(0xdd)](){const _0x462645=_0x4ce1d8;this[_0x462645(0xde)][_0x462645(0xe0)]();}[_0x4ce1d8(0x9d)](){const _0x26712a=_0x4ce1d8;this[_0x26712a(0xde)][_0x26712a(0x9c)]();}}
23
+ function _0x3bce(){const _0x35f93d=['add','aiFeed','isLoadingSkeletonVisible','render','ck-ai-chat__loader','updateReplyItem','start','updateSources','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','destroy','extendTemplate','ai-chat-feed-view-item-not-a-suggestion-item','_setupTemplate','ai-chat-feed-view-item-not-a-reply-item','updateWebSources','_createLoaderChildren','1950776iEBBPV','541742wcASDZ','ai-suggestion-reply','scrollToSuggestion','setPartActive','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','find','updateSuggestionPartState','hasItem','custom-element','ck-ai-chat__feed__items','_bodyCollection','6277794TPFYkG','setLoadingMessage','options','4113669dlHYxQ','filter','ai-chat-feed-view-item-not-found','updatePartState','getPartView','_createTemplateChildren','locale','toggleLoadingSkeleton','getItemById','removeItem','map','isPending','forEach','_createSkeletonLoader','element','markAsDone','parentElement','isTrackChangesOn','updateContent','763HNRaLB','setSuggestionPartActive','stop','interaction-header','setTemplate','ck-hidden','ck-ai-chat__feed','markItemAsDone','ck-ai-chat__loader-text','getItemIds','stopAutoScroll','div','delegate','children','updateSuggestionItem','addItem','startAutoScroll','loadingMessage','includes','bindTemplate','2418560tyusTl','61448cxJOtT','createCollection','ai-reply','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','remove','span','_createFeedLoader','bind','7215360CcqWfx','scrollManager','_createFeedItems','set','isVisible','clear','user-message'];_0x3bce=function(){return _0x35f93d;};return _0x3bce();}const _0x594d1c=_0x3162;(function(_0x4da540,_0x5a9c5c){const _0x3d9030=_0x3162,_0x3565d4=_0x4da540();while(!![]){try{const _0x19d942=parseInt(_0x3d9030(0x178))/0x1+-parseInt(_0x3d9030(0x157))/0x2+parseInt(_0x3d9030(0x186))/0x3+parseInt(_0x3d9030(0x177))/0x4+parseInt(_0x3d9030(0x160))/0x5+-parseInt(_0x3d9030(0x183))/0x6+parseInt(_0x3d9030(0x199))/0x7*(-parseInt(_0x3d9030(0x158))/0x8);if(_0x19d942===_0x5a9c5c)break;else _0x3565d4['push'](_0x3565d4['shift']());}catch(_0x4b9f59){_0x3565d4['push'](_0x3565d4['shift']());}}}(_0x3bce,0xb754b));import{CKEditorError as _0x31e8d8,logWarning as _0x16a954,scrollAncestorsToShowTarget as _0x505e2e}from'ckeditor5/src/utils.js';import{View as _0x4f8e7f}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x5b1db5}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x1f5f2e}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x136308}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x231af3}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x2ec86d}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x5b0851}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x3cb916}from'../../aicore/utils/scrollmanager.js';import{AISkeletonView as _0x4a0ba6,SKELETON_DEFINITIONS as _0x145ea4}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x59298f}from'../../aicore/ui/aispinner.js';import{AIChatFeedCustomElementView as _0x4a762a}from'./feed/aichatfeedcustomelementview.js';function _0x3162(_0x4cef0,_0xd085d){const _0x3bce0a=_0x3bce();return _0x3162=function(_0x3162b2,_0x3e908e){_0x3162b2=_0x3162b2-0x14d;let _0x531297=_0x3bce0a[_0x3162b2];return _0x531297;},_0x3162(_0x4cef0,_0xd085d);}import'../../../theme/aichat/aichatfeed.css';export class AIChatFeedView extends _0x4f8e7f{[_0x594d1c(0x150)];[_0x594d1c(0x161)];[_0x594d1c(0x182)];constructor(_0x22aa99,_0x13e75c){const _0x4dfca1=_0x594d1c;super(_0x22aa99),this[_0x4dfca1(0x182)]=_0x13e75c,this[_0x4dfca1(0x163)](_0x4dfca1(0x191),!0x1),this[_0x4dfca1(0x163)](_0x4dfca1(0x154),''),this[_0x4dfca1(0x163)](_0x4dfca1(0x169),!0x1),this[_0x4dfca1(0x163)](_0x4dfca1(0x197),!0x1),this[_0x4dfca1(0x150)]=this[_0x4dfca1(0x159)](),this[_0x4dfca1(0x150)][_0x4dfca1(0x14f)](..._0x5b1db5)['to'](this),this[_0x4dfca1(0x173)]();}[_0x594d1c(0x16a)](){const _0x5a7bfe=_0x594d1c;super[_0x5a7bfe(0x16a)](),this[_0x5a7bfe(0x161)]=new _0x3cb916(this[_0x5a7bfe(0x194)]);}[_0x594d1c(0x170)](){const _0x12d896=_0x594d1c;super[_0x12d896(0x170)](),this[_0x12d896(0x161)][_0x12d896(0x170)]();}[_0x594d1c(0x165)](){const _0x409197=_0x594d1c;this[_0x409197(0x150)][_0x409197(0x165)]();}[_0x594d1c(0x152)](_0x3108a1,_0x336ef9){const _0x38bb12=_0x594d1c;let _0x4f42cc;return _0x38bb12(0x15a)===_0x3108a1?_0x4f42cc=new _0x136308(this[_0x38bb12(0x18c)],_0x336ef9,this[_0x38bb12(0x182)]):_0x38bb12(0x179)===_0x3108a1?(_0x4f42cc=new _0x1f5f2e(this[_0x38bb12(0x18c)],_0x336ef9,this[_0x38bb12(0x182)]),_0x4f42cc[_0x38bb12(0x15f)](_0x38bb12(0x197))['to'](this)):_0x4f42cc=_0x38bb12(0x166)===_0x3108a1?new _0x231af3(this[_0x38bb12(0x18c)],_0x336ef9,this[_0x38bb12(0x182)]):_0x38bb12(0x19c)===_0x3108a1?new _0x5b0851(this[_0x38bb12(0x18c)],_0x336ef9):_0x38bb12(0x180)===_0x3108a1?new _0x4a762a(_0x336ef9):new _0x2ec86d(_0x336ef9),this[_0x38bb12(0x150)][_0x38bb12(0x167)](_0x4f42cc),_0x4f42cc;}async[_0x594d1c(0x16c)]({id:_0xa6e866,parsedContent:_0x29d3e0,renderingStrategy:_0x1f1d16,abortSignal:_0x3917e4}){const _0x1dcb92=_0x594d1c,_0x871d8a=this[_0x1dcb92(0x18e)](_0xa6e866);if(!(_0x871d8a instanceof _0x136308))throw new _0x31e8d8(_0x1dcb92(0x174),null,{'itemView':_0x871d8a,'id':_0xa6e866,'parsedContent':_0x29d3e0});await _0x871d8a[_0x1dcb92(0x198)]({'parsedContent':_0x29d3e0,'renderingStrategy':_0x1f1d16,'abortSignal':_0x3917e4});}async[_0x594d1c(0x175)](_0x2ac341,_0x5621c9){const _0x3c906f=_0x594d1c,_0x5b6e72=this[_0x3c906f(0x18e)](_0x2ac341);if(_0x5b6e72 instanceof _0x1f5f2e)_0x5b6e72[_0x3c906f(0x16e)](_0x5621c9);else{if(!(_0x5b6e72 instanceof _0x136308))throw new _0x31e8d8(_0x3c906f(0x17c),null,{'itemView':_0x5b6e72,'id':_0x2ac341,'sources':_0x5621c9});_0x5b6e72[_0x3c906f(0x16e)](_0x5621c9);}}async[_0x594d1c(0x151)]({id:_0x2fb796,parts:_0x22afc9,renderingStrategy:_0x3ab288,abortSignal:_0x3759b1}){const _0x2c64ef=_0x594d1c,_0xf9aa9e=this[_0x2c64ef(0x18e)](_0x2fb796);if(!(_0xf9aa9e instanceof _0x1f5f2e))throw new _0x31e8d8(_0x2c64ef(0x172),null,{'itemView':_0xf9aa9e,'id':_0x2fb796,'parts':_0x22afc9});await _0xf9aa9e[_0x2c64ef(0x198)]({'parts':_0x22afc9,'renderingStrategy':_0x3ab288,'abortSignal':_0x3759b1});}[_0x594d1c(0x17e)]({id:_0x22e4da,index:_0x5d2def,state:_0x56c4c2}){const _0x46e3c1=_0x594d1c,_0x199605=this[_0x46e3c1(0x18e)](_0x22e4da);if(!(_0x199605 instanceof _0x1f5f2e))throw new _0x31e8d8(_0x46e3c1(0x172),this,{'id':_0x22e4da});_0x199605[_0x46e3c1(0x189)](_0x5d2def,_0x56c4c2);}[_0x594d1c(0x19a)]({id:_0x13e86c,index:_0x3cde79,isActive:_0x245638}){const _0x58301a=_0x594d1c,_0x50254f=this[_0x58301a(0x18e)](_0x13e86c);if(!(_0x50254f instanceof _0x1f5f2e))throw new _0x31e8d8(_0x58301a(0x172),this,{'id':_0x13e86c});this[_0x58301a(0x150)][_0x58301a(0x187)](_0x8e0235=>_0x8e0235 instanceof _0x1f5f2e)[_0x58301a(0x192)](_0x116a92=>{const _0x545fe2=_0x58301a;_0x116a92[_0x545fe2(0x17b)](!0x1);}),_0x50254f[_0x58301a(0x17b)](_0x3cde79,_0x245638);}[_0x594d1c(0x1a0)](_0x58b0e7){const _0x263e3c=_0x594d1c;this[_0x263e3c(0x18e)](_0x58b0e7)[_0x263e3c(0x195)]();}[_0x594d1c(0x1a2)](){const _0xaf33e9=_0x594d1c;return this[_0xaf33e9(0x150)][_0xaf33e9(0x190)](_0x4dd17b=>_0x4dd17b[_0xaf33e9(0x185)]['id']);}[_0x594d1c(0x18f)](_0x33265a){const _0xf13597=_0x594d1c;this[_0xf13597(0x150)][_0xf13597(0x15c)](this[_0xf13597(0x18e)](_0x33265a));}[_0x594d1c(0x17f)](_0xdc425b){const _0x271684=_0x594d1c;return!!this[_0x271684(0x150)][_0x271684(0x17d)](_0x48b259=>_0x48b259[_0x271684(0x185)]['id'][_0x271684(0x155)](_0xdc425b));}[_0x594d1c(0x17a)](_0x46f8a7,_0x17f995){const _0x1f842c=_0x594d1c,_0x195fc5=this[_0x1f842c(0x18e)](_0x46f8a7);if(!(_0x195fc5 instanceof _0x1f5f2e))return void _0x16a954(_0x1f842c(0x16f),{'replyId':_0x46f8a7,'partIndex':_0x17f995});const _0x4d0431=_0x195fc5[_0x1f842c(0x18a)](_0x17f995);_0x4d0431?_0x505e2e(_0x4d0431[_0x1f842c(0x194)],0x14,this[_0x1f842c(0x194)][_0x1f842c(0x196)],!0x0,!0x0):_0x16a954(_0x1f842c(0x15b),{'replyId':_0x46f8a7,'partIndex':_0x17f995});}[_0x594d1c(0x173)](){const _0x438432=_0x594d1c;this[_0x438432(0x19d)]({'tag':_0x438432(0x14e),'attributes':{'class':['ck',_0x438432(0x19f)]},'children':this[_0x438432(0x18b)]()});}[_0x594d1c(0x18b)](){const _0x46b2b3=_0x594d1c,_0x2aeb4b=this[_0x46b2b3(0x193)]();return[this[_0x46b2b3(0x162)](),_0x2aeb4b,this[_0x46b2b3(0x15e)]()];}[_0x594d1c(0x193)](){const _0x26d8fc=_0x594d1c,_0x33d944=new _0x4a0ba6(this[_0x26d8fc(0x18c)],_0x145ea4[_0x26d8fc(0x168)]);return _0x33d944[_0x26d8fc(0x171)]({'attributes':{'class':[this[_0x26d8fc(0x156)]['if'](_0x26d8fc(0x169),_0x26d8fc(0x19e),_0x1d80cd=>!_0x1d80cd)]}}),_0x33d944;}[_0x594d1c(0x162)](){const _0x22f36e=_0x594d1c,_0xde2285=new _0x4f8e7f(this[_0x22f36e(0x18c)]);return _0xde2285[_0x22f36e(0x19d)]({'tag':_0x22f36e(0x14e),'attributes':{'class':['ck',_0x22f36e(0x181),this[_0x22f36e(0x156)]['if'](_0x22f36e(0x169),_0x22f36e(0x19e))]},'children':this[_0x22f36e(0x150)]}),_0xde2285;}[_0x594d1c(0x15e)](){const _0x532bf1=_0x594d1c,_0x2955ed=new _0x4f8e7f(this[_0x532bf1(0x18c)]);return _0x2955ed[_0x532bf1(0x19d)]({'tag':_0x532bf1(0x14e),'attributes':{'class':['ck',_0x532bf1(0x16b),this[_0x532bf1(0x156)]['if'](_0x532bf1(0x191),_0x532bf1(0x19e),_0x141a89=>!_0x141a89)]},'children':this[_0x532bf1(0x176)]()}),_0x2955ed;}[_0x594d1c(0x176)](){const _0x463bd5=_0x594d1c,_0x4441a1=new _0x59298f();return _0x4441a1[_0x463bd5(0x164)]=!0x0,[_0x4441a1,{'tag':_0x463bd5(0x15d),'attributes':{'class':['ck',_0x463bd5(0x1a1)]},'children':[{'text':this[_0x463bd5(0x156)]['to'](_0x463bd5(0x154))}]}];}[_0x594d1c(0x18e)](_0x35c216){const _0x1409df=_0x594d1c,_0xa43e79=this[_0x1409df(0x150)][_0x1409df(0x17d)](_0x42550e=>_0x42550e[_0x1409df(0x185)]['id'][_0x1409df(0x155)](_0x35c216));if(!_0xa43e79)throw new _0x31e8d8(_0x1409df(0x188),this,{'id':_0x35c216});return _0xa43e79;}[_0x594d1c(0x184)](_0x5ebdec){const _0x55eaa6=_0x594d1c;this[_0x55eaa6(0x163)](_0x55eaa6(0x154),_0x5ebdec);}[_0x594d1c(0x18d)](_0x13e6e2){const _0x3e4922=_0x594d1c;this[_0x3e4922(0x163)](_0x3e4922(0x169),_0x13e6e2);}[_0x594d1c(0x153)](){const _0x297cc1=_0x594d1c;this[_0x297cc1(0x161)][_0x297cc1(0x16d)]();}[_0x594d1c(0x14d)](){const _0x5a3a5b=_0x594d1c;this[_0x5a3a5b(0x161)][_0x5a3a5b(0x19b)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x339036=_0x427b;(function(_0x434078,_0x15d834){const _0x258ee9=_0x427b,_0x487e68=_0x434078();while(!![]){try{const _0x586088=-parseInt(_0x258ee9(0x197))/0x1*(parseInt(_0x258ee9(0x188))/0x2)+-parseInt(_0x258ee9(0x183))/0x3*(-parseInt(_0x258ee9(0x185))/0x4)+parseInt(_0x258ee9(0x196))/0x5+parseInt(_0x258ee9(0x186))/0x6+-parseInt(_0x258ee9(0x19a))/0x7+parseInt(_0x258ee9(0x199))/0x8*(parseInt(_0x258ee9(0x18f))/0x9)+-parseInt(_0x258ee9(0x192))/0xa*(parseInt(_0x258ee9(0x184))/0xb);if(_0x586088===_0x15d834)break;else _0x487e68['push'](_0x487e68['shift']());}catch(_0x59926d){_0x487e68['push'](_0x487e68['shift']());}}}(_0x184f,0x8f783));function _0x184f(){const _0x453358=['isMaximized','startConversation','2066215RcziON','414847DpbMGk','set','4168qYVEuv','3770025FOsLVl','ck-ai-header\x20ck-ai-header_chat','add','498207uVSWoS','13508KNhapm','24BvWsPx','5818092pwPLzG','fire','4IPonwv','_createStartConversationButton','children','ck-ai-chat__start-conversation','AI_CHAT_HEADING','AI_CHAT_LABEL_NEW_CHAT','execute','5265XIFRfs','locale','conversationStartButton','5930ZUqPFH','resizeButton'];_0x184f=function(){return _0x453358;};return _0x184f();}import{ButtonView as _0x4ddcc0,FormHeaderView as _0x461da4}from'ckeditor5/src/ui.js';import{IconPlus as _0x4df53b,IconAIChat as _0x233b35}from'ckeditor5/src/icons.js';function _0x427b(_0x248c64,_0x1be754){const _0x184f2b=_0x184f();return _0x427b=function(_0x427b59,_0x135764){_0x427b59=_0x427b59-0x182;let _0x2a0faf=_0x184f2b[_0x427b59];return _0x2a0faf;},_0x427b(_0x248c64,_0x1be754);}import{getTranslation as _0x112da3}from'../../aicore/utils/common-translations.js';import{createResizeButton as _0xb58344}from'../../aicore/utils/createresizebutton.js';import'../../../theme/common/aiheader.css';export class AIChatHeaderView extends _0x461da4{[_0x339036(0x191)];[_0x339036(0x193)];constructor(_0x502e29,_0x1bd880){const _0x179209=_0x339036;super(_0x502e29,{'label':_0x112da3(_0x502e29,_0x179209(0x18c)),'class':_0x179209(0x19b),'icon':_0x233b35}),this[_0x179209(0x198)](_0x179209(0x194),!0x1),this[_0x179209(0x191)]=this[_0x179209(0x189)](_0x502e29),this[_0x179209(0x18a)][_0x179209(0x182)](this[_0x179209(0x191)]),_0x1bd880&&(this[_0x179209(0x193)]=_0xb58344(_0x502e29,this),this[_0x179209(0x18a)][_0x179209(0x182)](this[_0x179209(0x193)]));}[_0x339036(0x189)](_0x250795){const _0x3bb69e=_0x339036,_0x3bd4af=new _0x4ddcc0(_0x250795);return _0x3bd4af[_0x3bb69e(0x198)]({'label':_0x112da3(this[_0x3bb69e(0x190)],_0x3bb69e(0x18d)),'withText':!0x0,'icon':_0x4df53b,'class':_0x3bb69e(0x18b)}),_0x3bd4af['on'](_0x3bb69e(0x18e),()=>{const _0x4091ef=_0x3bb69e;this[_0x4091ef(0x187)](_0x4091ef(0x195));}),_0x3bd4af;}}
23
+ const _0x54b936=_0x1dbb;(function(_0x477fa5,_0x32546f){const _0x1d8d12=_0x1dbb,_0x1906e0=_0x477fa5();while(!![]){try{const _0x3fb870=parseInt(_0x1d8d12(0x12a))/0x1+-parseInt(_0x1d8d12(0x138))/0x2*(parseInt(_0x1d8d12(0x12b))/0x3)+-parseInt(_0x1d8d12(0x137))/0x4+parseInt(_0x1d8d12(0x136))/0x5*(parseInt(_0x1d8d12(0x12c))/0x6)+-parseInt(_0x1d8d12(0x12e))/0x7+-parseInt(_0x1d8d12(0x129))/0x8+-parseInt(_0x1d8d12(0x134))/0x9*(-parseInt(_0x1d8d12(0x135))/0xa);if(_0x3fb870===_0x32546f)break;else _0x1906e0['push'](_0x1906e0['shift']());}catch(_0x4ffd8c){_0x1906e0['push'](_0x1906e0['shift']());}}}(_0x5149,0x35201));function _0x5149(){const _0x27e510=['AI_CHAT_LABEL_NEW_CHAT','startConversation','resizeButton','isMaximized','AI_CHAT_HEADING','_createStartConversationButton','ck-ai-header\x20ck-ai-header_chat','locale','set','2461896MKvjXG','201609NBiPwi','1353ecItjm','18Mwavbz','execute','2291576VJmwZf','ck-ai-chat__start-conversation','add','fire','children','conversationStartButton','324ftclUj','240920wZtQCZ','42895dBQpHw','338212GmoQnS','698OUdPHW'];_0x5149=function(){return _0x27e510;};return _0x5149();}function _0x1dbb(_0x519628,_0x3d9897){const _0x5149ff=_0x5149();return _0x1dbb=function(_0x1dbb26,_0x4d305b){_0x1dbb26=_0x1dbb26-0x127;let _0x18fd69=_0x5149ff[_0x1dbb26];return _0x18fd69;},_0x1dbb(_0x519628,_0x3d9897);}import{ButtonView as _0x48c415,FormHeaderView as _0x43bbb8}from'ckeditor5/src/ui.js';import{IconPlus as _0x1e17ff,IconAIChat as _0x115a63}from'ckeditor5/src/icons.js';import{getTranslation as _0x500989}from'../../aicore/utils/common-translations.js';import{createResizeButton as _0x50f118}from'../../aicore/utils/createresizebutton.js';import'../../../theme/common/aiheader.css';export class AIChatHeaderView extends _0x43bbb8{[_0x54b936(0x133)];[_0x54b936(0x13b)];constructor(_0x4f8723,_0x16bbe7){const _0x4f216d=_0x54b936;super(_0x4f8723,{'label':_0x500989(_0x4f8723,_0x4f216d(0x13d)),'class':_0x4f216d(0x13f),'icon':_0x115a63}),this[_0x4f216d(0x128)](_0x4f216d(0x13c),!0x1),this[_0x4f216d(0x133)]=this[_0x4f216d(0x13e)](_0x4f8723),this[_0x4f216d(0x132)][_0x4f216d(0x130)](this[_0x4f216d(0x133)]),_0x16bbe7&&(this[_0x4f216d(0x13b)]=_0x50f118(_0x4f8723,this),this[_0x4f216d(0x132)][_0x4f216d(0x130)](this[_0x4f216d(0x13b)]));}[_0x54b936(0x13e)](_0x26e24c){const _0x2f3482=_0x54b936,_0x106e43=new _0x48c415(_0x26e24c);return _0x106e43[_0x2f3482(0x128)]({'label':_0x500989(this[_0x2f3482(0x127)],_0x2f3482(0x139)),'withText':!0x0,'icon':_0x1e17ff,'class':_0x2f3482(0x12f)}),_0x106e43['on'](_0x2f3482(0x12d),()=>{const _0x563050=_0x2f3482;this[_0x563050(0x131)](_0x563050(0x13a));}),_0x106e43;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x1c9829=_0x31bf;(function(_0x22e145,_0x1143bc){var _0x74bb1e=_0x31bf,_0x163810=_0x22e145();while(!![]){try{var _0x35ff64=parseInt(_0x74bb1e(0x1b4))/0x1*(-parseInt(_0x74bb1e(0x1b7))/0x2)+parseInt(_0x74bb1e(0x1a4))/0x3*(-parseInt(_0x74bb1e(0x1a7))/0x4)+-parseInt(_0x74bb1e(0x1ad))/0x5+parseInt(_0x74bb1e(0x1ac))/0x6*(-parseInt(_0x74bb1e(0x1b8))/0x7)+-parseInt(_0x74bb1e(0x1c1))/0x8*(parseInt(_0x74bb1e(0x1bf))/0x9)+parseInt(_0x74bb1e(0x1c0))/0xa*(-parseInt(_0x74bb1e(0x1b1))/0xb)+-parseInt(_0x74bb1e(0x1a8))/0xc*(-parseInt(_0x74bb1e(0x1b9))/0xd);if(_0x35ff64===_0x1143bc)break;else _0x163810['push'](_0x163810['shift']());}catch(_0x29a282){_0x163810['push'](_0x163810['shift']());}}}(_0x5a1c,0xe6988));import{View as _0x169b89,BodyCollection as _0x19335d}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x16a0f2}from'../utils/eventnames.js';import{AIChatFeedView as _0x372381}from'./aichatfeedview.js';import{AIChatControlsView as _0x393aa3}from'./aichatcontrolsview.js';function _0x31bf(_0x3ab6c5,_0x5cea06){var _0x5a1cdc=_0x5a1c();return _0x31bf=function(_0x31bfe5,_0x1519f0){_0x31bfe5=_0x31bfe5-0x1a3;var _0x36bd7b=_0x5a1cdc[_0x31bfe5];return _0x36bd7b;},_0x31bf(_0x3ab6c5,_0x5cea06);}function _0x5a1c(){var _0x4b1b30=['2lsPcqn','1022OIRnNB','13WjjKVO','destroy','delegate','ck-ai-chat','chatHeader','chatDisclaimer','9039429gFsHIP','89060LisnrQ','8BJRLBv','chatFeed','closeSourceResourceBalloon','3GLlPuI','populateSourceResourceBalloon','attachToDom','7172468VHqnFi','89867604zPsDyb','ck-rounded-corners','uiLanguageDirection','_bodyCollection','71106XZHCyK','8769515VhRzsv','showResizeButton','ck-reset_all','contextResourcesSearchInputVisibleFrom','319QSgUxq','chatControls','detachFromDom','4526cbXxZN','setTemplate','div'];_0x5a1c=function(){return _0x4b1b30;};return _0x5a1c();}import{AIChatHeaderView as _0x5563dd}from'./aichatheaderview.js';import{AIDisclaimerView as _0x4cdd02}from'../../aicore/ui/aidisclaimerview.js';import'../../../theme/common/ainotification.css';import'../../../theme/common/aibutton.css';import'../../../theme/common/aitrackchanges.css';export class AIChatView extends _0x169b89{[_0x1c9829(0x1bd)];[_0x1c9829(0x1c2)];[_0x1c9829(0x1b2)];[_0x1c9829(0x1be)];[_0x1c9829(0x1ab)];constructor(_0x17bf9f,_0x2203a9){var _0x20c2ec=_0x1c9829;super(_0x17bf9f),this[_0x20c2ec(0x1ab)]=new _0x19335d(_0x17bf9f),this[_0x20c2ec(0x1ab)][_0x20c2ec(0x1a6)](),this[_0x20c2ec(0x1bd)]=new _0x5563dd(_0x17bf9f,_0x2203a9[_0x20c2ec(0x1ae)]),this[_0x20c2ec(0x1bd)][_0x20c2ec(0x1bb)](..._0x16a0f2)['to'](this),this[_0x20c2ec(0x1c2)]=new _0x372381(_0x17bf9f,this[_0x20c2ec(0x1ab)]),this[_0x20c2ec(0x1c2)][_0x20c2ec(0x1bb)](..._0x16a0f2)['to'](this),this[_0x20c2ec(0x1b2)]=new _0x393aa3(_0x17bf9f,{'bodyCollection':this[_0x20c2ec(0x1ab)],'contextResourcesSearchInputVisibleFrom':_0x2203a9[_0x20c2ec(0x1b0)]}),this[_0x20c2ec(0x1b2)][_0x20c2ec(0x1bb)](..._0x16a0f2)['to'](this),this[_0x20c2ec(0x1be)]=new _0x4cdd02(_0x17bf9f),this[_0x20c2ec(0x1b5)]({'tag':_0x20c2ec(0x1b6),'attributes':{'class':['ck',_0x20c2ec(0x1af),_0x20c2ec(0x1bc),_0x20c2ec(0x1a9)],'dir':_0x17bf9f[_0x20c2ec(0x1aa)]},'children':[this[_0x20c2ec(0x1bd)],this[_0x20c2ec(0x1c2)],this[_0x20c2ec(0x1b2)],this[_0x20c2ec(0x1be)]]});}[_0x1c9829(0x1a5)](_0xe8fd78,_0x4e1ba5,_0xcb947d,_0x2dc114){var _0x1beebf=_0x1c9829;this[_0x1beebf(0x1b2)][_0x1beebf(0x1a5)](_0xe8fd78,_0x4e1ba5,_0xcb947d,_0x2dc114);}[_0x1c9829(0x1a3)](_0x33bcb7){var _0x18dd9c=_0x1c9829;this[_0x18dd9c(0x1b2)][_0x18dd9c(0x1a3)](_0x33bcb7);}[_0x1c9829(0x1ba)](){var _0x2efdd8=_0x1c9829;this[_0x2efdd8(0x1ab)][_0x2efdd8(0x1b3)](),super[_0x2efdd8(0x1ba)]();}}
23
+ var _0x4107b9=_0x4c2d;(function(_0x55be02,_0x6bdb27){var _0x3856c6=_0x4c2d,_0x479769=_0x55be02();while(!![]){try{var _0x4380a4=parseInt(_0x3856c6(0xab))/0x1*(parseInt(_0x3856c6(0xba))/0x2)+-parseInt(_0x3856c6(0xa8))/0x3+-parseInt(_0x3856c6(0xa6))/0x4+parseInt(_0x3856c6(0xa7))/0x5+-parseInt(_0x3856c6(0xbf))/0x6+-parseInt(_0x3856c6(0xbd))/0x7+parseInt(_0x3856c6(0xac))/0x8;if(_0x4380a4===_0x6bdb27)break;else _0x479769['push'](_0x479769['shift']());}catch(_0x47c867){_0x479769['push'](_0x479769['shift']());}}}(_0x25ad,0xba82b));import{View as _0x1a7c48,BodyCollection as _0x42772b}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x1c35d9}from'../utils/eventnames.js';import{AIChatFeedView as _0xff4bf8}from'./aichatfeedview.js';import{AIChatControlsView as _0x161e81}from'./aichatcontrolsview.js';function _0x4c2d(_0x4b6e6f,_0x4c3389){var _0x25ad84=_0x25ad();return _0x4c2d=function(_0x4c2d38,_0x5dbbed){_0x4c2d38=_0x4c2d38-0xa5;var _0x4a9072=_0x25ad84[_0x4c2d38];return _0x4a9072;},_0x4c2d(_0x4b6e6f,_0x4c3389);}import{AIChatHeaderView as _0x4d6abf}from'./aichatheaderview.js';import{AIDisclaimerView as _0x467f75}from'../../aicore/ui/aidisclaimerview.js';import'../../../theme/common/ainotification.css';import'../../../theme/common/aibutton.css';import'../../../theme/common/aitrackchanges.css';function _0x25ad(){var _0x1faeb3=['ck-rounded-corners','ck-reset_all','chatFeed','chatDisclaimer','contextResourcesSearchInputVisibleFrom','detachFromDom','14ABSfPq','ck-ai-chat','uiLanguageDirection','10325840gkJddB','populateSourceResourceBalloon','3791910Ivnrmr','chatHeader','1940908AlFeel','6261620lTHsNN','8823TnMDUp','chatControls','div','109846HmUmkD','10703792BapbGs','attachToDom','delegate','_bodyCollection','setTemplate','destroy','showResizeButton','closeSourceResourceBalloon'];_0x25ad=function(){return _0x1faeb3;};return _0x25ad();}export class AIChatView extends _0x1a7c48{[_0x4107b9(0xa5)];[_0x4107b9(0xb6)];[_0x4107b9(0xa9)];[_0x4107b9(0xb7)];[_0x4107b9(0xaf)];constructor(_0xdc9ac,_0x357845){var _0x1b1a8c=_0x4107b9;super(_0xdc9ac),this[_0x1b1a8c(0xaf)]=new _0x42772b(_0xdc9ac),this[_0x1b1a8c(0xaf)][_0x1b1a8c(0xad)](),this[_0x1b1a8c(0xa5)]=new _0x4d6abf(_0xdc9ac,_0x357845[_0x1b1a8c(0xb2)]),this[_0x1b1a8c(0xa5)][_0x1b1a8c(0xae)](..._0x1c35d9)['to'](this),this[_0x1b1a8c(0xb6)]=new _0xff4bf8(_0xdc9ac,this[_0x1b1a8c(0xaf)]),this[_0x1b1a8c(0xb6)][_0x1b1a8c(0xae)](..._0x1c35d9)['to'](this),this[_0x1b1a8c(0xa9)]=new _0x161e81(_0xdc9ac,{'bodyCollection':this[_0x1b1a8c(0xaf)],'contextResourcesSearchInputVisibleFrom':_0x357845[_0x1b1a8c(0xb8)]}),this[_0x1b1a8c(0xa9)][_0x1b1a8c(0xae)](..._0x1c35d9)['to'](this),this[_0x1b1a8c(0xb7)]=new _0x467f75(_0xdc9ac),this[_0x1b1a8c(0xb0)]({'tag':_0x1b1a8c(0xaa),'attributes':{'class':['ck',_0x1b1a8c(0xb5),_0x1b1a8c(0xbb),_0x1b1a8c(0xb4)],'dir':_0xdc9ac[_0x1b1a8c(0xbc)]},'children':[this[_0x1b1a8c(0xa5)],this[_0x1b1a8c(0xb6)],this[_0x1b1a8c(0xa9)],this[_0x1b1a8c(0xb7)]]});}[_0x4107b9(0xbe)](_0x590786,_0x274aa8,_0x5d4fe4,_0x224376){var _0x4b091e=_0x4107b9;this[_0x4b091e(0xa9)][_0x4b091e(0xbe)](_0x590786,_0x274aa8,_0x5d4fe4,_0x224376);}[_0x4107b9(0xb3)](_0xc6af7){var _0x34094d=_0x4107b9;this[_0x34094d(0xa9)][_0x34094d(0xb3)](_0xc6af7);}[_0x4107b9(0xb1)](){var _0x5c912b=_0x4107b9;this[_0x5c912b(0xaf)][_0x5c912b(0xb9)](),super[_0x5c912b(0xb1)]();}}