@ckeditor/ckeditor5-ai 47.3.0-alpha.4 → 47.3.0-alpha.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (293) 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/aichathistory/aichathistory.js +1 -1
  212. package/src/aichathistory/aichathistorycontroller.js +1 -1
  213. package/src/aichathistory/aichathistoryui.js +1 -1
  214. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  215. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  216. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  217. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  218. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  219. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  220. package/src/aicore/aiconnector.js +1 -1
  221. package/src/aicore/aiediting.js +1 -1
  222. package/src/aicore/model/aicapabilities.js +1 -1
  223. package/src/aicore/model/aicontext.js +1 -1
  224. package/src/aicore/model/aiinteraction.js +1 -1
  225. package/src/aicore/model/aimodels.js +1 -1
  226. package/src/aicore/model/aireply.js +1 -1
  227. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  228. package/src/aicore/pipeline/airesponseparser.js +2 -2
  229. package/src/aicore/ui/aidisclaimerview.js +1 -1
  230. package/src/aicore/ui/aiskeleton.js +1 -1
  231. package/src/aicore/ui/aispinner.js +1 -1
  232. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  233. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  234. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  235. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  236. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  237. package/src/aicore/utils/common-translations.js +1 -1
  238. package/src/aicore/utils/createresizebutton.js +1 -1
  239. package/src/aicore/utils/documentposition.js +1 -1
  240. package/src/aicore/utils/documentrange.js +1 -1
  241. package/src/aicore/utils/eventnames.js +1 -1
  242. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  243. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  244. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  245. package/src/aicore/utils/htmlparser.js +1 -1
  246. package/src/aicore/utils/htmlstreamer.js +1 -1
  247. package/src/aicore/utils/scrollmanager.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/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
  259. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  260. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  261. package/src/aireviewmode/aireviewmode.js +1 -1
  262. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  263. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  264. package/src/aireviewmode/aireviewmodeui.js +1 -1
  265. package/src/aireviewmode/model/aireviewcheck.js +1 -1
  266. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  267. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  268. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  269. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  270. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  271. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  272. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  273. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  274. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  275. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  276. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  277. package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
  278. package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +1 -1
  279. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  280. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  281. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  282. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  283. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  284. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  285. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  286. package/src/aitabs/aitabs.js +1 -1
  287. package/src/aitabs/aitabsmainview.js +1 -1
  288. package/src/aitabs/tabs/aitabsview.js +1 -1
  289. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  290. package/src/aitabs/tabs/tabpanelview.js +1 -1
  291. package/src/errors.js +1 -1
  292. package/src/errorsmap.js +1 -1
  293. package/src/index.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x492b(_0x35335a,_0x574764){const _0x465dd9=_0x465d();return _0x492b=function(_0x492bea,_0x5bc366){_0x492bea=_0x492bea-0x67;let _0x2e7fd7=_0x465dd9[_0x492bea];return _0x2e7fd7;},_0x492b(_0x35335a,_0x574764);}const _0x20725d=_0x492b;(function(_0x435ff5,_0x3e51df){const _0x29f5be=_0x492b,_0x25addd=_0x435ff5();while(!![]){try{const _0xd5ecc6=parseInt(_0x29f5be(0x6b))/0x1+-parseInt(_0x29f5be(0xaa))/0x2+parseInt(_0x29f5be(0x78))/0x3*(parseInt(_0x29f5be(0x88))/0x4)+parseInt(_0x29f5be(0x9a))/0x5+-parseInt(_0x29f5be(0x72))/0x6+-parseInt(_0x29f5be(0xa8))/0x7*(parseInt(_0x29f5be(0x90))/0x8)+parseInt(_0x29f5be(0xad))/0x9*(parseInt(_0x29f5be(0xb1))/0xa);if(_0xd5ecc6===_0x3e51df)break;else _0x25addd['push'](_0x25addd['shift']());}catch(_0x431ed5){_0x25addd['push'](_0x25addd['shift']());}}}(_0x465d,0x66e16));function _0x465d(){const _0x13bf28=['toggleWebSearch','isModelAvailable','2921190DDpEYa','startsWith','form','agent','toggleReasoning','low','78891kmhlpi','_shouldRestorePromptInputFocus','ck-ai-chat-controls-model-unavailable-message','execute','_promptInputView','startConversation','delegate','setModelList','setWebSearch','setConversationContext','resetMessageInput','_promptCapabilitiesView','updateResourceState','sendUserMessage','change:isLoading','find','4CGEZsh','setIsUploadInProgress','_displayedModels','div','clearCurrentContextItems','closeSourceResourceBalloon','abortPromptStream','locale','6737264FNLudD','_loaderView','bodyCollection','ck-hidden','setModel','set','contextResourcesSearchInputVisibleFrom','setAddContextOptions','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','ck-ai-chat-controls','2153450nbEUjG','setReasoning','populateSourceResourceBalloon','isDisabled','ck-ai-chat-controls-disabled','selectModel','focusPromptInput','setTemplate','setInputPlaceholder','enableModelSelector','setContextItemLoading','_createPromptInputView','ck-ai-chat-controls__start-new-chat-button','_contextPanelView','7reFOLr','_createContextPanelView','652984gjhUdk','clearConversationContextUI','removeContextItem','18LfBQdL','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','_modelUnavailableMessageView','bindTemplate','4227320TikTLX','focus','clearConversationContextItems','addContextButtonView','_handlePromptInputFocus','element','disableModelSelector','_createLoaderView','clearPendingContextUI','setPlaceholderText','reset','774462ezTYvU','isLoading','_createPromptCapabilitiesView','addContextItem','_createModelUnavailableMessageView'];_0x465d=function(){return _0x13bf28;};return _0x465d();}import{ButtonView as _0x58aa8c,clickOutsideHandler as _0x3fa889,View as _0xb44d05}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x22e99a}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x222c6a}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x1527e6,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x20c28b}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x4f8390}from'./controls/aichatcontrolsloaderview.js';import{getTranslation as _0x186311}from'../../aicore/utils/common-translations.js';export class AIChatControlsView extends _0xb44d05{[_0x20725d(0x8a)]=[];[_0x20725d(0xa7)];[_0x20725d(0x7c)];[_0x20725d(0x83)];[_0x20725d(0x91)];[_0x20725d(0xaf)];[_0x20725d(0x79)];constructor(_0x31607e,_0x3e5814){const _0x5cd1fc=_0x20725d;super(_0x31607e),this[_0x5cd1fc(0xa7)]=this[_0x5cd1fc(0xa9)](_0x31607e,{'bodyCollection':_0x3e5814[_0x5cd1fc(0x92)],'searchInputVisibleFrom':_0x3e5814[_0x5cd1fc(0x96)]}),this[_0x5cd1fc(0x7c)]=this[_0x5cd1fc(0xa5)](_0x31607e),this[_0x5cd1fc(0x83)]=this[_0x5cd1fc(0x6d)](_0x31607e),this[_0x5cd1fc(0x91)]=this[_0x5cd1fc(0x67)](_0x31607e),this[_0x5cd1fc(0xaf)]=this[_0x5cd1fc(0x6f)](_0x31607e),this[_0x5cd1fc(0x79)]=!0x1,this[_0x5cd1fc(0x7c)][_0x5cd1fc(0x7e)](_0x5cd1fc(0x85))['to'](this),this[_0x5cd1fc(0x91)][_0x5cd1fc(0x7e)](_0x5cd1fc(0x8e))['to'](this),this[_0x5cd1fc(0x83)][_0x5cd1fc(0x7e)](_0x5cd1fc(0x70))['to'](this),this[_0x5cd1fc(0x83)][_0x5cd1fc(0x7e)](_0x5cd1fc(0x76))['to'](this),this[_0x5cd1fc(0x83)][_0x5cd1fc(0x7e)](_0x5cd1fc(0x9f))['to'](this),this[_0x5cd1fc(0xa7)][_0x5cd1fc(0x7e)](..._0x20c28b)['to'](this),this[_0x5cd1fc(0x95)](_0x5cd1fc(0x71),!0x0),this[_0x5cd1fc(0x95)](_0x5cd1fc(0x9d),!0x1);const _0x26f2ac=this[_0x5cd1fc(0xb0)];this[_0x5cd1fc(0xa1)]({'tag':_0x5cd1fc(0x74),'attributes':{'class':['ck',_0x5cd1fc(0x99),_0x26f2ac['if'](_0x5cd1fc(0x9d),_0x5cd1fc(0x9e))]},'children':[{'tag':_0x5cd1fc(0x8b),'attributes':{'class':[_0x26f2ac['if'](_0x5cd1fc(0x6c),_0x5cd1fc(0x93),_0x224f63=>_0x224f63||!this[_0x5cd1fc(0x71)]),_0x26f2ac['if'](_0x5cd1fc(0x71),_0x5cd1fc(0x93),_0x2ff679=>!_0x2ff679||this[_0x5cd1fc(0x6c)])]},'children':[this[_0x5cd1fc(0xa7)],this[_0x5cd1fc(0x7c)],this[_0x5cd1fc(0x83)]]},{'tag':_0x5cd1fc(0x8b),'attributes':{'class':[_0x26f2ac['if'](_0x5cd1fc(0x6c),_0x5cd1fc(0x93),_0x2aadc1=>!_0x2aadc1)]},'children':[this[_0x5cd1fc(0x91)]]},{'tag':_0x5cd1fc(0x8b),'attributes':{'class':[_0x26f2ac['if'](_0x5cd1fc(0x71),_0x5cd1fc(0x93),_0x46f85f=>_0x46f85f)]},'children':[this[_0x5cd1fc(0xaf)]]}]}),_0x3fa889({'emitter':this[_0x5cd1fc(0x7c)],'activator':()=>this[_0x5cd1fc(0x6c)],'contextElements':()=>[this[_0x5cd1fc(0xb6)]],'callback':()=>{const _0x24530a=_0x5cd1fc;this[_0x24530a(0x79)]=!0x1;}}),this['on'](_0x5cd1fc(0x86),this[_0x5cd1fc(0xb5)],{'priority':_0x5cd1fc(0x77)});}[_0x20725d(0xa9)](_0x1e57c0,_0x208781){return new _0x1527e6(_0x1e57c0,_0x208781);}[_0x20725d(0xa5)](_0x1eacdc){const _0x1a8b89=_0x20725d;return new _0x22e99a(_0x1eacdc,this[_0x1a8b89(0xa7)][_0x1a8b89(0xb4)]);}[_0x20725d(0x6d)](_0x395d8b){return new _0x222c6a(_0x395d8b);}[_0x20725d(0x67)](_0x28f395){return new _0x4f8390(_0x28f395);}[_0x20725d(0x6f)](_0x2c8cbb){const _0xe43121=_0x20725d,_0x259f63=new ws(_0x2c8cbb);return _0x259f63[_0xe43121(0x7e)](_0xe43121(0x7d))['to'](this),_0x259f63;}[_0x20725d(0xb5)](_0x433100,_0x30bf1f,_0xd2b4e8){const _0x4a4c12=_0x20725d;_0xd2b4e8?this[_0x4a4c12(0x79)]=!0x0:this[_0x4a4c12(0x79)]&&this[_0x4a4c12(0x7c)][_0x4a4c12(0xb2)]();}[_0x20725d(0x6e)](_0x58d1a9,_0x58c4f6){const _0x307ab0=_0x20725d;this[_0x307ab0(0xa7)][_0x307ab0(0x6e)](_0x58d1a9,_0x58c4f6);}[_0x20725d(0xac)](_0x8aa290){const _0x31c5e7=_0x20725d;this[_0x31c5e7(0xa7)][_0x31c5e7(0xac)](_0x8aa290);}[_0x20725d(0xa4)](_0x1c9d6c,_0x215838){const _0x2ffc1d=_0x20725d;this[_0x2ffc1d(0xa7)][_0x2ffc1d(0xa4)](_0x1c9d6c,_0x215838);}[_0x20725d(0x89)](_0x4ec6f5){const _0x2ab944=_0x20725d;this[_0x2ab944(0x7c)][_0x2ab944(0x89)](_0x4ec6f5);}[_0x20725d(0x81)](_0x67c90){const _0x2dc5d4=_0x20725d;this[_0x2dc5d4(0xa7)][_0x2dc5d4(0x81)](_0x67c90);}[_0x20725d(0x68)](){const _0x11c45b=_0x20725d;this[_0x11c45b(0xa7)][_0x11c45b(0x8c)]();}[_0x20725d(0xab)](){const _0x183eba=_0x20725d;this[_0x183eba(0xa7)][_0x183eba(0xb3)]();}[_0x20725d(0x84)](_0x28c5a3,_0x55d976,_0x4e6ff9){const _0x562a0d=_0x20725d;this[_0x562a0d(0xa7)][_0x562a0d(0x84)](_0x28c5a3,_0x55d976,_0x4e6ff9);}[_0x20725d(0x80)](_0x3ffb6b){const _0x5037be=_0x20725d;this[_0x5037be(0x83)][_0x5037be(0x80)](_0x3ffb6b);}[_0x20725d(0x9b)](_0x1e2ffe){const _0x2f383c=_0x20725d;this[_0x2f383c(0x83)][_0x2f383c(0x9b)](_0x1e2ffe);}[_0x20725d(0x82)](){const _0x8144d4=_0x20725d;this[_0x8144d4(0x7c)][_0x8144d4(0x6a)]();}[_0x20725d(0x97)](_0x3b3118){const _0x4391e6=_0x20725d;this[_0x4391e6(0xa7)][_0x4391e6(0x97)](_0x3b3118);}[_0x20725d(0xa2)](_0x286ec6){const _0x1ec255=_0x20725d;this[_0x1ec255(0x7c)][_0x1ec255(0x69)](_0x286ec6);}[_0x20725d(0x7f)](_0x1d268c,_0x3028ba){const _0x46b3fb=_0x20725d;this[_0x46b3fb(0x8a)]=_0x1d268c,this[_0x46b3fb(0x83)][_0x46b3fb(0x7f)](_0x1d268c,_0x3028ba);}[_0x20725d(0x94)](_0x2c3448){const _0x4810a3=_0x20725d;(_0x2c3448?this[_0x4810a3(0x8a)][_0x4810a3(0x87)](_0x132480=>_0x132480['id']===_0x2c3448['id']):null)?(this[_0x4810a3(0x71)]=!0x0,this[_0x4810a3(0x83)][_0x4810a3(0x94)](_0x2c3448)):_0x2c3448?.['id'][_0x4810a3(0x73)](_0x4810a3(0x75))?(this[_0x4810a3(0x71)]=!0x0,this[_0x4810a3(0x83)][_0x4810a3(0x94)](this[_0x4810a3(0x8a)][0x0])):this[_0x4810a3(0x71)]=!0x1;}[_0x20725d(0xa3)](){const _0x3945e1=_0x20725d;this[_0x3945e1(0x83)][_0x3945e1(0xa3)]();}[_0x20725d(0xb7)](_0x5e6f61){const _0x1eff4c=_0x20725d;this[_0x1eff4c(0x83)][_0x1eff4c(0xb7)](_0x5e6f61);}[_0x20725d(0x9c)](_0x3c79e6,_0x1cd739,_0x2d2fea,_0x3a647d){const _0x434955=_0x20725d;this[_0x434955(0xa7)][_0x434955(0x9c)](_0x3c79e6,_0x1cd739,_0x2d2fea,_0x3a647d);}[_0x20725d(0x8d)](_0x2956c4){const _0x42de3d=_0x20725d;this[_0x42de3d(0xa7)][_0x42de3d(0x8d)](_0x2956c4);}[_0x20725d(0xa0)](){const _0x397cb1=_0x20725d;this[_0x397cb1(0x7c)][_0x397cb1(0xb2)]();}}class ws extends _0xb44d05{constructor(_0x4af05a){const _0x44a0a4=_0x20725d;super(_0x4af05a);const _0x28f861=new _0x58aa8c(_0x4af05a);_0x28f861[_0x44a0a4(0x95)]({'label':_0x186311(this[_0x44a0a4(0x8f)],_0x44a0a4(0xae)),'withText':!0x0,'class':[_0x44a0a4(0xa6)],'tooltip':''}),_0x28f861[_0x44a0a4(0x7e)](_0x44a0a4(0x7b))['to'](this,_0x44a0a4(0x7d)),this[_0x44a0a4(0xa1)]({'tag':_0x44a0a4(0x8b),'attributes':{'class':['ck',_0x44a0a4(0x7a)]},'children':[{'tag':'p','children':[{'text':_0x186311(this[_0x44a0a4(0x8f)],_0x44a0a4(0x98))+'\x20'},_0x28f861]}]});}}
