@ckeditor/ckeditor5-ai 47.7.5 → 47.7.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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
- function _0x3040(_0x25bc8c,_0x29758f){const _0x2b2c77=_0x2b2c();return _0x3040=function(_0x30405f,_0x25e540){_0x30405f=_0x30405f-0x1f4;let _0xf3b4f2=_0x2b2c77[_0x30405f];return _0xf3b4f2;},_0x3040(_0x25bc8c,_0x29758f);}const _0x581598=_0x3040;(function(_0x3ce9cb,_0x54a048){const _0x45c1ce=_0x3040,_0x57cca4=_0x3ce9cb();while(!![]){try{const _0x329608=parseInt(_0x45c1ce(0x200))/0x1*(parseInt(_0x45c1ce(0x1ff))/0x2)+-parseInt(_0x45c1ce(0x202))/0x3+-parseInt(_0x45c1ce(0x22b))/0x4+parseInt(_0x45c1ce(0x20a))/0x5+-parseInt(_0x45c1ce(0x270))/0x6+-parseInt(_0x45c1ce(0x208))/0x7*(-parseInt(_0x45c1ce(0x25e))/0x8)+-parseInt(_0x45c1ce(0x222))/0x9*(parseInt(_0x45c1ce(0x23d))/0xa);if(_0x329608===_0x54a048)break;else _0x57cca4['push'](_0x57cca4['shift']());}catch(_0x7eaf91){_0x57cca4['push'](_0x57cca4['shift']());}}}(_0x2b2c,0x93b03));import{CKEditorError as _0x4ee7df,EmitterMixin as _0x2de077,logWarning as _0x1368e1}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x382a40}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x923409,AI_CONTEXT_MODEL_EVENT_NAMES as _0x29fdcb}from'./aichatcontext.js';function _0x2b2c(){const _0x14f299=['fetchConversationMessages','stop','message','startConversation','delegate','start','code','interactionCreated','createReply','title','type','loadSourceResources','isCurrentDocumentInContext','setModel','model','destroy','attributes','sources','modification','splice','role','ai-chat-handle-user-interaction-already-in-progress','1219014DkxwOS','isAvailable','currentInteraction','getCurrentDocumentContext','fire','getPendingContextItems','populateFromMessage','ai-chat-handle-user-interaction-start-failed','setReasoning','1886724HqyviU','isCurrentDocumentInConversation','toLowerCase','chatContext','reasoning','indexOf','sessionId','stack','isFromHistory','isSelectionInContext','addToConversationContext','getCapabilitiesConfig','handleUserInteraction','getAvailableModels','mcp-tool-result','ai-chat-conversation-start-no-model-selected','get','toolName','40CoWdsi','getMessages','ai-chat-conversation-init-from-id-failed','parse','getInteraction','conversationId','getAll','group','setWebSearch','toggleReasoning','removeFromContext','hasOwn','assistant','push','chatCapabilities','createInteraction','url','prompt','conversationInitialized','conversationStarted','appendContent','currentReply','chatModels','removeInteraction','getEditor','selectedModelId','updateCurrentDocumentInContext','_processMessagesToInteractions','addResourceToContext','connector','_handleToolResultData','ai-chat-conversation-set-model-null','error','194456txKrLL','toggleWebSearch','set','load','ai-chat-conversation-already-started','text','addUrlToContext','addToolItemToContext','webSearch','capabilities','ai-chat-handle-user-conversation-not-initialized','_extractContextItems','length','content','addFilesToContext','ai-chat-conversation-start-failed','addSelectionToContext','ai-chat-conversation-set-model-not-available','668700MUmOlT','interactions','setConversationTitle','isStarted','getConversation','addCurrentDocumentToContext','getDocumentContext','fetchConversation','contextItems','options','modelSelected','ai-chat-conversation-init-failed','find','108386LKyeVP','11ZQjFLJ','removeSelectionFromContext','139476BXQrtv','lastInteraction','reset','updateCurrentDocument','user','getModel','56udhydc','init','4928795paOeDJ','selectedModel'];_0x2b2c=function(){return _0x14f299;};return _0x2b2c();}import{AICapabilities as _0x42818f,CAPABILITIES_MODEL_EVENT_NAMES as _0x1fa14b}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x24c707}from'./aichatinteraction.js';import{errorsMap as _0x25b89d}from'../../errorsmap.js';export class AIChatConversation extends _0x2de077(){['id'];[_0x581598(0x1f5)]=!0x1;[_0x581598(0x233)];[_0x581598(0x271)]=[];[_0x581598(0x224)];[_0x581598(0x20b)];[_0x581598(0x25a)];[_0x581598(0x1fb)];constructor(_0xcfd340){const _0x51289e=_0x581598;super(),this[_0x51289e(0x1fb)]=_0xcfd340,this[_0x51289e(0x25a)]=_0xcfd340[_0x51289e(0x25a)],this[_0x51289e(0x253)]=_0xcfd340[_0x51289e(0x253)],this['id']=_0xcfd340[_0x51289e(0x242)],this[_0x51289e(0x233)]=_0xcfd340[_0x51289e(0x233)];}async[_0x581598(0x209)](_0x5bb7a6){const _0x1d2bfd=_0x581598;try{this[_0x1d2bfd(0x22e)]=new _0x923409({'connector':this[_0x1d2bfd(0x25a)],'config':_0x5bb7a6,'ownerId':this['id']}),this[_0x1d2bfd(0x22e)][_0x1d2bfd(0x210)](..._0x29fdcb)['to'](this),this[_0x1d2bfd(0x22e)][_0x1d2bfd(0x209)](),this[_0x1d2bfd(0x24b)]=new _0x42818f(),this[_0x1d2bfd(0x24b)][_0x1d2bfd(0x210)](..._0x1fa14b)['to'](this),this[_0x1d2bfd(0x24b)][_0x1d2bfd(0x209)]();const _0x43650d=await this[_0x1d2bfd(0x253)][_0x1d2bfd(0x238)]();this[_0x1d2bfd(0x226)](_0x1d2bfd(0x24f),{'availableModels':_0x43650d});const _0x281d4f=await this[_0x1d2bfd(0x253)][_0x1d2bfd(0x207)](this[_0x1d2bfd(0x1fb)][_0x1d2bfd(0x256)]);_0x281d4f&&await this[_0x1d2bfd(0x219)](_0x281d4f);}catch(_0x4ee2ff){const _0x576640=new _0x4ee7df(_0x1d2bfd(0x1fd),null,{'message':_0x4ee2ff[_0x1d2bfd(0x20e)]||_0x4ee2ff});_0x576640[_0x1d2bfd(0x232)]=_0x4ee2ff[_0x1d2bfd(0x232)],this[_0x1d2bfd(0x226)](_0x1d2bfd(0x25d),{'error':_0x576640});}}async[_0x581598(0x211)](){const _0x240958=_0x581598;if(this[_0x240958(0x1f5)])throw new _0x4ee7df(_0x240958(0x262),null,{'conversation':this});if(!this[_0x240958(0x20b)])throw new _0x4ee7df(_0x240958(0x23a),null,{'conversation':this});try{const {id:_0x38b4c9}=await this[_0x240958(0x25a)][_0x240958(0x20f)](this['id'],this[_0x240958(0x1fb)][_0x240958(0x244)])[_0x240958(0x1f6)]();this['id']=_0x38b4c9,this[_0x240958(0x1f5)]=!0x0,this[_0x240958(0x226)](_0x240958(0x250),{'conversationId':this['id'],'selectedModel':this[_0x240958(0x20b)]});}catch(_0x1ab5c9){const _0x2a4358=new _0x4ee7df(_0x240958(0x26d),null,{'message':_0x1ab5c9[_0x240958(0x20e)],'conversationId':this['id']});throw _0x2a4358[_0x240958(0x232)]=_0x1ab5c9[_0x240958(0x232)],this[_0x240958(0x226)](_0x240958(0x25d),{'error':_0x2a4358}),_0x2a4358;}}async[_0x581598(0x261)](_0x37cd86,_0x203b6c){const _0x4a1edd=_0x581598;try{const _0x1caa45=await this[_0x4a1edd(0x25a)][_0x4a1edd(0x1f9)](_0x37cd86)[_0x4a1edd(0x1f6)](),_0x4202ed=await this[_0x4a1edd(0x25a)][_0x4a1edd(0x20c)](_0x37cd86)[_0x4a1edd(0x23e)](),_0x5a1c5e=_0x4202ed[0x0][_0x4a1edd(0x21a)];this[_0x4a1edd(0x1f5)]=!0x0,this['id']=_0x1caa45['id'],_0x4a1edd(0x215)in _0x1caa45?this[_0x4a1edd(0x226)](_0x4a1edd(0x1f4),_0x1caa45[_0x4a1edd(0x215)],!0x0):this[_0x4a1edd(0x226)](_0x4a1edd(0x1f4),'',!0x0);const _0x2add44=(await this[_0x4a1edd(0x253)][_0x4a1edd(0x243)]())[_0x4a1edd(0x1fe)](_0x2d3fc7=>_0x2d3fc7['id'][_0x4a1edd(0x22d)]()===_0x5a1c5e[_0x4a1edd(0x22d)]());return this[_0x4a1edd(0x20b)]=_0x2add44,this[_0x4a1edd(0x226)](_0x4a1edd(0x1fc),{'selectedModel':_0x2add44,'isDisabled':!0x0}),await this[_0x4a1edd(0x258)](_0x4202ed,_0x203b6c,_0x5a1c5e),this[_0x4a1edd(0x224)]=void 0x0,this;}catch(_0x1adfc0){const _0x447878=new _0x4ee7df(_0x4a1edd(0x23f),null,{'message':_0x1adfc0[_0x4a1edd(0x20e)],'conversationId':_0x37cd86});throw _0x447878[_0x4a1edd(0x232)]=_0x1adfc0[_0x4a1edd(0x232)],this[_0x4a1edd(0x226)](_0x4a1edd(0x25d),{'error':_0x447878}),_0x447878;}}async[_0x581598(0x258)](_0x222daa,_0x162cc0,_0x1b0165){const _0x26205d=_0x581598;let _0xeb6cab;for(const _0x2fd41f of _0x222daa)if(_0x26205d(0x206)===_0x2fd41f[_0x26205d(0x220)]){const _0x507449=await this[_0x26205d(0x269)](_0x2fd41f),_0x5f387a={'isReasoningEnabled':Object[_0x26205d(0x248)](_0x2fd41f[_0x26205d(0x267)],_0x26205d(0x22f)),'isWebSearchEnabled':Object[_0x26205d(0x248)](_0x2fd41f[_0x26205d(0x267)],_0x26205d(0x266))};_0xeb6cab=this[_0x26205d(0x24c)]({'userMessage':_0x2fd41f[_0x26205d(0x24e)],'contextItems':_0x507449,'capabilities':_0x5f387a,'modelId':_0x1b0165,'attributes':_0x2fd41f[_0x26205d(0x21c)]}),this[_0x26205d(0x224)]=_0xeb6cab,this[_0x26205d(0x22e)][_0x26205d(0x235)](this[_0x26205d(0x224)][_0x26205d(0x1fa)]);}else{if(_0x26205d(0x249)===_0x2fd41f[_0x26205d(0x220)]&&_0xeb6cab){const _0x321bc1=[];for(const _0x5d9c59 of _0x2fd41f[_0x26205d(0x26b)])switch(_0x5d9c59[_0x26205d(0x216)]){case _0x26205d(0x263):case _0x26205d(0x21e):{const _0x2d3661=_0xeb6cab[_0x26205d(0x1f8)]()?.[_0x26205d(0x231)]!==_0x162cc0;_0xeb6cab[_0x26205d(0x252)]=_0xeb6cab[_0x26205d(0x214)]({'type':_0x5d9c59[_0x26205d(0x216)],'isDone':!0x0,'interactionId':_0xeb6cab['id'],'areActionsDisabled':_0x2d3661}),_0xeb6cab[_0x26205d(0x252)][_0x26205d(0x251)](_0x5d9c59[_0x26205d(0x26b)]),_0x321bc1[_0x26205d(0x26a)]>0x0&&(_0xeb6cab[_0x26205d(0x252)][_0x26205d(0x21d)]=_0x321bc1[_0x26205d(0x21f)](0x0));break;}case _0x26205d(0x24d):_0x321bc1[_0x26205d(0x24a)](_0x5d9c59);break;case _0x26205d(0x239):{const {data:_0x571e66,attributes:_0x1c5a25}=JSON[_0x26205d(0x240)](_0x5d9c59[_0x26205d(0x26b)]);_0xeb6cab[_0x26205d(0x25b)]({'toolName':_0x5d9c59[_0x26205d(0x23c)],'data':_0x571e66,'attributes':_0x1c5a25});break;}}}}}async[_0x581598(0x269)](_0x5c49e0){const _0x42456d=_0x581598,_0x1dd133=new Map();if(!_0x5c49e0[_0x42456d(0x26b)])return _0x1dd133;for(const _0x11b600 of _0x5c49e0[_0x42456d(0x26b)]){const _0x2f16e7=await this[_0x42456d(0x22e)][_0x42456d(0x228)](_0x11b600);_0x2f16e7&&_0x1dd133[_0x42456d(0x260)](_0x2f16e7['id'],_0x2f16e7);}return _0x1dd133;}async[_0x581598(0x237)]({userMessage:_0x24deb6,attributes:_0xf1960f}){const _0x5cbc32=_0x581598;if(!this[_0x5cbc32(0x1f5)])throw new _0x4ee7df(_0x5cbc32(0x268),null,{'conversation':this});if(this[_0x5cbc32(0x224)])throw new _0x4ee7df(_0x5cbc32(0x221),null,{'conversation':this});try{const _0x159dba=this[_0x5cbc32(0x22e)][_0x5cbc32(0x227)](),_0x2d2080=this[_0x5cbc32(0x24b)][_0x5cbc32(0x236)](),_0x131ba3=this[_0x5cbc32(0x20b)]['id'];this[_0x5cbc32(0x224)]=this[_0x5cbc32(0x24c)]({'userMessage':_0x24deb6,'contextItems':_0x159dba,'capabilities':_0x2d2080,'modelId':_0x131ba3,'attributes':_0xf1960f}),await this[_0x5cbc32(0x224)][_0x5cbc32(0x211)](),this[_0x5cbc32(0x22e)][_0x5cbc32(0x235)](this[_0x5cbc32(0x224)][_0x5cbc32(0x1fa)]);}catch(_0x42847b){if(_0x42847b instanceof _0x4ee7df)this[_0x5cbc32(0x226)](_0x5cbc32(0x25d),{'interactionId':this[_0x5cbc32(0x224)]?this[_0x5cbc32(0x224)]['id']:void 0x0,'error':_0x42847b});else{const _0x6839c5=_0x25b89d[_0x5cbc32(0x23b)](_0x42847b[_0x5cbc32(0x212)])||_0x5cbc32(0x229);this[_0x5cbc32(0x226)](_0x5cbc32(0x25d),{'interactionId':this[_0x5cbc32(0x224)]?this[_0x5cbc32(0x224)]['id']:void 0x0,'error':new _0x4ee7df(_0x6839c5,null,{'error':_0x42847b})});}}finally{this[_0x5cbc32(0x224)]?.[_0x5cbc32(0x20d)](),this[_0x5cbc32(0x224)]=void 0x0;}}[_0x581598(0x24c)]({userMessage:_0x1a439e,contextItems:_0x40fc6d,capabilities:_0x2e757c,modelId:_0x564899,attributes:_0x42aa7d}){const _0x405b33=_0x581598,_0x50460a=new _0x24c707({'userMessage':_0x1a439e,'contextItems':_0x40fc6d,'capabilities':_0x2e757c,'conversationId':this['id'],'connector':this[_0x405b33(0x25a)],'editor':this[_0x405b33(0x1fb)][_0x405b33(0x255)]&&this[_0x405b33(0x1fb)][_0x405b33(0x255)](),'model':_0x564899,'attributes':_0x42aa7d});return _0x50460a[_0x405b33(0x210)](..._0x382a40)['to'](this),this[_0x405b33(0x271)][_0x405b33(0x24a)](_0x50460a),this[_0x405b33(0x226)](_0x405b33(0x213),_0x50460a),_0x50460a;}[_0x581598(0x241)](_0x4e0be8){const _0x2310f7=_0x581598;return this[_0x2310f7(0x271)][_0x2310f7(0x1fe)](_0x7dc2e=>_0x7dc2e['id']===_0x4e0be8);}[_0x581598(0x254)](_0x43ca42){const _0x45bb35=_0x581598,_0x4598d2=this[_0x45bb35(0x241)](_0x43ca42);_0x4598d2&&(_0x4598d2[_0x45bb35(0x21b)](),this[_0x45bb35(0x271)][_0x45bb35(0x21f)](this[_0x45bb35(0x271)][_0x45bb35(0x230)](_0x4598d2),0x1));}get[_0x581598(0x203)](){const _0x472617=_0x581598;return this[_0x472617(0x271)][this[_0x472617(0x271)][_0x472617(0x26a)]-0x1];}[_0x581598(0x1f7)](_0x3731bb){const _0x1e4b26=_0x581598;this[_0x1e4b26(0x22e)][_0x1e4b26(0x1f7)](_0x3731bb);}async[_0x581598(0x257)]({content:_0x567cc8,version:_0x1241d6,sessionId:_0x559eae,selections:_0x2aed54}){const _0x4e61b1=_0x581598;await this[_0x4e61b1(0x22e)][_0x4e61b1(0x205)](_0x567cc8,_0x1241d6,_0x559eae,_0x2aed54);}[_0x581598(0x225)](){const _0x3c8a7b=_0x581598;return this[_0x3c8a7b(0x224)]?.[_0x3c8a7b(0x1f8)]()?.[_0x3c8a7b(0x26b)]||'';}[_0x581598(0x26e)](_0x2f4b33){const _0xff71d0=_0x581598;this[_0xff71d0(0x22e)][_0xff71d0(0x26e)](_0x2f4b33);}[_0x581598(0x201)](){const _0x23766d=_0x581598;this[_0x23766d(0x22e)][_0x23766d(0x201)]();}[_0x581598(0x26c)](_0x40f8b8){const _0x2203b4=_0x581598;this[_0x2203b4(0x22e)][_0x2203b4(0x26c)](_0x40f8b8);}[_0x581598(0x264)](_0x1a498b){const _0x404d7f=_0x581598;this[_0x404d7f(0x22e)][_0x404d7f(0x264)](_0x1a498b);}[_0x581598(0x265)](_0x4b8c6b){const _0xb2bcb3=_0x581598;this[_0xb2bcb3(0x22e)][_0xb2bcb3(0x265)](_0x4b8c6b);}[_0x581598(0x259)](_0x1a842a,_0x181bf1){const _0x1cb1b1=_0x581598;this[_0x1cb1b1(0x22e)][_0x1cb1b1(0x259)](_0x1a842a,_0x181bf1);}[_0x581598(0x217)](_0x4faed1,_0x51915e,_0x1c6f18){const _0x326a34=_0x581598;return this[_0x326a34(0x22e)][_0x326a34(0x217)](_0x4faed1,_0x51915e,_0x1c6f18);}[_0x581598(0x247)](_0x25c5bf){const _0x121476=_0x581598;this[_0x121476(0x22e)][_0x121476(0x247)](_0x25c5bf);}[_0x581598(0x245)](_0x560ab0){const _0x4ce08a=_0x581598;this[_0x4ce08a(0x24b)][_0x4ce08a(0x245)](_0x560ab0);}[_0x581598(0x25f)](){const _0x30aaa2=_0x581598;this[_0x30aaa2(0x24b)][_0x30aaa2(0x25f)]();}[_0x581598(0x22a)](_0x5a7d21){const _0x552a7f=_0x581598;this[_0x552a7f(0x24b)][_0x552a7f(0x22a)](_0x5a7d21);}[_0x581598(0x246)](){const _0x12d557=_0x581598;this[_0x12d557(0x24b)][_0x12d557(0x246)]();}[_0x581598(0x218)](){const _0x5bc562=_0x581598;return this[_0x5bc562(0x22e)][_0x5bc562(0x218)]();}[_0x581598(0x22c)](){const _0x100da1=_0x581598;return this[_0x100da1(0x22e)][_0x100da1(0x22c)]();}[_0x581598(0x234)](){const _0x2246a3=_0x581598;return this[_0x2246a3(0x22e)][_0x2246a3(0x234)]();}async[_0x581598(0x219)](_0x203670){const _0x1471c2=_0x581598;_0x203670?!0x1===await this[_0x1471c2(0x253)][_0x1471c2(0x223)](_0x203670)&&(_0x1368e1(_0x1471c2(0x26f),{'conversation':this,'model':_0x203670}),_0x203670=(await this[_0x1471c2(0x253)][_0x1471c2(0x238)]())[0x0]):(_0x1368e1(_0x1471c2(0x25c),{'conversation':this}),_0x203670=(await this[_0x1471c2(0x253)][_0x1471c2(0x238)]())[0x0]),_0x203670['id']!==this[_0x1471c2(0x20b)]?.['id']&&(this[_0x1471c2(0x20b)]=_0x203670,this[_0x1471c2(0x24b)][_0x1471c2(0x204)](),this[_0x1471c2(0x226)](_0x1471c2(0x1fc),{'selectedModel':_0x203670}));}}
23
+ const _0xa82f8f=_0x13b0;(function(_0x1dee60,_0x20a2a6){const _0x754a65=_0x13b0,_0x39a092=_0x1dee60();while(!![]){try{const _0x2b0116=-parseInt(_0x754a65(0x13a))/0x1*(-parseInt(_0x754a65(0x153))/0x2)+parseInt(_0x754a65(0x107))/0x3+-parseInt(_0x754a65(0x131))/0x4*(parseInt(_0x754a65(0x129))/0x5)+-parseInt(_0x754a65(0x122))/0x6+parseInt(_0x754a65(0x144))/0x7*(-parseInt(_0x754a65(0x105))/0x8)+parseInt(_0x754a65(0x121))/0x9*(-parseInt(_0x754a65(0xda))/0xa)+parseInt(_0x754a65(0x13f))/0xb;if(_0x2b0116===_0x20a2a6)break;else _0x39a092['push'](_0x39a092['shift']());}catch(_0x218155){_0x39a092['push'](_0x39a092['shift']());}}}(_0x3df6,0xb49d6));import{CKEditorError as _0xd70891,EmitterMixin as _0x492e7c,logWarning as _0x2058fc}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x553ab7}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x9570f,AI_CONTEXT_MODEL_EVENT_NAMES as _0x4a81c1}from'./aichatcontext.js';import{AICapabilities as _0x1edd16,CAPABILITIES_MODEL_EVENT_NAMES as _0x1adece}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x3773d9}from'./aichatinteraction.js';import{errorsMap as _0x511481}from'../../errorsmap.js';function _0x3df6(){const _0x3c1436=['387259bctvDG','currentInteraction','mcp-tool-result','getDocumentContext','addFilesToContext','15070000CKTuez','ai-chat-conversation-set-model-not-available','_processMessagesToInteractions','ai-chat-conversation-start-no-model-selected','sources','264509YJePOJ','isCurrentDocumentInContext','getModel','find','updateCurrentDocument','setWebSearch','ai-chat-conversation-init-failed','text','addToConversationContext','toolName','attributes','createReply','removeFromContext','addUrlToContext','webSearch','6mDkRVk','toggleReasoning','setReasoning','message','addCurrentDocumentToContext','_handleToolResultData','25780pxXOFM','role','title','modelSelected','ai-chat-conversation-set-model-null','interactionCreated','fetchConversationMessages','fire','load','addResourceToContext','lastInteraction','code','setModel','loadSourceResources','_extractContextItems','chatCapabilities','ai-chat-handle-user-interaction-start-failed','connector','stop','isFromHistory','isStarted','ai-chat-handle-user-interaction-already-in-progress','sessionId','getPendingContextItems','getAvailableModels','handleUserInteraction','hasOwn','ai-chat-conversation-already-started','length','get','getInteraction','populateFromMessage','conversationInitialized','currentReply','contextItems','selectedModel','reasoning','conversationId','appendContent','isAvailable','toggleWebSearch','push','selectedModelId','56gKgrmh','options','733779TIreSn','error','modification','prompt','content','parse','getCapabilitiesConfig','getMessages','createInteraction','getConversation','destroy','type','addSelectionToContext','group','chatContext','ai-chat-conversation-start-failed','getAll','indexOf','user','ai-chat-conversation-init-from-id-failed','stack','delegate','capabilities','reset','addToolItemToContext','url','729SFujTf','1965534idiFEr','interactions','removeInteraction','assistant','ai-chat-handle-user-conversation-not-initialized','startConversation','updateCurrentDocumentInContext','10280XWxzaC','getCurrentDocumentContext','isCurrentDocumentInConversation','getEditor','chatModels','removeSelectionFromContext','fetchConversation','model','2404SwjFeZ','toLowerCase','setConversationTitle','conversationStarted','set','init','start','splice','isSelectionInContext'];_0x3df6=function(){return _0x3c1436;};return _0x3df6();}function _0x13b0(_0x339ed8,_0x8017d8){const _0x3df62c=_0x3df6();return _0x13b0=function(_0x13b0b0,_0x4a54c3){_0x13b0b0=_0x13b0b0-0xd8;let _0x4cdb3a=_0x3df62c[_0x13b0b0];return _0x4cdb3a;},_0x13b0(_0x339ed8,_0x8017d8);}export class AIChatConversation extends _0x492e7c(){['id'];[_0xa82f8f(0xee)]=!0x1;[_0xa82f8f(0xed)];[_0xa82f8f(0x123)]=[];[_0xa82f8f(0x13b)];[_0xa82f8f(0xfd)];[_0xa82f8f(0xeb)];[_0xa82f8f(0x106)];constructor(_0x4939bc){const _0x2bdc5e=_0xa82f8f;super(),this[_0x2bdc5e(0x106)]=_0x4939bc,this[_0x2bdc5e(0xeb)]=_0x4939bc[_0x2bdc5e(0xeb)],this[_0x2bdc5e(0x12d)]=_0x4939bc[_0x2bdc5e(0x12d)],this['id']=_0x4939bc[_0x2bdc5e(0xff)],this[_0x2bdc5e(0xed)]=_0x4939bc[_0x2bdc5e(0xed)];}async[_0xa82f8f(0x136)](_0x2b1ad2){const _0x59434f=_0xa82f8f;try{this[_0x59434f(0x115)]=new _0x9570f({'connector':this[_0x59434f(0xeb)],'config':_0x2b1ad2,'ownerId':this['id']}),this[_0x59434f(0x115)][_0x59434f(0x11c)](..._0x4a81c1)['to'](this),this[_0x59434f(0x115)][_0x59434f(0x136)](),this[_0x59434f(0xe9)]=new _0x1edd16(),this[_0x59434f(0xe9)][_0x59434f(0x11c)](..._0x1adece)['to'](this),this[_0x59434f(0xe9)][_0x59434f(0x136)]();const _0x56764d=await this[_0x59434f(0x12d)][_0x59434f(0xf2)]();this[_0x59434f(0xe1)](_0x59434f(0xfa),{'availableModels':_0x56764d});const _0x37cf0f=await this[_0x59434f(0x12d)][_0x59434f(0x146)](this[_0x59434f(0x106)][_0x59434f(0x104)]);_0x37cf0f&&await this[_0x59434f(0xe6)](_0x37cf0f);}catch(_0x318293){const _0x5d49b2=new _0xd70891(_0x59434f(0x14a),null,{'message':_0x318293[_0x59434f(0x156)]||_0x318293});_0x5d49b2[_0x59434f(0x11b)]=_0x318293[_0x59434f(0x11b)],this[_0x59434f(0xe1)](_0x59434f(0x108),{'error':_0x5d49b2});}}async[_0xa82f8f(0x137)](){const _0x336c1a=_0xa82f8f;if(this[_0x336c1a(0xee)])throw new _0xd70891(_0x336c1a(0xf5),null,{'conversation':this});if(!this[_0x336c1a(0xfd)])throw new _0xd70891(_0x336c1a(0x142),null,{'conversation':this});try{const {id:_0x540440}=await this[_0x336c1a(0xeb)][_0x336c1a(0x127)](this['id'],this[_0x336c1a(0x106)][_0x336c1a(0x114)])[_0x336c1a(0x110)]();this['id']=_0x540440,this[_0x336c1a(0xee)]=!0x0,this[_0x336c1a(0xe1)](_0x336c1a(0x134),{'conversationId':this['id'],'selectedModel':this[_0x336c1a(0xfd)]});}catch(_0x16d706){const _0x78380e=new _0xd70891(_0x336c1a(0x116),null,{'message':_0x16d706[_0x336c1a(0x156)],'conversationId':this['id']});throw _0x78380e[_0x336c1a(0x11b)]=_0x16d706[_0x336c1a(0x11b)],this[_0x336c1a(0xe1)](_0x336c1a(0x108),{'error':_0x78380e}),_0x78380e;}}async[_0xa82f8f(0xe2)](_0x2a6c8a,_0x18f2d0){const _0x220a8e=_0xa82f8f;try{const _0x24cb94=await this[_0x220a8e(0xeb)][_0x220a8e(0x12f)](_0x2a6c8a)[_0x220a8e(0x110)](),_0x119494=await this[_0x220a8e(0xeb)][_0x220a8e(0xe0)](_0x2a6c8a)[_0x220a8e(0x10e)](),_0x4dd079=_0x119494[0x0][_0x220a8e(0x130)];this[_0x220a8e(0xee)]=!0x0,this['id']=_0x24cb94['id'],_0x220a8e(0xdc)in _0x24cb94?this[_0x220a8e(0xe1)](_0x220a8e(0x133),_0x24cb94[_0x220a8e(0xdc)],!0x0):this[_0x220a8e(0xe1)](_0x220a8e(0x133),'',!0x0);const _0x24b0b6=(await this[_0x220a8e(0x12d)][_0x220a8e(0x117)]())[_0x220a8e(0x147)](_0x5c1b9f=>_0x5c1b9f['id'][_0x220a8e(0x132)]()===_0x4dd079[_0x220a8e(0x132)]());return this[_0x220a8e(0xfd)]=_0x24b0b6,this[_0x220a8e(0xe1)](_0x220a8e(0xdd),{'selectedModel':_0x24b0b6,'isDisabled':!0x0}),await this[_0x220a8e(0x141)](_0x119494,_0x18f2d0,_0x4dd079),this[_0x220a8e(0x13b)]=void 0x0,this;}catch(_0x2604e8){const _0x4ad768=new _0xd70891(_0x220a8e(0x11a),null,{'message':_0x2604e8[_0x220a8e(0x156)],'conversationId':_0x2a6c8a});throw _0x4ad768[_0x220a8e(0x11b)]=_0x2604e8[_0x220a8e(0x11b)],this[_0x220a8e(0xe1)](_0x220a8e(0x108),{'error':_0x4ad768}),_0x4ad768;}}async[_0xa82f8f(0x141)](_0x262b2d,_0x867bce,_0x4b4747){const _0x4ea035=_0xa82f8f;let _0x3065db;for(const _0x57a026 of _0x262b2d)if(_0x4ea035(0x119)===_0x57a026[_0x4ea035(0xdb)]){const _0x2feba2=await this[_0x4ea035(0xe8)](_0x57a026),_0x3e3727={'isReasoningEnabled':Object[_0x4ea035(0xf4)](_0x57a026[_0x4ea035(0x11d)],_0x4ea035(0xfe)),'isWebSearchEnabled':Object[_0x4ea035(0xf4)](_0x57a026[_0x4ea035(0x11d)],_0x4ea035(0x152))};_0x3065db=this[_0x4ea035(0x10f)]({'userMessage':_0x57a026[_0x4ea035(0x10a)],'contextItems':_0x2feba2,'capabilities':_0x3e3727,'modelId':_0x4b4747,'attributes':_0x57a026[_0x4ea035(0x14e)]}),this[_0x4ea035(0x13b)]=_0x3065db,this[_0x4ea035(0x115)][_0x4ea035(0x14c)](this[_0x4ea035(0x13b)][_0x4ea035(0xfc)]);}else{if(_0x4ea035(0x125)===_0x57a026[_0x4ea035(0xdb)]&&_0x3065db){const _0x283fd1=[];for(const _0x2c7173 of _0x57a026[_0x4ea035(0x10b)])switch(_0x2c7173[_0x4ea035(0x112)]){case _0x4ea035(0x14b):case _0x4ea035(0x109):{const _0x45175e=_0x3065db[_0x4ea035(0x13d)]()?.[_0x4ea035(0xf0)]!==_0x867bce;_0x3065db[_0x4ea035(0xfb)]=_0x3065db[_0x4ea035(0x14f)]({'type':_0x2c7173[_0x4ea035(0x112)],'isDone':!0x0,'interactionId':_0x3065db['id'],'areActionsDisabled':_0x45175e}),_0x3065db[_0x4ea035(0xfb)][_0x4ea035(0x100)](_0x2c7173[_0x4ea035(0x10b)]),_0x283fd1[_0x4ea035(0xf6)]>0x0&&(_0x3065db[_0x4ea035(0xfb)][_0x4ea035(0x143)]=_0x283fd1[_0x4ea035(0x138)](0x0));break;}case _0x4ea035(0x120):_0x283fd1[_0x4ea035(0x103)](_0x2c7173);break;case _0x4ea035(0x13c):{const {data:_0x2369ab,attributes:_0x493fee}=JSON[_0x4ea035(0x10c)](_0x2c7173[_0x4ea035(0x10b)]);_0x3065db[_0x4ea035(0xd9)]({'toolName':_0x2c7173[_0x4ea035(0x14d)],'data':_0x2369ab,'attributes':_0x493fee});break;}}}}}async[_0xa82f8f(0xe8)](_0x1d527d){const _0x193705=_0xa82f8f,_0x40bbd9=new Map();if(!_0x1d527d[_0x193705(0x10b)])return _0x40bbd9;for(const _0x3545b1 of _0x1d527d[_0x193705(0x10b)]){const _0x3a5488=await this[_0x193705(0x115)][_0x193705(0xf9)](_0x3545b1);_0x3a5488&&_0x40bbd9[_0x193705(0x135)](_0x3a5488['id'],_0x3a5488);}return _0x40bbd9;}async[_0xa82f8f(0xf3)]({userMessage:_0x5981ce,attributes:_0x32615}){const _0x111f73=_0xa82f8f;if(!this[_0x111f73(0xee)])throw new _0xd70891(_0x111f73(0x126),null,{'conversation':this});if(this[_0x111f73(0x13b)])throw new _0xd70891(_0x111f73(0xef),null,{'conversation':this});try{const _0x4846b1=this[_0x111f73(0x115)][_0x111f73(0xf1)](),_0x2e4ca3=this[_0x111f73(0xe9)][_0x111f73(0x10d)](),_0x5698c4=this[_0x111f73(0xfd)]['id'];this[_0x111f73(0x13b)]=this[_0x111f73(0x10f)]({'userMessage':_0x5981ce,'contextItems':_0x4846b1,'capabilities':_0x2e4ca3,'modelId':_0x5698c4,'attributes':_0x32615}),await this[_0x111f73(0x13b)][_0x111f73(0x137)](),this[_0x111f73(0x115)][_0x111f73(0x14c)](this[_0x111f73(0x13b)][_0x111f73(0xfc)]);}catch(_0x4478a5){if(_0x4478a5 instanceof _0xd70891)this[_0x111f73(0xe1)](_0x111f73(0x108),{'interactionId':this[_0x111f73(0x13b)]?this[_0x111f73(0x13b)]['id']:void 0x0,'error':_0x4478a5});else{const _0x4c88d7=_0x511481[_0x111f73(0xf7)](_0x4478a5[_0x111f73(0xe5)])||_0x111f73(0xea);this[_0x111f73(0xe1)](_0x111f73(0x108),{'interactionId':this[_0x111f73(0x13b)]?this[_0x111f73(0x13b)]['id']:void 0x0,'error':new _0xd70891(_0x4c88d7,null,{'error':_0x4478a5})});}}finally{this[_0x111f73(0x13b)]?.[_0x111f73(0xec)](),this[_0x111f73(0x13b)]=void 0x0;}}[_0xa82f8f(0x10f)]({userMessage:_0x53eab0,contextItems:_0x341c65,capabilities:_0x18de06,modelId:_0x2c0ca2,attributes:_0x5053a3}){const _0x732a0=_0xa82f8f,_0x1aead2=new _0x3773d9({'userMessage':_0x53eab0,'contextItems':_0x341c65,'capabilities':_0x18de06,'conversationId':this['id'],'connector':this[_0x732a0(0xeb)],'editor':this[_0x732a0(0x106)][_0x732a0(0x12c)]&&this[_0x732a0(0x106)][_0x732a0(0x12c)](),'model':_0x2c0ca2,'attributes':_0x5053a3});return _0x1aead2[_0x732a0(0x11c)](..._0x553ab7)['to'](this),this[_0x732a0(0x123)][_0x732a0(0x103)](_0x1aead2),this[_0x732a0(0xe1)](_0x732a0(0xdf),_0x1aead2),_0x1aead2;}[_0xa82f8f(0xf8)](_0x223b38){const _0x2d6a2e=_0xa82f8f;return this[_0x2d6a2e(0x123)][_0x2d6a2e(0x147)](_0x5a9a44=>_0x5a9a44['id']===_0x223b38);}[_0xa82f8f(0x124)](_0x4e5b67){const _0x41b293=_0xa82f8f,_0x3245bf=this[_0x41b293(0xf8)](_0x4e5b67);_0x3245bf&&(_0x3245bf[_0x41b293(0x111)](),this[_0x41b293(0x123)][_0x41b293(0x138)](this[_0x41b293(0x123)][_0x41b293(0x118)](_0x3245bf),0x1));}get[_0xa82f8f(0xe4)](){const _0x5bacf0=_0xa82f8f;return this[_0x5bacf0(0x123)][this[_0x5bacf0(0x123)][_0x5bacf0(0xf6)]-0x1];}[_0xa82f8f(0xd8)](_0x2407d2){const _0x1e067e=_0xa82f8f;this[_0x1e067e(0x115)][_0x1e067e(0xd8)](_0x2407d2);}async[_0xa82f8f(0x128)]({content:_0x5ae9bb,version:_0x4ba8e4,sessionId:_0x4dd859,selections:_0x33a336}){const _0x5a4bf2=_0xa82f8f;await this[_0x5a4bf2(0x115)][_0x5a4bf2(0x148)](_0x5ae9bb,_0x4ba8e4,_0x4dd859,_0x33a336);}[_0xa82f8f(0x12a)](){const _0x23f977=_0xa82f8f;return this[_0x23f977(0x13b)]?.[_0x23f977(0x13d)]()?.[_0x23f977(0x10b)]||'';}[_0xa82f8f(0x113)](_0x8af872){const _0x416d29=_0xa82f8f;this[_0x416d29(0x115)][_0x416d29(0x113)](_0x8af872);}[_0xa82f8f(0x12e)](){const _0x5ac4b0=_0xa82f8f;this[_0x5ac4b0(0x115)][_0x5ac4b0(0x12e)]();}[_0xa82f8f(0x13e)](_0x176069){const _0x1b18a6=_0xa82f8f;this[_0x1b18a6(0x115)][_0x1b18a6(0x13e)](_0x176069);}[_0xa82f8f(0x151)](_0x1d477a){const _0x259d29=_0xa82f8f;this[_0x259d29(0x115)][_0x259d29(0x151)](_0x1d477a);}[_0xa82f8f(0x11f)](_0x560164){const _0x3ff4d6=_0xa82f8f;this[_0x3ff4d6(0x115)][_0x3ff4d6(0x11f)](_0x560164);}[_0xa82f8f(0xe3)](_0x349f4f,_0x1c24f4){const _0x5414a6=_0xa82f8f;this[_0x5414a6(0x115)][_0x5414a6(0xe3)](_0x349f4f,_0x1c24f4);}[_0xa82f8f(0xe7)](_0x2ace2,_0x4581e0,_0x14d9cf){const _0x430c6e=_0xa82f8f;return this[_0x430c6e(0x115)][_0x430c6e(0xe7)](_0x2ace2,_0x4581e0,_0x14d9cf);}[_0xa82f8f(0x150)](_0x4e11df){const _0x574a4e=_0xa82f8f;this[_0x574a4e(0x115)][_0x574a4e(0x150)](_0x4e11df);}[_0xa82f8f(0x149)](_0x1f60cb){const _0x23c690=_0xa82f8f;this[_0x23c690(0xe9)][_0x23c690(0x149)](_0x1f60cb);}[_0xa82f8f(0x102)](){const _0x2237b1=_0xa82f8f;this[_0x2237b1(0xe9)][_0x2237b1(0x102)]();}[_0xa82f8f(0x155)](_0x4e5688){const _0x57064d=_0xa82f8f;this[_0x57064d(0xe9)][_0x57064d(0x155)](_0x4e5688);}[_0xa82f8f(0x154)](){const _0x56db4a=_0xa82f8f;this[_0x56db4a(0xe9)][_0x56db4a(0x154)]();}[_0xa82f8f(0x145)](){const _0x1b70d8=_0xa82f8f;return this[_0x1b70d8(0x115)][_0x1b70d8(0x145)]();}[_0xa82f8f(0x12b)](){const _0x2f7606=_0xa82f8f;return this[_0x2f7606(0x115)][_0x2f7606(0x12b)]();}[_0xa82f8f(0x139)](){const _0x13cf21=_0xa82f8f;return this[_0x13cf21(0x115)][_0x13cf21(0x139)]();}async[_0xa82f8f(0xe6)](_0x4ffa88){const _0xc190e8=_0xa82f8f;_0x4ffa88?!0x1===await this[_0xc190e8(0x12d)][_0xc190e8(0x101)](_0x4ffa88)&&(_0x2058fc(_0xc190e8(0x140),{'conversation':this,'model':_0x4ffa88}),_0x4ffa88=(await this[_0xc190e8(0x12d)][_0xc190e8(0xf2)]())[0x0]):(_0x2058fc(_0xc190e8(0xde),{'conversation':this}),_0x4ffa88=(await this[_0xc190e8(0x12d)][_0xc190e8(0xf2)]())[0x0]),_0x4ffa88['id']!==this[_0xc190e8(0xfd)]?.['id']&&(this[_0xc190e8(0xfd)]=_0x4ffa88,this[_0xc190e8(0xe9)][_0xc190e8(0x11e)](),this[_0xc190e8(0xe1)](_0xc190e8(0xdd),{'selectedModel':_0x4ffa88}));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x43c613=_0x33b3;function _0xc257(){var _0x8fa042=['1ahcFSW','2245444tnzBAx','5gVikER','conversationId','userMessage','mapContextItemsToRequestData','contextItems','1358826wKPUzR','10rsTXPh','attributes','7704708eIrVwR','model','34137AOchKW','capabilities','366459Awvedm','getDocumentContext','sendRequest','connector','get','current-document','7WKFrjO','getCapabilitiesRequestData','5561416ooQJtu','queryAssistant','826662jZIomB'];_0xc257=function(){return _0x8fa042;};return _0xc257();}(function(_0x143d52,_0x26b036){var _0x448c09=_0x33b3,_0x451e7c=_0x143d52();while(!![]){try{var _0x54de86=-parseInt(_0x448c09(0x106))/0x1*(-parseInt(_0x448c09(0x10d))/0x2)+parseInt(_0x448c09(0xfb))/0x3+parseInt(_0x448c09(0x107))/0x4*(-parseInt(_0x448c09(0x108))/0x5)+parseInt(_0x448c09(0x105))/0x6+parseInt(_0x448c09(0x101))/0x7*(parseInt(_0x448c09(0x103))/0x8)+parseInt(_0x448c09(0xf9))/0x9*(parseInt(_0x448c09(0x10e))/0xa)+-parseInt(_0x448c09(0xf7))/0xb;if(_0x54de86===_0x26b036)break;else _0x451e7c['push'](_0x451e7c['shift']());}catch(_0x106a68){_0x451e7c['push'](_0x451e7c['shift']());}}}(_0xc257,0x5becc));import{AICapabilities as _0x4d3242}from'../../aicore/model/aicapabilities.js';import{AIInteraction as _0x32ddac}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x4cdb7e}from'./aichatcontext.js';function _0x33b3(_0x2935bb,_0x5c5ed8){var _0xc257f2=_0xc257();return _0x33b3=function(_0x33b3c2,_0x521c8b){_0x33b3c2=_0x33b3c2-0xf7;var _0x555ef4=_0xc257f2[_0x33b3c2];return _0x555ef4;},_0x33b3(_0x2935bb,_0x5c5ed8);}export class AIChatInteraction extends _0x32ddac{[_0x43c613(0x10a)];[_0x43c613(0x109)];[_0x43c613(0x10c)]=new Map();[_0x43c613(0xf8)];[_0x43c613(0x10f)];constructor(_0x2876c4){var _0x586191=_0x43c613;super(_0x2876c4),this[_0x586191(0x109)]=_0x2876c4[_0x586191(0x109)],this[_0x586191(0x10c)]=_0x2876c4[_0x586191(0x10c)],this[_0x586191(0xfa)]=_0x2876c4[_0x586191(0xfa)],this[_0x586191(0x10a)]=_0x2876c4[_0x586191(0x10a)],this[_0x586191(0xf8)]=_0x2876c4[_0x586191(0xf8)],this[_0x586191(0x10f)]=_0x2876c4[_0x586191(0x10f)];}async[_0x43c613(0xfd)](){var _0x28fab7=_0x43c613;return this[_0x28fab7(0xfe)][_0x28fab7(0x104)]({'message':this[_0x28fab7(0x10a)],'conversationId':this[_0x28fab7(0x109)],'parts':_0x4cdb7e[_0x28fab7(0x10b)](this[_0x28fab7(0x10c)]),'capabilities':_0x4d3242[_0x28fab7(0x102)](this[_0x28fab7(0xfa)]),'model':this[_0x28fab7(0xf8)],'attributes':this[_0x28fab7(0x10f)]});}[_0x43c613(0xfc)](){var _0x365eb0=_0x43c613;return this[_0x365eb0(0x10c)][_0x365eb0(0xff)](_0x365eb0(0x100));}}
23
+ var _0x447113=_0xbe81;function _0x254d(){var _0x37dbfb=['sendRequest','model','capabilities','8398AHQMUI','attributes','3798462XKwEaT','480VsswDT','146105YhCZAJ','connector','3675848pxbozE','mapContextItemsToRequestData','18896368WmjZwD','getDocumentContext','get','10155smNaJV','current-document','3395049gFfnAo','contextItems','userMessage','queryAssistant','conversationId','getCapabilitiesRequestData'];_0x254d=function(){return _0x37dbfb;};return _0x254d();}(function(_0x20e3b9,_0x19e119){var _0x14c0e2=_0xbe81,_0x1564c7=_0x20e3b9();while(!![]){try{var _0x1890da=-parseInt(_0x14c0e2(0x10c))/0x1+-parseInt(_0x14c0e2(0x10f))/0x2*(-parseInt(_0x14c0e2(0x101))/0x3)+parseInt(_0x14c0e2(0xfc))/0x4+parseInt(_0x14c0e2(0xfa))/0x5+parseInt(_0x14c0e2(0x10e))/0x6+parseInt(_0x14c0e2(0x103))/0x7+-parseInt(_0x14c0e2(0xfe))/0x8;if(_0x1890da===_0x19e119)break;else _0x1564c7['push'](_0x1564c7['shift']());}catch(_0x4b3505){_0x1564c7['push'](_0x1564c7['shift']());}}}(_0x254d,0x7c13f));import{AICapabilities as _0x35a3a7}from'../../aicore/model/aicapabilities.js';import{AIInteraction as _0x317f3d}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x939e00}from'./aichatcontext.js';function _0xbe81(_0x32a469,_0x2eb899){var _0x254d06=_0x254d();return _0xbe81=function(_0xbe81bc,_0x242ef1){_0xbe81bc=_0xbe81bc-0xfa;var _0x1ca34c=_0x254d06[_0xbe81bc];return _0x1ca34c;},_0xbe81(_0x32a469,_0x2eb899);}export class AIChatInteraction extends _0x317f3d{[_0x447113(0x105)];[_0x447113(0x107)];[_0x447113(0x104)]=new Map();[_0x447113(0x10a)];[_0x447113(0x10d)];constructor(_0x3cd640){var _0x3e933c=_0x447113;super(_0x3cd640),this[_0x3e933c(0x107)]=_0x3cd640[_0x3e933c(0x107)],this[_0x3e933c(0x104)]=_0x3cd640[_0x3e933c(0x104)],this[_0x3e933c(0x10b)]=_0x3cd640[_0x3e933c(0x10b)],this[_0x3e933c(0x105)]=_0x3cd640[_0x3e933c(0x105)],this[_0x3e933c(0x10a)]=_0x3cd640[_0x3e933c(0x10a)],this[_0x3e933c(0x10d)]=_0x3cd640[_0x3e933c(0x10d)];}async[_0x447113(0x109)](){var _0x32c526=_0x447113;return this[_0x32c526(0xfb)][_0x32c526(0x106)]({'message':this[_0x32c526(0x105)],'conversationId':this[_0x32c526(0x107)],'parts':_0x939e00[_0x32c526(0xfd)](this[_0x32c526(0x104)]),'capabilities':_0x35a3a7[_0x32c526(0x108)](this[_0x32c526(0x10b)]),'model':this[_0x32c526(0x10a)],'attributes':this[_0x32c526(0x10d)]});}[_0x447113(0xff)](){var _0x5df89d=_0x447113;return this[_0x5df89d(0x104)][_0x5df89d(0x100)](_0x5df89d(0x102));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xb844e6=_0x43c0;(function(_0x19594e,_0x53384b){const _0x3da60e=_0x43c0,_0x11914d=_0x19594e();while(!![]){try{const _0x28a317=parseInt(_0x3da60e(0xaf))/0x1*(-parseInt(_0x3da60e(0x88))/0x2)+-parseInt(_0x3da60e(0xd4))/0x3*(parseInt(_0x3da60e(0xa9))/0x4)+-parseInt(_0x3da60e(0x9e))/0x5+-parseInt(_0x3da60e(0xb6))/0x6+parseInt(_0x3da60e(0xcc))/0x7+parseInt(_0x3da60e(0xb9))/0x8+parseInt(_0x3da60e(0xc8))/0x9;if(_0x28a317===_0x53384b)break;else _0x11914d['push'](_0x11914d['shift']());}catch(_0x15a917){_0x11914d['push'](_0x11914d['shift']());}}}(_0x52b9,0xe9237));import{FocusTracker as _0xd5684c,KeystrokeHandler as _0x41d9d1}from'ckeditor5/src/utils.js';import{AISuggestionStreamableContentView as _0x31d441}from'../../aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js';import{AISuggestionContentPartToolbarView as _0x23f45d}from'../../aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js';import{AIMiniToolbarView as _0x5e3b07}from'../../aicore/ui/suggestioncontainer/aiminitoolbarview.js';import{AIBalloonView as _0x12497c}from'../../aiballoon/ui/aiballoonview.js';import{ButtonView as _0x3dd151,FocusCycler as _0xe74c1e,View as _0x58baa1}from'ckeditor5/src/ui.js';import{AISuggestionContentPartStateView as _0x14556c}from'../../aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js';import{IconChevronDown as _0x49d422,IconChevronUp as _0x1add08}from'ckeditor5/src/icons.js';import{getTranslation as _0x1398c4}from'../../aicore/utils/common-translations.js';function _0x52b9(){const _0x3d6925=['7365305QAsbvk','_miniToolbarView','insertSuggestion','ck-ai-chat-balloon-main','tab','focus','includes','ck-ai-chat-balloon__toolbar-container','change:_state','focusFirst','focusLast','605716HeEbcm','setState','_createNextButtonView','keepErrors','toggleSuggestionDisplayMode','hideError','30VYQFcd','isShowChangesOn','destroy','isTrackChangesOn','_isErrorVisible','pending','render','10717392pQqDAq','change:isTrackChangesOn','focusCycler','11665640CliVmS','set','fire','setTemplate','showNext','ck-ai-chat-balloon-main_state_','listenTo','createCollection','showPrevious','has','_focusTracker','showDiff','update','togglePartToolbarEnabled','_state','13030722zygYmJ','_toolbarContainerView','toggleShowChanges','showError','11653348BAifSH','execute','isVisible','_partToolbarView','showBlockingError','nextButtonView','locale','isEnabled','3FOcrSV','setButtonsVisibility','full','bindTemplate','toggleRotatorButtonsVisibility','_focusables','shift\x20+\x20tab','13678zRWwnS','_stateView','_togglePartToolbarButtonsVisibility','addMany','_keystrokes','availableActions','previousButtonView','element','_streamableContentView','AI_BALLOON_PREVIOUS_LABEL','_config','div','_createPreviousButtonView','applySuggestion','delegate','add','children','AI_BALLOON_NEXT_LABEL','rejectSuggestion','updateContent','bind','_errorView'];_0x52b9=function(){return _0x3d6925;};return _0x52b9();}import'../../../theme/aichat/aichatballoon.css';function _0x43c0(_0x4e3fd1,_0x3cde39){const _0x52b933=_0x52b9();return _0x43c0=function(_0x43c04f,_0x40e25e){_0x43c04f=_0x43c04f-0x87;let _0x330f98=_0x52b933[_0x43c04f];return _0x330f98;},_0x43c0(_0x4e3fd1,_0x3cde39);}export class AIChatBalloonView extends _0x12497c{[_0xb844e6(0x98)];[_0xb844e6(0xd1)];[_0xb844e6(0x8e)];[_0xb844e6(0xb8)];[_0xb844e6(0xd9)];[_0xb844e6(0xc3)];[_0xb844e6(0x8c)];[_0xb844e6(0x92)];[_0xb844e6(0x90)];[_0xb844e6(0xc9)];[_0xb844e6(0xcf)];[_0xb844e6(0x89)];[_0xb844e6(0x9f)];constructor(_0x2ec1c8,_0x14e0f1){const _0x16eb46=_0xb844e6;super(_0x2ec1c8);const _0xa95fe6=this[_0x16eb46(0xd7)];this[_0x16eb46(0xba)](_0x16eb46(0xc4),!0x1),this[_0x16eb46(0xba)](_0x16eb46(0xc7),_0x16eb46(0xb4)),this[_0x16eb46(0xc3)]=new _0xd5684c(),this[_0x16eb46(0x8c)]=new _0x41d9d1(),this[_0x16eb46(0xd9)]=this[_0x16eb46(0xc0)](),this[_0x16eb46(0xb8)]=new _0xe74c1e({'focusables':this[_0x16eb46(0xd9)],'focusTracker':this[_0x16eb46(0xc3)],'keystrokeHandler':this[_0x16eb46(0x8c)],'actions':{'focusPrevious':_0x16eb46(0x87),'focusNext':_0x16eb46(0xa2)}}),this[_0x16eb46(0x92)]=_0x14e0f1,this[_0x16eb46(0xd1)]=this[_0x16eb46(0xab)](),this[_0x16eb46(0x8e)]=this[_0x16eb46(0x94)](),this[_0x16eb46(0x90)]=new _0x31d441(_0x2ec1c8),this[_0x16eb46(0xcf)]=new _0x23f45d(_0x2ec1c8,_0x14e0f1[_0x16eb46(0x8d)]),this[_0x16eb46(0xcf)][_0x16eb46(0x96)](_0x16eb46(0x95),_0x16eb46(0xa0),_0x16eb46(0x9a))['to'](this),this[_0x16eb46(0x8a)](_0x14e0f1),this[_0x16eb46(0x89)]=new _0x14556c(_0x2ec1c8),this[_0x16eb46(0x89)][_0x16eb46(0xce)]=!0x1,this[_0x16eb46(0x9f)]=new _0x5e3b07(_0x2ec1c8,{'showChanges':_0x16eb46(0xd6)}),this[_0x16eb46(0x9f)][_0x16eb46(0x9c)](_0x16eb46(0xb0))['to'](this,_0x16eb46(0xc4)),this[_0x16eb46(0x9f)]['on'](_0x16eb46(0xca),()=>{const _0x74bd72=_0x16eb46;this[_0x74bd72(0xbb)](_0x74bd72(0xad));}),this[_0x16eb46(0xc9)]=new AIChatBalloonToolbarContainerView(_0x2ec1c8,[this[_0x16eb46(0xcf)],this[_0x16eb46(0x89)],this[_0x16eb46(0x9f)]]),this[_0x16eb46(0x98)]=this[_0x16eb46(0xc0)]([this[_0x16eb46(0x90)],this[_0x16eb46(0xc9)]]),this['on'](_0x16eb46(0xa6),(_0x5e0e46,_0x3b5b44,_0xa9adf0,_0x4eb5b5)=>{const _0x1b6217=_0x16eb46;let _0xbabb24,_0x1a4973;_0x1b6217(0xb4)===_0x4eb5b5?(_0xbabb24=this[_0x1b6217(0xcf)],_0x1a4973=this[_0x1b6217(0x89)]):(_0xbabb24=this[_0x1b6217(0x89)],_0x1a4973=this[_0x1b6217(0xcf)]),this[_0x1b6217(0x89)][_0x1b6217(0xaa)](_0xa9adf0),_0xbabb24[_0x1b6217(0xce)]=!0x1,_0x1a4973[_0x1b6217(0xce)]=!0x0;}),this[_0x16eb46(0xbc)]({'tag':_0x16eb46(0x93),'attributes':{'class':['ck',_0x16eb46(0xa1),_0xa95fe6['to'](_0x16eb46(0xc7),_0x53ff5b=>_0x16eb46(0xbe)+_0x53ff5b)]},'children':this[_0x16eb46(0x98)]}),this['on'](_0x16eb46(0xb7),()=>{const _0x165d8e=_0x16eb46;this[_0x165d8e(0x8a)](_0x14e0f1);});}[_0xb844e6(0xb5)](){const _0x34a6f8=_0xb844e6;super[_0x34a6f8(0xb5)](),this[_0x34a6f8(0xd1)][_0x34a6f8(0xb5)](),this[_0x34a6f8(0x8e)][_0x34a6f8(0xb5)](),this[_0x34a6f8(0xc3)][_0x34a6f8(0x97)](this[_0x34a6f8(0x8f)]),this[_0x34a6f8(0xc3)][_0x34a6f8(0x97)](this[_0x34a6f8(0xd1)]),this[_0x34a6f8(0xc3)][_0x34a6f8(0x97)](this[_0x34a6f8(0x8e)]),this[_0x34a6f8(0xc3)][_0x34a6f8(0x97)](this[_0x34a6f8(0x9f)]),this[_0x34a6f8(0xc3)][_0x34a6f8(0x97)](this[_0x34a6f8(0xcf)]),this[_0x34a6f8(0x8c)][_0x34a6f8(0xbf)](this[_0x34a6f8(0x8f)]),this[_0x34a6f8(0x8c)][_0x34a6f8(0xbf)](this[_0x34a6f8(0xd1)][_0x34a6f8(0x8f)]),this[_0x34a6f8(0x8c)][_0x34a6f8(0xbf)](this[_0x34a6f8(0x8e)][_0x34a6f8(0x8f)]),this[_0x34a6f8(0xd9)][_0x34a6f8(0x8b)]([this[_0x34a6f8(0xd1)],this[_0x34a6f8(0x8e)],this[_0x34a6f8(0xcf)],this[_0x34a6f8(0x9f)]]);}[_0xb844e6(0xb1)](){const _0x6dc506=_0xb844e6;super[_0x6dc506(0xb1)](),this[_0x6dc506(0x8e)][_0x6dc506(0xb1)](),this[_0x6dc506(0xd1)][_0x6dc506(0xb1)]();}[_0xb844e6(0xa3)](){const _0x294314=_0xb844e6;this[_0x294314(0xb8)][_0x294314(0xa7)]();}[_0xb844e6(0xa8)](){const _0x4af16c=_0xb844e6;this[_0x4af16c(0xb8)][_0x4af16c(0xa8)]();}async[_0xb844e6(0x9b)](_0x4bf51e){const _0x266806=_0xb844e6;_0x4bf51e?.[_0x266806(0xac)]||this[_0x266806(0xae)](),await this[_0x266806(0x90)][_0x266806(0xc5)](_0x4bf51e);}[_0xb844e6(0xaa)](_0x3c96e6){const _0x18ae96=_0xb844e6;this[_0x18ae96(0xc7)]=_0x3c96e6;}[_0xb844e6(0xcb)](_0x43a430){const _0x349c6d=_0xb844e6;super[_0x349c6d(0xcb)](_0x43a430),this[_0x349c6d(0x98)][_0x349c6d(0xc2)](this[_0x349c6d(0x9d)])||this[_0x349c6d(0x98)][_0x349c6d(0x97)](this[_0x349c6d(0x9d)],0x0);}[_0xb844e6(0xae)](){const _0x305b33=_0xb844e6;this[_0x305b33(0xb3)]&&(super[_0x305b33(0xae)](),this[_0x305b33(0xc6)](!0x0));}[_0xb844e6(0xd0)](_0x6185c8){const _0x51f085=_0xb844e6;super[_0x51f085(0xd0)](_0x6185c8),this[_0x51f085(0xc6)](!0x1);}[_0xb844e6(0xd8)](_0x2f47f6){const _0x205f76=_0xb844e6;this[_0x205f76(0xd1)][_0x205f76(0xce)]=this[_0x205f76(0x8e)][_0x205f76(0xce)]=_0x2f47f6;}[_0xb844e6(0xc6)](_0x470e6d){const _0x53612c=_0xb844e6;this[_0x53612c(0xcf)][_0x53612c(0xd3)]=_0x470e6d;}[_0xb844e6(0x8a)]({showApplyButton:_0x1d50c9,showSuggestButton:_0x178475}){const _0x1482b5=_0xb844e6;_0x1d50c9=_0x1d50c9&&!this[_0x1482b5(0xb2)]&&this[_0x1482b5(0x92)][_0x1482b5(0x8d)][_0x1482b5(0xa4)](_0x1482b5(0x95)),_0x178475=_0x178475&&this[_0x1482b5(0x92)][_0x1482b5(0x8d)][_0x1482b5(0xa4)](_0x1482b5(0xa0)),this[_0x1482b5(0xcf)][_0x1482b5(0xd5)]({'showApplyButton':_0x1d50c9,'showSuggestButton':_0x178475});}[_0xb844e6(0xab)](){const _0x487f29=_0xb844e6,_0x5a9983=new _0x3dd151(this[_0x487f29(0xd2)]);return _0x5a9983[_0x487f29(0xba)]({'icon':_0x49d422,'label':_0x1398c4(this[_0x487f29(0xd2)],_0x487f29(0x99)),'isVisible':!0x0}),_0x5a9983['on'](_0x487f29(0xcd),()=>{const _0x566595=_0x487f29;this[_0x566595(0xbb)](_0x566595(0xbd));}),_0x5a9983;}[_0xb844e6(0x94)](){const _0x50121b=_0xb844e6,_0x7c7b33=new _0x3dd151(this[_0x50121b(0xd2)]);return _0x7c7b33[_0x50121b(0xba)]({'icon':_0x1add08,'label':_0x1398c4(this[_0x50121b(0xd2)],_0x50121b(0x91)),'isVisible':!0x0}),_0x7c7b33['on'](_0x50121b(0xcd),()=>{const _0x34dde3=_0x50121b;this[_0x34dde3(0xbb)](_0x34dde3(0xc1));}),_0x7c7b33;}}class AIChatBalloonToolbarContainerView extends _0x58baa1{constructor(_0x5098c6,_0x3ee1b6){const _0x24cab2=_0xb844e6;super(_0x5098c6),this[_0x24cab2(0xbc)]({'tag':_0x24cab2(0x93),'attributes':{'class':[_0x24cab2(0xa5)]},'children':_0x3ee1b6});}}
23
+ const _0xb05377=_0x10b9;(function(_0x5eb112,_0x38942d){const _0x103ec5=_0x10b9,_0x4ef8e1=_0x5eb112();while(!![]){try{const _0x24a9fa=-parseInt(_0x103ec5(0x190))/0x1+parseInt(_0x103ec5(0x19d))/0x2*(parseInt(_0x103ec5(0x183))/0x3)+-parseInt(_0x103ec5(0x1b8))/0x4*(parseInt(_0x103ec5(0x18b))/0x5)+-parseInt(_0x103ec5(0x184))/0x6+parseInt(_0x103ec5(0x1c9))/0x7+-parseInt(_0x103ec5(0x1ab))/0x8+-parseInt(_0x103ec5(0x1bb))/0x9*(-parseInt(_0x103ec5(0x187))/0xa);if(_0x24a9fa===_0x38942d)break;else _0x4ef8e1['push'](_0x4ef8e1['shift']());}catch(_0x49e407){_0x4ef8e1['push'](_0x4ef8e1['shift']());}}}(_0x3f1b,0x3ba78));import{FocusTracker as _0x28aaef,KeystrokeHandler as _0x5d50ef}from'ckeditor5/src/utils.js';import{AISuggestionStreamableContentView as _0x5dc298}from'../../aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js';import{AISuggestionContentPartToolbarView as _0x5a7e38}from'../../aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js';import{AIMiniToolbarView as _0x22c074}from'../../aicore/ui/suggestioncontainer/aiminitoolbarview.js';function _0x3f1b(){const _0x2c026b=['_config','_focusables','2249443khgXEK','fire','div','_isErrorVisible','ck-ai-chat-balloon-main_state_','updateContent','bind','change:_state','element','_keystrokes','focusFirst','_togglePartToolbarButtonsVisibility','delegate','isVisible','524073oTLdfT','2375562MevPwf','setState','previousButtonView','56830OyAjpt','_errorView','execute','showBlockingError','475035cOBkND','AI_BALLOON_NEXT_LABEL','availableActions','add','update','441428hYQpis','pending','_focusTracker','createCollection','setButtonsVisibility','tab','setTemplate','_state','showDiff','_streamableContentView','applySuggestion','has','full','4tYCWen','showError','isEnabled','focus','_partToolbarView','keepErrors','_createPreviousButtonView','render','isShowChangesOn','_miniToolbarView','ck-ai-chat-balloon__toolbar-container','nextButtonView','destroy','togglePartToolbarEnabled','1238856qSZuHe','focusLast','toggleShowChanges','rejectSuggestion','AI_BALLOON_PREVIOUS_LABEL','includes','hideError','listenTo','locale','showNext','insertSuggestion','_createNextButtonView','focusCycler','8vXmSou','toggleRotatorButtonsVisibility','ck-ai-chat-balloon-main','1197WSYYYK','_stateView','bindTemplate','children','toggleSuggestionDisplayMode','set','addMany','isTrackChangesOn','showPrevious','_toolbarContainerView','change:isTrackChangesOn','shift\x20+\x20tab'];_0x3f1b=function(){return _0x2c026b;};return _0x3f1b();}import{AIBalloonView as _0x4e17fb}from'../../aiballoon/ui/aiballoonview.js';import{ButtonView as _0x60f147,FocusCycler as _0x237138,View as _0x48be16}from'ckeditor5/src/ui.js';import{AISuggestionContentPartStateView as _0x1eca65}from'../../aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js';import{IconChevronDown as _0x2454b1,IconChevronUp as _0x2395b1}from'ckeditor5/src/icons.js';function _0x10b9(_0x1a60d1,_0x1a9e5a){const _0x3f1bd3=_0x3f1b();return _0x10b9=function(_0x10b9cc,_0x309ad0){_0x10b9cc=_0x10b9cc-0x183;let _0x1faa60=_0x3f1bd3[_0x10b9cc];return _0x1faa60;},_0x10b9(_0x1a60d1,_0x1a9e5a);}import{getTranslation as _0x424e1e}from'../../aicore/utils/common-translations.js';import'../../../theme/aichat/aichatballoon.css';export class AIChatBalloonView extends _0x4e17fb{[_0xb05377(0x1be)];[_0xb05377(0x1a8)];[_0xb05377(0x186)];[_0xb05377(0x1b7)];[_0xb05377(0x1c8)];[_0xb05377(0x192)];[_0xb05377(0x1d2)];[_0xb05377(0x1c7)];[_0xb05377(0x199)];[_0xb05377(0x1c4)];[_0xb05377(0x1a1)];[_0xb05377(0x1bc)];[_0xb05377(0x1a6)];constructor(_0x30c6a4,_0x840817){const _0x35482d=_0xb05377;super(_0x30c6a4);const _0x3967ff=this[_0x35482d(0x1bd)];this[_0x35482d(0x1c0)](_0x35482d(0x198),!0x1),this[_0x35482d(0x1c0)](_0x35482d(0x197),_0x35482d(0x191)),this[_0x35482d(0x192)]=new _0x28aaef(),this[_0x35482d(0x1d2)]=new _0x5d50ef(),this[_0x35482d(0x1c8)]=this[_0x35482d(0x193)](),this[_0x35482d(0x1b7)]=new _0x237138({'focusables':this[_0x35482d(0x1c8)],'focusTracker':this[_0x35482d(0x192)],'keystrokeHandler':this[_0x35482d(0x1d2)],'actions':{'focusPrevious':_0x35482d(0x1c6),'focusNext':_0x35482d(0x195)}}),this[_0x35482d(0x1c7)]=_0x840817,this[_0x35482d(0x1a8)]=this[_0x35482d(0x1b6)](),this[_0x35482d(0x186)]=this[_0x35482d(0x1a3)](),this[_0x35482d(0x199)]=new _0x5dc298(_0x30c6a4),this[_0x35482d(0x1a1)]=new _0x5a7e38(_0x30c6a4,_0x840817[_0x35482d(0x18d)]),this[_0x35482d(0x1a1)][_0x35482d(0x1d5)](_0x35482d(0x19a),_0x35482d(0x1b5),_0x35482d(0x1ae))['to'](this),this[_0x35482d(0x1d4)](_0x840817),this[_0x35482d(0x1bc)]=new _0x1eca65(_0x30c6a4),this[_0x35482d(0x1bc)][_0x35482d(0x1d6)]=!0x1,this[_0x35482d(0x1a6)]=new _0x22c074(_0x30c6a4,{'showChanges':_0x35482d(0x19c)}),this[_0x35482d(0x1a6)][_0x35482d(0x1cf)](_0x35482d(0x1a5))['to'](this,_0x35482d(0x198)),this[_0x35482d(0x1a6)]['on'](_0x35482d(0x1ad),()=>{const _0x2ced32=_0x35482d;this[_0x2ced32(0x1ca)](_0x2ced32(0x1bf));}),this[_0x35482d(0x1c4)]=new AIChatBalloonToolbarContainerView(_0x30c6a4,[this[_0x35482d(0x1a1)],this[_0x35482d(0x1bc)],this[_0x35482d(0x1a6)]]),this[_0x35482d(0x1be)]=this[_0x35482d(0x193)]([this[_0x35482d(0x199)],this[_0x35482d(0x1c4)]]),this['on'](_0x35482d(0x1d0),(_0x4eb068,_0x855fd4,_0x389ada,_0x3d45c9)=>{const _0x1a2edb=_0x35482d;let _0x2ca68c,_0x5ec3d1;_0x1a2edb(0x191)===_0x3d45c9?(_0x2ca68c=this[_0x1a2edb(0x1a1)],_0x5ec3d1=this[_0x1a2edb(0x1bc)]):(_0x2ca68c=this[_0x1a2edb(0x1bc)],_0x5ec3d1=this[_0x1a2edb(0x1a1)]),this[_0x1a2edb(0x1bc)][_0x1a2edb(0x185)](_0x389ada),_0x2ca68c[_0x1a2edb(0x1d6)]=!0x1,_0x5ec3d1[_0x1a2edb(0x1d6)]=!0x0;}),this[_0x35482d(0x196)]({'tag':_0x35482d(0x1cb),'attributes':{'class':['ck',_0x35482d(0x1ba),_0x3967ff['to'](_0x35482d(0x197),_0x197aeb=>_0x35482d(0x1cd)+_0x197aeb)]},'children':this[_0x35482d(0x1be)]}),this['on'](_0x35482d(0x1c5),()=>{const _0x3f27b1=_0x35482d;this[_0x3f27b1(0x1d4)](_0x840817);});}[_0xb05377(0x1a4)](){const _0x2eb84c=_0xb05377;super[_0x2eb84c(0x1a4)](),this[_0x2eb84c(0x1a8)][_0x2eb84c(0x1a4)](),this[_0x2eb84c(0x186)][_0x2eb84c(0x1a4)](),this[_0x2eb84c(0x192)][_0x2eb84c(0x18e)](this[_0x2eb84c(0x1d1)]),this[_0x2eb84c(0x192)][_0x2eb84c(0x18e)](this[_0x2eb84c(0x1a8)]),this[_0x2eb84c(0x192)][_0x2eb84c(0x18e)](this[_0x2eb84c(0x186)]),this[_0x2eb84c(0x192)][_0x2eb84c(0x18e)](this[_0x2eb84c(0x1a6)]),this[_0x2eb84c(0x192)][_0x2eb84c(0x18e)](this[_0x2eb84c(0x1a1)]),this[_0x2eb84c(0x1d2)][_0x2eb84c(0x1b2)](this[_0x2eb84c(0x1d1)]),this[_0x2eb84c(0x1d2)][_0x2eb84c(0x1b2)](this[_0x2eb84c(0x1a8)][_0x2eb84c(0x1d1)]),this[_0x2eb84c(0x1d2)][_0x2eb84c(0x1b2)](this[_0x2eb84c(0x186)][_0x2eb84c(0x1d1)]),this[_0x2eb84c(0x1c8)][_0x2eb84c(0x1c1)]([this[_0x2eb84c(0x1a8)],this[_0x2eb84c(0x186)],this[_0x2eb84c(0x1a1)],this[_0x2eb84c(0x1a6)]]);}[_0xb05377(0x1a9)](){const _0x197b78=_0xb05377;super[_0x197b78(0x1a9)](),this[_0x197b78(0x186)][_0x197b78(0x1a9)](),this[_0x197b78(0x1a8)][_0x197b78(0x1a9)]();}[_0xb05377(0x1a0)](){const _0x246560=_0xb05377;this[_0x246560(0x1b7)][_0x246560(0x1d3)]();}[_0xb05377(0x1ac)](){const _0x395145=_0xb05377;this[_0x395145(0x1b7)][_0x395145(0x1ac)]();}async[_0xb05377(0x1ce)](_0xd9779d){const _0x52104c=_0xb05377;_0xd9779d?.[_0x52104c(0x1a2)]||this[_0x52104c(0x1b1)](),await this[_0x52104c(0x199)][_0x52104c(0x18f)](_0xd9779d);}[_0xb05377(0x185)](_0x3d09cd){const _0x5ba7a8=_0xb05377;this[_0x5ba7a8(0x197)]=_0x3d09cd;}[_0xb05377(0x19e)](_0x37fcfd){const _0x2fbc96=_0xb05377;super[_0x2fbc96(0x19e)](_0x37fcfd),this[_0x2fbc96(0x1be)][_0x2fbc96(0x19b)](this[_0x2fbc96(0x188)])||this[_0x2fbc96(0x1be)][_0x2fbc96(0x18e)](this[_0x2fbc96(0x188)],0x0);}[_0xb05377(0x1b1)](){const _0x2ab877=_0xb05377;this[_0x2ab877(0x1cc)]&&(super[_0x2ab877(0x1b1)](),this[_0x2ab877(0x1aa)](!0x0));}[_0xb05377(0x18a)](_0x18f24f){const _0x505f76=_0xb05377;super[_0x505f76(0x18a)](_0x18f24f),this[_0x505f76(0x1aa)](!0x1);}[_0xb05377(0x1b9)](_0x4f374e){const _0x2220cd=_0xb05377;this[_0x2220cd(0x1a8)][_0x2220cd(0x1d6)]=this[_0x2220cd(0x186)][_0x2220cd(0x1d6)]=_0x4f374e;}[_0xb05377(0x1aa)](_0x84926){const _0x50a913=_0xb05377;this[_0x50a913(0x1a1)][_0x50a913(0x19f)]=_0x84926;}[_0xb05377(0x1d4)]({showApplyButton:_0x127ea0,showSuggestButton:_0x10887b}){const _0x37f225=_0xb05377;_0x127ea0=_0x127ea0&&!this[_0x37f225(0x1c2)]&&this[_0x37f225(0x1c7)][_0x37f225(0x18d)][_0x37f225(0x1b0)](_0x37f225(0x19a)),_0x10887b=_0x10887b&&this[_0x37f225(0x1c7)][_0x37f225(0x18d)][_0x37f225(0x1b0)](_0x37f225(0x1b5)),this[_0x37f225(0x1a1)][_0x37f225(0x194)]({'showApplyButton':_0x127ea0,'showSuggestButton':_0x10887b});}[_0xb05377(0x1b6)](){const _0x3d66f6=_0xb05377,_0x5b461f=new _0x60f147(this[_0x3d66f6(0x1b3)]);return _0x5b461f[_0x3d66f6(0x1c0)]({'icon':_0x2454b1,'label':_0x424e1e(this[_0x3d66f6(0x1b3)],_0x3d66f6(0x18c)),'isVisible':!0x0}),_0x5b461f['on'](_0x3d66f6(0x189),()=>{const _0x2d56ad=_0x3d66f6;this[_0x2d56ad(0x1ca)](_0x2d56ad(0x1b4));}),_0x5b461f;}[_0xb05377(0x1a3)](){const _0x1e5386=_0xb05377,_0x2f838d=new _0x60f147(this[_0x1e5386(0x1b3)]);return _0x2f838d[_0x1e5386(0x1c0)]({'icon':_0x2395b1,'label':_0x424e1e(this[_0x1e5386(0x1b3)],_0x1e5386(0x1af)),'isVisible':!0x0}),_0x2f838d['on'](_0x1e5386(0x189),()=>{const _0x2922e3=_0x1e5386;this[_0x2922e3(0x1ca)](_0x2922e3(0x1c3));}),_0x2f838d;}}class AIChatBalloonToolbarContainerView extends _0x48be16{constructor(_0x78c5ae,_0x32d2e2){const _0x5e8ffa=_0xb05377;super(_0x78c5ae),this[_0x5e8ffa(0x196)]({'tag':_0x5e8ffa(0x1cb),'attributes':{'class':[_0x5e8ffa(0x1a7)]},'children':_0x32d2e2});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x27f8f9=_0x4eed;(function(_0x341a6e,_0x1c2ffc){const _0x2c57f8=_0x4eed,_0x507cbb=_0x341a6e();while(!![]){try{const _0x410927=-parseInt(_0x2c57f8(0x20e))/0x1+parseInt(_0x2c57f8(0x1f7))/0x2+parseInt(_0x2c57f8(0x1ca))/0x3*(parseInt(_0x2c57f8(0x204))/0x4)+-parseInt(_0x2c57f8(0x1c4))/0x5+-parseInt(_0x2c57f8(0x1d2))/0x6+parseInt(_0x2c57f8(0x1cf))/0x7+parseInt(_0x2c57f8(0x200))/0x8;if(_0x410927===_0x1c2ffc)break;else _0x507cbb['push'](_0x507cbb['shift']());}catch(_0xdae43d){_0x507cbb['push'](_0x507cbb['shift']());}}}(_0x4b18,0xc8a1b));import{ButtonView as _0x4fb718,clickOutsideHandler as _0x804f60,View as _0x50a771}from'ckeditor5/src/ui.js';function _0x4eed(_0x3392c6,_0x2f2707){const _0x4b18f4=_0x4b18();return _0x4eed=function(_0x4eedf7,_0x29fecf){_0x4eedf7=_0x4eedf7-0x1c4;let _0xa1dfca=_0x4b18f4[_0x4eedf7];return _0xa1dfca;},_0x4eed(_0x3392c6,_0x2f2707);}import{AIChatPromptInputView as _0x45c1e2}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x2ced01}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x10d747,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x4cb2d2}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x3604ea}from'./controls/aichatcontrolsloaderview.js';import{getTranslation as _0x2063fb}from'../../aicore/utils/common-translations.js';import'../../../theme/aichat/aichat-controls.css';function _0x4b18(){const _0x27d532=['ck-hidden','sendUserMessage','value','setTemplate','set','contextResourcesSearchInputVisibleFrom','_promptCapabilitiesView','isModelAvailable','_createContextPanelView','bodyCollection','setReasoning','low','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','_promptInputView','setPlaceholderText','startConversation','1520238igiWnm','selectModel','updateResourceState','setIsUploadInProgress','change:isLoading','queryView','toggleReasoning','reset','locale','10775520IuZPvU','toggleWebSearch','clearCurrentContextItems','populateSourceResourceBalloon','148dVhVVe','ck-ai-chat-controls','_handlePromptInputFocus','clearConversationContextUI','fieldView','_createLoaderView','focus','addContextItem','_createPromptInputView','setModelList','1329155XLBhhs','setConversationContext','bindTemplate','setPromptInputValue','execute','2072050yCqVHv','disableModelSelector','focusPromptInput','setWebSearch','_createModelUnavailableMessageView','ck-ai-chat-controls-model-unavailable-message','47142VfdbPa','delegate','resetMessageInput','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','closeSourceResourceBalloon','2509234dIXVHA','clearConversationContextItems','setInputPlaceholder','2889522mbcbkN','_contextPanelView','enableModelSelector','addContextButtonView','ck-ai-chat-controls-disabled','ck-ai-chat-controls__start-new-chat-button','setContextItemLoading','_loaderView','_createPromptCapabilitiesView','setModel','div','isLoading','_modelUnavailableMessageView','form','element','abortPromptStream','setAddContextOptions','_shouldRestorePromptInputFocus','clearPendingContextUI','isDisabled','removeContextItem'];_0x4b18=function(){return _0x27d532;};return _0x4b18();}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 _0x50a771{[_0x27f8f9(0x1d3)];[_0x27f8f9(0x1f4)];[_0x27f8f9(0x1ed)];[_0x27f8f9(0x1d9)];[_0x27f8f9(0x1de)];[_0x27f8f9(0x1e3)];constructor(_0x4ed0fc,_0x2642e8){const _0x389487=_0x27f8f9;super(_0x4ed0fc),this[_0x389487(0x1d3)]=this[_0x389487(0x1ef)](_0x4ed0fc,{'bodyCollection':_0x2642e8[_0x389487(0x1f0)],'searchInputVisibleFrom':_0x2642e8[_0x389487(0x1ec)]}),this[_0x389487(0x1f4)]=this[_0x389487(0x20c)](_0x4ed0fc),this[_0x389487(0x1ed)]=this[_0x389487(0x1da)](_0x4ed0fc),this[_0x389487(0x1d9)]=this[_0x389487(0x209)](_0x4ed0fc),this[_0x389487(0x1de)]=this[_0x389487(0x1c8)](_0x4ed0fc),this[_0x389487(0x1e3)]=!0x1,this[_0x389487(0x1f4)][_0x389487(0x1cb)](_0x389487(0x1e8))['to'](this),this[_0x389487(0x1d9)][_0x389487(0x1cb)](_0x389487(0x1e1))['to'](this),this[_0x389487(0x1ed)][_0x389487(0x1cb)](_0x389487(0x201))['to'](this),this[_0x389487(0x1ed)][_0x389487(0x1cb)](_0x389487(0x1fd))['to'](this),this[_0x389487(0x1ed)][_0x389487(0x1cb)](_0x389487(0x1f8))['to'](this),this[_0x389487(0x1d3)][_0x389487(0x1cb)](..._0x4cb2d2)['to'](this),this[_0x389487(0x1eb)](_0x389487(0x1ee),!0x0),this[_0x389487(0x1eb)](_0x389487(0x1e5),!0x1);const _0x3425e8=this[_0x389487(0x210)];this[_0x389487(0x1ea)]({'tag':_0x389487(0x1df),'attributes':{'class':['ck',_0x389487(0x205),_0x3425e8['if'](_0x389487(0x1e5),_0x389487(0x1d6))]},'children':[{'tag':_0x389487(0x1dc),'attributes':{'class':[_0x3425e8['if'](_0x389487(0x1dd),_0x389487(0x1e7),_0x588353=>_0x588353||!this[_0x389487(0x1ee)]),_0x3425e8['if'](_0x389487(0x1ee),_0x389487(0x1e7),_0x13e4f6=>!_0x13e4f6||this[_0x389487(0x1dd)])]},'children':[this[_0x389487(0x1d3)],this[_0x389487(0x1f4)],this[_0x389487(0x1ed)]]},{'tag':_0x389487(0x1dc),'attributes':{'class':[_0x3425e8['if'](_0x389487(0x1dd),_0x389487(0x1e7),_0xcc6f5a=>!_0xcc6f5a)]},'children':[this[_0x389487(0x1d9)]]},{'tag':_0x389487(0x1dc),'attributes':{'class':[_0x3425e8['if'](_0x389487(0x1ee),_0x389487(0x1e7),_0x2598ea=>_0x2598ea)]},'children':[this[_0x389487(0x1de)]]}]}),_0x804f60({'emitter':this[_0x389487(0x1f4)],'activator':()=>this[_0x389487(0x1dd)],'contextElements':()=>[this[_0x389487(0x1e0)]],'callback':()=>{const _0x43800a=_0x389487;this[_0x43800a(0x1e3)]=!0x1;}}),this['on'](_0x389487(0x1fb),this[_0x389487(0x206)],{'priority':_0x389487(0x1f2)});}[_0x27f8f9(0x1ef)](_0x2e2abc,_0x371a7d){return new _0x10d747(_0x2e2abc,_0x371a7d);}[_0x27f8f9(0x20c)](_0x406b6f){const _0x7a9d81=_0x27f8f9;return new _0x45c1e2(_0x406b6f,this[_0x7a9d81(0x1d3)][_0x7a9d81(0x1d5)]);}[_0x27f8f9(0x1da)](_0x45200e){return new _0x2ced01(_0x45200e);}[_0x27f8f9(0x209)](_0x3bc699){return new _0x3604ea(_0x3bc699);}[_0x27f8f9(0x1c8)](_0x314274){const _0x498a7d=_0x27f8f9,_0x3961b6=new AIChatModelUnavailableMessageView(_0x314274);return _0x3961b6[_0x498a7d(0x1cb)](_0x498a7d(0x1f6))['to'](this),_0x3961b6;}[_0x27f8f9(0x206)](_0x4e1549,_0x39b0d6,_0x46db6e){const _0x58fb04=_0x27f8f9;_0x46db6e?this[_0x58fb04(0x1e3)]=!0x0:this[_0x58fb04(0x1e3)]&&this[_0x58fb04(0x1f4)][_0x58fb04(0x20a)]();}[_0x27f8f9(0x20b)](_0x1b4716,_0x441529){const _0x421733=_0x27f8f9;this[_0x421733(0x1d3)][_0x421733(0x20b)](_0x1b4716,_0x441529);}[_0x27f8f9(0x1e6)](_0x20a586){const _0x26f59a=_0x27f8f9;this[_0x26f59a(0x1d3)][_0x26f59a(0x1e6)](_0x20a586);}[_0x27f8f9(0x1d8)](_0x505784,_0x5de005){const _0x3364ee=_0x27f8f9;this[_0x3364ee(0x1d3)][_0x3364ee(0x1d8)](_0x505784,_0x5de005);}[_0x27f8f9(0x1fa)](_0x175e9f){const _0x5e23e4=_0x27f8f9;this[_0x5e23e4(0x1f4)][_0x5e23e4(0x1fa)](_0x175e9f);}[_0x27f8f9(0x20f)](_0x1910dd){const _0x2d103d=_0x27f8f9;this[_0x2d103d(0x1d3)][_0x2d103d(0x20f)](_0x1910dd);}[_0x27f8f9(0x1e4)](){const _0x4258d5=_0x27f8f9;this[_0x4258d5(0x1d3)][_0x4258d5(0x202)]();}[_0x27f8f9(0x207)](){const _0x25e222=_0x27f8f9;this[_0x25e222(0x1d3)][_0x25e222(0x1d0)]();}[_0x27f8f9(0x1f9)](_0x45d1f9,_0x124c49,_0x20aeaa){const _0x4b126a=_0x27f8f9;this[_0x4b126a(0x1d3)][_0x4b126a(0x1f9)](_0x45d1f9,_0x124c49,_0x20aeaa);}[_0x27f8f9(0x1c7)](_0x489a28){const _0x5c98ea=_0x27f8f9;this[_0x5c98ea(0x1ed)][_0x5c98ea(0x1c7)](_0x489a28);}[_0x27f8f9(0x1f1)](_0x4e8e62){const _0x4cd890=_0x27f8f9;this[_0x4cd890(0x1ed)][_0x4cd890(0x1f1)](_0x4e8e62);}[_0x27f8f9(0x1cc)](){const _0xe2dd10=_0x27f8f9;this[_0xe2dd10(0x1f4)][_0xe2dd10(0x1fe)]();}[_0x27f8f9(0x1e2)](_0x11d37a){const _0x94b15b=_0x27f8f9;this[_0x94b15b(0x1d3)][_0x94b15b(0x1e2)](_0x11d37a);}[_0x27f8f9(0x1d1)](_0x529f73){const _0x26cd10=_0x27f8f9;this[_0x26cd10(0x1f4)][_0x26cd10(0x1f5)](_0x529f73);}[_0x27f8f9(0x20d)](_0x9fa124,_0x2a3d3d){const _0x5b953b=_0x27f8f9;this[_0x5b953b(0x1ed)][_0x5b953b(0x20d)](_0x9fa124,_0x2a3d3d);}[_0x27f8f9(0x1db)](_0x4c1b44){const _0x554fd4=_0x27f8f9;_0x4c1b44?(this[_0x554fd4(0x1ee)]=!0x0,this[_0x554fd4(0x1ed)][_0x554fd4(0x1db)](_0x4c1b44)):this[_0x554fd4(0x1ee)]=!0x1;}[_0x27f8f9(0x1d4)](){const _0x3501dd=_0x27f8f9;this[_0x3501dd(0x1ed)][_0x3501dd(0x1d4)]();}[_0x27f8f9(0x1c5)](_0x2b09f1){const _0x2b4b46=_0x27f8f9;this[_0x2b4b46(0x1ed)][_0x2b4b46(0x1c5)](_0x2b09f1);}[_0x27f8f9(0x203)](_0x442668,_0x24f8d6,_0x3463cd,_0x4c9318){const _0x804c83=_0x27f8f9;this[_0x804c83(0x1d3)][_0x804c83(0x203)](_0x442668,_0x24f8d6,_0x3463cd,_0x4c9318);}[_0x27f8f9(0x1ce)](_0x2ab0b2){const _0x20dd27=_0x27f8f9;this[_0x20dd27(0x1d3)][_0x20dd27(0x1ce)](_0x2ab0b2);}[_0x27f8f9(0x1c6)](_0x2f208e=!0x1){const _0x5ae6d7=_0x27f8f9;this[_0x5ae6d7(0x1f4)][_0x5ae6d7(0x20a)](_0x2f208e);}[_0x27f8f9(0x211)](_0x3b812b){const _0x1a1c8=_0x27f8f9;this[_0x1a1c8(0x1f4)][_0x1a1c8(0x1fc)][_0x1a1c8(0x208)][_0x1a1c8(0x1fe)](),this[_0x1a1c8(0x1f4)][_0x1a1c8(0x1fc)][_0x1a1c8(0x208)][_0x1a1c8(0x1e9)]=_0x3b812b;}}class AIChatModelUnavailableMessageView extends _0x50a771{constructor(_0x3f46f1){const _0x123e49=_0x27f8f9;super(_0x3f46f1);const _0x337ab3=new _0x4fb718(_0x3f46f1);_0x337ab3[_0x123e49(0x1eb)]({'label':_0x2063fb(this[_0x123e49(0x1ff)],_0x123e49(0x1cd)),'withText':!0x0,'class':[_0x123e49(0x1d7)],'tooltip':''}),_0x337ab3[_0x123e49(0x1cb)](_0x123e49(0x212))['to'](this,_0x123e49(0x1f6)),this[_0x123e49(0x1ea)]({'tag':_0x123e49(0x1dc),'attributes':{'class':['ck',_0x123e49(0x1c9)]},'children':[{'tag':'p','children':[{'text':_0x2063fb(this[_0x123e49(0x1ff)],_0x123e49(0x1f3))+'\x20'},_0x337ab3]}]});}}
23
+ const _0x9a288a=_0x391f;(function(_0x44f71b,_0x32c2d1){const _0x34eaef=_0x391f,_0x4fc8ef=_0x44f71b();while(!![]){try{const _0x343bbe=parseInt(_0x34eaef(0xd3))/0x1*(-parseInt(_0x34eaef(0xdd))/0x2)+parseInt(_0x34eaef(0xd9))/0x3*(parseInt(_0x34eaef(0xb5))/0x4)+-parseInt(_0x34eaef(0x9f))/0x5*(-parseInt(_0x34eaef(0xaa))/0x6)+-parseInt(_0x34eaef(0x97))/0x7*(-parseInt(_0x34eaef(0xb7))/0x8)+-parseInt(_0x34eaef(0xb3))/0x9+parseInt(_0x34eaef(0xb4))/0xa+parseInt(_0x34eaef(0xbc))/0xb*(-parseInt(_0x34eaef(0xbf))/0xc);if(_0x343bbe===_0x32c2d1)break;else _0x4fc8ef['push'](_0x4fc8ef['shift']());}catch(_0x5c1bbb){_0x4fc8ef['push'](_0x4fc8ef['shift']());}}}(_0x1468,0xf1a1c));import{ButtonView as _0x5043a1,clickOutsideHandler as _0x599a90,View as _0x4e5b3c}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x2685d7}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0xf3541c}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x53f418,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x533e63}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x1092ed}from'./controls/aichatcontrolsloaderview.js';import{getTranslation as _0x4d3f92}from'../../aicore/utils/common-translations.js';import'../../../theme/aichat/aichat-controls.css';import'../../../theme/aichat/aichat-controls/prompt-input.css';import'../../../theme/aichat/aichat-controls/prompt-capabilities.css';import'../../../theme/aichat/aichat-controls/model-unavailable-message.css';import'../../../theme/aichat/aichat-controls/aichat-context-controls.css';function _0x391f(_0x29e130,_0x4da3ca){const _0x1468f0=_0x1468();return _0x391f=function(_0x391fd1,_0x161e45){_0x391fd1=_0x391fd1-0x8f;let _0x1d76bb=_0x1468f0[_0x391fd1];return _0x1d76bb;},_0x391f(_0x29e130,_0x4da3ca);}import'../../../theme/aichat/aichat-controls/aichat-context-chip.css';function _0x1468(){const _0x49fcc9=['61984ICJzYL','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','change:isLoading','clearConversationContextUI','_createLoaderView','66EGQtCk','div','setAddContextOptions','477672autuuz','form','ck-ai-chat-controls','setPromptInputValue','bindTemplate','low','ck-ai-chat-controls-disabled','fieldView','clearPendingContextUI','setTemplate','_createPromptCapabilitiesView','focus','value','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','sendUserMessage','_contextPanelView','ck-hidden','updateResourceState','_handlePromptInputFocus','selectModel','157HuNuVA','setModel','queryView','removeContextItem','setWebSearch','disableModelSelector','1138461tpAwjd','locale','addContextItem','setPlaceholderText','22048Tfqhrl','ck-ai-chat-controls-model-unavailable-message','delegate','startConversation','_createPromptInputView','_loaderView','set','ck-ai-chat-controls__start-new-chat-button','isDisabled','closeSourceResourceBalloon','element','_createContextPanelView','setConversationContext','1337OagkzV','setIsUploadInProgress','_modelUnavailableMessageView','setContextItemLoading','toggleReasoning','isModelAvailable','_promptInputView','setModelList','1855MQRdLH','clearCurrentContextItems','setReasoning','populateSourceResourceBalloon','bodyCollection','contextResourcesSearchInputVisibleFrom','clearConversationContextItems','isLoading','_promptCapabilitiesView','enableModelSelector','toggleWebSearch','20022YdVAkk','focusPromptInput','resetMessageInput','setInputPlaceholder','abortPromptStream','reset','_shouldRestorePromptInputFocus','addContextButtonView','execute','16051914QCepBZ','12660050joxZOJ','8AKGDUg','_createModelUnavailableMessageView'];_0x1468=function(){return _0x49fcc9;};return _0x1468();}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 _0x4e5b3c{[_0x9a288a(0xce)];[_0x9a288a(0x9d)];[_0x9a288a(0xa7)];[_0x9a288a(0x8f)];[_0x9a288a(0x99)];[_0x9a288a(0xb0)];constructor(_0x4186e4,_0x321091){const _0xf73863=_0x9a288a;super(_0x4186e4),this[_0xf73863(0xce)]=this[_0xf73863(0x95)](_0x4186e4,{'bodyCollection':_0x321091[_0xf73863(0xa3)],'searchInputVisibleFrom':_0x321091[_0xf73863(0xa4)]}),this[_0xf73863(0x9d)]=this[_0xf73863(0xe1)](_0x4186e4),this[_0xf73863(0xa7)]=this[_0xf73863(0xc9)](_0x4186e4),this[_0xf73863(0x8f)]=this[_0xf73863(0xbb)](_0x4186e4),this[_0xf73863(0x99)]=this[_0xf73863(0xb6)](_0x4186e4),this[_0xf73863(0xb0)]=!0x1,this[_0xf73863(0x9d)][_0xf73863(0xdf)](_0xf73863(0xcd))['to'](this),this[_0xf73863(0x8f)][_0xf73863(0xdf)](_0xf73863(0xae))['to'](this),this[_0xf73863(0xa7)][_0xf73863(0xdf)](_0xf73863(0xa9))['to'](this),this[_0xf73863(0xa7)][_0xf73863(0xdf)](_0xf73863(0x9b))['to'](this),this[_0xf73863(0xa7)][_0xf73863(0xdf)](_0xf73863(0xd2))['to'](this),this[_0xf73863(0xce)][_0xf73863(0xdf)](..._0x533e63)['to'](this),this[_0xf73863(0x90)](_0xf73863(0x9c),!0x0),this[_0xf73863(0x90)](_0xf73863(0x92),!0x1);const _0x8cd70e=this[_0xf73863(0xc3)];this[_0xf73863(0xc8)]({'tag':_0xf73863(0xc0),'attributes':{'class':['ck',_0xf73863(0xc1),_0x8cd70e['if'](_0xf73863(0x92),_0xf73863(0xc5))]},'children':[{'tag':_0xf73863(0xbd),'attributes':{'class':[_0x8cd70e['if'](_0xf73863(0xa6),_0xf73863(0xcf),_0x37f6a5=>_0x37f6a5||!this[_0xf73863(0x9c)]),_0x8cd70e['if'](_0xf73863(0x9c),_0xf73863(0xcf),_0x32a2b8=>!_0x32a2b8||this[_0xf73863(0xa6)])]},'children':[this[_0xf73863(0xce)],this[_0xf73863(0x9d)],this[_0xf73863(0xa7)]]},{'tag':_0xf73863(0xbd),'attributes':{'class':[_0x8cd70e['if'](_0xf73863(0xa6),_0xf73863(0xcf),_0x5eccc8=>!_0x5eccc8)]},'children':[this[_0xf73863(0x8f)]]},{'tag':_0xf73863(0xbd),'attributes':{'class':[_0x8cd70e['if'](_0xf73863(0x9c),_0xf73863(0xcf),_0x41a88c=>_0x41a88c)]},'children':[this[_0xf73863(0x99)]]}]}),_0x599a90({'emitter':this[_0xf73863(0x9d)],'activator':()=>this[_0xf73863(0xa6)],'contextElements':()=>[this[_0xf73863(0x94)]],'callback':()=>{const _0x3a8126=_0xf73863;this[_0x3a8126(0xb0)]=!0x1;}}),this['on'](_0xf73863(0xb9),this[_0xf73863(0xd1)],{'priority':_0xf73863(0xc4)});}[_0x9a288a(0x95)](_0x5289d5,_0x1432e5){return new _0x53f418(_0x5289d5,_0x1432e5);}[_0x9a288a(0xe1)](_0x4412b3){const _0x53f886=_0x9a288a;return new _0x2685d7(_0x4412b3,this[_0x53f886(0xce)][_0x53f886(0xb1)]);}[_0x9a288a(0xc9)](_0x1c9bec){return new _0xf3541c(_0x1c9bec);}[_0x9a288a(0xbb)](_0x176bda){return new _0x1092ed(_0x176bda);}[_0x9a288a(0xb6)](_0x5982d8){const _0x4d0949=_0x9a288a,_0x52095b=new AIChatModelUnavailableMessageView(_0x5982d8);return _0x52095b[_0x4d0949(0xdf)](_0x4d0949(0xe0))['to'](this),_0x52095b;}[_0x9a288a(0xd1)](_0xdde9d6,_0x54253d,_0x226905){const _0x318155=_0x9a288a;_0x226905?this[_0x318155(0xb0)]=!0x0:this[_0x318155(0xb0)]&&this[_0x318155(0x9d)][_0x318155(0xca)]();}[_0x9a288a(0xdb)](_0x40de66,_0x1e87cb){const _0x56dd58=_0x9a288a;this[_0x56dd58(0xce)][_0x56dd58(0xdb)](_0x40de66,_0x1e87cb);}[_0x9a288a(0xd6)](_0x1b0ef7){const _0x41de50=_0x9a288a;this[_0x41de50(0xce)][_0x41de50(0xd6)](_0x1b0ef7);}[_0x9a288a(0x9a)](_0x4785aa,_0x29355c){const _0x4adece=_0x9a288a;this[_0x4adece(0xce)][_0x4adece(0x9a)](_0x4785aa,_0x29355c);}[_0x9a288a(0x98)](_0x1fca8d){const _0x1a0804=_0x9a288a;this[_0x1a0804(0x9d)][_0x1a0804(0x98)](_0x1fca8d);}[_0x9a288a(0x96)](_0x19c61d){const _0x25c3e3=_0x9a288a;this[_0x25c3e3(0xce)][_0x25c3e3(0x96)](_0x19c61d);}[_0x9a288a(0xc7)](){const _0x297951=_0x9a288a;this[_0x297951(0xce)][_0x297951(0xa0)]();}[_0x9a288a(0xba)](){const _0x802908=_0x9a288a;this[_0x802908(0xce)][_0x802908(0xa5)]();}[_0x9a288a(0xd0)](_0x13eac2,_0x320ee6,_0x2c9d48){const _0x3ced3f=_0x9a288a;this[_0x3ced3f(0xce)][_0x3ced3f(0xd0)](_0x13eac2,_0x320ee6,_0x2c9d48);}[_0x9a288a(0xd7)](_0x3f8563){const _0x157a33=_0x9a288a;this[_0x157a33(0xa7)][_0x157a33(0xd7)](_0x3f8563);}[_0x9a288a(0xa1)](_0x1ce596){const _0x592741=_0x9a288a;this[_0x592741(0xa7)][_0x592741(0xa1)](_0x1ce596);}[_0x9a288a(0xac)](){const _0xecc99e=_0x9a288a;this[_0xecc99e(0x9d)][_0xecc99e(0xaf)]();}[_0x9a288a(0xbe)](_0x3ada1a){const _0x58cce5=_0x9a288a;this[_0x58cce5(0xce)][_0x58cce5(0xbe)](_0x3ada1a);}[_0x9a288a(0xad)](_0x1ec410){const _0x2e6f88=_0x9a288a;this[_0x2e6f88(0x9d)][_0x2e6f88(0xdc)](_0x1ec410);}[_0x9a288a(0x9e)](_0x363fcd,_0x109e7c){const _0x245de5=_0x9a288a;this[_0x245de5(0xa7)][_0x245de5(0x9e)](_0x363fcd,_0x109e7c);}[_0x9a288a(0xd4)](_0x408ad9){const _0x3bf8a2=_0x9a288a;_0x408ad9?(this[_0x3bf8a2(0x9c)]=!0x0,this[_0x3bf8a2(0xa7)][_0x3bf8a2(0xd4)](_0x408ad9)):this[_0x3bf8a2(0x9c)]=!0x1;}[_0x9a288a(0xa8)](){const _0xad9e10=_0x9a288a;this[_0xad9e10(0xa7)][_0xad9e10(0xa8)]();}[_0x9a288a(0xd8)](_0x7535a5){const _0x232d86=_0x9a288a;this[_0x232d86(0xa7)][_0x232d86(0xd8)](_0x7535a5);}[_0x9a288a(0xa2)](_0x4ccc98,_0x72684d,_0x43807c,_0x52a476){const _0x3e057a=_0x9a288a;this[_0x3e057a(0xce)][_0x3e057a(0xa2)](_0x4ccc98,_0x72684d,_0x43807c,_0x52a476);}[_0x9a288a(0x93)](_0x1373b0){const _0x3afe98=_0x9a288a;this[_0x3afe98(0xce)][_0x3afe98(0x93)](_0x1373b0);}[_0x9a288a(0xab)](_0x544681=!0x1){const _0x3a6af1=_0x9a288a;this[_0x3a6af1(0x9d)][_0x3a6af1(0xca)](_0x544681);}[_0x9a288a(0xc2)](_0x1775ba){const _0x548876=_0x9a288a;this[_0x548876(0x9d)][_0x548876(0xd5)][_0x548876(0xc6)][_0x548876(0xaf)](),this[_0x548876(0x9d)][_0x548876(0xd5)][_0x548876(0xc6)][_0x548876(0xcb)]=_0x1775ba;}}class AIChatModelUnavailableMessageView extends _0x4e5b3c{constructor(_0x3a2cf8){const _0x59693d=_0x9a288a;super(_0x3a2cf8);const _0x102cf3=new _0x5043a1(_0x3a2cf8);_0x102cf3[_0x59693d(0x90)]({'label':_0x4d3f92(this[_0x59693d(0xda)],_0x59693d(0xb8)),'withText':!0x0,'class':[_0x59693d(0x91)],'tooltip':''}),_0x102cf3[_0x59693d(0xdf)](_0x59693d(0xb2))['to'](this,_0x59693d(0xe0)),this[_0x59693d(0xc8)]({'tag':_0x59693d(0xbd),'attributes':{'class':['ck',_0x59693d(0xde)]},'children':[{'tag':'p','children':[{'text':_0x4d3f92(this[_0x59693d(0xda)],_0x59693d(0xcc))+'\x20'},_0x102cf3]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2ce283=_0x4034;(function(_0x5e9afb,_0x388881){const _0x3e4133=_0x4034,_0x2d812c=_0x5e9afb();while(!![]){try{const _0x43289b=parseInt(_0x3e4133(0xb1))/0x1*(-parseInt(_0x3e4133(0xe4))/0x2)+parseInt(_0x3e4133(0xe7))/0x3*(-parseInt(_0x3e4133(0xb7))/0x4)+parseInt(_0x3e4133(0xe1))/0x5+parseInt(_0x3e4133(0xb0))/0x6+-parseInt(_0x3e4133(0xb9))/0x7*(parseInt(_0x3e4133(0xbb))/0x8)+parseInt(_0x3e4133(0xa5))/0x9*(-parseInt(_0x3e4133(0xc1))/0xa)+parseInt(_0x3e4133(0xe8))/0xb;if(_0x43289b===_0x388881)break;else _0x2d812c['push'](_0x2d812c['shift']());}catch(_0x4de508){_0x2d812c['push'](_0x2d812c['shift']());}}}(_0x1552,0x2eb01));import{CKEditorError as _0x44f38d,logWarning as _0x15c801,scrollAncestorsToShowTarget as _0x3aa817}from'ckeditor5/src/utils.js';import{View as _0x351ce8}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x31f160}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x42f662}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x2633d1}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0xf8d01f}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x40ea8b}from'./feed/aichatfeederroritemview.js';function _0x4034(_0x37c349,_0x4ab1b4){const _0x15526a=_0x1552();return _0x4034=function(_0x4034e8,_0xf3b95e){_0x4034e8=_0x4034e8-0x95;let _0x1c8639=_0x15526a[_0x4034e8];return _0x1c8639;},_0x4034(_0x37c349,_0x4ab1b4);}import{AIChatFeedInteractionHeaderView as _0x3be26a}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x1793f6}from'../../aicore/utils/scrollmanager.js';import{AISkeletonView as _0x215bd2,SKELETON_DEFINITIONS as _0x10470c}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x4e54af}from'../../aicore/ui/aispinner.js';import{AIChatFeedCustomElementView as _0x47e7cd}from'./feed/aichatfeedcustomelementview.js';function _0x1552(){const _0x3ecaa1=['startAutoScroll','remove','248544uoYTvh','4DcSLFg','children','element','updateSources','ai-chat-feed-view-item-not-found','ck-ai-chat__loader-text','20eUjqPS','custom-element','92421ivyKxm','updateSuggestionPartState','16ZeCqMQ','forEach','setLoadingMessage','isVisible','interaction-header','_createLoaderChildren','317290Yafhhq','getPartView','removeItem','isTrackChangesOn','markItemAsDone','div','getItemIds','destroy','_createFeedItems','ck-hidden','updateReplyItem','_createTemplateChildren','isLoadingSkeletonVisible','extendTemplate','setPartActive','aiFeed','span','add','_setupTemplate','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','createCollection','ai-reply','bind','stopAutoScroll','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','ck-ai-chat__loader','includes','clear','setSuggestionPartActive','_createFeedLoader','toggleLoadingSkeleton','ai-chat-feed-view-item-not-a-reply-item','196665QRWLeS','loadingMessage','start','83478aqXtQi','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','markAsDone','37419UTxJqp','5424309KtAunF','updateWebSources','map','ai-chat-feed-view-item-not-a-suggestion-item','bindTemplate','delegate','updateContent','render','find','stop','_createSkeletonLoader','hasItem','set','addItem','updatePartState','ai-suggestion-reply','filter','parentElement','user-message','updateSuggestionItem','ck-ai-chat__feed__items','ck-ai-chat__feed','36CAAMot','locale','isPending','options','scrollToSuggestion','_bodyCollection','scrollManager','setTemplate','getItemById'];_0x1552=function(){return _0x3ecaa1;};return _0x1552();}import'../../../theme/aichat/aichatfeed.css';export class AIChatFeedView extends _0x351ce8{[_0x2ce283(0xb2)];[_0x2ce283(0xab)];[_0x2ce283(0xaa)];constructor(_0x4bf572,_0x1e7c27){const _0x2171a4=_0x2ce283;super(_0x4bf572),this[_0x2171a4(0xaa)]=_0x1e7c27,this[_0x2171a4(0x9b)](_0x2171a4(0xa7),!0x1),this[_0x2171a4(0x9b)](_0x2171a4(0xe2),''),this[_0x2171a4(0x9b)](_0x2171a4(0xcd),!0x1),this[_0x2171a4(0x9b)](_0x2171a4(0xc4),!0x1),this[_0x2171a4(0xb2)]=this[_0x2171a4(0xd5)](),this[_0x2171a4(0xb2)][_0x2171a4(0xed)](..._0x31f160)['to'](this),this[_0x2171a4(0xd3)]();}[_0x2ce283(0x96)](){const _0x11419f=_0x2ce283;super[_0x11419f(0x96)](),this[_0x11419f(0xab)]=new _0x1793f6(this[_0x11419f(0xb3)]);}[_0x2ce283(0xc8)](){const _0x4374a7=_0x2ce283;super[_0x4374a7(0xc8)](),this[_0x4374a7(0xab)][_0x4374a7(0xc8)]();}[_0x2ce283(0xdc)](){const _0x3a7fc0=_0x2ce283;this[_0x3a7fc0(0xb2)][_0x3a7fc0(0xdc)]();}[_0x2ce283(0x9c)](_0x15b204,_0x57ed26){const _0x358544=_0x2ce283;let _0x1f960c;return _0x358544(0xd6)===_0x15b204?_0x1f960c=new _0x2633d1(this[_0x358544(0xa6)],_0x57ed26,this[_0x358544(0xaa)]):_0x358544(0x9e)===_0x15b204?(_0x1f960c=new _0x42f662(this[_0x358544(0xa6)],_0x57ed26,this[_0x358544(0xaa)]),_0x1f960c[_0x358544(0xd7)](_0x358544(0xc4))['to'](this)):_0x1f960c=_0x358544(0xa1)===_0x15b204?new _0xf8d01f(this[_0x358544(0xa6)],_0x57ed26,this[_0x358544(0xaa)]):_0x358544(0xbf)===_0x15b204?new _0x3be26a(this[_0x358544(0xa6)],_0x57ed26):_0x358544(0xb8)===_0x15b204?new _0x47e7cd(_0x57ed26):new _0x40ea8b(_0x57ed26),this[_0x358544(0xb2)][_0x358544(0xd2)](_0x1f960c),_0x1f960c;}async[_0x2ce283(0xcb)]({id:_0x536bb2,parsedContent:_0x2e3a8e,renderingStrategy:_0x3ca031,abortSignal:_0x4fcf77}){const _0x43cad1=_0x2ce283,_0x19026c=this[_0x43cad1(0xad)](_0x536bb2);if(!(_0x19026c instanceof _0x2633d1))throw new _0x44f38d(_0x43cad1(0xe0),null,{'itemView':_0x19026c,'id':_0x536bb2,'parsedContent':_0x2e3a8e});await _0x19026c[_0x43cad1(0x95)]({'parsedContent':_0x2e3a8e,'renderingStrategy':_0x3ca031,'abortSignal':_0x4fcf77});}async[_0x2ce283(0xe9)](_0x1eeadd,_0x1c1e07){const _0x370054=_0x2ce283,_0x22cb5f=this[_0x370054(0xad)](_0x1eeadd);if(_0x22cb5f instanceof _0x42f662)_0x22cb5f[_0x370054(0xb4)](_0x1c1e07);else{if(!(_0x22cb5f instanceof _0x2633d1))throw new _0x44f38d(_0x370054(0xd4),null,{'itemView':_0x22cb5f,'id':_0x1eeadd,'sources':_0x1c1e07});_0x22cb5f[_0x370054(0xb4)](_0x1c1e07);}}async[_0x2ce283(0xa2)]({id:_0xca968e,parts:_0x29e39d,renderingStrategy:_0x1b71ac,abortSignal:_0x5c1dc0}){const _0x5cfd9c=_0x2ce283,_0x56cc6a=this[_0x5cfd9c(0xad)](_0xca968e);if(!(_0x56cc6a instanceof _0x42f662))throw new _0x44f38d(_0x5cfd9c(0xeb),null,{'itemView':_0x56cc6a,'id':_0xca968e,'parts':_0x29e39d});await _0x56cc6a[_0x5cfd9c(0x95)]({'parts':_0x29e39d,'renderingStrategy':_0x1b71ac,'abortSignal':_0x5c1dc0});}[_0x2ce283(0xba)]({id:_0x1d1f2f,index:_0x3ed042,state:_0x3bb84f}){const _0x51d1bc=_0x2ce283,_0x55af3d=this[_0x51d1bc(0xad)](_0x1d1f2f);if(!(_0x55af3d instanceof _0x42f662))throw new _0x44f38d(_0x51d1bc(0xeb),this,{'id':_0x1d1f2f});_0x55af3d[_0x51d1bc(0x9d)](_0x3ed042,_0x3bb84f);}[_0x2ce283(0xdd)]({id:_0x33b2f9,index:_0x2908a6,isActive:_0x33833c}){const _0x48bcda=_0x2ce283,_0xc1f384=this[_0x48bcda(0xad)](_0x33b2f9);if(!(_0xc1f384 instanceof _0x42f662))throw new _0x44f38d(_0x48bcda(0xeb),this,{'id':_0x33b2f9});this[_0x48bcda(0xb2)][_0x48bcda(0x9f)](_0x183716=>_0x183716 instanceof _0x42f662)[_0x48bcda(0xbc)](_0x7b6b2e=>{const _0x9f70da=_0x48bcda;_0x7b6b2e[_0x9f70da(0xcf)](!0x1);}),_0xc1f384[_0x48bcda(0xcf)](_0x2908a6,_0x33833c);}[_0x2ce283(0xc5)](_0x3d393f){const _0xb9f119=_0x2ce283;this[_0xb9f119(0xad)](_0x3d393f)[_0xb9f119(0xe6)]();}[_0x2ce283(0xc7)](){const _0x3065b0=_0x2ce283;return this[_0x3065b0(0xb2)][_0x3065b0(0xea)](_0x4ce86b=>_0x4ce86b[_0x3065b0(0xa8)]['id']);}[_0x2ce283(0xc3)](_0x1fa7d3){const _0x5c69bb=_0x2ce283;this[_0x5c69bb(0xb2)][_0x5c69bb(0xaf)](this[_0x5c69bb(0xad)](_0x1fa7d3));}[_0x2ce283(0x9a)](_0x1de027){const _0x27634e=_0x2ce283;return!!this[_0x27634e(0xb2)][_0x27634e(0x97)](_0x297b12=>_0x297b12[_0x27634e(0xa8)]['id'][_0x27634e(0xdb)](_0x1de027));}[_0x2ce283(0xa9)](_0x2cd701,_0x2e0771){const _0x5eb86e=_0x2ce283,_0x45bc81=this[_0x5eb86e(0xad)](_0x2cd701);if(!(_0x45bc81 instanceof _0x42f662))return void _0x15c801(_0x5eb86e(0xd9),{'replyId':_0x2cd701,'partIndex':_0x2e0771});const _0x1971f8=_0x45bc81[_0x5eb86e(0xc2)](_0x2e0771);_0x1971f8?_0x3aa817(_0x1971f8[_0x5eb86e(0xb3)],0x14,this[_0x5eb86e(0xb3)][_0x5eb86e(0xa0)],!0x0,!0x0):_0x15c801(_0x5eb86e(0xe5),{'replyId':_0x2cd701,'partIndex':_0x2e0771});}[_0x2ce283(0xd3)](){const _0x19f990=_0x2ce283;this[_0x19f990(0xac)]({'tag':_0x19f990(0xc6),'attributes':{'class':['ck',_0x19f990(0xa4)]},'children':this[_0x19f990(0xcc)]()});}[_0x2ce283(0xcc)](){const _0x1ea5c0=_0x2ce283,_0x1d6c54=this[_0x1ea5c0(0x99)]();return[this[_0x1ea5c0(0xc9)](),_0x1d6c54,this[_0x1ea5c0(0xde)]()];}[_0x2ce283(0x99)](){const _0x31f4fa=_0x2ce283,_0x31f9c7=new _0x215bd2(this[_0x31f4fa(0xa6)],_0x10470c[_0x31f4fa(0xd0)]);return _0x31f9c7[_0x31f4fa(0xce)]({'attributes':{'class':[this[_0x31f4fa(0xec)]['if'](_0x31f4fa(0xcd),_0x31f4fa(0xca),_0x128c14=>!_0x128c14)]}}),_0x31f9c7;}[_0x2ce283(0xc9)](){const _0x18b230=_0x2ce283,_0x5c094c=new _0x351ce8(this[_0x18b230(0xa6)]);return _0x5c094c[_0x18b230(0xac)]({'tag':_0x18b230(0xc6),'attributes':{'class':['ck',_0x18b230(0xa3),this[_0x18b230(0xec)]['if'](_0x18b230(0xcd),_0x18b230(0xca))]},'children':this[_0x18b230(0xb2)]}),_0x5c094c;}[_0x2ce283(0xde)](){const _0x502214=_0x2ce283,_0x5b38ce=new _0x351ce8(this[_0x502214(0xa6)]);return _0x5b38ce[_0x502214(0xac)]({'tag':_0x502214(0xc6),'attributes':{'class':['ck',_0x502214(0xda),this[_0x502214(0xec)]['if'](_0x502214(0xa7),_0x502214(0xca),_0x15521d=>!_0x15521d)]},'children':this[_0x502214(0xc0)]()}),_0x5b38ce;}[_0x2ce283(0xc0)](){const _0x5d2582=_0x2ce283,_0x46d8f3=new _0x4e54af();return _0x46d8f3[_0x5d2582(0xbe)]=!0x0,[_0x46d8f3,{'tag':_0x5d2582(0xd1),'attributes':{'class':['ck',_0x5d2582(0xb6)]},'children':[{'text':this[_0x5d2582(0xec)]['to'](_0x5d2582(0xe2))}]}];}[_0x2ce283(0xad)](_0xd7551c){const _0x3daa9d=_0x2ce283,_0x4d64af=this[_0x3daa9d(0xb2)][_0x3daa9d(0x97)](_0x143cde=>_0x143cde[_0x3daa9d(0xa8)]['id'][_0x3daa9d(0xdb)](_0xd7551c));if(!_0x4d64af)throw new _0x44f38d(_0x3daa9d(0xb5),this,{'id':_0xd7551c});return _0x4d64af;}[_0x2ce283(0xbd)](_0xc811de){const _0x445c8f=_0x2ce283;this[_0x445c8f(0x9b)](_0x445c8f(0xe2),_0xc811de);}[_0x2ce283(0xdf)](_0x17aae2){const _0x50f2fc=_0x2ce283;this[_0x50f2fc(0x9b)](_0x50f2fc(0xcd),_0x17aae2);}[_0x2ce283(0xae)](){const _0xae1ffd=_0x2ce283;this[_0xae1ffd(0xab)][_0xae1ffd(0xe3)]();}[_0x2ce283(0xd8)](){const _0x2bfed4=_0x2ce283;this[_0x2bfed4(0xab)][_0x2bfed4(0x98)]();}}
23
+ const _0x3b9be5=_0x131c;(function(_0x6c0267,_0x20f899){const _0x598975=_0x131c,_0x59efbf=_0x6c0267();while(!![]){try{const _0x770474=parseInt(_0x598975(0x1d7))/0x1+-parseInt(_0x598975(0x206))/0x2*(parseInt(_0x598975(0x1e8))/0x3)+-parseInt(_0x598975(0x1f5))/0x4+parseInt(_0x598975(0x217))/0x5*(-parseInt(_0x598975(0x227))/0x6)+-parseInt(_0x598975(0x1d9))/0x7+-parseInt(_0x598975(0x1ef))/0x8*(parseInt(_0x598975(0x20b))/0x9)+-parseInt(_0x598975(0x202))/0xa*(-parseInt(_0x598975(0x1eb))/0xb);if(_0x770474===_0x20f899)break;else _0x59efbf['push'](_0x59efbf['shift']());}catch(_0x39e59c){_0x59efbf['push'](_0x59efbf['shift']());}}}(_0x5a3c,0xcfb1f));import{CKEditorError as _0x272618,logWarning as _0x36ca72,scrollAncestorsToShowTarget as _0x3cadc9}from'ckeditor5/src/utils.js';import{View as _0x2dffeb}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x3c982f}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x52e608}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x2b2c4e}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x96c57b}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x213170}from'./feed/aichatfeederroritemview.js';function _0x5a3c(){const _0x4c0077=['hasItem','ck-ai-chat__loader-text','ai-chat-feed-view-item-not-found','delegate','bind','destroy','addItem','aiFeed','_createFeedLoader','interaction-header','options','2670aUSajl','getItemIds','startAutoScroll','updateContent','504710duURGz','scrollManager','start','ai-suggestion-reply','ai-chat-feed-view-item-not-a-reply-item','13214763oYeaOk','ck-ai-chat__feed__items','setLoadingMessage','getPartView','map','extendTemplate','removeItem','span','clear','children','_createSkeletonLoader','_setupTemplate','877755sqeHxK','setPartActive','updateWebSources','element','isPending','ck-ai-chat__feed','scrollToSuggestion','updatePartState','set','_bodyCollection','stop','updateSources','forEach','getItemById','filter','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','6JwudhW','parentElement','isTrackChangesOn','ai-chat-feed-view-item-not-a-suggestion-item','setTemplate','updateReplyItem','bindTemplate','render','isVisible','266777osQlaJ','loadingMessage','938889jMIfNz','markItemAsDone','add','ck-hidden','setSuggestionPartActive','includes','markAsDone','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','stopAutoScroll','updateSuggestionPartState','user-message','locale','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','div','updateSuggestionItem','3gtRVnh','remove','createCollection','147444DHHRRZ','toggleLoadingSkeleton','_createFeedItems','_createLoaderChildren','8WSPipI','isLoadingSkeletonVisible','custom-element','_createTemplateChildren','find','ai-reply','3858344pdaWzW','ck-ai-chat__loader'];_0x5a3c=function(){return _0x4c0077;};return _0x5a3c();}function _0x131c(_0x5c46b9,_0x505fc8){const _0x5a3c9a=_0x5a3c();return _0x131c=function(_0x131c92,_0x82d260){_0x131c92=_0x131c92-0x1d2;let _0x1a7dd3=_0x5a3c9a[_0x131c92];return _0x1a7dd3;},_0x131c(_0x5c46b9,_0x505fc8);}import{AIChatFeedInteractionHeaderView as _0x2ad5ff}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x242c89}from'../../aicore/utils/scrollmanager.js';import{AISkeletonView as _0x5c9f06,SKELETON_DEFINITIONS as _0x25fb14}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x13d493}from'../../aicore/ui/aispinner.js';import{AIChatFeedCustomElementView as _0x11477c}from'./feed/aichatfeedcustomelementview.js';import'../../../theme/aichat/aichatfeed.css';export class AIChatFeedView extends _0x2dffeb{[_0x3b9be5(0x214)];[_0x3b9be5(0x207)];[_0x3b9be5(0x220)];constructor(_0x232541,_0x4f01a0){const _0x414a90=_0x3b9be5;super(_0x232541),this[_0x414a90(0x220)]=_0x4f01a0,this[_0x414a90(0x21f)](_0x414a90(0x21b),!0x1),this[_0x414a90(0x21f)](_0x414a90(0x1d8),''),this[_0x414a90(0x21f)](_0x414a90(0x1f0),!0x1),this[_0x414a90(0x21f)](_0x414a90(0x229),!0x1),this[_0x414a90(0x214)]=this[_0x414a90(0x1ea)](),this[_0x414a90(0x214)][_0x414a90(0x1fa)](..._0x3c982f)['to'](this),this[_0x414a90(0x216)]();}[_0x3b9be5(0x1d5)](){const _0x207c10=_0x3b9be5;super[_0x207c10(0x1d5)](),this[_0x207c10(0x207)]=new _0x242c89(this[_0x207c10(0x21a)]);}[_0x3b9be5(0x1fc)](){const _0x47a081=_0x3b9be5;super[_0x47a081(0x1fc)](),this[_0x47a081(0x207)][_0x47a081(0x1fc)]();}[_0x3b9be5(0x213)](){const _0x22c149=_0x3b9be5;this[_0x22c149(0x214)][_0x22c149(0x213)]();}[_0x3b9be5(0x1fd)](_0x2eac5c,_0x201ea7){const _0x30d5e7=_0x3b9be5;let _0x541877;return _0x30d5e7(0x1f4)===_0x2eac5c?_0x541877=new _0x2b2c4e(this[_0x30d5e7(0x1e4)],_0x201ea7,this[_0x30d5e7(0x220)]):_0x30d5e7(0x209)===_0x2eac5c?(_0x541877=new _0x52e608(this[_0x30d5e7(0x1e4)],_0x201ea7,this[_0x30d5e7(0x220)]),_0x541877[_0x30d5e7(0x1fb)](_0x30d5e7(0x229))['to'](this)):_0x541877=_0x30d5e7(0x1e3)===_0x2eac5c?new _0x96c57b(this[_0x30d5e7(0x1e4)],_0x201ea7,this[_0x30d5e7(0x220)]):_0x30d5e7(0x200)===_0x2eac5c?new _0x2ad5ff(this[_0x30d5e7(0x1e4)],_0x201ea7):_0x30d5e7(0x1f1)===_0x2eac5c?new _0x11477c(_0x201ea7):new _0x213170(_0x201ea7),this[_0x30d5e7(0x214)][_0x30d5e7(0x1db)](_0x541877),_0x541877;}async[_0x3b9be5(0x1d3)]({id:_0x15c539,parsedContent:_0x7d6edd,renderingStrategy:_0x1d8c6e,abortSignal:_0x187c61}){const _0x216f68=_0x3b9be5,_0xc43219=this[_0x216f68(0x224)](_0x15c539);if(!(_0xc43219 instanceof _0x2b2c4e))throw new _0x272618(_0x216f68(0x20a),null,{'itemView':_0xc43219,'id':_0x15c539,'parsedContent':_0x7d6edd});await _0xc43219[_0x216f68(0x205)]({'parsedContent':_0x7d6edd,'renderingStrategy':_0x1d8c6e,'abortSignal':_0x187c61});}async[_0x3b9be5(0x219)](_0x49aaf4,_0xb3d2e2){const _0x5b6d0b=_0x3b9be5,_0x365672=this[_0x5b6d0b(0x224)](_0x49aaf4);if(_0x365672 instanceof _0x52e608)_0x365672[_0x5b6d0b(0x222)](_0xb3d2e2);else{if(!(_0x365672 instanceof _0x2b2c4e))throw new _0x272618(_0x5b6d0b(0x1e0),null,{'itemView':_0x365672,'id':_0x49aaf4,'sources':_0xb3d2e2});_0x365672[_0x5b6d0b(0x222)](_0xb3d2e2);}}async[_0x3b9be5(0x1e7)]({id:_0x25cb87,parts:_0x4e6db8,renderingStrategy:_0x56e804,abortSignal:_0x43eb6c}){const _0x39f7e4=_0x3b9be5,_0x18ef87=this[_0x39f7e4(0x224)](_0x25cb87);if(!(_0x18ef87 instanceof _0x52e608))throw new _0x272618(_0x39f7e4(0x22a),null,{'itemView':_0x18ef87,'id':_0x25cb87,'parts':_0x4e6db8});await _0x18ef87[_0x39f7e4(0x205)]({'parts':_0x4e6db8,'renderingStrategy':_0x56e804,'abortSignal':_0x43eb6c});}[_0x3b9be5(0x1e2)]({id:_0x20e6be,index:_0x4e2bcb,state:_0x46042a}){const _0x776531=_0x3b9be5,_0x4747c6=this[_0x776531(0x224)](_0x20e6be);if(!(_0x4747c6 instanceof _0x52e608))throw new _0x272618(_0x776531(0x22a),this,{'id':_0x20e6be});_0x4747c6[_0x776531(0x21e)](_0x4e2bcb,_0x46042a);}[_0x3b9be5(0x1dd)]({id:_0x129fdc,index:_0x1c5255,isActive:_0x27ca5f}){const _0x24cd98=_0x3b9be5,_0xdc29ea=this[_0x24cd98(0x224)](_0x129fdc);if(!(_0xdc29ea instanceof _0x52e608))throw new _0x272618(_0x24cd98(0x22a),this,{'id':_0x129fdc});this[_0x24cd98(0x214)][_0x24cd98(0x225)](_0xc207fc=>_0xc207fc instanceof _0x52e608)[_0x24cd98(0x223)](_0x4da7df=>{const _0x2dc4f1=_0x24cd98;_0x4da7df[_0x2dc4f1(0x218)](!0x1);}),_0xdc29ea[_0x24cd98(0x218)](_0x1c5255,_0x27ca5f);}[_0x3b9be5(0x1da)](_0x257563){const _0x5bc4ee=_0x3b9be5;this[_0x5bc4ee(0x224)](_0x257563)[_0x5bc4ee(0x1df)]();}[_0x3b9be5(0x203)](){const _0x4dfedf=_0x3b9be5;return this[_0x4dfedf(0x214)][_0x4dfedf(0x20f)](_0x358e46=>_0x358e46[_0x4dfedf(0x201)]['id']);}[_0x3b9be5(0x211)](_0x46eeac){const _0x3774c7=_0x3b9be5;this[_0x3774c7(0x214)][_0x3774c7(0x1e9)](this[_0x3774c7(0x224)](_0x46eeac));}[_0x3b9be5(0x1f7)](_0x435095){const _0x5a78ec=_0x3b9be5;return!!this[_0x5a78ec(0x214)][_0x5a78ec(0x1f3)](_0x3dc856=>_0x3dc856[_0x5a78ec(0x201)]['id'][_0x5a78ec(0x1de)](_0x435095));}[_0x3b9be5(0x21d)](_0x178eb8,_0x430a73){const _0x3a4362=_0x3b9be5,_0x38f73d=this[_0x3a4362(0x224)](_0x178eb8);if(!(_0x38f73d instanceof _0x52e608))return void _0x36ca72(_0x3a4362(0x226),{'replyId':_0x178eb8,'partIndex':_0x430a73});const _0xd3932b=_0x38f73d[_0x3a4362(0x20e)](_0x430a73);_0xd3932b?_0x3cadc9(_0xd3932b[_0x3a4362(0x21a)],0x14,this[_0x3a4362(0x21a)][_0x3a4362(0x228)],!0x0,!0x0):_0x36ca72(_0x3a4362(0x1e5),{'replyId':_0x178eb8,'partIndex':_0x430a73});}[_0x3b9be5(0x216)](){const _0x34ee97=_0x3b9be5;this[_0x34ee97(0x1d2)]({'tag':_0x34ee97(0x1e6),'attributes':{'class':['ck',_0x34ee97(0x21c)]},'children':this[_0x34ee97(0x1f2)]()});}[_0x3b9be5(0x1f2)](){const _0x4f4b5a=_0x3b9be5,_0x1341de=this[_0x4f4b5a(0x215)]();return[this[_0x4f4b5a(0x1ed)](),_0x1341de,this[_0x4f4b5a(0x1ff)]()];}[_0x3b9be5(0x215)](){const _0x1c0da1=_0x3b9be5,_0x16cad6=new _0x5c9f06(this[_0x1c0da1(0x1e4)],_0x25fb14[_0x1c0da1(0x1fe)]);return _0x16cad6[_0x1c0da1(0x210)]({'attributes':{'class':[this[_0x1c0da1(0x1d4)]['if'](_0x1c0da1(0x1f0),_0x1c0da1(0x1dc),_0x4e6b37=>!_0x4e6b37)]}}),_0x16cad6;}[_0x3b9be5(0x1ed)](){const _0x1ae42b=_0x3b9be5,_0x13624b=new _0x2dffeb(this[_0x1ae42b(0x1e4)]);return _0x13624b[_0x1ae42b(0x1d2)]({'tag':_0x1ae42b(0x1e6),'attributes':{'class':['ck',_0x1ae42b(0x20c),this[_0x1ae42b(0x1d4)]['if'](_0x1ae42b(0x1f0),_0x1ae42b(0x1dc))]},'children':this[_0x1ae42b(0x214)]}),_0x13624b;}[_0x3b9be5(0x1ff)](){const _0x37ad79=_0x3b9be5,_0x7acb80=new _0x2dffeb(this[_0x37ad79(0x1e4)]);return _0x7acb80[_0x37ad79(0x1d2)]({'tag':_0x37ad79(0x1e6),'attributes':{'class':['ck',_0x37ad79(0x1f6),this[_0x37ad79(0x1d4)]['if'](_0x37ad79(0x21b),_0x37ad79(0x1dc),_0x136089=>!_0x136089)]},'children':this[_0x37ad79(0x1ee)]()}),_0x7acb80;}[_0x3b9be5(0x1ee)](){const _0x2f3fca=_0x3b9be5,_0x3944d6=new _0x13d493();return _0x3944d6[_0x2f3fca(0x1d6)]=!0x0,[_0x3944d6,{'tag':_0x2f3fca(0x212),'attributes':{'class':['ck',_0x2f3fca(0x1f8)]},'children':[{'text':this[_0x2f3fca(0x1d4)]['to'](_0x2f3fca(0x1d8))}]}];}[_0x3b9be5(0x224)](_0x58cee8){const _0x4d19f8=_0x3b9be5,_0x2877c3=this[_0x4d19f8(0x214)][_0x4d19f8(0x1f3)](_0x2118d7=>_0x2118d7[_0x4d19f8(0x201)]['id'][_0x4d19f8(0x1de)](_0x58cee8));if(!_0x2877c3)throw new _0x272618(_0x4d19f8(0x1f9),this,{'id':_0x58cee8});return _0x2877c3;}[_0x3b9be5(0x20d)](_0x5345b7){const _0xc08852=_0x3b9be5;this[_0xc08852(0x21f)](_0xc08852(0x1d8),_0x5345b7);}[_0x3b9be5(0x1ec)](_0x5e7f7){const _0x432f57=_0x3b9be5;this[_0x432f57(0x21f)](_0x432f57(0x1f0),_0x5e7f7);}[_0x3b9be5(0x204)](){const _0x20ffda=_0x3b9be5;this[_0x20ffda(0x207)][_0x20ffda(0x208)]();}[_0x3b9be5(0x1e1)](){const _0x28f684=_0x3b9be5;this[_0x28f684(0x207)][_0x28f684(0x221)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x15ea63=_0x3653;(function(_0x1543b8,_0x70830c){const _0xa2442c=_0x3653,_0x11ef5b=_0x1543b8();while(!![]){try{const _0x1ccbe2=-parseInt(_0xa2442c(0xa1))/0x1*(-parseInt(_0xa2442c(0x96))/0x2)+parseInt(_0xa2442c(0x94))/0x3*(parseInt(_0xa2442c(0xa2))/0x4)+-parseInt(_0xa2442c(0x9b))/0x5*(-parseInt(_0xa2442c(0x97))/0x6)+parseInt(_0xa2442c(0xa7))/0x7+parseInt(_0xa2442c(0x9a))/0x8+-parseInt(_0xa2442c(0x91))/0x9*(parseInt(_0xa2442c(0xa8))/0xa)+parseInt(_0xa2442c(0xaa))/0xb*(-parseInt(_0xa2442c(0x92))/0xc);if(_0x1ccbe2===_0x70830c)break;else _0x11ef5b['push'](_0x11ef5b['shift']());}catch(_0x4a7a4d){_0x11ef5b['push'](_0x11ef5b['shift']());}}}(_0x2218,0xba89a));import{ButtonView as _0x352f36,FormHeaderView as _0x39fd1a}from'ckeditor5/src/ui.js';import{IconPlus as _0x53e3f1,IconAIChat as _0x2ff259}from'ckeditor5/src/icons.js';import{getTranslation as _0x3be01b}from'../../aicore/utils/common-translations.js';function _0x2218(){const _0x21a1c0=['6MxaNPg','6007182GcrvzG','conversationStartButton','resizeButton','7191864NnordH','5sFSGWK','startConversation','AI_CHAT_HEADING','locale','execute','_createStartConversationButton','173101hWeozD','66748BhXoto','ck-ai-chat__start-conversation','AI_CHAT_LABEL_NEW_CHAT','isMaximized','set','2715188rhzwPG','14446410lvBUVS','children','10072931prRdDg','fire','9zyEYWt','12bdhJuB','ck-ai-header\x20ck-ai-header_chat','57IvxNVh','add'];_0x2218=function(){return _0x21a1c0;};return _0x2218();}import{createResizeButton as _0x219427}from'../../aicore/utils/createresizebutton.js';function _0x3653(_0x5c5337,_0x481f7f){const _0x221818=_0x2218();return _0x3653=function(_0x3653cf,_0x5b4de1){_0x3653cf=_0x3653cf-0x90;let _0x2dbeef=_0x221818[_0x3653cf];return _0x2dbeef;},_0x3653(_0x5c5337,_0x481f7f);}import'../../../theme/common/aiheader.css';export class AIChatHeaderView extends _0x39fd1a{[_0x15ea63(0x98)];[_0x15ea63(0x99)];constructor(_0x12d3c8,_0x41178e){const _0x42a865=_0x15ea63;super(_0x12d3c8,{'label':_0x3be01b(_0x12d3c8,_0x42a865(0x9d)),'class':_0x42a865(0x93),'icon':_0x2ff259}),this[_0x42a865(0xa6)](_0x42a865(0xa5),!0x1),this[_0x42a865(0x98)]=this[_0x42a865(0xa0)](_0x12d3c8),this[_0x42a865(0xa9)][_0x42a865(0x95)](this[_0x42a865(0x98)]),_0x41178e&&(this[_0x42a865(0x99)]=_0x219427(_0x12d3c8,this),this[_0x42a865(0xa9)][_0x42a865(0x95)](this[_0x42a865(0x99)]));}[_0x15ea63(0xa0)](_0x1756c6){const _0x2bbeda=_0x15ea63,_0x1cba69=new _0x352f36(_0x1756c6);return _0x1cba69[_0x2bbeda(0xa6)]({'label':_0x3be01b(this[_0x2bbeda(0x9e)],_0x2bbeda(0xa4)),'withText':!0x0,'icon':_0x53e3f1,'class':_0x2bbeda(0xa3)}),_0x1cba69['on'](_0x2bbeda(0x9f),()=>{const _0x544d76=_0x2bbeda;this[_0x544d76(0x90)](_0x544d76(0x9c));}),_0x1cba69;}}
23
+ const _0x4a73da=_0x5197;(function(_0x3fb294,_0x1eb012){const _0x266d05=_0x5197,_0x4eb41c=_0x3fb294();while(!![]){try{const _0x156e02=parseInt(_0x266d05(0x7e))/0x1*(-parseInt(_0x266d05(0x77))/0x2)+parseInt(_0x266d05(0x85))/0x3*(parseInt(_0x266d05(0x8a))/0x4)+parseInt(_0x266d05(0x75))/0x5+parseInt(_0x266d05(0x74))/0x6*(parseInt(_0x266d05(0x89))/0x7)+-parseInt(_0x266d05(0x81))/0x8*(-parseInt(_0x266d05(0x7a))/0x9)+parseInt(_0x266d05(0x7c))/0xa+-parseInt(_0x266d05(0x82))/0xb;if(_0x156e02===_0x1eb012)break;else _0x4eb41c['push'](_0x4eb41c['shift']());}catch(_0x2b12fd){_0x4eb41c['push'](_0x4eb41c['shift']());}}}(_0x4861,0x6ea05));import{ButtonView as _0x52f845,FormHeaderView as _0x3fc031}from'ckeditor5/src/ui.js';import{IconPlus as _0x62bc0,IconAIChat as _0x329557}from'ckeditor5/src/icons.js';function _0x5197(_0xf582dc,_0x3226d1){const _0x4861d2=_0x4861();return _0x5197=function(_0x51977c,_0x568967){_0x51977c=_0x51977c-0x73;let _0x54a87d=_0x4861d2[_0x51977c];return _0x54a87d;},_0x5197(_0xf582dc,_0x3226d1);}import{getTranslation as _0x25d381}from'../../aicore/utils/common-translations.js';import{createResizeButton as _0x5ed638}from'../../aicore/utils/createresizebutton.js';function _0x4861(){const _0x32b0af=['isMaximized','ck-ai-header\x20ck-ai-header_chat','AI_CHAT_HEADING','664194XUhWjc','1220700KbmlZw','conversationStartButton','4BkFvLI','AI_CHAT_LABEL_NEW_CHAT','set','1992456sBEBUT','startConversation','853470pFYSOS','locale','321284vVtQMw','_createStartConversationButton','children','8tNCKOR','7663359gMmwoK','resizeButton','add','3954GkkvMe','execute','ck-ai-chat__start-conversation','fire','35LKrvnW','2088NehZim'];_0x4861=function(){return _0x32b0af;};return _0x4861();}import'../../../theme/common/aiheader.css';export class AIChatHeaderView extends _0x3fc031{[_0x4a73da(0x76)];[_0x4a73da(0x83)];constructor(_0x210a16,_0x3f7bb8){const _0x429b1b=_0x4a73da;super(_0x210a16,{'label':_0x25d381(_0x210a16,_0x429b1b(0x73)),'class':_0x429b1b(0x8c),'icon':_0x329557}),this[_0x429b1b(0x79)](_0x429b1b(0x8b),!0x1),this[_0x429b1b(0x76)]=this[_0x429b1b(0x7f)](_0x210a16),this[_0x429b1b(0x80)][_0x429b1b(0x84)](this[_0x429b1b(0x76)]),_0x3f7bb8&&(this[_0x429b1b(0x83)]=_0x5ed638(_0x210a16,this),this[_0x429b1b(0x80)][_0x429b1b(0x84)](this[_0x429b1b(0x83)]));}[_0x4a73da(0x7f)](_0x453bb5){const _0x66b820=_0x4a73da,_0x1e632b=new _0x52f845(_0x453bb5);return _0x1e632b[_0x66b820(0x79)]({'label':_0x25d381(this[_0x66b820(0x7d)],_0x66b820(0x78)),'withText':!0x0,'icon':_0x62bc0,'class':_0x66b820(0x87)}),_0x1e632b['on'](_0x66b820(0x86),()=>{const _0x21e6e0=_0x66b820;this[_0x21e6e0(0x88)](_0x21e6e0(0x7b));}),_0x1e632b;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x2c56b5=_0x4911;(function(_0x5213cf,_0x5888c1){var _0x3271bb=_0x4911,_0x454e07=_0x5213cf();while(!![]){try{var _0x57fb92=-parseInt(_0x3271bb(0x176))/0x1*(parseInt(_0x3271bb(0x179))/0x2)+parseInt(_0x3271bb(0x178))/0x3*(-parseInt(_0x3271bb(0x168))/0x4)+parseInt(_0x3271bb(0x173))/0x5+-parseInt(_0x3271bb(0x164))/0x6*(-parseInt(_0x3271bb(0x166))/0x7)+parseInt(_0x3271bb(0x160))/0x8*(parseInt(_0x3271bb(0x174))/0x9)+parseInt(_0x3271bb(0x163))/0xa*(-parseInt(_0x3271bb(0x162))/0xb)+parseInt(_0x3271bb(0x17c))/0xc*(parseInt(_0x3271bb(0x16c))/0xd);if(_0x57fb92===_0x5888c1)break;else _0x454e07['push'](_0x454e07['shift']());}catch(_0x4b6850){_0x454e07['push'](_0x454e07['shift']());}}}(_0x3178,0x1ae12));import{View as _0x51f391,BodyCollection as _0x68da9a}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x54d36d}from'../utils/eventnames.js';function _0x4911(_0x1432be,_0x5de6a3){var _0x31784e=_0x3178();return _0x4911=function(_0x4911a9,_0x3282d7){_0x4911a9=_0x4911a9-0x15d;var _0x463db1=_0x31784e[_0x4911a9];return _0x463db1;},_0x4911(_0x1432be,_0x5de6a3);}import{AIChatFeedView as _0x5b7e14}from'./aichatfeedview.js';function _0x3178(){var _0x5c7faa=['contextResourcesSearchInputVisibleFrom','attachToDom','destroy','659810SWUkjH','791595OEjJeV','_bodyCollection','1uQaWqD','showResizeButton','12MyUJWf','398202TJVRHu','delegate','div','6024aHmWLM','populateSourceResourceBalloon','detachFromDom','ck-rounded-corners','8borned','chatDisclaimer','242qUcjCv','230yXdVoA','12jyiISG','uiLanguageDirection','181622fQyTmw','chatFeed','125756zhZSZS','setTemplate','chatHeader','ck-reset_all','4238egfONN','ck-ai-chat','chatControls','closeSourceResourceBalloon'];_0x3178=function(){return _0x5c7faa;};return _0x3178();}import{AIChatControlsView as _0x421003}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x2425dd}from'./aichatheaderview.js';import{AIDisclaimerView as _0x35a66a}from'../../aicore/ui/aidisclaimerview.js';import'../../../theme/common/ainotification.css';import'../../../theme/common/aibutton.css';import'../../../theme/common/aitrackchanges.css';export class AIChatView extends _0x51f391{[_0x2c56b5(0x16a)];[_0x2c56b5(0x167)];[_0x2c56b5(0x16e)];[_0x2c56b5(0x161)];[_0x2c56b5(0x175)];constructor(_0x598185,_0x2e5b7a){var _0x1ff578=_0x2c56b5;super(_0x598185),this[_0x1ff578(0x175)]=new _0x68da9a(_0x598185),this[_0x1ff578(0x175)][_0x1ff578(0x171)](),this[_0x1ff578(0x16a)]=new _0x2425dd(_0x598185,_0x2e5b7a[_0x1ff578(0x177)]),this[_0x1ff578(0x16a)][_0x1ff578(0x17a)](..._0x54d36d)['to'](this),this[_0x1ff578(0x167)]=new _0x5b7e14(_0x598185,this[_0x1ff578(0x175)]),this[_0x1ff578(0x167)][_0x1ff578(0x17a)](..._0x54d36d)['to'](this),this[_0x1ff578(0x16e)]=new _0x421003(_0x598185,{'bodyCollection':this[_0x1ff578(0x175)],'contextResourcesSearchInputVisibleFrom':_0x2e5b7a[_0x1ff578(0x170)]}),this[_0x1ff578(0x16e)][_0x1ff578(0x17a)](..._0x54d36d)['to'](this),this[_0x1ff578(0x161)]=new _0x35a66a(_0x598185),this[_0x1ff578(0x169)]({'tag':_0x1ff578(0x17b),'attributes':{'class':['ck',_0x1ff578(0x16b),_0x1ff578(0x16d),_0x1ff578(0x15f)],'dir':_0x598185[_0x1ff578(0x165)]},'children':[this[_0x1ff578(0x16a)],this[_0x1ff578(0x167)],this[_0x1ff578(0x16e)],this[_0x1ff578(0x161)]]});}[_0x2c56b5(0x15d)](_0x79f3e,_0x4e2112,_0x3d7779,_0x3a31d6){var _0x28c156=_0x2c56b5;this[_0x28c156(0x16e)][_0x28c156(0x15d)](_0x79f3e,_0x4e2112,_0x3d7779,_0x3a31d6);}[_0x2c56b5(0x16f)](_0x2b61bb){var _0x425e04=_0x2c56b5;this[_0x425e04(0x16e)][_0x425e04(0x16f)](_0x2b61bb);}[_0x2c56b5(0x172)](){var _0x1372c5=_0x2c56b5;this[_0x1372c5(0x175)][_0x1372c5(0x15e)](),super[_0x1372c5(0x172)]();}}
23
+ var _0x18d02d=_0x1bbe;(function(_0x5b4662,_0x1afde2){var _0x3ef2f7=_0x1bbe,_0x39da34=_0x5b4662();while(!![]){try{var _0xa93842=-parseInt(_0x3ef2f7(0xad))/0x1*(parseInt(_0x3ef2f7(0xb9))/0x2)+parseInt(_0x3ef2f7(0xbd))/0x3+parseInt(_0x3ef2f7(0xc4))/0x4+-parseInt(_0x3ef2f7(0xaf))/0x5+-parseInt(_0x3ef2f7(0xb8))/0x6*(parseInt(_0x3ef2f7(0xc2))/0x7)+parseInt(_0x3ef2f7(0xbe))/0x8+parseInt(_0x3ef2f7(0xbb))/0x9*(-parseInt(_0x3ef2f7(0xac))/0xa);if(_0xa93842===_0x1afde2)break;else _0x39da34['push'](_0x39da34['shift']());}catch(_0x20ee21){_0x39da34['push'](_0x39da34['shift']());}}}(_0x2bb3,0xadcc5));import{View as _0x149e65,BodyCollection as _0x20b91a}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x3890fe}from'../utils/eventnames.js';import{AIChatFeedView as _0x31b689}from'./aichatfeedview.js';function _0x2bb3(){var _0x33fc7c=['chatHeader','117gVnUSy','_bodyCollection','1664628sHSAqx','9133504RQiCYv','chatFeed','attachToDom','chatControls','142233XMuIYd','chatDisclaimer','5197672CjjIbF','showResizeButton','detachFromDom','populateSourceResourceBalloon','destroy','1067860KEhOOb','57znpJXk','ck-rounded-corners','1292445SFQozJ','ck-ai-chat','closeSourceResourceBalloon','div','ck-reset_all','uiLanguageDirection','contextResourcesSearchInputVisibleFrom','delegate','setTemplate','18lesLps','20226qJsogs'];_0x2bb3=function(){return _0x33fc7c;};return _0x2bb3();}import{AIChatControlsView as _0x2a604c}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x5d85cd}from'./aichatheaderview.js';import{AIDisclaimerView as _0x3f0a8e}from'../../aicore/ui/aidisclaimerview.js';import'../../../theme/common/ainotification.css';function _0x1bbe(_0x5bd534,_0x5abc00){var _0x2bb3c1=_0x2bb3();return _0x1bbe=function(_0x1bbed7,_0x3aed11){_0x1bbed7=_0x1bbed7-0xa8;var _0x430b14=_0x2bb3c1[_0x1bbed7];return _0x430b14;},_0x1bbe(_0x5bd534,_0x5abc00);}import'../../../theme/common/aibutton.css';import'../../../theme/common/aitrackchanges.css';export class AIChatView extends _0x149e65{[_0x18d02d(0xba)];[_0x18d02d(0xbf)];[_0x18d02d(0xc1)];[_0x18d02d(0xc3)];[_0x18d02d(0xbc)];constructor(_0x54b512,_0x3e7470){var _0x235346=_0x18d02d;super(_0x54b512),this[_0x235346(0xbc)]=new _0x20b91a(_0x54b512),this[_0x235346(0xbc)][_0x235346(0xc0)](),this[_0x235346(0xba)]=new _0x5d85cd(_0x54b512,_0x3e7470[_0x235346(0xa8)]),this[_0x235346(0xba)][_0x235346(0xb6)](..._0x3890fe)['to'](this),this[_0x235346(0xbf)]=new _0x31b689(_0x54b512,this[_0x235346(0xbc)]),this[_0x235346(0xbf)][_0x235346(0xb6)](..._0x3890fe)['to'](this),this[_0x235346(0xc1)]=new _0x2a604c(_0x54b512,{'bodyCollection':this[_0x235346(0xbc)],'contextResourcesSearchInputVisibleFrom':_0x3e7470[_0x235346(0xb5)]}),this[_0x235346(0xc1)][_0x235346(0xb6)](..._0x3890fe)['to'](this),this[_0x235346(0xc3)]=new _0x3f0a8e(_0x54b512),this[_0x235346(0xb7)]({'tag':_0x235346(0xb2),'attributes':{'class':['ck',_0x235346(0xb3),_0x235346(0xb0),_0x235346(0xae)],'dir':_0x54b512[_0x235346(0xb4)]},'children':[this[_0x235346(0xba)],this[_0x235346(0xbf)],this[_0x235346(0xc1)],this[_0x235346(0xc3)]]});}[_0x18d02d(0xaa)](_0x464b85,_0x4270f4,_0x2b7c83,_0x44a14e){var _0x245b0b=_0x18d02d;this[_0x245b0b(0xc1)][_0x245b0b(0xaa)](_0x464b85,_0x4270f4,_0x2b7c83,_0x44a14e);}[_0x18d02d(0xb1)](_0x556790){var _0x4b9bc1=_0x18d02d;this[_0x4b9bc1(0xc1)][_0x4b9bc1(0xb1)](_0x556790);}[_0x18d02d(0xab)](){var _0x51572f=_0x18d02d;this[_0x51572f(0xbc)][_0x51572f(0xa9)](),super[_0x51572f(0xab)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x26ba(_0x30a8bc,_0x59620c){const _0x1a112f=_0x1a11();return _0x26ba=function(_0x26ba30,_0x5adc3f){_0x26ba30=_0x26ba30-0x134;let _0x2e8f49=_0x1a112f[_0x26ba30];return _0x2e8f49;},_0x26ba(_0x30a8bc,_0x59620c);}const _0x5bd5e1=_0x26ba;(function(_0x4731d7,_0x176484){const _0x554032=_0x26ba,_0xd3b8fc=_0x4731d7();while(!![]){try{const _0x3a479a=-parseInt(_0x554032(0x14f))/0x1*(-parseInt(_0x554032(0x1c4))/0x2)+parseInt(_0x554032(0x19b))/0x3*(parseInt(_0x554032(0x170))/0x4)+-parseInt(_0x554032(0x13d))/0x5+-parseInt(_0x554032(0x1be))/0x6+-parseInt(_0x554032(0x1a5))/0x7+-parseInt(_0x554032(0x184))/0x8*(parseInt(_0x554032(0x1b8))/0x9)+parseInt(_0x554032(0x1ab))/0xa;if(_0x3a479a===_0x176484)break;else _0xd3b8fc['push'](_0xd3b8fc['shift']());}catch(_0x5c1ba0){_0xd3b8fc['push'](_0xd3b8fc['shift']());}}}(_0x1a11,0x90cc5));import{View as _0x12e5cb,BalloonPanelView as _0x731784,ButtonView as _0x4d8629,clickOutsideHandler as _0x597ce0}from'ckeditor5/src/ui.js';import{Collection as _0x237036}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},an=_0x5bd5e1(0x194);function _0x1a11(){const _0x53e3bb=['add','border-box','_calculateOverflowInContainer','body','_isContainerVisible','_showMoreButtonView','_applyCalculationStyles','_checkAndHandleOverflow','bottom','_locale','50px','1611TbFGsM','display','top','reorganizeChips','isOn','show','135672GPpsRI','hideBalloonPanel','_createMockButton','pointerEvents','_makeAncestorsVisible','render','10UkfJXJ','showMoreLabelPrefix','getComputedStyle','className','_createShowMoreBalloonPanelView','cssClasses','hide','width','showBalloonPanel','ck-calculation-container','_intersectionObserver','button','overflowContainer','2821705SZRqSH','disconnect','opacity','innerHeight','position','height','_targetContainer','_updateOverflowUI','element','classList','right','+\x201','controlsButton','hidden','abs','_restoreAncestorVisibility','block','_updateShowMoreButtonVisibility','40897xCFvJN','overflowChips','some','isVisible','extendTemplate','rowDetectionTolerance','_calculateContainerWidth','pin','content','push','_distributeChips','tagName','toLowerCase','cloneNode','observe','-9999px','textContent','_repinBalloonPanel','block\x20!important','left','_parentView','clear','none','length','style','_testButtonFit','_renderChipsAndCountRows','.ck-ai-chat','documentElement','_bodyCollection','pop','_pendingCalculation','disableAnimationOnEnter','840076MzwuQz','boxSizing','_config','innerWidth','appendChild','set','_findTargetContainer','querySelector','_visibleChips','remove','includes','slice','_handleShowMoreButtonClick','_createCalculationContainer','visibility','_showMoreBalloonPanelView','clientHeight','label','0px','clientWidth','52184almhOu','_ancestorsToRestore','destroy','_createShowMoreButton','parentElement','_applyOverflowResults','showMoreBalloon','_containerElement','calculationContainer','maxVisibleRows','showMoreButton','from','_setupVisibilityObserver','innerHTML','isIntersecting','zIndex','300px','div','visible\x20!important','_createShowMoreButtonView','undefined','_overflowChips','absolute','3pelBQI','createElement','filter','setTemplate','children','execute','isConnected','_createContainerElements','auto','offsetWidth','7443674jpAxxb','showMoreButtonView','setContainerElement','getBoundingClientRect','forEach','_updateBalloonContent','29965410lnUMbz','visible'];_0x1a11=function(){return _0x53e3bb;};return _0x1a11();}export class AIChatChipsOverflowManager{[_0x5bd5e1(0x1b6)];[_0x5bd5e1(0x172)];[_0x5bd5e1(0x178)];[_0x5bd5e1(0x199)];[_0x5bd5e1(0x1b2)]=null;[_0x5bd5e1(0x17f)]=null;[_0x5bd5e1(0x18b)]=null;[_0x5bd5e1(0x16c)];[_0x5bd5e1(0x163)]=null;[_0x5bd5e1(0x13a)]=null;[_0x5bd5e1(0x16e)]=!0x1;constructor(_0x4bfd30,_0x2e639b,_0x2b2f51,_0x57486b,_0x33a951){const _0xe6e597=_0x5bd5e1;this[_0xe6e597(0x1b6)]=_0x4bfd30,this[_0xe6e597(0x178)]=_0x2e639b,this[_0xe6e597(0x172)]={...hn,..._0x2b2f51,'cssClasses':{'controlsButton':'','calculationContainer':_0xe6e597(0x139),..._0x2b2f51[_0xe6e597(0x135)]}},this[_0xe6e597(0x199)]=new _0x237036(),this[_0xe6e597(0x16c)]=_0x57486b,this[_0xe6e597(0x163)]=_0x33a951||null;}[_0x5bd5e1(0x1a7)](_0x384d2e){const _0xe7a495=_0x5bd5e1;this[_0xe7a495(0x13a)]&&(this[_0xe7a495(0x13a)][_0xe7a495(0x13e)](),this[_0xe7a495(0x13a)]=null),this[_0xe7a495(0x18b)]=_0x384d2e,this[_0xe7a495(0x190)]();}get[_0x5bd5e1(0x1a6)](){const _0x3aaee4=_0x5bd5e1;return this[_0x3aaee4(0x1b2)];}get[_0x5bd5e1(0x150)](){const _0x6270d5=_0x5bd5e1;return this[_0x6270d5(0x199)];}[_0x5bd5e1(0x1bb)](){requestAnimationFrame(()=>{const _0x51eb09=_0x26ba;this[_0x51eb09(0x1b4)]();});}[_0x5bd5e1(0x138)](){const _0x2bc69e=_0x5bd5e1;this[_0x2bc69e(0x1b2)]&&this[_0x2bc69e(0x17f)]&&(this[_0x2bc69e(0x1aa)](),this[_0x2bc69e(0x1b2)][_0x2bc69e(0x1bc)]=!0x0,this[_0x2bc69e(0x17f)][_0x2bc69e(0x1bd)](),this[_0x2bc69e(0x17f)][_0x2bc69e(0x156)]({'target':this[_0x2bc69e(0x1b2)][_0x2bc69e(0x145)],'limiter':document[_0x2bc69e(0x177)](_0x2bc69e(0x16a))}));}[_0x5bd5e1(0x1bf)](){const _0x2a3eeb=_0x5bd5e1;this[_0x2a3eeb(0x1b2)]&&this[_0x2a3eeb(0x17f)]&&(this[_0x2a3eeb(0x1b2)][_0x2a3eeb(0x1bc)]=!0x1,this[_0x2a3eeb(0x17f)][_0x2a3eeb(0x136)]());}[_0x5bd5e1(0x164)](){const _0x11b541=_0x5bd5e1;this[_0x11b541(0x199)][_0x11b541(0x164)](),this[_0x11b541(0x1bf)](),this[_0x11b541(0x14e)](),this[_0x11b541(0x1b2)]&&(this[_0x11b541(0x1b2)][_0x11b541(0x181)]=''),this[_0x11b541(0x17f)]&&this[_0x11b541(0x17f)][_0x11b541(0x157)][_0x11b541(0x164)]();}[_0x5bd5e1(0x186)](){const _0x157c2a=_0x5bd5e1;this[_0x157c2a(0x13a)]&&(this[_0x157c2a(0x13a)][_0x157c2a(0x13e)](),this[_0x157c2a(0x13a)]=null),this[_0x157c2a(0x1b2)]&&(this[_0x157c2a(0x1b2)][_0x157c2a(0x186)](),this[_0x157c2a(0x1b2)]=null),this[_0x157c2a(0x17f)]&&(this[_0x157c2a(0x17f)][_0x157c2a(0x186)](),this[_0x157c2a(0x17f)]=null);}[_0x5bd5e1(0x1b4)](){const _0x322537=_0x5bd5e1;if(!this[_0x322537(0x18b)])return;if(!this[_0x322537(0x1b1)]())return void(this[_0x322537(0x16e)]=!0x0);this[_0x322537(0x16e)]=!0x1;const _0x58d16d=[...this[_0x322537(0x178)],...this[_0x322537(0x199)]],_0x3fda81=this[_0x322537(0x17d)](),_0x40b64c=this[_0x322537(0x1af)](_0x3fda81,_0x58d16d),_0x240368=_0x3fda81[_0x322537(0x185)];_0x240368&&this[_0x322537(0x14c)](_0x240368),_0x3fda81[_0x322537(0x179)](),this[_0x322537(0x189)](_0x58d16d,_0x40b64c);}[_0x5bd5e1(0x187)](){const _0x203048=_0x5bd5e1;this[_0x203048(0x1b2)]=this[_0x203048(0x197)](),this[_0x203048(0x17f)]=this[_0x203048(0x134)](),this[_0x203048(0x1b2)][_0x203048(0x1c3)](),this[_0x203048(0x18b)][_0x203048(0x174)](this[_0x203048(0x1b2)][_0x203048(0x145)]),this[_0x203048(0x1b2)]['on'](_0x203048(0x1a0),()=>{const _0x457a77=_0x203048;this[_0x457a77(0x17c)]();}),_0x597ce0({'emitter':this[_0x203048(0x17f)],'contextElements':[this[_0x203048(0x17f)][_0x203048(0x145)],this[_0x203048(0x1b2)][_0x203048(0x145)]],'callback':()=>this[_0x203048(0x1bf)](),'activator':()=>this[_0x203048(0x1b2)][_0x203048(0x1bc)]});}[_0x5bd5e1(0x197)](){const _0xdec777=_0x5bd5e1,_0x511de5=new _0x4d8629(this[_0xdec777(0x1b6)]);_0x511de5[_0xdec777(0x175)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x311eb2=[this[_0xdec777(0x172)][_0xdec777(0x135)][_0xdec777(0x18e)]];return this[_0xdec777(0x172)][_0xdec777(0x135)][_0xdec777(0x149)]&&_0x311eb2[_0xdec777(0x158)](this[_0xdec777(0x172)][_0xdec777(0x135)][_0xdec777(0x149)]),_0x511de5[_0xdec777(0x153)]({'attributes':{'class':_0x311eb2}}),_0x511de5;}[_0x5bd5e1(0x134)](){const _0x9c858=_0x5bd5e1,_0x574f8e=new _0x731784(this[_0x9c858(0x1b6)]);return _0x574f8e[_0x9c858(0x153)]({'attributes':{'class':this[_0x9c858(0x172)][_0x9c858(0x135)][_0x9c858(0x18a)]}}),this[_0x9c858(0x16c)][_0x9c858(0x1ad)](_0x574f8e),_0x574f8e;}[_0x5bd5e1(0x1aa)](){const _0x44a7d9=_0x5bd5e1;if(this[_0x44a7d9(0x17f)]&&(this[_0x44a7d9(0x17f)][_0x44a7d9(0x157)][_0x44a7d9(0x164)](),this[_0x44a7d9(0x199)][_0x44a7d9(0x166)]>0x0)){this[_0x44a7d9(0x199)][_0x44a7d9(0x1a9)](_0x240450=>{const _0x45386a=_0x44a7d9;_0x240450[_0x45386a(0x16f)]();});const _0x462a48=new _0x12e5cb(this[_0x44a7d9(0x1b6)]);_0x462a48[_0x44a7d9(0x19e)]({'tag':_0x44a7d9(0x195),'attributes':{'class':this[_0x44a7d9(0x172)][_0x44a7d9(0x135)][_0x44a7d9(0x13c)]},'children':this[_0x44a7d9(0x199)]}),this[_0x44a7d9(0x17f)][_0x44a7d9(0x157)][_0x44a7d9(0x1ad)](_0x462a48);}}[_0x5bd5e1(0x17c)](){const _0x38a881=_0x5bd5e1;this[_0x38a881(0x1b2)][_0x38a881(0x1bc)]?this[_0x38a881(0x1bf)]():this[_0x38a881(0x138)]();}[_0x5bd5e1(0x14e)](){const _0x39a815=_0x5bd5e1,_0xa3b6f9=this[_0x39a815(0x199)][_0x39a815(0x166)]>0x0;this[_0x39a815(0x1b2)]?.[_0x39a815(0x145)]&&(this[_0x39a815(0x1b2)][_0x39a815(0x145)][_0x39a815(0x167)][_0x39a815(0x1b9)]=_0xa3b6f9?'':_0x39a815(0x165));}[_0x5bd5e1(0x160)](){const _0x2cb333=_0x5bd5e1;this[_0x2cb333(0x1b2)]?.[_0x2cb333(0x1bc)]&&this[_0x2cb333(0x17f)]?.[_0x2cb333(0x152)]&&this[_0x2cb333(0x1b2)][_0x2cb333(0x145)]&&this[_0x2cb333(0x17f)][_0x2cb333(0x156)]({'target':this[_0x2cb333(0x1b2)][_0x2cb333(0x145)],'limiter':document[_0x2cb333(0x177)](_0x2cb333(0x16a))});}[_0x5bd5e1(0x176)](_0x4d1afa){const _0x5a1de8=_0x5bd5e1,_0x3ecb68=this[_0x5a1de8(0x18b)]?.[_0x5a1de8(0x15a)][_0x5a1de8(0x15b)]()||_0x5a1de8(0x195),_0x4206ef=this[_0x5a1de8(0x18b)]?.[_0x5a1de8(0x146)];if(_0x4206ef){const _0x32b784=_0x4206ef[0x0]||'',_0xca83c=_0x4d1afa[_0x5a1de8(0x177)]('.'+_0x32b784),_0x43608a=_0x4d1afa[_0x5a1de8(0x177)](_0x3ecb68);return _0xca83c||_0x43608a||_0x4d1afa;}return _0x4d1afa[_0x5a1de8(0x177)](_0x3ecb68)||_0x4d1afa;}[_0x5bd5e1(0x155)](){const _0x2334d2=_0x5bd5e1,_0x30f4f7=this[_0x2334d2(0x163)]?.[_0x2334d2(0x145)]||this[_0x2334d2(0x18b)];if(!_0x30f4f7)return an;const _0x331323=window[_0x2334d2(0x1c6)](_0x30f4f7)[_0x2334d2(0x137)];if(_0x2334d2(0x1a3)===_0x331323||_0x2334d2(0x182)===_0x331323||!_0x331323){const _0x314c9d=_0x30f4f7[_0x2334d2(0x188)];if(_0x314c9d){const _0x1bfe30=window[_0x2334d2(0x1c6)](_0x314c9d);return _0x2334d2(0x1a3)!==_0x1bfe30[_0x2334d2(0x137)]?_0x1bfe30[_0x2334d2(0x137)]:an;}return an;}return _0x331323;}[_0x5bd5e1(0x1b3)](_0x318ba6,_0x3cd0ad){const _0x173b38=_0x5bd5e1;this[_0x173b38(0x172)][_0x173b38(0x135)][_0x173b38(0x18c)]&&_0x318ba6[_0x173b38(0x146)][_0x173b38(0x1ad)](this[_0x173b38(0x172)][_0x173b38(0x135)][_0x173b38(0x18c)]),_0x318ba6[_0x173b38(0x167)][_0x173b38(0x137)]=_0x3cd0ad,_0x318ba6[_0x173b38(0x167)][_0x173b38(0x141)]=_0x173b38(0x19a),_0x318ba6[_0x173b38(0x167)][_0x173b38(0x1ba)]=_0x173b38(0x15e),_0x318ba6[_0x173b38(0x167)][_0x173b38(0x162)]=_0x173b38(0x15e),_0x318ba6[_0x173b38(0x167)][_0x173b38(0x13f)]='0',_0x318ba6[_0x173b38(0x167)][_0x173b38(0x1c1)]=_0x173b38(0x165),_0x318ba6[_0x173b38(0x167)][_0x173b38(0x193)]='-1',_0x318ba6[_0x173b38(0x167)][_0x173b38(0x17e)]=_0x173b38(0x196),_0x318ba6[_0x173b38(0x167)][_0x173b38(0x1b9)]=_0x173b38(0x161),_0x318ba6[_0x173b38(0x167)][_0x173b38(0x171)]=_0x173b38(0x1ae);}[_0x5bd5e1(0x14c)](_0x4a777c){const _0xdb93b0=_0x5bd5e1;_0x4a777c[_0xdb93b0(0x1a9)](({element:_0x540234,originalDisplay:_0x2ea566,originalVisibility:_0x524d16})=>{const _0x513439=_0xdb93b0;_0x540234[_0x513439(0x167)][_0x513439(0x1b9)]=_0x2ea566,_0x540234[_0x513439(0x167)][_0x513439(0x17e)]=_0x524d16;});}[_0x5bd5e1(0x1c2)](_0x141002){const _0x416b9=_0x5bd5e1,_0x513464=[];let _0x4ca084=_0x141002;for(;_0x4ca084&&_0x4ca084!==document[_0x416b9(0x1b0)];){const _0x1a3aec=window[_0x416b9(0x1c6)](_0x4ca084);_0x416b9(0x165)!==_0x1a3aec[_0x416b9(0x1b9)]&&_0x416b9(0x14a)!==_0x1a3aec[_0x416b9(0x17e)]||(_0x513464[_0x416b9(0x158)]({'element':_0x4ca084,'originalDisplay':_0x4ca084[_0x416b9(0x167)][_0x416b9(0x1b9)],'originalVisibility':_0x4ca084[_0x416b9(0x167)][_0x416b9(0x17e)]}),_0x4ca084[_0x416b9(0x167)][_0x416b9(0x1b9)]=_0x416b9(0x14d),_0x4ca084[_0x416b9(0x167)][_0x416b9(0x17e)]=_0x416b9(0x1ac)),_0x4ca084=_0x4ca084[_0x416b9(0x188)];}return _0x513464;}[_0x5bd5e1(0x1a2)](){const _0x559040=_0x5bd5e1;let _0x2a8e65,_0x5886ba;return this[_0x559040(0x163)]?.[_0x559040(0x145)]?(_0x2a8e65=this[_0x559040(0x163)][_0x559040(0x145)][_0x559040(0x15c)](!0x0),_0x5886ba=this[_0x559040(0x176)](_0x2a8e65)):(_0x2a8e65=document[_0x559040(0x19c)](_0x559040(0x195)),_0x5886ba=_0x2a8e65),{'calculationContainer':_0x2a8e65,'targetContainer':_0x5886ba};}[_0x5bd5e1(0x17d)](){const _0x308032=_0x5bd5e1,{calculationContainer:_0x5effd9,targetContainer:_0x4f71e8}=this[_0x308032(0x1a2)](),_0x4fd7f2=this[_0x308032(0x155)]();this[_0x308032(0x1b3)](_0x5effd9,_0x4fd7f2);const _0x462f3b=this[_0x308032(0x163)]?.[_0x308032(0x145)]||this[_0x308032(0x18b)],_0x275206=_0x462f3b?.[_0x308032(0x188)];_0x275206?_0x275206[_0x308032(0x174)](_0x5effd9):document[_0x308032(0x1b0)][_0x308032(0x174)](_0x5effd9),_0x5effd9[_0x308032(0x143)]=_0x4f71e8;const _0x1cfe27=this[_0x308032(0x1c2)](_0x275206||null);return _0x5effd9[_0x308032(0x1a4)],_0x5effd9[_0x308032(0x185)]=_0x1cfe27,_0x5effd9;}[_0x5bd5e1(0x1af)](_0x239e5e,_0x41cf9a){const _0x3db462=_0x5bd5e1,_0xf1379c=_0x239e5e[_0x3db462(0x143)]||_0x239e5e,_0x2eaefa=[],{rowCount:_0x33126c}=this[_0x3db462(0x169)](_0xf1379c,_0x41cf9a);if(_0x33126c<=this[_0x3db462(0x172)][_0x3db462(0x18d)])return _0x2eaefa;const _0x1f0910=_0x41cf9a[_0x3db462(0x17b)]();for(;_0x1f0910[_0x3db462(0x166)]>0x0;){if(this[_0x3db462(0x168)](_0x239e5e,_0xf1379c,_0x1f0910)){const _0x4eb78d=_0x41cf9a[_0x3db462(0x19d)](_0x50664b=>!_0x1f0910[_0x3db462(0x17a)](_0x50664b));_0x2eaefa[_0x3db462(0x158)](..._0x4eb78d);break;}if(!_0x1f0910[_0x3db462(0x16d)]())break;}return _0x2eaefa;}[_0x5bd5e1(0x169)](_0x8667d5,_0x4c8f22){const _0x49b620=_0x5bd5e1;_0x8667d5[_0x49b620(0x191)]='',_0x4c8f22[_0x49b620(0x1a9)](_0x28013a=>{const _0x3fbd29=_0x49b620;if(_0x28013a[_0x3fbd29(0x145)]){const _0x550c72=_0x28013a[_0x3fbd29(0x145)][_0x3fbd29(0x15c)](!0x0);_0x8667d5[_0x3fbd29(0x174)](_0x550c72);}}),_0x8667d5[_0x49b620(0x1a4)];const _0x662e7=_0x8667d5[_0x49b620(0x19f)],_0x2933f9=[];return Array[_0x49b620(0x18f)](_0x662e7)[_0x49b620(0x1a9)](_0x26e4d9=>{const _0x3b822b=_0x49b620,_0x358818=_0x26e4d9[_0x3b822b(0x1a8)]()[_0x3b822b(0x1ba)];_0x2933f9[_0x3b822b(0x151)](_0x62bbe6=>Math[_0x3b822b(0x14b)](_0x62bbe6-_0x358818)<this[_0x3b822b(0x172)][_0x3b822b(0x154)])||_0x2933f9[_0x3b822b(0x158)](_0x358818);}),{'rowCount':_0x2933f9[_0x49b620(0x166)]};}[_0x5bd5e1(0x1c0)](){const _0x3870e7=_0x5bd5e1,_0x1f05fc=document[_0x3870e7(0x19c)](_0x3870e7(0x13b));return _0x1f05fc[_0x3870e7(0x1c7)]=this[_0x3870e7(0x172)][_0x3870e7(0x135)][_0x3870e7(0x18e)],this[_0x3870e7(0x172)][_0x3870e7(0x135)][_0x3870e7(0x149)]&&_0x1f05fc[_0x3870e7(0x146)][_0x3870e7(0x1ad)](this[_0x3870e7(0x172)][_0x3870e7(0x135)][_0x3870e7(0x149)]),_0x1f05fc[_0x3870e7(0x15f)]=_0x3870e7(0x148),_0x1f05fc;}[_0x5bd5e1(0x168)](_0x174979,_0x593d42,_0x34868b){const _0x496099=_0x5bd5e1;this[_0x496099(0x169)](_0x593d42,_0x34868b);const _0x270b80=this[_0x496099(0x1c0)]();_0x174979[_0x496099(0x174)](_0x270b80),_0x174979[_0x496099(0x1a4)];const _0x481421=[..._0x593d42[_0x496099(0x19f)],_0x270b80],_0x3a4f33=[];_0x481421[_0x496099(0x1a9)](_0x345f42=>{const _0x1fcd2d=_0x496099,_0x3ac031=_0x345f42[_0x1fcd2d(0x1a8)]()[_0x1fcd2d(0x1ba)];_0x3a4f33[_0x1fcd2d(0x151)](_0x13a66f=>Math[_0x1fcd2d(0x14b)](_0x13a66f-_0x3ac031)<this[_0x1fcd2d(0x172)][_0x1fcd2d(0x154)])||_0x3a4f33[_0x1fcd2d(0x158)](_0x3ac031);});const _0x20ce98=_0x3a4f33[_0x496099(0x166)];return _0x270b80[_0x496099(0x179)](),_0x20ce98<=this[_0x496099(0x172)][_0x496099(0x18d)];}[_0x5bd5e1(0x159)](_0x102e81,_0x2d1578){const _0x37b0a7=_0x5bd5e1;this[_0x37b0a7(0x178)][_0x37b0a7(0x164)](),this[_0x37b0a7(0x199)][_0x37b0a7(0x164)](),_0x102e81[_0x37b0a7(0x1a9)](_0x78b17=>{const _0xb71747=_0x37b0a7;_0x2d1578[_0xb71747(0x17a)](_0x78b17)?this[_0xb71747(0x199)][_0xb71747(0x1ad)](_0x78b17):this[_0xb71747(0x178)][_0xb71747(0x1ad)](_0x78b17);});}[_0x5bd5e1(0x144)](_0x495be4){const _0x3d277c=_0x5bd5e1;if(_0x495be4>0x0&&!this[_0x3d277c(0x1b2)]&&this[_0x3d277c(0x187)](),_0x495be4>0x0&&this[_0x3d277c(0x1b2)]){const _0x196479=''+this[_0x3d277c(0x172)][_0x3d277c(0x1c5)]+(_0x495be4<0x63?_0x495be4:'99');this[_0x3d277c(0x1b2)][_0x3d277c(0x181)]=_0x196479;}this[_0x3d277c(0x1aa)](),this[_0x3d277c(0x14e)](),this[_0x3d277c(0x160)]();}[_0x5bd5e1(0x189)](_0x58971a,_0x4e8f82){const _0x35c837=_0x5bd5e1;this[_0x35c837(0x159)](_0x58971a,_0x4e8f82),this[_0x35c837(0x144)](_0x4e8f82[_0x35c837(0x166)]);}[_0x5bd5e1(0x190)](){const _0x5e3f7f=_0x5bd5e1;this[_0x5e3f7f(0x18b)]&&_0x5e3f7f(0x198)!=typeof IntersectionObserver&&(this[_0x5e3f7f(0x13a)]=new IntersectionObserver(_0x1198fe=>{const _0x1fa4b7=_0x5e3f7f;_0x1198fe[0x0][_0x1fa4b7(0x192)]&&this[_0x1fa4b7(0x16e)]&&requestAnimationFrame(()=>{const _0x1a713c=_0x1fa4b7;this[_0x1a713c(0x1b4)]();});},{'threshold':0.01,'rootMargin':_0x5e3f7f(0x1b7)}),this[_0x5e3f7f(0x13a)][_0x5e3f7f(0x15d)](this[_0x5e3f7f(0x18b)]));}[_0x5bd5e1(0x1b1)](){const _0x4cb0f4=_0x5bd5e1;if(!this[_0x4cb0f4(0x18b)])return!0x1;if(!this[_0x4cb0f4(0x18b)][_0x4cb0f4(0x1a1)])return!0x1;const _0xf43020=this[_0x4cb0f4(0x18b)][_0x4cb0f4(0x1a8)]();if(0x0===_0xf43020[_0x4cb0f4(0x137)]||0x0===_0xf43020[_0x4cb0f4(0x142)])return!0x1;const _0x22191b=window[_0x4cb0f4(0x140)]||document[_0x4cb0f4(0x16b)][_0x4cb0f4(0x180)],_0x4db200=window[_0x4cb0f4(0x173)]||document[_0x4cb0f4(0x16b)][_0x4cb0f4(0x183)],_0x2a0a2f=0xc8;return _0xf43020[_0x4cb0f4(0x1b5)]>=-0xc8&&_0xf43020[_0x4cb0f4(0x1ba)]<=_0x22191b+_0x2a0a2f&&_0xf43020[_0x4cb0f4(0x147)]>=-0xc8&&_0xf43020[_0x4cb0f4(0x162)]<=_0x4db200+_0x2a0a2f;}}
23
+ function _0x2b51(){const _0x332cf1=['parentElement','_containerElement','getComputedStyle','_config','includes','visible','offsetWidth','_testButtonFit','showMoreBalloon','_checkAndHandleOverflow','width','_findTargetContainer','from','_createShowMoreButtonView','setTemplate','showMoreButtonView','body','_bodyCollection','_pendingCalculation','_createCalculationContainer','toLowerCase','zIndex','button','118234GuChAK','clear','reorganizeChips','querySelector','overflowContainer','_updateOverflowUI','extendTemplate','height','pop','push','114GHxvDA','forEach','auto','isIntersecting','cssClasses','_createMockButton','createElement','children','-9999px','innerHTML','undefined','bottom','element','appendChild','display','tagName','_showMoreBalloonPanelView','boxSizing','_targetContainer','some','_updateShowMoreButtonVisibility','label','showMoreButton','maxVisibleRows','top','overflowChips','visible\x20!important','showBalloonPanel','setContainerElement','_intersectionObserver','hidden','ck-calculation-container','654528Smowzf','+\x201','abs','render','innerWidth','11421540gBsRDX','_createContainerElements','_makeAncestorsVisible','visibility','_distributeChips','controlsButton','absolute','50px','_calculateContainerWidth','1215884EbSYSa','_applyCalculationStyles','_isContainerVisible','isOn','textContent','_renderChipsAndCountRows','position','execute','none','innerHeight','_updateBalloonContent','1219990PAuICZ','isConnected','_applyOverflowResults','rowDetectionTolerance','pin','_handleShowMoreButtonClick','_repinBalloonPanel','right','.ck-ai-chat','show','length','getBoundingClientRect','cloneNode','content','_setupVisibilityObserver','disableAnimationOnEnter','opacity','observe','div','1hwWplO','_calculateOverflowInContainer','hide','classList','left','documentElement','style','_createShowMoreBalloonPanelView','className','_visibleChips','clientHeight','300px','border-box','_showMoreButtonView','_ancestorsToRestore','showMoreLabelPrefix','3447800ukxvuv','0px','slice','_overflowChips','set','add','_parentView','hideBalloonPanel','remove','clientWidth','destroy','isVisible','_locale','101206udtbBo','_createShowMoreButton','calculationContainer','pointerEvents','filter','_restoreAncestorVisibility','block','disconnect','block\x20!important'];_0x2b51=function(){return _0x332cf1;};return _0x2b51();}const _0x5e93c0=_0x4c38;(function(_0x2c1c13,_0x4b9d01){const _0x20f6e1=_0x4c38,_0x2bbaf7=_0x2c1c13();while(!![]){try{const _0x2b34f2=-parseInt(_0x20f6e1(0x1ef))/0x1*(parseInt(_0x20f6e1(0x199))/0x2)+-parseInt(_0x20f6e1(0x1c3))/0x3+parseInt(_0x20f6e1(0x1d1))/0x4+-parseInt(_0x20f6e1(0x1dc))/0x5+-parseInt(_0x20f6e1(0x1a3))/0x6*(parseInt(_0x20f6e1(0x179))/0x7)+-parseInt(_0x20f6e1(0x1ff))/0x8+parseInt(_0x20f6e1(0x1c8))/0x9;if(_0x2b34f2===_0x4b9d01)break;else _0x2bbaf7['push'](_0x2bbaf7['shift']());}catch(_0x1bd603){_0x2bbaf7['push'](_0x2bbaf7['shift']());}}}(_0x2b51,0x547cf));function _0x4c38(_0x2b048f,_0x11f782){const _0x2b5160=_0x2b51();return _0x4c38=function(_0x4c38fc,_0x242a6e){_0x4c38fc=_0x4c38fc-0x16e;let _0x3e68d3=_0x2b5160[_0x4c38fc];return _0x3e68d3;},_0x4c38(_0x2b048f,_0x11f782);}import{View as _0x131672,BalloonPanelView as _0x49f673,ButtonView as _0x8a111a,clickOutsideHandler as _0x3756e8}from'ckeditor5/src/ui.js';import{Collection as _0x493a2b}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},an=_0x5e93c0(0x1fa);export class AIChatChipsOverflowManager{[_0x5e93c0(0x178)];[_0x5e93c0(0x185)];[_0x5e93c0(0x1f8)];[_0x5e93c0(0x16f)];[_0x5e93c0(0x1fc)]=null;[_0x5e93c0(0x1b3)]=null;[_0x5e93c0(0x183)]=null;[_0x5e93c0(0x193)];[_0x5e93c0(0x172)]=null;[_0x5e93c0(0x1c0)]=null;[_0x5e93c0(0x194)]=!0x1;constructor(_0x37fd63,_0x2366c9,_0x580146,_0x380acc,_0x59d546){const _0x373f0a=_0x5e93c0;this[_0x373f0a(0x178)]=_0x37fd63,this[_0x373f0a(0x1f8)]=_0x2366c9,this[_0x373f0a(0x185)]={...hn,..._0x580146,'cssClasses':{'controlsButton':'','calculationContainer':_0x373f0a(0x1c2),..._0x580146[_0x373f0a(0x1a7)]}},this[_0x373f0a(0x16f)]=new _0x493a2b(),this[_0x373f0a(0x193)]=_0x380acc,this[_0x373f0a(0x172)]=_0x59d546||null;}[_0x5e93c0(0x1bf)](_0x16f7cd){const _0x1cc0c2=_0x5e93c0;this[_0x1cc0c2(0x1c0)]&&(this[_0x1cc0c2(0x1c0)][_0x1cc0c2(0x180)](),this[_0x1cc0c2(0x1c0)]=null),this[_0x1cc0c2(0x183)]=_0x16f7cd,this[_0x1cc0c2(0x1ea)]();}get[_0x5e93c0(0x191)](){const _0x5b75ab=_0x5e93c0;return this[_0x5b75ab(0x1fc)];}get[_0x5e93c0(0x1bc)](){const _0x1003ea=_0x5e93c0;return this[_0x1003ea(0x16f)];}[_0x5e93c0(0x19b)](){requestAnimationFrame(()=>{const _0x43a607=_0x4c38;this[_0x43a607(0x18b)]();});}[_0x5e93c0(0x1be)](){const _0x5141d8=_0x5e93c0;this[_0x5141d8(0x1fc)]&&this[_0x5141d8(0x1b3)]&&(this[_0x5141d8(0x1db)](),this[_0x5141d8(0x1fc)][_0x5141d8(0x1d4)]=!0x0,this[_0x5141d8(0x1b3)][_0x5141d8(0x1e5)](),this[_0x5141d8(0x1b3)][_0x5141d8(0x1e0)]({'target':this[_0x5141d8(0x1fc)][_0x5141d8(0x1af)],'limiter':document[_0x5141d8(0x19c)](_0x5141d8(0x1e4))}));}[_0x5e93c0(0x173)](){const _0x394b83=_0x5e93c0;this[_0x394b83(0x1fc)]&&this[_0x394b83(0x1b3)]&&(this[_0x394b83(0x1fc)][_0x394b83(0x1d4)]=!0x1,this[_0x394b83(0x1b3)][_0x394b83(0x1f1)]());}[_0x5e93c0(0x19a)](){const _0x38533a=_0x5e93c0;this[_0x38533a(0x16f)][_0x38533a(0x19a)](),this[_0x38533a(0x173)](),this[_0x38533a(0x1b7)](),this[_0x38533a(0x1fc)]&&(this[_0x38533a(0x1fc)][_0x38533a(0x1b8)]=''),this[_0x38533a(0x1b3)]&&this[_0x38533a(0x1b3)][_0x38533a(0x1e9)][_0x38533a(0x19a)]();}[_0x5e93c0(0x176)](){const _0x4d81b5=_0x5e93c0;this[_0x4d81b5(0x1c0)]&&(this[_0x4d81b5(0x1c0)][_0x4d81b5(0x180)](),this[_0x4d81b5(0x1c0)]=null),this[_0x4d81b5(0x1fc)]&&(this[_0x4d81b5(0x1fc)][_0x4d81b5(0x176)](),this[_0x4d81b5(0x1fc)]=null),this[_0x4d81b5(0x1b3)]&&(this[_0x4d81b5(0x1b3)][_0x4d81b5(0x176)](),this[_0x4d81b5(0x1b3)]=null);}[_0x5e93c0(0x18b)](){const _0x453936=_0x5e93c0;if(!this[_0x453936(0x183)])return;if(!this[_0x453936(0x1d3)]())return void(this[_0x453936(0x194)]=!0x0);this[_0x453936(0x194)]=!0x1;const _0x56b05a=[...this[_0x453936(0x1f8)],...this[_0x453936(0x16f)]],_0x401da2=this[_0x453936(0x195)](),_0x41e77b=this[_0x453936(0x1f0)](_0x401da2,_0x56b05a),_0xe5d796=_0x401da2[_0x453936(0x1fd)];_0xe5d796&&this[_0x453936(0x17e)](_0xe5d796),_0x401da2[_0x453936(0x174)](),this[_0x453936(0x1de)](_0x56b05a,_0x41e77b);}[_0x5e93c0(0x17a)](){const _0x4e404d=_0x5e93c0;this[_0x4e404d(0x1fc)]=this[_0x4e404d(0x18f)](),this[_0x4e404d(0x1b3)]=this[_0x4e404d(0x1f6)](),this[_0x4e404d(0x1fc)][_0x4e404d(0x1c6)](),this[_0x4e404d(0x183)][_0x4e404d(0x1b0)](this[_0x4e404d(0x1fc)][_0x4e404d(0x1af)]),this[_0x4e404d(0x1fc)]['on'](_0x4e404d(0x1d8),()=>{const _0xd70189=_0x4e404d;this[_0xd70189(0x1e1)]();}),_0x3756e8({'emitter':this[_0x4e404d(0x1b3)],'contextElements':[this[_0x4e404d(0x1b3)][_0x4e404d(0x1af)],this[_0x4e404d(0x1fc)][_0x4e404d(0x1af)]],'callback':()=>this[_0x4e404d(0x173)](),'activator':()=>this[_0x4e404d(0x1fc)][_0x4e404d(0x1d4)]});}[_0x5e93c0(0x18f)](){const _0x5c4e5c=_0x5e93c0,_0x32effa=new _0x8a111a(this[_0x5c4e5c(0x178)]);_0x32effa[_0x5c4e5c(0x170)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0xe98a46=[this[_0x5c4e5c(0x185)][_0x5c4e5c(0x1a7)][_0x5c4e5c(0x1b9)]];return this[_0x5c4e5c(0x185)][_0x5c4e5c(0x1a7)][_0x5c4e5c(0x1cd)]&&_0xe98a46[_0x5c4e5c(0x1a2)](this[_0x5c4e5c(0x185)][_0x5c4e5c(0x1a7)][_0x5c4e5c(0x1cd)]),_0x32effa[_0x5c4e5c(0x19f)]({'attributes':{'class':_0xe98a46}}),_0x32effa;}[_0x5e93c0(0x1f6)](){const _0x49c65c=_0x5e93c0,_0x3d38f1=new _0x49f673(this[_0x49c65c(0x178)]);return _0x3d38f1[_0x49c65c(0x19f)]({'attributes':{'class':this[_0x49c65c(0x185)][_0x49c65c(0x1a7)][_0x49c65c(0x18a)]}}),this[_0x49c65c(0x193)][_0x49c65c(0x171)](_0x3d38f1),_0x3d38f1;}[_0x5e93c0(0x1db)](){const _0x24b0a7=_0x5e93c0;if(this[_0x24b0a7(0x1b3)]&&(this[_0x24b0a7(0x1b3)][_0x24b0a7(0x1e9)][_0x24b0a7(0x19a)](),this[_0x24b0a7(0x16f)][_0x24b0a7(0x1e6)]>0x0)){this[_0x24b0a7(0x16f)][_0x24b0a7(0x1a4)](_0x238d2a=>{const _0x5280c2=_0x24b0a7;_0x238d2a[_0x5280c2(0x1eb)]();});const _0x53b4e5=new _0x131672(this[_0x24b0a7(0x178)]);_0x53b4e5[_0x24b0a7(0x190)]({'tag':_0x24b0a7(0x1ee),'attributes':{'class':this[_0x24b0a7(0x185)][_0x24b0a7(0x1a7)][_0x24b0a7(0x19d)]},'children':this[_0x24b0a7(0x16f)]}),this[_0x24b0a7(0x1b3)][_0x24b0a7(0x1e9)][_0x24b0a7(0x171)](_0x53b4e5);}}[_0x5e93c0(0x1e1)](){const _0xd38728=_0x5e93c0;this[_0xd38728(0x1fc)][_0xd38728(0x1d4)]?this[_0xd38728(0x173)]():this[_0xd38728(0x1be)]();}[_0x5e93c0(0x1b7)](){const _0x38d9fd=_0x5e93c0,_0x599bb7=this[_0x38d9fd(0x16f)][_0x38d9fd(0x1e6)]>0x0;this[_0x38d9fd(0x1fc)]?.[_0x38d9fd(0x1af)]&&(this[_0x38d9fd(0x1fc)][_0x38d9fd(0x1af)][_0x38d9fd(0x1f5)][_0x38d9fd(0x1b1)]=_0x599bb7?'':_0x38d9fd(0x1d9));}[_0x5e93c0(0x1e2)](){const _0x46869e=_0x5e93c0;this[_0x46869e(0x1fc)]?.[_0x46869e(0x1d4)]&&this[_0x46869e(0x1b3)]?.[_0x46869e(0x177)]&&this[_0x46869e(0x1fc)][_0x46869e(0x1af)]&&this[_0x46869e(0x1b3)][_0x46869e(0x1e0)]({'target':this[_0x46869e(0x1fc)][_0x46869e(0x1af)],'limiter':document[_0x46869e(0x19c)](_0x46869e(0x1e4))});}[_0x5e93c0(0x18d)](_0x124696){const _0x5151a3=_0x5e93c0,_0x4adcdf=this[_0x5151a3(0x183)]?.[_0x5151a3(0x1b2)][_0x5151a3(0x196)]()||_0x5151a3(0x1ee),_0x43c433=this[_0x5151a3(0x183)]?.[_0x5151a3(0x1f2)];if(_0x43c433){const _0x2e13f0=_0x43c433[0x0]||'',_0x27fe86=_0x124696[_0x5151a3(0x19c)]('.'+_0x2e13f0),_0x544f6f=_0x124696[_0x5151a3(0x19c)](_0x4adcdf);return _0x27fe86||_0x544f6f||_0x124696;}return _0x124696[_0x5151a3(0x19c)](_0x4adcdf)||_0x124696;}[_0x5e93c0(0x1d0)](){const _0x11897e=_0x5e93c0,_0x230870=this[_0x11897e(0x172)]?.[_0x11897e(0x1af)]||this[_0x11897e(0x183)];if(!_0x230870)return an;const _0xba3026=window[_0x11897e(0x184)](_0x230870)[_0x11897e(0x18c)];if(_0x11897e(0x1a5)===_0xba3026||_0x11897e(0x200)===_0xba3026||!_0xba3026){const _0x46ed79=_0x230870[_0x11897e(0x182)];if(_0x46ed79){const _0x9fa1cf=window[_0x11897e(0x184)](_0x46ed79);return _0x11897e(0x1a5)!==_0x9fa1cf[_0x11897e(0x18c)]?_0x9fa1cf[_0x11897e(0x18c)]:an;}return an;}return _0xba3026;}[_0x5e93c0(0x1d2)](_0x34d112,_0x2d58a8){const _0x380891=_0x5e93c0;this[_0x380891(0x185)][_0x380891(0x1a7)][_0x380891(0x17b)]&&_0x34d112[_0x380891(0x1f2)][_0x380891(0x171)](this[_0x380891(0x185)][_0x380891(0x1a7)][_0x380891(0x17b)]),_0x34d112[_0x380891(0x1f5)][_0x380891(0x18c)]=_0x2d58a8,_0x34d112[_0x380891(0x1f5)][_0x380891(0x1d7)]=_0x380891(0x1ce),_0x34d112[_0x380891(0x1f5)][_0x380891(0x1bb)]=_0x380891(0x1ab),_0x34d112[_0x380891(0x1f5)][_0x380891(0x1f3)]=_0x380891(0x1ab),_0x34d112[_0x380891(0x1f5)][_0x380891(0x1ec)]='0',_0x34d112[_0x380891(0x1f5)][_0x380891(0x17c)]=_0x380891(0x1d9),_0x34d112[_0x380891(0x1f5)][_0x380891(0x197)]='-1',_0x34d112[_0x380891(0x1f5)][_0x380891(0x1cb)]=_0x380891(0x1bd),_0x34d112[_0x380891(0x1f5)][_0x380891(0x1b1)]=_0x380891(0x181),_0x34d112[_0x380891(0x1f5)][_0x380891(0x1b4)]=_0x380891(0x1fb);}[_0x5e93c0(0x17e)](_0x37b731){const _0x1429b7=_0x5e93c0;_0x37b731[_0x1429b7(0x1a4)](({element:_0x3c7162,originalDisplay:_0x20882f,originalVisibility:_0x57c656})=>{const _0xcfbb71=_0x1429b7;_0x3c7162[_0xcfbb71(0x1f5)][_0xcfbb71(0x1b1)]=_0x20882f,_0x3c7162[_0xcfbb71(0x1f5)][_0xcfbb71(0x1cb)]=_0x57c656;});}[_0x5e93c0(0x1ca)](_0x42bc07){const _0x19a507=_0x5e93c0,_0x487dc7=[];let _0x5a0e26=_0x42bc07;for(;_0x5a0e26&&_0x5a0e26!==document[_0x19a507(0x192)];){const _0x589338=window[_0x19a507(0x184)](_0x5a0e26);_0x19a507(0x1d9)!==_0x589338[_0x19a507(0x1b1)]&&_0x19a507(0x1c1)!==_0x589338[_0x19a507(0x1cb)]||(_0x487dc7[_0x19a507(0x1a2)]({'element':_0x5a0e26,'originalDisplay':_0x5a0e26[_0x19a507(0x1f5)][_0x19a507(0x1b1)],'originalVisibility':_0x5a0e26[_0x19a507(0x1f5)][_0x19a507(0x1cb)]}),_0x5a0e26[_0x19a507(0x1f5)][_0x19a507(0x1b1)]=_0x19a507(0x17f),_0x5a0e26[_0x19a507(0x1f5)][_0x19a507(0x1cb)]=_0x19a507(0x187)),_0x5a0e26=_0x5a0e26[_0x19a507(0x182)];}return _0x487dc7;}[_0x5e93c0(0x1c9)](){const _0x4cbe8a=_0x5e93c0;let _0x2282bb,_0x446a06;return this[_0x4cbe8a(0x172)]?.[_0x4cbe8a(0x1af)]?(_0x2282bb=this[_0x4cbe8a(0x172)][_0x4cbe8a(0x1af)][_0x4cbe8a(0x1e8)](!0x0),_0x446a06=this[_0x4cbe8a(0x18d)](_0x2282bb)):(_0x2282bb=document[_0x4cbe8a(0x1a9)](_0x4cbe8a(0x1ee)),_0x446a06=_0x2282bb),{'calculationContainer':_0x2282bb,'targetContainer':_0x446a06};}[_0x5e93c0(0x195)](){const _0x91297c=_0x5e93c0,{calculationContainer:_0x3351fe,targetContainer:_0x113629}=this[_0x91297c(0x1c9)](),_0x440679=this[_0x91297c(0x1d0)]();this[_0x91297c(0x1d2)](_0x3351fe,_0x440679);const _0x2c7572=this[_0x91297c(0x172)]?.[_0x91297c(0x1af)]||this[_0x91297c(0x183)],_0x15e4ca=_0x2c7572?.[_0x91297c(0x182)];_0x15e4ca?_0x15e4ca[_0x91297c(0x1b0)](_0x3351fe):document[_0x91297c(0x192)][_0x91297c(0x1b0)](_0x3351fe),_0x3351fe[_0x91297c(0x1b5)]=_0x113629;const _0x21c20e=this[_0x91297c(0x1ca)](_0x15e4ca||null);return _0x3351fe[_0x91297c(0x188)],_0x3351fe[_0x91297c(0x1fd)]=_0x21c20e,_0x3351fe;}[_0x5e93c0(0x1f0)](_0x4d08a2,_0x81887c){const _0x4ae0e0=_0x5e93c0,_0x5c77e8=_0x4d08a2[_0x4ae0e0(0x1b5)]||_0x4d08a2,_0x433e4e=[],{rowCount:_0x5c22cc}=this[_0x4ae0e0(0x1d6)](_0x5c77e8,_0x81887c);if(_0x5c22cc<=this[_0x4ae0e0(0x185)][_0x4ae0e0(0x1ba)])return _0x433e4e;const _0x159454=_0x81887c[_0x4ae0e0(0x16e)]();for(;_0x159454[_0x4ae0e0(0x1e6)]>0x0;){if(this[_0x4ae0e0(0x189)](_0x4d08a2,_0x5c77e8,_0x159454)){const _0x25c2c8=_0x81887c[_0x4ae0e0(0x17d)](_0x342ab1=>!_0x159454[_0x4ae0e0(0x186)](_0x342ab1));_0x433e4e[_0x4ae0e0(0x1a2)](..._0x25c2c8);break;}if(!_0x159454[_0x4ae0e0(0x1a1)]())break;}return _0x433e4e;}[_0x5e93c0(0x1d6)](_0x1e1235,_0x5015f7){const _0x20e177=_0x5e93c0;_0x1e1235[_0x20e177(0x1ac)]='',_0x5015f7[_0x20e177(0x1a4)](_0x59ebf9=>{const _0x1b3b1d=_0x20e177;if(_0x59ebf9[_0x1b3b1d(0x1af)]){const _0x2166cd=_0x59ebf9[_0x1b3b1d(0x1af)][_0x1b3b1d(0x1e8)](!0x0);_0x1e1235[_0x1b3b1d(0x1b0)](_0x2166cd);}}),_0x1e1235[_0x20e177(0x188)];const _0x120462=_0x1e1235[_0x20e177(0x1aa)],_0x1278af=[];return Array[_0x20e177(0x18e)](_0x120462)[_0x20e177(0x1a4)](_0x35ef19=>{const _0xdf11c=_0x20e177,_0x426cd3=_0x35ef19[_0xdf11c(0x1e7)]()[_0xdf11c(0x1bb)];_0x1278af[_0xdf11c(0x1b6)](_0x41f86f=>Math[_0xdf11c(0x1c5)](_0x41f86f-_0x426cd3)<this[_0xdf11c(0x185)][_0xdf11c(0x1df)])||_0x1278af[_0xdf11c(0x1a2)](_0x426cd3);}),{'rowCount':_0x1278af[_0x20e177(0x1e6)]};}[_0x5e93c0(0x1a8)](){const _0x280a09=_0x5e93c0,_0x9a8d5f=document[_0x280a09(0x1a9)](_0x280a09(0x198));return _0x9a8d5f[_0x280a09(0x1f7)]=this[_0x280a09(0x185)][_0x280a09(0x1a7)][_0x280a09(0x1b9)],this[_0x280a09(0x185)][_0x280a09(0x1a7)][_0x280a09(0x1cd)]&&_0x9a8d5f[_0x280a09(0x1f2)][_0x280a09(0x171)](this[_0x280a09(0x185)][_0x280a09(0x1a7)][_0x280a09(0x1cd)]),_0x9a8d5f[_0x280a09(0x1d5)]=_0x280a09(0x1c4),_0x9a8d5f;}[_0x5e93c0(0x189)](_0x2ac373,_0x239c8c,_0x36959c){const _0x59d27b=_0x5e93c0;this[_0x59d27b(0x1d6)](_0x239c8c,_0x36959c);const _0x35bfb=this[_0x59d27b(0x1a8)]();_0x2ac373[_0x59d27b(0x1b0)](_0x35bfb),_0x2ac373[_0x59d27b(0x188)];const _0x4ab2f9=[..._0x239c8c[_0x59d27b(0x1aa)],_0x35bfb],_0x3dc5f4=[];_0x4ab2f9[_0x59d27b(0x1a4)](_0x50d9f2=>{const _0x231c1c=_0x59d27b,_0x51d39e=_0x50d9f2[_0x231c1c(0x1e7)]()[_0x231c1c(0x1bb)];_0x3dc5f4[_0x231c1c(0x1b6)](_0x3914a6=>Math[_0x231c1c(0x1c5)](_0x3914a6-_0x51d39e)<this[_0x231c1c(0x185)][_0x231c1c(0x1df)])||_0x3dc5f4[_0x231c1c(0x1a2)](_0x51d39e);});const _0x16d8ab=_0x3dc5f4[_0x59d27b(0x1e6)];return _0x35bfb[_0x59d27b(0x174)](),_0x16d8ab<=this[_0x59d27b(0x185)][_0x59d27b(0x1ba)];}[_0x5e93c0(0x1cc)](_0xe365cd,_0x402656){const _0x46084f=_0x5e93c0;this[_0x46084f(0x1f8)][_0x46084f(0x19a)](),this[_0x46084f(0x16f)][_0x46084f(0x19a)](),_0xe365cd[_0x46084f(0x1a4)](_0x25c8e0=>{const _0x3c0a77=_0x46084f;_0x402656[_0x3c0a77(0x186)](_0x25c8e0)?this[_0x3c0a77(0x16f)][_0x3c0a77(0x171)](_0x25c8e0):this[_0x3c0a77(0x1f8)][_0x3c0a77(0x171)](_0x25c8e0);});}[_0x5e93c0(0x19e)](_0x390346){const _0x3cffd6=_0x5e93c0;if(_0x390346>0x0&&!this[_0x3cffd6(0x1fc)]&&this[_0x3cffd6(0x17a)](),_0x390346>0x0&&this[_0x3cffd6(0x1fc)]){const _0x483cc4=''+this[_0x3cffd6(0x185)][_0x3cffd6(0x1fe)]+(_0x390346<0x63?_0x390346:'99');this[_0x3cffd6(0x1fc)][_0x3cffd6(0x1b8)]=_0x483cc4;}this[_0x3cffd6(0x1db)](),this[_0x3cffd6(0x1b7)](),this[_0x3cffd6(0x1e2)]();}[_0x5e93c0(0x1de)](_0x37c8a5,_0x3ce8c4){const _0x4ef905=_0x5e93c0;this[_0x4ef905(0x1cc)](_0x37c8a5,_0x3ce8c4),this[_0x4ef905(0x19e)](_0x3ce8c4[_0x4ef905(0x1e6)]);}[_0x5e93c0(0x1ea)](){const _0x537cb1=_0x5e93c0;this[_0x537cb1(0x183)]&&_0x537cb1(0x1ad)!=typeof IntersectionObserver&&(this[_0x537cb1(0x1c0)]=new IntersectionObserver(_0x5563a1=>{const _0x11fdb6=_0x537cb1;_0x5563a1[0x0][_0x11fdb6(0x1a6)]&&this[_0x11fdb6(0x194)]&&requestAnimationFrame(()=>{const _0x10d7a6=_0x11fdb6;this[_0x10d7a6(0x18b)]();});},{'threshold':0.01,'rootMargin':_0x537cb1(0x1cf)}),this[_0x537cb1(0x1c0)][_0x537cb1(0x1ed)](this[_0x537cb1(0x183)]));}[_0x5e93c0(0x1d3)](){const _0xb196a4=_0x5e93c0;if(!this[_0xb196a4(0x183)])return!0x1;if(!this[_0xb196a4(0x183)][_0xb196a4(0x1dd)])return!0x1;const _0x626668=this[_0xb196a4(0x183)][_0xb196a4(0x1e7)]();if(0x0===_0x626668[_0xb196a4(0x18c)]||0x0===_0x626668[_0xb196a4(0x1a0)])return!0x1;const _0x56e85e=window[_0xb196a4(0x1da)]||document[_0xb196a4(0x1f4)][_0xb196a4(0x1f9)],_0x18df30=window[_0xb196a4(0x1c7)]||document[_0xb196a4(0x1f4)][_0xb196a4(0x175)],_0x53304e=0xc8;return _0x626668[_0xb196a4(0x1ae)]>=-0xc8&&_0x626668[_0xb196a4(0x1bb)]<=_0x56e85e+_0x53304e&&_0x626668[_0xb196a4(0x1e3)]>=-0xc8&&_0x626668[_0xb196a4(0x1f3)]<=_0x18df30+_0x53304e;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x27deba=_0x4be3;(function(_0x4fb9dd,_0x4be8a8){const _0x25e137=_0x4be3,_0x197e92=_0x4fb9dd();while(!![]){try{const _0x37f8d4=parseInt(_0x25e137(0xa9))/0x1*(-parseInt(_0x25e137(0xbb))/0x2)+-parseInt(_0x25e137(0xcf))/0x3+-parseInt(_0x25e137(0xbe))/0x4*(parseInt(_0x25e137(0xca))/0x5)+-parseInt(_0x25e137(0xbf))/0x6+parseInt(_0x25e137(0xc4))/0x7*(parseInt(_0x25e137(0xb2))/0x8)+-parseInt(_0x25e137(0xb1))/0x9*(-parseInt(_0x25e137(0xe4))/0xa)+parseInt(_0x25e137(0xd0))/0xb*(parseInt(_0x25e137(0xcd))/0xc);if(_0x37f8d4===_0x4be8a8)break;else _0x197e92['push'](_0x197e92['shift']());}catch(_0x28d27f){_0x197e92['push'](_0x197e92['shift']());}}}(_0x5537,0x7e48a));import{ButtonView as _0x277256,IconView as _0x211f34}from'ckeditor5/src/ui.js';import{IconClose as _0x98edc3,IconDocument as _0x3c6a00,IconFileUpload as _0x58f253,IconLink as _0x1a7bf6,IconSelection as _0x398595}from'@ckeditor/ckeditor5-icons';function _0x5537(){const _0x109e5d=['fire','ck-ai-chat-context-controls__chip-tooltip','88eplVmj','ck-ai-chat-context-chip__type-icon','ck-ai-chat-context-chip_document','19556gIOudT','2770170HKoMHt','classList','uiId','setTemplate','type','102634VSaPmu','document','small','_createTemplateChildren','set','_initializeProperties','820KVYlIC','removeContextItemChip','webkitAnimationEnd','1128IVqMAo','_createTemplateAttributes','1472856JZfRcv','270259KElfyE','extendTemplate','_setupRemoveButtonEvent','_createLabelElement','_handleAnimationEndOnce','isVisible','addEventListener','removeEventListener','render','readonly','length','itemType','ck-ai-chat-context-chip_wide','add','ck-ai-chat-context-chip','remove','ck-ai-chat-context-chip_new-chip','selection','locale','disableAnimationOnEnter','5962850zIicaD','slice','_setupTemplate','execute','div','isLoading','_createIconView','span','_createLoaderIcon','20742EVLgBM','tooltip','ck-ai-chat-context-chip__label','content','_isAnimationOnEnterEnabled','animationend','label','bind','9jnxGQV','152LGBwnf','element','_createRemoveButton','ck-hidden','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','lastIndexOf','bindTemplate'];_0x5537=function(){return _0x109e5d;};return _0x5537();}import{getTranslation as _0x555012}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x44e1f6}from'../../../aicore/ui/aispinner.js';const xn={'file':_0x58f253,'document':_0x3c6a00,'web-resource':_0x1a7bf6,'text':_0x58f253,'selection':_0x398595,'mcp-tool-context':_0x3c6a00},bn=_0x27deba(0xde),wn=_0x27deba(0xdc),Tn=_0x27deba(0xbd),En=_0x27deba(0xab),fn=_0x27deba(0xbc),An=_0x27deba(0xba),Cn='n';export class AIChatContextItemButtonView extends _0x277256{constructor(_0x5e4998,_0x314bd2,_0x1b2795,_0x256ead,_0x3d2cb2=!0x1){const _0x1173f7=_0x27deba;super(_0x5e4998),this[_0x1173f7(0xad)]=_0x256ead,this[_0x1173f7(0xc9)](_0x314bd2,_0x1b2795,_0x3d2cb2),this[_0x1173f7(0xa2)]();}[_0x27deba(0xd8)](){const _0x3069e4=_0x27deba;super[_0x3069e4(0xd8)](),this[_0x3069e4(0xad)]&&this[_0x3069e4(0xb3)]&&(this[_0x3069e4(0xb3)][_0x3069e4(0xc0)][_0x3069e4(0xdd)](_0x3069e4(0xe0)),this[_0x3069e4(0xd4)](this[_0x3069e4(0xb3)],()=>{const _0x40678f=_0x3069e4;this[_0x40678f(0xb3)]&&this[_0x40678f(0xb3)][_0x40678f(0xc0)][_0x40678f(0xdf)](_0x40678f(0xe0));}));}[_0x27deba(0xe3)](){const _0x3569a9=_0x27deba;this[_0x3569a9(0xad)]=!0x1,this[_0x3569a9(0xb3)]&&this[_0x3569a9(0xb3)][_0x3569a9(0xc0)][_0x3569a9(0xdf)](_0x3569a9(0xe0));}[_0x27deba(0xc9)](_0x18eaca,_0x539905,_0x14c2bc){const _0x14bdef=_0x27deba;this[_0x14bdef(0xc8)](_0x14bdef(0xaf),_0x18eaca[_0x14bdef(0xaf)]),this[_0x14bdef(0xc8)](_0x14bdef(0xaa),!0x0),this[_0x14bdef(0xc8)](_0x14bdef(0xdb),_0x18eaca[_0x14bdef(0xc3)]),this[_0x14bdef(0xc8)]('id',_0x18eaca[_0x14bdef(0xc1)]),this[_0x14bdef(0xc8)](_0x14bdef(0xd9),_0x539905),this[_0x14bdef(0xc8)](_0x14bdef(0xa5),_0x14c2bc);}[_0x27deba(0xa2)](){const _0x644adc=_0x27deba,_0x1775db=this[_0x644adc(0xa6)](),_0xbde957=this[_0x644adc(0xb4)](),_0xca08d4=this[_0x644adc(0xb8)];this[_0x644adc(0xc2)]({'tag':_0x644adc(0xa4),'attributes':this[_0x644adc(0xce)](_0xca08d4),'children':this[_0x644adc(0xc7)](_0x1775db,_0xbde957,_0xca08d4)});}[_0x27deba(0xce)](_0x52fd05){const _0x141d53=_0x27deba;return{'class':[bn,_0x52fd05['if'](_0x141d53(0xdb),Tn,_0x4ae7e6=>_0x141d53(0xc5)==_0x4ae7e6),_0x52fd05['if'](_0x141d53(0xdb),wn,_0x5def70=>_0x141d53(0xe1)==_0x5def70)],'data-cke-tooltip-text':_0x52fd05['to'](_0x141d53(0xaf),In),'data-cke-tooltip-position':Cn,'data-cke-tooltip-class':An};}[_0x27deba(0xc7)](_0x5851eb,_0x2ddaf4,_0x55bcb0){const _0xf45e58=_0x27deba,_0x2cf26=this[_0xf45e58(0xd3)](_0x55bcb0),_0x21184a=this[_0xf45e58(0xa8)]();return this[_0xf45e58(0xd9)]?[_0x5851eb,_0x2cf26]:[_0x5851eb,_0x21184a,_0x2cf26,_0x2ddaf4];}[_0x27deba(0xd3)](_0x887f0){const _0x36ecf7=_0x27deba;return{'tag':_0x36ecf7(0xa7),'attributes':{'class':En},'children':[{'text':_0x887f0['to'](_0x36ecf7(0xaf))}]};}[_0x27deba(0xb4)](){const _0x49a2fc=_0x27deba,_0x5252bd=new _0x277256(this[_0x49a2fc(0xe2)]);return _0x5252bd[_0x49a2fc(0xc8)]({'label':_0x555012(this[_0x49a2fc(0xe2)],_0x49a2fc(0xb6)),'icon':_0x98edc3}),this[_0x49a2fc(0xd2)](_0x5252bd),_0x5252bd;}[_0x27deba(0xd2)](_0x206a03){const _0x37a878=_0x27deba;_0x206a03['on'](_0x37a878(0xa3),()=>{const _0x2d31c1=_0x37a878;this[_0x2d31c1(0xb9)](_0x2d31c1(0xcb),this['id']);});}[_0x27deba(0xa6)](){const _0x476440=_0x27deba,_0x57ca41=this[_0x476440(0xb8)],_0x3a02f7=new _0x211f34();return _0x3a02f7[_0x476440(0xac)]=xn[this[_0x476440(0xdb)]],_0x3a02f7[_0x476440(0xd1)]({'attributes':{'class':[fn,_0x57ca41['if'](_0x476440(0xa5),_0x476440(0xb5),_0x50af05=>_0x50af05)]}}),_0x3a02f7;}[_0x27deba(0xd4)](_0x4403ec,_0x471f34){const _0x17ee8f=_0x27deba;if(!_0x4403ec)return;const _0x3bdee7=()=>{const _0x5f1255=_0x4be3;_0x471f34(),_0x4403ec[_0x5f1255(0xd7)](_0x5f1255(0xae),_0x3bdee7),_0x4403ec[_0x5f1255(0xd7)](_0x5f1255(0xcc),_0x3bdee7);};_0x4403ec[_0x17ee8f(0xd6)](_0x17ee8f(0xae),_0x3bdee7),_0x4403ec[_0x17ee8f(0xd6)](_0x17ee8f(0xcc),_0x3bdee7);}[_0x27deba(0xa8)](){const _0x351ee1=_0x27deba,_0x5a467d=new _0x44e1f6(_0x351ee1(0xc6));return _0x5a467d[_0x351ee1(0xb0)](_0x351ee1(0xd5))['to'](this,_0x351ee1(0xa5),_0x3bc501=>_0x3bc501),_0x5a467d;}}function _0x4be3(_0x383aaf,_0x3d85af){const _0x5537e0=_0x5537();return _0x4be3=function(_0x4be329,_0x2a2369){_0x4be329=_0x4be329-0xa1;let _0x9a9513=_0x5537e0[_0x4be329];return _0x9a9513;},_0x4be3(_0x383aaf,_0x3d85af);}function In(_0x21880a){const _0x208152=_0x27deba;if(!_0x21880a)return _0x21880a;if(_0x21880a[_0x208152(0xda)]<=0x78)return _0x21880a;const _0x55a82c=_0x21880a[_0x208152(0xa1)](0x0,0x78),_0x599d10=_0x55a82c[_0x208152(0xb7)]('\x20');return(_0x599d10>0x0?_0x55a82c[_0x208152(0xa1)](0x0,_0x599d10):_0x55a82c)+'…';}
23
+ const _0x2c745a=_0x6219;(function(_0x2b0c9a,_0x4247a1){const _0x2dddc8=_0x6219,_0x74d069=_0x2b0c9a();while(!![]){try{const _0x14eb76=-parseInt(_0x2dddc8(0x181))/0x1+parseInt(_0x2dddc8(0x16e))/0x2+parseInt(_0x2dddc8(0x195))/0x3+parseInt(_0x2dddc8(0x1a0))/0x4+parseInt(_0x2dddc8(0x17f))/0x5*(-parseInt(_0x2dddc8(0x180))/0x6)+-parseInt(_0x2dddc8(0x179))/0x7*(-parseInt(_0x2dddc8(0x1a7))/0x8)+-parseInt(_0x2dddc8(0x174))/0x9;if(_0x14eb76===_0x4247a1)break;else _0x74d069['push'](_0x74d069['shift']());}catch(_0x3863dd){_0x74d069['push'](_0x74d069['shift']());}}}(_0x10c0,0xe2c3c));import{ButtonView as _0x235338,IconView as _0x4e5599}from'ckeditor5/src/ui.js';import{IconClose as _0x2c1d08,IconDocument as _0x326aa5,IconFileUpload as _0x2e3b09,IconLink as _0x647c8a,IconSelection as _0xe76cb9}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x1f6761}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x40a358}from'../../../aicore/ui/aispinner.js';function _0x10c0(){const _0x4622a4=['slice','ck-ai-chat-context-controls__chip-tooltip','isLoading','32822100ZYaiQS','_initializeProperties','_createIconView','_setupTemplate','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','6321847ymaYWO','_isAnimationOnEnterEnabled','locale','tooltip','_createLoaderIcon','remove','4124125gjAMOr','12jsbcBn','220742WBXEwK','ck-ai-chat-context-chip_wide','removeContextItemChip','extendTemplate','_createRemoveButton','addEventListener','readonly','_createLabelElement','webkitAnimationEnd','bind','type','label','ck-ai-chat-context-chip','setTemplate','removeEventListener','ck-ai-chat-context-chip__label','element','uiId','fire','ck-hidden','5518206cwEJGE','div','_handleAnimationEndOnce','classList','_setupRemoveButtonEvent','execute','_createTemplateChildren','bindTemplate','lastIndexOf','ck-ai-chat-context-chip_new-chip','content','6002372NccRPH','isVisible','selection','span','itemType','document','ck-ai-chat-context-chip_document','16fQIvdl','_createTemplateAttributes','disableAnimationOnEnter','set','length','ck-ai-chat-context-chip__type-icon','add','animationend','2599766lLsLiX','render','small'];_0x10c0=function(){return _0x4622a4;};return _0x10c0();}const xn={'file':_0x2e3b09,'document':_0x326aa5,'web-resource':_0x647c8a,'text':_0x2e3b09,'selection':_0xe76cb9,'mcp-tool-context':_0x326aa5},bn=_0x2c745a(0x18d),wn=_0x2c745a(0x182),Tn=_0x2c745a(0x1a6),En=_0x2c745a(0x190),fn=_0x2c745a(0x1ac),An=_0x2c745a(0x172),Cn='n';function _0x6219(_0x3c8b12,_0x1dda31){const _0x10c0a4=_0x10c0();return _0x6219=function(_0x621924,_0xc266d7){_0x621924=_0x621924-0x16c;let _0xb17533=_0x10c0a4[_0x621924];return _0xb17533;},_0x6219(_0x3c8b12,_0x1dda31);}export class AIChatContextItemButtonView extends _0x235338{constructor(_0x53717a,_0x254a7e,_0x5914dc,_0x35951a,_0x5615a6=!0x1){const _0x436001=_0x2c745a;super(_0x53717a),this[_0x436001(0x17a)]=_0x35951a,this[_0x436001(0x175)](_0x254a7e,_0x5914dc,_0x5615a6),this[_0x436001(0x177)]();}[_0x2c745a(0x16f)](){const _0xbae96b=_0x2c745a;super[_0xbae96b(0x16f)](),this[_0xbae96b(0x17a)]&&this[_0xbae96b(0x191)]&&(this[_0xbae96b(0x191)][_0xbae96b(0x198)][_0xbae96b(0x16c)](_0xbae96b(0x19e)),this[_0xbae96b(0x197)](this[_0xbae96b(0x191)],()=>{const _0x6cbb59=_0xbae96b;this[_0x6cbb59(0x191)]&&this[_0x6cbb59(0x191)][_0x6cbb59(0x198)][_0x6cbb59(0x17e)](_0x6cbb59(0x19e));}));}[_0x2c745a(0x1a9)](){const _0xf6535d=_0x2c745a;this[_0xf6535d(0x17a)]=!0x1,this[_0xf6535d(0x191)]&&this[_0xf6535d(0x191)][_0xf6535d(0x198)][_0xf6535d(0x17e)](_0xf6535d(0x19e));}[_0x2c745a(0x175)](_0x52f175,_0x12f269,_0x996750){const _0x41bfa8=_0x2c745a;this[_0x41bfa8(0x1aa)](_0x41bfa8(0x18c),_0x52f175[_0x41bfa8(0x18c)]),this[_0x41bfa8(0x1aa)](_0x41bfa8(0x17c),!0x0),this[_0x41bfa8(0x1aa)](_0x41bfa8(0x1a4),_0x52f175[_0x41bfa8(0x18b)]),this[_0x41bfa8(0x1aa)]('id',_0x52f175[_0x41bfa8(0x192)]),this[_0x41bfa8(0x1aa)](_0x41bfa8(0x187),_0x12f269),this[_0x41bfa8(0x1aa)](_0x41bfa8(0x173),_0x996750);}[_0x2c745a(0x177)](){const _0x36b12b=_0x2c745a,_0x563442=this[_0x36b12b(0x176)](),_0x59f3ec=this[_0x36b12b(0x185)](),_0x3532bb=this[_0x36b12b(0x19c)];this[_0x36b12b(0x18e)]({'tag':_0x36b12b(0x196),'attributes':this[_0x36b12b(0x1a8)](_0x3532bb),'children':this[_0x36b12b(0x19b)](_0x563442,_0x59f3ec,_0x3532bb)});}[_0x2c745a(0x1a8)](_0x23aa6b){const _0x1f6d21=_0x2c745a;return{'class':[bn,_0x23aa6b['if'](_0x1f6d21(0x1a4),Tn,_0xa00341=>_0x1f6d21(0x1a5)==_0xa00341),_0x23aa6b['if'](_0x1f6d21(0x1a4),wn,_0x3c82a8=>_0x1f6d21(0x1a2)==_0x3c82a8)],'data-cke-tooltip-text':_0x23aa6b['to'](_0x1f6d21(0x18c),In),'data-cke-tooltip-position':Cn,'data-cke-tooltip-class':An};}[_0x2c745a(0x19b)](_0x102e26,_0x5dbb24,_0x42f385){const _0x29e4bf=_0x2c745a,_0x425263=this[_0x29e4bf(0x188)](_0x42f385),_0x3a2a38=this[_0x29e4bf(0x17d)]();return this[_0x29e4bf(0x187)]?[_0x102e26,_0x425263]:[_0x102e26,_0x3a2a38,_0x425263,_0x5dbb24];}[_0x2c745a(0x188)](_0x26c144){const _0x3edb47=_0x2c745a;return{'tag':_0x3edb47(0x1a3),'attributes':{'class':En},'children':[{'text':_0x26c144['to'](_0x3edb47(0x18c))}]};}[_0x2c745a(0x185)](){const _0x4e78a2=_0x2c745a,_0x4609fc=new _0x235338(this[_0x4e78a2(0x17b)]);return _0x4609fc[_0x4e78a2(0x1aa)]({'label':_0x1f6761(this[_0x4e78a2(0x17b)],_0x4e78a2(0x178)),'icon':_0x2c1d08}),this[_0x4e78a2(0x199)](_0x4609fc),_0x4609fc;}[_0x2c745a(0x199)](_0x524b52){const _0x14753f=_0x2c745a;_0x524b52['on'](_0x14753f(0x19a),()=>{const _0x1be66c=_0x14753f;this[_0x1be66c(0x193)](_0x1be66c(0x183),this['id']);});}[_0x2c745a(0x176)](){const _0x50f8ab=_0x2c745a,_0x16ca38=this[_0x50f8ab(0x19c)],_0x38a86f=new _0x4e5599();return _0x38a86f[_0x50f8ab(0x19f)]=xn[this[_0x50f8ab(0x1a4)]],_0x38a86f[_0x50f8ab(0x184)]({'attributes':{'class':[fn,_0x16ca38['if'](_0x50f8ab(0x173),_0x50f8ab(0x194),_0x34c43d=>_0x34c43d)]}}),_0x38a86f;}[_0x2c745a(0x197)](_0x1f5ae8,_0x125fd8){const _0x35c06b=_0x2c745a;if(!_0x1f5ae8)return;const _0x115128=()=>{const _0x2f225f=_0x6219;_0x125fd8(),_0x1f5ae8[_0x2f225f(0x18f)](_0x2f225f(0x16d),_0x115128),_0x1f5ae8[_0x2f225f(0x18f)](_0x2f225f(0x189),_0x115128);};_0x1f5ae8[_0x35c06b(0x186)](_0x35c06b(0x16d),_0x115128),_0x1f5ae8[_0x35c06b(0x186)](_0x35c06b(0x189),_0x115128);}[_0x2c745a(0x17d)](){const _0x5c071d=_0x2c745a,_0x7e8a22=new _0x40a358(_0x5c071d(0x170));return _0x7e8a22[_0x5c071d(0x18a)](_0x5c071d(0x1a1))['to'](this,_0x5c071d(0x173),_0x242385=>_0x242385),_0x7e8a22;}}function In(_0x579f33){const _0x2a0b82=_0x2c745a;if(!_0x579f33)return _0x579f33;if(_0x579f33[_0x2a0b82(0x1ab)]<=0x78)return _0x579f33;const _0x1b5318=_0x579f33[_0x2a0b82(0x171)](0x0,0x78),_0x39823c=_0x1b5318[_0x2a0b82(0x19d)]('\x20');return(_0x39823c>0x0?_0x1b5318[_0x2a0b82(0x171)](0x0,_0x39823c):_0x1b5318)+'…';}