@ckeditor/ckeditor5-ai 47.7.0 → 47.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (318) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +5 -5
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +15 -15
  150. package/src/aiactions/aiactions.js +1 -1
  151. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  152. package/src/aiactions/model/aiactionsreply.js +1 -1
  153. package/src/aiassistant/adapters/aiadapter.js +1 -1
  154. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  155. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  156. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  157. package/src/aiassistant/aiassistant.js +1 -1
  158. package/src/aiassistant/aiassistantediting.js +1 -1
  159. package/src/aiassistant/aiassistantui.js +1 -1
  160. package/src/aiassistant/legacyerrors.js +1 -1
  161. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  162. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  163. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  164. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  165. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  166. package/src/aiassistant/ui/form/aiformview.js +1 -1
  167. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  168. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  169. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  170. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  171. package/src/aiassistant/utils/common-translations.js +1 -1
  172. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  173. package/src/aiballoon/aiballoon.js +1 -1
  174. package/src/aiballoon/ui/aiballoonview.js +1 -1
  175. package/src/aichat/aichat.js +1 -1
  176. package/src/aichat/aichatballoon.js +1 -1
  177. package/src/aichat/aichatcontroller.js +1 -1
  178. package/src/aichat/aichatui.js +1 -1
  179. package/src/aichat/model/aichatcontext.js +1 -1
  180. package/src/aichat/model/aichatconversation.js +1 -1
  181. package/src/aichat/model/aichatinteraction.js +1 -1
  182. package/src/aichat/ui/aichatballoonview.js +1 -1
  183. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  184. package/src/aichat/ui/aichatfeedview.js +1 -1
  185. package/src/aichat/ui/aichatheaderview.js +1 -1
  186. package/src/aichat/ui/aichatview.js +1 -1
  187. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  188. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  189. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  190. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  191. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  192. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  193. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  194. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  195. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  196. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  197. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  198. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  199. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  200. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  201. package/src/aichat/ui/feed/aichatfeedcustomelementview.js +1 -1
  202. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  203. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  204. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  205. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  206. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  207. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  208. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  209. package/src/aichat/utils/eventnames.js +1 -1
  210. package/src/aichat/utils/promisequeue.js +1 -1
  211. package/src/aichathistory/aichathistory.js +1 -1
  212. package/src/aichathistory/aichathistorycontroller.js +1 -1
  213. package/src/aichathistory/aichathistoryui.js +1 -1
  214. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  215. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  216. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  217. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  218. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  219. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  220. package/src/aichatshortcuts/aichatshortcuts.js +1 -1
  221. package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
  222. package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
  223. package/src/aicore/aiconnector.js +1 -1
  224. package/src/aicore/aiediting.js +1 -1
  225. package/src/aicore/model/aicapabilities.js +1 -1
  226. package/src/aicore/model/aicontext.js +1 -1
  227. package/src/aicore/model/aiinteraction.js +1 -1
  228. package/src/aicore/model/aimodels.js +1 -1
  229. package/src/aicore/model/aireply.js +1 -1
  230. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  231. package/src/aicore/pipeline/airesponseparser.js +2 -2
  232. package/src/aicore/ui/aidisclaimerview.js +1 -1
  233. package/src/aicore/ui/aiskeleton.js +1 -1
  234. package/src/aicore/ui/aispinner.js +1 -1
  235. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  236. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  237. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  238. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
  239. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
  240. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
  241. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  242. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  243. package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
  244. package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
  245. package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
  246. package/src/aicore/utils/common-translations.js +1 -1
  247. package/src/aicore/utils/createresizebutton.js +1 -1
  248. package/src/aicore/utils/documentposition.js +1 -1
  249. package/src/aicore/utils/documentrange.js +1 -1
  250. package/src/aicore/utils/eventnames.js +1 -1
  251. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  252. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  253. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  254. package/src/aicore/utils/htmlparser.js +1 -1
  255. package/src/aicore/utils/htmlstreamer.js +1 -1
  256. package/src/aicore/utils/scrollmanager.js +1 -1
  257. package/src/aieditorintegration/aieditorintegration.js +1 -1
  258. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  259. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  260. package/src/aiquickactions/aiquickactions.js +1 -1
  261. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  262. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  263. package/src/aiquickactions/aiquickactionsui.js +1 -1
  264. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  265. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  266. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  267. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
  268. package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
  269. package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
  270. package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
  271. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  272. package/src/aireviewcore/aireviewcorecontroller.js +1 -1
  273. package/src/aireviewcore/aireviewcoreediting.js +1 -1
  274. package/src/aireviewcore/aireviewcoreui.js +1 -1
  275. package/src/aireviewcore/model/aireviewcheck.js +1 -1
  276. package/src/aireviewcore/model/aireviewchecklist.js +1 -1
  277. package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
  278. package/src/aireviewcore/model/aireviewcheckresultchange.js +1 -1
  279. package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
  280. package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
  281. package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
  282. package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
  283. package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
  284. package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
  285. package/src/aireviewcore/ui/aireviewcoregeneralerrorview.js +1 -1
  286. package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
  287. package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
  288. package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
  289. package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
  290. package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
  291. package/src/aireviewcore/ui/aireviewcoreview.js +1 -1
  292. package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
  293. package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +1 -1
  294. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  295. package/src/aireviewmode/aireviewmode.js +1 -1
  296. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  297. package/src/aireviewmode/aireviewmodeui.js +1 -1
  298. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  299. package/src/aireviewmode/model/aireviewcheckextra.js +1 -1
  300. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  301. package/src/aireviewmode/model/aireviewextracheckrun.js +1 -1
  302. package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
  303. package/src/aitabs/aitabs.js +1 -1
  304. package/src/aitabs/aitabsmainview.js +1 -1
  305. package/src/aitabs/tabs/aitabsview.js +1 -1
  306. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  307. package/src/aitabs/tabs/tabpanelview.js +1 -1
  308. package/src/aitranslate/aitranslate.js +1 -1
  309. package/src/aitranslate/aitranslatecontroller.js +1 -1
  310. package/src/aitranslate/aitranslateui.js +1 -1
  311. package/src/aitranslate/model/aitranslatecheck.js +1 -1
  312. package/src/aitranslate/model/aitranslatechecklist.js +1 -1
  313. package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
  314. package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
  315. package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
  316. package/src/errors.js +1 -1
  317. package/src/errorsmap.js +1 -1
  318. package/src/index.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2c5f9a=_0x1173;(function(_0x44d938,_0x460805){const _0x4b16e0=_0x1173,_0x33da34=_0x44d938();while(!![]){try{const _0x4349b5=parseInt(_0x4b16e0(0x85))/0x1+parseInt(_0x4b16e0(0xf1))/0x2+-parseInt(_0x4b16e0(0x8b))/0x3+parseInt(_0x4b16e0(0xe0))/0x4*(-parseInt(_0x4b16e0(0xb3))/0x5)+-parseInt(_0x4b16e0(0x91))/0x6*(-parseInt(_0x4b16e0(0xb8))/0x7)+-parseInt(_0x4b16e0(0xbd))/0x8+-parseInt(_0x4b16e0(0xcf))/0x9*(-parseInt(_0x4b16e0(0xcd))/0xa);if(_0x4349b5===_0x460805)break;else _0x33da34['push'](_0x33da34['shift']());}catch(_0x4346c2){_0x33da34['push'](_0x33da34['shift']());}}}(_0x3157,0xc4f91));import{CKEditorError as _0x3c3e8f,EmitterMixin as _0x569678,logWarning as _0x239af2}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x3ef124}from'../../aicore/model/aiinteraction.js';function _0x1173(_0x48e103,_0x173132){const _0x3157d6=_0x3157();return _0x1173=function(_0x1173e1,_0x8229ca){_0x1173e1=_0x1173e1-0x80;let _0xf6ea23=_0x3157d6[_0x1173e1];return _0xf6ea23;},_0x1173(_0x48e103,_0x173132);}import{AIChatContext as _0x4fcde2,AI_CONTEXT_MODEL_EVENT_NAMES as _0x12e4a2}from'./aichatcontext.js';import{AICapabilities as _0x45c450,CAPABILITIES_MODEL_EVENT_NAMES as _0x1573fd}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x172ed3}from'./aichatinteraction.js';import{errorsMap as _0x49dc51}from'../../errorsmap.js';export class AIChatConversation extends _0x569678(){['id'];[_0x2c5f9a(0x80)]=!0x1;[_0x2c5f9a(0xf2)];[_0x2c5f9a(0xda)]=[];[_0x2c5f9a(0xb2)];[_0x2c5f9a(0xdf)];[_0x2c5f9a(0x8f)];[_0x2c5f9a(0xa9)];constructor(_0x84d526){const _0x40e6bb=_0x2c5f9a;super(),this[_0x40e6bb(0xa9)]=_0x84d526,this[_0x40e6bb(0x8f)]=_0x84d526[_0x40e6bb(0x8f)],this[_0x40e6bb(0xbc)]=_0x84d526[_0x40e6bb(0xbc)],this['id']=_0x84d526[_0x40e6bb(0xf6)],this[_0x40e6bb(0xf2)]=_0x84d526[_0x40e6bb(0xf2)];}async[_0x2c5f9a(0xe4)](_0x3c4132){const _0x1496b0=_0x2c5f9a;try{this[_0x1496b0(0xe3)]=new _0x4fcde2({'connector':this[_0x1496b0(0x8f)],'config':_0x3c4132,'ownerId':this['id']}),this[_0x1496b0(0xe3)][_0x1496b0(0x90)](..._0x12e4a2)['to'](this),this[_0x1496b0(0xe3)][_0x1496b0(0xe4)](),this[_0x1496b0(0xfb)]=new _0x45c450(),this[_0x1496b0(0xfb)][_0x1496b0(0x90)](..._0x1573fd)['to'](this),this[_0x1496b0(0xfb)][_0x1496b0(0xe4)]();const _0x144d7f=await this[_0x1496b0(0xbc)][_0x1496b0(0xf3)]();this[_0x1496b0(0xc3)](_0x1496b0(0x9e),{'availableModels':_0x144d7f});const _0x4a7f04=await this[_0x1496b0(0xbc)][_0x1496b0(0x92)](this[_0x1496b0(0xa9)][_0x1496b0(0xdc)]);_0x4a7f04&&await this[_0x1496b0(0xd5)](_0x4a7f04);}catch(_0x1c6d4c){const _0x4a1cd1=new _0x3c3e8f(_0x1496b0(0x82),null,{'message':_0x1c6d4c[_0x1496b0(0xb1)]||_0x1c6d4c});_0x4a1cd1[_0x1496b0(0xd8)]=_0x1c6d4c[_0x1496b0(0xd8)],this[_0x1496b0(0xc3)](_0x1496b0(0xf7),{'error':_0x4a1cd1});}}async[_0x2c5f9a(0x9b)](){const _0x510592=_0x2c5f9a;if(this[_0x510592(0x80)])throw new _0x3c3e8f(_0x510592(0x99),null,{'conversation':this});if(!this[_0x510592(0xdf)])throw new _0x3c3e8f(_0x510592(0x8d),null,{'conversation':this});try{const {id:_0x91c7ab}=await this[_0x510592(0x8f)][_0x510592(0xa1)](this['id'],this[_0x510592(0xa9)][_0x510592(0xe1)])[_0x510592(0x83)]();this['id']=_0x91c7ab,this[_0x510592(0x80)]=!0x0,this[_0x510592(0xc3)](_0x510592(0xc9),{'conversationId':this['id'],'selectedModel':this[_0x510592(0xdf)]});}catch(_0xe72a5e){const _0x1cd468=new _0x3c3e8f(_0x510592(0xe9),null,{'message':_0xe72a5e[_0x510592(0xb1)],'conversationId':this['id']});throw _0x1cd468[_0x510592(0xd8)]=_0xe72a5e[_0x510592(0xd8)],this[_0x510592(0xc3)](_0x510592(0xf7),{'error':_0x1cd468}),_0x1cd468;}}async[_0x2c5f9a(0x81)](_0x4cea5f,_0x1a62dc){const _0x28b81d=_0x2c5f9a;try{const _0x5d6899=await this[_0x28b81d(0x8f)][_0x28b81d(0xc1)](_0x4cea5f)[_0x28b81d(0x83)](),_0x4dfbdf=await this[_0x28b81d(0x8f)][_0x28b81d(0xfd)](_0x4cea5f)[_0x28b81d(0xee)](),_0xb17d40=_0x4dfbdf[0x0][_0x28b81d(0xd3)];this[_0x28b81d(0x80)]=!0x0,this['id']=_0x5d6899['id'],_0x28b81d(0xde)in _0x5d6899?this[_0x28b81d(0xc3)](_0x28b81d(0xa7),_0x5d6899[_0x28b81d(0xde)],!0x0):this[_0x28b81d(0xc3)](_0x28b81d(0xa7),'',!0x0);const _0x30e097=(await this[_0x28b81d(0xbc)][_0x28b81d(0xc0)]())[_0x28b81d(0x8c)](_0x386da6=>_0x386da6['id'][_0x28b81d(0xe5)]()===_0xb17d40[_0x28b81d(0xe5)]());return this[_0x28b81d(0xdf)]=_0x30e097,this[_0x28b81d(0xc3)](_0x28b81d(0xeb),{'selectedModel':_0x30e097,'isDisabled':!0x0}),await this[_0x28b81d(0xb7)](_0x4dfbdf,_0x1a62dc,_0xb17d40),this[_0x28b81d(0xb2)]=void 0x0,this;}catch(_0x21c1aa){const _0xb119f1=new _0x3c3e8f(_0x28b81d(0xb9),null,{'message':_0x21c1aa[_0x28b81d(0xb1)],'conversationId':_0x4cea5f});throw _0xb119f1[_0x28b81d(0xd8)]=_0x21c1aa[_0x28b81d(0xd8)],this[_0x28b81d(0xc3)](_0x28b81d(0xf7),{'error':_0xb119f1}),_0xb119f1;}}async[_0x2c5f9a(0xb7)](_0x27c2bb,_0x1be3fc,_0x50d821){const _0x7bdea0=_0x2c5f9a;let _0x1b3f90;for(const _0x48e5ac of _0x27c2bb)if(_0x7bdea0(0xf5)===_0x48e5ac[_0x7bdea0(0xad)]){const _0x9af883=await this[_0x7bdea0(0xca)](_0x48e5ac),_0x293606={'isReasoningEnabled':Object[_0x7bdea0(0xab)](_0x48e5ac[_0x7bdea0(0x84)],_0x7bdea0(0xd6)),'isWebSearchEnabled':Object[_0x7bdea0(0xab)](_0x48e5ac[_0x7bdea0(0x84)],_0x7bdea0(0xdb))};_0x1b3f90=this[_0x7bdea0(0xef)]({'userMessage':_0x48e5ac[_0x7bdea0(0x87)],'contextItems':_0x9af883,'capabilities':_0x293606,'modelId':_0x50d821,'attributes':_0x48e5ac[_0x7bdea0(0xd4)]}),this[_0x7bdea0(0xb2)]=_0x1b3f90,this[_0x7bdea0(0xe3)][_0x7bdea0(0xa4)](this[_0x7bdea0(0xb2)][_0x7bdea0(0xd9)]);}else{if(_0x7bdea0(0xf8)===_0x48e5ac[_0x7bdea0(0xad)]&&_0x1b3f90){const _0x3f0997=[];for(const _0x3ca42c of _0x48e5ac[_0x7bdea0(0xa8)])switch(_0x3ca42c[_0x7bdea0(0xe2)]){case _0x7bdea0(0xbf):case _0x7bdea0(0x96):{const _0x140c23=_0x1b3f90[_0x7bdea0(0xae)]()?.[_0x7bdea0(0xe8)]!==_0x1be3fc;_0x1b3f90[_0x7bdea0(0x9d)]=_0x1b3f90[_0x7bdea0(0xfa)]({'type':_0x3ca42c[_0x7bdea0(0xe2)],'isDone':!0x0,'interactionId':_0x1b3f90['id'],'areActionsDisabled':_0x140c23}),_0x1b3f90[_0x7bdea0(0x9d)][_0x7bdea0(0xe7)](_0x3ca42c[_0x7bdea0(0xa8)]),_0x3f0997[_0x7bdea0(0xbb)]>0x0&&(_0x1b3f90[_0x7bdea0(0x9d)][_0x7bdea0(0xb6)]=_0x3f0997[_0x7bdea0(0xdd)](0x0));break;}case _0x7bdea0(0xd0):_0x3f0997[_0x7bdea0(0xc4)](_0x3ca42c);break;case _0x7bdea0(0x94):{const {data:_0x5f0165,attributes:_0x1eae1f}=JSON[_0x7bdea0(0xf9)](_0x3ca42c[_0x7bdea0(0xa8)]);_0x1b3f90[_0x7bdea0(0xa0)]({'toolName':_0x3ca42c[_0x7bdea0(0xc8)],'data':_0x5f0165,'attributes':_0x1eae1f});break;}}}}}async[_0x2c5f9a(0xca)](_0x4f328d){const _0x2098fd=_0x2c5f9a,_0x289314=new Map();if(!_0x4f328d[_0x2098fd(0xa8)])return _0x289314;for(const _0x43ba5a of _0x4f328d[_0x2098fd(0xa8)]){const _0x337b42=await this[_0x2098fd(0xe3)][_0x2098fd(0xbe)](_0x43ba5a);_0x337b42&&_0x289314[_0x2098fd(0xfc)](_0x337b42['id'],_0x337b42);}return _0x289314;}async[_0x2c5f9a(0xc6)]({userMessage:_0x1e46e3,attributes:_0x536786}){const _0x4782ba=_0x2c5f9a;if(!this[_0x4782ba(0x80)])throw new _0x3c3e8f(_0x4782ba(0xf0),null,{'conversation':this});if(this[_0x4782ba(0xb2)])throw new _0x3c3e8f(_0x4782ba(0xb0),null,{'conversation':this});try{const _0x354aa6=this[_0x4782ba(0xe3)][_0x4782ba(0xd1)](),_0x6b3f36=this[_0x4782ba(0xfb)][_0x4782ba(0x8a)](),_0x5040ef=this[_0x4782ba(0xdf)]['id'];this[_0x4782ba(0xb2)]=this[_0x4782ba(0xef)]({'userMessage':_0x1e46e3,'contextItems':_0x354aa6,'capabilities':_0x6b3f36,'modelId':_0x5040ef,'attributes':_0x536786}),await this[_0x4782ba(0xb2)][_0x4782ba(0x9b)](),this[_0x4782ba(0xe3)][_0x4782ba(0xa4)](this[_0x4782ba(0xb2)][_0x4782ba(0xd9)]);}catch(_0xf467fd){if(_0xf467fd instanceof _0x3c3e8f)this[_0x4782ba(0xc3)](_0x4782ba(0xf7),{'interactionId':this[_0x4782ba(0xb2)]?this[_0x4782ba(0xb2)]['id']:void 0x0,'error':_0xf467fd});else{const _0x5ed04e=_0x49dc51[_0x4782ba(0xc2)](_0xf467fd[_0x4782ba(0x8e)])||_0x4782ba(0xea);this[_0x4782ba(0xc3)](_0x4782ba(0xf7),{'interactionId':this[_0x4782ba(0xb2)]?this[_0x4782ba(0xb2)]['id']:void 0x0,'error':new _0x3c3e8f(_0x5ed04e,null,{'error':_0xf467fd})});}}finally{this[_0x4782ba(0xb2)]?.[_0x4782ba(0xcb)](),this[_0x4782ba(0xb2)]=void 0x0;}}[_0x2c5f9a(0xef)]({userMessage:_0x234e42,contextItems:_0x43e280,capabilities:_0x3d3a93,modelId:_0x26873e,attributes:_0x2edc42}){const _0x86559d=_0x2c5f9a,_0x42c720=new _0x172ed3({'userMessage':_0x234e42,'contextItems':_0x43e280,'capabilities':_0x3d3a93,'conversationId':this['id'],'connector':this[_0x86559d(0x8f)],'editor':this[_0x86559d(0xa9)][_0x86559d(0x88)]&&this[_0x86559d(0xa9)][_0x86559d(0x88)](),'model':_0x26873e,'attributes':_0x2edc42});return _0x42c720[_0x86559d(0x90)](..._0x3ef124)['to'](this),this[_0x86559d(0xda)][_0x86559d(0xc4)](_0x42c720),this[_0x86559d(0xc3)](_0x86559d(0xc7),_0x42c720),_0x42c720;}[_0x2c5f9a(0xb4)](_0x1f503e){const _0x598527=_0x2c5f9a;return this[_0x598527(0xda)][_0x598527(0x8c)](_0x318c8c=>_0x318c8c['id']===_0x1f503e);}[_0x2c5f9a(0xa5)](_0x1e452f){const _0x5c3800=_0x2c5f9a,_0x96870d=this[_0x5c3800(0xb4)](_0x1e452f);_0x96870d&&(_0x96870d[_0x5c3800(0x89)](),this[_0x5c3800(0xda)][_0x5c3800(0xdd)](this[_0x5c3800(0xda)][_0x5c3800(0xed)](_0x96870d),0x1));}get[_0x2c5f9a(0x86)](){const _0x5b4239=_0x2c5f9a;return this[_0x5b4239(0xda)][this[_0x5b4239(0xda)][_0x5b4239(0xbb)]-0x1];}[_0x2c5f9a(0xd2)](_0x5dd053){const _0x4a3714=_0x2c5f9a;this[_0x4a3714(0xe3)][_0x4a3714(0xd2)](_0x5dd053);}async[_0x2c5f9a(0x9f)]({content:_0x1d9786,version:_0x4c7f74,sessionId:_0x2ce9cf,selections:_0x5e2596}){const _0x483436=_0x2c5f9a;await this[_0x483436(0xe3)][_0x483436(0x9c)](_0x1d9786,_0x4c7f74,_0x2ce9cf,_0x5e2596);}[_0x2c5f9a(0xaf)](){const _0x1fd69d=_0x2c5f9a;return this[_0x1fd69d(0xb2)]?.[_0x1fd69d(0xae)]()?.[_0x1fd69d(0xa8)]||'';}[_0x2c5f9a(0xe6)](_0x302e25){const _0x350f66=_0x2c5f9a;this[_0x350f66(0xe3)][_0x350f66(0xe6)](_0x302e25);}[_0x2c5f9a(0xba)](){const _0x2b69c8=_0x2c5f9a;this[_0x2b69c8(0xe3)][_0x2b69c8(0xba)]();}[_0x2c5f9a(0xb5)](_0xaa6097){const _0x4737ab=_0x2c5f9a;this[_0x4737ab(0xe3)][_0x4737ab(0xb5)](_0xaa6097);}[_0x2c5f9a(0xd7)](_0x488a2b){const _0x4bc47c=_0x2c5f9a;this[_0x4bc47c(0xe3)][_0x4bc47c(0xd7)](_0x488a2b);}[_0x2c5f9a(0xec)](_0x3b1e9b){const _0x446fe0=_0x2c5f9a;this[_0x446fe0(0xe3)][_0x446fe0(0xec)](_0x3b1e9b);}[_0x2c5f9a(0xf4)](_0x352db7,_0x5bd0e6){const _0x1c7029=_0x2c5f9a;this[_0x1c7029(0xe3)][_0x1c7029(0xf4)](_0x352db7,_0x5bd0e6);}[_0x2c5f9a(0xa6)](_0x582af4,_0x330350,_0x374966){const _0x7f5b9=_0x2c5f9a;return this[_0x7f5b9(0xe3)][_0x7f5b9(0xa6)](_0x582af4,_0x330350,_0x374966);}[_0x2c5f9a(0x97)](_0x34506b){const _0x3735df=_0x2c5f9a;this[_0x3735df(0xe3)][_0x3735df(0x97)](_0x34506b);}[_0x2c5f9a(0xce)](_0x5f1ee7){const _0x400f98=_0x2c5f9a;this[_0x400f98(0xfb)][_0x400f98(0xce)](_0x5f1ee7);}[_0x2c5f9a(0xa2)](){const _0x3204f0=_0x2c5f9a;this[_0x3204f0(0xfb)][_0x3204f0(0xa2)]();}[_0x2c5f9a(0xa3)](_0x369e84){const _0x1468e6=_0x2c5f9a;this[_0x1468e6(0xfb)][_0x1468e6(0xa3)](_0x369e84);}[_0x2c5f9a(0xaa)](){const _0x5c1b47=_0x2c5f9a;this[_0x5c1b47(0xfb)][_0x5c1b47(0xaa)]();}[_0x2c5f9a(0xc5)](){const _0x4b7896=_0x2c5f9a;return this[_0x4b7896(0xe3)][_0x4b7896(0xc5)]();}[_0x2c5f9a(0x95)](){const _0x2a4251=_0x2c5f9a;return this[_0x2a4251(0xe3)][_0x2a4251(0x95)]();}[_0x2c5f9a(0xcc)](){const _0xe69bcc=_0x2c5f9a;return this[_0xe69bcc(0xe3)][_0xe69bcc(0xcc)]();}async[_0x2c5f9a(0xd5)](_0x454445){const _0x567bd2=_0x2c5f9a;_0x454445?!0x1===await this[_0x567bd2(0xbc)][_0x567bd2(0x93)](_0x454445)&&(_0x239af2(_0x567bd2(0xac),{'conversation':this,'model':_0x454445}),_0x454445=(await this[_0x567bd2(0xbc)][_0x567bd2(0xf3)]())[0x0]):(_0x239af2(_0x567bd2(0x98),{'conversation':this}),_0x454445=(await this[_0x567bd2(0xbc)][_0x567bd2(0xf3)]())[0x0]),_0x454445['id']!==this[_0x567bd2(0xdf)]?.['id']&&(this[_0x567bd2(0xdf)]=_0x454445,this[_0x567bd2(0xfb)][_0x567bd2(0x9a)](),this[_0x567bd2(0xc3)](_0x567bd2(0xeb),{'selectedModel':_0x454445}));}}function _0x3157(){const _0x48e9d0=['addToolItemToContext','indexOf','getMessages','createInteraction','ai-chat-handle-user-conversation-not-initialized','3155900TaeWOU','isFromHistory','getAvailableModels','addResourceToContext','user','conversationId','error','assistant','parse','createReply','chatCapabilities','set','fetchConversationMessages','isStarted','load','ai-chat-conversation-init-failed','getConversation','capabilities','765691QpFZOw','lastInteraction','prompt','getEditor','destroy','getCapabilitiesConfig','2225271qakrRE','find','ai-chat-conversation-start-no-model-selected','code','connector','delegate','6EPGXyB','getModel','isAvailable','mcp-tool-result','isCurrentDocumentInConversation','modification','removeFromContext','ai-chat-conversation-set-model-null','ai-chat-conversation-already-started','reset','start','updateCurrentDocument','currentReply','conversationInitialized','updateCurrentDocumentInContext','_handleToolResultData','startConversation','toggleWebSearch','setReasoning','addToConversationContext','removeInteraction','loadSourceResources','setConversationTitle','content','options','toggleReasoning','hasOwn','ai-chat-conversation-set-model-not-available','role','getDocumentContext','getCurrentDocumentContext','ai-chat-handle-user-interaction-already-in-progress','message','currentInteraction','5bXlTtq','getInteraction','addFilesToContext','sources','_processMessagesToInteractions','2395106fLUQMa','ai-chat-conversation-init-from-id-failed','removeSelectionFromContext','length','chatModels','12549136QHwMdL','populateFromMessage','text','getAll','fetchConversation','get','fire','push','isCurrentDocumentInContext','handleUserInteraction','interactionCreated','toolName','conversationStarted','_extractContextItems','stop','isSelectionInContext','10chSmtQ','setWebSearch','12738213FoOhkd','url','getPendingContextItems','addCurrentDocumentToContext','model','attributes','setModel','reasoning','addUrlToContext','stack','contextItems','interactions','webSearch','selectedModelId','splice','title','selectedModel','3935824qlQhPB','group','type','chatContext','init','toLowerCase','addSelectionToContext','appendContent','sessionId','ai-chat-conversation-start-failed','ai-chat-handle-user-interaction-start-failed','modelSelected'];_0x3157=function(){return _0x48e9d0;};return _0x3157();}
