@ckeditor/ckeditor5-ai 47.2.0-alpha.0 → 47.2.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (289) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +5 -5
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +15 -15
  150. package/src/aiactions/aiactions.js +1 -1
  151. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  152. package/src/aiactions/model/aiactionsreply.js +1 -1
  153. package/src/aiassistant/adapters/aiadapter.js +1 -1
  154. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  155. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  156. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  157. package/src/aiassistant/aiassistant.js +1 -1
  158. package/src/aiassistant/aiassistantediting.js +1 -1
  159. package/src/aiassistant/aiassistantui.js +1 -1
  160. package/src/aiassistant/legacyerrors.js +1 -1
  161. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  162. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  163. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  164. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  165. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  166. package/src/aiassistant/ui/form/aiformview.js +1 -1
  167. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  168. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  169. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  170. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  171. package/src/aiassistant/utils/common-translations.js +1 -1
  172. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  173. package/src/aiballoon/aiballoon.js +1 -1
  174. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  175. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  176. package/src/aiballoon/ui/aiballoonview.js +1 -1
  177. package/src/aichat/aichat.js +1 -1
  178. package/src/aichat/aichatcontroller.js +1 -1
  179. package/src/aichat/aichatui.js +1 -1
  180. package/src/aichat/model/aichatcontext.js +1 -1
  181. package/src/aichat/model/aichatconversation.js +1 -1
  182. package/src/aichat/model/aichatinteraction.js +1 -1
  183. package/src/aichat/model/aichatmodels.js +1 -1
  184. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  185. package/src/aichat/ui/aichatfeedview.js +1 -1
  186. package/src/aichat/ui/aichatheaderview.js +1 -1
  187. package/src/aichat/ui/aichatview.js +1 -1
  188. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  189. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  190. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  191. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  192. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  193. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  194. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  195. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  196. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  197. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  198. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  199. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  200. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  201. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  202. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  203. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  204. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  205. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  206. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  207. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  208. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  209. package/src/aichat/utils/eventnames.js +1 -1
  210. package/src/aichat/utils/promisequeue.js +1 -1
  211. package/src/aichat/utils/scrollmanager.js +1 -1
  212. package/src/aichathistory/aichathistory.js +1 -1
  213. package/src/aichathistory/aichathistorycontroller.js +1 -1
  214. package/src/aichathistory/aichathistoryui.js +1 -1
  215. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  216. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  217. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  218. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  219. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  220. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  221. package/src/aicore/aiconnector.js +1 -1
  222. package/src/aicore/aiediting.js +1 -1
  223. package/src/aicore/model/aicapabilities.js +1 -1
  224. package/src/aicore/model/aicontext.js +1 -1
  225. package/src/aicore/model/aiinteraction.js +1 -1
  226. package/src/aicore/model/aimodels.js +1 -1
  227. package/src/aicore/model/aireply.js +1 -1
  228. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  229. package/src/aicore/pipeline/airesponseparser.js +2 -2
  230. package/src/aicore/ui/aidisclaimerview.js +1 -1
  231. package/src/aicore/ui/aiskeleton.js +1 -1
  232. package/src/aicore/ui/aispinner.js +1 -1
  233. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  234. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  235. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  236. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  237. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  238. package/src/aicore/utils/common-translations.js +1 -1
  239. package/src/aicore/utils/createresizebutton.js +1 -1
  240. package/src/aicore/utils/documentposition.js +1 -1
  241. package/src/aicore/utils/documentrange.js +1 -1
  242. package/src/aicore/utils/eventnames.js +1 -1
  243. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  244. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  245. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  246. package/src/aicore/utils/htmlparser.js +1 -1
  247. package/src/aicore/utils/htmlstreamer.js +1 -1
  248. package/src/aieditorintegration/aieditorintegration.js +1 -1
  249. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  250. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  251. package/src/aiquickactions/aiquickactions.js +1 -1
  252. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  253. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  254. package/src/aiquickactions/aiquickactionsui.js +1 -1
  255. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  256. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  257. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  258. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  259. package/src/aireviewmode/aireviewmode.js +1 -1
  260. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  261. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  262. package/src/aireviewmode/aireviewmodeui.js +1 -1
  263. package/src/aireviewmode/model/aireviewcheck.js +1 -1
  264. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  265. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  266. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  267. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  268. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  269. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  270. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  271. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  272. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  273. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  274. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  275. package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
  276. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  277. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  278. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  279. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  280. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  281. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  282. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  283. package/src/aitabs/aitabs.js +1 -1
  284. package/src/aitabs/aitabsmainview.js +1 -1
  285. package/src/aitabs/tabs/aitabsview.js +1 -1
  286. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  287. package/src/aitabs/tabs/tabpanelview.js +1 -1
  288. package/src/errors.js +1 -1
  289. package/src/index.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2b35ef=_0x83df;(function(_0x47c0f4,_0x15cede){const _0x30c095=_0x83df,_0xb3f14c=_0x47c0f4();while(!![]){try{const _0x34dc78=-parseInt(_0x30c095(0xab))/0x1+parseInt(_0x30c095(0xb4))/0x2*(-parseInt(_0x30c095(0xc4))/0x3)+parseInt(_0x30c095(0x91))/0x4*(-parseInt(_0x30c095(0xb1))/0x5)+parseInt(_0x30c095(0x85))/0x6+parseInt(_0x30c095(0xc6))/0x7*(parseInt(_0x30c095(0xa9))/0x8)+parseInt(_0x30c095(0xb2))/0x9*(-parseInt(_0x30c095(0x90))/0xa)+parseInt(_0x30c095(0x8f))/0xb*(parseInt(_0x30c095(0x83))/0xc);if(_0x34dc78===_0x15cede)break;else _0xb3f14c['push'](_0xb3f14c['shift']());}catch(_0x35169e){_0xb3f14c['push'](_0xb3f14c['shift']());}}}(_0x48a8,0x79369));import{ButtonView as _0x4c9898,clickOutsideHandler as _0x198f5a,View as _0x49c51a}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x380a81}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x3f42c0}from'./controls/aichatpromptcapabilitiesview.js';function _0x83df(_0x13c773,_0x505958){const _0x48a8cb=_0x48a8();return _0x83df=function(_0x83df88,_0x495572){_0x83df88=_0x83df88-0x7d;let _0x4f07cc=_0x48a8cb[_0x83df88];return _0x4f07cc;},_0x83df(_0x13c773,_0x505958);}function _0x48a8(){const _0x211d03=['toggleReasoning','resetMessageInput','abortPromptStream','isModelAvailable','_handlePromptInputFocus','_contextPanelView','3608XyVRtD','10PvcueW','4huquVR','sendUserMessage','reset','_modelUnavailableMessageView','updateResourceState','clearPendingContextUI','setWebSearch','focus','startConversation','isDisabled','startsWith','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','clearCurrentContextItems','_displayedModels','setIsUploadInProgress','clearConversationContextItems','setAddContextOptions','_createModelUnavailableMessageView','setTemplate','change:isLoading','addContextButtonView','ck-ai-chat-controls','setModelList','bindTemplate','72BkRzIL','execute','788860JBaevl','toggleWebSearch','delegate','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','contextResourcesSearchInputVisibleFrom','selectModel','4277095kfNNam','795411ymPjDu','setInputPlaceholder','2hRYaRF','disableModelSelector','_promptInputView','ck-hidden','form','_createPromptCapabilitiesView','ck-ai-chat-controls-disabled','ck-ai-chat-controls__start-new-chat-button','div','populateSourceResourceBalloon','setModel','agent','bodyCollection','ck-ai-chat-controls-model-unavailable-message','locale','_createContextPanelView','1464690GUQkXI','_loaderView','716359YCIVjH','setPlaceholderText','removeContextItem','closeSourceResourceBalloon','_shouldRestorePromptInputFocus','addContextItem','isLoading','enableModelSelector','_createPromptInputView','setContextItemLoading','_createLoaderView','find','low','element','setReasoning','set','65580DaIVvA','clearConversationContextUI','22944trwMLG','setConversationContext','_promptCapabilitiesView','focusPromptInput'];_0x48a8=function(){return _0x211d03;};return _0x48a8();}import{AIChatContextPanelView as _0x2a0dd3,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x8d52b6}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x214cc2}from'./controls/aichatcontrolsloaderview.js';import{getTranslation as _0x5d9eb2}from'../../aicore/utils/common-translations.js';export class AIChatControlsView extends _0x49c51a{[_0x2b35ef(0x9e)]=[];[_0x2b35ef(0x8e)];[_0x2b35ef(0xb6)];[_0x2b35ef(0x87)];[_0x2b35ef(0xc5)];[_0x2b35ef(0x94)];[_0x2b35ef(0xca)];constructor(_0x58b1a1,_0x5a0eaa){const _0x22da0f=_0x2b35ef;super(_0x58b1a1),this[_0x22da0f(0x8e)]=this[_0x22da0f(0xc3)](_0x58b1a1,{'bodyCollection':_0x5a0eaa[_0x22da0f(0xc0)],'searchInputVisibleFrom':_0x5a0eaa[_0x22da0f(0xaf)]}),this[_0x22da0f(0xb6)]=this[_0x22da0f(0xce)](_0x58b1a1),this[_0x22da0f(0x87)]=this[_0x22da0f(0xb9)](_0x58b1a1),this[_0x22da0f(0xc5)]=this[_0x22da0f(0x7d)](_0x58b1a1),this[_0x22da0f(0x94)]=this[_0x22da0f(0xa2)](_0x58b1a1),this[_0x22da0f(0xca)]=!0x1,this[_0x22da0f(0xb6)][_0x22da0f(0xad)](_0x22da0f(0x92))['to'](this),this[_0x22da0f(0xc5)][_0x22da0f(0xad)](_0x22da0f(0x8b))['to'](this),this[_0x22da0f(0x87)][_0x22da0f(0xad)](_0x22da0f(0xac))['to'](this),this[_0x22da0f(0x87)][_0x22da0f(0xad)](_0x22da0f(0x89))['to'](this),this[_0x22da0f(0x87)][_0x22da0f(0xad)](_0x22da0f(0xb0))['to'](this),this[_0x22da0f(0x8e)][_0x22da0f(0xad)](..._0x8d52b6)['to'](this),this[_0x22da0f(0x82)](_0x22da0f(0x8c),!0x0),this[_0x22da0f(0x82)](_0x22da0f(0x9a),!0x1);const _0x473043=this[_0x22da0f(0xa8)];this[_0x22da0f(0xa3)]({'tag':_0x22da0f(0xb8),'attributes':{'class':['ck',_0x22da0f(0xa6),_0x473043['if'](_0x22da0f(0x9a),_0x22da0f(0xba))]},'children':[{'tag':_0x22da0f(0xbc),'attributes':{'class':[_0x473043['if'](_0x22da0f(0xcc),_0x22da0f(0xb7),_0x50843f=>_0x50843f||!this[_0x22da0f(0x8c)]),_0x473043['if'](_0x22da0f(0x8c),_0x22da0f(0xb7),_0x4a6eba=>!_0x4a6eba||this[_0x22da0f(0xcc)])]},'children':[this[_0x22da0f(0x8e)],this[_0x22da0f(0xb6)],this[_0x22da0f(0x87)]]},{'tag':_0x22da0f(0xbc),'attributes':{'class':[_0x473043['if'](_0x22da0f(0xcc),_0x22da0f(0xb7),_0x26c454=>!_0x26c454)]},'children':[this[_0x22da0f(0xc5)]]},{'tag':_0x22da0f(0xbc),'attributes':{'class':[_0x473043['if'](_0x22da0f(0x8c),_0x22da0f(0xb7),_0x586fcc=>_0x586fcc)]},'children':[this[_0x22da0f(0x94)]]}]}),_0x198f5a({'emitter':this[_0x22da0f(0xb6)],'activator':()=>this[_0x22da0f(0xcc)],'contextElements':()=>[this[_0x22da0f(0x80)]],'callback':()=>{const _0x32d0be=_0x22da0f;this[_0x32d0be(0xca)]=!0x1;}}),this['on'](_0x22da0f(0xa4),this[_0x22da0f(0x8d)],{'priority':_0x22da0f(0x7f)});}[_0x2b35ef(0xc3)](_0x280bb3,_0x3e1385){return new _0x2a0dd3(_0x280bb3,_0x3e1385);}[_0x2b35ef(0xce)](_0x3fcf5a){const _0x3ba968=_0x2b35ef;return new _0x380a81(_0x3fcf5a,this[_0x3ba968(0x8e)][_0x3ba968(0xa5)]);}[_0x2b35ef(0xb9)](_0x4461cf){return new _0x3f42c0(_0x4461cf);}[_0x2b35ef(0x7d)](_0x4a693b){return new _0x214cc2(_0x4a693b);}[_0x2b35ef(0xa2)](_0x223f49){const _0x500cb7=_0x2b35ef,_0x5029a0=new _s(_0x223f49);return _0x5029a0[_0x500cb7(0xad)](_0x500cb7(0x99))['to'](this),_0x5029a0;}[_0x2b35ef(0x8d)](_0x30c488,_0x25f820,_0x4bbbbe){const _0xf9f79d=_0x2b35ef;_0x4bbbbe?this[_0xf9f79d(0xca)]=!0x0:this[_0xf9f79d(0xca)]&&this[_0xf9f79d(0xb6)][_0xf9f79d(0x98)]();}[_0x2b35ef(0xcb)](_0x1e86c1,_0x3211b5){const _0x2b9ee3=_0x2b35ef;this[_0x2b9ee3(0x8e)][_0x2b9ee3(0xcb)](_0x1e86c1,_0x3211b5);}[_0x2b35ef(0xc8)](_0xb8116a){const _0x42351b=_0x2b35ef;this[_0x42351b(0x8e)][_0x42351b(0xc8)](_0xb8116a);}[_0x2b35ef(0xcf)](_0x75f160,_0x49805e){const _0x51bc7f=_0x2b35ef;this[_0x51bc7f(0x8e)][_0x51bc7f(0xcf)](_0x75f160,_0x49805e);}[_0x2b35ef(0x9f)](_0x53d6e7){const _0x4f4e93=_0x2b35ef;this[_0x4f4e93(0xb6)][_0x4f4e93(0x9f)](_0x53d6e7);}[_0x2b35ef(0x86)](_0x26baed){const _0x573f0a=_0x2b35ef;this[_0x573f0a(0x8e)][_0x573f0a(0x86)](_0x26baed);}[_0x2b35ef(0x96)](){const _0x3ccfa6=_0x2b35ef;this[_0x3ccfa6(0x8e)][_0x3ccfa6(0x9d)]();}[_0x2b35ef(0x84)](){const _0x273143=_0x2b35ef;this[_0x273143(0x8e)][_0x273143(0xa0)]();}[_0x2b35ef(0x95)](_0x12bf98,_0x21751d,_0x4261ed){const _0x57805d=_0x2b35ef;this[_0x57805d(0x8e)][_0x57805d(0x95)](_0x12bf98,_0x21751d,_0x4261ed);}[_0x2b35ef(0x97)](_0x4f4b3c){const _0xd003d2=_0x2b35ef;this[_0xd003d2(0x87)][_0xd003d2(0x97)](_0x4f4b3c);}[_0x2b35ef(0x81)](_0x35fcc9){const _0x3eec5a=_0x2b35ef;this[_0x3eec5a(0x87)][_0x3eec5a(0x81)](_0x35fcc9);}[_0x2b35ef(0x8a)](){const _0x1d4d49=_0x2b35ef;this[_0x1d4d49(0xb6)][_0x1d4d49(0x93)]();}[_0x2b35ef(0xa1)](_0x4b5797){const _0x1bda0d=_0x2b35ef;this[_0x1bda0d(0x8e)][_0x1bda0d(0xa1)](_0x4b5797);}[_0x2b35ef(0xb3)](_0x3aedd4){const _0x1ccbb9=_0x2b35ef;this[_0x1ccbb9(0xb6)][_0x1ccbb9(0xc7)](_0x3aedd4);}[_0x2b35ef(0xa7)](_0x2387ca,_0x43778f){const _0x1ac328=_0x2b35ef;this[_0x1ac328(0x9e)]=_0x2387ca,this[_0x1ac328(0x87)][_0x1ac328(0xa7)](_0x2387ca,_0x43778f);}[_0x2b35ef(0xbe)](_0x9b745b){const _0x4dbdc9=_0x2b35ef;(_0x9b745b?this[_0x4dbdc9(0x9e)][_0x4dbdc9(0x7e)](_0x4e26e3=>_0x4e26e3['id']===_0x9b745b['id']):null)?(this[_0x4dbdc9(0x8c)]=!0x0,this[_0x4dbdc9(0x87)][_0x4dbdc9(0xbe)](_0x9b745b)):_0x9b745b?.['id'][_0x4dbdc9(0x9b)](_0x4dbdc9(0xbf))?(this[_0x4dbdc9(0x8c)]=!0x0,this[_0x4dbdc9(0x87)][_0x4dbdc9(0xbe)](this[_0x4dbdc9(0x9e)][0x0])):this[_0x4dbdc9(0x8c)]=!0x1;}[_0x2b35ef(0xcd)](){const _0x40bf28=_0x2b35ef;this[_0x40bf28(0x87)][_0x40bf28(0xcd)]();}[_0x2b35ef(0xb5)](_0x3c39a4){const _0xc1aa07=_0x2b35ef;this[_0xc1aa07(0x87)][_0xc1aa07(0xb5)](_0x3c39a4);}[_0x2b35ef(0xbd)](_0x2ce3b8,_0x1d9730,_0xd2733,_0x59e30f){const _0x5a0d18=_0x2b35ef;this[_0x5a0d18(0x8e)][_0x5a0d18(0xbd)](_0x2ce3b8,_0x1d9730,_0xd2733,_0x59e30f);}[_0x2b35ef(0xc9)](_0x34955a){const _0x9c1230=_0x2b35ef;this[_0x9c1230(0x8e)][_0x9c1230(0xc9)](_0x34955a);}[_0x2b35ef(0x88)](){const _0x49c55d=_0x2b35ef;this[_0x49c55d(0xb6)][_0x49c55d(0x98)]();}}class _s extends _0x49c51a{constructor(_0x55425f){const _0x3b35fb=_0x2b35ef;super(_0x55425f);const _0xcc8a2=new _0x4c9898(_0x55425f);_0xcc8a2[_0x3b35fb(0x82)]({'label':_0x5d9eb2(this[_0x3b35fb(0xc2)],_0x3b35fb(0xae)),'withText':!0x0,'class':[_0x3b35fb(0xbb)],'tooltip':''}),_0xcc8a2[_0x3b35fb(0xad)](_0x3b35fb(0xaa))['to'](this,_0x3b35fb(0x99)),this[_0x3b35fb(0xa3)]({'tag':_0x3b35fb(0xbc),'attributes':{'class':['ck',_0x3b35fb(0xc1)]},'children':[{'tag':'p','children':[{'text':_0x5d9eb2(this[_0x3b35fb(0xc2)],_0x3b35fb(0x9c))+'\x20'},_0xcc8a2]}]});}}
