@ckeditor/ckeditor5-ai 47.7.0-alpha.1 → 47.7.0-alpha.2

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 _0x15fd9e=_0x33cf;(function(_0x29f3b0,_0x1ffa71){const _0x245706=_0x33cf,_0x1e2afc=_0x29f3b0();while(!![]){try{const _0x160629=parseInt(_0x245706(0x257))/0x1+parseInt(_0x245706(0x1fe))/0x2+-parseInt(_0x245706(0x234))/0x3+parseInt(_0x245706(0x24a))/0x4*(parseInt(_0x245706(0x259))/0x5)+-parseInt(_0x245706(0x1e9))/0x6*(parseInt(_0x245706(0x237))/0x7)+parseInt(_0x245706(0x1fd))/0x8+-parseInt(_0x245706(0x220))/0x9;if(_0x160629===_0x1ffa71)break;else _0x1e2afc['push'](_0x1e2afc['shift']());}catch(_0x155206){_0x1e2afc['push'](_0x1e2afc['shift']());}}}(_0xc9c5,0xd0519));import{CKEditorError as _0x1ae879,EmitterMixin as _0xff21b1,logWarning as _0x375471}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x1b4a88}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x412711,AI_CONTEXT_MODEL_EVENT_NAMES as _0x2e4fa4}from'./aichatcontext.js';import{AICapabilities as _0x49c86f,CAPABILITIES_MODEL_EVENT_NAMES as _0x1821c1}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0xffd4e0}from'./aichatinteraction.js';function _0x33cf(_0x41f28e,_0x328a25){const _0xc9c570=_0xc9c5();return _0x33cf=function(_0x33cf57,_0x56cb5e){_0x33cf57=_0x33cf57-0x1e3;let _0x4626e1=_0xc9c570[_0x33cf57];return _0x4626e1;},_0x33cf(_0x41f28e,_0x328a25);}import{errorsMap as _0x5f03e6}from'../../errorsmap.js';function _0xc9c5(){const _0x5367a1=['getCurrentDocumentContext','init','addUrlToContext','splice','createReply','setConversationTitle','getDocumentContext','prompt','error','sources','indexOf','model','getInteraction','type','_processMessagesToInteractions','hasOwn','destroy','currentInteraction','16806906yVYAPE','startConversation','webSearch','mcp-tool-result','reset','parse','attributes','push','isSelectionInContext','ai-chat-handle-user-interaction-already-in-progress','chatModels','modelSelected','toggleWebSearch','ai-chat-conversation-start-failed','message','fetchConversationMessages','isCurrentDocumentInConversation','isCurrentDocumentInContext','addCurrentDocumentToContext','capabilities','105048sigSSM','handleUserInteraction','group','2107ZghLqu','get','toLowerCase','conversationStarted','toolName','getEditor','reasoning','removeSelectionFromContext','addToConversationContext','set','getCapabilitiesConfig','isAvailable','role','getConversation','ai-chat-conversation-init-failed','getAvailableModels','setReasoning','connector','_handleToolResultData','8608pGZNTk','assistant','loadSourceResources','conversationInitialized','load','stack','chatContext','user','options','stop','selectedModel','code','interactionCreated','250360TFbXOM','toggleReasoning','315uuXshG','_extractContextItems','length','currentReply','isStarted','selectedModelId','url','createInteraction','interactions','ai-chat-handle-user-conversation-not-initialized','ai-chat-conversation-start-no-model-selected','ai-chat-conversation-already-started','sessionId','9492oaIygD','ai-chat-conversation-set-model-null','removeFromContext','text','getModel','content','contextItems','removeInteraction','setWebSearch','conversationId','find','setModel','addToolItemToContext','updateCurrentDocument','chatCapabilities','getMessages','appendContent','lastInteraction','modification','addFilesToContext','11053752ChIbzW','2928500TZmMMw','getAll','delegate','isFromHistory','populateFromMessage','updateCurrentDocumentInContext','getPendingContextItems','ai-chat-handle-user-interaction-start-failed','title','addResourceToContext','fire','ai-chat-conversation-init-from-id-failed','addSelectionToContext','ai-chat-conversation-set-model-not-available','fetchConversation','start'];_0xc9c5=function(){return _0x5367a1;};return _0xc9c5();}export class AIChatConversation extends _0xff21b1(){['id'];[_0x15fd9e(0x25d)]=!0x1;[_0x15fd9e(0x201)];[_0x15fd9e(0x1e4)]=[];[_0x15fd9e(0x21f)];[_0x15fd9e(0x254)];[_0x15fd9e(0x248)];[_0x15fd9e(0x252)];constructor(_0x4281c7){const _0x42415f=_0x15fd9e;super(),this[_0x42415f(0x252)]=_0x4281c7,this[_0x42415f(0x248)]=_0x4281c7[_0x42415f(0x248)],this[_0x42415f(0x22a)]=_0x4281c7[_0x42415f(0x22a)],this['id']=_0x4281c7[_0x42415f(0x1f2)],this[_0x42415f(0x201)]=_0x4281c7[_0x42415f(0x201)];}async[_0x15fd9e(0x20f)](_0x2c269a){const _0x104f55=_0x15fd9e;try{this[_0x104f55(0x250)]=new _0x412711({'connector':this[_0x104f55(0x248)],'config':_0x2c269a,'ownerId':this['id']}),this[_0x104f55(0x250)][_0x104f55(0x200)](..._0x2e4fa4)['to'](this),this[_0x104f55(0x250)][_0x104f55(0x20f)](),this[_0x104f55(0x1f7)]=new _0x49c86f(),this[_0x104f55(0x1f7)][_0x104f55(0x200)](..._0x1821c1)['to'](this),this[_0x104f55(0x1f7)][_0x104f55(0x20f)]();const _0x1c8a49=await this[_0x104f55(0x22a)][_0x104f55(0x246)]();this[_0x104f55(0x208)](_0x104f55(0x24d),{'availableModels':_0x1c8a49});const _0x3e6318=await this[_0x104f55(0x22a)][_0x104f55(0x1ed)](this[_0x104f55(0x252)][_0x104f55(0x25e)]);_0x3e6318&&await this[_0x104f55(0x1f4)](_0x3e6318);}catch(_0x7ab110){const _0x43fc1b=new _0x1ae879(_0x104f55(0x245),null,{'message':_0x7ab110[_0x104f55(0x22e)]||_0x7ab110});_0x43fc1b[_0x104f55(0x24f)]=_0x7ab110[_0x104f55(0x24f)],this[_0x104f55(0x208)](_0x104f55(0x216),{'error':_0x43fc1b});}}async[_0x15fd9e(0x20d)](){const _0x2ff307=_0x15fd9e;if(this[_0x2ff307(0x25d)])throw new _0x1ae879(_0x2ff307(0x1e7),null,{'conversation':this});if(!this[_0x2ff307(0x254)])throw new _0x1ae879(_0x2ff307(0x1e6),null,{'conversation':this});try{const {id:_0x3d4409}=await this[_0x2ff307(0x248)][_0x2ff307(0x221)](this['id'],this[_0x2ff307(0x252)][_0x2ff307(0x236)])[_0x2ff307(0x244)]();this['id']=_0x3d4409,this[_0x2ff307(0x25d)]=!0x0,this[_0x2ff307(0x208)](_0x2ff307(0x23a),{'conversationId':this['id'],'selectedModel':this[_0x2ff307(0x254)]});}catch(_0x27dbfc){const _0x50c656=new _0x1ae879(_0x2ff307(0x22d),null,{'message':_0x27dbfc[_0x2ff307(0x22e)],'conversationId':this['id']});throw _0x50c656[_0x2ff307(0x24f)]=_0x27dbfc[_0x2ff307(0x24f)],this[_0x2ff307(0x208)](_0x2ff307(0x216),{'error':_0x50c656}),_0x50c656;}}async[_0x15fd9e(0x24e)](_0x2bf87f,_0x521d94){const _0x6346ea=_0x15fd9e;try{const _0x2c2d18=await this[_0x6346ea(0x248)][_0x6346ea(0x20c)](_0x2bf87f)[_0x6346ea(0x244)](),_0x1b73e9=await this[_0x6346ea(0x248)][_0x6346ea(0x22f)](_0x2bf87f)[_0x6346ea(0x1f8)](),_0x20562f=_0x1b73e9[0x0][_0x6346ea(0x219)];this[_0x6346ea(0x25d)]=!0x0,this['id']=_0x2c2d18['id'],_0x6346ea(0x206)in _0x2c2d18?this[_0x6346ea(0x208)](_0x6346ea(0x213),_0x2c2d18[_0x6346ea(0x206)],!0x0):this[_0x6346ea(0x208)](_0x6346ea(0x213),'',!0x0);const _0x2ad0dd=(await this[_0x6346ea(0x22a)][_0x6346ea(0x1ff)]())[_0x6346ea(0x1f3)](_0x542f2b=>_0x542f2b['id'][_0x6346ea(0x239)]()===_0x20562f[_0x6346ea(0x239)]());return this[_0x6346ea(0x254)]=_0x2ad0dd,this[_0x6346ea(0x208)](_0x6346ea(0x22b),{'selectedModel':_0x2ad0dd,'isDisabled':!0x0}),await this[_0x6346ea(0x21c)](_0x1b73e9,_0x521d94,_0x20562f),this[_0x6346ea(0x21f)]=void 0x0,this;}catch(_0x15ee6c){const _0x26af6b=new _0x1ae879(_0x6346ea(0x209),null,{'message':_0x15ee6c[_0x6346ea(0x22e)],'conversationId':_0x2bf87f});throw _0x26af6b[_0x6346ea(0x24f)]=_0x15ee6c[_0x6346ea(0x24f)],this[_0x6346ea(0x208)](_0x6346ea(0x216),{'error':_0x26af6b}),_0x26af6b;}}async[_0x15fd9e(0x21c)](_0x1b2f40,_0x112e29,_0x20e2c9){const _0x3e7a2b=_0x15fd9e;let _0x2014e0;for(const _0x1d6556 of _0x1b2f40)if(_0x3e7a2b(0x251)===_0x1d6556[_0x3e7a2b(0x243)]){const _0x530880=await this[_0x3e7a2b(0x25a)](_0x1d6556),_0x361cf8={'isReasoningEnabled':Object[_0x3e7a2b(0x21d)](_0x1d6556[_0x3e7a2b(0x233)],_0x3e7a2b(0x23d)),'isWebSearchEnabled':Object[_0x3e7a2b(0x21d)](_0x1d6556[_0x3e7a2b(0x233)],_0x3e7a2b(0x222))};_0x2014e0=this[_0x3e7a2b(0x1e3)]({'userMessage':_0x1d6556[_0x3e7a2b(0x215)],'contextItems':_0x530880,'capabilities':_0x361cf8,'modelId':_0x20e2c9,'attributes':_0x1d6556[_0x3e7a2b(0x226)]}),this[_0x3e7a2b(0x21f)]=_0x2014e0,this[_0x3e7a2b(0x250)][_0x3e7a2b(0x23f)](this[_0x3e7a2b(0x21f)][_0x3e7a2b(0x1ef)]);}else{if(_0x3e7a2b(0x24b)===_0x1d6556[_0x3e7a2b(0x243)]&&_0x2014e0){const _0x102c3a=[];for(const _0x6f6a6a of _0x1d6556[_0x3e7a2b(0x1ee)])switch(_0x6f6a6a[_0x3e7a2b(0x21b)]){case _0x3e7a2b(0x1ec):case _0x3e7a2b(0x1fb):{const _0x3f134f=_0x2014e0[_0x3e7a2b(0x214)]()?.[_0x3e7a2b(0x1e8)]!==_0x112e29;_0x2014e0[_0x3e7a2b(0x25c)]=_0x2014e0[_0x3e7a2b(0x212)]({'type':_0x6f6a6a[_0x3e7a2b(0x21b)],'isDone':!0x0,'interactionId':_0x2014e0['id'],'areActionsDisabled':_0x3f134f}),_0x2014e0[_0x3e7a2b(0x25c)][_0x3e7a2b(0x1f9)](_0x6f6a6a[_0x3e7a2b(0x1ee)]),_0x102c3a[_0x3e7a2b(0x25b)]>0x0&&(_0x2014e0[_0x3e7a2b(0x25c)][_0x3e7a2b(0x217)]=_0x102c3a[_0x3e7a2b(0x211)](0x0));break;}case _0x3e7a2b(0x25f):_0x102c3a[_0x3e7a2b(0x227)](_0x6f6a6a);break;case _0x3e7a2b(0x223):{const {data:_0x873311,attributes:_0x7fa7d3}=JSON[_0x3e7a2b(0x225)](_0x6f6a6a[_0x3e7a2b(0x1ee)]);_0x2014e0[_0x3e7a2b(0x249)]({'toolName':_0x6f6a6a[_0x3e7a2b(0x23b)],'data':_0x873311,'attributes':_0x7fa7d3});break;}}}}}async[_0x15fd9e(0x25a)](_0x543ca7){const _0x34a383=_0x15fd9e,_0xe4ae09=new Map();if(!_0x543ca7[_0x34a383(0x1ee)])return _0xe4ae09;for(const _0x16c91e of _0x543ca7[_0x34a383(0x1ee)]){const _0x2379fd=await this[_0x34a383(0x250)][_0x34a383(0x202)](_0x16c91e);_0x2379fd&&_0xe4ae09[_0x34a383(0x240)](_0x2379fd['id'],_0x2379fd);}return _0xe4ae09;}async[_0x15fd9e(0x235)]({userMessage:_0x33babd,attributes:_0x3f9af5}){const _0x33b3b1=_0x15fd9e;if(!this[_0x33b3b1(0x25d)])throw new _0x1ae879(_0x33b3b1(0x1e5),null,{'conversation':this});if(this[_0x33b3b1(0x21f)])throw new _0x1ae879(_0x33b3b1(0x229),null,{'conversation':this});try{const _0x12fa6d=this[_0x33b3b1(0x250)][_0x33b3b1(0x204)](),_0x166b6c=this[_0x33b3b1(0x1f7)][_0x33b3b1(0x241)](),_0x17e40b=this[_0x33b3b1(0x254)]['id'];this[_0x33b3b1(0x21f)]=this[_0x33b3b1(0x1e3)]({'userMessage':_0x33babd,'contextItems':_0x12fa6d,'capabilities':_0x166b6c,'modelId':_0x17e40b,'attributes':_0x3f9af5}),await this[_0x33b3b1(0x21f)][_0x33b3b1(0x20d)](),this[_0x33b3b1(0x250)][_0x33b3b1(0x23f)](this[_0x33b3b1(0x21f)][_0x33b3b1(0x1ef)]);}catch(_0x5c3b6d){if(_0x5c3b6d instanceof _0x1ae879)this[_0x33b3b1(0x208)](_0x33b3b1(0x216),{'interactionId':this[_0x33b3b1(0x21f)]?this[_0x33b3b1(0x21f)]['id']:void 0x0,'error':_0x5c3b6d});else{const _0x30da4f=_0x5f03e6[_0x33b3b1(0x238)](_0x5c3b6d[_0x33b3b1(0x255)])||_0x33b3b1(0x205);this[_0x33b3b1(0x208)](_0x33b3b1(0x216),{'interactionId':this[_0x33b3b1(0x21f)]?this[_0x33b3b1(0x21f)]['id']:void 0x0,'error':new _0x1ae879(_0x30da4f,null,{'error':_0x5c3b6d})});}}finally{this[_0x33b3b1(0x21f)]?.[_0x33b3b1(0x253)](),this[_0x33b3b1(0x21f)]=void 0x0;}}[_0x15fd9e(0x1e3)]({userMessage:_0x19addc,contextItems:_0x10db1f,capabilities:_0x5e15ce,modelId:_0x4b2802,attributes:_0xcad72a}){const _0x56fc6e=_0x15fd9e,_0x4794e2=new _0xffd4e0({'userMessage':_0x19addc,'contextItems':_0x10db1f,'capabilities':_0x5e15ce,'conversationId':this['id'],'connector':this[_0x56fc6e(0x248)],'editor':this[_0x56fc6e(0x252)][_0x56fc6e(0x23c)]&&this[_0x56fc6e(0x252)][_0x56fc6e(0x23c)](),'model':_0x4b2802,'attributes':_0xcad72a});return _0x4794e2[_0x56fc6e(0x200)](..._0x1b4a88)['to'](this),this[_0x56fc6e(0x1e4)][_0x56fc6e(0x227)](_0x4794e2),this[_0x56fc6e(0x208)](_0x56fc6e(0x256),_0x4794e2),_0x4794e2;}[_0x15fd9e(0x21a)](_0x256958){const _0x107dde=_0x15fd9e;return this[_0x107dde(0x1e4)][_0x107dde(0x1f3)](_0x23368c=>_0x23368c['id']===_0x256958);}[_0x15fd9e(0x1f0)](_0x403970){const _0x380d83=_0x15fd9e,_0x3303e2=this[_0x380d83(0x21a)](_0x403970);_0x3303e2&&(_0x3303e2[_0x380d83(0x21e)](),this[_0x380d83(0x1e4)][_0x380d83(0x211)](this[_0x380d83(0x1e4)][_0x380d83(0x218)](_0x3303e2),0x1));}get[_0x15fd9e(0x1fa)](){const _0x5b322c=_0x15fd9e;return this[_0x5b322c(0x1e4)][this[_0x5b322c(0x1e4)][_0x5b322c(0x25b)]-0x1];}[_0x15fd9e(0x232)](_0x4f81d9){const _0x57f3e2=_0x15fd9e;this[_0x57f3e2(0x250)][_0x57f3e2(0x232)](_0x4f81d9);}async[_0x15fd9e(0x203)]({content:_0x1d4e87,version:_0x41d9b0,sessionId:_0xd4f81a,selections:_0x57b1d6}){const _0x405d7a=_0x15fd9e;await this[_0x405d7a(0x250)][_0x405d7a(0x1f6)](_0x1d4e87,_0x41d9b0,_0xd4f81a,_0x57b1d6);}[_0x15fd9e(0x20e)](){const _0x55bf35=_0x15fd9e;return this[_0x55bf35(0x21f)]?.[_0x55bf35(0x214)]()?.[_0x55bf35(0x1ee)]||'';}[_0x15fd9e(0x20a)](_0x286b1b){const _0x2e6f93=_0x15fd9e;this[_0x2e6f93(0x250)][_0x2e6f93(0x20a)](_0x286b1b);}[_0x15fd9e(0x23e)](){const _0x3bdaed=_0x15fd9e;this[_0x3bdaed(0x250)][_0x3bdaed(0x23e)]();}[_0x15fd9e(0x1fc)](_0xf29fab){const _0x35c1b6=_0x15fd9e;this[_0x35c1b6(0x250)][_0x35c1b6(0x1fc)](_0xf29fab);}[_0x15fd9e(0x210)](_0x15e81c){const _0x23e4e6=_0x15fd9e;this[_0x23e4e6(0x250)][_0x23e4e6(0x210)](_0x15e81c);}[_0x15fd9e(0x1f5)](_0x4b3f27){const _0x1ff328=_0x15fd9e;this[_0x1ff328(0x250)][_0x1ff328(0x1f5)](_0x4b3f27);}[_0x15fd9e(0x207)](_0xf21d76,_0x377e16){const _0x3833d0=_0x15fd9e;this[_0x3833d0(0x250)][_0x3833d0(0x207)](_0xf21d76,_0x377e16);}[_0x15fd9e(0x24c)](_0x4c38a8,_0x559b3e,_0x399329){const _0x2f1e2c=_0x15fd9e;return this[_0x2f1e2c(0x250)][_0x2f1e2c(0x24c)](_0x4c38a8,_0x559b3e,_0x399329);}[_0x15fd9e(0x1eb)](_0x82f2d4){const _0x1fc237=_0x15fd9e;this[_0x1fc237(0x250)][_0x1fc237(0x1eb)](_0x82f2d4);}[_0x15fd9e(0x1f1)](_0xe93063){const _0x3995fc=_0x15fd9e;this[_0x3995fc(0x1f7)][_0x3995fc(0x1f1)](_0xe93063);}[_0x15fd9e(0x22c)](){const _0x41a075=_0x15fd9e;this[_0x41a075(0x1f7)][_0x41a075(0x22c)]();}[_0x15fd9e(0x247)](_0x3e3970){const _0x301de5=_0x15fd9e;this[_0x301de5(0x1f7)][_0x301de5(0x247)](_0x3e3970);}[_0x15fd9e(0x258)](){const _0x3df206=_0x15fd9e;this[_0x3df206(0x1f7)][_0x3df206(0x258)]();}[_0x15fd9e(0x231)](){const _0x454f90=_0x15fd9e;return this[_0x454f90(0x250)][_0x454f90(0x231)]();}[_0x15fd9e(0x230)](){const _0x56661f=_0x15fd9e;return this[_0x56661f(0x250)][_0x56661f(0x230)]();}[_0x15fd9e(0x228)](){const _0x2e4c51=_0x15fd9e;return this[_0x2e4c51(0x250)][_0x2e4c51(0x228)]();}async[_0x15fd9e(0x1f4)](_0x134eb5){const _0xce0f1e=_0x15fd9e;_0x134eb5?!0x1===await this[_0xce0f1e(0x22a)][_0xce0f1e(0x242)](_0x134eb5)&&(_0x375471(_0xce0f1e(0x20b),{'conversation':this,'model':_0x134eb5}),_0x134eb5=(await this[_0xce0f1e(0x22a)][_0xce0f1e(0x246)]())[0x0]):(_0x375471(_0xce0f1e(0x1ea),{'conversation':this}),_0x134eb5=(await this[_0xce0f1e(0x22a)][_0xce0f1e(0x246)]())[0x0]),_0x134eb5['id']!==this[_0xce0f1e(0x254)]?.['id']&&(this[_0xce0f1e(0x254)]=_0x134eb5,this[_0xce0f1e(0x1f7)][_0xce0f1e(0x224)](),this[_0xce0f1e(0x208)](_0xce0f1e(0x22b),{'selectedModel':_0x134eb5}));}}
23
+ function _0x3a09(){const _0x2f24c9=['ai-chat-conversation-start-failed','conversationId','start','getCurrentDocumentContext','indexOf','getConversation','role','getPendingContextItems','addToConversationContext','push','_processMessagesToInteractions','9NYdRKX','fetchConversation','addSelectionToContext','ai-chat-conversation-set-model-not-available','setModel','setReasoning','ai-chat-handle-user-interaction-start-failed','length','ai-chat-handle-user-interaction-already-in-progress','modelSelected','addToolItemToContext','group','toggleWebSearch','setWebSearch','prompt','chatModels','message','options','text','contextItems','isFromHistory','ai-chat-handle-user-conversation-not-initialized','getCapabilitiesConfig','model','setConversationTitle','init','6HGQPEV','webSearch','hasOwn','addCurrentDocumentToContext','addUrlToContext','ai-chat-conversation-init-failed','isCurrentDocumentInContext','destroy','createInteraction','_handleToolResultData','find','addResourceToContext','getAll','4483905WRZxTg','reasoning','ai-chat-conversation-init-from-id-failed','code','addFilesToContext','attributes','modification','capabilities','stop','updateCurrentDocument','delegate','content','connector','isAvailable','_extractContextItems','selectedModel','loadSourceResources','getEditor','stack','handleUserInteraction','ai-chat-conversation-set-model-null','1028796ZuNLjY','interactionCreated','sessionId','startConversation','8YgIYTZ','conversationStarted','2410000eZheEZ','reset','lastInteraction','chatCapabilities','24NTsfRS','set','selectedModelId','toLowerCase','removeInteraction','parse','conversationInitialized','get','updateCurrentDocumentInContext','getDocumentContext','chatContext','assistant','interactions','splice','3199149bZDaxs','sources','removeSelectionFromContext','removeFromContext','8096924QxrCnJ','user','title','isSelectionInContext','fetchConversationMessages','appendContent','getAvailableModels','currentInteraction','createReply','currentReply','getModel','5537329YBFLTm','error','getMessages','load','populateFromMessage','6022idSNma','327WLBind','isCurrentDocumentInConversation','mcp-tool-result','getInteraction','toolName','ai-chat-conversation-already-started','isStarted','url','ai-chat-conversation-start-no-model-selected','fire','type','toggleReasoning'];_0x3a09=function(){return _0x2f24c9;};return _0x3a09();}function _0x21c6(_0x328ebf,_0x24b58f){const _0x3a094e=_0x3a09();return _0x21c6=function(_0x21c6bb,_0x3f4581){_0x21c6bb=_0x21c6bb-0x10c;let _0x3ff245=_0x3a094e[_0x21c6bb];return _0x3ff245;},_0x21c6(_0x328ebf,_0x24b58f);}const _0xf624fd=_0x21c6;(function(_0xc0c540,_0x414283){const _0x39763c=_0x21c6,_0x4051e2=_0xc0c540();while(!![]){try{const _0x13dd9f=-parseInt(_0x39763c(0x12c))/0x1*(parseInt(_0x39763c(0x12b))/0x2)+-parseInt(_0x39763c(0x143))/0x3*(-parseInt(_0x39763c(0x17f))/0x4)+-parseInt(_0x39763c(0x16a))/0x5*(parseInt(_0x39763c(0x15d))/0x6)+parseInt(_0x39763c(0x126))/0x7*(parseInt(_0x39763c(0x183))/0x8)+-parseInt(_0x39763c(0x117))/0x9+-parseInt(_0x39763c(0x185))/0xa+-parseInt(_0x39763c(0x11b))/0xb*(-parseInt(_0x39763c(0x189))/0xc);if(_0x13dd9f===_0x414283)break;else _0x4051e2['push'](_0x4051e2['shift']());}catch(_0x2fb810){_0x4051e2['push'](_0x4051e2['shift']());}}}(_0x3a09,0x87fad));import{CKEditorError as _0x5af740,EmitterMixin as _0x28ced1,logWarning as _0x13eb82}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x5ce25a}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x1fbda6,AI_CONTEXT_MODEL_EVENT_NAMES as _0x1e1980}from'./aichatcontext.js';import{AICapabilities as _0x36e433,CAPABILITIES_MODEL_EVENT_NAMES as _0x18bf33}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x29da5e}from'./aichatinteraction.js';import{errorsMap as _0x3b9821}from'../../errorsmap.js';export class AIChatConversation extends _0x28ced1(){['id'];[_0xf624fd(0x132)]=!0x1;[_0xf624fd(0x157)];[_0xf624fd(0x115)]=[];[_0xf624fd(0x122)];[_0xf624fd(0x179)];[_0xf624fd(0x176)];[_0xf624fd(0x154)];constructor(_0xad5c8f){const _0x358085=_0xf624fd;super(),this[_0x358085(0x154)]=_0xad5c8f,this[_0x358085(0x176)]=_0xad5c8f[_0x358085(0x176)],this[_0x358085(0x152)]=_0xad5c8f[_0x358085(0x152)],this['id']=_0xad5c8f[_0x358085(0x139)],this[_0x358085(0x157)]=_0xad5c8f[_0x358085(0x157)];}async[_0xf624fd(0x15c)](_0x1bda07){const _0x1b0ff6=_0xf624fd;try{this[_0x1b0ff6(0x113)]=new _0x1fbda6({'connector':this[_0x1b0ff6(0x176)],'config':_0x1bda07,'ownerId':this['id']}),this[_0x1b0ff6(0x113)][_0x1b0ff6(0x174)](..._0x1e1980)['to'](this),this[_0x1b0ff6(0x113)][_0x1b0ff6(0x15c)](),this[_0x1b0ff6(0x188)]=new _0x36e433(),this[_0x1b0ff6(0x188)][_0x1b0ff6(0x174)](..._0x18bf33)['to'](this),this[_0x1b0ff6(0x188)][_0x1b0ff6(0x15c)]();const _0x43f0a4=await this[_0x1b0ff6(0x152)][_0x1b0ff6(0x121)]();this[_0x1b0ff6(0x135)](_0x1b0ff6(0x10f),{'availableModels':_0x43f0a4});const _0x2a93c7=await this[_0x1b0ff6(0x152)][_0x1b0ff6(0x125)](this[_0x1b0ff6(0x154)][_0x1b0ff6(0x18b)]);_0x2a93c7&&await this[_0x1b0ff6(0x147)](_0x2a93c7);}catch(_0x265333){const _0x1e89be=new _0x5af740(_0x1b0ff6(0x162),null,{'message':_0x265333[_0x1b0ff6(0x153)]||_0x265333});_0x1e89be[_0x1b0ff6(0x17c)]=_0x265333[_0x1b0ff6(0x17c)],this[_0x1b0ff6(0x135)](_0x1b0ff6(0x127),{'error':_0x1e89be});}}async[_0xf624fd(0x13a)](){const _0x24e6d2=_0xf624fd;if(this[_0x24e6d2(0x132)])throw new _0x5af740(_0x24e6d2(0x131),null,{'conversation':this});if(!this[_0x24e6d2(0x179)])throw new _0x5af740(_0x24e6d2(0x134),null,{'conversation':this});try{const {id:_0x45a51b}=await this[_0x24e6d2(0x176)][_0x24e6d2(0x182)](this['id'],this[_0x24e6d2(0x154)][_0x24e6d2(0x14e)])[_0x24e6d2(0x13d)]();this['id']=_0x45a51b,this[_0x24e6d2(0x132)]=!0x0,this[_0x24e6d2(0x135)](_0x24e6d2(0x184),{'conversationId':this['id'],'selectedModel':this[_0x24e6d2(0x179)]});}catch(_0x2a7257){const _0x3d4db3=new _0x5af740(_0x24e6d2(0x138),null,{'message':_0x2a7257[_0x24e6d2(0x153)],'conversationId':this['id']});throw _0x3d4db3[_0x24e6d2(0x17c)]=_0x2a7257[_0x24e6d2(0x17c)],this[_0x24e6d2(0x135)](_0x24e6d2(0x127),{'error':_0x3d4db3}),_0x3d4db3;}}async[_0xf624fd(0x129)](_0x1b4380,_0x613fcc){const _0xb5f2a1=_0xf624fd;try{const _0x662ff=await this[_0xb5f2a1(0x176)][_0xb5f2a1(0x144)](_0x1b4380)[_0xb5f2a1(0x13d)](),_0x594d6e=await this[_0xb5f2a1(0x176)][_0xb5f2a1(0x11f)](_0x1b4380)[_0xb5f2a1(0x128)](),_0x3336e6=_0x594d6e[0x0][_0xb5f2a1(0x15a)];this[_0xb5f2a1(0x132)]=!0x0,this['id']=_0x662ff['id'],_0xb5f2a1(0x11d)in _0x662ff?this[_0xb5f2a1(0x135)](_0xb5f2a1(0x15b),_0x662ff[_0xb5f2a1(0x11d)],!0x0):this[_0xb5f2a1(0x135)](_0xb5f2a1(0x15b),'',!0x0);const _0x24c732=(await this[_0xb5f2a1(0x152)][_0xb5f2a1(0x169)]())[_0xb5f2a1(0x167)](_0x4d74c8=>_0x4d74c8['id'][_0xb5f2a1(0x10c)]()===_0x3336e6[_0xb5f2a1(0x10c)]());return this[_0xb5f2a1(0x179)]=_0x24c732,this[_0xb5f2a1(0x135)](_0xb5f2a1(0x14c),{'selectedModel':_0x24c732,'isDisabled':!0x0}),await this[_0xb5f2a1(0x142)](_0x594d6e,_0x613fcc,_0x3336e6),this[_0xb5f2a1(0x122)]=void 0x0,this;}catch(_0x4142e3){const _0x24746e=new _0x5af740(_0xb5f2a1(0x16c),null,{'message':_0x4142e3[_0xb5f2a1(0x153)],'conversationId':_0x1b4380});throw _0x24746e[_0xb5f2a1(0x17c)]=_0x4142e3[_0xb5f2a1(0x17c)],this[_0xb5f2a1(0x135)](_0xb5f2a1(0x127),{'error':_0x24746e}),_0x24746e;}}async[_0xf624fd(0x142)](_0x273eaa,_0x21ec08,_0x3b60fd){const _0x2c7550=_0xf624fd;let _0x23a1e2;for(const _0x213269 of _0x273eaa)if(_0x2c7550(0x11c)===_0x213269[_0x2c7550(0x13e)]){const _0x54358a=await this[_0x2c7550(0x178)](_0x213269),_0x28de6d={'isReasoningEnabled':Object[_0x2c7550(0x15f)](_0x213269[_0x2c7550(0x171)],_0x2c7550(0x16b)),'isWebSearchEnabled':Object[_0x2c7550(0x15f)](_0x213269[_0x2c7550(0x171)],_0x2c7550(0x15e))};_0x23a1e2=this[_0x2c7550(0x165)]({'userMessage':_0x213269[_0x2c7550(0x151)],'contextItems':_0x54358a,'capabilities':_0x28de6d,'modelId':_0x3b60fd,'attributes':_0x213269[_0x2c7550(0x16f)]}),this[_0x2c7550(0x122)]=_0x23a1e2,this[_0x2c7550(0x113)][_0x2c7550(0x140)](this[_0x2c7550(0x122)][_0x2c7550(0x156)]);}else{if(_0x2c7550(0x114)===_0x213269[_0x2c7550(0x13e)]&&_0x23a1e2){const _0xde25a6=[];for(const _0x301025 of _0x213269[_0x2c7550(0x175)])switch(_0x301025[_0x2c7550(0x136)]){case _0x2c7550(0x155):case _0x2c7550(0x170):{const _0x4d964e=_0x23a1e2[_0x2c7550(0x112)]()?.[_0x2c7550(0x181)]!==_0x21ec08;_0x23a1e2[_0x2c7550(0x124)]=_0x23a1e2[_0x2c7550(0x123)]({'type':_0x301025[_0x2c7550(0x136)],'isDone':!0x0,'interactionId':_0x23a1e2['id'],'areActionsDisabled':_0x4d964e}),_0x23a1e2[_0x2c7550(0x124)][_0x2c7550(0x120)](_0x301025[_0x2c7550(0x175)]),_0xde25a6[_0x2c7550(0x14a)]>0x0&&(_0x23a1e2[_0x2c7550(0x124)][_0x2c7550(0x118)]=_0xde25a6[_0x2c7550(0x116)](0x0));break;}case _0x2c7550(0x133):_0xde25a6[_0x2c7550(0x141)](_0x301025);break;case _0x2c7550(0x12e):{const {data:_0xfd882d,attributes:_0x1d190d}=JSON[_0x2c7550(0x10e)](_0x301025[_0x2c7550(0x175)]);_0x23a1e2[_0x2c7550(0x166)]({'toolName':_0x301025[_0x2c7550(0x130)],'data':_0xfd882d,'attributes':_0x1d190d});break;}}}}}async[_0xf624fd(0x178)](_0xc7bb67){const _0x5c0d0c=_0xf624fd,_0x35cb4f=new Map();if(!_0xc7bb67[_0x5c0d0c(0x175)])return _0x35cb4f;for(const _0x1060da of _0xc7bb67[_0x5c0d0c(0x175)]){const _0x79f866=await this[_0x5c0d0c(0x113)][_0x5c0d0c(0x12a)](_0x1060da);_0x79f866&&_0x35cb4f[_0x5c0d0c(0x18a)](_0x79f866['id'],_0x79f866);}return _0x35cb4f;}async[_0xf624fd(0x17d)]({userMessage:_0x573aff,attributes:_0x586d62}){const _0x38aad6=_0xf624fd;if(!this[_0x38aad6(0x132)])throw new _0x5af740(_0x38aad6(0x158),null,{'conversation':this});if(this[_0x38aad6(0x122)])throw new _0x5af740(_0x38aad6(0x14b),null,{'conversation':this});try{const _0x13ee14=this[_0x38aad6(0x113)][_0x38aad6(0x13f)](),_0x31f7ab=this[_0x38aad6(0x188)][_0x38aad6(0x159)](),_0x337143=this[_0x38aad6(0x179)]['id'];this[_0x38aad6(0x122)]=this[_0x38aad6(0x165)]({'userMessage':_0x573aff,'contextItems':_0x13ee14,'capabilities':_0x31f7ab,'modelId':_0x337143,'attributes':_0x586d62}),await this[_0x38aad6(0x122)][_0x38aad6(0x13a)](),this[_0x38aad6(0x113)][_0x38aad6(0x140)](this[_0x38aad6(0x122)][_0x38aad6(0x156)]);}catch(_0x5b9b81){if(_0x5b9b81 instanceof _0x5af740)this[_0x38aad6(0x135)](_0x38aad6(0x127),{'interactionId':this[_0x38aad6(0x122)]?this[_0x38aad6(0x122)]['id']:void 0x0,'error':_0x5b9b81});else{const _0x4815ab=_0x3b9821[_0x38aad6(0x110)](_0x5b9b81[_0x38aad6(0x16d)])||_0x38aad6(0x149);this[_0x38aad6(0x135)](_0x38aad6(0x127),{'interactionId':this[_0x38aad6(0x122)]?this[_0x38aad6(0x122)]['id']:void 0x0,'error':new _0x5af740(_0x4815ab,null,{'error':_0x5b9b81})});}}finally{this[_0x38aad6(0x122)]?.[_0x38aad6(0x172)](),this[_0x38aad6(0x122)]=void 0x0;}}[_0xf624fd(0x165)]({userMessage:_0x42200b,contextItems:_0x4ebf2b,capabilities:_0x221304,modelId:_0x53963d,attributes:_0x2233c1}){const _0x47d0ff=_0xf624fd,_0x26e746=new _0x29da5e({'userMessage':_0x42200b,'contextItems':_0x4ebf2b,'capabilities':_0x221304,'conversationId':this['id'],'connector':this[_0x47d0ff(0x176)],'editor':this[_0x47d0ff(0x154)][_0x47d0ff(0x17b)]&&this[_0x47d0ff(0x154)][_0x47d0ff(0x17b)](),'model':_0x53963d,'attributes':_0x2233c1});return _0x26e746[_0x47d0ff(0x174)](..._0x5ce25a)['to'](this),this[_0x47d0ff(0x115)][_0x47d0ff(0x141)](_0x26e746),this[_0x47d0ff(0x135)](_0x47d0ff(0x180),_0x26e746),_0x26e746;}[_0xf624fd(0x12f)](_0x3c8d2e){const _0x26ff2a=_0xf624fd;return this[_0x26ff2a(0x115)][_0x26ff2a(0x167)](_0xfd2770=>_0xfd2770['id']===_0x3c8d2e);}[_0xf624fd(0x10d)](_0x3dbae9){const _0x456ca5=_0xf624fd,_0x223e39=this[_0x456ca5(0x12f)](_0x3dbae9);_0x223e39&&(_0x223e39[_0x456ca5(0x164)](),this[_0x456ca5(0x115)][_0x456ca5(0x116)](this[_0x456ca5(0x115)][_0x456ca5(0x13c)](_0x223e39),0x1));}get[_0xf624fd(0x187)](){const _0x55b3a2=_0xf624fd;return this[_0x55b3a2(0x115)][this[_0x55b3a2(0x115)][_0x55b3a2(0x14a)]-0x1];}[_0xf624fd(0x160)](_0x3c345c){const _0xdf3b68=_0xf624fd;this[_0xdf3b68(0x113)][_0xdf3b68(0x160)](_0x3c345c);}async[_0xf624fd(0x111)]({content:_0x48f372,version:_0x668c7f,sessionId:_0x50708f,selections:_0x1a44ac}){const _0x54a57c=_0xf624fd;await this[_0x54a57c(0x113)][_0x54a57c(0x173)](_0x48f372,_0x668c7f,_0x50708f,_0x1a44ac);}[_0xf624fd(0x13b)](){const _0x4e772f=_0xf624fd;return this[_0x4e772f(0x122)]?.[_0x4e772f(0x112)]()?.[_0x4e772f(0x175)]||'';}[_0xf624fd(0x145)](_0x39450f){const _0x6ff881=_0xf624fd;this[_0x6ff881(0x113)][_0x6ff881(0x145)](_0x39450f);}[_0xf624fd(0x119)](){const _0x45ec9f=_0xf624fd;this[_0x45ec9f(0x113)][_0x45ec9f(0x119)]();}[_0xf624fd(0x16e)](_0x4346ca){const _0x101335=_0xf624fd;this[_0x101335(0x113)][_0x101335(0x16e)](_0x4346ca);}[_0xf624fd(0x161)](_0x4cd0f7){const _0x352e6a=_0xf624fd;this[_0x352e6a(0x113)][_0x352e6a(0x161)](_0x4cd0f7);}[_0xf624fd(0x14d)](_0x41b3d7){const _0x30254e=_0xf624fd;this[_0x30254e(0x113)][_0x30254e(0x14d)](_0x41b3d7);}[_0xf624fd(0x168)](_0x407563,_0x413467){const _0x2c1197=_0xf624fd;this[_0x2c1197(0x113)][_0x2c1197(0x168)](_0x407563,_0x413467);}[_0xf624fd(0x17a)](_0x50468d,_0x4426fc,_0x449f08){const _0xed5863=_0xf624fd;return this[_0xed5863(0x113)][_0xed5863(0x17a)](_0x50468d,_0x4426fc,_0x449f08);}[_0xf624fd(0x11a)](_0x1396ca){const _0x17f7cc=_0xf624fd;this[_0x17f7cc(0x113)][_0x17f7cc(0x11a)](_0x1396ca);}[_0xf624fd(0x150)](_0x356eff){const _0x372772=_0xf624fd;this[_0x372772(0x188)][_0x372772(0x150)](_0x356eff);}[_0xf624fd(0x14f)](){const _0x569c6a=_0xf624fd;this[_0x569c6a(0x188)][_0x569c6a(0x14f)]();}[_0xf624fd(0x148)](_0x4c18ff){const _0x523b34=_0xf624fd;this[_0x523b34(0x188)][_0x523b34(0x148)](_0x4c18ff);}[_0xf624fd(0x137)](){const _0x462768=_0xf624fd;this[_0x462768(0x188)][_0x462768(0x137)]();}[_0xf624fd(0x163)](){const _0x2f550f=_0xf624fd;return this[_0x2f550f(0x113)][_0x2f550f(0x163)]();}[_0xf624fd(0x12d)](){const _0x1c78e4=_0xf624fd;return this[_0x1c78e4(0x113)][_0x1c78e4(0x12d)]();}[_0xf624fd(0x11e)](){const _0x171214=_0xf624fd;return this[_0x171214(0x113)][_0x171214(0x11e)]();}async[_0xf624fd(0x147)](_0x30e983){const _0x54897d=_0xf624fd;_0x30e983?!0x1===await this[_0x54897d(0x152)][_0x54897d(0x177)](_0x30e983)&&(_0x13eb82(_0x54897d(0x146),{'conversation':this,'model':_0x30e983}),_0x30e983=(await this[_0x54897d(0x152)][_0x54897d(0x121)]())[0x0]):(_0x13eb82(_0x54897d(0x17e),{'conversation':this}),_0x30e983=(await this[_0x54897d(0x152)][_0x54897d(0x121)]())[0x0]),_0x30e983['id']!==this[_0x54897d(0x179)]?.['id']&&(this[_0x54897d(0x179)]=_0x30e983,this[_0x54897d(0x188)][_0x54897d(0x186)](),this[_0x54897d(0x135)](_0x54897d(0x14c),{'selectedModel':_0x30e983}));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x485993=_0x51cd;(function(_0x5bc888,_0x5a5daf){var _0x1f4b41=_0x51cd,_0x4b4fa7=_0x5bc888();while(!![]){try{var _0xbbc5eb=-parseInt(_0x1f4b41(0x1ef))/0x1+-parseInt(_0x1f4b41(0x1e7))/0x2*(parseInt(_0x1f4b41(0x1e5))/0x3)+-parseInt(_0x1f4b41(0x1f7))/0x4*(-parseInt(_0x1f4b41(0x1ea))/0x5)+-parseInt(_0x1f4b41(0x1e4))/0x6*(-parseInt(_0x1f4b41(0x1e6))/0x7)+parseInt(_0x1f4b41(0x1f1))/0x8+-parseInt(_0x1f4b41(0x1ed))/0x9*(-parseInt(_0x1f4b41(0x1eb))/0xa)+parseInt(_0x1f4b41(0x1f4))/0xb;if(_0xbbc5eb===_0x5a5daf)break;else _0x4b4fa7['push'](_0x4b4fa7['shift']());}catch(_0x3017c2){_0x4b4fa7['push'](_0x4b4fa7['shift']());}}}(_0x3c3c,0x9597b));function _0x51cd(_0x49cca3,_0xdcb5be){var _0x3c3c10=_0x3c3c();return _0x51cd=function(_0x51cdff,_0xfc6f1e){_0x51cdff=_0x51cdff-0x1e0;var _0x26940f=_0x3c3c10[_0x51cdff];return _0x26940f;},_0x51cd(_0x49cca3,_0xdcb5be);}import{AICapabilities as _0x14ec8a}from'../../aicore/model/aicapabilities.js';function _0x3c3c(){var _0x21a0e0=['getCapabilitiesRequestData','sendRequest','646842ShqUhe','243MEghYV','49kWTBPY','25774aWZfte','conversationId','queryAssistant','5IqCdAa','137490gxiHnY','model','18MtaxMp','userMessage','400011ztvJia','mapContextItemsToRequestData','6699376KLlDwc','attributes','current-document','1981023hRNIJl','connector','get','1027708swPuAZ','getDocumentContext','contextItems','capabilities'];_0x3c3c=function(){return _0x21a0e0;};return _0x3c3c();}import{AIInteraction as _0x2d647e}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x109bb3}from'./aichatcontext.js';export class AIChatInteraction extends _0x2d647e{[_0x485993(0x1ee)];[_0x485993(0x1e8)];[_0x485993(0x1e0)]=new Map();[_0x485993(0x1ec)];[_0x485993(0x1f2)];constructor(_0x4bb09b){var _0x544c09=_0x485993;super(_0x4bb09b),this[_0x544c09(0x1e8)]=_0x4bb09b[_0x544c09(0x1e8)],this[_0x544c09(0x1e0)]=_0x4bb09b[_0x544c09(0x1e0)],this[_0x544c09(0x1e1)]=_0x4bb09b[_0x544c09(0x1e1)],this[_0x544c09(0x1ee)]=_0x4bb09b[_0x544c09(0x1ee)],this[_0x544c09(0x1ec)]=_0x4bb09b[_0x544c09(0x1ec)],this[_0x544c09(0x1f2)]=_0x4bb09b[_0x544c09(0x1f2)];}async[_0x485993(0x1e3)](){var _0x4a9442=_0x485993;return this[_0x4a9442(0x1f5)][_0x4a9442(0x1e9)]({'message':this[_0x4a9442(0x1ee)],'conversationId':this[_0x4a9442(0x1e8)],'parts':_0x109bb3[_0x4a9442(0x1f0)](this[_0x4a9442(0x1e0)]),'capabilities':_0x14ec8a[_0x4a9442(0x1e2)](this[_0x4a9442(0x1e1)]),'model':this[_0x4a9442(0x1ec)],'attributes':this[_0x4a9442(0x1f2)]});}[_0x485993(0x1f8)](){var _0x3126c0=_0x485993;return this[_0x3126c0(0x1e0)][_0x3126c0(0x1f6)](_0x3126c0(0x1f3));}}
23
+ var _0x5776e6=_0x3bd0;function _0x2a7e(){var _0x40395f=['102phMIvt','attributes','230aEcYgn','mapContextItemsToRequestData','get','userMessage','4337qCvmEN','451932GFbphE','getDocumentContext','capabilities','12uhbpcd','conversationId','24048rxtqLa','contextItems','sendRequest','367242LmzsFd','2493fJULXa','791WXTmeN','getCapabilitiesRequestData','queryAssistant','current-document','35Slctod','connector','393910xwmlnK','model','3354sLiXLQ','39375271qrYiXr'];_0x2a7e=function(){return _0x40395f;};return _0x2a7e();}(function(_0x466184,_0x673a91){var _0x2cb9a8=_0x3bd0,_0x2efbc6=_0x466184();while(!![]){try{var _0x39be1f=-parseInt(_0x2cb9a8(0x176))/0x1*(-parseInt(_0x2cb9a8(0x170))/0x2)+-parseInt(_0x2cb9a8(0x164))/0x3+-parseInt(_0x2cb9a8(0x177))/0x4*(parseInt(_0x2cb9a8(0x16a))/0x5)+parseInt(_0x2cb9a8(0x16e))/0x6*(parseInt(_0x2cb9a8(0x166))/0x7)+parseInt(_0x2cb9a8(0x17c))/0x8*(-parseInt(_0x2cb9a8(0x165))/0x9)+-parseInt(_0x2cb9a8(0x172))/0xa*(parseInt(_0x2cb9a8(0x16c))/0xb)+parseInt(_0x2cb9a8(0x17a))/0xc*(parseInt(_0x2cb9a8(0x16f))/0xd);if(_0x39be1f===_0x673a91)break;else _0x2efbc6['push'](_0x2efbc6['shift']());}catch(_0x233717){_0x2efbc6['push'](_0x2efbc6['shift']());}}}(_0x2a7e,0xb58d2));import{AICapabilities as _0x3821f6}from'../../aicore/model/aicapabilities.js';function _0x3bd0(_0x32b580,_0x3f81ce){var _0x2a7e03=_0x2a7e();return _0x3bd0=function(_0x3bd022,_0x35bda0){_0x3bd022=_0x3bd022-0x162;var _0x5e6de1=_0x2a7e03[_0x3bd022];return _0x5e6de1;},_0x3bd0(_0x32b580,_0x3f81ce);}import{AIInteraction as _0xc7a007}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x5c698b}from'./aichatcontext.js';export class AIChatInteraction extends _0xc7a007{[_0x5776e6(0x175)];[_0x5776e6(0x17b)];[_0x5776e6(0x162)]=new Map();[_0x5776e6(0x16d)];[_0x5776e6(0x171)];constructor(_0x312769){var _0x4fe2dd=_0x5776e6;super(_0x312769),this[_0x4fe2dd(0x17b)]=_0x312769[_0x4fe2dd(0x17b)],this[_0x4fe2dd(0x162)]=_0x312769[_0x4fe2dd(0x162)],this[_0x4fe2dd(0x179)]=_0x312769[_0x4fe2dd(0x179)],this[_0x4fe2dd(0x175)]=_0x312769[_0x4fe2dd(0x175)],this[_0x4fe2dd(0x16d)]=_0x312769[_0x4fe2dd(0x16d)],this[_0x4fe2dd(0x171)]=_0x312769[_0x4fe2dd(0x171)];}async[_0x5776e6(0x163)](){var _0x439ace=_0x5776e6;return this[_0x439ace(0x16b)][_0x439ace(0x168)]({'message':this[_0x439ace(0x175)],'conversationId':this[_0x439ace(0x17b)],'parts':_0x5c698b[_0x439ace(0x173)](this[_0x439ace(0x162)]),'capabilities':_0x3821f6[_0x439ace(0x167)](this[_0x439ace(0x179)]),'model':this[_0x439ace(0x16d)],'attributes':this[_0x439ace(0x171)]});}[_0x5776e6(0x178)](){var _0x22f01d=_0x5776e6;return this[_0x22f01d(0x162)][_0x22f01d(0x174)](_0x22f01d(0x169));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x21b245=_0x35f0;function _0x5b39(){const _0x423ee6=['toggleShowChanges','has','17904NqpenI','tab','applySuggestion','_keystrokes','update','full','availableActions','element','ck-ai-chat-balloon-main','render','fire','shift\x20+\x20tab','304910tcMvdw','focusCycler','ck-ai-chat-balloon-main_state_','setButtonsVisibility','focusFirst','_focusTracker','locale','updateContent','20jkqSBn','ck-ai-chat-balloon__toolbar-container','execute','showDiff','_miniToolbarView','toggleRotatorButtonsVisibility','previousButtonView','hideError','_createPreviousButtonView','listenTo','_toolbarContainerView','set','div','_createNextButtonView','AI_BALLOON_PREVIOUS_LABEL','207lOuoQO','rejectSuggestion','insertSuggestion','_streamableContentView','showPrevious','pending','focusLast','isShowChangesOn','change:_state','createCollection','_stateView','_partToolbarView','_isErrorVisible','_focusables','toggleSuggestionDisplayMode','setState','AI_BALLOON_NEXT_LABEL','children','delegate','1085526kXoTmk','_errorView','change:isTrackChangesOn','isTrackChangesOn','includes','destroy','keepErrors','add','291600kANuHp','setTemplate','bind','_togglePartToolbarButtonsVisibility','showBlockingError','togglePartToolbarEnabled','3366780VZaKEB','isEnabled','bindTemplate','_state','1LRHGUL','addMany','focus','_config','showNext','2878212anPUnW','isVisible','979ApBymR','nextButtonView','882642ULigzO','showError','1673mPnTGO'];_0x5b39=function(){return _0x423ee6;};return _0x5b39();}function _0x35f0(_0x18166d,_0x36e836){const _0x5b39aa=_0x5b39();return _0x35f0=function(_0x35f0b5,_0x549ffe){_0x35f0b5=_0x35f0b5-0x1b4;let _0x22c727=_0x5b39aa[_0x35f0b5];return _0x22c727;},_0x35f0(_0x18166d,_0x36e836);}(function(_0x18b520,_0x5847ef){const _0x4bc359=_0x35f0,_0x493273=_0x18b520();while(!![]){try{const _0x58f54e=-parseInt(_0x4bc359(0x1b6))/0x1*(parseInt(_0x4bc359(0x1fa))/0x2)+-parseInt(_0x4bc359(0x1bb))/0x3+-parseInt(_0x4bc359(0x208))/0x4+parseInt(_0x4bc359(0x1d8))/0x5*(parseInt(_0x4bc359(0x1bf))/0x6)+parseInt(_0x4bc359(0x1c1))/0x7*(-parseInt(_0x4bc359(0x1c4))/0x8)+-parseInt(_0x4bc359(0x1e7))/0x9*(-parseInt(_0x4bc359(0x1d0))/0xa)+parseInt(_0x4bc359(0x1bd))/0xb*(parseInt(_0x4bc359(0x202))/0xc);if(_0x58f54e===_0x5847ef)break;else _0x493273['push'](_0x493273['shift']());}catch(_0x12533a){_0x493273['push'](_0x493273['shift']());}}}(_0x5b39,0x8c0ed));import{FocusTracker as _0x106946,KeystrokeHandler as _0x5e599e}from'ckeditor5/src/utils.js';import{AISuggestionStreamableContentView as _0xf20507}from'../../aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js';import{AISuggestionContentPartToolbarView as _0x5521f6}from'../../aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js';import{AIMiniToolbarView as _0x122343}from'../../aicore/ui/suggestioncontainer/aiminitoolbarview.js';import{AIBalloonView as _0x29d9e}from'../../aiballoon/ui/aiballoonview.js';import{ButtonView as _0x39f09a,FocusCycler as _0x4014a4,View as _0x5844c0}from'ckeditor5/src/ui.js';import{AISuggestionContentPartStateView as _0xfb43ec}from'../../aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js';import{IconChevronDown as _0x3a8945,IconChevronUp as _0x21829b}from'ckeditor5/src/icons.js';import{getTranslation as _0x357a03}from'../../aicore/utils/common-translations.js';import'../../../theme/aichat/aichatballoon.css';export class AIChatBalloonView extends _0x29d9e{[_0x21b245(0x1f8)];[_0x21b245(0x1be)];[_0x21b245(0x1de)];[_0x21b245(0x1d1)];[_0x21b245(0x1f4)];[_0x21b245(0x1d5)];[_0x21b245(0x1c7)];[_0x21b245(0x1b9)];[_0x21b245(0x1ea)];[_0x21b245(0x1e2)];[_0x21b245(0x1f2)];[_0x21b245(0x1f1)];[_0x21b245(0x1dc)];constructor(_0x5f4c10,_0x1fb5e6){const _0x5caf4a=_0x21b245;super(_0x5f4c10);const _0x2f063a=this[_0x5caf4a(0x1b4)];this[_0x5caf4a(0x1e3)](_0x5caf4a(0x1db),!0x1),this[_0x5caf4a(0x1e3)](_0x5caf4a(0x1b5),_0x5caf4a(0x1ec)),this[_0x5caf4a(0x1d5)]=new _0x106946(),this[_0x5caf4a(0x1c7)]=new _0x5e599e(),this[_0x5caf4a(0x1f4)]=this[_0x5caf4a(0x1f0)](),this[_0x5caf4a(0x1d1)]=new _0x4014a4({'focusables':this[_0x5caf4a(0x1f4)],'focusTracker':this[_0x5caf4a(0x1d5)],'keystrokeHandler':this[_0x5caf4a(0x1c7)],'actions':{'focusPrevious':_0x5caf4a(0x1cf),'focusNext':_0x5caf4a(0x1c5)}}),this[_0x5caf4a(0x1b9)]=_0x1fb5e6,this[_0x5caf4a(0x1be)]=this[_0x5caf4a(0x1e5)](),this[_0x5caf4a(0x1de)]=this[_0x5caf4a(0x1e0)](),this[_0x5caf4a(0x1ea)]=new _0xf20507(_0x5f4c10),this[_0x5caf4a(0x1f2)]=new _0x5521f6(_0x5f4c10,_0x1fb5e6[_0x5caf4a(0x1ca)]),this[_0x5caf4a(0x1f2)][_0x5caf4a(0x1f9)](_0x5caf4a(0x1c6),_0x5caf4a(0x1e9),_0x5caf4a(0x1e8))['to'](this),this[_0x5caf4a(0x205)](_0x1fb5e6),this[_0x5caf4a(0x1f1)]=new _0xfb43ec(_0x5f4c10),this[_0x5caf4a(0x1f1)][_0x5caf4a(0x1bc)]=!0x1,this[_0x5caf4a(0x1dc)]=new _0x122343(_0x5f4c10,{'showChanges':_0x5caf4a(0x1c9)}),this[_0x5caf4a(0x1dc)][_0x5caf4a(0x204)](_0x5caf4a(0x1ee))['to'](this,_0x5caf4a(0x1db)),this[_0x5caf4a(0x1dc)]['on'](_0x5caf4a(0x1c2),()=>{const _0x10e68a=_0x5caf4a;this[_0x10e68a(0x1ce)](_0x10e68a(0x1f5));}),this[_0x5caf4a(0x1e2)]=new fs(_0x5f4c10,[this[_0x5caf4a(0x1f2)],this[_0x5caf4a(0x1f1)],this[_0x5caf4a(0x1dc)]]),this[_0x5caf4a(0x1f8)]=this[_0x5caf4a(0x1f0)]([this[_0x5caf4a(0x1ea)],this[_0x5caf4a(0x1e2)]]),this['on'](_0x5caf4a(0x1ef),(_0x2a22ca,_0x1f6b6a,_0xd1ad8c,_0xb2d522)=>{const _0x221050=_0x5caf4a;let _0x1e49c3,_0x25e809;_0x221050(0x1ec)===_0xb2d522?(_0x1e49c3=this[_0x221050(0x1f2)],_0x25e809=this[_0x221050(0x1f1)]):(_0x1e49c3=this[_0x221050(0x1f1)],_0x25e809=this[_0x221050(0x1f2)]),this[_0x221050(0x1f1)][_0x221050(0x1f6)](_0xd1ad8c),_0x1e49c3[_0x221050(0x1bc)]=!0x1,_0x25e809[_0x221050(0x1bc)]=!0x0;}),this[_0x5caf4a(0x203)]({'tag':_0x5caf4a(0x1e4),'attributes':{'class':['ck',_0x5caf4a(0x1cc),_0x2f063a['to'](_0x5caf4a(0x1b5),_0x37498c=>_0x5caf4a(0x1d2)+_0x37498c)]},'children':this[_0x5caf4a(0x1f8)]}),this['on'](_0x5caf4a(0x1fc),()=>{const _0x561b1f=_0x5caf4a;this[_0x561b1f(0x205)](_0x1fb5e6);});}[_0x21b245(0x1cd)](){const _0x3df091=_0x21b245;super[_0x3df091(0x1cd)](),this[_0x3df091(0x1be)][_0x3df091(0x1cd)](),this[_0x3df091(0x1de)][_0x3df091(0x1cd)](),this[_0x3df091(0x1d5)][_0x3df091(0x201)](this[_0x3df091(0x1cb)]),this[_0x3df091(0x1d5)][_0x3df091(0x201)](this[_0x3df091(0x1be)]),this[_0x3df091(0x1d5)][_0x3df091(0x201)](this[_0x3df091(0x1de)]),this[_0x3df091(0x1d5)][_0x3df091(0x201)](this[_0x3df091(0x1dc)]),this[_0x3df091(0x1d5)][_0x3df091(0x201)](this[_0x3df091(0x1f2)]),this[_0x3df091(0x1c7)][_0x3df091(0x1e1)](this[_0x3df091(0x1cb)]),this[_0x3df091(0x1c7)][_0x3df091(0x1e1)](this[_0x3df091(0x1be)][_0x3df091(0x1cb)]),this[_0x3df091(0x1c7)][_0x3df091(0x1e1)](this[_0x3df091(0x1de)][_0x3df091(0x1cb)]),this[_0x3df091(0x1f4)][_0x3df091(0x1b7)]([this[_0x3df091(0x1be)],this[_0x3df091(0x1de)],this[_0x3df091(0x1f2)],this[_0x3df091(0x1dc)]]);}[_0x21b245(0x1ff)](){const _0x507f5d=_0x21b245;super[_0x507f5d(0x1ff)](),this[_0x507f5d(0x1de)][_0x507f5d(0x1ff)](),this[_0x507f5d(0x1be)][_0x507f5d(0x1ff)]();}[_0x21b245(0x1b8)](){const _0x3e2826=_0x21b245;this[_0x3e2826(0x1d1)][_0x3e2826(0x1d4)]();}[_0x21b245(0x1ed)](){const _0x2ad3e1=_0x21b245;this[_0x2ad3e1(0x1d1)][_0x2ad3e1(0x1ed)]();}async[_0x21b245(0x1d7)](_0x2d6872){const _0x7fa9e=_0x21b245;_0x2d6872?.[_0x7fa9e(0x200)]||this[_0x7fa9e(0x1df)](),await this[_0x7fa9e(0x1ea)][_0x7fa9e(0x1c8)](_0x2d6872);}[_0x21b245(0x1f6)](_0x48fe3d){const _0x41dd90=_0x21b245;this[_0x41dd90(0x1b5)]=_0x48fe3d;}[_0x21b245(0x1c0)](_0x506354){const _0x1c0fb0=_0x21b245;super[_0x1c0fb0(0x1c0)](_0x506354),this[_0x1c0fb0(0x1f8)][_0x1c0fb0(0x1c3)](this[_0x1c0fb0(0x1fb)])||this[_0x1c0fb0(0x1f8)][_0x1c0fb0(0x201)](this[_0x1c0fb0(0x1fb)],0x0);}[_0x21b245(0x1df)](){const _0x20ede4=_0x21b245;this[_0x20ede4(0x1f3)]&&(super[_0x20ede4(0x1df)](),this[_0x20ede4(0x207)](!0x0));}[_0x21b245(0x206)](_0x15351c){const _0x3332c3=_0x21b245;super[_0x3332c3(0x206)](_0x15351c),this[_0x3332c3(0x207)](!0x1);}[_0x21b245(0x1dd)](_0x470cba){const _0x1bd22f=_0x21b245;this[_0x1bd22f(0x1be)][_0x1bd22f(0x1bc)]=this[_0x1bd22f(0x1de)][_0x1bd22f(0x1bc)]=_0x470cba;}[_0x21b245(0x207)](_0x4a5000){const _0x3a91de=_0x21b245;this[_0x3a91de(0x1f2)][_0x3a91de(0x209)]=_0x4a5000;}[_0x21b245(0x205)]({showApplyButton:_0x4478cb,showSuggestButton:_0x17b20e}){const _0x161767=_0x21b245;_0x4478cb=_0x4478cb&&!this[_0x161767(0x1fd)]&&this[_0x161767(0x1b9)][_0x161767(0x1ca)][_0x161767(0x1fe)](_0x161767(0x1c6)),_0x17b20e=_0x17b20e&&this[_0x161767(0x1b9)][_0x161767(0x1ca)][_0x161767(0x1fe)](_0x161767(0x1e9)),this[_0x161767(0x1f2)][_0x161767(0x1d3)]({'showApplyButton':_0x4478cb,'showSuggestButton':_0x17b20e});}[_0x21b245(0x1e5)](){const _0x5cdbee=_0x21b245,_0x19e3dd=new _0x39f09a(this[_0x5cdbee(0x1d6)]);return _0x19e3dd[_0x5cdbee(0x1e3)]({'icon':_0x3a8945,'label':_0x357a03(this[_0x5cdbee(0x1d6)],_0x5cdbee(0x1f7)),'isVisible':!0x0}),_0x19e3dd['on'](_0x5cdbee(0x1da),()=>{const _0xcc31ac=_0x5cdbee;this[_0xcc31ac(0x1ce)](_0xcc31ac(0x1ba));}),_0x19e3dd;}[_0x21b245(0x1e0)](){const _0x4b2810=_0x21b245,_0x581cb7=new _0x39f09a(this[_0x4b2810(0x1d6)]);return _0x581cb7[_0x4b2810(0x1e3)]({'icon':_0x21829b,'label':_0x357a03(this[_0x4b2810(0x1d6)],_0x4b2810(0x1e6)),'isVisible':!0x0}),_0x581cb7['on'](_0x4b2810(0x1da),()=>{const _0x3558e8=_0x4b2810;this[_0x3558e8(0x1ce)](_0x3558e8(0x1eb));}),_0x581cb7;}}class fs extends _0x5844c0{constructor(_0x2ffc3e,_0x5a0837){const _0x592291=_0x21b245;super(_0x2ffc3e),this[_0x592291(0x203)]({'tag':_0x592291(0x1e4),'attributes':{'class':[_0x592291(0x1d9)]},'children':_0x5a0837});}}
23
+ const _0x328176=_0x3b59;(function(_0x469a3d,_0x82e653){const _0xcf6b7c=_0x3b59,_0x2fc061=_0x469a3d();while(!![]){try{const _0x1e4a42=-parseInt(_0xcf6b7c(0x143))/0x1+-parseInt(_0xcf6b7c(0x14f))/0x2*(parseInt(_0xcf6b7c(0x18e))/0x3)+parseInt(_0xcf6b7c(0x177))/0x4*(-parseInt(_0xcf6b7c(0x16c))/0x5)+parseInt(_0xcf6b7c(0x140))/0x6+-parseInt(_0xcf6b7c(0x164))/0x7*(-parseInt(_0xcf6b7c(0x16f))/0x8)+-parseInt(_0xcf6b7c(0x17a))/0x9*(-parseInt(_0xcf6b7c(0x142))/0xa)+parseInt(_0xcf6b7c(0x13e))/0xb*(parseInt(_0xcf6b7c(0x146))/0xc);if(_0x1e4a42===_0x82e653)break;else _0x2fc061['push'](_0x2fc061['shift']());}catch(_0x496bd5){_0x2fc061['push'](_0x2fc061['shift']());}}}(_0x599f,0x858ea));function _0x3b59(_0xad2f5c,_0x1fcac6){const _0x599f69=_0x599f();return _0x3b59=function(_0x3b5986,_0x224374){_0x3b5986=_0x3b5986-0x13e;let _0x424ca9=_0x599f69[_0x3b5986];return _0x424ca9;},_0x3b59(_0xad2f5c,_0x1fcac6);}import{FocusTracker as _0x371f36,KeystrokeHandler as _0x237010}from'ckeditor5/src/utils.js';import{AISuggestionStreamableContentView as _0xb2912}from'../../aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js';import{AISuggestionContentPartToolbarView as _0x2225c5}from'../../aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js';import{AIMiniToolbarView as _0x68a765}from'../../aicore/ui/suggestioncontainer/aiminitoolbarview.js';import{AIBalloonView as _0x545c1d}from'../../aiballoon/ui/aiballoonview.js';import{ButtonView as _0x4f3cf0,FocusCycler as _0x453eb4,View as _0x506227}from'ckeditor5/src/ui.js';import{AISuggestionContentPartStateView as _0x2b606c}from'../../aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js';import{IconChevronDown as _0x1c3f65,IconChevronUp as _0x4ca020}from'ckeditor5/src/icons.js';import{getTranslation as _0x693513}from'../../aicore/utils/common-translations.js';import'../../../theme/aichat/aichatballoon.css';export class AIChatBalloonView extends _0x545c1d{[_0x328176(0x14b)];[_0x328176(0x171)];[_0x328176(0x15c)];[_0x328176(0x163)];[_0x328176(0x174)];[_0x328176(0x192)];[_0x328176(0x147)];[_0x328176(0x17f)];[_0x328176(0x165)];[_0x328176(0x191)];[_0x328176(0x145)];[_0x328176(0x157)];[_0x328176(0x17e)];constructor(_0x56cef7,_0x549303){const _0x2f1a09=_0x328176;super(_0x56cef7);const _0x475172=this[_0x2f1a09(0x185)];this[_0x2f1a09(0x189)](_0x2f1a09(0x148),!0x1),this[_0x2f1a09(0x189)](_0x2f1a09(0x176),_0x2f1a09(0x187)),this[_0x2f1a09(0x192)]=new _0x371f36(),this[_0x2f1a09(0x147)]=new _0x237010(),this[_0x2f1a09(0x174)]=this[_0x2f1a09(0x14d)](),this[_0x2f1a09(0x163)]=new _0x453eb4({'focusables':this[_0x2f1a09(0x174)],'focusTracker':this[_0x2f1a09(0x192)],'keystrokeHandler':this[_0x2f1a09(0x147)],'actions':{'focusPrevious':_0x2f1a09(0x14a),'focusNext':_0x2f1a09(0x17d)}}),this[_0x2f1a09(0x17f)]=_0x549303,this[_0x2f1a09(0x171)]=this[_0x2f1a09(0x184)](),this[_0x2f1a09(0x15c)]=this[_0x2f1a09(0x18c)](),this[_0x2f1a09(0x165)]=new _0xb2912(_0x56cef7),this[_0x2f1a09(0x145)]=new _0x2225c5(_0x56cef7,_0x549303[_0x2f1a09(0x16e)]),this[_0x2f1a09(0x145)][_0x2f1a09(0x188)](_0x2f1a09(0x154),_0x2f1a09(0x178),_0x2f1a09(0x172))['to'](this),this[_0x2f1a09(0x18f)](_0x549303),this[_0x2f1a09(0x157)]=new _0x2b606c(_0x56cef7),this[_0x2f1a09(0x157)][_0x2f1a09(0x13f)]=!0x1,this[_0x2f1a09(0x17e)]=new _0x68a765(_0x56cef7,{'showChanges':_0x2f1a09(0x170)}),this[_0x2f1a09(0x17e)][_0x2f1a09(0x167)](_0x2f1a09(0x169))['to'](this,_0x2f1a09(0x148)),this[_0x2f1a09(0x17e)]['on'](_0x2f1a09(0x173),()=>{const _0x827513=_0x2f1a09;this[_0x827513(0x190)](_0x827513(0x16a));}),this[_0x2f1a09(0x191)]=new ms(_0x56cef7,[this[_0x2f1a09(0x145)],this[_0x2f1a09(0x157)],this[_0x2f1a09(0x17e)]]),this[_0x2f1a09(0x14b)]=this[_0x2f1a09(0x14d)]([this[_0x2f1a09(0x165)],this[_0x2f1a09(0x191)]]),this['on'](_0x2f1a09(0x151),(_0x4f1b8c,_0x2e5b0c,_0x411171,_0x3a8a33)=>{const _0x3b62e0=_0x2f1a09;let _0x218e64,_0x5ba61b;_0x3b62e0(0x187)===_0x3a8a33?(_0x218e64=this[_0x3b62e0(0x145)],_0x5ba61b=this[_0x3b62e0(0x157)]):(_0x218e64=this[_0x3b62e0(0x157)],_0x5ba61b=this[_0x3b62e0(0x145)]),this[_0x3b62e0(0x157)][_0x3b62e0(0x156)](_0x411171),_0x218e64[_0x3b62e0(0x13f)]=!0x1,_0x5ba61b[_0x3b62e0(0x13f)]=!0x0;}),this[_0x2f1a09(0x15b)]({'tag':_0x2f1a09(0x150),'attributes':{'class':['ck',_0x2f1a09(0x144),_0x475172['to'](_0x2f1a09(0x176),_0x147901=>_0x2f1a09(0x141)+_0x147901)]},'children':this[_0x2f1a09(0x14b)]}),this['on'](_0x2f1a09(0x17c),()=>{const _0x523647=_0x2f1a09;this[_0x523647(0x18f)](_0x549303);});}[_0x328176(0x159)](){const _0x4c54b3=_0x328176;super[_0x4c54b3(0x159)](),this[_0x4c54b3(0x171)][_0x4c54b3(0x159)](),this[_0x4c54b3(0x15c)][_0x4c54b3(0x159)](),this[_0x4c54b3(0x192)][_0x4c54b3(0x183)](this[_0x4c54b3(0x16b)]),this[_0x4c54b3(0x192)][_0x4c54b3(0x183)](this[_0x4c54b3(0x171)]),this[_0x4c54b3(0x192)][_0x4c54b3(0x183)](this[_0x4c54b3(0x15c)]),this[_0x4c54b3(0x192)][_0x4c54b3(0x183)](this[_0x4c54b3(0x17e)]),this[_0x4c54b3(0x192)][_0x4c54b3(0x183)](this[_0x4c54b3(0x145)]),this[_0x4c54b3(0x147)][_0x4c54b3(0x181)](this[_0x4c54b3(0x16b)]),this[_0x4c54b3(0x147)][_0x4c54b3(0x181)](this[_0x4c54b3(0x171)][_0x4c54b3(0x16b)]),this[_0x4c54b3(0x147)][_0x4c54b3(0x181)](this[_0x4c54b3(0x15c)][_0x4c54b3(0x16b)]),this[_0x4c54b3(0x174)][_0x4c54b3(0x162)]([this[_0x4c54b3(0x171)],this[_0x4c54b3(0x15c)],this[_0x4c54b3(0x145)],this[_0x4c54b3(0x17e)]]);}[_0x328176(0x16d)](){const _0x40d430=_0x328176;super[_0x40d430(0x16d)](),this[_0x40d430(0x15c)][_0x40d430(0x16d)](),this[_0x40d430(0x171)][_0x40d430(0x16d)]();}[_0x328176(0x180)](){const _0x1b43ac=_0x328176;this[_0x1b43ac(0x163)][_0x1b43ac(0x166)]();}[_0x328176(0x152)](){const _0x1ec8fd=_0x328176;this[_0x1ec8fd(0x163)][_0x1ec8fd(0x152)]();}async[_0x328176(0x193)](_0x5b603d){const _0x317a9a=_0x328176;_0x5b603d?.[_0x317a9a(0x168)]||this[_0x317a9a(0x17b)](),await this[_0x317a9a(0x165)][_0x317a9a(0x14c)](_0x5b603d);}[_0x328176(0x156)](_0x45adf6){const _0x571c67=_0x328176;this[_0x571c67(0x176)]=_0x45adf6;}[_0x328176(0x161)](_0x548c68){const _0x2b2807=_0x328176;super[_0x2b2807(0x161)](_0x548c68),this[_0x2b2807(0x14b)][_0x2b2807(0x149)](this[_0x2b2807(0x15a)])||this[_0x2b2807(0x14b)][_0x2b2807(0x183)](this[_0x2b2807(0x15a)],0x0);}[_0x328176(0x17b)](){const _0x98ad93=_0x328176;this[_0x98ad93(0x15d)]&&(super[_0x98ad93(0x17b)](),this[_0x98ad93(0x179)](!0x0));}[_0x328176(0x153)](_0x527aa7){const _0x47871b=_0x328176;super[_0x47871b(0x153)](_0x527aa7),this[_0x47871b(0x179)](!0x1);}[_0x328176(0x18d)](_0x4a943c){const _0x29e482=_0x328176;this[_0x29e482(0x171)][_0x29e482(0x13f)]=this[_0x29e482(0x15c)][_0x29e482(0x13f)]=_0x4a943c;}[_0x328176(0x179)](_0x692eef){const _0x19b4ae=_0x328176;this[_0x19b4ae(0x145)][_0x19b4ae(0x158)]=_0x692eef;}[_0x328176(0x18f)]({showApplyButton:_0x5d55cc,showSuggestButton:_0x1aa60e}){const _0x3172c5=_0x328176;_0x5d55cc=_0x5d55cc&&!this[_0x3172c5(0x182)]&&this[_0x3172c5(0x17f)][_0x3172c5(0x16e)][_0x3172c5(0x155)](_0x3172c5(0x154)),_0x1aa60e=_0x1aa60e&&this[_0x3172c5(0x17f)][_0x3172c5(0x16e)][_0x3172c5(0x155)](_0x3172c5(0x178)),this[_0x3172c5(0x145)][_0x3172c5(0x186)]({'showApplyButton':_0x5d55cc,'showSuggestButton':_0x1aa60e});}[_0x328176(0x184)](){const _0x51464e=_0x328176,_0x1db80f=new _0x4f3cf0(this[_0x51464e(0x14e)]);return _0x1db80f[_0x51464e(0x189)]({'icon':_0x1c3f65,'label':_0x693513(this[_0x51464e(0x14e)],_0x51464e(0x15f)),'isVisible':!0x0}),_0x1db80f['on'](_0x51464e(0x175),()=>{const _0x380888=_0x51464e;this[_0x380888(0x190)](_0x380888(0x18b));}),_0x1db80f;}[_0x328176(0x18c)](){const _0x106488=_0x328176,_0x10aa5a=new _0x4f3cf0(this[_0x106488(0x14e)]);return _0x10aa5a[_0x106488(0x189)]({'icon':_0x4ca020,'label':_0x693513(this[_0x106488(0x14e)],_0x106488(0x15e)),'isVisible':!0x0}),_0x10aa5a['on'](_0x106488(0x175),()=>{const _0x2d2e9d=_0x106488;this[_0x2d2e9d(0x190)](_0x2d2e9d(0x18a));}),_0x10aa5a;}}function _0x599f(){const _0x534ce8=['isEnabled','render','_errorView','setTemplate','previousButtonView','_isErrorVisible','AI_BALLOON_PREVIOUS_LABEL','AI_BALLOON_NEXT_LABEL','ck-ai-chat-balloon__toolbar-container','showError','addMany','focusCycler','313922XIQuqo','_streamableContentView','focusFirst','bind','keepErrors','isShowChangesOn','toggleSuggestionDisplayMode','element','8015LTBwfx','destroy','availableActions','104YmJNQq','full','nextButtonView','rejectSuggestion','toggleShowChanges','_focusables','execute','_state','684AVDXTt','insertSuggestion','togglePartToolbarEnabled','144vWcxiI','hideError','change:isTrackChangesOn','tab','_miniToolbarView','_config','focus','listenTo','isTrackChangesOn','add','_createNextButtonView','bindTemplate','setButtonsVisibility','pending','delegate','set','showPrevious','showNext','_createPreviousButtonView','toggleRotatorButtonsVisibility','72003agfROe','_togglePartToolbarButtonsVisibility','fire','_toolbarContainerView','_focusTracker','updateContent','33HPGEXR','isVisible','1550772vUcHZD','ck-ai-chat-balloon-main_state_','287220KUhDUM','1042771GQiScz','ck-ai-chat-balloon-main','_partToolbarView','5803836KJPoBv','_keystrokes','showDiff','has','shift\x20+\x20tab','children','update','createCollection','locale','74fVrWnh','div','change:_state','focusLast','showBlockingError','applySuggestion','includes','setState','_stateView'];_0x599f=function(){return _0x534ce8;};return _0x599f();}class ms extends _0x506227{constructor(_0x40a2e3,_0x56916b){const _0x5cf2bd=_0x328176;super(_0x40a2e3),this[_0x5cf2bd(0x15b)]({'tag':_0x5cf2bd(0x150),'attributes':{'class':[_0x5cf2bd(0x160)]},'children':_0x56916b});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x365920=_0x50b6;(function(_0x3cb6f6,_0x41438a){const _0x15b36e=_0x50b6,_0x58fd5b=_0x3cb6f6();while(!![]){try{const _0x66716f=-parseInt(_0x15b36e(0x128))/0x1*(-parseInt(_0x15b36e(0x13d))/0x2)+parseInt(_0x15b36e(0x127))/0x3*(parseInt(_0x15b36e(0x12b))/0x4)+parseInt(_0x15b36e(0x129))/0x5+-parseInt(_0x15b36e(0x120))/0x6+parseInt(_0x15b36e(0x14c))/0x7*(parseInt(_0x15b36e(0x12e))/0x8)+-parseInt(_0x15b36e(0x156))/0x9*(parseInt(_0x15b36e(0x151))/0xa)+-parseInt(_0x15b36e(0x126))/0xb;if(_0x66716f===_0x41438a)break;else _0x58fd5b['push'](_0x58fd5b['shift']());}catch(_0x23bd31){_0x58fd5b['push'](_0x58fd5b['shift']());}}}(_0x2814,0x1b16b));function _0x50b6(_0x2df526,_0x3b575f){const _0x2814ce=_0x2814();return _0x50b6=function(_0x50b6ac,_0x39fcf1){_0x50b6ac=_0x50b6ac-0x117;let _0x5c3bf6=_0x2814ce[_0x50b6ac];return _0x5c3bf6;},_0x50b6(_0x2df526,_0x3b575f);}import{ButtonView as _0x10c002,clickOutsideHandler as _0x3fb44e,View as _0x468f69}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x2aeca6}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x4fd8f6}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x589719,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x5bf499}from'./controls/aichatcontextpanelview.js';function _0x2814(){const _0x38f64a=['toggleReasoning','addContextButtonView','setModelList','9aXXzAx','clearCurrentContextItems','startConversation','_createContextPanelView','bindTemplate','_promptInputView','isModelAvailable','focus','updateResourceState','set','locale','_loaderView','_promptCapabilitiesView','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','clearConversationContextUI','clearConversationContextItems','delegate','change:isLoading','div','_contextPanelView','ck-ai-chat-controls__start-new-chat-button','removeContextItem','setWebSearch','value','_createLoaderView','populateSourceResourceBalloon','_handlePromptInputFocus','setIsUploadInProgress','830160DzgBsc','enableModelSelector','ck-ai-chat-controls','element','selectModel','setInputPlaceholder','568722lJOfBk','137463Yuevws','354iDQmgT','59050oPPpzu','setReasoning','12ZjPKnl','resetMessageInput','setContextItemLoading','631848kNZPgl','disableModelSelector','focusPromptInput','ck-hidden','_createModelUnavailableMessageView','isLoading','form','bodyCollection','_shouldRestorePromptInputFocus','ck-ai-chat-controls-model-unavailable-message','setPlaceholderText','isDisabled','sendUserMessage','ck-ai-chat-controls-disabled','_createPromptCapabilitiesView','674fLLstz','abortPromptStream','queryView','setPromptInputValue','closeSourceResourceBalloon','setConversationContext','toggleWebSearch','clearPendingContextUI','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','low','setTemplate','_modelUnavailableMessageView','_createPromptInputView','reset','setModel','7sZGwdg','setAddContextOptions','fieldView','addContextItem','execute','465350YBtEBh','contextResourcesSearchInputVisibleFrom'];_0x2814=function(){return _0x38f64a;};return _0x2814();}import{AIChatControlsLoaderView as _0x3f0d9b}from'./controls/aichatcontrolsloaderview.js';import{getTranslation as _0x5e306f}from'../../aicore/utils/common-translations.js';import'../../../theme/aichat/aichat-controls.css';import'../../../theme/aichat/aichat-controls/prompt-input.css';import'../../../theme/aichat/aichat-controls/prompt-capabilities.css';import'../../../theme/aichat/aichat-controls/model-unavailable-message.css';import'../../../theme/aichat/aichat-controls/aichat-context-controls.css';import'../../../theme/aichat/aichat-controls/aichat-context-chip.css';import'../../../theme/aichat/aichat-controls/aichat-controls-button.css';import'../../../theme/aichat/aichat-controls/aichat-controls-loader.css';import'../../../theme/aichat/aichat-controls/aichat-context-controls-balloon-panels.css';export class AIChatControlsView extends _0x468f69{[_0x365920(0x117)];[_0x365920(0x15b)];[_0x365920(0x162)];[_0x365920(0x161)];[_0x365920(0x148)];[_0x365920(0x136)];constructor(_0x36d72f,_0x54b4dc){const _0x4738ff=_0x365920;super(_0x36d72f),this[_0x4738ff(0x117)]=this[_0x4738ff(0x159)](_0x36d72f,{'bodyCollection':_0x54b4dc[_0x4738ff(0x135)],'searchInputVisibleFrom':_0x54b4dc[_0x4738ff(0x152)]}),this[_0x4738ff(0x15b)]=this[_0x4738ff(0x149)](_0x36d72f),this[_0x4738ff(0x162)]=this[_0x4738ff(0x13c)](_0x36d72f),this[_0x4738ff(0x161)]=this[_0x4738ff(0x11c)](_0x36d72f),this[_0x4738ff(0x148)]=this[_0x4738ff(0x132)](_0x36d72f),this[_0x4738ff(0x136)]=!0x1,this[_0x4738ff(0x15b)][_0x4738ff(0x166)](_0x4738ff(0x13a))['to'](this),this[_0x4738ff(0x161)][_0x4738ff(0x166)](_0x4738ff(0x13e))['to'](this),this[_0x4738ff(0x162)][_0x4738ff(0x166)](_0x4738ff(0x143))['to'](this),this[_0x4738ff(0x162)][_0x4738ff(0x166)](_0x4738ff(0x153))['to'](this),this[_0x4738ff(0x162)][_0x4738ff(0x166)](_0x4738ff(0x124))['to'](this),this[_0x4738ff(0x117)][_0x4738ff(0x166)](..._0x5bf499)['to'](this),this[_0x4738ff(0x15f)](_0x4738ff(0x15c),!0x0),this[_0x4738ff(0x15f)](_0x4738ff(0x139),!0x1);const _0x582d3f=this[_0x4738ff(0x15a)];this[_0x4738ff(0x147)]({'tag':_0x4738ff(0x134),'attributes':{'class':['ck',_0x4738ff(0x122),_0x582d3f['if'](_0x4738ff(0x139),_0x4738ff(0x13b))]},'children':[{'tag':_0x4738ff(0x168),'attributes':{'class':[_0x582d3f['if'](_0x4738ff(0x133),_0x4738ff(0x131),_0x3ae7e6=>_0x3ae7e6||!this[_0x4738ff(0x15c)]),_0x582d3f['if'](_0x4738ff(0x15c),_0x4738ff(0x131),_0x326d01=>!_0x326d01||this[_0x4738ff(0x133)])]},'children':[this[_0x4738ff(0x117)],this[_0x4738ff(0x15b)],this[_0x4738ff(0x162)]]},{'tag':_0x4738ff(0x168),'attributes':{'class':[_0x582d3f['if'](_0x4738ff(0x133),_0x4738ff(0x131),_0x1493bc=>!_0x1493bc)]},'children':[this[_0x4738ff(0x161)]]},{'tag':_0x4738ff(0x168),'attributes':{'class':[_0x582d3f['if'](_0x4738ff(0x15c),_0x4738ff(0x131),_0xb892f5=>_0xb892f5)]},'children':[this[_0x4738ff(0x148)]]}]}),_0x3fb44e({'emitter':this[_0x4738ff(0x15b)],'activator':()=>this[_0x4738ff(0x133)],'contextElements':()=>[this[_0x4738ff(0x123)]],'callback':()=>{const _0xd104a8=_0x4738ff;this[_0xd104a8(0x136)]=!0x1;}}),this['on'](_0x4738ff(0x167),this[_0x4738ff(0x11e)],{'priority':_0x4738ff(0x146)});}[_0x365920(0x159)](_0x163925,_0x5dc3d7){return new _0x589719(_0x163925,_0x5dc3d7);}[_0x365920(0x149)](_0x5220fd){const _0x58bb27=_0x365920;return new _0x2aeca6(_0x5220fd,this[_0x58bb27(0x117)][_0x58bb27(0x154)]);}[_0x365920(0x13c)](_0x1d415a){return new _0x4fd8f6(_0x1d415a);}[_0x365920(0x11c)](_0xad0656){return new _0x3f0d9b(_0xad0656);}[_0x365920(0x132)](_0x1a2705){const _0x4d9776=_0x365920,_0x1a8696=new As(_0x1a2705);return _0x1a8696[_0x4d9776(0x166)](_0x4d9776(0x158))['to'](this),_0x1a8696;}[_0x365920(0x11e)](_0x56c056,_0x58727d,_0x321e8a){const _0x427e7b=_0x365920;_0x321e8a?this[_0x427e7b(0x136)]=!0x0:this[_0x427e7b(0x136)]&&this[_0x427e7b(0x15b)][_0x427e7b(0x15d)]();}[_0x365920(0x14f)](_0x4c621f,_0x5b985a){const _0x107cad=_0x365920;this[_0x107cad(0x117)][_0x107cad(0x14f)](_0x4c621f,_0x5b985a);}[_0x365920(0x119)](_0x199dc3){const _0xdd1071=_0x365920;this[_0xdd1071(0x117)][_0xdd1071(0x119)](_0x199dc3);}[_0x365920(0x12d)](_0x4ed861,_0x4e35f8){const _0x2922ca=_0x365920;this[_0x2922ca(0x117)][_0x2922ca(0x12d)](_0x4ed861,_0x4e35f8);}[_0x365920(0x11f)](_0x26ed5b){const _0x305809=_0x365920;this[_0x305809(0x15b)][_0x305809(0x11f)](_0x26ed5b);}[_0x365920(0x142)](_0x326c71){const _0x562188=_0x365920;this[_0x562188(0x117)][_0x562188(0x142)](_0x326c71);}[_0x365920(0x144)](){const _0x3b55fa=_0x365920;this[_0x3b55fa(0x117)][_0x3b55fa(0x157)]();}[_0x365920(0x164)](){const _0x584287=_0x365920;this[_0x584287(0x117)][_0x584287(0x165)]();}[_0x365920(0x15e)](_0x4f0281,_0x43e336,_0x1ab4bc){const _0x26d2b3=_0x365920;this[_0x26d2b3(0x117)][_0x26d2b3(0x15e)](_0x4f0281,_0x43e336,_0x1ab4bc);}[_0x365920(0x11a)](_0x11eccd){const _0x540251=_0x365920;this[_0x540251(0x162)][_0x540251(0x11a)](_0x11eccd);}[_0x365920(0x12a)](_0x2cf871){const _0x4bfb55=_0x365920;this[_0x4bfb55(0x162)][_0x4bfb55(0x12a)](_0x2cf871);}[_0x365920(0x12c)](){const _0x30c34e=_0x365920;this[_0x30c34e(0x15b)][_0x30c34e(0x14a)]();}[_0x365920(0x14d)](_0x3362a4){const _0x20a990=_0x365920;this[_0x20a990(0x117)][_0x20a990(0x14d)](_0x3362a4);}[_0x365920(0x125)](_0x1f9d61){const _0x224f65=_0x365920;this[_0x224f65(0x15b)][_0x224f65(0x138)](_0x1f9d61);}[_0x365920(0x155)](_0x33513e,_0x2641f1){const _0x4e6eb7=_0x365920;this[_0x4e6eb7(0x162)][_0x4e6eb7(0x155)](_0x33513e,_0x2641f1);}[_0x365920(0x14b)](_0xfe9f79){const _0x3fedf8=_0x365920;_0xfe9f79?(this[_0x3fedf8(0x15c)]=!0x0,this[_0x3fedf8(0x162)][_0x3fedf8(0x14b)](_0xfe9f79)):this[_0x3fedf8(0x15c)]=!0x1;}[_0x365920(0x121)](){const _0x5e11d5=_0x365920;this[_0x5e11d5(0x162)][_0x5e11d5(0x121)]();}[_0x365920(0x12f)](_0x547bb7){const _0x96447d=_0x365920;this[_0x96447d(0x162)][_0x96447d(0x12f)](_0x547bb7);}[_0x365920(0x11d)](_0x1978c7,_0x2bdabe,_0x4220ca,_0x5cfbbe){const _0x6e4629=_0x365920;this[_0x6e4629(0x117)][_0x6e4629(0x11d)](_0x1978c7,_0x2bdabe,_0x4220ca,_0x5cfbbe);}[_0x365920(0x141)](_0x1ee73a){const _0x49da23=_0x365920;this[_0x49da23(0x117)][_0x49da23(0x141)](_0x1ee73a);}[_0x365920(0x130)](_0x1c336b=!0x1){const _0x22add4=_0x365920;this[_0x22add4(0x15b)][_0x22add4(0x15d)](_0x1c336b);}[_0x365920(0x140)](_0x258299){const _0x5469cc=_0x365920;this[_0x5469cc(0x15b)][_0x5469cc(0x13f)][_0x5469cc(0x14e)][_0x5469cc(0x14a)](),this[_0x5469cc(0x15b)][_0x5469cc(0x13f)][_0x5469cc(0x14e)][_0x5469cc(0x11b)]=_0x258299;}}class As extends _0x468f69{constructor(_0x557f7e){const _0x2fd30a=_0x365920;super(_0x557f7e);const _0x32d3d2=new _0x10c002(_0x557f7e);_0x32d3d2[_0x2fd30a(0x15f)]({'label':_0x5e306f(this[_0x2fd30a(0x160)],_0x2fd30a(0x145)),'withText':!0x0,'class':[_0x2fd30a(0x118)],'tooltip':''}),_0x32d3d2[_0x2fd30a(0x166)](_0x2fd30a(0x150))['to'](this,_0x2fd30a(0x158)),this[_0x2fd30a(0x147)]({'tag':_0x2fd30a(0x168),'attributes':{'class':['ck',_0x2fd30a(0x137)]},'children':[{'tag':'p','children':[{'text':_0x5e306f(this[_0x2fd30a(0x160)],_0x2fd30a(0x163))+'\x20'},_0x32d3d2]}]});}}
23
+ const _0x3b0ff1=_0x1ee2;(function(_0x4d83f0,_0x40a4e8){const _0x5d2e64=_0x1ee2,_0x5624c2=_0x4d83f0();while(!![]){try{const _0x3fc90c=parseInt(_0x5d2e64(0x9d))/0x1*(-parseInt(_0x5d2e64(0x92))/0x2)+parseInt(_0x5d2e64(0x79))/0x3+parseInt(_0x5d2e64(0xa0))/0x4+parseInt(_0x5d2e64(0x9f))/0x5+-parseInt(_0x5d2e64(0x98))/0x6+-parseInt(_0x5d2e64(0x96))/0x7+parseInt(_0x5d2e64(0xa3))/0x8*(-parseInt(_0x5d2e64(0xae))/0x9);if(_0x3fc90c===_0x40a4e8)break;else _0x5624c2['push'](_0x5624c2['shift']());}catch(_0x267100){_0x5624c2['push'](_0x5624c2['shift']());}}}(_0x51c2,0x86fb3));import{ButtonView as _0x24dc57,clickOutsideHandler as _0xcc6d6,View as _0x3fb8c4}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x3e6de3}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x38cf39}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x46a47f,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x401610}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x393608}from'./controls/aichatcontrolsloaderview.js';import{getTranslation as _0x42be37}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 _0x51c2(){const _0x55579e=['setPromptInputValue','setContextItemLoading','updateResourceState','_loaderView','_promptCapabilitiesView','removeContextItem','_contextPanelView','_promptInputView','setWebSearch','ck-ai-chat-controls__start-new-chat-button','delegate','setConversationContext','startConversation','low','addContextButtonView','60844bhnkVg','isDisabled','toggleReasoning','bindTemplate','3359986ucFVaw','set','1013856keokig','_shouldRestorePromptInputFocus','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','value','fieldView','10YqHmeQ','div','4358065NHWHqZ','3216168ltinBb','focusPromptInput','_createLoaderView','9605184KKauMJ','setTemplate','_createPromptCapabilitiesView','change:isLoading','_modelUnavailableMessageView','setAddContextOptions','sendUserMessage','ck-hidden','abortPromptStream','setPlaceholderText','contextResourcesSearchInputVisibleFrom','9axDRMV','_createContextPanelView','addContextItem','clearConversationContextItems','execute','queryView','setIsUploadInProgress','ck-ai-chat-controls','isLoading','resetMessageInput','clearConversationContextUI','locale','enableModelSelector','clearCurrentContextItems','setModel','element','isModelAvailable','focus','setReasoning','closeSourceResourceBalloon','form','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','disableModelSelector','ck-ai-chat-controls-model-unavailable-message','reset','toggleWebSearch','selectModel','3093210jAFilt','bodyCollection','ck-ai-chat-controls-disabled','setModelList','_handlePromptInputFocus','_createModelUnavailableMessageView','_createPromptInputView','populateSourceResourceBalloon','setInputPlaceholder','clearPendingContextUI'];_0x51c2=function(){return _0x55579e;};return _0x51c2();}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';function _0x1ee2(_0x460d84,_0x233f50){const _0x51c24a=_0x51c2();return _0x1ee2=function(_0x1ee272,_0x29ebbc){_0x1ee272=_0x1ee272-0x65;let _0x38ac32=_0x51c24a[_0x1ee272];return _0x38ac32;},_0x1ee2(_0x460d84,_0x233f50);}import'../../../theme/aichat/aichat-controls/aichat-context-controls-balloon-panels.css';export class AIChatControlsView extends _0x3fb8c4{[_0x3b0ff1(0x89)];[_0x3b0ff1(0x8a)];[_0x3b0ff1(0x87)];[_0x3b0ff1(0x86)];[_0x3b0ff1(0xa7)];[_0x3b0ff1(0x99)];constructor(_0x559f06,_0x16b422){const _0x5cab34=_0x3b0ff1;super(_0x559f06),this[_0x5cab34(0x89)]=this[_0x5cab34(0xaf)](_0x559f06,{'bodyCollection':_0x16b422[_0x5cab34(0x7a)],'searchInputVisibleFrom':_0x16b422[_0x5cab34(0xad)]}),this[_0x5cab34(0x8a)]=this[_0x5cab34(0x7f)](_0x559f06),this[_0x5cab34(0x87)]=this[_0x5cab34(0xa5)](_0x559f06),this[_0x5cab34(0x86)]=this[_0x5cab34(0xa2)](_0x559f06),this[_0x5cab34(0xa7)]=this[_0x5cab34(0x7e)](_0x559f06),this[_0x5cab34(0x99)]=!0x1,this[_0x5cab34(0x8a)][_0x5cab34(0x8d)](_0x5cab34(0xa9))['to'](this),this[_0x5cab34(0x86)][_0x5cab34(0x8d)](_0x5cab34(0xab))['to'](this),this[_0x5cab34(0x87)][_0x5cab34(0x8d)](_0x5cab34(0x77))['to'](this),this[_0x5cab34(0x87)][_0x5cab34(0x8d)](_0x5cab34(0x94))['to'](this),this[_0x5cab34(0x87)][_0x5cab34(0x8d)](_0x5cab34(0x78))['to'](this),this[_0x5cab34(0x89)][_0x5cab34(0x8d)](..._0x401610)['to'](this),this[_0x5cab34(0x97)](_0x5cab34(0x6e),!0x0),this[_0x5cab34(0x97)](_0x5cab34(0x93),!0x1);const _0x595573=this[_0x5cab34(0x95)];this[_0x5cab34(0xa4)]({'tag':_0x5cab34(0x72),'attributes':{'class':['ck',_0x5cab34(0x65),_0x595573['if'](_0x5cab34(0x93),_0x5cab34(0x7b))]},'children':[{'tag':_0x5cab34(0x9e),'attributes':{'class':[_0x595573['if'](_0x5cab34(0x66),_0x5cab34(0xaa),_0x27a56c=>_0x27a56c||!this[_0x5cab34(0x6e)]),_0x595573['if'](_0x5cab34(0x6e),_0x5cab34(0xaa),_0x210826=>!_0x210826||this[_0x5cab34(0x66)])]},'children':[this[_0x5cab34(0x89)],this[_0x5cab34(0x8a)],this[_0x5cab34(0x87)]]},{'tag':_0x5cab34(0x9e),'attributes':{'class':[_0x595573['if'](_0x5cab34(0x66),_0x5cab34(0xaa),_0x143147=>!_0x143147)]},'children':[this[_0x5cab34(0x86)]]},{'tag':_0x5cab34(0x9e),'attributes':{'class':[_0x595573['if'](_0x5cab34(0x6e),_0x5cab34(0xaa),_0x54c604=>_0x54c604)]},'children':[this[_0x5cab34(0xa7)]]}]}),_0xcc6d6({'emitter':this[_0x5cab34(0x8a)],'activator':()=>this[_0x5cab34(0x66)],'contextElements':()=>[this[_0x5cab34(0x6d)]],'callback':()=>{const _0x52fd29=_0x5cab34;this[_0x52fd29(0x99)]=!0x1;}}),this['on'](_0x5cab34(0xa6),this[_0x5cab34(0x7d)],{'priority':_0x5cab34(0x90)});}[_0x3b0ff1(0xaf)](_0x209cce,_0x4510d4){return new _0x46a47f(_0x209cce,_0x4510d4);}[_0x3b0ff1(0x7f)](_0xff3baa){const _0x332d9f=_0x3b0ff1;return new _0x3e6de3(_0xff3baa,this[_0x332d9f(0x89)][_0x332d9f(0x91)]);}[_0x3b0ff1(0xa5)](_0x44c06b){return new _0x38cf39(_0x44c06b);}[_0x3b0ff1(0xa2)](_0x20a532){return new _0x393608(_0x20a532);}[_0x3b0ff1(0x7e)](_0x3e6f76){const _0x407175=_0x3b0ff1,_0x2da5e7=new As(_0x3e6f76);return _0x2da5e7[_0x407175(0x8d)](_0x407175(0x8f))['to'](this),_0x2da5e7;}[_0x3b0ff1(0x7d)](_0x3166ca,_0x2f9029,_0x4b85f7){const _0x2a9ba2=_0x3b0ff1;_0x4b85f7?this[_0x2a9ba2(0x99)]=!0x0:this[_0x2a9ba2(0x99)]&&this[_0x2a9ba2(0x8a)][_0x2a9ba2(0x6f)]();}[_0x3b0ff1(0xb0)](_0x179d18,_0x48fd1c){const _0x14e462=_0x3b0ff1;this[_0x14e462(0x89)][_0x14e462(0xb0)](_0x179d18,_0x48fd1c);}[_0x3b0ff1(0x88)](_0xec147c){const _0x26c8b7=_0x3b0ff1;this[_0x26c8b7(0x89)][_0x26c8b7(0x88)](_0xec147c);}[_0x3b0ff1(0x84)](_0x40bb8e,_0x3916e0){const _0x522dda=_0x3b0ff1;this[_0x522dda(0x89)][_0x522dda(0x84)](_0x40bb8e,_0x3916e0);}[_0x3b0ff1(0xb4)](_0x32f0fb){const _0x15c32b=_0x3b0ff1;this[_0x15c32b(0x8a)][_0x15c32b(0xb4)](_0x32f0fb);}[_0x3b0ff1(0x8e)](_0x40a867){const _0x4cc7df=_0x3b0ff1;this[_0x4cc7df(0x89)][_0x4cc7df(0x8e)](_0x40a867);}[_0x3b0ff1(0x82)](){const _0x19321a=_0x3b0ff1;this[_0x19321a(0x89)][_0x19321a(0x6b)]();}[_0x3b0ff1(0x68)](){const _0x4f3f6d=_0x3b0ff1;this[_0x4f3f6d(0x89)][_0x4f3f6d(0xb1)]();}[_0x3b0ff1(0x85)](_0x1a4b43,_0x427420,_0x292190){const _0x44f44a=_0x3b0ff1;this[_0x44f44a(0x89)][_0x44f44a(0x85)](_0x1a4b43,_0x427420,_0x292190);}[_0x3b0ff1(0x8b)](_0x583a41){const _0x1ae95f=_0x3b0ff1;this[_0x1ae95f(0x87)][_0x1ae95f(0x8b)](_0x583a41);}[_0x3b0ff1(0x70)](_0x3d010f){const _0x28e65c=_0x3b0ff1;this[_0x28e65c(0x87)][_0x28e65c(0x70)](_0x3d010f);}[_0x3b0ff1(0x67)](){const _0x89f3bd=_0x3b0ff1;this[_0x89f3bd(0x8a)][_0x89f3bd(0x76)]();}[_0x3b0ff1(0xa8)](_0x3cf1fc){const _0x2a41df=_0x3b0ff1;this[_0x2a41df(0x89)][_0x2a41df(0xa8)](_0x3cf1fc);}[_0x3b0ff1(0x81)](_0x1a5d21){const _0x3afc49=_0x3b0ff1;this[_0x3afc49(0x8a)][_0x3afc49(0xac)](_0x1a5d21);}[_0x3b0ff1(0x7c)](_0x41def9,_0x4597cf){const _0x30d638=_0x3b0ff1;this[_0x30d638(0x87)][_0x30d638(0x7c)](_0x41def9,_0x4597cf);}[_0x3b0ff1(0x6c)](_0x46d9cc){const _0x31d91a=_0x3b0ff1;_0x46d9cc?(this[_0x31d91a(0x6e)]=!0x0,this[_0x31d91a(0x87)][_0x31d91a(0x6c)](_0x46d9cc)):this[_0x31d91a(0x6e)]=!0x1;}[_0x3b0ff1(0x6a)](){const _0x5ab637=_0x3b0ff1;this[_0x5ab637(0x87)][_0x5ab637(0x6a)]();}[_0x3b0ff1(0x74)](_0x5b250d){const _0x56b964=_0x3b0ff1;this[_0x56b964(0x87)][_0x56b964(0x74)](_0x5b250d);}[_0x3b0ff1(0x80)](_0x23ef3e,_0x254428,_0x38be2d,_0x38fc49){const _0x318534=_0x3b0ff1;this[_0x318534(0x89)][_0x318534(0x80)](_0x23ef3e,_0x254428,_0x38be2d,_0x38fc49);}[_0x3b0ff1(0x71)](_0x3a83cf){const _0x22bbc4=_0x3b0ff1;this[_0x22bbc4(0x89)][_0x22bbc4(0x71)](_0x3a83cf);}[_0x3b0ff1(0xa1)](_0x7e3766=!0x1){const _0xfb266=_0x3b0ff1;this[_0xfb266(0x8a)][_0xfb266(0x6f)](_0x7e3766);}[_0x3b0ff1(0x83)](_0x22b1e8){const _0xe28511=_0x3b0ff1;this[_0xe28511(0x8a)][_0xe28511(0xb3)][_0xe28511(0x9c)][_0xe28511(0x76)](),this[_0xe28511(0x8a)][_0xe28511(0xb3)][_0xe28511(0x9c)][_0xe28511(0x9b)]=_0x22b1e8;}}class As extends _0x3fb8c4{constructor(_0x3d842e){const _0x1202ee=_0x3b0ff1;super(_0x3d842e);const _0x258444=new _0x24dc57(_0x3d842e);_0x258444[_0x1202ee(0x97)]({'label':_0x42be37(this[_0x1202ee(0x69)],_0x1202ee(0x73)),'withText':!0x0,'class':[_0x1202ee(0x8c)],'tooltip':''}),_0x258444[_0x1202ee(0x8d)](_0x1202ee(0xb2))['to'](this,_0x1202ee(0x8f)),this[_0x1202ee(0xa4)]({'tag':_0x1202ee(0x9e),'attributes':{'class':['ck',_0x1202ee(0x75)]},'children':[{'tag':'p','children':[{'text':_0x42be37(this[_0x1202ee(0x69)],_0x1202ee(0x9a))+'\x20'},_0x258444]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xe0568=_0x5e13;(function(_0x294e56,_0x46c00e){const _0x24b523=_0x5e13,_0x263bd7=_0x294e56();while(!![]){try{const _0x522485=parseInt(_0x24b523(0x113))/0x1*(-parseInt(_0x24b523(0xf4))/0x2)+parseInt(_0x24b523(0xdd))/0x3+parseInt(_0x24b523(0xf3))/0x4*(-parseInt(_0x24b523(0xf8))/0x5)+parseInt(_0x24b523(0x11a))/0x6*(parseInt(_0x24b523(0xfe))/0x7)+-parseInt(_0x24b523(0x133))/0x8*(parseInt(_0x24b523(0x12f))/0x9)+parseInt(_0x24b523(0x127))/0xa+parseInt(_0x24b523(0x109))/0xb*(-parseInt(_0x24b523(0xef))/0xc);if(_0x522485===_0x46c00e)break;else _0x263bd7['push'](_0x263bd7['shift']());}catch(_0x5ae6a1){_0x263bd7['push'](_0x263bd7['shift']());}}}(_0xd224,0xc5b30));import{CKEditorError as _0x21d445,logWarning as _0x31c3e3,scrollAncestorsToShowTarget as _0x5c2faf}from'ckeditor5/src/utils.js';import{View as _0x35e291}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x4b44af}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x399adc}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x8d2948}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x56674c}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x3cbdd5}from'./feed/aichatfeederroritemview.js';function _0xd224(){const _0x4fe2e3=['isPending','render','forEach','find','getPartView','ck-ai-chat__feed','isVisible','_bodyCollection','options','markAsDone','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','clear','14679560LdNAgM','bindTemplate','ck-hidden','locale','scrollToSuggestion','toggleLoadingSkeleton','stop','ck-ai-chat__loader-text','9cTUBfc','_setupTemplate','filter','setTemplate','5118256OKngUs','parentElement','isLoadingSkeletonVisible','updateSources','4576488uTturB','loadingMessage','ai-chat-feed-view-item-not-a-suggestion-item','custom-element','set','user-message','updateReplyItem','ai-chat-feed-view-item-not-a-reply-item','setPartActive','getItemIds','includes','span','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','_createLoaderChildren','aiFeed','removeItem','startAutoScroll','_createFeedItems','228RgGRmn','markItemAsDone','_createTemplateChildren','ck-ai-chat__feed__items','4536652FvGpki','75982mcMCCZ','scrollManager','element','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','5nufYwU','updateSuggestionPartState','updateContent','div','ai-suggestion-reply','getItemById','7244713PfZpqw','bind','ck-ai-chat__loader','delegate','extendTemplate','map','_createFeedLoader','updateSuggestionItem','updateWebSources','_createSkeletonLoader','interaction-header','154561brGagC','add','remove','stopAutoScroll','setLoadingMessage','hasItem','addItem','destroy','ai-reply','createCollection','31GgGBVS','children','updatePartState','setSuggestionPartActive','isTrackChangesOn','ai-chat-feed-view-item-not-found','start','6lnlQtV'];_0xd224=function(){return _0x4fe2e3;};return _0xd224();}import{AIChatFeedInteractionHeaderView as _0x37b782}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x35fdc0}from'../../aicore/utils/scrollmanager.js';import{AISkeletonView as _0x368ca1,SKELETON_DEFINITIONS as _0x3b830d}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x5b89a6}from'../../aicore/ui/aispinner.js';import{AIChatFeedCustomElementView as _0x44be86}from'./feed/aichatfeedcustomelementview.js';import'../../../theme/aichat/aichatfeed.css';function _0x5e13(_0xb7faa0,_0x2dbc93){const _0xd224db=_0xd224();return _0x5e13=function(_0x5e13ab,_0x3a307d){_0x5e13ab=_0x5e13ab-0xdc;let _0x3b95bc=_0xd224db[_0x5e13ab];return _0x3b95bc;},_0x5e13(_0xb7faa0,_0x2dbc93);}export class AIChatFeedView extends _0x35e291{[_0xe0568(0x114)];[_0xe0568(0xf5)];[_0xe0568(0x122)];constructor(_0x6aa54b,_0x4a8a5d){const _0xcee528=_0xe0568;super(_0x6aa54b),this[_0xcee528(0x122)]=_0x4a8a5d,this[_0xcee528(0xe1)](_0xcee528(0x11b),!0x1),this[_0xcee528(0xe1)](_0xcee528(0xde),''),this[_0xcee528(0xe1)](_0xcee528(0x135),!0x1),this[_0xcee528(0xe1)](_0xcee528(0x117),!0x1),this[_0xcee528(0x114)]=this[_0xcee528(0x112)](),this[_0xcee528(0x114)][_0xcee528(0x101)](..._0x4b44af)['to'](this),this[_0xcee528(0x130)]();}[_0xe0568(0x11c)](){const _0x5c3f04=_0xe0568;super[_0x5c3f04(0x11c)](),this[_0x5c3f04(0xf5)]=new _0x35fdc0(this[_0x5c3f04(0xf6)]);}[_0xe0568(0x110)](){const _0x54d7c4=_0xe0568;super[_0x54d7c4(0x110)](),this[_0x54d7c4(0xf5)][_0x54d7c4(0x110)]();}[_0xe0568(0x126)](){const _0x415b8c=_0xe0568;this[_0x415b8c(0x114)][_0x415b8c(0x126)]();}[_0xe0568(0x10f)](_0xb653a0,_0x5a3280){const _0x5cb7ed=_0xe0568;let _0x51df14;return _0x5cb7ed(0x111)===_0xb653a0?_0x51df14=new _0x8d2948(this[_0x5cb7ed(0x12a)],_0x5a3280,this[_0x5cb7ed(0x122)]):_0x5cb7ed(0xfc)===_0xb653a0?(_0x51df14=new _0x399adc(this[_0x5cb7ed(0x12a)],_0x5a3280,this[_0x5cb7ed(0x122)]),_0x51df14[_0x5cb7ed(0xff)](_0x5cb7ed(0x117))['to'](this)):_0x51df14=_0x5cb7ed(0xe2)===_0xb653a0?new _0x56674c(this[_0x5cb7ed(0x12a)],_0x5a3280,this[_0x5cb7ed(0x122)]):_0x5cb7ed(0x108)===_0xb653a0?new _0x37b782(this[_0x5cb7ed(0x12a)],_0x5a3280):_0x5cb7ed(0xe0)===_0xb653a0?new _0x44be86(_0x5a3280):new _0x3cbdd5(_0x5a3280),this[_0x5cb7ed(0x114)][_0x5cb7ed(0x10a)](_0x51df14),_0x51df14;}async[_0xe0568(0xe3)]({id:_0x45e311,parsedContent:_0x5d6940,renderingStrategy:_0x12b5f4,abortSignal:_0x5edb21}){const _0xa86c9c=_0xe0568,_0x6a02d4=this[_0xa86c9c(0xfd)](_0x45e311);if(!(_0x6a02d4 instanceof _0x8d2948))throw new _0x21d445(_0xa86c9c(0xe4),null,{'itemView':_0x6a02d4,'id':_0x45e311,'parsedContent':_0x5d6940});await _0x6a02d4[_0xa86c9c(0xfa)]({'parsedContent':_0x5d6940,'renderingStrategy':_0x12b5f4,'abortSignal':_0x5edb21});}async[_0xe0568(0x106)](_0x1d5282,_0x1308d6){const _0x3db465=_0xe0568,_0x76ec32=this[_0x3db465(0xfd)](_0x1d5282);if(_0x76ec32 instanceof _0x399adc)_0x76ec32[_0x3db465(0xdc)](_0x1308d6);else{if(!(_0x76ec32 instanceof _0x8d2948))throw new _0x21d445(_0x3db465(0x125),null,{'itemView':_0x76ec32,'id':_0x1d5282,'sources':_0x1308d6});_0x76ec32[_0x3db465(0xdc)](_0x1308d6);}}async[_0xe0568(0x105)]({id:_0x50aeb7,parts:_0x21e9d0,renderingStrategy:_0x24bc8f,abortSignal:_0xab02a4}){const _0x1a2af9=_0xe0568,_0x25e4ed=this[_0x1a2af9(0xfd)](_0x50aeb7);if(!(_0x25e4ed instanceof _0x399adc))throw new _0x21d445(_0x1a2af9(0xdf),null,{'itemView':_0x25e4ed,'id':_0x50aeb7,'parts':_0x21e9d0});await _0x25e4ed[_0x1a2af9(0xfa)]({'parts':_0x21e9d0,'renderingStrategy':_0x24bc8f,'abortSignal':_0xab02a4});}[_0xe0568(0xf9)]({id:_0x2f75fb,index:_0x3c6281,state:_0x16eb25}){const _0x2e8836=_0xe0568,_0x25109c=this[_0x2e8836(0xfd)](_0x2f75fb);if(!(_0x25109c instanceof _0x399adc))throw new _0x21d445(_0x2e8836(0xdf),this,{'id':_0x2f75fb});_0x25109c[_0x2e8836(0x115)](_0x3c6281,_0x16eb25);}[_0xe0568(0x116)]({id:_0x229819,index:_0x16a6ad,isActive:_0x1e7d25}){const _0x4732bd=_0xe0568,_0x3c8cdc=this[_0x4732bd(0xfd)](_0x229819);if(!(_0x3c8cdc instanceof _0x399adc))throw new _0x21d445(_0x4732bd(0xdf),this,{'id':_0x229819});this[_0x4732bd(0x114)][_0x4732bd(0x131)](_0x354150=>_0x354150 instanceof _0x399adc)[_0x4732bd(0x11d)](_0x18a189=>{const _0x37d808=_0x4732bd;_0x18a189[_0x37d808(0xe5)](!0x1);}),_0x3c8cdc[_0x4732bd(0xe5)](_0x16a6ad,_0x1e7d25);}[_0xe0568(0xf0)](_0x1300a9){const _0x3a6c9a=_0xe0568;this[_0x3a6c9a(0xfd)](_0x1300a9)[_0x3a6c9a(0x124)]();}[_0xe0568(0xe6)](){const _0x29bc37=_0xe0568;return this[_0x29bc37(0x114)][_0x29bc37(0x103)](_0xb853d4=>_0xb853d4[_0x29bc37(0x123)]['id']);}[_0xe0568(0xec)](_0x3f4398){const _0x5ae4ad=_0xe0568;this[_0x5ae4ad(0x114)][_0x5ae4ad(0x10b)](this[_0x5ae4ad(0xfd)](_0x3f4398));}[_0xe0568(0x10e)](_0x592909){const _0x127239=_0xe0568;return!!this[_0x127239(0x114)][_0x127239(0x11e)](_0x46ab4f=>_0x46ab4f[_0x127239(0x123)]['id'][_0x127239(0xe7)](_0x592909));}[_0xe0568(0x12b)](_0x33b600,_0x4bb4bb){const _0x10cbb1=_0xe0568,_0x2964fd=this[_0x10cbb1(0xfd)](_0x33b600);if(!(_0x2964fd instanceof _0x399adc))return void _0x31c3e3(_0x10cbb1(0xf7),{'replyId':_0x33b600,'partIndex':_0x4bb4bb});const _0x54bd05=_0x2964fd[_0x10cbb1(0x11f)](_0x4bb4bb);_0x54bd05?_0x5c2faf(_0x54bd05[_0x10cbb1(0xf6)],0x14,this[_0x10cbb1(0xf6)][_0x10cbb1(0x134)],!0x0,!0x0):_0x31c3e3(_0x10cbb1(0xe9),{'replyId':_0x33b600,'partIndex':_0x4bb4bb});}[_0xe0568(0x130)](){const _0x190c2d=_0xe0568;this[_0x190c2d(0x132)]({'tag':_0x190c2d(0xfb),'attributes':{'class':['ck',_0x190c2d(0x120)]},'children':this[_0x190c2d(0xf1)]()});}[_0xe0568(0xf1)](){const _0x310324=_0xe0568,_0x75eefc=this[_0x310324(0x107)]();return[this[_0x310324(0xee)](),_0x75eefc,this[_0x310324(0x104)]()];}[_0xe0568(0x107)](){const _0x172d05=_0xe0568,_0x35d772=new _0x368ca1(this[_0x172d05(0x12a)],_0x3b830d[_0x172d05(0xeb)]);return _0x35d772[_0x172d05(0x102)]({'attributes':{'class':[this[_0x172d05(0x128)]['if'](_0x172d05(0x135),_0x172d05(0x129),_0x468bcc=>!_0x468bcc)]}}),_0x35d772;}[_0xe0568(0xee)](){const _0x990ef1=_0xe0568,_0x3b111f=new _0x35e291(this[_0x990ef1(0x12a)]);return _0x3b111f[_0x990ef1(0x132)]({'tag':_0x990ef1(0xfb),'attributes':{'class':['ck',_0x990ef1(0xf2),this[_0x990ef1(0x128)]['if'](_0x990ef1(0x135),_0x990ef1(0x129))]},'children':this[_0x990ef1(0x114)]}),_0x3b111f;}[_0xe0568(0x104)](){const _0x3b9230=_0xe0568,_0x35e701=new _0x35e291(this[_0x3b9230(0x12a)]);return _0x35e701[_0x3b9230(0x132)]({'tag':_0x3b9230(0xfb),'attributes':{'class':['ck',_0x3b9230(0x100),this[_0x3b9230(0x128)]['if'](_0x3b9230(0x11b),_0x3b9230(0x129),_0xd9b0c8=>!_0xd9b0c8)]},'children':this[_0x3b9230(0xea)]()}),_0x35e701;}[_0xe0568(0xea)](){const _0xe2fe6d=_0xe0568,_0x4db071=new _0x5b89a6();return _0x4db071[_0xe2fe6d(0x121)]=!0x0,[_0x4db071,{'tag':_0xe2fe6d(0xe8),'attributes':{'class':['ck',_0xe2fe6d(0x12e)]},'children':[{'text':this[_0xe2fe6d(0x128)]['to'](_0xe2fe6d(0xde))}]}];}[_0xe0568(0xfd)](_0x37de3e){const _0x199846=_0xe0568,_0x44401c=this[_0x199846(0x114)][_0x199846(0x11e)](_0x5557d8=>_0x5557d8[_0x199846(0x123)]['id'][_0x199846(0xe7)](_0x37de3e));if(!_0x44401c)throw new _0x21d445(_0x199846(0x118),this,{'id':_0x37de3e});return _0x44401c;}[_0xe0568(0x10d)](_0x5af7ee){const _0x467a44=_0xe0568;this[_0x467a44(0xe1)](_0x467a44(0xde),_0x5af7ee);}[_0xe0568(0x12c)](_0x1d3a27){const _0x1d4f4a=_0xe0568;this[_0x1d4f4a(0xe1)](_0x1d4f4a(0x135),_0x1d3a27);}[_0xe0568(0xed)](){const _0x523088=_0xe0568;this[_0x523088(0xf5)][_0x523088(0x119)]();}[_0xe0568(0x10c)](){const _0x573280=_0xe0568;this[_0x573280(0xf5)][_0x573280(0x12d)]();}}
23
+ const _0x153c02=_0x5706;(function(_0x14277a,_0x8e6b20){const _0x22e7b9=_0x5706,_0x11b208=_0x14277a();while(!![]){try{const _0x1936d3=-parseInt(_0x22e7b9(0x203))/0x1*(-parseInt(_0x22e7b9(0x1fa))/0x2)+parseInt(_0x22e7b9(0x1da))/0x3*(parseInt(_0x22e7b9(0x1f6))/0x4)+-parseInt(_0x22e7b9(0x1cd))/0x5*(parseInt(_0x22e7b9(0x1ed))/0x6)+parseInt(_0x22e7b9(0x205))/0x7*(-parseInt(_0x22e7b9(0x204))/0x8)+parseInt(_0x22e7b9(0x1cb))/0x9*(-parseInt(_0x22e7b9(0x213))/0xa)+parseInt(_0x22e7b9(0x1e8))/0xb+-parseInt(_0x22e7b9(0x1e0))/0xc;if(_0x1936d3===_0x8e6b20)break;else _0x11b208['push'](_0x11b208['shift']());}catch(_0x40bfbd){_0x11b208['push'](_0x11b208['shift']());}}}(_0x4868,0xe2020));function _0x5706(_0x13c05c,_0x4ea185){const _0x48687c=_0x4868();return _0x5706=function(_0x5706e3,_0x131e99){_0x5706e3=_0x5706e3-0x1c4;let _0x4cbcf0=_0x48687c[_0x5706e3];return _0x4cbcf0;},_0x5706(_0x13c05c,_0x4ea185);}import{CKEditorError as _0x324a99,logWarning as _0xb780da,scrollAncestorsToShowTarget as _0xd1d823}from'ckeditor5/src/utils.js';import{View as _0x354d30}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x901d20}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x33de81}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x24aec3}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x3af46c}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x4a3934}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x517375}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0xdb090e}from'../../aicore/utils/scrollmanager.js';import{AISkeletonView as _0x2f421d,SKELETON_DEFINITIONS as _0x353b56}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x2b7594}from'../../aicore/ui/aispinner.js';import{AIChatFeedCustomElementView as _0x1205c3}from'./feed/aichatfeedcustomelementview.js';import'../../../theme/aichat/aichatfeed.css';export class AIChatFeedView extends _0x354d30{[_0x153c02(0x217)];[_0x153c02(0x1e7)];[_0x153c02(0x1ef)];constructor(_0x43e1fd,_0x5d0265){const _0x36ca7b=_0x153c02;super(_0x43e1fd),this[_0x36ca7b(0x1ef)]=_0x5d0265,this[_0x36ca7b(0x1d9)](_0x36ca7b(0x1db),!0x1),this[_0x36ca7b(0x1d9)](_0x36ca7b(0x214),''),this[_0x36ca7b(0x1d9)](_0x36ca7b(0x20a),!0x1),this[_0x36ca7b(0x1d9)](_0x36ca7b(0x1dd),!0x1),this[_0x36ca7b(0x217)]=this[_0x36ca7b(0x1fd)](),this[_0x36ca7b(0x217)][_0x36ca7b(0x1f8)](..._0x901d20)['to'](this),this[_0x36ca7b(0x20d)]();}[_0x153c02(0x20f)](){const _0x36f289=_0x153c02;super[_0x36f289(0x20f)](),this[_0x36f289(0x1e7)]=new _0xdb090e(this[_0x36f289(0x1e1)]);}[_0x153c02(0x1df)](){const _0x345b4=_0x153c02;super[_0x345b4(0x1df)](),this[_0x345b4(0x1e7)][_0x345b4(0x1df)]();}[_0x153c02(0x1e6)](){const _0x44f804=_0x153c02;this[_0x44f804(0x217)][_0x44f804(0x1e6)]();}[_0x153c02(0x1ce)](_0x399f1d,_0x415384){const _0x1316b0=_0x153c02;let _0x16cdea;return _0x1316b0(0x1cf)===_0x399f1d?_0x16cdea=new _0x24aec3(this[_0x1316b0(0x1f9)],_0x415384,this[_0x1316b0(0x1ef)]):_0x1316b0(0x201)===_0x399f1d?(_0x16cdea=new _0x33de81(this[_0x1316b0(0x1f9)],_0x415384,this[_0x1316b0(0x1ef)]),_0x16cdea[_0x1316b0(0x1f1)](_0x1316b0(0x1dd))['to'](this)):_0x16cdea=_0x1316b0(0x1f5)===_0x399f1d?new _0x3af46c(this[_0x1316b0(0x1f9)],_0x415384,this[_0x1316b0(0x1ef)]):_0x1316b0(0x1c9)===_0x399f1d?new _0x517375(this[_0x1316b0(0x1f9)],_0x415384):_0x1316b0(0x1f7)===_0x399f1d?new _0x1205c3(_0x415384):new _0x4a3934(_0x415384),this[_0x1316b0(0x217)][_0x1316b0(0x219)](_0x16cdea),_0x16cdea;}async[_0x153c02(0x1d1)]({id:_0x2b2f2c,parsedContent:_0x400152,renderingStrategy:_0x5dac26,abortSignal:_0x24f225}){const _0x41d40b=_0x153c02,_0x344061=this[_0x41d40b(0x1ee)](_0x2b2f2c);if(!(_0x344061 instanceof _0x24aec3))throw new _0x324a99(_0x41d40b(0x1d8),null,{'itemView':_0x344061,'id':_0x2b2f2c,'parsedContent':_0x400152});await _0x344061[_0x41d40b(0x20c)]({'parsedContent':_0x400152,'renderingStrategy':_0x5dac26,'abortSignal':_0x24f225});}async[_0x153c02(0x1e3)](_0x56b8a1,_0x47cbdc){const _0xd2e569=_0x153c02,_0x479550=this[_0xd2e569(0x1ee)](_0x56b8a1);if(_0x479550 instanceof _0x33de81)_0x479550[_0xd2e569(0x207)](_0x47cbdc);else{if(!(_0x479550 instanceof _0x24aec3))throw new _0x324a99(_0xd2e569(0x21d),null,{'itemView':_0x479550,'id':_0x56b8a1,'sources':_0x47cbdc});_0x479550[_0xd2e569(0x207)](_0x47cbdc);}}async[_0x153c02(0x1c5)]({id:_0x470093,parts:_0x19aaaa,renderingStrategy:_0x6bf908,abortSignal:_0x2e4eea}){const _0x6aa62f=_0x153c02,_0x1b9269=this[_0x6aa62f(0x1ee)](_0x470093);if(!(_0x1b9269 instanceof _0x33de81))throw new _0x324a99(_0x6aa62f(0x1c8),null,{'itemView':_0x1b9269,'id':_0x470093,'parts':_0x19aaaa});await _0x1b9269[_0x6aa62f(0x20c)]({'parts':_0x19aaaa,'renderingStrategy':_0x6bf908,'abortSignal':_0x2e4eea});}[_0x153c02(0x1f4)]({id:_0x1ba398,index:_0x5393c5,state:_0x51a01a}){const _0x15eae6=_0x153c02,_0x15553b=this[_0x15eae6(0x1ee)](_0x1ba398);if(!(_0x15553b instanceof _0x33de81))throw new _0x324a99(_0x15eae6(0x1c8),this,{'id':_0x1ba398});_0x15553b[_0x15eae6(0x1cc)](_0x5393c5,_0x51a01a);}[_0x153c02(0x20e)]({id:_0x5a2bf8,index:_0x1a4817,isActive:_0x128d84}){const _0x1f2b5c=_0x153c02,_0x53d24e=this[_0x1f2b5c(0x1ee)](_0x5a2bf8);if(!(_0x53d24e instanceof _0x33de81))throw new _0x324a99(_0x1f2b5c(0x1c8),this,{'id':_0x5a2bf8});this[_0x1f2b5c(0x217)][_0x1f2b5c(0x1d3)](_0x27f4d6=>_0x27f4d6 instanceof _0x33de81)[_0x1f2b5c(0x218)](_0x1d86cd=>{const _0x5a07a8=_0x1f2b5c;_0x1d86cd[_0x5a07a8(0x1ca)](!0x1);}),_0x53d24e[_0x1f2b5c(0x1ca)](_0x1a4817,_0x128d84);}[_0x153c02(0x206)](_0x39dc42){const _0x4f858a=_0x153c02;this[_0x4f858a(0x1ee)](_0x39dc42)[_0x4f858a(0x211)]();}[_0x153c02(0x1d6)](){const _0xb6d177=_0x153c02;return this[_0xb6d177(0x217)][_0xb6d177(0x212)](_0x3d3f0d=>_0x3d3f0d[_0xb6d177(0x20b)]['id']);}[_0x153c02(0x1f3)](_0x5bf633){const _0x103bad=_0x153c02;this[_0x103bad(0x217)][_0x103bad(0x1eb)](this[_0x103bad(0x1ee)](_0x5bf633));}[_0x153c02(0x202)](_0x5e3485){const _0x1f730d=_0x153c02;return!!this[_0x1f730d(0x217)][_0x1f730d(0x1fc)](_0x272cf7=>_0x272cf7[_0x1f730d(0x20b)]['id'][_0x1f730d(0x1dc)](_0x5e3485));}[_0x153c02(0x216)](_0x396ada,_0x5e0e22){const _0x59a258=_0x153c02,_0x1814b2=this[_0x59a258(0x1ee)](_0x396ada);if(!(_0x1814b2 instanceof _0x33de81))return void _0xb780da(_0x59a258(0x200),{'replyId':_0x396ada,'partIndex':_0x5e0e22});const _0x2a3340=_0x1814b2[_0x59a258(0x1d5)](_0x5e0e22);_0x2a3340?_0xd1d823(_0x2a3340[_0x59a258(0x1e1)],0x14,this[_0x59a258(0x1e1)][_0x59a258(0x1c4)],!0x0,!0x0):_0xb780da(_0x59a258(0x1c7),{'replyId':_0x396ada,'partIndex':_0x5e0e22});}[_0x153c02(0x20d)](){const _0x47a6a5=_0x153c02;this[_0x47a6a5(0x1d0)]({'tag':_0x47a6a5(0x215),'attributes':{'class':['ck',_0x47a6a5(0x1d7)]},'children':this[_0x47a6a5(0x21a)]()});}[_0x153c02(0x21a)](){const _0x54888c=_0x153c02,_0x35f2e3=this[_0x54888c(0x209)]();return[this[_0x54888c(0x1d2)](),_0x35f2e3,this[_0x54888c(0x1fb)]()];}[_0x153c02(0x209)](){const _0x3d589b=_0x153c02,_0x10f627=new _0x2f421d(this[_0x3d589b(0x1f9)],_0x353b56[_0x3d589b(0x1ff)]);return _0x10f627[_0x3d589b(0x1e4)]({'attributes':{'class':[this[_0x3d589b(0x210)]['if'](_0x3d589b(0x20a),_0x3d589b(0x1e2),_0xd9d48b=>!_0xd9d48b)]}}),_0x10f627;}[_0x153c02(0x1d2)](){const _0x3dba51=_0x153c02,_0x4bee6d=new _0x354d30(this[_0x3dba51(0x1f9)]);return _0x4bee6d[_0x3dba51(0x1d0)]({'tag':_0x3dba51(0x215),'attributes':{'class':['ck',_0x3dba51(0x1e5),this[_0x3dba51(0x210)]['if'](_0x3dba51(0x20a),_0x3dba51(0x1e2))]},'children':this[_0x3dba51(0x217)]}),_0x4bee6d;}[_0x153c02(0x1fb)](){const _0x5ba17f=_0x153c02,_0x1b416e=new _0x354d30(this[_0x5ba17f(0x1f9)]);return _0x1b416e[_0x5ba17f(0x1d0)]({'tag':_0x5ba17f(0x215),'attributes':{'class':['ck',_0x5ba17f(0x208),this[_0x5ba17f(0x210)]['if'](_0x5ba17f(0x1db),_0x5ba17f(0x1e2),_0x501879=>!_0x501879)]},'children':this[_0x5ba17f(0x1ec)]()}),_0x1b416e;}[_0x153c02(0x1ec)](){const _0x3bc976=_0x153c02,_0x4a68ee=new _0x2b7594();return _0x4a68ee[_0x3bc976(0x1c6)]=!0x0,[_0x4a68ee,{'tag':_0x3bc976(0x1d4),'attributes':{'class':['ck',_0x3bc976(0x1de)]},'children':[{'text':this[_0x3bc976(0x210)]['to'](_0x3bc976(0x214))}]}];}[_0x153c02(0x1ee)](_0x911438){const _0x13ff3b=_0x153c02,_0x3bbbda=this[_0x13ff3b(0x217)][_0x13ff3b(0x1fc)](_0x3f5b5a=>_0x3f5b5a[_0x13ff3b(0x20b)]['id'][_0x13ff3b(0x1dc)](_0x911438));if(!_0x3bbbda)throw new _0x324a99(_0x13ff3b(0x1fe),this,{'id':_0x911438});return _0x3bbbda;}[_0x153c02(0x1ea)](_0x3fad29){const _0x4c1e8a=_0x153c02;this[_0x4c1e8a(0x1d9)](_0x4c1e8a(0x214),_0x3fad29);}[_0x153c02(0x21b)](_0x2f2d90){const _0x482288=_0x153c02;this[_0x482288(0x1d9)](_0x482288(0x20a),_0x2f2d90);}[_0x153c02(0x1f0)](){const _0x2607f2=_0x153c02;this[_0x2607f2(0x1e7)][_0x2607f2(0x1e9)]();}[_0x153c02(0x21c)](){const _0x53f1bd=_0x153c02;this[_0x53f1bd(0x1e7)][_0x53f1bd(0x1f2)]();}}function _0x4868(){const _0x66d77d=['forEach','add','_createTemplateChildren','toggleLoadingSkeleton','stopAutoScroll','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','parentElement','updateSuggestionItem','isVisible','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','ai-chat-feed-view-item-not-a-suggestion-item','interaction-header','setPartActive','9pKCFUu','updatePartState','10kvsGjk','addItem','ai-reply','setTemplate','updateReplyItem','_createFeedItems','filter','span','getPartView','getItemIds','ck-ai-chat__feed','ai-chat-feed-view-item-not-a-reply-item','set','433872ybtmXq','isPending','includes','isTrackChangesOn','ck-ai-chat__loader-text','destroy','20231784FbZMdY','element','ck-hidden','updateWebSources','extendTemplate','ck-ai-chat__feed__items','clear','scrollManager','4987378viIYuw','start','setLoadingMessage','remove','_createLoaderChildren','1593096jgLJtB','getItemById','_bodyCollection','startAutoScroll','bind','stop','removeItem','updateSuggestionPartState','user-message','48EZVqAe','custom-element','delegate','locale','4vYCWti','_createFeedLoader','find','createCollection','ai-chat-feed-view-item-not-found','aiFeed','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','ai-suggestion-reply','hasItem','783013sDouxN','3875048mymlVj','7KKAhJJ','markItemAsDone','updateSources','ck-ai-chat__loader','_createSkeletonLoader','isLoadingSkeletonVisible','options','updateContent','_setupTemplate','setSuggestionPartActive','render','bindTemplate','markAsDone','map','1277890lmLTmC','loadingMessage','div','scrollToSuggestion','children'];_0x4868=function(){return _0x66d77d;};return _0x4868();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3c9d75=_0x46a1;(function(_0x38e45a,_0x47691e){const _0x2cdb09=_0x46a1,_0xd78367=_0x38e45a();while(!![]){try{const _0x17e040=parseInt(_0x2cdb09(0x105))/0x1*(parseInt(_0x2cdb09(0x104))/0x2)+-parseInt(_0x2cdb09(0x10e))/0x3+-parseInt(_0x2cdb09(0x10b))/0x4+parseInt(_0x2cdb09(0x116))/0x5*(parseInt(_0x2cdb09(0x100))/0x6)+-parseInt(_0x2cdb09(0x113))/0x7*(parseInt(_0x2cdb09(0x107))/0x8)+-parseInt(_0x2cdb09(0xfd))/0x9*(-parseInt(_0x2cdb09(0x10f))/0xa)+parseInt(_0x2cdb09(0x10d))/0xb;if(_0x17e040===_0x47691e)break;else _0xd78367['push'](_0xd78367['shift']());}catch(_0x1f2f5f){_0xd78367['push'](_0xd78367['shift']());}}}(_0x2aa8,0xe1756));function _0x2aa8(){const _0x4f639e=['2363284nlREAe','3595230jGbkSG','1230HwAIaH','fire','children','isMaximized','217rlxSUK','add','locale','180IMHUxO','57366pJJLtr','_createStartConversationButton','resizeButton','291738NqNTjj','ck-ai-chat__start-conversation','set','AI_CHAT_LABEL_NEW_CHAT','2289682CSXkfF','1SGxNUh','conversationStartButton','74576TeCAZr','AI_CHAT_HEADING','startConversation','execute','5932980taBQnO','ck-ai-header\x20ck-ai-header_chat'];_0x2aa8=function(){return _0x4f639e;};return _0x2aa8();}import{ButtonView as _0x448433,FormHeaderView as _0x1745ec}from'ckeditor5/src/ui.js';function _0x46a1(_0x63ba5,_0x44e29b){const _0x2aa81a=_0x2aa8();return _0x46a1=function(_0x46a153,_0x4a57ef){_0x46a153=_0x46a153-0xfd;let _0x48cd73=_0x2aa81a[_0x46a153];return _0x48cd73;},_0x46a1(_0x63ba5,_0x44e29b);}import{IconPlus as _0x318c87,IconAIChat as _0x6ff031}from'ckeditor5/src/icons.js';import{getTranslation as _0x7653c9}from'../../aicore/utils/common-translations.js';import{createResizeButton as _0x7c24a5}from'../../aicore/utils/createresizebutton.js';import'../../../theme/common/aiheader.css';export class AIChatHeaderView extends _0x1745ec{[_0x3c9d75(0x106)];[_0x3c9d75(0xff)];constructor(_0x4f185d,_0x300ec6){const _0xd23573=_0x3c9d75;super(_0x4f185d,{'label':_0x7653c9(_0x4f185d,_0xd23573(0x108)),'class':_0xd23573(0x10c),'icon':_0x6ff031}),this[_0xd23573(0x102)](_0xd23573(0x112),!0x1),this[_0xd23573(0x106)]=this[_0xd23573(0xfe)](_0x4f185d),this[_0xd23573(0x111)][_0xd23573(0x114)](this[_0xd23573(0x106)]),_0x300ec6&&(this[_0xd23573(0xff)]=_0x7c24a5(_0x4f185d,this),this[_0xd23573(0x111)][_0xd23573(0x114)](this[_0xd23573(0xff)]));}[_0x3c9d75(0xfe)](_0x3948d7){const _0x2b32f3=_0x3c9d75,_0xd79921=new _0x448433(_0x3948d7);return _0xd79921[_0x2b32f3(0x102)]({'label':_0x7653c9(this[_0x2b32f3(0x115)],_0x2b32f3(0x103)),'withText':!0x0,'icon':_0x318c87,'class':_0x2b32f3(0x101)}),_0xd79921['on'](_0x2b32f3(0x10a),()=>{const _0x143214=_0x2b32f3;this[_0x143214(0x110)](_0x143214(0x109));}),_0xd79921;}}
23
+ const _0x5cd214=_0x3515;function _0x3515(_0x24914c,_0x1a92ee){const _0x576102=_0x5761();return _0x3515=function(_0x3515a9,_0x878f1e){_0x3515a9=_0x3515a9-0xe7;let _0x646045=_0x576102[_0x3515a9];return _0x646045;},_0x3515(_0x24914c,_0x1a92ee);}(function(_0x14b99a,_0x24f0a4){const _0x23801e=_0x3515,_0x5577b7=_0x14b99a();while(!![]){try{const _0x3e6aa7=-parseInt(_0x23801e(0xeb))/0x1+-parseInt(_0x23801e(0xfc))/0x2*(parseInt(_0x23801e(0xf7))/0x3)+parseInt(_0x23801e(0xf1))/0x4+parseInt(_0x23801e(0xe9))/0x5*(-parseInt(_0x23801e(0xfb))/0x6)+-parseInt(_0x23801e(0xef))/0x7+-parseInt(_0x23801e(0xf4))/0x8+-parseInt(_0x23801e(0xfe))/0x9*(-parseInt(_0x23801e(0xf3))/0xa);if(_0x3e6aa7===_0x24f0a4)break;else _0x5577b7['push'](_0x5577b7['shift']());}catch(_0x1a35d7){_0x5577b7['push'](_0x5577b7['shift']());}}}(_0x5761,0x31d80));import{ButtonView as _0x22e153,FormHeaderView as _0x3902f3}from'ckeditor5/src/ui.js';import{IconPlus as _0x7136bd,IconAIChat as _0x4a651e}from'ckeditor5/src/icons.js';import{getTranslation as _0xecd724}from'../../aicore/utils/common-translations.js';import{createResizeButton as _0x5672b9}from'../../aicore/utils/createresizebutton.js';import'../../../theme/common/aiheader.css';function _0x5761(){const _0x429fb0=['AI_CHAT_HEADING','20hkRbZj','_createStartConversationButton','257776gLTCMW','children','set','ck-ai-header\x20ck-ai-header_chat','1313970zwAlsA','ck-ai-chat__start-conversation','409256xpcsDo','execute','1010zLrNdP','3090456lUXXuO','AI_CHAT_LABEL_NEW_CHAT','startConversation','283092fKjHoF','fire','conversationStartButton','add','192216tOupjv','2MuTOta','locale','103023yjraDv','resizeButton','isMaximized'];_0x5761=function(){return _0x429fb0;};return _0x5761();}export class AIChatHeaderView extends _0x3902f3{[_0x5cd214(0xf9)];[_0x5cd214(0xff)];constructor(_0x4648b1,_0x533456){const _0x83c690=_0x5cd214;super(_0x4648b1,{'label':_0xecd724(_0x4648b1,_0x83c690(0xe8)),'class':_0x83c690(0xee),'icon':_0x4a651e}),this[_0x83c690(0xed)](_0x83c690(0xe7),!0x1),this[_0x83c690(0xf9)]=this[_0x83c690(0xea)](_0x4648b1),this[_0x83c690(0xec)][_0x83c690(0xfa)](this[_0x83c690(0xf9)]),_0x533456&&(this[_0x83c690(0xff)]=_0x5672b9(_0x4648b1,this),this[_0x83c690(0xec)][_0x83c690(0xfa)](this[_0x83c690(0xff)]));}[_0x5cd214(0xea)](_0x36ae2b){const _0x25df43=_0x5cd214,_0x181784=new _0x22e153(_0x36ae2b);return _0x181784[_0x25df43(0xed)]({'label':_0xecd724(this[_0x25df43(0xfd)],_0x25df43(0xf5)),'withText':!0x0,'icon':_0x7136bd,'class':_0x25df43(0xf0)}),_0x181784['on'](_0x25df43(0xf2),()=>{const _0x47c5fa=_0x25df43;this[_0x47c5fa(0xf8)](_0x47c5fa(0xf6));}),_0x181784;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x34753e=_0x285b;(function(_0x3dc810,_0x9ec279){var _0x349dea=_0x285b,_0x1efc21=_0x3dc810();while(!![]){try{var _0x17a89f=-parseInt(_0x349dea(0x11a))/0x1*(-parseInt(_0x349dea(0x134))/0x2)+parseInt(_0x349dea(0x12c))/0x3*(parseInt(_0x349dea(0x12a))/0x4)+-parseInt(_0x349dea(0x11d))/0x5+parseInt(_0x349dea(0x121))/0x6*(-parseInt(_0x349dea(0x130))/0x7)+-parseInt(_0x349dea(0x118))/0x8+-parseInt(_0x349dea(0x126))/0x9+parseInt(_0x349dea(0x12d))/0xa;if(_0x17a89f===_0x9ec279)break;else _0x1efc21['push'](_0x1efc21['shift']());}catch(_0x112e27){_0x1efc21['push'](_0x1efc21['shift']());}}}(_0x25e5,0x1c88b));function _0x25e5(){var _0xe01c3b=['1YtmUuy','ck-rounded-corners','chatDisclaimer','599030ketwPZ','contextResourcesSearchInputVisibleFrom','ck-reset_all','detachFromDom','145650yxyUSR','chatHeader','chatFeed','destroy','showResizeButton','1031967gtJJcs','uiLanguageDirection','ck-ai-chat','setTemplate','4skCQwp','populateSourceResourceBalloon','401616CKOZCG','3926110kPzTXY','delegate','attachToDom','56kOVcXB','chatControls','closeSourceResourceBalloon','_bodyCollection','366658zVizDP','1314144jMjgcB','div'];_0x25e5=function(){return _0xe01c3b;};return _0x25e5();}import{View as _0x24abfe,BodyCollection as _0x9ba80b}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x1165d3}from'../utils/eventnames.js';import{AIChatFeedView as _0x59a3ab}from'./aichatfeedview.js';import{AIChatControlsView as _0x1f9b7c}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x283315}from'./aichatheaderview.js';import{AIDisclaimerView as _0x5a5e36}from'../../aicore/ui/aidisclaimerview.js';function _0x285b(_0x243fef,_0x871d87){var _0x25e502=_0x25e5();return _0x285b=function(_0x285b5f,_0x54ff65){_0x285b5f=_0x285b5f-0x118;var _0x526751=_0x25e502[_0x285b5f];return _0x526751;},_0x285b(_0x243fef,_0x871d87);}import'../../../theme/common/ainotification.css';import'../../../theme/common/aibutton.css';import'../../../theme/common/aitrackchanges.css';export class AIChatView extends _0x24abfe{[_0x34753e(0x122)];[_0x34753e(0x123)];[_0x34753e(0x131)];[_0x34753e(0x11c)];[_0x34753e(0x133)];constructor(_0x57f58b,_0x5638ae){var _0x46cfc4=_0x34753e;super(_0x57f58b),this[_0x46cfc4(0x133)]=new _0x9ba80b(_0x57f58b),this[_0x46cfc4(0x133)][_0x46cfc4(0x12f)](),this[_0x46cfc4(0x122)]=new _0x283315(_0x57f58b,_0x5638ae[_0x46cfc4(0x125)]),this[_0x46cfc4(0x122)][_0x46cfc4(0x12e)](..._0x1165d3)['to'](this),this[_0x46cfc4(0x123)]=new _0x59a3ab(_0x57f58b,this[_0x46cfc4(0x133)]),this[_0x46cfc4(0x123)][_0x46cfc4(0x12e)](..._0x1165d3)['to'](this),this[_0x46cfc4(0x131)]=new _0x1f9b7c(_0x57f58b,{'bodyCollection':this[_0x46cfc4(0x133)],'contextResourcesSearchInputVisibleFrom':_0x5638ae[_0x46cfc4(0x11e)]}),this[_0x46cfc4(0x131)][_0x46cfc4(0x12e)](..._0x1165d3)['to'](this),this[_0x46cfc4(0x11c)]=new _0x5a5e36(_0x57f58b),this[_0x46cfc4(0x129)]({'tag':_0x46cfc4(0x119),'attributes':{'class':['ck',_0x46cfc4(0x11f),_0x46cfc4(0x128),_0x46cfc4(0x11b)],'dir':_0x57f58b[_0x46cfc4(0x127)]},'children':[this[_0x46cfc4(0x122)],this[_0x46cfc4(0x123)],this[_0x46cfc4(0x131)],this[_0x46cfc4(0x11c)]]});}[_0x34753e(0x12b)](_0x2667b5,_0x59956e,_0x121c78,_0x174932){var _0x2a6978=_0x34753e;this[_0x2a6978(0x131)][_0x2a6978(0x12b)](_0x2667b5,_0x59956e,_0x121c78,_0x174932);}[_0x34753e(0x132)](_0x3c9c81){var _0x36093b=_0x34753e;this[_0x36093b(0x131)][_0x36093b(0x132)](_0x3c9c81);}[_0x34753e(0x124)](){var _0xddd8b9=_0x34753e;this[_0xddd8b9(0x133)][_0xddd8b9(0x120)](),super[_0xddd8b9(0x124)]();}}
23
+ var _0x4cc2ea=_0x3f5a;(function(_0x5a8645,_0x10eda1){var _0x3bb74a=_0x3f5a,_0x56fb29=_0x5a8645();while(!![]){try{var _0x4e4f67=-parseInt(_0x3bb74a(0x103))/0x1*(parseInt(_0x3bb74a(0xea))/0x2)+-parseInt(_0x3bb74a(0xef))/0x3+-parseInt(_0x3bb74a(0xf8))/0x4+-parseInt(_0x3bb74a(0xf1))/0x5+-parseInt(_0x3bb74a(0xfd))/0x6*(parseInt(_0x3bb74a(0x101))/0x7)+parseInt(_0x3bb74a(0x100))/0x8+parseInt(_0x3bb74a(0xf3))/0x9*(parseInt(_0x3bb74a(0xf9))/0xa);if(_0x4e4f67===_0x10eda1)break;else _0x56fb29['push'](_0x56fb29['shift']());}catch(_0x31a8b6){_0x56fb29['push'](_0x56fb29['shift']());}}}(_0xb600,0x92f9c));import{View as _0x5c73f6,BodyCollection as _0x4cd400}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x3bd7ce}from'../utils/eventnames.js';import{AIChatFeedView as _0x8d7385}from'./aichatfeedview.js';import{AIChatControlsView as _0x3296ce}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x5c585c}from'./aichatheaderview.js';import{AIDisclaimerView as _0x48a958}from'../../aicore/ui/aidisclaimerview.js';import'../../../theme/common/ainotification.css';function _0x3f5a(_0x29a3d6,_0xce8848){var _0xb60071=_0xb600();return _0x3f5a=function(_0x3f5abe,_0x4da650){_0x3f5abe=_0x3f5abe-0xe7;var _0x253d91=_0xb60071[_0x3f5abe];return _0x253d91;},_0x3f5a(_0x29a3d6,_0xce8848);}import'../../../theme/common/aibutton.css';import'../../../theme/common/aitrackchanges.css';export class AIChatView extends _0x5c73f6{[_0x4cc2ea(0xf7)];[_0x4cc2ea(0xfb)];[_0x4cc2ea(0xe8)];[_0x4cc2ea(0xe7)];[_0x4cc2ea(0xfe)];constructor(_0x220602,_0x149e22){var _0x38c9e0=_0x4cc2ea;super(_0x220602),this[_0x38c9e0(0xfe)]=new _0x4cd400(_0x220602),this[_0x38c9e0(0xfe)][_0x38c9e0(0xfa)](),this[_0x38c9e0(0xf7)]=new _0x5c585c(_0x220602,_0x149e22[_0x38c9e0(0xec)]),this[_0x38c9e0(0xf7)][_0x38c9e0(0xeb)](..._0x3bd7ce)['to'](this),this[_0x38c9e0(0xfb)]=new _0x8d7385(_0x220602,this[_0x38c9e0(0xfe)]),this[_0x38c9e0(0xfb)][_0x38c9e0(0xeb)](..._0x3bd7ce)['to'](this),this[_0x38c9e0(0xe8)]=new _0x3296ce(_0x220602,{'bodyCollection':this[_0x38c9e0(0xfe)],'contextResourcesSearchInputVisibleFrom':_0x149e22[_0x38c9e0(0xf6)]}),this[_0x38c9e0(0xe8)][_0x38c9e0(0xeb)](..._0x3bd7ce)['to'](this),this[_0x38c9e0(0xe7)]=new _0x48a958(_0x220602),this[_0x38c9e0(0xf5)]({'tag':_0x38c9e0(0xed),'attributes':{'class':['ck',_0x38c9e0(0xe9),_0x38c9e0(0xee),_0x38c9e0(0xf2)],'dir':_0x220602[_0x38c9e0(0xfc)]},'children':[this[_0x38c9e0(0xf7)],this[_0x38c9e0(0xfb)],this[_0x38c9e0(0xe8)],this[_0x38c9e0(0xe7)]]});}[_0x4cc2ea(0xff)](_0xb7057f,_0x46ef9f,_0x549357,_0x557ad0){var _0x1e555e=_0x4cc2ea;this[_0x1e555e(0xe8)][_0x1e555e(0xff)](_0xb7057f,_0x46ef9f,_0x549357,_0x557ad0);}[_0x4cc2ea(0xf0)](_0x1cc7ae){var _0x25487c=_0x4cc2ea;this[_0x25487c(0xe8)][_0x25487c(0xf0)](_0x1cc7ae);}[_0x4cc2ea(0xf4)](){var _0x2d2d23=_0x4cc2ea;this[_0x2d2d23(0xfe)][_0x2d2d23(0x102)](),super[_0x2d2d23(0xf4)]();}}function _0xb600(){var _0x1b7601=['639ukxIWm','destroy','setTemplate','contextResourcesSearchInputVisibleFrom','chatHeader','2185884QQahtv','488860hNbMNC','attachToDom','chatFeed','uiLanguageDirection','6676482TcitAo','_bodyCollection','populateSourceResourceBalloon','8353888CwWeMJ','7nOaRQg','detachFromDom','256PLfxfQ','chatDisclaimer','chatControls','ck-reset_all','5702gyDEGA','delegate','showResizeButton','div','ck-ai-chat','1974231yOmMbY','closeSourceResourceBalloon','4329895vCtrTu','ck-rounded-corners'];_0xb600=function(){return _0x1b7601;};return _0xb600();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x1f73(){const _0x5dcd64=['_containerElement','visible\x20!important','border-box','0px','_targetContainer','controlsButton','setContainerElement','show','execute','querySelector','documentElement','_intersectionObserver','boxSizing','getComputedStyle','clientWidth','innerWidth','9mJUBvX','style','2029050EidvJc','.ck-ai-chat','_createCalculationContainer','classList','some','_createShowMoreButtonView','_parentView','_createShowMoreBalloonPanelView','maxVisibleRows','+\x201','showMoreBalloon','_handleShowMoreButtonClick','calculationContainer','add','565453kgfVTw','showMoreButton','disconnect','_findTargetContainer','140316zgGCYD','-9999px','_setupVisibilityObserver','slice','opacity','remove','_bodyCollection','_calculateOverflowInContainer','isIntersecting','none','length','visible','ck-calculation-container','disableAnimationOnEnter','_applyOverflowResults','getBoundingClientRect','isOn','_isContainerVisible','_showMoreButtonView','_createShowMoreButton','div','showMoreButtonView','position','rowDetectionTolerance','width','cssClasses','cloneNode','block\x20!important','undefined','push','children','_updateShowMoreButtonVisibility','pop','_pendingCalculation','appendChild','clear','_createMockButton','textContent','label','1832650CDHAuA','1166mvZlpT','reorganizeChips','zIndex','render','from','isConnected','right','absolute','abs','content','visibility','offsetWidth','hideBalloonPanel','observe','_showMoreBalloonPanelView','set','height','_distributeChips','_ancestorsToRestore','button','_updateOverflowUI','hide','229321mwfctx','filter','pointerEvents','body','destroy','_calculateContainerWidth','3075140qPOUBN','_createContainerElements','3855yYmOno','isVisible','block','auto','display','parentElement','_overflowChips','_renderChipsAndCountRows','overflowContainer','overflowChips','setTemplate','_updateBalloonContent','element','forEach','toLowerCase','innerHTML','tagName','_applyCalculationStyles','hidden','_makeAncestorsVisible','40aEfmHK','pin','2012RFafgN','extendTemplate','left','top','50px','_locale','_restoreAncestorVisibility','innerHeight','createElement','showMoreLabelPrefix','includes','_testButtonFit','_checkAndHandleOverflow','clientHeight','_visibleChips','showBalloonPanel','6cOZAha','300px','className','_repinBalloonPanel','_config','bottom'];_0x1f73=function(){return _0x5dcd64;};return _0x1f73();}const _0x5a8b27=_0x1969;(function(_0x519701,_0x4bab05){const _0x2d5793=_0x1969,_0x58d934=_0x519701();while(!![]){try{const _0x46dbca=-parseInt(_0x2d5793(0x196))/0x1*(parseInt(_0x2d5793(0x1c4))/0x2)+parseInt(_0x2d5793(0x19e))/0x3*(-parseInt(_0x2d5793(0x1b4))/0x4)+parseInt(_0x2d5793(0x19c))/0x5+-parseInt(_0x2d5793(0x1dc))/0x6+-parseInt(_0x2d5793(0x1ea))/0x7*(-parseInt(_0x2d5793(0x1b2))/0x8)+parseInt(_0x2d5793(0x1da))/0x9*(-parseInt(_0x2d5793(0x17f))/0xa)+parseInt(_0x2d5793(0x180))/0xb*(parseInt(_0x2d5793(0x1ee))/0xc);if(_0x46dbca===_0x4bab05)break;else _0x58d934['push'](_0x58d934['shift']());}catch(_0xfb9cb6){_0x58d934['push'](_0x58d934['shift']());}}}(_0x1f73,0x624bf));function _0x1969(_0x306f07,_0x2a8b3e){const _0x1f73db=_0x1f73();return _0x1969=function(_0x196913,_0x21e163){_0x196913=_0x196913-0x173;let _0x57a0ff=_0x1f73db[_0x196913];return _0x57a0ff;},_0x1969(_0x306f07,_0x2a8b3e);}import{View as _0x297976,BalloonPanelView as _0x202223,ButtonView as _0xbcece7,clickOutsideHandler as _0x13521f}from'ckeditor5/src/ui.js';import{Collection as _0x595fb7}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},an=_0x5a8b27(0x1c5);export class AIChatChipsOverflowManager{[_0x5a8b27(0x1b9)];[_0x5a8b27(0x1c8)];[_0x5a8b27(0x1c2)];[_0x5a8b27(0x1a4)];[_0x5a8b27(0x200)]=null;[_0x5a8b27(0x18e)]=null;[_0x5a8b27(0x1ca)]=null;[_0x5a8b27(0x1f4)];[_0x5a8b27(0x1e2)]=null;[_0x5a8b27(0x1d5)]=null;[_0x5a8b27(0x179)]=!0x1;constructor(_0x3c9b41,_0x26f870,_0x5c89d3,_0x10b65d,_0x350f47){const _0x125804=_0x5a8b27;this[_0x125804(0x1b9)]=_0x3c9b41,this[_0x125804(0x1c2)]=_0x26f870,this[_0x125804(0x1c8)]={...hn,..._0x5c89d3,'cssClasses':{'controlsButton':'','calculationContainer':_0x125804(0x1fa),..._0x5c89d3[_0x125804(0x207)]}},this[_0x125804(0x1a4)]=new _0x595fb7(),this[_0x125804(0x1f4)]=_0x10b65d,this[_0x125804(0x1e2)]=_0x350f47||null;}[_0x5a8b27(0x1d0)](_0x59e15d){const _0x17d003=_0x5a8b27;this[_0x17d003(0x1d5)]&&(this[_0x17d003(0x1d5)][_0x17d003(0x1ec)](),this[_0x17d003(0x1d5)]=null),this[_0x17d003(0x1ca)]=_0x59e15d,this[_0x17d003(0x1f0)]();}get[_0x5a8b27(0x203)](){const _0x12a737=_0x5a8b27;return this[_0x12a737(0x200)];}get[_0x5a8b27(0x1a7)](){const _0x236b0b=_0x5a8b27;return this[_0x236b0b(0x1a4)];}[_0x5a8b27(0x181)](){requestAnimationFrame(()=>{const _0x1a3a50=_0x1969;this[_0x1a3a50(0x1c0)]();});}[_0x5a8b27(0x1c3)](){const _0x54b887=_0x5a8b27;this[_0x54b887(0x200)]&&this[_0x54b887(0x18e)]&&(this[_0x54b887(0x1a9)](),this[_0x54b887(0x200)][_0x54b887(0x1fe)]=!0x0,this[_0x54b887(0x18e)][_0x54b887(0x1d1)](),this[_0x54b887(0x18e)][_0x54b887(0x1b3)]({'target':this[_0x54b887(0x200)][_0x54b887(0x1aa)],'limiter':document[_0x54b887(0x1d3)](_0x54b887(0x1dd))}));}[_0x5a8b27(0x18c)](){const _0x44a2a2=_0x5a8b27;this[_0x44a2a2(0x200)]&&this[_0x44a2a2(0x18e)]&&(this[_0x44a2a2(0x200)][_0x44a2a2(0x1fe)]=!0x1,this[_0x44a2a2(0x18e)][_0x44a2a2(0x195)]());}[_0x5a8b27(0x17b)](){const _0x4fbf06=_0x5a8b27;this[_0x4fbf06(0x1a4)][_0x4fbf06(0x17b)](),this[_0x4fbf06(0x18c)](),this[_0x4fbf06(0x177)](),this[_0x4fbf06(0x200)]&&(this[_0x4fbf06(0x200)][_0x4fbf06(0x17e)]=''),this[_0x4fbf06(0x18e)]&&this[_0x4fbf06(0x18e)][_0x4fbf06(0x189)][_0x4fbf06(0x17b)]();}[_0x5a8b27(0x19a)](){const _0x154423=_0x5a8b27;this[_0x154423(0x1d5)]&&(this[_0x154423(0x1d5)][_0x154423(0x1ec)](),this[_0x154423(0x1d5)]=null),this[_0x154423(0x200)]&&(this[_0x154423(0x200)][_0x154423(0x19a)](),this[_0x154423(0x200)]=null),this[_0x154423(0x18e)]&&(this[_0x154423(0x18e)][_0x154423(0x19a)](),this[_0x154423(0x18e)]=null);}[_0x5a8b27(0x1c0)](){const _0x186698=_0x5a8b27;if(!this[_0x186698(0x1ca)])return;if(!this[_0x186698(0x1ff)]())return void(this[_0x186698(0x179)]=!0x0);this[_0x186698(0x179)]=!0x1;const _0x3ce11b=[...this[_0x186698(0x1c2)],...this[_0x186698(0x1a4)]],_0x1c25a2=this[_0x186698(0x1de)](),_0x4e4afd=this[_0x186698(0x1f5)](_0x1c25a2,_0x3ce11b),_0xdc692b=_0x1c25a2[_0x186698(0x192)];_0xdc692b&&this[_0x186698(0x1ba)](_0xdc692b),_0x1c25a2[_0x186698(0x1f3)](),this[_0x186698(0x1fc)](_0x3ce11b,_0x4e4afd);}[_0x5a8b27(0x201)](){const _0x7cb62d=_0x5a8b27;this[_0x7cb62d(0x200)]=this[_0x7cb62d(0x1e1)](),this[_0x7cb62d(0x18e)]=this[_0x7cb62d(0x1e3)](),this[_0x7cb62d(0x200)][_0x7cb62d(0x183)](),this[_0x7cb62d(0x1ca)][_0x7cb62d(0x17a)](this[_0x7cb62d(0x200)][_0x7cb62d(0x1aa)]),this[_0x7cb62d(0x200)]['on'](_0x7cb62d(0x1d2),()=>{const _0x3eb1cd=_0x7cb62d;this[_0x3eb1cd(0x1e7)]();}),_0x13521f({'emitter':this[_0x7cb62d(0x18e)],'contextElements':[this[_0x7cb62d(0x18e)][_0x7cb62d(0x1aa)],this[_0x7cb62d(0x200)][_0x7cb62d(0x1aa)]],'callback':()=>this[_0x7cb62d(0x18c)](),'activator':()=>this[_0x7cb62d(0x200)][_0x7cb62d(0x1fe)]});}[_0x5a8b27(0x1e1)](){const _0x2ed94f=_0x5a8b27,_0x1803ce=new _0xbcece7(this[_0x2ed94f(0x1b9)]);_0x1803ce[_0x2ed94f(0x18f)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x16186b=[this[_0x2ed94f(0x1c8)][_0x2ed94f(0x207)][_0x2ed94f(0x1eb)]];return this[_0x2ed94f(0x1c8)][_0x2ed94f(0x207)][_0x2ed94f(0x1cf)]&&_0x16186b[_0x2ed94f(0x175)](this[_0x2ed94f(0x1c8)][_0x2ed94f(0x207)][_0x2ed94f(0x1cf)]),_0x1803ce[_0x2ed94f(0x1b5)]({'attributes':{'class':_0x16186b}}),_0x1803ce;}[_0x5a8b27(0x1e3)](){const _0x359c7d=_0x5a8b27,_0x23641d=new _0x202223(this[_0x359c7d(0x1b9)]);return _0x23641d[_0x359c7d(0x1b5)]({'attributes':{'class':this[_0x359c7d(0x1c8)][_0x359c7d(0x207)][_0x359c7d(0x1e6)]}}),this[_0x359c7d(0x1f4)][_0x359c7d(0x1e9)](_0x23641d),_0x23641d;}[_0x5a8b27(0x1a9)](){const _0x578d6a=_0x5a8b27;if(this[_0x578d6a(0x18e)]&&(this[_0x578d6a(0x18e)][_0x578d6a(0x189)][_0x578d6a(0x17b)](),this[_0x578d6a(0x1a4)][_0x578d6a(0x1f8)]>0x0)){this[_0x578d6a(0x1a4)][_0x578d6a(0x1ab)](_0x4349dd=>{const _0x27a573=_0x578d6a;_0x4349dd[_0x27a573(0x1fb)]();});const _0x14d65f=new _0x297976(this[_0x578d6a(0x1b9)]);_0x14d65f[_0x578d6a(0x1a8)]({'tag':_0x578d6a(0x202),'attributes':{'class':this[_0x578d6a(0x1c8)][_0x578d6a(0x207)][_0x578d6a(0x1a6)]},'children':this[_0x578d6a(0x1a4)]}),this[_0x578d6a(0x18e)][_0x578d6a(0x189)][_0x578d6a(0x1e9)](_0x14d65f);}}[_0x5a8b27(0x1e7)](){const _0x42f6cd=_0x5a8b27;this[_0x42f6cd(0x200)][_0x42f6cd(0x1fe)]?this[_0x42f6cd(0x18c)]():this[_0x42f6cd(0x1c3)]();}[_0x5a8b27(0x177)](){const _0x226fb2=_0x5a8b27,_0x1af79c=this[_0x226fb2(0x1a4)][_0x226fb2(0x1f8)]>0x0;this[_0x226fb2(0x200)]?.[_0x226fb2(0x1aa)]&&(this[_0x226fb2(0x200)][_0x226fb2(0x1aa)][_0x226fb2(0x1db)][_0x226fb2(0x1a2)]=_0x1af79c?'':_0x226fb2(0x1f7));}[_0x5a8b27(0x1c7)](){const _0x1bf898=_0x5a8b27;this[_0x1bf898(0x200)]?.[_0x1bf898(0x1fe)]&&this[_0x1bf898(0x18e)]?.[_0x1bf898(0x19f)]&&this[_0x1bf898(0x200)][_0x1bf898(0x1aa)]&&this[_0x1bf898(0x18e)][_0x1bf898(0x1b3)]({'target':this[_0x1bf898(0x200)][_0x1bf898(0x1aa)],'limiter':document[_0x1bf898(0x1d3)](_0x1bf898(0x1dd))});}[_0x5a8b27(0x1ed)](_0xf8f48c){const _0x1d6e83=_0x5a8b27,_0x20d30f=this[_0x1d6e83(0x1ca)]?.[_0x1d6e83(0x1ae)][_0x1d6e83(0x1ac)]()||_0x1d6e83(0x202),_0x1117f3=this[_0x1d6e83(0x1ca)]?.[_0x1d6e83(0x1df)];if(_0x1117f3){const _0xffe9aa=_0x1117f3[0x0]||'',_0x1a272f=_0xf8f48c[_0x1d6e83(0x1d3)]('.'+_0xffe9aa),_0x592ba4=_0xf8f48c[_0x1d6e83(0x1d3)](_0x20d30f);return _0x1a272f||_0x592ba4||_0xf8f48c;}return _0xf8f48c[_0x1d6e83(0x1d3)](_0x20d30f)||_0xf8f48c;}[_0x5a8b27(0x19b)](){const _0x189c17=_0x5a8b27,_0x7dedde=this[_0x189c17(0x1e2)]?.[_0x189c17(0x1aa)]||this[_0x189c17(0x1ca)];if(!_0x7dedde)return an;const _0x41ced5=window[_0x189c17(0x1d7)](_0x7dedde)[_0x189c17(0x206)];if(_0x189c17(0x1a1)===_0x41ced5||_0x189c17(0x1cd)===_0x41ced5||!_0x41ced5){const _0x27f14b=_0x7dedde[_0x189c17(0x1a3)];if(_0x27f14b){const _0x5643d9=window[_0x189c17(0x1d7)](_0x27f14b);return _0x189c17(0x1a1)!==_0x5643d9[_0x189c17(0x206)]?_0x5643d9[_0x189c17(0x206)]:an;}return an;}return _0x41ced5;}[_0x5a8b27(0x1af)](_0x38b547,_0x49b6eb){const _0x160e36=_0x5a8b27;this[_0x160e36(0x1c8)][_0x160e36(0x207)][_0x160e36(0x1e8)]&&_0x38b547[_0x160e36(0x1df)][_0x160e36(0x1e9)](this[_0x160e36(0x1c8)][_0x160e36(0x207)][_0x160e36(0x1e8)]),_0x38b547[_0x160e36(0x1db)][_0x160e36(0x206)]=_0x49b6eb,_0x38b547[_0x160e36(0x1db)][_0x160e36(0x204)]=_0x160e36(0x187),_0x38b547[_0x160e36(0x1db)][_0x160e36(0x1b7)]=_0x160e36(0x1ef),_0x38b547[_0x160e36(0x1db)][_0x160e36(0x1b6)]=_0x160e36(0x1ef),_0x38b547[_0x160e36(0x1db)][_0x160e36(0x1f2)]='0',_0x38b547[_0x160e36(0x1db)][_0x160e36(0x198)]=_0x160e36(0x1f7),_0x38b547[_0x160e36(0x1db)][_0x160e36(0x182)]='-1',_0x38b547[_0x160e36(0x1db)][_0x160e36(0x18a)]=_0x160e36(0x1cb),_0x38b547[_0x160e36(0x1db)][_0x160e36(0x1a2)]=_0x160e36(0x173),_0x38b547[_0x160e36(0x1db)][_0x160e36(0x1d6)]=_0x160e36(0x1cc);}[_0x5a8b27(0x1ba)](_0x402ca4){const _0x3968cd=_0x5a8b27;_0x402ca4[_0x3968cd(0x1ab)](({element:_0x4b10b8,originalDisplay:_0x56ae2a,originalVisibility:_0x10232c})=>{const _0x50a72f=_0x3968cd;_0x4b10b8[_0x50a72f(0x1db)][_0x50a72f(0x1a2)]=_0x56ae2a,_0x4b10b8[_0x50a72f(0x1db)][_0x50a72f(0x18a)]=_0x10232c;});}[_0x5a8b27(0x1b1)](_0x4bfac8){const _0x1ce5d0=_0x5a8b27,_0x4447a4=[];let _0x2713f6=_0x4bfac8;for(;_0x2713f6&&_0x2713f6!==document[_0x1ce5d0(0x199)];){const _0x3192e4=window[_0x1ce5d0(0x1d7)](_0x2713f6);_0x1ce5d0(0x1f7)!==_0x3192e4[_0x1ce5d0(0x1a2)]&&_0x1ce5d0(0x1b0)!==_0x3192e4[_0x1ce5d0(0x18a)]||(_0x4447a4[_0x1ce5d0(0x175)]({'element':_0x2713f6,'originalDisplay':_0x2713f6[_0x1ce5d0(0x1db)][_0x1ce5d0(0x1a2)],'originalVisibility':_0x2713f6[_0x1ce5d0(0x1db)][_0x1ce5d0(0x18a)]}),_0x2713f6[_0x1ce5d0(0x1db)][_0x1ce5d0(0x1a2)]=_0x1ce5d0(0x1a0),_0x2713f6[_0x1ce5d0(0x1db)][_0x1ce5d0(0x18a)]=_0x1ce5d0(0x1f9)),_0x2713f6=_0x2713f6[_0x1ce5d0(0x1a3)];}return _0x4447a4;}[_0x5a8b27(0x19d)](){const _0x3a4624=_0x5a8b27;let _0x166ce3,_0x2d6898;return this[_0x3a4624(0x1e2)]?.[_0x3a4624(0x1aa)]?(_0x166ce3=this[_0x3a4624(0x1e2)][_0x3a4624(0x1aa)][_0x3a4624(0x208)](!0x0),_0x2d6898=this[_0x3a4624(0x1ed)](_0x166ce3)):(_0x166ce3=document[_0x3a4624(0x1bc)](_0x3a4624(0x202)),_0x2d6898=_0x166ce3),{'calculationContainer':_0x166ce3,'targetContainer':_0x2d6898};}[_0x5a8b27(0x1de)](){const _0x23d7a1=_0x5a8b27,{calculationContainer:_0x1ca691,targetContainer:_0x39947f}=this[_0x23d7a1(0x19d)](),_0x338314=this[_0x23d7a1(0x19b)]();this[_0x23d7a1(0x1af)](_0x1ca691,_0x338314);const _0x5a0c3f=this[_0x23d7a1(0x1e2)]?.[_0x23d7a1(0x1aa)]||this[_0x23d7a1(0x1ca)],_0x204fc1=_0x5a0c3f?.[_0x23d7a1(0x1a3)];_0x204fc1?_0x204fc1[_0x23d7a1(0x17a)](_0x1ca691):document[_0x23d7a1(0x199)][_0x23d7a1(0x17a)](_0x1ca691),_0x1ca691[_0x23d7a1(0x1ce)]=_0x39947f;const _0x4de999=this[_0x23d7a1(0x1b1)](_0x204fc1||null);return _0x1ca691[_0x23d7a1(0x18b)],_0x1ca691[_0x23d7a1(0x192)]=_0x4de999,_0x1ca691;}[_0x5a8b27(0x1f5)](_0x299d17,_0x3eb88a){const _0x468ab9=_0x5a8b27,_0x593b4e=_0x299d17[_0x468ab9(0x1ce)]||_0x299d17,_0xdb0d8b=[],{rowCount:_0x26d9ab}=this[_0x468ab9(0x1a5)](_0x593b4e,_0x3eb88a);if(_0x26d9ab<=this[_0x468ab9(0x1c8)][_0x468ab9(0x1e4)])return _0xdb0d8b;const _0x212850=_0x3eb88a[_0x468ab9(0x1f1)]();for(;_0x212850[_0x468ab9(0x1f8)]>0x0;){if(this[_0x468ab9(0x1bf)](_0x299d17,_0x593b4e,_0x212850)){const _0x5f1d49=_0x3eb88a[_0x468ab9(0x197)](_0x5a6f45=>!_0x212850[_0x468ab9(0x1be)](_0x5a6f45));_0xdb0d8b[_0x468ab9(0x175)](..._0x5f1d49);break;}if(!_0x212850[_0x468ab9(0x178)]())break;}return _0xdb0d8b;}[_0x5a8b27(0x1a5)](_0x1573be,_0x552cad){const _0x393cc1=_0x5a8b27;_0x1573be[_0x393cc1(0x1ad)]='',_0x552cad[_0x393cc1(0x1ab)](_0x149e56=>{const _0x1f5747=_0x393cc1;if(_0x149e56[_0x1f5747(0x1aa)]){const _0x260b18=_0x149e56[_0x1f5747(0x1aa)][_0x1f5747(0x208)](!0x0);_0x1573be[_0x1f5747(0x17a)](_0x260b18);}}),_0x1573be[_0x393cc1(0x18b)];const _0x1007e7=_0x1573be[_0x393cc1(0x176)],_0x4d3528=[];return Array[_0x393cc1(0x184)](_0x1007e7)[_0x393cc1(0x1ab)](_0x59c7fb=>{const _0x136fa2=_0x393cc1,_0x58b677=_0x59c7fb[_0x136fa2(0x1fd)]()[_0x136fa2(0x1b7)];_0x4d3528[_0x136fa2(0x1e0)](_0x5a8509=>Math[_0x136fa2(0x188)](_0x5a8509-_0x58b677)<this[_0x136fa2(0x1c8)][_0x136fa2(0x205)])||_0x4d3528[_0x136fa2(0x175)](_0x58b677);}),{'rowCount':_0x4d3528[_0x393cc1(0x1f8)]};}[_0x5a8b27(0x17c)](){const _0x105865=_0x5a8b27,_0x43a31d=document[_0x105865(0x1bc)](_0x105865(0x193));return _0x43a31d[_0x105865(0x1c6)]=this[_0x105865(0x1c8)][_0x105865(0x207)][_0x105865(0x1eb)],this[_0x105865(0x1c8)][_0x105865(0x207)][_0x105865(0x1cf)]&&_0x43a31d[_0x105865(0x1df)][_0x105865(0x1e9)](this[_0x105865(0x1c8)][_0x105865(0x207)][_0x105865(0x1cf)]),_0x43a31d[_0x105865(0x17d)]=_0x105865(0x1e5),_0x43a31d;}[_0x5a8b27(0x1bf)](_0xe17c06,_0x1e40f6,_0x162d04){const _0x8a2bf2=_0x5a8b27;this[_0x8a2bf2(0x1a5)](_0x1e40f6,_0x162d04);const _0x150635=this[_0x8a2bf2(0x17c)]();_0xe17c06[_0x8a2bf2(0x17a)](_0x150635),_0xe17c06[_0x8a2bf2(0x18b)];const _0x9e5434=[..._0x1e40f6[_0x8a2bf2(0x176)],_0x150635],_0x5a1b15=[];_0x9e5434[_0x8a2bf2(0x1ab)](_0x1e0dfe=>{const _0xb92442=_0x8a2bf2,_0x1951aa=_0x1e0dfe[_0xb92442(0x1fd)]()[_0xb92442(0x1b7)];_0x5a1b15[_0xb92442(0x1e0)](_0x2b94b1=>Math[_0xb92442(0x188)](_0x2b94b1-_0x1951aa)<this[_0xb92442(0x1c8)][_0xb92442(0x205)])||_0x5a1b15[_0xb92442(0x175)](_0x1951aa);});const _0x47d584=_0x5a1b15[_0x8a2bf2(0x1f8)];return _0x150635[_0x8a2bf2(0x1f3)](),_0x47d584<=this[_0x8a2bf2(0x1c8)][_0x8a2bf2(0x1e4)];}[_0x5a8b27(0x191)](_0x32c4dc,_0x1cb618){const _0x25333d=_0x5a8b27;this[_0x25333d(0x1c2)][_0x25333d(0x17b)](),this[_0x25333d(0x1a4)][_0x25333d(0x17b)](),_0x32c4dc[_0x25333d(0x1ab)](_0x58a270=>{const _0x9322f2=_0x25333d;_0x1cb618[_0x9322f2(0x1be)](_0x58a270)?this[_0x9322f2(0x1a4)][_0x9322f2(0x1e9)](_0x58a270):this[_0x9322f2(0x1c2)][_0x9322f2(0x1e9)](_0x58a270);});}[_0x5a8b27(0x194)](_0x4c9357){const _0xd35f49=_0x5a8b27;if(_0x4c9357>0x0&&!this[_0xd35f49(0x200)]&&this[_0xd35f49(0x201)](),_0x4c9357>0x0&&this[_0xd35f49(0x200)]){const _0x15f431=''+this[_0xd35f49(0x1c8)][_0xd35f49(0x1bd)]+(_0x4c9357<0x63?_0x4c9357:'99');this[_0xd35f49(0x200)][_0xd35f49(0x17e)]=_0x15f431;}this[_0xd35f49(0x1a9)](),this[_0xd35f49(0x177)](),this[_0xd35f49(0x1c7)]();}[_0x5a8b27(0x1fc)](_0x1337b0,_0x2be473){const _0x4bbfe7=_0x5a8b27;this[_0x4bbfe7(0x191)](_0x1337b0,_0x2be473),this[_0x4bbfe7(0x194)](_0x2be473[_0x4bbfe7(0x1f8)]);}[_0x5a8b27(0x1f0)](){const _0x46f8e4=_0x5a8b27;this[_0x46f8e4(0x1ca)]&&_0x46f8e4(0x174)!=typeof IntersectionObserver&&(this[_0x46f8e4(0x1d5)]=new IntersectionObserver(_0x46238f=>{const _0x55c1cd=_0x46f8e4;_0x46238f[0x0][_0x55c1cd(0x1f6)]&&this[_0x55c1cd(0x179)]&&requestAnimationFrame(()=>{const _0xf25ed3=_0x55c1cd;this[_0xf25ed3(0x1c0)]();});},{'threshold':0.01,'rootMargin':_0x46f8e4(0x1b8)}),this[_0x46f8e4(0x1d5)][_0x46f8e4(0x18d)](this[_0x46f8e4(0x1ca)]));}[_0x5a8b27(0x1ff)](){const _0x289d1c=_0x5a8b27;if(!this[_0x289d1c(0x1ca)])return!0x1;if(!this[_0x289d1c(0x1ca)][_0x289d1c(0x185)])return!0x1;const _0x4824e3=this[_0x289d1c(0x1ca)][_0x289d1c(0x1fd)]();if(0x0===_0x4824e3[_0x289d1c(0x206)]||0x0===_0x4824e3[_0x289d1c(0x190)])return!0x1;const _0x55c5f8=window[_0x289d1c(0x1bb)]||document[_0x289d1c(0x1d4)][_0x289d1c(0x1c1)],_0x10cc93=window[_0x289d1c(0x1d9)]||document[_0x289d1c(0x1d4)][_0x289d1c(0x1d8)],_0x38291f=0xc8;return _0x4824e3[_0x289d1c(0x1c9)]>=-0xc8&&_0x4824e3[_0x289d1c(0x1b7)]<=_0x55c5f8+_0x38291f&&_0x4824e3[_0x289d1c(0x186)]>=-0xc8&&_0x4824e3[_0x289d1c(0x1b6)]<=_0x10cc93+_0x38291f;}}
23
+ const _0x29a56a=_0x191d;function _0x191d(_0x107100,_0x2fc649){const _0x2a0ac3=_0x2a0a();return _0x191d=function(_0x191d36,_0x37c14a){_0x191d36=_0x191d36-0x19b;let _0x5c60e0=_0x2a0ac3[_0x191d36];return _0x5c60e0;},_0x191d(_0x107100,_0x2fc649);}(function(_0x35af18,_0x4e4294){const _0x3bf37a=_0x191d,_0x492d54=_0x35af18();while(!![]){try{const _0xc2aee2=parseInt(_0x3bf37a(0x1ee))/0x1*(-parseInt(_0x3bf37a(0x1a3))/0x2)+parseInt(_0x3bf37a(0x21c))/0x3+-parseInt(_0x3bf37a(0x206))/0x4+parseInt(_0x3bf37a(0x1b3))/0x5*(parseInt(_0x3bf37a(0x1fe))/0x6)+parseInt(_0x3bf37a(0x1d7))/0x7+parseInt(_0x3bf37a(0x1bf))/0x8+-parseInt(_0x3bf37a(0x218))/0x9;if(_0xc2aee2===_0x4e4294)break;else _0x492d54['push'](_0x492d54['shift']());}catch(_0x43ee84){_0x492d54['push'](_0x492d54['shift']());}}}(_0x2a0a,0x7263d));function _0x2a0a(){const _0x595844=['block\x20!important','visible\x20!important','calculationContainer','isConnected','none','clientHeight','pointerEvents','reorganizeChips','includes','remove','_calculateContainerWidth','body','_setupVisibilityObserver','_createCalculationContainer','_intersectionObserver','5498801wKVGea','disableAnimationOnEnter','_pendingCalculation','toLowerCase','rowDetectionTolerance','add','classList','_calculateOverflowInContainer','children','hide','showMoreBalloon','_visibleChips','border-box','style','block','isOn','_createShowMoreButton','label','undefined','forEach','-9999px','300px','_ancestorsToRestore','7eHweid','div','showMoreButton','+\x201','bottom','_createMockButton','_createShowMoreButtonView','left','extendTemplate','_applyOverflowResults','position','hidden','controlsButton','push','parentElement','_makeAncestorsVisible','1684698WKHrZc','button','from','pin','ck-calculation-container','length','textContent','offsetWidth','1304356MAHFIQ','_containerElement','set','innerHeight','50px','_distributeChips','top','destroy','slice','_updateShowMoreButtonVisibility','_findTargetContainer','visible','overflowChips','tagName','visibility','.ck-ai-chat','_targetContainer','cloneNode','10068489rqzTFR','_parentView','isVisible','content','318468tnSKfZ','innerHTML','some','_renderChipsAndCountRows','showBalloonPanel','observe','_testButtonFit','_updateOverflowUI','height','setTemplate','getBoundingClientRect','createElement','abs','overflowContainer','_isContainerVisible','render','0px','_restoreAncestorVisibility','zIndex','clientWidth','setContainerElement','_showMoreButtonView','maxVisibleRows','_updateBalloonContent','cssClasses','_createContainerElements','98894SBnWZC','documentElement','_overflowChips','display','_showMoreBalloonPanelView','absolute','_repinBalloonPanel','filter','querySelector','innerWidth','execute','width','appendChild','_handleShowMoreButtonClick','show','clear','10uGBsKt','boxSizing','className','element','hideBalloonPanel','_config','right','auto','showMoreLabelPrefix','_checkAndHandleOverflow','_createShowMoreBalloonPanelView','showMoreButtonView','6449720WHShgH','_bodyCollection','pop','isIntersecting','opacity','getComputedStyle','disconnect','_locale','_applyCalculationStyles'];_0x2a0a=function(){return _0x595844;};return _0x2a0a();}import{View as _0x26e7b5,BalloonPanelView as _0x47264d,ButtonView as _0x12e5d6,clickOutsideHandler as _0x5b1cfc}from'ckeditor5/src/ui.js';import{Collection as _0xb51e32}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},an=_0x29a56a(0x1ec);export class AIChatChipsOverflowManager{[_0x29a56a(0x1c6)];[_0x29a56a(0x1b8)];[_0x29a56a(0x1e2)];[_0x29a56a(0x1a5)];[_0x29a56a(0x19e)]=null;[_0x29a56a(0x1a7)]=null;[_0x29a56a(0x207)]=null;[_0x29a56a(0x1c0)];[_0x29a56a(0x219)]=null;[_0x29a56a(0x1d6)]=null;[_0x29a56a(0x1d9)]=!0x1;constructor(_0xe26175,_0x1a2424,_0x2b5da0,_0x4b1c57,_0x41d188){const _0x469538=_0x29a56a;this[_0x469538(0x1c6)]=_0xe26175,this[_0x469538(0x1e2)]=_0x1a2424,this[_0x469538(0x1b8)]={...hn,..._0x2b5da0,'cssClasses':{'controlsButton':'','calculationContainer':_0x469538(0x202),..._0x2b5da0[_0x469538(0x1a1)]}},this[_0x469538(0x1a5)]=new _0xb51e32(),this[_0x469538(0x1c0)]=_0x4b1c57,this[_0x469538(0x219)]=_0x41d188||null;}[_0x29a56a(0x19d)](_0x11ad60){const _0x51f292=_0x29a56a;this[_0x51f292(0x1d6)]&&(this[_0x51f292(0x1d6)][_0x51f292(0x1c5)](),this[_0x51f292(0x1d6)]=null),this[_0x51f292(0x207)]=_0x11ad60,this[_0x51f292(0x1d4)]();}get[_0x29a56a(0x1be)](){const _0x25befe=_0x29a56a;return this[_0x25befe(0x19e)];}get[_0x29a56a(0x212)](){const _0x571d5c=_0x29a56a;return this[_0x571d5c(0x1a5)];}[_0x29a56a(0x1cf)](){requestAnimationFrame(()=>{const _0x35f0c2=_0x191d;this[_0x35f0c2(0x1bc)]();});}[_0x29a56a(0x220)](){const _0x928209=_0x29a56a;this[_0x928209(0x19e)]&&this[_0x928209(0x1a7)]&&(this[_0x928209(0x1a0)](),this[_0x928209(0x19e)][_0x928209(0x1e6)]=!0x0,this[_0x928209(0x1a7)][_0x928209(0x1b1)](),this[_0x928209(0x1a7)][_0x928209(0x201)]({'target':this[_0x928209(0x19e)][_0x928209(0x1b6)],'limiter':document[_0x928209(0x1ab)](_0x928209(0x215))}));}[_0x29a56a(0x1b7)](){const _0x355215=_0x29a56a;this[_0x355215(0x19e)]&&this[_0x355215(0x1a7)]&&(this[_0x355215(0x19e)][_0x355215(0x1e6)]=!0x1,this[_0x355215(0x1a7)][_0x355215(0x1e0)]());}[_0x29a56a(0x1b2)](){const _0x4276d8=_0x29a56a;this[_0x4276d8(0x1a5)][_0x4276d8(0x1b2)](),this[_0x4276d8(0x1b7)](),this[_0x4276d8(0x20f)](),this[_0x4276d8(0x19e)]&&(this[_0x4276d8(0x19e)][_0x4276d8(0x1e8)]=''),this[_0x4276d8(0x1a7)]&&this[_0x4276d8(0x1a7)][_0x4276d8(0x21b)][_0x4276d8(0x1b2)]();}[_0x29a56a(0x20d)](){const _0x5d6a42=_0x29a56a;this[_0x5d6a42(0x1d6)]&&(this[_0x5d6a42(0x1d6)][_0x5d6a42(0x1c5)](),this[_0x5d6a42(0x1d6)]=null),this[_0x5d6a42(0x19e)]&&(this[_0x5d6a42(0x19e)][_0x5d6a42(0x20d)](),this[_0x5d6a42(0x19e)]=null),this[_0x5d6a42(0x1a7)]&&(this[_0x5d6a42(0x1a7)][_0x5d6a42(0x20d)](),this[_0x5d6a42(0x1a7)]=null);}[_0x29a56a(0x1bc)](){const _0x167634=_0x29a56a;if(!this[_0x167634(0x207)])return;if(!this[_0x167634(0x22a)]())return void(this[_0x167634(0x1d9)]=!0x0);this[_0x167634(0x1d9)]=!0x1;const _0x4e7824=[...this[_0x167634(0x1e2)],...this[_0x167634(0x1a5)]],_0x1c8166=this[_0x167634(0x1d5)](),_0x137bd5=this[_0x167634(0x1de)](_0x1c8166,_0x4e7824),_0x4f7b5d=_0x1c8166[_0x167634(0x1ed)];_0x4f7b5d&&this[_0x167634(0x22d)](_0x4f7b5d),_0x1c8166[_0x167634(0x1d1)](),this[_0x167634(0x1f7)](_0x4e7824,_0x137bd5);}[_0x29a56a(0x1e7)](){const _0x518415=_0x29a56a;this[_0x518415(0x19e)]=this[_0x518415(0x1f4)](),this[_0x518415(0x1a7)]=this[_0x518415(0x1bd)](),this[_0x518415(0x19e)][_0x518415(0x22b)](),this[_0x518415(0x207)][_0x518415(0x1af)](this[_0x518415(0x19e)][_0x518415(0x1b6)]),this[_0x518415(0x19e)]['on'](_0x518415(0x1ad),()=>{const _0x4dbbb6=_0x518415;this[_0x4dbbb6(0x1b0)]();}),_0x5b1cfc({'emitter':this[_0x518415(0x1a7)],'contextElements':[this[_0x518415(0x1a7)][_0x518415(0x1b6)],this[_0x518415(0x19e)][_0x518415(0x1b6)]],'callback':()=>this[_0x518415(0x1b7)](),'activator':()=>this[_0x518415(0x19e)][_0x518415(0x1e6)]});}[_0x29a56a(0x1f4)](){const _0x1196a5=_0x29a56a,_0x2629ee=new _0x12e5d6(this[_0x1196a5(0x1c6)]);_0x2629ee[_0x1196a5(0x208)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x81838e=[this[_0x1196a5(0x1b8)][_0x1196a5(0x1a1)][_0x1196a5(0x1f0)]];return this[_0x1196a5(0x1b8)][_0x1196a5(0x1a1)][_0x1196a5(0x1fa)]&&_0x81838e[_0x1196a5(0x1fb)](this[_0x1196a5(0x1b8)][_0x1196a5(0x1a1)][_0x1196a5(0x1fa)]),_0x2629ee[_0x1196a5(0x1f6)]({'attributes':{'class':_0x81838e}}),_0x2629ee;}[_0x29a56a(0x1bd)](){const _0x44fe97=_0x29a56a,_0x284871=new _0x47264d(this[_0x44fe97(0x1c6)]);return _0x284871[_0x44fe97(0x1f6)]({'attributes':{'class':this[_0x44fe97(0x1b8)][_0x44fe97(0x1a1)][_0x44fe97(0x1e1)]}}),this[_0x44fe97(0x1c0)][_0x44fe97(0x1dc)](_0x284871),_0x284871;}[_0x29a56a(0x1a0)](){const _0x836031=_0x29a56a;if(this[_0x836031(0x1a7)]&&(this[_0x836031(0x1a7)][_0x836031(0x21b)][_0x836031(0x1b2)](),this[_0x836031(0x1a5)][_0x836031(0x203)]>0x0)){this[_0x836031(0x1a5)][_0x836031(0x1ea)](_0x29d74a=>{const _0x3b3ec2=_0x836031;_0x29d74a[_0x3b3ec2(0x1d8)]();});const _0x304824=new _0x26e7b5(this[_0x836031(0x1c6)]);_0x304824[_0x836031(0x225)]({'tag':_0x836031(0x1ef),'attributes':{'class':this[_0x836031(0x1b8)][_0x836031(0x1a1)][_0x836031(0x229)]},'children':this[_0x836031(0x1a5)]}),this[_0x836031(0x1a7)][_0x836031(0x21b)][_0x836031(0x1dc)](_0x304824);}}[_0x29a56a(0x1b0)](){const _0x498e09=_0x29a56a;this[_0x498e09(0x19e)][_0x498e09(0x1e6)]?this[_0x498e09(0x1b7)]():this[_0x498e09(0x220)]();}[_0x29a56a(0x20f)](){const _0x1d6df7=_0x29a56a,_0x179c1f=this[_0x1d6df7(0x1a5)][_0x1d6df7(0x203)]>0x0;this[_0x1d6df7(0x19e)]?.[_0x1d6df7(0x1b6)]&&(this[_0x1d6df7(0x19e)][_0x1d6df7(0x1b6)][_0x1d6df7(0x1e4)][_0x1d6df7(0x1a6)]=_0x179c1f?'':_0x1d6df7(0x1cc));}[_0x29a56a(0x1a9)](){const _0x232f47=_0x29a56a;this[_0x232f47(0x19e)]?.[_0x232f47(0x1e6)]&&this[_0x232f47(0x1a7)]?.[_0x232f47(0x21a)]&&this[_0x232f47(0x19e)][_0x232f47(0x1b6)]&&this[_0x232f47(0x1a7)][_0x232f47(0x201)]({'target':this[_0x232f47(0x19e)][_0x232f47(0x1b6)],'limiter':document[_0x232f47(0x1ab)](_0x232f47(0x215))});}[_0x29a56a(0x210)](_0x4d7b6d){const _0x181abe=_0x29a56a,_0x400744=this[_0x181abe(0x207)]?.[_0x181abe(0x213)][_0x181abe(0x1da)]()||_0x181abe(0x1ef),_0x16a19f=this[_0x181abe(0x207)]?.[_0x181abe(0x1dd)];if(_0x16a19f){const _0x2e7bd7=_0x16a19f[0x0]||'',_0x2f2c86=_0x4d7b6d[_0x181abe(0x1ab)]('.'+_0x2e7bd7),_0x565b46=_0x4d7b6d[_0x181abe(0x1ab)](_0x400744);return _0x2f2c86||_0x565b46||_0x4d7b6d;}return _0x4d7b6d[_0x181abe(0x1ab)](_0x400744)||_0x4d7b6d;}[_0x29a56a(0x1d2)](){const _0x380487=_0x29a56a,_0x15f09f=this[_0x380487(0x219)]?.[_0x380487(0x1b6)]||this[_0x380487(0x207)];if(!_0x15f09f)return an;const _0x491983=window[_0x380487(0x1c4)](_0x15f09f)[_0x380487(0x1ae)];if(_0x380487(0x1ba)===_0x491983||_0x380487(0x22c)===_0x491983||!_0x491983){const _0x489304=_0x15f09f[_0x380487(0x1fc)];if(_0x489304){const _0xbf2707=window[_0x380487(0x1c4)](_0x489304);return _0x380487(0x1ba)!==_0xbf2707[_0x380487(0x1ae)]?_0xbf2707[_0x380487(0x1ae)]:an;}return an;}return _0x491983;}[_0x29a56a(0x1c7)](_0x33030a,_0x2b0388){const _0x5d12c1=_0x29a56a;this[_0x5d12c1(0x1b8)][_0x5d12c1(0x1a1)][_0x5d12c1(0x1ca)]&&_0x33030a[_0x5d12c1(0x1dd)][_0x5d12c1(0x1dc)](this[_0x5d12c1(0x1b8)][_0x5d12c1(0x1a1)][_0x5d12c1(0x1ca)]),_0x33030a[_0x5d12c1(0x1e4)][_0x5d12c1(0x1ae)]=_0x2b0388,_0x33030a[_0x5d12c1(0x1e4)][_0x5d12c1(0x1f8)]=_0x5d12c1(0x1a8),_0x33030a[_0x5d12c1(0x1e4)][_0x5d12c1(0x20c)]=_0x5d12c1(0x1eb),_0x33030a[_0x5d12c1(0x1e4)][_0x5d12c1(0x1f5)]=_0x5d12c1(0x1eb),_0x33030a[_0x5d12c1(0x1e4)][_0x5d12c1(0x1c3)]='0',_0x33030a[_0x5d12c1(0x1e4)][_0x5d12c1(0x1ce)]=_0x5d12c1(0x1cc),_0x33030a[_0x5d12c1(0x1e4)][_0x5d12c1(0x19b)]='-1',_0x33030a[_0x5d12c1(0x1e4)][_0x5d12c1(0x214)]=_0x5d12c1(0x1c9),_0x33030a[_0x5d12c1(0x1e4)][_0x5d12c1(0x1a6)]=_0x5d12c1(0x1c8),_0x33030a[_0x5d12c1(0x1e4)][_0x5d12c1(0x1b4)]=_0x5d12c1(0x1e3);}[_0x29a56a(0x22d)](_0x1e6908){const _0x41f851=_0x29a56a;_0x1e6908[_0x41f851(0x1ea)](({element:_0x3f07de,originalDisplay:_0x9f0f88,originalVisibility:_0xbaa263})=>{const _0x57c3a8=_0x41f851;_0x3f07de[_0x57c3a8(0x1e4)][_0x57c3a8(0x1a6)]=_0x9f0f88,_0x3f07de[_0x57c3a8(0x1e4)][_0x57c3a8(0x214)]=_0xbaa263;});}[_0x29a56a(0x1fd)](_0x1df0a9){const _0x712aad=_0x29a56a,_0x1b12e5=[];let _0x402709=_0x1df0a9;for(;_0x402709&&_0x402709!==document[_0x712aad(0x1d3)];){const _0x407402=window[_0x712aad(0x1c4)](_0x402709);_0x712aad(0x1cc)!==_0x407402[_0x712aad(0x1a6)]&&_0x712aad(0x1f9)!==_0x407402[_0x712aad(0x214)]||(_0x1b12e5[_0x712aad(0x1fb)]({'element':_0x402709,'originalDisplay':_0x402709[_0x712aad(0x1e4)][_0x712aad(0x1a6)],'originalVisibility':_0x402709[_0x712aad(0x1e4)][_0x712aad(0x214)]}),_0x402709[_0x712aad(0x1e4)][_0x712aad(0x1a6)]=_0x712aad(0x1e5),_0x402709[_0x712aad(0x1e4)][_0x712aad(0x214)]=_0x712aad(0x211)),_0x402709=_0x402709[_0x712aad(0x1fc)];}return _0x1b12e5;}[_0x29a56a(0x1a2)](){const _0x128f06=_0x29a56a;let _0x1b24c9,_0x4e11ec;return this[_0x128f06(0x219)]?.[_0x128f06(0x1b6)]?(_0x1b24c9=this[_0x128f06(0x219)][_0x128f06(0x1b6)][_0x128f06(0x217)](!0x0),_0x4e11ec=this[_0x128f06(0x210)](_0x1b24c9)):(_0x1b24c9=document[_0x128f06(0x227)](_0x128f06(0x1ef)),_0x4e11ec=_0x1b24c9),{'calculationContainer':_0x1b24c9,'targetContainer':_0x4e11ec};}[_0x29a56a(0x1d5)](){const _0x130254=_0x29a56a,{calculationContainer:_0x338a12,targetContainer:_0x6670c6}=this[_0x130254(0x1a2)](),_0x338ec6=this[_0x130254(0x1d2)]();this[_0x130254(0x1c7)](_0x338a12,_0x338ec6);const _0x3df158=this[_0x130254(0x219)]?.[_0x130254(0x1b6)]||this[_0x130254(0x207)],_0x1a8650=_0x3df158?.[_0x130254(0x1fc)];_0x1a8650?_0x1a8650[_0x130254(0x1af)](_0x338a12):document[_0x130254(0x1d3)][_0x130254(0x1af)](_0x338a12),_0x338a12[_0x130254(0x216)]=_0x6670c6;const _0x55b5de=this[_0x130254(0x1fd)](_0x1a8650||null);return _0x338a12[_0x130254(0x205)],_0x338a12[_0x130254(0x1ed)]=_0x55b5de,_0x338a12;}[_0x29a56a(0x1de)](_0x297f75,_0x4f7602){const _0x273a2b=_0x29a56a,_0x46dd78=_0x297f75[_0x273a2b(0x216)]||_0x297f75,_0x5622f8=[],{rowCount:_0x54e93c}=this[_0x273a2b(0x21f)](_0x46dd78,_0x4f7602);if(_0x54e93c<=this[_0x273a2b(0x1b8)][_0x273a2b(0x19f)])return _0x5622f8;const _0x218727=_0x4f7602[_0x273a2b(0x20e)]();for(;_0x218727[_0x273a2b(0x203)]>0x0;){if(this[_0x273a2b(0x222)](_0x297f75,_0x46dd78,_0x218727)){const _0x37c6ca=_0x4f7602[_0x273a2b(0x1aa)](_0x3a87a8=>!_0x218727[_0x273a2b(0x1d0)](_0x3a87a8));_0x5622f8[_0x273a2b(0x1fb)](..._0x37c6ca);break;}if(!_0x218727[_0x273a2b(0x1c1)]())break;}return _0x5622f8;}[_0x29a56a(0x21f)](_0x277741,_0x3d3d34){const _0xbaf43e=_0x29a56a;_0x277741[_0xbaf43e(0x21d)]='',_0x3d3d34[_0xbaf43e(0x1ea)](_0x565c28=>{const _0x217c15=_0xbaf43e;if(_0x565c28[_0x217c15(0x1b6)]){const _0x337b4a=_0x565c28[_0x217c15(0x1b6)][_0x217c15(0x217)](!0x0);_0x277741[_0x217c15(0x1af)](_0x337b4a);}}),_0x277741[_0xbaf43e(0x205)];const _0x38e5f7=_0x277741[_0xbaf43e(0x1df)],_0x47a5a2=[];return Array[_0xbaf43e(0x200)](_0x38e5f7)[_0xbaf43e(0x1ea)](_0x56fca8=>{const _0x2824d4=_0xbaf43e,_0x4f8b19=_0x56fca8[_0x2824d4(0x226)]()[_0x2824d4(0x20c)];_0x47a5a2[_0x2824d4(0x21e)](_0x3c47d0=>Math[_0x2824d4(0x228)](_0x3c47d0-_0x4f8b19)<this[_0x2824d4(0x1b8)][_0x2824d4(0x1db)])||_0x47a5a2[_0x2824d4(0x1fb)](_0x4f8b19);}),{'rowCount':_0x47a5a2[_0xbaf43e(0x203)]};}[_0x29a56a(0x1f3)](){const _0x356b5a=_0x29a56a,_0x1d6564=document[_0x356b5a(0x227)](_0x356b5a(0x1ff));return _0x1d6564[_0x356b5a(0x1b5)]=this[_0x356b5a(0x1b8)][_0x356b5a(0x1a1)][_0x356b5a(0x1f0)],this[_0x356b5a(0x1b8)][_0x356b5a(0x1a1)][_0x356b5a(0x1fa)]&&_0x1d6564[_0x356b5a(0x1dd)][_0x356b5a(0x1dc)](this[_0x356b5a(0x1b8)][_0x356b5a(0x1a1)][_0x356b5a(0x1fa)]),_0x1d6564[_0x356b5a(0x204)]=_0x356b5a(0x1f1),_0x1d6564;}[_0x29a56a(0x222)](_0x1dd300,_0x30dd6f,_0x57121f){const _0x34c3ff=_0x29a56a;this[_0x34c3ff(0x21f)](_0x30dd6f,_0x57121f);const _0x4d1186=this[_0x34c3ff(0x1f3)]();_0x1dd300[_0x34c3ff(0x1af)](_0x4d1186),_0x1dd300[_0x34c3ff(0x205)];const _0x3adda7=[..._0x30dd6f[_0x34c3ff(0x1df)],_0x4d1186],_0x13f86b=[];_0x3adda7[_0x34c3ff(0x1ea)](_0x156763=>{const _0x54a437=_0x34c3ff,_0x1f0845=_0x156763[_0x54a437(0x226)]()[_0x54a437(0x20c)];_0x13f86b[_0x54a437(0x21e)](_0x269091=>Math[_0x54a437(0x228)](_0x269091-_0x1f0845)<this[_0x54a437(0x1b8)][_0x54a437(0x1db)])||_0x13f86b[_0x54a437(0x1fb)](_0x1f0845);});const _0x385d10=_0x13f86b[_0x34c3ff(0x203)];return _0x4d1186[_0x34c3ff(0x1d1)](),_0x385d10<=this[_0x34c3ff(0x1b8)][_0x34c3ff(0x19f)];}[_0x29a56a(0x20b)](_0x4585ab,_0xa77cb7){const _0x32954a=_0x29a56a;this[_0x32954a(0x1e2)][_0x32954a(0x1b2)](),this[_0x32954a(0x1a5)][_0x32954a(0x1b2)](),_0x4585ab[_0x32954a(0x1ea)](_0x502055=>{const _0x1e58ef=_0x32954a;_0xa77cb7[_0x1e58ef(0x1d0)](_0x502055)?this[_0x1e58ef(0x1a5)][_0x1e58ef(0x1dc)](_0x502055):this[_0x1e58ef(0x1e2)][_0x1e58ef(0x1dc)](_0x502055);});}[_0x29a56a(0x223)](_0x970f32){const _0x18cfa8=_0x29a56a;if(_0x970f32>0x0&&!this[_0x18cfa8(0x19e)]&&this[_0x18cfa8(0x1e7)](),_0x970f32>0x0&&this[_0x18cfa8(0x19e)]){const _0x2a9122=''+this[_0x18cfa8(0x1b8)][_0x18cfa8(0x1bb)]+(_0x970f32<0x63?_0x970f32:'99');this[_0x18cfa8(0x19e)][_0x18cfa8(0x1e8)]=_0x2a9122;}this[_0x18cfa8(0x1a0)](),this[_0x18cfa8(0x20f)](),this[_0x18cfa8(0x1a9)]();}[_0x29a56a(0x1f7)](_0x2907fc,_0x14c3ab){const _0x127f22=_0x29a56a;this[_0x127f22(0x20b)](_0x2907fc,_0x14c3ab),this[_0x127f22(0x223)](_0x14c3ab[_0x127f22(0x203)]);}[_0x29a56a(0x1d4)](){const _0x340d4a=_0x29a56a;this[_0x340d4a(0x207)]&&_0x340d4a(0x1e9)!=typeof IntersectionObserver&&(this[_0x340d4a(0x1d6)]=new IntersectionObserver(_0x2e1358=>{const _0x4226bf=_0x340d4a;_0x2e1358[0x0][_0x4226bf(0x1c2)]&&this[_0x4226bf(0x1d9)]&&requestAnimationFrame(()=>{const _0x586edf=_0x4226bf;this[_0x586edf(0x1bc)]();});},{'threshold':0.01,'rootMargin':_0x340d4a(0x20a)}),this[_0x340d4a(0x1d6)][_0x340d4a(0x221)](this[_0x340d4a(0x207)]));}[_0x29a56a(0x22a)](){const _0x1dc06b=_0x29a56a;if(!this[_0x1dc06b(0x207)])return!0x1;if(!this[_0x1dc06b(0x207)][_0x1dc06b(0x1cb)])return!0x1;const _0x2049ca=this[_0x1dc06b(0x207)][_0x1dc06b(0x226)]();if(0x0===_0x2049ca[_0x1dc06b(0x1ae)]||0x0===_0x2049ca[_0x1dc06b(0x224)])return!0x1;const _0x482432=window[_0x1dc06b(0x209)]||document[_0x1dc06b(0x1a4)][_0x1dc06b(0x1cd)],_0x2759ed=window[_0x1dc06b(0x1ac)]||document[_0x1dc06b(0x1a4)][_0x1dc06b(0x19c)],_0x15c4bb=0xc8;return _0x2049ca[_0x1dc06b(0x1f2)]>=-0xc8&&_0x2049ca[_0x1dc06b(0x20c)]<=_0x482432+_0x15c4bb&&_0x2049ca[_0x1dc06b(0x1b9)]>=-0xc8&&_0x2049ca[_0x1dc06b(0x1f5)]<=_0x2759ed+_0x15c4bb;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5f3e13=_0x82f5;function _0x82f5(_0x1c2889,_0x34ded9){const _0x169812=_0x1698();return _0x82f5=function(_0x82f58e,_0x951928){_0x82f58e=_0x82f58e-0x150;let _0x4e8181=_0x169812[_0x82f58e];return _0x4e8181;},_0x82f5(_0x1c2889,_0x34ded9);}(function(_0x47ad07,_0x1e5e92){const _0xd087a1=_0x82f5,_0x2876e9=_0x47ad07();while(!![]){try{const _0x316800=parseInt(_0xd087a1(0x186))/0x1+-parseInt(_0xd087a1(0x15f))/0x2*(parseInt(_0xd087a1(0x151))/0x3)+-parseInt(_0xd087a1(0x179))/0x4+parseInt(_0xd087a1(0x17d))/0x5*(-parseInt(_0xd087a1(0x17c))/0x6)+parseInt(_0xd087a1(0x16b))/0x7*(-parseInt(_0xd087a1(0x157))/0x8)+parseInt(_0xd087a1(0x173))/0x9+-parseInt(_0xd087a1(0x177))/0xa*(-parseInt(_0xd087a1(0x159))/0xb);if(_0x316800===_0x1e5e92)break;else _0x2876e9['push'](_0x2876e9['shift']());}catch(_0x5e3940){_0x2876e9['push'](_0x2876e9['shift']());}}}(_0x1698,0x87db2));import{ButtonView as _0x112990,IconView as _0x3b325c}from'ckeditor5/src/ui.js';import{IconClose as _0x536803,IconDocument as _0x4d599a,IconFileUpload as _0x44d9a2,IconLink as _0x2fbb25,IconSelection as _0x8372e2}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x256fa5}from'../../../aicore/utils/common-translations.js';function _0x1698(){const _0x577838=['ck-hidden','webkitAnimationEnd','isVisible','locale','_createRemoveButton','document','type','extendTemplate','_initializeProperties','3HvytpK','readonly','disableAnimationOnEnter','ck-ai-chat-context-chip_document','_isAnimationOnEnterEnabled','bindTemplate','265656PKaiBq','_setupTemplate','9613538lRHGYa','selection','_createLabelElement','ck-ai-chat-context-chip_new-chip','ck-ai-chat-context-chip_wide','itemType','2027306GWbVQq','_createLoaderIcon','ck-ai-chat-context-controls__chip-tooltip','removeContextItemChip','small','bind','setTemplate','fire','slice','classList','add','_handleAnimationEndOnce','7nOGYLT','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','render','set','ck-ai-chat-context-chip__label','addEventListener','isLoading','element','5639400UKSNUD','length','span','animationend','20yCycmd','lastIndexOf','3555168MaDsoI','label','remove','584754rDPraI','5sKUDbb','tooltip','_createTemplateChildren','_createTemplateAttributes','execute','_createIconView','ck-ai-chat-context-chip__type-icon','_setupRemoveButtonEvent','uiId','215061kprUZq','div','removeEventListener','content','ck-ai-chat-context-chip'];_0x1698=function(){return _0x577838;};return _0x1698();}import{AISpinnerView as _0x5cc7f0}from'../../../aicore/ui/aispinner.js';const xn={'file':_0x44d9a2,'document':_0x4d599a,'web-resource':_0x2fbb25,'text':_0x44d9a2,'selection':_0x8372e2,'mcp-tool-context':_0x4d599a},bn=_0x5f3e13(0x18a),wn=_0x5f3e13(0x15d),Tn=_0x5f3e13(0x154),En=_0x5f3e13(0x16f),fn=_0x5f3e13(0x183),An=_0x5f3e13(0x161),Cn='n';export class AIChatContextItemButtonView extends _0x112990{constructor(_0x14cb20,_0x191a8e,_0x1a9d8d,_0x41bee9,_0x16e7bc=!0x1){const _0x3ea254=_0x5f3e13;super(_0x14cb20),this[_0x3ea254(0x155)]=_0x41bee9,this[_0x3ea254(0x150)](_0x191a8e,_0x1a9d8d,_0x16e7bc),this[_0x3ea254(0x158)]();}[_0x5f3e13(0x16d)](){const _0x3660ef=_0x5f3e13;super[_0x3660ef(0x16d)](),this[_0x3660ef(0x155)]&&this[_0x3660ef(0x172)]&&(this[_0x3660ef(0x172)][_0x3660ef(0x168)][_0x3660ef(0x169)](_0x3660ef(0x15c)),this[_0x3660ef(0x16a)](this[_0x3660ef(0x172)],()=>{const _0xe70219=_0x3660ef;this[_0xe70219(0x172)]&&this[_0xe70219(0x172)][_0xe70219(0x168)][_0xe70219(0x17b)](_0xe70219(0x15c));}));}[_0x5f3e13(0x153)](){const _0x19e84d=_0x5f3e13;this[_0x19e84d(0x155)]=!0x1,this[_0x19e84d(0x172)]&&this[_0x19e84d(0x172)][_0x19e84d(0x168)][_0x19e84d(0x17b)](_0x19e84d(0x15c));}[_0x5f3e13(0x150)](_0x491a23,_0x505ef6,_0x188a50){const _0x59f516=_0x5f3e13;this[_0x59f516(0x16e)](_0x59f516(0x17a),_0x491a23[_0x59f516(0x17a)]),this[_0x59f516(0x16e)](_0x59f516(0x17e),!0x0),this[_0x59f516(0x16e)](_0x59f516(0x15e),_0x491a23[_0x59f516(0x191)]),this[_0x59f516(0x16e)]('id',_0x491a23[_0x59f516(0x185)]),this[_0x59f516(0x16e)](_0x59f516(0x152),_0x505ef6),this[_0x59f516(0x16e)](_0x59f516(0x171),_0x188a50);}[_0x5f3e13(0x158)](){const _0x1fa83d=_0x5f3e13,_0x542f15=this[_0x1fa83d(0x182)](),_0xd9dc00=this[_0x1fa83d(0x18f)](),_0x25dc72=this[_0x1fa83d(0x156)];this[_0x1fa83d(0x165)]({'tag':_0x1fa83d(0x187),'attributes':this[_0x1fa83d(0x180)](_0x25dc72),'children':this[_0x1fa83d(0x17f)](_0x542f15,_0xd9dc00,_0x25dc72)});}[_0x5f3e13(0x180)](_0x31c601){const _0x5506c9=_0x5f3e13;return{'class':[bn,_0x31c601['if'](_0x5506c9(0x15e),Tn,_0x18721b=>_0x5506c9(0x190)==_0x18721b),_0x31c601['if'](_0x5506c9(0x15e),wn,_0x21c93e=>_0x5506c9(0x15a)==_0x21c93e)],'data-cke-tooltip-text':_0x31c601['to'](_0x5506c9(0x17a),In),'data-cke-tooltip-position':Cn,'data-cke-tooltip-class':An};}[_0x5f3e13(0x17f)](_0x4915d6,_0x480f98,_0x53ac8e){const _0x468d68=_0x5f3e13,_0x21e3ed=this[_0x468d68(0x15b)](_0x53ac8e),_0x128e57=this[_0x468d68(0x160)]();return this[_0x468d68(0x152)]?[_0x4915d6,_0x21e3ed]:[_0x4915d6,_0x128e57,_0x21e3ed,_0x480f98];}[_0x5f3e13(0x15b)](_0x5435ba){const _0x3e924a=_0x5f3e13;return{'tag':_0x3e924a(0x175),'attributes':{'class':En},'children':[{'text':_0x5435ba['to'](_0x3e924a(0x17a))}]};}[_0x5f3e13(0x18f)](){const _0x48a85c=_0x5f3e13,_0x1d1673=new _0x112990(this[_0x48a85c(0x18e)]);return _0x1d1673[_0x48a85c(0x16e)]({'label':_0x256fa5(this[_0x48a85c(0x18e)],_0x48a85c(0x16c)),'icon':_0x536803}),this[_0x48a85c(0x184)](_0x1d1673),_0x1d1673;}[_0x5f3e13(0x184)](_0x4fb4e0){const _0x3ede42=_0x5f3e13;_0x4fb4e0['on'](_0x3ede42(0x181),()=>{const _0x54876d=_0x3ede42;this[_0x54876d(0x166)](_0x54876d(0x162),this['id']);});}[_0x5f3e13(0x182)](){const _0x8a23d4=_0x5f3e13,_0x38d24b=this[_0x8a23d4(0x156)],_0x202f00=new _0x3b325c();return _0x202f00[_0x8a23d4(0x189)]=xn[this[_0x8a23d4(0x15e)]],_0x202f00[_0x8a23d4(0x192)]({'attributes':{'class':[fn,_0x38d24b['if'](_0x8a23d4(0x171),_0x8a23d4(0x18b),_0x24359e=>_0x24359e)]}}),_0x202f00;}[_0x5f3e13(0x16a)](_0x3772b7,_0x2891c7){const _0xb2510f=_0x5f3e13;if(!_0x3772b7)return;const _0x5abad1=()=>{const _0x1c4fe0=_0x82f5;_0x2891c7(),_0x3772b7[_0x1c4fe0(0x188)](_0x1c4fe0(0x176),_0x5abad1),_0x3772b7[_0x1c4fe0(0x188)](_0x1c4fe0(0x18c),_0x5abad1);};_0x3772b7[_0xb2510f(0x170)](_0xb2510f(0x176),_0x5abad1),_0x3772b7[_0xb2510f(0x170)](_0xb2510f(0x18c),_0x5abad1);}[_0x5f3e13(0x160)](){const _0x8f31c6=_0x5f3e13,_0x4d5ecb=new _0x5cc7f0(_0x8f31c6(0x163));return _0x4d5ecb[_0x8f31c6(0x164)](_0x8f31c6(0x18d))['to'](this,_0x8f31c6(0x171),_0x21654d=>_0x21654d),_0x4d5ecb;}}function In(_0x5e42a4){const _0x5cbc28=_0x5f3e13;if(!_0x5e42a4)return _0x5e42a4;if(_0x5e42a4[_0x5cbc28(0x174)]<=0x78)return _0x5e42a4;const _0x4a2baf=_0x5e42a4[_0x5cbc28(0x167)](0x0,0x78),_0x318219=_0x4a2baf[_0x5cbc28(0x178)]('\x20');return(_0x318219>0x0?_0x4a2baf[_0x5cbc28(0x167)](0x0,_0x318219):_0x4a2baf)+'…';}
23
+ const _0x2af966=_0x1eba;(function(_0x51f972,_0x3c19e){const _0x369f93=_0x1eba,_0x19da5c=_0x51f972();while(!![]){try{const _0x1115fd=-parseInt(_0x369f93(0x1cb))/0x1+-parseInt(_0x369f93(0x19b))/0x2+-parseInt(_0x369f93(0x1ab))/0x3+parseInt(_0x369f93(0x191))/0x4+parseInt(_0x369f93(0x1a8))/0x5+-parseInt(_0x369f93(0x197))/0x6+parseInt(_0x369f93(0x192))/0x7;if(_0x1115fd===_0x3c19e)break;else _0x19da5c['push'](_0x19da5c['shift']());}catch(_0x25bd1a){_0x19da5c['push'](_0x19da5c['shift']());}}}(_0x3d1b,0x66a47));import{ButtonView as _0x3aecc6,IconView as _0x2906e6}from'ckeditor5/src/ui.js';import{IconClose as _0x15dc09,IconDocument as _0x2036c0,IconFileUpload as _0xdbff74,IconLink as _0x4c2004,IconSelection as _0x10a5bd}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x5cf491}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x3db21c}from'../../../aicore/ui/aispinner.js';const xn={'file':_0xdbff74,'document':_0x2036c0,'web-resource':_0x4c2004,'text':_0xdbff74,'selection':_0x10a5bd,'mcp-tool-context':_0x2036c0},bn=_0x2af966(0x1ce),wn=_0x2af966(0x1af),Tn=_0x2af966(0x198),En=_0x2af966(0x1c3),fn=_0x2af966(0x1b1),An=_0x2af966(0x1ad),Cn='n';export class AIChatContextItemButtonView extends _0x3aecc6{constructor(_0x180166,_0x52f049,_0x576fc4,_0x203e79,_0x3e8913=!0x1){const _0x5d91b5=_0x2af966;super(_0x180166),this[_0x5d91b5(0x1cf)]=_0x203e79,this[_0x5d91b5(0x19d)](_0x52f049,_0x576fc4,_0x3e8913),this[_0x5d91b5(0x1c2)]();}[_0x2af966(0x1b4)](){const _0x4bccb6=_0x2af966;super[_0x4bccb6(0x1b4)](),this[_0x4bccb6(0x1cf)]&&this[_0x4bccb6(0x19a)]&&(this[_0x4bccb6(0x19a)][_0x4bccb6(0x195)][_0x4bccb6(0x1b8)](_0x4bccb6(0x1a5)),this[_0x4bccb6(0x1bb)](this[_0x4bccb6(0x19a)],()=>{const _0x23603f=_0x4bccb6;this[_0x23603f(0x19a)]&&this[_0x23603f(0x19a)][_0x23603f(0x195)][_0x23603f(0x1c5)](_0x23603f(0x1a5));}));}[_0x2af966(0x199)](){const _0x5d8505=_0x2af966;this[_0x5d8505(0x1cf)]=!0x1,this[_0x5d8505(0x19a)]&&this[_0x5d8505(0x19a)][_0x5d8505(0x195)][_0x5d8505(0x1c5)](_0x5d8505(0x1a5));}[_0x2af966(0x19d)](_0x5ccc70,_0x34fc14,_0x19148b){const _0x4ac23b=_0x2af966;this[_0x4ac23b(0x1c1)](_0x4ac23b(0x1b7),_0x5ccc70[_0x4ac23b(0x1b7)]),this[_0x4ac23b(0x1c1)](_0x4ac23b(0x1bd),!0x0),this[_0x4ac23b(0x1c1)](_0x4ac23b(0x1ae),_0x5ccc70[_0x4ac23b(0x1bc)]),this[_0x4ac23b(0x1c1)]('id',_0x5ccc70[_0x4ac23b(0x1c4)]),this[_0x4ac23b(0x1c1)](_0x4ac23b(0x1a4),_0x34fc14),this[_0x4ac23b(0x1c1)](_0x4ac23b(0x1a6),_0x19148b);}[_0x2af966(0x1c2)](){const _0x4dc2a5=_0x2af966,_0x539ae9=this[_0x4dc2a5(0x1a1)](),_0x2e2de6=this[_0x4dc2a5(0x1a7)](),_0x4e0ce3=this[_0x4dc2a5(0x1ca)];this[_0x4dc2a5(0x196)]({'tag':_0x4dc2a5(0x194),'attributes':this[_0x4dc2a5(0x1b0)](_0x4e0ce3),'children':this[_0x4dc2a5(0x1b3)](_0x539ae9,_0x2e2de6,_0x4e0ce3)});}[_0x2af966(0x1b0)](_0x19d9a6){const _0x4d0237=_0x2af966;return{'class':[bn,_0x19d9a6['if'](_0x4d0237(0x1ae),Tn,_0x2ac33e=>_0x4d0237(0x1c6)==_0x2ac33e),_0x19d9a6['if'](_0x4d0237(0x1ae),wn,_0x18ee5d=>_0x4d0237(0x1c9)==_0x18ee5d)],'data-cke-tooltip-text':_0x19d9a6['to'](_0x4d0237(0x1b7),In),'data-cke-tooltip-position':Cn,'data-cke-tooltip-class':An};}[_0x2af966(0x1b3)](_0x527108,_0x20aaad,_0x54b42a){const _0x5201b1=_0x2af966,_0xf3d782=this[_0x5201b1(0x1a0)](_0x54b42a),_0x289841=this[_0x5201b1(0x1c7)]();return this[_0x5201b1(0x1a4)]?[_0x527108,_0xf3d782]:[_0x527108,_0x289841,_0xf3d782,_0x20aaad];}[_0x2af966(0x1a0)](_0x117838){const _0x4fe49c=_0x2af966;return{'tag':_0x4fe49c(0x1ba),'attributes':{'class':En},'children':[{'text':_0x117838['to'](_0x4fe49c(0x1b7))}]};}[_0x2af966(0x1a7)](){const _0x1278f8=_0x2af966,_0x273273=new _0x3aecc6(this[_0x1278f8(0x19e)]);return _0x273273[_0x1278f8(0x1c1)]({'label':_0x5cf491(this[_0x1278f8(0x19e)],_0x1278f8(0x1b5)),'icon':_0x15dc09}),this[_0x1278f8(0x1be)](_0x273273),_0x273273;}[_0x2af966(0x1be)](_0x30526c){const _0x4a8b6c=_0x2af966;_0x30526c['on'](_0x4a8b6c(0x1c8),()=>{const _0x147b2f=_0x4a8b6c;this[_0x147b2f(0x1b6)](_0x147b2f(0x1cd),this['id']);});}[_0x2af966(0x1a1)](){const _0x434dae=_0x2af966,_0x2c8a3b=this[_0x434dae(0x1ca)],_0x1e1195=new _0x2906e6();return _0x1e1195[_0x434dae(0x1ac)]=xn[this[_0x434dae(0x1ae)]],_0x1e1195[_0x434dae(0x19c)]({'attributes':{'class':[fn,_0x2c8a3b['if'](_0x434dae(0x1a6),_0x434dae(0x19f),_0x53756b=>_0x53756b)]}}),_0x1e1195;}[_0x2af966(0x1bb)](_0x5ba54a,_0x4c9281){const _0x36078b=_0x2af966;if(!_0x5ba54a)return;const _0x38f5da=()=>{const _0x1df30e=_0x1eba;_0x4c9281(),_0x5ba54a[_0x1df30e(0x193)](_0x1df30e(0x1a3),_0x38f5da),_0x5ba54a[_0x1df30e(0x193)](_0x1df30e(0x1b9),_0x38f5da);};_0x5ba54a[_0x36078b(0x1a2)](_0x36078b(0x1a3),_0x38f5da),_0x5ba54a[_0x36078b(0x1a2)](_0x36078b(0x1b9),_0x38f5da);}[_0x2af966(0x1c7)](){const _0x2d1532=_0x2af966,_0x31a5b4=new _0x3db21c(_0x2d1532(0x1b2));return _0x31a5b4[_0x2d1532(0x1a9)](_0x2d1532(0x1aa))['to'](this,_0x2d1532(0x1a6),_0x4a5f09=>_0x4a5f09),_0x31a5b4;}}function In(_0x39fae0){const _0x5ee511=_0x2af966;if(!_0x39fae0)return _0x39fae0;if(_0x39fae0[_0x5ee511(0x1bf)]<=0x78)return _0x39fae0;const _0x26e48a=_0x39fae0[_0x5ee511(0x1cc)](0x0,0x78),_0x39e739=_0x26e48a[_0x5ee511(0x1c0)]('\x20');return(_0x39e739>0x0?_0x26e48a[_0x5ee511(0x1cc)](0x0,_0x39e739):_0x26e48a)+'…';}function _0x1eba(_0x4043ed,_0x2004d6){const _0x3d1bd9=_0x3d1b();return _0x1eba=function(_0x1ebaab,_0x421158){_0x1ebaab=_0x1ebaab-0x191;let _0x58040e=_0x3d1bd9[_0x1ebaab];return _0x58040e;},_0x1eba(_0x4043ed,_0x2004d6);}function _0x3d1b(){const _0x386258=['readonly','ck-ai-chat-context-chip_new-chip','isLoading','_createRemoveButton','1403160AKCJIw','bind','isVisible','2179194NOZgYo','content','ck-ai-chat-context-controls__chip-tooltip','itemType','ck-ai-chat-context-chip_wide','_createTemplateAttributes','ck-ai-chat-context-chip__type-icon','small','_createTemplateChildren','render','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','fire','label','add','webkitAnimationEnd','span','_handleAnimationEndOnce','type','tooltip','_setupRemoveButtonEvent','length','lastIndexOf','set','_setupTemplate','ck-ai-chat-context-chip__label','uiId','remove','document','_createLoaderIcon','execute','selection','bindTemplate','570290jUySxW','slice','removeContextItemChip','ck-ai-chat-context-chip','_isAnimationOnEnterEnabled','1495576aRnwNG','14972468GoXheM','removeEventListener','div','classList','setTemplate','1823958rFfoYu','ck-ai-chat-context-chip_document','disableAnimationOnEnter','element','1544692JHlenp','extendTemplate','_initializeProperties','locale','ck-hidden','_createLabelElement','_createIconView','addEventListener','animationend'];_0x3d1b=function(){return _0x386258;};return _0x3d1b();}