@ckeditor/ckeditor5-ai 47.6.2 → 47.7.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (318) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +5 -5
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +15 -15
  150. package/src/aiactions/aiactions.js +1 -1
  151. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  152. package/src/aiactions/model/aiactionsreply.js +1 -1
  153. package/src/aiassistant/adapters/aiadapter.js +1 -1
  154. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  155. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  156. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  157. package/src/aiassistant/aiassistant.js +1 -1
  158. package/src/aiassistant/aiassistantediting.js +1 -1
  159. package/src/aiassistant/aiassistantui.js +1 -1
  160. package/src/aiassistant/legacyerrors.js +1 -1
  161. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  162. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  163. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  164. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  165. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  166. package/src/aiassistant/ui/form/aiformview.js +1 -1
  167. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  168. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  169. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  170. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  171. package/src/aiassistant/utils/common-translations.js +1 -1
  172. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  173. package/src/aiballoon/aiballoon.js +1 -1
  174. package/src/aiballoon/ui/aiballoonview.js +1 -1
  175. package/src/aichat/aichat.js +1 -1
  176. package/src/aichat/aichatballoon.js +1 -1
  177. package/src/aichat/aichatcontroller.js +1 -1
  178. package/src/aichat/aichatui.js +1 -1
  179. package/src/aichat/model/aichatcontext.js +1 -1
  180. package/src/aichat/model/aichatconversation.js +1 -1
  181. package/src/aichat/model/aichatinteraction.js +1 -1
  182. package/src/aichat/ui/aichatballoonview.js +1 -1
  183. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  184. package/src/aichat/ui/aichatfeedview.js +1 -1
  185. package/src/aichat/ui/aichatheaderview.js +1 -1
  186. package/src/aichat/ui/aichatview.js +1 -1
  187. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  188. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  189. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  190. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  191. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  192. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  193. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  194. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  195. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  196. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  197. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  198. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  199. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  200. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  201. package/src/aichat/ui/feed/aichatfeedcustomelementview.js +1 -1
  202. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  203. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  204. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  205. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  206. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  207. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  208. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  209. package/src/aichat/utils/eventnames.js +1 -1
  210. package/src/aichat/utils/promisequeue.js +1 -1
  211. package/src/aichathistory/aichathistory.js +1 -1
  212. package/src/aichathistory/aichathistorycontroller.js +1 -1
  213. package/src/aichathistory/aichathistoryui.js +1 -1
  214. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  215. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  216. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  217. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  218. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  219. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  220. package/src/aichatshortcuts/aichatshortcuts.js +1 -1
  221. package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
  222. package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
  223. package/src/aicore/aiconnector.js +1 -1
  224. package/src/aicore/aiediting.js +1 -1
  225. package/src/aicore/model/aicapabilities.js +1 -1
  226. package/src/aicore/model/aicontext.js +1 -1
  227. package/src/aicore/model/aiinteraction.js +1 -1
  228. package/src/aicore/model/aimodels.js +1 -1
  229. package/src/aicore/model/aireply.js +1 -1
  230. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  231. package/src/aicore/pipeline/airesponseparser.js +2 -2
  232. package/src/aicore/ui/aidisclaimerview.js +1 -1
  233. package/src/aicore/ui/aiskeleton.js +1 -1
  234. package/src/aicore/ui/aispinner.js +1 -1
  235. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  236. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  237. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  238. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
  239. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
  240. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
  241. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  242. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  243. package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
  244. package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
  245. package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
  246. package/src/aicore/utils/common-translations.js +1 -1
  247. package/src/aicore/utils/createresizebutton.js +1 -1
  248. package/src/aicore/utils/documentposition.js +1 -1
  249. package/src/aicore/utils/documentrange.js +1 -1
  250. package/src/aicore/utils/eventnames.js +1 -1
  251. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  252. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  253. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  254. package/src/aicore/utils/htmlparser.js +1 -1
  255. package/src/aicore/utils/htmlstreamer.js +1 -1
  256. package/src/aicore/utils/scrollmanager.js +1 -1
  257. package/src/aieditorintegration/aieditorintegration.js +1 -1
  258. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  259. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  260. package/src/aiquickactions/aiquickactions.js +1 -1
  261. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  262. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  263. package/src/aiquickactions/aiquickactionsui.js +1 -1
  264. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  265. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  266. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  267. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
  268. package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
  269. package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
  270. package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
  271. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  272. package/src/aireviewcore/aireviewcorecontroller.js +1 -1
  273. package/src/aireviewcore/aireviewcoreediting.js +1 -1
  274. package/src/aireviewcore/aireviewcoreui.js +1 -1
  275. package/src/aireviewcore/model/aireviewcheck.js +1 -1
  276. package/src/aireviewcore/model/aireviewchecklist.js +1 -1
  277. package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
  278. package/src/aireviewcore/model/aireviewcheckresultchange.js +1 -1
  279. package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
  280. package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
  281. package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
  282. package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
  283. package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
  284. package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
  285. package/src/aireviewcore/ui/aireviewcoregeneralerrorview.js +1 -1
  286. package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
  287. package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
  288. package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
  289. package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
  290. package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
  291. package/src/aireviewcore/ui/aireviewcoreview.js +1 -1
  292. package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
  293. package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +1 -1
  294. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  295. package/src/aireviewmode/aireviewmode.js +1 -1
  296. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  297. package/src/aireviewmode/aireviewmodeui.js +1 -1
  298. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  299. package/src/aireviewmode/model/aireviewcheckextra.js +1 -1
  300. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  301. package/src/aireviewmode/model/aireviewextracheckrun.js +1 -1
  302. package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
  303. package/src/aitabs/aitabs.js +1 -1
  304. package/src/aitabs/aitabsmainview.js +1 -1
  305. package/src/aitabs/tabs/aitabsview.js +1 -1
  306. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  307. package/src/aitabs/tabs/tabpanelview.js +1 -1
  308. package/src/aitranslate/aitranslate.js +1 -1
  309. package/src/aitranslate/aitranslatecontroller.js +1 -1
  310. package/src/aitranslate/aitranslateui.js +1 -1
  311. package/src/aitranslate/model/aitranslatecheck.js +1 -1
  312. package/src/aitranslate/model/aitranslatechecklist.js +1 -1
  313. package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
  314. package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
  315. package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
  316. package/src/errors.js +1 -1
  317. package/src/errorsmap.js +1 -1
  318. package/src/index.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4ef92b=_0x5125;function _0x1ed4(){const _0x485fc4=['modelSelected','getConversation','capabilities','interactionCreated','reasoning','updateCurrentDocumentInContext','content','1757hYnUQI','_processMessagesToInteractions','conversationInitialized','code','selectedModel','getMessages','_extractContextItems','addSelectionToContext','contextItems','selectedModelId','delegate','setReasoning','url','text','parse','setConversationTitle','ai-chat-conversation-start-no-model-selected','handleUserInteraction','currentInteraction','stop','updateCurrentDocument','getInteraction','push','loadSourceResources','populateFromMessage','fetchConversationMessages','indexOf','model','isCurrentDocumentInContext','splice','getPendingContextItems','setWebSearch','isCurrentDocumentInConversation','createReply','16268wAPSJb','ai-chat-conversation-set-model-null','sources','modification','get','chatContext','group','user','type','createInteraction','3361110VfvZUE','201ydAjqE','addToolItemToContext','addResourceToContext','addFilesToContext','isStarted','getEditor','chatCapabilities','removeFromContext','webSearch','993194ljUUsX','229289ByEBOg','chatModels','fetchConversation','ai-chat-handle-user-interaction-start-failed','toLowerCase','ai-chat-conversation-init-failed','hasOwn','9kQpqch','toggleWebSearch','ai-chat-conversation-already-started','error','length','setModel','ai-chat-conversation-start-failed','conversationStarted','getAvailableModels','ai-chat-conversation-set-model-not-available','toggleReasoning','isSelectionInContext','options','reset','_handleToolResultData','stack','load','getModel','isFromHistory','attributes','addCurrentDocumentToContext','isAvailable','title','10oYUVjI','752682ylfoXn','ai-chat-handle-user-interaction-already-in-progress','set','fire','getCurrentDocumentContext','ai-chat-conversation-init-from-id-failed','appendContent','addToConversationContext','toolName','7906899JyRIXF','getCapabilitiesConfig','assistant','prompt','conversationId','init','ai-chat-handle-user-conversation-not-initialized','lastInteraction','message','start','addUrlToContext','getDocumentContext','12184iumYeS','startConversation','getAll','interactions','sessionId','destroy','role','removeInteraction','mcp-tool-result','removeSelectionFromContext','connector','currentReply','find'];_0x1ed4=function(){return _0x485fc4;};return _0x1ed4();}(function(_0x120d03,_0x1b2dd3){const _0x5e42e8=_0x5125,_0x4ac867=_0x120d03();while(!![]){try{const _0x40f37b=-parseInt(_0x5e42e8(0x18b))/0x1+parseInt(_0x5e42e8(0x18a))/0x2+parseInt(_0x5e42e8(0x181))/0x3*(-parseInt(_0x5e42e8(0x176))/0x4)+parseInt(_0x5e42e8(0x12a))/0x5*(-parseInt(_0x5e42e8(0x12b))/0x6)+-parseInt(_0x5e42e8(0x154))/0x7*(parseInt(_0x5e42e8(0x140))/0x8)+-parseInt(_0x5e42e8(0x192))/0x9*(-parseInt(_0x5e42e8(0x180))/0xa)+parseInt(_0x5e42e8(0x134))/0xb;if(_0x40f37b===_0x1b2dd3)break;else _0x4ac867['push'](_0x4ac867['shift']());}catch(_0x2564d5){_0x4ac867['push'](_0x4ac867['shift']());}}}(_0x1ed4,0x65b3c));import{CKEditorError as _0x31036f,EmitterMixin as _0x25b025,logWarning as _0x4d048b}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x4622d7}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x1def19,AI_CONTEXT_MODEL_EVENT_NAMES as _0x5a2007}from'./aichatcontext.js';function _0x5125(_0x14ff54,_0x1632c0){const _0x1ed439=_0x1ed4();return _0x5125=function(_0x5125ab,_0x3d8e7d){_0x5125ab=_0x5125ab-0x126;let _0x3b6a14=_0x1ed439[_0x5125ab];return _0x3b6a14;},_0x5125(_0x14ff54,_0x1632c0);}import{AICapabilities as _0x1ed995,CAPABILITIES_MODEL_EVENT_NAMES as _0x5c0ecd}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x426121}from'./aichatinteraction.js';import{errorsMap as _0x38637f}from'../../errorsmap.js';export class AIChatConversation extends _0x25b025(){['id'];[_0x4ef92b(0x185)]=!0x1;[_0x4ef92b(0x1a4)];[_0x4ef92b(0x143)]=[];[_0x4ef92b(0x166)];[_0x4ef92b(0x158)];[_0x4ef92b(0x14a)];[_0x4ef92b(0x19e)];constructor(_0x599e42){const _0x41b2c2=_0x4ef92b;super(),this[_0x41b2c2(0x19e)]=_0x599e42,this[_0x41b2c2(0x14a)]=_0x599e42[_0x41b2c2(0x14a)],this[_0x41b2c2(0x18c)]=_0x599e42[_0x41b2c2(0x18c)],this['id']=_0x599e42[_0x41b2c2(0x138)],this[_0x41b2c2(0x1a4)]=_0x599e42[_0x41b2c2(0x1a4)];}async[_0x4ef92b(0x139)](_0x3bd7d1){const _0x130e31=_0x4ef92b;try{this[_0x130e31(0x17b)]=new _0x1def19({'connector':this[_0x130e31(0x14a)],'config':_0x3bd7d1,'ownerId':this['id']}),this[_0x130e31(0x17b)][_0x130e31(0x15e)](..._0x5a2007)['to'](this),this[_0x130e31(0x17b)][_0x130e31(0x139)](),this[_0x130e31(0x187)]=new _0x1ed995(),this[_0x130e31(0x187)][_0x130e31(0x15e)](..._0x5c0ecd)['to'](this),this[_0x130e31(0x187)][_0x130e31(0x139)]();const _0x18b62f=await this[_0x130e31(0x18c)][_0x130e31(0x19a)]();this[_0x130e31(0x12e)](_0x130e31(0x156),{'availableModels':_0x18b62f});const _0x5ef63e=await this[_0x130e31(0x18c)][_0x130e31(0x1a3)](this[_0x130e31(0x19e)][_0x130e31(0x15d)]);_0x5ef63e&&await this[_0x130e31(0x197)](_0x5ef63e);}catch(_0x1676e6){const _0x48a1e1=new _0x31036f(_0x130e31(0x190),null,{'message':_0x1676e6[_0x130e31(0x13c)]||_0x1676e6});_0x48a1e1[_0x130e31(0x1a1)]=_0x1676e6[_0x130e31(0x1a1)],this[_0x130e31(0x12e)](_0x130e31(0x195),{'error':_0x48a1e1});}}async[_0x4ef92b(0x13d)](){const _0x3d765b=_0x4ef92b;if(this[_0x3d765b(0x185)])throw new _0x31036f(_0x3d765b(0x194),null,{'conversation':this});if(!this[_0x3d765b(0x158)])throw new _0x31036f(_0x3d765b(0x164),null,{'conversation':this});try{const {id:_0x55befe}=await this[_0x3d765b(0x14a)][_0x3d765b(0x141)](this['id'],this[_0x3d765b(0x19e)][_0x3d765b(0x17c)])[_0x3d765b(0x14e)]();this['id']=_0x55befe,this[_0x3d765b(0x185)]=!0x0,this[_0x3d765b(0x12e)](_0x3d765b(0x199),{'conversationId':this['id'],'selectedModel':this[_0x3d765b(0x158)]});}catch(_0x29877d){const _0x378c1b=new _0x31036f(_0x3d765b(0x198),null,{'message':_0x29877d[_0x3d765b(0x13c)],'conversationId':this['id']});throw _0x378c1b[_0x3d765b(0x1a1)]=_0x29877d[_0x3d765b(0x1a1)],this[_0x3d765b(0x12e)](_0x3d765b(0x195),{'error':_0x378c1b}),_0x378c1b;}}async[_0x4ef92b(0x1a2)](_0x5293bb,_0x56b7b0){const _0x35a2cb=_0x4ef92b;try{const _0x539ed1=await this[_0x35a2cb(0x14a)][_0x35a2cb(0x18d)](_0x5293bb)[_0x35a2cb(0x14e)](),_0x3be685=await this[_0x35a2cb(0x14a)][_0x35a2cb(0x16d)](_0x5293bb)[_0x35a2cb(0x159)](),_0x15744d=_0x3be685[0x0][_0x35a2cb(0x16f)];this[_0x35a2cb(0x185)]=!0x0,this['id']=_0x539ed1['id'],_0x35a2cb(0x129)in _0x539ed1?this[_0x35a2cb(0x12e)](_0x35a2cb(0x163),_0x539ed1[_0x35a2cb(0x129)],!0x0):this[_0x35a2cb(0x12e)](_0x35a2cb(0x163),'',!0x0);const _0x55c30e=(await this[_0x35a2cb(0x18c)][_0x35a2cb(0x142)]())[_0x35a2cb(0x14c)](_0xcac2be=>_0xcac2be['id'][_0x35a2cb(0x18f)]()===_0x15744d[_0x35a2cb(0x18f)]());return this[_0x35a2cb(0x158)]=_0x55c30e,this[_0x35a2cb(0x12e)](_0x35a2cb(0x14d),{'selectedModel':_0x55c30e,'isDisabled':!0x0}),await this[_0x35a2cb(0x155)](_0x3be685,_0x56b7b0,_0x15744d),this[_0x35a2cb(0x166)]=void 0x0,this;}catch(_0x4dd907){const _0x3bcf9e=new _0x31036f(_0x35a2cb(0x130),null,{'message':_0x4dd907[_0x35a2cb(0x13c)],'conversationId':_0x5293bb});throw _0x3bcf9e[_0x35a2cb(0x1a1)]=_0x4dd907[_0x35a2cb(0x1a1)],this[_0x35a2cb(0x12e)](_0x35a2cb(0x195),{'error':_0x3bcf9e}),_0x3bcf9e;}}async[_0x4ef92b(0x155)](_0x4ca9f5,_0x2b92e4,_0x710200){const _0x51d5c0=_0x4ef92b;let _0x38a193;for(const _0x459b85 of _0x4ca9f5)if(_0x51d5c0(0x17d)===_0x459b85[_0x51d5c0(0x146)]){const _0x122b4f=await this[_0x51d5c0(0x15a)](_0x459b85),_0x39574a={'isReasoningEnabled':Object[_0x51d5c0(0x191)](_0x459b85[_0x51d5c0(0x14f)],_0x51d5c0(0x151)),'isWebSearchEnabled':Object[_0x51d5c0(0x191)](_0x459b85[_0x51d5c0(0x14f)],_0x51d5c0(0x189))};_0x38a193=this[_0x51d5c0(0x17f)]({'userMessage':_0x459b85[_0x51d5c0(0x137)],'contextItems':_0x122b4f,'capabilities':_0x39574a,'modelId':_0x710200,'attributes':_0x459b85[_0x51d5c0(0x126)]}),this[_0x51d5c0(0x166)]=_0x38a193,this[_0x51d5c0(0x17b)][_0x51d5c0(0x132)](this[_0x51d5c0(0x166)][_0x51d5c0(0x15c)]);}else{if(_0x51d5c0(0x136)===_0x459b85[_0x51d5c0(0x146)]&&_0x38a193){const _0x577c27=[];for(const _0x58a656 of _0x459b85[_0x51d5c0(0x153)])switch(_0x58a656[_0x51d5c0(0x17e)]){case _0x51d5c0(0x161):case _0x51d5c0(0x179):{const _0x19cdcc=_0x38a193[_0x51d5c0(0x13f)]()?.[_0x51d5c0(0x144)]!==_0x2b92e4;_0x38a193[_0x51d5c0(0x14b)]=_0x38a193[_0x51d5c0(0x175)]({'type':_0x58a656[_0x51d5c0(0x17e)],'isDone':!0x0,'interactionId':_0x38a193['id'],'areActionsDisabled':_0x19cdcc}),_0x38a193[_0x51d5c0(0x14b)][_0x51d5c0(0x131)](_0x58a656[_0x51d5c0(0x153)]),_0x577c27[_0x51d5c0(0x196)]>0x0&&(_0x38a193[_0x51d5c0(0x14b)][_0x51d5c0(0x178)]=_0x577c27[_0x51d5c0(0x171)](0x0));break;}case _0x51d5c0(0x160):_0x577c27[_0x51d5c0(0x16a)](_0x58a656);break;case _0x51d5c0(0x148):{const {data:_0x149e22,attributes:_0x38270b}=JSON[_0x51d5c0(0x162)](_0x58a656[_0x51d5c0(0x153)]);_0x38a193[_0x51d5c0(0x1a0)]({'toolName':_0x58a656[_0x51d5c0(0x133)],'data':_0x149e22,'attributes':_0x38270b});break;}}}}}async[_0x4ef92b(0x15a)](_0x5d8845){const _0x2b3d7e=_0x4ef92b,_0x409f22=new Map();if(!_0x5d8845[_0x2b3d7e(0x153)])return _0x409f22;for(const _0x159f3a of _0x5d8845[_0x2b3d7e(0x153)]){const _0x215091=await this[_0x2b3d7e(0x17b)][_0x2b3d7e(0x16c)](_0x159f3a);_0x215091&&_0x409f22[_0x2b3d7e(0x12d)](_0x215091['id'],_0x215091);}return _0x409f22;}async[_0x4ef92b(0x165)]({userMessage:_0x24ea29,attributes:_0x5751fb}){const _0x2c339c=_0x4ef92b;if(!this[_0x2c339c(0x185)])throw new _0x31036f(_0x2c339c(0x13a),null,{'conversation':this});if(this[_0x2c339c(0x166)])throw new _0x31036f(_0x2c339c(0x12c),null,{'conversation':this});try{const _0xccc260=this[_0x2c339c(0x17b)][_0x2c339c(0x172)](),_0x2dcf59=this[_0x2c339c(0x187)][_0x2c339c(0x135)](),_0x8898a1=this[_0x2c339c(0x158)]['id'];this[_0x2c339c(0x166)]=this[_0x2c339c(0x17f)]({'userMessage':_0x24ea29,'contextItems':_0xccc260,'capabilities':_0x2dcf59,'modelId':_0x8898a1,'attributes':_0x5751fb}),await this[_0x2c339c(0x166)][_0x2c339c(0x13d)](),this[_0x2c339c(0x17b)][_0x2c339c(0x132)](this[_0x2c339c(0x166)][_0x2c339c(0x15c)]);}catch(_0xdfbc7){if(_0xdfbc7 instanceof _0x31036f)this[_0x2c339c(0x12e)](_0x2c339c(0x195),{'interactionId':this[_0x2c339c(0x166)]?this[_0x2c339c(0x166)]['id']:void 0x0,'error':_0xdfbc7});else{const _0x3c79e3=_0x38637f[_0x2c339c(0x17a)](_0xdfbc7[_0x2c339c(0x157)])||_0x2c339c(0x18e);this[_0x2c339c(0x12e)](_0x2c339c(0x195),{'interactionId':this[_0x2c339c(0x166)]?this[_0x2c339c(0x166)]['id']:void 0x0,'error':new _0x31036f(_0x3c79e3,null,{'error':_0xdfbc7})});}}finally{this[_0x2c339c(0x166)]?.[_0x2c339c(0x167)](),this[_0x2c339c(0x166)]=void 0x0;}}[_0x4ef92b(0x17f)]({userMessage:_0x215fbb,contextItems:_0x493b22,capabilities:_0x1142f,modelId:_0x4a187e,attributes:_0x57acc4}){const _0x4fbc50=_0x4ef92b,_0x1c2ffa=new _0x426121({'userMessage':_0x215fbb,'contextItems':_0x493b22,'capabilities':_0x1142f,'conversationId':this['id'],'connector':this[_0x4fbc50(0x14a)],'editor':this[_0x4fbc50(0x19e)][_0x4fbc50(0x186)]&&this[_0x4fbc50(0x19e)][_0x4fbc50(0x186)](),'model':_0x4a187e,'attributes':_0x57acc4});return _0x1c2ffa[_0x4fbc50(0x15e)](..._0x4622d7)['to'](this),this[_0x4fbc50(0x143)][_0x4fbc50(0x16a)](_0x1c2ffa),this[_0x4fbc50(0x12e)](_0x4fbc50(0x150),_0x1c2ffa),_0x1c2ffa;}[_0x4ef92b(0x169)](_0xe7ea11){const _0x9d90c2=_0x4ef92b;return this[_0x9d90c2(0x143)][_0x9d90c2(0x14c)](_0x38eeb2=>_0x38eeb2['id']===_0xe7ea11);}[_0x4ef92b(0x147)](_0x18c7e8){const _0x2b8ff8=_0x4ef92b,_0x570b52=this[_0x2b8ff8(0x169)](_0x18c7e8);_0x570b52&&(_0x570b52[_0x2b8ff8(0x145)](),this[_0x2b8ff8(0x143)][_0x2b8ff8(0x171)](this[_0x2b8ff8(0x143)][_0x2b8ff8(0x16e)](_0x570b52),0x1));}get[_0x4ef92b(0x13b)](){const _0x28f59b=_0x4ef92b;return this[_0x28f59b(0x143)][this[_0x28f59b(0x143)][_0x28f59b(0x196)]-0x1];}[_0x4ef92b(0x127)](_0xec6264){const _0x2bb9a7=_0x4ef92b;this[_0x2bb9a7(0x17b)][_0x2bb9a7(0x127)](_0xec6264);}async[_0x4ef92b(0x152)]({content:_0x15091c,version:_0x2ca767,sessionId:_0x3c7a71,selections:_0x36056f}){const _0x3f46b4=_0x4ef92b;await this[_0x3f46b4(0x17b)][_0x3f46b4(0x168)](_0x15091c,_0x2ca767,_0x3c7a71,_0x36056f);}[_0x4ef92b(0x12f)](){const _0x192637=_0x4ef92b;return this[_0x192637(0x166)]?.[_0x192637(0x13f)]()?.[_0x192637(0x153)]||'';}[_0x4ef92b(0x15b)](_0xdb1d4){const _0x3749c3=_0x4ef92b;this[_0x3749c3(0x17b)][_0x3749c3(0x15b)](_0xdb1d4);}[_0x4ef92b(0x149)](){const _0x39c951=_0x4ef92b;this[_0x39c951(0x17b)][_0x39c951(0x149)]();}[_0x4ef92b(0x184)](_0x4ea213){const _0xeeef4e=_0x4ef92b;this[_0xeeef4e(0x17b)][_0xeeef4e(0x184)](_0x4ea213);}[_0x4ef92b(0x13e)](_0x132f3d){const _0x2df761=_0x4ef92b;this[_0x2df761(0x17b)][_0x2df761(0x13e)](_0x132f3d);}[_0x4ef92b(0x182)](_0x342be6){const _0x54a965=_0x4ef92b;this[_0x54a965(0x17b)][_0x54a965(0x182)](_0x342be6);}[_0x4ef92b(0x183)](_0xc41692,_0x3fcb7d){const _0x29066a=_0x4ef92b;this[_0x29066a(0x17b)][_0x29066a(0x183)](_0xc41692,_0x3fcb7d);}[_0x4ef92b(0x16b)](_0x17db4e,_0x40ad31,_0x57af80){const _0x30bcf8=_0x4ef92b;return this[_0x30bcf8(0x17b)][_0x30bcf8(0x16b)](_0x17db4e,_0x40ad31,_0x57af80);}[_0x4ef92b(0x188)](_0x1acf83){const _0x25ce47=_0x4ef92b;this[_0x25ce47(0x17b)][_0x25ce47(0x188)](_0x1acf83);}[_0x4ef92b(0x173)](_0x109af5){const _0x38f7ce=_0x4ef92b;this[_0x38f7ce(0x187)][_0x38f7ce(0x173)](_0x109af5);}[_0x4ef92b(0x193)](){const _0x1b79d6=_0x4ef92b;this[_0x1b79d6(0x187)][_0x1b79d6(0x193)]();}[_0x4ef92b(0x15f)](_0x11a3d1){const _0x4c0eb7=_0x4ef92b;this[_0x4c0eb7(0x187)][_0x4c0eb7(0x15f)](_0x11a3d1);}[_0x4ef92b(0x19c)](){const _0x23c924=_0x4ef92b;this[_0x23c924(0x187)][_0x23c924(0x19c)]();}[_0x4ef92b(0x170)](){const _0x3f05e8=_0x4ef92b;return this[_0x3f05e8(0x17b)][_0x3f05e8(0x170)]();}[_0x4ef92b(0x174)](){const _0x48b39f=_0x4ef92b;return this[_0x48b39f(0x17b)][_0x48b39f(0x174)]();}[_0x4ef92b(0x19d)](){const _0x122a84=_0x4ef92b;return this[_0x122a84(0x17b)][_0x122a84(0x19d)]();}async[_0x4ef92b(0x197)](_0x175b1e){const _0x4f3d8e=_0x4ef92b;_0x175b1e?!0x1===await this[_0x4f3d8e(0x18c)][_0x4f3d8e(0x128)](_0x175b1e)&&(_0x4d048b(_0x4f3d8e(0x19b),{'conversation':this,'model':_0x175b1e}),_0x175b1e=(await this[_0x4f3d8e(0x18c)][_0x4f3d8e(0x19a)]())[0x0]):(_0x4d048b(_0x4f3d8e(0x177),{'conversation':this}),_0x175b1e=(await this[_0x4f3d8e(0x18c)][_0x4f3d8e(0x19a)]())[0x0]),_0x175b1e['id']!==this[_0x4f3d8e(0x158)]?.['id']&&(this[_0x4f3d8e(0x158)]=_0x175b1e,this[_0x4f3d8e(0x187)][_0x4f3d8e(0x19f)](),this[_0x4f3d8e(0x12e)](_0x4f3d8e(0x14d),{'selectedModel':_0x175b1e}));}}