23
+ const _0x3d34bb=_0x3e05;(function(_0x1bb190,_0x5d5baa){const _0x3cc76f=_0x3e05,_0x2ea43c=_0x1bb190();while(!![]){try{const _0x1d257f=parseInt(_0x3cc76f(0xd5))/0x1+-parseInt(_0x3cc76f(0xbf))/0x2*(-parseInt(_0x3cc76f(0xdb))/0x3)+-parseInt(_0x3cc76f(0xc5))/0x4+-parseInt(_0x3cc76f(0xb5))/0x5+parseInt(_0x3cc76f(0x9d))/0x6+-parseInt(_0x3cc76f(0xd2))/0x7+parseInt(_0x3cc76f(0xba))/0x8;if(_0x1d257f===_0x5d5baa)break;else _0x2ea43c['push'](_0x2ea43c['shift']());}catch(_0x69ad87){_0x2ea43c['push'](_0x2ea43c['shift']());}}}(_0x1095,0xc69bf));import{ButtonView as _0x53e688,clickOutsideHandler as _0x209954,View as _0x422ca4}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x52e9b7}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x5d1b62}from'./controls/aichatpromptcapabilitiesview.js';function _0x1095(){const _0x5ee26b=['set','1766306CkPtVu','_loaderView','clearCurrentContextItems','locale','removeContextItem','_promptInputView','5739872kYquUd','setContextItemLoading','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','_promptCapabilitiesView','ck-hidden','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','_createModelUnavailableMessageView','_createPromptInputView','change:isLoading','abortPromptStream','agent','_modelUnavailableMessageView','setAddContextOptions','2332057LcSYIv','enableModelSelector','clearConversationContextUI','1542367QuHOkF','sendUserMessage','focus','setConversationContext','bodyCollection','isLoading','3yPUZxi','_contextPanelView','isDisabled','addContextItem','div','clearPendingContextUI','isModelAvailable','toggleReasoning','setInputPlaceholder','setModel','low','_createPromptCapabilitiesView','bindTemplate','startConversation','clearConversationContextItems','ck-ai-chat-controls__start-new-chat-button','form','6062052oThSVT','selectModel','contextResourcesSearchInputVisibleFrom','ck-ai-chat-controls-disabled','populateSourceResourceBalloon','setWebSearch','_handlePromptInputFocus','setPlaceholderText','updateResourceState','disableModelSelector','_displayedModels','resetMessageInput','setIsUploadInProgress','focusPromptInput','ck-ai-chat-controls','_createContextPanelView','setTemplate','execute','reset','toggleWebSearch','delegate','closeSourceResourceBalloon','startsWith','element','5313840lnFTrw','_shouldRestorePromptInputFocus','addContextButtonView','find','setModelList','1668224blvGDs','ck-ai-chat-controls-model-unavailable-message','setReasoning','_createLoaderView'];_0x1095=function(){return _0x5ee26b;};return _0x1095();}function _0x3e05(_0xc2a4e,_0x53a9e0){const _0x109593=_0x1095();return _0x3e05=function(_0x3e052d,_0x51e881){_0x3e052d=_0x3e052d-0x9c;let _0x42aaf0=_0x109593[_0x3e052d];return _0x42aaf0;},_0x3e05(_0xc2a4e,_0x53a9e0);}import{AIChatContextPanelView as _0x11a483,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x960657}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x1c50c3}from'./controls/aichatcontrolsloaderview.js';import{getTranslation as _0x6fc249}from'../../aicore/utils/common-translations.js';export class AIChatControlsView extends _0x422ca4{[_0x3d34bb(0xa7)]=[];[_0x3d34bb(0xdc)];[_0x3d34bb(0xc4)];[_0x3d34bb(0xc8)];[_0x3d34bb(0xc0)];[_0x3d34bb(0xd0)];[_0x3d34bb(0xb6)];constructor(_0x5177e5,_0x17f9bf){const _0x30b8c5=_0x3d34bb;super(_0x5177e5),this[_0x30b8c5(0xdc)]=this[_0x30b8c5(0xac)](_0x5177e5,{'bodyCollection':_0x17f9bf[_0x30b8c5(0xd9)],'searchInputVisibleFrom':_0x17f9bf[_0x30b8c5(0x9f)]}),this[_0x30b8c5(0xc4)]=this[_0x30b8c5(0xcc)](_0x5177e5),this[_0x30b8c5(0xc8)]=this[_0x30b8c5(0xe6)](_0x5177e5),this[_0x30b8c5(0xc0)]=this[_0x30b8c5(0xbd)](_0x5177e5),this[_0x30b8c5(0xd0)]=this[_0x30b8c5(0xcb)](_0x5177e5),this[_0x30b8c5(0xb6)]=!0x1,this[_0x30b8c5(0xc4)][_0x30b8c5(0xb1)](_0x30b8c5(0xd6))['to'](this),this[_0x30b8c5(0xc0)][_0x30b8c5(0xb1)](_0x30b8c5(0xce))['to'](this),this[_0x30b8c5(0xc8)][_0x30b8c5(0xb1)](_0x30b8c5(0xb0))['to'](this),this[_0x30b8c5(0xc8)][_0x30b8c5(0xb1)](_0x30b8c5(0xe2))['to'](this),this[_0x30b8c5(0xc8)][_0x30b8c5(0xb1)](_0x30b8c5(0x9e))['to'](this),this[_0x30b8c5(0xdc)][_0x30b8c5(0xb1)](..._0x960657)['to'](this),this[_0x30b8c5(0xbe)](_0x30b8c5(0xe1),!0x0),this[_0x30b8c5(0xbe)](_0x30b8c5(0xdd),!0x1);const _0x35ab53=this[_0x30b8c5(0xe7)];this[_0x30b8c5(0xad)]({'tag':_0x30b8c5(0x9c),'attributes':{'class':['ck',_0x30b8c5(0xab),_0x35ab53['if'](_0x30b8c5(0xdd),_0x30b8c5(0xa0))]},'children':[{'tag':_0x30b8c5(0xdf),'attributes':{'class':[_0x35ab53['if'](_0x30b8c5(0xda),_0x30b8c5(0xc9),_0x4da1e8=>_0x4da1e8||!this[_0x30b8c5(0xe1)]),_0x35ab53['if'](_0x30b8c5(0xe1),_0x30b8c5(0xc9),_0x1f7f5f=>!_0x1f7f5f||this[_0x30b8c5(0xda)])]},'children':[this[_0x30b8c5(0xdc)],this[_0x30b8c5(0xc4)],this[_0x30b8c5(0xc8)]]},{'tag':_0x30b8c5(0xdf),'attributes':{'class':[_0x35ab53['if'](_0x30b8c5(0xda),_0x30b8c5(0xc9),_0x42f3bf=>!_0x42f3bf)]},'children':[this[_0x30b8c5(0xc0)]]},{'tag':_0x30b8c5(0xdf),'attributes':{'class':[_0x35ab53['if'](_0x30b8c5(0xe1),_0x30b8c5(0xc9),_0x484d91=>_0x484d91)]},'children':[this[_0x30b8c5(0xd0)]]}]}),_0x209954({'emitter':this[_0x30b8c5(0xc4)],'activator':()=>this[_0x30b8c5(0xda)],'contextElements':()=>[this[_0x30b8c5(0xb4)]],'callback':()=>{const _0x1d1b45=_0x30b8c5;this[_0x1d1b45(0xb6)]=!0x1;}}),this['on'](_0x30b8c5(0xcd),this[_0x30b8c5(0xa3)],{'priority':_0x30b8c5(0xe5)});}[_0x3d34bb(0xac)](_0x2b5606,_0x6327ff){return new _0x11a483(_0x2b5606,_0x6327ff);}[_0x3d34bb(0xcc)](_0x50d0cd){const _0x107229=_0x3d34bb;return new _0x52e9b7(_0x50d0cd,this[_0x107229(0xdc)][_0x107229(0xb7)]);}[_0x3d34bb(0xe6)](_0xf0b1f8){return new _0x5d1b62(_0xf0b1f8);}[_0x3d34bb(0xbd)](_0x2673bb){return new _0x1c50c3(_0x2673bb);}[_0x3d34bb(0xcb)](_0x5aa2ba){const _0x45b249=_0x3d34bb,_0x113d5b=new gs(_0x5aa2ba);return _0x113d5b[_0x45b249(0xb1)](_0x45b249(0xe8))['to'](this),_0x113d5b;}[_0x3d34bb(0xa3)](_0x3540d6,_0x11d1d3,_0x51c37c){const _0x379eb0=_0x3d34bb;_0x51c37c?this[_0x379eb0(0xb6)]=!0x0:this[_0x379eb0(0xb6)]&&this[_0x379eb0(0xc4)][_0x379eb0(0xd7)]();}[_0x3d34bb(0xde)](_0x1cbe6f,_0x59f6c6){const _0x2ecf2e=_0x3d34bb;this[_0x2ecf2e(0xdc)][_0x2ecf2e(0xde)](_0x1cbe6f,_0x59f6c6);}[_0x3d34bb(0xc3)](_0x5371ac){const _0x577344=_0x3d34bb;this[_0x577344(0xdc)][_0x577344(0xc3)](_0x5371ac);}[_0x3d34bb(0xc6)](_0x323c6b,_0x1c55ce){const _0x2e6856=_0x3d34bb;this[_0x2e6856(0xdc)][_0x2e6856(0xc6)](_0x323c6b,_0x1c55ce);}[_0x3d34bb(0xa9)](_0x227fc8){const _0x4dc957=_0x3d34bb;this[_0x4dc957(0xc4)][_0x4dc957(0xa9)](_0x227fc8);}[_0x3d34bb(0xd8)](_0x1747aa){const _0xd2514e=_0x3d34bb;this[_0xd2514e(0xdc)][_0xd2514e(0xd8)](_0x1747aa);}[_0x3d34bb(0xe0)](){const _0x237258=_0x3d34bb;this[_0x237258(0xdc)][_0x237258(0xc1)]();}[_0x3d34bb(0xd4)](){const _0x32162e=_0x3d34bb;this[_0x32162e(0xdc)][_0x32162e(0xe9)]();}[_0x3d34bb(0xa5)](_0x4398d,_0x1bf5b1,_0x5eed83){const _0x5b041b=_0x3d34bb;this[_0x5b041b(0xdc)][_0x5b041b(0xa5)](_0x4398d,_0x1bf5b1,_0x5eed83);}[_0x3d34bb(0xa2)](_0x137359){const _0x33b456=_0x3d34bb;this[_0x33b456(0xc8)][_0x33b456(0xa2)](_0x137359);}[_0x3d34bb(0xbc)](_0x30d82a){const _0x585c4d=_0x3d34bb;this[_0x585c4d(0xc8)][_0x585c4d(0xbc)](_0x30d82a);}[_0x3d34bb(0xa8)](){const _0x3bc91f=_0x3d34bb;this[_0x3bc91f(0xc4)][_0x3bc91f(0xaf)]();}[_0x3d34bb(0xd1)](_0x2951b1){const _0x17c951=_0x3d34bb;this[_0x17c951(0xdc)][_0x17c951(0xd1)](_0x2951b1);}[_0x3d34bb(0xe3)](_0x55f581){const _0x4d2d34=_0x3d34bb;this[_0x4d2d34(0xc4)][_0x4d2d34(0xa4)](_0x55f581);}[_0x3d34bb(0xb9)](_0x519775,_0x4aaa5f){const _0x4bd43e=_0x3d34bb;this[_0x4bd43e(0xa7)]=_0x519775,this[_0x4bd43e(0xc8)][_0x4bd43e(0xb9)](_0x519775,_0x4aaa5f);}[_0x3d34bb(0xe4)](_0x5bd48c){const _0x20af58=_0x3d34bb;(_0x5bd48c?this[_0x20af58(0xa7)][_0x20af58(0xb8)](_0x5189a5=>_0x5189a5['id']===_0x5bd48c['id']):null)?(this[_0x20af58(0xe1)]=!0x0,this[_0x20af58(0xc8)][_0x20af58(0xe4)](_0x5bd48c)):_0x5bd48c?.['id'][_0x20af58(0xb3)](_0x20af58(0xcf))?(this[_0x20af58(0xe1)]=!0x0,this[_0x20af58(0xc8)][_0x20af58(0xe4)](this[_0x20af58(0xa7)][0x0])):this[_0x20af58(0xe1)]=!0x1;}[_0x3d34bb(0xd3)](){const _0x43f9db=_0x3d34bb;this[_0x43f9db(0xc8)][_0x43f9db(0xd3)]();}[_0x3d34bb(0xa6)](_0x47fd88){const _0x5d3de7=_0x3d34bb;this[_0x5d3de7(0xc8)][_0x5d3de7(0xa6)](_0x47fd88);}[_0x3d34bb(0xa1)](_0x1db018,_0x2036d4,_0x19d631,_0x3c9ce5){const _0x249773=_0x3d34bb;this[_0x249773(0xdc)][_0x249773(0xa1)](_0x1db018,_0x2036d4,_0x19d631,_0x3c9ce5);}[_0x3d34bb(0xb2)](_0x1e41c1){const _0x5b3786=_0x3d34bb;this[_0x5b3786(0xdc)][_0x5b3786(0xb2)](_0x1e41c1);}[_0x3d34bb(0xaa)](){const _0x481246=_0x3d34bb;this[_0x481246(0xc4)][_0x481246(0xd7)]();}}class gs extends _0x422ca4{constructor(_0x5ccfdc){const _0x1f219a=_0x3d34bb;super(_0x5ccfdc);const _0x98e1f2=new _0x53e688(_0x5ccfdc);_0x98e1f2[_0x1f219a(0xbe)]({'label':_0x6fc249(this[_0x1f219a(0xc2)],_0x1f219a(0xca)),'withText':!0x0,'class':[_0x1f219a(0xea)],'tooltip':''}),_0x98e1f2[_0x1f219a(0xb1)](_0x1f219a(0xae))['to'](this,_0x1f219a(0xe8)),this[_0x1f219a(0xad)]({'tag':_0x1f219a(0xdf),'attributes':{'class':['ck',_0x1f219a(0xbb)]},'children':[{'tag':'p','children':[{'text':_0x6fc249(this[_0x1f219a(0xc2)],_0x1f219a(0xc7))+'\x20'},_0x98e1f2]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3780d1=_0x2a75;function _0x2a75(_0x2cf60f,_0x4d32bf){const _0x417f0b=_0x417f();return _0x2a75=function(_0x2a75d3,_0x32fde6){_0x2a75d3=_0x2a75d3-0x80;let _0xfac794=_0x417f0b[_0x2a75d3];return _0xfac794;},_0x2a75(_0x2cf60f,_0x4d32bf);}(function(_0x1f8e8e,_0x7a4baf){const _0x13c10c=_0x2a75,_0x7dc4f0=_0x1f8e8e();while(!![]){try{const _0x5af721=-parseInt(_0x13c10c(0x8e))/0x1+parseInt(_0x13c10c(0xb5))/0x2*(-parseInt(_0x13c10c(0x96))/0x3)+parseInt(_0x13c10c(0xb7))/0x4*(-parseInt(_0x13c10c(0x93))/0x5)+-parseInt(_0x13c10c(0xc2))/0x6+-parseInt(_0x13c10c(0x8d))/0x7*(parseInt(_0x13c10c(0xae))/0x8)+-parseInt(_0x13c10c(0xaf))/0x9*(-parseInt(_0x13c10c(0x84))/0xa)+parseInt(_0x13c10c(0x91))/0xb;if(_0x5af721===_0x7a4baf)break;else _0x7dc4f0['push'](_0x7dc4f0['shift']());}catch(_0x59de9a){_0x7dc4f0['push'](_0x7dc4f0['shift']());}}}(_0x417f,0xc08f7));import{CKEditorError as _0x44f375,logWarning as _0x3da7e9,scrollViewportToShowTarget as _0x30947f}from'ckeditor5/src/utils.js';import{View as _0x5e63d9}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x43c254}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x2bce79}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x4a5b8f}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x798289}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x41d9b6}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x3f5dfa}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x3286ed}from'../utils/scrollmanager.js';import{AISkeletonView as _0x2365e2,SKELETON_DEFINITIONS as _0x4f7589}from'../../aicore/ui/aiskeleton.js';function _0x417f(){const _0x303085=['_bodyCollection','user-message','div','isVisible','aiFeed','33080aaghOU','1524564ZVKDrk','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','ck-ai-chat__loader','start','children','updateReplyItem','4408pSIEVz','updateContent','4ZCjUmh','markItemAsDone','_createFeedItems','updateWebSources','locale','render','span','addItem','clear','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','destroy','3047172zqJcPJ','bind','options','stopAutoScroll','find','setLoadingMessage','isLoadingSkeletonVisible','getPartView','ai-chat-feed-view-item-not-a-reply-item','startAutoScroll','add','ck-ai-chat__feed__items','remove','element','extendTemplate','markAsDone','bindTemplate','includes','ai-suggestion-reply','updateSuggestionPartState','90VJEzsI','_createLoaderChildren','updateSources','toggleLoadingSkeleton','setTemplate','_setupTemplate','ai-chat-feed-view-item-not-found','getItemById','ai-chat-feed-view-item-not-a-suggestion-item','1897vhkSdj','212532DCoNmf','_createTemplateChildren','ck-hidden','37728625fMxycB','createCollection','6488345auABlG','_createSkeletonLoader','scrollToSuggestion','1398cbnPqT','updatePartState','loadingMessage','isPending','ck-ai-chat__loader-text','getItemIds','map','interaction-header','_createFeedLoader','removeItem','set','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','ai-reply','updateSuggestionItem','stop','delegate','ck-ai-chat__feed','isTrackChangesOn','scrollManager'];_0x417f=function(){return _0x303085;};return _0x417f();}import{AISpinnerView as _0x5aa0b}from'../../aicore/ui/aispinner.js';export class AIChatFeedView extends _0x5e63d9{[_0x3780d1(0xb3)];[_0x3780d1(0xa8)];[_0x3780d1(0xa9)];constructor(_0x582d25,_0x40d7dd){const _0x13bfab=_0x3780d1;super(_0x582d25),this[_0x13bfab(0xa9)]=_0x40d7dd,this[_0x13bfab(0xa0)](_0x13bfab(0x99),!0x1),this[_0x13bfab(0xa0)](_0x13bfab(0x98),''),this[_0x13bfab(0xa0)](_0x13bfab(0xc8),!0x1),this[_0x13bfab(0xa0)](_0x13bfab(0xa7),!0x1),this[_0x13bfab(0xb3)]=this[_0x13bfab(0x92)](),this[_0x13bfab(0xb3)][_0x13bfab(0xa5)](..._0x43c254)['to'](this),this[_0x13bfab(0x89)]();}[_0x3780d1(0xbc)](){const _0xfba27c=_0x3780d1;super[_0xfba27c(0xbc)](),this[_0xfba27c(0xa8)]=new _0x3286ed(this[_0xfba27c(0xcf)]);}[_0x3780d1(0xc1)](){const _0x443760=_0x3780d1;super[_0x443760(0xc1)](),this[_0x443760(0xa8)][_0x443760(0xc1)]();}[_0x3780d1(0xbf)](){const _0x433f2b=_0x3780d1;this[_0x433f2b(0xb3)][_0x433f2b(0xbf)]();}[_0x3780d1(0xbe)](_0x1ef035,_0x1359a6){const _0x26a38f=_0x3780d1;let _0xb38056;_0x26a38f(0xa2)===_0x1ef035?_0xb38056=new _0x4a5b8f(this[_0x26a38f(0xbb)],_0x1359a6):_0x26a38f(0x82)===_0x1ef035?(_0xb38056=new _0x2bce79(this[_0x26a38f(0xbb)],_0x1359a6),_0xb38056[_0x26a38f(0xc3)](_0x26a38f(0xa7))['to'](this,_0x26a38f(0xa7))):_0xb38056=_0x26a38f(0xaa)===_0x1ef035?new _0x798289(this[_0x26a38f(0xbb)],_0x1359a6,this[_0x26a38f(0xa9)]):_0x26a38f(0x9d)===_0x1ef035?new _0x3f5dfa(this[_0x26a38f(0xbb)],_0x1359a6):new _0x41d9b6(_0x1359a6),this[_0x26a38f(0xb3)][_0x26a38f(0xcc)](_0xb38056);}async[_0x3780d1(0xb4)]({id:_0x49b979,parsedContent:_0x220c38,renderingStrategy:_0xdaf8ca,abortSignal:_0x313c51}){const _0x1831c5=_0x3780d1,_0x26fb97=this[_0x1831c5(0x8b)](_0x49b979);if(!(_0x26fb97 instanceof _0x4a5b8f))throw new _0x44f375(_0x1831c5(0xca),null,{'itemView':_0x26fb97,'id':_0x49b979,'parsedContent':_0x220c38});await _0x26fb97[_0x1831c5(0xb6)]({'parsedContent':_0x220c38,'renderingStrategy':_0xdaf8ca,'abortSignal':_0x313c51});}async[_0x3780d1(0xba)](_0x93e01d,_0x53e062){const _0x229b57=_0x3780d1,_0x1128eb=this[_0x229b57(0x8b)](_0x93e01d);if(_0x1128eb instanceof _0x2bce79)_0x1128eb[_0x229b57(0x86)](_0x53e062);else{if(!(_0x1128eb instanceof _0x4a5b8f))throw new _0x44f375(_0x229b57(0xa1),null,{'itemView':_0x1128eb,'id':_0x93e01d,'sources':_0x53e062});_0x1128eb[_0x229b57(0x86)](_0x53e062);}}async[_0x3780d1(0xa3)]({id:_0x3dfc7b,parts:_0x3695b1,renderingStrategy:_0xee29ca,abortSignal:_0x47707d}){const _0x22f70e=_0x3780d1,_0x56c82b=this[_0x22f70e(0x8b)](_0x3dfc7b);if(!(_0x56c82b instanceof _0x2bce79))throw new _0x44f375(_0x22f70e(0x8c),null,{'itemView':_0x56c82b,'id':_0x3dfc7b,'parts':_0x3695b1});await _0x56c82b[_0x22f70e(0xb6)]({'parts':_0x3695b1,'renderingStrategy':_0xee29ca,'abortSignal':_0x47707d});}[_0x3780d1(0x83)]({id:_0x1a801b,index:_0x37c9fc,state:_0x4ae965}){const _0x560ce2=_0x3780d1,_0x25b3b3=this[_0x560ce2(0x8b)](_0x1a801b);if(!(_0x25b3b3 instanceof _0x2bce79))throw new _0x44f375(_0x560ce2(0x8c),this,{'id':_0x1a801b});_0x25b3b3[_0x560ce2(0x97)](_0x37c9fc,_0x4ae965);}[_0x3780d1(0xb8)](_0x3d3181){const _0x49e963=_0x3780d1;this[_0x49e963(0x8b)](_0x3d3181)[_0x49e963(0xd1)]();}[_0x3780d1(0x9b)](){const _0xa9ecd0=_0x3780d1;return this[_0xa9ecd0(0xb3)][_0xa9ecd0(0x9c)](_0x6b4111=>_0x6b4111[_0xa9ecd0(0xc4)]['id']);}[_0x3780d1(0x9f)](_0x10c205){const _0x250757=_0x3780d1;this[_0x250757(0xb3)][_0x250757(0xce)](this[_0x250757(0x8b)](_0x10c205));}[_0x3780d1(0x95)](_0x46840d,_0x5045a3){const _0x197d58=_0x3780d1,_0xebecbd=this[_0x197d58(0x8b)](_0x46840d);if(!(_0xebecbd instanceof _0x2bce79))return void _0x3da7e9(_0x197d58(0xc0),{'replyId':_0x46840d,'partIndex':_0x5045a3});const _0x1de69a=_0xebecbd[_0x197d58(0xc9)](_0x5045a3);_0x1de69a?_0x30947f({'target':_0x1de69a[_0x197d58(0xcf)],'ancestorOffset':0x14,'alignToTop':!0x0,'forceScroll':!0x0}):_0x3da7e9(_0x197d58(0xb0),{'replyId':_0x46840d,'partIndex':_0x5045a3});}[_0x3780d1(0x89)](){const _0x2cd0d0=_0x3780d1;this[_0x2cd0d0(0x88)]({'tag':_0x2cd0d0(0xab),'attributes':{'class':['ck',_0x2cd0d0(0xa6)]},'children':this[_0x2cd0d0(0x8f)]()});}[_0x3780d1(0x8f)](){const _0x8528b5=_0x3780d1,_0x1362f2=this[_0x8528b5(0x94)]();return[this[_0x8528b5(0xb9)](),_0x1362f2,this[_0x8528b5(0x9e)]()];}[_0x3780d1(0x94)](){const _0x46add3=_0x3780d1,_0x3aa175=new _0x2365e2(this[_0x46add3(0xbb)],_0x4f7589[_0x46add3(0xad)]);return _0x3aa175[_0x46add3(0xd0)]({'attributes':{'class':[this[_0x46add3(0x80)]['if'](_0x46add3(0xc8),_0x46add3(0x90),_0x5eee44=>!_0x5eee44)]}}),_0x3aa175;}[_0x3780d1(0xb9)](){const _0x5d0b0f=_0x3780d1,_0x4ea9b4=new _0x5e63d9(this[_0x5d0b0f(0xbb)]);return _0x4ea9b4[_0x5d0b0f(0x88)]({'tag':_0x5d0b0f(0xab),'attributes':{'class':['ck',_0x5d0b0f(0xcd),this[_0x5d0b0f(0x80)]['if'](_0x5d0b0f(0xc8),_0x5d0b0f(0x90))]},'children':this[_0x5d0b0f(0xb3)]}),_0x4ea9b4;}[_0x3780d1(0x9e)](){const _0x523fe2=_0x3780d1,_0x4834c6=new _0x5e63d9(this[_0x523fe2(0xbb)]);return _0x4834c6[_0x523fe2(0x88)]({'tag':_0x523fe2(0xab),'attributes':{'class':['ck',_0x523fe2(0xb1),this[_0x523fe2(0x80)]['if'](_0x523fe2(0x99),_0x523fe2(0x90),_0x785c5f=>!_0x785c5f)]},'children':this[_0x523fe2(0x85)]()}),_0x4834c6;}[_0x3780d1(0x85)](){const _0x472a70=_0x3780d1,_0x2bc5f4=new _0x5aa0b();return _0x2bc5f4[_0x472a70(0xac)]=!0x0,[_0x2bc5f4,{'tag':_0x472a70(0xbd),'attributes':{'class':['ck',_0x472a70(0x9a)]},'children':[{'text':this[_0x472a70(0x80)]['to'](_0x472a70(0x98))}]}];}[_0x3780d1(0x8b)](_0x13dd22){const _0x16e6ac=_0x3780d1,_0x3016fa=this[_0x16e6ac(0xb3)][_0x16e6ac(0xc6)](_0x38aec0=>_0x38aec0[_0x16e6ac(0xc4)]['id'][_0x16e6ac(0x81)](_0x13dd22));if(!_0x3016fa)throw new _0x44f375(_0x16e6ac(0x8a),this,{'id':_0x13dd22});return _0x3016fa;}[_0x3780d1(0xc7)](_0x503d40){const _0x2d91cd=_0x3780d1;this[_0x2d91cd(0xa0)](_0x2d91cd(0x98),_0x503d40);}[_0x3780d1(0x87)](_0x99595b){const _0x43cde1=_0x3780d1;this[_0x43cde1(0xa0)](_0x43cde1(0xc8),_0x99595b);}[_0x3780d1(0xcb)](){const _0x4ec31e=_0x3780d1;this[_0x4ec31e(0xa8)][_0x4ec31e(0xb2)]();}[_0x3780d1(0xc5)](){const _0x519178=_0x3780d1;this[_0x519178(0xa8)][_0x519178(0xa4)]();}}
23
+ function _0x3364(){const _0x4c7e9d=['createCollection','set','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','markItemAsDone','_createSkeletonLoader','getItemById','locale','3556112KJWPhj','updateSuggestionItem','stop','includes','ck-ai-chat__loader','scrollManager','ai-chat-feed-view-item-not-a-reply-item','updateWebSources','updateReplyItem','isVisible','ai-suggestion-reply','ck-ai-chat__feed__items','start','removeItem','delegate','span','map','aiFeed','3219tsTBMa','_setupTemplate','toggleLoadingSkeleton','user-message','loadingMessage','addItem','extendTemplate','scrollToSuggestion','_createFeedLoader','ck-ai-chat__loader-text','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','ck-hidden','options','find','setTemplate','add','render','ai-chat-feed-view-item-not-found','getItemIds','_createFeedItems','div','bind','remove','24900282NnhhZZ','isLoadingSkeletonVisible','1140881FCkTce','185muNItO','584whZNAP','_createTemplateChildren','ai-chat-feed-view-item-not-a-suggestion-item','markAsDone','bindTemplate','ai-reply','updateSuggestionPartState','isPending','stopAutoScroll','_bodyCollection','116780rlIrwm','updateSources','interaction-header','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','529020VqJGre','element','isTrackChangesOn','updatePartState','children','_createLoaderChildren','ck-ai-chat__feed','setLoadingMessage','updateContent','18RyowVU','getPartView','clear','143940zDycrC','destroy','171HTrpZQ','startAutoScroll'];_0x3364=function(){return _0x4c7e9d;};return _0x3364();}const _0xfed7f4=_0x490e;(function(_0x555dfe,_0x2fb4dc){const _0x117ec0=_0x490e,_0x1e9f2a=_0x555dfe();while(!![]){try{const _0x5e44b8=-parseInt(_0x117ec0(0x152))/0x1+parseInt(_0x117ec0(0x144))/0x2*(-parseInt(_0x117ec0(0x129))/0x3)+-parseInt(_0x117ec0(0x14e))/0x4*(parseInt(_0x117ec0(0x143))/0x5)+parseInt(_0x117ec0(0x15b))/0x6*(-parseInt(_0x117ec0(0x142))/0x7)+parseInt(_0x117ec0(0x117))/0x8+-parseInt(_0x117ec0(0x10e))/0x9*(-parseInt(_0x117ec0(0x10c))/0xa)+parseInt(_0x117ec0(0x140))/0xb;if(_0x5e44b8===_0x2fb4dc)break;else _0x1e9f2a['push'](_0x1e9f2a['shift']());}catch(_0x19a310){_0x1e9f2a['push'](_0x1e9f2a['shift']());}}}(_0x3364,0x8b332));import{CKEditorError as _0x4b704c,logWarning as _0x534978,scrollViewportToShowTarget as _0x557f03}from'ckeditor5/src/utils.js';import{View as _0x229f65}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x5e7de4}from'../utils/eventnames.js';function _0x490e(_0x1d6db5,_0x20f5b2){const _0x336443=_0x3364();return _0x490e=function(_0x490e58,_0x221a7a){_0x490e58=_0x490e58-0x10a;let _0x52bb5e=_0x336443[_0x490e58];return _0x52bb5e;},_0x490e(_0x1d6db5,_0x20f5b2);}import{AIChatFeedSuggestionItemView as _0x4904c6}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0xd47fa4}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x31ee68}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x3cf693}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x1fb344}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x402792}from'../utils/scrollmanager.js';import{AISkeletonView as _0x1a5282,SKELETON_DEFINITIONS as _0xbc816b}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x19aae9}from'../../aicore/ui/aispinner.js';export class AIChatFeedView extends _0x229f65{[_0xfed7f4(0x156)];[_0xfed7f4(0x11c)];[_0xfed7f4(0x14d)];constructor(_0x7918f5,_0x46bcad){const _0x487029=_0xfed7f4;super(_0x7918f5),this[_0x487029(0x14d)]=_0x46bcad,this[_0x487029(0x111)](_0x487029(0x14b),!0x1),this[_0x487029(0x111)](_0x487029(0x12d),''),this[_0x487029(0x111)](_0x487029(0x141),!0x1),this[_0x487029(0x111)](_0x487029(0x154),!0x1),this[_0x487029(0x156)]=this[_0x487029(0x110)](),this[_0x487029(0x156)][_0x487029(0x125)](..._0x5e7de4)['to'](this),this[_0x487029(0x12a)]();}[_0xfed7f4(0x139)](){const _0x145614=_0xfed7f4;super[_0x145614(0x139)](),this[_0x145614(0x11c)]=new _0x402792(this[_0x145614(0x153)]);}[_0xfed7f4(0x10d)](){const _0x147ab0=_0xfed7f4;super[_0x147ab0(0x10d)](),this[_0x147ab0(0x11c)][_0x147ab0(0x10d)]();}[_0xfed7f4(0x10b)](){const _0x17f988=_0xfed7f4;this[_0x17f988(0x156)][_0x17f988(0x10b)]();}[_0xfed7f4(0x12e)](_0x3437aa,_0x14f93f){const _0x5acd01=_0xfed7f4;let _0x2ac794;_0x5acd01(0x149)===_0x3437aa?_0x2ac794=new _0xd47fa4(this[_0x5acd01(0x116)],_0x14f93f):_0x5acd01(0x121)===_0x3437aa?(_0x2ac794=new _0x4904c6(this[_0x5acd01(0x116)],_0x14f93f),_0x2ac794[_0x5acd01(0x13e)](_0x5acd01(0x154))['to'](this,_0x5acd01(0x154))):_0x2ac794=_0x5acd01(0x12c)===_0x3437aa?new _0x31ee68(this[_0x5acd01(0x116)],_0x14f93f,this[_0x5acd01(0x14d)]):_0x5acd01(0x150)===_0x3437aa?new _0x1fb344(this[_0x5acd01(0x116)],_0x14f93f):new _0x3cf693(_0x14f93f),this[_0x5acd01(0x156)][_0x5acd01(0x138)](_0x2ac794);}async[_0xfed7f4(0x11f)]({id:_0x5cc4fe,parsedContent:_0x3efb8b,renderingStrategy:_0x51d4ee,abortSignal:_0x1fddd7}){const _0x595000=_0xfed7f4,_0x461222=this[_0x595000(0x115)](_0x5cc4fe);if(!(_0x461222 instanceof _0xd47fa4))throw new _0x4b704c(_0x595000(0x11d),null,{'itemView':_0x461222,'id':_0x5cc4fe,'parsedContent':_0x3efb8b});await _0x461222[_0x595000(0x15a)]({'parsedContent':_0x3efb8b,'renderingStrategy':_0x51d4ee,'abortSignal':_0x1fddd7});}async[_0xfed7f4(0x11e)](_0x2c51a4,_0x540365){const _0xe93b26=_0xfed7f4,_0xaf262d=this[_0xe93b26(0x115)](_0x2c51a4);if(_0xaf262d instanceof _0x4904c6)_0xaf262d[_0xe93b26(0x14f)](_0x540365);else{if(!(_0xaf262d instanceof _0xd47fa4))throw new _0x4b704c(_0xe93b26(0x112),null,{'itemView':_0xaf262d,'id':_0x2c51a4,'sources':_0x540365});_0xaf262d[_0xe93b26(0x14f)](_0x540365);}}async[_0xfed7f4(0x118)]({id:_0x4012d9,parts:_0x11437b,renderingStrategy:_0x102f92,abortSignal:_0x527219}){const _0x2dc2b7=_0xfed7f4,_0x184012=this[_0x2dc2b7(0x115)](_0x4012d9);if(!(_0x184012 instanceof _0x4904c6))throw new _0x4b704c(_0x2dc2b7(0x146),null,{'itemView':_0x184012,'id':_0x4012d9,'parts':_0x11437b});await _0x184012[_0x2dc2b7(0x15a)]({'parts':_0x11437b,'renderingStrategy':_0x102f92,'abortSignal':_0x527219});}[_0xfed7f4(0x14a)]({id:_0x18c115,index:_0x3416cf,state:_0x2e6e02}){const _0x3c6a24=_0xfed7f4,_0x4c7828=this[_0x3c6a24(0x115)](_0x18c115);if(!(_0x4c7828 instanceof _0x4904c6))throw new _0x4b704c(_0x3c6a24(0x146),this,{'id':_0x18c115});_0x4c7828[_0x3c6a24(0x155)](_0x3416cf,_0x2e6e02);}[_0xfed7f4(0x113)](_0x11a044){const _0x2cf011=_0xfed7f4;this[_0x2cf011(0x115)](_0x11a044)[_0x2cf011(0x147)]();}[_0xfed7f4(0x13b)](){const _0x1d039a=_0xfed7f4;return this[_0x1d039a(0x156)][_0x1d039a(0x127)](_0x1f33d0=>_0x1f33d0[_0x1d039a(0x135)]['id']);}[_0xfed7f4(0x124)](_0x14c8aa){const _0x467fe4=_0xfed7f4;this[_0x467fe4(0x156)][_0x467fe4(0x13f)](this[_0x467fe4(0x115)](_0x14c8aa));}[_0xfed7f4(0x130)](_0x37b895,_0x2bb8b7){const _0x5e59c9=_0xfed7f4,_0x18980c=this[_0x5e59c9(0x115)](_0x37b895);if(!(_0x18980c instanceof _0x4904c6))return void _0x534978(_0x5e59c9(0x151),{'replyId':_0x37b895,'partIndex':_0x2bb8b7});const _0x5edfec=_0x18980c[_0x5e59c9(0x10a)](_0x2bb8b7);_0x5edfec?_0x557f03({'target':_0x5edfec[_0x5e59c9(0x153)],'ancestorOffset':0x14,'alignToTop':!0x0,'forceScroll':!0x0}):_0x534978(_0x5e59c9(0x133),{'replyId':_0x37b895,'partIndex':_0x2bb8b7});}[_0xfed7f4(0x12a)](){const _0x3e951d=_0xfed7f4;this[_0x3e951d(0x137)]({'tag':_0x3e951d(0x13d),'attributes':{'class':['ck',_0x3e951d(0x158)]},'children':this[_0x3e951d(0x145)]()});}[_0xfed7f4(0x145)](){const _0x5db69a=_0xfed7f4,_0x58ffd0=this[_0x5db69a(0x114)]();return[this[_0x5db69a(0x13c)](),_0x58ffd0,this[_0x5db69a(0x131)]()];}[_0xfed7f4(0x114)](){const _0x50174e=_0xfed7f4,_0x107cba=new _0x1a5282(this[_0x50174e(0x116)],_0xbc816b[_0x50174e(0x128)]);return _0x107cba[_0x50174e(0x12f)]({'attributes':{'class':[this[_0x50174e(0x148)]['if'](_0x50174e(0x141),_0x50174e(0x134),_0x1647ec=>!_0x1647ec)]}}),_0x107cba;}[_0xfed7f4(0x13c)](){const _0x10c797=_0xfed7f4,_0x26878b=new _0x229f65(this[_0x10c797(0x116)]);return _0x26878b[_0x10c797(0x137)]({'tag':_0x10c797(0x13d),'attributes':{'class':['ck',_0x10c797(0x122),this[_0x10c797(0x148)]['if'](_0x10c797(0x141),_0x10c797(0x134))]},'children':this[_0x10c797(0x156)]}),_0x26878b;}[_0xfed7f4(0x131)](){const _0x2a73bd=_0xfed7f4,_0x39c65e=new _0x229f65(this[_0x2a73bd(0x116)]);return _0x39c65e[_0x2a73bd(0x137)]({'tag':_0x2a73bd(0x13d),'attributes':{'class':['ck',_0x2a73bd(0x11b),this[_0x2a73bd(0x148)]['if'](_0x2a73bd(0x14b),_0x2a73bd(0x134),_0x135048=>!_0x135048)]},'children':this[_0x2a73bd(0x157)]()}),_0x39c65e;}[_0xfed7f4(0x157)](){const _0x3c788c=_0xfed7f4,_0x41c8b0=new _0x19aae9();return _0x41c8b0[_0x3c788c(0x120)]=!0x0,[_0x41c8b0,{'tag':_0x3c788c(0x126),'attributes':{'class':['ck',_0x3c788c(0x132)]},'children':[{'text':this[_0x3c788c(0x148)]['to'](_0x3c788c(0x12d))}]}];}[_0xfed7f4(0x115)](_0x385e7e){const _0x31aff0=_0xfed7f4,_0x5ebfd0=this[_0x31aff0(0x156)][_0x31aff0(0x136)](_0x3615c7=>_0x3615c7[_0x31aff0(0x135)]['id'][_0x31aff0(0x11a)](_0x385e7e));if(!_0x5ebfd0)throw new _0x4b704c(_0x31aff0(0x13a),this,{'id':_0x385e7e});return _0x5ebfd0;}[_0xfed7f4(0x159)](_0x5558c9){const _0x2ac342=_0xfed7f4;this[_0x2ac342(0x111)](_0x2ac342(0x12d),_0x5558c9);}[_0xfed7f4(0x12b)](_0x3bfd3c){const _0x231537=_0xfed7f4;this[_0x231537(0x111)](_0x231537(0x141),_0x3bfd3c);}[_0xfed7f4(0x10f)](){const _0x21d05d=_0xfed7f4;this[_0x21d05d(0x11c)][_0x21d05d(0x123)]();}[_0xfed7f4(0x14c)](){const _0x1e3b5d=_0xfed7f4;this[_0x1e3b5d(0x11c)][_0x1e3b5d(0x119)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x5d81(){const _0x285353=['set','execute','ck-ai-header\x20ck-ai-header_chat','336068QZaEwp','9724131zBfrxT','7wBHKtK','5187606HaLUbL','conversationStartButton','startConversation','resizeButton','_createStartConversationButton','isMaximized','fire','ck-ai-chat__start-conversation','868122cMyWqD','4JQhXKy','7733430YjktVn','602dsGVpc','AI_CHAT_HEADING','27488880qQJfRx','AI_CHAT_LABEL_NEW_CHAT','add','58288adLFeM','locale','children'];_0x5d81=function(){return _0x285353;};return _0x5d81();}const _0x2b0505=_0x2d9b;(function(_0x5a7790,_0x55c703){const _0x257106=_0x2d9b,_0x5b752a=_0x5a7790();while(!![]){try{const _0x36bc55=parseInt(_0x257106(0xd2))/0x1*(-parseInt(_0x257106(0xd0))/0x2)+-parseInt(_0x257106(0xdb))/0x3*(-parseInt(_0x257106(0xdc))/0x4)+parseInt(_0x257106(0xdd))/0x5+-parseInt(_0x257106(0xd3))/0x6+parseInt(_0x257106(0xde))/0x7*(-parseInt(_0x257106(0xe3))/0x8)+-parseInt(_0x257106(0xd1))/0x9+parseInt(_0x257106(0xe0))/0xa;if(_0x36bc55===_0x55c703)break;else _0x5b752a['push'](_0x5b752a['shift']());}catch(_0x27ab93){_0x5b752a['push'](_0x5b752a['shift']());}}}(_0x5d81,0xcc5be));import{ButtonView as _0x3ad259,FormHeaderView as _0x4b92f4}from'ckeditor5/src/ui.js';import{IconPlus as _0x362bf3,IconAIChat as _0x2d2d74}from'ckeditor5/src/icons.js';function _0x2d9b(_0x3b01bb,_0xf2a2ed){const _0x5d81bd=_0x5d81();return _0x2d9b=function(_0x2d9b6b,_0x260966){_0x2d9b6b=_0x2d9b6b-0xcb;let _0x10b8bb=_0x5d81bd[_0x2d9b6b];return _0x10b8bb;},_0x2d9b(_0x3b01bb,_0xf2a2ed);}import{getTranslation as _0x5b8d08}from'../../aicore/utils/common-translations.js';import{createResizeButton as _0x22bce9}from'../../aicore/utils/createresizebutton.js';export class AIChatHeaderView extends _0x4b92f4{[_0x2b0505(0xd4)];[_0x2b0505(0xd6)];constructor(_0xef6a45,_0x596a55){const _0x125eda=_0x2b0505;super(_0xef6a45,{'label':_0x5b8d08(_0xef6a45,_0x125eda(0xdf)),'class':_0x125eda(0xcf),'icon':_0x2d2d74}),this[_0x125eda(0xcd)](_0x125eda(0xd8),!0x1),this[_0x125eda(0xd4)]=this[_0x125eda(0xd7)](_0xef6a45),this[_0x125eda(0xcc)][_0x125eda(0xe2)](this[_0x125eda(0xd4)]),_0x596a55&&(this[_0x125eda(0xd6)]=_0x22bce9(_0xef6a45,this),this[_0x125eda(0xcc)][_0x125eda(0xe2)](this[_0x125eda(0xd6)]));}[_0x2b0505(0xd7)](_0x320993){const _0xc4d795=_0x2b0505,_0x1d6913=new _0x3ad259(_0x320993);return _0x1d6913[_0xc4d795(0xcd)]({'label':_0x5b8d08(this[_0xc4d795(0xcb)],_0xc4d795(0xe1)),'withText':!0x0,'icon':_0x362bf3,'class':_0xc4d795(0xda)}),_0x1d6913['on'](_0xc4d795(0xce),()=>{const _0x41feda=_0xc4d795;this[_0x41feda(0xd9)](_0x41feda(0xd5));}),_0x1d6913;}}
23
+ const _0x4cb143=_0x4108;(function(_0x3fe67f,_0x5d931b){const _0x2fd376=_0x4108,_0x3de81b=_0x3fe67f();while(!![]){try{const _0x484078=-parseInt(_0x2fd376(0x9b))/0x1*(-parseInt(_0x2fd376(0xb2))/0x2)+parseInt(_0x2fd376(0xab))/0x3*(parseInt(_0x2fd376(0xb5))/0x4)+parseInt(_0x2fd376(0x9c))/0x5*(-parseInt(_0x2fd376(0xb1))/0x6)+-parseInt(_0x2fd376(0xa0))/0x7*(parseInt(_0x2fd376(0xaf))/0x8)+-parseInt(_0x2fd376(0xa5))/0x9*(-parseInt(_0x2fd376(0xb0))/0xa)+parseInt(_0x2fd376(0xa4))/0xb*(-parseInt(_0x2fd376(0xa7))/0xc)+-parseInt(_0x2fd376(0xae))/0xd*(parseInt(_0x2fd376(0x9f))/0xe);if(_0x484078===_0x5d931b)break;else _0x3de81b['push'](_0x3de81b['shift']());}catch(_0xa13654){_0x3de81b['push'](_0x3de81b['shift']());}}}(_0x8359,0x9c2b2));function _0x8359(){const _0x522793=['162974NfyNjD','68747catgak','AI_CHAT_LABEL_NEW_CHAT','fire','ck-ai-chat__start-conversation','363fpAsSH','75897apkhjm','locale','218292PVXojI','isMaximized','children','ck-ai-header\x20ck-ai-header_chat','3ZVZlYm','resizeButton','AI_CHAT_HEADING','689ybHyCh','8rnJxTA','570uqACix','1098QKKjMj','54602amLSMk','_createStartConversationButton','conversationStartButton','2710524CzEYGv','set','execute','34EPXSje','6005JEignH','startConversation','add'];_0x8359=function(){return _0x522793;};return _0x8359();}import{ButtonView as _0x52a307,FormHeaderView as _0x1e0bca}from'ckeditor5/src/ui.js';import{IconPlus as _0x469aac,IconAIChat as _0x38c79c}from'ckeditor5/src/icons.js';import{getTranslation as _0x347178}from'../../aicore/utils/common-translations.js';import{createResizeButton as _0x1a29da}from'../../aicore/utils/createresizebutton.js';function _0x4108(_0x188c47,_0x46e309){const _0x835910=_0x8359();return _0x4108=function(_0x410843,_0x1c2fcc){_0x410843=_0x410843-0x99;let _0x300afa=_0x835910[_0x410843];return _0x300afa;},_0x4108(_0x188c47,_0x46e309);}export class AIChatHeaderView extends _0x1e0bca{[_0x4cb143(0xb4)];[_0x4cb143(0xac)];constructor(_0x566c0c,_0x311945){const _0x3d93ce=_0x4cb143;super(_0x566c0c,{'label':_0x347178(_0x566c0c,_0x3d93ce(0xad)),'class':_0x3d93ce(0xaa),'icon':_0x38c79c}),this[_0x3d93ce(0x99)](_0x3d93ce(0xa8),!0x1),this[_0x3d93ce(0xb4)]=this[_0x3d93ce(0xb3)](_0x566c0c),this[_0x3d93ce(0xa9)][_0x3d93ce(0x9e)](this[_0x3d93ce(0xb4)]),_0x311945&&(this[_0x3d93ce(0xac)]=_0x1a29da(_0x566c0c,this),this[_0x3d93ce(0xa9)][_0x3d93ce(0x9e)](this[_0x3d93ce(0xac)]));}[_0x4cb143(0xb3)](_0x15c595){const _0x196fea=_0x4cb143,_0x27ceee=new _0x52a307(_0x15c595);return _0x27ceee[_0x196fea(0x99)]({'label':_0x347178(this[_0x196fea(0xa6)],_0x196fea(0xa1)),'withText':!0x0,'icon':_0x469aac,'class':_0x196fea(0xa3)}),_0x27ceee['on'](_0x196fea(0x9a),()=>{const _0x111353=_0x196fea;this[_0x111353(0xa2)](_0x111353(0x9d));}),_0x27ceee;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x10fe92=_0x5ad2;function _0x1ad8(){var _0x241eef=['ck-reset_all','chatDisclaimer','showResizeButton','closeSourceResourceBalloon','ck-rounded-corners','564vHnNvO','chatFeed','uiLanguageDirection','chatHeader','_bodyCollection','3977918PXWpnY','ck-ai-chat','1390744bRCbhv','delegate','contextResourcesSearchInputVisibleFrom','chatControls','detachFromDom','destroy','setTemplate','1854822HZFwUD','attachToDom','2169234htsxSp','4632516PUonJb','populateSourceResourceBalloon','div','36910ILowro','69725bmDEUI'];_0x1ad8=function(){return _0x241eef;};return _0x1ad8();}function _0x5ad2(_0x3d4439,_0x328b56){var _0x1ad899=_0x1ad8();return _0x5ad2=function(_0x5ad2f4,_0x3caf14){_0x5ad2f4=_0x5ad2f4-0x149;var _0x51c701=_0x1ad899[_0x5ad2f4];return _0x51c701;},_0x5ad2(_0x3d4439,_0x328b56);}(function(_0x2ab372,_0x4332cf){var _0x31bee7=_0x5ad2,_0x33a1e1=_0x2ab372();while(!![]){try{var _0x461103=-parseInt(_0x31bee7(0x153))/0x1+parseInt(_0x31bee7(0x14d))/0x2+-parseInt(_0x31bee7(0x14f))/0x3+-parseInt(_0x31bee7(0x150))/0x4+-parseInt(_0x31bee7(0x154))/0x5*(-parseInt(_0x31bee7(0x15a))/0x6)+parseInt(_0x31bee7(0x15f))/0x7+-parseInt(_0x31bee7(0x161))/0x8;if(_0x461103===_0x4332cf)break;else _0x33a1e1['push'](_0x33a1e1['shift']());}catch(_0x1ff960){_0x33a1e1['push'](_0x33a1e1['shift']());}}}(_0x1ad8,0xae73b));import{View as _0x149280,BodyCollection as _0x5dc5f0}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x308009}from'../utils/eventnames.js';import{AIChatFeedView as _0x2d9aa9}from'./aichatfeedview.js';import{AIChatControlsView as _0x16dc43}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x156803}from'./aichatheaderview.js';import{AIDisclaimerView as _0x1ffcf2}from'../../aicore/ui/aidisclaimerview.js';export class AIChatView extends _0x149280{[_0x10fe92(0x15d)];[_0x10fe92(0x15b)];[_0x10fe92(0x149)];[_0x10fe92(0x156)];[_0x10fe92(0x15e)];constructor(_0x2b0864,_0x3e700b){var _0x8f05b6=_0x10fe92;super(_0x2b0864),this[_0x8f05b6(0x15e)]=new _0x5dc5f0(_0x2b0864),this[_0x8f05b6(0x15e)][_0x8f05b6(0x14e)](),this[_0x8f05b6(0x15d)]=new _0x156803(_0x2b0864,_0x3e700b[_0x8f05b6(0x157)]),this[_0x8f05b6(0x15d)][_0x8f05b6(0x162)](..._0x308009)['to'](this),this[_0x8f05b6(0x15b)]=new _0x2d9aa9(_0x2b0864,this[_0x8f05b6(0x15e)]),this[_0x8f05b6(0x15b)][_0x8f05b6(0x162)](..._0x308009)['to'](this),this[_0x8f05b6(0x149)]=new _0x16dc43(_0x2b0864,{'bodyCollection':this[_0x8f05b6(0x15e)],'contextResourcesSearchInputVisibleFrom':_0x3e700b[_0x8f05b6(0x163)]}),this[_0x8f05b6(0x149)][_0x8f05b6(0x162)](..._0x308009)['to'](this),this[_0x8f05b6(0x156)]=new _0x1ffcf2(_0x2b0864),this[_0x8f05b6(0x14c)]({'tag':_0x8f05b6(0x152),'attributes':{'class':['ck',_0x8f05b6(0x155),_0x8f05b6(0x160),_0x8f05b6(0x159)],'dir':_0x2b0864[_0x8f05b6(0x15c)]},'children':[this[_0x8f05b6(0x15d)],this[_0x8f05b6(0x15b)],this[_0x8f05b6(0x149)],this[_0x8f05b6(0x156)]]});}[_0x10fe92(0x151)](_0x16a38f,_0x473732,_0x421215,_0x28641a){var _0x65ae13=_0x10fe92;this[_0x65ae13(0x149)][_0x65ae13(0x151)](_0x16a38f,_0x473732,_0x421215,_0x28641a);}[_0x10fe92(0x158)](_0x16771a){var _0x12afd7=_0x10fe92;this[_0x12afd7(0x149)][_0x12afd7(0x158)](_0x16771a);}[_0x10fe92(0x14b)](){var _0x2bd4ad=_0x10fe92;this[_0x2bd4ad(0x15e)][_0x2bd4ad(0x14a)](),super[_0x2bd4ad(0x14b)]();}}
23
+ var _0x4aaa48=_0xba50;(function(_0x383d9a,_0x335b57){var _0x5b5962=_0xba50,_0x53def4=_0x383d9a();while(!![]){try{var _0x266a11=parseInt(_0x5b5962(0x128))/0x1+parseInt(_0x5b5962(0x121))/0x2*(-parseInt(_0x5b5962(0x13d))/0x3)+-parseInt(_0x5b5962(0x124))/0x4*(-parseInt(_0x5b5962(0x123))/0x5)+parseInt(_0x5b5962(0x135))/0x6*(parseInt(_0x5b5962(0x13a))/0x7)+-parseInt(_0x5b5962(0x12b))/0x8+parseInt(_0x5b5962(0x12c))/0x9*(parseInt(_0x5b5962(0x12a))/0xa)+parseInt(_0x5b5962(0x127))/0xb*(-parseInt(_0x5b5962(0x136))/0xc);if(_0x266a11===_0x335b57)break;else _0x53def4['push'](_0x53def4['shift']());}catch(_0x5d97de){_0x53def4['push'](_0x53def4['shift']());}}}(_0x2aa4,0xd36ed));import{View as _0x328c6a,BodyCollection as _0x4a5a60}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x280f85}from'../utils/eventnames.js';function _0x2aa4(){var _0x5914ea=['1968gsCmHo','_bodyCollection','attachToDom','chatDisclaimer','539YqcypR','contextResourcesSearchInputVisibleFrom','uiLanguageDirection','324237leXigS','closeSourceResourceBalloon','ck-rounded-corners','6CSdiSt','detachFromDom','2315hKCAyN','3844lVKSVO','delegate','ck-ai-chat','48301nktsow','1062623IHdArl','destroy','70UuodZt','10781384zWDvrO','350334CWSTar','setTemplate','chatHeader','populateSourceResourceBalloon','div','showResizeButton','chatControls','ck-reset_all','chatFeed','115170rUOUcz'];_0x2aa4=function(){return _0x5914ea;};return _0x2aa4();}import{AIChatFeedView as _0x36a3fb}from'./aichatfeedview.js';import{AIChatControlsView as _0xdebddf}from'./aichatcontrolsview.js';function _0xba50(_0x908b5c,_0x489609){var _0x2aa4b6=_0x2aa4();return _0xba50=function(_0xba508f,_0x3f25a4){_0xba508f=_0xba508f-0x120;var _0x2005a9=_0x2aa4b6[_0xba508f];return _0x2005a9;},_0xba50(_0x908b5c,_0x489609);}import{AIChatHeaderView as _0x337c3b}from'./aichatheaderview.js';import{AIDisclaimerView as _0x331f99}from'../../aicore/ui/aidisclaimerview.js';export class AIChatView extends _0x328c6a{[_0x4aaa48(0x12e)];[_0x4aaa48(0x134)];[_0x4aaa48(0x132)];[_0x4aaa48(0x139)];[_0x4aaa48(0x137)];constructor(_0x39b66e,_0x4ac255){var _0x4b7638=_0x4aaa48;super(_0x39b66e),this[_0x4b7638(0x137)]=new _0x4a5a60(_0x39b66e),this[_0x4b7638(0x137)][_0x4b7638(0x138)](),this[_0x4b7638(0x12e)]=new _0x337c3b(_0x39b66e,_0x4ac255[_0x4b7638(0x131)]),this[_0x4b7638(0x12e)][_0x4b7638(0x125)](..._0x280f85)['to'](this),this[_0x4b7638(0x134)]=new _0x36a3fb(_0x39b66e,this[_0x4b7638(0x137)]),this[_0x4b7638(0x134)][_0x4b7638(0x125)](..._0x280f85)['to'](this),this[_0x4b7638(0x132)]=new _0xdebddf(_0x39b66e,{'bodyCollection':this[_0x4b7638(0x137)],'contextResourcesSearchInputVisibleFrom':_0x4ac255[_0x4b7638(0x13b)]}),this[_0x4b7638(0x132)][_0x4b7638(0x125)](..._0x280f85)['to'](this),this[_0x4b7638(0x139)]=new _0x331f99(_0x39b66e),this[_0x4b7638(0x12d)]({'tag':_0x4b7638(0x130),'attributes':{'class':['ck',_0x4b7638(0x133),_0x4b7638(0x126),_0x4b7638(0x120)],'dir':_0x39b66e[_0x4b7638(0x13c)]},'children':[this[_0x4b7638(0x12e)],this[_0x4b7638(0x134)],this[_0x4b7638(0x132)],this[_0x4b7638(0x139)]]});}[_0x4aaa48(0x12f)](_0x58f49a,_0x4e021e,_0x182653,_0x5a1ae9){var _0x19d45f=_0x4aaa48;this[_0x19d45f(0x132)][_0x19d45f(0x12f)](_0x58f49a,_0x4e021e,_0x182653,_0x5a1ae9);}[_0x4aaa48(0x13e)](_0x9c18e7){var _0x53fc74=_0x4aaa48;this[_0x53fc74(0x132)][_0x53fc74(0x13e)](_0x9c18e7);}[_0x4aaa48(0x129)](){var _0x332d9a=_0x4aaa48;this[_0x332d9a(0x137)][_0x332d9a(0x122)](),super[_0x332d9a(0x129)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1fe309=_0x2b88;function _0xc2be(){const _0x3c771d=['style','position','innerWidth','top','visible\x20!important','abs','disableAnimationOnEnter','controlsButton','length','_distributeChips','className','getBoundingClientRect','setTemplate','clear','301702qhktTo','isOn','_makeAncestorsVisible','render','undefined','absolute','_findTargetContainer','_targetContainer','pop','pointerEvents','auto','_checkAndHandleOverflow','offsetWidth','boxSizing','_pendingCalculation','clientHeight','_updateOverflowUI','right','0px','display','calculationContainer','-9999px','button','body','overflowChips','_ancestorsToRestore','showBalloonPanel','_calculateContainerWidth','observe','documentElement','show','50px','_parentView','zIndex','_visibleChips','some','children','_applyCalculationStyles','height','_overflowChips','_updateShowMoreButtonVisibility','createElement','innerHeight','classList','.ck-ai-chat','_config','forEach','6452160Bojgly','388928evNFGt','textContent','toLowerCase','slice','none','bottom','_createContainerElements','showMoreButton','left','showMoreButtonView','cloneNode','execute','querySelector','disconnect','_intersectionObserver','content','includes','_repinBalloonPanel','innerHTML','pin','_updateBalloonContent','element','opacity','block','tagName','maxVisibleRows','width','1456779DLIjAV','getComputedStyle','appendChild','_locale','300px','30CSDWBC','_createMockButton','_createShowMoreBalloonPanelView','isConnected','_createShowMoreButtonView','hide','_isContainerVisible','_restoreAncestorVisibility','isVisible','1314258COUjpy','_showMoreBalloonPanelView','div','visibility','add','+\x201','276395lyRfto','push','_bodyCollection','destroy','hideBalloonPanel','ck-calculation-container','isIntersecting','_calculateOverflowInContainer','cssClasses','label','reorganizeChips','_renderChipsAndCountRows','showMoreLabelPrefix','clientWidth','_createShowMoreButton','_handleShowMoreButtonClick','rowDetectionTolerance','filter','block\x20!important','_showMoreButtonView','_createCalculationContainer','_setupVisibilityObserver','_applyOverflowResults','border-box','_testButtonFit','extendTemplate','overflowContainer','parentElement','from','_containerElement','hidden','showMoreBalloon','remove','setContainerElement','3537395mTuelm','visible','set'];_0xc2be=function(){return _0x3c771d;};return _0xc2be();}(function(_0x3cc2a5,_0x46d908){const _0x5063b1=_0x2b88,_0x3a0932=_0x3cc2a5();while(!![]){try{const _0x3b8fc9=-parseInt(_0x5063b1(0x1d1))/0x1+-parseInt(_0x5063b1(0x198))/0x2+-parseInt(_0x5063b1(0x18a))/0x3+parseInt(_0x5063b1(0x16f))/0x4+parseInt(_0x5063b1(0x1c0))/0x5+parseInt(_0x5063b1(0x18f))/0x6*(parseInt(_0x5063b1(0x19e))/0x7)+parseInt(_0x5063b1(0x16e))/0x8;if(_0x3b8fc9===_0x46d908)break;else _0x3a0932['push'](_0x3a0932['shift']());}catch(_0x3bf848){_0x3a0932['push'](_0x3a0932['shift']());}}}(_0xc2be,0x58ec8));function _0x2b88(_0x3fa29c,_0x40084b){const _0xc2be60=_0xc2be();return _0x2b88=function(_0x2b88bc,_0x1669ef){_0x2b88bc=_0x2b88bc-0x147;let _0x530e89=_0xc2be60[_0x2b88bc];return _0x530e89;},_0x2b88(_0x3fa29c,_0x40084b);}import{View as _0x133112,BalloonPanelView as _0x28f4ac,ButtonView as _0x203831,clickOutsideHandler as _0xd7381d}from'ckeditor5/src/ui.js';import{Collection as _0x356855}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},an=_0x1fe309(0x18e);export class AIChatChipsOverflowManager{[_0x1fe309(0x18d)];[_0x1fe309(0x16c)];[_0x1fe309(0x161)];[_0x1fe309(0x166)];[_0x1fe309(0x1b1)]=null;[_0x1fe309(0x199)]=null;[_0x1fe309(0x1bb)]=null;[_0x1fe309(0x1a0)];[_0x1fe309(0x15f)]=null;[_0x1fe309(0x17d)]=null;[_0x1fe309(0x14d)]=!0x1;constructor(_0x3cfd76,_0x11d0c7,_0x25afed,_0x5d1241,_0x5b400c){const _0x17dd76=_0x1fe309;this[_0x17dd76(0x18d)]=_0x3cfd76,this[_0x17dd76(0x161)]=_0x11d0c7,this[_0x17dd76(0x16c)]={...hn,..._0x25afed,'cssClasses':{'controlsButton':'','calculationContainer':_0x17dd76(0x1a3),..._0x25afed[_0x17dd76(0x1a6)]}},this[_0x17dd76(0x166)]=new _0x356855(),this[_0x17dd76(0x1a0)]=_0x5d1241,this[_0x17dd76(0x15f)]=_0x5b400c||null;}[_0x1fe309(0x1bf)](_0x1667b1){const _0x76e2e0=_0x1fe309;this[_0x76e2e0(0x17d)]&&(this[_0x76e2e0(0x17d)][_0x76e2e0(0x17c)](),this[_0x76e2e0(0x17d)]=null),this[_0x76e2e0(0x1bb)]=_0x1667b1,this[_0x76e2e0(0x1b3)]();}get[_0x1fe309(0x178)](){const _0x258ec8=_0x1fe309;return this[_0x258ec8(0x1b1)];}get[_0x1fe309(0x157)](){const _0x2c4f85=_0x1fe309;return this[_0x2c4f85(0x166)];}[_0x1fe309(0x1a8)](){requestAnimationFrame(()=>{const _0x4a303d=_0x2b88;this[_0x4a303d(0x14a)]();});}[_0x1fe309(0x159)](){const _0x18b8bc=_0x1fe309;this[_0x18b8bc(0x1b1)]&&this[_0x18b8bc(0x199)]&&(this[_0x18b8bc(0x183)](),this[_0x18b8bc(0x1b1)][_0x18b8bc(0x1d2)]=!0x0,this[_0x18b8bc(0x199)][_0x18b8bc(0x15d)](),this[_0x18b8bc(0x199)][_0x18b8bc(0x182)]({'target':this[_0x18b8bc(0x1b1)][_0x18b8bc(0x184)],'limiter':document[_0x18b8bc(0x17b)](_0x18b8bc(0x16b))}));}[_0x1fe309(0x1a2)](){const _0x53447c=_0x1fe309;this[_0x53447c(0x1b1)]&&this[_0x53447c(0x199)]&&(this[_0x53447c(0x1b1)][_0x53447c(0x1d2)]=!0x1,this[_0x53447c(0x199)][_0x53447c(0x194)]());}[_0x1fe309(0x1d0)](){const _0x2d7608=_0x1fe309;this[_0x2d7608(0x166)][_0x2d7608(0x1d0)](),this[_0x2d7608(0x1a2)](),this[_0x2d7608(0x167)](),this[_0x2d7608(0x1b1)]&&(this[_0x2d7608(0x1b1)][_0x2d7608(0x1a7)]=''),this[_0x2d7608(0x199)]&&this[_0x2d7608(0x199)][_0x2d7608(0x17e)][_0x2d7608(0x1d0)]();}[_0x1fe309(0x1a1)](){const _0xc13d25=_0x1fe309;this[_0xc13d25(0x17d)]&&(this[_0xc13d25(0x17d)][_0xc13d25(0x17c)](),this[_0xc13d25(0x17d)]=null),this[_0xc13d25(0x1b1)]&&(this[_0xc13d25(0x1b1)][_0xc13d25(0x1a1)](),this[_0xc13d25(0x1b1)]=null),this[_0xc13d25(0x199)]&&(this[_0xc13d25(0x199)][_0xc13d25(0x1a1)](),this[_0xc13d25(0x199)]=null);}[_0x1fe309(0x14a)](){const _0x319a7e=_0x1fe309;if(!this[_0x319a7e(0x1bb)])return;if(!this[_0x319a7e(0x195)]())return void(this[_0x319a7e(0x14d)]=!0x0);this[_0x319a7e(0x14d)]=!0x1;const _0x38d2a0=[...this[_0x319a7e(0x161)],...this[_0x319a7e(0x166)]],_0x285f54=this[_0x319a7e(0x1b2)](),_0x2f2a09=this[_0x319a7e(0x1a5)](_0x285f54,_0x38d2a0),_0x1fe51f=_0x285f54[_0x319a7e(0x158)];_0x1fe51f&&this[_0x319a7e(0x196)](_0x1fe51f),_0x285f54[_0x319a7e(0x1be)](),this[_0x319a7e(0x1b4)](_0x38d2a0,_0x2f2a09);}[_0x1fe309(0x1ac)](){const _0x2976ed=_0x1fe309;this[_0x2976ed(0x1b1)]=this[_0x2976ed(0x193)](),this[_0x2976ed(0x199)]=this[_0x2976ed(0x191)](),this[_0x2976ed(0x1b1)][_0x2976ed(0x1d4)](),this[_0x2976ed(0x1bb)][_0x2976ed(0x18c)](this[_0x2976ed(0x1b1)][_0x2976ed(0x184)]),this[_0x2976ed(0x1b1)]['on'](_0x2976ed(0x17a),()=>{const _0xa64267=_0x2976ed;this[_0xa64267(0x1ad)]();}),_0xd7381d({'emitter':this[_0x2976ed(0x199)],'contextElements':[this[_0x2976ed(0x199)][_0x2976ed(0x184)],this[_0x2976ed(0x1b1)][_0x2976ed(0x184)]],'callback':()=>this[_0x2976ed(0x1a2)](),'activator':()=>this[_0x2976ed(0x1b1)][_0x2976ed(0x1d2)]});}[_0x1fe309(0x193)](){const _0x3a54d6=_0x1fe309,_0x199c23=new _0x203831(this[_0x3a54d6(0x18d)]);_0x199c23[_0x3a54d6(0x1c2)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x4a2cf5=[this[_0x3a54d6(0x16c)][_0x3a54d6(0x1a6)][_0x3a54d6(0x176)]];return this[_0x3a54d6(0x16c)][_0x3a54d6(0x1a6)][_0x3a54d6(0x1ca)]&&_0x4a2cf5[_0x3a54d6(0x19f)](this[_0x3a54d6(0x16c)][_0x3a54d6(0x1a6)][_0x3a54d6(0x1ca)]),_0x199c23[_0x3a54d6(0x1b7)]({'attributes':{'class':_0x4a2cf5}}),_0x199c23;}[_0x1fe309(0x191)](){const _0x56c6d9=_0x1fe309,_0x4d1926=new _0x28f4ac(this[_0x56c6d9(0x18d)]);return _0x4d1926[_0x56c6d9(0x1b7)]({'attributes':{'class':this[_0x56c6d9(0x16c)][_0x56c6d9(0x1a6)][_0x56c6d9(0x1bd)]}}),this[_0x56c6d9(0x1a0)][_0x56c6d9(0x19c)](_0x4d1926),_0x4d1926;}[_0x1fe309(0x183)](){const _0x59c0e1=_0x1fe309;if(this[_0x59c0e1(0x199)]&&(this[_0x59c0e1(0x199)][_0x59c0e1(0x17e)][_0x59c0e1(0x1d0)](),this[_0x59c0e1(0x166)][_0x59c0e1(0x1cb)]>0x0)){this[_0x59c0e1(0x166)][_0x59c0e1(0x16d)](_0x3a4be0=>{const _0x4ac067=_0x59c0e1;_0x3a4be0[_0x4ac067(0x1c9)]();});const _0x529018=new _0x133112(this[_0x59c0e1(0x18d)]);_0x529018[_0x59c0e1(0x1cf)]({'tag':_0x59c0e1(0x19a),'attributes':{'class':this[_0x59c0e1(0x16c)][_0x59c0e1(0x1a6)][_0x59c0e1(0x1b8)]},'children':this[_0x59c0e1(0x166)]}),this[_0x59c0e1(0x199)][_0x59c0e1(0x17e)][_0x59c0e1(0x19c)](_0x529018);}}[_0x1fe309(0x1ad)](){const _0x124b7e=_0x1fe309;this[_0x124b7e(0x1b1)][_0x124b7e(0x1d2)]?this[_0x124b7e(0x1a2)]():this[_0x124b7e(0x159)]();}[_0x1fe309(0x167)](){const _0x5a1443=_0x1fe309,_0x4cea8c=this[_0x5a1443(0x166)][_0x5a1443(0x1cb)]>0x0;this[_0x5a1443(0x1b1)]?.[_0x5a1443(0x184)]&&(this[_0x5a1443(0x1b1)][_0x5a1443(0x184)][_0x5a1443(0x1c3)][_0x5a1443(0x152)]=_0x4cea8c?'':_0x5a1443(0x173));}[_0x1fe309(0x180)](){const _0x49b433=_0x1fe309;this[_0x49b433(0x1b1)]?.[_0x49b433(0x1d2)]&&this[_0x49b433(0x199)]?.[_0x49b433(0x197)]&&this[_0x49b433(0x1b1)][_0x49b433(0x184)]&&this[_0x49b433(0x199)][_0x49b433(0x182)]({'target':this[_0x49b433(0x1b1)][_0x49b433(0x184)],'limiter':document[_0x49b433(0x17b)](_0x49b433(0x16b))});}[_0x1fe309(0x1d7)](_0x181cb8){const _0x3fc868=_0x1fe309,_0x3be748=this[_0x3fc868(0x1bb)]?.[_0x3fc868(0x187)][_0x3fc868(0x171)]()||_0x3fc868(0x19a),_0x5e19e9=this[_0x3fc868(0x1bb)]?.[_0x3fc868(0x16a)];if(_0x5e19e9){const _0x4c809b=_0x5e19e9[0x0]||'',_0x3a4adc=_0x181cb8[_0x3fc868(0x17b)]('.'+_0x4c809b),_0x1f3861=_0x181cb8[_0x3fc868(0x17b)](_0x3be748);return _0x3a4adc||_0x1f3861||_0x181cb8;}return _0x181cb8[_0x3fc868(0x17b)](_0x3be748)||_0x181cb8;}[_0x1fe309(0x15a)](){const _0x12965c=_0x1fe309,_0x2e7b13=this[_0x12965c(0x15f)]?.[_0x12965c(0x184)]||this[_0x12965c(0x1bb)];if(!_0x2e7b13)return an;const _0x408e2f=window[_0x12965c(0x18b)](_0x2e7b13)[_0x12965c(0x189)];if(_0x12965c(0x149)===_0x408e2f||_0x12965c(0x151)===_0x408e2f||!_0x408e2f){const _0x1d9ebb=_0x2e7b13[_0x12965c(0x1b9)];if(_0x1d9ebb){const _0x5195e4=window[_0x12965c(0x18b)](_0x1d9ebb);return _0x12965c(0x149)!==_0x5195e4[_0x12965c(0x189)]?_0x5195e4[_0x12965c(0x189)]:an;}return an;}return _0x408e2f;}[_0x1fe309(0x164)](_0x459546,_0x1595cb){const _0x190ee9=_0x1fe309;this[_0x190ee9(0x16c)][_0x190ee9(0x1a6)][_0x190ee9(0x153)]&&_0x459546[_0x190ee9(0x16a)][_0x190ee9(0x19c)](this[_0x190ee9(0x16c)][_0x190ee9(0x1a6)][_0x190ee9(0x153)]),_0x459546[_0x190ee9(0x1c3)][_0x190ee9(0x189)]=_0x1595cb,_0x459546[_0x190ee9(0x1c3)][_0x190ee9(0x1c4)]=_0x190ee9(0x1d6),_0x459546[_0x190ee9(0x1c3)][_0x190ee9(0x1c6)]=_0x190ee9(0x154),_0x459546[_0x190ee9(0x1c3)][_0x190ee9(0x177)]=_0x190ee9(0x154),_0x459546[_0x190ee9(0x1c3)][_0x190ee9(0x185)]='0',_0x459546[_0x190ee9(0x1c3)][_0x190ee9(0x148)]=_0x190ee9(0x173),_0x459546[_0x190ee9(0x1c3)][_0x190ee9(0x160)]='-1',_0x459546[_0x190ee9(0x1c3)][_0x190ee9(0x19b)]=_0x190ee9(0x1c7),_0x459546[_0x190ee9(0x1c3)][_0x190ee9(0x152)]=_0x190ee9(0x1b0),_0x459546[_0x190ee9(0x1c3)][_0x190ee9(0x14c)]=_0x190ee9(0x1b5);}[_0x1fe309(0x196)](_0x24e582){const _0x30f81d=_0x1fe309;_0x24e582[_0x30f81d(0x16d)](({element:_0xdad840,originalDisplay:_0x16f555,originalVisibility:_0x3f712a})=>{const _0x23a93b=_0x30f81d;_0xdad840[_0x23a93b(0x1c3)][_0x23a93b(0x152)]=_0x16f555,_0xdad840[_0x23a93b(0x1c3)][_0x23a93b(0x19b)]=_0x3f712a;});}[_0x1fe309(0x1d3)](_0x1a45ca){const _0x2fac31=_0x1fe309,_0x5b0814=[];let _0x36dfb0=_0x1a45ca;for(;_0x36dfb0&&_0x36dfb0!==document[_0x2fac31(0x156)];){const _0x2f5d3c=window[_0x2fac31(0x18b)](_0x36dfb0);_0x2fac31(0x173)!==_0x2f5d3c[_0x2fac31(0x152)]&&_0x2fac31(0x1bc)!==_0x2f5d3c[_0x2fac31(0x19b)]||(_0x5b0814[_0x2fac31(0x19f)]({'element':_0x36dfb0,'originalDisplay':_0x36dfb0[_0x2fac31(0x1c3)][_0x2fac31(0x152)],'originalVisibility':_0x36dfb0[_0x2fac31(0x1c3)][_0x2fac31(0x19b)]}),_0x36dfb0[_0x2fac31(0x1c3)][_0x2fac31(0x152)]=_0x2fac31(0x186),_0x36dfb0[_0x2fac31(0x1c3)][_0x2fac31(0x19b)]=_0x2fac31(0x1c1)),_0x36dfb0=_0x36dfb0[_0x2fac31(0x1b9)];}return _0x5b0814;}[_0x1fe309(0x175)](){const _0x398071=_0x1fe309;let _0x49e9e0,_0x44da10;return this[_0x398071(0x15f)]?.[_0x398071(0x184)]?(_0x49e9e0=this[_0x398071(0x15f)][_0x398071(0x184)][_0x398071(0x179)](!0x0),_0x44da10=this[_0x398071(0x1d7)](_0x49e9e0)):(_0x49e9e0=document[_0x398071(0x168)](_0x398071(0x19a)),_0x44da10=_0x49e9e0),{'calculationContainer':_0x49e9e0,'targetContainer':_0x44da10};}[_0x1fe309(0x1b2)](){const _0x24b033=_0x1fe309,{calculationContainer:_0x1075cb,targetContainer:_0x1bbff0}=this[_0x24b033(0x175)](),_0x27f5e6=this[_0x24b033(0x15a)]();this[_0x24b033(0x164)](_0x1075cb,_0x27f5e6);const _0x4071a=this[_0x24b033(0x15f)]?.[_0x24b033(0x184)]||this[_0x24b033(0x1bb)],_0x4c513c=_0x4071a?.[_0x24b033(0x1b9)];_0x4c513c?_0x4c513c[_0x24b033(0x18c)](_0x1075cb):document[_0x24b033(0x156)][_0x24b033(0x18c)](_0x1075cb),_0x1075cb[_0x24b033(0x1d8)]=_0x1bbff0;const _0x4c4b08=this[_0x24b033(0x1d3)](_0x4c513c||null);return _0x1075cb[_0x24b033(0x14b)],_0x1075cb[_0x24b033(0x158)]=_0x4c4b08,_0x1075cb;}[_0x1fe309(0x1a5)](_0x25bee5,_0x12e6d5){const _0x35ef20=_0x1fe309,_0xa421b1=_0x25bee5[_0x35ef20(0x1d8)]||_0x25bee5,_0x241992=[],{rowCount:_0x35b500}=this[_0x35ef20(0x1a9)](_0xa421b1,_0x12e6d5);if(_0x35b500<=this[_0x35ef20(0x16c)][_0x35ef20(0x188)])return _0x241992;const _0xb0439b=_0x12e6d5[_0x35ef20(0x172)]();for(;_0xb0439b[_0x35ef20(0x1cb)]>0x0;){if(this[_0x35ef20(0x1b6)](_0x25bee5,_0xa421b1,_0xb0439b)){const _0x3eb7f5=_0x12e6d5[_0x35ef20(0x1af)](_0x3d8d2d=>!_0xb0439b[_0x35ef20(0x17f)](_0x3d8d2d));_0x241992[_0x35ef20(0x19f)](..._0x3eb7f5);break;}if(!_0xb0439b[_0x35ef20(0x147)]())break;}return _0x241992;}[_0x1fe309(0x1a9)](_0x38a10e,_0x19332c){const _0x4e551a=_0x1fe309;_0x38a10e[_0x4e551a(0x181)]='',_0x19332c[_0x4e551a(0x16d)](_0x2ff802=>{const _0x3eac40=_0x4e551a;if(_0x2ff802[_0x3eac40(0x184)]){const _0x502e6a=_0x2ff802[_0x3eac40(0x184)][_0x3eac40(0x179)](!0x0);_0x38a10e[_0x3eac40(0x18c)](_0x502e6a);}}),_0x38a10e[_0x4e551a(0x14b)];const _0x26e780=_0x38a10e[_0x4e551a(0x163)],_0x1ea17a=[];return Array[_0x4e551a(0x1ba)](_0x26e780)[_0x4e551a(0x16d)](_0x68b032=>{const _0x3d0711=_0x4e551a,_0x5e3797=_0x68b032[_0x3d0711(0x1ce)]()[_0x3d0711(0x1c6)];_0x1ea17a[_0x3d0711(0x162)](_0xa2f88f=>Math[_0x3d0711(0x1c8)](_0xa2f88f-_0x5e3797)<this[_0x3d0711(0x16c)][_0x3d0711(0x1ae)])||_0x1ea17a[_0x3d0711(0x19f)](_0x5e3797);}),{'rowCount':_0x1ea17a[_0x4e551a(0x1cb)]};}[_0x1fe309(0x190)](){const _0x2b4197=_0x1fe309,_0x4a6ed0=document[_0x2b4197(0x168)](_0x2b4197(0x155));return _0x4a6ed0[_0x2b4197(0x1cd)]=this[_0x2b4197(0x16c)][_0x2b4197(0x1a6)][_0x2b4197(0x176)],this[_0x2b4197(0x16c)][_0x2b4197(0x1a6)][_0x2b4197(0x1ca)]&&_0x4a6ed0[_0x2b4197(0x16a)][_0x2b4197(0x19c)](this[_0x2b4197(0x16c)][_0x2b4197(0x1a6)][_0x2b4197(0x1ca)]),_0x4a6ed0[_0x2b4197(0x170)]=_0x2b4197(0x19d),_0x4a6ed0;}[_0x1fe309(0x1b6)](_0x291219,_0x4b253c,_0xe4de6d){const _0x1e8553=_0x1fe309;this[_0x1e8553(0x1a9)](_0x4b253c,_0xe4de6d);const _0x723e26=this[_0x1e8553(0x190)]();_0x291219[_0x1e8553(0x18c)](_0x723e26),_0x291219[_0x1e8553(0x14b)];const _0x136b9e=[..._0x4b253c[_0x1e8553(0x163)],_0x723e26],_0x10f406=[];_0x136b9e[_0x1e8553(0x16d)](_0x4f781c=>{const _0x464b23=_0x1e8553,_0x48ddb4=_0x4f781c[_0x464b23(0x1ce)]()[_0x464b23(0x1c6)];_0x10f406[_0x464b23(0x162)](_0x10a602=>Math[_0x464b23(0x1c8)](_0x10a602-_0x48ddb4)<this[_0x464b23(0x16c)][_0x464b23(0x1ae)])||_0x10f406[_0x464b23(0x19f)](_0x48ddb4);});const _0x2bfa85=_0x10f406[_0x1e8553(0x1cb)];return _0x723e26[_0x1e8553(0x1be)](),_0x2bfa85<=this[_0x1e8553(0x16c)][_0x1e8553(0x188)];}[_0x1fe309(0x1cc)](_0x55b607,_0x1914e6){const _0x414af3=_0x1fe309;this[_0x414af3(0x161)][_0x414af3(0x1d0)](),this[_0x414af3(0x166)][_0x414af3(0x1d0)](),_0x55b607[_0x414af3(0x16d)](_0x11cb62=>{const _0x385d6d=_0x414af3;_0x1914e6[_0x385d6d(0x17f)](_0x11cb62)?this[_0x385d6d(0x166)][_0x385d6d(0x19c)](_0x11cb62):this[_0x385d6d(0x161)][_0x385d6d(0x19c)](_0x11cb62);});}[_0x1fe309(0x14f)](_0x382546){const _0x3499cc=_0x1fe309;if(_0x382546>0x0&&!this[_0x3499cc(0x1b1)]&&this[_0x3499cc(0x1ac)](),_0x382546>0x0&&this[_0x3499cc(0x1b1)]){const _0x5e76db=''+this[_0x3499cc(0x16c)][_0x3499cc(0x1aa)]+(_0x382546<0x63?_0x382546:'99');this[_0x3499cc(0x1b1)][_0x3499cc(0x1a7)]=_0x5e76db;}this[_0x3499cc(0x183)](),this[_0x3499cc(0x167)](),this[_0x3499cc(0x180)]();}[_0x1fe309(0x1b4)](_0xd359d0,_0x4f5aeb){const _0x3b84d7=_0x1fe309;this[_0x3b84d7(0x1cc)](_0xd359d0,_0x4f5aeb),this[_0x3b84d7(0x14f)](_0x4f5aeb[_0x3b84d7(0x1cb)]);}[_0x1fe309(0x1b3)](){const _0x58b508=_0x1fe309;this[_0x58b508(0x1bb)]&&_0x58b508(0x1d5)!=typeof IntersectionObserver&&(this[_0x58b508(0x17d)]=new IntersectionObserver(_0x557562=>{const _0x2e0d3a=_0x58b508;_0x557562[0x0][_0x2e0d3a(0x1a4)]&&this[_0x2e0d3a(0x14d)]&&requestAnimationFrame(()=>{const _0x44f814=_0x2e0d3a;this[_0x44f814(0x14a)]();});},{'threshold':0.01,'rootMargin':_0x58b508(0x15e)}),this[_0x58b508(0x17d)][_0x58b508(0x15b)](this[_0x58b508(0x1bb)]));}[_0x1fe309(0x195)](){const _0x2b3aba=_0x1fe309;if(!this[_0x2b3aba(0x1bb)])return!0x1;if(!this[_0x2b3aba(0x1bb)][_0x2b3aba(0x192)])return!0x1;const _0x4c65c5=this[_0x2b3aba(0x1bb)][_0x2b3aba(0x1ce)]();if(0x0===_0x4c65c5[_0x2b3aba(0x189)]||0x0===_0x4c65c5[_0x2b3aba(0x165)])return!0x1;const _0x439cca=window[_0x2b3aba(0x169)]||document[_0x2b3aba(0x15c)][_0x2b3aba(0x14e)],_0x566b38=window[_0x2b3aba(0x1c5)]||document[_0x2b3aba(0x15c)][_0x2b3aba(0x1ab)],_0x16e8fa=0xc8;return _0x4c65c5[_0x2b3aba(0x174)]>=-0xc8&&_0x4c65c5[_0x2b3aba(0x1c6)]<=_0x439cca+_0x16e8fa&&_0x4c65c5[_0x2b3aba(0x150)]>=-0xc8&&_0x4c65c5[_0x2b3aba(0x177)]<=_0x566b38+_0x16e8fa;}}
23
+ function _0x5d4c(_0x1f53a4,_0x1a43af){const _0xd0a18=_0xd0a1();return _0x5d4c=function(_0x5d4cd1,_0x408fde){_0x5d4cd1=_0x5d4cd1-0x6d;let _0x29bbff=_0xd0a18[_0x5d4cd1];return _0x29bbff;},_0x5d4c(_0x1f53a4,_0x1a43af);}function _0xd0a1(){const _0x355d76=['right','_pendingCalculation','.ck-ai-chat','_calculateOverflowInContainer','add','push','extendTemplate','410tcUiVU','visibility','-9999px','showBalloonPanel','set','toLowerCase','showMoreBalloon','innerHTML','_distributeChips','pin','_updateBalloonContent','tagName','controlsButton','_restoreAncestorVisibility','_createContainerElements','_repinBalloonPanel','left','innerWidth','position','showMoreButtonView','0px','visible','_intersectionObserver','appendChild','+\x201','ck-calculation-container','clientHeight','className','remove','hidden','style','classList','execute','render','_updateShowMoreButtonVisibility','createElement','element','_config','_applyOverflowResults','slice','top','maxVisibleRows','10332xMRccA','boxSizing','block\x20!important','disableAnimationOnEnter','display','300px','_updateOverflowUI','510972MAyQDb','offsetWidth','pointerEvents','children','innerHeight','getBoundingClientRect','_createMockButton','_createCalculationContainer','_isContainerVisible','showMoreButton','border-box','27126tukNin','rowDetectionTolerance','setTemplate','opacity','9tfyjpT','_overflowChips','forEach','_setupVisibilityObserver','_makeAncestorsVisible','undefined','669570ZuKPKQ','show','auto','abs','_bodyCollection','documentElement','_createShowMoreButton','_showMoreButtonView','getComputedStyle','disconnect','from','destroy','_containerElement','parentElement','pop','label','showMoreLabelPrefix','overflowChips','height','_handleShowMoreButtonClick','_locale','width','isIntersecting','_createShowMoreButtonView','_applyCalculationStyles','cssClasses','isConnected','_targetContainer','absolute','_createShowMoreBalloonPanelView','_testButtonFit','258360LdYXDY','visible\x20!important','observe','357105dmRGls','textContent','_renderChipsAndCountRows','_findTargetContainer','length','includes','50px','_ancestorsToRestore','_calculateContainerWidth','bottom','_checkAndHandleOverflow','reorganizeChips','isVisible','querySelector','content','_visibleChips','clientWidth','_showMoreBalloonPanelView','440XDlxdl','setContainerElement','zIndex','clear','overflowContainer','block','div','some','10739490pNZuOM','button','calculationContainer','hide','none','filter','hideBalloonPanel','cloneNode','body','_parentView','isOn'];_0xd0a1=function(){return _0x355d76;};return _0xd0a1();}const _0x7ab8d3=_0x5d4c;(function(_0x55a619,_0x38f65c){const _0x2b8dc7=_0x5d4c,_0x11b4f8=_0x55a619();while(!![]){try{const _0x2f0cad=parseInt(_0x2b8dc7(0xbb))/0x1+-parseInt(_0x2b8dc7(0x84))/0x2+-parseInt(_0x2b8dc7(0x99))/0x3+-parseInt(_0x2b8dc7(0xb8))/0x4+parseInt(_0x2b8dc7(0xe7))/0x5*(-parseInt(_0x2b8dc7(0x8f))/0x6)+-parseInt(_0x2b8dc7(0x7d))/0x7*(parseInt(_0x2b8dc7(0xcd))/0x8)+-parseInt(_0x2b8dc7(0x93))/0x9*(-parseInt(_0x2b8dc7(0xd5))/0xa);if(_0x2f0cad===_0x38f65c)break;else _0x11b4f8['push'](_0x11b4f8['shift']());}catch(_0x1ff184){_0x11b4f8['push'](_0x11b4f8['shift']());}}}(_0xd0a1,0x6a6ae));import{View as _0x200635,BalloonPanelView as _0x3c2665,ButtonView as _0x444bb3,clickOutsideHandler as _0x2015bf}from'ckeditor5/src/ui.js';import{Collection as _0x2926e3}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},an=_0x7ab8d3(0x82);export class AIChatChipsOverflowManager{[_0x7ab8d3(0xad)];[_0x7ab8d3(0x78)];[_0x7ab8d3(0xca)];[_0x7ab8d3(0x94)];[_0x7ab8d3(0xa0)]=null;[_0x7ab8d3(0xcc)]=null;[_0x7ab8d3(0xa5)]=null;[_0x7ab8d3(0x9d)];[_0x7ab8d3(0xde)]=null;[_0x7ab8d3(0xfd)]=null;[_0x7ab8d3(0xe1)]=!0x1;constructor(_0x41f611,_0x364fc0,_0x200412,_0x551f15,_0x1feb6a){const _0x3c0839=_0x7ab8d3;this[_0x3c0839(0xad)]=_0x41f611,this[_0x3c0839(0xca)]=_0x364fc0,this[_0x3c0839(0x78)]={...hn,..._0x200412,'cssClasses':{'controlsButton':'','calculationContainer':_0x3c0839(0x100),..._0x200412[_0x3c0839(0xb2)]}},this[_0x3c0839(0x94)]=new _0x2926e3(),this[_0x3c0839(0x9d)]=_0x551f15,this[_0x3c0839(0xde)]=_0x1feb6a||null;}[_0x7ab8d3(0xce)](_0x1ccd4b){const _0x52138b=_0x7ab8d3;this[_0x52138b(0xfd)]&&(this[_0x52138b(0xfd)][_0x52138b(0xa2)](),this[_0x52138b(0xfd)]=null),this[_0x52138b(0xa5)]=_0x1ccd4b,this[_0x52138b(0x96)]();}get[_0x7ab8d3(0xfa)](){const _0x6e444d=_0x7ab8d3;return this[_0x6e444d(0xa0)];}get[_0x7ab8d3(0xaa)](){const _0x41c240=_0x7ab8d3;return this[_0x41c240(0x94)];}[_0x7ab8d3(0xc6)](){requestAnimationFrame(()=>{const _0x1b3999=_0x5d4c;this[_0x1b3999(0xc5)]();});}[_0x7ab8d3(0xea)](){const _0x343f50=_0x7ab8d3;this[_0x343f50(0xa0)]&&this[_0x343f50(0xcc)]&&(this[_0x343f50(0xf1)](),this[_0x343f50(0xa0)][_0x343f50(0xdf)]=!0x0,this[_0x343f50(0xcc)][_0x343f50(0x9a)](),this[_0x343f50(0xcc)][_0x343f50(0xf0)]({'target':this[_0x343f50(0xa0)][_0x343f50(0x77)],'limiter':document[_0x343f50(0xc8)](_0x343f50(0xe2))}));}[_0x7ab8d3(0xdb)](){const _0xcfbfc=_0x7ab8d3;this[_0xcfbfc(0xa0)]&&this[_0xcfbfc(0xcc)]&&(this[_0xcfbfc(0xa0)][_0xcfbfc(0xdf)]=!0x1,this[_0xcfbfc(0xcc)][_0xcfbfc(0xd8)]());}[_0x7ab8d3(0xd0)](){const _0x3c8a0a=_0x7ab8d3;this[_0x3c8a0a(0x94)][_0x3c8a0a(0xd0)](),this[_0x3c8a0a(0xdb)](),this[_0x3c8a0a(0x75)](),this[_0x3c8a0a(0xa0)]&&(this[_0x3c8a0a(0xa0)][_0x3c8a0a(0xa8)]=''),this[_0x3c8a0a(0xcc)]&&this[_0x3c8a0a(0xcc)][_0x3c8a0a(0xc9)][_0x3c8a0a(0xd0)]();}[_0x7ab8d3(0xa4)](){const _0x49f5e5=_0x7ab8d3;this[_0x49f5e5(0xfd)]&&(this[_0x49f5e5(0xfd)][_0x49f5e5(0xa2)](),this[_0x49f5e5(0xfd)]=null),this[_0x49f5e5(0xa0)]&&(this[_0x49f5e5(0xa0)][_0x49f5e5(0xa4)](),this[_0x49f5e5(0xa0)]=null),this[_0x49f5e5(0xcc)]&&(this[_0x49f5e5(0xcc)][_0x49f5e5(0xa4)](),this[_0x49f5e5(0xcc)]=null);}[_0x7ab8d3(0xc5)](){const _0x395c4b=_0x7ab8d3;if(!this[_0x395c4b(0xa5)])return;if(!this[_0x395c4b(0x8c)]())return void(this[_0x395c4b(0xe1)]=!0x0);this[_0x395c4b(0xe1)]=!0x1;const _0x577c67=[...this[_0x395c4b(0xca)],...this[_0x395c4b(0x94)]],_0x25f249=this[_0x395c4b(0x8b)](),_0x254589=this[_0x395c4b(0xe3)](_0x25f249,_0x577c67),_0x4cd2c0=_0x25f249[_0x395c4b(0xc2)];_0x4cd2c0&&this[_0x395c4b(0xf4)](_0x4cd2c0),_0x25f249[_0x395c4b(0x6f)](),this[_0x395c4b(0x79)](_0x577c67,_0x254589);}[_0x7ab8d3(0x9f)](){const _0x1b68da=_0x7ab8d3;this[_0x1b68da(0xa0)]=this[_0x1b68da(0xb0)](),this[_0x1b68da(0xcc)]=this[_0x1b68da(0xb6)](),this[_0x1b68da(0xa0)][_0x1b68da(0x74)](),this[_0x1b68da(0xa5)][_0x1b68da(0xfe)](this[_0x1b68da(0xa0)][_0x1b68da(0x77)]),this[_0x1b68da(0xa0)]['on'](_0x1b68da(0x73),()=>{const _0x4d1891=_0x1b68da;this[_0x4d1891(0xac)]();}),_0x2015bf({'emitter':this[_0x1b68da(0xcc)],'contextElements':[this[_0x1b68da(0xcc)][_0x1b68da(0x77)],this[_0x1b68da(0xa0)][_0x1b68da(0x77)]],'callback':()=>this[_0x1b68da(0xdb)](),'activator':()=>this[_0x1b68da(0xa0)][_0x1b68da(0xdf)]});}[_0x7ab8d3(0xb0)](){const _0xf814d3=_0x7ab8d3,_0x3ed1d8=new _0x444bb3(this[_0xf814d3(0xad)]);_0x3ed1d8[_0xf814d3(0xeb)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0xfeadee=[this[_0xf814d3(0x78)][_0xf814d3(0xb2)][_0xf814d3(0x8d)]];return this[_0xf814d3(0x78)][_0xf814d3(0xb2)][_0xf814d3(0xf3)]&&_0xfeadee[_0xf814d3(0xe5)](this[_0xf814d3(0x78)][_0xf814d3(0xb2)][_0xf814d3(0xf3)]),_0x3ed1d8[_0xf814d3(0xe6)]({'attributes':{'class':_0xfeadee}}),_0x3ed1d8;}[_0x7ab8d3(0xb6)](){const _0x1f7531=_0x7ab8d3,_0x3ea9c7=new _0x3c2665(this[_0x1f7531(0xad)]);return _0x3ea9c7[_0x1f7531(0xe6)]({'attributes':{'class':this[_0x1f7531(0x78)][_0x1f7531(0xb2)][_0x1f7531(0xed)]}}),this[_0x1f7531(0x9d)][_0x1f7531(0xe4)](_0x3ea9c7),_0x3ea9c7;}[_0x7ab8d3(0xf1)](){const _0x230a08=_0x7ab8d3;if(this[_0x230a08(0xcc)]&&(this[_0x230a08(0xcc)][_0x230a08(0xc9)][_0x230a08(0xd0)](),this[_0x230a08(0x94)][_0x230a08(0xbf)]>0x0)){this[_0x230a08(0x94)][_0x230a08(0x95)](_0x3ff94b=>{const _0x3c5fab=_0x230a08;_0x3ff94b[_0x3c5fab(0x80)]();});const _0x549cf3=new _0x200635(this[_0x230a08(0xad)]);_0x549cf3[_0x230a08(0x91)]({'tag':_0x230a08(0xd3),'attributes':{'class':this[_0x230a08(0x78)][_0x230a08(0xb2)][_0x230a08(0xd1)]},'children':this[_0x230a08(0x94)]}),this[_0x230a08(0xcc)][_0x230a08(0xc9)][_0x230a08(0xe4)](_0x549cf3);}}[_0x7ab8d3(0xac)](){const _0x353f87=_0x7ab8d3;this[_0x353f87(0xa0)][_0x353f87(0xdf)]?this[_0x353f87(0xdb)]():this[_0x353f87(0xea)]();}[_0x7ab8d3(0x75)](){const _0x1aa622=_0x7ab8d3,_0x48820d=this[_0x1aa622(0x94)][_0x1aa622(0xbf)]>0x0;this[_0x1aa622(0xa0)]?.[_0x1aa622(0x77)]&&(this[_0x1aa622(0xa0)][_0x1aa622(0x77)][_0x1aa622(0x71)][_0x1aa622(0x81)]=_0x48820d?'':_0x1aa622(0xd9));}[_0x7ab8d3(0xf6)](){const _0x40545f=_0x7ab8d3;this[_0x40545f(0xa0)]?.[_0x40545f(0xdf)]&&this[_0x40545f(0xcc)]?.[_0x40545f(0xc7)]&&this[_0x40545f(0xa0)][_0x40545f(0x77)]&&this[_0x40545f(0xcc)][_0x40545f(0xf0)]({'target':this[_0x40545f(0xa0)][_0x40545f(0x77)],'limiter':document[_0x40545f(0xc8)](_0x40545f(0xe2))});}[_0x7ab8d3(0xbe)](_0x168c87){const _0x4eca71=_0x7ab8d3,_0x105957=this[_0x4eca71(0xa5)]?.[_0x4eca71(0xf2)][_0x4eca71(0xec)]()||_0x4eca71(0xd3),_0x363bfc=this[_0x4eca71(0xa5)]?.[_0x4eca71(0x72)];if(_0x363bfc){const _0x344fc6=_0x363bfc[0x0]||'',_0x5e8e55=_0x168c87[_0x4eca71(0xc8)]('.'+_0x344fc6),_0x5ba349=_0x168c87[_0x4eca71(0xc8)](_0x105957);return _0x5e8e55||_0x5ba349||_0x168c87;}return _0x168c87[_0x4eca71(0xc8)](_0x105957)||_0x168c87;}[_0x7ab8d3(0xc3)](){const _0x2e1559=_0x7ab8d3,_0x586164=this[_0x2e1559(0xde)]?.[_0x2e1559(0x77)]||this[_0x2e1559(0xa5)];if(!_0x586164)return an;const _0x419ef2=window[_0x2e1559(0xa1)](_0x586164)[_0x2e1559(0xae)];if(_0x2e1559(0x9b)===_0x419ef2||_0x2e1559(0xfb)===_0x419ef2||!_0x419ef2){const _0x93b9e1=_0x586164[_0x2e1559(0xa6)];if(_0x93b9e1){const _0x395e24=window[_0x2e1559(0xa1)](_0x93b9e1);return _0x2e1559(0x9b)!==_0x395e24[_0x2e1559(0xae)]?_0x395e24[_0x2e1559(0xae)]:an;}return an;}return _0x419ef2;}[_0x7ab8d3(0xb1)](_0x332a11,_0x514c4a){const _0x54413f=_0x7ab8d3;this[_0x54413f(0x78)][_0x54413f(0xb2)][_0x54413f(0xd7)]&&_0x332a11[_0x54413f(0x72)][_0x54413f(0xe4)](this[_0x54413f(0x78)][_0x54413f(0xb2)][_0x54413f(0xd7)]),_0x332a11[_0x54413f(0x71)][_0x54413f(0xae)]=_0x514c4a,_0x332a11[_0x54413f(0x71)][_0x54413f(0xf9)]=_0x54413f(0xb5),_0x332a11[_0x54413f(0x71)][_0x54413f(0x7b)]=_0x54413f(0xe9),_0x332a11[_0x54413f(0x71)][_0x54413f(0xf7)]=_0x54413f(0xe9),_0x332a11[_0x54413f(0x71)][_0x54413f(0x92)]='0',_0x332a11[_0x54413f(0x71)][_0x54413f(0x86)]=_0x54413f(0xd9),_0x332a11[_0x54413f(0x71)][_0x54413f(0xcf)]='-1',_0x332a11[_0x54413f(0x71)][_0x54413f(0xe8)]=_0x54413f(0xb9),_0x332a11[_0x54413f(0x71)][_0x54413f(0x81)]=_0x54413f(0x7f),_0x332a11[_0x54413f(0x71)][_0x54413f(0x7e)]=_0x54413f(0x8e);}[_0x7ab8d3(0xf4)](_0x339c62){const _0x85ef8b=_0x7ab8d3;_0x339c62[_0x85ef8b(0x95)](({element:_0x4c8e0a,originalDisplay:_0xb394b7,originalVisibility:_0x53005a})=>{const _0x56a0c4=_0x85ef8b;_0x4c8e0a[_0x56a0c4(0x71)][_0x56a0c4(0x81)]=_0xb394b7,_0x4c8e0a[_0x56a0c4(0x71)][_0x56a0c4(0xe8)]=_0x53005a;});}[_0x7ab8d3(0x97)](_0x2cd50e){const _0xe1f1a7=_0x7ab8d3,_0x377279=[];let _0x2dea24=_0x2cd50e;for(;_0x2dea24&&_0x2dea24!==document[_0xe1f1a7(0xdd)];){const _0x5103a0=window[_0xe1f1a7(0xa1)](_0x2dea24);_0xe1f1a7(0xd9)!==_0x5103a0[_0xe1f1a7(0x81)]&&_0xe1f1a7(0x70)!==_0x5103a0[_0xe1f1a7(0xe8)]||(_0x377279[_0xe1f1a7(0xe5)]({'element':_0x2dea24,'originalDisplay':_0x2dea24[_0xe1f1a7(0x71)][_0xe1f1a7(0x81)],'originalVisibility':_0x2dea24[_0xe1f1a7(0x71)][_0xe1f1a7(0xe8)]}),_0x2dea24[_0xe1f1a7(0x71)][_0xe1f1a7(0x81)]=_0xe1f1a7(0xd2),_0x2dea24[_0xe1f1a7(0x71)][_0xe1f1a7(0xe8)]=_0xe1f1a7(0xfc)),_0x2dea24=_0x2dea24[_0xe1f1a7(0xa6)];}return _0x377279;}[_0x7ab8d3(0xf5)](){const _0xdc1eec=_0x7ab8d3;let _0x53440e,_0x887e22;return this[_0xdc1eec(0xde)]?.[_0xdc1eec(0x77)]?(_0x53440e=this[_0xdc1eec(0xde)][_0xdc1eec(0x77)][_0xdc1eec(0xdc)](!0x0),_0x887e22=this[_0xdc1eec(0xbe)](_0x53440e)):(_0x53440e=document[_0xdc1eec(0x76)](_0xdc1eec(0xd3)),_0x887e22=_0x53440e),{'calculationContainer':_0x53440e,'targetContainer':_0x887e22};}[_0x7ab8d3(0x8b)](){const _0x361ecc=_0x7ab8d3,{calculationContainer:_0x104506,targetContainer:_0x127e78}=this[_0x361ecc(0xf5)](),_0x265ad9=this[_0x361ecc(0xc3)]();this[_0x361ecc(0xb1)](_0x104506,_0x265ad9);const _0x5680b2=this[_0x361ecc(0xde)]?.[_0x361ecc(0x77)]||this[_0x361ecc(0xa5)],_0x43a603=_0x5680b2?.[_0x361ecc(0xa6)];_0x43a603?_0x43a603[_0x361ecc(0xfe)](_0x104506):document[_0x361ecc(0xdd)][_0x361ecc(0xfe)](_0x104506),_0x104506[_0x361ecc(0xb4)]=_0x127e78;const _0x5e80e1=this[_0x361ecc(0x97)](_0x43a603||null);return _0x104506[_0x361ecc(0x85)],_0x104506[_0x361ecc(0xc2)]=_0x5e80e1,_0x104506;}[_0x7ab8d3(0xe3)](_0x2cf987,_0x595877){const _0x528e46=_0x7ab8d3,_0x4eb0bb=_0x2cf987[_0x528e46(0xb4)]||_0x2cf987,_0x2d66d9=[],{rowCount:_0x2ab766}=this[_0x528e46(0xbd)](_0x4eb0bb,_0x595877);if(_0x2ab766<=this[_0x528e46(0x78)][_0x528e46(0x7c)])return _0x2d66d9;const _0x4ee80a=_0x595877[_0x528e46(0x7a)]();for(;_0x4ee80a[_0x528e46(0xbf)]>0x0;){if(this[_0x528e46(0xb7)](_0x2cf987,_0x4eb0bb,_0x4ee80a)){const _0xcf5d66=_0x595877[_0x528e46(0xda)](_0x567912=>!_0x4ee80a[_0x528e46(0xc0)](_0x567912));_0x2d66d9[_0x528e46(0xe5)](..._0xcf5d66);break;}if(!_0x4ee80a[_0x528e46(0xa7)]())break;}return _0x2d66d9;}[_0x7ab8d3(0xbd)](_0x335f9d,_0x341c66){const _0x5d1517=_0x7ab8d3;_0x335f9d[_0x5d1517(0xee)]='',_0x341c66[_0x5d1517(0x95)](_0x5e61b7=>{const _0x269c40=_0x5d1517;if(_0x5e61b7[_0x269c40(0x77)]){const _0x34e7ed=_0x5e61b7[_0x269c40(0x77)][_0x269c40(0xdc)](!0x0);_0x335f9d[_0x269c40(0xfe)](_0x34e7ed);}}),_0x335f9d[_0x5d1517(0x85)];const _0x3934b8=_0x335f9d[_0x5d1517(0x87)],_0x4329f9=[];return Array[_0x5d1517(0xa3)](_0x3934b8)[_0x5d1517(0x95)](_0x186738=>{const _0x1535d4=_0x5d1517,_0xd80604=_0x186738[_0x1535d4(0x89)]()[_0x1535d4(0x7b)];_0x4329f9[_0x1535d4(0xd4)](_0x32c642=>Math[_0x1535d4(0x9c)](_0x32c642-_0xd80604)<this[_0x1535d4(0x78)][_0x1535d4(0x90)])||_0x4329f9[_0x1535d4(0xe5)](_0xd80604);}),{'rowCount':_0x4329f9[_0x5d1517(0xbf)]};}[_0x7ab8d3(0x8a)](){const _0x4dea44=_0x7ab8d3,_0x54164f=document[_0x4dea44(0x76)](_0x4dea44(0xd6));return _0x54164f[_0x4dea44(0x6e)]=this[_0x4dea44(0x78)][_0x4dea44(0xb2)][_0x4dea44(0x8d)],this[_0x4dea44(0x78)][_0x4dea44(0xb2)][_0x4dea44(0xf3)]&&_0x54164f[_0x4dea44(0x72)][_0x4dea44(0xe4)](this[_0x4dea44(0x78)][_0x4dea44(0xb2)][_0x4dea44(0xf3)]),_0x54164f[_0x4dea44(0xbc)]=_0x4dea44(0xff),_0x54164f;}[_0x7ab8d3(0xb7)](_0x1981fe,_0xd8df61,_0x2025b7){const _0x4d2e7d=_0x7ab8d3;this[_0x4d2e7d(0xbd)](_0xd8df61,_0x2025b7);const _0x4584e4=this[_0x4d2e7d(0x8a)]();_0x1981fe[_0x4d2e7d(0xfe)](_0x4584e4),_0x1981fe[_0x4d2e7d(0x85)];const _0x3a2c98=[..._0xd8df61[_0x4d2e7d(0x87)],_0x4584e4],_0x25486b=[];_0x3a2c98[_0x4d2e7d(0x95)](_0x5985d9=>{const _0x416263=_0x4d2e7d,_0xb132b5=_0x5985d9[_0x416263(0x89)]()[_0x416263(0x7b)];_0x25486b[_0x416263(0xd4)](_0x23e4e0=>Math[_0x416263(0x9c)](_0x23e4e0-_0xb132b5)<this[_0x416263(0x78)][_0x416263(0x90)])||_0x25486b[_0x416263(0xe5)](_0xb132b5);});const _0x4f2181=_0x25486b[_0x4d2e7d(0xbf)];return _0x4584e4[_0x4d2e7d(0x6f)](),_0x4f2181<=this[_0x4d2e7d(0x78)][_0x4d2e7d(0x7c)];}[_0x7ab8d3(0xef)](_0x204065,_0x2daed8){const _0x105fed=_0x7ab8d3;this[_0x105fed(0xca)][_0x105fed(0xd0)](),this[_0x105fed(0x94)][_0x105fed(0xd0)](),_0x204065[_0x105fed(0x95)](_0xe05d2=>{const _0x8d515=_0x105fed;_0x2daed8[_0x8d515(0xc0)](_0xe05d2)?this[_0x8d515(0x94)][_0x8d515(0xe4)](_0xe05d2):this[_0x8d515(0xca)][_0x8d515(0xe4)](_0xe05d2);});}[_0x7ab8d3(0x83)](_0x4f7940){const _0x48ef99=_0x7ab8d3;if(_0x4f7940>0x0&&!this[_0x48ef99(0xa0)]&&this[_0x48ef99(0x9f)](),_0x4f7940>0x0&&this[_0x48ef99(0xa0)]){const _0xd500d=''+this[_0x48ef99(0x78)][_0x48ef99(0xa9)]+(_0x4f7940<0x63?_0x4f7940:'99');this[_0x48ef99(0xa0)][_0x48ef99(0xa8)]=_0xd500d;}this[_0x48ef99(0xf1)](),this[_0x48ef99(0x75)](),this[_0x48ef99(0xf6)]();}[_0x7ab8d3(0x79)](_0x8c47cc,_0x56d977){const _0x479c9e=_0x7ab8d3;this[_0x479c9e(0xef)](_0x8c47cc,_0x56d977),this[_0x479c9e(0x83)](_0x56d977[_0x479c9e(0xbf)]);}[_0x7ab8d3(0x96)](){const _0x1b4c2a=_0x7ab8d3;this[_0x1b4c2a(0xa5)]&&_0x1b4c2a(0x98)!=typeof IntersectionObserver&&(this[_0x1b4c2a(0xfd)]=new IntersectionObserver(_0x266e8d=>{const _0x154ed3=_0x1b4c2a;_0x266e8d[0x0][_0x154ed3(0xaf)]&&this[_0x154ed3(0xe1)]&&requestAnimationFrame(()=>{const _0x51b9d0=_0x154ed3;this[_0x51b9d0(0xc5)]();});},{'threshold':0.01,'rootMargin':_0x1b4c2a(0xc1)}),this[_0x1b4c2a(0xfd)][_0x1b4c2a(0xba)](this[_0x1b4c2a(0xa5)]));}[_0x7ab8d3(0x8c)](){const _0x40da7f=_0x7ab8d3;if(!this[_0x40da7f(0xa5)])return!0x1;if(!this[_0x40da7f(0xa5)][_0x40da7f(0xb3)])return!0x1;const _0x42d2ef=this[_0x40da7f(0xa5)][_0x40da7f(0x89)]();if(0x0===_0x42d2ef[_0x40da7f(0xae)]||0x0===_0x42d2ef[_0x40da7f(0xab)])return!0x1;const _0x2eabc1=window[_0x40da7f(0x88)]||document[_0x40da7f(0x9e)][_0x40da7f(0x6d)],_0x4dc6fb=window[_0x40da7f(0xf8)]||document[_0x40da7f(0x9e)][_0x40da7f(0xcb)],_0x587e55=0xc8;return _0x42d2ef[_0x40da7f(0xc4)]>=-0xc8&&_0x42d2ef[_0x40da7f(0x7b)]<=_0x2eabc1+_0x587e55&&_0x42d2ef[_0x40da7f(0xe0)]>=-0xc8&&_0x42d2ef[_0x40da7f(0xf7)]<=_0x4dc6fb+_0x587e55;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4acdf3=_0x15e4;(function(_0x498ff6,_0x3c1821){const _0x55ae14=_0x15e4,_0xfaab63=_0x498ff6();while(!![]){try{const _0x48a549=parseInt(_0x55ae14(0x149))/0x1+-parseInt(_0x55ae14(0x138))/0x2+-parseInt(_0x55ae14(0x12e))/0x3*(-parseInt(_0x55ae14(0x150))/0x4)+parseInt(_0x55ae14(0x164))/0x5*(-parseInt(_0x55ae14(0x165))/0x6)+-parseInt(_0x55ae14(0x131))/0x7*(-parseInt(_0x55ae14(0x12f))/0x8)+parseInt(_0x55ae14(0x163))/0x9*(parseInt(_0x55ae14(0x15c))/0xa)+-parseInt(_0x55ae14(0x161))/0xb*(parseInt(_0x55ae14(0x14f))/0xc);if(_0x48a549===_0x3c1821)break;else _0xfaab63['push'](_0xfaab63['shift']());}catch(_0xdd8d73){_0xfaab63['push'](_0xfaab63['shift']());}}}(_0x56a9,0x3d284));import{ButtonView as _0x342958,IconView as _0xa44ae0}from'ckeditor5/src/ui.js';function _0x15e4(_0x120010,_0x434ba0){const _0x56a9cd=_0x56a9();return _0x15e4=function(_0x15e451,_0x9301f8){_0x15e451=_0x15e451-0x123;let _0x4e89e0=_0x56a9cd[_0x15e451];return _0x4e89e0;},_0x15e4(_0x120010,_0x434ba0);}import{IconClose as _0xce9524,IconDocument as _0x33cbce,IconFileUpload as _0x2dc7ef,IconLink as _0x26b3a3,IconSelection as _0x217688}from'@ckeditor/ckeditor5-icons';function _0x56a9(){const _0x4a8a53=['itemType','_setupRemoveButtonEvent','ck-ai-chat-context-chip__label','804yKrXVt','9524jhzvMU','disableAnimationOnEnter','ck-ai-chat-context-controls__chip-tooltip','_createLabelElement','_initializeProperties','_createIconView','isLoading','content','classList','_createTemplateChildren','_createTemplateAttributes','_handleAnimationEndOnce','7040YYaWCc','selection','slice','removeEventListener','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','81631eWAFgm','bind','4113egsnAD','29915mDqriA','12KqZEtZ','add','render','document','remove','extendTemplate','label','removeContextItemChip','readonly','webkitAnimationEnd','animationend','addEventListener','ck-hidden','453LWLcWe','1523440NZnOfh','isVisible','7kXxekr','small','lastIndexOf','span','_setupTemplate','_createRemoveButton','bindTemplate','788158wKKrkJ','ck-ai-chat-context-chip_wide','ck-ai-chat-context-chip_new-chip','element','set','div','length','locale','tooltip','execute','uiId','ck-ai-chat-context-chip','fire','ck-ai-chat-context-chip_document','_isAnimationOnEnterEnabled','setTemplate','type','282063mBEMWj','ck-ai-chat-context-chip__type-icon','_createLoaderIcon'];_0x56a9=function(){return _0x4a8a53;};return _0x56a9();}import{getTranslation as _0x3e2b38}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x196bfa}from'../../../aicore/ui/aispinner.js';const xn={'file':_0x2dc7ef,'document':_0x33cbce,'web-resource':_0x26b3a3,'text':_0x2dc7ef,'selection':_0x217688},bn=_0x4acdf3(0x143),wn=_0x4acdf3(0x139),Tn=_0x4acdf3(0x145),En=_0x4acdf3(0x14e),fn=_0x4acdf3(0x14a),An=_0x4acdf3(0x152),Cn='n';export class AIChatContextItemButtonView extends _0x342958{constructor(_0x4f49a5,_0x25e909,_0x198c03,_0x40aa11,_0x1a847b=!0x1){const _0x56d624=_0x4acdf3;super(_0x4f49a5),this[_0x56d624(0x146)]=_0x40aa11,this[_0x56d624(0x154)](_0x25e909,_0x198c03,_0x1a847b),this[_0x56d624(0x135)]();}[_0x4acdf3(0x123)](){const _0x5accbc=_0x4acdf3;super[_0x5accbc(0x123)](),this[_0x5accbc(0x146)]&&this[_0x5accbc(0x13b)]&&(this[_0x5accbc(0x13b)][_0x5accbc(0x158)][_0x5accbc(0x166)](_0x5accbc(0x13a)),this[_0x5accbc(0x15b)](this[_0x5accbc(0x13b)],()=>{const _0x2aacd4=_0x5accbc;this[_0x2aacd4(0x13b)]&&this[_0x2aacd4(0x13b)][_0x2aacd4(0x158)][_0x2aacd4(0x125)](_0x2aacd4(0x13a));}));}[_0x4acdf3(0x151)](){const _0x378e8e=_0x4acdf3;this[_0x378e8e(0x146)]=!0x1,this[_0x378e8e(0x13b)]&&this[_0x378e8e(0x13b)][_0x378e8e(0x158)][_0x378e8e(0x125)](_0x378e8e(0x13a));}[_0x4acdf3(0x154)](_0x1253c9,_0xb4287d,_0x448178){const _0x1ba68d=_0x4acdf3;this[_0x1ba68d(0x13c)](_0x1ba68d(0x127),_0x1253c9[_0x1ba68d(0x127)]),this[_0x1ba68d(0x13c)](_0x1ba68d(0x140),!0x0),this[_0x1ba68d(0x13c)](_0x1ba68d(0x14c),_0x1253c9[_0x1ba68d(0x148)]),this[_0x1ba68d(0x13c)]('id',_0x1253c9[_0x1ba68d(0x142)]),this[_0x1ba68d(0x13c)](_0x1ba68d(0x129),_0xb4287d),this[_0x1ba68d(0x13c)](_0x1ba68d(0x156),_0x448178);}[_0x4acdf3(0x135)](){const _0xc968e3=_0x4acdf3,_0x54b792=this[_0xc968e3(0x155)](),_0x2a11ff=this[_0xc968e3(0x136)](),_0x174f90=this[_0xc968e3(0x137)];this[_0xc968e3(0x147)]({'tag':_0xc968e3(0x13d),'attributes':this[_0xc968e3(0x15a)](_0x174f90),'children':this[_0xc968e3(0x159)](_0x54b792,_0x2a11ff,_0x174f90)});}[_0x4acdf3(0x15a)](_0x47eb44){const _0x161024=_0x4acdf3;return{'class':[bn,_0x47eb44['if'](_0x161024(0x14c),Tn,_0x263e6c=>_0x161024(0x124)==_0x263e6c),_0x47eb44['if'](_0x161024(0x14c),wn,_0x1ac284=>_0x161024(0x15d)==_0x1ac284)],'data-cke-tooltip-text':_0x47eb44['to'](_0x161024(0x127),In),'data-cke-tooltip-position':Cn,'data-cke-tooltip-class':An};}[_0x4acdf3(0x159)](_0x4b8744,_0xdd95f5,_0x4c4d62){const _0x86178e=_0x4acdf3,_0x36037c=this[_0x86178e(0x153)](_0x4c4d62),_0x51b015=this[_0x86178e(0x14b)]();return this[_0x86178e(0x129)]?[_0x4b8744,_0x36037c]:[_0x4b8744,_0x51b015,_0x36037c,_0xdd95f5];}[_0x4acdf3(0x153)](_0x4fa78e){const _0x44ccef=_0x4acdf3;return{'tag':_0x44ccef(0x134),'attributes':{'class':En},'children':[{'text':_0x4fa78e['to'](_0x44ccef(0x127))}]};}[_0x4acdf3(0x136)](){const _0xb352ed=_0x4acdf3,_0x13d068=new _0x342958(this[_0xb352ed(0x13f)]);return _0x13d068[_0xb352ed(0x13c)]({'label':_0x3e2b38(this[_0xb352ed(0x13f)],_0xb352ed(0x160)),'icon':_0xce9524}),this[_0xb352ed(0x14d)](_0x13d068),_0x13d068;}[_0x4acdf3(0x14d)](_0x4f19a3){const _0x127ea5=_0x4acdf3;_0x4f19a3['on'](_0x127ea5(0x141),()=>{const _0x56eed7=_0x127ea5;this[_0x56eed7(0x144)](_0x56eed7(0x128),this['id']);});}[_0x4acdf3(0x155)](){const _0x297840=_0x4acdf3,_0x44259e=this[_0x297840(0x137)],_0xcb098f=new _0xa44ae0();return _0xcb098f[_0x297840(0x157)]=xn[this[_0x297840(0x14c)]],_0xcb098f[_0x297840(0x126)]({'attributes':{'class':[fn,_0x44259e['if'](_0x297840(0x156),_0x297840(0x12d),_0x507337=>_0x507337)]}}),_0xcb098f;}[_0x4acdf3(0x15b)](_0x453e08,_0x4424f8){const _0x58e6a7=_0x4acdf3;if(!_0x453e08)return;const _0x317c94=()=>{const _0x1e55ec=_0x15e4;_0x4424f8(),_0x453e08[_0x1e55ec(0x15f)](_0x1e55ec(0x12b),_0x317c94),_0x453e08[_0x1e55ec(0x15f)](_0x1e55ec(0x12a),_0x317c94);};_0x453e08[_0x58e6a7(0x12c)](_0x58e6a7(0x12b),_0x317c94),_0x453e08[_0x58e6a7(0x12c)](_0x58e6a7(0x12a),_0x317c94);}[_0x4acdf3(0x14b)](){const _0x4fa185=_0x4acdf3,_0x4c95f9=new _0x196bfa(_0x4fa185(0x132));return _0x4c95f9[_0x4fa185(0x162)](_0x4fa185(0x130))['to'](this,_0x4fa185(0x156),_0x208323=>_0x208323),_0x4c95f9;}}function In(_0x57fe9c){const _0x485284=_0x4acdf3;if(!_0x57fe9c)return _0x57fe9c;if(_0x57fe9c[_0x485284(0x13e)]<=0x78)return _0x57fe9c;const _0x30031b=_0x57fe9c[_0x485284(0x15e)](0x0,0x78),_0x232449=_0x30031b[_0x485284(0x133)]('\x20');return(_0x232449>0x0?_0x30031b[_0x485284(0x15e)](0x0,_0x232449):_0x30031b)+'…';}
23
+ const _0x2894b5=_0x3c71;(function(_0x2af967,_0x22234e){const _0x3fb2a3=_0x3c71,_0x5e7903=_0x2af967();while(!![]){try{const _0x5e4756=-parseInt(_0x3fb2a3(0xba))/0x1+parseInt(_0x3fb2a3(0xbe))/0x2*(-parseInt(_0x3fb2a3(0x8e))/0x3)+-parseInt(_0x3fb2a3(0xb1))/0x4*(-parseInt(_0x3fb2a3(0xca))/0x5)+-parseInt(_0x3fb2a3(0x90))/0x6+parseInt(_0x3fb2a3(0xb0))/0x7*(-parseInt(_0x3fb2a3(0x98))/0x8)+-parseInt(_0x3fb2a3(0xb9))/0x9+parseInt(_0x3fb2a3(0x9c))/0xa*(parseInt(_0x3fb2a3(0xce))/0xb);if(_0x5e4756===_0x22234e)break;else _0x5e7903['push'](_0x5e7903['shift']());}catch(_0x976203){_0x5e7903['push'](_0x5e7903['shift']());}}}(_0x251e,0xbf7bc));import{ButtonView as _0x575a32,IconView as _0x54de70}from'ckeditor5/src/ui.js';import{IconClose as _0x19b92f,IconDocument as _0x397b82,IconFileUpload as _0x1a9e25,IconLink as _0x597c35,IconSelection as _0x45ceb9}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x1b0ff2}from'../../../aicore/utils/common-translations.js';function _0x251e(){const _0x14d5f9=['add','uiId','render','ck-ai-chat-context-chip_new-chip','bindTemplate','_initializeProperties','fire','5urOzuF','type','_createIconView','isLoading','3437665IRIjZb','_createRemoveButton','_isAnimationOnEnterEnabled','15AtOCui','remove','4311768VQCQta','bind','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','_createTemplateChildren','disableAnimationOnEnter','_createLoaderIcon','webkitAnimationEnd','ck-ai-chat-context-controls__chip-tooltip','3224112SLkFPo','selection','element','extendTemplate','150yBAgQL','animationend','readonly','lastIndexOf','_setupRemoveButtonEvent','set','setTemplate','slice','removeContextItemChip','label','div','_handleAnimationEndOnce','ck-ai-chat-context-chip_document','itemType','locale','length','isVisible','addEventListener','ck-hidden','execute','21oKbchy','2708252FePfeU','_createTemplateAttributes','document','content','ck-ai-chat-context-chip_wide','ck-ai-chat-context-chip','span','tooltip','13757247vqdkYr','282864pLlhoI','_createLabelElement','ck-ai-chat-context-chip__type-icon','ck-ai-chat-context-chip__label','336542HSGfOc','removeEventListener','small','_setupTemplate','classList'];_0x251e=function(){return _0x14d5f9;};return _0x251e();}function _0x3c71(_0x624aa4,_0x1506a5){const _0x251ee8=_0x251e();return _0x3c71=function(_0x3c718c,_0x5788c5){_0x3c718c=_0x3c718c-0x8e;let _0x201467=_0x251ee8[_0x3c718c];return _0x201467;},_0x3c71(_0x624aa4,_0x1506a5);}import{AISpinnerView as _0x24bfbb}from'../../../aicore/ui/aispinner.js';const xn={'file':_0x1a9e25,'document':_0x397b82,'web-resource':_0x597c35,'text':_0x1a9e25,'selection':_0x45ceb9},bn=_0x2894b5(0xb6),wn=_0x2894b5(0xb5),Tn=_0x2894b5(0xa8),En=_0x2894b5(0xbd),fn=_0x2894b5(0xbc),An=_0x2894b5(0x97),Cn='n';export class AIChatContextItemButtonView extends _0x575a32{constructor(_0x321304,_0x2d215e,_0x828c89,_0x138378,_0x466269=!0x1){const _0x82fe6f=_0x2894b5;super(_0x321304),this[_0x82fe6f(0xd0)]=_0x138378,this[_0x82fe6f(0xc8)](_0x2d215e,_0x828c89,_0x466269),this[_0x82fe6f(0xc1)]();}[_0x2894b5(0xc5)](){const _0x37e109=_0x2894b5;super[_0x37e109(0xc5)](),this[_0x37e109(0xd0)]&&this[_0x37e109(0x9a)]&&(this[_0x37e109(0x9a)][_0x37e109(0xc2)][_0x37e109(0xc3)](_0x37e109(0xc6)),this[_0x37e109(0xa7)](this[_0x37e109(0x9a)],()=>{const _0x3a09b2=_0x37e109;this[_0x3a09b2(0x9a)]&&this[_0x3a09b2(0x9a)][_0x3a09b2(0xc2)][_0x3a09b2(0x8f)](_0x3a09b2(0xc6));}));}[_0x2894b5(0x94)](){const _0x37eeb3=_0x2894b5;this[_0x37eeb3(0xd0)]=!0x1,this[_0x37eeb3(0x9a)]&&this[_0x37eeb3(0x9a)][_0x37eeb3(0xc2)][_0x37eeb3(0x8f)](_0x37eeb3(0xc6));}[_0x2894b5(0xc8)](_0x19b6e7,_0x2289cb,_0x1ba8d8){const _0x3cc1da=_0x2894b5;this[_0x3cc1da(0xa1)](_0x3cc1da(0xa5),_0x19b6e7[_0x3cc1da(0xa5)]),this[_0x3cc1da(0xa1)](_0x3cc1da(0xb8),!0x0),this[_0x3cc1da(0xa1)](_0x3cc1da(0xa9),_0x19b6e7[_0x3cc1da(0xcb)]),this[_0x3cc1da(0xa1)]('id',_0x19b6e7[_0x3cc1da(0xc4)]),this[_0x3cc1da(0xa1)](_0x3cc1da(0x9e),_0x2289cb),this[_0x3cc1da(0xa1)](_0x3cc1da(0xcd),_0x1ba8d8);}[_0x2894b5(0xc1)](){const _0xade04d=_0x2894b5,_0x393026=this[_0xade04d(0xcc)](),_0x4029dd=this[_0xade04d(0xcf)](),_0x10c8fc=this[_0xade04d(0xc7)];this[_0xade04d(0xa2)]({'tag':_0xade04d(0xa6),'attributes':this[_0xade04d(0xb2)](_0x10c8fc),'children':this[_0xade04d(0x93)](_0x393026,_0x4029dd,_0x10c8fc)});}[_0x2894b5(0xb2)](_0x1c6ef8){const _0x50d969=_0x2894b5;return{'class':[bn,_0x1c6ef8['if'](_0x50d969(0xa9),Tn,_0x16c5df=>_0x50d969(0xb3)==_0x16c5df),_0x1c6ef8['if'](_0x50d969(0xa9),wn,_0x40f764=>_0x50d969(0x99)==_0x40f764)],'data-cke-tooltip-text':_0x1c6ef8['to'](_0x50d969(0xa5),In),'data-cke-tooltip-position':Cn,'data-cke-tooltip-class':An};}[_0x2894b5(0x93)](_0x8ae503,_0x168792,_0x332eb5){const _0x5dd494=_0x2894b5,_0xede7e6=this[_0x5dd494(0xbb)](_0x332eb5),_0x57a847=this[_0x5dd494(0x95)]();return this[_0x5dd494(0x9e)]?[_0x8ae503,_0xede7e6]:[_0x8ae503,_0x57a847,_0xede7e6,_0x168792];}[_0x2894b5(0xbb)](_0x1b24ef){const _0x38455f=_0x2894b5;return{'tag':_0x38455f(0xb7),'attributes':{'class':En},'children':[{'text':_0x1b24ef['to'](_0x38455f(0xa5))}]};}[_0x2894b5(0xcf)](){const _0x2ca843=_0x2894b5,_0x532e4f=new _0x575a32(this[_0x2ca843(0xaa)]);return _0x532e4f[_0x2ca843(0xa1)]({'label':_0x1b0ff2(this[_0x2ca843(0xaa)],_0x2ca843(0x92)),'icon':_0x19b92f}),this[_0x2ca843(0xa0)](_0x532e4f),_0x532e4f;}[_0x2894b5(0xa0)](_0x365f0e){const _0x30c1c5=_0x2894b5;_0x365f0e['on'](_0x30c1c5(0xaf),()=>{const _0x5a65e0=_0x30c1c5;this[_0x5a65e0(0xc9)](_0x5a65e0(0xa4),this['id']);});}[_0x2894b5(0xcc)](){const _0x4b9e98=_0x2894b5,_0xaf8721=this[_0x4b9e98(0xc7)],_0x2d9f6c=new _0x54de70();return _0x2d9f6c[_0x4b9e98(0xb4)]=xn[this[_0x4b9e98(0xa9)]],_0x2d9f6c[_0x4b9e98(0x9b)]({'attributes':{'class':[fn,_0xaf8721['if'](_0x4b9e98(0xcd),_0x4b9e98(0xae),_0x15ed12=>_0x15ed12)]}}),_0x2d9f6c;}[_0x2894b5(0xa7)](_0x34d96e,_0x201bb7){const _0x8b9cc=_0x2894b5;if(!_0x34d96e)return;const _0x2a5865=()=>{const _0x53bb62=_0x3c71;_0x201bb7(),_0x34d96e[_0x53bb62(0xbf)](_0x53bb62(0x9d),_0x2a5865),_0x34d96e[_0x53bb62(0xbf)](_0x53bb62(0x96),_0x2a5865);};_0x34d96e[_0x8b9cc(0xad)](_0x8b9cc(0x9d),_0x2a5865),_0x34d96e[_0x8b9cc(0xad)](_0x8b9cc(0x96),_0x2a5865);}[_0x2894b5(0x95)](){const _0xadbe4c=_0x2894b5,_0x3331d0=new _0x24bfbb(_0xadbe4c(0xc0));return _0x3331d0[_0xadbe4c(0x91)](_0xadbe4c(0xac))['to'](this,_0xadbe4c(0xcd),_0x11da96=>_0x11da96),_0x3331d0;}}function In(_0xf7c12d){const _0x2e2bfe=_0x2894b5;if(!_0xf7c12d)return _0xf7c12d;if(_0xf7c12d[_0x2e2bfe(0xab)]<=0x78)return _0xf7c12d;const _0x1f5b85=_0xf7c12d[_0x2e2bfe(0xa3)](0x0,0x78),_0x369b30=_0x1f5b85[_0x2e2bfe(0x9f)]('\x20');return(_0x369b30>0x0?_0x1f5b85[_0x2e2bfe(0xa3)](0x0,_0x369b30):_0x1f5b85)+'…';}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5e2dfa=_0x14ec;(function(_0x19020c,_0x14fcf7){const _0x7c8de3=_0x14ec,_0x12c9f5=_0x19020c();while(!![]){try{const _0x5508d=parseInt(_0x7c8de3(0x1e9))/0x1*(parseInt(_0x7c8de3(0x1f6))/0x2)+parseInt(_0x7c8de3(0x21c))/0x3*(-parseInt(_0x7c8de3(0x203))/0x4)+-parseInt(_0x7c8de3(0x1fb))/0x5*(parseInt(_0x7c8de3(0x1da))/0x6)+parseInt(_0x7c8de3(0x212))/0x7+-parseInt(_0x7c8de3(0x1f7))/0x8+-parseInt(_0x7c8de3(0x1fd))/0x9+-parseInt(_0x7c8de3(0x1f2))/0xa*(-parseInt(_0x7c8de3(0x214))/0xb);if(_0x5508d===_0x14fcf7)break;else _0x12c9f5['push'](_0x12c9f5['shift']());}catch(_0x487d8a){_0x12c9f5['push'](_0x12c9f5['shift']());}}}(_0xba30,0xeff84));import{FocusTracker as _0x5236e1,KeystrokeHandler as _0x2fe512}from'ckeditor5/src/utils.js';import{ButtonView as _0x45c409,FocusCycler as _0x507aaf,LabeledFieldView as _0x25fcdc,View as _0x50d5c9,FormHeaderView as _0x29044d,createLabeledInputText as _0x41bea7,submitHandler as _0x129f60}from'ckeditor5/src/ui.js';import{IconCheck as _0x33f711,IconPreviousArrow as _0x2bfd23}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x56f440}from'../../../aicore/utils/common-translations.js';const rh=_0x5e2dfa(0x201),oh=_0x5e2dfa(0x21d);function _0xba30(){const _0x1aaf7b=['ck-ai-chat-context-controls__url-input-section','fieldView','trim','_updateConfirmButtonState','_createBackButton','focusCycler','locale','6068778mMiNNz','shift+tab','form','input','_focusables','_setupTemplate','AI_CHAT_CONTEXT_URL_INVALID_ERROR','confirmButton','children','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','listenTo','length','AI_CHAT_CONTEXT_URL_PLACEHOLDER','getValue','ck-button-icon','23cNCxpd','_createConfirmButton','refreshBalloon','errorText','urlInputField','cancel','destroy','_isValidUrl','submit','13110800bAlnkN','createCollection','focusTracker','ck-button-icon\x20ck-button-back','36494yncICu','12319464ROmUby','tab','keystrokes','setError','5wvwHeg','render','15560046KdMzwV','stop','add','focus','ck-ai-chat-context-controls__url-form','_setupKeystrokes','20964AYeVOf','_setupEventHandlers','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','ck-labeled-field-view_empty','backButton','set','div','element','clearError','submitUrl','esc','_handleSubmit','_createUrlInputField','execute','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','9154397UzjuHV','forEach','44KBdZPo','isEnabled','fire','setTemplate','AI_CHAT_CONTEXT_URL_LABEL','clear','AI_CHAT_CONTEXT_URL_ADD_URL','value','978oLVRyx'];_0xba30=function(){return _0x1aaf7b;};return _0xba30();}function _0x14ec(_0x76f12c,_0x4a7b8f){const _0xba3025=_0xba30();return _0x14ec=function(_0x14ec0b,_0x2b63a5){_0x14ec0b=_0x14ec0b-0x1d5;let _0x4dea48=_0xba3025[_0x14ec0b];return _0x4dea48;},_0x14ec(_0x76f12c,_0x4a7b8f);}export class AIChatContextPanelUrlInputView extends _0x50d5c9{[_0x5e2dfa(0x1f4)];[_0x5e2dfa(0x1f9)];[_0x5e2dfa(0x1de)];[_0x5e2dfa(0x1d8)];[_0x5e2dfa(0x1ed)];[_0x5e2dfa(0x207)];[_0x5e2dfa(0x1e1)];constructor(_0x66708e){const _0x5f3393=_0x5e2dfa;super(_0x66708e),this[_0x5f3393(0x1f4)]=new _0x5236e1(),this[_0x5f3393(0x1f9)]=new _0x2fe512(),this[_0x5f3393(0x207)]=this[_0x5f3393(0x1d7)](),this[_0x5f3393(0x1ed)]=this[_0x5f3393(0x20f)](),this[_0x5f3393(0x1e1)]=this[_0x5f3393(0x1ea)](),this[_0x5f3393(0x1de)]=this[_0x5f3393(0x1f3)]([this[_0x5f3393(0x207)],this[_0x5f3393(0x1ed)],this[_0x5f3393(0x1e1)]]),this[_0x5f3393(0x1d8)]=new _0x507aaf({'focusables':this[_0x5f3393(0x1de)],'focusTracker':this[_0x5f3393(0x1f4)],'keystrokeHandler':this[_0x5f3393(0x1f9)],'actions':{'focusPrevious':_0x5f3393(0x1db),'focusNext':_0x5f3393(0x1f8)}}),this[_0x5f3393(0x1df)](),this[_0x5f3393(0x204)](),this[_0x5f3393(0x202)]();}[_0x5e2dfa(0x1fc)](){const _0x132ba0=_0x5e2dfa;super[_0x132ba0(0x1fc)](),this[_0x132ba0(0x1de)][_0x132ba0(0x213)](_0x827a97=>{const _0x145545=_0x132ba0;this[_0x145545(0x1f4)][_0x145545(0x1ff)](_0x827a97[_0x145545(0x20a)]),this[_0x145545(0x1f9)][_0x145545(0x1e4)](_0x827a97[_0x145545(0x20a)]);}),_0x129f60({'view':this}),this[_0x132ba0(0x200)]();}[_0x5e2dfa(0x1ef)](){const _0x14cf4e=_0x5e2dfa;super[_0x14cf4e(0x1ef)](),this[_0x14cf4e(0x1f4)][_0x14cf4e(0x1ef)](),this[_0x14cf4e(0x1f9)][_0x14cf4e(0x1ef)]();}[_0x5e2dfa(0x200)](){const _0x54f5b6=_0x5e2dfa;this[_0x54f5b6(0x1ed)][_0x54f5b6(0x200)]();}[_0x5e2dfa(0x1e7)](){const _0x319be4=_0x5e2dfa;return this[_0x319be4(0x1ed)][_0x319be4(0x21e)][_0x319be4(0x20a)]?.[_0x319be4(0x21b)]?.[_0x319be4(0x1d5)]()||'';}[_0x5e2dfa(0x219)](){const _0xf1df2a=_0x5e2dfa;this[_0xf1df2a(0x1ed)][_0xf1df2a(0x21e)][_0xf1df2a(0x20a)][_0xf1df2a(0x21b)]='',this[_0xf1df2a(0x1ed)][_0xf1df2a(0x1ec)]=null,this[_0xf1df2a(0x1e1)][_0xf1df2a(0x215)]=!0x1;}[_0x5e2dfa(0x1fa)](_0x4f6b87){const _0x33935f=_0x5e2dfa;this[_0x33935f(0x1ed)][_0x33935f(0x1ec)]=_0x4f6b87,this[_0x33935f(0x1d6)](),this[_0x33935f(0x216)](_0x33935f(0x1eb));}[_0x5e2dfa(0x20b)](){const _0x2224a7=_0x5e2dfa;this[_0x2224a7(0x1ed)][_0x2224a7(0x1ec)]=null,this[_0x2224a7(0x1d6)]();}[_0x5e2dfa(0x1d7)](){const _0x26994d=_0x5e2dfa,_0x4ec876=new _0x45c409(this[_0x26994d(0x1d9)]);return _0x4ec876[_0x26994d(0x208)]({'icon':_0x2bfd23,'tooltip':_0x56f440(this[_0x26994d(0x1d9)],_0x26994d(0x1e3)),'tooltipPosition':'n','class':_0x26994d(0x1f5)}),_0x4ec876;}[_0x5e2dfa(0x20f)](){const _0x3b7405=_0x5e2dfa,_0x59d38d=new _0x25fcdc(this[_0x3b7405(0x1d9)],_0x41bea7);return _0x59d38d[_0x3b7405(0x208)]({'label':_0x56f440(this[_0x3b7405(0x1d9)],_0x3b7405(0x218)),'class':_0x3b7405(0x206)}),_0x59d38d[_0x3b7405(0x21e)][_0x3b7405(0x208)]({'placeholder':_0x56f440(this[_0x3b7405(0x1d9)],_0x3b7405(0x1e6))}),_0x59d38d;}[_0x5e2dfa(0x1ea)](){const _0x11d5e3=_0x5e2dfa,_0x3ae46e=new _0x45c409(this[_0x11d5e3(0x1d9)]);return _0x3ae46e[_0x11d5e3(0x208)]({'icon':_0x33f711,'tooltip':_0x56f440(this[_0x11d5e3(0x1d9)],_0x11d5e3(0x21a)),'tooltipPosition':'n','class':_0x11d5e3(0x1e8),'type':_0x11d5e3(0x1f1),'isEnabled':!0x1}),_0x3ae46e;}[_0x5e2dfa(0x1df)](){const _0x567f7e=_0x5e2dfa,_0xd0a985=new _0x29044d(this[_0x567f7e(0x1d9)],{'label':_0x56f440(this[_0x567f7e(0x1d9)],_0x567f7e(0x21a)),'class':_0x567f7e(0x205)});_0xd0a985[_0x567f7e(0x1e2)][_0x567f7e(0x1ff)](this[_0x567f7e(0x207)],0x0),this[_0x567f7e(0x217)]({'tag':_0x567f7e(0x1dc),'attributes':{'class':rh,'tabindex':'-1'},'children':[_0xd0a985,{'tag':_0x567f7e(0x209),'attributes':{'class':oh},'children':[this[_0x567f7e(0x1ed)],this[_0x567f7e(0x1e1)]]}]});}[_0x5e2dfa(0x204)](){const _0x3f0fbd=_0x5e2dfa;this[_0x3f0fbd(0x207)]['on'](_0x3f0fbd(0x210),()=>{const _0xb9cb74=_0x3f0fbd;this[_0xb9cb74(0x219)](),this[_0xb9cb74(0x216)](_0xb9cb74(0x1ee));}),this[_0x3f0fbd(0x1ed)][_0x3f0fbd(0x21e)]['on'](_0x3f0fbd(0x1dd),()=>{const _0x55c035=_0x3f0fbd;this[_0x55c035(0x20b)](),this[_0x55c035(0x1d6)](),this[_0x55c035(0x216)](_0x55c035(0x1eb));}),this['on'](_0x3f0fbd(0x1f1),_0x371ad6=>{const _0x4b12bc=_0x3f0fbd;_0x371ad6[_0x4b12bc(0x1fe)](),this[_0x4b12bc(0x20e)]();});}[_0x5e2dfa(0x202)](){const _0x5070a4=_0x5e2dfa;this[_0x5070a4(0x1f9)][_0x5070a4(0x208)](_0x5070a4(0x20d),(_0x59ca13,_0x51b30a)=>{const _0x1fab0a=_0x5070a4;this[_0x1fab0a(0x219)](),this[_0x1fab0a(0x216)](_0x1fab0a(0x1ee)),_0x51b30a();});}[_0x5e2dfa(0x20e)](){const _0x4da4e1=_0x5e2dfa,_0x4d35aa=this[_0x4da4e1(0x1e7)]()[_0x4da4e1(0x1d5)]();_0x4d35aa?this[_0x4da4e1(0x1f0)](_0x4d35aa)?(this[_0x4da4e1(0x20b)](),this[_0x4da4e1(0x216)](_0x4da4e1(0x20c),_0x4d35aa)):this[_0x4da4e1(0x1fa)](_0x56f440(this[_0x4da4e1(0x1d9)],_0x4da4e1(0x1e0))):this[_0x4da4e1(0x1fa)](_0x56f440(this[_0x4da4e1(0x1d9)],_0x4da4e1(0x211)));}[_0x5e2dfa(0x1d6)](){const _0x1e9602=_0x5e2dfa,_0x437225=this[_0x1e9602(0x1e7)]()[_0x1e9602(0x1d5)](),_0x36e5e0=!!this[_0x1e9602(0x1ed)][_0x1e9602(0x1ec)];this[_0x1e9602(0x1e1)][_0x1e9602(0x215)]=_0x437225[_0x1e9602(0x1e5)]>0x0&&!_0x36e5e0;}[_0x5e2dfa(0x1f0)](_0x42a0cc){try{return!!new URL(_0x42a0cc);}catch{return!0x1;}}}
23
+ const _0xc31e8a=_0x391f;function _0x5f50(){const _0x5a3a09=['trim','_createUrlInputField','AI_CHAT_CONTEXT_URL_INVALID_ERROR','8ECocrQ','submit','_focusables','stop','errorText','listenTo','focusCycler','locale','set','render','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','ck-button-icon','shift+tab','12227157KUqbHS','clear','setError','_setupTemplate','AI_CHAT_CONTEXT_URL_LABEL','urlInputField','isEnabled','4397036WUdlPR','execute','tab','createCollection','_createBackButton','esc','children','260490AmyyzB','keystrokes','_updateConfirmButtonState','_handleSubmit','backButton','1564330OouKTZ','_createConfirmButton','refreshBalloon','setTemplate','add','confirmButton','_setupEventHandlers','focus','AI_CHAT_CONTEXT_URL_PLACEHOLDER','8384370mYQKAj','value','getValue','fieldView','destroy','input','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','element','cancel','fire','form','div','ck-labeled-field-view_empty','ck-ai-chat-context-controls__url-form','clearError','363UabsKS','AI_CHAT_CONTEXT_URL_ADD_URL','forEach','_setupKeystrokes','focusTracker','ck-button-icon\x20ck-button-back','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','ck-ai-chat-context-controls__url-input-section','21092vLPgQn','submitUrl','length','_isValidUrl','105813dqQpjl'];_0x5f50=function(){return _0x5a3a09;};return _0x5f50();}(function(_0x513bb9,_0x4a0c7a){const _0x55a125=_0x391f,_0x14db17=_0x513bb9();while(!![]){try{const _0x51cfa5=-parseInt(_0x55a125(0x231))/0x1+-parseInt(_0x55a125(0x20d))/0x2+-parseInt(_0x55a125(0x225))/0x3*(parseInt(_0x55a125(0x22d))/0x4)+parseInt(_0x55a125(0x216))/0x5+parseInt(_0x55a125(0x208))/0x6+-parseInt(_0x55a125(0x201))/0x7+-parseInt(_0x55a125(0x1ed))/0x8*(-parseInt(_0x55a125(0x1fa))/0x9);if(_0x51cfa5===_0x4a0c7a)break;else _0x14db17['push'](_0x14db17['shift']());}catch(_0x3a1814){_0x14db17['push'](_0x14db17['shift']());}}}(_0x5f50,0xe1c1f));import{FocusTracker as _0x1704d2,KeystrokeHandler as _0x55e2ce}from'ckeditor5/src/utils.js';import{ButtonView as _0x472d5a,FocusCycler as _0x2729d1,LabeledFieldView as _0x4484be,View as _0x196385,FormHeaderView as _0x3d802a,createLabeledInputText as _0x5431a9,submitHandler as _0x16e583}from'ckeditor5/src/ui.js';import{IconCheck as _0x40a34a,IconPreviousArrow as _0x9e59cf}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x38d20b}from'../../../aicore/utils/common-translations.js';function _0x391f(_0x242cee,_0x110a2f){const _0x5f50f2=_0x5f50();return _0x391f=function(_0x391f7d,_0x2b8194){_0x391f7d=_0x391f7d-0x1ed;let _0x4ca420=_0x5f50f2[_0x391f7d];return _0x4ca420;},_0x391f(_0x242cee,_0x110a2f);}const rh=_0xc31e8a(0x223),oh=_0xc31e8a(0x22c);export class AIChatContextPanelUrlInputView extends _0x196385{[_0xc31e8a(0x229)];[_0xc31e8a(0x209)];[_0xc31e8a(0x1ef)];[_0xc31e8a(0x1f3)];[_0xc31e8a(0x1ff)];[_0xc31e8a(0x20c)];[_0xc31e8a(0x212)];constructor(_0x1e5f88){const _0x4e0080=_0xc31e8a;super(_0x1e5f88),this[_0x4e0080(0x229)]=new _0x1704d2(),this[_0x4e0080(0x209)]=new _0x55e2ce(),this[_0x4e0080(0x20c)]=this[_0x4e0080(0x205)](),this[_0x4e0080(0x1ff)]=this[_0x4e0080(0x233)](),this[_0x4e0080(0x212)]=this[_0x4e0080(0x20e)](),this[_0x4e0080(0x1ef)]=this[_0x4e0080(0x204)]([this[_0x4e0080(0x20c)],this[_0x4e0080(0x1ff)],this[_0x4e0080(0x212)]]),this[_0x4e0080(0x1f3)]=new _0x2729d1({'focusables':this[_0x4e0080(0x1ef)],'focusTracker':this[_0x4e0080(0x229)],'keystrokeHandler':this[_0x4e0080(0x209)],'actions':{'focusPrevious':_0x4e0080(0x1f9),'focusNext':_0x4e0080(0x203)}}),this[_0x4e0080(0x1fd)](),this[_0x4e0080(0x213)](),this[_0x4e0080(0x228)]();}[_0xc31e8a(0x1f6)](){const _0x617838=_0xc31e8a;super[_0x617838(0x1f6)](),this[_0x617838(0x1ef)][_0x617838(0x227)](_0x1cace1=>{const _0x3807b5=_0x617838;this[_0x3807b5(0x229)][_0x3807b5(0x211)](_0x1cace1[_0x3807b5(0x21d)]),this[_0x3807b5(0x209)][_0x3807b5(0x1f2)](_0x1cace1[_0x3807b5(0x21d)]);}),_0x16e583({'view':this}),this[_0x617838(0x214)]();}[_0xc31e8a(0x21a)](){const _0x2d9272=_0xc31e8a;super[_0x2d9272(0x21a)](),this[_0x2d9272(0x229)][_0x2d9272(0x21a)](),this[_0x2d9272(0x209)][_0x2d9272(0x21a)]();}[_0xc31e8a(0x214)](){const _0x2908c0=_0xc31e8a;this[_0x2908c0(0x1ff)][_0x2908c0(0x214)]();}[_0xc31e8a(0x218)](){const _0x242de2=_0xc31e8a;return this[_0x242de2(0x1ff)][_0x242de2(0x219)][_0x242de2(0x21d)]?.[_0x242de2(0x217)]?.[_0x242de2(0x232)]()||'';}[_0xc31e8a(0x1fb)](){const _0x27d325=_0xc31e8a;this[_0x27d325(0x1ff)][_0x27d325(0x219)][_0x27d325(0x21d)][_0x27d325(0x217)]='',this[_0x27d325(0x1ff)][_0x27d325(0x1f1)]=null,this[_0x27d325(0x212)][_0x27d325(0x200)]=!0x1;}[_0xc31e8a(0x1fc)](_0x4af868){const _0x14ead0=_0xc31e8a;this[_0x14ead0(0x1ff)][_0x14ead0(0x1f1)]=_0x4af868,this[_0x14ead0(0x20a)](),this[_0x14ead0(0x21f)](_0x14ead0(0x20f));}[_0xc31e8a(0x224)](){const _0x4ef90a=_0xc31e8a;this[_0x4ef90a(0x1ff)][_0x4ef90a(0x1f1)]=null,this[_0x4ef90a(0x20a)]();}[_0xc31e8a(0x205)](){const _0xc39525=_0xc31e8a,_0xc12589=new _0x472d5a(this[_0xc39525(0x1f4)]);return _0xc12589[_0xc39525(0x1f5)]({'icon':_0x9e59cf,'tooltip':_0x38d20b(this[_0xc39525(0x1f4)],_0xc39525(0x1f7)),'tooltipPosition':'n','class':_0xc39525(0x22a)}),_0xc12589;}[_0xc31e8a(0x233)](){const _0x1d071e=_0xc31e8a,_0x38c5c1=new _0x4484be(this[_0x1d071e(0x1f4)],_0x5431a9);return _0x38c5c1[_0x1d071e(0x1f5)]({'label':_0x38d20b(this[_0x1d071e(0x1f4)],_0x1d071e(0x1fe)),'class':_0x1d071e(0x222)}),_0x38c5c1[_0x1d071e(0x219)][_0x1d071e(0x1f5)]({'placeholder':_0x38d20b(this[_0x1d071e(0x1f4)],_0x1d071e(0x215))}),_0x38c5c1;}[_0xc31e8a(0x20e)](){const _0x406d7c=_0xc31e8a,_0x2ed9d9=new _0x472d5a(this[_0x406d7c(0x1f4)]);return _0x2ed9d9[_0x406d7c(0x1f5)]({'icon':_0x40a34a,'tooltip':_0x38d20b(this[_0x406d7c(0x1f4)],_0x406d7c(0x226)),'tooltipPosition':'n','class':_0x406d7c(0x1f8),'type':_0x406d7c(0x1ee),'isEnabled':!0x1}),_0x2ed9d9;}[_0xc31e8a(0x1fd)](){const _0x156115=_0xc31e8a,_0x50adcc=new _0x3d802a(this[_0x156115(0x1f4)],{'label':_0x38d20b(this[_0x156115(0x1f4)],_0x156115(0x226)),'class':_0x156115(0x21c)});_0x50adcc[_0x156115(0x207)][_0x156115(0x211)](this[_0x156115(0x20c)],0x0),this[_0x156115(0x210)]({'tag':_0x156115(0x220),'attributes':{'class':rh,'tabindex':'-1'},'children':[_0x50adcc,{'tag':_0x156115(0x221),'attributes':{'class':oh},'children':[this[_0x156115(0x1ff)],this[_0x156115(0x212)]]}]});}[_0xc31e8a(0x213)](){const _0x44ee49=_0xc31e8a;this[_0x44ee49(0x20c)]['on'](_0x44ee49(0x202),()=>{const _0x5a13f6=_0x44ee49;this[_0x5a13f6(0x1fb)](),this[_0x5a13f6(0x21f)](_0x5a13f6(0x21e));}),this[_0x44ee49(0x1ff)][_0x44ee49(0x219)]['on'](_0x44ee49(0x21b),()=>{const _0x4c49a4=_0x44ee49;this[_0x4c49a4(0x224)](),this[_0x4c49a4(0x20a)](),this[_0x4c49a4(0x21f)](_0x4c49a4(0x20f));}),this['on'](_0x44ee49(0x1ee),_0x49979a=>{const _0x421285=_0x44ee49;_0x49979a[_0x421285(0x1f0)](),this[_0x421285(0x20b)]();});}[_0xc31e8a(0x228)](){const _0x3e251f=_0xc31e8a;this[_0x3e251f(0x209)][_0x3e251f(0x1f5)](_0x3e251f(0x206),(_0x2474f8,_0x295cbc)=>{const _0x59436a=_0x3e251f;this[_0x59436a(0x1fb)](),this[_0x59436a(0x21f)](_0x59436a(0x21e)),_0x295cbc();});}[_0xc31e8a(0x20b)](){const _0x26dadb=_0xc31e8a,_0x3bb258=this[_0x26dadb(0x218)]()[_0x26dadb(0x232)]();_0x3bb258?this[_0x26dadb(0x230)](_0x3bb258)?(this[_0x26dadb(0x224)](),this[_0x26dadb(0x21f)](_0x26dadb(0x22e),_0x3bb258)):this[_0x26dadb(0x1fc)](_0x38d20b(this[_0x26dadb(0x1f4)],_0x26dadb(0x234))):this[_0x26dadb(0x1fc)](_0x38d20b(this[_0x26dadb(0x1f4)],_0x26dadb(0x22b)));}[_0xc31e8a(0x20a)](){const _0x272607=_0xc31e8a,_0xeb77e1=this[_0x272607(0x218)]()[_0x272607(0x232)](),_0x1c912e=!!this[_0x272607(0x1ff)][_0x272607(0x1f1)];this[_0x272607(0x212)][_0x272607(0x200)]=_0xeb77e1[_0x272607(0x22f)]>0x0&&!_0x1c912e;}[_0xc31e8a(0x230)](_0x47a544){try{return!!new URL(_0x47a544);}catch{return!0x1;}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x18e543=_0x4e29;(function(_0x447322,_0x2acc08){const _0x2eaefe=_0x4e29,_0x58a341=_0x447322();while(!![]){try{const _0x299c8a=-parseInt(_0x2eaefe(0x98))/0x1+-parseInt(_0x2eaefe(0xde))/0x2*(-parseInt(_0x2eaefe(0xb9))/0x3)+parseInt(_0x2eaefe(0x9d))/0x4*(-parseInt(_0x2eaefe(0xc6))/0x5)+-parseInt(_0x2eaefe(0x77))/0x6*(parseInt(_0x2eaefe(0xef))/0x7)+parseInt(_0x2eaefe(0x6e))/0x8+parseInt(_0x2eaefe(0xa0))/0x9*(-parseInt(_0x2eaefe(0x82))/0xa)+parseInt(_0x2eaefe(0xac))/0xb;if(_0x299c8a===_0x2acc08)break;else _0x58a341['push'](_0x58a341['shift']());}catch(_0x4b3676){_0x58a341['push'](_0x58a341['shift']());}}}(_0x4950,0xb3645));function _0x4e29(_0x53452b,_0x3db647){const _0x495086=_0x4950();return _0x4e29=function(_0x4e29c4,_0x522f28){_0x4e29c4=_0x4e29c4-0x65;let _0x2dca7a=_0x495086[_0x4e29c4];return _0x2dca7a;},_0x4e29(_0x53452b,_0x3db647);}import{BalloonPanelView as _0x33f2c7,ButtonView as _0x1cb146,clickOutsideHandler as _0x3a88fc,FileDialogButtonView as _0x143f99,IconView as _0x28a6ad,View as _0x3ed62b}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x11ec26,IconDocument as _0x1ce4bc,IconDocumentOutline as _0x30ee8d,IconDropdownArrow as _0x55a1dd,IconLink as _0x40e864,IconPaperClip as _0xd794e7}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0xd6e288}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x115e3e}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x54e20c}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x44b1f2}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x38255c}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x18e543(0xd0),_0x18e543(0xa4),_0x18e543(0x7e),_0x18e543(0x65),_0x18e543(0xe6),_0x18e543(0x81)];const Eo=_0x18e543(0x6a),vo=_0x18e543(0x6c),Vo=_0x18e543(0xdd),Io=_0x18e543(0xce),Po=_0x18e543(0x9b),Ro=_0x18e543(0xa7),Uo=_0x18e543(0xab),Lo=_0x18e543(0x90),No=_0x18e543(0x83),Oo=_0x18e543(0x73),Mo=_0x18e543(0xf5),Ho=_0x18e543(0x86),jo=[_0x33f2c7[_0x18e543(0xaa)][_0x18e543(0xd9)],_0x33f2c7[_0x18e543(0xaa)][_0x18e543(0xc0)],_0x33f2c7[_0x18e543(0xaa)][_0x18e543(0xd6)],_0x33f2c7[_0x18e543(0xaa)][_0x18e543(0x71)],_0x33f2c7[_0x18e543(0xaa)][_0x18e543(0xec)],_0x33f2c7[_0x18e543(0xaa)][_0x18e543(0xa5)]];export class AIChatContextPanelView extends _0x3ed62b{[_0x18e543(0xa8)];[_0x18e543(0xda)]=this[_0x18e543(0x9e)]();[_0x18e543(0x67)]=this[_0x18e543(0x9e)]();[_0x18e543(0xd2)];[_0x18e543(0xe3)];[_0x18e543(0xb3)];[_0x18e543(0x80)];[_0x18e543(0x79)];[_0x18e543(0xbf)];[_0x18e543(0xba)];constructor(_0x1513fb,_0x2fba24){const _0x3489d5=_0x18e543;super(_0x1513fb),this[_0x3489d5(0xba)]=_0x2fba24[_0x3489d5(0xba)],this[_0x3489d5(0xda)]=this[_0x3489d5(0x9e)](),this[_0x3489d5(0x67)]=this[_0x3489d5(0x9e)](),this[_0x3489d5(0xa8)]=this[_0x3489d5(0xea)](_0x1513fb),this[_0x3489d5(0xe3)]=this[_0x3489d5(0x6d)](_0x1513fb),this[_0x3489d5(0xb3)]=this[_0x3489d5(0x9c)](_0x1513fb),this[_0x3489d5(0x79)]=this[_0x3489d5(0xdb)](_0x1513fb,_0x2fba24);const _0x2b2734={'cssClasses':{'showMoreButton':Oo,'showMoreBalloon':Mo,'overflowContainer':No,'controlsButton':Lo}};this[_0x3489d5(0xd2)]=new _0x54e20c(_0x1513fb,this[_0x3489d5(0xda)],_0x2b2734,this[_0x3489d5(0xba)],this),this[_0x3489d5(0xbf)]={'buttonView':this[_0x3489d5(0xa8)],'balloonView':this[_0x3489d5(0xe3)],'hideMethod':this[_0x3489d5(0xb2)][_0x3489d5(0x7b)](this),'showMethod':this[_0x3489d5(0xf2)][_0x3489d5(0x7b)](this)},this[_0x3489d5(0x6f)](),this[_0x3489d5(0x72)]();}[_0x18e543(0xb6)](){const _0x4db324=_0x18e543;super[_0x4db324(0xb6)](),this[_0x4db324(0xe0)](),this[_0x4db324(0xd2)][_0x4db324(0xe2)](this[_0x4db324(0xc5)]),this[_0x4db324(0xd2)][_0x4db324(0xbe)]();}[_0x18e543(0xe5)](){const _0x1a6c0e=_0x18e543;super[_0x1a6c0e(0xe5)](),this[_0x1a6c0e(0xd2)][_0x1a6c0e(0xe5)](),this[_0x1a6c0e(0x79)][_0x1a6c0e(0xe5)]();}[_0x18e543(0x93)](_0x18c078,_0x1869dd){const _0x464a69=_0x18e543,_0x2252b7=this[_0x464a69(0xa9)](_0x18c078,_0x464a69(0x92),!0x0,_0x1869dd);this[_0x464a69(0xb8)](_0x2252b7,this[_0x464a69(0xda)]),this[_0x464a69(0xd2)][_0x464a69(0xbe)]();}[_0x18e543(0xe6)](_0x23eccc){const _0x3a993f=_0x18e543;this[_0x3a993f(0x6b)](_0x23eccc,this[_0x3a993f(0xda)]),this[_0x3a993f(0x6b)](_0x23eccc,this[_0x3a993f(0xd2)][_0x3a993f(0xc8)]),this[_0x3a993f(0xd2)][_0x3a993f(0xbe)]();}[_0x18e543(0xe4)](_0x51774f,_0x55fb55){const _0x564f14=_0x18e543;let _0x22f06c=this[_0x564f14(0xda)][_0x564f14(0x75)](_0x3a1456=>_0x3a1456['id']===_0x51774f);_0x22f06c||(_0x22f06c=this[_0x564f14(0xd2)][_0x564f14(0xc8)][_0x564f14(0x75)](_0x406164=>_0x406164['id']===_0x51774f)),_0x22f06c&&(_0x22f06c[_0x564f14(0x8a)]=_0x55fb55);}[_0x18e543(0x8d)](_0x7b62bb){const _0x2519f2=_0x18e543;this[_0x2519f2(0x67)][_0x2519f2(0xe8)]();for(const _0x3b815e of _0x7b62bb){const _0x1a3efb=this[_0x2519f2(0xa9)](_0x3b815e,_0x2519f2(0x95),!0x1,!0x1);this[_0x2519f2(0xb8)](_0x1a3efb,this[_0x2519f2(0x67)]);}}[_0x18e543(0xed)](){const _0x330fa9=_0x18e543;this[_0x330fa9(0xda)][_0x330fa9(0xe8)](),this[_0x330fa9(0xd2)][_0x330fa9(0xe8)]();}[_0x18e543(0xb4)](){const _0x2fdbd1=_0x18e543;this[_0x2fdbd1(0x67)][_0x2fdbd1(0xe8)]();}[_0x18e543(0x9a)](_0xc9437e,_0x3c9e77,_0x51d843){const _0x26092d=_0x18e543;this[_0x26092d(0x79)][_0x26092d(0x9a)](_0xc9437e,_0x3c9e77,_0x51d843);}[_0x18e543(0xb2)](){const _0x155d78=_0x18e543;this[_0x155d78(0x7f)](!0x1);}[_0x18e543(0xf2)](){const _0x3befa5=_0x18e543;this[_0x3befa5(0x7f)](!0x0);}[_0x18e543(0xb1)](){const _0x1bfa1e=_0x18e543;this[_0x1bfa1e(0xb3)][_0x1bfa1e(0x97)](),this[_0x1bfa1e(0xa8)][_0x1bfa1e(0xeb)]=!0x1,this[_0x1bfa1e(0x80)]&&this[_0x1bfa1e(0x80)][_0x1bfa1e(0xe8)]();}[_0x18e543(0x89)](){const _0x441e5d=_0x18e543;this[_0x441e5d(0xb3)][_0x441e5d(0x7a)](),this[_0x441e5d(0xa8)][_0x441e5d(0xeb)]=!0x0;}[_0x18e543(0x7d)](_0x3c50d3){const _0x1023de=_0x18e543;this[_0x1023de(0x79)][_0x1023de(0x87)](_0x3c50d3),this[_0x1023de(0xa8)][_0x1023de(0xeb)]=!0x0;}[_0x18e543(0x88)](_0x4ae0a5,_0x232037,_0x30d991,_0x6036d5){const _0x1e8d7b=_0x18e543;this[_0x1e8d7b(0x79)][_0x1e8d7b(0x88)](_0x4ae0a5,_0x30d991,_0x6036d5);}[_0x18e543(0xaf)](_0x1f8eb7){const _0x3d6159=_0x18e543;this[_0x3d6159(0x79)][_0x3d6159(0xaf)](_0x1f8eb7),this[_0x3d6159(0xa8)][_0x3d6159(0xeb)]=!0x1;}[_0x18e543(0x76)](_0x560eae){const _0x344c8d=_0x18e543;this[_0x344c8d(0xb7)](this[_0x344c8d(0xe3)],this[_0x344c8d(0xca)],_0x560eae),this[_0x344c8d(0xa3)](_0x560eae);}[_0x18e543(0xa3)](_0xf8510d){const _0x4a566f=_0x18e543,_0x41fffc=!_0xf8510d[_0x4a566f(0x78)][_0x4a566f(0x70)]&&_0xf8510d[_0x4a566f(0x78)][_0x4a566f(0xd5)],_0x6feae4=_0xf8510d[_0x4a566f(0xf1)][_0x4a566f(0xd5)],_0x932646=_0xf8510d[_0x4a566f(0xf0)][_0x4a566f(0xd5)];this[_0x4a566f(0xa8)][_0x4a566f(0xe7)]=_0x41fffc||_0x6feae4||_0x932646;}[_0x18e543(0x6f)](){const _0x45c6e0=_0x18e543;this[_0x45c6e0(0xcd)]({'tag':_0x45c6e0(0x94),'attributes':{'class':[Eo,_0x45c6e0(0x8c)]},'children':[{'tag':_0x45c6e0(0x94),'attributes':{'class':vo},'children':this[_0x45c6e0(0xda)]}]});}[_0x18e543(0x72)](){const _0x53d376=_0x18e543;this[_0x53d376(0xa8)]['on'](_0x53d376(0xdc),()=>{const _0x5b4a79=_0x53d376;this[_0x5b4a79(0xbb)]();});}[_0x18e543(0xea)](_0x3ccad2){const _0xf9e0fd=_0x18e543,_0x17d6a8=new _0x1cb146(_0x3ccad2);return _0x17d6a8[_0xf9e0fd(0xb5)]({'label':_0x44b1f2(_0x3ccad2,_0xf9e0fd(0xc9)),'class':Lo+'\x20'+Io,'icon':_0xd794e7,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x17d6a8;}[_0x18e543(0x6d)](_0x4d152f){const _0x5235cd=_0x18e543;return this[_0x5235cd(0xad)](_0x4d152f,Vo);}[_0x18e543(0x9c)](_0x5137c9){const _0x221270=_0x18e543,_0x104d08=this[_0x221270(0xad)](_0x5137c9,Po);return this[_0x221270(0xc3)](_0x104d08,_0x5137c9),_0x104d08;}[_0x18e543(0xdb)](_0x59f607,_0x20c6d3){const _0x4ab49d=_0x18e543,_0x243487={'searchInputVisibleFrom':_0x20c6d3[_0x4ab49d(0xdf)],'onBackToContext':()=>{const _0x4958d2=_0x4ab49d;this[_0x4958d2(0xf2)](),this[_0x4958d2(0xe3)][_0x4958d2(0xa1)]({'target':this[_0x4958d2(0xa8)][_0x4958d2(0xc5)],'limiter':this[_0x4958d2(0xe9)](),'positions':jo});},'onResourceSelected':(_0x31754d,_0x2ac612)=>{const _0x5f0870=_0x4ab49d;this[_0x5f0870(0xbc)](_0x5f0870(0x65),{'source':_0x31754d,'resource':_0x2ac612});},'onLoadSourceResources':_0x1c789a=>{const _0x7c0147=_0x4ab49d;this[_0x7c0147(0xbc)](_0x7c0147(0x81),_0x1c789a);},'onBalloonClosed':()=>{const _0x316efa=_0x4ab49d;this[_0x316efa(0xa8)][_0x316efa(0xeb)]=!0x1;},'getLimiterElement':()=>this[_0x4ab49d(0xe9)](),'getTargetElement':()=>this[_0x4ab49d(0xa8)][_0x4ab49d(0xc5)]};return new _0x38255c(_0x59f607,_0x20c6d3[_0x4ab49d(0xba)],_0x243487);}[_0x18e543(0xe9)](){const _0x8fb6ee=_0x18e543;return this[_0x8fb6ee(0xc5)]?.[_0x8fb6ee(0x8b)]('.'+Ho)||document[_0x8fb6ee(0x9f)];}[_0x18e543(0xad)](_0x5de2e8,_0x2d1171){const _0x5daef3=_0x18e543,_0x559167=new _0x33f2c7(_0x5de2e8);return _0x559167[_0x5daef3(0xae)]({'attributes':{'class':_0x2d1171}}),this[_0x5daef3(0xba)][_0x5daef3(0xcf)](_0x559167),_0x559167;}[_0x18e543(0xb7)](_0x540822,_0x22ccc0,_0x39801e){const _0x47f4a4=_0x18e543;if(_0x540822[_0x47f4a4(0xc4)][_0x47f4a4(0xe8)](),!_0x39801e[_0x47f4a4(0x78)][_0x47f4a4(0x70)]&&_0x39801e[_0x47f4a4(0x78)][_0x47f4a4(0xd5)]){const _0x5aff17=this[_0x47f4a4(0x85)](_0x22ccc0,{'label':_0x44b1f2(_0x22ccc0,_0x47f4a4(0x74)),'icon':_0x1ce4bc});_0x5aff17['on'](_0x47f4a4(0xdc),()=>{const _0x17bed2=_0x47f4a4;this[_0x17bed2(0xbc)](_0x17bed2(0xd0)),this[_0x17bed2(0xb2)]();}),_0x540822[_0x47f4a4(0xc4)][_0x47f4a4(0xcf)](_0x5aff17);}if(_0x39801e[_0x47f4a4(0xf1)][_0x47f4a4(0xd5)]){const _0x360f6f=this[_0x47f4a4(0x85)](_0x22ccc0,{'label':_0x44b1f2(_0x22ccc0,_0x47f4a4(0x84)),'icon':_0x40e864});_0x360f6f['on'](_0x47f4a4(0xdc),()=>{const _0x57ca46=_0x47f4a4;this[_0x57ca46(0xb2)](),this[_0x57ca46(0x89)](),this[_0x57ca46(0xb3)][_0x57ca46(0xa1)]({'target':this[_0x57ca46(0xa8)][_0x57ca46(0xc5)],'limiter':this[_0x57ca46(0xe9)](),'positions':jo}),this[_0x57ca46(0x80)][_0x57ca46(0xc1)]();}),_0x540822[_0x47f4a4(0xc4)][_0x47f4a4(0xcf)](_0x360f6f);}if(_0x39801e[_0x47f4a4(0xf0)][_0x47f4a4(0xd5)]){const _0x3100a2=new _0x143f99(_0x22ccc0);_0x3100a2[_0x47f4a4(0xb5)]({'label':_0x44b1f2(_0x22ccc0,_0x47f4a4(0xc2)),'icon':_0x11ec26,'withText':!0x0,'tooltip':!0x0,'class':Ro,'allowMultipleFiles':!0x0}),_0x3100a2['on'](_0x47f4a4(0xb0),(_0xcd4ff1,_0x334213)=>{const _0x209c80=_0x47f4a4;this[_0x209c80(0xbc)](_0x209c80(0xa4),_0x334213),this[_0x209c80(0xb2)]();}),_0x3100a2[_0x47f4a4(0xc7)]=!0x0,_0x540822[_0x47f4a4(0xc4)][_0x47f4a4(0xcf)](_0x3100a2);}for(const _0x19687d of _0x39801e[_0x47f4a4(0xe1)]){const _0x26f565=this[_0x47f4a4(0x85)](_0x22ccc0,{'label':_0x19687d[_0x47f4a4(0x91)],'icon':_0x19687d[_0x47f4a4(0x8e)]||_0x30ee8d,'type':_0x47f4a4(0xd4)});_0x540822[_0x47f4a4(0xc4)][_0x47f4a4(0xcf)](_0x26f565),_0x26f565['on'](_0x47f4a4(0xdc),()=>{const _0x336363=_0x47f4a4;this[_0x336363(0xb2)](),this[_0x336363(0x7d)](_0x19687d);});}}[_0x18e543(0xc3)](_0x243e43,_0x39027c){const _0x5215b0=_0x18e543;this[_0x5215b0(0x80)]=new _0x115e3e(_0x39027c),this[_0x5215b0(0x80)]['on'](_0x5215b0(0xa6),(_0x2ea831,_0xa3c004)=>{const _0x4c3e0a=_0x5215b0;this[_0x4c3e0a(0xd3)](_0xa3c004);}),this[_0x5215b0(0x80)]['on'](_0x5215b0(0xd1),()=>{const _0x4e27fa=_0x5215b0;this[_0x4e27fa(0xb1)](),this[_0x4e27fa(0xf2)](),this[_0x4e27fa(0xe3)][_0x4e27fa(0xa1)]({'target':this[_0x4e27fa(0xa8)][_0x4e27fa(0xc5)],'limiter':this[_0x4e27fa(0xe9)](),'positions':jo});}),this[_0x5215b0(0x80)]['on'](_0x5215b0(0xf3),()=>{const _0x20e818=_0x5215b0;this[_0x20e818(0xb3)][_0x20e818(0x69)]&&this[_0x20e818(0xb3)][_0x20e818(0xa1)]({'target':this[_0x20e818(0xa8)][_0x20e818(0xc5)],'limiter':this[_0x20e818(0xe9)](),'positions':jo});}),_0x243e43[_0x5215b0(0xc4)][_0x5215b0(0xcf)](this[_0x5215b0(0x80)]);}[_0x18e543(0x85)](_0x22d035,_0x55bb73){const _0x15eae9=_0x18e543,_0x3bc934=_0x15eae9(0xd4)===_0x55bb73[_0x15eae9(0x99)]?new SourcesBalloonButtonView(_0x22d035):new _0x1cb146(_0x22d035);return _0x3bc934[_0x15eae9(0xb5)]({'label':_0x55bb73[_0x15eae9(0x91)],'icon':_0x55bb73[_0x15eae9(0x8e)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Ro}),_0x3bc934;}[_0x18e543(0xe0)](){const _0xd62364=_0x18e543;this[_0xd62364(0xf4)](),this[_0xd62364(0x68)]();}[_0x18e543(0x68)](){const _0x14bda5=_0x18e543;_0x3a88fc({'emitter':this[_0x14bda5(0xb3)],'contextElements':[this[_0x14bda5(0xb3)][_0x14bda5(0xc5)]],'callback':()=>{const _0xb0d9fd=_0x14bda5;this[_0xb0d9fd(0xb1)]();},'activator':()=>this[_0x14bda5(0xb3)][_0x14bda5(0x69)]});}[_0x18e543(0x7f)](_0x4d0147){const _0x58ffeb=_0x18e543,_0x13ff1f=this[_0x58ffeb(0xbf)];_0x13ff1f[_0x58ffeb(0xd7)][_0x58ffeb(0xeb)]=_0x4d0147,_0x4d0147?_0x13ff1f[_0x58ffeb(0xd8)][_0x58ffeb(0x7a)]():_0x13ff1f[_0x58ffeb(0xd8)][_0x58ffeb(0x97)]();}[_0x18e543(0xf4)](){const _0x128402=_0x18e543,{balloonView:_0x50e50d,buttonView:_0x5c07bc,hideMethod:_0x490a23}=this[_0x128402(0xbf)];_0x3a88fc({'emitter':_0x50e50d,'contextElements':[_0x50e50d[_0x128402(0xc5)],_0x5c07bc[_0x128402(0xc5)]],'callback':()=>{_0x490a23();},'activator':()=>_0x5c07bc[_0x128402(0xeb)]&&!this[_0x128402(0xb3)][_0x128402(0x69)]&&!this[_0x128402(0x79)][_0x128402(0x8f)]()});}[_0x18e543(0xa9)](_0x1d02ce,_0x2811d1,_0x2f484a=!0x1,_0x496ad0=!0x1){const _0x28fb88=_0x18e543,_0x347032=_0x28fb88(0x95)===_0x2811d1||!0x0===_0x1d02ce[_0x28fb88(0xa2)],_0x380be6=new _0xd6e288(this[_0x28fb88(0xca)],_0x1d02ce,_0x347032,_0x2f484a,_0x496ad0);return _0x347032||_0x380be6['on'](_0x28fb88(0xcc),()=>{const _0x170486=_0x28fb88;this[_0x170486(0xbc)](_0x170486(0xe6),_0x380be6['id']);}),_0x380be6;}[_0x18e543(0xb8)](_0x289636,_0x470f8e){const _0x4a7fcc=_0x18e543;_0x470f8e[_0x4a7fcc(0xcf)](_0x289636,0x0);}[_0x18e543(0x6b)](_0x16abed,_0x4192ab){const _0x3e7f02=_0x18e543,_0x184136=_0x4192ab[_0x3e7f02(0x75)](_0x369317=>_0x369317['id']===_0x16abed);_0x184136&&_0x4192ab[_0x3e7f02(0x7c)](_0x184136);}[_0x18e543(0xbb)](){const _0x342381=_0x18e543;this[_0x342381(0xa8)][_0x342381(0xeb)]?this[_0x342381(0xb2)]():(this[_0x342381(0xf2)](),this[_0x342381(0xe3)][_0x342381(0xa1)]({'target':this[_0x342381(0xa8)][_0x342381(0xc5)],'limiter':this[_0x342381(0xe9)](),'positions':jo}));}[_0x18e543(0xd3)](_0x3e2d90){const _0x2dd79c=_0x18e543;this[_0x2dd79c(0x80)][_0x2dd79c(0xe8)](),this[_0x2dd79c(0xb1)](),this[_0x2dd79c(0xbc)](_0x2dd79c(0x7e),_0x3e2d90);}}function _0x4950(){const _0x10e884=['_createContextButton','defaultPositions','ck-ai-chat-context-controls__balloon-button-source','29728523rUYMgJ','_createBaseBalloonPanel','extendTemplate','closeSourceResourceBalloon','done','hideUrlBalloonPanel','hideAddContextBalloonPanel','_urlBalloonPanelView','clearConversationContextItems','set','render','_setBalloonPanelContent','_addContextToCollection','504843oTSOpt','bodyCollection','_handleAddContextButtonClick','fire','menuitem','reorganizeChips','_addContextBalloonConfig','northArrowSouth','focus','AI_CHAT_CONTEXT_FILE_LABEL','_addUrlContent','content','element','5uYTWwA','tooltip','overflowChips','AI_CHAT_CONTEXT_ADD_CONTEXT','locale','children','removeContextItemChip','setTemplate','ck-ai-chat-context-controls__add-context-button','add','addDocumentToContext','cancel','_overflowManager','_handleUrlSubmit','source','enabled','northArrowSouthEast','buttonView','balloonView','northArrowSouthWest','_currentContextsChips','_createResourcesBalloonView','execute','ck-ai-chat-context-controls__add-context-balloon-panel','2VHADBr','searchInputVisibleFrom','_setupAllBalloonClickOutsideHandlers','sources','setContainerElement','_addContextBalloonPanelView','setContextItemLoading','destroy','removeContextItem','isEnabled','clear','_getLimiterElement','_createAddContextButtonView','isOn','southArrowNorth','clearCurrentContextItems','_createArrowView','84238LQFKqN','files','urls','showAddContextBalloonPanel','refreshBalloon','_setupAddContextBalloonClickOutsideHandler','ck-ai-chat-context-controls__show-more-balloon-panel','addResourceToContext','__arrow','_conversationContextsChips','_setupUrlBalloonClickOutsideHandler','isVisible','ck-ai-chat-context-controls','_removeContextFromCollection','ck-ai-chat-context-controls__pending-contexts','_createAddContextBalloonPanelView','3732336MBwhEd','_setupTemplate','isHidden','southArrowNorthWest','_bindEventHandlers','ck-ai-chat-controls_context_show-more-button','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','find','setAddContextOptions','54ywtZpZ','document','_resourcesBalloonView','show','bind','remove','_showSourceResourcesBalloon','addUrlToContext','_toggleAddContextBalloon','_urlInputView','loadSourceResources','12700DRFwoQ','ck-ai-chat-context-chips-wrapper-balloon','AI_CHAT_CONTEXT_URL_LABEL','_createBalloonButton','ck-ai-chat','showSourceResourcesBalloon','populateSourceResourceBalloon','showUrlBalloonPanel','isLoading','closest','ck-reset_all-excluded','setConversationContext','icon','isAnyResourceBalloonVisible','ck-ai-chat-controls-button','label','current','addContextItem','div','conversation','arrowView','hide','496325PKKrOc','type','updateResourceState','ck-ai-chat-context-controls__url-balloon-panel','_createUrlBalloonPanelView','2876424cVkeXa','createCollection','body','9063CYzOur','pin','isReadOnly','_setAddContextButtonEnabled','addFileToContext','southArrowNorthEast','submitUrl','ck-ai-chat-context-controls__balloon-button','addContextButtonView'];_0x4950=function(){return _0x10e884;};return _0x4950();}export class SourcesBalloonButtonView extends _0x1cb146{[_0x18e543(0x96)];constructor(_0x2d8ff6){const _0x273514=_0x18e543;super(_0x2d8ff6),this[_0x273514(0xb5)]({'withText':!0x0,'role':_0x273514(0xbd)}),this[_0x273514(0x96)]=this[_0x273514(0xee)](),this[_0x273514(0xae)]({'attributes':{'class':[Uo]}});}[_0x18e543(0xb6)](){const _0x44b708=_0x18e543;super[_0x44b708(0xb6)](),this[_0x44b708(0xcb)][_0x44b708(0xcf)](this[_0x44b708(0x96)]);}[_0x18e543(0xee)](){const _0x212107=_0x18e543,_0x5e0f5c=new _0x28a6ad();return _0x5e0f5c[_0x212107(0xc4)]=_0x55a1dd,_0x5e0f5c[_0x212107(0xae)]({'attributes':{'class':Uo+_0x212107(0x66)}}),_0x5e0f5c;}}
23
+ const _0x30b887=_0x2e49;function _0x9c12(){const _0x286ab6=['removeContextItem','balloonView','_urlBalloonPanelView','_conversationContextsChips','menuitem','updateResourceState','isLoading','AI_CHAT_CONTEXT_URL_LABEL','_createResourcesBalloonView','_createContextButton','_createUrlBalloonPanelView','addFileToContext','1328874uVfaoR','ck-ai-chat-context-chips-wrapper-balloon','_showSourceResourcesBalloon','children','extendTemplate','setAddContextOptions','focus','ck-ai-chat-context-controls','_urlInputView','enabled','closest','_setupAllBalloonClickOutsideHandlers','hideUrlBalloonPanel','northArrowSouthEast','content','reorganizeChips','1137UsvIcr','_setAddContextButtonEnabled','_overflowManager','_setupTemplate','bind','ck-ai-chat','showSourceResourcesBalloon','hide','_handleAddContextButtonClick','showAddContextBalloonPanel','sources','AI_CHAT_CONTEXT_FILE_LABEL','clearCurrentContextItems','clearConversationContextItems','current','refreshBalloon','removeContextItemChip','7610596EFPLPM','loadSourceResources','_addContextBalloonConfig','southArrowNorthEast','_currentContextsChips','_setBalloonPanelContent','isEnabled','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','_createBalloonButton','_createArrowView','_createBaseBalloonPanel','body','hideAddContextBalloonPanel','southArrowNorthWest','tooltip','ck-ai-chat-context-controls__add-context-button','overflowChips','_addUrlContent','defaultPositions','submitUrl','done','_createAddContextBalloonPanelView','_addContextBalloonPanelView','execute','add','14004zDoFRI','populateSourceResourceBalloon','icon','_addContextToCollection','type','isAnyResourceBalloonVisible','_toggleAddContextBalloon','bodyCollection','13956624whtoHo','ck-ai-chat-controls_context_show-more-button','createCollection','fire','setContainerElement','isReadOnly','addResourceToContext','ck-ai-chat-context-controls__balloon-button','ck-ai-chat-context-controls__add-context-balloon-panel','closeSourceResourceBalloon','setContextItemLoading','files','AI_CHAT_CONTEXT_ADD_CONTEXT','ck-ai-chat-controls-button','arrowView','_getLimiterElement','showUrlBalloonPanel','destroy','2154xAbeYK','_setupUrlBalloonClickOutsideHandler','5376705dsQCAd','setConversationContext','element','source','remove','ck-ai-chat-context-controls__show-more-balloon-panel','northArrowSouthWest','southArrowNorth','div','searchInputVisibleFrom','addDocumentToContext','cancel','addContextItem','49cmMFFu','addUrlToContext','document','set','ck-ai-chat-context-controls__pending-contexts','setTemplate','ck-reset_all-excluded','locale','53050MgTYNX','addContextButtonView','_bindEventHandlers','clear','isOn','label','northArrowSouth','_resourcesBalloonView','ck-ai-chat-context-controls__url-balloon-panel','_setupAddContextBalloonClickOutsideHandler','buttonView','ck-ai-chat-context-controls__balloon-button-source','_removeContextFromCollection','_createAddContextButtonView','_handleUrlSubmit','5157000ZPDbCH','render','__arrow','pin','isVisible','isHidden','find','conversation','show','urls'];_0x9c12=function(){return _0x286ab6;};return _0x9c12();}(function(_0x395c40,_0x4fead1){const _0x181cb1=_0x2e49,_0x362b1b=_0x395c40();while(!![]){try{const _0x3150fa=parseInt(_0x181cb1(0x14a))/0x1*(parseInt(_0x181cb1(0x18e))/0x2)+parseInt(_0x181cb1(0x190))/0x3+parseInt(_0x181cb1(0x15b))/0x4+parseInt(_0x181cb1(0x124))/0x5+parseInt(_0x181cb1(0x13a))/0x6*(parseInt(_0x181cb1(0x10d))/0x7)+parseInt(_0x181cb1(0x17c))/0x8+-parseInt(_0x181cb1(0x174))/0x9*(parseInt(_0x181cb1(0x115))/0xa);if(_0x3150fa===_0x4fead1)break;else _0x362b1b['push'](_0x362b1b['shift']());}catch(_0x172ae5){_0x362b1b['push'](_0x362b1b['shift']());}}}(_0x9c12,0xf1fd0));import{BalloonPanelView as _0x55fc14,ButtonView as _0x4b3a92,clickOutsideHandler as _0x48c440,FileDialogButtonView as _0x3ee739,IconView as _0x16bf4f,View as _0x22f250}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x4ea551,IconDocument as _0x103fe2,IconDocumentOutline as _0x9d13af,IconDropdownArrow as _0x54d1b5,IconLink as _0x4cdb0b,IconPaperClip as _0x56f4ef}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x2a46dc}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x147446}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x425414}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x2c614d}from'../../../aicore/utils/common-translations.js';function _0x2e49(_0x423693,_0xa0eac9){const _0x9c1210=_0x9c12();return _0x2e49=function(_0x2e4953,_0x301025){_0x2e4953=_0x2e4953-0x10a;let _0x273827=_0x9c1210[_0x2e4953];return _0x273827;},_0x2e49(_0x423693,_0xa0eac9);}import{AIChatResourcesBalloonView as _0x20c6df}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x30b887(0x10a),_0x30b887(0x139),_0x30b887(0x10e),_0x30b887(0x182),_0x30b887(0x12e),_0x30b887(0x15c)];const Eo=_0x30b887(0x141),vo=_0x30b887(0x111),Vo=_0x30b887(0x184),Io=_0x30b887(0x16a),Po=_0x30b887(0x11d),Ro=_0x30b887(0x183),Uo=_0x30b887(0x120),Lo=_0x30b887(0x189),No=_0x30b887(0x13b),Oo=_0x30b887(0x17d),Mo=_0x30b887(0x195),Ho=_0x30b887(0x14f),jo=[_0x55fc14[_0x30b887(0x16d)][_0x30b887(0x196)],_0x55fc14[_0x30b887(0x16d)][_0x30b887(0x11b)],_0x55fc14[_0x30b887(0x16d)][_0x30b887(0x147)],_0x55fc14[_0x30b887(0x16d)][_0x30b887(0x168)],_0x55fc14[_0x30b887(0x16d)][_0x30b887(0x197)],_0x55fc14[_0x30b887(0x16d)][_0x30b887(0x15e)]];export class AIChatContextPanelView extends _0x22f250{[_0x30b887(0x116)];[_0x30b887(0x15f)]=this[_0x30b887(0x17e)]();[_0x30b887(0x131)]=this[_0x30b887(0x17e)]();[_0x30b887(0x14c)];[_0x30b887(0x171)];[_0x30b887(0x130)];[_0x30b887(0x142)];[_0x30b887(0x11c)];[_0x30b887(0x15d)];[_0x30b887(0x17b)];constructor(_0xdd0829,_0x38f752){const _0x5aa827=_0x30b887;super(_0xdd0829),this[_0x5aa827(0x17b)]=_0x38f752[_0x5aa827(0x17b)],this[_0x5aa827(0x15f)]=this[_0x5aa827(0x17e)](),this[_0x5aa827(0x131)]=this[_0x5aa827(0x17e)](),this[_0x5aa827(0x116)]=this[_0x5aa827(0x122)](_0xdd0829),this[_0x5aa827(0x171)]=this[_0x5aa827(0x170)](_0xdd0829),this[_0x5aa827(0x130)]=this[_0x5aa827(0x138)](_0xdd0829),this[_0x5aa827(0x11c)]=this[_0x5aa827(0x136)](_0xdd0829,_0x38f752);const _0x19f37f={'cssClasses':{'showMoreButton':Oo,'showMoreBalloon':Mo,'overflowContainer':No,'controlsButton':Lo}};this[_0x5aa827(0x14c)]=new _0x425414(_0xdd0829,this[_0x5aa827(0x15f)],_0x19f37f,this[_0x5aa827(0x17b)],this),this[_0x5aa827(0x15d)]={'buttonView':this[_0x5aa827(0x116)],'balloonView':this[_0x5aa827(0x171)],'hideMethod':this[_0x5aa827(0x167)][_0x5aa827(0x14e)](this),'showMethod':this[_0x5aa827(0x153)][_0x5aa827(0x14e)](this)},this[_0x5aa827(0x14d)](),this[_0x5aa827(0x117)]();}[_0x30b887(0x125)](){const _0x2fdf6f=_0x30b887;super[_0x2fdf6f(0x125)](),this[_0x2fdf6f(0x145)](),this[_0x2fdf6f(0x14c)][_0x2fdf6f(0x180)](this[_0x2fdf6f(0x192)]),this[_0x2fdf6f(0x14c)][_0x2fdf6f(0x149)]();}[_0x30b887(0x18d)](){const _0x10231f=_0x30b887;super[_0x10231f(0x18d)](),this[_0x10231f(0x14c)][_0x10231f(0x18d)](),this[_0x10231f(0x11c)][_0x10231f(0x18d)]();}[_0x30b887(0x10c)](_0xeff4ce,_0x1ae3ba){const _0x2ddbcf=_0x30b887,_0x1da06b=this[_0x2ddbcf(0x137)](_0xeff4ce,_0x2ddbcf(0x158),!0x0,_0x1ae3ba);this[_0x2ddbcf(0x177)](_0x1da06b,this[_0x2ddbcf(0x15f)]),this[_0x2ddbcf(0x14c)][_0x2ddbcf(0x149)]();}[_0x30b887(0x12e)](_0x37ef44){const _0x1f0995=_0x30b887;this[_0x1f0995(0x121)](_0x37ef44,this[_0x1f0995(0x15f)]),this[_0x1f0995(0x121)](_0x37ef44,this[_0x1f0995(0x14c)][_0x1f0995(0x16b)]),this[_0x1f0995(0x14c)][_0x1f0995(0x149)]();}[_0x30b887(0x186)](_0x13583a,_0x45d997){const _0x47d71d=_0x30b887;let _0x4c1f2c=this[_0x47d71d(0x15f)][_0x47d71d(0x12a)](_0xff9230=>_0xff9230['id']===_0x13583a);_0x4c1f2c||(_0x4c1f2c=this[_0x47d71d(0x14c)][_0x47d71d(0x16b)][_0x47d71d(0x12a)](_0x3c7c9d=>_0x3c7c9d['id']===_0x13583a)),_0x4c1f2c&&(_0x4c1f2c[_0x47d71d(0x134)]=_0x45d997);}[_0x30b887(0x191)](_0x5413f6){const _0x1a72f6=_0x30b887;this[_0x1a72f6(0x131)][_0x1a72f6(0x118)]();for(const _0x666605 of _0x5413f6){const _0x28b13a=this[_0x1a72f6(0x137)](_0x666605,_0x1a72f6(0x12b),!0x1,!0x1);this[_0x1a72f6(0x177)](_0x28b13a,this[_0x1a72f6(0x131)]);}}[_0x30b887(0x156)](){const _0x58fad2=_0x30b887;this[_0x58fad2(0x15f)][_0x58fad2(0x118)](),this[_0x58fad2(0x14c)][_0x58fad2(0x118)]();}[_0x30b887(0x157)](){const _0x3c9f7c=_0x30b887;this[_0x3c9f7c(0x131)][_0x3c9f7c(0x118)]();}[_0x30b887(0x133)](_0x335a41,_0x2204b5,_0x4b9861){const _0x4f8668=_0x30b887;this[_0x4f8668(0x11c)][_0x4f8668(0x133)](_0x335a41,_0x2204b5,_0x4b9861);}[_0x30b887(0x167)](){const _0x3973c2=_0x30b887;this[_0x3973c2(0x17a)](!0x1);}[_0x30b887(0x153)](){const _0x242df4=_0x30b887;this[_0x242df4(0x17a)](!0x0);}[_0x30b887(0x146)](){const _0x32f29e=_0x30b887;this[_0x32f29e(0x130)][_0x32f29e(0x151)](),this[_0x32f29e(0x116)][_0x32f29e(0x119)]=!0x1,this[_0x32f29e(0x142)]&&this[_0x32f29e(0x142)][_0x32f29e(0x118)]();}[_0x30b887(0x18c)](){const _0x2a7746=_0x30b887;this[_0x2a7746(0x130)][_0x2a7746(0x12c)](),this[_0x2a7746(0x116)][_0x2a7746(0x119)]=!0x0;}[_0x30b887(0x13c)](_0x4cc99b){const _0x3bdc74=_0x30b887;this[_0x3bdc74(0x11c)][_0x3bdc74(0x150)](_0x4cc99b),this[_0x3bdc74(0x116)][_0x3bdc74(0x119)]=!0x0;}[_0x30b887(0x175)](_0x13c5e2,_0x421ed5,_0x260f8c,_0x504dba){const _0x3318ba=_0x30b887;this[_0x3318ba(0x11c)][_0x3318ba(0x175)](_0x13c5e2,_0x260f8c,_0x504dba);}[_0x30b887(0x185)](_0x53f041){const _0x844eb=_0x30b887;this[_0x844eb(0x11c)][_0x844eb(0x185)](_0x53f041),this[_0x844eb(0x116)][_0x844eb(0x119)]=!0x1;}[_0x30b887(0x13f)](_0x2914aa){const _0x4b765c=_0x30b887;this[_0x4b765c(0x160)](this[_0x4b765c(0x171)],this[_0x4b765c(0x114)],_0x2914aa),this[_0x4b765c(0x14b)](_0x2914aa);}[_0x30b887(0x14b)](_0x4347c5){const _0x2d5648=_0x30b887,_0x23a221=!_0x4347c5[_0x2d5648(0x10f)][_0x2d5648(0x129)]&&_0x4347c5[_0x2d5648(0x10f)][_0x2d5648(0x143)],_0x185a05=_0x4347c5[_0x2d5648(0x12d)][_0x2d5648(0x143)],_0xaa5136=_0x4347c5[_0x2d5648(0x187)][_0x2d5648(0x143)];this[_0x2d5648(0x116)][_0x2d5648(0x161)]=_0x23a221||_0x185a05||_0xaa5136;}[_0x30b887(0x14d)](){const _0x52188a=_0x30b887;this[_0x52188a(0x112)]({'tag':_0x52188a(0x198),'attributes':{'class':[Eo,_0x52188a(0x113)]},'children':[{'tag':_0x52188a(0x198),'attributes':{'class':vo},'children':this[_0x52188a(0x15f)]}]});}[_0x30b887(0x117)](){const _0x17e029=_0x30b887;this[_0x17e029(0x116)]['on'](_0x17e029(0x172),()=>{const _0x158649=_0x17e029;this[_0x158649(0x152)]();});}[_0x30b887(0x122)](_0x382e36){const _0x3f6bf5=_0x30b887,_0x5f042e=new _0x4b3a92(_0x382e36);return _0x5f042e[_0x3f6bf5(0x110)]({'label':_0x2c614d(_0x382e36,_0x3f6bf5(0x188)),'class':Lo+'\x20'+Io,'icon':_0x56f4ef,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x5f042e;}[_0x30b887(0x170)](_0x1542bc){const _0x5a7ac9=_0x30b887;return this[_0x5a7ac9(0x165)](_0x1542bc,Vo);}[_0x30b887(0x138)](_0x1b82aa){const _0x234e47=_0x30b887,_0x377a50=this[_0x234e47(0x165)](_0x1b82aa,Po);return this[_0x234e47(0x16c)](_0x377a50,_0x1b82aa),_0x377a50;}[_0x30b887(0x136)](_0x3cc582,_0x2d42b7){const _0x4e711e=_0x30b887,_0x2850fe={'searchInputVisibleFrom':_0x2d42b7[_0x4e711e(0x199)],'onBackToContext':()=>{const _0x55e688=_0x4e711e;this[_0x55e688(0x153)](),this[_0x55e688(0x171)][_0x55e688(0x127)]({'target':this[_0x55e688(0x116)][_0x55e688(0x192)],'limiter':this[_0x55e688(0x18b)](),'positions':jo});},'onResourceSelected':(_0x2ab98d,_0x51c6d2)=>{const _0x5d0c0f=_0x4e711e;this[_0x5d0c0f(0x17f)](_0x5d0c0f(0x182),{'source':_0x2ab98d,'resource':_0x51c6d2});},'onLoadSourceResources':_0x2f19fa=>{const _0x5a6a0f=_0x4e711e;this[_0x5a6a0f(0x17f)](_0x5a6a0f(0x15c),_0x2f19fa);},'onBalloonClosed':()=>{const _0x494a05=_0x4e711e;this[_0x494a05(0x116)][_0x494a05(0x119)]=!0x1;},'getLimiterElement':()=>this[_0x4e711e(0x18b)](),'getTargetElement':()=>this[_0x4e711e(0x116)][_0x4e711e(0x192)]};return new _0x20c6df(_0x3cc582,_0x2d42b7[_0x4e711e(0x17b)],_0x2850fe);}[_0x30b887(0x18b)](){const _0x5bae44=_0x30b887;return this[_0x5bae44(0x192)]?.[_0x5bae44(0x144)]('.'+Ho)||document[_0x5bae44(0x166)];}[_0x30b887(0x165)](_0x319461,_0x5b22e7){const _0xe6f2af=_0x30b887,_0x1c8452=new _0x55fc14(_0x319461);return _0x1c8452[_0xe6f2af(0x13e)]({'attributes':{'class':_0x5b22e7}}),this[_0xe6f2af(0x17b)][_0xe6f2af(0x173)](_0x1c8452),_0x1c8452;}[_0x30b887(0x160)](_0x30f697,_0x2750eb,_0x1d4405){const _0x7fadb4=_0x30b887;if(_0x30f697[_0x7fadb4(0x148)][_0x7fadb4(0x118)](),!_0x1d4405[_0x7fadb4(0x10f)][_0x7fadb4(0x129)]&&_0x1d4405[_0x7fadb4(0x10f)][_0x7fadb4(0x143)]){const _0x53fd66=this[_0x7fadb4(0x163)](_0x2750eb,{'label':_0x2c614d(_0x2750eb,_0x7fadb4(0x162)),'icon':_0x103fe2});_0x53fd66['on'](_0x7fadb4(0x172),()=>{const _0x22cd56=_0x7fadb4;this[_0x22cd56(0x17f)](_0x22cd56(0x10a)),this[_0x22cd56(0x167)]();}),_0x30f697[_0x7fadb4(0x148)][_0x7fadb4(0x173)](_0x53fd66);}if(_0x1d4405[_0x7fadb4(0x12d)][_0x7fadb4(0x143)]){const _0x57e77e=this[_0x7fadb4(0x163)](_0x2750eb,{'label':_0x2c614d(_0x2750eb,_0x7fadb4(0x135)),'icon':_0x4cdb0b});_0x57e77e['on'](_0x7fadb4(0x172),()=>{const _0x5c9f7e=_0x7fadb4;this[_0x5c9f7e(0x167)](),this[_0x5c9f7e(0x18c)](),this[_0x5c9f7e(0x130)][_0x5c9f7e(0x127)]({'target':this[_0x5c9f7e(0x116)][_0x5c9f7e(0x192)],'limiter':this[_0x5c9f7e(0x18b)](),'positions':jo}),this[_0x5c9f7e(0x142)][_0x5c9f7e(0x140)]();}),_0x30f697[_0x7fadb4(0x148)][_0x7fadb4(0x173)](_0x57e77e);}if(_0x1d4405[_0x7fadb4(0x187)][_0x7fadb4(0x143)]){const _0x4d2e57=new _0x3ee739(_0x2750eb);_0x4d2e57[_0x7fadb4(0x110)]({'label':_0x2c614d(_0x2750eb,_0x7fadb4(0x155)),'icon':_0x4ea551,'withText':!0x0,'tooltip':!0x0,'class':Ro,'allowMultipleFiles':!0x0}),_0x4d2e57['on'](_0x7fadb4(0x16f),(_0xc90907,_0x41ae67)=>{const _0xf2bb19=_0x7fadb4;this[_0xf2bb19(0x17f)](_0xf2bb19(0x139),_0x41ae67),this[_0xf2bb19(0x167)]();}),_0x4d2e57[_0x7fadb4(0x169)]=!0x0,_0x30f697[_0x7fadb4(0x148)][_0x7fadb4(0x173)](_0x4d2e57);}for(const _0x38a68f of _0x1d4405[_0x7fadb4(0x154)]){const _0x54f7bb=this[_0x7fadb4(0x163)](_0x2750eb,{'label':_0x38a68f[_0x7fadb4(0x11a)],'icon':_0x38a68f[_0x7fadb4(0x176)]||_0x9d13af,'type':_0x7fadb4(0x193)});_0x30f697[_0x7fadb4(0x148)][_0x7fadb4(0x173)](_0x54f7bb),_0x54f7bb['on'](_0x7fadb4(0x172),()=>{const _0x2ee5b8=_0x7fadb4;this[_0x2ee5b8(0x167)](),this[_0x2ee5b8(0x13c)](_0x38a68f);});}}[_0x30b887(0x16c)](_0xb98550,_0x32db84){const _0x165e0d=_0x30b887;this[_0x165e0d(0x142)]=new _0x147446(_0x32db84),this[_0x165e0d(0x142)]['on'](_0x165e0d(0x16e),(_0x19c5fc,_0x78e9f0)=>{const _0x20d441=_0x165e0d;this[_0x20d441(0x123)](_0x78e9f0);}),this[_0x165e0d(0x142)]['on'](_0x165e0d(0x10b),()=>{const _0x18c011=_0x165e0d;this[_0x18c011(0x146)](),this[_0x18c011(0x153)](),this[_0x18c011(0x171)][_0x18c011(0x127)]({'target':this[_0x18c011(0x116)][_0x18c011(0x192)],'limiter':this[_0x18c011(0x18b)](),'positions':jo});}),this[_0x165e0d(0x142)]['on'](_0x165e0d(0x159),()=>{const _0x2dbf50=_0x165e0d;this[_0x2dbf50(0x130)][_0x2dbf50(0x128)]&&this[_0x2dbf50(0x130)][_0x2dbf50(0x127)]({'target':this[_0x2dbf50(0x116)][_0x2dbf50(0x192)],'limiter':this[_0x2dbf50(0x18b)](),'positions':jo});}),_0xb98550[_0x165e0d(0x148)][_0x165e0d(0x173)](this[_0x165e0d(0x142)]);}[_0x30b887(0x163)](_0x2a8362,_0x4cdc4d){const _0x6663fd=_0x30b887,_0x410e9e=_0x6663fd(0x193)===_0x4cdc4d[_0x6663fd(0x178)]?new SourcesBalloonButtonView(_0x2a8362):new _0x4b3a92(_0x2a8362);return _0x410e9e[_0x6663fd(0x110)]({'label':_0x4cdc4d[_0x6663fd(0x11a)],'icon':_0x4cdc4d[_0x6663fd(0x176)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Ro}),_0x410e9e;}[_0x30b887(0x145)](){const _0x746811=_0x30b887;this[_0x746811(0x11e)](),this[_0x746811(0x18f)]();}[_0x30b887(0x18f)](){const _0x4bcdfd=_0x30b887;_0x48c440({'emitter':this[_0x4bcdfd(0x130)],'contextElements':[this[_0x4bcdfd(0x130)][_0x4bcdfd(0x192)]],'callback':()=>{const _0x34c622=_0x4bcdfd;this[_0x34c622(0x146)]();},'activator':()=>this[_0x4bcdfd(0x130)][_0x4bcdfd(0x128)]});}[_0x30b887(0x17a)](_0x5b452b){const _0x1ae95f=_0x30b887,_0x466634=this[_0x1ae95f(0x15d)];_0x466634[_0x1ae95f(0x11f)][_0x1ae95f(0x119)]=_0x5b452b,_0x5b452b?_0x466634[_0x1ae95f(0x12f)][_0x1ae95f(0x12c)]():_0x466634[_0x1ae95f(0x12f)][_0x1ae95f(0x151)]();}[_0x30b887(0x11e)](){const _0x2dfe64=_0x30b887,{balloonView:_0x53c2bb,buttonView:_0x5c51fd,hideMethod:_0x239187}=this[_0x2dfe64(0x15d)];_0x48c440({'emitter':_0x53c2bb,'contextElements':[_0x53c2bb[_0x2dfe64(0x192)],_0x5c51fd[_0x2dfe64(0x192)]],'callback':()=>{_0x239187();},'activator':()=>_0x5c51fd[_0x2dfe64(0x119)]&&!this[_0x2dfe64(0x130)][_0x2dfe64(0x128)]&&!this[_0x2dfe64(0x11c)][_0x2dfe64(0x179)]()});}[_0x30b887(0x137)](_0x5e7a56,_0x1b4303,_0xf66c86=!0x1,_0x1389b5=!0x1){const _0x2628f3=_0x30b887,_0x2f6d42=_0x2628f3(0x12b)===_0x1b4303||!0x0===_0x5e7a56[_0x2628f3(0x181)],_0xdda5b9=new _0x2a46dc(this[_0x2628f3(0x114)],_0x5e7a56,_0x2f6d42,_0xf66c86,_0x1389b5);return _0x2f6d42||_0xdda5b9['on'](_0x2628f3(0x15a),()=>{const _0x104917=_0x2628f3;this[_0x104917(0x17f)](_0x104917(0x12e),_0xdda5b9['id']);}),_0xdda5b9;}[_0x30b887(0x177)](_0x7dcf73,_0x47cc55){const _0x3bf195=_0x30b887;_0x47cc55[_0x3bf195(0x173)](_0x7dcf73,0x0);}[_0x30b887(0x121)](_0x381d5e,_0x13abf4){const _0x506db4=_0x30b887,_0x35d133=_0x13abf4[_0x506db4(0x12a)](_0x312549=>_0x312549['id']===_0x381d5e);_0x35d133&&_0x13abf4[_0x506db4(0x194)](_0x35d133);}[_0x30b887(0x152)](){const _0x55db69=_0x30b887;this[_0x55db69(0x116)][_0x55db69(0x119)]?this[_0x55db69(0x167)]():(this[_0x55db69(0x153)](),this[_0x55db69(0x171)][_0x55db69(0x127)]({'target':this[_0x55db69(0x116)][_0x55db69(0x192)],'limiter':this[_0x55db69(0x18b)](),'positions':jo}));}[_0x30b887(0x123)](_0x2081ab){const _0xab2e2=_0x30b887;this[_0xab2e2(0x142)][_0xab2e2(0x118)](),this[_0xab2e2(0x146)](),this[_0xab2e2(0x17f)](_0xab2e2(0x10e),_0x2081ab);}}export class SourcesBalloonButtonView extends _0x4b3a92{[_0x30b887(0x18a)];constructor(_0x567ec9){const _0x25158d=_0x30b887;super(_0x567ec9),this[_0x25158d(0x110)]({'withText':!0x0,'role':_0x25158d(0x132)}),this[_0x25158d(0x18a)]=this[_0x25158d(0x164)](),this[_0x25158d(0x13e)]({'attributes':{'class':[Uo]}});}[_0x30b887(0x125)](){const _0xca7526=_0x30b887;super[_0xca7526(0x125)](),this[_0xca7526(0x13d)][_0xca7526(0x173)](this[_0xca7526(0x18a)]);}[_0x30b887(0x164)](){const _0x4f9a7e=_0x30b887,_0x454948=new _0x16bf4f();return _0x454948[_0x4f9a7e(0x148)]=_0x54d1b5,_0x454948[_0x4f9a7e(0x13e)]({'attributes':{'class':Uo+_0x4f9a7e(0x126)}}),_0x454948;}}