23
+ const _0x227eb3=_0x54ec;(function(_0x14f0d5,_0x1ba811){const _0x279f3e=_0x54ec,_0x36ab5f=_0x14f0d5();while(!![]){try{const _0x507f0c=-parseInt(_0x279f3e(0x115))/0x1+-parseInt(_0x279f3e(0x152))/0x2+parseInt(_0x279f3e(0x113))/0x3*(parseInt(_0x279f3e(0x11f))/0x4)+parseInt(_0x279f3e(0x107))/0x5+parseInt(_0x279f3e(0x103))/0x6+-parseInt(_0x279f3e(0x14c))/0x7+-parseInt(_0x279f3e(0x148))/0x8*(-parseInt(_0x279f3e(0x165))/0x9);if(_0x507f0c===_0x1ba811)break;else _0x36ab5f['push'](_0x36ab5f['shift']());}catch(_0x2f2450){_0x36ab5f['push'](_0x36ab5f['shift']());}}}(_0x211b,0xef88e));import{CKEditorError as _0x11caed,EmitterMixin as _0xe556ce,logWarning as _0x24f1f1}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0xe864cf}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x3048ee,AI_CONTEXT_MODEL_EVENT_NAMES as _0x407828}from'./aichatcontext.js';function _0x211b(){const _0x1007e8=['interactions','getModel','modification','splice','appendContent','indexOf','get','group','assistant','stack','addUrlToContext','content','reset','text','getEditor','setReasoning','user','addResourceToContext','_handleToolResultData','ai-chat-conversation-start-failed','error','stop','lastInteraction','modelSelected','isFromHistory','_extractContextItems','set','ai-chat-handle-user-interaction-start-failed','addToolItemToContext','title','connector','getAvailableModels','currentInteraction','hasOwn','loadSourceResources','56QvTFqd','options','setModel','ai-chat-conversation-init-failed','9206960mxDFsF','fetchConversationMessages','parse','push','createReply','chatModels','212522ZmkbFK','handleUserInteraction','conversationInitialized','isSelectionInContext','attributes','type','getPendingContextItems','toggleReasoning','conversationId','init','selectedModelId','isCurrentDocumentInConversation','isCurrentDocumentInContext','find','reasoning','ai-chat-conversation-already-started','getMessages','fetchConversation','role','1568619dqoduo','addToConversationContext','addFilesToContext','webSearch','addSelectionToContext','_processMessagesToInteractions','prompt','sessionId','capabilities','ai-chat-conversation-set-model-not-available','conversationStarted','ai-chat-conversation-start-no-model-selected','getAll','toLowerCase','currentReply','startConversation','interactionCreated','contextItems','selectedModel','removeFromContext','toggleWebSearch','setConversationTitle','getCapabilitiesConfig','chatCapabilities','getCurrentDocumentContext','getDocumentContext','removeInteraction','6333462givBID','mcp-tool-result','isStarted','fire','1189025PKfuMU','sources','createInteraction','destroy','getConversation','updateCurrentDocumentInContext','url','load','delegate','ai-chat-conversation-init-from-id-failed','setWebSearch','start','3wCsPFI','chatContext','1748713pOiFPZ','addCurrentDocumentToContext','populateFromMessage','ai-chat-conversation-set-model-null','ai-chat-handle-user-conversation-not-initialized','isAvailable','updateCurrentDocument','getInteraction','length','code','6551876ndMmhZ','message','toolName','model','ai-chat-handle-user-interaction-already-in-progress','removeSelectionFromContext'];_0x211b=function(){return _0x1007e8;};return _0x211b();}import{AICapabilities as _0x306931,CAPABILITIES_MODEL_EVENT_NAMES as _0x3d2f1f}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x5f14c6}from'./aichatinteraction.js';function _0x54ec(_0x5120e2,_0x1049f4){const _0x211b4d=_0x211b();return _0x54ec=function(_0x54ecf7,_0x1a20f9){_0x54ecf7=_0x54ecf7-0xf8;let _0x1db3ce=_0x211b4d[_0x54ecf7];return _0x1db3ce;},_0x54ec(_0x5120e2,_0x1049f4);}import{errorsMap as _0x193fa7}from'../../errorsmap.js';export class AIChatConversation extends _0xe556ce(){['id'];[_0x227eb3(0x105)]=!0x1;[_0x227eb3(0x13d)];[_0x227eb3(0x125)]=[];[_0x227eb3(0x145)];[_0x227eb3(0xfa)];[_0x227eb3(0x143)];[_0x227eb3(0x149)];constructor(_0x30cfd8){const _0x505e1d=_0x227eb3;super(),this[_0x505e1d(0x149)]=_0x30cfd8,this[_0x505e1d(0x143)]=_0x30cfd8[_0x505e1d(0x143)],this[_0x505e1d(0x151)]=_0x30cfd8[_0x505e1d(0x151)],this['id']=_0x30cfd8[_0x505e1d(0x15a)],this[_0x505e1d(0x13d)]=_0x30cfd8[_0x505e1d(0x13d)];}async[_0x227eb3(0x15b)](_0x33de94){const _0x5bea3c=_0x227eb3;try{this[_0x5bea3c(0x114)]=new _0x3048ee({'connector':this[_0x5bea3c(0x143)],'config':_0x33de94,'ownerId':this['id']}),this[_0x5bea3c(0x114)][_0x5bea3c(0x10f)](..._0x407828)['to'](this),this[_0x5bea3c(0x114)][_0x5bea3c(0x15b)](),this[_0x5bea3c(0xff)]=new _0x306931(),this[_0x5bea3c(0xff)][_0x5bea3c(0x10f)](..._0x3d2f1f)['to'](this),this[_0x5bea3c(0xff)][_0x5bea3c(0x15b)]();const _0x53ee68=await this[_0x5bea3c(0x151)][_0x5bea3c(0x144)]();this[_0x5bea3c(0x106)](_0x5bea3c(0x154),{'availableModels':_0x53ee68});const _0x4535dd=await this[_0x5bea3c(0x151)][_0x5bea3c(0x126)](this[_0x5bea3c(0x149)][_0x5bea3c(0x15c)]);_0x4535dd&&await this[_0x5bea3c(0x14a)](_0x4535dd);}catch(_0x3367ac){const _0x1359ce=new _0x11caed(_0x5bea3c(0x14b),null,{'message':_0x3367ac[_0x5bea3c(0x120)]||_0x3367ac});_0x1359ce[_0x5bea3c(0x12e)]=_0x3367ac[_0x5bea3c(0x12e)],this[_0x5bea3c(0x106)](_0x5bea3c(0x139),{'error':_0x1359ce});}}async[_0x227eb3(0x112)](){const _0x211054=_0x227eb3;if(this[_0x211054(0x105)])throw new _0x11caed(_0x211054(0x161),null,{'conversation':this});if(!this[_0x211054(0xfa)])throw new _0x11caed(_0x211054(0x170),null,{'conversation':this});try{const {id:_0x4f62e3}=await this[_0x211054(0x143)][_0x211054(0x174)](this['id'],this[_0x211054(0x149)][_0x211054(0x12c)])[_0x211054(0x10b)]();this['id']=_0x4f62e3,this[_0x211054(0x105)]=!0x0,this[_0x211054(0x106)](_0x211054(0x16f),{'conversationId':this['id'],'selectedModel':this[_0x211054(0xfa)]});}catch(_0x3659e5){const _0x50a5b1=new _0x11caed(_0x211054(0x138),null,{'message':_0x3659e5[_0x211054(0x120)],'conversationId':this['id']});throw _0x50a5b1[_0x211054(0x12e)]=_0x3659e5[_0x211054(0x12e)],this[_0x211054(0x106)](_0x211054(0x139),{'error':_0x50a5b1}),_0x50a5b1;}}async[_0x227eb3(0x10e)](_0x2254ff,_0x35dede){const _0x169d1c=_0x227eb3;try{const _0x20af88=await this[_0x169d1c(0x143)][_0x169d1c(0x163)](_0x2254ff)[_0x169d1c(0x10b)](),_0x251d96=await this[_0x169d1c(0x143)][_0x169d1c(0x14d)](_0x2254ff)[_0x169d1c(0x162)](),_0x5ae853=_0x251d96[0x0][_0x169d1c(0x122)];this[_0x169d1c(0x105)]=!0x0,this['id']=_0x20af88['id'],_0x169d1c(0x142)in _0x20af88?this[_0x169d1c(0x106)](_0x169d1c(0xfd),_0x20af88[_0x169d1c(0x142)],!0x0):this[_0x169d1c(0x106)](_0x169d1c(0xfd),'',!0x0);const _0xc0369b=(await this[_0x169d1c(0x151)][_0x169d1c(0x171)]())[_0x169d1c(0x15f)](_0x4098e5=>_0x4098e5['id'][_0x169d1c(0x172)]()===_0x5ae853[_0x169d1c(0x172)]());return this[_0x169d1c(0xfa)]=_0xc0369b,this[_0x169d1c(0x106)](_0x169d1c(0x13c),{'selectedModel':_0xc0369b,'isDisabled':!0x0}),await this[_0x169d1c(0x16a)](_0x251d96,_0x35dede,_0x5ae853),this[_0x169d1c(0x145)]=void 0x0,this;}catch(_0x17a699){const _0x533e6=new _0x11caed(_0x169d1c(0x110),null,{'message':_0x17a699[_0x169d1c(0x120)],'conversationId':_0x2254ff});throw _0x533e6[_0x169d1c(0x12e)]=_0x17a699[_0x169d1c(0x12e)],this[_0x169d1c(0x106)](_0x169d1c(0x139),{'error':_0x533e6}),_0x533e6;}}async[_0x227eb3(0x16a)](_0x4c6c86,_0x4f2c0b,_0x4ea6a0){const _0x355f4f=_0x227eb3;let _0xd0434b;for(const _0x18c8d2 of _0x4c6c86)if(_0x355f4f(0x135)===_0x18c8d2[_0x355f4f(0x164)]){const _0x4c85c1=await this[_0x355f4f(0x13e)](_0x18c8d2),_0xe4b1c6={'isReasoningEnabled':Object[_0x355f4f(0x146)](_0x18c8d2[_0x355f4f(0x16d)],_0x355f4f(0x160)),'isWebSearchEnabled':Object[_0x355f4f(0x146)](_0x18c8d2[_0x355f4f(0x16d)],_0x355f4f(0x168))};_0xd0434b=this[_0x355f4f(0x109)]({'userMessage':_0x18c8d2[_0x355f4f(0x16b)],'contextItems':_0x4c85c1,'capabilities':_0xe4b1c6,'modelId':_0x4ea6a0,'attributes':_0x18c8d2[_0x355f4f(0x156)]}),this[_0x355f4f(0x145)]=_0xd0434b,this[_0x355f4f(0x114)][_0x355f4f(0x166)](this[_0x355f4f(0x145)][_0x355f4f(0xf9)]);}else{if(_0x355f4f(0x12d)===_0x18c8d2[_0x355f4f(0x164)]&&_0xd0434b){const _0x490521=[];for(const _0x4ab66f of _0x18c8d2[_0x355f4f(0x130)])switch(_0x4ab66f[_0x355f4f(0x157)]){case _0x355f4f(0x132):case _0x355f4f(0x127):{const _0x4b62a0=_0xd0434b[_0x355f4f(0x101)]()?.[_0x355f4f(0x16c)]!==_0x4f2c0b;_0xd0434b[_0x355f4f(0x173)]=_0xd0434b[_0x355f4f(0x150)]({'type':_0x4ab66f[_0x355f4f(0x157)],'isDone':!0x0,'interactionId':_0xd0434b['id'],'areActionsDisabled':_0x4b62a0}),_0xd0434b[_0x355f4f(0x173)][_0x355f4f(0x129)](_0x4ab66f[_0x355f4f(0x130)]),_0x490521[_0x355f4f(0x11d)]>0x0&&(_0xd0434b[_0x355f4f(0x173)][_0x355f4f(0x108)]=_0x490521[_0x355f4f(0x128)](0x0));break;}case _0x355f4f(0x10d):_0x490521[_0x355f4f(0x14f)](_0x4ab66f);break;case _0x355f4f(0x104):{const {data:_0x45d3a0,attributes:_0x1ebaba}=JSON[_0x355f4f(0x14e)](_0x4ab66f[_0x355f4f(0x130)]);_0xd0434b[_0x355f4f(0x137)]({'toolName':_0x4ab66f[_0x355f4f(0x121)],'data':_0x45d3a0,'attributes':_0x1ebaba});break;}}}}}async[_0x227eb3(0x13e)](_0x5a43ae){const _0xfca846=_0x227eb3,_0x242410=new Map();if(!_0x5a43ae[_0xfca846(0x130)])return _0x242410;for(const _0x12fde3 of _0x5a43ae[_0xfca846(0x130)]){const _0x515314=await this[_0xfca846(0x114)][_0xfca846(0x117)](_0x12fde3);_0x515314&&_0x242410[_0xfca846(0x13f)](_0x515314['id'],_0x515314);}return _0x242410;}async[_0x227eb3(0x153)]({userMessage:_0x5574ea,attributes:_0x3e8215}){const _0x1a7050=_0x227eb3;if(!this[_0x1a7050(0x105)])throw new _0x11caed(_0x1a7050(0x119),null,{'conversation':this});if(this[_0x1a7050(0x145)])throw new _0x11caed(_0x1a7050(0x123),null,{'conversation':this});try{const _0x109924=this[_0x1a7050(0x114)][_0x1a7050(0x158)](),_0x46daf6=this[_0x1a7050(0xff)][_0x1a7050(0xfe)](),_0x476af2=this[_0x1a7050(0xfa)]['id'];this[_0x1a7050(0x145)]=this[_0x1a7050(0x109)]({'userMessage':_0x5574ea,'contextItems':_0x109924,'capabilities':_0x46daf6,'modelId':_0x476af2,'attributes':_0x3e8215}),await this[_0x1a7050(0x145)][_0x1a7050(0x112)](),this[_0x1a7050(0x114)][_0x1a7050(0x166)](this[_0x1a7050(0x145)][_0x1a7050(0xf9)]);}catch(_0x51a560){if(_0x51a560 instanceof _0x11caed)this[_0x1a7050(0x106)](_0x1a7050(0x139),{'interactionId':this[_0x1a7050(0x145)]?this[_0x1a7050(0x145)]['id']:void 0x0,'error':_0x51a560});else{const _0x1ae333=_0x193fa7[_0x1a7050(0x12b)](_0x51a560[_0x1a7050(0x11e)])||_0x1a7050(0x140);this[_0x1a7050(0x106)](_0x1a7050(0x139),{'interactionId':this[_0x1a7050(0x145)]?this[_0x1a7050(0x145)]['id']:void 0x0,'error':new _0x11caed(_0x1ae333,null,{'error':_0x51a560})});}}finally{this[_0x1a7050(0x145)]?.[_0x1a7050(0x13a)](),this[_0x1a7050(0x145)]=void 0x0;}}[_0x227eb3(0x109)]({userMessage:_0xbd40aa,contextItems:_0x4fc430,capabilities:_0xdb0733,modelId:_0x17e4ba,attributes:_0x2d1810}){const _0x3ac7ae=_0x227eb3,_0x4a5c76=new _0x5f14c6({'userMessage':_0xbd40aa,'contextItems':_0x4fc430,'capabilities':_0xdb0733,'conversationId':this['id'],'connector':this[_0x3ac7ae(0x143)],'editor':this[_0x3ac7ae(0x149)][_0x3ac7ae(0x133)]&&this[_0x3ac7ae(0x149)][_0x3ac7ae(0x133)](),'model':_0x17e4ba,'attributes':_0x2d1810});return _0x4a5c76[_0x3ac7ae(0x10f)](..._0xe864cf)['to'](this),this[_0x3ac7ae(0x125)][_0x3ac7ae(0x14f)](_0x4a5c76),this[_0x3ac7ae(0x106)](_0x3ac7ae(0xf8),_0x4a5c76),_0x4a5c76;}[_0x227eb3(0x11c)](_0x26b331){const _0x4b98bc=_0x227eb3;return this[_0x4b98bc(0x125)][_0x4b98bc(0x15f)](_0x18ee77=>_0x18ee77['id']===_0x26b331);}[_0x227eb3(0x102)](_0x238295){const _0x3a8a93=_0x227eb3,_0x38eb46=this[_0x3a8a93(0x11c)](_0x238295);_0x38eb46&&(_0x38eb46[_0x3a8a93(0x10a)](),this[_0x3a8a93(0x125)][_0x3a8a93(0x128)](this[_0x3a8a93(0x125)][_0x3a8a93(0x12a)](_0x38eb46),0x1));}get[_0x227eb3(0x13b)](){const _0x264577=_0x227eb3;return this[_0x264577(0x125)][this[_0x264577(0x125)][_0x264577(0x11d)]-0x1];}[_0x227eb3(0x116)](_0x28b0f6){const _0xc16a21=_0x227eb3;this[_0xc16a21(0x114)][_0xc16a21(0x116)](_0x28b0f6);}async[_0x227eb3(0x10c)]({content:_0x5a2404,version:_0x28bb1a,sessionId:_0xb8a592,selections:_0x28fa3e}){const _0x146fcb=_0x227eb3;await this[_0x146fcb(0x114)][_0x146fcb(0x11b)](_0x5a2404,_0x28bb1a,_0xb8a592,_0x28fa3e);}[_0x227eb3(0x100)](){const _0x367450=_0x227eb3;return this[_0x367450(0x145)]?.[_0x367450(0x101)]()?.[_0x367450(0x130)]||'';}[_0x227eb3(0x169)](_0x389889){const _0x1423dd=_0x227eb3;this[_0x1423dd(0x114)][_0x1423dd(0x169)](_0x389889);}[_0x227eb3(0x124)](){const _0x1fb2c0=_0x227eb3;this[_0x1fb2c0(0x114)][_0x1fb2c0(0x124)]();}[_0x227eb3(0x167)](_0x158abe){const _0x362991=_0x227eb3;this[_0x362991(0x114)][_0x362991(0x167)](_0x158abe);}[_0x227eb3(0x12f)](_0x2978b0){const _0x4637ed=_0x227eb3;this[_0x4637ed(0x114)][_0x4637ed(0x12f)](_0x2978b0);}[_0x227eb3(0x141)](_0x30684e){const _0x11afb9=_0x227eb3;this[_0x11afb9(0x114)][_0x11afb9(0x141)](_0x30684e);}[_0x227eb3(0x136)](_0x321428,_0x66c011){const _0x561b92=_0x227eb3;this[_0x561b92(0x114)][_0x561b92(0x136)](_0x321428,_0x66c011);}[_0x227eb3(0x147)](_0x403298,_0x29eb0c,_0x28fb45){const _0xb01973=_0x227eb3;return this[_0xb01973(0x114)][_0xb01973(0x147)](_0x403298,_0x29eb0c,_0x28fb45);}[_0x227eb3(0xfb)](_0x2cf6f3){const _0x2530e5=_0x227eb3;this[_0x2530e5(0x114)][_0x2530e5(0xfb)](_0x2cf6f3);}[_0x227eb3(0x111)](_0x158240){const _0x4e3eab=_0x227eb3;this[_0x4e3eab(0xff)][_0x4e3eab(0x111)](_0x158240);}[_0x227eb3(0xfc)](){const _0x3862aa=_0x227eb3;this[_0x3862aa(0xff)][_0x3862aa(0xfc)]();}[_0x227eb3(0x134)](_0x5bfedf){const _0x3df5b0=_0x227eb3;this[_0x3df5b0(0xff)][_0x3df5b0(0x134)](_0x5bfedf);}[_0x227eb3(0x159)](){const _0x10929d=_0x227eb3;this[_0x10929d(0xff)][_0x10929d(0x159)]();}[_0x227eb3(0x15e)](){const _0x2688a4=_0x227eb3;return this[_0x2688a4(0x114)][_0x2688a4(0x15e)]();}[_0x227eb3(0x15d)](){const _0x2fc778=_0x227eb3;return this[_0x2fc778(0x114)][_0x2fc778(0x15d)]();}[_0x227eb3(0x155)](){const _0xa9c3a8=_0x227eb3;return this[_0xa9c3a8(0x114)][_0xa9c3a8(0x155)]();}async[_0x227eb3(0x14a)](_0x7e6ebc){const _0xa469b2=_0x227eb3;_0x7e6ebc?!0x1===await this[_0xa469b2(0x151)][_0xa469b2(0x11a)](_0x7e6ebc)&&(_0x24f1f1(_0xa469b2(0x16e),{'conversation':this,'model':_0x7e6ebc}),_0x7e6ebc=(await this[_0xa469b2(0x151)][_0xa469b2(0x144)]())[0x0]):(_0x24f1f1(_0xa469b2(0x118),{'conversation':this}),_0x7e6ebc=(await this[_0xa469b2(0x151)][_0xa469b2(0x144)]())[0x0]),_0x7e6ebc['id']!==this[_0xa469b2(0xfa)]?.['id']&&(this[_0xa469b2(0xfa)]=_0x7e6ebc,this[_0xa469b2(0xff)][_0xa469b2(0x131)](),this[_0xa469b2(0x106)](_0xa469b2(0x13c),{'selectedModel':_0x7e6ebc}));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x4367f4=_0x3f86;function _0x3e7b(){var _0x26027a=['conversationId','current-document','queryAssistant','7017384YTgzEO','getDocumentContext','133SNHyUE','attributes','722510MfMoFV','44RoqxjS','model','252137EVDFpR','3068180wSgVcD','272022zBotlX','21EgThfQ','userMessage','4BrFGOe','contextItems','250170zaPzhJ','mapContextItemsToRequestData','capabilities','510021VUKYNy','sendRequest','connector','get','getCapabilitiesRequestData'];_0x3e7b=function(){return _0x26027a;};return _0x3e7b();}function _0x3f86(_0x56d92c,_0x552ab1){var _0x3e7b7e=_0x3e7b();return _0x3f86=function(_0x3f8680,_0x4f5e6b){_0x3f8680=_0x3f8680-0x12f;var _0x103b44=_0x3e7b7e[_0x3f8680];return _0x103b44;},_0x3f86(_0x56d92c,_0x552ab1);}(function(_0x5be75d,_0x4fb9eb){var _0x7766a5=_0x3f86,_0x571c2d=_0x5be75d();while(!![]){try{var _0x5703d7=parseInt(_0x7766a5(0x13c))/0x1+-parseInt(_0x7766a5(0x143))/0x2*(-parseInt(_0x7766a5(0x13f))/0x3)+parseInt(_0x7766a5(0x141))/0x4*(-parseInt(_0x7766a5(0x139))/0x5)+-parseInt(_0x7766a5(0x13e))/0x6*(parseInt(_0x7766a5(0x137))/0x7)+-parseInt(_0x7766a5(0x135))/0x8+parseInt(_0x7766a5(0x146))/0x9+parseInt(_0x7766a5(0x13d))/0xa*(parseInt(_0x7766a5(0x13a))/0xb);if(_0x5703d7===_0x4fb9eb)break;else _0x571c2d['push'](_0x571c2d['shift']());}catch(_0x5839d1){_0x571c2d['push'](_0x571c2d['shift']());}}}(_0x3e7b,0x810d3));import{AICapabilities as _0x256b9f}from'../../aicore/model/aicapabilities.js';import{AIInteraction as _0x5d45e9}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x534fcb}from'./aichatcontext.js';export class AIChatInteraction extends _0x5d45e9{[_0x4367f4(0x140)];[_0x4367f4(0x132)];[_0x4367f4(0x142)]=new Map();[_0x4367f4(0x13b)];[_0x4367f4(0x138)];constructor(_0x1dd1d6){var _0x42b365=_0x4367f4;super(_0x1dd1d6),this[_0x42b365(0x132)]=_0x1dd1d6[_0x42b365(0x132)],this[_0x42b365(0x142)]=_0x1dd1d6[_0x42b365(0x142)],this[_0x42b365(0x145)]=_0x1dd1d6[_0x42b365(0x145)],this[_0x42b365(0x140)]=_0x1dd1d6[_0x42b365(0x140)],this[_0x42b365(0x13b)]=_0x1dd1d6[_0x42b365(0x13b)],this[_0x42b365(0x138)]=_0x1dd1d6[_0x42b365(0x138)];}async[_0x4367f4(0x147)](){var _0x47d39b=_0x4367f4;return this[_0x47d39b(0x12f)][_0x47d39b(0x134)]({'message':this[_0x47d39b(0x140)],'conversationId':this[_0x47d39b(0x132)],'parts':_0x534fcb[_0x47d39b(0x144)](this[_0x47d39b(0x142)]),'capabilities':_0x256b9f[_0x47d39b(0x131)](this[_0x47d39b(0x145)]),'model':this[_0x47d39b(0x13b)],'attributes':this[_0x47d39b(0x138)]});}[_0x4367f4(0x136)](){var _0x56e33a=_0x4367f4;return this[_0x56e33a(0x142)][_0x56e33a(0x130)](_0x56e33a(0x133));}}
23
+ var _0x2a7d3a=_0x35f9;function _0x35f9(_0x2aa574,_0x5e20f5){var _0x5ec89c=_0x5ec8();return _0x35f9=function(_0x35f916,_0x5d11de){_0x35f916=_0x35f916-0x13c;var _0x30ee61=_0x5ec89c[_0x35f916];return _0x30ee61;},_0x35f9(_0x2aa574,_0x5e20f5);}function _0x5ec8(){var _0x222eba=['connector','userMessage','conversationId','2934705mkKduf','queryAssistant','sendRequest','8SsIEXP','model','mapContextItemsToRequestData','get','current-document','getCapabilitiesRequestData','3585753FUrdbO','24UallGz','3376884abBAUI','contextItems','2643440UfZsqN','capabilities','177134TWoRDI','4378269KLnAyZ','409728hgXHDs','getDocumentContext','attributes'];_0x5ec8=function(){return _0x222eba;};return _0x5ec8();}(function(_0xff1e98,_0x47788f){var _0x47a87f=_0x35f9,_0x2417f1=_0xff1e98();while(!![]){try{var _0x1bb5ea=-parseInt(_0x47a87f(0x145))/0x1+-parseInt(_0x47a87f(0x150))/0x2*(-parseInt(_0x47a87f(0x147))/0x3)+parseInt(_0x47a87f(0x143))/0x4+-parseInt(_0x47a87f(0x14d))/0x5+-parseInt(_0x47a87f(0x141))/0x6+-parseInt(_0x47a87f(0x146))/0x7+parseInt(_0x47a87f(0x140))/0x8*(parseInt(_0x47a87f(0x13f))/0x9);if(_0x1bb5ea===_0x47788f)break;else _0x2417f1['push'](_0x2417f1['shift']());}catch(_0x153c28){_0x2417f1['push'](_0x2417f1['shift']());}}}(_0x5ec8,0x6de0b));import{AICapabilities as _0x3587cc}from'../../aicore/model/aicapabilities.js';import{AIInteraction as _0x10ee2b}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x433f6b}from'./aichatcontext.js';export class AIChatInteraction extends _0x10ee2b{[_0x2a7d3a(0x14b)];[_0x2a7d3a(0x14c)];[_0x2a7d3a(0x142)]=new Map();[_0x2a7d3a(0x151)];[_0x2a7d3a(0x149)];constructor(_0x548f2b){var _0x90252e=_0x2a7d3a;super(_0x548f2b),this[_0x90252e(0x14c)]=_0x548f2b[_0x90252e(0x14c)],this[_0x90252e(0x142)]=_0x548f2b[_0x90252e(0x142)],this[_0x90252e(0x144)]=_0x548f2b[_0x90252e(0x144)],this[_0x90252e(0x14b)]=_0x548f2b[_0x90252e(0x14b)],this[_0x90252e(0x151)]=_0x548f2b[_0x90252e(0x151)],this[_0x90252e(0x149)]=_0x548f2b[_0x90252e(0x149)];}async[_0x2a7d3a(0x14f)](){var _0x37101a=_0x2a7d3a;return this[_0x37101a(0x14a)][_0x37101a(0x14e)]({'message':this[_0x37101a(0x14b)],'conversationId':this[_0x37101a(0x14c)],'parts':_0x433f6b[_0x37101a(0x152)](this[_0x37101a(0x142)]),'capabilities':_0x3587cc[_0x37101a(0x13e)](this[_0x37101a(0x144)]),'model':this[_0x37101a(0x151)],'attributes':this[_0x37101a(0x149)]});}[_0x2a7d3a(0x148)](){var _0xa40ea6=_0x2a7d3a;return this[_0xa40ea6(0x142)][_0xa40ea6(0x13c)](_0xa40ea6(0x13d));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2fb2a2=_0x4085;(function(_0x218c5e,_0x3ab741){const _0x2e1440=_0x4085,_0x10724c=_0x218c5e();while(!![]){try{const _0x43b69c=-parseInt(_0x2e1440(0x1df))/0x1*(parseInt(_0x2e1440(0x203))/0x2)+parseInt(_0x2e1440(0x1f2))/0x3+parseInt(_0x2e1440(0x1dc))/0x4+-parseInt(_0x2e1440(0x1d6))/0x5+-parseInt(_0x2e1440(0x1fd))/0x6+parseInt(_0x2e1440(0x1cb))/0x7*(-parseInt(_0x2e1440(0x1d4))/0x8)+parseInt(_0x2e1440(0x1c6))/0x9*(-parseInt(_0x2e1440(0x20d))/0xa);if(_0x43b69c===_0x3ab741)break;else _0x10724c['push'](_0x10724c['shift']());}catch(_0x52795e){_0x10724c['push'](_0x10724c['shift']());}}}(_0x2460,0x4fbc2));import{FocusTracker as _0xb0cfbc,KeystrokeHandler as _0x4be2eb}from'ckeditor5/src/utils.js';import{AISuggestionStreamableContentView as _0x3b6557}from'../../aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js';function _0x4085(_0x7a643d,_0x880095){const _0x246043=_0x2460();return _0x4085=function(_0x408563,_0x2a143e){_0x408563=_0x408563-0x1c0;let _0x23466a=_0x246043[_0x408563];return _0x23466a;},_0x4085(_0x7a643d,_0x880095);}import{AISuggestionContentPartToolbarView as _0x41636e}from'../../aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js';import{AIMiniToolbarView as _0xe0bc3c}from'../../aicore/ui/suggestioncontainer/aiminitoolbarview.js';import{AIBalloonView as _0x1e041e}from'../../aiballoon/ui/aiballoonview.js';import{ButtonView as _0x9aed70,FocusCycler as _0x4db247,View as _0xb81d71}from'ckeditor5/src/ui.js';import{AISuggestionContentPartStateView as _0x1d89ef}from'../../aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js';function _0x2460(){const _0x3cfca4=['listenTo','400878YUJXCb','hideError','showPrevious','nextButtonView','setButtonsVisibility','21wWHazd','_toolbarContainerView','_isErrorVisible','div','_keystrokes','_partToolbarView','showNext','_togglePartToolbarButtonsVisibility','_focusTracker','927792hNIgTB','change:_state','358125ZOfWVW','bindTemplate','includes','bind','focus','toggleRotatorButtonsVisibility','1871832wSAPXT','focusCycler','_errorView','1PJJoqp','previousButtonView','delegate','add','full','setTemplate','set','keepErrors','availableActions','pending','locale','showBlockingError','_createPreviousButtonView','execute','_streamableContentView','_stateView','children','update','togglePartToolbarEnabled','1336758JdsciP','tab','ck-ai-chat-balloon-main','toggleSuggestionDisplayMode','ck-ai-chat-balloon-main_state_','_focusables','element','addMany','focusLast','createCollection','AI_BALLOON_NEXT_LABEL','462840ZVfErf','isVisible','_miniToolbarView','setState','change:isTrackChangesOn','shift\x20+\x20tab','2358yNLQDm','updateContent','toggleShowChanges','ck-ai-chat-balloon__toolbar-container','focusFirst','render','applySuggestion','_state','insertSuggestion','_config','20BnOmZQ','isShowChangesOn','AI_BALLOON_PREVIOUS_LABEL','destroy','fire','showDiff','_createNextButtonView','has','rejectSuggestion','isEnabled','showError','isTrackChangesOn'];_0x2460=function(){return _0x3cfca4;};return _0x2460();}import{IconChevronDown as _0x1f07b8,IconChevronUp as _0x246d46}from'ckeditor5/src/icons.js';import{getTranslation as _0x4714d3}from'../../aicore/utils/common-translations.js';import'../../../theme/aichat/aichatballoon.css';export class AIChatBalloonView extends _0x1e041e{[_0x2fb2a2(0x1ef)];[_0x2fb2a2(0x1c9)];[_0x2fb2a2(0x1e0)];[_0x2fb2a2(0x1dd)];[_0x2fb2a2(0x1f7)];[_0x2fb2a2(0x1d3)];[_0x2fb2a2(0x1cf)];[_0x2fb2a2(0x20c)];[_0x2fb2a2(0x1ed)];[_0x2fb2a2(0x1cc)];[_0x2fb2a2(0x1d0)];[_0x2fb2a2(0x1ee)];[_0x2fb2a2(0x1ff)];constructor(_0x10cb7e,_0x3fa24b){const _0x2def92=_0x2fb2a2;super(_0x10cb7e);const _0x51e99f=this[_0x2def92(0x1d7)];this[_0x2def92(0x1e5)](_0x2def92(0x212),!0x1),this[_0x2def92(0x1e5)](_0x2def92(0x20a),_0x2def92(0x1e8)),this[_0x2def92(0x1d3)]=new _0xb0cfbc(),this[_0x2def92(0x1cf)]=new _0x4be2eb(),this[_0x2def92(0x1f7)]=this[_0x2def92(0x1fb)](),this[_0x2def92(0x1dd)]=new _0x4db247({'focusables':this[_0x2def92(0x1f7)],'focusTracker':this[_0x2def92(0x1d3)],'keystrokeHandler':this[_0x2def92(0x1cf)],'actions':{'focusPrevious':_0x2def92(0x202),'focusNext':_0x2def92(0x1f3)}}),this[_0x2def92(0x20c)]=_0x3fa24b,this[_0x2def92(0x1c9)]=this[_0x2def92(0x213)](),this[_0x2def92(0x1e0)]=this[_0x2def92(0x1eb)](),this[_0x2def92(0x1ed)]=new _0x3b6557(_0x10cb7e),this[_0x2def92(0x1d0)]=new _0x41636e(_0x10cb7e,_0x3fa24b[_0x2def92(0x1e7)]),this[_0x2def92(0x1d0)][_0x2def92(0x1e1)](_0x2def92(0x209),_0x2def92(0x20b),_0x2def92(0x1c1))['to'](this),this[_0x2def92(0x1d2)](_0x3fa24b),this[_0x2def92(0x1ee)]=new _0x1d89ef(_0x10cb7e),this[_0x2def92(0x1ee)][_0x2def92(0x1fe)]=!0x1,this[_0x2def92(0x1ff)]=new _0xe0bc3c(_0x10cb7e,{'showChanges':_0x2def92(0x1e3)}),this[_0x2def92(0x1ff)][_0x2def92(0x1d9)](_0x2def92(0x20e))['to'](this,_0x2def92(0x212)),this[_0x2def92(0x1ff)]['on'](_0x2def92(0x205),()=>{const _0x484912=_0x2def92;this[_0x484912(0x211)](_0x484912(0x1f5));}),this[_0x2def92(0x1cc)]=new ms(_0x10cb7e,[this[_0x2def92(0x1d0)],this[_0x2def92(0x1ee)],this[_0x2def92(0x1ff)]]),this[_0x2def92(0x1ef)]=this[_0x2def92(0x1fb)]([this[_0x2def92(0x1ed)],this[_0x2def92(0x1cc)]]),this['on'](_0x2def92(0x1d5),(_0x1a2bd6,_0x27c818,_0x19a928,_0x2a7997)=>{const _0x581e65=_0x2def92;let _0x3a6b54,_0xa7da72;_0x581e65(0x1e8)===_0x2a7997?(_0x3a6b54=this[_0x581e65(0x1d0)],_0xa7da72=this[_0x581e65(0x1ee)]):(_0x3a6b54=this[_0x581e65(0x1ee)],_0xa7da72=this[_0x581e65(0x1d0)]),this[_0x581e65(0x1ee)][_0x581e65(0x200)](_0x19a928),_0x3a6b54[_0x581e65(0x1fe)]=!0x1,_0xa7da72[_0x581e65(0x1fe)]=!0x0;}),this[_0x2def92(0x1e4)]({'tag':_0x2def92(0x1ce),'attributes':{'class':['ck',_0x2def92(0x1f4),_0x51e99f['to'](_0x2def92(0x20a),_0x5d7593=>_0x2def92(0x1f6)+_0x5d7593)]},'children':this[_0x2def92(0x1ef)]}),this['on'](_0x2def92(0x201),()=>{const _0x3eed5d=_0x2def92;this[_0x3eed5d(0x1d2)](_0x3fa24b);});}[_0x2fb2a2(0x208)](){const _0xba56ba=_0x2fb2a2;super[_0xba56ba(0x208)](),this[_0xba56ba(0x1c9)][_0xba56ba(0x208)](),this[_0xba56ba(0x1e0)][_0xba56ba(0x208)](),this[_0xba56ba(0x1d3)][_0xba56ba(0x1e2)](this[_0xba56ba(0x1f8)]),this[_0xba56ba(0x1d3)][_0xba56ba(0x1e2)](this[_0xba56ba(0x1c9)]),this[_0xba56ba(0x1d3)][_0xba56ba(0x1e2)](this[_0xba56ba(0x1e0)]),this[_0xba56ba(0x1d3)][_0xba56ba(0x1e2)](this[_0xba56ba(0x1ff)]),this[_0xba56ba(0x1d3)][_0xba56ba(0x1e2)](this[_0xba56ba(0x1d0)]),this[_0xba56ba(0x1cf)][_0xba56ba(0x1c5)](this[_0xba56ba(0x1f8)]),this[_0xba56ba(0x1cf)][_0xba56ba(0x1c5)](this[_0xba56ba(0x1c9)][_0xba56ba(0x1f8)]),this[_0xba56ba(0x1cf)][_0xba56ba(0x1c5)](this[_0xba56ba(0x1e0)][_0xba56ba(0x1f8)]),this[_0xba56ba(0x1f7)][_0xba56ba(0x1f9)]([this[_0xba56ba(0x1c9)],this[_0xba56ba(0x1e0)],this[_0xba56ba(0x1d0)],this[_0xba56ba(0x1ff)]]);}[_0x2fb2a2(0x210)](){const _0x20dcc0=_0x2fb2a2;super[_0x20dcc0(0x210)](),this[_0x20dcc0(0x1e0)][_0x20dcc0(0x210)](),this[_0x20dcc0(0x1c9)][_0x20dcc0(0x210)]();}[_0x2fb2a2(0x1da)](){const _0x4d597a=_0x2fb2a2;this[_0x4d597a(0x1dd)][_0x4d597a(0x207)]();}[_0x2fb2a2(0x1fa)](){const _0x18f754=_0x2fb2a2;this[_0x18f754(0x1dd)][_0x18f754(0x1fa)]();}async[_0x2fb2a2(0x204)](_0x30de4f){const _0x67324d=_0x2fb2a2;_0x30de4f?.[_0x67324d(0x1e6)]||this[_0x67324d(0x1c7)](),await this[_0x67324d(0x1ed)][_0x67324d(0x1f0)](_0x30de4f);}[_0x2fb2a2(0x200)](_0x12fb4b){const _0x3be5c3=_0x2fb2a2;this[_0x3be5c3(0x20a)]=_0x12fb4b;}[_0x2fb2a2(0x1c3)](_0xec35a4){const _0x305cb6=_0x2fb2a2;super[_0x305cb6(0x1c3)](_0xec35a4),this[_0x305cb6(0x1ef)][_0x305cb6(0x1c0)](this[_0x305cb6(0x1de)])||this[_0x305cb6(0x1ef)][_0x305cb6(0x1e2)](this[_0x305cb6(0x1de)],0x0);}[_0x2fb2a2(0x1c7)](){const _0x53b939=_0x2fb2a2;this[_0x53b939(0x1cd)]&&(super[_0x53b939(0x1c7)](),this[_0x53b939(0x1f1)](!0x0));}[_0x2fb2a2(0x1ea)](_0x5de5b3){const _0x42ef79=_0x2fb2a2;super[_0x42ef79(0x1ea)](_0x5de5b3),this[_0x42ef79(0x1f1)](!0x1);}[_0x2fb2a2(0x1db)](_0x4e7f08){const _0x57fbbf=_0x2fb2a2;this[_0x57fbbf(0x1c9)][_0x57fbbf(0x1fe)]=this[_0x57fbbf(0x1e0)][_0x57fbbf(0x1fe)]=_0x4e7f08;}[_0x2fb2a2(0x1f1)](_0xcb3073){const _0x101f54=_0x2fb2a2;this[_0x101f54(0x1d0)][_0x101f54(0x1c2)]=_0xcb3073;}[_0x2fb2a2(0x1d2)]({showApplyButton:_0x2e47c0,showSuggestButton:_0x663bf1}){const _0x5d40b9=_0x2fb2a2;_0x2e47c0=_0x2e47c0&&!this[_0x5d40b9(0x1c4)]&&this[_0x5d40b9(0x20c)][_0x5d40b9(0x1e7)][_0x5d40b9(0x1d8)](_0x5d40b9(0x209)),_0x663bf1=_0x663bf1&&this[_0x5d40b9(0x20c)][_0x5d40b9(0x1e7)][_0x5d40b9(0x1d8)](_0x5d40b9(0x20b)),this[_0x5d40b9(0x1d0)][_0x5d40b9(0x1ca)]({'showApplyButton':_0x2e47c0,'showSuggestButton':_0x663bf1});}[_0x2fb2a2(0x213)](){const _0x36229f=_0x2fb2a2,_0x23f8a3=new _0x9aed70(this[_0x36229f(0x1e9)]);return _0x23f8a3[_0x36229f(0x1e5)]({'icon':_0x1f07b8,'label':_0x4714d3(this[_0x36229f(0x1e9)],_0x36229f(0x1fc)),'isVisible':!0x0}),_0x23f8a3['on'](_0x36229f(0x1ec),()=>{const _0x584286=_0x36229f;this[_0x584286(0x211)](_0x584286(0x1d1));}),_0x23f8a3;}[_0x2fb2a2(0x1eb)](){const _0x5a6606=_0x2fb2a2,_0x12911b=new _0x9aed70(this[_0x5a6606(0x1e9)]);return _0x12911b[_0x5a6606(0x1e5)]({'icon':_0x246d46,'label':_0x4714d3(this[_0x5a6606(0x1e9)],_0x5a6606(0x20f)),'isVisible':!0x0}),_0x12911b['on'](_0x5a6606(0x1ec),()=>{const _0x3c874d=_0x5a6606;this[_0x3c874d(0x211)](_0x3c874d(0x1c8));}),_0x12911b;}}class ms extends _0xb81d71{constructor(_0x51b9ff,_0x5a5f8e){const _0x258821=_0x2fb2a2;super(_0x51b9ff),this[_0x258821(0x1e4)]({'tag':_0x258821(0x1ce),'attributes':{'class':[_0x258821(0x206)]},'children':_0x5a5f8e});}}
23
+ function _0x8d52(_0x588f96,_0x206b84){const _0x287968=_0x2879();return _0x8d52=function(_0x8d52c1,_0x3734a5){_0x8d52c1=_0x8d52c1-0x10c;let _0x947e69=_0x287968[_0x8d52c1];return _0x947e69;},_0x8d52(_0x588f96,_0x206b84);}const _0x23854e=_0x8d52;(function(_0x6707a8,_0x261799){const _0x3baffa=_0x8d52,_0x3bf195=_0x6707a8();while(!![]){try{const _0x34a744=-parseInt(_0x3baffa(0x13e))/0x1*(parseInt(_0x3baffa(0x157))/0x2)+-parseInt(_0x3baffa(0x151))/0x3*(parseInt(_0x3baffa(0x120))/0x4)+-parseInt(_0x3baffa(0x111))/0x5*(-parseInt(_0x3baffa(0x10f))/0x6)+-parseInt(_0x3baffa(0x150))/0x7+-parseInt(_0x3baffa(0x117))/0x8+-parseInt(_0x3baffa(0x12c))/0x9*(parseInt(_0x3baffa(0x14a))/0xa)+parseInt(_0x3baffa(0x12b))/0xb;if(_0x34a744===_0x261799)break;else _0x3bf195['push'](_0x3bf195['shift']());}catch(_0x3b2bda){_0x3bf195['push'](_0x3bf195['shift']());}}}(_0x2879,0x9ab88));import{FocusTracker as _0x4c1ac6,KeystrokeHandler as _0x40b79e}from'ckeditor5/src/utils.js';import{AISuggestionStreamableContentView as _0x410176}from'../../aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js';import{AISuggestionContentPartToolbarView as _0x366ea5}from'../../aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js';import{AIMiniToolbarView as _0xae8593}from'../../aicore/ui/suggestioncontainer/aiminitoolbarview.js';import{AIBalloonView as _0x2e4db0}from'../../aiballoon/ui/aiballoonview.js';import{ButtonView as _0x83f20,FocusCycler as _0x3dd98e,View as _0x2c8582}from'ckeditor5/src/ui.js';import{AISuggestionContentPartStateView as _0x5e3629}from'../../aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js';function _0x2879(){const _0x55584b=['listenTo','shift\x20+\x20tab','div','pending','locale','7613728wsURwi','full','add','ck-ai-chat-balloon-main_state_','nextButtonView','_state','applySuggestion','element','isVisible','44236RGHjfX','updateContent','update','toggleSuggestionDisplayMode','set','isShowChangesOn','change:_state','_focusTracker','_toolbarContainerView','addMany','_createPreviousButtonView','26781810oLQtRX','13698SdKliS','ck-ai-chat-balloon-main','isEnabled','hideError','AI_BALLOON_NEXT_LABEL','bindTemplate','showPrevious','_partToolbarView','insertSuggestion','_errorView','fire','_createNextButtonView','previousButtonView','bind','has','showError','focusFirst','keepErrors','413225NXaGpi','showBlockingError','children','change:isTrackChangesOn','showDiff','AI_BALLOON_PREVIOUS_LABEL','toggleRotatorButtonsVisibility','focusCycler','render','_stateView','createCollection','ck-ai-chat-balloon__toolbar-container','860WCNIkg','focus','execute','showNext','isTrackChangesOn','includes','3143210CSqZDp','183ZBcEgF','_togglePartToolbarButtonsVisibility','tab','focusLast','setTemplate','availableActions','2BIWzBm','_config','toggleShowChanges','togglePartToolbarEnabled','setButtonsVisibility','_miniToolbarView','_focusables','setState','_streamableContentView','_keystrokes','_isErrorVisible','delegate','rejectSuggestion','613866sxVwLq','destroy','40wFnSVq'];_0x2879=function(){return _0x55584b;};return _0x2879();}import{IconChevronDown as _0x485121,IconChevronUp as _0x56eaf8}from'ckeditor5/src/icons.js';import{getTranslation as _0x34f29d}from'../../aicore/utils/common-translations.js';import'../../../theme/aichat/aichatballoon.css';export class AIChatBalloonView extends _0x2e4db0{[_0x23854e(0x140)];[_0x23854e(0x11b)];[_0x23854e(0x138)];[_0x23854e(0x145)];[_0x23854e(0x15d)];[_0x23854e(0x127)];[_0x23854e(0x160)];[_0x23854e(0x158)];[_0x23854e(0x15f)];[_0x23854e(0x128)];[_0x23854e(0x133)];[_0x23854e(0x147)];[_0x23854e(0x15c)];constructor(_0x3cf976,_0x5f4bb7){const _0xc524b0=_0x23854e;super(_0x3cf976);const _0x16aba0=this[_0xc524b0(0x131)];this[_0xc524b0(0x124)](_0xc524b0(0x142),!0x1),this[_0xc524b0(0x124)](_0xc524b0(0x11c),_0xc524b0(0x115)),this[_0xc524b0(0x127)]=new _0x4c1ac6(),this[_0xc524b0(0x160)]=new _0x40b79e(),this[_0xc524b0(0x15d)]=this[_0xc524b0(0x148)](),this[_0xc524b0(0x145)]=new _0x3dd98e({'focusables':this[_0xc524b0(0x15d)],'focusTracker':this[_0xc524b0(0x127)],'keystrokeHandler':this[_0xc524b0(0x160)],'actions':{'focusPrevious':_0xc524b0(0x113),'focusNext':_0xc524b0(0x153)}}),this[_0xc524b0(0x158)]=_0x5f4bb7,this[_0xc524b0(0x11b)]=this[_0xc524b0(0x137)](),this[_0xc524b0(0x138)]=this[_0xc524b0(0x12a)](),this[_0xc524b0(0x15f)]=new _0x410176(_0x3cf976),this[_0xc524b0(0x133)]=new _0x366ea5(_0x3cf976,_0x5f4bb7[_0xc524b0(0x156)]),this[_0xc524b0(0x133)][_0xc524b0(0x10d)](_0xc524b0(0x11d),_0xc524b0(0x134),_0xc524b0(0x10e))['to'](this),this[_0xc524b0(0x152)](_0x5f4bb7),this[_0xc524b0(0x147)]=new _0x5e3629(_0x3cf976),this[_0xc524b0(0x147)][_0xc524b0(0x11f)]=!0x1,this[_0xc524b0(0x15c)]=new _0xae8593(_0x3cf976,{'showChanges':_0xc524b0(0x118)}),this[_0xc524b0(0x15c)][_0xc524b0(0x139)](_0xc524b0(0x125))['to'](this,_0xc524b0(0x142)),this[_0xc524b0(0x15c)]['on'](_0xc524b0(0x159),()=>{const _0x295c8a=_0xc524b0;this[_0x295c8a(0x136)](_0x295c8a(0x123));}),this[_0xc524b0(0x128)]=new ms(_0x3cf976,[this[_0xc524b0(0x133)],this[_0xc524b0(0x147)],this[_0xc524b0(0x15c)]]),this[_0xc524b0(0x140)]=this[_0xc524b0(0x148)]([this[_0xc524b0(0x15f)],this[_0xc524b0(0x128)]]),this['on'](_0xc524b0(0x126),(_0x1cb315,_0x5b9c4e,_0xaec8f8,_0x50b8e1)=>{const _0x415d41=_0xc524b0;let _0x1d0dd3,_0x3be4b9;_0x415d41(0x115)===_0x50b8e1?(_0x1d0dd3=this[_0x415d41(0x133)],_0x3be4b9=this[_0x415d41(0x147)]):(_0x1d0dd3=this[_0x415d41(0x147)],_0x3be4b9=this[_0x415d41(0x133)]),this[_0x415d41(0x147)][_0x415d41(0x15e)](_0xaec8f8),_0x1d0dd3[_0x415d41(0x11f)]=!0x1,_0x3be4b9[_0x415d41(0x11f)]=!0x0;}),this[_0xc524b0(0x155)]({'tag':_0xc524b0(0x114),'attributes':{'class':['ck',_0xc524b0(0x12d),_0x16aba0['to'](_0xc524b0(0x11c),_0x4c831f=>_0xc524b0(0x11a)+_0x4c831f)]},'children':this[_0xc524b0(0x140)]}),this['on'](_0xc524b0(0x141),()=>{const _0x4eea32=_0xc524b0;this[_0x4eea32(0x152)](_0x5f4bb7);});}[_0x23854e(0x146)](){const _0x2669fb=_0x23854e;super[_0x2669fb(0x146)](),this[_0x2669fb(0x11b)][_0x2669fb(0x146)](),this[_0x2669fb(0x138)][_0x2669fb(0x146)](),this[_0x2669fb(0x127)][_0x2669fb(0x119)](this[_0x2669fb(0x11e)]),this[_0x2669fb(0x127)][_0x2669fb(0x119)](this[_0x2669fb(0x11b)]),this[_0x2669fb(0x127)][_0x2669fb(0x119)](this[_0x2669fb(0x138)]),this[_0x2669fb(0x127)][_0x2669fb(0x119)](this[_0x2669fb(0x15c)]),this[_0x2669fb(0x127)][_0x2669fb(0x119)](this[_0x2669fb(0x133)]),this[_0x2669fb(0x160)][_0x2669fb(0x112)](this[_0x2669fb(0x11e)]),this[_0x2669fb(0x160)][_0x2669fb(0x112)](this[_0x2669fb(0x11b)][_0x2669fb(0x11e)]),this[_0x2669fb(0x160)][_0x2669fb(0x112)](this[_0x2669fb(0x138)][_0x2669fb(0x11e)]),this[_0x2669fb(0x15d)][_0x2669fb(0x129)]([this[_0x2669fb(0x11b)],this[_0x2669fb(0x138)],this[_0x2669fb(0x133)],this[_0x2669fb(0x15c)]]);}[_0x23854e(0x110)](){const _0x53eab3=_0x23854e;super[_0x53eab3(0x110)](),this[_0x53eab3(0x138)][_0x53eab3(0x110)](),this[_0x53eab3(0x11b)][_0x53eab3(0x110)]();}[_0x23854e(0x14b)](){const _0x3d1504=_0x23854e;this[_0x3d1504(0x145)][_0x3d1504(0x13c)]();}[_0x23854e(0x154)](){const _0x4cbdc0=_0x23854e;this[_0x4cbdc0(0x145)][_0x4cbdc0(0x154)]();}async[_0x23854e(0x121)](_0x3e0f79){const _0x29b3e5=_0x23854e;_0x3e0f79?.[_0x29b3e5(0x13d)]||this[_0x29b3e5(0x12f)](),await this[_0x29b3e5(0x15f)][_0x29b3e5(0x122)](_0x3e0f79);}[_0x23854e(0x15e)](_0x2803a7){const _0x2e55aa=_0x23854e;this[_0x2e55aa(0x11c)]=_0x2803a7;}[_0x23854e(0x13b)](_0x506add){const _0x44cf01=_0x23854e;super[_0x44cf01(0x13b)](_0x506add),this[_0x44cf01(0x140)][_0x44cf01(0x13a)](this[_0x44cf01(0x135)])||this[_0x44cf01(0x140)][_0x44cf01(0x119)](this[_0x44cf01(0x135)],0x0);}[_0x23854e(0x12f)](){const _0x485f0d=_0x23854e;this[_0x485f0d(0x10c)]&&(super[_0x485f0d(0x12f)](),this[_0x485f0d(0x15a)](!0x0));}[_0x23854e(0x13f)](_0x589d05){const _0x49479a=_0x23854e;super[_0x49479a(0x13f)](_0x589d05),this[_0x49479a(0x15a)](!0x1);}[_0x23854e(0x144)](_0x4d56dc){const _0x17d2ac=_0x23854e;this[_0x17d2ac(0x11b)][_0x17d2ac(0x11f)]=this[_0x17d2ac(0x138)][_0x17d2ac(0x11f)]=_0x4d56dc;}[_0x23854e(0x15a)](_0x241eac){const _0x408de0=_0x23854e;this[_0x408de0(0x133)][_0x408de0(0x12e)]=_0x241eac;}[_0x23854e(0x152)]({showApplyButton:_0x325827,showSuggestButton:_0x567f88}){const _0x8a7334=_0x23854e;_0x325827=_0x325827&&!this[_0x8a7334(0x14e)]&&this[_0x8a7334(0x158)][_0x8a7334(0x156)][_0x8a7334(0x14f)](_0x8a7334(0x11d)),_0x567f88=_0x567f88&&this[_0x8a7334(0x158)][_0x8a7334(0x156)][_0x8a7334(0x14f)](_0x8a7334(0x134)),this[_0x8a7334(0x133)][_0x8a7334(0x15b)]({'showApplyButton':_0x325827,'showSuggestButton':_0x567f88});}[_0x23854e(0x137)](){const _0x93133e=_0x23854e,_0x108f8c=new _0x83f20(this[_0x93133e(0x116)]);return _0x108f8c[_0x93133e(0x124)]({'icon':_0x485121,'label':_0x34f29d(this[_0x93133e(0x116)],_0x93133e(0x130)),'isVisible':!0x0}),_0x108f8c['on'](_0x93133e(0x14c),()=>{const _0x1a4ae6=_0x93133e;this[_0x1a4ae6(0x136)](_0x1a4ae6(0x14d));}),_0x108f8c;}[_0x23854e(0x12a)](){const _0x56c309=_0x23854e,_0x5bf026=new _0x83f20(this[_0x56c309(0x116)]);return _0x5bf026[_0x56c309(0x124)]({'icon':_0x56eaf8,'label':_0x34f29d(this[_0x56c309(0x116)],_0x56c309(0x143)),'isVisible':!0x0}),_0x5bf026['on'](_0x56c309(0x14c),()=>{const _0xe9042c=_0x56c309;this[_0xe9042c(0x136)](_0xe9042c(0x132));}),_0x5bf026;}}class ms extends _0x2c8582{constructor(_0x586431,_0x140e45){const _0x5736cb=_0x23854e;super(_0x586431),this[_0x5736cb(0x155)]({'tag':_0x5736cb(0x114),'attributes':{'class':[_0x5736cb(0x149)]},'children':_0x140e45});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x269d71=_0x4daa;(function(_0x656fad,_0x13cb51){const _0x347695=_0x4daa,_0x341ab3=_0x656fad();while(!![]){try{const _0x3b2f2c=-parseInt(_0x347695(0xf0))/0x1*(parseInt(_0x347695(0x11e))/0x2)+-parseInt(_0x347695(0x117))/0x3+-parseInt(_0x347695(0x11d))/0x4+parseInt(_0x347695(0x132))/0x5+parseInt(_0x347695(0x116))/0x6*(-parseInt(_0x347695(0xf2))/0x7)+parseInt(_0x347695(0x103))/0x8*(-parseInt(_0x347695(0x125))/0x9)+parseInt(_0x347695(0x110))/0xa;if(_0x3b2f2c===_0x13cb51)break;else _0x341ab3['push'](_0x341ab3['shift']());}catch(_0x3d729d){_0x341ab3['push'](_0x341ab3['shift']());}}}(_0x2c42,0x6ac03));import{ButtonView as _0x4def17,clickOutsideHandler as _0x213ca3,View as _0x5ed4fd}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x2244d3}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x493e0e}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x4d5a00,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x21935a}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x2cc609}from'./controls/aichatcontrolsloaderview.js';import{getTranslation as _0x1a4993}from'../../aicore/utils/common-translations.js';import'../../../theme/aichat/aichat-controls.css';import'../../../theme/aichat/aichat-controls/prompt-input.css';import'../../../theme/aichat/aichat-controls/prompt-capabilities.css';import'../../../theme/aichat/aichat-controls/model-unavailable-message.css';import'../../../theme/aichat/aichat-controls/aichat-context-controls.css';import'../../../theme/aichat/aichat-controls/aichat-context-chip.css';import'../../../theme/aichat/aichat-controls/aichat-controls-button.css';function _0x2c42(){const _0x5e36e9=['ck-ai-chat-controls-disabled','fieldView','setModel','change:isLoading','disableModelSelector','ck-ai-chat-controls-model-unavailable-message','clearCurrentContextItems','isDisabled','8570RnxgVl','sendUserMessage','3371172FwepJM','setModelList','form','contextResourcesSearchInputVisibleFrom','_promptInputView','removeContextItem','populateSourceResourceBalloon','setConversationContext','setContextItemLoading','set','_createPromptCapabilitiesView','isModelAvailable','setReasoning','execute','ck-ai-chat-controls','abortPromptStream','delegate','688eBtwPp','addContextItem','_contextPanelView','_createContextPanelView','value','_modelUnavailableMessageView','focus','bodyCollection','clearConversationContextUI','_loaderView','reset','setPromptInputValue','enableModelSelector','10517060txjKND','startConversation','toggleWebSearch','toggleReasoning','focusPromptInput','closeSourceResourceBalloon','6wZZAqI','710136oDIVKx','_shouldRestorePromptInputFocus','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','setIsUploadInProgress','clearConversationContextItems','setPlaceholderText','1094724MFaqiw','56KicwiO','selectModel','element','bindTemplate','queryView','_promptCapabilitiesView','updateResourceState','7677oBwqIi','setAddContextOptions','ck-ai-chat-controls__start-new-chat-button','setTemplate','isLoading','clearPendingContextUI','low','_createLoaderView','locale','ck-hidden','setInputPlaceholder','resetMessageInput','addContextButtonView','3454260xenSIr','setWebSearch','_createPromptInputView','_handlePromptInputFocus','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','_createModelUnavailableMessageView','div'];_0x2c42=function(){return _0x5e36e9;};return _0x2c42();}import'../../../theme/aichat/aichat-controls/aichat-controls-loader.css';import'../../../theme/aichat/aichat-controls/aichat-context-controls-balloon-panels.css';function _0x4daa(_0xf17c14,_0x27df06){const _0x2c423f=_0x2c42();return _0x4daa=function(_0x4daadc,_0x8724f7){_0x4daadc=_0x4daadc-0xe4;let _0x4e481d=_0x2c423f[_0x4daadc];return _0x4e481d;},_0x4daa(_0xf17c14,_0x27df06);}export class AIChatControlsView extends _0x5ed4fd{[_0x269d71(0x105)];[_0x269d71(0xf6)];[_0x269d71(0x123)];[_0x269d71(0x10c)];[_0x269d71(0x108)];[_0x269d71(0x118)];constructor(_0x3ed0fa,_0x330f8f){const _0x324701=_0x269d71;super(_0x3ed0fa),this[_0x324701(0x105)]=this[_0x324701(0x106)](_0x3ed0fa,{'bodyCollection':_0x330f8f[_0x324701(0x10a)],'searchInputVisibleFrom':_0x330f8f[_0x324701(0xf5)]}),this[_0x324701(0xf6)]=this[_0x324701(0x134)](_0x3ed0fa),this[_0x324701(0x123)]=this[_0x324701(0xfc)](_0x3ed0fa),this[_0x324701(0x10c)]=this[_0x324701(0x12c)](_0x3ed0fa),this[_0x324701(0x108)]=this[_0x324701(0xe6)](_0x3ed0fa),this[_0x324701(0x118)]=!0x1,this[_0x324701(0xf6)][_0x324701(0x102)](_0x324701(0xf1))['to'](this),this[_0x324701(0x10c)][_0x324701(0x102)](_0x324701(0x101))['to'](this),this[_0x324701(0x123)][_0x324701(0x102)](_0x324701(0x112))['to'](this),this[_0x324701(0x123)][_0x324701(0x102)](_0x324701(0x113))['to'](this),this[_0x324701(0x123)][_0x324701(0x102)](_0x324701(0x11f))['to'](this),this[_0x324701(0x105)][_0x324701(0x102)](..._0x21935a)['to'](this),this[_0x324701(0xfb)](_0x324701(0xfd),!0x0),this[_0x324701(0xfb)](_0x324701(0xef),!0x1);const _0x182b30=this[_0x324701(0x121)];this[_0x324701(0x128)]({'tag':_0x324701(0xf4),'attributes':{'class':['ck',_0x324701(0x100),_0x182b30['if'](_0x324701(0xef),_0x324701(0xe8))]},'children':[{'tag':_0x324701(0xe7),'attributes':{'class':[_0x182b30['if'](_0x324701(0x129),_0x324701(0x12e),_0x1ad88f=>_0x1ad88f||!this[_0x324701(0xfd)]),_0x182b30['if'](_0x324701(0xfd),_0x324701(0x12e),_0x465ab2=>!_0x465ab2||this[_0x324701(0x129)])]},'children':[this[_0x324701(0x105)],this[_0x324701(0xf6)],this[_0x324701(0x123)]]},{'tag':_0x324701(0xe7),'attributes':{'class':[_0x182b30['if'](_0x324701(0x129),_0x324701(0x12e),_0x520bb1=>!_0x520bb1)]},'children':[this[_0x324701(0x10c)]]},{'tag':_0x324701(0xe7),'attributes':{'class':[_0x182b30['if'](_0x324701(0xfd),_0x324701(0x12e),_0x167cab=>_0x167cab)]},'children':[this[_0x324701(0x108)]]}]}),_0x213ca3({'emitter':this[_0x324701(0xf6)],'activator':()=>this[_0x324701(0x129)],'contextElements':()=>[this[_0x324701(0x120)]],'callback':()=>{const _0x182889=_0x324701;this[_0x182889(0x118)]=!0x1;}}),this['on'](_0x324701(0xeb),this[_0x324701(0xe4)],{'priority':_0x324701(0x12b)});}[_0x269d71(0x106)](_0x491da9,_0x441690){return new _0x4d5a00(_0x491da9,_0x441690);}[_0x269d71(0x134)](_0x3dc59f){const _0x49a9e7=_0x269d71;return new _0x2244d3(_0x3dc59f,this[_0x49a9e7(0x105)][_0x49a9e7(0x131)]);}[_0x269d71(0xfc)](_0x6e5d7b){return new _0x493e0e(_0x6e5d7b);}[_0x269d71(0x12c)](_0x3d34f2){return new _0x2cc609(_0x3d34f2);}[_0x269d71(0xe6)](_0x5dc03b){const _0x4c5ead=_0x269d71,_0x32df56=new As(_0x5dc03b);return _0x32df56[_0x4c5ead(0x102)](_0x4c5ead(0x111))['to'](this),_0x32df56;}[_0x269d71(0xe4)](_0x2e1e84,_0x269aa3,_0x5b8636){const _0x45d40f=_0x269d71;_0x5b8636?this[_0x45d40f(0x118)]=!0x0:this[_0x45d40f(0x118)]&&this[_0x45d40f(0xf6)][_0x45d40f(0x109)]();}[_0x269d71(0x104)](_0x37331f,_0x42a804){const _0x3a42e8=_0x269d71;this[_0x3a42e8(0x105)][_0x3a42e8(0x104)](_0x37331f,_0x42a804);}[_0x269d71(0xf7)](_0x527bd7){const _0x755a26=_0x269d71;this[_0x755a26(0x105)][_0x755a26(0xf7)](_0x527bd7);}[_0x269d71(0xfa)](_0xd1b018,_0x453e3e){const _0x5e791e=_0x269d71;this[_0x5e791e(0x105)][_0x5e791e(0xfa)](_0xd1b018,_0x453e3e);}[_0x269d71(0x11a)](_0x60d72e){const _0x353962=_0x269d71;this[_0x353962(0xf6)][_0x353962(0x11a)](_0x60d72e);}[_0x269d71(0xf9)](_0x22911b){const _0x1ebd3e=_0x269d71;this[_0x1ebd3e(0x105)][_0x1ebd3e(0xf9)](_0x22911b);}[_0x269d71(0x12a)](){const _0x2e0680=_0x269d71;this[_0x2e0680(0x105)][_0x2e0680(0xee)]();}[_0x269d71(0x10b)](){const _0x29b02d=_0x269d71;this[_0x29b02d(0x105)][_0x29b02d(0x11b)]();}[_0x269d71(0x124)](_0x2819ff,_0x57990c,_0x5c5495){const _0x4a72fd=_0x269d71;this[_0x4a72fd(0x105)][_0x4a72fd(0x124)](_0x2819ff,_0x57990c,_0x5c5495);}[_0x269d71(0x133)](_0x5e37b8){const _0x148cde=_0x269d71;this[_0x148cde(0x123)][_0x148cde(0x133)](_0x5e37b8);}[_0x269d71(0xfe)](_0x21f8a6){const _0x365d52=_0x269d71;this[_0x365d52(0x123)][_0x365d52(0xfe)](_0x21f8a6);}[_0x269d71(0x130)](){const _0x1e0d71=_0x269d71;this[_0x1e0d71(0xf6)][_0x1e0d71(0x10d)]();}[_0x269d71(0x126)](_0x46c249){const _0x534773=_0x269d71;this[_0x534773(0x105)][_0x534773(0x126)](_0x46c249);}[_0x269d71(0x12f)](_0x3f8672){const _0x27e3e1=_0x269d71;this[_0x27e3e1(0xf6)][_0x27e3e1(0x11c)](_0x3f8672);}[_0x269d71(0xf3)](_0x188058,_0x1f6d4e){const _0x1386b3=_0x269d71;this[_0x1386b3(0x123)][_0x1386b3(0xf3)](_0x188058,_0x1f6d4e);}[_0x269d71(0xea)](_0x1c2860){const _0x3ec2d5=_0x269d71;_0x1c2860?(this[_0x3ec2d5(0xfd)]=!0x0,this[_0x3ec2d5(0x123)][_0x3ec2d5(0xea)](_0x1c2860)):this[_0x3ec2d5(0xfd)]=!0x1;}[_0x269d71(0x10f)](){const _0x257f6b=_0x269d71;this[_0x257f6b(0x123)][_0x257f6b(0x10f)]();}[_0x269d71(0xec)](_0x5140e5){const _0x3c76f5=_0x269d71;this[_0x3c76f5(0x123)][_0x3c76f5(0xec)](_0x5140e5);}[_0x269d71(0xf8)](_0x29331b,_0x4d3d53,_0x11ed68,_0x5b6437){const _0x115695=_0x269d71;this[_0x115695(0x105)][_0x115695(0xf8)](_0x29331b,_0x4d3d53,_0x11ed68,_0x5b6437);}[_0x269d71(0x115)](_0x571bab){const _0x4a13f0=_0x269d71;this[_0x4a13f0(0x105)][_0x4a13f0(0x115)](_0x571bab);}[_0x269d71(0x114)](_0xb34535=!0x1){const _0xca58c7=_0x269d71;this[_0xca58c7(0xf6)][_0xca58c7(0x109)](_0xb34535);}[_0x269d71(0x10e)](_0x1e0545){const _0x5a5ccd=_0x269d71;this[_0x5a5ccd(0xf6)][_0x5a5ccd(0x122)][_0x5a5ccd(0xe9)][_0x5a5ccd(0x10d)](),this[_0x5a5ccd(0xf6)][_0x5a5ccd(0x122)][_0x5a5ccd(0xe9)][_0x5a5ccd(0x107)]=_0x1e0545;}}class As extends _0x5ed4fd{constructor(_0x3ad845){const _0x4f30c0=_0x269d71;super(_0x3ad845);const _0x6a1fb1=new _0x4def17(_0x3ad845);_0x6a1fb1[_0x4f30c0(0xfb)]({'label':_0x1a4993(this[_0x4f30c0(0x12d)],_0x4f30c0(0x119)),'withText':!0x0,'class':[_0x4f30c0(0x127)],'tooltip':''}),_0x6a1fb1[_0x4f30c0(0x102)](_0x4f30c0(0xff))['to'](this,_0x4f30c0(0x111)),this[_0x4f30c0(0x128)]({'tag':_0x4f30c0(0xe7),'attributes':{'class':['ck',_0x4f30c0(0xed)]},'children':[{'tag':'p','children':[{'text':_0x1a4993(this[_0x4f30c0(0x12d)],_0x4f30c0(0xe5))+'\x20'},_0x6a1fb1]}]});}}
23
+ const _0x45d933=_0x3cc9;(function(_0x1ad8cc,_0x5fa766){const _0x30bf8a=_0x3cc9,_0x222958=_0x1ad8cc();while(!![]){try{const _0x108fd3=parseInt(_0x30bf8a(0x138))/0x1+-parseInt(_0x30bf8a(0x139))/0x2+parseInt(_0x30bf8a(0x12e))/0x3*(-parseInt(_0x30bf8a(0x154))/0x4)+-parseInt(_0x30bf8a(0x15d))/0x5+parseInt(_0x30bf8a(0x11c))/0x6*(parseInt(_0x30bf8a(0x13c))/0x7)+parseInt(_0x30bf8a(0x160))/0x8+parseInt(_0x30bf8a(0x120))/0x9*(parseInt(_0x30bf8a(0x134))/0xa);if(_0x108fd3===_0x5fa766)break;else _0x222958['push'](_0x222958['shift']());}catch(_0x3ed9fb){_0x222958['push'](_0x222958['shift']());}}}(_0x1f8a,0x7b1d7));import{ButtonView as _0x413717,clickOutsideHandler as _0x41a394,View as _0x2f6da8}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0xf485b9}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x3d660f}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x11e3f5,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x19a079}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x5b3b95}from'./controls/aichatcontrolsloaderview.js';import{getTranslation as _0x581715}from'../../aicore/utils/common-translations.js';function _0x1f8a(){const _0x3e96d5=['18298IedfvM','_createLoaderView','ck-ai-chat-controls-disabled','reset','setIsUploadInProgress','setModel','fieldView','_shouldRestorePromptInputFocus','_loaderView','locale','clearConversationContextItems','addContextButtonView','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','_createPromptCapabilitiesView','contextResourcesSearchInputVisibleFrom','set','focusPromptInput','ck-ai-chat-controls','resetMessageInput','value','form','enableModelSelector','removeContextItem','_createContextPanelView','8ZBChSK','setWebSearch','isDisabled','sendUserMessage','_promptInputView','ck-ai-chat-controls__start-new-chat-button','closeSourceResourceBalloon','setAddContextOptions','_contextPanelView','3930505qqURFm','_promptCapabilitiesView','_modelUnavailableMessageView','3059520jfnrdD','div','clearPendingContextUI','setInputPlaceholder','setContextItemLoading','ck-ai-chat-controls-model-unavailable-message','clearConversationContextUI','bodyCollection','populateSourceResourceBalloon','change:isLoading','element','setConversationContext','setPromptInputValue','2046HONGkW','toggleReasoning','isModelAvailable','_createPromptInputView','170514RdZups','queryView','bindTemplate','focus','ck-hidden','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','setReasoning','execute','addContextItem','setPlaceholderText','selectModel','disableModelSelector','abortPromptStream','_handlePromptInputFocus','937293PJYRKi','low','delegate','startConversation','_createModelUnavailableMessageView','setModelList','90kCQGSv','toggleWebSearch','isLoading','clearCurrentContextItems','920116HectPI','898404qoMzwp','setTemplate','updateResourceState'];_0x1f8a=function(){return _0x3e96d5;};return _0x1f8a();}import'../../../theme/aichat/aichat-controls.css';import'../../../theme/aichat/aichat-controls/prompt-input.css';import'../../../theme/aichat/aichat-controls/prompt-capabilities.css';import'../../../theme/aichat/aichat-controls/model-unavailable-message.css';import'../../../theme/aichat/aichat-controls/aichat-context-controls.css';import'../../../theme/aichat/aichat-controls/aichat-context-chip.css';function _0x3cc9(_0x5608fc,_0xce4e00){const _0x1f8a24=_0x1f8a();return _0x3cc9=function(_0x3cc9d8,_0x36351b){_0x3cc9d8=_0x3cc9d8-0x11a;let _0x577e03=_0x1f8a24[_0x3cc9d8];return _0x577e03;},_0x3cc9(_0x5608fc,_0xce4e00);}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 _0x2f6da8{[_0x45d933(0x15c)];[_0x45d933(0x158)];[_0x45d933(0x15e)];[_0x45d933(0x144)];[_0x45d933(0x15f)];[_0x45d933(0x143)];constructor(_0x30ff03,_0x1ff96a){const _0x27f08d=_0x45d933;super(_0x30ff03),this[_0x27f08d(0x15c)]=this[_0x27f08d(0x153)](_0x30ff03,{'bodyCollection':_0x1ff96a[_0x27f08d(0x167)],'searchInputVisibleFrom':_0x1ff96a[_0x27f08d(0x14a)]}),this[_0x27f08d(0x158)]=this[_0x27f08d(0x11f)](_0x30ff03),this[_0x27f08d(0x15e)]=this[_0x27f08d(0x149)](_0x30ff03),this[_0x27f08d(0x144)]=this[_0x27f08d(0x13d)](_0x30ff03),this[_0x27f08d(0x15f)]=this[_0x27f08d(0x132)](_0x30ff03),this[_0x27f08d(0x143)]=!0x1,this[_0x27f08d(0x158)][_0x27f08d(0x130)](_0x27f08d(0x157))['to'](this),this[_0x27f08d(0x144)][_0x27f08d(0x130)](_0x27f08d(0x12c))['to'](this),this[_0x27f08d(0x15e)][_0x27f08d(0x130)](_0x27f08d(0x135))['to'](this),this[_0x27f08d(0x15e)][_0x27f08d(0x130)](_0x27f08d(0x11d))['to'](this),this[_0x27f08d(0x15e)][_0x27f08d(0x130)](_0x27f08d(0x12a))['to'](this),this[_0x27f08d(0x15c)][_0x27f08d(0x130)](..._0x19a079)['to'](this),this[_0x27f08d(0x14b)](_0x27f08d(0x11e),!0x0),this[_0x27f08d(0x14b)](_0x27f08d(0x156),!0x1);const _0x17ecbb=this[_0x27f08d(0x122)];this[_0x27f08d(0x13a)]({'tag':_0x27f08d(0x150),'attributes':{'class':['ck',_0x27f08d(0x14d),_0x17ecbb['if'](_0x27f08d(0x156),_0x27f08d(0x13e))]},'children':[{'tag':_0x27f08d(0x161),'attributes':{'class':[_0x17ecbb['if'](_0x27f08d(0x136),_0x27f08d(0x124),_0xb4a92c=>_0xb4a92c||!this[_0x27f08d(0x11e)]),_0x17ecbb['if'](_0x27f08d(0x11e),_0x27f08d(0x124),_0x46836c=>!_0x46836c||this[_0x27f08d(0x136)])]},'children':[this[_0x27f08d(0x15c)],this[_0x27f08d(0x158)],this[_0x27f08d(0x15e)]]},{'tag':_0x27f08d(0x161),'attributes':{'class':[_0x17ecbb['if'](_0x27f08d(0x136),_0x27f08d(0x124),_0x5659d0=>!_0x5659d0)]},'children':[this[_0x27f08d(0x144)]]},{'tag':_0x27f08d(0x161),'attributes':{'class':[_0x17ecbb['if'](_0x27f08d(0x11e),_0x27f08d(0x124),_0x499019=>_0x499019)]},'children':[this[_0x27f08d(0x15f)]]}]}),_0x41a394({'emitter':this[_0x27f08d(0x158)],'activator':()=>this[_0x27f08d(0x136)],'contextElements':()=>[this[_0x27f08d(0x16a)]],'callback':()=>{const _0x1655d0=_0x27f08d;this[_0x1655d0(0x143)]=!0x1;}}),this['on'](_0x27f08d(0x169),this[_0x27f08d(0x12d)],{'priority':_0x27f08d(0x12f)});}[_0x45d933(0x153)](_0x1ef48d,_0x447843){return new _0x11e3f5(_0x1ef48d,_0x447843);}[_0x45d933(0x11f)](_0x2c0b5c){const _0xf244d0=_0x45d933;return new _0xf485b9(_0x2c0b5c,this[_0xf244d0(0x15c)][_0xf244d0(0x147)]);}[_0x45d933(0x149)](_0x4c2e33){return new _0x3d660f(_0x4c2e33);}[_0x45d933(0x13d)](_0x5c5437){return new _0x5b3b95(_0x5c5437);}[_0x45d933(0x132)](_0x1bb862){const _0x5b0887=_0x45d933,_0x347c9a=new As(_0x1bb862);return _0x347c9a[_0x5b0887(0x130)](_0x5b0887(0x131))['to'](this),_0x347c9a;}[_0x45d933(0x12d)](_0xb5163,_0xd98d8,_0x194cb0){const _0x58ef2e=_0x45d933;_0x194cb0?this[_0x58ef2e(0x143)]=!0x0:this[_0x58ef2e(0x143)]&&this[_0x58ef2e(0x158)][_0x58ef2e(0x123)]();}[_0x45d933(0x128)](_0x1bfb54,_0x575a62){const _0x5c025e=_0x45d933;this[_0x5c025e(0x15c)][_0x5c025e(0x128)](_0x1bfb54,_0x575a62);}[_0x45d933(0x152)](_0x11f953){const _0x5f7747=_0x45d933;this[_0x5f7747(0x15c)][_0x5f7747(0x152)](_0x11f953);}[_0x45d933(0x164)](_0x172325,_0x41b46e){const _0x41c8ac=_0x45d933;this[_0x41c8ac(0x15c)][_0x41c8ac(0x164)](_0x172325,_0x41b46e);}[_0x45d933(0x140)](_0x5b87a6){const _0x5e2de6=_0x45d933;this[_0x5e2de6(0x158)][_0x5e2de6(0x140)](_0x5b87a6);}[_0x45d933(0x11a)](_0x1de1a8){const _0x1555c2=_0x45d933;this[_0x1555c2(0x15c)][_0x1555c2(0x11a)](_0x1de1a8);}[_0x45d933(0x162)](){const _0x1faf5e=_0x45d933;this[_0x1faf5e(0x15c)][_0x1faf5e(0x137)]();}[_0x45d933(0x166)](){const _0x407e51=_0x45d933;this[_0x407e51(0x15c)][_0x407e51(0x146)]();}[_0x45d933(0x13b)](_0x52584c,_0x9d8eb9,_0x1c2e50){const _0x456eff=_0x45d933;this[_0x456eff(0x15c)][_0x456eff(0x13b)](_0x52584c,_0x9d8eb9,_0x1c2e50);}[_0x45d933(0x155)](_0x4f9d01){const _0x528fd9=_0x45d933;this[_0x528fd9(0x15e)][_0x528fd9(0x155)](_0x4f9d01);}[_0x45d933(0x126)](_0xe6ea28){const _0x5f9fb=_0x45d933;this[_0x5f9fb(0x15e)][_0x5f9fb(0x126)](_0xe6ea28);}[_0x45d933(0x14e)](){const _0x298929=_0x45d933;this[_0x298929(0x158)][_0x298929(0x13f)]();}[_0x45d933(0x15b)](_0x31ed7b){const _0x12c829=_0x45d933;this[_0x12c829(0x15c)][_0x12c829(0x15b)](_0x31ed7b);}[_0x45d933(0x163)](_0x4c3312){const _0x51df8b=_0x45d933;this[_0x51df8b(0x158)][_0x51df8b(0x129)](_0x4c3312);}[_0x45d933(0x133)](_0x3eb998,_0x5835a0){const _0x43a507=_0x45d933;this[_0x43a507(0x15e)][_0x43a507(0x133)](_0x3eb998,_0x5835a0);}[_0x45d933(0x141)](_0x488800){const _0x1714ea=_0x45d933;_0x488800?(this[_0x1714ea(0x11e)]=!0x0,this[_0x1714ea(0x15e)][_0x1714ea(0x141)](_0x488800)):this[_0x1714ea(0x11e)]=!0x1;}[_0x45d933(0x151)](){const _0x1c0380=_0x45d933;this[_0x1c0380(0x15e)][_0x1c0380(0x151)]();}[_0x45d933(0x12b)](_0x42004d){const _0x1af91d=_0x45d933;this[_0x1af91d(0x15e)][_0x1af91d(0x12b)](_0x42004d);}[_0x45d933(0x168)](_0x3563c1,_0x139ca8,_0xeb062b,_0x2ac8bd){const _0x252c89=_0x45d933;this[_0x252c89(0x15c)][_0x252c89(0x168)](_0x3563c1,_0x139ca8,_0xeb062b,_0x2ac8bd);}[_0x45d933(0x15a)](_0x3fc320){const _0x530f1b=_0x45d933;this[_0x530f1b(0x15c)][_0x530f1b(0x15a)](_0x3fc320);}[_0x45d933(0x14c)](_0x3b9dfb=!0x1){const _0x43bad6=_0x45d933;this[_0x43bad6(0x158)][_0x43bad6(0x123)](_0x3b9dfb);}[_0x45d933(0x11b)](_0x4e587f){const _0x1cb91c=_0x45d933;this[_0x1cb91c(0x158)][_0x1cb91c(0x121)][_0x1cb91c(0x142)][_0x1cb91c(0x13f)](),this[_0x1cb91c(0x158)][_0x1cb91c(0x121)][_0x1cb91c(0x142)][_0x1cb91c(0x14f)]=_0x4e587f;}}class As extends _0x2f6da8{constructor(_0x9f34f){const _0x1f9e55=_0x45d933;super(_0x9f34f);const _0x1fa382=new _0x413717(_0x9f34f);_0x1fa382[_0x1f9e55(0x14b)]({'label':_0x581715(this[_0x1f9e55(0x145)],_0x1f9e55(0x148)),'withText':!0x0,'class':[_0x1f9e55(0x159)],'tooltip':''}),_0x1fa382[_0x1f9e55(0x130)](_0x1f9e55(0x127))['to'](this,_0x1f9e55(0x131)),this[_0x1f9e55(0x13a)]({'tag':_0x1f9e55(0x161),'attributes':{'class':['ck',_0x1f9e55(0x165)]},'children':[{'tag':'p','children':[{'text':_0x581715(this[_0x1f9e55(0x145)],_0x1f9e55(0x125))+'\x20'},_0x1fa382]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x42a8ba=_0x1320;(function(_0x1df4a8,_0x3a7edb){const _0x2851ae=_0x1320,_0x543ac9=_0x1df4a8();while(!![]){try{const _0xfa7a62=parseInt(_0x2851ae(0x17f))/0x1+parseInt(_0x2851ae(0x161))/0x2+-parseInt(_0x2851ae(0x18c))/0x3+parseInt(_0x2851ae(0x176))/0x4+parseInt(_0x2851ae(0x18d))/0x5+parseInt(_0x2851ae(0x160))/0x6*(parseInt(_0x2851ae(0x1ad))/0x7)+-parseInt(_0x2851ae(0x162))/0x8*(parseInt(_0x2851ae(0x1ab))/0x9);if(_0xfa7a62===_0x3a7edb)break;else _0x543ac9['push'](_0x543ac9['shift']());}catch(_0x532528){_0x543ac9['push'](_0x543ac9['shift']());}}}(_0x3584,0xa0f39));import{CKEditorError as _0x45b861,logWarning as _0x1cab98,scrollAncestorsToShowTarget as _0x20a5aa}from'ckeditor5/src/utils.js';import{View as _0x51356f}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x3410b1}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x47be48}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x593d7e}from'./feed/aichatfeedreplyitemview.js';function _0x3584(){const _0x2c2e4a=['stopAutoScroll','ck-ai-chat__loader','isTrackChangesOn','_bodyCollection','ck-ai-chat__feed__items','updateWebSources','86247sHjVoT','_createSkeletonLoader','includes','remove','updateSuggestionItem','custom-element','delegate','aiFeed','updateReplyItem','getPartView','isVisible','_createFeedItems','stop','1734954Vdvwgl','6151730Zlknti','_createTemplateChildren','updatePartState','setLoadingMessage','ck-ai-chat__feed','span','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','setTemplate','div','bind','toggleLoadingSkeleton','createCollection','_createLoaderChildren','ai-chat-feed-view-item-not-a-suggestion-item','element','markAsDone','map','interaction-header','clear','addItem','add','setSuggestionPartActive','children','options','ai-suggestion-reply','loadingMessage','updateSources','ai-chat-feed-view-item-not-a-reply-item','updateContent','scrollManager','9tnCPoz','set','49jSAWIL','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','filter','parentElement','locale','ai-chat-feed-view-item-not-found','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','getItemById','updateSuggestionPartState','bindTemplate','244176qRxwHm','698146PeWCkD','11953672TOyDVL','find','isLoadingSkeletonVisible','ck-ai-chat__loader-text','ai-reply','render','scrollToSuggestion','user-message','_setupTemplate','setPartActive','getItemIds','ck-hidden','isPending','start','_createFeedLoader','destroy','hasItem','forEach','removeItem','markItemAsDone','3124984AktEbZ','startAutoScroll','extendTemplate'];_0x3584=function(){return _0x2c2e4a;};return _0x3584();}import{AIChatFeedUserMessageItemView as _0x4ba812}from'./feed/aichatfeedusermessageitem.js';function _0x1320(_0x1525ea,_0x5ee4e5){const _0x3584c6=_0x3584();return _0x1320=function(_0x1320e9,_0x56aa54){_0x1320e9=_0x1320e9-0x160;let _0x3b2442=_0x3584c6[_0x1320e9];return _0x3b2442;},_0x1320(_0x1525ea,_0x5ee4e5);}import{AIChatFeedErrorItemView as _0x3a2521}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x410016}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x4da46b}from'../../aicore/utils/scrollmanager.js';import{AISkeletonView as _0x3f1447,SKELETON_DEFINITIONS as _0x17deaa}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x3d9c5b}from'../../aicore/ui/aispinner.js';import{AIChatFeedCustomElementView as _0x16c8f7}from'./feed/aichatfeedcustomelementview.js';import'../../../theme/aichat/aichatfeed.css';export class AIChatFeedView extends _0x51356f{[_0x42a8ba(0x1a3)];[_0x42a8ba(0x1aa)];[_0x42a8ba(0x17c)];constructor(_0x27d109,_0x544a63){const _0x58f4d6=_0x42a8ba;super(_0x27d109),this[_0x58f4d6(0x17c)]=_0x544a63,this[_0x58f4d6(0x1ac)](_0x58f4d6(0x16e),!0x1),this[_0x58f4d6(0x1ac)](_0x58f4d6(0x1a6),''),this[_0x58f4d6(0x1ac)](_0x58f4d6(0x164),!0x1),this[_0x58f4d6(0x1ac)](_0x58f4d6(0x17b),!0x1),this[_0x58f4d6(0x1a3)]=this[_0x58f4d6(0x198)](),this[_0x58f4d6(0x1a3)][_0x58f4d6(0x185)](..._0x3410b1)['to'](this),this[_0x58f4d6(0x16a)]();}[_0x42a8ba(0x167)](){const _0x5a70b3=_0x42a8ba;super[_0x5a70b3(0x167)](),this[_0x5a70b3(0x1aa)]=new _0x4da46b(this[_0x5a70b3(0x19b)]);}[_0x42a8ba(0x171)](){const _0x5bd1f0=_0x42a8ba;super[_0x5bd1f0(0x171)](),this[_0x5bd1f0(0x1aa)][_0x5bd1f0(0x171)]();}[_0x42a8ba(0x19f)](){const _0x10f151=_0x42a8ba;this[_0x10f151(0x1a3)][_0x10f151(0x19f)]();}[_0x42a8ba(0x1a0)](_0xcc8de4,_0x3e08d1){const _0x1d4cc0=_0x42a8ba;let _0x95357e;return _0x1d4cc0(0x166)===_0xcc8de4?_0x95357e=new _0x593d7e(this[_0x1d4cc0(0x1b1)],_0x3e08d1,this[_0x1d4cc0(0x17c)]):_0x1d4cc0(0x1a5)===_0xcc8de4?(_0x95357e=new _0x47be48(this[_0x1d4cc0(0x1b1)],_0x3e08d1,this[_0x1d4cc0(0x17c)]),_0x95357e[_0x1d4cc0(0x196)](_0x1d4cc0(0x17b))['to'](this)):_0x95357e=_0x1d4cc0(0x169)===_0xcc8de4?new _0x4ba812(this[_0x1d4cc0(0x1b1)],_0x3e08d1,this[_0x1d4cc0(0x17c)]):_0x1d4cc0(0x19e)===_0xcc8de4?new _0x410016(this[_0x1d4cc0(0x1b1)],_0x3e08d1):_0x1d4cc0(0x184)===_0xcc8de4?new _0x16c8f7(_0x3e08d1):new _0x3a2521(_0x3e08d1),this[_0x1d4cc0(0x1a3)][_0x1d4cc0(0x1a1)](_0x95357e),_0x95357e;}async[_0x42a8ba(0x187)]({id:_0x1ea00f,parsedContent:_0x33cb91,renderingStrategy:_0x159e2e,abortSignal:_0x222dee}){const _0x4acec7=_0x42a8ba,_0x42a009=this[_0x4acec7(0x1b4)](_0x1ea00f);if(!(_0x42a009 instanceof _0x593d7e))throw new _0x45b861(_0x4acec7(0x1a8),null,{'itemView':_0x42a009,'id':_0x1ea00f,'parsedContent':_0x33cb91});await _0x42a009[_0x4acec7(0x1a9)]({'parsedContent':_0x33cb91,'renderingStrategy':_0x159e2e,'abortSignal':_0x222dee});}async[_0x42a8ba(0x17e)](_0x5d0b6e,_0x14a019){const _0x1218f2=_0x42a8ba,_0x33c802=this[_0x1218f2(0x1b4)](_0x5d0b6e);if(_0x33c802 instanceof _0x47be48)_0x33c802[_0x1218f2(0x1a7)](_0x14a019);else{if(!(_0x33c802 instanceof _0x593d7e))throw new _0x45b861(_0x1218f2(0x1b3),null,{'itemView':_0x33c802,'id':_0x5d0b6e,'sources':_0x14a019});_0x33c802[_0x1218f2(0x1a7)](_0x14a019);}}async[_0x42a8ba(0x183)]({id:_0x397ed3,parts:_0x237ce3,renderingStrategy:_0x242e15,abortSignal:_0x5b699a}){const _0x5379aa=_0x42a8ba,_0x4f00ff=this[_0x5379aa(0x1b4)](_0x397ed3);if(!(_0x4f00ff instanceof _0x47be48))throw new _0x45b861(_0x5379aa(0x19a),null,{'itemView':_0x4f00ff,'id':_0x397ed3,'parts':_0x237ce3});await _0x4f00ff[_0x5379aa(0x1a9)]({'parts':_0x237ce3,'renderingStrategy':_0x242e15,'abortSignal':_0x5b699a});}[_0x42a8ba(0x1b5)]({id:_0xfcc042,index:_0x494880,state:_0xa35082}){const _0x546eea=_0x42a8ba,_0x2a5973=this[_0x546eea(0x1b4)](_0xfcc042);if(!(_0x2a5973 instanceof _0x47be48))throw new _0x45b861(_0x546eea(0x19a),this,{'id':_0xfcc042});_0x2a5973[_0x546eea(0x18f)](_0x494880,_0xa35082);}[_0x42a8ba(0x1a2)]({id:_0x39d6d2,index:_0x55e1d6,isActive:_0x22be9b}){const _0x577b13=_0x42a8ba,_0x14a5a6=this[_0x577b13(0x1b4)](_0x39d6d2);if(!(_0x14a5a6 instanceof _0x47be48))throw new _0x45b861(_0x577b13(0x19a),this,{'id':_0x39d6d2});this[_0x577b13(0x1a3)][_0x577b13(0x1af)](_0x2b676c=>_0x2b676c instanceof _0x47be48)[_0x577b13(0x173)](_0x1ca5f1=>{const _0x3ae78b=_0x577b13;_0x1ca5f1[_0x3ae78b(0x16b)](!0x1);}),_0x14a5a6[_0x577b13(0x16b)](_0x55e1d6,_0x22be9b);}[_0x42a8ba(0x175)](_0x4b18eb){const _0x181d3a=_0x42a8ba;this[_0x181d3a(0x1b4)](_0x4b18eb)[_0x181d3a(0x19c)]();}[_0x42a8ba(0x16c)](){const _0x48be11=_0x42a8ba;return this[_0x48be11(0x1a3)][_0x48be11(0x19d)](_0x5631d4=>_0x5631d4[_0x48be11(0x1a4)]['id']);}[_0x42a8ba(0x174)](_0x175b6b){const _0x304fba=_0x42a8ba;this[_0x304fba(0x1a3)][_0x304fba(0x182)](this[_0x304fba(0x1b4)](_0x175b6b));}[_0x42a8ba(0x172)](_0x32f1e5){const _0x58ecd7=_0x42a8ba;return!!this[_0x58ecd7(0x1a3)][_0x58ecd7(0x163)](_0x3291ed=>_0x3291ed[_0x58ecd7(0x1a4)]['id'][_0x58ecd7(0x181)](_0x32f1e5));}[_0x42a8ba(0x168)](_0x397214,_0x2148d5){const _0x3a9c25=_0x42a8ba,_0x496eb6=this[_0x3a9c25(0x1b4)](_0x397214);if(!(_0x496eb6 instanceof _0x47be48))return void _0x1cab98(_0x3a9c25(0x193),{'replyId':_0x397214,'partIndex':_0x2148d5});const _0x3e548b=_0x496eb6[_0x3a9c25(0x188)](_0x2148d5);_0x3e548b?_0x20a5aa(_0x3e548b[_0x3a9c25(0x19b)],0x14,this[_0x3a9c25(0x19b)][_0x3a9c25(0x1b0)],!0x0,!0x0):_0x1cab98(_0x3a9c25(0x1ae),{'replyId':_0x397214,'partIndex':_0x2148d5});}[_0x42a8ba(0x16a)](){const _0x4f6028=_0x42a8ba;this[_0x4f6028(0x194)]({'tag':_0x4f6028(0x195),'attributes':{'class':['ck',_0x4f6028(0x191)]},'children':this[_0x4f6028(0x18e)]()});}[_0x42a8ba(0x18e)](){const _0x32f29e=_0x42a8ba,_0x20746a=this[_0x32f29e(0x180)]();return[this[_0x32f29e(0x18a)](),_0x20746a,this[_0x32f29e(0x170)]()];}[_0x42a8ba(0x180)](){const _0x401cae=_0x42a8ba,_0x1513de=new _0x3f1447(this[_0x401cae(0x1b1)],_0x17deaa[_0x401cae(0x186)]);return _0x1513de[_0x401cae(0x178)]({'attributes':{'class':[this[_0x401cae(0x1b6)]['if'](_0x401cae(0x164),_0x401cae(0x16d),_0x4beac1=>!_0x4beac1)]}}),_0x1513de;}[_0x42a8ba(0x18a)](){const _0x436c66=_0x42a8ba,_0x5653c3=new _0x51356f(this[_0x436c66(0x1b1)]);return _0x5653c3[_0x436c66(0x194)]({'tag':_0x436c66(0x195),'attributes':{'class':['ck',_0x436c66(0x17d),this[_0x436c66(0x1b6)]['if'](_0x436c66(0x164),_0x436c66(0x16d))]},'children':this[_0x436c66(0x1a3)]}),_0x5653c3;}[_0x42a8ba(0x170)](){const _0xff9dc0=_0x42a8ba,_0x37b43e=new _0x51356f(this[_0xff9dc0(0x1b1)]);return _0x37b43e[_0xff9dc0(0x194)]({'tag':_0xff9dc0(0x195),'attributes':{'class':['ck',_0xff9dc0(0x17a),this[_0xff9dc0(0x1b6)]['if'](_0xff9dc0(0x16e),_0xff9dc0(0x16d),_0x2aebea=>!_0x2aebea)]},'children':this[_0xff9dc0(0x199)]()}),_0x37b43e;}[_0x42a8ba(0x199)](){const _0x5f2f2d=_0x42a8ba,_0x22a5b4=new _0x3d9c5b();return _0x22a5b4[_0x5f2f2d(0x189)]=!0x0,[_0x22a5b4,{'tag':_0x5f2f2d(0x192),'attributes':{'class':['ck',_0x5f2f2d(0x165)]},'children':[{'text':this[_0x5f2f2d(0x1b6)]['to'](_0x5f2f2d(0x1a6))}]}];}[_0x42a8ba(0x1b4)](_0x5373cc){const _0x57f07b=_0x42a8ba,_0x4cc3a2=this[_0x57f07b(0x1a3)][_0x57f07b(0x163)](_0x4de9c3=>_0x4de9c3[_0x57f07b(0x1a4)]['id'][_0x57f07b(0x181)](_0x5373cc));if(!_0x4cc3a2)throw new _0x45b861(_0x57f07b(0x1b2),this,{'id':_0x5373cc});return _0x4cc3a2;}[_0x42a8ba(0x190)](_0x17498a){const _0x465fdd=_0x42a8ba;this[_0x465fdd(0x1ac)](_0x465fdd(0x1a6),_0x17498a);}[_0x42a8ba(0x197)](_0x58b3f9){const _0x53c14e=_0x42a8ba;this[_0x53c14e(0x1ac)](_0x53c14e(0x164),_0x58b3f9);}[_0x42a8ba(0x177)](){const _0x5c459d=_0x42a8ba;this[_0x5c459d(0x1aa)][_0x5c459d(0x16f)]();}[_0x42a8ba(0x179)](){const _0x37d6ba=_0x42a8ba;this[_0x37d6ba(0x1aa)][_0x37d6ba(0x18b)]();}}
23
+ const _0xeb7e9a=_0x9550;(function(_0x4e6d77,_0x558649){const _0xeaa08f=_0x9550,_0x3510a6=_0x4e6d77();while(!![]){try{const _0x5a13fc=parseInt(_0xeaa08f(0xf0))/0x1+parseInt(_0xeaa08f(0xf4))/0x2*(-parseInt(_0xeaa08f(0x100))/0x3)+-parseInt(_0xeaa08f(0x135))/0x4+parseInt(_0xeaa08f(0xef))/0x5*(-parseInt(_0xeaa08f(0x111))/0x6)+-parseInt(_0xeaa08f(0x113))/0x7*(-parseInt(_0xeaa08f(0xf1))/0x8)+-parseInt(_0xeaa08f(0x102))/0x9*(-parseInt(_0xeaa08f(0xf8))/0xa)+-parseInt(_0xeaa08f(0x12d))/0xb;if(_0x5a13fc===_0x558649)break;else _0x3510a6['push'](_0x3510a6['shift']());}catch(_0x4072d0){_0x3510a6['push'](_0x3510a6['shift']());}}}(_0x5333,0x753ab));import{CKEditorError as _0x5a5487,logWarning as _0x3d4c8c,scrollAncestorsToShowTarget as _0x4f2585}from'ckeditor5/src/utils.js';import{View as _0x2e96e0}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x5d7451}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x11a9ca}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x1e4ec3}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x3cf0a4}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x157382}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0xadd285}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x4197f9}from'../../aicore/utils/scrollmanager.js';import{AISkeletonView as _0x527628,SKELETON_DEFINITIONS as _0x3340d5}from'../../aicore/ui/aiskeleton.js';function _0x5333(){const _0x4cd24d=['ck-ai-chat__feed','updateSuggestionItem','children','removeItem','loadingMessage','forEach','updateReplyItem','updatePartState','ai-chat-feed-view-item-not-found','extendTemplate','toggleLoadingSkeleton','_createFeedLoader','createCollection','options','startAutoScroll','remove','markAsDone','ck-hidden','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','811690xFyXXm','updateSources','stopAutoScroll','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','stop','parentElement','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','isLoadingSkeletonVisible','242804CysKVR','_bodyCollection','user-message','custom-element','bind','isPending','markItemAsDone','setPartActive','updateWebSources','div','setTemplate','interaction-header','_createFeedItems','span','ck-ai-chat__loader','setSuggestionPartActive','start','destroy','updateSuggestionPartState','20WcJVHe','301818fnWHNc','80qmVBvJ','scrollManager','_createLoaderChildren','1034SCzSbw','scrollToSuggestion','setLoadingMessage','ai-chat-feed-view-item-not-a-reply-item','6576490EzhvOM','_setupTemplate','getPartView','ai-suggestion-reply','ai-chat-feed-view-item-not-a-suggestion-item','addItem','ck-ai-chat__feed__items','locale','2991luFmUo','getItemById','9znXgYo','delegate','updateContent','find','aiFeed','isTrackChangesOn','ck-ai-chat__loader-text','hasItem','render','_createTemplateChildren','set','isVisible','filter','includes','clear','725184GeiMKz','_createSkeletonLoader','457870tuPQgR','map','element','add','bindTemplate','getItemIds','ai-reply'];_0x5333=function(){return _0x4cd24d;};return _0x5333();}import{AISpinnerView as _0x1d9d82}from'../../aicore/ui/aispinner.js';function _0x9550(_0x1ca727,_0x5ee96c){const _0x53334a=_0x5333();return _0x9550=function(_0x955069,_0x14b251){_0x955069=_0x955069-0xeb;let _0x12a80f=_0x53334a[_0x955069];return _0x12a80f;},_0x9550(_0x1ca727,_0x5ee96c);}import{AIChatFeedCustomElementView as _0x193995}from'./feed/aichatfeedcustomelementview.js';import'../../../theme/aichat/aichatfeed.css';export class AIChatFeedView extends _0x2e96e0{[_0xeb7e9a(0x11c)];[_0xeb7e9a(0xf2)];[_0xeb7e9a(0x136)];constructor(_0x3c0a8b,_0x3a25d6){const _0x2f196a=_0xeb7e9a;super(_0x3c0a8b),this[_0x2f196a(0x136)]=_0x3a25d6,this[_0x2f196a(0x10c)](_0x2f196a(0x13a),!0x1),this[_0x2f196a(0x10c)](_0x2f196a(0x11e),''),this[_0x2f196a(0x10c)](_0x2f196a(0x134),!0x1),this[_0x2f196a(0x10c)](_0x2f196a(0x107),!0x1),this[_0x2f196a(0x11c)]=this[_0x2f196a(0x126)](),this[_0x2f196a(0x11c)][_0x2f196a(0x103)](..._0x5d7451)['to'](this),this[_0x2f196a(0xf9)]();}[_0xeb7e9a(0x10a)](){const _0x5ec36d=_0xeb7e9a;super[_0x5ec36d(0x10a)](),this[_0x5ec36d(0xf2)]=new _0x4197f9(this[_0x5ec36d(0x115)]);}[_0xeb7e9a(0xed)](){const _0x5bb3ae=_0xeb7e9a;super[_0x5bb3ae(0xed)](),this[_0x5bb3ae(0xf2)][_0x5bb3ae(0xed)]();}[_0xeb7e9a(0x110)](){const _0x2f232f=_0xeb7e9a;this[_0x2f232f(0x11c)][_0x2f232f(0x110)]();}[_0xeb7e9a(0xfd)](_0x365c24,_0x535f3b){const _0x1695ed=_0xeb7e9a;let _0x3bcfaa;return _0x1695ed(0x119)===_0x365c24?_0x3bcfaa=new _0x1e4ec3(this[_0x1695ed(0xff)],_0x535f3b,this[_0x1695ed(0x136)]):_0x1695ed(0xfb)===_0x365c24?(_0x3bcfaa=new _0x11a9ca(this[_0x1695ed(0xff)],_0x535f3b,this[_0x1695ed(0x136)]),_0x3bcfaa[_0x1695ed(0x139)](_0x1695ed(0x107))['to'](this)):_0x3bcfaa=_0x1695ed(0x137)===_0x365c24?new _0x3cf0a4(this[_0x1695ed(0xff)],_0x535f3b,this[_0x1695ed(0x136)]):_0x1695ed(0x140)===_0x365c24?new _0xadd285(this[_0x1695ed(0xff)],_0x535f3b):_0x1695ed(0x138)===_0x365c24?new _0x193995(_0x535f3b):new _0x157382(_0x535f3b),this[_0x1695ed(0x11c)][_0x1695ed(0x116)](_0x3bcfaa),_0x3bcfaa;}async[_0xeb7e9a(0x120)]({id:_0x548313,parsedContent:_0x84967,renderingStrategy:_0x541269,abortSignal:_0x1a3725}){const _0x332444=_0xeb7e9a,_0x24379f=this[_0x332444(0x101)](_0x548313);if(!(_0x24379f instanceof _0x1e4ec3))throw new _0x5a5487(_0x332444(0xf7),null,{'itemView':_0x24379f,'id':_0x548313,'parsedContent':_0x84967});await _0x24379f[_0x332444(0x104)]({'parsedContent':_0x84967,'renderingStrategy':_0x541269,'abortSignal':_0x1a3725});}async[_0xeb7e9a(0x13d)](_0x3b0d0d,_0x21aec7){const _0x5cd623=_0xeb7e9a,_0x4737c0=this[_0x5cd623(0x101)](_0x3b0d0d);if(_0x4737c0 instanceof _0x11a9ca)_0x4737c0[_0x5cd623(0x12e)](_0x21aec7);else{if(!(_0x4737c0 instanceof _0x1e4ec3))throw new _0x5a5487(_0x5cd623(0x130),null,{'itemView':_0x4737c0,'id':_0x3b0d0d,'sources':_0x21aec7});_0x4737c0[_0x5cd623(0x12e)](_0x21aec7);}}async[_0xeb7e9a(0x11b)]({id:_0x337c53,parts:_0x3fa884,renderingStrategy:_0x22654d,abortSignal:_0x5d7931}){const _0x3cec04=_0xeb7e9a,_0xa37983=this[_0x3cec04(0x101)](_0x337c53);if(!(_0xa37983 instanceof _0x11a9ca))throw new _0x5a5487(_0x3cec04(0xfc),null,{'itemView':_0xa37983,'id':_0x337c53,'parts':_0x3fa884});await _0xa37983[_0x3cec04(0x104)]({'parts':_0x3fa884,'renderingStrategy':_0x22654d,'abortSignal':_0x5d7931});}[_0xeb7e9a(0xee)]({id:_0x1275c4,index:_0x5687ed,state:_0x3dcbf4}){const _0x3bb591=_0xeb7e9a,_0x1ea752=this[_0x3bb591(0x101)](_0x1275c4);if(!(_0x1ea752 instanceof _0x11a9ca))throw new _0x5a5487(_0x3bb591(0xfc),this,{'id':_0x1275c4});_0x1ea752[_0x3bb591(0x121)](_0x5687ed,_0x3dcbf4);}[_0xeb7e9a(0xeb)]({id:_0x5b8507,index:_0x140b5d,isActive:_0x341633}){const _0x585d19=_0xeb7e9a,_0x253c15=this[_0x585d19(0x101)](_0x5b8507);if(!(_0x253c15 instanceof _0x11a9ca))throw new _0x5a5487(_0x585d19(0xfc),this,{'id':_0x5b8507});this[_0x585d19(0x11c)][_0x585d19(0x10e)](_0x4ab29d=>_0x4ab29d instanceof _0x11a9ca)[_0x585d19(0x11f)](_0x43bc18=>{const _0x27d5f3=_0x585d19;_0x43bc18[_0x27d5f3(0x13c)](!0x1);}),_0x253c15[_0x585d19(0x13c)](_0x140b5d,_0x341633);}[_0xeb7e9a(0x13b)](_0x55b554){const _0xdc9c4e=_0xeb7e9a;this[_0xdc9c4e(0x101)](_0x55b554)[_0xdc9c4e(0x12a)]();}[_0xeb7e9a(0x118)](){const _0x2a602b=_0xeb7e9a;return this[_0x2a602b(0x11c)][_0x2a602b(0x114)](_0x4510aa=>_0x4510aa[_0x2a602b(0x127)]['id']);}[_0xeb7e9a(0x11d)](_0x37641b){const _0x295369=_0xeb7e9a;this[_0x295369(0x11c)][_0x295369(0x129)](this[_0x295369(0x101)](_0x37641b));}[_0xeb7e9a(0x109)](_0x73e74d){const _0x51b95f=_0xeb7e9a;return!!this[_0x51b95f(0x11c)][_0x51b95f(0x105)](_0x4e3a7e=>_0x4e3a7e[_0x51b95f(0x127)]['id'][_0x51b95f(0x10f)](_0x73e74d));}[_0xeb7e9a(0xf5)](_0x3354b4,_0x2fec23){const _0x2616be=_0xeb7e9a,_0x51bef3=this[_0x2616be(0x101)](_0x3354b4);if(!(_0x51bef3 instanceof _0x11a9ca))return void _0x3d4c8c(_0x2616be(0x133),{'replyId':_0x3354b4,'partIndex':_0x2fec23});const _0x10b6f2=_0x51bef3[_0x2616be(0xfa)](_0x2fec23);_0x10b6f2?_0x4f2585(_0x10b6f2[_0x2616be(0x115)],0x14,this[_0x2616be(0x115)][_0x2616be(0x132)],!0x0,!0x0):_0x3d4c8c(_0x2616be(0x12c),{'replyId':_0x3354b4,'partIndex':_0x2fec23});}[_0xeb7e9a(0xf9)](){const _0x268c82=_0xeb7e9a;this[_0x268c82(0x13f)]({'tag':_0x268c82(0x13e),'attributes':{'class':['ck',_0x268c82(0x11a)]},'children':this[_0x268c82(0x10b)]()});}[_0xeb7e9a(0x10b)](){const _0x36b9d8=_0xeb7e9a,_0x58e8d8=this[_0x36b9d8(0x112)]();return[this[_0x36b9d8(0x141)](),_0x58e8d8,this[_0x36b9d8(0x125)]()];}[_0xeb7e9a(0x112)](){const _0x5d5c58=_0xeb7e9a,_0x3f1277=new _0x527628(this[_0x5d5c58(0xff)],_0x3340d5[_0x5d5c58(0x106)]);return _0x3f1277[_0x5d5c58(0x123)]({'attributes':{'class':[this[_0x5d5c58(0x117)]['if'](_0x5d5c58(0x134),_0x5d5c58(0x12b),_0x2d4014=>!_0x2d4014)]}}),_0x3f1277;}[_0xeb7e9a(0x141)](){const _0x50193c=_0xeb7e9a,_0x578cd9=new _0x2e96e0(this[_0x50193c(0xff)]);return _0x578cd9[_0x50193c(0x13f)]({'tag':_0x50193c(0x13e),'attributes':{'class':['ck',_0x50193c(0xfe),this[_0x50193c(0x117)]['if'](_0x50193c(0x134),_0x50193c(0x12b))]},'children':this[_0x50193c(0x11c)]}),_0x578cd9;}[_0xeb7e9a(0x125)](){const _0x1bfec7=_0xeb7e9a,_0x16e29f=new _0x2e96e0(this[_0x1bfec7(0xff)]);return _0x16e29f[_0x1bfec7(0x13f)]({'tag':_0x1bfec7(0x13e),'attributes':{'class':['ck',_0x1bfec7(0x143),this[_0x1bfec7(0x117)]['if'](_0x1bfec7(0x13a),_0x1bfec7(0x12b),_0x2bbbcd=>!_0x2bbbcd)]},'children':this[_0x1bfec7(0xf3)]()}),_0x16e29f;}[_0xeb7e9a(0xf3)](){const _0x4c8ffb=_0xeb7e9a,_0x35b8a3=new _0x1d9d82();return _0x35b8a3[_0x4c8ffb(0x10d)]=!0x0,[_0x35b8a3,{'tag':_0x4c8ffb(0x142),'attributes':{'class':['ck',_0x4c8ffb(0x108)]},'children':[{'text':this[_0x4c8ffb(0x117)]['to'](_0x4c8ffb(0x11e))}]}];}[_0xeb7e9a(0x101)](_0x3e3054){const _0x1291f8=_0xeb7e9a,_0x27cd31=this[_0x1291f8(0x11c)][_0x1291f8(0x105)](_0x566b89=>_0x566b89[_0x1291f8(0x127)]['id'][_0x1291f8(0x10f)](_0x3e3054));if(!_0x27cd31)throw new _0x5a5487(_0x1291f8(0x122),this,{'id':_0x3e3054});return _0x27cd31;}[_0xeb7e9a(0xf6)](_0x8172ea){const _0x3e6134=_0xeb7e9a;this[_0x3e6134(0x10c)](_0x3e6134(0x11e),_0x8172ea);}[_0xeb7e9a(0x124)](_0x3819bf){const _0x26f100=_0xeb7e9a;this[_0x26f100(0x10c)](_0x26f100(0x134),_0x3819bf);}[_0xeb7e9a(0x128)](){const _0x3ae67f=_0xeb7e9a;this[_0x3ae67f(0xf2)][_0x3ae67f(0xec)]();}[_0xeb7e9a(0x12f)](){const _0x2e9b5c=_0xeb7e9a;this[_0x2e9b5c(0xf2)][_0x2e9b5c(0x131)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1cdd36=_0x3a59;function _0x436b(){const _0x5b49a5=['67352cqRskI','add','conversationStartButton','5475xAjrTs','_createStartConversationButton','1140628XspvSZ','768CMCBbn','locale','60oefoJA','819cpFWYV','fire','3628OzlznQ','resizeButton','12174asMyeV','set','children','3703HXcwmN','ck-ai-chat__start-conversation','3457570kmoLLi','execute','125499UAOYVa','AI_CHAT_HEADING','startConversation','4182OIfRpu','ck-ai-header\x20ck-ai-header_chat','AI_CHAT_LABEL_NEW_CHAT','isMaximized'];_0x436b=function(){return _0x5b49a5;};return _0x436b();}(function(_0x295627,_0x5c7cc2){const _0x295066=_0x3a59,_0x3f084c=_0x295627();while(!![]){try{const _0x353816=-parseInt(_0x295066(0x1b8))/0x1+-parseInt(_0x295066(0x1ca))/0x2*(parseInt(_0x295066(0x1bb))/0x3)+parseInt(_0x295066(0x1be))/0x4*(parseInt(_0x295066(0x1b6))/0x5)+-parseInt(_0x295066(0x1c0))/0x6*(-parseInt(_0x295066(0x1c3))/0x7)+-parseInt(_0x295066(0x1ce))/0x8*(-parseInt(_0x295066(0x1bc))/0x9)+-parseInt(_0x295066(0x1c5))/0xa+parseInt(_0x295066(0x1c7))/0xb*(-parseInt(_0x295066(0x1b9))/0xc);if(_0x353816===_0x5c7cc2)break;else _0x3f084c['push'](_0x3f084c['shift']());}catch(_0x56b0df){_0x3f084c['push'](_0x3f084c['shift']());}}}(_0x436b,0x8c32e));import{ButtonView as _0xd24e1d,FormHeaderView as _0x163e2b}from'ckeditor5/src/ui.js';import{IconPlus as _0x3ad553,IconAIChat as _0x5bce77}from'ckeditor5/src/icons.js';function _0x3a59(_0x4a5d82,_0x1916c8){const _0x436ba3=_0x436b();return _0x3a59=function(_0x3a599b,_0x26e75a){_0x3a599b=_0x3a599b-0x1b4;let _0x461e71=_0x436ba3[_0x3a599b];return _0x461e71;},_0x3a59(_0x4a5d82,_0x1916c8);}import{getTranslation as _0x3a901c}from'../../aicore/utils/common-translations.js';import{createResizeButton as _0x4648d6}from'../../aicore/utils/createresizebutton.js';import'../../../theme/common/aiheader.css';export class AIChatHeaderView extends _0x163e2b{[_0x1cdd36(0x1b5)];[_0x1cdd36(0x1bf)];constructor(_0x38e6b9,_0xc4350c){const _0x1b2b3f=_0x1cdd36;super(_0x38e6b9,{'label':_0x3a901c(_0x38e6b9,_0x1b2b3f(0x1c8)),'class':_0x1b2b3f(0x1cb),'icon':_0x5bce77}),this[_0x1b2b3f(0x1c1)](_0x1b2b3f(0x1cd),!0x1),this[_0x1b2b3f(0x1b5)]=this[_0x1b2b3f(0x1b7)](_0x38e6b9),this[_0x1b2b3f(0x1c2)][_0x1b2b3f(0x1b4)](this[_0x1b2b3f(0x1b5)]),_0xc4350c&&(this[_0x1b2b3f(0x1bf)]=_0x4648d6(_0x38e6b9,this),this[_0x1b2b3f(0x1c2)][_0x1b2b3f(0x1b4)](this[_0x1b2b3f(0x1bf)]));}[_0x1cdd36(0x1b7)](_0x4892c3){const _0x569254=_0x1cdd36,_0x11b07d=new _0xd24e1d(_0x4892c3);return _0x11b07d[_0x569254(0x1c1)]({'label':_0x3a901c(this[_0x569254(0x1ba)],_0x569254(0x1cc)),'withText':!0x0,'icon':_0x3ad553,'class':_0x569254(0x1c4)}),_0x11b07d['on'](_0x569254(0x1c6),()=>{const _0x4a4cce=_0x569254;this[_0x4a4cce(0x1bd)](_0x4a4cce(0x1c9));}),_0x11b07d;}}
23
+ const _0x1f1c20=_0xe690;(function(_0x4da015,_0x2bcf0e){const _0x3d709d=_0xe690,_0x1fc28d=_0x4da015();while(!![]){try{const _0x3efc82=-parseInt(_0x3d709d(0xf9))/0x1*(parseInt(_0x3d709d(0xfc))/0x2)+-parseInt(_0x3d709d(0xe5))/0x3+parseInt(_0x3d709d(0xf3))/0x4+parseInt(_0x3d709d(0xe6))/0x5*(-parseInt(_0x3d709d(0xf5))/0x6)+-parseInt(_0x3d709d(0xf8))/0x7+parseInt(_0x3d709d(0xe7))/0x8*(-parseInt(_0x3d709d(0xf6))/0x9)+parseInt(_0x3d709d(0xea))/0xa;if(_0x3efc82===_0x2bcf0e)break;else _0x1fc28d['push'](_0x1fc28d['shift']());}catch(_0x2f88b2){_0x1fc28d['push'](_0x1fc28d['shift']());}}}(_0x11d2,0x47f05));import{ButtonView as _0x353b8e,FormHeaderView as _0x36e688}from'ckeditor5/src/ui.js';import{IconPlus as _0x24aad0,IconAIChat as _0x13dcef}from'ckeditor5/src/icons.js';import{getTranslation as _0x984488}from'../../aicore/utils/common-translations.js';import{createResizeButton as _0x2c1615}from'../../aicore/utils/createresizebutton.js';import'../../../theme/common/aiheader.css';export class AIChatHeaderView extends _0x36e688{[_0x1f1c20(0xe9)];[_0x1f1c20(0xfb)];constructor(_0x2c2d02,_0x5ae96d){const _0x58f4b4=_0x1f1c20;super(_0x2c2d02,{'label':_0x984488(_0x2c2d02,_0x58f4b4(0xf2)),'class':_0x58f4b4(0xf1),'icon':_0x13dcef}),this[_0x58f4b4(0xf4)](_0x58f4b4(0xf7),!0x1),this[_0x58f4b4(0xe9)]=this[_0x58f4b4(0xe4)](_0x2c2d02),this[_0x58f4b4(0xf0)][_0x58f4b4(0xef)](this[_0x58f4b4(0xe9)]),_0x5ae96d&&(this[_0x58f4b4(0xfb)]=_0x2c1615(_0x2c2d02,this),this[_0x58f4b4(0xf0)][_0x58f4b4(0xef)](this[_0x58f4b4(0xfb)]));}[_0x1f1c20(0xe4)](_0x35f424){const _0x54718f=_0x1f1c20,_0x371f00=new _0x353b8e(_0x35f424);return _0x371f00[_0x54718f(0xf4)]({'label':_0x984488(this[_0x54718f(0xeb)],_0x54718f(0xee)),'withText':!0x0,'icon':_0x24aad0,'class':_0x54718f(0xfa)}),_0x371f00['on'](_0x54718f(0xec),()=>{const _0x33ce95=_0x54718f;this[_0x33ce95(0xe8)](_0x33ce95(0xed));}),_0x371f00;}}function _0xe690(_0x3934c4,_0x554180){const _0x11d282=_0x11d2();return _0xe690=function(_0xe69022,_0x4cea8d){_0xe69022=_0xe69022-0xe4;let _0x155451=_0x11d282[_0xe69022];return _0x155451;},_0xe690(_0x3934c4,_0x554180);}function _0x11d2(){const _0x15b35f=['ck-ai-chat__start-conversation','resizeButton','20698IeSkcw','_createStartConversationButton','807378rTOeBU','1420BAxJun','8ZTnPao','fire','conversationStartButton','17031550aXygkY','locale','execute','startConversation','AI_CHAT_LABEL_NEW_CHAT','add','children','ck-ai-header\x20ck-ai-header_chat','AI_CHAT_HEADING','398296jyUopZ','set','7164CfYLFb','110016tidEZz','isMaximized','2808533kJTSqB','47CfPUAZ'];_0x11d2=function(){return _0x15b35f;};return _0x11d2();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x2add58=_0x2a4c;(function(_0x2018d2,_0x10f2bc){var _0x20d08e=_0x2a4c,_0x418d97=_0x2018d2();while(!![]){try{var _0x5c0cb6=parseInt(_0x20d08e(0x14f))/0x1*(-parseInt(_0x20d08e(0x152))/0x2)+-parseInt(_0x20d08e(0x13c))/0x3*(-parseInt(_0x20d08e(0x14a))/0x4)+-parseInt(_0x20d08e(0x13b))/0x5*(parseInt(_0x20d08e(0x146))/0x6)+-parseInt(_0x20d08e(0x147))/0x7+parseInt(_0x20d08e(0x154))/0x8*(parseInt(_0x20d08e(0x144))/0x9)+-parseInt(_0x20d08e(0x14d))/0xa*(-parseInt(_0x20d08e(0x145))/0xb)+parseInt(_0x20d08e(0x14b))/0xc;if(_0x5c0cb6===_0x10f2bc)break;else _0x418d97['push'](_0x418d97['shift']());}catch(_0x416b71){_0x418d97['push'](_0x418d97['shift']());}}}(_0x2820,0xcfc17));import{View as _0x439c87,BodyCollection as _0x436e65}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x5a037d}from'../utils/eventnames.js';import{AIChatFeedView as _0x2b5376}from'./aichatfeedview.js';import{AIChatControlsView as _0x469289}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x233b7a}from'./aichatheaderview.js';import{AIDisclaimerView as _0x38686f}from'../../aicore/ui/aidisclaimerview.js';import'../../../theme/common/ainotification.css';function _0x2a4c(_0xf62f30,_0x276c81){var _0x28200e=_0x2820();return _0x2a4c=function(_0x2a4c86,_0x5b8b0e){_0x2a4c86=_0x2a4c86-0x139;var _0x2241c6=_0x28200e[_0x2a4c86];return _0x2241c6;},_0x2a4c(_0xf62f30,_0x276c81);}function _0x2820(){var _0x520ca3=['populateSourceResourceBalloon','setTemplate','showResizeButton','closeSourceResourceBalloon','detachFromDom','4857183btFkqS','11CiRYGF','7716pWkyUK','2507855JsHCYP','contextResourcesSearchInputVisibleFrom','div','1336NyzUor','2061408Uvtjhs','chatFeed','15492650gZbNDC','_bodyCollection','10070KPvbku','delegate','ck-ai-chat','304lPlMqX','ck-rounded-corners','8klZEIa','chatControls','destroy','uiLanguageDirection','chatHeader','chatDisclaimer','4360FGMcmx','14376bZTVEv','ck-reset_all','attachToDom'];_0x2820=function(){return _0x520ca3;};return _0x2820();}import'../../../theme/common/aibutton.css';import'../../../theme/common/aitrackchanges.css';export class AIChatView extends _0x439c87{[_0x2add58(0x139)];[_0x2add58(0x14c)];[_0x2add58(0x155)];[_0x2add58(0x13a)];[_0x2add58(0x14e)];constructor(_0xd51b8c,_0x14501){var _0x5866e3=_0x2add58;super(_0xd51b8c),this[_0x5866e3(0x14e)]=new _0x436e65(_0xd51b8c),this[_0x5866e3(0x14e)][_0x5866e3(0x13e)](),this[_0x5866e3(0x139)]=new _0x233b7a(_0xd51b8c,_0x14501[_0x5866e3(0x141)]),this[_0x5866e3(0x139)][_0x5866e3(0x150)](..._0x5a037d)['to'](this),this[_0x5866e3(0x14c)]=new _0x2b5376(_0xd51b8c,this[_0x5866e3(0x14e)]),this[_0x5866e3(0x14c)][_0x5866e3(0x150)](..._0x5a037d)['to'](this),this[_0x5866e3(0x155)]=new _0x469289(_0xd51b8c,{'bodyCollection':this[_0x5866e3(0x14e)],'contextResourcesSearchInputVisibleFrom':_0x14501[_0x5866e3(0x148)]}),this[_0x5866e3(0x155)][_0x5866e3(0x150)](..._0x5a037d)['to'](this),this[_0x5866e3(0x13a)]=new _0x38686f(_0xd51b8c),this[_0x5866e3(0x140)]({'tag':_0x5866e3(0x149),'attributes':{'class':['ck',_0x5866e3(0x13d),_0x5866e3(0x151),_0x5866e3(0x153)],'dir':_0xd51b8c[_0x5866e3(0x157)]},'children':[this[_0x5866e3(0x139)],this[_0x5866e3(0x14c)],this[_0x5866e3(0x155)],this[_0x5866e3(0x13a)]]});}[_0x2add58(0x13f)](_0x2c8f28,_0x198d28,_0x2e7e5d,_0x9ed246){var _0x490171=_0x2add58;this[_0x490171(0x155)][_0x490171(0x13f)](_0x2c8f28,_0x198d28,_0x2e7e5d,_0x9ed246);}[_0x2add58(0x142)](_0x488654){var _0x57a575=_0x2add58;this[_0x57a575(0x155)][_0x57a575(0x142)](_0x488654);}[_0x2add58(0x156)](){var _0x54009e=_0x2add58;this[_0x54009e(0x14e)][_0x54009e(0x143)](),super[_0x54009e(0x156)]();}}
23
+ var _0x203d50=_0x2a4b;(function(_0x37cad2,_0x2394bb){var _0x2b575b=_0x2a4b,_0x3f3db5=_0x37cad2();while(!![]){try{var _0x351bce=-parseInt(_0x2b575b(0x170))/0x1*(parseInt(_0x2b575b(0x160))/0x2)+-parseInt(_0x2b575b(0x16f))/0x3*(parseInt(_0x2b575b(0x176))/0x4)+-parseInt(_0x2b575b(0x165))/0x5*(-parseInt(_0x2b575b(0x175))/0x6)+-parseInt(_0x2b575b(0x15a))/0x7*(-parseInt(_0x2b575b(0x166))/0x8)+parseInt(_0x2b575b(0x15f))/0x9*(-parseInt(_0x2b575b(0x178))/0xa)+parseInt(_0x2b575b(0x15b))/0xb*(-parseInt(_0x2b575b(0x16c))/0xc)+-parseInt(_0x2b575b(0x16a))/0xd*(-parseInt(_0x2b575b(0x16e))/0xe);if(_0x351bce===_0x2394bb)break;else _0x3f3db5['push'](_0x3f3db5['shift']());}catch(_0x1fb6b9){_0x3f3db5['push'](_0x3f3db5['shift']());}}}(_0x43dd,0xe5733));function _0x2a4b(_0xcf1f0a,_0x80b9b8){var _0x43ddbf=_0x43dd();return _0x2a4b=function(_0x2a4b8b,_0x1800ac){_0x2a4b8b=_0x2a4b8b-0x158;var _0x213bbe=_0x43ddbf[_0x2a4b8b];return _0x213bbe;},_0x2a4b(_0xcf1f0a,_0x80b9b8);}import{View as _0x11f77b,BodyCollection as _0x56f048}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x29787f}from'../utils/eventnames.js';import{AIChatFeedView as _0x5c98ac}from'./aichatfeedview.js';import{AIChatControlsView as _0x4f5bd5}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x31aef5}from'./aichatheaderview.js';import{AIDisclaimerView as _0x3bbce6}from'../../aicore/ui/aidisclaimerview.js';import'../../../theme/common/ainotification.css';function _0x43dd(){var _0x5ba94d=['div','uiLanguageDirection','contextResourcesSearchInputVisibleFrom','78JurOmn','attachToDom','9448224EEmEMt','chatDisclaimer','10359888HAvMwb','1254735KiIkVq','10448LIRYsX','ck-reset_all','chatHeader','showResizeButton','populateSourceResourceBalloon','1194DmCIhG','4JOTPWO','chatFeed','10177710VWaoCB','_bodyCollection','ck-rounded-corners','1687dEofEa','22AtPEZu','setTemplate','delegate','chatControls','9uqKTDa','348xTDlMP','closeSourceResourceBalloon','destroy','detachFromDom','ck-ai-chat','19405qJKREP','18464TVvJGu'];_0x43dd=function(){return _0x5ba94d;};return _0x43dd();}import'../../../theme/common/aibutton.css';import'../../../theme/common/aitrackchanges.css';export class AIChatView extends _0x11f77b{[_0x203d50(0x172)];[_0x203d50(0x177)];[_0x203d50(0x15e)];[_0x203d50(0x16d)];[_0x203d50(0x158)];constructor(_0x5da854,_0x654fd0){var _0xaf39b2=_0x203d50;super(_0x5da854),this[_0xaf39b2(0x158)]=new _0x56f048(_0x5da854),this[_0xaf39b2(0x158)][_0xaf39b2(0x16b)](),this[_0xaf39b2(0x172)]=new _0x31aef5(_0x5da854,_0x654fd0[_0xaf39b2(0x173)]),this[_0xaf39b2(0x172)][_0xaf39b2(0x15d)](..._0x29787f)['to'](this),this[_0xaf39b2(0x177)]=new _0x5c98ac(_0x5da854,this[_0xaf39b2(0x158)]),this[_0xaf39b2(0x177)][_0xaf39b2(0x15d)](..._0x29787f)['to'](this),this[_0xaf39b2(0x15e)]=new _0x4f5bd5(_0x5da854,{'bodyCollection':this[_0xaf39b2(0x158)],'contextResourcesSearchInputVisibleFrom':_0x654fd0[_0xaf39b2(0x169)]}),this[_0xaf39b2(0x15e)][_0xaf39b2(0x15d)](..._0x29787f)['to'](this),this[_0xaf39b2(0x16d)]=new _0x3bbce6(_0x5da854),this[_0xaf39b2(0x15c)]({'tag':_0xaf39b2(0x167),'attributes':{'class':['ck',_0xaf39b2(0x171),_0xaf39b2(0x164),_0xaf39b2(0x159)],'dir':_0x5da854[_0xaf39b2(0x168)]},'children':[this[_0xaf39b2(0x172)],this[_0xaf39b2(0x177)],this[_0xaf39b2(0x15e)],this[_0xaf39b2(0x16d)]]});}[_0x203d50(0x174)](_0x2fa4e9,_0x4ede91,_0x1856f4,_0x510162){var _0xc8e201=_0x203d50;this[_0xc8e201(0x15e)][_0xc8e201(0x174)](_0x2fa4e9,_0x4ede91,_0x1856f4,_0x510162);}[_0x203d50(0x161)](_0x3f4be8){var _0x3382e5=_0x203d50;this[_0x3382e5(0x15e)][_0x3382e5(0x161)](_0x3f4be8);}[_0x203d50(0x162)](){var _0xb8f0b8=_0x203d50;this[_0xb8f0b8(0x158)][_0xb8f0b8(0x163)](),super[_0xb8f0b8(0x162)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x4aed(_0x3e7c10,_0x13e3ed){const _0x1d1e3a=_0x1d1e();return _0x4aed=function(_0x4aedc4,_0x460b34){_0x4aedc4=_0x4aedc4-0x78;let _0x477fd5=_0x1d1e3a[_0x4aedc4];return _0x477fd5;},_0x4aed(_0x3e7c10,_0x13e3ed);}const _0x12ada0=_0x4aed;function _0x1d1e(){const _0x1f578c=['overflowChips','_config','show','getBoundingClientRect','_visibleChips','_ancestorsToRestore','isOn','_handleShowMoreButtonClick','innerHTML','overflowContainer','disableAnimationOnEnter','render','300px','slice','querySelector','createElement','toLowerCase','19708784JMMhFa','_showMoreBalloonPanelView','_distributeChips','offsetWidth','_checkAndHandleOverflow','_findTargetContainer','extendTemplate','button','length','5395665fQyuCr','_parentView','remove','textContent','destroy','showBalloonPanel','some','isConnected','right','setTemplate','auto','observe','position','style','element','_containerElement','none','boxSizing','bottom','_applyOverflowResults','+\x201','cloneNode','absolute','clear','controlsButton','body','_showMoreButtonView','1513240JYGpFB','_makeAncestorsVisible','isIntersecting','0px','-9999px','pointerEvents','classList','_createCalculationContainer','innerHeight','push','3115442CxbXTE','showMoreButton','execute','hidden','visibility','rowDetectionTolerance','display','_repinBalloonPanel','_calculateContainerWidth','disconnect','from','className','_testButtonFit','.ck-ai-chat','pin','filter','_locale','4391106jHyoVT','_createShowMoreBalloonPanelView','calculationContainer','cssClasses','_createContainerElements','pop','_renderChipsAndCountRows','50px','abs','set','width','visible\x20!important','forEach','content','undefined','hideBalloonPanel','_updateBalloonContent','_restoreAncestorVisibility','_createShowMoreButtonView','_intersectionObserver','_setupVisibilityObserver','children','includes','ck-calculation-container','_updateOverflowUI','visible','reorganizeChips','setContainerElement','add','_targetContainer','height','_overflowChips','7wtEoUX','block','getComputedStyle','_pendingCalculation','left','_createMockButton','_updateShowMoreButtonVisibility','showMoreButtonView','clientHeight','appendChild','_bodyCollection','top','tagName','594814LlZOJW','zIndex','parentElement','clientWidth','_isContainerVisible','showMoreLabelPrefix','_createShowMoreButton','showMoreBalloon','maxVisibleRows','isVisible','block\x20!important','3757083xQPQYF','documentElement','label','opacity','_calculateOverflowInContainer','innerWidth','div','hide','_applyCalculationStyles','border-box'];_0x1d1e=function(){return _0x1f578c;};return _0x1d1e();}(function(_0x5ac2ca,_0x52f3ce){const _0x49b857=_0x4aed,_0x3cdadf=_0x5ac2ca();while(!![]){try{const _0x56a5fb=-parseInt(_0x49b857(0x102))/0x1+-parseInt(_0x49b857(0xc4))/0x2+parseInt(_0x49b857(0x7b))/0x3+-parseInt(_0x49b857(0xba))/0x4+-parseInt(_0x49b857(0x9f))/0x5+-parseInt(_0x49b857(0xd5))/0x6*(-parseInt(_0x49b857(0xf5))/0x7)+parseInt(_0x49b857(0x96))/0x8;if(_0x56a5fb===_0x52f3ce)break;else _0x3cdadf['push'](_0x3cdadf['shift']());}catch(_0x3f4028){_0x3cdadf['push'](_0x3cdadf['shift']());}}}(_0x1d1e,0xcc8c8));import{View as _0x86860d,BalloonPanelView as _0x18847f,ButtonView as _0x5c3010,clickOutsideHandler as _0x354a6e}from'ckeditor5/src/ui.js';import{Collection as _0xe3f288}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},an=_0x12ada0(0x91);export class AIChatChipsOverflowManager{[_0x12ada0(0xd4)];[_0x12ada0(0x86)];[_0x12ada0(0x89)];[_0x12ada0(0xf4)];[_0x12ada0(0xb9)]=null;[_0x12ada0(0x97)]=null;[_0x12ada0(0xae)]=null;[_0x12ada0(0xff)];[_0x12ada0(0xa0)]=null;[_0x12ada0(0xe8)]=null;[_0x12ada0(0xf8)]=!0x1;constructor(_0x52ea97,_0x5f1cde,_0x14bcc7,_0x302dc9,_0x2cebeb){const _0x478be3=_0x12ada0;this[_0x478be3(0xd4)]=_0x52ea97,this[_0x478be3(0x89)]=_0x5f1cde,this[_0x478be3(0x86)]={...hn,..._0x14bcc7,'cssClasses':{'controlsButton':'','calculationContainer':_0x478be3(0xec),..._0x14bcc7[_0x478be3(0xd8)]}},this[_0x478be3(0xf4)]=new _0xe3f288(),this[_0x478be3(0xff)]=_0x302dc9,this[_0x478be3(0xa0)]=_0x2cebeb||null;}[_0x12ada0(0xf0)](_0x28c8c2){const _0x14e6ba=_0x12ada0;this[_0x14e6ba(0xe8)]&&(this[_0x14e6ba(0xe8)][_0x14e6ba(0xcd)](),this[_0x14e6ba(0xe8)]=null),this[_0x14e6ba(0xae)]=_0x28c8c2,this[_0x14e6ba(0xe9)]();}get[_0x12ada0(0xfc)](){const _0x319a99=_0x12ada0;return this[_0x319a99(0xb9)];}get[_0x12ada0(0x85)](){const _0x2af4fc=_0x12ada0;return this[_0x2af4fc(0xf4)];}[_0x12ada0(0xef)](){requestAnimationFrame(()=>{const _0x21f74f=_0x4aed;this[_0x21f74f(0x9a)]();});}[_0x12ada0(0xa4)](){const _0x414231=_0x12ada0;this[_0x414231(0xb9)]&&this[_0x414231(0x97)]&&(this[_0x414231(0xe5)](),this[_0x414231(0xb9)][_0x414231(0x8b)]=!0x0,this[_0x414231(0x97)][_0x414231(0x87)](),this[_0x414231(0x97)][_0x414231(0xd2)]({'target':this[_0x414231(0xb9)][_0x414231(0xad)],'limiter':document[_0x414231(0x93)](_0x414231(0xd1))}));}[_0x12ada0(0xe4)](){const _0xdd419d=_0x12ada0;this[_0xdd419d(0xb9)]&&this[_0xdd419d(0x97)]&&(this[_0xdd419d(0xb9)][_0xdd419d(0x8b)]=!0x1,this[_0xdd419d(0x97)][_0xdd419d(0x82)]());}[_0x12ada0(0xb6)](){const _0x54846c=_0x12ada0;this[_0x54846c(0xf4)][_0x54846c(0xb6)](),this[_0x54846c(0xe4)](),this[_0x54846c(0xfb)](),this[_0x54846c(0xb9)]&&(this[_0x54846c(0xb9)][_0x54846c(0x7d)]=''),this[_0x54846c(0x97)]&&this[_0x54846c(0x97)][_0x54846c(0xe2)][_0x54846c(0xb6)]();}[_0x12ada0(0xa3)](){const _0xf06acf=_0x12ada0;this[_0xf06acf(0xe8)]&&(this[_0xf06acf(0xe8)][_0xf06acf(0xcd)](),this[_0xf06acf(0xe8)]=null),this[_0xf06acf(0xb9)]&&(this[_0xf06acf(0xb9)][_0xf06acf(0xa3)](),this[_0xf06acf(0xb9)]=null),this[_0xf06acf(0x97)]&&(this[_0xf06acf(0x97)][_0xf06acf(0xa3)](),this[_0xf06acf(0x97)]=null);}[_0x12ada0(0x9a)](){const _0x26ad95=_0x12ada0;if(!this[_0x26ad95(0xae)])return;if(!this[_0x26ad95(0x106)]())return void(this[_0x26ad95(0xf8)]=!0x0);this[_0x26ad95(0xf8)]=!0x1;const _0x4f9f10=[...this[_0x26ad95(0x89)],...this[_0x26ad95(0xf4)]],_0x37ddc1=this[_0x26ad95(0xc1)](),_0x5c9c0b=this[_0x26ad95(0x7f)](_0x37ddc1,_0x4f9f10),_0x5d08fc=_0x37ddc1[_0x26ad95(0x8a)];_0x5d08fc&&this[_0x26ad95(0xe6)](_0x5d08fc),_0x37ddc1[_0x26ad95(0xa1)](),this[_0x26ad95(0xb2)](_0x4f9f10,_0x5c9c0b);}[_0x12ada0(0x108)](){const _0xaff6bc=_0x12ada0;this[_0xaff6bc(0xb9)]=this[_0xaff6bc(0xe7)](),this[_0xaff6bc(0x97)]=this[_0xaff6bc(0xd6)](),this[_0xaff6bc(0xb9)][_0xaff6bc(0x90)](),this[_0xaff6bc(0xae)][_0xaff6bc(0xfe)](this[_0xaff6bc(0xb9)][_0xaff6bc(0xad)]),this[_0xaff6bc(0xb9)]['on'](_0xaff6bc(0xc6),()=>{const _0x1c9da5=_0xaff6bc;this[_0x1c9da5(0x8c)]();}),_0x354a6e({'emitter':this[_0xaff6bc(0x97)],'contextElements':[this[_0xaff6bc(0x97)][_0xaff6bc(0xad)],this[_0xaff6bc(0xb9)][_0xaff6bc(0xad)]],'callback':()=>this[_0xaff6bc(0xe4)](),'activator':()=>this[_0xaff6bc(0xb9)][_0xaff6bc(0x8b)]});}[_0x12ada0(0xe7)](){const _0x15c55a=_0x12ada0,_0x492741=new _0x5c3010(this[_0x15c55a(0xd4)]);_0x492741[_0x15c55a(0xde)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x1206fe=[this[_0x15c55a(0x86)][_0x15c55a(0xd8)][_0x15c55a(0xc5)]];return this[_0x15c55a(0x86)][_0x15c55a(0xd8)][_0x15c55a(0xb7)]&&_0x1206fe[_0x15c55a(0xc3)](this[_0x15c55a(0x86)][_0x15c55a(0xd8)][_0x15c55a(0xb7)]),_0x492741[_0x15c55a(0x9c)]({'attributes':{'class':_0x1206fe}}),_0x492741;}[_0x12ada0(0xd6)](){const _0x342b36=_0x12ada0,_0x30408d=new _0x18847f(this[_0x342b36(0xd4)]);return _0x30408d[_0x342b36(0x9c)]({'attributes':{'class':this[_0x342b36(0x86)][_0x342b36(0xd8)][_0x342b36(0x109)]}}),this[_0x342b36(0xff)][_0x342b36(0xf1)](_0x30408d),_0x30408d;}[_0x12ada0(0xe5)](){const _0x494686=_0x12ada0;if(this[_0x494686(0x97)]&&(this[_0x494686(0x97)][_0x494686(0xe2)][_0x494686(0xb6)](),this[_0x494686(0xf4)][_0x494686(0x9e)]>0x0)){this[_0x494686(0xf4)][_0x494686(0xe1)](_0x228f86=>{const _0x344823=_0x494686;_0x228f86[_0x344823(0x8f)]();});const _0xf65a3f=new _0x86860d(this[_0x494686(0xd4)]);_0xf65a3f[_0x494686(0xa8)]({'tag':_0x494686(0x81),'attributes':{'class':this[_0x494686(0x86)][_0x494686(0xd8)][_0x494686(0x8e)]},'children':this[_0x494686(0xf4)]}),this[_0x494686(0x97)][_0x494686(0xe2)][_0x494686(0xf1)](_0xf65a3f);}}[_0x12ada0(0x8c)](){const _0x4b95e4=_0x12ada0;this[_0x4b95e4(0xb9)][_0x4b95e4(0x8b)]?this[_0x4b95e4(0xe4)]():this[_0x4b95e4(0xa4)]();}[_0x12ada0(0xfb)](){const _0x129237=_0x12ada0,_0x5af010=this[_0x129237(0xf4)][_0x129237(0x9e)]>0x0;this[_0x129237(0xb9)]?.[_0x129237(0xad)]&&(this[_0x129237(0xb9)][_0x129237(0xad)][_0x129237(0xac)][_0x129237(0xca)]=_0x5af010?'':_0x129237(0xaf));}[_0x12ada0(0xcb)](){const _0x4ce6cf=_0x12ada0;this[_0x4ce6cf(0xb9)]?.[_0x4ce6cf(0x8b)]&&this[_0x4ce6cf(0x97)]?.[_0x4ce6cf(0x79)]&&this[_0x4ce6cf(0xb9)][_0x4ce6cf(0xad)]&&this[_0x4ce6cf(0x97)][_0x4ce6cf(0xd2)]({'target':this[_0x4ce6cf(0xb9)][_0x4ce6cf(0xad)],'limiter':document[_0x4ce6cf(0x93)](_0x4ce6cf(0xd1))});}[_0x12ada0(0x9b)](_0x187e84){const _0x153492=_0x12ada0,_0x50e9fe=this[_0x153492(0xae)]?.[_0x153492(0x101)][_0x153492(0x95)]()||_0x153492(0x81),_0x4307e5=this[_0x153492(0xae)]?.[_0x153492(0xc0)];if(_0x4307e5){const _0x5d0fee=_0x4307e5[0x0]||'',_0xc39b5b=_0x187e84[_0x153492(0x93)]('.'+_0x5d0fee),_0x4b662a=_0x187e84[_0x153492(0x93)](_0x50e9fe);return _0xc39b5b||_0x4b662a||_0x187e84;}return _0x187e84[_0x153492(0x93)](_0x50e9fe)||_0x187e84;}[_0x12ada0(0xcc)](){const _0x361b21=_0x12ada0,_0x3375e6=this[_0x361b21(0xa0)]?.[_0x361b21(0xad)]||this[_0x361b21(0xae)];if(!_0x3375e6)return an;const _0x17d0c9=window[_0x361b21(0xf7)](_0x3375e6)[_0x361b21(0xdf)];if(_0x361b21(0xa9)===_0x17d0c9||_0x361b21(0xbd)===_0x17d0c9||!_0x17d0c9){const _0x778382=_0x3375e6[_0x361b21(0x104)];if(_0x778382){const _0x3df5df=window[_0x361b21(0xf7)](_0x778382);return _0x361b21(0xa9)!==_0x3df5df[_0x361b21(0xdf)]?_0x3df5df[_0x361b21(0xdf)]:an;}return an;}return _0x17d0c9;}[_0x12ada0(0x83)](_0x4a5bc7,_0x442c48){const _0x544890=_0x12ada0;this[_0x544890(0x86)][_0x544890(0xd8)][_0x544890(0xd7)]&&_0x4a5bc7[_0x544890(0xc0)][_0x544890(0xf1)](this[_0x544890(0x86)][_0x544890(0xd8)][_0x544890(0xd7)]),_0x4a5bc7[_0x544890(0xac)][_0x544890(0xdf)]=_0x442c48,_0x4a5bc7[_0x544890(0xac)][_0x544890(0xab)]=_0x544890(0xb5),_0x4a5bc7[_0x544890(0xac)][_0x544890(0x100)]=_0x544890(0xbe),_0x4a5bc7[_0x544890(0xac)][_0x544890(0xf9)]=_0x544890(0xbe),_0x4a5bc7[_0x544890(0xac)][_0x544890(0x7e)]='0',_0x4a5bc7[_0x544890(0xac)][_0x544890(0xbf)]=_0x544890(0xaf),_0x4a5bc7[_0x544890(0xac)][_0x544890(0x103)]='-1',_0x4a5bc7[_0x544890(0xac)][_0x544890(0xc8)]=_0x544890(0xe0),_0x4a5bc7[_0x544890(0xac)][_0x544890(0xca)]=_0x544890(0x7a),_0x4a5bc7[_0x544890(0xac)][_0x544890(0xb0)]=_0x544890(0x84);}[_0x12ada0(0xe6)](_0x881179){const _0x4b6670=_0x12ada0;_0x881179[_0x4b6670(0xe1)](({element:_0x264ec6,originalDisplay:_0x2d0f9d,originalVisibility:_0x42186a})=>{const _0x3a1faa=_0x4b6670;_0x264ec6[_0x3a1faa(0xac)][_0x3a1faa(0xca)]=_0x2d0f9d,_0x264ec6[_0x3a1faa(0xac)][_0x3a1faa(0xc8)]=_0x42186a;});}[_0x12ada0(0xbb)](_0x36daf3){const _0xc7a6ad=_0x12ada0,_0x4021a1=[];let _0x17f624=_0x36daf3;for(;_0x17f624&&_0x17f624!==document[_0xc7a6ad(0xb8)];){const _0xfcf29d=window[_0xc7a6ad(0xf7)](_0x17f624);_0xc7a6ad(0xaf)!==_0xfcf29d[_0xc7a6ad(0xca)]&&_0xc7a6ad(0xc7)!==_0xfcf29d[_0xc7a6ad(0xc8)]||(_0x4021a1[_0xc7a6ad(0xc3)]({'element':_0x17f624,'originalDisplay':_0x17f624[_0xc7a6ad(0xac)][_0xc7a6ad(0xca)],'originalVisibility':_0x17f624[_0xc7a6ad(0xac)][_0xc7a6ad(0xc8)]}),_0x17f624[_0xc7a6ad(0xac)][_0xc7a6ad(0xca)]=_0xc7a6ad(0xf6),_0x17f624[_0xc7a6ad(0xac)][_0xc7a6ad(0xc8)]=_0xc7a6ad(0xee)),_0x17f624=_0x17f624[_0xc7a6ad(0x104)];}return _0x4021a1;}[_0x12ada0(0xd9)](){const _0x718e5c=_0x12ada0;let _0x1d7393,_0x53ceb6;return this[_0x718e5c(0xa0)]?.[_0x718e5c(0xad)]?(_0x1d7393=this[_0x718e5c(0xa0)][_0x718e5c(0xad)][_0x718e5c(0xb4)](!0x0),_0x53ceb6=this[_0x718e5c(0x9b)](_0x1d7393)):(_0x1d7393=document[_0x718e5c(0x94)](_0x718e5c(0x81)),_0x53ceb6=_0x1d7393),{'calculationContainer':_0x1d7393,'targetContainer':_0x53ceb6};}[_0x12ada0(0xc1)](){const _0x3b315c=_0x12ada0,{calculationContainer:_0x3f54bc,targetContainer:_0x19e00f}=this[_0x3b315c(0xd9)](),_0x4284af=this[_0x3b315c(0xcc)]();this[_0x3b315c(0x83)](_0x3f54bc,_0x4284af);const _0x46d5f4=this[_0x3b315c(0xa0)]?.[_0x3b315c(0xad)]||this[_0x3b315c(0xae)],_0x49bbd2=_0x46d5f4?.[_0x3b315c(0x104)];_0x49bbd2?_0x49bbd2[_0x3b315c(0xfe)](_0x3f54bc):document[_0x3b315c(0xb8)][_0x3b315c(0xfe)](_0x3f54bc),_0x3f54bc[_0x3b315c(0xf2)]=_0x19e00f;const _0x462c04=this[_0x3b315c(0xbb)](_0x49bbd2||null);return _0x3f54bc[_0x3b315c(0x99)],_0x3f54bc[_0x3b315c(0x8a)]=_0x462c04,_0x3f54bc;}[_0x12ada0(0x7f)](_0x4021fa,_0x22836c){const _0x35df06=_0x12ada0,_0xd5fc4f=_0x4021fa[_0x35df06(0xf2)]||_0x4021fa,_0x161a62=[],{rowCount:_0xff3591}=this[_0x35df06(0xdb)](_0xd5fc4f,_0x22836c);if(_0xff3591<=this[_0x35df06(0x86)][_0x35df06(0x78)])return _0x161a62;const _0x5ad543=_0x22836c[_0x35df06(0x92)]();for(;_0x5ad543[_0x35df06(0x9e)]>0x0;){if(this[_0x35df06(0xd0)](_0x4021fa,_0xd5fc4f,_0x5ad543)){const _0x495d43=_0x22836c[_0x35df06(0xd3)](_0x49a89a=>!_0x5ad543[_0x35df06(0xeb)](_0x49a89a));_0x161a62[_0x35df06(0xc3)](..._0x495d43);break;}if(!_0x5ad543[_0x35df06(0xda)]())break;}return _0x161a62;}[_0x12ada0(0xdb)](_0x12fa24,_0x5819fe){const _0x354093=_0x12ada0;_0x12fa24[_0x354093(0x8d)]='',_0x5819fe[_0x354093(0xe1)](_0x29b712=>{const _0x432302=_0x354093;if(_0x29b712[_0x432302(0xad)]){const _0x40b7ac=_0x29b712[_0x432302(0xad)][_0x432302(0xb4)](!0x0);_0x12fa24[_0x432302(0xfe)](_0x40b7ac);}}),_0x12fa24[_0x354093(0x99)];const _0xb99e34=_0x12fa24[_0x354093(0xea)],_0x2aa3f2=[];return Array[_0x354093(0xce)](_0xb99e34)[_0x354093(0xe1)](_0xaa8421=>{const _0x41c2b3=_0x354093,_0x11e1b2=_0xaa8421[_0x41c2b3(0x88)]()[_0x41c2b3(0x100)];_0x2aa3f2[_0x41c2b3(0xa5)](_0x395440=>Math[_0x41c2b3(0xdd)](_0x395440-_0x11e1b2)<this[_0x41c2b3(0x86)][_0x41c2b3(0xc9)])||_0x2aa3f2[_0x41c2b3(0xc3)](_0x11e1b2);}),{'rowCount':_0x2aa3f2[_0x354093(0x9e)]};}[_0x12ada0(0xfa)](){const _0x3bb01c=_0x12ada0,_0x59fdb1=document[_0x3bb01c(0x94)](_0x3bb01c(0x9d));return _0x59fdb1[_0x3bb01c(0xcf)]=this[_0x3bb01c(0x86)][_0x3bb01c(0xd8)][_0x3bb01c(0xc5)],this[_0x3bb01c(0x86)][_0x3bb01c(0xd8)][_0x3bb01c(0xb7)]&&_0x59fdb1[_0x3bb01c(0xc0)][_0x3bb01c(0xf1)](this[_0x3bb01c(0x86)][_0x3bb01c(0xd8)][_0x3bb01c(0xb7)]),_0x59fdb1[_0x3bb01c(0xa2)]=_0x3bb01c(0xb3),_0x59fdb1;}[_0x12ada0(0xd0)](_0x31cca5,_0x22daa4,_0x350794){const _0x225235=_0x12ada0;this[_0x225235(0xdb)](_0x22daa4,_0x350794);const _0x9701c7=this[_0x225235(0xfa)]();_0x31cca5[_0x225235(0xfe)](_0x9701c7),_0x31cca5[_0x225235(0x99)];const _0x102d6e=[..._0x22daa4[_0x225235(0xea)],_0x9701c7],_0x48150d=[];_0x102d6e[_0x225235(0xe1)](_0x592d16=>{const _0x37004c=_0x225235,_0x37f180=_0x592d16[_0x37004c(0x88)]()[_0x37004c(0x100)];_0x48150d[_0x37004c(0xa5)](_0x3d317b=>Math[_0x37004c(0xdd)](_0x3d317b-_0x37f180)<this[_0x37004c(0x86)][_0x37004c(0xc9)])||_0x48150d[_0x37004c(0xc3)](_0x37f180);});const _0x2f7ea2=_0x48150d[_0x225235(0x9e)];return _0x9701c7[_0x225235(0xa1)](),_0x2f7ea2<=this[_0x225235(0x86)][_0x225235(0x78)];}[_0x12ada0(0x98)](_0x4be4d5,_0x425631){const _0x4730cd=_0x12ada0;this[_0x4730cd(0x89)][_0x4730cd(0xb6)](),this[_0x4730cd(0xf4)][_0x4730cd(0xb6)](),_0x4be4d5[_0x4730cd(0xe1)](_0x4a5903=>{const _0x352361=_0x4730cd;_0x425631[_0x352361(0xeb)](_0x4a5903)?this[_0x352361(0xf4)][_0x352361(0xf1)](_0x4a5903):this[_0x352361(0x89)][_0x352361(0xf1)](_0x4a5903);});}[_0x12ada0(0xed)](_0x247f4d){const _0x4f00f5=_0x12ada0;if(_0x247f4d>0x0&&!this[_0x4f00f5(0xb9)]&&this[_0x4f00f5(0x108)](),_0x247f4d>0x0&&this[_0x4f00f5(0xb9)]){const _0xace2c4=''+this[_0x4f00f5(0x86)][_0x4f00f5(0x107)]+(_0x247f4d<0x63?_0x247f4d:'99');this[_0x4f00f5(0xb9)][_0x4f00f5(0x7d)]=_0xace2c4;}this[_0x4f00f5(0xe5)](),this[_0x4f00f5(0xfb)](),this[_0x4f00f5(0xcb)]();}[_0x12ada0(0xb2)](_0x17a940,_0x12ae17){const _0xc4ff31=_0x12ada0;this[_0xc4ff31(0x98)](_0x17a940,_0x12ae17),this[_0xc4ff31(0xed)](_0x12ae17[_0xc4ff31(0x9e)]);}[_0x12ada0(0xe9)](){const _0x496ce4=_0x12ada0;this[_0x496ce4(0xae)]&&_0x496ce4(0xe3)!=typeof IntersectionObserver&&(this[_0x496ce4(0xe8)]=new IntersectionObserver(_0x245c17=>{const _0x1044c1=_0x496ce4;_0x245c17[0x0][_0x1044c1(0xbc)]&&this[_0x1044c1(0xf8)]&&requestAnimationFrame(()=>{const _0x1a165f=_0x1044c1;this[_0x1a165f(0x9a)]();});},{'threshold':0.01,'rootMargin':_0x496ce4(0xdc)}),this[_0x496ce4(0xe8)][_0x496ce4(0xaa)](this[_0x496ce4(0xae)]));}[_0x12ada0(0x106)](){const _0x180e8e=_0x12ada0;if(!this[_0x180e8e(0xae)])return!0x1;if(!this[_0x180e8e(0xae)][_0x180e8e(0xa6)])return!0x1;const _0x3712a1=this[_0x180e8e(0xae)][_0x180e8e(0x88)]();if(0x0===_0x3712a1[_0x180e8e(0xdf)]||0x0===_0x3712a1[_0x180e8e(0xf3)])return!0x1;const _0x22cbac=window[_0x180e8e(0xc2)]||document[_0x180e8e(0x7c)][_0x180e8e(0xfd)],_0x16700f=window[_0x180e8e(0x80)]||document[_0x180e8e(0x7c)][_0x180e8e(0x105)],_0x11a125=0xc8;return _0x3712a1[_0x180e8e(0xb1)]>=-0xc8&&_0x3712a1[_0x180e8e(0x100)]<=_0x22cbac+_0x11a125&&_0x3712a1[_0x180e8e(0xa7)]>=-0xc8&&_0x3712a1[_0x180e8e(0xf9)]<=_0x16700f+_0x11a125;}}
23
+ const _0x453c3a=_0x5291;(function(_0x49fd3f,_0x28fec9){const _0x31ac17=_0x5291,_0x52100b=_0x49fd3f();while(!![]){try{const _0x1edcdf=-parseInt(_0x31ac17(0x91))/0x1+parseInt(_0x31ac17(0xbf))/0x2*(-parseInt(_0x31ac17(0x11c))/0x3)+parseInt(_0x31ac17(0x92))/0x4+-parseInt(_0x31ac17(0xf4))/0x5+-parseInt(_0x31ac17(0x98))/0x6+parseInt(_0x31ac17(0xc2))/0x7*(-parseInt(_0x31ac17(0xdb))/0x8)+parseInt(_0x31ac17(0xc3))/0x9*(parseInt(_0x31ac17(0xf3))/0xa);if(_0x1edcdf===_0x28fec9)break;else _0x52100b['push'](_0x52100b['shift']());}catch(_0x4443e5){_0x52100b['push'](_0x52100b['shift']());}}}(_0x49d4,0xa73e3));import{View as _0x5baf8c,BalloonPanelView as _0x27f859,ButtonView as _0x5a93d3,clickOutsideHandler as _0x2457dc}from'ckeditor5/src/ui.js';function _0x5291(_0x8f7b53,_0x23260d){const _0x49d4c3=_0x49d4();return _0x5291=function(_0x529154,_0x50f386){_0x529154=_0x529154-0x91;let _0x237be3=_0x49d4c3[_0x529154];return _0x237be3;},_0x5291(_0x8f7b53,_0x23260d);}import{Collection as _0x1bdd6e}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},an=_0x453c3a(0x10b);function _0x49d4(){const _0x4c2497=['visible\x20!important','_createContainerElements','205354KXZuiq','3088772dcgNrl','showMoreLabelPrefix','absolute','parentElement','controlsButton','clear','6625632IhViTw','_testButtonFit','_ancestorsToRestore','clientHeight','_checkAndHandleOverflow','isVisible','maxVisibleRows','from','cssClasses','disconnect','some','_renderChipsAndCountRows','_distributeChips','children','documentElement','showBalloonPanel','_restoreAncestorVisibility','_calculateOverflowInContainer','pin','execute','toLowerCase','cloneNode','_config','button','_createMockButton','_repinBalloonPanel','_findTargetContainer','block','_updateBalloonContent','_setupVisibilityObserver','reorganizeChips','_pendingCalculation','className','getComputedStyle','overflowChips','undefined','hideBalloonPanel','abs','_visibleChips','611410HgmfuR','innerWidth','_applyCalculationStyles','161eIuXzs','9SPDqrZ','render','push','overflowContainer','innerHeight','visibility','label','style','pop','show','_bodyCollection','clientWidth','position','showMoreButtonView','-9999px','pointerEvents','_parentView','observe','length','showMoreBalloon','set','_overflowChips','isIntersecting','_makeAncestorsVisible','391400wcWPUc','destroy','_targetContainer','height','_intersectionObserver','body','extendTemplate','includes','_showMoreButtonView','_updateShowMoreButtonVisibility','_createShowMoreButton','+\x201','boxSizing','calculationContainer','offsetWidth','_calculateContainerWidth','left','appendChild','setTemplate','display','rowDetectionTolerance','querySelector','border-box','_containerElement','38466970QBAive','5966285PtvLAk','tagName','visible','none','hidden','classList','auto','50px','isOn','createElement','opacity','_updateOverflowUI','right','innerHTML','add','_showMoreBalloonPanelView','forEach','_isContainerVisible','top','zIndex','isConnected','slice','_createShowMoreBalloonPanelView','300px','_createShowMoreButtonView','_applyOverflowResults','width','remove','0px','block\x20!important','.ck-ai-chat','showMoreButton','_locale','_createCalculationContainer','textContent','ck-calculation-container','element','setContainerElement','disableAnimationOnEnter','_handleShowMoreButtonClick','3KGmqRV','bottom','hide','getBoundingClientRect','content','filter','div'];_0x49d4=function(){return _0x4c2497;};return _0x49d4();}export class AIChatChipsOverflowManager{[_0x453c3a(0x114)];[_0x453c3a(0xae)];[_0x453c3a(0xbe)];[_0x453c3a(0xd8)];[_0x453c3a(0xe3)]=null;[_0x453c3a(0x103)]=null;[_0x453c3a(0xf2)]=null;[_0x453c3a(0xcd)];[_0x453c3a(0xd3)]=null;[_0x453c3a(0xdf)]=null;[_0x453c3a(0xb7)]=!0x1;constructor(_0x1b2ad7,_0x197388,_0x3d9bb9,_0x23c5f9,_0x4d8a3f){const _0x126690=_0x453c3a;this[_0x126690(0x114)]=_0x1b2ad7,this[_0x126690(0xbe)]=_0x197388,this[_0x126690(0xae)]={...hn,..._0x3d9bb9,'cssClasses':{'controlsButton':'','calculationContainer':_0x126690(0x117),..._0x3d9bb9[_0x126690(0xa0)]}},this[_0x126690(0xd8)]=new _0x1bdd6e(),this[_0x126690(0xcd)]=_0x23c5f9,this[_0x126690(0xd3)]=_0x4d8a3f||null;}[_0x453c3a(0x119)](_0x1d9b6e){const _0x4aac1e=_0x453c3a;this[_0x4aac1e(0xdf)]&&(this[_0x4aac1e(0xdf)][_0x4aac1e(0xa1)](),this[_0x4aac1e(0xdf)]=null),this[_0x4aac1e(0xf2)]=_0x1d9b6e,this[_0x4aac1e(0xb5)]();}get[_0x453c3a(0xd0)](){const _0x244b41=_0x453c3a;return this[_0x244b41(0xe3)];}get[_0x453c3a(0xba)](){const _0x7b3b93=_0x453c3a;return this[_0x7b3b93(0xd8)];}[_0x453c3a(0xb6)](){requestAnimationFrame(()=>{const _0x26047e=_0x5291;this[_0x26047e(0x9c)]();});}[_0x453c3a(0xa7)](){const _0x415b5e=_0x453c3a;this[_0x415b5e(0xe3)]&&this[_0x415b5e(0x103)]&&(this[_0x415b5e(0xb4)](),this[_0x415b5e(0xe3)][_0x415b5e(0xfc)]=!0x0,this[_0x415b5e(0x103)][_0x415b5e(0xcc)](),this[_0x415b5e(0x103)][_0x415b5e(0xaa)]({'target':this[_0x415b5e(0xe3)][_0x415b5e(0x118)],'limiter':document[_0x415b5e(0xf0)](_0x415b5e(0x112))}));}[_0x453c3a(0xbc)](){const _0x42b8e9=_0x453c3a;this[_0x42b8e9(0xe3)]&&this[_0x42b8e9(0x103)]&&(this[_0x42b8e9(0xe3)][_0x42b8e9(0xfc)]=!0x1,this[_0x42b8e9(0x103)][_0x42b8e9(0x11e)]());}[_0x453c3a(0x97)](){const _0x306611=_0x453c3a;this[_0x306611(0xd8)][_0x306611(0x97)](),this[_0x306611(0xbc)](),this[_0x306611(0xe4)](),this[_0x306611(0xe3)]&&(this[_0x306611(0xe3)][_0x306611(0xc9)]=''),this[_0x306611(0x103)]&&this[_0x306611(0x103)][_0x306611(0x120)][_0x306611(0x97)]();}[_0x453c3a(0xdc)](){const _0x56876b=_0x453c3a;this[_0x56876b(0xdf)]&&(this[_0x56876b(0xdf)][_0x56876b(0xa1)](),this[_0x56876b(0xdf)]=null),this[_0x56876b(0xe3)]&&(this[_0x56876b(0xe3)][_0x56876b(0xdc)](),this[_0x56876b(0xe3)]=null),this[_0x56876b(0x103)]&&(this[_0x56876b(0x103)][_0x56876b(0xdc)](),this[_0x56876b(0x103)]=null);}[_0x453c3a(0x9c)](){const _0x117b49=_0x453c3a;if(!this[_0x117b49(0xf2)])return;if(!this[_0x117b49(0x105)]())return void(this[_0x117b49(0xb7)]=!0x0);this[_0x117b49(0xb7)]=!0x1;const _0x282b21=[...this[_0x117b49(0xbe)],...this[_0x117b49(0xd8)]],_0x342eeb=this[_0x117b49(0x115)](),_0x204771=this[_0x117b49(0xa9)](_0x342eeb,_0x282b21),_0x5bb122=_0x342eeb[_0x117b49(0x9a)];_0x5bb122&&this[_0x117b49(0xa8)](_0x5bb122),_0x342eeb[_0x117b49(0x10f)](),this[_0x117b49(0x10d)](_0x282b21,_0x204771);}[_0x453c3a(0xe5)](){const _0x42dfde=_0x453c3a;this[_0x42dfde(0xe3)]=this[_0x42dfde(0x10c)](),this[_0x42dfde(0x103)]=this[_0x42dfde(0x10a)](),this[_0x42dfde(0xe3)][_0x42dfde(0xc4)](),this[_0x42dfde(0xf2)][_0x42dfde(0xec)](this[_0x42dfde(0xe3)][_0x42dfde(0x118)]),this[_0x42dfde(0xe3)]['on'](_0x42dfde(0xab),()=>{const _0x5d5836=_0x42dfde;this[_0x5d5836(0x11b)]();}),_0x2457dc({'emitter':this[_0x42dfde(0x103)],'contextElements':[this[_0x42dfde(0x103)][_0x42dfde(0x118)],this[_0x42dfde(0xe3)][_0x42dfde(0x118)]],'callback':()=>this[_0x42dfde(0xbc)](),'activator':()=>this[_0x42dfde(0xe3)][_0x42dfde(0xfc)]});}[_0x453c3a(0x10c)](){const _0x3731f2=_0x453c3a,_0x97f4f5=new _0x5a93d3(this[_0x3731f2(0x114)]);_0x97f4f5[_0x3731f2(0xd7)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x2020d2=[this[_0x3731f2(0xae)][_0x3731f2(0xa0)][_0x3731f2(0x113)]];return this[_0x3731f2(0xae)][_0x3731f2(0xa0)][_0x3731f2(0x96)]&&_0x2020d2[_0x3731f2(0xc5)](this[_0x3731f2(0xae)][_0x3731f2(0xa0)][_0x3731f2(0x96)]),_0x97f4f5[_0x3731f2(0xe1)]({'attributes':{'class':_0x2020d2}}),_0x97f4f5;}[_0x453c3a(0x10a)](){const _0x51036b=_0x453c3a,_0x1ed04a=new _0x27f859(this[_0x51036b(0x114)]);return _0x1ed04a[_0x51036b(0xe1)]({'attributes':{'class':this[_0x51036b(0xae)][_0x51036b(0xa0)][_0x51036b(0xd6)]}}),this[_0x51036b(0xcd)][_0x51036b(0x102)](_0x1ed04a),_0x1ed04a;}[_0x453c3a(0xb4)](){const _0x3f6d40=_0x453c3a;if(this[_0x3f6d40(0x103)]&&(this[_0x3f6d40(0x103)][_0x3f6d40(0x120)][_0x3f6d40(0x97)](),this[_0x3f6d40(0xd8)][_0x3f6d40(0xd5)]>0x0)){this[_0x3f6d40(0xd8)][_0x3f6d40(0x104)](_0x237349=>{const _0x2c9ab1=_0x3f6d40;_0x237349[_0x2c9ab1(0x11a)]();});const _0x162505=new _0x5baf8c(this[_0x3f6d40(0x114)]);_0x162505[_0x3f6d40(0xed)]({'tag':_0x3f6d40(0x122),'attributes':{'class':this[_0x3f6d40(0xae)][_0x3f6d40(0xa0)][_0x3f6d40(0xc6)]},'children':this[_0x3f6d40(0xd8)]}),this[_0x3f6d40(0x103)][_0x3f6d40(0x120)][_0x3f6d40(0x102)](_0x162505);}}[_0x453c3a(0x11b)](){const _0x2b7112=_0x453c3a;this[_0x2b7112(0xe3)][_0x2b7112(0xfc)]?this[_0x2b7112(0xbc)]():this[_0x2b7112(0xa7)]();}[_0x453c3a(0xe4)](){const _0x50d43d=_0x453c3a,_0xa34590=this[_0x50d43d(0xd8)][_0x50d43d(0xd5)]>0x0;this[_0x50d43d(0xe3)]?.[_0x50d43d(0x118)]&&(this[_0x50d43d(0xe3)][_0x50d43d(0x118)][_0x50d43d(0xca)][_0x50d43d(0xee)]=_0xa34590?'':_0x50d43d(0xf7));}[_0x453c3a(0xb1)](){const _0x58c405=_0x453c3a;this[_0x58c405(0xe3)]?.[_0x58c405(0xfc)]&&this[_0x58c405(0x103)]?.[_0x58c405(0x9d)]&&this[_0x58c405(0xe3)][_0x58c405(0x118)]&&this[_0x58c405(0x103)][_0x58c405(0xaa)]({'target':this[_0x58c405(0xe3)][_0x58c405(0x118)],'limiter':document[_0x58c405(0xf0)](_0x58c405(0x112))});}[_0x453c3a(0xb2)](_0x566487){const _0x58010c=_0x453c3a,_0x568861=this[_0x58010c(0xf2)]?.[_0x58010c(0xf5)][_0x58010c(0xac)]()||_0x58010c(0x122),_0x54f23b=this[_0x58010c(0xf2)]?.[_0x58010c(0xf9)];if(_0x54f23b){const _0x57f60c=_0x54f23b[0x0]||'',_0x55df58=_0x566487[_0x58010c(0xf0)]('.'+_0x57f60c),_0x5d5e10=_0x566487[_0x58010c(0xf0)](_0x568861);return _0x55df58||_0x5d5e10||_0x566487;}return _0x566487[_0x58010c(0xf0)](_0x568861)||_0x566487;}[_0x453c3a(0xea)](){const _0x4217d8=_0x453c3a,_0x3a622a=this[_0x4217d8(0xd3)]?.[_0x4217d8(0x118)]||this[_0x4217d8(0xf2)];if(!_0x3a622a)return an;const _0x50efb6=window[_0x4217d8(0xb9)](_0x3a622a)[_0x4217d8(0x10e)];if(_0x4217d8(0xfa)===_0x50efb6||_0x4217d8(0x110)===_0x50efb6||!_0x50efb6){const _0x27f0e1=_0x3a622a[_0x4217d8(0x95)];if(_0x27f0e1){const _0x3a6074=window[_0x4217d8(0xb9)](_0x27f0e1);return _0x4217d8(0xfa)!==_0x3a6074[_0x4217d8(0x10e)]?_0x3a6074[_0x4217d8(0x10e)]:an;}return an;}return _0x50efb6;}[_0x453c3a(0xc1)](_0x59ce5f,_0x4f73c5){const _0x302db5=_0x453c3a;this[_0x302db5(0xae)][_0x302db5(0xa0)][_0x302db5(0xe8)]&&_0x59ce5f[_0x302db5(0xf9)][_0x302db5(0x102)](this[_0x302db5(0xae)][_0x302db5(0xa0)][_0x302db5(0xe8)]),_0x59ce5f[_0x302db5(0xca)][_0x302db5(0x10e)]=_0x4f73c5,_0x59ce5f[_0x302db5(0xca)][_0x302db5(0xcf)]=_0x302db5(0x94),_0x59ce5f[_0x302db5(0xca)][_0x302db5(0x106)]=_0x302db5(0xd1),_0x59ce5f[_0x302db5(0xca)][_0x302db5(0xeb)]=_0x302db5(0xd1),_0x59ce5f[_0x302db5(0xca)][_0x302db5(0xfe)]='0',_0x59ce5f[_0x302db5(0xca)][_0x302db5(0xd2)]=_0x302db5(0xf7),_0x59ce5f[_0x302db5(0xca)][_0x302db5(0x107)]='-1',_0x59ce5f[_0x302db5(0xca)][_0x302db5(0xc8)]=_0x302db5(0x123),_0x59ce5f[_0x302db5(0xca)][_0x302db5(0xee)]=_0x302db5(0x111),_0x59ce5f[_0x302db5(0xca)][_0x302db5(0xe7)]=_0x302db5(0xf1);}[_0x453c3a(0xa8)](_0x475213){const _0x3b6b53=_0x453c3a;_0x475213[_0x3b6b53(0x104)](({element:_0x322cb7,originalDisplay:_0xc29813,originalVisibility:_0x5d8e12})=>{const _0x176f27=_0x3b6b53;_0x322cb7[_0x176f27(0xca)][_0x176f27(0xee)]=_0xc29813,_0x322cb7[_0x176f27(0xca)][_0x176f27(0xc8)]=_0x5d8e12;});}[_0x453c3a(0xda)](_0x1529f9){const _0x2a69cf=_0x453c3a,_0x5ba0e4=[];let _0x1dafee=_0x1529f9;for(;_0x1dafee&&_0x1dafee!==document[_0x2a69cf(0xe0)];){const _0x36efff=window[_0x2a69cf(0xb9)](_0x1dafee);_0x2a69cf(0xf7)!==_0x36efff[_0x2a69cf(0xee)]&&_0x2a69cf(0xf8)!==_0x36efff[_0x2a69cf(0xc8)]||(_0x5ba0e4[_0x2a69cf(0xc5)]({'element':_0x1dafee,'originalDisplay':_0x1dafee[_0x2a69cf(0xca)][_0x2a69cf(0xee)],'originalVisibility':_0x1dafee[_0x2a69cf(0xca)][_0x2a69cf(0xc8)]}),_0x1dafee[_0x2a69cf(0xca)][_0x2a69cf(0xee)]=_0x2a69cf(0xb3),_0x1dafee[_0x2a69cf(0xca)][_0x2a69cf(0xc8)]=_0x2a69cf(0xf6)),_0x1dafee=_0x1dafee[_0x2a69cf(0x95)];}return _0x5ba0e4;}[_0x453c3a(0x124)](){const _0x579cd5=_0x453c3a;let _0x1d304f,_0x356444;return this[_0x579cd5(0xd3)]?.[_0x579cd5(0x118)]?(_0x1d304f=this[_0x579cd5(0xd3)][_0x579cd5(0x118)][_0x579cd5(0xad)](!0x0),_0x356444=this[_0x579cd5(0xb2)](_0x1d304f)):(_0x1d304f=document[_0x579cd5(0xfd)](_0x579cd5(0x122)),_0x356444=_0x1d304f),{'calculationContainer':_0x1d304f,'targetContainer':_0x356444};}[_0x453c3a(0x115)](){const _0x5eafe4=_0x453c3a,{calculationContainer:_0x237c47,targetContainer:_0x595046}=this[_0x5eafe4(0x124)](),_0x3c42e4=this[_0x5eafe4(0xea)]();this[_0x5eafe4(0xc1)](_0x237c47,_0x3c42e4);const _0x384fc3=this[_0x5eafe4(0xd3)]?.[_0x5eafe4(0x118)]||this[_0x5eafe4(0xf2)],_0x2db055=_0x384fc3?.[_0x5eafe4(0x95)];_0x2db055?_0x2db055[_0x5eafe4(0xec)](_0x237c47):document[_0x5eafe4(0xe0)][_0x5eafe4(0xec)](_0x237c47),_0x237c47[_0x5eafe4(0xdd)]=_0x595046;const _0x33dfe2=this[_0x5eafe4(0xda)](_0x2db055||null);return _0x237c47[_0x5eafe4(0xe9)],_0x237c47[_0x5eafe4(0x9a)]=_0x33dfe2,_0x237c47;}[_0x453c3a(0xa9)](_0x47b533,_0xe26ac){const _0x2ad241=_0x453c3a,_0x4ecdcf=_0x47b533[_0x2ad241(0xdd)]||_0x47b533,_0x5d5875=[],{rowCount:_0x2925aa}=this[_0x2ad241(0xa3)](_0x4ecdcf,_0xe26ac);if(_0x2925aa<=this[_0x2ad241(0xae)][_0x2ad241(0x9e)])return _0x5d5875;const _0x5df2f4=_0xe26ac[_0x2ad241(0x109)]();for(;_0x5df2f4[_0x2ad241(0xd5)]>0x0;){if(this[_0x2ad241(0x99)](_0x47b533,_0x4ecdcf,_0x5df2f4)){const _0x582b35=_0xe26ac[_0x2ad241(0x121)](_0x1a1bfb=>!_0x5df2f4[_0x2ad241(0xe2)](_0x1a1bfb));_0x5d5875[_0x2ad241(0xc5)](..._0x582b35);break;}if(!_0x5df2f4[_0x2ad241(0xcb)]())break;}return _0x5d5875;}[_0x453c3a(0xa3)](_0x405c01,_0x32ef99){const _0x1e4ea2=_0x453c3a;_0x405c01[_0x1e4ea2(0x101)]='',_0x32ef99[_0x1e4ea2(0x104)](_0x1b833e=>{const _0xa5013=_0x1e4ea2;if(_0x1b833e[_0xa5013(0x118)]){const _0x27bf6f=_0x1b833e[_0xa5013(0x118)][_0xa5013(0xad)](!0x0);_0x405c01[_0xa5013(0xec)](_0x27bf6f);}}),_0x405c01[_0x1e4ea2(0xe9)];const _0x215eec=_0x405c01[_0x1e4ea2(0xa5)],_0x5ce0a7=[];return Array[_0x1e4ea2(0x9f)](_0x215eec)[_0x1e4ea2(0x104)](_0x926cfd=>{const _0x3cb87d=_0x1e4ea2,_0x52c87b=_0x926cfd[_0x3cb87d(0x11f)]()[_0x3cb87d(0x106)];_0x5ce0a7[_0x3cb87d(0xa2)](_0x3e1f1e=>Math[_0x3cb87d(0xbd)](_0x3e1f1e-_0x52c87b)<this[_0x3cb87d(0xae)][_0x3cb87d(0xef)])||_0x5ce0a7[_0x3cb87d(0xc5)](_0x52c87b);}),{'rowCount':_0x5ce0a7[_0x1e4ea2(0xd5)]};}[_0x453c3a(0xb0)](){const _0x431cec=_0x453c3a,_0x5afc96=document[_0x431cec(0xfd)](_0x431cec(0xaf));return _0x5afc96[_0x431cec(0xb8)]=this[_0x431cec(0xae)][_0x431cec(0xa0)][_0x431cec(0x113)],this[_0x431cec(0xae)][_0x431cec(0xa0)][_0x431cec(0x96)]&&_0x5afc96[_0x431cec(0xf9)][_0x431cec(0x102)](this[_0x431cec(0xae)][_0x431cec(0xa0)][_0x431cec(0x96)]),_0x5afc96[_0x431cec(0x116)]=_0x431cec(0xe6),_0x5afc96;}[_0x453c3a(0x99)](_0x407d33,_0x47a81a,_0x34fa36){const _0x2257fa=_0x453c3a;this[_0x2257fa(0xa3)](_0x47a81a,_0x34fa36);const _0x2d0b00=this[_0x2257fa(0xb0)]();_0x407d33[_0x2257fa(0xec)](_0x2d0b00),_0x407d33[_0x2257fa(0xe9)];const _0x495419=[..._0x47a81a[_0x2257fa(0xa5)],_0x2d0b00],_0x4f73c8=[];_0x495419[_0x2257fa(0x104)](_0x38e5aa=>{const _0x3340bb=_0x2257fa,_0x4d161d=_0x38e5aa[_0x3340bb(0x11f)]()[_0x3340bb(0x106)];_0x4f73c8[_0x3340bb(0xa2)](_0x5bf957=>Math[_0x3340bb(0xbd)](_0x5bf957-_0x4d161d)<this[_0x3340bb(0xae)][_0x3340bb(0xef)])||_0x4f73c8[_0x3340bb(0xc5)](_0x4d161d);});const _0x1f5434=_0x4f73c8[_0x2257fa(0xd5)];return _0x2d0b00[_0x2257fa(0x10f)](),_0x1f5434<=this[_0x2257fa(0xae)][_0x2257fa(0x9e)];}[_0x453c3a(0xa4)](_0xf2fbd4,_0x48c5f3){const _0x5749bd=_0x453c3a;this[_0x5749bd(0xbe)][_0x5749bd(0x97)](),this[_0x5749bd(0xd8)][_0x5749bd(0x97)](),_0xf2fbd4[_0x5749bd(0x104)](_0x2259e8=>{const _0x31d2d3=_0x5749bd;_0x48c5f3[_0x31d2d3(0xe2)](_0x2259e8)?this[_0x31d2d3(0xd8)][_0x31d2d3(0x102)](_0x2259e8):this[_0x31d2d3(0xbe)][_0x31d2d3(0x102)](_0x2259e8);});}[_0x453c3a(0xff)](_0x51c59e){const _0x1acdfc=_0x453c3a;if(_0x51c59e>0x0&&!this[_0x1acdfc(0xe3)]&&this[_0x1acdfc(0xe5)](),_0x51c59e>0x0&&this[_0x1acdfc(0xe3)]){const _0x3fe000=''+this[_0x1acdfc(0xae)][_0x1acdfc(0x93)]+(_0x51c59e<0x63?_0x51c59e:'99');this[_0x1acdfc(0xe3)][_0x1acdfc(0xc9)]=_0x3fe000;}this[_0x1acdfc(0xb4)](),this[_0x1acdfc(0xe4)](),this[_0x1acdfc(0xb1)]();}[_0x453c3a(0x10d)](_0x5c1bbe,_0x2e800b){const _0x3b974a=_0x453c3a;this[_0x3b974a(0xa4)](_0x5c1bbe,_0x2e800b),this[_0x3b974a(0xff)](_0x2e800b[_0x3b974a(0xd5)]);}[_0x453c3a(0xb5)](){const _0x3131da=_0x453c3a;this[_0x3131da(0xf2)]&&_0x3131da(0xbb)!=typeof IntersectionObserver&&(this[_0x3131da(0xdf)]=new IntersectionObserver(_0x36609a=>{const _0x49ae9f=_0x3131da;_0x36609a[0x0][_0x49ae9f(0xd9)]&&this[_0x49ae9f(0xb7)]&&requestAnimationFrame(()=>{const _0x960f8a=_0x49ae9f;this[_0x960f8a(0x9c)]();});},{'threshold':0.01,'rootMargin':_0x3131da(0xfb)}),this[_0x3131da(0xdf)][_0x3131da(0xd4)](this[_0x3131da(0xf2)]));}[_0x453c3a(0x105)](){const _0x102e0e=_0x453c3a;if(!this[_0x102e0e(0xf2)])return!0x1;if(!this[_0x102e0e(0xf2)][_0x102e0e(0x108)])return!0x1;const _0xe8884c=this[_0x102e0e(0xf2)][_0x102e0e(0x11f)]();if(0x0===_0xe8884c[_0x102e0e(0x10e)]||0x0===_0xe8884c[_0x102e0e(0xde)])return!0x1;const _0x120359=window[_0x102e0e(0xc7)]||document[_0x102e0e(0xa6)][_0x102e0e(0x9b)],_0x52fd64=window[_0x102e0e(0xc0)]||document[_0x102e0e(0xa6)][_0x102e0e(0xce)],_0x840ba8=0xc8;return _0xe8884c[_0x102e0e(0x11d)]>=-0xc8&&_0xe8884c[_0x102e0e(0x106)]<=_0x120359+_0x840ba8&&_0xe8884c[_0x102e0e(0x100)]>=-0xc8&&_0xe8884c[_0x102e0e(0xeb)]<=_0x52fd64+_0x840ba8;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x37e35d=_0xd077;(function(_0x4554fa,_0x3da19c){const _0x42b208=_0xd077,_0x1f7ada=_0x4554fa();while(!![]){try{const _0x2e1d91=-parseInt(_0x42b208(0x129))/0x1+parseInt(_0x42b208(0x10e))/0x2+parseInt(_0x42b208(0x115))/0x3+parseInt(_0x42b208(0x102))/0x4+-parseInt(_0x42b208(0x13c))/0x5+parseInt(_0x42b208(0x110))/0x6*(parseInt(_0x42b208(0x11d))/0x7)+-parseInt(_0x42b208(0x12f))/0x8;if(_0x2e1d91===_0x3da19c)break;else _0x1f7ada['push'](_0x1f7ada['shift']());}catch(_0x4fbffa){_0x1f7ada['push'](_0x1f7ada['shift']());}}}(_0x4706,0xcb2ac));import{ButtonView as _0x3596fa,IconView as _0x458559}from'ckeditor5/src/ui.js';import{IconClose as _0x132dc9,IconDocument as _0x35e4af,IconFileUpload as _0xadd2ff,IconLink as _0x142ae7,IconSelection as _0x394cd6}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x2913ae}from'../../../aicore/utils/common-translations.js';function _0x4706(){const _0x155df6=['set','_initializeProperties','ck-ai-chat-context-chip__label','readonly','ck-ai-chat-context-chip_document','removeContextItemChip','ck-ai-chat-context-controls__chip-tooltip','classList','_createTemplateChildren','render','lastIndexOf','1814334uiYpKo','removeEventListener','252798CrxCwZ','slice','uiId','length','_createRemoveButton','2200758dNzlYf','_handleAnimationEndOnce','bindTemplate','_createTemplateAttributes','isLoading','element','animationend','document','133UPSvxc','_isAnimationOnEnterEnabled','_setupRemoveButtonEvent','setTemplate','ck-ai-chat-context-chip_wide','bind','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','span','ck-ai-chat-context-chip__type-icon','fire','disableAnimationOnEnter','_setupTemplate','313048tTVHSy','ck-ai-chat-context-chip_new-chip','ck-hidden','_createIconView','type','itemType','4325096qiYVSQ','_createLabelElement','execute','small','addEventListener','div','remove','locale','ck-ai-chat-context-chip','extendTemplate','content','webkitAnimationEnd','label','7926055pISOrP','_createLoaderIcon','add','tooltip','selection','isVisible','3319152nwTppj'];_0x4706=function(){return _0x155df6;};return _0x4706();}import{AISpinnerView as _0x261f68}from'../../../aicore/ui/aispinner.js';const xn={'file':_0xadd2ff,'document':_0x35e4af,'web-resource':_0x142ae7,'text':_0xadd2ff,'selection':_0x394cd6,'mcp-tool-context':_0x35e4af},bn=_0x37e35d(0x137),wn=_0x37e35d(0x121),Tn=_0x37e35d(0x107),En=_0x37e35d(0x105),fn=_0x37e35d(0x125),An=_0x37e35d(0x109),Cn='n';function _0xd077(_0x3e8ba3,_0x31ea6a){const _0x4706e0=_0x4706();return _0xd077=function(_0xd0771,_0x33c60b){_0xd0771=_0xd0771-0x100;let _0x53dc31=_0x4706e0[_0xd0771];return _0x53dc31;},_0xd077(_0x3e8ba3,_0x31ea6a);}export class AIChatContextItemButtonView extends _0x3596fa{constructor(_0x324634,_0x135f01,_0x1e880b,_0x239351,_0x38f913=!0x1){const _0xc85eb4=_0x37e35d;super(_0x324634),this[_0xc85eb4(0x11e)]=_0x239351,this[_0xc85eb4(0x104)](_0x135f01,_0x1e880b,_0x38f913),this[_0xc85eb4(0x128)]();}[_0x37e35d(0x10c)](){const _0x3643e8=_0x37e35d;super[_0x3643e8(0x10c)](),this[_0x3643e8(0x11e)]&&this[_0x3643e8(0x11a)]&&(this[_0x3643e8(0x11a)][_0x3643e8(0x10a)][_0x3643e8(0x13e)](_0x3643e8(0x12a)),this[_0x3643e8(0x116)](this[_0x3643e8(0x11a)],()=>{const _0xf55bb4=_0x3643e8;this[_0xf55bb4(0x11a)]&&this[_0xf55bb4(0x11a)][_0xf55bb4(0x10a)][_0xf55bb4(0x135)](_0xf55bb4(0x12a));}));}[_0x37e35d(0x127)](){const _0x55165d=_0x37e35d;this[_0x55165d(0x11e)]=!0x1,this[_0x55165d(0x11a)]&&this[_0x55165d(0x11a)][_0x55165d(0x10a)][_0x55165d(0x135)](_0x55165d(0x12a));}[_0x37e35d(0x104)](_0x124a4f,_0x141f50,_0x416655){const _0x36e1a1=_0x37e35d;this[_0x36e1a1(0x103)](_0x36e1a1(0x13b),_0x124a4f[_0x36e1a1(0x13b)]),this[_0x36e1a1(0x103)](_0x36e1a1(0x13f),!0x0),this[_0x36e1a1(0x103)](_0x36e1a1(0x12e),_0x124a4f[_0x36e1a1(0x12d)]),this[_0x36e1a1(0x103)]('id',_0x124a4f[_0x36e1a1(0x112)]),this[_0x36e1a1(0x103)](_0x36e1a1(0x106),_0x141f50),this[_0x36e1a1(0x103)](_0x36e1a1(0x119),_0x416655);}[_0x37e35d(0x128)](){const _0x2f53b2=_0x37e35d,_0x4bed84=this[_0x2f53b2(0x12c)](),_0x2c6523=this[_0x2f53b2(0x114)](),_0x26f422=this[_0x2f53b2(0x117)];this[_0x2f53b2(0x120)]({'tag':_0x2f53b2(0x134),'attributes':this[_0x2f53b2(0x118)](_0x26f422),'children':this[_0x2f53b2(0x10b)](_0x4bed84,_0x2c6523,_0x26f422)});}[_0x37e35d(0x118)](_0x2c1c90){const _0x3c11d0=_0x37e35d;return{'class':[bn,_0x2c1c90['if'](_0x3c11d0(0x12e),Tn,_0x1dad02=>_0x3c11d0(0x11c)==_0x1dad02),_0x2c1c90['if'](_0x3c11d0(0x12e),wn,_0x48d020=>_0x3c11d0(0x100)==_0x48d020)],'data-cke-tooltip-text':_0x2c1c90['to'](_0x3c11d0(0x13b),In),'data-cke-tooltip-position':Cn,'data-cke-tooltip-class':An};}[_0x37e35d(0x10b)](_0x4879f9,_0x2eb97e,_0x16e971){const _0x111857=_0x37e35d,_0x4bf1f1=this[_0x111857(0x130)](_0x16e971),_0x234bf1=this[_0x111857(0x13d)]();return this[_0x111857(0x106)]?[_0x4879f9,_0x4bf1f1]:[_0x4879f9,_0x234bf1,_0x4bf1f1,_0x2eb97e];}[_0x37e35d(0x130)](_0x455cf2){const _0x3f63a5=_0x37e35d;return{'tag':_0x3f63a5(0x124),'attributes':{'class':En},'children':[{'text':_0x455cf2['to'](_0x3f63a5(0x13b))}]};}[_0x37e35d(0x114)](){const _0x42bac3=_0x37e35d,_0x1a6041=new _0x3596fa(this[_0x42bac3(0x136)]);return _0x1a6041[_0x42bac3(0x103)]({'label':_0x2913ae(this[_0x42bac3(0x136)],_0x42bac3(0x123)),'icon':_0x132dc9}),this[_0x42bac3(0x11f)](_0x1a6041),_0x1a6041;}[_0x37e35d(0x11f)](_0x57332b){const _0x3d460a=_0x37e35d;_0x57332b['on'](_0x3d460a(0x131),()=>{const _0x47e5ec=_0x3d460a;this[_0x47e5ec(0x126)](_0x47e5ec(0x108),this['id']);});}[_0x37e35d(0x12c)](){const _0x5c95df=_0x37e35d,_0x4bcc8a=this[_0x5c95df(0x117)],_0xb1044b=new _0x458559();return _0xb1044b[_0x5c95df(0x139)]=xn[this[_0x5c95df(0x12e)]],_0xb1044b[_0x5c95df(0x138)]({'attributes':{'class':[fn,_0x4bcc8a['if'](_0x5c95df(0x119),_0x5c95df(0x12b),_0x58d40f=>_0x58d40f)]}}),_0xb1044b;}[_0x37e35d(0x116)](_0x50cf56,_0x24b6d5){const _0x16d4c9=_0x37e35d;if(!_0x50cf56)return;const _0x51cf55=()=>{const _0x2aa51e=_0xd077;_0x24b6d5(),_0x50cf56[_0x2aa51e(0x10f)](_0x2aa51e(0x11b),_0x51cf55),_0x50cf56[_0x2aa51e(0x10f)](_0x2aa51e(0x13a),_0x51cf55);};_0x50cf56[_0x16d4c9(0x133)](_0x16d4c9(0x11b),_0x51cf55),_0x50cf56[_0x16d4c9(0x133)](_0x16d4c9(0x13a),_0x51cf55);}[_0x37e35d(0x13d)](){const _0x3c5212=_0x37e35d,_0x36a77f=new _0x261f68(_0x3c5212(0x132));return _0x36a77f[_0x3c5212(0x122)](_0x3c5212(0x101))['to'](this,_0x3c5212(0x119),_0x378503=>_0x378503),_0x36a77f;}}function In(_0x195d0f){const _0x2bb095=_0x37e35d;if(!_0x195d0f)return _0x195d0f;if(_0x195d0f[_0x2bb095(0x113)]<=0x78)return _0x195d0f;const _0x4d8a96=_0x195d0f[_0x2bb095(0x111)](0x0,0x78),_0x509af8=_0x4d8a96[_0x2bb095(0x10d)]('\x20');return(_0x509af8>0x0?_0x4d8a96[_0x2bb095(0x111)](0x0,_0x509af8):_0x4d8a96)+'…';}
23
+ const _0x193c88=_0x5ac8;(function(_0x3b47a3,_0x5e6c7c){const _0x10e1ff=_0x5ac8,_0x21bbe3=_0x3b47a3();while(!![]){try{const _0x32cd67=parseInt(_0x10e1ff(0x155))/0x1+parseInt(_0x10e1ff(0x14c))/0x2+parseInt(_0x10e1ff(0x151))/0x3+-parseInt(_0x10e1ff(0x129))/0x4+-parseInt(_0x10e1ff(0x12c))/0x5*(-parseInt(_0x10e1ff(0x12f))/0x6)+parseInt(_0x10e1ff(0x128))/0x7*(parseInt(_0x10e1ff(0x139))/0x8)+-parseInt(_0x10e1ff(0x11d))/0x9*(parseInt(_0x10e1ff(0x135))/0xa);if(_0x32cd67===_0x5e6c7c)break;else _0x21bbe3['push'](_0x21bbe3['shift']());}catch(_0x4a10f5){_0x21bbe3['push'](_0x21bbe3['shift']());}}}(_0x4653,0x812a1));import{ButtonView as _0x24d968,IconView as _0x21aee0}from'ckeditor5/src/ui.js';import{IconClose as _0x5f22bd,IconDocument as _0x12a13c,IconFileUpload as _0x66d428,IconLink as _0x8a77f0,IconSelection as _0xb4d165}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x3b8944}from'../../../aicore/utils/common-translations.js';function _0x5ac8(_0x35cbbb,_0x1add5d){const _0x46531f=_0x4653();return _0x5ac8=function(_0x5ac80f,_0x465dde){_0x5ac80f=_0x5ac80f-0x11d;let _0x2be7b4=_0x46531f[_0x5ac80f];return _0x2be7b4;},_0x5ac8(_0x35cbbb,_0x1add5d);}import{AISpinnerView as _0x20075e}from'../../../aicore/ui/aispinner.js';function _0x4653(){const _0x2965ee=['ck-ai-chat-context-chip_document','removeEventListener','ck-ai-chat-context-chip__type-icon','_isAnimationOnEnterEnabled','small','element','itemType','isLoading','fire','render','removeContextItemChip','ck-ai-chat-context-chip_wide','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','ck-ai-chat-context-chip__label','_createLabelElement','1789674plJTzf','div','label','ck-ai-chat-context-controls__chip-tooltip','_handleAnimationEndOnce','1049361vhQxXr','locale','selection','_createTemplateChildren','600920aGPzZY','add','type','_initializeProperties','webkitAnimationEnd','ck-hidden','lastIndexOf','tooltip','disableAnimationOnEnter','setTemplate','225gDmOEI','ck-ai-chat-context-chip','isVisible','content','set','readonly','_createIconView','addEventListener','bindTemplate','ck-ai-chat-context-chip_new-chip','length','420lpxAJP','1003900LbkUHx','span','_createRemoveButton','4704715PHSWYk','document','_createLoaderIcon','6MCuRFB','_setupRemoveButtonEvent','uiId','_createTemplateAttributes','animationend','remove','927670WwYCnD','_setupTemplate','execute','bind','41696zHUWIm','extendTemplate','classList','slice'];_0x4653=function(){return _0x2965ee;};return _0x4653();}const xn={'file':_0x66d428,'document':_0x12a13c,'web-resource':_0x8a77f0,'text':_0x66d428,'selection':_0xb4d165,'mcp-tool-context':_0x12a13c},bn=_0x193c88(0x11e),wn=_0x193c88(0x148),Tn=_0x193c88(0x13d),En=_0x193c88(0x14a),fn=_0x193c88(0x13f),An=_0x193c88(0x14f),Cn='n';export class AIChatContextItemButtonView extends _0x24d968{constructor(_0x52fe73,_0x5945fe,_0x5a7294,_0x257f1c,_0x539874=!0x1){const _0x35e358=_0x193c88;super(_0x52fe73),this[_0x35e358(0x140)]=_0x257f1c,this[_0x35e358(0x158)](_0x5945fe,_0x5a7294,_0x539874),this[_0x35e358(0x136)]();}[_0x193c88(0x146)](){const _0x5d58c6=_0x193c88;super[_0x5d58c6(0x146)](),this[_0x5d58c6(0x140)]&&this[_0x5d58c6(0x142)]&&(this[_0x5d58c6(0x142)][_0x5d58c6(0x13b)][_0x5d58c6(0x156)](_0x5d58c6(0x126)),this[_0x5d58c6(0x150)](this[_0x5d58c6(0x142)],()=>{const _0x19da10=_0x5d58c6;this[_0x19da10(0x142)]&&this[_0x19da10(0x142)][_0x19da10(0x13b)][_0x19da10(0x134)](_0x19da10(0x126));}));}[_0x193c88(0x15d)](){const _0x5916cf=_0x193c88;this[_0x5916cf(0x140)]=!0x1,this[_0x5916cf(0x142)]&&this[_0x5916cf(0x142)][_0x5916cf(0x13b)][_0x5916cf(0x134)](_0x5916cf(0x126));}[_0x193c88(0x158)](_0x336f21,_0x25ba16,_0x2a65ee){const _0x4d8d73=_0x193c88;this[_0x4d8d73(0x121)](_0x4d8d73(0x14e),_0x336f21[_0x4d8d73(0x14e)]),this[_0x4d8d73(0x121)](_0x4d8d73(0x15c),!0x0),this[_0x4d8d73(0x121)](_0x4d8d73(0x143),_0x336f21[_0x4d8d73(0x157)]),this[_0x4d8d73(0x121)]('id',_0x336f21[_0x4d8d73(0x131)]),this[_0x4d8d73(0x121)](_0x4d8d73(0x122),_0x25ba16),this[_0x4d8d73(0x121)](_0x4d8d73(0x144),_0x2a65ee);}[_0x193c88(0x136)](){const _0x31c3d0=_0x193c88,_0x458d69=this[_0x31c3d0(0x123)](),_0x5cf357=this[_0x31c3d0(0x12b)](),_0x105625=this[_0x31c3d0(0x125)];this[_0x31c3d0(0x15e)]({'tag':_0x31c3d0(0x14d),'attributes':this[_0x31c3d0(0x132)](_0x105625),'children':this[_0x31c3d0(0x154)](_0x458d69,_0x5cf357,_0x105625)});}[_0x193c88(0x132)](_0x5c9e00){const _0x52d76a=_0x193c88;return{'class':[bn,_0x5c9e00['if'](_0x52d76a(0x143),Tn,_0x1360b0=>_0x52d76a(0x12d)==_0x1360b0),_0x5c9e00['if'](_0x52d76a(0x143),wn,_0x2a7c55=>_0x52d76a(0x153)==_0x2a7c55)],'data-cke-tooltip-text':_0x5c9e00['to'](_0x52d76a(0x14e),In),'data-cke-tooltip-position':Cn,'data-cke-tooltip-class':An};}[_0x193c88(0x154)](_0xda4441,_0x40a835,_0x332c49){const _0x1c12ab=_0x193c88,_0x5ed837=this[_0x1c12ab(0x14b)](_0x332c49),_0x5ef95d=this[_0x1c12ab(0x12e)]();return this[_0x1c12ab(0x122)]?[_0xda4441,_0x5ed837]:[_0xda4441,_0x5ef95d,_0x5ed837,_0x40a835];}[_0x193c88(0x14b)](_0x5d5a66){const _0x7fe2df=_0x193c88;return{'tag':_0x7fe2df(0x12a),'attributes':{'class':En},'children':[{'text':_0x5d5a66['to'](_0x7fe2df(0x14e))}]};}[_0x193c88(0x12b)](){const _0x306c78=_0x193c88,_0x116592=new _0x24d968(this[_0x306c78(0x152)]);return _0x116592[_0x306c78(0x121)]({'label':_0x3b8944(this[_0x306c78(0x152)],_0x306c78(0x149)),'icon':_0x5f22bd}),this[_0x306c78(0x130)](_0x116592),_0x116592;}[_0x193c88(0x130)](_0x34faac){const _0x25deb8=_0x193c88;_0x34faac['on'](_0x25deb8(0x137),()=>{const _0xf22235=_0x25deb8;this[_0xf22235(0x145)](_0xf22235(0x147),this['id']);});}[_0x193c88(0x123)](){const _0x5c7ae3=_0x193c88,_0x2ca24c=this[_0x5c7ae3(0x125)],_0x476652=new _0x21aee0();return _0x476652[_0x5c7ae3(0x120)]=xn[this[_0x5c7ae3(0x143)]],_0x476652[_0x5c7ae3(0x13a)]({'attributes':{'class':[fn,_0x2ca24c['if'](_0x5c7ae3(0x144),_0x5c7ae3(0x15a),_0x3ce73f=>_0x3ce73f)]}}),_0x476652;}[_0x193c88(0x150)](_0x5aee2e,_0x355145){const _0x637cab=_0x193c88;if(!_0x5aee2e)return;const _0x2eafce=()=>{const _0x2adbaf=_0x5ac8;_0x355145(),_0x5aee2e[_0x2adbaf(0x13e)](_0x2adbaf(0x133),_0x2eafce),_0x5aee2e[_0x2adbaf(0x13e)](_0x2adbaf(0x159),_0x2eafce);};_0x5aee2e[_0x637cab(0x124)](_0x637cab(0x133),_0x2eafce),_0x5aee2e[_0x637cab(0x124)](_0x637cab(0x159),_0x2eafce);}[_0x193c88(0x12e)](){const _0x3ec3af=_0x193c88,_0x57cd31=new _0x20075e(_0x3ec3af(0x141));return _0x57cd31[_0x3ec3af(0x138)](_0x3ec3af(0x11f))['to'](this,_0x3ec3af(0x144),_0x3a3ae5=>_0x3a3ae5),_0x57cd31;}}function In(_0x415237){const _0x32407e=_0x193c88;if(!_0x415237)return _0x415237;if(_0x415237[_0x32407e(0x127)]<=0x78)return _0x415237;const _0x1a7133=_0x415237[_0x32407e(0x13c)](0x0,0x78),_0x41b355=_0x1a7133[_0x32407e(0x15b)]('\x20');return(_0x41b355>0x0?_0x1a7133[_0x32407e(0x13c)](0x0,_0x41b355):_0x1a7133)+'…';}