23
+ const _0x15fd9e=_0x33cf;(function(_0x29f3b0,_0x1ffa71){const _0x245706=_0x33cf,_0x1e2afc=_0x29f3b0();while(!![]){try{const _0x160629=parseInt(_0x245706(0x257))/0x1+parseInt(_0x245706(0x1fe))/0x2+-parseInt(_0x245706(0x234))/0x3+parseInt(_0x245706(0x24a))/0x4*(parseInt(_0x245706(0x259))/0x5)+-parseInt(_0x245706(0x1e9))/0x6*(parseInt(_0x245706(0x237))/0x7)+parseInt(_0x245706(0x1fd))/0x8+-parseInt(_0x245706(0x220))/0x9;if(_0x160629===_0x1ffa71)break;else _0x1e2afc['push'](_0x1e2afc['shift']());}catch(_0x155206){_0x1e2afc['push'](_0x1e2afc['shift']());}}}(_0xc9c5,0xd0519));import{CKEditorError as _0x1ae879,EmitterMixin as _0xff21b1,logWarning as _0x375471}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x1b4a88}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x412711,AI_CONTEXT_MODEL_EVENT_NAMES as _0x2e4fa4}from'./aichatcontext.js';import{AICapabilities as _0x49c86f,CAPABILITIES_MODEL_EVENT_NAMES as _0x1821c1}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0xffd4e0}from'./aichatinteraction.js';function _0x33cf(_0x41f28e,_0x328a25){const _0xc9c570=_0xc9c5();return _0x33cf=function(_0x33cf57,_0x56cb5e){_0x33cf57=_0x33cf57-0x1e3;let _0x4626e1=_0xc9c570[_0x33cf57];return _0x4626e1;},_0x33cf(_0x41f28e,_0x328a25);}import{errorsMap as _0x5f03e6}from'../../errorsmap.js';function _0xc9c5(){const _0x5367a1=['getCurrentDocumentContext','init','addUrlToContext','splice','createReply','setConversationTitle','getDocumentContext','prompt','error','sources','indexOf','model','getInteraction','type','_processMessagesToInteractions','hasOwn','destroy','currentInteraction','16806906yVYAPE','startConversation','webSearch','mcp-tool-result','reset','parse','attributes','push','isSelectionInContext','ai-chat-handle-user-interaction-already-in-progress','chatModels','modelSelected','toggleWebSearch','ai-chat-conversation-start-failed','message','fetchConversationMessages','isCurrentDocumentInConversation','isCurrentDocumentInContext','addCurrentDocumentToContext','capabilities','105048sigSSM','handleUserInteraction','group','2107ZghLqu','get','toLowerCase','conversationStarted','toolName','getEditor','reasoning','removeSelectionFromContext','addToConversationContext','set','getCapabilitiesConfig','isAvailable','role','getConversation','ai-chat-conversation-init-failed','getAvailableModels','setReasoning','connector','_handleToolResultData','8608pGZNTk','assistant','loadSourceResources','conversationInitialized','load','stack','chatContext','user','options','stop','selectedModel','code','interactionCreated','250360TFbXOM','toggleReasoning','315uuXshG','_extractContextItems','length','currentReply','isStarted','selectedModelId','url','createInteraction','interactions','ai-chat-handle-user-conversation-not-initialized','ai-chat-conversation-start-no-model-selected','ai-chat-conversation-already-started','sessionId','9492oaIygD','ai-chat-conversation-set-model-null','removeFromContext','text','getModel','content','contextItems','removeInteraction','setWebSearch','conversationId','find','setModel','addToolItemToContext','updateCurrentDocument','chatCapabilities','getMessages','appendContent','lastInteraction','modification','addFilesToContext','11053752ChIbzW','2928500TZmMMw','getAll','delegate','isFromHistory','populateFromMessage','updateCurrentDocumentInContext','getPendingContextItems','ai-chat-handle-user-interaction-start-failed','title','addResourceToContext','fire','ai-chat-conversation-init-from-id-failed','addSelectionToContext','ai-chat-conversation-set-model-not-available','fetchConversation','start'];_0xc9c5=function(){return _0x5367a1;};return _0xc9c5();}export class AIChatConversation extends _0xff21b1(){['id'];[_0x15fd9e(0x25d)]=!0x1;[_0x15fd9e(0x201)];[_0x15fd9e(0x1e4)]=[];[_0x15fd9e(0x21f)];[_0x15fd9e(0x254)];[_0x15fd9e(0x248)];[_0x15fd9e(0x252)];constructor(_0x4281c7){const _0x42415f=_0x15fd9e;super(),this[_0x42415f(0x252)]=_0x4281c7,this[_0x42415f(0x248)]=_0x4281c7[_0x42415f(0x248)],this[_0x42415f(0x22a)]=_0x4281c7[_0x42415f(0x22a)],this['id']=_0x4281c7[_0x42415f(0x1f2)],this[_0x42415f(0x201)]=_0x4281c7[_0x42415f(0x201)];}async[_0x15fd9e(0x20f)](_0x2c269a){const _0x104f55=_0x15fd9e;try{this[_0x104f55(0x250)]=new _0x412711({'connector':this[_0x104f55(0x248)],'config':_0x2c269a,'ownerId':this['id']}),this[_0x104f55(0x250)][_0x104f55(0x200)](..._0x2e4fa4)['to'](this),this[_0x104f55(0x250)][_0x104f55(0x20f)](),this[_0x104f55(0x1f7)]=new _0x49c86f(),this[_0x104f55(0x1f7)][_0x104f55(0x200)](..._0x1821c1)['to'](this),this[_0x104f55(0x1f7)][_0x104f55(0x20f)]();const _0x1c8a49=await this[_0x104f55(0x22a)][_0x104f55(0x246)]();this[_0x104f55(0x208)](_0x104f55(0x24d),{'availableModels':_0x1c8a49});const _0x3e6318=await this[_0x104f55(0x22a)][_0x104f55(0x1ed)](this[_0x104f55(0x252)][_0x104f55(0x25e)]);_0x3e6318&&await this[_0x104f55(0x1f4)](_0x3e6318);}catch(_0x7ab110){const _0x43fc1b=new _0x1ae879(_0x104f55(0x245),null,{'message':_0x7ab110[_0x104f55(0x22e)]||_0x7ab110});_0x43fc1b[_0x104f55(0x24f)]=_0x7ab110[_0x104f55(0x24f)],this[_0x104f55(0x208)](_0x104f55(0x216),{'error':_0x43fc1b});}}async[_0x15fd9e(0x20d)](){const _0x2ff307=_0x15fd9e;if(this[_0x2ff307(0x25d)])throw new _0x1ae879(_0x2ff307(0x1e7),null,{'conversation':this});if(!this[_0x2ff307(0x254)])throw new _0x1ae879(_0x2ff307(0x1e6),null,{'conversation':this});try{const {id:_0x3d4409}=await this[_0x2ff307(0x248)][_0x2ff307(0x221)](this['id'],this[_0x2ff307(0x252)][_0x2ff307(0x236)])[_0x2ff307(0x244)]();this['id']=_0x3d4409,this[_0x2ff307(0x25d)]=!0x0,this[_0x2ff307(0x208)](_0x2ff307(0x23a),{'conversationId':this['id'],'selectedModel':this[_0x2ff307(0x254)]});}catch(_0x27dbfc){const _0x50c656=new _0x1ae879(_0x2ff307(0x22d),null,{'message':_0x27dbfc[_0x2ff307(0x22e)],'conversationId':this['id']});throw _0x50c656[_0x2ff307(0x24f)]=_0x27dbfc[_0x2ff307(0x24f)],this[_0x2ff307(0x208)](_0x2ff307(0x216),{'error':_0x50c656}),_0x50c656;}}async[_0x15fd9e(0x24e)](_0x2bf87f,_0x521d94){const _0x6346ea=_0x15fd9e;try{const _0x2c2d18=await this[_0x6346ea(0x248)][_0x6346ea(0x20c)](_0x2bf87f)[_0x6346ea(0x244)](),_0x1b73e9=await this[_0x6346ea(0x248)][_0x6346ea(0x22f)](_0x2bf87f)[_0x6346ea(0x1f8)](),_0x20562f=_0x1b73e9[0x0][_0x6346ea(0x219)];this[_0x6346ea(0x25d)]=!0x0,this['id']=_0x2c2d18['id'],_0x6346ea(0x206)in _0x2c2d18?this[_0x6346ea(0x208)](_0x6346ea(0x213),_0x2c2d18[_0x6346ea(0x206)],!0x0):this[_0x6346ea(0x208)](_0x6346ea(0x213),'',!0x0);const _0x2ad0dd=(await this[_0x6346ea(0x22a)][_0x6346ea(0x1ff)]())[_0x6346ea(0x1f3)](_0x542f2b=>_0x542f2b['id'][_0x6346ea(0x239)]()===_0x20562f[_0x6346ea(0x239)]());return this[_0x6346ea(0x254)]=_0x2ad0dd,this[_0x6346ea(0x208)](_0x6346ea(0x22b),{'selectedModel':_0x2ad0dd,'isDisabled':!0x0}),await this[_0x6346ea(0x21c)](_0x1b73e9,_0x521d94,_0x20562f),this[_0x6346ea(0x21f)]=void 0x0,this;}catch(_0x15ee6c){const _0x26af6b=new _0x1ae879(_0x6346ea(0x209),null,{'message':_0x15ee6c[_0x6346ea(0x22e)],'conversationId':_0x2bf87f});throw _0x26af6b[_0x6346ea(0x24f)]=_0x15ee6c[_0x6346ea(0x24f)],this[_0x6346ea(0x208)](_0x6346ea(0x216),{'error':_0x26af6b}),_0x26af6b;}}async[_0x15fd9e(0x21c)](_0x1b2f40,_0x112e29,_0x20e2c9){const _0x3e7a2b=_0x15fd9e;let _0x2014e0;for(const _0x1d6556 of _0x1b2f40)if(_0x3e7a2b(0x251)===_0x1d6556[_0x3e7a2b(0x243)]){const _0x530880=await this[_0x3e7a2b(0x25a)](_0x1d6556),_0x361cf8={'isReasoningEnabled':Object[_0x3e7a2b(0x21d)](_0x1d6556[_0x3e7a2b(0x233)],_0x3e7a2b(0x23d)),'isWebSearchEnabled':Object[_0x3e7a2b(0x21d)](_0x1d6556[_0x3e7a2b(0x233)],_0x3e7a2b(0x222))};_0x2014e0=this[_0x3e7a2b(0x1e3)]({'userMessage':_0x1d6556[_0x3e7a2b(0x215)],'contextItems':_0x530880,'capabilities':_0x361cf8,'modelId':_0x20e2c9,'attributes':_0x1d6556[_0x3e7a2b(0x226)]}),this[_0x3e7a2b(0x21f)]=_0x2014e0,this[_0x3e7a2b(0x250)][_0x3e7a2b(0x23f)](this[_0x3e7a2b(0x21f)][_0x3e7a2b(0x1ef)]);}else{if(_0x3e7a2b(0x24b)===_0x1d6556[_0x3e7a2b(0x243)]&&_0x2014e0){const _0x102c3a=[];for(const _0x6f6a6a of _0x1d6556[_0x3e7a2b(0x1ee)])switch(_0x6f6a6a[_0x3e7a2b(0x21b)]){case _0x3e7a2b(0x1ec):case _0x3e7a2b(0x1fb):{const _0x3f134f=_0x2014e0[_0x3e7a2b(0x214)]()?.[_0x3e7a2b(0x1e8)]!==_0x112e29;_0x2014e0[_0x3e7a2b(0x25c)]=_0x2014e0[_0x3e7a2b(0x212)]({'type':_0x6f6a6a[_0x3e7a2b(0x21b)],'isDone':!0x0,'interactionId':_0x2014e0['id'],'areActionsDisabled':_0x3f134f}),_0x2014e0[_0x3e7a2b(0x25c)][_0x3e7a2b(0x1f9)](_0x6f6a6a[_0x3e7a2b(0x1ee)]),_0x102c3a[_0x3e7a2b(0x25b)]>0x0&&(_0x2014e0[_0x3e7a2b(0x25c)][_0x3e7a2b(0x217)]=_0x102c3a[_0x3e7a2b(0x211)](0x0));break;}case _0x3e7a2b(0x25f):_0x102c3a[_0x3e7a2b(0x227)](_0x6f6a6a);break;case _0x3e7a2b(0x223):{const {data:_0x873311,attributes:_0x7fa7d3}=JSON[_0x3e7a2b(0x225)](_0x6f6a6a[_0x3e7a2b(0x1ee)]);_0x2014e0[_0x3e7a2b(0x249)]({'toolName':_0x6f6a6a[_0x3e7a2b(0x23b)],'data':_0x873311,'attributes':_0x7fa7d3});break;}}}}}async[_0x15fd9e(0x25a)](_0x543ca7){const _0x34a383=_0x15fd9e,_0xe4ae09=new Map();if(!_0x543ca7[_0x34a383(0x1ee)])return _0xe4ae09;for(const _0x16c91e of _0x543ca7[_0x34a383(0x1ee)]){const _0x2379fd=await this[_0x34a383(0x250)][_0x34a383(0x202)](_0x16c91e);_0x2379fd&&_0xe4ae09[_0x34a383(0x240)](_0x2379fd['id'],_0x2379fd);}return _0xe4ae09;}async[_0x15fd9e(0x235)]({userMessage:_0x33babd,attributes:_0x3f9af5}){const _0x33b3b1=_0x15fd9e;if(!this[_0x33b3b1(0x25d)])throw new _0x1ae879(_0x33b3b1(0x1e5),null,{'conversation':this});if(this[_0x33b3b1(0x21f)])throw new _0x1ae879(_0x33b3b1(0x229),null,{'conversation':this});try{const _0x12fa6d=this[_0x33b3b1(0x250)][_0x33b3b1(0x204)](),_0x166b6c=this[_0x33b3b1(0x1f7)][_0x33b3b1(0x241)](),_0x17e40b=this[_0x33b3b1(0x254)]['id'];this[_0x33b3b1(0x21f)]=this[_0x33b3b1(0x1e3)]({'userMessage':_0x33babd,'contextItems':_0x12fa6d,'capabilities':_0x166b6c,'modelId':_0x17e40b,'attributes':_0x3f9af5}),await this[_0x33b3b1(0x21f)][_0x33b3b1(0x20d)](),this[_0x33b3b1(0x250)][_0x33b3b1(0x23f)](this[_0x33b3b1(0x21f)][_0x33b3b1(0x1ef)]);}catch(_0x5c3b6d){if(_0x5c3b6d instanceof _0x1ae879)this[_0x33b3b1(0x208)](_0x33b3b1(0x216),{'interactionId':this[_0x33b3b1(0x21f)]?this[_0x33b3b1(0x21f)]['id']:void 0x0,'error':_0x5c3b6d});else{const _0x30da4f=_0x5f03e6[_0x33b3b1(0x238)](_0x5c3b6d[_0x33b3b1(0x255)])||_0x33b3b1(0x205);this[_0x33b3b1(0x208)](_0x33b3b1(0x216),{'interactionId':this[_0x33b3b1(0x21f)]?this[_0x33b3b1(0x21f)]['id']:void 0x0,'error':new _0x1ae879(_0x30da4f,null,{'error':_0x5c3b6d})});}}finally{this[_0x33b3b1(0x21f)]?.[_0x33b3b1(0x253)](),this[_0x33b3b1(0x21f)]=void 0x0;}}[_0x15fd9e(0x1e3)]({userMessage:_0x19addc,contextItems:_0x10db1f,capabilities:_0x5e15ce,modelId:_0x4b2802,attributes:_0xcad72a}){const _0x56fc6e=_0x15fd9e,_0x4794e2=new _0xffd4e0({'userMessage':_0x19addc,'contextItems':_0x10db1f,'capabilities':_0x5e15ce,'conversationId':this['id'],'connector':this[_0x56fc6e(0x248)],'editor':this[_0x56fc6e(0x252)][_0x56fc6e(0x23c)]&&this[_0x56fc6e(0x252)][_0x56fc6e(0x23c)](),'model':_0x4b2802,'attributes':_0xcad72a});return _0x4794e2[_0x56fc6e(0x200)](..._0x1b4a88)['to'](this),this[_0x56fc6e(0x1e4)][_0x56fc6e(0x227)](_0x4794e2),this[_0x56fc6e(0x208)](_0x56fc6e(0x256),_0x4794e2),_0x4794e2;}[_0x15fd9e(0x21a)](_0x256958){const _0x107dde=_0x15fd9e;return this[_0x107dde(0x1e4)][_0x107dde(0x1f3)](_0x23368c=>_0x23368c['id']===_0x256958);}[_0x15fd9e(0x1f0)](_0x403970){const _0x380d83=_0x15fd9e,_0x3303e2=this[_0x380d83(0x21a)](_0x403970);_0x3303e2&&(_0x3303e2[_0x380d83(0x21e)](),this[_0x380d83(0x1e4)][_0x380d83(0x211)](this[_0x380d83(0x1e4)][_0x380d83(0x218)](_0x3303e2),0x1));}get[_0x15fd9e(0x1fa)](){const _0x5b322c=_0x15fd9e;return this[_0x5b322c(0x1e4)][this[_0x5b322c(0x1e4)][_0x5b322c(0x25b)]-0x1];}[_0x15fd9e(0x232)](_0x4f81d9){const _0x57f3e2=_0x15fd9e;this[_0x57f3e2(0x250)][_0x57f3e2(0x232)](_0x4f81d9);}async[_0x15fd9e(0x203)]({content:_0x1d4e87,version:_0x41d9b0,sessionId:_0xd4f81a,selections:_0x57b1d6}){const _0x405d7a=_0x15fd9e;await this[_0x405d7a(0x250)][_0x405d7a(0x1f6)](_0x1d4e87,_0x41d9b0,_0xd4f81a,_0x57b1d6);}[_0x15fd9e(0x20e)](){const _0x55bf35=_0x15fd9e;return this[_0x55bf35(0x21f)]?.[_0x55bf35(0x214)]()?.[_0x55bf35(0x1ee)]||'';}[_0x15fd9e(0x20a)](_0x286b1b){const _0x2e6f93=_0x15fd9e;this[_0x2e6f93(0x250)][_0x2e6f93(0x20a)](_0x286b1b);}[_0x15fd9e(0x23e)](){const _0x3bdaed=_0x15fd9e;this[_0x3bdaed(0x250)][_0x3bdaed(0x23e)]();}[_0x15fd9e(0x1fc)](_0xf29fab){const _0x35c1b6=_0x15fd9e;this[_0x35c1b6(0x250)][_0x35c1b6(0x1fc)](_0xf29fab);}[_0x15fd9e(0x210)](_0x15e81c){const _0x23e4e6=_0x15fd9e;this[_0x23e4e6(0x250)][_0x23e4e6(0x210)](_0x15e81c);}[_0x15fd9e(0x1f5)](_0x4b3f27){const _0x1ff328=_0x15fd9e;this[_0x1ff328(0x250)][_0x1ff328(0x1f5)](_0x4b3f27);}[_0x15fd9e(0x207)](_0xf21d76,_0x377e16){const _0x3833d0=_0x15fd9e;this[_0x3833d0(0x250)][_0x3833d0(0x207)](_0xf21d76,_0x377e16);}[_0x15fd9e(0x24c)](_0x4c38a8,_0x559b3e,_0x399329){const _0x2f1e2c=_0x15fd9e;return this[_0x2f1e2c(0x250)][_0x2f1e2c(0x24c)](_0x4c38a8,_0x559b3e,_0x399329);}[_0x15fd9e(0x1eb)](_0x82f2d4){const _0x1fc237=_0x15fd9e;this[_0x1fc237(0x250)][_0x1fc237(0x1eb)](_0x82f2d4);}[_0x15fd9e(0x1f1)](_0xe93063){const _0x3995fc=_0x15fd9e;this[_0x3995fc(0x1f7)][_0x3995fc(0x1f1)](_0xe93063);}[_0x15fd9e(0x22c)](){const _0x41a075=_0x15fd9e;this[_0x41a075(0x1f7)][_0x41a075(0x22c)]();}[_0x15fd9e(0x247)](_0x3e3970){const _0x301de5=_0x15fd9e;this[_0x301de5(0x1f7)][_0x301de5(0x247)](_0x3e3970);}[_0x15fd9e(0x258)](){const _0x3df206=_0x15fd9e;this[_0x3df206(0x1f7)][_0x3df206(0x258)]();}[_0x15fd9e(0x231)](){const _0x454f90=_0x15fd9e;return this[_0x454f90(0x250)][_0x454f90(0x231)]();}[_0x15fd9e(0x230)](){const _0x56661f=_0x15fd9e;return this[_0x56661f(0x250)][_0x56661f(0x230)]();}[_0x15fd9e(0x228)](){const _0x2e4c51=_0x15fd9e;return this[_0x2e4c51(0x250)][_0x2e4c51(0x228)]();}async[_0x15fd9e(0x1f4)](_0x134eb5){const _0xce0f1e=_0x15fd9e;_0x134eb5?!0x1===await this[_0xce0f1e(0x22a)][_0xce0f1e(0x242)](_0x134eb5)&&(_0x375471(_0xce0f1e(0x20b),{'conversation':this,'model':_0x134eb5}),_0x134eb5=(await this[_0xce0f1e(0x22a)][_0xce0f1e(0x246)]())[0x0]):(_0x375471(_0xce0f1e(0x1ea),{'conversation':this}),_0x134eb5=(await this[_0xce0f1e(0x22a)][_0xce0f1e(0x246)]())[0x0]),_0x134eb5['id']!==this[_0xce0f1e(0x254)]?.['id']&&(this[_0xce0f1e(0x254)]=_0x134eb5,this[_0xce0f1e(0x1f7)][_0xce0f1e(0x224)](),this[_0xce0f1e(0x208)](_0xce0f1e(0x22b),{'selectedModel':_0x134eb5}));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x124b82=_0x51e4;function _0x51e4(_0x18b79f,_0xc405d2){var _0x49c930=_0x49c9();return _0x51e4=function(_0x51e407,_0x1aa7e0){_0x51e407=_0x51e407-0xb8;var _0xe31051=_0x49c930[_0x51e407];return _0xe31051;},_0x51e4(_0x18b79f,_0xc405d2);}(function(_0x27efe9,_0x366999){var _0x41425d=_0x51e4,_0x2478f9=_0x27efe9();while(!![]){try{var _0x5efa0f=parseInt(_0x41425d(0xc1))/0x1+parseInt(_0x41425d(0xbb))/0x2*(-parseInt(_0x41425d(0xb9))/0x3)+-parseInt(_0x41425d(0xce))/0x4*(-parseInt(_0x41425d(0xc0))/0x5)+parseInt(_0x41425d(0xd1))/0x6*(parseInt(_0x41425d(0xcb))/0x7)+parseInt(_0x41425d(0xcd))/0x8*(parseInt(_0x41425d(0xc4))/0x9)+-parseInt(_0x41425d(0xcf))/0xa+-parseInt(_0x41425d(0xc7))/0xb*(parseInt(_0x41425d(0xc3))/0xc);if(_0x5efa0f===_0x366999)break;else _0x2478f9['push'](_0x2478f9['shift']());}catch(_0x541d57){_0x2478f9['push'](_0x2478f9['shift']());}}}(_0x49c9,0x5b52d));import{AICapabilities as _0x13b8d1}from'../../aicore/model/aicapabilities.js';import{AIInteraction as _0x1c8dd5}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x16ed6c}from'./aichatcontext.js';function _0x49c9(){var _0x5e00aa=['2992404eatGyH','415026ptlUPs','getCapabilitiesRequestData','userMessage','33NMSEPd','conversationId','sendRequest','model','154SIPBvE','connector','128XOMZdd','2564GNQSjW','6874310jbgCel','current-document','137046rMVnxe','attributes','9kcrEMf','mapContextItemsToRequestData','51902TpQHWQ','get','queryAssistant','capabilities','getDocumentContext','2555WdIlxM','319569JufQXT','contextItems'];_0x49c9=function(){return _0x5e00aa;};return _0x49c9();}export class AIChatInteraction extends _0x1c8dd5{[_0x124b82(0xc6)];[_0x124b82(0xc8)];[_0x124b82(0xc2)]=new Map();[_0x124b82(0xca)];[_0x124b82(0xb8)];constructor(_0x2c067e){var _0x55b0e1=_0x124b82;super(_0x2c067e),this[_0x55b0e1(0xc8)]=_0x2c067e[_0x55b0e1(0xc8)],this[_0x55b0e1(0xc2)]=_0x2c067e[_0x55b0e1(0xc2)],this[_0x55b0e1(0xbe)]=_0x2c067e[_0x55b0e1(0xbe)],this[_0x55b0e1(0xc6)]=_0x2c067e[_0x55b0e1(0xc6)],this[_0x55b0e1(0xca)]=_0x2c067e[_0x55b0e1(0xca)],this[_0x55b0e1(0xb8)]=_0x2c067e[_0x55b0e1(0xb8)];}async[_0x124b82(0xc9)](){var _0x33a8aa=_0x124b82;return this[_0x33a8aa(0xcc)][_0x33a8aa(0xbd)]({'message':this[_0x33a8aa(0xc6)],'conversationId':this[_0x33a8aa(0xc8)],'parts':_0x16ed6c[_0x33a8aa(0xba)](this[_0x33a8aa(0xc2)]),'capabilities':_0x13b8d1[_0x33a8aa(0xc5)](this[_0x33a8aa(0xbe)]),'model':this[_0x33a8aa(0xca)],'attributes':this[_0x33a8aa(0xb8)]});}[_0x124b82(0xbf)](){var _0x3223ec=_0x124b82;return this[_0x3223ec(0xc2)][_0x3223ec(0xbc)](_0x3223ec(0xd0));}}
23
+ var _0x485993=_0x51cd;(function(_0x5bc888,_0x5a5daf){var _0x1f4b41=_0x51cd,_0x4b4fa7=_0x5bc888();while(!![]){try{var _0xbbc5eb=-parseInt(_0x1f4b41(0x1ef))/0x1+-parseInt(_0x1f4b41(0x1e7))/0x2*(parseInt(_0x1f4b41(0x1e5))/0x3)+-parseInt(_0x1f4b41(0x1f7))/0x4*(-parseInt(_0x1f4b41(0x1ea))/0x5)+-parseInt(_0x1f4b41(0x1e4))/0x6*(-parseInt(_0x1f4b41(0x1e6))/0x7)+parseInt(_0x1f4b41(0x1f1))/0x8+-parseInt(_0x1f4b41(0x1ed))/0x9*(-parseInt(_0x1f4b41(0x1eb))/0xa)+parseInt(_0x1f4b41(0x1f4))/0xb;if(_0xbbc5eb===_0x5a5daf)break;else _0x4b4fa7['push'](_0x4b4fa7['shift']());}catch(_0x3017c2){_0x4b4fa7['push'](_0x4b4fa7['shift']());}}}(_0x3c3c,0x9597b));function _0x51cd(_0x49cca3,_0xdcb5be){var _0x3c3c10=_0x3c3c();return _0x51cd=function(_0x51cdff,_0xfc6f1e){_0x51cdff=_0x51cdff-0x1e0;var _0x26940f=_0x3c3c10[_0x51cdff];return _0x26940f;},_0x51cd(_0x49cca3,_0xdcb5be);}import{AICapabilities as _0x14ec8a}from'../../aicore/model/aicapabilities.js';function _0x3c3c(){var _0x21a0e0=['getCapabilitiesRequestData','sendRequest','646842ShqUhe','243MEghYV','49kWTBPY','25774aWZfte','conversationId','queryAssistant','5IqCdAa','137490gxiHnY','model','18MtaxMp','userMessage','400011ztvJia','mapContextItemsToRequestData','6699376KLlDwc','attributes','current-document','1981023hRNIJl','connector','get','1027708swPuAZ','getDocumentContext','contextItems','capabilities'];_0x3c3c=function(){return _0x21a0e0;};return _0x3c3c();}import{AIInteraction as _0x2d647e}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x109bb3}from'./aichatcontext.js';export class AIChatInteraction extends _0x2d647e{[_0x485993(0x1ee)];[_0x485993(0x1e8)];[_0x485993(0x1e0)]=new Map();[_0x485993(0x1ec)];[_0x485993(0x1f2)];constructor(_0x4bb09b){var _0x544c09=_0x485993;super(_0x4bb09b),this[_0x544c09(0x1e8)]=_0x4bb09b[_0x544c09(0x1e8)],this[_0x544c09(0x1e0)]=_0x4bb09b[_0x544c09(0x1e0)],this[_0x544c09(0x1e1)]=_0x4bb09b[_0x544c09(0x1e1)],this[_0x544c09(0x1ee)]=_0x4bb09b[_0x544c09(0x1ee)],this[_0x544c09(0x1ec)]=_0x4bb09b[_0x544c09(0x1ec)],this[_0x544c09(0x1f2)]=_0x4bb09b[_0x544c09(0x1f2)];}async[_0x485993(0x1e3)](){var _0x4a9442=_0x485993;return this[_0x4a9442(0x1f5)][_0x4a9442(0x1e9)]({'message':this[_0x4a9442(0x1ee)],'conversationId':this[_0x4a9442(0x1e8)],'parts':_0x109bb3[_0x4a9442(0x1f0)](this[_0x4a9442(0x1e0)]),'capabilities':_0x14ec8a[_0x4a9442(0x1e2)](this[_0x4a9442(0x1e1)]),'model':this[_0x4a9442(0x1ec)],'attributes':this[_0x4a9442(0x1f2)]});}[_0x485993(0x1f8)](){var _0x3126c0=_0x485993;return this[_0x3126c0(0x1e0)][_0x3126c0(0x1f6)](_0x3126c0(0x1f3));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xed3f52=_0x18e1;function _0x2625(){const _0x342430=['4993616VckspW','_createNextButtonView','change:isTrackChangesOn','toggleSuggestionDisplayMode','_createPreviousButtonView','locale','722316rOlfub','_keystrokes','fire','_isErrorVisible','_stateView','includes','previousButtonView','children','_togglePartToolbarButtonsVisibility','availableActions','_partToolbarView','render','createCollection','AI_BALLOON_NEXT_LABEL','destroy','focusLast','updateContent','_toolbarContainerView','_config','element','nextButtonView','div','1426173MDsphO','focusFirst','setButtonsVisibility','isShowChangesOn','addMany','full','_focusTracker','ck-ai-chat-balloon-main_state_','1375070uzqWhL','_streamableContentView','listenTo','_miniToolbarView','AI_BALLOON_PREVIOUS_LABEL','2BPcvhm','toggleRotatorButtonsVisibility','focusCycler','208mHrFlv','bindTemplate','toggleShowChanges','tab','showPrevious','showDiff','_errorView','isTrackChangesOn','1202346PHWxSx','isEnabled','execute','pending','setState','showError','delegate','3588440eRXoHt','rejectSuggestion','set','add','focus','showBlockingError','has','keepErrors','applySuggestion','ck-ai-chat-balloon__toolbar-container','isVisible','shift\x20+\x20tab','change:_state','update','insertSuggestion','togglePartToolbarEnabled','showNext','709446YTBpRJ','_focusables','hideError','ck-ai-chat-balloon-main','setTemplate','bind','_state'];_0x2625=function(){return _0x342430;};return _0x2625();}(function(_0x43308e,_0x3670c3){const _0x57175a=_0x18e1,_0x3ef6aa=_0x43308e();while(!![]){try{const _0x5cdee0=-parseInt(_0x57175a(0x1b4))/0x1+parseInt(_0x57175a(0x1b9))/0x2*(parseInt(_0x57175a(0x189))/0x3)+-parseInt(_0x57175a(0x190))/0x4+-parseInt(_0x57175a(0x1cb))/0x5+parseInt(_0x57175a(0x196))/0x6+parseInt(_0x57175a(0x1ac))/0x7+parseInt(_0x57175a(0x1bc))/0x8*(parseInt(_0x57175a(0x1c4))/0x9);if(_0x5cdee0===_0x3670c3)break;else _0x3ef6aa['push'](_0x3ef6aa['shift']());}catch(_0x567950){_0x3ef6aa['push'](_0x3ef6aa['shift']());}}}(_0x2625,0xa9299));import{FocusTracker as _0x6122c8,KeystrokeHandler as _0x55e54c}from'ckeditor5/src/utils.js';import{AISuggestionStreamableContentView as _0x3324b5}from'../../aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js';function _0x18e1(_0x56cc20,_0x57a849){const _0x2625c5=_0x2625();return _0x18e1=function(_0x18e1d5,_0x1c3951){_0x18e1d5=_0x18e1d5-0x17f;let _0x5b236a=_0x2625c5[_0x18e1d5];return _0x5b236a;},_0x18e1(_0x56cc20,_0x57a849);}import{AISuggestionContentPartToolbarView as _0x1c6544}from'../../aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js';import{AIMiniToolbarView as _0x19c6d8}from'../../aicore/ui/suggestioncontainer/aiminitoolbarview.js';import{AIBalloonView as _0x56c006}from'../../aiballoon/ui/aiballoonview.js';import{ButtonView as _0x1a8758,FocusCycler as _0x4ce837,View as _0x103061}from'ckeditor5/src/ui.js';import{AISuggestionContentPartStateView as _0x319d6b}from'../../aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js';import{IconChevronDown as _0x50e553,IconChevronUp as _0x5c80ef}from'ckeditor5/src/icons.js';import{getTranslation as _0x1a1fb8}from'../../aicore/utils/common-translations.js';import'../../../theme/aichat/aichatballoon.css';export class AIChatBalloonView extends _0x56c006{[_0xed3f52(0x19d)];[_0xed3f52(0x1aa)];[_0xed3f52(0x19c)];[_0xed3f52(0x1bb)];[_0xed3f52(0x18a)];[_0xed3f52(0x1b2)];[_0xed3f52(0x197)];[_0xed3f52(0x1a8)];[_0xed3f52(0x1b5)];[_0xed3f52(0x1a7)];[_0xed3f52(0x1a0)];[_0xed3f52(0x19a)];[_0xed3f52(0x1b7)];constructor(_0x21df95,_0x5baca8){const _0x4e8484=_0xed3f52;super(_0x21df95);const _0x21c0ec=this[_0x4e8484(0x1bd)];this[_0x4e8484(0x1cd)](_0x4e8484(0x1c1),!0x1),this[_0x4e8484(0x1cd)](_0x4e8484(0x18f),_0x4e8484(0x1c7)),this[_0x4e8484(0x1b2)]=new _0x6122c8(),this[_0x4e8484(0x197)]=new _0x55e54c(),this[_0x4e8484(0x18a)]=this[_0x4e8484(0x1a2)](),this[_0x4e8484(0x1bb)]=new _0x4ce837({'focusables':this[_0x4e8484(0x18a)],'focusTracker':this[_0x4e8484(0x1b2)],'keystrokeHandler':this[_0x4e8484(0x197)],'actions':{'focusPrevious':_0x4e8484(0x183),'focusNext':_0x4e8484(0x1bf)}}),this[_0x4e8484(0x1a8)]=_0x5baca8,this[_0x4e8484(0x1aa)]=this[_0x4e8484(0x191)](),this[_0x4e8484(0x19c)]=this[_0x4e8484(0x194)](),this[_0x4e8484(0x1b5)]=new _0x3324b5(_0x21df95),this[_0x4e8484(0x1a0)]=new _0x1c6544(_0x21df95,_0x5baca8[_0x4e8484(0x19f)]),this[_0x4e8484(0x1a0)][_0x4e8484(0x1ca)](_0x4e8484(0x180),_0x4e8484(0x186),_0x4e8484(0x1cc))['to'](this),this[_0x4e8484(0x19e)](_0x5baca8),this[_0x4e8484(0x19a)]=new _0x319d6b(_0x21df95),this[_0x4e8484(0x19a)][_0x4e8484(0x182)]=!0x1,this[_0x4e8484(0x1b7)]=new _0x19c6d8(_0x21df95,{'showChanges':_0x4e8484(0x1b1)}),this[_0x4e8484(0x1b7)][_0x4e8484(0x18e)](_0x4e8484(0x1af))['to'](this,_0x4e8484(0x1c1)),this[_0x4e8484(0x1b7)]['on'](_0x4e8484(0x1be),()=>{const _0x468e39=_0x4e8484;this[_0x468e39(0x198)](_0x468e39(0x193));}),this[_0x4e8484(0x1a7)]=new fs(_0x21df95,[this[_0x4e8484(0x1a0)],this[_0x4e8484(0x19a)],this[_0x4e8484(0x1b7)]]),this[_0x4e8484(0x19d)]=this[_0x4e8484(0x1a2)]([this[_0x4e8484(0x1b5)],this[_0x4e8484(0x1a7)]]),this['on'](_0x4e8484(0x184),(_0x318210,_0x18b583,_0x41f6c0,_0x3d01a7)=>{const _0x57d814=_0x4e8484;let _0x1ff056,_0x24dd14;_0x57d814(0x1c7)===_0x3d01a7?(_0x1ff056=this[_0x57d814(0x1a0)],_0x24dd14=this[_0x57d814(0x19a)]):(_0x1ff056=this[_0x57d814(0x19a)],_0x24dd14=this[_0x57d814(0x1a0)]),this[_0x57d814(0x19a)][_0x57d814(0x1c8)](_0x41f6c0),_0x1ff056[_0x57d814(0x182)]=!0x1,_0x24dd14[_0x57d814(0x182)]=!0x0;}),this[_0x4e8484(0x18d)]({'tag':_0x4e8484(0x1ab),'attributes':{'class':['ck',_0x4e8484(0x18c),_0x21c0ec['to'](_0x4e8484(0x18f),_0xbc71df=>_0x4e8484(0x1b3)+_0xbc71df)]},'children':this[_0x4e8484(0x19d)]}),this['on'](_0x4e8484(0x192),()=>{const _0x4a1581=_0x4e8484;this[_0x4a1581(0x19e)](_0x5baca8);});}[_0xed3f52(0x1a1)](){const _0x19a2d8=_0xed3f52;super[_0x19a2d8(0x1a1)](),this[_0x19a2d8(0x1aa)][_0x19a2d8(0x1a1)](),this[_0x19a2d8(0x19c)][_0x19a2d8(0x1a1)](),this[_0x19a2d8(0x1b2)][_0x19a2d8(0x1ce)](this[_0x19a2d8(0x1a9)]),this[_0x19a2d8(0x1b2)][_0x19a2d8(0x1ce)](this[_0x19a2d8(0x1aa)]),this[_0x19a2d8(0x1b2)][_0x19a2d8(0x1ce)](this[_0x19a2d8(0x19c)]),this[_0x19a2d8(0x1b2)][_0x19a2d8(0x1ce)](this[_0x19a2d8(0x1b7)]),this[_0x19a2d8(0x1b2)][_0x19a2d8(0x1ce)](this[_0x19a2d8(0x1a0)]),this[_0x19a2d8(0x197)][_0x19a2d8(0x1b6)](this[_0x19a2d8(0x1a9)]),this[_0x19a2d8(0x197)][_0x19a2d8(0x1b6)](this[_0x19a2d8(0x1aa)][_0x19a2d8(0x1a9)]),this[_0x19a2d8(0x197)][_0x19a2d8(0x1b6)](this[_0x19a2d8(0x19c)][_0x19a2d8(0x1a9)]),this[_0x19a2d8(0x18a)][_0x19a2d8(0x1b0)]([this[_0x19a2d8(0x1aa)],this[_0x19a2d8(0x19c)],this[_0x19a2d8(0x1a0)],this[_0x19a2d8(0x1b7)]]);}[_0xed3f52(0x1a4)](){const _0x4f85a3=_0xed3f52;super[_0x4f85a3(0x1a4)](),this[_0x4f85a3(0x19c)][_0x4f85a3(0x1a4)](),this[_0x4f85a3(0x1aa)][_0x4f85a3(0x1a4)]();}[_0xed3f52(0x1cf)](){const _0x151d7b=_0xed3f52;this[_0x151d7b(0x1bb)][_0x151d7b(0x1ad)]();}[_0xed3f52(0x1a5)](){const _0x3cb305=_0xed3f52;this[_0x3cb305(0x1bb)][_0x3cb305(0x1a5)]();}async[_0xed3f52(0x1a6)](_0x5383c3){const _0x47324d=_0xed3f52;_0x5383c3?.[_0x47324d(0x17f)]||this[_0x47324d(0x18b)](),await this[_0x47324d(0x1b5)][_0x47324d(0x185)](_0x5383c3);}[_0xed3f52(0x1c8)](_0x34c339){const _0x53317f=_0xed3f52;this[_0x53317f(0x18f)]=_0x34c339;}[_0xed3f52(0x1c9)](_0x2aaddd){const _0x719157=_0xed3f52;super[_0x719157(0x1c9)](_0x2aaddd),this[_0x719157(0x19d)][_0x719157(0x1d1)](this[_0x719157(0x1c2)])||this[_0x719157(0x19d)][_0x719157(0x1ce)](this[_0x719157(0x1c2)],0x0);}[_0xed3f52(0x18b)](){const _0x2c2553=_0xed3f52;this[_0x2c2553(0x199)]&&(super[_0x2c2553(0x18b)](),this[_0x2c2553(0x187)](!0x0));}[_0xed3f52(0x1d0)](_0x7ee02){const _0x2ecf92=_0xed3f52;super[_0x2ecf92(0x1d0)](_0x7ee02),this[_0x2ecf92(0x187)](!0x1);}[_0xed3f52(0x1ba)](_0x2cf641){const _0xfa7bdb=_0xed3f52;this[_0xfa7bdb(0x1aa)][_0xfa7bdb(0x182)]=this[_0xfa7bdb(0x19c)][_0xfa7bdb(0x182)]=_0x2cf641;}[_0xed3f52(0x187)](_0x12a70b){const _0x106efe=_0xed3f52;this[_0x106efe(0x1a0)][_0x106efe(0x1c5)]=_0x12a70b;}[_0xed3f52(0x19e)]({showApplyButton:_0x31e3e7,showSuggestButton:_0x320a84}){const _0x50166b=_0xed3f52;_0x31e3e7=_0x31e3e7&&!this[_0x50166b(0x1c3)]&&this[_0x50166b(0x1a8)][_0x50166b(0x19f)][_0x50166b(0x19b)](_0x50166b(0x180)),_0x320a84=_0x320a84&&this[_0x50166b(0x1a8)][_0x50166b(0x19f)][_0x50166b(0x19b)](_0x50166b(0x186)),this[_0x50166b(0x1a0)][_0x50166b(0x1ae)]({'showApplyButton':_0x31e3e7,'showSuggestButton':_0x320a84});}[_0xed3f52(0x191)](){const _0x148bb8=_0xed3f52,_0x2a5ac8=new _0x1a8758(this[_0x148bb8(0x195)]);return _0x2a5ac8[_0x148bb8(0x1cd)]({'icon':_0x50e553,'label':_0x1a1fb8(this[_0x148bb8(0x195)],_0x148bb8(0x1a3)),'isVisible':!0x0}),_0x2a5ac8['on'](_0x148bb8(0x1c6),()=>{const _0x41ee94=_0x148bb8;this[_0x41ee94(0x198)](_0x41ee94(0x188));}),_0x2a5ac8;}[_0xed3f52(0x194)](){const _0x13ec4c=_0xed3f52,_0x4a33a6=new _0x1a8758(this[_0x13ec4c(0x195)]);return _0x4a33a6[_0x13ec4c(0x1cd)]({'icon':_0x5c80ef,'label':_0x1a1fb8(this[_0x13ec4c(0x195)],_0x13ec4c(0x1b8)),'isVisible':!0x0}),_0x4a33a6['on'](_0x13ec4c(0x1c6),()=>{const _0x27710a=_0x13ec4c;this[_0x27710a(0x198)](_0x27710a(0x1c0));}),_0x4a33a6;}}class fs extends _0x103061{constructor(_0x1bb914,_0x587ec7){const _0x2f5588=_0xed3f52;super(_0x1bb914),this[_0x2f5588(0x18d)]({'tag':_0x2f5588(0x1ab),'attributes':{'class':[_0x2f5588(0x181)]},'children':_0x587ec7});}}
23
+ const _0x21b245=_0x35f0;function _0x5b39(){const _0x423ee6=['toggleShowChanges','has','17904NqpenI','tab','applySuggestion','_keystrokes','update','full','availableActions','element','ck-ai-chat-balloon-main','render','fire','shift\x20+\x20tab','304910tcMvdw','focusCycler','ck-ai-chat-balloon-main_state_','setButtonsVisibility','focusFirst','_focusTracker','locale','updateContent','20jkqSBn','ck-ai-chat-balloon__toolbar-container','execute','showDiff','_miniToolbarView','toggleRotatorButtonsVisibility','previousButtonView','hideError','_createPreviousButtonView','listenTo','_toolbarContainerView','set','div','_createNextButtonView','AI_BALLOON_PREVIOUS_LABEL','207lOuoQO','rejectSuggestion','insertSuggestion','_streamableContentView','showPrevious','pending','focusLast','isShowChangesOn','change:_state','createCollection','_stateView','_partToolbarView','_isErrorVisible','_focusables','toggleSuggestionDisplayMode','setState','AI_BALLOON_NEXT_LABEL','children','delegate','1085526kXoTmk','_errorView','change:isTrackChangesOn','isTrackChangesOn','includes','destroy','keepErrors','add','291600kANuHp','setTemplate','bind','_togglePartToolbarButtonsVisibility','showBlockingError','togglePartToolbarEnabled','3366780VZaKEB','isEnabled','bindTemplate','_state','1LRHGUL','addMany','focus','_config','showNext','2878212anPUnW','isVisible','979ApBymR','nextButtonView','882642ULigzO','showError','1673mPnTGO'];_0x5b39=function(){return _0x423ee6;};return _0x5b39();}function _0x35f0(_0x18166d,_0x36e836){const _0x5b39aa=_0x5b39();return _0x35f0=function(_0x35f0b5,_0x549ffe){_0x35f0b5=_0x35f0b5-0x1b4;let _0x22c727=_0x5b39aa[_0x35f0b5];return _0x22c727;},_0x35f0(_0x18166d,_0x36e836);}(function(_0x18b520,_0x5847ef){const _0x4bc359=_0x35f0,_0x493273=_0x18b520();while(!![]){try{const _0x58f54e=-parseInt(_0x4bc359(0x1b6))/0x1*(parseInt(_0x4bc359(0x1fa))/0x2)+-parseInt(_0x4bc359(0x1bb))/0x3+-parseInt(_0x4bc359(0x208))/0x4+parseInt(_0x4bc359(0x1d8))/0x5*(parseInt(_0x4bc359(0x1bf))/0x6)+parseInt(_0x4bc359(0x1c1))/0x7*(-parseInt(_0x4bc359(0x1c4))/0x8)+-parseInt(_0x4bc359(0x1e7))/0x9*(-parseInt(_0x4bc359(0x1d0))/0xa)+parseInt(_0x4bc359(0x1bd))/0xb*(parseInt(_0x4bc359(0x202))/0xc);if(_0x58f54e===_0x5847ef)break;else _0x493273['push'](_0x493273['shift']());}catch(_0x12533a){_0x493273['push'](_0x493273['shift']());}}}(_0x5b39,0x8c0ed));import{FocusTracker as _0x106946,KeystrokeHandler as _0x5e599e}from'ckeditor5/src/utils.js';import{AISuggestionStreamableContentView as _0xf20507}from'../../aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js';import{AISuggestionContentPartToolbarView as _0x5521f6}from'../../aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js';import{AIMiniToolbarView as _0x122343}from'../../aicore/ui/suggestioncontainer/aiminitoolbarview.js';import{AIBalloonView as _0x29d9e}from'../../aiballoon/ui/aiballoonview.js';import{ButtonView as _0x39f09a,FocusCycler as _0x4014a4,View as _0x5844c0}from'ckeditor5/src/ui.js';import{AISuggestionContentPartStateView as _0xfb43ec}from'../../aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js';import{IconChevronDown as _0x3a8945,IconChevronUp as _0x21829b}from'ckeditor5/src/icons.js';import{getTranslation as _0x357a03}from'../../aicore/utils/common-translations.js';import'../../../theme/aichat/aichatballoon.css';export class AIChatBalloonView extends _0x29d9e{[_0x21b245(0x1f8)];[_0x21b245(0x1be)];[_0x21b245(0x1de)];[_0x21b245(0x1d1)];[_0x21b245(0x1f4)];[_0x21b245(0x1d5)];[_0x21b245(0x1c7)];[_0x21b245(0x1b9)];[_0x21b245(0x1ea)];[_0x21b245(0x1e2)];[_0x21b245(0x1f2)];[_0x21b245(0x1f1)];[_0x21b245(0x1dc)];constructor(_0x5f4c10,_0x1fb5e6){const _0x5caf4a=_0x21b245;super(_0x5f4c10);const _0x2f063a=this[_0x5caf4a(0x1b4)];this[_0x5caf4a(0x1e3)](_0x5caf4a(0x1db),!0x1),this[_0x5caf4a(0x1e3)](_0x5caf4a(0x1b5),_0x5caf4a(0x1ec)),this[_0x5caf4a(0x1d5)]=new _0x106946(),this[_0x5caf4a(0x1c7)]=new _0x5e599e(),this[_0x5caf4a(0x1f4)]=this[_0x5caf4a(0x1f0)](),this[_0x5caf4a(0x1d1)]=new _0x4014a4({'focusables':this[_0x5caf4a(0x1f4)],'focusTracker':this[_0x5caf4a(0x1d5)],'keystrokeHandler':this[_0x5caf4a(0x1c7)],'actions':{'focusPrevious':_0x5caf4a(0x1cf),'focusNext':_0x5caf4a(0x1c5)}}),this[_0x5caf4a(0x1b9)]=_0x1fb5e6,this[_0x5caf4a(0x1be)]=this[_0x5caf4a(0x1e5)](),this[_0x5caf4a(0x1de)]=this[_0x5caf4a(0x1e0)](),this[_0x5caf4a(0x1ea)]=new _0xf20507(_0x5f4c10),this[_0x5caf4a(0x1f2)]=new _0x5521f6(_0x5f4c10,_0x1fb5e6[_0x5caf4a(0x1ca)]),this[_0x5caf4a(0x1f2)][_0x5caf4a(0x1f9)](_0x5caf4a(0x1c6),_0x5caf4a(0x1e9),_0x5caf4a(0x1e8))['to'](this),this[_0x5caf4a(0x205)](_0x1fb5e6),this[_0x5caf4a(0x1f1)]=new _0xfb43ec(_0x5f4c10),this[_0x5caf4a(0x1f1)][_0x5caf4a(0x1bc)]=!0x1,this[_0x5caf4a(0x1dc)]=new _0x122343(_0x5f4c10,{'showChanges':_0x5caf4a(0x1c9)}),this[_0x5caf4a(0x1dc)][_0x5caf4a(0x204)](_0x5caf4a(0x1ee))['to'](this,_0x5caf4a(0x1db)),this[_0x5caf4a(0x1dc)]['on'](_0x5caf4a(0x1c2),()=>{const _0x10e68a=_0x5caf4a;this[_0x10e68a(0x1ce)](_0x10e68a(0x1f5));}),this[_0x5caf4a(0x1e2)]=new fs(_0x5f4c10,[this[_0x5caf4a(0x1f2)],this[_0x5caf4a(0x1f1)],this[_0x5caf4a(0x1dc)]]),this[_0x5caf4a(0x1f8)]=this[_0x5caf4a(0x1f0)]([this[_0x5caf4a(0x1ea)],this[_0x5caf4a(0x1e2)]]),this['on'](_0x5caf4a(0x1ef),(_0x2a22ca,_0x1f6b6a,_0xd1ad8c,_0xb2d522)=>{const _0x221050=_0x5caf4a;let _0x1e49c3,_0x25e809;_0x221050(0x1ec)===_0xb2d522?(_0x1e49c3=this[_0x221050(0x1f2)],_0x25e809=this[_0x221050(0x1f1)]):(_0x1e49c3=this[_0x221050(0x1f1)],_0x25e809=this[_0x221050(0x1f2)]),this[_0x221050(0x1f1)][_0x221050(0x1f6)](_0xd1ad8c),_0x1e49c3[_0x221050(0x1bc)]=!0x1,_0x25e809[_0x221050(0x1bc)]=!0x0;}),this[_0x5caf4a(0x203)]({'tag':_0x5caf4a(0x1e4),'attributes':{'class':['ck',_0x5caf4a(0x1cc),_0x2f063a['to'](_0x5caf4a(0x1b5),_0x37498c=>_0x5caf4a(0x1d2)+_0x37498c)]},'children':this[_0x5caf4a(0x1f8)]}),this['on'](_0x5caf4a(0x1fc),()=>{const _0x561b1f=_0x5caf4a;this[_0x561b1f(0x205)](_0x1fb5e6);});}[_0x21b245(0x1cd)](){const _0x3df091=_0x21b245;super[_0x3df091(0x1cd)](),this[_0x3df091(0x1be)][_0x3df091(0x1cd)](),this[_0x3df091(0x1de)][_0x3df091(0x1cd)](),this[_0x3df091(0x1d5)][_0x3df091(0x201)](this[_0x3df091(0x1cb)]),this[_0x3df091(0x1d5)][_0x3df091(0x201)](this[_0x3df091(0x1be)]),this[_0x3df091(0x1d5)][_0x3df091(0x201)](this[_0x3df091(0x1de)]),this[_0x3df091(0x1d5)][_0x3df091(0x201)](this[_0x3df091(0x1dc)]),this[_0x3df091(0x1d5)][_0x3df091(0x201)](this[_0x3df091(0x1f2)]),this[_0x3df091(0x1c7)][_0x3df091(0x1e1)](this[_0x3df091(0x1cb)]),this[_0x3df091(0x1c7)][_0x3df091(0x1e1)](this[_0x3df091(0x1be)][_0x3df091(0x1cb)]),this[_0x3df091(0x1c7)][_0x3df091(0x1e1)](this[_0x3df091(0x1de)][_0x3df091(0x1cb)]),this[_0x3df091(0x1f4)][_0x3df091(0x1b7)]([this[_0x3df091(0x1be)],this[_0x3df091(0x1de)],this[_0x3df091(0x1f2)],this[_0x3df091(0x1dc)]]);}[_0x21b245(0x1ff)](){const _0x507f5d=_0x21b245;super[_0x507f5d(0x1ff)](),this[_0x507f5d(0x1de)][_0x507f5d(0x1ff)](),this[_0x507f5d(0x1be)][_0x507f5d(0x1ff)]();}[_0x21b245(0x1b8)](){const _0x3e2826=_0x21b245;this[_0x3e2826(0x1d1)][_0x3e2826(0x1d4)]();}[_0x21b245(0x1ed)](){const _0x2ad3e1=_0x21b245;this[_0x2ad3e1(0x1d1)][_0x2ad3e1(0x1ed)]();}async[_0x21b245(0x1d7)](_0x2d6872){const _0x7fa9e=_0x21b245;_0x2d6872?.[_0x7fa9e(0x200)]||this[_0x7fa9e(0x1df)](),await this[_0x7fa9e(0x1ea)][_0x7fa9e(0x1c8)](_0x2d6872);}[_0x21b245(0x1f6)](_0x48fe3d){const _0x41dd90=_0x21b245;this[_0x41dd90(0x1b5)]=_0x48fe3d;}[_0x21b245(0x1c0)](_0x506354){const _0x1c0fb0=_0x21b245;super[_0x1c0fb0(0x1c0)](_0x506354),this[_0x1c0fb0(0x1f8)][_0x1c0fb0(0x1c3)](this[_0x1c0fb0(0x1fb)])||this[_0x1c0fb0(0x1f8)][_0x1c0fb0(0x201)](this[_0x1c0fb0(0x1fb)],0x0);}[_0x21b245(0x1df)](){const _0x20ede4=_0x21b245;this[_0x20ede4(0x1f3)]&&(super[_0x20ede4(0x1df)](),this[_0x20ede4(0x207)](!0x0));}[_0x21b245(0x206)](_0x15351c){const _0x3332c3=_0x21b245;super[_0x3332c3(0x206)](_0x15351c),this[_0x3332c3(0x207)](!0x1);}[_0x21b245(0x1dd)](_0x470cba){const _0x1bd22f=_0x21b245;this[_0x1bd22f(0x1be)][_0x1bd22f(0x1bc)]=this[_0x1bd22f(0x1de)][_0x1bd22f(0x1bc)]=_0x470cba;}[_0x21b245(0x207)](_0x4a5000){const _0x3a91de=_0x21b245;this[_0x3a91de(0x1f2)][_0x3a91de(0x209)]=_0x4a5000;}[_0x21b245(0x205)]({showApplyButton:_0x4478cb,showSuggestButton:_0x17b20e}){const _0x161767=_0x21b245;_0x4478cb=_0x4478cb&&!this[_0x161767(0x1fd)]&&this[_0x161767(0x1b9)][_0x161767(0x1ca)][_0x161767(0x1fe)](_0x161767(0x1c6)),_0x17b20e=_0x17b20e&&this[_0x161767(0x1b9)][_0x161767(0x1ca)][_0x161767(0x1fe)](_0x161767(0x1e9)),this[_0x161767(0x1f2)][_0x161767(0x1d3)]({'showApplyButton':_0x4478cb,'showSuggestButton':_0x17b20e});}[_0x21b245(0x1e5)](){const _0x5cdbee=_0x21b245,_0x19e3dd=new _0x39f09a(this[_0x5cdbee(0x1d6)]);return _0x19e3dd[_0x5cdbee(0x1e3)]({'icon':_0x3a8945,'label':_0x357a03(this[_0x5cdbee(0x1d6)],_0x5cdbee(0x1f7)),'isVisible':!0x0}),_0x19e3dd['on'](_0x5cdbee(0x1da),()=>{const _0xcc31ac=_0x5cdbee;this[_0xcc31ac(0x1ce)](_0xcc31ac(0x1ba));}),_0x19e3dd;}[_0x21b245(0x1e0)](){const _0x4b2810=_0x21b245,_0x581cb7=new _0x39f09a(this[_0x4b2810(0x1d6)]);return _0x581cb7[_0x4b2810(0x1e3)]({'icon':_0x21829b,'label':_0x357a03(this[_0x4b2810(0x1d6)],_0x4b2810(0x1e6)),'isVisible':!0x0}),_0x581cb7['on'](_0x4b2810(0x1da),()=>{const _0x3558e8=_0x4b2810;this[_0x3558e8(0x1ce)](_0x3558e8(0x1eb));}),_0x581cb7;}}class fs extends _0x5844c0{constructor(_0x2ffc3e,_0x5a0837){const _0x592291=_0x21b245;super(_0x2ffc3e),this[_0x592291(0x203)]({'tag':_0x592291(0x1e4),'attributes':{'class':[_0x592291(0x1d9)]},'children':_0x5a0837});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x28fe80=_0x2bf9;function _0x2bf9(_0x3fec14,_0x1ba2fe){const _0x19637f=_0x1963();return _0x2bf9=function(_0x2bf9c7,_0x34a3d8){_0x2bf9c7=_0x2bf9c7-0x103;let _0x336745=_0x19637f[_0x2bf9c7];return _0x336745;},_0x2bf9(_0x3fec14,_0x1ba2fe);}(function(_0x23ec3c,_0x2ccc96){const _0x482e0a=_0x2bf9,_0x216e6a=_0x23ec3c();while(!![]){try{const _0x1e6ecd=parseInt(_0x482e0a(0x13f))/0x1+-parseInt(_0x482e0a(0x14d))/0x2*(parseInt(_0x482e0a(0x10b))/0x3)+-parseInt(_0x482e0a(0x144))/0x4+-parseInt(_0x482e0a(0x137))/0x5*(parseInt(_0x482e0a(0x106))/0x6)+-parseInt(_0x482e0a(0x139))/0x7*(parseInt(_0x482e0a(0x12d))/0x8)+-parseInt(_0x482e0a(0x152))/0x9*(parseInt(_0x482e0a(0x136))/0xa)+parseInt(_0x482e0a(0x10c))/0xb*(parseInt(_0x482e0a(0x147))/0xc);if(_0x1e6ecd===_0x2ccc96)break;else _0x216e6a['push'](_0x216e6a['shift']());}catch(_0x594f3e){_0x216e6a['push'](_0x216e6a['shift']());}}}(_0x1963,0xb2f51));import{ButtonView as _0x444530,clickOutsideHandler as _0x5144b6,View as _0x1715f5}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x39b16c}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x2da390}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x33a858,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x52e9ef}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x50c3aa}from'./controls/aichatcontrolsloaderview.js';import{getTranslation as _0x4c16b0}from'../../aicore/utils/common-translations.js';function _0x1963(){const _0x38e41f=['bodyCollection','872qrtXTf','value','queryView','ck-ai-chat-controls__start-new-chat-button','clearConversationContextUI','_createPromptInputView','_promptCapabilitiesView','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','_handlePromptInputFocus','30oHJHLC','1695gyjnpC','toggleWebSearch','41097KvDuuP','setPlaceholderText','removeContextItem','disableModelSelector','locale','setReasoning','106132SSAMSa','setModel','setConversationContext','clearPendingContextUI','setTemplate','5753296Mnznsr','setIsUploadInProgress','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','3804cBQMFb','addContextItem','_shouldRestorePromptInputFocus','resetMessageInput','reset','_contextPanelView','3846ZRQqKT','startConversation','enableModelSelector','setInputPlaceholder','closeSourceResourceBalloon','964107sXwqlk','fieldView','element','setModelList','clearCurrentContextItems','populateSourceResourceBalloon','clearConversationContextItems','8292YlcjRx','contextResourcesSearchInputVisibleFrom','_createContextPanelView','setWebSearch','execute','894baoNXl','141163uxfLXn','setAddContextOptions','_modelUnavailableMessageView','focus','div','delegate','setPromptInputValue','toggleReasoning','setContextItemLoading','isModelAvailable','_loaderView','sendUserMessage','updateResourceState','abortPromptStream','change:isLoading','ck-ai-chat-controls-disabled','addContextButtonView','isLoading','set','form','_createPromptCapabilitiesView','ck-hidden','bindTemplate','focusPromptInput','isDisabled','_promptInputView','_createLoaderView','_createModelUnavailableMessageView','ck-ai-chat-controls','ck-ai-chat-controls-model-unavailable-message','selectModel','low'];_0x1963=function(){return _0x38e41f;};return _0x1963();}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 _0x1715f5{[_0x28fe80(0x14c)];[_0x28fe80(0x125)];[_0x28fe80(0x133)];[_0x28fe80(0x116)];[_0x28fe80(0x10e)];[_0x28fe80(0x149)];constructor(_0x8887ea,_0x153510){const _0xc8b84d=_0x28fe80;super(_0x8887ea),this[_0xc8b84d(0x14c)]=this[_0xc8b84d(0x108)](_0x8887ea,{'bodyCollection':_0x153510[_0xc8b84d(0x12c)],'searchInputVisibleFrom':_0x153510[_0xc8b84d(0x107)]}),this[_0xc8b84d(0x125)]=this[_0xc8b84d(0x132)](_0x8887ea),this[_0xc8b84d(0x133)]=this[_0xc8b84d(0x120)](_0x8887ea),this[_0xc8b84d(0x116)]=this[_0xc8b84d(0x126)](_0x8887ea),this[_0xc8b84d(0x10e)]=this[_0xc8b84d(0x127)](_0x8887ea),this[_0xc8b84d(0x149)]=!0x1,this[_0xc8b84d(0x125)][_0xc8b84d(0x111)](_0xc8b84d(0x117))['to'](this),this[_0xc8b84d(0x116)][_0xc8b84d(0x111)](_0xc8b84d(0x119))['to'](this),this[_0xc8b84d(0x133)][_0xc8b84d(0x111)](_0xc8b84d(0x138))['to'](this),this[_0xc8b84d(0x133)][_0xc8b84d(0x111)](_0xc8b84d(0x113))['to'](this),this[_0xc8b84d(0x133)][_0xc8b84d(0x111)](_0xc8b84d(0x12a))['to'](this),this[_0xc8b84d(0x14c)][_0xc8b84d(0x111)](..._0x52e9ef)['to'](this),this[_0xc8b84d(0x11e)](_0xc8b84d(0x115),!0x0),this[_0xc8b84d(0x11e)](_0xc8b84d(0x124),!0x1);const _0x464e7b=this[_0xc8b84d(0x122)];this[_0xc8b84d(0x143)]({'tag':_0xc8b84d(0x11f),'attributes':{'class':['ck',_0xc8b84d(0x128),_0x464e7b['if'](_0xc8b84d(0x124),_0xc8b84d(0x11b))]},'children':[{'tag':_0xc8b84d(0x110),'attributes':{'class':[_0x464e7b['if'](_0xc8b84d(0x11d),_0xc8b84d(0x121),_0x11cdb2=>_0x11cdb2||!this[_0xc8b84d(0x115)]),_0x464e7b['if'](_0xc8b84d(0x115),_0xc8b84d(0x121),_0x5aa1f9=>!_0x5aa1f9||this[_0xc8b84d(0x11d)])]},'children':[this[_0xc8b84d(0x14c)],this[_0xc8b84d(0x125)],this[_0xc8b84d(0x133)]]},{'tag':_0xc8b84d(0x110),'attributes':{'class':[_0x464e7b['if'](_0xc8b84d(0x11d),_0xc8b84d(0x121),_0x315b25=>!_0x315b25)]},'children':[this[_0xc8b84d(0x116)]]},{'tag':_0xc8b84d(0x110),'attributes':{'class':[_0x464e7b['if'](_0xc8b84d(0x115),_0xc8b84d(0x121),_0x2e941b=>_0x2e941b)]},'children':[this[_0xc8b84d(0x10e)]]}]}),_0x5144b6({'emitter':this[_0xc8b84d(0x125)],'activator':()=>this[_0xc8b84d(0x11d)],'contextElements':()=>[this[_0xc8b84d(0x154)]],'callback':()=>{const _0x1e09b6=_0xc8b84d;this[_0x1e09b6(0x149)]=!0x1;}}),this['on'](_0xc8b84d(0x11a),this[_0xc8b84d(0x135)],{'priority':_0xc8b84d(0x12b)});}[_0x28fe80(0x108)](_0x393ec1,_0x48a5bb){return new _0x33a858(_0x393ec1,_0x48a5bb);}[_0x28fe80(0x132)](_0x30ed70){const _0x55df01=_0x28fe80;return new _0x39b16c(_0x30ed70,this[_0x55df01(0x14c)][_0x55df01(0x11c)]);}[_0x28fe80(0x120)](_0x258d3e){return new _0x2da390(_0x258d3e);}[_0x28fe80(0x126)](_0x3c119b){return new _0x50c3aa(_0x3c119b);}[_0x28fe80(0x127)](_0x2a97ae){const _0x59d823=_0x28fe80,_0x28d738=new As(_0x2a97ae);return _0x28d738[_0x59d823(0x111)](_0x59d823(0x14e))['to'](this),_0x28d738;}[_0x28fe80(0x135)](_0x113dd3,_0x170d9c,_0x2b635f){const _0x22d1b8=_0x28fe80;_0x2b635f?this[_0x22d1b8(0x149)]=!0x0:this[_0x22d1b8(0x149)]&&this[_0x22d1b8(0x125)][_0x22d1b8(0x10f)]();}[_0x28fe80(0x148)](_0x52be1c,_0x429734){const _0x5eb5b5=_0x28fe80;this[_0x5eb5b5(0x14c)][_0x5eb5b5(0x148)](_0x52be1c,_0x429734);}[_0x28fe80(0x13b)](_0x4d4c89){const _0x595258=_0x28fe80;this[_0x595258(0x14c)][_0x595258(0x13b)](_0x4d4c89);}[_0x28fe80(0x114)](_0x28de4e,_0x3ab429){const _0x1b6d4b=_0x28fe80;this[_0x1b6d4b(0x14c)][_0x1b6d4b(0x114)](_0x28de4e,_0x3ab429);}[_0x28fe80(0x145)](_0x58d559){const _0x178606=_0x28fe80;this[_0x178606(0x125)][_0x178606(0x145)](_0x58d559);}[_0x28fe80(0x141)](_0x4c9bb7){const _0x3f0ddf=_0x28fe80;this[_0x3f0ddf(0x14c)][_0x3f0ddf(0x141)](_0x4c9bb7);}[_0x28fe80(0x142)](){const _0x4903d3=_0x28fe80;this[_0x4903d3(0x14c)][_0x4903d3(0x103)]();}[_0x28fe80(0x131)](){const _0x3481e1=_0x28fe80;this[_0x3481e1(0x14c)][_0x3481e1(0x105)]();}[_0x28fe80(0x118)](_0x48070c,_0x59c2c0,_0x5b3f1c){const _0x2156ea=_0x28fe80;this[_0x2156ea(0x14c)][_0x2156ea(0x118)](_0x48070c,_0x59c2c0,_0x5b3f1c);}[_0x28fe80(0x109)](_0x4a4655){const _0x2bc7df=_0x28fe80;this[_0x2bc7df(0x133)][_0x2bc7df(0x109)](_0x4a4655);}[_0x28fe80(0x13e)](_0x341e6d){const _0x28cb5d=_0x28fe80;this[_0x28cb5d(0x133)][_0x28cb5d(0x13e)](_0x341e6d);}[_0x28fe80(0x14a)](){const _0x32ca83=_0x28fe80;this[_0x32ca83(0x125)][_0x32ca83(0x14b)]();}[_0x28fe80(0x10d)](_0xdd3537){const _0x33fb69=_0x28fe80;this[_0x33fb69(0x14c)][_0x33fb69(0x10d)](_0xdd3537);}[_0x28fe80(0x150)](_0x5192cc){const _0x64e647=_0x28fe80;this[_0x64e647(0x125)][_0x64e647(0x13a)](_0x5192cc);}[_0x28fe80(0x155)](_0x260163,_0x211023){const _0x4207d7=_0x28fe80;this[_0x4207d7(0x133)][_0x4207d7(0x155)](_0x260163,_0x211023);}[_0x28fe80(0x140)](_0x628e42){const _0x1ad900=_0x28fe80;_0x628e42?(this[_0x1ad900(0x115)]=!0x0,this[_0x1ad900(0x133)][_0x1ad900(0x140)](_0x628e42)):this[_0x1ad900(0x115)]=!0x1;}[_0x28fe80(0x14f)](){const _0x4f80c0=_0x28fe80;this[_0x4f80c0(0x133)][_0x4f80c0(0x14f)]();}[_0x28fe80(0x13c)](_0x9b81d8){const _0x4ceb9f=_0x28fe80;this[_0x4ceb9f(0x133)][_0x4ceb9f(0x13c)](_0x9b81d8);}[_0x28fe80(0x104)](_0x43e4ab,_0x23617b,_0x67a08d,_0x5ce48b){const _0x31bfa8=_0x28fe80;this[_0x31bfa8(0x14c)][_0x31bfa8(0x104)](_0x43e4ab,_0x23617b,_0x67a08d,_0x5ce48b);}[_0x28fe80(0x151)](_0x3ca284){const _0x14e896=_0x28fe80;this[_0x14e896(0x14c)][_0x14e896(0x151)](_0x3ca284);}[_0x28fe80(0x123)](_0x8ac1da=!0x1){const _0x10a467=_0x28fe80;this[_0x10a467(0x125)][_0x10a467(0x10f)](_0x8ac1da);}[_0x28fe80(0x112)](_0x49e2b9){const _0x148462=_0x28fe80;this[_0x148462(0x125)][_0x148462(0x12f)][_0x148462(0x153)][_0x148462(0x14b)](),this[_0x148462(0x125)][_0x148462(0x12f)][_0x148462(0x153)][_0x148462(0x12e)]=_0x49e2b9;}}class As extends _0x1715f5{constructor(_0x5c2f96){const _0x119237=_0x28fe80;super(_0x5c2f96);const _0x349277=new _0x444530(_0x5c2f96);_0x349277[_0x119237(0x11e)]({'label':_0x4c16b0(this[_0x119237(0x13d)],_0x119237(0x134)),'withText':!0x0,'class':[_0x119237(0x130)],'tooltip':''}),_0x349277[_0x119237(0x111)](_0x119237(0x10a))['to'](this,_0x119237(0x14e)),this[_0x119237(0x143)]({'tag':_0x119237(0x110),'attributes':{'class':['ck',_0x119237(0x129)]},'children':[{'tag':'p','children':[{'text':_0x4c16b0(this[_0x119237(0x13d)],_0x119237(0x146))+'\x20'},_0x349277]}]});}}
23
+ const _0x365920=_0x50b6;(function(_0x3cb6f6,_0x41438a){const _0x15b36e=_0x50b6,_0x58fd5b=_0x3cb6f6();while(!![]){try{const _0x66716f=-parseInt(_0x15b36e(0x128))/0x1*(-parseInt(_0x15b36e(0x13d))/0x2)+parseInt(_0x15b36e(0x127))/0x3*(parseInt(_0x15b36e(0x12b))/0x4)+parseInt(_0x15b36e(0x129))/0x5+-parseInt(_0x15b36e(0x120))/0x6+parseInt(_0x15b36e(0x14c))/0x7*(parseInt(_0x15b36e(0x12e))/0x8)+-parseInt(_0x15b36e(0x156))/0x9*(parseInt(_0x15b36e(0x151))/0xa)+-parseInt(_0x15b36e(0x126))/0xb;if(_0x66716f===_0x41438a)break;else _0x58fd5b['push'](_0x58fd5b['shift']());}catch(_0x23bd31){_0x58fd5b['push'](_0x58fd5b['shift']());}}}(_0x2814,0x1b16b));function _0x50b6(_0x2df526,_0x3b575f){const _0x2814ce=_0x2814();return _0x50b6=function(_0x50b6ac,_0x39fcf1){_0x50b6ac=_0x50b6ac-0x117;let _0x5c3bf6=_0x2814ce[_0x50b6ac];return _0x5c3bf6;},_0x50b6(_0x2df526,_0x3b575f);}import{ButtonView as _0x10c002,clickOutsideHandler as _0x3fb44e,View as _0x468f69}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x2aeca6}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x4fd8f6}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x589719,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x5bf499}from'./controls/aichatcontextpanelview.js';function _0x2814(){const _0x38f64a=['toggleReasoning','addContextButtonView','setModelList','9aXXzAx','clearCurrentContextItems','startConversation','_createContextPanelView','bindTemplate','_promptInputView','isModelAvailable','focus','updateResourceState','set','locale','_loaderView','_promptCapabilitiesView','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','clearConversationContextUI','clearConversationContextItems','delegate','change:isLoading','div','_contextPanelView','ck-ai-chat-controls__start-new-chat-button','removeContextItem','setWebSearch','value','_createLoaderView','populateSourceResourceBalloon','_handlePromptInputFocus','setIsUploadInProgress','830160DzgBsc','enableModelSelector','ck-ai-chat-controls','element','selectModel','setInputPlaceholder','568722lJOfBk','137463Yuevws','354iDQmgT','59050oPPpzu','setReasoning','12ZjPKnl','resetMessageInput','setContextItemLoading','631848kNZPgl','disableModelSelector','focusPromptInput','ck-hidden','_createModelUnavailableMessageView','isLoading','form','bodyCollection','_shouldRestorePromptInputFocus','ck-ai-chat-controls-model-unavailable-message','setPlaceholderText','isDisabled','sendUserMessage','ck-ai-chat-controls-disabled','_createPromptCapabilitiesView','674fLLstz','abortPromptStream','queryView','setPromptInputValue','closeSourceResourceBalloon','setConversationContext','toggleWebSearch','clearPendingContextUI','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','low','setTemplate','_modelUnavailableMessageView','_createPromptInputView','reset','setModel','7sZGwdg','setAddContextOptions','fieldView','addContextItem','execute','465350YBtEBh','contextResourcesSearchInputVisibleFrom'];_0x2814=function(){return _0x38f64a;};return _0x2814();}import{AIChatControlsLoaderView as _0x3f0d9b}from'./controls/aichatcontrolsloaderview.js';import{getTranslation as _0x5e306f}from'../../aicore/utils/common-translations.js';import'../../../theme/aichat/aichat-controls.css';import'../../../theme/aichat/aichat-controls/prompt-input.css';import'../../../theme/aichat/aichat-controls/prompt-capabilities.css';import'../../../theme/aichat/aichat-controls/model-unavailable-message.css';import'../../../theme/aichat/aichat-controls/aichat-context-controls.css';import'../../../theme/aichat/aichat-controls/aichat-context-chip.css';import'../../../theme/aichat/aichat-controls/aichat-controls-button.css';import'../../../theme/aichat/aichat-controls/aichat-controls-loader.css';import'../../../theme/aichat/aichat-controls/aichat-context-controls-balloon-panels.css';export class AIChatControlsView extends _0x468f69{[_0x365920(0x117)];[_0x365920(0x15b)];[_0x365920(0x162)];[_0x365920(0x161)];[_0x365920(0x148)];[_0x365920(0x136)];constructor(_0x36d72f,_0x54b4dc){const _0x4738ff=_0x365920;super(_0x36d72f),this[_0x4738ff(0x117)]=this[_0x4738ff(0x159)](_0x36d72f,{'bodyCollection':_0x54b4dc[_0x4738ff(0x135)],'searchInputVisibleFrom':_0x54b4dc[_0x4738ff(0x152)]}),this[_0x4738ff(0x15b)]=this[_0x4738ff(0x149)](_0x36d72f),this[_0x4738ff(0x162)]=this[_0x4738ff(0x13c)](_0x36d72f),this[_0x4738ff(0x161)]=this[_0x4738ff(0x11c)](_0x36d72f),this[_0x4738ff(0x148)]=this[_0x4738ff(0x132)](_0x36d72f),this[_0x4738ff(0x136)]=!0x1,this[_0x4738ff(0x15b)][_0x4738ff(0x166)](_0x4738ff(0x13a))['to'](this),this[_0x4738ff(0x161)][_0x4738ff(0x166)](_0x4738ff(0x13e))['to'](this),this[_0x4738ff(0x162)][_0x4738ff(0x166)](_0x4738ff(0x143))['to'](this),this[_0x4738ff(0x162)][_0x4738ff(0x166)](_0x4738ff(0x153))['to'](this),this[_0x4738ff(0x162)][_0x4738ff(0x166)](_0x4738ff(0x124))['to'](this),this[_0x4738ff(0x117)][_0x4738ff(0x166)](..._0x5bf499)['to'](this),this[_0x4738ff(0x15f)](_0x4738ff(0x15c),!0x0),this[_0x4738ff(0x15f)](_0x4738ff(0x139),!0x1);const _0x582d3f=this[_0x4738ff(0x15a)];this[_0x4738ff(0x147)]({'tag':_0x4738ff(0x134),'attributes':{'class':['ck',_0x4738ff(0x122),_0x582d3f['if'](_0x4738ff(0x139),_0x4738ff(0x13b))]},'children':[{'tag':_0x4738ff(0x168),'attributes':{'class':[_0x582d3f['if'](_0x4738ff(0x133),_0x4738ff(0x131),_0x3ae7e6=>_0x3ae7e6||!this[_0x4738ff(0x15c)]),_0x582d3f['if'](_0x4738ff(0x15c),_0x4738ff(0x131),_0x326d01=>!_0x326d01||this[_0x4738ff(0x133)])]},'children':[this[_0x4738ff(0x117)],this[_0x4738ff(0x15b)],this[_0x4738ff(0x162)]]},{'tag':_0x4738ff(0x168),'attributes':{'class':[_0x582d3f['if'](_0x4738ff(0x133),_0x4738ff(0x131),_0x1493bc=>!_0x1493bc)]},'children':[this[_0x4738ff(0x161)]]},{'tag':_0x4738ff(0x168),'attributes':{'class':[_0x582d3f['if'](_0x4738ff(0x15c),_0x4738ff(0x131),_0xb892f5=>_0xb892f5)]},'children':[this[_0x4738ff(0x148)]]}]}),_0x3fb44e({'emitter':this[_0x4738ff(0x15b)],'activator':()=>this[_0x4738ff(0x133)],'contextElements':()=>[this[_0x4738ff(0x123)]],'callback':()=>{const _0xd104a8=_0x4738ff;this[_0xd104a8(0x136)]=!0x1;}}),this['on'](_0x4738ff(0x167),this[_0x4738ff(0x11e)],{'priority':_0x4738ff(0x146)});}[_0x365920(0x159)](_0x163925,_0x5dc3d7){return new _0x589719(_0x163925,_0x5dc3d7);}[_0x365920(0x149)](_0x5220fd){const _0x58bb27=_0x365920;return new _0x2aeca6(_0x5220fd,this[_0x58bb27(0x117)][_0x58bb27(0x154)]);}[_0x365920(0x13c)](_0x1d415a){return new _0x4fd8f6(_0x1d415a);}[_0x365920(0x11c)](_0xad0656){return new _0x3f0d9b(_0xad0656);}[_0x365920(0x132)](_0x1a2705){const _0x4d9776=_0x365920,_0x1a8696=new As(_0x1a2705);return _0x1a8696[_0x4d9776(0x166)](_0x4d9776(0x158))['to'](this),_0x1a8696;}[_0x365920(0x11e)](_0x56c056,_0x58727d,_0x321e8a){const _0x427e7b=_0x365920;_0x321e8a?this[_0x427e7b(0x136)]=!0x0:this[_0x427e7b(0x136)]&&this[_0x427e7b(0x15b)][_0x427e7b(0x15d)]();}[_0x365920(0x14f)](_0x4c621f,_0x5b985a){const _0x107cad=_0x365920;this[_0x107cad(0x117)][_0x107cad(0x14f)](_0x4c621f,_0x5b985a);}[_0x365920(0x119)](_0x199dc3){const _0xdd1071=_0x365920;this[_0xdd1071(0x117)][_0xdd1071(0x119)](_0x199dc3);}[_0x365920(0x12d)](_0x4ed861,_0x4e35f8){const _0x2922ca=_0x365920;this[_0x2922ca(0x117)][_0x2922ca(0x12d)](_0x4ed861,_0x4e35f8);}[_0x365920(0x11f)](_0x26ed5b){const _0x305809=_0x365920;this[_0x305809(0x15b)][_0x305809(0x11f)](_0x26ed5b);}[_0x365920(0x142)](_0x326c71){const _0x562188=_0x365920;this[_0x562188(0x117)][_0x562188(0x142)](_0x326c71);}[_0x365920(0x144)](){const _0x3b55fa=_0x365920;this[_0x3b55fa(0x117)][_0x3b55fa(0x157)]();}[_0x365920(0x164)](){const _0x584287=_0x365920;this[_0x584287(0x117)][_0x584287(0x165)]();}[_0x365920(0x15e)](_0x4f0281,_0x43e336,_0x1ab4bc){const _0x26d2b3=_0x365920;this[_0x26d2b3(0x117)][_0x26d2b3(0x15e)](_0x4f0281,_0x43e336,_0x1ab4bc);}[_0x365920(0x11a)](_0x11eccd){const _0x540251=_0x365920;this[_0x540251(0x162)][_0x540251(0x11a)](_0x11eccd);}[_0x365920(0x12a)](_0x2cf871){const _0x4bfb55=_0x365920;this[_0x4bfb55(0x162)][_0x4bfb55(0x12a)](_0x2cf871);}[_0x365920(0x12c)](){const _0x30c34e=_0x365920;this[_0x30c34e(0x15b)][_0x30c34e(0x14a)]();}[_0x365920(0x14d)](_0x3362a4){const _0x20a990=_0x365920;this[_0x20a990(0x117)][_0x20a990(0x14d)](_0x3362a4);}[_0x365920(0x125)](_0x1f9d61){const _0x224f65=_0x365920;this[_0x224f65(0x15b)][_0x224f65(0x138)](_0x1f9d61);}[_0x365920(0x155)](_0x33513e,_0x2641f1){const _0x4e6eb7=_0x365920;this[_0x4e6eb7(0x162)][_0x4e6eb7(0x155)](_0x33513e,_0x2641f1);}[_0x365920(0x14b)](_0xfe9f79){const _0x3fedf8=_0x365920;_0xfe9f79?(this[_0x3fedf8(0x15c)]=!0x0,this[_0x3fedf8(0x162)][_0x3fedf8(0x14b)](_0xfe9f79)):this[_0x3fedf8(0x15c)]=!0x1;}[_0x365920(0x121)](){const _0x5e11d5=_0x365920;this[_0x5e11d5(0x162)][_0x5e11d5(0x121)]();}[_0x365920(0x12f)](_0x547bb7){const _0x96447d=_0x365920;this[_0x96447d(0x162)][_0x96447d(0x12f)](_0x547bb7);}[_0x365920(0x11d)](_0x1978c7,_0x2bdabe,_0x4220ca,_0x5cfbbe){const _0x6e4629=_0x365920;this[_0x6e4629(0x117)][_0x6e4629(0x11d)](_0x1978c7,_0x2bdabe,_0x4220ca,_0x5cfbbe);}[_0x365920(0x141)](_0x1ee73a){const _0x49da23=_0x365920;this[_0x49da23(0x117)][_0x49da23(0x141)](_0x1ee73a);}[_0x365920(0x130)](_0x1c336b=!0x1){const _0x22add4=_0x365920;this[_0x22add4(0x15b)][_0x22add4(0x15d)](_0x1c336b);}[_0x365920(0x140)](_0x258299){const _0x5469cc=_0x365920;this[_0x5469cc(0x15b)][_0x5469cc(0x13f)][_0x5469cc(0x14e)][_0x5469cc(0x14a)](),this[_0x5469cc(0x15b)][_0x5469cc(0x13f)][_0x5469cc(0x14e)][_0x5469cc(0x11b)]=_0x258299;}}class As extends _0x468f69{constructor(_0x557f7e){const _0x2fd30a=_0x365920;super(_0x557f7e);const _0x32d3d2=new _0x10c002(_0x557f7e);_0x32d3d2[_0x2fd30a(0x15f)]({'label':_0x5e306f(this[_0x2fd30a(0x160)],_0x2fd30a(0x145)),'withText':!0x0,'class':[_0x2fd30a(0x118)],'tooltip':''}),_0x32d3d2[_0x2fd30a(0x166)](_0x2fd30a(0x150))['to'](this,_0x2fd30a(0x158)),this[_0x2fd30a(0x147)]({'tag':_0x2fd30a(0x168),'attributes':{'class':['ck',_0x2fd30a(0x137)]},'children':[{'tag':'p','children':[{'text':_0x5e306f(this[_0x2fd30a(0x160)],_0x2fd30a(0x163))+'\x20'},_0x32d3d2]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x524238=_0x5276;function _0x5276(_0x15978f,_0x329341){const _0x76f38f=_0x76f3();return _0x5276=function(_0x527631,_0x196acd){_0x527631=_0x527631-0x1e3;let _0x258ed8=_0x76f38f[_0x527631];return _0x258ed8;},_0x5276(_0x15978f,_0x329341);}(function(_0x5e157b,_0x15c730){const _0x9bb264=_0x5276,_0x143a84=_0x5e157b();while(!![]){try{const _0x2197c0=-parseInt(_0x9bb264(0x22c))/0x1*(parseInt(_0x9bb264(0x22f))/0x2)+parseInt(_0x9bb264(0x1fe))/0x3*(-parseInt(_0x9bb264(0x200))/0x4)+parseInt(_0x9bb264(0x234))/0x5+parseInt(_0x9bb264(0x220))/0x6+-parseInt(_0x9bb264(0x22d))/0x7*(parseInt(_0x9bb264(0x1ed))/0x8)+parseInt(_0x9bb264(0x23a))/0x9+parseInt(_0x9bb264(0x20d))/0xa;if(_0x2197c0===_0x15c730)break;else _0x143a84['push'](_0x143a84['shift']());}catch(_0x558b26){_0x143a84['push'](_0x143a84['shift']());}}}(_0x76f3,0xedc07));import{CKEditorError as _0x169d1b,logWarning as _0x35c12a,scrollAncestorsToShowTarget as _0x53e420}from'ckeditor5/src/utils.js';import{View as _0x32cd1e}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x58b324}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x2a7f44}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x3f72b3}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x1efb21}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x288764}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x4ef52c}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x334471}from'../../aicore/utils/scrollmanager.js';import{AISkeletonView as _0x2a1998,SKELETON_DEFINITIONS as _0x43cade}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x376c47}from'../../aicore/ui/aispinner.js';function _0x76f3(){const _0x29cd36=['removeItem','remove','1705PrAtRG','869386LoHsKs','markItemAsDone','42HuJyRe','setSuggestionPartActive','stop','_createLoaderChildren','toggleLoadingSkeleton','1492935RsTRnS','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','ai-reply','delegate','_bodyCollection','add','10946574NhJDNz','updateSuggestionPartState','bindTemplate','aiFeed','_createFeedLoader','hasItem','destroy','_setupTemplate','element','render','set','8LVxTcq','addItem','createCollection','updateSources','_createSkeletonLoader','interaction-header','isPending','filter','_createTemplateChildren','stopAutoScroll','ck-ai-chat__feed__items','getItemIds','options','extendTemplate','updatePartState','user-message','forEach','3995742wJsRwG','getItemById','4OFcZfr','locale','ai-chat-feed-view-item-not-found','ck-ai-chat__loader','updateReplyItem','getPartView','loadingMessage','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','ck-hidden','children','map','updateSuggestionItem','9402060hscGoe','scrollToSuggestion','ai-chat-feed-view-item-not-a-reply-item','find','updateWebSources','ck-ai-chat__feed','clear','scrollManager','bind','div','_createFeedItems','ai-chat-feed-view-item-not-a-suggestion-item','setLoadingMessage','ai-suggestion-reply','isTrackChangesOn','parentElement','ck-ai-chat__loader-text','setTemplate','markAsDone','64014ptXRmM','updateContent','startAutoScroll','custom-element','isVisible','start','span','includes','setPartActive','isLoadingSkeletonVisible'];_0x76f3=function(){return _0x29cd36;};return _0x76f3();}import{AIChatFeedCustomElementView as _0x12990d}from'./feed/aichatfeedcustomelementview.js';import'../../../theme/aichat/aichatfeed.css';export class AIChatFeedView extends _0x32cd1e{[_0x524238(0x20a)];[_0x524238(0x214)];[_0x524238(0x238)];constructor(_0xa2da71,_0x1112a5){const _0x1b21bc=_0x524238;super(_0xa2da71),this[_0x1b21bc(0x238)]=_0x1112a5,this[_0x1b21bc(0x1ec)](_0x1b21bc(0x1f3),!0x1),this[_0x1b21bc(0x1ec)](_0x1b21bc(0x206),''),this[_0x1b21bc(0x1ec)](_0x1b21bc(0x229),!0x1),this[_0x1b21bc(0x1ec)](_0x1b21bc(0x21b),!0x1),this[_0x1b21bc(0x20a)]=this[_0x1b21bc(0x1ef)](),this[_0x1b21bc(0x20a)][_0x1b21bc(0x237)](..._0x58b324)['to'](this),this[_0x1b21bc(0x1e9)]();}[_0x524238(0x1eb)](){const _0x206213=_0x524238;super[_0x206213(0x1eb)](),this[_0x206213(0x214)]=new _0x334471(this[_0x206213(0x1ea)]);}[_0x524238(0x1e8)](){const _0x2e395a=_0x524238;super[_0x2e395a(0x1e8)](),this[_0x2e395a(0x214)][_0x2e395a(0x1e8)]();}[_0x524238(0x213)](){const _0x1a272c=_0x524238;this[_0x1a272c(0x20a)][_0x1a272c(0x213)]();}[_0x524238(0x1ee)](_0x4ba229,_0x554915){const _0x2d368a=_0x524238;let _0x181ef2;return _0x2d368a(0x236)===_0x4ba229?_0x181ef2=new _0x3f72b3(this[_0x2d368a(0x201)],_0x554915,this[_0x2d368a(0x238)]):_0x2d368a(0x21a)===_0x4ba229?(_0x181ef2=new _0x2a7f44(this[_0x2d368a(0x201)],_0x554915,this[_0x2d368a(0x238)]),_0x181ef2[_0x2d368a(0x215)](_0x2d368a(0x21b))['to'](this)):_0x181ef2=_0x2d368a(0x1fc)===_0x4ba229?new _0x1efb21(this[_0x2d368a(0x201)],_0x554915,this[_0x2d368a(0x238)]):_0x2d368a(0x1f2)===_0x4ba229?new _0x4ef52c(this[_0x2d368a(0x201)],_0x554915):_0x2d368a(0x223)===_0x4ba229?new _0x12990d(_0x554915):new _0x288764(_0x554915),this[_0x2d368a(0x20a)][_0x2d368a(0x239)](_0x181ef2),_0x181ef2;}async[_0x524238(0x204)]({id:_0x1af4df,parsedContent:_0x3272e1,renderingStrategy:_0xa71188,abortSignal:_0x15fb4e}){const _0x33d78a=_0x524238,_0x483acd=this[_0x33d78a(0x1ff)](_0x1af4df);if(!(_0x483acd instanceof _0x3f72b3))throw new _0x169d1b(_0x33d78a(0x20f),null,{'itemView':_0x483acd,'id':_0x1af4df,'parsedContent':_0x3272e1});await _0x483acd[_0x33d78a(0x221)]({'parsedContent':_0x3272e1,'renderingStrategy':_0xa71188,'abortSignal':_0x15fb4e});}async[_0x524238(0x211)](_0x4994da,_0x2e9e56){const _0x519d2f=_0x524238,_0x44e3ec=this[_0x519d2f(0x1ff)](_0x4994da);if(_0x44e3ec instanceof _0x2a7f44)_0x44e3ec[_0x519d2f(0x1f0)](_0x2e9e56);else{if(!(_0x44e3ec instanceof _0x3f72b3))throw new _0x169d1b(_0x519d2f(0x207),null,{'itemView':_0x44e3ec,'id':_0x4994da,'sources':_0x2e9e56});_0x44e3ec[_0x519d2f(0x1f0)](_0x2e9e56);}}async[_0x524238(0x20c)]({id:_0x2c9d8c,parts:_0x6dada8,renderingStrategy:_0x528fd1,abortSignal:_0x3b721c}){const _0x545c4d=_0x524238,_0x296da7=this[_0x545c4d(0x1ff)](_0x2c9d8c);if(!(_0x296da7 instanceof _0x2a7f44))throw new _0x169d1b(_0x545c4d(0x218),null,{'itemView':_0x296da7,'id':_0x2c9d8c,'parts':_0x6dada8});await _0x296da7[_0x545c4d(0x221)]({'parts':_0x6dada8,'renderingStrategy':_0x528fd1,'abortSignal':_0x3b721c});}[_0x524238(0x1e3)]({id:_0x4d5902,index:_0x3cfbd5,state:_0x4cc1fa}){const _0xf8b5bb=_0x524238,_0x12434d=this[_0xf8b5bb(0x1ff)](_0x4d5902);if(!(_0x12434d instanceof _0x2a7f44))throw new _0x169d1b(_0xf8b5bb(0x218),this,{'id':_0x4d5902});_0x12434d[_0xf8b5bb(0x1fb)](_0x3cfbd5,_0x4cc1fa);}[_0x524238(0x230)]({id:_0x500927,index:_0x300d50,isActive:_0x394ec7}){const _0x1c0355=_0x524238,_0xc5218a=this[_0x1c0355(0x1ff)](_0x500927);if(!(_0xc5218a instanceof _0x2a7f44))throw new _0x169d1b(_0x1c0355(0x218),this,{'id':_0x500927});this[_0x1c0355(0x20a)][_0x1c0355(0x1f4)](_0x1b19b9=>_0x1b19b9 instanceof _0x2a7f44)[_0x1c0355(0x1fd)](_0x2f93bf=>{const _0x125c72=_0x1c0355;_0x2f93bf[_0x125c72(0x228)](!0x1);}),_0xc5218a[_0x1c0355(0x228)](_0x300d50,_0x394ec7);}[_0x524238(0x22e)](_0x30ee2d){const _0x530de4=_0x524238;this[_0x530de4(0x1ff)](_0x30ee2d)[_0x530de4(0x21f)]();}[_0x524238(0x1f8)](){const _0x14ff29=_0x524238;return this[_0x14ff29(0x20a)][_0x14ff29(0x20b)](_0x325e05=>_0x325e05[_0x14ff29(0x1f9)]['id']);}[_0x524238(0x22a)](_0x3bfde5){const _0x39e320=_0x524238;this[_0x39e320(0x20a)][_0x39e320(0x22b)](this[_0x39e320(0x1ff)](_0x3bfde5));}[_0x524238(0x1e7)](_0x3d8f7f){const _0x36a237=_0x524238;return!!this[_0x36a237(0x20a)][_0x36a237(0x210)](_0x291d45=>_0x291d45[_0x36a237(0x1f9)]['id'][_0x36a237(0x227)](_0x3d8f7f));}[_0x524238(0x20e)](_0x55cdc6,_0x1a28fa){const _0x504dff=_0x524238,_0x320a72=this[_0x504dff(0x1ff)](_0x55cdc6);if(!(_0x320a72 instanceof _0x2a7f44))return void _0x35c12a(_0x504dff(0x208),{'replyId':_0x55cdc6,'partIndex':_0x1a28fa});const _0x51c694=_0x320a72[_0x504dff(0x205)](_0x1a28fa);_0x51c694?_0x53e420(_0x51c694[_0x504dff(0x1ea)],0x14,this[_0x504dff(0x1ea)][_0x504dff(0x21c)],!0x0,!0x0):_0x35c12a(_0x504dff(0x235),{'replyId':_0x55cdc6,'partIndex':_0x1a28fa});}[_0x524238(0x1e9)](){const _0x5b3a76=_0x524238;this[_0x5b3a76(0x21e)]({'tag':_0x5b3a76(0x216),'attributes':{'class':['ck',_0x5b3a76(0x212)]},'children':this[_0x5b3a76(0x1f5)]()});}[_0x524238(0x1f5)](){const _0x4ebea7=_0x524238,_0x65a5a7=this[_0x4ebea7(0x1f1)]();return[this[_0x4ebea7(0x217)](),_0x65a5a7,this[_0x4ebea7(0x1e6)]()];}[_0x524238(0x1f1)](){const _0x306f20=_0x524238,_0x4a1dc4=new _0x2a1998(this[_0x306f20(0x201)],_0x43cade[_0x306f20(0x1e5)]);return _0x4a1dc4[_0x306f20(0x1fa)]({'attributes':{'class':[this[_0x306f20(0x1e4)]['if'](_0x306f20(0x229),_0x306f20(0x209),_0x24077d=>!_0x24077d)]}}),_0x4a1dc4;}[_0x524238(0x217)](){const _0x33a255=_0x524238,_0x5851fe=new _0x32cd1e(this[_0x33a255(0x201)]);return _0x5851fe[_0x33a255(0x21e)]({'tag':_0x33a255(0x216),'attributes':{'class':['ck',_0x33a255(0x1f7),this[_0x33a255(0x1e4)]['if'](_0x33a255(0x229),_0x33a255(0x209))]},'children':this[_0x33a255(0x20a)]}),_0x5851fe;}[_0x524238(0x1e6)](){const _0x59db82=_0x524238,_0x15b373=new _0x32cd1e(this[_0x59db82(0x201)]);return _0x15b373[_0x59db82(0x21e)]({'tag':_0x59db82(0x216),'attributes':{'class':['ck',_0x59db82(0x203),this[_0x59db82(0x1e4)]['if'](_0x59db82(0x1f3),_0x59db82(0x209),_0x1d2ddf=>!_0x1d2ddf)]},'children':this[_0x59db82(0x232)]()}),_0x15b373;}[_0x524238(0x232)](){const _0x67013d=_0x524238,_0x32eadf=new _0x376c47();return _0x32eadf[_0x67013d(0x224)]=!0x0,[_0x32eadf,{'tag':_0x67013d(0x226),'attributes':{'class':['ck',_0x67013d(0x21d)]},'children':[{'text':this[_0x67013d(0x1e4)]['to'](_0x67013d(0x206))}]}];}[_0x524238(0x1ff)](_0x56311b){const _0x52f3ba=_0x524238,_0x440171=this[_0x52f3ba(0x20a)][_0x52f3ba(0x210)](_0x22dcfd=>_0x22dcfd[_0x52f3ba(0x1f9)]['id'][_0x52f3ba(0x227)](_0x56311b));if(!_0x440171)throw new _0x169d1b(_0x52f3ba(0x202),this,{'id':_0x56311b});return _0x440171;}[_0x524238(0x219)](_0x1576f8){const _0x5dfade=_0x524238;this[_0x5dfade(0x1ec)](_0x5dfade(0x206),_0x1576f8);}[_0x524238(0x233)](_0x33a783){const _0x1e3d8b=_0x524238;this[_0x1e3d8b(0x1ec)](_0x1e3d8b(0x229),_0x33a783);}[_0x524238(0x222)](){const _0x3314c3=_0x524238;this[_0x3314c3(0x214)][_0x3314c3(0x225)]();}[_0x524238(0x1f6)](){const _0x303211=_0x524238;this[_0x303211(0x214)][_0x303211(0x231)]();}}
23
+ const _0xe0568=_0x5e13;(function(_0x294e56,_0x46c00e){const _0x24b523=_0x5e13,_0x263bd7=_0x294e56();while(!![]){try{const _0x522485=parseInt(_0x24b523(0x113))/0x1*(-parseInt(_0x24b523(0xf4))/0x2)+parseInt(_0x24b523(0xdd))/0x3+parseInt(_0x24b523(0xf3))/0x4*(-parseInt(_0x24b523(0xf8))/0x5)+parseInt(_0x24b523(0x11a))/0x6*(parseInt(_0x24b523(0xfe))/0x7)+-parseInt(_0x24b523(0x133))/0x8*(parseInt(_0x24b523(0x12f))/0x9)+parseInt(_0x24b523(0x127))/0xa+parseInt(_0x24b523(0x109))/0xb*(-parseInt(_0x24b523(0xef))/0xc);if(_0x522485===_0x46c00e)break;else _0x263bd7['push'](_0x263bd7['shift']());}catch(_0x5ae6a1){_0x263bd7['push'](_0x263bd7['shift']());}}}(_0xd224,0xc5b30));import{CKEditorError as _0x21d445,logWarning as _0x31c3e3,scrollAncestorsToShowTarget as _0x5c2faf}from'ckeditor5/src/utils.js';import{View as _0x35e291}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x4b44af}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x399adc}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x8d2948}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x56674c}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x3cbdd5}from'./feed/aichatfeederroritemview.js';function _0xd224(){const _0x4fe2e3=['isPending','render','forEach','find','getPartView','ck-ai-chat__feed','isVisible','_bodyCollection','options','markAsDone','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','clear','14679560LdNAgM','bindTemplate','ck-hidden','locale','scrollToSuggestion','toggleLoadingSkeleton','stop','ck-ai-chat__loader-text','9cTUBfc','_setupTemplate','filter','setTemplate','5118256OKngUs','parentElement','isLoadingSkeletonVisible','updateSources','4576488uTturB','loadingMessage','ai-chat-feed-view-item-not-a-suggestion-item','custom-element','set','user-message','updateReplyItem','ai-chat-feed-view-item-not-a-reply-item','setPartActive','getItemIds','includes','span','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','_createLoaderChildren','aiFeed','removeItem','startAutoScroll','_createFeedItems','228RgGRmn','markItemAsDone','_createTemplateChildren','ck-ai-chat__feed__items','4536652FvGpki','75982mcMCCZ','scrollManager','element','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','5nufYwU','updateSuggestionPartState','updateContent','div','ai-suggestion-reply','getItemById','7244713PfZpqw','bind','ck-ai-chat__loader','delegate','extendTemplate','map','_createFeedLoader','updateSuggestionItem','updateWebSources','_createSkeletonLoader','interaction-header','154561brGagC','add','remove','stopAutoScroll','setLoadingMessage','hasItem','addItem','destroy','ai-reply','createCollection','31GgGBVS','children','updatePartState','setSuggestionPartActive','isTrackChangesOn','ai-chat-feed-view-item-not-found','start','6lnlQtV'];_0xd224=function(){return _0x4fe2e3;};return _0xd224();}import{AIChatFeedInteractionHeaderView as _0x37b782}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x35fdc0}from'../../aicore/utils/scrollmanager.js';import{AISkeletonView as _0x368ca1,SKELETON_DEFINITIONS as _0x3b830d}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x5b89a6}from'../../aicore/ui/aispinner.js';import{AIChatFeedCustomElementView as _0x44be86}from'./feed/aichatfeedcustomelementview.js';import'../../../theme/aichat/aichatfeed.css';function _0x5e13(_0xb7faa0,_0x2dbc93){const _0xd224db=_0xd224();return _0x5e13=function(_0x5e13ab,_0x3a307d){_0x5e13ab=_0x5e13ab-0xdc;let _0x3b95bc=_0xd224db[_0x5e13ab];return _0x3b95bc;},_0x5e13(_0xb7faa0,_0x2dbc93);}export class AIChatFeedView extends _0x35e291{[_0xe0568(0x114)];[_0xe0568(0xf5)];[_0xe0568(0x122)];constructor(_0x6aa54b,_0x4a8a5d){const _0xcee528=_0xe0568;super(_0x6aa54b),this[_0xcee528(0x122)]=_0x4a8a5d,this[_0xcee528(0xe1)](_0xcee528(0x11b),!0x1),this[_0xcee528(0xe1)](_0xcee528(0xde),''),this[_0xcee528(0xe1)](_0xcee528(0x135),!0x1),this[_0xcee528(0xe1)](_0xcee528(0x117),!0x1),this[_0xcee528(0x114)]=this[_0xcee528(0x112)](),this[_0xcee528(0x114)][_0xcee528(0x101)](..._0x4b44af)['to'](this),this[_0xcee528(0x130)]();}[_0xe0568(0x11c)](){const _0x5c3f04=_0xe0568;super[_0x5c3f04(0x11c)](),this[_0x5c3f04(0xf5)]=new _0x35fdc0(this[_0x5c3f04(0xf6)]);}[_0xe0568(0x110)](){const _0x54d7c4=_0xe0568;super[_0x54d7c4(0x110)](),this[_0x54d7c4(0xf5)][_0x54d7c4(0x110)]();}[_0xe0568(0x126)](){const _0x415b8c=_0xe0568;this[_0x415b8c(0x114)][_0x415b8c(0x126)]();}[_0xe0568(0x10f)](_0xb653a0,_0x5a3280){const _0x5cb7ed=_0xe0568;let _0x51df14;return _0x5cb7ed(0x111)===_0xb653a0?_0x51df14=new _0x8d2948(this[_0x5cb7ed(0x12a)],_0x5a3280,this[_0x5cb7ed(0x122)]):_0x5cb7ed(0xfc)===_0xb653a0?(_0x51df14=new _0x399adc(this[_0x5cb7ed(0x12a)],_0x5a3280,this[_0x5cb7ed(0x122)]),_0x51df14[_0x5cb7ed(0xff)](_0x5cb7ed(0x117))['to'](this)):_0x51df14=_0x5cb7ed(0xe2)===_0xb653a0?new _0x56674c(this[_0x5cb7ed(0x12a)],_0x5a3280,this[_0x5cb7ed(0x122)]):_0x5cb7ed(0x108)===_0xb653a0?new _0x37b782(this[_0x5cb7ed(0x12a)],_0x5a3280):_0x5cb7ed(0xe0)===_0xb653a0?new _0x44be86(_0x5a3280):new _0x3cbdd5(_0x5a3280),this[_0x5cb7ed(0x114)][_0x5cb7ed(0x10a)](_0x51df14),_0x51df14;}async[_0xe0568(0xe3)]({id:_0x45e311,parsedContent:_0x5d6940,renderingStrategy:_0x12b5f4,abortSignal:_0x5edb21}){const _0xa86c9c=_0xe0568,_0x6a02d4=this[_0xa86c9c(0xfd)](_0x45e311);if(!(_0x6a02d4 instanceof _0x8d2948))throw new _0x21d445(_0xa86c9c(0xe4),null,{'itemView':_0x6a02d4,'id':_0x45e311,'parsedContent':_0x5d6940});await _0x6a02d4[_0xa86c9c(0xfa)]({'parsedContent':_0x5d6940,'renderingStrategy':_0x12b5f4,'abortSignal':_0x5edb21});}async[_0xe0568(0x106)](_0x1d5282,_0x1308d6){const _0x3db465=_0xe0568,_0x76ec32=this[_0x3db465(0xfd)](_0x1d5282);if(_0x76ec32 instanceof _0x399adc)_0x76ec32[_0x3db465(0xdc)](_0x1308d6);else{if(!(_0x76ec32 instanceof _0x8d2948))throw new _0x21d445(_0x3db465(0x125),null,{'itemView':_0x76ec32,'id':_0x1d5282,'sources':_0x1308d6});_0x76ec32[_0x3db465(0xdc)](_0x1308d6);}}async[_0xe0568(0x105)]({id:_0x50aeb7,parts:_0x21e9d0,renderingStrategy:_0x24bc8f,abortSignal:_0xab02a4}){const _0x1a2af9=_0xe0568,_0x25e4ed=this[_0x1a2af9(0xfd)](_0x50aeb7);if(!(_0x25e4ed instanceof _0x399adc))throw new _0x21d445(_0x1a2af9(0xdf),null,{'itemView':_0x25e4ed,'id':_0x50aeb7,'parts':_0x21e9d0});await _0x25e4ed[_0x1a2af9(0xfa)]({'parts':_0x21e9d0,'renderingStrategy':_0x24bc8f,'abortSignal':_0xab02a4});}[_0xe0568(0xf9)]({id:_0x2f75fb,index:_0x3c6281,state:_0x16eb25}){const _0x2e8836=_0xe0568,_0x25109c=this[_0x2e8836(0xfd)](_0x2f75fb);if(!(_0x25109c instanceof _0x399adc))throw new _0x21d445(_0x2e8836(0xdf),this,{'id':_0x2f75fb});_0x25109c[_0x2e8836(0x115)](_0x3c6281,_0x16eb25);}[_0xe0568(0x116)]({id:_0x229819,index:_0x16a6ad,isActive:_0x1e7d25}){const _0x4732bd=_0xe0568,_0x3c8cdc=this[_0x4732bd(0xfd)](_0x229819);if(!(_0x3c8cdc instanceof _0x399adc))throw new _0x21d445(_0x4732bd(0xdf),this,{'id':_0x229819});this[_0x4732bd(0x114)][_0x4732bd(0x131)](_0x354150=>_0x354150 instanceof _0x399adc)[_0x4732bd(0x11d)](_0x18a189=>{const _0x37d808=_0x4732bd;_0x18a189[_0x37d808(0xe5)](!0x1);}),_0x3c8cdc[_0x4732bd(0xe5)](_0x16a6ad,_0x1e7d25);}[_0xe0568(0xf0)](_0x1300a9){const _0x3a6c9a=_0xe0568;this[_0x3a6c9a(0xfd)](_0x1300a9)[_0x3a6c9a(0x124)]();}[_0xe0568(0xe6)](){const _0x29bc37=_0xe0568;return this[_0x29bc37(0x114)][_0x29bc37(0x103)](_0xb853d4=>_0xb853d4[_0x29bc37(0x123)]['id']);}[_0xe0568(0xec)](_0x3f4398){const _0x5ae4ad=_0xe0568;this[_0x5ae4ad(0x114)][_0x5ae4ad(0x10b)](this[_0x5ae4ad(0xfd)](_0x3f4398));}[_0xe0568(0x10e)](_0x592909){const _0x127239=_0xe0568;return!!this[_0x127239(0x114)][_0x127239(0x11e)](_0x46ab4f=>_0x46ab4f[_0x127239(0x123)]['id'][_0x127239(0xe7)](_0x592909));}[_0xe0568(0x12b)](_0x33b600,_0x4bb4bb){const _0x10cbb1=_0xe0568,_0x2964fd=this[_0x10cbb1(0xfd)](_0x33b600);if(!(_0x2964fd instanceof _0x399adc))return void _0x31c3e3(_0x10cbb1(0xf7),{'replyId':_0x33b600,'partIndex':_0x4bb4bb});const _0x54bd05=_0x2964fd[_0x10cbb1(0x11f)](_0x4bb4bb);_0x54bd05?_0x5c2faf(_0x54bd05[_0x10cbb1(0xf6)],0x14,this[_0x10cbb1(0xf6)][_0x10cbb1(0x134)],!0x0,!0x0):_0x31c3e3(_0x10cbb1(0xe9),{'replyId':_0x33b600,'partIndex':_0x4bb4bb});}[_0xe0568(0x130)](){const _0x190c2d=_0xe0568;this[_0x190c2d(0x132)]({'tag':_0x190c2d(0xfb),'attributes':{'class':['ck',_0x190c2d(0x120)]},'children':this[_0x190c2d(0xf1)]()});}[_0xe0568(0xf1)](){const _0x310324=_0xe0568,_0x75eefc=this[_0x310324(0x107)]();return[this[_0x310324(0xee)](),_0x75eefc,this[_0x310324(0x104)]()];}[_0xe0568(0x107)](){const _0x172d05=_0xe0568,_0x35d772=new _0x368ca1(this[_0x172d05(0x12a)],_0x3b830d[_0x172d05(0xeb)]);return _0x35d772[_0x172d05(0x102)]({'attributes':{'class':[this[_0x172d05(0x128)]['if'](_0x172d05(0x135),_0x172d05(0x129),_0x468bcc=>!_0x468bcc)]}}),_0x35d772;}[_0xe0568(0xee)](){const _0x990ef1=_0xe0568,_0x3b111f=new _0x35e291(this[_0x990ef1(0x12a)]);return _0x3b111f[_0x990ef1(0x132)]({'tag':_0x990ef1(0xfb),'attributes':{'class':['ck',_0x990ef1(0xf2),this[_0x990ef1(0x128)]['if'](_0x990ef1(0x135),_0x990ef1(0x129))]},'children':this[_0x990ef1(0x114)]}),_0x3b111f;}[_0xe0568(0x104)](){const _0x3b9230=_0xe0568,_0x35e701=new _0x35e291(this[_0x3b9230(0x12a)]);return _0x35e701[_0x3b9230(0x132)]({'tag':_0x3b9230(0xfb),'attributes':{'class':['ck',_0x3b9230(0x100),this[_0x3b9230(0x128)]['if'](_0x3b9230(0x11b),_0x3b9230(0x129),_0xd9b0c8=>!_0xd9b0c8)]},'children':this[_0x3b9230(0xea)]()}),_0x35e701;}[_0xe0568(0xea)](){const _0xe2fe6d=_0xe0568,_0x4db071=new _0x5b89a6();return _0x4db071[_0xe2fe6d(0x121)]=!0x0,[_0x4db071,{'tag':_0xe2fe6d(0xe8),'attributes':{'class':['ck',_0xe2fe6d(0x12e)]},'children':[{'text':this[_0xe2fe6d(0x128)]['to'](_0xe2fe6d(0xde))}]}];}[_0xe0568(0xfd)](_0x37de3e){const _0x199846=_0xe0568,_0x44401c=this[_0x199846(0x114)][_0x199846(0x11e)](_0x5557d8=>_0x5557d8[_0x199846(0x123)]['id'][_0x199846(0xe7)](_0x37de3e));if(!_0x44401c)throw new _0x21d445(_0x199846(0x118),this,{'id':_0x37de3e});return _0x44401c;}[_0xe0568(0x10d)](_0x5af7ee){const _0x467a44=_0xe0568;this[_0x467a44(0xe1)](_0x467a44(0xde),_0x5af7ee);}[_0xe0568(0x12c)](_0x1d3a27){const _0x1d4f4a=_0xe0568;this[_0x1d4f4a(0xe1)](_0x1d4f4a(0x135),_0x1d3a27);}[_0xe0568(0xed)](){const _0x523088=_0xe0568;this[_0x523088(0xf5)][_0x523088(0x119)]();}[_0xe0568(0x10c)](){const _0x573280=_0xe0568;this[_0x573280(0xf5)][_0x573280(0x12d)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xc112bb=_0xab89;function _0x24dd(){const _0x32a20e=['2569ljFnFZ','execute','fire','set','18232lHOCci','61104HGrlbF','9500715gZSzfJ','conversationStartButton','796707JYbGPU','children','32JUbyyX','isMaximized','47707dTiLOQ','18zcptcG','ck-ai-header\x20ck-ai-header_chat','137645ITcSVR','238935aVpjCe','startConversation','AI_CHAT_HEADING','locale','ck-ai-chat__start-conversation','7620RiRVzx','resizeButton','_createStartConversationButton','add','AI_CHAT_LABEL_NEW_CHAT'];_0x24dd=function(){return _0x32a20e;};return _0x24dd();}(function(_0x33a67a,_0x5639b3){const _0x216b88=_0xab89,_0x1f0a5b=_0x33a67a();while(!![]){try{const _0xf92461=parseInt(_0x216b88(0x1c2))/0x1+parseInt(_0x216b88(0x1c4))/0x2*(parseInt(_0x216b88(0x1ca))/0x3)+-parseInt(_0x216b88(0x1bf))/0x4+parseInt(_0x216b88(0x1c9))/0x5*(parseInt(_0x216b88(0x1c7))/0x6)+-parseInt(_0x216b88(0x1d4))/0x7*(-parseInt(_0x216b88(0x1be))/0x8)+parseInt(_0x216b88(0x1c0))/0x9+parseInt(_0x216b88(0x1cf))/0xa*(-parseInt(_0x216b88(0x1c6))/0xb);if(_0xf92461===_0x5639b3)break;else _0x1f0a5b['push'](_0x1f0a5b['shift']());}catch(_0xbd52e){_0x1f0a5b['push'](_0x1f0a5b['shift']());}}}(_0x24dd,0xb1244));import{ButtonView as _0x1645e1,FormHeaderView as _0x4e17de}from'ckeditor5/src/ui.js';import{IconPlus as _0x4c8bf8,IconAIChat as _0x2c20f0}from'ckeditor5/src/icons.js';function _0xab89(_0x5a54d0,_0x4d0a54){const _0x24ddbf=_0x24dd();return _0xab89=function(_0xab89b3,_0x19c8f9){_0xab89b3=_0xab89b3-0x1bb;let _0x12edbb=_0x24ddbf[_0xab89b3];return _0x12edbb;},_0xab89(_0x5a54d0,_0x4d0a54);}import{getTranslation as _0x229c2d}from'../../aicore/utils/common-translations.js';import{createResizeButton as _0x320cd0}from'../../aicore/utils/createresizebutton.js';import'../../../theme/common/aiheader.css';export class AIChatHeaderView extends _0x4e17de{[_0xc112bb(0x1c1)];[_0xc112bb(0x1d0)];constructor(_0x3136cb,_0x40228c){const _0xb87442=_0xc112bb;super(_0x3136cb,{'label':_0x229c2d(_0x3136cb,_0xb87442(0x1cc)),'class':_0xb87442(0x1c8),'icon':_0x2c20f0}),this[_0xb87442(0x1bd)](_0xb87442(0x1c5),!0x1),this[_0xb87442(0x1c1)]=this[_0xb87442(0x1d1)](_0x3136cb),this[_0xb87442(0x1c3)][_0xb87442(0x1d2)](this[_0xb87442(0x1c1)]),_0x40228c&&(this[_0xb87442(0x1d0)]=_0x320cd0(_0x3136cb,this),this[_0xb87442(0x1c3)][_0xb87442(0x1d2)](this[_0xb87442(0x1d0)]));}[_0xc112bb(0x1d1)](_0x574f38){const _0x1b5e7c=_0xc112bb,_0x5b17ce=new _0x1645e1(_0x574f38);return _0x5b17ce[_0x1b5e7c(0x1bd)]({'label':_0x229c2d(this[_0x1b5e7c(0x1cd)],_0x1b5e7c(0x1d3)),'withText':!0x0,'icon':_0x4c8bf8,'class':_0x1b5e7c(0x1ce)}),_0x5b17ce['on'](_0x1b5e7c(0x1bb),()=>{const _0x111a70=_0x1b5e7c;this[_0x111a70(0x1bc)](_0x111a70(0x1cb));}),_0x5b17ce;}}
23
+ const _0x3c9d75=_0x46a1;(function(_0x38e45a,_0x47691e){const _0x2cdb09=_0x46a1,_0xd78367=_0x38e45a();while(!![]){try{const _0x17e040=parseInt(_0x2cdb09(0x105))/0x1*(parseInt(_0x2cdb09(0x104))/0x2)+-parseInt(_0x2cdb09(0x10e))/0x3+-parseInt(_0x2cdb09(0x10b))/0x4+parseInt(_0x2cdb09(0x116))/0x5*(parseInt(_0x2cdb09(0x100))/0x6)+-parseInt(_0x2cdb09(0x113))/0x7*(parseInt(_0x2cdb09(0x107))/0x8)+-parseInt(_0x2cdb09(0xfd))/0x9*(-parseInt(_0x2cdb09(0x10f))/0xa)+parseInt(_0x2cdb09(0x10d))/0xb;if(_0x17e040===_0x47691e)break;else _0xd78367['push'](_0xd78367['shift']());}catch(_0x1f2f5f){_0xd78367['push'](_0xd78367['shift']());}}}(_0x2aa8,0xe1756));function _0x2aa8(){const _0x4f639e=['2363284nlREAe','3595230jGbkSG','1230HwAIaH','fire','children','isMaximized','217rlxSUK','add','locale','180IMHUxO','57366pJJLtr','_createStartConversationButton','resizeButton','291738NqNTjj','ck-ai-chat__start-conversation','set','AI_CHAT_LABEL_NEW_CHAT','2289682CSXkfF','1SGxNUh','conversationStartButton','74576TeCAZr','AI_CHAT_HEADING','startConversation','execute','5932980taBQnO','ck-ai-header\x20ck-ai-header_chat'];_0x2aa8=function(){return _0x4f639e;};return _0x2aa8();}import{ButtonView as _0x448433,FormHeaderView as _0x1745ec}from'ckeditor5/src/ui.js';function _0x46a1(_0x63ba5,_0x44e29b){const _0x2aa81a=_0x2aa8();return _0x46a1=function(_0x46a153,_0x4a57ef){_0x46a153=_0x46a153-0xfd;let _0x48cd73=_0x2aa81a[_0x46a153];return _0x48cd73;},_0x46a1(_0x63ba5,_0x44e29b);}import{IconPlus as _0x318c87,IconAIChat as _0x6ff031}from'ckeditor5/src/icons.js';import{getTranslation as _0x7653c9}from'../../aicore/utils/common-translations.js';import{createResizeButton as _0x7c24a5}from'../../aicore/utils/createresizebutton.js';import'../../../theme/common/aiheader.css';export class AIChatHeaderView extends _0x1745ec{[_0x3c9d75(0x106)];[_0x3c9d75(0xff)];constructor(_0x4f185d,_0x300ec6){const _0xd23573=_0x3c9d75;super(_0x4f185d,{'label':_0x7653c9(_0x4f185d,_0xd23573(0x108)),'class':_0xd23573(0x10c),'icon':_0x6ff031}),this[_0xd23573(0x102)](_0xd23573(0x112),!0x1),this[_0xd23573(0x106)]=this[_0xd23573(0xfe)](_0x4f185d),this[_0xd23573(0x111)][_0xd23573(0x114)](this[_0xd23573(0x106)]),_0x300ec6&&(this[_0xd23573(0xff)]=_0x7c24a5(_0x4f185d,this),this[_0xd23573(0x111)][_0xd23573(0x114)](this[_0xd23573(0xff)]));}[_0x3c9d75(0xfe)](_0x3948d7){const _0x2b32f3=_0x3c9d75,_0xd79921=new _0x448433(_0x3948d7);return _0xd79921[_0x2b32f3(0x102)]({'label':_0x7653c9(this[_0x2b32f3(0x115)],_0x2b32f3(0x103)),'withText':!0x0,'icon':_0x318c87,'class':_0x2b32f3(0x101)}),_0xd79921['on'](_0x2b32f3(0x10a),()=>{const _0x143214=_0x2b32f3;this[_0x143214(0x110)](_0x143214(0x109));}),_0xd79921;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0xb25899=_0x26a0;(function(_0x57971b,_0x9808df){var _0x40cc4a=_0x26a0,_0xa4ac2a=_0x57971b();while(!![]){try{var _0x1014a3=-parseInt(_0x40cc4a(0x8f))/0x1+parseInt(_0x40cc4a(0x8c))/0x2+parseInt(_0x40cc4a(0x96))/0x3*(parseInt(_0x40cc4a(0x9a))/0x4)+parseInt(_0x40cc4a(0x85))/0x5+-parseInt(_0x40cc4a(0x8b))/0x6*(parseInt(_0x40cc4a(0x86))/0x7)+parseInt(_0x40cc4a(0x91))/0x8+-parseInt(_0x40cc4a(0x97))/0x9;if(_0x1014a3===_0x9808df)break;else _0xa4ac2a['push'](_0xa4ac2a['shift']());}catch(_0xec05da){_0xa4ac2a['push'](_0xa4ac2a['shift']());}}}(_0x632e,0x1b544));import{View as _0x36a81d,BodyCollection as _0x13b9c8}from'ckeditor5/src/ui.js';function _0x632e(){var _0x3a16ee=['setTemplate','chatControls','closeSourceResourceBalloon','div','ck-rounded-corners','ck-ai-chat','91180FBsrbt','7LpUrcS','uiLanguageDirection','chatFeed','attachToDom','chatDisclaimer','364734cfiIQp','207200dSSrSw','populateSourceResourceBalloon','showResizeButton','53718xHNRop','ck-reset_all','837032oNdaqP','_bodyCollection','destroy','detachFromDom','delegate','4911vvGriO','1635525xLQFFH','contextResourcesSearchInputVisibleFrom','chatHeader','444piwEwI'];_0x632e=function(){return _0x3a16ee;};return _0x632e();}import{AI_CHAT_UI_EVENT_NAMES as _0x20bc6e}from'../utils/eventnames.js';import{AIChatFeedView as _0x2ddc78}from'./aichatfeedview.js';import{AIChatControlsView as _0x436da7}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x2f50a4}from'./aichatheaderview.js';import{AIDisclaimerView as _0x46c6fc}from'../../aicore/ui/aidisclaimerview.js';import'../../../theme/common/ainotification.css';function _0x26a0(_0x86c102,_0x426a63){var _0x632eb4=_0x632e();return _0x26a0=function(_0x26a0d9,_0xcd25b8){_0x26a0d9=_0x26a0d9-0x85;var _0x239aaa=_0x632eb4[_0x26a0d9];return _0x239aaa;},_0x26a0(_0x86c102,_0x426a63);}import'../../../theme/common/aibutton.css';import'../../../theme/common/aitrackchanges.css';export class AIChatView extends _0x36a81d{[_0xb25899(0x99)];[_0xb25899(0x88)];[_0xb25899(0x9c)];[_0xb25899(0x8a)];[_0xb25899(0x92)];constructor(_0x59d5d1,_0x3c13f2){var _0x23b5bf=_0xb25899;super(_0x59d5d1),this[_0x23b5bf(0x92)]=new _0x13b9c8(_0x59d5d1),this[_0x23b5bf(0x92)][_0x23b5bf(0x89)](),this[_0x23b5bf(0x99)]=new _0x2f50a4(_0x59d5d1,_0x3c13f2[_0x23b5bf(0x8e)]),this[_0x23b5bf(0x99)][_0x23b5bf(0x95)](..._0x20bc6e)['to'](this),this[_0x23b5bf(0x88)]=new _0x2ddc78(_0x59d5d1,this[_0x23b5bf(0x92)]),this[_0x23b5bf(0x88)][_0x23b5bf(0x95)](..._0x20bc6e)['to'](this),this[_0x23b5bf(0x9c)]=new _0x436da7(_0x59d5d1,{'bodyCollection':this[_0x23b5bf(0x92)],'contextResourcesSearchInputVisibleFrom':_0x3c13f2[_0x23b5bf(0x98)]}),this[_0x23b5bf(0x9c)][_0x23b5bf(0x95)](..._0x20bc6e)['to'](this),this[_0x23b5bf(0x8a)]=new _0x46c6fc(_0x59d5d1),this[_0x23b5bf(0x9b)]({'tag':_0x23b5bf(0x9e),'attributes':{'class':['ck',_0x23b5bf(0x90),_0x23b5bf(0xa0),_0x23b5bf(0x9f)],'dir':_0x59d5d1[_0x23b5bf(0x87)]},'children':[this[_0x23b5bf(0x99)],this[_0x23b5bf(0x88)],this[_0x23b5bf(0x9c)],this[_0x23b5bf(0x8a)]]});}[_0xb25899(0x8d)](_0x3ba032,_0x49469c,_0x2a56b1,_0x10c95b){var _0x48203d=_0xb25899;this[_0x48203d(0x9c)][_0x48203d(0x8d)](_0x3ba032,_0x49469c,_0x2a56b1,_0x10c95b);}[_0xb25899(0x9d)](_0x27a69c){var _0x5c80a3=_0xb25899;this[_0x5c80a3(0x9c)][_0x5c80a3(0x9d)](_0x27a69c);}[_0xb25899(0x93)](){var _0x4a8659=_0xb25899;this[_0x4a8659(0x92)][_0x4a8659(0x94)](),super[_0x4a8659(0x93)]();}}
23
+ var _0x34753e=_0x285b;(function(_0x3dc810,_0x9ec279){var _0x349dea=_0x285b,_0x1efc21=_0x3dc810();while(!![]){try{var _0x17a89f=-parseInt(_0x349dea(0x11a))/0x1*(-parseInt(_0x349dea(0x134))/0x2)+parseInt(_0x349dea(0x12c))/0x3*(parseInt(_0x349dea(0x12a))/0x4)+-parseInt(_0x349dea(0x11d))/0x5+parseInt(_0x349dea(0x121))/0x6*(-parseInt(_0x349dea(0x130))/0x7)+-parseInt(_0x349dea(0x118))/0x8+-parseInt(_0x349dea(0x126))/0x9+parseInt(_0x349dea(0x12d))/0xa;if(_0x17a89f===_0x9ec279)break;else _0x1efc21['push'](_0x1efc21['shift']());}catch(_0x112e27){_0x1efc21['push'](_0x1efc21['shift']());}}}(_0x25e5,0x1c88b));function _0x25e5(){var _0xe01c3b=['1YtmUuy','ck-rounded-corners','chatDisclaimer','599030ketwPZ','contextResourcesSearchInputVisibleFrom','ck-reset_all','detachFromDom','145650yxyUSR','chatHeader','chatFeed','destroy','showResizeButton','1031967gtJJcs','uiLanguageDirection','ck-ai-chat','setTemplate','4skCQwp','populateSourceResourceBalloon','401616CKOZCG','3926110kPzTXY','delegate','attachToDom','56kOVcXB','chatControls','closeSourceResourceBalloon','_bodyCollection','366658zVizDP','1314144jMjgcB','div'];_0x25e5=function(){return _0xe01c3b;};return _0x25e5();}import{View as _0x24abfe,BodyCollection as _0x9ba80b}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x1165d3}from'../utils/eventnames.js';import{AIChatFeedView as _0x59a3ab}from'./aichatfeedview.js';import{AIChatControlsView as _0x1f9b7c}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x283315}from'./aichatheaderview.js';import{AIDisclaimerView as _0x5a5e36}from'../../aicore/ui/aidisclaimerview.js';function _0x285b(_0x243fef,_0x871d87){var _0x25e502=_0x25e5();return _0x285b=function(_0x285b5f,_0x54ff65){_0x285b5f=_0x285b5f-0x118;var _0x526751=_0x25e502[_0x285b5f];return _0x526751;},_0x285b(_0x243fef,_0x871d87);}import'../../../theme/common/ainotification.css';import'../../../theme/common/aibutton.css';import'../../../theme/common/aitrackchanges.css';export class AIChatView extends _0x24abfe{[_0x34753e(0x122)];[_0x34753e(0x123)];[_0x34753e(0x131)];[_0x34753e(0x11c)];[_0x34753e(0x133)];constructor(_0x57f58b,_0x5638ae){var _0x46cfc4=_0x34753e;super(_0x57f58b),this[_0x46cfc4(0x133)]=new _0x9ba80b(_0x57f58b),this[_0x46cfc4(0x133)][_0x46cfc4(0x12f)](),this[_0x46cfc4(0x122)]=new _0x283315(_0x57f58b,_0x5638ae[_0x46cfc4(0x125)]),this[_0x46cfc4(0x122)][_0x46cfc4(0x12e)](..._0x1165d3)['to'](this),this[_0x46cfc4(0x123)]=new _0x59a3ab(_0x57f58b,this[_0x46cfc4(0x133)]),this[_0x46cfc4(0x123)][_0x46cfc4(0x12e)](..._0x1165d3)['to'](this),this[_0x46cfc4(0x131)]=new _0x1f9b7c(_0x57f58b,{'bodyCollection':this[_0x46cfc4(0x133)],'contextResourcesSearchInputVisibleFrom':_0x5638ae[_0x46cfc4(0x11e)]}),this[_0x46cfc4(0x131)][_0x46cfc4(0x12e)](..._0x1165d3)['to'](this),this[_0x46cfc4(0x11c)]=new _0x5a5e36(_0x57f58b),this[_0x46cfc4(0x129)]({'tag':_0x46cfc4(0x119),'attributes':{'class':['ck',_0x46cfc4(0x11f),_0x46cfc4(0x128),_0x46cfc4(0x11b)],'dir':_0x57f58b[_0x46cfc4(0x127)]},'children':[this[_0x46cfc4(0x122)],this[_0x46cfc4(0x123)],this[_0x46cfc4(0x131)],this[_0x46cfc4(0x11c)]]});}[_0x34753e(0x12b)](_0x2667b5,_0x59956e,_0x121c78,_0x174932){var _0x2a6978=_0x34753e;this[_0x2a6978(0x131)][_0x2a6978(0x12b)](_0x2667b5,_0x59956e,_0x121c78,_0x174932);}[_0x34753e(0x132)](_0x3c9c81){var _0x36093b=_0x34753e;this[_0x36093b(0x131)][_0x36093b(0x132)](_0x3c9c81);}[_0x34753e(0x124)](){var _0xddd8b9=_0x34753e;this[_0xddd8b9(0x133)][_0xddd8b9(0x120)](),super[_0xddd8b9(0x124)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x372e50=_0x5834;(function(_0x579373,_0x1dda01){const _0x275f6b=_0x5834,_0x377af4=_0x579373();while(!![]){try{const _0xe19331=-parseInt(_0x275f6b(0xce))/0x1*(-parseInt(_0x275f6b(0x149))/0x2)+parseInt(_0x275f6b(0xef))/0x3+-parseInt(_0x275f6b(0x134))/0x4+-parseInt(_0x275f6b(0x117))/0x5*(parseInt(_0x275f6b(0xf2))/0x6)+-parseInt(_0x275f6b(0x10c))/0x7+parseInt(_0x275f6b(0x124))/0x8+parseInt(_0x275f6b(0xec))/0x9;if(_0xe19331===_0x1dda01)break;else _0x377af4['push'](_0x377af4['shift']());}catch(_0x3a6b67){_0x377af4['push'](_0x377af4['shift']());}}}(_0x5af7,0xd3e16));import{View as _0x1a18a3,BalloonPanelView as _0x19ae94,ButtonView as _0x2a658e,clickOutsideHandler as _0x45c447}from'ckeditor5/src/ui.js';import{Collection as _0x5c9846}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},an=_0x372e50(0x137);function _0x5834(_0x3e7a2d,_0x2a0f2c){const _0x5af797=_0x5af7();return _0x5834=function(_0x5834a6,_0x42e404){_0x5834a6=_0x5834a6-0xbc;let _0x2405ce=_0x5af797[_0x5834a6];return _0x2405ce;},_0x5834(_0x3e7a2d,_0x2a0f2c);}export class AIChatChipsOverflowManager{[_0x372e50(0xe5)];[_0x372e50(0x140)];[_0x372e50(0x108)];[_0x372e50(0xe2)];[_0x372e50(0xd0)]=null;[_0x372e50(0xde)]=null;[_0x372e50(0xfb)]=null;[_0x372e50(0x102)];[_0x372e50(0x104)]=null;[_0x372e50(0xe3)]=null;[_0x372e50(0x109)]=!0x1;constructor(_0x4a0ed8,_0x175bec,_0x47a461,_0x4d6262,_0x3dde8f){const _0x2bf7b2=_0x372e50;this[_0x2bf7b2(0xe5)]=_0x4a0ed8,this[_0x2bf7b2(0x108)]=_0x175bec,this[_0x2bf7b2(0x140)]={...hn,..._0x47a461,'cssClasses':{'controlsButton':'','calculationContainer':_0x2bf7b2(0x119),..._0x47a461[_0x2bf7b2(0x146)]}},this[_0x2bf7b2(0xe2)]=new _0x5c9846(),this[_0x2bf7b2(0x102)]=_0x4d6262,this[_0x2bf7b2(0x104)]=_0x3dde8f||null;}[_0x372e50(0x12b)](_0x383a83){const _0x58769e=_0x372e50;this[_0x58769e(0xe3)]&&(this[_0x58769e(0xe3)][_0x58769e(0x136)](),this[_0x58769e(0xe3)]=null),this[_0x58769e(0xfb)]=_0x383a83,this[_0x58769e(0xe9)]();}get[_0x372e50(0x145)](){const _0x33e07c=_0x372e50;return this[_0x33e07c(0xd0)];}get[_0x372e50(0x138)](){const _0x45e9ec=_0x372e50;return this[_0x45e9ec(0xe2)];}[_0x372e50(0xbe)](){requestAnimationFrame(()=>{const _0x5183b2=_0x5834;this[_0x5183b2(0xf5)]();});}[_0x372e50(0x114)](){const _0x3137fb=_0x372e50;this[_0x3137fb(0xd0)]&&this[_0x3137fb(0xde)]&&(this[_0x3137fb(0x105)](),this[_0x3137fb(0xd0)][_0x3137fb(0x148)]=!0x0,this[_0x3137fb(0xde)][_0x3137fb(0xff)](),this[_0x3137fb(0xde)][_0x3137fb(0xcb)]({'target':this[_0x3137fb(0xd0)][_0x3137fb(0x12e)],'limiter':document[_0x3137fb(0x13a)](_0x3137fb(0xd6))}));}[_0x372e50(0x10a)](){const _0x18610d=_0x372e50;this[_0x18610d(0xd0)]&&this[_0x18610d(0xde)]&&(this[_0x18610d(0xd0)][_0x18610d(0x148)]=!0x1,this[_0x18610d(0xde)][_0x18610d(0x14b)]());}[_0x372e50(0x115)](){const _0xde0585=_0x372e50;this[_0xde0585(0xe2)][_0xde0585(0x115)](),this[_0xde0585(0x10a)](),this[_0xde0585(0x11b)](),this[_0xde0585(0xd0)]&&(this[_0xde0585(0xd0)][_0xde0585(0x14a)]=''),this[_0xde0585(0xde)]&&this[_0xde0585(0xde)][_0xde0585(0xca)][_0xde0585(0x115)]();}[_0x372e50(0xc6)](){const _0x505d20=_0x372e50;this[_0x505d20(0xe3)]&&(this[_0x505d20(0xe3)][_0x505d20(0x136)](),this[_0x505d20(0xe3)]=null),this[_0x505d20(0xd0)]&&(this[_0x505d20(0xd0)][_0x505d20(0xc6)](),this[_0x505d20(0xd0)]=null),this[_0x505d20(0xde)]&&(this[_0x505d20(0xde)][_0x505d20(0xc6)](),this[_0x505d20(0xde)]=null);}[_0x372e50(0xf5)](){const _0x2a5eb4=_0x372e50;if(!this[_0x2a5eb4(0xfb)])return;if(!this[_0x2a5eb4(0x14e)]())return void(this[_0x2a5eb4(0x109)]=!0x0);this[_0x2a5eb4(0x109)]=!0x1;const _0x349b13=[...this[_0x2a5eb4(0x108)],...this[_0x2a5eb4(0xe2)]],_0x7d5de6=this[_0x2a5eb4(0xd9)](),_0x2882ad=this[_0x2a5eb4(0x101)](_0x7d5de6,_0x349b13),_0x5b6d7d=_0x7d5de6[_0x2a5eb4(0xcd)];_0x5b6d7d&&this[_0x2a5eb4(0x112)](_0x5b6d7d),_0x7d5de6[_0x2a5eb4(0xfe)](),this[_0x2a5eb4(0xd3)](_0x349b13,_0x2882ad);}[_0x372e50(0xf8)](){const _0x4fdb77=_0x372e50;this[_0x4fdb77(0xd0)]=this[_0x4fdb77(0xeb)](),this[_0x4fdb77(0xde)]=this[_0x4fdb77(0x130)](),this[_0x4fdb77(0xd0)][_0x4fdb77(0xd2)](),this[_0x4fdb77(0xfb)][_0x4fdb77(0x12a)](this[_0x4fdb77(0xd0)][_0x4fdb77(0x12e)]),this[_0x4fdb77(0xd0)]['on'](_0x4fdb77(0x12d),()=>{const _0x41bf23=_0x4fdb77;this[_0x41bf23(0x11e)]();}),_0x45c447({'emitter':this[_0x4fdb77(0xde)],'contextElements':[this[_0x4fdb77(0xde)][_0x4fdb77(0x12e)],this[_0x4fdb77(0xd0)][_0x4fdb77(0x12e)]],'callback':()=>this[_0x4fdb77(0x10a)](),'activator':()=>this[_0x4fdb77(0xd0)][_0x4fdb77(0x148)]});}[_0x372e50(0xeb)](){const _0x302e23=_0x372e50,_0xe6c8c6=new _0x2a658e(this[_0x302e23(0xe5)]);_0xe6c8c6[_0x302e23(0xda)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x1a1629=[this[_0x302e23(0x140)][_0x302e23(0x146)][_0x302e23(0xf7)]];return this[_0x302e23(0x140)][_0x302e23(0x146)][_0x302e23(0x14d)]&&_0x1a1629[_0x302e23(0x10f)](this[_0x302e23(0x140)][_0x302e23(0x146)][_0x302e23(0x14d)]),_0xe6c8c6[_0x302e23(0xbf)]({'attributes':{'class':_0x1a1629}}),_0xe6c8c6;}[_0x372e50(0x130)](){const _0x29f0b1=_0x372e50,_0x212604=new _0x19ae94(this[_0x29f0b1(0xe5)]);return _0x212604[_0x29f0b1(0xbf)]({'attributes':{'class':this[_0x29f0b1(0x140)][_0x29f0b1(0x146)][_0x29f0b1(0xfc)]}}),this[_0x29f0b1(0x102)][_0x29f0b1(0xdb)](_0x212604),_0x212604;}[_0x372e50(0x105)](){const _0x5248e3=_0x372e50;if(this[_0x5248e3(0xde)]&&(this[_0x5248e3(0xde)][_0x5248e3(0xca)][_0x5248e3(0x115)](),this[_0x5248e3(0xe2)][_0x5248e3(0xe0)]>0x0)){this[_0x5248e3(0xe2)][_0x5248e3(0xc0)](_0x3fc24c=>{const _0x36e70b=_0x5248e3;_0x3fc24c[_0x36e70b(0x13f)]();});const _0x3f9aeb=new _0x1a18a3(this[_0x5248e3(0xe5)]);_0x3f9aeb[_0x5248e3(0xf4)]({'tag':_0x5248e3(0x106),'attributes':{'class':this[_0x5248e3(0x140)][_0x5248e3(0x146)][_0x5248e3(0x113)]},'children':this[_0x5248e3(0xe2)]}),this[_0x5248e3(0xde)][_0x5248e3(0xca)][_0x5248e3(0xdb)](_0x3f9aeb);}}[_0x372e50(0x11e)](){const _0x3cb5c1=_0x372e50;this[_0x3cb5c1(0xd0)][_0x3cb5c1(0x148)]?this[_0x3cb5c1(0x10a)]():this[_0x3cb5c1(0x114)]();}[_0x372e50(0x11b)](){const _0x186d03=_0x372e50,_0x3296bb=this[_0x186d03(0xe2)][_0x186d03(0xe0)]>0x0;this[_0x186d03(0xd0)]?.[_0x186d03(0x12e)]&&(this[_0x186d03(0xd0)][_0x186d03(0x12e)][_0x186d03(0xf1)][_0x186d03(0x135)]=_0x3296bb?'':_0x186d03(0xd8));}[_0x372e50(0xe6)](){const _0x1bceba=_0x372e50;this[_0x1bceba(0xd0)]?.[_0x1bceba(0x148)]&&this[_0x1bceba(0xde)]?.[_0x1bceba(0x11d)]&&this[_0x1bceba(0xd0)][_0x1bceba(0x12e)]&&this[_0x1bceba(0xde)][_0x1bceba(0xcb)]({'target':this[_0x1bceba(0xd0)][_0x1bceba(0x12e)],'limiter':document[_0x1bceba(0x13a)](_0x1bceba(0xd6))});}[_0x372e50(0x11c)](_0x4212dc){const _0x21cdc6=_0x372e50,_0x2e8a04=this[_0x21cdc6(0xfb)]?.[_0x21cdc6(0x12c)][_0x21cdc6(0xed)]()||_0x21cdc6(0x106),_0x24c4fd=this[_0x21cdc6(0xfb)]?.[_0x21cdc6(0x11a)];if(_0x24c4fd){const _0x39e396=_0x24c4fd[0x0]||'',_0x41377a=_0x4212dc[_0x21cdc6(0x13a)]('.'+_0x39e396),_0x42e95e=_0x4212dc[_0x21cdc6(0x13a)](_0x2e8a04);return _0x41377a||_0x42e95e||_0x4212dc;}return _0x4212dc[_0x21cdc6(0x13a)](_0x2e8a04)||_0x4212dc;}[_0x372e50(0xc4)](){const _0x35117a=_0x372e50,_0x3efda9=this[_0x35117a(0x104)]?.[_0x35117a(0x12e)]||this[_0x35117a(0xfb)];if(!_0x3efda9)return an;const _0xef5f1f=window[_0x35117a(0xc8)](_0x3efda9)[_0x35117a(0xc1)];if(_0x35117a(0x107)===_0xef5f1f||_0x35117a(0x118)===_0xef5f1f||!_0xef5f1f){const _0x49fef7=_0x3efda9[_0x35117a(0x129)];if(_0x49fef7){const _0x5dcac4=window[_0x35117a(0xc8)](_0x49fef7);return _0x35117a(0x107)!==_0x5dcac4[_0x35117a(0xc1)]?_0x5dcac4[_0x35117a(0xc1)]:an;}return an;}return _0xef5f1f;}[_0x372e50(0x10e)](_0x5458cc,_0x2a761c){const _0x4bf0b9=_0x372e50;this[_0x4bf0b9(0x140)][_0x4bf0b9(0x146)][_0x4bf0b9(0x131)]&&_0x5458cc[_0x4bf0b9(0x11a)][_0x4bf0b9(0xdb)](this[_0x4bf0b9(0x140)][_0x4bf0b9(0x146)][_0x4bf0b9(0x131)]),_0x5458cc[_0x4bf0b9(0xf1)][_0x4bf0b9(0xc1)]=_0x2a761c,_0x5458cc[_0x4bf0b9(0xf1)][_0x4bf0b9(0x143)]=_0x4bf0b9(0x132),_0x5458cc[_0x4bf0b9(0xf1)][_0x4bf0b9(0x127)]=_0x4bf0b9(0x126),_0x5458cc[_0x4bf0b9(0xf1)][_0x4bf0b9(0xdc)]=_0x4bf0b9(0x126),_0x5458cc[_0x4bf0b9(0xf1)][_0x4bf0b9(0xe8)]='0',_0x5458cc[_0x4bf0b9(0xf1)][_0x4bf0b9(0x120)]=_0x4bf0b9(0xd8),_0x5458cc[_0x4bf0b9(0xf1)][_0x4bf0b9(0xf0)]='-1',_0x5458cc[_0x4bf0b9(0xf1)][_0x4bf0b9(0xbd)]=_0x4bf0b9(0xd7),_0x5458cc[_0x4bf0b9(0xf1)][_0x4bf0b9(0x135)]=_0x4bf0b9(0x10b),_0x5458cc[_0x4bf0b9(0xf1)][_0x4bf0b9(0x147)]=_0x4bf0b9(0x144);}[_0x372e50(0x112)](_0x47e07b){const _0x14565d=_0x372e50;_0x47e07b[_0x14565d(0xc0)](({element:_0x43506b,originalDisplay:_0xad5a9b,originalVisibility:_0x445900})=>{const _0x4ea9a1=_0x14565d;_0x43506b[_0x4ea9a1(0xf1)][_0x4ea9a1(0x135)]=_0xad5a9b,_0x43506b[_0x4ea9a1(0xf1)][_0x4ea9a1(0xbd)]=_0x445900;});}[_0x372e50(0xc9)](_0x3fa9bc){const _0x5704f2=_0x372e50,_0x27cc18=[];let _0x2e6be0=_0x3fa9bc;for(;_0x2e6be0&&_0x2e6be0!==document[_0x5704f2(0x10d)];){const _0xbbfd55=window[_0x5704f2(0xc8)](_0x2e6be0);_0x5704f2(0xd8)!==_0xbbfd55[_0x5704f2(0x135)]&&_0x5704f2(0x122)!==_0xbbfd55[_0x5704f2(0xbd)]||(_0x27cc18[_0x5704f2(0x10f)]({'element':_0x2e6be0,'originalDisplay':_0x2e6be0[_0x5704f2(0xf1)][_0x5704f2(0x135)],'originalVisibility':_0x2e6be0[_0x5704f2(0xf1)][_0x5704f2(0xbd)]}),_0x2e6be0[_0x5704f2(0xf1)][_0x5704f2(0x135)]=_0x5704f2(0xe7),_0x2e6be0[_0x5704f2(0xf1)][_0x5704f2(0xbd)]=_0x5704f2(0xc5)),_0x2e6be0=_0x2e6be0[_0x5704f2(0x129)];}return _0x27cc18;}[_0x372e50(0xe1)](){const _0x3a280c=_0x372e50;let _0x12de6b,_0x160731;return this[_0x3a280c(0x104)]?.[_0x3a280c(0x12e)]?(_0x12de6b=this[_0x3a280c(0x104)][_0x3a280c(0x12e)][_0x3a280c(0x110)](!0x0),_0x160731=this[_0x3a280c(0x11c)](_0x12de6b)):(_0x12de6b=document[_0x3a280c(0x116)](_0x3a280c(0x106)),_0x160731=_0x12de6b),{'calculationContainer':_0x12de6b,'targetContainer':_0x160731};}[_0x372e50(0xd9)](){const _0x4d56fe=_0x372e50,{calculationContainer:_0x3b958e,targetContainer:_0x4022be}=this[_0x4d56fe(0xe1)](),_0x5266f0=this[_0x4d56fe(0xc4)]();this[_0x4d56fe(0x10e)](_0x3b958e,_0x5266f0);const _0x46dbc1=this[_0x4d56fe(0x104)]?.[_0x4d56fe(0x12e)]||this[_0x4d56fe(0xfb)],_0x54f6e1=_0x46dbc1?.[_0x4d56fe(0x129)];_0x54f6e1?_0x54f6e1[_0x4d56fe(0x12a)](_0x3b958e):document[_0x4d56fe(0x10d)][_0x4d56fe(0x12a)](_0x3b958e),_0x3b958e[_0x4d56fe(0x12f)]=_0x4022be;const _0x2b27cd=this[_0x4d56fe(0xc9)](_0x54f6e1||null);return _0x3b958e[_0x4d56fe(0x141)],_0x3b958e[_0x4d56fe(0xcd)]=_0x2b27cd,_0x3b958e;}[_0x372e50(0x101)](_0x429bbb,_0x99850e){const _0x4d8ad8=_0x372e50,_0x1d40a0=_0x429bbb[_0x4d8ad8(0x12f)]||_0x429bbb,_0x34c827=[],{rowCount:_0x49d94a}=this[_0x4d8ad8(0xf3)](_0x1d40a0,_0x99850e);if(_0x49d94a<=this[_0x4d8ad8(0x140)][_0x4d8ad8(0x13c)])return _0x34c827;const _0xd366eb=_0x99850e[_0x4d8ad8(0xd1)]();for(;_0xd366eb[_0x4d8ad8(0xe0)]>0x0;){if(this[_0x4d8ad8(0xcc)](_0x429bbb,_0x1d40a0,_0xd366eb)){const _0x5e95a7=_0x99850e[_0x4d8ad8(0x125)](_0x2887df=>!_0xd366eb[_0x4d8ad8(0xbc)](_0x2887df));_0x34c827[_0x4d8ad8(0x10f)](..._0x5e95a7);break;}if(!_0xd366eb[_0x4d8ad8(0x139)]())break;}return _0x34c827;}[_0x372e50(0xf3)](_0x561906,_0x2ee034){const _0x2a7091=_0x372e50;_0x561906[_0x2a7091(0xf9)]='',_0x2ee034[_0x2a7091(0xc0)](_0x2e431f=>{const _0x6ecfdd=_0x2a7091;if(_0x2e431f[_0x6ecfdd(0x12e)]){const _0x1a3f13=_0x2e431f[_0x6ecfdd(0x12e)][_0x6ecfdd(0x110)](!0x0);_0x561906[_0x6ecfdd(0x12a)](_0x1a3f13);}}),_0x561906[_0x2a7091(0x141)];const _0x2f8a97=_0x561906[_0x2a7091(0xc2)],_0x430b7d=[];return Array[_0x2a7091(0xc3)](_0x2f8a97)[_0x2a7091(0xc0)](_0x4a1894=>{const _0xe5d3b4=_0x2a7091,_0x3c33dc=_0x4a1894[_0xe5d3b4(0x142)]()[_0xe5d3b4(0x127)];_0x430b7d[_0xe5d3b4(0x103)](_0x390dc1=>Math[_0xe5d3b4(0xfa)](_0x390dc1-_0x3c33dc)<this[_0xe5d3b4(0x140)][_0xe5d3b4(0x11f)])||_0x430b7d[_0xe5d3b4(0x10f)](_0x3c33dc);}),{'rowCount':_0x430b7d[_0x2a7091(0xe0)]};}[_0x372e50(0xd4)](){const _0x277d22=_0x372e50,_0x5d9c28=document[_0x277d22(0x116)](_0x277d22(0xdd));return _0x5d9c28[_0x277d22(0x13e)]=this[_0x277d22(0x140)][_0x277d22(0x146)][_0x277d22(0xf7)],this[_0x277d22(0x140)][_0x277d22(0x146)][_0x277d22(0x14d)]&&_0x5d9c28[_0x277d22(0x11a)][_0x277d22(0xdb)](this[_0x277d22(0x140)][_0x277d22(0x146)][_0x277d22(0x14d)]),_0x5d9c28[_0x277d22(0xd5)]=_0x277d22(0xee),_0x5d9c28;}[_0x372e50(0xcc)](_0x30cf8f,_0x4c010b,_0x1e7a45){const _0x39969e=_0x372e50;this[_0x39969e(0xf3)](_0x4c010b,_0x1e7a45);const _0x59cc4e=this[_0x39969e(0xd4)]();_0x30cf8f[_0x39969e(0x12a)](_0x59cc4e),_0x30cf8f[_0x39969e(0x141)];const _0x2278e4=[..._0x4c010b[_0x39969e(0xc2)],_0x59cc4e],_0x481ae3=[];_0x2278e4[_0x39969e(0xc0)](_0x334e6d=>{const _0x5aab51=_0x39969e,_0x549f5a=_0x334e6d[_0x5aab51(0x142)]()[_0x5aab51(0x127)];_0x481ae3[_0x5aab51(0x103)](_0x4d7979=>Math[_0x5aab51(0xfa)](_0x4d7979-_0x549f5a)<this[_0x5aab51(0x140)][_0x5aab51(0x11f)])||_0x481ae3[_0x5aab51(0x10f)](_0x549f5a);});const _0xf24bda=_0x481ae3[_0x39969e(0xe0)];return _0x59cc4e[_0x39969e(0xfe)](),_0xf24bda<=this[_0x39969e(0x140)][_0x39969e(0x13c)];}[_0x372e50(0x121)](_0x1e78a7,_0x176cd3){const _0x5307e4=_0x372e50;this[_0x5307e4(0x108)][_0x5307e4(0x115)](),this[_0x5307e4(0xe2)][_0x5307e4(0x115)](),_0x1e78a7[_0x5307e4(0xc0)](_0x2509d4=>{const _0x4002b0=_0x5307e4;_0x176cd3[_0x4002b0(0xbc)](_0x2509d4)?this[_0x4002b0(0xe2)][_0x4002b0(0xdb)](_0x2509d4):this[_0x4002b0(0x108)][_0x4002b0(0xdb)](_0x2509d4);});}[_0x372e50(0xf6)](_0x35bd43){const _0x333eee=_0x372e50;if(_0x35bd43>0x0&&!this[_0x333eee(0xd0)]&&this[_0x333eee(0xf8)](),_0x35bd43>0x0&&this[_0x333eee(0xd0)]){const _0x11b5e8=''+this[_0x333eee(0x140)][_0x333eee(0xea)]+(_0x35bd43<0x63?_0x35bd43:'99');this[_0x333eee(0xd0)][_0x333eee(0x14a)]=_0x11b5e8;}this[_0x333eee(0x105)](),this[_0x333eee(0x11b)](),this[_0x333eee(0xe6)]();}[_0x372e50(0xd3)](_0xf305dd,_0x5c6348){const _0x236763=_0x372e50;this[_0x236763(0x121)](_0xf305dd,_0x5c6348),this[_0x236763(0xf6)](_0x5c6348[_0x236763(0xe0)]);}[_0x372e50(0xe9)](){const _0x499fbb=_0x372e50;this[_0x499fbb(0xfb)]&&_0x499fbb(0xfd)!=typeof IntersectionObserver&&(this[_0x499fbb(0xe3)]=new IntersectionObserver(_0x470979=>{const _0x34edc2=_0x499fbb;_0x470979[0x0][_0x34edc2(0x100)]&&this[_0x34edc2(0x109)]&&requestAnimationFrame(()=>{const _0x5665e5=_0x34edc2;this[_0x5665e5(0xf5)]();});},{'threshold':0.01,'rootMargin':_0x499fbb(0x123)}),this[_0x499fbb(0xe3)][_0x499fbb(0xe4)](this[_0x499fbb(0xfb)]));}[_0x372e50(0x14e)](){const _0x5936b0=_0x372e50;if(!this[_0x5936b0(0xfb)])return!0x1;if(!this[_0x5936b0(0xfb)][_0x5936b0(0xdf)])return!0x1;const _0x53f511=this[_0x5936b0(0xfb)][_0x5936b0(0x142)]();if(0x0===_0x53f511[_0x5936b0(0xc1)]||0x0===_0x53f511[_0x5936b0(0x13d)])return!0x1;const _0x11a090=window[_0x5936b0(0xcf)]||document[_0x5936b0(0xc7)][_0x5936b0(0x13b)],_0x5d38d0=window[_0x5936b0(0x133)]||document[_0x5936b0(0xc7)][_0x5936b0(0x128)],_0x25bd6f=0xc8;return _0x53f511[_0x5936b0(0x111)]>=-0xc8&&_0x53f511[_0x5936b0(0x127)]<=_0x11a090+_0x25bd6f&&_0x53f511[_0x5936b0(0x14c)]>=-0xc8&&_0x53f511[_0x5936b0(0xdc)]<=_0x5d38d0+_0x25bd6f;}}function _0x5af7(){const _0x314bdf=['_updateShowMoreButtonVisibility','_findTargetContainer','isVisible','_handleShowMoreButtonClick','rowDetectionTolerance','pointerEvents','_distributeChips','hidden','50px','9501200lsfpVu','filter','-9999px','top','clientWidth','parentElement','appendChild','setContainerElement','tagName','execute','element','_targetContainer','_createShowMoreBalloonPanelView','calculationContainer','absolute','innerWidth','5238904dixWiv','display','disconnect','300px','overflowChips','pop','querySelector','clientHeight','maxVisibleRows','height','className','disableAnimationOnEnter','_config','offsetWidth','getBoundingClientRect','position','border-box','showMoreButtonView','cssClasses','boxSizing','isOn','1843118tvcryp','label','hide','right','controlsButton','_isContainerVisible','includes','visibility','reorganizeChips','extendTemplate','forEach','width','children','from','_calculateContainerWidth','visible','destroy','documentElement','getComputedStyle','_makeAncestorsVisible','content','pin','_testButtonFit','_ancestorsToRestore','1iyOsRn','innerHeight','_showMoreButtonView','slice','render','_applyOverflowResults','_createMockButton','textContent','.ck-ai-chat','visible\x20!important','none','_createCalculationContainer','set','add','left','button','_showMoreBalloonPanelView','isConnected','length','_createContainerElements','_overflowChips','_intersectionObserver','observe','_locale','_repinBalloonPanel','block','opacity','_setupVisibilityObserver','showMoreLabelPrefix','_createShowMoreButtonView','20286540XkrdaQ','toLowerCase','+\x201','980175kFOHLj','zIndex','style','8933532fhVAZn','_renderChipsAndCountRows','setTemplate','_checkAndHandleOverflow','_updateOverflowUI','showMoreButton','_createShowMoreButton','innerHTML','abs','_containerElement','showMoreBalloon','undefined','remove','show','isIntersecting','_calculateOverflowInContainer','_bodyCollection','some','_parentView','_updateBalloonContent','div','auto','_visibleChips','_pendingCalculation','hideBalloonPanel','block\x20!important','7164388gvJjAZ','body','_applyCalculationStyles','push','cloneNode','bottom','_restoreAncestorVisibility','overflowContainer','showBalloonPanel','clear','createElement','5bORAtD','0px','ck-calculation-container','classList'];_0x5af7=function(){return _0x314bdf;};return _0x5af7();}
23
+ function _0x1f73(){const _0x5dcd64=['_containerElement','visible\x20!important','border-box','0px','_targetContainer','controlsButton','setContainerElement','show','execute','querySelector','documentElement','_intersectionObserver','boxSizing','getComputedStyle','clientWidth','innerWidth','9mJUBvX','style','2029050EidvJc','.ck-ai-chat','_createCalculationContainer','classList','some','_createShowMoreButtonView','_parentView','_createShowMoreBalloonPanelView','maxVisibleRows','+\x201','showMoreBalloon','_handleShowMoreButtonClick','calculationContainer','add','565453kgfVTw','showMoreButton','disconnect','_findTargetContainer','140316zgGCYD','-9999px','_setupVisibilityObserver','slice','opacity','remove','_bodyCollection','_calculateOverflowInContainer','isIntersecting','none','length','visible','ck-calculation-container','disableAnimationOnEnter','_applyOverflowResults','getBoundingClientRect','isOn','_isContainerVisible','_showMoreButtonView','_createShowMoreButton','div','showMoreButtonView','position','rowDetectionTolerance','width','cssClasses','cloneNode','block\x20!important','undefined','push','children','_updateShowMoreButtonVisibility','pop','_pendingCalculation','appendChild','clear','_createMockButton','textContent','label','1832650CDHAuA','1166mvZlpT','reorganizeChips','zIndex','render','from','isConnected','right','absolute','abs','content','visibility','offsetWidth','hideBalloonPanel','observe','_showMoreBalloonPanelView','set','height','_distributeChips','_ancestorsToRestore','button','_updateOverflowUI','hide','229321mwfctx','filter','pointerEvents','body','destroy','_calculateContainerWidth','3075140qPOUBN','_createContainerElements','3855yYmOno','isVisible','block','auto','display','parentElement','_overflowChips','_renderChipsAndCountRows','overflowContainer','overflowChips','setTemplate','_updateBalloonContent','element','forEach','toLowerCase','innerHTML','tagName','_applyCalculationStyles','hidden','_makeAncestorsVisible','40aEfmHK','pin','2012RFafgN','extendTemplate','left','top','50px','_locale','_restoreAncestorVisibility','innerHeight','createElement','showMoreLabelPrefix','includes','_testButtonFit','_checkAndHandleOverflow','clientHeight','_visibleChips','showBalloonPanel','6cOZAha','300px','className','_repinBalloonPanel','_config','bottom'];_0x1f73=function(){return _0x5dcd64;};return _0x1f73();}const _0x5a8b27=_0x1969;(function(_0x519701,_0x4bab05){const _0x2d5793=_0x1969,_0x58d934=_0x519701();while(!![]){try{const _0x46dbca=-parseInt(_0x2d5793(0x196))/0x1*(parseInt(_0x2d5793(0x1c4))/0x2)+parseInt(_0x2d5793(0x19e))/0x3*(-parseInt(_0x2d5793(0x1b4))/0x4)+parseInt(_0x2d5793(0x19c))/0x5+-parseInt(_0x2d5793(0x1dc))/0x6+-parseInt(_0x2d5793(0x1ea))/0x7*(-parseInt(_0x2d5793(0x1b2))/0x8)+parseInt(_0x2d5793(0x1da))/0x9*(-parseInt(_0x2d5793(0x17f))/0xa)+parseInt(_0x2d5793(0x180))/0xb*(parseInt(_0x2d5793(0x1ee))/0xc);if(_0x46dbca===_0x4bab05)break;else _0x58d934['push'](_0x58d934['shift']());}catch(_0xfb9cb6){_0x58d934['push'](_0x58d934['shift']());}}}(_0x1f73,0x624bf));function _0x1969(_0x306f07,_0x2a8b3e){const _0x1f73db=_0x1f73();return _0x1969=function(_0x196913,_0x21e163){_0x196913=_0x196913-0x173;let _0x57a0ff=_0x1f73db[_0x196913];return _0x57a0ff;},_0x1969(_0x306f07,_0x2a8b3e);}import{View as _0x297976,BalloonPanelView as _0x202223,ButtonView as _0xbcece7,clickOutsideHandler as _0x13521f}from'ckeditor5/src/ui.js';import{Collection as _0x595fb7}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},an=_0x5a8b27(0x1c5);export class AIChatChipsOverflowManager{[_0x5a8b27(0x1b9)];[_0x5a8b27(0x1c8)];[_0x5a8b27(0x1c2)];[_0x5a8b27(0x1a4)];[_0x5a8b27(0x200)]=null;[_0x5a8b27(0x18e)]=null;[_0x5a8b27(0x1ca)]=null;[_0x5a8b27(0x1f4)];[_0x5a8b27(0x1e2)]=null;[_0x5a8b27(0x1d5)]=null;[_0x5a8b27(0x179)]=!0x1;constructor(_0x3c9b41,_0x26f870,_0x5c89d3,_0x10b65d,_0x350f47){const _0x125804=_0x5a8b27;this[_0x125804(0x1b9)]=_0x3c9b41,this[_0x125804(0x1c2)]=_0x26f870,this[_0x125804(0x1c8)]={...hn,..._0x5c89d3,'cssClasses':{'controlsButton':'','calculationContainer':_0x125804(0x1fa),..._0x5c89d3[_0x125804(0x207)]}},this[_0x125804(0x1a4)]=new _0x595fb7(),this[_0x125804(0x1f4)]=_0x10b65d,this[_0x125804(0x1e2)]=_0x350f47||null;}[_0x5a8b27(0x1d0)](_0x59e15d){const _0x17d003=_0x5a8b27;this[_0x17d003(0x1d5)]&&(this[_0x17d003(0x1d5)][_0x17d003(0x1ec)](),this[_0x17d003(0x1d5)]=null),this[_0x17d003(0x1ca)]=_0x59e15d,this[_0x17d003(0x1f0)]();}get[_0x5a8b27(0x203)](){const _0x12a737=_0x5a8b27;return this[_0x12a737(0x200)];}get[_0x5a8b27(0x1a7)](){const _0x236b0b=_0x5a8b27;return this[_0x236b0b(0x1a4)];}[_0x5a8b27(0x181)](){requestAnimationFrame(()=>{const _0x1a3a50=_0x1969;this[_0x1a3a50(0x1c0)]();});}[_0x5a8b27(0x1c3)](){const _0x54b887=_0x5a8b27;this[_0x54b887(0x200)]&&this[_0x54b887(0x18e)]&&(this[_0x54b887(0x1a9)](),this[_0x54b887(0x200)][_0x54b887(0x1fe)]=!0x0,this[_0x54b887(0x18e)][_0x54b887(0x1d1)](),this[_0x54b887(0x18e)][_0x54b887(0x1b3)]({'target':this[_0x54b887(0x200)][_0x54b887(0x1aa)],'limiter':document[_0x54b887(0x1d3)](_0x54b887(0x1dd))}));}[_0x5a8b27(0x18c)](){const _0x44a2a2=_0x5a8b27;this[_0x44a2a2(0x200)]&&this[_0x44a2a2(0x18e)]&&(this[_0x44a2a2(0x200)][_0x44a2a2(0x1fe)]=!0x1,this[_0x44a2a2(0x18e)][_0x44a2a2(0x195)]());}[_0x5a8b27(0x17b)](){const _0x4fbf06=_0x5a8b27;this[_0x4fbf06(0x1a4)][_0x4fbf06(0x17b)](),this[_0x4fbf06(0x18c)](),this[_0x4fbf06(0x177)](),this[_0x4fbf06(0x200)]&&(this[_0x4fbf06(0x200)][_0x4fbf06(0x17e)]=''),this[_0x4fbf06(0x18e)]&&this[_0x4fbf06(0x18e)][_0x4fbf06(0x189)][_0x4fbf06(0x17b)]();}[_0x5a8b27(0x19a)](){const _0x154423=_0x5a8b27;this[_0x154423(0x1d5)]&&(this[_0x154423(0x1d5)][_0x154423(0x1ec)](),this[_0x154423(0x1d5)]=null),this[_0x154423(0x200)]&&(this[_0x154423(0x200)][_0x154423(0x19a)](),this[_0x154423(0x200)]=null),this[_0x154423(0x18e)]&&(this[_0x154423(0x18e)][_0x154423(0x19a)](),this[_0x154423(0x18e)]=null);}[_0x5a8b27(0x1c0)](){const _0x186698=_0x5a8b27;if(!this[_0x186698(0x1ca)])return;if(!this[_0x186698(0x1ff)]())return void(this[_0x186698(0x179)]=!0x0);this[_0x186698(0x179)]=!0x1;const _0x3ce11b=[...this[_0x186698(0x1c2)],...this[_0x186698(0x1a4)]],_0x1c25a2=this[_0x186698(0x1de)](),_0x4e4afd=this[_0x186698(0x1f5)](_0x1c25a2,_0x3ce11b),_0xdc692b=_0x1c25a2[_0x186698(0x192)];_0xdc692b&&this[_0x186698(0x1ba)](_0xdc692b),_0x1c25a2[_0x186698(0x1f3)](),this[_0x186698(0x1fc)](_0x3ce11b,_0x4e4afd);}[_0x5a8b27(0x201)](){const _0x7cb62d=_0x5a8b27;this[_0x7cb62d(0x200)]=this[_0x7cb62d(0x1e1)](),this[_0x7cb62d(0x18e)]=this[_0x7cb62d(0x1e3)](),this[_0x7cb62d(0x200)][_0x7cb62d(0x183)](),this[_0x7cb62d(0x1ca)][_0x7cb62d(0x17a)](this[_0x7cb62d(0x200)][_0x7cb62d(0x1aa)]),this[_0x7cb62d(0x200)]['on'](_0x7cb62d(0x1d2),()=>{const _0x3eb1cd=_0x7cb62d;this[_0x3eb1cd(0x1e7)]();}),_0x13521f({'emitter':this[_0x7cb62d(0x18e)],'contextElements':[this[_0x7cb62d(0x18e)][_0x7cb62d(0x1aa)],this[_0x7cb62d(0x200)][_0x7cb62d(0x1aa)]],'callback':()=>this[_0x7cb62d(0x18c)](),'activator':()=>this[_0x7cb62d(0x200)][_0x7cb62d(0x1fe)]});}[_0x5a8b27(0x1e1)](){const _0x2ed94f=_0x5a8b27,_0x1803ce=new _0xbcece7(this[_0x2ed94f(0x1b9)]);_0x1803ce[_0x2ed94f(0x18f)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x16186b=[this[_0x2ed94f(0x1c8)][_0x2ed94f(0x207)][_0x2ed94f(0x1eb)]];return this[_0x2ed94f(0x1c8)][_0x2ed94f(0x207)][_0x2ed94f(0x1cf)]&&_0x16186b[_0x2ed94f(0x175)](this[_0x2ed94f(0x1c8)][_0x2ed94f(0x207)][_0x2ed94f(0x1cf)]),_0x1803ce[_0x2ed94f(0x1b5)]({'attributes':{'class':_0x16186b}}),_0x1803ce;}[_0x5a8b27(0x1e3)](){const _0x359c7d=_0x5a8b27,_0x23641d=new _0x202223(this[_0x359c7d(0x1b9)]);return _0x23641d[_0x359c7d(0x1b5)]({'attributes':{'class':this[_0x359c7d(0x1c8)][_0x359c7d(0x207)][_0x359c7d(0x1e6)]}}),this[_0x359c7d(0x1f4)][_0x359c7d(0x1e9)](_0x23641d),_0x23641d;}[_0x5a8b27(0x1a9)](){const _0x578d6a=_0x5a8b27;if(this[_0x578d6a(0x18e)]&&(this[_0x578d6a(0x18e)][_0x578d6a(0x189)][_0x578d6a(0x17b)](),this[_0x578d6a(0x1a4)][_0x578d6a(0x1f8)]>0x0)){this[_0x578d6a(0x1a4)][_0x578d6a(0x1ab)](_0x4349dd=>{const _0x27a573=_0x578d6a;_0x4349dd[_0x27a573(0x1fb)]();});const _0x14d65f=new _0x297976(this[_0x578d6a(0x1b9)]);_0x14d65f[_0x578d6a(0x1a8)]({'tag':_0x578d6a(0x202),'attributes':{'class':this[_0x578d6a(0x1c8)][_0x578d6a(0x207)][_0x578d6a(0x1a6)]},'children':this[_0x578d6a(0x1a4)]}),this[_0x578d6a(0x18e)][_0x578d6a(0x189)][_0x578d6a(0x1e9)](_0x14d65f);}}[_0x5a8b27(0x1e7)](){const _0x42f6cd=_0x5a8b27;this[_0x42f6cd(0x200)][_0x42f6cd(0x1fe)]?this[_0x42f6cd(0x18c)]():this[_0x42f6cd(0x1c3)]();}[_0x5a8b27(0x177)](){const _0x226fb2=_0x5a8b27,_0x1af79c=this[_0x226fb2(0x1a4)][_0x226fb2(0x1f8)]>0x0;this[_0x226fb2(0x200)]?.[_0x226fb2(0x1aa)]&&(this[_0x226fb2(0x200)][_0x226fb2(0x1aa)][_0x226fb2(0x1db)][_0x226fb2(0x1a2)]=_0x1af79c?'':_0x226fb2(0x1f7));}[_0x5a8b27(0x1c7)](){const _0x1bf898=_0x5a8b27;this[_0x1bf898(0x200)]?.[_0x1bf898(0x1fe)]&&this[_0x1bf898(0x18e)]?.[_0x1bf898(0x19f)]&&this[_0x1bf898(0x200)][_0x1bf898(0x1aa)]&&this[_0x1bf898(0x18e)][_0x1bf898(0x1b3)]({'target':this[_0x1bf898(0x200)][_0x1bf898(0x1aa)],'limiter':document[_0x1bf898(0x1d3)](_0x1bf898(0x1dd))});}[_0x5a8b27(0x1ed)](_0xf8f48c){const _0x1d6e83=_0x5a8b27,_0x20d30f=this[_0x1d6e83(0x1ca)]?.[_0x1d6e83(0x1ae)][_0x1d6e83(0x1ac)]()||_0x1d6e83(0x202),_0x1117f3=this[_0x1d6e83(0x1ca)]?.[_0x1d6e83(0x1df)];if(_0x1117f3){const _0xffe9aa=_0x1117f3[0x0]||'',_0x1a272f=_0xf8f48c[_0x1d6e83(0x1d3)]('.'+_0xffe9aa),_0x592ba4=_0xf8f48c[_0x1d6e83(0x1d3)](_0x20d30f);return _0x1a272f||_0x592ba4||_0xf8f48c;}return _0xf8f48c[_0x1d6e83(0x1d3)](_0x20d30f)||_0xf8f48c;}[_0x5a8b27(0x19b)](){const _0x189c17=_0x5a8b27,_0x7dedde=this[_0x189c17(0x1e2)]?.[_0x189c17(0x1aa)]||this[_0x189c17(0x1ca)];if(!_0x7dedde)return an;const _0x41ced5=window[_0x189c17(0x1d7)](_0x7dedde)[_0x189c17(0x206)];if(_0x189c17(0x1a1)===_0x41ced5||_0x189c17(0x1cd)===_0x41ced5||!_0x41ced5){const _0x27f14b=_0x7dedde[_0x189c17(0x1a3)];if(_0x27f14b){const _0x5643d9=window[_0x189c17(0x1d7)](_0x27f14b);return _0x189c17(0x1a1)!==_0x5643d9[_0x189c17(0x206)]?_0x5643d9[_0x189c17(0x206)]:an;}return an;}return _0x41ced5;}[_0x5a8b27(0x1af)](_0x38b547,_0x49b6eb){const _0x160e36=_0x5a8b27;this[_0x160e36(0x1c8)][_0x160e36(0x207)][_0x160e36(0x1e8)]&&_0x38b547[_0x160e36(0x1df)][_0x160e36(0x1e9)](this[_0x160e36(0x1c8)][_0x160e36(0x207)][_0x160e36(0x1e8)]),_0x38b547[_0x160e36(0x1db)][_0x160e36(0x206)]=_0x49b6eb,_0x38b547[_0x160e36(0x1db)][_0x160e36(0x204)]=_0x160e36(0x187),_0x38b547[_0x160e36(0x1db)][_0x160e36(0x1b7)]=_0x160e36(0x1ef),_0x38b547[_0x160e36(0x1db)][_0x160e36(0x1b6)]=_0x160e36(0x1ef),_0x38b547[_0x160e36(0x1db)][_0x160e36(0x1f2)]='0',_0x38b547[_0x160e36(0x1db)][_0x160e36(0x198)]=_0x160e36(0x1f7),_0x38b547[_0x160e36(0x1db)][_0x160e36(0x182)]='-1',_0x38b547[_0x160e36(0x1db)][_0x160e36(0x18a)]=_0x160e36(0x1cb),_0x38b547[_0x160e36(0x1db)][_0x160e36(0x1a2)]=_0x160e36(0x173),_0x38b547[_0x160e36(0x1db)][_0x160e36(0x1d6)]=_0x160e36(0x1cc);}[_0x5a8b27(0x1ba)](_0x402ca4){const _0x3968cd=_0x5a8b27;_0x402ca4[_0x3968cd(0x1ab)](({element:_0x4b10b8,originalDisplay:_0x56ae2a,originalVisibility:_0x10232c})=>{const _0x50a72f=_0x3968cd;_0x4b10b8[_0x50a72f(0x1db)][_0x50a72f(0x1a2)]=_0x56ae2a,_0x4b10b8[_0x50a72f(0x1db)][_0x50a72f(0x18a)]=_0x10232c;});}[_0x5a8b27(0x1b1)](_0x4bfac8){const _0x1ce5d0=_0x5a8b27,_0x4447a4=[];let _0x2713f6=_0x4bfac8;for(;_0x2713f6&&_0x2713f6!==document[_0x1ce5d0(0x199)];){const _0x3192e4=window[_0x1ce5d0(0x1d7)](_0x2713f6);_0x1ce5d0(0x1f7)!==_0x3192e4[_0x1ce5d0(0x1a2)]&&_0x1ce5d0(0x1b0)!==_0x3192e4[_0x1ce5d0(0x18a)]||(_0x4447a4[_0x1ce5d0(0x175)]({'element':_0x2713f6,'originalDisplay':_0x2713f6[_0x1ce5d0(0x1db)][_0x1ce5d0(0x1a2)],'originalVisibility':_0x2713f6[_0x1ce5d0(0x1db)][_0x1ce5d0(0x18a)]}),_0x2713f6[_0x1ce5d0(0x1db)][_0x1ce5d0(0x1a2)]=_0x1ce5d0(0x1a0),_0x2713f6[_0x1ce5d0(0x1db)][_0x1ce5d0(0x18a)]=_0x1ce5d0(0x1f9)),_0x2713f6=_0x2713f6[_0x1ce5d0(0x1a3)];}return _0x4447a4;}[_0x5a8b27(0x19d)](){const _0x3a4624=_0x5a8b27;let _0x166ce3,_0x2d6898;return this[_0x3a4624(0x1e2)]?.[_0x3a4624(0x1aa)]?(_0x166ce3=this[_0x3a4624(0x1e2)][_0x3a4624(0x1aa)][_0x3a4624(0x208)](!0x0),_0x2d6898=this[_0x3a4624(0x1ed)](_0x166ce3)):(_0x166ce3=document[_0x3a4624(0x1bc)](_0x3a4624(0x202)),_0x2d6898=_0x166ce3),{'calculationContainer':_0x166ce3,'targetContainer':_0x2d6898};}[_0x5a8b27(0x1de)](){const _0x23d7a1=_0x5a8b27,{calculationContainer:_0x1ca691,targetContainer:_0x39947f}=this[_0x23d7a1(0x19d)](),_0x338314=this[_0x23d7a1(0x19b)]();this[_0x23d7a1(0x1af)](_0x1ca691,_0x338314);const _0x5a0c3f=this[_0x23d7a1(0x1e2)]?.[_0x23d7a1(0x1aa)]||this[_0x23d7a1(0x1ca)],_0x204fc1=_0x5a0c3f?.[_0x23d7a1(0x1a3)];_0x204fc1?_0x204fc1[_0x23d7a1(0x17a)](_0x1ca691):document[_0x23d7a1(0x199)][_0x23d7a1(0x17a)](_0x1ca691),_0x1ca691[_0x23d7a1(0x1ce)]=_0x39947f;const _0x4de999=this[_0x23d7a1(0x1b1)](_0x204fc1||null);return _0x1ca691[_0x23d7a1(0x18b)],_0x1ca691[_0x23d7a1(0x192)]=_0x4de999,_0x1ca691;}[_0x5a8b27(0x1f5)](_0x299d17,_0x3eb88a){const _0x468ab9=_0x5a8b27,_0x593b4e=_0x299d17[_0x468ab9(0x1ce)]||_0x299d17,_0xdb0d8b=[],{rowCount:_0x26d9ab}=this[_0x468ab9(0x1a5)](_0x593b4e,_0x3eb88a);if(_0x26d9ab<=this[_0x468ab9(0x1c8)][_0x468ab9(0x1e4)])return _0xdb0d8b;const _0x212850=_0x3eb88a[_0x468ab9(0x1f1)]();for(;_0x212850[_0x468ab9(0x1f8)]>0x0;){if(this[_0x468ab9(0x1bf)](_0x299d17,_0x593b4e,_0x212850)){const _0x5f1d49=_0x3eb88a[_0x468ab9(0x197)](_0x5a6f45=>!_0x212850[_0x468ab9(0x1be)](_0x5a6f45));_0xdb0d8b[_0x468ab9(0x175)](..._0x5f1d49);break;}if(!_0x212850[_0x468ab9(0x178)]())break;}return _0xdb0d8b;}[_0x5a8b27(0x1a5)](_0x1573be,_0x552cad){const _0x393cc1=_0x5a8b27;_0x1573be[_0x393cc1(0x1ad)]='',_0x552cad[_0x393cc1(0x1ab)](_0x149e56=>{const _0x1f5747=_0x393cc1;if(_0x149e56[_0x1f5747(0x1aa)]){const _0x260b18=_0x149e56[_0x1f5747(0x1aa)][_0x1f5747(0x208)](!0x0);_0x1573be[_0x1f5747(0x17a)](_0x260b18);}}),_0x1573be[_0x393cc1(0x18b)];const _0x1007e7=_0x1573be[_0x393cc1(0x176)],_0x4d3528=[];return Array[_0x393cc1(0x184)](_0x1007e7)[_0x393cc1(0x1ab)](_0x59c7fb=>{const _0x136fa2=_0x393cc1,_0x58b677=_0x59c7fb[_0x136fa2(0x1fd)]()[_0x136fa2(0x1b7)];_0x4d3528[_0x136fa2(0x1e0)](_0x5a8509=>Math[_0x136fa2(0x188)](_0x5a8509-_0x58b677)<this[_0x136fa2(0x1c8)][_0x136fa2(0x205)])||_0x4d3528[_0x136fa2(0x175)](_0x58b677);}),{'rowCount':_0x4d3528[_0x393cc1(0x1f8)]};}[_0x5a8b27(0x17c)](){const _0x105865=_0x5a8b27,_0x43a31d=document[_0x105865(0x1bc)](_0x105865(0x193));return _0x43a31d[_0x105865(0x1c6)]=this[_0x105865(0x1c8)][_0x105865(0x207)][_0x105865(0x1eb)],this[_0x105865(0x1c8)][_0x105865(0x207)][_0x105865(0x1cf)]&&_0x43a31d[_0x105865(0x1df)][_0x105865(0x1e9)](this[_0x105865(0x1c8)][_0x105865(0x207)][_0x105865(0x1cf)]),_0x43a31d[_0x105865(0x17d)]=_0x105865(0x1e5),_0x43a31d;}[_0x5a8b27(0x1bf)](_0xe17c06,_0x1e40f6,_0x162d04){const _0x8a2bf2=_0x5a8b27;this[_0x8a2bf2(0x1a5)](_0x1e40f6,_0x162d04);const _0x150635=this[_0x8a2bf2(0x17c)]();_0xe17c06[_0x8a2bf2(0x17a)](_0x150635),_0xe17c06[_0x8a2bf2(0x18b)];const _0x9e5434=[..._0x1e40f6[_0x8a2bf2(0x176)],_0x150635],_0x5a1b15=[];_0x9e5434[_0x8a2bf2(0x1ab)](_0x1e0dfe=>{const _0xb92442=_0x8a2bf2,_0x1951aa=_0x1e0dfe[_0xb92442(0x1fd)]()[_0xb92442(0x1b7)];_0x5a1b15[_0xb92442(0x1e0)](_0x2b94b1=>Math[_0xb92442(0x188)](_0x2b94b1-_0x1951aa)<this[_0xb92442(0x1c8)][_0xb92442(0x205)])||_0x5a1b15[_0xb92442(0x175)](_0x1951aa);});const _0x47d584=_0x5a1b15[_0x8a2bf2(0x1f8)];return _0x150635[_0x8a2bf2(0x1f3)](),_0x47d584<=this[_0x8a2bf2(0x1c8)][_0x8a2bf2(0x1e4)];}[_0x5a8b27(0x191)](_0x32c4dc,_0x1cb618){const _0x25333d=_0x5a8b27;this[_0x25333d(0x1c2)][_0x25333d(0x17b)](),this[_0x25333d(0x1a4)][_0x25333d(0x17b)](),_0x32c4dc[_0x25333d(0x1ab)](_0x58a270=>{const _0x9322f2=_0x25333d;_0x1cb618[_0x9322f2(0x1be)](_0x58a270)?this[_0x9322f2(0x1a4)][_0x9322f2(0x1e9)](_0x58a270):this[_0x9322f2(0x1c2)][_0x9322f2(0x1e9)](_0x58a270);});}[_0x5a8b27(0x194)](_0x4c9357){const _0xd35f49=_0x5a8b27;if(_0x4c9357>0x0&&!this[_0xd35f49(0x200)]&&this[_0xd35f49(0x201)](),_0x4c9357>0x0&&this[_0xd35f49(0x200)]){const _0x15f431=''+this[_0xd35f49(0x1c8)][_0xd35f49(0x1bd)]+(_0x4c9357<0x63?_0x4c9357:'99');this[_0xd35f49(0x200)][_0xd35f49(0x17e)]=_0x15f431;}this[_0xd35f49(0x1a9)](),this[_0xd35f49(0x177)](),this[_0xd35f49(0x1c7)]();}[_0x5a8b27(0x1fc)](_0x1337b0,_0x2be473){const _0x4bbfe7=_0x5a8b27;this[_0x4bbfe7(0x191)](_0x1337b0,_0x2be473),this[_0x4bbfe7(0x194)](_0x2be473[_0x4bbfe7(0x1f8)]);}[_0x5a8b27(0x1f0)](){const _0x46f8e4=_0x5a8b27;this[_0x46f8e4(0x1ca)]&&_0x46f8e4(0x174)!=typeof IntersectionObserver&&(this[_0x46f8e4(0x1d5)]=new IntersectionObserver(_0x46238f=>{const _0x55c1cd=_0x46f8e4;_0x46238f[0x0][_0x55c1cd(0x1f6)]&&this[_0x55c1cd(0x179)]&&requestAnimationFrame(()=>{const _0xf25ed3=_0x55c1cd;this[_0xf25ed3(0x1c0)]();});},{'threshold':0.01,'rootMargin':_0x46f8e4(0x1b8)}),this[_0x46f8e4(0x1d5)][_0x46f8e4(0x18d)](this[_0x46f8e4(0x1ca)]));}[_0x5a8b27(0x1ff)](){const _0x289d1c=_0x5a8b27;if(!this[_0x289d1c(0x1ca)])return!0x1;if(!this[_0x289d1c(0x1ca)][_0x289d1c(0x185)])return!0x1;const _0x4824e3=this[_0x289d1c(0x1ca)][_0x289d1c(0x1fd)]();if(0x0===_0x4824e3[_0x289d1c(0x206)]||0x0===_0x4824e3[_0x289d1c(0x190)])return!0x1;const _0x55c5f8=window[_0x289d1c(0x1bb)]||document[_0x289d1c(0x1d4)][_0x289d1c(0x1c1)],_0x10cc93=window[_0x289d1c(0x1d9)]||document[_0x289d1c(0x1d4)][_0x289d1c(0x1d8)],_0x38291f=0xc8;return _0x4824e3[_0x289d1c(0x1c9)]>=-0xc8&&_0x4824e3[_0x289d1c(0x1b7)]<=_0x55c5f8+_0x38291f&&_0x4824e3[_0x289d1c(0x186)]>=-0xc8&&_0x4824e3[_0x289d1c(0x1b6)]<=_0x10cc93+_0x38291f;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0xd3ff(_0x1f5425,_0x4bdf74){const _0x4fb278=_0x4fb2();return _0xd3ff=function(_0xd3ffa3,_0x39991f){_0xd3ffa3=_0xd3ffa3-0x1e5;let _0x3ed05f=_0x4fb278[_0xd3ffa3];return _0x3ed05f;},_0xd3ff(_0x1f5425,_0x4bdf74);}const _0x4894a8=_0xd3ff;(function(_0x3dc18e,_0x3063f7){const _0xf65c8d=_0xd3ff,_0x5a1776=_0x3dc18e();while(!![]){try{const _0xd4efcb=parseInt(_0xf65c8d(0x201))/0x1*(-parseInt(_0xf65c8d(0x211))/0x2)+-parseInt(_0xf65c8d(0x216))/0x3*(parseInt(_0xf65c8d(0x1ee))/0x4)+parseInt(_0xf65c8d(0x21c))/0x5+parseInt(_0xf65c8d(0x1e7))/0x6+parseInt(_0xf65c8d(0x220))/0x7+parseInt(_0xf65c8d(0x1ed))/0x8+parseInt(_0xf65c8d(0x225))/0x9;if(_0xd4efcb===_0x3063f7)break;else _0x5a1776['push'](_0x5a1776['shift']());}catch(_0x31eb27){_0x5a1776['push'](_0x5a1776['shift']());}}}(_0x4fb2,0x9e54e));function _0x4fb2(){const _0x43dff1=['_isAnimationOnEnterEnabled','document','3968920uhzJNf','slice','_handleAnimationEndOnce','locale','2280509msgFKF','ck-hidden','lastIndexOf','tooltip','uiId','727893ywUnxG','_createTemplateChildren','animationend','3073932wMSKdu','remove','ck-ai-chat-context-chip_wide','ck-ai-chat-context-chip_document','fire','element','4281272mVrftV','3850568TyAObf','webkitAnimationEnd','ck-ai-chat-context-controls__chip-tooltip','_createIconView','bind','readonly','disableAnimationOnEnter','span','selection','_initializeProperties','small','itemType','add','bindTemplate','ck-ai-chat-context-chip__label','_setupRemoveButtonEvent','_setupTemplate','removeEventListener','isVisible','1LgerhS','set','label','classList','content','extendTemplate','_createLabelElement','length','_createTemplateAttributes','ck-ai-chat-context-chip','type','removeContextItemChip','ck-ai-chat-context-chip_new-chip','setTemplate','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','_createLoaderIcon','1273522pwENmD','div','addEventListener','_createRemoveButton','render','3nGNYSA','ck-ai-chat-context-chip__type-icon','isLoading','execute'];_0x4fb2=function(){return _0x43dff1;};return _0x4fb2();}import{ButtonView as _0x61a9f,IconView as _0x53b27f}from'ckeditor5/src/ui.js';import{IconClose as _0x465e8d,IconDocument as _0x4a17dc,IconFileUpload as _0x474fbb,IconLink as _0x17f3f1,IconSelection as _0x1e64a3}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x24b222}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x1e7fd4}from'../../../aicore/ui/aispinner.js';const xn={'file':_0x474fbb,'document':_0x4a17dc,'web-resource':_0x17f3f1,'text':_0x474fbb,'selection':_0x1e64a3,'mcp-tool-context':_0x4a17dc},bn=_0x4894a8(0x20a),wn=_0x4894a8(0x1e9),Tn=_0x4894a8(0x1ea),En=_0x4894a8(0x1fc),fn=_0x4894a8(0x217),An=_0x4894a8(0x1f0),Cn='n';export class AIChatContextItemButtonView extends _0x61a9f{constructor(_0x5657bc,_0x54b9ea,_0x4c6751,_0x35d46a,_0x3bf41a=!0x1){const _0x3c9b9d=_0x4894a8;super(_0x5657bc),this[_0x3c9b9d(0x21a)]=_0x35d46a,this[_0x3c9b9d(0x1f7)](_0x54b9ea,_0x4c6751,_0x3bf41a),this[_0x3c9b9d(0x1fe)]();}[_0x4894a8(0x215)](){const _0x2a3826=_0x4894a8;super[_0x2a3826(0x215)](),this[_0x2a3826(0x21a)]&&this[_0x2a3826(0x1ec)]&&(this[_0x2a3826(0x1ec)][_0x2a3826(0x204)][_0x2a3826(0x1fa)](_0x2a3826(0x20d)),this[_0x2a3826(0x21e)](this[_0x2a3826(0x1ec)],()=>{const _0x11d269=_0x2a3826;this[_0x11d269(0x1ec)]&&this[_0x11d269(0x1ec)][_0x11d269(0x204)][_0x11d269(0x1e8)](_0x11d269(0x20d));}));}[_0x4894a8(0x1f4)](){const _0x32a094=_0x4894a8;this[_0x32a094(0x21a)]=!0x1,this[_0x32a094(0x1ec)]&&this[_0x32a094(0x1ec)][_0x32a094(0x204)][_0x32a094(0x1e8)](_0x32a094(0x20d));}[_0x4894a8(0x1f7)](_0x596d17,_0x473a8e,_0x423842){const _0xbd7194=_0x4894a8;this[_0xbd7194(0x202)](_0xbd7194(0x203),_0x596d17[_0xbd7194(0x203)]),this[_0xbd7194(0x202)](_0xbd7194(0x223),!0x0),this[_0xbd7194(0x202)](_0xbd7194(0x1f9),_0x596d17[_0xbd7194(0x20b)]),this[_0xbd7194(0x202)]('id',_0x596d17[_0xbd7194(0x224)]),this[_0xbd7194(0x202)](_0xbd7194(0x1f3),_0x473a8e),this[_0xbd7194(0x202)](_0xbd7194(0x218),_0x423842);}[_0x4894a8(0x1fe)](){const _0x400bcc=_0x4894a8,_0x4975d1=this[_0x400bcc(0x1f1)](),_0x5271be=this[_0x400bcc(0x214)](),_0x12758e=this[_0x400bcc(0x1fb)];this[_0x400bcc(0x20e)]({'tag':_0x400bcc(0x212),'attributes':this[_0x400bcc(0x209)](_0x12758e),'children':this[_0x400bcc(0x1e5)](_0x4975d1,_0x5271be,_0x12758e)});}[_0x4894a8(0x209)](_0x1220f7){const _0x5f2778=_0x4894a8;return{'class':[bn,_0x1220f7['if'](_0x5f2778(0x1f9),Tn,_0x17a48c=>_0x5f2778(0x21b)==_0x17a48c),_0x1220f7['if'](_0x5f2778(0x1f9),wn,_0x3b69d3=>_0x5f2778(0x1f6)==_0x3b69d3)],'data-cke-tooltip-text':_0x1220f7['to'](_0x5f2778(0x203),In),'data-cke-tooltip-position':Cn,'data-cke-tooltip-class':An};}[_0x4894a8(0x1e5)](_0x126942,_0x56d9fc,_0x16a20a){const _0x49e4be=_0x4894a8,_0x5d077e=this[_0x49e4be(0x207)](_0x16a20a),_0xeaa3bd=this[_0x49e4be(0x210)]();return this[_0x49e4be(0x1f3)]?[_0x126942,_0x5d077e]:[_0x126942,_0xeaa3bd,_0x5d077e,_0x56d9fc];}[_0x4894a8(0x207)](_0x159170){const _0x2d6063=_0x4894a8;return{'tag':_0x2d6063(0x1f5),'attributes':{'class':En},'children':[{'text':_0x159170['to'](_0x2d6063(0x203))}]};}[_0x4894a8(0x214)](){const _0x24bef7=_0x4894a8,_0x501aab=new _0x61a9f(this[_0x24bef7(0x21f)]);return _0x501aab[_0x24bef7(0x202)]({'label':_0x24b222(this[_0x24bef7(0x21f)],_0x24bef7(0x20f)),'icon':_0x465e8d}),this[_0x24bef7(0x1fd)](_0x501aab),_0x501aab;}[_0x4894a8(0x1fd)](_0x1da8d0){const _0x31c29f=_0x4894a8;_0x1da8d0['on'](_0x31c29f(0x219),()=>{const _0x27df59=_0x31c29f;this[_0x27df59(0x1eb)](_0x27df59(0x20c),this['id']);});}[_0x4894a8(0x1f1)](){const _0x5d1a60=_0x4894a8,_0x45b159=this[_0x5d1a60(0x1fb)],_0x10931c=new _0x53b27f();return _0x10931c[_0x5d1a60(0x205)]=xn[this[_0x5d1a60(0x1f9)]],_0x10931c[_0x5d1a60(0x206)]({'attributes':{'class':[fn,_0x45b159['if'](_0x5d1a60(0x218),_0x5d1a60(0x221),_0x2e2079=>_0x2e2079)]}}),_0x10931c;}[_0x4894a8(0x21e)](_0x3a9c57,_0x503372){const _0x2aecb8=_0x4894a8;if(!_0x3a9c57)return;const _0x3c696c=()=>{const _0x119b61=_0xd3ff;_0x503372(),_0x3a9c57[_0x119b61(0x1ff)](_0x119b61(0x1e6),_0x3c696c),_0x3a9c57[_0x119b61(0x1ff)](_0x119b61(0x1ef),_0x3c696c);};_0x3a9c57[_0x2aecb8(0x213)](_0x2aecb8(0x1e6),_0x3c696c),_0x3a9c57[_0x2aecb8(0x213)](_0x2aecb8(0x1ef),_0x3c696c);}[_0x4894a8(0x210)](){const _0x5a827b=_0x4894a8,_0x39f47b=new _0x1e7fd4(_0x5a827b(0x1f8));return _0x39f47b[_0x5a827b(0x1f2)](_0x5a827b(0x200))['to'](this,_0x5a827b(0x218),_0x483e94=>_0x483e94),_0x39f47b;}}function In(_0x116455){const _0x148678=_0x4894a8;if(!_0x116455)return _0x116455;if(_0x116455[_0x148678(0x208)]<=0x78)return _0x116455;const _0x261f9f=_0x116455[_0x148678(0x21d)](0x0,0x78),_0xa949f6=_0x261f9f[_0x148678(0x222)]('\x20');return(_0xa949f6>0x0?_0x261f9f[_0x148678(0x21d)](0x0,_0xa949f6):_0x261f9f)+'…';}
23
+ const _0x5f3e13=_0x82f5;function _0x82f5(_0x1c2889,_0x34ded9){const _0x169812=_0x1698();return _0x82f5=function(_0x82f58e,_0x951928){_0x82f58e=_0x82f58e-0x150;let _0x4e8181=_0x169812[_0x82f58e];return _0x4e8181;},_0x82f5(_0x1c2889,_0x34ded9);}(function(_0x47ad07,_0x1e5e92){const _0xd087a1=_0x82f5,_0x2876e9=_0x47ad07();while(!![]){try{const _0x316800=parseInt(_0xd087a1(0x186))/0x1+-parseInt(_0xd087a1(0x15f))/0x2*(parseInt(_0xd087a1(0x151))/0x3)+-parseInt(_0xd087a1(0x179))/0x4+parseInt(_0xd087a1(0x17d))/0x5*(-parseInt(_0xd087a1(0x17c))/0x6)+parseInt(_0xd087a1(0x16b))/0x7*(-parseInt(_0xd087a1(0x157))/0x8)+parseInt(_0xd087a1(0x173))/0x9+-parseInt(_0xd087a1(0x177))/0xa*(-parseInt(_0xd087a1(0x159))/0xb);if(_0x316800===_0x1e5e92)break;else _0x2876e9['push'](_0x2876e9['shift']());}catch(_0x5e3940){_0x2876e9['push'](_0x2876e9['shift']());}}}(_0x1698,0x87db2));import{ButtonView as _0x112990,IconView as _0x3b325c}from'ckeditor5/src/ui.js';import{IconClose as _0x536803,IconDocument as _0x4d599a,IconFileUpload as _0x44d9a2,IconLink as _0x2fbb25,IconSelection as _0x8372e2}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x256fa5}from'../../../aicore/utils/common-translations.js';function _0x1698(){const _0x577838=['ck-hidden','webkitAnimationEnd','isVisible','locale','_createRemoveButton','document','type','extendTemplate','_initializeProperties','3HvytpK','readonly','disableAnimationOnEnter','ck-ai-chat-context-chip_document','_isAnimationOnEnterEnabled','bindTemplate','265656PKaiBq','_setupTemplate','9613538lRHGYa','selection','_createLabelElement','ck-ai-chat-context-chip_new-chip','ck-ai-chat-context-chip_wide','itemType','2027306GWbVQq','_createLoaderIcon','ck-ai-chat-context-controls__chip-tooltip','removeContextItemChip','small','bind','setTemplate','fire','slice','classList','add','_handleAnimationEndOnce','7nOGYLT','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','render','set','ck-ai-chat-context-chip__label','addEventListener','isLoading','element','5639400UKSNUD','length','span','animationend','20yCycmd','lastIndexOf','3555168MaDsoI','label','remove','584754rDPraI','5sKUDbb','tooltip','_createTemplateChildren','_createTemplateAttributes','execute','_createIconView','ck-ai-chat-context-chip__type-icon','_setupRemoveButtonEvent','uiId','215061kprUZq','div','removeEventListener','content','ck-ai-chat-context-chip'];_0x1698=function(){return _0x577838;};return _0x1698();}import{AISpinnerView as _0x5cc7f0}from'../../../aicore/ui/aispinner.js';const xn={'file':_0x44d9a2,'document':_0x4d599a,'web-resource':_0x2fbb25,'text':_0x44d9a2,'selection':_0x8372e2,'mcp-tool-context':_0x4d599a},bn=_0x5f3e13(0x18a),wn=_0x5f3e13(0x15d),Tn=_0x5f3e13(0x154),En=_0x5f3e13(0x16f),fn=_0x5f3e13(0x183),An=_0x5f3e13(0x161),Cn='n';export class AIChatContextItemButtonView extends _0x112990{constructor(_0x14cb20,_0x191a8e,_0x1a9d8d,_0x41bee9,_0x16e7bc=!0x1){const _0x3ea254=_0x5f3e13;super(_0x14cb20),this[_0x3ea254(0x155)]=_0x41bee9,this[_0x3ea254(0x150)](_0x191a8e,_0x1a9d8d,_0x16e7bc),this[_0x3ea254(0x158)]();}[_0x5f3e13(0x16d)](){const _0x3660ef=_0x5f3e13;super[_0x3660ef(0x16d)](),this[_0x3660ef(0x155)]&&this[_0x3660ef(0x172)]&&(this[_0x3660ef(0x172)][_0x3660ef(0x168)][_0x3660ef(0x169)](_0x3660ef(0x15c)),this[_0x3660ef(0x16a)](this[_0x3660ef(0x172)],()=>{const _0xe70219=_0x3660ef;this[_0xe70219(0x172)]&&this[_0xe70219(0x172)][_0xe70219(0x168)][_0xe70219(0x17b)](_0xe70219(0x15c));}));}[_0x5f3e13(0x153)](){const _0x19e84d=_0x5f3e13;this[_0x19e84d(0x155)]=!0x1,this[_0x19e84d(0x172)]&&this[_0x19e84d(0x172)][_0x19e84d(0x168)][_0x19e84d(0x17b)](_0x19e84d(0x15c));}[_0x5f3e13(0x150)](_0x491a23,_0x505ef6,_0x188a50){const _0x59f516=_0x5f3e13;this[_0x59f516(0x16e)](_0x59f516(0x17a),_0x491a23[_0x59f516(0x17a)]),this[_0x59f516(0x16e)](_0x59f516(0x17e),!0x0),this[_0x59f516(0x16e)](_0x59f516(0x15e),_0x491a23[_0x59f516(0x191)]),this[_0x59f516(0x16e)]('id',_0x491a23[_0x59f516(0x185)]),this[_0x59f516(0x16e)](_0x59f516(0x152),_0x505ef6),this[_0x59f516(0x16e)](_0x59f516(0x171),_0x188a50);}[_0x5f3e13(0x158)](){const _0x1fa83d=_0x5f3e13,_0x542f15=this[_0x1fa83d(0x182)](),_0xd9dc00=this[_0x1fa83d(0x18f)](),_0x25dc72=this[_0x1fa83d(0x156)];this[_0x1fa83d(0x165)]({'tag':_0x1fa83d(0x187),'attributes':this[_0x1fa83d(0x180)](_0x25dc72),'children':this[_0x1fa83d(0x17f)](_0x542f15,_0xd9dc00,_0x25dc72)});}[_0x5f3e13(0x180)](_0x31c601){const _0x5506c9=_0x5f3e13;return{'class':[bn,_0x31c601['if'](_0x5506c9(0x15e),Tn,_0x18721b=>_0x5506c9(0x190)==_0x18721b),_0x31c601['if'](_0x5506c9(0x15e),wn,_0x21c93e=>_0x5506c9(0x15a)==_0x21c93e)],'data-cke-tooltip-text':_0x31c601['to'](_0x5506c9(0x17a),In),'data-cke-tooltip-position':Cn,'data-cke-tooltip-class':An};}[_0x5f3e13(0x17f)](_0x4915d6,_0x480f98,_0x53ac8e){const _0x468d68=_0x5f3e13,_0x21e3ed=this[_0x468d68(0x15b)](_0x53ac8e),_0x128e57=this[_0x468d68(0x160)]();return this[_0x468d68(0x152)]?[_0x4915d6,_0x21e3ed]:[_0x4915d6,_0x128e57,_0x21e3ed,_0x480f98];}[_0x5f3e13(0x15b)](_0x5435ba){const _0x3e924a=_0x5f3e13;return{'tag':_0x3e924a(0x175),'attributes':{'class':En},'children':[{'text':_0x5435ba['to'](_0x3e924a(0x17a))}]};}[_0x5f3e13(0x18f)](){const _0x48a85c=_0x5f3e13,_0x1d1673=new _0x112990(this[_0x48a85c(0x18e)]);return _0x1d1673[_0x48a85c(0x16e)]({'label':_0x256fa5(this[_0x48a85c(0x18e)],_0x48a85c(0x16c)),'icon':_0x536803}),this[_0x48a85c(0x184)](_0x1d1673),_0x1d1673;}[_0x5f3e13(0x184)](_0x4fb4e0){const _0x3ede42=_0x5f3e13;_0x4fb4e0['on'](_0x3ede42(0x181),()=>{const _0x54876d=_0x3ede42;this[_0x54876d(0x166)](_0x54876d(0x162),this['id']);});}[_0x5f3e13(0x182)](){const _0x8a23d4=_0x5f3e13,_0x38d24b=this[_0x8a23d4(0x156)],_0x202f00=new _0x3b325c();return _0x202f00[_0x8a23d4(0x189)]=xn[this[_0x8a23d4(0x15e)]],_0x202f00[_0x8a23d4(0x192)]({'attributes':{'class':[fn,_0x38d24b['if'](_0x8a23d4(0x171),_0x8a23d4(0x18b),_0x24359e=>_0x24359e)]}}),_0x202f00;}[_0x5f3e13(0x16a)](_0x3772b7,_0x2891c7){const _0xb2510f=_0x5f3e13;if(!_0x3772b7)return;const _0x5abad1=()=>{const _0x1c4fe0=_0x82f5;_0x2891c7(),_0x3772b7[_0x1c4fe0(0x188)](_0x1c4fe0(0x176),_0x5abad1),_0x3772b7[_0x1c4fe0(0x188)](_0x1c4fe0(0x18c),_0x5abad1);};_0x3772b7[_0xb2510f(0x170)](_0xb2510f(0x176),_0x5abad1),_0x3772b7[_0xb2510f(0x170)](_0xb2510f(0x18c),_0x5abad1);}[_0x5f3e13(0x160)](){const _0x8f31c6=_0x5f3e13,_0x4d5ecb=new _0x5cc7f0(_0x8f31c6(0x163));return _0x4d5ecb[_0x8f31c6(0x164)](_0x8f31c6(0x18d))['to'](this,_0x8f31c6(0x171),_0x21654d=>_0x21654d),_0x4d5ecb;}}function In(_0x5e42a4){const _0x5cbc28=_0x5f3e13;if(!_0x5e42a4)return _0x5e42a4;if(_0x5e42a4[_0x5cbc28(0x174)]<=0x78)return _0x5e42a4;const _0x4a2baf=_0x5e42a4[_0x5cbc28(0x167)](0x0,0x78),_0x318219=_0x4a2baf[_0x5cbc28(0x178)]('\x20');return(_0x318219>0x0?_0x4a2baf[_0x5cbc28(0x167)](0x0,_0x318219):_0x4a2baf)+'…';}