@ckeditor/ckeditor5-ai 47.0.0-alpha.5 → 47.0.0-alpha.6

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 (306) hide show
  1. package/build/ai.js +1 -1
  2. package/ckeditor5-metadata.json +14 -0
  3. package/dist/index-editor.css +17 -2
  4. package/dist/index.css +18 -2
  5. package/dist/index.js +4 -4
  6. package/dist/translations/af.js +1 -1
  7. package/dist/translations/af.umd.js +1 -1
  8. package/dist/translations/ar.js +1 -1
  9. package/dist/translations/ar.umd.js +1 -1
  10. package/dist/translations/ast.js +1 -1
  11. package/dist/translations/ast.umd.js +1 -1
  12. package/dist/translations/az.js +1 -1
  13. package/dist/translations/az.umd.js +1 -1
  14. package/dist/translations/be.js +1 -1
  15. package/dist/translations/be.umd.js +1 -1
  16. package/dist/translations/bg.js +1 -1
  17. package/dist/translations/bg.umd.js +1 -1
  18. package/dist/translations/bn.js +1 -1
  19. package/dist/translations/bn.umd.js +1 -1
  20. package/dist/translations/bs.js +1 -1
  21. package/dist/translations/bs.umd.js +1 -1
  22. package/dist/translations/ca.js +1 -1
  23. package/dist/translations/ca.umd.js +1 -1
  24. package/dist/translations/cs.js +1 -1
  25. package/dist/translations/cs.umd.js +1 -1
  26. package/dist/translations/da.js +1 -1
  27. package/dist/translations/da.umd.js +1 -1
  28. package/dist/translations/de-ch.js +1 -1
  29. package/dist/translations/de-ch.umd.js +1 -1
  30. package/dist/translations/de.js +1 -1
  31. package/dist/translations/de.umd.js +1 -1
  32. package/dist/translations/el.js +1 -1
  33. package/dist/translations/el.umd.js +1 -1
  34. package/dist/translations/en-au.js +1 -1
  35. package/dist/translations/en-au.umd.js +1 -1
  36. package/dist/translations/en-gb.js +1 -1
  37. package/dist/translations/en-gb.umd.js +1 -1
  38. package/dist/translations/en.js +1 -1
  39. package/dist/translations/en.umd.js +1 -1
  40. package/dist/translations/eo.js +1 -1
  41. package/dist/translations/eo.umd.js +1 -1
  42. package/dist/translations/es-co.js +1 -1
  43. package/dist/translations/es-co.umd.js +1 -1
  44. package/dist/translations/es.js +1 -1
  45. package/dist/translations/es.umd.js +1 -1
  46. package/dist/translations/et.js +1 -1
  47. package/dist/translations/et.umd.js +1 -1
  48. package/dist/translations/eu.js +1 -1
  49. package/dist/translations/eu.umd.js +1 -1
  50. package/dist/translations/fa.js +1 -1
  51. package/dist/translations/fa.umd.js +1 -1
  52. package/dist/translations/fi.js +1 -1
  53. package/dist/translations/fi.umd.js +1 -1
  54. package/dist/translations/fr.js +1 -1
  55. package/dist/translations/fr.umd.js +1 -1
  56. package/dist/translations/gl.js +1 -1
  57. package/dist/translations/gl.umd.js +1 -1
  58. package/dist/translations/gu.js +1 -1
  59. package/dist/translations/gu.umd.js +1 -1
  60. package/dist/translations/he.js +1 -1
  61. package/dist/translations/he.umd.js +1 -1
  62. package/dist/translations/hi.js +1 -1
  63. package/dist/translations/hi.umd.js +1 -1
  64. package/dist/translations/hr.js +1 -1
  65. package/dist/translations/hr.umd.js +1 -1
  66. package/dist/translations/hu.js +1 -1
  67. package/dist/translations/hu.umd.js +1 -1
  68. package/dist/translations/hy.js +1 -1
  69. package/dist/translations/hy.umd.js +1 -1
  70. package/dist/translations/id.js +1 -1
  71. package/dist/translations/id.umd.js +1 -1
  72. package/dist/translations/it.js +1 -1
  73. package/dist/translations/it.umd.js +1 -1
  74. package/dist/translations/ja.js +1 -1
  75. package/dist/translations/ja.umd.js +1 -1
  76. package/dist/translations/jv.js +1 -1
  77. package/dist/translations/jv.umd.js +1 -1
  78. package/dist/translations/kk.js +1 -1
  79. package/dist/translations/kk.umd.js +1 -1
  80. package/dist/translations/km.js +1 -1
  81. package/dist/translations/km.umd.js +1 -1
  82. package/dist/translations/kn.js +1 -1
  83. package/dist/translations/kn.umd.js +1 -1
  84. package/dist/translations/ko.js +1 -1
  85. package/dist/translations/ko.umd.js +1 -1
  86. package/dist/translations/ku.js +1 -1
  87. package/dist/translations/ku.umd.js +1 -1
  88. package/dist/translations/lt.js +1 -1
  89. package/dist/translations/lt.umd.js +1 -1
  90. package/dist/translations/lv.js +1 -1
  91. package/dist/translations/lv.umd.js +1 -1
  92. package/dist/translations/ms.js +1 -1
  93. package/dist/translations/ms.umd.js +1 -1
  94. package/dist/translations/nb.js +1 -1
  95. package/dist/translations/nb.umd.js +1 -1
  96. package/dist/translations/ne.js +1 -1
  97. package/dist/translations/ne.umd.js +1 -1
  98. package/dist/translations/nl.js +1 -1
  99. package/dist/translations/nl.umd.js +1 -1
  100. package/dist/translations/no.js +1 -1
  101. package/dist/translations/no.umd.js +1 -1
  102. package/dist/translations/oc.js +1 -1
  103. package/dist/translations/oc.umd.js +1 -1
  104. package/dist/translations/pl.js +1 -1
  105. package/dist/translations/pl.umd.js +1 -1
  106. package/dist/translations/pt-br.js +1 -1
  107. package/dist/translations/pt-br.umd.js +1 -1
  108. package/dist/translations/pt.js +1 -1
  109. package/dist/translations/pt.umd.js +1 -1
  110. package/dist/translations/ro.js +1 -1
  111. package/dist/translations/ro.umd.js +1 -1
  112. package/dist/translations/ru.js +1 -1
  113. package/dist/translations/ru.umd.js +1 -1
  114. package/dist/translations/si.js +1 -1
  115. package/dist/translations/si.umd.js +1 -1
  116. package/dist/translations/sk.js +1 -1
  117. package/dist/translations/sk.umd.js +1 -1
  118. package/dist/translations/sl.js +1 -1
  119. package/dist/translations/sl.umd.js +1 -1
  120. package/dist/translations/sq.js +1 -1
  121. package/dist/translations/sq.umd.js +1 -1
  122. package/dist/translations/sr-latn.js +1 -1
  123. package/dist/translations/sr-latn.umd.js +1 -1
  124. package/dist/translations/sr.js +1 -1
  125. package/dist/translations/sr.umd.js +1 -1
  126. package/dist/translations/sv.js +1 -1
  127. package/dist/translations/sv.umd.js +1 -1
  128. package/dist/translations/th.js +1 -1
  129. package/dist/translations/th.umd.js +1 -1
  130. package/dist/translations/ti.js +1 -1
  131. package/dist/translations/ti.umd.js +1 -1
  132. package/dist/translations/tk.js +1 -1
  133. package/dist/translations/tk.umd.js +1 -1
  134. package/dist/translations/tr.js +1 -1
  135. package/dist/translations/tr.umd.js +1 -1
  136. package/dist/translations/tt.js +1 -1
  137. package/dist/translations/tt.umd.js +1 -1
  138. package/dist/translations/ug.js +1 -1
  139. package/dist/translations/ug.umd.js +1 -1
  140. package/dist/translations/uk.js +1 -1
  141. package/dist/translations/uk.umd.js +1 -1
  142. package/dist/translations/ur.js +1 -1
  143. package/dist/translations/ur.umd.js +1 -1
  144. package/dist/translations/uz.js +1 -1
  145. package/dist/translations/uz.umd.js +1 -1
  146. package/dist/translations/vi.js +1 -1
  147. package/dist/translations/vi.umd.js +1 -1
  148. package/dist/translations/zh-cn.js +1 -1
  149. package/dist/translations/zh-cn.umd.js +1 -1
  150. package/dist/translations/zh.js +1 -1
  151. package/dist/translations/zh.umd.js +1 -1
  152. package/lang/contexts.json +1 -0
  153. package/package.json +15 -15
  154. package/src/aiactions/aiactions.js +1 -1
  155. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  156. package/src/aiactions/model/aiactionsreply.js +1 -1
  157. package/src/aiassistant/adapters/aiadapter.js +1 -1
  158. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  159. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  160. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  161. package/src/aiassistant/aiassistant.js +1 -1
  162. package/src/aiassistant/aiassistantediting.js +1 -1
  163. package/src/aiassistant/aiassistantui.js +1 -1
  164. package/src/aiassistant/legacyerrors.js +1 -1
  165. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  166. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  167. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  168. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  169. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  170. package/src/aiassistant/ui/form/aiformview.js +1 -1
  171. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  172. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  173. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  174. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  175. package/src/aiassistant/utils/common-translations.js +1 -1
  176. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  177. package/src/aiballoon/aiballoon.js +1 -1
  178. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  179. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  180. package/src/aiballoon/ui/aiballoonview.js +1 -1
  181. package/src/aichat/aichat.js +1 -1
  182. package/src/aichat/aichatcontroller.d.ts +4 -0
  183. package/src/aichat/aichatcontroller.js +1 -1
  184. package/src/aichat/aichatui.d.ts +2 -0
  185. package/src/aichat/aichatui.js +1 -1
  186. package/src/aichat/model/aichatcontext.js +1 -1
  187. package/src/aichat/model/aichatconversation.js +1 -1
  188. package/src/aichat/model/aichatinteraction.js +1 -1
  189. package/src/aichat/model/aichatmodels.js +1 -1
  190. package/src/aichat/ui/aichatcontrolsview.d.ts +6 -0
  191. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  192. package/src/aichat/ui/aichatfeedview.js +1 -1
  193. package/src/aichat/ui/aichatheaderview.js +1 -1
  194. package/src/aichat/ui/aichatview.js +1 -1
  195. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  196. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  197. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  198. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  199. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  200. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  201. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  202. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  203. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  204. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  205. package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
  206. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  207. package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
  208. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  209. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  210. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  211. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  212. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  213. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  214. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  215. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  216. package/src/aichat/utils/eventnames.js +1 -1
  217. package/src/aichat/utils/promisequeue.js +1 -1
  218. package/src/aichat/utils/scrollmanager.js +1 -1
  219. package/src/aichathistory/aichathistory.js +1 -1
  220. package/src/aichathistory/aichathistorycontroller.js +1 -1
  221. package/src/aichathistory/aichathistoryui.js +1 -1
  222. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  223. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  224. package/src/aichathistory/ui/aichathistorylistitemview.js +1 -1
  225. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  226. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  227. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  228. package/src/aicore/aiconnector.js +1 -1
  229. package/src/aicore/aiediting.js +1 -1
  230. package/src/aicore/model/aicapabilities.js +1 -1
  231. package/src/aicore/model/aicontext.js +1 -1
  232. package/src/aicore/model/aiinteraction.js +1 -1
  233. package/src/aicore/model/aireply.js +1 -1
  234. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  235. package/src/aicore/pipeline/airesponseparser.js +2 -2
  236. package/src/aicore/ui/aidisclaimerview.js +1 -1
  237. package/src/aicore/ui/aiskeleton.js +1 -1
  238. package/src/aicore/ui/aispinner.js +1 -1
  239. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  240. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  241. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  242. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  243. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  244. package/src/aicore/utils/common-translations.js +1 -1
  245. package/src/aicore/utils/createresizebutton.js +1 -1
  246. package/src/aicore/utils/documentposition.js +1 -1
  247. package/src/aicore/utils/documentrange.js +1 -1
  248. package/src/aicore/utils/eventnames.js +1 -1
  249. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  250. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  251. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  252. package/src/aicore/utils/htmlparser.js +1 -1
  253. package/src/aicore/utils/htmlstreamer.js +1 -1
  254. package/src/aieditorintegration/aieditorintegration.d.ts +35 -0
  255. package/src/aieditorintegration/aieditorintegration.js +23 -0
  256. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.d.ts +38 -0
  257. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +23 -0
  258. package/src/aieditorintegration/aitogglebutton/toggleaicommand.d.ts +16 -0
  259. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +23 -0
  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/utils/common-translations.js +1 -1
  268. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  269. package/src/aireviewmode/aireviewmode.js +1 -1
  270. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  271. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  272. package/src/aireviewmode/aireviewmodeui.js +1 -1
  273. package/src/aireviewmode/model/aireviewcheck.js +1 -1
  274. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  275. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  276. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  277. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  278. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  279. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  280. package/src/aireviewmode/model/aireviewmodels.js +1 -1
  281. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  282. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  283. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  284. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  285. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  286. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  287. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  288. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  289. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  290. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  291. package/src/aireviewmode/ui/form/aireviewmodeformamanager.js +1 -1
  292. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  293. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  294. package/src/aitabs/aitabs.js +1 -1
  295. package/src/aitabs/aitabsmainview.d.ts +6 -0
  296. package/src/aitabs/aitabsmainview.js +1 -1
  297. package/src/aitabs/tabs/aitabsview.js +1 -1
  298. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  299. package/src/aitabs/tabs/tabpanelview.js +1 -1
  300. package/src/augmentation.d.ts +6 -0
  301. package/src/index.d.ts +3 -0
  302. package/src/index.js +1 -1
  303. package/theme/aichat/aichat-controls.css +6 -0
  304. package/theme/aichat/aichat.css +2 -0
  305. package/theme/aichat/aisuggestioncontainer.css +8 -2
  306. package/theme/aireviewmode/aireviewmode-check-run-result.css +5 -0
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x41ea1b=_0x10c0;(function(_0x21a258,_0x5a5c58){const _0x11ae94=_0x10c0,_0x51ca37=_0x21a258();while(!![]){try{const _0x3e8b97=-parseInt(_0x11ae94(0x16b))/0x1*(parseInt(_0x11ae94(0x15e))/0x2)+parseInt(_0x11ae94(0x163))/0x3*(-parseInt(_0x11ae94(0x153))/0x4)+parseInt(_0x11ae94(0x179))/0x5+parseInt(_0x11ae94(0x161))/0x6+parseInt(_0x11ae94(0x146))/0x7+parseInt(_0x11ae94(0x14d))/0x8+-parseInt(_0x11ae94(0x176))/0x9;if(_0x3e8b97===_0x5a5c58)break;else _0x51ca37['push'](_0x51ca37['shift']());}catch(_0x163f2d){_0x51ca37['push'](_0x51ca37['shift']());}}}(_0x1bf5,0x981ec));import{clickOutsideHandler as _0x5624c2,View as _0x234983}from'ckeditor5/src/ui.js';function _0x10c0(_0x4be3aa,_0x49ce6e){const _0x1bf50d=_0x1bf5();return _0x10c0=function(_0x10c0e4,_0x3b04d1){_0x10c0e4=_0x10c0e4-0x146;let _0x541004=_0x1bf50d[_0x10c0e4];return _0x541004;},_0x10c0(_0x4be3aa,_0x49ce6e);}import{AIChatPromptInputView as _0x412ef0}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x19de2f}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x3ad696,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x16537d}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x5bc32d}from'./controls/aichatcontrolsloaderview.js';function _0x1bf5(){const _0x58ad75=['abortPromptStream','setPlaceholderText','setAddContextOptions','_createPromptCapabilitiesView','bindTemplate','isLoading','focus','622OiixwI','low','change:isLoading','6579198aRIddu','_contextPanelView','9jWAoaN','delegate','clearCurrentContextItems','setInputPlaceholder','enableModelSelector','clearConversationContextUI','selectModel','_promptInputView','3709SSsoFo','populateSourceResourceBalloon','setModelList','sendUserMessage','addContextButtonView','form','reset','div','removeContextItem','disableModelSelector','ck-hidden','4141485VzikfM','ck-ai-chat-controls','_createLoaderView','4432905TFlhKd','_createPromptInputView','setContextItemLoading','clearConversationContextItems','clearPendingContextUI','element','resetMessageInput','_createContextPanelView','focusPromptInput','setWebSearch','2039226wVFkXg','toggleReasoning','setTemplate','_handlePromptInputFocus','setModel','setIsUploadInProgress','_promptCapabilitiesView','943360FbmAzI','setConversationContext','setReasoning','_loaderView','updateResourceState','_shouldRestorePromptInputFocus','207472zzYNkp','addContextItem','toggleWebSearch','closeSourceResourceBalloon'];_0x1bf5=function(){return _0x58ad75;};return _0x1bf5();}export class AIChatControlsView extends _0x234983{[_0x41ea1b(0x162)];[_0x41ea1b(0x16a)];[_0x41ea1b(0x14c)];[_0x41ea1b(0x150)];[_0x41ea1b(0x152)];constructor(_0x21bf16,_0x243500){const _0x265e60=_0x41ea1b;super(_0x21bf16),this[_0x265e60(0x162)]=this[_0x265e60(0x180)](_0x21bf16,_0x243500),this[_0x265e60(0x16a)]=this[_0x265e60(0x17a)](_0x21bf16),this[_0x265e60(0x14c)]=this[_0x265e60(0x15a)](_0x21bf16),this[_0x265e60(0x150)]=this[_0x265e60(0x178)](_0x21bf16),this[_0x265e60(0x152)]=!0x1,this[_0x265e60(0x16a)][_0x265e60(0x164)](_0x265e60(0x16e))['to'](this),this[_0x265e60(0x150)][_0x265e60(0x164)](_0x265e60(0x157))['to'](this),this[_0x265e60(0x14c)][_0x265e60(0x164)](_0x265e60(0x155))['to'](this),this[_0x265e60(0x14c)][_0x265e60(0x164)](_0x265e60(0x147))['to'](this),this[_0x265e60(0x14c)][_0x265e60(0x164)](_0x265e60(0x169))['to'](this),this[_0x265e60(0x162)][_0x265e60(0x164)](..._0x16537d)['to'](this);const _0x36d228=this[_0x265e60(0x15b)];this[_0x265e60(0x148)]({'tag':_0x265e60(0x170),'attributes':{'class':['ck',_0x265e60(0x177)]},'children':[{'tag':_0x265e60(0x172),'attributes':{'class':[_0x36d228['if'](_0x265e60(0x15c),_0x265e60(0x175))]},'children':[this[_0x265e60(0x162)],this[_0x265e60(0x16a)],this[_0x265e60(0x14c)]]},{'tag':_0x265e60(0x172),'attributes':{'class':[_0x36d228['if'](_0x265e60(0x15c),_0x265e60(0x175),_0x1eb2f3=>!_0x1eb2f3)]},'children':[this[_0x265e60(0x150)]]}]}),_0x5624c2({'emitter':this[_0x265e60(0x16a)],'activator':()=>this[_0x265e60(0x15c)],'contextElements':()=>[this[_0x265e60(0x17e)]],'callback':()=>{const _0x5e8811=_0x265e60;this[_0x5e8811(0x152)]=!0x1;}}),this['on'](_0x265e60(0x160),this[_0x265e60(0x149)],{'priority':_0x265e60(0x15f)});}[_0x41ea1b(0x180)](_0x19063f,_0x1572a6){return new _0x3ad696(_0x19063f,_0x1572a6);}[_0x41ea1b(0x17a)](_0x25e343){const _0x1d5c20=_0x41ea1b;return new _0x412ef0(_0x25e343,this[_0x1d5c20(0x162)][_0x1d5c20(0x16f)]);}[_0x41ea1b(0x15a)](_0x599729){return new _0x19de2f(_0x599729);}[_0x41ea1b(0x178)](_0x5333fa){return new _0x5bc32d(_0x5333fa);}[_0x41ea1b(0x149)](_0x297c0d,_0x535392,_0x4ae9b2){const _0x91931=_0x41ea1b;_0x4ae9b2?this[_0x91931(0x152)]=!0x0:this[_0x91931(0x152)]&&this[_0x91931(0x16a)][_0x91931(0x15d)]();}[_0x41ea1b(0x154)](_0x2dccf9,_0x5b4980){const _0x4df994=_0x41ea1b;this[_0x4df994(0x162)][_0x4df994(0x154)](_0x2dccf9,_0x5b4980);}[_0x41ea1b(0x173)](_0x88520){const _0x4540ed=_0x41ea1b;this[_0x4540ed(0x162)][_0x4540ed(0x173)](_0x88520);}[_0x41ea1b(0x17b)](_0x461d75,_0x32be1e){const _0x1a6cf0=_0x41ea1b;this[_0x1a6cf0(0x162)][_0x1a6cf0(0x17b)](_0x461d75,_0x32be1e);}[_0x41ea1b(0x14b)](_0x7485a4){const _0xe5b6e1=_0x41ea1b;this[_0xe5b6e1(0x16a)][_0xe5b6e1(0x14b)](_0x7485a4);}[_0x41ea1b(0x14e)](_0x1ba3bd){const _0x4acc8d=_0x41ea1b;this[_0x4acc8d(0x162)][_0x4acc8d(0x14e)](_0x1ba3bd);}[_0x41ea1b(0x17d)](){const _0x5311ff=_0x41ea1b;this[_0x5311ff(0x162)][_0x5311ff(0x165)]();}[_0x41ea1b(0x168)](){const _0x32f33a=_0x41ea1b;this[_0x32f33a(0x162)][_0x32f33a(0x17c)]();}[_0x41ea1b(0x151)](_0x588631,_0x38d938,_0x1a4720){const _0x465f09=_0x41ea1b;this[_0x465f09(0x162)][_0x465f09(0x151)](_0x588631,_0x38d938,_0x1a4720);}[_0x41ea1b(0x182)](_0x1dd1f8){const _0x3e930f=_0x41ea1b;this[_0x3e930f(0x14c)][_0x3e930f(0x182)](_0x1dd1f8);}[_0x41ea1b(0x14f)](_0x3c7a60){const _0x454173=_0x41ea1b;this[_0x454173(0x14c)][_0x454173(0x14f)](_0x3c7a60);}[_0x41ea1b(0x17f)](){const _0xfbbbe6=_0x41ea1b;this[_0xfbbbe6(0x16a)][_0xfbbbe6(0x171)]();}[_0x41ea1b(0x159)](_0x4b23c0){const _0x24539e=_0x41ea1b;this[_0x24539e(0x162)][_0x24539e(0x159)](_0x4b23c0);}[_0x41ea1b(0x166)](_0x34d884){const _0x53f6a3=_0x41ea1b;this[_0x53f6a3(0x16a)][_0x53f6a3(0x158)](_0x34d884);}[_0x41ea1b(0x16d)](_0x23bd49,_0x32f0fa){const _0x59c761=_0x41ea1b;this[_0x59c761(0x14c)][_0x59c761(0x16d)](_0x23bd49,_0x32f0fa);}[_0x41ea1b(0x14a)](_0x5f2085){const _0x4466b8=_0x41ea1b;this[_0x4466b8(0x14c)][_0x4466b8(0x14a)](_0x5f2085);}[_0x41ea1b(0x167)](){const _0x51dd88=_0x41ea1b;this[_0x51dd88(0x14c)][_0x51dd88(0x167)]();}[_0x41ea1b(0x174)](_0x585f2f){const _0x16d77c=_0x41ea1b;this[_0x16d77c(0x14c)][_0x16d77c(0x174)](_0x585f2f);}[_0x41ea1b(0x16c)](_0x7ce624,_0x41aa83,_0x3eb4b4,_0x46f291){const _0x43601b=_0x41ea1b;this[_0x43601b(0x162)][_0x43601b(0x16c)](_0x7ce624,_0x41aa83,_0x3eb4b4,_0x46f291);}[_0x41ea1b(0x156)](_0x321e27){const _0xa437ff=_0x41ea1b;this[_0xa437ff(0x162)][_0xa437ff(0x156)](_0x321e27);}[_0x41ea1b(0x181)](){const _0x1ba7e2=_0x41ea1b;this[_0x1ba7e2(0x16a)][_0x1ba7e2(0x15d)]();}}
23
+ const _0x775eca=_0x391a;function _0x391a(_0xfe3823,_0xff00c7){const _0x509a16=_0x509a();return _0x391a=function(_0x391af9,_0x20cddc){_0x391af9=_0x391af9-0xee;let _0x54cea8=_0x509a16[_0x391af9];return _0x54cea8;},_0x391a(_0xfe3823,_0xff00c7);}(function(_0x243eeb,_0x1b1c95){const _0x3884c2=_0x391a,_0x41b868=_0x243eeb();while(!![]){try{const _0x37dbc0=parseInt(_0x3884c2(0x12e))/0x1*(parseInt(_0x3884c2(0x10c))/0x2)+-parseInt(_0x3884c2(0x116))/0x3+-parseInt(_0x3884c2(0x10d))/0x4+parseInt(_0x3884c2(0x102))/0x5*(parseInt(_0x3884c2(0x10a))/0x6)+-parseInt(_0x3884c2(0xfc))/0x7*(parseInt(_0x3884c2(0xfe))/0x8)+parseInt(_0x3884c2(0x10b))/0x9*(-parseInt(_0x3884c2(0x107))/0xa)+-parseInt(_0x3884c2(0x100))/0xb*(-parseInt(_0x3884c2(0x113))/0xc);if(_0x37dbc0===_0x1b1c95)break;else _0x41b868['push'](_0x41b868['shift']());}catch(_0x14d466){_0x41b868['push'](_0x41b868['shift']());}}}(_0x509a,0xb85ef));import{clickOutsideHandler as _0x406d68,View as _0x270575}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x290890}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x65e913}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0xfebaf3,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x1b528f}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x4dcad8}from'./controls/aichatcontrolsloaderview.js';export class AIChatControlsView extends _0x270575{[_0x775eca(0x112)];[_0x775eca(0x118)];[_0x775eca(0xf6)];[_0x775eca(0x115)];[_0x775eca(0x101)];constructor(_0x327c38,_0x187eae){const _0x3d482b=_0x775eca;super(_0x327c38),this[_0x3d482b(0x112)]=this[_0x3d482b(0xef)](_0x327c38,_0x187eae),this[_0x3d482b(0x118)]=this[_0x3d482b(0x104)](_0x327c38),this[_0x3d482b(0xf6)]=this[_0x3d482b(0x12d)](_0x327c38),this[_0x3d482b(0x115)]=this[_0x3d482b(0x119)](_0x327c38),this[_0x3d482b(0x101)]=!0x1,this[_0x3d482b(0x118)][_0x3d482b(0x11a)](_0x3d482b(0x10f))['to'](this),this[_0x3d482b(0x115)][_0x3d482b(0x11a)](_0x3d482b(0xfb))['to'](this),this[_0x3d482b(0xf6)][_0x3d482b(0x11a)](_0x3d482b(0x127))['to'](this),this[_0x3d482b(0xf6)][_0x3d482b(0x11a)](_0x3d482b(0xf2))['to'](this),this[_0x3d482b(0xf6)][_0x3d482b(0x11a)](_0x3d482b(0x11d))['to'](this),this[_0x3d482b(0x112)][_0x3d482b(0x11a)](..._0x1b528f)['to'](this),this[_0x3d482b(0x12a)](_0x3d482b(0x109),!0x1);const _0x1d4cba=this[_0x3d482b(0xff)];this[_0x3d482b(0xf9)]({'tag':_0x3d482b(0xf7),'attributes':{'class':['ck',_0x3d482b(0x12c),_0x1d4cba['if'](_0x3d482b(0x109),_0x3d482b(0x103))]},'children':[{'tag':_0x3d482b(0x10e),'attributes':{'class':[_0x1d4cba['if'](_0x3d482b(0x12f),_0x3d482b(0x123))]},'children':[this[_0x3d482b(0x112)],this[_0x3d482b(0x118)],this[_0x3d482b(0xf6)]]},{'tag':_0x3d482b(0x10e),'attributes':{'class':[_0x1d4cba['if'](_0x3d482b(0x12f),_0x3d482b(0x123),_0x572d97=>!_0x572d97)]},'children':[this[_0x3d482b(0x115)]]}]}),_0x406d68({'emitter':this[_0x3d482b(0x118)],'activator':()=>this[_0x3d482b(0x12f)],'contextElements':()=>[this[_0x3d482b(0x124)]],'callback':()=>{const _0x37b552=_0x3d482b;this[_0x37b552(0x101)]=!0x1;}}),this['on'](_0x3d482b(0x125),this[_0x3d482b(0xfa)],{'priority':_0x3d482b(0x117)});}[_0x775eca(0xef)](_0x23a4f5,_0xd022be){return new _0xfebaf3(_0x23a4f5,_0xd022be);}[_0x775eca(0x104)](_0x3bb749){const _0x1736a2=_0x775eca;return new _0x290890(_0x3bb749,this[_0x1736a2(0x112)][_0x1736a2(0x128)]);}[_0x775eca(0x12d)](_0xd7fe92){return new _0x65e913(_0xd7fe92);}[_0x775eca(0x119)](_0x48c627){return new _0x4dcad8(_0x48c627);}[_0x775eca(0xfa)](_0x1902e7,_0x3bd74f,_0x28f6dc){const _0xfdbae1=_0x775eca;_0x28f6dc?this[_0xfdbae1(0x101)]=!0x0:this[_0xfdbae1(0x101)]&&this[_0xfdbae1(0x118)][_0xfdbae1(0x130)]();}[_0x775eca(0xf3)](_0x24a13c,_0x13e448){const _0xcf6537=_0x775eca;this[_0xcf6537(0x112)][_0xcf6537(0xf3)](_0x24a13c,_0x13e448);}[_0x775eca(0xf4)](_0x49a138){const _0x35a5a3=_0x775eca;this[_0x35a5a3(0x112)][_0x35a5a3(0xf4)](_0x49a138);}[_0x775eca(0xfd)](_0x1b6f7d,_0x143f8b){const _0x1b7ad5=_0x775eca;this[_0x1b7ad5(0x112)][_0x1b7ad5(0xfd)](_0x1b6f7d,_0x143f8b);}[_0x775eca(0x106)](_0x10dab4){const _0x2b7bf6=_0x775eca;this[_0x2b7bf6(0x118)][_0x2b7bf6(0x106)](_0x10dab4);}[_0x775eca(0xee)](_0x13acfe){const _0x44f886=_0x775eca;this[_0x44f886(0x112)][_0x44f886(0xee)](_0x13acfe);}[_0x775eca(0x108)](){const _0x15fa0c=_0x775eca;this[_0x15fa0c(0x112)][_0x15fa0c(0x122)]();}[_0x775eca(0x121)](){const _0x4c9db8=_0x775eca;this[_0x4c9db8(0x112)][_0x4c9db8(0x126)]();}[_0x775eca(0x11f)](_0x2f660b,_0x45c4e1,_0x399ddb){const _0x13c4bc=_0x775eca;this[_0x13c4bc(0x112)][_0x13c4bc(0x11f)](_0x2f660b,_0x45c4e1,_0x399ddb);}[_0x775eca(0x12b)](_0x50d9e0){const _0x1e289a=_0x775eca;this[_0x1e289a(0xf6)][_0x1e289a(0x12b)](_0x50d9e0);}[_0x775eca(0x11e)](_0x599442){const _0x5d6d5b=_0x775eca;this[_0x5d6d5b(0xf6)][_0x5d6d5b(0x11e)](_0x599442);}[_0x775eca(0xf8)](){const _0x2bdcdd=_0x775eca;this[_0x2bdcdd(0x118)][_0x2bdcdd(0x120)]();}[_0x775eca(0x11c)](_0x2c3191){const _0x1059ef=_0x775eca;this[_0x1059ef(0x112)][_0x1059ef(0x11c)](_0x2c3191);}[_0x775eca(0x114)](_0x4b547f){const _0x2c2389=_0x775eca;this[_0x2c2389(0x118)][_0x2c2389(0xf5)](_0x4b547f);}[_0x775eca(0xf1)](_0x51f82c,_0x55b484){const _0x392414=_0x775eca;this[_0x392414(0xf6)][_0x392414(0xf1)](_0x51f82c,_0x55b484);}[_0x775eca(0x11b)](_0x2cdc77){const _0x3ada49=_0x775eca;this[_0x3ada49(0xf6)][_0x3ada49(0x11b)](_0x2cdc77);}[_0x775eca(0x110)](){const _0x94f3d3=_0x775eca;this[_0x94f3d3(0xf6)][_0x94f3d3(0x110)]();}[_0x775eca(0xf0)](_0x4bd5bf){const _0x7a451=_0x775eca;this[_0x7a451(0xf6)][_0x7a451(0xf0)](_0x4bd5bf);}[_0x775eca(0x129)](_0x2fd62a,_0x29046c,_0x2bd953,_0x24552b){const _0x27d0ae=_0x775eca;this[_0x27d0ae(0x112)][_0x27d0ae(0x129)](_0x2fd62a,_0x29046c,_0x2bd953,_0x24552b);}[_0x775eca(0x111)](_0x3cafde){const _0x2ae9a6=_0x775eca;this[_0x2ae9a6(0x112)][_0x2ae9a6(0x111)](_0x3cafde);}[_0x775eca(0x105)](){const _0x39d10b=_0x775eca;this[_0x39d10b(0x118)][_0x39d10b(0x130)]();}}function _0x509a(){const _0xfa098e=['closeSourceResourceBalloon','_contextPanelView','12vFxprM','setInputPlaceholder','_loaderView','3034290wzIKrs','low','_promptInputView','_createLoaderView','delegate','setModel','setAddContextOptions','selectModel','setReasoning','updateResourceState','reset','clearConversationContextUI','clearCurrentContextItems','ck-hidden','element','change:isLoading','clearConversationContextItems','toggleWebSearch','addContextButtonView','populateSourceResourceBalloon','set','setWebSearch','ck-ai-chat-controls','_createPromptCapabilitiesView','501uigsSh','isLoading','focus','setConversationContext','_createContextPanelView','disableModelSelector','setModelList','toggleReasoning','addContextItem','removeContextItem','setPlaceholderText','_promptCapabilitiesView','form','resetMessageInput','setTemplate','_handlePromptInputFocus','abortPromptStream','2628367grSPNj','setContextItemLoading','8tXsHgz','bindTemplate','48434837pntHoj','_shouldRestorePromptInputFocus','5sgRjUF','ck-ai-chat-controls-disabled','_createPromptInputView','focusPromptInput','setIsUploadInProgress','2705130NLhYeM','clearPendingContextUI','isDisabled','74004ZydzFI','36DKAsEs','868hPqdjS','5635156hyUbxo','div','sendUserMessage','enableModelSelector'];_0x509a=function(){return _0xfa098e;};return _0x509a();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x588c7e=_0x1084;(function(_0x1ecbea,_0x197bfe){const _0x137229=_0x1084,_0x456564=_0x1ecbea();while(!![]){try{const _0x447ff8=parseInt(_0x137229(0x224))/0x1+parseInt(_0x137229(0x201))/0x2+-parseInt(_0x137229(0x1e8))/0x3*(parseInt(_0x137229(0x222))/0x4)+-parseInt(_0x137229(0x22a))/0x5+parseInt(_0x137229(0x1f8))/0x6+parseInt(_0x137229(0x1f9))/0x7+-parseInt(_0x137229(0x1eb))/0x8*(parseInt(_0x137229(0x20f))/0x9);if(_0x447ff8===_0x197bfe)break;else _0x456564['push'](_0x456564['shift']());}catch(_0x25559f){_0x456564['push'](_0x456564['shift']());}}}(_0x4182,0x4f4ee));import{CKEditorError as _0x254ce0,logWarning as _0x2deb97,scrollViewportToShowTarget as _0xfde5a8}from'ckeditor5/src/utils.js';import{View as _0x4caf9c}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x16cbbd}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x3e5310}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x426664}from'./feed/aichatfeedreplyitemview.js';function _0x1084(_0x365302,_0x4b1889){const _0x41823a=_0x4182();return _0x1084=function(_0x108440,_0x2aab88){_0x108440=_0x108440-0x1e6;let _0x3c286e=_0x41823a[_0x108440];return _0x3c286e;},_0x1084(_0x365302,_0x4b1889);}import{AIChatFeedUserMessageItemView as _0xb9cbd3}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x49e132}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x57307e}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x4755c9}from'../utils/scrollmanager.js';import{AISkeletonView as _0x16f68f,SKELETON_DEFINITIONS as _0x52d8d0}from'../../aicore/ui/aiskeleton.js';function _0x4182(){const _0x2a6bfc=['markItemAsDone','1740495FDLWsg','locale','element','add','_createFeedLoader','ck-ai-chat__loader-text','loadingMessage','remove','createCollection','addItem','options','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','6fdkRFI','isVisible','isLoadingSkeletonVisible','1117672SiLAQN','scrollManager','interaction-header','includes','scrollToSuggestion','stop','ck-hidden','children','span','map','_setupTemplate','extendTemplate','_createSkeletonLoader','1983438KPTFny','238980RAqfBQ','removeItem','updateSuggestionPartState','_createTemplateChildren','updateContent','ai-reply','_bodyCollection','clear','562718zBZxPu','find','getPartView','start','updateWebSources','ai-chat-feed-view-item-not-found','ck-ai-chat__loader','isPending','ai-suggestion-reply','updateReplyItem','bindTemplate','render','set','startAutoScroll','18MuqEkZ','updatePartState','div','_createFeedItems','ck-ai-chat__feed','updateSources','toggleLoadingSkeleton','stopAutoScroll','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','markAsDone','ai-chat-feed-view-item-not-a-suggestion-item','getItemIds','updateSuggestionItem','_createLoaderChildren','destroy','getItemById','ck-ai-chat__feed__items','user-message','setTemplate','375944bWEBYe','delegate','494263IGBvQx','setLoadingMessage','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','ai-chat-feed-view-item-not-a-reply-item','aiFeed'];_0x4182=function(){return _0x2a6bfc;};return _0x4182();}import{AISpinnerView as _0x3ddc4f}from'../../aicore/ui/aispinner.js';export class AIChatFeedView extends _0x4caf9c{[_0x588c7e(0x1f2)];[_0x588c7e(0x1ec)];[_0x588c7e(0x1ff)];constructor(_0x10ec04,_0x430f8e){const _0x2e4a6c=_0x588c7e;super(_0x10ec04),this[_0x2e4a6c(0x1ff)]=_0x430f8e,this[_0x2e4a6c(0x20d)](_0x2e4a6c(0x208),!0x1),this[_0x2e4a6c(0x20d)](_0x2e4a6c(0x230),''),this[_0x2e4a6c(0x20d)](_0x2e4a6c(0x1ea),!0x1),this[_0x2e4a6c(0x1f2)]=this[_0x2e4a6c(0x232)](),this[_0x2e4a6c(0x1f2)][_0x2e4a6c(0x223)](..._0x16cbbd)['to'](this),this[_0x2e4a6c(0x1f5)]();}[_0x588c7e(0x20c)](){const _0x27b171=_0x588c7e;super[_0x27b171(0x20c)](),this[_0x27b171(0x1ec)]=new _0x4755c9(this[_0x27b171(0x22c)]);}[_0x588c7e(0x21d)](){const _0x2db5e4=_0x588c7e;super[_0x2db5e4(0x21d)](),this[_0x2db5e4(0x1ec)][_0x2db5e4(0x21d)]();}[_0x588c7e(0x200)](){const _0x393fce=_0x588c7e;this[_0x393fce(0x1f2)][_0x393fce(0x200)]();}[_0x588c7e(0x233)](_0x56eccf,_0x2c34ab){const _0x556654=_0x588c7e;let _0x15ab89;_0x15ab89=_0x556654(0x1fe)===_0x56eccf?new _0x426664(this[_0x556654(0x22b)],_0x2c34ab):_0x556654(0x209)===_0x56eccf?new _0x3e5310(this[_0x556654(0x22b)],_0x2c34ab):_0x556654(0x220)===_0x56eccf?new _0xb9cbd3(this[_0x556654(0x22b)],_0x2c34ab,this[_0x556654(0x1ff)]):_0x556654(0x1ed)===_0x56eccf?new _0x57307e(this[_0x556654(0x22b)],_0x2c34ab):new _0x49e132(_0x2c34ab),this[_0x556654(0x1f2)][_0x556654(0x22d)](_0x15ab89);}async[_0x588c7e(0x20a)]({id:_0x214ba6,parsedContent:_0x54808a,renderingStrategy:_0x3b3589,abortSignal:_0x6477de}){const _0x764a21=_0x588c7e,_0x1cdfc4=this[_0x764a21(0x21e)](_0x214ba6);if(!(_0x1cdfc4 instanceof _0x426664))throw new _0x254ce0(_0x764a21(0x227),null,{'itemView':_0x1cdfc4,'id':_0x214ba6,'parsedContent':_0x54808a});await _0x1cdfc4[_0x764a21(0x1fd)]({'parsedContent':_0x54808a,'renderingStrategy':_0x3b3589,'abortSignal':_0x6477de});}async[_0x588c7e(0x205)](_0x99c0ef,_0x274a4d){const _0x35af73=_0x588c7e,_0x4c6ecd=this[_0x35af73(0x21e)](_0x99c0ef);if(_0x4c6ecd instanceof _0x3e5310)_0x4c6ecd[_0x35af73(0x214)](_0x274a4d);else{if(!(_0x4c6ecd instanceof _0x426664))throw new _0x254ce0(_0x35af73(0x217),null,{'itemView':_0x4c6ecd,'id':_0x99c0ef,'sources':_0x274a4d});_0x4c6ecd[_0x35af73(0x214)](_0x274a4d);}}async[_0x588c7e(0x21b)]({id:_0x45547d,parts:_0x358af4,renderingStrategy:_0x44ec2f,abortSignal:_0x31b348}){const _0x4f7152=_0x588c7e,_0x4d68af=this[_0x4f7152(0x21e)](_0x45547d);if(!(_0x4d68af instanceof _0x3e5310))throw new _0x254ce0(_0x4f7152(0x219),null,{'itemView':_0x4d68af,'id':_0x45547d,'parts':_0x358af4});await _0x4d68af[_0x4f7152(0x1fd)]({'parts':_0x358af4,'renderingStrategy':_0x44ec2f,'abortSignal':_0x31b348});}[_0x588c7e(0x1fb)]({id:_0x3cb05d,index:_0x2977ae,state:_0x147eb0}){const _0x20c6e6=_0x588c7e,_0x3690d1=this[_0x20c6e6(0x21e)](_0x3cb05d);if(!(_0x3690d1 instanceof _0x3e5310))throw new _0x254ce0(_0x20c6e6(0x219),this,{'id':_0x3cb05d});_0x3690d1[_0x20c6e6(0x210)](_0x2977ae,_0x147eb0);}[_0x588c7e(0x229)](_0x52269f){const _0xa2ef70=_0x588c7e;this[_0xa2ef70(0x21e)](_0x52269f)[_0xa2ef70(0x218)]();}[_0x588c7e(0x21a)](){const _0x22bf8e=_0x588c7e;return this[_0x22bf8e(0x1f2)][_0x22bf8e(0x1f4)](_0x4a64ae=>_0x4a64ae[_0x22bf8e(0x1e6)]['id']);}[_0x588c7e(0x1fa)](_0x52ec85){const _0x3c3fac=_0x588c7e;this[_0x3c3fac(0x1f2)][_0x3c3fac(0x231)](this[_0x3c3fac(0x21e)](_0x52ec85));}[_0x588c7e(0x1ef)](_0x132a5b,_0xc556b6){const _0x3d0ce0=_0x588c7e,_0x2013ea=this[_0x3d0ce0(0x21e)](_0x132a5b);if(!(_0x2013ea instanceof _0x3e5310))return void _0x2deb97(_0x3d0ce0(0x1e7),{'replyId':_0x132a5b,'partIndex':_0xc556b6});const _0x438557=_0x2013ea[_0x3d0ce0(0x203)](_0xc556b6);_0x438557?_0xfde5a8({'target':_0x438557[_0x3d0ce0(0x22c)],'ancestorOffset':0x14,'alignToTop':!0x0,'forceScroll':!0x0}):_0x2deb97(_0x3d0ce0(0x226),{'replyId':_0x132a5b,'partIndex':_0xc556b6});}[_0x588c7e(0x1f5)](){const _0x51e368=_0x588c7e;this[_0x51e368(0x221)]({'tag':_0x51e368(0x211),'attributes':{'class':['ck',_0x51e368(0x213)]},'children':this[_0x51e368(0x1fc)]()});}[_0x588c7e(0x1fc)](){const _0x19868d=_0x588c7e,_0x3dfbc2=this[_0x19868d(0x1f7)]();return[this[_0x19868d(0x212)](),_0x3dfbc2,this[_0x19868d(0x22e)]()];}[_0x588c7e(0x1f7)](){const _0x1b7af6=_0x588c7e,_0x10485d=new _0x16f68f(this[_0x1b7af6(0x22b)],_0x52d8d0[_0x1b7af6(0x228)]);return _0x10485d[_0x1b7af6(0x1f6)]({'attributes':{'class':[this[_0x1b7af6(0x20b)]['if'](_0x1b7af6(0x1ea),_0x1b7af6(0x1f1),_0x4e4bcc=>!_0x4e4bcc)]}}),_0x10485d;}[_0x588c7e(0x212)](){const _0x117862=_0x588c7e,_0x34d04f=new _0x4caf9c(this[_0x117862(0x22b)]);return _0x34d04f[_0x117862(0x221)]({'tag':_0x117862(0x211),'attributes':{'class':['ck',_0x117862(0x21f),this[_0x117862(0x20b)]['if'](_0x117862(0x1ea),_0x117862(0x1f1))]},'children':this[_0x117862(0x1f2)]}),_0x34d04f;}[_0x588c7e(0x22e)](){const _0x478596=_0x588c7e,_0x2e1382=new _0x4caf9c(this[_0x478596(0x22b)]);return _0x2e1382[_0x478596(0x221)]({'tag':_0x478596(0x211),'attributes':{'class':['ck',_0x478596(0x207),this[_0x478596(0x20b)]['if'](_0x478596(0x208),_0x478596(0x1f1),_0x3b9c10=>!_0x3b9c10)]},'children':this[_0x478596(0x21c)]()}),_0x2e1382;}[_0x588c7e(0x21c)](){const _0x469b6c=_0x588c7e,_0x302662=new _0x3ddc4f();return _0x302662[_0x469b6c(0x1e9)]=!0x0,[_0x302662,{'tag':_0x469b6c(0x1f3),'attributes':{'class':['ck',_0x469b6c(0x22f)]},'children':[{'text':this[_0x469b6c(0x20b)]['to'](_0x469b6c(0x230))}]}];}[_0x588c7e(0x21e)](_0x133178){const _0x208f00=_0x588c7e,_0x190955=this[_0x208f00(0x1f2)][_0x208f00(0x202)](_0x23c406=>_0x23c406[_0x208f00(0x1e6)]['id'][_0x208f00(0x1ee)](_0x133178));if(!_0x190955)throw new _0x254ce0(_0x208f00(0x206),this,{'id':_0x133178});return _0x190955;}[_0x588c7e(0x225)](_0x42dc0c){const _0x39fa9b=_0x588c7e;this[_0x39fa9b(0x20d)](_0x39fa9b(0x230),_0x42dc0c);}[_0x588c7e(0x215)](_0x63b774){const _0x312100=_0x588c7e;this[_0x312100(0x20d)](_0x312100(0x1ea),_0x63b774);}[_0x588c7e(0x20e)](){const _0x41515d=_0x588c7e;this[_0x41515d(0x1ec)][_0x41515d(0x204)]();}[_0x588c7e(0x216)](){const _0x184ba0=_0x588c7e;this[_0x184ba0(0x1ec)][_0x184ba0(0x1f0)]();}}
23
+ const _0x3704cb=_0x2464;(function(_0x13a615,_0x169863){const _0x567179=_0x2464,_0x2beb42=_0x13a615();while(!![]){try{const _0x17fc4b=parseInt(_0x567179(0x9c))/0x1+-parseInt(_0x567179(0x73))/0x2*(-parseInt(_0x567179(0x96))/0x3)+-parseInt(_0x567179(0xb8))/0x4*(parseInt(_0x567179(0xaf))/0x5)+-parseInt(_0x567179(0x7a))/0x6+-parseInt(_0x567179(0xb5))/0x7*(parseInt(_0x567179(0x7c))/0x8)+-parseInt(_0x567179(0x95))/0x9*(-parseInt(_0x567179(0x7b))/0xa)+parseInt(_0x567179(0x79))/0xb*(parseInt(_0x567179(0x6a))/0xc);if(_0x17fc4b===_0x169863)break;else _0x2beb42['push'](_0x2beb42['shift']());}catch(_0x2f5c9f){_0x2beb42['push'](_0x2beb42['shift']());}}}(_0x41f4,0x5197d));import{CKEditorError as _0x2e0fd6,logWarning as _0x456c63,scrollViewportToShowTarget as _0x2383c2}from'ckeditor5/src/utils.js';import{View as _0x3d1a7a}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x274f32}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x5175e9}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x3f3a51}from'./feed/aichatfeedreplyitemview.js';function _0x2464(_0x18bece,_0x3fbe23){const _0x41f49f=_0x41f4();return _0x2464=function(_0x246428,_0x435210){_0x246428=_0x246428-0x69;let _0xf75df1=_0x41f49f[_0x246428];return _0xf75df1;},_0x2464(_0x18bece,_0x3fbe23);}import{AIChatFeedUserMessageItemView as _0x493618}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x1037d5}from'./feed/aichatfeederroritemview.js';function _0x41f4(){const _0x20b249=['isLoadingSkeletonVisible','createCollection','locale','clear','_createFeedLoader','setLoadingMessage','ck-ai-chat__loader-text','getItemById','add','updateWebSources','updateSuggestionPartState','stopAutoScroll','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','options','ai-chat-feed-view-item-not-a-reply-item','remove','isVisible','2048373ZeYRLa','1131kBbmHc','element','ck-ai-chat__feed','updateSuggestionItem','scrollToSuggestion','toggleLoadingSkeleton','209557fXmbVO','updateReplyItem','delegate','interaction-header','destroy','find','_setupTemplate','markAsDone','updateContent','_createSkeletonLoader','updateSources','includes','ck-ai-chat__loader','removeItem','markItemAsDone','children','user-message','_createLoaderChildren','map','280205aSghqI','ai-reply','aiFeed','extendTemplate','updatePartState','span','105CFlEmP','scrollManager','isPending','4RWSjkm','getPartView','ai-chat-feed-view-item-not-a-suggestion-item','1816044ItWHGO','render','ck-ai-chat__feed__items','loadingMessage','_bodyCollection','getItemIds','ai-chat-feed-view-item-not-found','ai-suggestion-reply','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','3104LgkyFo','div','_createTemplateChildren','setTemplate','start','startAutoScroll','33AerrVB','3525888JlblCB','10mtXczh','265800tbvvNw','ck-hidden','_createFeedItems','set','stop','bindTemplate','addItem'];_0x41f4=function(){return _0x20b249;};return _0x41f4();}import{AIChatFeedInteractionHeaderView as _0x429aba}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x162c5f}from'../utils/scrollmanager.js';import{AISkeletonView as _0x50bee6,SKELETON_DEFINITIONS as _0x50e9be}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x4a95f2}from'../../aicore/ui/aispinner.js';export class AIChatFeedView extends _0x3d1a7a{[_0x3704cb(0xab)];[_0x3704cb(0xb6)];[_0x3704cb(0x6e)];constructor(_0x51d747,_0x2dbe78){const _0x8950aa=_0x3704cb;super(_0x51d747),this[_0x8950aa(0x6e)]=_0x2dbe78,this[_0x8950aa(0x7f)](_0x8950aa(0xb7),!0x1),this[_0x8950aa(0x7f)](_0x8950aa(0x6d),''),this[_0x8950aa(0x7f)](_0x8950aa(0x83),!0x1),this[_0x8950aa(0xab)]=this[_0x8950aa(0x84)](),this[_0x8950aa(0xab)][_0x8950aa(0x9e)](..._0x274f32)['to'](this),this[_0x8950aa(0xa2)]();}[_0x3704cb(0x6b)](){const _0x1c2cc7=_0x3704cb;super[_0x1c2cc7(0x6b)](),this[_0x1c2cc7(0xb6)]=new _0x162c5f(this[_0x1c2cc7(0x97)]);}[_0x3704cb(0xa0)](){const _0x28a5c7=_0x3704cb;super[_0x28a5c7(0xa0)](),this[_0x28a5c7(0xb6)][_0x28a5c7(0xa0)]();}[_0x3704cb(0x86)](){const _0x4968d1=_0x3704cb;this[_0x4968d1(0xab)][_0x4968d1(0x86)]();}[_0x3704cb(0x82)](_0x3a6ee4,_0x4cc980){const _0x4e7063=_0x3704cb;let _0x1a5298;_0x1a5298=_0x4e7063(0xb0)===_0x3a6ee4?new _0x3f3a51(this[_0x4e7063(0x85)],_0x4cc980):_0x4e7063(0x71)===_0x3a6ee4?new _0x5175e9(this[_0x4e7063(0x85)],_0x4cc980):_0x4e7063(0xac)===_0x3a6ee4?new _0x493618(this[_0x4e7063(0x85)],_0x4cc980,this[_0x4e7063(0x6e)]):_0x4e7063(0x9f)===_0x3a6ee4?new _0x429aba(this[_0x4e7063(0x85)],_0x4cc980):new _0x1037d5(_0x4cc980),this[_0x4e7063(0xab)][_0x4e7063(0x8b)](_0x1a5298);}async[_0x3704cb(0x9d)]({id:_0x22fa0a,parsedContent:_0x75e6fd,renderingStrategy:_0x58a3c5,abortSignal:_0x1ede1d}){const _0x18e098=_0x3704cb,_0x3f4ce0=this[_0x18e098(0x8a)](_0x22fa0a);if(!(_0x3f4ce0 instanceof _0x3f3a51))throw new _0x2e0fd6(_0x18e098(0x92),null,{'itemView':_0x3f4ce0,'id':_0x22fa0a,'parsedContent':_0x75e6fd});await _0x3f4ce0[_0x18e098(0xa4)]({'parsedContent':_0x75e6fd,'renderingStrategy':_0x58a3c5,'abortSignal':_0x1ede1d});}async[_0x3704cb(0x8c)](_0x44d31f,_0x2b429d){const _0x164fac=_0x3704cb,_0x24dcf2=this[_0x164fac(0x8a)](_0x44d31f);if(_0x24dcf2 instanceof _0x5175e9)_0x24dcf2[_0x164fac(0xa6)](_0x2b429d);else{if(!(_0x24dcf2 instanceof _0x3f3a51))throw new _0x2e0fd6(_0x164fac(0x72),null,{'itemView':_0x24dcf2,'id':_0x44d31f,'sources':_0x2b429d});_0x24dcf2[_0x164fac(0xa6)](_0x2b429d);}}async[_0x3704cb(0x99)]({id:_0x1479ba,parts:_0x2e64b1,renderingStrategy:_0x2d3545,abortSignal:_0x463312}){const _0x45ab38=_0x3704cb,_0x22a103=this[_0x45ab38(0x8a)](_0x1479ba);if(!(_0x22a103 instanceof _0x5175e9))throw new _0x2e0fd6(_0x45ab38(0x69),null,{'itemView':_0x22a103,'id':_0x1479ba,'parts':_0x2e64b1});await _0x22a103[_0x45ab38(0xa4)]({'parts':_0x2e64b1,'renderingStrategy':_0x2d3545,'abortSignal':_0x463312});}[_0x3704cb(0x8d)]({id:_0x1d9b41,index:_0x4d4580,state:_0x37a57f}){const _0x21fc8b=_0x3704cb,_0x359b5d=this[_0x21fc8b(0x8a)](_0x1d9b41);if(!(_0x359b5d instanceof _0x5175e9))throw new _0x2e0fd6(_0x21fc8b(0x69),this,{'id':_0x1d9b41});_0x359b5d[_0x21fc8b(0xb3)](_0x4d4580,_0x37a57f);}[_0x3704cb(0xaa)](_0x37a0f7){const _0x448f4d=_0x3704cb;this[_0x448f4d(0x8a)](_0x37a0f7)[_0x448f4d(0xa3)]();}[_0x3704cb(0x6f)](){const _0x35a49a=_0x3704cb;return this[_0x35a49a(0xab)][_0x35a49a(0xae)](_0x4f73a6=>_0x4f73a6[_0x35a49a(0x91)]['id']);}[_0x3704cb(0xa9)](_0x1824f8){const _0x24e18d=_0x3704cb;this[_0x24e18d(0xab)][_0x24e18d(0x93)](this[_0x24e18d(0x8a)](_0x1824f8));}[_0x3704cb(0x9a)](_0x28e775,_0x21d3b4){const _0x34e92d=_0x3704cb,_0x10f7cf=this[_0x34e92d(0x8a)](_0x28e775);if(!(_0x10f7cf instanceof _0x5175e9))return void _0x456c63(_0x34e92d(0x90),{'replyId':_0x28e775,'partIndex':_0x21d3b4});const _0x386697=_0x10f7cf[_0x34e92d(0xb9)](_0x21d3b4);_0x386697?_0x2383c2({'target':_0x386697[_0x34e92d(0x97)],'ancestorOffset':0x14,'alignToTop':!0x0,'forceScroll':!0x0}):_0x456c63(_0x34e92d(0x8f),{'replyId':_0x28e775,'partIndex':_0x21d3b4});}[_0x3704cb(0xa2)](){const _0x1728e8=_0x3704cb;this[_0x1728e8(0x76)]({'tag':_0x1728e8(0x74),'attributes':{'class':['ck',_0x1728e8(0x98)]},'children':this[_0x1728e8(0x75)]()});}[_0x3704cb(0x75)](){const _0x2100a8=_0x3704cb,_0x202d1c=this[_0x2100a8(0xa5)]();return[this[_0x2100a8(0x7e)](),_0x202d1c,this[_0x2100a8(0x87)]()];}[_0x3704cb(0xa5)](){const _0x35bb13=_0x3704cb,_0x4a1d86=new _0x50bee6(this[_0x35bb13(0x85)],_0x50e9be[_0x35bb13(0xb1)]);return _0x4a1d86[_0x35bb13(0xb2)]({'attributes':{'class':[this[_0x35bb13(0x81)]['if'](_0x35bb13(0x83),_0x35bb13(0x7d),_0x44835f=>!_0x44835f)]}}),_0x4a1d86;}[_0x3704cb(0x7e)](){const _0x273dbe=_0x3704cb,_0x4af09e=new _0x3d1a7a(this[_0x273dbe(0x85)]);return _0x4af09e[_0x273dbe(0x76)]({'tag':_0x273dbe(0x74),'attributes':{'class':['ck',_0x273dbe(0x6c),this[_0x273dbe(0x81)]['if'](_0x273dbe(0x83),_0x273dbe(0x7d))]},'children':this[_0x273dbe(0xab)]}),_0x4af09e;}[_0x3704cb(0x87)](){const _0x412254=_0x3704cb,_0x8c400f=new _0x3d1a7a(this[_0x412254(0x85)]);return _0x8c400f[_0x412254(0x76)]({'tag':_0x412254(0x74),'attributes':{'class':['ck',_0x412254(0xa8),this[_0x412254(0x81)]['if'](_0x412254(0xb7),_0x412254(0x7d),_0x444e20=>!_0x444e20)]},'children':this[_0x412254(0xad)]()}),_0x8c400f;}[_0x3704cb(0xad)](){const _0x18b476=_0x3704cb,_0x1e8c40=new _0x4a95f2();return _0x1e8c40[_0x18b476(0x94)]=!0x0,[_0x1e8c40,{'tag':_0x18b476(0xb4),'attributes':{'class':['ck',_0x18b476(0x89)]},'children':[{'text':this[_0x18b476(0x81)]['to'](_0x18b476(0x6d))}]}];}[_0x3704cb(0x8a)](_0x283933){const _0x2ef810=_0x3704cb,_0x1dd3c6=this[_0x2ef810(0xab)][_0x2ef810(0xa1)](_0x390ba7=>_0x390ba7[_0x2ef810(0x91)]['id'][_0x2ef810(0xa7)](_0x283933));if(!_0x1dd3c6)throw new _0x2e0fd6(_0x2ef810(0x70),this,{'id':_0x283933});return _0x1dd3c6;}[_0x3704cb(0x88)](_0x461980){const _0x365c4b=_0x3704cb;this[_0x365c4b(0x7f)](_0x365c4b(0x6d),_0x461980);}[_0x3704cb(0x9b)](_0x53a470){const _0x13ccd4=_0x3704cb;this[_0x13ccd4(0x7f)](_0x13ccd4(0x83),_0x53a470);}[_0x3704cb(0x78)](){const _0x14bba9=_0x3704cb;this[_0x14bba9(0xb6)][_0x14bba9(0x77)]();}[_0x3704cb(0x8e)](){const _0x515762=_0x3704cb;this[_0x515762(0xb6)][_0x515762(0x80)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x5b3d(){const _0x43e52b=['startConversation','AI_CHAT_LABEL_NEW_CHAT','2913492EraNMk','_createStartConversationButton','5705196XeKmUD','5036235zTbwmC','603fKGYNT','fire','add','398968sTbTlm','2103268EslFXH','3vbHiFE','resizeButton','7458600xpYiih','conversationStartButton','isMaximized','ck-ai-chat__start-conversation','execute','848554MPflaU','ck-ai-header\x20ck-ai-header_chat','children','AI_CHAT_HEADING','set','locale'];_0x5b3d=function(){return _0x43e52b;};return _0x5b3d();}const _0x4fbb86=_0x1504;(function(_0x4dfb83,_0x1a6f52){const _0x242afc=_0x1504,_0x18fb1b=_0x4dfb83();while(!![]){try{const _0x28651a=-parseInt(_0x242afc(0x1c4))/0x1+-parseInt(_0x242afc(0x1d4))/0x2*(-parseInt(_0x242afc(0x1d5))/0x3)+parseInt(_0x242afc(0x1cc))/0x4+parseInt(_0x242afc(0x1cf))/0x5+parseInt(_0x242afc(0x1d7))/0x6+parseInt(_0x242afc(0x1ce))/0x7+-parseInt(_0x242afc(0x1d3))/0x8*(parseInt(_0x242afc(0x1d0))/0x9);if(_0x28651a===_0x1a6f52)break;else _0x18fb1b['push'](_0x18fb1b['shift']());}catch(_0x14ca5b){_0x18fb1b['push'](_0x18fb1b['shift']());}}}(_0x5b3d,0xa006f));function _0x1504(_0x3ade4e,_0x4cbdcf){const _0x5b3d79=_0x5b3d();return _0x1504=function(_0x150495,_0x27312f){_0x150495=_0x150495-0x1c4;let _0x2b87e4=_0x5b3d79[_0x150495];return _0x2b87e4;},_0x1504(_0x3ade4e,_0x4cbdcf);}import{ButtonView as _0x40ce88,FormHeaderView as _0x5ab043}from'ckeditor5/src/ui.js';import{IconPlus as _0x55e782,IconAIChat as _0x558014}from'ckeditor5/src/icons.js';import{getTranslation as _0x3d8c83}from'../../aicore/utils/common-translations.js';import{createResizeButton as _0x48b016}from'../../aicore/utils/createresizebutton.js';export class AIChatHeaderView extends _0x5ab043{[_0x4fbb86(0x1d8)];[_0x4fbb86(0x1d6)];constructor(_0x573bff,_0x1d5758){const _0x5d1127=_0x4fbb86;super(_0x573bff,{'label':_0x3d8c83(_0x573bff,_0x5d1127(0x1c7)),'class':_0x5d1127(0x1c5),'icon':_0x558014}),this[_0x5d1127(0x1c8)](_0x5d1127(0x1d9),!0x1),this[_0x5d1127(0x1d8)]=this[_0x5d1127(0x1cd)](_0x573bff),this[_0x5d1127(0x1c6)][_0x5d1127(0x1d2)](this[_0x5d1127(0x1d8)]),_0x1d5758&&(this[_0x5d1127(0x1d6)]=_0x48b016(_0x573bff,this),this[_0x5d1127(0x1c6)][_0x5d1127(0x1d2)](this[_0x5d1127(0x1d6)]));}[_0x4fbb86(0x1cd)](_0x1a63be){const _0x13c056=_0x4fbb86,_0x2f4a32=new _0x40ce88(_0x1a63be);return _0x2f4a32[_0x13c056(0x1c8)]({'label':_0x3d8c83(this[_0x13c056(0x1c9)],_0x13c056(0x1cb)),'withText':!0x0,'icon':_0x55e782,'class':_0x13c056(0x1da)}),_0x2f4a32['on'](_0x13c056(0x1db),()=>{const _0x57d889=_0x13c056;this[_0x57d889(0x1d1)](_0x57d889(0x1ca));}),_0x2f4a32;}}
23
+ const _0x3ee169=_0x3d5c;(function(_0x4f8bfc,_0x12ba5a){const _0x39e902=_0x3d5c,_0x1cc74d=_0x4f8bfc();while(!![]){try{const _0x2714be=parseInt(_0x39e902(0x1ec))/0x1*(-parseInt(_0x39e902(0x1eb))/0x2)+parseInt(_0x39e902(0x1f5))/0x3+-parseInt(_0x39e902(0x1fb))/0x4*(-parseInt(_0x39e902(0x1f4))/0x5)+-parseInt(_0x39e902(0x1e8))/0x6*(parseInt(_0x39e902(0x1ea))/0x7)+-parseInt(_0x39e902(0x1ed))/0x8+-parseInt(_0x39e902(0x1f2))/0x9+parseInt(_0x39e902(0x1f3))/0xa;if(_0x2714be===_0x12ba5a)break;else _0x1cc74d['push'](_0x1cc74d['shift']());}catch(_0x563799){_0x1cc74d['push'](_0x1cc74d['shift']());}}}(_0x3b81,0xc7934));import{ButtonView as _0xd77086,FormHeaderView as _0x3908a7}from'ckeditor5/src/ui.js';import{IconPlus as _0x3f10ba,IconAIChat as _0x3db927}from'ckeditor5/src/icons.js';import{getTranslation as _0xf38a28}from'../../aicore/utils/common-translations.js';import{createResizeButton as _0x57ab1e}from'../../aicore/utils/createresizebutton.js';function _0x3d5c(_0x25a0b7,_0x4709f3){const _0x3b8187=_0x3b81();return _0x3d5c=function(_0x3d5ccf,_0x1ea071){_0x3d5ccf=_0x3d5ccf-0x1e6;let _0x46f749=_0x3b8187[_0x3d5ccf];return _0x46f749;},_0x3d5c(_0x25a0b7,_0x4709f3);}export class AIChatHeaderView extends _0x3908a7{[_0x3ee169(0x1fc)];[_0x3ee169(0x1f6)];constructor(_0x300dc5,_0x527d5f){const _0x5bf24f=_0x3ee169;super(_0x300dc5,{'label':_0xf38a28(_0x300dc5,_0x5bf24f(0x1e6)),'class':_0x5bf24f(0x1e7),'icon':_0x3db927}),this[_0x5bf24f(0x1ee)](_0x5bf24f(0x1e9),!0x1),this[_0x5bf24f(0x1fc)]=this[_0x5bf24f(0x1f9)](_0x300dc5),this[_0x5bf24f(0x1ef)][_0x5bf24f(0x1fa)](this[_0x5bf24f(0x1fc)]),_0x527d5f&&(this[_0x5bf24f(0x1f6)]=_0x57ab1e(_0x300dc5,this),this[_0x5bf24f(0x1ef)][_0x5bf24f(0x1fa)](this[_0x5bf24f(0x1f6)]));}[_0x3ee169(0x1f9)](_0x2b03cb){const _0x36868e=_0x3ee169,_0x2ea23f=new _0xd77086(_0x2b03cb);return _0x2ea23f[_0x36868e(0x1ee)]({'label':_0xf38a28(this[_0x36868e(0x1f8)],_0x36868e(0x1fd)),'withText':!0x0,'icon':_0x3f10ba,'class':_0x36868e(0x1fe)}),_0x2ea23f['on'](_0x36868e(0x1f0),()=>{const _0x43605c=_0x36868e;this[_0x43605c(0x1f1)](_0x43605c(0x1f7));}),_0x2ea23f;}}function _0x3b81(){const _0x181381=['fire','14290092ybVhaO','26453000XfnGDb','2230355svezcc','3688044nKIrHP','resizeButton','startConversation','locale','_createStartConversationButton','add','8vmjhGl','conversationStartButton','AI_CHAT_LABEL_NEW_CHAT','ck-ai-chat__start-conversation','AI_CHAT_HEADING','ck-ai-header\x20ck-ai-header_chat','1774860DeTvkU','isMaximized','7MxYnjH','74rSiZqv','40685ljldbF','4483096wspWci','set','children','execute'];_0x3b81=function(){return _0x181381;};return _0x3b81();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x451b5d=_0x5069;(function(_0x18d495,_0x5c5826){var _0x4e2c2b=_0x5069,_0x1797a9=_0x18d495();while(!![]){try{var _0x8bd265=-parseInt(_0x4e2c2b(0x1ac))/0x1*(-parseInt(_0x4e2c2b(0x1a2))/0x2)+parseInt(_0x4e2c2b(0x1b8))/0x3*(-parseInt(_0x4e2c2b(0x1b9))/0x4)+-parseInt(_0x4e2c2b(0x1b6))/0x5*(-parseInt(_0x4e2c2b(0x1b4))/0x6)+parseInt(_0x4e2c2b(0x1b1))/0x7*(-parseInt(_0x4e2c2b(0x1ad))/0x8)+-parseInt(_0x4e2c2b(0x1ae))/0x9*(parseInt(_0x4e2c2b(0x1bc))/0xa)+parseInt(_0x4e2c2b(0x1bb))/0xb+-parseInt(_0x4e2c2b(0x1ab))/0xc*(parseInt(_0x4e2c2b(0x1a9))/0xd);if(_0x8bd265===_0x5c5826)break;else _0x1797a9['push'](_0x1797a9['shift']());}catch(_0x3b0e81){_0x1797a9['push'](_0x1797a9['shift']());}}}(_0x6e84,0x3f93a));function _0x6e84(){var _0x5daa92=['454065YFkVZL','4NOPyiA','ck-ai-chat','3649921bIstgV','1099090eZezxD','_bodyCollection','populateSourceResourceBalloon','closeSourceResourceBalloon','572XhIlAa','detachFromDom','ck-rounded-corners','uiLanguageDirection','ck-reset_all','attachToDom','chatControls','1530568sLOBLy','chatFeed','12FsVspq','908FjHAmh','48MQegEQ','9IbysQe','div','destroy','176071gLxSNT','setTemplate','delegate','1192974AVcCZf','chatHeader','5ScdXnm','chatDisclaimer'];_0x6e84=function(){return _0x5daa92;};return _0x6e84();}import{View as _0x2f2d2e,BodyCollection as _0x49669a}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x4758fe}from'../utils/eventnames.js';import{AIChatFeedView as _0x3cd60f}from'./aichatfeedview.js';import{AIChatControlsView as _0x33c6e4}from'./aichatcontrolsview.js';function _0x5069(_0x3a1423,_0x1a6ef5){var _0x6e84e7=_0x6e84();return _0x5069=function(_0x50690e,_0x560d15){_0x50690e=_0x50690e-0x19f;var _0x264697=_0x6e84e7[_0x50690e];return _0x264697;},_0x5069(_0x3a1423,_0x1a6ef5);}import{AIChatHeaderView as _0x5a968b}from'./aichatheaderview.js';import{AIDisclaimerView as _0x4b9609}from'../../aicore/ui/aidisclaimerview.js';export class AIChatView extends _0x2f2d2e{[_0x451b5d(0x1b5)];[_0x451b5d(0x1aa)];[_0x451b5d(0x1a8)];[_0x451b5d(0x1b7)];[_0x451b5d(0x19f)];constructor(_0x22f235,_0x1ac730){var _0x28a084=_0x451b5d;super(_0x22f235),this[_0x28a084(0x19f)]=new _0x49669a(_0x22f235),this[_0x28a084(0x19f)][_0x28a084(0x1a7)](),this[_0x28a084(0x1b5)]=new _0x5a968b(_0x22f235,_0x1ac730),this[_0x28a084(0x1b5)][_0x28a084(0x1b3)](..._0x4758fe)['to'](this),this[_0x28a084(0x1aa)]=new _0x3cd60f(_0x22f235,this[_0x28a084(0x19f)]),this[_0x28a084(0x1aa)][_0x28a084(0x1b3)](..._0x4758fe)['to'](this),this[_0x28a084(0x1a8)]=new _0x33c6e4(_0x22f235,this[_0x28a084(0x19f)]),this[_0x28a084(0x1a8)][_0x28a084(0x1b3)](..._0x4758fe)['to'](this),this[_0x28a084(0x1b7)]=new _0x4b9609(_0x22f235),this[_0x28a084(0x1b2)]({'tag':_0x28a084(0x1af),'attributes':{'class':['ck',_0x28a084(0x1a6),_0x28a084(0x1ba),_0x28a084(0x1a4)],'dir':_0x22f235[_0x28a084(0x1a5)]},'children':[this[_0x28a084(0x1b5)],this[_0x28a084(0x1aa)],this[_0x28a084(0x1a8)],this[_0x28a084(0x1b7)]]});}[_0x451b5d(0x1a0)](_0x4f87de,_0x35acf1,_0x11c7fa,_0x308d38){var _0x3d92ba=_0x451b5d;this[_0x3d92ba(0x1a8)][_0x3d92ba(0x1a0)](_0x4f87de,_0x35acf1,_0x11c7fa,_0x308d38);}[_0x451b5d(0x1a1)](_0x197f51){var _0x1c073e=_0x451b5d;this[_0x1c073e(0x1a8)][_0x1c073e(0x1a1)](_0x197f51);}[_0x451b5d(0x1b0)](){var _0x561cb9=_0x451b5d;this[_0x561cb9(0x19f)][_0x561cb9(0x1a3)](),super[_0x561cb9(0x1b0)]();}}
23
+ function _0x5f00(){var _0x3bf5ff=['12oDWKku','populateSourceResourceBalloon','detachFromDom','chatHeader','1746920PnjaRw','ck-ai-chat','_bodyCollection','destroy','1774350EOMWhp','10Njejsv','ck-rounded-corners','setTemplate','ck-reset_all','uiLanguageDirection','delegate','chatControls','1871vMJTOH','277792HUSmjA','1469012dhTWWf','attachToDom','chatDisclaimer','closeSourceResourceBalloon','chatFeed','462qxmnMP','11263887zZCofU','2283778fbhqmz','div'];_0x5f00=function(){return _0x3bf5ff;};return _0x5f00();}var _0x10867c=_0x4f68;(function(_0x14e894,_0xe8b1d6){var _0x59551b=_0x4f68,_0x34d99b=_0x14e894();while(!![]){try{var _0x5de58b=parseInt(_0x59551b(0x108))/0x1*(parseInt(_0x59551b(0x10f))/0x2)+parseInt(_0x59551b(0x100))/0x3+-parseInt(_0x59551b(0x10a))/0x4+parseInt(_0x59551b(0xfc))/0x5+parseInt(_0x59551b(0x113))/0x6*(parseInt(_0x59551b(0x111))/0x7)+parseInt(_0x59551b(0x109))/0x8+parseInt(_0x59551b(0x110))/0x9*(-parseInt(_0x59551b(0x101))/0xa);if(_0x5de58b===_0xe8b1d6)break;else _0x34d99b['push'](_0x34d99b['shift']());}catch(_0x3aa9db){_0x34d99b['push'](_0x34d99b['shift']());}}}(_0x5f00,0x6bc7f));function _0x4f68(_0x2f48c1,_0x44dcf8){var _0x5f0097=_0x5f00();return _0x4f68=function(_0x4f684c,_0x1908cc){_0x4f684c=_0x4f684c-0xfb;var _0x55f6c8=_0x5f0097[_0x4f684c];return _0x55f6c8;},_0x4f68(_0x2f48c1,_0x44dcf8);}import{View as _0x208caa,BodyCollection as _0x304369}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0xb06caf}from'../utils/eventnames.js';import{AIChatFeedView as _0x12d1b8}from'./aichatfeedview.js';import{AIChatControlsView as _0x5020f4}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x407971}from'./aichatheaderview.js';import{AIDisclaimerView as _0x4102e8}from'../../aicore/ui/aidisclaimerview.js';export class AIChatView extends _0x208caa{[_0x10867c(0xfb)];[_0x10867c(0x10e)];[_0x10867c(0x107)];[_0x10867c(0x10c)];[_0x10867c(0xfe)];constructor(_0xe42b4c,_0x9c3329){var _0x30be08=_0x10867c;super(_0xe42b4c),this[_0x30be08(0xfe)]=new _0x304369(_0xe42b4c),this[_0x30be08(0xfe)][_0x30be08(0x10b)](),this[_0x30be08(0xfb)]=new _0x407971(_0xe42b4c,_0x9c3329),this[_0x30be08(0xfb)][_0x30be08(0x106)](..._0xb06caf)['to'](this),this[_0x30be08(0x10e)]=new _0x12d1b8(_0xe42b4c,this[_0x30be08(0xfe)]),this[_0x30be08(0x10e)][_0x30be08(0x106)](..._0xb06caf)['to'](this),this[_0x30be08(0x107)]=new _0x5020f4(_0xe42b4c,this[_0x30be08(0xfe)]),this[_0x30be08(0x107)][_0x30be08(0x106)](..._0xb06caf)['to'](this),this[_0x30be08(0x10c)]=new _0x4102e8(_0xe42b4c),this[_0x30be08(0x103)]({'tag':_0x30be08(0x112),'attributes':{'class':['ck',_0x30be08(0x104),_0x30be08(0xfd),_0x30be08(0x102)],'dir':_0xe42b4c[_0x30be08(0x105)]},'children':[this[_0x30be08(0xfb)],this[_0x30be08(0x10e)],this[_0x30be08(0x107)],this[_0x30be08(0x10c)]]});}[_0x10867c(0x114)](_0x8bffde,_0x2224c5,_0x36322d,_0x284434){var _0x201e9d=_0x10867c;this[_0x201e9d(0x107)][_0x201e9d(0x114)](_0x8bffde,_0x2224c5,_0x36322d,_0x284434);}[_0x10867c(0x10d)](_0x174bc5){var _0x4f7f3c=_0x10867c;this[_0x4f7f3c(0x107)][_0x4f7f3c(0x10d)](_0x174bc5);}[_0x10867c(0xff)](){var _0x19ccae=_0x10867c;this[_0x19ccae(0xfe)][_0x19ccae(0x115)](),super[_0x19ccae(0xff)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x40cfd0=_0x5170;function _0x5170(_0x137084,_0x869867){const _0x30923a=_0x3092();return _0x5170=function(_0x517044,_0x3ec749){_0x517044=_0x517044-0xde;let _0xab6ab6=_0x30923a[_0x517044];return _0xab6ab6;},_0x5170(_0x137084,_0x869867);}(function(_0x4892f8,_0x2c0f39){const _0x2e33b8=_0x5170,_0x5830c0=_0x4892f8();while(!![]){try{const _0x585761=parseInt(_0x2e33b8(0xf4))/0x1*(-parseInt(_0x2e33b8(0x13f))/0x2)+-parseInt(_0x2e33b8(0x170))/0x3+parseInt(_0x2e33b8(0xde))/0x4*(-parseInt(_0x2e33b8(0x154))/0x5)+parseInt(_0x2e33b8(0x129))/0x6+parseInt(_0x2e33b8(0x16c))/0x7+-parseInt(_0x2e33b8(0x15b))/0x8*(parseInt(_0x2e33b8(0x147))/0x9)+parseInt(_0x2e33b8(0x109))/0xa;if(_0x585761===_0x2c0f39)break;else _0x5830c0['push'](_0x5830c0['shift']());}catch(_0x278df7){_0x5830c0['push'](_0x5830c0['shift']());}}}(_0x3092,0x59f48));function _0x3092(){const _0x5e4135=['getComputedStyle','overflowContainer','999060Fmyieg','_createMockButton','clientWidth','pop','disconnect','right','bottom','style','_createShowMoreButtonView','reorganizeChips','innerWidth','auto','isOn','_repinBalloonPanel','offsetWidth','_isContainerVisible','visibility','body','observe','_calculateContainerWidth','showMoreButton','push','25656OYjkvo','_createShowMoreButton','hidden','_overflowChips','+\x201','_targetContainer','_updateShowMoreButtonVisibility','tagName','15786jNerJs','display','_distributeChips','cloneNode','showBalloonPanel','calculationContainer','destroy','add','innerHeight','block\x20!important','content','element','_applyOverflowResults','5Utabfl','pin','includes','-9999px','controlsButton','_parentView','ck-calculation-container','536PerowT','_showMoreButtonView','boxSizing','setTemplate','_createContainerElements','execute','border-box','_showMoreBalloonPanelView','abs','visible','absolute','innerHTML','undefined','show','disableAnimationOnEnter','div','_setupVisibilityObserver','5132876LaBRFA','_updateOverflowUI','documentElement','setContainerElement','1942281EKhzUc','from','2815496yhGiRo','render','classList','children','0px','zIndex','_pendingCalculation','_createShowMoreBalloonPanelView','_intersectionObserver','_calculateOverflowInContainer','.ck-ai-chat','overflowChips','length','forEach','_visibleChips','rowDetectionTolerance','button','_config','width','some','_updateBalloonContent','none','10zjKhhx','showMoreLabelPrefix','_handleShowMoreButtonClick','label','createElement','50px','className','left','pointerEvents','top','appendChild','_containerElement','remove','_ancestorsToRestore','cssClasses','showMoreBalloon','set','querySelector','height','_checkAndHandleOverflow','isIntersecting','10657770pxPuSp','parentElement','hideBalloonPanel','getBoundingClientRect','block','isConnected','toLowerCase','300px','_locale','_renderChipsAndCountRows','filter','_createCalculationContainer','_bodyCollection','_restoreAncestorVisibility','maxVisibleRows','clear','opacity','isVisible','_makeAncestorsVisible','slice','position','textContent','showMoreButtonView','_testButtonFit','visible\x20!important','_applyCalculationStyles','_findTargetContainer','hide','extendTemplate','clientHeight'];_0x3092=function(){return _0x5e4135;};return _0x3092();}import{View as _0x344de5,BalloonPanelView as _0x2c75e1,ButtonView as _0x323fb2,clickOutsideHandler as _0x4dfbf2}from'ckeditor5/src/ui.js';import{Collection as _0x476ac6}from'ckeditor5/src/utils.js';const wn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},_n=_0x40cfd0(0x110);export class AIChatChipsOverflowManager{[_0x40cfd0(0x111)];[_0x40cfd0(0xef)];[_0x40cfd0(0xec)];[_0x40cfd0(0x142)];[_0x40cfd0(0x15c)]=null;[_0x40cfd0(0x162)]=null;[_0x40cfd0(0xff)]=null;[_0x40cfd0(0x115)];[_0x40cfd0(0x159)]=null;[_0x40cfd0(0xe6)]=null;[_0x40cfd0(0xe4)]=!0x1;constructor(_0x33db8a,_0x298836,_0x5ab03b,_0xb217dc,_0x3db2e3){const _0x58a174=_0x40cfd0;this[_0x58a174(0x111)]=_0x33db8a,this[_0x58a174(0xec)]=_0x298836,this[_0x58a174(0xef)]={...wn,..._0x5ab03b,'cssClasses':{'controlsButton':'','calculationContainer':_0x58a174(0x15a),..._0x5ab03b[_0x58a174(0x102)]}},this[_0x58a174(0x142)]=new _0x476ac6(),this[_0x58a174(0x115)]=_0xb217dc,this[_0x58a174(0x159)]=_0x3db2e3||null;}[_0x40cfd0(0x16f)](_0xfe6d8c){const _0x201a00=_0x40cfd0;this[_0x201a00(0xe6)]&&(this[_0x201a00(0xe6)][_0x201a00(0x12d)](),this[_0x201a00(0xe6)]=null),this[_0x201a00(0xff)]=_0xfe6d8c,this[_0x201a00(0x16b)]();}get[_0x40cfd0(0x11f)](){const _0x28a2b4=_0x40cfd0;return this[_0x28a2b4(0x15c)];}get[_0x40cfd0(0xe9)](){const _0xb164f0=_0x40cfd0;return this[_0xb164f0(0x142)];}[_0x40cfd0(0x132)](){requestAnimationFrame(()=>{const _0x51761b=_0x5170;this[_0x51761b(0x107)]();});}[_0x40cfd0(0x14b)](){const _0x5b93d2=_0x40cfd0;this[_0x5b93d2(0x15c)]&&this[_0x5b93d2(0x162)]&&(this[_0x5b93d2(0xf2)](),this[_0x5b93d2(0x15c)][_0x5b93d2(0x135)]=!0x0,this[_0x5b93d2(0x162)][_0x5b93d2(0x168)](),this[_0x5b93d2(0x162)][_0x5b93d2(0x155)]({'target':this[_0x5b93d2(0x15c)][_0x5b93d2(0x152)],'limiter':document[_0x5b93d2(0x105)](_0x5b93d2(0xe8))}));}[_0x40cfd0(0x10b)](){const _0x1b7d04=_0x40cfd0;this[_0x1b7d04(0x15c)]&&this[_0x1b7d04(0x162)]&&(this[_0x1b7d04(0x15c)][_0x1b7d04(0x135)]=!0x1,this[_0x1b7d04(0x162)][_0x1b7d04(0x124)]());}[_0x40cfd0(0x118)](){const _0x3ed850=_0x40cfd0;this[_0x3ed850(0x142)][_0x3ed850(0x118)](),this[_0x3ed850(0x10b)](),this[_0x3ed850(0x145)](),this[_0x3ed850(0x15c)]&&(this[_0x3ed850(0x15c)][_0x3ed850(0xf7)]=''),this[_0x3ed850(0x162)]&&this[_0x3ed850(0x162)][_0x3ed850(0x151)][_0x3ed850(0x118)]();}[_0x40cfd0(0x14d)](){const _0x5ee2cc=_0x40cfd0;this[_0x5ee2cc(0xe6)]&&(this[_0x5ee2cc(0xe6)][_0x5ee2cc(0x12d)](),this[_0x5ee2cc(0xe6)]=null),this[_0x5ee2cc(0x15c)]&&(this[_0x5ee2cc(0x15c)][_0x5ee2cc(0x14d)](),this[_0x5ee2cc(0x15c)]=null),this[_0x5ee2cc(0x162)]&&(this[_0x5ee2cc(0x162)][_0x5ee2cc(0x14d)](),this[_0x5ee2cc(0x162)]=null);}[_0x40cfd0(0x107)](){const _0xa7c93b=_0x40cfd0;if(!this[_0xa7c93b(0xff)])return;if(!this[_0xa7c93b(0x138)]())return void(this[_0xa7c93b(0xe4)]=!0x0);this[_0xa7c93b(0xe4)]=!0x1;const _0x28118c=[...this[_0xa7c93b(0xec)],...this[_0xa7c93b(0x142)]],_0x16aaa9=this[_0xa7c93b(0x114)](),_0x3f6e66=this[_0xa7c93b(0xe7)](_0x16aaa9,_0x28118c),_0x5a3c04=_0x16aaa9[_0xa7c93b(0x101)];_0x5a3c04&&this[_0xa7c93b(0x116)](_0x5a3c04),_0x16aaa9[_0xa7c93b(0x100)](),this[_0xa7c93b(0x153)](_0x28118c,_0x3f6e66);}[_0x40cfd0(0x140)](){const _0x3f12a2=_0x40cfd0;this[_0x3f12a2(0x15c)]=this[_0x3f12a2(0x131)](),this[_0x3f12a2(0x162)]=this[_0x3f12a2(0xe5)](),this[_0x3f12a2(0x15c)][_0x3f12a2(0xdf)](),this[_0x3f12a2(0xff)][_0x3f12a2(0xfe)](this[_0x3f12a2(0x15c)][_0x3f12a2(0x152)]),this[_0x3f12a2(0x15c)]['on'](_0x3f12a2(0x160),()=>{const _0x584bd7=_0x3f12a2;this[_0x584bd7(0xf6)]();}),_0x4dfbf2({'emitter':this[_0x3f12a2(0x162)],'contextElements':[this[_0x3f12a2(0x162)][_0x3f12a2(0x152)],this[_0x3f12a2(0x15c)][_0x3f12a2(0x152)]],'callback':()=>this[_0x3f12a2(0x10b)](),'activator':()=>this[_0x3f12a2(0x15c)][_0x3f12a2(0x135)]});}[_0x40cfd0(0x131)](){const _0x219910=_0x40cfd0,_0x3489f3=new _0x323fb2(this[_0x219910(0x111)]);_0x3489f3[_0x219910(0x104)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x4e7587=[this[_0x219910(0xef)][_0x219910(0x102)][_0x219910(0x13d)]];return this[_0x219910(0xef)][_0x219910(0x102)][_0x219910(0x158)]&&_0x4e7587[_0x219910(0x13e)](this[_0x219910(0xef)][_0x219910(0x102)][_0x219910(0x158)]),_0x3489f3[_0x219910(0x125)]({'attributes':{'class':_0x4e7587}}),_0x3489f3;}[_0x40cfd0(0xe5)](){const _0x5be973=_0x40cfd0,_0x44f4bc=new _0x2c75e1(this[_0x5be973(0x111)]);return _0x44f4bc[_0x5be973(0x125)]({'attributes':{'class':this[_0x5be973(0xef)][_0x5be973(0x102)][_0x5be973(0x103)]}}),this[_0x5be973(0x115)][_0x5be973(0x14e)](_0x44f4bc),_0x44f4bc;}[_0x40cfd0(0xf2)](){const _0x34859b=_0x40cfd0;if(this[_0x34859b(0x162)]&&(this[_0x34859b(0x162)][_0x34859b(0x151)][_0x34859b(0x118)](),this[_0x34859b(0x142)][_0x34859b(0xea)]>0x0)){this[_0x34859b(0x142)][_0x34859b(0xeb)](_0x29b7cc=>{const _0x5b7ff6=_0x34859b;_0x29b7cc[_0x5b7ff6(0x169)]();});const _0x1d1c77=new _0x344de5(this[_0x34859b(0x111)]);_0x1d1c77[_0x34859b(0x15e)]({'tag':_0x34859b(0x16a),'attributes':{'class':this[_0x34859b(0xef)][_0x34859b(0x102)][_0x34859b(0x128)]},'children':this[_0x34859b(0x142)]}),this[_0x34859b(0x162)][_0x34859b(0x151)][_0x34859b(0x14e)](_0x1d1c77);}}[_0x40cfd0(0xf6)](){const _0x3b4aa5=_0x40cfd0;this[_0x3b4aa5(0x15c)][_0x3b4aa5(0x135)]?this[_0x3b4aa5(0x10b)]():this[_0x3b4aa5(0x14b)]();}[_0x40cfd0(0x145)](){const _0x388454=_0x40cfd0,_0x2f5515=this[_0x388454(0x142)][_0x388454(0xea)]>0x0;this[_0x388454(0x15c)]?.[_0x388454(0x152)]&&(this[_0x388454(0x15c)][_0x388454(0x152)][_0x388454(0x130)][_0x388454(0x148)]=_0x2f5515?'':_0x388454(0xf3));}[_0x40cfd0(0x136)](){const _0x8d1398=_0x40cfd0;this[_0x8d1398(0x15c)]?.[_0x8d1398(0x135)]&&this[_0x8d1398(0x162)]?.[_0x8d1398(0x11a)]&&this[_0x8d1398(0x15c)][_0x8d1398(0x152)]&&this[_0x8d1398(0x162)][_0x8d1398(0x155)]({'target':this[_0x8d1398(0x15c)][_0x8d1398(0x152)],'limiter':document[_0x8d1398(0x105)](_0x8d1398(0xe8))});}[_0x40cfd0(0x123)](_0x2b9376){const _0x55c8de=_0x40cfd0,_0x1b4836=this[_0x55c8de(0xff)]?.[_0x55c8de(0x146)][_0x55c8de(0x10f)]()||_0x55c8de(0x16a),_0x1b768c=this[_0x55c8de(0xff)]?.[_0x55c8de(0xe0)];if(_0x1b768c){const _0x6394bf=_0x1b768c[0x0]||'',_0x2652d4=_0x2b9376[_0x55c8de(0x105)]('.'+_0x6394bf),_0x564de1=_0x2b9376[_0x55c8de(0x105)](_0x1b4836);return _0x2652d4||_0x564de1||_0x2b9376;}return _0x2b9376[_0x55c8de(0x105)](_0x1b4836)||_0x2b9376;}[_0x40cfd0(0x13c)](){const _0x4d4f46=_0x40cfd0,_0x348c99=this[_0x4d4f46(0x159)]?.[_0x4d4f46(0x152)]||this[_0x4d4f46(0xff)];if(!_0x348c99)return _n;const _0x3fa22b=window[_0x4d4f46(0x127)](_0x348c99)[_0x4d4f46(0xf0)];if(_0x4d4f46(0x134)===_0x3fa22b||_0x4d4f46(0xe2)===_0x3fa22b||!_0x3fa22b){const _0x16db9b=_0x348c99[_0x4d4f46(0x10a)];if(_0x16db9b){const _0x34be58=window[_0x4d4f46(0x127)](_0x16db9b);return _0x4d4f46(0x134)!==_0x34be58[_0x4d4f46(0xf0)]?_0x34be58[_0x4d4f46(0xf0)]:_n;}return _n;}return _0x3fa22b;}[_0x40cfd0(0x122)](_0x408e9c,_0x56f05a){const _0x5efbca=_0x40cfd0;this[_0x5efbca(0xef)][_0x5efbca(0x102)][_0x5efbca(0x14c)]&&_0x408e9c[_0x5efbca(0xe0)][_0x5efbca(0x14e)](this[_0x5efbca(0xef)][_0x5efbca(0x102)][_0x5efbca(0x14c)]),_0x408e9c[_0x5efbca(0x130)][_0x5efbca(0xf0)]=_0x56f05a,_0x408e9c[_0x5efbca(0x130)][_0x5efbca(0x11d)]=_0x5efbca(0x165),_0x408e9c[_0x5efbca(0x130)][_0x5efbca(0xfd)]=_0x5efbca(0x157),_0x408e9c[_0x5efbca(0x130)][_0x5efbca(0xfb)]=_0x5efbca(0x157),_0x408e9c[_0x5efbca(0x130)][_0x5efbca(0x119)]='0',_0x408e9c[_0x5efbca(0x130)][_0x5efbca(0xfc)]=_0x5efbca(0xf3),_0x408e9c[_0x5efbca(0x130)][_0x5efbca(0xe3)]='-1',_0x408e9c[_0x5efbca(0x130)][_0x5efbca(0x139)]=_0x5efbca(0x121),_0x408e9c[_0x5efbca(0x130)][_0x5efbca(0x148)]=_0x5efbca(0x150),_0x408e9c[_0x5efbca(0x130)][_0x5efbca(0x15d)]=_0x5efbca(0x161);}[_0x40cfd0(0x116)](_0x446f95){const _0x3b7afe=_0x40cfd0;_0x446f95[_0x3b7afe(0xeb)](({element:_0x722349,originalDisplay:_0xdea2c6,originalVisibility:_0x46e2f7})=>{const _0x596517=_0x3b7afe;_0x722349[_0x596517(0x130)][_0x596517(0x148)]=_0xdea2c6,_0x722349[_0x596517(0x130)][_0x596517(0x139)]=_0x46e2f7;});}[_0x40cfd0(0x11b)](_0x51681c){const _0x441f6d=_0x40cfd0,_0x37bd66=[];let _0x214522=_0x51681c;for(;_0x214522&&_0x214522!==document[_0x441f6d(0x13a)];){const _0x55c182=window[_0x441f6d(0x127)](_0x214522);_0x441f6d(0xf3)!==_0x55c182[_0x441f6d(0x148)]&&_0x441f6d(0x141)!==_0x55c182[_0x441f6d(0x139)]||(_0x37bd66[_0x441f6d(0x13e)]({'element':_0x214522,'originalDisplay':_0x214522[_0x441f6d(0x130)][_0x441f6d(0x148)],'originalVisibility':_0x214522[_0x441f6d(0x130)][_0x441f6d(0x139)]}),_0x214522[_0x441f6d(0x130)][_0x441f6d(0x148)]=_0x441f6d(0x10d),_0x214522[_0x441f6d(0x130)][_0x441f6d(0x139)]=_0x441f6d(0x164)),_0x214522=_0x214522[_0x441f6d(0x10a)];}return _0x37bd66;}[_0x40cfd0(0x15f)](){const _0x483372=_0x40cfd0;let _0x4d6fae,_0x2fd627;return this[_0x483372(0x159)]?.[_0x483372(0x152)]?(_0x4d6fae=this[_0x483372(0x159)][_0x483372(0x152)][_0x483372(0x14a)](!0x0),_0x2fd627=this[_0x483372(0x123)](_0x4d6fae)):(_0x4d6fae=document[_0x483372(0xf8)](_0x483372(0x16a)),_0x2fd627=_0x4d6fae),{'calculationContainer':_0x4d6fae,'targetContainer':_0x2fd627};}[_0x40cfd0(0x114)](){const _0x34eba2=_0x40cfd0,{calculationContainer:_0x442a5d,targetContainer:_0xa716cb}=this[_0x34eba2(0x15f)](),_0x5ab85a=this[_0x34eba2(0x13c)]();this[_0x34eba2(0x122)](_0x442a5d,_0x5ab85a);const _0x15743d=this[_0x34eba2(0x159)]?.[_0x34eba2(0x152)]||this[_0x34eba2(0xff)],_0x373998=_0x15743d?.[_0x34eba2(0x10a)];_0x373998?_0x373998[_0x34eba2(0xfe)](_0x442a5d):document[_0x34eba2(0x13a)][_0x34eba2(0xfe)](_0x442a5d),_0x442a5d[_0x34eba2(0x144)]=_0xa716cb;const _0x12b941=this[_0x34eba2(0x11b)](_0x373998||null);return _0x442a5d[_0x34eba2(0x137)],_0x442a5d[_0x34eba2(0x101)]=_0x12b941,_0x442a5d;}[_0x40cfd0(0xe7)](_0x598008,_0xafb743){const _0x7dfa8d=_0x40cfd0,_0x4f2554=_0x598008[_0x7dfa8d(0x144)]||_0x598008,_0x5bf7f9=[],{rowCount:_0x60e5f5}=this[_0x7dfa8d(0x112)](_0x4f2554,_0xafb743);if(_0x60e5f5<=this[_0x7dfa8d(0xef)][_0x7dfa8d(0x117)])return _0x5bf7f9;const _0x4144d2=_0xafb743[_0x7dfa8d(0x11c)]();for(;_0x4144d2[_0x7dfa8d(0xea)]>0x0;){if(this[_0x7dfa8d(0x120)](_0x598008,_0x4f2554,_0x4144d2)){const _0x47bf11=_0xafb743[_0x7dfa8d(0x113)](_0x203453=>!_0x4144d2[_0x7dfa8d(0x156)](_0x203453));_0x5bf7f9[_0x7dfa8d(0x13e)](..._0x47bf11);break;}if(!_0x4144d2[_0x7dfa8d(0x12c)]())break;}return _0x5bf7f9;}[_0x40cfd0(0x112)](_0x280161,_0x29b1d1){const _0xe6237d=_0x40cfd0;_0x280161[_0xe6237d(0x166)]='',_0x29b1d1[_0xe6237d(0xeb)](_0x4c71d3=>{const _0x2b49c3=_0xe6237d;if(_0x4c71d3[_0x2b49c3(0x152)]){const _0x2377c3=_0x4c71d3[_0x2b49c3(0x152)][_0x2b49c3(0x14a)](!0x0);_0x280161[_0x2b49c3(0xfe)](_0x2377c3);}}),_0x280161[_0xe6237d(0x137)];const _0x330f19=_0x280161[_0xe6237d(0xe1)],_0xc5c771=[];return Array[_0xe6237d(0x171)](_0x330f19)[_0xe6237d(0xeb)](_0x4fb3b9=>{const _0xd33734=_0xe6237d,_0x44a749=_0x4fb3b9[_0xd33734(0x10c)]()[_0xd33734(0xfd)];_0xc5c771[_0xd33734(0xf1)](_0x546838=>Math[_0xd33734(0x163)](_0x546838-_0x44a749)<this[_0xd33734(0xef)][_0xd33734(0xed)])||_0xc5c771[_0xd33734(0x13e)](_0x44a749);}),{'rowCount':_0xc5c771[_0xe6237d(0xea)]};}[_0x40cfd0(0x12a)](){const _0x41c9b6=_0x40cfd0,_0x5c4a52=document[_0x41c9b6(0xf8)](_0x41c9b6(0xee));return _0x5c4a52[_0x41c9b6(0xfa)]=this[_0x41c9b6(0xef)][_0x41c9b6(0x102)][_0x41c9b6(0x13d)],this[_0x41c9b6(0xef)][_0x41c9b6(0x102)][_0x41c9b6(0x158)]&&_0x5c4a52[_0x41c9b6(0xe0)][_0x41c9b6(0x14e)](this[_0x41c9b6(0xef)][_0x41c9b6(0x102)][_0x41c9b6(0x158)]),_0x5c4a52[_0x41c9b6(0x11e)]=_0x41c9b6(0x143),_0x5c4a52;}[_0x40cfd0(0x120)](_0x5e40d1,_0xb88651,_0x15cfcc){const _0x3601d9=_0x40cfd0;this[_0x3601d9(0x112)](_0xb88651,_0x15cfcc);const _0x54c71a=this[_0x3601d9(0x12a)]();_0x5e40d1[_0x3601d9(0xfe)](_0x54c71a),_0x5e40d1[_0x3601d9(0x137)];const _0x400852=[..._0xb88651[_0x3601d9(0xe1)],_0x54c71a],_0x2594e2=[];_0x400852[_0x3601d9(0xeb)](_0x23c3e7=>{const _0x1f8dda=_0x3601d9,_0x437df4=_0x23c3e7[_0x1f8dda(0x10c)]()[_0x1f8dda(0xfd)];_0x2594e2[_0x1f8dda(0xf1)](_0x13e462=>Math[_0x1f8dda(0x163)](_0x13e462-_0x437df4)<this[_0x1f8dda(0xef)][_0x1f8dda(0xed)])||_0x2594e2[_0x1f8dda(0x13e)](_0x437df4);});const _0xf8bab6=_0x2594e2[_0x3601d9(0xea)];return _0x54c71a[_0x3601d9(0x100)](),_0xf8bab6<=this[_0x3601d9(0xef)][_0x3601d9(0x117)];}[_0x40cfd0(0x149)](_0xfe18ff,_0x127e4f){const _0x476320=_0x40cfd0;this[_0x476320(0xec)][_0x476320(0x118)](),this[_0x476320(0x142)][_0x476320(0x118)](),_0xfe18ff[_0x476320(0xeb)](_0x3f00b4=>{const _0x49dfe5=_0x476320;_0x127e4f[_0x49dfe5(0x156)](_0x3f00b4)?this[_0x49dfe5(0x142)][_0x49dfe5(0x14e)](_0x3f00b4):this[_0x49dfe5(0xec)][_0x49dfe5(0x14e)](_0x3f00b4);});}[_0x40cfd0(0x16d)](_0x5d5429){const _0x1b63c7=_0x40cfd0;if(_0x5d5429>0x0&&!this[_0x1b63c7(0x15c)]&&this[_0x1b63c7(0x140)](),_0x5d5429>0x0&&this[_0x1b63c7(0x15c)]){const _0x2a2f64=''+this[_0x1b63c7(0xef)][_0x1b63c7(0xf5)]+(_0x5d5429<0x63?_0x5d5429:'99');this[_0x1b63c7(0x15c)][_0x1b63c7(0xf7)]=_0x2a2f64;}this[_0x1b63c7(0xf2)](),this[_0x1b63c7(0x145)](),this[_0x1b63c7(0x136)]();}[_0x40cfd0(0x153)](_0x55ce17,_0x4048ea){const _0x1b4046=_0x40cfd0;this[_0x1b4046(0x149)](_0x55ce17,_0x4048ea),this[_0x1b4046(0x16d)](_0x4048ea[_0x1b4046(0xea)]);}[_0x40cfd0(0x16b)](){const _0x47288c=_0x40cfd0;this[_0x47288c(0xff)]&&_0x47288c(0x167)!=typeof IntersectionObserver&&(this[_0x47288c(0xe6)]=new IntersectionObserver(_0xab17b8=>{const _0x29cbf6=_0x47288c;_0xab17b8[0x0][_0x29cbf6(0x108)]&&this[_0x29cbf6(0xe4)]&&requestAnimationFrame(()=>{const _0x22ba89=_0x29cbf6;this[_0x22ba89(0x107)]();});},{'threshold':0.01,'rootMargin':_0x47288c(0xf9)}),this[_0x47288c(0xe6)][_0x47288c(0x13b)](this[_0x47288c(0xff)]));}[_0x40cfd0(0x138)](){const _0x10d65a=_0x40cfd0;if(!this[_0x10d65a(0xff)])return!0x1;if(!this[_0x10d65a(0xff)][_0x10d65a(0x10e)])return!0x1;const _0x272b38=this[_0x10d65a(0xff)][_0x10d65a(0x10c)]();if(0x0===_0x272b38[_0x10d65a(0xf0)]||0x0===_0x272b38[_0x10d65a(0x106)])return!0x1;const _0x3149d1=window[_0x10d65a(0x14f)]||document[_0x10d65a(0x16e)][_0x10d65a(0x126)],_0x3bb631=window[_0x10d65a(0x133)]||document[_0x10d65a(0x16e)][_0x10d65a(0x12b)],_0x7d8459=0xc8;return _0x272b38[_0x10d65a(0x12f)]>=-0xc8&&_0x272b38[_0x10d65a(0xfd)]<=_0x3149d1+_0x7d8459&&_0x272b38[_0x10d65a(0x12e)]>=-0xc8&&_0x272b38[_0x10d65a(0xfb)]<=_0x3bb631+_0x7d8459;}}
23
+ const _0x18e301=_0x3eda;function _0x3eda(_0x5f3c67,_0x4f5029){const _0x454db6=_0x454d();return _0x3eda=function(_0x3eda71,_0x181ceb){_0x3eda71=_0x3eda71-0x138;let _0x6f7766=_0x454db6[_0x3eda71];return _0x6f7766;},_0x3eda(_0x5f3c67,_0x4f5029);}(function(_0x1de6fc,_0x42c6e8){const _0x743d28=_0x3eda,_0x41e073=_0x1de6fc();while(!![]){try{const _0x1d401f=parseInt(_0x743d28(0x170))/0x1+-parseInt(_0x743d28(0x142))/0x2*(parseInt(_0x743d28(0x1ba))/0x3)+parseInt(_0x743d28(0x171))/0x4+-parseInt(_0x743d28(0x1bc))/0x5*(-parseInt(_0x743d28(0x159))/0x6)+-parseInt(_0x743d28(0x1af))/0x7*(-parseInt(_0x743d28(0x15c))/0x8)+-parseInt(_0x743d28(0x1c1))/0x9*(parseInt(_0x743d28(0x191))/0xa)+parseInt(_0x743d28(0x165))/0xb;if(_0x1d401f===_0x42c6e8)break;else _0x41e073['push'](_0x41e073['shift']());}catch(_0x580c4c){_0x41e073['push'](_0x41e073['shift']());}}}(_0x454d,0x6ee24));function _0x454d(){const _0x1d799d=['rowDetectionTolerance','from','label','15297aZrxVK','959544mkawgw','includes','_bodyCollection','block\x20!important','_calculateOverflowInContainer','offsetWidth','clientWidth','_showMoreBalloonPanelView','height','classList','overflowChips','+\x201','none','_testButtonFit','_makeAncestorsVisible','_createShowMoreButtonView','display','showMoreButtonView','_updateBalloonContent','overflowContainer','some','reorganizeChips','getBoundingClientRect','destroy','_findTargetContainer','_createContainerElements','block','extendTemplate','pin','_containerElement','createElement','_updateOverflowUI','24620EroWqX','absolute','className','parentElement','border-box','push','element','bottom','showBalloonPanel','_intersectionObserver','opacity','isIntersecting','visibility','auto','innerWidth','visible\x20!important','execute','_createMockButton','_restoreAncestorVisibility','_createShowMoreBalloonPanelView','clientHeight','_renderChipsAndCountRows','div','cloneNode','children','top','_createShowMoreButton','disconnect','300px','set','1092763yTjEEW','abs','render','_distributeChips','_visibleChips','appendChild','innerHTML','left','length','setContainerElement','remove','104109KlBNxB','_repinBalloonPanel','7880TZqXUc','add','_ancestorsToRestore','getComputedStyle','tagName','3015wWIFtJ','_parentView','content','.ck-ai-chat','undefined','right','slice','cssClasses','position','showMoreLabelPrefix','isConnected','forEach','showMoreBalloon','style','_createCalculationContainer','hideBalloonPanel','_setupVisibilityObserver','toLowerCase','setTemplate','clear','width','innerHeight','34lmcili','hidden','_checkAndHandleOverflow','querySelector','body','boxSizing','filter','-9999px','_applyCalculationStyles','_config','maxVisibleRows','textContent','_calculateContainerWidth','documentElement','_locale','hide','button','_showMoreButtonView','_applyOverflowResults','_isContainerVisible','ck-calculation-container','_updateShowMoreButtonVisibility','disableAnimationOnEnter','438dsLMqv','_targetContainer','_handleShowMoreButtonClick','16IMTiPv','_overflowChips','pop','calculationContainer','showMoreButton','_pendingCalculation','observe','show','zIndex','13050972UJSXGe','isOn','controlsButton','pointerEvents','50px','isVisible','visible','0px'];_0x454d=function(){return _0x1d799d;};return _0x454d();}import{View as _0x39c7dd,BalloonPanelView as _0x518f0a,ButtonView as _0x4dd38d,clickOutsideHandler as _0x40759b}from'ckeditor5/src/ui.js';import{Collection as _0x3562c1}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},un=_0x18e301(0x1ad);export class AIChatChipsOverflowManager{[_0x18e301(0x150)];[_0x18e301(0x14b)];[_0x18e301(0x1b3)];[_0x18e301(0x15d)];[_0x18e301(0x153)]=null;[_0x18e301(0x178)]=null;[_0x18e301(0x18e)]=null;[_0x18e301(0x173)];[_0x18e301(0x1c2)]=null;[_0x18e301(0x19a)]=null;[_0x18e301(0x161)]=!0x1;constructor(_0x450d2e,_0x555ff0,_0x485aaa,_0x26de1a,_0x2f3697){const _0xe57de5=_0x18e301;this[_0xe57de5(0x150)]=_0x450d2e,this[_0xe57de5(0x1b3)]=_0x555ff0,this[_0xe57de5(0x14b)]={...hn,..._0x485aaa,'cssClasses':{'controlsButton':'','calculationContainer':_0xe57de5(0x156),..._0x485aaa[_0xe57de5(0x1c8)]}},this[_0xe57de5(0x15d)]=new _0x3562c1(),this[_0xe57de5(0x173)]=_0x26de1a,this[_0xe57de5(0x1c2)]=_0x2f3697||null;}[_0x18e301(0x1b8)](_0x5e2fb0){const _0x499fb9=_0x18e301;this[_0x499fb9(0x19a)]&&(this[_0x499fb9(0x19a)][_0x499fb9(0x1ac)](),this[_0x499fb9(0x19a)]=null),this[_0x499fb9(0x18e)]=_0x5e2fb0,this[_0x499fb9(0x13c)]();}get[_0x18e301(0x182)](){const _0x52053a=_0x18e301;return this[_0x52053a(0x153)];}get[_0x18e301(0x17b)](){const _0x5c16e3=_0x18e301;return this[_0x5c16e3(0x15d)];}[_0x18e301(0x186)](){requestAnimationFrame(()=>{const _0x57d77a=_0x3eda;this[_0x57d77a(0x144)]();});}[_0x18e301(0x199)](){const _0x10caff=_0x18e301;this[_0x10caff(0x153)]&&this[_0x10caff(0x178)]&&(this[_0x10caff(0x183)](),this[_0x10caff(0x153)][_0x10caff(0x166)]=!0x0,this[_0x10caff(0x178)][_0x10caff(0x163)](),this[_0x10caff(0x178)][_0x10caff(0x18d)]({'target':this[_0x10caff(0x153)][_0x10caff(0x197)],'limiter':document[_0x10caff(0x145)](_0x10caff(0x1c4))}));}[_0x18e301(0x13b)](){const _0x1eb9a5=_0x18e301;this[_0x1eb9a5(0x153)]&&this[_0x1eb9a5(0x178)]&&(this[_0x1eb9a5(0x153)][_0x1eb9a5(0x166)]=!0x1,this[_0x1eb9a5(0x178)][_0x1eb9a5(0x151)]());}[_0x18e301(0x13f)](){const _0x53c2e5=_0x18e301;this[_0x53c2e5(0x15d)][_0x53c2e5(0x13f)](),this[_0x53c2e5(0x13b)](),this[_0x53c2e5(0x157)](),this[_0x53c2e5(0x153)]&&(this[_0x53c2e5(0x153)][_0x53c2e5(0x16f)]=''),this[_0x53c2e5(0x178)]&&this[_0x53c2e5(0x178)][_0x53c2e5(0x1c3)][_0x53c2e5(0x13f)]();}[_0x18e301(0x188)](){const _0x12e410=_0x18e301;this[_0x12e410(0x19a)]&&(this[_0x12e410(0x19a)][_0x12e410(0x1ac)](),this[_0x12e410(0x19a)]=null),this[_0x12e410(0x153)]&&(this[_0x12e410(0x153)][_0x12e410(0x188)](),this[_0x12e410(0x153)]=null),this[_0x12e410(0x178)]&&(this[_0x12e410(0x178)][_0x12e410(0x188)](),this[_0x12e410(0x178)]=null);}[_0x18e301(0x144)](){const _0x27d33f=_0x18e301;if(!this[_0x27d33f(0x18e)])return;if(!this[_0x27d33f(0x155)]())return void(this[_0x27d33f(0x161)]=!0x0);this[_0x27d33f(0x161)]=!0x1;const _0x53ea45=[...this[_0x27d33f(0x1b3)],...this[_0x27d33f(0x15d)]],_0xd613c1=this[_0x27d33f(0x13a)](),_0x2a9d3f=this[_0x27d33f(0x175)](_0xd613c1,_0x53ea45),_0x477263=_0xd613c1[_0x27d33f(0x1be)];_0x477263&&this[_0x27d33f(0x1a3)](_0x477263),_0xd613c1[_0x27d33f(0x1b9)](),this[_0x27d33f(0x154)](_0x53ea45,_0x2a9d3f);}[_0x18e301(0x1ab)](){const _0x2d4904=_0x18e301;this[_0x2d4904(0x153)]=this[_0x2d4904(0x180)](),this[_0x2d4904(0x178)]=this[_0x2d4904(0x1a4)](),this[_0x2d4904(0x153)][_0x2d4904(0x1b1)](),this[_0x2d4904(0x18e)][_0x2d4904(0x1b4)](this[_0x2d4904(0x153)][_0x2d4904(0x197)]),this[_0x2d4904(0x153)]['on'](_0x2d4904(0x1a1),()=>{const _0x2415ad=_0x2d4904;this[_0x2415ad(0x15b)]();}),_0x40759b({'emitter':this[_0x2d4904(0x178)],'contextElements':[this[_0x2d4904(0x178)][_0x2d4904(0x197)],this[_0x2d4904(0x153)][_0x2d4904(0x197)]],'callback':()=>this[_0x2d4904(0x13b)](),'activator':()=>this[_0x2d4904(0x153)][_0x2d4904(0x166)]});}[_0x18e301(0x180)](){const _0x344483=_0x18e301,_0x1a6a0c=new _0x4dd38d(this[_0x344483(0x150)]);_0x1a6a0c[_0x344483(0x1ae)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x5d7788=[this[_0x344483(0x14b)][_0x344483(0x1c8)][_0x344483(0x160)]];return this[_0x344483(0x14b)][_0x344483(0x1c8)][_0x344483(0x167)]&&_0x5d7788[_0x344483(0x196)](this[_0x344483(0x14b)][_0x344483(0x1c8)][_0x344483(0x167)]),_0x1a6a0c[_0x344483(0x18c)]({'attributes':{'class':_0x5d7788}}),_0x1a6a0c;}[_0x18e301(0x1a4)](){const _0xb158ec=_0x18e301,_0x42d317=new _0x518f0a(this[_0xb158ec(0x150)]);return _0x42d317[_0xb158ec(0x18c)]({'attributes':{'class':this[_0xb158ec(0x14b)][_0xb158ec(0x1c8)][_0xb158ec(0x138)]}}),this[_0xb158ec(0x173)][_0xb158ec(0x1bd)](_0x42d317),_0x42d317;}[_0x18e301(0x183)](){const _0x3ea262=_0x18e301;if(this[_0x3ea262(0x178)]&&(this[_0x3ea262(0x178)][_0x3ea262(0x1c3)][_0x3ea262(0x13f)](),this[_0x3ea262(0x15d)][_0x3ea262(0x1b7)]>0x0)){this[_0x3ea262(0x15d)][_0x3ea262(0x1cc)](_0x19435f=>{const _0x1cb297=_0x3ea262;_0x19435f[_0x1cb297(0x158)]();});const _0x31b901=new _0x39c7dd(this[_0x3ea262(0x150)]);_0x31b901[_0x3ea262(0x13e)]({'tag':_0x3ea262(0x1a7),'attributes':{'class':this[_0x3ea262(0x14b)][_0x3ea262(0x1c8)][_0x3ea262(0x184)]},'children':this[_0x3ea262(0x15d)]}),this[_0x3ea262(0x178)][_0x3ea262(0x1c3)][_0x3ea262(0x1bd)](_0x31b901);}}[_0x18e301(0x15b)](){const _0x5f2988=_0x18e301;this[_0x5f2988(0x153)][_0x5f2988(0x166)]?this[_0x5f2988(0x13b)]():this[_0x5f2988(0x199)]();}[_0x18e301(0x157)](){const _0x4cc57f=_0x18e301,_0x1a8b91=this[_0x4cc57f(0x15d)][_0x4cc57f(0x1b7)]>0x0;this[_0x4cc57f(0x153)]?.[_0x4cc57f(0x197)]&&(this[_0x4cc57f(0x153)][_0x4cc57f(0x197)][_0x4cc57f(0x139)][_0x4cc57f(0x181)]=_0x1a8b91?'':_0x4cc57f(0x17d));}[_0x18e301(0x1bb)](){const _0x527a91=_0x18e301;this[_0x527a91(0x153)]?.[_0x527a91(0x166)]&&this[_0x527a91(0x178)]?.[_0x527a91(0x16a)]&&this[_0x527a91(0x153)][_0x527a91(0x197)]&&this[_0x527a91(0x178)][_0x527a91(0x18d)]({'target':this[_0x527a91(0x153)][_0x527a91(0x197)],'limiter':document[_0x527a91(0x145)](_0x527a91(0x1c4))});}[_0x18e301(0x189)](_0x2cc2fd){const _0x1aba6a=_0x18e301,_0x117b59=this[_0x1aba6a(0x18e)]?.[_0x1aba6a(0x1c0)][_0x1aba6a(0x13d)]()||_0x1aba6a(0x1a7),_0x52f5f2=this[_0x1aba6a(0x18e)]?.[_0x1aba6a(0x17a)];if(_0x52f5f2){const _0x320399=_0x52f5f2[0x0]||'',_0x2c118e=_0x2cc2fd[_0x1aba6a(0x145)]('.'+_0x320399),_0x4a0c30=_0x2cc2fd[_0x1aba6a(0x145)](_0x117b59);return _0x2c118e||_0x4a0c30||_0x2cc2fd;}return _0x2cc2fd[_0x1aba6a(0x145)](_0x117b59)||_0x2cc2fd;}[_0x18e301(0x14e)](){const _0x174cd7=_0x18e301,_0xe6fbfa=this[_0x174cd7(0x1c2)]?.[_0x174cd7(0x197)]||this[_0x174cd7(0x18e)];if(!_0xe6fbfa)return un;const _0xe0d600=window[_0x174cd7(0x1bf)](_0xe6fbfa)[_0x174cd7(0x140)];if(_0x174cd7(0x19e)===_0xe0d600||_0x174cd7(0x16c)===_0xe0d600||!_0xe0d600){const _0x55b249=_0xe6fbfa[_0x174cd7(0x194)];if(_0x55b249){const _0xcf975=window[_0x174cd7(0x1bf)](_0x55b249);return _0x174cd7(0x19e)!==_0xcf975[_0x174cd7(0x140)]?_0xcf975[_0x174cd7(0x140)]:un;}return un;}return _0xe0d600;}[_0x18e301(0x14a)](_0x39fc1d,_0xfe250f){const _0x1f029d=_0x18e301;this[_0x1f029d(0x14b)][_0x1f029d(0x1c8)][_0x1f029d(0x15f)]&&_0x39fc1d[_0x1f029d(0x17a)][_0x1f029d(0x1bd)](this[_0x1f029d(0x14b)][_0x1f029d(0x1c8)][_0x1f029d(0x15f)]),_0x39fc1d[_0x1f029d(0x139)][_0x1f029d(0x140)]=_0xfe250f,_0x39fc1d[_0x1f029d(0x139)][_0x1f029d(0x1c9)]=_0x1f029d(0x192),_0x39fc1d[_0x1f029d(0x139)][_0x1f029d(0x1aa)]=_0x1f029d(0x149),_0x39fc1d[_0x1f029d(0x139)][_0x1f029d(0x1b6)]=_0x1f029d(0x149),_0x39fc1d[_0x1f029d(0x139)][_0x1f029d(0x19b)]='0',_0x39fc1d[_0x1f029d(0x139)][_0x1f029d(0x168)]=_0x1f029d(0x17d),_0x39fc1d[_0x1f029d(0x139)][_0x1f029d(0x164)]='-1',_0x39fc1d[_0x1f029d(0x139)][_0x1f029d(0x19d)]=_0x1f029d(0x1a0),_0x39fc1d[_0x1f029d(0x139)][_0x1f029d(0x181)]=_0x1f029d(0x174),_0x39fc1d[_0x1f029d(0x139)][_0x1f029d(0x147)]=_0x1f029d(0x195);}[_0x18e301(0x1a3)](_0x115b0c){const _0x27ed20=_0x18e301;_0x115b0c[_0x27ed20(0x1cc)](({element:_0x338a73,originalDisplay:_0x4a7616,originalVisibility:_0x2d4c40})=>{const _0x4d8e18=_0x27ed20;_0x338a73[_0x4d8e18(0x139)][_0x4d8e18(0x181)]=_0x4a7616,_0x338a73[_0x4d8e18(0x139)][_0x4d8e18(0x19d)]=_0x2d4c40;});}[_0x18e301(0x17f)](_0x5b85d9){const _0x5896b0=_0x18e301,_0x56920d=[];let _0x1d3508=_0x5b85d9;for(;_0x1d3508&&_0x1d3508!==document[_0x5896b0(0x146)];){const _0x41b1ad=window[_0x5896b0(0x1bf)](_0x1d3508);_0x5896b0(0x17d)!==_0x41b1ad[_0x5896b0(0x181)]&&_0x5896b0(0x143)!==_0x41b1ad[_0x5896b0(0x19d)]||(_0x56920d[_0x5896b0(0x196)]({'element':_0x1d3508,'originalDisplay':_0x1d3508[_0x5896b0(0x139)][_0x5896b0(0x181)],'originalVisibility':_0x1d3508[_0x5896b0(0x139)][_0x5896b0(0x19d)]}),_0x1d3508[_0x5896b0(0x139)][_0x5896b0(0x181)]=_0x5896b0(0x18b),_0x1d3508[_0x5896b0(0x139)][_0x5896b0(0x19d)]=_0x5896b0(0x16b)),_0x1d3508=_0x1d3508[_0x5896b0(0x194)];}return _0x56920d;}[_0x18e301(0x18a)](){const _0x24c7f7=_0x18e301;let _0x17de19,_0x19352d;return this[_0x24c7f7(0x1c2)]?.[_0x24c7f7(0x197)]?(_0x17de19=this[_0x24c7f7(0x1c2)][_0x24c7f7(0x197)][_0x24c7f7(0x1a8)](!0x0),_0x19352d=this[_0x24c7f7(0x189)](_0x17de19)):(_0x17de19=document[_0x24c7f7(0x18f)](_0x24c7f7(0x1a7)),_0x19352d=_0x17de19),{'calculationContainer':_0x17de19,'targetContainer':_0x19352d};}[_0x18e301(0x13a)](){const _0x6f0b6d=_0x18e301,{calculationContainer:_0x55082d,targetContainer:_0x7fbce3}=this[_0x6f0b6d(0x18a)](),_0x488777=this[_0x6f0b6d(0x14e)]();this[_0x6f0b6d(0x14a)](_0x55082d,_0x488777);const _0x1e1aeb=this[_0x6f0b6d(0x1c2)]?.[_0x6f0b6d(0x197)]||this[_0x6f0b6d(0x18e)],_0x36d796=_0x1e1aeb?.[_0x6f0b6d(0x194)];_0x36d796?_0x36d796[_0x6f0b6d(0x1b4)](_0x55082d):document[_0x6f0b6d(0x146)][_0x6f0b6d(0x1b4)](_0x55082d),_0x55082d[_0x6f0b6d(0x15a)]=_0x7fbce3;const _0x4841d7=this[_0x6f0b6d(0x17f)](_0x36d796||null);return _0x55082d[_0x6f0b6d(0x176)],_0x55082d[_0x6f0b6d(0x1be)]=_0x4841d7,_0x55082d;}[_0x18e301(0x175)](_0x5eda9e,_0x4bc077){const _0x91bd5a=_0x18e301,_0x88cb2d=_0x5eda9e[_0x91bd5a(0x15a)]||_0x5eda9e,_0x1ee89f=[],{rowCount:_0x2c81c4}=this[_0x91bd5a(0x1a6)](_0x88cb2d,_0x4bc077);if(_0x2c81c4<=this[_0x91bd5a(0x14b)][_0x91bd5a(0x14c)])return _0x1ee89f;const _0x1574e2=_0x4bc077[_0x91bd5a(0x1c7)]();for(;_0x1574e2[_0x91bd5a(0x1b7)]>0x0;){if(this[_0x91bd5a(0x17e)](_0x5eda9e,_0x88cb2d,_0x1574e2)){const _0x453b6f=_0x4bc077[_0x91bd5a(0x148)](_0x52c3c1=>!_0x1574e2[_0x91bd5a(0x172)](_0x52c3c1));_0x1ee89f[_0x91bd5a(0x196)](..._0x453b6f);break;}if(!_0x1574e2[_0x91bd5a(0x15e)]())break;}return _0x1ee89f;}[_0x18e301(0x1a6)](_0x232378,_0x4fb1c8){const _0xa61c63=_0x18e301;_0x232378[_0xa61c63(0x1b5)]='',_0x4fb1c8[_0xa61c63(0x1cc)](_0x5112ad=>{const _0x4b65ef=_0xa61c63;if(_0x5112ad[_0x4b65ef(0x197)]){const _0x174627=_0x5112ad[_0x4b65ef(0x197)][_0x4b65ef(0x1a8)](!0x0);_0x232378[_0x4b65ef(0x1b4)](_0x174627);}}),_0x232378[_0xa61c63(0x176)];const _0x114609=_0x232378[_0xa61c63(0x1a9)],_0x404b3a=[];return Array[_0xa61c63(0x16e)](_0x114609)[_0xa61c63(0x1cc)](_0x4e5b5a=>{const _0x4a9dcb=_0xa61c63,_0x14426d=_0x4e5b5a[_0x4a9dcb(0x187)]()[_0x4a9dcb(0x1aa)];_0x404b3a[_0x4a9dcb(0x185)](_0x329ac5=>Math[_0x4a9dcb(0x1b0)](_0x329ac5-_0x14426d)<this[_0x4a9dcb(0x14b)][_0x4a9dcb(0x16d)])||_0x404b3a[_0x4a9dcb(0x196)](_0x14426d);}),{'rowCount':_0x404b3a[_0xa61c63(0x1b7)]};}[_0x18e301(0x1a2)](){const _0x586bee=_0x18e301,_0x4031b8=document[_0x586bee(0x18f)](_0x586bee(0x152));return _0x4031b8[_0x586bee(0x193)]=this[_0x586bee(0x14b)][_0x586bee(0x1c8)][_0x586bee(0x160)],this[_0x586bee(0x14b)][_0x586bee(0x1c8)][_0x586bee(0x167)]&&_0x4031b8[_0x586bee(0x17a)][_0x586bee(0x1bd)](this[_0x586bee(0x14b)][_0x586bee(0x1c8)][_0x586bee(0x167)]),_0x4031b8[_0x586bee(0x14d)]=_0x586bee(0x17c),_0x4031b8;}[_0x18e301(0x17e)](_0x5574b3,_0x575971,_0x4d8db6){const _0x28f1d7=_0x18e301;this[_0x28f1d7(0x1a6)](_0x575971,_0x4d8db6);const _0x584c41=this[_0x28f1d7(0x1a2)]();_0x5574b3[_0x28f1d7(0x1b4)](_0x584c41),_0x5574b3[_0x28f1d7(0x176)];const _0x11a262=[..._0x575971[_0x28f1d7(0x1a9)],_0x584c41],_0xeff3e1=[];_0x11a262[_0x28f1d7(0x1cc)](_0x2048b1=>{const _0x1473f7=_0x28f1d7,_0x418e40=_0x2048b1[_0x1473f7(0x187)]()[_0x1473f7(0x1aa)];_0xeff3e1[_0x1473f7(0x185)](_0xd2ad0e=>Math[_0x1473f7(0x1b0)](_0xd2ad0e-_0x418e40)<this[_0x1473f7(0x14b)][_0x1473f7(0x16d)])||_0xeff3e1[_0x1473f7(0x196)](_0x418e40);});const _0x46a7e0=_0xeff3e1[_0x28f1d7(0x1b7)];return _0x584c41[_0x28f1d7(0x1b9)](),_0x46a7e0<=this[_0x28f1d7(0x14b)][_0x28f1d7(0x14c)];}[_0x18e301(0x1b2)](_0x128079,_0x4a61ed){const _0x17317b=_0x18e301;this[_0x17317b(0x1b3)][_0x17317b(0x13f)](),this[_0x17317b(0x15d)][_0x17317b(0x13f)](),_0x128079[_0x17317b(0x1cc)](_0x1faf69=>{const _0x8be56d=_0x17317b;_0x4a61ed[_0x8be56d(0x172)](_0x1faf69)?this[_0x8be56d(0x15d)][_0x8be56d(0x1bd)](_0x1faf69):this[_0x8be56d(0x1b3)][_0x8be56d(0x1bd)](_0x1faf69);});}[_0x18e301(0x190)](_0xa90596){const _0x264561=_0x18e301;if(_0xa90596>0x0&&!this[_0x264561(0x153)]&&this[_0x264561(0x1ab)](),_0xa90596>0x0&&this[_0x264561(0x153)]){const _0x2e55bd=''+this[_0x264561(0x14b)][_0x264561(0x1ca)]+(_0xa90596<0x63?_0xa90596:'99');this[_0x264561(0x153)][_0x264561(0x16f)]=_0x2e55bd;}this[_0x264561(0x183)](),this[_0x264561(0x157)](),this[_0x264561(0x1bb)]();}[_0x18e301(0x154)](_0x5052c3,_0x1da049){const _0x37069b=_0x18e301;this[_0x37069b(0x1b2)](_0x5052c3,_0x1da049),this[_0x37069b(0x190)](_0x1da049[_0x37069b(0x1b7)]);}[_0x18e301(0x13c)](){const _0x548ca2=_0x18e301;this[_0x548ca2(0x18e)]&&_0x548ca2(0x1c5)!=typeof IntersectionObserver&&(this[_0x548ca2(0x19a)]=new IntersectionObserver(_0x2e2733=>{const _0x10b0e9=_0x548ca2;_0x2e2733[0x0][_0x10b0e9(0x19c)]&&this[_0x10b0e9(0x161)]&&requestAnimationFrame(()=>{const _0x3c5e93=_0x10b0e9;this[_0x3c5e93(0x144)]();});},{'threshold':0.01,'rootMargin':_0x548ca2(0x169)}),this[_0x548ca2(0x19a)][_0x548ca2(0x162)](this[_0x548ca2(0x18e)]));}[_0x18e301(0x155)](){const _0x51dfa0=_0x18e301;if(!this[_0x51dfa0(0x18e)])return!0x1;if(!this[_0x51dfa0(0x18e)][_0x51dfa0(0x1cb)])return!0x1;const _0x50a369=this[_0x51dfa0(0x18e)][_0x51dfa0(0x187)]();if(0x0===_0x50a369[_0x51dfa0(0x140)]||0x0===_0x50a369[_0x51dfa0(0x179)])return!0x1;const _0x87a510=window[_0x51dfa0(0x141)]||document[_0x51dfa0(0x14f)][_0x51dfa0(0x1a5)],_0x125b01=window[_0x51dfa0(0x19f)]||document[_0x51dfa0(0x14f)][_0x51dfa0(0x177)],_0x471568=0xc8;return _0x50a369[_0x51dfa0(0x198)]>=-0xc8&&_0x50a369[_0x51dfa0(0x1aa)]<=_0x87a510+_0x471568&&_0x50a369[_0x51dfa0(0x1c6)]>=-0xc8&&_0x50a369[_0x51dfa0(0x1b6)]<=_0x125b01+_0x471568;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x48cfec=_0x1a6b;(function(_0x7426fa,_0x50a83a){const _0x3ac473=_0x1a6b,_0x5b3446=_0x7426fa();while(!![]){try{const _0x59df14=parseInt(_0x3ac473(0x17e))/0x1*(parseInt(_0x3ac473(0x183))/0x2)+-parseInt(_0x3ac473(0x159))/0x3+parseInt(_0x3ac473(0x173))/0x4+-parseInt(_0x3ac473(0x155))/0x5*(-parseInt(_0x3ac473(0x15a))/0x6)+parseInt(_0x3ac473(0x176))/0x7+parseInt(_0x3ac473(0x17b))/0x8*(parseInt(_0x3ac473(0x17c))/0x9)+-parseInt(_0x3ac473(0x160))/0xa;if(_0x59df14===_0x50a83a)break;else _0x5b3446['push'](_0x5b3446['shift']());}catch(_0x308017){_0x5b3446['push'](_0x5b3446['shift']());}}}(_0xfd18,0xea9f9));import{ButtonView as _0x1739b4,IconView as _0x3587c1}from'ckeditor5/src/ui.js';function _0xfd18(){const _0x13c2de=['4025720rHrQIE','label','_createTemplateChildren','6407289gCpKcA','_createIconView','render','ck-ai-chat-context-chip_wide','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','9496LvkHXO','12060ZTRUcE','_createRemoveButton','1PVgRfZ','addEventListener','type','set','small','3508030noyJIw','ck-ai-chat-context-chip_document','span','webkitAnimationEnd','length','lastIndexOf','content','classList','itemType','setTemplate','slice','ck-ai-chat-context-chip__type-icon','_createLoaderIcon','isVisible','removeContextItemChip','animationend','tooltip','_isAnimationOnEnterEnabled','ck-hidden','ck-ai-chat-context-chip','35TpOugs','readonly','locale','add','1481529mvMuLf','477234crpPfX','selection','fire','isLoading','bind','element','43682650AxyyMo','_initializeProperties','_setupRemoveButtonEvent','_setupTemplate','ck-ai-chat-context-chip_new-chip','uiId','_handleAnimationEndOnce','div','ck-ai-chat-context-controls__chip-tooltip','_createLabelElement','ck-ai-chat-context-chip__label','remove','removeEventListener','extendTemplate','bindTemplate','document','_createTemplateAttributes','disableAnimationOnEnter','execute'];_0xfd18=function(){return _0x13c2de;};return _0xfd18();}function _0x1a6b(_0x3f2dd8,_0x144211){const _0xfd18b9=_0xfd18();return _0x1a6b=function(_0x1a6b74,_0x32af52){_0x1a6b74=_0x1a6b74-0x150;let _0x2acffa=_0xfd18b9[_0x1a6b74];return _0x2acffa;},_0x1a6b(_0x3f2dd8,_0x144211);}import{IconClose as _0x596fe6,IconDocument as _0x2f7d88,IconFileUpload as _0x4a59b0,IconLink as _0x533b4b,IconSelection as _0x8f1b5a}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x39d8db}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x27aadd}from'../../../aicore/ui/aispinner.js';const En={'file':_0x4a59b0,'document':_0x2f7d88,'web-resource':_0x533b4b,'text':_0x4a59b0,'selection':_0x8f1b5a},An=_0x48cfec(0x154),Cn=_0x48cfec(0x179),In=_0x48cfec(0x184),On=_0x48cfec(0x16a),gn=_0x48cfec(0x18e),vn=_0x48cfec(0x168),yn='n';export class AIChatContextItemButtonView extends _0x1739b4{constructor(_0x5197d1,_0x12b831,_0x5c4562,_0x36447f,_0x4ea2c6=!0x1){const _0x227347=_0x48cfec;super(_0x5197d1),this[_0x227347(0x152)]=_0x36447f,this[_0x227347(0x161)](_0x12b831,_0x5c4562,_0x4ea2c6),this[_0x227347(0x163)]();}[_0x48cfec(0x178)](){const _0x1e277f=_0x48cfec;super[_0x1e277f(0x178)](),this[_0x1e277f(0x152)]&&this[_0x1e277f(0x15f)]&&(this[_0x1e277f(0x15f)][_0x1e277f(0x18a)][_0x1e277f(0x158)](_0x1e277f(0x164)),this[_0x1e277f(0x166)](this[_0x1e277f(0x15f)],()=>{const _0x1770e0=_0x1e277f;this[_0x1770e0(0x15f)]&&this[_0x1770e0(0x15f)][_0x1770e0(0x18a)][_0x1770e0(0x16b)](_0x1770e0(0x164));}));}[_0x48cfec(0x171)](){const _0x329afb=_0x48cfec;this[_0x329afb(0x152)]=!0x1,this[_0x329afb(0x15f)]&&this[_0x329afb(0x15f)][_0x329afb(0x18a)][_0x329afb(0x16b)](_0x329afb(0x164));}[_0x48cfec(0x161)](_0x37dc26,_0x163658,_0x37151f){const _0x506956=_0x48cfec;this[_0x506956(0x181)](_0x506956(0x174),_0x37dc26[_0x506956(0x174)]),this[_0x506956(0x181)](_0x506956(0x151),!0x0),this[_0x506956(0x181)](_0x506956(0x18b),_0x37dc26[_0x506956(0x180)]),this[_0x506956(0x181)]('id',_0x37dc26[_0x506956(0x165)]),this[_0x506956(0x181)](_0x506956(0x156),_0x163658),this[_0x506956(0x181)](_0x506956(0x15d),_0x37151f);}[_0x48cfec(0x163)](){const _0x2d0140=_0x48cfec,_0x77e6b4=this[_0x2d0140(0x177)](),_0xdd45cc=this[_0x2d0140(0x17d)](),_0x1b6aae=this[_0x2d0140(0x16e)];this[_0x2d0140(0x18c)]({'tag':_0x2d0140(0x167),'attributes':this[_0x2d0140(0x170)](_0x1b6aae),'children':this[_0x2d0140(0x175)](_0x77e6b4,_0xdd45cc,_0x1b6aae)});}[_0x48cfec(0x170)](_0x2b1d18){const _0xc6a0d1=_0x48cfec;return{'class':[An,_0x2b1d18['if'](_0xc6a0d1(0x18b),In,_0x5e05d8=>_0xc6a0d1(0x16f)==_0x5e05d8),_0x2b1d18['if'](_0xc6a0d1(0x18b),Cn,_0x4ac94b=>_0xc6a0d1(0x15b)==_0x4ac94b)],'data-cke-tooltip-text':_0x2b1d18['to'](_0xc6a0d1(0x174),Ln),'data-cke-tooltip-position':yn,'data-cke-tooltip-class':vn};}[_0x48cfec(0x175)](_0x4287bc,_0x3b0d0e,_0x18b2ba){const _0x5f5719=_0x48cfec,_0x347ed1=this[_0x5f5719(0x169)](_0x18b2ba),_0x72a465=this[_0x5f5719(0x18f)]();return this[_0x5f5719(0x156)]?[_0x4287bc,_0x347ed1]:[_0x4287bc,_0x72a465,_0x347ed1,_0x3b0d0e];}[_0x48cfec(0x169)](_0x952964){const _0x10e1c0=_0x48cfec;return{'tag':_0x10e1c0(0x185),'attributes':{'class':On},'children':[{'text':_0x952964['to'](_0x10e1c0(0x174))}]};}[_0x48cfec(0x17d)](){const _0x5a6476=_0x48cfec,_0x51aaac=new _0x1739b4(this[_0x5a6476(0x157)]);return _0x51aaac[_0x5a6476(0x181)]({'label':_0x39d8db(this[_0x5a6476(0x157)],_0x5a6476(0x17a)),'icon':_0x596fe6}),this[_0x5a6476(0x162)](_0x51aaac),_0x51aaac;}[_0x48cfec(0x162)](_0x264f9d){const _0x2e8edd=_0x48cfec;_0x264f9d['on'](_0x2e8edd(0x172),()=>{const _0x2804c4=_0x2e8edd;this[_0x2804c4(0x15c)](_0x2804c4(0x191),this['id']);});}[_0x48cfec(0x177)](){const _0x1d1426=_0x48cfec,_0x296254=this[_0x1d1426(0x16e)],_0x47cf7d=new _0x3587c1();return _0x47cf7d[_0x1d1426(0x189)]=En[this[_0x1d1426(0x18b)]],_0x47cf7d[_0x1d1426(0x16d)]({'attributes':{'class':[gn,_0x296254['if'](_0x1d1426(0x15d),_0x1d1426(0x153),_0x74057f=>_0x74057f)]}}),_0x47cf7d;}[_0x48cfec(0x166)](_0x3c8ef0,_0x3066e3){const _0x1bc3e9=_0x48cfec;if(!_0x3c8ef0)return;const _0x7cbba0=()=>{const _0x5386f0=_0x1a6b;_0x3066e3(),_0x3c8ef0[_0x5386f0(0x16c)](_0x5386f0(0x150),_0x7cbba0),_0x3c8ef0[_0x5386f0(0x16c)](_0x5386f0(0x186),_0x7cbba0);};_0x3c8ef0[_0x1bc3e9(0x17f)](_0x1bc3e9(0x150),_0x7cbba0),_0x3c8ef0[_0x1bc3e9(0x17f)](_0x1bc3e9(0x186),_0x7cbba0);}[_0x48cfec(0x18f)](){const _0x32fd45=_0x48cfec,_0x30e847=new _0x27aadd(_0x32fd45(0x182));return _0x30e847[_0x32fd45(0x15e)](_0x32fd45(0x190))['to'](this,_0x32fd45(0x15d),_0x9710a5=>_0x9710a5),_0x30e847;}}function Ln(_0x5af48a){const _0xadc45d=_0x48cfec;if(!_0x5af48a)return _0x5af48a;if(_0x5af48a[_0xadc45d(0x187)]<=0x78)return _0x5af48a;const _0x432837=_0x5af48a[_0xadc45d(0x18d)](0x0,0x78),_0x1c8a93=_0x432837[_0xadc45d(0x188)]('\x20');return(_0x1c8a93>0x0?_0x432837[_0xadc45d(0x18d)](0x0,_0x1c8a93):_0x432837)+'…';}
23
+ const _0x27544b=_0x18d5;(function(_0x53c21a,_0x559ae6){const _0x408d9=_0x18d5,_0x23347c=_0x53c21a();while(!![]){try{const _0x2febce=-parseInt(_0x408d9(0xd4))/0x1*(parseInt(_0x408d9(0xee))/0x2)+-parseInt(_0x408d9(0xd0))/0x3+-parseInt(_0x408d9(0xe4))/0x4+-parseInt(_0x408d9(0xeb))/0x5+parseInt(_0x408d9(0xf2))/0x6*(parseInt(_0x408d9(0xdf))/0x7)+-parseInt(_0x408d9(0xde))/0x8+-parseInt(_0x408d9(0xe7))/0x9*(-parseInt(_0x408d9(0xe5))/0xa);if(_0x2febce===_0x559ae6)break;else _0x23347c['push'](_0x23347c['shift']());}catch(_0x2e294f){_0x23347c['push'](_0x23347c['shift']());}}}(_0x145e,0x1f82d));import{ButtonView as _0x2f278e,IconView as _0x58f11f}from'ckeditor5/src/ui.js';import{IconClose as _0x32faf0,IconDocument as _0x28aa75,IconFileUpload as _0x9b0179,IconLink as _0x75021a,IconSelection as _0x536432}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x5c3b4d}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0xf6c804}from'../../../aicore/ui/aispinner.js';const xn={'file':_0x9b0179,'document':_0x28aa75,'web-resource':_0x75021a,'text':_0x9b0179,'selection':_0x536432},bn=_0x27544b(0xc7),wn=_0x27544b(0xe6),Tn=_0x27544b(0xcd),En=_0x27544b(0xed),An=_0x27544b(0xe0),Cn=_0x27544b(0xce),In='n';export class AIChatContextItemButtonView extends _0x2f278e{constructor(_0x1ff259,_0xaf7767,_0x2ae6e0,_0x544206,_0x544c61=!0x1){const _0x19366a=_0x27544b;super(_0x1ff259),this[_0x19366a(0xc2)]=_0x544206,this[_0x19366a(0xc6)](_0xaf7767,_0x2ae6e0,_0x544c61),this[_0x19366a(0xef)]();}[_0x27544b(0xfa)](){const _0x3dd8b8=_0x27544b;super[_0x3dd8b8(0xfa)](),this[_0x3dd8b8(0xc2)]&&this[_0x3dd8b8(0xdb)]&&(this[_0x3dd8b8(0xdb)][_0x3dd8b8(0xe9)][_0x3dd8b8(0xe1)](_0x3dd8b8(0xd8)),this[_0x3dd8b8(0xf3)](this[_0x3dd8b8(0xdb)],()=>{const _0x280909=_0x3dd8b8;this[_0x280909(0xdb)]&&this[_0x280909(0xdb)][_0x280909(0xe9)][_0x280909(0xf1)](_0x280909(0xd8));}));}[_0x27544b(0xf9)](){const _0x202167=_0x27544b;this[_0x202167(0xc2)]=!0x1,this[_0x202167(0xdb)]&&this[_0x202167(0xdb)][_0x202167(0xe9)][_0x202167(0xf1)](_0x202167(0xd8));}[_0x27544b(0xc6)](_0xcbff48,_0x33d387,_0x2c0ebb){const _0x3b7c70=_0x27544b;this[_0x3b7c70(0xfc)](_0x3b7c70(0xbe),_0xcbff48[_0x3b7c70(0xbe)]),this[_0x3b7c70(0xfc)](_0x3b7c70(0xbf),!0x0),this[_0x3b7c70(0xfc)](_0x3b7c70(0xdd),_0xcbff48[_0x3b7c70(0xcb)]),this[_0x3b7c70(0xfc)]('id',_0xcbff48[_0x3b7c70(0xc8)]),this[_0x3b7c70(0xfc)](_0x3b7c70(0xe3),_0x33d387),this[_0x3b7c70(0xfc)](_0x3b7c70(0xc4),_0x2c0ebb);}[_0x27544b(0xef)](){const _0x4aa39e=_0x27544b,_0x58ecc7=this[_0x4aa39e(0xf8)](),_0x593b53=this[_0x4aa39e(0xc5)](),_0x55c878=this[_0x4aa39e(0xe8)];this[_0x4aa39e(0xf4)]({'tag':_0x4aa39e(0xfd),'attributes':this[_0x4aa39e(0xfb)](_0x55c878),'children':this[_0x4aa39e(0xd5)](_0x58ecc7,_0x593b53,_0x55c878)});}[_0x27544b(0xfb)](_0x4babed){const _0x21f399=_0x27544b;return{'class':[bn,_0x4babed['if'](_0x21f399(0xdd),Tn,_0x3c407d=>_0x21f399(0xfe)==_0x3c407d),_0x4babed['if'](_0x21f399(0xdd),wn,_0x4990a4=>_0x21f399(0xe2)==_0x4990a4)],'data-cke-tooltip-text':_0x4babed['to'](_0x21f399(0xbe),On),'data-cke-tooltip-position':In,'data-cke-tooltip-class':Cn};}[_0x27544b(0xd5)](_0x4e79fe,_0x532f62,_0x36d0d5){const _0x113e21=_0x27544b,_0x3f1cbf=this[_0x113e21(0xc3)](_0x36d0d5),_0x6cacd=this[_0x113e21(0xd7)]();return this[_0x113e21(0xe3)]?[_0x4e79fe,_0x3f1cbf]:[_0x4e79fe,_0x6cacd,_0x3f1cbf,_0x532f62];}[_0x27544b(0xc3)](_0x40a556){const _0x2f2836=_0x27544b;return{'tag':_0x2f2836(0xd3),'attributes':{'class':En},'children':[{'text':_0x40a556['to'](_0x2f2836(0xbe))}]};}[_0x27544b(0xc5)](){const _0x3e60b2=_0x27544b,_0x2a7ed0=new _0x2f278e(this[_0x3e60b2(0xf6)]);return _0x2a7ed0[_0x3e60b2(0xfc)]({'label':_0x5c3b4d(this[_0x3e60b2(0xf6)],_0x3e60b2(0xc9)),'icon':_0x32faf0}),this[_0x3e60b2(0xbd)](_0x2a7ed0),_0x2a7ed0;}[_0x27544b(0xbd)](_0x53418e){const _0x1c18ae=_0x27544b;_0x53418e['on'](_0x1c18ae(0xc0),()=>{const _0x3d9df4=_0x1c18ae;this[_0x3d9df4(0xdc)](_0x3d9df4(0xd1),this['id']);});}[_0x27544b(0xf8)](){const _0x33ea04=_0x27544b,_0x39dc10=this[_0x33ea04(0xe8)],_0x1c34e1=new _0x58f11f();return _0x1c34e1[_0x33ea04(0xca)]=xn[this[_0x33ea04(0xdd)]],_0x1c34e1[_0x33ea04(0xea)]({'attributes':{'class':[An,_0x39dc10['if'](_0x33ea04(0xc4),_0x33ea04(0xd9),_0x131c85=>_0x131c85)]}}),_0x1c34e1;}[_0x27544b(0xf3)](_0x1b27d5,_0x2678b8){const _0x10c604=_0x27544b;if(!_0x1b27d5)return;const _0xd66717=()=>{const _0x4ce82d=_0x18d5;_0x2678b8(),_0x1b27d5[_0x4ce82d(0xec)](_0x4ce82d(0xc1),_0xd66717),_0x1b27d5[_0x4ce82d(0xec)](_0x4ce82d(0xf5),_0xd66717);};_0x1b27d5[_0x10c604(0xf0)](_0x10c604(0xc1),_0xd66717),_0x1b27d5[_0x10c604(0xf0)](_0x10c604(0xf5),_0xd66717);}[_0x27544b(0xd7)](){const _0x221664=_0x27544b,_0x5566f3=new _0xf6c804(_0x221664(0xf7));return _0x5566f3[_0x221664(0xcf)](_0x221664(0xda))['to'](this,_0x221664(0xc4),_0x3af1ff=>_0x3af1ff),_0x5566f3;}}function _0x18d5(_0x5c3ca2,_0x9bc01f){const _0x145e34=_0x145e();return _0x18d5=function(_0x18d592,_0x57b40a){_0x18d592=_0x18d592-0xbd;let _0x3dae7d=_0x145e34[_0x18d592];return _0x3dae7d;},_0x18d5(_0x5c3ca2,_0x9bc01f);}function _0x145e(){const _0x514fcd=['_setupRemoveButtonEvent','label','tooltip','execute','animationend','_isAnimationOnEnterEnabled','_createLabelElement','isLoading','_createRemoveButton','_initializeProperties','ck-ai-chat-context-chip','uiId','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','content','type','slice','ck-ai-chat-context-chip_document','ck-ai-chat-context-controls__chip-tooltip','bind','585774GsCKik','removeContextItemChip','lastIndexOf','span','305XHiFGL','_createTemplateChildren','length','_createLoaderIcon','ck-ai-chat-context-chip_new-chip','ck-hidden','isVisible','element','fire','itemType','189720HwzrlN','77QgxlFw','ck-ai-chat-context-chip__type-icon','add','selection','readonly','275168gejLwb','1871290gmXGeA','ck-ai-chat-context-chip_wide','18SRUJcn','bindTemplate','classList','extendTemplate','565910iLGULD','removeEventListener','ck-ai-chat-context-chip__label','6dPmucB','_setupTemplate','addEventListener','remove','85458AuxqwL','_handleAnimationEndOnce','setTemplate','webkitAnimationEnd','locale','small','_createIconView','disableAnimationOnEnter','render','_createTemplateAttributes','set','div','document'];_0x145e=function(){return _0x514fcd;};return _0x145e();}function On(_0x3ae4c8){const _0x56f64=_0x27544b;if(!_0x3ae4c8)return _0x3ae4c8;if(_0x3ae4c8[_0x56f64(0xd6)]<=0x78)return _0x3ae4c8;const _0x31b36f=_0x3ae4c8[_0x56f64(0xcc)](0x0,0x78),_0x23a636=_0x31b36f[_0x56f64(0xd2)]('\x20');return(_0x23a636>0x0?_0x31b36f[_0x56f64(0xcc)](0x0,_0x23a636):_0x31b36f)+'…';}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x16ee71=_0x59cf;(function(_0x326a7f,_0x1cb456){const _0xdeb1=_0x59cf,_0x4a64d2=_0x326a7f();while(!![]){try{const _0x3dc9e4=-parseInt(_0xdeb1(0xa7))/0x1*(parseInt(_0xdeb1(0xac))/0x2)+parseInt(_0xdeb1(0x94))/0x3*(parseInt(_0xdeb1(0xaf))/0x4)+-parseInt(_0xdeb1(0x9c))/0x5*(parseInt(_0xdeb1(0xad))/0x6)+-parseInt(_0xdeb1(0xa5))/0x7*(-parseInt(_0xdeb1(0x90))/0x8)+parseInt(_0xdeb1(0xa1))/0x9*(-parseInt(_0xdeb1(0x93))/0xa)+parseInt(_0xdeb1(0xb6))/0xb+parseInt(_0xdeb1(0x92))/0xc*(-parseInt(_0xdeb1(0x8b))/0xd);if(_0x3dc9e4===_0x1cb456)break;else _0x4a64d2['push'](_0x4a64d2['shift']());}catch(_0x1d34ae){_0x4a64d2['push'](_0x4a64d2['shift']());}}}(_0x7239,0x1c244));import{FocusTracker as _0x572969,KeystrokeHandler as _0x87e96f}from'ckeditor5/src/utils.js';import{ButtonView as _0x1bb77d,FocusCycler as _0x61a953,LabeledFieldView as _0x3c157d,View as _0x442224,FormHeaderView as _0x1221ac,createLabeledInputText as _0x125936,submitHandler as _0x33b6c2}from'ckeditor5/src/ui.js';import{IconCheck as _0x12cc97,IconPreviousArrow as _0x210eea}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x4406fc}from'../../../aicore/utils/common-translations.js';function _0x7239(){const _0x4170bd=['clearError','forEach','_isValidUrl','1495659BcTEHa','esc','submit','fieldView','AI_CHAT_CONTEXT_URL_INVALID_ERROR','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','ck-button-icon','AI_CHAT_CONTEXT_URL_PLACEHOLDER','element','ck-ai-chat-context-controls__url-input-section','submitUrl','ck-labeled-field-view_empty','setTemplate','fire','form','ck-button-icon\x20ck-button-back','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','_handleSubmit','shift+tab','length','trim','input','urlInputField','focus','_focusables','_setupEventHandlers','execute','children','keystrokes','locale','_createBackButton','getValue','backButton','104OMofYL','clear','_updateConfirmButtonState','add','setError','4232ZnOJtv','_createUrlInputField','87936snhBpg','561190XaiUgY','195EMwshp','AI_CHAT_CONTEXT_URL_LABEL','_setupTemplate','refreshBalloon','ck-ai-chat-context-controls__url-form','isEnabled','render','AI_CHAT_CONTEXT_URL_ADD_URL','5qUEriQ','focusCycler','_createConfirmButton','errorText','div','9QqCqro','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','focusTracker','createCollection','308FoCvEO','stop','3TFabuf','_setupKeystrokes','value','listenTo','confirmButton','56338pqvXGF','256302oIZmcK','set','12184YipWTl','tab','destroy','cancel'];_0x7239=function(){return _0x4170bd;};return _0x7239();}function _0x59cf(_0xbcdb90,_0x2971ea){const _0x72397b=_0x7239();return _0x59cf=function(_0x59cfa0,_0x40957d){_0x59cfa0=_0x59cfa0-0x7b;let _0x27edf4=_0x72397b[_0x59cfa0];return _0x27edf4;},_0x59cf(_0xbcdb90,_0x2971ea);}const eh=_0x16ee71(0x98),hh=_0x16ee71(0xbf);export class AIChatContextPanelUrlInputView extends _0x442224{[_0x16ee71(0xa3)];[_0x16ee71(0x86)];[_0x16ee71(0x82)];[_0x16ee71(0x9d)];[_0x16ee71(0x80)];[_0x16ee71(0x8a)];[_0x16ee71(0xab)];constructor(_0xa46d35){const _0x135560=_0x16ee71;super(_0xa46d35),this[_0x135560(0xa3)]=new _0x572969(),this[_0x135560(0x86)]=new _0x87e96f(),this[_0x135560(0x8a)]=this[_0x135560(0x88)](),this[_0x135560(0x80)]=this[_0x135560(0x91)](),this[_0x135560(0xab)]=this[_0x135560(0x9e)](),this[_0x135560(0x82)]=this[_0x135560(0xa4)]([this[_0x135560(0x8a)],this[_0x135560(0x80)],this[_0x135560(0xab)]]),this[_0x135560(0x9d)]=new _0x61a953({'focusables':this[_0x135560(0x82)],'focusTracker':this[_0x135560(0xa3)],'keystrokeHandler':this[_0x135560(0x86)],'actions':{'focusPrevious':_0x135560(0x7c),'focusNext':_0x135560(0xb0)}}),this[_0x135560(0x96)](),this[_0x135560(0x83)](),this[_0x135560(0xa8)]();}[_0x16ee71(0x9a)](){const _0x3391aa=_0x16ee71;super[_0x3391aa(0x9a)](),this[_0x3391aa(0x82)][_0x3391aa(0xb4)](_0x15c89e=>{const _0x1da264=_0x3391aa;this[_0x1da264(0xa3)][_0x1da264(0x8e)](_0x15c89e[_0x1da264(0xbe)]),this[_0x1da264(0x86)][_0x1da264(0xaa)](_0x15c89e[_0x1da264(0xbe)]);}),_0x33b6c2({'view':this}),this[_0x3391aa(0x81)]();}[_0x16ee71(0xb1)](){const _0x1d11d3=_0x16ee71;super[_0x1d11d3(0xb1)](),this[_0x1d11d3(0xa3)][_0x1d11d3(0xb1)](),this[_0x1d11d3(0x86)][_0x1d11d3(0xb1)]();}[_0x16ee71(0x81)](){const _0x5243ca=_0x16ee71;this[_0x5243ca(0x80)][_0x5243ca(0x81)]();}[_0x16ee71(0x89)](){const _0x7bac86=_0x16ee71;return this[_0x7bac86(0x80)][_0x7bac86(0xb9)][_0x7bac86(0xbe)]?.[_0x7bac86(0xa9)]?.[_0x7bac86(0x7e)]()||'';}[_0x16ee71(0x8c)](){const _0x25113e=_0x16ee71;this[_0x25113e(0x80)][_0x25113e(0xb9)][_0x25113e(0xbe)][_0x25113e(0xa9)]='',this[_0x25113e(0x80)][_0x25113e(0x9f)]=null,this[_0x25113e(0xab)][_0x25113e(0x99)]=!0x1;}[_0x16ee71(0x8f)](_0x43af58){const _0x5a643a=_0x16ee71;this[_0x5a643a(0x80)][_0x5a643a(0x9f)]=_0x43af58,this[_0x5a643a(0x8d)](),this[_0x5a643a(0xc3)](_0x5a643a(0x97));}[_0x16ee71(0xb3)](){const _0x30cda0=_0x16ee71;this[_0x30cda0(0x80)][_0x30cda0(0x9f)]=null,this[_0x30cda0(0x8d)]();}[_0x16ee71(0x88)](){const _0x4a5e8d=_0x16ee71,_0x5a8038=new _0x1bb77d(this[_0x4a5e8d(0x87)]);return _0x5a8038[_0x4a5e8d(0xae)]({'icon':_0x210eea,'tooltip':_0x4406fc(this[_0x4a5e8d(0x87)],_0x4a5e8d(0xbb)),'tooltipPosition':'n','class':_0x4a5e8d(0xc5)}),_0x5a8038;}[_0x16ee71(0x91)](){const _0x2bdf79=_0x16ee71,_0x3e7a68=new _0x3c157d(this[_0x2bdf79(0x87)],_0x125936);return _0x3e7a68[_0x2bdf79(0xae)]({'label':_0x4406fc(this[_0x2bdf79(0x87)],_0x2bdf79(0x95)),'class':_0x2bdf79(0xc1)}),_0x3e7a68[_0x2bdf79(0xb9)][_0x2bdf79(0xae)]({'placeholder':_0x4406fc(this[_0x2bdf79(0x87)],_0x2bdf79(0xbd))}),_0x3e7a68;}[_0x16ee71(0x9e)](){const _0x7356fd=_0x16ee71,_0x5e5d23=new _0x1bb77d(this[_0x7356fd(0x87)]);return _0x5e5d23[_0x7356fd(0xae)]({'icon':_0x12cc97,'tooltip':_0x4406fc(this[_0x7356fd(0x87)],_0x7356fd(0x9b)),'tooltipPosition':'n','class':_0x7356fd(0xbc),'type':_0x7356fd(0xb8),'isEnabled':!0x1}),_0x5e5d23;}[_0x16ee71(0x96)](){const _0x5a240a=_0x16ee71,_0x58b76b=new _0x1221ac(this[_0x5a240a(0x87)],{'label':_0x4406fc(this[_0x5a240a(0x87)],_0x5a240a(0x9b)),'class':_0x5a240a(0xa2)});_0x58b76b[_0x5a240a(0x85)][_0x5a240a(0x8e)](this[_0x5a240a(0x8a)],0x0),this[_0x5a240a(0xc2)]({'tag':_0x5a240a(0xc4),'attributes':{'class':eh,'tabindex':'-1'},'children':[_0x58b76b,{'tag':_0x5a240a(0xa0),'attributes':{'class':hh},'children':[this[_0x5a240a(0x80)],this[_0x5a240a(0xab)]]}]});}[_0x16ee71(0x83)](){const _0x14f297=_0x16ee71;this[_0x14f297(0x8a)]['on'](_0x14f297(0x84),()=>{const _0x209f7f=_0x14f297;this[_0x209f7f(0x8c)](),this[_0x209f7f(0xc3)](_0x209f7f(0xb2));}),this[_0x14f297(0x80)][_0x14f297(0xb9)]['on'](_0x14f297(0x7f),()=>{const _0x1df67d=_0x14f297;this[_0x1df67d(0xb3)](),this[_0x1df67d(0x8d)](),this[_0x1df67d(0xc3)](_0x1df67d(0x97));}),this['on'](_0x14f297(0xb8),_0x142a29=>{const _0x34f7d8=_0x14f297;_0x142a29[_0x34f7d8(0xa6)](),this[_0x34f7d8(0x7b)]();});}[_0x16ee71(0xa8)](){const _0x20f8ff=_0x16ee71;this[_0x20f8ff(0x86)][_0x20f8ff(0xae)](_0x20f8ff(0xb7),(_0x41663e,_0x26d2be)=>{const _0x352a11=_0x20f8ff;this[_0x352a11(0x8c)](),this[_0x352a11(0xc3)](_0x352a11(0xb2)),_0x26d2be();});}[_0x16ee71(0x7b)](){const _0x57305a=_0x16ee71,_0x4aae99=this[_0x57305a(0x89)]()[_0x57305a(0x7e)]();_0x4aae99?this[_0x57305a(0xb5)](_0x4aae99)?(this[_0x57305a(0xb3)](),this[_0x57305a(0xc3)](_0x57305a(0xc0),_0x4aae99)):this[_0x57305a(0x8f)](_0x4406fc(this[_0x57305a(0x87)],_0x57305a(0xba))):this[_0x57305a(0x8f)](_0x4406fc(this[_0x57305a(0x87)],_0x57305a(0xc6)));}[_0x16ee71(0x8d)](){const _0x29244e=_0x16ee71,_0x3c8682=this[_0x29244e(0x89)]()[_0x29244e(0x7e)](),_0x30dcbe=!!this[_0x29244e(0x80)][_0x29244e(0x9f)];this[_0x29244e(0xab)][_0x29244e(0x99)]=_0x3c8682[_0x29244e(0x7d)]>0x0&&!_0x30dcbe;}[_0x16ee71(0xb5)](_0x3d3f67){try{return!!new URL(_0x3d3f67);}catch{return!0x1;}}}
23
+ const _0xe54e6f=_0x578e;function _0x578e(_0x8242d4,_0x8f1d7c){const _0x30545a=_0x3054();return _0x578e=function(_0x578e04,_0x1c5d46){_0x578e04=_0x578e04-0x141;let _0x4b5f04=_0x30545a[_0x578e04];return _0x4b5f04;},_0x578e(_0x8242d4,_0x8f1d7c);}(function(_0x51c2b7,_0x80cca6){const _0x386c00=_0x578e,_0x57dfaf=_0x51c2b7();while(!![]){try{const _0x571760=-parseInt(_0x386c00(0x175))/0x1+-parseInt(_0x386c00(0x187))/0x2*(parseInt(_0x386c00(0x179))/0x3)+parseInt(_0x386c00(0x17f))/0x4*(-parseInt(_0x386c00(0x182))/0x5)+parseInt(_0x386c00(0x162))/0x6+parseInt(_0x386c00(0x166))/0x7*(parseInt(_0x386c00(0x155))/0x8)+-parseInt(_0x386c00(0x169))/0x9*(-parseInt(_0x386c00(0x14e))/0xa)+parseInt(_0x386c00(0x159))/0xb;if(_0x571760===_0x80cca6)break;else _0x57dfaf['push'](_0x57dfaf['shift']());}catch(_0x5e096f){_0x57dfaf['push'](_0x57dfaf['shift']());}}}(_0x3054,0x46570));import{FocusTracker as _0x451ccd,KeystrokeHandler as _0x3b649d}from'ckeditor5/src/utils.js';import{ButtonView as _0x24112e,FocusCycler as _0x43c0a9,LabeledFieldView as _0x1a285e,View as _0x248eb1,FormHeaderView as _0xec18a3,createLabeledInputText as _0x540d29,submitHandler as _0x4710c5}from'ckeditor5/src/ui.js';import{IconCheck as _0xe37954,IconPreviousArrow as _0x175eba}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x2e93fc}from'../../../aicore/utils/common-translations.js';const eh=_0xe54e6f(0x184),hh=_0xe54e6f(0x17b);export class AIChatContextPanelUrlInputView extends _0x248eb1{[_0xe54e6f(0x177)];[_0xe54e6f(0x18a)];[_0xe54e6f(0x147)];[_0xe54e6f(0x167)];[_0xe54e6f(0x173)];[_0xe54e6f(0x176)];[_0xe54e6f(0x160)];constructor(_0xcbc034){const _0x4a83c3=_0xe54e6f;super(_0xcbc034),this[_0x4a83c3(0x177)]=new _0x451ccd(),this[_0x4a83c3(0x18a)]=new _0x3b649d(),this[_0x4a83c3(0x176)]=this[_0x4a83c3(0x16c)](),this[_0x4a83c3(0x173)]=this[_0x4a83c3(0x172)](),this[_0x4a83c3(0x160)]=this[_0x4a83c3(0x16b)](),this[_0x4a83c3(0x147)]=this[_0x4a83c3(0x158)]([this[_0x4a83c3(0x176)],this[_0x4a83c3(0x173)],this[_0x4a83c3(0x160)]]),this[_0x4a83c3(0x167)]=new _0x43c0a9({'focusables':this[_0x4a83c3(0x147)],'focusTracker':this[_0x4a83c3(0x177)],'keystrokeHandler':this[_0x4a83c3(0x18a)],'actions':{'focusPrevious':_0x4a83c3(0x188),'focusNext':_0x4a83c3(0x170)}}),this[_0x4a83c3(0x151)](),this[_0x4a83c3(0x174)](),this[_0x4a83c3(0x15b)]();}[_0xe54e6f(0x17c)](){const _0x4541f4=_0xe54e6f;super[_0x4541f4(0x17c)](),this[_0x4541f4(0x147)][_0x4541f4(0x150)](_0x329e74=>{const _0x70cdc=_0x4541f4;this[_0x70cdc(0x177)][_0x70cdc(0x15d)](_0x329e74[_0x70cdc(0x180)]),this[_0x70cdc(0x18a)][_0x70cdc(0x16d)](_0x329e74[_0x70cdc(0x180)]);}),_0x4710c5({'view':this}),this[_0x4541f4(0x17e)]();}[_0xe54e6f(0x17a)](){const _0x437c93=_0xe54e6f;super[_0x437c93(0x17a)](),this[_0x437c93(0x177)][_0x437c93(0x17a)](),this[_0x437c93(0x18a)][_0x437c93(0x17a)]();}[_0xe54e6f(0x17e)](){const _0x3f5d94=_0xe54e6f;this[_0x3f5d94(0x173)][_0x3f5d94(0x17e)]();}[_0xe54e6f(0x154)](){const _0x314b82=_0xe54e6f;return this[_0x314b82(0x173)][_0x314b82(0x163)][_0x314b82(0x180)]?.[_0x314b82(0x14d)]?.[_0x314b82(0x153)]()||'';}[_0xe54e6f(0x161)](){const _0x4253c7=_0xe54e6f;this[_0x4253c7(0x173)][_0x4253c7(0x163)][_0x4253c7(0x180)][_0x4253c7(0x14d)]='',this[_0x4253c7(0x173)][_0x4253c7(0x15e)]=null,this[_0x4253c7(0x160)][_0x4253c7(0x149)]=!0x1;}[_0xe54e6f(0x146)](_0x1a676e){const _0x35317d=_0xe54e6f;this[_0x35317d(0x173)][_0x35317d(0x15e)]=_0x1a676e,this[_0x35317d(0x16e)](),this[_0x35317d(0x186)](_0x35317d(0x156));}[_0xe54e6f(0x14a)](){const _0xb706e6=_0xe54e6f;this[_0xb706e6(0x173)][_0xb706e6(0x15e)]=null,this[_0xb706e6(0x16e)]();}[_0xe54e6f(0x16c)](){const _0x10b3fa=_0xe54e6f,_0xc90b2a=new _0x24112e(this[_0x10b3fa(0x145)]);return _0xc90b2a[_0x10b3fa(0x141)]({'icon':_0x175eba,'tooltip':_0x2e93fc(this[_0x10b3fa(0x145)],_0x10b3fa(0x15a)),'tooltipPosition':'n','class':_0x10b3fa(0x144)}),_0xc90b2a;}[_0xe54e6f(0x172)](){const _0x44c2f8=_0xe54e6f,_0x3acf37=new _0x1a285e(this[_0x44c2f8(0x145)],_0x540d29);return _0x3acf37[_0x44c2f8(0x141)]({'label':_0x2e93fc(this[_0x44c2f8(0x145)],_0x44c2f8(0x17d)),'class':_0x44c2f8(0x181)}),_0x3acf37[_0x44c2f8(0x163)][_0x44c2f8(0x141)]({'placeholder':_0x2e93fc(this[_0x44c2f8(0x145)],_0x44c2f8(0x143))}),_0x3acf37;}[_0xe54e6f(0x16b)](){const _0x412243=_0xe54e6f,_0x3cbe34=new _0x24112e(this[_0x412243(0x145)]);return _0x3cbe34[_0x412243(0x141)]({'icon':_0xe37954,'tooltip':_0x2e93fc(this[_0x412243(0x145)],_0x412243(0x165)),'tooltipPosition':'n','class':_0x412243(0x15f),'type':_0x412243(0x152),'isEnabled':!0x1}),_0x3cbe34;}[_0xe54e6f(0x151)](){const _0x4adfc8=_0xe54e6f,_0x2aa536=new _0xec18a3(this[_0x4adfc8(0x145)],{'label':_0x2e93fc(this[_0x4adfc8(0x145)],_0x4adfc8(0x165)),'class':_0x4adfc8(0x157)});_0x2aa536[_0x4adfc8(0x16a)][_0x4adfc8(0x15d)](this[_0x4adfc8(0x176)],0x0),this[_0x4adfc8(0x148)]({'tag':_0x4adfc8(0x14b),'attributes':{'class':eh,'tabindex':'-1'},'children':[_0x2aa536,{'tag':_0x4adfc8(0x16f),'attributes':{'class':hh},'children':[this[_0x4adfc8(0x173)],this[_0x4adfc8(0x160)]]}]});}[_0xe54e6f(0x174)](){const _0x302a3e=_0xe54e6f;this[_0x302a3e(0x176)]['on'](_0x302a3e(0x14c),()=>{const _0x118fcc=_0x302a3e;this[_0x118fcc(0x161)](),this[_0x118fcc(0x186)](_0x118fcc(0x185));}),this[_0x302a3e(0x173)][_0x302a3e(0x163)]['on'](_0x302a3e(0x189),()=>{const _0x26be93=_0x302a3e;this[_0x26be93(0x14a)](),this[_0x26be93(0x16e)](),this[_0x26be93(0x186)](_0x26be93(0x156));}),this['on'](_0x302a3e(0x152),_0x3533dc=>{const _0x2b686e=_0x302a3e;_0x3533dc[_0x2b686e(0x168)](),this[_0x2b686e(0x183)]();});}[_0xe54e6f(0x15b)](){const _0x3327c4=_0xe54e6f;this[_0x3327c4(0x18a)][_0x3327c4(0x141)](_0x3327c4(0x164),(_0x1d336c,_0x47294e)=>{const _0x506f6d=_0x3327c4;this[_0x506f6d(0x161)](),this[_0x506f6d(0x186)](_0x506f6d(0x185)),_0x47294e();});}[_0xe54e6f(0x183)](){const _0x26243e=_0xe54e6f,_0x5269c9=this[_0x26243e(0x154)]()[_0x26243e(0x153)]();_0x5269c9?this[_0x26243e(0x178)](_0x5269c9)?(this[_0x26243e(0x14a)](),this[_0x26243e(0x186)](_0x26243e(0x142),_0x5269c9)):this[_0x26243e(0x146)](_0x2e93fc(this[_0x26243e(0x145)],_0x26243e(0x14f))):this[_0x26243e(0x146)](_0x2e93fc(this[_0x26243e(0x145)],_0x26243e(0x15c)));}[_0xe54e6f(0x16e)](){const _0x5e5082=_0xe54e6f,_0x41d381=this[_0x5e5082(0x154)]()[_0x5e5082(0x153)](),_0x55cf4e=!!this[_0x5e5082(0x173)][_0x5e5082(0x15e)];this[_0x5e5082(0x160)][_0x5e5082(0x149)]=_0x41d381[_0x5e5082(0x171)]>0x0&&!_0x55cf4e;}[_0xe54e6f(0x178)](_0x15f93c){try{return!!new URL(_0x15f93c);}catch{return!0x1;}}}function _0x3054(){const _0x18ce92=['focusCycler','stop','9WJRWxk','children','_createConfirmButton','_createBackButton','listenTo','_updateConfirmButtonState','div','tab','length','_createUrlInputField','urlInputField','_setupEventHandlers','290201qgdxVy','backButton','focusTracker','_isValidUrl','3LMHxUL','destroy','ck-ai-chat-context-controls__url-input-section','render','AI_CHAT_CONTEXT_URL_LABEL','focus','228308PENBGw','element','ck-labeled-field-view_empty','40VSfliF','_handleSubmit','ck-ai-chat-context-controls__url-form','cancel','fire','492034ENMTlO','shift+tab','input','keystrokes','set','submitUrl','AI_CHAT_CONTEXT_URL_PLACEHOLDER','ck-button-icon\x20ck-button-back','locale','setError','_focusables','setTemplate','isEnabled','clearError','form','execute','value','2445470NemSsG','AI_CHAT_CONTEXT_URL_INVALID_ERROR','forEach','_setupTemplate','submit','trim','getValue','11848jKfohP','refreshBalloon','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','createCollection','2540681bjJBct','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','_setupKeystrokes','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','add','errorText','ck-button-icon','confirmButton','clear','1642494KozFuX','fieldView','esc','AI_CHAT_CONTEXT_URL_ADD_URL','2513KaZbEW'];_0x3054=function(){return _0x18ce92;};return _0x3054();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x1e5b(){const _0x10971c=['isHidden','set','_setAddContextButtonEnabled','_addContextBalloonConfig','updateResourceState','ck-ai-chat-context-chips-wrapper-balloon','type','3827362MJuBik','addResourceToContext','addFileToContext','addContextButtonView','addDocumentToContext','southArrowNorthWest','setTemplate','_urlInputView','document','current','79968YrXipK','createCollection','sources','enabled','_createArrowView','removeContextItemChip','ck-ai-chat-context-controls','icon','menuitem','conversation','ck-ai-chat-controls_context_show-more-button','_showSourceResourcesBalloon','hideAddContextBalloonPanel','isOn','destroy','_handleAddContextButtonClick','focus','buttonView','submitUrl','_createUrlBalloonPanelView','setConversationContext','__arrow','3028725BBIpTS','6hHFrdb','clear','ck-reset_all-excluded','southArrowNorth','add','addContextItem','ck-ai-chat-context-controls__balloon-button-source','hide','div','_setBalloonPanelContent','setAddContextOptions','_conversationContextsChips','3SfpNgu','935164YAYJqE','AI_CHAT_CONTEXT_URL_LABEL','ck-ai-chat-context-controls__pending-contexts','_getLimiterElement','execute','tooltip','4378pjxWQY','clearCurrentContextItems','_handleUrlSubmit','_urlBalloonPanelView','removeContextItem','159065gjZQjS','files','_createResourcesBalloonView','setContextItemLoading','closest','southArrowNorthEast','populateSourceResourceBalloon','bind','_overflowManager','showAddContextBalloonPanel','defaultPositions','done','locale','urls','1602265zqYDBY','northArrowSouth','northArrowSouthEast','_setupTemplate','AI_CHAT_CONTEXT_FILE_LABEL','isLoading','_addContextToCollection','setContainerElement','northArrowSouthWest','find','_addContextBalloonPanelView','isAnyResourceBalloonVisible','remove','10CuLrRC','8sNzIzB','_setupUrlBalloonClickOutsideHandler','_createAddContextBalloonPanelView','arrowView','extendTemplate','closeSourceResourceBalloon','_createContextButton','208FqdtSp','_removeContextFromCollection','balloonView','render','_toggleAddContextBalloon','refreshBalloon','content','ck-ai-chat-controls-button','show','fire','ck-ai-chat-context-controls__balloon-button','_createBaseBalloonPanel','children','_resourcesBalloonView','showSourceResourcesBalloon','ck-ai-chat-context-controls__add-context-balloon-panel','ck-ai-chat','source','isEnabled','showUrlBalloonPanel','_setupAddContextBalloonClickOutsideHandler','_currentContextsChips','hideUrlBalloonPanel','_setupAllBalloonClickOutsideHandlers','element','label','cancel','overflowChips','_createAddContextButtonView','AI_CHAT_CONTEXT_ADD_CONTEXT','reorganizeChips','addUrlToContext','_addUrlContent','_bindEventHandlers','loadSourceResources','pin','ck-ai-chat-context-controls__show-more-balloon-panel','_createBalloonButton','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','58JCkTFv','clearConversationContextItems','isReadOnly','isVisible','bodyCollection','ck-ai-chat-context-controls__add-context-button','ck-ai-chat-context-controls__url-balloon-panel','body'];_0x1e5b=function(){return _0x10971c;};return _0x1e5b();}const _0x2a1b80=_0x20f6;(function(_0x4aa0c9,_0x26ba98){const _0x39d9fa=_0x20f6,_0x2c0185=_0x4aa0c9();while(!![]){try{const _0x285601=-parseInt(_0x39d9fa(0x190))/0x1*(-parseInt(_0x39d9fa(0x1d3))/0x2)+parseInt(_0x39d9fa(0x1cc))/0x3*(-parseInt(_0x39d9fa(0x1cd))/0x4)+-parseInt(_0x39d9fa(0x1d8))/0x5*(parseInt(_0x39d9fa(0x1c0))/0x6)+-parseInt(_0x39d9fa(0x1e6))/0x7+-parseInt(_0x39d9fa(0x1f4))/0x8*(-parseInt(_0x39d9fa(0x1bf))/0x9)+-parseInt(_0x39d9fa(0x1f3))/0xa*(-parseInt(_0x39d9fa(0x19f))/0xb)+parseInt(_0x39d9fa(0x1a9))/0xc*(-parseInt(_0x39d9fa(0x1fb))/0xd);if(_0x285601===_0x26ba98)break;else _0x2c0185['push'](_0x2c0185['shift']());}catch(_0x576243){_0x2c0185['push'](_0x2c0185['shift']());}}}(_0x1e5b,0x33582));import{BalloonPanelView as _0xd97f0a,ButtonView as _0x53f213,clickOutsideHandler as _0xb7579c,FileDialogButtonView as _0x5d0e9f,IconView as _0xf2b7d4,View as _0x5c5759}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x4e693f,IconDocument as _0x5baeda,IconDocumentOutline as _0x17490f,IconDropdownArrow as _0x1b8916,IconLink as _0x3c3bb6,IconPaperClip as _0x509479}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x36aaac}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x5ffd88}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x5b307c}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x1a0bfc}from'../../../aicore/utils/common-translations.js';function _0x20f6(_0x500f39,_0x39cae4){const _0x1e5bee=_0x1e5b();return _0x20f6=function(_0x20f663,_0x2b48fc){_0x20f663=_0x20f663-0x175;let _0x33a997=_0x1e5bee[_0x20f663];return _0x33a997;},_0x20f6(_0x500f39,_0x39cae4);}import{AIChatResourcesBalloonView as _0x48750c}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x2a1b80(0x1a3),_0x2a1b80(0x1a1),_0x2a1b80(0x188),_0x2a1b80(0x1a0),_0x2a1b80(0x1d7),_0x2a1b80(0x18b)];const po=_0x2a1b80(0x1af),Bo=_0x2a1b80(0x1cf),bo=_0x2a1b80(0x178),To=_0x2a1b80(0x195),Ao=_0x2a1b80(0x196),ko=_0x2a1b80(0x205),Eo=_0x2a1b80(0x1c6),vo=_0x2a1b80(0x202),go=_0x2a1b80(0x19d),Vo=_0x2a1b80(0x1b3),fo=_0x2a1b80(0x18d),Io=_0x2a1b80(0x179),Po=[_0xd97f0a[_0x2a1b80(0x1e2)][_0x2a1b80(0x1ee)],_0xd97f0a[_0x2a1b80(0x1e2)][_0x2a1b80(0x1e7)],_0xd97f0a[_0x2a1b80(0x1e2)][_0x2a1b80(0x1e8)],_0xd97f0a[_0x2a1b80(0x1e2)][_0x2a1b80(0x1a4)],_0xd97f0a[_0x2a1b80(0x1e2)][_0x2a1b80(0x1c3)],_0xd97f0a[_0x2a1b80(0x1e2)][_0x2a1b80(0x1dd)]];export class AIChatContextPanelView extends _0x5c5759{[_0x2a1b80(0x1a2)];[_0x2a1b80(0x17e)]=this[_0x2a1b80(0x1aa)]();[_0x2a1b80(0x1cb)]=this[_0x2a1b80(0x1aa)]();[_0x2a1b80(0x1e0)];[_0x2a1b80(0x1f0)];[_0x2a1b80(0x1d6)];[_0x2a1b80(0x1a6)];[_0x2a1b80(0x176)];[_0x2a1b80(0x19b)];[_0x2a1b80(0x194)];constructor(_0x10b443,_0x157913){const _0x4500d7=_0x2a1b80;super(_0x10b443),this[_0x4500d7(0x194)]=_0x157913,this[_0x4500d7(0x17e)]=this[_0x4500d7(0x1aa)](),this[_0x4500d7(0x1cb)]=this[_0x4500d7(0x1aa)](),this[_0x4500d7(0x1a2)]=this[_0x4500d7(0x185)](_0x10b443),this[_0x4500d7(0x1f0)]=this[_0x4500d7(0x1f6)](_0x10b443),this[_0x4500d7(0x1d6)]=this[_0x4500d7(0x1bc)](_0x10b443),this[_0x4500d7(0x176)]=this[_0x4500d7(0x1da)](_0x10b443,_0x157913);const _0x49a7a6={'cssClasses':{'showMoreButton':Vo,'showMoreBalloon':fo,'overflowContainer':go,'controlsButton':vo}};this[_0x4500d7(0x1e0)]=new _0x5b307c(_0x10b443,this[_0x4500d7(0x17e)],_0x49a7a6,this[_0x4500d7(0x194)],this),this[_0x4500d7(0x19b)]={'buttonView':this[_0x4500d7(0x1a2)],'balloonView':this[_0x4500d7(0x1f0)],'hideMethod':this[_0x4500d7(0x1b5)][_0x4500d7(0x1df)](this),'showMethod':this[_0x4500d7(0x1e1)][_0x4500d7(0x1df)](this)},this[_0x4500d7(0x1e9)](),this[_0x4500d7(0x18a)]();}[_0x2a1b80(0x1fe)](){const _0x2841a1=_0x2a1b80;super[_0x2841a1(0x1fe)](),this[_0x2841a1(0x180)](),this[_0x2841a1(0x1e0)][_0x2841a1(0x1ed)](this[_0x2841a1(0x181)]),this[_0x2841a1(0x1e0)][_0x2841a1(0x187)]();}[_0x2a1b80(0x1b7)](){const _0x390068=_0x2a1b80;super[_0x390068(0x1b7)](),this[_0x390068(0x1e0)][_0x390068(0x1b7)](),this[_0x390068(0x176)][_0x390068(0x1b7)]();}[_0x2a1b80(0x1c5)](_0x9037dd,_0x503845){const _0x36eb0e=_0x2a1b80,_0x245813=this[_0x36eb0e(0x1fa)](_0x9037dd,_0x36eb0e(0x1a8),!0x0,_0x503845);this[_0x36eb0e(0x1ec)](_0x245813,this[_0x36eb0e(0x17e)]),this[_0x36eb0e(0x1e0)][_0x36eb0e(0x187)]();}[_0x2a1b80(0x1d7)](_0x2eee89){const _0x3f1f9c=_0x2a1b80;this[_0x3f1f9c(0x1fc)](_0x2eee89,this[_0x3f1f9c(0x17e)]),this[_0x3f1f9c(0x1fc)](_0x2eee89,this[_0x3f1f9c(0x1e0)][_0x3f1f9c(0x184)]),this[_0x3f1f9c(0x1e0)][_0x3f1f9c(0x187)]();}[_0x2a1b80(0x1db)](_0xd7f09c,_0xd6e52){const _0x35cdfe=_0x2a1b80;let _0x551e6f=this[_0x35cdfe(0x17e)][_0x35cdfe(0x1ef)](_0x133960=>_0x133960['id']===_0xd7f09c);_0x551e6f||(_0x551e6f=this[_0x35cdfe(0x1e0)][_0x35cdfe(0x184)][_0x35cdfe(0x1ef)](_0x5398f7=>_0x5398f7['id']===_0xd7f09c)),_0x551e6f&&(_0x551e6f[_0x35cdfe(0x1eb)]=_0xd6e52);}[_0x2a1b80(0x1bd)](_0x32bc75){const _0x4f3c35=_0x2a1b80;this[_0x4f3c35(0x1cb)][_0x4f3c35(0x1c1)]();for(const _0x4f4b0a of _0x32bc75){const _0x32ed8c=this[_0x4f3c35(0x1fa)](_0x4f4b0a,_0x4f3c35(0x1b2),!0x1,!0x1);this[_0x4f3c35(0x1ec)](_0x32ed8c,this[_0x4f3c35(0x1cb)]);}}[_0x2a1b80(0x1d4)](){const _0x30a8f3=_0x2a1b80;this[_0x30a8f3(0x17e)][_0x30a8f3(0x1c1)](),this[_0x30a8f3(0x1e0)][_0x30a8f3(0x1c1)]();}[_0x2a1b80(0x191)](){const _0x283fd0=_0x2a1b80;this[_0x283fd0(0x1cb)][_0x283fd0(0x1c1)]();}[_0x2a1b80(0x19c)](_0x1c443e,_0x4ef5be,_0x47876d){const _0x238bfb=_0x2a1b80;this[_0x238bfb(0x176)][_0x238bfb(0x19c)](_0x1c443e,_0x4ef5be,_0x47876d);}[_0x2a1b80(0x1b5)](){const _0x476cfd=_0x2a1b80;this[_0x476cfd(0x1ff)](!0x1);}[_0x2a1b80(0x1e1)](){const _0x15e7d7=_0x2a1b80;this[_0x15e7d7(0x1ff)](!0x0);}[_0x2a1b80(0x17f)](){const _0x53eff7=_0x2a1b80;this[_0x53eff7(0x1d6)][_0x53eff7(0x1c7)](),this[_0x53eff7(0x1a2)][_0x53eff7(0x1b6)]=!0x1,this[_0x53eff7(0x1a6)]&&this[_0x53eff7(0x1a6)][_0x53eff7(0x1c1)]();}[_0x2a1b80(0x17c)](){const _0x567c04=_0x2a1b80;this[_0x567c04(0x1d6)][_0x567c04(0x203)](),this[_0x567c04(0x1a2)][_0x567c04(0x1b6)]=!0x0;}[_0x2a1b80(0x1b4)](_0x25bf91){const _0x3c11b0=_0x2a1b80;this[_0x3c11b0(0x176)][_0x3c11b0(0x177)](_0x25bf91),this[_0x3c11b0(0x1a2)][_0x3c11b0(0x1b6)]=!0x0;}[_0x2a1b80(0x1de)](_0x387de9,_0x24287c,_0x790fdc,_0x901129){const _0x1579d3=_0x2a1b80;this[_0x1579d3(0x176)][_0x1579d3(0x1de)](_0x387de9,_0x790fdc,_0x901129);}[_0x2a1b80(0x1f9)](_0x89ce1e){const _0x1232d6=_0x2a1b80;this[_0x1232d6(0x176)][_0x1232d6(0x1f9)](_0x89ce1e),this[_0x1232d6(0x1a2)][_0x1232d6(0x1b6)]=!0x1;}[_0x2a1b80(0x1ca)](_0x4b5351){const _0xfafe49=_0x2a1b80;this[_0xfafe49(0x1c9)](this[_0xfafe49(0x1f0)],this[_0xfafe49(0x1e4)],_0x4b5351),this[_0xfafe49(0x19a)](_0x4b5351);}[_0x2a1b80(0x19a)](_0x100b47){const _0x553366=_0x2a1b80,_0x5e5c03=!_0x100b47[_0x553366(0x1a7)][_0x553366(0x198)]&&_0x100b47[_0x553366(0x1a7)][_0x553366(0x1ac)],_0x9cd169=_0x100b47[_0x553366(0x1e5)][_0x553366(0x1ac)],_0x49f6c1=_0x100b47[_0x553366(0x1d9)][_0x553366(0x1ac)];this[_0x553366(0x1a2)][_0x553366(0x17b)]=_0x5e5c03||_0x9cd169||_0x49f6c1;}[_0x2a1b80(0x1e9)](){const _0x501bd1=_0x2a1b80;this[_0x501bd1(0x1a5)]({'tag':_0x501bd1(0x1c8),'attributes':{'class':[po,_0x501bd1(0x1c2)]},'children':[{'tag':_0x501bd1(0x1c8),'attributes':{'class':Bo},'children':this[_0x501bd1(0x17e)]}]});}[_0x2a1b80(0x18a)](){const _0x333f07=_0x2a1b80;this[_0x333f07(0x1a2)]['on'](_0x333f07(0x1d1),()=>{const _0x598f50=_0x333f07;this[_0x598f50(0x1b8)]();});}[_0x2a1b80(0x185)](_0x19f37d){const _0x10e6ab=_0x2a1b80,_0x4e098e=new _0x53f213(_0x19f37d);return _0x4e098e[_0x10e6ab(0x199)]({'label':_0x1a0bfc(_0x19f37d,_0x10e6ab(0x186)),'class':vo+'\x20'+To,'icon':_0x509479,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x4e098e;}[_0x2a1b80(0x1f6)](_0x3e5995){const _0x1d91da=_0x2a1b80;return this[_0x1d91da(0x206)](_0x3e5995,bo);}[_0x2a1b80(0x1bc)](_0x35c282){const _0x178c1f=_0x2a1b80,_0x33d105=this[_0x178c1f(0x206)](_0x35c282,Ao);return this[_0x178c1f(0x189)](_0x33d105,_0x35c282),_0x33d105;}[_0x2a1b80(0x1da)](_0x53562e,_0x4ec004){const _0x5be9c1=_0x2a1b80;return new _0x48750c(_0x53562e,_0x4ec004,{'onBackToContext':()=>{const _0x4f22b5=_0x20f6;this[_0x4f22b5(0x1e1)](),this[_0x4f22b5(0x1f0)][_0x4f22b5(0x18c)]({'target':this[_0x4f22b5(0x1a2)][_0x4f22b5(0x181)],'limiter':this[_0x4f22b5(0x1d0)](),'positions':Po});},'onResourceSelected':(_0x5c76bc,_0x8d922a)=>{const _0x1ab08a=_0x20f6;this[_0x1ab08a(0x204)](_0x1ab08a(0x1a0),{'source':_0x5c76bc,'resource':_0x8d922a});},'onLoadSourceResources':_0x465279=>{const _0x524b20=_0x20f6;this[_0x524b20(0x204)](_0x524b20(0x18b),_0x465279);},'onBalloonClosed':()=>{const _0x288c16=_0x20f6;this[_0x288c16(0x1a2)][_0x288c16(0x1b6)]=!0x1;},'getLimiterElement':()=>this[_0x5be9c1(0x1d0)](),'getTargetElement':()=>this[_0x5be9c1(0x1a2)][_0x5be9c1(0x181)]});}[_0x2a1b80(0x1d0)](){const _0x54d3f4=_0x2a1b80;return this[_0x54d3f4(0x181)]?.[_0x54d3f4(0x1dc)]('.'+Io)||document[_0x54d3f4(0x197)];}[_0x2a1b80(0x206)](_0xa0ffbb,_0x4ce952){const _0x19f690=_0x2a1b80,_0x458097=new _0xd97f0a(_0xa0ffbb);return _0x458097[_0x19f690(0x1f8)]({'attributes':{'class':_0x4ce952}}),this[_0x19f690(0x194)][_0x19f690(0x1c4)](_0x458097),_0x458097;}[_0x2a1b80(0x1c9)](_0x293821,_0x2ca0eb,_0x15bc06){const _0x249a4c=_0x2a1b80;if(_0x293821[_0x249a4c(0x201)][_0x249a4c(0x1c1)](),!_0x15bc06[_0x249a4c(0x1a7)][_0x249a4c(0x198)]&&_0x15bc06[_0x249a4c(0x1a7)][_0x249a4c(0x1ac)]){const _0x1a4fb3=this[_0x249a4c(0x18e)](_0x2ca0eb,{'label':_0x1a0bfc(_0x2ca0eb,_0x249a4c(0x18f)),'icon':_0x5baeda});_0x1a4fb3['on'](_0x249a4c(0x1d1),()=>{const _0x23832f=_0x249a4c;this[_0x23832f(0x204)](_0x23832f(0x1a3)),this[_0x23832f(0x1b5)]();}),_0x293821[_0x249a4c(0x201)][_0x249a4c(0x1c4)](_0x1a4fb3);}if(_0x15bc06[_0x249a4c(0x1e5)][_0x249a4c(0x1ac)]){const _0x141eb3=this[_0x249a4c(0x18e)](_0x2ca0eb,{'label':_0x1a0bfc(_0x2ca0eb,_0x249a4c(0x1ce)),'icon':_0x3c3bb6});_0x141eb3['on'](_0x249a4c(0x1d1),()=>{const _0x5c7f4f=_0x249a4c;this[_0x5c7f4f(0x1b5)](),this[_0x5c7f4f(0x17c)](),this[_0x5c7f4f(0x1d6)][_0x5c7f4f(0x18c)]({'target':this[_0x5c7f4f(0x1a2)][_0x5c7f4f(0x181)],'limiter':this[_0x5c7f4f(0x1d0)](),'positions':Po}),this[_0x5c7f4f(0x1a6)][_0x5c7f4f(0x1b9)]();}),_0x293821[_0x249a4c(0x201)][_0x249a4c(0x1c4)](_0x141eb3);}if(_0x15bc06[_0x249a4c(0x1d9)][_0x249a4c(0x1ac)]){const _0x35777c=new _0x5d0e9f(_0x2ca0eb);_0x35777c[_0x249a4c(0x199)]({'label':_0x1a0bfc(_0x2ca0eb,_0x249a4c(0x1ea)),'icon':_0x4e693f,'withText':!0x0,'tooltip':!0x0,'class':ko,'allowMultipleFiles':!0x0}),_0x35777c['on'](_0x249a4c(0x1e3),(_0x4c0484,_0x2be06b)=>{const _0x354b9a=_0x249a4c;this[_0x354b9a(0x204)](_0x354b9a(0x1a1),_0x2be06b),this[_0x354b9a(0x1b5)]();}),_0x35777c[_0x249a4c(0x1d2)]=!0x0,_0x293821[_0x249a4c(0x201)][_0x249a4c(0x1c4)](_0x35777c);}for(const _0x41cd4b of _0x15bc06[_0x249a4c(0x1ab)]){const _0x427d56=this[_0x249a4c(0x18e)](_0x2ca0eb,{'label':_0x41cd4b[_0x249a4c(0x182)],'icon':_0x41cd4b[_0x249a4c(0x1b0)]||_0x17490f,'type':_0x249a4c(0x17a)});_0x293821[_0x249a4c(0x201)][_0x249a4c(0x1c4)](_0x427d56),_0x427d56['on'](_0x249a4c(0x1d1),()=>{const _0x5bb7c5=_0x249a4c;this[_0x5bb7c5(0x1b5)](),this[_0x5bb7c5(0x1b4)](_0x41cd4b);});}}[_0x2a1b80(0x189)](_0x260d5a,_0x36d75a){const _0x3811f6=_0x2a1b80;this[_0x3811f6(0x1a6)]=new _0x5ffd88(_0x36d75a),this[_0x3811f6(0x1a6)]['on'](_0x3811f6(0x1bb),(_0x2edd61,_0x4e27c1)=>{const _0x4a2199=_0x3811f6;this[_0x4a2199(0x1d5)](_0x4e27c1);}),this[_0x3811f6(0x1a6)]['on'](_0x3811f6(0x183),()=>{const _0x8538d8=_0x3811f6;this[_0x8538d8(0x17f)](),this[_0x8538d8(0x1e1)](),this[_0x8538d8(0x1f0)][_0x8538d8(0x18c)]({'target':this[_0x8538d8(0x1a2)][_0x8538d8(0x181)],'limiter':this[_0x8538d8(0x1d0)](),'positions':Po});}),this[_0x3811f6(0x1a6)]['on'](_0x3811f6(0x200),()=>{const _0x51b051=_0x3811f6;this[_0x51b051(0x1d6)][_0x51b051(0x193)]&&this[_0x51b051(0x1d6)][_0x51b051(0x18c)]({'target':this[_0x51b051(0x1a2)][_0x51b051(0x181)],'limiter':this[_0x51b051(0x1d0)](),'positions':Po});}),_0x260d5a[_0x3811f6(0x201)][_0x3811f6(0x1c4)](this[_0x3811f6(0x1a6)]);}[_0x2a1b80(0x18e)](_0x4a95b6,_0x28c627){const _0x4170d1=_0x2a1b80,_0x2a2716=_0x4170d1(0x17a)===_0x28c627[_0x4170d1(0x19e)]?new SourcesBalloonButtonView(_0x4a95b6):new _0x53f213(_0x4a95b6);return _0x2a2716[_0x4170d1(0x199)]({'label':_0x28c627[_0x4170d1(0x182)],'icon':_0x28c627[_0x4170d1(0x1b0)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':ko}),_0x2a2716;}[_0x2a1b80(0x180)](){const _0x414004=_0x2a1b80;this[_0x414004(0x17d)](),this[_0x414004(0x1f5)]();}[_0x2a1b80(0x1f5)](){const _0x4da4df=_0x2a1b80;_0xb7579c({'emitter':this[_0x4da4df(0x1d6)],'contextElements':[this[_0x4da4df(0x1d6)][_0x4da4df(0x181)]],'callback':()=>{const _0x478cc3=_0x4da4df;this[_0x478cc3(0x17f)]();},'activator':()=>this[_0x4da4df(0x1d6)][_0x4da4df(0x193)]});}[_0x2a1b80(0x1ff)](_0x563d21){const _0x24d741=_0x2a1b80,_0xed96d6=this[_0x24d741(0x19b)];_0xed96d6[_0x24d741(0x1ba)][_0x24d741(0x1b6)]=_0x563d21,_0x563d21?_0xed96d6[_0x24d741(0x1fd)][_0x24d741(0x203)]():_0xed96d6[_0x24d741(0x1fd)][_0x24d741(0x1c7)]();}[_0x2a1b80(0x17d)](){const _0x487763=_0x2a1b80,{balloonView:_0x31ec94,buttonView:_0x384993,hideMethod:_0xd7771e}=this[_0x487763(0x19b)];_0xb7579c({'emitter':_0x31ec94,'contextElements':[_0x31ec94[_0x487763(0x181)],_0x384993[_0x487763(0x181)]],'callback':()=>{_0xd7771e();},'activator':()=>_0x384993[_0x487763(0x1b6)]&&!this[_0x487763(0x1d6)][_0x487763(0x193)]&&!this[_0x487763(0x176)][_0x487763(0x1f1)]()});}[_0x2a1b80(0x1fa)](_0x4ac952,_0x3b65e7,_0x53b6b1=!0x1,_0x830b05=!0x1){const _0x13431c=_0x2a1b80,_0x4724f2=_0x13431c(0x1b2)===_0x3b65e7||!0x0===_0x4ac952[_0x13431c(0x192)],_0x538925=new _0x36aaac(this[_0x13431c(0x1e4)],_0x4ac952,_0x4724f2,_0x53b6b1,_0x830b05);return _0x4724f2||_0x538925['on'](_0x13431c(0x1ae),()=>{const _0x247828=_0x13431c;this[_0x247828(0x204)](_0x247828(0x1d7),_0x538925['id']);}),_0x538925;}[_0x2a1b80(0x1ec)](_0x231e4a,_0x2307f4){const _0x8bc736=_0x2a1b80;_0x2307f4[_0x8bc736(0x1c4)](_0x231e4a,0x0);}[_0x2a1b80(0x1fc)](_0x49746f,_0x4fa8c7){const _0x486f50=_0x2a1b80,_0x214332=_0x4fa8c7[_0x486f50(0x1ef)](_0x423902=>_0x423902['id']===_0x49746f);_0x214332&&_0x4fa8c7[_0x486f50(0x1f2)](_0x214332);}[_0x2a1b80(0x1b8)](){const _0x55a4e0=_0x2a1b80;this[_0x55a4e0(0x1a2)][_0x55a4e0(0x1b6)]?this[_0x55a4e0(0x1b5)]():(this[_0x55a4e0(0x1e1)](),this[_0x55a4e0(0x1f0)][_0x55a4e0(0x18c)]({'target':this[_0x55a4e0(0x1a2)][_0x55a4e0(0x181)],'limiter':this[_0x55a4e0(0x1d0)](),'positions':Po}));}[_0x2a1b80(0x1d5)](_0x2e5329){const _0xd2f881=_0x2a1b80;this[_0xd2f881(0x1a6)][_0xd2f881(0x1c1)](),this[_0xd2f881(0x17f)](),this[_0xd2f881(0x204)](_0xd2f881(0x188),_0x2e5329);}}export class SourcesBalloonButtonView extends _0x53f213{[_0x2a1b80(0x1f7)];constructor(_0x3c39df){const _0x38cccc=_0x2a1b80;super(_0x3c39df),this[_0x38cccc(0x199)]({'withText':!0x0,'role':_0x38cccc(0x1b1)}),this[_0x38cccc(0x1f7)]=this[_0x38cccc(0x1ad)](),this[_0x38cccc(0x1f8)]({'attributes':{'class':[Eo]}});}[_0x2a1b80(0x1fe)](){const _0x13157e=_0x2a1b80;super[_0x13157e(0x1fe)](),this[_0x13157e(0x175)][_0x13157e(0x1c4)](this[_0x13157e(0x1f7)]);}[_0x2a1b80(0x1ad)](){const _0x27657b=_0x2a1b80,_0x31937e=new _0xf2b7d4();return _0x31937e[_0x27657b(0x201)]=_0x1b8916,_0x31937e[_0x27657b(0x1f8)]({'attributes':{'class':Eo+_0x27657b(0x1be)}}),_0x31937e;}}
23
+ const _0x84dda9=_0x389d;(function(_0x246b87,_0x39c574){const _0x3e2e3a=_0x389d,_0x4a3caa=_0x246b87();while(!![]){try{const _0x20e755=-parseInt(_0x3e2e3a(0x1b8))/0x1+-parseInt(_0x3e2e3a(0x1a9))/0x2*(parseInt(_0x3e2e3a(0x1dd))/0x3)+-parseInt(_0x3e2e3a(0x1b2))/0x4*(parseInt(_0x3e2e3a(0x1e9))/0x5)+parseInt(_0x3e2e3a(0x1cb))/0x6*(parseInt(_0x3e2e3a(0x16d))/0x7)+-parseInt(_0x3e2e3a(0x183))/0x8*(-parseInt(_0x3e2e3a(0x1a3))/0x9)+-parseInt(_0x3e2e3a(0x1f9))/0xa*(-parseInt(_0x3e2e3a(0x1b5))/0xb)+parseInt(_0x3e2e3a(0x1a4))/0xc;if(_0x20e755===_0x39c574)break;else _0x4a3caa['push'](_0x4a3caa['shift']());}catch(_0x5ccd9b){_0x4a3caa['push'](_0x4a3caa['shift']());}}}(_0x3dc8,0xeb4f6));function _0x389d(_0x309092,_0x19e0ad){const _0x3dc8ae=_0x3dc8();return _0x389d=function(_0x389d2b,_0x2dbe71){_0x389d2b=_0x389d2b-0x169;let _0x3cf4d2=_0x3dc8ae[_0x389d2b];return _0x3cf4d2;},_0x389d(_0x309092,_0x19e0ad);}import{BalloonPanelView as _0x5af0aa,ButtonView as _0x455f47,clickOutsideHandler as _0x525405,FileDialogButtonView as _0x32df22,IconView as _0x435def,View as _0x58153e}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x3b078c,IconDocument as _0x2ae25e,IconDocumentOutline as _0x41aa6f,IconDropdownArrow as _0x3ede3c,IconLink as _0x3f96c8,IconPaperClip as _0x31a6df}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x7a8c6a}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x22cb32}from'./aichatcontextpanelurlinputview.js';function _0x3dc8(){const _0x521cd0=['566106ZzMOhM','buttonView','southArrowNorthEast','loadSourceResources','AI_CHAT_CONTEXT_URL_LABEL','_overflowManager','label','sources','_setAddContextButtonEnabled','setContextItemLoading','element','setContainerElement','clearConversationContextItems','_currentContextsChips','clearCurrentContextItems','_conversationContextsChips','showSourceResourcesBalloon','execute','31449nPxouW','updateResourceState','isAnyResourceBalloonVisible','hideUrlBalloonPanel','find','ck-ai-chat-context-controls__add-context-balloon-panel','northArrowSouthEast','refreshBalloon','files','fire','render','_removeContextFromCollection','5rXfZwp','clear','ck-ai-chat-context-controls__url-balloon-panel','showAddContextBalloonPanel','_resourcesBalloonView','_getLimiterElement','_toggleAddContextBalloon','_setupAllBalloonClickOutsideHandlers','locale','_createArrowView','addContextButtonView','setConversationContext','ck-ai-chat-context-controls__show-more-balloon-panel','reorganizeChips','bind','type','10pepkah','addFileToContext','_showSourceResourcesBalloon','ck-ai-chat-context-controls__balloon-button','_createContextButton','133nQxKGe','addResourceToContext','body','extendTemplate','icon','ck-ai-chat-controls-button','submitUrl','northArrowSouth','_handleUrlSubmit','addContextItem','_urlInputView','hide','ck-ai-chat-context-controls__balloon-button-source','AI_CHAT_CONTEXT_FILE_LABEL','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','closest','balloonView','current','_setupAddContextBalloonClickOutsideHandler','_createBalloonButton','_setupTemplate','closeSourceResourceBalloon','8XUNwPR','document','menuitem','setAddContextOptions','isVisible','isEnabled','_bindEventHandlers','_createAddContextButtonView','children','defaultPositions','urls','addDocumentToContext','ck-ai-chat-context-controls__add-context-button','__arrow','enabled','add','southArrowNorthWest','isLoading','remove','showUrlBalloonPanel','_createAddContextBalloonPanelView','northArrowSouthWest','bodyCollection','tooltip','set','_createResourcesBalloonView','_addContextToCollection','source','addUrlToContext','removeContextItemChip','isReadOnly','_createBaseBalloonPanel','3474045HsuNNJ','5215284jKTfeH','setTemplate','ck-ai-chat-controls_context_show-more-button','_urlBalloonPanelView','conversation','282VrDsQF','hideAddContextBalloonPanel','_addUrlContent','AI_CHAT_CONTEXT_ADD_CONTEXT','ck-ai-chat-context-controls','ck-ai-chat-context-controls__pending-contexts','populateSourceResourceBalloon','isHidden','ck-ai-chat','418728gTqrjo','createCollection','ck-ai-chat-context-chips-wrapper-balloon','19905325hzZaAK','_setupUrlBalloonClickOutsideHandler','div','1876241lRiDff','removeContextItem','done','isOn','show','_createUrlBalloonPanelView','arrowView','destroy','_setBalloonPanelContent','_handleAddContextButtonClick','cancel','southArrowNorth','content','focus','pin','overflowChips','_addContextBalloonConfig','ck-reset_all-excluded','_addContextBalloonPanelView'];_0x3dc8=function(){return _0x521cd0;};return _0x3dc8();}import{AIChatChipsOverflowManager as _0x47f623}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x4ffe96}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x2085ee}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x84dda9(0x18e),_0x84dda9(0x169),_0x84dda9(0x19f),_0x84dda9(0x16e),_0x84dda9(0x1b9),_0x84dda9(0x1ce)];const bo=_0x84dda9(0x1ad),To=_0x84dda9(0x1ae),Ao=_0x84dda9(0x1e2),ko=_0x84dda9(0x18f),Eo=_0x84dda9(0x1eb),vo=_0x84dda9(0x16b),go=_0x84dda9(0x179),Vo=_0x84dda9(0x172),fo=_0x84dda9(0x1b4),Io=_0x84dda9(0x1a6),Po=_0x84dda9(0x1f5),Ro=_0x84dda9(0x1b1),So=[_0x5af0aa[_0x84dda9(0x18c)][_0x84dda9(0x198)],_0x5af0aa[_0x84dda9(0x18c)][_0x84dda9(0x174)],_0x5af0aa[_0x84dda9(0x18c)][_0x84dda9(0x1e3)],_0x5af0aa[_0x84dda9(0x18c)][_0x84dda9(0x193)],_0x5af0aa[_0x84dda9(0x18c)][_0x84dda9(0x1c3)],_0x5af0aa[_0x84dda9(0x18c)][_0x84dda9(0x1cd)]];export class AIChatContextPanelView extends _0x58153e{[_0x84dda9(0x1f3)];[_0x84dda9(0x1d8)]=this[_0x84dda9(0x1b3)]();[_0x84dda9(0x1da)]=this[_0x84dda9(0x1b3)]();[_0x84dda9(0x1d0)];[_0x84dda9(0x1ca)];[_0x84dda9(0x1a7)];[_0x84dda9(0x177)];[_0x84dda9(0x1ed)];[_0x84dda9(0x1c8)];[_0x84dda9(0x199)];constructor(_0x27078c,_0x423fea){const _0x54d317=_0x84dda9;super(_0x27078c),this[_0x54d317(0x199)]=_0x423fea,this[_0x54d317(0x1d8)]=this[_0x54d317(0x1b3)](),this[_0x54d317(0x1da)]=this[_0x54d317(0x1b3)](),this[_0x54d317(0x1f3)]=this[_0x54d317(0x18a)](_0x27078c),this[_0x54d317(0x1ca)]=this[_0x54d317(0x197)](_0x27078c),this[_0x54d317(0x1a7)]=this[_0x54d317(0x1bd)](_0x27078c),this[_0x54d317(0x1ed)]=this[_0x54d317(0x19c)](_0x27078c,_0x423fea);const _0x27b6b6={'cssClasses':{'showMoreButton':Io,'showMoreBalloon':Po,'overflowContainer':fo,'controlsButton':Vo}};this[_0x54d317(0x1d0)]=new _0x47f623(_0x27078c,this[_0x54d317(0x1d8)],_0x27b6b6,this[_0x54d317(0x199)],this),this[_0x54d317(0x1c8)]={'buttonView':this[_0x54d317(0x1f3)],'balloonView':this[_0x54d317(0x1ca)],'hideMethod':this[_0x54d317(0x1aa)][_0x54d317(0x1f7)](this),'showMethod':this[_0x54d317(0x1ec)][_0x54d317(0x1f7)](this)},this[_0x54d317(0x181)](),this[_0x54d317(0x189)]();}[_0x84dda9(0x1e7)](){const _0x3c0694=_0x84dda9;super[_0x3c0694(0x1e7)](),this[_0x3c0694(0x1f0)](),this[_0x3c0694(0x1d0)][_0x3c0694(0x1d6)](this[_0x3c0694(0x1d5)]),this[_0x3c0694(0x1d0)][_0x3c0694(0x1f6)]();}[_0x84dda9(0x1bf)](){const _0x30d3e8=_0x84dda9;super[_0x30d3e8(0x1bf)](),this[_0x30d3e8(0x1d0)][_0x30d3e8(0x1bf)](),this[_0x30d3e8(0x1ed)][_0x30d3e8(0x1bf)]();}[_0x84dda9(0x176)](_0x1a5290,_0x61847b){const _0x20b057=_0x84dda9,_0xc9f4f1=this[_0x20b057(0x16c)](_0x1a5290,_0x20b057(0x17e),!0x0,_0x61847b);this[_0x20b057(0x19d)](_0xc9f4f1,this[_0x20b057(0x1d8)]),this[_0x20b057(0x1d0)][_0x20b057(0x1f6)]();}[_0x84dda9(0x1b9)](_0x252243){const _0x1363c6=_0x84dda9;this[_0x1363c6(0x1e8)](_0x252243,this[_0x1363c6(0x1d8)]),this[_0x1363c6(0x1e8)](_0x252243,this[_0x1363c6(0x1d0)][_0x1363c6(0x1c7)]),this[_0x1363c6(0x1d0)][_0x1363c6(0x1f6)]();}[_0x84dda9(0x1d4)](_0xbde7e9,_0x5cfd60){const _0x4eae89=_0x84dda9;let _0x29f430=this[_0x4eae89(0x1d8)][_0x4eae89(0x1e1)](_0x291a36=>_0x291a36['id']===_0xbde7e9);_0x29f430||(_0x29f430=this[_0x4eae89(0x1d0)][_0x4eae89(0x1c7)][_0x4eae89(0x1e1)](_0x2aae8f=>_0x2aae8f['id']===_0xbde7e9)),_0x29f430&&(_0x29f430[_0x4eae89(0x194)]=_0x5cfd60);}[_0x84dda9(0x1f4)](_0x41f502){const _0x9e11b1=_0x84dda9;this[_0x9e11b1(0x1da)][_0x9e11b1(0x1ea)]();for(const _0x54e031 of _0x41f502){const _0x40f52a=this[_0x9e11b1(0x16c)](_0x54e031,_0x9e11b1(0x1a8),!0x1,!0x1);this[_0x9e11b1(0x19d)](_0x40f52a,this[_0x9e11b1(0x1da)]);}}[_0x84dda9(0x1d9)](){const _0x21b4a7=_0x84dda9;this[_0x21b4a7(0x1d8)][_0x21b4a7(0x1ea)](),this[_0x21b4a7(0x1d0)][_0x21b4a7(0x1ea)]();}[_0x84dda9(0x1d7)](){const _0x287499=_0x84dda9;this[_0x287499(0x1da)][_0x287499(0x1ea)]();}[_0x84dda9(0x1de)](_0x4ec77b,_0x16d296,_0x57a90c){const _0xe08db4=_0x84dda9;this[_0xe08db4(0x1ed)][_0xe08db4(0x1de)](_0x4ec77b,_0x16d296,_0x57a90c);}[_0x84dda9(0x1aa)](){const _0x15d679=_0x84dda9;this[_0x15d679(0x1ef)](!0x1);}[_0x84dda9(0x1ec)](){const _0x5e6657=_0x84dda9;this[_0x5e6657(0x1ef)](!0x0);}[_0x84dda9(0x1e0)](){const _0x2ef6a7=_0x84dda9;this[_0x2ef6a7(0x1a7)][_0x2ef6a7(0x178)](),this[_0x2ef6a7(0x1f3)][_0x2ef6a7(0x1bb)]=!0x1,this[_0x2ef6a7(0x177)]&&this[_0x2ef6a7(0x177)][_0x2ef6a7(0x1ea)]();}[_0x84dda9(0x196)](){const _0x4f2f8a=_0x84dda9;this[_0x4f2f8a(0x1a7)][_0x4f2f8a(0x1bc)](),this[_0x4f2f8a(0x1f3)][_0x4f2f8a(0x1bb)]=!0x0;}[_0x84dda9(0x16a)](_0x49bd92){const _0x279f60=_0x84dda9;this[_0x279f60(0x1ed)][_0x279f60(0x1db)](_0x49bd92),this[_0x279f60(0x1f3)][_0x279f60(0x1bb)]=!0x0;}[_0x84dda9(0x1af)](_0x598058,_0x43376d,_0x32323c,_0xc185f6){const _0x3fcb60=_0x84dda9;this[_0x3fcb60(0x1ed)][_0x3fcb60(0x1af)](_0x598058,_0x32323c,_0xc185f6);}[_0x84dda9(0x182)](_0x35c4f9){const _0x222d8d=_0x84dda9;this[_0x222d8d(0x1ed)][_0x222d8d(0x182)](_0x35c4f9),this[_0x222d8d(0x1f3)][_0x222d8d(0x1bb)]=!0x1;}[_0x84dda9(0x186)](_0x108e4c){const _0x154623=_0x84dda9;this[_0x154623(0x1c0)](this[_0x154623(0x1ca)],this[_0x154623(0x1f1)],_0x108e4c),this[_0x154623(0x1d3)](_0x108e4c);}[_0x84dda9(0x1d3)](_0x4fda12){const _0x433c5c=_0x84dda9,_0xc67d79=!_0x4fda12[_0x433c5c(0x184)][_0x433c5c(0x1b0)]&&_0x4fda12[_0x433c5c(0x184)][_0x433c5c(0x191)],_0x475c71=_0x4fda12[_0x433c5c(0x18d)][_0x433c5c(0x191)],_0x49ed4c=_0x4fda12[_0x433c5c(0x1e5)][_0x433c5c(0x191)];this[_0x433c5c(0x1f3)][_0x433c5c(0x188)]=_0xc67d79||_0x475c71||_0x49ed4c;}[_0x84dda9(0x181)](){const _0x4a7f3e=_0x84dda9;this[_0x4a7f3e(0x1a5)]({'tag':_0x4a7f3e(0x1b7),'attributes':{'class':[bo,_0x4a7f3e(0x1c9)]},'children':[{'tag':_0x4a7f3e(0x1b7),'attributes':{'class':To},'children':this[_0x4a7f3e(0x1d8)]}]});}[_0x84dda9(0x189)](){const _0x15854a=_0x84dda9;this[_0x15854a(0x1f3)]['on'](_0x15854a(0x1dc),()=>{const _0x44f1e8=_0x15854a;this[_0x44f1e8(0x1c1)]();});}[_0x84dda9(0x18a)](_0x8c5cce){const _0x883ea2=_0x84dda9,_0x353e58=new _0x455f47(_0x8c5cce);return _0x353e58[_0x883ea2(0x19b)]({'label':_0x4ffe96(_0x8c5cce,_0x883ea2(0x1ac)),'class':Vo+'\x20'+ko,'icon':_0x31a6df,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x353e58;}[_0x84dda9(0x197)](_0x435700){const _0x447587=_0x84dda9;return this[_0x447587(0x1a2)](_0x435700,Ao);}[_0x84dda9(0x1bd)](_0x272fac){const _0x186d20=_0x84dda9,_0x5e4488=this[_0x186d20(0x1a2)](_0x272fac,Eo);return this[_0x186d20(0x1ab)](_0x5e4488,_0x272fac),_0x5e4488;}[_0x84dda9(0x19c)](_0x14153c,_0x1543aa){const _0x168909=_0x84dda9;return new _0x2085ee(_0x14153c,_0x1543aa,{'onBackToContext':()=>{const _0x30c472=_0x389d;this[_0x30c472(0x1ec)](),this[_0x30c472(0x1ca)][_0x30c472(0x1c6)]({'target':this[_0x30c472(0x1f3)][_0x30c472(0x1d5)],'limiter':this[_0x30c472(0x1ee)](),'positions':So});},'onResourceSelected':(_0x31b3fc,_0x518aea)=>{const _0x384476=_0x389d;this[_0x384476(0x1e6)](_0x384476(0x16e),{'source':_0x31b3fc,'resource':_0x518aea});},'onLoadSourceResources':_0x29523d=>{const _0x10ec79=_0x389d;this[_0x10ec79(0x1e6)](_0x10ec79(0x1ce),_0x29523d);},'onBalloonClosed':()=>{const _0x100ef9=_0x389d;this[_0x100ef9(0x1f3)][_0x100ef9(0x1bb)]=!0x1;},'getLimiterElement':()=>this[_0x168909(0x1ee)](),'getTargetElement':()=>this[_0x168909(0x1f3)][_0x168909(0x1d5)]});}[_0x84dda9(0x1ee)](){const _0x152546=_0x84dda9;return this[_0x152546(0x1d5)]?.[_0x152546(0x17c)]('.'+Ro)||document[_0x152546(0x16f)];}[_0x84dda9(0x1a2)](_0x3c0e0d,_0x5d5f5a){const _0x71be5=_0x84dda9,_0x9875a0=new _0x5af0aa(_0x3c0e0d);return _0x9875a0[_0x71be5(0x170)]({'attributes':{'class':_0x5d5f5a}}),this[_0x71be5(0x199)][_0x71be5(0x192)](_0x9875a0),_0x9875a0;}[_0x84dda9(0x1c0)](_0x3438e8,_0x599501,_0x28a81f){const _0x5cc0dd=_0x84dda9;if(_0x3438e8[_0x5cc0dd(0x1c4)][_0x5cc0dd(0x1ea)](),!_0x28a81f[_0x5cc0dd(0x184)][_0x5cc0dd(0x1b0)]&&_0x28a81f[_0x5cc0dd(0x184)][_0x5cc0dd(0x191)]){const _0x3a8602=this[_0x5cc0dd(0x180)](_0x599501,{'label':_0x4ffe96(_0x599501,_0x5cc0dd(0x17b)),'icon':_0x2ae25e});_0x3a8602['on'](_0x5cc0dd(0x1dc),()=>{const _0x551500=_0x5cc0dd;this[_0x551500(0x1e6)](_0x551500(0x18e)),this[_0x551500(0x1aa)]();}),_0x3438e8[_0x5cc0dd(0x1c4)][_0x5cc0dd(0x192)](_0x3a8602);}if(_0x28a81f[_0x5cc0dd(0x18d)][_0x5cc0dd(0x191)]){const _0xeb2c9f=this[_0x5cc0dd(0x180)](_0x599501,{'label':_0x4ffe96(_0x599501,_0x5cc0dd(0x1cf)),'icon':_0x3f96c8});_0xeb2c9f['on'](_0x5cc0dd(0x1dc),()=>{const _0x21f753=_0x5cc0dd;this[_0x21f753(0x1aa)](),this[_0x21f753(0x196)](),this[_0x21f753(0x1a7)][_0x21f753(0x1c6)]({'target':this[_0x21f753(0x1f3)][_0x21f753(0x1d5)],'limiter':this[_0x21f753(0x1ee)](),'positions':So}),this[_0x21f753(0x177)][_0x21f753(0x1c5)]();}),_0x3438e8[_0x5cc0dd(0x1c4)][_0x5cc0dd(0x192)](_0xeb2c9f);}if(_0x28a81f[_0x5cc0dd(0x1e5)][_0x5cc0dd(0x191)]){const _0x10a096=new _0x32df22(_0x599501);_0x10a096[_0x5cc0dd(0x19b)]({'label':_0x4ffe96(_0x599501,_0x5cc0dd(0x17a)),'icon':_0x3b078c,'withText':!0x0,'tooltip':!0x0,'class':vo,'allowMultipleFiles':!0x0}),_0x10a096['on'](_0x5cc0dd(0x1ba),(_0x5d63a4,_0x43b841)=>{const _0x50a78b=_0x5cc0dd;this[_0x50a78b(0x1e6)](_0x50a78b(0x169),_0x43b841),this[_0x50a78b(0x1aa)]();}),_0x10a096[_0x5cc0dd(0x19a)]=!0x0,_0x3438e8[_0x5cc0dd(0x1c4)][_0x5cc0dd(0x192)](_0x10a096);}for(const _0x52a62c of _0x28a81f[_0x5cc0dd(0x1d2)]){const _0x489c5=this[_0x5cc0dd(0x180)](_0x599501,{'label':_0x52a62c[_0x5cc0dd(0x1d1)],'icon':_0x52a62c[_0x5cc0dd(0x171)]||_0x41aa6f,'type':_0x5cc0dd(0x19e)});_0x3438e8[_0x5cc0dd(0x1c4)][_0x5cc0dd(0x192)](_0x489c5),_0x489c5['on'](_0x5cc0dd(0x1dc),()=>{const _0x3004e7=_0x5cc0dd;this[_0x3004e7(0x1aa)](),this[_0x3004e7(0x16a)](_0x52a62c);});}}[_0x84dda9(0x1ab)](_0x52f1fd,_0x3ba454){const _0xbf0af2=_0x84dda9;this[_0xbf0af2(0x177)]=new _0x22cb32(_0x3ba454),this[_0xbf0af2(0x177)]['on'](_0xbf0af2(0x173),(_0x1e21cd,_0x3f844e)=>{const _0x24e459=_0xbf0af2;this[_0x24e459(0x175)](_0x3f844e);}),this[_0xbf0af2(0x177)]['on'](_0xbf0af2(0x1c2),()=>{const _0x5b0de9=_0xbf0af2;this[_0x5b0de9(0x1e0)](),this[_0x5b0de9(0x1ec)](),this[_0x5b0de9(0x1ca)][_0x5b0de9(0x1c6)]({'target':this[_0x5b0de9(0x1f3)][_0x5b0de9(0x1d5)],'limiter':this[_0x5b0de9(0x1ee)](),'positions':So});}),this[_0xbf0af2(0x177)]['on'](_0xbf0af2(0x1e4),()=>{const _0x1f0222=_0xbf0af2;this[_0x1f0222(0x1a7)][_0x1f0222(0x187)]&&this[_0x1f0222(0x1a7)][_0x1f0222(0x1c6)]({'target':this[_0x1f0222(0x1f3)][_0x1f0222(0x1d5)],'limiter':this[_0x1f0222(0x1ee)](),'positions':So});}),_0x52f1fd[_0xbf0af2(0x1c4)][_0xbf0af2(0x192)](this[_0xbf0af2(0x177)]);}[_0x84dda9(0x180)](_0xb4bb8f,_0xa505ac){const _0x95a5e4=_0x84dda9,_0x475a17=_0x95a5e4(0x19e)===_0xa505ac[_0x95a5e4(0x1f8)]?new SourcesBalloonButtonView(_0xb4bb8f):new _0x455f47(_0xb4bb8f);return _0x475a17[_0x95a5e4(0x19b)]({'label':_0xa505ac[_0x95a5e4(0x1d1)],'icon':_0xa505ac[_0x95a5e4(0x171)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':vo}),_0x475a17;}[_0x84dda9(0x1f0)](){const _0x58b311=_0x84dda9;this[_0x58b311(0x17f)](),this[_0x58b311(0x1b6)]();}[_0x84dda9(0x1b6)](){const _0x22b652=_0x84dda9;_0x525405({'emitter':this[_0x22b652(0x1a7)],'contextElements':[this[_0x22b652(0x1a7)][_0x22b652(0x1d5)]],'callback':()=>{const _0x9e45b9=_0x22b652;this[_0x9e45b9(0x1e0)]();},'activator':()=>this[_0x22b652(0x1a7)][_0x22b652(0x187)]});}[_0x84dda9(0x1ef)](_0x2a0443){const _0x51149c=_0x84dda9,_0x435444=this[_0x51149c(0x1c8)];_0x435444[_0x51149c(0x1cc)][_0x51149c(0x1bb)]=_0x2a0443,_0x2a0443?_0x435444[_0x51149c(0x17d)][_0x51149c(0x1bc)]():_0x435444[_0x51149c(0x17d)][_0x51149c(0x178)]();}[_0x84dda9(0x17f)](){const _0x40a7f8=_0x84dda9,{balloonView:_0x1538a7,buttonView:_0xfef65c,hideMethod:_0x83463f}=this[_0x40a7f8(0x1c8)];_0x525405({'emitter':_0x1538a7,'contextElements':[_0x1538a7[_0x40a7f8(0x1d5)],_0xfef65c[_0x40a7f8(0x1d5)]],'callback':()=>{_0x83463f();},'activator':()=>_0xfef65c[_0x40a7f8(0x1bb)]&&!this[_0x40a7f8(0x1a7)][_0x40a7f8(0x187)]&&!this[_0x40a7f8(0x1ed)][_0x40a7f8(0x1df)]()});}[_0x84dda9(0x16c)](_0x8e107,_0x4a3cab,_0x31b697=!0x1,_0x51b4bc=!0x1){const _0x408fc3=_0x84dda9,_0x2655f9=_0x408fc3(0x1a8)===_0x4a3cab||!0x0===_0x8e107[_0x408fc3(0x1a1)],_0x43192f=new _0x7a8c6a(this[_0x408fc3(0x1f1)],_0x8e107,_0x2655f9,_0x31b697,_0x51b4bc);return _0x2655f9||_0x43192f['on'](_0x408fc3(0x1a0),()=>{const _0x57ad88=_0x408fc3;this[_0x57ad88(0x1e6)](_0x57ad88(0x1b9),_0x43192f['id']);}),_0x43192f;}[_0x84dda9(0x19d)](_0x30940f,_0x1f02df){const _0x5b0706=_0x84dda9;_0x1f02df[_0x5b0706(0x192)](_0x30940f,0x0);}[_0x84dda9(0x1e8)](_0x5bdd1a,_0x356c0b){const _0x262708=_0x84dda9,_0x1ed083=_0x356c0b[_0x262708(0x1e1)](_0x5e1df7=>_0x5e1df7['id']===_0x5bdd1a);_0x1ed083&&_0x356c0b[_0x262708(0x195)](_0x1ed083);}[_0x84dda9(0x1c1)](){const _0xe20e09=_0x84dda9;this[_0xe20e09(0x1f3)][_0xe20e09(0x1bb)]?this[_0xe20e09(0x1aa)]():(this[_0xe20e09(0x1ec)](),this[_0xe20e09(0x1ca)][_0xe20e09(0x1c6)]({'target':this[_0xe20e09(0x1f3)][_0xe20e09(0x1d5)],'limiter':this[_0xe20e09(0x1ee)](),'positions':So}));}[_0x84dda9(0x175)](_0x497943){const _0x1fc20b=_0x84dda9;this[_0x1fc20b(0x177)][_0x1fc20b(0x1ea)](),this[_0x1fc20b(0x1e0)](),this[_0x1fc20b(0x1e6)](_0x1fc20b(0x19f),_0x497943);}}export class SourcesBalloonButtonView extends _0x455f47{[_0x84dda9(0x1be)];constructor(_0xdec8bc){const _0x5676fa=_0x84dda9;super(_0xdec8bc),this[_0x5676fa(0x19b)]({'withText':!0x0,'role':_0x5676fa(0x185)}),this[_0x5676fa(0x1be)]=this[_0x5676fa(0x1f2)](),this[_0x5676fa(0x170)]({'attributes':{'class':[go]}});}[_0x84dda9(0x1e7)](){const _0x52f0c7=_0x84dda9;super[_0x52f0c7(0x1e7)](),this[_0x52f0c7(0x18b)][_0x52f0c7(0x192)](this[_0x52f0c7(0x1be)]);}[_0x84dda9(0x1f2)](){const _0x341aeb=_0x84dda9,_0x378998=new _0x435def();return _0x378998[_0x341aeb(0x1c4)]=_0x3ede3c,_0x378998[_0x341aeb(0x170)]({'attributes':{'class':go+_0x341aeb(0x190)}}),_0x378998;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xb5d69b=_0x1d91;function _0x1d91(_0x1e80f6,_0x46931b){const _0x4bdbba=_0x4bdb();return _0x1d91=function(_0x1d91f4,_0x1ec4f7){_0x1d91f4=_0x1d91f4-0x15e;let _0x14cbfc=_0x4bdbba[_0x1d91f4];return _0x14cbfc;},_0x1d91(_0x1e80f6,_0x46931b);}(function(_0x188c2d,_0x42b7c8){const _0x48f645=_0x1d91,_0x781c15=_0x188c2d();while(!![]){try{const _0x8a279e=-parseInt(_0x48f645(0x167))/0x1+-parseInt(_0x48f645(0x15f))/0x2+-parseInt(_0x48f645(0x179))/0x3*(-parseInt(_0x48f645(0x16e))/0x4)+-parseInt(_0x48f645(0x177))/0x5+-parseInt(_0x48f645(0x171))/0x6*(parseInt(_0x48f645(0x172))/0x7)+parseInt(_0x48f645(0x166))/0x8+parseInt(_0x48f645(0x174))/0x9;if(_0x8a279e===_0x42b7c8)break;else _0x781c15['push'](_0x781c15['shift']());}catch(_0x4c67c3){_0x781c15['push'](_0x781c15['shift']());}}}(_0x4bdb,0xdce28));function _0x4bdb(){const _0x368ebc=['ck-ai-chat-controls-loader-icon','ai-chat-controls-loader__cancel-button','_createCancelButtonView','ck-ai-chat-controls-loader-icon-dot','_loaderView','ck-ai-chat-controls-loader-wrapper','53916MEXsjl','AI_CHAT_STOP_GENERATING','ck-ai-chat-controls-loader','6QfjymA','5493082QjsusN','abortPromptStream','18341226LsVpOK','div','fire','7849850atqZNX','setTemplate','369OPwiqY','_createLoaderView','207568XYiFqw','_cancelButtonView','AI_CHAT_IS_WRITING','execute','set','ck-reset_all','locale','9756976WfXfDg','1552229DNrXMP'];_0x4bdb=function(){return _0x368ebc;};return _0x4bdb();}import{ButtonView as _0x1ea2ee,View as _0x510501}from'ckeditor5/src/ui.js';import{IconStop as _0xdf7d69}from'ckeditor5/src/icons.js';import{getTranslation as _0x3d9cff}from'../../../aicore/utils/common-translations.js';export class AIChatControlsLoaderView extends _0x510501{[_0xb5d69b(0x160)];[_0xb5d69b(0x16c)];constructor(_0x4aa64a){const _0x599643=_0xb5d69b;super(_0x4aa64a),this[_0x599643(0x160)]=this[_0x599643(0x16a)](),this[_0x599643(0x16c)]=this[_0x599643(0x15e)](),this[_0x599643(0x178)]({'tag':_0x599643(0x175),'attributes':{'class':['ck',_0x599643(0x16d),_0x599643(0x164)]},'children':[this[_0x599643(0x16c)],this[_0x599643(0x160)]]});}[_0xb5d69b(0x16a)](){const _0x3f7ca5=_0xb5d69b,_0x4d22c4=new _0x1ea2ee(this[_0x3f7ca5(0x165)]);return _0x4d22c4[_0x3f7ca5(0x163)]({'label':_0x3d9cff(this[_0x3f7ca5(0x165)],_0x3f7ca5(0x16f)),'withText':!0x0,'class':_0x3f7ca5(0x169),'icon':_0xdf7d69}),_0x4d22c4['on'](_0x3f7ca5(0x162),()=>{const _0x3a99d2=_0x3f7ca5;this[_0x3a99d2(0x176)](_0x3a99d2(0x173));}),_0x4d22c4;}[_0xb5d69b(0x15e)](){const _0xc73dd9=_0xb5d69b,_0x30740f=new _0x510501(this[_0xc73dd9(0x165)]);return _0x30740f[_0xc73dd9(0x178)]({'tag':_0xc73dd9(0x175),'attributes':{'class':[_0xc73dd9(0x170)]},'children':[{'tag':_0xc73dd9(0x175),'attributes':{'class':[_0xc73dd9(0x168)]},'children':[{'tag':_0xc73dd9(0x175),'attributes':{'class':[_0xc73dd9(0x16b)]}},{'tag':_0xc73dd9(0x175),'attributes':{'class':[_0xc73dd9(0x16b)]}},{'tag':_0xc73dd9(0x175),'attributes':{'class':[_0xc73dd9(0x16b)]}}]},{'text':_0x3d9cff(this[_0xc73dd9(0x165)],_0xc73dd9(0x161))}]}),_0x30740f;}}
23
+ function _0x4a19(_0x2e9255,_0x9f3ec2){const _0x4cac8c=_0x4cac();return _0x4a19=function(_0x4a1911,_0x19e462){_0x4a1911=_0x4a1911-0x1be;let _0x82545c=_0x4cac8c[_0x4a1911];return _0x82545c;},_0x4a19(_0x2e9255,_0x9f3ec2);}const _0x4957a4=_0x4a19;function _0x4cac(){const _0x33ca9a=['2862880zdGZHQ','set','313541YOPjud','AI_CHAT_STOP_GENERATING','_cancelButtonView','4ZfofIL','ck-ai-chat-controls-loader-icon','fire','div','ck-ai-chat-controls-loader-wrapper','521110NuzOIQ','20075968UPeYkc','3582162eqdhiK','ck-ai-chat-controls-loader-icon-dot','abortPromptStream','AI_CHAT_IS_WRITING','1035328PSWmUx','_loaderView','_createLoaderView','432612XZOiEj','ck-ai-chat-controls-loader','_createCancelButtonView','locale','setTemplate','execute','ai-chat-controls-loader__cancel-button','ck-reset_all'];_0x4cac=function(){return _0x33ca9a;};return _0x4cac();}(function(_0x358c25,_0x591df2){const _0x2ddf4f=_0x4a19,_0x4b8c48=_0x358c25();while(!![]){try{const _0x554e1f=parseInt(_0x2ddf4f(0x1be))/0x1*(-parseInt(_0x2ddf4f(0x1c1))/0x2)+-parseInt(_0x2ddf4f(0x1cf))/0x3+-parseInt(_0x2ddf4f(0x1d7))/0x4+parseInt(_0x2ddf4f(0x1c6))/0x5+-parseInt(_0x2ddf4f(0x1c8))/0x6+-parseInt(_0x2ddf4f(0x1cc))/0x7+parseInt(_0x2ddf4f(0x1c7))/0x8;if(_0x554e1f===_0x591df2)break;else _0x4b8c48['push'](_0x4b8c48['shift']());}catch(_0x415ece){_0x4b8c48['push'](_0x4b8c48['shift']());}}}(_0x4cac,0x5d355));import{ButtonView as _0x53411b,View as _0xe3c11b}from'ckeditor5/src/ui.js';import{IconStop as _0x369475}from'ckeditor5/src/icons.js';import{getTranslation as _0x2c233f}from'../../../aicore/utils/common-translations.js';export class AIChatControlsLoaderView extends _0xe3c11b{[_0x4957a4(0x1c0)];[_0x4957a4(0x1cd)];constructor(_0x557e20){const _0x5763cf=_0x4957a4;super(_0x557e20),this[_0x5763cf(0x1c0)]=this[_0x5763cf(0x1d1)](),this[_0x5763cf(0x1cd)]=this[_0x5763cf(0x1ce)](),this[_0x5763cf(0x1d3)]({'tag':_0x5763cf(0x1c4),'attributes':{'class':['ck',_0x5763cf(0x1c5),_0x5763cf(0x1d6)]},'children':[this[_0x5763cf(0x1cd)],this[_0x5763cf(0x1c0)]]});}[_0x4957a4(0x1d1)](){const _0x2706f8=_0x4957a4,_0x1f76a4=new _0x53411b(this[_0x2706f8(0x1d2)]);return _0x1f76a4[_0x2706f8(0x1d8)]({'label':_0x2c233f(this[_0x2706f8(0x1d2)],_0x2706f8(0x1bf)),'withText':!0x0,'class':_0x2706f8(0x1d5),'icon':_0x369475}),_0x1f76a4['on'](_0x2706f8(0x1d4),()=>{const _0x3ab2b1=_0x2706f8;this[_0x3ab2b1(0x1c3)](_0x3ab2b1(0x1ca));}),_0x1f76a4;}[_0x4957a4(0x1ce)](){const _0x13b39a=_0x4957a4,_0x41d611=new _0xe3c11b(this[_0x13b39a(0x1d2)]);return _0x41d611[_0x13b39a(0x1d3)]({'tag':_0x13b39a(0x1c4),'attributes':{'class':[_0x13b39a(0x1d0)]},'children':[{'tag':_0x13b39a(0x1c4),'attributes':{'class':[_0x13b39a(0x1c2)]},'children':[{'tag':_0x13b39a(0x1c4),'attributes':{'class':[_0x13b39a(0x1c9)]}},{'tag':_0x13b39a(0x1c4),'attributes':{'class':[_0x13b39a(0x1c9)]}},{'tag':_0x13b39a(0x1c4),'attributes':{'class':[_0x13b39a(0x1c9)]}}]},{'text':_0x2c233f(this[_0x13b39a(0x1d2)],_0x13b39a(0x1cb))}]}),_0x41d611;}}