@ckeditor/ckeditor5-ai 47.6.2-alpha.0 → 47.6.2-alpha.1

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 _0x1baad4=_0x17f3;(function(_0x5ca3a4,_0x382aa9){const _0x3290f9=_0x17f3,_0x388d14=_0x5ca3a4();while(!![]){try{const _0x1e2e1b=parseInt(_0x3290f9(0xde))/0x1*(parseInt(_0x3290f9(0xdf))/0x2)+-parseInt(_0x3290f9(0xd0))/0x3+-parseInt(_0x3290f9(0x8a))/0x4+-parseInt(_0x3290f9(0xcd))/0x5+-parseInt(_0x3290f9(0xd9))/0x6*(-parseInt(_0x3290f9(0xca))/0x7)+parseInt(_0x3290f9(0xa5))/0x8+parseInt(_0x3290f9(0xcf))/0x9*(parseInt(_0x3290f9(0xe5))/0xa);if(_0x1e2e1b===_0x382aa9)break;else _0x388d14['push'](_0x388d14['shift']());}catch(_0x1fe712){_0x388d14['push'](_0x388d14['shift']());}}}(_0x52d4,0x1c6ab));import{CKEditorError as _0x2f3932,EmitterMixin as _0x5d4eae,logWarning as _0x170edb}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x9a1559}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x4cd5dd,AI_CONTEXT_MODEL_EVENT_NAMES as _0x82ac4}from'./aichatcontext.js';import{AICapabilities as _0x250680,CAPABILITIES_MODEL_EVENT_NAMES as _0x296dac}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x41454a}from'./aichatinteraction.js';function _0x17f3(_0xfaaa53,_0x5ee57e){const _0x52d446=_0x52d4();return _0x17f3=function(_0x17f38c,_0x22a975){_0x17f38c=_0x17f38c-0x85;let _0x4d98b1=_0x52d446[_0x17f38c];return _0x4d98b1;},_0x17f3(_0xfaaa53,_0x5ee57e);}function _0x52d4(){const _0x203364=['startConversation','_processMessagesToInteractions','getEditor','options','toggleReasoning','currentInteraction','ai-chat-conversation-start-failed','ai-chat-handle-user-interaction-already-in-progress','266xBVQEm','getAvailableModels','code','571210wkdzzU','toolName','9dtyBlJ','221889tghLwn','ai-chat-conversation-init-from-id-failed','find','setWebSearch','selectedModelId','loadSourceResources','createReply','handleUserInteraction','getAll','2712LLhBss','isCurrentDocumentInConversation','isStarted','modelSelected','appendContent','29pVodda','8326agMPHb','length','attributes','stop','populateFromMessage','ai-chat-conversation-set-model-not-available','1980310SeuNvW','getPendingContextItems','text','ai-chat-conversation-set-model-null','toggleWebSearch','mcp-tool-result','group','indexOf','getMessages','conversationStarted','chatCapabilities','type','url','getCurrentDocumentContext','selectedModel','reset','toLowerCase','getInteraction','conversationId','addSelectionToContext','createInteraction','conversationInitialized','prompt','message','addToConversationContext','destroy','interactionCreated','setModel','load','start','contextItems','setReasoning','chatContext','getConversation','delegate','335896VLNsiY','removeInteraction','setConversationTitle','currentReply','fetchConversationMessages','interactions','push','ai-chat-handle-user-interaction-start-failed','getCapabilitiesConfig','assistant','content','ai-chat-handle-user-conversation-not-initialized','hasOwn','user','sessionId','isSelectionInContext','addCurrentDocumentToContext','updateCurrentDocument','updateCurrentDocumentInContext','getModel','removeSelectionFromContext','set','isFromHistory','role','addToolItemToContext','parse','_extractContextItems','421120VGMxwY','connector','title','lastInteraction','ai-chat-conversation-start-no-model-selected','init','removeFromContext','isCurrentDocumentInContext','error','ai-chat-conversation-already-started','getDocumentContext','addFilesToContext','reasoning','addResourceToContext','isAvailable','modification','capabilities','model','stack','webSearch','fire','splice','_handleToolResultData','get','addUrlToContext','chatModels','fetchConversation','ai-chat-conversation-init-failed','sources'];_0x52d4=function(){return _0x203364;};return _0x52d4();}import{errorsMap as _0x111c90}from'../../errorsmap.js';export class AIChatConversation extends _0x5d4eae(){['id'];[_0x1baad4(0xdb)]=!0x1;[_0x1baad4(0xa0)];[_0x1baad4(0x8f)]=[];[_0x1baad4(0xc7)];[_0x1baad4(0xf3)];[_0x1baad4(0xa6)];[_0x1baad4(0xc5)];constructor(_0x518bef){const _0x257fb8=_0x1baad4;super(),this[_0x257fb8(0xc5)]=_0x518bef,this[_0x257fb8(0xa6)]=_0x518bef[_0x257fb8(0xa6)],this[_0x257fb8(0xbe)]=_0x518bef[_0x257fb8(0xbe)],this['id']=_0x518bef[_0x257fb8(0xf7)],this[_0x257fb8(0xa0)]=_0x518bef[_0x257fb8(0xa0)];}async[_0x1baad4(0xaa)](_0x59f7f8){const _0x17eb12=_0x1baad4;try{this[_0x17eb12(0x87)]=new _0x4cd5dd({'connector':this[_0x17eb12(0xa6)],'config':_0x59f7f8,'ownerId':this['id']}),this[_0x17eb12(0x87)][_0x17eb12(0x89)](..._0x82ac4)['to'](this),this[_0x17eb12(0x87)][_0x17eb12(0xaa)](),this[_0x17eb12(0xef)]=new _0x250680(),this[_0x17eb12(0xef)][_0x17eb12(0x89)](..._0x296dac)['to'](this),this[_0x17eb12(0xef)][_0x17eb12(0xaa)]();const _0x2776c6=await this[_0x17eb12(0xbe)][_0x17eb12(0xcb)]();this[_0x17eb12(0xb9)](_0x17eb12(0xfa),{'availableModels':_0x2776c6});const _0x5b396d=await this[_0x17eb12(0xbe)][_0x17eb12(0x9d)](this[_0x17eb12(0xc5)][_0x17eb12(0xd4)]);_0x5b396d&&await this[_0x17eb12(0x100)](_0x5b396d);}catch(_0x203247){const _0x338b7d=new _0x2f3932(_0x17eb12(0xc0),null,{'message':_0x203247[_0x17eb12(0xfc)]||_0x203247});_0x338b7d[_0x17eb12(0xb7)]=_0x203247[_0x17eb12(0xb7)],this[_0x17eb12(0xb9)](_0x17eb12(0xad),{'error':_0x338b7d});}}async[_0x1baad4(0x102)](){const _0x573931=_0x1baad4;if(this[_0x573931(0xdb)])throw new _0x2f3932(_0x573931(0xae),null,{'conversation':this});if(!this[_0x573931(0xf3)])throw new _0x2f3932(_0x573931(0xa9),null,{'conversation':this});try{const {id:_0x44c621}=await this[_0x573931(0xa6)][_0x573931(0xc2)](this['id'],this[_0x573931(0xc5)][_0x573931(0xeb)])[_0x573931(0x88)]();this['id']=_0x44c621,this[_0x573931(0xdb)]=!0x0,this[_0x573931(0xb9)](_0x573931(0xee),{'conversationId':this['id'],'selectedModel':this[_0x573931(0xf3)]});}catch(_0x40439e){const _0x1eed37=new _0x2f3932(_0x573931(0xc8),null,{'message':_0x40439e[_0x573931(0xfc)],'conversationId':this['id']});throw _0x1eed37[_0x573931(0xb7)]=_0x40439e[_0x573931(0xb7)],this[_0x573931(0xb9)](_0x573931(0xad),{'error':_0x1eed37}),_0x1eed37;}}async[_0x1baad4(0x101)](_0x91ae26,_0x570fca){const _0x370f37=_0x1baad4;try{const _0x5f2b7b=await this[_0x370f37(0xa6)][_0x370f37(0xbf)](_0x91ae26)[_0x370f37(0x88)](),_0x4e16db=await this[_0x370f37(0xa6)][_0x370f37(0x8e)](_0x91ae26)[_0x370f37(0xed)](),_0x1d1e5d=_0x4e16db[0x0][_0x370f37(0xb6)];this[_0x370f37(0xdb)]=!0x0,this['id']=_0x5f2b7b['id'],_0x370f37(0xa7)in _0x5f2b7b?this[_0x370f37(0xb9)](_0x370f37(0x8c),_0x5f2b7b[_0x370f37(0xa7)],!0x0):this[_0x370f37(0xb9)](_0x370f37(0x8c),'',!0x0);const _0x2f7832=(await this[_0x370f37(0xbe)][_0x370f37(0xd8)]())[_0x370f37(0xd2)](_0x22f8ae=>_0x22f8ae['id'][_0x370f37(0xf5)]()===_0x1d1e5d[_0x370f37(0xf5)]());return this[_0x370f37(0xf3)]=_0x2f7832,this[_0x370f37(0xb9)](_0x370f37(0xdc),{'selectedModel':_0x2f7832,'isDisabled':!0x0}),await this[_0x370f37(0xc3)](_0x4e16db,_0x570fca,_0x1d1e5d),this[_0x370f37(0xc7)]=void 0x0,this;}catch(_0xbec0c1){const _0x522b99=new _0x2f3932(_0x370f37(0xd1),null,{'message':_0xbec0c1[_0x370f37(0xfc)],'conversationId':_0x91ae26});throw _0x522b99[_0x370f37(0xb7)]=_0xbec0c1[_0x370f37(0xb7)],this[_0x370f37(0xb9)](_0x370f37(0xad),{'error':_0x522b99}),_0x522b99;}}async[_0x1baad4(0xc3)](_0x564cd3,_0x2853d3,_0x5aeb77){const _0x13377d=_0x1baad4;let _0x5c2f4b;for(const _0x13362e of _0x564cd3)if(_0x13377d(0x97)===_0x13362e[_0x13377d(0xa1)]){const _0x47eb47=await this[_0x13377d(0xa4)](_0x13362e),_0x1af229={'isReasoningEnabled':Object[_0x13377d(0x96)](_0x13362e[_0x13377d(0xb5)],_0x13377d(0xb1)),'isWebSearchEnabled':Object[_0x13377d(0x96)](_0x13362e[_0x13377d(0xb5)],_0x13377d(0xb8))};_0x5c2f4b=this[_0x13377d(0xf9)]({'userMessage':_0x13362e[_0x13377d(0xfb)],'contextItems':_0x47eb47,'capabilities':_0x1af229,'modelId':_0x5aeb77,'attributes':_0x13362e[_0x13377d(0xe1)]}),this[_0x13377d(0xc7)]=_0x5c2f4b,this[_0x13377d(0x87)][_0x13377d(0xfd)](this[_0x13377d(0xc7)][_0x13377d(0x85)]);}else{if(_0x13377d(0x93)===_0x13362e[_0x13377d(0xa1)]&&_0x5c2f4b){const _0x983071=[];for(const _0x10122d of _0x13362e[_0x13377d(0x94)])switch(_0x10122d[_0x13377d(0xf0)]){case _0x13377d(0xe7):case _0x13377d(0xb4):{const _0x2224b5=_0x5c2f4b[_0x13377d(0xaf)]()?.[_0x13377d(0x98)]!==_0x2853d3;_0x5c2f4b[_0x13377d(0x8d)]=_0x5c2f4b[_0x13377d(0xd6)]({'type':_0x10122d[_0x13377d(0xf0)],'isDone':!0x0,'interactionId':_0x5c2f4b['id'],'areActionsDisabled':_0x2224b5}),_0x5c2f4b[_0x13377d(0x8d)][_0x13377d(0xdd)](_0x10122d[_0x13377d(0x94)]),_0x983071[_0x13377d(0xe0)]>0x0&&(_0x5c2f4b[_0x13377d(0x8d)][_0x13377d(0xc1)]=_0x983071[_0x13377d(0xba)](0x0));break;}case _0x13377d(0xf1):_0x983071[_0x13377d(0x90)](_0x10122d);break;case _0x13377d(0xea):{const {data:_0x648c4b,attributes:_0x4fa738}=JSON[_0x13377d(0xa3)](_0x10122d[_0x13377d(0x94)]);_0x5c2f4b[_0x13377d(0xbb)]({'toolName':_0x10122d[_0x13377d(0xce)],'data':_0x648c4b,'attributes':_0x4fa738});break;}}}}}async[_0x1baad4(0xa4)](_0x45fba8){const _0x47a2e4=_0x1baad4,_0x1cd6e1=new Map();if(!_0x45fba8[_0x47a2e4(0x94)])return _0x1cd6e1;for(const _0x501d31 of _0x45fba8[_0x47a2e4(0x94)]){const _0x7b7f0a=await this[_0x47a2e4(0x87)][_0x47a2e4(0xe3)](_0x501d31);_0x7b7f0a&&_0x1cd6e1[_0x47a2e4(0x9f)](_0x7b7f0a['id'],_0x7b7f0a);}return _0x1cd6e1;}async[_0x1baad4(0xd7)]({userMessage:_0x5b7573,attributes:_0x30e4b0}){const _0x14bc3e=_0x1baad4;if(!this[_0x14bc3e(0xdb)])throw new _0x2f3932(_0x14bc3e(0x95),null,{'conversation':this});if(this[_0x14bc3e(0xc7)])throw new _0x2f3932(_0x14bc3e(0xc9),null,{'conversation':this});try{const _0x269e4e=this[_0x14bc3e(0x87)][_0x14bc3e(0xe6)](),_0x465e2a=this[_0x14bc3e(0xef)][_0x14bc3e(0x92)](),_0x322f6b=this[_0x14bc3e(0xf3)]['id'];this[_0x14bc3e(0xc7)]=this[_0x14bc3e(0xf9)]({'userMessage':_0x5b7573,'contextItems':_0x269e4e,'capabilities':_0x465e2a,'modelId':_0x322f6b,'attributes':_0x30e4b0}),await this[_0x14bc3e(0xc7)][_0x14bc3e(0x102)](),this[_0x14bc3e(0x87)][_0x14bc3e(0xfd)](this[_0x14bc3e(0xc7)][_0x14bc3e(0x85)]);}catch(_0x3c06a9){if(_0x3c06a9 instanceof _0x2f3932)this[_0x14bc3e(0xb9)](_0x14bc3e(0xad),{'interactionId':this[_0x14bc3e(0xc7)]?this[_0x14bc3e(0xc7)]['id']:void 0x0,'error':_0x3c06a9});else{const _0x2af359=_0x111c90[_0x14bc3e(0xbc)](_0x3c06a9[_0x14bc3e(0xcc)])||_0x14bc3e(0x91);this[_0x14bc3e(0xb9)](_0x14bc3e(0xad),{'interactionId':this[_0x14bc3e(0xc7)]?this[_0x14bc3e(0xc7)]['id']:void 0x0,'error':new _0x2f3932(_0x2af359,null,{'error':_0x3c06a9})});}}finally{this[_0x14bc3e(0xc7)]?.[_0x14bc3e(0xe2)](),this[_0x14bc3e(0xc7)]=void 0x0;}}[_0x1baad4(0xf9)]({userMessage:_0xe95f23,contextItems:_0x4940c2,capabilities:_0x1e7c9e,modelId:_0x51d7aa,attributes:_0x545c0e}){const _0x101fcd=_0x1baad4,_0x540df6=new _0x41454a({'userMessage':_0xe95f23,'contextItems':_0x4940c2,'capabilities':_0x1e7c9e,'conversationId':this['id'],'connector':this[_0x101fcd(0xa6)],'editor':this[_0x101fcd(0xc5)][_0x101fcd(0xc4)]&&this[_0x101fcd(0xc5)][_0x101fcd(0xc4)](),'model':_0x51d7aa,'attributes':_0x545c0e});return _0x540df6[_0x101fcd(0x89)](..._0x9a1559)['to'](this),this[_0x101fcd(0x8f)][_0x101fcd(0x90)](_0x540df6),this[_0x101fcd(0xb9)](_0x101fcd(0xff),_0x540df6),_0x540df6;}[_0x1baad4(0xf6)](_0x412439){const _0x22073b=_0x1baad4;return this[_0x22073b(0x8f)][_0x22073b(0xd2)](_0xecf08d=>_0xecf08d['id']===_0x412439);}[_0x1baad4(0x8b)](_0x5eb03b){const _0x14fd7f=_0x1baad4,_0x4ab388=this[_0x14fd7f(0xf6)](_0x5eb03b);_0x4ab388&&(_0x4ab388[_0x14fd7f(0xfe)](),this[_0x14fd7f(0x8f)][_0x14fd7f(0xba)](this[_0x14fd7f(0x8f)][_0x14fd7f(0xec)](_0x4ab388),0x1));}get[_0x1baad4(0xa8)](){const _0x51d1b1=_0x1baad4;return this[_0x51d1b1(0x8f)][this[_0x51d1b1(0x8f)][_0x51d1b1(0xe0)]-0x1];}[_0x1baad4(0x9a)](_0x947732){const _0x439ddb=_0x1baad4;this[_0x439ddb(0x87)][_0x439ddb(0x9a)](_0x947732);}async[_0x1baad4(0x9c)]({content:_0x379bf3,version:_0x385c0f,sessionId:_0x98d6b6,selections:_0x437dc6}){const _0x43ab92=_0x1baad4;await this[_0x43ab92(0x87)][_0x43ab92(0x9b)](_0x379bf3,_0x385c0f,_0x98d6b6,_0x437dc6);}[_0x1baad4(0xf2)](){const _0x33a580=_0x1baad4;return this[_0x33a580(0xc7)]?.[_0x33a580(0xaf)]()?.[_0x33a580(0x94)]||'';}[_0x1baad4(0xf8)](_0x23431e){const _0x286aff=_0x1baad4;this[_0x286aff(0x87)][_0x286aff(0xf8)](_0x23431e);}[_0x1baad4(0x9e)](){const _0x5e4cba=_0x1baad4;this[_0x5e4cba(0x87)][_0x5e4cba(0x9e)]();}[_0x1baad4(0xb0)](_0x2c8141){const _0x1bc385=_0x1baad4;this[_0x1bc385(0x87)][_0x1bc385(0xb0)](_0x2c8141);}[_0x1baad4(0xbd)](_0x1fe64e){const _0x56d784=_0x1baad4;this[_0x56d784(0x87)][_0x56d784(0xbd)](_0x1fe64e);}[_0x1baad4(0xa2)](_0x32bae6){const _0x20689c=_0x1baad4;this[_0x20689c(0x87)][_0x20689c(0xa2)](_0x32bae6);}[_0x1baad4(0xb2)](_0x15d48b,_0x46b457){const _0x114f7e=_0x1baad4;this[_0x114f7e(0x87)][_0x114f7e(0xb2)](_0x15d48b,_0x46b457);}[_0x1baad4(0xd5)](_0x13f28f,_0x1b1bfb,_0x34a7e0){const _0x48d622=_0x1baad4;return this[_0x48d622(0x87)][_0x48d622(0xd5)](_0x13f28f,_0x1b1bfb,_0x34a7e0);}[_0x1baad4(0xab)](_0x191708){const _0x415398=_0x1baad4;this[_0x415398(0x87)][_0x415398(0xab)](_0x191708);}[_0x1baad4(0xd3)](_0x213313){const _0x461ad6=_0x1baad4;this[_0x461ad6(0xef)][_0x461ad6(0xd3)](_0x213313);}[_0x1baad4(0xe9)](){const _0xa102da=_0x1baad4;this[_0xa102da(0xef)][_0xa102da(0xe9)]();}[_0x1baad4(0x86)](_0x68f275){const _0x557a7b=_0x1baad4;this[_0x557a7b(0xef)][_0x557a7b(0x86)](_0x68f275);}[_0x1baad4(0xc6)](){const _0x5d3c9b=_0x1baad4;this[_0x5d3c9b(0xef)][_0x5d3c9b(0xc6)]();}[_0x1baad4(0xac)](){const _0x11040c=_0x1baad4;return this[_0x11040c(0x87)][_0x11040c(0xac)]();}[_0x1baad4(0xda)](){const _0x309ac6=_0x1baad4;return this[_0x309ac6(0x87)][_0x309ac6(0xda)]();}[_0x1baad4(0x99)](){const _0x2a98a6=_0x1baad4;return this[_0x2a98a6(0x87)][_0x2a98a6(0x99)]();}async[_0x1baad4(0x100)](_0x2f70af){const _0x4a8aa2=_0x1baad4;_0x2f70af?!0x1===await this[_0x4a8aa2(0xbe)][_0x4a8aa2(0xb3)](_0x2f70af)&&(_0x170edb(_0x4a8aa2(0xe4),{'conversation':this,'model':_0x2f70af}),_0x2f70af=(await this[_0x4a8aa2(0xbe)][_0x4a8aa2(0xcb)]())[0x0]):(_0x170edb(_0x4a8aa2(0xe8),{'conversation':this}),_0x2f70af=(await this[_0x4a8aa2(0xbe)][_0x4a8aa2(0xcb)]())[0x0]),_0x2f70af['id']!==this[_0x4a8aa2(0xf3)]?.['id']&&(this[_0x4a8aa2(0xf3)]=_0x2f70af,this[_0x4a8aa2(0xef)][_0x4a8aa2(0xf4)](),this[_0x4a8aa2(0xb9)](_0x4a8aa2(0xdc),{'selectedModel':_0x2f70af}));}}
23
+ function _0x5582(_0x68ae67,_0xc8cc67){const _0x573788=_0x5737();return _0x5582=function(_0x5582b2,_0x1c782c){_0x5582b2=_0x5582b2-0x92;let _0xfc17e9=_0x573788[_0x5582b2];return _0xfc17e9;},_0x5582(_0x68ae67,_0xc8cc67);}function _0x5737(){const _0x4b879f=['getDocumentContext','5wEjhMu','4667658vBvUWO','addSelectionToContext','ai-chat-conversation-set-model-not-available','reset','ai-chat-conversation-already-started','getInteraction','lastInteraction','mcp-tool-result','handleUserInteraction','ai-chat-conversation-set-model-null','createReply','code','webSearch','_processMessagesToInteractions','ai-chat-conversation-init-from-id-failed','getPendingContextItems','init','addFilesToContext','updateCurrentDocument','toggleReasoning','sessionId','4132gJjtVn','_extractContextItems','6364750wQsVwn','hasOwn','fetchConversationMessages','updateCurrentDocumentInContext','interactionCreated','setWebSearch','reasoning','toggleWebSearch','sources','toLowerCase','set','error','addUrlToContext','text','populateFromMessage','content','isCurrentDocumentInConversation','setConversationTitle','getAvailableModels','conversationStarted','conversationInitialized','ai-chat-handle-user-interaction-start-failed','10lPrAVW','6808992xjIrLx','isFromHistory','capabilities','fire','options','contextItems','connector','loadSourceResources','load','get','ai-chat-handle-user-interaction-already-in-progress','1302jJfcLU','isStarted','ai-chat-conversation-init-failed','setReasoning','addCurrentDocumentToContext','modification','length','toolName','chatContext','fetchConversation','ai-chat-conversation-start-failed','splice','removeInteraction','chatCapabilities','getCurrentDocumentContext','ai-chat-handle-user-conversation-not-initialized','setModel','push','getConversation','103963cURSfi','selectedModel','interactions','find','addResourceToContext','assistant','createInteraction','parse','indexOf','removeFromContext','isCurrentDocumentInContext','11fTUFTF','157592xHaCcq','model','selectedModelId','_handleToolResultData','message','modelSelected','isAvailable','getMessages','start','url','stop','getEditor','currentInteraction','getModel','destroy','chatModels','appendContent','removeSelectionFromContext','currentReply','isSelectionInContext','getAll','type','addToolItemToContext','7464090WfwhpP','333ricavl','startConversation','ai-chat-conversation-start-no-model-selected','attributes','role','prompt','title','conversationId','delegate','addToConversationContext','stack','getCapabilitiesConfig','user','group'];_0x5737=function(){return _0x4b879f;};return _0x5737();}const _0x1a90b3=_0x5582;(function(_0x2497d2,_0x34e4da){const _0x2342dd=_0x5582,_0x48fe32=_0x2497d2();while(!![]){try{const _0x4b58b2=-parseInt(_0x2342dd(0x9d))/0x1*(-parseInt(_0x2342dd(0xfe))/0x2)+parseInt(_0x2342dd(0x10a))/0x3*(parseInt(_0x2342dd(0xe6))/0x4)+-parseInt(_0x2342dd(0xd0))/0x5*(parseInt(_0x2342dd(0xd1))/0x6)+parseInt(_0x2342dd(0xe8))/0x7+-parseInt(_0x2342dd(0xa9))/0x8*(parseInt(_0x2342dd(0xc1))/0x9)+parseInt(_0x2342dd(0xc0))/0xa+-parseInt(_0x2342dd(0xa8))/0xb*(parseInt(_0x2342dd(0xff))/0xc);if(_0x4b58b2===_0x34e4da)break;else _0x48fe32['push'](_0x48fe32['shift']());}catch(_0x5a11c5){_0x48fe32['push'](_0x48fe32['shift']());}}}(_0x5737,0x862c6));import{CKEditorError as _0x198a6c,EmitterMixin as _0x30c377,logWarning as _0x5597b9}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x339024}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x9bbf66,AI_CONTEXT_MODEL_EVENT_NAMES as _0x13fde0}from'./aichatcontext.js';import{AICapabilities as _0x272f69,CAPABILITIES_MODEL_EVENT_NAMES as _0x538ffd}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0xe4269c}from'./aichatinteraction.js';import{errorsMap as _0x1e5e4b}from'../../errorsmap.js';export class AIChatConversation extends _0x30c377(){['id'];[_0x1a90b3(0x10b)]=!0x1;[_0x1a90b3(0x100)];[_0x1a90b3(0x9f)]=[];[_0x1a90b3(0xb5)];[_0x1a90b3(0x9e)];[_0x1a90b3(0x105)];[_0x1a90b3(0x103)];constructor(_0x5d514b){const _0x13d589=_0x1a90b3;super(),this[_0x13d589(0x103)]=_0x5d514b,this[_0x13d589(0x105)]=_0x5d514b[_0x13d589(0x105)],this[_0x13d589(0xb8)]=_0x5d514b[_0x13d589(0xb8)],this['id']=_0x5d514b[_0x13d589(0xc8)],this[_0x13d589(0x100)]=_0x5d514b[_0x13d589(0x100)];}async[_0x1a90b3(0xe1)](_0x23d912){const _0x4bd553=_0x1a90b3;try{this[_0x4bd553(0x92)]=new _0x9bbf66({'connector':this[_0x4bd553(0x105)],'config':_0x23d912,'ownerId':this['id']}),this[_0x4bd553(0x92)][_0x4bd553(0xc9)](..._0x13fde0)['to'](this),this[_0x4bd553(0x92)][_0x4bd553(0xe1)](),this[_0x4bd553(0x97)]=new _0x272f69(),this[_0x4bd553(0x97)][_0x4bd553(0xc9)](..._0x538ffd)['to'](this),this[_0x4bd553(0x97)][_0x4bd553(0xe1)]();const _0x47a080=await this[_0x4bd553(0xb8)][_0x4bd553(0xfa)]();this[_0x4bd553(0x102)](_0x4bd553(0xfc),{'availableModels':_0x47a080});const _0x4bd729=await this[_0x4bd553(0xb8)][_0x4bd553(0xb6)](this[_0x4bd553(0x103)][_0x4bd553(0xab)]);_0x4bd729&&await this[_0x4bd553(0x9a)](_0x4bd729);}catch(_0x1c9c28){const _0xf9c274=new _0x198a6c(_0x4bd553(0x10c),null,{'message':_0x1c9c28[_0x4bd553(0xad)]||_0x1c9c28});_0xf9c274[_0x4bd553(0xcb)]=_0x1c9c28[_0x4bd553(0xcb)],this[_0x4bd553(0x102)](_0x4bd553(0xf3),{'error':_0xf9c274});}}async[_0x1a90b3(0xb1)](){const _0x555df7=_0x1a90b3;if(this[_0x555df7(0x10b)])throw new _0x198a6c(_0x555df7(0xd5),null,{'conversation':this});if(!this[_0x555df7(0x9e)])throw new _0x198a6c(_0x555df7(0xc3),null,{'conversation':this});try{const {id:_0x1dbe16}=await this[_0x555df7(0x105)][_0x555df7(0xc2)](this['id'],this[_0x555df7(0x103)][_0x555df7(0xce)])[_0x555df7(0x9c)]();this['id']=_0x1dbe16,this[_0x555df7(0x10b)]=!0x0,this[_0x555df7(0x102)](_0x555df7(0xfb),{'conversationId':this['id'],'selectedModel':this[_0x555df7(0x9e)]});}catch(_0x54434){const _0x4329b0=new _0x198a6c(_0x555df7(0x94),null,{'message':_0x54434[_0x555df7(0xad)],'conversationId':this['id']});throw _0x4329b0[_0x555df7(0xcb)]=_0x54434[_0x555df7(0xcb)],this[_0x555df7(0x102)](_0x555df7(0xf3),{'error':_0x4329b0}),_0x4329b0;}}async[_0x1a90b3(0x107)](_0xf107b9,_0x10ab62){const _0x4a9f94=_0x1a90b3;try{const _0x428900=await this[_0x4a9f94(0x105)][_0x4a9f94(0x93)](_0xf107b9)[_0x4a9f94(0x9c)](),_0x4b5502=await this[_0x4a9f94(0x105)][_0x4a9f94(0xea)](_0xf107b9)[_0x4a9f94(0xb0)](),_0x42f704=_0x4b5502[0x0][_0x4a9f94(0xaa)];this[_0x4a9f94(0x10b)]=!0x0,this['id']=_0x428900['id'],_0x4a9f94(0xc7)in _0x428900?this[_0x4a9f94(0x102)](_0x4a9f94(0xf9),_0x428900[_0x4a9f94(0xc7)],!0x0):this[_0x4a9f94(0x102)](_0x4a9f94(0xf9),'',!0x0);const _0x126376=(await this[_0x4a9f94(0xb8)][_0x4a9f94(0xbd)]())[_0x4a9f94(0xa0)](_0x53443d=>_0x53443d['id'][_0x4a9f94(0xf1)]()===_0x42f704[_0x4a9f94(0xf1)]());return this[_0x4a9f94(0x9e)]=_0x126376,this[_0x4a9f94(0x102)](_0x4a9f94(0xae),{'selectedModel':_0x126376,'isDisabled':!0x0}),await this[_0x4a9f94(0xde)](_0x4b5502,_0x10ab62,_0x42f704),this[_0x4a9f94(0xb5)]=void 0x0,this;}catch(_0x4a583a){const _0x17cc15=new _0x198a6c(_0x4a9f94(0xdf),null,{'message':_0x4a583a[_0x4a9f94(0xad)],'conversationId':_0xf107b9});throw _0x17cc15[_0x4a9f94(0xcb)]=_0x4a583a[_0x4a9f94(0xcb)],this[_0x4a9f94(0x102)](_0x4a9f94(0xf3),{'error':_0x17cc15}),_0x17cc15;}}async[_0x1a90b3(0xde)](_0x3c8d20,_0x5730db,_0x3dc454){const _0x37dadd=_0x1a90b3;let _0x39952d;for(const _0x445c7f of _0x3c8d20)if(_0x37dadd(0xcd)===_0x445c7f[_0x37dadd(0xc5)]){const _0x5162cb=await this[_0x37dadd(0xe7)](_0x445c7f),_0x4cfab3={'isReasoningEnabled':Object[_0x37dadd(0xe9)](_0x445c7f[_0x37dadd(0x101)],_0x37dadd(0xee)),'isWebSearchEnabled':Object[_0x37dadd(0xe9)](_0x445c7f[_0x37dadd(0x101)],_0x37dadd(0xdd))};_0x39952d=this[_0x37dadd(0xa3)]({'userMessage':_0x445c7f[_0x37dadd(0xc6)],'contextItems':_0x5162cb,'capabilities':_0x4cfab3,'modelId':_0x3dc454,'attributes':_0x445c7f[_0x37dadd(0xc4)]}),this[_0x37dadd(0xb5)]=_0x39952d,this[_0x37dadd(0x92)][_0x37dadd(0xca)](this[_0x37dadd(0xb5)][_0x37dadd(0x104)]);}else{if(_0x37dadd(0xa2)===_0x445c7f[_0x37dadd(0xc5)]&&_0x39952d){const _0x1393d9=[];for(const _0x69f534 of _0x445c7f[_0x37dadd(0xf7)])switch(_0x69f534[_0x37dadd(0xbe)]){case _0x37dadd(0xf5):case _0x37dadd(0x10f):{const _0x8a89f5=_0x39952d[_0x37dadd(0xcf)]()?.[_0x37dadd(0xe5)]!==_0x5730db;_0x39952d[_0x37dadd(0xbb)]=_0x39952d[_0x37dadd(0xdb)]({'type':_0x69f534[_0x37dadd(0xbe)],'isDone':!0x0,'interactionId':_0x39952d['id'],'areActionsDisabled':_0x8a89f5}),_0x39952d[_0x37dadd(0xbb)][_0x37dadd(0xb9)](_0x69f534[_0x37dadd(0xf7)]),_0x1393d9[_0x37dadd(0x110)]>0x0&&(_0x39952d[_0x37dadd(0xbb)][_0x37dadd(0xf0)]=_0x1393d9[_0x37dadd(0x95)](0x0));break;}case _0x37dadd(0xb2):_0x1393d9[_0x37dadd(0x9b)](_0x69f534);break;case _0x37dadd(0xd8):{const {data:_0x5a5071,attributes:_0x3dee57}=JSON[_0x37dadd(0xa4)](_0x69f534[_0x37dadd(0xf7)]);_0x39952d[_0x37dadd(0xac)]({'toolName':_0x69f534[_0x37dadd(0x111)],'data':_0x5a5071,'attributes':_0x3dee57});break;}}}}}async[_0x1a90b3(0xe7)](_0x22fd16){const _0x4640b5=_0x1a90b3,_0x68a0f4=new Map();if(!_0x22fd16[_0x4640b5(0xf7)])return _0x68a0f4;for(const _0x5d26ea of _0x22fd16[_0x4640b5(0xf7)]){const _0x94b52a=await this[_0x4640b5(0x92)][_0x4640b5(0xf6)](_0x5d26ea);_0x94b52a&&_0x68a0f4[_0x4640b5(0xf2)](_0x94b52a['id'],_0x94b52a);}return _0x68a0f4;}async[_0x1a90b3(0xd9)]({userMessage:_0x405650,attributes:_0xd508b3}){const _0x108ad9=_0x1a90b3;if(!this[_0x108ad9(0x10b)])throw new _0x198a6c(_0x108ad9(0x99),null,{'conversation':this});if(this[_0x108ad9(0xb5)])throw new _0x198a6c(_0x108ad9(0x109),null,{'conversation':this});try{const _0x4f4601=this[_0x108ad9(0x92)][_0x108ad9(0xe0)](),_0x14cfc5=this[_0x108ad9(0x97)][_0x108ad9(0xcc)](),_0x39229e=this[_0x108ad9(0x9e)]['id'];this[_0x108ad9(0xb5)]=this[_0x108ad9(0xa3)]({'userMessage':_0x405650,'contextItems':_0x4f4601,'capabilities':_0x14cfc5,'modelId':_0x39229e,'attributes':_0xd508b3}),await this[_0x108ad9(0xb5)][_0x108ad9(0xb1)](),this[_0x108ad9(0x92)][_0x108ad9(0xca)](this[_0x108ad9(0xb5)][_0x108ad9(0x104)]);}catch(_0x252c2a){if(_0x252c2a instanceof _0x198a6c)this[_0x108ad9(0x102)](_0x108ad9(0xf3),{'interactionId':this[_0x108ad9(0xb5)]?this[_0x108ad9(0xb5)]['id']:void 0x0,'error':_0x252c2a});else{const _0x5b8f0d=_0x1e5e4b[_0x108ad9(0x108)](_0x252c2a[_0x108ad9(0xdc)])||_0x108ad9(0xfd);this[_0x108ad9(0x102)](_0x108ad9(0xf3),{'interactionId':this[_0x108ad9(0xb5)]?this[_0x108ad9(0xb5)]['id']:void 0x0,'error':new _0x198a6c(_0x5b8f0d,null,{'error':_0x252c2a})});}}finally{this[_0x108ad9(0xb5)]?.[_0x108ad9(0xb3)](),this[_0x108ad9(0xb5)]=void 0x0;}}[_0x1a90b3(0xa3)]({userMessage:_0x27c1bb,contextItems:_0x15dcbb,capabilities:_0x7f0723,modelId:_0xc41b91,attributes:_0x1eda68}){const _0x5460dd=_0x1a90b3,_0x5e510f=new _0xe4269c({'userMessage':_0x27c1bb,'contextItems':_0x15dcbb,'capabilities':_0x7f0723,'conversationId':this['id'],'connector':this[_0x5460dd(0x105)],'editor':this[_0x5460dd(0x103)][_0x5460dd(0xb4)]&&this[_0x5460dd(0x103)][_0x5460dd(0xb4)](),'model':_0xc41b91,'attributes':_0x1eda68});return _0x5e510f[_0x5460dd(0xc9)](..._0x339024)['to'](this),this[_0x5460dd(0x9f)][_0x5460dd(0x9b)](_0x5e510f),this[_0x5460dd(0x102)](_0x5460dd(0xec),_0x5e510f),_0x5e510f;}[_0x1a90b3(0xd6)](_0x282f52){const _0x13db7d=_0x1a90b3;return this[_0x13db7d(0x9f)][_0x13db7d(0xa0)](_0x569745=>_0x569745['id']===_0x282f52);}[_0x1a90b3(0x96)](_0x143403){const _0x5ea8d4=_0x1a90b3,_0x511cd3=this[_0x5ea8d4(0xd6)](_0x143403);_0x511cd3&&(_0x511cd3[_0x5ea8d4(0xb7)](),this[_0x5ea8d4(0x9f)][_0x5ea8d4(0x95)](this[_0x5ea8d4(0x9f)][_0x5ea8d4(0xa5)](_0x511cd3),0x1));}get[_0x1a90b3(0xd7)](){const _0x11efda=_0x1a90b3;return this[_0x11efda(0x9f)][this[_0x11efda(0x9f)][_0x11efda(0x110)]-0x1];}[_0x1a90b3(0x10e)](_0x2f4128){const _0x4a4d68=_0x1a90b3;this[_0x4a4d68(0x92)][_0x4a4d68(0x10e)](_0x2f4128);}async[_0x1a90b3(0xeb)]({content:_0x4401d8,version:_0x4269a4,sessionId:_0x16387a,selections:_0x2fc3df}){const _0x48b90c=_0x1a90b3;await this[_0x48b90c(0x92)][_0x48b90c(0xe3)](_0x4401d8,_0x4269a4,_0x16387a,_0x2fc3df);}[_0x1a90b3(0x98)](){const _0x2b3090=_0x1a90b3;return this[_0x2b3090(0xb5)]?.[_0x2b3090(0xcf)]()?.[_0x2b3090(0xf7)]||'';}[_0x1a90b3(0xd2)](_0x5ab0cb){const _0x955024=_0x1a90b3;this[_0x955024(0x92)][_0x955024(0xd2)](_0x5ab0cb);}[_0x1a90b3(0xba)](){const _0x3fde21=_0x1a90b3;this[_0x3fde21(0x92)][_0x3fde21(0xba)]();}[_0x1a90b3(0xe2)](_0x51cbdb){const _0x1cbc1a=_0x1a90b3;this[_0x1cbc1a(0x92)][_0x1cbc1a(0xe2)](_0x51cbdb);}[_0x1a90b3(0xf4)](_0x33caf6){const _0x3dc9bd=_0x1a90b3;this[_0x3dc9bd(0x92)][_0x3dc9bd(0xf4)](_0x33caf6);}[_0x1a90b3(0xbf)](_0x58618d){const _0x5db724=_0x1a90b3;this[_0x5db724(0x92)][_0x5db724(0xbf)](_0x58618d);}[_0x1a90b3(0xa1)](_0x287d43,_0x27dc8e){const _0x41a0b0=_0x1a90b3;this[_0x41a0b0(0x92)][_0x41a0b0(0xa1)](_0x287d43,_0x27dc8e);}[_0x1a90b3(0x106)](_0x661687,_0x23f6ec,_0x196c11){const _0x17d6b3=_0x1a90b3;return this[_0x17d6b3(0x92)][_0x17d6b3(0x106)](_0x661687,_0x23f6ec,_0x196c11);}[_0x1a90b3(0xa6)](_0x1bcb09){const _0x223323=_0x1a90b3;this[_0x223323(0x92)][_0x223323(0xa6)](_0x1bcb09);}[_0x1a90b3(0xed)](_0x2f96ef){const _0x564012=_0x1a90b3;this[_0x564012(0x97)][_0x564012(0xed)](_0x2f96ef);}[_0x1a90b3(0xef)](){const _0x29a1d7=_0x1a90b3;this[_0x29a1d7(0x97)][_0x29a1d7(0xef)]();}[_0x1a90b3(0x10d)](_0x342e3f){const _0x120142=_0x1a90b3;this[_0x120142(0x97)][_0x120142(0x10d)](_0x342e3f);}[_0x1a90b3(0xe4)](){const _0x549c42=_0x1a90b3;this[_0x549c42(0x97)][_0x549c42(0xe4)]();}[_0x1a90b3(0xa7)](){const _0x3b6348=_0x1a90b3;return this[_0x3b6348(0x92)][_0x3b6348(0xa7)]();}[_0x1a90b3(0xf8)](){const _0x138472=_0x1a90b3;return this[_0x138472(0x92)][_0x138472(0xf8)]();}[_0x1a90b3(0xbc)](){const _0x464bb5=_0x1a90b3;return this[_0x464bb5(0x92)][_0x464bb5(0xbc)]();}async[_0x1a90b3(0x9a)](_0x1dde94){const _0x396668=_0x1a90b3;_0x1dde94?!0x1===await this[_0x396668(0xb8)][_0x396668(0xaf)](_0x1dde94)&&(_0x5597b9(_0x396668(0xd3),{'conversation':this,'model':_0x1dde94}),_0x1dde94=(await this[_0x396668(0xb8)][_0x396668(0xfa)]())[0x0]):(_0x5597b9(_0x396668(0xda),{'conversation':this}),_0x1dde94=(await this[_0x396668(0xb8)][_0x396668(0xfa)]())[0x0]),_0x1dde94['id']!==this[_0x396668(0x9e)]?.['id']&&(this[_0x396668(0x9e)]=_0x1dde94,this[_0x396668(0x97)][_0x396668(0xd4)](),this[_0x396668(0x102)](_0x396668(0xae),{'selectedModel':_0x1dde94}));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0xe98f6d=_0x139e;(function(_0x2ab1a7,_0x3f38e8){var _0x2baa33=_0x139e,_0x59f9f2=_0x2ab1a7();while(!![]){try{var _0x40c6ab=parseInt(_0x2baa33(0xcb))/0x1*(parseInt(_0x2baa33(0xb4))/0x2)+-parseInt(_0x2baa33(0xb9))/0x3*(parseInt(_0x2baa33(0xbb))/0x4)+-parseInt(_0x2baa33(0xc4))/0x5+parseInt(_0x2baa33(0xbd))/0x6*(parseInt(_0x2baa33(0xba))/0x7)+parseInt(_0x2baa33(0xbe))/0x8*(parseInt(_0x2baa33(0xc7))/0x9)+parseInt(_0x2baa33(0xc1))/0xa*(-parseInt(_0x2baa33(0xb8))/0xb)+parseInt(_0x2baa33(0xb2))/0xc*(parseInt(_0x2baa33(0xb5))/0xd);if(_0x40c6ab===_0x3f38e8)break;else _0x59f9f2['push'](_0x59f9f2['shift']());}catch(_0x5ae9e8){_0x59f9f2['push'](_0x59f9f2['shift']());}}}(_0x26dd,0xaf749));function _0x139e(_0x389afe,_0x4623a7){var _0x26ddc2=_0x26dd();return _0x139e=function(_0x139e73,_0x1e69bd){_0x139e73=_0x139e73-0xb2;var _0x5e60eb=_0x26ddc2[_0x139e73];return _0x5e60eb;},_0x139e(_0x389afe,_0x4623a7);}import{AICapabilities as _0x5bae77}from'../../aicore/model/aicapabilities.js';function _0x26dd(){var _0x31319c=['1085166IirJPr','7DRFqhy','8GbZWpQ','attributes','1242810qxBhIL','2412768ojbkEf','model','connector','20UhRYfk','get','current-document','2997075AdeZpy','userMessage','conversationId','9QCyQvJ','getCapabilitiesRequestData','contextItems','sendRequest','1knmhTy','getDocumentContext','1860MsTOdb','mapContextItemsToRequestData','141628diaILU','207987MDDlZW','queryAssistant','capabilities','5598263EXcegq'];_0x26dd=function(){return _0x31319c;};return _0x26dd();}import{AIInteraction as _0x4c55a2}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x1db5d1}from'./aichatcontext.js';export class AIChatInteraction extends _0x4c55a2{[_0xe98f6d(0xc5)];[_0xe98f6d(0xc6)];[_0xe98f6d(0xc9)]=new Map();[_0xe98f6d(0xbf)];[_0xe98f6d(0xbc)];constructor(_0x15f794){var _0x2d3cf7=_0xe98f6d;super(_0x15f794),this[_0x2d3cf7(0xc6)]=_0x15f794[_0x2d3cf7(0xc6)],this[_0x2d3cf7(0xc9)]=_0x15f794[_0x2d3cf7(0xc9)],this[_0x2d3cf7(0xb7)]=_0x15f794[_0x2d3cf7(0xb7)],this[_0x2d3cf7(0xc5)]=_0x15f794[_0x2d3cf7(0xc5)],this[_0x2d3cf7(0xbf)]=_0x15f794[_0x2d3cf7(0xbf)],this[_0x2d3cf7(0xbc)]=_0x15f794[_0x2d3cf7(0xbc)];}async[_0xe98f6d(0xca)](){var _0x3e7dad=_0xe98f6d;return this[_0x3e7dad(0xc0)][_0x3e7dad(0xb6)]({'message':this[_0x3e7dad(0xc5)],'conversationId':this[_0x3e7dad(0xc6)],'parts':_0x1db5d1[_0x3e7dad(0xb3)](this[_0x3e7dad(0xc9)]),'capabilities':_0x5bae77[_0x3e7dad(0xc8)](this[_0x3e7dad(0xb7)]),'model':this[_0x3e7dad(0xbf)],'attributes':this[_0x3e7dad(0xbc)]});}[_0xe98f6d(0xcc)](){var _0x5c12a5=_0xe98f6d;return this[_0x5c12a5(0xc9)][_0x5c12a5(0xc2)](_0x5c12a5(0xc3));}}
23
+ var _0x24d82b=_0x2a74;function _0x2a74(_0x49325b,_0x3ae29f){var _0x568040=_0x5680();return _0x2a74=function(_0x2a7412,_0x22464f){_0x2a7412=_0x2a7412-0x1f0;var _0x4aa938=_0x568040[_0x2a7412];return _0x4aa938;},_0x2a74(_0x49325b,_0x3ae29f);}function _0x5680(){var _0x4da1df=['110KqLsPt','18958UDdXlp','96Dpksgy','2897902enPlQF','get','8217FYosgj','capabilities','connector','16QIxsQj','conversationId','207LGIKXG','queryAssistant','368844eJhpuE','12228bwsCNq','2150152YJTfzt','getCapabilitiesRequestData','mapContextItemsToRequestData','current-document','userMessage','model','sendRequest','contextItems','613300qDmRmS','1036101UvikIv','getDocumentContext','21ybLGvN','attributes','247aTDxbq'];_0x5680=function(){return _0x4da1df;};return _0x5680();}(function(_0x46df44,_0x35271c){var _0x40fc39=_0x2a74,_0x4169cc=_0x46df44();while(!![]){try{var _0x4fcc66=parseInt(_0x40fc39(0x20b))/0x1*(parseInt(_0x40fc39(0x20a))/0x2)+parseInt(_0x40fc39(0x204))/0x3*(-parseInt(_0x40fc39(0x1f5))/0x4)+-parseInt(_0x40fc39(0x209))/0x5*(parseInt(_0x40fc39(0x1f9))/0x6)+parseInt(_0x40fc39(0x206))/0x7*(parseInt(_0x40fc39(0x1fb))/0x8)+-parseInt(_0x40fc39(0x1f7))/0x9*(parseInt(_0x40fc39(0x203))/0xa)+parseInt(_0x40fc39(0x1f2))/0xb*(-parseInt(_0x40fc39(0x1fa))/0xc)+-parseInt(_0x40fc39(0x208))/0xd*(-parseInt(_0x40fc39(0x1f0))/0xe);if(_0x4fcc66===_0x35271c)break;else _0x4169cc['push'](_0x4169cc['shift']());}catch(_0x5f1723){_0x4169cc['push'](_0x4169cc['shift']());}}}(_0x5680,0xb5837));import{AICapabilities as _0x4fd0f0}from'../../aicore/model/aicapabilities.js';import{AIInteraction as _0x36e37b}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x577b0f}from'./aichatcontext.js';export class AIChatInteraction extends _0x36e37b{[_0x24d82b(0x1ff)];[_0x24d82b(0x1f6)];[_0x24d82b(0x202)]=new Map();[_0x24d82b(0x200)];[_0x24d82b(0x207)];constructor(_0x90f6ef){var _0x880fcd=_0x24d82b;super(_0x90f6ef),this[_0x880fcd(0x1f6)]=_0x90f6ef[_0x880fcd(0x1f6)],this[_0x880fcd(0x202)]=_0x90f6ef[_0x880fcd(0x202)],this[_0x880fcd(0x1f3)]=_0x90f6ef[_0x880fcd(0x1f3)],this[_0x880fcd(0x1ff)]=_0x90f6ef[_0x880fcd(0x1ff)],this[_0x880fcd(0x200)]=_0x90f6ef[_0x880fcd(0x200)],this[_0x880fcd(0x207)]=_0x90f6ef[_0x880fcd(0x207)];}async[_0x24d82b(0x201)](){var _0x82f7c9=_0x24d82b;return this[_0x82f7c9(0x1f4)][_0x82f7c9(0x1f8)]({'message':this[_0x82f7c9(0x1ff)],'conversationId':this[_0x82f7c9(0x1f6)],'parts':_0x577b0f[_0x82f7c9(0x1fd)](this[_0x82f7c9(0x202)]),'capabilities':_0x4fd0f0[_0x82f7c9(0x1fc)](this[_0x82f7c9(0x1f3)]),'model':this[_0x82f7c9(0x200)],'attributes':this[_0x82f7c9(0x207)]});}[_0x24d82b(0x205)](){var _0x2564eb=_0x24d82b;return this[_0x2564eb(0x202)][_0x2564eb(0x1f1)](_0x2564eb(0x1fe));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xed3f52=_0x18e1;function _0x2625(){const _0x342430=['4993616VckspW','_createNextButtonView','change:isTrackChangesOn','toggleSuggestionDisplayMode','_createPreviousButtonView','locale','722316rOlfub','_keystrokes','fire','_isErrorVisible','_stateView','includes','previousButtonView','children','_togglePartToolbarButtonsVisibility','availableActions','_partToolbarView','render','createCollection','AI_BALLOON_NEXT_LABEL','destroy','focusLast','updateContent','_toolbarContainerView','_config','element','nextButtonView','div','1426173MDsphO','focusFirst','setButtonsVisibility','isShowChangesOn','addMany','full','_focusTracker','ck-ai-chat-balloon-main_state_','1375070uzqWhL','_streamableContentView','listenTo','_miniToolbarView','AI_BALLOON_PREVIOUS_LABEL','2BPcvhm','toggleRotatorButtonsVisibility','focusCycler','208mHrFlv','bindTemplate','toggleShowChanges','tab','showPrevious','showDiff','_errorView','isTrackChangesOn','1202346PHWxSx','isEnabled','execute','pending','setState','showError','delegate','3588440eRXoHt','rejectSuggestion','set','add','focus','showBlockingError','has','keepErrors','applySuggestion','ck-ai-chat-balloon__toolbar-container','isVisible','shift\x20+\x20tab','change:_state','update','insertSuggestion','togglePartToolbarEnabled','showNext','709446YTBpRJ','_focusables','hideError','ck-ai-chat-balloon-main','setTemplate','bind','_state'];_0x2625=function(){return _0x342430;};return _0x2625();}(function(_0x43308e,_0x3670c3){const _0x57175a=_0x18e1,_0x3ef6aa=_0x43308e();while(!![]){try{const _0x5cdee0=-parseInt(_0x57175a(0x1b4))/0x1+parseInt(_0x57175a(0x1b9))/0x2*(parseInt(_0x57175a(0x189))/0x3)+-parseInt(_0x57175a(0x190))/0x4+-parseInt(_0x57175a(0x1cb))/0x5+parseInt(_0x57175a(0x196))/0x6+parseInt(_0x57175a(0x1ac))/0x7+parseInt(_0x57175a(0x1bc))/0x8*(parseInt(_0x57175a(0x1c4))/0x9);if(_0x5cdee0===_0x3670c3)break;else _0x3ef6aa['push'](_0x3ef6aa['shift']());}catch(_0x567950){_0x3ef6aa['push'](_0x3ef6aa['shift']());}}}(_0x2625,0xa9299));import{FocusTracker as _0x6122c8,KeystrokeHandler as _0x55e54c}from'ckeditor5/src/utils.js';import{AISuggestionStreamableContentView as _0x3324b5}from'../../aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js';function _0x18e1(_0x56cc20,_0x57a849){const _0x2625c5=_0x2625();return _0x18e1=function(_0x18e1d5,_0x1c3951){_0x18e1d5=_0x18e1d5-0x17f;let _0x5b236a=_0x2625c5[_0x18e1d5];return _0x5b236a;},_0x18e1(_0x56cc20,_0x57a849);}import{AISuggestionContentPartToolbarView as _0x1c6544}from'../../aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js';import{AIMiniToolbarView as _0x19c6d8}from'../../aicore/ui/suggestioncontainer/aiminitoolbarview.js';import{AIBalloonView as _0x56c006}from'../../aiballoon/ui/aiballoonview.js';import{ButtonView as _0x1a8758,FocusCycler as _0x4ce837,View as _0x103061}from'ckeditor5/src/ui.js';import{AISuggestionContentPartStateView as _0x319d6b}from'../../aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js';import{IconChevronDown as _0x50e553,IconChevronUp as _0x5c80ef}from'ckeditor5/src/icons.js';import{getTranslation as _0x1a1fb8}from'../../aicore/utils/common-translations.js';import'../../../theme/aichat/aichatballoon.css';export class AIChatBalloonView extends _0x56c006{[_0xed3f52(0x19d)];[_0xed3f52(0x1aa)];[_0xed3f52(0x19c)];[_0xed3f52(0x1bb)];[_0xed3f52(0x18a)];[_0xed3f52(0x1b2)];[_0xed3f52(0x197)];[_0xed3f52(0x1a8)];[_0xed3f52(0x1b5)];[_0xed3f52(0x1a7)];[_0xed3f52(0x1a0)];[_0xed3f52(0x19a)];[_0xed3f52(0x1b7)];constructor(_0x21df95,_0x5baca8){const _0x4e8484=_0xed3f52;super(_0x21df95);const _0x21c0ec=this[_0x4e8484(0x1bd)];this[_0x4e8484(0x1cd)](_0x4e8484(0x1c1),!0x1),this[_0x4e8484(0x1cd)](_0x4e8484(0x18f),_0x4e8484(0x1c7)),this[_0x4e8484(0x1b2)]=new _0x6122c8(),this[_0x4e8484(0x197)]=new _0x55e54c(),this[_0x4e8484(0x18a)]=this[_0x4e8484(0x1a2)](),this[_0x4e8484(0x1bb)]=new _0x4ce837({'focusables':this[_0x4e8484(0x18a)],'focusTracker':this[_0x4e8484(0x1b2)],'keystrokeHandler':this[_0x4e8484(0x197)],'actions':{'focusPrevious':_0x4e8484(0x183),'focusNext':_0x4e8484(0x1bf)}}),this[_0x4e8484(0x1a8)]=_0x5baca8,this[_0x4e8484(0x1aa)]=this[_0x4e8484(0x191)](),this[_0x4e8484(0x19c)]=this[_0x4e8484(0x194)](),this[_0x4e8484(0x1b5)]=new _0x3324b5(_0x21df95),this[_0x4e8484(0x1a0)]=new _0x1c6544(_0x21df95,_0x5baca8[_0x4e8484(0x19f)]),this[_0x4e8484(0x1a0)][_0x4e8484(0x1ca)](_0x4e8484(0x180),_0x4e8484(0x186),_0x4e8484(0x1cc))['to'](this),this[_0x4e8484(0x19e)](_0x5baca8),this[_0x4e8484(0x19a)]=new _0x319d6b(_0x21df95),this[_0x4e8484(0x19a)][_0x4e8484(0x182)]=!0x1,this[_0x4e8484(0x1b7)]=new _0x19c6d8(_0x21df95,{'showChanges':_0x4e8484(0x1b1)}),this[_0x4e8484(0x1b7)][_0x4e8484(0x18e)](_0x4e8484(0x1af))['to'](this,_0x4e8484(0x1c1)),this[_0x4e8484(0x1b7)]['on'](_0x4e8484(0x1be),()=>{const _0x468e39=_0x4e8484;this[_0x468e39(0x198)](_0x468e39(0x193));}),this[_0x4e8484(0x1a7)]=new fs(_0x21df95,[this[_0x4e8484(0x1a0)],this[_0x4e8484(0x19a)],this[_0x4e8484(0x1b7)]]),this[_0x4e8484(0x19d)]=this[_0x4e8484(0x1a2)]([this[_0x4e8484(0x1b5)],this[_0x4e8484(0x1a7)]]),this['on'](_0x4e8484(0x184),(_0x318210,_0x18b583,_0x41f6c0,_0x3d01a7)=>{const _0x57d814=_0x4e8484;let _0x1ff056,_0x24dd14;_0x57d814(0x1c7)===_0x3d01a7?(_0x1ff056=this[_0x57d814(0x1a0)],_0x24dd14=this[_0x57d814(0x19a)]):(_0x1ff056=this[_0x57d814(0x19a)],_0x24dd14=this[_0x57d814(0x1a0)]),this[_0x57d814(0x19a)][_0x57d814(0x1c8)](_0x41f6c0),_0x1ff056[_0x57d814(0x182)]=!0x1,_0x24dd14[_0x57d814(0x182)]=!0x0;}),this[_0x4e8484(0x18d)]({'tag':_0x4e8484(0x1ab),'attributes':{'class':['ck',_0x4e8484(0x18c),_0x21c0ec['to'](_0x4e8484(0x18f),_0xbc71df=>_0x4e8484(0x1b3)+_0xbc71df)]},'children':this[_0x4e8484(0x19d)]}),this['on'](_0x4e8484(0x192),()=>{const _0x4a1581=_0x4e8484;this[_0x4a1581(0x19e)](_0x5baca8);});}[_0xed3f52(0x1a1)](){const _0x19a2d8=_0xed3f52;super[_0x19a2d8(0x1a1)](),this[_0x19a2d8(0x1aa)][_0x19a2d8(0x1a1)](),this[_0x19a2d8(0x19c)][_0x19a2d8(0x1a1)](),this[_0x19a2d8(0x1b2)][_0x19a2d8(0x1ce)](this[_0x19a2d8(0x1a9)]),this[_0x19a2d8(0x1b2)][_0x19a2d8(0x1ce)](this[_0x19a2d8(0x1aa)]),this[_0x19a2d8(0x1b2)][_0x19a2d8(0x1ce)](this[_0x19a2d8(0x19c)]),this[_0x19a2d8(0x1b2)][_0x19a2d8(0x1ce)](this[_0x19a2d8(0x1b7)]),this[_0x19a2d8(0x1b2)][_0x19a2d8(0x1ce)](this[_0x19a2d8(0x1a0)]),this[_0x19a2d8(0x197)][_0x19a2d8(0x1b6)](this[_0x19a2d8(0x1a9)]),this[_0x19a2d8(0x197)][_0x19a2d8(0x1b6)](this[_0x19a2d8(0x1aa)][_0x19a2d8(0x1a9)]),this[_0x19a2d8(0x197)][_0x19a2d8(0x1b6)](this[_0x19a2d8(0x19c)][_0x19a2d8(0x1a9)]),this[_0x19a2d8(0x18a)][_0x19a2d8(0x1b0)]([this[_0x19a2d8(0x1aa)],this[_0x19a2d8(0x19c)],this[_0x19a2d8(0x1a0)],this[_0x19a2d8(0x1b7)]]);}[_0xed3f52(0x1a4)](){const _0x4f85a3=_0xed3f52;super[_0x4f85a3(0x1a4)](),this[_0x4f85a3(0x19c)][_0x4f85a3(0x1a4)](),this[_0x4f85a3(0x1aa)][_0x4f85a3(0x1a4)]();}[_0xed3f52(0x1cf)](){const _0x151d7b=_0xed3f52;this[_0x151d7b(0x1bb)][_0x151d7b(0x1ad)]();}[_0xed3f52(0x1a5)](){const _0x3cb305=_0xed3f52;this[_0x3cb305(0x1bb)][_0x3cb305(0x1a5)]();}async[_0xed3f52(0x1a6)](_0x5383c3){const _0x47324d=_0xed3f52;_0x5383c3?.[_0x47324d(0x17f)]||this[_0x47324d(0x18b)](),await this[_0x47324d(0x1b5)][_0x47324d(0x185)](_0x5383c3);}[_0xed3f52(0x1c8)](_0x34c339){const _0x53317f=_0xed3f52;this[_0x53317f(0x18f)]=_0x34c339;}[_0xed3f52(0x1c9)](_0x2aaddd){const _0x719157=_0xed3f52;super[_0x719157(0x1c9)](_0x2aaddd),this[_0x719157(0x19d)][_0x719157(0x1d1)](this[_0x719157(0x1c2)])||this[_0x719157(0x19d)][_0x719157(0x1ce)](this[_0x719157(0x1c2)],0x0);}[_0xed3f52(0x18b)](){const _0x2c2553=_0xed3f52;this[_0x2c2553(0x199)]&&(super[_0x2c2553(0x18b)](),this[_0x2c2553(0x187)](!0x0));}[_0xed3f52(0x1d0)](_0x7ee02){const _0x2ecf92=_0xed3f52;super[_0x2ecf92(0x1d0)](_0x7ee02),this[_0x2ecf92(0x187)](!0x1);}[_0xed3f52(0x1ba)](_0x2cf641){const _0xfa7bdb=_0xed3f52;this[_0xfa7bdb(0x1aa)][_0xfa7bdb(0x182)]=this[_0xfa7bdb(0x19c)][_0xfa7bdb(0x182)]=_0x2cf641;}[_0xed3f52(0x187)](_0x12a70b){const _0x106efe=_0xed3f52;this[_0x106efe(0x1a0)][_0x106efe(0x1c5)]=_0x12a70b;}[_0xed3f52(0x19e)]({showApplyButton:_0x31e3e7,showSuggestButton:_0x320a84}){const _0x50166b=_0xed3f52;_0x31e3e7=_0x31e3e7&&!this[_0x50166b(0x1c3)]&&this[_0x50166b(0x1a8)][_0x50166b(0x19f)][_0x50166b(0x19b)](_0x50166b(0x180)),_0x320a84=_0x320a84&&this[_0x50166b(0x1a8)][_0x50166b(0x19f)][_0x50166b(0x19b)](_0x50166b(0x186)),this[_0x50166b(0x1a0)][_0x50166b(0x1ae)]({'showApplyButton':_0x31e3e7,'showSuggestButton':_0x320a84});}[_0xed3f52(0x191)](){const _0x148bb8=_0xed3f52,_0x2a5ac8=new _0x1a8758(this[_0x148bb8(0x195)]);return _0x2a5ac8[_0x148bb8(0x1cd)]({'icon':_0x50e553,'label':_0x1a1fb8(this[_0x148bb8(0x195)],_0x148bb8(0x1a3)),'isVisible':!0x0}),_0x2a5ac8['on'](_0x148bb8(0x1c6),()=>{const _0x41ee94=_0x148bb8;this[_0x41ee94(0x198)](_0x41ee94(0x188));}),_0x2a5ac8;}[_0xed3f52(0x194)](){const _0x13ec4c=_0xed3f52,_0x4a33a6=new _0x1a8758(this[_0x13ec4c(0x195)]);return _0x4a33a6[_0x13ec4c(0x1cd)]({'icon':_0x5c80ef,'label':_0x1a1fb8(this[_0x13ec4c(0x195)],_0x13ec4c(0x1b8)),'isVisible':!0x0}),_0x4a33a6['on'](_0x13ec4c(0x1c6),()=>{const _0x27710a=_0x13ec4c;this[_0x27710a(0x198)](_0x27710a(0x1c0));}),_0x4a33a6;}}class fs extends _0x103061{constructor(_0x1bb914,_0x587ec7){const _0x2f5588=_0xed3f52;super(_0x1bb914),this[_0x2f5588(0x18d)]({'tag':_0x2f5588(0x1ab),'attributes':{'class':[_0x2f5588(0x181)]},'children':_0x587ec7});}}
23
+ const _0x14ac7e=_0x44a9;function _0x44a9(_0xeda290,_0x2af28c){const _0x8570d4=_0x8570();return _0x44a9=function(_0x44a98e,_0x3c059b){_0x44a98e=_0x44a98e-0x14c;let _0x194b5e=_0x8570d4[_0x44a98e];return _0x194b5e;},_0x44a9(_0xeda290,_0x2af28c);}(function(_0x5a52be,_0x2e2bea){const _0x3ae7fd=_0x44a9,_0x8172ea=_0x5a52be();while(!![]){try{const _0x478713=-parseInt(_0x3ae7fd(0x168))/0x1+parseInt(_0x3ae7fd(0x199))/0x2*(parseInt(_0x3ae7fd(0x17f))/0x3)+parseInt(_0x3ae7fd(0x177))/0x4*(-parseInt(_0x3ae7fd(0x16d))/0x5)+-parseInt(_0x3ae7fd(0x179))/0x6*(parseInt(_0x3ae7fd(0x16b))/0x7)+-parseInt(_0x3ae7fd(0x188))/0x8+parseInt(_0x3ae7fd(0x192))/0x9+parseInt(_0x3ae7fd(0x190))/0xa;if(_0x478713===_0x2e2bea)break;else _0x8172ea['push'](_0x8172ea['shift']());}catch(_0x59fc7a){_0x8172ea['push'](_0x8172ea['shift']());}}}(_0x8570,0x5fe4e));import{FocusTracker as _0x15e987,KeystrokeHandler as _0x3d0b4e}from'ckeditor5/src/utils.js';import{AISuggestionStreamableContentView as _0x5511a1}from'../../aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js';import{AISuggestionContentPartToolbarView as _0x209e44}from'../../aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js';import{AIMiniToolbarView as _0x54000f}from'../../aicore/ui/suggestioncontainer/aiminitoolbarview.js';import{AIBalloonView as _0x24f3bc}from'../../aiballoon/ui/aiballoonview.js';import{ButtonView as _0x150b2e,FocusCycler as _0x3b3ef1,View as _0xf64c10}from'ckeditor5/src/ui.js';import{AISuggestionContentPartStateView as _0x36e4b2}from'../../aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js';import{IconChevronDown as _0x3bbc69,IconChevronUp as _0x30ca86}from'ckeditor5/src/icons.js';function _0x8570(){const _0x59db2e=['update','full','hideError','shift\x20+\x20tab','_state','_errorView','_config','keepErrors','isTrackChangesOn','focusLast','togglePartToolbarEnabled','has','previousButtonView','rejectSuggestion','_isErrorVisible','focus','ck-ai-chat-balloon__toolbar-container','toggleShowChanges','change:_state','add','isShowChangesOn','listenTo','612579KkmdFV','_miniToolbarView','showPrevious','35567vxICDZ','_togglePartToolbarButtonsVisibility','707425hAOQSb','bindTemplate','_toolbarContainerView','toggleRotatorButtonsVisibility','isEnabled','availableActions','addMany','render','div','insertSuggestion','16UFXGtm','fire','450qsMYkx','toggleSuggestionDisplayMode','destroy','applySuggestion','includes','_focusables','60693rATUkq','updateContent','isVisible','execute','pending','_createPreviousButtonView','_createNextButtonView','createCollection','showError','1578368TDAhed','showNext','showBlockingError','setState','_streamableContentView','change:isTrackChangesOn','delegate','_stateView','19863790zsGaLO','_partToolbarView','195084rMyXOI','element','AI_BALLOON_PREVIOUS_LABEL','locale','setTemplate','_keystrokes','_focusTracker','14ZuxQoP','nextButtonView','showDiff','focusCycler','ck-ai-chat-balloon-main_state_','setButtonsVisibility','children','focusFirst','AI_BALLOON_NEXT_LABEL','tab','bind','set','ck-ai-chat-balloon-main'];_0x8570=function(){return _0x59db2e;};return _0x8570();}import{getTranslation as _0x29a249}from'../../aicore/utils/common-translations.js';import'../../../theme/aichat/aichatballoon.css';export class AIChatBalloonView extends _0x24f3bc{[_0x14ac7e(0x19f)];[_0x14ac7e(0x19a)];[_0x14ac7e(0x15e)];[_0x14ac7e(0x19c)];[_0x14ac7e(0x17e)];[_0x14ac7e(0x198)];[_0x14ac7e(0x197)];[_0x14ac7e(0x158)];[_0x14ac7e(0x18c)];[_0x14ac7e(0x16f)];[_0x14ac7e(0x191)];[_0x14ac7e(0x18f)];[_0x14ac7e(0x169)];constructor(_0x2cfa18,_0x5895b6){const _0x216c2a=_0x14ac7e;super(_0x2cfa18);const _0x514d41=this[_0x216c2a(0x16e)];this[_0x216c2a(0x150)](_0x216c2a(0x19b),!0x1),this[_0x216c2a(0x150)](_0x216c2a(0x156),_0x216c2a(0x183)),this[_0x216c2a(0x198)]=new _0x15e987(),this[_0x216c2a(0x197)]=new _0x3d0b4e(),this[_0x216c2a(0x17e)]=this[_0x216c2a(0x186)](),this[_0x216c2a(0x19c)]=new _0x3b3ef1({'focusables':this[_0x216c2a(0x17e)],'focusTracker':this[_0x216c2a(0x198)],'keystrokeHandler':this[_0x216c2a(0x197)],'actions':{'focusPrevious':_0x216c2a(0x155),'focusNext':_0x216c2a(0x14e)}}),this[_0x216c2a(0x158)]=_0x5895b6,this[_0x216c2a(0x19a)]=this[_0x216c2a(0x185)](),this[_0x216c2a(0x15e)]=this[_0x216c2a(0x184)](),this[_0x216c2a(0x18c)]=new _0x5511a1(_0x2cfa18),this[_0x216c2a(0x191)]=new _0x209e44(_0x2cfa18,_0x5895b6[_0x216c2a(0x172)]),this[_0x216c2a(0x191)][_0x216c2a(0x18e)](_0x216c2a(0x17c),_0x216c2a(0x176),_0x216c2a(0x15f))['to'](this),this[_0x216c2a(0x16c)](_0x5895b6),this[_0x216c2a(0x18f)]=new _0x36e4b2(_0x2cfa18),this[_0x216c2a(0x18f)][_0x216c2a(0x181)]=!0x1,this[_0x216c2a(0x169)]=new _0x54000f(_0x2cfa18,{'showChanges':_0x216c2a(0x153)}),this[_0x216c2a(0x169)][_0x216c2a(0x14f)](_0x216c2a(0x166))['to'](this,_0x216c2a(0x19b)),this[_0x216c2a(0x169)]['on'](_0x216c2a(0x163),()=>{const _0x1bb895=_0x216c2a;this[_0x1bb895(0x178)](_0x1bb895(0x17a));}),this[_0x216c2a(0x16f)]=new ms(_0x2cfa18,[this[_0x216c2a(0x191)],this[_0x216c2a(0x18f)],this[_0x216c2a(0x169)]]),this[_0x216c2a(0x19f)]=this[_0x216c2a(0x186)]([this[_0x216c2a(0x18c)],this[_0x216c2a(0x16f)]]),this['on'](_0x216c2a(0x164),(_0x16f004,_0x11e4e1,_0x4491df,_0x1d7e1c)=>{const _0x58aac9=_0x216c2a;let _0x228f04,_0x11772d;_0x58aac9(0x183)===_0x1d7e1c?(_0x228f04=this[_0x58aac9(0x191)],_0x11772d=this[_0x58aac9(0x18f)]):(_0x228f04=this[_0x58aac9(0x18f)],_0x11772d=this[_0x58aac9(0x191)]),this[_0x58aac9(0x18f)][_0x58aac9(0x18b)](_0x4491df),_0x228f04[_0x58aac9(0x181)]=!0x1,_0x11772d[_0x58aac9(0x181)]=!0x0;}),this[_0x216c2a(0x196)]({'tag':_0x216c2a(0x175),'attributes':{'class':['ck',_0x216c2a(0x151),_0x514d41['to'](_0x216c2a(0x156),_0x31a5b3=>_0x216c2a(0x19d)+_0x31a5b3)]},'children':this[_0x216c2a(0x19f)]}),this['on'](_0x216c2a(0x18d),()=>{const _0x586ae6=_0x216c2a;this[_0x586ae6(0x16c)](_0x5895b6);});}[_0x14ac7e(0x174)](){const _0x14a9fd=_0x14ac7e;super[_0x14a9fd(0x174)](),this[_0x14a9fd(0x19a)][_0x14a9fd(0x174)](),this[_0x14a9fd(0x15e)][_0x14a9fd(0x174)](),this[_0x14a9fd(0x198)][_0x14a9fd(0x165)](this[_0x14a9fd(0x193)]),this[_0x14a9fd(0x198)][_0x14a9fd(0x165)](this[_0x14a9fd(0x19a)]),this[_0x14a9fd(0x198)][_0x14a9fd(0x165)](this[_0x14a9fd(0x15e)]),this[_0x14a9fd(0x198)][_0x14a9fd(0x165)](this[_0x14a9fd(0x169)]),this[_0x14a9fd(0x198)][_0x14a9fd(0x165)](this[_0x14a9fd(0x191)]),this[_0x14a9fd(0x197)][_0x14a9fd(0x167)](this[_0x14a9fd(0x193)]),this[_0x14a9fd(0x197)][_0x14a9fd(0x167)](this[_0x14a9fd(0x19a)][_0x14a9fd(0x193)]),this[_0x14a9fd(0x197)][_0x14a9fd(0x167)](this[_0x14a9fd(0x15e)][_0x14a9fd(0x193)]),this[_0x14a9fd(0x17e)][_0x14a9fd(0x173)]([this[_0x14a9fd(0x19a)],this[_0x14a9fd(0x15e)],this[_0x14a9fd(0x191)],this[_0x14a9fd(0x169)]]);}[_0x14ac7e(0x17b)](){const _0x17cc24=_0x14ac7e;super[_0x17cc24(0x17b)](),this[_0x17cc24(0x15e)][_0x17cc24(0x17b)](),this[_0x17cc24(0x19a)][_0x17cc24(0x17b)]();}[_0x14ac7e(0x161)](){const _0x4eb3ae=_0x14ac7e;this[_0x4eb3ae(0x19c)][_0x4eb3ae(0x14c)]();}[_0x14ac7e(0x15b)](){const _0x8466fa=_0x14ac7e;this[_0x8466fa(0x19c)][_0x8466fa(0x15b)]();}async[_0x14ac7e(0x180)](_0x32bf7a){const _0x842fb4=_0x14ac7e;_0x32bf7a?.[_0x842fb4(0x159)]||this[_0x842fb4(0x154)](),await this[_0x842fb4(0x18c)][_0x842fb4(0x152)](_0x32bf7a);}[_0x14ac7e(0x18b)](_0x902dda){const _0x291380=_0x14ac7e;this[_0x291380(0x156)]=_0x902dda;}[_0x14ac7e(0x187)](_0x284d50){const _0x4c9568=_0x14ac7e;super[_0x4c9568(0x187)](_0x284d50),this[_0x4c9568(0x19f)][_0x4c9568(0x15d)](this[_0x4c9568(0x157)])||this[_0x4c9568(0x19f)][_0x4c9568(0x165)](this[_0x4c9568(0x157)],0x0);}[_0x14ac7e(0x154)](){const _0x32af5e=_0x14ac7e;this[_0x32af5e(0x160)]&&(super[_0x32af5e(0x154)](),this[_0x32af5e(0x15c)](!0x0));}[_0x14ac7e(0x18a)](_0x4bb4e4){const _0x16638c=_0x14ac7e;super[_0x16638c(0x18a)](_0x4bb4e4),this[_0x16638c(0x15c)](!0x1);}[_0x14ac7e(0x170)](_0x3789f1){const _0x5ad71d=_0x14ac7e;this[_0x5ad71d(0x19a)][_0x5ad71d(0x181)]=this[_0x5ad71d(0x15e)][_0x5ad71d(0x181)]=_0x3789f1;}[_0x14ac7e(0x15c)](_0x1496f1){const _0x3e010c=_0x14ac7e;this[_0x3e010c(0x191)][_0x3e010c(0x171)]=_0x1496f1;}[_0x14ac7e(0x16c)]({showApplyButton:_0x55ef76,showSuggestButton:_0x8be686}){const _0x8b0f6e=_0x14ac7e;_0x55ef76=_0x55ef76&&!this[_0x8b0f6e(0x15a)]&&this[_0x8b0f6e(0x158)][_0x8b0f6e(0x172)][_0x8b0f6e(0x17d)](_0x8b0f6e(0x17c)),_0x8be686=_0x8be686&&this[_0x8b0f6e(0x158)][_0x8b0f6e(0x172)][_0x8b0f6e(0x17d)](_0x8b0f6e(0x176)),this[_0x8b0f6e(0x191)][_0x8b0f6e(0x19e)]({'showApplyButton':_0x55ef76,'showSuggestButton':_0x8be686});}[_0x14ac7e(0x185)](){const _0xb2e927=_0x14ac7e,_0x31ee4c=new _0x150b2e(this[_0xb2e927(0x195)]);return _0x31ee4c[_0xb2e927(0x150)]({'icon':_0x3bbc69,'label':_0x29a249(this[_0xb2e927(0x195)],_0xb2e927(0x14d)),'isVisible':!0x0}),_0x31ee4c['on'](_0xb2e927(0x182),()=>{const _0x1babbb=_0xb2e927;this[_0x1babbb(0x178)](_0x1babbb(0x189));}),_0x31ee4c;}[_0x14ac7e(0x184)](){const _0x4b9e25=_0x14ac7e,_0x528b00=new _0x150b2e(this[_0x4b9e25(0x195)]);return _0x528b00[_0x4b9e25(0x150)]({'icon':_0x30ca86,'label':_0x29a249(this[_0x4b9e25(0x195)],_0x4b9e25(0x194)),'isVisible':!0x0}),_0x528b00['on'](_0x4b9e25(0x182),()=>{const _0x4a5851=_0x4b9e25;this[_0x4a5851(0x178)](_0x4a5851(0x16a));}),_0x528b00;}}class ms extends _0xf64c10{constructor(_0x3a8261,_0x314179){const _0x222e15=_0x14ac7e;super(_0x3a8261),this[_0x222e15(0x196)]({'tag':_0x222e15(0x175),'attributes':{'class':[_0x222e15(0x162)]},'children':_0x314179});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x28fe80=_0x2bf9;function _0x2bf9(_0x3fec14,_0x1ba2fe){const _0x19637f=_0x1963();return _0x2bf9=function(_0x2bf9c7,_0x34a3d8){_0x2bf9c7=_0x2bf9c7-0x103;let _0x336745=_0x19637f[_0x2bf9c7];return _0x336745;},_0x2bf9(_0x3fec14,_0x1ba2fe);}(function(_0x23ec3c,_0x2ccc96){const _0x482e0a=_0x2bf9,_0x216e6a=_0x23ec3c();while(!![]){try{const _0x1e6ecd=parseInt(_0x482e0a(0x13f))/0x1+-parseInt(_0x482e0a(0x14d))/0x2*(parseInt(_0x482e0a(0x10b))/0x3)+-parseInt(_0x482e0a(0x144))/0x4+-parseInt(_0x482e0a(0x137))/0x5*(parseInt(_0x482e0a(0x106))/0x6)+-parseInt(_0x482e0a(0x139))/0x7*(parseInt(_0x482e0a(0x12d))/0x8)+-parseInt(_0x482e0a(0x152))/0x9*(parseInt(_0x482e0a(0x136))/0xa)+parseInt(_0x482e0a(0x10c))/0xb*(parseInt(_0x482e0a(0x147))/0xc);if(_0x1e6ecd===_0x2ccc96)break;else _0x216e6a['push'](_0x216e6a['shift']());}catch(_0x594f3e){_0x216e6a['push'](_0x216e6a['shift']());}}}(_0x1963,0xb2f51));import{ButtonView as _0x444530,clickOutsideHandler as _0x5144b6,View as _0x1715f5}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x39b16c}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x2da390}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x33a858,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x52e9ef}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x50c3aa}from'./controls/aichatcontrolsloaderview.js';import{getTranslation as _0x4c16b0}from'../../aicore/utils/common-translations.js';function _0x1963(){const _0x38e41f=['bodyCollection','872qrtXTf','value','queryView','ck-ai-chat-controls__start-new-chat-button','clearConversationContextUI','_createPromptInputView','_promptCapabilitiesView','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','_handlePromptInputFocus','30oHJHLC','1695gyjnpC','toggleWebSearch','41097KvDuuP','setPlaceholderText','removeContextItem','disableModelSelector','locale','setReasoning','106132SSAMSa','setModel','setConversationContext','clearPendingContextUI','setTemplate','5753296Mnznsr','setIsUploadInProgress','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','3804cBQMFb','addContextItem','_shouldRestorePromptInputFocus','resetMessageInput','reset','_contextPanelView','3846ZRQqKT','startConversation','enableModelSelector','setInputPlaceholder','closeSourceResourceBalloon','964107sXwqlk','fieldView','element','setModelList','clearCurrentContextItems','populateSourceResourceBalloon','clearConversationContextItems','8292YlcjRx','contextResourcesSearchInputVisibleFrom','_createContextPanelView','setWebSearch','execute','894baoNXl','141163uxfLXn','setAddContextOptions','_modelUnavailableMessageView','focus','div','delegate','setPromptInputValue','toggleReasoning','setContextItemLoading','isModelAvailable','_loaderView','sendUserMessage','updateResourceState','abortPromptStream','change:isLoading','ck-ai-chat-controls-disabled','addContextButtonView','isLoading','set','form','_createPromptCapabilitiesView','ck-hidden','bindTemplate','focusPromptInput','isDisabled','_promptInputView','_createLoaderView','_createModelUnavailableMessageView','ck-ai-chat-controls','ck-ai-chat-controls-model-unavailable-message','selectModel','low'];_0x1963=function(){return _0x38e41f;};return _0x1963();}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 _0x1715f5{[_0x28fe80(0x14c)];[_0x28fe80(0x125)];[_0x28fe80(0x133)];[_0x28fe80(0x116)];[_0x28fe80(0x10e)];[_0x28fe80(0x149)];constructor(_0x8887ea,_0x153510){const _0xc8b84d=_0x28fe80;super(_0x8887ea),this[_0xc8b84d(0x14c)]=this[_0xc8b84d(0x108)](_0x8887ea,{'bodyCollection':_0x153510[_0xc8b84d(0x12c)],'searchInputVisibleFrom':_0x153510[_0xc8b84d(0x107)]}),this[_0xc8b84d(0x125)]=this[_0xc8b84d(0x132)](_0x8887ea),this[_0xc8b84d(0x133)]=this[_0xc8b84d(0x120)](_0x8887ea),this[_0xc8b84d(0x116)]=this[_0xc8b84d(0x126)](_0x8887ea),this[_0xc8b84d(0x10e)]=this[_0xc8b84d(0x127)](_0x8887ea),this[_0xc8b84d(0x149)]=!0x1,this[_0xc8b84d(0x125)][_0xc8b84d(0x111)](_0xc8b84d(0x117))['to'](this),this[_0xc8b84d(0x116)][_0xc8b84d(0x111)](_0xc8b84d(0x119))['to'](this),this[_0xc8b84d(0x133)][_0xc8b84d(0x111)](_0xc8b84d(0x138))['to'](this),this[_0xc8b84d(0x133)][_0xc8b84d(0x111)](_0xc8b84d(0x113))['to'](this),this[_0xc8b84d(0x133)][_0xc8b84d(0x111)](_0xc8b84d(0x12a))['to'](this),this[_0xc8b84d(0x14c)][_0xc8b84d(0x111)](..._0x52e9ef)['to'](this),this[_0xc8b84d(0x11e)](_0xc8b84d(0x115),!0x0),this[_0xc8b84d(0x11e)](_0xc8b84d(0x124),!0x1);const _0x464e7b=this[_0xc8b84d(0x122)];this[_0xc8b84d(0x143)]({'tag':_0xc8b84d(0x11f),'attributes':{'class':['ck',_0xc8b84d(0x128),_0x464e7b['if'](_0xc8b84d(0x124),_0xc8b84d(0x11b))]},'children':[{'tag':_0xc8b84d(0x110),'attributes':{'class':[_0x464e7b['if'](_0xc8b84d(0x11d),_0xc8b84d(0x121),_0x11cdb2=>_0x11cdb2||!this[_0xc8b84d(0x115)]),_0x464e7b['if'](_0xc8b84d(0x115),_0xc8b84d(0x121),_0x5aa1f9=>!_0x5aa1f9||this[_0xc8b84d(0x11d)])]},'children':[this[_0xc8b84d(0x14c)],this[_0xc8b84d(0x125)],this[_0xc8b84d(0x133)]]},{'tag':_0xc8b84d(0x110),'attributes':{'class':[_0x464e7b['if'](_0xc8b84d(0x11d),_0xc8b84d(0x121),_0x315b25=>!_0x315b25)]},'children':[this[_0xc8b84d(0x116)]]},{'tag':_0xc8b84d(0x110),'attributes':{'class':[_0x464e7b['if'](_0xc8b84d(0x115),_0xc8b84d(0x121),_0x2e941b=>_0x2e941b)]},'children':[this[_0xc8b84d(0x10e)]]}]}),_0x5144b6({'emitter':this[_0xc8b84d(0x125)],'activator':()=>this[_0xc8b84d(0x11d)],'contextElements':()=>[this[_0xc8b84d(0x154)]],'callback':()=>{const _0x1e09b6=_0xc8b84d;this[_0x1e09b6(0x149)]=!0x1;}}),this['on'](_0xc8b84d(0x11a),this[_0xc8b84d(0x135)],{'priority':_0xc8b84d(0x12b)});}[_0x28fe80(0x108)](_0x393ec1,_0x48a5bb){return new _0x33a858(_0x393ec1,_0x48a5bb);}[_0x28fe80(0x132)](_0x30ed70){const _0x55df01=_0x28fe80;return new _0x39b16c(_0x30ed70,this[_0x55df01(0x14c)][_0x55df01(0x11c)]);}[_0x28fe80(0x120)](_0x258d3e){return new _0x2da390(_0x258d3e);}[_0x28fe80(0x126)](_0x3c119b){return new _0x50c3aa(_0x3c119b);}[_0x28fe80(0x127)](_0x2a97ae){const _0x59d823=_0x28fe80,_0x28d738=new As(_0x2a97ae);return _0x28d738[_0x59d823(0x111)](_0x59d823(0x14e))['to'](this),_0x28d738;}[_0x28fe80(0x135)](_0x113dd3,_0x170d9c,_0x2b635f){const _0x22d1b8=_0x28fe80;_0x2b635f?this[_0x22d1b8(0x149)]=!0x0:this[_0x22d1b8(0x149)]&&this[_0x22d1b8(0x125)][_0x22d1b8(0x10f)]();}[_0x28fe80(0x148)](_0x52be1c,_0x429734){const _0x5eb5b5=_0x28fe80;this[_0x5eb5b5(0x14c)][_0x5eb5b5(0x148)](_0x52be1c,_0x429734);}[_0x28fe80(0x13b)](_0x4d4c89){const _0x595258=_0x28fe80;this[_0x595258(0x14c)][_0x595258(0x13b)](_0x4d4c89);}[_0x28fe80(0x114)](_0x28de4e,_0x3ab429){const _0x1b6d4b=_0x28fe80;this[_0x1b6d4b(0x14c)][_0x1b6d4b(0x114)](_0x28de4e,_0x3ab429);}[_0x28fe80(0x145)](_0x58d559){const _0x178606=_0x28fe80;this[_0x178606(0x125)][_0x178606(0x145)](_0x58d559);}[_0x28fe80(0x141)](_0x4c9bb7){const _0x3f0ddf=_0x28fe80;this[_0x3f0ddf(0x14c)][_0x3f0ddf(0x141)](_0x4c9bb7);}[_0x28fe80(0x142)](){const _0x4903d3=_0x28fe80;this[_0x4903d3(0x14c)][_0x4903d3(0x103)]();}[_0x28fe80(0x131)](){const _0x3481e1=_0x28fe80;this[_0x3481e1(0x14c)][_0x3481e1(0x105)]();}[_0x28fe80(0x118)](_0x48070c,_0x59c2c0,_0x5b3f1c){const _0x2156ea=_0x28fe80;this[_0x2156ea(0x14c)][_0x2156ea(0x118)](_0x48070c,_0x59c2c0,_0x5b3f1c);}[_0x28fe80(0x109)](_0x4a4655){const _0x2bc7df=_0x28fe80;this[_0x2bc7df(0x133)][_0x2bc7df(0x109)](_0x4a4655);}[_0x28fe80(0x13e)](_0x341e6d){const _0x28cb5d=_0x28fe80;this[_0x28cb5d(0x133)][_0x28cb5d(0x13e)](_0x341e6d);}[_0x28fe80(0x14a)](){const _0x32ca83=_0x28fe80;this[_0x32ca83(0x125)][_0x32ca83(0x14b)]();}[_0x28fe80(0x10d)](_0xdd3537){const _0x33fb69=_0x28fe80;this[_0x33fb69(0x14c)][_0x33fb69(0x10d)](_0xdd3537);}[_0x28fe80(0x150)](_0x5192cc){const _0x64e647=_0x28fe80;this[_0x64e647(0x125)][_0x64e647(0x13a)](_0x5192cc);}[_0x28fe80(0x155)](_0x260163,_0x211023){const _0x4207d7=_0x28fe80;this[_0x4207d7(0x133)][_0x4207d7(0x155)](_0x260163,_0x211023);}[_0x28fe80(0x140)](_0x628e42){const _0x1ad900=_0x28fe80;_0x628e42?(this[_0x1ad900(0x115)]=!0x0,this[_0x1ad900(0x133)][_0x1ad900(0x140)](_0x628e42)):this[_0x1ad900(0x115)]=!0x1;}[_0x28fe80(0x14f)](){const _0x4f80c0=_0x28fe80;this[_0x4f80c0(0x133)][_0x4f80c0(0x14f)]();}[_0x28fe80(0x13c)](_0x9b81d8){const _0x4ceb9f=_0x28fe80;this[_0x4ceb9f(0x133)][_0x4ceb9f(0x13c)](_0x9b81d8);}[_0x28fe80(0x104)](_0x43e4ab,_0x23617b,_0x67a08d,_0x5ce48b){const _0x31bfa8=_0x28fe80;this[_0x31bfa8(0x14c)][_0x31bfa8(0x104)](_0x43e4ab,_0x23617b,_0x67a08d,_0x5ce48b);}[_0x28fe80(0x151)](_0x3ca284){const _0x14e896=_0x28fe80;this[_0x14e896(0x14c)][_0x14e896(0x151)](_0x3ca284);}[_0x28fe80(0x123)](_0x8ac1da=!0x1){const _0x10a467=_0x28fe80;this[_0x10a467(0x125)][_0x10a467(0x10f)](_0x8ac1da);}[_0x28fe80(0x112)](_0x49e2b9){const _0x148462=_0x28fe80;this[_0x148462(0x125)][_0x148462(0x12f)][_0x148462(0x153)][_0x148462(0x14b)](),this[_0x148462(0x125)][_0x148462(0x12f)][_0x148462(0x153)][_0x148462(0x12e)]=_0x49e2b9;}}class As extends _0x1715f5{constructor(_0x5c2f96){const _0x119237=_0x28fe80;super(_0x5c2f96);const _0x349277=new _0x444530(_0x5c2f96);_0x349277[_0x119237(0x11e)]({'label':_0x4c16b0(this[_0x119237(0x13d)],_0x119237(0x134)),'withText':!0x0,'class':[_0x119237(0x130)],'tooltip':''}),_0x349277[_0x119237(0x111)](_0x119237(0x10a))['to'](this,_0x119237(0x14e)),this[_0x119237(0x143)]({'tag':_0x119237(0x110),'attributes':{'class':['ck',_0x119237(0x129)]},'children':[{'tag':'p','children':[{'text':_0x4c16b0(this[_0x119237(0x13d)],_0x119237(0x146))+'\x20'},_0x349277]}]});}}
23
+ const _0xbff82f=_0x3cb4;(function(_0x26a2c2,_0x109b7c){const _0x53ee11=_0x3cb4,_0x3507d3=_0x26a2c2();while(!![]){try{const _0x2e11d9=parseInt(_0x53ee11(0xd8))/0x1+parseInt(_0x53ee11(0xf7))/0x2+-parseInt(_0x53ee11(0xe2))/0x3*(parseInt(_0x53ee11(0xeb))/0x4)+-parseInt(_0x53ee11(0xbd))/0x5*(parseInt(_0x53ee11(0xc5))/0x6)+-parseInt(_0x53ee11(0xfb))/0x7*(parseInt(_0x53ee11(0x106))/0x8)+-parseInt(_0x53ee11(0xba))/0x9+-parseInt(_0x53ee11(0xdf))/0xa*(-parseInt(_0x53ee11(0xe8))/0xb);if(_0x2e11d9===_0x109b7c)break;else _0x3507d3['push'](_0x3507d3['shift']());}catch(_0x29f8ba){_0x3507d3['push'](_0x3507d3['shift']());}}}(_0x1eb1,0xf166c));import{ButtonView as _0x49d402,clickOutsideHandler as _0x3ce49b,View as _0x12c691}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x4d955d}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x43a070}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x3e9b12,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x5d5901}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x280c11}from'./controls/aichatcontrolsloaderview.js';import{getTranslation as _0x934eea}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';function _0x3cb4(_0x2f5d95,_0x52d84a){const _0x1eb184=_0x1eb1();return _0x3cb4=function(_0x3cb4a9,_0x4c9c10){_0x3cb4a9=_0x3cb4a9-0xb9;let _0x5e0209=_0x1eb184[_0x3cb4a9];return _0x5e0209;},_0x3cb4(_0x2f5d95,_0x52d84a);}import'../../../theme/aichat/aichat-controls/aichat-controls-loader.css';function _0x1eb1(){const _0x1b7d6f=['clearConversationContextItems','startConversation','_promptInputView','363818ATjzHk','value','disableModelSelector','closeSourceResourceBalloon','_createContextPanelView','setModelList','clearConversationContextUI','1734830WFLlHd','ck-ai-chat-controls__start-new-chat-button','_createModelUnavailableMessageView','5309193VTpxzC','_createLoaderView','ck-ai-chat-controls','focus','_promptCapabilitiesView','low','352rmIfaX','populateSourceResourceBalloon','_createPromptCapabilitiesView','4DAdVaO','setReasoning','toggleReasoning','sendUserMessage','_modelUnavailableMessageView','setInputPlaceholder','bodyCollection','element','fieldView','setAddContextOptions','setConversationContext','form','1618146ZjeYsg','_contextPanelView','toggleWebSearch','_handlePromptInputFocus','273vrOREb','_loaderView','clearPendingContextUI','setPlaceholderText','_createPromptInputView','clearCurrentContextItems','locale','ck-ai-chat-controls-disabled','updateResourceState','contextResourcesSearchInputVisibleFrom','addContextButtonView','315320mZKJMf','addContextItem','isDisabled','focusPromptInput','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','setPromptInputValue','6432831QfeGnO','setWebSearch','execute','20FclGiq','setTemplate','change:isLoading','_shouldRestorePromptInputFocus','isModelAvailable','div','selectModel','isLoading','2570838yuodKK','reset','setContextItemLoading','enableModelSelector','set','removeContextItem','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','delegate','abortPromptStream','ck-hidden','resetMessageInput','queryView','bindTemplate','setIsUploadInProgress','setModel','ck-ai-chat-controls-model-unavailable-message'];_0x1eb1=function(){return _0x1b7d6f;};return _0x1eb1();}import'../../../theme/aichat/aichat-controls/aichat-context-controls-balloon-panels.css';export class AIChatControlsView extends _0x12c691{[_0xbff82f(0xf8)];[_0xbff82f(0xd7)];[_0xbff82f(0xe6)];[_0xbff82f(0xfc)];[_0xbff82f(0xef)];[_0xbff82f(0xc0)];constructor(_0x35a9c6,_0x3f5291){const _0x50b444=_0xbff82f;super(_0x35a9c6),this[_0x50b444(0xf8)]=this[_0x50b444(0xdc)](_0x35a9c6,{'bodyCollection':_0x3f5291[_0x50b444(0xf1)],'searchInputVisibleFrom':_0x3f5291[_0x50b444(0x104)]}),this[_0x50b444(0xd7)]=this[_0x50b444(0xff)](_0x35a9c6),this[_0x50b444(0xe6)]=this[_0x50b444(0xea)](_0x35a9c6),this[_0x50b444(0xfc)]=this[_0x50b444(0xe3)](_0x35a9c6),this[_0x50b444(0xef)]=this[_0x50b444(0xe1)](_0x35a9c6),this[_0x50b444(0xc0)]=!0x1,this[_0x50b444(0xd7)][_0x50b444(0xcc)](_0x50b444(0xee))['to'](this),this[_0x50b444(0xfc)][_0x50b444(0xcc)](_0x50b444(0xcd))['to'](this),this[_0x50b444(0xe6)][_0x50b444(0xcc)](_0x50b444(0xf9))['to'](this),this[_0x50b444(0xe6)][_0x50b444(0xcc)](_0x50b444(0xed))['to'](this),this[_0x50b444(0xe6)][_0x50b444(0xcc)](_0x50b444(0xc3))['to'](this),this[_0x50b444(0xf8)][_0x50b444(0xcc)](..._0x5d5901)['to'](this),this[_0x50b444(0xc9)](_0x50b444(0xc1),!0x0),this[_0x50b444(0xc9)](_0x50b444(0x108),!0x1);const _0x1ab272=this[_0x50b444(0xd1)];this[_0x50b444(0xbe)]({'tag':_0x50b444(0xf6),'attributes':{'class':['ck',_0x50b444(0xe4),_0x1ab272['if'](_0x50b444(0x108),_0x50b444(0x102))]},'children':[{'tag':_0x50b444(0xc2),'attributes':{'class':[_0x1ab272['if'](_0x50b444(0xc4),_0x50b444(0xce),_0x5eef63=>_0x5eef63||!this[_0x50b444(0xc1)]),_0x1ab272['if'](_0x50b444(0xc1),_0x50b444(0xce),_0x33cf1a=>!_0x33cf1a||this[_0x50b444(0xc4)])]},'children':[this[_0x50b444(0xf8)],this[_0x50b444(0xd7)],this[_0x50b444(0xe6)]]},{'tag':_0x50b444(0xc2),'attributes':{'class':[_0x1ab272['if'](_0x50b444(0xc4),_0x50b444(0xce),_0x15ee09=>!_0x15ee09)]},'children':[this[_0x50b444(0xfc)]]},{'tag':_0x50b444(0xc2),'attributes':{'class':[_0x1ab272['if'](_0x50b444(0xc1),_0x50b444(0xce),_0x38914b=>_0x38914b)]},'children':[this[_0x50b444(0xef)]]}]}),_0x3ce49b({'emitter':this[_0x50b444(0xd7)],'activator':()=>this[_0x50b444(0xc4)],'contextElements':()=>[this[_0x50b444(0xf2)]],'callback':()=>{const _0x2dc267=_0x50b444;this[_0x2dc267(0xc0)]=!0x1;}}),this['on'](_0x50b444(0xbf),this[_0x50b444(0xfa)],{'priority':_0x50b444(0xe7)});}[_0xbff82f(0xdc)](_0x32dd84,_0x437116){return new _0x3e9b12(_0x32dd84,_0x437116);}[_0xbff82f(0xff)](_0x4a6cf0){const _0x481439=_0xbff82f;return new _0x4d955d(_0x4a6cf0,this[_0x481439(0xf8)][_0x481439(0x105)]);}[_0xbff82f(0xea)](_0x5770c9){return new _0x43a070(_0x5770c9);}[_0xbff82f(0xe3)](_0x27e65c){return new _0x280c11(_0x27e65c);}[_0xbff82f(0xe1)](_0x1a5ebc){const _0x5aa44e=_0xbff82f,_0x2edd0b=new As(_0x1a5ebc);return _0x2edd0b[_0x5aa44e(0xcc)](_0x5aa44e(0xd6))['to'](this),_0x2edd0b;}[_0xbff82f(0xfa)](_0x33ece6,_0x38ae23,_0x102b48){const _0x5f1ee1=_0xbff82f;_0x102b48?this[_0x5f1ee1(0xc0)]=!0x0:this[_0x5f1ee1(0xc0)]&&this[_0x5f1ee1(0xd7)][_0x5f1ee1(0xe5)]();}[_0xbff82f(0x107)](_0x45c3d3,_0x346044){const _0x48fbf0=_0xbff82f;this[_0x48fbf0(0xf8)][_0x48fbf0(0x107)](_0x45c3d3,_0x346044);}[_0xbff82f(0xca)](_0x16f852){const _0x3a06a7=_0xbff82f;this[_0x3a06a7(0xf8)][_0x3a06a7(0xca)](_0x16f852);}[_0xbff82f(0xc7)](_0x40f4dd,_0x1ffe8e){const _0x3570c1=_0xbff82f;this[_0x3570c1(0xf8)][_0x3570c1(0xc7)](_0x40f4dd,_0x1ffe8e);}[_0xbff82f(0xd2)](_0xcfbddd){const _0x3180b4=_0xbff82f;this[_0x3180b4(0xd7)][_0x3180b4(0xd2)](_0xcfbddd);}[_0xbff82f(0xf5)](_0x476502){const _0x1f10d5=_0xbff82f;this[_0x1f10d5(0xf8)][_0x1f10d5(0xf5)](_0x476502);}[_0xbff82f(0xfd)](){const _0x1c796d=_0xbff82f;this[_0x1c796d(0xf8)][_0x1c796d(0x100)]();}[_0xbff82f(0xde)](){const _0x48876c=_0xbff82f;this[_0x48876c(0xf8)][_0x48876c(0xd5)]();}[_0xbff82f(0x103)](_0xb14468,_0x5a30d7,_0x2ed5af){const _0x263f88=_0xbff82f;this[_0x263f88(0xf8)][_0x263f88(0x103)](_0xb14468,_0x5a30d7,_0x2ed5af);}[_0xbff82f(0xbb)](_0x6b28f0){const _0x1e7d11=_0xbff82f;this[_0x1e7d11(0xe6)][_0x1e7d11(0xbb)](_0x6b28f0);}[_0xbff82f(0xec)](_0x1ad79d){const _0x91e545=_0xbff82f;this[_0x91e545(0xe6)][_0x91e545(0xec)](_0x1ad79d);}[_0xbff82f(0xcf)](){const _0xcf1368=_0xbff82f;this[_0xcf1368(0xd7)][_0xcf1368(0xc6)]();}[_0xbff82f(0xf4)](_0x391d7d){const _0x3ef841=_0xbff82f;this[_0x3ef841(0xf8)][_0x3ef841(0xf4)](_0x391d7d);}[_0xbff82f(0xf0)](_0x5728b3){const _0x428afe=_0xbff82f;this[_0x428afe(0xd7)][_0x428afe(0xfe)](_0x5728b3);}[_0xbff82f(0xdd)](_0x131fbb,_0xce6864){const _0x1a9682=_0xbff82f;this[_0x1a9682(0xe6)][_0x1a9682(0xdd)](_0x131fbb,_0xce6864);}[_0xbff82f(0xd3)](_0x143ee1){const _0x2aa21c=_0xbff82f;_0x143ee1?(this[_0x2aa21c(0xc1)]=!0x0,this[_0x2aa21c(0xe6)][_0x2aa21c(0xd3)](_0x143ee1)):this[_0x2aa21c(0xc1)]=!0x1;}[_0xbff82f(0xc8)](){const _0x48cc03=_0xbff82f;this[_0x48cc03(0xe6)][_0x48cc03(0xc8)]();}[_0xbff82f(0xda)](_0x200102){const _0x1322bc=_0xbff82f;this[_0x1322bc(0xe6)][_0x1322bc(0xda)](_0x200102);}[_0xbff82f(0xe9)](_0x14e44e,_0x950b1d,_0xe21b6f,_0x7dbd8b){const _0x488ba4=_0xbff82f;this[_0x488ba4(0xf8)][_0x488ba4(0xe9)](_0x14e44e,_0x950b1d,_0xe21b6f,_0x7dbd8b);}[_0xbff82f(0xdb)](_0x1fe069){const _0xce826a=_0xbff82f;this[_0xce826a(0xf8)][_0xce826a(0xdb)](_0x1fe069);}[_0xbff82f(0x109)](_0x4ad666=!0x1){const _0x4ccb96=_0xbff82f;this[_0x4ccb96(0xd7)][_0x4ccb96(0xe5)](_0x4ad666);}[_0xbff82f(0xb9)](_0x42b207){const _0x29e244=_0xbff82f;this[_0x29e244(0xd7)][_0x29e244(0xd0)][_0x29e244(0xf3)][_0x29e244(0xc6)](),this[_0x29e244(0xd7)][_0x29e244(0xd0)][_0x29e244(0xf3)][_0x29e244(0xd9)]=_0x42b207;}}class As extends _0x12c691{constructor(_0x67b539){const _0xa79575=_0xbff82f;super(_0x67b539);const _0x38e38c=new _0x49d402(_0x67b539);_0x38e38c[_0xa79575(0xc9)]({'label':_0x934eea(this[_0xa79575(0x101)],_0xa79575(0xcb)),'withText':!0x0,'class':[_0xa79575(0xe0)],'tooltip':''}),_0x38e38c[_0xa79575(0xcc)](_0xa79575(0xbc))['to'](this,_0xa79575(0xd6)),this[_0xa79575(0xbe)]({'tag':_0xa79575(0xc2),'attributes':{'class':['ck',_0xa79575(0xd4)]},'children':[{'tag':'p','children':[{'text':_0x934eea(this[_0xa79575(0x101)],_0xa79575(0x10a))+'\x20'},_0x38e38c]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2c5fdb=_0x5cbb;function _0x1e9b(){const _0x597928=['startAutoScroll','map','getItemById','updateSuggestionPartState','updateSources','25362730aWCbFo','user-message','start','_createFeedItems','ck-ai-chat__loader','isPending','markAsDone','updateWebSources','updatePartState','getPartView','setPartActive','305HbLekr','isVisible','options','12660984TAQuaO','removeItem','addItem','remove','setTemplate','children','stopAutoScroll','ai-suggestion-reply','isTrackChangesOn','includes','updateContent','setLoadingMessage','942590AiHhjG','loadingMessage','updateSuggestionItem','getItemIds','146022amLUMR','_createTemplateChildren','updateReplyItem','locale','ai-reply','toggleLoadingSkeleton','extendTemplate','_setupTemplate','aiFeed','_createSkeletonLoader','307234GffibS','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','ck-ai-chat__feed__items','_createLoaderChildren','ck-ai-chat__loader-text','scrollManager','hasItem','ai-chat-feed-view-item-not-a-reply-item','custom-element','ai-chat-feed-view-item-not-found','createCollection','delegate','24KwxFuV','div','destroy','add','find','isLoadingSkeletonVisible','_bodyCollection','forEach','24snphBg','span','set','interaction-header','ck-ai-chat__feed','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','615517zAepqz','scrollToSuggestion','filter','380802myGvII','clear','ai-chat-feed-view-item-not-a-suggestion-item','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','_createFeedLoader','markItemAsDone','parentElement','ck-hidden','bindTemplate','element','render','bind','setSuggestionPartActive','stop'];_0x1e9b=function(){return _0x597928;};return _0x1e9b();}function _0x5cbb(_0x14aae4,_0x35746b){const _0x1e9bd1=_0x1e9b();return _0x5cbb=function(_0x5cbb0f,_0x282399){_0x5cbb0f=_0x5cbb0f-0x1e1;let _0x5a636d=_0x1e9bd1[_0x5cbb0f];return _0x5a636d;},_0x5cbb(_0x14aae4,_0x35746b);}(function(_0x18229b,_0x38d9a7){const _0x325344=_0x5cbb,_0x1b44f9=_0x18229b();while(!![]){try{const _0x9921e8=-parseInt(_0x325344(0x231))/0x1+parseInt(_0x325344(0x223))/0x2+-parseInt(_0x325344(0x1f6))/0x3*(-parseInt(_0x325344(0x1e5))/0x4)+-parseInt(_0x325344(0x214))/0x5*(parseInt(_0x325344(0x227))/0x6)+parseInt(_0x325344(0x1f3))/0x7*(parseInt(_0x325344(0x1ed))/0x8)+-parseInt(_0x325344(0x217))/0x9+parseInt(_0x325344(0x209))/0xa;if(_0x9921e8===_0x38d9a7)break;else _0x1b44f9['push'](_0x1b44f9['shift']());}catch(_0x1f261f){_0x1b44f9['push'](_0x1b44f9['shift']());}}}(_0x1e9b,0xcbb5e));import{CKEditorError as _0x5a3fa9,logWarning as _0x105c7a,scrollAncestorsToShowTarget as _0x4194ef}from'ckeditor5/src/utils.js';import{View as _0x13e5a5}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x4bab1e}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x514539}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x44c7e0}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x83b5be}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x377d1c}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x3c88c7}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x534ce3}from'../../aicore/utils/scrollmanager.js';import{AISkeletonView as _0x28f789,SKELETON_DEFINITIONS as _0x29146c}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x3e5522}from'../../aicore/ui/aispinner.js';import{AIChatFeedCustomElementView as _0x12881d}from'./feed/aichatfeedcustomelementview.js';import'../../../theme/aichat/aichatfeed.css';export class AIChatFeedView extends _0x13e5a5{[_0x2c5fdb(0x21c)];[_0x2c5fdb(0x236)];[_0x2c5fdb(0x1eb)];constructor(_0x153be5,_0x190787){const _0x549262=_0x2c5fdb;super(_0x153be5),this[_0x549262(0x1eb)]=_0x190787,this[_0x549262(0x1ef)](_0x549262(0x20e),!0x1),this[_0x549262(0x1ef)](_0x549262(0x224),''),this[_0x549262(0x1ef)](_0x549262(0x1ea),!0x1),this[_0x549262(0x1ef)](_0x549262(0x21f),!0x1),this[_0x549262(0x21c)]=this[_0x549262(0x1e3)](),this[_0x549262(0x21c)][_0x549262(0x1e4)](..._0x4bab1e)['to'](this),this[_0x549262(0x22e)]();}[_0x2c5fdb(0x200)](){const _0x1a0365=_0x2c5fdb;super[_0x1a0365(0x200)](),this[_0x1a0365(0x236)]=new _0x534ce3(this[_0x1a0365(0x1ff)]);}[_0x2c5fdb(0x1e7)](){const _0x1bc290=_0x2c5fdb;super[_0x1bc290(0x1e7)](),this[_0x1bc290(0x236)][_0x1bc290(0x1e7)]();}[_0x2c5fdb(0x1f7)](){const _0x267696=_0x2c5fdb;this[_0x267696(0x21c)][_0x267696(0x1f7)]();}[_0x2c5fdb(0x219)](_0xf4323f,_0xf55def){const _0x4fe368=_0x2c5fdb;let _0x37ff38;return _0x4fe368(0x22b)===_0xf4323f?_0x37ff38=new _0x44c7e0(this[_0x4fe368(0x22a)],_0xf55def,this[_0x4fe368(0x1eb)]):_0x4fe368(0x21e)===_0xf4323f?(_0x37ff38=new _0x514539(this[_0x4fe368(0x22a)],_0xf55def,this[_0x4fe368(0x1eb)]),_0x37ff38[_0x4fe368(0x201)](_0x4fe368(0x21f))['to'](this)):_0x37ff38=_0x4fe368(0x20a)===_0xf4323f?new _0x83b5be(this[_0x4fe368(0x22a)],_0xf55def,this[_0x4fe368(0x1eb)]):_0x4fe368(0x1f0)===_0xf4323f?new _0x3c88c7(this[_0x4fe368(0x22a)],_0xf55def):_0x4fe368(0x1e1)===_0xf4323f?new _0x12881d(_0xf55def):new _0x377d1c(_0xf55def),this[_0x4fe368(0x21c)][_0x4fe368(0x1e8)](_0x37ff38),_0x37ff38;}async[_0x2c5fdb(0x229)]({id:_0x170045,parsedContent:_0x1fd7f6,renderingStrategy:_0x8a15c5,abortSignal:_0x251dc1}){const _0x1caa20=_0x2c5fdb,_0xd42b00=this[_0x1caa20(0x206)](_0x170045);if(!(_0xd42b00 instanceof _0x44c7e0))throw new _0x5a3fa9(_0x1caa20(0x238),null,{'itemView':_0xd42b00,'id':_0x170045,'parsedContent':_0x1fd7f6});await _0xd42b00[_0x1caa20(0x221)]({'parsedContent':_0x1fd7f6,'renderingStrategy':_0x8a15c5,'abortSignal':_0x251dc1});}async[_0x2c5fdb(0x210)](_0x10384c,_0x3e09bf){const _0x1ef966=_0x2c5fdb,_0xdcc114=this[_0x1ef966(0x206)](_0x10384c);if(_0xdcc114 instanceof _0x514539)_0xdcc114[_0x1ef966(0x208)](_0x3e09bf);else{if(!(_0xdcc114 instanceof _0x44c7e0))throw new _0x5a3fa9(_0x1ef966(0x232),null,{'itemView':_0xdcc114,'id':_0x10384c,'sources':_0x3e09bf});_0xdcc114[_0x1ef966(0x208)](_0x3e09bf);}}async[_0x2c5fdb(0x225)]({id:_0x9a4e76,parts:_0x45ccac,renderingStrategy:_0x458eb3,abortSignal:_0x4cb405}){const _0x3965ab=_0x2c5fdb,_0x4cfbe4=this[_0x3965ab(0x206)](_0x9a4e76);if(!(_0x4cfbe4 instanceof _0x514539))throw new _0x5a3fa9(_0x3965ab(0x1f8),null,{'itemView':_0x4cfbe4,'id':_0x9a4e76,'parts':_0x45ccac});await _0x4cfbe4[_0x3965ab(0x221)]({'parts':_0x45ccac,'renderingStrategy':_0x458eb3,'abortSignal':_0x4cb405});}[_0x2c5fdb(0x207)]({id:_0x1e449e,index:_0x508574,state:_0x498fd0}){const _0x160aa7=_0x2c5fdb,_0x23f316=this[_0x160aa7(0x206)](_0x1e449e);if(!(_0x23f316 instanceof _0x514539))throw new _0x5a3fa9(_0x160aa7(0x1f8),this,{'id':_0x1e449e});_0x23f316[_0x160aa7(0x211)](_0x508574,_0x498fd0);}[_0x2c5fdb(0x202)]({id:_0x4e7faf,index:_0x21f35c,isActive:_0x13691d}){const _0x3791e7=_0x2c5fdb,_0x1b4352=this[_0x3791e7(0x206)](_0x4e7faf);if(!(_0x1b4352 instanceof _0x514539))throw new _0x5a3fa9(_0x3791e7(0x1f8),this,{'id':_0x4e7faf});this[_0x3791e7(0x21c)][_0x3791e7(0x1f5)](_0x3a354b=>_0x3a354b instanceof _0x514539)[_0x3791e7(0x1ec)](_0x50a74c=>{const _0x345d8b=_0x3791e7;_0x50a74c[_0x345d8b(0x213)](!0x1);}),_0x1b4352[_0x3791e7(0x213)](_0x21f35c,_0x13691d);}[_0x2c5fdb(0x1fb)](_0x25e5a8){const _0x170dcf=_0x2c5fdb;this[_0x170dcf(0x206)](_0x25e5a8)[_0x170dcf(0x20f)]();}[_0x2c5fdb(0x226)](){const _0x4914b7=_0x2c5fdb;return this[_0x4914b7(0x21c)][_0x4914b7(0x205)](_0x532bc4=>_0x532bc4[_0x4914b7(0x216)]['id']);}[_0x2c5fdb(0x218)](_0x34b90b){const _0x30062f=_0x2c5fdb;this[_0x30062f(0x21c)][_0x30062f(0x21a)](this[_0x30062f(0x206)](_0x34b90b));}[_0x2c5fdb(0x237)](_0x3b15ea){const _0x2ebeb4=_0x2c5fdb;return!!this[_0x2ebeb4(0x21c)][_0x2ebeb4(0x1e9)](_0x41b5f0=>_0x41b5f0[_0x2ebeb4(0x216)]['id'][_0x2ebeb4(0x220)](_0x3b15ea));}[_0x2c5fdb(0x1f4)](_0xf033ad,_0x85d639){const _0x2b6c04=_0x2c5fdb,_0x4fdab1=this[_0x2b6c04(0x206)](_0xf033ad);if(!(_0x4fdab1 instanceof _0x514539))return void _0x105c7a(_0x2b6c04(0x1f9),{'replyId':_0xf033ad,'partIndex':_0x85d639});const _0x1fcd00=_0x4fdab1[_0x2b6c04(0x212)](_0x85d639);_0x1fcd00?_0x4194ef(_0x1fcd00[_0x2b6c04(0x1ff)],0x14,this[_0x2b6c04(0x1ff)][_0x2b6c04(0x1fc)],!0x0,!0x0):_0x105c7a(_0x2b6c04(0x1f2),{'replyId':_0xf033ad,'partIndex':_0x85d639});}[_0x2c5fdb(0x22e)](){const _0x4e4602=_0x2c5fdb;this[_0x4e4602(0x21b)]({'tag':_0x4e4602(0x1e6),'attributes':{'class':['ck',_0x4e4602(0x1f1)]},'children':this[_0x4e4602(0x228)]()});}[_0x2c5fdb(0x228)](){const _0x49eac6=_0x2c5fdb,_0x291aab=this[_0x49eac6(0x230)]();return[this[_0x49eac6(0x20c)](),_0x291aab,this[_0x49eac6(0x1fa)]()];}[_0x2c5fdb(0x230)](){const _0x680556=_0x2c5fdb,_0x52f16d=new _0x28f789(this[_0x680556(0x22a)],_0x29146c[_0x680556(0x22f)]);return _0x52f16d[_0x680556(0x22d)]({'attributes':{'class':[this[_0x680556(0x1fe)]['if'](_0x680556(0x1ea),_0x680556(0x1fd),_0x26f54d=>!_0x26f54d)]}}),_0x52f16d;}[_0x2c5fdb(0x20c)](){const _0x50f542=_0x2c5fdb,_0x2340ef=new _0x13e5a5(this[_0x50f542(0x22a)]);return _0x2340ef[_0x50f542(0x21b)]({'tag':_0x50f542(0x1e6),'attributes':{'class':['ck',_0x50f542(0x233),this[_0x50f542(0x1fe)]['if'](_0x50f542(0x1ea),_0x50f542(0x1fd))]},'children':this[_0x50f542(0x21c)]}),_0x2340ef;}[_0x2c5fdb(0x1fa)](){const _0x7d4855=_0x2c5fdb,_0xf1cb05=new _0x13e5a5(this[_0x7d4855(0x22a)]);return _0xf1cb05[_0x7d4855(0x21b)]({'tag':_0x7d4855(0x1e6),'attributes':{'class':['ck',_0x7d4855(0x20d),this[_0x7d4855(0x1fe)]['if'](_0x7d4855(0x20e),_0x7d4855(0x1fd),_0x34aa34=>!_0x34aa34)]},'children':this[_0x7d4855(0x234)]()}),_0xf1cb05;}[_0x2c5fdb(0x234)](){const _0x1a0f59=_0x2c5fdb,_0xf548a1=new _0x3e5522();return _0xf548a1[_0x1a0f59(0x215)]=!0x0,[_0xf548a1,{'tag':_0x1a0f59(0x1ee),'attributes':{'class':['ck',_0x1a0f59(0x235)]},'children':[{'text':this[_0x1a0f59(0x1fe)]['to'](_0x1a0f59(0x224))}]}];}[_0x2c5fdb(0x206)](_0x6e4ff){const _0x5cefee=_0x2c5fdb,_0x3c9066=this[_0x5cefee(0x21c)][_0x5cefee(0x1e9)](_0x226efd=>_0x226efd[_0x5cefee(0x216)]['id'][_0x5cefee(0x220)](_0x6e4ff));if(!_0x3c9066)throw new _0x5a3fa9(_0x5cefee(0x1e2),this,{'id':_0x6e4ff});return _0x3c9066;}[_0x2c5fdb(0x222)](_0x2a7ed8){const _0x17f09c=_0x2c5fdb;this[_0x17f09c(0x1ef)](_0x17f09c(0x224),_0x2a7ed8);}[_0x2c5fdb(0x22c)](_0x12678f){const _0x48204e=_0x2c5fdb;this[_0x48204e(0x1ef)](_0x48204e(0x1ea),_0x12678f);}[_0x2c5fdb(0x204)](){const _0x188538=_0x2c5fdb;this[_0x188538(0x236)][_0x188538(0x20b)]();}[_0x2c5fdb(0x21d)](){const _0x31ff4c=_0x2c5fdb;this[_0x31ff4c(0x236)][_0x31ff4c(0x203)]();}}
23
+ const _0x471236=_0x2b44;function _0x2b44(_0x5baa79,_0x44f4e5){const _0x350592=_0x3505();return _0x2b44=function(_0x2b444a,_0x5b692a){_0x2b444a=_0x2b444a-0x1cc;let _0x488deb=_0x350592[_0x2b444a];return _0x488deb;},_0x2b44(_0x5baa79,_0x44f4e5);}(function(_0x2bdbe1,_0x43ecd2){const _0x486b5b=_0x2b44,_0x33c11b=_0x2bdbe1();while(!![]){try{const _0x3e4470=-parseInt(_0x486b5b(0x1eb))/0x1+-parseInt(_0x486b5b(0x1f3))/0x2+-parseInt(_0x486b5b(0x1ed))/0x3+parseInt(_0x486b5b(0x1db))/0x4*(-parseInt(_0x486b5b(0x220))/0x5)+parseInt(_0x486b5b(0x1e5))/0x6+parseInt(_0x486b5b(0x1e6))/0x7*(-parseInt(_0x486b5b(0x1ea))/0x8)+parseInt(_0x486b5b(0x1d5))/0x9*(parseInt(_0x486b5b(0x1e8))/0xa);if(_0x3e4470===_0x43ecd2)break;else _0x33c11b['push'](_0x33c11b['shift']());}catch(_0x38fe4c){_0x33c11b['push'](_0x33c11b['shift']());}}}(_0x3505,0xc89e1));import{CKEditorError as _0x4cb051,logWarning as _0x17afb4,scrollAncestorsToShowTarget as _0x441628}from'ckeditor5/src/utils.js';import{View as _0x577c9a}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x3ce74d}from'../utils/eventnames.js';function _0x3505(){const _0x9e8d9a=['delegate','scrollManager','ai-chat-feed-view-item-not-found','markAsDone','startAutoScroll','children','set','ai-reply','updateContent','scrollToSuggestion','updatePartState','_setupTemplate','element','40CyKDvq','interaction-header','start','ck-ai-chat__feed','extendTemplate','ai-suggestion-reply','ck-ai-chat__loader-text','span','ck-ai-chat__loader','updateSuggestionPartState','addItem','user-message','stop','30522717gESyms','locale','markItemAsDone','destroy','ai-chat-feed-view-item-not-a-suggestion-item','loadingMessage','512772Jpqbuz','render','bind','options','add','setPartActive','parentElement','updateReplyItem','setLoadingMessage','isVisible','5251464OUrXPr','2995153NCZeZd','getItemIds','10REGkpk','isLoadingSkeletonVisible','16RfXMyC','116652MMOtIs','forEach','119610ejIZiC','ck-hidden','filter','custom-element','_createLoaderChildren','includes','2814208eYLynU','bindTemplate','div','_createSkeletonLoader','updateWebSources','_createTemplateChildren','updateSuggestionItem','getPartView','removeItem','aiFeed','toggleLoadingSkeleton','createCollection','isTrackChangesOn','_createFeedItems','hasItem','ai-chat-feed-view-item-not-a-reply-item','setTemplate','find','updateSources','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','setSuggestionPartActive','map','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','_createFeedLoader','clear','remove','_bodyCollection','isPending','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','ck-ai-chat__feed__items','stopAutoScroll','getItemById'];_0x3505=function(){return _0x9e8d9a;};return _0x3505();}import{AIChatFeedSuggestionItemView as _0x21e6c9}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x412c12}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x40c06f}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x843502}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x37bb2f}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x152a0d}from'../../aicore/utils/scrollmanager.js';import{AISkeletonView as _0x35bd8f,SKELETON_DEFINITIONS as _0x2028da}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x373974}from'../../aicore/ui/aispinner.js';import{AIChatFeedCustomElementView as _0x347788}from'./feed/aichatfeedcustomelementview.js';import'../../../theme/aichat/aichatfeed.css';export class AIChatFeedView extends _0x577c9a{[_0x471236(0x218)];[_0x471236(0x214)];[_0x471236(0x20d)];constructor(_0x1e9ef9,_0x3f27bb){const _0x47f2b6=_0x471236;super(_0x1e9ef9),this[_0x47f2b6(0x20d)]=_0x3f27bb,this[_0x47f2b6(0x219)](_0x47f2b6(0x20e),!0x1),this[_0x47f2b6(0x219)](_0x47f2b6(0x1da),''),this[_0x47f2b6(0x219)](_0x47f2b6(0x1e9),!0x1),this[_0x47f2b6(0x219)](_0x47f2b6(0x1ff),!0x1),this[_0x47f2b6(0x218)]=this[_0x47f2b6(0x1fe)](),this[_0x47f2b6(0x218)][_0x47f2b6(0x213)](..._0x3ce74d)['to'](this),this[_0x47f2b6(0x21e)]();}[_0x471236(0x1dc)](){const _0x4ab22f=_0x471236;super[_0x4ab22f(0x1dc)](),this[_0x4ab22f(0x214)]=new _0x152a0d(this[_0x4ab22f(0x21f)]);}[_0x471236(0x1d8)](){const _0x515b9f=_0x471236;super[_0x515b9f(0x1d8)](),this[_0x515b9f(0x214)][_0x515b9f(0x1d8)]();}[_0x471236(0x20b)](){const _0x3ce4c8=_0x471236;this[_0x3ce4c8(0x218)][_0x3ce4c8(0x20b)]();}[_0x471236(0x1d2)](_0x54f4b7,_0xea0093){const _0x378647=_0x471236;let _0xb361c;return _0x378647(0x21a)===_0x54f4b7?_0xb361c=new _0x412c12(this[_0x378647(0x1d6)],_0xea0093,this[_0x378647(0x20d)]):_0x378647(0x1cd)===_0x54f4b7?(_0xb361c=new _0x21e6c9(this[_0x378647(0x1d6)],_0xea0093,this[_0x378647(0x20d)]),_0xb361c[_0x378647(0x1dd)](_0x378647(0x1ff))['to'](this)):_0xb361c=_0x378647(0x1d3)===_0x54f4b7?new _0x40c06f(this[_0x378647(0x1d6)],_0xea0093,this[_0x378647(0x20d)]):_0x378647(0x221)===_0x54f4b7?new _0x37bb2f(this[_0x378647(0x1d6)],_0xea0093):_0x378647(0x1f0)===_0x54f4b7?new _0x347788(_0xea0093):new _0x843502(_0xea0093),this[_0x378647(0x218)][_0x378647(0x1df)](_0xb361c),_0xb361c;}async[_0x471236(0x1e2)]({id:_0x448139,parsedContent:_0x464e66,renderingStrategy:_0x315dcb,abortSignal:_0x2a9367}){const _0xfd2afc=_0x471236,_0x26a469=this[_0xfd2afc(0x212)](_0x448139);if(!(_0x26a469 instanceof _0x412c12))throw new _0x4cb051(_0xfd2afc(0x202),null,{'itemView':_0x26a469,'id':_0x448139,'parsedContent':_0x464e66});await _0x26a469[_0xfd2afc(0x21b)]({'parsedContent':_0x464e66,'renderingStrategy':_0x315dcb,'abortSignal':_0x2a9367});}async[_0x471236(0x1f7)](_0x36b820,_0x9d9948){const _0x385bcb=_0x471236,_0x59621e=this[_0x385bcb(0x212)](_0x36b820);if(_0x59621e instanceof _0x21e6c9)_0x59621e[_0x385bcb(0x205)](_0x9d9948);else{if(!(_0x59621e instanceof _0x412c12))throw new _0x4cb051(_0x385bcb(0x209),null,{'itemView':_0x59621e,'id':_0x36b820,'sources':_0x9d9948});_0x59621e[_0x385bcb(0x205)](_0x9d9948);}}async[_0x471236(0x1f9)]({id:_0x52f565,parts:_0x509824,renderingStrategy:_0x7395e1,abortSignal:_0xfdb112}){const _0x3cd0cd=_0x471236,_0x3a468b=this[_0x3cd0cd(0x212)](_0x52f565);if(!(_0x3a468b instanceof _0x21e6c9))throw new _0x4cb051(_0x3cd0cd(0x1d9),null,{'itemView':_0x3a468b,'id':_0x52f565,'parts':_0x509824});await _0x3a468b[_0x3cd0cd(0x21b)]({'parts':_0x509824,'renderingStrategy':_0x7395e1,'abortSignal':_0xfdb112});}[_0x471236(0x1d1)]({id:_0x56fd48,index:_0x228fb6,state:_0xdc0c38}){const _0x1f1c0d=_0x471236,_0x320ad9=this[_0x1f1c0d(0x212)](_0x56fd48);if(!(_0x320ad9 instanceof _0x21e6c9))throw new _0x4cb051(_0x1f1c0d(0x1d9),this,{'id':_0x56fd48});_0x320ad9[_0x1f1c0d(0x21d)](_0x228fb6,_0xdc0c38);}[_0x471236(0x207)]({id:_0xc52f96,index:_0x32af32,isActive:_0x3a1189}){const _0x1c8d4c=_0x471236,_0x5656e1=this[_0x1c8d4c(0x212)](_0xc52f96);if(!(_0x5656e1 instanceof _0x21e6c9))throw new _0x4cb051(_0x1c8d4c(0x1d9),this,{'id':_0xc52f96});this[_0x1c8d4c(0x218)][_0x1c8d4c(0x1ef)](_0x1d475b=>_0x1d475b instanceof _0x21e6c9)[_0x1c8d4c(0x1ec)](_0x18a092=>{const _0x546934=_0x1c8d4c;_0x18a092[_0x546934(0x1e0)](!0x1);}),_0x5656e1[_0x1c8d4c(0x1e0)](_0x32af32,_0x3a1189);}[_0x471236(0x1d7)](_0x148ee8){const _0x35c108=_0x471236;this[_0x35c108(0x212)](_0x148ee8)[_0x35c108(0x216)]();}[_0x471236(0x1e7)](){const _0x2dd814=_0x471236;return this[_0x2dd814(0x218)][_0x2dd814(0x208)](_0x57625d=>_0x57625d[_0x2dd814(0x1de)]['id']);}[_0x471236(0x1fb)](_0x118945){const _0x52fde4=_0x471236;this[_0x52fde4(0x218)][_0x52fde4(0x20c)](this[_0x52fde4(0x212)](_0x118945));}[_0x471236(0x201)](_0x5cea77){const _0xadd88c=_0x471236;return!!this[_0xadd88c(0x218)][_0xadd88c(0x204)](_0x14962d=>_0x14962d[_0xadd88c(0x1de)]['id'][_0xadd88c(0x1f2)](_0x5cea77));}[_0x471236(0x21c)](_0x3ebb05,_0x2a8221){const _0x7bc2=_0x471236,_0xd1a453=this[_0x7bc2(0x212)](_0x3ebb05);if(!(_0xd1a453 instanceof _0x21e6c9))return void _0x17afb4(_0x7bc2(0x20f),{'replyId':_0x3ebb05,'partIndex':_0x2a8221});const _0x465240=_0xd1a453[_0x7bc2(0x1fa)](_0x2a8221);_0x465240?_0x441628(_0x465240[_0x7bc2(0x21f)],0x14,this[_0x7bc2(0x21f)][_0x7bc2(0x1e1)],!0x0,!0x0):_0x17afb4(_0x7bc2(0x206),{'replyId':_0x3ebb05,'partIndex':_0x2a8221});}[_0x471236(0x21e)](){const _0x48cce0=_0x471236;this[_0x48cce0(0x203)]({'tag':_0x48cce0(0x1f5),'attributes':{'class':['ck',_0x48cce0(0x223)]},'children':this[_0x48cce0(0x1f8)]()});}[_0x471236(0x1f8)](){const _0x1e8244=_0x471236,_0x4cf51a=this[_0x1e8244(0x1f6)]();return[this[_0x1e8244(0x200)](),_0x4cf51a,this[_0x1e8244(0x20a)]()];}[_0x471236(0x1f6)](){const _0x33f5f1=_0x471236,_0x136fc4=new _0x35bd8f(this[_0x33f5f1(0x1d6)],_0x2028da[_0x33f5f1(0x1fc)]);return _0x136fc4[_0x33f5f1(0x1cc)]({'attributes':{'class':[this[_0x33f5f1(0x1f4)]['if'](_0x33f5f1(0x1e9),_0x33f5f1(0x1ee),_0x5530d6=>!_0x5530d6)]}}),_0x136fc4;}[_0x471236(0x200)](){const _0x1349f0=_0x471236,_0x2758a0=new _0x577c9a(this[_0x1349f0(0x1d6)]);return _0x2758a0[_0x1349f0(0x203)]({'tag':_0x1349f0(0x1f5),'attributes':{'class':['ck',_0x1349f0(0x210),this[_0x1349f0(0x1f4)]['if'](_0x1349f0(0x1e9),_0x1349f0(0x1ee))]},'children':this[_0x1349f0(0x218)]}),_0x2758a0;}[_0x471236(0x20a)](){const _0x157661=_0x471236,_0x367db4=new _0x577c9a(this[_0x157661(0x1d6)]);return _0x367db4[_0x157661(0x203)]({'tag':_0x157661(0x1f5),'attributes':{'class':['ck',_0x157661(0x1d0),this[_0x157661(0x1f4)]['if'](_0x157661(0x20e),_0x157661(0x1ee),_0x3beecb=>!_0x3beecb)]},'children':this[_0x157661(0x1f1)]()}),_0x367db4;}[_0x471236(0x1f1)](){const _0x1502fc=_0x471236,_0x2a105f=new _0x373974();return _0x2a105f[_0x1502fc(0x1e4)]=!0x0,[_0x2a105f,{'tag':_0x1502fc(0x1cf),'attributes':{'class':['ck',_0x1502fc(0x1ce)]},'children':[{'text':this[_0x1502fc(0x1f4)]['to'](_0x1502fc(0x1da))}]}];}[_0x471236(0x212)](_0x55b652){const _0x5f302d=_0x471236,_0x5d845a=this[_0x5f302d(0x218)][_0x5f302d(0x204)](_0x4661e8=>_0x4661e8[_0x5f302d(0x1de)]['id'][_0x5f302d(0x1f2)](_0x55b652));if(!_0x5d845a)throw new _0x4cb051(_0x5f302d(0x215),this,{'id':_0x55b652});return _0x5d845a;}[_0x471236(0x1e3)](_0x5ae94c){const _0x1aaa7b=_0x471236;this[_0x1aaa7b(0x219)](_0x1aaa7b(0x1da),_0x5ae94c);}[_0x471236(0x1fd)](_0x263d91){const _0x9a052e=_0x471236;this[_0x9a052e(0x219)](_0x9a052e(0x1e9),_0x263d91);}[_0x471236(0x217)](){const _0x8cf461=_0x471236;this[_0x8cf461(0x214)][_0x8cf461(0x222)]();}[_0x471236(0x211)](){const _0x13e936=_0x471236;this[_0x13e936(0x214)][_0x13e936(0x1d4)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x746057=_0x189a;(function(_0x3cb76b,_0x38c9ba){const _0x4777d5=_0x189a,_0x35db82=_0x3cb76b();while(!![]){try{const _0x5a219d=parseInt(_0x4777d5(0x1cc))/0x1+parseInt(_0x4777d5(0x1e1))/0x2+parseInt(_0x4777d5(0x1cf))/0x3*(parseInt(_0x4777d5(0x1df))/0x4)+-parseInt(_0x4777d5(0x1d8))/0x5*(-parseInt(_0x4777d5(0x1cb))/0x6)+-parseInt(_0x4777d5(0x1d2))/0x7+-parseInt(_0x4777d5(0x1cd))/0x8+parseInt(_0x4777d5(0x1db))/0x9*(-parseInt(_0x4777d5(0x1d1))/0xa);if(_0x5a219d===_0x38c9ba)break;else _0x35db82['push'](_0x35db82['shift']());}catch(_0x3b3955){_0x35db82['push'](_0x35db82['shift']());}}}(_0x377c,0x62516));import{ButtonView as _0x562ce7,FormHeaderView as _0x11e9c4}from'ckeditor5/src/ui.js';import{IconPlus as _0x17b0f7,IconAIChat as _0x209606}from'ckeditor5/src/icons.js';function _0x377c(){const _0x30797d=['676794wAtQcc','1842784EtvspN','AI_CHAT_HEADING','82179wonctm','children','10MQTjZS','2419095vJHfqn','conversationStartButton','add','ck-ai-header\x20ck-ai-header_chat','startConversation','execute','95WjfySH','isMaximized','set','9183717oPozWz','_createStartConversationButton','resizeButton','locale','36LSLpmB','AI_CHAT_LABEL_NEW_CHAT','1005332EXiqPM','ck-ai-chat__start-conversation','fire','180966czGiCu'];_0x377c=function(){return _0x30797d;};return _0x377c();}import{getTranslation as _0x111eb2}from'../../aicore/utils/common-translations.js';function _0x189a(_0x428dca,_0x3058e1){const _0x377c72=_0x377c();return _0x189a=function(_0x189ab6,_0x297a23){_0x189ab6=_0x189ab6-0x1cb;let _0x138ab0=_0x377c72[_0x189ab6];return _0x138ab0;},_0x189a(_0x428dca,_0x3058e1);}import{createResizeButton as _0x537673}from'../../aicore/utils/createresizebutton.js';import'../../../theme/common/aiheader.css';export class AIChatHeaderView extends _0x11e9c4{[_0x746057(0x1d3)];[_0x746057(0x1dd)];constructor(_0x899423,_0x4c09d0){const _0x2ddc0f=_0x746057;super(_0x899423,{'label':_0x111eb2(_0x899423,_0x2ddc0f(0x1ce)),'class':_0x2ddc0f(0x1d5),'icon':_0x209606}),this[_0x2ddc0f(0x1da)](_0x2ddc0f(0x1d9),!0x1),this[_0x2ddc0f(0x1d3)]=this[_0x2ddc0f(0x1dc)](_0x899423),this[_0x2ddc0f(0x1d0)][_0x2ddc0f(0x1d4)](this[_0x2ddc0f(0x1d3)]),_0x4c09d0&&(this[_0x2ddc0f(0x1dd)]=_0x537673(_0x899423,this),this[_0x2ddc0f(0x1d0)][_0x2ddc0f(0x1d4)](this[_0x2ddc0f(0x1dd)]));}[_0x746057(0x1dc)](_0x284484){const _0x1f8bbd=_0x746057,_0x5b7000=new _0x562ce7(_0x284484);return _0x5b7000[_0x1f8bbd(0x1da)]({'label':_0x111eb2(this[_0x1f8bbd(0x1de)],_0x1f8bbd(0x1e0)),'withText':!0x0,'icon':_0x17b0f7,'class':_0x1f8bbd(0x1e2)}),_0x5b7000['on'](_0x1f8bbd(0x1d7),()=>{const _0x52416c=_0x1f8bbd;this[_0x52416c(0x1e3)](_0x52416c(0x1d6));}),_0x5b7000;}}
23
+ const _0x39704a=_0x465a;(function(_0x14fdfd,_0x1b0348){const _0x489cb0=_0x465a,_0x7eff26=_0x14fdfd();while(!![]){try{const _0xca7102=-parseInt(_0x489cb0(0x1f0))/0x1*(parseInt(_0x489cb0(0x200))/0x2)+-parseInt(_0x489cb0(0x1f7))/0x3*(parseInt(_0x489cb0(0x1f4))/0x4)+parseInt(_0x489cb0(0x201))/0x5+parseInt(_0x489cb0(0x1f6))/0x6+-parseInt(_0x489cb0(0x1f8))/0x7*(-parseInt(_0x489cb0(0x1eb))/0x8)+parseInt(_0x489cb0(0x1ed))/0x9+-parseInt(_0x489cb0(0x1fd))/0xa;if(_0xca7102===_0x1b0348)break;else _0x7eff26['push'](_0x7eff26['shift']());}catch(_0x1abcc0){_0x7eff26['push'](_0x7eff26['shift']());}}}(_0x575c,0xe21ed));import{ButtonView as _0x175db4,FormHeaderView as _0x49c2a5}from'ckeditor5/src/ui.js';function _0x465a(_0x22bc7d,_0x474238){const _0x575cf1=_0x575c();return _0x465a=function(_0x465ab7,_0x597596){_0x465ab7=_0x465ab7-0x1eb;let _0x1e7ca7=_0x575cf1[_0x465ab7];return _0x1e7ca7;},_0x465a(_0x22bc7d,_0x474238);}import{IconPlus as _0x5373b1,IconAIChat as _0x1e7faf}from'ckeditor5/src/icons.js';import{getTranslation as _0x81d8fb}from'../../aicore/utils/common-translations.js';import{createResizeButton as _0x3bbb16}from'../../aicore/utils/createresizebutton.js';function _0x575c(){const _0x5cf98a=['isMaximized','execute','ck-ai-header\x20ck-ai-header_chat','70936gkNQOu','resizeButton','10939938LMAmVA','159WVXnri','7WPTgYo','conversationStartButton','set','ck-ai-chat__start-conversation','_createStartConversationButton','16569270cHeAYH','children','add','56530eVBUZK','3392110iSFBhf','fire','AI_CHAT_HEADING','5925704fJrjoI','AI_CHAT_LABEL_NEW_CHAT','4051350FHRXcJ','startConversation','locale','6TEFPSM'];_0x575c=function(){return _0x5cf98a;};return _0x575c();}import'../../../theme/common/aiheader.css';export class AIChatHeaderView extends _0x49c2a5{[_0x39704a(0x1f9)];[_0x39704a(0x1f5)];constructor(_0x374a3f,_0x490503){const _0x407bf9=_0x39704a;super(_0x374a3f,{'label':_0x81d8fb(_0x374a3f,_0x407bf9(0x203)),'class':_0x407bf9(0x1f3),'icon':_0x1e7faf}),this[_0x407bf9(0x1fa)](_0x407bf9(0x1f1),!0x1),this[_0x407bf9(0x1f9)]=this[_0x407bf9(0x1fc)](_0x374a3f),this[_0x407bf9(0x1fe)][_0x407bf9(0x1ff)](this[_0x407bf9(0x1f9)]),_0x490503&&(this[_0x407bf9(0x1f5)]=_0x3bbb16(_0x374a3f,this),this[_0x407bf9(0x1fe)][_0x407bf9(0x1ff)](this[_0x407bf9(0x1f5)]));}[_0x39704a(0x1fc)](_0x160b7e){const _0x41eb2b=_0x39704a,_0x1e92c4=new _0x175db4(_0x160b7e);return _0x1e92c4[_0x41eb2b(0x1fa)]({'label':_0x81d8fb(this[_0x41eb2b(0x1ef)],_0x41eb2b(0x1ec)),'withText':!0x0,'icon':_0x5373b1,'class':_0x41eb2b(0x1fb)}),_0x1e92c4['on'](_0x41eb2b(0x1f2),()=>{const _0x2b59a5=_0x41eb2b;this[_0x2b59a5(0x202)](_0x2b59a5(0x1ee));}),_0x1e92c4;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x5d6464=_0x551c;(function(_0x4e8d17,_0x3a04a6){var _0x3aeb0a=_0x551c,_0x16954c=_0x4e8d17();while(!![]){try{var _0x46c211=parseInt(_0x3aeb0a(0x12e))/0x1*(parseInt(_0x3aeb0a(0x143))/0x2)+-parseInt(_0x3aeb0a(0x12c))/0x3+parseInt(_0x3aeb0a(0x136))/0x4*(parseInt(_0x3aeb0a(0x13a))/0x5)+parseInt(_0x3aeb0a(0x132))/0x6+-parseInt(_0x3aeb0a(0x12d))/0x7*(-parseInt(_0x3aeb0a(0x130))/0x8)+parseInt(_0x3aeb0a(0x138))/0x9*(parseInt(_0x3aeb0a(0x131))/0xa)+-parseInt(_0x3aeb0a(0x135))/0xb*(parseInt(_0x3aeb0a(0x142))/0xc);if(_0x46c211===_0x3a04a6)break;else _0x16954c['push'](_0x16954c['shift']());}catch(_0x3057b2){_0x16954c['push'](_0x16954c['shift']());}}}(_0x1a08,0x4382b));import{View as _0x58cb5f,BodyCollection as _0x5b9581}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x4268dc}from'../utils/eventnames.js';import{AIChatFeedView as _0xcd5cb5}from'./aichatfeedview.js';function _0x1a08(){var _0x1321bc=['chatControls','chatHeader','div','ck-reset_all','378966xODPTc','41321SOxPlY','1kkYaNw','uiLanguageDirection','24MyZlnw','30jGSZot','2626236bCCNBA','delegate','chatFeed','5027ovTshl','109944YlGyIK','ck-rounded-corners','1434951NKMpet','detachFromDom','45zsMGne','attachToDom','ck-ai-chat','populateSourceResourceBalloon','contextResourcesSearchInputVisibleFrom','closeSourceResourceBalloon','chatDisclaimer','destroy','33360BDLrFV','984398ECLFuK','setTemplate','showResizeButton','_bodyCollection'];_0x1a08=function(){return _0x1321bc;};return _0x1a08();}import{AIChatControlsView as _0x7a6acb}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x207b82}from'./aichatheaderview.js';import{AIDisclaimerView as _0x2c3d8b}from'../../aicore/ui/aidisclaimerview.js';function _0x551c(_0x5255bf,_0x1f7817){var _0x1a0895=_0x1a08();return _0x551c=function(_0x551c8e,_0xec7376){_0x551c8e=_0x551c8e-0x128;var _0x4a8aec=_0x1a0895[_0x551c8e];return _0x4a8aec;},_0x551c(_0x5255bf,_0x1f7817);}import'../../../theme/common/ainotification.css';import'../../../theme/common/aibutton.css';import'../../../theme/common/aitrackchanges.css';export class AIChatView extends _0x58cb5f{[_0x5d6464(0x129)];[_0x5d6464(0x134)];[_0x5d6464(0x128)];[_0x5d6464(0x140)];[_0x5d6464(0x146)];constructor(_0x71f584,_0x547822){var _0x3265eb=_0x5d6464;super(_0x71f584),this[_0x3265eb(0x146)]=new _0x5b9581(_0x71f584),this[_0x3265eb(0x146)][_0x3265eb(0x13b)](),this[_0x3265eb(0x129)]=new _0x207b82(_0x71f584,_0x547822[_0x3265eb(0x145)]),this[_0x3265eb(0x129)][_0x3265eb(0x133)](..._0x4268dc)['to'](this),this[_0x3265eb(0x134)]=new _0xcd5cb5(_0x71f584,this[_0x3265eb(0x146)]),this[_0x3265eb(0x134)][_0x3265eb(0x133)](..._0x4268dc)['to'](this),this[_0x3265eb(0x128)]=new _0x7a6acb(_0x71f584,{'bodyCollection':this[_0x3265eb(0x146)],'contextResourcesSearchInputVisibleFrom':_0x547822[_0x3265eb(0x13e)]}),this[_0x3265eb(0x128)][_0x3265eb(0x133)](..._0x4268dc)['to'](this),this[_0x3265eb(0x140)]=new _0x2c3d8b(_0x71f584),this[_0x3265eb(0x144)]({'tag':_0x3265eb(0x12a),'attributes':{'class':['ck',_0x3265eb(0x12b),_0x3265eb(0x13c),_0x3265eb(0x137)],'dir':_0x71f584[_0x3265eb(0x12f)]},'children':[this[_0x3265eb(0x129)],this[_0x3265eb(0x134)],this[_0x3265eb(0x128)],this[_0x3265eb(0x140)]]});}[_0x5d6464(0x13d)](_0x1d65e9,_0x4106aa,_0x1b1f6e,_0x167efe){var _0x388b26=_0x5d6464;this[_0x388b26(0x128)][_0x388b26(0x13d)](_0x1d65e9,_0x4106aa,_0x1b1f6e,_0x167efe);}[_0x5d6464(0x13f)](_0x290fcc){var _0x5b069a=_0x5d6464;this[_0x5b069a(0x128)][_0x5b069a(0x13f)](_0x290fcc);}[_0x5d6464(0x141)](){var _0x2a17ac=_0x5d6464;this[_0x2a17ac(0x146)][_0x2a17ac(0x139)](),super[_0x2a17ac(0x141)]();}}
23
+ var _0x57cdc5=_0x2167;(function(_0x1ff21d,_0x1cc4c6){var _0x47b51e=_0x2167,_0xbed430=_0x1ff21d();while(!![]){try{var _0xaf9ccb=-parseInt(_0x47b51e(0x159))/0x1+-parseInt(_0x47b51e(0x16b))/0x2+parseInt(_0x47b51e(0x154))/0x3+parseInt(_0x47b51e(0x15a))/0x4+parseInt(_0x47b51e(0x15c))/0x5+-parseInt(_0x47b51e(0x15d))/0x6+parseInt(_0x47b51e(0x162))/0x7*(parseInt(_0x47b51e(0x15e))/0x8);if(_0xaf9ccb===_0x1cc4c6)break;else _0xbed430['push'](_0xbed430['shift']());}catch(_0x20e6e9){_0xbed430['push'](_0xbed430['shift']());}}}(_0x4d3a,0x81909));import{View as _0x1de989,BodyCollection as _0x1c6f4b}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x3972bd}from'../utils/eventnames.js';function _0x2167(_0x30e705,_0x3fc8de){var _0x4d3aa7=_0x4d3a();return _0x2167=function(_0x216743,_0x19282f){_0x216743=_0x216743-0x153;var _0x4bf211=_0x4d3aa7[_0x216743];return _0x4bf211;},_0x2167(_0x30e705,_0x3fc8de);}import{AIChatFeedView as _0x14d255}from'./aichatfeedview.js';import{AIChatControlsView as _0x49b6b4}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x2fbd35}from'./aichatheaderview.js';function _0x4d3a(){var _0x520095=['delegate','125888EdeCJm','ck-rounded-corners','attachToDom','chatHeader','81546ZerLct','destroy','chatDisclaimer','div','chatControls','224479PgayRJ','3042784TPDJZH','closeSourceResourceBalloon','202020xdZNkx','711744aCCkEv','48PQoPrG','detachFromDom','contextResourcesSearchInputVisibleFrom','chatFeed','126539jbSQyz','ck-reset_all','_bodyCollection','populateSourceResourceBalloon','ck-ai-chat','uiLanguageDirection','showResizeButton','setTemplate'];_0x4d3a=function(){return _0x520095;};return _0x4d3a();}import{AIDisclaimerView as _0x125f96}from'../../aicore/ui/aidisclaimerview.js';import'../../../theme/common/ainotification.css';import'../../../theme/common/aibutton.css';import'../../../theme/common/aitrackchanges.css';export class AIChatView extends _0x1de989{[_0x57cdc5(0x153)];[_0x57cdc5(0x161)];[_0x57cdc5(0x158)];[_0x57cdc5(0x156)];[_0x57cdc5(0x164)];constructor(_0x21ece6,_0x3b4be1){var _0x84fcfb=_0x57cdc5;super(_0x21ece6),this[_0x84fcfb(0x164)]=new _0x1c6f4b(_0x21ece6),this[_0x84fcfb(0x164)][_0x84fcfb(0x16d)](),this[_0x84fcfb(0x153)]=new _0x2fbd35(_0x21ece6,_0x3b4be1[_0x84fcfb(0x168)]),this[_0x84fcfb(0x153)][_0x84fcfb(0x16a)](..._0x3972bd)['to'](this),this[_0x84fcfb(0x161)]=new _0x14d255(_0x21ece6,this[_0x84fcfb(0x164)]),this[_0x84fcfb(0x161)][_0x84fcfb(0x16a)](..._0x3972bd)['to'](this),this[_0x84fcfb(0x158)]=new _0x49b6b4(_0x21ece6,{'bodyCollection':this[_0x84fcfb(0x164)],'contextResourcesSearchInputVisibleFrom':_0x3b4be1[_0x84fcfb(0x160)]}),this[_0x84fcfb(0x158)][_0x84fcfb(0x16a)](..._0x3972bd)['to'](this),this[_0x84fcfb(0x156)]=new _0x125f96(_0x21ece6),this[_0x84fcfb(0x169)]({'tag':_0x84fcfb(0x157),'attributes':{'class':['ck',_0x84fcfb(0x163),_0x84fcfb(0x166),_0x84fcfb(0x16c)],'dir':_0x21ece6[_0x84fcfb(0x167)]},'children':[this[_0x84fcfb(0x153)],this[_0x84fcfb(0x161)],this[_0x84fcfb(0x158)],this[_0x84fcfb(0x156)]]});}[_0x57cdc5(0x165)](_0x155657,_0x5df1c5,_0x175f4e,_0xe5d0cc){var _0x2d8dab=_0x57cdc5;this[_0x2d8dab(0x158)][_0x2d8dab(0x165)](_0x155657,_0x5df1c5,_0x175f4e,_0xe5d0cc);}[_0x57cdc5(0x15b)](_0x24a761){var _0x34dca6=_0x57cdc5;this[_0x34dca6(0x158)][_0x34dca6(0x15b)](_0x24a761);}[_0x57cdc5(0x155)](){var _0x266fd7=_0x57cdc5;this[_0x266fd7(0x164)][_0x266fd7(0x15f)](),super[_0x266fd7(0x155)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xc36ce6=_0x50f8;(function(_0x40fe26,_0x32ec45){const _0x4a0ac9=_0x50f8,_0xda47d2=_0x40fe26();while(!![]){try{const _0x48fbea=parseInt(_0x4a0ac9(0x174))/0x1*(parseInt(_0x4a0ac9(0x105))/0x2)+-parseInt(_0x4a0ac9(0xeb))/0x3*(parseInt(_0x4a0ac9(0x182))/0x4)+parseInt(_0x4a0ac9(0x155))/0x5*(-parseInt(_0x4a0ac9(0x131))/0x6)+-parseInt(_0x4a0ac9(0x11d))/0x7*(-parseInt(_0x4a0ac9(0x164))/0x8)+-parseInt(_0x4a0ac9(0x175))/0x9*(-parseInt(_0x4a0ac9(0x10b))/0xa)+-parseInt(_0x4a0ac9(0xf1))/0xb*(-parseInt(_0x4a0ac9(0xf8))/0xc)+-parseInt(_0x4a0ac9(0x170))/0xd*(parseInt(_0x4a0ac9(0x16f))/0xe);if(_0x48fbea===_0x32ec45)break;else _0xda47d2['push'](_0xda47d2['shift']());}catch(_0x6b58ba){_0xda47d2['push'](_0xda47d2['shift']());}}}(_0x579a,0x6ee9a));import{View as _0x4857de,BalloonPanelView as _0x3ed472,ButtonView as _0x27fabf,clickOutsideHandler as _0x94199d}from'ckeditor5/src/ui.js';import{Collection as _0x148701}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},an=_0xc36ce6(0xfd);function _0x579a(){const _0x795b7f=['absolute','from','innerWidth','_repinBalloonPanel','position','_testButtonFit','getBoundingClientRect','block','7JNulCk','appendChild','body','_distributeChips','observe','_makeAncestorsVisible','_renderChipsAndCountRows','showMoreButton','_createMockButton','visibility','pointerEvents','zIndex','.ck-ai-chat','set','_ancestorsToRestore','length','_handleShowMoreButtonClick','_createContainerElements','_setupVisibilityObserver','render','375438GzYaHN','width','_updateBalloonContent','_updateShowMoreButtonVisibility','offsetWidth','cssClasses','reorganizeChips','div','some','_overflowChips','_isContainerVisible','filter','_findTargetContainer','setContainerElement','clientWidth','disconnect','_parentView','extendTemplate','none','top','0px','element','createElement','_applyCalculationStyles','className','_visibleChips','controlsButton','_showMoreBalloonPanelView','border-box','display','_config','left','boxSizing','show','button','isOn','40fHDoUi','hide','block\x20!important','overflowContainer','label','_createShowMoreButton','destroy','_pendingCalculation','right','push','_createShowMoreButtonView','showBalloonPanel','getComputedStyle','execute','rowDetectionTolerance','6590784ulhlFW','hidden','showMoreButtonView','overflowChips','add','isVisible','toLowerCase','children','isIntersecting','50px','forEach','490HLSOPp','282919SddKEP','cloneNode','pin','_bodyCollection','4SCuodL','153PhHeHl','_intersectionObserver','opacity','clientHeight','_createCalculationContainer','abs','_containerElement','_targetContainer','showMoreLabelPrefix','visible\x20!important','textContent','-9999px','_calculateOverflowInContainer','176npcsvV','54687YMvRNT','hideBalloonPanel','_updateOverflowUI','pop','ck-calculation-container','tagName','55TKUHqb','showMoreBalloon','bottom','setTemplate','_applyOverflowResults','_restoreAncestorVisibility','_createShowMoreBalloonPanelView','1388184RQFyoU','_showMoreButtonView','isConnected','slice','+\x201','300px','disableAnimationOnEnter','calculationContainer','undefined','_checkAndHandleOverflow','clear','innerHTML','parentElement','135268TeFUBg','content','_locale','includes','maxVisibleRows','classList','497570CIvteM','querySelector','_calculateContainerWidth','auto','height','visible','innerHeight','remove','style','documentElement'];_0x579a=function(){return _0x795b7f;};return _0x579a();}function _0x50f8(_0x3941ee,_0x41940b){const _0x579ad7=_0x579a();return _0x50f8=function(_0x50f8c6,_0x553633){_0x50f8c6=_0x50f8c6-0xeb;let _0x1e27c1=_0x579ad7[_0x50f8c6];return _0x1e27c1;},_0x50f8(_0x3941ee,_0x41940b);}export class AIChatChipsOverflowManager{[_0xc36ce6(0x107)];[_0xc36ce6(0x14f)];[_0xc36ce6(0x14a)];[_0xc36ce6(0x13a)];[_0xc36ce6(0xf9)]=null;[_0xc36ce6(0x14c)]=null;[_0xc36ce6(0x17b)]=null;[_0xc36ce6(0x173)];[_0xc36ce6(0x141)]=null;[_0xc36ce6(0x176)]=null;[_0xc36ce6(0x15c)]=!0x1;constructor(_0x249ce8,_0x4c6b86,_0x1eb8e3,_0x2754fe,_0xf2b734){const _0xce9ddb=_0xc36ce6;this[_0xce9ddb(0x107)]=_0x249ce8,this[_0xce9ddb(0x14a)]=_0x4c6b86,this[_0xce9ddb(0x14f)]={...hn,..._0x1eb8e3,'cssClasses':{'controlsButton':'','calculationContainer':_0xce9ddb(0xef),..._0x1eb8e3[_0xce9ddb(0x136)]}},this[_0xce9ddb(0x13a)]=new _0x148701(),this[_0xce9ddb(0x173)]=_0x2754fe,this[_0xce9ddb(0x141)]=_0xf2b734||null;}[_0xc36ce6(0x13e)](_0x2c2513){const _0x30111e=_0xc36ce6;this[_0x30111e(0x176)]&&(this[_0x30111e(0x176)][_0x30111e(0x140)](),this[_0x30111e(0x176)]=null),this[_0x30111e(0x17b)]=_0x2c2513,this[_0x30111e(0x12f)]();}get[_0xc36ce6(0x166)](){const _0x28652f=_0xc36ce6;return this[_0x28652f(0xf9)];}get[_0xc36ce6(0x167)](){const _0x9c7892=_0xc36ce6;return this[_0x9c7892(0x13a)];}[_0xc36ce6(0x137)](){requestAnimationFrame(()=>{const _0x229228=_0x50f8;this[_0x229228(0x101)]();});}[_0xc36ce6(0x160)](){const _0xf68efc=_0xc36ce6;this[_0xf68efc(0xf9)]&&this[_0xf68efc(0x14c)]&&(this[_0xf68efc(0x133)](),this[_0xf68efc(0xf9)][_0xf68efc(0x154)]=!0x0,this[_0xf68efc(0x14c)][_0xf68efc(0x152)](),this[_0xf68efc(0x14c)][_0xf68efc(0x172)]({'target':this[_0xf68efc(0xf9)][_0xf68efc(0x146)],'limiter':document[_0xf68efc(0x10c)](_0xf68efc(0x129))}));}[_0xc36ce6(0xec)](){const _0x5a71ee=_0xc36ce6;this[_0x5a71ee(0xf9)]&&this[_0x5a71ee(0x14c)]&&(this[_0x5a71ee(0xf9)][_0x5a71ee(0x154)]=!0x1,this[_0x5a71ee(0x14c)][_0x5a71ee(0x156)]());}[_0xc36ce6(0x102)](){const _0x37eb5=_0xc36ce6;this[_0x37eb5(0x13a)][_0x37eb5(0x102)](),this[_0x37eb5(0xec)](),this[_0x37eb5(0x134)](),this[_0x37eb5(0xf9)]&&(this[_0x37eb5(0xf9)][_0x37eb5(0x159)]=''),this[_0x37eb5(0x14c)]&&this[_0x37eb5(0x14c)][_0x37eb5(0x106)][_0x37eb5(0x102)]();}[_0xc36ce6(0x15b)](){const _0x51fdd0=_0xc36ce6;this[_0x51fdd0(0x176)]&&(this[_0x51fdd0(0x176)][_0x51fdd0(0x140)](),this[_0x51fdd0(0x176)]=null),this[_0x51fdd0(0xf9)]&&(this[_0x51fdd0(0xf9)][_0x51fdd0(0x15b)](),this[_0x51fdd0(0xf9)]=null),this[_0x51fdd0(0x14c)]&&(this[_0x51fdd0(0x14c)][_0x51fdd0(0x15b)](),this[_0x51fdd0(0x14c)]=null);}[_0xc36ce6(0x101)](){const _0x20ce65=_0xc36ce6;if(!this[_0x20ce65(0x17b)])return;if(!this[_0x20ce65(0x13b)]())return void(this[_0x20ce65(0x15c)]=!0x0);this[_0x20ce65(0x15c)]=!0x1;const _0x5729d8=[...this[_0x20ce65(0x14a)],...this[_0x20ce65(0x13a)]],_0x519a31=this[_0x20ce65(0x179)](),_0x264919=this[_0x20ce65(0x181)](_0x519a31,_0x5729d8),_0x58dbd5=_0x519a31[_0x20ce65(0x12b)];_0x58dbd5&&this[_0x20ce65(0xf6)](_0x58dbd5),_0x519a31[_0x20ce65(0x112)](),this[_0x20ce65(0xf5)](_0x5729d8,_0x264919);}[_0xc36ce6(0x15a)](){const _0x595d03=_0xc36ce6;this[_0x595d03(0xf9)]=this[_0x595d03(0x15f)](),this[_0x595d03(0x14c)]=this[_0x595d03(0xf7)](),this[_0x595d03(0xf9)][_0x595d03(0x130)](),this[_0x595d03(0x17b)][_0x595d03(0x11e)](this[_0x595d03(0xf9)][_0x595d03(0x146)]),this[_0x595d03(0xf9)]['on'](_0x595d03(0x162),()=>{const _0x3ae2ce=_0x595d03;this[_0x3ae2ce(0x12d)]();}),_0x94199d({'emitter':this[_0x595d03(0x14c)],'contextElements':[this[_0x595d03(0x14c)][_0x595d03(0x146)],this[_0x595d03(0xf9)][_0x595d03(0x146)]],'callback':()=>this[_0x595d03(0xec)](),'activator':()=>this[_0x595d03(0xf9)][_0x595d03(0x154)]});}[_0xc36ce6(0x15f)](){const _0x2ccf48=_0xc36ce6,_0xcf2f5f=new _0x27fabf(this[_0x2ccf48(0x107)]);_0xcf2f5f[_0x2ccf48(0x12a)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x4b3f65=[this[_0x2ccf48(0x14f)][_0x2ccf48(0x136)][_0x2ccf48(0x124)]];return this[_0x2ccf48(0x14f)][_0x2ccf48(0x136)][_0x2ccf48(0x14b)]&&_0x4b3f65[_0x2ccf48(0x15e)](this[_0x2ccf48(0x14f)][_0x2ccf48(0x136)][_0x2ccf48(0x14b)]),_0xcf2f5f[_0x2ccf48(0x142)]({'attributes':{'class':_0x4b3f65}}),_0xcf2f5f;}[_0xc36ce6(0xf7)](){const _0x4cc470=_0xc36ce6,_0x54a2ea=new _0x3ed472(this[_0x4cc470(0x107)]);return _0x54a2ea[_0x4cc470(0x142)]({'attributes':{'class':this[_0x4cc470(0x14f)][_0x4cc470(0x136)][_0x4cc470(0xf2)]}}),this[_0x4cc470(0x173)][_0x4cc470(0x168)](_0x54a2ea),_0x54a2ea;}[_0xc36ce6(0x133)](){const _0x220305=_0xc36ce6;if(this[_0x220305(0x14c)]&&(this[_0x220305(0x14c)][_0x220305(0x106)][_0x220305(0x102)](),this[_0x220305(0x13a)][_0x220305(0x12c)]>0x0)){this[_0x220305(0x13a)][_0x220305(0x16e)](_0x71ffb3=>{const _0x140259=_0x220305;_0x71ffb3[_0x140259(0xfe)]();});const _0x11e4f6=new _0x4857de(this[_0x220305(0x107)]);_0x11e4f6[_0x220305(0xf4)]({'tag':_0x220305(0x138),'attributes':{'class':this[_0x220305(0x14f)][_0x220305(0x136)][_0x220305(0x158)]},'children':this[_0x220305(0x13a)]}),this[_0x220305(0x14c)][_0x220305(0x106)][_0x220305(0x168)](_0x11e4f6);}}[_0xc36ce6(0x12d)](){const _0x37b5be=_0xc36ce6;this[_0x37b5be(0xf9)][_0x37b5be(0x154)]?this[_0x37b5be(0xec)]():this[_0x37b5be(0x160)]();}[_0xc36ce6(0x134)](){const _0x107db1=_0xc36ce6,_0x4696d2=this[_0x107db1(0x13a)][_0x107db1(0x12c)]>0x0;this[_0x107db1(0xf9)]?.[_0x107db1(0x146)]&&(this[_0x107db1(0xf9)][_0x107db1(0x146)][_0x107db1(0x113)][_0x107db1(0x14e)]=_0x4696d2?'':_0x107db1(0x143));}[_0xc36ce6(0x118)](){const _0xaca2f1=_0xc36ce6;this[_0xaca2f1(0xf9)]?.[_0xaca2f1(0x154)]&&this[_0xaca2f1(0x14c)]?.[_0xaca2f1(0x169)]&&this[_0xaca2f1(0xf9)][_0xaca2f1(0x146)]&&this[_0xaca2f1(0x14c)][_0xaca2f1(0x172)]({'target':this[_0xaca2f1(0xf9)][_0xaca2f1(0x146)],'limiter':document[_0xaca2f1(0x10c)](_0xaca2f1(0x129))});}[_0xc36ce6(0x13d)](_0x33f8a2){const _0x51b98c=_0xc36ce6,_0x1afc82=this[_0x51b98c(0x17b)]?.[_0x51b98c(0xf0)][_0x51b98c(0x16a)]()||_0x51b98c(0x138),_0x48adb9=this[_0x51b98c(0x17b)]?.[_0x51b98c(0x10a)];if(_0x48adb9){const _0x9e53df=_0x48adb9[0x0]||'',_0xe74c20=_0x33f8a2[_0x51b98c(0x10c)]('.'+_0x9e53df),_0x76a35b=_0x33f8a2[_0x51b98c(0x10c)](_0x1afc82);return _0xe74c20||_0x76a35b||_0x33f8a2;}return _0x33f8a2[_0x51b98c(0x10c)](_0x1afc82)||_0x33f8a2;}[_0xc36ce6(0x10d)](){const _0x42df06=_0xc36ce6,_0x3404d1=this[_0x42df06(0x141)]?.[_0x42df06(0x146)]||this[_0x42df06(0x17b)];if(!_0x3404d1)return an;const _0x4cd7c0=window[_0x42df06(0x161)](_0x3404d1)[_0x42df06(0x132)];if(_0x42df06(0x10e)===_0x4cd7c0||_0x42df06(0x145)===_0x4cd7c0||!_0x4cd7c0){const _0x183d2b=_0x3404d1[_0x42df06(0x104)];if(_0x183d2b){const _0x3178ce=window[_0x42df06(0x161)](_0x183d2b);return _0x42df06(0x10e)!==_0x3178ce[_0x42df06(0x132)]?_0x3178ce[_0x42df06(0x132)]:an;}return an;}return _0x4cd7c0;}[_0xc36ce6(0x148)](_0x1837cd,_0x517d04){const _0x1272b7=_0xc36ce6;this[_0x1272b7(0x14f)][_0x1272b7(0x136)][_0x1272b7(0xff)]&&_0x1837cd[_0x1272b7(0x10a)][_0x1272b7(0x168)](this[_0x1272b7(0x14f)][_0x1272b7(0x136)][_0x1272b7(0xff)]),_0x1837cd[_0x1272b7(0x113)][_0x1272b7(0x132)]=_0x517d04,_0x1837cd[_0x1272b7(0x113)][_0x1272b7(0x119)]=_0x1272b7(0x115),_0x1837cd[_0x1272b7(0x113)][_0x1272b7(0x144)]=_0x1272b7(0x180),_0x1837cd[_0x1272b7(0x113)][_0x1272b7(0x150)]=_0x1272b7(0x180),_0x1837cd[_0x1272b7(0x113)][_0x1272b7(0x177)]='0',_0x1837cd[_0x1272b7(0x113)][_0x1272b7(0x127)]=_0x1272b7(0x143),_0x1837cd[_0x1272b7(0x113)][_0x1272b7(0x128)]='-1',_0x1837cd[_0x1272b7(0x113)][_0x1272b7(0x126)]=_0x1272b7(0x17e),_0x1837cd[_0x1272b7(0x113)][_0x1272b7(0x14e)]=_0x1272b7(0x157),_0x1837cd[_0x1272b7(0x113)][_0x1272b7(0x151)]=_0x1272b7(0x14d);}[_0xc36ce6(0xf6)](_0x317c0d){const _0x29f476=_0xc36ce6;_0x317c0d[_0x29f476(0x16e)](({element:_0x5f31c0,originalDisplay:_0x18b974,originalVisibility:_0x15542c})=>{const _0x19e789=_0x29f476;_0x5f31c0[_0x19e789(0x113)][_0x19e789(0x14e)]=_0x18b974,_0x5f31c0[_0x19e789(0x113)][_0x19e789(0x126)]=_0x15542c;});}[_0xc36ce6(0x122)](_0x550d64){const _0x4a1570=_0xc36ce6,_0x1e768e=[];let _0x2af71c=_0x550d64;for(;_0x2af71c&&_0x2af71c!==document[_0x4a1570(0x11f)];){const _0x27d28d=window[_0x4a1570(0x161)](_0x2af71c);_0x4a1570(0x143)!==_0x27d28d[_0x4a1570(0x14e)]&&_0x4a1570(0x165)!==_0x27d28d[_0x4a1570(0x126)]||(_0x1e768e[_0x4a1570(0x15e)]({'element':_0x2af71c,'originalDisplay':_0x2af71c[_0x4a1570(0x113)][_0x4a1570(0x14e)],'originalVisibility':_0x2af71c[_0x4a1570(0x113)][_0x4a1570(0x126)]}),_0x2af71c[_0x4a1570(0x113)][_0x4a1570(0x14e)]=_0x4a1570(0x11c),_0x2af71c[_0x4a1570(0x113)][_0x4a1570(0x126)]=_0x4a1570(0x110)),_0x2af71c=_0x2af71c[_0x4a1570(0x104)];}return _0x1e768e;}[_0xc36ce6(0x12e)](){const _0x37733a=_0xc36ce6;let _0x3ec7ba,_0x5aecd6;return this[_0x37733a(0x141)]?.[_0x37733a(0x146)]?(_0x3ec7ba=this[_0x37733a(0x141)][_0x37733a(0x146)][_0x37733a(0x171)](!0x0),_0x5aecd6=this[_0x37733a(0x13d)](_0x3ec7ba)):(_0x3ec7ba=document[_0x37733a(0x147)](_0x37733a(0x138)),_0x5aecd6=_0x3ec7ba),{'calculationContainer':_0x3ec7ba,'targetContainer':_0x5aecd6};}[_0xc36ce6(0x179)](){const _0x38928f=_0xc36ce6,{calculationContainer:_0x31c848,targetContainer:_0x26aed9}=this[_0x38928f(0x12e)](),_0x5d35d1=this[_0x38928f(0x10d)]();this[_0x38928f(0x148)](_0x31c848,_0x5d35d1);const _0x2fed23=this[_0x38928f(0x141)]?.[_0x38928f(0x146)]||this[_0x38928f(0x17b)],_0x38c276=_0x2fed23?.[_0x38928f(0x104)];_0x38c276?_0x38c276[_0x38928f(0x11e)](_0x31c848):document[_0x38928f(0x11f)][_0x38928f(0x11e)](_0x31c848),_0x31c848[_0x38928f(0x17c)]=_0x26aed9;const _0x7198c0=this[_0x38928f(0x122)](_0x38c276||null);return _0x31c848[_0x38928f(0x135)],_0x31c848[_0x38928f(0x12b)]=_0x7198c0,_0x31c848;}[_0xc36ce6(0x181)](_0x1185ef,_0x5535c1){const _0x5ebfd3=_0xc36ce6,_0x1b6e0a=_0x1185ef[_0x5ebfd3(0x17c)]||_0x1185ef,_0x5ed8c7=[],{rowCount:_0x2b15a0}=this[_0x5ebfd3(0x123)](_0x1b6e0a,_0x5535c1);if(_0x2b15a0<=this[_0x5ebfd3(0x14f)][_0x5ebfd3(0x109)])return _0x5ed8c7;const _0x7a1593=_0x5535c1[_0x5ebfd3(0xfb)]();for(;_0x7a1593[_0x5ebfd3(0x12c)]>0x0;){if(this[_0x5ebfd3(0x11a)](_0x1185ef,_0x1b6e0a,_0x7a1593)){const _0xd85dba=_0x5535c1[_0x5ebfd3(0x13c)](_0x203708=>!_0x7a1593[_0x5ebfd3(0x108)](_0x203708));_0x5ed8c7[_0x5ebfd3(0x15e)](..._0xd85dba);break;}if(!_0x7a1593[_0x5ebfd3(0xee)]())break;}return _0x5ed8c7;}[_0xc36ce6(0x123)](_0x2d16f6,_0x40819d){const _0x15eda9=_0xc36ce6;_0x2d16f6[_0x15eda9(0x103)]='',_0x40819d[_0x15eda9(0x16e)](_0x36682a=>{const _0x2ded66=_0x15eda9;if(_0x36682a[_0x2ded66(0x146)]){const _0x25b0e4=_0x36682a[_0x2ded66(0x146)][_0x2ded66(0x171)](!0x0);_0x2d16f6[_0x2ded66(0x11e)](_0x25b0e4);}}),_0x2d16f6[_0x15eda9(0x135)];const _0x1e606e=_0x2d16f6[_0x15eda9(0x16b)],_0x22f0ea=[];return Array[_0x15eda9(0x116)](_0x1e606e)[_0x15eda9(0x16e)](_0x186ed7=>{const _0x4ada1c=_0x15eda9,_0x23590a=_0x186ed7[_0x4ada1c(0x11b)]()[_0x4ada1c(0x144)];_0x22f0ea[_0x4ada1c(0x139)](_0x4842a9=>Math[_0x4ada1c(0x17a)](_0x4842a9-_0x23590a)<this[_0x4ada1c(0x14f)][_0x4ada1c(0x163)])||_0x22f0ea[_0x4ada1c(0x15e)](_0x23590a);}),{'rowCount':_0x22f0ea[_0x15eda9(0x12c)]};}[_0xc36ce6(0x125)](){const _0x16469e=_0xc36ce6,_0x475e34=document[_0x16469e(0x147)](_0x16469e(0x153));return _0x475e34[_0x16469e(0x149)]=this[_0x16469e(0x14f)][_0x16469e(0x136)][_0x16469e(0x124)],this[_0x16469e(0x14f)][_0x16469e(0x136)][_0x16469e(0x14b)]&&_0x475e34[_0x16469e(0x10a)][_0x16469e(0x168)](this[_0x16469e(0x14f)][_0x16469e(0x136)][_0x16469e(0x14b)]),_0x475e34[_0x16469e(0x17f)]=_0x16469e(0xfc),_0x475e34;}[_0xc36ce6(0x11a)](_0x31698a,_0x131f61,_0x3dfc83){const _0x2434ba=_0xc36ce6;this[_0x2434ba(0x123)](_0x131f61,_0x3dfc83);const _0x219b6d=this[_0x2434ba(0x125)]();_0x31698a[_0x2434ba(0x11e)](_0x219b6d),_0x31698a[_0x2434ba(0x135)];const _0xed4290=[..._0x131f61[_0x2434ba(0x16b)],_0x219b6d],_0x2a2c96=[];_0xed4290[_0x2434ba(0x16e)](_0x584f97=>{const _0x3bf3ae=_0x2434ba,_0x199d8e=_0x584f97[_0x3bf3ae(0x11b)]()[_0x3bf3ae(0x144)];_0x2a2c96[_0x3bf3ae(0x139)](_0x19637a=>Math[_0x3bf3ae(0x17a)](_0x19637a-_0x199d8e)<this[_0x3bf3ae(0x14f)][_0x3bf3ae(0x163)])||_0x2a2c96[_0x3bf3ae(0x15e)](_0x199d8e);});const _0x237ed0=_0x2a2c96[_0x2434ba(0x12c)];return _0x219b6d[_0x2434ba(0x112)](),_0x237ed0<=this[_0x2434ba(0x14f)][_0x2434ba(0x109)];}[_0xc36ce6(0x120)](_0x494697,_0x59f3f5){const _0xb743fa=_0xc36ce6;this[_0xb743fa(0x14a)][_0xb743fa(0x102)](),this[_0xb743fa(0x13a)][_0xb743fa(0x102)](),_0x494697[_0xb743fa(0x16e)](_0x213af2=>{const _0x5f2e1d=_0xb743fa;_0x59f3f5[_0x5f2e1d(0x108)](_0x213af2)?this[_0x5f2e1d(0x13a)][_0x5f2e1d(0x168)](_0x213af2):this[_0x5f2e1d(0x14a)][_0x5f2e1d(0x168)](_0x213af2);});}[_0xc36ce6(0xed)](_0x3758d9){const _0x556827=_0xc36ce6;if(_0x3758d9>0x0&&!this[_0x556827(0xf9)]&&this[_0x556827(0x15a)](),_0x3758d9>0x0&&this[_0x556827(0xf9)]){const _0x4f623e=''+this[_0x556827(0x14f)][_0x556827(0x17d)]+(_0x3758d9<0x63?_0x3758d9:'99');this[_0x556827(0xf9)][_0x556827(0x159)]=_0x4f623e;}this[_0x556827(0x133)](),this[_0x556827(0x134)](),this[_0x556827(0x118)]();}[_0xc36ce6(0xf5)](_0x205ac5,_0x472031){const _0x40535e=_0xc36ce6;this[_0x40535e(0x120)](_0x205ac5,_0x472031),this[_0x40535e(0xed)](_0x472031[_0x40535e(0x12c)]);}[_0xc36ce6(0x12f)](){const _0x49c94c=_0xc36ce6;this[_0x49c94c(0x17b)]&&_0x49c94c(0x100)!=typeof IntersectionObserver&&(this[_0x49c94c(0x176)]=new IntersectionObserver(_0x4c7f96=>{const _0x3a7727=_0x49c94c;_0x4c7f96[0x0][_0x3a7727(0x16c)]&&this[_0x3a7727(0x15c)]&&requestAnimationFrame(()=>{const _0x4153bb=_0x3a7727;this[_0x4153bb(0x101)]();});},{'threshold':0.01,'rootMargin':_0x49c94c(0x16d)}),this[_0x49c94c(0x176)][_0x49c94c(0x121)](this[_0x49c94c(0x17b)]));}[_0xc36ce6(0x13b)](){const _0x1f4436=_0xc36ce6;if(!this[_0x1f4436(0x17b)])return!0x1;if(!this[_0x1f4436(0x17b)][_0x1f4436(0xfa)])return!0x1;const _0x99a753=this[_0x1f4436(0x17b)][_0x1f4436(0x11b)]();if(0x0===_0x99a753[_0x1f4436(0x132)]||0x0===_0x99a753[_0x1f4436(0x10f)])return!0x1;const _0x2a8339=window[_0x1f4436(0x111)]||document[_0x1f4436(0x114)][_0x1f4436(0x178)],_0x57634c=window[_0x1f4436(0x117)]||document[_0x1f4436(0x114)][_0x1f4436(0x13f)],_0x5e3f0=0xc8;return _0x99a753[_0x1f4436(0xf3)]>=-0xc8&&_0x99a753[_0x1f4436(0x144)]<=_0x2a8339+_0x5e3f0&&_0x99a753[_0x1f4436(0x15d)]>=-0xc8&&_0x99a753[_0x1f4436(0x150)]<=_0x57634c+_0x5e3f0;}}
23
+ const _0x55a8db=_0x2f83;(function(_0x99ab37,_0x8d3911){const _0x263c48=_0x2f83,_0x48b587=_0x99ab37();while(!![]){try{const _0xa80eac=-parseInt(_0x263c48(0x1fa))/0x1+parseInt(_0x263c48(0x1a5))/0x2+parseInt(_0x263c48(0x1c4))/0x3+parseInt(_0x263c48(0x1ac))/0x4*(-parseInt(_0x263c48(0x204))/0x5)+parseInt(_0x263c48(0x195))/0x6*(-parseInt(_0x263c48(0x1b1))/0x7)+-parseInt(_0x263c48(0x1ed))/0x8+parseInt(_0x263c48(0x1b4))/0x9*(parseInt(_0x263c48(0x1de))/0xa);if(_0xa80eac===_0x8d3911)break;else _0x48b587['push'](_0x48b587['shift']());}catch(_0x4953dc){_0x48b587['push'](_0x48b587['shift']());}}}(_0x2827,0x3ca9c));function _0x2827(){const _0x110391=['setContainerElement','slice','remove','visible\x20!important','isVisible','_parentView','isConnected','visibility','destroy','315583eHGYks','showMoreButtonView','clear','filter','_testButtonFit','hidden','_calculateOverflowInContainer','50px','getBoundingClientRect','_containerElement','10BSvlIz','absolute','_createContainerElements','some','_distributeChips','visible','render','boxSizing','display','show','_createCalculationContainer','createElement','innerWidth','textContent','overflowChips','content','undefined','_repinBalloonPanel','classList','pointerEvents','clientWidth','_bodyCollection','_overflowChips','getComputedStyle','_showMoreBalloonPanelView','_updateShowMoreButtonVisibility','setTemplate','label','documentElement','push','border-box','includes','_isContainerVisible','cssClasses','maxVisibleRows','zIndex','block','18ypCxua','_restoreAncestorVisibility','overflowContainer','_createShowMoreButton','_updateOverflowUI','none','reorganizeChips','cloneNode','innerHTML','showMoreBalloon','block\x20!important','right','_config','className','_createShowMoreBalloonPanelView','toLowerCase','687220mcZIjR','_handleShowMoreButtonClick','extendTemplate','showMoreLabelPrefix','_renderChipsAndCountRows','_checkAndHandleOverflow','appendChild','161488lxwguF','showBalloonPanel','hide','+\x201','-9999px','378882CDCxUh','_targetContainer','_ancestorsToRestore','6835221HXQDwm','_intersectionObserver','height','execute','style','_createShowMoreButtonView','_createMockButton','tagName','_applyCalculationStyles','rowDetectionTolerance','0px','hideBalloonPanel','300px','position','div','_locale','32367vavrOD','innerHeight','calculationContainer','isIntersecting','pop','abs','disconnect','_updateBalloonContent','button','width','offsetWidth','auto','showMoreButton','observe','_calculateContainerWidth','opacity','_visibleChips','.ck-ai-chat','forEach','disableAnimationOnEnter','_pendingCalculation','left','_findTargetContainer','controlsButton','body','add','10SfXwod','element','from','bottom','parentElement','ck-calculation-container','_showMoreButtonView','pin','querySelector','_setupVisibilityObserver','top','children','length','_applyOverflowResults','isOn','2453496pWEjmm','set','_makeAncestorsVisible','clientHeight'];_0x2827=function(){return _0x110391;};return _0x2827();}import{View as _0x533c0c,BalloonPanelView as _0xe352b4,ButtonView as _0x3129a7,clickOutsideHandler as _0x274470}from'ckeditor5/src/ui.js';import{Collection as _0x240659}from'ckeditor5/src/utils.js';function _0x2f83(_0x103d9a,_0x5012b7){const _0x282785=_0x2827();return _0x2f83=function(_0x2f83ea,_0x5b7be2){_0x2f83ea=_0x2f83ea-0x174;let _0x21bb93=_0x282785[_0x2f83ea];return _0x21bb93;},_0x2f83(_0x103d9a,_0x5012b7);}const wn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},dn=_0x55a8db(0x1c0);export class AIChatChipsOverflowManager{[_0x55a8db(0x1c3)];[_0x55a8db(0x1a1)];[_0x55a8db(0x1d4)];[_0x55a8db(0x186)];[_0x55a8db(0x1e4)]=null;[_0x55a8db(0x188)]=null;[_0x55a8db(0x203)]=null;[_0x55a8db(0x185)];[_0x55a8db(0x1f6)]=null;[_0x55a8db(0x1b5)]=null;[_0x55a8db(0x1d8)]=!0x1;constructor(_0x37904c,_0x504360,_0xb22666,_0x5b2be0,_0x19400a){const _0x3f31e1=_0x55a8db;this[_0x3f31e1(0x1c3)]=_0x37904c,this[_0x3f31e1(0x1d4)]=_0x504360,this[_0x3f31e1(0x1a1)]={...wn,..._0xb22666,'cssClasses':{'controlsButton':'','calculationContainer':_0x3f31e1(0x1e3),..._0xb22666[_0x3f31e1(0x191)]}},this[_0x3f31e1(0x186)]=new _0x240659(),this[_0x3f31e1(0x185)]=_0x5b2be0,this[_0x3f31e1(0x1f6)]=_0x19400a||null;}[_0x55a8db(0x1f1)](_0x119db1){const _0x4c79af=_0x55a8db;this[_0x4c79af(0x1b5)]&&(this[_0x4c79af(0x1b5)][_0x4c79af(0x1ca)](),this[_0x4c79af(0x1b5)]=null),this[_0x4c79af(0x203)]=_0x119db1,this[_0x4c79af(0x1e7)]();}get[_0x55a8db(0x1fb)](){const _0xbc8727=_0x55a8db;return this[_0xbc8727(0x1e4)];}get[_0x55a8db(0x17e)](){const _0x3ed764=_0x55a8db;return this[_0x3ed764(0x186)];}[_0x55a8db(0x19b)](){requestAnimationFrame(()=>{const _0x323720=_0x2f83;this[_0x323720(0x1aa)]();});}[_0x55a8db(0x1ad)](){const _0x5251d5=_0x55a8db;this[_0x5251d5(0x1e4)]&&this[_0x5251d5(0x188)]&&(this[_0x5251d5(0x1cb)](),this[_0x5251d5(0x1e4)][_0x5251d5(0x1ec)]=!0x0,this[_0x5251d5(0x188)][_0x5251d5(0x179)](),this[_0x5251d5(0x188)][_0x5251d5(0x1e5)]({'target':this[_0x5251d5(0x1e4)][_0x5251d5(0x1df)],'limiter':document[_0x5251d5(0x1e6)](_0x5251d5(0x1d5))}));}[_0x55a8db(0x1bf)](){const _0x4a5339=_0x55a8db;this[_0x4a5339(0x1e4)]&&this[_0x4a5339(0x188)]&&(this[_0x4a5339(0x1e4)][_0x4a5339(0x1ec)]=!0x1,this[_0x4a5339(0x188)][_0x4a5339(0x1ae)]());}[_0x55a8db(0x1fc)](){const _0x548a87=_0x55a8db;this[_0x548a87(0x186)][_0x548a87(0x1fc)](),this[_0x548a87(0x1bf)](),this[_0x548a87(0x189)](),this[_0x548a87(0x1e4)]&&(this[_0x548a87(0x1e4)][_0x548a87(0x18b)]=''),this[_0x548a87(0x188)]&&this[_0x548a87(0x188)][_0x548a87(0x17f)][_0x548a87(0x1fc)]();}[_0x55a8db(0x1f9)](){const _0x20b206=_0x55a8db;this[_0x20b206(0x1b5)]&&(this[_0x20b206(0x1b5)][_0x20b206(0x1ca)](),this[_0x20b206(0x1b5)]=null),this[_0x20b206(0x1e4)]&&(this[_0x20b206(0x1e4)][_0x20b206(0x1f9)](),this[_0x20b206(0x1e4)]=null),this[_0x20b206(0x188)]&&(this[_0x20b206(0x188)][_0x20b206(0x1f9)](),this[_0x20b206(0x188)]=null);}[_0x55a8db(0x1aa)](){const _0x574e0b=_0x55a8db;if(!this[_0x574e0b(0x203)])return;if(!this[_0x574e0b(0x190)]())return void(this[_0x574e0b(0x1d8)]=!0x0);this[_0x574e0b(0x1d8)]=!0x1;const _0x3850c4=[...this[_0x574e0b(0x1d4)],...this[_0x574e0b(0x186)]],_0x5b9573=this[_0x574e0b(0x17a)](),_0x3efb1f=this[_0x574e0b(0x200)](_0x5b9573,_0x3850c4),_0x2b669a=_0x5b9573[_0x574e0b(0x1b3)];_0x2b669a&&this[_0x574e0b(0x196)](_0x2b669a),_0x5b9573[_0x574e0b(0x1f3)](),this[_0x574e0b(0x1eb)](_0x3850c4,_0x3efb1f);}[_0x55a8db(0x198)](){const _0xd56eb4=_0x55a8db;this[_0xd56eb4(0x1e4)]=this[_0xd56eb4(0x1b9)](),this[_0xd56eb4(0x188)]=this[_0xd56eb4(0x1a3)](),this[_0xd56eb4(0x1e4)][_0xd56eb4(0x176)](),this[_0xd56eb4(0x203)][_0xd56eb4(0x1ab)](this[_0xd56eb4(0x1e4)][_0xd56eb4(0x1df)]),this[_0xd56eb4(0x1e4)]['on'](_0xd56eb4(0x1b7),()=>{const _0x34045a=_0xd56eb4;this[_0x34045a(0x1a6)]();}),_0x274470({'emitter':this[_0xd56eb4(0x188)],'contextElements':[this[_0xd56eb4(0x188)][_0xd56eb4(0x1df)],this[_0xd56eb4(0x1e4)][_0xd56eb4(0x1df)]],'callback':()=>this[_0xd56eb4(0x1bf)](),'activator':()=>this[_0xd56eb4(0x1e4)][_0xd56eb4(0x1ec)]});}[_0x55a8db(0x1b9)](){const _0x64bb15=_0x55a8db,_0x39cdc1=new _0x3129a7(this[_0x64bb15(0x1c3)]);_0x39cdc1[_0x64bb15(0x1ee)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x7745e5=[this[_0x64bb15(0x1a1)][_0x64bb15(0x191)][_0x64bb15(0x1d0)]];return this[_0x64bb15(0x1a1)][_0x64bb15(0x191)][_0x64bb15(0x1db)]&&_0x7745e5[_0x64bb15(0x18d)](this[_0x64bb15(0x1a1)][_0x64bb15(0x191)][_0x64bb15(0x1db)]),_0x39cdc1[_0x64bb15(0x1a7)]({'attributes':{'class':_0x7745e5}}),_0x39cdc1;}[_0x55a8db(0x1a3)](){const _0x800581=_0x55a8db,_0x3688bc=new _0xe352b4(this[_0x800581(0x1c3)]);return _0x3688bc[_0x800581(0x1a7)]({'attributes':{'class':this[_0x800581(0x1a1)][_0x800581(0x191)][_0x800581(0x19e)]}}),this[_0x800581(0x185)][_0x800581(0x1dd)](_0x3688bc),_0x3688bc;}[_0x55a8db(0x1cb)](){const _0x26db4c=_0x55a8db;if(this[_0x26db4c(0x188)]&&(this[_0x26db4c(0x188)][_0x26db4c(0x17f)][_0x26db4c(0x1fc)](),this[_0x26db4c(0x186)][_0x26db4c(0x1ea)]>0x0)){this[_0x26db4c(0x186)][_0x26db4c(0x1d6)](_0x477772=>{const _0x22680c=_0x26db4c;_0x477772[_0x22680c(0x1d7)]();});const _0x67809=new _0x533c0c(this[_0x26db4c(0x1c3)]);_0x67809[_0x26db4c(0x18a)]({'tag':_0x26db4c(0x1c2),'attributes':{'class':this[_0x26db4c(0x1a1)][_0x26db4c(0x191)][_0x26db4c(0x197)]},'children':this[_0x26db4c(0x186)]}),this[_0x26db4c(0x188)][_0x26db4c(0x17f)][_0x26db4c(0x1dd)](_0x67809);}}[_0x55a8db(0x1a6)](){const _0x10ddc4=_0x55a8db;this[_0x10ddc4(0x1e4)][_0x10ddc4(0x1ec)]?this[_0x10ddc4(0x1bf)]():this[_0x10ddc4(0x1ad)]();}[_0x55a8db(0x189)](){const _0x567864=_0x55a8db,_0x30deae=this[_0x567864(0x186)][_0x567864(0x1ea)]>0x0;this[_0x567864(0x1e4)]?.[_0x567864(0x1df)]&&(this[_0x567864(0x1e4)][_0x567864(0x1df)][_0x567864(0x1b8)][_0x567864(0x178)]=_0x30deae?'':_0x567864(0x19a));}[_0x55a8db(0x181)](){const _0x38afc3=_0x55a8db;this[_0x38afc3(0x1e4)]?.[_0x38afc3(0x1ec)]&&this[_0x38afc3(0x188)]?.[_0x38afc3(0x1f5)]&&this[_0x38afc3(0x1e4)][_0x38afc3(0x1df)]&&this[_0x38afc3(0x188)][_0x38afc3(0x1e5)]({'target':this[_0x38afc3(0x1e4)][_0x38afc3(0x1df)],'limiter':document[_0x38afc3(0x1e6)](_0x38afc3(0x1d5))});}[_0x55a8db(0x1da)](_0x2aeff9){const _0x71642=_0x55a8db,_0x308d73=this[_0x71642(0x203)]?.[_0x71642(0x1bb)][_0x71642(0x1a4)]()||_0x71642(0x1c2),_0x52d86e=this[_0x71642(0x203)]?.[_0x71642(0x182)];if(_0x52d86e){const _0x2702f1=_0x52d86e[0x0]||'',_0x10aa1d=_0x2aeff9[_0x71642(0x1e6)]('.'+_0x2702f1),_0x1ff2d0=_0x2aeff9[_0x71642(0x1e6)](_0x308d73);return _0x10aa1d||_0x1ff2d0||_0x2aeff9;}return _0x2aeff9[_0x71642(0x1e6)](_0x308d73)||_0x2aeff9;}[_0x55a8db(0x1d2)](){const _0x51fd78=_0x55a8db,_0x33cd92=this[_0x51fd78(0x1f6)]?.[_0x51fd78(0x1df)]||this[_0x51fd78(0x203)];if(!_0x33cd92)return dn;const _0x31d261=window[_0x51fd78(0x187)](_0x33cd92)[_0x51fd78(0x1cd)];if(_0x51fd78(0x1cf)===_0x31d261||_0x51fd78(0x1be)===_0x31d261||!_0x31d261){const _0x3e9da6=_0x33cd92[_0x51fd78(0x1e2)];if(_0x3e9da6){const _0x3cfde5=window[_0x51fd78(0x187)](_0x3e9da6);return _0x51fd78(0x1cf)!==_0x3cfde5[_0x51fd78(0x1cd)]?_0x3cfde5[_0x51fd78(0x1cd)]:dn;}return dn;}return _0x31d261;}[_0x55a8db(0x1bc)](_0x3771ad,_0x2a5ccd){const _0x310eb7=_0x55a8db;this[_0x310eb7(0x1a1)][_0x310eb7(0x191)][_0x310eb7(0x1c6)]&&_0x3771ad[_0x310eb7(0x182)][_0x310eb7(0x1dd)](this[_0x310eb7(0x1a1)][_0x310eb7(0x191)][_0x310eb7(0x1c6)]),_0x3771ad[_0x310eb7(0x1b8)][_0x310eb7(0x1cd)]=_0x2a5ccd,_0x3771ad[_0x310eb7(0x1b8)][_0x310eb7(0x1c1)]=_0x310eb7(0x205),_0x3771ad[_0x310eb7(0x1b8)][_0x310eb7(0x1e8)]=_0x310eb7(0x1b0),_0x3771ad[_0x310eb7(0x1b8)][_0x310eb7(0x1d9)]=_0x310eb7(0x1b0),_0x3771ad[_0x310eb7(0x1b8)][_0x310eb7(0x1d3)]='0',_0x3771ad[_0x310eb7(0x1b8)][_0x310eb7(0x183)]=_0x310eb7(0x19a),_0x3771ad[_0x310eb7(0x1b8)][_0x310eb7(0x193)]='-1',_0x3771ad[_0x310eb7(0x1b8)][_0x310eb7(0x1f8)]=_0x310eb7(0x1f4),_0x3771ad[_0x310eb7(0x1b8)][_0x310eb7(0x178)]=_0x310eb7(0x19f),_0x3771ad[_0x310eb7(0x1b8)][_0x310eb7(0x177)]=_0x310eb7(0x18e);}[_0x55a8db(0x196)](_0x18ca08){const _0x13458e=_0x55a8db;_0x18ca08[_0x13458e(0x1d6)](({element:_0x451f30,originalDisplay:_0xdea5a5,originalVisibility:_0x4cb8ea})=>{const _0x25d823=_0x13458e;_0x451f30[_0x25d823(0x1b8)][_0x25d823(0x178)]=_0xdea5a5,_0x451f30[_0x25d823(0x1b8)][_0x25d823(0x1f8)]=_0x4cb8ea;});}[_0x55a8db(0x1ef)](_0x3698b7){const _0x37b3ea=_0x55a8db,_0x46cb30=[];let _0x3571c4=_0x3698b7;for(;_0x3571c4&&_0x3571c4!==document[_0x37b3ea(0x1dc)];){const _0x25d607=window[_0x37b3ea(0x187)](_0x3571c4);_0x37b3ea(0x19a)!==_0x25d607[_0x37b3ea(0x178)]&&_0x37b3ea(0x1ff)!==_0x25d607[_0x37b3ea(0x1f8)]||(_0x46cb30[_0x37b3ea(0x18d)]({'element':_0x3571c4,'originalDisplay':_0x3571c4[_0x37b3ea(0x1b8)][_0x37b3ea(0x178)],'originalVisibility':_0x3571c4[_0x37b3ea(0x1b8)][_0x37b3ea(0x1f8)]}),_0x3571c4[_0x37b3ea(0x1b8)][_0x37b3ea(0x178)]=_0x37b3ea(0x194),_0x3571c4[_0x37b3ea(0x1b8)][_0x37b3ea(0x1f8)]=_0x37b3ea(0x175)),_0x3571c4=_0x3571c4[_0x37b3ea(0x1e2)];}return _0x46cb30;}[_0x55a8db(0x206)](){const _0x545955=_0x55a8db;let _0x2d385a,_0x5280cc;return this[_0x545955(0x1f6)]?.[_0x545955(0x1df)]?(_0x2d385a=this[_0x545955(0x1f6)][_0x545955(0x1df)][_0x545955(0x19c)](!0x0),_0x5280cc=this[_0x545955(0x1da)](_0x2d385a)):(_0x2d385a=document[_0x545955(0x17b)](_0x545955(0x1c2)),_0x5280cc=_0x2d385a),{'calculationContainer':_0x2d385a,'targetContainer':_0x5280cc};}[_0x55a8db(0x17a)](){const _0x2589a8=_0x55a8db,{calculationContainer:_0x343581,targetContainer:_0x75734b}=this[_0x2589a8(0x206)](),_0x47ca9d=this[_0x2589a8(0x1d2)]();this[_0x2589a8(0x1bc)](_0x343581,_0x47ca9d);const _0x7a4245=this[_0x2589a8(0x1f6)]?.[_0x2589a8(0x1df)]||this[_0x2589a8(0x203)],_0xb6519c=_0x7a4245?.[_0x2589a8(0x1e2)];_0xb6519c?_0xb6519c[_0x2589a8(0x1ab)](_0x343581):document[_0x2589a8(0x1dc)][_0x2589a8(0x1ab)](_0x343581),_0x343581[_0x2589a8(0x1b2)]=_0x75734b;const _0x1f42ff=this[_0x2589a8(0x1ef)](_0xb6519c||null);return _0x343581[_0x2589a8(0x1ce)],_0x343581[_0x2589a8(0x1b3)]=_0x1f42ff,_0x343581;}[_0x55a8db(0x200)](_0x24d446,_0x387046){const _0x20a181=_0x55a8db,_0x2ecdf1=_0x24d446[_0x20a181(0x1b2)]||_0x24d446,_0x5b3af9=[],{rowCount:_0x22a316}=this[_0x20a181(0x1a9)](_0x2ecdf1,_0x387046);if(_0x22a316<=this[_0x20a181(0x1a1)][_0x20a181(0x192)])return _0x5b3af9;const _0x4c85e2=_0x387046[_0x20a181(0x1f2)]();for(;_0x4c85e2[_0x20a181(0x1ea)]>0x0;){if(this[_0x20a181(0x1fe)](_0x24d446,_0x2ecdf1,_0x4c85e2)){const _0x3e80cf=_0x387046[_0x20a181(0x1fd)](_0x5e6fa2=>!_0x4c85e2[_0x20a181(0x18f)](_0x5e6fa2));_0x5b3af9[_0x20a181(0x18d)](..._0x3e80cf);break;}if(!_0x4c85e2[_0x20a181(0x1c8)]())break;}return _0x5b3af9;}[_0x55a8db(0x1a9)](_0x3a6eb9,_0x1da56d){const _0xeda77a=_0x55a8db;_0x3a6eb9[_0xeda77a(0x19d)]='',_0x1da56d[_0xeda77a(0x1d6)](_0x17e48d=>{const _0x14ade2=_0xeda77a;if(_0x17e48d[_0x14ade2(0x1df)]){const _0x18f5aa=_0x17e48d[_0x14ade2(0x1df)][_0x14ade2(0x19c)](!0x0);_0x3a6eb9[_0x14ade2(0x1ab)](_0x18f5aa);}}),_0x3a6eb9[_0xeda77a(0x1ce)];const _0xf6188d=_0x3a6eb9[_0xeda77a(0x1e9)],_0x5c3c86=[];return Array[_0xeda77a(0x1e0)](_0xf6188d)[_0xeda77a(0x1d6)](_0x2e7528=>{const _0x481529=_0xeda77a,_0x24aa7e=_0x2e7528[_0x481529(0x202)]()[_0x481529(0x1e8)];_0x5c3c86[_0x481529(0x207)](_0xcbcabd=>Math[_0x481529(0x1c9)](_0xcbcabd-_0x24aa7e)<this[_0x481529(0x1a1)][_0x481529(0x1bd)])||_0x5c3c86[_0x481529(0x18d)](_0x24aa7e);}),{'rowCount':_0x5c3c86[_0xeda77a(0x1ea)]};}[_0x55a8db(0x1ba)](){const _0x411438=_0x55a8db,_0x341d23=document[_0x411438(0x17b)](_0x411438(0x1cc));return _0x341d23[_0x411438(0x1a2)]=this[_0x411438(0x1a1)][_0x411438(0x191)][_0x411438(0x1d0)],this[_0x411438(0x1a1)][_0x411438(0x191)][_0x411438(0x1db)]&&_0x341d23[_0x411438(0x182)][_0x411438(0x1dd)](this[_0x411438(0x1a1)][_0x411438(0x191)][_0x411438(0x1db)]),_0x341d23[_0x411438(0x17d)]=_0x411438(0x1af),_0x341d23;}[_0x55a8db(0x1fe)](_0x2d4519,_0x4ec0ac,_0x359f5a){const _0x2a8e10=_0x55a8db;this[_0x2a8e10(0x1a9)](_0x4ec0ac,_0x359f5a);const _0x475818=this[_0x2a8e10(0x1ba)]();_0x2d4519[_0x2a8e10(0x1ab)](_0x475818),_0x2d4519[_0x2a8e10(0x1ce)];const _0x2cb754=[..._0x4ec0ac[_0x2a8e10(0x1e9)],_0x475818],_0x1df447=[];_0x2cb754[_0x2a8e10(0x1d6)](_0x4d4bee=>{const _0x146ff0=_0x2a8e10,_0x35dd6c=_0x4d4bee[_0x146ff0(0x202)]()[_0x146ff0(0x1e8)];_0x1df447[_0x146ff0(0x207)](_0x1682f5=>Math[_0x146ff0(0x1c9)](_0x1682f5-_0x35dd6c)<this[_0x146ff0(0x1a1)][_0x146ff0(0x1bd)])||_0x1df447[_0x146ff0(0x18d)](_0x35dd6c);});const _0x531405=_0x1df447[_0x2a8e10(0x1ea)];return _0x475818[_0x2a8e10(0x1f3)](),_0x531405<=this[_0x2a8e10(0x1a1)][_0x2a8e10(0x192)];}[_0x55a8db(0x174)](_0xefb307,_0x1ce4e2){const _0x2e3b71=_0x55a8db;this[_0x2e3b71(0x1d4)][_0x2e3b71(0x1fc)](),this[_0x2e3b71(0x186)][_0x2e3b71(0x1fc)](),_0xefb307[_0x2e3b71(0x1d6)](_0x389293=>{const _0x323151=_0x2e3b71;_0x1ce4e2[_0x323151(0x18f)](_0x389293)?this[_0x323151(0x186)][_0x323151(0x1dd)](_0x389293):this[_0x323151(0x1d4)][_0x323151(0x1dd)](_0x389293);});}[_0x55a8db(0x199)](_0x2c421f){const _0x567be1=_0x55a8db;if(_0x2c421f>0x0&&!this[_0x567be1(0x1e4)]&&this[_0x567be1(0x198)](),_0x2c421f>0x0&&this[_0x567be1(0x1e4)]){const _0x1a760d=''+this[_0x567be1(0x1a1)][_0x567be1(0x1a8)]+(_0x2c421f<0x63?_0x2c421f:'99');this[_0x567be1(0x1e4)][_0x567be1(0x18b)]=_0x1a760d;}this[_0x567be1(0x1cb)](),this[_0x567be1(0x189)](),this[_0x567be1(0x181)]();}[_0x55a8db(0x1eb)](_0x3826c8,_0x220fcc){const _0x299ab4=_0x55a8db;this[_0x299ab4(0x174)](_0x3826c8,_0x220fcc),this[_0x299ab4(0x199)](_0x220fcc[_0x299ab4(0x1ea)]);}[_0x55a8db(0x1e7)](){const _0x2780c7=_0x55a8db;this[_0x2780c7(0x203)]&&_0x2780c7(0x180)!=typeof IntersectionObserver&&(this[_0x2780c7(0x1b5)]=new IntersectionObserver(_0x52b1b0=>{const _0x240243=_0x2780c7;_0x52b1b0[0x0][_0x240243(0x1c7)]&&this[_0x240243(0x1d8)]&&requestAnimationFrame(()=>{const _0x98b830=_0x240243;this[_0x98b830(0x1aa)]();});},{'threshold':0.01,'rootMargin':_0x2780c7(0x201)}),this[_0x2780c7(0x1b5)][_0x2780c7(0x1d1)](this[_0x2780c7(0x203)]));}[_0x55a8db(0x190)](){const _0x624e9c=_0x55a8db;if(!this[_0x624e9c(0x203)])return!0x1;if(!this[_0x624e9c(0x203)][_0x624e9c(0x1f7)])return!0x1;const _0x270f63=this[_0x624e9c(0x203)][_0x624e9c(0x202)]();if(0x0===_0x270f63[_0x624e9c(0x1cd)]||0x0===_0x270f63[_0x624e9c(0x1b6)])return!0x1;const _0x230c68=window[_0x624e9c(0x1c5)]||document[_0x624e9c(0x18c)][_0x624e9c(0x1f0)],_0x52ee88=window[_0x624e9c(0x17c)]||document[_0x624e9c(0x18c)][_0x624e9c(0x184)],_0x540883=0xc8;return _0x270f63[_0x624e9c(0x1e1)]>=-0xc8&&_0x270f63[_0x624e9c(0x1e8)]<=_0x230c68+_0x540883&&_0x270f63[_0x624e9c(0x1a0)]>=-0xc8&&_0x270f63[_0x624e9c(0x1d9)]<=_0x52ee88+_0x540883;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x56de10=_0x23fa;(function(_0x2d31ec,_0x21f62d){const _0x26638d=_0x23fa,_0x25c840=_0x2d31ec();while(!![]){try{const _0x144d34=parseInt(_0x26638d(0x137))/0x1+-parseInt(_0x26638d(0x13f))/0x2*(parseInt(_0x26638d(0x13a))/0x3)+parseInt(_0x26638d(0x15a))/0x4*(parseInt(_0x26638d(0x150))/0x5)+-parseInt(_0x26638d(0x172))/0x6+parseInt(_0x26638d(0x14c))/0x7+parseInt(_0x26638d(0x14f))/0x8+parseInt(_0x26638d(0x15d))/0x9;if(_0x144d34===_0x21f62d)break;else _0x25c840['push'](_0x25c840['shift']());}catch(_0x5bcc2d){_0x25c840['push'](_0x25c840['shift']());}}}(_0x4f74,0x8f552));function _0x23fa(_0x1126bd,_0x5d453d){const _0x4f7489=_0x4f74();return _0x23fa=function(_0x23fab7,_0x10ee04){_0x23fab7=_0x23fab7-0x132;let _0x6ee990=_0x4f7489[_0x23fab7];return _0x6ee990;},_0x23fa(_0x1126bd,_0x5d453d);}import{ButtonView as _0x513604,IconView as _0x97a8c2}from'ckeditor5/src/ui.js';import{IconClose as _0xffecab,IconDocument as _0x1ce348,IconFileUpload as _0x14402a,IconLink as _0x32cb28,IconSelection as _0x2df0ac}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x330bc7}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x2ae246}from'../../../aicore/ui/aispinner.js';const xn={'file':_0x14402a,'document':_0x1ce348,'web-resource':_0x32cb28,'text':_0x14402a,'selection':_0x2df0ac,'mcp-tool-context':_0x1ce348},bn=_0x56de10(0x132),wn=_0x56de10(0x13c),Tn=_0x56de10(0x15e),En=_0x56de10(0x138),fn=_0x56de10(0x171),An=_0x56de10(0x148),Cn='n';export class AIChatContextItemButtonView extends _0x513604{constructor(_0xe3d099,_0x174861,_0x1ff861,_0xdba16d,_0x4e096d=!0x1){const _0x323812=_0x56de10;super(_0xe3d099),this[_0x323812(0x158)]=_0xdba16d,this[_0x323812(0x164)](_0x174861,_0x1ff861,_0x4e096d),this[_0x323812(0x154)]();}[_0x56de10(0x136)](){const _0x3fc48f=_0x56de10;super[_0x3fc48f(0x136)](),this[_0x3fc48f(0x158)]&&this[_0x3fc48f(0x151)]&&(this[_0x3fc48f(0x151)][_0x3fc48f(0x15f)][_0x3fc48f(0x165)](_0x3fc48f(0x16f)),this[_0x3fc48f(0x15c)](this[_0x3fc48f(0x151)],()=>{const _0x482148=_0x3fc48f;this[_0x482148(0x151)]&&this[_0x482148(0x151)][_0x482148(0x15f)][_0x482148(0x140)](_0x482148(0x16f));}));}[_0x56de10(0x163)](){const _0x26eb79=_0x56de10;this[_0x26eb79(0x158)]=!0x1,this[_0x26eb79(0x151)]&&this[_0x26eb79(0x151)][_0x26eb79(0x15f)][_0x26eb79(0x140)](_0x26eb79(0x16f));}[_0x56de10(0x164)](_0x496e88,_0x54f059,_0x47c98b){const _0x24f033=_0x56de10;this[_0x24f033(0x14e)](_0x24f033(0x143),_0x496e88[_0x24f033(0x143)]),this[_0x24f033(0x14e)](_0x24f033(0x169),!0x0),this[_0x24f033(0x14e)](_0x24f033(0x162),_0x496e88[_0x24f033(0x170)]),this[_0x24f033(0x14e)]('id',_0x496e88[_0x24f033(0x16b)]),this[_0x24f033(0x14e)](_0x24f033(0x13e),_0x54f059),this[_0x24f033(0x14e)](_0x24f033(0x146),_0x47c98b);}[_0x56de10(0x154)](){const _0x5f4578=_0x56de10,_0x17f61d=this[_0x5f4578(0x167)](),_0x34cbeb=this[_0x5f4578(0x157)](),_0x368022=this[_0x5f4578(0x14d)];this[_0x5f4578(0x134)]({'tag':_0x5f4578(0x141),'attributes':this[_0x5f4578(0x13d)](_0x368022),'children':this[_0x5f4578(0x142)](_0x17f61d,_0x34cbeb,_0x368022)});}[_0x56de10(0x13d)](_0x5693c5){const _0xf2cf34=_0x56de10;return{'class':[bn,_0x5693c5['if'](_0xf2cf34(0x162),Tn,_0x1bee59=>_0xf2cf34(0x152)==_0x1bee59),_0x5693c5['if'](_0xf2cf34(0x162),wn,_0x159afb=>_0xf2cf34(0x16e)==_0x159afb)],'data-cke-tooltip-text':_0x5693c5['to'](_0xf2cf34(0x143),In),'data-cke-tooltip-position':Cn,'data-cke-tooltip-class':An};}[_0x56de10(0x142)](_0xebd959,_0x3a4de0,_0x27b3e5){const _0xfe97b9=_0x56de10,_0x1a0f46=this[_0xfe97b9(0x161)](_0x27b3e5),_0x531f15=this[_0xfe97b9(0x160)]();return this[_0xfe97b9(0x13e)]?[_0xebd959,_0x1a0f46]:[_0xebd959,_0x531f15,_0x1a0f46,_0x3a4de0];}[_0x56de10(0x161)](_0x2697f2){const _0x499062=_0x56de10;return{'tag':_0x499062(0x135),'attributes':{'class':En},'children':[{'text':_0x2697f2['to'](_0x499062(0x143))}]};}[_0x56de10(0x157)](){const _0x1535e7=_0x56de10,_0x51f3e=new _0x513604(this[_0x1535e7(0x16a)]);return _0x51f3e[_0x1535e7(0x14e)]({'label':_0x330bc7(this[_0x1535e7(0x16a)],_0x1535e7(0x13b)),'icon':_0xffecab}),this[_0x1535e7(0x16c)](_0x51f3e),_0x51f3e;}[_0x56de10(0x16c)](_0x2aee79){const _0x10f4d9=_0x56de10;_0x2aee79['on'](_0x10f4d9(0x159),()=>{const _0x5574ce=_0x10f4d9;this[_0x5574ce(0x144)](_0x5574ce(0x133),this['id']);});}[_0x56de10(0x167)](){const _0x373e8e=_0x56de10,_0x53f333=this[_0x373e8e(0x14d)],_0x24b178=new _0x97a8c2();return _0x24b178[_0x373e8e(0x153)]=xn[this[_0x373e8e(0x162)]],_0x24b178[_0x373e8e(0x147)]({'attributes':{'class':[fn,_0x53f333['if'](_0x373e8e(0x146),_0x373e8e(0x14a),_0x11ede6=>_0x11ede6)]}}),_0x24b178;}[_0x56de10(0x15c)](_0x1cfc91,_0x3712a1){const _0x58a191=_0x56de10;if(!_0x1cfc91)return;const _0x4614bb=()=>{const _0x5d09b4=_0x23fa;_0x3712a1(),_0x1cfc91[_0x5d09b4(0x14b)](_0x5d09b4(0x149),_0x4614bb),_0x1cfc91[_0x5d09b4(0x14b)](_0x5d09b4(0x145),_0x4614bb);};_0x1cfc91[_0x58a191(0x16d)](_0x58a191(0x149),_0x4614bb),_0x1cfc91[_0x58a191(0x16d)](_0x58a191(0x145),_0x4614bb);}[_0x56de10(0x160)](){const _0x586bd0=_0x56de10,_0x4fe629=new _0x2ae246(_0x586bd0(0x155));return _0x4fe629[_0x586bd0(0x168)](_0x586bd0(0x15b))['to'](this,_0x586bd0(0x146),_0x4deb7f=>_0x4deb7f),_0x4fe629;}}function In(_0x25d836){const _0x54e639=_0x56de10;if(!_0x25d836)return _0x25d836;if(_0x25d836[_0x54e639(0x166)]<=0x78)return _0x25d836;const _0x1b02ec=_0x25d836[_0x54e639(0x139)](0x0,0x78),_0xe01c1c=_0x1b02ec[_0x54e639(0x156)]('\x20');return(_0xe01c1c>0x0?_0x1b02ec[_0x54e639(0x139)](0x0,_0xe01c1c):_0x1b02ec)+'…';}function _0x4f74(){const _0x195d6b=['_isAnimationOnEnterEnabled','execute','277584YVNKAK','isVisible','_handleAnimationEndOnce','3455478yvQKtU','ck-ai-chat-context-chip_document','classList','_createLoaderIcon','_createLabelElement','itemType','disableAnimationOnEnter','_initializeProperties','add','length','_createIconView','bind','tooltip','locale','uiId','_setupRemoveButtonEvent','addEventListener','selection','ck-ai-chat-context-chip_new-chip','type','ck-ai-chat-context-chip__type-icon','5652018nAIWbw','ck-ai-chat-context-chip','removeContextItemChip','setTemplate','span','render','443542gVpVfZ','ck-ai-chat-context-chip__label','slice','489HrJjgu','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','ck-ai-chat-context-chip_wide','_createTemplateAttributes','readonly','5666HJtbpG','remove','div','_createTemplateChildren','label','fire','webkitAnimationEnd','isLoading','extendTemplate','ck-ai-chat-context-controls__chip-tooltip','animationend','ck-hidden','removeEventListener','1975687KrskEZ','bindTemplate','set','1497496dcordk','50nneoks','element','document','content','_setupTemplate','small','lastIndexOf','_createRemoveButton'];_0x4f74=function(){return _0x195d6b;};return _0x4f74();}
23
+ function _0x37ba(_0x38e749,_0xcd70c){const _0x5dee44=_0x5dee();return _0x37ba=function(_0x37ba81,_0x44271f){_0x37ba81=_0x37ba81-0x121;let _0xda8e55=_0x5dee44[_0x37ba81];return _0xda8e55;},_0x37ba(_0x38e749,_0xcd70c);}const _0x4d4e2d=_0x37ba;(function(_0x1a828a,_0x5bc2cf){const _0x5e7c2a=_0x37ba,_0x219bea=_0x1a828a();while(!![]){try{const _0x65dca0=parseInt(_0x5e7c2a(0x124))/0x1*(parseInt(_0x5e7c2a(0x123))/0x2)+parseInt(_0x5e7c2a(0x154))/0x3*(parseInt(_0x5e7c2a(0x136))/0x4)+parseInt(_0x5e7c2a(0x122))/0x5+parseInt(_0x5e7c2a(0x162))/0x6*(-parseInt(_0x5e7c2a(0x15a))/0x7)+-parseInt(_0x5e7c2a(0x145))/0x8+parseInt(_0x5e7c2a(0x13e))/0x9+-parseInt(_0x5e7c2a(0x135))/0xa;if(_0x65dca0===_0x5bc2cf)break;else _0x219bea['push'](_0x219bea['shift']());}catch(_0x19bc51){_0x219bea['push'](_0x219bea['shift']());}}}(_0x5dee,0xe357d));import{ButtonView as _0x53adbe,IconView as _0x1e3412}from'ckeditor5/src/ui.js';import{IconClose as _0x3a3b36,IconDocument as _0x580603,IconFileUpload as _0x53039c,IconLink as _0xc6f73c,IconSelection as _0x3bd0f2}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x20fb0d}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x73bae4}from'../../../aicore/ui/aispinner.js';const bn={'file':_0x53039c,'document':_0x580603,'web-resource':_0xc6f73c,'text':_0x53039c,'selection':_0x3bd0f2,'mcp-tool-context':_0x580603},Tn=_0x4d4e2d(0x15c),En=_0x4d4e2d(0x125),An=_0x4d4e2d(0x153),Cn=_0x4d4e2d(0x12e),In=_0x4d4e2d(0x160),On=_0x4d4e2d(0x133),vn='n';export class AIChatContextItemButtonView extends _0x53adbe{constructor(_0x20025e,_0x585b08,_0x871a89,_0x8bf8d3,_0x14c85d=!0x1){const _0x11973c=_0x4d4e2d;super(_0x20025e),this[_0x11973c(0x140)]=_0x8bf8d3,this[_0x11973c(0x146)](_0x585b08,_0x871a89,_0x14c85d),this[_0x11973c(0x14a)]();}[_0x4d4e2d(0x157)](){const _0x2db011=_0x4d4e2d;super[_0x2db011(0x157)](),this[_0x2db011(0x140)]&&this[_0x2db011(0x12d)]&&(this[_0x2db011(0x12d)][_0x2db011(0x129)][_0x2db011(0x151)](_0x2db011(0x13a)),this[_0x2db011(0x128)](this[_0x2db011(0x12d)],()=>{const _0x1a1809=_0x2db011;this[_0x1a1809(0x12d)]&&this[_0x1a1809(0x12d)][_0x1a1809(0x129)][_0x1a1809(0x138)](_0x1a1809(0x13a));}));}[_0x4d4e2d(0x161)](){const _0x3a6959=_0x4d4e2d;this[_0x3a6959(0x140)]=!0x1,this[_0x3a6959(0x12d)]&&this[_0x3a6959(0x12d)][_0x3a6959(0x129)][_0x3a6959(0x138)](_0x3a6959(0x13a));}[_0x4d4e2d(0x146)](_0x1fde62,_0x1ed76a,_0x8d32dd){const _0x2303d3=_0x4d4e2d;this[_0x2303d3(0x137)](_0x2303d3(0x150),_0x1fde62[_0x2303d3(0x150)]),this[_0x2303d3(0x137)](_0x2303d3(0x142),!0x0),this[_0x2303d3(0x137)](_0x2303d3(0x141),_0x1fde62[_0x2303d3(0x14c)]),this[_0x2303d3(0x137)]('id',_0x1fde62[_0x2303d3(0x15d)]),this[_0x2303d3(0x137)](_0x2303d3(0x143),_0x1ed76a),this[_0x2303d3(0x137)](_0x2303d3(0x127),_0x8d32dd);}[_0x4d4e2d(0x14a)](){const _0x173372=_0x4d4e2d,_0x4482ee=this[_0x173372(0x14b)](),_0x5eedbf=this[_0x173372(0x134)](),_0x5ecccd=this[_0x173372(0x144)];this[_0x173372(0x155)]({'tag':_0x173372(0x158),'attributes':this[_0x173372(0x13b)](_0x5ecccd),'children':this[_0x173372(0x121)](_0x4482ee,_0x5eedbf,_0x5ecccd)});}[_0x4d4e2d(0x13b)](_0x1e67ea){const _0x1f0bc6=_0x4d4e2d;return{'class':[Tn,_0x1e67ea['if'](_0x1f0bc6(0x141),An,_0x360c6d=>_0x1f0bc6(0x12b)==_0x360c6d),_0x1e67ea['if'](_0x1f0bc6(0x141),En,_0x12e5b8=>_0x1f0bc6(0x132)==_0x12e5b8)],'data-cke-tooltip-text':_0x1e67ea['to'](_0x1f0bc6(0x150),yn),'data-cke-tooltip-position':vn,'data-cke-tooltip-class':On};}[_0x4d4e2d(0x121)](_0x504593,_0x5f0828,_0x52abc){const _0x5ce3e6=_0x4d4e2d,_0x32b11e=this[_0x5ce3e6(0x131)](_0x52abc),_0x3b515a=this[_0x5ce3e6(0x159)]();return this[_0x5ce3e6(0x143)]?[_0x504593,_0x32b11e]:[_0x504593,_0x3b515a,_0x32b11e,_0x5f0828];}[_0x4d4e2d(0x131)](_0x26d53a){const _0x1a9601=_0x4d4e2d;return{'tag':_0x1a9601(0x13f),'attributes':{'class':Cn},'children':[{'text':_0x26d53a['to'](_0x1a9601(0x150))}]};}[_0x4d4e2d(0x134)](){const _0x5019c8=_0x4d4e2d,_0x36b4d7=new _0x53adbe(this[_0x5019c8(0x147)]);return _0x36b4d7[_0x5019c8(0x137)]({'label':_0x20fb0d(this[_0x5019c8(0x147)],_0x5019c8(0x130)),'icon':_0x3a3b36}),this[_0x5019c8(0x12a)](_0x36b4d7),_0x36b4d7;}[_0x4d4e2d(0x12a)](_0xcad959){const _0x558898=_0x4d4e2d;_0xcad959['on'](_0x558898(0x149),()=>{const _0x3db2d0=_0x558898;this[_0x3db2d0(0x15e)](_0x3db2d0(0x13c),this['id']);});}[_0x4d4e2d(0x14b)](){const _0x1c70e3=_0x4d4e2d,_0x265b5c=this[_0x1c70e3(0x144)],_0xb23c22=new _0x1e3412();return _0xb23c22[_0x1c70e3(0x126)]=bn[this[_0x1c70e3(0x141)]],_0xb23c22[_0x1c70e3(0x12f)]({'attributes':{'class':[In,_0x265b5c['if'](_0x1c70e3(0x127),_0x1c70e3(0x14f),_0x12e733=>_0x12e733)]}}),_0xb23c22;}[_0x4d4e2d(0x128)](_0x4669a9,_0xfb4339){const _0x246282=_0x4d4e2d;if(!_0x4669a9)return;const _0x11b0e0=()=>{const _0x386522=_0x37ba;_0xfb4339(),_0x4669a9[_0x386522(0x14e)](_0x386522(0x14d),_0x11b0e0),_0x4669a9[_0x386522(0x14e)](_0x386522(0x139),_0x11b0e0);};_0x4669a9[_0x246282(0x152)](_0x246282(0x14d),_0x11b0e0),_0x4669a9[_0x246282(0x152)](_0x246282(0x139),_0x11b0e0);}[_0x4d4e2d(0x159)](){const _0x5cb885=_0x4d4e2d,_0xcea9f0=new _0x73bae4(_0x5cb885(0x148));return _0xcea9f0[_0x5cb885(0x15f)](_0x5cb885(0x156))['to'](this,_0x5cb885(0x127),_0xf6dae0=>_0xf6dae0),_0xcea9f0;}}function yn(_0x280bb3){const _0x17a1e0=_0x4d4e2d;if(!_0x280bb3)return _0x280bb3;if(_0x280bb3[_0x17a1e0(0x13d)]<=0x78)return _0x280bb3;const _0x45ee01=_0x280bb3[_0x17a1e0(0x12c)](0x0,0x78),_0x289725=_0x45ee01[_0x17a1e0(0x15b)]('\x20');return(_0x289725>0x0?_0x45ee01[_0x17a1e0(0x12c)](0x0,_0x289725):_0x45ee01)+'…';}function _0x5dee(){const _0x33a7df=['isVisible','render','div','_createLoaderIcon','985278dOuNLF','lastIndexOf','ck-ai-chat-context-chip','uiId','fire','bind','ck-ai-chat-context-chip__type-icon','disableAnimationOnEnter','48gxFXIs','_createTemplateChildren','4103860RpgnDk','4ywUzdd','652888DbqsWm','ck-ai-chat-context-chip_wide','content','isLoading','_handleAnimationEndOnce','classList','_setupRemoveButtonEvent','document','slice','element','ck-ai-chat-context-chip__label','extendTemplate','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','_createLabelElement','selection','ck-ai-chat-context-controls__chip-tooltip','_createRemoveButton','15863610iCnymL','18284sWkaOD','set','remove','webkitAnimationEnd','ck-ai-chat-context-chip_new-chip','_createTemplateAttributes','removeContextItemChip','length','15134454CSMxaf','span','_isAnimationOnEnterEnabled','itemType','tooltip','readonly','bindTemplate','2815800BvEKGL','_initializeProperties','locale','small','execute','_setupTemplate','_createIconView','type','animationend','removeEventListener','ck-hidden','label','add','addEventListener','ck-ai-chat-context-chip_document','123DFOvjo','setTemplate'];_0x5dee=function(){return _0x33a7df;};return _0x5dee();}