@ckeditor/ckeditor5-ai 47.7.0-alpha.3 → 47.7.0-alpha.4

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 _0x3a09(){const _0x2f24c9=['ai-chat-conversation-start-failed','conversationId','start','getCurrentDocumentContext','indexOf','getConversation','role','getPendingContextItems','addToConversationContext','push','_processMessagesToInteractions','9NYdRKX','fetchConversation','addSelectionToContext','ai-chat-conversation-set-model-not-available','setModel','setReasoning','ai-chat-handle-user-interaction-start-failed','length','ai-chat-handle-user-interaction-already-in-progress','modelSelected','addToolItemToContext','group','toggleWebSearch','setWebSearch','prompt','chatModels','message','options','text','contextItems','isFromHistory','ai-chat-handle-user-conversation-not-initialized','getCapabilitiesConfig','model','setConversationTitle','init','6HGQPEV','webSearch','hasOwn','addCurrentDocumentToContext','addUrlToContext','ai-chat-conversation-init-failed','isCurrentDocumentInContext','destroy','createInteraction','_handleToolResultData','find','addResourceToContext','getAll','4483905WRZxTg','reasoning','ai-chat-conversation-init-from-id-failed','code','addFilesToContext','attributes','modification','capabilities','stop','updateCurrentDocument','delegate','content','connector','isAvailable','_extractContextItems','selectedModel','loadSourceResources','getEditor','stack','handleUserInteraction','ai-chat-conversation-set-model-null','1028796ZuNLjY','interactionCreated','sessionId','startConversation','8YgIYTZ','conversationStarted','2410000eZheEZ','reset','lastInteraction','chatCapabilities','24NTsfRS','set','selectedModelId','toLowerCase','removeInteraction','parse','conversationInitialized','get','updateCurrentDocumentInContext','getDocumentContext','chatContext','assistant','interactions','splice','3199149bZDaxs','sources','removeSelectionFromContext','removeFromContext','8096924QxrCnJ','user','title','isSelectionInContext','fetchConversationMessages','appendContent','getAvailableModels','currentInteraction','createReply','currentReply','getModel','5537329YBFLTm','error','getMessages','load','populateFromMessage','6022idSNma','327WLBind','isCurrentDocumentInConversation','mcp-tool-result','getInteraction','toolName','ai-chat-conversation-already-started','isStarted','url','ai-chat-conversation-start-no-model-selected','fire','type','toggleReasoning'];_0x3a09=function(){return _0x2f24c9;};return _0x3a09();}function _0x21c6(_0x328ebf,_0x24b58f){const _0x3a094e=_0x3a09();return _0x21c6=function(_0x21c6bb,_0x3f4581){_0x21c6bb=_0x21c6bb-0x10c;let _0x3ff245=_0x3a094e[_0x21c6bb];return _0x3ff245;},_0x21c6(_0x328ebf,_0x24b58f);}const _0xf624fd=_0x21c6;(function(_0xc0c540,_0x414283){const _0x39763c=_0x21c6,_0x4051e2=_0xc0c540();while(!![]){try{const _0x13dd9f=-parseInt(_0x39763c(0x12c))/0x1*(parseInt(_0x39763c(0x12b))/0x2)+-parseInt(_0x39763c(0x143))/0x3*(-parseInt(_0x39763c(0x17f))/0x4)+-parseInt(_0x39763c(0x16a))/0x5*(parseInt(_0x39763c(0x15d))/0x6)+parseInt(_0x39763c(0x126))/0x7*(parseInt(_0x39763c(0x183))/0x8)+-parseInt(_0x39763c(0x117))/0x9+-parseInt(_0x39763c(0x185))/0xa+-parseInt(_0x39763c(0x11b))/0xb*(-parseInt(_0x39763c(0x189))/0xc);if(_0x13dd9f===_0x414283)break;else _0x4051e2['push'](_0x4051e2['shift']());}catch(_0x2fb810){_0x4051e2['push'](_0x4051e2['shift']());}}}(_0x3a09,0x87fad));import{CKEditorError as _0x5af740,EmitterMixin as _0x28ced1,logWarning as _0x13eb82}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x5ce25a}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x1fbda6,AI_CONTEXT_MODEL_EVENT_NAMES as _0x1e1980}from'./aichatcontext.js';import{AICapabilities as _0x36e433,CAPABILITIES_MODEL_EVENT_NAMES as _0x18bf33}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x29da5e}from'./aichatinteraction.js';import{errorsMap as _0x3b9821}from'../../errorsmap.js';export class AIChatConversation extends _0x28ced1(){['id'];[_0xf624fd(0x132)]=!0x1;[_0xf624fd(0x157)];[_0xf624fd(0x115)]=[];[_0xf624fd(0x122)];[_0xf624fd(0x179)];[_0xf624fd(0x176)];[_0xf624fd(0x154)];constructor(_0xad5c8f){const _0x358085=_0xf624fd;super(),this[_0x358085(0x154)]=_0xad5c8f,this[_0x358085(0x176)]=_0xad5c8f[_0x358085(0x176)],this[_0x358085(0x152)]=_0xad5c8f[_0x358085(0x152)],this['id']=_0xad5c8f[_0x358085(0x139)],this[_0x358085(0x157)]=_0xad5c8f[_0x358085(0x157)];}async[_0xf624fd(0x15c)](_0x1bda07){const _0x1b0ff6=_0xf624fd;try{this[_0x1b0ff6(0x113)]=new _0x1fbda6({'connector':this[_0x1b0ff6(0x176)],'config':_0x1bda07,'ownerId':this['id']}),this[_0x1b0ff6(0x113)][_0x1b0ff6(0x174)](..._0x1e1980)['to'](this),this[_0x1b0ff6(0x113)][_0x1b0ff6(0x15c)](),this[_0x1b0ff6(0x188)]=new _0x36e433(),this[_0x1b0ff6(0x188)][_0x1b0ff6(0x174)](..._0x18bf33)['to'](this),this[_0x1b0ff6(0x188)][_0x1b0ff6(0x15c)]();const _0x43f0a4=await this[_0x1b0ff6(0x152)][_0x1b0ff6(0x121)]();this[_0x1b0ff6(0x135)](_0x1b0ff6(0x10f),{'availableModels':_0x43f0a4});const _0x2a93c7=await this[_0x1b0ff6(0x152)][_0x1b0ff6(0x125)](this[_0x1b0ff6(0x154)][_0x1b0ff6(0x18b)]);_0x2a93c7&&await this[_0x1b0ff6(0x147)](_0x2a93c7);}catch(_0x265333){const _0x1e89be=new _0x5af740(_0x1b0ff6(0x162),null,{'message':_0x265333[_0x1b0ff6(0x153)]||_0x265333});_0x1e89be[_0x1b0ff6(0x17c)]=_0x265333[_0x1b0ff6(0x17c)],this[_0x1b0ff6(0x135)](_0x1b0ff6(0x127),{'error':_0x1e89be});}}async[_0xf624fd(0x13a)](){const _0x24e6d2=_0xf624fd;if(this[_0x24e6d2(0x132)])throw new _0x5af740(_0x24e6d2(0x131),null,{'conversation':this});if(!this[_0x24e6d2(0x179)])throw new _0x5af740(_0x24e6d2(0x134),null,{'conversation':this});try{const {id:_0x45a51b}=await this[_0x24e6d2(0x176)][_0x24e6d2(0x182)](this['id'],this[_0x24e6d2(0x154)][_0x24e6d2(0x14e)])[_0x24e6d2(0x13d)]();this['id']=_0x45a51b,this[_0x24e6d2(0x132)]=!0x0,this[_0x24e6d2(0x135)](_0x24e6d2(0x184),{'conversationId':this['id'],'selectedModel':this[_0x24e6d2(0x179)]});}catch(_0x2a7257){const _0x3d4db3=new _0x5af740(_0x24e6d2(0x138),null,{'message':_0x2a7257[_0x24e6d2(0x153)],'conversationId':this['id']});throw _0x3d4db3[_0x24e6d2(0x17c)]=_0x2a7257[_0x24e6d2(0x17c)],this[_0x24e6d2(0x135)](_0x24e6d2(0x127),{'error':_0x3d4db3}),_0x3d4db3;}}async[_0xf624fd(0x129)](_0x1b4380,_0x613fcc){const _0xb5f2a1=_0xf624fd;try{const _0x662ff=await this[_0xb5f2a1(0x176)][_0xb5f2a1(0x144)](_0x1b4380)[_0xb5f2a1(0x13d)](),_0x594d6e=await this[_0xb5f2a1(0x176)][_0xb5f2a1(0x11f)](_0x1b4380)[_0xb5f2a1(0x128)](),_0x3336e6=_0x594d6e[0x0][_0xb5f2a1(0x15a)];this[_0xb5f2a1(0x132)]=!0x0,this['id']=_0x662ff['id'],_0xb5f2a1(0x11d)in _0x662ff?this[_0xb5f2a1(0x135)](_0xb5f2a1(0x15b),_0x662ff[_0xb5f2a1(0x11d)],!0x0):this[_0xb5f2a1(0x135)](_0xb5f2a1(0x15b),'',!0x0);const _0x24c732=(await this[_0xb5f2a1(0x152)][_0xb5f2a1(0x169)]())[_0xb5f2a1(0x167)](_0x4d74c8=>_0x4d74c8['id'][_0xb5f2a1(0x10c)]()===_0x3336e6[_0xb5f2a1(0x10c)]());return this[_0xb5f2a1(0x179)]=_0x24c732,this[_0xb5f2a1(0x135)](_0xb5f2a1(0x14c),{'selectedModel':_0x24c732,'isDisabled':!0x0}),await this[_0xb5f2a1(0x142)](_0x594d6e,_0x613fcc,_0x3336e6),this[_0xb5f2a1(0x122)]=void 0x0,this;}catch(_0x4142e3){const _0x24746e=new _0x5af740(_0xb5f2a1(0x16c),null,{'message':_0x4142e3[_0xb5f2a1(0x153)],'conversationId':_0x1b4380});throw _0x24746e[_0xb5f2a1(0x17c)]=_0x4142e3[_0xb5f2a1(0x17c)],this[_0xb5f2a1(0x135)](_0xb5f2a1(0x127),{'error':_0x24746e}),_0x24746e;}}async[_0xf624fd(0x142)](_0x273eaa,_0x21ec08,_0x3b60fd){const _0x2c7550=_0xf624fd;let _0x23a1e2;for(const _0x213269 of _0x273eaa)if(_0x2c7550(0x11c)===_0x213269[_0x2c7550(0x13e)]){const _0x54358a=await this[_0x2c7550(0x178)](_0x213269),_0x28de6d={'isReasoningEnabled':Object[_0x2c7550(0x15f)](_0x213269[_0x2c7550(0x171)],_0x2c7550(0x16b)),'isWebSearchEnabled':Object[_0x2c7550(0x15f)](_0x213269[_0x2c7550(0x171)],_0x2c7550(0x15e))};_0x23a1e2=this[_0x2c7550(0x165)]({'userMessage':_0x213269[_0x2c7550(0x151)],'contextItems':_0x54358a,'capabilities':_0x28de6d,'modelId':_0x3b60fd,'attributes':_0x213269[_0x2c7550(0x16f)]}),this[_0x2c7550(0x122)]=_0x23a1e2,this[_0x2c7550(0x113)][_0x2c7550(0x140)](this[_0x2c7550(0x122)][_0x2c7550(0x156)]);}else{if(_0x2c7550(0x114)===_0x213269[_0x2c7550(0x13e)]&&_0x23a1e2){const _0xde25a6=[];for(const _0x301025 of _0x213269[_0x2c7550(0x175)])switch(_0x301025[_0x2c7550(0x136)]){case _0x2c7550(0x155):case _0x2c7550(0x170):{const _0x4d964e=_0x23a1e2[_0x2c7550(0x112)]()?.[_0x2c7550(0x181)]!==_0x21ec08;_0x23a1e2[_0x2c7550(0x124)]=_0x23a1e2[_0x2c7550(0x123)]({'type':_0x301025[_0x2c7550(0x136)],'isDone':!0x0,'interactionId':_0x23a1e2['id'],'areActionsDisabled':_0x4d964e}),_0x23a1e2[_0x2c7550(0x124)][_0x2c7550(0x120)](_0x301025[_0x2c7550(0x175)]),_0xde25a6[_0x2c7550(0x14a)]>0x0&&(_0x23a1e2[_0x2c7550(0x124)][_0x2c7550(0x118)]=_0xde25a6[_0x2c7550(0x116)](0x0));break;}case _0x2c7550(0x133):_0xde25a6[_0x2c7550(0x141)](_0x301025);break;case _0x2c7550(0x12e):{const {data:_0xfd882d,attributes:_0x1d190d}=JSON[_0x2c7550(0x10e)](_0x301025[_0x2c7550(0x175)]);_0x23a1e2[_0x2c7550(0x166)]({'toolName':_0x301025[_0x2c7550(0x130)],'data':_0xfd882d,'attributes':_0x1d190d});break;}}}}}async[_0xf624fd(0x178)](_0xc7bb67){const _0x5c0d0c=_0xf624fd,_0x35cb4f=new Map();if(!_0xc7bb67[_0x5c0d0c(0x175)])return _0x35cb4f;for(const _0x1060da of _0xc7bb67[_0x5c0d0c(0x175)]){const _0x79f866=await this[_0x5c0d0c(0x113)][_0x5c0d0c(0x12a)](_0x1060da);_0x79f866&&_0x35cb4f[_0x5c0d0c(0x18a)](_0x79f866['id'],_0x79f866);}return _0x35cb4f;}async[_0xf624fd(0x17d)]({userMessage:_0x573aff,attributes:_0x586d62}){const _0x38aad6=_0xf624fd;if(!this[_0x38aad6(0x132)])throw new _0x5af740(_0x38aad6(0x158),null,{'conversation':this});if(this[_0x38aad6(0x122)])throw new _0x5af740(_0x38aad6(0x14b),null,{'conversation':this});try{const _0x13ee14=this[_0x38aad6(0x113)][_0x38aad6(0x13f)](),_0x31f7ab=this[_0x38aad6(0x188)][_0x38aad6(0x159)](),_0x337143=this[_0x38aad6(0x179)]['id'];this[_0x38aad6(0x122)]=this[_0x38aad6(0x165)]({'userMessage':_0x573aff,'contextItems':_0x13ee14,'capabilities':_0x31f7ab,'modelId':_0x337143,'attributes':_0x586d62}),await this[_0x38aad6(0x122)][_0x38aad6(0x13a)](),this[_0x38aad6(0x113)][_0x38aad6(0x140)](this[_0x38aad6(0x122)][_0x38aad6(0x156)]);}catch(_0x5b9b81){if(_0x5b9b81 instanceof _0x5af740)this[_0x38aad6(0x135)](_0x38aad6(0x127),{'interactionId':this[_0x38aad6(0x122)]?this[_0x38aad6(0x122)]['id']:void 0x0,'error':_0x5b9b81});else{const _0x4815ab=_0x3b9821[_0x38aad6(0x110)](_0x5b9b81[_0x38aad6(0x16d)])||_0x38aad6(0x149);this[_0x38aad6(0x135)](_0x38aad6(0x127),{'interactionId':this[_0x38aad6(0x122)]?this[_0x38aad6(0x122)]['id']:void 0x0,'error':new _0x5af740(_0x4815ab,null,{'error':_0x5b9b81})});}}finally{this[_0x38aad6(0x122)]?.[_0x38aad6(0x172)](),this[_0x38aad6(0x122)]=void 0x0;}}[_0xf624fd(0x165)]({userMessage:_0x42200b,contextItems:_0x4ebf2b,capabilities:_0x221304,modelId:_0x53963d,attributes:_0x2233c1}){const _0x47d0ff=_0xf624fd,_0x26e746=new _0x29da5e({'userMessage':_0x42200b,'contextItems':_0x4ebf2b,'capabilities':_0x221304,'conversationId':this['id'],'connector':this[_0x47d0ff(0x176)],'editor':this[_0x47d0ff(0x154)][_0x47d0ff(0x17b)]&&this[_0x47d0ff(0x154)][_0x47d0ff(0x17b)](),'model':_0x53963d,'attributes':_0x2233c1});return _0x26e746[_0x47d0ff(0x174)](..._0x5ce25a)['to'](this),this[_0x47d0ff(0x115)][_0x47d0ff(0x141)](_0x26e746),this[_0x47d0ff(0x135)](_0x47d0ff(0x180),_0x26e746),_0x26e746;}[_0xf624fd(0x12f)](_0x3c8d2e){const _0x26ff2a=_0xf624fd;return this[_0x26ff2a(0x115)][_0x26ff2a(0x167)](_0xfd2770=>_0xfd2770['id']===_0x3c8d2e);}[_0xf624fd(0x10d)](_0x3dbae9){const _0x456ca5=_0xf624fd,_0x223e39=this[_0x456ca5(0x12f)](_0x3dbae9);_0x223e39&&(_0x223e39[_0x456ca5(0x164)](),this[_0x456ca5(0x115)][_0x456ca5(0x116)](this[_0x456ca5(0x115)][_0x456ca5(0x13c)](_0x223e39),0x1));}get[_0xf624fd(0x187)](){const _0x55b3a2=_0xf624fd;return this[_0x55b3a2(0x115)][this[_0x55b3a2(0x115)][_0x55b3a2(0x14a)]-0x1];}[_0xf624fd(0x160)](_0x3c345c){const _0xdf3b68=_0xf624fd;this[_0xdf3b68(0x113)][_0xdf3b68(0x160)](_0x3c345c);}async[_0xf624fd(0x111)]({content:_0x48f372,version:_0x668c7f,sessionId:_0x50708f,selections:_0x1a44ac}){const _0x54a57c=_0xf624fd;await this[_0x54a57c(0x113)][_0x54a57c(0x173)](_0x48f372,_0x668c7f,_0x50708f,_0x1a44ac);}[_0xf624fd(0x13b)](){const _0x4e772f=_0xf624fd;return this[_0x4e772f(0x122)]?.[_0x4e772f(0x112)]()?.[_0x4e772f(0x175)]||'';}[_0xf624fd(0x145)](_0x39450f){const _0x6ff881=_0xf624fd;this[_0x6ff881(0x113)][_0x6ff881(0x145)](_0x39450f);}[_0xf624fd(0x119)](){const _0x45ec9f=_0xf624fd;this[_0x45ec9f(0x113)][_0x45ec9f(0x119)]();}[_0xf624fd(0x16e)](_0x4346ca){const _0x101335=_0xf624fd;this[_0x101335(0x113)][_0x101335(0x16e)](_0x4346ca);}[_0xf624fd(0x161)](_0x4cd0f7){const _0x352e6a=_0xf624fd;this[_0x352e6a(0x113)][_0x352e6a(0x161)](_0x4cd0f7);}[_0xf624fd(0x14d)](_0x41b3d7){const _0x30254e=_0xf624fd;this[_0x30254e(0x113)][_0x30254e(0x14d)](_0x41b3d7);}[_0xf624fd(0x168)](_0x407563,_0x413467){const _0x2c1197=_0xf624fd;this[_0x2c1197(0x113)][_0x2c1197(0x168)](_0x407563,_0x413467);}[_0xf624fd(0x17a)](_0x50468d,_0x4426fc,_0x449f08){const _0xed5863=_0xf624fd;return this[_0xed5863(0x113)][_0xed5863(0x17a)](_0x50468d,_0x4426fc,_0x449f08);}[_0xf624fd(0x11a)](_0x1396ca){const _0x17f7cc=_0xf624fd;this[_0x17f7cc(0x113)][_0x17f7cc(0x11a)](_0x1396ca);}[_0xf624fd(0x150)](_0x356eff){const _0x372772=_0xf624fd;this[_0x372772(0x188)][_0x372772(0x150)](_0x356eff);}[_0xf624fd(0x14f)](){const _0x569c6a=_0xf624fd;this[_0x569c6a(0x188)][_0x569c6a(0x14f)]();}[_0xf624fd(0x148)](_0x4c18ff){const _0x523b34=_0xf624fd;this[_0x523b34(0x188)][_0x523b34(0x148)](_0x4c18ff);}[_0xf624fd(0x137)](){const _0x462768=_0xf624fd;this[_0x462768(0x188)][_0x462768(0x137)]();}[_0xf624fd(0x163)](){const _0x2f550f=_0xf624fd;return this[_0x2f550f(0x113)][_0x2f550f(0x163)]();}[_0xf624fd(0x12d)](){const _0x1c78e4=_0xf624fd;return this[_0x1c78e4(0x113)][_0x1c78e4(0x12d)]();}[_0xf624fd(0x11e)](){const _0x171214=_0xf624fd;return this[_0x171214(0x113)][_0x171214(0x11e)]();}async[_0xf624fd(0x147)](_0x30e983){const _0x54897d=_0xf624fd;_0x30e983?!0x1===await this[_0x54897d(0x152)][_0x54897d(0x177)](_0x30e983)&&(_0x13eb82(_0x54897d(0x146),{'conversation':this,'model':_0x30e983}),_0x30e983=(await this[_0x54897d(0x152)][_0x54897d(0x121)]())[0x0]):(_0x13eb82(_0x54897d(0x17e),{'conversation':this}),_0x30e983=(await this[_0x54897d(0x152)][_0x54897d(0x121)]())[0x0]),_0x30e983['id']!==this[_0x54897d(0x179)]?.['id']&&(this[_0x54897d(0x179)]=_0x30e983,this[_0x54897d(0x188)][_0x54897d(0x186)](),this[_0x54897d(0x135)](_0x54897d(0x14c),{'selectedModel':_0x30e983}));}}
23
+ const _0x2c5f9a=_0x1173;(function(_0x44d938,_0x460805){const _0x4b16e0=_0x1173,_0x33da34=_0x44d938();while(!![]){try{const _0x4349b5=parseInt(_0x4b16e0(0x85))/0x1+parseInt(_0x4b16e0(0xf1))/0x2+-parseInt(_0x4b16e0(0x8b))/0x3+parseInt(_0x4b16e0(0xe0))/0x4*(-parseInt(_0x4b16e0(0xb3))/0x5)+-parseInt(_0x4b16e0(0x91))/0x6*(-parseInt(_0x4b16e0(0xb8))/0x7)+-parseInt(_0x4b16e0(0xbd))/0x8+-parseInt(_0x4b16e0(0xcf))/0x9*(-parseInt(_0x4b16e0(0xcd))/0xa);if(_0x4349b5===_0x460805)break;else _0x33da34['push'](_0x33da34['shift']());}catch(_0x4346c2){_0x33da34['push'](_0x33da34['shift']());}}}(_0x3157,0xc4f91));import{CKEditorError as _0x3c3e8f,EmitterMixin as _0x569678,logWarning as _0x239af2}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x3ef124}from'../../aicore/model/aiinteraction.js';function _0x1173(_0x48e103,_0x173132){const _0x3157d6=_0x3157();return _0x1173=function(_0x1173e1,_0x8229ca){_0x1173e1=_0x1173e1-0x80;let _0xf6ea23=_0x3157d6[_0x1173e1];return _0xf6ea23;},_0x1173(_0x48e103,_0x173132);}import{AIChatContext as _0x4fcde2,AI_CONTEXT_MODEL_EVENT_NAMES as _0x12e4a2}from'./aichatcontext.js';import{AICapabilities as _0x45c450,CAPABILITIES_MODEL_EVENT_NAMES as _0x1573fd}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x172ed3}from'./aichatinteraction.js';import{errorsMap as _0x49dc51}from'../../errorsmap.js';export class AIChatConversation extends _0x569678(){['id'];[_0x2c5f9a(0x80)]=!0x1;[_0x2c5f9a(0xf2)];[_0x2c5f9a(0xda)]=[];[_0x2c5f9a(0xb2)];[_0x2c5f9a(0xdf)];[_0x2c5f9a(0x8f)];[_0x2c5f9a(0xa9)];constructor(_0x84d526){const _0x40e6bb=_0x2c5f9a;super(),this[_0x40e6bb(0xa9)]=_0x84d526,this[_0x40e6bb(0x8f)]=_0x84d526[_0x40e6bb(0x8f)],this[_0x40e6bb(0xbc)]=_0x84d526[_0x40e6bb(0xbc)],this['id']=_0x84d526[_0x40e6bb(0xf6)],this[_0x40e6bb(0xf2)]=_0x84d526[_0x40e6bb(0xf2)];}async[_0x2c5f9a(0xe4)](_0x3c4132){const _0x1496b0=_0x2c5f9a;try{this[_0x1496b0(0xe3)]=new _0x4fcde2({'connector':this[_0x1496b0(0x8f)],'config':_0x3c4132,'ownerId':this['id']}),this[_0x1496b0(0xe3)][_0x1496b0(0x90)](..._0x12e4a2)['to'](this),this[_0x1496b0(0xe3)][_0x1496b0(0xe4)](),this[_0x1496b0(0xfb)]=new _0x45c450(),this[_0x1496b0(0xfb)][_0x1496b0(0x90)](..._0x1573fd)['to'](this),this[_0x1496b0(0xfb)][_0x1496b0(0xe4)]();const _0x144d7f=await this[_0x1496b0(0xbc)][_0x1496b0(0xf3)]();this[_0x1496b0(0xc3)](_0x1496b0(0x9e),{'availableModels':_0x144d7f});const _0x4a7f04=await this[_0x1496b0(0xbc)][_0x1496b0(0x92)](this[_0x1496b0(0xa9)][_0x1496b0(0xdc)]);_0x4a7f04&&await this[_0x1496b0(0xd5)](_0x4a7f04);}catch(_0x1c6d4c){const _0x4a1cd1=new _0x3c3e8f(_0x1496b0(0x82),null,{'message':_0x1c6d4c[_0x1496b0(0xb1)]||_0x1c6d4c});_0x4a1cd1[_0x1496b0(0xd8)]=_0x1c6d4c[_0x1496b0(0xd8)],this[_0x1496b0(0xc3)](_0x1496b0(0xf7),{'error':_0x4a1cd1});}}async[_0x2c5f9a(0x9b)](){const _0x510592=_0x2c5f9a;if(this[_0x510592(0x80)])throw new _0x3c3e8f(_0x510592(0x99),null,{'conversation':this});if(!this[_0x510592(0xdf)])throw new _0x3c3e8f(_0x510592(0x8d),null,{'conversation':this});try{const {id:_0x91c7ab}=await this[_0x510592(0x8f)][_0x510592(0xa1)](this['id'],this[_0x510592(0xa9)][_0x510592(0xe1)])[_0x510592(0x83)]();this['id']=_0x91c7ab,this[_0x510592(0x80)]=!0x0,this[_0x510592(0xc3)](_0x510592(0xc9),{'conversationId':this['id'],'selectedModel':this[_0x510592(0xdf)]});}catch(_0xe72a5e){const _0x1cd468=new _0x3c3e8f(_0x510592(0xe9),null,{'message':_0xe72a5e[_0x510592(0xb1)],'conversationId':this['id']});throw _0x1cd468[_0x510592(0xd8)]=_0xe72a5e[_0x510592(0xd8)],this[_0x510592(0xc3)](_0x510592(0xf7),{'error':_0x1cd468}),_0x1cd468;}}async[_0x2c5f9a(0x81)](_0x4cea5f,_0x1a62dc){const _0x28b81d=_0x2c5f9a;try{const _0x5d6899=await this[_0x28b81d(0x8f)][_0x28b81d(0xc1)](_0x4cea5f)[_0x28b81d(0x83)](),_0x4dfbdf=await this[_0x28b81d(0x8f)][_0x28b81d(0xfd)](_0x4cea5f)[_0x28b81d(0xee)](),_0xb17d40=_0x4dfbdf[0x0][_0x28b81d(0xd3)];this[_0x28b81d(0x80)]=!0x0,this['id']=_0x5d6899['id'],_0x28b81d(0xde)in _0x5d6899?this[_0x28b81d(0xc3)](_0x28b81d(0xa7),_0x5d6899[_0x28b81d(0xde)],!0x0):this[_0x28b81d(0xc3)](_0x28b81d(0xa7),'',!0x0);const _0x30e097=(await this[_0x28b81d(0xbc)][_0x28b81d(0xc0)]())[_0x28b81d(0x8c)](_0x386da6=>_0x386da6['id'][_0x28b81d(0xe5)]()===_0xb17d40[_0x28b81d(0xe5)]());return this[_0x28b81d(0xdf)]=_0x30e097,this[_0x28b81d(0xc3)](_0x28b81d(0xeb),{'selectedModel':_0x30e097,'isDisabled':!0x0}),await this[_0x28b81d(0xb7)](_0x4dfbdf,_0x1a62dc,_0xb17d40),this[_0x28b81d(0xb2)]=void 0x0,this;}catch(_0x21c1aa){const _0xb119f1=new _0x3c3e8f(_0x28b81d(0xb9),null,{'message':_0x21c1aa[_0x28b81d(0xb1)],'conversationId':_0x4cea5f});throw _0xb119f1[_0x28b81d(0xd8)]=_0x21c1aa[_0x28b81d(0xd8)],this[_0x28b81d(0xc3)](_0x28b81d(0xf7),{'error':_0xb119f1}),_0xb119f1;}}async[_0x2c5f9a(0xb7)](_0x27c2bb,_0x1be3fc,_0x50d821){const _0x7bdea0=_0x2c5f9a;let _0x1b3f90;for(const _0x48e5ac of _0x27c2bb)if(_0x7bdea0(0xf5)===_0x48e5ac[_0x7bdea0(0xad)]){const _0x9af883=await this[_0x7bdea0(0xca)](_0x48e5ac),_0x293606={'isReasoningEnabled':Object[_0x7bdea0(0xab)](_0x48e5ac[_0x7bdea0(0x84)],_0x7bdea0(0xd6)),'isWebSearchEnabled':Object[_0x7bdea0(0xab)](_0x48e5ac[_0x7bdea0(0x84)],_0x7bdea0(0xdb))};_0x1b3f90=this[_0x7bdea0(0xef)]({'userMessage':_0x48e5ac[_0x7bdea0(0x87)],'contextItems':_0x9af883,'capabilities':_0x293606,'modelId':_0x50d821,'attributes':_0x48e5ac[_0x7bdea0(0xd4)]}),this[_0x7bdea0(0xb2)]=_0x1b3f90,this[_0x7bdea0(0xe3)][_0x7bdea0(0xa4)](this[_0x7bdea0(0xb2)][_0x7bdea0(0xd9)]);}else{if(_0x7bdea0(0xf8)===_0x48e5ac[_0x7bdea0(0xad)]&&_0x1b3f90){const _0x3f0997=[];for(const _0x3ca42c of _0x48e5ac[_0x7bdea0(0xa8)])switch(_0x3ca42c[_0x7bdea0(0xe2)]){case _0x7bdea0(0xbf):case _0x7bdea0(0x96):{const _0x140c23=_0x1b3f90[_0x7bdea0(0xae)]()?.[_0x7bdea0(0xe8)]!==_0x1be3fc;_0x1b3f90[_0x7bdea0(0x9d)]=_0x1b3f90[_0x7bdea0(0xfa)]({'type':_0x3ca42c[_0x7bdea0(0xe2)],'isDone':!0x0,'interactionId':_0x1b3f90['id'],'areActionsDisabled':_0x140c23}),_0x1b3f90[_0x7bdea0(0x9d)][_0x7bdea0(0xe7)](_0x3ca42c[_0x7bdea0(0xa8)]),_0x3f0997[_0x7bdea0(0xbb)]>0x0&&(_0x1b3f90[_0x7bdea0(0x9d)][_0x7bdea0(0xb6)]=_0x3f0997[_0x7bdea0(0xdd)](0x0));break;}case _0x7bdea0(0xd0):_0x3f0997[_0x7bdea0(0xc4)](_0x3ca42c);break;case _0x7bdea0(0x94):{const {data:_0x5f0165,attributes:_0x1eae1f}=JSON[_0x7bdea0(0xf9)](_0x3ca42c[_0x7bdea0(0xa8)]);_0x1b3f90[_0x7bdea0(0xa0)]({'toolName':_0x3ca42c[_0x7bdea0(0xc8)],'data':_0x5f0165,'attributes':_0x1eae1f});break;}}}}}async[_0x2c5f9a(0xca)](_0x4f328d){const _0x2098fd=_0x2c5f9a,_0x289314=new Map();if(!_0x4f328d[_0x2098fd(0xa8)])return _0x289314;for(const _0x43ba5a of _0x4f328d[_0x2098fd(0xa8)]){const _0x337b42=await this[_0x2098fd(0xe3)][_0x2098fd(0xbe)](_0x43ba5a);_0x337b42&&_0x289314[_0x2098fd(0xfc)](_0x337b42['id'],_0x337b42);}return _0x289314;}async[_0x2c5f9a(0xc6)]({userMessage:_0x1e46e3,attributes:_0x536786}){const _0x4782ba=_0x2c5f9a;if(!this[_0x4782ba(0x80)])throw new _0x3c3e8f(_0x4782ba(0xf0),null,{'conversation':this});if(this[_0x4782ba(0xb2)])throw new _0x3c3e8f(_0x4782ba(0xb0),null,{'conversation':this});try{const _0x354aa6=this[_0x4782ba(0xe3)][_0x4782ba(0xd1)](),_0x6b3f36=this[_0x4782ba(0xfb)][_0x4782ba(0x8a)](),_0x5040ef=this[_0x4782ba(0xdf)]['id'];this[_0x4782ba(0xb2)]=this[_0x4782ba(0xef)]({'userMessage':_0x1e46e3,'contextItems':_0x354aa6,'capabilities':_0x6b3f36,'modelId':_0x5040ef,'attributes':_0x536786}),await this[_0x4782ba(0xb2)][_0x4782ba(0x9b)](),this[_0x4782ba(0xe3)][_0x4782ba(0xa4)](this[_0x4782ba(0xb2)][_0x4782ba(0xd9)]);}catch(_0xf467fd){if(_0xf467fd instanceof _0x3c3e8f)this[_0x4782ba(0xc3)](_0x4782ba(0xf7),{'interactionId':this[_0x4782ba(0xb2)]?this[_0x4782ba(0xb2)]['id']:void 0x0,'error':_0xf467fd});else{const _0x5ed04e=_0x49dc51[_0x4782ba(0xc2)](_0xf467fd[_0x4782ba(0x8e)])||_0x4782ba(0xea);this[_0x4782ba(0xc3)](_0x4782ba(0xf7),{'interactionId':this[_0x4782ba(0xb2)]?this[_0x4782ba(0xb2)]['id']:void 0x0,'error':new _0x3c3e8f(_0x5ed04e,null,{'error':_0xf467fd})});}}finally{this[_0x4782ba(0xb2)]?.[_0x4782ba(0xcb)](),this[_0x4782ba(0xb2)]=void 0x0;}}[_0x2c5f9a(0xef)]({userMessage:_0x234e42,contextItems:_0x43e280,capabilities:_0x3d3a93,modelId:_0x26873e,attributes:_0x2edc42}){const _0x86559d=_0x2c5f9a,_0x42c720=new _0x172ed3({'userMessage':_0x234e42,'contextItems':_0x43e280,'capabilities':_0x3d3a93,'conversationId':this['id'],'connector':this[_0x86559d(0x8f)],'editor':this[_0x86559d(0xa9)][_0x86559d(0x88)]&&this[_0x86559d(0xa9)][_0x86559d(0x88)](),'model':_0x26873e,'attributes':_0x2edc42});return _0x42c720[_0x86559d(0x90)](..._0x3ef124)['to'](this),this[_0x86559d(0xda)][_0x86559d(0xc4)](_0x42c720),this[_0x86559d(0xc3)](_0x86559d(0xc7),_0x42c720),_0x42c720;}[_0x2c5f9a(0xb4)](_0x1f503e){const _0x598527=_0x2c5f9a;return this[_0x598527(0xda)][_0x598527(0x8c)](_0x318c8c=>_0x318c8c['id']===_0x1f503e);}[_0x2c5f9a(0xa5)](_0x1e452f){const _0x5c3800=_0x2c5f9a,_0x96870d=this[_0x5c3800(0xb4)](_0x1e452f);_0x96870d&&(_0x96870d[_0x5c3800(0x89)](),this[_0x5c3800(0xda)][_0x5c3800(0xdd)](this[_0x5c3800(0xda)][_0x5c3800(0xed)](_0x96870d),0x1));}get[_0x2c5f9a(0x86)](){const _0x5b4239=_0x2c5f9a;return this[_0x5b4239(0xda)][this[_0x5b4239(0xda)][_0x5b4239(0xbb)]-0x1];}[_0x2c5f9a(0xd2)](_0x5dd053){const _0x4a3714=_0x2c5f9a;this[_0x4a3714(0xe3)][_0x4a3714(0xd2)](_0x5dd053);}async[_0x2c5f9a(0x9f)]({content:_0x1d9786,version:_0x4c7f74,sessionId:_0x2ce9cf,selections:_0x5e2596}){const _0x483436=_0x2c5f9a;await this[_0x483436(0xe3)][_0x483436(0x9c)](_0x1d9786,_0x4c7f74,_0x2ce9cf,_0x5e2596);}[_0x2c5f9a(0xaf)](){const _0x1fd69d=_0x2c5f9a;return this[_0x1fd69d(0xb2)]?.[_0x1fd69d(0xae)]()?.[_0x1fd69d(0xa8)]||'';}[_0x2c5f9a(0xe6)](_0x302e25){const _0x350f66=_0x2c5f9a;this[_0x350f66(0xe3)][_0x350f66(0xe6)](_0x302e25);}[_0x2c5f9a(0xba)](){const _0x2b69c8=_0x2c5f9a;this[_0x2b69c8(0xe3)][_0x2b69c8(0xba)]();}[_0x2c5f9a(0xb5)](_0xaa6097){const _0x4737ab=_0x2c5f9a;this[_0x4737ab(0xe3)][_0x4737ab(0xb5)](_0xaa6097);}[_0x2c5f9a(0xd7)](_0x488a2b){const _0x4bc47c=_0x2c5f9a;this[_0x4bc47c(0xe3)][_0x4bc47c(0xd7)](_0x488a2b);}[_0x2c5f9a(0xec)](_0x3b1e9b){const _0x446fe0=_0x2c5f9a;this[_0x446fe0(0xe3)][_0x446fe0(0xec)](_0x3b1e9b);}[_0x2c5f9a(0xf4)](_0x352db7,_0x5bd0e6){const _0x1c7029=_0x2c5f9a;this[_0x1c7029(0xe3)][_0x1c7029(0xf4)](_0x352db7,_0x5bd0e6);}[_0x2c5f9a(0xa6)](_0x582af4,_0x330350,_0x374966){const _0x7f5b9=_0x2c5f9a;return this[_0x7f5b9(0xe3)][_0x7f5b9(0xa6)](_0x582af4,_0x330350,_0x374966);}[_0x2c5f9a(0x97)](_0x34506b){const _0x3735df=_0x2c5f9a;this[_0x3735df(0xe3)][_0x3735df(0x97)](_0x34506b);}[_0x2c5f9a(0xce)](_0x5f1ee7){const _0x400f98=_0x2c5f9a;this[_0x400f98(0xfb)][_0x400f98(0xce)](_0x5f1ee7);}[_0x2c5f9a(0xa2)](){const _0x3204f0=_0x2c5f9a;this[_0x3204f0(0xfb)][_0x3204f0(0xa2)]();}[_0x2c5f9a(0xa3)](_0x369e84){const _0x1468e6=_0x2c5f9a;this[_0x1468e6(0xfb)][_0x1468e6(0xa3)](_0x369e84);}[_0x2c5f9a(0xaa)](){const _0x5c1b47=_0x2c5f9a;this[_0x5c1b47(0xfb)][_0x5c1b47(0xaa)]();}[_0x2c5f9a(0xc5)](){const _0x4b7896=_0x2c5f9a;return this[_0x4b7896(0xe3)][_0x4b7896(0xc5)]();}[_0x2c5f9a(0x95)](){const _0x2a4251=_0x2c5f9a;return this[_0x2a4251(0xe3)][_0x2a4251(0x95)]();}[_0x2c5f9a(0xcc)](){const _0xe69bcc=_0x2c5f9a;return this[_0xe69bcc(0xe3)][_0xe69bcc(0xcc)]();}async[_0x2c5f9a(0xd5)](_0x454445){const _0x567bd2=_0x2c5f9a;_0x454445?!0x1===await this[_0x567bd2(0xbc)][_0x567bd2(0x93)](_0x454445)&&(_0x239af2(_0x567bd2(0xac),{'conversation':this,'model':_0x454445}),_0x454445=(await this[_0x567bd2(0xbc)][_0x567bd2(0xf3)]())[0x0]):(_0x239af2(_0x567bd2(0x98),{'conversation':this}),_0x454445=(await this[_0x567bd2(0xbc)][_0x567bd2(0xf3)]())[0x0]),_0x454445['id']!==this[_0x567bd2(0xdf)]?.['id']&&(this[_0x567bd2(0xdf)]=_0x454445,this[_0x567bd2(0xfb)][_0x567bd2(0x9a)](),this[_0x567bd2(0xc3)](_0x567bd2(0xeb),{'selectedModel':_0x454445}));}}function _0x3157(){const _0x48e9d0=['addToolItemToContext','indexOf','getMessages','createInteraction','ai-chat-handle-user-conversation-not-initialized','3155900TaeWOU','isFromHistory','getAvailableModels','addResourceToContext','user','conversationId','error','assistant','parse','createReply','chatCapabilities','set','fetchConversationMessages','isStarted','load','ai-chat-conversation-init-failed','getConversation','capabilities','765691QpFZOw','lastInteraction','prompt','getEditor','destroy','getCapabilitiesConfig','2225271qakrRE','find','ai-chat-conversation-start-no-model-selected','code','connector','delegate','6EPGXyB','getModel','isAvailable','mcp-tool-result','isCurrentDocumentInConversation','modification','removeFromContext','ai-chat-conversation-set-model-null','ai-chat-conversation-already-started','reset','start','updateCurrentDocument','currentReply','conversationInitialized','updateCurrentDocumentInContext','_handleToolResultData','startConversation','toggleWebSearch','setReasoning','addToConversationContext','removeInteraction','loadSourceResources','setConversationTitle','content','options','toggleReasoning','hasOwn','ai-chat-conversation-set-model-not-available','role','getDocumentContext','getCurrentDocumentContext','ai-chat-handle-user-interaction-already-in-progress','message','currentInteraction','5bXlTtq','getInteraction','addFilesToContext','sources','_processMessagesToInteractions','2395106fLUQMa','ai-chat-conversation-init-from-id-failed','removeSelectionFromContext','length','chatModels','12549136QHwMdL','populateFromMessage','text','getAll','fetchConversation','get','fire','push','isCurrentDocumentInContext','handleUserInteraction','interactionCreated','toolName','conversationStarted','_extractContextItems','stop','isSelectionInContext','10chSmtQ','setWebSearch','12738213FoOhkd','url','getPendingContextItems','addCurrentDocumentToContext','model','attributes','setModel','reasoning','addUrlToContext','stack','contextItems','interactions','webSearch','selectedModelId','splice','title','selectedModel','3935824qlQhPB','group','type','chatContext','init','toLowerCase','addSelectionToContext','appendContent','sessionId','ai-chat-conversation-start-failed','ai-chat-handle-user-interaction-start-failed','modelSelected'];_0x3157=function(){return _0x48e9d0;};return _0x3157();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x5776e6=_0x3bd0;function _0x2a7e(){var _0x40395f=['102phMIvt','attributes','230aEcYgn','mapContextItemsToRequestData','get','userMessage','4337qCvmEN','451932GFbphE','getDocumentContext','capabilities','12uhbpcd','conversationId','24048rxtqLa','contextItems','sendRequest','367242LmzsFd','2493fJULXa','791WXTmeN','getCapabilitiesRequestData','queryAssistant','current-document','35Slctod','connector','393910xwmlnK','model','3354sLiXLQ','39375271qrYiXr'];_0x2a7e=function(){return _0x40395f;};return _0x2a7e();}(function(_0x466184,_0x673a91){var _0x2cb9a8=_0x3bd0,_0x2efbc6=_0x466184();while(!![]){try{var _0x39be1f=-parseInt(_0x2cb9a8(0x176))/0x1*(-parseInt(_0x2cb9a8(0x170))/0x2)+-parseInt(_0x2cb9a8(0x164))/0x3+-parseInt(_0x2cb9a8(0x177))/0x4*(parseInt(_0x2cb9a8(0x16a))/0x5)+parseInt(_0x2cb9a8(0x16e))/0x6*(parseInt(_0x2cb9a8(0x166))/0x7)+parseInt(_0x2cb9a8(0x17c))/0x8*(-parseInt(_0x2cb9a8(0x165))/0x9)+-parseInt(_0x2cb9a8(0x172))/0xa*(parseInt(_0x2cb9a8(0x16c))/0xb)+parseInt(_0x2cb9a8(0x17a))/0xc*(parseInt(_0x2cb9a8(0x16f))/0xd);if(_0x39be1f===_0x673a91)break;else _0x2efbc6['push'](_0x2efbc6['shift']());}catch(_0x233717){_0x2efbc6['push'](_0x2efbc6['shift']());}}}(_0x2a7e,0xb58d2));import{AICapabilities as _0x3821f6}from'../../aicore/model/aicapabilities.js';function _0x3bd0(_0x32b580,_0x3f81ce){var _0x2a7e03=_0x2a7e();return _0x3bd0=function(_0x3bd022,_0x35bda0){_0x3bd022=_0x3bd022-0x162;var _0x5e6de1=_0x2a7e03[_0x3bd022];return _0x5e6de1;},_0x3bd0(_0x32b580,_0x3f81ce);}import{AIInteraction as _0xc7a007}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x5c698b}from'./aichatcontext.js';export class AIChatInteraction extends _0xc7a007{[_0x5776e6(0x175)];[_0x5776e6(0x17b)];[_0x5776e6(0x162)]=new Map();[_0x5776e6(0x16d)];[_0x5776e6(0x171)];constructor(_0x312769){var _0x4fe2dd=_0x5776e6;super(_0x312769),this[_0x4fe2dd(0x17b)]=_0x312769[_0x4fe2dd(0x17b)],this[_0x4fe2dd(0x162)]=_0x312769[_0x4fe2dd(0x162)],this[_0x4fe2dd(0x179)]=_0x312769[_0x4fe2dd(0x179)],this[_0x4fe2dd(0x175)]=_0x312769[_0x4fe2dd(0x175)],this[_0x4fe2dd(0x16d)]=_0x312769[_0x4fe2dd(0x16d)],this[_0x4fe2dd(0x171)]=_0x312769[_0x4fe2dd(0x171)];}async[_0x5776e6(0x163)](){var _0x439ace=_0x5776e6;return this[_0x439ace(0x16b)][_0x439ace(0x168)]({'message':this[_0x439ace(0x175)],'conversationId':this[_0x439ace(0x17b)],'parts':_0x5c698b[_0x439ace(0x173)](this[_0x439ace(0x162)]),'capabilities':_0x3821f6[_0x439ace(0x167)](this[_0x439ace(0x179)]),'model':this[_0x439ace(0x16d)],'attributes':this[_0x439ace(0x171)]});}[_0x5776e6(0x178)](){var _0x22f01d=_0x5776e6;return this[_0x22f01d(0x162)][_0x22f01d(0x174)](_0x22f01d(0x169));}}
23
+ var _0x4367f4=_0x3f86;function _0x3e7b(){var _0x26027a=['conversationId','current-document','queryAssistant','7017384YTgzEO','getDocumentContext','133SNHyUE','attributes','722510MfMoFV','44RoqxjS','model','252137EVDFpR','3068180wSgVcD','272022zBotlX','21EgThfQ','userMessage','4BrFGOe','contextItems','250170zaPzhJ','mapContextItemsToRequestData','capabilities','510021VUKYNy','sendRequest','connector','get','getCapabilitiesRequestData'];_0x3e7b=function(){return _0x26027a;};return _0x3e7b();}function _0x3f86(_0x56d92c,_0x552ab1){var _0x3e7b7e=_0x3e7b();return _0x3f86=function(_0x3f8680,_0x4f5e6b){_0x3f8680=_0x3f8680-0x12f;var _0x103b44=_0x3e7b7e[_0x3f8680];return _0x103b44;},_0x3f86(_0x56d92c,_0x552ab1);}(function(_0x5be75d,_0x4fb9eb){var _0x7766a5=_0x3f86,_0x571c2d=_0x5be75d();while(!![]){try{var _0x5703d7=parseInt(_0x7766a5(0x13c))/0x1+-parseInt(_0x7766a5(0x143))/0x2*(-parseInt(_0x7766a5(0x13f))/0x3)+parseInt(_0x7766a5(0x141))/0x4*(-parseInt(_0x7766a5(0x139))/0x5)+-parseInt(_0x7766a5(0x13e))/0x6*(parseInt(_0x7766a5(0x137))/0x7)+-parseInt(_0x7766a5(0x135))/0x8+parseInt(_0x7766a5(0x146))/0x9+parseInt(_0x7766a5(0x13d))/0xa*(parseInt(_0x7766a5(0x13a))/0xb);if(_0x5703d7===_0x4fb9eb)break;else _0x571c2d['push'](_0x571c2d['shift']());}catch(_0x5839d1){_0x571c2d['push'](_0x571c2d['shift']());}}}(_0x3e7b,0x810d3));import{AICapabilities as _0x256b9f}from'../../aicore/model/aicapabilities.js';import{AIInteraction as _0x5d45e9}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x534fcb}from'./aichatcontext.js';export class AIChatInteraction extends _0x5d45e9{[_0x4367f4(0x140)];[_0x4367f4(0x132)];[_0x4367f4(0x142)]=new Map();[_0x4367f4(0x13b)];[_0x4367f4(0x138)];constructor(_0x1dd1d6){var _0x42b365=_0x4367f4;super(_0x1dd1d6),this[_0x42b365(0x132)]=_0x1dd1d6[_0x42b365(0x132)],this[_0x42b365(0x142)]=_0x1dd1d6[_0x42b365(0x142)],this[_0x42b365(0x145)]=_0x1dd1d6[_0x42b365(0x145)],this[_0x42b365(0x140)]=_0x1dd1d6[_0x42b365(0x140)],this[_0x42b365(0x13b)]=_0x1dd1d6[_0x42b365(0x13b)],this[_0x42b365(0x138)]=_0x1dd1d6[_0x42b365(0x138)];}async[_0x4367f4(0x147)](){var _0x47d39b=_0x4367f4;return this[_0x47d39b(0x12f)][_0x47d39b(0x134)]({'message':this[_0x47d39b(0x140)],'conversationId':this[_0x47d39b(0x132)],'parts':_0x534fcb[_0x47d39b(0x144)](this[_0x47d39b(0x142)]),'capabilities':_0x256b9f[_0x47d39b(0x131)](this[_0x47d39b(0x145)]),'model':this[_0x47d39b(0x13b)],'attributes':this[_0x47d39b(0x138)]});}[_0x4367f4(0x136)](){var _0x56e33a=_0x4367f4;return this[_0x56e33a(0x142)][_0x56e33a(0x130)](_0x56e33a(0x133));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x328176=_0x3b59;(function(_0x469a3d,_0x82e653){const _0xcf6b7c=_0x3b59,_0x2fc061=_0x469a3d();while(!![]){try{const _0x1e4a42=-parseInt(_0xcf6b7c(0x143))/0x1+-parseInt(_0xcf6b7c(0x14f))/0x2*(parseInt(_0xcf6b7c(0x18e))/0x3)+parseInt(_0xcf6b7c(0x177))/0x4*(-parseInt(_0xcf6b7c(0x16c))/0x5)+parseInt(_0xcf6b7c(0x140))/0x6+-parseInt(_0xcf6b7c(0x164))/0x7*(-parseInt(_0xcf6b7c(0x16f))/0x8)+-parseInt(_0xcf6b7c(0x17a))/0x9*(-parseInt(_0xcf6b7c(0x142))/0xa)+parseInt(_0xcf6b7c(0x13e))/0xb*(parseInt(_0xcf6b7c(0x146))/0xc);if(_0x1e4a42===_0x82e653)break;else _0x2fc061['push'](_0x2fc061['shift']());}catch(_0x496bd5){_0x2fc061['push'](_0x2fc061['shift']());}}}(_0x599f,0x858ea));function _0x3b59(_0xad2f5c,_0x1fcac6){const _0x599f69=_0x599f();return _0x3b59=function(_0x3b5986,_0x224374){_0x3b5986=_0x3b5986-0x13e;let _0x424ca9=_0x599f69[_0x3b5986];return _0x424ca9;},_0x3b59(_0xad2f5c,_0x1fcac6);}import{FocusTracker as _0x371f36,KeystrokeHandler as _0x237010}from'ckeditor5/src/utils.js';import{AISuggestionStreamableContentView as _0xb2912}from'../../aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js';import{AISuggestionContentPartToolbarView as _0x2225c5}from'../../aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js';import{AIMiniToolbarView as _0x68a765}from'../../aicore/ui/suggestioncontainer/aiminitoolbarview.js';import{AIBalloonView as _0x545c1d}from'../../aiballoon/ui/aiballoonview.js';import{ButtonView as _0x4f3cf0,FocusCycler as _0x453eb4,View as _0x506227}from'ckeditor5/src/ui.js';import{AISuggestionContentPartStateView as _0x2b606c}from'../../aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js';import{IconChevronDown as _0x1c3f65,IconChevronUp as _0x4ca020}from'ckeditor5/src/icons.js';import{getTranslation as _0x693513}from'../../aicore/utils/common-translations.js';import'../../../theme/aichat/aichatballoon.css';export class AIChatBalloonView extends _0x545c1d{[_0x328176(0x14b)];[_0x328176(0x171)];[_0x328176(0x15c)];[_0x328176(0x163)];[_0x328176(0x174)];[_0x328176(0x192)];[_0x328176(0x147)];[_0x328176(0x17f)];[_0x328176(0x165)];[_0x328176(0x191)];[_0x328176(0x145)];[_0x328176(0x157)];[_0x328176(0x17e)];constructor(_0x56cef7,_0x549303){const _0x2f1a09=_0x328176;super(_0x56cef7);const _0x475172=this[_0x2f1a09(0x185)];this[_0x2f1a09(0x189)](_0x2f1a09(0x148),!0x1),this[_0x2f1a09(0x189)](_0x2f1a09(0x176),_0x2f1a09(0x187)),this[_0x2f1a09(0x192)]=new _0x371f36(),this[_0x2f1a09(0x147)]=new _0x237010(),this[_0x2f1a09(0x174)]=this[_0x2f1a09(0x14d)](),this[_0x2f1a09(0x163)]=new _0x453eb4({'focusables':this[_0x2f1a09(0x174)],'focusTracker':this[_0x2f1a09(0x192)],'keystrokeHandler':this[_0x2f1a09(0x147)],'actions':{'focusPrevious':_0x2f1a09(0x14a),'focusNext':_0x2f1a09(0x17d)}}),this[_0x2f1a09(0x17f)]=_0x549303,this[_0x2f1a09(0x171)]=this[_0x2f1a09(0x184)](),this[_0x2f1a09(0x15c)]=this[_0x2f1a09(0x18c)](),this[_0x2f1a09(0x165)]=new _0xb2912(_0x56cef7),this[_0x2f1a09(0x145)]=new _0x2225c5(_0x56cef7,_0x549303[_0x2f1a09(0x16e)]),this[_0x2f1a09(0x145)][_0x2f1a09(0x188)](_0x2f1a09(0x154),_0x2f1a09(0x178),_0x2f1a09(0x172))['to'](this),this[_0x2f1a09(0x18f)](_0x549303),this[_0x2f1a09(0x157)]=new _0x2b606c(_0x56cef7),this[_0x2f1a09(0x157)][_0x2f1a09(0x13f)]=!0x1,this[_0x2f1a09(0x17e)]=new _0x68a765(_0x56cef7,{'showChanges':_0x2f1a09(0x170)}),this[_0x2f1a09(0x17e)][_0x2f1a09(0x167)](_0x2f1a09(0x169))['to'](this,_0x2f1a09(0x148)),this[_0x2f1a09(0x17e)]['on'](_0x2f1a09(0x173),()=>{const _0x827513=_0x2f1a09;this[_0x827513(0x190)](_0x827513(0x16a));}),this[_0x2f1a09(0x191)]=new ms(_0x56cef7,[this[_0x2f1a09(0x145)],this[_0x2f1a09(0x157)],this[_0x2f1a09(0x17e)]]),this[_0x2f1a09(0x14b)]=this[_0x2f1a09(0x14d)]([this[_0x2f1a09(0x165)],this[_0x2f1a09(0x191)]]),this['on'](_0x2f1a09(0x151),(_0x4f1b8c,_0x2e5b0c,_0x411171,_0x3a8a33)=>{const _0x3b62e0=_0x2f1a09;let _0x218e64,_0x5ba61b;_0x3b62e0(0x187)===_0x3a8a33?(_0x218e64=this[_0x3b62e0(0x145)],_0x5ba61b=this[_0x3b62e0(0x157)]):(_0x218e64=this[_0x3b62e0(0x157)],_0x5ba61b=this[_0x3b62e0(0x145)]),this[_0x3b62e0(0x157)][_0x3b62e0(0x156)](_0x411171),_0x218e64[_0x3b62e0(0x13f)]=!0x1,_0x5ba61b[_0x3b62e0(0x13f)]=!0x0;}),this[_0x2f1a09(0x15b)]({'tag':_0x2f1a09(0x150),'attributes':{'class':['ck',_0x2f1a09(0x144),_0x475172['to'](_0x2f1a09(0x176),_0x147901=>_0x2f1a09(0x141)+_0x147901)]},'children':this[_0x2f1a09(0x14b)]}),this['on'](_0x2f1a09(0x17c),()=>{const _0x523647=_0x2f1a09;this[_0x523647(0x18f)](_0x549303);});}[_0x328176(0x159)](){const _0x4c54b3=_0x328176;super[_0x4c54b3(0x159)](),this[_0x4c54b3(0x171)][_0x4c54b3(0x159)](),this[_0x4c54b3(0x15c)][_0x4c54b3(0x159)](),this[_0x4c54b3(0x192)][_0x4c54b3(0x183)](this[_0x4c54b3(0x16b)]),this[_0x4c54b3(0x192)][_0x4c54b3(0x183)](this[_0x4c54b3(0x171)]),this[_0x4c54b3(0x192)][_0x4c54b3(0x183)](this[_0x4c54b3(0x15c)]),this[_0x4c54b3(0x192)][_0x4c54b3(0x183)](this[_0x4c54b3(0x17e)]),this[_0x4c54b3(0x192)][_0x4c54b3(0x183)](this[_0x4c54b3(0x145)]),this[_0x4c54b3(0x147)][_0x4c54b3(0x181)](this[_0x4c54b3(0x16b)]),this[_0x4c54b3(0x147)][_0x4c54b3(0x181)](this[_0x4c54b3(0x171)][_0x4c54b3(0x16b)]),this[_0x4c54b3(0x147)][_0x4c54b3(0x181)](this[_0x4c54b3(0x15c)][_0x4c54b3(0x16b)]),this[_0x4c54b3(0x174)][_0x4c54b3(0x162)]([this[_0x4c54b3(0x171)],this[_0x4c54b3(0x15c)],this[_0x4c54b3(0x145)],this[_0x4c54b3(0x17e)]]);}[_0x328176(0x16d)](){const _0x40d430=_0x328176;super[_0x40d430(0x16d)](),this[_0x40d430(0x15c)][_0x40d430(0x16d)](),this[_0x40d430(0x171)][_0x40d430(0x16d)]();}[_0x328176(0x180)](){const _0x1b43ac=_0x328176;this[_0x1b43ac(0x163)][_0x1b43ac(0x166)]();}[_0x328176(0x152)](){const _0x1ec8fd=_0x328176;this[_0x1ec8fd(0x163)][_0x1ec8fd(0x152)]();}async[_0x328176(0x193)](_0x5b603d){const _0x317a9a=_0x328176;_0x5b603d?.[_0x317a9a(0x168)]||this[_0x317a9a(0x17b)](),await this[_0x317a9a(0x165)][_0x317a9a(0x14c)](_0x5b603d);}[_0x328176(0x156)](_0x45adf6){const _0x571c67=_0x328176;this[_0x571c67(0x176)]=_0x45adf6;}[_0x328176(0x161)](_0x548c68){const _0x2b2807=_0x328176;super[_0x2b2807(0x161)](_0x548c68),this[_0x2b2807(0x14b)][_0x2b2807(0x149)](this[_0x2b2807(0x15a)])||this[_0x2b2807(0x14b)][_0x2b2807(0x183)](this[_0x2b2807(0x15a)],0x0);}[_0x328176(0x17b)](){const _0x98ad93=_0x328176;this[_0x98ad93(0x15d)]&&(super[_0x98ad93(0x17b)](),this[_0x98ad93(0x179)](!0x0));}[_0x328176(0x153)](_0x527aa7){const _0x47871b=_0x328176;super[_0x47871b(0x153)](_0x527aa7),this[_0x47871b(0x179)](!0x1);}[_0x328176(0x18d)](_0x4a943c){const _0x29e482=_0x328176;this[_0x29e482(0x171)][_0x29e482(0x13f)]=this[_0x29e482(0x15c)][_0x29e482(0x13f)]=_0x4a943c;}[_0x328176(0x179)](_0x692eef){const _0x19b4ae=_0x328176;this[_0x19b4ae(0x145)][_0x19b4ae(0x158)]=_0x692eef;}[_0x328176(0x18f)]({showApplyButton:_0x5d55cc,showSuggestButton:_0x1aa60e}){const _0x3172c5=_0x328176;_0x5d55cc=_0x5d55cc&&!this[_0x3172c5(0x182)]&&this[_0x3172c5(0x17f)][_0x3172c5(0x16e)][_0x3172c5(0x155)](_0x3172c5(0x154)),_0x1aa60e=_0x1aa60e&&this[_0x3172c5(0x17f)][_0x3172c5(0x16e)][_0x3172c5(0x155)](_0x3172c5(0x178)),this[_0x3172c5(0x145)][_0x3172c5(0x186)]({'showApplyButton':_0x5d55cc,'showSuggestButton':_0x1aa60e});}[_0x328176(0x184)](){const _0x51464e=_0x328176,_0x1db80f=new _0x4f3cf0(this[_0x51464e(0x14e)]);return _0x1db80f[_0x51464e(0x189)]({'icon':_0x1c3f65,'label':_0x693513(this[_0x51464e(0x14e)],_0x51464e(0x15f)),'isVisible':!0x0}),_0x1db80f['on'](_0x51464e(0x175),()=>{const _0x380888=_0x51464e;this[_0x380888(0x190)](_0x380888(0x18b));}),_0x1db80f;}[_0x328176(0x18c)](){const _0x106488=_0x328176,_0x10aa5a=new _0x4f3cf0(this[_0x106488(0x14e)]);return _0x10aa5a[_0x106488(0x189)]({'icon':_0x4ca020,'label':_0x693513(this[_0x106488(0x14e)],_0x106488(0x15e)),'isVisible':!0x0}),_0x10aa5a['on'](_0x106488(0x175),()=>{const _0x2d2e9d=_0x106488;this[_0x2d2e9d(0x190)](_0x2d2e9d(0x18a));}),_0x10aa5a;}}function _0x599f(){const _0x534ce8=['isEnabled','render','_errorView','setTemplate','previousButtonView','_isErrorVisible','AI_BALLOON_PREVIOUS_LABEL','AI_BALLOON_NEXT_LABEL','ck-ai-chat-balloon__toolbar-container','showError','addMany','focusCycler','313922XIQuqo','_streamableContentView','focusFirst','bind','keepErrors','isShowChangesOn','toggleSuggestionDisplayMode','element','8015LTBwfx','destroy','availableActions','104YmJNQq','full','nextButtonView','rejectSuggestion','toggleShowChanges','_focusables','execute','_state','684AVDXTt','insertSuggestion','togglePartToolbarEnabled','144vWcxiI','hideError','change:isTrackChangesOn','tab','_miniToolbarView','_config','focus','listenTo','isTrackChangesOn','add','_createNextButtonView','bindTemplate','setButtonsVisibility','pending','delegate','set','showPrevious','showNext','_createPreviousButtonView','toggleRotatorButtonsVisibility','72003agfROe','_togglePartToolbarButtonsVisibility','fire','_toolbarContainerView','_focusTracker','updateContent','33HPGEXR','isVisible','1550772vUcHZD','ck-ai-chat-balloon-main_state_','287220KUhDUM','1042771GQiScz','ck-ai-chat-balloon-main','_partToolbarView','5803836KJPoBv','_keystrokes','showDiff','has','shift\x20+\x20tab','children','update','createCollection','locale','74fVrWnh','div','change:_state','focusLast','showBlockingError','applySuggestion','includes','setState','_stateView'];_0x599f=function(){return _0x534ce8;};return _0x599f();}class ms extends _0x506227{constructor(_0x40a2e3,_0x56916b){const _0x5cf2bd=_0x328176;super(_0x40a2e3),this[_0x5cf2bd(0x15b)]({'tag':_0x5cf2bd(0x150),'attributes':{'class':[_0x5cf2bd(0x160)]},'children':_0x56916b});}}
23
+ const _0x4762bc=_0x3a37;(function(_0x8f4451,_0x3af5b0){const _0x3ce127=_0x3a37,_0xb255c7=_0x8f4451();while(!![]){try{const _0x513aef=parseInt(_0x3ce127(0x1cc))/0x1+parseInt(_0x3ce127(0x1b5))/0x2+-parseInt(_0x3ce127(0x1eb))/0x3+-parseInt(_0x3ce127(0x1d7))/0x4+parseInt(_0x3ce127(0x1b2))/0x5*(parseInt(_0x3ce127(0x1a9))/0x6)+-parseInt(_0x3ce127(0x1b9))/0x7*(parseInt(_0x3ce127(0x1aa))/0x8)+parseInt(_0x3ce127(0x1c4))/0x9;if(_0x513aef===_0x3af5b0)break;else _0xb255c7['push'](_0xb255c7['shift']());}catch(_0x7b9e6a){_0xb255c7['push'](_0xb255c7['shift']());}}}(_0x4ad4,0xf1b4e));import{FocusTracker as _0x164a4a,KeystrokeHandler as _0x28a48e}from'ckeditor5/src/utils.js';import{AISuggestionStreamableContentView as _0x26e921}from'../../aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js';import{AISuggestionContentPartToolbarView as _0x2c98f2}from'../../aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js';import{AIMiniToolbarView as _0xd27de5}from'../../aicore/ui/suggestioncontainer/aiminitoolbarview.js';import{AIBalloonView as _0x3280cf}from'../../aiballoon/ui/aiballoonview.js';import{ButtonView as _0x382600,FocusCycler as _0x5d34c9,View as _0x121618}from'ckeditor5/src/ui.js';import{AISuggestionContentPartStateView as _0x59904a}from'../../aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js';import{IconChevronDown as _0x4ec973,IconChevronUp as _0x5eb87b}from'ckeditor5/src/icons.js';function _0x4ad4(){const _0x2fb895=['_isErrorVisible','3429459mKPiod','_keystrokes','_state','setButtonsVisibility','change:isTrackChangesOn','previousButtonView','showError','showNext','1724758snyYzd','_togglePartToolbarButtonsVisibility','set','setTemplate','focus','execute','locale','bindTemplate','_toolbarContainerView','AI_BALLOON_PREVIOUS_LABEL','includes','172212zVhEwq','ck-ai-chat-balloon-main','showPrevious','_streamableContentView','insertSuggestion','nextButtonView','isEnabled','_errorView','isShowChangesOn','focusLast','focusCycler','destroy','tab','_config','_createNextButtonView','has','element','div','applySuggestion','full','5133210pamowN','_stateView','render','change:_state','isTrackChangesOn','isVisible','showDiff','children','_partToolbarView','updateContent','listenTo','ck-ai-chat-balloon__toolbar-container','add','showBlockingError','keepErrors','_focusables','bind','835170XDxDWT','12020328LAJKEo','ck-ai-chat-balloon-main_state_','availableActions','update','shift\x20+\x20tab','togglePartToolbarEnabled','pending','_miniToolbarView','25TfCEtO','createCollection','_focusTracker','2889820DDbqzx','toggleShowChanges','delegate','_createPreviousButtonView','7rCsIcW','focusFirst','hideError','AI_BALLOON_NEXT_LABEL','toggleRotatorButtonsVisibility','addMany','setState','rejectSuggestion','toggleSuggestionDisplayMode','fire'];_0x4ad4=function(){return _0x2fb895;};return _0x4ad4();}import{getTranslation as _0x238355}from'../../aicore/utils/common-translations.js';import'../../../theme/aichat/aichatballoon.css';function _0x3a37(_0x598e01,_0x5e8d95){const _0x4ad453=_0x4ad4();return _0x3a37=function(_0x3a373e,_0x5d08b3){_0x3a373e=_0x3a373e-0x19f;let _0x8f6e7a=_0x4ad453[_0x3a373e];return _0x8f6e7a;},_0x3a37(_0x598e01,_0x5e8d95);}export class AIChatBalloonView extends _0x3280cf{[_0x4762bc(0x19f)];[_0x4762bc(0x1dc)];[_0x4762bc(0x1c9)];[_0x4762bc(0x1e1)];[_0x4762bc(0x1a7)];[_0x4762bc(0x1b4)];[_0x4762bc(0x1c5)];[_0x4762bc(0x1e4)];[_0x4762bc(0x1da)];[_0x4762bc(0x1d4)];[_0x4762bc(0x1a0)];[_0x4762bc(0x1ec)];[_0x4762bc(0x1b1)];constructor(_0x58c94e,_0x22f498){const _0x24be5b=_0x4762bc;super(_0x58c94e);const _0xb1ec9b=this[_0x24be5b(0x1d3)];this[_0x24be5b(0x1ce)](_0x24be5b(0x1f1),!0x1),this[_0x24be5b(0x1ce)](_0x24be5b(0x1c6),_0x24be5b(0x1b0)),this[_0x24be5b(0x1b4)]=new _0x164a4a(),this[_0x24be5b(0x1c5)]=new _0x28a48e(),this[_0x24be5b(0x1a7)]=this[_0x24be5b(0x1b3)](),this[_0x24be5b(0x1e1)]=new _0x5d34c9({'focusables':this[_0x24be5b(0x1a7)],'focusTracker':this[_0x24be5b(0x1b4)],'keystrokeHandler':this[_0x24be5b(0x1c5)],'actions':{'focusPrevious':_0x24be5b(0x1ae),'focusNext':_0x24be5b(0x1e3)}}),this[_0x24be5b(0x1e4)]=_0x22f498,this[_0x24be5b(0x1dc)]=this[_0x24be5b(0x1e5)](),this[_0x24be5b(0x1c9)]=this[_0x24be5b(0x1b8)](),this[_0x24be5b(0x1da)]=new _0x26e921(_0x58c94e),this[_0x24be5b(0x1a0)]=new _0x2c98f2(_0x58c94e,_0x22f498[_0x24be5b(0x1ac)]),this[_0x24be5b(0x1a0)][_0x24be5b(0x1b7)](_0x24be5b(0x1e9),_0x24be5b(0x1db),_0x24be5b(0x1c0))['to'](this),this[_0x24be5b(0x1cd)](_0x22f498),this[_0x24be5b(0x1ec)]=new _0x59904a(_0x58c94e),this[_0x24be5b(0x1ec)][_0x24be5b(0x1f0)]=!0x1,this[_0x24be5b(0x1b1)]=new _0xd27de5(_0x58c94e,{'showChanges':_0x24be5b(0x1ea)}),this[_0x24be5b(0x1b1)][_0x24be5b(0x1a8)](_0x24be5b(0x1df))['to'](this,_0x24be5b(0x1f1)),this[_0x24be5b(0x1b1)]['on'](_0x24be5b(0x1b6),()=>{const _0x5cadd3=_0x24be5b;this[_0x5cadd3(0x1c2)](_0x5cadd3(0x1c1));}),this[_0x24be5b(0x1d4)]=new ms(_0x58c94e,[this[_0x24be5b(0x1a0)],this[_0x24be5b(0x1ec)],this[_0x24be5b(0x1b1)]]),this[_0x24be5b(0x19f)]=this[_0x24be5b(0x1b3)]([this[_0x24be5b(0x1da)],this[_0x24be5b(0x1d4)]]),this['on'](_0x24be5b(0x1ee),(_0x44f8f2,_0x57e09d,_0x2349df,_0x2537cc)=>{const _0x5f33ac=_0x24be5b;let _0x272fc5,_0x168612;_0x5f33ac(0x1b0)===_0x2537cc?(_0x272fc5=this[_0x5f33ac(0x1a0)],_0x168612=this[_0x5f33ac(0x1ec)]):(_0x272fc5=this[_0x5f33ac(0x1ec)],_0x168612=this[_0x5f33ac(0x1a0)]),this[_0x5f33ac(0x1ec)][_0x5f33ac(0x1bf)](_0x2349df),_0x272fc5[_0x5f33ac(0x1f0)]=!0x1,_0x168612[_0x5f33ac(0x1f0)]=!0x0;}),this[_0x24be5b(0x1cf)]({'tag':_0x24be5b(0x1e8),'attributes':{'class':['ck',_0x24be5b(0x1d8),_0xb1ec9b['to'](_0x24be5b(0x1c6),_0x3b91ac=>_0x24be5b(0x1ab)+_0x3b91ac)]},'children':this[_0x24be5b(0x19f)]}),this['on'](_0x24be5b(0x1c8),()=>{const _0xb6634d=_0x24be5b;this[_0xb6634d(0x1cd)](_0x22f498);});}[_0x4762bc(0x1ed)](){const _0x1af542=_0x4762bc;super[_0x1af542(0x1ed)](),this[_0x1af542(0x1dc)][_0x1af542(0x1ed)](),this[_0x1af542(0x1c9)][_0x1af542(0x1ed)](),this[_0x1af542(0x1b4)][_0x1af542(0x1a4)](this[_0x1af542(0x1e7)]),this[_0x1af542(0x1b4)][_0x1af542(0x1a4)](this[_0x1af542(0x1dc)]),this[_0x1af542(0x1b4)][_0x1af542(0x1a4)](this[_0x1af542(0x1c9)]),this[_0x1af542(0x1b4)][_0x1af542(0x1a4)](this[_0x1af542(0x1b1)]),this[_0x1af542(0x1b4)][_0x1af542(0x1a4)](this[_0x1af542(0x1a0)]),this[_0x1af542(0x1c5)][_0x1af542(0x1a2)](this[_0x1af542(0x1e7)]),this[_0x1af542(0x1c5)][_0x1af542(0x1a2)](this[_0x1af542(0x1dc)][_0x1af542(0x1e7)]),this[_0x1af542(0x1c5)][_0x1af542(0x1a2)](this[_0x1af542(0x1c9)][_0x1af542(0x1e7)]),this[_0x1af542(0x1a7)][_0x1af542(0x1be)]([this[_0x1af542(0x1dc)],this[_0x1af542(0x1c9)],this[_0x1af542(0x1a0)],this[_0x1af542(0x1b1)]]);}[_0x4762bc(0x1e2)](){const _0x4ea4c0=_0x4762bc;super[_0x4ea4c0(0x1e2)](),this[_0x4ea4c0(0x1c9)][_0x4ea4c0(0x1e2)](),this[_0x4ea4c0(0x1dc)][_0x4ea4c0(0x1e2)]();}[_0x4762bc(0x1d0)](){const _0xd67642=_0x4762bc;this[_0xd67642(0x1e1)][_0xd67642(0x1ba)]();}[_0x4762bc(0x1e0)](){const _0x4f5d3f=_0x4762bc;this[_0x4f5d3f(0x1e1)][_0x4f5d3f(0x1e0)]();}async[_0x4762bc(0x1a1)](_0x2ea7c5){const _0x36ae00=_0x4762bc;_0x2ea7c5?.[_0x36ae00(0x1a6)]||this[_0x36ae00(0x1bb)](),await this[_0x36ae00(0x1da)][_0x36ae00(0x1ad)](_0x2ea7c5);}[_0x4762bc(0x1bf)](_0x50a168){const _0x369f84=_0x4762bc;this[_0x369f84(0x1c6)]=_0x50a168;}[_0x4762bc(0x1ca)](_0x436f52){const _0x38bce4=_0x4762bc;super[_0x38bce4(0x1ca)](_0x436f52),this[_0x38bce4(0x19f)][_0x38bce4(0x1e6)](this[_0x38bce4(0x1de)])||this[_0x38bce4(0x19f)][_0x38bce4(0x1a4)](this[_0x38bce4(0x1de)],0x0);}[_0x4762bc(0x1bb)](){const _0x58279d=_0x4762bc;this[_0x58279d(0x1c3)]&&(super[_0x58279d(0x1bb)](),this[_0x58279d(0x1af)](!0x0));}[_0x4762bc(0x1a5)](_0x22e98e){const _0x55a326=_0x4762bc;super[_0x55a326(0x1a5)](_0x22e98e),this[_0x55a326(0x1af)](!0x1);}[_0x4762bc(0x1bd)](_0x4559fe){const _0x5d2fba=_0x4762bc;this[_0x5d2fba(0x1dc)][_0x5d2fba(0x1f0)]=this[_0x5d2fba(0x1c9)][_0x5d2fba(0x1f0)]=_0x4559fe;}[_0x4762bc(0x1af)](_0x509606){const _0x475100=_0x4762bc;this[_0x475100(0x1a0)][_0x475100(0x1dd)]=_0x509606;}[_0x4762bc(0x1cd)]({showApplyButton:_0x11851a,showSuggestButton:_0x187deb}){const _0x5a9557=_0x4762bc;_0x11851a=_0x11851a&&!this[_0x5a9557(0x1ef)]&&this[_0x5a9557(0x1e4)][_0x5a9557(0x1ac)][_0x5a9557(0x1d6)](_0x5a9557(0x1e9)),_0x187deb=_0x187deb&&this[_0x5a9557(0x1e4)][_0x5a9557(0x1ac)][_0x5a9557(0x1d6)](_0x5a9557(0x1db)),this[_0x5a9557(0x1a0)][_0x5a9557(0x1c7)]({'showApplyButton':_0x11851a,'showSuggestButton':_0x187deb});}[_0x4762bc(0x1e5)](){const _0x5f4b65=_0x4762bc,_0x5baf62=new _0x382600(this[_0x5f4b65(0x1d2)]);return _0x5baf62[_0x5f4b65(0x1ce)]({'icon':_0x4ec973,'label':_0x238355(this[_0x5f4b65(0x1d2)],_0x5f4b65(0x1bc)),'isVisible':!0x0}),_0x5baf62['on'](_0x5f4b65(0x1d1),()=>{const _0xb9caab=_0x5f4b65;this[_0xb9caab(0x1c2)](_0xb9caab(0x1cb));}),_0x5baf62;}[_0x4762bc(0x1b8)](){const _0x519b6a=_0x4762bc,_0x199d43=new _0x382600(this[_0x519b6a(0x1d2)]);return _0x199d43[_0x519b6a(0x1ce)]({'icon':_0x5eb87b,'label':_0x238355(this[_0x519b6a(0x1d2)],_0x519b6a(0x1d5)),'isVisible':!0x0}),_0x199d43['on'](_0x519b6a(0x1d1),()=>{const _0x3abffe=_0x519b6a;this[_0x3abffe(0x1c2)](_0x3abffe(0x1d9));}),_0x199d43;}}class ms extends _0x121618{constructor(_0x2499e,_0x13322b){const _0x2ecdce=_0x4762bc;super(_0x2499e),this[_0x2ecdce(0x1cf)]({'tag':_0x2ecdce(0x1e8),'attributes':{'class':[_0x2ecdce(0x1a3)]},'children':_0x13322b});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3b0ff1=_0x1ee2;(function(_0x4d83f0,_0x40a4e8){const _0x5d2e64=_0x1ee2,_0x5624c2=_0x4d83f0();while(!![]){try{const _0x3fc90c=parseInt(_0x5d2e64(0x9d))/0x1*(-parseInt(_0x5d2e64(0x92))/0x2)+parseInt(_0x5d2e64(0x79))/0x3+parseInt(_0x5d2e64(0xa0))/0x4+parseInt(_0x5d2e64(0x9f))/0x5+-parseInt(_0x5d2e64(0x98))/0x6+-parseInt(_0x5d2e64(0x96))/0x7+parseInt(_0x5d2e64(0xa3))/0x8*(-parseInt(_0x5d2e64(0xae))/0x9);if(_0x3fc90c===_0x40a4e8)break;else _0x5624c2['push'](_0x5624c2['shift']());}catch(_0x267100){_0x5624c2['push'](_0x5624c2['shift']());}}}(_0x51c2,0x86fb3));import{ButtonView as _0x24dc57,clickOutsideHandler as _0xcc6d6,View as _0x3fb8c4}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x3e6de3}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x38cf39}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x46a47f,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x401610}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x393608}from'./controls/aichatcontrolsloaderview.js';import{getTranslation as _0x42be37}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';function _0x51c2(){const _0x55579e=['setPromptInputValue','setContextItemLoading','updateResourceState','_loaderView','_promptCapabilitiesView','removeContextItem','_contextPanelView','_promptInputView','setWebSearch','ck-ai-chat-controls__start-new-chat-button','delegate','setConversationContext','startConversation','low','addContextButtonView','60844bhnkVg','isDisabled','toggleReasoning','bindTemplate','3359986ucFVaw','set','1013856keokig','_shouldRestorePromptInputFocus','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','value','fieldView','10YqHmeQ','div','4358065NHWHqZ','3216168ltinBb','focusPromptInput','_createLoaderView','9605184KKauMJ','setTemplate','_createPromptCapabilitiesView','change:isLoading','_modelUnavailableMessageView','setAddContextOptions','sendUserMessage','ck-hidden','abortPromptStream','setPlaceholderText','contextResourcesSearchInputVisibleFrom','9axDRMV','_createContextPanelView','addContextItem','clearConversationContextItems','execute','queryView','setIsUploadInProgress','ck-ai-chat-controls','isLoading','resetMessageInput','clearConversationContextUI','locale','enableModelSelector','clearCurrentContextItems','setModel','element','isModelAvailable','focus','setReasoning','closeSourceResourceBalloon','form','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','disableModelSelector','ck-ai-chat-controls-model-unavailable-message','reset','toggleWebSearch','selectModel','3093210jAFilt','bodyCollection','ck-ai-chat-controls-disabled','setModelList','_handlePromptInputFocus','_createModelUnavailableMessageView','_createPromptInputView','populateSourceResourceBalloon','setInputPlaceholder','clearPendingContextUI'];_0x51c2=function(){return _0x55579e;};return _0x51c2();}import'../../../theme/aichat/aichat-controls/aichat-context-controls.css';import'../../../theme/aichat/aichat-controls/aichat-context-chip.css';import'../../../theme/aichat/aichat-controls/aichat-controls-button.css';import'../../../theme/aichat/aichat-controls/aichat-controls-loader.css';function _0x1ee2(_0x460d84,_0x233f50){const _0x51c24a=_0x51c2();return _0x1ee2=function(_0x1ee272,_0x29ebbc){_0x1ee272=_0x1ee272-0x65;let _0x38ac32=_0x51c24a[_0x1ee272];return _0x38ac32;},_0x1ee2(_0x460d84,_0x233f50);}import'../../../theme/aichat/aichat-controls/aichat-context-controls-balloon-panels.css';export class AIChatControlsView extends _0x3fb8c4{[_0x3b0ff1(0x89)];[_0x3b0ff1(0x8a)];[_0x3b0ff1(0x87)];[_0x3b0ff1(0x86)];[_0x3b0ff1(0xa7)];[_0x3b0ff1(0x99)];constructor(_0x559f06,_0x16b422){const _0x5cab34=_0x3b0ff1;super(_0x559f06),this[_0x5cab34(0x89)]=this[_0x5cab34(0xaf)](_0x559f06,{'bodyCollection':_0x16b422[_0x5cab34(0x7a)],'searchInputVisibleFrom':_0x16b422[_0x5cab34(0xad)]}),this[_0x5cab34(0x8a)]=this[_0x5cab34(0x7f)](_0x559f06),this[_0x5cab34(0x87)]=this[_0x5cab34(0xa5)](_0x559f06),this[_0x5cab34(0x86)]=this[_0x5cab34(0xa2)](_0x559f06),this[_0x5cab34(0xa7)]=this[_0x5cab34(0x7e)](_0x559f06),this[_0x5cab34(0x99)]=!0x1,this[_0x5cab34(0x8a)][_0x5cab34(0x8d)](_0x5cab34(0xa9))['to'](this),this[_0x5cab34(0x86)][_0x5cab34(0x8d)](_0x5cab34(0xab))['to'](this),this[_0x5cab34(0x87)][_0x5cab34(0x8d)](_0x5cab34(0x77))['to'](this),this[_0x5cab34(0x87)][_0x5cab34(0x8d)](_0x5cab34(0x94))['to'](this),this[_0x5cab34(0x87)][_0x5cab34(0x8d)](_0x5cab34(0x78))['to'](this),this[_0x5cab34(0x89)][_0x5cab34(0x8d)](..._0x401610)['to'](this),this[_0x5cab34(0x97)](_0x5cab34(0x6e),!0x0),this[_0x5cab34(0x97)](_0x5cab34(0x93),!0x1);const _0x595573=this[_0x5cab34(0x95)];this[_0x5cab34(0xa4)]({'tag':_0x5cab34(0x72),'attributes':{'class':['ck',_0x5cab34(0x65),_0x595573['if'](_0x5cab34(0x93),_0x5cab34(0x7b))]},'children':[{'tag':_0x5cab34(0x9e),'attributes':{'class':[_0x595573['if'](_0x5cab34(0x66),_0x5cab34(0xaa),_0x27a56c=>_0x27a56c||!this[_0x5cab34(0x6e)]),_0x595573['if'](_0x5cab34(0x6e),_0x5cab34(0xaa),_0x210826=>!_0x210826||this[_0x5cab34(0x66)])]},'children':[this[_0x5cab34(0x89)],this[_0x5cab34(0x8a)],this[_0x5cab34(0x87)]]},{'tag':_0x5cab34(0x9e),'attributes':{'class':[_0x595573['if'](_0x5cab34(0x66),_0x5cab34(0xaa),_0x143147=>!_0x143147)]},'children':[this[_0x5cab34(0x86)]]},{'tag':_0x5cab34(0x9e),'attributes':{'class':[_0x595573['if'](_0x5cab34(0x6e),_0x5cab34(0xaa),_0x54c604=>_0x54c604)]},'children':[this[_0x5cab34(0xa7)]]}]}),_0xcc6d6({'emitter':this[_0x5cab34(0x8a)],'activator':()=>this[_0x5cab34(0x66)],'contextElements':()=>[this[_0x5cab34(0x6d)]],'callback':()=>{const _0x52fd29=_0x5cab34;this[_0x52fd29(0x99)]=!0x1;}}),this['on'](_0x5cab34(0xa6),this[_0x5cab34(0x7d)],{'priority':_0x5cab34(0x90)});}[_0x3b0ff1(0xaf)](_0x209cce,_0x4510d4){return new _0x46a47f(_0x209cce,_0x4510d4);}[_0x3b0ff1(0x7f)](_0xff3baa){const _0x332d9f=_0x3b0ff1;return new _0x3e6de3(_0xff3baa,this[_0x332d9f(0x89)][_0x332d9f(0x91)]);}[_0x3b0ff1(0xa5)](_0x44c06b){return new _0x38cf39(_0x44c06b);}[_0x3b0ff1(0xa2)](_0x20a532){return new _0x393608(_0x20a532);}[_0x3b0ff1(0x7e)](_0x3e6f76){const _0x407175=_0x3b0ff1,_0x2da5e7=new As(_0x3e6f76);return _0x2da5e7[_0x407175(0x8d)](_0x407175(0x8f))['to'](this),_0x2da5e7;}[_0x3b0ff1(0x7d)](_0x3166ca,_0x2f9029,_0x4b85f7){const _0x2a9ba2=_0x3b0ff1;_0x4b85f7?this[_0x2a9ba2(0x99)]=!0x0:this[_0x2a9ba2(0x99)]&&this[_0x2a9ba2(0x8a)][_0x2a9ba2(0x6f)]();}[_0x3b0ff1(0xb0)](_0x179d18,_0x48fd1c){const _0x14e462=_0x3b0ff1;this[_0x14e462(0x89)][_0x14e462(0xb0)](_0x179d18,_0x48fd1c);}[_0x3b0ff1(0x88)](_0xec147c){const _0x26c8b7=_0x3b0ff1;this[_0x26c8b7(0x89)][_0x26c8b7(0x88)](_0xec147c);}[_0x3b0ff1(0x84)](_0x40bb8e,_0x3916e0){const _0x522dda=_0x3b0ff1;this[_0x522dda(0x89)][_0x522dda(0x84)](_0x40bb8e,_0x3916e0);}[_0x3b0ff1(0xb4)](_0x32f0fb){const _0x15c32b=_0x3b0ff1;this[_0x15c32b(0x8a)][_0x15c32b(0xb4)](_0x32f0fb);}[_0x3b0ff1(0x8e)](_0x40a867){const _0x4cc7df=_0x3b0ff1;this[_0x4cc7df(0x89)][_0x4cc7df(0x8e)](_0x40a867);}[_0x3b0ff1(0x82)](){const _0x19321a=_0x3b0ff1;this[_0x19321a(0x89)][_0x19321a(0x6b)]();}[_0x3b0ff1(0x68)](){const _0x4f3f6d=_0x3b0ff1;this[_0x4f3f6d(0x89)][_0x4f3f6d(0xb1)]();}[_0x3b0ff1(0x85)](_0x1a4b43,_0x427420,_0x292190){const _0x44f44a=_0x3b0ff1;this[_0x44f44a(0x89)][_0x44f44a(0x85)](_0x1a4b43,_0x427420,_0x292190);}[_0x3b0ff1(0x8b)](_0x583a41){const _0x1ae95f=_0x3b0ff1;this[_0x1ae95f(0x87)][_0x1ae95f(0x8b)](_0x583a41);}[_0x3b0ff1(0x70)](_0x3d010f){const _0x28e65c=_0x3b0ff1;this[_0x28e65c(0x87)][_0x28e65c(0x70)](_0x3d010f);}[_0x3b0ff1(0x67)](){const _0x89f3bd=_0x3b0ff1;this[_0x89f3bd(0x8a)][_0x89f3bd(0x76)]();}[_0x3b0ff1(0xa8)](_0x3cf1fc){const _0x2a41df=_0x3b0ff1;this[_0x2a41df(0x89)][_0x2a41df(0xa8)](_0x3cf1fc);}[_0x3b0ff1(0x81)](_0x1a5d21){const _0x3afc49=_0x3b0ff1;this[_0x3afc49(0x8a)][_0x3afc49(0xac)](_0x1a5d21);}[_0x3b0ff1(0x7c)](_0x41def9,_0x4597cf){const _0x30d638=_0x3b0ff1;this[_0x30d638(0x87)][_0x30d638(0x7c)](_0x41def9,_0x4597cf);}[_0x3b0ff1(0x6c)](_0x46d9cc){const _0x31d91a=_0x3b0ff1;_0x46d9cc?(this[_0x31d91a(0x6e)]=!0x0,this[_0x31d91a(0x87)][_0x31d91a(0x6c)](_0x46d9cc)):this[_0x31d91a(0x6e)]=!0x1;}[_0x3b0ff1(0x6a)](){const _0x5ab637=_0x3b0ff1;this[_0x5ab637(0x87)][_0x5ab637(0x6a)]();}[_0x3b0ff1(0x74)](_0x5b250d){const _0x56b964=_0x3b0ff1;this[_0x56b964(0x87)][_0x56b964(0x74)](_0x5b250d);}[_0x3b0ff1(0x80)](_0x23ef3e,_0x254428,_0x38be2d,_0x38fc49){const _0x318534=_0x3b0ff1;this[_0x318534(0x89)][_0x318534(0x80)](_0x23ef3e,_0x254428,_0x38be2d,_0x38fc49);}[_0x3b0ff1(0x71)](_0x3a83cf){const _0x22bbc4=_0x3b0ff1;this[_0x22bbc4(0x89)][_0x22bbc4(0x71)](_0x3a83cf);}[_0x3b0ff1(0xa1)](_0x7e3766=!0x1){const _0xfb266=_0x3b0ff1;this[_0xfb266(0x8a)][_0xfb266(0x6f)](_0x7e3766);}[_0x3b0ff1(0x83)](_0x22b1e8){const _0xe28511=_0x3b0ff1;this[_0xe28511(0x8a)][_0xe28511(0xb3)][_0xe28511(0x9c)][_0xe28511(0x76)](),this[_0xe28511(0x8a)][_0xe28511(0xb3)][_0xe28511(0x9c)][_0xe28511(0x9b)]=_0x22b1e8;}}class As extends _0x3fb8c4{constructor(_0x3d842e){const _0x1202ee=_0x3b0ff1;super(_0x3d842e);const _0x258444=new _0x24dc57(_0x3d842e);_0x258444[_0x1202ee(0x97)]({'label':_0x42be37(this[_0x1202ee(0x69)],_0x1202ee(0x73)),'withText':!0x0,'class':[_0x1202ee(0x8c)],'tooltip':''}),_0x258444[_0x1202ee(0x8d)](_0x1202ee(0xb2))['to'](this,_0x1202ee(0x8f)),this[_0x1202ee(0xa4)]({'tag':_0x1202ee(0x9e),'attributes':{'class':['ck',_0x1202ee(0x75)]},'children':[{'tag':'p','children':[{'text':_0x42be37(this[_0x1202ee(0x69)],_0x1202ee(0x9a))+'\x20'},_0x258444]}]});}}
23
+ const _0x58bee5=_0x1d95;(function(_0x330d3d,_0x202ce7){const _0x50fb7b=_0x1d95,_0x567522=_0x330d3d();while(!![]){try{const _0x382f91=parseInt(_0x50fb7b(0x226))/0x1+-parseInt(_0x50fb7b(0x1e7))/0x2*(parseInt(_0x50fb7b(0x1f4))/0x3)+-parseInt(_0x50fb7b(0x1ee))/0x4*(parseInt(_0x50fb7b(0x219))/0x5)+parseInt(_0x50fb7b(0x1eb))/0x6+parseInt(_0x50fb7b(0x1ec))/0x7*(-parseInt(_0x50fb7b(0x1fb))/0x8)+-parseInt(_0x50fb7b(0x1fd))/0x9+parseInt(_0x50fb7b(0x211))/0xa;if(_0x382f91===_0x202ce7)break;else _0x567522['push'](_0x567522['shift']());}catch(_0x5725df){_0x567522['push'](_0x567522['shift']());}}}(_0x3cab,0xd5653));import{ButtonView as _0x55e553,clickOutsideHandler as _0x46c4fa,View as _0x3e2b67}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x7e15}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x4d3f85}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x4aa6f3,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x116f2d}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x41dca5}from'./controls/aichatcontrolsloaderview.js';import{getTranslation as _0x255dcb}from'../../aicore/utils/common-translations.js';function _0x3cab(){const _0x2cb04c=['focusPromptInput','reset','isDisabled','setReasoning','sendUserMessage','bodyCollection','_createContextPanelView','bindTemplate','setIsUploadInProgress','setModel','closeSourceResourceBalloon','selectModel','clearConversationContextItems','change:isLoading','19198490OnrEFC','_contextPanelView','_handlePromptInputFocus','locale','_createPromptInputView','_promptInputView','updateResourceState','addContextButtonView','5cTiQZi','clearPendingContextUI','form','setModelList','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','element','ck-ai-chat-controls-disabled','_promptCapabilitiesView','_shouldRestorePromptInputFocus','setInputPlaceholder','delegate','focus','setPromptInputValue','876602IkBnkx','isModelAvailable','div','startConversation','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','setConversationContext','_modelUnavailableMessageView','isLoading','_createModelUnavailableMessageView','queryView','setAddContextOptions','execute','resetMessageInput','abortPromptStream','_loaderView','fieldView','value','disableModelSelector','6BNXyZC','removeContextItem','ck-ai-chat-controls-model-unavailable-message','addContextItem','6526110uruDzH','8516410aFUtCH','ck-ai-chat-controls__start-new-chat-button','4273748rBGyjj','clearCurrentContextItems','toggleWebSearch','setContextItemLoading','populateSourceResourceBalloon','contextResourcesSearchInputVisibleFrom','212496apZJMo','set','enableModelSelector','toggleReasoning','low','ck-ai-chat-controls','_createLoaderView','8PrKZGo','clearConversationContextUI','4612554fDNrRJ','_createPromptCapabilitiesView','setTemplate','setWebSearch','ck-hidden','setPlaceholderText'];_0x3cab=function(){return _0x2cb04c;};return _0x3cab();}function _0x1d95(_0x5a5365,_0x49ec5c){const _0x3cab21=_0x3cab();return _0x1d95=function(_0x1d95f9,_0x4b18fa){_0x1d95f9=_0x1d95f9-0x1de;let _0xac1ec0=_0x3cab21[_0x1d95f9];return _0xac1ec0;},_0x1d95(_0x5a5365,_0x49ec5c);}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 _0x3e2b67{[_0x58bee5(0x212)];[_0x58bee5(0x216)];[_0x58bee5(0x220)];[_0x58bee5(0x1e3)];[_0x58bee5(0x22c)];[_0x58bee5(0x221)];constructor(_0x15cd96,_0x5c0a31){const _0x4f5676=_0x58bee5;super(_0x15cd96),this[_0x4f5676(0x212)]=this[_0x4f5676(0x209)](_0x15cd96,{'bodyCollection':_0x5c0a31[_0x4f5676(0x208)],'searchInputVisibleFrom':_0x5c0a31[_0x4f5676(0x1f3)]}),this[_0x4f5676(0x216)]=this[_0x4f5676(0x215)](_0x15cd96),this[_0x4f5676(0x220)]=this[_0x4f5676(0x1fe)](_0x15cd96),this[_0x4f5676(0x1e3)]=this[_0x4f5676(0x1fa)](_0x15cd96),this[_0x4f5676(0x22c)]=this[_0x4f5676(0x22e)](_0x15cd96),this[_0x4f5676(0x221)]=!0x1,this[_0x4f5676(0x216)][_0x4f5676(0x223)](_0x4f5676(0x207))['to'](this),this[_0x4f5676(0x1e3)][_0x4f5676(0x223)](_0x4f5676(0x1e2))['to'](this),this[_0x4f5676(0x220)][_0x4f5676(0x223)](_0x4f5676(0x1f0))['to'](this),this[_0x4f5676(0x220)][_0x4f5676(0x223)](_0x4f5676(0x1f7))['to'](this),this[_0x4f5676(0x220)][_0x4f5676(0x223)](_0x4f5676(0x20e))['to'](this),this[_0x4f5676(0x212)][_0x4f5676(0x223)](..._0x116f2d)['to'](this),this[_0x4f5676(0x1f5)](_0x4f5676(0x227),!0x0),this[_0x4f5676(0x1f5)](_0x4f5676(0x205),!0x1);const _0x3e6bc3=this[_0x4f5676(0x20a)];this[_0x4f5676(0x1ff)]({'tag':_0x4f5676(0x21b),'attributes':{'class':['ck',_0x4f5676(0x1f9),_0x3e6bc3['if'](_0x4f5676(0x205),_0x4f5676(0x21f))]},'children':[{'tag':_0x4f5676(0x228),'attributes':{'class':[_0x3e6bc3['if'](_0x4f5676(0x22d),_0x4f5676(0x201),_0x542124=>_0x542124||!this[_0x4f5676(0x227)]),_0x3e6bc3['if'](_0x4f5676(0x227),_0x4f5676(0x201),_0x578b4e=>!_0x578b4e||this[_0x4f5676(0x22d)])]},'children':[this[_0x4f5676(0x212)],this[_0x4f5676(0x216)],this[_0x4f5676(0x220)]]},{'tag':_0x4f5676(0x228),'attributes':{'class':[_0x3e6bc3['if'](_0x4f5676(0x22d),_0x4f5676(0x201),_0x2caf17=>!_0x2caf17)]},'children':[this[_0x4f5676(0x1e3)]]},{'tag':_0x4f5676(0x228),'attributes':{'class':[_0x3e6bc3['if'](_0x4f5676(0x227),_0x4f5676(0x201),_0x415f59=>_0x415f59)]},'children':[this[_0x4f5676(0x22c)]]}]}),_0x46c4fa({'emitter':this[_0x4f5676(0x216)],'activator':()=>this[_0x4f5676(0x22d)],'contextElements':()=>[this[_0x4f5676(0x21e)]],'callback':()=>{const _0x53515a=_0x4f5676;this[_0x53515a(0x221)]=!0x1;}}),this['on'](_0x4f5676(0x210),this[_0x4f5676(0x213)],{'priority':_0x4f5676(0x1f8)});}[_0x58bee5(0x209)](_0x274ad4,_0x193a7f){return new _0x4aa6f3(_0x274ad4,_0x193a7f);}[_0x58bee5(0x215)](_0x2ead52){const _0x348c2e=_0x58bee5;return new _0x7e15(_0x2ead52,this[_0x348c2e(0x212)][_0x348c2e(0x218)]);}[_0x58bee5(0x1fe)](_0x4cca0e){return new _0x4d3f85(_0x4cca0e);}[_0x58bee5(0x1fa)](_0x33057e){return new _0x41dca5(_0x33057e);}[_0x58bee5(0x22e)](_0x6d5e54){const _0x4ba1ff=_0x58bee5,_0xc38a66=new As(_0x6d5e54);return _0xc38a66[_0x4ba1ff(0x223)](_0x4ba1ff(0x229))['to'](this),_0xc38a66;}[_0x58bee5(0x213)](_0x1eb2e0,_0x5d78f1,_0x22ddaf){const _0x5f32ea=_0x58bee5;_0x22ddaf?this[_0x5f32ea(0x221)]=!0x0:this[_0x5f32ea(0x221)]&&this[_0x5f32ea(0x216)][_0x5f32ea(0x224)]();}[_0x58bee5(0x1ea)](_0x78e6da,_0x30cb6c){const _0x5d78c8=_0x58bee5;this[_0x5d78c8(0x212)][_0x5d78c8(0x1ea)](_0x78e6da,_0x30cb6c);}[_0x58bee5(0x1e8)](_0xa06646){const _0x677f38=_0x58bee5;this[_0x677f38(0x212)][_0x677f38(0x1e8)](_0xa06646);}[_0x58bee5(0x1f1)](_0x57420a,_0x241c59){const _0xd36d2c=_0x58bee5;this[_0xd36d2c(0x212)][_0xd36d2c(0x1f1)](_0x57420a,_0x241c59);}[_0x58bee5(0x20b)](_0x4ce89e){const _0x1da2f3=_0x58bee5;this[_0x1da2f3(0x216)][_0x1da2f3(0x20b)](_0x4ce89e);}[_0x58bee5(0x22b)](_0x2815f6){const _0x2a921e=_0x58bee5;this[_0x2a921e(0x212)][_0x2a921e(0x22b)](_0x2815f6);}[_0x58bee5(0x21a)](){const _0x46585c=_0x58bee5;this[_0x46585c(0x212)][_0x46585c(0x1ef)]();}[_0x58bee5(0x1fc)](){const _0x394e04=_0x58bee5;this[_0x394e04(0x212)][_0x394e04(0x20f)]();}[_0x58bee5(0x217)](_0x5d6a54,_0x27de77,_0x5f29bc){const _0x486434=_0x58bee5;this[_0x486434(0x212)][_0x486434(0x217)](_0x5d6a54,_0x27de77,_0x5f29bc);}[_0x58bee5(0x200)](_0x1dab2d){const _0x1b8424=_0x58bee5;this[_0x1b8424(0x220)][_0x1b8424(0x200)](_0x1dab2d);}[_0x58bee5(0x206)](_0x2989f9){const _0x5a3031=_0x58bee5;this[_0x5a3031(0x220)][_0x5a3031(0x206)](_0x2989f9);}[_0x58bee5(0x1e1)](){const _0x553eb0=_0x58bee5;this[_0x553eb0(0x216)][_0x553eb0(0x204)]();}[_0x58bee5(0x1df)](_0xc11dab){const _0x1893d1=_0x58bee5;this[_0x1893d1(0x212)][_0x1893d1(0x1df)](_0xc11dab);}[_0x58bee5(0x222)](_0x19d8de){const _0x81c15c=_0x58bee5;this[_0x81c15c(0x216)][_0x81c15c(0x202)](_0x19d8de);}[_0x58bee5(0x21c)](_0x36bf83,_0x418f9a){const _0x3d40af=_0x58bee5;this[_0x3d40af(0x220)][_0x3d40af(0x21c)](_0x36bf83,_0x418f9a);}[_0x58bee5(0x20c)](_0x1c42f9){const _0x8f450e=_0x58bee5;_0x1c42f9?(this[_0x8f450e(0x227)]=!0x0,this[_0x8f450e(0x220)][_0x8f450e(0x20c)](_0x1c42f9)):this[_0x8f450e(0x227)]=!0x1;}[_0x58bee5(0x1f6)](){const _0xfdc56=_0x58bee5;this[_0xfdc56(0x220)][_0xfdc56(0x1f6)]();}[_0x58bee5(0x1e6)](_0x4bbafa){const _0x4c7daf=_0x58bee5;this[_0x4c7daf(0x220)][_0x4c7daf(0x1e6)](_0x4bbafa);}[_0x58bee5(0x1f2)](_0x1e1219,_0x6de760,_0x43b492,_0x2db2ee){const _0x3a560b=_0x58bee5;this[_0x3a560b(0x212)][_0x3a560b(0x1f2)](_0x1e1219,_0x6de760,_0x43b492,_0x2db2ee);}[_0x58bee5(0x20d)](_0xfaa319){const _0x3b2bcf=_0x58bee5;this[_0x3b2bcf(0x212)][_0x3b2bcf(0x20d)](_0xfaa319);}[_0x58bee5(0x203)](_0x53c0db=!0x1){const _0x12b65c=_0x58bee5;this[_0x12b65c(0x216)][_0x12b65c(0x224)](_0x53c0db);}[_0x58bee5(0x225)](_0x1d10b7){const _0x59dd86=_0x58bee5;this[_0x59dd86(0x216)][_0x59dd86(0x1de)][_0x59dd86(0x1e4)][_0x59dd86(0x204)](),this[_0x59dd86(0x216)][_0x59dd86(0x1de)][_0x59dd86(0x1e4)][_0x59dd86(0x1e5)]=_0x1d10b7;}}class As extends _0x3e2b67{constructor(_0x1e05e0){const _0x3f9bee=_0x58bee5;super(_0x1e05e0);const _0x4522c3=new _0x55e553(_0x1e05e0);_0x4522c3[_0x3f9bee(0x1f5)]({'label':_0x255dcb(this[_0x3f9bee(0x214)],_0x3f9bee(0x22a)),'withText':!0x0,'class':[_0x3f9bee(0x1ed)],'tooltip':''}),_0x4522c3[_0x3f9bee(0x223)](_0x3f9bee(0x1e0))['to'](this,_0x3f9bee(0x229)),this[_0x3f9bee(0x1ff)]({'tag':_0x3f9bee(0x228),'attributes':{'class':['ck',_0x3f9bee(0x1e9)]},'children':[{'tag':'p','children':[{'text':_0x255dcb(this[_0x3f9bee(0x214)],_0x3f9bee(0x21d))+'\x20'},_0x4522c3]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x153c02=_0x5706;(function(_0x14277a,_0x8e6b20){const _0x22e7b9=_0x5706,_0x11b208=_0x14277a();while(!![]){try{const _0x1936d3=-parseInt(_0x22e7b9(0x203))/0x1*(-parseInt(_0x22e7b9(0x1fa))/0x2)+parseInt(_0x22e7b9(0x1da))/0x3*(parseInt(_0x22e7b9(0x1f6))/0x4)+-parseInt(_0x22e7b9(0x1cd))/0x5*(parseInt(_0x22e7b9(0x1ed))/0x6)+parseInt(_0x22e7b9(0x205))/0x7*(-parseInt(_0x22e7b9(0x204))/0x8)+parseInt(_0x22e7b9(0x1cb))/0x9*(-parseInt(_0x22e7b9(0x213))/0xa)+parseInt(_0x22e7b9(0x1e8))/0xb+-parseInt(_0x22e7b9(0x1e0))/0xc;if(_0x1936d3===_0x8e6b20)break;else _0x11b208['push'](_0x11b208['shift']());}catch(_0x40bfbd){_0x11b208['push'](_0x11b208['shift']());}}}(_0x4868,0xe2020));function _0x5706(_0x13c05c,_0x4ea185){const _0x48687c=_0x4868();return _0x5706=function(_0x5706e3,_0x131e99){_0x5706e3=_0x5706e3-0x1c4;let _0x4cbcf0=_0x48687c[_0x5706e3];return _0x4cbcf0;},_0x5706(_0x13c05c,_0x4ea185);}import{CKEditorError as _0x324a99,logWarning as _0xb780da,scrollAncestorsToShowTarget as _0xd1d823}from'ckeditor5/src/utils.js';import{View as _0x354d30}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x901d20}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x33de81}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x24aec3}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x3af46c}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x4a3934}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x517375}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0xdb090e}from'../../aicore/utils/scrollmanager.js';import{AISkeletonView as _0x2f421d,SKELETON_DEFINITIONS as _0x353b56}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x2b7594}from'../../aicore/ui/aispinner.js';import{AIChatFeedCustomElementView as _0x1205c3}from'./feed/aichatfeedcustomelementview.js';import'../../../theme/aichat/aichatfeed.css';export class AIChatFeedView extends _0x354d30{[_0x153c02(0x217)];[_0x153c02(0x1e7)];[_0x153c02(0x1ef)];constructor(_0x43e1fd,_0x5d0265){const _0x36ca7b=_0x153c02;super(_0x43e1fd),this[_0x36ca7b(0x1ef)]=_0x5d0265,this[_0x36ca7b(0x1d9)](_0x36ca7b(0x1db),!0x1),this[_0x36ca7b(0x1d9)](_0x36ca7b(0x214),''),this[_0x36ca7b(0x1d9)](_0x36ca7b(0x20a),!0x1),this[_0x36ca7b(0x1d9)](_0x36ca7b(0x1dd),!0x1),this[_0x36ca7b(0x217)]=this[_0x36ca7b(0x1fd)](),this[_0x36ca7b(0x217)][_0x36ca7b(0x1f8)](..._0x901d20)['to'](this),this[_0x36ca7b(0x20d)]();}[_0x153c02(0x20f)](){const _0x36f289=_0x153c02;super[_0x36f289(0x20f)](),this[_0x36f289(0x1e7)]=new _0xdb090e(this[_0x36f289(0x1e1)]);}[_0x153c02(0x1df)](){const _0x345b4=_0x153c02;super[_0x345b4(0x1df)](),this[_0x345b4(0x1e7)][_0x345b4(0x1df)]();}[_0x153c02(0x1e6)](){const _0x44f804=_0x153c02;this[_0x44f804(0x217)][_0x44f804(0x1e6)]();}[_0x153c02(0x1ce)](_0x399f1d,_0x415384){const _0x1316b0=_0x153c02;let _0x16cdea;return _0x1316b0(0x1cf)===_0x399f1d?_0x16cdea=new _0x24aec3(this[_0x1316b0(0x1f9)],_0x415384,this[_0x1316b0(0x1ef)]):_0x1316b0(0x201)===_0x399f1d?(_0x16cdea=new _0x33de81(this[_0x1316b0(0x1f9)],_0x415384,this[_0x1316b0(0x1ef)]),_0x16cdea[_0x1316b0(0x1f1)](_0x1316b0(0x1dd))['to'](this)):_0x16cdea=_0x1316b0(0x1f5)===_0x399f1d?new _0x3af46c(this[_0x1316b0(0x1f9)],_0x415384,this[_0x1316b0(0x1ef)]):_0x1316b0(0x1c9)===_0x399f1d?new _0x517375(this[_0x1316b0(0x1f9)],_0x415384):_0x1316b0(0x1f7)===_0x399f1d?new _0x1205c3(_0x415384):new _0x4a3934(_0x415384),this[_0x1316b0(0x217)][_0x1316b0(0x219)](_0x16cdea),_0x16cdea;}async[_0x153c02(0x1d1)]({id:_0x2b2f2c,parsedContent:_0x400152,renderingStrategy:_0x5dac26,abortSignal:_0x24f225}){const _0x41d40b=_0x153c02,_0x344061=this[_0x41d40b(0x1ee)](_0x2b2f2c);if(!(_0x344061 instanceof _0x24aec3))throw new _0x324a99(_0x41d40b(0x1d8),null,{'itemView':_0x344061,'id':_0x2b2f2c,'parsedContent':_0x400152});await _0x344061[_0x41d40b(0x20c)]({'parsedContent':_0x400152,'renderingStrategy':_0x5dac26,'abortSignal':_0x24f225});}async[_0x153c02(0x1e3)](_0x56b8a1,_0x47cbdc){const _0xd2e569=_0x153c02,_0x479550=this[_0xd2e569(0x1ee)](_0x56b8a1);if(_0x479550 instanceof _0x33de81)_0x479550[_0xd2e569(0x207)](_0x47cbdc);else{if(!(_0x479550 instanceof _0x24aec3))throw new _0x324a99(_0xd2e569(0x21d),null,{'itemView':_0x479550,'id':_0x56b8a1,'sources':_0x47cbdc});_0x479550[_0xd2e569(0x207)](_0x47cbdc);}}async[_0x153c02(0x1c5)]({id:_0x470093,parts:_0x19aaaa,renderingStrategy:_0x6bf908,abortSignal:_0x2e4eea}){const _0x6aa62f=_0x153c02,_0x1b9269=this[_0x6aa62f(0x1ee)](_0x470093);if(!(_0x1b9269 instanceof _0x33de81))throw new _0x324a99(_0x6aa62f(0x1c8),null,{'itemView':_0x1b9269,'id':_0x470093,'parts':_0x19aaaa});await _0x1b9269[_0x6aa62f(0x20c)]({'parts':_0x19aaaa,'renderingStrategy':_0x6bf908,'abortSignal':_0x2e4eea});}[_0x153c02(0x1f4)]({id:_0x1ba398,index:_0x5393c5,state:_0x51a01a}){const _0x15eae6=_0x153c02,_0x15553b=this[_0x15eae6(0x1ee)](_0x1ba398);if(!(_0x15553b instanceof _0x33de81))throw new _0x324a99(_0x15eae6(0x1c8),this,{'id':_0x1ba398});_0x15553b[_0x15eae6(0x1cc)](_0x5393c5,_0x51a01a);}[_0x153c02(0x20e)]({id:_0x5a2bf8,index:_0x1a4817,isActive:_0x128d84}){const _0x1f2b5c=_0x153c02,_0x53d24e=this[_0x1f2b5c(0x1ee)](_0x5a2bf8);if(!(_0x53d24e instanceof _0x33de81))throw new _0x324a99(_0x1f2b5c(0x1c8),this,{'id':_0x5a2bf8});this[_0x1f2b5c(0x217)][_0x1f2b5c(0x1d3)](_0x27f4d6=>_0x27f4d6 instanceof _0x33de81)[_0x1f2b5c(0x218)](_0x1d86cd=>{const _0x5a07a8=_0x1f2b5c;_0x1d86cd[_0x5a07a8(0x1ca)](!0x1);}),_0x53d24e[_0x1f2b5c(0x1ca)](_0x1a4817,_0x128d84);}[_0x153c02(0x206)](_0x39dc42){const _0x4f858a=_0x153c02;this[_0x4f858a(0x1ee)](_0x39dc42)[_0x4f858a(0x211)]();}[_0x153c02(0x1d6)](){const _0xb6d177=_0x153c02;return this[_0xb6d177(0x217)][_0xb6d177(0x212)](_0x3d3f0d=>_0x3d3f0d[_0xb6d177(0x20b)]['id']);}[_0x153c02(0x1f3)](_0x5bf633){const _0x103bad=_0x153c02;this[_0x103bad(0x217)][_0x103bad(0x1eb)](this[_0x103bad(0x1ee)](_0x5bf633));}[_0x153c02(0x202)](_0x5e3485){const _0x1f730d=_0x153c02;return!!this[_0x1f730d(0x217)][_0x1f730d(0x1fc)](_0x272cf7=>_0x272cf7[_0x1f730d(0x20b)]['id'][_0x1f730d(0x1dc)](_0x5e3485));}[_0x153c02(0x216)](_0x396ada,_0x5e0e22){const _0x59a258=_0x153c02,_0x1814b2=this[_0x59a258(0x1ee)](_0x396ada);if(!(_0x1814b2 instanceof _0x33de81))return void _0xb780da(_0x59a258(0x200),{'replyId':_0x396ada,'partIndex':_0x5e0e22});const _0x2a3340=_0x1814b2[_0x59a258(0x1d5)](_0x5e0e22);_0x2a3340?_0xd1d823(_0x2a3340[_0x59a258(0x1e1)],0x14,this[_0x59a258(0x1e1)][_0x59a258(0x1c4)],!0x0,!0x0):_0xb780da(_0x59a258(0x1c7),{'replyId':_0x396ada,'partIndex':_0x5e0e22});}[_0x153c02(0x20d)](){const _0x47a6a5=_0x153c02;this[_0x47a6a5(0x1d0)]({'tag':_0x47a6a5(0x215),'attributes':{'class':['ck',_0x47a6a5(0x1d7)]},'children':this[_0x47a6a5(0x21a)]()});}[_0x153c02(0x21a)](){const _0x54888c=_0x153c02,_0x35f2e3=this[_0x54888c(0x209)]();return[this[_0x54888c(0x1d2)](),_0x35f2e3,this[_0x54888c(0x1fb)]()];}[_0x153c02(0x209)](){const _0x3d589b=_0x153c02,_0x10f627=new _0x2f421d(this[_0x3d589b(0x1f9)],_0x353b56[_0x3d589b(0x1ff)]);return _0x10f627[_0x3d589b(0x1e4)]({'attributes':{'class':[this[_0x3d589b(0x210)]['if'](_0x3d589b(0x20a),_0x3d589b(0x1e2),_0xd9d48b=>!_0xd9d48b)]}}),_0x10f627;}[_0x153c02(0x1d2)](){const _0x3dba51=_0x153c02,_0x4bee6d=new _0x354d30(this[_0x3dba51(0x1f9)]);return _0x4bee6d[_0x3dba51(0x1d0)]({'tag':_0x3dba51(0x215),'attributes':{'class':['ck',_0x3dba51(0x1e5),this[_0x3dba51(0x210)]['if'](_0x3dba51(0x20a),_0x3dba51(0x1e2))]},'children':this[_0x3dba51(0x217)]}),_0x4bee6d;}[_0x153c02(0x1fb)](){const _0x5ba17f=_0x153c02,_0x1b416e=new _0x354d30(this[_0x5ba17f(0x1f9)]);return _0x1b416e[_0x5ba17f(0x1d0)]({'tag':_0x5ba17f(0x215),'attributes':{'class':['ck',_0x5ba17f(0x208),this[_0x5ba17f(0x210)]['if'](_0x5ba17f(0x1db),_0x5ba17f(0x1e2),_0x501879=>!_0x501879)]},'children':this[_0x5ba17f(0x1ec)]()}),_0x1b416e;}[_0x153c02(0x1ec)](){const _0x3bc976=_0x153c02,_0x4a68ee=new _0x2b7594();return _0x4a68ee[_0x3bc976(0x1c6)]=!0x0,[_0x4a68ee,{'tag':_0x3bc976(0x1d4),'attributes':{'class':['ck',_0x3bc976(0x1de)]},'children':[{'text':this[_0x3bc976(0x210)]['to'](_0x3bc976(0x214))}]}];}[_0x153c02(0x1ee)](_0x911438){const _0x13ff3b=_0x153c02,_0x3bbbda=this[_0x13ff3b(0x217)][_0x13ff3b(0x1fc)](_0x3f5b5a=>_0x3f5b5a[_0x13ff3b(0x20b)]['id'][_0x13ff3b(0x1dc)](_0x911438));if(!_0x3bbbda)throw new _0x324a99(_0x13ff3b(0x1fe),this,{'id':_0x911438});return _0x3bbbda;}[_0x153c02(0x1ea)](_0x3fad29){const _0x4c1e8a=_0x153c02;this[_0x4c1e8a(0x1d9)](_0x4c1e8a(0x214),_0x3fad29);}[_0x153c02(0x21b)](_0x2f2d90){const _0x482288=_0x153c02;this[_0x482288(0x1d9)](_0x482288(0x20a),_0x2f2d90);}[_0x153c02(0x1f0)](){const _0x2607f2=_0x153c02;this[_0x2607f2(0x1e7)][_0x2607f2(0x1e9)]();}[_0x153c02(0x21c)](){const _0x53f1bd=_0x153c02;this[_0x53f1bd(0x1e7)][_0x53f1bd(0x1f2)]();}}function _0x4868(){const _0x66d77d=['forEach','add','_createTemplateChildren','toggleLoadingSkeleton','stopAutoScroll','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','parentElement','updateSuggestionItem','isVisible','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','ai-chat-feed-view-item-not-a-suggestion-item','interaction-header','setPartActive','9pKCFUu','updatePartState','10kvsGjk','addItem','ai-reply','setTemplate','updateReplyItem','_createFeedItems','filter','span','getPartView','getItemIds','ck-ai-chat__feed','ai-chat-feed-view-item-not-a-reply-item','set','433872ybtmXq','isPending','includes','isTrackChangesOn','ck-ai-chat__loader-text','destroy','20231784FbZMdY','element','ck-hidden','updateWebSources','extendTemplate','ck-ai-chat__feed__items','clear','scrollManager','4987378viIYuw','start','setLoadingMessage','remove','_createLoaderChildren','1593096jgLJtB','getItemById','_bodyCollection','startAutoScroll','bind','stop','removeItem','updateSuggestionPartState','user-message','48EZVqAe','custom-element','delegate','locale','4vYCWti','_createFeedLoader','find','createCollection','ai-chat-feed-view-item-not-found','aiFeed','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','ai-suggestion-reply','hasItem','783013sDouxN','3875048mymlVj','7KKAhJJ','markItemAsDone','updateSources','ck-ai-chat__loader','_createSkeletonLoader','isLoadingSkeletonVisible','options','updateContent','_setupTemplate','setSuggestionPartActive','render','bindTemplate','markAsDone','map','1277890lmLTmC','loadingMessage','div','scrollToSuggestion','children'];_0x4868=function(){return _0x66d77d;};return _0x4868();}
23
+ const _0x42a8ba=_0x1320;(function(_0x1df4a8,_0x3a7edb){const _0x2851ae=_0x1320,_0x543ac9=_0x1df4a8();while(!![]){try{const _0xfa7a62=parseInt(_0x2851ae(0x17f))/0x1+parseInt(_0x2851ae(0x161))/0x2+-parseInt(_0x2851ae(0x18c))/0x3+parseInt(_0x2851ae(0x176))/0x4+parseInt(_0x2851ae(0x18d))/0x5+parseInt(_0x2851ae(0x160))/0x6*(parseInt(_0x2851ae(0x1ad))/0x7)+-parseInt(_0x2851ae(0x162))/0x8*(parseInt(_0x2851ae(0x1ab))/0x9);if(_0xfa7a62===_0x3a7edb)break;else _0x543ac9['push'](_0x543ac9['shift']());}catch(_0x532528){_0x543ac9['push'](_0x543ac9['shift']());}}}(_0x3584,0xa0f39));import{CKEditorError as _0x45b861,logWarning as _0x1cab98,scrollAncestorsToShowTarget as _0x20a5aa}from'ckeditor5/src/utils.js';import{View as _0x51356f}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x3410b1}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x47be48}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x593d7e}from'./feed/aichatfeedreplyitemview.js';function _0x3584(){const _0x2c2e4a=['stopAutoScroll','ck-ai-chat__loader','isTrackChangesOn','_bodyCollection','ck-ai-chat__feed__items','updateWebSources','86247sHjVoT','_createSkeletonLoader','includes','remove','updateSuggestionItem','custom-element','delegate','aiFeed','updateReplyItem','getPartView','isVisible','_createFeedItems','stop','1734954Vdvwgl','6151730Zlknti','_createTemplateChildren','updatePartState','setLoadingMessage','ck-ai-chat__feed','span','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','setTemplate','div','bind','toggleLoadingSkeleton','createCollection','_createLoaderChildren','ai-chat-feed-view-item-not-a-suggestion-item','element','markAsDone','map','interaction-header','clear','addItem','add','setSuggestionPartActive','children','options','ai-suggestion-reply','loadingMessage','updateSources','ai-chat-feed-view-item-not-a-reply-item','updateContent','scrollManager','9tnCPoz','set','49jSAWIL','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','filter','parentElement','locale','ai-chat-feed-view-item-not-found','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','getItemById','updateSuggestionPartState','bindTemplate','244176qRxwHm','698146PeWCkD','11953672TOyDVL','find','isLoadingSkeletonVisible','ck-ai-chat__loader-text','ai-reply','render','scrollToSuggestion','user-message','_setupTemplate','setPartActive','getItemIds','ck-hidden','isPending','start','_createFeedLoader','destroy','hasItem','forEach','removeItem','markItemAsDone','3124984AktEbZ','startAutoScroll','extendTemplate'];_0x3584=function(){return _0x2c2e4a;};return _0x3584();}import{AIChatFeedUserMessageItemView as _0x4ba812}from'./feed/aichatfeedusermessageitem.js';function _0x1320(_0x1525ea,_0x5ee4e5){const _0x3584c6=_0x3584();return _0x1320=function(_0x1320e9,_0x56aa54){_0x1320e9=_0x1320e9-0x160;let _0x3b2442=_0x3584c6[_0x1320e9];return _0x3b2442;},_0x1320(_0x1525ea,_0x5ee4e5);}import{AIChatFeedErrorItemView as _0x3a2521}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x410016}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x4da46b}from'../../aicore/utils/scrollmanager.js';import{AISkeletonView as _0x3f1447,SKELETON_DEFINITIONS as _0x17deaa}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x3d9c5b}from'../../aicore/ui/aispinner.js';import{AIChatFeedCustomElementView as _0x16c8f7}from'./feed/aichatfeedcustomelementview.js';import'../../../theme/aichat/aichatfeed.css';export class AIChatFeedView extends _0x51356f{[_0x42a8ba(0x1a3)];[_0x42a8ba(0x1aa)];[_0x42a8ba(0x17c)];constructor(_0x27d109,_0x544a63){const _0x58f4d6=_0x42a8ba;super(_0x27d109),this[_0x58f4d6(0x17c)]=_0x544a63,this[_0x58f4d6(0x1ac)](_0x58f4d6(0x16e),!0x1),this[_0x58f4d6(0x1ac)](_0x58f4d6(0x1a6),''),this[_0x58f4d6(0x1ac)](_0x58f4d6(0x164),!0x1),this[_0x58f4d6(0x1ac)](_0x58f4d6(0x17b),!0x1),this[_0x58f4d6(0x1a3)]=this[_0x58f4d6(0x198)](),this[_0x58f4d6(0x1a3)][_0x58f4d6(0x185)](..._0x3410b1)['to'](this),this[_0x58f4d6(0x16a)]();}[_0x42a8ba(0x167)](){const _0x5a70b3=_0x42a8ba;super[_0x5a70b3(0x167)](),this[_0x5a70b3(0x1aa)]=new _0x4da46b(this[_0x5a70b3(0x19b)]);}[_0x42a8ba(0x171)](){const _0x5bd1f0=_0x42a8ba;super[_0x5bd1f0(0x171)](),this[_0x5bd1f0(0x1aa)][_0x5bd1f0(0x171)]();}[_0x42a8ba(0x19f)](){const _0x10f151=_0x42a8ba;this[_0x10f151(0x1a3)][_0x10f151(0x19f)]();}[_0x42a8ba(0x1a0)](_0xcc8de4,_0x3e08d1){const _0x1d4cc0=_0x42a8ba;let _0x95357e;return _0x1d4cc0(0x166)===_0xcc8de4?_0x95357e=new _0x593d7e(this[_0x1d4cc0(0x1b1)],_0x3e08d1,this[_0x1d4cc0(0x17c)]):_0x1d4cc0(0x1a5)===_0xcc8de4?(_0x95357e=new _0x47be48(this[_0x1d4cc0(0x1b1)],_0x3e08d1,this[_0x1d4cc0(0x17c)]),_0x95357e[_0x1d4cc0(0x196)](_0x1d4cc0(0x17b))['to'](this)):_0x95357e=_0x1d4cc0(0x169)===_0xcc8de4?new _0x4ba812(this[_0x1d4cc0(0x1b1)],_0x3e08d1,this[_0x1d4cc0(0x17c)]):_0x1d4cc0(0x19e)===_0xcc8de4?new _0x410016(this[_0x1d4cc0(0x1b1)],_0x3e08d1):_0x1d4cc0(0x184)===_0xcc8de4?new _0x16c8f7(_0x3e08d1):new _0x3a2521(_0x3e08d1),this[_0x1d4cc0(0x1a3)][_0x1d4cc0(0x1a1)](_0x95357e),_0x95357e;}async[_0x42a8ba(0x187)]({id:_0x1ea00f,parsedContent:_0x33cb91,renderingStrategy:_0x159e2e,abortSignal:_0x222dee}){const _0x4acec7=_0x42a8ba,_0x42a009=this[_0x4acec7(0x1b4)](_0x1ea00f);if(!(_0x42a009 instanceof _0x593d7e))throw new _0x45b861(_0x4acec7(0x1a8),null,{'itemView':_0x42a009,'id':_0x1ea00f,'parsedContent':_0x33cb91});await _0x42a009[_0x4acec7(0x1a9)]({'parsedContent':_0x33cb91,'renderingStrategy':_0x159e2e,'abortSignal':_0x222dee});}async[_0x42a8ba(0x17e)](_0x5d0b6e,_0x14a019){const _0x1218f2=_0x42a8ba,_0x33c802=this[_0x1218f2(0x1b4)](_0x5d0b6e);if(_0x33c802 instanceof _0x47be48)_0x33c802[_0x1218f2(0x1a7)](_0x14a019);else{if(!(_0x33c802 instanceof _0x593d7e))throw new _0x45b861(_0x1218f2(0x1b3),null,{'itemView':_0x33c802,'id':_0x5d0b6e,'sources':_0x14a019});_0x33c802[_0x1218f2(0x1a7)](_0x14a019);}}async[_0x42a8ba(0x183)]({id:_0x397ed3,parts:_0x237ce3,renderingStrategy:_0x242e15,abortSignal:_0x5b699a}){const _0x5379aa=_0x42a8ba,_0x4f00ff=this[_0x5379aa(0x1b4)](_0x397ed3);if(!(_0x4f00ff instanceof _0x47be48))throw new _0x45b861(_0x5379aa(0x19a),null,{'itemView':_0x4f00ff,'id':_0x397ed3,'parts':_0x237ce3});await _0x4f00ff[_0x5379aa(0x1a9)]({'parts':_0x237ce3,'renderingStrategy':_0x242e15,'abortSignal':_0x5b699a});}[_0x42a8ba(0x1b5)]({id:_0xfcc042,index:_0x494880,state:_0xa35082}){const _0x546eea=_0x42a8ba,_0x2a5973=this[_0x546eea(0x1b4)](_0xfcc042);if(!(_0x2a5973 instanceof _0x47be48))throw new _0x45b861(_0x546eea(0x19a),this,{'id':_0xfcc042});_0x2a5973[_0x546eea(0x18f)](_0x494880,_0xa35082);}[_0x42a8ba(0x1a2)]({id:_0x39d6d2,index:_0x55e1d6,isActive:_0x22be9b}){const _0x577b13=_0x42a8ba,_0x14a5a6=this[_0x577b13(0x1b4)](_0x39d6d2);if(!(_0x14a5a6 instanceof _0x47be48))throw new _0x45b861(_0x577b13(0x19a),this,{'id':_0x39d6d2});this[_0x577b13(0x1a3)][_0x577b13(0x1af)](_0x2b676c=>_0x2b676c instanceof _0x47be48)[_0x577b13(0x173)](_0x1ca5f1=>{const _0x3ae78b=_0x577b13;_0x1ca5f1[_0x3ae78b(0x16b)](!0x1);}),_0x14a5a6[_0x577b13(0x16b)](_0x55e1d6,_0x22be9b);}[_0x42a8ba(0x175)](_0x4b18eb){const _0x181d3a=_0x42a8ba;this[_0x181d3a(0x1b4)](_0x4b18eb)[_0x181d3a(0x19c)]();}[_0x42a8ba(0x16c)](){const _0x48be11=_0x42a8ba;return this[_0x48be11(0x1a3)][_0x48be11(0x19d)](_0x5631d4=>_0x5631d4[_0x48be11(0x1a4)]['id']);}[_0x42a8ba(0x174)](_0x175b6b){const _0x304fba=_0x42a8ba;this[_0x304fba(0x1a3)][_0x304fba(0x182)](this[_0x304fba(0x1b4)](_0x175b6b));}[_0x42a8ba(0x172)](_0x32f1e5){const _0x58ecd7=_0x42a8ba;return!!this[_0x58ecd7(0x1a3)][_0x58ecd7(0x163)](_0x3291ed=>_0x3291ed[_0x58ecd7(0x1a4)]['id'][_0x58ecd7(0x181)](_0x32f1e5));}[_0x42a8ba(0x168)](_0x397214,_0x2148d5){const _0x3a9c25=_0x42a8ba,_0x496eb6=this[_0x3a9c25(0x1b4)](_0x397214);if(!(_0x496eb6 instanceof _0x47be48))return void _0x1cab98(_0x3a9c25(0x193),{'replyId':_0x397214,'partIndex':_0x2148d5});const _0x3e548b=_0x496eb6[_0x3a9c25(0x188)](_0x2148d5);_0x3e548b?_0x20a5aa(_0x3e548b[_0x3a9c25(0x19b)],0x14,this[_0x3a9c25(0x19b)][_0x3a9c25(0x1b0)],!0x0,!0x0):_0x1cab98(_0x3a9c25(0x1ae),{'replyId':_0x397214,'partIndex':_0x2148d5});}[_0x42a8ba(0x16a)](){const _0x4f6028=_0x42a8ba;this[_0x4f6028(0x194)]({'tag':_0x4f6028(0x195),'attributes':{'class':['ck',_0x4f6028(0x191)]},'children':this[_0x4f6028(0x18e)]()});}[_0x42a8ba(0x18e)](){const _0x32f29e=_0x42a8ba,_0x20746a=this[_0x32f29e(0x180)]();return[this[_0x32f29e(0x18a)](),_0x20746a,this[_0x32f29e(0x170)]()];}[_0x42a8ba(0x180)](){const _0x401cae=_0x42a8ba,_0x1513de=new _0x3f1447(this[_0x401cae(0x1b1)],_0x17deaa[_0x401cae(0x186)]);return _0x1513de[_0x401cae(0x178)]({'attributes':{'class':[this[_0x401cae(0x1b6)]['if'](_0x401cae(0x164),_0x401cae(0x16d),_0x4beac1=>!_0x4beac1)]}}),_0x1513de;}[_0x42a8ba(0x18a)](){const _0x436c66=_0x42a8ba,_0x5653c3=new _0x51356f(this[_0x436c66(0x1b1)]);return _0x5653c3[_0x436c66(0x194)]({'tag':_0x436c66(0x195),'attributes':{'class':['ck',_0x436c66(0x17d),this[_0x436c66(0x1b6)]['if'](_0x436c66(0x164),_0x436c66(0x16d))]},'children':this[_0x436c66(0x1a3)]}),_0x5653c3;}[_0x42a8ba(0x170)](){const _0xff9dc0=_0x42a8ba,_0x37b43e=new _0x51356f(this[_0xff9dc0(0x1b1)]);return _0x37b43e[_0xff9dc0(0x194)]({'tag':_0xff9dc0(0x195),'attributes':{'class':['ck',_0xff9dc0(0x17a),this[_0xff9dc0(0x1b6)]['if'](_0xff9dc0(0x16e),_0xff9dc0(0x16d),_0x2aebea=>!_0x2aebea)]},'children':this[_0xff9dc0(0x199)]()}),_0x37b43e;}[_0x42a8ba(0x199)](){const _0x5f2f2d=_0x42a8ba,_0x22a5b4=new _0x3d9c5b();return _0x22a5b4[_0x5f2f2d(0x189)]=!0x0,[_0x22a5b4,{'tag':_0x5f2f2d(0x192),'attributes':{'class':['ck',_0x5f2f2d(0x165)]},'children':[{'text':this[_0x5f2f2d(0x1b6)]['to'](_0x5f2f2d(0x1a6))}]}];}[_0x42a8ba(0x1b4)](_0x5373cc){const _0x57f07b=_0x42a8ba,_0x4cc3a2=this[_0x57f07b(0x1a3)][_0x57f07b(0x163)](_0x4de9c3=>_0x4de9c3[_0x57f07b(0x1a4)]['id'][_0x57f07b(0x181)](_0x5373cc));if(!_0x4cc3a2)throw new _0x45b861(_0x57f07b(0x1b2),this,{'id':_0x5373cc});return _0x4cc3a2;}[_0x42a8ba(0x190)](_0x17498a){const _0x465fdd=_0x42a8ba;this[_0x465fdd(0x1ac)](_0x465fdd(0x1a6),_0x17498a);}[_0x42a8ba(0x197)](_0x58b3f9){const _0x53c14e=_0x42a8ba;this[_0x53c14e(0x1ac)](_0x53c14e(0x164),_0x58b3f9);}[_0x42a8ba(0x177)](){const _0x5c459d=_0x42a8ba;this[_0x5c459d(0x1aa)][_0x5c459d(0x16f)]();}[_0x42a8ba(0x179)](){const _0x37d6ba=_0x42a8ba;this[_0x37d6ba(0x1aa)][_0x37d6ba(0x18b)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5cd214=_0x3515;function _0x3515(_0x24914c,_0x1a92ee){const _0x576102=_0x5761();return _0x3515=function(_0x3515a9,_0x878f1e){_0x3515a9=_0x3515a9-0xe7;let _0x646045=_0x576102[_0x3515a9];return _0x646045;},_0x3515(_0x24914c,_0x1a92ee);}(function(_0x14b99a,_0x24f0a4){const _0x23801e=_0x3515,_0x5577b7=_0x14b99a();while(!![]){try{const _0x3e6aa7=-parseInt(_0x23801e(0xeb))/0x1+-parseInt(_0x23801e(0xfc))/0x2*(parseInt(_0x23801e(0xf7))/0x3)+parseInt(_0x23801e(0xf1))/0x4+parseInt(_0x23801e(0xe9))/0x5*(-parseInt(_0x23801e(0xfb))/0x6)+-parseInt(_0x23801e(0xef))/0x7+-parseInt(_0x23801e(0xf4))/0x8+-parseInt(_0x23801e(0xfe))/0x9*(-parseInt(_0x23801e(0xf3))/0xa);if(_0x3e6aa7===_0x24f0a4)break;else _0x5577b7['push'](_0x5577b7['shift']());}catch(_0x1a35d7){_0x5577b7['push'](_0x5577b7['shift']());}}}(_0x5761,0x31d80));import{ButtonView as _0x22e153,FormHeaderView as _0x3902f3}from'ckeditor5/src/ui.js';import{IconPlus as _0x7136bd,IconAIChat as _0x4a651e}from'ckeditor5/src/icons.js';import{getTranslation as _0xecd724}from'../../aicore/utils/common-translations.js';import{createResizeButton as _0x5672b9}from'../../aicore/utils/createresizebutton.js';import'../../../theme/common/aiheader.css';function _0x5761(){const _0x429fb0=['AI_CHAT_HEADING','20hkRbZj','_createStartConversationButton','257776gLTCMW','children','set','ck-ai-header\x20ck-ai-header_chat','1313970zwAlsA','ck-ai-chat__start-conversation','409256xpcsDo','execute','1010zLrNdP','3090456lUXXuO','AI_CHAT_LABEL_NEW_CHAT','startConversation','283092fKjHoF','fire','conversationStartButton','add','192216tOupjv','2MuTOta','locale','103023yjraDv','resizeButton','isMaximized'];_0x5761=function(){return _0x429fb0;};return _0x5761();}export class AIChatHeaderView extends _0x3902f3{[_0x5cd214(0xf9)];[_0x5cd214(0xff)];constructor(_0x4648b1,_0x533456){const _0x83c690=_0x5cd214;super(_0x4648b1,{'label':_0xecd724(_0x4648b1,_0x83c690(0xe8)),'class':_0x83c690(0xee),'icon':_0x4a651e}),this[_0x83c690(0xed)](_0x83c690(0xe7),!0x1),this[_0x83c690(0xf9)]=this[_0x83c690(0xea)](_0x4648b1),this[_0x83c690(0xec)][_0x83c690(0xfa)](this[_0x83c690(0xf9)]),_0x533456&&(this[_0x83c690(0xff)]=_0x5672b9(_0x4648b1,this),this[_0x83c690(0xec)][_0x83c690(0xfa)](this[_0x83c690(0xff)]));}[_0x5cd214(0xea)](_0x36ae2b){const _0x25df43=_0x5cd214,_0x181784=new _0x22e153(_0x36ae2b);return _0x181784[_0x25df43(0xed)]({'label':_0xecd724(this[_0x25df43(0xfd)],_0x25df43(0xf5)),'withText':!0x0,'icon':_0x7136bd,'class':_0x25df43(0xf0)}),_0x181784['on'](_0x25df43(0xf2),()=>{const _0x47c5fa=_0x25df43;this[_0x47c5fa(0xf8)](_0x47c5fa(0xf6));}),_0x181784;}}
23
+ const _0x1750d1=_0x56d0;(function(_0x31f0f5,_0xabfa62){const _0x111faa=_0x56d0,_0x312622=_0x31f0f5();while(!![]){try{const _0x4df1df=parseInt(_0x111faa(0x1ce))/0x1+parseInt(_0x111faa(0x1de))/0x2*(-parseInt(_0x111faa(0x1c8))/0x3)+parseInt(_0x111faa(0x1cc))/0x4*(-parseInt(_0x111faa(0x1dc))/0x5)+-parseInt(_0x111faa(0x1d7))/0x6+-parseInt(_0x111faa(0x1cd))/0x7+parseInt(_0x111faa(0x1ca))/0x8*(-parseInt(_0x111faa(0x1dd))/0x9)+parseInt(_0x111faa(0x1d3))/0xa;if(_0x4df1df===_0xabfa62)break;else _0x312622['push'](_0x312622['shift']());}catch(_0xb7c32c){_0x312622['push'](_0x312622['shift']());}}}(_0x4209,0x7f1ab));function _0x4209(){const _0x11a306=['set','3858912svEbpC','resizeButton','ck-ai-header\x20ck-ai-header_chat','fire','add','2606530gqhejM','80019OMxRqf','88mArhKc','isMaximized','_createStartConversationButton','62292jvVeQp','conversationStartButton','64wOaxHn','locale','4hWQaHh','4546787YBRJVj','305555zRiTuu','children','startConversation','AI_CHAT_HEADING','AI_CHAT_LABEL_NEW_CHAT','30138070oGmWzf','ck-ai-chat__start-conversation','execute'];_0x4209=function(){return _0x11a306;};return _0x4209();}import{ButtonView as _0x34938a,FormHeaderView as _0x554741}from'ckeditor5/src/ui.js';import{IconPlus as _0x13832f,IconAIChat as _0x34b265}from'ckeditor5/src/icons.js';function _0x56d0(_0x104fdf,_0x2ca46f){const _0x420983=_0x4209();return _0x56d0=function(_0x56d067,_0x3f495d){_0x56d067=_0x56d067-0x1c6;let _0x1665e7=_0x420983[_0x56d067];return _0x1665e7;},_0x56d0(_0x104fdf,_0x2ca46f);}import{getTranslation as _0x4048c8}from'../../aicore/utils/common-translations.js';import{createResizeButton as _0x5368c1}from'../../aicore/utils/createresizebutton.js';import'../../../theme/common/aiheader.css';export class AIChatHeaderView extends _0x554741{[_0x1750d1(0x1c9)];[_0x1750d1(0x1d8)];constructor(_0x8adbca,_0x19c8aa){const _0x49e658=_0x1750d1;super(_0x8adbca,{'label':_0x4048c8(_0x8adbca,_0x49e658(0x1d1)),'class':_0x49e658(0x1d9),'icon':_0x34b265}),this[_0x49e658(0x1d6)](_0x49e658(0x1c6),!0x1),this[_0x49e658(0x1c9)]=this[_0x49e658(0x1c7)](_0x8adbca),this[_0x49e658(0x1cf)][_0x49e658(0x1db)](this[_0x49e658(0x1c9)]),_0x19c8aa&&(this[_0x49e658(0x1d8)]=_0x5368c1(_0x8adbca,this),this[_0x49e658(0x1cf)][_0x49e658(0x1db)](this[_0x49e658(0x1d8)]));}[_0x1750d1(0x1c7)](_0x1c6c24){const _0x1aa8ee=_0x1750d1,_0x329725=new _0x34938a(_0x1c6c24);return _0x329725[_0x1aa8ee(0x1d6)]({'label':_0x4048c8(this[_0x1aa8ee(0x1cb)],_0x1aa8ee(0x1d2)),'withText':!0x0,'icon':_0x13832f,'class':_0x1aa8ee(0x1d4)}),_0x329725['on'](_0x1aa8ee(0x1d5),()=>{const _0x3ef22b=_0x1aa8ee;this[_0x3ef22b(0x1da)](_0x3ef22b(0x1d0));}),_0x329725;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x4cc2ea=_0x3f5a;(function(_0x5a8645,_0x10eda1){var _0x3bb74a=_0x3f5a,_0x56fb29=_0x5a8645();while(!![]){try{var _0x4e4f67=-parseInt(_0x3bb74a(0x103))/0x1*(parseInt(_0x3bb74a(0xea))/0x2)+-parseInt(_0x3bb74a(0xef))/0x3+-parseInt(_0x3bb74a(0xf8))/0x4+-parseInt(_0x3bb74a(0xf1))/0x5+-parseInt(_0x3bb74a(0xfd))/0x6*(parseInt(_0x3bb74a(0x101))/0x7)+parseInt(_0x3bb74a(0x100))/0x8+parseInt(_0x3bb74a(0xf3))/0x9*(parseInt(_0x3bb74a(0xf9))/0xa);if(_0x4e4f67===_0x10eda1)break;else _0x56fb29['push'](_0x56fb29['shift']());}catch(_0x31a8b6){_0x56fb29['push'](_0x56fb29['shift']());}}}(_0xb600,0x92f9c));import{View as _0x5c73f6,BodyCollection as _0x4cd400}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x3bd7ce}from'../utils/eventnames.js';import{AIChatFeedView as _0x8d7385}from'./aichatfeedview.js';import{AIChatControlsView as _0x3296ce}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x5c585c}from'./aichatheaderview.js';import{AIDisclaimerView as _0x48a958}from'../../aicore/ui/aidisclaimerview.js';import'../../../theme/common/ainotification.css';function _0x3f5a(_0x29a3d6,_0xce8848){var _0xb60071=_0xb600();return _0x3f5a=function(_0x3f5abe,_0x4da650){_0x3f5abe=_0x3f5abe-0xe7;var _0x253d91=_0xb60071[_0x3f5abe];return _0x253d91;},_0x3f5a(_0x29a3d6,_0xce8848);}import'../../../theme/common/aibutton.css';import'../../../theme/common/aitrackchanges.css';export class AIChatView extends _0x5c73f6{[_0x4cc2ea(0xf7)];[_0x4cc2ea(0xfb)];[_0x4cc2ea(0xe8)];[_0x4cc2ea(0xe7)];[_0x4cc2ea(0xfe)];constructor(_0x220602,_0x149e22){var _0x38c9e0=_0x4cc2ea;super(_0x220602),this[_0x38c9e0(0xfe)]=new _0x4cd400(_0x220602),this[_0x38c9e0(0xfe)][_0x38c9e0(0xfa)](),this[_0x38c9e0(0xf7)]=new _0x5c585c(_0x220602,_0x149e22[_0x38c9e0(0xec)]),this[_0x38c9e0(0xf7)][_0x38c9e0(0xeb)](..._0x3bd7ce)['to'](this),this[_0x38c9e0(0xfb)]=new _0x8d7385(_0x220602,this[_0x38c9e0(0xfe)]),this[_0x38c9e0(0xfb)][_0x38c9e0(0xeb)](..._0x3bd7ce)['to'](this),this[_0x38c9e0(0xe8)]=new _0x3296ce(_0x220602,{'bodyCollection':this[_0x38c9e0(0xfe)],'contextResourcesSearchInputVisibleFrom':_0x149e22[_0x38c9e0(0xf6)]}),this[_0x38c9e0(0xe8)][_0x38c9e0(0xeb)](..._0x3bd7ce)['to'](this),this[_0x38c9e0(0xe7)]=new _0x48a958(_0x220602),this[_0x38c9e0(0xf5)]({'tag':_0x38c9e0(0xed),'attributes':{'class':['ck',_0x38c9e0(0xe9),_0x38c9e0(0xee),_0x38c9e0(0xf2)],'dir':_0x220602[_0x38c9e0(0xfc)]},'children':[this[_0x38c9e0(0xf7)],this[_0x38c9e0(0xfb)],this[_0x38c9e0(0xe8)],this[_0x38c9e0(0xe7)]]});}[_0x4cc2ea(0xff)](_0xb7057f,_0x46ef9f,_0x549357,_0x557ad0){var _0x1e555e=_0x4cc2ea;this[_0x1e555e(0xe8)][_0x1e555e(0xff)](_0xb7057f,_0x46ef9f,_0x549357,_0x557ad0);}[_0x4cc2ea(0xf0)](_0x1cc7ae){var _0x25487c=_0x4cc2ea;this[_0x25487c(0xe8)][_0x25487c(0xf0)](_0x1cc7ae);}[_0x4cc2ea(0xf4)](){var _0x2d2d23=_0x4cc2ea;this[_0x2d2d23(0xfe)][_0x2d2d23(0x102)](),super[_0x2d2d23(0xf4)]();}}function _0xb600(){var _0x1b7601=['639ukxIWm','destroy','setTemplate','contextResourcesSearchInputVisibleFrom','chatHeader','2185884QQahtv','488860hNbMNC','attachToDom','chatFeed','uiLanguageDirection','6676482TcitAo','_bodyCollection','populateSourceResourceBalloon','8353888CwWeMJ','7nOaRQg','detachFromDom','256PLfxfQ','chatDisclaimer','chatControls','ck-reset_all','5702gyDEGA','delegate','showResizeButton','div','ck-ai-chat','1974231yOmMbY','closeSourceResourceBalloon','4329895vCtrTu','ck-rounded-corners'];_0xb600=function(){return _0x1b7601;};return _0xb600();}
23
+ function _0x490a(_0x1fd98b,_0x42cefe){var _0x526ec6=_0x526e();return _0x490a=function(_0x490a67,_0x1b7770){_0x490a67=_0x490a67-0xa9;var _0x5939ad=_0x526ec6[_0x490a67];return _0x5939ad;},_0x490a(_0x1fd98b,_0x42cefe);}var _0x1bcf05=_0x490a;function _0x526e(){var _0x2c0b50=['chatControls','detachFromDom','destroy','36SWUUWu','closeSourceResourceBalloon','setTemplate','2820831TPHbqH','div','contextResourcesSearchInputVisibleFrom','uiLanguageDirection','8404536GwsIaj','showResizeButton','chatDisclaimer','4906328jBJtPN','809yRqWGV','delegate','614LtDuNt','5848330wyavXF','ck-reset_all','ck-ai-chat','chatHeader','7638575sfWytX','chatFeed','446920ulfqgL','ck-rounded-corners','attachToDom','_bodyCollection','populateSourceResourceBalloon'];_0x526e=function(){return _0x2c0b50;};return _0x526e();}(function(_0x5ee920,_0x46dd8b){var _0x426fe6=_0x490a,_0x1e91b3=_0x5ee920();while(!![]){try{var _0x32dddd=-parseInt(_0x426fe6(0xb1))/0x1*(-parseInt(_0x426fe6(0xb3))/0x2)+-parseInt(_0x426fe6(0xa9))/0x3+-parseInt(_0x426fe6(0xba))/0x4+-parseInt(_0x426fe6(0xb4))/0x5+parseInt(_0x426fe6(0xad))/0x6+-parseInt(_0x426fe6(0xb8))/0x7+-parseInt(_0x426fe6(0xb0))/0x8*(-parseInt(_0x426fe6(0xc2))/0x9);if(_0x32dddd===_0x46dd8b)break;else _0x1e91b3['push'](_0x1e91b3['shift']());}catch(_0xdee8c7){_0x1e91b3['push'](_0x1e91b3['shift']());}}}(_0x526e,0xc0b89));import{View as _0x58e433,BodyCollection as _0x324e2c}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x3f0062}from'../utils/eventnames.js';import{AIChatFeedView as _0x2de2ed}from'./aichatfeedview.js';import{AIChatControlsView as _0x53883b}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x3f02af}from'./aichatheaderview.js';import{AIDisclaimerView as _0x5325fa}from'../../aicore/ui/aidisclaimerview.js';import'../../../theme/common/ainotification.css';import'../../../theme/common/aibutton.css';import'../../../theme/common/aitrackchanges.css';export class AIChatView extends _0x58e433{[_0x1bcf05(0xb7)];[_0x1bcf05(0xb9)];[_0x1bcf05(0xbf)];[_0x1bcf05(0xaf)];[_0x1bcf05(0xbd)];constructor(_0x2533ad,_0x5aebff){var _0x52828a=_0x1bcf05;super(_0x2533ad),this[_0x52828a(0xbd)]=new _0x324e2c(_0x2533ad),this[_0x52828a(0xbd)][_0x52828a(0xbc)](),this[_0x52828a(0xb7)]=new _0x3f02af(_0x2533ad,_0x5aebff[_0x52828a(0xae)]),this[_0x52828a(0xb7)][_0x52828a(0xb2)](..._0x3f0062)['to'](this),this[_0x52828a(0xb9)]=new _0x2de2ed(_0x2533ad,this[_0x52828a(0xbd)]),this[_0x52828a(0xb9)][_0x52828a(0xb2)](..._0x3f0062)['to'](this),this[_0x52828a(0xbf)]=new _0x53883b(_0x2533ad,{'bodyCollection':this[_0x52828a(0xbd)],'contextResourcesSearchInputVisibleFrom':_0x5aebff[_0x52828a(0xab)]}),this[_0x52828a(0xbf)][_0x52828a(0xb2)](..._0x3f0062)['to'](this),this[_0x52828a(0xaf)]=new _0x5325fa(_0x2533ad),this[_0x52828a(0xc4)]({'tag':_0x52828a(0xaa),'attributes':{'class':['ck',_0x52828a(0xb5),_0x52828a(0xb6),_0x52828a(0xbb)],'dir':_0x2533ad[_0x52828a(0xac)]},'children':[this[_0x52828a(0xb7)],this[_0x52828a(0xb9)],this[_0x52828a(0xbf)],this[_0x52828a(0xaf)]]});}[_0x1bcf05(0xbe)](_0x3c32f2,_0x11d3b0,_0x7c1a4a,_0x4fb038){var _0x4fbc98=_0x1bcf05;this[_0x4fbc98(0xbf)][_0x4fbc98(0xbe)](_0x3c32f2,_0x11d3b0,_0x7c1a4a,_0x4fb038);}[_0x1bcf05(0xc3)](_0x339df3){var _0x173d77=_0x1bcf05;this[_0x173d77(0xbf)][_0x173d77(0xc3)](_0x339df3);}[_0x1bcf05(0xc1)](){var _0x5d1734=_0x1bcf05;this[_0x5d1734(0xbd)][_0x5d1734(0xc0)](),super[_0x5d1734(0xc1)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x29a56a=_0x191d;function _0x191d(_0x107100,_0x2fc649){const _0x2a0ac3=_0x2a0a();return _0x191d=function(_0x191d36,_0x37c14a){_0x191d36=_0x191d36-0x19b;let _0x5c60e0=_0x2a0ac3[_0x191d36];return _0x5c60e0;},_0x191d(_0x107100,_0x2fc649);}(function(_0x35af18,_0x4e4294){const _0x3bf37a=_0x191d,_0x492d54=_0x35af18();while(!![]){try{const _0xc2aee2=parseInt(_0x3bf37a(0x1ee))/0x1*(-parseInt(_0x3bf37a(0x1a3))/0x2)+parseInt(_0x3bf37a(0x21c))/0x3+-parseInt(_0x3bf37a(0x206))/0x4+parseInt(_0x3bf37a(0x1b3))/0x5*(parseInt(_0x3bf37a(0x1fe))/0x6)+parseInt(_0x3bf37a(0x1d7))/0x7+parseInt(_0x3bf37a(0x1bf))/0x8+-parseInt(_0x3bf37a(0x218))/0x9;if(_0xc2aee2===_0x4e4294)break;else _0x492d54['push'](_0x492d54['shift']());}catch(_0x43ee84){_0x492d54['push'](_0x492d54['shift']());}}}(_0x2a0a,0x7263d));function _0x2a0a(){const _0x595844=['block\x20!important','visible\x20!important','calculationContainer','isConnected','none','clientHeight','pointerEvents','reorganizeChips','includes','remove','_calculateContainerWidth','body','_setupVisibilityObserver','_createCalculationContainer','_intersectionObserver','5498801wKVGea','disableAnimationOnEnter','_pendingCalculation','toLowerCase','rowDetectionTolerance','add','classList','_calculateOverflowInContainer','children','hide','showMoreBalloon','_visibleChips','border-box','style','block','isOn','_createShowMoreButton','label','undefined','forEach','-9999px','300px','_ancestorsToRestore','7eHweid','div','showMoreButton','+\x201','bottom','_createMockButton','_createShowMoreButtonView','left','extendTemplate','_applyOverflowResults','position','hidden','controlsButton','push','parentElement','_makeAncestorsVisible','1684698WKHrZc','button','from','pin','ck-calculation-container','length','textContent','offsetWidth','1304356MAHFIQ','_containerElement','set','innerHeight','50px','_distributeChips','top','destroy','slice','_updateShowMoreButtonVisibility','_findTargetContainer','visible','overflowChips','tagName','visibility','.ck-ai-chat','_targetContainer','cloneNode','10068489rqzTFR','_parentView','isVisible','content','318468tnSKfZ','innerHTML','some','_renderChipsAndCountRows','showBalloonPanel','observe','_testButtonFit','_updateOverflowUI','height','setTemplate','getBoundingClientRect','createElement','abs','overflowContainer','_isContainerVisible','render','0px','_restoreAncestorVisibility','zIndex','clientWidth','setContainerElement','_showMoreButtonView','maxVisibleRows','_updateBalloonContent','cssClasses','_createContainerElements','98894SBnWZC','documentElement','_overflowChips','display','_showMoreBalloonPanelView','absolute','_repinBalloonPanel','filter','querySelector','innerWidth','execute','width','appendChild','_handleShowMoreButtonClick','show','clear','10uGBsKt','boxSizing','className','element','hideBalloonPanel','_config','right','auto','showMoreLabelPrefix','_checkAndHandleOverflow','_createShowMoreBalloonPanelView','showMoreButtonView','6449720WHShgH','_bodyCollection','pop','isIntersecting','opacity','getComputedStyle','disconnect','_locale','_applyCalculationStyles'];_0x2a0a=function(){return _0x595844;};return _0x2a0a();}import{View as _0x26e7b5,BalloonPanelView as _0x47264d,ButtonView as _0x12e5d6,clickOutsideHandler as _0x5b1cfc}from'ckeditor5/src/ui.js';import{Collection as _0xb51e32}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},an=_0x29a56a(0x1ec);export class AIChatChipsOverflowManager{[_0x29a56a(0x1c6)];[_0x29a56a(0x1b8)];[_0x29a56a(0x1e2)];[_0x29a56a(0x1a5)];[_0x29a56a(0x19e)]=null;[_0x29a56a(0x1a7)]=null;[_0x29a56a(0x207)]=null;[_0x29a56a(0x1c0)];[_0x29a56a(0x219)]=null;[_0x29a56a(0x1d6)]=null;[_0x29a56a(0x1d9)]=!0x1;constructor(_0xe26175,_0x1a2424,_0x2b5da0,_0x4b1c57,_0x41d188){const _0x469538=_0x29a56a;this[_0x469538(0x1c6)]=_0xe26175,this[_0x469538(0x1e2)]=_0x1a2424,this[_0x469538(0x1b8)]={...hn,..._0x2b5da0,'cssClasses':{'controlsButton':'','calculationContainer':_0x469538(0x202),..._0x2b5da0[_0x469538(0x1a1)]}},this[_0x469538(0x1a5)]=new _0xb51e32(),this[_0x469538(0x1c0)]=_0x4b1c57,this[_0x469538(0x219)]=_0x41d188||null;}[_0x29a56a(0x19d)](_0x11ad60){const _0x51f292=_0x29a56a;this[_0x51f292(0x1d6)]&&(this[_0x51f292(0x1d6)][_0x51f292(0x1c5)](),this[_0x51f292(0x1d6)]=null),this[_0x51f292(0x207)]=_0x11ad60,this[_0x51f292(0x1d4)]();}get[_0x29a56a(0x1be)](){const _0x25befe=_0x29a56a;return this[_0x25befe(0x19e)];}get[_0x29a56a(0x212)](){const _0x571d5c=_0x29a56a;return this[_0x571d5c(0x1a5)];}[_0x29a56a(0x1cf)](){requestAnimationFrame(()=>{const _0x35f0c2=_0x191d;this[_0x35f0c2(0x1bc)]();});}[_0x29a56a(0x220)](){const _0x928209=_0x29a56a;this[_0x928209(0x19e)]&&this[_0x928209(0x1a7)]&&(this[_0x928209(0x1a0)](),this[_0x928209(0x19e)][_0x928209(0x1e6)]=!0x0,this[_0x928209(0x1a7)][_0x928209(0x1b1)](),this[_0x928209(0x1a7)][_0x928209(0x201)]({'target':this[_0x928209(0x19e)][_0x928209(0x1b6)],'limiter':document[_0x928209(0x1ab)](_0x928209(0x215))}));}[_0x29a56a(0x1b7)](){const _0x355215=_0x29a56a;this[_0x355215(0x19e)]&&this[_0x355215(0x1a7)]&&(this[_0x355215(0x19e)][_0x355215(0x1e6)]=!0x1,this[_0x355215(0x1a7)][_0x355215(0x1e0)]());}[_0x29a56a(0x1b2)](){const _0x4276d8=_0x29a56a;this[_0x4276d8(0x1a5)][_0x4276d8(0x1b2)](),this[_0x4276d8(0x1b7)](),this[_0x4276d8(0x20f)](),this[_0x4276d8(0x19e)]&&(this[_0x4276d8(0x19e)][_0x4276d8(0x1e8)]=''),this[_0x4276d8(0x1a7)]&&this[_0x4276d8(0x1a7)][_0x4276d8(0x21b)][_0x4276d8(0x1b2)]();}[_0x29a56a(0x20d)](){const _0x5d6a42=_0x29a56a;this[_0x5d6a42(0x1d6)]&&(this[_0x5d6a42(0x1d6)][_0x5d6a42(0x1c5)](),this[_0x5d6a42(0x1d6)]=null),this[_0x5d6a42(0x19e)]&&(this[_0x5d6a42(0x19e)][_0x5d6a42(0x20d)](),this[_0x5d6a42(0x19e)]=null),this[_0x5d6a42(0x1a7)]&&(this[_0x5d6a42(0x1a7)][_0x5d6a42(0x20d)](),this[_0x5d6a42(0x1a7)]=null);}[_0x29a56a(0x1bc)](){const _0x167634=_0x29a56a;if(!this[_0x167634(0x207)])return;if(!this[_0x167634(0x22a)]())return void(this[_0x167634(0x1d9)]=!0x0);this[_0x167634(0x1d9)]=!0x1;const _0x4e7824=[...this[_0x167634(0x1e2)],...this[_0x167634(0x1a5)]],_0x1c8166=this[_0x167634(0x1d5)](),_0x137bd5=this[_0x167634(0x1de)](_0x1c8166,_0x4e7824),_0x4f7b5d=_0x1c8166[_0x167634(0x1ed)];_0x4f7b5d&&this[_0x167634(0x22d)](_0x4f7b5d),_0x1c8166[_0x167634(0x1d1)](),this[_0x167634(0x1f7)](_0x4e7824,_0x137bd5);}[_0x29a56a(0x1e7)](){const _0x518415=_0x29a56a;this[_0x518415(0x19e)]=this[_0x518415(0x1f4)](),this[_0x518415(0x1a7)]=this[_0x518415(0x1bd)](),this[_0x518415(0x19e)][_0x518415(0x22b)](),this[_0x518415(0x207)][_0x518415(0x1af)](this[_0x518415(0x19e)][_0x518415(0x1b6)]),this[_0x518415(0x19e)]['on'](_0x518415(0x1ad),()=>{const _0x4dbbb6=_0x518415;this[_0x4dbbb6(0x1b0)]();}),_0x5b1cfc({'emitter':this[_0x518415(0x1a7)],'contextElements':[this[_0x518415(0x1a7)][_0x518415(0x1b6)],this[_0x518415(0x19e)][_0x518415(0x1b6)]],'callback':()=>this[_0x518415(0x1b7)](),'activator':()=>this[_0x518415(0x19e)][_0x518415(0x1e6)]});}[_0x29a56a(0x1f4)](){const _0x1196a5=_0x29a56a,_0x2629ee=new _0x12e5d6(this[_0x1196a5(0x1c6)]);_0x2629ee[_0x1196a5(0x208)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x81838e=[this[_0x1196a5(0x1b8)][_0x1196a5(0x1a1)][_0x1196a5(0x1f0)]];return this[_0x1196a5(0x1b8)][_0x1196a5(0x1a1)][_0x1196a5(0x1fa)]&&_0x81838e[_0x1196a5(0x1fb)](this[_0x1196a5(0x1b8)][_0x1196a5(0x1a1)][_0x1196a5(0x1fa)]),_0x2629ee[_0x1196a5(0x1f6)]({'attributes':{'class':_0x81838e}}),_0x2629ee;}[_0x29a56a(0x1bd)](){const _0x44fe97=_0x29a56a,_0x284871=new _0x47264d(this[_0x44fe97(0x1c6)]);return _0x284871[_0x44fe97(0x1f6)]({'attributes':{'class':this[_0x44fe97(0x1b8)][_0x44fe97(0x1a1)][_0x44fe97(0x1e1)]}}),this[_0x44fe97(0x1c0)][_0x44fe97(0x1dc)](_0x284871),_0x284871;}[_0x29a56a(0x1a0)](){const _0x836031=_0x29a56a;if(this[_0x836031(0x1a7)]&&(this[_0x836031(0x1a7)][_0x836031(0x21b)][_0x836031(0x1b2)](),this[_0x836031(0x1a5)][_0x836031(0x203)]>0x0)){this[_0x836031(0x1a5)][_0x836031(0x1ea)](_0x29d74a=>{const _0x3b3ec2=_0x836031;_0x29d74a[_0x3b3ec2(0x1d8)]();});const _0x304824=new _0x26e7b5(this[_0x836031(0x1c6)]);_0x304824[_0x836031(0x225)]({'tag':_0x836031(0x1ef),'attributes':{'class':this[_0x836031(0x1b8)][_0x836031(0x1a1)][_0x836031(0x229)]},'children':this[_0x836031(0x1a5)]}),this[_0x836031(0x1a7)][_0x836031(0x21b)][_0x836031(0x1dc)](_0x304824);}}[_0x29a56a(0x1b0)](){const _0x498e09=_0x29a56a;this[_0x498e09(0x19e)][_0x498e09(0x1e6)]?this[_0x498e09(0x1b7)]():this[_0x498e09(0x220)]();}[_0x29a56a(0x20f)](){const _0x1d6df7=_0x29a56a,_0x179c1f=this[_0x1d6df7(0x1a5)][_0x1d6df7(0x203)]>0x0;this[_0x1d6df7(0x19e)]?.[_0x1d6df7(0x1b6)]&&(this[_0x1d6df7(0x19e)][_0x1d6df7(0x1b6)][_0x1d6df7(0x1e4)][_0x1d6df7(0x1a6)]=_0x179c1f?'':_0x1d6df7(0x1cc));}[_0x29a56a(0x1a9)](){const _0x232f47=_0x29a56a;this[_0x232f47(0x19e)]?.[_0x232f47(0x1e6)]&&this[_0x232f47(0x1a7)]?.[_0x232f47(0x21a)]&&this[_0x232f47(0x19e)][_0x232f47(0x1b6)]&&this[_0x232f47(0x1a7)][_0x232f47(0x201)]({'target':this[_0x232f47(0x19e)][_0x232f47(0x1b6)],'limiter':document[_0x232f47(0x1ab)](_0x232f47(0x215))});}[_0x29a56a(0x210)](_0x4d7b6d){const _0x181abe=_0x29a56a,_0x400744=this[_0x181abe(0x207)]?.[_0x181abe(0x213)][_0x181abe(0x1da)]()||_0x181abe(0x1ef),_0x16a19f=this[_0x181abe(0x207)]?.[_0x181abe(0x1dd)];if(_0x16a19f){const _0x2e7bd7=_0x16a19f[0x0]||'',_0x2f2c86=_0x4d7b6d[_0x181abe(0x1ab)]('.'+_0x2e7bd7),_0x565b46=_0x4d7b6d[_0x181abe(0x1ab)](_0x400744);return _0x2f2c86||_0x565b46||_0x4d7b6d;}return _0x4d7b6d[_0x181abe(0x1ab)](_0x400744)||_0x4d7b6d;}[_0x29a56a(0x1d2)](){const _0x380487=_0x29a56a,_0x15f09f=this[_0x380487(0x219)]?.[_0x380487(0x1b6)]||this[_0x380487(0x207)];if(!_0x15f09f)return an;const _0x491983=window[_0x380487(0x1c4)](_0x15f09f)[_0x380487(0x1ae)];if(_0x380487(0x1ba)===_0x491983||_0x380487(0x22c)===_0x491983||!_0x491983){const _0x489304=_0x15f09f[_0x380487(0x1fc)];if(_0x489304){const _0xbf2707=window[_0x380487(0x1c4)](_0x489304);return _0x380487(0x1ba)!==_0xbf2707[_0x380487(0x1ae)]?_0xbf2707[_0x380487(0x1ae)]:an;}return an;}return _0x491983;}[_0x29a56a(0x1c7)](_0x33030a,_0x2b0388){const _0x5d12c1=_0x29a56a;this[_0x5d12c1(0x1b8)][_0x5d12c1(0x1a1)][_0x5d12c1(0x1ca)]&&_0x33030a[_0x5d12c1(0x1dd)][_0x5d12c1(0x1dc)](this[_0x5d12c1(0x1b8)][_0x5d12c1(0x1a1)][_0x5d12c1(0x1ca)]),_0x33030a[_0x5d12c1(0x1e4)][_0x5d12c1(0x1ae)]=_0x2b0388,_0x33030a[_0x5d12c1(0x1e4)][_0x5d12c1(0x1f8)]=_0x5d12c1(0x1a8),_0x33030a[_0x5d12c1(0x1e4)][_0x5d12c1(0x20c)]=_0x5d12c1(0x1eb),_0x33030a[_0x5d12c1(0x1e4)][_0x5d12c1(0x1f5)]=_0x5d12c1(0x1eb),_0x33030a[_0x5d12c1(0x1e4)][_0x5d12c1(0x1c3)]='0',_0x33030a[_0x5d12c1(0x1e4)][_0x5d12c1(0x1ce)]=_0x5d12c1(0x1cc),_0x33030a[_0x5d12c1(0x1e4)][_0x5d12c1(0x19b)]='-1',_0x33030a[_0x5d12c1(0x1e4)][_0x5d12c1(0x214)]=_0x5d12c1(0x1c9),_0x33030a[_0x5d12c1(0x1e4)][_0x5d12c1(0x1a6)]=_0x5d12c1(0x1c8),_0x33030a[_0x5d12c1(0x1e4)][_0x5d12c1(0x1b4)]=_0x5d12c1(0x1e3);}[_0x29a56a(0x22d)](_0x1e6908){const _0x41f851=_0x29a56a;_0x1e6908[_0x41f851(0x1ea)](({element:_0x3f07de,originalDisplay:_0x9f0f88,originalVisibility:_0xbaa263})=>{const _0x57c3a8=_0x41f851;_0x3f07de[_0x57c3a8(0x1e4)][_0x57c3a8(0x1a6)]=_0x9f0f88,_0x3f07de[_0x57c3a8(0x1e4)][_0x57c3a8(0x214)]=_0xbaa263;});}[_0x29a56a(0x1fd)](_0x1df0a9){const _0x712aad=_0x29a56a,_0x1b12e5=[];let _0x402709=_0x1df0a9;for(;_0x402709&&_0x402709!==document[_0x712aad(0x1d3)];){const _0x407402=window[_0x712aad(0x1c4)](_0x402709);_0x712aad(0x1cc)!==_0x407402[_0x712aad(0x1a6)]&&_0x712aad(0x1f9)!==_0x407402[_0x712aad(0x214)]||(_0x1b12e5[_0x712aad(0x1fb)]({'element':_0x402709,'originalDisplay':_0x402709[_0x712aad(0x1e4)][_0x712aad(0x1a6)],'originalVisibility':_0x402709[_0x712aad(0x1e4)][_0x712aad(0x214)]}),_0x402709[_0x712aad(0x1e4)][_0x712aad(0x1a6)]=_0x712aad(0x1e5),_0x402709[_0x712aad(0x1e4)][_0x712aad(0x214)]=_0x712aad(0x211)),_0x402709=_0x402709[_0x712aad(0x1fc)];}return _0x1b12e5;}[_0x29a56a(0x1a2)](){const _0x128f06=_0x29a56a;let _0x1b24c9,_0x4e11ec;return this[_0x128f06(0x219)]?.[_0x128f06(0x1b6)]?(_0x1b24c9=this[_0x128f06(0x219)][_0x128f06(0x1b6)][_0x128f06(0x217)](!0x0),_0x4e11ec=this[_0x128f06(0x210)](_0x1b24c9)):(_0x1b24c9=document[_0x128f06(0x227)](_0x128f06(0x1ef)),_0x4e11ec=_0x1b24c9),{'calculationContainer':_0x1b24c9,'targetContainer':_0x4e11ec};}[_0x29a56a(0x1d5)](){const _0x130254=_0x29a56a,{calculationContainer:_0x338a12,targetContainer:_0x6670c6}=this[_0x130254(0x1a2)](),_0x338ec6=this[_0x130254(0x1d2)]();this[_0x130254(0x1c7)](_0x338a12,_0x338ec6);const _0x3df158=this[_0x130254(0x219)]?.[_0x130254(0x1b6)]||this[_0x130254(0x207)],_0x1a8650=_0x3df158?.[_0x130254(0x1fc)];_0x1a8650?_0x1a8650[_0x130254(0x1af)](_0x338a12):document[_0x130254(0x1d3)][_0x130254(0x1af)](_0x338a12),_0x338a12[_0x130254(0x216)]=_0x6670c6;const _0x55b5de=this[_0x130254(0x1fd)](_0x1a8650||null);return _0x338a12[_0x130254(0x205)],_0x338a12[_0x130254(0x1ed)]=_0x55b5de,_0x338a12;}[_0x29a56a(0x1de)](_0x297f75,_0x4f7602){const _0x273a2b=_0x29a56a,_0x46dd78=_0x297f75[_0x273a2b(0x216)]||_0x297f75,_0x5622f8=[],{rowCount:_0x54e93c}=this[_0x273a2b(0x21f)](_0x46dd78,_0x4f7602);if(_0x54e93c<=this[_0x273a2b(0x1b8)][_0x273a2b(0x19f)])return _0x5622f8;const _0x218727=_0x4f7602[_0x273a2b(0x20e)]();for(;_0x218727[_0x273a2b(0x203)]>0x0;){if(this[_0x273a2b(0x222)](_0x297f75,_0x46dd78,_0x218727)){const _0x37c6ca=_0x4f7602[_0x273a2b(0x1aa)](_0x3a87a8=>!_0x218727[_0x273a2b(0x1d0)](_0x3a87a8));_0x5622f8[_0x273a2b(0x1fb)](..._0x37c6ca);break;}if(!_0x218727[_0x273a2b(0x1c1)]())break;}return _0x5622f8;}[_0x29a56a(0x21f)](_0x277741,_0x3d3d34){const _0xbaf43e=_0x29a56a;_0x277741[_0xbaf43e(0x21d)]='',_0x3d3d34[_0xbaf43e(0x1ea)](_0x565c28=>{const _0x217c15=_0xbaf43e;if(_0x565c28[_0x217c15(0x1b6)]){const _0x337b4a=_0x565c28[_0x217c15(0x1b6)][_0x217c15(0x217)](!0x0);_0x277741[_0x217c15(0x1af)](_0x337b4a);}}),_0x277741[_0xbaf43e(0x205)];const _0x38e5f7=_0x277741[_0xbaf43e(0x1df)],_0x47a5a2=[];return Array[_0xbaf43e(0x200)](_0x38e5f7)[_0xbaf43e(0x1ea)](_0x56fca8=>{const _0x2824d4=_0xbaf43e,_0x4f8b19=_0x56fca8[_0x2824d4(0x226)]()[_0x2824d4(0x20c)];_0x47a5a2[_0x2824d4(0x21e)](_0x3c47d0=>Math[_0x2824d4(0x228)](_0x3c47d0-_0x4f8b19)<this[_0x2824d4(0x1b8)][_0x2824d4(0x1db)])||_0x47a5a2[_0x2824d4(0x1fb)](_0x4f8b19);}),{'rowCount':_0x47a5a2[_0xbaf43e(0x203)]};}[_0x29a56a(0x1f3)](){const _0x356b5a=_0x29a56a,_0x1d6564=document[_0x356b5a(0x227)](_0x356b5a(0x1ff));return _0x1d6564[_0x356b5a(0x1b5)]=this[_0x356b5a(0x1b8)][_0x356b5a(0x1a1)][_0x356b5a(0x1f0)],this[_0x356b5a(0x1b8)][_0x356b5a(0x1a1)][_0x356b5a(0x1fa)]&&_0x1d6564[_0x356b5a(0x1dd)][_0x356b5a(0x1dc)](this[_0x356b5a(0x1b8)][_0x356b5a(0x1a1)][_0x356b5a(0x1fa)]),_0x1d6564[_0x356b5a(0x204)]=_0x356b5a(0x1f1),_0x1d6564;}[_0x29a56a(0x222)](_0x1dd300,_0x30dd6f,_0x57121f){const _0x34c3ff=_0x29a56a;this[_0x34c3ff(0x21f)](_0x30dd6f,_0x57121f);const _0x4d1186=this[_0x34c3ff(0x1f3)]();_0x1dd300[_0x34c3ff(0x1af)](_0x4d1186),_0x1dd300[_0x34c3ff(0x205)];const _0x3adda7=[..._0x30dd6f[_0x34c3ff(0x1df)],_0x4d1186],_0x13f86b=[];_0x3adda7[_0x34c3ff(0x1ea)](_0x156763=>{const _0x54a437=_0x34c3ff,_0x1f0845=_0x156763[_0x54a437(0x226)]()[_0x54a437(0x20c)];_0x13f86b[_0x54a437(0x21e)](_0x269091=>Math[_0x54a437(0x228)](_0x269091-_0x1f0845)<this[_0x54a437(0x1b8)][_0x54a437(0x1db)])||_0x13f86b[_0x54a437(0x1fb)](_0x1f0845);});const _0x385d10=_0x13f86b[_0x34c3ff(0x203)];return _0x4d1186[_0x34c3ff(0x1d1)](),_0x385d10<=this[_0x34c3ff(0x1b8)][_0x34c3ff(0x19f)];}[_0x29a56a(0x20b)](_0x4585ab,_0xa77cb7){const _0x32954a=_0x29a56a;this[_0x32954a(0x1e2)][_0x32954a(0x1b2)](),this[_0x32954a(0x1a5)][_0x32954a(0x1b2)](),_0x4585ab[_0x32954a(0x1ea)](_0x502055=>{const _0x1e58ef=_0x32954a;_0xa77cb7[_0x1e58ef(0x1d0)](_0x502055)?this[_0x1e58ef(0x1a5)][_0x1e58ef(0x1dc)](_0x502055):this[_0x1e58ef(0x1e2)][_0x1e58ef(0x1dc)](_0x502055);});}[_0x29a56a(0x223)](_0x970f32){const _0x18cfa8=_0x29a56a;if(_0x970f32>0x0&&!this[_0x18cfa8(0x19e)]&&this[_0x18cfa8(0x1e7)](),_0x970f32>0x0&&this[_0x18cfa8(0x19e)]){const _0x2a9122=''+this[_0x18cfa8(0x1b8)][_0x18cfa8(0x1bb)]+(_0x970f32<0x63?_0x970f32:'99');this[_0x18cfa8(0x19e)][_0x18cfa8(0x1e8)]=_0x2a9122;}this[_0x18cfa8(0x1a0)](),this[_0x18cfa8(0x20f)](),this[_0x18cfa8(0x1a9)]();}[_0x29a56a(0x1f7)](_0x2907fc,_0x14c3ab){const _0x127f22=_0x29a56a;this[_0x127f22(0x20b)](_0x2907fc,_0x14c3ab),this[_0x127f22(0x223)](_0x14c3ab[_0x127f22(0x203)]);}[_0x29a56a(0x1d4)](){const _0x340d4a=_0x29a56a;this[_0x340d4a(0x207)]&&_0x340d4a(0x1e9)!=typeof IntersectionObserver&&(this[_0x340d4a(0x1d6)]=new IntersectionObserver(_0x2e1358=>{const _0x4226bf=_0x340d4a;_0x2e1358[0x0][_0x4226bf(0x1c2)]&&this[_0x4226bf(0x1d9)]&&requestAnimationFrame(()=>{const _0x586edf=_0x4226bf;this[_0x586edf(0x1bc)]();});},{'threshold':0.01,'rootMargin':_0x340d4a(0x20a)}),this[_0x340d4a(0x1d6)][_0x340d4a(0x221)](this[_0x340d4a(0x207)]));}[_0x29a56a(0x22a)](){const _0x1dc06b=_0x29a56a;if(!this[_0x1dc06b(0x207)])return!0x1;if(!this[_0x1dc06b(0x207)][_0x1dc06b(0x1cb)])return!0x1;const _0x2049ca=this[_0x1dc06b(0x207)][_0x1dc06b(0x226)]();if(0x0===_0x2049ca[_0x1dc06b(0x1ae)]||0x0===_0x2049ca[_0x1dc06b(0x224)])return!0x1;const _0x482432=window[_0x1dc06b(0x209)]||document[_0x1dc06b(0x1a4)][_0x1dc06b(0x1cd)],_0x2759ed=window[_0x1dc06b(0x1ac)]||document[_0x1dc06b(0x1a4)][_0x1dc06b(0x19c)],_0x15c4bb=0xc8;return _0x2049ca[_0x1dc06b(0x1f2)]>=-0xc8&&_0x2049ca[_0x1dc06b(0x20c)]<=_0x482432+_0x15c4bb&&_0x2049ca[_0x1dc06b(0x1b9)]>=-0xc8&&_0x2049ca[_0x1dc06b(0x1f5)]<=_0x2759ed+_0x15c4bb;}}
23
+ const _0x554c8e=_0x44b8;function _0x44b8(_0x1c7865,_0x5d12d7){const _0x36cd5c=_0x36cd();return _0x44b8=function(_0x44b887,_0x1e1c1d){_0x44b887=_0x44b887-0x191;let _0xa466e4=_0x36cd5c[_0x44b887];return _0xa466e4;},_0x44b8(_0x1c7865,_0x5d12d7);}(function(_0x3055eb,_0x19ed3a){const _0x813b05=_0x44b8,_0x34ee8a=_0x3055eb();while(!![]){try{const _0x354ea6=-parseInt(_0x813b05(0x203))/0x1+-parseInt(_0x813b05(0x192))/0x2*(-parseInt(_0x813b05(0x1aa))/0x3)+parseInt(_0x813b05(0x1b5))/0x4*(-parseInt(_0x813b05(0x1e9))/0x5)+parseInt(_0x813b05(0x209))/0x6+-parseInt(_0x813b05(0x21a))/0x7*(-parseInt(_0x813b05(0x206))/0x8)+parseInt(_0x813b05(0x1e5))/0x9*(parseInt(_0x813b05(0x1a1))/0xa)+-parseInt(_0x813b05(0x1fe))/0xb;if(_0x354ea6===_0x19ed3a)break;else _0x34ee8a['push'](_0x34ee8a['shift']());}catch(_0x268c7b){_0x34ee8a['push'](_0x34ee8a['shift']());}}}(_0x36cd,0xcfb5d));import{View as _0x179327,BalloonPanelView as _0x1a19d0,ButtonView as _0x3f5246,clickOutsideHandler as _0x3ceb27}from'ckeditor5/src/ui.js';function _0x36cd(){const _0x568421=['push','_intersectionObserver','39856uluIwv','style','button','_setupVisibilityObserver','showMoreLabelPrefix','undefined','_parentView','_repinBalloonPanel','tagName','right','pointerEvents','pin','appendChild','from','disconnect','40IBpXsr','_testButtonFit','createElement','children','maxVisibleRows','_config','filter','innerHeight','visible\x20!important','255iwuKQk','_isContainerVisible','add','parentElement','visibility','hide','hidden','cssClasses','cloneNode','some','observe','33556OUEfos','_restoreAncestorVisibility','_showMoreBalloonPanelView','_applyCalculationStyles','controlsButton','boxSizing','+\x201','_findTargetContainer','auto','height','_calculateOverflowInContainer','_updateOverflowUI','toLowerCase','classList','hideBalloonPanel','element','showMoreButton','isOn','remove','showMoreButtonView','offsetWidth','length','_ancestorsToRestore','destroy','_calculateContainerWidth','rowDetectionTolerance','_bodyCollection','textContent','opacity','show','none','querySelector','setContainerElement','bottom','isVisible','0px','-9999px','isConnected','label','overflowChips','getComputedStyle','left','zIndex','execute','absolute','_createContainerElements','showMoreBalloon','innerHTML','3681162vWPigS','visible','calculationContainer','pop','120MHyJzZ','getBoundingClientRect','_createShowMoreButtonView','50px','block','content','abs','border-box','_visibleChips','_renderChipsAndCountRows','_createCalculationContainer','_createShowMoreBalloonPanelView','_containerElement','_pendingCalculation','_distributeChips','top','_overflowChips','render','_createShowMoreButton','_handleShowMoreButtonClick','div','38423825PCXQGt','innerWidth','300px','body','block\x20!important','1133209WgWIJX','forEach','includes','8lVJNYw','_updateBalloonContent','disableAnimationOnEnter','4016724nssvut','clientWidth','_checkAndHandleOverflow','className','_locale','display','position','clear','reorganizeChips','_makeAncestorsVisible','_showMoreButtonView','overflowContainer','showBalloonPanel','ck-calculation-container','_applyOverflowResults','documentElement','width','11752965bBDigM','extendTemplate','.ck-ai-chat','_updateShowMoreButtonVisibility','_targetContainer','setTemplate','clientHeight','isIntersecting','slice','_createMockButton','set'];_0x36cd=function(){return _0x568421;};return _0x36cd();}import{Collection as _0x3a4af1}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},an=_0x554c8e(0x200);export class AIChatChipsOverflowManager{[_0x554c8e(0x20d)];[_0x554c8e(0x1a6)];[_0x554c8e(0x1f1)];[_0x554c8e(0x1f9)];[_0x554c8e(0x213)]=null;[_0x554c8e(0x1b7)]=null;[_0x554c8e(0x1f5)]=null;[_0x554c8e(0x1cf)];[_0x554c8e(0x198)]=null;[_0x554c8e(0x191)]=null;[_0x554c8e(0x1f6)]=!0x1;constructor(_0xcee5aa,_0x18386a,_0x162b55,_0x5eadf0,_0x24c6c4){const _0x53e3cc=_0x554c8e;this[_0x53e3cc(0x20d)]=_0xcee5aa,this[_0x53e3cc(0x1f1)]=_0x18386a,this[_0x53e3cc(0x1a6)]={...hn,..._0x162b55,'cssClasses':{'controlsButton':'','calculationContainer':_0x53e3cc(0x216),..._0x162b55[_0x53e3cc(0x1b1)]}},this[_0x53e3cc(0x1f9)]=new _0x3a4af1(),this[_0x53e3cc(0x1cf)]=_0x5eadf0,this[_0x53e3cc(0x198)]=_0x24c6c4||null;}[_0x554c8e(0x1d5)](_0x4d5221){const _0x11442c=_0x554c8e;this[_0x11442c(0x191)]&&(this[_0x11442c(0x191)][_0x11442c(0x1a0)](),this[_0x11442c(0x191)]=null),this[_0x11442c(0x1f5)]=_0x4d5221,this[_0x11442c(0x195)]();}get[_0x554c8e(0x1c8)](){const _0x20785c=_0x554c8e;return this[_0x20785c(0x213)];}get[_0x554c8e(0x1dc)](){const _0x545092=_0x554c8e;return this[_0x545092(0x1f9)];}[_0x554c8e(0x211)](){requestAnimationFrame(()=>{const _0x3cbd73=_0x44b8;this[_0x3cbd73(0x20b)]();});}[_0x554c8e(0x215)](){const _0x54acdd=_0x554c8e;this[_0x54acdd(0x213)]&&this[_0x54acdd(0x1b7)]&&(this[_0x54acdd(0x207)](),this[_0x54acdd(0x213)][_0x54acdd(0x1c6)]=!0x0,this[_0x54acdd(0x1b7)][_0x54acdd(0x1d2)](),this[_0x54acdd(0x1b7)][_0x54acdd(0x19d)]({'target':this[_0x54acdd(0x213)][_0x54acdd(0x1c4)],'limiter':document[_0x54acdd(0x1d4)](_0x54acdd(0x21c))}));}[_0x554c8e(0x1c3)](){const _0x420b83=_0x554c8e;this[_0x420b83(0x213)]&&this[_0x420b83(0x1b7)]&&(this[_0x420b83(0x213)][_0x420b83(0x1c6)]=!0x1,this[_0x420b83(0x1b7)][_0x420b83(0x1af)]());}[_0x554c8e(0x210)](){const _0x4070a4=_0x554c8e;this[_0x4070a4(0x1f9)][_0x4070a4(0x210)](),this[_0x4070a4(0x1c3)](),this[_0x4070a4(0x21d)](),this[_0x4070a4(0x213)]&&(this[_0x4070a4(0x213)][_0x4070a4(0x1db)]=''),this[_0x4070a4(0x1b7)]&&this[_0x4070a4(0x1b7)][_0x4070a4(0x1ee)][_0x4070a4(0x210)]();}[_0x554c8e(0x1cc)](){const _0x250b1d=_0x554c8e;this[_0x250b1d(0x191)]&&(this[_0x250b1d(0x191)][_0x250b1d(0x1a0)](),this[_0x250b1d(0x191)]=null),this[_0x250b1d(0x213)]&&(this[_0x250b1d(0x213)][_0x250b1d(0x1cc)](),this[_0x250b1d(0x213)]=null),this[_0x250b1d(0x1b7)]&&(this[_0x250b1d(0x1b7)][_0x250b1d(0x1cc)](),this[_0x250b1d(0x1b7)]=null);}[_0x554c8e(0x20b)](){const _0xe48a7e=_0x554c8e;if(!this[_0xe48a7e(0x1f5)])return;if(!this[_0xe48a7e(0x1ab)]())return void(this[_0xe48a7e(0x1f6)]=!0x0);this[_0xe48a7e(0x1f6)]=!0x1;const _0x7c408f=[...this[_0xe48a7e(0x1f1)],...this[_0xe48a7e(0x1f9)]],_0x5d93ca=this[_0xe48a7e(0x1f3)](),_0x16d853=this[_0xe48a7e(0x1bf)](_0x5d93ca,_0x7c408f),_0x35f78a=_0x5d93ca[_0xe48a7e(0x1cb)];_0x35f78a&&this[_0xe48a7e(0x1b6)](_0x35f78a),_0x5d93ca[_0xe48a7e(0x1c7)](),this[_0xe48a7e(0x217)](_0x7c408f,_0x16d853);}[_0x554c8e(0x1fb)](){const _0x19e2c1=_0x554c8e;this[_0x19e2c1(0x213)]=this[_0x19e2c1(0x1eb)](),this[_0x19e2c1(0x1b7)]=this[_0x19e2c1(0x1f4)](),this[_0x19e2c1(0x213)][_0x19e2c1(0x1fa)](),this[_0x19e2c1(0x1f5)][_0x19e2c1(0x19e)](this[_0x19e2c1(0x213)][_0x19e2c1(0x1c4)]),this[_0x19e2c1(0x213)]['on'](_0x19e2c1(0x1e0),()=>{const _0x442667=_0x19e2c1;this[_0x442667(0x1fc)]();}),_0x3ceb27({'emitter':this[_0x19e2c1(0x1b7)],'contextElements':[this[_0x19e2c1(0x1b7)][_0x19e2c1(0x1c4)],this[_0x19e2c1(0x213)][_0x19e2c1(0x1c4)]],'callback':()=>this[_0x19e2c1(0x1c3)](),'activator':()=>this[_0x19e2c1(0x213)][_0x19e2c1(0x1c6)]});}[_0x554c8e(0x1eb)](){const _0x115788=_0x554c8e,_0x172297=new _0x3f5246(this[_0x115788(0x20d)]);_0x172297[_0x115788(0x224)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x48cdf2=[this[_0x115788(0x1a6)][_0x115788(0x1b1)][_0x115788(0x1c5)]];return this[_0x115788(0x1a6)][_0x115788(0x1b1)][_0x115788(0x1b9)]&&_0x48cdf2[_0x115788(0x225)](this[_0x115788(0x1a6)][_0x115788(0x1b1)][_0x115788(0x1b9)]),_0x172297[_0x115788(0x21b)]({'attributes':{'class':_0x48cdf2}}),_0x172297;}[_0x554c8e(0x1f4)](){const _0x2344ed=_0x554c8e,_0x14647f=new _0x1a19d0(this[_0x2344ed(0x20d)]);return _0x14647f[_0x2344ed(0x21b)]({'attributes':{'class':this[_0x2344ed(0x1a6)][_0x2344ed(0x1b1)][_0x2344ed(0x1e3)]}}),this[_0x2344ed(0x1cf)][_0x2344ed(0x1ac)](_0x14647f),_0x14647f;}[_0x554c8e(0x207)](){const _0xc9a7fb=_0x554c8e;if(this[_0xc9a7fb(0x1b7)]&&(this[_0xc9a7fb(0x1b7)][_0xc9a7fb(0x1ee)][_0xc9a7fb(0x210)](),this[_0xc9a7fb(0x1f9)][_0xc9a7fb(0x1ca)]>0x0)){this[_0xc9a7fb(0x1f9)][_0xc9a7fb(0x204)](_0x140b7b=>{const _0x38b9bd=_0xc9a7fb;_0x140b7b[_0x38b9bd(0x208)]();});const _0x5ba324=new _0x179327(this[_0xc9a7fb(0x20d)]);_0x5ba324[_0xc9a7fb(0x21f)]({'tag':_0xc9a7fb(0x1fd),'attributes':{'class':this[_0xc9a7fb(0x1a6)][_0xc9a7fb(0x1b1)][_0xc9a7fb(0x214)]},'children':this[_0xc9a7fb(0x1f9)]}),this[_0xc9a7fb(0x1b7)][_0xc9a7fb(0x1ee)][_0xc9a7fb(0x1ac)](_0x5ba324);}}[_0x554c8e(0x1fc)](){const _0x21e45e=_0x554c8e;this[_0x21e45e(0x213)][_0x21e45e(0x1c6)]?this[_0x21e45e(0x1c3)]():this[_0x21e45e(0x215)]();}[_0x554c8e(0x21d)](){const _0x1b5f01=_0x554c8e,_0xe8d0d5=this[_0x1b5f01(0x1f9)][_0x1b5f01(0x1ca)]>0x0;this[_0x1b5f01(0x213)]?.[_0x1b5f01(0x1c4)]&&(this[_0x1b5f01(0x213)][_0x1b5f01(0x1c4)][_0x1b5f01(0x193)][_0x1b5f01(0x20e)]=_0xe8d0d5?'':_0x1b5f01(0x1d3));}[_0x554c8e(0x199)](){const _0x2c5129=_0x554c8e;this[_0x2c5129(0x213)]?.[_0x2c5129(0x1c6)]&&this[_0x2c5129(0x1b7)]?.[_0x2c5129(0x1d7)]&&this[_0x2c5129(0x213)][_0x2c5129(0x1c4)]&&this[_0x2c5129(0x1b7)][_0x2c5129(0x19d)]({'target':this[_0x2c5129(0x213)][_0x2c5129(0x1c4)],'limiter':document[_0x2c5129(0x1d4)](_0x2c5129(0x21c))});}[_0x554c8e(0x1bc)](_0x4f1b0c){const _0x20d7b6=_0x554c8e,_0x526e87=this[_0x20d7b6(0x1f5)]?.[_0x20d7b6(0x19a)][_0x20d7b6(0x1c1)]()||_0x20d7b6(0x1fd),_0x583aa9=this[_0x20d7b6(0x1f5)]?.[_0x20d7b6(0x1c2)];if(_0x583aa9){const _0x5f6265=_0x583aa9[0x0]||'',_0x4acb2e=_0x4f1b0c[_0x20d7b6(0x1d4)]('.'+_0x5f6265),_0x343dcf=_0x4f1b0c[_0x20d7b6(0x1d4)](_0x526e87);return _0x4acb2e||_0x343dcf||_0x4f1b0c;}return _0x4f1b0c[_0x20d7b6(0x1d4)](_0x526e87)||_0x4f1b0c;}[_0x554c8e(0x1cd)](){const _0x56bf67=_0x554c8e,_0x1197e6=this[_0x56bf67(0x198)]?.[_0x56bf67(0x1c4)]||this[_0x56bf67(0x1f5)];if(!_0x1197e6)return an;const _0xcc24fe=window[_0x56bf67(0x1dd)](_0x1197e6)[_0x56bf67(0x219)];if(_0x56bf67(0x1bd)===_0xcc24fe||_0x56bf67(0x1d8)===_0xcc24fe||!_0xcc24fe){const _0x3b70cf=_0x1197e6[_0x56bf67(0x1ad)];if(_0x3b70cf){const _0x2781b3=window[_0x56bf67(0x1dd)](_0x3b70cf);return _0x56bf67(0x1bd)!==_0x2781b3[_0x56bf67(0x219)]?_0x2781b3[_0x56bf67(0x219)]:an;}return an;}return _0xcc24fe;}[_0x554c8e(0x1b8)](_0x1bb008,_0x486fdb){const _0x37fe97=_0x554c8e;this[_0x37fe97(0x1a6)][_0x37fe97(0x1b1)][_0x37fe97(0x1e7)]&&_0x1bb008[_0x37fe97(0x1c2)][_0x37fe97(0x1ac)](this[_0x37fe97(0x1a6)][_0x37fe97(0x1b1)][_0x37fe97(0x1e7)]),_0x1bb008[_0x37fe97(0x193)][_0x37fe97(0x219)]=_0x486fdb,_0x1bb008[_0x37fe97(0x193)][_0x37fe97(0x20f)]=_0x37fe97(0x1e1),_0x1bb008[_0x37fe97(0x193)][_0x37fe97(0x1f8)]=_0x37fe97(0x1d9),_0x1bb008[_0x37fe97(0x193)][_0x37fe97(0x1de)]=_0x37fe97(0x1d9),_0x1bb008[_0x37fe97(0x193)][_0x37fe97(0x1d1)]='0',_0x1bb008[_0x37fe97(0x193)][_0x37fe97(0x19c)]=_0x37fe97(0x1d3),_0x1bb008[_0x37fe97(0x193)][_0x37fe97(0x1df)]='-1',_0x1bb008[_0x37fe97(0x193)][_0x37fe97(0x1ae)]=_0x37fe97(0x1a9),_0x1bb008[_0x37fe97(0x193)][_0x37fe97(0x20e)]=_0x37fe97(0x202),_0x1bb008[_0x37fe97(0x193)][_0x37fe97(0x1ba)]=_0x37fe97(0x1f0);}[_0x554c8e(0x1b6)](_0x118830){const _0x9d3db2=_0x554c8e;_0x118830[_0x9d3db2(0x204)](({element:_0x5dd8e5,originalDisplay:_0x306022,originalVisibility:_0x3c08cf})=>{const _0x23b81c=_0x9d3db2;_0x5dd8e5[_0x23b81c(0x193)][_0x23b81c(0x20e)]=_0x306022,_0x5dd8e5[_0x23b81c(0x193)][_0x23b81c(0x1ae)]=_0x3c08cf;});}[_0x554c8e(0x212)](_0x358762){const _0x5883c6=_0x554c8e,_0x163aa4=[];let _0x317f38=_0x358762;for(;_0x317f38&&_0x317f38!==document[_0x5883c6(0x201)];){const _0x5e76ad=window[_0x5883c6(0x1dd)](_0x317f38);_0x5883c6(0x1d3)!==_0x5e76ad[_0x5883c6(0x20e)]&&_0x5883c6(0x1b0)!==_0x5e76ad[_0x5883c6(0x1ae)]||(_0x163aa4[_0x5883c6(0x225)]({'element':_0x317f38,'originalDisplay':_0x317f38[_0x5883c6(0x193)][_0x5883c6(0x20e)],'originalVisibility':_0x317f38[_0x5883c6(0x193)][_0x5883c6(0x1ae)]}),_0x317f38[_0x5883c6(0x193)][_0x5883c6(0x20e)]=_0x5883c6(0x1ed),_0x317f38[_0x5883c6(0x193)][_0x5883c6(0x1ae)]=_0x5883c6(0x1e6)),_0x317f38=_0x317f38[_0x5883c6(0x1ad)];}return _0x163aa4;}[_0x554c8e(0x1e2)](){const _0x727e9=_0x554c8e;let _0x37211b,_0x287d6f;return this[_0x727e9(0x198)]?.[_0x727e9(0x1c4)]?(_0x37211b=this[_0x727e9(0x198)][_0x727e9(0x1c4)][_0x727e9(0x1b2)](!0x0),_0x287d6f=this[_0x727e9(0x1bc)](_0x37211b)):(_0x37211b=document[_0x727e9(0x1a3)](_0x727e9(0x1fd)),_0x287d6f=_0x37211b),{'calculationContainer':_0x37211b,'targetContainer':_0x287d6f};}[_0x554c8e(0x1f3)](){const _0x1dcba9=_0x554c8e,{calculationContainer:_0x3966be,targetContainer:_0xd16f57}=this[_0x1dcba9(0x1e2)](),_0x421c1f=this[_0x1dcba9(0x1cd)]();this[_0x1dcba9(0x1b8)](_0x3966be,_0x421c1f);const _0x193254=this[_0x1dcba9(0x198)]?.[_0x1dcba9(0x1c4)]||this[_0x1dcba9(0x1f5)],_0xb61e33=_0x193254?.[_0x1dcba9(0x1ad)];_0xb61e33?_0xb61e33[_0x1dcba9(0x19e)](_0x3966be):document[_0x1dcba9(0x201)][_0x1dcba9(0x19e)](_0x3966be),_0x3966be[_0x1dcba9(0x21e)]=_0xd16f57;const _0x2ee8eb=this[_0x1dcba9(0x212)](_0xb61e33||null);return _0x3966be[_0x1dcba9(0x1c9)],_0x3966be[_0x1dcba9(0x1cb)]=_0x2ee8eb,_0x3966be;}[_0x554c8e(0x1bf)](_0x47a913,_0x57501b){const _0x304ace=_0x554c8e,_0x5c215b=_0x47a913[_0x304ace(0x21e)]||_0x47a913,_0x50ef1e=[],{rowCount:_0xb59c}=this[_0x304ace(0x1f2)](_0x5c215b,_0x57501b);if(_0xb59c<=this[_0x304ace(0x1a6)][_0x304ace(0x1a5)])return _0x50ef1e;const _0xb2e769=_0x57501b[_0x304ace(0x222)]();for(;_0xb2e769[_0x304ace(0x1ca)]>0x0;){if(this[_0x304ace(0x1a2)](_0x47a913,_0x5c215b,_0xb2e769)){const _0x1d7c1c=_0x57501b[_0x304ace(0x1a7)](_0x3259f3=>!_0xb2e769[_0x304ace(0x205)](_0x3259f3));_0x50ef1e[_0x304ace(0x225)](..._0x1d7c1c);break;}if(!_0xb2e769[_0x304ace(0x1e8)]())break;}return _0x50ef1e;}[_0x554c8e(0x1f2)](_0x16e0e5,_0x5c3851){const _0x34f098=_0x554c8e;_0x16e0e5[_0x34f098(0x1e4)]='',_0x5c3851[_0x34f098(0x204)](_0xe7d917=>{const _0x11d676=_0x34f098;if(_0xe7d917[_0x11d676(0x1c4)]){const _0x1ed8b1=_0xe7d917[_0x11d676(0x1c4)][_0x11d676(0x1b2)](!0x0);_0x16e0e5[_0x11d676(0x19e)](_0x1ed8b1);}}),_0x16e0e5[_0x34f098(0x1c9)];const _0x84f9eb=_0x16e0e5[_0x34f098(0x1a4)],_0x25af07=[];return Array[_0x34f098(0x19f)](_0x84f9eb)[_0x34f098(0x204)](_0x35286a=>{const _0x384f15=_0x34f098,_0x4fe652=_0x35286a[_0x384f15(0x1ea)]()[_0x384f15(0x1f8)];_0x25af07[_0x384f15(0x1b3)](_0x4e9ffe=>Math[_0x384f15(0x1ef)](_0x4e9ffe-_0x4fe652)<this[_0x384f15(0x1a6)][_0x384f15(0x1ce)])||_0x25af07[_0x384f15(0x225)](_0x4fe652);}),{'rowCount':_0x25af07[_0x34f098(0x1ca)]};}[_0x554c8e(0x223)](){const _0x1b7f86=_0x554c8e,_0x570cd0=document[_0x1b7f86(0x1a3)](_0x1b7f86(0x194));return _0x570cd0[_0x1b7f86(0x20c)]=this[_0x1b7f86(0x1a6)][_0x1b7f86(0x1b1)][_0x1b7f86(0x1c5)],this[_0x1b7f86(0x1a6)][_0x1b7f86(0x1b1)][_0x1b7f86(0x1b9)]&&_0x570cd0[_0x1b7f86(0x1c2)][_0x1b7f86(0x1ac)](this[_0x1b7f86(0x1a6)][_0x1b7f86(0x1b1)][_0x1b7f86(0x1b9)]),_0x570cd0[_0x1b7f86(0x1d0)]=_0x1b7f86(0x1bb),_0x570cd0;}[_0x554c8e(0x1a2)](_0x1a5757,_0x183e70,_0x2f60aa){const _0x2ca4fe=_0x554c8e;this[_0x2ca4fe(0x1f2)](_0x183e70,_0x2f60aa);const _0x3b55d2=this[_0x2ca4fe(0x223)]();_0x1a5757[_0x2ca4fe(0x19e)](_0x3b55d2),_0x1a5757[_0x2ca4fe(0x1c9)];const _0x2f963a=[..._0x183e70[_0x2ca4fe(0x1a4)],_0x3b55d2],_0x22f1e3=[];_0x2f963a[_0x2ca4fe(0x204)](_0x5088ed=>{const _0xf35b58=_0x2ca4fe,_0x9c907f=_0x5088ed[_0xf35b58(0x1ea)]()[_0xf35b58(0x1f8)];_0x22f1e3[_0xf35b58(0x1b3)](_0x4097cd=>Math[_0xf35b58(0x1ef)](_0x4097cd-_0x9c907f)<this[_0xf35b58(0x1a6)][_0xf35b58(0x1ce)])||_0x22f1e3[_0xf35b58(0x225)](_0x9c907f);});const _0xa30644=_0x22f1e3[_0x2ca4fe(0x1ca)];return _0x3b55d2[_0x2ca4fe(0x1c7)](),_0xa30644<=this[_0x2ca4fe(0x1a6)][_0x2ca4fe(0x1a5)];}[_0x554c8e(0x1f7)](_0x25d8de,_0x3990c8){const _0x47645f=_0x554c8e;this[_0x47645f(0x1f1)][_0x47645f(0x210)](),this[_0x47645f(0x1f9)][_0x47645f(0x210)](),_0x25d8de[_0x47645f(0x204)](_0x1adf53=>{const _0x1ebdab=_0x47645f;_0x3990c8[_0x1ebdab(0x205)](_0x1adf53)?this[_0x1ebdab(0x1f9)][_0x1ebdab(0x1ac)](_0x1adf53):this[_0x1ebdab(0x1f1)][_0x1ebdab(0x1ac)](_0x1adf53);});}[_0x554c8e(0x1c0)](_0x25df07){const _0x53810b=_0x554c8e;if(_0x25df07>0x0&&!this[_0x53810b(0x213)]&&this[_0x53810b(0x1fb)](),_0x25df07>0x0&&this[_0x53810b(0x213)]){const _0x24115e=''+this[_0x53810b(0x1a6)][_0x53810b(0x196)]+(_0x25df07<0x63?_0x25df07:'99');this[_0x53810b(0x213)][_0x53810b(0x1db)]=_0x24115e;}this[_0x53810b(0x207)](),this[_0x53810b(0x21d)](),this[_0x53810b(0x199)]();}[_0x554c8e(0x217)](_0x43e317,_0x5a1b6f){const _0x91da29=_0x554c8e;this[_0x91da29(0x1f7)](_0x43e317,_0x5a1b6f),this[_0x91da29(0x1c0)](_0x5a1b6f[_0x91da29(0x1ca)]);}[_0x554c8e(0x195)](){const _0x44044b=_0x554c8e;this[_0x44044b(0x1f5)]&&_0x44044b(0x197)!=typeof IntersectionObserver&&(this[_0x44044b(0x191)]=new IntersectionObserver(_0xcd68f4=>{const _0x35dda0=_0x44044b;_0xcd68f4[0x0][_0x35dda0(0x221)]&&this[_0x35dda0(0x1f6)]&&requestAnimationFrame(()=>{const _0xa58e8f=_0x35dda0;this[_0xa58e8f(0x20b)]();});},{'threshold':0.01,'rootMargin':_0x44044b(0x1ec)}),this[_0x44044b(0x191)][_0x44044b(0x1b4)](this[_0x44044b(0x1f5)]));}[_0x554c8e(0x1ab)](){const _0x4ef7b0=_0x554c8e;if(!this[_0x4ef7b0(0x1f5)])return!0x1;if(!this[_0x4ef7b0(0x1f5)][_0x4ef7b0(0x1da)])return!0x1;const _0x4c1929=this[_0x4ef7b0(0x1f5)][_0x4ef7b0(0x1ea)]();if(0x0===_0x4c1929[_0x4ef7b0(0x219)]||0x0===_0x4c1929[_0x4ef7b0(0x1be)])return!0x1;const _0x8e9230=window[_0x4ef7b0(0x1a8)]||document[_0x4ef7b0(0x218)][_0x4ef7b0(0x220)],_0x582c6b=window[_0x4ef7b0(0x1ff)]||document[_0x4ef7b0(0x218)][_0x4ef7b0(0x20a)],_0xc924e5=0xc8;return _0x4c1929[_0x4ef7b0(0x1d6)]>=-0xc8&&_0x4c1929[_0x4ef7b0(0x1f8)]<=_0x8e9230+_0xc924e5&&_0x4c1929[_0x4ef7b0(0x19b)]>=-0xc8&&_0x4c1929[_0x4ef7b0(0x1de)]<=_0x582c6b+_0xc924e5;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2af966=_0x1eba;(function(_0x51f972,_0x3c19e){const _0x369f93=_0x1eba,_0x19da5c=_0x51f972();while(!![]){try{const _0x1115fd=-parseInt(_0x369f93(0x1cb))/0x1+-parseInt(_0x369f93(0x19b))/0x2+-parseInt(_0x369f93(0x1ab))/0x3+parseInt(_0x369f93(0x191))/0x4+parseInt(_0x369f93(0x1a8))/0x5+-parseInt(_0x369f93(0x197))/0x6+parseInt(_0x369f93(0x192))/0x7;if(_0x1115fd===_0x3c19e)break;else _0x19da5c['push'](_0x19da5c['shift']());}catch(_0x25bd1a){_0x19da5c['push'](_0x19da5c['shift']());}}}(_0x3d1b,0x66a47));import{ButtonView as _0x3aecc6,IconView as _0x2906e6}from'ckeditor5/src/ui.js';import{IconClose as _0x15dc09,IconDocument as _0x2036c0,IconFileUpload as _0xdbff74,IconLink as _0x4c2004,IconSelection as _0x10a5bd}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x5cf491}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x3db21c}from'../../../aicore/ui/aispinner.js';const xn={'file':_0xdbff74,'document':_0x2036c0,'web-resource':_0x4c2004,'text':_0xdbff74,'selection':_0x10a5bd,'mcp-tool-context':_0x2036c0},bn=_0x2af966(0x1ce),wn=_0x2af966(0x1af),Tn=_0x2af966(0x198),En=_0x2af966(0x1c3),fn=_0x2af966(0x1b1),An=_0x2af966(0x1ad),Cn='n';export class AIChatContextItemButtonView extends _0x3aecc6{constructor(_0x180166,_0x52f049,_0x576fc4,_0x203e79,_0x3e8913=!0x1){const _0x5d91b5=_0x2af966;super(_0x180166),this[_0x5d91b5(0x1cf)]=_0x203e79,this[_0x5d91b5(0x19d)](_0x52f049,_0x576fc4,_0x3e8913),this[_0x5d91b5(0x1c2)]();}[_0x2af966(0x1b4)](){const _0x4bccb6=_0x2af966;super[_0x4bccb6(0x1b4)](),this[_0x4bccb6(0x1cf)]&&this[_0x4bccb6(0x19a)]&&(this[_0x4bccb6(0x19a)][_0x4bccb6(0x195)][_0x4bccb6(0x1b8)](_0x4bccb6(0x1a5)),this[_0x4bccb6(0x1bb)](this[_0x4bccb6(0x19a)],()=>{const _0x23603f=_0x4bccb6;this[_0x23603f(0x19a)]&&this[_0x23603f(0x19a)][_0x23603f(0x195)][_0x23603f(0x1c5)](_0x23603f(0x1a5));}));}[_0x2af966(0x199)](){const _0x5d8505=_0x2af966;this[_0x5d8505(0x1cf)]=!0x1,this[_0x5d8505(0x19a)]&&this[_0x5d8505(0x19a)][_0x5d8505(0x195)][_0x5d8505(0x1c5)](_0x5d8505(0x1a5));}[_0x2af966(0x19d)](_0x5ccc70,_0x34fc14,_0x19148b){const _0x4ac23b=_0x2af966;this[_0x4ac23b(0x1c1)](_0x4ac23b(0x1b7),_0x5ccc70[_0x4ac23b(0x1b7)]),this[_0x4ac23b(0x1c1)](_0x4ac23b(0x1bd),!0x0),this[_0x4ac23b(0x1c1)](_0x4ac23b(0x1ae),_0x5ccc70[_0x4ac23b(0x1bc)]),this[_0x4ac23b(0x1c1)]('id',_0x5ccc70[_0x4ac23b(0x1c4)]),this[_0x4ac23b(0x1c1)](_0x4ac23b(0x1a4),_0x34fc14),this[_0x4ac23b(0x1c1)](_0x4ac23b(0x1a6),_0x19148b);}[_0x2af966(0x1c2)](){const _0x4dc2a5=_0x2af966,_0x539ae9=this[_0x4dc2a5(0x1a1)](),_0x2e2de6=this[_0x4dc2a5(0x1a7)](),_0x4e0ce3=this[_0x4dc2a5(0x1ca)];this[_0x4dc2a5(0x196)]({'tag':_0x4dc2a5(0x194),'attributes':this[_0x4dc2a5(0x1b0)](_0x4e0ce3),'children':this[_0x4dc2a5(0x1b3)](_0x539ae9,_0x2e2de6,_0x4e0ce3)});}[_0x2af966(0x1b0)](_0x19d9a6){const _0x4d0237=_0x2af966;return{'class':[bn,_0x19d9a6['if'](_0x4d0237(0x1ae),Tn,_0x2ac33e=>_0x4d0237(0x1c6)==_0x2ac33e),_0x19d9a6['if'](_0x4d0237(0x1ae),wn,_0x18ee5d=>_0x4d0237(0x1c9)==_0x18ee5d)],'data-cke-tooltip-text':_0x19d9a6['to'](_0x4d0237(0x1b7),In),'data-cke-tooltip-position':Cn,'data-cke-tooltip-class':An};}[_0x2af966(0x1b3)](_0x527108,_0x20aaad,_0x54b42a){const _0x5201b1=_0x2af966,_0xf3d782=this[_0x5201b1(0x1a0)](_0x54b42a),_0x289841=this[_0x5201b1(0x1c7)]();return this[_0x5201b1(0x1a4)]?[_0x527108,_0xf3d782]:[_0x527108,_0x289841,_0xf3d782,_0x20aaad];}[_0x2af966(0x1a0)](_0x117838){const _0x4fe49c=_0x2af966;return{'tag':_0x4fe49c(0x1ba),'attributes':{'class':En},'children':[{'text':_0x117838['to'](_0x4fe49c(0x1b7))}]};}[_0x2af966(0x1a7)](){const _0x1278f8=_0x2af966,_0x273273=new _0x3aecc6(this[_0x1278f8(0x19e)]);return _0x273273[_0x1278f8(0x1c1)]({'label':_0x5cf491(this[_0x1278f8(0x19e)],_0x1278f8(0x1b5)),'icon':_0x15dc09}),this[_0x1278f8(0x1be)](_0x273273),_0x273273;}[_0x2af966(0x1be)](_0x30526c){const _0x4a8b6c=_0x2af966;_0x30526c['on'](_0x4a8b6c(0x1c8),()=>{const _0x147b2f=_0x4a8b6c;this[_0x147b2f(0x1b6)](_0x147b2f(0x1cd),this['id']);});}[_0x2af966(0x1a1)](){const _0x434dae=_0x2af966,_0x2c8a3b=this[_0x434dae(0x1ca)],_0x1e1195=new _0x2906e6();return _0x1e1195[_0x434dae(0x1ac)]=xn[this[_0x434dae(0x1ae)]],_0x1e1195[_0x434dae(0x19c)]({'attributes':{'class':[fn,_0x2c8a3b['if'](_0x434dae(0x1a6),_0x434dae(0x19f),_0x53756b=>_0x53756b)]}}),_0x1e1195;}[_0x2af966(0x1bb)](_0x5ba54a,_0x4c9281){const _0x36078b=_0x2af966;if(!_0x5ba54a)return;const _0x38f5da=()=>{const _0x1df30e=_0x1eba;_0x4c9281(),_0x5ba54a[_0x1df30e(0x193)](_0x1df30e(0x1a3),_0x38f5da),_0x5ba54a[_0x1df30e(0x193)](_0x1df30e(0x1b9),_0x38f5da);};_0x5ba54a[_0x36078b(0x1a2)](_0x36078b(0x1a3),_0x38f5da),_0x5ba54a[_0x36078b(0x1a2)](_0x36078b(0x1b9),_0x38f5da);}[_0x2af966(0x1c7)](){const _0x2d1532=_0x2af966,_0x31a5b4=new _0x3db21c(_0x2d1532(0x1b2));return _0x31a5b4[_0x2d1532(0x1a9)](_0x2d1532(0x1aa))['to'](this,_0x2d1532(0x1a6),_0x4a5f09=>_0x4a5f09),_0x31a5b4;}}function In(_0x39fae0){const _0x5ee511=_0x2af966;if(!_0x39fae0)return _0x39fae0;if(_0x39fae0[_0x5ee511(0x1bf)]<=0x78)return _0x39fae0;const _0x26e48a=_0x39fae0[_0x5ee511(0x1cc)](0x0,0x78),_0x39e739=_0x26e48a[_0x5ee511(0x1c0)]('\x20');return(_0x39e739>0x0?_0x26e48a[_0x5ee511(0x1cc)](0x0,_0x39e739):_0x26e48a)+'…';}function _0x1eba(_0x4043ed,_0x2004d6){const _0x3d1bd9=_0x3d1b();return _0x1eba=function(_0x1ebaab,_0x421158){_0x1ebaab=_0x1ebaab-0x191;let _0x58040e=_0x3d1bd9[_0x1ebaab];return _0x58040e;},_0x1eba(_0x4043ed,_0x2004d6);}function _0x3d1b(){const _0x386258=['readonly','ck-ai-chat-context-chip_new-chip','isLoading','_createRemoveButton','1403160AKCJIw','bind','isVisible','2179194NOZgYo','content','ck-ai-chat-context-controls__chip-tooltip','itemType','ck-ai-chat-context-chip_wide','_createTemplateAttributes','ck-ai-chat-context-chip__type-icon','small','_createTemplateChildren','render','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','fire','label','add','webkitAnimationEnd','span','_handleAnimationEndOnce','type','tooltip','_setupRemoveButtonEvent','length','lastIndexOf','set','_setupTemplate','ck-ai-chat-context-chip__label','uiId','remove','document','_createLoaderIcon','execute','selection','bindTemplate','570290jUySxW','slice','removeContextItemChip','ck-ai-chat-context-chip','_isAnimationOnEnterEnabled','1495576aRnwNG','14972468GoXheM','removeEventListener','div','classList','setTemplate','1823958rFfoYu','ck-ai-chat-context-chip_document','disableAnimationOnEnter','element','1544692JHlenp','extendTemplate','_initializeProperties','locale','ck-hidden','_createLabelElement','_createIconView','addEventListener','animationend'];_0x3d1b=function(){return _0x386258;};return _0x3d1b();}
23
+ function _0x46c2(){const _0x36cf54=['ck-ai-chat-context-chip__label','element','bindTemplate','1228087hpVIxr','20MIXtUb','content','ck-ai-chat-context-chip_new-chip','ck-hidden','span','1415520rwFXTN','addEventListener','627273Vniqqe','execute','small','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','16950LIfpPl','set','slice','label','_createRemoveButton','isLoading','_setupRemoveButtonEvent','removeEventListener','ck-ai-chat-context-controls__chip-tooltip','tooltip','setTemplate','_isAnimationOnEnterEnabled','ck-ai-chat-context-chip_document','fire','28371pmUvpy','disableAnimationOnEnter','webkitAnimationEnd','bind','type','787944TPYliT','classList','remove','12724NtsbeY','add','ck-ai-chat-context-chip','_createLoaderIcon','ck-ai-chat-context-chip_wide','lastIndexOf','4BrRrCh','removeContextItemChip','locale','_createTemplateChildren','ck-ai-chat-context-chip__type-icon','animationend','isVisible','readonly','_setupTemplate','length','document','uiId','extendTemplate','8QPSqtg','_createTemplateAttributes','div','_createLabelElement','245lKUsic','11tViatF','itemType','_createIconView','_initializeProperties','_handleAnimationEndOnce','render','selection'];_0x46c2=function(){return _0x36cf54;};return _0x46c2();}const _0x5bd933=_0x29c7;function _0x29c7(_0x414338,_0x3ed1dc){const _0x46c29d=_0x46c2();return _0x29c7=function(_0x29c742,_0x69cfc0){_0x29c742=_0x29c742-0x1bf;let _0x42d2b0=_0x46c29d[_0x29c742];return _0x42d2b0;},_0x29c7(_0x414338,_0x3ed1dc);}(function(_0x4df607,_0x309d69){const _0x31e754=_0x29c7,_0x4674ab=_0x4df607();while(!![]){try{const _0x43a4a1=parseInt(_0x31e754(0x1f6))/0x1*(parseInt(_0x31e754(0x1fc))/0x2)+parseInt(_0x31e754(0x1ee))/0x3*(parseInt(_0x31e754(0x1d5))/0x4)+parseInt(_0x31e754(0x1c9))/0x5*(parseInt(_0x31e754(0x1e0))/0x6)+parseInt(_0x31e754(0x1d4))/0x7+parseInt(_0x31e754(0x1c5))/0x8*(-parseInt(_0x31e754(0x1dc))/0x9)+-parseInt(_0x31e754(0x1da))/0xa+parseInt(_0x31e754(0x1ca))/0xb*(-parseInt(_0x31e754(0x1f3))/0xc);if(_0x43a4a1===_0x309d69)break;else _0x4674ab['push'](_0x4674ab['shift']());}catch(_0x512aa8){_0x4674ab['push'](_0x4674ab['shift']());}}}(_0x46c2,0x1ac78));import{ButtonView as _0x328b34,IconView as _0x56051c}from'ckeditor5/src/ui.js';import{IconClose as _0x274629,IconDocument as _0x2e726a,IconFileUpload as _0x103e29,IconLink as _0x16590c,IconSelection as _0xf803be}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x1194da}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x1c57b9}from'../../../aicore/ui/aispinner.js';const xn={'file':_0x103e29,'document':_0x2e726a,'web-resource':_0x16590c,'text':_0x103e29,'selection':_0xf803be,'mcp-tool-context':_0x2e726a},bn=_0x5bd933(0x1f8),wn=_0x5bd933(0x1fa),Tn=_0x5bd933(0x1ec),En=_0x5bd933(0x1d1),fn=_0x5bd933(0x200),An=_0x5bd933(0x1e8),Cn='n';export class AIChatContextItemButtonView extends _0x328b34{constructor(_0x16d4a0,_0x1e134d,_0x241d13,_0x3d1596,_0x4b2ab9=!0x1){const _0x10b990=_0x5bd933;super(_0x16d4a0),this[_0x10b990(0x1eb)]=_0x3d1596,this[_0x10b990(0x1cd)](_0x1e134d,_0x241d13,_0x4b2ab9),this[_0x10b990(0x1c0)]();}[_0x5bd933(0x1cf)](){const _0x266850=_0x5bd933;super[_0x266850(0x1cf)](),this[_0x266850(0x1eb)]&&this[_0x266850(0x1d2)]&&(this[_0x266850(0x1d2)][_0x266850(0x1f4)][_0x266850(0x1f7)](_0x266850(0x1d7)),this[_0x266850(0x1ce)](this[_0x266850(0x1d2)],()=>{const _0x2418f5=_0x266850;this[_0x2418f5(0x1d2)]&&this[_0x2418f5(0x1d2)][_0x2418f5(0x1f4)][_0x2418f5(0x1f5)](_0x2418f5(0x1d7));}));}[_0x5bd933(0x1ef)](){const _0x2e9698=_0x5bd933;this[_0x2e9698(0x1eb)]=!0x1,this[_0x2e9698(0x1d2)]&&this[_0x2e9698(0x1d2)][_0x2e9698(0x1f4)][_0x2e9698(0x1f5)](_0x2e9698(0x1d7));}[_0x5bd933(0x1cd)](_0xfea77d,_0x537005,_0x2b7848){const _0x43aa4f=_0x5bd933;this[_0x43aa4f(0x1e1)](_0x43aa4f(0x1e3),_0xfea77d[_0x43aa4f(0x1e3)]),this[_0x43aa4f(0x1e1)](_0x43aa4f(0x1e9),!0x0),this[_0x43aa4f(0x1e1)](_0x43aa4f(0x1cb),_0xfea77d[_0x43aa4f(0x1f2)]),this[_0x43aa4f(0x1e1)]('id',_0xfea77d[_0x43aa4f(0x1c3)]),this[_0x43aa4f(0x1e1)](_0x43aa4f(0x1bf),_0x537005),this[_0x43aa4f(0x1e1)](_0x43aa4f(0x1e5),_0x2b7848);}[_0x5bd933(0x1c0)](){const _0x4edbdf=_0x5bd933,_0x1624e2=this[_0x4edbdf(0x1cc)](),_0x2085fd=this[_0x4edbdf(0x1e4)](),_0x53fc01=this[_0x4edbdf(0x1d3)];this[_0x4edbdf(0x1ea)]({'tag':_0x4edbdf(0x1c7),'attributes':this[_0x4edbdf(0x1c6)](_0x53fc01),'children':this[_0x4edbdf(0x1ff)](_0x1624e2,_0x2085fd,_0x53fc01)});}[_0x5bd933(0x1c6)](_0x2eb8b7){const _0x51f8b7=_0x5bd933;return{'class':[bn,_0x2eb8b7['if'](_0x51f8b7(0x1cb),Tn,_0xfa7417=>_0x51f8b7(0x1c2)==_0xfa7417),_0x2eb8b7['if'](_0x51f8b7(0x1cb),wn,_0x47008e=>_0x51f8b7(0x1d0)==_0x47008e)],'data-cke-tooltip-text':_0x2eb8b7['to'](_0x51f8b7(0x1e3),In),'data-cke-tooltip-position':Cn,'data-cke-tooltip-class':An};}[_0x5bd933(0x1ff)](_0x4ee7ce,_0xf2bb5d,_0x3083f0){const _0x3e0771=_0x5bd933,_0x409321=this[_0x3e0771(0x1c8)](_0x3083f0),_0x1d4a65=this[_0x3e0771(0x1f9)]();return this[_0x3e0771(0x1bf)]?[_0x4ee7ce,_0x409321]:[_0x4ee7ce,_0x1d4a65,_0x409321,_0xf2bb5d];}[_0x5bd933(0x1c8)](_0x30daf7){const _0x11b6e2=_0x5bd933;return{'tag':_0x11b6e2(0x1d9),'attributes':{'class':En},'children':[{'text':_0x30daf7['to'](_0x11b6e2(0x1e3))}]};}[_0x5bd933(0x1e4)](){const _0x4e5928=_0x5bd933,_0x1e13e8=new _0x328b34(this[_0x4e5928(0x1fe)]);return _0x1e13e8[_0x4e5928(0x1e1)]({'label':_0x1194da(this[_0x4e5928(0x1fe)],_0x4e5928(0x1df)),'icon':_0x274629}),this[_0x4e5928(0x1e6)](_0x1e13e8),_0x1e13e8;}[_0x5bd933(0x1e6)](_0x40e2f2){const _0x5f3b35=_0x5bd933;_0x40e2f2['on'](_0x5f3b35(0x1dd),()=>{const _0xd2be8=_0x5f3b35;this[_0xd2be8(0x1ed)](_0xd2be8(0x1fd),this['id']);});}[_0x5bd933(0x1cc)](){const _0x47f4ab=_0x5bd933,_0x43954f=this[_0x47f4ab(0x1d3)],_0x26b9ee=new _0x56051c();return _0x26b9ee[_0x47f4ab(0x1d6)]=xn[this[_0x47f4ab(0x1cb)]],_0x26b9ee[_0x47f4ab(0x1c4)]({'attributes':{'class':[fn,_0x43954f['if'](_0x47f4ab(0x1e5),_0x47f4ab(0x1d8),_0x508322=>_0x508322)]}}),_0x26b9ee;}[_0x5bd933(0x1ce)](_0x4cb3de,_0x57e115){const _0x526579=_0x5bd933;if(!_0x4cb3de)return;const _0x1a2f36=()=>{const _0xab5109=_0x29c7;_0x57e115(),_0x4cb3de[_0xab5109(0x1e7)](_0xab5109(0x201),_0x1a2f36),_0x4cb3de[_0xab5109(0x1e7)](_0xab5109(0x1f0),_0x1a2f36);};_0x4cb3de[_0x526579(0x1db)](_0x526579(0x201),_0x1a2f36),_0x4cb3de[_0x526579(0x1db)](_0x526579(0x1f0),_0x1a2f36);}[_0x5bd933(0x1f9)](){const _0x3f8d76=_0x5bd933,_0x1f5f3e=new _0x1c57b9(_0x3f8d76(0x1de));return _0x1f5f3e[_0x3f8d76(0x1f1)](_0x3f8d76(0x202))['to'](this,_0x3f8d76(0x1e5),_0x5741b2=>_0x5741b2),_0x1f5f3e;}}function In(_0x1b961d){const _0x57b617=_0x5bd933;if(!_0x1b961d)return _0x1b961d;if(_0x1b961d[_0x57b617(0x1c1)]<=0x78)return _0x1b961d;const _0x553ac1=_0x1b961d[_0x57b617(0x1e2)](0x0,0x78),_0x8e7df3=_0x553ac1[_0x57b617(0x1fb)]('\x20');return(_0x8e7df3>0x0?_0x553ac1[_0x57b617(0x1e2)](0x0,_0x8e7df3):_0x553ac1)+'…';}