@ckeditor/ckeditor5-ai 47.7.2 → 47.7.3

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 _0x5a50(){const _0x5f337e=['load','_processMessagesToInteractions','addResourceToContext','createInteraction','assistant','get','ai-chat-conversation-init-from-id-failed','model','type','2980466gpVWsn','addUrlToContext','toolName','getMessages','toLowerCase','getConversation','getCurrentDocumentContext','hasOwn','sessionId','reset','url','capabilities','isSelectionInContext','3BVGRkV','conversationId','length','role','ai-chat-conversation-already-started','updateCurrentDocument','getModel','8741040iTqYGV','ai-chat-conversation-start-failed','interactionCreated','toggleReasoning','destroy','fetchConversation','ai-chat-conversation-start-no-model-selected','push','updateCurrentDocumentInContext','code','removeFromContext','chatContext','ai-chat-handle-user-interaction-already-in-progress','1074042KMHXfW','start','addToolItemToContext','getInteraction','fire','toggleWebSearch','webSearch','indexOf','chatCapabilities','conversationStarted','setConversationTitle','isStarted','loadSourceResources','getAvailableModels','stack','ai-chat-handle-user-conversation-not-initialized','connector','set','populateFromMessage','isFromHistory','getDocumentContext','_handleToolResultData','5778824WsGBAE','title','handleUserInteraction','getPendingContextItems','fetchConversationMessages','mcp-tool-result','selectedModel','setModel','find','addSelectionToContext','text','ai-chat-handle-user-interaction-start-failed','modelSelected','delegate','currentReply','appendContent','ai-chat-conversation-set-model-not-available','addFilesToContext','addToConversationContext','341716YXDLvR','splice','addCurrentDocumentToContext','content','_extractContextItems','ai-chat-conversation-init-failed','isCurrentDocumentInContext','isAvailable','conversationInitialized','isCurrentDocumentInConversation','removeSelectionFromContext','removeInteraction','1651614lZZbly','startConversation','sources','chatModels','getCapabilitiesConfig','group','init','interactions','message','getAll','2261005yURMUw','lastInteraction','ai-chat-conversation-set-model-null','options','reasoning','modification','createReply','setWebSearch','parse','getEditor','error','setReasoning','currentInteraction','1fghnNZ','stop','selectedModelId','user','attributes','prompt','contextItems','7yAfbdz'];_0x5a50=function(){return _0x5f337e;};return _0x5a50();}const _0x56fbd5=_0x10ed;(function(_0x5d70ad,_0x2b9231){const _0x5b4fb7=_0x10ed,_0x249f64=_0x5d70ad();while(!![]){try{const _0x4b864d=parseInt(_0x5b4fb7(0x1a7))/0x1*(parseInt(_0x5b4fb7(0x1b8))/0x2)+-parseInt(_0x5b4fb7(0x1c5))/0x3*(-parseInt(_0x5b4fb7(0x184))/0x4)+-parseInt(_0x5b4fb7(0x19a))/0x5+-parseInt(_0x5b4fb7(0x190))/0x6+parseInt(_0x5b4fb7(0x1ae))/0x7*(parseInt(_0x5b4fb7(0x1ef))/0x8)+parseInt(_0x5b4fb7(0x1d9))/0x9+-parseInt(_0x5b4fb7(0x1cc))/0xa;if(_0x4b864d===_0x2b9231)break;else _0x249f64['push'](_0x249f64['shift']());}catch(_0xde6d14){_0x249f64['push'](_0x249f64['shift']());}}}(_0x5a50,0xc72a3));import{CKEditorError as _0x2d9d07,EmitterMixin as _0x1c2472,logWarning as _0x57ebd4}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x2bc3ee}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0xcbfaf2,AI_CONTEXT_MODEL_EVENT_NAMES as _0xe3ed0}from'./aichatcontext.js';import{AICapabilities as _0x16a27d,CAPABILITIES_MODEL_EVENT_NAMES as _0x85c80e}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x3e0766}from'./aichatinteraction.js';import{errorsMap as _0x1bed94}from'../../errorsmap.js';function _0x10ed(_0x2e5722,_0x42ba0f){const _0x5a5091=_0x5a50();return _0x10ed=function(_0x10edc2,_0x4c943f){_0x10edc2=_0x10edc2-0x177;let _0x141773=_0x5a5091[_0x10edc2];return _0x141773;},_0x10ed(_0x2e5722,_0x42ba0f);}export class AIChatConversation extends _0x1c2472(){['id'];[_0x56fbd5(0x1e4)]=!0x1;[_0x56fbd5(0x1ec)];[_0x56fbd5(0x197)]=[];[_0x56fbd5(0x1a6)];[_0x56fbd5(0x177)];[_0x56fbd5(0x1e9)];[_0x56fbd5(0x19d)];constructor(_0x20e4eb){const _0x5a4fd3=_0x56fbd5;super(),this[_0x5a4fd3(0x19d)]=_0x20e4eb,this[_0x5a4fd3(0x1e9)]=_0x20e4eb[_0x5a4fd3(0x1e9)],this[_0x5a4fd3(0x193)]=_0x20e4eb[_0x5a4fd3(0x193)],this['id']=_0x20e4eb[_0x5a4fd3(0x1c6)],this[_0x5a4fd3(0x1ec)]=_0x20e4eb[_0x5a4fd3(0x1ec)];}async[_0x56fbd5(0x196)](_0x30ea5f){const _0x1b3e9b=_0x56fbd5;try{this[_0x1b3e9b(0x1d7)]=new _0xcbfaf2({'connector':this[_0x1b3e9b(0x1e9)],'config':_0x30ea5f,'ownerId':this['id']}),this[_0x1b3e9b(0x1d7)][_0x1b3e9b(0x17e)](..._0xe3ed0)['to'](this),this[_0x1b3e9b(0x1d7)][_0x1b3e9b(0x196)](),this[_0x1b3e9b(0x1e1)]=new _0x16a27d(),this[_0x1b3e9b(0x1e1)][_0x1b3e9b(0x17e)](..._0x85c80e)['to'](this),this[_0x1b3e9b(0x1e1)][_0x1b3e9b(0x196)]();const _0x56da28=await this[_0x1b3e9b(0x193)][_0x1b3e9b(0x1e6)]();this[_0x1b3e9b(0x1dd)](_0x1b3e9b(0x18c),{'availableModels':_0x56da28});const _0x2b4c8f=await this[_0x1b3e9b(0x193)][_0x1b3e9b(0x1cb)](this[_0x1b3e9b(0x19d)][_0x1b3e9b(0x1a9)]);_0x2b4c8f&&await this[_0x1b3e9b(0x178)](_0x2b4c8f);}catch(_0x442409){const _0x4ff159=new _0x2d9d07(_0x1b3e9b(0x189),null,{'message':_0x442409[_0x1b3e9b(0x198)]||_0x442409});_0x4ff159[_0x1b3e9b(0x1e7)]=_0x442409[_0x1b3e9b(0x1e7)],this[_0x1b3e9b(0x1dd)](_0x1b3e9b(0x1a4),{'error':_0x4ff159});}}async[_0x56fbd5(0x1da)](){const _0x452878=_0x56fbd5;if(this[_0x452878(0x1e4)])throw new _0x2d9d07(_0x452878(0x1c9),null,{'conversation':this});if(!this[_0x452878(0x177)])throw new _0x2d9d07(_0x452878(0x1d2),null,{'conversation':this});try{const {id:_0x2b601f}=await this[_0x452878(0x1e9)][_0x452878(0x191)](this['id'],this[_0x452878(0x19d)][_0x452878(0x195)])[_0x452878(0x1bd)]();this['id']=_0x2b601f,this[_0x452878(0x1e4)]=!0x0,this[_0x452878(0x1dd)](_0x452878(0x1e2),{'conversationId':this['id'],'selectedModel':this[_0x452878(0x177)]});}catch(_0x27aac0){const _0x191d3e=new _0x2d9d07(_0x452878(0x1cd),null,{'message':_0x27aac0[_0x452878(0x198)],'conversationId':this['id']});throw _0x191d3e[_0x452878(0x1e7)]=_0x27aac0[_0x452878(0x1e7)],this[_0x452878(0x1dd)](_0x452878(0x1a4),{'error':_0x191d3e}),_0x191d3e;}}async[_0x56fbd5(0x1af)](_0x536b0a,_0x4c33fb){const _0xb737d6=_0x56fbd5;try{const _0x500036=await this[_0xb737d6(0x1e9)][_0xb737d6(0x1d1)](_0x536b0a)[_0xb737d6(0x1bd)](),_0x196dda=await this[_0xb737d6(0x1e9)][_0xb737d6(0x1f3)](_0x536b0a)[_0xb737d6(0x1bb)](),_0x2a8988=_0x196dda[0x0][_0xb737d6(0x1b6)];this[_0xb737d6(0x1e4)]=!0x0,this['id']=_0x500036['id'],_0xb737d6(0x1f0)in _0x500036?this[_0xb737d6(0x1dd)](_0xb737d6(0x1e3),_0x500036[_0xb737d6(0x1f0)],!0x0):this[_0xb737d6(0x1dd)](_0xb737d6(0x1e3),'',!0x0);const _0x46526c=(await this[_0xb737d6(0x193)][_0xb737d6(0x199)]())[_0xb737d6(0x179)](_0x18a196=>_0x18a196['id'][_0xb737d6(0x1bc)]()===_0x2a8988[_0xb737d6(0x1bc)]());return this[_0xb737d6(0x177)]=_0x46526c,this[_0xb737d6(0x1dd)](_0xb737d6(0x17d),{'selectedModel':_0x46526c,'isDisabled':!0x0}),await this[_0xb737d6(0x1b0)](_0x196dda,_0x4c33fb,_0x2a8988),this[_0xb737d6(0x1a6)]=void 0x0,this;}catch(_0x14c794){const _0xfb4c1=new _0x2d9d07(_0xb737d6(0x1b5),null,{'message':_0x14c794[_0xb737d6(0x198)],'conversationId':_0x536b0a});throw _0xfb4c1[_0xb737d6(0x1e7)]=_0x14c794[_0xb737d6(0x1e7)],this[_0xb737d6(0x1dd)](_0xb737d6(0x1a4),{'error':_0xfb4c1}),_0xfb4c1;}}async[_0x56fbd5(0x1b0)](_0x55110a,_0x15c437,_0x2e6286){const _0x2ed0e2=_0x56fbd5;let _0x4a5816;for(const _0x4ef608 of _0x55110a)if(_0x2ed0e2(0x1aa)===_0x4ef608[_0x2ed0e2(0x1c8)]){const _0x3839ed=await this[_0x2ed0e2(0x188)](_0x4ef608),_0x59a569={'isReasoningEnabled':Object[_0x2ed0e2(0x1bf)](_0x4ef608[_0x2ed0e2(0x1c3)],_0x2ed0e2(0x19e)),'isWebSearchEnabled':Object[_0x2ed0e2(0x1bf)](_0x4ef608[_0x2ed0e2(0x1c3)],_0x2ed0e2(0x1df))};_0x4a5816=this[_0x2ed0e2(0x1b2)]({'userMessage':_0x4ef608[_0x2ed0e2(0x1ac)],'contextItems':_0x3839ed,'capabilities':_0x59a569,'modelId':_0x2e6286,'attributes':_0x4ef608[_0x2ed0e2(0x1ab)]}),this[_0x2ed0e2(0x1a6)]=_0x4a5816,this[_0x2ed0e2(0x1d7)][_0x2ed0e2(0x183)](this[_0x2ed0e2(0x1a6)][_0x2ed0e2(0x1ad)]);}else{if(_0x2ed0e2(0x1b3)===_0x4ef608[_0x2ed0e2(0x1c8)]&&_0x4a5816){const _0x5dd278=[];for(const _0xb5e4e8 of _0x4ef608[_0x2ed0e2(0x187)])switch(_0xb5e4e8[_0x2ed0e2(0x1b7)]){case _0x2ed0e2(0x17b):case _0x2ed0e2(0x19f):{const _0x40aaf6=_0x4a5816[_0x2ed0e2(0x1ed)]()?.[_0x2ed0e2(0x1c0)]!==_0x15c437;_0x4a5816[_0x2ed0e2(0x17f)]=_0x4a5816[_0x2ed0e2(0x1a0)]({'type':_0xb5e4e8[_0x2ed0e2(0x1b7)],'isDone':!0x0,'interactionId':_0x4a5816['id'],'areActionsDisabled':_0x40aaf6}),_0x4a5816[_0x2ed0e2(0x17f)][_0x2ed0e2(0x180)](_0xb5e4e8[_0x2ed0e2(0x187)]),_0x5dd278[_0x2ed0e2(0x1c7)]>0x0&&(_0x4a5816[_0x2ed0e2(0x17f)][_0x2ed0e2(0x192)]=_0x5dd278[_0x2ed0e2(0x185)](0x0));break;}case _0x2ed0e2(0x1c2):_0x5dd278[_0x2ed0e2(0x1d3)](_0xb5e4e8);break;case _0x2ed0e2(0x1f4):{const {data:_0x550a76,attributes:_0x1f4c2f}=JSON[_0x2ed0e2(0x1a2)](_0xb5e4e8[_0x2ed0e2(0x187)]);_0x4a5816[_0x2ed0e2(0x1ee)]({'toolName':_0xb5e4e8[_0x2ed0e2(0x1ba)],'data':_0x550a76,'attributes':_0x1f4c2f});break;}}}}}async[_0x56fbd5(0x188)](_0x3efb70){const _0xa64167=_0x56fbd5,_0xbeff3a=new Map();if(!_0x3efb70[_0xa64167(0x187)])return _0xbeff3a;for(const _0x364777 of _0x3efb70[_0xa64167(0x187)]){const _0x12a76e=await this[_0xa64167(0x1d7)][_0xa64167(0x1eb)](_0x364777);_0x12a76e&&_0xbeff3a[_0xa64167(0x1ea)](_0x12a76e['id'],_0x12a76e);}return _0xbeff3a;}async[_0x56fbd5(0x1f1)]({userMessage:_0x35f434,attributes:_0x1665e0}){const _0x153cf2=_0x56fbd5;if(!this[_0x153cf2(0x1e4)])throw new _0x2d9d07(_0x153cf2(0x1e8),null,{'conversation':this});if(this[_0x153cf2(0x1a6)])throw new _0x2d9d07(_0x153cf2(0x1d8),null,{'conversation':this});try{const _0xdb684a=this[_0x153cf2(0x1d7)][_0x153cf2(0x1f2)](),_0x17c5a4=this[_0x153cf2(0x1e1)][_0x153cf2(0x194)](),_0x8216c2=this[_0x153cf2(0x177)]['id'];this[_0x153cf2(0x1a6)]=this[_0x153cf2(0x1b2)]({'userMessage':_0x35f434,'contextItems':_0xdb684a,'capabilities':_0x17c5a4,'modelId':_0x8216c2,'attributes':_0x1665e0}),await this[_0x153cf2(0x1a6)][_0x153cf2(0x1da)](),this[_0x153cf2(0x1d7)][_0x153cf2(0x183)](this[_0x153cf2(0x1a6)][_0x153cf2(0x1ad)]);}catch(_0x2a3659){if(_0x2a3659 instanceof _0x2d9d07)this[_0x153cf2(0x1dd)](_0x153cf2(0x1a4),{'interactionId':this[_0x153cf2(0x1a6)]?this[_0x153cf2(0x1a6)]['id']:void 0x0,'error':_0x2a3659});else{const _0x18963f=_0x1bed94[_0x153cf2(0x1b4)](_0x2a3659[_0x153cf2(0x1d5)])||_0x153cf2(0x17c);this[_0x153cf2(0x1dd)](_0x153cf2(0x1a4),{'interactionId':this[_0x153cf2(0x1a6)]?this[_0x153cf2(0x1a6)]['id']:void 0x0,'error':new _0x2d9d07(_0x18963f,null,{'error':_0x2a3659})});}}finally{this[_0x153cf2(0x1a6)]?.[_0x153cf2(0x1a8)](),this[_0x153cf2(0x1a6)]=void 0x0;}}[_0x56fbd5(0x1b2)]({userMessage:_0xe5df84,contextItems:_0x3e7e92,capabilities:_0x4c517b,modelId:_0x524160,attributes:_0xa16b4b}){const _0x53f8c4=_0x56fbd5,_0x338e67=new _0x3e0766({'userMessage':_0xe5df84,'contextItems':_0x3e7e92,'capabilities':_0x4c517b,'conversationId':this['id'],'connector':this[_0x53f8c4(0x1e9)],'editor':this[_0x53f8c4(0x19d)][_0x53f8c4(0x1a3)]&&this[_0x53f8c4(0x19d)][_0x53f8c4(0x1a3)](),'model':_0x524160,'attributes':_0xa16b4b});return _0x338e67[_0x53f8c4(0x17e)](..._0x2bc3ee)['to'](this),this[_0x53f8c4(0x197)][_0x53f8c4(0x1d3)](_0x338e67),this[_0x53f8c4(0x1dd)](_0x53f8c4(0x1ce),_0x338e67),_0x338e67;}[_0x56fbd5(0x1dc)](_0x442d2b){const _0xf29f52=_0x56fbd5;return this[_0xf29f52(0x197)][_0xf29f52(0x179)](_0x70a0ef=>_0x70a0ef['id']===_0x442d2b);}[_0x56fbd5(0x18f)](_0x22dd95){const _0x5aea08=_0x56fbd5,_0x334c6c=this[_0x5aea08(0x1dc)](_0x22dd95);_0x334c6c&&(_0x334c6c[_0x5aea08(0x1d0)](),this[_0x5aea08(0x197)][_0x5aea08(0x185)](this[_0x5aea08(0x197)][_0x5aea08(0x1e0)](_0x334c6c),0x1));}get[_0x56fbd5(0x19b)](){const _0x122d7d=_0x56fbd5;return this[_0x122d7d(0x197)][this[_0x122d7d(0x197)][_0x122d7d(0x1c7)]-0x1];}[_0x56fbd5(0x186)](_0x3e6da5){const _0x31a2f9=_0x56fbd5;this[_0x31a2f9(0x1d7)][_0x31a2f9(0x186)](_0x3e6da5);}async[_0x56fbd5(0x1d4)]({content:_0x238bcf,version:_0x5d2119,sessionId:_0x5658f7,selections:_0x3753d8}){const _0x15ab45=_0x56fbd5;await this[_0x15ab45(0x1d7)][_0x15ab45(0x1ca)](_0x238bcf,_0x5d2119,_0x5658f7,_0x3753d8);}[_0x56fbd5(0x1be)](){const _0x1a7c51=_0x56fbd5;return this[_0x1a7c51(0x1a6)]?.[_0x1a7c51(0x1ed)]()?.[_0x1a7c51(0x187)]||'';}[_0x56fbd5(0x17a)](_0x44b507){const _0x14e53d=_0x56fbd5;this[_0x14e53d(0x1d7)][_0x14e53d(0x17a)](_0x44b507);}[_0x56fbd5(0x18e)](){const _0xd5e067=_0x56fbd5;this[_0xd5e067(0x1d7)][_0xd5e067(0x18e)]();}[_0x56fbd5(0x182)](_0x128438){const _0xd7598c=_0x56fbd5;this[_0xd7598c(0x1d7)][_0xd7598c(0x182)](_0x128438);}[_0x56fbd5(0x1b9)](_0x7addaa){const _0xd197f8=_0x56fbd5;this[_0xd197f8(0x1d7)][_0xd197f8(0x1b9)](_0x7addaa);}[_0x56fbd5(0x1db)](_0x12e5ef){const _0x2216bd=_0x56fbd5;this[_0x2216bd(0x1d7)][_0x2216bd(0x1db)](_0x12e5ef);}[_0x56fbd5(0x1b1)](_0x54776b,_0x2df0ed){const _0x3ad0ac=_0x56fbd5;this[_0x3ad0ac(0x1d7)][_0x3ad0ac(0x1b1)](_0x54776b,_0x2df0ed);}[_0x56fbd5(0x1e5)](_0x5e3825,_0x210013,_0x1539b6){const _0x53562e=_0x56fbd5;return this[_0x53562e(0x1d7)][_0x53562e(0x1e5)](_0x5e3825,_0x210013,_0x1539b6);}[_0x56fbd5(0x1d6)](_0x5bbc1b){const _0x3d8916=_0x56fbd5;this[_0x3d8916(0x1d7)][_0x3d8916(0x1d6)](_0x5bbc1b);}[_0x56fbd5(0x1a1)](_0x3779e7){const _0x304f45=_0x56fbd5;this[_0x304f45(0x1e1)][_0x304f45(0x1a1)](_0x3779e7);}[_0x56fbd5(0x1de)](){const _0x222939=_0x56fbd5;this[_0x222939(0x1e1)][_0x222939(0x1de)]();}[_0x56fbd5(0x1a5)](_0x295666){const _0x3f6bb7=_0x56fbd5;this[_0x3f6bb7(0x1e1)][_0x3f6bb7(0x1a5)](_0x295666);}[_0x56fbd5(0x1cf)](){const _0x44cc43=_0x56fbd5;this[_0x44cc43(0x1e1)][_0x44cc43(0x1cf)]();}[_0x56fbd5(0x18a)](){const _0x57090c=_0x56fbd5;return this[_0x57090c(0x1d7)][_0x57090c(0x18a)]();}[_0x56fbd5(0x18d)](){const _0x20c40b=_0x56fbd5;return this[_0x20c40b(0x1d7)][_0x20c40b(0x18d)]();}[_0x56fbd5(0x1c4)](){const _0x2799e4=_0x56fbd5;return this[_0x2799e4(0x1d7)][_0x2799e4(0x1c4)]();}async[_0x56fbd5(0x178)](_0x16972f){const _0x2c4658=_0x56fbd5;_0x16972f?!0x1===await this[_0x2c4658(0x193)][_0x2c4658(0x18b)](_0x16972f)&&(_0x57ebd4(_0x2c4658(0x181),{'conversation':this,'model':_0x16972f}),_0x16972f=(await this[_0x2c4658(0x193)][_0x2c4658(0x1e6)]())[0x0]):(_0x57ebd4(_0x2c4658(0x19c),{'conversation':this}),_0x16972f=(await this[_0x2c4658(0x193)][_0x2c4658(0x1e6)]())[0x0]),_0x16972f['id']!==this[_0x2c4658(0x177)]?.['id']&&(this[_0x2c4658(0x177)]=_0x16972f,this[_0x2c4658(0x1e1)][_0x2c4658(0x1c1)](),this[_0x2c4658(0x1dd)](_0x2c4658(0x17d),{'selectedModel':_0x16972f}));}}
23
+ const _0x1dc51d=_0x6343;function _0x6343(_0x2b2c5e,_0x1d556d){const _0x20ad60=_0x20ad();return _0x6343=function(_0x6343e4,_0x5b6b17){_0x6343e4=_0x6343e4-0x10e;let _0x1cd416=_0x20ad60[_0x6343e4];return _0x1cd416;},_0x6343(_0x2b2c5e,_0x1d556d);}(function(_0x32408b,_0x370877){const _0x3b3bfd=_0x6343,_0x3ed799=_0x32408b();while(!![]){try{const _0x17b69f=-parseInt(_0x3b3bfd(0x11e))/0x1*(-parseInt(_0x3b3bfd(0x17e))/0x2)+-parseInt(_0x3b3bfd(0x18a))/0x3*(parseInt(_0x3b3bfd(0x181))/0x4)+parseInt(_0x3b3bfd(0x151))/0x5*(parseInt(_0x3b3bfd(0x177))/0x6)+-parseInt(_0x3b3bfd(0x136))/0x7*(-parseInt(_0x3b3bfd(0x174))/0x8)+-parseInt(_0x3b3bfd(0x143))/0x9*(parseInt(_0x3b3bfd(0x14f))/0xa)+-parseInt(_0x3b3bfd(0x165))/0xb*(-parseInt(_0x3b3bfd(0x16d))/0xc)+-parseInt(_0x3b3bfd(0x15a))/0xd*(parseInt(_0x3b3bfd(0x16a))/0xe);if(_0x17b69f===_0x370877)break;else _0x3ed799['push'](_0x3ed799['shift']());}catch(_0x36adad){_0x3ed799['push'](_0x3ed799['shift']());}}}(_0x20ad,0x7fac8));import{CKEditorError as _0x3c6d59,EmitterMixin as _0x48b84a,logWarning as _0x3eb7d5}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x5aec34}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0xfd1c9f,AI_CONTEXT_MODEL_EVENT_NAMES as _0x116d7f}from'./aichatcontext.js';import{AICapabilities as _0x15b93e,CAPABILITIES_MODEL_EVENT_NAMES as _0x64eb2}from'../../aicore/model/aicapabilities.js';function _0x20ad(){const _0x1f0a7b=['selectedModel','populateFromMessage','getMessages','role','title','stop','createInteraction','updateCurrentDocument','removeInteraction','ai-chat-handle-user-interaction-start-failed','10MrNXEv','addResourceToContext','3260ZRmXia','fetchConversationMessages','setWebSearch','removeSelectionFromContext','ai-chat-conversation-set-model-not-available','isStarted','load','addFilesToContext','ai-chat-conversation-set-model-null','18369bomvlx','modelSelected','addUrlToContext','_extractContextItems','set','ai-chat-conversation-init-failed','stack','parse','getAll','_processMessagesToInteractions','addSelectionToContext','113927UEVFYS','init','length','chatContext','updateCurrentDocumentInContext','6286nAcdrU','setReasoning','getAvailableModels','1032aVUxnX','hasOwn','isCurrentDocumentInConversation','addCurrentDocumentToContext','toLowerCase','addToolItemToContext','start','8atgeCl','createReply','type','2634IDzUyg','isCurrentDocumentInContext','code','reasoning','ai-chat-conversation-already-started','push','chatModels','11636soPFce','setConversationTitle','getCurrentDocumentContext','3385748xialmI','ai-chat-handle-user-conversation-not-initialized','reset','fire','ai-chat-conversation-start-failed','content','getCapabilitiesConfig','splice','currentInteraction','3SkdHvX','setModel','appendContent','error','lastInteraction','conversationId','contextItems','user','group','conversationStarted','chatCapabilities','sources','webSearch','addToConversationContext','toolName','ai-chat-conversation-init-from-id-failed','message','find','modification','currentReply','text','toggleWebSearch','72faUWTe','getInteraction','interactionCreated','attributes','assistant','toggleReasoning','sessionId','loadSourceResources','ai-chat-conversation-start-no-model-selected','connector','isSelectionInContext','selectedModelId','_handleToolResultData','get','url','indexOf','getDocumentContext','isFromHistory','removeFromContext','capabilities','delegate','model','options','ai-chat-handle-user-interaction-already-in-progress','5904997DkZAsM','mcp-tool-result','startConversation','getEditor','getModel','prompt','fetchConversation','destroy','getConversation','isAvailable','conversationInitialized','getPendingContextItems','handleUserInteraction','3920139cEZXSs','interactions'];_0x20ad=function(){return _0x1f0a7b;};return _0x20ad();}import{AIChatInteraction as _0x2aad21}from'./aichatinteraction.js';import{errorsMap as _0x1cc055}from'../../errorsmap.js';export class AIChatConversation extends _0x48b84a(){['id'];[_0x1dc51d(0x156)]=!0x1;[_0x1dc51d(0x12f)];[_0x1dc51d(0x144)]=[];[_0x1dc51d(0x189)];[_0x1dc51d(0x145)];[_0x1dc51d(0x127)];[_0x1dc51d(0x134)];constructor(_0x418c75){const _0x51fa1e=_0x1dc51d;super(),this[_0x51fa1e(0x134)]=_0x418c75,this[_0x51fa1e(0x127)]=_0x418c75[_0x51fa1e(0x127)],this[_0x51fa1e(0x17d)]=_0x418c75[_0x51fa1e(0x17d)],this['id']=_0x418c75[_0x51fa1e(0x18f)],this[_0x51fa1e(0x12f)]=_0x418c75[_0x51fa1e(0x12f)];}async[_0x1dc51d(0x166)](_0x235d17){const _0x281d25=_0x1dc51d;try{this[_0x281d25(0x168)]=new _0xfd1c9f({'connector':this[_0x281d25(0x127)],'config':_0x235d17,'ownerId':this['id']}),this[_0x281d25(0x168)][_0x281d25(0x132)](..._0x116d7f)['to'](this),this[_0x281d25(0x168)][_0x281d25(0x166)](),this[_0x281d25(0x112)]=new _0x15b93e(),this[_0x281d25(0x112)][_0x281d25(0x132)](..._0x64eb2)['to'](this),this[_0x281d25(0x112)][_0x281d25(0x166)]();const _0x3d75ce=await this[_0x281d25(0x17d)][_0x281d25(0x16c)]();this[_0x281d25(0x184)](_0x281d25(0x140),{'availableModels':_0x3d75ce});const _0x570254=await this[_0x281d25(0x17d)][_0x281d25(0x13a)](this[_0x281d25(0x134)][_0x281d25(0x129)]);_0x570254&&await this[_0x281d25(0x18b)](_0x570254);}catch(_0x49312e){const _0xb72e3b=new _0x3c6d59(_0x281d25(0x15f),null,{'message':_0x49312e[_0x281d25(0x118)]||_0x49312e});_0xb72e3b[_0x281d25(0x160)]=_0x49312e[_0x281d25(0x160)],this[_0x281d25(0x184)](_0x281d25(0x18d),{'error':_0xb72e3b});}}async[_0x1dc51d(0x173)](){const _0x286f66=_0x1dc51d;if(this[_0x286f66(0x156)])throw new _0x3c6d59(_0x286f66(0x17b),null,{'conversation':this});if(!this[_0x286f66(0x145)])throw new _0x3c6d59(_0x286f66(0x126),null,{'conversation':this});try{const {id:_0x35096e}=await this[_0x286f66(0x127)][_0x286f66(0x138)](this['id'],this[_0x286f66(0x134)][_0x286f66(0x110)])[_0x286f66(0x13e)]();this['id']=_0x35096e,this[_0x286f66(0x156)]=!0x0,this[_0x286f66(0x184)](_0x286f66(0x111),{'conversationId':this['id'],'selectedModel':this[_0x286f66(0x145)]});}catch(_0x57d7ff){const _0x8be4fe=new _0x3c6d59(_0x286f66(0x185),null,{'message':_0x57d7ff[_0x286f66(0x118)],'conversationId':this['id']});throw _0x8be4fe[_0x286f66(0x160)]=_0x57d7ff[_0x286f66(0x160)],this[_0x286f66(0x184)](_0x286f66(0x18d),{'error':_0x8be4fe}),_0x8be4fe;}}async[_0x1dc51d(0x157)](_0x34ab86,_0x44dcb4){const _0x35f430=_0x1dc51d;try{const _0x51cbbf=await this[_0x35f430(0x127)][_0x35f430(0x13c)](_0x34ab86)[_0x35f430(0x13e)](),_0x762aa6=await this[_0x35f430(0x127)][_0x35f430(0x152)](_0x34ab86)[_0x35f430(0x147)](),_0x40d4c2=_0x762aa6[0x0][_0x35f430(0x133)];this[_0x35f430(0x156)]=!0x0,this['id']=_0x51cbbf['id'],_0x35f430(0x149)in _0x51cbbf?this[_0x35f430(0x184)](_0x35f430(0x17f),_0x51cbbf[_0x35f430(0x149)],!0x0):this[_0x35f430(0x184)](_0x35f430(0x17f),'',!0x0);const _0x272926=(await this[_0x35f430(0x17d)][_0x35f430(0x162)]())[_0x35f430(0x119)](_0x33850e=>_0x33850e['id'][_0x35f430(0x171)]()===_0x40d4c2[_0x35f430(0x171)]());return this[_0x35f430(0x145)]=_0x272926,this[_0x35f430(0x184)](_0x35f430(0x15b),{'selectedModel':_0x272926,'isDisabled':!0x0}),await this[_0x35f430(0x163)](_0x762aa6,_0x44dcb4,_0x40d4c2),this[_0x35f430(0x189)]=void 0x0,this;}catch(_0x24b835){const _0x3d5049=new _0x3c6d59(_0x35f430(0x117),null,{'message':_0x24b835[_0x35f430(0x118)],'conversationId':_0x34ab86});throw _0x3d5049[_0x35f430(0x160)]=_0x24b835[_0x35f430(0x160)],this[_0x35f430(0x184)](_0x35f430(0x18d),{'error':_0x3d5049}),_0x3d5049;}}async[_0x1dc51d(0x163)](_0x342de3,_0xe383ac,_0x127f6e){const _0x3ea599=_0x1dc51d;let _0x357fa3;for(const _0x4a2d25 of _0x342de3)if(_0x3ea599(0x10f)===_0x4a2d25[_0x3ea599(0x148)]){const _0x43d17c=await this[_0x3ea599(0x15d)](_0x4a2d25),_0x2ca50c={'isReasoningEnabled':Object[_0x3ea599(0x16e)](_0x4a2d25[_0x3ea599(0x131)],_0x3ea599(0x17a)),'isWebSearchEnabled':Object[_0x3ea599(0x16e)](_0x4a2d25[_0x3ea599(0x131)],_0x3ea599(0x114))};_0x357fa3=this[_0x3ea599(0x14b)]({'userMessage':_0x4a2d25[_0x3ea599(0x13b)],'contextItems':_0x43d17c,'capabilities':_0x2ca50c,'modelId':_0x127f6e,'attributes':_0x4a2d25[_0x3ea599(0x121)]}),this[_0x3ea599(0x189)]=_0x357fa3,this[_0x3ea599(0x168)][_0x3ea599(0x115)](this[_0x3ea599(0x189)][_0x3ea599(0x10e)]);}else{if(_0x3ea599(0x122)===_0x4a2d25[_0x3ea599(0x148)]&&_0x357fa3){const _0x193ec4=[];for(const _0x41e523 of _0x4a2d25[_0x3ea599(0x186)])switch(_0x41e523[_0x3ea599(0x176)]){case _0x3ea599(0x11c):case _0x3ea599(0x11a):{const _0x37a10e=_0x357fa3[_0x3ea599(0x12e)]()?.[_0x3ea599(0x124)]!==_0xe383ac;_0x357fa3[_0x3ea599(0x11b)]=_0x357fa3[_0x3ea599(0x175)]({'type':_0x41e523[_0x3ea599(0x176)],'isDone':!0x0,'interactionId':_0x357fa3['id'],'areActionsDisabled':_0x37a10e}),_0x357fa3[_0x3ea599(0x11b)][_0x3ea599(0x18c)](_0x41e523[_0x3ea599(0x186)]),_0x193ec4[_0x3ea599(0x167)]>0x0&&(_0x357fa3[_0x3ea599(0x11b)][_0x3ea599(0x113)]=_0x193ec4[_0x3ea599(0x188)](0x0));break;}case _0x3ea599(0x12c):_0x193ec4[_0x3ea599(0x17c)](_0x41e523);break;case _0x3ea599(0x137):{const {data:_0x138bfc,attributes:_0x296755}=JSON[_0x3ea599(0x161)](_0x41e523[_0x3ea599(0x186)]);_0x357fa3[_0x3ea599(0x12a)]({'toolName':_0x41e523[_0x3ea599(0x116)],'data':_0x138bfc,'attributes':_0x296755});break;}}}}}async[_0x1dc51d(0x15d)](_0x4dcd6b){const _0xadaf0b=_0x1dc51d,_0x28df93=new Map();if(!_0x4dcd6b[_0xadaf0b(0x186)])return _0x28df93;for(const _0x4c8f10 of _0x4dcd6b[_0xadaf0b(0x186)]){const _0x22787a=await this[_0xadaf0b(0x168)][_0xadaf0b(0x146)](_0x4c8f10);_0x22787a&&_0x28df93[_0xadaf0b(0x15e)](_0x22787a['id'],_0x22787a);}return _0x28df93;}async[_0x1dc51d(0x142)]({userMessage:_0x571aaf,attributes:_0xd68ddb}){const _0x129fed=_0x1dc51d;if(!this[_0x129fed(0x156)])throw new _0x3c6d59(_0x129fed(0x182),null,{'conversation':this});if(this[_0x129fed(0x189)])throw new _0x3c6d59(_0x129fed(0x135),null,{'conversation':this});try{const _0x2c3157=this[_0x129fed(0x168)][_0x129fed(0x141)](),_0x4cba0e=this[_0x129fed(0x112)][_0x129fed(0x187)](),_0x4fa735=this[_0x129fed(0x145)]['id'];this[_0x129fed(0x189)]=this[_0x129fed(0x14b)]({'userMessage':_0x571aaf,'contextItems':_0x2c3157,'capabilities':_0x4cba0e,'modelId':_0x4fa735,'attributes':_0xd68ddb}),await this[_0x129fed(0x189)][_0x129fed(0x173)](),this[_0x129fed(0x168)][_0x129fed(0x115)](this[_0x129fed(0x189)][_0x129fed(0x10e)]);}catch(_0x41c526){if(_0x41c526 instanceof _0x3c6d59)this[_0x129fed(0x184)](_0x129fed(0x18d),{'interactionId':this[_0x129fed(0x189)]?this[_0x129fed(0x189)]['id']:void 0x0,'error':_0x41c526});else{const _0x9157ff=_0x1cc055[_0x129fed(0x12b)](_0x41c526[_0x129fed(0x179)])||_0x129fed(0x14e);this[_0x129fed(0x184)](_0x129fed(0x18d),{'interactionId':this[_0x129fed(0x189)]?this[_0x129fed(0x189)]['id']:void 0x0,'error':new _0x3c6d59(_0x9157ff,null,{'error':_0x41c526})});}}finally{this[_0x129fed(0x189)]?.[_0x129fed(0x14a)](),this[_0x129fed(0x189)]=void 0x0;}}[_0x1dc51d(0x14b)]({userMessage:_0xd2aef2,contextItems:_0x25293b,capabilities:_0x14c405,modelId:_0x1ea949,attributes:_0x4bc754}){const _0x5e42da=_0x1dc51d,_0x448453=new _0x2aad21({'userMessage':_0xd2aef2,'contextItems':_0x25293b,'capabilities':_0x14c405,'conversationId':this['id'],'connector':this[_0x5e42da(0x127)],'editor':this[_0x5e42da(0x134)][_0x5e42da(0x139)]&&this[_0x5e42da(0x134)][_0x5e42da(0x139)](),'model':_0x1ea949,'attributes':_0x4bc754});return _0x448453[_0x5e42da(0x132)](..._0x5aec34)['to'](this),this[_0x5e42da(0x144)][_0x5e42da(0x17c)](_0x448453),this[_0x5e42da(0x184)](_0x5e42da(0x120),_0x448453),_0x448453;}[_0x1dc51d(0x11f)](_0x29f710){const _0x5753b1=_0x1dc51d;return this[_0x5753b1(0x144)][_0x5753b1(0x119)](_0x625ac5=>_0x625ac5['id']===_0x29f710);}[_0x1dc51d(0x14d)](_0x53a13f){const _0x2fcc98=_0x1dc51d,_0x55f2b2=this[_0x2fcc98(0x11f)](_0x53a13f);_0x55f2b2&&(_0x55f2b2[_0x2fcc98(0x13d)](),this[_0x2fcc98(0x144)][_0x2fcc98(0x188)](this[_0x2fcc98(0x144)][_0x2fcc98(0x12d)](_0x55f2b2),0x1));}get[_0x1dc51d(0x18e)](){const _0x116a8f=_0x1dc51d;return this[_0x116a8f(0x144)][this[_0x116a8f(0x144)][_0x116a8f(0x167)]-0x1];}[_0x1dc51d(0x170)](_0x2bcc56){const _0x504024=_0x1dc51d;this[_0x504024(0x168)][_0x504024(0x170)](_0x2bcc56);}async[_0x1dc51d(0x169)]({content:_0x2b624e,version:_0x2b56fb,sessionId:_0xb492ae,selections:_0x3a3e1a}){const _0x5a7572=_0x1dc51d;await this[_0x5a7572(0x168)][_0x5a7572(0x14c)](_0x2b624e,_0x2b56fb,_0xb492ae,_0x3a3e1a);}[_0x1dc51d(0x180)](){const _0x14cc59=_0x1dc51d;return this[_0x14cc59(0x189)]?.[_0x14cc59(0x12e)]()?.[_0x14cc59(0x186)]||'';}[_0x1dc51d(0x164)](_0x5299e4){const _0x1f9195=_0x1dc51d;this[_0x1f9195(0x168)][_0x1f9195(0x164)](_0x5299e4);}[_0x1dc51d(0x154)](){const _0x404fb5=_0x1dc51d;this[_0x404fb5(0x168)][_0x404fb5(0x154)]();}[_0x1dc51d(0x158)](_0x481a3b){const _0x596b4d=_0x1dc51d;this[_0x596b4d(0x168)][_0x596b4d(0x158)](_0x481a3b);}[_0x1dc51d(0x15c)](_0x36de0a){const _0x3f5c1f=_0x1dc51d;this[_0x3f5c1f(0x168)][_0x3f5c1f(0x15c)](_0x36de0a);}[_0x1dc51d(0x172)](_0x49359b){const _0x2c47b7=_0x1dc51d;this[_0x2c47b7(0x168)][_0x2c47b7(0x172)](_0x49359b);}[_0x1dc51d(0x150)](_0x3e63c7,_0x49d2e0){const _0x3af144=_0x1dc51d;this[_0x3af144(0x168)][_0x3af144(0x150)](_0x3e63c7,_0x49d2e0);}[_0x1dc51d(0x125)](_0x31e377,_0x2efb6e,_0x1991a1){const _0x478731=_0x1dc51d;return this[_0x478731(0x168)][_0x478731(0x125)](_0x31e377,_0x2efb6e,_0x1991a1);}[_0x1dc51d(0x130)](_0x1649c1){const _0x1d408d=_0x1dc51d;this[_0x1d408d(0x168)][_0x1d408d(0x130)](_0x1649c1);}[_0x1dc51d(0x153)](_0x30e6a4){const _0x2722d1=_0x1dc51d;this[_0x2722d1(0x112)][_0x2722d1(0x153)](_0x30e6a4);}[_0x1dc51d(0x11d)](){const _0x2d90b8=_0x1dc51d;this[_0x2d90b8(0x112)][_0x2d90b8(0x11d)]();}[_0x1dc51d(0x16b)](_0x297967){const _0x3c2b06=_0x1dc51d;this[_0x3c2b06(0x112)][_0x3c2b06(0x16b)](_0x297967);}[_0x1dc51d(0x123)](){const _0x4f2c38=_0x1dc51d;this[_0x4f2c38(0x112)][_0x4f2c38(0x123)]();}[_0x1dc51d(0x178)](){const _0x4e6a81=_0x1dc51d;return this[_0x4e6a81(0x168)][_0x4e6a81(0x178)]();}[_0x1dc51d(0x16f)](){const _0x53b547=_0x1dc51d;return this[_0x53b547(0x168)][_0x53b547(0x16f)]();}[_0x1dc51d(0x128)](){const _0x53bd79=_0x1dc51d;return this[_0x53bd79(0x168)][_0x53bd79(0x128)]();}async[_0x1dc51d(0x18b)](_0x33a544){const _0xfda723=_0x1dc51d;_0x33a544?!0x1===await this[_0xfda723(0x17d)][_0xfda723(0x13f)](_0x33a544)&&(_0x3eb7d5(_0xfda723(0x155),{'conversation':this,'model':_0x33a544}),_0x33a544=(await this[_0xfda723(0x17d)][_0xfda723(0x16c)]())[0x0]):(_0x3eb7d5(_0xfda723(0x159),{'conversation':this}),_0x33a544=(await this[_0xfda723(0x17d)][_0xfda723(0x16c)]())[0x0]),_0x33a544['id']!==this[_0xfda723(0x145)]?.['id']&&(this[_0xfda723(0x145)]=_0x33a544,this[_0xfda723(0x112)][_0xfda723(0x183)](),this[_0xfda723(0x184)](_0xfda723(0x15b),{'selectedModel':_0x33a544}));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x2c1c35=_0x5dc2;(function(_0x3944f9,_0x415f06){var _0x595270=_0x5dc2,_0x57bed0=_0x3944f9();while(!![]){try{var _0x5e5973=parseInt(_0x595270(0x181))/0x1*(parseInt(_0x595270(0x18a))/0x2)+parseInt(_0x595270(0x18f))/0x3+parseInt(_0x595270(0x191))/0x4*(-parseInt(_0x595270(0x18d))/0x5)+parseInt(_0x595270(0x184))/0x6*(parseInt(_0x595270(0x187))/0x7)+-parseInt(_0x595270(0x190))/0x8+parseInt(_0x595270(0x180))/0x9+parseInt(_0x595270(0x18c))/0xa;if(_0x5e5973===_0x415f06)break;else _0x57bed0['push'](_0x57bed0['shift']());}catch(_0x5f5549){_0x57bed0['push'](_0x57bed0['shift']());}}}(_0x39cd,0xb7447));import{AICapabilities as _0x23873a}from'../../aicore/model/aicapabilities.js';function _0x39cd(){var _0x56d167=['14646880AEFsga','15HWpfna','userMessage','737562sEhGoK','10500784YaHbMp','499192nHuYiI','model','connector','attributes','sendRequest','contextItems','current-document','1439550wluqVr','1839eglNrI','queryAssistant','getCapabilitiesRequestData','132vcTIfX','conversationId','get','47635GvCHRI','capabilities','getDocumentContext','454pcwwAI','mapContextItemsToRequestData'];_0x39cd=function(){return _0x56d167;};return _0x39cd();}import{AIInteraction as _0x38c980}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x14c200}from'./aichatcontext.js';function _0x5dc2(_0x4eb708,_0x273dd3){var _0x39cd1f=_0x39cd();return _0x5dc2=function(_0x5dc2b6,_0x164274){_0x5dc2b6=_0x5dc2b6-0x17b;var _0x522f7c=_0x39cd1f[_0x5dc2b6];return _0x522f7c;},_0x5dc2(_0x4eb708,_0x273dd3);}export class AIChatInteraction extends _0x38c980{[_0x2c1c35(0x18e)];[_0x2c1c35(0x185)];[_0x2c1c35(0x17e)]=new Map();[_0x2c1c35(0x192)];[_0x2c1c35(0x17c)];constructor(_0x54ab16){var _0x4c135f=_0x2c1c35;super(_0x54ab16),this[_0x4c135f(0x185)]=_0x54ab16[_0x4c135f(0x185)],this[_0x4c135f(0x17e)]=_0x54ab16[_0x4c135f(0x17e)],this[_0x4c135f(0x188)]=_0x54ab16[_0x4c135f(0x188)],this[_0x4c135f(0x18e)]=_0x54ab16[_0x4c135f(0x18e)],this[_0x4c135f(0x192)]=_0x54ab16[_0x4c135f(0x192)],this[_0x4c135f(0x17c)]=_0x54ab16[_0x4c135f(0x17c)];}async[_0x2c1c35(0x17d)](){var _0x27ff89=_0x2c1c35;return this[_0x27ff89(0x17b)][_0x27ff89(0x182)]({'message':this[_0x27ff89(0x18e)],'conversationId':this[_0x27ff89(0x185)],'parts':_0x14c200[_0x27ff89(0x18b)](this[_0x27ff89(0x17e)]),'capabilities':_0x23873a[_0x27ff89(0x183)](this[_0x27ff89(0x188)]),'model':this[_0x27ff89(0x192)],'attributes':this[_0x27ff89(0x17c)]});}[_0x2c1c35(0x189)](){var _0x4c0a4b=_0x2c1c35;return this[_0x4c0a4b(0x17e)][_0x4c0a4b(0x186)](_0x4c0a4b(0x17f));}}
23
+ function _0x3c29(_0x597bd7,_0x11d921){var _0x4da44d=_0x4da4();return _0x3c29=function(_0x3c2924,_0x37ca8c){_0x3c2924=_0x3c2924-0x18c;var _0x4d7527=_0x4da44d[_0x3c2924];return _0x4d7527;},_0x3c29(_0x597bd7,_0x11d921);}function _0x4da4(){var _0x472043=['current-document','getCapabilitiesRequestData','mapContextItemsToRequestData','12602907GZCKpV','30104rBQMNM','4873GXHCKe','userMessage','10002UpJesg','capabilities','137slPCuE','1490ukrztP','23532YEbUzP','attributes','conversationId','1477MxoIyH','queryAssistant','14434hzuCMs','137530tuuBZy','sendRequest','connector','5904024hcuCrp','getDocumentContext','get','model','contextItems'];_0x4da4=function(){return _0x472043;};return _0x4da4();}var _0x32d062=_0x3c29;(function(_0x16e4b3,_0x8c7665){var _0x572658=_0x3c29,_0xb84aa1=_0x16e4b3();while(!![]){try{var _0x2fc870=-parseInt(_0x572658(0x19d))/0x1*(parseInt(_0x572658(0x1a4))/0x2)+-parseInt(_0x572658(0x19f))/0x3+-parseInt(_0x572658(0x18f))/0x4+-parseInt(_0x572658(0x19e))/0x5*(parseInt(_0x572658(0x19b))/0x6)+-parseInt(_0x572658(0x1a2))/0x7*(parseInt(_0x572658(0x198))/0x8)+-parseInt(_0x572658(0x197))/0x9+parseInt(_0x572658(0x18c))/0xa*(parseInt(_0x572658(0x199))/0xb);if(_0x2fc870===_0x8c7665)break;else _0xb84aa1['push'](_0xb84aa1['shift']());}catch(_0x4251f0){_0xb84aa1['push'](_0xb84aa1['shift']());}}}(_0x4da4,0xe2c96));import{AICapabilities as _0x23a281}from'../../aicore/model/aicapabilities.js';import{AIInteraction as _0x5ac0b8}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x3d6dd3}from'./aichatcontext.js';export class AIChatInteraction extends _0x5ac0b8{[_0x32d062(0x19a)];[_0x32d062(0x1a1)];[_0x32d062(0x193)]=new Map();[_0x32d062(0x192)];[_0x32d062(0x1a0)];constructor(_0x643ab6){var _0x2880ff=_0x32d062;super(_0x643ab6),this[_0x2880ff(0x1a1)]=_0x643ab6[_0x2880ff(0x1a1)],this[_0x2880ff(0x193)]=_0x643ab6[_0x2880ff(0x193)],this[_0x2880ff(0x19c)]=_0x643ab6[_0x2880ff(0x19c)],this[_0x2880ff(0x19a)]=_0x643ab6[_0x2880ff(0x19a)],this[_0x2880ff(0x192)]=_0x643ab6[_0x2880ff(0x192)],this[_0x2880ff(0x1a0)]=_0x643ab6[_0x2880ff(0x1a0)];}async[_0x32d062(0x18d)](){var _0x279888=_0x32d062;return this[_0x279888(0x18e)][_0x279888(0x1a3)]({'message':this[_0x279888(0x19a)],'conversationId':this[_0x279888(0x1a1)],'parts':_0x3d6dd3[_0x279888(0x196)](this[_0x279888(0x193)]),'capabilities':_0x23a281[_0x279888(0x195)](this[_0x279888(0x19c)]),'model':this[_0x279888(0x192)],'attributes':this[_0x279888(0x1a0)]});}[_0x32d062(0x190)](){var _0x20ebc1=_0x32d062;return this[_0x20ebc1(0x193)][_0x20ebc1(0x191)](_0x20ebc1(0x194));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xe8a479=_0x1b89;(function(_0x17539c,_0x1ee796){const _0x48d476=_0x1b89,_0x51193b=_0x17539c();while(!![]){try{const _0x35491a=parseInt(_0x48d476(0x159))/0x1+parseInt(_0x48d476(0x16e))/0x2*(parseInt(_0x48d476(0x169))/0x3)+parseInt(_0x48d476(0x156))/0x4*(-parseInt(_0x48d476(0x152))/0x5)+parseInt(_0x48d476(0x163))/0x6*(parseInt(_0x48d476(0x17c))/0x7)+-parseInt(_0x48d476(0x18c))/0x8+-parseInt(_0x48d476(0x155))/0x9*(parseInt(_0x48d476(0x1a0))/0xa)+-parseInt(_0x48d476(0x194))/0xb*(-parseInt(_0x48d476(0x193))/0xc);if(_0x35491a===_0x1ee796)break;else _0x51193b['push'](_0x51193b['shift']());}catch(_0x154845){_0x51193b['push'](_0x51193b['shift']());}}}(_0x442d,0x19db0));import{FocusTracker as _0x19d1ec,KeystrokeHandler as _0x3f809b}from'ckeditor5/src/utils.js';import{AISuggestionStreamableContentView as _0x1afe16}from'../../aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js';import{AISuggestionContentPartToolbarView as _0xa47c17}from'../../aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js';function _0x442d(){const _0x185c3e=['keepErrors','setState','execute','focus','showBlockingError','_stateView','_keystrokes','destroy','rejectSuggestion','_state','insertSuggestion','1576670CelZLT','update','change:isTrackChangesOn','_toolbarContainerView','showError','nextButtonView','shift\x20+\x20tab','children','94555RtrpWM','updateContent','tab','9BJhLTy','12jCPRDx','AI_BALLOON_PREVIOUS_LABEL','listenTo','44140xMASKK','locale','_focusTracker','bind','isTrackChangesOn','ck-ai-chat-balloon-main_state_','toggleShowChanges','hideError','_config','isVisible','2454VMeZjI','pending','setTemplate','full','showDiff','applySuggestion','3rawqOD','showNext','_createNextButtonView','availableActions','createCollection','149878Svuqwx','isEnabled','includes','setButtonsVisibility','_miniToolbarView','element','focusCycler','delegate','_errorView','has','togglePartToolbarEnabled','change:_state','_streamableContentView','toggleSuggestionDisplayMode','1323kYGylq','previousButtonView','_isErrorVisible','set','ck-ai-chat-balloon-main','_createPreviousButtonView','showPrevious','add','focusFirst','bindTemplate','_togglePartToolbarButtonsVisibility','_focusables','addMany','focusLast','fire','div','1032672WdIXpm','AI_BALLOON_NEXT_LABEL','toggleRotatorButtonsVisibility','ck-ai-chat-balloon__toolbar-container','isShowChangesOn','render','_partToolbarView','336KiOBTo','99396iqjXdZ'];_0x442d=function(){return _0x185c3e;};return _0x442d();}import{AIMiniToolbarView as _0x568330}from'../../aicore/ui/suggestioncontainer/aiminitoolbarview.js';import{AIBalloonView as _0x27edcf}from'../../aiballoon/ui/aiballoonview.js';function _0x1b89(_0xe443d8,_0x5ccc66){const _0x442d50=_0x442d();return _0x1b89=function(_0x1b89cf,_0x56342d){_0x1b89cf=_0x1b89cf-0x14e;let _0x2b947c=_0x442d50[_0x1b89cf];return _0x2b947c;},_0x1b89(_0xe443d8,_0x5ccc66);}import{ButtonView as _0x2cef6a,FocusCycler as _0xebb36f,View as _0x3d2785}from'ckeditor5/src/ui.js';import{AISuggestionContentPartStateView as _0x411a71}from'../../aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js';import{IconChevronDown as _0x533d33,IconChevronUp as _0x1468fc}from'ckeditor5/src/icons.js';import{getTranslation as _0x1c74bf}from'../../aicore/utils/common-translations.js';import'../../../theme/aichat/aichatballoon.css';export class AIChatBalloonView extends _0x27edcf{[_0xe8a479(0x151)];[_0xe8a479(0x14f)];[_0xe8a479(0x17d)];[_0xe8a479(0x174)];[_0xe8a479(0x187)];[_0xe8a479(0x15b)];[_0xe8a479(0x19b)];[_0xe8a479(0x161)];[_0xe8a479(0x17a)];[_0xe8a479(0x1a3)];[_0xe8a479(0x192)];[_0xe8a479(0x19a)];[_0xe8a479(0x172)];constructor(_0xac1fd2,_0x62eb4c){const _0x51cc7a=_0xe8a479;super(_0xac1fd2);const _0x59fc4d=this[_0x51cc7a(0x185)];this[_0x51cc7a(0x17f)](_0x51cc7a(0x167),!0x1),this[_0x51cc7a(0x17f)](_0x51cc7a(0x19e),_0x51cc7a(0x164)),this[_0x51cc7a(0x15b)]=new _0x19d1ec(),this[_0x51cc7a(0x19b)]=new _0x3f809b(),this[_0x51cc7a(0x187)]=this[_0x51cc7a(0x16d)](),this[_0x51cc7a(0x174)]=new _0xebb36f({'focusables':this[_0x51cc7a(0x187)],'focusTracker':this[_0x51cc7a(0x15b)],'keystrokeHandler':this[_0x51cc7a(0x19b)],'actions':{'focusPrevious':_0x51cc7a(0x150),'focusNext':_0x51cc7a(0x154)}}),this[_0x51cc7a(0x161)]=_0x62eb4c,this[_0x51cc7a(0x14f)]=this[_0x51cc7a(0x16b)](),this[_0x51cc7a(0x17d)]=this[_0x51cc7a(0x181)](),this[_0x51cc7a(0x17a)]=new _0x1afe16(_0xac1fd2),this[_0x51cc7a(0x192)]=new _0xa47c17(_0xac1fd2,_0x62eb4c[_0x51cc7a(0x16c)]),this[_0x51cc7a(0x192)][_0x51cc7a(0x175)](_0x51cc7a(0x168),_0x51cc7a(0x19f),_0x51cc7a(0x19d))['to'](this),this[_0x51cc7a(0x186)](_0x62eb4c),this[_0x51cc7a(0x19a)]=new _0x411a71(_0xac1fd2),this[_0x51cc7a(0x19a)][_0x51cc7a(0x162)]=!0x1,this[_0x51cc7a(0x172)]=new _0x568330(_0xac1fd2,{'showChanges':_0x51cc7a(0x166)}),this[_0x51cc7a(0x172)][_0x51cc7a(0x15c)](_0x51cc7a(0x190))['to'](this,_0x51cc7a(0x167)),this[_0x51cc7a(0x172)]['on'](_0x51cc7a(0x15f),()=>{const _0x5f0ace=_0x51cc7a;this[_0x5f0ace(0x18a)](_0x5f0ace(0x17b));}),this[_0x51cc7a(0x1a3)]=new AIChatBalloonToolbarContainerView(_0xac1fd2,[this[_0x51cc7a(0x192)],this[_0x51cc7a(0x19a)],this[_0x51cc7a(0x172)]]),this[_0x51cc7a(0x151)]=this[_0x51cc7a(0x16d)]([this[_0x51cc7a(0x17a)],this[_0x51cc7a(0x1a3)]]),this['on'](_0x51cc7a(0x179),(_0x51802e,_0x5b4aa3,_0x2ecd2f,_0x3c58e5)=>{const _0xa7dcab=_0x51cc7a;let _0x5a3115,_0x22801e;_0xa7dcab(0x164)===_0x3c58e5?(_0x5a3115=this[_0xa7dcab(0x192)],_0x22801e=this[_0xa7dcab(0x19a)]):(_0x5a3115=this[_0xa7dcab(0x19a)],_0x22801e=this[_0xa7dcab(0x192)]),this[_0xa7dcab(0x19a)][_0xa7dcab(0x196)](_0x2ecd2f),_0x5a3115[_0xa7dcab(0x162)]=!0x1,_0x22801e[_0xa7dcab(0x162)]=!0x0;}),this[_0x51cc7a(0x165)]({'tag':_0x51cc7a(0x18b),'attributes':{'class':['ck',_0x51cc7a(0x180),_0x59fc4d['to'](_0x51cc7a(0x19e),_0x8abb40=>_0x51cc7a(0x15e)+_0x8abb40)]},'children':this[_0x51cc7a(0x151)]}),this['on'](_0x51cc7a(0x1a2),()=>{const _0x4d0a80=_0x51cc7a;this[_0x4d0a80(0x186)](_0x62eb4c);});}[_0xe8a479(0x191)](){const _0x391113=_0xe8a479;super[_0x391113(0x191)](),this[_0x391113(0x14f)][_0x391113(0x191)](),this[_0x391113(0x17d)][_0x391113(0x191)](),this[_0x391113(0x15b)][_0x391113(0x183)](this[_0x391113(0x173)]),this[_0x391113(0x15b)][_0x391113(0x183)](this[_0x391113(0x14f)]),this[_0x391113(0x15b)][_0x391113(0x183)](this[_0x391113(0x17d)]),this[_0x391113(0x15b)][_0x391113(0x183)](this[_0x391113(0x172)]),this[_0x391113(0x15b)][_0x391113(0x183)](this[_0x391113(0x192)]),this[_0x391113(0x19b)][_0x391113(0x158)](this[_0x391113(0x173)]),this[_0x391113(0x19b)][_0x391113(0x158)](this[_0x391113(0x14f)][_0x391113(0x173)]),this[_0x391113(0x19b)][_0x391113(0x158)](this[_0x391113(0x17d)][_0x391113(0x173)]),this[_0x391113(0x187)][_0x391113(0x188)]([this[_0x391113(0x14f)],this[_0x391113(0x17d)],this[_0x391113(0x192)],this[_0x391113(0x172)]]);}[_0xe8a479(0x19c)](){const _0x47dd49=_0xe8a479;super[_0x47dd49(0x19c)](),this[_0x47dd49(0x17d)][_0x47dd49(0x19c)](),this[_0x47dd49(0x14f)][_0x47dd49(0x19c)]();}[_0xe8a479(0x198)](){const _0x3b6d11=_0xe8a479;this[_0x3b6d11(0x174)][_0x3b6d11(0x184)]();}[_0xe8a479(0x189)](){const _0x125369=_0xe8a479;this[_0x125369(0x174)][_0x125369(0x189)]();}async[_0xe8a479(0x153)](_0x1cbb4f){const _0x54d405=_0xe8a479;_0x1cbb4f?.[_0x54d405(0x195)]||this[_0x54d405(0x160)](),await this[_0x54d405(0x17a)][_0x54d405(0x1a1)](_0x1cbb4f);}[_0xe8a479(0x196)](_0xf6ed55){const _0xf06863=_0xe8a479;this[_0xf06863(0x19e)]=_0xf6ed55;}[_0xe8a479(0x14e)](_0x15f674){const _0x5423ad=_0xe8a479;super[_0x5423ad(0x14e)](_0x15f674),this[_0x5423ad(0x151)][_0x5423ad(0x177)](this[_0x5423ad(0x176)])||this[_0x5423ad(0x151)][_0x5423ad(0x183)](this[_0x5423ad(0x176)],0x0);}[_0xe8a479(0x160)](){const _0x5b74a0=_0xe8a479;this[_0x5b74a0(0x17e)]&&(super[_0x5b74a0(0x160)](),this[_0x5b74a0(0x178)](!0x0));}[_0xe8a479(0x199)](_0x49f6ec){const _0x55d7b0=_0xe8a479;super[_0x55d7b0(0x199)](_0x49f6ec),this[_0x55d7b0(0x178)](!0x1);}[_0xe8a479(0x18e)](_0x39a698){const _0x1ccb96=_0xe8a479;this[_0x1ccb96(0x14f)][_0x1ccb96(0x162)]=this[_0x1ccb96(0x17d)][_0x1ccb96(0x162)]=_0x39a698;}[_0xe8a479(0x178)](_0x9c0a3c){const _0x1a4874=_0xe8a479;this[_0x1a4874(0x192)][_0x1a4874(0x16f)]=_0x9c0a3c;}[_0xe8a479(0x186)]({showApplyButton:_0x425bea,showSuggestButton:_0x3b908a}){const _0x35c308=_0xe8a479;_0x425bea=_0x425bea&&!this[_0x35c308(0x15d)]&&this[_0x35c308(0x161)][_0x35c308(0x16c)][_0x35c308(0x170)](_0x35c308(0x168)),_0x3b908a=_0x3b908a&&this[_0x35c308(0x161)][_0x35c308(0x16c)][_0x35c308(0x170)](_0x35c308(0x19f)),this[_0x35c308(0x192)][_0x35c308(0x171)]({'showApplyButton':_0x425bea,'showSuggestButton':_0x3b908a});}[_0xe8a479(0x16b)](){const _0x332d89=_0xe8a479,_0x3f1f7a=new _0x2cef6a(this[_0x332d89(0x15a)]);return _0x3f1f7a[_0x332d89(0x17f)]({'icon':_0x533d33,'label':_0x1c74bf(this[_0x332d89(0x15a)],_0x332d89(0x18d)),'isVisible':!0x0}),_0x3f1f7a['on'](_0x332d89(0x197),()=>{const _0x196063=_0x332d89;this[_0x196063(0x18a)](_0x196063(0x16a));}),_0x3f1f7a;}[_0xe8a479(0x181)](){const _0x411436=_0xe8a479,_0x8df984=new _0x2cef6a(this[_0x411436(0x15a)]);return _0x8df984[_0x411436(0x17f)]({'icon':_0x1468fc,'label':_0x1c74bf(this[_0x411436(0x15a)],_0x411436(0x157)),'isVisible':!0x0}),_0x8df984['on'](_0x411436(0x197),()=>{const _0x45c372=_0x411436;this[_0x45c372(0x18a)](_0x45c372(0x182));}),_0x8df984;}}class AIChatBalloonToolbarContainerView extends _0x3d2785{constructor(_0xb99dc0,_0x335455){const _0x4290cf=_0xe8a479;super(_0xb99dc0),this[_0x4290cf(0x165)]({'tag':_0x4290cf(0x18b),'attributes':{'class':[_0x4290cf(0x18f)]},'children':_0x335455});}}
23
+ const _0x18f8c5=_0x5212;(function(_0x53bf76,_0x21ae32){const _0x1b53ff=_0x5212,_0xadfdd0=_0x53bf76();while(!![]){try{const _0x4d25a0=-parseInt(_0x1b53ff(0x14f))/0x1*(-parseInt(_0x1b53ff(0x157))/0x2)+-parseInt(_0x1b53ff(0x106))/0x3+parseInt(_0x1b53ff(0x126))/0x4*(-parseInt(_0x1b53ff(0x114))/0x5)+-parseInt(_0x1b53ff(0x141))/0x6+parseInt(_0x1b53ff(0x13f))/0x7*(parseInt(_0x1b53ff(0x111))/0x8)+-parseInt(_0x1b53ff(0x10a))/0x9+parseInt(_0x1b53ff(0x124))/0xa;if(_0x4d25a0===_0x21ae32)break;else _0xadfdd0['push'](_0xadfdd0['shift']());}catch(_0x3a47ff){_0xadfdd0['push'](_0xadfdd0['shift']());}}}(_0x153b,0xe4981));function _0x153b(){const _0x3de2f1=['availableActions','showNext','_state','_focusables','insertSuggestion','addMany','7qUZWgG','focusFirst','8006586TqFNGf','ck-ai-chat-balloon-main_state_','ck-ai-chat-balloon__toolbar-container','has','focusCycler','isShowChangesOn','keepErrors','shift\x20+\x20tab','hideError','execute','showError','div','_partToolbarView','full','459mtRkQq','isTrackChangesOn','tab','isVisible','_togglePartToolbarButtonsVisibility','_streamableContentView','destroy','setState','7302GscXPq','update','toggleRotatorButtonsVisibility','236727QffMjy','setButtonsVisibility','updateContent','fire','4357260SGrIOm','createCollection','add','showDiff','_createPreviousButtonView','_stateView','change:_state','8722984OWywOm','applySuggestion','bindTemplate','13605YtIsnz','focus','_createNextButtonView','render','_focusTracker','toggleShowChanges','AI_BALLOON_PREVIOUS_LABEL','change:isTrackChangesOn','showPrevious','ck-ai-chat-balloon-main','locale','AI_BALLOON_NEXT_LABEL','listenTo','rejectSuggestion','nextButtonView','_toolbarContainerView','2363210CuLBcl','previousButtonView','248ucNoqy','focusLast','togglePartToolbarEnabled','_errorView','pending','set','delegate','bind','toggleSuggestionDisplayMode','isEnabled','children','_miniToolbarView','setTemplate','_keystrokes','includes','showBlockingError','_config','_isErrorVisible','element'];_0x153b=function(){return _0x3de2f1;};return _0x153b();}import{FocusTracker as _0x3734a2,KeystrokeHandler as _0x4d5bd2}from'ckeditor5/src/utils.js';import{AISuggestionStreamableContentView as _0xaa1a57}from'../../aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js';function _0x5212(_0x26fb95,_0x2e6e6c){const _0x153b14=_0x153b();return _0x5212=function(_0x5212c3,_0x5ec989){_0x5212c3=_0x5212c3-0x105;let _0x553955=_0x153b14[_0x5212c3];return _0x553955;},_0x5212(_0x26fb95,_0x2e6e6c);}import{AISuggestionContentPartToolbarView as _0xbd253f}from'../../aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js';import{AIMiniToolbarView as _0x5c8a1f}from'../../aicore/ui/suggestioncontainer/aiminitoolbarview.js';import{AIBalloonView as _0x32a25f}from'../../aiballoon/ui/aiballoonview.js';import{ButtonView as _0x4703bc,FocusCycler as _0x4e7153,View as _0x1fcd82}from'ckeditor5/src/ui.js';import{AISuggestionContentPartStateView as _0x58b5fe}from'../../aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js';import{IconChevronDown as _0x2128fd,IconChevronUp as _0x1e068f}from'ckeditor5/src/icons.js';import{getTranslation as _0x1823c9}from'../../aicore/utils/common-translations.js';import'../../../theme/aichat/aichatballoon.css';export class AIChatBalloonView extends _0x32a25f{[_0x18f8c5(0x130)];[_0x18f8c5(0x122)];[_0x18f8c5(0x125)];[_0x18f8c5(0x145)];[_0x18f8c5(0x13c)];[_0x18f8c5(0x118)];[_0x18f8c5(0x133)];[_0x18f8c5(0x136)];[_0x18f8c5(0x154)];[_0x18f8c5(0x123)];[_0x18f8c5(0x14d)];[_0x18f8c5(0x10f)];[_0x18f8c5(0x131)];constructor(_0x3ce0b7,_0x3019c7){const _0x22792a=_0x18f8c5;super(_0x3ce0b7);const _0x55f8da=this[_0x22792a(0x113)];this[_0x22792a(0x12b)](_0x22792a(0x10d),!0x1),this[_0x22792a(0x12b)](_0x22792a(0x13b),_0x22792a(0x12a)),this[_0x22792a(0x118)]=new _0x3734a2(),this[_0x22792a(0x133)]=new _0x4d5bd2(),this[_0x22792a(0x13c)]=this[_0x22792a(0x10b)](),this[_0x22792a(0x145)]=new _0x4e7153({'focusables':this[_0x22792a(0x13c)],'focusTracker':this[_0x22792a(0x118)],'keystrokeHandler':this[_0x22792a(0x133)],'actions':{'focusPrevious':_0x22792a(0x148),'focusNext':_0x22792a(0x151)}}),this[_0x22792a(0x136)]=_0x3019c7,this[_0x22792a(0x122)]=this[_0x22792a(0x116)](),this[_0x22792a(0x125)]=this[_0x22792a(0x10e)](),this[_0x22792a(0x154)]=new _0xaa1a57(_0x3ce0b7),this[_0x22792a(0x14d)]=new _0xbd253f(_0x3ce0b7,_0x3019c7[_0x22792a(0x139)]),this[_0x22792a(0x14d)][_0x22792a(0x12c)](_0x22792a(0x112),_0x22792a(0x13d),_0x22792a(0x121))['to'](this),this[_0x22792a(0x153)](_0x3019c7),this[_0x22792a(0x10f)]=new _0x58b5fe(_0x3ce0b7),this[_0x22792a(0x10f)][_0x22792a(0x152)]=!0x1,this[_0x22792a(0x131)]=new _0x5c8a1f(_0x3ce0b7,{'showChanges':_0x22792a(0x14e)}),this[_0x22792a(0x131)][_0x22792a(0x12d)](_0x22792a(0x146))['to'](this,_0x22792a(0x10d)),this[_0x22792a(0x131)]['on'](_0x22792a(0x119),()=>{const _0x7ff1e2=_0x22792a;this[_0x7ff1e2(0x109)](_0x7ff1e2(0x12e));}),this[_0x22792a(0x123)]=new AIChatBalloonToolbarContainerView(_0x3ce0b7,[this[_0x22792a(0x14d)],this[_0x22792a(0x10f)],this[_0x22792a(0x131)]]),this[_0x22792a(0x130)]=this[_0x22792a(0x10b)]([this[_0x22792a(0x154)],this[_0x22792a(0x123)]]),this['on'](_0x22792a(0x110),(_0x4cad47,_0x421c81,_0x120c55,_0x46cc6d)=>{const _0x17eba4=_0x22792a;let _0x1c77f4,_0x5e083a;_0x17eba4(0x12a)===_0x46cc6d?(_0x1c77f4=this[_0x17eba4(0x14d)],_0x5e083a=this[_0x17eba4(0x10f)]):(_0x1c77f4=this[_0x17eba4(0x10f)],_0x5e083a=this[_0x17eba4(0x14d)]),this[_0x17eba4(0x10f)][_0x17eba4(0x156)](_0x120c55),_0x1c77f4[_0x17eba4(0x152)]=!0x1,_0x5e083a[_0x17eba4(0x152)]=!0x0;}),this[_0x22792a(0x132)]({'tag':_0x22792a(0x14c),'attributes':{'class':['ck',_0x22792a(0x11d),_0x55f8da['to'](_0x22792a(0x13b),_0x1f15e6=>_0x22792a(0x142)+_0x1f15e6)]},'children':this[_0x22792a(0x130)]}),this['on'](_0x22792a(0x11b),()=>{const _0x3f9f6d=_0x22792a;this[_0x3f9f6d(0x153)](_0x3019c7);});}[_0x18f8c5(0x117)](){const _0x5ac024=_0x18f8c5;super[_0x5ac024(0x117)](),this[_0x5ac024(0x122)][_0x5ac024(0x117)](),this[_0x5ac024(0x125)][_0x5ac024(0x117)](),this[_0x5ac024(0x118)][_0x5ac024(0x10c)](this[_0x5ac024(0x138)]),this[_0x5ac024(0x118)][_0x5ac024(0x10c)](this[_0x5ac024(0x122)]),this[_0x5ac024(0x118)][_0x5ac024(0x10c)](this[_0x5ac024(0x125)]),this[_0x5ac024(0x118)][_0x5ac024(0x10c)](this[_0x5ac024(0x131)]),this[_0x5ac024(0x118)][_0x5ac024(0x10c)](this[_0x5ac024(0x14d)]),this[_0x5ac024(0x133)][_0x5ac024(0x120)](this[_0x5ac024(0x138)]),this[_0x5ac024(0x133)][_0x5ac024(0x120)](this[_0x5ac024(0x122)][_0x5ac024(0x138)]),this[_0x5ac024(0x133)][_0x5ac024(0x120)](this[_0x5ac024(0x125)][_0x5ac024(0x138)]),this[_0x5ac024(0x13c)][_0x5ac024(0x13e)]([this[_0x5ac024(0x122)],this[_0x5ac024(0x125)],this[_0x5ac024(0x14d)],this[_0x5ac024(0x131)]]);}[_0x18f8c5(0x155)](){const _0x215fe5=_0x18f8c5;super[_0x215fe5(0x155)](),this[_0x215fe5(0x125)][_0x215fe5(0x155)](),this[_0x215fe5(0x122)][_0x215fe5(0x155)]();}[_0x18f8c5(0x115)](){const _0xd0b996=_0x18f8c5;this[_0xd0b996(0x145)][_0xd0b996(0x140)]();}[_0x18f8c5(0x127)](){const _0x40a2b8=_0x18f8c5;this[_0x40a2b8(0x145)][_0x40a2b8(0x127)]();}async[_0x18f8c5(0x108)](_0x56c9f7){const _0x48080a=_0x18f8c5;_0x56c9f7?.[_0x48080a(0x147)]||this[_0x48080a(0x149)](),await this[_0x48080a(0x154)][_0x48080a(0x158)](_0x56c9f7);}[_0x18f8c5(0x156)](_0x21671e){const _0x241b22=_0x18f8c5;this[_0x241b22(0x13b)]=_0x21671e;}[_0x18f8c5(0x14b)](_0x573335){const _0x59091b=_0x18f8c5;super[_0x59091b(0x14b)](_0x573335),this[_0x59091b(0x130)][_0x59091b(0x144)](this[_0x59091b(0x129)])||this[_0x59091b(0x130)][_0x59091b(0x10c)](this[_0x59091b(0x129)],0x0);}[_0x18f8c5(0x149)](){const _0x4078df=_0x18f8c5;this[_0x4078df(0x137)]&&(super[_0x4078df(0x149)](),this[_0x4078df(0x128)](!0x0));}[_0x18f8c5(0x135)](_0x7f4690){const _0x4d7fea=_0x18f8c5;super[_0x4d7fea(0x135)](_0x7f4690),this[_0x4d7fea(0x128)](!0x1);}[_0x18f8c5(0x105)](_0x401769){const _0x991ced=_0x18f8c5;this[_0x991ced(0x122)][_0x991ced(0x152)]=this[_0x991ced(0x125)][_0x991ced(0x152)]=_0x401769;}[_0x18f8c5(0x128)](_0x2ba31d){const _0x3e7753=_0x18f8c5;this[_0x3e7753(0x14d)][_0x3e7753(0x12f)]=_0x2ba31d;}[_0x18f8c5(0x153)]({showApplyButton:_0x3e17ef,showSuggestButton:_0x17fece}){const _0x234bb3=_0x18f8c5;_0x3e17ef=_0x3e17ef&&!this[_0x234bb3(0x150)]&&this[_0x234bb3(0x136)][_0x234bb3(0x139)][_0x234bb3(0x134)](_0x234bb3(0x112)),_0x17fece=_0x17fece&&this[_0x234bb3(0x136)][_0x234bb3(0x139)][_0x234bb3(0x134)](_0x234bb3(0x13d)),this[_0x234bb3(0x14d)][_0x234bb3(0x107)]({'showApplyButton':_0x3e17ef,'showSuggestButton':_0x17fece});}[_0x18f8c5(0x116)](){const _0x467772=_0x18f8c5,_0x32d0c5=new _0x4703bc(this[_0x467772(0x11e)]);return _0x32d0c5[_0x467772(0x12b)]({'icon':_0x2128fd,'label':_0x1823c9(this[_0x467772(0x11e)],_0x467772(0x11f)),'isVisible':!0x0}),_0x32d0c5['on'](_0x467772(0x14a),()=>{const _0x1822bf=_0x467772;this[_0x1822bf(0x109)](_0x1822bf(0x13a));}),_0x32d0c5;}[_0x18f8c5(0x10e)](){const _0x3b9a16=_0x18f8c5,_0x373c1f=new _0x4703bc(this[_0x3b9a16(0x11e)]);return _0x373c1f[_0x3b9a16(0x12b)]({'icon':_0x1e068f,'label':_0x1823c9(this[_0x3b9a16(0x11e)],_0x3b9a16(0x11a)),'isVisible':!0x0}),_0x373c1f['on'](_0x3b9a16(0x14a),()=>{const _0x47a7fc=_0x3b9a16;this[_0x47a7fc(0x109)](_0x47a7fc(0x11c));}),_0x373c1f;}}class AIChatBalloonToolbarContainerView extends _0x1fcd82{constructor(_0x28bfcf,_0x57e865){const _0x56fec7=_0x18f8c5;super(_0x28bfcf),this[_0x56fec7(0x132)]({'tag':_0x56fec7(0x14c),'attributes':{'class':[_0x56fec7(0x143)]},'children':_0x57e865});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3d9146=_0x2fa5;(function(_0x27a82a,_0x18a947){const _0x2268b3=_0x2fa5,_0x256d59=_0x27a82a();while(!![]){try{const _0x3d16d4=-parseInt(_0x2268b3(0xc2))/0x1+parseInt(_0x2268b3(0xb0))/0x2+parseInt(_0x2268b3(0xb8))/0x3+-parseInt(_0x2268b3(0x94))/0x4+parseInt(_0x2268b3(0xb9))/0x5+parseInt(_0x2268b3(0x81))/0x6*(-parseInt(_0x2268b3(0xbd))/0x7)+parseInt(_0x2268b3(0x9a))/0x8;if(_0x3d16d4===_0x18a947)break;else _0x256d59['push'](_0x256d59['shift']());}catch(_0x135138){_0x256d59['push'](_0x256d59['shift']());}}}(_0x5943,0x30b69));import{ButtonView as _0x3b4686,clickOutsideHandler as _0x5c2b3e,View as _0x379c5d}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x4b5809}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x90c356}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x9eafd5,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x50ec9a}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x55d830}from'./controls/aichatcontrolsloaderview.js';import{getTranslation as _0x373a31}from'../../aicore/utils/common-translations.js';import'../../../theme/aichat/aichat-controls.css';import'../../../theme/aichat/aichat-controls/prompt-input.css';function _0x2fa5(_0x1e09d5,_0x4de8e8){const _0x594309=_0x5943();return _0x2fa5=function(_0x2fa5c4,_0x9265e2){_0x2fa5c4=_0x2fa5c4-0x79;let _0x54a269=_0x594309[_0x2fa5c4];return _0x54a269;},_0x2fa5(_0x1e09d5,_0x4de8e8);}import'../../../theme/aichat/aichat-controls/prompt-capabilities.css';function _0x5943(){const _0x4bc511=['removeContextItem','_createPromptInputView','fieldView','updateResourceState','set','254223IFuxDY','1041855ueQzqQ','setModel','_createPromptCapabilitiesView','setPromptInputValue','2263513RofyKT','setWebSearch','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','toggleWebSearch','isLoading','56604XrhMXY','ck-ai-chat-controls__start-new-chat-button','ck-ai-chat-controls-model-unavailable-message','_promptCapabilitiesView','setModelList','closeSourceResourceBalloon','setIsUploadInProgress','element','setTemplate','clearConversationContextItems','setAddContextOptions','focusPromptInput','locale','queryView','6YxXEsh','low','setInputPlaceholder','populateSourceResourceBalloon','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','enableModelSelector','bindTemplate','setPlaceholderText','startConversation','focus','execute','ck-ai-chat-controls','_createContextPanelView','sendUserMessage','_loaderView','contextResourcesSearchInputVisibleFrom','ck-ai-chat-controls-disabled','value','_createModelUnavailableMessageView','157264XHWxQs','isDisabled','isModelAvailable','change:isLoading','selectModel','bodyCollection','933912IKLdcl','_contextPanelView','clearPendingContextUI','_handlePromptInputFocus','addContextButtonView','toggleReasoning','ck-hidden','form','_modelUnavailableMessageView','resetMessageInput','delegate','abortPromptStream','setReasoning','div','_shouldRestorePromptInputFocus','addContextItem','disableModelSelector','_promptInputView','reset','setConversationContext','_createLoaderView','clearCurrentContextItems','417914ZTIYoY','clearConversationContextUI','setContextItemLoading'];_0x5943=function(){return _0x4bc511;};return _0x5943();}import'../../../theme/aichat/aichat-controls/model-unavailable-message.css';import'../../../theme/aichat/aichat-controls/aichat-context-controls.css';import'../../../theme/aichat/aichat-controls/aichat-context-chip.css';import'../../../theme/aichat/aichat-controls/aichat-controls-button.css';import'../../../theme/aichat/aichat-controls/aichat-controls-loader.css';import'../../../theme/aichat/aichat-controls/aichat-context-controls-balloon-panels.css';export class AIChatControlsView extends _0x379c5d{[_0x3d9146(0x9b)];[_0x3d9146(0xab)];[_0x3d9146(0xc5)];[_0x3d9146(0x8f)];[_0x3d9146(0xa2)];[_0x3d9146(0xa8)];constructor(_0x41646b,_0x3232fd){const _0x5a9c34=_0x3d9146;super(_0x41646b),this[_0x5a9c34(0x9b)]=this[_0x5a9c34(0x8d)](_0x41646b,{'bodyCollection':_0x3232fd[_0x5a9c34(0x99)],'searchInputVisibleFrom':_0x3232fd[_0x5a9c34(0x90)]}),this[_0x5a9c34(0xab)]=this[_0x5a9c34(0xb4)](_0x41646b),this[_0x5a9c34(0xc5)]=this[_0x5a9c34(0xbb)](_0x41646b),this[_0x5a9c34(0x8f)]=this[_0x5a9c34(0xae)](_0x41646b),this[_0x5a9c34(0xa2)]=this[_0x5a9c34(0x93)](_0x41646b),this[_0x5a9c34(0xa8)]=!0x1,this[_0x5a9c34(0xab)][_0x5a9c34(0xa4)](_0x5a9c34(0x8e))['to'](this),this[_0x5a9c34(0x8f)][_0x5a9c34(0xa4)](_0x5a9c34(0xa5))['to'](this),this[_0x5a9c34(0xc5)][_0x5a9c34(0xa4)](_0x5a9c34(0xc0))['to'](this),this[_0x5a9c34(0xc5)][_0x5a9c34(0xa4)](_0x5a9c34(0x9f))['to'](this),this[_0x5a9c34(0xc5)][_0x5a9c34(0xa4)](_0x5a9c34(0x98))['to'](this),this[_0x5a9c34(0x9b)][_0x5a9c34(0xa4)](..._0x50ec9a)['to'](this),this[_0x5a9c34(0xb7)](_0x5a9c34(0x96),!0x0),this[_0x5a9c34(0xb7)](_0x5a9c34(0x95),!0x1);const _0xdc1ddc=this[_0x5a9c34(0x87)];this[_0x5a9c34(0x7b)]({'tag':_0x5a9c34(0xa1),'attributes':{'class':['ck',_0x5a9c34(0x8c),_0xdc1ddc['if'](_0x5a9c34(0x95),_0x5a9c34(0x91))]},'children':[{'tag':_0x5a9c34(0xa7),'attributes':{'class':[_0xdc1ddc['if'](_0x5a9c34(0xc1),_0x5a9c34(0xa0),_0x51e913=>_0x51e913||!this[_0x5a9c34(0x96)]),_0xdc1ddc['if'](_0x5a9c34(0x96),_0x5a9c34(0xa0),_0x5f3c39=>!_0x5f3c39||this[_0x5a9c34(0xc1)])]},'children':[this[_0x5a9c34(0x9b)],this[_0x5a9c34(0xab)],this[_0x5a9c34(0xc5)]]},{'tag':_0x5a9c34(0xa7),'attributes':{'class':[_0xdc1ddc['if'](_0x5a9c34(0xc1),_0x5a9c34(0xa0),_0x3d84c8=>!_0x3d84c8)]},'children':[this[_0x5a9c34(0x8f)]]},{'tag':_0x5a9c34(0xa7),'attributes':{'class':[_0xdc1ddc['if'](_0x5a9c34(0x96),_0x5a9c34(0xa0),_0x27827a=>_0x27827a)]},'children':[this[_0x5a9c34(0xa2)]]}]}),_0x5c2b3e({'emitter':this[_0x5a9c34(0xab)],'activator':()=>this[_0x5a9c34(0xc1)],'contextElements':()=>[this[_0x5a9c34(0x7a)]],'callback':()=>{const _0x5363f3=_0x5a9c34;this[_0x5363f3(0xa8)]=!0x1;}}),this['on'](_0x5a9c34(0x97),this[_0x5a9c34(0x9d)],{'priority':_0x5a9c34(0x82)});}[_0x3d9146(0x8d)](_0x55853d,_0x44d4d6){return new _0x9eafd5(_0x55853d,_0x44d4d6);}[_0x3d9146(0xb4)](_0x530d92){const _0x4faecd=_0x3d9146;return new _0x4b5809(_0x530d92,this[_0x4faecd(0x9b)][_0x4faecd(0x9e)]);}[_0x3d9146(0xbb)](_0x49440c){return new _0x90c356(_0x49440c);}[_0x3d9146(0xae)](_0x3226e1){return new _0x55d830(_0x3226e1);}[_0x3d9146(0x93)](_0x31c472){const _0x17e48e=_0x3d9146,_0x1de041=new AIChatModelUnavailableMessageView(_0x31c472);return _0x1de041[_0x17e48e(0xa4)](_0x17e48e(0x89))['to'](this),_0x1de041;}[_0x3d9146(0x9d)](_0x5815e3,_0x159177,_0x4ce8e9){const _0x355308=_0x3d9146;_0x4ce8e9?this[_0x355308(0xa8)]=!0x0:this[_0x355308(0xa8)]&&this[_0x355308(0xab)][_0x355308(0x8a)]();}[_0x3d9146(0xa9)](_0x185cf1,_0x2958d4){const _0x41ad0e=_0x3d9146;this[_0x41ad0e(0x9b)][_0x41ad0e(0xa9)](_0x185cf1,_0x2958d4);}[_0x3d9146(0xb3)](_0x126495){const _0x32178a=_0x3d9146;this[_0x32178a(0x9b)][_0x32178a(0xb3)](_0x126495);}[_0x3d9146(0xb2)](_0x2b5df4,_0x5e8fe5){const _0x45db1e=_0x3d9146;this[_0x45db1e(0x9b)][_0x45db1e(0xb2)](_0x2b5df4,_0x5e8fe5);}[_0x3d9146(0x79)](_0x10b2ee){const _0x178cbd=_0x3d9146;this[_0x178cbd(0xab)][_0x178cbd(0x79)](_0x10b2ee);}[_0x3d9146(0xad)](_0x51f1e0){const _0x5287bc=_0x3d9146;this[_0x5287bc(0x9b)][_0x5287bc(0xad)](_0x51f1e0);}[_0x3d9146(0x9c)](){const _0x32a335=_0x3d9146;this[_0x32a335(0x9b)][_0x32a335(0xaf)]();}[_0x3d9146(0xb1)](){const _0x10b511=_0x3d9146;this[_0x10b511(0x9b)][_0x10b511(0x7c)]();}[_0x3d9146(0xb6)](_0x5840ed,_0xcbf0cf,_0x5b49ce){const _0x585926=_0x3d9146;this[_0x585926(0x9b)][_0x585926(0xb6)](_0x5840ed,_0xcbf0cf,_0x5b49ce);}[_0x3d9146(0xbe)](_0x210660){const _0x382e44=_0x3d9146;this[_0x382e44(0xc5)][_0x382e44(0xbe)](_0x210660);}[_0x3d9146(0xa6)](_0x459daa){const _0x159e33=_0x3d9146;this[_0x159e33(0xc5)][_0x159e33(0xa6)](_0x459daa);}[_0x3d9146(0xa3)](){const _0x4d193e=_0x3d9146;this[_0x4d193e(0xab)][_0x4d193e(0xac)]();}[_0x3d9146(0x7d)](_0x585b39){const _0x5da42e=_0x3d9146;this[_0x5da42e(0x9b)][_0x5da42e(0x7d)](_0x585b39);}[_0x3d9146(0x83)](_0x1031e0){const _0x2c3d67=_0x3d9146;this[_0x2c3d67(0xab)][_0x2c3d67(0x88)](_0x1031e0);}[_0x3d9146(0xc6)](_0x348720,_0x197546){const _0x22e0d2=_0x3d9146;this[_0x22e0d2(0xc5)][_0x22e0d2(0xc6)](_0x348720,_0x197546);}[_0x3d9146(0xba)](_0x53bc50){const _0x2cbe7b=_0x3d9146;_0x53bc50?(this[_0x2cbe7b(0x96)]=!0x0,this[_0x2cbe7b(0xc5)][_0x2cbe7b(0xba)](_0x53bc50)):this[_0x2cbe7b(0x96)]=!0x1;}[_0x3d9146(0x86)](){const _0x55035e=_0x3d9146;this[_0x55035e(0xc5)][_0x55035e(0x86)]();}[_0x3d9146(0xaa)](_0x1d23ca){const _0x49d83b=_0x3d9146;this[_0x49d83b(0xc5)][_0x49d83b(0xaa)](_0x1d23ca);}[_0x3d9146(0x84)](_0x53dc55,_0x2647a3,_0x81086f,_0x225aa0){const _0x23f025=_0x3d9146;this[_0x23f025(0x9b)][_0x23f025(0x84)](_0x53dc55,_0x2647a3,_0x81086f,_0x225aa0);}[_0x3d9146(0xc7)](_0x7971ae){const _0x52abda=_0x3d9146;this[_0x52abda(0x9b)][_0x52abda(0xc7)](_0x7971ae);}[_0x3d9146(0x7e)](_0x5ecec2=!0x1){const _0x3846e9=_0x3d9146;this[_0x3846e9(0xab)][_0x3846e9(0x8a)](_0x5ecec2);}[_0x3d9146(0xbc)](_0x2b3d85){const _0x2a1b19=_0x3d9146;this[_0x2a1b19(0xab)][_0x2a1b19(0x80)][_0x2a1b19(0xb5)][_0x2a1b19(0xac)](),this[_0x2a1b19(0xab)][_0x2a1b19(0x80)][_0x2a1b19(0xb5)][_0x2a1b19(0x92)]=_0x2b3d85;}}class AIChatModelUnavailableMessageView extends _0x379c5d{constructor(_0x1f8d45){const _0x2c26c5=_0x3d9146;super(_0x1f8d45);const _0x5384ee=new _0x3b4686(_0x1f8d45);_0x5384ee[_0x2c26c5(0xb7)]({'label':_0x373a31(this[_0x2c26c5(0x7f)],_0x2c26c5(0x85)),'withText':!0x0,'class':[_0x2c26c5(0xc3)],'tooltip':''}),_0x5384ee[_0x2c26c5(0xa4)](_0x2c26c5(0x8b))['to'](this,_0x2c26c5(0x89)),this[_0x2c26c5(0x7b)]({'tag':_0x2c26c5(0xa7),'attributes':{'class':['ck',_0x2c26c5(0xc4)]},'children':[{'tag':'p','children':[{'text':_0x373a31(this[_0x2c26c5(0x7f)],_0x2c26c5(0xbf))+'\x20'},_0x5384ee]}]});}}
23
+ const _0x5af3b5=_0x3c7e;(function(_0x5e39e0,_0x5c1e40){const _0x5f3159=_0x3c7e,_0x5eda14=_0x5e39e0();while(!![]){try{const _0x10970e=-parseInt(_0x5f3159(0x1f3))/0x1*(parseInt(_0x5f3159(0x1f6))/0x2)+parseInt(_0x5f3159(0x1d5))/0x3*(-parseInt(_0x5f3159(0x1f5))/0x4)+parseInt(_0x5f3159(0x1e0))/0x5*(parseInt(_0x5f3159(0x1ae))/0x6)+-parseInt(_0x5f3159(0x1f0))/0x7+parseInt(_0x5f3159(0x1c0))/0x8*(parseInt(_0x5f3159(0x1c6))/0x9)+parseInt(_0x5f3159(0x1f8))/0xa+-parseInt(_0x5f3159(0x1b8))/0xb*(-parseInt(_0x5f3159(0x1b2))/0xc);if(_0x10970e===_0x5c1e40)break;else _0x5eda14['push'](_0x5eda14['shift']());}catch(_0x18415e){_0x5eda14['push'](_0x5eda14['shift']());}}}(_0x84aa,0xd58a3));function _0x3c7e(_0x10a184,_0x3c1471){const _0x84aaf8=_0x84aa();return _0x3c7e=function(_0x3c7e34,_0x377e75){_0x3c7e34=_0x3c7e34-0x1ac;let _0x3cf814=_0x84aaf8[_0x3c7e34];return _0x3cf814;},_0x3c7e(_0x10a184,_0x3c1471);}function _0x84aa(){const _0x5b611e=['reset','_createModelUnavailableMessageView','disableModelSelector','addContextButtonView','ck-ai-chat-controls-disabled','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','sendUserMessage','ck-hidden','9726NhvKtU','isLoading','setConversationContext','clearConversationContextUI','2412DyGLck','focus','setWebSearch','_modelUnavailableMessageView','_loaderView','setTemplate','26587XyvxRW','_promptCapabilitiesView','locale','isDisabled','toggleReasoning','element','setInputPlaceholder','div','648nEqSYM','clearConversationContextItems','closeSourceResourceBalloon','focusPromptInput','value','updateResourceState','75798BKnQHy','contextResourcesSearchInputVisibleFrom','enableModelSelector','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','setReasoning','_createPromptCapabilitiesView','setIsUploadInProgress','_promptInputView','queryView','clearCurrentContextItems','ck-ai-chat-controls-model-unavailable-message','setContextItemLoading','fieldView','bodyCollection','clearPendingContextUI','9TmJgom','setModel','execute','_createContextPanelView','_createLoaderView','setPromptInputValue','resetMessageInput','change:isLoading','_handlePromptInputFocus','set','low','3265KlWQRa','selectModel','_createPromptInputView','ck-ai-chat-controls__start-new-chat-button','toggleWebSearch','bindTemplate','addContextItem','form','setPlaceholderText','_shouldRestorePromptInputFocus','_contextPanelView','removeContextItem','setModelList','ck-ai-chat-controls','setAddContextOptions','isModelAvailable','4043340AjcEaV','startConversation','delegate','20nNXeQd','populateSourceResourceBalloon','1073528iwUUuI','146022QXAzJV','abortPromptStream','14911330oJezoc'];_0x84aa=function(){return _0x5b611e;};return _0x84aa();}import{ButtonView as _0xf3cf43,clickOutsideHandler as _0x40b633,View as _0x767c04}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x44a652}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x2dbc2e}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x22ce3f,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x664d10}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x22e17f}from'./controls/aichatcontrolsloaderview.js';import{getTranslation as _0x3dfdaf}from'../../aicore/utils/common-translations.js';import'../../../theme/aichat/aichat-controls.css';import'../../../theme/aichat/aichat-controls/prompt-input.css';import'../../../theme/aichat/aichat-controls/prompt-capabilities.css';import'../../../theme/aichat/aichat-controls/model-unavailable-message.css';import'../../../theme/aichat/aichat-controls/aichat-context-controls.css';import'../../../theme/aichat/aichat-controls/aichat-context-chip.css';import'../../../theme/aichat/aichat-controls/aichat-controls-button.css';import'../../../theme/aichat/aichat-controls/aichat-controls-loader.css';import'../../../theme/aichat/aichat-controls/aichat-context-controls-balloon-panels.css';export class AIChatControlsView extends _0x767c04{[_0x5af3b5(0x1ea)];[_0x5af3b5(0x1cd)];[_0x5af3b5(0x1b9)];[_0x5af3b5(0x1b6)];[_0x5af3b5(0x1b5)];[_0x5af3b5(0x1e9)];constructor(_0x5021b3,_0x5377f5){const _0x20abb9=_0x5af3b5;super(_0x5021b3),this[_0x20abb9(0x1ea)]=this[_0x20abb9(0x1d8)](_0x5021b3,{'bodyCollection':_0x5377f5[_0x20abb9(0x1d3)],'searchInputVisibleFrom':_0x5377f5[_0x20abb9(0x1c7)]}),this[_0x20abb9(0x1cd)]=this[_0x20abb9(0x1e2)](_0x5021b3),this[_0x20abb9(0x1b9)]=this[_0x20abb9(0x1cb)](_0x5021b3),this[_0x20abb9(0x1b6)]=this[_0x20abb9(0x1d9)](_0x5021b3),this[_0x20abb9(0x1b5)]=this[_0x20abb9(0x1fa)](_0x5021b3),this[_0x20abb9(0x1e9)]=!0x1,this[_0x20abb9(0x1cd)][_0x20abb9(0x1f2)](_0x20abb9(0x1ac))['to'](this),this[_0x20abb9(0x1b6)][_0x20abb9(0x1f2)](_0x20abb9(0x1f7))['to'](this),this[_0x20abb9(0x1b9)][_0x20abb9(0x1f2)](_0x20abb9(0x1e4))['to'](this),this[_0x20abb9(0x1b9)][_0x20abb9(0x1f2)](_0x20abb9(0x1bc))['to'](this),this[_0x20abb9(0x1b9)][_0x20abb9(0x1f2)](_0x20abb9(0x1e1))['to'](this),this[_0x20abb9(0x1ea)][_0x20abb9(0x1f2)](..._0x664d10)['to'](this),this[_0x20abb9(0x1de)](_0x20abb9(0x1ef),!0x0),this[_0x20abb9(0x1de)](_0x20abb9(0x1bb),!0x1);const _0x33c973=this[_0x20abb9(0x1e5)];this[_0x20abb9(0x1b7)]({'tag':_0x20abb9(0x1e7),'attributes':{'class':['ck',_0x20abb9(0x1ed),_0x33c973['if'](_0x20abb9(0x1bb),_0x20abb9(0x1fd))]},'children':[{'tag':_0x20abb9(0x1bf),'attributes':{'class':[_0x33c973['if'](_0x20abb9(0x1af),_0x20abb9(0x1ad),_0x553ef6=>_0x553ef6||!this[_0x20abb9(0x1ef)]),_0x33c973['if'](_0x20abb9(0x1ef),_0x20abb9(0x1ad),_0x90c790=>!_0x90c790||this[_0x20abb9(0x1af)])]},'children':[this[_0x20abb9(0x1ea)],this[_0x20abb9(0x1cd)],this[_0x20abb9(0x1b9)]]},{'tag':_0x20abb9(0x1bf),'attributes':{'class':[_0x33c973['if'](_0x20abb9(0x1af),_0x20abb9(0x1ad),_0x55a69d=>!_0x55a69d)]},'children':[this[_0x20abb9(0x1b6)]]},{'tag':_0x20abb9(0x1bf),'attributes':{'class':[_0x33c973['if'](_0x20abb9(0x1ef),_0x20abb9(0x1ad),_0xd547ec=>_0xd547ec)]},'children':[this[_0x20abb9(0x1b5)]]}]}),_0x40b633({'emitter':this[_0x20abb9(0x1cd)],'activator':()=>this[_0x20abb9(0x1af)],'contextElements':()=>[this[_0x20abb9(0x1bd)]],'callback':()=>{const _0x2a82dd=_0x20abb9;this[_0x2a82dd(0x1e9)]=!0x1;}}),this['on'](_0x20abb9(0x1dc),this[_0x20abb9(0x1dd)],{'priority':_0x20abb9(0x1df)});}[_0x5af3b5(0x1d8)](_0x22f6c5,_0x4c01f8){return new _0x22ce3f(_0x22f6c5,_0x4c01f8);}[_0x5af3b5(0x1e2)](_0x17aa33){const _0x3e36b0=_0x5af3b5;return new _0x44a652(_0x17aa33,this[_0x3e36b0(0x1ea)][_0x3e36b0(0x1fc)]);}[_0x5af3b5(0x1cb)](_0x3e8caf){return new _0x2dbc2e(_0x3e8caf);}[_0x5af3b5(0x1d9)](_0x48d9f7){return new _0x22e17f(_0x48d9f7);}[_0x5af3b5(0x1fa)](_0x3072c3){const _0x50cc95=_0x5af3b5,_0x4d77f9=new AIChatModelUnavailableMessageView(_0x3072c3);return _0x4d77f9[_0x50cc95(0x1f2)](_0x50cc95(0x1f1))['to'](this),_0x4d77f9;}[_0x5af3b5(0x1dd)](_0x21f84e,_0x4f6861,_0x40f3a4){const _0x2b5130=_0x5af3b5;_0x40f3a4?this[_0x2b5130(0x1e9)]=!0x0:this[_0x2b5130(0x1e9)]&&this[_0x2b5130(0x1cd)][_0x2b5130(0x1b3)]();}[_0x5af3b5(0x1e6)](_0x4746e5,_0x5ef64e){const _0x390179=_0x5af3b5;this[_0x390179(0x1ea)][_0x390179(0x1e6)](_0x4746e5,_0x5ef64e);}[_0x5af3b5(0x1eb)](_0x4d4f1d){const _0x710e0f=_0x5af3b5;this[_0x710e0f(0x1ea)][_0x710e0f(0x1eb)](_0x4d4f1d);}[_0x5af3b5(0x1d1)](_0x2bf834,_0x8fa5fd){const _0x171f93=_0x5af3b5;this[_0x171f93(0x1ea)][_0x171f93(0x1d1)](_0x2bf834,_0x8fa5fd);}[_0x5af3b5(0x1cc)](_0x406875){const _0x47f13e=_0x5af3b5;this[_0x47f13e(0x1cd)][_0x47f13e(0x1cc)](_0x406875);}[_0x5af3b5(0x1b0)](_0x364c5f){const _0x4ff265=_0x5af3b5;this[_0x4ff265(0x1ea)][_0x4ff265(0x1b0)](_0x364c5f);}[_0x5af3b5(0x1d4)](){const _0x1f83b6=_0x5af3b5;this[_0x1f83b6(0x1ea)][_0x1f83b6(0x1cf)]();}[_0x5af3b5(0x1b1)](){const _0x3c48ec=_0x5af3b5;this[_0x3c48ec(0x1ea)][_0x3c48ec(0x1c1)]();}[_0x5af3b5(0x1c5)](_0x4d3cdf,_0x2b0417,_0x5cb3a3){const _0x417867=_0x5af3b5;this[_0x417867(0x1ea)][_0x417867(0x1c5)](_0x4d3cdf,_0x2b0417,_0x5cb3a3);}[_0x5af3b5(0x1b4)](_0xde177){const _0x3900af=_0x5af3b5;this[_0x3900af(0x1b9)][_0x3900af(0x1b4)](_0xde177);}[_0x5af3b5(0x1ca)](_0x3d4108){const _0x2b2562=_0x5af3b5;this[_0x2b2562(0x1b9)][_0x2b2562(0x1ca)](_0x3d4108);}[_0x5af3b5(0x1db)](){const _0x25fb9e=_0x5af3b5;this[_0x25fb9e(0x1cd)][_0x25fb9e(0x1f9)]();}[_0x5af3b5(0x1ee)](_0x47ea67){const _0x2d483d=_0x5af3b5;this[_0x2d483d(0x1ea)][_0x2d483d(0x1ee)](_0x47ea67);}[_0x5af3b5(0x1be)](_0x132be2){const _0x492ef2=_0x5af3b5;this[_0x492ef2(0x1cd)][_0x492ef2(0x1e8)](_0x132be2);}[_0x5af3b5(0x1ec)](_0x235c65,_0x4836fa){const _0x356a73=_0x5af3b5;this[_0x356a73(0x1b9)][_0x356a73(0x1ec)](_0x235c65,_0x4836fa);}[_0x5af3b5(0x1d6)](_0x1b8b5c){const _0x24b0cb=_0x5af3b5;_0x1b8b5c?(this[_0x24b0cb(0x1ef)]=!0x0,this[_0x24b0cb(0x1b9)][_0x24b0cb(0x1d6)](_0x1b8b5c)):this[_0x24b0cb(0x1ef)]=!0x1;}[_0x5af3b5(0x1c8)](){const _0x3768e2=_0x5af3b5;this[_0x3768e2(0x1b9)][_0x3768e2(0x1c8)]();}[_0x5af3b5(0x1fb)](_0x10107c){const _0x4eff36=_0x5af3b5;this[_0x4eff36(0x1b9)][_0x4eff36(0x1fb)](_0x10107c);}[_0x5af3b5(0x1f4)](_0xda7742,_0x1980a9,_0x399b62,_0x1f83c2){const _0x40d6d2=_0x5af3b5;this[_0x40d6d2(0x1ea)][_0x40d6d2(0x1f4)](_0xda7742,_0x1980a9,_0x399b62,_0x1f83c2);}[_0x5af3b5(0x1c2)](_0x161d19){const _0x143f2b=_0x5af3b5;this[_0x143f2b(0x1ea)][_0x143f2b(0x1c2)](_0x161d19);}[_0x5af3b5(0x1c3)](_0x2fd10f=!0x1){const _0x422a70=_0x5af3b5;this[_0x422a70(0x1cd)][_0x422a70(0x1b3)](_0x2fd10f);}[_0x5af3b5(0x1da)](_0x1a9138){const _0x38e355=_0x5af3b5;this[_0x38e355(0x1cd)][_0x38e355(0x1ce)][_0x38e355(0x1d2)][_0x38e355(0x1f9)](),this[_0x38e355(0x1cd)][_0x38e355(0x1ce)][_0x38e355(0x1d2)][_0x38e355(0x1c4)]=_0x1a9138;}}class AIChatModelUnavailableMessageView extends _0x767c04{constructor(_0x58227f){const _0xc7ba79=_0x5af3b5;super(_0x58227f);const _0x3024cf=new _0xf3cf43(_0x58227f);_0x3024cf[_0xc7ba79(0x1de)]({'label':_0x3dfdaf(this[_0xc7ba79(0x1ba)],_0xc7ba79(0x1fe)),'withText':!0x0,'class':[_0xc7ba79(0x1e3)],'tooltip':''}),_0x3024cf[_0xc7ba79(0x1f2)](_0xc7ba79(0x1d7))['to'](this,_0xc7ba79(0x1f1)),this[_0xc7ba79(0x1b7)]({'tag':_0xc7ba79(0x1bf),'attributes':{'class':['ck',_0xc7ba79(0x1d0)]},'children':[{'tag':'p','children':[{'text':_0x3dfdaf(this[_0xc7ba79(0x1ba)],_0xc7ba79(0x1c9))+'\x20'},_0x3024cf]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2d872a=_0x289f;(function(_0x3248dd,_0x4d28e9){const _0x32113b=_0x289f,_0xfef1c7=_0x3248dd();while(!![]){try{const _0x145d21=-parseInt(_0x32113b(0x11a))/0x1+-parseInt(_0x32113b(0xcf))/0x2+parseInt(_0x32113b(0xd9))/0x3*(-parseInt(_0x32113b(0xe0))/0x4)+-parseInt(_0x32113b(0xd4))/0x5+parseInt(_0x32113b(0xdc))/0x6+-parseInt(_0x32113b(0x111))/0x7+-parseInt(_0x32113b(0xcc))/0x8*(-parseInt(_0x32113b(0xd6))/0x9);if(_0x145d21===_0x4d28e9)break;else _0xfef1c7['push'](_0xfef1c7['shift']());}catch(_0x220cd9){_0xfef1c7['push'](_0xfef1c7['shift']());}}}(_0x5d4e,0x2fe68));function _0x289f(_0x3b55ef,_0x5b5633){const _0x5d4ee2=_0x5d4e();return _0x289f=function(_0x289fcc,_0x344c28){_0x289fcc=_0x289fcc-0xcc;let _0x2ee191=_0x5d4ee2[_0x289fcc];return _0x2ee191;},_0x289f(_0x3b55ef,_0x5b5633);}import{CKEditorError as _0x1dd03e,logWarning as _0x80664a,scrollAncestorsToShowTarget as _0x6592}from'ckeditor5/src/utils.js';import{View as _0x255245}from'ckeditor5/src/ui.js';function _0x5d4e(){const _0x2a4c2c=['locale','bindTemplate','markItemAsDone','212188fYwvQj','render','ck-ai-chat__loader','custom-element','_createTemplateChildren','ai-chat-feed-view-item-not-a-reply-item','setLoadingMessage','markAsDone','delegate','10037448NtPOdw','find','ai-suggestion-reply','564304svclGp','updateSuggestionPartState','isLoadingSkeletonVisible','startAutoScroll','_setupTemplate','528185DOCbGr','updatePartState','9wlKkBK','setPartActive','_createLoaderChildren','757419ZlQZgY','scrollToSuggestion','destroy','298044rxpWwg','updateWebSources','isTrackChangesOn','ai-chat-feed-view-item-not-a-suggestion-item','4BNxccb','_createFeedItems','aiFeed','updateSuggestionItem','hasItem','getItemIds','createCollection','updateReplyItem','element','setTemplate','stopAutoScroll','span','set','parentElement','ck-ai-chat__feed__items','_createFeedLoader','updateSources','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','map','removeItem','start','addItem','stop','getItemById','ck-hidden','ck-ai-chat__loader-text','_createSkeletonLoader','div','filter','loadingMessage','clear','ai-chat-feed-view-item-not-found','setSuggestionPartActive','scrollManager','isPending','toggleLoadingSkeleton','user-message','isVisible','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','children','add','ai-reply','_bodyCollection','remove','forEach','interaction-header','updateContent','ck-ai-chat__feed','1789935TxcoYd','bind','options','includes','getPartView','extendTemplate'];_0x5d4e=function(){return _0x2a4c2c;};return _0x5d4e();}import{AI_CHAT_UI_EVENT_NAMES as _0x2fd25c}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x56226a}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x3edcb9}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x2c910c}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x551d20}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x236cb5}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x501dcf}from'../../aicore/utils/scrollmanager.js';import{AISkeletonView as _0x503328,SKELETON_DEFINITIONS as _0x32310c}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x304045}from'../../aicore/ui/aispinner.js';import{AIChatFeedCustomElementView as _0x51de38}from'./feed/aichatfeedcustomelementview.js';import'../../../theme/aichat/aichatfeed.css';export class AIChatFeedView extends _0x255245{[_0x2d872a(0x108)];[_0x2d872a(0x102)];[_0x2d872a(0x10b)];constructor(_0x206f6d,_0x1f26f7){const _0x5907aa=_0x2d872a;super(_0x206f6d),this[_0x5907aa(0x10b)]=_0x1f26f7,this[_0x5907aa(0xec)](_0x5907aa(0x103),!0x1),this[_0x5907aa(0xec)](_0x5907aa(0xfe),''),this[_0x5907aa(0xec)](_0x5907aa(0xd1),!0x1),this[_0x5907aa(0xec)](_0x5907aa(0xde),!0x1),this[_0x5907aa(0x108)]=this[_0x5907aa(0xe6)](),this[_0x5907aa(0x108)][_0x5907aa(0x122)](..._0x2fd25c)['to'](this),this[_0x5907aa(0xd3)]();}[_0x2d872a(0x11b)](){const _0x42925c=_0x2d872a;super[_0x42925c(0x11b)](),this[_0x42925c(0x102)]=new _0x501dcf(this[_0x42925c(0xe8)]);}[_0x2d872a(0xdb)](){const _0x4b2849=_0x2d872a;super[_0x4b2849(0xdb)](),this[_0x4b2849(0x102)][_0x4b2849(0xdb)]();}[_0x2d872a(0xff)](){const _0x49795e=_0x2d872a;this[_0x49795e(0x108)][_0x49795e(0xff)]();}[_0x2d872a(0xf6)](_0x21409b,_0x592dc5){const _0xd8860=_0x2d872a;let _0x20a6d6;return _0xd8860(0x10a)===_0x21409b?_0x20a6d6=new _0x3edcb9(this[_0xd8860(0x117)],_0x592dc5,this[_0xd8860(0x10b)]):_0xd8860(0xce)===_0x21409b?(_0x20a6d6=new _0x56226a(this[_0xd8860(0x117)],_0x592dc5,this[_0xd8860(0x10b)]),_0x20a6d6[_0xd8860(0x112)](_0xd8860(0xde))['to'](this)):_0x20a6d6=_0xd8860(0x105)===_0x21409b?new _0x2c910c(this[_0xd8860(0x117)],_0x592dc5,this[_0xd8860(0x10b)]):_0xd8860(0x10e)===_0x21409b?new _0x236cb5(this[_0xd8860(0x117)],_0x592dc5):_0xd8860(0x11d)===_0x21409b?new _0x51de38(_0x592dc5):new _0x551d20(_0x592dc5),this[_0xd8860(0x108)][_0xd8860(0x109)](_0x20a6d6),_0x20a6d6;}async[_0x2d872a(0xe7)]({id:_0x553da4,parsedContent:_0x396d31,renderingStrategy:_0x5c6865,abortSignal:_0x3f4d99}){const _0x5df601=_0x2d872a,_0x167e68=this[_0x5df601(0xf8)](_0x553da4);if(!(_0x167e68 instanceof _0x3edcb9))throw new _0x1dd03e(_0x5df601(0x11f),null,{'itemView':_0x167e68,'id':_0x553da4,'parsedContent':_0x396d31});await _0x167e68[_0x5df601(0x10f)]({'parsedContent':_0x396d31,'renderingStrategy':_0x5c6865,'abortSignal':_0x3f4d99});}async[_0x2d872a(0xdd)](_0x2b1f6c,_0x5e021f){const _0x37e222=_0x2d872a,_0x4e05f6=this[_0x37e222(0xf8)](_0x2b1f6c);if(_0x4e05f6 instanceof _0x56226a)_0x4e05f6[_0x37e222(0xf0)](_0x5e021f);else{if(!(_0x4e05f6 instanceof _0x3edcb9))throw new _0x1dd03e(_0x37e222(0x107),null,{'itemView':_0x4e05f6,'id':_0x2b1f6c,'sources':_0x5e021f});_0x4e05f6[_0x37e222(0xf0)](_0x5e021f);}}async[_0x2d872a(0xe3)]({id:_0x33e33e,parts:_0x2c3d75,renderingStrategy:_0x28a00c,abortSignal:_0x16d7aa}){const _0x1573aa=_0x2d872a,_0x105433=this[_0x1573aa(0xf8)](_0x33e33e);if(!(_0x105433 instanceof _0x56226a))throw new _0x1dd03e(_0x1573aa(0xdf),null,{'itemView':_0x105433,'id':_0x33e33e,'parts':_0x2c3d75});await _0x105433[_0x1573aa(0x10f)]({'parts':_0x2c3d75,'renderingStrategy':_0x28a00c,'abortSignal':_0x16d7aa});}[_0x2d872a(0xd0)]({id:_0x55bb55,index:_0x377d9d,state:_0x456576}){const _0x378c32=_0x2d872a,_0xab4710=this[_0x378c32(0xf8)](_0x55bb55);if(!(_0xab4710 instanceof _0x56226a))throw new _0x1dd03e(_0x378c32(0xdf),this,{'id':_0x55bb55});_0xab4710[_0x378c32(0xd5)](_0x377d9d,_0x456576);}[_0x2d872a(0x101)]({id:_0x43ed14,index:_0x451cd4,isActive:_0x388402}){const _0x1dabdf=_0x2d872a,_0x41fa19=this[_0x1dabdf(0xf8)](_0x43ed14);if(!(_0x41fa19 instanceof _0x56226a))throw new _0x1dd03e(_0x1dabdf(0xdf),this,{'id':_0x43ed14});this[_0x1dabdf(0x108)][_0x1dabdf(0xfd)](_0x36df7d=>_0x36df7d instanceof _0x56226a)[_0x1dabdf(0x10d)](_0x2d0fd8=>{const _0x5cf91f=_0x1dabdf;_0x2d0fd8[_0x5cf91f(0xd7)](!0x1);}),_0x41fa19[_0x1dabdf(0xd7)](_0x451cd4,_0x388402);}[_0x2d872a(0x119)](_0x2b6b43){const _0x3cbf80=_0x2d872a;this[_0x3cbf80(0xf8)](_0x2b6b43)[_0x3cbf80(0x121)]();}[_0x2d872a(0xe5)](){const _0x9db0a6=_0x2d872a;return this[_0x9db0a6(0x108)][_0x9db0a6(0xf3)](_0x78fee6=>_0x78fee6[_0x9db0a6(0x113)]['id']);}[_0x2d872a(0xf4)](_0xe7a3f6){const _0x3e1ee3=_0x2d872a;this[_0x3e1ee3(0x108)][_0x3e1ee3(0x10c)](this[_0x3e1ee3(0xf8)](_0xe7a3f6));}[_0x2d872a(0xe4)](_0x2cefd4){const _0x575da5=_0x2d872a;return!!this[_0x575da5(0x108)][_0x575da5(0xcd)](_0x1862b1=>_0x1862b1[_0x575da5(0x113)]['id'][_0x575da5(0x114)](_0x2cefd4));}[_0x2d872a(0xda)](_0x17d483,_0x51d159){const _0x370438=_0x2d872a,_0x1802bf=this[_0x370438(0xf8)](_0x17d483);if(!(_0x1802bf instanceof _0x56226a))return void _0x80664a(_0x370438(0xf2),{'replyId':_0x17d483,'partIndex':_0x51d159});const _0x397ab6=_0x1802bf[_0x370438(0x115)](_0x51d159);_0x397ab6?_0x6592(_0x397ab6[_0x370438(0xe8)],0x14,this[_0x370438(0xe8)][_0x370438(0xed)],!0x0,!0x0):_0x80664a(_0x370438(0xf1),{'replyId':_0x17d483,'partIndex':_0x51d159});}[_0x2d872a(0xd3)](){const _0xdff0e9=_0x2d872a;this[_0xdff0e9(0xe9)]({'tag':_0xdff0e9(0xfc),'attributes':{'class':['ck',_0xdff0e9(0x110)]},'children':this[_0xdff0e9(0x11e)]()});}[_0x2d872a(0x11e)](){const _0x202bcf=_0x2d872a,_0x2709cb=this[_0x202bcf(0xfb)]();return[this[_0x202bcf(0xe1)](),_0x2709cb,this[_0x202bcf(0xef)]()];}[_0x2d872a(0xfb)](){const _0x586844=_0x2d872a,_0x46dd34=new _0x503328(this[_0x586844(0x117)],_0x32310c[_0x586844(0xe2)]);return _0x46dd34[_0x586844(0x116)]({'attributes':{'class':[this[_0x586844(0x118)]['if'](_0x586844(0xd1),_0x586844(0xf9),_0x294703=>!_0x294703)]}}),_0x46dd34;}[_0x2d872a(0xe1)](){const _0x377a21=_0x2d872a,_0x2947a6=new _0x255245(this[_0x377a21(0x117)]);return _0x2947a6[_0x377a21(0xe9)]({'tag':_0x377a21(0xfc),'attributes':{'class':['ck',_0x377a21(0xee),this[_0x377a21(0x118)]['if'](_0x377a21(0xd1),_0x377a21(0xf9))]},'children':this[_0x377a21(0x108)]}),_0x2947a6;}[_0x2d872a(0xef)](){const _0x593b2c=_0x2d872a,_0x2e5592=new _0x255245(this[_0x593b2c(0x117)]);return _0x2e5592[_0x593b2c(0xe9)]({'tag':_0x593b2c(0xfc),'attributes':{'class':['ck',_0x593b2c(0x11c),this[_0x593b2c(0x118)]['if'](_0x593b2c(0x103),_0x593b2c(0xf9),_0x170f72=>!_0x170f72)]},'children':this[_0x593b2c(0xd8)]()}),_0x2e5592;}[_0x2d872a(0xd8)](){const _0x41f4c5=_0x2d872a,_0x1ef890=new _0x304045();return _0x1ef890[_0x41f4c5(0x106)]=!0x0,[_0x1ef890,{'tag':_0x41f4c5(0xeb),'attributes':{'class':['ck',_0x41f4c5(0xfa)]},'children':[{'text':this[_0x41f4c5(0x118)]['to'](_0x41f4c5(0xfe))}]}];}[_0x2d872a(0xf8)](_0x57c5be){const _0x24daad=_0x2d872a,_0x4b290f=this[_0x24daad(0x108)][_0x24daad(0xcd)](_0x587e1b=>_0x587e1b[_0x24daad(0x113)]['id'][_0x24daad(0x114)](_0x57c5be));if(!_0x4b290f)throw new _0x1dd03e(_0x24daad(0x100),this,{'id':_0x57c5be});return _0x4b290f;}[_0x2d872a(0x120)](_0x2db144){const _0x4c8a78=_0x2d872a;this[_0x4c8a78(0xec)](_0x4c8a78(0xfe),_0x2db144);}[_0x2d872a(0x104)](_0x140596){const _0x2e842f=_0x2d872a;this[_0x2e842f(0xec)](_0x2e842f(0xd1),_0x140596);}[_0x2d872a(0xd2)](){const _0x4767c1=_0x2d872a;this[_0x4767c1(0x102)][_0x4767c1(0xf5)]();}[_0x2d872a(0xea)](){const _0x18d862=_0x2d872a;this[_0x18d862(0x102)][_0x18d862(0xf7)]();}}
23
+ const _0x29f9c6=_0x2b30;(function(_0x5b52d3,_0x446e45){const _0x40536d=_0x2b30,_0x202866=_0x5b52d3();while(!![]){try{const _0x35a572=-parseInt(_0x40536d(0x20f))/0x1*(parseInt(_0x40536d(0x236))/0x2)+parseInt(_0x40536d(0x24a))/0x3+-parseInt(_0x40536d(0x229))/0x4*(parseInt(_0x40536d(0x237))/0x5)+-parseInt(_0x40536d(0x202))/0x6*(-parseInt(_0x40536d(0x221))/0x7)+parseInt(_0x40536d(0x231))/0x8+-parseInt(_0x40536d(0x245))/0x9*(-parseInt(_0x40536d(0x1fb))/0xa)+-parseInt(_0x40536d(0x22e))/0xb;if(_0x35a572===_0x446e45)break;else _0x202866['push'](_0x202866['shift']());}catch(_0xdf7656){_0x202866['push'](_0x202866['shift']());}}}(_0x2ade,0xa467e));import{CKEditorError as _0x417f61,logWarning as _0x18ae10,scrollAncestorsToShowTarget as _0x56c1a7}from'ckeditor5/src/utils.js';import{View as _0x21bf49}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x5e76d1}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x19a6e2}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x1d2073}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x372b7d}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x4dee49}from'./feed/aichatfeederroritemview.js';function _0x2b30(_0x3750d6,_0x2ddced){const _0x2adee0=_0x2ade();return _0x2b30=function(_0x2b305e,_0x45a39a){_0x2b305e=_0x2b305e-0x1f4;let _0x4c1167=_0x2adee0[_0x2b305e];return _0x4c1167;},_0x2b30(_0x3750d6,_0x2ddced);}import{AIChatFeedInteractionHeaderView as _0x105c2f}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x505a5a}from'../../aicore/utils/scrollmanager.js';import{AISkeletonView as _0x14d75a,SKELETON_DEFINITIONS as _0xdbf875}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x5296ba}from'../../aicore/ui/aispinner.js';import{AIChatFeedCustomElementView as _0x5ea61d}from'./feed/aichatfeedcustomelementview.js';function _0x2ade(){const _0x3a8644=['options','updateReplyItem','10toHvlW','remove','toggleLoadingSkeleton','interaction-header','updateWebSources','start','delegate','84IwPHHS','render','isLoadingSkeletonVisible','_createLoaderChildren','removeItem','ck-ai-chat__loader-text','destroy','map','div','custom-element','filter','markAsDone','createCollection','5htEpuG','parentElement','aiFeed','bind','isVisible','_bodyCollection','updateSuggestionPartState','locale','updateSources','span','_createFeedLoader','ai-chat-feed-view-item-not-a-suggestion-item','getItemIds','ck-ai-chat__loader','find','setSuggestionPartActive','getItemById','ai-chat-feed-view-item-not-found','298515ETGjwz','ai-reply','ai-chat-feed-view-item-not-a-reply-item','startAutoScroll','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','element','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','ai-suggestion-reply','58388ZDmRFs','children','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','_createSkeletonLoader','extendTemplate','6857895sdpFAs','loadingMessage','_createTemplateChildren','463296SPAbwS','user-message','scrollManager','updateContent','setTemplate','288440jPrpwN','55gxTMhr','setLoadingMessage','ck-ai-chat__feed__items','markItemAsDone','isPending','isTrackChangesOn','includes','ck-hidden','updateSuggestionItem','scrollToSuggestion','setPartActive','_setupTemplate','set','getPartView','11368908llEXxN','forEach','ck-ai-chat__feed','addItem','hasItem','781092LIHbDj','clear','bindTemplate','_createFeedItems','stop','add','stopAutoScroll','updatePartState'];_0x2ade=function(){return _0x3a8644;};return _0x2ade();}import'../../../theme/aichat/aichatfeed.css';export class AIChatFeedView extends _0x21bf49{[_0x29f9c6(0x22a)];[_0x29f9c6(0x233)];[_0x29f9c6(0x214)];constructor(_0x2ec569,_0x1419f7){const _0x1fb039=_0x29f9c6;super(_0x2ec569),this[_0x1fb039(0x214)]=_0x1419f7,this[_0x1fb039(0x243)](_0x1fb039(0x23b),!0x1),this[_0x1fb039(0x243)](_0x1fb039(0x22f),''),this[_0x1fb039(0x243)](_0x1fb039(0x204),!0x1),this[_0x1fb039(0x243)](_0x1fb039(0x23c),!0x1),this[_0x1fb039(0x22a)]=this[_0x1fb039(0x20e)](),this[_0x1fb039(0x22a)][_0x1fb039(0x201)](..._0x5e76d1)['to'](this),this[_0x1fb039(0x242)]();}[_0x29f9c6(0x203)](){const _0x5ccd07=_0x29f9c6;super[_0x5ccd07(0x203)](),this[_0x5ccd07(0x233)]=new _0x505a5a(this[_0x5ccd07(0x226)]);}[_0x29f9c6(0x208)](){const _0x48920b=_0x29f9c6;super[_0x48920b(0x208)](),this[_0x48920b(0x233)][_0x48920b(0x208)]();}[_0x29f9c6(0x24b)](){const _0x39c6fe=_0x29f9c6;this[_0x39c6fe(0x22a)][_0x39c6fe(0x24b)]();}[_0x29f9c6(0x248)](_0x17d3bc,_0x5dfb80){const _0x276785=_0x29f9c6;let _0x324870;return _0x276785(0x222)===_0x17d3bc?_0x324870=new _0x1d2073(this[_0x276785(0x216)],_0x5dfb80,this[_0x276785(0x214)]):_0x276785(0x228)===_0x17d3bc?(_0x324870=new _0x19a6e2(this[_0x276785(0x216)],_0x5dfb80,this[_0x276785(0x214)]),_0x324870[_0x276785(0x212)](_0x276785(0x23c))['to'](this)):_0x324870=_0x276785(0x232)===_0x17d3bc?new _0x372b7d(this[_0x276785(0x216)],_0x5dfb80,this[_0x276785(0x214)]):_0x276785(0x1fe)===_0x17d3bc?new _0x105c2f(this[_0x276785(0x216)],_0x5dfb80):_0x276785(0x20b)===_0x17d3bc?new _0x5ea61d(_0x5dfb80):new _0x4dee49(_0x5dfb80),this[_0x276785(0x22a)][_0x276785(0x1f6)](_0x324870),_0x324870;}async[_0x29f9c6(0x1fa)]({id:_0x471e58,parsedContent:_0x1b17ec,renderingStrategy:_0x52c6a3,abortSignal:_0x165f4e}){const _0x4f5966=_0x29f9c6,_0x543b02=this[_0x4f5966(0x21f)](_0x471e58);if(!(_0x543b02 instanceof _0x1d2073))throw new _0x417f61(_0x4f5966(0x223),null,{'itemView':_0x543b02,'id':_0x471e58,'parsedContent':_0x1b17ec});await _0x543b02[_0x4f5966(0x234)]({'parsedContent':_0x1b17ec,'renderingStrategy':_0x52c6a3,'abortSignal':_0x165f4e});}async[_0x29f9c6(0x1ff)](_0x170a13,_0x4c2bfe){const _0x3e5785=_0x29f9c6,_0x1a3ad3=this[_0x3e5785(0x21f)](_0x170a13);if(_0x1a3ad3 instanceof _0x19a6e2)_0x1a3ad3[_0x3e5785(0x217)](_0x4c2bfe);else{if(!(_0x1a3ad3 instanceof _0x1d2073))throw new _0x417f61(_0x3e5785(0x225),null,{'itemView':_0x1a3ad3,'id':_0x170a13,'sources':_0x4c2bfe});_0x1a3ad3[_0x3e5785(0x217)](_0x4c2bfe);}}async[_0x29f9c6(0x23f)]({id:_0x5de8ec,parts:_0x3fb359,renderingStrategy:_0xac8f33,abortSignal:_0x262c0f}){const _0x56a8f2=_0x29f9c6,_0x215080=this[_0x56a8f2(0x21f)](_0x5de8ec);if(!(_0x215080 instanceof _0x19a6e2))throw new _0x417f61(_0x56a8f2(0x21a),null,{'itemView':_0x215080,'id':_0x5de8ec,'parts':_0x3fb359});await _0x215080[_0x56a8f2(0x234)]({'parts':_0x3fb359,'renderingStrategy':_0xac8f33,'abortSignal':_0x262c0f});}[_0x29f9c6(0x215)]({id:_0x248a0f,index:_0x306404,state:_0x2fb69f}){const _0x485111=_0x29f9c6,_0x2dcbcd=this[_0x485111(0x21f)](_0x248a0f);if(!(_0x2dcbcd instanceof _0x19a6e2))throw new _0x417f61(_0x485111(0x21a),this,{'id':_0x248a0f});_0x2dcbcd[_0x485111(0x1f8)](_0x306404,_0x2fb69f);}[_0x29f9c6(0x21e)]({id:_0x4f26c5,index:_0x26c3af,isActive:_0x3eb213}){const _0x255bc0=_0x29f9c6,_0x28f327=this[_0x255bc0(0x21f)](_0x4f26c5);if(!(_0x28f327 instanceof _0x19a6e2))throw new _0x417f61(_0x255bc0(0x21a),this,{'id':_0x4f26c5});this[_0x255bc0(0x22a)][_0x255bc0(0x20c)](_0xe5e9cb=>_0xe5e9cb instanceof _0x19a6e2)[_0x255bc0(0x246)](_0x2166bc=>{const _0x4d0f5a=_0x255bc0;_0x2166bc[_0x4d0f5a(0x241)](!0x1);}),_0x28f327[_0x255bc0(0x241)](_0x26c3af,_0x3eb213);}[_0x29f9c6(0x23a)](_0x44ebed){const _0x4daca3=_0x29f9c6;this[_0x4daca3(0x21f)](_0x44ebed)[_0x4daca3(0x20d)]();}[_0x29f9c6(0x21b)](){const _0x1e3ac1=_0x29f9c6;return this[_0x1e3ac1(0x22a)][_0x1e3ac1(0x209)](_0x57f047=>_0x57f047[_0x1e3ac1(0x1f9)]['id']);}[_0x29f9c6(0x206)](_0x142f8d){const _0xef553b=_0x29f9c6;this[_0xef553b(0x22a)][_0xef553b(0x1fc)](this[_0xef553b(0x21f)](_0x142f8d));}[_0x29f9c6(0x249)](_0x591e25){const _0xff792d=_0x29f9c6;return!!this[_0xff792d(0x22a)][_0xff792d(0x21d)](_0x3894de=>_0x3894de[_0xff792d(0x1f9)]['id'][_0xff792d(0x23d)](_0x591e25));}[_0x29f9c6(0x240)](_0x12cf24,_0x163b01){const _0x342833=_0x29f9c6,_0x125964=this[_0x342833(0x21f)](_0x12cf24);if(!(_0x125964 instanceof _0x19a6e2))return void _0x18ae10(_0x342833(0x227),{'replyId':_0x12cf24,'partIndex':_0x163b01});const _0x3ded6f=_0x125964[_0x342833(0x244)](_0x163b01);_0x3ded6f?_0x56c1a7(_0x3ded6f[_0x342833(0x226)],0x14,this[_0x342833(0x226)][_0x342833(0x210)],!0x0,!0x0):_0x18ae10(_0x342833(0x22b),{'replyId':_0x12cf24,'partIndex':_0x163b01});}[_0x29f9c6(0x242)](){const _0x30452a=_0x29f9c6;this[_0x30452a(0x235)]({'tag':_0x30452a(0x20a),'attributes':{'class':['ck',_0x30452a(0x247)]},'children':this[_0x30452a(0x230)]()});}[_0x29f9c6(0x230)](){const _0x311318=_0x29f9c6,_0x20ad84=this[_0x311318(0x22c)]();return[this[_0x311318(0x1f4)](),_0x20ad84,this[_0x311318(0x219)]()];}[_0x29f9c6(0x22c)](){const _0x3228b9=_0x29f9c6,_0x462f63=new _0x14d75a(this[_0x3228b9(0x216)],_0xdbf875[_0x3228b9(0x211)]);return _0x462f63[_0x3228b9(0x22d)]({'attributes':{'class':[this[_0x3228b9(0x24c)]['if'](_0x3228b9(0x204),_0x3228b9(0x23e),_0x3c93c1=>!_0x3c93c1)]}}),_0x462f63;}[_0x29f9c6(0x1f4)](){const _0x52b2b7=_0x29f9c6,_0x3452f6=new _0x21bf49(this[_0x52b2b7(0x216)]);return _0x3452f6[_0x52b2b7(0x235)]({'tag':_0x52b2b7(0x20a),'attributes':{'class':['ck',_0x52b2b7(0x239),this[_0x52b2b7(0x24c)]['if'](_0x52b2b7(0x204),_0x52b2b7(0x23e))]},'children':this[_0x52b2b7(0x22a)]}),_0x3452f6;}[_0x29f9c6(0x219)](){const _0x3cdf15=_0x29f9c6,_0xf2a96d=new _0x21bf49(this[_0x3cdf15(0x216)]);return _0xf2a96d[_0x3cdf15(0x235)]({'tag':_0x3cdf15(0x20a),'attributes':{'class':['ck',_0x3cdf15(0x21c),this[_0x3cdf15(0x24c)]['if'](_0x3cdf15(0x23b),_0x3cdf15(0x23e),_0x496300=>!_0x496300)]},'children':this[_0x3cdf15(0x205)]()}),_0xf2a96d;}[_0x29f9c6(0x205)](){const _0x23f1c8=_0x29f9c6,_0x21e1b1=new _0x5296ba();return _0x21e1b1[_0x23f1c8(0x213)]=!0x0,[_0x21e1b1,{'tag':_0x23f1c8(0x218),'attributes':{'class':['ck',_0x23f1c8(0x207)]},'children':[{'text':this[_0x23f1c8(0x24c)]['to'](_0x23f1c8(0x22f))}]}];}[_0x29f9c6(0x21f)](_0x538e8){const _0x3bde3c=_0x29f9c6,_0x1ab6b8=this[_0x3bde3c(0x22a)][_0x3bde3c(0x21d)](_0x4eb13c=>_0x4eb13c[_0x3bde3c(0x1f9)]['id'][_0x3bde3c(0x23d)](_0x538e8));if(!_0x1ab6b8)throw new _0x417f61(_0x3bde3c(0x220),this,{'id':_0x538e8});return _0x1ab6b8;}[_0x29f9c6(0x238)](_0x4b860a){const _0x62fbad=_0x29f9c6;this[_0x62fbad(0x243)](_0x62fbad(0x22f),_0x4b860a);}[_0x29f9c6(0x1fd)](_0x58cd05){const _0xcea42e=_0x29f9c6;this[_0xcea42e(0x243)](_0xcea42e(0x204),_0x58cd05);}[_0x29f9c6(0x224)](){const _0x4c0f1c=_0x29f9c6;this[_0x4c0f1c(0x233)][_0x4c0f1c(0x200)]();}[_0x29f9c6(0x1f7)](){const _0x133d58=_0x29f9c6;this[_0x133d58(0x233)][_0x133d58(0x1f5)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x319909=_0x1cca;(function(_0x241dfa,_0x306a60){const _0x4e8b3a=_0x1cca,_0x21c8a3=_0x241dfa();while(!![]){try{const _0x48f019=-parseInt(_0x4e8b3a(0xc2))/0x1+-parseInt(_0x4e8b3a(0xb2))/0x2*(parseInt(_0x4e8b3a(0xc3))/0x3)+-parseInt(_0x4e8b3a(0xba))/0x4+parseInt(_0x4e8b3a(0xbb))/0x5*(parseInt(_0x4e8b3a(0xb7))/0x6)+parseInt(_0x4e8b3a(0xb5))/0x7+-parseInt(_0x4e8b3a(0xc1))/0x8+parseInt(_0x4e8b3a(0xb1))/0x9;if(_0x48f019===_0x306a60)break;else _0x21c8a3['push'](_0x21c8a3['shift']());}catch(_0x56fae4){_0x21c8a3['push'](_0x21c8a3['shift']());}}}(_0x5082,0x54c85));import{ButtonView as _0xcd830f,FormHeaderView as _0x4de799}from'ckeditor5/src/ui.js';function _0x1cca(_0x1a1629,_0x3ebfa3){const _0x508201=_0x5082();return _0x1cca=function(_0x1ccadf,_0x46ba3c){_0x1ccadf=_0x1ccadf-0xac;let _0x5ee1e0=_0x508201[_0x1ccadf];return _0x5ee1e0;},_0x1cca(_0x1a1629,_0x3ebfa3);}import{IconPlus as _0x88bc85,IconAIChat as _0x1baca2}from'ckeditor5/src/icons.js';import{getTranslation as _0x498329}from'../../aicore/utils/common-translations.js';import{createResizeButton as _0x5edc22}from'../../aicore/utils/createresizebutton.js';import'../../../theme/common/aiheader.css';function _0x5082(){const _0x5ae2ce=['3895213GtWqCI','startConversation','261204eYRHDF','conversationStartButton','fire','1001544bfVpUM','25JEYaSg','locale','ck-ai-header\x20ck-ai-header_chat','isMaximized','set','AI_CHAT_LABEL_NEW_CHAT','244208wynfRc','151967nLRkJr','79320mAErza','ck-ai-chat__start-conversation','AI_CHAT_HEADING','children','add','_createStartConversationButton','3147651Lpkzbu','26nRGDUX','resizeButton','execute'];_0x5082=function(){return _0x5ae2ce;};return _0x5082();}export class AIChatHeaderView extends _0x4de799{[_0x319909(0xb8)];[_0x319909(0xb3)];constructor(_0x19836a,_0x128533){const _0x7be160=_0x319909;super(_0x19836a,{'label':_0x498329(_0x19836a,_0x7be160(0xad)),'class':_0x7be160(0xbd),'icon':_0x1baca2}),this[_0x7be160(0xbf)](_0x7be160(0xbe),!0x1),this[_0x7be160(0xb8)]=this[_0x7be160(0xb0)](_0x19836a),this[_0x7be160(0xae)][_0x7be160(0xaf)](this[_0x7be160(0xb8)]),_0x128533&&(this[_0x7be160(0xb3)]=_0x5edc22(_0x19836a,this),this[_0x7be160(0xae)][_0x7be160(0xaf)](this[_0x7be160(0xb3)]));}[_0x319909(0xb0)](_0x256e12){const _0x46b1a1=_0x319909,_0x471ac4=new _0xcd830f(_0x256e12);return _0x471ac4[_0x46b1a1(0xbf)]({'label':_0x498329(this[_0x46b1a1(0xbc)],_0x46b1a1(0xc0)),'withText':!0x0,'icon':_0x88bc85,'class':_0x46b1a1(0xac)}),_0x471ac4['on'](_0x46b1a1(0xb4),()=>{const _0x5930e2=_0x46b1a1;this[_0x5930e2(0xb9)](_0x5930e2(0xb6));}),_0x471ac4;}}
23
+ const _0x224d7=_0x4daf;function _0xf0f8(){const _0x22cb9e=['135qrSUSU','add','8466408vtdSNG','ck-ai-header\x20ck-ai-header_chat','65154YkOAbS','_createStartConversationButton','children','AI_CHAT_LABEL_NEW_CHAT','525VflFsG','6224000uhvQJU','489750MABLbB','52112yBbCVN','resizeButton','isMaximized','startConversation','AI_CHAT_HEADING','1699892SIDhII','16ECGFNW','638ZpztCl','conversationStartButton','execute','set','locale','fire','ck-ai-chat__start-conversation','7354675ImNmHw'];_0xf0f8=function(){return _0x22cb9e;};return _0xf0f8();}(function(_0x33b5c0,_0x40474a){const _0x458c8d=_0x4daf,_0x480f1c=_0x33b5c0();while(!![]){try{const _0x29eac1=-parseInt(_0x458c8d(0x11c))/0x1+parseInt(_0x458c8d(0x117))/0x2*(-parseInt(_0x458c8d(0x126))/0x3)+-parseInt(_0x458c8d(0x115))/0x4+parseInt(_0x458c8d(0x125))/0x5+parseInt(_0x458c8d(0x12a))/0x6*(-parseInt(_0x458c8d(0x114))/0x7)+parseInt(_0x458c8d(0x11d))/0x8*(parseInt(_0x458c8d(0x128))/0x9)+-parseInt(_0x458c8d(0x116))/0xa*(-parseInt(_0x458c8d(0x11e))/0xb);if(_0x29eac1===_0x40474a)break;else _0x480f1c['push'](_0x480f1c['shift']());}catch(_0x2b8991){_0x480f1c['push'](_0x480f1c['shift']());}}}(_0xf0f8,0xe7f38));import{ButtonView as _0x4bd666,FormHeaderView as _0x463cd4}from'ckeditor5/src/ui.js';import{IconPlus as _0x554696,IconAIChat as _0x39b37d}from'ckeditor5/src/icons.js';import{getTranslation as _0x1f6714}from'../../aicore/utils/common-translations.js';import{createResizeButton as _0x29f4f6}from'../../aicore/utils/createresizebutton.js';import'../../../theme/common/aiheader.css';function _0x4daf(_0xe6826,_0x44d37c){const _0xf0f8a5=_0xf0f8();return _0x4daf=function(_0x4dafdf,_0x259020){_0x4dafdf=_0x4dafdf-0x113;let _0xfd5fbf=_0xf0f8a5[_0x4dafdf];return _0xfd5fbf;},_0x4daf(_0xe6826,_0x44d37c);}export class AIChatHeaderView extends _0x463cd4{[_0x224d7(0x11f)];[_0x224d7(0x118)];constructor(_0x26a1cc,_0x16dca1){const _0x529c18=_0x224d7;super(_0x26a1cc,{'label':_0x1f6714(_0x26a1cc,_0x529c18(0x11b)),'class':_0x529c18(0x129),'icon':_0x39b37d}),this[_0x529c18(0x121)](_0x529c18(0x119),!0x1),this[_0x529c18(0x11f)]=this[_0x529c18(0x12b)](_0x26a1cc),this[_0x529c18(0x12c)][_0x529c18(0x127)](this[_0x529c18(0x11f)]),_0x16dca1&&(this[_0x529c18(0x118)]=_0x29f4f6(_0x26a1cc,this),this[_0x529c18(0x12c)][_0x529c18(0x127)](this[_0x529c18(0x118)]));}[_0x224d7(0x12b)](_0x4a6fca){const _0x4183a0=_0x224d7,_0x312429=new _0x4bd666(_0x4a6fca);return _0x312429[_0x4183a0(0x121)]({'label':_0x1f6714(this[_0x4183a0(0x122)],_0x4183a0(0x113)),'withText':!0x0,'icon':_0x554696,'class':_0x4183a0(0x124)}),_0x312429['on'](_0x4183a0(0x120),()=>{const _0x190716=_0x4183a0;this[_0x190716(0x123)](_0x190716(0x11a));}),_0x312429;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x3deab7=_0x1120;function _0x1120(_0x1be7f6,_0x5e582e){var _0x8ef35c=_0x8ef3();return _0x1120=function(_0x112051,_0x34a62a){_0x112051=_0x112051-0x136;var _0x32f30d=_0x8ef35c[_0x112051];return _0x32f30d;},_0x1120(_0x1be7f6,_0x5e582e);}(function(_0x463a47,_0x2f6c15){var _0x324880=_0x1120,_0x2da4dc=_0x463a47();while(!![]){try{var _0x2e9706=parseInt(_0x324880(0x136))/0x1*(-parseInt(_0x324880(0x151))/0x2)+-parseInt(_0x324880(0x13e))/0x3+parseInt(_0x324880(0x139))/0x4+-parseInt(_0x324880(0x14d))/0x5+-parseInt(_0x324880(0x13d))/0x6+parseInt(_0x324880(0x149))/0x7*(parseInt(_0x324880(0x146))/0x8)+parseInt(_0x324880(0x143))/0x9;if(_0x2e9706===_0x2f6c15)break;else _0x2da4dc['push'](_0x2da4dc['shift']());}catch(_0x182d36){_0x2da4dc['push'](_0x2da4dc['shift']());}}}(_0x8ef3,0x1aded));import{View as _0x2a221c,BodyCollection as _0x35a8a9}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x223b0b}from'../utils/eventnames.js';import{AIChatFeedView as _0x34ea02}from'./aichatfeedview.js';function _0x8ef3(){var _0x313141=['contextResourcesSearchInputVisibleFrom','_bodyCollection','ck-ai-chat','chatDisclaimer','5145435AYGUIe','chatHeader','closeSourceResourceBalloon','490520jhgrcg','destroy','ck-rounded-corners','7ocSUgH','chatControls','attachToDom','delegate','1070990Bqnsmz','detachFromDom','div','showResizeButton','71194ZFdcfK','4WMLLTO','setTemplate','ck-reset_all','302000QZnhFI','uiLanguageDirection','populateSourceResourceBalloon','chatFeed','1295550caYlUP','77874qvtQkp'];_0x8ef3=function(){return _0x313141;};return _0x8ef3();}import{AIChatControlsView as _0x18612d}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x38f961}from'./aichatheaderview.js';import{AIDisclaimerView as _0x5c7645}from'../../aicore/ui/aidisclaimerview.js';import'../../../theme/common/ainotification.css';import'../../../theme/common/aibutton.css';import'../../../theme/common/aitrackchanges.css';export class AIChatView extends _0x2a221c{[_0x3deab7(0x144)];[_0x3deab7(0x13c)];[_0x3deab7(0x14a)];[_0x3deab7(0x142)];[_0x3deab7(0x140)];constructor(_0x4e68a8,_0x54aff9){var _0x239191=_0x3deab7;super(_0x4e68a8),this[_0x239191(0x140)]=new _0x35a8a9(_0x4e68a8),this[_0x239191(0x140)][_0x239191(0x14b)](),this[_0x239191(0x144)]=new _0x38f961(_0x4e68a8,_0x54aff9[_0x239191(0x150)]),this[_0x239191(0x144)][_0x239191(0x14c)](..._0x223b0b)['to'](this),this[_0x239191(0x13c)]=new _0x34ea02(_0x4e68a8,this[_0x239191(0x140)]),this[_0x239191(0x13c)][_0x239191(0x14c)](..._0x223b0b)['to'](this),this[_0x239191(0x14a)]=new _0x18612d(_0x4e68a8,{'bodyCollection':this[_0x239191(0x140)],'contextResourcesSearchInputVisibleFrom':_0x54aff9[_0x239191(0x13f)]}),this[_0x239191(0x14a)][_0x239191(0x14c)](..._0x223b0b)['to'](this),this[_0x239191(0x142)]=new _0x5c7645(_0x4e68a8),this[_0x239191(0x137)]({'tag':_0x239191(0x14f),'attributes':{'class':['ck',_0x239191(0x138),_0x239191(0x141),_0x239191(0x148)],'dir':_0x4e68a8[_0x239191(0x13a)]},'children':[this[_0x239191(0x144)],this[_0x239191(0x13c)],this[_0x239191(0x14a)],this[_0x239191(0x142)]]});}[_0x3deab7(0x13b)](_0xbde28f,_0x32ea4b,_0x5ed5ed,_0x1cb838){var _0x37a6b2=_0x3deab7;this[_0x37a6b2(0x14a)][_0x37a6b2(0x13b)](_0xbde28f,_0x32ea4b,_0x5ed5ed,_0x1cb838);}[_0x3deab7(0x145)](_0x2c78d2){var _0x54d8a6=_0x3deab7;this[_0x54d8a6(0x14a)][_0x54d8a6(0x145)](_0x2c78d2);}[_0x3deab7(0x147)](){var _0x4f2517=_0x3deab7;this[_0x4f2517(0x140)][_0x4f2517(0x14e)](),super[_0x4f2517(0x147)]();}}
23
+ var _0x2af52b=_0x49fd;(function(_0x29d7e2,_0x24bccd){var _0x113be2=_0x49fd,_0x4676b8=_0x29d7e2();while(!![]){try{var _0x2f2c7b=-parseInt(_0x113be2(0xd3))/0x1*(parseInt(_0x113be2(0xd7))/0x2)+-parseInt(_0x113be2(0xe8))/0x3+parseInt(_0x113be2(0xe0))/0x4*(parseInt(_0x113be2(0xd6))/0x5)+-parseInt(_0x113be2(0xe2))/0x6*(parseInt(_0x113be2(0xeb))/0x7)+parseInt(_0x113be2(0xe7))/0x8+-parseInt(_0x113be2(0xce))/0x9*(parseInt(_0x113be2(0xdc))/0xa)+-parseInt(_0x113be2(0xd8))/0xb*(-parseInt(_0x113be2(0xe3))/0xc);if(_0x2f2c7b===_0x24bccd)break;else _0x4676b8['push'](_0x4676b8['shift']());}catch(_0x4b3a82){_0x4676b8['push'](_0x4676b8['shift']());}}}(_0x44e2,0x1d382));import{View as _0x29e3d7,BodyCollection as _0x45cd85}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x594067}from'../utils/eventnames.js';import{AIChatFeedView as _0x48bd79}from'./aichatfeedview.js';import{AIChatControlsView as _0x1fcef9}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x29dff1}from'./aichatheaderview.js';import{AIDisclaimerView as _0x5db01f}from'../../aicore/ui/aidisclaimerview.js';import'../../../theme/common/ainotification.css';import'../../../theme/common/aibutton.css';import'../../../theme/common/aitrackchanges.css';function _0x49fd(_0x4ceb6a,_0x3044ca){var _0x44e2c2=_0x44e2();return _0x49fd=function(_0x49fd25,_0x42ec31){_0x49fd25=_0x49fd25-0xce;var _0x2f80d5=_0x44e2c2[_0x49fd25];return _0x2f80d5;},_0x49fd(_0x4ceb6a,_0x3044ca);}function _0x44e2(){var _0x20ccf3=['contextResourcesSearchInputVisibleFrom','chatHeader','_bodyCollection','267200ASuAtj','680838fOnQBY','ck-rounded-corners','delegate','7xwRJwd','chatFeed','9zowmPT','div','ck-reset_all','populateSourceResourceBalloon','detachFromDom','1RfQmFS','attachToDom','setTemplate','260qzAPgn','25158SQKaPJ','142219zvyQlN','chatDisclaimer','chatControls','uiLanguageDirection','607310qPMeov','closeSourceResourceBalloon','showResizeButton','ck-ai-chat','13100SAdhTt','destroy','874644grVBmO','336HJyBqr'];_0x44e2=function(){return _0x20ccf3;};return _0x44e2();}export class AIChatView extends _0x29e3d7{[_0x2af52b(0xe5)];[_0x2af52b(0xec)];[_0x2af52b(0xda)];[_0x2af52b(0xd9)];[_0x2af52b(0xe6)];constructor(_0x484fcb,_0x1be2f4){var _0x1daf06=_0x2af52b;super(_0x484fcb),this[_0x1daf06(0xe6)]=new _0x45cd85(_0x484fcb),this[_0x1daf06(0xe6)][_0x1daf06(0xd4)](),this[_0x1daf06(0xe5)]=new _0x29dff1(_0x484fcb,_0x1be2f4[_0x1daf06(0xde)]),this[_0x1daf06(0xe5)][_0x1daf06(0xea)](..._0x594067)['to'](this),this[_0x1daf06(0xec)]=new _0x48bd79(_0x484fcb,this[_0x1daf06(0xe6)]),this[_0x1daf06(0xec)][_0x1daf06(0xea)](..._0x594067)['to'](this),this[_0x1daf06(0xda)]=new _0x1fcef9(_0x484fcb,{'bodyCollection':this[_0x1daf06(0xe6)],'contextResourcesSearchInputVisibleFrom':_0x1be2f4[_0x1daf06(0xe4)]}),this[_0x1daf06(0xda)][_0x1daf06(0xea)](..._0x594067)['to'](this),this[_0x1daf06(0xd9)]=new _0x5db01f(_0x484fcb),this[_0x1daf06(0xd5)]({'tag':_0x1daf06(0xcf),'attributes':{'class':['ck',_0x1daf06(0xd0),_0x1daf06(0xdf),_0x1daf06(0xe9)],'dir':_0x484fcb[_0x1daf06(0xdb)]},'children':[this[_0x1daf06(0xe5)],this[_0x1daf06(0xec)],this[_0x1daf06(0xda)],this[_0x1daf06(0xd9)]]});}[_0x2af52b(0xd1)](_0xc5d2ab,_0x5cfb13,_0x31ea4d,_0x3293e1){var _0x36c4cd=_0x2af52b;this[_0x36c4cd(0xda)][_0x36c4cd(0xd1)](_0xc5d2ab,_0x5cfb13,_0x31ea4d,_0x3293e1);}[_0x2af52b(0xdd)](_0x10f037){var _0x218fa3=_0x2af52b;this[_0x218fa3(0xda)][_0x218fa3(0xdd)](_0x10f037);}[_0x2af52b(0xe1)](){var _0xc883e7=_0x2af52b;this[_0xc883e7(0xe6)][_0xc883e7(0xd2)](),super[_0xc883e7(0xe1)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x4795(_0x29cb9f,_0x111cff){const _0x1f6894=_0x1f68();return _0x4795=function(_0x47955f,_0x49230e){_0x47955f=_0x47955f-0x6c;let _0x1b9b3a=_0x1f6894[_0x47955f];return _0x1b9b3a;},_0x4795(_0x29cb9f,_0x111cff);}const _0x36cb7f=_0x4795;(function(_0x5815b3,_0x4c9460){const _0x4f0ca8=_0x4795,_0x1de3c7=_0x5815b3();while(!![]){try{const _0x4f0216=-parseInt(_0x4f0ca8(0x91))/0x1+parseInt(_0x4f0ca8(0xbd))/0x2*(parseInt(_0x4f0ca8(0xfa))/0x3)+parseInt(_0x4f0ca8(0xe6))/0x4+-parseInt(_0x4f0ca8(0x82))/0x5+-parseInt(_0x4f0ca8(0x83))/0x6*(parseInt(_0x4f0ca8(0xb9))/0x7)+parseInt(_0x4f0ca8(0x85))/0x8+-parseInt(_0x4f0ca8(0xb7))/0x9*(-parseInt(_0x4f0ca8(0xc7))/0xa);if(_0x4f0216===_0x4c9460)break;else _0x1de3c7['push'](_0x1de3c7['shift']());}catch(_0x5505aa){_0x1de3c7['push'](_0x1de3c7['shift']());}}}(_0x1f68,0x3e2e1));import{View as _0x5f1800,BalloonPanelView as _0x2c140b,ButtonView as _0x2e2b90,clickOutsideHandler as _0x5c1e8d}from'ckeditor5/src/ui.js';import{Collection as _0x5720a8}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},an=_0x36cb7f(0x70);function _0x1f68(){const _0x1ecbf0=['_testButtonFit','_checkAndHandleOverflow','clientWidth','setTemplate','offsetWidth','block\x20!important','_updateBalloonContent','_createMockButton','innerWidth','40391CqlIHN','_updateOverflowUI','isOn','destroy','showMoreLabelPrefix','height','_bodyCollection','auto','_createContainerElements','_overflowChips','_pendingCalculation','50px','isIntersecting','div','body','label','getBoundingClientRect','top','abs','_isContainerVisible','observe','visible','_createShowMoreButtonView','visible\x20!important','_updateShowMoreButtonVisibility','.ck-ai-chat','undefined','filter','_calculateOverflowInContainer','block','_findTargetContainer','includes','_applyOverflowResults','display','createElement','_visibleChips','innerHTML','execute','154278uKKuRJ','_renderChipsAndCountRows','35sZOaTz','show','disableAnimationOnEnter','showMoreBalloon','466dxhfDZ','_config','forEach','slice','extendTemplate','_intersectionObserver','_containerElement','bottom','_createShowMoreBalloonPanelView','button','90eoGYsI','hidden','_makeAncestorsVisible','_repinBalloonPanel','documentElement','classList','className','position','_applyCalculationStyles','zIndex','reorganizeChips','_showMoreButtonView','hide','overflowContainer','pin','tagName','some','overflowChips','toLowerCase','+\x201','clear','hideBalloonPanel','length','_parentView','showMoreButton','maxVisibleRows','showBalloonPanel','_restoreAncestorVisibility','from','_distributeChips','ck-calculation-container','1609692ogFCtL','isVisible','_createCalculationContainer','right','width','pointerEvents','children','controlsButton','none','border-box','showMoreButtonView','cssClasses','-9999px','clientHeight','innerHeight','visibility','appendChild','opacity','_locale','_calculateContainerWidth','465zIDMHs','isConnected','style','set','rowDetectionTolerance','left','setContainerElement','cloneNode','textContent','element','300px','render','_showMoreBalloonPanelView','_ancestorsToRestore','_targetContainer','_handleShowMoreButtonClick','disconnect','0px','querySelector','push','_setupVisibilityObserver','pop','add','getComputedStyle','boxSizing','calculationContainer','remove','absolute','403875nJYPyE','487626dAeNgz','_createShowMoreButton','1515152HWiGNp','content','parentElement'];_0x1f68=function(){return _0x1ecbf0;};return _0x1f68();}export class AIChatChipsOverflowManager{[_0x36cb7f(0xf8)];[_0x36cb7f(0xbe)];[_0x36cb7f(0xb4)];[_0x36cb7f(0x9a)];[_0x36cb7f(0xd2)]=null;[_0x36cb7f(0x72)]=null;[_0x36cb7f(0xc3)]=null;[_0x36cb7f(0x97)];[_0x36cb7f(0xde)]=null;[_0x36cb7f(0xc2)]=null;[_0x36cb7f(0x9b)]=!0x1;constructor(_0x1058eb,_0x5dccaf,_0x60e6f4,_0x18e8f6,_0x3cdb26){const _0x5465dd=_0x36cb7f;this[_0x5465dd(0xf8)]=_0x1058eb,this[_0x5465dd(0xb4)]=_0x5dccaf,this[_0x5465dd(0xbe)]={...hn,..._0x60e6f4,'cssClasses':{'controlsButton':'','calculationContainer':_0x5465dd(0xe5),..._0x60e6f4[_0x5465dd(0xf1)]}},this[_0x5465dd(0x9a)]=new _0x5720a8(),this[_0x5465dd(0x97)]=_0x18e8f6,this[_0x5465dd(0xde)]=_0x3cdb26||null;}[_0x36cb7f(0x6c)](_0x116c16){const _0x397326=_0x36cb7f;this[_0x397326(0xc2)]&&(this[_0x397326(0xc2)][_0x397326(0x76)](),this[_0x397326(0xc2)]=null),this[_0x397326(0xc3)]=_0x116c16,this[_0x397326(0x7a)]();}get[_0x36cb7f(0xf0)](){const _0x57a456=_0x36cb7f;return this[_0x57a456(0xd2)];}get[_0x36cb7f(0xd8)](){const _0x23b895=_0x36cb7f;return this[_0x23b895(0x9a)];}[_0x36cb7f(0xd1)](){requestAnimationFrame(()=>{const _0x2c3c2f=_0x4795;this[_0x2c3c2f(0x89)]();});}[_0x36cb7f(0xe1)](){const _0x4d5baa=_0x36cb7f;this[_0x4d5baa(0xd2)]&&this[_0x4d5baa(0x72)]&&(this[_0x4d5baa(0x8e)](),this[_0x4d5baa(0xd2)][_0x4d5baa(0x93)]=!0x0,this[_0x4d5baa(0x72)][_0x4d5baa(0xba)](),this[_0x4d5baa(0x72)][_0x4d5baa(0xd5)]({'target':this[_0x4d5baa(0xd2)][_0x4d5baa(0x6f)],'limiter':document[_0x4d5baa(0x78)](_0x4d5baa(0xaa))}));}[_0x36cb7f(0xdc)](){const _0x55c5d4=_0x36cb7f;this[_0x55c5d4(0xd2)]&&this[_0x55c5d4(0x72)]&&(this[_0x55c5d4(0xd2)][_0x55c5d4(0x93)]=!0x1,this[_0x55c5d4(0x72)][_0x55c5d4(0xd3)]());}[_0x36cb7f(0xdb)](){const _0x475d8d=_0x36cb7f;this[_0x475d8d(0x9a)][_0x475d8d(0xdb)](),this[_0x475d8d(0xdc)](),this[_0x475d8d(0xa9)](),this[_0x475d8d(0xd2)]&&(this[_0x475d8d(0xd2)][_0x475d8d(0xa0)]=''),this[_0x475d8d(0x72)]&&this[_0x475d8d(0x72)][_0x475d8d(0x86)][_0x475d8d(0xdb)]();}[_0x36cb7f(0x94)](){const _0x3fff1d=_0x36cb7f;this[_0x3fff1d(0xc2)]&&(this[_0x3fff1d(0xc2)][_0x3fff1d(0x76)](),this[_0x3fff1d(0xc2)]=null),this[_0x3fff1d(0xd2)]&&(this[_0x3fff1d(0xd2)][_0x3fff1d(0x94)](),this[_0x3fff1d(0xd2)]=null),this[_0x3fff1d(0x72)]&&(this[_0x3fff1d(0x72)][_0x3fff1d(0x94)](),this[_0x3fff1d(0x72)]=null);}[_0x36cb7f(0x89)](){const _0x120a3e=_0x36cb7f;if(!this[_0x120a3e(0xc3)])return;if(!this[_0x120a3e(0xa4)]())return void(this[_0x120a3e(0x9b)]=!0x0);this[_0x120a3e(0x9b)]=!0x1;const _0x26e409=[...this[_0x120a3e(0xb4)],...this[_0x120a3e(0x9a)]],_0x327aca=this[_0x120a3e(0xe8)](),_0x4cc559=this[_0x120a3e(0xad)](_0x327aca,_0x26e409),_0x16a2e4=_0x327aca[_0x120a3e(0x73)];_0x16a2e4&&this[_0x120a3e(0xe2)](_0x16a2e4),_0x327aca[_0x120a3e(0x80)](),this[_0x120a3e(0xb1)](_0x26e409,_0x4cc559);}[_0x36cb7f(0x84)](){const _0x208e1d=_0x36cb7f;this[_0x208e1d(0xd2)]=this[_0x208e1d(0xa7)](),this[_0x208e1d(0x72)]=this[_0x208e1d(0xc5)](),this[_0x208e1d(0xd2)][_0x208e1d(0x71)](),this[_0x208e1d(0xc3)][_0x208e1d(0xf6)](this[_0x208e1d(0xd2)][_0x208e1d(0x6f)]),this[_0x208e1d(0xd2)]['on'](_0x208e1d(0xb6),()=>{const _0x16c35e=_0x208e1d;this[_0x16c35e(0x75)]();}),_0x5c1e8d({'emitter':this[_0x208e1d(0x72)],'contextElements':[this[_0x208e1d(0x72)][_0x208e1d(0x6f)],this[_0x208e1d(0xd2)][_0x208e1d(0x6f)]],'callback':()=>this[_0x208e1d(0xdc)](),'activator':()=>this[_0x208e1d(0xd2)][_0x208e1d(0x93)]});}[_0x36cb7f(0xa7)](){const _0x37aa54=_0x36cb7f,_0x5122ca=new _0x2e2b90(this[_0x37aa54(0xf8)]);_0x5122ca[_0x37aa54(0xfd)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x5a14dc=[this[_0x37aa54(0xbe)][_0x37aa54(0xf1)][_0x37aa54(0xdf)]];return this[_0x37aa54(0xbe)][_0x37aa54(0xf1)][_0x37aa54(0xed)]&&_0x5a14dc[_0x37aa54(0x79)](this[_0x37aa54(0xbe)][_0x37aa54(0xf1)][_0x37aa54(0xed)]),_0x5122ca[_0x37aa54(0xc1)]({'attributes':{'class':_0x5a14dc}}),_0x5122ca;}[_0x36cb7f(0xc5)](){const _0x2c290d=_0x36cb7f,_0x138ece=new _0x2c140b(this[_0x2c290d(0xf8)]);return _0x138ece[_0x2c290d(0xc1)]({'attributes':{'class':this[_0x2c290d(0xbe)][_0x2c290d(0xf1)][_0x2c290d(0xbc)]}}),this[_0x2c290d(0x97)][_0x2c290d(0x7c)](_0x138ece),_0x138ece;}[_0x36cb7f(0x8e)](){const _0x350874=_0x36cb7f;if(this[_0x350874(0x72)]&&(this[_0x350874(0x72)][_0x350874(0x86)][_0x350874(0xdb)](),this[_0x350874(0x9a)][_0x350874(0xdd)]>0x0)){this[_0x350874(0x9a)][_0x350874(0xbf)](_0x4a0422=>{const _0x45a43d=_0x350874;_0x4a0422[_0x45a43d(0xbb)]();});const _0x332982=new _0x5f1800(this[_0x350874(0xf8)]);_0x332982[_0x350874(0x8b)]({'tag':_0x350874(0x9e),'attributes':{'class':this[_0x350874(0xbe)][_0x350874(0xf1)][_0x350874(0xd4)]},'children':this[_0x350874(0x9a)]}),this[_0x350874(0x72)][_0x350874(0x86)][_0x350874(0x7c)](_0x332982);}}[_0x36cb7f(0x75)](){const _0x3e3a44=_0x36cb7f;this[_0x3e3a44(0xd2)][_0x3e3a44(0x93)]?this[_0x3e3a44(0xdc)]():this[_0x3e3a44(0xe1)]();}[_0x36cb7f(0xa9)](){const _0x1a89be=_0x36cb7f,_0x4c240b=this[_0x1a89be(0x9a)][_0x1a89be(0xdd)]>0x0;this[_0x1a89be(0xd2)]?.[_0x1a89be(0x6f)]&&(this[_0x1a89be(0xd2)][_0x1a89be(0x6f)][_0x1a89be(0xfc)][_0x1a89be(0xb2)]=_0x4c240b?'':_0x1a89be(0xee));}[_0x36cb7f(0xca)](){const _0x2f5104=_0x36cb7f;this[_0x2f5104(0xd2)]?.[_0x2f5104(0x93)]&&this[_0x2f5104(0x72)]?.[_0x2f5104(0xe7)]&&this[_0x2f5104(0xd2)][_0x2f5104(0x6f)]&&this[_0x2f5104(0x72)][_0x2f5104(0xd5)]({'target':this[_0x2f5104(0xd2)][_0x2f5104(0x6f)],'limiter':document[_0x2f5104(0x78)](_0x2f5104(0xaa))});}[_0x36cb7f(0xaf)](_0x4059b9){const _0x28f07b=_0x36cb7f,_0x2ff78d=this[_0x28f07b(0xc3)]?.[_0x28f07b(0xd6)][_0x28f07b(0xd9)]()||_0x28f07b(0x9e),_0x3bd43a=this[_0x28f07b(0xc3)]?.[_0x28f07b(0xcc)];if(_0x3bd43a){const _0x5f308f=_0x3bd43a[0x0]||'',_0x385612=_0x4059b9[_0x28f07b(0x78)]('.'+_0x5f308f),_0x2c5046=_0x4059b9[_0x28f07b(0x78)](_0x2ff78d);return _0x385612||_0x2c5046||_0x4059b9;}return _0x4059b9[_0x28f07b(0x78)](_0x2ff78d)||_0x4059b9;}[_0x36cb7f(0xf9)](){const _0x3bbcb2=_0x36cb7f,_0x2842bf=this[_0x3bbcb2(0xde)]?.[_0x3bbcb2(0x6f)]||this[_0x3bbcb2(0xc3)];if(!_0x2842bf)return an;const _0x2da5b0=window[_0x3bbcb2(0x7d)](_0x2842bf)[_0x3bbcb2(0xea)];if(_0x3bbcb2(0x98)===_0x2da5b0||_0x3bbcb2(0x77)===_0x2da5b0||!_0x2da5b0){const _0x5be9a3=_0x2842bf[_0x3bbcb2(0x87)];if(_0x5be9a3){const _0x1af4bb=window[_0x3bbcb2(0x7d)](_0x5be9a3);return _0x3bbcb2(0x98)!==_0x1af4bb[_0x3bbcb2(0xea)]?_0x1af4bb[_0x3bbcb2(0xea)]:an;}return an;}return _0x2da5b0;}[_0x36cb7f(0xcf)](_0x47de59,_0x2ce1bb){const _0x10f1cd=_0x36cb7f;this[_0x10f1cd(0xbe)][_0x10f1cd(0xf1)][_0x10f1cd(0x7f)]&&_0x47de59[_0x10f1cd(0xcc)][_0x10f1cd(0x7c)](this[_0x10f1cd(0xbe)][_0x10f1cd(0xf1)][_0x10f1cd(0x7f)]),_0x47de59[_0x10f1cd(0xfc)][_0x10f1cd(0xea)]=_0x2ce1bb,_0x47de59[_0x10f1cd(0xfc)][_0x10f1cd(0xce)]=_0x10f1cd(0x81),_0x47de59[_0x10f1cd(0xfc)][_0x10f1cd(0xa2)]=_0x10f1cd(0xf2),_0x47de59[_0x10f1cd(0xfc)][_0x10f1cd(0xff)]=_0x10f1cd(0xf2),_0x47de59[_0x10f1cd(0xfc)][_0x10f1cd(0xf7)]='0',_0x47de59[_0x10f1cd(0xfc)][_0x10f1cd(0xeb)]=_0x10f1cd(0xee),_0x47de59[_0x10f1cd(0xfc)][_0x10f1cd(0xd0)]='-1',_0x47de59[_0x10f1cd(0xfc)][_0x10f1cd(0xf5)]=_0x10f1cd(0xa8),_0x47de59[_0x10f1cd(0xfc)][_0x10f1cd(0xb2)]=_0x10f1cd(0x8d),_0x47de59[_0x10f1cd(0xfc)][_0x10f1cd(0x7e)]=_0x10f1cd(0xef);}[_0x36cb7f(0xe2)](_0x43441a){const _0x2061fe=_0x36cb7f;_0x43441a[_0x2061fe(0xbf)](({element:_0x1a5d02,originalDisplay:_0x56e696,originalVisibility:_0x36f082})=>{const _0x5f18c9=_0x2061fe;_0x1a5d02[_0x5f18c9(0xfc)][_0x5f18c9(0xb2)]=_0x56e696,_0x1a5d02[_0x5f18c9(0xfc)][_0x5f18c9(0xf5)]=_0x36f082;});}[_0x36cb7f(0xc9)](_0x5cf3e0){const _0x5d8ef1=_0x36cb7f,_0x87b9e=[];let _0x1cac7b=_0x5cf3e0;for(;_0x1cac7b&&_0x1cac7b!==document[_0x5d8ef1(0x9f)];){const _0x1fad1a=window[_0x5d8ef1(0x7d)](_0x1cac7b);_0x5d8ef1(0xee)!==_0x1fad1a[_0x5d8ef1(0xb2)]&&_0x5d8ef1(0xc8)!==_0x1fad1a[_0x5d8ef1(0xf5)]||(_0x87b9e[_0x5d8ef1(0x79)]({'element':_0x1cac7b,'originalDisplay':_0x1cac7b[_0x5d8ef1(0xfc)][_0x5d8ef1(0xb2)],'originalVisibility':_0x1cac7b[_0x5d8ef1(0xfc)][_0x5d8ef1(0xf5)]}),_0x1cac7b[_0x5d8ef1(0xfc)][_0x5d8ef1(0xb2)]=_0x5d8ef1(0xae),_0x1cac7b[_0x5d8ef1(0xfc)][_0x5d8ef1(0xf5)]=_0x5d8ef1(0xa6)),_0x1cac7b=_0x1cac7b[_0x5d8ef1(0x87)];}return _0x87b9e;}[_0x36cb7f(0x99)](){const _0x131359=_0x36cb7f;let _0x237a42,_0x50733d;return this[_0x131359(0xde)]?.[_0x131359(0x6f)]?(_0x237a42=this[_0x131359(0xde)][_0x131359(0x6f)][_0x131359(0x6d)](!0x0),_0x50733d=this[_0x131359(0xaf)](_0x237a42)):(_0x237a42=document[_0x131359(0xb3)](_0x131359(0x9e)),_0x50733d=_0x237a42),{'calculationContainer':_0x237a42,'targetContainer':_0x50733d};}[_0x36cb7f(0xe8)](){const _0xc373a0=_0x36cb7f,{calculationContainer:_0x5ea9c7,targetContainer:_0x1ea3e4}=this[_0xc373a0(0x99)](),_0x5000ce=this[_0xc373a0(0xf9)]();this[_0xc373a0(0xcf)](_0x5ea9c7,_0x5000ce);const _0x195b86=this[_0xc373a0(0xde)]?.[_0xc373a0(0x6f)]||this[_0xc373a0(0xc3)],_0x264c95=_0x195b86?.[_0xc373a0(0x87)];_0x264c95?_0x264c95[_0xc373a0(0xf6)](_0x5ea9c7):document[_0xc373a0(0x9f)][_0xc373a0(0xf6)](_0x5ea9c7),_0x5ea9c7[_0xc373a0(0x74)]=_0x1ea3e4;const _0x4f11e2=this[_0xc373a0(0xc9)](_0x264c95||null);return _0x5ea9c7[_0xc373a0(0x8c)],_0x5ea9c7[_0xc373a0(0x73)]=_0x4f11e2,_0x5ea9c7;}[_0x36cb7f(0xad)](_0x3d42cc,_0x56895f){const _0x22f26b=_0x36cb7f,_0x50f038=_0x3d42cc[_0x22f26b(0x74)]||_0x3d42cc,_0x1a561e=[],{rowCount:_0x3f039f}=this[_0x22f26b(0xb8)](_0x50f038,_0x56895f);if(_0x3f039f<=this[_0x22f26b(0xbe)][_0x22f26b(0xe0)])return _0x1a561e;const _0x1dfbcc=_0x56895f[_0x22f26b(0xc0)]();for(;_0x1dfbcc[_0x22f26b(0xdd)]>0x0;){if(this[_0x22f26b(0x88)](_0x3d42cc,_0x50f038,_0x1dfbcc)){const _0x30f82b=_0x56895f[_0x22f26b(0xac)](_0x25abe1=>!_0x1dfbcc[_0x22f26b(0xb0)](_0x25abe1));_0x1a561e[_0x22f26b(0x79)](..._0x30f82b);break;}if(!_0x1dfbcc[_0x22f26b(0x7b)]())break;}return _0x1a561e;}[_0x36cb7f(0xb8)](_0xb1957f,_0x3aaf4b){const _0xe82ff1=_0x36cb7f;_0xb1957f[_0xe82ff1(0xb5)]='',_0x3aaf4b[_0xe82ff1(0xbf)](_0x4336a1=>{const _0x207fbd=_0xe82ff1;if(_0x4336a1[_0x207fbd(0x6f)]){const _0x28e94d=_0x4336a1[_0x207fbd(0x6f)][_0x207fbd(0x6d)](!0x0);_0xb1957f[_0x207fbd(0xf6)](_0x28e94d);}}),_0xb1957f[_0xe82ff1(0x8c)];const _0x15e919=_0xb1957f[_0xe82ff1(0xec)],_0x10085e=[];return Array[_0xe82ff1(0xe3)](_0x15e919)[_0xe82ff1(0xbf)](_0x16ac6c=>{const _0x187220=_0xe82ff1,_0x5a29b7=_0x16ac6c[_0x187220(0xa1)]()[_0x187220(0xa2)];_0x10085e[_0x187220(0xd7)](_0x403492=>Math[_0x187220(0xa3)](_0x403492-_0x5a29b7)<this[_0x187220(0xbe)][_0x187220(0xfe)])||_0x10085e[_0x187220(0x79)](_0x5a29b7);}),{'rowCount':_0x10085e[_0xe82ff1(0xdd)]};}[_0x36cb7f(0x8f)](){const _0x33527a=_0x36cb7f,_0x1bc35c=document[_0x33527a(0xb3)](_0x33527a(0xc6));return _0x1bc35c[_0x33527a(0xcd)]=this[_0x33527a(0xbe)][_0x33527a(0xf1)][_0x33527a(0xdf)],this[_0x33527a(0xbe)][_0x33527a(0xf1)][_0x33527a(0xed)]&&_0x1bc35c[_0x33527a(0xcc)][_0x33527a(0x7c)](this[_0x33527a(0xbe)][_0x33527a(0xf1)][_0x33527a(0xed)]),_0x1bc35c[_0x33527a(0x6e)]=_0x33527a(0xda),_0x1bc35c;}[_0x36cb7f(0x88)](_0x568ecb,_0x122a82,_0xf4dc5d){const _0x26ef12=_0x36cb7f;this[_0x26ef12(0xb8)](_0x122a82,_0xf4dc5d);const _0x49e1b1=this[_0x26ef12(0x8f)]();_0x568ecb[_0x26ef12(0xf6)](_0x49e1b1),_0x568ecb[_0x26ef12(0x8c)];const _0xc2eeb0=[..._0x122a82[_0x26ef12(0xec)],_0x49e1b1],_0x11f839=[];_0xc2eeb0[_0x26ef12(0xbf)](_0x3c3c90=>{const _0x13590f=_0x26ef12,_0x112481=_0x3c3c90[_0x13590f(0xa1)]()[_0x13590f(0xa2)];_0x11f839[_0x13590f(0xd7)](_0x37bd6a=>Math[_0x13590f(0xa3)](_0x37bd6a-_0x112481)<this[_0x13590f(0xbe)][_0x13590f(0xfe)])||_0x11f839[_0x13590f(0x79)](_0x112481);});const _0x1b1840=_0x11f839[_0x26ef12(0xdd)];return _0x49e1b1[_0x26ef12(0x80)](),_0x1b1840<=this[_0x26ef12(0xbe)][_0x26ef12(0xe0)];}[_0x36cb7f(0xe4)](_0x4cbfe3,_0x3021f2){const _0x26ebe4=_0x36cb7f;this[_0x26ebe4(0xb4)][_0x26ebe4(0xdb)](),this[_0x26ebe4(0x9a)][_0x26ebe4(0xdb)](),_0x4cbfe3[_0x26ebe4(0xbf)](_0x2efe18=>{const _0x1064cb=_0x26ebe4;_0x3021f2[_0x1064cb(0xb0)](_0x2efe18)?this[_0x1064cb(0x9a)][_0x1064cb(0x7c)](_0x2efe18):this[_0x1064cb(0xb4)][_0x1064cb(0x7c)](_0x2efe18);});}[_0x36cb7f(0x92)](_0xb57a98){const _0x2f46c4=_0x36cb7f;if(_0xb57a98>0x0&&!this[_0x2f46c4(0xd2)]&&this[_0x2f46c4(0x84)](),_0xb57a98>0x0&&this[_0x2f46c4(0xd2)]){const _0x4251a0=''+this[_0x2f46c4(0xbe)][_0x2f46c4(0x95)]+(_0xb57a98<0x63?_0xb57a98:'99');this[_0x2f46c4(0xd2)][_0x2f46c4(0xa0)]=_0x4251a0;}this[_0x2f46c4(0x8e)](),this[_0x2f46c4(0xa9)](),this[_0x2f46c4(0xca)]();}[_0x36cb7f(0xb1)](_0x379709,_0x49f14a){const _0x254ba1=_0x36cb7f;this[_0x254ba1(0xe4)](_0x379709,_0x49f14a),this[_0x254ba1(0x92)](_0x49f14a[_0x254ba1(0xdd)]);}[_0x36cb7f(0x7a)](){const _0x34f267=_0x36cb7f;this[_0x34f267(0xc3)]&&_0x34f267(0xab)!=typeof IntersectionObserver&&(this[_0x34f267(0xc2)]=new IntersectionObserver(_0x591782=>{const _0x63296c=_0x34f267;_0x591782[0x0][_0x63296c(0x9d)]&&this[_0x63296c(0x9b)]&&requestAnimationFrame(()=>{const _0x427a6d=_0x63296c;this[_0x427a6d(0x89)]();});},{'threshold':0.01,'rootMargin':_0x34f267(0x9c)}),this[_0x34f267(0xc2)][_0x34f267(0xa5)](this[_0x34f267(0xc3)]));}[_0x36cb7f(0xa4)](){const _0x209f80=_0x36cb7f;if(!this[_0x209f80(0xc3)])return!0x1;if(!this[_0x209f80(0xc3)][_0x209f80(0xfb)])return!0x1;const _0x21ecad=this[_0x209f80(0xc3)][_0x209f80(0xa1)]();if(0x0===_0x21ecad[_0x209f80(0xea)]||0x0===_0x21ecad[_0x209f80(0x96)])return!0x1;const _0x5941ff=window[_0x209f80(0xf4)]||document[_0x209f80(0xcb)][_0x209f80(0xf3)],_0xc73be9=window[_0x209f80(0x90)]||document[_0x209f80(0xcb)][_0x209f80(0x8a)],_0x4af16e=0xc8;return _0x21ecad[_0x209f80(0xc4)]>=-0xc8&&_0x21ecad[_0x209f80(0xa2)]<=_0x5941ff+_0x4af16e&&_0x21ecad[_0x209f80(0xe9)]>=-0xc8&&_0x21ecad[_0x209f80(0xff)]<=_0xc73be9+_0x4af16e;}}
23
+ function _0x3a9c(){const _0x17d6f6=['width','_locale','slice','-9999px','rowDetectionTolerance','auto','textContent','top','push','_visibleChips','block','controlsButton','cloneNode','calculationContainer','body','_isContainerVisible','300px','style','destroy','.ck-ai-chat','hideBalloonPanel','overflowContainer','isConnected','_calculateOverflowInContainer','149960HFrZCT','9ofjmsw','_bodyCollection','75736NREEju','_applyOverflowResults','setContainerElement','some','_createCalculationContainer','button','boxSizing','tagName','disconnect','_containerElement','isOn','div','2dBFmts','_createContainerElements','execute','clientHeight','absolute','querySelector','_overflowChips','_targetContainer','includes','bottom','label','_handleShowMoreButtonClick','right','_createShowMoreBalloonPanelView','left','_testButtonFit','length','_pendingCalculation','_repinBalloonPanel','_applyCalculationStyles','_createShowMoreButton','clientWidth','_showMoreBalloonPanelView','content','showMoreLabelPrefix','_calculateContainerWidth','display','_makeAncestorsVisible','cssClasses','classList','add','pop','from','showMoreBalloon','isVisible','zIndex','innerHTML','_createShowMoreButtonView','parentElement','visible\x20!important','_distributeChips','_intersectionObserver','className','overflowChips','innerHeight','visibility','observe','isIntersecting','abs','undefined','_updateBalloonContent','5tnMAJk','pin','offsetWidth','_restoreAncestorVisibility','show','showMoreButton','setTemplate','_findTargetContainer','documentElement','_setupVisibilityObserver','toLowerCase','getBoundingClientRect','0px','_config','forEach','551886ijfTcL','maxVisibleRows','ck-calculation-container','getComputedStyle','extendTemplate','showMoreButtonView','visible','remove','element','588pAbCfP','showBalloonPanel','set','pointerEvents','50px','845476rdfipa','reorganizeChips','opacity','disableAnimationOnEnter','hidden','clear','_createMockButton','+\x201','_renderChipsAndCountRows','2128370LMYJMV','height','none','innerWidth','_checkAndHandleOverflow','filter','_ancestorsToRestore','_updateOverflowUI','position','_parentView','createElement','_showMoreButtonView','render','10808AFiIcZ','516835gkstgw','hide','children','block\x20!important','appendChild','_updateShowMoreButtonVisibility','border-box'];_0x3a9c=function(){return _0x17d6f6;};return _0x3a9c();}const _0x531bb6=_0x195c;(function(_0x166105,_0x25f42f){const _0x4cbdc0=_0x195c,_0x1686fe=_0x166105();while(!![]){try{const _0x3bfec3=parseInt(_0x4cbdc0(0xcd))/0x1*(parseInt(_0x4cbdc0(0xd9))/0x2)+-parseInt(_0x4cbdc0(0x11b))/0x3+parseInt(_0x4cbdc0(0x129))/0x4*(parseInt(_0x4cbdc0(0x10c))/0x5)+parseInt(_0x4cbdc0(0x124))/0x6*(parseInt(_0x4cbdc0(0xaa))/0x7)+parseInt(_0x4cbdc0(0xca))/0x8+parseInt(_0x4cbdc0(0xcb))/0x9*(-parseInt(_0x4cbdc0(0x132))/0xa)+parseInt(_0x4cbdc0(0xab))/0xb;if(_0x3bfec3===_0x25f42f)break;else _0x1686fe['push'](_0x1686fe['shift']());}catch(_0x4dc5cb){_0x1686fe['push'](_0x1686fe['shift']());}}}(_0x3a9c,0x1a354));import{View as _0x8f56ef,BalloonPanelView as _0x1174e9,ButtonView as _0x214066,clickOutsideHandler as _0x97520}from'ckeditor5/src/ui.js';import{Collection as _0x3712b6}from'ckeditor5/src/utils.js';function _0x195c(_0x55884d,_0x3e6f4a){const _0x3a9c09=_0x3a9c();return _0x195c=function(_0x195c2f,_0x1921e2){_0x195c2f=_0x195c2f-0xa1;let _0x1d4056=_0x3a9c09[_0x195c2f];return _0x1d4056;},_0x195c(_0x55884d,_0x3e6f4a);}const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},an=_0x531bb6(0xc2);export class AIChatChipsOverflowManager{[_0x531bb6(0xb3)];[_0x531bb6(0x119)];[_0x531bb6(0xbb)];[_0x531bb6(0xdf)];[_0x531bb6(0xa8)]=null;[_0x531bb6(0xef)]=null;[_0x531bb6(0xd6)]=null;[_0x531bb6(0xcc)];[_0x531bb6(0xa6)]=null;[_0x531bb6(0x102)]=null;[_0x531bb6(0xea)]=!0x1;constructor(_0x52bb25,_0x222e76,_0x2246c1,_0x4e05e2,_0x3d6be0){const _0x1ea004=_0x531bb6;this[_0x1ea004(0xb3)]=_0x52bb25,this[_0x1ea004(0xbb)]=_0x222e76,this[_0x1ea004(0x119)]={...hn,..._0x2246c1,'cssClasses':{'controlsButton':'','calculationContainer':_0x1ea004(0x11d),..._0x2246c1[_0x1ea004(0xf5)]}},this[_0x1ea004(0xdf)]=new _0x3712b6(),this[_0x1ea004(0xcc)]=_0x4e05e2,this[_0x1ea004(0xa6)]=_0x3d6be0||null;}[_0x531bb6(0xcf)](_0x9c45ba){const _0xe9ece5=_0x531bb6;this[_0xe9ece5(0x102)]&&(this[_0xe9ece5(0x102)][_0xe9ece5(0xd5)](),this[_0xe9ece5(0x102)]=null),this[_0xe9ece5(0xd6)]=_0x9c45ba,this[_0xe9ece5(0x115)]();}get[_0x531bb6(0x120)](){const _0x1b39a0=_0x531bb6;return this[_0x1b39a0(0xa8)];}get[_0x531bb6(0x104)](){const _0x1c2a28=_0x531bb6;return this[_0x1c2a28(0xdf)];}[_0x531bb6(0x12a)](){requestAnimationFrame(()=>{const _0x401ddb=_0x195c;this[_0x401ddb(0xa1)]();});}[_0x531bb6(0x125)](){const _0x1c5eaa=_0x531bb6;this[_0x1c5eaa(0xa8)]&&this[_0x1c5eaa(0xef)]&&(this[_0x1c5eaa(0x10b)](),this[_0x1c5eaa(0xa8)][_0x1c5eaa(0xd7)]=!0x0,this[_0x1c5eaa(0xef)][_0x1c5eaa(0x110)](),this[_0x1c5eaa(0xef)][_0x1c5eaa(0x10d)]({'target':this[_0x1c5eaa(0xa8)][_0x1c5eaa(0x123)],'limiter':document[_0x1c5eaa(0xde)](_0x1c5eaa(0xc5))}));}[_0x531bb6(0xc6)](){const _0x5d0809=_0x531bb6;this[_0x5d0809(0xa8)]&&this[_0x5d0809(0xef)]&&(this[_0x5d0809(0xa8)][_0x5d0809(0xd7)]=!0x1,this[_0x5d0809(0xef)][_0x5d0809(0xac)]());}[_0x531bb6(0x12e)](){const _0x48b0f2=_0x531bb6;this[_0x48b0f2(0xdf)][_0x48b0f2(0x12e)](),this[_0x48b0f2(0xc6)](),this[_0x48b0f2(0xb0)](),this[_0x48b0f2(0xa8)]&&(this[_0x48b0f2(0xa8)][_0x48b0f2(0xe3)]=''),this[_0x48b0f2(0xef)]&&this[_0x48b0f2(0xef)][_0x48b0f2(0xf0)][_0x48b0f2(0x12e)]();}[_0x531bb6(0xc4)](){const _0x416183=_0x531bb6;this[_0x416183(0x102)]&&(this[_0x416183(0x102)][_0x416183(0xd5)](),this[_0x416183(0x102)]=null),this[_0x416183(0xa8)]&&(this[_0x416183(0xa8)][_0x416183(0xc4)](),this[_0x416183(0xa8)]=null),this[_0x416183(0xef)]&&(this[_0x416183(0xef)][_0x416183(0xc4)](),this[_0x416183(0xef)]=null);}[_0x531bb6(0xa1)](){const _0x114bde=_0x531bb6;if(!this[_0x114bde(0xd6)])return;if(!this[_0x114bde(0xc1)]())return void(this[_0x114bde(0xea)]=!0x0);this[_0x114bde(0xea)]=!0x1;const _0x4bca29=[...this[_0x114bde(0xbb)],...this[_0x114bde(0xdf)]],_0x295d0c=this[_0x114bde(0xd1)](),_0x3556c1=this[_0x114bde(0xc9)](_0x295d0c,_0x4bca29),_0x4971df=_0x295d0c[_0x114bde(0xa3)];_0x4971df&&this[_0x114bde(0x10f)](_0x4971df),_0x295d0c[_0x114bde(0x122)](),this[_0x114bde(0xce)](_0x4bca29,_0x3556c1);}[_0x531bb6(0xed)](){const _0x2dfd0b=_0x531bb6;this[_0x2dfd0b(0xa8)]=this[_0x2dfd0b(0xfe)](),this[_0x2dfd0b(0xef)]=this[_0x2dfd0b(0xe6)](),this[_0x2dfd0b(0xa8)][_0x2dfd0b(0xa9)](),this[_0x2dfd0b(0xd6)][_0x2dfd0b(0xaf)](this[_0x2dfd0b(0xa8)][_0x2dfd0b(0x123)]),this[_0x2dfd0b(0xa8)]['on'](_0x2dfd0b(0xdb),()=>{const _0x26250a=_0x2dfd0b;this[_0x26250a(0xe4)]();}),_0x97520({'emitter':this[_0x2dfd0b(0xef)],'contextElements':[this[_0x2dfd0b(0xef)][_0x2dfd0b(0x123)],this[_0x2dfd0b(0xa8)][_0x2dfd0b(0x123)]],'callback':()=>this[_0x2dfd0b(0xc6)](),'activator':()=>this[_0x2dfd0b(0xa8)][_0x2dfd0b(0xd7)]});}[_0x531bb6(0xfe)](){const _0x39183d=_0x531bb6,_0x374848=new _0x214066(this[_0x39183d(0xb3)]);_0x374848[_0x39183d(0x126)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x2afda1=[this[_0x39183d(0x119)][_0x39183d(0xf5)][_0x39183d(0x111)]];return this[_0x39183d(0x119)][_0x39183d(0xf5)][_0x39183d(0xbd)]&&_0x2afda1[_0x39183d(0xba)](this[_0x39183d(0x119)][_0x39183d(0xf5)][_0x39183d(0xbd)]),_0x374848[_0x39183d(0x11f)]({'attributes':{'class':_0x2afda1}}),_0x374848;}[_0x531bb6(0xe6)](){const _0x3642f2=_0x531bb6,_0x4a7410=new _0x1174e9(this[_0x3642f2(0xb3)]);return _0x4a7410[_0x3642f2(0x11f)]({'attributes':{'class':this[_0x3642f2(0x119)][_0x3642f2(0xf5)][_0x3642f2(0xfa)]}}),this[_0x3642f2(0xcc)][_0x3642f2(0xf7)](_0x4a7410),_0x4a7410;}[_0x531bb6(0x10b)](){const _0x1cdd17=_0x531bb6;if(this[_0x1cdd17(0xef)]&&(this[_0x1cdd17(0xef)][_0x1cdd17(0xf0)][_0x1cdd17(0x12e)](),this[_0x1cdd17(0xdf)][_0x1cdd17(0xe9)]>0x0)){this[_0x1cdd17(0xdf)][_0x1cdd17(0x11a)](_0x12c476=>{const _0x7fb488=_0x1cdd17;_0x12c476[_0x7fb488(0x12c)]();});const _0x3db1d8=new _0x8f56ef(this[_0x1cdd17(0xb3)]);_0x3db1d8[_0x1cdd17(0x112)]({'tag':_0x1cdd17(0xd8),'attributes':{'class':this[_0x1cdd17(0x119)][_0x1cdd17(0xf5)][_0x1cdd17(0xc7)]},'children':this[_0x1cdd17(0xdf)]}),this[_0x1cdd17(0xef)][_0x1cdd17(0xf0)][_0x1cdd17(0xf7)](_0x3db1d8);}}[_0x531bb6(0xe4)](){const _0x2ef7b8=_0x531bb6;this[_0x2ef7b8(0xa8)][_0x2ef7b8(0xd7)]?this[_0x2ef7b8(0xc6)]():this[_0x2ef7b8(0x125)]();}[_0x531bb6(0xb0)](){const _0x2e2f0e=_0x531bb6,_0x269f9d=this[_0x2e2f0e(0xdf)][_0x2e2f0e(0xe9)]>0x0;this[_0x2e2f0e(0xa8)]?.[_0x2e2f0e(0x123)]&&(this[_0x2e2f0e(0xa8)][_0x2e2f0e(0x123)][_0x2e2f0e(0xc3)][_0x2e2f0e(0xf3)]=_0x269f9d?'':_0x2e2f0e(0x134));}[_0x531bb6(0xeb)](){const _0x187ec7=_0x531bb6;this[_0x187ec7(0xa8)]?.[_0x187ec7(0xd7)]&&this[_0x187ec7(0xef)]?.[_0x187ec7(0xfb)]&&this[_0x187ec7(0xa8)][_0x187ec7(0x123)]&&this[_0x187ec7(0xef)][_0x187ec7(0x10d)]({'target':this[_0x187ec7(0xa8)][_0x187ec7(0x123)],'limiter':document[_0x187ec7(0xde)](_0x187ec7(0xc5))});}[_0x531bb6(0x113)](_0x4b99f5){const _0x215e6f=_0x531bb6,_0x5dab0c=this[_0x215e6f(0xd6)]?.[_0x215e6f(0xd4)][_0x215e6f(0x116)]()||_0x215e6f(0xd8),_0x692b90=this[_0x215e6f(0xd6)]?.[_0x215e6f(0xf6)];if(_0x692b90){const _0x1c936d=_0x692b90[0x0]||'',_0x3dcbbf=_0x4b99f5[_0x215e6f(0xde)]('.'+_0x1c936d),_0xdb5773=_0x4b99f5[_0x215e6f(0xde)](_0x5dab0c);return _0x3dcbbf||_0xdb5773||_0x4b99f5;}return _0x4b99f5[_0x215e6f(0xde)](_0x5dab0c)||_0x4b99f5;}[_0x531bb6(0xf2)](){const _0x90623c=_0x531bb6,_0x2063ab=this[_0x90623c(0xa6)]?.[_0x90623c(0x123)]||this[_0x90623c(0xd6)];if(!_0x2063ab)return an;const _0x319ddf=window[_0x90623c(0x11e)](_0x2063ab)[_0x90623c(0xb2)];if(_0x90623c(0xb7)===_0x319ddf||_0x90623c(0x118)===_0x319ddf||!_0x319ddf){const _0x1c0080=_0x2063ab[_0x90623c(0xff)];if(_0x1c0080){const _0x37f760=window[_0x90623c(0x11e)](_0x1c0080);return _0x90623c(0xb7)!==_0x37f760[_0x90623c(0xb2)]?_0x37f760[_0x90623c(0xb2)]:an;}return an;}return _0x319ddf;}[_0x531bb6(0xec)](_0x20b20a,_0x2b3698){const _0x554271=_0x531bb6;this[_0x554271(0x119)][_0x554271(0xf5)][_0x554271(0xbf)]&&_0x20b20a[_0x554271(0xf6)][_0x554271(0xf7)](this[_0x554271(0x119)][_0x554271(0xf5)][_0x554271(0xbf)]),_0x20b20a[_0x554271(0xc3)][_0x554271(0xb2)]=_0x2b3698,_0x20b20a[_0x554271(0xc3)][_0x554271(0xa5)]=_0x554271(0xdd),_0x20b20a[_0x554271(0xc3)][_0x554271(0xb9)]=_0x554271(0xb5),_0x20b20a[_0x554271(0xc3)][_0x554271(0xe7)]=_0x554271(0xb5),_0x20b20a[_0x554271(0xc3)][_0x554271(0x12b)]='0',_0x20b20a[_0x554271(0xc3)][_0x554271(0x127)]=_0x554271(0x134),_0x20b20a[_0x554271(0xc3)][_0x554271(0xfc)]='-1',_0x20b20a[_0x554271(0xc3)][_0x554271(0x106)]=_0x554271(0x100),_0x20b20a[_0x554271(0xc3)][_0x554271(0xf3)]=_0x554271(0xae),_0x20b20a[_0x554271(0xc3)][_0x554271(0xd3)]=_0x554271(0xb1);}[_0x531bb6(0x10f)](_0x37b82e){const _0x29bac8=_0x531bb6;_0x37b82e[_0x29bac8(0x11a)](({element:_0x58d3eb,originalDisplay:_0x264baa,originalVisibility:_0x3691e8})=>{const _0x4df514=_0x29bac8;_0x58d3eb[_0x4df514(0xc3)][_0x4df514(0xf3)]=_0x264baa,_0x58d3eb[_0x4df514(0xc3)][_0x4df514(0x106)]=_0x3691e8;});}[_0x531bb6(0xf4)](_0x2082e7){const _0x10877a=_0x531bb6,_0x5b773e=[];let _0xf6456e=_0x2082e7;for(;_0xf6456e&&_0xf6456e!==document[_0x10877a(0xc0)];){const _0x15aa46=window[_0x10877a(0x11e)](_0xf6456e);_0x10877a(0x134)!==_0x15aa46[_0x10877a(0xf3)]&&_0x10877a(0x12d)!==_0x15aa46[_0x10877a(0x106)]||(_0x5b773e[_0x10877a(0xba)]({'element':_0xf6456e,'originalDisplay':_0xf6456e[_0x10877a(0xc3)][_0x10877a(0xf3)],'originalVisibility':_0xf6456e[_0x10877a(0xc3)][_0x10877a(0x106)]}),_0xf6456e[_0x10877a(0xc3)][_0x10877a(0xf3)]=_0x10877a(0xbc),_0xf6456e[_0x10877a(0xc3)][_0x10877a(0x106)]=_0x10877a(0x121)),_0xf6456e=_0xf6456e[_0x10877a(0xff)];}return _0x5b773e;}[_0x531bb6(0xda)](){const _0x3692c3=_0x531bb6;let _0x14e97f,_0x380628;return this[_0x3692c3(0xa6)]?.[_0x3692c3(0x123)]?(_0x14e97f=this[_0x3692c3(0xa6)][_0x3692c3(0x123)][_0x3692c3(0xbe)](!0x0),_0x380628=this[_0x3692c3(0x113)](_0x14e97f)):(_0x14e97f=document[_0x3692c3(0xa7)](_0x3692c3(0xd8)),_0x380628=_0x14e97f),{'calculationContainer':_0x14e97f,'targetContainer':_0x380628};}[_0x531bb6(0xd1)](){const _0x49451e=_0x531bb6,{calculationContainer:_0x377b77,targetContainer:_0x323210}=this[_0x49451e(0xda)](),_0x27da70=this[_0x49451e(0xf2)]();this[_0x49451e(0xec)](_0x377b77,_0x27da70);const _0x2c5d7f=this[_0x49451e(0xa6)]?.[_0x49451e(0x123)]||this[_0x49451e(0xd6)],_0x133f50=_0x2c5d7f?.[_0x49451e(0xff)];_0x133f50?_0x133f50[_0x49451e(0xaf)](_0x377b77):document[_0x49451e(0xc0)][_0x49451e(0xaf)](_0x377b77),_0x377b77[_0x49451e(0xe0)]=_0x323210;const _0x506198=this[_0x49451e(0xf4)](_0x133f50||null);return _0x377b77[_0x49451e(0x10e)],_0x377b77[_0x49451e(0xa3)]=_0x506198,_0x377b77;}[_0x531bb6(0xc9)](_0xd4a86,_0x314beb){const _0x4d6a54=_0x531bb6,_0x21d4e8=_0xd4a86[_0x4d6a54(0xe0)]||_0xd4a86,_0x25df3b=[],{rowCount:_0x341965}=this[_0x4d6a54(0x131)](_0x21d4e8,_0x314beb);if(_0x341965<=this[_0x4d6a54(0x119)][_0x4d6a54(0x11c)])return _0x25df3b;const _0x12c5db=_0x314beb[_0x4d6a54(0xb4)]();for(;_0x12c5db[_0x4d6a54(0xe9)]>0x0;){if(this[_0x4d6a54(0xe8)](_0xd4a86,_0x21d4e8,_0x12c5db)){const _0x76d4f2=_0x314beb[_0x4d6a54(0xa2)](_0x20a3f9=>!_0x12c5db[_0x4d6a54(0xe1)](_0x20a3f9));_0x25df3b[_0x4d6a54(0xba)](..._0x76d4f2);break;}if(!_0x12c5db[_0x4d6a54(0xf8)]())break;}return _0x25df3b;}[_0x531bb6(0x131)](_0x3d67bb,_0x3c619d){const _0x3c7770=_0x531bb6;_0x3d67bb[_0x3c7770(0xfd)]='',_0x3c619d[_0x3c7770(0x11a)](_0x2d3cd8=>{const _0x3704bd=_0x3c7770;if(_0x2d3cd8[_0x3704bd(0x123)]){const _0x1b4d2a=_0x2d3cd8[_0x3704bd(0x123)][_0x3704bd(0xbe)](!0x0);_0x3d67bb[_0x3704bd(0xaf)](_0x1b4d2a);}}),_0x3d67bb[_0x3c7770(0x10e)];const _0x39c31d=_0x3d67bb[_0x3c7770(0xad)],_0x59b768=[];return Array[_0x3c7770(0xf9)](_0x39c31d)[_0x3c7770(0x11a)](_0x52a0cc=>{const _0xf32a9f=_0x3c7770,_0x5be0de=_0x52a0cc[_0xf32a9f(0x117)]()[_0xf32a9f(0xb9)];_0x59b768[_0xf32a9f(0xd0)](_0x6943e3=>Math[_0xf32a9f(0x109)](_0x6943e3-_0x5be0de)<this[_0xf32a9f(0x119)][_0xf32a9f(0xb6)])||_0x59b768[_0xf32a9f(0xba)](_0x5be0de);}),{'rowCount':_0x59b768[_0x3c7770(0xe9)]};}[_0x531bb6(0x12f)](){const _0x33cce5=_0x531bb6,_0x162be5=document[_0x33cce5(0xa7)](_0x33cce5(0xd2));return _0x162be5[_0x33cce5(0x103)]=this[_0x33cce5(0x119)][_0x33cce5(0xf5)][_0x33cce5(0x111)],this[_0x33cce5(0x119)][_0x33cce5(0xf5)][_0x33cce5(0xbd)]&&_0x162be5[_0x33cce5(0xf6)][_0x33cce5(0xf7)](this[_0x33cce5(0x119)][_0x33cce5(0xf5)][_0x33cce5(0xbd)]),_0x162be5[_0x33cce5(0xb8)]=_0x33cce5(0x130),_0x162be5;}[_0x531bb6(0xe8)](_0x2ce70b,_0x10fe93,_0x5566f2){const _0x339281=_0x531bb6;this[_0x339281(0x131)](_0x10fe93,_0x5566f2);const _0x26b75a=this[_0x339281(0x12f)]();_0x2ce70b[_0x339281(0xaf)](_0x26b75a),_0x2ce70b[_0x339281(0x10e)];const _0x675067=[..._0x10fe93[_0x339281(0xad)],_0x26b75a],_0x548345=[];_0x675067[_0x339281(0x11a)](_0x4cf0f2=>{const _0xa73fe9=_0x339281,_0x1ecd8d=_0x4cf0f2[_0xa73fe9(0x117)]()[_0xa73fe9(0xb9)];_0x548345[_0xa73fe9(0xd0)](_0x4bbcb7=>Math[_0xa73fe9(0x109)](_0x4bbcb7-_0x1ecd8d)<this[_0xa73fe9(0x119)][_0xa73fe9(0xb6)])||_0x548345[_0xa73fe9(0xba)](_0x1ecd8d);});const _0x155021=_0x548345[_0x339281(0xe9)];return _0x26b75a[_0x339281(0x122)](),_0x155021<=this[_0x339281(0x119)][_0x339281(0x11c)];}[_0x531bb6(0x101)](_0x420893,_0x2cd3f9){const _0x5e7f37=_0x531bb6;this[_0x5e7f37(0xbb)][_0x5e7f37(0x12e)](),this[_0x5e7f37(0xdf)][_0x5e7f37(0x12e)](),_0x420893[_0x5e7f37(0x11a)](_0x3c4d8a=>{const _0xe37f39=_0x5e7f37;_0x2cd3f9[_0xe37f39(0xe1)](_0x3c4d8a)?this[_0xe37f39(0xdf)][_0xe37f39(0xf7)](_0x3c4d8a):this[_0xe37f39(0xbb)][_0xe37f39(0xf7)](_0x3c4d8a);});}[_0x531bb6(0xa4)](_0x238db7){const _0x3f5dd5=_0x531bb6;if(_0x238db7>0x0&&!this[_0x3f5dd5(0xa8)]&&this[_0x3f5dd5(0xed)](),_0x238db7>0x0&&this[_0x3f5dd5(0xa8)]){const _0x1ae066=''+this[_0x3f5dd5(0x119)][_0x3f5dd5(0xf1)]+(_0x238db7<0x63?_0x238db7:'99');this[_0x3f5dd5(0xa8)][_0x3f5dd5(0xe3)]=_0x1ae066;}this[_0x3f5dd5(0x10b)](),this[_0x3f5dd5(0xb0)](),this[_0x3f5dd5(0xeb)]();}[_0x531bb6(0xce)](_0x1b101e,_0x2f29d4){const _0x286d6c=_0x531bb6;this[_0x286d6c(0x101)](_0x1b101e,_0x2f29d4),this[_0x286d6c(0xa4)](_0x2f29d4[_0x286d6c(0xe9)]);}[_0x531bb6(0x115)](){const _0x2c086a=_0x531bb6;this[_0x2c086a(0xd6)]&&_0x2c086a(0x10a)!=typeof IntersectionObserver&&(this[_0x2c086a(0x102)]=new IntersectionObserver(_0xac4d17=>{const _0x5cec98=_0x2c086a;_0xac4d17[0x0][_0x5cec98(0x108)]&&this[_0x5cec98(0xea)]&&requestAnimationFrame(()=>{const _0x40f315=_0x5cec98;this[_0x40f315(0xa1)]();});},{'threshold':0.01,'rootMargin':_0x2c086a(0x128)}),this[_0x2c086a(0x102)][_0x2c086a(0x107)](this[_0x2c086a(0xd6)]));}[_0x531bb6(0xc1)](){const _0x2e2c97=_0x531bb6;if(!this[_0x2e2c97(0xd6)])return!0x1;if(!this[_0x2e2c97(0xd6)][_0x2e2c97(0xc8)])return!0x1;const _0x1f2985=this[_0x2e2c97(0xd6)][_0x2e2c97(0x117)]();if(0x0===_0x1f2985[_0x2e2c97(0xb2)]||0x0===_0x1f2985[_0x2e2c97(0x133)])return!0x1;const _0x91d48a=window[_0x2e2c97(0x105)]||document[_0x2e2c97(0x114)][_0x2e2c97(0xdc)],_0x281be5=window[_0x2e2c97(0x135)]||document[_0x2e2c97(0x114)][_0x2e2c97(0xee)],_0x29519e=0xc8;return _0x1f2985[_0x2e2c97(0xe2)]>=-0xc8&&_0x1f2985[_0x2e2c97(0xb9)]<=_0x91d48a+_0x29519e&&_0x1f2985[_0x2e2c97(0xe5)]>=-0xc8&&_0x1f2985[_0x2e2c97(0xe7)]<=_0x281be5+_0x29519e;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x32827b=_0x3c67;(function(_0x556f23,_0x16d043){const _0x1b813a=_0x3c67,_0x1023da=_0x556f23();while(!![]){try{const _0x3eb335=-parseInt(_0x1b813a(0x81))/0x1*(-parseInt(_0x1b813a(0x90))/0x2)+parseInt(_0x1b813a(0x96))/0x3+parseInt(_0x1b813a(0x73))/0x4*(parseInt(_0x1b813a(0xa6))/0x5)+parseInt(_0x1b813a(0x99))/0x6+-parseInt(_0x1b813a(0x9a))/0x7+-parseInt(_0x1b813a(0xab))/0x8*(parseInt(_0x1b813a(0xaa))/0x9)+-parseInt(_0x1b813a(0x8b))/0xa*(parseInt(_0x1b813a(0xa5))/0xb);if(_0x3eb335===_0x16d043)break;else _0x1023da['push'](_0x1023da['shift']());}catch(_0xaaf6a2){_0x1023da['push'](_0x1023da['shift']());}}}(_0x31ba,0x344f0));import{ButtonView as _0x49bd97,IconView as _0x112c9e}from'ckeditor5/src/ui.js';import{IconClose as _0x1ee2fa,IconDocument as _0x2c8a5d,IconFileUpload as _0xa0eebb,IconLink as _0x305965,IconSelection as _0x3586eb}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x54e787}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x3dca62}from'../../../aicore/ui/aispinner.js';function _0x31ba(){const _0x62aca5=['15HTUFCP','_setupTemplate','itemType','_createRemoveButton','72pcZFuF','307128MypOKg','addEventListener','_createTemplateAttributes','animationend','_createIconView','removeEventListener','lastIndexOf','bindTemplate','execute','ck-ai-chat-context-controls__chip-tooltip','removeContextItemChip','423068polKoP','ck-ai-chat-context-chip_new-chip','length','ck-ai-chat-context-chip_wide','_createLoaderIcon','webkitAnimationEnd','selection','_createTemplateChildren','bind','small','slice','remove','setTemplate','ck-ai-chat-context-chip_document','178INMNbv','ck-ai-chat-context-chip__type-icon','locale','ck-ai-chat-context-chip__label','_createLabelElement','_isAnimationOnEnterEnabled','ck-hidden','extendTemplate','disableAnimationOnEnter','ck-ai-chat-context-chip','80090QRohEP','isLoading','set','_setupRemoveButtonEvent','tooltip','2066qkcWCU','isVisible','uiId','fire','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','content','463827DFBdih','render','readonly','975588cDljtJ','2022923cETXdk','span','classList','add','label','type','_initializeProperties','_handleAnimationEndOnce','div','element','document','11uwUbmm'];_0x31ba=function(){return _0x62aca5;};return _0x31ba();}const xn={'file':_0xa0eebb,'document':_0x2c8a5d,'web-resource':_0x305965,'text':_0xa0eebb,'selection':_0x3586eb,'mcp-tool-context':_0x2c8a5d},bn=_0x32827b(0x8a),wn=_0x32827b(0x76),Tn=_0x32827b(0x80),En=_0x32827b(0x84),fn=_0x32827b(0x82),An=_0x32827b(0x71),Cn='n';export class AIChatContextItemButtonView extends _0x49bd97{constructor(_0x4245f8,_0xfe184c,_0x1fc399,_0x547dd5,_0x331dc7=!0x1){const _0x2950d2=_0x32827b;super(_0x4245f8),this[_0x2950d2(0x86)]=_0x547dd5,this[_0x2950d2(0xa0)](_0xfe184c,_0x1fc399,_0x331dc7),this[_0x2950d2(0xa7)]();}[_0x32827b(0x97)](){const _0x49cc4a=_0x32827b;super[_0x49cc4a(0x97)](),this[_0x49cc4a(0x86)]&&this[_0x49cc4a(0xa3)]&&(this[_0x49cc4a(0xa3)][_0x49cc4a(0x9c)][_0x49cc4a(0x9d)](_0x49cc4a(0x74)),this[_0x49cc4a(0xa1)](this[_0x49cc4a(0xa3)],()=>{const _0x2ae48c=_0x49cc4a;this[_0x2ae48c(0xa3)]&&this[_0x2ae48c(0xa3)][_0x2ae48c(0x9c)][_0x2ae48c(0x7e)](_0x2ae48c(0x74));}));}[_0x32827b(0x89)](){const _0x2fc4b9=_0x32827b;this[_0x2fc4b9(0x86)]=!0x1,this[_0x2fc4b9(0xa3)]&&this[_0x2fc4b9(0xa3)][_0x2fc4b9(0x9c)][_0x2fc4b9(0x7e)](_0x2fc4b9(0x74));}[_0x32827b(0xa0)](_0x2d985c,_0x53cf04,_0x4e55e2){const _0x2adff5=_0x32827b;this[_0x2adff5(0x8d)](_0x2adff5(0x9e),_0x2d985c[_0x2adff5(0x9e)]),this[_0x2adff5(0x8d)](_0x2adff5(0x8f),!0x0),this[_0x2adff5(0x8d)](_0x2adff5(0xa8),_0x2d985c[_0x2adff5(0x9f)]),this[_0x2adff5(0x8d)]('id',_0x2d985c[_0x2adff5(0x92)]),this[_0x2adff5(0x8d)](_0x2adff5(0x98),_0x53cf04),this[_0x2adff5(0x8d)](_0x2adff5(0x8c),_0x4e55e2);}[_0x32827b(0xa7)](){const _0x12aa75=_0x32827b,_0x527a1d=this[_0x12aa75(0xaf)](),_0x3c2df9=this[_0x12aa75(0xa9)](),_0xf47981=this[_0x12aa75(0x6f)];this[_0x12aa75(0x7f)]({'tag':_0x12aa75(0xa2),'attributes':this[_0x12aa75(0xad)](_0xf47981),'children':this[_0x12aa75(0x7a)](_0x527a1d,_0x3c2df9,_0xf47981)});}[_0x32827b(0xad)](_0x27d220){const _0x27912d=_0x32827b;return{'class':[bn,_0x27d220['if'](_0x27912d(0xa8),Tn,_0x237b97=>_0x27912d(0xa4)==_0x237b97),_0x27d220['if'](_0x27912d(0xa8),wn,_0x8dbc0a=>_0x27912d(0x79)==_0x8dbc0a)],'data-cke-tooltip-text':_0x27d220['to'](_0x27912d(0x9e),In),'data-cke-tooltip-position':Cn,'data-cke-tooltip-class':An};}[_0x32827b(0x7a)](_0x36e067,_0x4afd0c,_0x5769d6){const _0x32e623=_0x32827b,_0x18898f=this[_0x32e623(0x85)](_0x5769d6),_0x329edf=this[_0x32e623(0x77)]();return this[_0x32e623(0x98)]?[_0x36e067,_0x18898f]:[_0x36e067,_0x329edf,_0x18898f,_0x4afd0c];}[_0x32827b(0x85)](_0x4efe65){const _0x311bbc=_0x32827b;return{'tag':_0x311bbc(0x9b),'attributes':{'class':En},'children':[{'text':_0x4efe65['to'](_0x311bbc(0x9e))}]};}[_0x32827b(0xa9)](){const _0x40219d=_0x32827b,_0x59bfaf=new _0x49bd97(this[_0x40219d(0x83)]);return _0x59bfaf[_0x40219d(0x8d)]({'label':_0x54e787(this[_0x40219d(0x83)],_0x40219d(0x94)),'icon':_0x1ee2fa}),this[_0x40219d(0x8e)](_0x59bfaf),_0x59bfaf;}[_0x32827b(0x8e)](_0x14714f){const _0x1a6c78=_0x32827b;_0x14714f['on'](_0x1a6c78(0x70),()=>{const _0x417b5d=_0x1a6c78;this[_0x417b5d(0x93)](_0x417b5d(0x72),this['id']);});}[_0x32827b(0xaf)](){const _0x79245=_0x32827b,_0x80579a=this[_0x79245(0x6f)],_0x37d2d4=new _0x112c9e();return _0x37d2d4[_0x79245(0x95)]=xn[this[_0x79245(0xa8)]],_0x37d2d4[_0x79245(0x88)]({'attributes':{'class':[fn,_0x80579a['if'](_0x79245(0x8c),_0x79245(0x87),_0x43f6f9=>_0x43f6f9)]}}),_0x37d2d4;}[_0x32827b(0xa1)](_0x5ca764,_0x5c199d){const _0x3a147a=_0x32827b;if(!_0x5ca764)return;const _0x101a6a=()=>{const _0x4725a1=_0x3c67;_0x5c199d(),_0x5ca764[_0x4725a1(0x6d)](_0x4725a1(0xae),_0x101a6a),_0x5ca764[_0x4725a1(0x6d)](_0x4725a1(0x78),_0x101a6a);};_0x5ca764[_0x3a147a(0xac)](_0x3a147a(0xae),_0x101a6a),_0x5ca764[_0x3a147a(0xac)](_0x3a147a(0x78),_0x101a6a);}[_0x32827b(0x77)](){const _0x5b7f61=_0x32827b,_0x254b45=new _0x3dca62(_0x5b7f61(0x7c));return _0x254b45[_0x5b7f61(0x7b)](_0x5b7f61(0x91))['to'](this,_0x5b7f61(0x8c),_0x175910=>_0x175910),_0x254b45;}}function _0x3c67(_0xb3a4ad,_0x2a4a62){const _0x31ba90=_0x31ba();return _0x3c67=function(_0x3c678c,_0x2dda8e){_0x3c678c=_0x3c678c-0x6d;let _0xc73824=_0x31ba90[_0x3c678c];return _0xc73824;},_0x3c67(_0xb3a4ad,_0x2a4a62);}function In(_0x6fa06a){const _0x855c49=_0x32827b;if(!_0x6fa06a)return _0x6fa06a;if(_0x6fa06a[_0x855c49(0x75)]<=0x78)return _0x6fa06a;const _0x1c7107=_0x6fa06a[_0x855c49(0x7d)](0x0,0x78),_0x4114d5=_0x1c7107[_0x855c49(0x6e)]('\x20');return(_0x4114d5>0x0?_0x1c7107[_0x855c49(0x7d)](0x0,_0x4114d5):_0x1c7107)+'…';}
23
+ const _0x5bf796=_0x4a1d;(function(_0x2b166e,_0xb08beb){const _0x16dbac=_0x4a1d,_0x151a29=_0x2b166e();while(!![]){try{const _0x6e6148=-parseInt(_0x16dbac(0x1a5))/0x1+-parseInt(_0x16dbac(0x1b1))/0x2+parseInt(_0x16dbac(0x180))/0x3+parseInt(_0x16dbac(0x198))/0x4+parseInt(_0x16dbac(0x190))/0x5*(-parseInt(_0x16dbac(0x18a))/0x6)+-parseInt(_0x16dbac(0x1a7))/0x7+parseInt(_0x16dbac(0x188))/0x8;if(_0x6e6148===_0xb08beb)break;else _0x151a29['push'](_0x151a29['shift']());}catch(_0x25ffa6){_0x151a29['push'](_0x151a29['shift']());}}}(_0x4e65,0x27817));import{ButtonView as _0x3e2e85,IconView as _0x237bf4}from'ckeditor5/src/ui.js';function _0x4e65(){const _0x1b51b9=['84Hjaimz','removeContextItemChip','document','selection','animationend','add','75465quOZRC','_createTemplateChildren','webkitAnimationEnd','element','isLoading','slice','_isAnimationOnEnterEnabled','isVisible','79332Lulwjw','small','ck-ai-chat-context-chip_new-chip','bind','itemType','_initializeProperties','_createTemplateAttributes','type','_createRemoveButton','_createLabelElement','ck-ai-chat-context-controls__chip-tooltip','locale','fire','287812PbGtmV','disableAnimationOnEnter','382515DHahAZ','setTemplate','_setupRemoveButtonEvent','removeEventListener','ck-ai-chat-context-chip','div','content','ck-ai-chat-context-chip_wide','remove','ck-ai-chat-context-chip__label','523026nLJqBO','uiId','readonly','classList','_handleAnimationEndOnce','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','span','length','render','tooltip','extendTemplate','addEventListener','_setupTemplate','set','execute','66171NnSWNX','lastIndexOf','ck-hidden','bindTemplate','ck-ai-chat-context-chip__type-icon','label','_createLoaderIcon','_createIconView','7481576sldKYT','ck-ai-chat-context-chip_document'];_0x4e65=function(){return _0x1b51b9;};return _0x4e65();}function _0x4a1d(_0x5db476,_0x3aa607){const _0x4e65f6=_0x4e65();return _0x4a1d=function(_0x4a1d11,_0x295e1a){_0x4a1d11=_0x4a1d11-0x17a;let _0x39c56e=_0x4e65f6[_0x4a1d11];return _0x39c56e;},_0x4a1d(_0x5db476,_0x3aa607);}import{IconClose as _0x333650,IconDocument as _0xe2a470,IconFileUpload as _0x59b510,IconLink as _0xf284ef,IconSelection as _0x2233a6}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x517ead}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x5ef3d7}from'../../../aicore/ui/aispinner.js';const xn={'file':_0x59b510,'document':_0xe2a470,'web-resource':_0xf284ef,'text':_0x59b510,'selection':_0x2233a6,'mcp-tool-context':_0xe2a470},bn=_0x5bf796(0x1ab),wn=_0x5bf796(0x1ae),Tn=_0x5bf796(0x189),En=_0x5bf796(0x1b0),fn=_0x5bf796(0x184),An=_0x5bf796(0x1a2),Cn='n';export class AIChatContextItemButtonView extends _0x3e2e85{constructor(_0x378e9d,_0x4ba9d0,_0x36f70e,_0x40b3e1,_0x2a5177=!0x1){const _0x231e44=_0x5bf796;super(_0x378e9d),this[_0x231e44(0x196)]=_0x40b3e1,this[_0x231e44(0x19d)](_0x4ba9d0,_0x36f70e,_0x2a5177),this[_0x231e44(0x17d)]();}[_0x5bf796(0x1b9)](){const _0x50d968=_0x5bf796;super[_0x50d968(0x1b9)](),this[_0x50d968(0x196)]&&this[_0x50d968(0x193)]&&(this[_0x50d968(0x193)][_0x50d968(0x1b4)][_0x50d968(0x18f)](_0x50d968(0x19a)),this[_0x50d968(0x1b5)](this[_0x50d968(0x193)],()=>{const _0x517d75=_0x50d968;this[_0x517d75(0x193)]&&this[_0x517d75(0x193)][_0x517d75(0x1b4)][_0x517d75(0x1af)](_0x517d75(0x19a));}));}[_0x5bf796(0x1a6)](){const _0x9a92d4=_0x5bf796;this[_0x9a92d4(0x196)]=!0x1,this[_0x9a92d4(0x193)]&&this[_0x9a92d4(0x193)][_0x9a92d4(0x1b4)][_0x9a92d4(0x1af)](_0x9a92d4(0x19a));}[_0x5bf796(0x19d)](_0x3d290c,_0x3b9173,_0x111d50){const _0x46916d=_0x5bf796;this[_0x46916d(0x17e)](_0x46916d(0x185),_0x3d290c[_0x46916d(0x185)]),this[_0x46916d(0x17e)](_0x46916d(0x17a),!0x0),this[_0x46916d(0x17e)](_0x46916d(0x19c),_0x3d290c[_0x46916d(0x19f)]),this[_0x46916d(0x17e)]('id',_0x3d290c[_0x46916d(0x1b2)]),this[_0x46916d(0x17e)](_0x46916d(0x1b3),_0x3b9173),this[_0x46916d(0x17e)](_0x46916d(0x194),_0x111d50);}[_0x5bf796(0x17d)](){const _0x497a03=_0x5bf796,_0x12a98c=this[_0x497a03(0x187)](),_0x38e964=this[_0x497a03(0x1a0)](),_0x10d709=this[_0x497a03(0x183)];this[_0x497a03(0x1a8)]({'tag':_0x497a03(0x1ac),'attributes':this[_0x497a03(0x19e)](_0x10d709),'children':this[_0x497a03(0x191)](_0x12a98c,_0x38e964,_0x10d709)});}[_0x5bf796(0x19e)](_0x561f5a){const _0x2db46c=_0x5bf796;return{'class':[bn,_0x561f5a['if'](_0x2db46c(0x19c),Tn,_0x2d9b2a=>_0x2db46c(0x18c)==_0x2d9b2a),_0x561f5a['if'](_0x2db46c(0x19c),wn,_0x598b1d=>_0x2db46c(0x18d)==_0x598b1d)],'data-cke-tooltip-text':_0x561f5a['to'](_0x2db46c(0x185),In),'data-cke-tooltip-position':Cn,'data-cke-tooltip-class':An};}[_0x5bf796(0x191)](_0x369a33,_0x596766,_0x3e5d4c){const _0x374edb=_0x5bf796,_0x15a9ad=this[_0x374edb(0x1a1)](_0x3e5d4c),_0x3b8f44=this[_0x374edb(0x186)]();return this[_0x374edb(0x1b3)]?[_0x369a33,_0x15a9ad]:[_0x369a33,_0x3b8f44,_0x15a9ad,_0x596766];}[_0x5bf796(0x1a1)](_0x5a15eb){const _0x43b145=_0x5bf796;return{'tag':_0x43b145(0x1b7),'attributes':{'class':En},'children':[{'text':_0x5a15eb['to'](_0x43b145(0x185))}]};}[_0x5bf796(0x1a0)](){const _0x4461bb=_0x5bf796,_0x1b2d2c=new _0x3e2e85(this[_0x4461bb(0x1a3)]);return _0x1b2d2c[_0x4461bb(0x17e)]({'label':_0x517ead(this[_0x4461bb(0x1a3)],_0x4461bb(0x1b6)),'icon':_0x333650}),this[_0x4461bb(0x1a9)](_0x1b2d2c),_0x1b2d2c;}[_0x5bf796(0x1a9)](_0x1ec31b){const _0x5138f2=_0x5bf796;_0x1ec31b['on'](_0x5138f2(0x17f),()=>{const _0x149c5e=_0x5138f2;this[_0x149c5e(0x1a4)](_0x149c5e(0x18b),this['id']);});}[_0x5bf796(0x187)](){const _0xa584b7=_0x5bf796,_0x45ecb6=this[_0xa584b7(0x183)],_0x46bf60=new _0x237bf4();return _0x46bf60[_0xa584b7(0x1ad)]=xn[this[_0xa584b7(0x19c)]],_0x46bf60[_0xa584b7(0x17b)]({'attributes':{'class':[fn,_0x45ecb6['if'](_0xa584b7(0x194),_0xa584b7(0x182),_0x1c6219=>_0x1c6219)]}}),_0x46bf60;}[_0x5bf796(0x1b5)](_0x51d95c,_0x499f98){const _0x583144=_0x5bf796;if(!_0x51d95c)return;const _0x32391c=()=>{const _0x6a76a0=_0x4a1d;_0x499f98(),_0x51d95c[_0x6a76a0(0x1aa)](_0x6a76a0(0x18e),_0x32391c),_0x51d95c[_0x6a76a0(0x1aa)](_0x6a76a0(0x192),_0x32391c);};_0x51d95c[_0x583144(0x17c)](_0x583144(0x18e),_0x32391c),_0x51d95c[_0x583144(0x17c)](_0x583144(0x192),_0x32391c);}[_0x5bf796(0x186)](){const _0x273b0b=_0x5bf796,_0x2c053c=new _0x5ef3d7(_0x273b0b(0x199));return _0x2c053c[_0x273b0b(0x19b)](_0x273b0b(0x197))['to'](this,_0x273b0b(0x194),_0x243176=>_0x243176),_0x2c053c;}}function In(_0x1a2386){const _0x424631=_0x5bf796;if(!_0x1a2386)return _0x1a2386;if(_0x1a2386[_0x424631(0x1b8)]<=0x78)return _0x1a2386;const _0x33382d=_0x1a2386[_0x424631(0x195)](0x0,0x78),_0x17fa17=_0x33382d[_0x424631(0x181)]('\x20');return(_0x17fa17>0x0?_0x33382d[_0x424631(0x195)](0x0,_0x17fa17):_0x33382d)+'…';}