@ckeditor/ckeditor5-ai 47.7.1-alpha.0 → 47.7.2-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (318) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +5 -5
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +15 -15
  150. package/src/aiactions/aiactions.js +1 -1
  151. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  152. package/src/aiactions/model/aiactionsreply.js +1 -1
  153. package/src/aiassistant/adapters/aiadapter.js +1 -1
  154. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  155. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  156. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  157. package/src/aiassistant/aiassistant.js +1 -1
  158. package/src/aiassistant/aiassistantediting.js +1 -1
  159. package/src/aiassistant/aiassistantui.js +1 -1
  160. package/src/aiassistant/legacyerrors.js +1 -1
  161. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  162. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  163. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  164. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  165. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  166. package/src/aiassistant/ui/form/aiformview.js +1 -1
  167. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  168. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  169. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  170. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  171. package/src/aiassistant/utils/common-translations.js +1 -1
  172. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  173. package/src/aiballoon/aiballoon.js +1 -1
  174. package/src/aiballoon/ui/aiballoonview.js +1 -1
  175. package/src/aichat/aichat.js +1 -1
  176. package/src/aichat/aichatballoon.js +1 -1
  177. package/src/aichat/aichatcontroller.js +1 -1
  178. package/src/aichat/aichatui.js +1 -1
  179. package/src/aichat/model/aichatcontext.js +1 -1
  180. package/src/aichat/model/aichatconversation.js +1 -1
  181. package/src/aichat/model/aichatinteraction.js +1 -1
  182. package/src/aichat/ui/aichatballoonview.js +1 -1
  183. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  184. package/src/aichat/ui/aichatfeedview.js +1 -1
  185. package/src/aichat/ui/aichatheaderview.js +1 -1
  186. package/src/aichat/ui/aichatview.js +1 -1
  187. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  188. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  189. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  190. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  191. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  192. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  193. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  194. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  195. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  196. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  197. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  198. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  199. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  200. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  201. package/src/aichat/ui/feed/aichatfeedcustomelementview.js +1 -1
  202. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  203. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  204. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  205. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  206. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  207. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  208. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  209. package/src/aichat/utils/eventnames.js +1 -1
  210. package/src/aichat/utils/promisequeue.js +1 -1
  211. package/src/aichathistory/aichathistory.js +1 -1
  212. package/src/aichathistory/aichathistorycontroller.js +1 -1
  213. package/src/aichathistory/aichathistoryui.js +1 -1
  214. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  215. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  216. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  217. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  218. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  219. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  220. package/src/aichatshortcuts/aichatshortcuts.js +1 -1
  221. package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
  222. package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
  223. package/src/aicore/aiconnector.js +1 -1
  224. package/src/aicore/aiediting.js +1 -1
  225. package/src/aicore/model/aicapabilities.js +1 -1
  226. package/src/aicore/model/aicontext.js +1 -1
  227. package/src/aicore/model/aiinteraction.js +1 -1
  228. package/src/aicore/model/aimodels.js +1 -1
  229. package/src/aicore/model/aireply.js +1 -1
  230. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  231. package/src/aicore/pipeline/airesponseparser.js +2 -2
  232. package/src/aicore/ui/aidisclaimerview.js +1 -1
  233. package/src/aicore/ui/aiskeleton.js +1 -1
  234. package/src/aicore/ui/aispinner.js +1 -1
  235. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  236. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  237. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  238. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
  239. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
  240. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
  241. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  242. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  243. package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
  244. package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
  245. package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
  246. package/src/aicore/utils/common-translations.js +1 -1
  247. package/src/aicore/utils/createresizebutton.js +1 -1
  248. package/src/aicore/utils/documentposition.js +1 -1
  249. package/src/aicore/utils/documentrange.js +1 -1
  250. package/src/aicore/utils/eventnames.js +1 -1
  251. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  252. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  253. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  254. package/src/aicore/utils/htmlparser.js +1 -1
  255. package/src/aicore/utils/htmlstreamer.js +1 -1
  256. package/src/aicore/utils/scrollmanager.js +1 -1
  257. package/src/aieditorintegration/aieditorintegration.js +1 -1
  258. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  259. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  260. package/src/aiquickactions/aiquickactions.js +1 -1
  261. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  262. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  263. package/src/aiquickactions/aiquickactionsui.js +1 -1
  264. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  265. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  266. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  267. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
  268. package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
  269. package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
  270. package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
  271. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  272. package/src/aireviewcore/aireviewcorecontroller.js +1 -1
  273. package/src/aireviewcore/aireviewcoreediting.js +1 -1
  274. package/src/aireviewcore/aireviewcoreui.js +1 -1
  275. package/src/aireviewcore/model/aireviewcheck.js +1 -1
  276. package/src/aireviewcore/model/aireviewchecklist.js +1 -1
  277. package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
  278. package/src/aireviewcore/model/aireviewcheckresultchange.js +1 -1
  279. package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
  280. package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
  281. package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
  282. package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
  283. package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
  284. package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
  285. package/src/aireviewcore/ui/aireviewcoregeneralerrorview.js +1 -1
  286. package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
  287. package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
  288. package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
  289. package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
  290. package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
  291. package/src/aireviewcore/ui/aireviewcoreview.js +1 -1
  292. package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
  293. package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +1 -1
  294. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  295. package/src/aireviewmode/aireviewmode.js +1 -1
  296. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  297. package/src/aireviewmode/aireviewmodeui.js +1 -1
  298. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  299. package/src/aireviewmode/model/aireviewcheckextra.js +1 -1
  300. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  301. package/src/aireviewmode/model/aireviewextracheckrun.js +1 -1
  302. package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
  303. package/src/aitabs/aitabs.js +1 -1
  304. package/src/aitabs/aitabsmainview.js +1 -1
  305. package/src/aitabs/tabs/aitabsview.js +1 -1
  306. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  307. package/src/aitabs/tabs/tabpanelview.js +1 -1
  308. package/src/aitranslate/aitranslate.js +1 -1
  309. package/src/aitranslate/aitranslatecontroller.js +1 -1
  310. package/src/aitranslate/aitranslateui.js +1 -1
  311. package/src/aitranslate/model/aitranslatecheck.js +1 -1
  312. package/src/aitranslate/model/aitranslatechecklist.js +1 -1
  313. package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
  314. package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
  315. package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
  316. package/src/errors.js +1 -1
  317. package/src/errorsmap.js +1 -1
  318. package/src/index.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x29c944=_0x6196;function _0x6196(_0x511e96,_0x167183){const _0x5b1910=_0x5b19();return _0x6196=function(_0x6196f,_0x2b79da){_0x6196f=_0x6196f-0xae;let _0x30ef69=_0x5b1910[_0x6196f];return _0x30ef69;},_0x6196(_0x511e96,_0x167183);}(function(_0x5635e9,_0x5d7939){const _0x26c3f3=_0x6196,_0x4d9bee=_0x5635e9();while(!![]){try{const _0x221076=-parseInt(_0x26c3f3(0xca))/0x1+parseInt(_0x26c3f3(0xdf))/0x2+parseInt(_0x26c3f3(0xd9))/0x3*(-parseInt(_0x26c3f3(0xde))/0x4)+-parseInt(_0x26c3f3(0xe4))/0x5+parseInt(_0x26c3f3(0xd5))/0x6*(parseInt(_0x26c3f3(0x10a))/0x7)+parseInt(_0x26c3f3(0xf5))/0x8+parseInt(_0x26c3f3(0xe7))/0x9*(parseInt(_0x26c3f3(0xc5))/0xa);if(_0x221076===_0x5d7939)break;else _0x4d9bee['push'](_0x4d9bee['shift']());}catch(_0x295224){_0x4d9bee['push'](_0x4d9bee['shift']());}}}(_0x5b19,0x68d1c));import{CKEditorError as _0xc44658,EmitterMixin as _0x33588d,logWarning as _0xc1c3e7}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x4c09b0}from'../../aicore/model/aiinteraction.js';function _0x5b19(){const _0x52e03d=['indexOf','stop','conversationInitialized','populateFromMessage','lastInteraction','isSelectionInContext','getModel','modelSelected','toggleWebSearch','hasOwn','currentInteraction','addResourceToContext','parse','set','addFilesToContext','getEditor','ai-chat-conversation-start-failed','chatCapabilities','splice','removeFromContext','startConversation','fetchConversationMessages','prompt','modification','interactions','capabilities','ai-chat-conversation-start-no-model-selected','content','conversationId','addUrlToContext','_extractContextItems','text','attributes','setWebSearch','find','ai-chat-conversation-set-model-not-available','type','url','destroy','push','30aNXmbU','interactionCreated','selectedModelId','setReasoning','loadSourceResources','593920IxsGyL','ai-chat-conversation-init-from-id-failed','group','stack','_processMessagesToInteractions','toggleReasoning','length','sessionId','fire','mcp-tool-result','getMessages','6RasQcZ','getDocumentContext','updateCurrentDocumentInContext','ai-chat-handle-user-interaction-start-failed','69297gAhTlg','getAvailableModels','user','init','role','108rLKXTO','1174562CXWYLf','ai-chat-handle-user-conversation-not-initialized','handleUserInteraction','assistant','removeSelectionFromContext','760915jPsEkP','ai-chat-conversation-already-started','selectedModel','3022470psPVFw','getCurrentDocumentContext','isAvailable','model','isCurrentDocumentInContext','isCurrentDocumentInConversation','get','currentReply','contextItems','delegate','load','isFromHistory','addToConversationContext','title','609208daXssL','ai-chat-conversation-init-failed','updateCurrentDocument','getConversation','conversationStarted','getPendingContextItems','error','reasoning','addSelectionToContext','ai-chat-handle-user-interaction-already-in-progress','code','webSearch','connector','_handleToolResultData','getCapabilitiesConfig','chatContext','start','ai-chat-conversation-set-model-null','sources','removeInteraction','createReply','897358GiAjGo','setConversationTitle','chatModels','addToolItemToContext','toolName','setModel','message','toLowerCase','getInteraction','isStarted','appendContent','reset','createInteraction','getAll','addCurrentDocumentToContext','fetchConversation','options'];_0x5b19=function(){return _0x52e03d;};return _0x5b19();}import{AIChatContext as _0x13091f,AI_CONTEXT_MODEL_EVENT_NAMES as _0xdccf30}from'./aichatcontext.js';import{AICapabilities as _0x268377,CAPABILITIES_MODEL_EVENT_NAMES as _0xe87694}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x3f78ca}from'./aichatinteraction.js';import{errorsMap as _0x3872fb}from'../../errorsmap.js';export class AIChatConversation extends _0x33588d(){['id'];[_0x29c944(0x113)]=!0x1;[_0x29c944(0xf2)];[_0x29c944(0xb5)]=[];[_0x29c944(0x125)];[_0x29c944(0xe6)];[_0x29c944(0x101)];[_0x29c944(0x11a)];constructor(_0x3fcebe){const _0x4566cc=_0x29c944;super(),this[_0x4566cc(0x11a)]=_0x3fcebe,this[_0x4566cc(0x101)]=_0x3fcebe[_0x4566cc(0x101)],this[_0x4566cc(0x10c)]=_0x3fcebe[_0x4566cc(0x10c)],this['id']=_0x3fcebe[_0x4566cc(0xb9)],this[_0x4566cc(0xf2)]=_0x3fcebe[_0x4566cc(0xf2)];}async[_0x29c944(0xdc)](_0x408977){const _0x5a9d91=_0x29c944;try{this[_0x5a9d91(0x104)]=new _0x13091f({'connector':this[_0x5a9d91(0x101)],'config':_0x408977,'ownerId':this['id']}),this[_0x5a9d91(0x104)][_0x5a9d91(0xf0)](..._0xdccf30)['to'](this),this[_0x5a9d91(0x104)][_0x5a9d91(0xdc)](),this[_0x5a9d91(0xae)]=new _0x268377(),this[_0x5a9d91(0xae)][_0x5a9d91(0xf0)](..._0xe87694)['to'](this),this[_0x5a9d91(0xae)][_0x5a9d91(0xdc)]();const _0x1879be=await this[_0x5a9d91(0x10c)][_0x5a9d91(0xda)]();this[_0x5a9d91(0xd2)](_0x5a9d91(0x11d),{'availableModels':_0x1879be});const _0x2d8b9a=await this[_0x5a9d91(0x10c)][_0x5a9d91(0x121)](this[_0x5a9d91(0x11a)][_0x5a9d91(0xc7)]);_0x2d8b9a&&await this[_0x5a9d91(0x10f)](_0x2d8b9a);}catch(_0x156dc2){const _0x5f92c8=new _0xc44658(_0x5a9d91(0xf6),null,{'message':_0x156dc2[_0x5a9d91(0x110)]||_0x156dc2});_0x5f92c8[_0x5a9d91(0xcd)]=_0x156dc2[_0x5a9d91(0xcd)],this[_0x5a9d91(0xd2)](_0x5a9d91(0xfb),{'error':_0x5f92c8});}}async[_0x29c944(0x105)](){const _0x1a6c43=_0x29c944;if(this[_0x1a6c43(0x113)])throw new _0xc44658(_0x1a6c43(0xe5),null,{'conversation':this});if(!this[_0x1a6c43(0xe6)])throw new _0xc44658(_0x1a6c43(0xb7),null,{'conversation':this});try{const {id:_0x16fefc}=await this[_0x1a6c43(0x101)][_0x1a6c43(0xb1)](this['id'],this[_0x1a6c43(0x11a)][_0x1a6c43(0xcc)])[_0x1a6c43(0xf8)]();this['id']=_0x16fefc,this[_0x1a6c43(0x113)]=!0x0,this[_0x1a6c43(0xd2)](_0x1a6c43(0xf9),{'conversationId':this['id'],'selectedModel':this[_0x1a6c43(0xe6)]});}catch(_0x49952d){const _0x1d6f2c=new _0xc44658(_0x1a6c43(0x12b),null,{'message':_0x49952d[_0x1a6c43(0x110)],'conversationId':this['id']});throw _0x1d6f2c[_0x1a6c43(0xcd)]=_0x49952d[_0x1a6c43(0xcd)],this[_0x1a6c43(0xd2)](_0x1a6c43(0xfb),{'error':_0x1d6f2c}),_0x1d6f2c;}}async[_0x29c944(0xf1)](_0x56a8e6,_0x54dad9){const _0x11768d=_0x29c944;try{const _0x470ff8=await this[_0x11768d(0x101)][_0x11768d(0x119)](_0x56a8e6)[_0x11768d(0xf8)](),_0x1e41cd=await this[_0x11768d(0x101)][_0x11768d(0xb2)](_0x56a8e6)[_0x11768d(0xd4)](),_0x56f026=_0x1e41cd[0x0][_0x11768d(0xea)];this[_0x11768d(0x113)]=!0x0,this['id']=_0x470ff8['id'],_0x11768d(0xf4)in _0x470ff8?this[_0x11768d(0xd2)](_0x11768d(0x10b),_0x470ff8[_0x11768d(0xf4)],!0x0):this[_0x11768d(0xd2)](_0x11768d(0x10b),'',!0x0);const _0x1f2463=(await this[_0x11768d(0x10c)][_0x11768d(0x117)]())[_0x11768d(0xbf)](_0x5358a8=>_0x5358a8['id'][_0x11768d(0x111)]()===_0x56f026[_0x11768d(0x111)]());return this[_0x11768d(0xe6)]=_0x1f2463,this[_0x11768d(0xd2)](_0x11768d(0x122),{'selectedModel':_0x1f2463,'isDisabled':!0x0}),await this[_0x11768d(0xce)](_0x1e41cd,_0x54dad9,_0x56f026),this[_0x11768d(0x125)]=void 0x0,this;}catch(_0x354fe7){const _0x50f869=new _0xc44658(_0x11768d(0xcb),null,{'message':_0x354fe7[_0x11768d(0x110)],'conversationId':_0x56a8e6});throw _0x50f869[_0x11768d(0xcd)]=_0x354fe7[_0x11768d(0xcd)],this[_0x11768d(0xd2)](_0x11768d(0xfb),{'error':_0x50f869}),_0x50f869;}}async[_0x29c944(0xce)](_0x38ad25,_0x3214c3,_0x4711ed){const _0x29f76c=_0x29c944;let _0x207ef7;for(const _0x1f4740 of _0x38ad25)if(_0x29f76c(0xdb)===_0x1f4740[_0x29f76c(0xdd)]){const _0x179d19=await this[_0x29f76c(0xbb)](_0x1f4740),_0x459bce={'isReasoningEnabled':Object[_0x29f76c(0x124)](_0x1f4740[_0x29f76c(0xb6)],_0x29f76c(0xfc)),'isWebSearchEnabled':Object[_0x29f76c(0x124)](_0x1f4740[_0x29f76c(0xb6)],_0x29f76c(0x100))};_0x207ef7=this[_0x29f76c(0x116)]({'userMessage':_0x1f4740[_0x29f76c(0xb3)],'contextItems':_0x179d19,'capabilities':_0x459bce,'modelId':_0x4711ed,'attributes':_0x1f4740[_0x29f76c(0xbd)]}),this[_0x29f76c(0x125)]=_0x207ef7,this[_0x29f76c(0x104)][_0x29f76c(0xf3)](this[_0x29f76c(0x125)][_0x29f76c(0xef)]);}else{if(_0x29f76c(0xe2)===_0x1f4740[_0x29f76c(0xdd)]&&_0x207ef7){const _0x132dfb=[];for(const _0x2fc861 of _0x1f4740[_0x29f76c(0xb8)])switch(_0x2fc861[_0x29f76c(0xc1)]){case _0x29f76c(0xbc):case _0x29f76c(0xb4):{const _0x43fb91=_0x207ef7[_0x29f76c(0xd6)]()?.[_0x29f76c(0xd1)]!==_0x3214c3;_0x207ef7[_0x29f76c(0xee)]=_0x207ef7[_0x29f76c(0x109)]({'type':_0x2fc861[_0x29f76c(0xc1)],'isDone':!0x0,'interactionId':_0x207ef7['id'],'areActionsDisabled':_0x43fb91}),_0x207ef7[_0x29f76c(0xee)][_0x29f76c(0x114)](_0x2fc861[_0x29f76c(0xb8)]),_0x132dfb[_0x29f76c(0xd0)]>0x0&&(_0x207ef7[_0x29f76c(0xee)][_0x29f76c(0x107)]=_0x132dfb[_0x29f76c(0xaf)](0x0));break;}case _0x29f76c(0xc2):_0x132dfb[_0x29f76c(0xc4)](_0x2fc861);break;case _0x29f76c(0xd3):{const {data:_0x57c421,attributes:_0xa175aa}=JSON[_0x29f76c(0x127)](_0x2fc861[_0x29f76c(0xb8)]);_0x207ef7[_0x29f76c(0x102)]({'toolName':_0x2fc861[_0x29f76c(0x10e)],'data':_0x57c421,'attributes':_0xa175aa});break;}}}}}async[_0x29c944(0xbb)](_0x2fa12e){const _0x3a6899=_0x29c944,_0xc76ad9=new Map();if(!_0x2fa12e[_0x3a6899(0xb8)])return _0xc76ad9;for(const _0x4c2e57 of _0x2fa12e[_0x3a6899(0xb8)]){const _0xb25bfa=await this[_0x3a6899(0x104)][_0x3a6899(0x11e)](_0x4c2e57);_0xb25bfa&&_0xc76ad9[_0x3a6899(0x128)](_0xb25bfa['id'],_0xb25bfa);}return _0xc76ad9;}async[_0x29c944(0xe1)]({userMessage:_0x29ff3e,attributes:_0x507364}){const _0x2bd811=_0x29c944;if(!this[_0x2bd811(0x113)])throw new _0xc44658(_0x2bd811(0xe0),null,{'conversation':this});if(this[_0x2bd811(0x125)])throw new _0xc44658(_0x2bd811(0xfe),null,{'conversation':this});try{const _0x2f1cb6=this[_0x2bd811(0x104)][_0x2bd811(0xfa)](),_0x27e640=this[_0x2bd811(0xae)][_0x2bd811(0x103)](),_0x2dc7ff=this[_0x2bd811(0xe6)]['id'];this[_0x2bd811(0x125)]=this[_0x2bd811(0x116)]({'userMessage':_0x29ff3e,'contextItems':_0x2f1cb6,'capabilities':_0x27e640,'modelId':_0x2dc7ff,'attributes':_0x507364}),await this[_0x2bd811(0x125)][_0x2bd811(0x105)](),this[_0x2bd811(0x104)][_0x2bd811(0xf3)](this[_0x2bd811(0x125)][_0x2bd811(0xef)]);}catch(_0x17d67b){if(_0x17d67b instanceof _0xc44658)this[_0x2bd811(0xd2)](_0x2bd811(0xfb),{'interactionId':this[_0x2bd811(0x125)]?this[_0x2bd811(0x125)]['id']:void 0x0,'error':_0x17d67b});else{const _0x515098=_0x3872fb[_0x2bd811(0xed)](_0x17d67b[_0x2bd811(0xff)])||_0x2bd811(0xd8);this[_0x2bd811(0xd2)](_0x2bd811(0xfb),{'interactionId':this[_0x2bd811(0x125)]?this[_0x2bd811(0x125)]['id']:void 0x0,'error':new _0xc44658(_0x515098,null,{'error':_0x17d67b})});}}finally{this[_0x2bd811(0x125)]?.[_0x2bd811(0x11c)](),this[_0x2bd811(0x125)]=void 0x0;}}[_0x29c944(0x116)]({userMessage:_0x131542,contextItems:_0x4259d7,capabilities:_0xd1d12f,modelId:_0x3507d8,attributes:_0x37c76}){const _0x5a148f=_0x29c944,_0x5e6c8b=new _0x3f78ca({'userMessage':_0x131542,'contextItems':_0x4259d7,'capabilities':_0xd1d12f,'conversationId':this['id'],'connector':this[_0x5a148f(0x101)],'editor':this[_0x5a148f(0x11a)][_0x5a148f(0x12a)]&&this[_0x5a148f(0x11a)][_0x5a148f(0x12a)](),'model':_0x3507d8,'attributes':_0x37c76});return _0x5e6c8b[_0x5a148f(0xf0)](..._0x4c09b0)['to'](this),this[_0x5a148f(0xb5)][_0x5a148f(0xc4)](_0x5e6c8b),this[_0x5a148f(0xd2)](_0x5a148f(0xc6),_0x5e6c8b),_0x5e6c8b;}[_0x29c944(0x112)](_0x19ce91){const _0xfdca83=_0x29c944;return this[_0xfdca83(0xb5)][_0xfdca83(0xbf)](_0xe1bdc1=>_0xe1bdc1['id']===_0x19ce91);}[_0x29c944(0x108)](_0x5810a2){const _0x5836ba=_0x29c944,_0x386896=this[_0x5836ba(0x112)](_0x5810a2);_0x386896&&(_0x386896[_0x5836ba(0xc3)](),this[_0x5836ba(0xb5)][_0x5836ba(0xaf)](this[_0x5836ba(0xb5)][_0x5836ba(0x11b)](_0x386896),0x1));}get[_0x29c944(0x11f)](){const _0x5e5c57=_0x29c944;return this[_0x5e5c57(0xb5)][this[_0x5e5c57(0xb5)][_0x5e5c57(0xd0)]-0x1];}[_0x29c944(0x118)](_0x299306){const _0x2e8a2b=_0x29c944;this[_0x2e8a2b(0x104)][_0x2e8a2b(0x118)](_0x299306);}async[_0x29c944(0xd7)]({content:_0x57be18,version:_0x4dd76f,sessionId:_0x5839ca,selections:_0x38c8e7}){const _0x2812e8=_0x29c944;await this[_0x2812e8(0x104)][_0x2812e8(0xf7)](_0x57be18,_0x4dd76f,_0x5839ca,_0x38c8e7);}[_0x29c944(0xe8)](){const _0x5b92cd=_0x29c944;return this[_0x5b92cd(0x125)]?.[_0x5b92cd(0xd6)]()?.[_0x5b92cd(0xb8)]||'';}[_0x29c944(0xfd)](_0x4310a5){const _0x41dc9a=_0x29c944;this[_0x41dc9a(0x104)][_0x41dc9a(0xfd)](_0x4310a5);}[_0x29c944(0xe3)](){const _0x5c5334=_0x29c944;this[_0x5c5334(0x104)][_0x5c5334(0xe3)]();}[_0x29c944(0x129)](_0xca1e35){const _0xfec85f=_0x29c944;this[_0xfec85f(0x104)][_0xfec85f(0x129)](_0xca1e35);}[_0x29c944(0xba)](_0x515225){const _0x255156=_0x29c944;this[_0x255156(0x104)][_0x255156(0xba)](_0x515225);}[_0x29c944(0x10d)](_0x28df54){const _0x196a72=_0x29c944;this[_0x196a72(0x104)][_0x196a72(0x10d)](_0x28df54);}[_0x29c944(0x126)](_0x31c9b5,_0x1fcc2a){const _0x5d65ff=_0x29c944;this[_0x5d65ff(0x104)][_0x5d65ff(0x126)](_0x31c9b5,_0x1fcc2a);}[_0x29c944(0xc9)](_0x44e923,_0x1f50e9,_0x497b81){const _0x2b74a0=_0x29c944;return this[_0x2b74a0(0x104)][_0x2b74a0(0xc9)](_0x44e923,_0x1f50e9,_0x497b81);}[_0x29c944(0xb0)](_0xa4fef7){const _0xfc19f5=_0x29c944;this[_0xfc19f5(0x104)][_0xfc19f5(0xb0)](_0xa4fef7);}[_0x29c944(0xbe)](_0x524f90){const _0x77a96e=_0x29c944;this[_0x77a96e(0xae)][_0x77a96e(0xbe)](_0x524f90);}[_0x29c944(0x123)](){const _0x5a7cd1=_0x29c944;this[_0x5a7cd1(0xae)][_0x5a7cd1(0x123)]();}[_0x29c944(0xc8)](_0xedb170){const _0x25072e=_0x29c944;this[_0x25072e(0xae)][_0x25072e(0xc8)](_0xedb170);}[_0x29c944(0xcf)](){const _0x25cccd=_0x29c944;this[_0x25cccd(0xae)][_0x25cccd(0xcf)]();}[_0x29c944(0xeb)](){const _0x27ed7c=_0x29c944;return this[_0x27ed7c(0x104)][_0x27ed7c(0xeb)]();}[_0x29c944(0xec)](){const _0x5ed7b3=_0x29c944;return this[_0x5ed7b3(0x104)][_0x5ed7b3(0xec)]();}[_0x29c944(0x120)](){const _0x652adb=_0x29c944;return this[_0x652adb(0x104)][_0x652adb(0x120)]();}async[_0x29c944(0x10f)](_0x5559e5){const _0x1a39ed=_0x29c944;_0x5559e5?!0x1===await this[_0x1a39ed(0x10c)][_0x1a39ed(0xe9)](_0x5559e5)&&(_0xc1c3e7(_0x1a39ed(0xc0),{'conversation':this,'model':_0x5559e5}),_0x5559e5=(await this[_0x1a39ed(0x10c)][_0x1a39ed(0xda)]())[0x0]):(_0xc1c3e7(_0x1a39ed(0x106),{'conversation':this}),_0x5559e5=(await this[_0x1a39ed(0x10c)][_0x1a39ed(0xda)]())[0x0]),_0x5559e5['id']!==this[_0x1a39ed(0xe6)]?.['id']&&(this[_0x1a39ed(0xe6)]=_0x5559e5,this[_0x1a39ed(0xae)][_0x1a39ed(0x115)](),this[_0x1a39ed(0xd2)](_0x1a39ed(0x122),{'selectedModel':_0x5559e5}));}}