23
+ const _0x11cfdc=_0x3e3d;(function(_0x5c6965,_0x24e59b){const _0x54f152=_0x3e3d,_0x16ae01=_0x5c6965();while(!![]){try{const _0xc561ae=-parseInt(_0x54f152(0x222))/0x1+-parseInt(_0x54f152(0x226))/0x2*(-parseInt(_0x54f152(0x21a))/0x3)+-parseInt(_0x54f152(0x23b))/0x4*(-parseInt(_0x54f152(0x1fc))/0x5)+parseInt(_0x54f152(0x231))/0x6+-parseInt(_0x54f152(0x214))/0x7*(parseInt(_0x54f152(0x21d))/0x8)+parseInt(_0x54f152(0x206))/0x9*(parseInt(_0x54f152(0x1f5))/0xa)+parseInt(_0x54f152(0x23f))/0xb*(-parseInt(_0x54f152(0x234))/0xc);if(_0xc561ae===_0x24e59b)break;else _0x16ae01['push'](_0x16ae01['shift']());}catch(_0x2707f5){_0x16ae01['push'](_0x16ae01['shift']());}}}(_0x16db,0xced34));import{ButtonView as _0xd9109a,clickOutsideHandler as _0x2c66d8,View as _0x14eb0a}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x16040d}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x48a531}from'./controls/aichatpromptcapabilitiesview.js';function _0x3e3d(_0xa75c70,_0x3e9fb0){const _0x16db1e=_0x16db();return _0x3e3d=function(_0x3e3dc9,_0x63c7b1){_0x3e3dc9=_0x3e3dc9-0x1f0;let _0x1b0166=_0x16db1e[_0x3e3dc9];return _0x1b0166;},_0x3e3d(_0xa75c70,_0x3e9fb0);}import{AIChatContextPanelView as _0x55b026,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x2bbba8}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0xe4620c}from'./controls/aichatcontrolsloaderview.js';import{getTranslation as _0x565a30}from'../../aicore/utils/common-translations.js';export class AIChatControlsView extends _0x14eb0a{[_0x11cfdc(0x23a)]=[];[_0x11cfdc(0x1fe)];[_0x11cfdc(0x236)];[_0x11cfdc(0x23d)];[_0x11cfdc(0x1f9)];[_0x11cfdc(0x217)];[_0x11cfdc(0x202)];constructor(_0x2e4f0d,_0x3e739c){const _0x46065e=_0x11cfdc;super(_0x2e4f0d),this[_0x46065e(0x1fe)]=this[_0x46065e(0x22a)](_0x2e4f0d,{'bodyCollection':_0x3e739c[_0x46065e(0x200)],'searchInputVisibleFrom':_0x3e739c[_0x46065e(0x215)]}),this[_0x46065e(0x236)]=this[_0x46065e(0x225)](_0x2e4f0d),this[_0x46065e(0x23d)]=this[_0x46065e(0x210)](_0x2e4f0d),this[_0x46065e(0x1f9)]=this[_0x46065e(0x216)](_0x2e4f0d),this[_0x46065e(0x217)]=this[_0x46065e(0x219)](_0x2e4f0d),this[_0x46065e(0x202)]=!0x1,this[_0x46065e(0x236)][_0x46065e(0x20e)](_0x46065e(0x212))['to'](this),this[_0x46065e(0x1f9)][_0x46065e(0x20e)](_0x46065e(0x213))['to'](this),this[_0x46065e(0x23d)][_0x46065e(0x20e)](_0x46065e(0x1f6))['to'](this),this[_0x46065e(0x23d)][_0x46065e(0x20e)](_0x46065e(0x22c))['to'](this),this[_0x46065e(0x23d)][_0x46065e(0x20e)](_0x46065e(0x233))['to'](this),this[_0x46065e(0x1fe)][_0x46065e(0x20e)](..._0x2bbba8)['to'](this),this[_0x46065e(0x218)](_0x46065e(0x238),!0x0),this[_0x46065e(0x218)](_0x46065e(0x20f),!0x1);const _0x36408b=this[_0x46065e(0x241)];this[_0x46065e(0x1ff)]({'tag':_0x46065e(0x203),'attributes':{'class':['ck',_0x46065e(0x20b),_0x36408b['if'](_0x46065e(0x20f),_0x46065e(0x22f))]},'children':[{'tag':_0x46065e(0x201),'attributes':{'class':[_0x36408b['if'](_0x46065e(0x239),_0x46065e(0x242),_0x4a798a=>_0x4a798a||!this[_0x46065e(0x238)]),_0x36408b['if'](_0x46065e(0x238),_0x46065e(0x242),_0x1aa932=>!_0x1aa932||this[_0x46065e(0x239)])]},'children':[this[_0x46065e(0x1fe)],this[_0x46065e(0x236)],this[_0x46065e(0x23d)]]},{'tag':_0x46065e(0x201),'attributes':{'class':[_0x36408b['if'](_0x46065e(0x239),_0x46065e(0x242),_0x4ff876=>!_0x4ff876)]},'children':[this[_0x46065e(0x1f9)]]},{'tag':_0x46065e(0x201),'attributes':{'class':[_0x36408b['if'](_0x46065e(0x238),_0x46065e(0x242),_0xaa0cea=>_0xaa0cea)]},'children':[this[_0x46065e(0x217)]]}]}),_0x2c66d8({'emitter':this[_0x46065e(0x236)],'activator':()=>this[_0x46065e(0x239)],'contextElements':()=>[this[_0x46065e(0x1f1)]],'callback':()=>{const _0x76163a=_0x46065e;this[_0x76163a(0x202)]=!0x1;}}),this['on'](_0x46065e(0x20d),this[_0x46065e(0x232)],{'priority':_0x46065e(0x1f0)});}[_0x11cfdc(0x22a)](_0x525e7f,_0x5a26ab){return new _0x55b026(_0x525e7f,_0x5a26ab);}[_0x11cfdc(0x225)](_0x558bab){const _0x5e0c70=_0x11cfdc;return new _0x16040d(_0x558bab,this[_0x5e0c70(0x1fe)][_0x5e0c70(0x23e)]);}[_0x11cfdc(0x210)](_0x581779){return new _0x48a531(_0x581779);}[_0x11cfdc(0x216)](_0x11dad1){return new _0xe4620c(_0x11dad1);}[_0x11cfdc(0x219)](_0x46aa36){const _0x4366f9=_0x11cfdc,_0x594066=new hs(_0x46aa36);return _0x594066[_0x4366f9(0x20e)](_0x4366f9(0x224))['to'](this),_0x594066;}[_0x11cfdc(0x232)](_0x31745e,_0x109d80,_0xf74295){const _0x23951d=_0x11cfdc;_0xf74295?this[_0x23951d(0x202)]=!0x0:this[_0x23951d(0x202)]&&this[_0x23951d(0x236)][_0x23951d(0x1f2)]();}[_0x11cfdc(0x1f8)](_0x5dbf5c,_0x323354){const _0x4ab135=_0x11cfdc;this[_0x4ab135(0x1fe)][_0x4ab135(0x1f8)](_0x5dbf5c,_0x323354);}[_0x11cfdc(0x21f)](_0x369e80){const _0x3cc19=_0x11cfdc;this[_0x3cc19(0x1fe)][_0x3cc19(0x21f)](_0x369e80);}[_0x11cfdc(0x229)](_0x3666e4,_0x47183a){const _0x479512=_0x11cfdc;this[_0x479512(0x1fe)][_0x479512(0x229)](_0x3666e4,_0x47183a);}[_0x11cfdc(0x21b)](_0x5b81bb){const _0x345305=_0x11cfdc;this[_0x345305(0x236)][_0x345305(0x21b)](_0x5b81bb);}[_0x11cfdc(0x221)](_0x1c9e08){const _0x487aa6=_0x11cfdc;this[_0x487aa6(0x1fe)][_0x487aa6(0x221)](_0x1c9e08);}[_0x11cfdc(0x230)](){const _0x5df757=_0x11cfdc;this[_0x5df757(0x1fe)][_0x5df757(0x20a)]();}[_0x11cfdc(0x237)](){const _0x104a9f=_0x11cfdc;this[_0x104a9f(0x1fe)][_0x104a9f(0x22b)]();}[_0x11cfdc(0x211)](_0x4f1a70,_0x51b00b,_0x1aebe6){const _0x2a8bcf=_0x11cfdc;this[_0x2a8bcf(0x1fe)][_0x2a8bcf(0x211)](_0x4f1a70,_0x51b00b,_0x1aebe6);}[_0x11cfdc(0x23c)](_0x83a90d){const _0x3ff433=_0x11cfdc;this[_0x3ff433(0x23d)][_0x3ff433(0x23c)](_0x83a90d);}[_0x11cfdc(0x207)](_0x24fa8a){const _0x27c336=_0x11cfdc;this[_0x27c336(0x23d)][_0x27c336(0x207)](_0x24fa8a);}[_0x11cfdc(0x223)](){const _0x1f5884=_0x11cfdc;this[_0x1f5884(0x236)][_0x1f5884(0x228)]();}[_0x11cfdc(0x21e)](_0x1d5e12){const _0xaff337=_0x11cfdc;this[_0xaff337(0x1fe)][_0xaff337(0x21e)](_0x1d5e12);}[_0x11cfdc(0x220)](_0x623d84){const _0x21b1bf=_0x11cfdc;this[_0x21b1bf(0x236)][_0x21b1bf(0x209)](_0x623d84);}[_0x11cfdc(0x205)](_0x52a623,_0x1f4b20){const _0x296ab6=_0x11cfdc;this[_0x296ab6(0x23a)]=_0x52a623,this[_0x296ab6(0x23d)][_0x296ab6(0x205)](_0x52a623,_0x1f4b20);}[_0x11cfdc(0x21c)](_0x4d39de){const _0x187784=_0x11cfdc;(_0x4d39de?this[_0x187784(0x23a)][_0x187784(0x1f4)](_0x6eaf78=>_0x6eaf78['id']===_0x4d39de['id']):null)?(this[_0x187784(0x238)]=!0x0,this[_0x187784(0x23d)][_0x187784(0x21c)](_0x4d39de)):_0x4d39de?.['id'][_0x187784(0x235)](_0x187784(0x22e))?(this[_0x187784(0x238)]=!0x0,this[_0x187784(0x23d)][_0x187784(0x21c)](this[_0x187784(0x23a)][0x0])):this[_0x187784(0x238)]=!0x1;}[_0x11cfdc(0x20c)](){const _0x2b6d93=_0x11cfdc;this[_0x2b6d93(0x23d)][_0x2b6d93(0x20c)]();}[_0x11cfdc(0x208)](_0x332926){const _0x22e652=_0x11cfdc;this[_0x22e652(0x23d)][_0x22e652(0x208)](_0x332926);}[_0x11cfdc(0x1f3)](_0x1d1ab4,_0x12a8c0,_0x52bc00,_0x5c9b34){const _0x34dbb1=_0x11cfdc;this[_0x34dbb1(0x1fe)][_0x34dbb1(0x1f3)](_0x1d1ab4,_0x12a8c0,_0x52bc00,_0x5c9b34);}[_0x11cfdc(0x1fd)](_0x3abf07){const _0x10270b=_0x11cfdc;this[_0x10270b(0x1fe)][_0x10270b(0x1fd)](_0x3abf07);}[_0x11cfdc(0x227)](){const _0x16b73=_0x11cfdc;this[_0x16b73(0x236)][_0x16b73(0x1f2)]();}}class hs extends _0x14eb0a{constructor(_0x510607){const _0x133ba3=_0x11cfdc;super(_0x510607);const _0xdd2b74=new _0xd9109a(_0x510607);_0xdd2b74[_0x133ba3(0x218)]({'label':_0x565a30(this[_0x133ba3(0x1f7)],_0x133ba3(0x204)),'withText':!0x0,'class':[_0x133ba3(0x1fb)],'tooltip':''}),_0xdd2b74[_0x133ba3(0x20e)](_0x133ba3(0x1fa))['to'](this,_0x133ba3(0x224)),this[_0x133ba3(0x1ff)]({'tag':_0x133ba3(0x201),'attributes':{'class':['ck',_0x133ba3(0x240)]},'children':[{'tag':'p','children':[{'text':_0x565a30(this[_0x133ba3(0x1f7)],_0x133ba3(0x22d))+'\x20'},_0xdd2b74]}]});}}function _0x16db(){const _0x10cf3c=['setPlaceholderText','clearCurrentContextItems','ck-ai-chat-controls','enableModelSelector','change:isLoading','delegate','isDisabled','_createPromptCapabilitiesView','updateResourceState','sendUserMessage','abortPromptStream','7RCiIqA','contextResourcesSearchInputVisibleFrom','_createLoaderView','_modelUnavailableMessageView','set','_createModelUnavailableMessageView','3zJKmqK','setIsUploadInProgress','setModel','8507736anaeIe','setAddContextOptions','removeContextItem','setInputPlaceholder','setConversationContext','28432tKveRb','resetMessageInput','startConversation','_createPromptInputView','3360082fgXkFW','focusPromptInput','reset','setContextItemLoading','_createContextPanelView','clearConversationContextItems','toggleReasoning','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','agent','ck-ai-chat-controls-disabled','clearPendingContextUI','9253740FrcXKY','_handlePromptInputFocus','selectModel','20838228FeKxDo','startsWith','_promptInputView','clearConversationContextUI','isModelAvailable','isLoading','_displayedModels','4qFumaR','setWebSearch','_promptCapabilitiesView','addContextButtonView','22MkJSHv','ck-ai-chat-controls-model-unavailable-message','bindTemplate','ck-hidden','low','element','focus','populateSourceResourceBalloon','find','15928210NilEpY','toggleWebSearch','locale','addContextItem','_loaderView','execute','ck-ai-chat-controls__start-new-chat-button','2984705iMmGDf','closeSourceResourceBalloon','_contextPanelView','setTemplate','bodyCollection','div','_shouldRestorePromptInputFocus','form','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','setModelList','9QQsUKe','setReasoning','disableModelSelector'];_0x16db=function(){return _0x10cf3c;};return _0x16db();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x10c5f1=_0xf60f;(function(_0x3303ac,_0x521d2e){const _0x3d3aa=_0xf60f,_0x2fab98=_0x3303ac();while(!![]){try{const _0x5c7c47=parseInt(_0x3d3aa(0x179))/0x1*(parseInt(_0x3d3aa(0x19c))/0x2)+-parseInt(_0x3d3aa(0x1b4))/0x3*(-parseInt(_0x3d3aa(0x1af))/0x4)+parseInt(_0x3d3aa(0x16c))/0x5+parseInt(_0x3d3aa(0x1ab))/0x6+-parseInt(_0x3d3aa(0x1a0))/0x7+parseInt(_0x3d3aa(0x1a2))/0x8+-parseInt(_0x3d3aa(0x187))/0x9*(parseInt(_0x3d3aa(0x195))/0xa);if(_0x5c7c47===_0x521d2e)break;else _0x2fab98['push'](_0x2fab98['shift']());}catch(_0xee7f68){_0x2fab98['push'](_0x2fab98['shift']());}}}(_0x550e,0x96b24));import{CKEditorError as _0x5284c4,logWarning as _0x20bbb2,scrollViewportToShowTarget as _0x2c7165}from'ckeditor5/src/utils.js';function _0x550e(){const _0x4e6e7f=['render','aiFeed','6252743sELOCu','includes','7978968FexeOP','extendTemplate','createCollection','div','removeItem','ck-ai-chat__loader-text','span','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','ck-ai-chat__loader','2453718snVRPq','destroy','find','bind','552UciBSs','ai-suggestion-reply','ai-reply','set','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','15507KGXFvd','_createFeedLoader','isVisible','setTemplate','_setupTemplate','markAsDone','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','updateSuggestionPartState','scrollToSuggestion','1298405MqPCoO','updateReplyItem','map','getPartView','ai-chat-feed-view-item-not-found','markItemAsDone','addItem','stop','children','_createLoaderChildren','bindTemplate','element','updateWebSources','1709cddmTX','updatePartState','updateContent','loadingMessage','updateSources','user-message','isTrackChangesOn','isPending','scrollManager','ai-chat-feed-view-item-not-a-reply-item','startAutoScroll','clear','getItemIds','ck-hidden','524205mbAeVV','add','_createFeedItems','locale','getItemById','isLoadingSkeletonVisible','start','setLoadingMessage','_createTemplateChildren','ck-ai-chat__feed','ai-chat-feed-view-item-not-a-suggestion-item','delegate','_bodyCollection','remove','170tLuyAl','stopAutoScroll','toggleLoadingSkeleton','options','interaction-header','updateSuggestionItem','ck-ai-chat__feed__items','142IBlyFz','_createSkeletonLoader'];_0x550e=function(){return _0x4e6e7f;};return _0x550e();}import{View as _0x5e64c1}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x1426af}from'../utils/eventnames.js';function _0xf60f(_0x2b3a2a,_0x42214b){const _0x550edd=_0x550e();return _0xf60f=function(_0xf60f5,_0x231373){_0xf60f5=_0xf60f5-0x168;let _0x2d6d3f=_0x550edd[_0xf60f5];return _0x2d6d3f;},_0xf60f(_0x2b3a2a,_0x42214b);}import{AIChatFeedSuggestionItemView as _0x33fe8e}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x52fe5c}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x2454ae}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x3b57f8}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x255970}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x5397d9}from'../../aicore/utils/scrollmanager.js';import{AISkeletonView as _0xf4f87e,SKELETON_DEFINITIONS as _0x86d8f6}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x3c73ed}from'../../aicore/ui/aispinner.js';export class AIChatFeedView extends _0x5e64c1{[_0x10c5f1(0x174)];[_0x10c5f1(0x181)];[_0x10c5f1(0x193)];constructor(_0xee7bd0,_0x1a568f){const _0x1e69d3=_0x10c5f1;super(_0xee7bd0),this[_0x1e69d3(0x193)]=_0x1a568f,this[_0x1e69d3(0x1b2)](_0x1e69d3(0x180),!0x1),this[_0x1e69d3(0x1b2)](_0x1e69d3(0x17c),''),this[_0x1e69d3(0x1b2)](_0x1e69d3(0x18c),!0x1),this[_0x1e69d3(0x1b2)](_0x1e69d3(0x17f),!0x1),this[_0x1e69d3(0x174)]=this[_0x1e69d3(0x1a4)](),this[_0x1e69d3(0x174)][_0x1e69d3(0x192)](..._0x1426af)['to'](this),this[_0x1e69d3(0x1b8)]();}[_0x10c5f1(0x19e)](){const _0x129635=_0x10c5f1;super[_0x129635(0x19e)](),this[_0x129635(0x181)]=new _0x5397d9(this[_0x129635(0x177)]);}[_0x10c5f1(0x1ac)](){const _0xb802cf=_0x10c5f1;super[_0xb802cf(0x1ac)](),this[_0xb802cf(0x181)][_0xb802cf(0x1ac)]();}[_0x10c5f1(0x184)](){const _0x27d8f1=_0x10c5f1;this[_0x27d8f1(0x174)][_0x27d8f1(0x184)]();}[_0x10c5f1(0x172)](_0x1267cc,_0x3cd301){const _0x337b4a=_0x10c5f1;let _0x3ccf17;_0x337b4a(0x1b1)===_0x1267cc?_0x3ccf17=new _0x52fe5c(this[_0x337b4a(0x18a)],_0x3cd301):_0x337b4a(0x1b0)===_0x1267cc?(_0x3ccf17=new _0x33fe8e(this[_0x337b4a(0x18a)],_0x3cd301),_0x3ccf17[_0x337b4a(0x1ae)](_0x337b4a(0x17f))['to'](this,_0x337b4a(0x17f))):_0x3ccf17=_0x337b4a(0x17e)===_0x1267cc?new _0x2454ae(this[_0x337b4a(0x18a)],_0x3cd301,this[_0x337b4a(0x193)]):_0x337b4a(0x199)===_0x1267cc?new _0x255970(this[_0x337b4a(0x18a)],_0x3cd301):new _0x3b57f8(_0x3cd301),this[_0x337b4a(0x174)][_0x337b4a(0x188)](_0x3ccf17);}async[_0x10c5f1(0x16d)]({id:_0x3c83c1,parsedContent:_0x28c7a5,renderingStrategy:_0x5e3cc1,abortSignal:_0x4567d8}){const _0x53a96a=_0x10c5f1,_0x5f3730=this[_0x53a96a(0x18b)](_0x3c83c1);if(!(_0x5f3730 instanceof _0x52fe5c))throw new _0x5284c4(_0x53a96a(0x182),null,{'itemView':_0x5f3730,'id':_0x3c83c1,'parsedContent':_0x28c7a5});await _0x5f3730[_0x53a96a(0x17b)]({'parsedContent':_0x28c7a5,'renderingStrategy':_0x5e3cc1,'abortSignal':_0x4567d8});}async[_0x10c5f1(0x178)](_0x27eb1d,_0x38f639){const _0x5e27c5=_0x10c5f1,_0x184e69=this[_0x5e27c5(0x18b)](_0x27eb1d);if(_0x184e69 instanceof _0x33fe8e)_0x184e69[_0x5e27c5(0x17d)](_0x38f639);else{if(!(_0x184e69 instanceof _0x52fe5c))throw new _0x5284c4(_0x5e27c5(0x169),null,{'itemView':_0x184e69,'id':_0x27eb1d,'sources':_0x38f639});_0x184e69[_0x5e27c5(0x17d)](_0x38f639);}}async[_0x10c5f1(0x19a)]({id:_0x466c1f,parts:_0x16dec5,renderingStrategy:_0x268584,abortSignal:_0x8dd5cb}){const _0x4a72b8=_0x10c5f1,_0x27de70=this[_0x4a72b8(0x18b)](_0x466c1f);if(!(_0x27de70 instanceof _0x33fe8e))throw new _0x5284c4(_0x4a72b8(0x191),null,{'itemView':_0x27de70,'id':_0x466c1f,'parts':_0x16dec5});await _0x27de70[_0x4a72b8(0x17b)]({'parts':_0x16dec5,'renderingStrategy':_0x268584,'abortSignal':_0x8dd5cb});}[_0x10c5f1(0x16a)]({id:_0x1669be,index:_0x2b004d,state:_0x336fc9}){const _0x5409ac=_0x10c5f1,_0x8e927d=this[_0x5409ac(0x18b)](_0x1669be);if(!(_0x8e927d instanceof _0x33fe8e))throw new _0x5284c4(_0x5409ac(0x191),this,{'id':_0x1669be});_0x8e927d[_0x5409ac(0x17a)](_0x2b004d,_0x336fc9);}[_0x10c5f1(0x171)](_0x36b602){const _0x268c91=_0x10c5f1;this[_0x268c91(0x18b)](_0x36b602)[_0x268c91(0x168)]();}[_0x10c5f1(0x185)](){const _0x4af1af=_0x10c5f1;return this[_0x4af1af(0x174)][_0x4af1af(0x16e)](_0x466a25=>_0x466a25[_0x4af1af(0x198)]['id']);}[_0x10c5f1(0x1a6)](_0x2f3663){const _0x1ee732=_0x10c5f1;this[_0x1ee732(0x174)][_0x1ee732(0x194)](this[_0x1ee732(0x18b)](_0x2f3663));}[_0x10c5f1(0x16b)](_0x63e75a,_0x819600){const _0x11eb8f=_0x10c5f1,_0x11a5bd=this[_0x11eb8f(0x18b)](_0x63e75a);if(!(_0x11a5bd instanceof _0x33fe8e))return void _0x20bbb2(_0x11eb8f(0x1b3),{'replyId':_0x63e75a,'partIndex':_0x819600});const _0x27d4d7=_0x11a5bd[_0x11eb8f(0x16f)](_0x819600);_0x27d4d7?_0x2c7165({'target':_0x27d4d7[_0x11eb8f(0x177)],'ancestorOffset':0x14,'alignToTop':!0x0,'forceScroll':!0x0}):_0x20bbb2(_0x11eb8f(0x1a9),{'replyId':_0x63e75a,'partIndex':_0x819600});}[_0x10c5f1(0x1b8)](){const _0x2dbae1=_0x10c5f1;this[_0x2dbae1(0x1b7)]({'tag':_0x2dbae1(0x1a5),'attributes':{'class':['ck',_0x2dbae1(0x190)]},'children':this[_0x2dbae1(0x18f)]()});}[_0x10c5f1(0x18f)](){const _0x11933a=_0x10c5f1,_0x2ded83=this[_0x11933a(0x19d)]();return[this[_0x11933a(0x189)](),_0x2ded83,this[_0x11933a(0x1b5)]()];}[_0x10c5f1(0x19d)](){const _0xd6f344=_0x10c5f1,_0x2f8f2d=new _0xf4f87e(this[_0xd6f344(0x18a)],_0x86d8f6[_0xd6f344(0x19f)]);return _0x2f8f2d[_0xd6f344(0x1a3)]({'attributes':{'class':[this[_0xd6f344(0x176)]['if'](_0xd6f344(0x18c),_0xd6f344(0x186),_0x1d877a=>!_0x1d877a)]}}),_0x2f8f2d;}[_0x10c5f1(0x189)](){const _0x44fed6=_0x10c5f1,_0x2b9a6b=new _0x5e64c1(this[_0x44fed6(0x18a)]);return _0x2b9a6b[_0x44fed6(0x1b7)]({'tag':_0x44fed6(0x1a5),'attributes':{'class':['ck',_0x44fed6(0x19b),this[_0x44fed6(0x176)]['if'](_0x44fed6(0x18c),_0x44fed6(0x186))]},'children':this[_0x44fed6(0x174)]}),_0x2b9a6b;}[_0x10c5f1(0x1b5)](){const _0x507156=_0x10c5f1,_0x5120e8=new _0x5e64c1(this[_0x507156(0x18a)]);return _0x5120e8[_0x507156(0x1b7)]({'tag':_0x507156(0x1a5),'attributes':{'class':['ck',_0x507156(0x1aa),this[_0x507156(0x176)]['if'](_0x507156(0x180),_0x507156(0x186),_0xf9ddb=>!_0xf9ddb)]},'children':this[_0x507156(0x175)]()}),_0x5120e8;}[_0x10c5f1(0x175)](){const _0x197a6a=_0x10c5f1,_0x2f68e4=new _0x3c73ed();return _0x2f68e4[_0x197a6a(0x1b6)]=!0x0,[_0x2f68e4,{'tag':_0x197a6a(0x1a8),'attributes':{'class':['ck',_0x197a6a(0x1a7)]},'children':[{'text':this[_0x197a6a(0x176)]['to'](_0x197a6a(0x17c))}]}];}[_0x10c5f1(0x18b)](_0x2ff842){const _0x45e01b=_0x10c5f1,_0x206373=this[_0x45e01b(0x174)][_0x45e01b(0x1ad)](_0x5b52dc=>_0x5b52dc[_0x45e01b(0x198)]['id'][_0x45e01b(0x1a1)](_0x2ff842));if(!_0x206373)throw new _0x5284c4(_0x45e01b(0x170),this,{'id':_0x2ff842});return _0x206373;}[_0x10c5f1(0x18e)](_0x344ef5){const _0x3e0bc7=_0x10c5f1;this[_0x3e0bc7(0x1b2)](_0x3e0bc7(0x17c),_0x344ef5);}[_0x10c5f1(0x197)](_0x291ed9){const _0x35ac83=_0x10c5f1;this[_0x35ac83(0x1b2)](_0x35ac83(0x18c),_0x291ed9);}[_0x10c5f1(0x183)](){const _0x54b69d=_0x10c5f1;this[_0x54b69d(0x181)][_0x54b69d(0x18d)]();}[_0x10c5f1(0x196)](){const _0x3c7e35=_0x10c5f1;this[_0x3c7e35(0x181)][_0x3c7e35(0x173)]();}}
23
+ const _0x1302d4=_0x309a;(function(_0x46643a,_0x3b28f1){const _0x213d4a=_0x309a,_0x28155a=_0x46643a();while(!![]){try{const _0x2bc32a=-parseInt(_0x213d4a(0x211))/0x1*(parseInt(_0x213d4a(0x1ed))/0x2)+parseInt(_0x213d4a(0x20c))/0x3+parseInt(_0x213d4a(0x207))/0x4+-parseInt(_0x213d4a(0x1e2))/0x5+-parseInt(_0x213d4a(0x1e0))/0x6*(parseInt(_0x213d4a(0x21a))/0x7)+parseInt(_0x213d4a(0x204))/0x8+parseInt(_0x213d4a(0x210))/0x9*(parseInt(_0x213d4a(0x1ee))/0xa);if(_0x2bc32a===_0x3b28f1)break;else _0x28155a['push'](_0x28155a['shift']());}catch(_0x477d0c){_0x28155a['push'](_0x28155a['shift']());}}}(_0x2b62,0x454e3));import{CKEditorError as _0xae049a,logWarning as _0x43e66e,scrollViewportToShowTarget as _0x201039}from'ckeditor5/src/utils.js';function _0x2b62(){const _0x5f1e97=['find','isPending','removeItem','scrollToSuggestion','bindTemplate','getPartView','children','1070682wPgdEs','_createLoaderChildren','2489025JrOvbj','isTrackChangesOn','delegate','ai-chat-feed-view-item-not-a-suggestion-item','createCollection','markAsDone','bind','stopAutoScroll','start','render','getItemIds','1382sCHqmi','1286470JrQqiO','includes','set','isLoadingSkeletonVisible','ck-hidden','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','div','addItem','ck-ai-chat__loader-text','updateSuggestionItem','_createFeedLoader','_createSkeletonLoader','setLoadingMessage','updateContent','setTemplate','getItemById','locale','ck-ai-chat__loader','aiFeed','updateReplyItem','element','ai-chat-feed-view-item-not-a-reply-item','191616ukuZBx','ai-chat-feed-view-item-not-found','interaction-header','701788NAcITT','_createTemplateChildren','remove','ck-ai-chat__feed__items','map','853419sxGkpb','add','updateSuggestionPartState','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','63yQJUhl','614tPoPzr','span','_setupTemplate','scrollManager','updateSources','toggleLoadingSkeleton','ai-reply','_bodyCollection','loadingMessage','7HUhhKG','isVisible','stop','markItemAsDone','user-message','options','startAutoScroll','ai-suggestion-reply','updateWebSources','clear','_createFeedItems','destroy','updatePartState','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','extendTemplate','ck-ai-chat__feed'];_0x2b62=function(){return _0x5f1e97;};return _0x2b62();}import{View as _0x4231f9}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x29c5f5}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x46db64}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x27e83c}from'./feed/aichatfeedreplyitemview.js';function _0x309a(_0x263caa,_0x2364d1){const _0x2b62cd=_0x2b62();return _0x309a=function(_0x309a66,_0x3f3585){_0x309a66=_0x309a66-0x1df;let _0x3445b2=_0x2b62cd[_0x309a66];return _0x3445b2;},_0x309a(_0x263caa,_0x2364d1);}import{AIChatFeedUserMessageItemView as _0x2e575f}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x2cb9ce}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x4c540c}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x4ee529}from'../../aicore/utils/scrollmanager.js';import{AISkeletonView as _0x12a82d,SKELETON_DEFINITIONS as _0x526356}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x4c2d9c}from'../../aicore/ui/aispinner.js';export class AIChatFeedView extends _0x4231f9{[_0x1302d4(0x1df)];[_0x1302d4(0x214)];[_0x1302d4(0x218)];constructor(_0x8430cf,_0x332cbc){const _0x57396a=_0x1302d4;super(_0x8430cf),this[_0x57396a(0x218)]=_0x332cbc,this[_0x57396a(0x1f0)](_0x57396a(0x22b),!0x1),this[_0x57396a(0x1f0)](_0x57396a(0x219),''),this[_0x57396a(0x1f0)](_0x57396a(0x1f1),!0x1),this[_0x57396a(0x1f0)](_0x57396a(0x1e3),!0x1),this[_0x57396a(0x1df)]=this[_0x57396a(0x1e6)](),this[_0x57396a(0x1df)][_0x57396a(0x1e4)](..._0x29c5f5)['to'](this),this[_0x57396a(0x213)]();}[_0x1302d4(0x1eb)](){const _0x4032c2=_0x1302d4;super[_0x4032c2(0x1eb)](),this[_0x4032c2(0x214)]=new _0x4ee529(this[_0x4032c2(0x202)]);}[_0x1302d4(0x225)](){const _0x5603e2=_0x1302d4;super[_0x5603e2(0x225)](),this[_0x5603e2(0x214)][_0x5603e2(0x225)]();}[_0x1302d4(0x223)](){const _0x449d97=_0x1302d4;this[_0x449d97(0x1df)][_0x449d97(0x223)]();}[_0x1302d4(0x1f5)](_0x190e48,_0x2d7693){const _0x1024b6=_0x1302d4;let _0x261b2c;_0x1024b6(0x217)===_0x190e48?_0x261b2c=new _0x27e83c(this[_0x1024b6(0x1fe)],_0x2d7693):_0x1024b6(0x221)===_0x190e48?(_0x261b2c=new _0x46db64(this[_0x1024b6(0x1fe)],_0x2d7693),_0x261b2c[_0x1024b6(0x1e8)](_0x1024b6(0x1e3))['to'](this,_0x1024b6(0x1e3))):_0x261b2c=_0x1024b6(0x21e)===_0x190e48?new _0x2e575f(this[_0x1024b6(0x1fe)],_0x2d7693,this[_0x1024b6(0x218)]):_0x1024b6(0x206)===_0x190e48?new _0x4c540c(this[_0x1024b6(0x1fe)],_0x2d7693):new _0x2cb9ce(_0x2d7693),this[_0x1024b6(0x1df)][_0x1024b6(0x20d)](_0x261b2c);}async[_0x1302d4(0x201)]({id:_0x299d8b,parsedContent:_0x473a2b,renderingStrategy:_0x1d9ee1,abortSignal:_0x5e9996}){const _0x62d621=_0x1302d4,_0x28d745=this[_0x62d621(0x1fd)](_0x299d8b);if(!(_0x28d745 instanceof _0x27e83c))throw new _0xae049a(_0x62d621(0x203),null,{'itemView':_0x28d745,'id':_0x299d8b,'parsedContent':_0x473a2b});await _0x28d745[_0x62d621(0x1fb)]({'parsedContent':_0x473a2b,'renderingStrategy':_0x1d9ee1,'abortSignal':_0x5e9996});}async[_0x1302d4(0x222)](_0x401d70,_0x1c9610){const _0x2b30e8=_0x1302d4,_0x5c6ba8=this[_0x2b30e8(0x1fd)](_0x401d70);if(_0x5c6ba8 instanceof _0x46db64)_0x5c6ba8[_0x2b30e8(0x215)](_0x1c9610);else{if(!(_0x5c6ba8 instanceof _0x27e83c))throw new _0xae049a(_0x2b30e8(0x227),null,{'itemView':_0x5c6ba8,'id':_0x401d70,'sources':_0x1c9610});_0x5c6ba8[_0x2b30e8(0x215)](_0x1c9610);}}async[_0x1302d4(0x1f7)]({id:_0xdac6df,parts:_0x3072e6,renderingStrategy:_0x326322,abortSignal:_0x100fad}){const _0x4f1885=_0x1302d4,_0x24a305=this[_0x4f1885(0x1fd)](_0xdac6df);if(!(_0x24a305 instanceof _0x46db64))throw new _0xae049a(_0x4f1885(0x1e5),null,{'itemView':_0x24a305,'id':_0xdac6df,'parts':_0x3072e6});await _0x24a305[_0x4f1885(0x1fb)]({'parts':_0x3072e6,'renderingStrategy':_0x326322,'abortSignal':_0x100fad});}[_0x1302d4(0x20e)]({id:_0x3ed6b5,index:_0x3596e4,state:_0x306f0e}){const _0x576cae=_0x1302d4,_0x4ae507=this[_0x576cae(0x1fd)](_0x3ed6b5);if(!(_0x4ae507 instanceof _0x46db64))throw new _0xae049a(_0x576cae(0x1e5),this,{'id':_0x3ed6b5});_0x4ae507[_0x576cae(0x226)](_0x3596e4,_0x306f0e);}[_0x1302d4(0x21d)](_0x3bca6b){const _0x492e05=_0x1302d4;this[_0x492e05(0x1fd)](_0x3bca6b)[_0x492e05(0x1e7)]();}[_0x1302d4(0x1ec)](){const _0x379b11=_0x1302d4;return this[_0x379b11(0x1df)][_0x379b11(0x20b)](_0x5e645e=>_0x5e645e[_0x379b11(0x21f)]['id']);}[_0x1302d4(0x22c)](_0x1f9204){const _0x45ecd4=_0x1302d4;this[_0x45ecd4(0x1df)][_0x45ecd4(0x209)](this[_0x45ecd4(0x1fd)](_0x1f9204));}[_0x1302d4(0x22d)](_0x197091,_0x55716a){const _0x13a25a=_0x1302d4,_0x3f8729=this[_0x13a25a(0x1fd)](_0x197091);if(!(_0x3f8729 instanceof _0x46db64))return void _0x43e66e(_0x13a25a(0x20f),{'replyId':_0x197091,'partIndex':_0x55716a});const _0x2a4066=_0x3f8729[_0x13a25a(0x22f)](_0x55716a);_0x2a4066?_0x201039({'target':_0x2a4066[_0x13a25a(0x202)],'ancestorOffset':0x14,'alignToTop':!0x0,'forceScroll':!0x0}):_0x43e66e(_0x13a25a(0x1f3),{'replyId':_0x197091,'partIndex':_0x55716a});}[_0x1302d4(0x213)](){const _0x3299a6=_0x1302d4;this[_0x3299a6(0x1fc)]({'tag':_0x3299a6(0x1f4),'attributes':{'class':['ck',_0x3299a6(0x229)]},'children':this[_0x3299a6(0x208)]()});}[_0x1302d4(0x208)](){const _0xd6f644=_0x1302d4,_0x24625d=this[_0xd6f644(0x1f9)]();return[this[_0xd6f644(0x224)](),_0x24625d,this[_0xd6f644(0x1f8)]()];}[_0x1302d4(0x1f9)](){const _0x17de83=_0x1302d4,_0x28b1ca=new _0x12a82d(this[_0x17de83(0x1fe)],_0x526356[_0x17de83(0x200)]);return _0x28b1ca[_0x17de83(0x228)]({'attributes':{'class':[this[_0x17de83(0x22e)]['if'](_0x17de83(0x1f1),_0x17de83(0x1f2),_0x3da9cd=>!_0x3da9cd)]}}),_0x28b1ca;}[_0x1302d4(0x224)](){const _0x3912bb=_0x1302d4,_0x3fba15=new _0x4231f9(this[_0x3912bb(0x1fe)]);return _0x3fba15[_0x3912bb(0x1fc)]({'tag':_0x3912bb(0x1f4),'attributes':{'class':['ck',_0x3912bb(0x20a),this[_0x3912bb(0x22e)]['if'](_0x3912bb(0x1f1),_0x3912bb(0x1f2))]},'children':this[_0x3912bb(0x1df)]}),_0x3fba15;}[_0x1302d4(0x1f8)](){const _0x1f5175=_0x1302d4,_0x4f3896=new _0x4231f9(this[_0x1f5175(0x1fe)]);return _0x4f3896[_0x1f5175(0x1fc)]({'tag':_0x1f5175(0x1f4),'attributes':{'class':['ck',_0x1f5175(0x1ff),this[_0x1f5175(0x22e)]['if'](_0x1f5175(0x22b),_0x1f5175(0x1f2),_0x411f07=>!_0x411f07)]},'children':this[_0x1f5175(0x1e1)]()}),_0x4f3896;}[_0x1302d4(0x1e1)](){const _0xa8176=_0x1302d4,_0x3a037f=new _0x4c2d9c();return _0x3a037f[_0xa8176(0x21b)]=!0x0,[_0x3a037f,{'tag':_0xa8176(0x212),'attributes':{'class':['ck',_0xa8176(0x1f6)]},'children':[{'text':this[_0xa8176(0x22e)]['to'](_0xa8176(0x219))}]}];}[_0x1302d4(0x1fd)](_0x3b1415){const _0x2cea5b=_0x1302d4,_0x242ded=this[_0x2cea5b(0x1df)][_0x2cea5b(0x22a)](_0x505b55=>_0x505b55[_0x2cea5b(0x21f)]['id'][_0x2cea5b(0x1ef)](_0x3b1415));if(!_0x242ded)throw new _0xae049a(_0x2cea5b(0x205),this,{'id':_0x3b1415});return _0x242ded;}[_0x1302d4(0x1fa)](_0x6b10d2){const _0x3190a2=_0x1302d4;this[_0x3190a2(0x1f0)](_0x3190a2(0x219),_0x6b10d2);}[_0x1302d4(0x216)](_0x304860){const _0x2da8eb=_0x1302d4;this[_0x2da8eb(0x1f0)](_0x2da8eb(0x1f1),_0x304860);}[_0x1302d4(0x220)](){const _0x2a4342=_0x1302d4;this[_0x2a4342(0x214)][_0x2a4342(0x1ea)]();}[_0x1302d4(0x1e9)](){const _0x4a06d9=_0x1302d4;this[_0x4a06d9(0x214)][_0x4a06d9(0x21c)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3915f9=_0x2f7a;(function(_0x244c84,_0x35e733){const _0x4b4716=_0x2f7a,_0x408f41=_0x244c84();while(!![]){try{const _0x8a8adf=parseInt(_0x4b4716(0x187))/0x1*(parseInt(_0x4b4716(0x17c))/0x2)+-parseInt(_0x4b4716(0x18e))/0x3*(parseInt(_0x4b4716(0x18b))/0x4)+parseInt(_0x4b4716(0x18c))/0x5+parseInt(_0x4b4716(0x180))/0x6+parseInt(_0x4b4716(0x176))/0x7*(-parseInt(_0x4b4716(0x183))/0x8)+-parseInt(_0x4b4716(0x184))/0x9+-parseInt(_0x4b4716(0x18d))/0xa*(-parseInt(_0x4b4716(0x189))/0xb);if(_0x8a8adf===_0x35e733)break;else _0x408f41['push'](_0x408f41['shift']());}catch(_0x544db0){_0x408f41['push'](_0x408f41['shift']());}}}(_0x4892,0x31045));import{ButtonView as _0x2176dc,FormHeaderView as _0x35f86d}from'ckeditor5/src/ui.js';import{IconPlus as _0x5e5355,IconAIChat as _0x4e3723}from'ckeditor5/src/icons.js';import{getTranslation as _0x31d215}from'../../aicore/utils/common-translations.js';import{createResizeButton as _0x1312fc}from'../../aicore/utils/createresizebutton.js';function _0x2f7a(_0x3a7dcb,_0xf4472e){const _0x489207=_0x4892();return _0x2f7a=function(_0x2f7a92,_0x4b75c5){_0x2f7a92=_0x2f7a92-0x175;let _0x30c22f=_0x489207[_0x2f7a92];return _0x30c22f;},_0x2f7a(_0x3a7dcb,_0xf4472e);}function _0x4892(){const _0x4f91b9=['add','2971GeNKvR','_createStartConversationButton','334653btAgHV','execute','4TmbNek','307570ruZppX','40ubeSiL','70779dgrepM','AI_CHAT_HEADING','7GZAkIH','set','AI_CHAT_LABEL_NEW_CHAT','startConversation','isMaximized','resizeButton','56aSNIFT','fire','conversationStartButton','children','2357250SNTtgb','locale','ck-ai-chat__start-conversation','677608xGFwnv','3151818SDSeTl','ck-ai-header\x20ck-ai-header_chat'];_0x4892=function(){return _0x4f91b9;};return _0x4892();}export class AIChatHeaderView extends _0x35f86d{[_0x3915f9(0x17e)];[_0x3915f9(0x17b)];constructor(_0x956aaf,_0x41724b){const _0x1e977c=_0x3915f9;super(_0x956aaf,{'label':_0x31d215(_0x956aaf,_0x1e977c(0x175)),'class':_0x1e977c(0x185),'icon':_0x4e3723}),this[_0x1e977c(0x177)](_0x1e977c(0x17a),!0x1),this[_0x1e977c(0x17e)]=this[_0x1e977c(0x188)](_0x956aaf),this[_0x1e977c(0x17f)][_0x1e977c(0x186)](this[_0x1e977c(0x17e)]),_0x41724b&&(this[_0x1e977c(0x17b)]=_0x1312fc(_0x956aaf,this),this[_0x1e977c(0x17f)][_0x1e977c(0x186)](this[_0x1e977c(0x17b)]));}[_0x3915f9(0x188)](_0x2a3bf8){const _0x95f8df=_0x3915f9,_0x533e9c=new _0x2176dc(_0x2a3bf8);return _0x533e9c[_0x95f8df(0x177)]({'label':_0x31d215(this[_0x95f8df(0x181)],_0x95f8df(0x178)),'withText':!0x0,'icon':_0x5e5355,'class':_0x95f8df(0x182)}),_0x533e9c['on'](_0x95f8df(0x18a),()=>{const _0xd59152=_0x95f8df;this[_0xd59152(0x17d)](_0xd59152(0x179));}),_0x533e9c;}}
23
+ const _0x5e7d5e=_0x556e;function _0x556e(_0x123051,_0x273cba){const _0x2b5813=_0x2b58();return _0x556e=function(_0x556e6b,_0x2dd1f6){_0x556e6b=_0x556e6b-0x1bd;let _0x3d4570=_0x2b5813[_0x556e6b];return _0x3d4570;},_0x556e(_0x123051,_0x273cba);}(function(_0x14e5f2,_0x339451){const _0x3a2288=_0x556e,_0x43e14f=_0x14e5f2();while(!![]){try{const _0x4c56ec=parseInt(_0x3a2288(0x1c5))/0x1+-parseInt(_0x3a2288(0x1ca))/0x2*(-parseInt(_0x3a2288(0x1c7))/0x3)+-parseInt(_0x3a2288(0x1ce))/0x4+parseInt(_0x3a2288(0x1bf))/0x5+-parseInt(_0x3a2288(0x1c2))/0x6+-parseInt(_0x3a2288(0x1c1))/0x7*(-parseInt(_0x3a2288(0x1c4))/0x8)+-parseInt(_0x3a2288(0x1cb))/0x9;if(_0x4c56ec===_0x339451)break;else _0x43e14f['push'](_0x43e14f['shift']());}catch(_0x470695){_0x43e14f['push'](_0x43e14f['shift']());}}}(_0x2b58,0x2e827));import{ButtonView as _0x2e6c18,FormHeaderView as _0x1c76bb}from'ckeditor5/src/ui.js';import{IconPlus as _0x47f1b9,IconAIChat as _0x5d11c8}from'ckeditor5/src/icons.js';import{getTranslation as _0x26a3a3}from'../../aicore/utils/common-translations.js';import{createResizeButton as _0x103614}from'../../aicore/utils/createresizebutton.js';function _0x2b58(){const _0x2cf959=['isMaximized','locale','set','92560MSaEcJ','ck-ai-header\x20ck-ai-header_chat','663250hbsihs','2173566bESoIJ','_createStartConversationButton','8ioWSBg','333757ZoZXRY','resizeButton','19020Oqoppd','AI_CHAT_LABEL_NEW_CHAT','execute','64goznRy','312678ZOhcRA','startConversation','add','249572UvBzLq','fire','conversationStartButton','ck-ai-chat__start-conversation','AI_CHAT_HEADING','children'];_0x2b58=function(){return _0x2cf959;};return _0x2b58();}export class AIChatHeaderView extends _0x1c76bb{[_0x5e7d5e(0x1d0)];[_0x5e7d5e(0x1c6)];constructor(_0x306f01,_0x49c131){const _0x8a371e=_0x5e7d5e;super(_0x306f01,{'label':_0x26a3a3(_0x306f01,_0x8a371e(0x1d2)),'class':_0x8a371e(0x1c0),'icon':_0x5d11c8}),this[_0x8a371e(0x1be)](_0x8a371e(0x1d4),!0x1),this[_0x8a371e(0x1d0)]=this[_0x8a371e(0x1c3)](_0x306f01),this[_0x8a371e(0x1d3)][_0x8a371e(0x1cd)](this[_0x8a371e(0x1d0)]),_0x49c131&&(this[_0x8a371e(0x1c6)]=_0x103614(_0x306f01,this),this[_0x8a371e(0x1d3)][_0x8a371e(0x1cd)](this[_0x8a371e(0x1c6)]));}[_0x5e7d5e(0x1c3)](_0x6af18a){const _0x420dc0=_0x5e7d5e,_0x39dc0c=new _0x2e6c18(_0x6af18a);return _0x39dc0c[_0x420dc0(0x1be)]({'label':_0x26a3a3(this[_0x420dc0(0x1bd)],_0x420dc0(0x1c8)),'withText':!0x0,'icon':_0x47f1b9,'class':_0x420dc0(0x1d1)}),_0x39dc0c['on'](_0x420dc0(0x1c9),()=>{const _0x15b65f=_0x420dc0;this[_0x15b65f(0x1cf)](_0x15b65f(0x1cc));}),_0x39dc0c;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x3ff23c=_0x4eaf;function _0x488f(){var _0x5d99c5=['ck-ai-chat','delegate','detachFromDom','7122049TbAqTP','div','6DUbiWt','chatControls','5188noUqPh','showResizeButton','setTemplate','chatHeader','_bodyCollection','1389995XOmLMp','10NUAuxT','213bAvKRe','populateSourceResourceBalloon','attachToDom','chatDisclaimer','destroy','closeSourceResourceBalloon','contextResourcesSearchInputVisibleFrom','478758CWUCCf','1368976FZKqeD','2424861jeDirM','uiLanguageDirection','chatFeed','26278AgUACo','12sZoQwu','ck-rounded-corners','ck-reset_all'];_0x488f=function(){return _0x5d99c5;};return _0x488f();}(function(_0xd0c7a8,_0x1699cb){var _0x5a3c79=_0x4eaf,_0x192285=_0xd0c7a8();while(!![]){try{var _0x2cab41=parseInt(_0x5a3c79(0xe1))/0x1*(-parseInt(_0x5a3c79(0xe2))/0x2)+-parseInt(_0x5a3c79(0xf3))/0x3*(parseInt(_0x5a3c79(0xec))/0x4)+-parseInt(_0x5a3c79(0xf1))/0x5*(parseInt(_0x5a3c79(0xea))/0x6)+parseInt(_0x5a3c79(0xdc))/0x7+-parseInt(_0x5a3c79(0xdd))/0x8+-parseInt(_0x5a3c79(0xde))/0x9*(-parseInt(_0x5a3c79(0xf2))/0xa)+parseInt(_0x5a3c79(0xe8))/0xb;if(_0x2cab41===_0x1699cb)break;else _0x192285['push'](_0x192285['shift']());}catch(_0x116058){_0x192285['push'](_0x192285['shift']());}}}(_0x488f,0x45ec6));function _0x4eaf(_0xbbf55a,_0x452bc0){var _0x488f61=_0x488f();return _0x4eaf=function(_0x4eaff0,_0xda4611){_0x4eaff0=_0x4eaff0-0xda;var _0x370373=_0x488f61[_0x4eaff0];return _0x370373;},_0x4eaf(_0xbbf55a,_0x452bc0);}import{View as _0x51a2f7,BodyCollection as _0x145896}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x1ff0a1}from'../utils/eventnames.js';import{AIChatFeedView as _0x5f1d6d}from'./aichatfeedview.js';import{AIChatControlsView as _0x25a4b1}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x317162}from'./aichatheaderview.js';import{AIDisclaimerView as _0x8e31ca}from'../../aicore/ui/aidisclaimerview.js';export class AIChatView extends _0x51a2f7{[_0x3ff23c(0xef)];[_0x3ff23c(0xe0)];[_0x3ff23c(0xeb)];[_0x3ff23c(0xf6)];[_0x3ff23c(0xf0)];constructor(_0x9413f1,_0x5c204b){var _0x41fcc2=_0x3ff23c;super(_0x9413f1),this[_0x41fcc2(0xf0)]=new _0x145896(_0x9413f1),this[_0x41fcc2(0xf0)][_0x41fcc2(0xf5)](),this[_0x41fcc2(0xef)]=new _0x317162(_0x9413f1,_0x5c204b[_0x41fcc2(0xed)]),this[_0x41fcc2(0xef)][_0x41fcc2(0xe6)](..._0x1ff0a1)['to'](this),this[_0x41fcc2(0xe0)]=new _0x5f1d6d(_0x9413f1,this[_0x41fcc2(0xf0)]),this[_0x41fcc2(0xe0)][_0x41fcc2(0xe6)](..._0x1ff0a1)['to'](this),this[_0x41fcc2(0xeb)]=new _0x25a4b1(_0x9413f1,{'bodyCollection':this[_0x41fcc2(0xf0)],'contextResourcesSearchInputVisibleFrom':_0x5c204b[_0x41fcc2(0xdb)]}),this[_0x41fcc2(0xeb)][_0x41fcc2(0xe6)](..._0x1ff0a1)['to'](this),this[_0x41fcc2(0xf6)]=new _0x8e31ca(_0x9413f1),this[_0x41fcc2(0xee)]({'tag':_0x41fcc2(0xe9),'attributes':{'class':['ck',_0x41fcc2(0xe4),_0x41fcc2(0xe5),_0x41fcc2(0xe3)],'dir':_0x9413f1[_0x41fcc2(0xdf)]},'children':[this[_0x41fcc2(0xef)],this[_0x41fcc2(0xe0)],this[_0x41fcc2(0xeb)],this[_0x41fcc2(0xf6)]]});}[_0x3ff23c(0xf4)](_0x18187e,_0x1a594,_0x1b772b,_0x19a888){var _0x13dc07=_0x3ff23c;this[_0x13dc07(0xeb)][_0x13dc07(0xf4)](_0x18187e,_0x1a594,_0x1b772b,_0x19a888);}[_0x3ff23c(0xda)](_0x42adec){var _0x45edeb=_0x3ff23c;this[_0x45edeb(0xeb)][_0x45edeb(0xda)](_0x42adec);}[_0x3ff23c(0xf7)](){var _0x2ee6b5=_0x3ff23c;this[_0x2ee6b5(0xf0)][_0x2ee6b5(0xe7)](),super[_0x2ee6b5(0xf7)]();}}
23
+ var _0x22c027=_0x3f2e;function _0x3f2e(_0xd63c,_0x274eea){var _0x4b57be=_0x4b57();return _0x3f2e=function(_0x3f2e44,_0x9b3bf7){_0x3f2e44=_0x3f2e44-0x19d;var _0x4c632e=_0x4b57be[_0x3f2e44];return _0x4c632e;},_0x3f2e(_0xd63c,_0x274eea);}(function(_0xcf73e7,_0x1c245c){var _0x4a911c=_0x3f2e,_0x5e594d=_0xcf73e7();while(!![]){try{var _0x558a4b=-parseInt(_0x4a911c(0x1aa))/0x1+-parseInt(_0x4a911c(0x1b8))/0x2*(-parseInt(_0x4a911c(0x1a5))/0x3)+parseInt(_0x4a911c(0x1ab))/0x4+-parseInt(_0x4a911c(0x1b9))/0x5*(-parseInt(_0x4a911c(0x19d))/0x6)+parseInt(_0x4a911c(0x1ac))/0x7*(parseInt(_0x4a911c(0x1a6))/0x8)+-parseInt(_0x4a911c(0x1b1))/0x9*(parseInt(_0x4a911c(0x19f))/0xa)+-parseInt(_0x4a911c(0x1b4))/0xb;if(_0x558a4b===_0x1c245c)break;else _0x5e594d['push'](_0x5e594d['shift']());}catch(_0x16f74b){_0x5e594d['push'](_0x5e594d['shift']());}}}(_0x4b57,0x556d6));import{View as _0x36664f,BodyCollection as _0x1cc260}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x2b299e}from'../utils/eventnames.js';import{AIChatFeedView as _0x5e004f}from'./aichatfeedview.js';import{AIChatControlsView as _0x410d48}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x52abf3}from'./aichatheaderview.js';function _0x4b57(){var _0x1e3501=['contextResourcesSearchInputVisibleFrom','setTemplate','populateSourceResourceBalloon','69670mpxmzO','96910aeKzkC','delegate','6LRmXmO','chatHeader','91220wfJIfQ','chatFeed','chatControls','ck-ai-chat','detachFromDom','destroy','60ezODQC','1459664HaHnoY','uiLanguageDirection','attachToDom','ck-reset_all','81765FrvMLt','10728tXcWhv','7boNoca','div','showResizeButton','chatDisclaimer','closeSourceResourceBalloon','198WMENwK','_bodyCollection','ck-rounded-corners','2957493dadDPP'];_0x4b57=function(){return _0x1e3501;};return _0x4b57();}import{AIDisclaimerView as _0x12f2e1}from'../../aicore/ui/aidisclaimerview.js';export class AIChatView extends _0x36664f{[_0x22c027(0x19e)];[_0x22c027(0x1a0)];[_0x22c027(0x1a1)];[_0x22c027(0x1af)];[_0x22c027(0x1b2)];constructor(_0x2e3fa2,_0x4deb63){var _0x2aeaa8=_0x22c027;super(_0x2e3fa2),this[_0x2aeaa8(0x1b2)]=new _0x1cc260(_0x2e3fa2),this[_0x2aeaa8(0x1b2)][_0x2aeaa8(0x1a8)](),this[_0x2aeaa8(0x19e)]=new _0x52abf3(_0x2e3fa2,_0x4deb63[_0x2aeaa8(0x1ae)]),this[_0x2aeaa8(0x19e)][_0x2aeaa8(0x1ba)](..._0x2b299e)['to'](this),this[_0x2aeaa8(0x1a0)]=new _0x5e004f(_0x2e3fa2,this[_0x2aeaa8(0x1b2)]),this[_0x2aeaa8(0x1a0)][_0x2aeaa8(0x1ba)](..._0x2b299e)['to'](this),this[_0x2aeaa8(0x1a1)]=new _0x410d48(_0x2e3fa2,{'bodyCollection':this[_0x2aeaa8(0x1b2)],'contextResourcesSearchInputVisibleFrom':_0x4deb63[_0x2aeaa8(0x1b5)]}),this[_0x2aeaa8(0x1a1)][_0x2aeaa8(0x1ba)](..._0x2b299e)['to'](this),this[_0x2aeaa8(0x1af)]=new _0x12f2e1(_0x2e3fa2),this[_0x2aeaa8(0x1b6)]({'tag':_0x2aeaa8(0x1ad),'attributes':{'class':['ck',_0x2aeaa8(0x1a9),_0x2aeaa8(0x1a2),_0x2aeaa8(0x1b3)],'dir':_0x2e3fa2[_0x2aeaa8(0x1a7)]},'children':[this[_0x2aeaa8(0x19e)],this[_0x2aeaa8(0x1a0)],this[_0x2aeaa8(0x1a1)],this[_0x2aeaa8(0x1af)]]});}[_0x22c027(0x1b7)](_0x951eec,_0x2ac0fc,_0x5396fc,_0x2b6a8f){var _0x5f448e=_0x22c027;this[_0x5f448e(0x1a1)][_0x5f448e(0x1b7)](_0x951eec,_0x2ac0fc,_0x5396fc,_0x2b6a8f);}[_0x22c027(0x1b0)](_0x72a2c7){var _0x33fdb4=_0x22c027;this[_0x33fdb4(0x1a1)][_0x33fdb4(0x1b0)](_0x72a2c7);}[_0x22c027(0x1a4)](){var _0x4a13da=_0x22c027;this[_0x4a13da(0x1b2)][_0x4a13da(0x1a3)](),super[_0x4a13da(0x1a4)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x331c88=_0x3bf2;(function(_0xfb714c,_0x384375){const _0x2678bd=_0x3bf2,_0x2c1064=_0xfb714c();while(!![]){try{const _0x5a3be3=-parseInt(_0x2678bd(0xc7))/0x1*(-parseInt(_0x2678bd(0xe6))/0x2)+-parseInt(_0x2678bd(0xc1))/0x3*(parseInt(_0x2678bd(0xed))/0x4)+-parseInt(_0x2678bd(0xf2))/0x5*(-parseInt(_0x2678bd(0xa2))/0x6)+parseInt(_0x2678bd(0x8d))/0x7*(-parseInt(_0x2678bd(0xc3))/0x8)+-parseInt(_0x2678bd(0x6f))/0x9+-parseInt(_0x2678bd(0xa6))/0xa*(parseInt(_0x2678bd(0x87))/0xb)+parseInt(_0x2678bd(0x7b))/0xc*(parseInt(_0x2678bd(0xf9))/0xd);if(_0x5a3be3===_0x384375)break;else _0x2c1064['push'](_0x2c1064['shift']());}catch(_0x452f4b){_0x2c1064['push'](_0x2c1064['shift']());}}}(_0x3099,0x308e9));function _0x3bf2(_0x7971e1,_0x4bc379){const _0x30990a=_0x3099();return _0x3bf2=function(_0x3bf2f0,_0x521258){_0x3bf2f0=_0x3bf2f0-0x6f;let _0x2ea22a=_0x30990a[_0x3bf2f0];return _0x2ea22a;},_0x3bf2(_0x7971e1,_0x4bc379);}function _0x3099(){const _0x4998f9=['height','0px','_handleShowMoreButtonClick','cssClasses','1390446PEgJCf','querySelector','controlsButton','execute','10ybFehv','ck-calculation-container','children','tagName','forEach','some','_distributeChips','hideBalloonPanel','_restoreAncestorVisibility','pointerEvents','_createShowMoreButtonView','visible','getBoundingClientRect','includes','reorganizeChips','body','disableAnimationOnEnter','zIndex','clear','_isContainerVisible','destroy','_containerElement','-9999px','_bodyCollection','setContainerElement','toLowerCase','bottom','3Uvznjw','position','24120yFhUZy','_createShowMoreButton','50px','none','16iyUKWr','innerHTML','style','push','pin','left','show','from','width','_setupVisibilityObserver','div','button','disconnect','element','abs','_overflowChips','top','pop','parentElement','filter','_pendingCalculation','calculationContainer','_checkAndHandleOverflow','offsetWidth','maxVisibleRows','_config','opacity','visibility','remove','_ancestorsToRestore','overflowChips','17594HAgHcM','content','_renderChipsAndCountRows','label','observe','+\x201','300px','1299636GORNbA','render','_locale','showMoreButton','length','5fIupzv','clientWidth','boxSizing','rowDetectionTolerance','isIntersecting','display','_calculateContainerWidth','525668PFIXFE','_showMoreButtonView','isVisible','setTemplate','_applyOverflowResults','createElement','isConnected','_calculateOverflowInContainer','_createShowMoreBalloonPanelView','isOn','_findTargetContainer','add','hidden','750321EEliZW','border-box','block','.ck-ai-chat','cloneNode','overflowContainer','getComputedStyle','appendChild','_createMockButton','_updateShowMoreButtonVisibility','_createCalculationContainer','innerHeight','240SgYSVC','classList','right','_parentView','slice','absolute','_repinBalloonPanel','_createContainerElements','_makeAncestorsVisible','set','_targetContainer','_applyCalculationStyles','2235211sGVSRu','showMoreBalloon','_visibleChips','textContent','showBalloonPanel','documentElement','861rGPcfA','_showMoreBalloonPanelView','showMoreLabelPrefix','innerWidth','block\x20!important','extendTemplate','className','undefined','hide','clientHeight','_intersectionObserver','visible\x20!important','_testButtonFit','_updateOverflowUI','auto','showMoreButtonView','_updateBalloonContent'];_0x3099=function(){return _0x4998f9;};return _0x3099();}import{View as _0x27c4c3,BalloonPanelView as _0x1e4904,ButtonView as _0x18472b,clickOutsideHandler as _0x1f79a0}from'ckeditor5/src/ui.js';import{Collection as _0x392554}from'ckeditor5/src/utils.js';const wn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},dn=_0x331c88(0xec);export class AIChatChipsOverflowManager{[_0x331c88(0xef)];[_0x331c88(0xe0)];[_0x331c88(0x89)];[_0x331c88(0xd6)];[_0x331c88(0xfa)]=null;[_0x331c88(0x8e)]=null;[_0x331c88(0xbb)]=null;[_0x331c88(0xbd)];[_0x331c88(0x7e)]=null;[_0x331c88(0x97)]=null;[_0x331c88(0xdb)]=!0x1;constructor(_0x5d093b,_0x26b5c6,_0x598684,_0x2fe18b,_0x5e6fe0){const _0x54505f=_0x331c88;this[_0x54505f(0xef)]=_0x5d093b,this[_0x54505f(0x89)]=_0x26b5c6,this[_0x54505f(0xe0)]={...wn,..._0x598684,'cssClasses':{'controlsButton':'','calculationContainer':_0x54505f(0xa7),..._0x598684[_0x54505f(0xa1)]}},this[_0x54505f(0xd6)]=new _0x392554(),this[_0x54505f(0xbd)]=_0x2fe18b,this[_0x54505f(0x7e)]=_0x5e6fe0||null;}[_0x331c88(0xbe)](_0x2c7eb2){const _0x5af7de=_0x331c88;this[_0x5af7de(0x97)]&&(this[_0x5af7de(0x97)][_0x5af7de(0xd3)](),this[_0x5af7de(0x97)]=null),this[_0x5af7de(0xbb)]=_0x2c7eb2,this[_0x5af7de(0xd0)]();}get[_0x331c88(0x9c)](){const _0x201c1d=_0x331c88;return this[_0x201c1d(0xfa)];}get[_0x331c88(0xe5)](){const _0x47ab6c=_0x331c88;return this[_0x47ab6c(0xd6)];}[_0x331c88(0xb4)](){requestAnimationFrame(()=>{const _0x51abef=_0x3bf2;this[_0x51abef(0xdd)]();});}[_0x331c88(0x8b)](){const _0x4aec00=_0x331c88;this[_0x4aec00(0xfa)]&&this[_0x4aec00(0x8e)]&&(this[_0x4aec00(0x9d)](),this[_0x4aec00(0xfa)][_0x4aec00(0x102)]=!0x0,this[_0x4aec00(0x8e)][_0x4aec00(0xcd)](),this[_0x4aec00(0x8e)][_0x4aec00(0xcb)]({'target':this[_0x4aec00(0xfa)][_0x4aec00(0xd4)],'limiter':document[_0x4aec00(0xa3)](_0x4aec00(0x72))}));}[_0x331c88(0xad)](){const _0x30eb7e=_0x331c88;this[_0x30eb7e(0xfa)]&&this[_0x30eb7e(0x8e)]&&(this[_0x30eb7e(0xfa)][_0x30eb7e(0x102)]=!0x1,this[_0x30eb7e(0x8e)][_0x30eb7e(0x95)]());}[_0x331c88(0xb8)](){const _0x5d5a31=_0x331c88;this[_0x5d5a31(0xd6)][_0x5d5a31(0xb8)](),this[_0x5d5a31(0xad)](),this[_0x5d5a31(0x78)](),this[_0x5d5a31(0xfa)]&&(this[_0x5d5a31(0xfa)][_0x5d5a31(0xe9)]=''),this[_0x5d5a31(0x8e)]&&this[_0x5d5a31(0x8e)][_0x5d5a31(0xe7)][_0x5d5a31(0xb8)]();}[_0x331c88(0xba)](){const _0x22ad60=_0x331c88;this[_0x22ad60(0x97)]&&(this[_0x22ad60(0x97)][_0x22ad60(0xd3)](),this[_0x22ad60(0x97)]=null),this[_0x22ad60(0xfa)]&&(this[_0x22ad60(0xfa)][_0x22ad60(0xba)](),this[_0x22ad60(0xfa)]=null),this[_0x22ad60(0x8e)]&&(this[_0x22ad60(0x8e)][_0x22ad60(0xba)](),this[_0x22ad60(0x8e)]=null);}[_0x331c88(0xdd)](){const _0x5e2b9d=_0x331c88;if(!this[_0x5e2b9d(0xbb)])return;if(!this[_0x5e2b9d(0xb9)]())return void(this[_0x5e2b9d(0xdb)]=!0x0);this[_0x5e2b9d(0xdb)]=!0x1;const _0xbc7b72=[...this[_0x5e2b9d(0x89)],...this[_0x5e2b9d(0xd6)]],_0x1eb479=this[_0x5e2b9d(0x79)](),_0x568ade=this[_0x5e2b9d(0x100)](_0x1eb479,_0xbc7b72),_0x160f54=_0x1eb479[_0x5e2b9d(0xe4)];_0x160f54&&this[_0x5e2b9d(0xae)](_0x160f54),_0x1eb479[_0x5e2b9d(0xe3)](),this[_0x5e2b9d(0xfd)](_0xbc7b72,_0x568ade);}[_0x331c88(0xc4)](){const _0x2edb21=_0x331c88;this[_0x2edb21(0xfa)]=this[_0x2edb21(0xb0)](),this[_0x2edb21(0x8e)]=this[_0x2edb21(0x101)](),this[_0x2edb21(0xfa)][_0x2edb21(0xee)](),this[_0x2edb21(0xbb)][_0x2edb21(0x76)](this[_0x2edb21(0xfa)][_0x2edb21(0xd4)]),this[_0x2edb21(0xfa)]['on'](_0x2edb21(0xa5),()=>{const _0x23138d=_0x2edb21;this[_0x23138d(0xa0)]();}),_0x1f79a0({'emitter':this[_0x2edb21(0x8e)],'contextElements':[this[_0x2edb21(0x8e)][_0x2edb21(0xd4)],this[_0x2edb21(0xfa)][_0x2edb21(0xd4)]],'callback':()=>this[_0x2edb21(0xad)](),'activator':()=>this[_0x2edb21(0xfa)][_0x2edb21(0x102)]});}[_0x331c88(0xb0)](){const _0x29e494=_0x331c88,_0x2d0a78=new _0x18472b(this[_0x29e494(0xef)]);_0x2d0a78[_0x29e494(0x84)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x113bd4=[this[_0x29e494(0xe0)][_0x29e494(0xa1)][_0x29e494(0xf0)]];return this[_0x29e494(0xe0)][_0x29e494(0xa1)][_0x29e494(0xa4)]&&_0x113bd4[_0x29e494(0xca)](this[_0x29e494(0xe0)][_0x29e494(0xa1)][_0x29e494(0xa4)]),_0x2d0a78[_0x29e494(0x92)]({'attributes':{'class':_0x113bd4}}),_0x2d0a78;}[_0x331c88(0x101)](){const _0x16b52b=_0x331c88,_0x5a27b5=new _0x1e4904(this[_0x16b52b(0xef)]);return _0x5a27b5[_0x16b52b(0x92)]({'attributes':{'class':this[_0x16b52b(0xe0)][_0x16b52b(0xa1)][_0x16b52b(0x88)]}}),this[_0x16b52b(0xbd)][_0x16b52b(0x104)](_0x5a27b5),_0x5a27b5;}[_0x331c88(0x9d)](){const _0x18d0cb=_0x331c88;if(this[_0x18d0cb(0x8e)]&&(this[_0x18d0cb(0x8e)][_0x18d0cb(0xe7)][_0x18d0cb(0xb8)](),this[_0x18d0cb(0xd6)][_0x18d0cb(0xf1)]>0x0)){this[_0x18d0cb(0xd6)][_0x18d0cb(0xaa)](_0xfc7e71=>{const _0x52026f=_0x18d0cb;_0xfc7e71[_0x52026f(0xb6)]();});const _0x146c81=new _0x27c4c3(this[_0x18d0cb(0xef)]);_0x146c81[_0x18d0cb(0xfc)]({'tag':_0x18d0cb(0xd1),'attributes':{'class':this[_0x18d0cb(0xe0)][_0x18d0cb(0xa1)][_0x18d0cb(0x74)]},'children':this[_0x18d0cb(0xd6)]}),this[_0x18d0cb(0x8e)][_0x18d0cb(0xe7)][_0x18d0cb(0x104)](_0x146c81);}}[_0x331c88(0xa0)](){const _0x1378aa=_0x331c88;this[_0x1378aa(0xfa)][_0x1378aa(0x102)]?this[_0x1378aa(0xad)]():this[_0x1378aa(0x8b)]();}[_0x331c88(0x78)](){const _0x43138d=_0x331c88,_0x4dfd70=this[_0x43138d(0xd6)][_0x43138d(0xf1)]>0x0;this[_0x43138d(0xfa)]?.[_0x43138d(0xd4)]&&(this[_0x43138d(0xfa)][_0x43138d(0xd4)][_0x43138d(0xc9)][_0x43138d(0xf7)]=_0x4dfd70?'':_0x43138d(0xc6));}[_0x331c88(0x81)](){const _0x188452=_0x331c88;this[_0x188452(0xfa)]?.[_0x188452(0x102)]&&this[_0x188452(0x8e)]?.[_0x188452(0xfb)]&&this[_0x188452(0xfa)][_0x188452(0xd4)]&&this[_0x188452(0x8e)][_0x188452(0xcb)]({'target':this[_0x188452(0xfa)][_0x188452(0xd4)],'limiter':document[_0x188452(0xa3)](_0x188452(0x72))});}[_0x331c88(0x103)](_0x1deb40){const _0x565ce6=_0x331c88,_0x4f723e=this[_0x565ce6(0xbb)]?.[_0x565ce6(0xa9)][_0x565ce6(0xbf)]()||_0x565ce6(0xd1),_0x41c705=this[_0x565ce6(0xbb)]?.[_0x565ce6(0x7c)];if(_0x41c705){const _0x40a073=_0x41c705[0x0]||'',_0x4a6f66=_0x1deb40[_0x565ce6(0xa3)]('.'+_0x40a073),_0x595be8=_0x1deb40[_0x565ce6(0xa3)](_0x4f723e);return _0x4a6f66||_0x595be8||_0x1deb40;}return _0x1deb40[_0x565ce6(0xa3)](_0x4f723e)||_0x1deb40;}[_0x331c88(0xf8)](){const _0x452567=_0x331c88,_0x341fe2=this[_0x452567(0x7e)]?.[_0x452567(0xd4)]||this[_0x452567(0xbb)];if(!_0x341fe2)return dn;const _0x5cd5e7=window[_0x452567(0x75)](_0x341fe2)[_0x452567(0xcf)];if(_0x452567(0x9b)===_0x5cd5e7||_0x452567(0x9f)===_0x5cd5e7||!_0x5cd5e7){const _0x312ac0=_0x341fe2[_0x452567(0xd9)];if(_0x312ac0){const _0x3852ec=window[_0x452567(0x75)](_0x312ac0);return _0x452567(0x9b)!==_0x3852ec[_0x452567(0xcf)]?_0x3852ec[_0x452567(0xcf)]:dn;}return dn;}return _0x5cd5e7;}[_0x331c88(0x86)](_0x18eca1,_0x4d5228){const _0x222d97=_0x331c88;this[_0x222d97(0xe0)][_0x222d97(0xa1)][_0x222d97(0xdc)]&&_0x18eca1[_0x222d97(0x7c)][_0x222d97(0x104)](this[_0x222d97(0xe0)][_0x222d97(0xa1)][_0x222d97(0xdc)]),_0x18eca1[_0x222d97(0xc9)][_0x222d97(0xcf)]=_0x4d5228,_0x18eca1[_0x222d97(0xc9)][_0x222d97(0xc2)]=_0x222d97(0x80),_0x18eca1[_0x222d97(0xc9)][_0x222d97(0xd7)]=_0x222d97(0xbc),_0x18eca1[_0x222d97(0xc9)][_0x222d97(0xcc)]=_0x222d97(0xbc),_0x18eca1[_0x222d97(0xc9)][_0x222d97(0xe1)]='0',_0x18eca1[_0x222d97(0xc9)][_0x222d97(0xaf)]=_0x222d97(0xc6),_0x18eca1[_0x222d97(0xc9)][_0x222d97(0xb7)]='-1',_0x18eca1[_0x222d97(0xc9)][_0x222d97(0xe2)]=_0x222d97(0x98),_0x18eca1[_0x222d97(0xc9)][_0x222d97(0xf7)]=_0x222d97(0x91),_0x18eca1[_0x222d97(0xc9)][_0x222d97(0xf4)]=_0x222d97(0x70);}[_0x331c88(0xae)](_0x2cdf23){const _0x2dcf11=_0x331c88;_0x2cdf23[_0x2dcf11(0xaa)](({element:_0x43b79f,originalDisplay:_0x312e7c,originalVisibility:_0x5b5e46})=>{const _0x1699cf=_0x2dcf11;_0x43b79f[_0x1699cf(0xc9)][_0x1699cf(0xf7)]=_0x312e7c,_0x43b79f[_0x1699cf(0xc9)][_0x1699cf(0xe2)]=_0x5b5e46;});}[_0x331c88(0x83)](_0x58fa24){const _0x23cf0a=_0x331c88,_0x1d78b1=[];let _0x2404cf=_0x58fa24;for(;_0x2404cf&&_0x2404cf!==document[_0x23cf0a(0xb5)];){const _0x2ce972=window[_0x23cf0a(0x75)](_0x2404cf);_0x23cf0a(0xc6)!==_0x2ce972[_0x23cf0a(0xf7)]&&_0x23cf0a(0x105)!==_0x2ce972[_0x23cf0a(0xe2)]||(_0x1d78b1[_0x23cf0a(0xca)]({'element':_0x2404cf,'originalDisplay':_0x2404cf[_0x23cf0a(0xc9)][_0x23cf0a(0xf7)],'originalVisibility':_0x2404cf[_0x23cf0a(0xc9)][_0x23cf0a(0xe2)]}),_0x2404cf[_0x23cf0a(0xc9)][_0x23cf0a(0xf7)]=_0x23cf0a(0x71),_0x2404cf[_0x23cf0a(0xc9)][_0x23cf0a(0xe2)]=_0x23cf0a(0xb1)),_0x2404cf=_0x2404cf[_0x23cf0a(0xd9)];}return _0x1d78b1;}[_0x331c88(0x82)](){const _0x15d5ed=_0x331c88;let _0x2cc2d2,_0x17008d;return this[_0x15d5ed(0x7e)]?.[_0x15d5ed(0xd4)]?(_0x2cc2d2=this[_0x15d5ed(0x7e)][_0x15d5ed(0xd4)][_0x15d5ed(0x73)](!0x0),_0x17008d=this[_0x15d5ed(0x103)](_0x2cc2d2)):(_0x2cc2d2=document[_0x15d5ed(0xfe)](_0x15d5ed(0xd1)),_0x17008d=_0x2cc2d2),{'calculationContainer':_0x2cc2d2,'targetContainer':_0x17008d};}[_0x331c88(0x79)](){const _0x2e7f97=_0x331c88,{calculationContainer:_0x5509f8,targetContainer:_0x363e48}=this[_0x2e7f97(0x82)](),_0xc11d72=this[_0x2e7f97(0xf8)]();this[_0x2e7f97(0x86)](_0x5509f8,_0xc11d72);const _0x49338d=this[_0x2e7f97(0x7e)]?.[_0x2e7f97(0xd4)]||this[_0x2e7f97(0xbb)],_0x5d8bb7=_0x49338d?.[_0x2e7f97(0xd9)];_0x5d8bb7?_0x5d8bb7[_0x2e7f97(0x76)](_0x5509f8):document[_0x2e7f97(0xb5)][_0x2e7f97(0x76)](_0x5509f8),_0x5509f8[_0x2e7f97(0x85)]=_0x363e48;const _0x59f00b=this[_0x2e7f97(0x83)](_0x5d8bb7||null);return _0x5509f8[_0x2e7f97(0xde)],_0x5509f8[_0x2e7f97(0xe4)]=_0x59f00b,_0x5509f8;}[_0x331c88(0x100)](_0x208282,_0x25a548){const _0x112c8d=_0x331c88,_0x2f55a4=_0x208282[_0x112c8d(0x85)]||_0x208282,_0x5307a1=[],{rowCount:_0x2be262}=this[_0x112c8d(0xe8)](_0x2f55a4,_0x25a548);if(_0x2be262<=this[_0x112c8d(0xe0)][_0x112c8d(0xdf)])return _0x5307a1;const _0x4c81fd=_0x25a548[_0x112c8d(0x7f)]();for(;_0x4c81fd[_0x112c8d(0xf1)]>0x0;){if(this[_0x112c8d(0x99)](_0x208282,_0x2f55a4,_0x4c81fd)){const _0xee5eb5=_0x25a548[_0x112c8d(0xda)](_0x450760=>!_0x4c81fd[_0x112c8d(0xb3)](_0x450760));_0x5307a1[_0x112c8d(0xca)](..._0xee5eb5);break;}if(!_0x4c81fd[_0x112c8d(0xd8)]())break;}return _0x5307a1;}[_0x331c88(0xe8)](_0x77f2d,_0x1d4779){const _0x303b83=_0x331c88;_0x77f2d[_0x303b83(0xc8)]='',_0x1d4779[_0x303b83(0xaa)](_0x29d119=>{const _0x19952d=_0x303b83;if(_0x29d119[_0x19952d(0xd4)]){const _0x42b658=_0x29d119[_0x19952d(0xd4)][_0x19952d(0x73)](!0x0);_0x77f2d[_0x19952d(0x76)](_0x42b658);}}),_0x77f2d[_0x303b83(0xde)];const _0x30ef77=_0x77f2d[_0x303b83(0xa8)],_0x370817=[];return Array[_0x303b83(0xce)](_0x30ef77)[_0x303b83(0xaa)](_0x43ffc3=>{const _0x4da1ab=_0x303b83,_0x438ec1=_0x43ffc3[_0x4da1ab(0xb2)]()[_0x4da1ab(0xd7)];_0x370817[_0x4da1ab(0xab)](_0x980efa=>Math[_0x4da1ab(0xd5)](_0x980efa-_0x438ec1)<this[_0x4da1ab(0xe0)][_0x4da1ab(0xf5)])||_0x370817[_0x4da1ab(0xca)](_0x438ec1);}),{'rowCount':_0x370817[_0x303b83(0xf1)]};}[_0x331c88(0x77)](){const _0x57355f=_0x331c88,_0x4fba00=document[_0x57355f(0xfe)](_0x57355f(0xd2));return _0x4fba00[_0x57355f(0x93)]=this[_0x57355f(0xe0)][_0x57355f(0xa1)][_0x57355f(0xf0)],this[_0x57355f(0xe0)][_0x57355f(0xa1)][_0x57355f(0xa4)]&&_0x4fba00[_0x57355f(0x7c)][_0x57355f(0x104)](this[_0x57355f(0xe0)][_0x57355f(0xa1)][_0x57355f(0xa4)]),_0x4fba00[_0x57355f(0x8a)]=_0x57355f(0xeb),_0x4fba00;}[_0x331c88(0x99)](_0x267a05,_0x1542bb,_0x25ec65){const _0x145ca6=_0x331c88;this[_0x145ca6(0xe8)](_0x1542bb,_0x25ec65);const _0x1f439c=this[_0x145ca6(0x77)]();_0x267a05[_0x145ca6(0x76)](_0x1f439c),_0x267a05[_0x145ca6(0xde)];const _0xed7d8e=[..._0x1542bb[_0x145ca6(0xa8)],_0x1f439c],_0xb96c9b=[];_0xed7d8e[_0x145ca6(0xaa)](_0x1464e6=>{const _0x4d5f35=_0x145ca6,_0x34a33a=_0x1464e6[_0x4d5f35(0xb2)]()[_0x4d5f35(0xd7)];_0xb96c9b[_0x4d5f35(0xab)](_0x1a9fc3=>Math[_0x4d5f35(0xd5)](_0x1a9fc3-_0x34a33a)<this[_0x4d5f35(0xe0)][_0x4d5f35(0xf5)])||_0xb96c9b[_0x4d5f35(0xca)](_0x34a33a);});const _0x1b034c=_0xb96c9b[_0x145ca6(0xf1)];return _0x1f439c[_0x145ca6(0xe3)](),_0x1b034c<=this[_0x145ca6(0xe0)][_0x145ca6(0xdf)];}[_0x331c88(0xac)](_0x2d2f8a,_0x4d6747){const _0x4be67b=_0x331c88;this[_0x4be67b(0x89)][_0x4be67b(0xb8)](),this[_0x4be67b(0xd6)][_0x4be67b(0xb8)](),_0x2d2f8a[_0x4be67b(0xaa)](_0x2275f0=>{const _0x36716d=_0x4be67b;_0x4d6747[_0x36716d(0xb3)](_0x2275f0)?this[_0x36716d(0xd6)][_0x36716d(0x104)](_0x2275f0):this[_0x36716d(0x89)][_0x36716d(0x104)](_0x2275f0);});}[_0x331c88(0x9a)](_0x1cc441){const _0x34a834=_0x331c88;if(_0x1cc441>0x0&&!this[_0x34a834(0xfa)]&&this[_0x34a834(0xc4)](),_0x1cc441>0x0&&this[_0x34a834(0xfa)]){const _0x3369cc=''+this[_0x34a834(0xe0)][_0x34a834(0x8f)]+(_0x1cc441<0x63?_0x1cc441:'99');this[_0x34a834(0xfa)][_0x34a834(0xe9)]=_0x3369cc;}this[_0x34a834(0x9d)](),this[_0x34a834(0x78)](),this[_0x34a834(0x81)]();}[_0x331c88(0xfd)](_0x51f016,_0x3d63c5){const _0x210109=_0x331c88;this[_0x210109(0xac)](_0x51f016,_0x3d63c5),this[_0x210109(0x9a)](_0x3d63c5[_0x210109(0xf1)]);}[_0x331c88(0xd0)](){const _0xa0331e=_0x331c88;this[_0xa0331e(0xbb)]&&_0xa0331e(0x94)!=typeof IntersectionObserver&&(this[_0xa0331e(0x97)]=new IntersectionObserver(_0x158fec=>{const _0x3aae12=_0xa0331e;_0x158fec[0x0][_0x3aae12(0xf6)]&&this[_0x3aae12(0xdb)]&&requestAnimationFrame(()=>{const _0x1806bc=_0x3aae12;this[_0x1806bc(0xdd)]();});},{'threshold':0.01,'rootMargin':_0xa0331e(0xc5)}),this[_0xa0331e(0x97)][_0xa0331e(0xea)](this[_0xa0331e(0xbb)]));}[_0x331c88(0xb9)](){const _0x1a40b3=_0x331c88;if(!this[_0x1a40b3(0xbb)])return!0x1;if(!this[_0x1a40b3(0xbb)][_0x1a40b3(0xff)])return!0x1;const _0x467466=this[_0x1a40b3(0xbb)][_0x1a40b3(0xb2)]();if(0x0===_0x467466[_0x1a40b3(0xcf)]||0x0===_0x467466[_0x1a40b3(0x9e)])return!0x1;const _0x1326b3=window[_0x1a40b3(0x7a)]||document[_0x1a40b3(0x8c)][_0x1a40b3(0x96)],_0x307c34=window[_0x1a40b3(0x90)]||document[_0x1a40b3(0x8c)][_0x1a40b3(0xf3)],_0x371d68=0xc8;return _0x467466[_0x1a40b3(0xc0)]>=-0xc8&&_0x467466[_0x1a40b3(0xd7)]<=_0x1326b3+_0x371d68&&_0x467466[_0x1a40b3(0x7d)]>=-0xc8&&_0x467466[_0x1a40b3(0xcc)]<=_0x307c34+_0x371d68;}}
23
+ const _0x150268=_0x5725;(function(_0x54367a,_0x4b8914){const _0x5696fb=_0x5725,_0x41127b=_0x54367a();while(!![]){try{const _0x4e94ee=parseInt(_0x5696fb(0x116))/0x1+parseInt(_0x5696fb(0xc4))/0x2+-parseInt(_0x5696fb(0xbb))/0x3+parseInt(_0x5696fb(0xa4))/0x4*(parseInt(_0x5696fb(0xbd))/0x5)+-parseInt(_0x5696fb(0xf2))/0x6+-parseInt(_0x5696fb(0x100))/0x7*(parseInt(_0x5696fb(0xd4))/0x8)+-parseInt(_0x5696fb(0xd0))/0x9*(-parseInt(_0x5696fb(0xe7))/0xa);if(_0x4e94ee===_0x4b8914)break;else _0x41127b['push'](_0x41127b['shift']());}catch(_0x284646){_0x41127b['push'](_0x41127b['shift']());}}}(_0x44dd,0x58904));import{View as _0x39eaab,BalloonPanelView as _0x163201,ButtonView as _0x23f99f,clickOutsideHandler as _0x3a9117}from'ckeditor5/src/ui.js';function _0x44dd(){const _0x2e8ded=['hidden','showMoreButton','execute','50px','opacity','length','maxVisibleRows','includes','isConnected','4GyIfHC','_createShowMoreButtonView','getBoundingClientRect','zIndex','top','calculationContainer','visible','_targetContainer','rowDetectionTolerance','_createCalculationContainer','_makeAncestorsVisible','_isContainerVisible','documentElement','textContent','_visibleChips','_overflowChips','showMoreLabelPrefix','visibility','_updateOverflowUI','destroy','from','offsetWidth','bottom','1297239JTGMuO','overflowChips','2677885YDbFMS','none','_handleShowMoreButtonClick','_checkAndHandleOverflow','classList','setTemplate','height','608700ptHPMe','pointerEvents','_showMoreButtonView','cloneNode','abs','label','isIntersecting','style','.ck-ai-chat','visible\x20!important','div','_createContainerElements','9OaCwZQ','tagName','hide','_applyOverflowResults','968264ginuBv','overflowContainer','ck-calculation-container','_distributeChips','show','appendChild','_showMoreBalloonPanelView','_calculateOverflowInContainer','className','pop','render','_pendingCalculation','_parentView','_bodyCollection','observe','_containerElement','content','+\x201','_locale','903340qCUjnM','_createMockButton','_repinBalloonPanel','some','block','block\x20!important','position','reorganizeChips','toLowerCase','_intersectionObserver','-9999px','3060972mkkegU','controlsButton','remove','innerWidth','hideBalloonPanel','_calculateContainerWidth','showMoreButtonView','0px','createElement','element','clear','_ancestorsToRestore','button','_restoreAncestorVisibility','7gxTbbQ','cssClasses','body','filter','_config','showMoreBalloon','_applyCalculationStyles','_createShowMoreButton','undefined','innerHeight','parentElement','clientWidth','isOn','clientHeight','isVisible','setContainerElement','width','_updateShowMoreButtonVisibility','add','_createShowMoreBalloonPanelView','forEach','set','496103VoQXPY','border-box','left','300px','querySelector','_updateBalloonContent','extendTemplate','auto','absolute','_renderChipsAndCountRows','_testButtonFit','disableAnimationOnEnter','children','display','showBalloonPanel','_setupVisibilityObserver','push','pin','right','slice','boxSizing','_findTargetContainer','innerHTML','disconnect','getComputedStyle'];_0x44dd=function(){return _0x2e8ded;};return _0x44dd();}function _0x5725(_0xd4f308,_0x3a0a2b){const _0x44dd6f=_0x44dd();return _0x5725=function(_0x57253c,_0x4ac6c5){_0x57253c=_0x57253c-0xa0;let _0x5c5a69=_0x44dd6f[_0x57253c];return _0x5c5a69;},_0x5725(_0xd4f308,_0x3a0a2b);}import{Collection as _0x3eb3ff}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},an=_0x150268(0x119);export class AIChatChipsOverflowManager{[_0x150268(0xe6)];[_0x150268(0x104)];[_0x150268(0xb2)];[_0x150268(0xb3)];[_0x150268(0xc6)]=null;[_0x150268(0xda)]=null;[_0x150268(0xe3)]=null;[_0x150268(0xe1)];[_0x150268(0xe0)]=null;[_0x150268(0xf0)]=null;[_0x150268(0xdf)]=!0x1;constructor(_0x2de664,_0x3b3f16,_0x5f0c21,_0x33663b,_0x2317f2){const _0x382e6e=_0x150268;this[_0x382e6e(0xe6)]=_0x2de664,this[_0x382e6e(0xb2)]=_0x3b3f16,this[_0x382e6e(0x104)]={...hn,..._0x5f0c21,'cssClasses':{'controlsButton':'','calculationContainer':_0x382e6e(0xd6),..._0x5f0c21[_0x382e6e(0x101)]}},this[_0x382e6e(0xb3)]=new _0x3eb3ff(),this[_0x382e6e(0xe1)]=_0x33663b,this[_0x382e6e(0xe0)]=_0x2317f2||null;}[_0x150268(0x10f)](_0xc595a){const _0x257fe7=_0x150268;this[_0x257fe7(0xf0)]&&(this[_0x257fe7(0xf0)][_0x257fe7(0x12d)](),this[_0x257fe7(0xf0)]=null),this[_0x257fe7(0xe3)]=_0xc595a,this[_0x257fe7(0x125)]();}get[_0x150268(0xf8)](){const _0x5559ca=_0x150268;return this[_0x5559ca(0xc6)];}get[_0x150268(0xbc)](){const _0x2e449a=_0x150268;return this[_0x2e449a(0xb3)];}[_0x150268(0xee)](){requestAnimationFrame(()=>{const _0x56d9f3=_0x5725;this[_0x56d9f3(0xc0)]();});}[_0x150268(0x124)](){const _0x3248b6=_0x150268;this[_0x3248b6(0xc6)]&&this[_0x3248b6(0xda)]&&(this[_0x3248b6(0x11b)](),this[_0x3248b6(0xc6)][_0x3248b6(0x10c)]=!0x0,this[_0x3248b6(0xda)][_0x3248b6(0xd8)](),this[_0x3248b6(0xda)][_0x3248b6(0x127)]({'target':this[_0x3248b6(0xc6)][_0x3248b6(0xfb)],'limiter':document[_0x3248b6(0x11a)](_0x3248b6(0xcc))}));}[_0x150268(0xf6)](){const _0x1e2962=_0x150268;this[_0x1e2962(0xc6)]&&this[_0x1e2962(0xda)]&&(this[_0x1e2962(0xc6)][_0x1e2962(0x10c)]=!0x1,this[_0x1e2962(0xda)][_0x1e2962(0xd2)]());}[_0x150268(0xfc)](){const _0x1a0231=_0x150268;this[_0x1a0231(0xb3)][_0x1a0231(0xfc)](),this[_0x1a0231(0xf6)](),this[_0x1a0231(0x111)](),this[_0x1a0231(0xc6)]&&(this[_0x1a0231(0xc6)][_0x1a0231(0xc9)]=''),this[_0x1a0231(0xda)]&&this[_0x1a0231(0xda)][_0x1a0231(0xe4)][_0x1a0231(0xfc)]();}[_0x150268(0xb7)](){const _0xc05413=_0x150268;this[_0xc05413(0xf0)]&&(this[_0xc05413(0xf0)][_0xc05413(0x12d)](),this[_0xc05413(0xf0)]=null),this[_0xc05413(0xc6)]&&(this[_0xc05413(0xc6)][_0xc05413(0xb7)](),this[_0xc05413(0xc6)]=null),this[_0xc05413(0xda)]&&(this[_0xc05413(0xda)][_0xc05413(0xb7)](),this[_0xc05413(0xda)]=null);}[_0x150268(0xc0)](){const _0x5de3cf=_0x150268;if(!this[_0x5de3cf(0xe3)])return;if(!this[_0x5de3cf(0xaf)]())return void(this[_0x5de3cf(0xdf)]=!0x0);this[_0x5de3cf(0xdf)]=!0x1;const _0x5e726e=[...this[_0x5de3cf(0xb2)],...this[_0x5de3cf(0xb3)]],_0x4c4a15=this[_0x5de3cf(0xad)](),_0x14a189=this[_0x5de3cf(0xdb)](_0x4c4a15,_0x5e726e),_0x2e165d=_0x4c4a15[_0x5de3cf(0xfd)];_0x2e165d&&this[_0x5de3cf(0xff)](_0x2e165d),_0x4c4a15[_0x5de3cf(0xf4)](),this[_0x5de3cf(0xd3)](_0x5e726e,_0x14a189);}[_0x150268(0x107)](){const _0x277957=_0x150268;this[_0x277957(0xc6)]=this[_0x277957(0xa5)](),this[_0x277957(0xda)]=this[_0x277957(0x113)](),this[_0x277957(0xc6)][_0x277957(0xde)](),this[_0x277957(0xe3)][_0x277957(0xd9)](this[_0x277957(0xc6)][_0x277957(0xfb)]),this[_0x277957(0xc6)]['on'](_0x277957(0x131),()=>{const _0x3a5bef=_0x277957;this[_0x3a5bef(0xbf)]();}),_0x3a9117({'emitter':this[_0x277957(0xda)],'contextElements':[this[_0x277957(0xda)][_0x277957(0xfb)],this[_0x277957(0xc6)][_0x277957(0xfb)]],'callback':()=>this[_0x277957(0xf6)](),'activator':()=>this[_0x277957(0xc6)][_0x277957(0x10c)]});}[_0x150268(0xa5)](){const _0xc109cf=_0x150268,_0x4089e9=new _0x23f99f(this[_0xc109cf(0xe6)]);_0x4089e9[_0xc109cf(0x115)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x18b2e2=[this[_0xc109cf(0x104)][_0xc109cf(0x101)][_0xc109cf(0x130)]];return this[_0xc109cf(0x104)][_0xc109cf(0x101)][_0xc109cf(0xf3)]&&_0x18b2e2[_0xc109cf(0x126)](this[_0xc109cf(0x104)][_0xc109cf(0x101)][_0xc109cf(0xf3)]),_0x4089e9[_0xc109cf(0x11c)]({'attributes':{'class':_0x18b2e2}}),_0x4089e9;}[_0x150268(0x113)](){const _0x4e9c57=_0x150268,_0x2e71be=new _0x163201(this[_0x4e9c57(0xe6)]);return _0x2e71be[_0x4e9c57(0x11c)]({'attributes':{'class':this[_0x4e9c57(0x104)][_0x4e9c57(0x101)][_0x4e9c57(0x105)]}}),this[_0x4e9c57(0xe1)][_0x4e9c57(0x112)](_0x2e71be),_0x2e71be;}[_0x150268(0x11b)](){const _0x7292b5=_0x150268;if(this[_0x7292b5(0xda)]&&(this[_0x7292b5(0xda)][_0x7292b5(0xe4)][_0x7292b5(0xfc)](),this[_0x7292b5(0xb3)][_0x7292b5(0xa0)]>0x0)){this[_0x7292b5(0xb3)][_0x7292b5(0x114)](_0x2d1047=>{const _0x13a1be=_0x7292b5;_0x2d1047[_0x13a1be(0x121)]();});const _0x40f64f=new _0x39eaab(this[_0x7292b5(0xe6)]);_0x40f64f[_0x7292b5(0xc2)]({'tag':_0x7292b5(0xce),'attributes':{'class':this[_0x7292b5(0x104)][_0x7292b5(0x101)][_0x7292b5(0xd5)]},'children':this[_0x7292b5(0xb3)]}),this[_0x7292b5(0xda)][_0x7292b5(0xe4)][_0x7292b5(0x112)](_0x40f64f);}}[_0x150268(0xbf)](){const _0xe47329=_0x150268;this[_0xe47329(0xc6)][_0xe47329(0x10c)]?this[_0xe47329(0xf6)]():this[_0xe47329(0x124)]();}[_0x150268(0x111)](){const _0x3b0dfe=_0x150268,_0x1a70a2=this[_0x3b0dfe(0xb3)][_0x3b0dfe(0xa0)]>0x0;this[_0x3b0dfe(0xc6)]?.[_0x3b0dfe(0xfb)]&&(this[_0x3b0dfe(0xc6)][_0x3b0dfe(0xfb)][_0x3b0dfe(0xcb)][_0x3b0dfe(0x123)]=_0x1a70a2?'':_0x3b0dfe(0xbe));}[_0x150268(0xe9)](){const _0x481501=_0x150268;this[_0x481501(0xc6)]?.[_0x481501(0x10c)]&&this[_0x481501(0xda)]?.[_0x481501(0x10e)]&&this[_0x481501(0xc6)][_0x481501(0xfb)]&&this[_0x481501(0xda)][_0x481501(0x127)]({'target':this[_0x481501(0xc6)][_0x481501(0xfb)],'limiter':document[_0x481501(0x11a)](_0x481501(0xcc))});}[_0x150268(0x12b)](_0x36c620){const _0x52eeb9=_0x150268,_0xad80dd=this[_0x52eeb9(0xe3)]?.[_0x52eeb9(0xd1)][_0x52eeb9(0xef)]()||_0x52eeb9(0xce),_0x3c5a8e=this[_0x52eeb9(0xe3)]?.[_0x52eeb9(0xc1)];if(_0x3c5a8e){const _0x4bbe7a=_0x3c5a8e[0x0]||'',_0x52ce91=_0x36c620[_0x52eeb9(0x11a)]('.'+_0x4bbe7a),_0x2599e2=_0x36c620[_0x52eeb9(0x11a)](_0xad80dd);return _0x52ce91||_0x2599e2||_0x36c620;}return _0x36c620[_0x52eeb9(0x11a)](_0xad80dd)||_0x36c620;}[_0x150268(0xf7)](){const _0x505b8f=_0x150268,_0x4e8af6=this[_0x505b8f(0xe0)]?.[_0x505b8f(0xfb)]||this[_0x505b8f(0xe3)];if(!_0x4e8af6)return an;const _0x53b602=window[_0x505b8f(0x12e)](_0x4e8af6)[_0x505b8f(0x110)];if(_0x505b8f(0x11d)===_0x53b602||_0x505b8f(0xf9)===_0x53b602||!_0x53b602){const _0xf36e11=_0x4e8af6[_0x505b8f(0x10a)];if(_0xf36e11){const _0x5512f4=window[_0x505b8f(0x12e)](_0xf36e11);return _0x505b8f(0x11d)!==_0x5512f4[_0x505b8f(0x110)]?_0x5512f4[_0x505b8f(0x110)]:an;}return an;}return _0x53b602;}[_0x150268(0x106)](_0x1ae852,_0x28c11c){const _0x5e1107=_0x150268;this[_0x5e1107(0x104)][_0x5e1107(0x101)][_0x5e1107(0xa9)]&&_0x1ae852[_0x5e1107(0xc1)][_0x5e1107(0x112)](this[_0x5e1107(0x104)][_0x5e1107(0x101)][_0x5e1107(0xa9)]),_0x1ae852[_0x5e1107(0xcb)][_0x5e1107(0x110)]=_0x28c11c,_0x1ae852[_0x5e1107(0xcb)][_0x5e1107(0xed)]=_0x5e1107(0x11e),_0x1ae852[_0x5e1107(0xcb)][_0x5e1107(0xa8)]=_0x5e1107(0xf1),_0x1ae852[_0x5e1107(0xcb)][_0x5e1107(0x118)]=_0x5e1107(0xf1),_0x1ae852[_0x5e1107(0xcb)][_0x5e1107(0x133)]='0',_0x1ae852[_0x5e1107(0xcb)][_0x5e1107(0xc5)]=_0x5e1107(0xbe),_0x1ae852[_0x5e1107(0xcb)][_0x5e1107(0xa7)]='-1',_0x1ae852[_0x5e1107(0xcb)][_0x5e1107(0xb5)]=_0x5e1107(0xcd),_0x1ae852[_0x5e1107(0xcb)][_0x5e1107(0x123)]=_0x5e1107(0xec),_0x1ae852[_0x5e1107(0xcb)][_0x5e1107(0x12a)]=_0x5e1107(0x117);}[_0x150268(0xff)](_0x104c20){const _0x332f6d=_0x150268;_0x104c20[_0x332f6d(0x114)](({element:_0x324079,originalDisplay:_0x264422,originalVisibility:_0x42272f})=>{const _0x2c5723=_0x332f6d;_0x324079[_0x2c5723(0xcb)][_0x2c5723(0x123)]=_0x264422,_0x324079[_0x2c5723(0xcb)][_0x2c5723(0xb5)]=_0x42272f;});}[_0x150268(0xae)](_0x4ecd7b){const _0x523e44=_0x150268,_0x1c0c18=[];let _0x522bff=_0x4ecd7b;for(;_0x522bff&&_0x522bff!==document[_0x523e44(0x102)];){const _0x4701f6=window[_0x523e44(0x12e)](_0x522bff);_0x523e44(0xbe)!==_0x4701f6[_0x523e44(0x123)]&&_0x523e44(0x12f)!==_0x4701f6[_0x523e44(0xb5)]||(_0x1c0c18[_0x523e44(0x126)]({'element':_0x522bff,'originalDisplay':_0x522bff[_0x523e44(0xcb)][_0x523e44(0x123)],'originalVisibility':_0x522bff[_0x523e44(0xcb)][_0x523e44(0xb5)]}),_0x522bff[_0x523e44(0xcb)][_0x523e44(0x123)]=_0x523e44(0xeb),_0x522bff[_0x523e44(0xcb)][_0x523e44(0xb5)]=_0x523e44(0xaa)),_0x522bff=_0x522bff[_0x523e44(0x10a)];}return _0x1c0c18;}[_0x150268(0xcf)](){const _0xb46e00=_0x150268;let _0x504d4f,_0x396447;return this[_0xb46e00(0xe0)]?.[_0xb46e00(0xfb)]?(_0x504d4f=this[_0xb46e00(0xe0)][_0xb46e00(0xfb)][_0xb46e00(0xc7)](!0x0),_0x396447=this[_0xb46e00(0x12b)](_0x504d4f)):(_0x504d4f=document[_0xb46e00(0xfa)](_0xb46e00(0xce)),_0x396447=_0x504d4f),{'calculationContainer':_0x504d4f,'targetContainer':_0x396447};}[_0x150268(0xad)](){const _0x1c42cc=_0x150268,{calculationContainer:_0x45730d,targetContainer:_0x2a208b}=this[_0x1c42cc(0xcf)](),_0xdf0989=this[_0x1c42cc(0xf7)]();this[_0x1c42cc(0x106)](_0x45730d,_0xdf0989);const _0x1ec086=this[_0x1c42cc(0xe0)]?.[_0x1c42cc(0xfb)]||this[_0x1c42cc(0xe3)],_0x526b4a=_0x1ec086?.[_0x1c42cc(0x10a)];_0x526b4a?_0x526b4a[_0x1c42cc(0xd9)](_0x45730d):document[_0x1c42cc(0x102)][_0x1c42cc(0xd9)](_0x45730d),_0x45730d[_0x1c42cc(0xab)]=_0x2a208b;const _0x50ddf9=this[_0x1c42cc(0xae)](_0x526b4a||null);return _0x45730d[_0x1c42cc(0xb9)],_0x45730d[_0x1c42cc(0xfd)]=_0x50ddf9,_0x45730d;}[_0x150268(0xdb)](_0x4c52ef,_0x3a6f3b){const _0x58d477=_0x150268,_0x30deec=_0x4c52ef[_0x58d477(0xab)]||_0x4c52ef,_0x3bcac8=[],{rowCount:_0x270283}=this[_0x58d477(0x11f)](_0x30deec,_0x3a6f3b);if(_0x270283<=this[_0x58d477(0x104)][_0x58d477(0xa1)])return _0x3bcac8;const _0x4a21bf=_0x3a6f3b[_0x58d477(0x129)]();for(;_0x4a21bf[_0x58d477(0xa0)]>0x0;){if(this[_0x58d477(0x120)](_0x4c52ef,_0x30deec,_0x4a21bf)){const _0xea88cb=_0x3a6f3b[_0x58d477(0x103)](_0x3f4449=>!_0x4a21bf[_0x58d477(0xa2)](_0x3f4449));_0x3bcac8[_0x58d477(0x126)](..._0xea88cb);break;}if(!_0x4a21bf[_0x58d477(0xdd)]())break;}return _0x3bcac8;}[_0x150268(0x11f)](_0x2c07a9,_0x58d405){const _0x191ef1=_0x150268;_0x2c07a9[_0x191ef1(0x12c)]='',_0x58d405[_0x191ef1(0x114)](_0xf2bf20=>{const _0x1c144e=_0x191ef1;if(_0xf2bf20[_0x1c144e(0xfb)]){const _0x8543cc=_0xf2bf20[_0x1c144e(0xfb)][_0x1c144e(0xc7)](!0x0);_0x2c07a9[_0x1c144e(0xd9)](_0x8543cc);}}),_0x2c07a9[_0x191ef1(0xb9)];const _0x5e2231=_0x2c07a9[_0x191ef1(0x122)],_0x44c57a=[];return Array[_0x191ef1(0xb8)](_0x5e2231)[_0x191ef1(0x114)](_0xc3d289=>{const _0x51500b=_0x191ef1,_0x437b30=_0xc3d289[_0x51500b(0xa6)]()[_0x51500b(0xa8)];_0x44c57a[_0x51500b(0xea)](_0x176e64=>Math[_0x51500b(0xc8)](_0x176e64-_0x437b30)<this[_0x51500b(0x104)][_0x51500b(0xac)])||_0x44c57a[_0x51500b(0x126)](_0x437b30);}),{'rowCount':_0x44c57a[_0x191ef1(0xa0)]};}[_0x150268(0xe8)](){const _0x3e6d4f=_0x150268,_0x253d92=document[_0x3e6d4f(0xfa)](_0x3e6d4f(0xfe));return _0x253d92[_0x3e6d4f(0xdc)]=this[_0x3e6d4f(0x104)][_0x3e6d4f(0x101)][_0x3e6d4f(0x130)],this[_0x3e6d4f(0x104)][_0x3e6d4f(0x101)][_0x3e6d4f(0xf3)]&&_0x253d92[_0x3e6d4f(0xc1)][_0x3e6d4f(0x112)](this[_0x3e6d4f(0x104)][_0x3e6d4f(0x101)][_0x3e6d4f(0xf3)]),_0x253d92[_0x3e6d4f(0xb1)]=_0x3e6d4f(0xe5),_0x253d92;}[_0x150268(0x120)](_0xd9b0bd,_0x6cf49b,_0x4efbb3){const _0x1c0837=_0x150268;this[_0x1c0837(0x11f)](_0x6cf49b,_0x4efbb3);const _0x417862=this[_0x1c0837(0xe8)]();_0xd9b0bd[_0x1c0837(0xd9)](_0x417862),_0xd9b0bd[_0x1c0837(0xb9)];const _0xfa00a1=[..._0x6cf49b[_0x1c0837(0x122)],_0x417862],_0x22aaf5=[];_0xfa00a1[_0x1c0837(0x114)](_0x5b6227=>{const _0x9e68f7=_0x1c0837,_0x12cbbf=_0x5b6227[_0x9e68f7(0xa6)]()[_0x9e68f7(0xa8)];_0x22aaf5[_0x9e68f7(0xea)](_0x44c9d3=>Math[_0x9e68f7(0xc8)](_0x44c9d3-_0x12cbbf)<this[_0x9e68f7(0x104)][_0x9e68f7(0xac)])||_0x22aaf5[_0x9e68f7(0x126)](_0x12cbbf);});const _0x3bfe38=_0x22aaf5[_0x1c0837(0xa0)];return _0x417862[_0x1c0837(0xf4)](),_0x3bfe38<=this[_0x1c0837(0x104)][_0x1c0837(0xa1)];}[_0x150268(0xd7)](_0x31d11a,_0x368d68){const _0x5bdad7=_0x150268;this[_0x5bdad7(0xb2)][_0x5bdad7(0xfc)](),this[_0x5bdad7(0xb3)][_0x5bdad7(0xfc)](),_0x31d11a[_0x5bdad7(0x114)](_0x48aeea=>{const _0x24f9f7=_0x5bdad7;_0x368d68[_0x24f9f7(0xa2)](_0x48aeea)?this[_0x24f9f7(0xb3)][_0x24f9f7(0x112)](_0x48aeea):this[_0x24f9f7(0xb2)][_0x24f9f7(0x112)](_0x48aeea);});}[_0x150268(0xb6)](_0x41b694){const _0x4c6d99=_0x150268;if(_0x41b694>0x0&&!this[_0x4c6d99(0xc6)]&&this[_0x4c6d99(0x107)](),_0x41b694>0x0&&this[_0x4c6d99(0xc6)]){const _0x3e87ea=''+this[_0x4c6d99(0x104)][_0x4c6d99(0xb4)]+(_0x41b694<0x63?_0x41b694:'99');this[_0x4c6d99(0xc6)][_0x4c6d99(0xc9)]=_0x3e87ea;}this[_0x4c6d99(0x11b)](),this[_0x4c6d99(0x111)](),this[_0x4c6d99(0xe9)]();}[_0x150268(0xd3)](_0x3d9b2a,_0x2e28c6){const _0x39f868=_0x150268;this[_0x39f868(0xd7)](_0x3d9b2a,_0x2e28c6),this[_0x39f868(0xb6)](_0x2e28c6[_0x39f868(0xa0)]);}[_0x150268(0x125)](){const _0x305d28=_0x150268;this[_0x305d28(0xe3)]&&_0x305d28(0x108)!=typeof IntersectionObserver&&(this[_0x305d28(0xf0)]=new IntersectionObserver(_0x4acc68=>{const _0x5e04ca=_0x305d28;_0x4acc68[0x0][_0x5e04ca(0xca)]&&this[_0x5e04ca(0xdf)]&&requestAnimationFrame(()=>{const _0x5d955e=_0x5e04ca;this[_0x5d955e(0xc0)]();});},{'threshold':0.01,'rootMargin':_0x305d28(0x132)}),this[_0x305d28(0xf0)][_0x305d28(0xe2)](this[_0x305d28(0xe3)]));}[_0x150268(0xaf)](){const _0x5c15e3=_0x150268;if(!this[_0x5c15e3(0xe3)])return!0x1;if(!this[_0x5c15e3(0xe3)][_0x5c15e3(0xa3)])return!0x1;const _0x304c11=this[_0x5c15e3(0xe3)][_0x5c15e3(0xa6)]();if(0x0===_0x304c11[_0x5c15e3(0x110)]||0x0===_0x304c11[_0x5c15e3(0xc3)])return!0x1;const _0x4e748f=window[_0x5c15e3(0x109)]||document[_0x5c15e3(0xb0)][_0x5c15e3(0x10d)],_0x306c44=window[_0x5c15e3(0xf5)]||document[_0x5c15e3(0xb0)][_0x5c15e3(0x10b)],_0x324312=0xc8;return _0x304c11[_0x5c15e3(0xba)]>=-0xc8&&_0x304c11[_0x5c15e3(0xa8)]<=_0x4e748f+_0x324312&&_0x304c11[_0x5c15e3(0x128)]>=-0xc8&&_0x304c11[_0x5c15e3(0x118)]<=_0x306c44+_0x324312;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3bf021=_0x8c7c;(function(_0x3e03fa,_0x4c3d97){const _0x507721=_0x8c7c,_0xf483cd=_0x3e03fa();while(!![]){try{const _0x12c918=parseInt(_0x507721(0x194))/0x1+-parseInt(_0x507721(0x198))/0x2+parseInt(_0x507721(0x17e))/0x3*(parseInt(_0x507721(0x183))/0x4)+parseInt(_0x507721(0x1b6))/0x5*(parseInt(_0x507721(0x1ac))/0x6)+parseInt(_0x507721(0x199))/0x7+parseInt(_0x507721(0x1ad))/0x8+-parseInt(_0x507721(0x1b5))/0x9;if(_0x12c918===_0x4c3d97)break;else _0xf483cd['push'](_0xf483cd['shift']());}catch(_0x4cd0af){_0xf483cd['push'](_0xf483cd['shift']());}}}(_0x41b5,0x230d6));import{ButtonView as _0x476231,IconView as _0x3ec978}from'ckeditor5/src/ui.js';function _0x41b5(){const _0x290895=['length','_createTemplateAttributes','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','1220466XgUghX','1683760ktFVZz','ck-ai-chat-context-chip_wide','addEventListener','document','readonly','_createIconView','isVisible','execute','5580459qiPDjk','5ILEiMu','selection','ck-ai-chat-context-chip_new-chip','extendTemplate','ck-hidden','slice','ck-ai-chat-context-chip','div','_createTemplateChildren','63435JAhKtr','type','ck-ai-chat-context-chip_document','_setupTemplate','disableAnimationOnEnter','28QVxbVc','setTemplate','_isAnimationOnEnterEnabled','locale','add','element','remove','classList','_initializeProperties','itemType','render','isLoading','webkitAnimationEnd','ck-ai-chat-context-chip__label','_createLabelElement','tooltip','_createLoaderIcon','222952WRWBEq','label','_setupRemoveButtonEvent','lastIndexOf','77596houSAh','123025ClNhaU','small','removeEventListener','ck-ai-chat-context-controls__chip-tooltip','span','uiId','_handleAnimationEndOnce','_createRemoveButton','animationend','removeContextItemChip','ck-ai-chat-context-chip__type-icon','bindTemplate','content','bind','set','fire'];_0x41b5=function(){return _0x290895;};return _0x41b5();}import{IconClose as _0x54b4cd,IconDocument as _0x19e414,IconFileUpload as _0x5d04e3,IconLink as _0x4120f7,IconSelection as _0x448e43}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x46cccd}from'../../../aicore/utils/common-translations.js';function _0x8c7c(_0x1bf45f,_0x1735e1){const _0x41b50c=_0x41b5();return _0x8c7c=function(_0x8c7cb6,_0x1b37f5){_0x8c7cb6=_0x8c7cb6-0x17a;let _0x54b0c1=_0x41b50c[_0x8c7cb6];return _0x54b0c1;},_0x8c7c(_0x1bf45f,_0x1735e1);}import{AISpinnerView as _0x1b1c51}from'../../../aicore/ui/aispinner.js';const bn={'file':_0x5d04e3,'document':_0x19e414,'web-resource':_0x4120f7,'text':_0x5d04e3,'selection':_0x448e43},Tn=_0x3bf021(0x17b),En=_0x3bf021(0x1ae),fn=_0x3bf021(0x180),An=_0x3bf021(0x190),Cn=_0x3bf021(0x1a3),In=_0x3bf021(0x19c),On='n';export class AIChatContextItemButtonView extends _0x476231{constructor(_0x285e62,_0x5db53b,_0x163c67,_0x1855a5,_0x952568=!0x1){const _0x4d01f5=_0x3bf021;super(_0x285e62),this[_0x4d01f5(0x185)]=_0x1855a5,this[_0x4d01f5(0x18b)](_0x5db53b,_0x163c67,_0x952568),this[_0x4d01f5(0x181)]();}[_0x3bf021(0x18d)](){const _0x546d85=_0x3bf021;super[_0x546d85(0x18d)](),this[_0x546d85(0x185)]&&this[_0x546d85(0x188)]&&(this[_0x546d85(0x188)][_0x546d85(0x18a)][_0x546d85(0x187)](_0x546d85(0x1b8)),this[_0x546d85(0x19f)](this[_0x546d85(0x188)],()=>{const _0x41bde6=_0x546d85;this[_0x41bde6(0x188)]&&this[_0x41bde6(0x188)][_0x41bde6(0x18a)][_0x41bde6(0x189)](_0x41bde6(0x1b8));}));}[_0x3bf021(0x182)](){const _0x205580=_0x3bf021;this[_0x205580(0x185)]=!0x1,this[_0x205580(0x188)]&&this[_0x205580(0x188)][_0x205580(0x18a)][_0x205580(0x189)](_0x205580(0x1b8));}[_0x3bf021(0x18b)](_0x2590eb,_0x1ae251,_0x5d57b5){const _0x3f48a3=_0x3bf021;this[_0x3f48a3(0x1a7)](_0x3f48a3(0x195),_0x2590eb[_0x3f48a3(0x195)]),this[_0x3f48a3(0x1a7)](_0x3f48a3(0x192),!0x0),this[_0x3f48a3(0x1a7)](_0x3f48a3(0x18c),_0x2590eb[_0x3f48a3(0x17f)]),this[_0x3f48a3(0x1a7)]('id',_0x2590eb[_0x3f48a3(0x19e)]),this[_0x3f48a3(0x1a7)](_0x3f48a3(0x1b1),_0x1ae251),this[_0x3f48a3(0x1a7)](_0x3f48a3(0x18e),_0x5d57b5);}[_0x3bf021(0x181)](){const _0x40bef9=_0x3bf021,_0x40ef8b=this[_0x40bef9(0x1b2)](),_0x4cc636=this[_0x40bef9(0x1a0)](),_0x21dec6=this[_0x40bef9(0x1a4)];this[_0x40bef9(0x184)]({'tag':_0x40bef9(0x17c),'attributes':this[_0x40bef9(0x1aa)](_0x21dec6),'children':this[_0x40bef9(0x17d)](_0x40ef8b,_0x4cc636,_0x21dec6)});}[_0x3bf021(0x1aa)](_0x446109){const _0xa134b9=_0x3bf021;return{'class':[Tn,_0x446109['if'](_0xa134b9(0x18c),fn,_0x3a05af=>_0xa134b9(0x1b0)==_0x3a05af),_0x446109['if'](_0xa134b9(0x18c),En,_0x55c67a=>_0xa134b9(0x1b7)==_0x55c67a)],'data-cke-tooltip-text':_0x446109['to'](_0xa134b9(0x195),gn),'data-cke-tooltip-position':On,'data-cke-tooltip-class':In};}[_0x3bf021(0x17d)](_0x3031e0,_0x334ef1,_0x484f5a){const _0x38963c=_0x3bf021,_0x380ddf=this[_0x38963c(0x191)](_0x484f5a),_0x28fe00=this[_0x38963c(0x193)]();return this[_0x38963c(0x1b1)]?[_0x3031e0,_0x380ddf]:[_0x3031e0,_0x28fe00,_0x380ddf,_0x334ef1];}[_0x3bf021(0x191)](_0x528faf){const _0x5d7d25=_0x3bf021;return{'tag':_0x5d7d25(0x19d),'attributes':{'class':An},'children':[{'text':_0x528faf['to'](_0x5d7d25(0x195))}]};}[_0x3bf021(0x1a0)](){const _0x40dac0=_0x3bf021,_0x31df5b=new _0x476231(this[_0x40dac0(0x186)]);return _0x31df5b[_0x40dac0(0x1a7)]({'label':_0x46cccd(this[_0x40dac0(0x186)],_0x40dac0(0x1ab)),'icon':_0x54b4cd}),this[_0x40dac0(0x196)](_0x31df5b),_0x31df5b;}[_0x3bf021(0x196)](_0x391035){const _0x40c175=_0x3bf021;_0x391035['on'](_0x40c175(0x1b4),()=>{const _0x5601f2=_0x40c175;this[_0x5601f2(0x1a8)](_0x5601f2(0x1a2),this['id']);});}[_0x3bf021(0x1b2)](){const _0x1411cb=_0x3bf021,_0x48c054=this[_0x1411cb(0x1a4)],_0x5aea0a=new _0x3ec978();return _0x5aea0a[_0x1411cb(0x1a5)]=bn[this[_0x1411cb(0x18c)]],_0x5aea0a[_0x1411cb(0x1b9)]({'attributes':{'class':[Cn,_0x48c054['if'](_0x1411cb(0x18e),_0x1411cb(0x1ba),_0x8d08dc=>_0x8d08dc)]}}),_0x5aea0a;}[_0x3bf021(0x19f)](_0x54efb3,_0x52bb45){const _0x8a5d65=_0x3bf021;if(!_0x54efb3)return;const _0x337f3b=()=>{const _0x4e9612=_0x8c7c;_0x52bb45(),_0x54efb3[_0x4e9612(0x19b)](_0x4e9612(0x1a1),_0x337f3b),_0x54efb3[_0x4e9612(0x19b)](_0x4e9612(0x18f),_0x337f3b);};_0x54efb3[_0x8a5d65(0x1af)](_0x8a5d65(0x1a1),_0x337f3b),_0x54efb3[_0x8a5d65(0x1af)](_0x8a5d65(0x18f),_0x337f3b);}[_0x3bf021(0x193)](){const _0x53c1e4=_0x3bf021,_0x3cdfb3=new _0x1b1c51(_0x53c1e4(0x19a));return _0x3cdfb3[_0x53c1e4(0x1a6)](_0x53c1e4(0x1b3))['to'](this,_0x53c1e4(0x18e),_0x289461=>_0x289461),_0x3cdfb3;}}function gn(_0x48c3fc){const _0x34a994=_0x3bf021;if(!_0x48c3fc)return _0x48c3fc;if(_0x48c3fc[_0x34a994(0x1a9)]<=0x78)return _0x48c3fc;const _0x2bd835=_0x48c3fc[_0x34a994(0x17a)](0x0,0x78),_0x3c2cda=_0x2bd835[_0x34a994(0x197)]('\x20');return(_0x3c2cda>0x0?_0x2bd835[_0x34a994(0x17a)](0x0,_0x3c2cda):_0x2bd835)+'…';}
23
+ const _0x2628ff=_0x431e;function _0x57d3(){const _0xb54f6f=['3059077fEBvvo','ck-ai-chat-context-chip__type-icon','setTemplate','isVisible','_createLabelElement','fire','set','animationend','bindTemplate','10ycZxCm','ck-ai-chat-context-chip_document','5eMVhTu','bind','execute','label','_createTemplateAttributes','ck-ai-chat-context-chip__label','_setupTemplate','itemType','9229672zTVBXO','5359020Mffezr','_createTemplateChildren','addEventListener','document','_createLoaderIcon','ck-ai-chat-context-chip_wide','classList','ck-ai-chat-context-chip','webkitAnimationEnd','_createRemoveButton','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','ck-ai-chat-context-chip_new-chip','div','readonly','lastIndexOf','extendTemplate','disableAnimationOnEnter','length','15043932glOJpt','isLoading','9oSNyFm','slice','removeContextItemChip','span','66957WTOnEN','1182VtlAfU','_setupRemoveButtonEvent','remove','add','_createIconView','small','_handleAnimationEndOnce','selection','ck-hidden','removeEventListener','tooltip','_initializeProperties','content','_isAnimationOnEnterEnabled','uiId','1288498zVOBRT','6228BfWaGG','6FzeLua','type','ck-ai-chat-context-controls__chip-tooltip','render','locale','element'];_0x57d3=function(){return _0xb54f6f;};return _0x57d3();}(function(_0x2ea284,_0x1cd5db){const _0x3c615d=_0x431e,_0x36c2f3=_0x2ea284();while(!![]){try{const _0x46de01=parseInt(_0x3c615d(0x19b))/0x1+-parseInt(_0x3c615d(0x19c))/0x2*(-parseInt(_0x3c615d(0x1d0))/0x3)+-parseInt(_0x3c615d(0x1b7))/0x4*(parseInt(_0x3c615d(0x1ae))/0x5)+parseInt(_0x3c615d(0x19d))/0x6*(-parseInt(_0x3c615d(0x1a3))/0x7)+parseInt(_0x3c615d(0x1b6))/0x8*(-parseInt(_0x3c615d(0x1cb))/0x9)+-parseInt(_0x3c615d(0x1ac))/0xa*(parseInt(_0x3c615d(0x1cf))/0xb)+parseInt(_0x3c615d(0x1c9))/0xc;if(_0x46de01===_0x1cd5db)break;else _0x36c2f3['push'](_0x36c2f3['shift']());}catch(_0x294f9a){_0x36c2f3['push'](_0x36c2f3['shift']());}}}(_0x57d3,0xcb401));function _0x431e(_0x394204,_0x42eba2){const _0x57d379=_0x57d3();return _0x431e=function(_0x431e8e,_0x14e7aa){_0x431e8e=_0x431e8e-0x191;let _0xea8b78=_0x57d379[_0x431e8e];return _0xea8b78;},_0x431e(_0x394204,_0x42eba2);}import{ButtonView as _0x52de99,IconView as _0x119f46}from'ckeditor5/src/ui.js';import{IconClose as _0x15999c,IconDocument as _0x1ee63c,IconFileUpload as _0x472f47,IconLink as _0x5c01dc,IconSelection as _0x4ae262}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x42a705}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x11407c}from'../../../aicore/ui/aispinner.js';const xn={'file':_0x472f47,'document':_0x1ee63c,'web-resource':_0x5c01dc,'text':_0x472f47,'selection':_0x4ae262},bn=_0x2628ff(0x1be),wn=_0x2628ff(0x1bc),Tn=_0x2628ff(0x1ad),En=_0x2628ff(0x1b3),fn=_0x2628ff(0x1a4),An=_0x2628ff(0x19f),Cn='n';export class AIChatContextItemButtonView extends _0x52de99{constructor(_0x4e7e58,_0x22630c,_0x1cb83b,_0x2312ba,_0x184c3f=!0x1){const _0x1a604e=_0x2628ff;super(_0x4e7e58),this[_0x1a604e(0x199)]=_0x2312ba,this[_0x1a604e(0x197)](_0x22630c,_0x1cb83b,_0x184c3f),this[_0x1a604e(0x1b4)]();}[_0x2628ff(0x1a0)](){const _0x2b2a37=_0x2628ff;super[_0x2b2a37(0x1a0)](),this[_0x2b2a37(0x199)]&&this[_0x2b2a37(0x1a2)]&&(this[_0x2b2a37(0x1a2)][_0x2b2a37(0x1bd)][_0x2b2a37(0x1d3)](_0x2b2a37(0x1c2)),this[_0x2b2a37(0x192)](this[_0x2b2a37(0x1a2)],()=>{const _0x11ff6e=_0x2b2a37;this[_0x11ff6e(0x1a2)]&&this[_0x11ff6e(0x1a2)][_0x11ff6e(0x1bd)][_0x11ff6e(0x1d2)](_0x11ff6e(0x1c2));}));}[_0x2628ff(0x1c7)](){const _0x53952b=_0x2628ff;this[_0x53952b(0x199)]=!0x1,this[_0x53952b(0x1a2)]&&this[_0x53952b(0x1a2)][_0x53952b(0x1bd)][_0x53952b(0x1d2)](_0x53952b(0x1c2));}[_0x2628ff(0x197)](_0x1f9305,_0xa7db2e,_0x27ee76){const _0x48acac=_0x2628ff;this[_0x48acac(0x1a9)](_0x48acac(0x1b1),_0x1f9305[_0x48acac(0x1b1)]),this[_0x48acac(0x1a9)](_0x48acac(0x196),!0x0),this[_0x48acac(0x1a9)](_0x48acac(0x1b5),_0x1f9305[_0x48acac(0x19e)]),this[_0x48acac(0x1a9)]('id',_0x1f9305[_0x48acac(0x19a)]),this[_0x48acac(0x1a9)](_0x48acac(0x1c4),_0xa7db2e),this[_0x48acac(0x1a9)](_0x48acac(0x1ca),_0x27ee76);}[_0x2628ff(0x1b4)](){const _0x3f888f=_0x2628ff,_0x28c5bc=this[_0x3f888f(0x1d4)](),_0x4773c7=this[_0x3f888f(0x1c0)](),_0x4bbf59=this[_0x3f888f(0x1ab)];this[_0x3f888f(0x1a5)]({'tag':_0x3f888f(0x1c3),'attributes':this[_0x3f888f(0x1b2)](_0x4bbf59),'children':this[_0x3f888f(0x1b8)](_0x28c5bc,_0x4773c7,_0x4bbf59)});}[_0x2628ff(0x1b2)](_0x1d36c0){const _0x43463a=_0x2628ff;return{'class':[bn,_0x1d36c0['if'](_0x43463a(0x1b5),Tn,_0x5f64=>_0x43463a(0x1ba)==_0x5f64),_0x1d36c0['if'](_0x43463a(0x1b5),wn,_0x5403fa=>_0x43463a(0x193)==_0x5403fa)],'data-cke-tooltip-text':_0x1d36c0['to'](_0x43463a(0x1b1),In),'data-cke-tooltip-position':Cn,'data-cke-tooltip-class':An};}[_0x2628ff(0x1b8)](_0x1d9413,_0x1ee6df,_0x328ab2){const _0x2fc4b6=_0x2628ff,_0x4eec9f=this[_0x2fc4b6(0x1a7)](_0x328ab2),_0x12f3f1=this[_0x2fc4b6(0x1bb)]();return this[_0x2fc4b6(0x1c4)]?[_0x1d9413,_0x4eec9f]:[_0x1d9413,_0x12f3f1,_0x4eec9f,_0x1ee6df];}[_0x2628ff(0x1a7)](_0xd2b37a){const _0x3b3b0c=_0x2628ff;return{'tag':_0x3b3b0c(0x1ce),'attributes':{'class':En},'children':[{'text':_0xd2b37a['to'](_0x3b3b0c(0x1b1))}]};}[_0x2628ff(0x1c0)](){const _0x39a09f=_0x2628ff,_0x518869=new _0x52de99(this[_0x39a09f(0x1a1)]);return _0x518869[_0x39a09f(0x1a9)]({'label':_0x42a705(this[_0x39a09f(0x1a1)],_0x39a09f(0x1c1)),'icon':_0x15999c}),this[_0x39a09f(0x1d1)](_0x518869),_0x518869;}[_0x2628ff(0x1d1)](_0xb007a1){const _0x4ea6b3=_0x2628ff;_0xb007a1['on'](_0x4ea6b3(0x1b0),()=>{const _0x5ad434=_0x4ea6b3;this[_0x5ad434(0x1a8)](_0x5ad434(0x1cd),this['id']);});}[_0x2628ff(0x1d4)](){const _0x407c25=_0x2628ff,_0x2cd302=this[_0x407c25(0x1ab)],_0x561989=new _0x119f46();return _0x561989[_0x407c25(0x198)]=xn[this[_0x407c25(0x1b5)]],_0x561989[_0x407c25(0x1c6)]({'attributes':{'class':[fn,_0x2cd302['if'](_0x407c25(0x1ca),_0x407c25(0x194),_0x567dfa=>_0x567dfa)]}}),_0x561989;}[_0x2628ff(0x192)](_0x12c6be,_0x196aa3){const _0x673bff=_0x2628ff;if(!_0x12c6be)return;const _0x42a49e=()=>{const _0x17d277=_0x431e;_0x196aa3(),_0x12c6be[_0x17d277(0x195)](_0x17d277(0x1aa),_0x42a49e),_0x12c6be[_0x17d277(0x195)](_0x17d277(0x1bf),_0x42a49e);};_0x12c6be[_0x673bff(0x1b9)](_0x673bff(0x1aa),_0x42a49e),_0x12c6be[_0x673bff(0x1b9)](_0x673bff(0x1bf),_0x42a49e);}[_0x2628ff(0x1bb)](){const _0x3d9ae9=_0x2628ff,_0x472697=new _0x11407c(_0x3d9ae9(0x191));return _0x472697[_0x3d9ae9(0x1af)](_0x3d9ae9(0x1a6))['to'](this,_0x3d9ae9(0x1ca),_0x1d6f48=>_0x1d6f48),_0x472697;}}function In(_0x6e3c86){const _0x3be143=_0x2628ff;if(!_0x6e3c86)return _0x6e3c86;if(_0x6e3c86[_0x3be143(0x1c8)]<=0x78)return _0x6e3c86;const _0x11f48f=_0x6e3c86[_0x3be143(0x1cc)](0x0,0x78),_0x46f0d2=_0x11f48f[_0x3be143(0x1c5)]('\x20');return(_0x46f0d2>0x0?_0x11f48f[_0x3be143(0x1cc)](0x0,_0x46f0d2):_0x11f48f)+'…';}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x336f(){const _0x285d88=['_createUrlInputField','12582900TeBpfx','tab','fieldView','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','ck-labeled-field-view_empty','AI_CHAT_CONTEXT_URL_ADD_URL','shift+tab','trim','_createConfirmButton','ck-button-icon\x20ck-button-back','_isValidUrl','AI_CHAT_CONTEXT_URL_INVALID_ERROR','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','input','children','1432632WESBDR','form','61604vyHziA','setTemplate','locale','ck-button-icon','stop','3709062ekUjsz','cancel','focusCycler','_setupKeystrokes','confirmButton','execute','div','errorText','add','destroy','AI_CHAT_CONTEXT_URL_PLACEHOLDER','ck-ai-chat-context-controls__url-input-section','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','_focusables','clear','listenTo','_setupEventHandlers','129765FHxMWu','element','_updateConfirmButtonState','length','submit','forEach','keystrokes','1029NPZfEo','focusTracker','setError','render','ck-ai-chat-context-controls__url-form','AI_CHAT_CONTEXT_URL_LABEL','value','_setupTemplate','backButton','esc','410gNhvhy','refreshBalloon','fire','1294864RwMggi','focus','getValue','_createBackButton','createCollection','submitUrl','_handleSubmit','urlInputField','set','59112fojQwT','clearError','isEnabled'];_0x336f=function(){return _0x285d88;};return _0x336f();}const _0x5a4c04=_0x41da;(function(_0x52399d,_0x1a15c1){const _0x1ef1bc=_0x41da,_0x5fcab6=_0x52399d();while(!![]){try{const _0x524df0=-parseInt(_0x1ef1bc(0x9d))/0x1+parseInt(_0x1ef1bc(0xcd))/0x2+parseInt(_0x1ef1bc(0x8c))/0x3+-parseInt(_0x1ef1bc(0xcf))/0x4*(parseInt(_0x1ef1bc(0xae))/0x5)+-parseInt(_0x1ef1bc(0xba))/0x6*(-parseInt(_0x1ef1bc(0xa4))/0x7)+parseInt(_0x1ef1bc(0xb1))/0x8+-parseInt(_0x1ef1bc(0xbe))/0x9;if(_0x524df0===_0x1a15c1)break;else _0x5fcab6['push'](_0x5fcab6['shift']());}catch(_0x99bf08){_0x5fcab6['push'](_0x5fcab6['shift']());}}}(_0x336f,0xbc7b9));import{FocusTracker as _0x4da908,KeystrokeHandler as _0x189e7f}from'ckeditor5/src/utils.js';import{ButtonView as _0x21915b,FocusCycler as _0x311d52,LabeledFieldView as _0x3aa5ab,View as _0x348e00,FormHeaderView as _0x16d553,createLabeledInputText as _0x25c3e9,submitHandler as _0x7cbb89}from'ckeditor5/src/ui.js';import{IconCheck as _0x55cff3,IconPreviousArrow as _0x11c8a9}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x488d2e}from'../../../aicore/utils/common-translations.js';const ch=_0x5a4c04(0xa8),nh=_0x5a4c04(0x97);function _0x41da(_0x3fc433,_0x602e34){const _0x336f21=_0x336f();return _0x41da=function(_0x41da7b,_0x2937ae){_0x41da7b=_0x41da7b-0x8c;let _0x4a9a31=_0x336f21[_0x41da7b];return _0x4a9a31;},_0x41da(_0x3fc433,_0x602e34);}export class AIChatContextPanelUrlInputView extends _0x348e00{[_0x5a4c04(0xa5)];[_0x5a4c04(0xa3)];[_0x5a4c04(0x99)];[_0x5a4c04(0x8e)];[_0x5a4c04(0xb8)];[_0x5a4c04(0xac)];[_0x5a4c04(0x90)];constructor(_0x1a4e60){const _0x3f1dd5=_0x5a4c04;super(_0x1a4e60),this[_0x3f1dd5(0xa5)]=new _0x4da908(),this[_0x3f1dd5(0xa3)]=new _0x189e7f(),this[_0x3f1dd5(0xac)]=this[_0x3f1dd5(0xb4)](),this[_0x3f1dd5(0xb8)]=this[_0x3f1dd5(0xbd)](),this[_0x3f1dd5(0x90)]=this[_0x3f1dd5(0xc6)](),this[_0x3f1dd5(0x99)]=this[_0x3f1dd5(0xb5)]([this[_0x3f1dd5(0xac)],this[_0x3f1dd5(0xb8)],this[_0x3f1dd5(0x90)]]),this[_0x3f1dd5(0x8e)]=new _0x311d52({'focusables':this[_0x3f1dd5(0x99)],'focusTracker':this[_0x3f1dd5(0xa5)],'keystrokeHandler':this[_0x3f1dd5(0xa3)],'actions':{'focusPrevious':_0x3f1dd5(0xc4),'focusNext':_0x3f1dd5(0xbf)}}),this[_0x3f1dd5(0xab)](),this[_0x3f1dd5(0x9c)](),this[_0x3f1dd5(0x8f)]();}[_0x5a4c04(0xa7)](){const _0x12657d=_0x5a4c04;super[_0x12657d(0xa7)](),this[_0x12657d(0x99)][_0x12657d(0xa2)](_0x1ba5c2=>{const _0x37d0e1=_0x12657d;this[_0x37d0e1(0xa5)][_0x37d0e1(0x94)](_0x1ba5c2[_0x37d0e1(0x9e)]),this[_0x37d0e1(0xa3)][_0x37d0e1(0x9b)](_0x1ba5c2[_0x37d0e1(0x9e)]);}),_0x7cbb89({'view':this}),this[_0x12657d(0xb2)]();}[_0x5a4c04(0x95)](){const _0x1706ab=_0x5a4c04;super[_0x1706ab(0x95)](),this[_0x1706ab(0xa5)][_0x1706ab(0x95)](),this[_0x1706ab(0xa3)][_0x1706ab(0x95)]();}[_0x5a4c04(0xb2)](){const _0x3ec8d7=_0x5a4c04;this[_0x3ec8d7(0xb8)][_0x3ec8d7(0xb2)]();}[_0x5a4c04(0xb3)](){const _0x305f27=_0x5a4c04;return this[_0x305f27(0xb8)][_0x305f27(0xc0)][_0x305f27(0x9e)]?.[_0x305f27(0xaa)]?.[_0x305f27(0xc5)]()||'';}[_0x5a4c04(0x9a)](){const _0x1cedb1=_0x5a4c04;this[_0x1cedb1(0xb8)][_0x1cedb1(0xc0)][_0x1cedb1(0x9e)][_0x1cedb1(0xaa)]='',this[_0x1cedb1(0xb8)][_0x1cedb1(0x93)]=null,this[_0x1cedb1(0x90)][_0x1cedb1(0xbc)]=!0x1;}[_0x5a4c04(0xa6)](_0x2a01df){const _0x2dd771=_0x5a4c04;this[_0x2dd771(0xb8)][_0x2dd771(0x93)]=_0x2a01df,this[_0x2dd771(0x9f)](),this[_0x2dd771(0xb0)](_0x2dd771(0xaf));}[_0x5a4c04(0xbb)](){const _0x1c593c=_0x5a4c04;this[_0x1c593c(0xb8)][_0x1c593c(0x93)]=null,this[_0x1c593c(0x9f)]();}[_0x5a4c04(0xb4)](){const _0x10d4a2=_0x5a4c04,_0x2ec443=new _0x21915b(this[_0x10d4a2(0xd1)]);return _0x2ec443[_0x10d4a2(0xb9)]({'icon':_0x11c8a9,'tooltip':_0x488d2e(this[_0x10d4a2(0xd1)],_0x10d4a2(0x98)),'tooltipPosition':'n','class':_0x10d4a2(0xc7)}),_0x2ec443;}[_0x5a4c04(0xbd)](){const _0x12f9ba=_0x5a4c04,_0x922fed=new _0x3aa5ab(this[_0x12f9ba(0xd1)],_0x25c3e9);return _0x922fed[_0x12f9ba(0xb9)]({'label':_0x488d2e(this[_0x12f9ba(0xd1)],_0x12f9ba(0xa9)),'class':_0x12f9ba(0xc2)}),_0x922fed[_0x12f9ba(0xc0)][_0x12f9ba(0xb9)]({'placeholder':_0x488d2e(this[_0x12f9ba(0xd1)],_0x12f9ba(0x96))}),_0x922fed;}[_0x5a4c04(0xc6)](){const _0x50382e=_0x5a4c04,_0x33b15f=new _0x21915b(this[_0x50382e(0xd1)]);return _0x33b15f[_0x50382e(0xb9)]({'icon':_0x55cff3,'tooltip':_0x488d2e(this[_0x50382e(0xd1)],_0x50382e(0xc3)),'tooltipPosition':'n','class':_0x50382e(0xd2),'type':_0x50382e(0xa1),'isEnabled':!0x1}),_0x33b15f;}[_0x5a4c04(0xab)](){const _0x553b06=_0x5a4c04,_0x6f210e=new _0x16d553(this[_0x553b06(0xd1)],{'label':_0x488d2e(this[_0x553b06(0xd1)],_0x553b06(0xc3)),'class':_0x553b06(0xc1)});_0x6f210e[_0x553b06(0xcc)][_0x553b06(0x94)](this[_0x553b06(0xac)],0x0),this[_0x553b06(0xd0)]({'tag':_0x553b06(0xce),'attributes':{'class':ch,'tabindex':'-1'},'children':[_0x6f210e,{'tag':_0x553b06(0x92),'attributes':{'class':nh},'children':[this[_0x553b06(0xb8)],this[_0x553b06(0x90)]]}]});}[_0x5a4c04(0x9c)](){const _0x14c2c5=_0x5a4c04;this[_0x14c2c5(0xac)]['on'](_0x14c2c5(0x91),()=>{const _0x321e7d=_0x14c2c5;this[_0x321e7d(0x9a)](),this[_0x321e7d(0xb0)](_0x321e7d(0x8d));}),this[_0x14c2c5(0xb8)][_0x14c2c5(0xc0)]['on'](_0x14c2c5(0xcb),()=>{const _0x818222=_0x14c2c5;this[_0x818222(0xbb)](),this[_0x818222(0x9f)](),this[_0x818222(0xb0)](_0x818222(0xaf));}),this['on'](_0x14c2c5(0xa1),_0x3f122a=>{const _0x20aa6a=_0x14c2c5;_0x3f122a[_0x20aa6a(0xd3)](),this[_0x20aa6a(0xb7)]();});}[_0x5a4c04(0x8f)](){const _0x466716=_0x5a4c04;this[_0x466716(0xa3)][_0x466716(0xb9)](_0x466716(0xad),(_0x4f79c3,_0x420367)=>{const _0x464d36=_0x466716;this[_0x464d36(0x9a)](),this[_0x464d36(0xb0)](_0x464d36(0x8d)),_0x420367();});}[_0x5a4c04(0xb7)](){const _0x332a9c=_0x5a4c04,_0x578aea=this[_0x332a9c(0xb3)]()[_0x332a9c(0xc5)]();_0x578aea?this[_0x332a9c(0xc8)](_0x578aea)?(this[_0x332a9c(0xbb)](),this[_0x332a9c(0xb0)](_0x332a9c(0xb6),_0x578aea)):this[_0x332a9c(0xa6)](_0x488d2e(this[_0x332a9c(0xd1)],_0x332a9c(0xc9))):this[_0x332a9c(0xa6)](_0x488d2e(this[_0x332a9c(0xd1)],_0x332a9c(0xca)));}[_0x5a4c04(0x9f)](){const _0x340f1a=_0x5a4c04,_0x3d1598=this[_0x340f1a(0xb3)]()[_0x340f1a(0xc5)](),_0x268022=!!this[_0x340f1a(0xb8)][_0x340f1a(0x93)];this[_0x340f1a(0x90)][_0x340f1a(0xbc)]=_0x3d1598[_0x340f1a(0xa0)]>0x0&&!_0x268022;}[_0x5a4c04(0xc8)](_0x106b17){try{return!!new URL(_0x106b17);}catch{return!0x1;}}}
23
+ const _0x3a9292=_0x28ec;(function(_0x3a6325,_0x5a0074){const _0x4e25d9=_0x28ec,_0x2db0d7=_0x3a6325();while(!![]){try{const _0x2d83f6=-parseInt(_0x4e25d9(0x1c5))/0x1+parseInt(_0x4e25d9(0x1cd))/0x2*(parseInt(_0x4e25d9(0x1c7))/0x3)+parseInt(_0x4e25d9(0x1d6))/0x4*(parseInt(_0x4e25d9(0x1d0))/0x5)+parseInt(_0x4e25d9(0x1f6))/0x6+-parseInt(_0x4e25d9(0x202))/0x7+-parseInt(_0x4e25d9(0x1f1))/0x8*(parseInt(_0x4e25d9(0x1dd))/0x9)+parseInt(_0x4e25d9(0x1fd))/0xa*(parseInt(_0x4e25d9(0x1c9))/0xb);if(_0x2d83f6===_0x5a0074)break;else _0x2db0d7['push'](_0x2db0d7['shift']());}catch(_0x73e66a){_0x2db0d7['push'](_0x2db0d7['shift']());}}}(_0x4dbb,0x450c5));import{FocusTracker as _0x1760cb,KeystrokeHandler as _0x91b70d}from'ckeditor5/src/utils.js';import{ButtonView as _0x3ec7f1,FocusCycler as _0x152dbd,LabeledFieldView as _0x12329c,View as _0x24ae6d,FormHeaderView as _0x22f17a,createLabeledInputText as _0x11f498,submitHandler as _0x4b8125}from'ckeditor5/src/ui.js';function _0x4dbb(){const _0x22f84c=['submit','execute','AI_CHAT_CONTEXT_URL_PLACEHOLDER','render','isEnabled','390314cTLaSu','length','676263ESSXQK','createCollection','22nCxxCr','_isValidUrl','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','ck-ai-chat-context-controls__url-form','2nMDWCo','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','add','35bYxhyZ','setTemplate','stop','div','submitUrl','fieldView','200588OXyoxk','AI_CHAT_CONTEXT_URL_INVALID_ERROR','fire','_setupEventHandlers','clearError','_createUrlInputField','getValue','185994zVQGsY','_updateConfirmButtonState','trim','input','focusCycler','focusTracker','destroy','focus','_setupKeystrokes','tab','ck-labeled-field-view_empty','errorText','forEach','cancel','esc','backButton','_focusables','confirmButton','_handleSubmit','clear','136QfAhds','shift+tab','value','element','_setupTemplate','594408mTspVI','form','keystrokes','_createConfirmButton','setError','ck-button-icon\x20ck-button-back','children','1754980lXjuHY','AI_CHAT_CONTEXT_URL_ADD_URL','ck-ai-chat-context-controls__url-input-section','ck-button-icon','set','14399aNzJLJ','_createBackButton','AI_CHAT_CONTEXT_URL_LABEL','locale','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','refreshBalloon','urlInputField','listenTo'];_0x4dbb=function(){return _0x22f84c;};return _0x4dbb();}import{IconCheck as _0x27b96c,IconPreviousArrow as _0x3a1da1}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x1f0bb0}from'../../../aicore/utils/common-translations.js';function _0x28ec(_0x554643,_0x5877ed){const _0x4dbb5f=_0x4dbb();return _0x28ec=function(_0x28ecdf,_0x16e975){_0x28ecdf=_0x28ecdf-0x1ba;let _0x8d92ad=_0x4dbb5f[_0x28ecdf];return _0x8d92ad;},_0x28ec(_0x554643,_0x5877ed);}const ch=_0x3a9292(0x1cc),nh=_0x3a9292(0x1ff);export class AIChatContextPanelUrlInputView extends _0x24ae6d{[_0x3a9292(0x1e2)];[_0x3a9292(0x1f8)];[_0x3a9292(0x1ed)];[_0x3a9292(0x1e1)];[_0x3a9292(0x1be)];[_0x3a9292(0x1ec)];[_0x3a9292(0x1ee)];constructor(_0x2782dc){const _0x1f2da3=_0x3a9292;super(_0x2782dc),this[_0x1f2da3(0x1e2)]=new _0x1760cb(),this[_0x1f2da3(0x1f8)]=new _0x91b70d(),this[_0x1f2da3(0x1ec)]=this[_0x1f2da3(0x203)](),this[_0x1f2da3(0x1be)]=this[_0x1f2da3(0x1db)](),this[_0x1f2da3(0x1ee)]=this[_0x1f2da3(0x1f9)](),this[_0x1f2da3(0x1ed)]=this[_0x1f2da3(0x1c8)]([this[_0x1f2da3(0x1ec)],this[_0x1f2da3(0x1be)],this[_0x1f2da3(0x1ee)]]),this[_0x1f2da3(0x1e1)]=new _0x152dbd({'focusables':this[_0x1f2da3(0x1ed)],'focusTracker':this[_0x1f2da3(0x1e2)],'keystrokeHandler':this[_0x1f2da3(0x1f8)],'actions':{'focusPrevious':_0x1f2da3(0x1f2),'focusNext':_0x1f2da3(0x1e6)}}),this[_0x1f2da3(0x1f5)](),this[_0x1f2da3(0x1d9)](),this[_0x1f2da3(0x1e5)]();}[_0x3a9292(0x1c3)](){const _0x453f9f=_0x3a9292;super[_0x453f9f(0x1c3)](),this[_0x453f9f(0x1ed)][_0x453f9f(0x1e9)](_0x715261=>{const _0x10b049=_0x453f9f;this[_0x10b049(0x1e2)][_0x10b049(0x1cf)](_0x715261[_0x10b049(0x1f4)]),this[_0x10b049(0x1f8)][_0x10b049(0x1bf)](_0x715261[_0x10b049(0x1f4)]);}),_0x4b8125({'view':this}),this[_0x453f9f(0x1e4)]();}[_0x3a9292(0x1e3)](){const _0x5cbf2b=_0x3a9292;super[_0x5cbf2b(0x1e3)](),this[_0x5cbf2b(0x1e2)][_0x5cbf2b(0x1e3)](),this[_0x5cbf2b(0x1f8)][_0x5cbf2b(0x1e3)]();}[_0x3a9292(0x1e4)](){const _0x27ab20=_0x3a9292;this[_0x27ab20(0x1be)][_0x27ab20(0x1e4)]();}[_0x3a9292(0x1dc)](){const _0x4f9cb2=_0x3a9292;return this[_0x4f9cb2(0x1be)][_0x4f9cb2(0x1d5)][_0x4f9cb2(0x1f4)]?.[_0x4f9cb2(0x1f3)]?.[_0x4f9cb2(0x1df)]()||'';}[_0x3a9292(0x1f0)](){const _0x45f0b8=_0x3a9292;this[_0x45f0b8(0x1be)][_0x45f0b8(0x1d5)][_0x45f0b8(0x1f4)][_0x45f0b8(0x1f3)]='',this[_0x45f0b8(0x1be)][_0x45f0b8(0x1e8)]=null,this[_0x45f0b8(0x1ee)][_0x45f0b8(0x1c4)]=!0x1;}[_0x3a9292(0x1fa)](_0x229226){const _0x549f89=_0x3a9292;this[_0x549f89(0x1be)][_0x549f89(0x1e8)]=_0x229226,this[_0x549f89(0x1de)](),this[_0x549f89(0x1d8)](_0x549f89(0x1bd));}[_0x3a9292(0x1da)](){const _0x14d702=_0x3a9292;this[_0x14d702(0x1be)][_0x14d702(0x1e8)]=null,this[_0x14d702(0x1de)]();}[_0x3a9292(0x203)](){const _0x3745b3=_0x3a9292,_0x2ab8d3=new _0x3ec7f1(this[_0x3745b3(0x1bb)]);return _0x2ab8d3[_0x3745b3(0x201)]({'icon':_0x3a1da1,'tooltip':_0x1f0bb0(this[_0x3745b3(0x1bb)],_0x3745b3(0x1cb)),'tooltipPosition':'n','class':_0x3745b3(0x1fb)}),_0x2ab8d3;}[_0x3a9292(0x1db)](){const _0x3dec95=_0x3a9292,_0x4a492a=new _0x12329c(this[_0x3dec95(0x1bb)],_0x11f498);return _0x4a492a[_0x3dec95(0x201)]({'label':_0x1f0bb0(this[_0x3dec95(0x1bb)],_0x3dec95(0x1ba)),'class':_0x3dec95(0x1e7)}),_0x4a492a[_0x3dec95(0x1d5)][_0x3dec95(0x201)]({'placeholder':_0x1f0bb0(this[_0x3dec95(0x1bb)],_0x3dec95(0x1c2))}),_0x4a492a;}[_0x3a9292(0x1f9)](){const _0x3aaacb=_0x3a9292,_0x2ae38d=new _0x3ec7f1(this[_0x3aaacb(0x1bb)]);return _0x2ae38d[_0x3aaacb(0x201)]({'icon':_0x27b96c,'tooltip':_0x1f0bb0(this[_0x3aaacb(0x1bb)],_0x3aaacb(0x1fe)),'tooltipPosition':'n','class':_0x3aaacb(0x200),'type':_0x3aaacb(0x1c0),'isEnabled':!0x1}),_0x2ae38d;}[_0x3a9292(0x1f5)](){const _0x150f28=_0x3a9292,_0x23bf9a=new _0x22f17a(this[_0x150f28(0x1bb)],{'label':_0x1f0bb0(this[_0x150f28(0x1bb)],_0x150f28(0x1fe)),'class':_0x150f28(0x1ce)});_0x23bf9a[_0x150f28(0x1fc)][_0x150f28(0x1cf)](this[_0x150f28(0x1ec)],0x0),this[_0x150f28(0x1d1)]({'tag':_0x150f28(0x1f7),'attributes':{'class':ch,'tabindex':'-1'},'children':[_0x23bf9a,{'tag':_0x150f28(0x1d3),'attributes':{'class':nh},'children':[this[_0x150f28(0x1be)],this[_0x150f28(0x1ee)]]}]});}[_0x3a9292(0x1d9)](){const _0x2a97e9=_0x3a9292;this[_0x2a97e9(0x1ec)]['on'](_0x2a97e9(0x1c1),()=>{const _0x3a0ffc=_0x2a97e9;this[_0x3a0ffc(0x1f0)](),this[_0x3a0ffc(0x1d8)](_0x3a0ffc(0x1ea));}),this[_0x2a97e9(0x1be)][_0x2a97e9(0x1d5)]['on'](_0x2a97e9(0x1e0),()=>{const _0x45a2ca=_0x2a97e9;this[_0x45a2ca(0x1da)](),this[_0x45a2ca(0x1de)](),this[_0x45a2ca(0x1d8)](_0x45a2ca(0x1bd));}),this['on'](_0x2a97e9(0x1c0),_0x280919=>{const _0x510617=_0x2a97e9;_0x280919[_0x510617(0x1d2)](),this[_0x510617(0x1ef)]();});}[_0x3a9292(0x1e5)](){const _0x1fdaf4=_0x3a9292;this[_0x1fdaf4(0x1f8)][_0x1fdaf4(0x201)](_0x1fdaf4(0x1eb),(_0x54d32a,_0x1eafd2)=>{const _0x751382=_0x1fdaf4;this[_0x751382(0x1f0)](),this[_0x751382(0x1d8)](_0x751382(0x1ea)),_0x1eafd2();});}[_0x3a9292(0x1ef)](){const _0x1514bc=_0x3a9292,_0x515966=this[_0x1514bc(0x1dc)]()[_0x1514bc(0x1df)]();_0x515966?this[_0x1514bc(0x1ca)](_0x515966)?(this[_0x1514bc(0x1da)](),this[_0x1514bc(0x1d8)](_0x1514bc(0x1d4),_0x515966)):this[_0x1514bc(0x1fa)](_0x1f0bb0(this[_0x1514bc(0x1bb)],_0x1514bc(0x1d7))):this[_0x1514bc(0x1fa)](_0x1f0bb0(this[_0x1514bc(0x1bb)],_0x1514bc(0x1bc)));}[_0x3a9292(0x1de)](){const _0x2c53bb=_0x3a9292,_0x147f5f=this[_0x2c53bb(0x1dc)]()[_0x2c53bb(0x1df)](),_0x317b9c=!!this[_0x2c53bb(0x1be)][_0x2c53bb(0x1e8)];this[_0x2c53bb(0x1ee)][_0x2c53bb(0x1c4)]=_0x147f5f[_0x2c53bb(0x1c6)]>0x0&&!_0x317b9c;}[_0x3a9292(0x1ca)](_0x571360){try{return!!new URL(_0x571360);}catch{return!0x1;}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2faca7=_0x29ac;(function(_0x3e5f87,_0x3fbd7d){const _0x136e51=_0x29ac,_0x35db88=_0x3e5f87();while(!![]){try{const _0x4c9315=parseInt(_0x136e51(0x172))/0x1*(-parseInt(_0x136e51(0x17e))/0x2)+parseInt(_0x136e51(0x15c))/0x3*(parseInt(_0x136e51(0x1b6))/0x4)+parseInt(_0x136e51(0x1a3))/0x5*(parseInt(_0x136e51(0x152))/0x6)+-parseInt(_0x136e51(0x1be))/0x7+-parseInt(_0x136e51(0x1b5))/0x8*(-parseInt(_0x136e51(0x181))/0x9)+parseInt(_0x136e51(0x175))/0xa*(parseInt(_0x136e51(0x198))/0xb)+-parseInt(_0x136e51(0x13e))/0xc;if(_0x4c9315===_0x3fbd7d)break;else _0x35db88['push'](_0x35db88['shift']());}catch(_0x308962){_0x35db88['push'](_0x35db88['shift']());}}}(_0x46c4,0xa6063));import{BalloonPanelView as _0x1af2eb,ButtonView as _0xaf4d1d,clickOutsideHandler as _0x191ba2,FileDialogButtonView as _0x47f866,IconView as _0x3de797,View as _0x39fe25}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x47a33c,IconDocument as _0x32e42e,IconDocumentOutline as _0x3302cb,IconDropdownArrow as _0x1fd93d,IconLink as _0x42f1b6,IconPaperClip as _0x4a0fa6}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x37c993}from'./aichatcontextitembuttonview.js';function _0x46c4(){const _0x12c1a4=['showAddContextBalloonPanel','_currentContextsChips','_createUrlBalloonPanelView','source','_setAddContextButtonEnabled','setContextItemLoading','isOn','1104186QcwhhR','overflowChips','addContextButtonView','isEnabled','addContextItem','searchInputVisibleFrom','done','_createBaseBalloonPanel','_overflowManager','children','129rOWdKP','_conversationContextsChips','isVisible','_setupUrlBalloonClickOutsideHandler','ck-ai-chat-context-controls__pending-contexts','icon','div','_handleAddContextButtonClick','ck-ai-chat','_handleUrlSubmit','execute','isHidden','clear','ck-ai-chat-controls_context_show-more-button','_toggleAddContextBalloon','_resourcesBalloonView','_setupAllBalloonClickOutsideHandlers','hideAddContextBalloonPanel','setConversationContext','defaultPositions','reorganizeChips','addDocumentToContext','224879qExMPt','conversation','content','9986310jdEeAW','locale','sources','_addContextBalloonPanelView','_addUrlContent','setAddContextOptions','_createContextButton','northArrowSouthWest','removeContextItem','4GklXuV','bodyCollection','refreshBalloon','9XXsPGw','pin','_setBalloonPanelContent','fire','find','addFileToContext','showSourceResourcesBalloon','urls','document','_createAddContextButtonView','loadSourceResources','ck-ai-chat-context-chips-wrapper-balloon','ck-ai-chat-context-controls__add-context-button','_createAddContextBalloonPanelView','render','ck-reset_all-excluded','southArrowNorthEast','bind','updateResourceState','_addContextToCollection','_urlBalloonPanelView','southArrowNorthWest','enabled','11wEkoSN','southArrowNorth','closest','balloonView','buttonView','addUrlToContext','populateSourceResourceBalloon','add','showUrlBalloonPanel','hideUrlBalloonPanel','body','10oGeeDJ','AI_CHAT_CONTEXT_URL_LABEL','focus','_urlInputView','extendTemplate','northArrowSouth','remove','clearCurrentContextItems','cancel','destroy','show','files','ck-ai-chat-context-controls__add-context-balloon-panel','_bindEventHandlers','_createArrowView','addResourceToContext','_getLimiterElement','_setupTemplate','4438088XkVBcV','22732bXjLOf','_showSourceResourcesBalloon','setContainerElement','ck-ai-chat-context-controls__balloon-button','isAnyResourceBalloonVisible','menuitem','ck-ai-chat-context-controls__url-balloon-panel','ck-ai-chat-context-controls__balloon-button-source','1244243MZHwYX','closeSourceResourceBalloon','hide','AI_CHAT_CONTEXT_FILE_LABEL','ck-ai-chat-context-controls__show-more-balloon-panel','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','current','_setupAddContextBalloonClickOutsideHandler','ck-ai-chat-context-controls','type','submitUrl','arrowView','_createResourcesBalloonView','element','removeContextItemChip','clearConversationContextItems','northArrowSouthEast','ck-ai-chat-controls-button','10299372UcAzkS','__arrow','_removeContextFromCollection','AI_CHAT_CONTEXT_ADD_CONTEXT','label','isReadOnly','isLoading','set','_addContextBalloonConfig','createCollection','tooltip','_createBalloonButton','setTemplate'];_0x46c4=function(){return _0x12c1a4;};return _0x46c4();}import{AIChatContextPanelUrlInputView as _0x356019}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x42b056}from'./aichatchipsoverflowmanager.js';function _0x29ac(_0x32f462,_0x3e22d1){const _0x46c46d=_0x46c4();return _0x29ac=function(_0x29ac74,_0x5051e1){_0x29ac74=_0x29ac74-0x132;let _0x213ccd=_0x46c46d[_0x29ac74];return _0x213ccd;},_0x29ac(_0x32f462,_0x3e22d1);}import{getTranslation as _0x2b0163}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x3559cb}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x2faca7(0x171),_0x2faca7(0x186),_0x2faca7(0x19d),_0x2faca7(0x1b2),_0x2faca7(0x17d),_0x2faca7(0x18b)];const Eo=_0x2faca7(0x134),vo=_0x2faca7(0x160),Vo=_0x2faca7(0x1af),Io=_0x2faca7(0x18d),Po=_0x2faca7(0x1bc),Ro=_0x2faca7(0x1b9),Uo=_0x2faca7(0x1bd),Lo=_0x2faca7(0x13d),No=_0x2faca7(0x18c),Oo=_0x2faca7(0x169),Mo=_0x2faca7(0x1c2),Ho=_0x2faca7(0x164),jo=[_0x1af2eb[_0x2faca7(0x16f)][_0x2faca7(0x17c)],_0x1af2eb[_0x2faca7(0x16f)][_0x2faca7(0x1a8)],_0x1af2eb[_0x2faca7(0x16f)][_0x2faca7(0x13c)],_0x1af2eb[_0x2faca7(0x16f)][_0x2faca7(0x196)],_0x1af2eb[_0x2faca7(0x16f)][_0x2faca7(0x199)],_0x1af2eb[_0x2faca7(0x16f)][_0x2faca7(0x191)]];export class AIChatContextPanelView extends _0x39fe25{[_0x2faca7(0x154)];[_0x2faca7(0x14c)]=this[_0x2faca7(0x147)]();[_0x2faca7(0x15d)]=this[_0x2faca7(0x147)]();[_0x2faca7(0x15a)];[_0x2faca7(0x178)];[_0x2faca7(0x195)];[_0x2faca7(0x1a6)];[_0x2faca7(0x16b)];[_0x2faca7(0x146)];[_0x2faca7(0x17f)];constructor(_0x467894,_0x578270){const _0x156006=_0x2faca7;super(_0x467894),this[_0x156006(0x17f)]=_0x578270[_0x156006(0x17f)],this[_0x156006(0x14c)]=this[_0x156006(0x147)](),this[_0x156006(0x15d)]=this[_0x156006(0x147)](),this[_0x156006(0x154)]=this[_0x156006(0x18a)](_0x467894),this[_0x156006(0x178)]=this[_0x156006(0x18e)](_0x467894),this[_0x156006(0x195)]=this[_0x156006(0x14d)](_0x467894),this[_0x156006(0x16b)]=this[_0x156006(0x138)](_0x467894,_0x578270);const _0x19b973={'cssClasses':{'showMoreButton':Oo,'showMoreBalloon':Mo,'overflowContainer':No,'controlsButton':Lo}};this[_0x156006(0x15a)]=new _0x42b056(_0x467894,this[_0x156006(0x14c)],_0x19b973,this[_0x156006(0x17f)],this),this[_0x156006(0x146)]={'buttonView':this[_0x156006(0x154)],'balloonView':this[_0x156006(0x178)],'hideMethod':this[_0x156006(0x16d)][_0x156006(0x192)](this),'showMethod':this[_0x156006(0x14b)][_0x156006(0x192)](this)},this[_0x156006(0x1b4)](),this[_0x156006(0x1b0)]();}[_0x2faca7(0x18f)](){const _0x21b085=_0x2faca7;super[_0x21b085(0x18f)](),this[_0x21b085(0x16c)](),this[_0x21b085(0x15a)][_0x21b085(0x1b8)](this[_0x21b085(0x139)]),this[_0x21b085(0x15a)][_0x21b085(0x170)]();}[_0x2faca7(0x1ac)](){const _0x570003=_0x2faca7;super[_0x570003(0x1ac)](),this[_0x570003(0x15a)][_0x570003(0x1ac)](),this[_0x570003(0x16b)][_0x570003(0x1ac)]();}[_0x2faca7(0x156)](_0x32c3d6,_0x57f9ba){const _0x5603ed=_0x2faca7,_0x5129df=this[_0x5603ed(0x17b)](_0x32c3d6,_0x5603ed(0x132),!0x0,_0x57f9ba);this[_0x5603ed(0x194)](_0x5129df,this[_0x5603ed(0x14c)]),this[_0x5603ed(0x15a)][_0x5603ed(0x170)]();}[_0x2faca7(0x17d)](_0x294382){const _0x5382f4=_0x2faca7;this[_0x5382f4(0x140)](_0x294382,this[_0x5382f4(0x14c)]),this[_0x5382f4(0x140)](_0x294382,this[_0x5382f4(0x15a)][_0x5382f4(0x153)]),this[_0x5382f4(0x15a)][_0x5382f4(0x170)]();}[_0x2faca7(0x150)](_0x355bab,_0x402c0c){const _0x5b53bb=_0x2faca7;let _0xf6847a=this[_0x5b53bb(0x14c)][_0x5b53bb(0x185)](_0x93fba7=>_0x93fba7['id']===_0x355bab);_0xf6847a||(_0xf6847a=this[_0x5b53bb(0x15a)][_0x5b53bb(0x153)][_0x5b53bb(0x185)](_0x118a37=>_0x118a37['id']===_0x355bab)),_0xf6847a&&(_0xf6847a[_0x5b53bb(0x144)]=_0x402c0c);}[_0x2faca7(0x16e)](_0x29dd01){const _0x17b706=_0x2faca7;this[_0x17b706(0x15d)][_0x17b706(0x168)]();for(const _0xe55942 of _0x29dd01){const _0x851dd9=this[_0x17b706(0x17b)](_0xe55942,_0x17b706(0x173),!0x1,!0x1);this[_0x17b706(0x194)](_0x851dd9,this[_0x17b706(0x15d)]);}}[_0x2faca7(0x1aa)](){const _0x4a0ee8=_0x2faca7;this[_0x4a0ee8(0x14c)][_0x4a0ee8(0x168)](),this[_0x4a0ee8(0x15a)][_0x4a0ee8(0x168)]();}[_0x2faca7(0x13b)](){const _0x734455=_0x2faca7;this[_0x734455(0x15d)][_0x734455(0x168)]();}[_0x2faca7(0x193)](_0x36bb87,_0x4e2c34,_0x16d83e){const _0x44230b=_0x2faca7;this[_0x44230b(0x16b)][_0x44230b(0x193)](_0x36bb87,_0x4e2c34,_0x16d83e);}[_0x2faca7(0x16d)](){const _0x15dcdd=_0x2faca7;this[_0x15dcdd(0x16a)](!0x1);}[_0x2faca7(0x14b)](){const _0x32076d=_0x2faca7;this[_0x32076d(0x16a)](!0x0);}[_0x2faca7(0x1a1)](){const _0x317e1c=_0x2faca7;this[_0x317e1c(0x195)][_0x317e1c(0x1c0)](),this[_0x317e1c(0x154)][_0x317e1c(0x151)]=!0x1,this[_0x317e1c(0x1a6)]&&this[_0x317e1c(0x1a6)][_0x317e1c(0x168)]();}[_0x2faca7(0x1a0)](){const _0xeccb77=_0x2faca7;this[_0xeccb77(0x195)][_0xeccb77(0x1ad)](),this[_0xeccb77(0x154)][_0xeccb77(0x151)]=!0x0;}[_0x2faca7(0x1b7)](_0x2ced96){const _0x22e53d=_0x2faca7;this[_0x22e53d(0x16b)][_0x22e53d(0x187)](_0x2ced96),this[_0x22e53d(0x154)][_0x22e53d(0x151)]=!0x0;}[_0x2faca7(0x19e)](_0x381f33,_0x22039a,_0x494c7b,_0x3d4f71){const _0x1f9170=_0x2faca7;this[_0x1f9170(0x16b)][_0x1f9170(0x19e)](_0x381f33,_0x494c7b,_0x3d4f71);}[_0x2faca7(0x1bf)](_0x3d15d4){const _0x52f9c8=_0x2faca7;this[_0x52f9c8(0x16b)][_0x52f9c8(0x1bf)](_0x3d15d4),this[_0x52f9c8(0x154)][_0x52f9c8(0x151)]=!0x1;}[_0x2faca7(0x17a)](_0x2a55cc){const _0x409a5a=_0x2faca7;this[_0x409a5a(0x183)](this[_0x409a5a(0x178)],this[_0x409a5a(0x176)],_0x2a55cc),this[_0x409a5a(0x14f)](_0x2a55cc);}[_0x2faca7(0x14f)](_0x1e0f29){const _0x2a5e3e=_0x2faca7,_0x4fa724=!_0x1e0f29[_0x2a5e3e(0x189)][_0x2a5e3e(0x167)]&&_0x1e0f29[_0x2a5e3e(0x189)][_0x2a5e3e(0x197)],_0x4bdfba=_0x1e0f29[_0x2a5e3e(0x188)][_0x2a5e3e(0x197)],_0x4e7826=_0x1e0f29[_0x2a5e3e(0x1ae)][_0x2a5e3e(0x197)];this[_0x2a5e3e(0x154)][_0x2a5e3e(0x155)]=_0x4fa724||_0x4bdfba||_0x4e7826;}[_0x2faca7(0x1b4)](){const _0x517bdc=_0x2faca7;this[_0x517bdc(0x14a)]({'tag':_0x517bdc(0x162),'attributes':{'class':[Eo,_0x517bdc(0x190)]},'children':[{'tag':_0x517bdc(0x162),'attributes':{'class':vo},'children':this[_0x517bdc(0x14c)]}]});}[_0x2faca7(0x1b0)](){const _0x16475f=_0x2faca7;this[_0x16475f(0x154)]['on'](_0x16475f(0x166),()=>{const _0x58ad0c=_0x16475f;this[_0x58ad0c(0x163)]();});}[_0x2faca7(0x18a)](_0x140baa){const _0x3b887d=_0x2faca7,_0x4bbb61=new _0xaf4d1d(_0x140baa);return _0x4bbb61[_0x3b887d(0x145)]({'label':_0x2b0163(_0x140baa,_0x3b887d(0x141)),'class':Lo+'\x20'+Io,'icon':_0x4a0fa6,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x4bbb61;}[_0x2faca7(0x18e)](_0x45a489){const _0x50a57c=_0x2faca7;return this[_0x50a57c(0x159)](_0x45a489,Vo);}[_0x2faca7(0x14d)](_0x7fa483){const _0x59791d=_0x2faca7,_0x3133a9=this[_0x59791d(0x159)](_0x7fa483,Po);return this[_0x59791d(0x179)](_0x3133a9,_0x7fa483),_0x3133a9;}[_0x2faca7(0x138)](_0x387ab6,_0x162ac2){const _0x4df711=_0x2faca7,_0xd45ef6={'searchInputVisibleFrom':_0x162ac2[_0x4df711(0x157)],'onBackToContext':()=>{const _0x51a61b=_0x4df711;this[_0x51a61b(0x14b)](),this[_0x51a61b(0x178)][_0x51a61b(0x182)]({'target':this[_0x51a61b(0x154)][_0x51a61b(0x139)],'limiter':this[_0x51a61b(0x1b3)](),'positions':jo});},'onResourceSelected':(_0x194641,_0x1b6b92)=>{const _0x5e7a7f=_0x4df711;this[_0x5e7a7f(0x184)](_0x5e7a7f(0x1b2),{'source':_0x194641,'resource':_0x1b6b92});},'onLoadSourceResources':_0x3bf8d9=>{const _0x729c3c=_0x4df711;this[_0x729c3c(0x184)](_0x729c3c(0x18b),_0x3bf8d9);},'onBalloonClosed':()=>{const _0x4bf6fc=_0x4df711;this[_0x4bf6fc(0x154)][_0x4bf6fc(0x151)]=!0x1;},'getLimiterElement':()=>this[_0x4df711(0x1b3)](),'getTargetElement':()=>this[_0x4df711(0x154)][_0x4df711(0x139)]};return new _0x3559cb(_0x387ab6,_0x162ac2[_0x4df711(0x17f)],_0xd45ef6);}[_0x2faca7(0x1b3)](){const _0x557bf3=_0x2faca7;return this[_0x557bf3(0x139)]?.[_0x557bf3(0x19a)]('.'+Ho)||document[_0x557bf3(0x1a2)];}[_0x2faca7(0x159)](_0x2ea295,_0x4756cf){const _0x32bf28=_0x2faca7,_0x2c4e74=new _0x1af2eb(_0x2ea295);return _0x2c4e74[_0x32bf28(0x1a7)]({'attributes':{'class':_0x4756cf}}),this[_0x32bf28(0x17f)][_0x32bf28(0x19f)](_0x2c4e74),_0x2c4e74;}[_0x2faca7(0x183)](_0x47e6e1,_0x2df1e8,_0x57ec73){const _0x1f84f1=_0x2faca7;if(_0x47e6e1[_0x1f84f1(0x174)][_0x1f84f1(0x168)](),!_0x57ec73[_0x1f84f1(0x189)][_0x1f84f1(0x167)]&&_0x57ec73[_0x1f84f1(0x189)][_0x1f84f1(0x197)]){const _0xfe81ca=this[_0x1f84f1(0x149)](_0x2df1e8,{'label':_0x2b0163(_0x2df1e8,_0x1f84f1(0x1c3)),'icon':_0x32e42e});_0xfe81ca['on'](_0x1f84f1(0x166),()=>{const _0x13c397=_0x1f84f1;this[_0x13c397(0x184)](_0x13c397(0x171)),this[_0x13c397(0x16d)]();}),_0x47e6e1[_0x1f84f1(0x174)][_0x1f84f1(0x19f)](_0xfe81ca);}if(_0x57ec73[_0x1f84f1(0x188)][_0x1f84f1(0x197)]){const _0x16610a=this[_0x1f84f1(0x149)](_0x2df1e8,{'label':_0x2b0163(_0x2df1e8,_0x1f84f1(0x1a4)),'icon':_0x42f1b6});_0x16610a['on'](_0x1f84f1(0x166),()=>{const _0x14f326=_0x1f84f1;this[_0x14f326(0x16d)](),this[_0x14f326(0x1a0)](),this[_0x14f326(0x195)][_0x14f326(0x182)]({'target':this[_0x14f326(0x154)][_0x14f326(0x139)],'limiter':this[_0x14f326(0x1b3)](),'positions':jo}),this[_0x14f326(0x1a6)][_0x14f326(0x1a5)]();}),_0x47e6e1[_0x1f84f1(0x174)][_0x1f84f1(0x19f)](_0x16610a);}if(_0x57ec73[_0x1f84f1(0x1ae)][_0x1f84f1(0x197)]){const _0xff2274=new _0x47f866(_0x2df1e8);_0xff2274[_0x1f84f1(0x145)]({'label':_0x2b0163(_0x2df1e8,_0x1f84f1(0x1c1)),'icon':_0x47a33c,'withText':!0x0,'tooltip':!0x0,'class':Ro,'allowMultipleFiles':!0x0}),_0xff2274['on'](_0x1f84f1(0x158),(_0x389855,_0x360e9b)=>{const _0x490792=_0x1f84f1;this[_0x490792(0x184)](_0x490792(0x186),_0x360e9b),this[_0x490792(0x16d)]();}),_0xff2274[_0x1f84f1(0x148)]=!0x0,_0x47e6e1[_0x1f84f1(0x174)][_0x1f84f1(0x19f)](_0xff2274);}for(const _0x48e1cc of _0x57ec73[_0x1f84f1(0x177)]){const _0x5ef559=this[_0x1f84f1(0x149)](_0x2df1e8,{'label':_0x48e1cc[_0x1f84f1(0x142)],'icon':_0x48e1cc[_0x1f84f1(0x161)]||_0x3302cb,'type':_0x1f84f1(0x14e)});_0x47e6e1[_0x1f84f1(0x174)][_0x1f84f1(0x19f)](_0x5ef559),_0x5ef559['on'](_0x1f84f1(0x166),()=>{const _0x582682=_0x1f84f1;this[_0x582682(0x16d)](),this[_0x582682(0x1b7)](_0x48e1cc);});}}[_0x2faca7(0x179)](_0x5f0fa5,_0x35fee6){const _0x341a7d=_0x2faca7;this[_0x341a7d(0x1a6)]=new _0x356019(_0x35fee6),this[_0x341a7d(0x1a6)]['on'](_0x341a7d(0x136),(_0x14fd3e,_0x18dc48)=>{const _0x470c58=_0x341a7d;this[_0x470c58(0x165)](_0x18dc48);}),this[_0x341a7d(0x1a6)]['on'](_0x341a7d(0x1ab),()=>{const _0x3c4412=_0x341a7d;this[_0x3c4412(0x1a1)](),this[_0x3c4412(0x14b)](),this[_0x3c4412(0x178)][_0x3c4412(0x182)]({'target':this[_0x3c4412(0x154)][_0x3c4412(0x139)],'limiter':this[_0x3c4412(0x1b3)](),'positions':jo});}),this[_0x341a7d(0x1a6)]['on'](_0x341a7d(0x180),()=>{const _0x1498fe=_0x341a7d;this[_0x1498fe(0x195)][_0x1498fe(0x15e)]&&this[_0x1498fe(0x195)][_0x1498fe(0x182)]({'target':this[_0x1498fe(0x154)][_0x1498fe(0x139)],'limiter':this[_0x1498fe(0x1b3)](),'positions':jo});}),_0x5f0fa5[_0x341a7d(0x174)][_0x341a7d(0x19f)](this[_0x341a7d(0x1a6)]);}[_0x2faca7(0x149)](_0x3eb40c,_0x442968){const _0x556c8e=_0x2faca7,_0x166347=_0x556c8e(0x14e)===_0x442968[_0x556c8e(0x135)]?new SourcesBalloonButtonView(_0x3eb40c):new _0xaf4d1d(_0x3eb40c);return _0x166347[_0x556c8e(0x145)]({'label':_0x442968[_0x556c8e(0x142)],'icon':_0x442968[_0x556c8e(0x161)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Ro}),_0x166347;}[_0x2faca7(0x16c)](){const _0xd95bfc=_0x2faca7;this[_0xd95bfc(0x133)](),this[_0xd95bfc(0x15f)]();}[_0x2faca7(0x15f)](){const _0x36b953=_0x2faca7;_0x191ba2({'emitter':this[_0x36b953(0x195)],'contextElements':[this[_0x36b953(0x195)][_0x36b953(0x139)]],'callback':()=>{const _0x394b85=_0x36b953;this[_0x394b85(0x1a1)]();},'activator':()=>this[_0x36b953(0x195)][_0x36b953(0x15e)]});}[_0x2faca7(0x16a)](_0x20e8f8){const _0x426e81=_0x2faca7,_0x223e04=this[_0x426e81(0x146)];_0x223e04[_0x426e81(0x19c)][_0x426e81(0x151)]=_0x20e8f8,_0x20e8f8?_0x223e04[_0x426e81(0x19b)][_0x426e81(0x1ad)]():_0x223e04[_0x426e81(0x19b)][_0x426e81(0x1c0)]();}[_0x2faca7(0x133)](){const _0x3bc6d6=_0x2faca7,{balloonView:_0x1ef23c,buttonView:_0x31e98b,hideMethod:_0x5ca139}=this[_0x3bc6d6(0x146)];_0x191ba2({'emitter':_0x1ef23c,'contextElements':[_0x1ef23c[_0x3bc6d6(0x139)],_0x31e98b[_0x3bc6d6(0x139)]],'callback':()=>{_0x5ca139();},'activator':()=>_0x31e98b[_0x3bc6d6(0x151)]&&!this[_0x3bc6d6(0x195)][_0x3bc6d6(0x15e)]&&!this[_0x3bc6d6(0x16b)][_0x3bc6d6(0x1ba)]()});}[_0x2faca7(0x17b)](_0x518b67,_0x473db2,_0x347e92=!0x1,_0x33fafa=!0x1){const _0x1cff8d=_0x2faca7,_0x221ec0=_0x1cff8d(0x173)===_0x473db2||!0x0===_0x518b67[_0x1cff8d(0x143)],_0x57af04=new _0x37c993(this[_0x1cff8d(0x176)],_0x518b67,_0x221ec0,_0x347e92,_0x33fafa);return _0x221ec0||_0x57af04['on'](_0x1cff8d(0x13a),()=>{const _0x2285df=_0x1cff8d;this[_0x2285df(0x184)](_0x2285df(0x17d),_0x57af04['id']);}),_0x57af04;}[_0x2faca7(0x194)](_0xb8d998,_0x3b48a8){const _0x47dfda=_0x2faca7;_0x3b48a8[_0x47dfda(0x19f)](_0xb8d998,0x0);}[_0x2faca7(0x140)](_0x2673d0,_0x6ce48f){const _0x349cd1=_0x2faca7,_0x333672=_0x6ce48f[_0x349cd1(0x185)](_0x3f3e18=>_0x3f3e18['id']===_0x2673d0);_0x333672&&_0x6ce48f[_0x349cd1(0x1a9)](_0x333672);}[_0x2faca7(0x163)](){const _0x3fd5fd=_0x2faca7;this[_0x3fd5fd(0x154)][_0x3fd5fd(0x151)]?this[_0x3fd5fd(0x16d)]():(this[_0x3fd5fd(0x14b)](),this[_0x3fd5fd(0x178)][_0x3fd5fd(0x182)]({'target':this[_0x3fd5fd(0x154)][_0x3fd5fd(0x139)],'limiter':this[_0x3fd5fd(0x1b3)](),'positions':jo}));}[_0x2faca7(0x165)](_0x4b7d4b){const _0x1344f5=_0x2faca7;this[_0x1344f5(0x1a6)][_0x1344f5(0x168)](),this[_0x1344f5(0x1a1)](),this[_0x1344f5(0x184)](_0x1344f5(0x19d),_0x4b7d4b);}}export class SourcesBalloonButtonView extends _0xaf4d1d{[_0x2faca7(0x137)];constructor(_0x1c0783){const _0x37defc=_0x2faca7;super(_0x1c0783),this[_0x37defc(0x145)]({'withText':!0x0,'role':_0x37defc(0x1bb)}),this[_0x37defc(0x137)]=this[_0x37defc(0x1b1)](),this[_0x37defc(0x1a7)]({'attributes':{'class':[Uo]}});}[_0x2faca7(0x18f)](){const _0x361f8d=_0x2faca7;super[_0x361f8d(0x18f)](),this[_0x361f8d(0x15b)][_0x361f8d(0x19f)](this[_0x361f8d(0x137)]);}[_0x2faca7(0x1b1)](){const _0x95ffd0=_0x2faca7,_0x55902d=new _0x3de797();return _0x55902d[_0x95ffd0(0x174)]=_0x1fd93d,_0x55902d[_0x95ffd0(0x1a7)]({'attributes':{'class':Uo+_0x95ffd0(0x13f)}}),_0x55902d;}}
23
+ const _0x330758=_0x52b3;(function(_0x424286,_0x42cf82){const _0x5427aa=_0x52b3,_0x1b2bf3=_0x424286();while(!![]){try{const _0x358ec7=parseInt(_0x5427aa(0xf8))/0x1+-parseInt(_0x5427aa(0xad))/0x2*(parseInt(_0x5427aa(0x11b))/0x3)+-parseInt(_0x5427aa(0x10f))/0x4*(-parseInt(_0x5427aa(0xb1))/0x5)+-parseInt(_0x5427aa(0xcf))/0x6*(parseInt(_0x5427aa(0x10e))/0x7)+-parseInt(_0x5427aa(0xe8))/0x8*(-parseInt(_0x5427aa(0x11e))/0x9)+-parseInt(_0x5427aa(0xfe))/0xa+parseInt(_0x5427aa(0xd0))/0xb;if(_0x358ec7===_0x42cf82)break;else _0x1b2bf3['push'](_0x1b2bf3['shift']());}catch(_0x2e577a){_0x1b2bf3['push'](_0x1b2bf3['shift']());}}}(_0x476e,0xddc57));import{BalloonPanelView as _0x40138b,ButtonView as _0x4f1412,clickOutsideHandler as _0x85bbe,FileDialogButtonView as _0x1f6764,IconView as _0x455a0d,View as _0x370baf}from'ckeditor5/src/ui.js';function _0x52b3(_0xad0def,_0x1c6095){const _0x476e53=_0x476e();return _0x52b3=function(_0x52b31a,_0xab4453){_0x52b31a=_0x52b31a-0xa5;let _0x10bc35=_0x476e53[_0x52b31a];return _0x10bc35;},_0x52b3(_0xad0def,_0x1c6095);}function _0x476e(){const _0xff964e=['document','AI_CHAT_CONTEXT_URL_LABEL','menuitem','ck-ai-chat-context-chips-wrapper-balloon','_urlInputView','type','setContextItemLoading','ck-ai-chat-context-controls__add-context-balloon-panel','focus','arrowView','southArrowNorthEast','addContextItem','_setupTemplate','isLoading','hide','tooltip','add','setTemplate','2iejOWE','ck-ai-chat-context-controls__add-context-button','div','setConversationContext','68555btYRry','_setAddContextButtonEnabled','southArrowNorth','addUrlToContext','done','northArrowSouthWest','showSourceResourcesBalloon','closest','_createArrowView','source','ck-ai-chat-controls_context_show-more-button','locale','ck-ai-chat-context-controls__url-balloon-panel','searchInputVisibleFrom','_bindEventHandlers','conversation','remove','hideAddContextBalloonPanel','showUrlBalloonPanel','northArrowSouthEast','bind','populateSourceResourceBalloon','_toggleAddContextBalloon','ck-ai-chat-context-controls','closeSourceResourceBalloon','render','current','bodyCollection','_createResourcesBalloonView','_addContextToCollection','6677784aAnIMq','32988175cKkKOX','_createAddContextButtonView','_handleAddContextButtonClick','show','execute','destroy','_createContextButton','createCollection','set','isEnabled','isOn','urls','AI_CHAT_CONTEXT_FILE_LABEL','isReadOnly','_getLimiterElement','hideUrlBalloonPanel','children','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','fire','AI_CHAT_CONTEXT_ADD_CONTEXT','_setupAddContextBalloonClickOutsideHandler','_setBalloonPanelContent','extendTemplate','setContainerElement','7619736jzDQgA','ck-reset_all-excluded','ck-ai-chat-context-controls__pending-contexts','_resourcesBalloonView','_createBalloonButton','sources','ck-ai-chat-controls-button','find','_showSourceResourcesBalloon','pin','_overflowManager','_createUrlBalloonPanelView','body','label','_removeContextFromCollection','content','957353NiiwGP','northArrowSouth','ck-ai-chat-context-controls__balloon-button','clearConversationContextItems','clearCurrentContextItems','isHidden','17180650CLqKIs','removeContextItem','balloonView','icon','reorganizeChips','overflowChips','_handleUrlSubmit','buttonView','cancel','_addUrlContent','addDocumentToContext','loadSourceResources','files','isVisible','showAddContextBalloonPanel','ck-ai-chat-context-controls__show-more-balloon-panel','7ogjafM','40gcEOlZ','defaultPositions','setAddContextOptions','enabled','addFileToContext','_urlBalloonPanelView','refreshBalloon','_createBaseBalloonPanel','removeContextItemChip','southArrowNorthWest','element','addContextButtonView','3919353trhtLR','isAnyResourceBalloonVisible','_setupUrlBalloonClickOutsideHandler','9rCAhVP','_addContextBalloonPanelView','__arrow','submitUrl','_addContextBalloonConfig','_createAddContextBalloonPanelView','ck-ai-chat','clear','addResourceToContext','ck-ai-chat-context-controls__balloon-button-source','_currentContextsChips','_setupAllBalloonClickOutsideHandlers','updateResourceState','_conversationContextsChips'];_0x476e=function(){return _0xff964e;};return _0x476e();}import{IconBrowseFiles as _0xfacc5d,IconDocument as _0x114fc7,IconDocumentOutline as _0x670049,IconDropdownArrow as _0x405a20,IconLink as _0x33b2c0,IconPaperClip as _0x288576}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x185cbf}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0xa6e7a4}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x59a94e}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x1ca2c8}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x32d3b4}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x330758(0x108),_0x330758(0x113),_0x330758(0xb4),_0x330758(0x126),_0x330758(0xff),_0x330758(0x109)];const po=_0x330758(0xc8),Bo=_0x330758(0xea),bo=_0x330758(0x133),To=_0x330758(0xae),Ao=_0x330758(0xbd),ko=_0x330758(0xfa),Eo=_0x330758(0x127),vo=_0x330758(0xee),Vo=_0x330758(0x12f),fo=_0x330758(0xbb),Io=_0x330758(0x10d),Po=_0x330758(0x124),Ro=[_0x40138b[_0x330758(0x110)][_0x330758(0xb6)],_0x40138b[_0x330758(0x110)][_0x330758(0xf9)],_0x40138b[_0x330758(0x110)][_0x330758(0xc4)],_0x40138b[_0x330758(0x110)][_0x330758(0x118)],_0x40138b[_0x330758(0x110)][_0x330758(0xb3)],_0x40138b[_0x330758(0x110)][_0x330758(0xa5)]];export class AIChatContextPanelView extends _0x370baf{[_0x330758(0x11a)];[_0x330758(0x128)]=this[_0x330758(0xd7)]();[_0x330758(0x12b)]=this[_0x330758(0xd7)]();[_0x330758(0xf2)];[_0x330758(0x11f)];[_0x330758(0x114)];[_0x330758(0x130)];[_0x330758(0xeb)];[_0x330758(0x122)];[_0x330758(0xcc)];constructor(_0x372a5c,_0x1655dd){const _0x526454=_0x330758;super(_0x372a5c),this[_0x526454(0xcc)]=_0x1655dd[_0x526454(0xcc)],this[_0x526454(0x128)]=this[_0x526454(0xd7)](),this[_0x526454(0x12b)]=this[_0x526454(0xd7)](),this[_0x526454(0x11a)]=this[_0x526454(0xd1)](_0x372a5c),this[_0x526454(0x11f)]=this[_0x526454(0x123)](_0x372a5c),this[_0x526454(0x114)]=this[_0x526454(0xf3)](_0x372a5c),this[_0x526454(0xeb)]=this[_0x526454(0xcd)](_0x372a5c,_0x1655dd);const _0x225fa5={'cssClasses':{'showMoreButton':fo,'showMoreBalloon':Io,'overflowContainer':Vo,'controlsButton':vo}};this[_0x526454(0xf2)]=new _0x59a94e(_0x372a5c,this[_0x526454(0x128)],_0x225fa5,this[_0x526454(0xcc)],this),this[_0x526454(0x122)]={'buttonView':this[_0x526454(0x11a)],'balloonView':this[_0x526454(0x11f)],'hideMethod':this[_0x526454(0xc2)][_0x526454(0xc5)](this),'showMethod':this[_0x526454(0x10c)][_0x526454(0xc5)](this)},this[_0x526454(0xa7)](),this[_0x526454(0xbf)]();}[_0x330758(0xca)](){const _0x36e52a=_0x330758;super[_0x36e52a(0xca)](),this[_0x36e52a(0x129)](),this[_0x36e52a(0xf2)][_0x36e52a(0xe7)](this[_0x36e52a(0x119)]),this[_0x36e52a(0xf2)][_0x36e52a(0x102)]();}[_0x330758(0xd5)](){const _0x4365fe=_0x330758;super[_0x4365fe(0xd5)](),this[_0x4365fe(0xf2)][_0x4365fe(0xd5)](),this[_0x4365fe(0xeb)][_0x4365fe(0xd5)]();}[_0x330758(0xa6)](_0xc5990d,_0x515dc2){const _0x182613=_0x330758,_0x265fc4=this[_0x182613(0xd6)](_0xc5990d,_0x182613(0xcb),!0x0,_0x515dc2);this[_0x182613(0xce)](_0x265fc4,this[_0x182613(0x128)]),this[_0x182613(0xf2)][_0x182613(0x102)]();}[_0x330758(0xff)](_0xb5c87b){const _0x1c8ad0=_0x330758;this[_0x1c8ad0(0xf6)](_0xb5c87b,this[_0x1c8ad0(0x128)]),this[_0x1c8ad0(0xf6)](_0xb5c87b,this[_0x1c8ad0(0xf2)][_0x1c8ad0(0x103)]),this[_0x1c8ad0(0xf2)][_0x1c8ad0(0x102)]();}[_0x330758(0x132)](_0xa75f8c,_0x3805d6){const _0x388c8e=_0x330758;let _0x561718=this[_0x388c8e(0x128)][_0x388c8e(0xef)](_0x185bcf=>_0x185bcf['id']===_0xa75f8c);_0x561718||(_0x561718=this[_0x388c8e(0xf2)][_0x388c8e(0x103)][_0x388c8e(0xef)](_0x48dd35=>_0x48dd35['id']===_0xa75f8c)),_0x561718&&(_0x561718[_0x388c8e(0xa8)]=_0x3805d6);}[_0x330758(0xb0)](_0x2653c9){const _0x6836c9=_0x330758;this[_0x6836c9(0x12b)][_0x6836c9(0x125)]();for(const _0x5998ec of _0x2653c9){const _0x5a01ea=this[_0x6836c9(0xd6)](_0x5998ec,_0x6836c9(0xc0),!0x1,!0x1);this[_0x6836c9(0xce)](_0x5a01ea,this[_0x6836c9(0x12b)]);}}[_0x330758(0xfc)](){const _0xee7055=_0x330758;this[_0xee7055(0x128)][_0xee7055(0x125)](),this[_0xee7055(0xf2)][_0xee7055(0x125)]();}[_0x330758(0xfb)](){const _0x35011d=_0x330758;this[_0x35011d(0x12b)][_0x35011d(0x125)]();}[_0x330758(0x12a)](_0x58845a,_0x4f60d1,_0x1ceefe){const _0x4470a6=_0x330758;this[_0x4470a6(0xeb)][_0x4470a6(0x12a)](_0x58845a,_0x4f60d1,_0x1ceefe);}[_0x330758(0xc2)](){const _0x3a39ea=_0x330758;this[_0x3a39ea(0xc7)](!0x1);}[_0x330758(0x10c)](){const _0x36a60c=_0x330758;this[_0x36a60c(0xc7)](!0x0);}[_0x330758(0xdf)](){const _0x5ec06a=_0x330758;this[_0x5ec06a(0x114)][_0x5ec06a(0xa9)](),this[_0x5ec06a(0x11a)][_0x5ec06a(0xda)]=!0x1,this[_0x5ec06a(0x130)]&&this[_0x5ec06a(0x130)][_0x5ec06a(0x125)]();}[_0x330758(0xc3)](){const _0x586615=_0x330758;this[_0x586615(0x114)][_0x586615(0xd3)](),this[_0x586615(0x11a)][_0x586615(0xda)]=!0x0;}[_0x330758(0xf0)](_0xaf15aa){const _0x3fb2b0=_0x330758;this[_0x3fb2b0(0xeb)][_0x3fb2b0(0xb7)](_0xaf15aa),this[_0x3fb2b0(0x11a)][_0x3fb2b0(0xda)]=!0x0;}[_0x330758(0xc6)](_0x324028,_0x4da5c5,_0x1b8a70,_0x3849eb){const _0x2a1c44=_0x330758;this[_0x2a1c44(0xeb)][_0x2a1c44(0xc6)](_0x324028,_0x1b8a70,_0x3849eb);}[_0x330758(0xc9)](_0x5d2ff3){const _0x225673=_0x330758;this[_0x225673(0xeb)][_0x225673(0xc9)](_0x5d2ff3),this[_0x225673(0x11a)][_0x225673(0xda)]=!0x1;}[_0x330758(0x111)](_0x359670){const _0x1bebf2=_0x330758;this[_0x1bebf2(0xe5)](this[_0x1bebf2(0x11f)],this[_0x1bebf2(0xbc)],_0x359670),this[_0x1bebf2(0xb2)](_0x359670);}[_0x330758(0xb2)](_0x28717c){const _0x3fa018=_0x330758,_0x42ac21=!_0x28717c[_0x3fa018(0x12c)][_0x3fa018(0xfd)]&&_0x28717c[_0x3fa018(0x12c)][_0x3fa018(0x112)],_0xa79205=_0x28717c[_0x3fa018(0xdb)][_0x3fa018(0x112)],_0x416af0=_0x28717c[_0x3fa018(0x10a)][_0x3fa018(0x112)];this[_0x3fa018(0x11a)][_0x3fa018(0xd9)]=_0x42ac21||_0xa79205||_0x416af0;}[_0x330758(0xa7)](){const _0x34e541=_0x330758;this[_0x34e541(0xac)]({'tag':_0x34e541(0xaf),'attributes':{'class':[po,_0x34e541(0xe9)]},'children':[{'tag':_0x34e541(0xaf),'attributes':{'class':Bo},'children':this[_0x34e541(0x128)]}]});}[_0x330758(0xbf)](){const _0x5ea643=_0x330758;this[_0x5ea643(0x11a)]['on'](_0x5ea643(0xd4),()=>{const _0x1b91b=_0x5ea643;this[_0x1b91b(0xd2)]();});}[_0x330758(0xd1)](_0x14cb20){const _0x234ad7=_0x330758,_0x205be2=new _0x4f1412(_0x14cb20);return _0x205be2[_0x234ad7(0xd8)]({'label':_0x1ca2c8(_0x14cb20,_0x234ad7(0xe3)),'class':vo+'\x20'+To,'icon':_0x288576,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x205be2;}[_0x330758(0x123)](_0xe5257b){const _0x5ccca6=_0x330758;return this[_0x5ccca6(0x116)](_0xe5257b,bo);}[_0x330758(0xf3)](_0x504df2){const _0x26f010=_0x330758,_0x5dbd92=this[_0x26f010(0x116)](_0x504df2,Ao);return this[_0x26f010(0x107)](_0x5dbd92,_0x504df2),_0x5dbd92;}[_0x330758(0xcd)](_0x48f692,_0x11b56d){const _0x3d151e=_0x330758,_0x5344d8={'searchInputVisibleFrom':_0x11b56d[_0x3d151e(0xbe)],'onBackToContext':()=>{const _0x40cff4=_0x3d151e;this[_0x40cff4(0x10c)](),this[_0x40cff4(0x11f)][_0x40cff4(0xf1)]({'target':this[_0x40cff4(0x11a)][_0x40cff4(0x119)],'limiter':this[_0x40cff4(0xde)](),'positions':Ro});},'onResourceSelected':(_0x430643,_0xc33be8)=>{const _0x12f064=_0x3d151e;this[_0x12f064(0xe2)](_0x12f064(0x126),{'source':_0x430643,'resource':_0xc33be8});},'onLoadSourceResources':_0x34af4f=>{const _0x461539=_0x3d151e;this[_0x461539(0xe2)](_0x461539(0x109),_0x34af4f);},'onBalloonClosed':()=>{const _0x476705=_0x3d151e;this[_0x476705(0x11a)][_0x476705(0xda)]=!0x1;},'getLimiterElement':()=>this[_0x3d151e(0xde)](),'getTargetElement':()=>this[_0x3d151e(0x11a)][_0x3d151e(0x119)]};return new _0x32d3b4(_0x48f692,_0x11b56d[_0x3d151e(0xcc)],_0x5344d8);}[_0x330758(0xde)](){const _0x2c368a=_0x330758;return this[_0x2c368a(0x119)]?.[_0x2c368a(0xb8)]('.'+Po)||document[_0x2c368a(0xf4)];}[_0x330758(0x116)](_0x1acfe8,_0x368108){const _0x260e70=_0x330758,_0xa5c304=new _0x40138b(_0x1acfe8);return _0xa5c304[_0x260e70(0xe6)]({'attributes':{'class':_0x368108}}),this[_0x260e70(0xcc)][_0x260e70(0xab)](_0xa5c304),_0xa5c304;}[_0x330758(0xe5)](_0x700d7d,_0x3bb825,_0x1158b7){const _0x17194e=_0x330758;if(_0x700d7d[_0x17194e(0xf7)][_0x17194e(0x125)](),!_0x1158b7[_0x17194e(0x12c)][_0x17194e(0xfd)]&&_0x1158b7[_0x17194e(0x12c)][_0x17194e(0x112)]){const _0x684692=this[_0x17194e(0xec)](_0x3bb825,{'label':_0x1ca2c8(_0x3bb825,_0x17194e(0xe1)),'icon':_0x114fc7});_0x684692['on'](_0x17194e(0xd4),()=>{const _0x3f5276=_0x17194e;this[_0x3f5276(0xe2)](_0x3f5276(0x108)),this[_0x3f5276(0xc2)]();}),_0x700d7d[_0x17194e(0xf7)][_0x17194e(0xab)](_0x684692);}if(_0x1158b7[_0x17194e(0xdb)][_0x17194e(0x112)]){const _0x19af16=this[_0x17194e(0xec)](_0x3bb825,{'label':_0x1ca2c8(_0x3bb825,_0x17194e(0x12d)),'icon':_0x33b2c0});_0x19af16['on'](_0x17194e(0xd4),()=>{const _0x4d8511=_0x17194e;this[_0x4d8511(0xc2)](),this[_0x4d8511(0xc3)](),this[_0x4d8511(0x114)][_0x4d8511(0xf1)]({'target':this[_0x4d8511(0x11a)][_0x4d8511(0x119)],'limiter':this[_0x4d8511(0xde)](),'positions':Ro}),this[_0x4d8511(0x130)][_0x4d8511(0x134)]();}),_0x700d7d[_0x17194e(0xf7)][_0x17194e(0xab)](_0x19af16);}if(_0x1158b7[_0x17194e(0x10a)][_0x17194e(0x112)]){const _0x420e39=new _0x1f6764(_0x3bb825);_0x420e39[_0x17194e(0xd8)]({'label':_0x1ca2c8(_0x3bb825,_0x17194e(0xdc)),'icon':_0xfacc5d,'withText':!0x0,'tooltip':!0x0,'class':ko,'allowMultipleFiles':!0x0}),_0x420e39['on'](_0x17194e(0xb5),(_0x43e5df,_0x138322)=>{const _0x13d3e0=_0x17194e;this[_0x13d3e0(0xe2)](_0x13d3e0(0x113),_0x138322),this[_0x13d3e0(0xc2)]();}),_0x420e39[_0x17194e(0xaa)]=!0x0,_0x700d7d[_0x17194e(0xf7)][_0x17194e(0xab)](_0x420e39);}for(const _0x3fe163 of _0x1158b7[_0x17194e(0xed)]){const _0x51d784=this[_0x17194e(0xec)](_0x3bb825,{'label':_0x3fe163[_0x17194e(0xf5)],'icon':_0x3fe163[_0x17194e(0x101)]||_0x670049,'type':_0x17194e(0xba)});_0x700d7d[_0x17194e(0xf7)][_0x17194e(0xab)](_0x51d784),_0x51d784['on'](_0x17194e(0xd4),()=>{const _0x25e758=_0x17194e;this[_0x25e758(0xc2)](),this[_0x25e758(0xf0)](_0x3fe163);});}}[_0x330758(0x107)](_0x29fc48,_0x4f95ef){const _0x44d7ec=_0x330758;this[_0x44d7ec(0x130)]=new _0xa6e7a4(_0x4f95ef),this[_0x44d7ec(0x130)]['on'](_0x44d7ec(0x121),(_0x26867c,_0x129fef)=>{const _0x34f52f=_0x44d7ec;this[_0x34f52f(0x104)](_0x129fef);}),this[_0x44d7ec(0x130)]['on'](_0x44d7ec(0x106),()=>{const _0x2b7606=_0x44d7ec;this[_0x2b7606(0xdf)](),this[_0x2b7606(0x10c)](),this[_0x2b7606(0x11f)][_0x2b7606(0xf1)]({'target':this[_0x2b7606(0x11a)][_0x2b7606(0x119)],'limiter':this[_0x2b7606(0xde)](),'positions':Ro});}),this[_0x44d7ec(0x130)]['on'](_0x44d7ec(0x115),()=>{const _0x274f54=_0x44d7ec;this[_0x274f54(0x114)][_0x274f54(0x10b)]&&this[_0x274f54(0x114)][_0x274f54(0xf1)]({'target':this[_0x274f54(0x11a)][_0x274f54(0x119)],'limiter':this[_0x274f54(0xde)](),'positions':Ro});}),_0x29fc48[_0x44d7ec(0xf7)][_0x44d7ec(0xab)](this[_0x44d7ec(0x130)]);}[_0x330758(0xec)](_0x9ee67c,_0x5c6abe){const _0x44ba89=_0x330758,_0x28d41c=_0x44ba89(0xba)===_0x5c6abe[_0x44ba89(0x131)]?new SourcesBalloonButtonView(_0x9ee67c):new _0x4f1412(_0x9ee67c);return _0x28d41c[_0x44ba89(0xd8)]({'label':_0x5c6abe[_0x44ba89(0xf5)],'icon':_0x5c6abe[_0x44ba89(0x101)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':ko}),_0x28d41c;}[_0x330758(0x129)](){const _0x2fc6ac=_0x330758;this[_0x2fc6ac(0xe4)](),this[_0x2fc6ac(0x11d)]();}[_0x330758(0x11d)](){const _0x8d86d6=_0x330758;_0x85bbe({'emitter':this[_0x8d86d6(0x114)],'contextElements':[this[_0x8d86d6(0x114)][_0x8d86d6(0x119)]],'callback':()=>{const _0x56af2d=_0x8d86d6;this[_0x56af2d(0xdf)]();},'activator':()=>this[_0x8d86d6(0x114)][_0x8d86d6(0x10b)]});}[_0x330758(0xc7)](_0x2a9eac){const _0x455183=_0x330758,_0x3b4e43=this[_0x455183(0x122)];_0x3b4e43[_0x455183(0x105)][_0x455183(0xda)]=_0x2a9eac,_0x2a9eac?_0x3b4e43[_0x455183(0x100)][_0x455183(0xd3)]():_0x3b4e43[_0x455183(0x100)][_0x455183(0xa9)]();}[_0x330758(0xe4)](){const _0x39e67c=_0x330758,{balloonView:_0x19a508,buttonView:_0x18335e,hideMethod:_0x966b5d}=this[_0x39e67c(0x122)];_0x85bbe({'emitter':_0x19a508,'contextElements':[_0x19a508[_0x39e67c(0x119)],_0x18335e[_0x39e67c(0x119)]],'callback':()=>{_0x966b5d();},'activator':()=>_0x18335e[_0x39e67c(0xda)]&&!this[_0x39e67c(0x114)][_0x39e67c(0x10b)]&&!this[_0x39e67c(0xeb)][_0x39e67c(0x11c)]()});}[_0x330758(0xd6)](_0x4d48a0,_0x106172,_0x402ead=!0x1,_0x139a2f=!0x1){const _0x5aa89f=_0x330758,_0x47a983=_0x5aa89f(0xc0)===_0x106172||!0x0===_0x4d48a0[_0x5aa89f(0xdd)],_0x1da2fd=new _0x185cbf(this[_0x5aa89f(0xbc)],_0x4d48a0,_0x47a983,_0x402ead,_0x139a2f);return _0x47a983||_0x1da2fd['on'](_0x5aa89f(0x117),()=>{const _0x21c0ab=_0x5aa89f;this[_0x21c0ab(0xe2)](_0x21c0ab(0xff),_0x1da2fd['id']);}),_0x1da2fd;}[_0x330758(0xce)](_0x342a8d,_0x1b3349){const _0x42f9c6=_0x330758;_0x1b3349[_0x42f9c6(0xab)](_0x342a8d,0x0);}[_0x330758(0xf6)](_0x513e8e,_0x4f6be5){const _0x330d70=_0x330758,_0x5713c4=_0x4f6be5[_0x330d70(0xef)](_0x5becbe=>_0x5becbe['id']===_0x513e8e);_0x5713c4&&_0x4f6be5[_0x330d70(0xc1)](_0x5713c4);}[_0x330758(0xd2)](){const _0x411f97=_0x330758;this[_0x411f97(0x11a)][_0x411f97(0xda)]?this[_0x411f97(0xc2)]():(this[_0x411f97(0x10c)](),this[_0x411f97(0x11f)][_0x411f97(0xf1)]({'target':this[_0x411f97(0x11a)][_0x411f97(0x119)],'limiter':this[_0x411f97(0xde)](),'positions':Ro}));}[_0x330758(0x104)](_0x172d70){const _0x221820=_0x330758;this[_0x221820(0x130)][_0x221820(0x125)](),this[_0x221820(0xdf)](),this[_0x221820(0xe2)](_0x221820(0xb4),_0x172d70);}}export class SourcesBalloonButtonView extends _0x4f1412{[_0x330758(0x135)];constructor(_0x1bc549){const _0x2e9830=_0x330758;super(_0x1bc549),this[_0x2e9830(0xd8)]({'withText':!0x0,'role':_0x2e9830(0x12e)}),this[_0x2e9830(0x135)]=this[_0x2e9830(0xb9)](),this[_0x2e9830(0xe6)]({'attributes':{'class':[Eo]}});}[_0x330758(0xca)](){const _0x3468e9=_0x330758;super[_0x3468e9(0xca)](),this[_0x3468e9(0xe0)][_0x3468e9(0xab)](this[_0x3468e9(0x135)]);}[_0x330758(0xb9)](){const _0x4ba2aa=_0x330758,_0xe453c6=new _0x455a0d();return _0xe453c6[_0x4ba2aa(0xf7)]=_0x405a20,_0xe453c6[_0x4ba2aa(0xe6)]({'attributes':{'class':Eo+_0x4ba2aa(0x120)}}),_0xe453c6;}}