@ckeditor/ckeditor5-ai 47.6.2-alpha.1 → 47.7.0-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
- function _0x5582(_0x68ae67,_0xc8cc67){const _0x573788=_0x5737();return _0x5582=function(_0x5582b2,_0x1c782c){_0x5582b2=_0x5582b2-0x92;let _0xfc17e9=_0x573788[_0x5582b2];return _0xfc17e9;},_0x5582(_0x68ae67,_0xc8cc67);}function _0x5737(){const _0x4b879f=['getDocumentContext','5wEjhMu','4667658vBvUWO','addSelectionToContext','ai-chat-conversation-set-model-not-available','reset','ai-chat-conversation-already-started','getInteraction','lastInteraction','mcp-tool-result','handleUserInteraction','ai-chat-conversation-set-model-null','createReply','code','webSearch','_processMessagesToInteractions','ai-chat-conversation-init-from-id-failed','getPendingContextItems','init','addFilesToContext','updateCurrentDocument','toggleReasoning','sessionId','4132gJjtVn','_extractContextItems','6364750wQsVwn','hasOwn','fetchConversationMessages','updateCurrentDocumentInContext','interactionCreated','setWebSearch','reasoning','toggleWebSearch','sources','toLowerCase','set','error','addUrlToContext','text','populateFromMessage','content','isCurrentDocumentInConversation','setConversationTitle','getAvailableModels','conversationStarted','conversationInitialized','ai-chat-handle-user-interaction-start-failed','10lPrAVW','6808992xjIrLx','isFromHistory','capabilities','fire','options','contextItems','connector','loadSourceResources','load','get','ai-chat-handle-user-interaction-already-in-progress','1302jJfcLU','isStarted','ai-chat-conversation-init-failed','setReasoning','addCurrentDocumentToContext','modification','length','toolName','chatContext','fetchConversation','ai-chat-conversation-start-failed','splice','removeInteraction','chatCapabilities','getCurrentDocumentContext','ai-chat-handle-user-conversation-not-initialized','setModel','push','getConversation','103963cURSfi','selectedModel','interactions','find','addResourceToContext','assistant','createInteraction','parse','indexOf','removeFromContext','isCurrentDocumentInContext','11fTUFTF','157592xHaCcq','model','selectedModelId','_handleToolResultData','message','modelSelected','isAvailable','getMessages','start','url','stop','getEditor','currentInteraction','getModel','destroy','chatModels','appendContent','removeSelectionFromContext','currentReply','isSelectionInContext','getAll','type','addToolItemToContext','7464090WfwhpP','333ricavl','startConversation','ai-chat-conversation-start-no-model-selected','attributes','role','prompt','title','conversationId','delegate','addToConversationContext','stack','getCapabilitiesConfig','user','group'];_0x5737=function(){return _0x4b879f;};return _0x5737();}const _0x1a90b3=_0x5582;(function(_0x2497d2,_0x34e4da){const _0x2342dd=_0x5582,_0x48fe32=_0x2497d2();while(!![]){try{const _0x4b58b2=-parseInt(_0x2342dd(0x9d))/0x1*(-parseInt(_0x2342dd(0xfe))/0x2)+parseInt(_0x2342dd(0x10a))/0x3*(parseInt(_0x2342dd(0xe6))/0x4)+-parseInt(_0x2342dd(0xd0))/0x5*(parseInt(_0x2342dd(0xd1))/0x6)+parseInt(_0x2342dd(0xe8))/0x7+-parseInt(_0x2342dd(0xa9))/0x8*(parseInt(_0x2342dd(0xc1))/0x9)+parseInt(_0x2342dd(0xc0))/0xa+-parseInt(_0x2342dd(0xa8))/0xb*(parseInt(_0x2342dd(0xff))/0xc);if(_0x4b58b2===_0x34e4da)break;else _0x48fe32['push'](_0x48fe32['shift']());}catch(_0x5a11c5){_0x48fe32['push'](_0x48fe32['shift']());}}}(_0x5737,0x862c6));import{CKEditorError as _0x198a6c,EmitterMixin as _0x30c377,logWarning as _0x5597b9}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x339024}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x9bbf66,AI_CONTEXT_MODEL_EVENT_NAMES as _0x13fde0}from'./aichatcontext.js';import{AICapabilities as _0x272f69,CAPABILITIES_MODEL_EVENT_NAMES as _0x538ffd}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0xe4269c}from'./aichatinteraction.js';import{errorsMap as _0x1e5e4b}from'../../errorsmap.js';export class AIChatConversation extends _0x30c377(){['id'];[_0x1a90b3(0x10b)]=!0x1;[_0x1a90b3(0x100)];[_0x1a90b3(0x9f)]=[];[_0x1a90b3(0xb5)];[_0x1a90b3(0x9e)];[_0x1a90b3(0x105)];[_0x1a90b3(0x103)];constructor(_0x5d514b){const _0x13d589=_0x1a90b3;super(),this[_0x13d589(0x103)]=_0x5d514b,this[_0x13d589(0x105)]=_0x5d514b[_0x13d589(0x105)],this[_0x13d589(0xb8)]=_0x5d514b[_0x13d589(0xb8)],this['id']=_0x5d514b[_0x13d589(0xc8)],this[_0x13d589(0x100)]=_0x5d514b[_0x13d589(0x100)];}async[_0x1a90b3(0xe1)](_0x23d912){const _0x4bd553=_0x1a90b3;try{this[_0x4bd553(0x92)]=new _0x9bbf66({'connector':this[_0x4bd553(0x105)],'config':_0x23d912,'ownerId':this['id']}),this[_0x4bd553(0x92)][_0x4bd553(0xc9)](..._0x13fde0)['to'](this),this[_0x4bd553(0x92)][_0x4bd553(0xe1)](),this[_0x4bd553(0x97)]=new _0x272f69(),this[_0x4bd553(0x97)][_0x4bd553(0xc9)](..._0x538ffd)['to'](this),this[_0x4bd553(0x97)][_0x4bd553(0xe1)]();const _0x47a080=await this[_0x4bd553(0xb8)][_0x4bd553(0xfa)]();this[_0x4bd553(0x102)](_0x4bd553(0xfc),{'availableModels':_0x47a080});const _0x4bd729=await this[_0x4bd553(0xb8)][_0x4bd553(0xb6)](this[_0x4bd553(0x103)][_0x4bd553(0xab)]);_0x4bd729&&await this[_0x4bd553(0x9a)](_0x4bd729);}catch(_0x1c9c28){const _0xf9c274=new _0x198a6c(_0x4bd553(0x10c),null,{'message':_0x1c9c28[_0x4bd553(0xad)]||_0x1c9c28});_0xf9c274[_0x4bd553(0xcb)]=_0x1c9c28[_0x4bd553(0xcb)],this[_0x4bd553(0x102)](_0x4bd553(0xf3),{'error':_0xf9c274});}}async[_0x1a90b3(0xb1)](){const _0x555df7=_0x1a90b3;if(this[_0x555df7(0x10b)])throw new _0x198a6c(_0x555df7(0xd5),null,{'conversation':this});if(!this[_0x555df7(0x9e)])throw new _0x198a6c(_0x555df7(0xc3),null,{'conversation':this});try{const {id:_0x1dbe16}=await this[_0x555df7(0x105)][_0x555df7(0xc2)](this['id'],this[_0x555df7(0x103)][_0x555df7(0xce)])[_0x555df7(0x9c)]();this['id']=_0x1dbe16,this[_0x555df7(0x10b)]=!0x0,this[_0x555df7(0x102)](_0x555df7(0xfb),{'conversationId':this['id'],'selectedModel':this[_0x555df7(0x9e)]});}catch(_0x54434){const _0x4329b0=new _0x198a6c(_0x555df7(0x94),null,{'message':_0x54434[_0x555df7(0xad)],'conversationId':this['id']});throw _0x4329b0[_0x555df7(0xcb)]=_0x54434[_0x555df7(0xcb)],this[_0x555df7(0x102)](_0x555df7(0xf3),{'error':_0x4329b0}),_0x4329b0;}}async[_0x1a90b3(0x107)](_0xf107b9,_0x10ab62){const _0x4a9f94=_0x1a90b3;try{const _0x428900=await this[_0x4a9f94(0x105)][_0x4a9f94(0x93)](_0xf107b9)[_0x4a9f94(0x9c)](),_0x4b5502=await this[_0x4a9f94(0x105)][_0x4a9f94(0xea)](_0xf107b9)[_0x4a9f94(0xb0)](),_0x42f704=_0x4b5502[0x0][_0x4a9f94(0xaa)];this[_0x4a9f94(0x10b)]=!0x0,this['id']=_0x428900['id'],_0x4a9f94(0xc7)in _0x428900?this[_0x4a9f94(0x102)](_0x4a9f94(0xf9),_0x428900[_0x4a9f94(0xc7)],!0x0):this[_0x4a9f94(0x102)](_0x4a9f94(0xf9),'',!0x0);const _0x126376=(await this[_0x4a9f94(0xb8)][_0x4a9f94(0xbd)]())[_0x4a9f94(0xa0)](_0x53443d=>_0x53443d['id'][_0x4a9f94(0xf1)]()===_0x42f704[_0x4a9f94(0xf1)]());return this[_0x4a9f94(0x9e)]=_0x126376,this[_0x4a9f94(0x102)](_0x4a9f94(0xae),{'selectedModel':_0x126376,'isDisabled':!0x0}),await this[_0x4a9f94(0xde)](_0x4b5502,_0x10ab62,_0x42f704),this[_0x4a9f94(0xb5)]=void 0x0,this;}catch(_0x4a583a){const _0x17cc15=new _0x198a6c(_0x4a9f94(0xdf),null,{'message':_0x4a583a[_0x4a9f94(0xad)],'conversationId':_0xf107b9});throw _0x17cc15[_0x4a9f94(0xcb)]=_0x4a583a[_0x4a9f94(0xcb)],this[_0x4a9f94(0x102)](_0x4a9f94(0xf3),{'error':_0x17cc15}),_0x17cc15;}}async[_0x1a90b3(0xde)](_0x3c8d20,_0x5730db,_0x3dc454){const _0x37dadd=_0x1a90b3;let _0x39952d;for(const _0x445c7f of _0x3c8d20)if(_0x37dadd(0xcd)===_0x445c7f[_0x37dadd(0xc5)]){const _0x5162cb=await this[_0x37dadd(0xe7)](_0x445c7f),_0x4cfab3={'isReasoningEnabled':Object[_0x37dadd(0xe9)](_0x445c7f[_0x37dadd(0x101)],_0x37dadd(0xee)),'isWebSearchEnabled':Object[_0x37dadd(0xe9)](_0x445c7f[_0x37dadd(0x101)],_0x37dadd(0xdd))};_0x39952d=this[_0x37dadd(0xa3)]({'userMessage':_0x445c7f[_0x37dadd(0xc6)],'contextItems':_0x5162cb,'capabilities':_0x4cfab3,'modelId':_0x3dc454,'attributes':_0x445c7f[_0x37dadd(0xc4)]}),this[_0x37dadd(0xb5)]=_0x39952d,this[_0x37dadd(0x92)][_0x37dadd(0xca)](this[_0x37dadd(0xb5)][_0x37dadd(0x104)]);}else{if(_0x37dadd(0xa2)===_0x445c7f[_0x37dadd(0xc5)]&&_0x39952d){const _0x1393d9=[];for(const _0x69f534 of _0x445c7f[_0x37dadd(0xf7)])switch(_0x69f534[_0x37dadd(0xbe)]){case _0x37dadd(0xf5):case _0x37dadd(0x10f):{const _0x8a89f5=_0x39952d[_0x37dadd(0xcf)]()?.[_0x37dadd(0xe5)]!==_0x5730db;_0x39952d[_0x37dadd(0xbb)]=_0x39952d[_0x37dadd(0xdb)]({'type':_0x69f534[_0x37dadd(0xbe)],'isDone':!0x0,'interactionId':_0x39952d['id'],'areActionsDisabled':_0x8a89f5}),_0x39952d[_0x37dadd(0xbb)][_0x37dadd(0xb9)](_0x69f534[_0x37dadd(0xf7)]),_0x1393d9[_0x37dadd(0x110)]>0x0&&(_0x39952d[_0x37dadd(0xbb)][_0x37dadd(0xf0)]=_0x1393d9[_0x37dadd(0x95)](0x0));break;}case _0x37dadd(0xb2):_0x1393d9[_0x37dadd(0x9b)](_0x69f534);break;case _0x37dadd(0xd8):{const {data:_0x5a5071,attributes:_0x3dee57}=JSON[_0x37dadd(0xa4)](_0x69f534[_0x37dadd(0xf7)]);_0x39952d[_0x37dadd(0xac)]({'toolName':_0x69f534[_0x37dadd(0x111)],'data':_0x5a5071,'attributes':_0x3dee57});break;}}}}}async[_0x1a90b3(0xe7)](_0x22fd16){const _0x4640b5=_0x1a90b3,_0x68a0f4=new Map();if(!_0x22fd16[_0x4640b5(0xf7)])return _0x68a0f4;for(const _0x5d26ea of _0x22fd16[_0x4640b5(0xf7)]){const _0x94b52a=await this[_0x4640b5(0x92)][_0x4640b5(0xf6)](_0x5d26ea);_0x94b52a&&_0x68a0f4[_0x4640b5(0xf2)](_0x94b52a['id'],_0x94b52a);}return _0x68a0f4;}async[_0x1a90b3(0xd9)]({userMessage:_0x405650,attributes:_0xd508b3}){const _0x108ad9=_0x1a90b3;if(!this[_0x108ad9(0x10b)])throw new _0x198a6c(_0x108ad9(0x99),null,{'conversation':this});if(this[_0x108ad9(0xb5)])throw new _0x198a6c(_0x108ad9(0x109),null,{'conversation':this});try{const _0x4f4601=this[_0x108ad9(0x92)][_0x108ad9(0xe0)](),_0x14cfc5=this[_0x108ad9(0x97)][_0x108ad9(0xcc)](),_0x39229e=this[_0x108ad9(0x9e)]['id'];this[_0x108ad9(0xb5)]=this[_0x108ad9(0xa3)]({'userMessage':_0x405650,'contextItems':_0x4f4601,'capabilities':_0x14cfc5,'modelId':_0x39229e,'attributes':_0xd508b3}),await this[_0x108ad9(0xb5)][_0x108ad9(0xb1)](),this[_0x108ad9(0x92)][_0x108ad9(0xca)](this[_0x108ad9(0xb5)][_0x108ad9(0x104)]);}catch(_0x252c2a){if(_0x252c2a instanceof _0x198a6c)this[_0x108ad9(0x102)](_0x108ad9(0xf3),{'interactionId':this[_0x108ad9(0xb5)]?this[_0x108ad9(0xb5)]['id']:void 0x0,'error':_0x252c2a});else{const _0x5b8f0d=_0x1e5e4b[_0x108ad9(0x108)](_0x252c2a[_0x108ad9(0xdc)])||_0x108ad9(0xfd);this[_0x108ad9(0x102)](_0x108ad9(0xf3),{'interactionId':this[_0x108ad9(0xb5)]?this[_0x108ad9(0xb5)]['id']:void 0x0,'error':new _0x198a6c(_0x5b8f0d,null,{'error':_0x252c2a})});}}finally{this[_0x108ad9(0xb5)]?.[_0x108ad9(0xb3)](),this[_0x108ad9(0xb5)]=void 0x0;}}[_0x1a90b3(0xa3)]({userMessage:_0x27c1bb,contextItems:_0x15dcbb,capabilities:_0x7f0723,modelId:_0xc41b91,attributes:_0x1eda68}){const _0x5460dd=_0x1a90b3,_0x5e510f=new _0xe4269c({'userMessage':_0x27c1bb,'contextItems':_0x15dcbb,'capabilities':_0x7f0723,'conversationId':this['id'],'connector':this[_0x5460dd(0x105)],'editor':this[_0x5460dd(0x103)][_0x5460dd(0xb4)]&&this[_0x5460dd(0x103)][_0x5460dd(0xb4)](),'model':_0xc41b91,'attributes':_0x1eda68});return _0x5e510f[_0x5460dd(0xc9)](..._0x339024)['to'](this),this[_0x5460dd(0x9f)][_0x5460dd(0x9b)](_0x5e510f),this[_0x5460dd(0x102)](_0x5460dd(0xec),_0x5e510f),_0x5e510f;}[_0x1a90b3(0xd6)](_0x282f52){const _0x13db7d=_0x1a90b3;return this[_0x13db7d(0x9f)][_0x13db7d(0xa0)](_0x569745=>_0x569745['id']===_0x282f52);}[_0x1a90b3(0x96)](_0x143403){const _0x5ea8d4=_0x1a90b3,_0x511cd3=this[_0x5ea8d4(0xd6)](_0x143403);_0x511cd3&&(_0x511cd3[_0x5ea8d4(0xb7)](),this[_0x5ea8d4(0x9f)][_0x5ea8d4(0x95)](this[_0x5ea8d4(0x9f)][_0x5ea8d4(0xa5)](_0x511cd3),0x1));}get[_0x1a90b3(0xd7)](){const _0x11efda=_0x1a90b3;return this[_0x11efda(0x9f)][this[_0x11efda(0x9f)][_0x11efda(0x110)]-0x1];}[_0x1a90b3(0x10e)](_0x2f4128){const _0x4a4d68=_0x1a90b3;this[_0x4a4d68(0x92)][_0x4a4d68(0x10e)](_0x2f4128);}async[_0x1a90b3(0xeb)]({content:_0x4401d8,version:_0x4269a4,sessionId:_0x16387a,selections:_0x2fc3df}){const _0x48b90c=_0x1a90b3;await this[_0x48b90c(0x92)][_0x48b90c(0xe3)](_0x4401d8,_0x4269a4,_0x16387a,_0x2fc3df);}[_0x1a90b3(0x98)](){const _0x2b3090=_0x1a90b3;return this[_0x2b3090(0xb5)]?.[_0x2b3090(0xcf)]()?.[_0x2b3090(0xf7)]||'';}[_0x1a90b3(0xd2)](_0x5ab0cb){const _0x955024=_0x1a90b3;this[_0x955024(0x92)][_0x955024(0xd2)](_0x5ab0cb);}[_0x1a90b3(0xba)](){const _0x3fde21=_0x1a90b3;this[_0x3fde21(0x92)][_0x3fde21(0xba)]();}[_0x1a90b3(0xe2)](_0x51cbdb){const _0x1cbc1a=_0x1a90b3;this[_0x1cbc1a(0x92)][_0x1cbc1a(0xe2)](_0x51cbdb);}[_0x1a90b3(0xf4)](_0x33caf6){const _0x3dc9bd=_0x1a90b3;this[_0x3dc9bd(0x92)][_0x3dc9bd(0xf4)](_0x33caf6);}[_0x1a90b3(0xbf)](_0x58618d){const _0x5db724=_0x1a90b3;this[_0x5db724(0x92)][_0x5db724(0xbf)](_0x58618d);}[_0x1a90b3(0xa1)](_0x287d43,_0x27dc8e){const _0x41a0b0=_0x1a90b3;this[_0x41a0b0(0x92)][_0x41a0b0(0xa1)](_0x287d43,_0x27dc8e);}[_0x1a90b3(0x106)](_0x661687,_0x23f6ec,_0x196c11){const _0x17d6b3=_0x1a90b3;return this[_0x17d6b3(0x92)][_0x17d6b3(0x106)](_0x661687,_0x23f6ec,_0x196c11);}[_0x1a90b3(0xa6)](_0x1bcb09){const _0x223323=_0x1a90b3;this[_0x223323(0x92)][_0x223323(0xa6)](_0x1bcb09);}[_0x1a90b3(0xed)](_0x2f96ef){const _0x564012=_0x1a90b3;this[_0x564012(0x97)][_0x564012(0xed)](_0x2f96ef);}[_0x1a90b3(0xef)](){const _0x29a1d7=_0x1a90b3;this[_0x29a1d7(0x97)][_0x29a1d7(0xef)]();}[_0x1a90b3(0x10d)](_0x342e3f){const _0x120142=_0x1a90b3;this[_0x120142(0x97)][_0x120142(0x10d)](_0x342e3f);}[_0x1a90b3(0xe4)](){const _0x549c42=_0x1a90b3;this[_0x549c42(0x97)][_0x549c42(0xe4)]();}[_0x1a90b3(0xa7)](){const _0x3b6348=_0x1a90b3;return this[_0x3b6348(0x92)][_0x3b6348(0xa7)]();}[_0x1a90b3(0xf8)](){const _0x138472=_0x1a90b3;return this[_0x138472(0x92)][_0x138472(0xf8)]();}[_0x1a90b3(0xbc)](){const _0x464bb5=_0x1a90b3;return this[_0x464bb5(0x92)][_0x464bb5(0xbc)]();}async[_0x1a90b3(0x9a)](_0x1dde94){const _0x396668=_0x1a90b3;_0x1dde94?!0x1===await this[_0x396668(0xb8)][_0x396668(0xaf)](_0x1dde94)&&(_0x5597b9(_0x396668(0xd3),{'conversation':this,'model':_0x1dde94}),_0x1dde94=(await this[_0x396668(0xb8)][_0x396668(0xfa)]())[0x0]):(_0x5597b9(_0x396668(0xda),{'conversation':this}),_0x1dde94=(await this[_0x396668(0xb8)][_0x396668(0xfa)]())[0x0]),_0x1dde94['id']!==this[_0x396668(0x9e)]?.['id']&&(this[_0x396668(0x9e)]=_0x1dde94,this[_0x396668(0x97)][_0x396668(0xd4)](),this[_0x396668(0x102)](_0x396668(0xae),{'selectedModel':_0x1dde94}));}}
23
+ const _0x44b554=_0x35fa;(function(_0x58cd48,_0x21de4b){const _0x39274d=_0x35fa,_0x572fb4=_0x58cd48();while(!![]){try{const _0xadeb87=-parseInt(_0x39274d(0x149))/0x1+parseInt(_0x39274d(0x1a3))/0x2*(-parseInt(_0x39274d(0x144))/0x3)+parseInt(_0x39274d(0x19e))/0x4*(-parseInt(_0x39274d(0x1a5))/0x5)+-parseInt(_0x39274d(0x142))/0x6+-parseInt(_0x39274d(0x1b3))/0x7*(parseInt(_0x39274d(0x183))/0x8)+-parseInt(_0x39274d(0x16d))/0x9+parseInt(_0x39274d(0x19b))/0xa*(parseInt(_0x39274d(0x145))/0xb);if(_0xadeb87===_0x21de4b)break;else _0x572fb4['push'](_0x572fb4['shift']());}catch(_0x24c3a4){_0x572fb4['push'](_0x572fb4['shift']());}}}(_0x5197,0x6cd41));import{CKEditorError as _0x5502c9,EmitterMixin as _0x3e84c8,logWarning as _0x2a580e}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x218e1a}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x2713cd,AI_CONTEXT_MODEL_EVENT_NAMES as _0x515173}from'./aichatcontext.js';function _0x5197(){const _0x152383=['connector','getAvailableModels','setModel','_processMessagesToInteractions','addCurrentDocumentToContext','destroy','loadSourceResources','_handleToolResultData','6554736Pnqsit','delegate','options','getCapabilitiesConfig','chatModels','contextItems','hasOwn','removeSelectionFromContext','setReasoning','handleUserInteraction','chatContext','capabilities','getConversation','prompt','interactions','role','getInteraction','addToolItemToContext','code','updateCurrentDocument','isCurrentDocumentInContext','isAvailable','232LoIgqu','message','conversationInitialized','toggleWebSearch','splice','conversationStarted','ai-chat-conversation-init-failed','getAll','ai-chat-handle-user-conversation-not-initialized','group','chatCapabilities','url','ai-chat-handle-user-interaction-already-in-progress','getMessages','length','modification','createReply','stop','ai-chat-conversation-already-started','toolName','ai-chat-conversation-init-from-id-failed','getDocumentContext','conversationId','text','220QmzFvw','removeInteraction','assistant','548rqCJuq','setConversationTitle','currentInteraction','webSearch','user','278RGjTNL','getPendingContextItems','21055eUYzLP','addResourceToContext','addSelectionToContext','title','currentReply','_extractContextItems','createInteraction','push','fetchConversation','selectedModelId','toLowerCase','ai-chat-conversation-set-model-null','ai-chat-handle-user-interaction-start-failed','type','186529fmbZdw','isStarted','parse','stack','model','get','lastInteraction','ai-chat-conversation-start-failed','appendContent','setWebSearch','getEditor','attributes','fetchConversationMessages','sessionId','3665874DICroO','startConversation','10686ctNtlb','1904969SQZoyf','content','interactionCreated','isFromHistory','180106IuMiVS','indexOf','reasoning','ai-chat-conversation-start-no-model-selected','toggleReasoning','populateFromMessage','addToConversationContext','addFilesToContext','reset','error','sources','fire','getCurrentDocumentContext','load','addUrlToContext','getModel','isCurrentDocumentInConversation','init','start','ai-chat-conversation-set-model-not-available','modelSelected','mcp-tool-result','set','isSelectionInContext','find','selectedModel','updateCurrentDocumentInContext','removeFromContext'];_0x5197=function(){return _0x152383;};return _0x5197();}function _0x35fa(_0x51d3f0,_0xdab367){const _0x519723=_0x5197();return _0x35fa=function(_0x35fa3b,_0x192375){_0x35fa3b=_0x35fa3b-0x140;let _0x27d10b=_0x519723[_0x35fa3b];return _0x27d10b;},_0x35fa(_0x51d3f0,_0xdab367);}import{AICapabilities as _0x4c0306,CAPABILITIES_MODEL_EVENT_NAMES as _0x582516}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x389dc9}from'./aichatinteraction.js';import{errorsMap as _0x2db3b3}from'../../errorsmap.js';export class AIChatConversation extends _0x3e84c8(){['id'];[_0x44b554(0x1b4)]=!0x1;[_0x44b554(0x148)];[_0x44b554(0x17b)]=[];[_0x44b554(0x1a0)];[_0x44b554(0x162)];[_0x44b554(0x165)];[_0x44b554(0x16f)];constructor(_0x2006ec){const _0x39ffe7=_0x44b554;super(),this[_0x39ffe7(0x16f)]=_0x2006ec,this[_0x39ffe7(0x165)]=_0x2006ec[_0x39ffe7(0x165)],this[_0x39ffe7(0x171)]=_0x2006ec[_0x39ffe7(0x171)],this['id']=_0x2006ec[_0x39ffe7(0x199)],this[_0x39ffe7(0x148)]=_0x2006ec[_0x39ffe7(0x148)];}async[_0x44b554(0x15a)](_0x5c3567){const _0x10155f=_0x44b554;try{this[_0x10155f(0x177)]=new _0x2713cd({'connector':this[_0x10155f(0x165)],'config':_0x5c3567,'ownerId':this['id']}),this[_0x10155f(0x177)][_0x10155f(0x16e)](..._0x515173)['to'](this),this[_0x10155f(0x177)][_0x10155f(0x15a)](),this[_0x10155f(0x18d)]=new _0x4c0306(),this[_0x10155f(0x18d)][_0x10155f(0x16e)](..._0x582516)['to'](this),this[_0x10155f(0x18d)][_0x10155f(0x15a)]();const _0x430f36=await this[_0x10155f(0x171)][_0x10155f(0x166)]();this[_0x10155f(0x154)](_0x10155f(0x185),{'availableModels':_0x430f36});const _0x23131b=await this[_0x10155f(0x171)][_0x10155f(0x158)](this[_0x10155f(0x16f)][_0x10155f(0x1ae)]);_0x23131b&&await this[_0x10155f(0x167)](_0x23131b);}catch(_0x2048f4){const _0xc3f421=new _0x5502c9(_0x10155f(0x189),null,{'message':_0x2048f4[_0x10155f(0x184)]||_0x2048f4});_0xc3f421[_0x10155f(0x1b6)]=_0x2048f4[_0x10155f(0x1b6)],this[_0x10155f(0x154)](_0x10155f(0x152),{'error':_0xc3f421});}}async[_0x44b554(0x15b)](){const _0x12851e=_0x44b554;if(this[_0x12851e(0x1b4)])throw new _0x5502c9(_0x12851e(0x195),null,{'conversation':this});if(!this[_0x12851e(0x162)])throw new _0x5502c9(_0x12851e(0x14c),null,{'conversation':this});try{const {id:_0x36eb48}=await this[_0x12851e(0x165)][_0x12851e(0x143)](this['id'],this[_0x12851e(0x16f)][_0x12851e(0x18c)])[_0x12851e(0x179)]();this['id']=_0x36eb48,this[_0x12851e(0x1b4)]=!0x0,this[_0x12851e(0x154)](_0x12851e(0x188),{'conversationId':this['id'],'selectedModel':this[_0x12851e(0x162)]});}catch(_0x3fb5b4){const _0x54e8aa=new _0x5502c9(_0x12851e(0x1ba),null,{'message':_0x3fb5b4[_0x12851e(0x184)],'conversationId':this['id']});throw _0x54e8aa[_0x12851e(0x1b6)]=_0x3fb5b4[_0x12851e(0x1b6)],this[_0x12851e(0x154)](_0x12851e(0x152),{'error':_0x54e8aa}),_0x54e8aa;}}async[_0x44b554(0x156)](_0x2a1329,_0x3027b3){const _0x9c1556=_0x44b554;try{const _0x559bfc=await this[_0x9c1556(0x165)][_0x9c1556(0x1ad)](_0x2a1329)[_0x9c1556(0x179)](),_0x3581b6=await this[_0x9c1556(0x165)][_0x9c1556(0x140)](_0x2a1329)[_0x9c1556(0x190)](),_0xb2de9=_0x3581b6[0x0][_0x9c1556(0x1b7)];this[_0x9c1556(0x1b4)]=!0x0,this['id']=_0x559bfc['id'],_0x9c1556(0x1a8)in _0x559bfc?this[_0x9c1556(0x154)](_0x9c1556(0x19f),_0x559bfc[_0x9c1556(0x1a8)],!0x0):this[_0x9c1556(0x154)](_0x9c1556(0x19f),'',!0x0);const _0x3ef1d1=(await this[_0x9c1556(0x171)][_0x9c1556(0x18a)]())[_0x9c1556(0x161)](_0x50c240=>_0x50c240['id'][_0x9c1556(0x1af)]()===_0xb2de9[_0x9c1556(0x1af)]());return this[_0x9c1556(0x162)]=_0x3ef1d1,this[_0x9c1556(0x154)](_0x9c1556(0x15d),{'selectedModel':_0x3ef1d1,'isDisabled':!0x0}),await this[_0x9c1556(0x168)](_0x3581b6,_0x3027b3,_0xb2de9),this[_0x9c1556(0x1a0)]=void 0x0,this;}catch(_0x5ec5b4){const _0x57eb29=new _0x5502c9(_0x9c1556(0x197),null,{'message':_0x5ec5b4[_0x9c1556(0x184)],'conversationId':_0x2a1329});throw _0x57eb29[_0x9c1556(0x1b6)]=_0x5ec5b4[_0x9c1556(0x1b6)],this[_0x9c1556(0x154)](_0x9c1556(0x152),{'error':_0x57eb29}),_0x57eb29;}}async[_0x44b554(0x168)](_0x27b5f3,_0x540d14,_0x2dd73f){const _0x598279=_0x44b554;let _0x563e80;for(const _0x305554 of _0x27b5f3)if(_0x598279(0x1a2)===_0x305554[_0x598279(0x17c)]){const _0x57df94=await this[_0x598279(0x1aa)](_0x305554),_0x4d298f={'isReasoningEnabled':Object[_0x598279(0x173)](_0x305554[_0x598279(0x178)],_0x598279(0x14b)),'isWebSearchEnabled':Object[_0x598279(0x173)](_0x305554[_0x598279(0x178)],_0x598279(0x1a1))};_0x563e80=this[_0x598279(0x1ab)]({'userMessage':_0x305554[_0x598279(0x17a)],'contextItems':_0x57df94,'capabilities':_0x4d298f,'modelId':_0x2dd73f,'attributes':_0x305554[_0x598279(0x1be)]}),this[_0x598279(0x1a0)]=_0x563e80,this[_0x598279(0x177)][_0x598279(0x14f)](this[_0x598279(0x1a0)][_0x598279(0x172)]);}else{if(_0x598279(0x19d)===_0x305554[_0x598279(0x17c)]&&_0x563e80){const _0x547afd=[];for(const _0x382c03 of _0x305554[_0x598279(0x146)])switch(_0x382c03[_0x598279(0x1b2)]){case _0x598279(0x19a):case _0x598279(0x192):{const _0x4743ec=_0x563e80[_0x598279(0x198)]()?.[_0x598279(0x141)]!==_0x540d14;_0x563e80[_0x598279(0x1a9)]=_0x563e80[_0x598279(0x193)]({'type':_0x382c03[_0x598279(0x1b2)],'isDone':!0x0,'interactionId':_0x563e80['id'],'areActionsDisabled':_0x4743ec}),_0x563e80[_0x598279(0x1a9)][_0x598279(0x1bb)](_0x382c03[_0x598279(0x146)]),_0x547afd[_0x598279(0x191)]>0x0&&(_0x563e80[_0x598279(0x1a9)][_0x598279(0x153)]=_0x547afd[_0x598279(0x187)](0x0));break;}case _0x598279(0x18e):_0x547afd[_0x598279(0x1ac)](_0x382c03);break;case _0x598279(0x15e):{const {data:_0x1e7379,attributes:_0x38077e}=JSON[_0x598279(0x1b5)](_0x382c03[_0x598279(0x146)]);_0x563e80[_0x598279(0x16c)]({'toolName':_0x382c03[_0x598279(0x196)],'data':_0x1e7379,'attributes':_0x38077e});break;}}}}}async[_0x44b554(0x1aa)](_0x5155f4){const _0x40188b=_0x44b554,_0x148adf=new Map();if(!_0x5155f4[_0x40188b(0x146)])return _0x148adf;for(const _0x542cbd of _0x5155f4[_0x40188b(0x146)]){const _0x3355db=await this[_0x40188b(0x177)][_0x40188b(0x14e)](_0x542cbd);_0x3355db&&_0x148adf[_0x40188b(0x15f)](_0x3355db['id'],_0x3355db);}return _0x148adf;}async[_0x44b554(0x176)]({userMessage:_0x582b73,attributes:_0xff1352}){const _0x4e8776=_0x44b554;if(!this[_0x4e8776(0x1b4)])throw new _0x5502c9(_0x4e8776(0x18b),null,{'conversation':this});if(this[_0x4e8776(0x1a0)])throw new _0x5502c9(_0x4e8776(0x18f),null,{'conversation':this});try{const _0x5edc92=this[_0x4e8776(0x177)][_0x4e8776(0x1a4)](),_0x515d9f=this[_0x4e8776(0x18d)][_0x4e8776(0x170)](),_0x124914=this[_0x4e8776(0x162)]['id'];this[_0x4e8776(0x1a0)]=this[_0x4e8776(0x1ab)]({'userMessage':_0x582b73,'contextItems':_0x5edc92,'capabilities':_0x515d9f,'modelId':_0x124914,'attributes':_0xff1352}),await this[_0x4e8776(0x1a0)][_0x4e8776(0x15b)](),this[_0x4e8776(0x177)][_0x4e8776(0x14f)](this[_0x4e8776(0x1a0)][_0x4e8776(0x172)]);}catch(_0x1e0d15){if(_0x1e0d15 instanceof _0x5502c9)this[_0x4e8776(0x154)](_0x4e8776(0x152),{'interactionId':this[_0x4e8776(0x1a0)]?this[_0x4e8776(0x1a0)]['id']:void 0x0,'error':_0x1e0d15});else{const _0x4c6657=_0x2db3b3[_0x4e8776(0x1b8)](_0x1e0d15[_0x4e8776(0x17f)])||_0x4e8776(0x1b1);this[_0x4e8776(0x154)](_0x4e8776(0x152),{'interactionId':this[_0x4e8776(0x1a0)]?this[_0x4e8776(0x1a0)]['id']:void 0x0,'error':new _0x5502c9(_0x4c6657,null,{'error':_0x1e0d15})});}}finally{this[_0x4e8776(0x1a0)]?.[_0x4e8776(0x194)](),this[_0x4e8776(0x1a0)]=void 0x0;}}[_0x44b554(0x1ab)]({userMessage:_0x39eb47,contextItems:_0x588012,capabilities:_0x486170,modelId:_0x185118,attributes:_0x20f22f}){const _0x363de9=_0x44b554,_0x24563d=new _0x389dc9({'userMessage':_0x39eb47,'contextItems':_0x588012,'capabilities':_0x486170,'conversationId':this['id'],'connector':this[_0x363de9(0x165)],'editor':this[_0x363de9(0x16f)][_0x363de9(0x1bd)]&&this[_0x363de9(0x16f)][_0x363de9(0x1bd)](),'model':_0x185118,'attributes':_0x20f22f});return _0x24563d[_0x363de9(0x16e)](..._0x218e1a)['to'](this),this[_0x363de9(0x17b)][_0x363de9(0x1ac)](_0x24563d),this[_0x363de9(0x154)](_0x363de9(0x147),_0x24563d),_0x24563d;}[_0x44b554(0x17d)](_0x5116f7){const _0x4e2530=_0x44b554;return this[_0x4e2530(0x17b)][_0x4e2530(0x161)](_0x1e5e96=>_0x1e5e96['id']===_0x5116f7);}[_0x44b554(0x19c)](_0x3dc1e1){const _0x1d82bc=_0x44b554,_0x249934=this[_0x1d82bc(0x17d)](_0x3dc1e1);_0x249934&&(_0x249934[_0x1d82bc(0x16a)](),this[_0x1d82bc(0x17b)][_0x1d82bc(0x187)](this[_0x1d82bc(0x17b)][_0x1d82bc(0x14a)](_0x249934),0x1));}get[_0x44b554(0x1b9)](){const _0x1db9b9=_0x44b554;return this[_0x1db9b9(0x17b)][this[_0x1db9b9(0x17b)][_0x1db9b9(0x191)]-0x1];}[_0x44b554(0x169)](_0x3b97af){const _0x4cb1b5=_0x44b554;this[_0x4cb1b5(0x177)][_0x4cb1b5(0x169)](_0x3b97af);}async[_0x44b554(0x163)]({content:_0x31187d,version:_0x4c8a83,sessionId:_0x214d18,selections:_0x604b73}){const _0x20b192=_0x44b554;await this[_0x20b192(0x177)][_0x20b192(0x180)](_0x31187d,_0x4c8a83,_0x214d18,_0x604b73);}[_0x44b554(0x155)](){const _0x48478b=_0x44b554;return this[_0x48478b(0x1a0)]?.[_0x48478b(0x198)]()?.[_0x48478b(0x146)]||'';}[_0x44b554(0x1a7)](_0x3ccb74){const _0x44c19a=_0x44b554;this[_0x44c19a(0x177)][_0x44c19a(0x1a7)](_0x3ccb74);}[_0x44b554(0x174)](){const _0x1b1394=_0x44b554;this[_0x1b1394(0x177)][_0x1b1394(0x174)]();}[_0x44b554(0x150)](_0x2d5078){const _0x2f8a7a=_0x44b554;this[_0x2f8a7a(0x177)][_0x2f8a7a(0x150)](_0x2d5078);}[_0x44b554(0x157)](_0x5d7072){const _0x353a4d=_0x44b554;this[_0x353a4d(0x177)][_0x353a4d(0x157)](_0x5d7072);}[_0x44b554(0x17e)](_0x167f15){const _0x39a4c4=_0x44b554;this[_0x39a4c4(0x177)][_0x39a4c4(0x17e)](_0x167f15);}[_0x44b554(0x1a6)](_0x3b8e47,_0xf4484c){const _0x2dd9e5=_0x44b554;this[_0x2dd9e5(0x177)][_0x2dd9e5(0x1a6)](_0x3b8e47,_0xf4484c);}[_0x44b554(0x16b)](_0x5bc781,_0xd4f32e,_0x242985){const _0x4d48bf=_0x44b554;return this[_0x4d48bf(0x177)][_0x4d48bf(0x16b)](_0x5bc781,_0xd4f32e,_0x242985);}[_0x44b554(0x164)](_0x1ef51b){const _0x1097f5=_0x44b554;this[_0x1097f5(0x177)][_0x1097f5(0x164)](_0x1ef51b);}[_0x44b554(0x1bc)](_0x4a8468){const _0x45c0ef=_0x44b554;this[_0x45c0ef(0x18d)][_0x45c0ef(0x1bc)](_0x4a8468);}[_0x44b554(0x186)](){const _0xe15743=_0x44b554;this[_0xe15743(0x18d)][_0xe15743(0x186)]();}[_0x44b554(0x175)](_0x2c7c8e){const _0x426262=_0x44b554;this[_0x426262(0x18d)][_0x426262(0x175)](_0x2c7c8e);}[_0x44b554(0x14d)](){const _0xaf4dad=_0x44b554;this[_0xaf4dad(0x18d)][_0xaf4dad(0x14d)]();}[_0x44b554(0x181)](){const _0x15579a=_0x44b554;return this[_0x15579a(0x177)][_0x15579a(0x181)]();}[_0x44b554(0x159)](){const _0xcc4a6e=_0x44b554;return this[_0xcc4a6e(0x177)][_0xcc4a6e(0x159)]();}[_0x44b554(0x160)](){const _0xf261a1=_0x44b554;return this[_0xf261a1(0x177)][_0xf261a1(0x160)]();}async[_0x44b554(0x167)](_0x5076c2){const _0x348224=_0x44b554;_0x5076c2?!0x1===await this[_0x348224(0x171)][_0x348224(0x182)](_0x5076c2)&&(_0x2a580e(_0x348224(0x15c),{'conversation':this,'model':_0x5076c2}),_0x5076c2=(await this[_0x348224(0x171)][_0x348224(0x166)]())[0x0]):(_0x2a580e(_0x348224(0x1b0),{'conversation':this}),_0x5076c2=(await this[_0x348224(0x171)][_0x348224(0x166)]())[0x0]),_0x5076c2['id']!==this[_0x348224(0x162)]?.['id']&&(this[_0x348224(0x162)]=_0x5076c2,this[_0x348224(0x18d)][_0x348224(0x151)](),this[_0x348224(0x154)](_0x348224(0x15d),{'selectedModel':_0x5076c2}));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x24d82b=_0x2a74;function _0x2a74(_0x49325b,_0x3ae29f){var _0x568040=_0x5680();return _0x2a74=function(_0x2a7412,_0x22464f){_0x2a7412=_0x2a7412-0x1f0;var _0x4aa938=_0x568040[_0x2a7412];return _0x4aa938;},_0x2a74(_0x49325b,_0x3ae29f);}function _0x5680(){var _0x4da1df=['110KqLsPt','18958UDdXlp','96Dpksgy','2897902enPlQF','get','8217FYosgj','capabilities','connector','16QIxsQj','conversationId','207LGIKXG','queryAssistant','368844eJhpuE','12228bwsCNq','2150152YJTfzt','getCapabilitiesRequestData','mapContextItemsToRequestData','current-document','userMessage','model','sendRequest','contextItems','613300qDmRmS','1036101UvikIv','getDocumentContext','21ybLGvN','attributes','247aTDxbq'];_0x5680=function(){return _0x4da1df;};return _0x5680();}(function(_0x46df44,_0x35271c){var _0x40fc39=_0x2a74,_0x4169cc=_0x46df44();while(!![]){try{var _0x4fcc66=parseInt(_0x40fc39(0x20b))/0x1*(parseInt(_0x40fc39(0x20a))/0x2)+parseInt(_0x40fc39(0x204))/0x3*(-parseInt(_0x40fc39(0x1f5))/0x4)+-parseInt(_0x40fc39(0x209))/0x5*(parseInt(_0x40fc39(0x1f9))/0x6)+parseInt(_0x40fc39(0x206))/0x7*(parseInt(_0x40fc39(0x1fb))/0x8)+-parseInt(_0x40fc39(0x1f7))/0x9*(parseInt(_0x40fc39(0x203))/0xa)+parseInt(_0x40fc39(0x1f2))/0xb*(-parseInt(_0x40fc39(0x1fa))/0xc)+-parseInt(_0x40fc39(0x208))/0xd*(-parseInt(_0x40fc39(0x1f0))/0xe);if(_0x4fcc66===_0x35271c)break;else _0x4169cc['push'](_0x4169cc['shift']());}catch(_0x5f1723){_0x4169cc['push'](_0x4169cc['shift']());}}}(_0x5680,0xb5837));import{AICapabilities as _0x4fd0f0}from'../../aicore/model/aicapabilities.js';import{AIInteraction as _0x36e37b}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x577b0f}from'./aichatcontext.js';export class AIChatInteraction extends _0x36e37b{[_0x24d82b(0x1ff)];[_0x24d82b(0x1f6)];[_0x24d82b(0x202)]=new Map();[_0x24d82b(0x200)];[_0x24d82b(0x207)];constructor(_0x90f6ef){var _0x880fcd=_0x24d82b;super(_0x90f6ef),this[_0x880fcd(0x1f6)]=_0x90f6ef[_0x880fcd(0x1f6)],this[_0x880fcd(0x202)]=_0x90f6ef[_0x880fcd(0x202)],this[_0x880fcd(0x1f3)]=_0x90f6ef[_0x880fcd(0x1f3)],this[_0x880fcd(0x1ff)]=_0x90f6ef[_0x880fcd(0x1ff)],this[_0x880fcd(0x200)]=_0x90f6ef[_0x880fcd(0x200)],this[_0x880fcd(0x207)]=_0x90f6ef[_0x880fcd(0x207)];}async[_0x24d82b(0x201)](){var _0x82f7c9=_0x24d82b;return this[_0x82f7c9(0x1f4)][_0x82f7c9(0x1f8)]({'message':this[_0x82f7c9(0x1ff)],'conversationId':this[_0x82f7c9(0x1f6)],'parts':_0x577b0f[_0x82f7c9(0x1fd)](this[_0x82f7c9(0x202)]),'capabilities':_0x4fd0f0[_0x82f7c9(0x1fc)](this[_0x82f7c9(0x1f3)]),'model':this[_0x82f7c9(0x200)],'attributes':this[_0x82f7c9(0x207)]});}[_0x24d82b(0x205)](){var _0x2564eb=_0x24d82b;return this[_0x2564eb(0x202)][_0x2564eb(0x1f1)](_0x2564eb(0x1fe));}}
23
+ var _0x56cf40=_0xf7ff;function _0xf7ff(_0x3708d9,_0x3a6219){var _0x1c3c6b=_0x1c3c();return _0xf7ff=function(_0xf7ff3a,_0x1c8145){_0xf7ff3a=_0xf7ff3a-0x118;var _0x4841b4=_0x1c3c6b[_0xf7ff3a];return _0x4841b4;},_0xf7ff(_0x3708d9,_0x3a6219);}(function(_0x226d2a,_0x13df6b){var _0x4f5ea4=_0xf7ff,_0x1c9757=_0x226d2a();while(!![]){try{var _0x4530aa=parseInt(_0x4f5ea4(0x123))/0x1+parseInt(_0x4f5ea4(0x128))/0x2*(-parseInt(_0x4f5ea4(0x11b))/0x3)+-parseInt(_0x4f5ea4(0x130))/0x4*(-parseInt(_0x4f5ea4(0x124))/0x5)+parseInt(_0x4f5ea4(0x118))/0x6*(parseInt(_0x4f5ea4(0x11d))/0x7)+-parseInt(_0x4f5ea4(0x12d))/0x8+-parseInt(_0x4f5ea4(0x120))/0x9*(-parseInt(_0x4f5ea4(0x11e))/0xa)+-parseInt(_0x4f5ea4(0x12a))/0xb;if(_0x4530aa===_0x13df6b)break;else _0x1c9757['push'](_0x1c9757['shift']());}catch(_0x2e2c3f){_0x1c9757['push'](_0x1c9757['shift']());}}}(_0x1c3c,0x4a2f0));function _0x1c3c(){var _0x45a144=['attributes','239759AuycME','2327615XuDvSa','mapContextItemsToRequestData','capabilities','getDocumentContext','2WMIOlu','sendRequest','8369119ffCaYF','current-document','get','2150064dzMpsK','userMessage','connector','4BcxVhT','138WjZAhg','getCapabilitiesRequestData','queryAssistant','67626IlnvGY','conversationId','72499kjQokY','4124920RiidQt','model','9VKbLLm','contextItems'];_0x1c3c=function(){return _0x45a144;};return _0x1c3c();}import{AICapabilities as _0x40ec3d}from'../../aicore/model/aicapabilities.js';import{AIInteraction as _0x284551}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x21a895}from'./aichatcontext.js';export class AIChatInteraction extends _0x284551{[_0x56cf40(0x12e)];[_0x56cf40(0x11c)];[_0x56cf40(0x121)]=new Map();[_0x56cf40(0x11f)];[_0x56cf40(0x122)];constructor(_0x8cf9a1){var _0x3f6da1=_0x56cf40;super(_0x8cf9a1),this[_0x3f6da1(0x11c)]=_0x8cf9a1[_0x3f6da1(0x11c)],this[_0x3f6da1(0x121)]=_0x8cf9a1[_0x3f6da1(0x121)],this[_0x3f6da1(0x126)]=_0x8cf9a1[_0x3f6da1(0x126)],this[_0x3f6da1(0x12e)]=_0x8cf9a1[_0x3f6da1(0x12e)],this[_0x3f6da1(0x11f)]=_0x8cf9a1[_0x3f6da1(0x11f)],this[_0x3f6da1(0x122)]=_0x8cf9a1[_0x3f6da1(0x122)];}async[_0x56cf40(0x129)](){var _0x20eb59=_0x56cf40;return this[_0x20eb59(0x12f)][_0x20eb59(0x11a)]({'message':this[_0x20eb59(0x12e)],'conversationId':this[_0x20eb59(0x11c)],'parts':_0x21a895[_0x20eb59(0x125)](this[_0x20eb59(0x121)]),'capabilities':_0x40ec3d[_0x20eb59(0x119)](this[_0x20eb59(0x126)]),'model':this[_0x20eb59(0x11f)],'attributes':this[_0x20eb59(0x122)]});}[_0x56cf40(0x127)](){var _0x3fa7fc=_0x56cf40;return this[_0x3fa7fc(0x121)][_0x3fa7fc(0x12c)](_0x3fa7fc(0x12b));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x14ac7e=_0x44a9;function _0x44a9(_0xeda290,_0x2af28c){const _0x8570d4=_0x8570();return _0x44a9=function(_0x44a98e,_0x3c059b){_0x44a98e=_0x44a98e-0x14c;let _0x194b5e=_0x8570d4[_0x44a98e];return _0x194b5e;},_0x44a9(_0xeda290,_0x2af28c);}(function(_0x5a52be,_0x2e2bea){const _0x3ae7fd=_0x44a9,_0x8172ea=_0x5a52be();while(!![]){try{const _0x478713=-parseInt(_0x3ae7fd(0x168))/0x1+parseInt(_0x3ae7fd(0x199))/0x2*(parseInt(_0x3ae7fd(0x17f))/0x3)+parseInt(_0x3ae7fd(0x177))/0x4*(-parseInt(_0x3ae7fd(0x16d))/0x5)+-parseInt(_0x3ae7fd(0x179))/0x6*(parseInt(_0x3ae7fd(0x16b))/0x7)+-parseInt(_0x3ae7fd(0x188))/0x8+parseInt(_0x3ae7fd(0x192))/0x9+parseInt(_0x3ae7fd(0x190))/0xa;if(_0x478713===_0x2e2bea)break;else _0x8172ea['push'](_0x8172ea['shift']());}catch(_0x59fc7a){_0x8172ea['push'](_0x8172ea['shift']());}}}(_0x8570,0x5fe4e));import{FocusTracker as _0x15e987,KeystrokeHandler as _0x3d0b4e}from'ckeditor5/src/utils.js';import{AISuggestionStreamableContentView as _0x5511a1}from'../../aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js';import{AISuggestionContentPartToolbarView as _0x209e44}from'../../aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js';import{AIMiniToolbarView as _0x54000f}from'../../aicore/ui/suggestioncontainer/aiminitoolbarview.js';import{AIBalloonView as _0x24f3bc}from'../../aiballoon/ui/aiballoonview.js';import{ButtonView as _0x150b2e,FocusCycler as _0x3b3ef1,View as _0xf64c10}from'ckeditor5/src/ui.js';import{AISuggestionContentPartStateView as _0x36e4b2}from'../../aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js';import{IconChevronDown as _0x3bbc69,IconChevronUp as _0x30ca86}from'ckeditor5/src/icons.js';function _0x8570(){const _0x59db2e=['update','full','hideError','shift\x20+\x20tab','_state','_errorView','_config','keepErrors','isTrackChangesOn','focusLast','togglePartToolbarEnabled','has','previousButtonView','rejectSuggestion','_isErrorVisible','focus','ck-ai-chat-balloon__toolbar-container','toggleShowChanges','change:_state','add','isShowChangesOn','listenTo','612579KkmdFV','_miniToolbarView','showPrevious','35567vxICDZ','_togglePartToolbarButtonsVisibility','707425hAOQSb','bindTemplate','_toolbarContainerView','toggleRotatorButtonsVisibility','isEnabled','availableActions','addMany','render','div','insertSuggestion','16UFXGtm','fire','450qsMYkx','toggleSuggestionDisplayMode','destroy','applySuggestion','includes','_focusables','60693rATUkq','updateContent','isVisible','execute','pending','_createPreviousButtonView','_createNextButtonView','createCollection','showError','1578368TDAhed','showNext','showBlockingError','setState','_streamableContentView','change:isTrackChangesOn','delegate','_stateView','19863790zsGaLO','_partToolbarView','195084rMyXOI','element','AI_BALLOON_PREVIOUS_LABEL','locale','setTemplate','_keystrokes','_focusTracker','14ZuxQoP','nextButtonView','showDiff','focusCycler','ck-ai-chat-balloon-main_state_','setButtonsVisibility','children','focusFirst','AI_BALLOON_NEXT_LABEL','tab','bind','set','ck-ai-chat-balloon-main'];_0x8570=function(){return _0x59db2e;};return _0x8570();}import{getTranslation as _0x29a249}from'../../aicore/utils/common-translations.js';import'../../../theme/aichat/aichatballoon.css';export class AIChatBalloonView extends _0x24f3bc{[_0x14ac7e(0x19f)];[_0x14ac7e(0x19a)];[_0x14ac7e(0x15e)];[_0x14ac7e(0x19c)];[_0x14ac7e(0x17e)];[_0x14ac7e(0x198)];[_0x14ac7e(0x197)];[_0x14ac7e(0x158)];[_0x14ac7e(0x18c)];[_0x14ac7e(0x16f)];[_0x14ac7e(0x191)];[_0x14ac7e(0x18f)];[_0x14ac7e(0x169)];constructor(_0x2cfa18,_0x5895b6){const _0x216c2a=_0x14ac7e;super(_0x2cfa18);const _0x514d41=this[_0x216c2a(0x16e)];this[_0x216c2a(0x150)](_0x216c2a(0x19b),!0x1),this[_0x216c2a(0x150)](_0x216c2a(0x156),_0x216c2a(0x183)),this[_0x216c2a(0x198)]=new _0x15e987(),this[_0x216c2a(0x197)]=new _0x3d0b4e(),this[_0x216c2a(0x17e)]=this[_0x216c2a(0x186)](),this[_0x216c2a(0x19c)]=new _0x3b3ef1({'focusables':this[_0x216c2a(0x17e)],'focusTracker':this[_0x216c2a(0x198)],'keystrokeHandler':this[_0x216c2a(0x197)],'actions':{'focusPrevious':_0x216c2a(0x155),'focusNext':_0x216c2a(0x14e)}}),this[_0x216c2a(0x158)]=_0x5895b6,this[_0x216c2a(0x19a)]=this[_0x216c2a(0x185)](),this[_0x216c2a(0x15e)]=this[_0x216c2a(0x184)](),this[_0x216c2a(0x18c)]=new _0x5511a1(_0x2cfa18),this[_0x216c2a(0x191)]=new _0x209e44(_0x2cfa18,_0x5895b6[_0x216c2a(0x172)]),this[_0x216c2a(0x191)][_0x216c2a(0x18e)](_0x216c2a(0x17c),_0x216c2a(0x176),_0x216c2a(0x15f))['to'](this),this[_0x216c2a(0x16c)](_0x5895b6),this[_0x216c2a(0x18f)]=new _0x36e4b2(_0x2cfa18),this[_0x216c2a(0x18f)][_0x216c2a(0x181)]=!0x1,this[_0x216c2a(0x169)]=new _0x54000f(_0x2cfa18,{'showChanges':_0x216c2a(0x153)}),this[_0x216c2a(0x169)][_0x216c2a(0x14f)](_0x216c2a(0x166))['to'](this,_0x216c2a(0x19b)),this[_0x216c2a(0x169)]['on'](_0x216c2a(0x163),()=>{const _0x1bb895=_0x216c2a;this[_0x1bb895(0x178)](_0x1bb895(0x17a));}),this[_0x216c2a(0x16f)]=new ms(_0x2cfa18,[this[_0x216c2a(0x191)],this[_0x216c2a(0x18f)],this[_0x216c2a(0x169)]]),this[_0x216c2a(0x19f)]=this[_0x216c2a(0x186)]([this[_0x216c2a(0x18c)],this[_0x216c2a(0x16f)]]),this['on'](_0x216c2a(0x164),(_0x16f004,_0x11e4e1,_0x4491df,_0x1d7e1c)=>{const _0x58aac9=_0x216c2a;let _0x228f04,_0x11772d;_0x58aac9(0x183)===_0x1d7e1c?(_0x228f04=this[_0x58aac9(0x191)],_0x11772d=this[_0x58aac9(0x18f)]):(_0x228f04=this[_0x58aac9(0x18f)],_0x11772d=this[_0x58aac9(0x191)]),this[_0x58aac9(0x18f)][_0x58aac9(0x18b)](_0x4491df),_0x228f04[_0x58aac9(0x181)]=!0x1,_0x11772d[_0x58aac9(0x181)]=!0x0;}),this[_0x216c2a(0x196)]({'tag':_0x216c2a(0x175),'attributes':{'class':['ck',_0x216c2a(0x151),_0x514d41['to'](_0x216c2a(0x156),_0x31a5b3=>_0x216c2a(0x19d)+_0x31a5b3)]},'children':this[_0x216c2a(0x19f)]}),this['on'](_0x216c2a(0x18d),()=>{const _0x586ae6=_0x216c2a;this[_0x586ae6(0x16c)](_0x5895b6);});}[_0x14ac7e(0x174)](){const _0x14a9fd=_0x14ac7e;super[_0x14a9fd(0x174)](),this[_0x14a9fd(0x19a)][_0x14a9fd(0x174)](),this[_0x14a9fd(0x15e)][_0x14a9fd(0x174)](),this[_0x14a9fd(0x198)][_0x14a9fd(0x165)](this[_0x14a9fd(0x193)]),this[_0x14a9fd(0x198)][_0x14a9fd(0x165)](this[_0x14a9fd(0x19a)]),this[_0x14a9fd(0x198)][_0x14a9fd(0x165)](this[_0x14a9fd(0x15e)]),this[_0x14a9fd(0x198)][_0x14a9fd(0x165)](this[_0x14a9fd(0x169)]),this[_0x14a9fd(0x198)][_0x14a9fd(0x165)](this[_0x14a9fd(0x191)]),this[_0x14a9fd(0x197)][_0x14a9fd(0x167)](this[_0x14a9fd(0x193)]),this[_0x14a9fd(0x197)][_0x14a9fd(0x167)](this[_0x14a9fd(0x19a)][_0x14a9fd(0x193)]),this[_0x14a9fd(0x197)][_0x14a9fd(0x167)](this[_0x14a9fd(0x15e)][_0x14a9fd(0x193)]),this[_0x14a9fd(0x17e)][_0x14a9fd(0x173)]([this[_0x14a9fd(0x19a)],this[_0x14a9fd(0x15e)],this[_0x14a9fd(0x191)],this[_0x14a9fd(0x169)]]);}[_0x14ac7e(0x17b)](){const _0x17cc24=_0x14ac7e;super[_0x17cc24(0x17b)](),this[_0x17cc24(0x15e)][_0x17cc24(0x17b)](),this[_0x17cc24(0x19a)][_0x17cc24(0x17b)]();}[_0x14ac7e(0x161)](){const _0x4eb3ae=_0x14ac7e;this[_0x4eb3ae(0x19c)][_0x4eb3ae(0x14c)]();}[_0x14ac7e(0x15b)](){const _0x8466fa=_0x14ac7e;this[_0x8466fa(0x19c)][_0x8466fa(0x15b)]();}async[_0x14ac7e(0x180)](_0x32bf7a){const _0x842fb4=_0x14ac7e;_0x32bf7a?.[_0x842fb4(0x159)]||this[_0x842fb4(0x154)](),await this[_0x842fb4(0x18c)][_0x842fb4(0x152)](_0x32bf7a);}[_0x14ac7e(0x18b)](_0x902dda){const _0x291380=_0x14ac7e;this[_0x291380(0x156)]=_0x902dda;}[_0x14ac7e(0x187)](_0x284d50){const _0x4c9568=_0x14ac7e;super[_0x4c9568(0x187)](_0x284d50),this[_0x4c9568(0x19f)][_0x4c9568(0x15d)](this[_0x4c9568(0x157)])||this[_0x4c9568(0x19f)][_0x4c9568(0x165)](this[_0x4c9568(0x157)],0x0);}[_0x14ac7e(0x154)](){const _0x32af5e=_0x14ac7e;this[_0x32af5e(0x160)]&&(super[_0x32af5e(0x154)](),this[_0x32af5e(0x15c)](!0x0));}[_0x14ac7e(0x18a)](_0x4bb4e4){const _0x16638c=_0x14ac7e;super[_0x16638c(0x18a)](_0x4bb4e4),this[_0x16638c(0x15c)](!0x1);}[_0x14ac7e(0x170)](_0x3789f1){const _0x5ad71d=_0x14ac7e;this[_0x5ad71d(0x19a)][_0x5ad71d(0x181)]=this[_0x5ad71d(0x15e)][_0x5ad71d(0x181)]=_0x3789f1;}[_0x14ac7e(0x15c)](_0x1496f1){const _0x3e010c=_0x14ac7e;this[_0x3e010c(0x191)][_0x3e010c(0x171)]=_0x1496f1;}[_0x14ac7e(0x16c)]({showApplyButton:_0x55ef76,showSuggestButton:_0x8be686}){const _0x8b0f6e=_0x14ac7e;_0x55ef76=_0x55ef76&&!this[_0x8b0f6e(0x15a)]&&this[_0x8b0f6e(0x158)][_0x8b0f6e(0x172)][_0x8b0f6e(0x17d)](_0x8b0f6e(0x17c)),_0x8be686=_0x8be686&&this[_0x8b0f6e(0x158)][_0x8b0f6e(0x172)][_0x8b0f6e(0x17d)](_0x8b0f6e(0x176)),this[_0x8b0f6e(0x191)][_0x8b0f6e(0x19e)]({'showApplyButton':_0x55ef76,'showSuggestButton':_0x8be686});}[_0x14ac7e(0x185)](){const _0xb2e927=_0x14ac7e,_0x31ee4c=new _0x150b2e(this[_0xb2e927(0x195)]);return _0x31ee4c[_0xb2e927(0x150)]({'icon':_0x3bbc69,'label':_0x29a249(this[_0xb2e927(0x195)],_0xb2e927(0x14d)),'isVisible':!0x0}),_0x31ee4c['on'](_0xb2e927(0x182),()=>{const _0x1babbb=_0xb2e927;this[_0x1babbb(0x178)](_0x1babbb(0x189));}),_0x31ee4c;}[_0x14ac7e(0x184)](){const _0x4b9e25=_0x14ac7e,_0x528b00=new _0x150b2e(this[_0x4b9e25(0x195)]);return _0x528b00[_0x4b9e25(0x150)]({'icon':_0x30ca86,'label':_0x29a249(this[_0x4b9e25(0x195)],_0x4b9e25(0x194)),'isVisible':!0x0}),_0x528b00['on'](_0x4b9e25(0x182),()=>{const _0x4a5851=_0x4b9e25;this[_0x4a5851(0x178)](_0x4a5851(0x16a));}),_0x528b00;}}class ms extends _0xf64c10{constructor(_0x3a8261,_0x314179){const _0x222e15=_0x14ac7e;super(_0x3a8261),this[_0x222e15(0x196)]({'tag':_0x222e15(0x175),'attributes':{'class':[_0x222e15(0x162)]},'children':_0x314179});}}
23
+ const _0x4268aa=_0x5241;(function(_0x3e20a9,_0xb3ff89){const _0x31d499=_0x5241,_0xd329e3=_0x3e20a9();while(!![]){try{const _0x314c2b=-parseInt(_0x31d499(0x1cf))/0x1*(parseInt(_0x31d499(0x1f8))/0x2)+parseInt(_0x31d499(0x1dc))/0x3+-parseInt(_0x31d499(0x1b9))/0x4+parseInt(_0x31d499(0x1eb))/0x5*(parseInt(_0x31d499(0x1be))/0x6)+parseInt(_0x31d499(0x1ba))/0x7*(parseInt(_0x31d499(0x1ad))/0x8)+-parseInt(_0x31d499(0x1fc))/0x9*(parseInt(_0x31d499(0x1b5))/0xa)+parseInt(_0x31d499(0x1d2))/0xb;if(_0x314c2b===_0xb3ff89)break;else _0xd329e3['push'](_0xd329e3['shift']());}catch(_0x5e7f8d){_0xd329e3['push'](_0xd329e3['shift']());}}}(_0xdc54,0x9f100));import{FocusTracker as _0x38ccf8,KeystrokeHandler as _0x11ba5e}from'ckeditor5/src/utils.js';import{AISuggestionStreamableContentView as _0x644709}from'../../aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js';import{AISuggestionContentPartToolbarView as _0x13d0f1}from'../../aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js';import{AIMiniToolbarView as _0x573353}from'../../aicore/ui/suggestioncontainer/aiminitoolbarview.js';function _0xdc54(){const _0x48a9b3=['isEnabled','_createNextButtonView','fire','isTrackChangesOn','bind','listenTo','showDiff','addMany','_miniToolbarView','isVisible','12sIsUoh','add','ck-ai-chat-balloon-main_state_','1017819acVyoL','AI_BALLOON_PREVIOUS_LABEL','_config','render','setButtonsVisibility','element','_stateView','set','_errorView','full','3009048EzDjPh','tab','showError','delegate','AI_BALLOON_NEXT_LABEL','updateContent','previousButtonView','focusCycler','createCollection','update','_createPreviousButtonView','focus','bindTemplate','pending','nextButtonView','5exDDRp','setTemplate','locale','_toolbarContainerView','togglePartToolbarEnabled','insertSuggestion','_partToolbarView','children','execute','applySuggestion','includes','_streamableContentView','_isErrorVisible','34064TDFFAo','destroy','change:_state','keepErrors','5355LTkfwi','toggleRotatorButtonsVisibility','toggleSuggestionDisplayMode','hideError','shift\x20+\x20tab','ck-ai-chat-balloon__toolbar-container','56RyRoZR','_state','_focusTracker','showNext','setState','change:isTrackChangesOn','isShowChangesOn','rejectSuggestion','9390cjnmSf','focusLast','has','availableActions','1983064fjEuQF','608545vCvsPr','focusFirst','showBlockingError','toggleShowChanges','1237710ykWowd','showPrevious','div','_togglePartToolbarButtonsVisibility','_focusables','ck-ai-chat-balloon-main','_keystrokes'];_0xdc54=function(){return _0x48a9b3;};return _0xdc54();}import{AIBalloonView as _0x1dd40c}from'../../aiballoon/ui/aiballoonview.js';import{ButtonView as _0xc20fa4,FocusCycler as _0x11894a,View as _0x1f3cd5}from'ckeditor5/src/ui.js';import{AISuggestionContentPartStateView as _0x5c032d}from'../../aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js';import{IconChevronDown as _0x507f08,IconChevronUp as _0x510fe5}from'ckeditor5/src/icons.js';import{getTranslation as _0x20a259}from'../../aicore/utils/common-translations.js';import'../../../theme/aichat/aichatballoon.css';export class AIChatBalloonView extends _0x1dd40c{[_0x4268aa(0x1f2)];[_0x4268aa(0x1ea)];[_0x4268aa(0x1e2)];[_0x4268aa(0x1e3)];[_0x4268aa(0x1c2)];[_0x4268aa(0x1af)];[_0x4268aa(0x1c4)];[_0x4268aa(0x1d4)];[_0x4268aa(0x1f6)];[_0x4268aa(0x1ee)];[_0x4268aa(0x1f1)];[_0x4268aa(0x1d8)];[_0x4268aa(0x1cd)];constructor(_0x3fbed9,_0x362acc){const _0x1105c2=_0x4268aa;super(_0x3fbed9);const _0x3bb2e7=this[_0x1105c2(0x1e8)];this[_0x1105c2(0x1d9)](_0x1105c2(0x1cb),!0x1),this[_0x1105c2(0x1d9)](_0x1105c2(0x1ae),_0x1105c2(0x1e9)),this[_0x1105c2(0x1af)]=new _0x38ccf8(),this[_0x1105c2(0x1c4)]=new _0x11ba5e(),this[_0x1105c2(0x1c2)]=this[_0x1105c2(0x1e4)](),this[_0x1105c2(0x1e3)]=new _0x11894a({'focusables':this[_0x1105c2(0x1c2)],'focusTracker':this[_0x1105c2(0x1af)],'keystrokeHandler':this[_0x1105c2(0x1c4)],'actions':{'focusPrevious':_0x1105c2(0x1ab),'focusNext':_0x1105c2(0x1dd)}}),this[_0x1105c2(0x1d4)]=_0x362acc,this[_0x1105c2(0x1ea)]=this[_0x1105c2(0x1c6)](),this[_0x1105c2(0x1e2)]=this[_0x1105c2(0x1e6)](),this[_0x1105c2(0x1f6)]=new _0x644709(_0x3fbed9),this[_0x1105c2(0x1f1)]=new _0x13d0f1(_0x3fbed9,_0x362acc[_0x1105c2(0x1b8)]),this[_0x1105c2(0x1f1)][_0x1105c2(0x1df)](_0x1105c2(0x1f4),_0x1105c2(0x1f0),_0x1105c2(0x1b4))['to'](this),this[_0x1105c2(0x1c1)](_0x362acc),this[_0x1105c2(0x1d8)]=new _0x5c032d(_0x3fbed9),this[_0x1105c2(0x1d8)][_0x1105c2(0x1ce)]=!0x1,this[_0x1105c2(0x1cd)]=new _0x573353(_0x3fbed9,{'showChanges':_0x1105c2(0x1db)}),this[_0x1105c2(0x1cd)][_0x1105c2(0x1c9)](_0x1105c2(0x1b3))['to'](this,_0x1105c2(0x1cb)),this[_0x1105c2(0x1cd)]['on'](_0x1105c2(0x1bd),()=>{const _0x162d78=_0x1105c2;this[_0x162d78(0x1c7)](_0x162d78(0x1a9));}),this[_0x1105c2(0x1ee)]=new ls(_0x3fbed9,[this[_0x1105c2(0x1f1)],this[_0x1105c2(0x1d8)],this[_0x1105c2(0x1cd)]]),this[_0x1105c2(0x1f2)]=this[_0x1105c2(0x1e4)]([this[_0x1105c2(0x1f6)],this[_0x1105c2(0x1ee)]]),this['on'](_0x1105c2(0x1fa),(_0x4a4c42,_0x370175,_0x46fe10,_0x151791)=>{const _0x44c673=_0x1105c2;let _0x15d9c7,_0x295ed3;_0x44c673(0x1e9)===_0x151791?(_0x15d9c7=this[_0x44c673(0x1f1)],_0x295ed3=this[_0x44c673(0x1d8)]):(_0x15d9c7=this[_0x44c673(0x1d8)],_0x295ed3=this[_0x44c673(0x1f1)]),this[_0x44c673(0x1d8)][_0x44c673(0x1b1)](_0x46fe10),_0x15d9c7[_0x44c673(0x1ce)]=!0x1,_0x295ed3[_0x44c673(0x1ce)]=!0x0;}),this[_0x1105c2(0x1ec)]({'tag':_0x1105c2(0x1c0),'attributes':{'class':['ck',_0x1105c2(0x1c3),_0x3bb2e7['to'](_0x1105c2(0x1ae),_0x159d25=>_0x1105c2(0x1d1)+_0x159d25)]},'children':this[_0x1105c2(0x1f2)]}),this['on'](_0x1105c2(0x1b2),()=>{const _0x250bd1=_0x1105c2;this[_0x250bd1(0x1c1)](_0x362acc);});}[_0x4268aa(0x1d5)](){const _0x3a97b1=_0x4268aa;super[_0x3a97b1(0x1d5)](),this[_0x3a97b1(0x1ea)][_0x3a97b1(0x1d5)](),this[_0x3a97b1(0x1e2)][_0x3a97b1(0x1d5)](),this[_0x3a97b1(0x1af)][_0x3a97b1(0x1d0)](this[_0x3a97b1(0x1d7)]),this[_0x3a97b1(0x1af)][_0x3a97b1(0x1d0)](this[_0x3a97b1(0x1ea)]),this[_0x3a97b1(0x1af)][_0x3a97b1(0x1d0)](this[_0x3a97b1(0x1e2)]),this[_0x3a97b1(0x1af)][_0x3a97b1(0x1d0)](this[_0x3a97b1(0x1cd)]),this[_0x3a97b1(0x1af)][_0x3a97b1(0x1d0)](this[_0x3a97b1(0x1f1)]),this[_0x3a97b1(0x1c4)][_0x3a97b1(0x1ca)](this[_0x3a97b1(0x1d7)]),this[_0x3a97b1(0x1c4)][_0x3a97b1(0x1ca)](this[_0x3a97b1(0x1ea)][_0x3a97b1(0x1d7)]),this[_0x3a97b1(0x1c4)][_0x3a97b1(0x1ca)](this[_0x3a97b1(0x1e2)][_0x3a97b1(0x1d7)]),this[_0x3a97b1(0x1c2)][_0x3a97b1(0x1cc)]([this[_0x3a97b1(0x1ea)],this[_0x3a97b1(0x1e2)],this[_0x3a97b1(0x1f1)],this[_0x3a97b1(0x1cd)]]);}[_0x4268aa(0x1f9)](){const _0x12879a=_0x4268aa;super[_0x12879a(0x1f9)](),this[_0x12879a(0x1e2)][_0x12879a(0x1f9)](),this[_0x12879a(0x1ea)][_0x12879a(0x1f9)]();}[_0x4268aa(0x1e7)](){const _0x15f22a=_0x4268aa;this[_0x15f22a(0x1e3)][_0x15f22a(0x1bb)]();}[_0x4268aa(0x1b6)](){const _0xdc189d=_0x4268aa;this[_0xdc189d(0x1e3)][_0xdc189d(0x1b6)]();}async[_0x4268aa(0x1e1)](_0x710b1f){const _0x42efbe=_0x4268aa;_0x710b1f?.[_0x42efbe(0x1fb)]||this[_0x42efbe(0x1aa)](),await this[_0x42efbe(0x1f6)][_0x42efbe(0x1e5)](_0x710b1f);}[_0x4268aa(0x1b1)](_0x209efc){const _0x2c48d8=_0x4268aa;this[_0x2c48d8(0x1ae)]=_0x209efc;}[_0x4268aa(0x1de)](_0x46d9ac){const _0x8efc4c=_0x4268aa;super[_0x8efc4c(0x1de)](_0x46d9ac),this[_0x8efc4c(0x1f2)][_0x8efc4c(0x1b7)](this[_0x8efc4c(0x1da)])||this[_0x8efc4c(0x1f2)][_0x8efc4c(0x1d0)](this[_0x8efc4c(0x1da)],0x0);}[_0x4268aa(0x1aa)](){const _0x1acf1f=_0x4268aa;this[_0x1acf1f(0x1f7)]&&(super[_0x1acf1f(0x1aa)](),this[_0x1acf1f(0x1ef)](!0x0));}[_0x4268aa(0x1bc)](_0x363eac){const _0x77bb2c=_0x4268aa;super[_0x77bb2c(0x1bc)](_0x363eac),this[_0x77bb2c(0x1ef)](!0x1);}[_0x4268aa(0x1fd)](_0x5b449e){const _0x3f8582=_0x4268aa;this[_0x3f8582(0x1ea)][_0x3f8582(0x1ce)]=this[_0x3f8582(0x1e2)][_0x3f8582(0x1ce)]=_0x5b449e;}[_0x4268aa(0x1ef)](_0x2240c6){const _0xf2573b=_0x4268aa;this[_0xf2573b(0x1f1)][_0xf2573b(0x1c5)]=_0x2240c6;}[_0x4268aa(0x1c1)]({showApplyButton:_0x433093,showSuggestButton:_0x4c1e0d}){const _0x43c354=_0x4268aa;_0x433093=_0x433093&&!this[_0x43c354(0x1c8)]&&this[_0x43c354(0x1d4)][_0x43c354(0x1b8)][_0x43c354(0x1f5)](_0x43c354(0x1f4)),_0x4c1e0d=_0x4c1e0d&&this[_0x43c354(0x1d4)][_0x43c354(0x1b8)][_0x43c354(0x1f5)](_0x43c354(0x1f0)),this[_0x43c354(0x1f1)][_0x43c354(0x1d6)]({'showApplyButton':_0x433093,'showSuggestButton':_0x4c1e0d});}[_0x4268aa(0x1c6)](){const _0xbe3b65=_0x4268aa,_0x28b77f=new _0xc20fa4(this[_0xbe3b65(0x1ed)]);return _0x28b77f[_0xbe3b65(0x1d9)]({'icon':_0x507f08,'label':_0x20a259(this[_0xbe3b65(0x1ed)],_0xbe3b65(0x1e0)),'isVisible':!0x0}),_0x28b77f['on'](_0xbe3b65(0x1f3),()=>{const _0x5478b2=_0xbe3b65;this[_0x5478b2(0x1c7)](_0x5478b2(0x1b0));}),_0x28b77f;}[_0x4268aa(0x1e6)](){const _0x546374=_0x4268aa,_0x4b9752=new _0xc20fa4(this[_0x546374(0x1ed)]);return _0x4b9752[_0x546374(0x1d9)]({'icon':_0x510fe5,'label':_0x20a259(this[_0x546374(0x1ed)],_0x546374(0x1d3)),'isVisible':!0x0}),_0x4b9752['on'](_0x546374(0x1f3),()=>{const _0x150263=_0x546374;this[_0x150263(0x1c7)](_0x150263(0x1bf));}),_0x4b9752;}}function _0x5241(_0x2c3fe7,_0x5a8cd8){const _0xdc540=_0xdc54();return _0x5241=function(_0x5241bf,_0x5043e1){_0x5241bf=_0x5241bf-0x1a9;let _0xa7bfa5=_0xdc540[_0x5241bf];return _0xa7bfa5;},_0x5241(_0x2c3fe7,_0x5a8cd8);}class ls extends _0x1f3cd5{constructor(_0x2d48d3,_0x3280ea){const _0xaffef8=_0x4268aa;super(_0x2d48d3),this[_0xaffef8(0x1ec)]({'tag':_0xaffef8(0x1c0),'attributes':{'class':[_0xaffef8(0x1ac)]},'children':_0x3280ea});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xbff82f=_0x3cb4;(function(_0x26a2c2,_0x109b7c){const _0x53ee11=_0x3cb4,_0x3507d3=_0x26a2c2();while(!![]){try{const _0x2e11d9=parseInt(_0x53ee11(0xd8))/0x1+parseInt(_0x53ee11(0xf7))/0x2+-parseInt(_0x53ee11(0xe2))/0x3*(parseInt(_0x53ee11(0xeb))/0x4)+-parseInt(_0x53ee11(0xbd))/0x5*(parseInt(_0x53ee11(0xc5))/0x6)+-parseInt(_0x53ee11(0xfb))/0x7*(parseInt(_0x53ee11(0x106))/0x8)+-parseInt(_0x53ee11(0xba))/0x9+-parseInt(_0x53ee11(0xdf))/0xa*(-parseInt(_0x53ee11(0xe8))/0xb);if(_0x2e11d9===_0x109b7c)break;else _0x3507d3['push'](_0x3507d3['shift']());}catch(_0x29f8ba){_0x3507d3['push'](_0x3507d3['shift']());}}}(_0x1eb1,0xf166c));import{ButtonView as _0x49d402,clickOutsideHandler as _0x3ce49b,View as _0x12c691}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x4d955d}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x43a070}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x3e9b12,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x5d5901}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x280c11}from'./controls/aichatcontrolsloaderview.js';import{getTranslation as _0x934eea}from'../../aicore/utils/common-translations.js';import'../../../theme/aichat/aichat-controls.css';import'../../../theme/aichat/aichat-controls/prompt-input.css';import'../../../theme/aichat/aichat-controls/prompt-capabilities.css';import'../../../theme/aichat/aichat-controls/model-unavailable-message.css';import'../../../theme/aichat/aichat-controls/aichat-context-controls.css';import'../../../theme/aichat/aichat-controls/aichat-context-chip.css';import'../../../theme/aichat/aichat-controls/aichat-controls-button.css';function _0x3cb4(_0x2f5d95,_0x52d84a){const _0x1eb184=_0x1eb1();return _0x3cb4=function(_0x3cb4a9,_0x4c9c10){_0x3cb4a9=_0x3cb4a9-0xb9;let _0x5e0209=_0x1eb184[_0x3cb4a9];return _0x5e0209;},_0x3cb4(_0x2f5d95,_0x52d84a);}import'../../../theme/aichat/aichat-controls/aichat-controls-loader.css';function _0x1eb1(){const _0x1b7d6f=['clearConversationContextItems','startConversation','_promptInputView','363818ATjzHk','value','disableModelSelector','closeSourceResourceBalloon','_createContextPanelView','setModelList','clearConversationContextUI','1734830WFLlHd','ck-ai-chat-controls__start-new-chat-button','_createModelUnavailableMessageView','5309193VTpxzC','_createLoaderView','ck-ai-chat-controls','focus','_promptCapabilitiesView','low','352rmIfaX','populateSourceResourceBalloon','_createPromptCapabilitiesView','4DAdVaO','setReasoning','toggleReasoning','sendUserMessage','_modelUnavailableMessageView','setInputPlaceholder','bodyCollection','element','fieldView','setAddContextOptions','setConversationContext','form','1618146ZjeYsg','_contextPanelView','toggleWebSearch','_handlePromptInputFocus','273vrOREb','_loaderView','clearPendingContextUI','setPlaceholderText','_createPromptInputView','clearCurrentContextItems','locale','ck-ai-chat-controls-disabled','updateResourceState','contextResourcesSearchInputVisibleFrom','addContextButtonView','315320mZKJMf','addContextItem','isDisabled','focusPromptInput','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','setPromptInputValue','6432831QfeGnO','setWebSearch','execute','20FclGiq','setTemplate','change:isLoading','_shouldRestorePromptInputFocus','isModelAvailable','div','selectModel','isLoading','2570838yuodKK','reset','setContextItemLoading','enableModelSelector','set','removeContextItem','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','delegate','abortPromptStream','ck-hidden','resetMessageInput','queryView','bindTemplate','setIsUploadInProgress','setModel','ck-ai-chat-controls-model-unavailable-message'];_0x1eb1=function(){return _0x1b7d6f;};return _0x1eb1();}import'../../../theme/aichat/aichat-controls/aichat-context-controls-balloon-panels.css';export class AIChatControlsView extends _0x12c691{[_0xbff82f(0xf8)];[_0xbff82f(0xd7)];[_0xbff82f(0xe6)];[_0xbff82f(0xfc)];[_0xbff82f(0xef)];[_0xbff82f(0xc0)];constructor(_0x35a9c6,_0x3f5291){const _0x50b444=_0xbff82f;super(_0x35a9c6),this[_0x50b444(0xf8)]=this[_0x50b444(0xdc)](_0x35a9c6,{'bodyCollection':_0x3f5291[_0x50b444(0xf1)],'searchInputVisibleFrom':_0x3f5291[_0x50b444(0x104)]}),this[_0x50b444(0xd7)]=this[_0x50b444(0xff)](_0x35a9c6),this[_0x50b444(0xe6)]=this[_0x50b444(0xea)](_0x35a9c6),this[_0x50b444(0xfc)]=this[_0x50b444(0xe3)](_0x35a9c6),this[_0x50b444(0xef)]=this[_0x50b444(0xe1)](_0x35a9c6),this[_0x50b444(0xc0)]=!0x1,this[_0x50b444(0xd7)][_0x50b444(0xcc)](_0x50b444(0xee))['to'](this),this[_0x50b444(0xfc)][_0x50b444(0xcc)](_0x50b444(0xcd))['to'](this),this[_0x50b444(0xe6)][_0x50b444(0xcc)](_0x50b444(0xf9))['to'](this),this[_0x50b444(0xe6)][_0x50b444(0xcc)](_0x50b444(0xed))['to'](this),this[_0x50b444(0xe6)][_0x50b444(0xcc)](_0x50b444(0xc3))['to'](this),this[_0x50b444(0xf8)][_0x50b444(0xcc)](..._0x5d5901)['to'](this),this[_0x50b444(0xc9)](_0x50b444(0xc1),!0x0),this[_0x50b444(0xc9)](_0x50b444(0x108),!0x1);const _0x1ab272=this[_0x50b444(0xd1)];this[_0x50b444(0xbe)]({'tag':_0x50b444(0xf6),'attributes':{'class':['ck',_0x50b444(0xe4),_0x1ab272['if'](_0x50b444(0x108),_0x50b444(0x102))]},'children':[{'tag':_0x50b444(0xc2),'attributes':{'class':[_0x1ab272['if'](_0x50b444(0xc4),_0x50b444(0xce),_0x5eef63=>_0x5eef63||!this[_0x50b444(0xc1)]),_0x1ab272['if'](_0x50b444(0xc1),_0x50b444(0xce),_0x33cf1a=>!_0x33cf1a||this[_0x50b444(0xc4)])]},'children':[this[_0x50b444(0xf8)],this[_0x50b444(0xd7)],this[_0x50b444(0xe6)]]},{'tag':_0x50b444(0xc2),'attributes':{'class':[_0x1ab272['if'](_0x50b444(0xc4),_0x50b444(0xce),_0x15ee09=>!_0x15ee09)]},'children':[this[_0x50b444(0xfc)]]},{'tag':_0x50b444(0xc2),'attributes':{'class':[_0x1ab272['if'](_0x50b444(0xc1),_0x50b444(0xce),_0x38914b=>_0x38914b)]},'children':[this[_0x50b444(0xef)]]}]}),_0x3ce49b({'emitter':this[_0x50b444(0xd7)],'activator':()=>this[_0x50b444(0xc4)],'contextElements':()=>[this[_0x50b444(0xf2)]],'callback':()=>{const _0x2dc267=_0x50b444;this[_0x2dc267(0xc0)]=!0x1;}}),this['on'](_0x50b444(0xbf),this[_0x50b444(0xfa)],{'priority':_0x50b444(0xe7)});}[_0xbff82f(0xdc)](_0x32dd84,_0x437116){return new _0x3e9b12(_0x32dd84,_0x437116);}[_0xbff82f(0xff)](_0x4a6cf0){const _0x481439=_0xbff82f;return new _0x4d955d(_0x4a6cf0,this[_0x481439(0xf8)][_0x481439(0x105)]);}[_0xbff82f(0xea)](_0x5770c9){return new _0x43a070(_0x5770c9);}[_0xbff82f(0xe3)](_0x27e65c){return new _0x280c11(_0x27e65c);}[_0xbff82f(0xe1)](_0x1a5ebc){const _0x5aa44e=_0xbff82f,_0x2edd0b=new As(_0x1a5ebc);return _0x2edd0b[_0x5aa44e(0xcc)](_0x5aa44e(0xd6))['to'](this),_0x2edd0b;}[_0xbff82f(0xfa)](_0x33ece6,_0x38ae23,_0x102b48){const _0x5f1ee1=_0xbff82f;_0x102b48?this[_0x5f1ee1(0xc0)]=!0x0:this[_0x5f1ee1(0xc0)]&&this[_0x5f1ee1(0xd7)][_0x5f1ee1(0xe5)]();}[_0xbff82f(0x107)](_0x45c3d3,_0x346044){const _0x48fbf0=_0xbff82f;this[_0x48fbf0(0xf8)][_0x48fbf0(0x107)](_0x45c3d3,_0x346044);}[_0xbff82f(0xca)](_0x16f852){const _0x3a06a7=_0xbff82f;this[_0x3a06a7(0xf8)][_0x3a06a7(0xca)](_0x16f852);}[_0xbff82f(0xc7)](_0x40f4dd,_0x1ffe8e){const _0x3570c1=_0xbff82f;this[_0x3570c1(0xf8)][_0x3570c1(0xc7)](_0x40f4dd,_0x1ffe8e);}[_0xbff82f(0xd2)](_0xcfbddd){const _0x3180b4=_0xbff82f;this[_0x3180b4(0xd7)][_0x3180b4(0xd2)](_0xcfbddd);}[_0xbff82f(0xf5)](_0x476502){const _0x1f10d5=_0xbff82f;this[_0x1f10d5(0xf8)][_0x1f10d5(0xf5)](_0x476502);}[_0xbff82f(0xfd)](){const _0x1c796d=_0xbff82f;this[_0x1c796d(0xf8)][_0x1c796d(0x100)]();}[_0xbff82f(0xde)](){const _0x48876c=_0xbff82f;this[_0x48876c(0xf8)][_0x48876c(0xd5)]();}[_0xbff82f(0x103)](_0xb14468,_0x5a30d7,_0x2ed5af){const _0x263f88=_0xbff82f;this[_0x263f88(0xf8)][_0x263f88(0x103)](_0xb14468,_0x5a30d7,_0x2ed5af);}[_0xbff82f(0xbb)](_0x6b28f0){const _0x1e7d11=_0xbff82f;this[_0x1e7d11(0xe6)][_0x1e7d11(0xbb)](_0x6b28f0);}[_0xbff82f(0xec)](_0x1ad79d){const _0x91e545=_0xbff82f;this[_0x91e545(0xe6)][_0x91e545(0xec)](_0x1ad79d);}[_0xbff82f(0xcf)](){const _0xcf1368=_0xbff82f;this[_0xcf1368(0xd7)][_0xcf1368(0xc6)]();}[_0xbff82f(0xf4)](_0x391d7d){const _0x3ef841=_0xbff82f;this[_0x3ef841(0xf8)][_0x3ef841(0xf4)](_0x391d7d);}[_0xbff82f(0xf0)](_0x5728b3){const _0x428afe=_0xbff82f;this[_0x428afe(0xd7)][_0x428afe(0xfe)](_0x5728b3);}[_0xbff82f(0xdd)](_0x131fbb,_0xce6864){const _0x1a9682=_0xbff82f;this[_0x1a9682(0xe6)][_0x1a9682(0xdd)](_0x131fbb,_0xce6864);}[_0xbff82f(0xd3)](_0x143ee1){const _0x2aa21c=_0xbff82f;_0x143ee1?(this[_0x2aa21c(0xc1)]=!0x0,this[_0x2aa21c(0xe6)][_0x2aa21c(0xd3)](_0x143ee1)):this[_0x2aa21c(0xc1)]=!0x1;}[_0xbff82f(0xc8)](){const _0x48cc03=_0xbff82f;this[_0x48cc03(0xe6)][_0x48cc03(0xc8)]();}[_0xbff82f(0xda)](_0x200102){const _0x1322bc=_0xbff82f;this[_0x1322bc(0xe6)][_0x1322bc(0xda)](_0x200102);}[_0xbff82f(0xe9)](_0x14e44e,_0x950b1d,_0xe21b6f,_0x7dbd8b){const _0x488ba4=_0xbff82f;this[_0x488ba4(0xf8)][_0x488ba4(0xe9)](_0x14e44e,_0x950b1d,_0xe21b6f,_0x7dbd8b);}[_0xbff82f(0xdb)](_0x1fe069){const _0xce826a=_0xbff82f;this[_0xce826a(0xf8)][_0xce826a(0xdb)](_0x1fe069);}[_0xbff82f(0x109)](_0x4ad666=!0x1){const _0x4ccb96=_0xbff82f;this[_0x4ccb96(0xd7)][_0x4ccb96(0xe5)](_0x4ad666);}[_0xbff82f(0xb9)](_0x42b207){const _0x29e244=_0xbff82f;this[_0x29e244(0xd7)][_0x29e244(0xd0)][_0x29e244(0xf3)][_0x29e244(0xc6)](),this[_0x29e244(0xd7)][_0x29e244(0xd0)][_0x29e244(0xf3)][_0x29e244(0xd9)]=_0x42b207;}}class As extends _0x12c691{constructor(_0x67b539){const _0xa79575=_0xbff82f;super(_0x67b539);const _0x38e38c=new _0x49d402(_0x67b539);_0x38e38c[_0xa79575(0xc9)]({'label':_0x934eea(this[_0xa79575(0x101)],_0xa79575(0xcb)),'withText':!0x0,'class':[_0xa79575(0xe0)],'tooltip':''}),_0x38e38c[_0xa79575(0xcc)](_0xa79575(0xbc))['to'](this,_0xa79575(0xd6)),this[_0xa79575(0xbe)]({'tag':_0xa79575(0xc2),'attributes':{'class':['ck',_0xa79575(0xd4)]},'children':[{'tag':'p','children':[{'text':_0x934eea(this[_0xa79575(0x101)],_0xa79575(0x10a))+'\x20'},_0x38e38c]}]});}}
23
+ const _0x32fe81=_0x269b;(function(_0x2928c6,_0x5e866c){const _0x43abe3=_0x269b,_0x2fbc2e=_0x2928c6();while(!![]){try{const _0x2f9270=parseInt(_0x43abe3(0x1cd))/0x1+parseInt(_0x43abe3(0x183))/0x2*(parseInt(_0x43abe3(0x190))/0x3)+-parseInt(_0x43abe3(0x1ae))/0x4*(-parseInt(_0x43abe3(0x195))/0x5)+parseInt(_0x43abe3(0x1bc))/0x6*(-parseInt(_0x43abe3(0x1a5))/0x7)+parseInt(_0x43abe3(0x1a8))/0x8+parseInt(_0x43abe3(0x1c0))/0x9+-parseInt(_0x43abe3(0x19b))/0xa;if(_0x2f9270===_0x5e866c)break;else _0x2fbc2e['push'](_0x2fbc2e['shift']());}catch(_0x52a22f){_0x2fbc2e['push'](_0x2fbc2e['shift']());}}}(_0x6949,0x6b400));import{ButtonView as _0x422a5e,clickOutsideHandler as _0x524f0a,View as _0x1c5f62}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x7f653a}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x569d2e}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x1bfae6,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x31d558}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x134baa}from'./controls/aichatcontrolsloaderview.js';import{getTranslation as _0x26edf6}from'../../aicore/utils/common-translations.js';import'../../../theme/aichat/aichat-controls.css';import'../../../theme/aichat/aichat-controls/prompt-input.css';function _0x6949(){const _0x16d1da=['focus','selectModel','abortPromptStream','element','_createModelUnavailableMessageView','3AhOayK','setTemplate','setIsUploadInProgress','setAddContextOptions','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','2695ABFDoV','ck-ai-chat-controls-disabled','_createPromptCapabilitiesView','_promptCapabilitiesView','bindTemplate','setReasoning','14208620LukjsG','reset','addContextItem','ck-ai-chat-controls-model-unavailable-message','toggleReasoning','_createContextPanelView','_contextPanelView','setConversationContext','setInputPlaceholder','sendUserMessage','42xHEvBi','clearPendingContextUI','clearConversationContextUI','4033072UdGQSV','isModelAvailable','isDisabled','resetMessageInput','startConversation','setModel','1724PnRdYN','closeSourceResourceBalloon','contextResourcesSearchInputVisibleFrom','toggleWebSearch','queryView','_handlePromptInputFocus','isLoading','ck-hidden','setPlaceholderText','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','_shouldRestorePromptInputFocus','setPromptInputValue','disableModelSelector','value','18552uRhnOp','addContextButtonView','ck-ai-chat-controls','set','1988352zkhSOk','execute','removeContextItem','bodyCollection','delegate','low','setModelList','div','focusPromptInput','fieldView','updateResourceState','clearCurrentContextItems','_createLoaderView','599282MEWvJg','enableModelSelector','_loaderView','setWebSearch','setContextItemLoading','form','populateSourceResourceBalloon','644114gUJRQF','_promptInputView','_createPromptInputView','locale','ck-ai-chat-controls__start-new-chat-button','clearConversationContextItems','change:isLoading','_modelUnavailableMessageView'];_0x6949=function(){return _0x16d1da;};return _0x6949();}import'../../../theme/aichat/aichat-controls/prompt-capabilities.css';import'../../../theme/aichat/aichat-controls/model-unavailable-message.css';import'../../../theme/aichat/aichat-controls/aichat-context-controls.css';import'../../../theme/aichat/aichat-controls/aichat-context-chip.css';import'../../../theme/aichat/aichat-controls/aichat-controls-button.css';import'../../../theme/aichat/aichat-controls/aichat-controls-loader.css';import'../../../theme/aichat/aichat-controls/aichat-context-controls-balloon-panels.css';function _0x269b(_0x31097a,_0x1a6bac){const _0x6949ca=_0x6949();return _0x269b=function(_0x269bee,_0x1fb9bc){_0x269bee=_0x269bee-0x183;let _0x1b5e64=_0x6949ca[_0x269bee];return _0x1b5e64;},_0x269b(_0x31097a,_0x1a6bac);}export class AIChatControlsView extends _0x1c5f62{[_0x32fe81(0x1a1)];[_0x32fe81(0x184)];[_0x32fe81(0x198)];[_0x32fe81(0x1cf)];[_0x32fe81(0x18a)];[_0x32fe81(0x1b8)];constructor(_0x529ff1,_0x4f98e2){const _0x3c3005=_0x32fe81;super(_0x529ff1),this[_0x3c3005(0x1a1)]=this[_0x3c3005(0x1a0)](_0x529ff1,{'bodyCollection':_0x4f98e2[_0x3c3005(0x1c3)],'searchInputVisibleFrom':_0x4f98e2[_0x3c3005(0x1b0)]}),this[_0x3c3005(0x184)]=this[_0x3c3005(0x185)](_0x529ff1),this[_0x3c3005(0x198)]=this[_0x3c3005(0x197)](_0x529ff1),this[_0x3c3005(0x1cf)]=this[_0x3c3005(0x1cc)](_0x529ff1),this[_0x3c3005(0x18a)]=this[_0x3c3005(0x18f)](_0x529ff1),this[_0x3c3005(0x1b8)]=!0x1,this[_0x3c3005(0x184)][_0x3c3005(0x1c4)](_0x3c3005(0x1a4))['to'](this),this[_0x3c3005(0x1cf)][_0x3c3005(0x1c4)](_0x3c3005(0x18d))['to'](this),this[_0x3c3005(0x198)][_0x3c3005(0x1c4)](_0x3c3005(0x1b1))['to'](this),this[_0x3c3005(0x198)][_0x3c3005(0x1c4)](_0x3c3005(0x19f))['to'](this),this[_0x3c3005(0x198)][_0x3c3005(0x1c4)](_0x3c3005(0x18c))['to'](this),this[_0x3c3005(0x1a1)][_0x3c3005(0x1c4)](..._0x31d558)['to'](this),this[_0x3c3005(0x1bf)](_0x3c3005(0x1a9),!0x0),this[_0x3c3005(0x1bf)](_0x3c3005(0x1aa),!0x1);const _0xcd5ce7=this[_0x3c3005(0x199)];this[_0x3c3005(0x191)]({'tag':_0x3c3005(0x1d2),'attributes':{'class':['ck',_0x3c3005(0x1be),_0xcd5ce7['if'](_0x3c3005(0x1aa),_0x3c3005(0x196))]},'children':[{'tag':_0x3c3005(0x1c7),'attributes':{'class':[_0xcd5ce7['if'](_0x3c3005(0x1b4),_0x3c3005(0x1b5),_0x27cf35=>_0x27cf35||!this[_0x3c3005(0x1a9)]),_0xcd5ce7['if'](_0x3c3005(0x1a9),_0x3c3005(0x1b5),_0x11f1af=>!_0x11f1af||this[_0x3c3005(0x1b4)])]},'children':[this[_0x3c3005(0x1a1)],this[_0x3c3005(0x184)],this[_0x3c3005(0x198)]]},{'tag':_0x3c3005(0x1c7),'attributes':{'class':[_0xcd5ce7['if'](_0x3c3005(0x1b4),_0x3c3005(0x1b5),_0x3b2c9a=>!_0x3b2c9a)]},'children':[this[_0x3c3005(0x1cf)]]},{'tag':_0x3c3005(0x1c7),'attributes':{'class':[_0xcd5ce7['if'](_0x3c3005(0x1a9),_0x3c3005(0x1b5),_0x1daaa2=>_0x1daaa2)]},'children':[this[_0x3c3005(0x18a)]]}]}),_0x524f0a({'emitter':this[_0x3c3005(0x184)],'activator':()=>this[_0x3c3005(0x1b4)],'contextElements':()=>[this[_0x3c3005(0x18e)]],'callback':()=>{const _0x55bce5=_0x3c3005;this[_0x55bce5(0x1b8)]=!0x1;}}),this['on'](_0x3c3005(0x189),this[_0x3c3005(0x1b3)],{'priority':_0x3c3005(0x1c5)});}[_0x32fe81(0x1a0)](_0x2a63bb,_0x5837a8){return new _0x1bfae6(_0x2a63bb,_0x5837a8);}[_0x32fe81(0x185)](_0x22b359){const _0x1dcc9d=_0x32fe81;return new _0x7f653a(_0x22b359,this[_0x1dcc9d(0x1a1)][_0x1dcc9d(0x1bd)]);}[_0x32fe81(0x197)](_0x59bca8){return new _0x569d2e(_0x59bca8);}[_0x32fe81(0x1cc)](_0x28a731){return new _0x134baa(_0x28a731);}[_0x32fe81(0x18f)](_0x3f30c4){const _0x3f1f0b=_0x32fe81,_0x1ca782=new _s(_0x3f30c4);return _0x1ca782[_0x3f1f0b(0x1c4)](_0x3f1f0b(0x1ac))['to'](this),_0x1ca782;}[_0x32fe81(0x1b3)](_0x5b1ddc,_0x588222,_0x323cd8){const _0x522b77=_0x32fe81;_0x323cd8?this[_0x522b77(0x1b8)]=!0x0:this[_0x522b77(0x1b8)]&&this[_0x522b77(0x184)][_0x522b77(0x18b)]();}[_0x32fe81(0x19d)](_0x1ea76a,_0x3e2f2d){const _0x150d42=_0x32fe81;this[_0x150d42(0x1a1)][_0x150d42(0x19d)](_0x1ea76a,_0x3e2f2d);}[_0x32fe81(0x1c2)](_0x6d6e6f){const _0x14093f=_0x32fe81;this[_0x14093f(0x1a1)][_0x14093f(0x1c2)](_0x6d6e6f);}[_0x32fe81(0x1d1)](_0x16a6d3,_0x2af5e2){const _0xb03d87=_0x32fe81;this[_0xb03d87(0x1a1)][_0xb03d87(0x1d1)](_0x16a6d3,_0x2af5e2);}[_0x32fe81(0x192)](_0x40b0c3){const _0x539146=_0x32fe81;this[_0x539146(0x184)][_0x539146(0x192)](_0x40b0c3);}[_0x32fe81(0x1a2)](_0x3d9156){const _0x54a8fb=_0x32fe81;this[_0x54a8fb(0x1a1)][_0x54a8fb(0x1a2)](_0x3d9156);}[_0x32fe81(0x1a6)](){const _0x449341=_0x32fe81;this[_0x449341(0x1a1)][_0x449341(0x1cb)]();}[_0x32fe81(0x1a7)](){const _0x58de99=_0x32fe81;this[_0x58de99(0x1a1)][_0x58de99(0x188)]();}[_0x32fe81(0x1ca)](_0x52e1e3,_0x255f21,_0x4a2610){const _0x4afe55=_0x32fe81;this[_0x4afe55(0x1a1)][_0x4afe55(0x1ca)](_0x52e1e3,_0x255f21,_0x4a2610);}[_0x32fe81(0x1d0)](_0x1b8377){const _0x22b1a2=_0x32fe81;this[_0x22b1a2(0x198)][_0x22b1a2(0x1d0)](_0x1b8377);}[_0x32fe81(0x19a)](_0x1a331a){const _0x49e2b4=_0x32fe81;this[_0x49e2b4(0x198)][_0x49e2b4(0x19a)](_0x1a331a);}[_0x32fe81(0x1ab)](){const _0x22a3cb=_0x32fe81;this[_0x22a3cb(0x184)][_0x22a3cb(0x19c)]();}[_0x32fe81(0x193)](_0x15deda){const _0x1ea6ed=_0x32fe81;this[_0x1ea6ed(0x1a1)][_0x1ea6ed(0x193)](_0x15deda);}[_0x32fe81(0x1a3)](_0x2a2242){const _0x27554a=_0x32fe81;this[_0x27554a(0x184)][_0x27554a(0x1b6)](_0x2a2242);}[_0x32fe81(0x1c6)](_0x1149df,_0x5f0b26){const _0x9cf2a1=_0x32fe81;this[_0x9cf2a1(0x198)][_0x9cf2a1(0x1c6)](_0x1149df,_0x5f0b26);}[_0x32fe81(0x1ad)](_0x51b02c){const _0x35aac9=_0x32fe81;_0x51b02c?(this[_0x35aac9(0x1a9)]=!0x0,this[_0x35aac9(0x198)][_0x35aac9(0x1ad)](_0x51b02c)):this[_0x35aac9(0x1a9)]=!0x1;}[_0x32fe81(0x1ce)](){const _0x432d11=_0x32fe81;this[_0x432d11(0x198)][_0x432d11(0x1ce)]();}[_0x32fe81(0x1ba)](_0xf7f4de){const _0x108544=_0x32fe81;this[_0x108544(0x198)][_0x108544(0x1ba)](_0xf7f4de);}[_0x32fe81(0x1d3)](_0x41b059,_0xffa406,_0x38ee39,_0x278adc){const _0x5c68b8=_0x32fe81;this[_0x5c68b8(0x1a1)][_0x5c68b8(0x1d3)](_0x41b059,_0xffa406,_0x38ee39,_0x278adc);}[_0x32fe81(0x1af)](_0x2f1c0b){const _0x1edb69=_0x32fe81;this[_0x1edb69(0x1a1)][_0x1edb69(0x1af)](_0x2f1c0b);}[_0x32fe81(0x1c8)](_0x40447e=!0x1){const _0x5be4f6=_0x32fe81;this[_0x5be4f6(0x184)][_0x5be4f6(0x18b)](_0x40447e);}[_0x32fe81(0x1b9)](_0x23c94c){const _0x4073d6=_0x32fe81;this[_0x4073d6(0x184)][_0x4073d6(0x1b2)][_0x4073d6(0x1c9)][_0x4073d6(0x19c)](),this[_0x4073d6(0x184)][_0x4073d6(0x1b2)][_0x4073d6(0x1c9)][_0x4073d6(0x1bb)]=_0x23c94c;}}class _s extends _0x1c5f62{constructor(_0x37af76){const _0x31edcf=_0x32fe81;super(_0x37af76);const _0x3c5eca=new _0x422a5e(_0x37af76);_0x3c5eca[_0x31edcf(0x1bf)]({'label':_0x26edf6(this[_0x31edcf(0x186)],_0x31edcf(0x194)),'withText':!0x0,'class':[_0x31edcf(0x187)],'tooltip':''}),_0x3c5eca[_0x31edcf(0x1c4)](_0x31edcf(0x1c1))['to'](this,_0x31edcf(0x1ac)),this[_0x31edcf(0x191)]({'tag':_0x31edcf(0x1c7),'attributes':{'class':['ck',_0x31edcf(0x19e)]},'children':[{'tag':'p','children':[{'text':_0x26edf6(this[_0x31edcf(0x186)],_0x31edcf(0x1b7))+'\x20'},_0x3c5eca]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x471236=_0x2b44;function _0x2b44(_0x5baa79,_0x44f4e5){const _0x350592=_0x3505();return _0x2b44=function(_0x2b444a,_0x5b692a){_0x2b444a=_0x2b444a-0x1cc;let _0x488deb=_0x350592[_0x2b444a];return _0x488deb;},_0x2b44(_0x5baa79,_0x44f4e5);}(function(_0x2bdbe1,_0x43ecd2){const _0x486b5b=_0x2b44,_0x33c11b=_0x2bdbe1();while(!![]){try{const _0x3e4470=-parseInt(_0x486b5b(0x1eb))/0x1+-parseInt(_0x486b5b(0x1f3))/0x2+-parseInt(_0x486b5b(0x1ed))/0x3+parseInt(_0x486b5b(0x1db))/0x4*(-parseInt(_0x486b5b(0x220))/0x5)+parseInt(_0x486b5b(0x1e5))/0x6+parseInt(_0x486b5b(0x1e6))/0x7*(-parseInt(_0x486b5b(0x1ea))/0x8)+parseInt(_0x486b5b(0x1d5))/0x9*(parseInt(_0x486b5b(0x1e8))/0xa);if(_0x3e4470===_0x43ecd2)break;else _0x33c11b['push'](_0x33c11b['shift']());}catch(_0x38fe4c){_0x33c11b['push'](_0x33c11b['shift']());}}}(_0x3505,0xc89e1));import{CKEditorError as _0x4cb051,logWarning as _0x17afb4,scrollAncestorsToShowTarget as _0x441628}from'ckeditor5/src/utils.js';import{View as _0x577c9a}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x3ce74d}from'../utils/eventnames.js';function _0x3505(){const _0x9e8d9a=['delegate','scrollManager','ai-chat-feed-view-item-not-found','markAsDone','startAutoScroll','children','set','ai-reply','updateContent','scrollToSuggestion','updatePartState','_setupTemplate','element','40CyKDvq','interaction-header','start','ck-ai-chat__feed','extendTemplate','ai-suggestion-reply','ck-ai-chat__loader-text','span','ck-ai-chat__loader','updateSuggestionPartState','addItem','user-message','stop','30522717gESyms','locale','markItemAsDone','destroy','ai-chat-feed-view-item-not-a-suggestion-item','loadingMessage','512772Jpqbuz','render','bind','options','add','setPartActive','parentElement','updateReplyItem','setLoadingMessage','isVisible','5251464OUrXPr','2995153NCZeZd','getItemIds','10REGkpk','isLoadingSkeletonVisible','16RfXMyC','116652MMOtIs','forEach','119610ejIZiC','ck-hidden','filter','custom-element','_createLoaderChildren','includes','2814208eYLynU','bindTemplate','div','_createSkeletonLoader','updateWebSources','_createTemplateChildren','updateSuggestionItem','getPartView','removeItem','aiFeed','toggleLoadingSkeleton','createCollection','isTrackChangesOn','_createFeedItems','hasItem','ai-chat-feed-view-item-not-a-reply-item','setTemplate','find','updateSources','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','setSuggestionPartActive','map','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','_createFeedLoader','clear','remove','_bodyCollection','isPending','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','ck-ai-chat__feed__items','stopAutoScroll','getItemById'];_0x3505=function(){return _0x9e8d9a;};return _0x3505();}import{AIChatFeedSuggestionItemView as _0x21e6c9}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x412c12}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x40c06f}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x843502}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x37bb2f}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x152a0d}from'../../aicore/utils/scrollmanager.js';import{AISkeletonView as _0x35bd8f,SKELETON_DEFINITIONS as _0x2028da}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x373974}from'../../aicore/ui/aispinner.js';import{AIChatFeedCustomElementView as _0x347788}from'./feed/aichatfeedcustomelementview.js';import'../../../theme/aichat/aichatfeed.css';export class AIChatFeedView extends _0x577c9a{[_0x471236(0x218)];[_0x471236(0x214)];[_0x471236(0x20d)];constructor(_0x1e9ef9,_0x3f27bb){const _0x47f2b6=_0x471236;super(_0x1e9ef9),this[_0x47f2b6(0x20d)]=_0x3f27bb,this[_0x47f2b6(0x219)](_0x47f2b6(0x20e),!0x1),this[_0x47f2b6(0x219)](_0x47f2b6(0x1da),''),this[_0x47f2b6(0x219)](_0x47f2b6(0x1e9),!0x1),this[_0x47f2b6(0x219)](_0x47f2b6(0x1ff),!0x1),this[_0x47f2b6(0x218)]=this[_0x47f2b6(0x1fe)](),this[_0x47f2b6(0x218)][_0x47f2b6(0x213)](..._0x3ce74d)['to'](this),this[_0x47f2b6(0x21e)]();}[_0x471236(0x1dc)](){const _0x4ab22f=_0x471236;super[_0x4ab22f(0x1dc)](),this[_0x4ab22f(0x214)]=new _0x152a0d(this[_0x4ab22f(0x21f)]);}[_0x471236(0x1d8)](){const _0x515b9f=_0x471236;super[_0x515b9f(0x1d8)](),this[_0x515b9f(0x214)][_0x515b9f(0x1d8)]();}[_0x471236(0x20b)](){const _0x3ce4c8=_0x471236;this[_0x3ce4c8(0x218)][_0x3ce4c8(0x20b)]();}[_0x471236(0x1d2)](_0x54f4b7,_0xea0093){const _0x378647=_0x471236;let _0xb361c;return _0x378647(0x21a)===_0x54f4b7?_0xb361c=new _0x412c12(this[_0x378647(0x1d6)],_0xea0093,this[_0x378647(0x20d)]):_0x378647(0x1cd)===_0x54f4b7?(_0xb361c=new _0x21e6c9(this[_0x378647(0x1d6)],_0xea0093,this[_0x378647(0x20d)]),_0xb361c[_0x378647(0x1dd)](_0x378647(0x1ff))['to'](this)):_0xb361c=_0x378647(0x1d3)===_0x54f4b7?new _0x40c06f(this[_0x378647(0x1d6)],_0xea0093,this[_0x378647(0x20d)]):_0x378647(0x221)===_0x54f4b7?new _0x37bb2f(this[_0x378647(0x1d6)],_0xea0093):_0x378647(0x1f0)===_0x54f4b7?new _0x347788(_0xea0093):new _0x843502(_0xea0093),this[_0x378647(0x218)][_0x378647(0x1df)](_0xb361c),_0xb361c;}async[_0x471236(0x1e2)]({id:_0x448139,parsedContent:_0x464e66,renderingStrategy:_0x315dcb,abortSignal:_0x2a9367}){const _0xfd2afc=_0x471236,_0x26a469=this[_0xfd2afc(0x212)](_0x448139);if(!(_0x26a469 instanceof _0x412c12))throw new _0x4cb051(_0xfd2afc(0x202),null,{'itemView':_0x26a469,'id':_0x448139,'parsedContent':_0x464e66});await _0x26a469[_0xfd2afc(0x21b)]({'parsedContent':_0x464e66,'renderingStrategy':_0x315dcb,'abortSignal':_0x2a9367});}async[_0x471236(0x1f7)](_0x36b820,_0x9d9948){const _0x385bcb=_0x471236,_0x59621e=this[_0x385bcb(0x212)](_0x36b820);if(_0x59621e instanceof _0x21e6c9)_0x59621e[_0x385bcb(0x205)](_0x9d9948);else{if(!(_0x59621e instanceof _0x412c12))throw new _0x4cb051(_0x385bcb(0x209),null,{'itemView':_0x59621e,'id':_0x36b820,'sources':_0x9d9948});_0x59621e[_0x385bcb(0x205)](_0x9d9948);}}async[_0x471236(0x1f9)]({id:_0x52f565,parts:_0x509824,renderingStrategy:_0x7395e1,abortSignal:_0xfdb112}){const _0x3cd0cd=_0x471236,_0x3a468b=this[_0x3cd0cd(0x212)](_0x52f565);if(!(_0x3a468b instanceof _0x21e6c9))throw new _0x4cb051(_0x3cd0cd(0x1d9),null,{'itemView':_0x3a468b,'id':_0x52f565,'parts':_0x509824});await _0x3a468b[_0x3cd0cd(0x21b)]({'parts':_0x509824,'renderingStrategy':_0x7395e1,'abortSignal':_0xfdb112});}[_0x471236(0x1d1)]({id:_0x56fd48,index:_0x228fb6,state:_0xdc0c38}){const _0x1f1c0d=_0x471236,_0x320ad9=this[_0x1f1c0d(0x212)](_0x56fd48);if(!(_0x320ad9 instanceof _0x21e6c9))throw new _0x4cb051(_0x1f1c0d(0x1d9),this,{'id':_0x56fd48});_0x320ad9[_0x1f1c0d(0x21d)](_0x228fb6,_0xdc0c38);}[_0x471236(0x207)]({id:_0xc52f96,index:_0x32af32,isActive:_0x3a1189}){const _0x1c8d4c=_0x471236,_0x5656e1=this[_0x1c8d4c(0x212)](_0xc52f96);if(!(_0x5656e1 instanceof _0x21e6c9))throw new _0x4cb051(_0x1c8d4c(0x1d9),this,{'id':_0xc52f96});this[_0x1c8d4c(0x218)][_0x1c8d4c(0x1ef)](_0x1d475b=>_0x1d475b instanceof _0x21e6c9)[_0x1c8d4c(0x1ec)](_0x18a092=>{const _0x546934=_0x1c8d4c;_0x18a092[_0x546934(0x1e0)](!0x1);}),_0x5656e1[_0x1c8d4c(0x1e0)](_0x32af32,_0x3a1189);}[_0x471236(0x1d7)](_0x148ee8){const _0x35c108=_0x471236;this[_0x35c108(0x212)](_0x148ee8)[_0x35c108(0x216)]();}[_0x471236(0x1e7)](){const _0x2dd814=_0x471236;return this[_0x2dd814(0x218)][_0x2dd814(0x208)](_0x57625d=>_0x57625d[_0x2dd814(0x1de)]['id']);}[_0x471236(0x1fb)](_0x118945){const _0x52fde4=_0x471236;this[_0x52fde4(0x218)][_0x52fde4(0x20c)](this[_0x52fde4(0x212)](_0x118945));}[_0x471236(0x201)](_0x5cea77){const _0xadd88c=_0x471236;return!!this[_0xadd88c(0x218)][_0xadd88c(0x204)](_0x14962d=>_0x14962d[_0xadd88c(0x1de)]['id'][_0xadd88c(0x1f2)](_0x5cea77));}[_0x471236(0x21c)](_0x3ebb05,_0x2a8221){const _0x7bc2=_0x471236,_0xd1a453=this[_0x7bc2(0x212)](_0x3ebb05);if(!(_0xd1a453 instanceof _0x21e6c9))return void _0x17afb4(_0x7bc2(0x20f),{'replyId':_0x3ebb05,'partIndex':_0x2a8221});const _0x465240=_0xd1a453[_0x7bc2(0x1fa)](_0x2a8221);_0x465240?_0x441628(_0x465240[_0x7bc2(0x21f)],0x14,this[_0x7bc2(0x21f)][_0x7bc2(0x1e1)],!0x0,!0x0):_0x17afb4(_0x7bc2(0x206),{'replyId':_0x3ebb05,'partIndex':_0x2a8221});}[_0x471236(0x21e)](){const _0x48cce0=_0x471236;this[_0x48cce0(0x203)]({'tag':_0x48cce0(0x1f5),'attributes':{'class':['ck',_0x48cce0(0x223)]},'children':this[_0x48cce0(0x1f8)]()});}[_0x471236(0x1f8)](){const _0x1e8244=_0x471236,_0x4cf51a=this[_0x1e8244(0x1f6)]();return[this[_0x1e8244(0x200)](),_0x4cf51a,this[_0x1e8244(0x20a)]()];}[_0x471236(0x1f6)](){const _0x33f5f1=_0x471236,_0x136fc4=new _0x35bd8f(this[_0x33f5f1(0x1d6)],_0x2028da[_0x33f5f1(0x1fc)]);return _0x136fc4[_0x33f5f1(0x1cc)]({'attributes':{'class':[this[_0x33f5f1(0x1f4)]['if'](_0x33f5f1(0x1e9),_0x33f5f1(0x1ee),_0x5530d6=>!_0x5530d6)]}}),_0x136fc4;}[_0x471236(0x200)](){const _0x1349f0=_0x471236,_0x2758a0=new _0x577c9a(this[_0x1349f0(0x1d6)]);return _0x2758a0[_0x1349f0(0x203)]({'tag':_0x1349f0(0x1f5),'attributes':{'class':['ck',_0x1349f0(0x210),this[_0x1349f0(0x1f4)]['if'](_0x1349f0(0x1e9),_0x1349f0(0x1ee))]},'children':this[_0x1349f0(0x218)]}),_0x2758a0;}[_0x471236(0x20a)](){const _0x157661=_0x471236,_0x367db4=new _0x577c9a(this[_0x157661(0x1d6)]);return _0x367db4[_0x157661(0x203)]({'tag':_0x157661(0x1f5),'attributes':{'class':['ck',_0x157661(0x1d0),this[_0x157661(0x1f4)]['if'](_0x157661(0x20e),_0x157661(0x1ee),_0x3beecb=>!_0x3beecb)]},'children':this[_0x157661(0x1f1)]()}),_0x367db4;}[_0x471236(0x1f1)](){const _0x1502fc=_0x471236,_0x2a105f=new _0x373974();return _0x2a105f[_0x1502fc(0x1e4)]=!0x0,[_0x2a105f,{'tag':_0x1502fc(0x1cf),'attributes':{'class':['ck',_0x1502fc(0x1ce)]},'children':[{'text':this[_0x1502fc(0x1f4)]['to'](_0x1502fc(0x1da))}]}];}[_0x471236(0x212)](_0x55b652){const _0x5f302d=_0x471236,_0x5d845a=this[_0x5f302d(0x218)][_0x5f302d(0x204)](_0x4661e8=>_0x4661e8[_0x5f302d(0x1de)]['id'][_0x5f302d(0x1f2)](_0x55b652));if(!_0x5d845a)throw new _0x4cb051(_0x5f302d(0x215),this,{'id':_0x55b652});return _0x5d845a;}[_0x471236(0x1e3)](_0x5ae94c){const _0x1aaa7b=_0x471236;this[_0x1aaa7b(0x219)](_0x1aaa7b(0x1da),_0x5ae94c);}[_0x471236(0x1fd)](_0x263d91){const _0x9a052e=_0x471236;this[_0x9a052e(0x219)](_0x9a052e(0x1e9),_0x263d91);}[_0x471236(0x217)](){const _0x8cf461=_0x471236;this[_0x8cf461(0x214)][_0x8cf461(0x222)]();}[_0x471236(0x211)](){const _0x13e936=_0x471236;this[_0x13e936(0x214)][_0x13e936(0x1d4)]();}}
23
+ const _0x5abc47=_0x5b9e;(function(_0x5439db,_0x378f2a){const _0xdb34ad=_0x5b9e,_0x231126=_0x5439db();while(!![]){try{const _0x4a9811=parseInt(_0xdb34ad(0x16d))/0x1*(-parseInt(_0xdb34ad(0x170))/0x2)+parseInt(_0xdb34ad(0x169))/0x3+parseInt(_0xdb34ad(0x197))/0x4+parseInt(_0xdb34ad(0x17b))/0x5*(parseInt(_0xdb34ad(0x196))/0x6)+parseInt(_0xdb34ad(0x1b9))/0x7*(parseInt(_0xdb34ad(0x1b5))/0x8)+parseInt(_0xdb34ad(0x1ae))/0x9*(parseInt(_0xdb34ad(0x1bb))/0xa)+-parseInt(_0xdb34ad(0x188))/0xb*(parseInt(_0xdb34ad(0x180))/0xc);if(_0x4a9811===_0x378f2a)break;else _0x231126['push'](_0x231126['shift']());}catch(_0x9298ad){_0x231126['push'](_0x231126['shift']());}}}(_0x4325,0x44860));import{CKEditorError as _0xa5c54d,logWarning as _0x4cb399,scrollAncestorsToShowTarget as _0x3a7d91}from'ckeditor5/src/utils.js';import{View as _0x73ac11}from'ckeditor5/src/ui.js';function _0x5b9e(_0x17fea9,_0x5d226e){const _0x4325fb=_0x4325();return _0x5b9e=function(_0x5b9ee3,_0x452d31){_0x5b9ee3=_0x5b9ee3-0x169;let _0x300e3b=_0x4325fb[_0x5b9ee3];return _0x300e3b;},_0x5b9e(_0x17fea9,_0x5d226e);}import{AI_CHAT_UI_EVENT_NAMES as _0x4a36c0}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x51471e}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x1e8454}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x431d95}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x11c935}from'./feed/aichatfeederroritemview.js';function _0x4325(){const _0x9066a4=['element','updatePartState','options','find','setSuggestionPartActive','updateSuggestionPartState','stop','ck-ai-chat__feed','getItemById','ai-chat-feed-view-item-not-a-reply-item','172629Glmewb','_createFeedItems','updateContent','stopAutoScroll','markAsDone','includes','startAutoScroll','7232eUkgCt','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','_setupTemplate','span','1631bFbTQi','ck-ai-chat__loader-text','110IxrCaa','forEach','updateReplyItem','set','add','_bodyCollection','bind','ai-suggestion-reply','478659mgsTzD','div','createCollection','interaction-header','214ExKyDm','start','toggleLoadingSkeleton','930KmtaQQ','_createLoaderChildren','delegate','loadingMessage','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','render','isLoadingSkeletonVisible','updateSources','ck-ai-chat__feed__items','getPartView','addItem','658770PPUqoM','scrollToSuggestion','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','user-message','parentElement','312Llespi','getItemIds','updateSuggestionItem','markItemAsDone','clear','filter','ai-chat-feed-view-item-not-a-suggestion-item','setLoadingMessage','475123NlygKM','setPartActive','isTrackChangesOn','hasItem','setTemplate','scrollManager','remove','_createTemplateChildren','ck-hidden','destroy','custom-element','updateWebSources','aiFeed','removeItem','18EwhoBL','2107048NyYnzt','isPending','bindTemplate','locale','children','ck-ai-chat__loader','isVisible','map','_createFeedLoader','_createSkeletonLoader','ai-reply','ai-chat-feed-view-item-not-found','extendTemplate'];_0x4325=function(){return _0x9066a4;};return _0x4325();}import{AIChatFeedInteractionHeaderView as _0x266e7a}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x3c95e7}from'../../aicore/utils/scrollmanager.js';import{AISkeletonView as _0x394b2b,SKELETON_DEFINITIONS as _0x33ffb5}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x138dc8}from'../../aicore/ui/aispinner.js';import{AIChatFeedCustomElementView as _0x5a7932}from'./feed/aichatfeedcustomelementview.js';import'../../../theme/aichat/aichatfeed.css';export class AIChatFeedView extends _0x73ac11{[_0x5abc47(0x19b)];[_0x5abc47(0x18d)];[_0x5abc47(0x1c0)];constructor(_0x4c609c,_0x56ff27){const _0x402a03=_0x5abc47;super(_0x4c609c),this[_0x402a03(0x1c0)]=_0x56ff27,this[_0x402a03(0x1be)](_0x402a03(0x198),!0x1),this[_0x402a03(0x1be)](_0x402a03(0x173),''),this[_0x402a03(0x1be)](_0x402a03(0x176),!0x1),this[_0x402a03(0x1be)](_0x402a03(0x18a),!0x1),this[_0x402a03(0x19b)]=this[_0x402a03(0x16b)](),this[_0x402a03(0x19b)][_0x402a03(0x172)](..._0x4a36c0)['to'](this),this[_0x402a03(0x1b7)]();}[_0x5abc47(0x175)](){const _0x2e9c2d=_0x5abc47;super[_0x2e9c2d(0x175)](),this[_0x2e9c2d(0x18d)]=new _0x3c95e7(this[_0x2e9c2d(0x1a4)]);}[_0x5abc47(0x191)](){const _0x3e1474=_0x5abc47;super[_0x3e1474(0x191)](),this[_0x3e1474(0x18d)][_0x3e1474(0x191)]();}[_0x5abc47(0x184)](){const _0x43ddf4=_0x5abc47;this[_0x43ddf4(0x19b)][_0x43ddf4(0x184)]();}[_0x5abc47(0x17a)](_0x4e3630,_0x25c4f9){const _0x28ce5c=_0x5abc47;let _0x21517e;return _0x28ce5c(0x1a1)===_0x4e3630?_0x21517e=new _0x1e8454(this[_0x28ce5c(0x19a)],_0x25c4f9,this[_0x28ce5c(0x1c0)]):_0x28ce5c(0x1c2)===_0x4e3630?(_0x21517e=new _0x51471e(this[_0x28ce5c(0x19a)],_0x25c4f9,this[_0x28ce5c(0x1c0)]),_0x21517e[_0x28ce5c(0x1c1)](_0x28ce5c(0x18a))['to'](this)):_0x21517e=_0x28ce5c(0x17e)===_0x4e3630?new _0x431d95(this[_0x28ce5c(0x19a)],_0x25c4f9,this[_0x28ce5c(0x1c0)]):_0x28ce5c(0x16c)===_0x4e3630?new _0x266e7a(this[_0x28ce5c(0x19a)],_0x25c4f9):_0x28ce5c(0x192)===_0x4e3630?new _0x5a7932(_0x25c4f9):new _0x11c935(_0x25c4f9),this[_0x28ce5c(0x19b)][_0x28ce5c(0x1bf)](_0x21517e),_0x21517e;}async[_0x5abc47(0x1bd)]({id:_0xdb9a41,parsedContent:_0x3d600d,renderingStrategy:_0x101889,abortSignal:_0x2d83e3}){const _0x144143=_0x5abc47,_0x5c8d3d=this[_0x144143(0x1ac)](_0xdb9a41);if(!(_0x5c8d3d instanceof _0x1e8454))throw new _0xa5c54d(_0x144143(0x1ad),null,{'itemView':_0x5c8d3d,'id':_0xdb9a41,'parsedContent':_0x3d600d});await _0x5c8d3d[_0x144143(0x1b0)]({'parsedContent':_0x3d600d,'renderingStrategy':_0x101889,'abortSignal':_0x2d83e3});}async[_0x5abc47(0x193)](_0x437d5c,_0x2d888b){const _0x3302b0=_0x5abc47,_0x56a1b2=this[_0x3302b0(0x1ac)](_0x437d5c);if(_0x56a1b2 instanceof _0x51471e)_0x56a1b2[_0x3302b0(0x177)](_0x2d888b);else{if(!(_0x56a1b2 instanceof _0x1e8454))throw new _0xa5c54d(_0x3302b0(0x174),null,{'itemView':_0x56a1b2,'id':_0x437d5c,'sources':_0x2d888b});_0x56a1b2[_0x3302b0(0x177)](_0x2d888b);}}async[_0x5abc47(0x182)]({id:_0x4417fa,parts:_0x21cc01,renderingStrategy:_0x435dd4,abortSignal:_0x40ae13}){const _0x58bafb=_0x5abc47,_0x5960e8=this[_0x58bafb(0x1ac)](_0x4417fa);if(!(_0x5960e8 instanceof _0x51471e))throw new _0xa5c54d(_0x58bafb(0x186),null,{'itemView':_0x5960e8,'id':_0x4417fa,'parts':_0x21cc01});await _0x5960e8[_0x58bafb(0x1b0)]({'parts':_0x21cc01,'renderingStrategy':_0x435dd4,'abortSignal':_0x40ae13});}[_0x5abc47(0x1a9)]({id:_0xa4debd,index:_0x5898be,state:_0x323b17}){const _0x2decfd=_0x5abc47,_0x55d9e4=this[_0x2decfd(0x1ac)](_0xa4debd);if(!(_0x55d9e4 instanceof _0x51471e))throw new _0xa5c54d(_0x2decfd(0x186),this,{'id':_0xa4debd});_0x55d9e4[_0x2decfd(0x1a5)](_0x5898be,_0x323b17);}[_0x5abc47(0x1a8)]({id:_0x1bea78,index:_0x354617,isActive:_0x336eeb}){const _0x44191b=_0x5abc47,_0x57baae=this[_0x44191b(0x1ac)](_0x1bea78);if(!(_0x57baae instanceof _0x51471e))throw new _0xa5c54d(_0x44191b(0x186),this,{'id':_0x1bea78});this[_0x44191b(0x19b)][_0x44191b(0x185)](_0x30baa2=>_0x30baa2 instanceof _0x51471e)[_0x44191b(0x1bc)](_0x3e523d=>{const _0x5ef523=_0x44191b;_0x3e523d[_0x5ef523(0x189)](!0x1);}),_0x57baae[_0x44191b(0x189)](_0x354617,_0x336eeb);}[_0x5abc47(0x183)](_0x3bd400){const _0x4f1933=_0x5abc47;this[_0x4f1933(0x1ac)](_0x3bd400)[_0x4f1933(0x1b2)]();}[_0x5abc47(0x181)](){const _0x1eec6f=_0x5abc47;return this[_0x1eec6f(0x19b)][_0x1eec6f(0x19e)](_0x80152=>_0x80152[_0x1eec6f(0x1a6)]['id']);}[_0x5abc47(0x195)](_0x226af3){const _0x1b21c8=_0x5abc47;this[_0x1b21c8(0x19b)][_0x1b21c8(0x18e)](this[_0x1b21c8(0x1ac)](_0x226af3));}[_0x5abc47(0x18b)](_0x482ee4){const _0x1216cc=_0x5abc47;return!!this[_0x1216cc(0x19b)][_0x1216cc(0x1a7)](_0x1ff7e4=>_0x1ff7e4[_0x1216cc(0x1a6)]['id'][_0x1216cc(0x1b3)](_0x482ee4));}[_0x5abc47(0x17c)](_0x492f15,_0x306b1d){const _0x248302=_0x5abc47,_0xdce734=this[_0x248302(0x1ac)](_0x492f15);if(!(_0xdce734 instanceof _0x51471e))return void _0x4cb399(_0x248302(0x1b6),{'replyId':_0x492f15,'partIndex':_0x306b1d});const _0x138b37=_0xdce734[_0x248302(0x179)](_0x306b1d);_0x138b37?_0x3a7d91(_0x138b37[_0x248302(0x1a4)],0x14,this[_0x248302(0x1a4)][_0x248302(0x17f)],!0x0,!0x0):_0x4cb399(_0x248302(0x17d),{'replyId':_0x492f15,'partIndex':_0x306b1d});}[_0x5abc47(0x1b7)](){const _0x39afac=_0x5abc47;this[_0x39afac(0x18c)]({'tag':_0x39afac(0x16a),'attributes':{'class':['ck',_0x39afac(0x1ab)]},'children':this[_0x39afac(0x18f)]()});}[_0x5abc47(0x18f)](){const _0x5066ee=_0x5abc47,_0x44e364=this[_0x5066ee(0x1a0)]();return[this[_0x5066ee(0x1af)](),_0x44e364,this[_0x5066ee(0x19f)]()];}[_0x5abc47(0x1a0)](){const _0x5e61c0=_0x5abc47,_0x5ee79c=new _0x394b2b(this[_0x5e61c0(0x19a)],_0x33ffb5[_0x5e61c0(0x194)]);return _0x5ee79c[_0x5e61c0(0x1a3)]({'attributes':{'class':[this[_0x5e61c0(0x199)]['if'](_0x5e61c0(0x176),_0x5e61c0(0x190),_0x3e0840=>!_0x3e0840)]}}),_0x5ee79c;}[_0x5abc47(0x1af)](){const _0x4b3bc8=_0x5abc47,_0x4096d8=new _0x73ac11(this[_0x4b3bc8(0x19a)]);return _0x4096d8[_0x4b3bc8(0x18c)]({'tag':_0x4b3bc8(0x16a),'attributes':{'class':['ck',_0x4b3bc8(0x178),this[_0x4b3bc8(0x199)]['if'](_0x4b3bc8(0x176),_0x4b3bc8(0x190))]},'children':this[_0x4b3bc8(0x19b)]}),_0x4096d8;}[_0x5abc47(0x19f)](){const _0x1540ad=_0x5abc47,_0x2bc635=new _0x73ac11(this[_0x1540ad(0x19a)]);return _0x2bc635[_0x1540ad(0x18c)]({'tag':_0x1540ad(0x16a),'attributes':{'class':['ck',_0x1540ad(0x19c),this[_0x1540ad(0x199)]['if'](_0x1540ad(0x198),_0x1540ad(0x190),_0x4800c0=>!_0x4800c0)]},'children':this[_0x1540ad(0x171)]()}),_0x2bc635;}[_0x5abc47(0x171)](){const _0x4717d9=_0x5abc47,_0x10803e=new _0x138dc8();return _0x10803e[_0x4717d9(0x19d)]=!0x0,[_0x10803e,{'tag':_0x4717d9(0x1b8),'attributes':{'class':['ck',_0x4717d9(0x1ba)]},'children':[{'text':this[_0x4717d9(0x199)]['to'](_0x4717d9(0x173))}]}];}[_0x5abc47(0x1ac)](_0x592640){const _0x3a6c70=_0x5abc47,_0x4fe150=this[_0x3a6c70(0x19b)][_0x3a6c70(0x1a7)](_0x3f12ae=>_0x3f12ae[_0x3a6c70(0x1a6)]['id'][_0x3a6c70(0x1b3)](_0x592640));if(!_0x4fe150)throw new _0xa5c54d(_0x3a6c70(0x1a2),this,{'id':_0x592640});return _0x4fe150;}[_0x5abc47(0x187)](_0x4fa3b4){const _0xa6069=_0x5abc47;this[_0xa6069(0x1be)](_0xa6069(0x173),_0x4fa3b4);}[_0x5abc47(0x16f)](_0x157208){const _0x47cc8d=_0x5abc47;this[_0x47cc8d(0x1be)](_0x47cc8d(0x176),_0x157208);}[_0x5abc47(0x1b4)](){const _0x5f35ab=_0x5abc47;this[_0x5f35ab(0x18d)][_0x5f35ab(0x16e)]();}[_0x5abc47(0x1b1)](){const _0x1281e3=_0x5abc47;this[_0x1281e3(0x18d)][_0x1281e3(0x1aa)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x39704a=_0x465a;(function(_0x14fdfd,_0x1b0348){const _0x489cb0=_0x465a,_0x7eff26=_0x14fdfd();while(!![]){try{const _0xca7102=-parseInt(_0x489cb0(0x1f0))/0x1*(parseInt(_0x489cb0(0x200))/0x2)+-parseInt(_0x489cb0(0x1f7))/0x3*(parseInt(_0x489cb0(0x1f4))/0x4)+parseInt(_0x489cb0(0x201))/0x5+parseInt(_0x489cb0(0x1f6))/0x6+-parseInt(_0x489cb0(0x1f8))/0x7*(-parseInt(_0x489cb0(0x1eb))/0x8)+parseInt(_0x489cb0(0x1ed))/0x9+-parseInt(_0x489cb0(0x1fd))/0xa;if(_0xca7102===_0x1b0348)break;else _0x7eff26['push'](_0x7eff26['shift']());}catch(_0x1abcc0){_0x7eff26['push'](_0x7eff26['shift']());}}}(_0x575c,0xe21ed));import{ButtonView as _0x175db4,FormHeaderView as _0x49c2a5}from'ckeditor5/src/ui.js';function _0x465a(_0x22bc7d,_0x474238){const _0x575cf1=_0x575c();return _0x465a=function(_0x465ab7,_0x597596){_0x465ab7=_0x465ab7-0x1eb;let _0x1e7ca7=_0x575cf1[_0x465ab7];return _0x1e7ca7;},_0x465a(_0x22bc7d,_0x474238);}import{IconPlus as _0x5373b1,IconAIChat as _0x1e7faf}from'ckeditor5/src/icons.js';import{getTranslation as _0x81d8fb}from'../../aicore/utils/common-translations.js';import{createResizeButton as _0x3bbb16}from'../../aicore/utils/createresizebutton.js';function _0x575c(){const _0x5cf98a=['isMaximized','execute','ck-ai-header\x20ck-ai-header_chat','70936gkNQOu','resizeButton','10939938LMAmVA','159WVXnri','7WPTgYo','conversationStartButton','set','ck-ai-chat__start-conversation','_createStartConversationButton','16569270cHeAYH','children','add','56530eVBUZK','3392110iSFBhf','fire','AI_CHAT_HEADING','5925704fJrjoI','AI_CHAT_LABEL_NEW_CHAT','4051350FHRXcJ','startConversation','locale','6TEFPSM'];_0x575c=function(){return _0x5cf98a;};return _0x575c();}import'../../../theme/common/aiheader.css';export class AIChatHeaderView extends _0x49c2a5{[_0x39704a(0x1f9)];[_0x39704a(0x1f5)];constructor(_0x374a3f,_0x490503){const _0x407bf9=_0x39704a;super(_0x374a3f,{'label':_0x81d8fb(_0x374a3f,_0x407bf9(0x203)),'class':_0x407bf9(0x1f3),'icon':_0x1e7faf}),this[_0x407bf9(0x1fa)](_0x407bf9(0x1f1),!0x1),this[_0x407bf9(0x1f9)]=this[_0x407bf9(0x1fc)](_0x374a3f),this[_0x407bf9(0x1fe)][_0x407bf9(0x1ff)](this[_0x407bf9(0x1f9)]),_0x490503&&(this[_0x407bf9(0x1f5)]=_0x3bbb16(_0x374a3f,this),this[_0x407bf9(0x1fe)][_0x407bf9(0x1ff)](this[_0x407bf9(0x1f5)]));}[_0x39704a(0x1fc)](_0x160b7e){const _0x41eb2b=_0x39704a,_0x1e92c4=new _0x175db4(_0x160b7e);return _0x1e92c4[_0x41eb2b(0x1fa)]({'label':_0x81d8fb(this[_0x41eb2b(0x1ef)],_0x41eb2b(0x1ec)),'withText':!0x0,'icon':_0x5373b1,'class':_0x41eb2b(0x1fb)}),_0x1e92c4['on'](_0x41eb2b(0x1f2),()=>{const _0x2b59a5=_0x41eb2b;this[_0x2b59a5(0x202)](_0x2b59a5(0x1ee));}),_0x1e92c4;}}
23
+ function _0x44de(_0x5efdde,_0x2581e0){const _0x248fd2=_0x248f();return _0x44de=function(_0x44deb3,_0x78a0a5){_0x44deb3=_0x44deb3-0x81;let _0x5b1335=_0x248fd2[_0x44deb3];return _0x5b1335;},_0x44de(_0x5efdde,_0x2581e0);}const _0x1e479d=_0x44de;(function(_0x447fce,_0x4a4847){const _0x5986df=_0x44de,_0x2f8a58=_0x447fce();while(!![]){try{const _0x17f992=-parseInt(_0x5986df(0x87))/0x1*(-parseInt(_0x5986df(0x81))/0x2)+-parseInt(_0x5986df(0x88))/0x3*(-parseInt(_0x5986df(0x8b))/0x4)+parseInt(_0x5986df(0x8d))/0x5+-parseInt(_0x5986df(0x98))/0x6*(-parseInt(_0x5986df(0x90))/0x7)+parseInt(_0x5986df(0x94))/0x8+parseInt(_0x5986df(0x93))/0x9+-parseInt(_0x5986df(0x83))/0xa;if(_0x17f992===_0x4a4847)break;else _0x2f8a58['push'](_0x2f8a58['shift']());}catch(_0x33defb){_0x2f8a58['push'](_0x2f8a58['shift']());}}}(_0x248f,0x2fbd3));import{ButtonView as _0x17fdc7,FormHeaderView as _0x34a0a}from'ckeditor5/src/ui.js';import{IconPlus as _0x1e8653,IconAIChat as _0x329a00}from'ckeditor5/src/icons.js';import{getTranslation as _0x30f8cf}from'../../aicore/utils/common-translations.js';import{createResizeButton as _0x2af6a2}from'../../aicore/utils/createresizebutton.js';import'../../../theme/common/aiheader.css';export class AIChatHeaderView extends _0x34a0a{[_0x1e479d(0x8a)];[_0x1e479d(0x99)];constructor(_0x17a7d4,_0x11e37d){const _0x41a961=_0x1e479d;super(_0x17a7d4,{'label':_0x30f8cf(_0x17a7d4,_0x41a961(0x84)),'class':_0x41a961(0x89),'icon':_0x329a00}),this[_0x41a961(0x95)](_0x41a961(0x8e),!0x1),this[_0x41a961(0x8a)]=this[_0x41a961(0x82)](_0x17a7d4),this[_0x41a961(0x85)][_0x41a961(0x8c)](this[_0x41a961(0x8a)]),_0x11e37d&&(this[_0x41a961(0x99)]=_0x2af6a2(_0x17a7d4,this),this[_0x41a961(0x85)][_0x41a961(0x8c)](this[_0x41a961(0x99)]));}[_0x1e479d(0x82)](_0xfafc42){const _0x4b4498=_0x1e479d,_0x48ef49=new _0x17fdc7(_0xfafc42);return _0x48ef49[_0x4b4498(0x95)]({'label':_0x30f8cf(this[_0x4b4498(0x92)],_0x4b4498(0x96)),'withText':!0x0,'icon':_0x1e8653,'class':_0x4b4498(0x97)}),_0x48ef49['on'](_0x4b4498(0x91),()=>{const _0xf32447=_0x4b4498;this[_0xf32447(0x8f)](_0xf32447(0x86));}),_0x48ef49;}}function _0x248f(){const _0x1cdfd3=['1520055dhEEZU','2875616xpfVDH','set','AI_CHAT_LABEL_NEW_CHAT','ck-ai-chat__start-conversation','25716hXzuhl','resizeButton','2KtrvTT','_createStartConversationButton','14113930BXNsDc','AI_CHAT_HEADING','children','startConversation','160757DkGrTo','291kuasGR','ck-ai-header\x20ck-ai-header_chat','conversationStartButton','13132JhGmsk','add','1303915svskuw','isMaximized','fire','553TClNgG','execute','locale'];_0x248f=function(){return _0x1cdfd3;};return _0x248f();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x57cdc5=_0x2167;(function(_0x1ff21d,_0x1cc4c6){var _0x47b51e=_0x2167,_0xbed430=_0x1ff21d();while(!![]){try{var _0xaf9ccb=-parseInt(_0x47b51e(0x159))/0x1+-parseInt(_0x47b51e(0x16b))/0x2+parseInt(_0x47b51e(0x154))/0x3+parseInt(_0x47b51e(0x15a))/0x4+parseInt(_0x47b51e(0x15c))/0x5+-parseInt(_0x47b51e(0x15d))/0x6+parseInt(_0x47b51e(0x162))/0x7*(parseInt(_0x47b51e(0x15e))/0x8);if(_0xaf9ccb===_0x1cc4c6)break;else _0xbed430['push'](_0xbed430['shift']());}catch(_0x20e6e9){_0xbed430['push'](_0xbed430['shift']());}}}(_0x4d3a,0x81909));import{View as _0x1de989,BodyCollection as _0x1c6f4b}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x3972bd}from'../utils/eventnames.js';function _0x2167(_0x30e705,_0x3fc8de){var _0x4d3aa7=_0x4d3a();return _0x2167=function(_0x216743,_0x19282f){_0x216743=_0x216743-0x153;var _0x4bf211=_0x4d3aa7[_0x216743];return _0x4bf211;},_0x2167(_0x30e705,_0x3fc8de);}import{AIChatFeedView as _0x14d255}from'./aichatfeedview.js';import{AIChatControlsView as _0x49b6b4}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x2fbd35}from'./aichatheaderview.js';function _0x4d3a(){var _0x520095=['delegate','125888EdeCJm','ck-rounded-corners','attachToDom','chatHeader','81546ZerLct','destroy','chatDisclaimer','div','chatControls','224479PgayRJ','3042784TPDJZH','closeSourceResourceBalloon','202020xdZNkx','711744aCCkEv','48PQoPrG','detachFromDom','contextResourcesSearchInputVisibleFrom','chatFeed','126539jbSQyz','ck-reset_all','_bodyCollection','populateSourceResourceBalloon','ck-ai-chat','uiLanguageDirection','showResizeButton','setTemplate'];_0x4d3a=function(){return _0x520095;};return _0x4d3a();}import{AIDisclaimerView as _0x125f96}from'../../aicore/ui/aidisclaimerview.js';import'../../../theme/common/ainotification.css';import'../../../theme/common/aibutton.css';import'../../../theme/common/aitrackchanges.css';export class AIChatView extends _0x1de989{[_0x57cdc5(0x153)];[_0x57cdc5(0x161)];[_0x57cdc5(0x158)];[_0x57cdc5(0x156)];[_0x57cdc5(0x164)];constructor(_0x21ece6,_0x3b4be1){var _0x84fcfb=_0x57cdc5;super(_0x21ece6),this[_0x84fcfb(0x164)]=new _0x1c6f4b(_0x21ece6),this[_0x84fcfb(0x164)][_0x84fcfb(0x16d)](),this[_0x84fcfb(0x153)]=new _0x2fbd35(_0x21ece6,_0x3b4be1[_0x84fcfb(0x168)]),this[_0x84fcfb(0x153)][_0x84fcfb(0x16a)](..._0x3972bd)['to'](this),this[_0x84fcfb(0x161)]=new _0x14d255(_0x21ece6,this[_0x84fcfb(0x164)]),this[_0x84fcfb(0x161)][_0x84fcfb(0x16a)](..._0x3972bd)['to'](this),this[_0x84fcfb(0x158)]=new _0x49b6b4(_0x21ece6,{'bodyCollection':this[_0x84fcfb(0x164)],'contextResourcesSearchInputVisibleFrom':_0x3b4be1[_0x84fcfb(0x160)]}),this[_0x84fcfb(0x158)][_0x84fcfb(0x16a)](..._0x3972bd)['to'](this),this[_0x84fcfb(0x156)]=new _0x125f96(_0x21ece6),this[_0x84fcfb(0x169)]({'tag':_0x84fcfb(0x157),'attributes':{'class':['ck',_0x84fcfb(0x163),_0x84fcfb(0x166),_0x84fcfb(0x16c)],'dir':_0x21ece6[_0x84fcfb(0x167)]},'children':[this[_0x84fcfb(0x153)],this[_0x84fcfb(0x161)],this[_0x84fcfb(0x158)],this[_0x84fcfb(0x156)]]});}[_0x57cdc5(0x165)](_0x155657,_0x5df1c5,_0x175f4e,_0xe5d0cc){var _0x2d8dab=_0x57cdc5;this[_0x2d8dab(0x158)][_0x2d8dab(0x165)](_0x155657,_0x5df1c5,_0x175f4e,_0xe5d0cc);}[_0x57cdc5(0x15b)](_0x24a761){var _0x34dca6=_0x57cdc5;this[_0x34dca6(0x158)][_0x34dca6(0x15b)](_0x24a761);}[_0x57cdc5(0x155)](){var _0x266fd7=_0x57cdc5;this[_0x266fd7(0x164)][_0x266fd7(0x15f)](),super[_0x266fd7(0x155)]();}}
23
+ var _0x18c5a2=_0xf7e0;(function(_0x488aad,_0x1b905e){var _0x4f1099=_0xf7e0,_0x14b497=_0x488aad();while(!![]){try{var _0x2e5d4e=parseInt(_0x4f1099(0x14b))/0x1*(-parseInt(_0x4f1099(0x14a))/0x2)+-parseInt(_0x4f1099(0x146))/0x3+-parseInt(_0x4f1099(0x154))/0x4+parseInt(_0x4f1099(0x148))/0x5+parseInt(_0x4f1099(0x13d))/0x6*(-parseInt(_0x4f1099(0x150))/0x7)+-parseInt(_0x4f1099(0x13f))/0x8+-parseInt(_0x4f1099(0x13c))/0x9*(-parseInt(_0x4f1099(0x149))/0xa);if(_0x2e5d4e===_0x1b905e)break;else _0x14b497['push'](_0x14b497['shift']());}catch(_0x55ad0a){_0x14b497['push'](_0x14b497['shift']());}}}(_0x965a,0x751a4));import{View as _0x28bcb3,BodyCollection as _0x11db4e}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x23ea98}from'../utils/eventnames.js';import{AIChatFeedView as _0x404a89}from'./aichatfeedview.js';import{AIChatControlsView as _0x2e77b8}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x5ae710}from'./aichatheaderview.js';import{AIDisclaimerView as _0x433485}from'../../aicore/ui/aidisclaimerview.js';import'../../../theme/common/ainotification.css';function _0xf7e0(_0x49b6a6,_0x36012f){var _0x965aac=_0x965a();return _0xf7e0=function(_0xf7e0b2,_0x688187){_0xf7e0b2=_0xf7e0b2-0x13c;var _0x3611fe=_0x965aac[_0xf7e0b2];return _0x3611fe;},_0xf7e0(_0x49b6a6,_0x36012f);}import'../../../theme/common/aibutton.css';function _0x965a(){var _0x2c784e=['chatHeader','contextResourcesSearchInputVisibleFrom','9nDEBWV','414CxMLkn','populateSourceResourceBalloon','7232888KBrBLC','showResizeButton','detachFromDom','ck-ai-chat','ck-rounded-corners','ck-reset_all','div','777081vcunUA','_bodyCollection','1888335rsFKAc','21820670KDXlJj','445382MKEpPH','1CIzOOt','setTemplate','uiLanguageDirection','closeSourceResourceBalloon','chatDisclaimer','25816PnNVGK','attachToDom','delegate','chatControls','1759124xvlAri','destroy','chatFeed'];_0x965a=function(){return _0x2c784e;};return _0x965a();}import'../../../theme/common/aitrackchanges.css';export class AIChatView extends _0x28bcb3{[_0x18c5a2(0x157)];[_0x18c5a2(0x156)];[_0x18c5a2(0x153)];[_0x18c5a2(0x14f)];[_0x18c5a2(0x147)];constructor(_0x14ed7c,_0x513ffc){var _0x5e6c69=_0x18c5a2;super(_0x14ed7c),this[_0x5e6c69(0x147)]=new _0x11db4e(_0x14ed7c),this[_0x5e6c69(0x147)][_0x5e6c69(0x151)](),this[_0x5e6c69(0x157)]=new _0x5ae710(_0x14ed7c,_0x513ffc[_0x5e6c69(0x140)]),this[_0x5e6c69(0x157)][_0x5e6c69(0x152)](..._0x23ea98)['to'](this),this[_0x5e6c69(0x156)]=new _0x404a89(_0x14ed7c,this[_0x5e6c69(0x147)]),this[_0x5e6c69(0x156)][_0x5e6c69(0x152)](..._0x23ea98)['to'](this),this[_0x5e6c69(0x153)]=new _0x2e77b8(_0x14ed7c,{'bodyCollection':this[_0x5e6c69(0x147)],'contextResourcesSearchInputVisibleFrom':_0x513ffc[_0x5e6c69(0x158)]}),this[_0x5e6c69(0x153)][_0x5e6c69(0x152)](..._0x23ea98)['to'](this),this[_0x5e6c69(0x14f)]=new _0x433485(_0x14ed7c),this[_0x5e6c69(0x14c)]({'tag':_0x5e6c69(0x145),'attributes':{'class':['ck',_0x5e6c69(0x144),_0x5e6c69(0x142),_0x5e6c69(0x143)],'dir':_0x14ed7c[_0x5e6c69(0x14d)]},'children':[this[_0x5e6c69(0x157)],this[_0x5e6c69(0x156)],this[_0x5e6c69(0x153)],this[_0x5e6c69(0x14f)]]});}[_0x18c5a2(0x13e)](_0x381db6,_0x49c47f,_0x1a7225,_0x117f68){var _0x1fb9e0=_0x18c5a2;this[_0x1fb9e0(0x153)][_0x1fb9e0(0x13e)](_0x381db6,_0x49c47f,_0x1a7225,_0x117f68);}[_0x18c5a2(0x14e)](_0x3662cb){var _0x19a8b3=_0x18c5a2;this[_0x19a8b3(0x153)][_0x19a8b3(0x14e)](_0x3662cb);}[_0x18c5a2(0x155)](){var _0x2ee7cd=_0x18c5a2;this[_0x2ee7cd(0x147)][_0x2ee7cd(0x141)](),super[_0x2ee7cd(0x155)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x55a8db=_0x2f83;(function(_0x99ab37,_0x8d3911){const _0x263c48=_0x2f83,_0x48b587=_0x99ab37();while(!![]){try{const _0xa80eac=-parseInt(_0x263c48(0x1fa))/0x1+parseInt(_0x263c48(0x1a5))/0x2+parseInt(_0x263c48(0x1c4))/0x3+parseInt(_0x263c48(0x1ac))/0x4*(-parseInt(_0x263c48(0x204))/0x5)+parseInt(_0x263c48(0x195))/0x6*(-parseInt(_0x263c48(0x1b1))/0x7)+-parseInt(_0x263c48(0x1ed))/0x8+parseInt(_0x263c48(0x1b4))/0x9*(parseInt(_0x263c48(0x1de))/0xa);if(_0xa80eac===_0x8d3911)break;else _0x48b587['push'](_0x48b587['shift']());}catch(_0x4953dc){_0x48b587['push'](_0x48b587['shift']());}}}(_0x2827,0x3ca9c));function _0x2827(){const _0x110391=['setContainerElement','slice','remove','visible\x20!important','isVisible','_parentView','isConnected','visibility','destroy','315583eHGYks','showMoreButtonView','clear','filter','_testButtonFit','hidden','_calculateOverflowInContainer','50px','getBoundingClientRect','_containerElement','10BSvlIz','absolute','_createContainerElements','some','_distributeChips','visible','render','boxSizing','display','show','_createCalculationContainer','createElement','innerWidth','textContent','overflowChips','content','undefined','_repinBalloonPanel','classList','pointerEvents','clientWidth','_bodyCollection','_overflowChips','getComputedStyle','_showMoreBalloonPanelView','_updateShowMoreButtonVisibility','setTemplate','label','documentElement','push','border-box','includes','_isContainerVisible','cssClasses','maxVisibleRows','zIndex','block','18ypCxua','_restoreAncestorVisibility','overflowContainer','_createShowMoreButton','_updateOverflowUI','none','reorganizeChips','cloneNode','innerHTML','showMoreBalloon','block\x20!important','right','_config','className','_createShowMoreBalloonPanelView','toLowerCase','687220mcZIjR','_handleShowMoreButtonClick','extendTemplate','showMoreLabelPrefix','_renderChipsAndCountRows','_checkAndHandleOverflow','appendChild','161488lxwguF','showBalloonPanel','hide','+\x201','-9999px','378882CDCxUh','_targetContainer','_ancestorsToRestore','6835221HXQDwm','_intersectionObserver','height','execute','style','_createShowMoreButtonView','_createMockButton','tagName','_applyCalculationStyles','rowDetectionTolerance','0px','hideBalloonPanel','300px','position','div','_locale','32367vavrOD','innerHeight','calculationContainer','isIntersecting','pop','abs','disconnect','_updateBalloonContent','button','width','offsetWidth','auto','showMoreButton','observe','_calculateContainerWidth','opacity','_visibleChips','.ck-ai-chat','forEach','disableAnimationOnEnter','_pendingCalculation','left','_findTargetContainer','controlsButton','body','add','10SfXwod','element','from','bottom','parentElement','ck-calculation-container','_showMoreButtonView','pin','querySelector','_setupVisibilityObserver','top','children','length','_applyOverflowResults','isOn','2453496pWEjmm','set','_makeAncestorsVisible','clientHeight'];_0x2827=function(){return _0x110391;};return _0x2827();}import{View as _0x533c0c,BalloonPanelView as _0xe352b4,ButtonView as _0x3129a7,clickOutsideHandler as _0x274470}from'ckeditor5/src/ui.js';import{Collection as _0x240659}from'ckeditor5/src/utils.js';function _0x2f83(_0x103d9a,_0x5012b7){const _0x282785=_0x2827();return _0x2f83=function(_0x2f83ea,_0x5b7be2){_0x2f83ea=_0x2f83ea-0x174;let _0x21bb93=_0x282785[_0x2f83ea];return _0x21bb93;},_0x2f83(_0x103d9a,_0x5012b7);}const wn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},dn=_0x55a8db(0x1c0);export class AIChatChipsOverflowManager{[_0x55a8db(0x1c3)];[_0x55a8db(0x1a1)];[_0x55a8db(0x1d4)];[_0x55a8db(0x186)];[_0x55a8db(0x1e4)]=null;[_0x55a8db(0x188)]=null;[_0x55a8db(0x203)]=null;[_0x55a8db(0x185)];[_0x55a8db(0x1f6)]=null;[_0x55a8db(0x1b5)]=null;[_0x55a8db(0x1d8)]=!0x1;constructor(_0x37904c,_0x504360,_0xb22666,_0x5b2be0,_0x19400a){const _0x3f31e1=_0x55a8db;this[_0x3f31e1(0x1c3)]=_0x37904c,this[_0x3f31e1(0x1d4)]=_0x504360,this[_0x3f31e1(0x1a1)]={...wn,..._0xb22666,'cssClasses':{'controlsButton':'','calculationContainer':_0x3f31e1(0x1e3),..._0xb22666[_0x3f31e1(0x191)]}},this[_0x3f31e1(0x186)]=new _0x240659(),this[_0x3f31e1(0x185)]=_0x5b2be0,this[_0x3f31e1(0x1f6)]=_0x19400a||null;}[_0x55a8db(0x1f1)](_0x119db1){const _0x4c79af=_0x55a8db;this[_0x4c79af(0x1b5)]&&(this[_0x4c79af(0x1b5)][_0x4c79af(0x1ca)](),this[_0x4c79af(0x1b5)]=null),this[_0x4c79af(0x203)]=_0x119db1,this[_0x4c79af(0x1e7)]();}get[_0x55a8db(0x1fb)](){const _0xbc8727=_0x55a8db;return this[_0xbc8727(0x1e4)];}get[_0x55a8db(0x17e)](){const _0x3ed764=_0x55a8db;return this[_0x3ed764(0x186)];}[_0x55a8db(0x19b)](){requestAnimationFrame(()=>{const _0x323720=_0x2f83;this[_0x323720(0x1aa)]();});}[_0x55a8db(0x1ad)](){const _0x5251d5=_0x55a8db;this[_0x5251d5(0x1e4)]&&this[_0x5251d5(0x188)]&&(this[_0x5251d5(0x1cb)](),this[_0x5251d5(0x1e4)][_0x5251d5(0x1ec)]=!0x0,this[_0x5251d5(0x188)][_0x5251d5(0x179)](),this[_0x5251d5(0x188)][_0x5251d5(0x1e5)]({'target':this[_0x5251d5(0x1e4)][_0x5251d5(0x1df)],'limiter':document[_0x5251d5(0x1e6)](_0x5251d5(0x1d5))}));}[_0x55a8db(0x1bf)](){const _0x4a5339=_0x55a8db;this[_0x4a5339(0x1e4)]&&this[_0x4a5339(0x188)]&&(this[_0x4a5339(0x1e4)][_0x4a5339(0x1ec)]=!0x1,this[_0x4a5339(0x188)][_0x4a5339(0x1ae)]());}[_0x55a8db(0x1fc)](){const _0x548a87=_0x55a8db;this[_0x548a87(0x186)][_0x548a87(0x1fc)](),this[_0x548a87(0x1bf)](),this[_0x548a87(0x189)](),this[_0x548a87(0x1e4)]&&(this[_0x548a87(0x1e4)][_0x548a87(0x18b)]=''),this[_0x548a87(0x188)]&&this[_0x548a87(0x188)][_0x548a87(0x17f)][_0x548a87(0x1fc)]();}[_0x55a8db(0x1f9)](){const _0x20b206=_0x55a8db;this[_0x20b206(0x1b5)]&&(this[_0x20b206(0x1b5)][_0x20b206(0x1ca)](),this[_0x20b206(0x1b5)]=null),this[_0x20b206(0x1e4)]&&(this[_0x20b206(0x1e4)][_0x20b206(0x1f9)](),this[_0x20b206(0x1e4)]=null),this[_0x20b206(0x188)]&&(this[_0x20b206(0x188)][_0x20b206(0x1f9)](),this[_0x20b206(0x188)]=null);}[_0x55a8db(0x1aa)](){const _0x574e0b=_0x55a8db;if(!this[_0x574e0b(0x203)])return;if(!this[_0x574e0b(0x190)]())return void(this[_0x574e0b(0x1d8)]=!0x0);this[_0x574e0b(0x1d8)]=!0x1;const _0x3850c4=[...this[_0x574e0b(0x1d4)],...this[_0x574e0b(0x186)]],_0x5b9573=this[_0x574e0b(0x17a)](),_0x3efb1f=this[_0x574e0b(0x200)](_0x5b9573,_0x3850c4),_0x2b669a=_0x5b9573[_0x574e0b(0x1b3)];_0x2b669a&&this[_0x574e0b(0x196)](_0x2b669a),_0x5b9573[_0x574e0b(0x1f3)](),this[_0x574e0b(0x1eb)](_0x3850c4,_0x3efb1f);}[_0x55a8db(0x198)](){const _0xd56eb4=_0x55a8db;this[_0xd56eb4(0x1e4)]=this[_0xd56eb4(0x1b9)](),this[_0xd56eb4(0x188)]=this[_0xd56eb4(0x1a3)](),this[_0xd56eb4(0x1e4)][_0xd56eb4(0x176)](),this[_0xd56eb4(0x203)][_0xd56eb4(0x1ab)](this[_0xd56eb4(0x1e4)][_0xd56eb4(0x1df)]),this[_0xd56eb4(0x1e4)]['on'](_0xd56eb4(0x1b7),()=>{const _0x34045a=_0xd56eb4;this[_0x34045a(0x1a6)]();}),_0x274470({'emitter':this[_0xd56eb4(0x188)],'contextElements':[this[_0xd56eb4(0x188)][_0xd56eb4(0x1df)],this[_0xd56eb4(0x1e4)][_0xd56eb4(0x1df)]],'callback':()=>this[_0xd56eb4(0x1bf)](),'activator':()=>this[_0xd56eb4(0x1e4)][_0xd56eb4(0x1ec)]});}[_0x55a8db(0x1b9)](){const _0x64bb15=_0x55a8db,_0x39cdc1=new _0x3129a7(this[_0x64bb15(0x1c3)]);_0x39cdc1[_0x64bb15(0x1ee)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x7745e5=[this[_0x64bb15(0x1a1)][_0x64bb15(0x191)][_0x64bb15(0x1d0)]];return this[_0x64bb15(0x1a1)][_0x64bb15(0x191)][_0x64bb15(0x1db)]&&_0x7745e5[_0x64bb15(0x18d)](this[_0x64bb15(0x1a1)][_0x64bb15(0x191)][_0x64bb15(0x1db)]),_0x39cdc1[_0x64bb15(0x1a7)]({'attributes':{'class':_0x7745e5}}),_0x39cdc1;}[_0x55a8db(0x1a3)](){const _0x800581=_0x55a8db,_0x3688bc=new _0xe352b4(this[_0x800581(0x1c3)]);return _0x3688bc[_0x800581(0x1a7)]({'attributes':{'class':this[_0x800581(0x1a1)][_0x800581(0x191)][_0x800581(0x19e)]}}),this[_0x800581(0x185)][_0x800581(0x1dd)](_0x3688bc),_0x3688bc;}[_0x55a8db(0x1cb)](){const _0x26db4c=_0x55a8db;if(this[_0x26db4c(0x188)]&&(this[_0x26db4c(0x188)][_0x26db4c(0x17f)][_0x26db4c(0x1fc)](),this[_0x26db4c(0x186)][_0x26db4c(0x1ea)]>0x0)){this[_0x26db4c(0x186)][_0x26db4c(0x1d6)](_0x477772=>{const _0x22680c=_0x26db4c;_0x477772[_0x22680c(0x1d7)]();});const _0x67809=new _0x533c0c(this[_0x26db4c(0x1c3)]);_0x67809[_0x26db4c(0x18a)]({'tag':_0x26db4c(0x1c2),'attributes':{'class':this[_0x26db4c(0x1a1)][_0x26db4c(0x191)][_0x26db4c(0x197)]},'children':this[_0x26db4c(0x186)]}),this[_0x26db4c(0x188)][_0x26db4c(0x17f)][_0x26db4c(0x1dd)](_0x67809);}}[_0x55a8db(0x1a6)](){const _0x10ddc4=_0x55a8db;this[_0x10ddc4(0x1e4)][_0x10ddc4(0x1ec)]?this[_0x10ddc4(0x1bf)]():this[_0x10ddc4(0x1ad)]();}[_0x55a8db(0x189)](){const _0x567864=_0x55a8db,_0x30deae=this[_0x567864(0x186)][_0x567864(0x1ea)]>0x0;this[_0x567864(0x1e4)]?.[_0x567864(0x1df)]&&(this[_0x567864(0x1e4)][_0x567864(0x1df)][_0x567864(0x1b8)][_0x567864(0x178)]=_0x30deae?'':_0x567864(0x19a));}[_0x55a8db(0x181)](){const _0x38afc3=_0x55a8db;this[_0x38afc3(0x1e4)]?.[_0x38afc3(0x1ec)]&&this[_0x38afc3(0x188)]?.[_0x38afc3(0x1f5)]&&this[_0x38afc3(0x1e4)][_0x38afc3(0x1df)]&&this[_0x38afc3(0x188)][_0x38afc3(0x1e5)]({'target':this[_0x38afc3(0x1e4)][_0x38afc3(0x1df)],'limiter':document[_0x38afc3(0x1e6)](_0x38afc3(0x1d5))});}[_0x55a8db(0x1da)](_0x2aeff9){const _0x71642=_0x55a8db,_0x308d73=this[_0x71642(0x203)]?.[_0x71642(0x1bb)][_0x71642(0x1a4)]()||_0x71642(0x1c2),_0x52d86e=this[_0x71642(0x203)]?.[_0x71642(0x182)];if(_0x52d86e){const _0x2702f1=_0x52d86e[0x0]||'',_0x10aa1d=_0x2aeff9[_0x71642(0x1e6)]('.'+_0x2702f1),_0x1ff2d0=_0x2aeff9[_0x71642(0x1e6)](_0x308d73);return _0x10aa1d||_0x1ff2d0||_0x2aeff9;}return _0x2aeff9[_0x71642(0x1e6)](_0x308d73)||_0x2aeff9;}[_0x55a8db(0x1d2)](){const _0x51fd78=_0x55a8db,_0x33cd92=this[_0x51fd78(0x1f6)]?.[_0x51fd78(0x1df)]||this[_0x51fd78(0x203)];if(!_0x33cd92)return dn;const _0x31d261=window[_0x51fd78(0x187)](_0x33cd92)[_0x51fd78(0x1cd)];if(_0x51fd78(0x1cf)===_0x31d261||_0x51fd78(0x1be)===_0x31d261||!_0x31d261){const _0x3e9da6=_0x33cd92[_0x51fd78(0x1e2)];if(_0x3e9da6){const _0x3cfde5=window[_0x51fd78(0x187)](_0x3e9da6);return _0x51fd78(0x1cf)!==_0x3cfde5[_0x51fd78(0x1cd)]?_0x3cfde5[_0x51fd78(0x1cd)]:dn;}return dn;}return _0x31d261;}[_0x55a8db(0x1bc)](_0x3771ad,_0x2a5ccd){const _0x310eb7=_0x55a8db;this[_0x310eb7(0x1a1)][_0x310eb7(0x191)][_0x310eb7(0x1c6)]&&_0x3771ad[_0x310eb7(0x182)][_0x310eb7(0x1dd)](this[_0x310eb7(0x1a1)][_0x310eb7(0x191)][_0x310eb7(0x1c6)]),_0x3771ad[_0x310eb7(0x1b8)][_0x310eb7(0x1cd)]=_0x2a5ccd,_0x3771ad[_0x310eb7(0x1b8)][_0x310eb7(0x1c1)]=_0x310eb7(0x205),_0x3771ad[_0x310eb7(0x1b8)][_0x310eb7(0x1e8)]=_0x310eb7(0x1b0),_0x3771ad[_0x310eb7(0x1b8)][_0x310eb7(0x1d9)]=_0x310eb7(0x1b0),_0x3771ad[_0x310eb7(0x1b8)][_0x310eb7(0x1d3)]='0',_0x3771ad[_0x310eb7(0x1b8)][_0x310eb7(0x183)]=_0x310eb7(0x19a),_0x3771ad[_0x310eb7(0x1b8)][_0x310eb7(0x193)]='-1',_0x3771ad[_0x310eb7(0x1b8)][_0x310eb7(0x1f8)]=_0x310eb7(0x1f4),_0x3771ad[_0x310eb7(0x1b8)][_0x310eb7(0x178)]=_0x310eb7(0x19f),_0x3771ad[_0x310eb7(0x1b8)][_0x310eb7(0x177)]=_0x310eb7(0x18e);}[_0x55a8db(0x196)](_0x18ca08){const _0x13458e=_0x55a8db;_0x18ca08[_0x13458e(0x1d6)](({element:_0x451f30,originalDisplay:_0xdea5a5,originalVisibility:_0x4cb8ea})=>{const _0x25d823=_0x13458e;_0x451f30[_0x25d823(0x1b8)][_0x25d823(0x178)]=_0xdea5a5,_0x451f30[_0x25d823(0x1b8)][_0x25d823(0x1f8)]=_0x4cb8ea;});}[_0x55a8db(0x1ef)](_0x3698b7){const _0x37b3ea=_0x55a8db,_0x46cb30=[];let _0x3571c4=_0x3698b7;for(;_0x3571c4&&_0x3571c4!==document[_0x37b3ea(0x1dc)];){const _0x25d607=window[_0x37b3ea(0x187)](_0x3571c4);_0x37b3ea(0x19a)!==_0x25d607[_0x37b3ea(0x178)]&&_0x37b3ea(0x1ff)!==_0x25d607[_0x37b3ea(0x1f8)]||(_0x46cb30[_0x37b3ea(0x18d)]({'element':_0x3571c4,'originalDisplay':_0x3571c4[_0x37b3ea(0x1b8)][_0x37b3ea(0x178)],'originalVisibility':_0x3571c4[_0x37b3ea(0x1b8)][_0x37b3ea(0x1f8)]}),_0x3571c4[_0x37b3ea(0x1b8)][_0x37b3ea(0x178)]=_0x37b3ea(0x194),_0x3571c4[_0x37b3ea(0x1b8)][_0x37b3ea(0x1f8)]=_0x37b3ea(0x175)),_0x3571c4=_0x3571c4[_0x37b3ea(0x1e2)];}return _0x46cb30;}[_0x55a8db(0x206)](){const _0x545955=_0x55a8db;let _0x2d385a,_0x5280cc;return this[_0x545955(0x1f6)]?.[_0x545955(0x1df)]?(_0x2d385a=this[_0x545955(0x1f6)][_0x545955(0x1df)][_0x545955(0x19c)](!0x0),_0x5280cc=this[_0x545955(0x1da)](_0x2d385a)):(_0x2d385a=document[_0x545955(0x17b)](_0x545955(0x1c2)),_0x5280cc=_0x2d385a),{'calculationContainer':_0x2d385a,'targetContainer':_0x5280cc};}[_0x55a8db(0x17a)](){const _0x2589a8=_0x55a8db,{calculationContainer:_0x343581,targetContainer:_0x75734b}=this[_0x2589a8(0x206)](),_0x47ca9d=this[_0x2589a8(0x1d2)]();this[_0x2589a8(0x1bc)](_0x343581,_0x47ca9d);const _0x7a4245=this[_0x2589a8(0x1f6)]?.[_0x2589a8(0x1df)]||this[_0x2589a8(0x203)],_0xb6519c=_0x7a4245?.[_0x2589a8(0x1e2)];_0xb6519c?_0xb6519c[_0x2589a8(0x1ab)](_0x343581):document[_0x2589a8(0x1dc)][_0x2589a8(0x1ab)](_0x343581),_0x343581[_0x2589a8(0x1b2)]=_0x75734b;const _0x1f42ff=this[_0x2589a8(0x1ef)](_0xb6519c||null);return _0x343581[_0x2589a8(0x1ce)],_0x343581[_0x2589a8(0x1b3)]=_0x1f42ff,_0x343581;}[_0x55a8db(0x200)](_0x24d446,_0x387046){const _0x20a181=_0x55a8db,_0x2ecdf1=_0x24d446[_0x20a181(0x1b2)]||_0x24d446,_0x5b3af9=[],{rowCount:_0x22a316}=this[_0x20a181(0x1a9)](_0x2ecdf1,_0x387046);if(_0x22a316<=this[_0x20a181(0x1a1)][_0x20a181(0x192)])return _0x5b3af9;const _0x4c85e2=_0x387046[_0x20a181(0x1f2)]();for(;_0x4c85e2[_0x20a181(0x1ea)]>0x0;){if(this[_0x20a181(0x1fe)](_0x24d446,_0x2ecdf1,_0x4c85e2)){const _0x3e80cf=_0x387046[_0x20a181(0x1fd)](_0x5e6fa2=>!_0x4c85e2[_0x20a181(0x18f)](_0x5e6fa2));_0x5b3af9[_0x20a181(0x18d)](..._0x3e80cf);break;}if(!_0x4c85e2[_0x20a181(0x1c8)]())break;}return _0x5b3af9;}[_0x55a8db(0x1a9)](_0x3a6eb9,_0x1da56d){const _0xeda77a=_0x55a8db;_0x3a6eb9[_0xeda77a(0x19d)]='',_0x1da56d[_0xeda77a(0x1d6)](_0x17e48d=>{const _0x14ade2=_0xeda77a;if(_0x17e48d[_0x14ade2(0x1df)]){const _0x18f5aa=_0x17e48d[_0x14ade2(0x1df)][_0x14ade2(0x19c)](!0x0);_0x3a6eb9[_0x14ade2(0x1ab)](_0x18f5aa);}}),_0x3a6eb9[_0xeda77a(0x1ce)];const _0xf6188d=_0x3a6eb9[_0xeda77a(0x1e9)],_0x5c3c86=[];return Array[_0xeda77a(0x1e0)](_0xf6188d)[_0xeda77a(0x1d6)](_0x2e7528=>{const _0x481529=_0xeda77a,_0x24aa7e=_0x2e7528[_0x481529(0x202)]()[_0x481529(0x1e8)];_0x5c3c86[_0x481529(0x207)](_0xcbcabd=>Math[_0x481529(0x1c9)](_0xcbcabd-_0x24aa7e)<this[_0x481529(0x1a1)][_0x481529(0x1bd)])||_0x5c3c86[_0x481529(0x18d)](_0x24aa7e);}),{'rowCount':_0x5c3c86[_0xeda77a(0x1ea)]};}[_0x55a8db(0x1ba)](){const _0x411438=_0x55a8db,_0x341d23=document[_0x411438(0x17b)](_0x411438(0x1cc));return _0x341d23[_0x411438(0x1a2)]=this[_0x411438(0x1a1)][_0x411438(0x191)][_0x411438(0x1d0)],this[_0x411438(0x1a1)][_0x411438(0x191)][_0x411438(0x1db)]&&_0x341d23[_0x411438(0x182)][_0x411438(0x1dd)](this[_0x411438(0x1a1)][_0x411438(0x191)][_0x411438(0x1db)]),_0x341d23[_0x411438(0x17d)]=_0x411438(0x1af),_0x341d23;}[_0x55a8db(0x1fe)](_0x2d4519,_0x4ec0ac,_0x359f5a){const _0x2a8e10=_0x55a8db;this[_0x2a8e10(0x1a9)](_0x4ec0ac,_0x359f5a);const _0x475818=this[_0x2a8e10(0x1ba)]();_0x2d4519[_0x2a8e10(0x1ab)](_0x475818),_0x2d4519[_0x2a8e10(0x1ce)];const _0x2cb754=[..._0x4ec0ac[_0x2a8e10(0x1e9)],_0x475818],_0x1df447=[];_0x2cb754[_0x2a8e10(0x1d6)](_0x4d4bee=>{const _0x146ff0=_0x2a8e10,_0x35dd6c=_0x4d4bee[_0x146ff0(0x202)]()[_0x146ff0(0x1e8)];_0x1df447[_0x146ff0(0x207)](_0x1682f5=>Math[_0x146ff0(0x1c9)](_0x1682f5-_0x35dd6c)<this[_0x146ff0(0x1a1)][_0x146ff0(0x1bd)])||_0x1df447[_0x146ff0(0x18d)](_0x35dd6c);});const _0x531405=_0x1df447[_0x2a8e10(0x1ea)];return _0x475818[_0x2a8e10(0x1f3)](),_0x531405<=this[_0x2a8e10(0x1a1)][_0x2a8e10(0x192)];}[_0x55a8db(0x174)](_0xefb307,_0x1ce4e2){const _0x2e3b71=_0x55a8db;this[_0x2e3b71(0x1d4)][_0x2e3b71(0x1fc)](),this[_0x2e3b71(0x186)][_0x2e3b71(0x1fc)](),_0xefb307[_0x2e3b71(0x1d6)](_0x389293=>{const _0x323151=_0x2e3b71;_0x1ce4e2[_0x323151(0x18f)](_0x389293)?this[_0x323151(0x186)][_0x323151(0x1dd)](_0x389293):this[_0x323151(0x1d4)][_0x323151(0x1dd)](_0x389293);});}[_0x55a8db(0x199)](_0x2c421f){const _0x567be1=_0x55a8db;if(_0x2c421f>0x0&&!this[_0x567be1(0x1e4)]&&this[_0x567be1(0x198)](),_0x2c421f>0x0&&this[_0x567be1(0x1e4)]){const _0x1a760d=''+this[_0x567be1(0x1a1)][_0x567be1(0x1a8)]+(_0x2c421f<0x63?_0x2c421f:'99');this[_0x567be1(0x1e4)][_0x567be1(0x18b)]=_0x1a760d;}this[_0x567be1(0x1cb)](),this[_0x567be1(0x189)](),this[_0x567be1(0x181)]();}[_0x55a8db(0x1eb)](_0x3826c8,_0x220fcc){const _0x299ab4=_0x55a8db;this[_0x299ab4(0x174)](_0x3826c8,_0x220fcc),this[_0x299ab4(0x199)](_0x220fcc[_0x299ab4(0x1ea)]);}[_0x55a8db(0x1e7)](){const _0x2780c7=_0x55a8db;this[_0x2780c7(0x203)]&&_0x2780c7(0x180)!=typeof IntersectionObserver&&(this[_0x2780c7(0x1b5)]=new IntersectionObserver(_0x52b1b0=>{const _0x240243=_0x2780c7;_0x52b1b0[0x0][_0x240243(0x1c7)]&&this[_0x240243(0x1d8)]&&requestAnimationFrame(()=>{const _0x98b830=_0x240243;this[_0x98b830(0x1aa)]();});},{'threshold':0.01,'rootMargin':_0x2780c7(0x201)}),this[_0x2780c7(0x1b5)][_0x2780c7(0x1d1)](this[_0x2780c7(0x203)]));}[_0x55a8db(0x190)](){const _0x624e9c=_0x55a8db;if(!this[_0x624e9c(0x203)])return!0x1;if(!this[_0x624e9c(0x203)][_0x624e9c(0x1f7)])return!0x1;const _0x270f63=this[_0x624e9c(0x203)][_0x624e9c(0x202)]();if(0x0===_0x270f63[_0x624e9c(0x1cd)]||0x0===_0x270f63[_0x624e9c(0x1b6)])return!0x1;const _0x230c68=window[_0x624e9c(0x1c5)]||document[_0x624e9c(0x18c)][_0x624e9c(0x1f0)],_0x52ee88=window[_0x624e9c(0x17c)]||document[_0x624e9c(0x18c)][_0x624e9c(0x184)],_0x540883=0xc8;return _0x270f63[_0x624e9c(0x1e1)]>=-0xc8&&_0x270f63[_0x624e9c(0x1e8)]<=_0x230c68+_0x540883&&_0x270f63[_0x624e9c(0x1a0)]>=-0xc8&&_0x270f63[_0x624e9c(0x1d9)]<=_0x52ee88+_0x540883;}}
23
+ const _0x111ff9=_0xfecf;(function(_0x376731,_0x4126ef){const _0x51672d=_0xfecf,_0x1ab927=_0x376731();while(!![]){try{const _0x3b0c53=-parseInt(_0x51672d(0xdd))/0x1+-parseInt(_0x51672d(0x10c))/0x2*(parseInt(_0x51672d(0xe0))/0x3)+-parseInt(_0x51672d(0x121))/0x4+parseInt(_0x51672d(0xf7))/0x5*(-parseInt(_0x51672d(0x144))/0x6)+parseInt(_0x51672d(0xfc))/0x7+-parseInt(_0x51672d(0x109))/0x8*(-parseInt(_0x51672d(0x103))/0x9)+parseInt(_0x51672d(0xe3))/0xa*(parseInt(_0x51672d(0xd6))/0xb);if(_0x3b0c53===_0x4126ef)break;else _0x1ab927['push'](_0x1ab927['shift']());}catch(_0x1dc00a){_0x1ab927['push'](_0x1ab927['shift']());}}}(_0x7567,0x4d973));import{View as _0x5681e2,BalloonPanelView as _0x22b64f,ButtonView as _0x3b35e0,clickOutsideHandler as _0x1bbdb8}from'ckeditor5/src/ui.js';function _0xfecf(_0x5def26,_0x4a3602){const _0x756708=_0x7567();return _0xfecf=function(_0xfecffb,_0x38cbcb){_0xfecffb=_0xfecffb-0xcc;let _0x5d3f24=_0x756708[_0xfecffb];return _0x5d3f24;},_0xfecf(_0x5def26,_0x4a3602);}function _0x7567(){const _0x3e4b05=['right','16994846valjIF','getComputedStyle','_parentView','offsetWidth','element','_restoreAncestorVisibility','position','605865UyBzpN','children','-9999px','21wknedI','_intersectionObserver','zIndex','10raCLqb','.ck-ai-chat','slice','absolute','_checkAndHandleOverflow','0px','_bodyCollection','createElement','isConnected','_repinBalloonPanel','none','from','destroy','content','+\x201','_updateBalloonContent','_createShowMoreButtonView','top','_locale','isVisible','1470440QCEIMA','label','clear','getBoundingClientRect','reorganizeChips','948024rkcRSG','_pendingCalculation','_calculateContainerWidth','render','_applyOverflowResults','_targetContainer','add','18gwhXWJ','innerWidth','hidden','_findTargetContainer','showMoreButtonView','_showMoreBalloonPanelView','650696CFqKzF','visible','push','27358nrJpSY','300px','toLowerCase','_createShowMoreBalloonPanelView','rowDetectionTolerance','controlsButton','maxVisibleRows','style','pin','50px','setTemplate','_testButtonFit','disableAnimationOnEnter','showBalloonPanel','showMoreBalloon','querySelector','undefined','overflowContainer','setContainerElement','appendChild','className','941948iuCHpM','observe','div','filter','hide','forEach','remove','_isContainerVisible','isOn','_createShowMoreButton','_config','bottom','set','length','_distributeChips','_containerElement','_updateOverflowUI','clientWidth','boxSizing','documentElement','pop','parentElement','_createMockButton','pointerEvents','innerHTML','cloneNode','_makeAncestorsVisible','_handleShowMoreButtonClick','execute','button','visibility','innerHeight','showMoreLabelPrefix','auto','overflowChips','12pKdqSq','some','tagName','calculationContainer','left','_updateShowMoreButtonVisibility','cssClasses','display','_createContainerElements','height','includes','_visibleChips','_overflowChips','_renderChipsAndCountRows','isIntersecting','_calculateOverflowInContainer','opacity','extendTemplate','clientHeight','_showMoreButtonView','visible\x20!important','abs','block\x20!important','_setupVisibilityObserver','show','classList','disconnect','hideBalloonPanel','ck-calculation-container','border-box','textContent','_ancestorsToRestore','body','width','_applyCalculationStyles','showMoreButton','block','_createCalculationContainer'];_0x7567=function(){return _0x3e4b05;};return _0x7567();}import{Collection as _0x3553cf}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},an=_0x111ff9(0x10d);export class AIChatChipsOverflowManager{[_0x111ff9(0xf5)];[_0x111ff9(0x12b)];[_0x111ff9(0x14f)];[_0x111ff9(0x150)];[_0x111ff9(0x157)]=null;[_0x111ff9(0x108)]=null;[_0x111ff9(0x130)]=null;[_0x111ff9(0xe9)];[_0x111ff9(0xd8)]=null;[_0x111ff9(0xe1)]=null;[_0x111ff9(0xfd)]=!0x1;constructor(_0x4bf859,_0x37e962,_0x1fb13a,_0x209a88,_0x236402){const _0x5da135=_0x111ff9;this[_0x5da135(0xf5)]=_0x4bf859,this[_0x5da135(0x14f)]=_0x37e962,this[_0x5da135(0x12b)]={...hn,..._0x1fb13a,'cssClasses':{'controlsButton':'','calculationContainer':_0x5da135(0x160),..._0x1fb13a[_0x5da135(0x14a)]}},this[_0x5da135(0x150)]=new _0x3553cf(),this[_0x5da135(0xe9)]=_0x209a88,this[_0x5da135(0xd8)]=_0x236402||null;}[_0x111ff9(0x11e)](_0x50a556){const _0x3841e0=_0x111ff9;this[_0x3841e0(0xe1)]&&(this[_0x3841e0(0xe1)][_0x3841e0(0x15e)](),this[_0x3841e0(0xe1)]=null),this[_0x3841e0(0x130)]=_0x50a556,this[_0x3841e0(0x15b)]();}get[_0x111ff9(0x107)](){const _0x4a43eb=_0x111ff9;return this[_0x4a43eb(0x157)];}get[_0x111ff9(0x143)](){const _0x16fc23=_0x111ff9;return this[_0x16fc23(0x150)];}[_0x111ff9(0xfb)](){requestAnimationFrame(()=>{const _0x5b2c05=_0xfecf;this[_0x5b2c05(0xe7)]();});}[_0x111ff9(0x119)](){const _0x46c3d2=_0x111ff9;this[_0x46c3d2(0x157)]&&this[_0x46c3d2(0x108)]&&(this[_0x46c3d2(0xf2)](),this[_0x46c3d2(0x157)][_0x46c3d2(0x129)]=!0x0,this[_0x46c3d2(0x108)][_0x46c3d2(0x15c)](),this[_0x46c3d2(0x108)][_0x46c3d2(0x114)]({'target':this[_0x46c3d2(0x157)][_0x46c3d2(0xda)],'limiter':document[_0x46c3d2(0x11b)](_0x46c3d2(0xe4))}));}[_0x111ff9(0x15f)](){const _0x14ef9a=_0x111ff9;this[_0x14ef9a(0x157)]&&this[_0x14ef9a(0x108)]&&(this[_0x14ef9a(0x157)][_0x14ef9a(0x129)]=!0x1,this[_0x14ef9a(0x108)][_0x14ef9a(0x125)]());}[_0x111ff9(0xf9)](){const _0x22e5b7=_0x111ff9;this[_0x22e5b7(0x150)][_0x22e5b7(0xf9)](),this[_0x22e5b7(0x15f)](),this[_0x22e5b7(0x149)](),this[_0x22e5b7(0x157)]&&(this[_0x22e5b7(0x157)][_0x22e5b7(0xf8)]=''),this[_0x22e5b7(0x108)]&&this[_0x22e5b7(0x108)][_0x22e5b7(0xf0)][_0x22e5b7(0xf9)]();}[_0x111ff9(0xef)](){const _0x3d1a15=_0x111ff9;this[_0x3d1a15(0xe1)]&&(this[_0x3d1a15(0xe1)][_0x3d1a15(0x15e)](),this[_0x3d1a15(0xe1)]=null),this[_0x3d1a15(0x157)]&&(this[_0x3d1a15(0x157)][_0x3d1a15(0xef)](),this[_0x3d1a15(0x157)]=null),this[_0x3d1a15(0x108)]&&(this[_0x3d1a15(0x108)][_0x3d1a15(0xef)](),this[_0x3d1a15(0x108)]=null);}[_0x111ff9(0xe7)](){const _0x54d496=_0x111ff9;if(!this[_0x54d496(0x130)])return;if(!this[_0x54d496(0x128)]())return void(this[_0x54d496(0xfd)]=!0x0);this[_0x54d496(0xfd)]=!0x1;const _0x384318=[...this[_0x54d496(0x14f)],...this[_0x54d496(0x150)]],_0x52492d=this[_0x54d496(0xd4)](),_0x425ee7=this[_0x54d496(0x153)](_0x52492d,_0x384318),_0x3998f5=_0x52492d[_0x54d496(0xce)];_0x3998f5&&this[_0x54d496(0xdb)](_0x3998f5),_0x52492d[_0x54d496(0x127)](),this[_0x54d496(0x100)](_0x384318,_0x425ee7);}[_0x111ff9(0x12a)](){const _0x319358=_0x111ff9;this[_0x319358(0x157)]=this[_0x319358(0xf3)](),this[_0x319358(0x108)]=this[_0x319358(0x10f)](),this[_0x319358(0x157)][_0x319358(0xff)](),this[_0x319358(0x130)][_0x319358(0x11f)](this[_0x319358(0x157)][_0x319358(0xda)]),this[_0x319358(0x157)]['on'](_0x319358(0x13d),()=>{const _0x1c9979=_0x319358;this[_0x1c9979(0x13c)]();}),_0x1bbdb8({'emitter':this[_0x319358(0x108)],'contextElements':[this[_0x319358(0x108)][_0x319358(0xda)],this[_0x319358(0x157)][_0x319358(0xda)]],'callback':()=>this[_0x319358(0x15f)](),'activator':()=>this[_0x319358(0x157)][_0x319358(0x129)]});}[_0x111ff9(0xf3)](){const _0x21e837=_0x111ff9,_0x37bbb6=new _0x3b35e0(this[_0x21e837(0xf5)]);_0x37bbb6[_0x21e837(0x12d)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x4c926e=[this[_0x21e837(0x12b)][_0x21e837(0x14a)][_0x21e837(0xd2)]];return this[_0x21e837(0x12b)][_0x21e837(0x14a)][_0x21e837(0x111)]&&_0x4c926e[_0x21e837(0x10b)](this[_0x21e837(0x12b)][_0x21e837(0x14a)][_0x21e837(0x111)]),_0x37bbb6[_0x21e837(0x155)]({'attributes':{'class':_0x4c926e}}),_0x37bbb6;}[_0x111ff9(0x10f)](){const _0x19a327=_0x111ff9,_0x181c08=new _0x22b64f(this[_0x19a327(0xf5)]);return _0x181c08[_0x19a327(0x155)]({'attributes':{'class':this[_0x19a327(0x12b)][_0x19a327(0x14a)][_0x19a327(0x11a)]}}),this[_0x19a327(0xe9)][_0x19a327(0x102)](_0x181c08),_0x181c08;}[_0x111ff9(0xf2)](){const _0xe08d53=_0x111ff9;if(this[_0xe08d53(0x108)]&&(this[_0xe08d53(0x108)][_0xe08d53(0xf0)][_0xe08d53(0xf9)](),this[_0xe08d53(0x150)][_0xe08d53(0x12e)]>0x0)){this[_0xe08d53(0x150)][_0xe08d53(0x126)](_0x2a299a=>{const _0x52d119=_0xe08d53;_0x2a299a[_0x52d119(0x118)]();});const _0x439f4b=new _0x5681e2(this[_0xe08d53(0xf5)]);_0x439f4b[_0xe08d53(0x116)]({'tag':_0xe08d53(0x123),'attributes':{'class':this[_0xe08d53(0x12b)][_0xe08d53(0x14a)][_0xe08d53(0x11d)]},'children':this[_0xe08d53(0x150)]}),this[_0xe08d53(0x108)][_0xe08d53(0xf0)][_0xe08d53(0x102)](_0x439f4b);}}[_0x111ff9(0x13c)](){const _0x183851=_0x111ff9;this[_0x183851(0x157)][_0x183851(0x129)]?this[_0x183851(0x15f)]():this[_0x183851(0x119)]();}[_0x111ff9(0x149)](){const _0x42c01f=_0x111ff9,_0x3beac2=this[_0x42c01f(0x150)][_0x42c01f(0x12e)]>0x0;this[_0x42c01f(0x157)]?.[_0x42c01f(0xda)]&&(this[_0x42c01f(0x157)][_0x42c01f(0xda)][_0x42c01f(0x113)][_0x42c01f(0x14b)]=_0x3beac2?'':_0x42c01f(0xed));}[_0x111ff9(0xec)](){const _0xbe8ccc=_0x111ff9;this[_0xbe8ccc(0x157)]?.[_0xbe8ccc(0x129)]&&this[_0xbe8ccc(0x108)]?.[_0xbe8ccc(0xf6)]&&this[_0xbe8ccc(0x157)][_0xbe8ccc(0xda)]&&this[_0xbe8ccc(0x108)][_0xbe8ccc(0x114)]({'target':this[_0xbe8ccc(0x157)][_0xbe8ccc(0xda)],'limiter':document[_0xbe8ccc(0x11b)](_0xbe8ccc(0xe4))});}[_0x111ff9(0x106)](_0x570ac3){const _0x4feaf2=_0x111ff9,_0x2d5d5c=this[_0x4feaf2(0x130)]?.[_0x4feaf2(0x146)][_0x4feaf2(0x10e)]()||_0x4feaf2(0x123),_0x5221fd=this[_0x4feaf2(0x130)]?.[_0x4feaf2(0x15d)];if(_0x5221fd){const _0x4e7bfc=_0x5221fd[0x0]||'',_0x5e15a0=_0x570ac3[_0x4feaf2(0x11b)]('.'+_0x4e7bfc),_0xcd43ba=_0x570ac3[_0x4feaf2(0x11b)](_0x2d5d5c);return _0x5e15a0||_0xcd43ba||_0x570ac3;}return _0x570ac3[_0x4feaf2(0x11b)](_0x2d5d5c)||_0x570ac3;}[_0x111ff9(0xfe)](){const _0x34798a=_0x111ff9,_0x2ee952=this[_0x34798a(0xd8)]?.[_0x34798a(0xda)]||this[_0x34798a(0x130)];if(!_0x2ee952)return an;const _0x20b5a4=window[_0x34798a(0xd7)](_0x2ee952)[_0x34798a(0xd0)];if(_0x34798a(0x142)===_0x20b5a4||_0x34798a(0xe8)===_0x20b5a4||!_0x20b5a4){const _0x239768=_0x2ee952[_0x34798a(0x136)];if(_0x239768){const _0x1a1e3a=window[_0x34798a(0xd7)](_0x239768);return _0x34798a(0x142)!==_0x1a1e3a[_0x34798a(0xd0)]?_0x1a1e3a[_0x34798a(0xd0)]:an;}return an;}return _0x20b5a4;}[_0x111ff9(0xd1)](_0xb0d9d5,_0x5647a0){const _0x4143a4=_0x111ff9;this[_0x4143a4(0x12b)][_0x4143a4(0x14a)][_0x4143a4(0x147)]&&_0xb0d9d5[_0x4143a4(0x15d)][_0x4143a4(0x102)](this[_0x4143a4(0x12b)][_0x4143a4(0x14a)][_0x4143a4(0x147)]),_0xb0d9d5[_0x4143a4(0x113)][_0x4143a4(0xd0)]=_0x5647a0,_0xb0d9d5[_0x4143a4(0x113)][_0x4143a4(0xdc)]=_0x4143a4(0xe6),_0xb0d9d5[_0x4143a4(0x113)][_0x4143a4(0xf4)]=_0x4143a4(0xdf),_0xb0d9d5[_0x4143a4(0x113)][_0x4143a4(0x148)]=_0x4143a4(0xdf),_0xb0d9d5[_0x4143a4(0x113)][_0x4143a4(0x154)]='0',_0xb0d9d5[_0x4143a4(0x113)][_0x4143a4(0x138)]=_0x4143a4(0xed),_0xb0d9d5[_0x4143a4(0x113)][_0x4143a4(0xe2)]='-1',_0xb0d9d5[_0x4143a4(0x113)][_0x4143a4(0x13f)]=_0x4143a4(0x158),_0xb0d9d5[_0x4143a4(0x113)][_0x4143a4(0x14b)]=_0x4143a4(0x15a),_0xb0d9d5[_0x4143a4(0x113)][_0x4143a4(0x133)]=_0x4143a4(0xcc);}[_0x111ff9(0xdb)](_0x171b62){const _0x45aa4d=_0x111ff9;_0x171b62[_0x45aa4d(0x126)](({element:_0x425bad,originalDisplay:_0x273c65,originalVisibility:_0x490769})=>{const _0x4a6fab=_0x45aa4d;_0x425bad[_0x4a6fab(0x113)][_0x4a6fab(0x14b)]=_0x273c65,_0x425bad[_0x4a6fab(0x113)][_0x4a6fab(0x13f)]=_0x490769;});}[_0x111ff9(0x13b)](_0x18f7b0){const _0x5bf2fb=_0x111ff9,_0x2d7a3a=[];let _0x54e4d9=_0x18f7b0;for(;_0x54e4d9&&_0x54e4d9!==document[_0x5bf2fb(0xcf)];){const _0x207086=window[_0x5bf2fb(0xd7)](_0x54e4d9);_0x5bf2fb(0xed)!==_0x207086[_0x5bf2fb(0x14b)]&&_0x5bf2fb(0x105)!==_0x207086[_0x5bf2fb(0x13f)]||(_0x2d7a3a[_0x5bf2fb(0x10b)]({'element':_0x54e4d9,'originalDisplay':_0x54e4d9[_0x5bf2fb(0x113)][_0x5bf2fb(0x14b)],'originalVisibility':_0x54e4d9[_0x5bf2fb(0x113)][_0x5bf2fb(0x13f)]}),_0x54e4d9[_0x5bf2fb(0x113)][_0x5bf2fb(0x14b)]=_0x5bf2fb(0xd3),_0x54e4d9[_0x5bf2fb(0x113)][_0x5bf2fb(0x13f)]=_0x5bf2fb(0x10a)),_0x54e4d9=_0x54e4d9[_0x5bf2fb(0x136)];}return _0x2d7a3a;}[_0x111ff9(0x14c)](){const _0x210b7b=_0x111ff9;let _0x372c7,_0x2a6a67;return this[_0x210b7b(0xd8)]?.[_0x210b7b(0xda)]?(_0x372c7=this[_0x210b7b(0xd8)][_0x210b7b(0xda)][_0x210b7b(0x13a)](!0x0),_0x2a6a67=this[_0x210b7b(0x106)](_0x372c7)):(_0x372c7=document[_0x210b7b(0xea)](_0x210b7b(0x123)),_0x2a6a67=_0x372c7),{'calculationContainer':_0x372c7,'targetContainer':_0x2a6a67};}[_0x111ff9(0xd4)](){const _0x8110c1=_0x111ff9,{calculationContainer:_0x3ee2aa,targetContainer:_0x236c0f}=this[_0x8110c1(0x14c)](),_0x29884b=this[_0x8110c1(0xfe)]();this[_0x8110c1(0xd1)](_0x3ee2aa,_0x29884b);const _0x324da8=this[_0x8110c1(0xd8)]?.[_0x8110c1(0xda)]||this[_0x8110c1(0x130)],_0x59aa7a=_0x324da8?.[_0x8110c1(0x136)];_0x59aa7a?_0x59aa7a[_0x8110c1(0x11f)](_0x3ee2aa):document[_0x8110c1(0xcf)][_0x8110c1(0x11f)](_0x3ee2aa),_0x3ee2aa[_0x8110c1(0x101)]=_0x236c0f;const _0x1da173=this[_0x8110c1(0x13b)](_0x59aa7a||null);return _0x3ee2aa[_0x8110c1(0xd9)],_0x3ee2aa[_0x8110c1(0xce)]=_0x1da173,_0x3ee2aa;}[_0x111ff9(0x153)](_0x5870b5,_0x1f570b){const _0x104e7d=_0x111ff9,_0x3798e7=_0x5870b5[_0x104e7d(0x101)]||_0x5870b5,_0x47ebb8=[],{rowCount:_0x1abcb4}=this[_0x104e7d(0x151)](_0x3798e7,_0x1f570b);if(_0x1abcb4<=this[_0x104e7d(0x12b)][_0x104e7d(0x112)])return _0x47ebb8;const _0x7f834a=_0x1f570b[_0x104e7d(0xe5)]();for(;_0x7f834a[_0x104e7d(0x12e)]>0x0;){if(this[_0x104e7d(0x117)](_0x5870b5,_0x3798e7,_0x7f834a)){const _0x3fdf44=_0x1f570b[_0x104e7d(0x124)](_0x40625=>!_0x7f834a[_0x104e7d(0x14e)](_0x40625));_0x47ebb8[_0x104e7d(0x10b)](..._0x3fdf44);break;}if(!_0x7f834a[_0x104e7d(0x135)]())break;}return _0x47ebb8;}[_0x111ff9(0x151)](_0x3c4349,_0x1cfb0c){const _0x3f2b18=_0x111ff9;_0x3c4349[_0x3f2b18(0x139)]='',_0x1cfb0c[_0x3f2b18(0x126)](_0x149f45=>{const _0x531dc5=_0x3f2b18;if(_0x149f45[_0x531dc5(0xda)]){const _0x185d31=_0x149f45[_0x531dc5(0xda)][_0x531dc5(0x13a)](!0x0);_0x3c4349[_0x531dc5(0x11f)](_0x185d31);}}),_0x3c4349[_0x3f2b18(0xd9)];const _0x315f67=_0x3c4349[_0x3f2b18(0xde)],_0x4beab8=[];return Array[_0x3f2b18(0xee)](_0x315f67)[_0x3f2b18(0x126)](_0x1d50cc=>{const _0x5ed2e5=_0x3f2b18,_0x25e62a=_0x1d50cc[_0x5ed2e5(0xfa)]()[_0x5ed2e5(0xf4)];_0x4beab8[_0x5ed2e5(0x145)](_0x24a314=>Math[_0x5ed2e5(0x159)](_0x24a314-_0x25e62a)<this[_0x5ed2e5(0x12b)][_0x5ed2e5(0x110)])||_0x4beab8[_0x5ed2e5(0x10b)](_0x25e62a);}),{'rowCount':_0x4beab8[_0x3f2b18(0x12e)]};}[_0x111ff9(0x137)](){const _0x1af1bb=_0x111ff9,_0x12d9d4=document[_0x1af1bb(0xea)](_0x1af1bb(0x13e));return _0x12d9d4[_0x1af1bb(0x120)]=this[_0x1af1bb(0x12b)][_0x1af1bb(0x14a)][_0x1af1bb(0xd2)],this[_0x1af1bb(0x12b)][_0x1af1bb(0x14a)][_0x1af1bb(0x111)]&&_0x12d9d4[_0x1af1bb(0x15d)][_0x1af1bb(0x102)](this[_0x1af1bb(0x12b)][_0x1af1bb(0x14a)][_0x1af1bb(0x111)]),_0x12d9d4[_0x1af1bb(0xcd)]=_0x1af1bb(0xf1),_0x12d9d4;}[_0x111ff9(0x117)](_0x8b99a4,_0x4d95f3,_0x158c75){const _0x287e76=_0x111ff9;this[_0x287e76(0x151)](_0x4d95f3,_0x158c75);const _0x436322=this[_0x287e76(0x137)]();_0x8b99a4[_0x287e76(0x11f)](_0x436322),_0x8b99a4[_0x287e76(0xd9)];const _0x57487a=[..._0x4d95f3[_0x287e76(0xde)],_0x436322],_0x19db44=[];_0x57487a[_0x287e76(0x126)](_0xd6f196=>{const _0x228745=_0x287e76,_0x16a9f3=_0xd6f196[_0x228745(0xfa)]()[_0x228745(0xf4)];_0x19db44[_0x228745(0x145)](_0x5b7e98=>Math[_0x228745(0x159)](_0x5b7e98-_0x16a9f3)<this[_0x228745(0x12b)][_0x228745(0x110)])||_0x19db44[_0x228745(0x10b)](_0x16a9f3);});const _0x46e364=_0x19db44[_0x287e76(0x12e)];return _0x436322[_0x287e76(0x127)](),_0x46e364<=this[_0x287e76(0x12b)][_0x287e76(0x112)];}[_0x111ff9(0x12f)](_0x36bc2e,_0x1a976b){const _0x2c556f=_0x111ff9;this[_0x2c556f(0x14f)][_0x2c556f(0xf9)](),this[_0x2c556f(0x150)][_0x2c556f(0xf9)](),_0x36bc2e[_0x2c556f(0x126)](_0x290305=>{const _0x49152a=_0x2c556f;_0x1a976b[_0x49152a(0x14e)](_0x290305)?this[_0x49152a(0x150)][_0x49152a(0x102)](_0x290305):this[_0x49152a(0x14f)][_0x49152a(0x102)](_0x290305);});}[_0x111ff9(0x131)](_0x28d18d){const _0x4bd572=_0x111ff9;if(_0x28d18d>0x0&&!this[_0x4bd572(0x157)]&&this[_0x4bd572(0x12a)](),_0x28d18d>0x0&&this[_0x4bd572(0x157)]){const _0x4c98c3=''+this[_0x4bd572(0x12b)][_0x4bd572(0x141)]+(_0x28d18d<0x63?_0x28d18d:'99');this[_0x4bd572(0x157)][_0x4bd572(0xf8)]=_0x4c98c3;}this[_0x4bd572(0xf2)](),this[_0x4bd572(0x149)](),this[_0x4bd572(0xec)]();}[_0x111ff9(0x100)](_0x4d0afc,_0x1d7906){const _0x1a2595=_0x111ff9;this[_0x1a2595(0x12f)](_0x4d0afc,_0x1d7906),this[_0x1a2595(0x131)](_0x1d7906[_0x1a2595(0x12e)]);}[_0x111ff9(0x15b)](){const _0x12bdde=_0x111ff9;this[_0x12bdde(0x130)]&&_0x12bdde(0x11c)!=typeof IntersectionObserver&&(this[_0x12bdde(0xe1)]=new IntersectionObserver(_0x3e5dee=>{const _0x503787=_0x12bdde;_0x3e5dee[0x0][_0x503787(0x152)]&&this[_0x503787(0xfd)]&&requestAnimationFrame(()=>{const _0x5be96d=_0x503787;this[_0x5be96d(0xe7)]();});},{'threshold':0.01,'rootMargin':_0x12bdde(0x115)}),this[_0x12bdde(0xe1)][_0x12bdde(0x122)](this[_0x12bdde(0x130)]));}[_0x111ff9(0x128)](){const _0x2a6bde=_0x111ff9;if(!this[_0x2a6bde(0x130)])return!0x1;if(!this[_0x2a6bde(0x130)][_0x2a6bde(0xeb)])return!0x1;const _0x320712=this[_0x2a6bde(0x130)][_0x2a6bde(0xfa)]();if(0x0===_0x320712[_0x2a6bde(0xd0)]||0x0===_0x320712[_0x2a6bde(0x14d)])return!0x1;const _0x59f70d=window[_0x2a6bde(0x140)]||document[_0x2a6bde(0x134)][_0x2a6bde(0x156)],_0x5180b9=window[_0x2a6bde(0x104)]||document[_0x2a6bde(0x134)][_0x2a6bde(0x132)],_0xa4a1f4=0xc8;return _0x320712[_0x2a6bde(0x12c)]>=-0xc8&&_0x320712[_0x2a6bde(0xf4)]<=_0x59f70d+_0xa4a1f4&&_0x320712[_0x2a6bde(0xd5)]>=-0xc8&&_0x320712[_0x2a6bde(0x148)]<=_0x5180b9+_0xa4a1f4;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x37ba(_0x38e749,_0xcd70c){const _0x5dee44=_0x5dee();return _0x37ba=function(_0x37ba81,_0x44271f){_0x37ba81=_0x37ba81-0x121;let _0xda8e55=_0x5dee44[_0x37ba81];return _0xda8e55;},_0x37ba(_0x38e749,_0xcd70c);}const _0x4d4e2d=_0x37ba;(function(_0x1a828a,_0x5bc2cf){const _0x5e7c2a=_0x37ba,_0x219bea=_0x1a828a();while(!![]){try{const _0x65dca0=parseInt(_0x5e7c2a(0x124))/0x1*(parseInt(_0x5e7c2a(0x123))/0x2)+parseInt(_0x5e7c2a(0x154))/0x3*(parseInt(_0x5e7c2a(0x136))/0x4)+parseInt(_0x5e7c2a(0x122))/0x5+parseInt(_0x5e7c2a(0x162))/0x6*(-parseInt(_0x5e7c2a(0x15a))/0x7)+-parseInt(_0x5e7c2a(0x145))/0x8+parseInt(_0x5e7c2a(0x13e))/0x9+-parseInt(_0x5e7c2a(0x135))/0xa;if(_0x65dca0===_0x5bc2cf)break;else _0x219bea['push'](_0x219bea['shift']());}catch(_0x19bc51){_0x219bea['push'](_0x219bea['shift']());}}}(_0x5dee,0xe357d));import{ButtonView as _0x53adbe,IconView as _0x1e3412}from'ckeditor5/src/ui.js';import{IconClose as _0x3a3b36,IconDocument as _0x580603,IconFileUpload as _0x53039c,IconLink as _0xc6f73c,IconSelection as _0x3bd0f2}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x20fb0d}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x73bae4}from'../../../aicore/ui/aispinner.js';const bn={'file':_0x53039c,'document':_0x580603,'web-resource':_0xc6f73c,'text':_0x53039c,'selection':_0x3bd0f2,'mcp-tool-context':_0x580603},Tn=_0x4d4e2d(0x15c),En=_0x4d4e2d(0x125),An=_0x4d4e2d(0x153),Cn=_0x4d4e2d(0x12e),In=_0x4d4e2d(0x160),On=_0x4d4e2d(0x133),vn='n';export class AIChatContextItemButtonView extends _0x53adbe{constructor(_0x20025e,_0x585b08,_0x871a89,_0x8bf8d3,_0x14c85d=!0x1){const _0x11973c=_0x4d4e2d;super(_0x20025e),this[_0x11973c(0x140)]=_0x8bf8d3,this[_0x11973c(0x146)](_0x585b08,_0x871a89,_0x14c85d),this[_0x11973c(0x14a)]();}[_0x4d4e2d(0x157)](){const _0x2db011=_0x4d4e2d;super[_0x2db011(0x157)](),this[_0x2db011(0x140)]&&this[_0x2db011(0x12d)]&&(this[_0x2db011(0x12d)][_0x2db011(0x129)][_0x2db011(0x151)](_0x2db011(0x13a)),this[_0x2db011(0x128)](this[_0x2db011(0x12d)],()=>{const _0x1a1809=_0x2db011;this[_0x1a1809(0x12d)]&&this[_0x1a1809(0x12d)][_0x1a1809(0x129)][_0x1a1809(0x138)](_0x1a1809(0x13a));}));}[_0x4d4e2d(0x161)](){const _0x3a6959=_0x4d4e2d;this[_0x3a6959(0x140)]=!0x1,this[_0x3a6959(0x12d)]&&this[_0x3a6959(0x12d)][_0x3a6959(0x129)][_0x3a6959(0x138)](_0x3a6959(0x13a));}[_0x4d4e2d(0x146)](_0x1fde62,_0x1ed76a,_0x8d32dd){const _0x2303d3=_0x4d4e2d;this[_0x2303d3(0x137)](_0x2303d3(0x150),_0x1fde62[_0x2303d3(0x150)]),this[_0x2303d3(0x137)](_0x2303d3(0x142),!0x0),this[_0x2303d3(0x137)](_0x2303d3(0x141),_0x1fde62[_0x2303d3(0x14c)]),this[_0x2303d3(0x137)]('id',_0x1fde62[_0x2303d3(0x15d)]),this[_0x2303d3(0x137)](_0x2303d3(0x143),_0x1ed76a),this[_0x2303d3(0x137)](_0x2303d3(0x127),_0x8d32dd);}[_0x4d4e2d(0x14a)](){const _0x173372=_0x4d4e2d,_0x4482ee=this[_0x173372(0x14b)](),_0x5eedbf=this[_0x173372(0x134)](),_0x5ecccd=this[_0x173372(0x144)];this[_0x173372(0x155)]({'tag':_0x173372(0x158),'attributes':this[_0x173372(0x13b)](_0x5ecccd),'children':this[_0x173372(0x121)](_0x4482ee,_0x5eedbf,_0x5ecccd)});}[_0x4d4e2d(0x13b)](_0x1e67ea){const _0x1f0bc6=_0x4d4e2d;return{'class':[Tn,_0x1e67ea['if'](_0x1f0bc6(0x141),An,_0x360c6d=>_0x1f0bc6(0x12b)==_0x360c6d),_0x1e67ea['if'](_0x1f0bc6(0x141),En,_0x12e5b8=>_0x1f0bc6(0x132)==_0x12e5b8)],'data-cke-tooltip-text':_0x1e67ea['to'](_0x1f0bc6(0x150),yn),'data-cke-tooltip-position':vn,'data-cke-tooltip-class':On};}[_0x4d4e2d(0x121)](_0x504593,_0x5f0828,_0x52abc){const _0x5ce3e6=_0x4d4e2d,_0x32b11e=this[_0x5ce3e6(0x131)](_0x52abc),_0x3b515a=this[_0x5ce3e6(0x159)]();return this[_0x5ce3e6(0x143)]?[_0x504593,_0x32b11e]:[_0x504593,_0x3b515a,_0x32b11e,_0x5f0828];}[_0x4d4e2d(0x131)](_0x26d53a){const _0x1a9601=_0x4d4e2d;return{'tag':_0x1a9601(0x13f),'attributes':{'class':Cn},'children':[{'text':_0x26d53a['to'](_0x1a9601(0x150))}]};}[_0x4d4e2d(0x134)](){const _0x5019c8=_0x4d4e2d,_0x36b4d7=new _0x53adbe(this[_0x5019c8(0x147)]);return _0x36b4d7[_0x5019c8(0x137)]({'label':_0x20fb0d(this[_0x5019c8(0x147)],_0x5019c8(0x130)),'icon':_0x3a3b36}),this[_0x5019c8(0x12a)](_0x36b4d7),_0x36b4d7;}[_0x4d4e2d(0x12a)](_0xcad959){const _0x558898=_0x4d4e2d;_0xcad959['on'](_0x558898(0x149),()=>{const _0x3db2d0=_0x558898;this[_0x3db2d0(0x15e)](_0x3db2d0(0x13c),this['id']);});}[_0x4d4e2d(0x14b)](){const _0x1c70e3=_0x4d4e2d,_0x265b5c=this[_0x1c70e3(0x144)],_0xb23c22=new _0x1e3412();return _0xb23c22[_0x1c70e3(0x126)]=bn[this[_0x1c70e3(0x141)]],_0xb23c22[_0x1c70e3(0x12f)]({'attributes':{'class':[In,_0x265b5c['if'](_0x1c70e3(0x127),_0x1c70e3(0x14f),_0x12e733=>_0x12e733)]}}),_0xb23c22;}[_0x4d4e2d(0x128)](_0x4669a9,_0xfb4339){const _0x246282=_0x4d4e2d;if(!_0x4669a9)return;const _0x11b0e0=()=>{const _0x386522=_0x37ba;_0xfb4339(),_0x4669a9[_0x386522(0x14e)](_0x386522(0x14d),_0x11b0e0),_0x4669a9[_0x386522(0x14e)](_0x386522(0x139),_0x11b0e0);};_0x4669a9[_0x246282(0x152)](_0x246282(0x14d),_0x11b0e0),_0x4669a9[_0x246282(0x152)](_0x246282(0x139),_0x11b0e0);}[_0x4d4e2d(0x159)](){const _0x5cb885=_0x4d4e2d,_0xcea9f0=new _0x73bae4(_0x5cb885(0x148));return _0xcea9f0[_0x5cb885(0x15f)](_0x5cb885(0x156))['to'](this,_0x5cb885(0x127),_0xf6dae0=>_0xf6dae0),_0xcea9f0;}}function yn(_0x280bb3){const _0x17a1e0=_0x4d4e2d;if(!_0x280bb3)return _0x280bb3;if(_0x280bb3[_0x17a1e0(0x13d)]<=0x78)return _0x280bb3;const _0x45ee01=_0x280bb3[_0x17a1e0(0x12c)](0x0,0x78),_0x289725=_0x45ee01[_0x17a1e0(0x15b)]('\x20');return(_0x289725>0x0?_0x45ee01[_0x17a1e0(0x12c)](0x0,_0x289725):_0x45ee01)+'…';}function _0x5dee(){const _0x33a7df=['isVisible','render','div','_createLoaderIcon','985278dOuNLF','lastIndexOf','ck-ai-chat-context-chip','uiId','fire','bind','ck-ai-chat-context-chip__type-icon','disableAnimationOnEnter','48gxFXIs','_createTemplateChildren','4103860RpgnDk','4ywUzdd','652888DbqsWm','ck-ai-chat-context-chip_wide','content','isLoading','_handleAnimationEndOnce','classList','_setupRemoveButtonEvent','document','slice','element','ck-ai-chat-context-chip__label','extendTemplate','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','_createLabelElement','selection','ck-ai-chat-context-controls__chip-tooltip','_createRemoveButton','15863610iCnymL','18284sWkaOD','set','remove','webkitAnimationEnd','ck-ai-chat-context-chip_new-chip','_createTemplateAttributes','removeContextItemChip','length','15134454CSMxaf','span','_isAnimationOnEnterEnabled','itemType','tooltip','readonly','bindTemplate','2815800BvEKGL','_initializeProperties','locale','small','execute','_setupTemplate','_createIconView','type','animationend','removeEventListener','ck-hidden','label','add','addEventListener','ck-ai-chat-context-chip_document','123DFOvjo','setTemplate'];_0x5dee=function(){return _0x33a7df;};return _0x5dee();}
23
+ const _0x5ab7f6=_0xbbc8;function _0xbbc8(_0xe6dcd8,_0x338210){const _0x394024=_0x3940();return _0xbbc8=function(_0xbbc87f,_0x49af50){_0xbbc87f=_0xbbc87f-0x18c;let _0x1103b4=_0x394024[_0xbbc87f];return _0x1103b4;},_0xbbc8(_0xe6dcd8,_0x338210);}(function(_0x138a3e,_0x25d09c){const _0x3eb441=_0xbbc8,_0x622601=_0x138a3e();while(!![]){try{const _0x3c158b=parseInt(_0x3eb441(0x1bd))/0x1+parseInt(_0x3eb441(0x1a7))/0x2+parseInt(_0x3eb441(0x19c))/0x3+-parseInt(_0x3eb441(0x1b7))/0x4+parseInt(_0x3eb441(0x1ad))/0x5*(parseInt(_0x3eb441(0x1a6))/0x6)+parseInt(_0x3eb441(0x1c1))/0x7*(parseInt(_0x3eb441(0x1bb))/0x8)+-parseInt(_0x3eb441(0x1cc))/0x9*(parseInt(_0x3eb441(0x19e))/0xa);if(_0x3c158b===_0x25d09c)break;else _0x622601['push'](_0x622601['shift']());}catch(_0x3c60bc){_0x622601['push'](_0x622601['shift']());}}}(_0x3940,0x9d1ff));import{ButtonView as _0x2e8947,IconView as _0x571d16}from'ckeditor5/src/ui.js';function _0x3940(){const _0x47eddf=['div','tooltip','_handleAnimationEndOnce','_createTemplateAttributes','15pKbZPz','addEventListener','execute','remove','render','webkitAnimationEnd','bind','_createLabelElement','lastIndexOf','add','4621644ukrgXy','_createIconView','extendTemplate','fire','145352YgxGDn','removeEventListener','1047034IankOT','itemType','isVisible','uiId','315CUWpwz','ck-hidden','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','_createLoaderIcon','_setupTemplate','slice','selection','_createTemplateChildren','_isAnimationOnEnterEnabled','small','element','207caVvnY','span','locale','type','label','ck-ai-chat-context-chip__label','disableAnimationOnEnter','animationend','ck-ai-chat-context-chip_wide','readonly','_setupRemoveButtonEvent','content','ck-ai-chat-context-chip_document','ck-ai-chat-context-chip','setTemplate','ck-ai-chat-context-chip__type-icon','_initializeProperties','classList','3728859iiIZap','removeContextItemChip','1267570wFiToE','set','isLoading','ck-ai-chat-context-chip_new-chip','length','ck-ai-chat-context-controls__chip-tooltip','document','bindTemplate','1422942tXqbot','1790684CeKlBs','_createRemoveButton'];_0x3940=function(){return _0x47eddf;};return _0x3940();}import{IconClose as _0x15aa48,IconDocument as _0x5d4394,IconFileUpload as _0x173059,IconLink as _0x22d08c,IconSelection as _0x283a6f}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x183b56}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0xf0ef19}from'../../../aicore/ui/aispinner.js';const xn={'file':_0x173059,'document':_0x5d4394,'web-resource':_0x22d08c,'text':_0x173059,'selection':_0x283a6f,'mcp-tool-context':_0x5d4394},bn=_0x5ab7f6(0x197),wn=_0x5ab7f6(0x192),Tn=_0x5ab7f6(0x196),En=_0x5ab7f6(0x18f),fn=_0x5ab7f6(0x199),An=_0x5ab7f6(0x1a3),Cn='n';export class AIChatContextItemButtonView extends _0x2e8947{constructor(_0x257d0d,_0x24e5b3,_0x19c7e6,_0x11db15,_0x3e1dc8=!0x1){const _0x540f61=_0x5ab7f6;super(_0x257d0d),this[_0x540f61(0x1c9)]=_0x11db15,this[_0x540f61(0x19a)](_0x24e5b3,_0x19c7e6,_0x3e1dc8),this[_0x540f61(0x1c5)]();}[_0x5ab7f6(0x1b1)](){const _0x26dc87=_0x5ab7f6;super[_0x26dc87(0x1b1)](),this[_0x26dc87(0x1c9)]&&this[_0x26dc87(0x1cb)]&&(this[_0x26dc87(0x1cb)][_0x26dc87(0x19b)][_0x26dc87(0x1b6)](_0x26dc87(0x1a1)),this[_0x26dc87(0x1ab)](this[_0x26dc87(0x1cb)],()=>{const _0x266e32=_0x26dc87;this[_0x266e32(0x1cb)]&&this[_0x266e32(0x1cb)][_0x266e32(0x19b)][_0x266e32(0x1b0)](_0x266e32(0x1a1));}));}[_0x5ab7f6(0x190)](){const _0x321116=_0x5ab7f6;this[_0x321116(0x1c9)]=!0x1,this[_0x321116(0x1cb)]&&this[_0x321116(0x1cb)][_0x321116(0x19b)][_0x321116(0x1b0)](_0x321116(0x1a1));}[_0x5ab7f6(0x19a)](_0x360f8f,_0x2dd144,_0x9d93c8){const _0x36426a=_0x5ab7f6;this[_0x36426a(0x19f)](_0x36426a(0x18e),_0x360f8f[_0x36426a(0x18e)]),this[_0x36426a(0x19f)](_0x36426a(0x1aa),!0x0),this[_0x36426a(0x19f)](_0x36426a(0x1be),_0x360f8f[_0x36426a(0x18d)]),this[_0x36426a(0x19f)]('id',_0x360f8f[_0x36426a(0x1c0)]),this[_0x36426a(0x19f)](_0x36426a(0x193),_0x2dd144),this[_0x36426a(0x19f)](_0x36426a(0x1a0),_0x9d93c8);}[_0x5ab7f6(0x1c5)](){const _0x537061=_0x5ab7f6,_0x42cd8a=this[_0x537061(0x1b8)](),_0x485ca6=this[_0x537061(0x1a8)](),_0x2350fc=this[_0x537061(0x1a5)];this[_0x537061(0x198)]({'tag':_0x537061(0x1a9),'attributes':this[_0x537061(0x1ac)](_0x2350fc),'children':this[_0x537061(0x1c8)](_0x42cd8a,_0x485ca6,_0x2350fc)});}[_0x5ab7f6(0x1ac)](_0x5af6ef){const _0x262062=_0x5ab7f6;return{'class':[bn,_0x5af6ef['if'](_0x262062(0x1be),Tn,_0x570a61=>_0x262062(0x1a4)==_0x570a61),_0x5af6ef['if'](_0x262062(0x1be),wn,_0x10263d=>_0x262062(0x1c7)==_0x10263d)],'data-cke-tooltip-text':_0x5af6ef['to'](_0x262062(0x18e),In),'data-cke-tooltip-position':Cn,'data-cke-tooltip-class':An};}[_0x5ab7f6(0x1c8)](_0x203fef,_0x3f6171,_0xd29bb0){const _0x20bef6=_0x5ab7f6,_0x54532b=this[_0x20bef6(0x1b4)](_0xd29bb0),_0x481fd5=this[_0x20bef6(0x1c4)]();return this[_0x20bef6(0x193)]?[_0x203fef,_0x54532b]:[_0x203fef,_0x481fd5,_0x54532b,_0x3f6171];}[_0x5ab7f6(0x1b4)](_0x3ff0fa){const _0x7f099f=_0x5ab7f6;return{'tag':_0x7f099f(0x1cd),'attributes':{'class':En},'children':[{'text':_0x3ff0fa['to'](_0x7f099f(0x18e))}]};}[_0x5ab7f6(0x1a8)](){const _0x2ae632=_0x5ab7f6,_0x521d6e=new _0x2e8947(this[_0x2ae632(0x18c)]);return _0x521d6e[_0x2ae632(0x19f)]({'label':_0x183b56(this[_0x2ae632(0x18c)],_0x2ae632(0x1c3)),'icon':_0x15aa48}),this[_0x2ae632(0x194)](_0x521d6e),_0x521d6e;}[_0x5ab7f6(0x194)](_0x39ac58){const _0x5d2362=_0x5ab7f6;_0x39ac58['on'](_0x5d2362(0x1af),()=>{const _0x4a0bb0=_0x5d2362;this[_0x4a0bb0(0x1ba)](_0x4a0bb0(0x19d),this['id']);});}[_0x5ab7f6(0x1b8)](){const _0x3c0339=_0x5ab7f6,_0x4b08ea=this[_0x3c0339(0x1a5)],_0x17f2c7=new _0x571d16();return _0x17f2c7[_0x3c0339(0x195)]=xn[this[_0x3c0339(0x1be)]],_0x17f2c7[_0x3c0339(0x1b9)]({'attributes':{'class':[fn,_0x4b08ea['if'](_0x3c0339(0x1a0),_0x3c0339(0x1c2),_0x34ff7c=>_0x34ff7c)]}}),_0x17f2c7;}[_0x5ab7f6(0x1ab)](_0x3e1d01,_0x377885){const _0x20c163=_0x5ab7f6;if(!_0x3e1d01)return;const _0xe6e1c3=()=>{const _0x2da106=_0xbbc8;_0x377885(),_0x3e1d01[_0x2da106(0x1bc)](_0x2da106(0x191),_0xe6e1c3),_0x3e1d01[_0x2da106(0x1bc)](_0x2da106(0x1b2),_0xe6e1c3);};_0x3e1d01[_0x20c163(0x1ae)](_0x20c163(0x191),_0xe6e1c3),_0x3e1d01[_0x20c163(0x1ae)](_0x20c163(0x1b2),_0xe6e1c3);}[_0x5ab7f6(0x1c4)](){const _0x2ff382=_0x5ab7f6,_0xa72f7c=new _0xf0ef19(_0x2ff382(0x1ca));return _0xa72f7c[_0x2ff382(0x1b3)](_0x2ff382(0x1bf))['to'](this,_0x2ff382(0x1a0),_0x141724=>_0x141724),_0xa72f7c;}}function In(_0x33cbd7){const _0xb44d7f=_0x5ab7f6;if(!_0x33cbd7)return _0x33cbd7;if(_0x33cbd7[_0xb44d7f(0x1a2)]<=0x78)return _0x33cbd7;const _0x2ba0de=_0x33cbd7[_0xb44d7f(0x1c6)](0x0,0x78),_0x4a1034=_0x2ba0de[_0xb44d7f(0x1b5)]('\x20');return(_0x4a1034>0x0?_0x2ba0de[_0xb44d7f(0x1c6)](0x0,_0x4a1034):_0x2ba0de)+'…';}