23
+ function _0x1c1a(){const _0x1c4108=['assistant','group','ai-chat-conversation-set-model-null','contextItems','hasOwn','getAvailableModels','14dWkIvX','find','addFilesToContext','removeFromContext','getPendingContextItems','_processMessagesToInteractions','getMessages','populateFromMessage','createReply','splice','loadSourceResources','setConversationTitle','setModel','49664186ynTnpF','type','connector','getDocumentContext','conversationStarted','mcp-tool-result','addToConversationContext','start','modelSelected','addUrlToContext','appendContent','9dardfG','sessionId','isStarted','isCurrentDocumentInConversation','modification','15122970LFtgWU','url','getCurrentDocumentContext','12wtEaeF','sources','isAvailable','chatContext','ai-chat-conversation-start-failed','lastInteraction','stack','removeSelectionFromContext','toolName','push','4564AYvbPA','set','selectedModel','conversationInitialized','ai-chat-handle-user-conversation-not-initialized','message','addResourceToContext','fetchConversation','getCapabilitiesConfig','capabilities','createInteraction','error','6025VDipvB','ai-chat-conversation-set-model-not-available','init','getConversation','fire','toggleReasoning','addSelectionToContext','setReasoning','ai-chat-handle-user-interaction-already-in-progress','getEditor','getAll','stop','addCurrentDocumentToContext','toggleWebSearch','delegate','options','_handleToolResultData','get','reset','setWebSearch','ai-chat-conversation-init-from-id-failed','parse','fetchConversationMessages','currentReply','destroy','conversationId','handleUserInteraction','3780321Awcqux','ai-chat-conversation-already-started','3798042aOxZaf','ai-chat-handle-user-interaction-start-failed','22404KMPhxE','getInteraction','6461264YvhYfV','updateCurrentDocumentInContext','isSelectionInContext','startConversation','user','model','ai-chat-conversation-start-no-model-selected','_extractContextItems','interactionCreated','content','chatCapabilities','updateCurrentDocument','ai-chat-conversation-init-failed','getModel','toLowerCase','length','title','addToolItemToContext','selectedModelId','indexOf','role','load','currentInteraction','removeInteraction','webSearch','chatModels','attributes','isFromHistory','isCurrentDocumentInContext','code','text','interactions','reasoning','11CBxxbK','prompt'];_0x1c1a=function(){return _0x1c4108;};return _0x1c1a();}const _0x30d668=_0x34ed;(function(_0x2f89f7,_0x2cfa64){const _0x54a78b=_0x34ed,_0x104621=_0x2f89f7();while(!![]){try{const _0x55f30f=parseInt(_0x54a78b(0x16d))/0x1*(parseInt(_0x54a78b(0x1ca))/0x2)+-parseInt(_0x54a78b(0x1c6))/0x3+-parseInt(_0x54a78b(0x19f))/0x4*(parseInt(_0x54a78b(0x1ab))/0x5)+parseInt(_0x54a78b(0x1c8))/0x6*(parseInt(_0x54a78b(0x175))/0x7)+-parseInt(_0x54a78b(0x1cc))/0x8+-parseInt(_0x54a78b(0x18d))/0x9*(parseInt(_0x54a78b(0x192))/0xa)+parseInt(_0x54a78b(0x182))/0xb*(parseInt(_0x54a78b(0x195))/0xc);if(_0x55f30f===_0x2cfa64)break;else _0x104621['push'](_0x104621['shift']());}catch(_0x14291c){_0x104621['push'](_0x104621['shift']());}}}(_0x1c1a,0xe7bcb));function _0x34ed(_0x87c1fd,_0x390cbb){const _0x1c1a9d=_0x1c1a();return _0x34ed=function(_0x34edd4,_0x3cd318){_0x34edd4=_0x34edd4-0x16c;let _0x2e7459=_0x1c1a9d[_0x34edd4];return _0x2e7459;},_0x34ed(_0x87c1fd,_0x390cbb);}import{CKEditorError as _0x3eee87,EmitterMixin as _0x513841,logWarning as _0x450e4d}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x1ca8e9}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x5e0a88,AI_CONTEXT_MODEL_EVENT_NAMES as _0x181a8f}from'./aichatcontext.js';import{AICapabilities as _0x1288fc,CAPABILITIES_MODEL_EVENT_NAMES as _0x447165}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x466f4a}from'./aichatinteraction.js';import{errorsMap as _0x4b8785}from'../../errorsmap.js';export class AIChatConversation extends _0x513841(){['id'];[_0x30d668(0x18f)]=!0x1;[_0x30d668(0x1e7)];[_0x30d668(0x1eb)]=[];[_0x30d668(0x1e2)];[_0x30d668(0x1a1)];[_0x30d668(0x184)];[_0x30d668(0x1ba)];constructor(_0xa0bd97){const _0x4f3eea=_0x30d668;super(),this[_0x4f3eea(0x1ba)]=_0xa0bd97,this[_0x4f3eea(0x184)]=_0xa0bd97[_0x4f3eea(0x184)],this[_0x4f3eea(0x1e5)]=_0xa0bd97[_0x4f3eea(0x1e5)],this['id']=_0xa0bd97[_0x4f3eea(0x1c4)],this[_0x4f3eea(0x1e7)]=_0xa0bd97[_0x4f3eea(0x1e7)];}async[_0x30d668(0x1ad)](_0x3804a9){const _0x1c8e8e=_0x30d668;try{this[_0x1c8e8e(0x198)]=new _0x5e0a88({'connector':this[_0x1c8e8e(0x184)],'config':_0x3804a9,'ownerId':this['id']}),this[_0x1c8e8e(0x198)][_0x1c8e8e(0x1b9)](..._0x181a8f)['to'](this),this[_0x1c8e8e(0x198)][_0x1c8e8e(0x1ad)](),this[_0x1c8e8e(0x1d6)]=new _0x1288fc(),this[_0x1c8e8e(0x1d6)][_0x1c8e8e(0x1b9)](..._0x447165)['to'](this),this[_0x1c8e8e(0x1d6)][_0x1c8e8e(0x1ad)]();const _0x3d56e1=await this[_0x1c8e8e(0x1e5)][_0x1c8e8e(0x174)]();this[_0x1c8e8e(0x1af)](_0x1c8e8e(0x1a2),{'availableModels':_0x3d56e1});const _0x309483=await this[_0x1c8e8e(0x1e5)][_0x1c8e8e(0x1d9)](this[_0x1c8e8e(0x1ba)][_0x1c8e8e(0x1de)]);_0x309483&&await this[_0x1c8e8e(0x181)](_0x309483);}catch(_0x3a6eb3){const _0x32e790=new _0x3eee87(_0x1c8e8e(0x1d8),null,{'message':_0x3a6eb3[_0x1c8e8e(0x1a4)]||_0x3a6eb3});_0x32e790[_0x1c8e8e(0x19b)]=_0x3a6eb3[_0x1c8e8e(0x19b)],this[_0x1c8e8e(0x1af)](_0x1c8e8e(0x1aa),{'error':_0x32e790});}}async[_0x30d668(0x189)](){const _0x467342=_0x30d668;if(this[_0x467342(0x18f)])throw new _0x3eee87(_0x467342(0x1c7),null,{'conversation':this});if(!this[_0x467342(0x1a1)])throw new _0x3eee87(_0x467342(0x1d2),null,{'conversation':this});try{const {id:_0x16a863}=await this[_0x467342(0x184)][_0x467342(0x1cf)](this['id'],this[_0x467342(0x1ba)][_0x467342(0x170)])[_0x467342(0x1ae)]();this['id']=_0x16a863,this[_0x467342(0x18f)]=!0x0,this[_0x467342(0x1af)](_0x467342(0x186),{'conversationId':this['id'],'selectedModel':this[_0x467342(0x1a1)]});}catch(_0xfe729e){const _0x1b3e06=new _0x3eee87(_0x467342(0x199),null,{'message':_0xfe729e[_0x467342(0x1a4)],'conversationId':this['id']});throw _0x1b3e06[_0x467342(0x19b)]=_0xfe729e[_0x467342(0x19b)],this[_0x467342(0x1af)](_0x467342(0x1aa),{'error':_0x1b3e06}),_0x1b3e06;}}async[_0x30d668(0x1e1)](_0x1d857c,_0x3dcdb6){const _0x46e92d=_0x30d668;try{const _0x45fdb9=await this[_0x46e92d(0x184)][_0x46e92d(0x1a6)](_0x1d857c)[_0x46e92d(0x1ae)](),_0x5a79ca=await this[_0x46e92d(0x184)][_0x46e92d(0x1c1)](_0x1d857c)[_0x46e92d(0x17b)](),_0x5191d3=_0x5a79ca[0x0][_0x46e92d(0x1d1)];this[_0x46e92d(0x18f)]=!0x0,this['id']=_0x45fdb9['id'],_0x46e92d(0x1dc)in _0x45fdb9?this[_0x46e92d(0x1af)](_0x46e92d(0x180),_0x45fdb9[_0x46e92d(0x1dc)],!0x0):this[_0x46e92d(0x1af)](_0x46e92d(0x180),'',!0x0);const _0x462595=(await this[_0x46e92d(0x1e5)][_0x46e92d(0x1b5)]())[_0x46e92d(0x176)](_0x46ca6f=>_0x46ca6f['id'][_0x46e92d(0x1da)]()===_0x5191d3[_0x46e92d(0x1da)]());return this[_0x46e92d(0x1a1)]=_0x462595,this[_0x46e92d(0x1af)](_0x46e92d(0x18a),{'selectedModel':_0x462595,'isDisabled':!0x0}),await this[_0x46e92d(0x17a)](_0x5a79ca,_0x3dcdb6,_0x5191d3),this[_0x46e92d(0x1e2)]=void 0x0,this;}catch(_0x37b177){const _0x116d8a=new _0x3eee87(_0x46e92d(0x1bf),null,{'message':_0x37b177[_0x46e92d(0x1a4)],'conversationId':_0x1d857c});throw _0x116d8a[_0x46e92d(0x19b)]=_0x37b177[_0x46e92d(0x19b)],this[_0x46e92d(0x1af)](_0x46e92d(0x1aa),{'error':_0x116d8a}),_0x116d8a;}}async[_0x30d668(0x17a)](_0x3a04f8,_0x115292,_0x525546){const _0x1abfb0=_0x30d668;let _0x17614f;for(const _0x3ebb6c of _0x3a04f8)if(_0x1abfb0(0x1d0)===_0x3ebb6c[_0x1abfb0(0x1e0)]){const _0xb30646=await this[_0x1abfb0(0x1d3)](_0x3ebb6c),_0x48079e={'isReasoningEnabled':Object[_0x1abfb0(0x173)](_0x3ebb6c[_0x1abfb0(0x1a8)],_0x1abfb0(0x16c)),'isWebSearchEnabled':Object[_0x1abfb0(0x173)](_0x3ebb6c[_0x1abfb0(0x1a8)],_0x1abfb0(0x1e4))};_0x17614f=this[_0x1abfb0(0x1a9)]({'userMessage':_0x3ebb6c[_0x1abfb0(0x16e)],'contextItems':_0xb30646,'capabilities':_0x48079e,'modelId':_0x525546,'attributes':_0x3ebb6c[_0x1abfb0(0x1e6)]}),this[_0x1abfb0(0x1e2)]=_0x17614f,this[_0x1abfb0(0x198)][_0x1abfb0(0x188)](this[_0x1abfb0(0x1e2)][_0x1abfb0(0x172)]);}else{if(_0x1abfb0(0x16f)===_0x3ebb6c[_0x1abfb0(0x1e0)]&&_0x17614f){const _0x575f75=[];for(const _0x2e5453 of _0x3ebb6c[_0x1abfb0(0x1d5)])switch(_0x2e5453[_0x1abfb0(0x183)]){case _0x1abfb0(0x1ea):case _0x1abfb0(0x191):{const _0xf925b5=_0x17614f[_0x1abfb0(0x185)]()?.[_0x1abfb0(0x18e)]!==_0x115292;_0x17614f[_0x1abfb0(0x1c2)]=_0x17614f[_0x1abfb0(0x17d)]({'type':_0x2e5453[_0x1abfb0(0x183)],'isDone':!0x0,'interactionId':_0x17614f['id'],'areActionsDisabled':_0xf925b5}),_0x17614f[_0x1abfb0(0x1c2)][_0x1abfb0(0x18c)](_0x2e5453[_0x1abfb0(0x1d5)]),_0x575f75[_0x1abfb0(0x1db)]>0x0&&(_0x17614f[_0x1abfb0(0x1c2)][_0x1abfb0(0x196)]=_0x575f75[_0x1abfb0(0x17e)](0x0));break;}case _0x1abfb0(0x193):_0x575f75[_0x1abfb0(0x19e)](_0x2e5453);break;case _0x1abfb0(0x187):{const {data:_0x44202a,attributes:_0x286cc3}=JSON[_0x1abfb0(0x1c0)](_0x2e5453[_0x1abfb0(0x1d5)]);_0x17614f[_0x1abfb0(0x1bb)]({'toolName':_0x2e5453[_0x1abfb0(0x19d)],'data':_0x44202a,'attributes':_0x286cc3});break;}}}}}async[_0x30d668(0x1d3)](_0x218f77){const _0x1db3da=_0x30d668,_0x3380fd=new Map();if(!_0x218f77[_0x1db3da(0x1d5)])return _0x3380fd;for(const _0x3ebc3f of _0x218f77[_0x1db3da(0x1d5)]){const _0x59fa13=await this[_0x1db3da(0x198)][_0x1db3da(0x17c)](_0x3ebc3f);_0x59fa13&&_0x3380fd[_0x1db3da(0x1a0)](_0x59fa13['id'],_0x59fa13);}return _0x3380fd;}async[_0x30d668(0x1c5)]({userMessage:_0x293606,attributes:_0xa1cbab}){const _0x1b14b8=_0x30d668;if(!this[_0x1b14b8(0x18f)])throw new _0x3eee87(_0x1b14b8(0x1a3),null,{'conversation':this});if(this[_0x1b14b8(0x1e2)])throw new _0x3eee87(_0x1b14b8(0x1b3),null,{'conversation':this});try{const _0x117bf0=this[_0x1b14b8(0x198)][_0x1b14b8(0x179)](),_0x4d594d=this[_0x1b14b8(0x1d6)][_0x1b14b8(0x1a7)](),_0x269905=this[_0x1b14b8(0x1a1)]['id'];this[_0x1b14b8(0x1e2)]=this[_0x1b14b8(0x1a9)]({'userMessage':_0x293606,'contextItems':_0x117bf0,'capabilities':_0x4d594d,'modelId':_0x269905,'attributes':_0xa1cbab}),await this[_0x1b14b8(0x1e2)][_0x1b14b8(0x189)](),this[_0x1b14b8(0x198)][_0x1b14b8(0x188)](this[_0x1b14b8(0x1e2)][_0x1b14b8(0x172)]);}catch(_0x4ebf14){if(_0x4ebf14 instanceof _0x3eee87)this[_0x1b14b8(0x1af)](_0x1b14b8(0x1aa),{'interactionId':this[_0x1b14b8(0x1e2)]?this[_0x1b14b8(0x1e2)]['id']:void 0x0,'error':_0x4ebf14});else{const _0x45ea51=_0x4b8785[_0x1b14b8(0x1bc)](_0x4ebf14[_0x1b14b8(0x1e9)])||_0x1b14b8(0x1c9);this[_0x1b14b8(0x1af)](_0x1b14b8(0x1aa),{'interactionId':this[_0x1b14b8(0x1e2)]?this[_0x1b14b8(0x1e2)]['id']:void 0x0,'error':new _0x3eee87(_0x45ea51,null,{'error':_0x4ebf14})});}}finally{this[_0x1b14b8(0x1e2)]?.[_0x1b14b8(0x1b6)](),this[_0x1b14b8(0x1e2)]=void 0x0;}}[_0x30d668(0x1a9)]({userMessage:_0x32d088,contextItems:_0x52e6fe,capabilities:_0x24265c,modelId:_0x2036d2,attributes:_0x246842}){const _0x2dc74d=_0x30d668,_0x115128=new _0x466f4a({'userMessage':_0x32d088,'contextItems':_0x52e6fe,'capabilities':_0x24265c,'conversationId':this['id'],'connector':this[_0x2dc74d(0x184)],'editor':this[_0x2dc74d(0x1ba)][_0x2dc74d(0x1b4)]&&this[_0x2dc74d(0x1ba)][_0x2dc74d(0x1b4)](),'model':_0x2036d2,'attributes':_0x246842});return _0x115128[_0x2dc74d(0x1b9)](..._0x1ca8e9)['to'](this),this[_0x2dc74d(0x1eb)][_0x2dc74d(0x19e)](_0x115128),this[_0x2dc74d(0x1af)](_0x2dc74d(0x1d4),_0x115128),_0x115128;}[_0x30d668(0x1cb)](_0x3d1519){const _0x32d830=_0x30d668;return this[_0x32d830(0x1eb)][_0x32d830(0x176)](_0x98da0e=>_0x98da0e['id']===_0x3d1519);}[_0x30d668(0x1e3)](_0x14d92f){const _0x3c58fc=_0x30d668,_0x46bf19=this[_0x3c58fc(0x1cb)](_0x14d92f);_0x46bf19&&(_0x46bf19[_0x3c58fc(0x1c3)](),this[_0x3c58fc(0x1eb)][_0x3c58fc(0x17e)](this[_0x3c58fc(0x1eb)][_0x3c58fc(0x1df)](_0x46bf19),0x1));}get[_0x30d668(0x19a)](){const _0x283a1c=_0x30d668;return this[_0x283a1c(0x1eb)][this[_0x283a1c(0x1eb)][_0x283a1c(0x1db)]-0x1];}[_0x30d668(0x1b7)](_0x4bc4a9){const _0x10a0f6=_0x30d668;this[_0x10a0f6(0x198)][_0x10a0f6(0x1b7)](_0x4bc4a9);}async[_0x30d668(0x1cd)]({content:_0x33394e,version:_0x5370fe,sessionId:_0x588094,selections:_0x3c8fca}){const _0x46f32b=_0x30d668;await this[_0x46f32b(0x198)][_0x46f32b(0x1d7)](_0x33394e,_0x5370fe,_0x588094,_0x3c8fca);}[_0x30d668(0x194)](){const _0x3f630=_0x30d668;return this[_0x3f630(0x1e2)]?.[_0x3f630(0x185)]()?.[_0x3f630(0x1d5)]||'';}[_0x30d668(0x1b1)](_0x13bfc0){const _0x5caca5=_0x30d668;this[_0x5caca5(0x198)][_0x5caca5(0x1b1)](_0x13bfc0);}[_0x30d668(0x19c)](){const _0x67899b=_0x30d668;this[_0x67899b(0x198)][_0x67899b(0x19c)]();}[_0x30d668(0x177)](_0x273919){const _0x4a03b2=_0x30d668;this[_0x4a03b2(0x198)][_0x4a03b2(0x177)](_0x273919);}[_0x30d668(0x18b)](_0x3a37b1){const _0x494ad1=_0x30d668;this[_0x494ad1(0x198)][_0x494ad1(0x18b)](_0x3a37b1);}[_0x30d668(0x1dd)](_0x20b170){const _0x3ebdf5=_0x30d668;this[_0x3ebdf5(0x198)][_0x3ebdf5(0x1dd)](_0x20b170);}[_0x30d668(0x1a5)](_0xaf3380,_0x22bc90){const _0x362ce7=_0x30d668;this[_0x362ce7(0x198)][_0x362ce7(0x1a5)](_0xaf3380,_0x22bc90);}[_0x30d668(0x17f)](_0x9ac4fc,_0x45167e,_0x3e2055){const _0xc1088e=_0x30d668;return this[_0xc1088e(0x198)][_0xc1088e(0x17f)](_0x9ac4fc,_0x45167e,_0x3e2055);}[_0x30d668(0x178)](_0x525580){const _0x15d85d=_0x30d668;this[_0x15d85d(0x198)][_0x15d85d(0x178)](_0x525580);}[_0x30d668(0x1be)](_0x52f6d2){const _0x4b318e=_0x30d668;this[_0x4b318e(0x1d6)][_0x4b318e(0x1be)](_0x52f6d2);}[_0x30d668(0x1b8)](){const _0x3571f4=_0x30d668;this[_0x3571f4(0x1d6)][_0x3571f4(0x1b8)]();}[_0x30d668(0x1b2)](_0x175b30){const _0x22604f=_0x30d668;this[_0x22604f(0x1d6)][_0x22604f(0x1b2)](_0x175b30);}[_0x30d668(0x1b0)](){const _0x34d45f=_0x30d668;this[_0x34d45f(0x1d6)][_0x34d45f(0x1b0)]();}[_0x30d668(0x1e8)](){const _0x28c47c=_0x30d668;return this[_0x28c47c(0x198)][_0x28c47c(0x1e8)]();}[_0x30d668(0x190)](){const _0xf8cd37=_0x30d668;return this[_0xf8cd37(0x198)][_0xf8cd37(0x190)]();}[_0x30d668(0x1ce)](){const _0x2c608f=_0x30d668;return this[_0x2c608f(0x198)][_0x2c608f(0x1ce)]();}async[_0x30d668(0x181)](_0xfef04b){const _0x170930=_0x30d668;_0xfef04b?!0x1===await this[_0x170930(0x1e5)][_0x170930(0x197)](_0xfef04b)&&(_0x450e4d(_0x170930(0x1ac),{'conversation':this,'model':_0xfef04b}),_0xfef04b=(await this[_0x170930(0x1e5)][_0x170930(0x174)]())[0x0]):(_0x450e4d(_0x170930(0x171),{'conversation':this}),_0xfef04b=(await this[_0x170930(0x1e5)][_0x170930(0x174)]())[0x0]),_0xfef04b['id']!==this[_0x170930(0x1a1)]?.['id']&&(this[_0x170930(0x1a1)]=_0xfef04b,this[_0x170930(0x1d6)][_0x170930(0x1bd)](),this[_0x170930(0x1af)](_0x170930(0x18a),{'selectedModel':_0xfef04b}));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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));}}
23
+ function _0x3886(_0x1a26f,_0x1f027e){var _0x1d0152=_0x1d01();return _0x3886=function(_0x388616,_0x544a4d){_0x388616=_0x388616-0x14a;var _0x5dac26=_0x1d0152[_0x388616];return _0x5dac26;},_0x3886(_0x1a26f,_0x1f027e);}var _0x2ec662=_0x3886;(function(_0xdc3219,_0x52b3ea){var _0x539663=_0x3886,_0x4ffd5a=_0xdc3219();while(!![]){try{var _0x21ed37=-parseInt(_0x539663(0x162))/0x1*(-parseInt(_0x539663(0x14a))/0x2)+-parseInt(_0x539663(0x152))/0x3+parseInt(_0x539663(0x15f))/0x4*(parseInt(_0x539663(0x159))/0x5)+-parseInt(_0x539663(0x153))/0x6*(parseInt(_0x539663(0x15a))/0x7)+parseInt(_0x539663(0x15e))/0x8*(-parseInt(_0x539663(0x15c))/0x9)+parseInt(_0x539663(0x14c))/0xa+-parseInt(_0x539663(0x160))/0xb*(-parseInt(_0x539663(0x157))/0xc);if(_0x21ed37===_0x52b3ea)break;else _0x4ffd5a['push'](_0x4ffd5a['shift']());}catch(_0x42dae8){_0x4ffd5a['push'](_0x4ffd5a['shift']());}}}(_0x1d01,0xc4f39));import{AICapabilities as _0xe7d83a}from'../../aicore/model/aicapabilities.js';import{AIInteraction as _0x5a4919}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x3a2d0e}from'./aichatcontext.js';function _0x1d01(){var _0x14af98=['6395880ogSpgf','attributes','conversationId','getCapabilitiesRequestData','contextItems','queryAssistant','4466997DsXjkf','8130iQqXBg','connector','current-document','userMessage','36IRYgBA','model','65VtYSVa','3787PJHKuO','getDocumentContext','9oyMbEw','sendRequest','7717128ubqYTa','172504GLgFmr','5852363XKtgIq','capabilities','419iiWyhb','get','5714ZfKDin','mapContextItemsToRequestData'];_0x1d01=function(){return _0x14af98;};return _0x1d01();}export class AIChatInteraction extends _0x5a4919{[_0x2ec662(0x156)];[_0x2ec662(0x14e)];[_0x2ec662(0x150)]=new Map();[_0x2ec662(0x158)];[_0x2ec662(0x14d)];constructor(_0x97b1b6){var _0x5bc6df=_0x2ec662;super(_0x97b1b6),this[_0x5bc6df(0x14e)]=_0x97b1b6[_0x5bc6df(0x14e)],this[_0x5bc6df(0x150)]=_0x97b1b6[_0x5bc6df(0x150)],this[_0x5bc6df(0x161)]=_0x97b1b6[_0x5bc6df(0x161)],this[_0x5bc6df(0x156)]=_0x97b1b6[_0x5bc6df(0x156)],this[_0x5bc6df(0x158)]=_0x97b1b6[_0x5bc6df(0x158)],this[_0x5bc6df(0x14d)]=_0x97b1b6[_0x5bc6df(0x14d)];}async[_0x2ec662(0x15d)](){var _0x399692=_0x2ec662;return this[_0x399692(0x154)][_0x399692(0x151)]({'message':this[_0x399692(0x156)],'conversationId':this[_0x399692(0x14e)],'parts':_0x3a2d0e[_0x399692(0x14b)](this[_0x399692(0x150)]),'capabilities':_0xe7d83a[_0x399692(0x14f)](this[_0x399692(0x161)]),'model':this[_0x399692(0x158)],'attributes':this[_0x399692(0x14d)]});}[_0x2ec662(0x15b)](){var _0x20a99d=_0x2ec662;return this[_0x20a99d(0x150)][_0x20a99d(0x163)](_0x20a99d(0x155));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x47e56f=_0x21bf;(function(_0x4ad032,_0x5d1dd0){const _0x5b6b5a=_0x21bf,_0xcf1664=_0x4ad032();while(!![]){try{const _0x3e33c8=parseInt(_0x5b6b5a(0x14f))/0x1*(parseInt(_0x5b6b5a(0x163))/0x2)+parseInt(_0x5b6b5a(0x173))/0x3+-parseInt(_0x5b6b5a(0x16f))/0x4*(parseInt(_0x5b6b5a(0x18c))/0x5)+-parseInt(_0x5b6b5a(0x17d))/0x6*(parseInt(_0x5b6b5a(0x146))/0x7)+-parseInt(_0x5b6b5a(0x14b))/0x8*(-parseInt(_0x5b6b5a(0x153))/0x9)+parseInt(_0x5b6b5a(0x13b))/0xa+parseInt(_0x5b6b5a(0x138))/0xb*(-parseInt(_0x5b6b5a(0x145))/0xc);if(_0x3e33c8===_0x5d1dd0)break;else _0xcf1664['push'](_0xcf1664['shift']());}catch(_0x5ab2c6){_0xcf1664['push'](_0xcf1664['shift']());}}}(_0x1c81,0x6a0a7));import{FocusTracker as _0x30dd0d,KeystrokeHandler as _0x382819}from'ckeditor5/src/utils.js';import{AISuggestionStreamableContentView as _0x366dfb}from'../../aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js';import{AISuggestionContentPartToolbarView as _0x3ec9d0}from'../../aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js';import{AIMiniToolbarView as _0x1e5163}from'../../aicore/ui/suggestioncontainer/aiminitoolbarview.js';import{AIBalloonView as _0x49c613}from'../../aiballoon/ui/aiballoonview.js';import{ButtonView as _0x3edd7d,FocusCycler as _0x374a8d,View as _0x2538f5}from'ckeditor5/src/ui.js';import{AISuggestionContentPartStateView as _0x12e2a2}from'../../aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js';import{IconChevronDown as _0x5c1650,IconChevronUp as _0x5bb0d9}from'ckeditor5/src/icons.js';function _0x1c81(){const _0x162335=['addMany','full','_focusables','setState','_stateView','listenTo','div','showNext','change:isTrackChangesOn','applySuggestion','rejectSuggestion','AI_BALLOON_NEXT_LABEL','4162mNrQtq','ck-ai-chat-balloon-main_state_','bind','includes','updateContent','showError','_state','hideError','isTrackChangesOn','ck-ai-chat-balloon-main','_partToolbarView','execute','24YKssOM','delegate','isShowChangesOn','previousButtonView','2208681BElJUM','locale','focusCycler','fire','_createPreviousButtonView','focusFirst','_config','_isErrorVisible','update','showDiff','65922MnQdAf','focus','_errorView','_keystrokes','togglePartToolbarEnabled','_togglePartToolbarButtonsVisibility','render','isVisible','focusLast','_streamableContentView','element','tab','children','change:_state','availableActions','436675XbPtJi','pending','6039HDsJnl','toggleRotatorButtonsVisibility','_miniToolbarView','3722540zEjYls','_createNextButtonView','destroy','shift\x20+\x20tab','ck-ai-chat-balloon__toolbar-container','keepErrors','nextButtonView','set','toggleShowChanges','insertSuggestion','8628UwlcEZ','217IaPSFB','_focusTracker','_toolbarContainerView','bindTemplate','showBlockingError','56nObzpc','AI_BALLOON_PREVIOUS_LABEL','add','has','35faxsrw','isEnabled','toggleSuggestionDisplayMode','setButtonsVisibility','658755kFsInJ','showPrevious','createCollection','setTemplate'];_0x1c81=function(){return _0x162335;};return _0x1c81();}import{getTranslation as _0x5eca2f}from'../../aicore/utils/common-translations.js';function _0x21bf(_0x5ef6ee,_0x5da163){const _0x1c8149=_0x1c81();return _0x21bf=function(_0x21bf60,_0x350451){_0x21bf60=_0x21bf60-0x137;let _0x3f91e4=_0x1c8149[_0x21bf60];return _0x3f91e4;},_0x21bf(_0x5ef6ee,_0x5da163);}import'../../../theme/aichat/aichatballoon.css';export class AIChatBalloonView extends _0x49c613{[_0x47e56f(0x189)];[_0x47e56f(0x141)];[_0x47e56f(0x172)];[_0x47e56f(0x175)];[_0x47e56f(0x159)];[_0x47e56f(0x147)];[_0x47e56f(0x180)];[_0x47e56f(0x179)];[_0x47e56f(0x186)];[_0x47e56f(0x148)];[_0x47e56f(0x16d)];[_0x47e56f(0x15b)];[_0x47e56f(0x13a)];constructor(_0x574dfc,_0x2e37fb){const _0x1e3636=_0x47e56f;super(_0x574dfc);const _0x366546=this[_0x1e3636(0x149)];this[_0x1e3636(0x142)](_0x1e3636(0x17c),!0x1),this[_0x1e3636(0x142)](_0x1e3636(0x169),_0x1e3636(0x137)),this[_0x1e3636(0x147)]=new _0x30dd0d(),this[_0x1e3636(0x180)]=new _0x382819(),this[_0x1e3636(0x159)]=this[_0x1e3636(0x155)](),this[_0x1e3636(0x175)]=new _0x374a8d({'focusables':this[_0x1e3636(0x159)],'focusTracker':this[_0x1e3636(0x147)],'keystrokeHandler':this[_0x1e3636(0x180)],'actions':{'focusPrevious':_0x1e3636(0x13e),'focusNext':_0x1e3636(0x188)}}),this[_0x1e3636(0x179)]=_0x2e37fb,this[_0x1e3636(0x141)]=this[_0x1e3636(0x13c)](),this[_0x1e3636(0x172)]=this[_0x1e3636(0x177)](),this[_0x1e3636(0x186)]=new _0x366dfb(_0x574dfc),this[_0x1e3636(0x16d)]=new _0x3ec9d0(_0x574dfc,_0x2e37fb[_0x1e3636(0x18b)]),this[_0x1e3636(0x16d)][_0x1e3636(0x170)](_0x1e3636(0x160),_0x1e3636(0x144),_0x1e3636(0x161))['to'](this),this[_0x1e3636(0x182)](_0x2e37fb),this[_0x1e3636(0x15b)]=new _0x12e2a2(_0x574dfc),this[_0x1e3636(0x15b)][_0x1e3636(0x184)]=!0x1,this[_0x1e3636(0x13a)]=new _0x1e5163(_0x574dfc,{'showChanges':_0x1e3636(0x158)}),this[_0x1e3636(0x13a)][_0x1e3636(0x165)](_0x1e3636(0x171))['to'](this,_0x1e3636(0x17c)),this[_0x1e3636(0x13a)]['on'](_0x1e3636(0x143),()=>{const _0x215366=_0x1e3636;this[_0x215366(0x176)](_0x215366(0x151));}),this[_0x1e3636(0x148)]=new fs(_0x574dfc,[this[_0x1e3636(0x16d)],this[_0x1e3636(0x15b)],this[_0x1e3636(0x13a)]]),this[_0x1e3636(0x189)]=this[_0x1e3636(0x155)]([this[_0x1e3636(0x186)],this[_0x1e3636(0x148)]]),this['on'](_0x1e3636(0x18a),(_0xeaed20,_0x2a473c,_0x26e4a9,_0x5d5491)=>{const _0x24b12f=_0x1e3636;let _0x2548b8,_0x1dc631;_0x24b12f(0x137)===_0x5d5491?(_0x2548b8=this[_0x24b12f(0x16d)],_0x1dc631=this[_0x24b12f(0x15b)]):(_0x2548b8=this[_0x24b12f(0x15b)],_0x1dc631=this[_0x24b12f(0x16d)]),this[_0x24b12f(0x15b)][_0x24b12f(0x15a)](_0x26e4a9),_0x2548b8[_0x24b12f(0x184)]=!0x1,_0x1dc631[_0x24b12f(0x184)]=!0x0;}),this[_0x1e3636(0x156)]({'tag':_0x1e3636(0x15d),'attributes':{'class':['ck',_0x1e3636(0x16c),_0x366546['to'](_0x1e3636(0x169),_0x1e7594=>_0x1e3636(0x164)+_0x1e7594)]},'children':this[_0x1e3636(0x189)]}),this['on'](_0x1e3636(0x15f),()=>{const _0xf5765c=_0x1e3636;this[_0xf5765c(0x182)](_0x2e37fb);});}[_0x47e56f(0x183)](){const _0x4319ad=_0x47e56f;super[_0x4319ad(0x183)](),this[_0x4319ad(0x141)][_0x4319ad(0x183)](),this[_0x4319ad(0x172)][_0x4319ad(0x183)](),this[_0x4319ad(0x147)][_0x4319ad(0x14d)](this[_0x4319ad(0x187)]),this[_0x4319ad(0x147)][_0x4319ad(0x14d)](this[_0x4319ad(0x141)]),this[_0x4319ad(0x147)][_0x4319ad(0x14d)](this[_0x4319ad(0x172)]),this[_0x4319ad(0x147)][_0x4319ad(0x14d)](this[_0x4319ad(0x13a)]),this[_0x4319ad(0x147)][_0x4319ad(0x14d)](this[_0x4319ad(0x16d)]),this[_0x4319ad(0x180)][_0x4319ad(0x15c)](this[_0x4319ad(0x187)]),this[_0x4319ad(0x180)][_0x4319ad(0x15c)](this[_0x4319ad(0x141)][_0x4319ad(0x187)]),this[_0x4319ad(0x180)][_0x4319ad(0x15c)](this[_0x4319ad(0x172)][_0x4319ad(0x187)]),this[_0x4319ad(0x159)][_0x4319ad(0x157)]([this[_0x4319ad(0x141)],this[_0x4319ad(0x172)],this[_0x4319ad(0x16d)],this[_0x4319ad(0x13a)]]);}[_0x47e56f(0x13d)](){const _0x175f1b=_0x47e56f;super[_0x175f1b(0x13d)](),this[_0x175f1b(0x172)][_0x175f1b(0x13d)](),this[_0x175f1b(0x141)][_0x175f1b(0x13d)]();}[_0x47e56f(0x17e)](){const _0x27f4b5=_0x47e56f;this[_0x27f4b5(0x175)][_0x27f4b5(0x178)]();}[_0x47e56f(0x185)](){const _0x169ca9=_0x47e56f;this[_0x169ca9(0x175)][_0x169ca9(0x185)]();}async[_0x47e56f(0x167)](_0x5e93c4){const _0x2a3cac=_0x47e56f;_0x5e93c4?.[_0x2a3cac(0x140)]||this[_0x2a3cac(0x16a)](),await this[_0x2a3cac(0x186)][_0x2a3cac(0x17b)](_0x5e93c4);}[_0x47e56f(0x15a)](_0x4d209d){const _0x2796b1=_0x47e56f;this[_0x2796b1(0x169)]=_0x4d209d;}[_0x47e56f(0x168)](_0x5bf2bd){const _0x4afc7a=_0x47e56f;super[_0x4afc7a(0x168)](_0x5bf2bd),this[_0x4afc7a(0x189)][_0x4afc7a(0x14e)](this[_0x4afc7a(0x17f)])||this[_0x4afc7a(0x189)][_0x4afc7a(0x14d)](this[_0x4afc7a(0x17f)],0x0);}[_0x47e56f(0x16a)](){const _0x3920e5=_0x47e56f;this[_0x3920e5(0x17a)]&&(super[_0x3920e5(0x16a)](),this[_0x3920e5(0x181)](!0x0));}[_0x47e56f(0x14a)](_0x28fcef){const _0x3ec811=_0x47e56f;super[_0x3ec811(0x14a)](_0x28fcef),this[_0x3ec811(0x181)](!0x1);}[_0x47e56f(0x139)](_0x5cdd03){const _0xefc3e2=_0x47e56f;this[_0xefc3e2(0x141)][_0xefc3e2(0x184)]=this[_0xefc3e2(0x172)][_0xefc3e2(0x184)]=_0x5cdd03;}[_0x47e56f(0x181)](_0x33babe){const _0x9738bf=_0x47e56f;this[_0x9738bf(0x16d)][_0x9738bf(0x150)]=_0x33babe;}[_0x47e56f(0x182)]({showApplyButton:_0x284d05,showSuggestButton:_0x1e67e9}){const _0x30db55=_0x47e56f;_0x284d05=_0x284d05&&!this[_0x30db55(0x16b)]&&this[_0x30db55(0x179)][_0x30db55(0x18b)][_0x30db55(0x166)](_0x30db55(0x160)),_0x1e67e9=_0x1e67e9&&this[_0x30db55(0x179)][_0x30db55(0x18b)][_0x30db55(0x166)](_0x30db55(0x144)),this[_0x30db55(0x16d)][_0x30db55(0x152)]({'showApplyButton':_0x284d05,'showSuggestButton':_0x1e67e9});}[_0x47e56f(0x13c)](){const _0x4d3ff4=_0x47e56f,_0x415e77=new _0x3edd7d(this[_0x4d3ff4(0x174)]);return _0x415e77[_0x4d3ff4(0x142)]({'icon':_0x5c1650,'label':_0x5eca2f(this[_0x4d3ff4(0x174)],_0x4d3ff4(0x162)),'isVisible':!0x0}),_0x415e77['on'](_0x4d3ff4(0x16e),()=>{const _0x19fdbf=_0x4d3ff4;this[_0x19fdbf(0x176)](_0x19fdbf(0x15e));}),_0x415e77;}[_0x47e56f(0x177)](){const _0x4c1842=_0x47e56f,_0x352af2=new _0x3edd7d(this[_0x4c1842(0x174)]);return _0x352af2[_0x4c1842(0x142)]({'icon':_0x5bb0d9,'label':_0x5eca2f(this[_0x4c1842(0x174)],_0x4c1842(0x14c)),'isVisible':!0x0}),_0x352af2['on'](_0x4c1842(0x16e),()=>{const _0x3b739c=_0x4c1842;this[_0x3b739c(0x176)](_0x3b739c(0x154));}),_0x352af2;}}class fs extends _0x2538f5{constructor(_0x283eb4,_0x22524e){const _0x579a2c=_0x47e56f;super(_0x283eb4),this[_0x579a2c(0x156)]({'tag':_0x579a2c(0x15d),'attributes':{'class':[_0x579a2c(0x13f)]},'children':_0x22524e});}}
23
+ const _0x478421=_0x1aa1;(function(_0x295f13,_0x3ad7e7){const _0x54043e=_0x1aa1,_0x331bfb=_0x295f13();while(!![]){try{const _0x591686=-parseInt(_0x54043e(0x221))/0x1*(parseInt(_0x54043e(0x1e9))/0x2)+parseInt(_0x54043e(0x1e1))/0x3+parseInt(_0x54043e(0x1fa))/0x4*(parseInt(_0x54043e(0x1ee))/0x5)+parseInt(_0x54043e(0x1f8))/0x6*(parseInt(_0x54043e(0x1e7))/0x7)+-parseInt(_0x54043e(0x223))/0x8+-parseInt(_0x54043e(0x219))/0x9*(parseInt(_0x54043e(0x1f7))/0xa)+parseInt(_0x54043e(0x226))/0xb;if(_0x591686===_0x3ad7e7)break;else _0x331bfb['push'](_0x331bfb['shift']());}catch(_0x1c5d6a){_0x331bfb['push'](_0x331bfb['shift']());}}}(_0x5c8f,0x5798a));import{FocusTracker as _0x3405fe,KeystrokeHandler as _0x1b5439}from'ckeditor5/src/utils.js';import{AISuggestionStreamableContentView as _0x2b1862}from'../../aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js';function _0x5c8f(){const _0x11e0e6=['execute','bind','10suvaOM','24iChToA','listenTo','1396OHWFTf','applySuggestion','_createNextButtonView','showPrevious','AI_BALLOON_NEXT_LABEL','ck-ai-chat-balloon-main','isShowChangesOn','element','div','children','isEnabled','delegate','_partToolbarView','focus','change:isTrackChangesOn','_focusables','AI_BALLOON_PREVIOUS_LABEL','destroy','setTemplate','keepErrors','toggleSuggestionDisplayMode','tab','ck-ai-chat-balloon-main_state_','locale','focusLast','includes','bindTemplate','ck-ai-chat-balloon__toolbar-container','add','has','_keystrokes','5104881cQuDeN','toggleRotatorButtonsVisibility','hideError','_stateView','showDiff','_focusTracker','focusFirst','showNext','7owIuFz','setButtonsVisibility','472840GlujNI','_streamableContentView','showBlockingError','6920573ztekpB','_state','focusCycler','_miniToolbarView','change:_state','render','_togglePartToolbarButtonsVisibility','togglePartToolbarEnabled','_isErrorVisible','addMany','set','shift\x20+\x20tab','nextButtonView','isTrackChangesOn','toggleShowChanges','updateContent','61974fbqGAo','update','insertSuggestion','_toolbarContainerView','fire','setState','76202FVTDGF','rejectSuggestion','97122qYbPjp','isVisible','_config','_createPreviousButtonView','_errorView','9050oUGKJP','previousButtonView','showError','pending','full','availableActions','createCollection'];_0x5c8f=function(){return _0x11e0e6;};return _0x5c8f();}import{AISuggestionContentPartToolbarView as _0x5ad5d4}from'../../aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js';import{AIMiniToolbarView as _0x8ecdaf}from'../../aicore/ui/suggestioncontainer/aiminitoolbarview.js';function _0x1aa1(_0x3b34d3,_0x445cb){const _0x5c8ff0=_0x5c8f();return _0x1aa1=function(_0x1aa171,_0x39ef2d){_0x1aa171=_0x1aa171-0x1d6;let _0x1c201e=_0x5c8ff0[_0x1aa171];return _0x1c201e;},_0x1aa1(_0x3b34d3,_0x445cb);}import{AIBalloonView as _0x1cc9b4}from'../../aiballoon/ui/aiballoonview.js';import{ButtonView as _0x157bff,FocusCycler as _0x29fcc2,View as _0x464400}from'ckeditor5/src/ui.js';import{AISuggestionContentPartStateView as _0x4cfc1b}from'../../aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js';import{IconChevronDown as _0x340878,IconChevronUp as _0x3832c0}from'ckeditor5/src/icons.js';import{getTranslation as _0x426a56}from'../../aicore/utils/common-translations.js';import'../../../theme/aichat/aichatballoon.css';export class AIChatBalloonView extends _0x1cc9b4{[_0x478421(0x203)];[_0x478421(0x1dd)];[_0x478421(0x1ef)];[_0x478421(0x228)];[_0x478421(0x209)];[_0x478421(0x21e)];[_0x478421(0x218)];[_0x478421(0x1eb)];[_0x478421(0x224)];[_0x478421(0x1e4)];[_0x478421(0x206)];[_0x478421(0x21c)];[_0x478421(0x229)];constructor(_0x3a6cbe,_0x453ee3){const _0x5a44c4=_0x478421;super(_0x3a6cbe);const _0x4bb2dc=this[_0x5a44c4(0x214)];this[_0x5a44c4(0x1db)](_0x5a44c4(0x21d),!0x1),this[_0x5a44c4(0x1db)](_0x5a44c4(0x227),_0x5a44c4(0x1f1)),this[_0x5a44c4(0x21e)]=new _0x3405fe(),this[_0x5a44c4(0x218)]=new _0x1b5439(),this[_0x5a44c4(0x209)]=this[_0x5a44c4(0x1f4)](),this[_0x5a44c4(0x228)]=new _0x29fcc2({'focusables':this[_0x5a44c4(0x209)],'focusTracker':this[_0x5a44c4(0x21e)],'keystrokeHandler':this[_0x5a44c4(0x218)],'actions':{'focusPrevious':_0x5a44c4(0x1dc),'focusNext':_0x5a44c4(0x20f)}}),this[_0x5a44c4(0x1eb)]=_0x453ee3,this[_0x5a44c4(0x1dd)]=this[_0x5a44c4(0x1fc)](),this[_0x5a44c4(0x1ef)]=this[_0x5a44c4(0x1ec)](),this[_0x5a44c4(0x224)]=new _0x2b1862(_0x3a6cbe),this[_0x5a44c4(0x206)]=new _0x5ad5d4(_0x3a6cbe,_0x453ee3[_0x5a44c4(0x1f3)]),this[_0x5a44c4(0x206)][_0x5a44c4(0x205)](_0x5a44c4(0x1fb),_0x5a44c4(0x1e3),_0x5a44c4(0x1e8))['to'](this),this[_0x5a44c4(0x1d7)](_0x453ee3),this[_0x5a44c4(0x21c)]=new _0x4cfc1b(_0x3a6cbe),this[_0x5a44c4(0x21c)][_0x5a44c4(0x1ea)]=!0x1,this[_0x5a44c4(0x229)]=new _0x8ecdaf(_0x3a6cbe,{'showChanges':_0x5a44c4(0x1f2)}),this[_0x5a44c4(0x229)][_0x5a44c4(0x1f6)](_0x5a44c4(0x200))['to'](this,_0x5a44c4(0x21d)),this[_0x5a44c4(0x229)]['on'](_0x5a44c4(0x1df),()=>{const _0x3c344a=_0x5a44c4;this[_0x3c344a(0x1e5)](_0x3c344a(0x20e));}),this[_0x5a44c4(0x1e4)]=new AIChatBalloonToolbarContainerView(_0x3a6cbe,[this[_0x5a44c4(0x206)],this[_0x5a44c4(0x21c)],this[_0x5a44c4(0x229)]]),this[_0x5a44c4(0x203)]=this[_0x5a44c4(0x1f4)]([this[_0x5a44c4(0x224)],this[_0x5a44c4(0x1e4)]]),this['on'](_0x5a44c4(0x22a),(_0x2cc9c0,_0x4c5e46,_0x15e747,_0x2dcc93)=>{const _0x38e4f4=_0x5a44c4;let _0x329e49,_0x16695c;_0x38e4f4(0x1f1)===_0x2dcc93?(_0x329e49=this[_0x38e4f4(0x206)],_0x16695c=this[_0x38e4f4(0x21c)]):(_0x329e49=this[_0x38e4f4(0x21c)],_0x16695c=this[_0x38e4f4(0x206)]),this[_0x38e4f4(0x21c)][_0x38e4f4(0x1e6)](_0x15e747),_0x329e49[_0x38e4f4(0x1ea)]=!0x1,_0x16695c[_0x38e4f4(0x1ea)]=!0x0;}),this[_0x5a44c4(0x20c)]({'tag':_0x5a44c4(0x202),'attributes':{'class':['ck',_0x5a44c4(0x1ff),_0x4bb2dc['to'](_0x5a44c4(0x227),_0x269186=>_0x5a44c4(0x210)+_0x269186)]},'children':this[_0x5a44c4(0x203)]}),this['on'](_0x5a44c4(0x208),()=>{const _0x2e15e8=_0x5a44c4;this[_0x2e15e8(0x1d7)](_0x453ee3);});}[_0x478421(0x1d6)](){const _0x3e52ab=_0x478421;super[_0x3e52ab(0x1d6)](),this[_0x3e52ab(0x1dd)][_0x3e52ab(0x1d6)](),this[_0x3e52ab(0x1ef)][_0x3e52ab(0x1d6)](),this[_0x3e52ab(0x21e)][_0x3e52ab(0x216)](this[_0x3e52ab(0x201)]),this[_0x3e52ab(0x21e)][_0x3e52ab(0x216)](this[_0x3e52ab(0x1dd)]),this[_0x3e52ab(0x21e)][_0x3e52ab(0x216)](this[_0x3e52ab(0x1ef)]),this[_0x3e52ab(0x21e)][_0x3e52ab(0x216)](this[_0x3e52ab(0x229)]),this[_0x3e52ab(0x21e)][_0x3e52ab(0x216)](this[_0x3e52ab(0x206)]),this[_0x3e52ab(0x218)][_0x3e52ab(0x1f9)](this[_0x3e52ab(0x201)]),this[_0x3e52ab(0x218)][_0x3e52ab(0x1f9)](this[_0x3e52ab(0x1dd)][_0x3e52ab(0x201)]),this[_0x3e52ab(0x218)][_0x3e52ab(0x1f9)](this[_0x3e52ab(0x1ef)][_0x3e52ab(0x201)]),this[_0x3e52ab(0x209)][_0x3e52ab(0x1da)]([this[_0x3e52ab(0x1dd)],this[_0x3e52ab(0x1ef)],this[_0x3e52ab(0x206)],this[_0x3e52ab(0x229)]]);}[_0x478421(0x20b)](){const _0x54c404=_0x478421;super[_0x54c404(0x20b)](),this[_0x54c404(0x1ef)][_0x54c404(0x20b)](),this[_0x54c404(0x1dd)][_0x54c404(0x20b)]();}[_0x478421(0x207)](){const _0x1b0e23=_0x478421;this[_0x1b0e23(0x228)][_0x1b0e23(0x21f)]();}[_0x478421(0x212)](){const _0x48ed60=_0x478421;this[_0x48ed60(0x228)][_0x48ed60(0x212)]();}async[_0x478421(0x1e0)](_0x35b744){const _0x9941d0=_0x478421;_0x35b744?.[_0x9941d0(0x20d)]||this[_0x9941d0(0x21b)](),await this[_0x9941d0(0x224)][_0x9941d0(0x1e2)](_0x35b744);}[_0x478421(0x1e6)](_0x41a7ca){const _0x43816d=_0x478421;this[_0x43816d(0x227)]=_0x41a7ca;}[_0x478421(0x1f0)](_0x43febb){const _0x2d88a3=_0x478421;super[_0x2d88a3(0x1f0)](_0x43febb),this[_0x2d88a3(0x203)][_0x2d88a3(0x217)](this[_0x2d88a3(0x1ed)])||this[_0x2d88a3(0x203)][_0x2d88a3(0x216)](this[_0x2d88a3(0x1ed)],0x0);}[_0x478421(0x21b)](){const _0x28d0ed=_0x478421;this[_0x28d0ed(0x1d9)]&&(super[_0x28d0ed(0x21b)](),this[_0x28d0ed(0x1d8)](!0x0));}[_0x478421(0x225)](_0x4637f2){const _0x2a84ab=_0x478421;super[_0x2a84ab(0x225)](_0x4637f2),this[_0x2a84ab(0x1d8)](!0x1);}[_0x478421(0x21a)](_0x469083){const _0x5edba5=_0x478421;this[_0x5edba5(0x1dd)][_0x5edba5(0x1ea)]=this[_0x5edba5(0x1ef)][_0x5edba5(0x1ea)]=_0x469083;}[_0x478421(0x1d8)](_0x272e4c){const _0x581513=_0x478421;this[_0x581513(0x206)][_0x581513(0x204)]=_0x272e4c;}[_0x478421(0x1d7)]({showApplyButton:_0x52a080,showSuggestButton:_0x1555d5}){const _0x228d70=_0x478421;_0x52a080=_0x52a080&&!this[_0x228d70(0x1de)]&&this[_0x228d70(0x1eb)][_0x228d70(0x1f3)][_0x228d70(0x213)](_0x228d70(0x1fb)),_0x1555d5=_0x1555d5&&this[_0x228d70(0x1eb)][_0x228d70(0x1f3)][_0x228d70(0x213)](_0x228d70(0x1e3)),this[_0x228d70(0x206)][_0x228d70(0x222)]({'showApplyButton':_0x52a080,'showSuggestButton':_0x1555d5});}[_0x478421(0x1fc)](){const _0x5f5c18=_0x478421,_0x3dcc70=new _0x157bff(this[_0x5f5c18(0x211)]);return _0x3dcc70[_0x5f5c18(0x1db)]({'icon':_0x340878,'label':_0x426a56(this[_0x5f5c18(0x211)],_0x5f5c18(0x1fe)),'isVisible':!0x0}),_0x3dcc70['on'](_0x5f5c18(0x1f5),()=>{const _0x1de86b=_0x5f5c18;this[_0x1de86b(0x1e5)](_0x1de86b(0x220));}),_0x3dcc70;}[_0x478421(0x1ec)](){const _0x47cf2c=_0x478421,_0x5839d7=new _0x157bff(this[_0x47cf2c(0x211)]);return _0x5839d7[_0x47cf2c(0x1db)]({'icon':_0x3832c0,'label':_0x426a56(this[_0x47cf2c(0x211)],_0x47cf2c(0x20a)),'isVisible':!0x0}),_0x5839d7['on'](_0x47cf2c(0x1f5),()=>{const _0x373f03=_0x47cf2c;this[_0x373f03(0x1e5)](_0x373f03(0x1fd));}),_0x5839d7;}}class AIChatBalloonToolbarContainerView extends _0x464400{constructor(_0x3b48b1,_0x47afc8){const _0x2ec5cd=_0x478421;super(_0x3b48b1),this[_0x2ec5cd(0x20c)]({'tag':_0x2ec5cd(0x202),'attributes':{'class':[_0x2ec5cd(0x215)]},'children':_0x47afc8});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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]}]});}}
23
+ const _0x3b716f=_0x5379;function _0x4b4a(){const _0x1b2370=['setPromptInputValue','form','isLoading','18wfvFDv','_createPromptCapabilitiesView','_loaderView','setModelList','setContextItemLoading','_modelUnavailableMessageView','removeContextItem','12807dLUqkl','startConversation','div','delegate','value','bindTemplate','clearCurrentContextItems','350236VtCKAH','execute','3376SKWavz','reset','change:isLoading','isDisabled','toggleWebSearch','setReasoning','setWebSearch','ck-ai-chat-controls-disabled','low','clearConversationContextUI','sendUserMessage','toggleReasoning','343HxCslK','_createLoaderView','_createModelUnavailableMessageView','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','setInputPlaceholder','clearConversationContextItems','setIsUploadInProgress','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','setConversationContext','locale','focusPromptInput','disableModelSelector','3jYySOu','_createContextPanelView','setModel','focus','218946nuAnAB','1022769ADdvuz','ck-hidden','selectModel','enableModelSelector','ck-ai-chat-controls','_shouldRestorePromptInputFocus','ck-ai-chat-controls__start-new-chat-button','queryView','isModelAvailable','ck-ai-chat-controls-model-unavailable-message','clearPendingContextUI','188305SadHha','element','fieldView','_promptCapabilitiesView','_contextPanelView','set','setAddContextOptions','238912gMDVWS','addContextItem','bodyCollection','setPlaceholderText','resetMessageInput','contextResourcesSearchInputVisibleFrom','updateResourceState','_createPromptInputView','populateSourceResourceBalloon','abortPromptStream','closeSourceResourceBalloon','_handlePromptInputFocus','590UrbTdg','setTemplate','addContextButtonView','_promptInputView'];_0x4b4a=function(){return _0x1b2370;};return _0x4b4a();}(function(_0x4d30f4,_0x3e15ba){const _0x34e58b=_0x5379,_0x24290d=_0x4d30f4();while(!![]){try{const _0x1590e6=parseInt(_0x34e58b(0x22b))/0x1+parseInt(_0x34e58b(0x218))/0x2+-parseInt(_0x34e58b(0x214))/0x3*(-parseInt(_0x34e58b(0x1fa))/0x4)+-parseInt(_0x34e58b(0x224))/0x5*(parseInt(_0x34e58b(0x1ec))/0x6)+parseInt(_0x34e58b(0x208))/0x7*(-parseInt(_0x34e58b(0x1fc))/0x8)+-parseInt(_0x34e58b(0x1f3))/0x9*(parseInt(_0x34e58b(0x237))/0xa)+-parseInt(_0x34e58b(0x219))/0xb;if(_0x1590e6===_0x3e15ba)break;else _0x24290d['push'](_0x24290d['shift']());}catch(_0x542a7){_0x24290d['push'](_0x24290d['shift']());}}}(_0x4b4a,0x1e9a3));import{ButtonView as _0x40da0b,clickOutsideHandler as _0xdedae8,View as _0x32eeda}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x331c8f}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x5b4703}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x1ae62d,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x12997a}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x34eab9}from'./controls/aichatcontrolsloaderview.js';import{getTranslation as _0x4455a5}from'../../aicore/utils/common-translations.js';import'../../../theme/aichat/aichat-controls.css';import'../../../theme/aichat/aichat-controls/prompt-input.css';import'../../../theme/aichat/aichat-controls/prompt-capabilities.css';import'../../../theme/aichat/aichat-controls/model-unavailable-message.css';import'../../../theme/aichat/aichat-controls/aichat-context-controls.css';import'../../../theme/aichat/aichat-controls/aichat-context-chip.css';import'../../../theme/aichat/aichat-controls/aichat-controls-button.css';import'../../../theme/aichat/aichat-controls/aichat-controls-loader.css';function _0x5379(_0xb7d46b,_0x1208f3){const _0x4b4a92=_0x4b4a();return _0x5379=function(_0x5379b1,_0x20c9bb){_0x5379b1=_0x5379b1-0x1e6;let _0x25081c=_0x4b4a92[_0x5379b1];return _0x25081c;},_0x5379(_0xb7d46b,_0x1208f3);}import'../../../theme/aichat/aichat-controls/aichat-context-controls-balloon-panels.css';export class AIChatControlsView extends _0x32eeda{[_0x3b716f(0x228)];[_0x3b716f(0x1e8)];[_0x3b716f(0x227)];[_0x3b716f(0x1ee)];[_0x3b716f(0x1f1)];[_0x3b716f(0x21e)];constructor(_0x19955b,_0xcede71){const _0x6cd6f7=_0x3b716f;super(_0x19955b),this[_0x6cd6f7(0x228)]=this[_0x6cd6f7(0x215)](_0x19955b,{'bodyCollection':_0xcede71[_0x6cd6f7(0x22d)],'searchInputVisibleFrom':_0xcede71[_0x6cd6f7(0x230)]}),this[_0x6cd6f7(0x1e8)]=this[_0x6cd6f7(0x232)](_0x19955b),this[_0x6cd6f7(0x227)]=this[_0x6cd6f7(0x1ed)](_0x19955b),this[_0x6cd6f7(0x1ee)]=this[_0x6cd6f7(0x209)](_0x19955b),this[_0x6cd6f7(0x1f1)]=this[_0x6cd6f7(0x20a)](_0x19955b),this[_0x6cd6f7(0x21e)]=!0x1,this[_0x6cd6f7(0x1e8)][_0x6cd6f7(0x1f6)](_0x6cd6f7(0x206))['to'](this),this[_0x6cd6f7(0x1ee)][_0x6cd6f7(0x1f6)](_0x6cd6f7(0x234))['to'](this),this[_0x6cd6f7(0x227)][_0x6cd6f7(0x1f6)](_0x6cd6f7(0x200))['to'](this),this[_0x6cd6f7(0x227)][_0x6cd6f7(0x1f6)](_0x6cd6f7(0x207))['to'](this),this[_0x6cd6f7(0x227)][_0x6cd6f7(0x1f6)](_0x6cd6f7(0x21b))['to'](this),this[_0x6cd6f7(0x228)][_0x6cd6f7(0x1f6)](..._0x12997a)['to'](this),this[_0x6cd6f7(0x229)](_0x6cd6f7(0x221),!0x0),this[_0x6cd6f7(0x229)](_0x6cd6f7(0x1ff),!0x1);const _0x51df27=this[_0x6cd6f7(0x1f8)];this[_0x6cd6f7(0x1e6)]({'tag':_0x6cd6f7(0x1ea),'attributes':{'class':['ck',_0x6cd6f7(0x21d),_0x51df27['if'](_0x6cd6f7(0x1ff),_0x6cd6f7(0x203))]},'children':[{'tag':_0x6cd6f7(0x1f5),'attributes':{'class':[_0x51df27['if'](_0x6cd6f7(0x1eb),_0x6cd6f7(0x21a),_0x3ac5bd=>_0x3ac5bd||!this[_0x6cd6f7(0x221)]),_0x51df27['if'](_0x6cd6f7(0x221),_0x6cd6f7(0x21a),_0x3bfd39=>!_0x3bfd39||this[_0x6cd6f7(0x1eb)])]},'children':[this[_0x6cd6f7(0x228)],this[_0x6cd6f7(0x1e8)],this[_0x6cd6f7(0x227)]]},{'tag':_0x6cd6f7(0x1f5),'attributes':{'class':[_0x51df27['if'](_0x6cd6f7(0x1eb),_0x6cd6f7(0x21a),_0x5c3678=>!_0x5c3678)]},'children':[this[_0x6cd6f7(0x1ee)]]},{'tag':_0x6cd6f7(0x1f5),'attributes':{'class':[_0x51df27['if'](_0x6cd6f7(0x221),_0x6cd6f7(0x21a),_0x22710=>_0x22710)]},'children':[this[_0x6cd6f7(0x1f1)]]}]}),_0xdedae8({'emitter':this[_0x6cd6f7(0x1e8)],'activator':()=>this[_0x6cd6f7(0x1eb)],'contextElements':()=>[this[_0x6cd6f7(0x225)]],'callback':()=>{const _0x3c73d6=_0x6cd6f7;this[_0x3c73d6(0x21e)]=!0x1;}}),this['on'](_0x6cd6f7(0x1fe),this[_0x6cd6f7(0x236)],{'priority':_0x6cd6f7(0x204)});}[_0x3b716f(0x215)](_0x49edab,_0x53362e){return new _0x1ae62d(_0x49edab,_0x53362e);}[_0x3b716f(0x232)](_0x55210a){const _0x2da83e=_0x3b716f;return new _0x331c8f(_0x55210a,this[_0x2da83e(0x228)][_0x2da83e(0x1e7)]);}[_0x3b716f(0x1ed)](_0x5d982f){return new _0x5b4703(_0x5d982f);}[_0x3b716f(0x209)](_0x2d76cc){return new _0x34eab9(_0x2d76cc);}[_0x3b716f(0x20a)](_0x32e092){const _0x136175=_0x3b716f,_0x2eee17=new AIChatModelUnavailableMessageView(_0x32e092);return _0x2eee17[_0x136175(0x1f6)](_0x136175(0x1f4))['to'](this),_0x2eee17;}[_0x3b716f(0x236)](_0x53680f,_0x87aaad,_0x2ef975){const _0x1a4c32=_0x3b716f;_0x2ef975?this[_0x1a4c32(0x21e)]=!0x0:this[_0x1a4c32(0x21e)]&&this[_0x1a4c32(0x1e8)][_0x1a4c32(0x217)]();}[_0x3b716f(0x22c)](_0x43378e,_0x4c60f9){const _0x4ef389=_0x3b716f;this[_0x4ef389(0x228)][_0x4ef389(0x22c)](_0x43378e,_0x4c60f9);}[_0x3b716f(0x1f2)](_0x1872f7){const _0x3ce250=_0x3b716f;this[_0x3ce250(0x228)][_0x3ce250(0x1f2)](_0x1872f7);}[_0x3b716f(0x1f0)](_0x39d9fc,_0xaa47ce){const _0x4c216c=_0x3b716f;this[_0x4c216c(0x228)][_0x4c216c(0x1f0)](_0x39d9fc,_0xaa47ce);}[_0x3b716f(0x20e)](_0x3e5a8e){const _0x20e37f=_0x3b716f;this[_0x20e37f(0x1e8)][_0x20e37f(0x20e)](_0x3e5a8e);}[_0x3b716f(0x210)](_0x19b044){const _0x113fcb=_0x3b716f;this[_0x113fcb(0x228)][_0x113fcb(0x210)](_0x19b044);}[_0x3b716f(0x223)](){const _0x5425fa=_0x3b716f;this[_0x5425fa(0x228)][_0x5425fa(0x1f9)]();}[_0x3b716f(0x205)](){const _0x2b2384=_0x3b716f;this[_0x2b2384(0x228)][_0x2b2384(0x20d)]();}[_0x3b716f(0x231)](_0x98dbf0,_0x18e42b,_0x5118c9){const _0x999d61=_0x3b716f;this[_0x999d61(0x228)][_0x999d61(0x231)](_0x98dbf0,_0x18e42b,_0x5118c9);}[_0x3b716f(0x202)](_0x4aee44){const _0x30c899=_0x3b716f;this[_0x30c899(0x227)][_0x30c899(0x202)](_0x4aee44);}[_0x3b716f(0x201)](_0x381c28){const _0x1bcf58=_0x3b716f;this[_0x1bcf58(0x227)][_0x1bcf58(0x201)](_0x381c28);}[_0x3b716f(0x22f)](){const _0x4d35c2=_0x3b716f;this[_0x4d35c2(0x1e8)][_0x4d35c2(0x1fd)]();}[_0x3b716f(0x22a)](_0x4abe1a){const _0x1f697f=_0x3b716f;this[_0x1f697f(0x228)][_0x1f697f(0x22a)](_0x4abe1a);}[_0x3b716f(0x20c)](_0xdee1f4){const _0x4767ed=_0x3b716f;this[_0x4767ed(0x1e8)][_0x4767ed(0x22e)](_0xdee1f4);}[_0x3b716f(0x1ef)](_0x226fee,_0x394fef){const _0x2d30b6=_0x3b716f;this[_0x2d30b6(0x227)][_0x2d30b6(0x1ef)](_0x226fee,_0x394fef);}[_0x3b716f(0x216)](_0x428c2b){const _0x41e76a=_0x3b716f;_0x428c2b?(this[_0x41e76a(0x221)]=!0x0,this[_0x41e76a(0x227)][_0x41e76a(0x216)](_0x428c2b)):this[_0x41e76a(0x221)]=!0x1;}[_0x3b716f(0x21c)](){const _0xec3eee=_0x3b716f;this[_0xec3eee(0x227)][_0xec3eee(0x21c)]();}[_0x3b716f(0x213)](_0x1e4be5){const _0x50cf34=_0x3b716f;this[_0x50cf34(0x227)][_0x50cf34(0x213)](_0x1e4be5);}[_0x3b716f(0x233)](_0x5dfa31,_0x110b9d,_0x3caaa3,_0x4dd8db){const _0xcc0da2=_0x3b716f;this[_0xcc0da2(0x228)][_0xcc0da2(0x233)](_0x5dfa31,_0x110b9d,_0x3caaa3,_0x4dd8db);}[_0x3b716f(0x235)](_0x142500){const _0x3ed1e9=_0x3b716f;this[_0x3ed1e9(0x228)][_0x3ed1e9(0x235)](_0x142500);}[_0x3b716f(0x212)](_0x4469e7=!0x1){const _0x39492c=_0x3b716f;this[_0x39492c(0x1e8)][_0x39492c(0x217)](_0x4469e7);}[_0x3b716f(0x1e9)](_0x40c6ce){const _0x44b93f=_0x3b716f;this[_0x44b93f(0x1e8)][_0x44b93f(0x220)][_0x44b93f(0x226)][_0x44b93f(0x1fd)](),this[_0x44b93f(0x1e8)][_0x44b93f(0x220)][_0x44b93f(0x226)][_0x44b93f(0x1f7)]=_0x40c6ce;}}class AIChatModelUnavailableMessageView extends _0x32eeda{constructor(_0x34102f){const _0x2a1c99=_0x3b716f;super(_0x34102f);const _0x5a6539=new _0x40da0b(_0x34102f);_0x5a6539[_0x2a1c99(0x229)]({'label':_0x4455a5(this[_0x2a1c99(0x211)],_0x2a1c99(0x20b)),'withText':!0x0,'class':[_0x2a1c99(0x21f)],'tooltip':''}),_0x5a6539[_0x2a1c99(0x1f6)](_0x2a1c99(0x1fb))['to'](this,_0x2a1c99(0x1f4)),this[_0x2a1c99(0x1e6)]({'tag':_0x2a1c99(0x1f5),'attributes':{'class':['ck',_0x2a1c99(0x222)]},'children':[{'tag':'p','children':[{'text':_0x4455a5(this[_0x2a1c99(0x211)],_0x2a1c99(0x20f))+'\x20'},_0x5a6539]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x293ee3=_0x57fe;(function(_0x3f5b90,_0x2e28b8){const _0xf2b1c4=_0x57fe,_0xcabff5=_0x3f5b90();while(!![]){try{const _0xd9ef58=-parseInt(_0xf2b1c4(0xf8))/0x1+parseInt(_0xf2b1c4(0x128))/0x2*(parseInt(_0xf2b1c4(0xf7))/0x3)+parseInt(_0xf2b1c4(0xfb))/0x4*(parseInt(_0xf2b1c4(0x133))/0x5)+-parseInt(_0xf2b1c4(0x136))/0x6*(-parseInt(_0xf2b1c4(0x10e))/0x7)+-parseInt(_0xf2b1c4(0x13d))/0x8*(parseInt(_0xf2b1c4(0xfc))/0x9)+-parseInt(_0xf2b1c4(0x131))/0xa*(parseInt(_0xf2b1c4(0x14d))/0xb)+parseInt(_0xf2b1c4(0x141))/0xc;if(_0xd9ef58===_0x2e28b8)break;else _0xcabff5['push'](_0xcabff5['shift']());}catch(_0x508d4a){_0xcabff5['push'](_0xcabff5['shift']());}}}(_0x2ef4,0x59f7d));import{CKEditorError as _0x2d6a28,logWarning as _0x2884e0,scrollAncestorsToShowTarget as _0xd0c89f}from'ckeditor5/src/utils.js';import{View as _0x2d48ed}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x13f727}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x456023}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x10f27a}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x332742}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x9b26e8}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x31dd66}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x7b023a}from'../../aicore/utils/scrollmanager.js';import{AISkeletonView as _0x4780c8,SKELETON_DEFINITIONS as _0x4a71cc}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0xe007e8}from'../../aicore/ui/aispinner.js';import{AIChatFeedCustomElementView as _0xf7269f}from'./feed/aichatfeedcustomelementview.js';function _0x2ef4(){const _0x4c07a9=['isTrackChangesOn','filter','ck-hidden','getItemById','stopAutoScroll','_createSkeletonLoader','find','4413031iRqEuo','custom-element','getItemIds','_bodyCollection','children','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','_setupTemplate','setSuggestionPartActive','stop','isVisible','set','remove','ck-ai-chat__feed__items','aiFeed','updateSources','_createFeedLoader','interaction-header','map','ck-ai-chat__feed','forEach','ai-chat-feed-view-item-not-a-suggestion-item','parentElement','isLoadingSkeletonVisible','ai-chat-feed-view-item-not-a-reply-item','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','updateSuggestionPartState','2710cFxYGq','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','bind','options','scrollToSuggestion','_createLoaderChildren','addItem','clear','element','2537580ttRLtt','hasItem','20UmVGrS','render','div','6oKLbgn','extendTemplate','add','startAutoScroll','setPartActive','destroy','setLoadingMessage','8aLqtXa','createCollection','updateContent','ck-ai-chat__loader','5984640rBeyIs','ai-suggestion-reply','updatePartState','start','locale','updateWebSources','getPartView','ai-chat-feed-view-item-not-found','includes','ck-ai-chat__loader-text','scrollManager','user-message','22AYDrEs','_createFeedItems','ai-reply','bindTemplate','321nEieeb','662040VtTapU','markItemAsDone','delegate','701788cmHgTC','3940749lLytzT','setTemplate','toggleLoadingSkeleton','updateReplyItem','isPending','_createTemplateChildren','loadingMessage','updateSuggestionItem','span','markAsDone','removeItem'];_0x2ef4=function(){return _0x4c07a9;};return _0x2ef4();}function _0x57fe(_0x1fe13a,_0x4c6b69){const _0x2ef403=_0x2ef4();return _0x57fe=function(_0x57fe38,_0x4b9dae){_0x57fe38=_0x57fe38-0xf6;let _0x35a418=_0x2ef403[_0x57fe38];return _0x35a418;},_0x57fe(_0x1fe13a,_0x4c6b69);}import'../../../theme/aichat/aichatfeed.css';export class AIChatFeedView extends _0x2d48ed{[_0x293ee3(0x112)];[_0x293ee3(0x14b)];[_0x293ee3(0x111)];constructor(_0x5522fb,_0x5888ef){const _0x10d1f9=_0x293ee3;super(_0x5522fb),this[_0x10d1f9(0x111)]=_0x5888ef,this[_0x10d1f9(0x118)](_0x10d1f9(0x100),!0x1),this[_0x10d1f9(0x118)](_0x10d1f9(0x102),''),this[_0x10d1f9(0x118)](_0x10d1f9(0x124),!0x1),this[_0x10d1f9(0x118)](_0x10d1f9(0x107),!0x1),this[_0x10d1f9(0x112)]=this[_0x10d1f9(0x13e)](),this[_0x10d1f9(0x112)][_0x10d1f9(0xfa)](..._0x13f727)['to'](this),this[_0x10d1f9(0x114)]();}[_0x293ee3(0x134)](){const _0x5c5656=_0x293ee3;super[_0x5c5656(0x134)](),this[_0x5c5656(0x14b)]=new _0x7b023a(this[_0x5c5656(0x130)]);}[_0x293ee3(0x13b)](){const _0x29faaf=_0x293ee3;super[_0x29faaf(0x13b)](),this[_0x29faaf(0x14b)][_0x29faaf(0x13b)]();}[_0x293ee3(0x12f)](){const _0x2c60c9=_0x293ee3;this[_0x2c60c9(0x112)][_0x2c60c9(0x12f)]();}[_0x293ee3(0x12e)](_0xf8f13a,_0x3b9c6a){const _0x2e6a6f=_0x293ee3;let _0x2a72e6;return _0x2e6a6f(0x14f)===_0xf8f13a?_0x2a72e6=new _0x10f27a(this[_0x2e6a6f(0x145)],_0x3b9c6a,this[_0x2e6a6f(0x111)]):_0x2e6a6f(0x142)===_0xf8f13a?(_0x2a72e6=new _0x456023(this[_0x2e6a6f(0x145)],_0x3b9c6a,this[_0x2e6a6f(0x111)]),_0x2a72e6[_0x2e6a6f(0x12a)](_0x2e6a6f(0x107))['to'](this)):_0x2a72e6=_0x2e6a6f(0x14c)===_0xf8f13a?new _0x332742(this[_0x2e6a6f(0x145)],_0x3b9c6a,this[_0x2e6a6f(0x111)]):_0x2e6a6f(0x11e)===_0xf8f13a?new _0x31dd66(this[_0x2e6a6f(0x145)],_0x3b9c6a):_0x2e6a6f(0x10f)===_0xf8f13a?new _0xf7269f(_0x3b9c6a):new _0x9b26e8(_0x3b9c6a),this[_0x2e6a6f(0x112)][_0x2e6a6f(0x138)](_0x2a72e6),_0x2a72e6;}async[_0x293ee3(0xff)]({id:_0x505517,parsedContent:_0x3172d6,renderingStrategy:_0x36ccdb,abortSignal:_0x51943d}){const _0x438955=_0x293ee3,_0x1c48cb=this[_0x438955(0x10a)](_0x505517);if(!(_0x1c48cb instanceof _0x10f27a))throw new _0x2d6a28(_0x438955(0x125),null,{'itemView':_0x1c48cb,'id':_0x505517,'parsedContent':_0x3172d6});await _0x1c48cb[_0x438955(0x13f)]({'parsedContent':_0x3172d6,'renderingStrategy':_0x36ccdb,'abortSignal':_0x51943d});}async[_0x293ee3(0x146)](_0x2a7016,_0x50deed){const _0x241bd1=_0x293ee3,_0x4328af=this[_0x241bd1(0x10a)](_0x2a7016);if(_0x4328af instanceof _0x456023)_0x4328af[_0x241bd1(0x11c)](_0x50deed);else{if(!(_0x4328af instanceof _0x10f27a))throw new _0x2d6a28(_0x241bd1(0x129),null,{'itemView':_0x4328af,'id':_0x2a7016,'sources':_0x50deed});_0x4328af[_0x241bd1(0x11c)](_0x50deed);}}async[_0x293ee3(0x103)]({id:_0x2b4831,parts:_0x389ea0,renderingStrategy:_0x401dc5,abortSignal:_0x1b454c}){const _0x2321fc=_0x293ee3,_0x2eab2c=this[_0x2321fc(0x10a)](_0x2b4831);if(!(_0x2eab2c instanceof _0x456023))throw new _0x2d6a28(_0x2321fc(0x122),null,{'itemView':_0x2eab2c,'id':_0x2b4831,'parts':_0x389ea0});await _0x2eab2c[_0x2321fc(0x13f)]({'parts':_0x389ea0,'renderingStrategy':_0x401dc5,'abortSignal':_0x1b454c});}[_0x293ee3(0x127)]({id:_0x311bbe,index:_0x510ebd,state:_0x5f42a7}){const _0x3f7362=_0x293ee3,_0x224d06=this[_0x3f7362(0x10a)](_0x311bbe);if(!(_0x224d06 instanceof _0x456023))throw new _0x2d6a28(_0x3f7362(0x122),this,{'id':_0x311bbe});_0x224d06[_0x3f7362(0x143)](_0x510ebd,_0x5f42a7);}[_0x293ee3(0x115)]({id:_0x6c11b,index:_0x178dee,isActive:_0x46fd89}){const _0xa26c11=_0x293ee3,_0x5aad7b=this[_0xa26c11(0x10a)](_0x6c11b);if(!(_0x5aad7b instanceof _0x456023))throw new _0x2d6a28(_0xa26c11(0x122),this,{'id':_0x6c11b});this[_0xa26c11(0x112)][_0xa26c11(0x108)](_0xcf29aa=>_0xcf29aa instanceof _0x456023)[_0xa26c11(0x121)](_0x2a2044=>{const _0x47cd7b=_0xa26c11;_0x2a2044[_0x47cd7b(0x13a)](!0x1);}),_0x5aad7b[_0xa26c11(0x13a)](_0x178dee,_0x46fd89);}[_0x293ee3(0xf9)](_0x4bc5cd){const _0x428000=_0x293ee3;this[_0x428000(0x10a)](_0x4bc5cd)[_0x428000(0x105)]();}[_0x293ee3(0x110)](){const _0x4100f1=_0x293ee3;return this[_0x4100f1(0x112)][_0x4100f1(0x11f)](_0x4c78ec=>_0x4c78ec[_0x4100f1(0x12b)]['id']);}[_0x293ee3(0x106)](_0x2563fe){const _0x18869d=_0x293ee3;this[_0x18869d(0x112)][_0x18869d(0x119)](this[_0x18869d(0x10a)](_0x2563fe));}[_0x293ee3(0x132)](_0x120bb4){const _0x22b493=_0x293ee3;return!!this[_0x22b493(0x112)][_0x22b493(0x10d)](_0x59703c=>_0x59703c[_0x22b493(0x12b)]['id'][_0x22b493(0x149)](_0x120bb4));}[_0x293ee3(0x12c)](_0x499fe6,_0x4bd138){const _0x2c895b=_0x293ee3,_0x4c1ea4=this[_0x2c895b(0x10a)](_0x499fe6);if(!(_0x4c1ea4 instanceof _0x456023))return void _0x2884e0(_0x2c895b(0x113),{'replyId':_0x499fe6,'partIndex':_0x4bd138});const _0x24be84=_0x4c1ea4[_0x2c895b(0x147)](_0x4bd138);_0x24be84?_0xd0c89f(_0x24be84[_0x2c895b(0x130)],0x14,this[_0x2c895b(0x130)][_0x2c895b(0x123)],!0x0,!0x0):_0x2884e0(_0x2c895b(0x126),{'replyId':_0x499fe6,'partIndex':_0x4bd138});}[_0x293ee3(0x114)](){const _0x7dcdc2=_0x293ee3;this[_0x7dcdc2(0xfd)]({'tag':_0x7dcdc2(0x135),'attributes':{'class':['ck',_0x7dcdc2(0x120)]},'children':this[_0x7dcdc2(0x101)]()});}[_0x293ee3(0x101)](){const _0x30b8f0=_0x293ee3,_0x413a06=this[_0x30b8f0(0x10c)]();return[this[_0x30b8f0(0x14e)](),_0x413a06,this[_0x30b8f0(0x11d)]()];}[_0x293ee3(0x10c)](){const _0x33c4b1=_0x293ee3,_0x2cb2f8=new _0x4780c8(this[_0x33c4b1(0x145)],_0x4a71cc[_0x33c4b1(0x11b)]);return _0x2cb2f8[_0x33c4b1(0x137)]({'attributes':{'class':[this[_0x33c4b1(0xf6)]['if'](_0x33c4b1(0x124),_0x33c4b1(0x109),_0x5d7eb0=>!_0x5d7eb0)]}}),_0x2cb2f8;}[_0x293ee3(0x14e)](){const _0x8c145=_0x293ee3,_0x243448=new _0x2d48ed(this[_0x8c145(0x145)]);return _0x243448[_0x8c145(0xfd)]({'tag':_0x8c145(0x135),'attributes':{'class':['ck',_0x8c145(0x11a),this[_0x8c145(0xf6)]['if'](_0x8c145(0x124),_0x8c145(0x109))]},'children':this[_0x8c145(0x112)]}),_0x243448;}[_0x293ee3(0x11d)](){const _0x5ef008=_0x293ee3,_0x344ff3=new _0x2d48ed(this[_0x5ef008(0x145)]);return _0x344ff3[_0x5ef008(0xfd)]({'tag':_0x5ef008(0x135),'attributes':{'class':['ck',_0x5ef008(0x140),this[_0x5ef008(0xf6)]['if'](_0x5ef008(0x100),_0x5ef008(0x109),_0x80a95d=>!_0x80a95d)]},'children':this[_0x5ef008(0x12d)]()}),_0x344ff3;}[_0x293ee3(0x12d)](){const _0x4aaef3=_0x293ee3,_0x355e2f=new _0xe007e8();return _0x355e2f[_0x4aaef3(0x117)]=!0x0,[_0x355e2f,{'tag':_0x4aaef3(0x104),'attributes':{'class':['ck',_0x4aaef3(0x14a)]},'children':[{'text':this[_0x4aaef3(0xf6)]['to'](_0x4aaef3(0x102))}]}];}[_0x293ee3(0x10a)](_0x55945e){const _0x5d66be=_0x293ee3,_0x4214a8=this[_0x5d66be(0x112)][_0x5d66be(0x10d)](_0x3a1fa3=>_0x3a1fa3[_0x5d66be(0x12b)]['id'][_0x5d66be(0x149)](_0x55945e));if(!_0x4214a8)throw new _0x2d6a28(_0x5d66be(0x148),this,{'id':_0x55945e});return _0x4214a8;}[_0x293ee3(0x13c)](_0x55fc1c){const _0x21e3de=_0x293ee3;this[_0x21e3de(0x118)](_0x21e3de(0x102),_0x55fc1c);}[_0x293ee3(0xfe)](_0x3e1716){const _0x196fe4=_0x293ee3;this[_0x196fe4(0x118)](_0x196fe4(0x124),_0x3e1716);}[_0x293ee3(0x139)](){const _0x1d815b=_0x293ee3;this[_0x1d815b(0x14b)][_0x1d815b(0x144)]();}[_0x293ee3(0x10b)](){const _0x5349a6=_0x293ee3;this[_0x5349a6(0x14b)][_0x5349a6(0x116)]();}}
23
+ const _0x3a2681=_0x1c05;(function(_0x103e00,_0x12831e){const _0x273cc5=_0x1c05,_0x5f1077=_0x103e00();while(!![]){try{const _0x438075=parseInt(_0x273cc5(0x204))/0x1+parseInt(_0x273cc5(0x1e0))/0x2*(-parseInt(_0x273cc5(0x1f2))/0x3)+parseInt(_0x273cc5(0x1f6))/0x4+-parseInt(_0x273cc5(0x200))/0x5+-parseInt(_0x273cc5(0x225))/0x6+-parseInt(_0x273cc5(0x20b))/0x7*(parseInt(_0x273cc5(0x207))/0x8)+parseInt(_0x273cc5(0x202))/0x9*(parseInt(_0x273cc5(0x22d))/0xa);if(_0x438075===_0x12831e)break;else _0x5f1077['push'](_0x5f1077['shift']());}catch(_0x2c5f94){_0x5f1077['push'](_0x5f1077['shift']());}}}(_0x4048,0x7b449));import{CKEditorError as _0x13f48e,logWarning as _0x4bc04d,scrollAncestorsToShowTarget as _0x4cb20b}from'ckeditor5/src/utils.js';function _0x1c05(_0x2aba67,_0x36185c){const _0x4048e5=_0x4048();return _0x1c05=function(_0x1c0571,_0x73840f){_0x1c0571=_0x1c0571-0x1e0;let _0x1418c4=_0x4048e5[_0x1c0571];return _0x1418c4;},_0x1c05(_0x2aba67,_0x36185c);}import{View as _0x3cbc44}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x5ab77b}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x887fc7}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x6583ce}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x37ca08}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x5134b5}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x354246}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x59caaa}from'../../aicore/utils/scrollmanager.js';import{AISkeletonView as _0x1be4f1,SKELETON_DEFINITIONS as _0x227905}from'../../aicore/ui/aiskeleton.js';function _0x4048(){const _0x43cd28=['ck-ai-chat__feed','bind','ai-chat-feed-view-item-not-found','isTrackChangesOn','includes','ai-chat-feed-view-item-not-a-reply-item','remove','_createTemplateChildren','aiFeed','div','updateWebSources','isLoadingSkeletonVisible','removeItem','scrollToSuggestion','ck-ai-chat__loader','delegate','markAsDone','3184974gQXbWZ','setPartActive','render','span','toggleLoadingSkeleton','setLoadingMessage','setSuggestionPartActive','user-message','17924770kLBMfw','find','clear','ck-ai-chat__feed__items','_createFeedLoader','destroy','addItem','isVisible','updatePartState','getPartView','children','4SSiasY','updateReplyItem','scrollManager','markItemAsDone','stop','forEach','custom-element','ck-hidden','_bodyCollection','hasItem','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','startAutoScroll','interaction-header','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','updateContent','bindTemplate','createCollection','getItemIds','199869OncdtB','options','_createLoaderChildren','_createSkeletonLoader','1219600VDgGUT','ck-ai-chat__loader-text','_createFeedItems','_setupTemplate','setTemplate','element','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','updateSuggestionItem','ai-chat-feed-view-item-not-a-suggestion-item','updateSuggestionPartState','1166255XUObXQ','getItemById','9IsohYS','parentElement','191298PRJEWP','loadingMessage','start','8ilwOEG','filter','stopAutoScroll','isPending','6205108AAoyhI','extendTemplate','ai-suggestion-reply','set','add','locale','updateSources','ai-reply','map'];_0x4048=function(){return _0x43cd28;};return _0x4048();}import{AISpinnerView as _0x4737a0}from'../../aicore/ui/aispinner.js';import{AIChatFeedCustomElementView as _0x1d9f37}from'./feed/aichatfeedcustomelementview.js';import'../../../theme/aichat/aichatfeed.css';export class AIChatFeedView extends _0x3cbc44{[_0x3a2681(0x237)];[_0x3a2681(0x1e2)];[_0x3a2681(0x1e8)];constructor(_0x3bc1d5,_0x41daf9){const _0x3690dd=_0x3a2681;super(_0x3bc1d5),this[_0x3690dd(0x1e8)]=_0x41daf9,this[_0x3690dd(0x20e)](_0x3690dd(0x20a),!0x1),this[_0x3690dd(0x20e)](_0x3690dd(0x205),''),this[_0x3690dd(0x20e)](_0x3690dd(0x21f),!0x1),this[_0x3690dd(0x20e)](_0x3690dd(0x217),!0x1),this[_0x3690dd(0x237)]=this[_0x3690dd(0x1f0)](),this[_0x3690dd(0x237)][_0x3690dd(0x223)](..._0x5ab77b)['to'](this),this[_0x3690dd(0x1f9)]();}[_0x3a2681(0x227)](){const _0x1a8b7f=_0x3a2681;super[_0x1a8b7f(0x227)](),this[_0x1a8b7f(0x1e2)]=new _0x59caaa(this[_0x1a8b7f(0x1fb)]);}[_0x3a2681(0x232)](){const _0x2f5c78=_0x3a2681;super[_0x2f5c78(0x232)](),this[_0x2f5c78(0x1e2)][_0x2f5c78(0x232)]();}[_0x3a2681(0x22f)](){const _0x4f1ffe=_0x3a2681;this[_0x4f1ffe(0x237)][_0x4f1ffe(0x22f)]();}[_0x3a2681(0x233)](_0xc32480,_0x167c60){const _0x249358=_0x3a2681;let _0x4443a3;return _0x249358(0x212)===_0xc32480?_0x4443a3=new _0x6583ce(this[_0x249358(0x210)],_0x167c60,this[_0x249358(0x1e8)]):_0x249358(0x20d)===_0xc32480?(_0x4443a3=new _0x887fc7(this[_0x249358(0x210)],_0x167c60,this[_0x249358(0x1e8)]),_0x4443a3[_0x249358(0x215)](_0x249358(0x217))['to'](this)):_0x4443a3=_0x249358(0x22c)===_0xc32480?new _0x37ca08(this[_0x249358(0x210)],_0x167c60,this[_0x249358(0x1e8)]):_0x249358(0x1ec)===_0xc32480?new _0x354246(this[_0x249358(0x210)],_0x167c60):_0x249358(0x1e6)===_0xc32480?new _0x1d9f37(_0x167c60):new _0x5134b5(_0x167c60),this[_0x249358(0x237)][_0x249358(0x20f)](_0x4443a3),_0x4443a3;}async[_0x3a2681(0x1e1)]({id:_0x80d43e,parsedContent:_0x3aa552,renderingStrategy:_0x2112b0,abortSignal:_0x423fb8}){const _0x5660cd=_0x3a2681,_0x505f93=this[_0x5660cd(0x201)](_0x80d43e);if(!(_0x505f93 instanceof _0x6583ce))throw new _0x13f48e(_0x5660cd(0x219),null,{'itemView':_0x505f93,'id':_0x80d43e,'parsedContent':_0x3aa552});await _0x505f93[_0x5660cd(0x1ee)]({'parsedContent':_0x3aa552,'renderingStrategy':_0x2112b0,'abortSignal':_0x423fb8});}async[_0x3a2681(0x21e)](_0x10a1c0,_0xf3b403){const _0xb9d022=_0x3a2681,_0x19dff4=this[_0xb9d022(0x201)](_0x10a1c0);if(_0x19dff4 instanceof _0x887fc7)_0x19dff4[_0xb9d022(0x211)](_0xf3b403);else{if(!(_0x19dff4 instanceof _0x6583ce))throw new _0x13f48e(_0xb9d022(0x1ea),null,{'itemView':_0x19dff4,'id':_0x10a1c0,'sources':_0xf3b403});_0x19dff4[_0xb9d022(0x211)](_0xf3b403);}}async[_0x3a2681(0x1fd)]({id:_0x494eb4,parts:_0x314e1e,renderingStrategy:_0x1f4623,abortSignal:_0x3f501b}){const _0x57709b=_0x3a2681,_0x51b08a=this[_0x57709b(0x201)](_0x494eb4);if(!(_0x51b08a instanceof _0x887fc7))throw new _0x13f48e(_0x57709b(0x1fe),null,{'itemView':_0x51b08a,'id':_0x494eb4,'parts':_0x314e1e});await _0x51b08a[_0x57709b(0x1ee)]({'parts':_0x314e1e,'renderingStrategy':_0x1f4623,'abortSignal':_0x3f501b});}[_0x3a2681(0x1ff)]({id:_0x4ba37d,index:_0x55ed65,state:_0x4ab232}){const _0x42fc5b=_0x3a2681,_0x352490=this[_0x42fc5b(0x201)](_0x4ba37d);if(!(_0x352490 instanceof _0x887fc7))throw new _0x13f48e(_0x42fc5b(0x1fe),this,{'id':_0x4ba37d});_0x352490[_0x42fc5b(0x235)](_0x55ed65,_0x4ab232);}[_0x3a2681(0x22b)]({id:_0x5343dd,index:_0x3891b3,isActive:_0xd786c0}){const _0x32999c=_0x3a2681,_0x4f68be=this[_0x32999c(0x201)](_0x5343dd);if(!(_0x4f68be instanceof _0x887fc7))throw new _0x13f48e(_0x32999c(0x1fe),this,{'id':_0x5343dd});this[_0x32999c(0x237)][_0x32999c(0x208)](_0x438934=>_0x438934 instanceof _0x887fc7)[_0x32999c(0x1e5)](_0x4c4de6=>{const _0x44d492=_0x32999c;_0x4c4de6[_0x44d492(0x226)](!0x1);}),_0x4f68be[_0x32999c(0x226)](_0x3891b3,_0xd786c0);}[_0x3a2681(0x1e3)](_0x4e7a6d){const _0x25bfe1=_0x3a2681;this[_0x25bfe1(0x201)](_0x4e7a6d)[_0x25bfe1(0x224)]();}[_0x3a2681(0x1f1)](){const _0x554f46=_0x3a2681;return this[_0x554f46(0x237)][_0x554f46(0x213)](_0x5e6b73=>_0x5e6b73[_0x554f46(0x1f3)]['id']);}[_0x3a2681(0x220)](_0x2e2bd9){const _0x4f4541=_0x3a2681;this[_0x4f4541(0x237)][_0x4f4541(0x21a)](this[_0x4f4541(0x201)](_0x2e2bd9));}[_0x3a2681(0x1e9)](_0x1675f3){const _0x1357e4=_0x3a2681;return!!this[_0x1357e4(0x237)][_0x1357e4(0x22e)](_0x5b2d4d=>_0x5b2d4d[_0x1357e4(0x1f3)]['id'][_0x1357e4(0x218)](_0x1675f3));}[_0x3a2681(0x221)](_0x42e5a5,_0x382e06){const _0x5de7a2=_0x3a2681,_0x552f54=this[_0x5de7a2(0x201)](_0x42e5a5);if(!(_0x552f54 instanceof _0x887fc7))return void _0x4bc04d(_0x5de7a2(0x1fc),{'replyId':_0x42e5a5,'partIndex':_0x382e06});const _0x519500=_0x552f54[_0x5de7a2(0x236)](_0x382e06);_0x519500?_0x4cb20b(_0x519500[_0x5de7a2(0x1fb)],0x14,this[_0x5de7a2(0x1fb)][_0x5de7a2(0x203)],!0x0,!0x0):_0x4bc04d(_0x5de7a2(0x1ed),{'replyId':_0x42e5a5,'partIndex':_0x382e06});}[_0x3a2681(0x1f9)](){const _0x1ae8e8=_0x3a2681;this[_0x1ae8e8(0x1fa)]({'tag':_0x1ae8e8(0x21d),'attributes':{'class':['ck',_0x1ae8e8(0x214)]},'children':this[_0x1ae8e8(0x21b)]()});}[_0x3a2681(0x21b)](){const _0x12b6a7=_0x3a2681,_0x5ee27b=this[_0x12b6a7(0x1f5)]();return[this[_0x12b6a7(0x1f8)](),_0x5ee27b,this[_0x12b6a7(0x231)]()];}[_0x3a2681(0x1f5)](){const _0x2aa0e8=_0x3a2681,_0x22fc4a=new _0x1be4f1(this[_0x2aa0e8(0x210)],_0x227905[_0x2aa0e8(0x21c)]);return _0x22fc4a[_0x2aa0e8(0x20c)]({'attributes':{'class':[this[_0x2aa0e8(0x1ef)]['if'](_0x2aa0e8(0x21f),_0x2aa0e8(0x1e7),_0x9f9c9a=>!_0x9f9c9a)]}}),_0x22fc4a;}[_0x3a2681(0x1f8)](){const _0x80b2b6=_0x3a2681,_0x1a630b=new _0x3cbc44(this[_0x80b2b6(0x210)]);return _0x1a630b[_0x80b2b6(0x1fa)]({'tag':_0x80b2b6(0x21d),'attributes':{'class':['ck',_0x80b2b6(0x230),this[_0x80b2b6(0x1ef)]['if'](_0x80b2b6(0x21f),_0x80b2b6(0x1e7))]},'children':this[_0x80b2b6(0x237)]}),_0x1a630b;}[_0x3a2681(0x231)](){const _0x47c726=_0x3a2681,_0xd95d66=new _0x3cbc44(this[_0x47c726(0x210)]);return _0xd95d66[_0x47c726(0x1fa)]({'tag':_0x47c726(0x21d),'attributes':{'class':['ck',_0x47c726(0x222),this[_0x47c726(0x1ef)]['if'](_0x47c726(0x20a),_0x47c726(0x1e7),_0x11c0c3=>!_0x11c0c3)]},'children':this[_0x47c726(0x1f4)]()}),_0xd95d66;}[_0x3a2681(0x1f4)](){const _0x101bdf=_0x3a2681,_0x356a3=new _0x4737a0();return _0x356a3[_0x101bdf(0x234)]=!0x0,[_0x356a3,{'tag':_0x101bdf(0x228),'attributes':{'class':['ck',_0x101bdf(0x1f7)]},'children':[{'text':this[_0x101bdf(0x1ef)]['to'](_0x101bdf(0x205))}]}];}[_0x3a2681(0x201)](_0x11a263){const _0x3ff145=_0x3a2681,_0xf1738e=this[_0x3ff145(0x237)][_0x3ff145(0x22e)](_0x456bc6=>_0x456bc6[_0x3ff145(0x1f3)]['id'][_0x3ff145(0x218)](_0x11a263));if(!_0xf1738e)throw new _0x13f48e(_0x3ff145(0x216),this,{'id':_0x11a263});return _0xf1738e;}[_0x3a2681(0x22a)](_0x5a078a){const _0xc5dbee=_0x3a2681;this[_0xc5dbee(0x20e)](_0xc5dbee(0x205),_0x5a078a);}[_0x3a2681(0x229)](_0x2db0f3){const _0x10e53a=_0x3a2681;this[_0x10e53a(0x20e)](_0x10e53a(0x21f),_0x2db0f3);}[_0x3a2681(0x1eb)](){const _0x3bf9cc=_0x3a2681;this[_0x3bf9cc(0x1e2)][_0x3bf9cc(0x206)]();}[_0x3a2681(0x209)](){const _0xa100cb=_0x3a2681;this[_0xa100cb(0x1e2)][_0xa100cb(0x1e4)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x163fa5=_0x30f3;function _0x4136(){const _0x342ab5=['73735REeBoi','27FHVvTG','ck-ai-chat__start-conversation','execute','ck-ai-header\x20ck-ai-header_chat','141346zqrzuR','AI_CHAT_LABEL_NEW_CHAT','conversationStartButton','children','fire','1103931vPoxmm','add','startConversation','AI_CHAT_HEADING','_createStartConversationButton','resizeButton','40094aVhGUm','102PgpLqf','215537HovrGK','394156gdGewr','32flZJzT','218130sJdxmm','set','locale','isMaximized'];_0x4136=function(){return _0x342ab5;};return _0x4136();}(function(_0x3cfbe4,_0x4e5d46){const _0x5036a5=_0x30f3,_0x5dd978=_0x3cfbe4();while(!![]){try{const _0x9a17d0=parseInt(_0x5036a5(0xb1))/0x1+parseInt(_0x5036a5(0xa3))/0x2*(-parseInt(_0x5036a5(0xad))/0x3)+-parseInt(_0x5036a5(0xa6))/0x4+-parseInt(_0x5036a5(0xac))/0x5*(-parseInt(_0x5036a5(0xa4))/0x6)+parseInt(_0x5036a5(0xa5))/0x7*(-parseInt(_0x5036a5(0xa7))/0x8)+parseInt(_0x5036a5(0xb6))/0x9+parseInt(_0x5036a5(0xa8))/0xa;if(_0x9a17d0===_0x4e5d46)break;else _0x5dd978['push'](_0x5dd978['shift']());}catch(_0x3ee5ce){_0x5dd978['push'](_0x5dd978['shift']());}}}(_0x4136,0x20cf7));import{ButtonView as _0xc34c58,FormHeaderView as _0x80e259}from'ckeditor5/src/ui.js';import{IconPlus as _0x46cba0,IconAIChat as _0x3a917c}from'ckeditor5/src/icons.js';import{getTranslation as _0x4c9548}from'../../aicore/utils/common-translations.js';import{createResizeButton as _0x1b0ee4}from'../../aicore/utils/createresizebutton.js';import'../../../theme/common/aiheader.css';function _0x30f3(_0x2799d8,_0x52f258){const _0x4136b3=_0x4136();return _0x30f3=function(_0x30f345,_0x1afb59){_0x30f345=_0x30f345-0xa1;let _0x5ccd5e=_0x4136b3[_0x30f345];return _0x5ccd5e;},_0x30f3(_0x2799d8,_0x52f258);}export class AIChatHeaderView extends _0x80e259{[_0x163fa5(0xb3)];[_0x163fa5(0xa2)];constructor(_0x3de4f8,_0x4a23c){const _0x1972fb=_0x163fa5;super(_0x3de4f8,{'label':_0x4c9548(_0x3de4f8,_0x1972fb(0xb9)),'class':_0x1972fb(0xb0),'icon':_0x3a917c}),this[_0x1972fb(0xa9)](_0x1972fb(0xab),!0x1),this[_0x1972fb(0xb3)]=this[_0x1972fb(0xa1)](_0x3de4f8),this[_0x1972fb(0xb4)][_0x1972fb(0xb7)](this[_0x1972fb(0xb3)]),_0x4a23c&&(this[_0x1972fb(0xa2)]=_0x1b0ee4(_0x3de4f8,this),this[_0x1972fb(0xb4)][_0x1972fb(0xb7)](this[_0x1972fb(0xa2)]));}[_0x163fa5(0xa1)](_0xd4e16d){const _0x417af3=_0x163fa5,_0x58d8e6=new _0xc34c58(_0xd4e16d);return _0x58d8e6[_0x417af3(0xa9)]({'label':_0x4c9548(this[_0x417af3(0xaa)],_0x417af3(0xb2)),'withText':!0x0,'icon':_0x46cba0,'class':_0x417af3(0xae)}),_0x58d8e6['on'](_0x417af3(0xaf),()=>{const _0x30df72=_0x417af3;this[_0x30df72(0xb5)](_0x30df72(0xb8));}),_0x58d8e6;}}
23
+ const _0xf023cd=_0x2e57;(function(_0x49846e,_0x845ec1){const _0x3e3ca1=_0x2e57,_0x4f6e6f=_0x49846e();while(!![]){try{const _0x447463=-parseInt(_0x3e3ca1(0xd3))/0x1+parseInt(_0x3e3ca1(0xd0))/0x2+parseInt(_0x3e3ca1(0xc6))/0x3*(-parseInt(_0x3e3ca1(0xbd))/0x4)+parseInt(_0x3e3ca1(0xc9))/0x5*(parseInt(_0x3e3ca1(0xc8))/0x6)+-parseInt(_0x3e3ca1(0xd1))/0x7+-parseInt(_0x3e3ca1(0xce))/0x8+parseInt(_0x3e3ca1(0xc1))/0x9;if(_0x447463===_0x845ec1)break;else _0x4f6e6f['push'](_0x4f6e6f['shift']());}catch(_0x448e45){_0x4f6e6f['push'](_0x4f6e6f['shift']());}}}(_0x14ec,0x57b1c));function _0x2e57(_0x44b399,_0x1ca01c){const _0x14ecf8=_0x14ec();return _0x2e57=function(_0x2e5712,_0x1eec03){_0x2e5712=_0x2e5712-0xbd;let _0x379168=_0x14ecf8[_0x2e5712];return _0x379168;},_0x2e57(_0x44b399,_0x1ca01c);}import{ButtonView as _0x2ce0e9,FormHeaderView as _0x321fff}from'ckeditor5/src/ui.js';import{IconPlus as _0x36ead6,IconAIChat as _0x59dc91}from'ckeditor5/src/icons.js';import{getTranslation as _0x5738d8}from'../../aicore/utils/common-translations.js';import{createResizeButton as _0x4d31aa}from'../../aicore/utils/createresizebutton.js';function _0x14ec(){const _0x530454=['4098960Lwvggx','ck-ai-chat__start-conversation','548808JyKRLc','4396721erTNiX','resizeButton','667741jqMgzb','isMaximized','212PPIKdu','add','startConversation','children','14023431FzLRer','execute','AI_CHAT_HEADING','fire','_createStartConversationButton','16098OFdjaD','AI_CHAT_LABEL_NEW_CHAT','45870PirmYp','405EjurzO','ck-ai-header\x20ck-ai-header_chat','conversationStartButton','set','locale'];_0x14ec=function(){return _0x530454;};return _0x14ec();}import'../../../theme/common/aiheader.css';export class AIChatHeaderView extends _0x321fff{[_0xf023cd(0xcb)];[_0xf023cd(0xd2)];constructor(_0x573dca,_0x148ada){const _0x4cb2a4=_0xf023cd;super(_0x573dca,{'label':_0x5738d8(_0x573dca,_0x4cb2a4(0xc3)),'class':_0x4cb2a4(0xca),'icon':_0x59dc91}),this[_0x4cb2a4(0xcc)](_0x4cb2a4(0xd4),!0x1),this[_0x4cb2a4(0xcb)]=this[_0x4cb2a4(0xc5)](_0x573dca),this[_0x4cb2a4(0xc0)][_0x4cb2a4(0xbe)](this[_0x4cb2a4(0xcb)]),_0x148ada&&(this[_0x4cb2a4(0xd2)]=_0x4d31aa(_0x573dca,this),this[_0x4cb2a4(0xc0)][_0x4cb2a4(0xbe)](this[_0x4cb2a4(0xd2)]));}[_0xf023cd(0xc5)](_0x53aaab){const _0x71dcea=_0xf023cd,_0x1ca974=new _0x2ce0e9(_0x53aaab);return _0x1ca974[_0x71dcea(0xcc)]({'label':_0x5738d8(this[_0x71dcea(0xcd)],_0x71dcea(0xc7)),'withText':!0x0,'icon':_0x36ead6,'class':_0x71dcea(0xcf)}),_0x1ca974['on'](_0x71dcea(0xc2),()=>{const _0x5c4895=_0x71dcea;this[_0x5c4895(0xc4)](_0x5c4895(0xbf));}),_0x1ca974;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x27c277=_0x3c0f;(function(_0x5a0675,_0x2373c1){var _0x136112=_0x3c0f,_0x1cefe6=_0x5a0675();while(!![]){try{var _0x523a43=-parseInt(_0x136112(0x101))/0x1+-parseInt(_0x136112(0x102))/0x2+parseInt(_0x136112(0x105))/0x3+parseInt(_0x136112(0x107))/0x4+-parseInt(_0x136112(0xf6))/0x5+parseInt(_0x136112(0x100))/0x6*(parseInt(_0x136112(0xf8))/0x7)+-parseInt(_0x136112(0xf7))/0x8*(-parseInt(_0x136112(0xf9))/0x9);if(_0x523a43===_0x2373c1)break;else _0x1cefe6['push'](_0x1cefe6['shift']());}catch(_0x2a27c9){_0x1cefe6['push'](_0x1cefe6['shift']());}}}(_0x490b,0x2c6ae));import{View as _0x303157,BodyCollection as _0x2a7285}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x3b154d}from'../utils/eventnames.js';function _0x490b(){var _0x39a722=['_bodyCollection','ck-reset_all','347829HMsotO','div','326000wnoXZH','populateSourceResourceBalloon','chatDisclaimer','setTemplate','delegate','ck-rounded-corners','chatFeed','showResizeButton','destroy','ck-ai-chat','chatControls','220335vanrMR','184xyDzXr','7ylIFEO','84447hJKagw','contextResourcesSearchInputVisibleFrom','chatHeader','attachToDom','closeSourceResourceBalloon','detachFromDom','uiLanguageDirection','1005846PNDBUB','182996hOZULc','343792HoQaRJ'];_0x490b=function(){return _0x39a722;};return _0x490b();}import{AIChatFeedView as _0x1fae71}from'./aichatfeedview.js';function _0x3c0f(_0x1ce941,_0x515a0c){var _0x490bf0=_0x490b();return _0x3c0f=function(_0x3c0f4d,_0x4d1f41){_0x3c0f4d=_0x3c0f4d-0xf6;var _0x3b00db=_0x490bf0[_0x3c0f4d];return _0x3b00db;},_0x3c0f(_0x1ce941,_0x515a0c);}import{AIChatControlsView as _0x5db48e}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x2a61ac}from'./aichatheaderview.js';import{AIDisclaimerView as _0x40938d}from'../../aicore/ui/aidisclaimerview.js';import'../../../theme/common/ainotification.css';import'../../../theme/common/aibutton.css';import'../../../theme/common/aitrackchanges.css';export class AIChatView extends _0x303157{[_0x27c277(0xfb)];[_0x27c277(0x10d)];[_0x27c277(0x111)];[_0x27c277(0x109)];[_0x27c277(0x103)];constructor(_0x3b95cd,_0x299089){var _0x1ac62b=_0x27c277;super(_0x3b95cd),this[_0x1ac62b(0x103)]=new _0x2a7285(_0x3b95cd),this[_0x1ac62b(0x103)][_0x1ac62b(0xfc)](),this[_0x1ac62b(0xfb)]=new _0x2a61ac(_0x3b95cd,_0x299089[_0x1ac62b(0x10e)]),this[_0x1ac62b(0xfb)][_0x1ac62b(0x10b)](..._0x3b154d)['to'](this),this[_0x1ac62b(0x10d)]=new _0x1fae71(_0x3b95cd,this[_0x1ac62b(0x103)]),this[_0x1ac62b(0x10d)][_0x1ac62b(0x10b)](..._0x3b154d)['to'](this),this[_0x1ac62b(0x111)]=new _0x5db48e(_0x3b95cd,{'bodyCollection':this[_0x1ac62b(0x103)],'contextResourcesSearchInputVisibleFrom':_0x299089[_0x1ac62b(0xfa)]}),this[_0x1ac62b(0x111)][_0x1ac62b(0x10b)](..._0x3b154d)['to'](this),this[_0x1ac62b(0x109)]=new _0x40938d(_0x3b95cd),this[_0x1ac62b(0x10a)]({'tag':_0x1ac62b(0x106),'attributes':{'class':['ck',_0x1ac62b(0x104),_0x1ac62b(0x110),_0x1ac62b(0x10c)],'dir':_0x3b95cd[_0x1ac62b(0xff)]},'children':[this[_0x1ac62b(0xfb)],this[_0x1ac62b(0x10d)],this[_0x1ac62b(0x111)],this[_0x1ac62b(0x109)]]});}[_0x27c277(0x108)](_0x492d47,_0x4cfe64,_0x5e94f4,_0x4b4400){var _0x537eae=_0x27c277;this[_0x537eae(0x111)][_0x537eae(0x108)](_0x492d47,_0x4cfe64,_0x5e94f4,_0x4b4400);}[_0x27c277(0xfd)](_0xb07dc3){var _0x3d78d5=_0x27c277;this[_0x3d78d5(0x111)][_0x3d78d5(0xfd)](_0xb07dc3);}[_0x27c277(0x10f)](){var _0x3b3cac=_0x27c277;this[_0x3b3cac(0x103)][_0x3b3cac(0xfe)](),super[_0x3b3cac(0x10f)]();}}
23
+ function _0xc0b7(_0x5c5081,_0x1bbb32){var _0x3c059e=_0x3c05();return _0xc0b7=function(_0xc0b747,_0x13d12c){_0xc0b747=_0xc0b747-0xaf;var _0x5eb4ad=_0x3c059e[_0xc0b747];return _0x5eb4ad;},_0xc0b7(_0x5c5081,_0x1bbb32);}var _0x29316e=_0xc0b7;(function(_0x32c858,_0x26ff21){var _0x1861e4=_0xc0b7,_0x2df6cd=_0x32c858();while(!![]){try{var _0x2d762a=-parseInt(_0x1861e4(0xc2))/0x1+-parseInt(_0x1861e4(0xb4))/0x2+-parseInt(_0x1861e4(0xc3))/0x3*(-parseInt(_0x1861e4(0xbb))/0x4)+-parseInt(_0x1861e4(0xbf))/0x5*(parseInt(_0x1861e4(0xca))/0x6)+-parseInt(_0x1861e4(0xc1))/0x7*(parseInt(_0x1861e4(0xaf))/0x8)+parseInt(_0x1861e4(0xc0))/0x9+-parseInt(_0x1861e4(0xb3))/0xa*(-parseInt(_0x1861e4(0xba))/0xb);if(_0x2d762a===_0x26ff21)break;else _0x2df6cd['push'](_0x2df6cd['shift']());}catch(_0x4c88d8){_0x2df6cd['push'](_0x2df6cd['shift']());}}}(_0x3c05,0x8d617));import{View as _0x35d8cc,BodyCollection as _0x3ca9df}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x563161}from'../utils/eventnames.js';import{AIChatFeedView as _0x5d6bdb}from'./aichatfeedview.js';import{AIChatControlsView as _0x5dcde8}from'./aichatcontrolsview.js';function _0x3c05(){var _0x1f895a=['10ilxWFW','209494DDSnvG','_bodyCollection','chatControls','destroy','chatFeed','contextResourcesSearchInputVisibleFrom','13240777VaJglo','343576vaRGWL','populateSourceResourceBalloon','closeSourceResourceBalloon','ck-reset_all','3305sksHDD','2576601dzgDBn','7FHkzzR','348458ugbyEy','21uQNeXc','ck-rounded-corners','chatDisclaimer','attachToDom','ck-ai-chat','showResizeButton','uiLanguageDirection','9462MwUOBu','setTemplate','div','132456oBqBzi','detachFromDom','chatHeader','delegate'];_0x3c05=function(){return _0x1f895a;};return _0x3c05();}import{AIChatHeaderView as _0x463358}from'./aichatheaderview.js';import{AIDisclaimerView as _0x5836d7}from'../../aicore/ui/aidisclaimerview.js';import'../../../theme/common/ainotification.css';import'../../../theme/common/aibutton.css';import'../../../theme/common/aitrackchanges.css';export class AIChatView extends _0x35d8cc{[_0x29316e(0xb1)];[_0x29316e(0xb8)];[_0x29316e(0xb6)];[_0x29316e(0xc5)];[_0x29316e(0xb5)];constructor(_0x5c2d0b,_0x1f805e){var _0x48fa5b=_0x29316e;super(_0x5c2d0b),this[_0x48fa5b(0xb5)]=new _0x3ca9df(_0x5c2d0b),this[_0x48fa5b(0xb5)][_0x48fa5b(0xc6)](),this[_0x48fa5b(0xb1)]=new _0x463358(_0x5c2d0b,_0x1f805e[_0x48fa5b(0xc8)]),this[_0x48fa5b(0xb1)][_0x48fa5b(0xb2)](..._0x563161)['to'](this),this[_0x48fa5b(0xb8)]=new _0x5d6bdb(_0x5c2d0b,this[_0x48fa5b(0xb5)]),this[_0x48fa5b(0xb8)][_0x48fa5b(0xb2)](..._0x563161)['to'](this),this[_0x48fa5b(0xb6)]=new _0x5dcde8(_0x5c2d0b,{'bodyCollection':this[_0x48fa5b(0xb5)],'contextResourcesSearchInputVisibleFrom':_0x1f805e[_0x48fa5b(0xb9)]}),this[_0x48fa5b(0xb6)][_0x48fa5b(0xb2)](..._0x563161)['to'](this),this[_0x48fa5b(0xc5)]=new _0x5836d7(_0x5c2d0b),this[_0x48fa5b(0xcb)]({'tag':_0x48fa5b(0xcc),'attributes':{'class':['ck',_0x48fa5b(0xbe),_0x48fa5b(0xc7),_0x48fa5b(0xc4)],'dir':_0x5c2d0b[_0x48fa5b(0xc9)]},'children':[this[_0x48fa5b(0xb1)],this[_0x48fa5b(0xb8)],this[_0x48fa5b(0xb6)],this[_0x48fa5b(0xc5)]]});}[_0x29316e(0xbc)](_0xa64dec,_0x4ab2de,_0x100a70,_0x3a1539){var _0x245a2a=_0x29316e;this[_0x245a2a(0xb6)][_0x245a2a(0xbc)](_0xa64dec,_0x4ab2de,_0x100a70,_0x3a1539);}[_0x29316e(0xbd)](_0x2973ad){var _0x343094=_0x29316e;this[_0x343094(0xb6)][_0x343094(0xbd)](_0x2973ad);}[_0x29316e(0xb7)](){var _0x48b01b=_0x29316e;this[_0x48b01b(0xb5)][_0x48b01b(0xb0)](),super[_0x48b01b(0xb7)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x42d560=_0x21c6;(function(_0x2358f8,_0xe7d416){const _0x132f68=_0x21c6,_0x406603=_0x2358f8();while(!![]){try{const _0x4b6b53=parseInt(_0x132f68(0x1cd))/0x1*(-parseInt(_0x132f68(0x1ce))/0x2)+-parseInt(_0x132f68(0x1f1))/0x3+parseInt(_0x132f68(0x1b0))/0x4+-parseInt(_0x132f68(0x1ae))/0x5*(-parseInt(_0x132f68(0x1f8))/0x6)+-parseInt(_0x132f68(0x1d4))/0x7*(-parseInt(_0x132f68(0x1e7))/0x8)+-parseInt(_0x132f68(0x1d6))/0x9*(-parseInt(_0x132f68(0x1ec))/0xa)+parseInt(_0x132f68(0x1f3))/0xb*(-parseInt(_0x132f68(0x1eb))/0xc);if(_0x4b6b53===_0xe7d416)break;else _0x406603['push'](_0x406603['shift']());}catch(_0x9fcb2c){_0x406603['push'](_0x406603['shift']());}}}(_0x203c,0x7d134));function _0x203c(){const _0x2382ab=['className','_calculateContainerWidth','_intersectionObserver','button','cssClasses','createElement','_createContainerElements','+\x201','some','includes','_config','_visibleChips','innerWidth','from','documentElement','77267AZDbRL','2FjEfKj','parentElement','body','_isContainerVisible','hideBalloonPanel','_createCalculationContainer','375277lGmThE','_parentView','794628NqjwzD','appendChild','undefined','hidden','tagName','_createShowMoreButton','remove','overflowContainer','pin','right','textContent','reorganizeChips','display','getBoundingClientRect','0px','toLowerCase','isConnected','24fPWvgl','element','clear','pointerEvents','8124KZOrfF','20IiSZWs','_createShowMoreBalloonPanelView','_createMockButton','_restoreAncestorVisibility','block','83142WrpGGf','destroy','5973imnReP','visible\x20!important','slice','isOn','execute','78AIYkeb','_updateBalloonContent','showBalloonPanel','overflowChips','classList','push','-9999px','_updateOverflowUI','_distributeChips','pop','isVisible','setContainerElement','_calculateOverflowInContainer','_handleShowMoreButtonClick','opacity','absolute','render','rowDetectionTolerance','_showMoreButtonView','none','forEach','_setupVisibilityObserver','visible','_targetContainer','_repinBalloonPanel','width','_testButtonFit','getComputedStyle','extendTemplate','controlsButton','disconnect','height','length','innerHeight','children','showMoreLabelPrefix','hide','innerHTML','cloneNode','_locale','300px','_applyCalculationStyles','position','ck-calculation-container','top','50px','_applyOverflowResults','div','boxSizing','visibility','show','_overflowChips','_containerElement','_showMoreBalloonPanelView','abs','clientHeight','label','calculationContainer','_checkAndHandleOverflow','set','_ancestorsToRestore','showMoreButtonView','_bodyCollection','isIntersecting','block\x20!important','add','_pendingCalculation','querySelector','left','auto','clientWidth','offsetWidth','bottom','_makeAncestorsVisible','border-box','maxVisibleRows','140515HWxEpw','disableAnimationOnEnter','1128576IHXPlK','observe','showMoreButton','showMoreBalloon','style','.ck-ai-chat','_renderChipsAndCountRows','filter','content','_findTargetContainer','_updateShowMoreButtonVisibility','setTemplate','zIndex','_createShowMoreButtonView'];_0x203c=function(){return _0x2382ab;};return _0x203c();}function _0x21c6(_0x328dd3,_0x57c022){const _0x203c01=_0x203c();return _0x21c6=function(_0x21c63d,_0x21e186){_0x21c63d=_0x21c63d-0x199;let _0x4a090b=_0x203c01[_0x21c63d];return _0x4a090b;},_0x21c6(_0x328dd3,_0x57c022);}import{View as _0x53f370,BalloonPanelView as _0x7c1411,ButtonView as _0x183d49,clickOutsideHandler as _0x3351fc}from'ckeditor5/src/ui.js';import{Collection as _0x4ad47c}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},an=_0x42d560(0x220);export class AIChatChipsOverflowManager{[_0x42d560(0x21f)];[_0x42d560(0x1c8)];[_0x42d560(0x1c9)];[_0x42d560(0x22b)];[_0x42d560(0x20a)]=null;[_0x42d560(0x22d)]=null;[_0x42d560(0x22c)]=null;[_0x42d560(0x1a0)];[_0x42d560(0x1d5)]=null;[_0x42d560(0x1c0)]=null;[_0x42d560(0x1a4)]=!0x1;constructor(_0x193bdc,_0x2a70c1,_0x5d0681,_0x16d8cf,_0x3f4261){const _0x1bcc5f=_0x42d560;this[_0x1bcc5f(0x21f)]=_0x193bdc,this[_0x1bcc5f(0x1c9)]=_0x2a70c1,this[_0x1bcc5f(0x1c8)]={...hn,..._0x5d0681,'cssClasses':{'controlsButton':'','calculationContainer':_0x1bcc5f(0x223),..._0x5d0681[_0x1bcc5f(0x1c2)]}},this[_0x1bcc5f(0x22b)]=new _0x4ad47c(),this[_0x1bcc5f(0x1a0)]=_0x16d8cf,this[_0x1bcc5f(0x1d5)]=_0x3f4261||null;}[_0x42d560(0x203)](_0x12927f){const _0x24c972=_0x42d560;this[_0x24c972(0x1c0)]&&(this[_0x24c972(0x1c0)][_0x24c972(0x216)](),this[_0x24c972(0x1c0)]=null),this[_0x24c972(0x22c)]=_0x12927f,this[_0x24c972(0x20d)]();}get[_0x42d560(0x19f)](){const _0x5d4c29=_0x42d560;return this[_0x5d4c29(0x20a)];}get[_0x42d560(0x1fb)](){const _0x37d70d=_0x42d560;return this[_0x37d70d(0x22b)];}[_0x42d560(0x1e1)](){requestAnimationFrame(()=>{const _0x22ecea=_0x21c6;this[_0x22ecea(0x19c)]();});}[_0x42d560(0x1fa)](){const _0x2a0d87=_0x42d560;this[_0x2a0d87(0x20a)]&&this[_0x2a0d87(0x22d)]&&(this[_0x2a0d87(0x1f9)](),this[_0x2a0d87(0x20a)][_0x2a0d87(0x1f6)]=!0x0,this[_0x2a0d87(0x22d)][_0x2a0d87(0x22a)](),this[_0x2a0d87(0x22d)][_0x2a0d87(0x1de)]({'target':this[_0x2a0d87(0x20a)][_0x2a0d87(0x1e8)],'limiter':document[_0x2a0d87(0x1a5)](_0x2a0d87(0x1b5))}));}[_0x42d560(0x1d2)](){const _0xd39e1a=_0x42d560;this[_0xd39e1a(0x20a)]&&this[_0xd39e1a(0x22d)]&&(this[_0xd39e1a(0x20a)][_0xd39e1a(0x1f6)]=!0x1,this[_0xd39e1a(0x22d)][_0xd39e1a(0x21c)]());}[_0x42d560(0x1e9)](){const _0x76cc2a=_0x42d560;this[_0x76cc2a(0x22b)][_0x76cc2a(0x1e9)](),this[_0x76cc2a(0x1d2)](),this[_0x76cc2a(0x1ba)](),this[_0x76cc2a(0x20a)]&&(this[_0x76cc2a(0x20a)][_0x76cc2a(0x19a)]=''),this[_0x76cc2a(0x22d)]&&this[_0x76cc2a(0x22d)][_0x76cc2a(0x1b8)][_0x76cc2a(0x1e9)]();}[_0x42d560(0x1f2)](){const _0x3adfaa=_0x42d560;this[_0x3adfaa(0x1c0)]&&(this[_0x3adfaa(0x1c0)][_0x3adfaa(0x216)](),this[_0x3adfaa(0x1c0)]=null),this[_0x3adfaa(0x20a)]&&(this[_0x3adfaa(0x20a)][_0x3adfaa(0x1f2)](),this[_0x3adfaa(0x20a)]=null),this[_0x3adfaa(0x22d)]&&(this[_0x3adfaa(0x22d)][_0x3adfaa(0x1f2)](),this[_0x3adfaa(0x22d)]=null);}[_0x42d560(0x19c)](){const _0x38b244=_0x42d560;if(!this[_0x38b244(0x22c)])return;if(!this[_0x38b244(0x1d1)]())return void(this[_0x38b244(0x1a4)]=!0x0);this[_0x38b244(0x1a4)]=!0x1;const _0x55aff2=[...this[_0x38b244(0x1c9)],...this[_0x38b244(0x22b)]],_0x3fe7af=this[_0x38b244(0x1d3)](),_0x3f500e=this[_0x38b244(0x204)](_0x3fe7af,_0x55aff2),_0x3b2e86=_0x3fe7af[_0x38b244(0x19e)];_0x3b2e86&&this[_0x38b244(0x1ef)](_0x3b2e86),_0x3fe7af[_0x38b244(0x1dc)](),this[_0x38b244(0x226)](_0x55aff2,_0x3f500e);}[_0x42d560(0x1db)](){const _0x17c724=_0x42d560;this[_0x17c724(0x20a)]=this[_0x17c724(0x1bd)](),this[_0x17c724(0x22d)]=this[_0x17c724(0x1ed)](),this[_0x17c724(0x20a)][_0x17c724(0x208)](),this[_0x17c724(0x22c)][_0x17c724(0x1d7)](this[_0x17c724(0x20a)][_0x17c724(0x1e8)]),this[_0x17c724(0x20a)]['on'](_0x17c724(0x1f7),()=>{const _0x49fd14=_0x17c724;this[_0x49fd14(0x205)]();}),_0x3351fc({'emitter':this[_0x17c724(0x22d)],'contextElements':[this[_0x17c724(0x22d)][_0x17c724(0x1e8)],this[_0x17c724(0x20a)][_0x17c724(0x1e8)]],'callback':()=>this[_0x17c724(0x1d2)](),'activator':()=>this[_0x17c724(0x20a)][_0x17c724(0x1f6)]});}[_0x42d560(0x1bd)](){const _0x368ac8=_0x42d560,_0x314a6c=new _0x183d49(this[_0x368ac8(0x21f)]);_0x314a6c[_0x368ac8(0x19d)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x418d58=[this[_0x368ac8(0x1c8)][_0x368ac8(0x1c2)][_0x368ac8(0x1b2)]];return this[_0x368ac8(0x1c8)][_0x368ac8(0x1c2)][_0x368ac8(0x215)]&&_0x418d58[_0x368ac8(0x1fd)](this[_0x368ac8(0x1c8)][_0x368ac8(0x1c2)][_0x368ac8(0x215)]),_0x314a6c[_0x368ac8(0x214)]({'attributes':{'class':_0x418d58}}),_0x314a6c;}[_0x42d560(0x1ed)](){const _0x45e2e7=_0x42d560,_0x4e65e1=new _0x7c1411(this[_0x45e2e7(0x21f)]);return _0x4e65e1[_0x45e2e7(0x214)]({'attributes':{'class':this[_0x45e2e7(0x1c8)][_0x45e2e7(0x1c2)][_0x45e2e7(0x1b3)]}}),this[_0x45e2e7(0x1a0)][_0x45e2e7(0x1a3)](_0x4e65e1),_0x4e65e1;}[_0x42d560(0x1f9)](){const _0x3b0f51=_0x42d560;if(this[_0x3b0f51(0x22d)]&&(this[_0x3b0f51(0x22d)][_0x3b0f51(0x1b8)][_0x3b0f51(0x1e9)](),this[_0x3b0f51(0x22b)][_0x3b0f51(0x218)]>0x0)){this[_0x3b0f51(0x22b)][_0x3b0f51(0x20c)](_0x2530b8=>{const _0x4b2bba=_0x3b0f51;_0x2530b8[_0x4b2bba(0x1af)]();});const _0x22b968=new _0x53f370(this[_0x3b0f51(0x21f)]);_0x22b968[_0x3b0f51(0x1bb)]({'tag':_0x3b0f51(0x227),'attributes':{'class':this[_0x3b0f51(0x1c8)][_0x3b0f51(0x1c2)][_0x3b0f51(0x1dd)]},'children':this[_0x3b0f51(0x22b)]}),this[_0x3b0f51(0x22d)][_0x3b0f51(0x1b8)][_0x3b0f51(0x1a3)](_0x22b968);}}[_0x42d560(0x205)](){const _0x2bd791=_0x42d560;this[_0x2bd791(0x20a)][_0x2bd791(0x1f6)]?this[_0x2bd791(0x1d2)]():this[_0x2bd791(0x1fa)]();}[_0x42d560(0x1ba)](){const _0x2accb9=_0x42d560,_0xace7b5=this[_0x2accb9(0x22b)][_0x2accb9(0x218)]>0x0;this[_0x2accb9(0x20a)]?.[_0x2accb9(0x1e8)]&&(this[_0x2accb9(0x20a)][_0x2accb9(0x1e8)][_0x2accb9(0x1b4)][_0x2accb9(0x1e2)]=_0xace7b5?'':_0x2accb9(0x20b));}[_0x42d560(0x210)](){const _0xa50baf=_0x42d560;this[_0xa50baf(0x20a)]?.[_0xa50baf(0x1f6)]&&this[_0xa50baf(0x22d)]?.[_0xa50baf(0x202)]&&this[_0xa50baf(0x20a)][_0xa50baf(0x1e8)]&&this[_0xa50baf(0x22d)][_0xa50baf(0x1de)]({'target':this[_0xa50baf(0x20a)][_0xa50baf(0x1e8)],'limiter':document[_0xa50baf(0x1a5)](_0xa50baf(0x1b5))});}[_0x42d560(0x1b9)](_0x2a0fdc){const _0x139544=_0x42d560,_0x303bcd=this[_0x139544(0x22c)]?.[_0x139544(0x1da)][_0x139544(0x1e5)]()||_0x139544(0x227),_0x463fd5=this[_0x139544(0x22c)]?.[_0x139544(0x1fc)];if(_0x463fd5){const _0x19347b=_0x463fd5[0x0]||'',_0x3096f3=_0x2a0fdc[_0x139544(0x1a5)]('.'+_0x19347b),_0x2a2ed7=_0x2a0fdc[_0x139544(0x1a5)](_0x303bcd);return _0x3096f3||_0x2a2ed7||_0x2a0fdc;}return _0x2a0fdc[_0x139544(0x1a5)](_0x303bcd)||_0x2a0fdc;}[_0x42d560(0x1bf)](){const _0x5535fc=_0x42d560,_0x4c1a3a=this[_0x5535fc(0x1d5)]?.[_0x5535fc(0x1e8)]||this[_0x5535fc(0x22c)];if(!_0x4c1a3a)return an;const _0x3d3596=window[_0x5535fc(0x213)](_0x4c1a3a)[_0x5535fc(0x211)];if(_0x5535fc(0x1a7)===_0x3d3596||_0x5535fc(0x1e4)===_0x3d3596||!_0x3d3596){const _0x4e4a95=_0x4c1a3a[_0x5535fc(0x1cf)];if(_0x4e4a95){const _0x47e472=window[_0x5535fc(0x213)](_0x4e4a95);return _0x5535fc(0x1a7)!==_0x47e472[_0x5535fc(0x211)]?_0x47e472[_0x5535fc(0x211)]:an;}return an;}return _0x3d3596;}[_0x42d560(0x221)](_0x1af5bd,_0xadff38){const _0x191159=_0x42d560;this[_0x191159(0x1c8)][_0x191159(0x1c2)][_0x191159(0x19b)]&&_0x1af5bd[_0x191159(0x1fc)][_0x191159(0x1a3)](this[_0x191159(0x1c8)][_0x191159(0x1c2)][_0x191159(0x19b)]),_0x1af5bd[_0x191159(0x1b4)][_0x191159(0x211)]=_0xadff38,_0x1af5bd[_0x191159(0x1b4)][_0x191159(0x222)]=_0x191159(0x207),_0x1af5bd[_0x191159(0x1b4)][_0x191159(0x224)]=_0x191159(0x1fe),_0x1af5bd[_0x191159(0x1b4)][_0x191159(0x1a6)]=_0x191159(0x1fe),_0x1af5bd[_0x191159(0x1b4)][_0x191159(0x206)]='0',_0x1af5bd[_0x191159(0x1b4)][_0x191159(0x1ea)]=_0x191159(0x20b),_0x1af5bd[_0x191159(0x1b4)][_0x191159(0x1bc)]='-1',_0x1af5bd[_0x191159(0x1b4)][_0x191159(0x229)]=_0x191159(0x1f4),_0x1af5bd[_0x191159(0x1b4)][_0x191159(0x1e2)]=_0x191159(0x1a2),_0x1af5bd[_0x191159(0x1b4)][_0x191159(0x228)]=_0x191159(0x1ac);}[_0x42d560(0x1ef)](_0x1ff2ad){const _0x2cd56f=_0x42d560;_0x1ff2ad[_0x2cd56f(0x20c)](({element:_0x7367c0,originalDisplay:_0x458d83,originalVisibility:_0x1b2eba})=>{const _0x1edeed=_0x2cd56f;_0x7367c0[_0x1edeed(0x1b4)][_0x1edeed(0x1e2)]=_0x458d83,_0x7367c0[_0x1edeed(0x1b4)][_0x1edeed(0x229)]=_0x1b2eba;});}[_0x42d560(0x1ab)](_0x2640e7){const _0x370d0c=_0x42d560,_0x23b719=[];let _0x3d21a7=_0x2640e7;for(;_0x3d21a7&&_0x3d21a7!==document[_0x370d0c(0x1d0)];){const _0x339f19=window[_0x370d0c(0x213)](_0x3d21a7);_0x370d0c(0x20b)!==_0x339f19[_0x370d0c(0x1e2)]&&_0x370d0c(0x1d9)!==_0x339f19[_0x370d0c(0x229)]||(_0x23b719[_0x370d0c(0x1fd)]({'element':_0x3d21a7,'originalDisplay':_0x3d21a7[_0x370d0c(0x1b4)][_0x370d0c(0x1e2)],'originalVisibility':_0x3d21a7[_0x370d0c(0x1b4)][_0x370d0c(0x229)]}),_0x3d21a7[_0x370d0c(0x1b4)][_0x370d0c(0x1e2)]=_0x370d0c(0x1f0),_0x3d21a7[_0x370d0c(0x1b4)][_0x370d0c(0x229)]=_0x370d0c(0x20e)),_0x3d21a7=_0x3d21a7[_0x370d0c(0x1cf)];}return _0x23b719;}[_0x42d560(0x1c4)](){const _0x9176cb=_0x42d560;let _0x20940f,_0x10d934;return this[_0x9176cb(0x1d5)]?.[_0x9176cb(0x1e8)]?(_0x20940f=this[_0x9176cb(0x1d5)][_0x9176cb(0x1e8)][_0x9176cb(0x21e)](!0x0),_0x10d934=this[_0x9176cb(0x1b9)](_0x20940f)):(_0x20940f=document[_0x9176cb(0x1c3)](_0x9176cb(0x227)),_0x10d934=_0x20940f),{'calculationContainer':_0x20940f,'targetContainer':_0x10d934};}[_0x42d560(0x1d3)](){const _0x2d25e4=_0x42d560,{calculationContainer:_0x4bc6c3,targetContainer:_0x4a864c}=this[_0x2d25e4(0x1c4)](),_0x537341=this[_0x2d25e4(0x1bf)]();this[_0x2d25e4(0x221)](_0x4bc6c3,_0x537341);const _0x44427d=this[_0x2d25e4(0x1d5)]?.[_0x2d25e4(0x1e8)]||this[_0x2d25e4(0x22c)],_0x13c7b3=_0x44427d?.[_0x2d25e4(0x1cf)];_0x13c7b3?_0x13c7b3[_0x2d25e4(0x1d7)](_0x4bc6c3):document[_0x2d25e4(0x1d0)][_0x2d25e4(0x1d7)](_0x4bc6c3),_0x4bc6c3[_0x2d25e4(0x20f)]=_0x4a864c;const _0x571242=this[_0x2d25e4(0x1ab)](_0x13c7b3||null);return _0x4bc6c3[_0x2d25e4(0x1a9)],_0x4bc6c3[_0x2d25e4(0x19e)]=_0x571242,_0x4bc6c3;}[_0x42d560(0x204)](_0x184692,_0x5addde){const _0x3385dc=_0x42d560,_0x2d702b=_0x184692[_0x3385dc(0x20f)]||_0x184692,_0x4fbd44=[],{rowCount:_0x254980}=this[_0x3385dc(0x1b6)](_0x2d702b,_0x5addde);if(_0x254980<=this[_0x3385dc(0x1c8)][_0x3385dc(0x1ad)])return _0x4fbd44;const _0x2de62e=_0x5addde[_0x3385dc(0x1f5)]();for(;_0x2de62e[_0x3385dc(0x218)]>0x0;){if(this[_0x3385dc(0x212)](_0x184692,_0x2d702b,_0x2de62e)){const _0xf91938=_0x5addde[_0x3385dc(0x1b7)](_0xb7fb4f=>!_0x2de62e[_0x3385dc(0x1c7)](_0xb7fb4f));_0x4fbd44[_0x3385dc(0x1fd)](..._0xf91938);break;}if(!_0x2de62e[_0x3385dc(0x201)]())break;}return _0x4fbd44;}[_0x42d560(0x1b6)](_0x3dcd00,_0x38d01c){const _0x522669=_0x42d560;_0x3dcd00[_0x522669(0x21d)]='',_0x38d01c[_0x522669(0x20c)](_0x6fafa3=>{const _0x4c442c=_0x522669;if(_0x6fafa3[_0x4c442c(0x1e8)]){const _0x444dee=_0x6fafa3[_0x4c442c(0x1e8)][_0x4c442c(0x21e)](!0x0);_0x3dcd00[_0x4c442c(0x1d7)](_0x444dee);}}),_0x3dcd00[_0x522669(0x1a9)];const _0x369573=_0x3dcd00[_0x522669(0x21a)],_0xac025d=[];return Array[_0x522669(0x1cb)](_0x369573)[_0x522669(0x20c)](_0x11da22=>{const _0x554a20=_0x522669,_0x549cc=_0x11da22[_0x554a20(0x1e3)]()[_0x554a20(0x224)];_0xac025d[_0x554a20(0x1c6)](_0x24cb87=>Math[_0x554a20(0x22e)](_0x24cb87-_0x549cc)<this[_0x554a20(0x1c8)][_0x554a20(0x209)])||_0xac025d[_0x554a20(0x1fd)](_0x549cc);}),{'rowCount':_0xac025d[_0x522669(0x218)]};}[_0x42d560(0x1ee)](){const _0x1ceceb=_0x42d560,_0x846bc6=document[_0x1ceceb(0x1c3)](_0x1ceceb(0x1c1));return _0x846bc6[_0x1ceceb(0x1be)]=this[_0x1ceceb(0x1c8)][_0x1ceceb(0x1c2)][_0x1ceceb(0x1b2)],this[_0x1ceceb(0x1c8)][_0x1ceceb(0x1c2)][_0x1ceceb(0x215)]&&_0x846bc6[_0x1ceceb(0x1fc)][_0x1ceceb(0x1a3)](this[_0x1ceceb(0x1c8)][_0x1ceceb(0x1c2)][_0x1ceceb(0x215)]),_0x846bc6[_0x1ceceb(0x1e0)]=_0x1ceceb(0x1c5),_0x846bc6;}[_0x42d560(0x212)](_0x31e441,_0x529fe4,_0x2ea0c0){const _0x38b71c=_0x42d560;this[_0x38b71c(0x1b6)](_0x529fe4,_0x2ea0c0);const _0x22c275=this[_0x38b71c(0x1ee)]();_0x31e441[_0x38b71c(0x1d7)](_0x22c275),_0x31e441[_0x38b71c(0x1a9)];const _0x29c469=[..._0x529fe4[_0x38b71c(0x21a)],_0x22c275],_0x4f71a7=[];_0x29c469[_0x38b71c(0x20c)](_0x28effd=>{const _0x245006=_0x38b71c,_0x3d2a2e=_0x28effd[_0x245006(0x1e3)]()[_0x245006(0x224)];_0x4f71a7[_0x245006(0x1c6)](_0x4ad0c2=>Math[_0x245006(0x22e)](_0x4ad0c2-_0x3d2a2e)<this[_0x245006(0x1c8)][_0x245006(0x209)])||_0x4f71a7[_0x245006(0x1fd)](_0x3d2a2e);});const _0x157070=_0x4f71a7[_0x38b71c(0x218)];return _0x22c275[_0x38b71c(0x1dc)](),_0x157070<=this[_0x38b71c(0x1c8)][_0x38b71c(0x1ad)];}[_0x42d560(0x200)](_0x167050,_0x3117e0){const _0x24dda0=_0x42d560;this[_0x24dda0(0x1c9)][_0x24dda0(0x1e9)](),this[_0x24dda0(0x22b)][_0x24dda0(0x1e9)](),_0x167050[_0x24dda0(0x20c)](_0x6e1ec7=>{const _0x141bcc=_0x24dda0;_0x3117e0[_0x141bcc(0x1c7)](_0x6e1ec7)?this[_0x141bcc(0x22b)][_0x141bcc(0x1a3)](_0x6e1ec7):this[_0x141bcc(0x1c9)][_0x141bcc(0x1a3)](_0x6e1ec7);});}[_0x42d560(0x1ff)](_0x1f0cd6){const _0x223688=_0x42d560;if(_0x1f0cd6>0x0&&!this[_0x223688(0x20a)]&&this[_0x223688(0x1db)](),_0x1f0cd6>0x0&&this[_0x223688(0x20a)]){const _0x1bedce=''+this[_0x223688(0x1c8)][_0x223688(0x21b)]+(_0x1f0cd6<0x63?_0x1f0cd6:'99');this[_0x223688(0x20a)][_0x223688(0x19a)]=_0x1bedce;}this[_0x223688(0x1f9)](),this[_0x223688(0x1ba)](),this[_0x223688(0x210)]();}[_0x42d560(0x226)](_0x275015,_0x2b772d){const _0x166aab=_0x42d560;this[_0x166aab(0x200)](_0x275015,_0x2b772d),this[_0x166aab(0x1ff)](_0x2b772d[_0x166aab(0x218)]);}[_0x42d560(0x20d)](){const _0x59391e=_0x42d560;this[_0x59391e(0x22c)]&&_0x59391e(0x1d8)!=typeof IntersectionObserver&&(this[_0x59391e(0x1c0)]=new IntersectionObserver(_0x115b28=>{const _0x265075=_0x59391e;_0x115b28[0x0][_0x265075(0x1a1)]&&this[_0x265075(0x1a4)]&&requestAnimationFrame(()=>{const _0x45ea6d=_0x265075;this[_0x45ea6d(0x19c)]();});},{'threshold':0.01,'rootMargin':_0x59391e(0x225)}),this[_0x59391e(0x1c0)][_0x59391e(0x1b1)](this[_0x59391e(0x22c)]));}[_0x42d560(0x1d1)](){const _0x31b7ef=_0x42d560;if(!this[_0x31b7ef(0x22c)])return!0x1;if(!this[_0x31b7ef(0x22c)][_0x31b7ef(0x1e6)])return!0x1;const _0x37e4a8=this[_0x31b7ef(0x22c)][_0x31b7ef(0x1e3)]();if(0x0===_0x37e4a8[_0x31b7ef(0x211)]||0x0===_0x37e4a8[_0x31b7ef(0x217)])return!0x1;const _0x6cf4f8=window[_0x31b7ef(0x219)]||document[_0x31b7ef(0x1cc)][_0x31b7ef(0x199)],_0x430406=window[_0x31b7ef(0x1ca)]||document[_0x31b7ef(0x1cc)][_0x31b7ef(0x1a8)],_0x21d21f=0xc8;return _0x37e4a8[_0x31b7ef(0x1aa)]>=-0xc8&&_0x37e4a8[_0x31b7ef(0x224)]<=_0x6cf4f8+_0x21d21f&&_0x37e4a8[_0x31b7ef(0x1df)]>=-0xc8&&_0x37e4a8[_0x31b7ef(0x1a6)]<=_0x430406+_0x21d21f;}}
23
+ function _0x3b24(_0x597fef,_0x375f9e){const _0x5c8330=_0x5c83();return _0x3b24=function(_0x3b241c,_0x24a2a8){_0x3b241c=_0x3b241c-0x1bf;let _0x195418=_0x5c8330[_0x3b241c];return _0x195418;},_0x3b24(_0x597fef,_0x375f9e);}const _0x1e0839=_0x3b24;(function(_0x11a722,_0x5d6798){const _0x1d966f=_0x3b24,_0x1a22ca=_0x11a722();while(!![]){try{const _0x262221=parseInt(_0x1d966f(0x206))/0x1+-parseInt(_0x1d966f(0x22a))/0x2*(-parseInt(_0x1d966f(0x1fe))/0x3)+-parseInt(_0x1d966f(0x22c))/0x4*(parseInt(_0x1d966f(0x23b))/0x5)+-parseInt(_0x1d966f(0x1fa))/0x6*(-parseInt(_0x1d966f(0x223))/0x7)+parseInt(_0x1d966f(0x202))/0x8*(-parseInt(_0x1d966f(0x1ce))/0x9)+-parseInt(_0x1d966f(0x1c4))/0xa+parseInt(_0x1d966f(0x207))/0xb;if(_0x262221===_0x5d6798)break;else _0x1a22ca['push'](_0x1a22ca['shift']());}catch(_0x4f4983){_0x1a22ca['push'](_0x1a22ca['shift']());}}}(_0x5c83,0xda535));import{View as _0x28ca34,BalloonPanelView as _0x6506e2,ButtonView as _0x197e7e,clickOutsideHandler as _0x473ccd}from'ckeditor5/src/ui.js';import{Collection as _0x1e35d2}from'ckeditor5/src/utils.js';const wn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},dn=_0x1e0839(0x21b);export class AIChatChipsOverflowManager{[_0x1e0839(0x22e)];[_0x1e0839(0x1f5)];[_0x1e0839(0x238)];[_0x1e0839(0x22f)];[_0x1e0839(0x247)]=null;[_0x1e0839(0x1c3)]=null;[_0x1e0839(0x1c7)]=null;[_0x1e0839(0x1fb)];[_0x1e0839(0x230)]=null;[_0x1e0839(0x20e)]=null;[_0x1e0839(0x23d)]=!0x1;constructor(_0x18d93b,_0x217a1c,_0x2cb34e,_0x20787d,_0x57cb4d){const _0xcee302=_0x1e0839;this[_0xcee302(0x22e)]=_0x18d93b,this[_0xcee302(0x238)]=_0x217a1c,this[_0xcee302(0x1f5)]={...wn,..._0x2cb34e,'cssClasses':{'controlsButton':'','calculationContainer':_0xcee302(0x1dc),..._0x2cb34e[_0xcee302(0x245)]}},this[_0xcee302(0x22f)]=new _0x1e35d2(),this[_0xcee302(0x1fb)]=_0x20787d,this[_0xcee302(0x230)]=_0x57cb4d||null;}[_0x1e0839(0x221)](_0x4803ac){const _0x438697=_0x1e0839;this[_0x438697(0x20e)]&&(this[_0x438697(0x20e)][_0x438697(0x24b)](),this[_0x438697(0x20e)]=null),this[_0x438697(0x1c7)]=_0x4803ac,this[_0x438697(0x239)]();}get[_0x1e0839(0x1bf)](){const _0x1f560f=_0x1e0839;return this[_0x1f560f(0x247)];}get[_0x1e0839(0x1d8)](){const _0xb0f9d5=_0x1e0839;return this[_0xb0f9d5(0x22f)];}[_0x1e0839(0x1ef)](){requestAnimationFrame(()=>{const _0x3175b4=_0x3b24;this[_0x3175b4(0x213)]();});}[_0x1e0839(0x1d9)](){const _0x93305c=_0x1e0839;this[_0x93305c(0x247)]&&this[_0x93305c(0x1c3)]&&(this[_0x93305c(0x21c)](),this[_0x93305c(0x247)][_0x93305c(0x250)]=!0x0,this[_0x93305c(0x1c3)][_0x93305c(0x1e7)](),this[_0x93305c(0x1c3)][_0x93305c(0x225)]({'target':this[_0x93305c(0x247)][_0x93305c(0x1ff)],'limiter':document[_0x93305c(0x1f1)](_0x93305c(0x1d0))}));}[_0x1e0839(0x23a)](){const _0x40de16=_0x1e0839;this[_0x40de16(0x247)]&&this[_0x40de16(0x1c3)]&&(this[_0x40de16(0x247)][_0x40de16(0x250)]=!0x1,this[_0x40de16(0x1c3)][_0x40de16(0x1c9)]());}[_0x1e0839(0x1da)](){const _0x11ce81=_0x1e0839;this[_0x11ce81(0x22f)][_0x11ce81(0x1da)](),this[_0x11ce81(0x23a)](),this[_0x11ce81(0x1fc)](),this[_0x11ce81(0x247)]&&(this[_0x11ce81(0x247)][_0x11ce81(0x251)]=''),this[_0x11ce81(0x1c3)]&&this[_0x11ce81(0x1c3)][_0x11ce81(0x236)][_0x11ce81(0x1da)]();}[_0x1e0839(0x1d3)](){const _0x53fdb2=_0x1e0839;this[_0x53fdb2(0x20e)]&&(this[_0x53fdb2(0x20e)][_0x53fdb2(0x24b)](),this[_0x53fdb2(0x20e)]=null),this[_0x53fdb2(0x247)]&&(this[_0x53fdb2(0x247)][_0x53fdb2(0x1d3)](),this[_0x53fdb2(0x247)]=null),this[_0x53fdb2(0x1c3)]&&(this[_0x53fdb2(0x1c3)][_0x53fdb2(0x1d3)](),this[_0x53fdb2(0x1c3)]=null);}[_0x1e0839(0x213)](){const _0x1e9721=_0x1e0839;if(!this[_0x1e9721(0x1c7)])return;if(!this[_0x1e9721(0x20b)]())return void(this[_0x1e9721(0x23d)]=!0x0);this[_0x1e9721(0x23d)]=!0x1;const _0x3e6b97=[...this[_0x1e9721(0x238)],...this[_0x1e9721(0x22f)]],_0x2e1c8f=this[_0x1e9721(0x1d1)](),_0x486e95=this[_0x1e9721(0x20a)](_0x2e1c8f,_0x3e6b97),_0x4aaa1b=_0x2e1c8f[_0x1e9721(0x252)];_0x4aaa1b&&this[_0x1e9721(0x1e8)](_0x4aaa1b),_0x2e1c8f[_0x1e9721(0x1ec)](),this[_0x1e9721(0x219)](_0x3e6b97,_0x486e95);}[_0x1e0839(0x226)](){const _0x1746a5=_0x1e0839;this[_0x1746a5(0x247)]=this[_0x1746a5(0x24f)](),this[_0x1746a5(0x1c3)]=this[_0x1746a5(0x1ed)](),this[_0x1746a5(0x247)][_0x1746a5(0x1cb)](),this[_0x1746a5(0x1c7)][_0x1746a5(0x1de)](this[_0x1746a5(0x247)][_0x1746a5(0x1ff)]),this[_0x1746a5(0x247)]['on'](_0x1746a5(0x21f),()=>{const _0x2e33c5=_0x1746a5;this[_0x2e33c5(0x241)]();}),_0x473ccd({'emitter':this[_0x1746a5(0x1c3)],'contextElements':[this[_0x1746a5(0x1c3)][_0x1746a5(0x1ff)],this[_0x1746a5(0x247)][_0x1746a5(0x1ff)]],'callback':()=>this[_0x1746a5(0x23a)](),'activator':()=>this[_0x1746a5(0x247)][_0x1746a5(0x250)]});}[_0x1e0839(0x24f)](){const _0x484cba=_0x1e0839,_0x356aac=new _0x197e7e(this[_0x484cba(0x22e)]);_0x356aac[_0x484cba(0x216)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x5703b9=[this[_0x484cba(0x1f5)][_0x484cba(0x245)][_0x484cba(0x1eb)]];return this[_0x484cba(0x1f5)][_0x484cba(0x245)][_0x484cba(0x240)]&&_0x5703b9[_0x484cba(0x1c8)](this[_0x484cba(0x1f5)][_0x484cba(0x245)][_0x484cba(0x240)]),_0x356aac[_0x484cba(0x237)]({'attributes':{'class':_0x5703b9}}),_0x356aac;}[_0x1e0839(0x1ed)](){const _0x17d2b8=_0x1e0839,_0x27d384=new _0x6506e2(this[_0x17d2b8(0x22e)]);return _0x27d384[_0x17d2b8(0x237)]({'attributes':{'class':this[_0x17d2b8(0x1f5)][_0x17d2b8(0x245)][_0x17d2b8(0x1e4)]}}),this[_0x17d2b8(0x1fb)][_0x17d2b8(0x21e)](_0x27d384),_0x27d384;}[_0x1e0839(0x21c)](){const _0x3c61ce=_0x1e0839;if(this[_0x3c61ce(0x1c3)]&&(this[_0x3c61ce(0x1c3)][_0x3c61ce(0x236)][_0x3c61ce(0x1da)](),this[_0x3c61ce(0x22f)][_0x3c61ce(0x1d7)]>0x0)){this[_0x3c61ce(0x22f)][_0x3c61ce(0x1c5)](_0x709e0=>{const _0x273824=_0x3c61ce;_0x709e0[_0x273824(0x24e)]();});const _0x34c371=new _0x28ca34(this[_0x3c61ce(0x22e)]);_0x34c371[_0x3c61ce(0x231)]({'tag':_0x3c61ce(0x1e0),'attributes':{'class':this[_0x3c61ce(0x1f5)][_0x3c61ce(0x245)][_0x3c61ce(0x201)]},'children':this[_0x3c61ce(0x22f)]}),this[_0x3c61ce(0x1c3)][_0x3c61ce(0x236)][_0x3c61ce(0x21e)](_0x34c371);}}[_0x1e0839(0x241)](){const _0x3c09cd=_0x1e0839;this[_0x3c09cd(0x247)][_0x3c09cd(0x250)]?this[_0x3c09cd(0x23a)]():this[_0x3c09cd(0x1d9)]();}[_0x1e0839(0x1fc)](){const _0x15eea0=_0x1e0839,_0x1ceb89=this[_0x15eea0(0x22f)][_0x15eea0(0x1d7)]>0x0;this[_0x15eea0(0x247)]?.[_0x15eea0(0x1ff)]&&(this[_0x15eea0(0x247)][_0x15eea0(0x1ff)][_0x15eea0(0x218)][_0x15eea0(0x1e2)]=_0x1ceb89?'':_0x15eea0(0x1f6));}[_0x1e0839(0x1d6)](){const _0x51bdc2=_0x1e0839;this[_0x51bdc2(0x247)]?.[_0x51bdc2(0x250)]&&this[_0x51bdc2(0x1c3)]?.[_0x51bdc2(0x1d4)]&&this[_0x51bdc2(0x247)][_0x51bdc2(0x1ff)]&&this[_0x51bdc2(0x1c3)][_0x51bdc2(0x225)]({'target':this[_0x51bdc2(0x247)][_0x51bdc2(0x1ff)],'limiter':document[_0x51bdc2(0x1f1)](_0x51bdc2(0x1d0))});}[_0x1e0839(0x227)](_0x1f16b9){const _0x49f1cd=_0x1e0839,_0x75277=this[_0x49f1cd(0x1c7)]?.[_0x49f1cd(0x1c6)][_0x49f1cd(0x24a)]()||_0x49f1cd(0x1e0),_0x4893dc=this[_0x49f1cd(0x1c7)]?.[_0x49f1cd(0x24d)];if(_0x4893dc){const _0x3b63d7=_0x4893dc[0x0]||'',_0x427765=_0x1f16b9[_0x49f1cd(0x1f1)]('.'+_0x3b63d7),_0x2fa1b4=_0x1f16b9[_0x49f1cd(0x1f1)](_0x75277);return _0x427765||_0x2fa1b4||_0x1f16b9;}return _0x1f16b9[_0x49f1cd(0x1f1)](_0x75277)||_0x1f16b9;}[_0x1e0839(0x229)](){const _0x3ec85f=_0x1e0839,_0x58852d=this[_0x3ec85f(0x230)]?.[_0x3ec85f(0x1ff)]||this[_0x3ec85f(0x1c7)];if(!_0x58852d)return dn;const _0x5d9653=window[_0x3ec85f(0x235)](_0x58852d)[_0x3ec85f(0x214)];if(_0x3ec85f(0x1e1)===_0x5d9653||_0x3ec85f(0x1c2)===_0x5d9653||!_0x5d9653){const _0x3f8f15=_0x58852d[_0x3ec85f(0x1cf)];if(_0x3f8f15){const _0x5f04b0=window[_0x3ec85f(0x235)](_0x3f8f15);return _0x3ec85f(0x1e1)!==_0x5f04b0[_0x3ec85f(0x214)]?_0x5f04b0[_0x3ec85f(0x214)]:dn;}return dn;}return _0x5d9653;}[_0x1e0839(0x220)](_0x53e15e,_0x3c7987){const _0x34347a=_0x1e0839;this[_0x34347a(0x1f5)][_0x34347a(0x245)][_0x34347a(0x210)]&&_0x53e15e[_0x34347a(0x24d)][_0x34347a(0x21e)](this[_0x34347a(0x1f5)][_0x34347a(0x245)][_0x34347a(0x210)]),_0x53e15e[_0x34347a(0x218)][_0x34347a(0x214)]=_0x3c7987,_0x53e15e[_0x34347a(0x218)][_0x34347a(0x1df)]=_0x34347a(0x23f),_0x53e15e[_0x34347a(0x218)][_0x34347a(0x1db)]=_0x34347a(0x1fd),_0x53e15e[_0x34347a(0x218)][_0x34347a(0x203)]=_0x34347a(0x1fd),_0x53e15e[_0x34347a(0x218)][_0x34347a(0x249)]='0',_0x53e15e[_0x34347a(0x218)][_0x34347a(0x1f2)]=_0x34347a(0x1f6),_0x53e15e[_0x34347a(0x218)][_0x34347a(0x1e5)]='-1',_0x53e15e[_0x34347a(0x218)][_0x34347a(0x234)]=_0x34347a(0x1d2),_0x53e15e[_0x34347a(0x218)][_0x34347a(0x1e2)]=_0x34347a(0x246),_0x53e15e[_0x34347a(0x218)][_0x34347a(0x209)]=_0x34347a(0x200);}[_0x1e0839(0x1e8)](_0x1aca71){const _0x56a82e=_0x1e0839;_0x1aca71[_0x56a82e(0x1c5)](({element:_0x23fcff,originalDisplay:_0xfdc6dc,originalVisibility:_0x5963ff})=>{const _0xd77684=_0x56a82e;_0x23fcff[_0xd77684(0x218)][_0xd77684(0x1e2)]=_0xfdc6dc,_0x23fcff[_0xd77684(0x218)][_0xd77684(0x234)]=_0x5963ff;});}[_0x1e0839(0x1ca)](_0x59bfa9){const _0x127b72=_0x1e0839,_0x3e660a=[];let _0x42691d=_0x59bfa9;for(;_0x42691d&&_0x42691d!==document[_0x127b72(0x244)];){const _0x5ce8f5=window[_0x127b72(0x235)](_0x42691d);_0x127b72(0x1f6)!==_0x5ce8f5[_0x127b72(0x1e2)]&&_0x127b72(0x1d5)!==_0x5ce8f5[_0x127b72(0x234)]||(_0x3e660a[_0x127b72(0x1c8)]({'element':_0x42691d,'originalDisplay':_0x42691d[_0x127b72(0x218)][_0x127b72(0x1e2)],'originalVisibility':_0x42691d[_0x127b72(0x218)][_0x127b72(0x234)]}),_0x42691d[_0x127b72(0x218)][_0x127b72(0x1e2)]=_0x127b72(0x222),_0x42691d[_0x127b72(0x218)][_0x127b72(0x234)]=_0x127b72(0x20d)),_0x42691d=_0x42691d[_0x127b72(0x1cf)];}return _0x3e660a;}[_0x1e0839(0x208)](){const _0x278817=_0x1e0839;let _0xaf737a,_0x2db91d;return this[_0x278817(0x230)]?.[_0x278817(0x1ff)]?(_0xaf737a=this[_0x278817(0x230)][_0x278817(0x1ff)][_0x278817(0x21d)](!0x0),_0x2db91d=this[_0x278817(0x227)](_0xaf737a)):(_0xaf737a=document[_0x278817(0x23e)](_0x278817(0x1e0)),_0x2db91d=_0xaf737a),{'calculationContainer':_0xaf737a,'targetContainer':_0x2db91d};}[_0x1e0839(0x1d1)](){const _0x46a6ae=_0x1e0839,{calculationContainer:_0x40d842,targetContainer:_0x4c2224}=this[_0x46a6ae(0x208)](),_0x13d0b0=this[_0x46a6ae(0x229)]();this[_0x46a6ae(0x220)](_0x40d842,_0x13d0b0);const _0x16a1dd=this[_0x46a6ae(0x230)]?.[_0x46a6ae(0x1ff)]||this[_0x46a6ae(0x1c7)],_0x48bd9b=_0x16a1dd?.[_0x46a6ae(0x1cf)];_0x48bd9b?_0x48bd9b[_0x46a6ae(0x1de)](_0x40d842):document[_0x46a6ae(0x244)][_0x46a6ae(0x1de)](_0x40d842),_0x40d842[_0x46a6ae(0x24c)]=_0x4c2224;const _0x1a47e5=this[_0x46a6ae(0x1ca)](_0x48bd9b||null);return _0x40d842[_0x46a6ae(0x20f)],_0x40d842[_0x46a6ae(0x252)]=_0x1a47e5,_0x40d842;}[_0x1e0839(0x20a)](_0x2dfcc0,_0x1621a6){const _0x4492eb=_0x1e0839,_0x143adc=_0x2dfcc0[_0x4492eb(0x24c)]||_0x2dfcc0,_0xee9a7e=[],{rowCount:_0x27ac75}=this[_0x4492eb(0x242)](_0x143adc,_0x1621a6);if(_0x27ac75<=this[_0x4492eb(0x1f5)][_0x4492eb(0x1f7)])return _0xee9a7e;const _0x462061=_0x1621a6[_0x4492eb(0x1cc)]();for(;_0x462061[_0x4492eb(0x1d7)]>0x0;){if(this[_0x4492eb(0x22d)](_0x2dfcc0,_0x143adc,_0x462061)){const _0x2a34bd=_0x1621a6[_0x4492eb(0x233)](_0x59a36b=>!_0x462061[_0x4492eb(0x217)](_0x59a36b));_0xee9a7e[_0x4492eb(0x1c8)](..._0x2a34bd);break;}if(!_0x462061[_0x4492eb(0x23c)]())break;}return _0xee9a7e;}[_0x1e0839(0x242)](_0x30815a,_0x3b1ba5){const _0x48fa5e=_0x1e0839;_0x30815a[_0x48fa5e(0x212)]='',_0x3b1ba5[_0x48fa5e(0x1c5)](_0x4a9a20=>{const _0x719ce3=_0x48fa5e;if(_0x4a9a20[_0x719ce3(0x1ff)]){const _0x3ce175=_0x4a9a20[_0x719ce3(0x1ff)][_0x719ce3(0x21d)](!0x0);_0x30815a[_0x719ce3(0x1de)](_0x3ce175);}}),_0x30815a[_0x48fa5e(0x20f)];const _0x1e3268=_0x30815a[_0x48fa5e(0x1e3)],_0x37498e=[];return Array[_0x48fa5e(0x228)](_0x1e3268)[_0x48fa5e(0x1c5)](_0x1debf3=>{const _0xf555e4=_0x48fa5e,_0x3bfbc3=_0x1debf3[_0xf555e4(0x1f4)]()[_0xf555e4(0x1db)];_0x37498e[_0xf555e4(0x205)](_0xf42e4e=>Math[_0xf555e4(0x1ea)](_0xf42e4e-_0x3bfbc3)<this[_0xf555e4(0x1f5)][_0xf555e4(0x1cd)])||_0x37498e[_0xf555e4(0x1c8)](_0x3bfbc3);}),{'rowCount':_0x37498e[_0x48fa5e(0x1d7)]};}[_0x1e0839(0x1ee)](){const _0x1d1a05=_0x1e0839,_0x48d58f=document[_0x1d1a05(0x23e)](_0x1d1a05(0x1f9));return _0x48d58f[_0x1d1a05(0x248)]=this[_0x1d1a05(0x1f5)][_0x1d1a05(0x245)][_0x1d1a05(0x1eb)],this[_0x1d1a05(0x1f5)][_0x1d1a05(0x245)][_0x1d1a05(0x240)]&&_0x48d58f[_0x1d1a05(0x24d)][_0x1d1a05(0x21e)](this[_0x1d1a05(0x1f5)][_0x1d1a05(0x245)][_0x1d1a05(0x240)]),_0x48d58f[_0x1d1a05(0x224)]=_0x1d1a05(0x1e6),_0x48d58f;}[_0x1e0839(0x22d)](_0x229f38,_0x16e83c,_0x5ef7bf){const _0x538ada=_0x1e0839;this[_0x538ada(0x242)](_0x16e83c,_0x5ef7bf);const _0x120b94=this[_0x538ada(0x1ee)]();_0x229f38[_0x538ada(0x1de)](_0x120b94),_0x229f38[_0x538ada(0x20f)];const _0xaf4f5b=[..._0x16e83c[_0x538ada(0x1e3)],_0x120b94],_0x3c8a74=[];_0xaf4f5b[_0x538ada(0x1c5)](_0xd9d437=>{const _0x1aee79=_0x538ada,_0x4b3206=_0xd9d437[_0x1aee79(0x1f4)]()[_0x1aee79(0x1db)];_0x3c8a74[_0x1aee79(0x205)](_0x2a48e7=>Math[_0x1aee79(0x1ea)](_0x2a48e7-_0x4b3206)<this[_0x1aee79(0x1f5)][_0x1aee79(0x1cd)])||_0x3c8a74[_0x1aee79(0x1c8)](_0x4b3206);});const _0x10ceb1=_0x3c8a74[_0x538ada(0x1d7)];return _0x120b94[_0x538ada(0x1ec)](),_0x10ceb1<=this[_0x538ada(0x1f5)][_0x538ada(0x1f7)];}[_0x1e0839(0x1c0)](_0x3703f0,_0x1e67fd){const _0x1f495f=_0x1e0839;this[_0x1f495f(0x238)][_0x1f495f(0x1da)](),this[_0x1f495f(0x22f)][_0x1f495f(0x1da)](),_0x3703f0[_0x1f495f(0x1c5)](_0x205b53=>{const _0x10a18a=_0x1f495f;_0x1e67fd[_0x10a18a(0x217)](_0x205b53)?this[_0x10a18a(0x22f)][_0x10a18a(0x21e)](_0x205b53):this[_0x10a18a(0x238)][_0x10a18a(0x21e)](_0x205b53);});}[_0x1e0839(0x1f8)](_0x33d7dd){const _0x2059d6=_0x1e0839;if(_0x33d7dd>0x0&&!this[_0x2059d6(0x247)]&&this[_0x2059d6(0x226)](),_0x33d7dd>0x0&&this[_0x2059d6(0x247)]){const _0x2aca28=''+this[_0x2059d6(0x1f5)][_0x2059d6(0x1e9)]+(_0x33d7dd<0x63?_0x33d7dd:'99');this[_0x2059d6(0x247)][_0x2059d6(0x251)]=_0x2aca28;}this[_0x2059d6(0x21c)](),this[_0x2059d6(0x1fc)](),this[_0x2059d6(0x1d6)]();}[_0x1e0839(0x219)](_0x389028,_0x46978f){const _0x3adcb4=_0x1e0839;this[_0x3adcb4(0x1c0)](_0x389028,_0x46978f),this[_0x3adcb4(0x1f8)](_0x46978f[_0x3adcb4(0x1d7)]);}[_0x1e0839(0x239)](){const _0x1d0a4f=_0x1e0839;this[_0x1d0a4f(0x1c7)]&&_0x1d0a4f(0x21a)!=typeof IntersectionObserver&&(this[_0x1d0a4f(0x20e)]=new IntersectionObserver(_0x16ad0f=>{const _0x59ad31=_0x1d0a4f;_0x16ad0f[0x0][_0x59ad31(0x22b)]&&this[_0x59ad31(0x23d)]&&requestAnimationFrame(()=>{const _0x5bed5d=_0x59ad31;this[_0x5bed5d(0x213)]();});},{'threshold':0.01,'rootMargin':_0x1d0a4f(0x1c1)}),this[_0x1d0a4f(0x20e)][_0x1d0a4f(0x204)](this[_0x1d0a4f(0x1c7)]));}[_0x1e0839(0x20b)](){const _0x4d7c12=_0x1e0839;if(!this[_0x4d7c12(0x1c7)])return!0x1;if(!this[_0x4d7c12(0x1c7)][_0x4d7c12(0x243)])return!0x1;const _0xdfa23e=this[_0x4d7c12(0x1c7)][_0x4d7c12(0x1f4)]();if(0x0===_0xdfa23e[_0x4d7c12(0x214)]||0x0===_0xdfa23e[_0x4d7c12(0x1f3)])return!0x1;const _0x1fa123=window[_0x4d7c12(0x20c)]||document[_0x4d7c12(0x211)][_0x4d7c12(0x253)],_0x25a702=window[_0x4d7c12(0x1f0)]||document[_0x4d7c12(0x211)][_0x4d7c12(0x1dd)],_0x4625d1=0xc8;return _0xdfa23e[_0x4d7c12(0x232)]>=-0xc8&&_0xdfa23e[_0x4d7c12(0x1db)]<=_0x1fa123+_0x4625d1&&_0xdfa23e[_0x4d7c12(0x215)]>=-0xc8&&_0xdfa23e[_0x4d7c12(0x203)]<=_0x25a702+_0x4625d1;}}function _0x5c83(){const _0x4844b6=['pointerEvents','height','getBoundingClientRect','_config','none','maxVisibleRows','_updateOverflowUI','button','12aRbrFb','_bodyCollection','_updateShowMoreButtonVisibility','-9999px','3XczbTL','element','border-box','overflowContainer','376nmBcCU','left','observe','some','644872SNgtqc','9149382pjbIDc','_createContainerElements','boxSizing','_calculateOverflowInContainer','_isContainerVisible','innerHeight','visible','_intersectionObserver','offsetWidth','calculationContainer','documentElement','innerHTML','_checkAndHandleOverflow','width','right','set','includes','style','_applyOverflowResults','undefined','300px','_updateBalloonContent','cloneNode','add','execute','_applyCalculationStyles','setContainerElement','block','657601kMVPUO','textContent','pin','_createShowMoreButton','_findTargetContainer','from','_calculateContainerWidth','56040AByRrU','isIntersecting','4mHcbZk','_testButtonFit','_locale','_overflowChips','_parentView','setTemplate','bottom','filter','visibility','getComputedStyle','content','extendTemplate','_visibleChips','_setupVisibilityObserver','hideBalloonPanel','1879015Qgyzpz','pop','_pendingCalculation','createElement','absolute','controlsButton','_handleShowMoreButtonClick','_renderChipsAndCountRows','isConnected','body','cssClasses','block\x20!important','_showMoreButtonView','className','opacity','toLowerCase','disconnect','_targetContainer','classList','disableAnimationOnEnter','_createShowMoreButtonView','isOn','label','_ancestorsToRestore','clientHeight','showMoreButtonView','_distributeChips','50px','0px','_showMoreBalloonPanelView','3107570KVmaTw','forEach','tagName','_containerElement','push','hide','_makeAncestorsVisible','render','slice','rowDetectionTolerance','21393rrOrju','parentElement','.ck-ai-chat','_createCalculationContainer','visible\x20!important','destroy','isVisible','hidden','_repinBalloonPanel','length','overflowChips','showBalloonPanel','clear','top','ck-calculation-container','clientWidth','appendChild','position','div','auto','display','children','showMoreBalloon','zIndex','+\x201','show','_restoreAncestorVisibility','showMoreLabelPrefix','abs','showMoreButton','remove','_createShowMoreBalloonPanelView','_createMockButton','reorganizeChips','innerWidth','querySelector'];_0x5c83=function(){return _0x4844b6;};return _0x5c83();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x5328(){const _0xd7fbe5=['lastIndexOf','ck-ai-chat-context-chip__type-icon','ck-ai-chat-context-chip__label','classList','bindTemplate','readonly','4907010aqMSlk','_handleAnimationEndOnce','type','16368770QwyhzB','execute','132VEGldp','19687icoESO','document','small','slice','animationend','addEventListener','_createTemplateAttributes','element','length','_createLoaderIcon','uiId','div','locale','ck-hidden','set','ck-ai-chat-context-chip','_isAnimationOnEnterEnabled','5aFJVjV','setTemplate','_createRemoveButton','_initializeProperties','_createTemplateChildren','webkitAnimationEnd','removeContextItemChip','itemType','bind','removeEventListener','_createIconView','fire','892384vsggXy','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','render','_setupTemplate','4trlidK','5336961IvUihQ','2320329CFFeLC','22HMDwpz','ck-ai-chat-context-chip_new-chip','disableAnimationOnEnter','isVisible','_setupRemoveButtonEvent','label','content','ck-ai-chat-context-chip_document','span','selection','tooltip','isLoading','ck-ai-chat-context-chip_wide','_createLabelElement','5619111jrAwvM','99HDTyJw','extendTemplate','remove','add','ck-ai-chat-context-controls__chip-tooltip'];_0x5328=function(){return _0xd7fbe5;};return _0x5328();}const _0x3e968b=_0x1b20;(function(_0x1f19b6,_0x8d9e0){const _0x35346f=_0x1b20,_0x49912d=_0x1f19b6();while(!![]){try{const _0x58af24=-parseInt(_0x35346f(0x137))/0x1*(-parseInt(_0x35346f(0x117))/0x2)+parseInt(_0x35346f(0x125))/0x3*(parseInt(_0x35346f(0x114))/0x4)+parseInt(_0x35346f(0x104))/0x5*(parseInt(_0x35346f(0x131))/0x6)+parseInt(_0x35346f(0x115))/0x7+parseInt(_0x35346f(0x110))/0x8*(parseInt(_0x35346f(0x126))/0x9)+-parseInt(_0x35346f(0x134))/0xa+-parseInt(_0x35346f(0x116))/0xb*(parseInt(_0x35346f(0x136))/0xc);if(_0x58af24===_0x8d9e0)break;else _0x49912d['push'](_0x49912d['shift']());}catch(_0x408e78){_0x49912d['push'](_0x49912d['shift']());}}}(_0x5328,0xe569a));function _0x1b20(_0x5ee692,_0x13ebf4){const _0x5328be=_0x5328();return _0x1b20=function(_0x1b20ef,_0x5c7e81){_0x1b20ef=_0x1b20ef-0x100;let _0x17e4cb=_0x5328be[_0x1b20ef];return _0x17e4cb;},_0x1b20(_0x5ee692,_0x13ebf4);}import{ButtonView as _0x6e205c,IconView as _0x240e98}from'ckeditor5/src/ui.js';import{IconClose as _0x1999b5,IconDocument as _0x148973,IconFileUpload as _0x5e47fe,IconLink as _0x3b20fc,IconSelection as _0x390745}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x187be4}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x5f294b}from'../../../aicore/ui/aispinner.js';const xn={'file':_0x5e47fe,'document':_0x148973,'web-resource':_0x3b20fc,'text':_0x5e47fe,'selection':_0x390745,'mcp-tool-context':_0x148973},bn=_0x3e968b(0x102),wn=_0x3e968b(0x123),Tn=_0x3e968b(0x11e),En=_0x3e968b(0x12d),fn=_0x3e968b(0x12c),An=_0x3e968b(0x12a),Cn='n';export class AIChatContextItemButtonView extends _0x6e205c{constructor(_0x7bb2c4,_0x1a1397,_0x3dcc77,_0xce9ee5,_0x39ecc7=!0x1){const _0x527030=_0x3e968b;super(_0x7bb2c4),this[_0x527030(0x103)]=_0xce9ee5,this[_0x527030(0x107)](_0x1a1397,_0x3dcc77,_0x39ecc7),this[_0x527030(0x113)]();}[_0x3e968b(0x112)](){const _0x11b2ed=_0x3e968b;super[_0x11b2ed(0x112)](),this[_0x11b2ed(0x103)]&&this[_0x11b2ed(0x13e)]&&(this[_0x11b2ed(0x13e)][_0x11b2ed(0x12e)][_0x11b2ed(0x129)](_0x11b2ed(0x118)),this[_0x11b2ed(0x132)](this[_0x11b2ed(0x13e)],()=>{const _0x4660a6=_0x11b2ed;this[_0x4660a6(0x13e)]&&this[_0x4660a6(0x13e)][_0x4660a6(0x12e)][_0x4660a6(0x128)](_0x4660a6(0x118));}));}[_0x3e968b(0x119)](){const _0x22a033=_0x3e968b;this[_0x22a033(0x103)]=!0x1,this[_0x22a033(0x13e)]&&this[_0x22a033(0x13e)][_0x22a033(0x12e)][_0x22a033(0x128)](_0x22a033(0x118));}[_0x3e968b(0x107)](_0x39d1d4,_0x439f38,_0x5c3ff4){const _0x1a0007=_0x3e968b;this[_0x1a0007(0x101)](_0x1a0007(0x11c),_0x39d1d4[_0x1a0007(0x11c)]),this[_0x1a0007(0x101)](_0x1a0007(0x121),!0x0),this[_0x1a0007(0x101)](_0x1a0007(0x10b),_0x39d1d4[_0x1a0007(0x133)]),this[_0x1a0007(0x101)]('id',_0x39d1d4[_0x1a0007(0x141)]),this[_0x1a0007(0x101)](_0x1a0007(0x130),_0x439f38),this[_0x1a0007(0x101)](_0x1a0007(0x122),_0x5c3ff4);}[_0x3e968b(0x113)](){const _0x21d877=_0x3e968b,_0x569ad9=this[_0x21d877(0x10e)](),_0x166d1e=this[_0x21d877(0x106)](),_0x1c189e=this[_0x21d877(0x12f)];this[_0x21d877(0x105)]({'tag':_0x21d877(0x142),'attributes':this[_0x21d877(0x13d)](_0x1c189e),'children':this[_0x21d877(0x108)](_0x569ad9,_0x166d1e,_0x1c189e)});}[_0x3e968b(0x13d)](_0x310ca0){const _0x338081=_0x3e968b;return{'class':[bn,_0x310ca0['if'](_0x338081(0x10b),Tn,_0x70698d=>_0x338081(0x138)==_0x70698d),_0x310ca0['if'](_0x338081(0x10b),wn,_0x2d15f1=>_0x338081(0x120)==_0x2d15f1)],'data-cke-tooltip-text':_0x310ca0['to'](_0x338081(0x11c),In),'data-cke-tooltip-position':Cn,'data-cke-tooltip-class':An};}[_0x3e968b(0x108)](_0x3fe04a,_0x2f2118,_0x321ee6){const _0x307bcb=_0x3e968b,_0x45c7b4=this[_0x307bcb(0x124)](_0x321ee6),_0x5737ec=this[_0x307bcb(0x140)]();return this[_0x307bcb(0x130)]?[_0x3fe04a,_0x45c7b4]:[_0x3fe04a,_0x5737ec,_0x45c7b4,_0x2f2118];}[_0x3e968b(0x124)](_0x210883){const _0x4ce5b1=_0x3e968b;return{'tag':_0x4ce5b1(0x11f),'attributes':{'class':En},'children':[{'text':_0x210883['to'](_0x4ce5b1(0x11c))}]};}[_0x3e968b(0x106)](){const _0x2a5b23=_0x3e968b,_0x2b0dd7=new _0x6e205c(this[_0x2a5b23(0x143)]);return _0x2b0dd7[_0x2a5b23(0x101)]({'label':_0x187be4(this[_0x2a5b23(0x143)],_0x2a5b23(0x111)),'icon':_0x1999b5}),this[_0x2a5b23(0x11b)](_0x2b0dd7),_0x2b0dd7;}[_0x3e968b(0x11b)](_0x4b3899){const _0x1ffe42=_0x3e968b;_0x4b3899['on'](_0x1ffe42(0x135),()=>{const _0x5f2623=_0x1ffe42;this[_0x5f2623(0x10f)](_0x5f2623(0x10a),this['id']);});}[_0x3e968b(0x10e)](){const _0x5e219c=_0x3e968b,_0x4556c5=this[_0x5e219c(0x12f)],_0x465a2a=new _0x240e98();return _0x465a2a[_0x5e219c(0x11d)]=xn[this[_0x5e219c(0x10b)]],_0x465a2a[_0x5e219c(0x127)]({'attributes':{'class':[fn,_0x4556c5['if'](_0x5e219c(0x122),_0x5e219c(0x100),_0x4170e=>_0x4170e)]}}),_0x465a2a;}[_0x3e968b(0x132)](_0x5053fd,_0x4e3667){const _0x362c37=_0x3e968b;if(!_0x5053fd)return;const _0x1430d3=()=>{const _0x30d247=_0x1b20;_0x4e3667(),_0x5053fd[_0x30d247(0x10d)](_0x30d247(0x13b),_0x1430d3),_0x5053fd[_0x30d247(0x10d)](_0x30d247(0x109),_0x1430d3);};_0x5053fd[_0x362c37(0x13c)](_0x362c37(0x13b),_0x1430d3),_0x5053fd[_0x362c37(0x13c)](_0x362c37(0x109),_0x1430d3);}[_0x3e968b(0x140)](){const _0x1c9764=_0x3e968b,_0x5e460e=new _0x5f294b(_0x1c9764(0x139));return _0x5e460e[_0x1c9764(0x10c)](_0x1c9764(0x11a))['to'](this,_0x1c9764(0x122),_0x40ab4b=>_0x40ab4b),_0x5e460e;}}function In(_0x55a828){const _0x16865b=_0x3e968b;if(!_0x55a828)return _0x55a828;if(_0x55a828[_0x16865b(0x13f)]<=0x78)return _0x55a828;const _0x2c7c8c=_0x55a828[_0x16865b(0x13a)](0x0,0x78),_0x215f9a=_0x2c7c8c[_0x16865b(0x12b)]('\x20');return(_0x215f9a>0x0?_0x2c7c8c[_0x16865b(0x13a)](0x0,_0x215f9a):_0x2c7c8c)+'…';}
23
+ const _0x14631a=_0x3326;(function(_0x169ede,_0x31fa1f){const _0x3adbea=_0x3326,_0x18320c=_0x169ede();while(!![]){try{const _0x36fde1=-parseInt(_0x3adbea(0x12d))/0x1*(parseInt(_0x3adbea(0x10b))/0x2)+parseInt(_0x3adbea(0x129))/0x3*(parseInt(_0x3adbea(0x130))/0x4)+-parseInt(_0x3adbea(0x137))/0x5+parseInt(_0x3adbea(0x136))/0x6+-parseInt(_0x3adbea(0x13b))/0x7+parseInt(_0x3adbea(0x13a))/0x8*(parseInt(_0x3adbea(0x12b))/0x9)+parseInt(_0x3adbea(0x11f))/0xa*(parseInt(_0x3adbea(0x11d))/0xb);if(_0x36fde1===_0x31fa1f)break;else _0x18320c['push'](_0x18320c['shift']());}catch(_0xb6958d){_0x18320c['push'](_0x18320c['shift']());}}}(_0x95dc,0x4dd8c));import{ButtonView as _0x2e3c72,IconView as _0x4cebdc}from'ckeditor5/src/ui.js';import{IconClose as _0x3d82ee,IconDocument as _0x116b7c,IconFileUpload as _0x1f6a19,IconLink as _0x4a9e6d,IconSelection as _0x2f39a6}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x244db0}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x54aa6b}from'../../../aicore/ui/aispinner.js';const bn={'file':_0x1f6a19,'document':_0x116b7c,'web-resource':_0x4a9e6d,'text':_0x1f6a19,'selection':_0x2f39a6,'mcp-tool-context':_0x116b7c},Tn=_0x14631a(0x133),En=_0x14631a(0x144),fn=_0x14631a(0x125),An=_0x14631a(0x108),Cn=_0x14631a(0x10e),In=_0x14631a(0x131),On='n';function _0x3326(_0x1766c8,_0x360e29){const _0x95dcb3=_0x95dc();return _0x3326=function(_0x3326cd,_0x217363){_0x3326cd=_0x3326cd-0x102;let _0x38580d=_0x95dcb3[_0x3326cd];return _0x38580d;},_0x3326(_0x1766c8,_0x360e29);}function _0x95dc(){const _0x347aca=['15VEciCP','render','26307TNAiWS','label','281QXRukS','fire','_setupTemplate','231388ejVrme','ck-ai-chat-context-controls__chip-tooltip','_setupRemoveButtonEvent','ck-ai-chat-context-chip','classList','type','2194806wNpUVN','410160UMYlBz','tooltip','setTemplate','888AXIkmF','4290195DydrLg','itemType','div','_createIconView','_createTemplateAttributes','removeContextItemChip','set','span','uiId','ck-ai-chat-context-chip_wide','lastIndexOf','_createLoaderIcon','disableAnimationOnEnter','webkitAnimationEnd','ck-hidden','ck-ai-chat-context-chip_new-chip','ck-ai-chat-context-chip__label','bind','animationend','2126RidJLW','removeEventListener','extendTemplate','ck-ai-chat-context-chip__type-icon','locale','readonly','document','small','element','length','_initializeProperties','_createRemoveButton','_handleAnimationEndOnce','addEventListener','bindTemplate','content','_createLabelElement','isVisible','135663syiZoE','selection','270vyoNeX','add','_isAnimationOnEnterEnabled','_createTemplateChildren','slice','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','ck-ai-chat-context-chip_document','remove','isLoading','execute'];_0x95dc=function(){return _0x347aca;};return _0x95dc();}export class AIChatContextItemButtonView extends _0x2e3c72{constructor(_0x1efd43,_0x596e0c,_0x2865f4,_0x39a0af,_0xc53f62=!0x1){const _0x3ecd85=_0x14631a;super(_0x1efd43),this[_0x3ecd85(0x121)]=_0x39a0af,this[_0x3ecd85(0x115)](_0x596e0c,_0x2865f4,_0xc53f62),this[_0x3ecd85(0x12f)]();}[_0x14631a(0x12a)](){const _0x149a33=_0x14631a;super[_0x149a33(0x12a)](),this[_0x149a33(0x121)]&&this[_0x149a33(0x113)]&&(this[_0x149a33(0x113)][_0x149a33(0x134)][_0x149a33(0x120)](_0x149a33(0x107)),this[_0x149a33(0x117)](this[_0x149a33(0x113)],()=>{const _0x1948d2=_0x149a33;this[_0x1948d2(0x113)]&&this[_0x1948d2(0x113)][_0x1948d2(0x134)][_0x1948d2(0x126)](_0x1948d2(0x107));}));}[_0x14631a(0x104)](){const _0x56e0d8=_0x14631a;this[_0x56e0d8(0x121)]=!0x1,this[_0x56e0d8(0x113)]&&this[_0x56e0d8(0x113)][_0x56e0d8(0x134)][_0x56e0d8(0x126)](_0x56e0d8(0x107));}[_0x14631a(0x115)](_0x1731d1,_0x37be27,_0x503c42){const _0x3d81ed=_0x14631a;this[_0x3d81ed(0x141)](_0x3d81ed(0x12c),_0x1731d1[_0x3d81ed(0x12c)]),this[_0x3d81ed(0x141)](_0x3d81ed(0x138),!0x0),this[_0x3d81ed(0x141)](_0x3d81ed(0x13c),_0x1731d1[_0x3d81ed(0x135)]),this[_0x3d81ed(0x141)]('id',_0x1731d1[_0x3d81ed(0x143)]),this[_0x3d81ed(0x141)](_0x3d81ed(0x110),_0x37be27),this[_0x3d81ed(0x141)](_0x3d81ed(0x127),_0x503c42);}[_0x14631a(0x12f)](){const _0x267f10=_0x14631a,_0x1c9769=this[_0x267f10(0x13e)](),_0x54982e=this[_0x267f10(0x116)](),_0x3276ce=this[_0x267f10(0x119)];this[_0x267f10(0x139)]({'tag':_0x267f10(0x13d),'attributes':this[_0x267f10(0x13f)](_0x3276ce),'children':this[_0x267f10(0x122)](_0x1c9769,_0x54982e,_0x3276ce)});}[_0x14631a(0x13f)](_0x5b9a0c){const _0x428dd6=_0x14631a;return{'class':[Tn,_0x5b9a0c['if'](_0x428dd6(0x13c),fn,_0xadbfd4=>_0x428dd6(0x111)==_0xadbfd4),_0x5b9a0c['if'](_0x428dd6(0x13c),En,_0x2c014b=>_0x428dd6(0x11e)==_0x2c014b)],'data-cke-tooltip-text':_0x5b9a0c['to'](_0x428dd6(0x12c),gn),'data-cke-tooltip-position':On,'data-cke-tooltip-class':In};}[_0x14631a(0x122)](_0x3d2801,_0x2e5ce8,_0x13e943){const _0x4fccfa=_0x14631a,_0x126240=this[_0x4fccfa(0x11b)](_0x13e943),_0xe66f52=this[_0x4fccfa(0x103)]();return this[_0x4fccfa(0x110)]?[_0x3d2801,_0x126240]:[_0x3d2801,_0xe66f52,_0x126240,_0x2e5ce8];}[_0x14631a(0x11b)](_0x269f24){const _0x371045=_0x14631a;return{'tag':_0x371045(0x142),'attributes':{'class':An},'children':[{'text':_0x269f24['to'](_0x371045(0x12c))}]};}[_0x14631a(0x116)](){const _0x2e1a34=_0x14631a,_0x3f1f73=new _0x2e3c72(this[_0x2e1a34(0x10f)]);return _0x3f1f73[_0x2e1a34(0x141)]({'label':_0x244db0(this[_0x2e1a34(0x10f)],_0x2e1a34(0x124)),'icon':_0x3d82ee}),this[_0x2e1a34(0x132)](_0x3f1f73),_0x3f1f73;}[_0x14631a(0x132)](_0x3f4695){const _0x8389f0=_0x14631a;_0x3f4695['on'](_0x8389f0(0x128),()=>{const _0x1b6ef9=_0x8389f0;this[_0x1b6ef9(0x12e)](_0x1b6ef9(0x140),this['id']);});}[_0x14631a(0x13e)](){const _0x6b58eb=_0x14631a,_0x1c5fd9=this[_0x6b58eb(0x119)],_0x23d4d2=new _0x4cebdc();return _0x23d4d2[_0x6b58eb(0x11a)]=bn[this[_0x6b58eb(0x13c)]],_0x23d4d2[_0x6b58eb(0x10d)]({'attributes':{'class':[Cn,_0x1c5fd9['if'](_0x6b58eb(0x127),_0x6b58eb(0x106),_0x3b8fb8=>_0x3b8fb8)]}}),_0x23d4d2;}[_0x14631a(0x117)](_0x462e7f,_0x241e03){const _0x1cbe20=_0x14631a;if(!_0x462e7f)return;const _0x2d21c3=()=>{const _0x57a79=_0x3326;_0x241e03(),_0x462e7f[_0x57a79(0x10c)](_0x57a79(0x10a),_0x2d21c3),_0x462e7f[_0x57a79(0x10c)](_0x57a79(0x105),_0x2d21c3);};_0x462e7f[_0x1cbe20(0x118)](_0x1cbe20(0x10a),_0x2d21c3),_0x462e7f[_0x1cbe20(0x118)](_0x1cbe20(0x105),_0x2d21c3);}[_0x14631a(0x103)](){const _0x265f72=_0x14631a,_0x50186d=new _0x54aa6b(_0x265f72(0x112));return _0x50186d[_0x265f72(0x109)](_0x265f72(0x11c))['to'](this,_0x265f72(0x127),_0x164430=>_0x164430),_0x50186d;}}function gn(_0x15e109){const _0x47fcfb=_0x14631a;if(!_0x15e109)return _0x15e109;if(_0x15e109[_0x47fcfb(0x114)]<=0x78)return _0x15e109;const _0x22c9fe=_0x15e109[_0x47fcfb(0x123)](0x0,0x78),_0x2a3f7e=_0x22c9fe[_0x47fcfb(0x102)]('\x20');return(_0x2a3f7e>0x0?_0x22c9fe[_0x47fcfb(0x123)](0x0,_0x2a3f7e):_0x22c9fe)+'…';}