@ckeditor/ckeditor5-ai 47.3.0-alpha.5 → 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
- const _0x584ace=_0x1a22;(function(_0x4dd34f,_0x1a3ebe){const _0x424ea6=_0x1a22,_0x498e90=_0x4dd34f();while(!![]){try{const _0xba7912=parseInt(_0x424ea6(0x1d9))/0x1*(parseInt(_0x424ea6(0x1d2))/0x2)+-parseInt(_0x424ea6(0x1fe))/0x3+-parseInt(_0x424ea6(0x1cd))/0x4*(-parseInt(_0x424ea6(0x202))/0x5)+-parseInt(_0x424ea6(0x1d4))/0x6*(parseInt(_0x424ea6(0x1e4))/0x7)+-parseInt(_0x424ea6(0x1c6))/0x8*(parseInt(_0x424ea6(0x1d6))/0x9)+-parseInt(_0x424ea6(0x1d7))/0xa+parseInt(_0x424ea6(0x1c2))/0xb*(parseInt(_0x424ea6(0x1fd))/0xc);if(_0xba7912===_0x1a3ebe)break;else _0x498e90['push'](_0x498e90['shift']());}catch(_0x481453){_0x498e90['push'](_0x498e90['shift']());}}}(_0x379e,0x631ad));function _0x379e(){const _0xdff50c=['ck-ai-chat-controls','_handlePromptInputFocus','433448tQMmjo','addContextButtonView','_contextPanelView','bindTemplate','setAddContextOptions','2aYgtDz','_promptCapabilitiesView','204HPioPF','setWebSearch','495NOeYRu','7763680Obttoz','setTemplate','509861CEbBbP','div','populateSourceResourceBalloon','_createLoaderView','delegate','ck-ai-chat-controls-model-unavailable-message','contextResourcesSearchInputVisibleFrom','focusPromptInput','setContextItemLoading','clearConversationContextUI','_loaderView','31038PNxKuS','isDisabled','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','_displayedModels','toggleWebSearch','toggleReasoning','setIsUploadInProgress','_modelUnavailableMessageView','form','startConversation','agent','_createPromptCapabilitiesView','clearConversationContextItems','reset','isLoading','_createModelUnavailableMessageView','resetMessageInput','setModel','selectModel','disableModelSelector','sendUserMessage','setReasoning','startsWith','setConversationContext','ck-ai-chat-controls-disabled','5044836KJNBUY','2193174AbosiS','updateResourceState','ck-ai-chat-controls__start-new-chat-button','element','25ePuLtB','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','find','abortPromptStream','execute','locale','isModelAvailable','setPlaceholderText','setInputPlaceholder','removeContextItem','clearCurrentContextItems','set','closeSourceResourceBalloon','_createPromptInputView','ck-hidden','_shouldRestorePromptInputFocus','addContextItem','low','focus','33dBhShJ','bodyCollection','_promptInputView','change:isLoading','36184esyyJZ','enableModelSelector','setModelList','_createContextPanelView','clearPendingContextUI'];_0x379e=function(){return _0xdff50c;};return _0x379e();}import{ButtonView as _0xce73dd,clickOutsideHandler as _0x45a81e,View as _0x4a1f35}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x15231c}from'./controls/aichatpromptinputview.js';function _0x1a22(_0x2f116a,_0x8e3cfb){const _0x379e33=_0x379e();return _0x1a22=function(_0x1a22b0,_0x4cd0c0){_0x1a22b0=_0x1a22b0-0x1b8;let _0x276281=_0x379e33[_0x1a22b0];return _0x276281;},_0x1a22(_0x2f116a,_0x8e3cfb);}import{AIChatPromptCapabilitiesView as _0x1a4362}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x250f7e,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x2b1293}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x2c8136}from'./controls/aichatcontrolsloaderview.js';import{getTranslation as _0x15ab7a}from'../../aicore/utils/common-translations.js';export class AIChatControlsView extends _0x4a1f35{[_0x584ace(0x1e7)]=[];[_0x584ace(0x1cf)];[_0x584ace(0x1c4)];[_0x584ace(0x1d3)];[_0x584ace(0x1e3)];[_0x584ace(0x1eb)];[_0x584ace(0x1be)];constructor(_0x2aed8d,_0x14856c){const _0x35446a=_0x584ace;super(_0x2aed8d),this[_0x35446a(0x1cf)]=this[_0x35446a(0x1c9)](_0x2aed8d,{'bodyCollection':_0x14856c[_0x35446a(0x1c3)],'searchInputVisibleFrom':_0x14856c[_0x35446a(0x1df)]}),this[_0x35446a(0x1c4)]=this[_0x35446a(0x1bc)](_0x2aed8d),this[_0x35446a(0x1d3)]=this[_0x35446a(0x1ef)](_0x2aed8d),this[_0x35446a(0x1e3)]=this[_0x35446a(0x1dc)](_0x2aed8d),this[_0x35446a(0x1eb)]=this[_0x35446a(0x1f3)](_0x2aed8d),this[_0x35446a(0x1be)]=!0x1,this[_0x35446a(0x1c4)][_0x35446a(0x1dd)](_0x35446a(0x1f8))['to'](this),this[_0x35446a(0x1e3)][_0x35446a(0x1dd)](_0x35446a(0x205))['to'](this),this[_0x35446a(0x1d3)][_0x35446a(0x1dd)](_0x35446a(0x1e8))['to'](this),this[_0x35446a(0x1d3)][_0x35446a(0x1dd)](_0x35446a(0x1e9))['to'](this),this[_0x35446a(0x1d3)][_0x35446a(0x1dd)](_0x35446a(0x1f6))['to'](this),this[_0x35446a(0x1cf)][_0x35446a(0x1dd)](..._0x2b1293)['to'](this),this[_0x35446a(0x1ba)](_0x35446a(0x208),!0x0),this[_0x35446a(0x1ba)](_0x35446a(0x1e5),!0x1);const _0x10424d=this[_0x35446a(0x1d0)];this[_0x35446a(0x1d8)]({'tag':_0x35446a(0x1ec),'attributes':{'class':['ck',_0x35446a(0x1cb),_0x10424d['if'](_0x35446a(0x1e5),_0x35446a(0x1fc))]},'children':[{'tag':_0x35446a(0x1da),'attributes':{'class':[_0x10424d['if'](_0x35446a(0x1f2),_0x35446a(0x1bd),_0x5a0685=>_0x5a0685||!this[_0x35446a(0x208)]),_0x10424d['if'](_0x35446a(0x208),_0x35446a(0x1bd),_0x466570=>!_0x466570||this[_0x35446a(0x1f2)])]},'children':[this[_0x35446a(0x1cf)],this[_0x35446a(0x1c4)],this[_0x35446a(0x1d3)]]},{'tag':_0x35446a(0x1da),'attributes':{'class':[_0x10424d['if'](_0x35446a(0x1f2),_0x35446a(0x1bd),_0x2c4e5f=>!_0x2c4e5f)]},'children':[this[_0x35446a(0x1e3)]]},{'tag':_0x35446a(0x1da),'attributes':{'class':[_0x10424d['if'](_0x35446a(0x208),_0x35446a(0x1bd),_0x548b50=>_0x548b50)]},'children':[this[_0x35446a(0x1eb)]]}]}),_0x45a81e({'emitter':this[_0x35446a(0x1c4)],'activator':()=>this[_0x35446a(0x1f2)],'contextElements':()=>[this[_0x35446a(0x201)]],'callback':()=>{const _0x4beb71=_0x35446a;this[_0x4beb71(0x1be)]=!0x1;}}),this['on'](_0x35446a(0x1c5),this[_0x35446a(0x1cc)],{'priority':_0x35446a(0x1c0)});}[_0x584ace(0x1c9)](_0x46ae23,_0x3da0ba){return new _0x250f7e(_0x46ae23,_0x3da0ba);}[_0x584ace(0x1bc)](_0x514741){const _0x2d6ba4=_0x584ace;return new _0x15231c(_0x514741,this[_0x2d6ba4(0x1cf)][_0x2d6ba4(0x1ce)]);}[_0x584ace(0x1ef)](_0x13aca2){return new _0x1a4362(_0x13aca2);}[_0x584ace(0x1dc)](_0x176931){return new _0x2c8136(_0x176931);}[_0x584ace(0x1f3)](_0x36f5af){const _0x1216e4=_0x584ace,_0x39cda4=new ws(_0x36f5af);return _0x39cda4[_0x1216e4(0x1dd)](_0x1216e4(0x1ed))['to'](this),_0x39cda4;}[_0x584ace(0x1cc)](_0x159cba,_0x1a1310,_0x4ecbbb){const _0x23acc7=_0x584ace;_0x4ecbbb?this[_0x23acc7(0x1be)]=!0x0:this[_0x23acc7(0x1be)]&&this[_0x23acc7(0x1c4)][_0x23acc7(0x1c1)]();}[_0x584ace(0x1bf)](_0x29b716,_0x250a6c){const _0x567e31=_0x584ace;this[_0x567e31(0x1cf)][_0x567e31(0x1bf)](_0x29b716,_0x250a6c);}[_0x584ace(0x1b8)](_0x25ecc5){const _0x23469d=_0x584ace;this[_0x23469d(0x1cf)][_0x23469d(0x1b8)](_0x25ecc5);}[_0x584ace(0x1e1)](_0x5140ba,_0x5ed7e0){const _0xef2a3e=_0x584ace;this[_0xef2a3e(0x1cf)][_0xef2a3e(0x1e1)](_0x5140ba,_0x5ed7e0);}[_0x584ace(0x1ea)](_0xb19289){const _0x8b393c=_0x584ace;this[_0x8b393c(0x1c4)][_0x8b393c(0x1ea)](_0xb19289);}[_0x584ace(0x1fb)](_0x2c0ebf){const _0x333ce2=_0x584ace;this[_0x333ce2(0x1cf)][_0x333ce2(0x1fb)](_0x2c0ebf);}[_0x584ace(0x1ca)](){const _0x53c04d=_0x584ace;this[_0x53c04d(0x1cf)][_0x53c04d(0x1b9)]();}[_0x584ace(0x1e2)](){const _0x3f8750=_0x584ace;this[_0x3f8750(0x1cf)][_0x3f8750(0x1f0)]();}[_0x584ace(0x1ff)](_0xe3430c,_0x4c3c76,_0x122ea7){const _0x4a40b7=_0x584ace;this[_0x4a40b7(0x1cf)][_0x4a40b7(0x1ff)](_0xe3430c,_0x4c3c76,_0x122ea7);}[_0x584ace(0x1d5)](_0x223f8d){const _0x4bf2d5=_0x584ace;this[_0x4bf2d5(0x1d3)][_0x4bf2d5(0x1d5)](_0x223f8d);}[_0x584ace(0x1f9)](_0x3329c7){const _0x448b42=_0x584ace;this[_0x448b42(0x1d3)][_0x448b42(0x1f9)](_0x3329c7);}[_0x584ace(0x1f4)](){const _0xb18d86=_0x584ace;this[_0xb18d86(0x1c4)][_0xb18d86(0x1f1)]();}[_0x584ace(0x1d1)](_0x5dc58d){const _0x2bb07b=_0x584ace;this[_0x2bb07b(0x1cf)][_0x2bb07b(0x1d1)](_0x5dc58d);}[_0x584ace(0x20a)](_0x1f7d13){const _0x462854=_0x584ace;this[_0x462854(0x1c4)][_0x462854(0x209)](_0x1f7d13);}[_0x584ace(0x1c8)](_0x7fa92e,_0x4dea3e){const _0x352919=_0x584ace;this[_0x352919(0x1e7)]=_0x7fa92e,this[_0x352919(0x1d3)][_0x352919(0x1c8)](_0x7fa92e,_0x4dea3e);}[_0x584ace(0x1f5)](_0x2c3bde){const _0x2f9e91=_0x584ace;(_0x2c3bde?this[_0x2f9e91(0x1e7)][_0x2f9e91(0x204)](_0x5ed4f1=>_0x5ed4f1['id']===_0x2c3bde['id']):null)?(this[_0x2f9e91(0x208)]=!0x0,this[_0x2f9e91(0x1d3)][_0x2f9e91(0x1f5)](_0x2c3bde)):_0x2c3bde?.['id'][_0x2f9e91(0x1fa)](_0x2f9e91(0x1ee))?(this[_0x2f9e91(0x208)]=!0x0,this[_0x2f9e91(0x1d3)][_0x2f9e91(0x1f5)](this[_0x2f9e91(0x1e7)][0x0])):this[_0x2f9e91(0x208)]=!0x1;}[_0x584ace(0x1c7)](){const _0x14ee17=_0x584ace;this[_0x14ee17(0x1d3)][_0x14ee17(0x1c7)]();}[_0x584ace(0x1f7)](_0x5420c1){const _0x4e16e3=_0x584ace;this[_0x4e16e3(0x1d3)][_0x4e16e3(0x1f7)](_0x5420c1);}[_0x584ace(0x1db)](_0x9e0408,_0x242a80,_0x37a920,_0x3b6f29){const _0x110145=_0x584ace;this[_0x110145(0x1cf)][_0x110145(0x1db)](_0x9e0408,_0x242a80,_0x37a920,_0x3b6f29);}[_0x584ace(0x1bb)](_0x14f5f9){const _0x5ece83=_0x584ace;this[_0x5ece83(0x1cf)][_0x5ece83(0x1bb)](_0x14f5f9);}[_0x584ace(0x1e0)](){const _0x3dd7d0=_0x584ace;this[_0x3dd7d0(0x1c4)][_0x3dd7d0(0x1c1)]();}}class ws extends _0x4a1f35{constructor(_0x3de5f6){const _0x5a4972=_0x584ace;super(_0x3de5f6);const _0x193956=new _0xce73dd(_0x3de5f6);_0x193956[_0x5a4972(0x1ba)]({'label':_0x15ab7a(this[_0x5a4972(0x207)],_0x5a4972(0x203)),'withText':!0x0,'class':[_0x5a4972(0x200)],'tooltip':''}),_0x193956[_0x5a4972(0x1dd)](_0x5a4972(0x206))['to'](this,_0x5a4972(0x1ed)),this[_0x5a4972(0x1d8)]({'tag':_0x5a4972(0x1da),'attributes':{'class':['ck',_0x5a4972(0x1de)]},'children':[{'tag':'p','children':[{'text':_0x15ab7a(this[_0x5a4972(0x207)],_0x5a4972(0x1e6))+'\x20'},_0x193956]}]});}}
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 _0xd2dd64=_0x30c3;(function(_0x462682,_0x4d0ded){const _0xeffcca=_0x30c3,_0x43b881=_0x462682();while(!![]){try{const _0x4c07e4=-parseInt(_0xeffcca(0xb3))/0x1+parseInt(_0xeffcca(0xcb))/0x2+parseInt(_0xeffcca(0xe6))/0x3+-parseInt(_0xeffcca(0xae))/0x4+-parseInt(_0xeffcca(0xab))/0x5+-parseInt(_0xeffcca(0xd8))/0x6+parseInt(_0xeffcca(0xb4))/0x7*(parseInt(_0xeffcca(0xee))/0x8);if(_0x4c07e4===_0x4d0ded)break;else _0x43b881['push'](_0x43b881['shift']());}catch(_0x182c50){_0x43b881['push'](_0x43b881['shift']());}}}(_0x3ac5,0x36d9b));import{CKEditorError as _0x10929f,logWarning as _0x5882ea,scrollViewportToShowTarget as _0x1cdbbd}from'ckeditor5/src/utils.js';import{View as _0x32b5dd}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x56043d}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x159c08}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x2014e8}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x4f6bc7}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x19820c}from'./feed/aichatfeederroritemview.js';function _0x30c3(_0x2189ec,_0x3e6890){const _0x3ac51c=_0x3ac5();return _0x30c3=function(_0x30c3f2,_0x210f95){_0x30c3f2=_0x30c3f2-0xaa;let _0x4144b1=_0x3ac51c[_0x30c3f2];return _0x4144b1;},_0x30c3(_0x2189ec,_0x3e6890);}import{AIChatFeedInteractionHeaderView as _0x5c05ac}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x22ffd0}from'../../aicore/utils/scrollmanager.js';import{AISkeletonView as _0x24d3e0,SKELETON_DEFINITIONS as _0x18d1da}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x1100b9}from'../../aicore/ui/aispinner.js';function _0x3ac5(){const _0x3e9feb=['_bodyCollection','_createTemplateChildren','777060etLHUP','_createFeedLoader','loadingMessage','1198760HBjxGX','markAsDone','ai-suggestion-reply','div','bind','38750QaruDn','763JrtlFi','_setupTemplate','find','interaction-header','createCollection','set','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','updateSources','ck-ai-chat__loader-text','clear','updateWebSources','updatePartState','removeItem','getItemIds','updateSuggestionItem','children','getItemById','render','add','ai-chat-feed-view-item-not-a-reply-item','element','delegate','startAutoScroll','63384InjzUU','remove','map','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','ai-chat-feed-view-item-not-a-suggestion-item','destroy','_createFeedItems','ck-ai-chat__loader','getPartView','stop','ai-reply','locale','toggleLoadingSkeleton','415824gQJBYh','extendTemplate','scrollManager','bindTemplate','ck-hidden','scrollToSuggestion','updateContent','setTemplate','user-message','isPending','isLoadingSkeletonVisible','isTrackChangesOn','ck-ai-chat__feed__items','_createSkeletonLoader','737706lwUWza','isVisible','aiFeed','ck-ai-chat__feed','span','updateReplyItem','includes','ai-chat-feed-view-item-not-found','37448OwPJkE','setLoadingMessage','_createLoaderChildren','start','markItemAsDone','updateSuggestionPartState','stopAutoScroll','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','options','addItem'];_0x3ac5=function(){return _0x3e9feb;};return _0x3ac5();}export class AIChatFeedView extends _0x32b5dd{[_0xd2dd64(0xc3)];[_0xd2dd64(0xda)];[_0xd2dd64(0xf8)];constructor(_0x461c59,_0x234e2d){const _0x5466e2=_0xd2dd64;super(_0x461c59),this[_0x5466e2(0xf8)]=_0x234e2d,this[_0x5466e2(0xb9)](_0x5466e2(0xe1),!0x1),this[_0x5466e2(0xb9)](_0x5466e2(0xad),''),this[_0x5466e2(0xb9)](_0x5466e2(0xe2),!0x1),this[_0x5466e2(0xb9)](_0x5466e2(0xe3),!0x1),this[_0x5466e2(0xc3)]=this[_0x5466e2(0xb8)](),this[_0x5466e2(0xc3)][_0x5466e2(0xc9)](..._0x56043d)['to'](this),this[_0x5466e2(0xb5)]();}[_0xd2dd64(0xc5)](){const _0x40a8df=_0xd2dd64;super[_0x40a8df(0xc5)](),this[_0x40a8df(0xda)]=new _0x22ffd0(this[_0x40a8df(0xc8)]);}[_0xd2dd64(0xd0)](){const _0xf6f924=_0xd2dd64;super[_0xf6f924(0xd0)](),this[_0xf6f924(0xda)][_0xf6f924(0xd0)]();}[_0xd2dd64(0xbd)](){const _0xfde941=_0xd2dd64;this[_0xfde941(0xc3)][_0xfde941(0xbd)]();}[_0xd2dd64(0xf7)](_0x22adb3,_0x25c428){const _0x436222=_0xd2dd64;let _0x494c6f;_0x436222(0xd5)===_0x22adb3?_0x494c6f=new _0x2014e8(this[_0x436222(0xd6)],_0x25c428):_0x436222(0xb0)===_0x22adb3?(_0x494c6f=new _0x159c08(this[_0x436222(0xd6)],_0x25c428),_0x494c6f[_0x436222(0xb2)](_0x436222(0xe3))['to'](this,_0x436222(0xe3))):_0x494c6f=_0x436222(0xe0)===_0x22adb3?new _0x4f6bc7(this[_0x436222(0xd6)],_0x25c428,this[_0x436222(0xf8)]):_0x436222(0xb7)===_0x22adb3?new _0x5c05ac(this[_0x436222(0xd6)],_0x25c428):new _0x19820c(_0x25c428),this[_0x436222(0xc3)][_0x436222(0xc6)](_0x494c6f);}async[_0xd2dd64(0xeb)]({id:_0x3ee8e8,parsedContent:_0x5acf00,renderingStrategy:_0x1ab89f,abortSignal:_0x111e4c}){const _0x1e3c4d=_0xd2dd64,_0x1a675a=this[_0x1e3c4d(0xc4)](_0x3ee8e8);if(!(_0x1a675a instanceof _0x2014e8))throw new _0x10929f(_0x1e3c4d(0xc7),null,{'itemView':_0x1a675a,'id':_0x3ee8e8,'parsedContent':_0x5acf00});await _0x1a675a[_0x1e3c4d(0xde)]({'parsedContent':_0x5acf00,'renderingStrategy':_0x1ab89f,'abortSignal':_0x111e4c});}async[_0xd2dd64(0xbe)](_0x49909c,_0x1750bb){const _0x5048ae=_0xd2dd64,_0x2b0994=this[_0x5048ae(0xc4)](_0x49909c);if(_0x2b0994 instanceof _0x159c08)_0x2b0994[_0x5048ae(0xbb)](_0x1750bb);else{if(!(_0x2b0994 instanceof _0x2014e8))throw new _0x10929f(_0x5048ae(0xf5),null,{'itemView':_0x2b0994,'id':_0x49909c,'sources':_0x1750bb});_0x2b0994[_0x5048ae(0xbb)](_0x1750bb);}}async[_0xd2dd64(0xc2)]({id:_0xf28767,parts:_0x2d1bbb,renderingStrategy:_0x605610,abortSignal:_0x4f82d3}){const _0xdc6bf5=_0xd2dd64,_0x5f4be0=this[_0xdc6bf5(0xc4)](_0xf28767);if(!(_0x5f4be0 instanceof _0x159c08))throw new _0x10929f(_0xdc6bf5(0xcf),null,{'itemView':_0x5f4be0,'id':_0xf28767,'parts':_0x2d1bbb});await _0x5f4be0[_0xdc6bf5(0xde)]({'parts':_0x2d1bbb,'renderingStrategy':_0x605610,'abortSignal':_0x4f82d3});}[_0xd2dd64(0xf3)]({id:_0x9c4c2e,index:_0xa6c2c4,state:_0x2b6e12}){const _0x472ff1=_0xd2dd64,_0x489d02=this[_0x472ff1(0xc4)](_0x9c4c2e);if(!(_0x489d02 instanceof _0x159c08))throw new _0x10929f(_0x472ff1(0xcf),this,{'id':_0x9c4c2e});_0x489d02[_0x472ff1(0xbf)](_0xa6c2c4,_0x2b6e12);}[_0xd2dd64(0xf2)](_0xbc9a7a){const _0x443e0a=_0xd2dd64;this[_0x443e0a(0xc4)](_0xbc9a7a)[_0x443e0a(0xaf)]();}[_0xd2dd64(0xc1)](){const _0x2f37c0=_0xd2dd64;return this[_0x2f37c0(0xc3)][_0x2f37c0(0xcd)](_0x396fa6=>_0x396fa6[_0x2f37c0(0xf6)]['id']);}[_0xd2dd64(0xc0)](_0x11fb01){const _0x2c14fc=_0xd2dd64;this[_0x2c14fc(0xc3)][_0x2c14fc(0xcc)](this[_0x2c14fc(0xc4)](_0x11fb01));}[_0xd2dd64(0xdd)](_0x3cc740,_0x1a7140){const _0x3e2f93=_0xd2dd64,_0xa4d879=this[_0x3e2f93(0xc4)](_0x3cc740);if(!(_0xa4d879 instanceof _0x159c08))return void _0x5882ea(_0x3e2f93(0xce),{'replyId':_0x3cc740,'partIndex':_0x1a7140});const _0x414ba4=_0xa4d879[_0x3e2f93(0xd3)](_0x1a7140);_0x414ba4?_0x1cdbbd({'target':_0x414ba4[_0x3e2f93(0xc8)],'ancestorOffset':0x14,'alignToTop':!0x0,'forceScroll':!0x0}):_0x5882ea(_0x3e2f93(0xba),{'replyId':_0x3cc740,'partIndex':_0x1a7140});}[_0xd2dd64(0xb5)](){const _0x19eabf=_0xd2dd64;this[_0x19eabf(0xdf)]({'tag':_0x19eabf(0xb1),'attributes':{'class':['ck',_0x19eabf(0xe9)]},'children':this[_0x19eabf(0xaa)]()});}[_0xd2dd64(0xaa)](){const _0x42f272=_0xd2dd64,_0xdec815=this[_0x42f272(0xe5)]();return[this[_0x42f272(0xd1)](),_0xdec815,this[_0x42f272(0xac)]()];}[_0xd2dd64(0xe5)](){const _0x1467ff=_0xd2dd64,_0x42751c=new _0x24d3e0(this[_0x1467ff(0xd6)],_0x18d1da[_0x1467ff(0xe8)]);return _0x42751c[_0x1467ff(0xd9)]({'attributes':{'class':[this[_0x1467ff(0xdb)]['if'](_0x1467ff(0xe2),_0x1467ff(0xdc),_0x1ec5d3=>!_0x1ec5d3)]}}),_0x42751c;}[_0xd2dd64(0xd1)](){const _0x59c7b3=_0xd2dd64,_0x248041=new _0x32b5dd(this[_0x59c7b3(0xd6)]);return _0x248041[_0x59c7b3(0xdf)]({'tag':_0x59c7b3(0xb1),'attributes':{'class':['ck',_0x59c7b3(0xe4),this[_0x59c7b3(0xdb)]['if'](_0x59c7b3(0xe2),_0x59c7b3(0xdc))]},'children':this[_0x59c7b3(0xc3)]}),_0x248041;}[_0xd2dd64(0xac)](){const _0x5e8bee=_0xd2dd64,_0x55fecc=new _0x32b5dd(this[_0x5e8bee(0xd6)]);return _0x55fecc[_0x5e8bee(0xdf)]({'tag':_0x5e8bee(0xb1),'attributes':{'class':['ck',_0x5e8bee(0xd2),this[_0x5e8bee(0xdb)]['if'](_0x5e8bee(0xe1),_0x5e8bee(0xdc),_0x3778bb=>!_0x3778bb)]},'children':this[_0x5e8bee(0xf0)]()}),_0x55fecc;}[_0xd2dd64(0xf0)](){const _0x4d34a8=_0xd2dd64,_0x565c67=new _0x1100b9();return _0x565c67[_0x4d34a8(0xe7)]=!0x0,[_0x565c67,{'tag':_0x4d34a8(0xea),'attributes':{'class':['ck',_0x4d34a8(0xbc)]},'children':[{'text':this[_0x4d34a8(0xdb)]['to'](_0x4d34a8(0xad))}]}];}[_0xd2dd64(0xc4)](_0x4084e1){const _0x4deae4=_0xd2dd64,_0x25a0aa=this[_0x4deae4(0xc3)][_0x4deae4(0xb6)](_0x634dc6=>_0x634dc6[_0x4deae4(0xf6)]['id'][_0x4deae4(0xec)](_0x4084e1));if(!_0x25a0aa)throw new _0x10929f(_0x4deae4(0xed),this,{'id':_0x4084e1});return _0x25a0aa;}[_0xd2dd64(0xef)](_0x51eb9f){const _0x41362e=_0xd2dd64;this[_0x41362e(0xb9)](_0x41362e(0xad),_0x51eb9f);}[_0xd2dd64(0xd7)](_0x37b3c2){const _0x337024=_0xd2dd64;this[_0x337024(0xb9)](_0x337024(0xe2),_0x37b3c2);}[_0xd2dd64(0xca)](){const _0x3b5569=_0xd2dd64;this[_0x3b5569(0xda)][_0x3b5569(0xf1)]();}[_0xd2dd64(0xf4)](){const _0x19e992=_0xd2dd64;this[_0x19e992(0xda)][_0x19e992(0xd4)]();}}
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 _0xdb7ad2=_0xa68f;(function(_0x105cc6,_0x3b2b2d){var _0x27dbeb=_0xa68f,_0x54ac8f=_0x105cc6();while(!![]){try{var _0x3d6a28=-parseInt(_0x27dbeb(0xf4))/0x1*(-parseInt(_0x27dbeb(0xed))/0x2)+-parseInt(_0x27dbeb(0xf5))/0x3+parseInt(_0x27dbeb(0x100))/0x4*(-parseInt(_0x27dbeb(0xec))/0x5)+parseInt(_0x27dbeb(0xf6))/0x6*(-parseInt(_0x27dbeb(0x102))/0x7)+-parseInt(_0x27dbeb(0x105))/0x8*(-parseInt(_0x27dbeb(0xeb))/0x9)+parseInt(_0x27dbeb(0x104))/0xa*(-parseInt(_0x27dbeb(0xe8))/0xb)+-parseInt(_0x27dbeb(0xf8))/0xc*(-parseInt(_0x27dbeb(0xee))/0xd);if(_0x3d6a28===_0x3b2b2d)break;else _0x54ac8f['push'](_0x54ac8f['shift']());}catch(_0x3bbf39){_0x54ac8f['push'](_0x54ac8f['shift']());}}}(_0x406a,0xb75c6));import{View as _0x943f85,BodyCollection as _0x5854b8}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x464e90}from'../utils/eventnames.js';import{AIChatFeedView as _0x57a75b}from'./aichatfeedview.js';function _0xa68f(_0x59f0b9,_0x17dde7){var _0x406a25=_0x406a();return _0xa68f=function(_0xa68f1c,_0x221544){_0xa68f1c=_0xa68f1c-0xe8;var _0x2ff0f0=_0x406a25[_0xa68f1c];return _0x2ff0f0;},_0xa68f(_0x59f0b9,_0x17dde7);}import{AIChatControlsView as _0x57aea4}from'./aichatcontrolsview.js';function _0x406a(){var _0x380f39=['detachFromDom','230SazoEj','40kqDNYw','chatHeader','uiLanguageDirection','511478ThQkNI','chatFeed','ck-reset_all','234162FCJiNg','5FTgzCj','38014nsXToq','3954665OTqOTF','showResizeButton','_bodyCollection','populateSourceResourceBalloon','setTemplate','chatControls','37lVWxmK','1509777yhRBgh','12oOSRNB','destroy','132qCOScB','closeSourceResourceBalloon','contextResourcesSearchInputVisibleFrom','attachToDom','chatDisclaimer','ck-rounded-corners','delegate','div','5859876aQFyLU','ck-ai-chat','1368066ePmaAd'];_0x406a=function(){return _0x380f39;};return _0x406a();}import{AIChatHeaderView as _0xff15cf}from'./aichatheaderview.js';import{AIDisclaimerView as _0x5afa0a}from'../../aicore/ui/aidisclaimerview.js';export class AIChatView extends _0x943f85{[_0xdb7ad2(0x106)];[_0xdb7ad2(0xe9)];[_0xdb7ad2(0xf3)];[_0xdb7ad2(0xfc)];[_0xdb7ad2(0xf0)];constructor(_0x3cefde,_0xbb3127){var _0x391790=_0xdb7ad2;super(_0x3cefde),this[_0x391790(0xf0)]=new _0x5854b8(_0x3cefde),this[_0x391790(0xf0)][_0x391790(0xfb)](),this[_0x391790(0x106)]=new _0xff15cf(_0x3cefde,_0xbb3127[_0x391790(0xef)]),this[_0x391790(0x106)][_0x391790(0xfe)](..._0x464e90)['to'](this),this[_0x391790(0xe9)]=new _0x57a75b(_0x3cefde,this[_0x391790(0xf0)]),this[_0x391790(0xe9)][_0x391790(0xfe)](..._0x464e90)['to'](this),this[_0x391790(0xf3)]=new _0x57aea4(_0x3cefde,{'bodyCollection':this[_0x391790(0xf0)],'contextResourcesSearchInputVisibleFrom':_0xbb3127[_0x391790(0xfa)]}),this[_0x391790(0xf3)][_0x391790(0xfe)](..._0x464e90)['to'](this),this[_0x391790(0xfc)]=new _0x5afa0a(_0x3cefde),this[_0x391790(0xf2)]({'tag':_0x391790(0xff),'attributes':{'class':['ck',_0x391790(0xea),_0x391790(0x101),_0x391790(0xfd)],'dir':_0x3cefde[_0x391790(0x107)]},'children':[this[_0x391790(0x106)],this[_0x391790(0xe9)],this[_0x391790(0xf3)],this[_0x391790(0xfc)]]});}[_0xdb7ad2(0xf1)](_0x3fe8d7,_0x42d2bd,_0xf35c19,_0x84fbb2){var _0x1c08c3=_0xdb7ad2;this[_0x1c08c3(0xf3)][_0x1c08c3(0xf1)](_0x3fe8d7,_0x42d2bd,_0xf35c19,_0x84fbb2);}[_0xdb7ad2(0xf9)](_0x1e7c84){var _0x1745a1=_0xdb7ad2;this[_0x1745a1(0xf3)][_0x1745a1(0xf9)](_0x1e7c84);}[_0xdb7ad2(0xf7)](){var _0x2df4ab=_0xdb7ad2;this[_0x2df4ab(0xf0)][_0x2df4ab(0x103)](),super[_0x2df4ab(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 _0x4cf5e2=_0x4d4a;(function(_0x57e118,_0x33085d){const _0x352a2b=_0x4d4a,_0x361489=_0x57e118();while(!![]){try{const _0x40cf12=-parseInt(_0x352a2b(0x165))/0x1+-parseInt(_0x352a2b(0x195))/0x2*(-parseInt(_0x352a2b(0x138))/0x3)+-parseInt(_0x352a2b(0x198))/0x4*(-parseInt(_0x352a2b(0x143))/0x5)+-parseInt(_0x352a2b(0x11d))/0x6*(parseInt(_0x352a2b(0x178))/0x7)+-parseInt(_0x352a2b(0x137))/0x8*(parseInt(_0x352a2b(0x11b))/0x9)+parseInt(_0x352a2b(0x159))/0xa*(-parseInt(_0x352a2b(0x11f))/0xb)+-parseInt(_0x352a2b(0x173))/0xc*(parseInt(_0x352a2b(0x193))/0xd);if(_0x40cf12===_0x33085d)break;else _0x361489['push'](_0x361489['shift']());}catch(_0x1c3e02){_0x361489['push'](_0x361489['shift']());}}}(_0x2478,0x288bd));import{View as _0x86989a,BalloonPanelView as _0x23109e,ButtonView as _0x554c65,clickOutsideHandler as _0xf778b3}from'ckeditor5/src/ui.js';import{Collection as _0x1ad72d}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},an=_0x4cf5e2(0x142);function _0x2478(){const _0x2c425b=['9rDaFLC','isConnected','remove','innerWidth','element','zIndex','_handleShowMoreButtonClick','innerHeight','_repinBalloonPanel','slice','300px','111540XiGXtY','_visibleChips','isVisible','calculationContainer','auto','pointerEvents','_createContainerElements','tagName','_applyCalculationStyles','innerHTML','isIntersecting','border-box','overflowContainer','left','absolute','includes','_updateBalloonContent','_showMoreBalloonPanelView','destroy','appendChild','undefined','_bodyCollection','490630ajCUAy','extendTemplate','_config','_findTargetContainer','0px','set','showMoreBalloon','_pendingCalculation','display','observe','_locale','showMoreButtonView','99684GyirMu','disconnect','visible','visible\x20!important','toLowerCase','setContainerElement','visibility','_createMockButton','pin','abs','documentElement','showMoreLabelPrefix','offsetWidth','showMoreButton','12RwMfLg','forEach','.ck-ai-chat','_parentView','_updateOverflowUI','3108qxLnmO','_createCalculationContainer','position','-9999px','cloneNode','hide','block\x20!important','getComputedStyle','showBalloonPanel','body','right','execute','render','pop','reorganizeChips','_testButtonFit','rowDetectionTolerance','height','_overflowChips','boxSizing','_checkAndHandleOverflow','ck-calculation-container','none','_containerElement','add','classList','_showMoreButtonView','400439BpAjJr','bottom','134182DNEheq','+\x201','maxVisibleRows','32JhJkQf','_createShowMoreButton','hideBalloonPanel','clear','_makeAncestorsVisible','controlsButton','some','createElement','_isContainerVisible','_calculateOverflowInContainer','50px','overflowChips','querySelector','_ancestorsToRestore','content','style','children','block','setTemplate','textContent','from','width','length','_restoreAncestorVisibility','clientHeight','_createShowMoreButtonView','54atTXGR','_applyOverflowResults','108vNYZwV','label','11OcZBkF','_createShowMoreBalloonPanelView','_setupVisibilityObserver','parentElement','_renderChipsAndCountRows','cssClasses','div','hidden','top','isOn','opacity','show','_calculateContainerWidth','getBoundingClientRect','_intersectionObserver','_updateShowMoreButtonVisibility','disableAnimationOnEnter','className','filter','push','_distributeChips','_targetContainer','clientWidth','button','34824mcqADT'];_0x2478=function(){return _0x2c425b;};return _0x2478();}function _0x4d4a(_0xbfa48,_0x4ef460){const _0x24788c=_0x2478();return _0x4d4a=function(_0x4d4a1d,_0x530bfc){_0x4d4a1d=_0x4d4a1d-0x112;let _0x277a45=_0x24788c[_0x4d4a1d];return _0x277a45;},_0x4d4a(_0xbfa48,_0x4ef460);}export class AIChatChipsOverflowManager{[_0x4cf5e2(0x163)];[_0x4cf5e2(0x15b)];[_0x4cf5e2(0x144)];[_0x4cf5e2(0x18a)];[_0x4cf5e2(0x192)]=null;[_0x4cf5e2(0x154)]=null;[_0x4cf5e2(0x18f)]=null;[_0x4cf5e2(0x158)];[_0x4cf5e2(0x176)]=null;[_0x4cf5e2(0x12d)]=null;[_0x4cf5e2(0x160)]=!0x1;constructor(_0x452dc9,_0x309f17,_0xb21776,_0x351209,_0x912da2){const _0x45e523=_0x4cf5e2;this[_0x45e523(0x163)]=_0x452dc9,this[_0x45e523(0x144)]=_0x309f17,this[_0x45e523(0x15b)]={...hn,..._0xb21776,'cssClasses':{'controlsButton':'','calculationContainer':_0x45e523(0x18d),..._0xb21776[_0x45e523(0x124)]}},this[_0x45e523(0x18a)]=new _0x1ad72d(),this[_0x45e523(0x158)]=_0x351209,this[_0x45e523(0x176)]=_0x912da2||null;}[_0x4cf5e2(0x16a)](_0x52b01a){const _0xb7aa9=_0x4cf5e2;this[_0xb7aa9(0x12d)]&&(this[_0xb7aa9(0x12d)][_0xb7aa9(0x166)](),this[_0xb7aa9(0x12d)]=null),this[_0xb7aa9(0x18f)]=_0x52b01a,this[_0xb7aa9(0x121)]();}get[_0x4cf5e2(0x164)](){const _0x2a44ef=_0x4cf5e2;return this[_0x2a44ef(0x192)];}get[_0x4cf5e2(0x1a3)](){const _0x33f297=_0x4cf5e2;return this[_0x33f297(0x18a)];}[_0x4cf5e2(0x186)](){requestAnimationFrame(()=>{const _0x3db7fe=_0x4d4a;this[_0x3db7fe(0x18c)]();});}[_0x4cf5e2(0x180)](){const _0x256a4e=_0x4cf5e2;this[_0x256a4e(0x192)]&&this[_0x256a4e(0x154)]&&(this[_0x256a4e(0x153)](),this[_0x256a4e(0x192)][_0x256a4e(0x128)]=!0x0,this[_0x256a4e(0x154)][_0x256a4e(0x12a)](),this[_0x256a4e(0x154)][_0x256a4e(0x16d)]({'target':this[_0x256a4e(0x192)][_0x256a4e(0x13c)],'limiter':document[_0x256a4e(0x1a4)](_0x256a4e(0x175))}));}[_0x4cf5e2(0x19a)](){const _0x518197=_0x4cf5e2;this[_0x518197(0x192)]&&this[_0x518197(0x154)]&&(this[_0x518197(0x192)][_0x518197(0x128)]=!0x1,this[_0x518197(0x154)][_0x518197(0x17d)]());}[_0x4cf5e2(0x19b)](){const _0x5b1b81=_0x4cf5e2;this[_0x5b1b81(0x18a)][_0x5b1b81(0x19b)](),this[_0x5b1b81(0x19a)](),this[_0x5b1b81(0x12e)](),this[_0x5b1b81(0x192)]&&(this[_0x5b1b81(0x192)][_0x5b1b81(0x11e)]=''),this[_0x5b1b81(0x154)]&&this[_0x5b1b81(0x154)][_0x5b1b81(0x1a6)][_0x5b1b81(0x19b)]();}[_0x4cf5e2(0x155)](){const _0x55f6da=_0x4cf5e2;this[_0x55f6da(0x12d)]&&(this[_0x55f6da(0x12d)][_0x55f6da(0x166)](),this[_0x55f6da(0x12d)]=null),this[_0x55f6da(0x192)]&&(this[_0x55f6da(0x192)][_0x55f6da(0x155)](),this[_0x55f6da(0x192)]=null),this[_0x55f6da(0x154)]&&(this[_0x55f6da(0x154)][_0x55f6da(0x155)](),this[_0x55f6da(0x154)]=null);}[_0x4cf5e2(0x18c)](){const _0x57cfba=_0x4cf5e2;if(!this[_0x57cfba(0x18f)])return;if(!this[_0x57cfba(0x1a0)]())return void(this[_0x57cfba(0x160)]=!0x0);this[_0x57cfba(0x160)]=!0x1;const _0x14cc12=[...this[_0x57cfba(0x144)],...this[_0x57cfba(0x18a)]],_0x5674ef=this[_0x57cfba(0x179)](),_0x4629ea=this[_0x57cfba(0x1a1)](_0x5674ef,_0x14cc12),_0x58f6fe=_0x5674ef[_0x57cfba(0x1a5)];_0x58f6fe&&this[_0x57cfba(0x118)](_0x58f6fe),_0x5674ef[_0x57cfba(0x13a)](),this[_0x57cfba(0x11c)](_0x14cc12,_0x4629ea);}[_0x4cf5e2(0x199)](){const _0x225226=_0x4cf5e2;this[_0x225226(0x192)]=this[_0x225226(0x11a)](),this[_0x225226(0x154)]=this[_0x225226(0x120)](),this[_0x225226(0x192)][_0x225226(0x184)](),this[_0x225226(0x18f)][_0x225226(0x156)](this[_0x225226(0x192)][_0x225226(0x13c)]),this[_0x225226(0x192)]['on'](_0x225226(0x183),()=>{const _0x47a306=_0x225226;this[_0x47a306(0x13e)]();}),_0xf778b3({'emitter':this[_0x225226(0x154)],'contextElements':[this[_0x225226(0x154)][_0x225226(0x13c)],this[_0x225226(0x192)][_0x225226(0x13c)]],'callback':()=>this[_0x225226(0x19a)](),'activator':()=>this[_0x225226(0x192)][_0x225226(0x128)]});}[_0x4cf5e2(0x11a)](){const _0x551359=_0x4cf5e2,_0xbb118d=new _0x554c65(this[_0x551359(0x163)]);_0xbb118d[_0x551359(0x15e)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x5a40f6=[this[_0x551359(0x15b)][_0x551359(0x124)][_0x551359(0x172)]];return this[_0x551359(0x15b)][_0x551359(0x124)][_0x551359(0x19d)]&&_0x5a40f6[_0x551359(0x132)](this[_0x551359(0x15b)][_0x551359(0x124)][_0x551359(0x19d)]),_0xbb118d[_0x551359(0x15a)]({'attributes':{'class':_0x5a40f6}}),_0xbb118d;}[_0x4cf5e2(0x120)](){const _0x5d4adf=_0x4cf5e2,_0x59c6d0=new _0x23109e(this[_0x5d4adf(0x163)]);return _0x59c6d0[_0x5d4adf(0x15a)]({'attributes':{'class':this[_0x5d4adf(0x15b)][_0x5d4adf(0x124)][_0x5d4adf(0x15f)]}}),this[_0x5d4adf(0x158)][_0x5d4adf(0x190)](_0x59c6d0),_0x59c6d0;}[_0x4cf5e2(0x153)](){const _0x2488e5=_0x4cf5e2;if(this[_0x2488e5(0x154)]&&(this[_0x2488e5(0x154)][_0x2488e5(0x1a6)][_0x2488e5(0x19b)](),this[_0x2488e5(0x18a)][_0x2488e5(0x117)]>0x0)){this[_0x2488e5(0x18a)][_0x2488e5(0x174)](_0x3b036d=>{const _0x358d9d=_0x2488e5;_0x3b036d[_0x358d9d(0x12f)]();});const _0x9071b3=new _0x86989a(this[_0x2488e5(0x163)]);_0x9071b3[_0x2488e5(0x113)]({'tag':_0x2488e5(0x125),'attributes':{'class':this[_0x2488e5(0x15b)][_0x2488e5(0x124)][_0x2488e5(0x14f)]},'children':this[_0x2488e5(0x18a)]}),this[_0x2488e5(0x154)][_0x2488e5(0x1a6)][_0x2488e5(0x190)](_0x9071b3);}}[_0x4cf5e2(0x13e)](){const _0xf3c1f0=_0x4cf5e2;this[_0xf3c1f0(0x192)][_0xf3c1f0(0x128)]?this[_0xf3c1f0(0x19a)]():this[_0xf3c1f0(0x180)]();}[_0x4cf5e2(0x12e)](){const _0x5d30a2=_0x4cf5e2,_0xbeaefe=this[_0x5d30a2(0x18a)][_0x5d30a2(0x117)]>0x0;this[_0x5d30a2(0x192)]?.[_0x5d30a2(0x13c)]&&(this[_0x5d30a2(0x192)][_0x5d30a2(0x13c)][_0x5d30a2(0x1a7)][_0x5d30a2(0x161)]=_0xbeaefe?'':_0x5d30a2(0x18e));}[_0x4cf5e2(0x140)](){const _0x4a2ba4=_0x4cf5e2;this[_0x4a2ba4(0x192)]?.[_0x4a2ba4(0x128)]&&this[_0x4a2ba4(0x154)]?.[_0x4a2ba4(0x145)]&&this[_0x4a2ba4(0x192)][_0x4a2ba4(0x13c)]&&this[_0x4a2ba4(0x154)][_0x4a2ba4(0x16d)]({'target':this[_0x4a2ba4(0x192)][_0x4a2ba4(0x13c)],'limiter':document[_0x4a2ba4(0x1a4)](_0x4a2ba4(0x175))});}[_0x4cf5e2(0x15c)](_0x1a6e10){const _0x1ffb79=_0x4cf5e2,_0x50240c=this[_0x1ffb79(0x18f)]?.[_0x1ffb79(0x14a)][_0x1ffb79(0x169)]()||_0x1ffb79(0x125),_0x1f378a=this[_0x1ffb79(0x18f)]?.[_0x1ffb79(0x191)];if(_0x1f378a){const _0x2ef5b0=_0x1f378a[0x0]||'',_0x562bd8=_0x1a6e10[_0x1ffb79(0x1a4)]('.'+_0x2ef5b0),_0x46c87f=_0x1a6e10[_0x1ffb79(0x1a4)](_0x50240c);return _0x562bd8||_0x46c87f||_0x1a6e10;}return _0x1a6e10[_0x1ffb79(0x1a4)](_0x50240c)||_0x1a6e10;}[_0x4cf5e2(0x12b)](){const _0x4886cb=_0x4cf5e2,_0x30ddec=this[_0x4886cb(0x176)]?.[_0x4886cb(0x13c)]||this[_0x4886cb(0x18f)];if(!_0x30ddec)return an;const _0x3e191d=window[_0x4886cb(0x17f)](_0x30ddec)[_0x4886cb(0x116)];if(_0x4886cb(0x147)===_0x3e191d||_0x4886cb(0x15d)===_0x3e191d||!_0x3e191d){const _0x210837=_0x30ddec[_0x4886cb(0x122)];if(_0x210837){const _0x5af5be=window[_0x4886cb(0x17f)](_0x210837);return _0x4886cb(0x147)!==_0x5af5be[_0x4886cb(0x116)]?_0x5af5be[_0x4886cb(0x116)]:an;}return an;}return _0x3e191d;}[_0x4cf5e2(0x14b)](_0x1d5192,_0x211e4f){const _0x20679a=_0x4cf5e2;this[_0x20679a(0x15b)][_0x20679a(0x124)][_0x20679a(0x146)]&&_0x1d5192[_0x20679a(0x191)][_0x20679a(0x190)](this[_0x20679a(0x15b)][_0x20679a(0x124)][_0x20679a(0x146)]),_0x1d5192[_0x20679a(0x1a7)][_0x20679a(0x116)]=_0x211e4f,_0x1d5192[_0x20679a(0x1a7)][_0x20679a(0x17a)]=_0x20679a(0x151),_0x1d5192[_0x20679a(0x1a7)][_0x20679a(0x127)]=_0x20679a(0x17b),_0x1d5192[_0x20679a(0x1a7)][_0x20679a(0x150)]=_0x20679a(0x17b),_0x1d5192[_0x20679a(0x1a7)][_0x20679a(0x129)]='0',_0x1d5192[_0x20679a(0x1a7)][_0x20679a(0x148)]=_0x20679a(0x18e),_0x1d5192[_0x20679a(0x1a7)][_0x20679a(0x13d)]='-1',_0x1d5192[_0x20679a(0x1a7)][_0x20679a(0x16b)]=_0x20679a(0x168),_0x1d5192[_0x20679a(0x1a7)][_0x20679a(0x161)]=_0x20679a(0x17e),_0x1d5192[_0x20679a(0x1a7)][_0x20679a(0x18b)]=_0x20679a(0x14e);}[_0x4cf5e2(0x118)](_0x5b4a6a){const _0x468dbb=_0x4cf5e2;_0x5b4a6a[_0x468dbb(0x174)](({element:_0x1968be,originalDisplay:_0x3ef6bc,originalVisibility:_0x37aefd})=>{const _0x9a12d9=_0x468dbb;_0x1968be[_0x9a12d9(0x1a7)][_0x9a12d9(0x161)]=_0x3ef6bc,_0x1968be[_0x9a12d9(0x1a7)][_0x9a12d9(0x16b)]=_0x37aefd;});}[_0x4cf5e2(0x19c)](_0x5d4b54){const _0xcc6058=_0x4cf5e2,_0x39a789=[];let _0x352a25=_0x5d4b54;for(;_0x352a25&&_0x352a25!==document[_0xcc6058(0x181)];){const _0x2e7fc1=window[_0xcc6058(0x17f)](_0x352a25);_0xcc6058(0x18e)!==_0x2e7fc1[_0xcc6058(0x161)]&&_0xcc6058(0x126)!==_0x2e7fc1[_0xcc6058(0x16b)]||(_0x39a789[_0xcc6058(0x132)]({'element':_0x352a25,'originalDisplay':_0x352a25[_0xcc6058(0x1a7)][_0xcc6058(0x161)],'originalVisibility':_0x352a25[_0xcc6058(0x1a7)][_0xcc6058(0x16b)]}),_0x352a25[_0xcc6058(0x1a7)][_0xcc6058(0x161)]=_0xcc6058(0x112),_0x352a25[_0xcc6058(0x1a7)][_0xcc6058(0x16b)]=_0xcc6058(0x167)),_0x352a25=_0x352a25[_0xcc6058(0x122)];}return _0x39a789;}[_0x4cf5e2(0x149)](){const _0x366cf3=_0x4cf5e2;let _0x23f42d,_0xc6dc36;return this[_0x366cf3(0x176)]?.[_0x366cf3(0x13c)]?(_0x23f42d=this[_0x366cf3(0x176)][_0x366cf3(0x13c)][_0x366cf3(0x17c)](!0x0),_0xc6dc36=this[_0x366cf3(0x15c)](_0x23f42d)):(_0x23f42d=document[_0x366cf3(0x19f)](_0x366cf3(0x125)),_0xc6dc36=_0x23f42d),{'calculationContainer':_0x23f42d,'targetContainer':_0xc6dc36};}[_0x4cf5e2(0x179)](){const _0x324aab=_0x4cf5e2,{calculationContainer:_0x41e244,targetContainer:_0x5e147b}=this[_0x324aab(0x149)](),_0x2f96b0=this[_0x324aab(0x12b)]();this[_0x324aab(0x14b)](_0x41e244,_0x2f96b0);const _0x586469=this[_0x324aab(0x176)]?.[_0x324aab(0x13c)]||this[_0x324aab(0x18f)],_0x29d114=_0x586469?.[_0x324aab(0x122)];_0x29d114?_0x29d114[_0x324aab(0x156)](_0x41e244):document[_0x324aab(0x181)][_0x324aab(0x156)](_0x41e244),_0x41e244[_0x324aab(0x134)]=_0x5e147b;const _0x4edf54=this[_0x324aab(0x19c)](_0x29d114||null);return _0x41e244[_0x324aab(0x171)],_0x41e244[_0x324aab(0x1a5)]=_0x4edf54,_0x41e244;}[_0x4cf5e2(0x1a1)](_0x9bce86,_0x44a0e9){const _0x53864b=_0x4cf5e2,_0x1690e0=_0x9bce86[_0x53864b(0x134)]||_0x9bce86,_0xedc2ba=[],{rowCount:_0x1fe8ea}=this[_0x53864b(0x123)](_0x1690e0,_0x44a0e9);if(_0x1fe8ea<=this[_0x53864b(0x15b)][_0x53864b(0x197)])return _0xedc2ba;const _0x4b2006=_0x44a0e9[_0x53864b(0x141)]();for(;_0x4b2006[_0x53864b(0x117)]>0x0;){if(this[_0x53864b(0x187)](_0x9bce86,_0x1690e0,_0x4b2006)){const _0x34cd97=_0x44a0e9[_0x53864b(0x131)](_0xc27de1=>!_0x4b2006[_0x53864b(0x152)](_0xc27de1));_0xedc2ba[_0x53864b(0x132)](..._0x34cd97);break;}if(!_0x4b2006[_0x53864b(0x185)]())break;}return _0xedc2ba;}[_0x4cf5e2(0x123)](_0xc84b64,_0x582537){const _0xa0e227=_0x4cf5e2;_0xc84b64[_0xa0e227(0x14c)]='',_0x582537[_0xa0e227(0x174)](_0x23df89=>{const _0x440dfe=_0xa0e227;if(_0x23df89[_0x440dfe(0x13c)]){const _0x4c47f9=_0x23df89[_0x440dfe(0x13c)][_0x440dfe(0x17c)](!0x0);_0xc84b64[_0x440dfe(0x156)](_0x4c47f9);}}),_0xc84b64[_0xa0e227(0x171)];const _0x7f99e=_0xc84b64[_0xa0e227(0x1a8)],_0xb298ed=[];return Array[_0xa0e227(0x115)](_0x7f99e)[_0xa0e227(0x174)](_0x1e6550=>{const _0x203354=_0xa0e227,_0x4d6b50=_0x1e6550[_0x203354(0x12c)]()[_0x203354(0x127)];_0xb298ed[_0x203354(0x19e)](_0x22ed12=>Math[_0x203354(0x16e)](_0x22ed12-_0x4d6b50)<this[_0x203354(0x15b)][_0x203354(0x188)])||_0xb298ed[_0x203354(0x132)](_0x4d6b50);}),{'rowCount':_0xb298ed[_0xa0e227(0x117)]};}[_0x4cf5e2(0x16c)](){const _0xfce3b0=_0x4cf5e2,_0x2137c1=document[_0xfce3b0(0x19f)](_0xfce3b0(0x136));return _0x2137c1[_0xfce3b0(0x130)]=this[_0xfce3b0(0x15b)][_0xfce3b0(0x124)][_0xfce3b0(0x172)],this[_0xfce3b0(0x15b)][_0xfce3b0(0x124)][_0xfce3b0(0x19d)]&&_0x2137c1[_0xfce3b0(0x191)][_0xfce3b0(0x190)](this[_0xfce3b0(0x15b)][_0xfce3b0(0x124)][_0xfce3b0(0x19d)]),_0x2137c1[_0xfce3b0(0x114)]=_0xfce3b0(0x196),_0x2137c1;}[_0x4cf5e2(0x187)](_0xce34f4,_0x30e9e5,_0x4c26e2){const _0x52f2a5=_0x4cf5e2;this[_0x52f2a5(0x123)](_0x30e9e5,_0x4c26e2);const _0x2b26ed=this[_0x52f2a5(0x16c)]();_0xce34f4[_0x52f2a5(0x156)](_0x2b26ed),_0xce34f4[_0x52f2a5(0x171)];const _0x42a9d2=[..._0x30e9e5[_0x52f2a5(0x1a8)],_0x2b26ed],_0x12ad02=[];_0x42a9d2[_0x52f2a5(0x174)](_0x927c64=>{const _0x460420=_0x52f2a5,_0x2614d2=_0x927c64[_0x460420(0x12c)]()[_0x460420(0x127)];_0x12ad02[_0x460420(0x19e)](_0x265b88=>Math[_0x460420(0x16e)](_0x265b88-_0x2614d2)<this[_0x460420(0x15b)][_0x460420(0x188)])||_0x12ad02[_0x460420(0x132)](_0x2614d2);});const _0x10e15e=_0x12ad02[_0x52f2a5(0x117)];return _0x2b26ed[_0x52f2a5(0x13a)](),_0x10e15e<=this[_0x52f2a5(0x15b)][_0x52f2a5(0x197)];}[_0x4cf5e2(0x133)](_0x43cac8,_0x4a711b){const _0x58aa10=_0x4cf5e2;this[_0x58aa10(0x144)][_0x58aa10(0x19b)](),this[_0x58aa10(0x18a)][_0x58aa10(0x19b)](),_0x43cac8[_0x58aa10(0x174)](_0x3cf4a2=>{const _0x5f5cc3=_0x58aa10;_0x4a711b[_0x5f5cc3(0x152)](_0x3cf4a2)?this[_0x5f5cc3(0x18a)][_0x5f5cc3(0x190)](_0x3cf4a2):this[_0x5f5cc3(0x144)][_0x5f5cc3(0x190)](_0x3cf4a2);});}[_0x4cf5e2(0x177)](_0x5d42a1){const _0x2f031b=_0x4cf5e2;if(_0x5d42a1>0x0&&!this[_0x2f031b(0x192)]&&this[_0x2f031b(0x199)](),_0x5d42a1>0x0&&this[_0x2f031b(0x192)]){const _0x4f1bc7=''+this[_0x2f031b(0x15b)][_0x2f031b(0x170)]+(_0x5d42a1<0x63?_0x5d42a1:'99');this[_0x2f031b(0x192)][_0x2f031b(0x11e)]=_0x4f1bc7;}this[_0x2f031b(0x153)](),this[_0x2f031b(0x12e)](),this[_0x2f031b(0x140)]();}[_0x4cf5e2(0x11c)](_0x31758b,_0x28bdfb){const _0x4d1acf=_0x4cf5e2;this[_0x4d1acf(0x133)](_0x31758b,_0x28bdfb),this[_0x4d1acf(0x177)](_0x28bdfb[_0x4d1acf(0x117)]);}[_0x4cf5e2(0x121)](){const _0x3660a0=_0x4cf5e2;this[_0x3660a0(0x18f)]&&_0x3660a0(0x157)!=typeof IntersectionObserver&&(this[_0x3660a0(0x12d)]=new IntersectionObserver(_0x4e9e18=>{const _0x138c79=_0x3660a0;_0x4e9e18[0x0][_0x138c79(0x14d)]&&this[_0x138c79(0x160)]&&requestAnimationFrame(()=>{const _0x58214d=_0x138c79;this[_0x58214d(0x18c)]();});},{'threshold':0.01,'rootMargin':_0x3660a0(0x1a2)}),this[_0x3660a0(0x12d)][_0x3660a0(0x162)](this[_0x3660a0(0x18f)]));}[_0x4cf5e2(0x1a0)](){const _0x1ae7cd=_0x4cf5e2;if(!this[_0x1ae7cd(0x18f)])return!0x1;if(!this[_0x1ae7cd(0x18f)][_0x1ae7cd(0x139)])return!0x1;const _0x291f15=this[_0x1ae7cd(0x18f)][_0x1ae7cd(0x12c)]();if(0x0===_0x291f15[_0x1ae7cd(0x116)]||0x0===_0x291f15[_0x1ae7cd(0x189)])return!0x1;const _0x4c47e0=window[_0x1ae7cd(0x13f)]||document[_0x1ae7cd(0x16f)][_0x1ae7cd(0x119)],_0x548245=window[_0x1ae7cd(0x13b)]||document[_0x1ae7cd(0x16f)][_0x1ae7cd(0x135)],_0xeb8a12=0xc8;return _0x291f15[_0x1ae7cd(0x194)]>=-0xc8&&_0x291f15[_0x1ae7cd(0x127)]<=_0x4c47e0+_0xeb8a12&&_0x291f15[_0x1ae7cd(0x182)]>=-0xc8&&_0x291f15[_0x1ae7cd(0x150)]<=_0x548245+_0xeb8a12;}}
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 _0x5a18cc=_0x1641;(function(_0x46cd6f,_0x4c8d58){const _0xc6b8e7=_0x1641,_0x48e627=_0x46cd6f();while(!![]){try{const _0x3cd577=parseInt(_0xc6b8e7(0x1dc))/0x1+-parseInt(_0xc6b8e7(0x1f0))/0x2+parseInt(_0xc6b8e7(0x1b1))/0x3*(-parseInt(_0xc6b8e7(0x1df))/0x4)+parseInt(_0xc6b8e7(0x1b3))/0x5+parseInt(_0xc6b8e7(0x1e1))/0x6*(-parseInt(_0xc6b8e7(0x1be))/0x7)+parseInt(_0xc6b8e7(0x1d4))/0x8+parseInt(_0xc6b8e7(0x1ca))/0x9;if(_0x3cd577===_0x4c8d58)break;else _0x48e627['push'](_0x48e627['shift']());}catch(_0xd79b16){_0x48e627['push'](_0x48e627['shift']());}}}(_0xdf39,0x4a8e2));function _0x1641(_0x492e7c,_0x1df86c){const _0xdf391a=_0xdf39();return _0x1641=function(_0x1641c1,_0x422fc5){_0x1641c1=_0x1641c1-0x1b0;let _0x4a673b=_0xdf391a[_0x1641c1];return _0x4a673b;},_0x1641(_0x492e7c,_0x1df86c);}import{ButtonView as _0x410927,IconView as _0x5a2567}from'ckeditor5/src/ui.js';function _0xdf39(){const _0x88dd0b=['_handleAnimationEndOnce','_createLoaderIcon','isLoading','ck-ai-chat-context-chip','210eJYAlz','_createTemplateChildren','span','bindTemplate','animationend','_setupTemplate','ck-ai-chat-context-chip_wide','bind','_createIconView','_createRemoveButton','removeEventListener','_createLabelElement','2376783nZfLrO','removeContextItemChip','webkitAnimationEnd','document','locale','ck-ai-chat-context-chip__type-icon','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','small','ck-hidden','_initializeProperties','3690536qTBEaa','_isAnimationOnEnterEnabled','add','ck-ai-chat-context-controls__chip-tooltip','_setupRemoveButtonEvent','selection','ck-ai-chat-context-chip__label','remove','266286KBzEeF','ck-ai-chat-context-chip_new-chip','slice','4PilTPU','type','73386PgstxX','readonly','set','tooltip','content','render','fire','uiId','disableAnimationOnEnter','classList','execute','itemType','extendTemplate','element','lastIndexOf','428648nItflJ','label','1486839fNzzIN','_createTemplateAttributes','1952775NsZeHd','isVisible','div','ck-ai-chat-context-chip_document','setTemplate','addEventListener','length'];_0xdf39=function(){return _0x88dd0b;};return _0xdf39();}import{IconClose as _0x50e94c,IconDocument as _0x4afcfb,IconFileUpload as _0xacf592,IconLink as _0x2d9dac,IconSelection as _0x1b04da}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x260549}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x3c534e}from'../../../aicore/ui/aispinner.js';const xn={'file':_0xacf592,'document':_0x4afcfb,'web-resource':_0x2d9dac,'text':_0xacf592,'selection':_0x1b04da},bn=_0x5a18cc(0x1bd),wn=_0x5a18cc(0x1c4),Tn=_0x5a18cc(0x1b6),En=_0x5a18cc(0x1da),fn=_0x5a18cc(0x1cf),An=_0x5a18cc(0x1d7),Cn='n';export class AIChatContextItemButtonView extends _0x410927{constructor(_0x1a3e25,_0x4a9c7f,_0x755c2b,_0x1c1943,_0x35c5c0=!0x1){const _0x25107e=_0x5a18cc;super(_0x1a3e25),this[_0x25107e(0x1d5)]=_0x1c1943,this[_0x25107e(0x1d3)](_0x4a9c7f,_0x755c2b,_0x35c5c0),this[_0x25107e(0x1c3)]();}[_0x5a18cc(0x1e6)](){const _0x4c0ce6=_0x5a18cc;super[_0x4c0ce6(0x1e6)](),this[_0x4c0ce6(0x1d5)]&&this[_0x4c0ce6(0x1ee)]&&(this[_0x4c0ce6(0x1ee)][_0x4c0ce6(0x1ea)][_0x4c0ce6(0x1d6)](_0x4c0ce6(0x1dd)),this[_0x4c0ce6(0x1ba)](this[_0x4c0ce6(0x1ee)],()=>{const _0x478079=_0x4c0ce6;this[_0x478079(0x1ee)]&&this[_0x478079(0x1ee)][_0x478079(0x1ea)][_0x478079(0x1db)](_0x478079(0x1dd));}));}[_0x5a18cc(0x1e9)](){const _0x44f3f3=_0x5a18cc;this[_0x44f3f3(0x1d5)]=!0x1,this[_0x44f3f3(0x1ee)]&&this[_0x44f3f3(0x1ee)][_0x44f3f3(0x1ea)][_0x44f3f3(0x1db)](_0x44f3f3(0x1dd));}[_0x5a18cc(0x1d3)](_0x5de6ea,_0xd10fcc,_0x29acc1){const _0x30abd0=_0x5a18cc;this[_0x30abd0(0x1e3)](_0x30abd0(0x1b0),_0x5de6ea[_0x30abd0(0x1b0)]),this[_0x30abd0(0x1e3)](_0x30abd0(0x1e4),!0x0),this[_0x30abd0(0x1e3)](_0x30abd0(0x1ec),_0x5de6ea[_0x30abd0(0x1e0)]),this[_0x30abd0(0x1e3)]('id',_0x5de6ea[_0x30abd0(0x1e8)]),this[_0x30abd0(0x1e3)](_0x30abd0(0x1e2),_0xd10fcc),this[_0x30abd0(0x1e3)](_0x30abd0(0x1bc),_0x29acc1);}[_0x5a18cc(0x1c3)](){const _0x3dfb5c=_0x5a18cc,_0x118bca=this[_0x3dfb5c(0x1c6)](),_0x2a6fbd=this[_0x3dfb5c(0x1c7)](),_0x3addbb=this[_0x3dfb5c(0x1c1)];this[_0x3dfb5c(0x1b7)]({'tag':_0x3dfb5c(0x1b5),'attributes':this[_0x3dfb5c(0x1b2)](_0x3addbb),'children':this[_0x3dfb5c(0x1bf)](_0x118bca,_0x2a6fbd,_0x3addbb)});}[_0x5a18cc(0x1b2)](_0x4602fc){const _0xf0302a=_0x5a18cc;return{'class':[bn,_0x4602fc['if'](_0xf0302a(0x1ec),Tn,_0x3e9e1b=>_0xf0302a(0x1cd)==_0x3e9e1b),_0x4602fc['if'](_0xf0302a(0x1ec),wn,_0x426343=>_0xf0302a(0x1d9)==_0x426343)],'data-cke-tooltip-text':_0x4602fc['to'](_0xf0302a(0x1b0),In),'data-cke-tooltip-position':Cn,'data-cke-tooltip-class':An};}[_0x5a18cc(0x1bf)](_0x32a6bd,_0x5d4ac9,_0x51d699){const _0x14dbb8=_0x5a18cc,_0x31a668=this[_0x14dbb8(0x1c9)](_0x51d699),_0xcf2ff3=this[_0x14dbb8(0x1bb)]();return this[_0x14dbb8(0x1e2)]?[_0x32a6bd,_0x31a668]:[_0x32a6bd,_0xcf2ff3,_0x31a668,_0x5d4ac9];}[_0x5a18cc(0x1c9)](_0x48638a){const _0x48c53d=_0x5a18cc;return{'tag':_0x48c53d(0x1c0),'attributes':{'class':En},'children':[{'text':_0x48638a['to'](_0x48c53d(0x1b0))}]};}[_0x5a18cc(0x1c7)](){const _0x3b9ce1=_0x5a18cc,_0x4d014e=new _0x410927(this[_0x3b9ce1(0x1ce)]);return _0x4d014e[_0x3b9ce1(0x1e3)]({'label':_0x260549(this[_0x3b9ce1(0x1ce)],_0x3b9ce1(0x1d0)),'icon':_0x50e94c}),this[_0x3b9ce1(0x1d8)](_0x4d014e),_0x4d014e;}[_0x5a18cc(0x1d8)](_0x15ef7f){const _0x3453b3=_0x5a18cc;_0x15ef7f['on'](_0x3453b3(0x1eb),()=>{const _0x1a1467=_0x3453b3;this[_0x1a1467(0x1e7)](_0x1a1467(0x1cb),this['id']);});}[_0x5a18cc(0x1c6)](){const _0x249a72=_0x5a18cc,_0x104328=this[_0x249a72(0x1c1)],_0x29a741=new _0x5a2567();return _0x29a741[_0x249a72(0x1e5)]=xn[this[_0x249a72(0x1ec)]],_0x29a741[_0x249a72(0x1ed)]({'attributes':{'class':[fn,_0x104328['if'](_0x249a72(0x1bc),_0x249a72(0x1d2),_0x15cd9e=>_0x15cd9e)]}}),_0x29a741;}[_0x5a18cc(0x1ba)](_0x8cac8d,_0x10ea9c){const _0x5f4f73=_0x5a18cc;if(!_0x8cac8d)return;const _0x1e2b3f=()=>{const _0x1e9f29=_0x1641;_0x10ea9c(),_0x8cac8d[_0x1e9f29(0x1c8)](_0x1e9f29(0x1c2),_0x1e2b3f),_0x8cac8d[_0x1e9f29(0x1c8)](_0x1e9f29(0x1cc),_0x1e2b3f);};_0x8cac8d[_0x5f4f73(0x1b8)](_0x5f4f73(0x1c2),_0x1e2b3f),_0x8cac8d[_0x5f4f73(0x1b8)](_0x5f4f73(0x1cc),_0x1e2b3f);}[_0x5a18cc(0x1bb)](){const _0x3c697b=_0x5a18cc,_0x58f2df=new _0x3c534e(_0x3c697b(0x1d1));return _0x58f2df[_0x3c697b(0x1c5)](_0x3c697b(0x1b4))['to'](this,_0x3c697b(0x1bc),_0x1823ec=>_0x1823ec),_0x58f2df;}}function In(_0x1151f1){const _0x51de44=_0x5a18cc;if(!_0x1151f1)return _0x1151f1;if(_0x1151f1[_0x51de44(0x1b9)]<=0x78)return _0x1151f1;const _0x13b662=_0x1151f1[_0x51de44(0x1de)](0x0,0x78),_0x47df4e=_0x13b662[_0x51de44(0x1ef)]('\x20');return(_0x47df4e>0x0?_0x13b662[_0x51de44(0x1de)](0x0,_0x47df4e):_0x13b662)+'…';}
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 _0x42e4(_0x19142f,_0x4c0efd){const _0x3457ad=_0x3457();return _0x42e4=function(_0x42e49c,_0x36d4a8){_0x42e49c=_0x42e49c-0x6f;let _0x1ed170=_0x3457ad[_0x42e49c];return _0x1ed170;},_0x42e4(_0x19142f,_0x4c0efd);}const _0x39b20f=_0x42e4;(function(_0x1c3da4,_0x591fea){const _0x78a18b=_0x42e4,_0x1d3bb1=_0x1c3da4();while(!![]){try{const _0x38e89f=-parseInt(_0x78a18b(0xa6))/0x1*(-parseInt(_0x78a18b(0xb1))/0x2)+-parseInt(_0x78a18b(0xaa))/0x3*(-parseInt(_0x78a18b(0x8c))/0x4)+-parseInt(_0x78a18b(0xab))/0x5*(parseInt(_0x78a18b(0x9e))/0x6)+parseInt(_0x78a18b(0xb8))/0x7*(-parseInt(_0x78a18b(0x84))/0x8)+parseInt(_0x78a18b(0x7b))/0x9+-parseInt(_0x78a18b(0xb2))/0xa*(parseInt(_0x78a18b(0x9f))/0xb)+parseInt(_0x78a18b(0xae))/0xc;if(_0x38e89f===_0x591fea)break;else _0x1d3bb1['push'](_0x1d3bb1['shift']());}catch(_0x36d80e){_0x1d3bb1['push'](_0x1d3bb1['shift']());}}}(_0x3457,0x84ddb));import{FocusTracker as _0x242d81,KeystrokeHandler as _0x5e7a72}from'ckeditor5/src/utils.js';import{ButtonView as _0x48ef76,FocusCycler as _0x36ba4e,LabeledFieldView as _0x3ecdd4,View as _0xc06003,FormHeaderView as _0x15e9f8,createLabeledInputText as _0x2d7176,submitHandler as _0x54fb38}from'ckeditor5/src/ui.js';import{IconCheck as _0x2e4de9,IconPreviousArrow as _0x3e338d}from'@ckeditor/ckeditor5-icons';function _0x3457(){const _0x44c57a=['ck-button-icon\x20ck-button-back','value','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','21zDVYFe','20krIugS','element','locale','8876124zUYVsW','_handleSubmit','getValue','118454mdfhwM','58940WsqRJl','_updateConfirmButtonState','fire','ck-ai-chat-context-controls__url-input-section','AI_CHAT_CONTEXT_URL_INVALID_ERROR','input','343yFzFLO','add','createCollection','_createConfirmButton','_createUrlInputField','trim','children','setTemplate','_isValidUrl','clearError','set','_createBackButton','stop','esc','1934802QnJNMx','setError','ck-button-icon','focusCycler','_setupKeystrokes','_setupTemplate','ck-ai-chat-context-controls__url-form','focusTracker','execute','14408TplYiY','destroy','errorText','shift+tab','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','form','submit','length','148232SuYoSx','submitUrl','_focusables','fieldView','_setupEventHandlers','urlInputField','focus','tab','isEnabled','confirmButton','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','clear','ck-labeled-field-view_empty','render','refreshBalloon','listenTo','cancel','div','430770ydUPAr','660RVpeWa','AI_CHAT_CONTEXT_URL_ADD_URL','forEach','backButton','keystrokes','AI_CHAT_CONTEXT_URL_LABEL','AI_CHAT_CONTEXT_URL_PLACEHOLDER','1JHmrko'];_0x3457=function(){return _0x44c57a;};return _0x3457();}import{getTranslation as _0x1cb960}from'../../../aicore/utils/common-translations.js';const ch=_0x39b20f(0x81),nh=_0x39b20f(0xb5);export class AIChatContextPanelUrlInputView extends _0xc06003{[_0x39b20f(0x82)];[_0x39b20f(0xa3)];[_0x39b20f(0x8e)];[_0x39b20f(0x7e)];[_0x39b20f(0x91)];[_0x39b20f(0xa2)];[_0x39b20f(0x95)];constructor(_0x4b4a40){const _0x166f58=_0x39b20f;super(_0x4b4a40),this[_0x166f58(0x82)]=new _0x242d81(),this[_0x166f58(0xa3)]=new _0x5e7a72(),this[_0x166f58(0xa2)]=this[_0x166f58(0x78)](),this[_0x166f58(0x91)]=this[_0x166f58(0x71)](),this[_0x166f58(0x95)]=this[_0x166f58(0x70)](),this[_0x166f58(0x8e)]=this[_0x166f58(0x6f)]([this[_0x166f58(0xa2)],this[_0x166f58(0x91)],this[_0x166f58(0x95)]]),this[_0x166f58(0x7e)]=new _0x36ba4e({'focusables':this[_0x166f58(0x8e)],'focusTracker':this[_0x166f58(0x82)],'keystrokeHandler':this[_0x166f58(0xa3)],'actions':{'focusPrevious':_0x166f58(0x87),'focusNext':_0x166f58(0x93)}}),this[_0x166f58(0x80)](),this[_0x166f58(0x90)](),this[_0x166f58(0x7f)]();}[_0x39b20f(0x99)](){const _0x16a369=_0x39b20f;super[_0x16a369(0x99)](),this[_0x16a369(0x8e)][_0x16a369(0xa1)](_0x241459=>{const _0x561c94=_0x16a369;this[_0x561c94(0x82)][_0x561c94(0xb9)](_0x241459[_0x561c94(0xac)]),this[_0x561c94(0xa3)][_0x561c94(0x9b)](_0x241459[_0x561c94(0xac)]);}),_0x54fb38({'view':this}),this[_0x16a369(0x92)]();}[_0x39b20f(0x85)](){const _0x4f0290=_0x39b20f;super[_0x4f0290(0x85)](),this[_0x4f0290(0x82)][_0x4f0290(0x85)](),this[_0x4f0290(0xa3)][_0x4f0290(0x85)]();}[_0x39b20f(0x92)](){const _0x453ad6=_0x39b20f;this[_0x453ad6(0x91)][_0x453ad6(0x92)]();}[_0x39b20f(0xb0)](){const _0x4944a2=_0x39b20f;return this[_0x4944a2(0x91)][_0x4944a2(0x8f)][_0x4944a2(0xac)]?.[_0x4944a2(0xa8)]?.[_0x4944a2(0x72)]()||'';}[_0x39b20f(0x97)](){const _0x2f3ebd=_0x39b20f;this[_0x2f3ebd(0x91)][_0x2f3ebd(0x8f)][_0x2f3ebd(0xac)][_0x2f3ebd(0xa8)]='',this[_0x2f3ebd(0x91)][_0x2f3ebd(0x86)]=null,this[_0x2f3ebd(0x95)][_0x2f3ebd(0x94)]=!0x1;}[_0x39b20f(0x7c)](_0x36904c){const _0x1439fe=_0x39b20f;this[_0x1439fe(0x91)][_0x1439fe(0x86)]=_0x36904c,this[_0x1439fe(0xb3)](),this[_0x1439fe(0xb4)](_0x1439fe(0x9a));}[_0x39b20f(0x76)](){const _0x557dd1=_0x39b20f;this[_0x557dd1(0x91)][_0x557dd1(0x86)]=null,this[_0x557dd1(0xb3)]();}[_0x39b20f(0x78)](){const _0x4ec8a7=_0x39b20f,_0x2d48c3=new _0x48ef76(this[_0x4ec8a7(0xad)]);return _0x2d48c3[_0x4ec8a7(0x77)]({'icon':_0x3e338d,'tooltip':_0x1cb960(this[_0x4ec8a7(0xad)],_0x4ec8a7(0x88)),'tooltipPosition':'n','class':_0x4ec8a7(0xa7)}),_0x2d48c3;}[_0x39b20f(0x71)](){const _0x4dc8e4=_0x39b20f,_0x6adc15=new _0x3ecdd4(this[_0x4dc8e4(0xad)],_0x2d7176);return _0x6adc15[_0x4dc8e4(0x77)]({'label':_0x1cb960(this[_0x4dc8e4(0xad)],_0x4dc8e4(0xa4)),'class':_0x4dc8e4(0x98)}),_0x6adc15[_0x4dc8e4(0x8f)][_0x4dc8e4(0x77)]({'placeholder':_0x1cb960(this[_0x4dc8e4(0xad)],_0x4dc8e4(0xa5))}),_0x6adc15;}[_0x39b20f(0x70)](){const _0x505377=_0x39b20f,_0x25f6ff=new _0x48ef76(this[_0x505377(0xad)]);return _0x25f6ff[_0x505377(0x77)]({'icon':_0x2e4de9,'tooltip':_0x1cb960(this[_0x505377(0xad)],_0x505377(0xa0)),'tooltipPosition':'n','class':_0x505377(0x7d),'type':_0x505377(0x8a),'isEnabled':!0x1}),_0x25f6ff;}[_0x39b20f(0x80)](){const _0x44925a=_0x39b20f,_0x17bb02=new _0x15e9f8(this[_0x44925a(0xad)],{'label':_0x1cb960(this[_0x44925a(0xad)],_0x44925a(0xa0)),'class':_0x44925a(0x96)});_0x17bb02[_0x44925a(0x73)][_0x44925a(0xb9)](this[_0x44925a(0xa2)],0x0),this[_0x44925a(0x74)]({'tag':_0x44925a(0x89),'attributes':{'class':ch,'tabindex':'-1'},'children':[_0x17bb02,{'tag':_0x44925a(0x9d),'attributes':{'class':nh},'children':[this[_0x44925a(0x91)],this[_0x44925a(0x95)]]}]});}[_0x39b20f(0x90)](){const _0x3a1ea5=_0x39b20f;this[_0x3a1ea5(0xa2)]['on'](_0x3a1ea5(0x83),()=>{const _0x2e2bd8=_0x3a1ea5;this[_0x2e2bd8(0x97)](),this[_0x2e2bd8(0xb4)](_0x2e2bd8(0x9c));}),this[_0x3a1ea5(0x91)][_0x3a1ea5(0x8f)]['on'](_0x3a1ea5(0xb7),()=>{const _0x350c4d=_0x3a1ea5;this[_0x350c4d(0x76)](),this[_0x350c4d(0xb3)](),this[_0x350c4d(0xb4)](_0x350c4d(0x9a));}),this['on'](_0x3a1ea5(0x8a),_0x153384=>{const _0x286fac=_0x3a1ea5;_0x153384[_0x286fac(0x79)](),this[_0x286fac(0xaf)]();});}[_0x39b20f(0x7f)](){const _0x494edf=_0x39b20f;this[_0x494edf(0xa3)][_0x494edf(0x77)](_0x494edf(0x7a),(_0x458a07,_0x44d2ca)=>{const _0x594600=_0x494edf;this[_0x594600(0x97)](),this[_0x594600(0xb4)](_0x594600(0x9c)),_0x44d2ca();});}[_0x39b20f(0xaf)](){const _0x34d364=_0x39b20f,_0x2ce9e5=this[_0x34d364(0xb0)]()[_0x34d364(0x72)]();_0x2ce9e5?this[_0x34d364(0x75)](_0x2ce9e5)?(this[_0x34d364(0x76)](),this[_0x34d364(0xb4)](_0x34d364(0x8d),_0x2ce9e5)):this[_0x34d364(0x7c)](_0x1cb960(this[_0x34d364(0xad)],_0x34d364(0xb6))):this[_0x34d364(0x7c)](_0x1cb960(this[_0x34d364(0xad)],_0x34d364(0xa9)));}[_0x39b20f(0xb3)](){const _0x3016e2=_0x39b20f,_0x1ea63c=this[_0x3016e2(0xb0)]()[_0x3016e2(0x72)](),_0x49374f=!!this[_0x3016e2(0x91)][_0x3016e2(0x86)];this[_0x3016e2(0x95)][_0x3016e2(0x94)]=_0x1ea63c[_0x3016e2(0x8b)]>0x0&&!_0x49374f;}[_0x39b20f(0x75)](_0x5668e6){try{return!!new URL(_0x5668e6);}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
- function _0x5cfc(){const _0x130e1c=['hideAddContextBalloonPanel','AI_CHAT_CONTEXT_FILE_LABEL','4428384JUOoMn','ck-ai-chat-context-chips-wrapper-balloon','cancel','add','find','div','ck-ai-chat-context-controls__add-context-button','sources','northArrowSouth','setContainerElement','southArrowNorth','conversation','hide','execute','_createContextButton','_handleAddContextButtonClick','_addContextBalloonPanelView','AI_CHAT_CONTEXT_ADD_CONTEXT','__arrow','_overflowManager','setTemplate','_handleUrlSubmit','populateSourceResourceBalloon','_conversationContextsChips','type','bodyCollection','pin','render','current','southArrowNorthWest','_createUrlBalloonPanelView','401116fngaEA','isLoading','done','ck-ai-chat-controls_context_show-more-button','ck-ai-chat-context-controls__add-context-balloon-panel','loadSourceResources','focus','_toggleAddContextBalloon','isOn','bind','closeSourceResourceBalloon','balloonView','386628SXWrSv','northArrowSouthEast','1206534YXQEDH','arrowView','ck-ai-chat-context-controls__url-balloon-panel','showSourceResourcesBalloon','buttonView','_getLimiterElement','_removeContextFromCollection','set','_createBaseBalloonPanel','addContextItem','_createArrowView','_setupAllBalloonClickOutsideHandlers','addFileToContext','setContextItemLoading','_resourcesBalloonView','_urlInputView','menuitem','_createBalloonButton','hideUrlBalloonPanel','ck-ai-chat-context-controls__balloon-button','enabled','isHidden','ck-reset_all-excluded','_setupAddContextBalloonClickOutsideHandler','ck-ai-chat-context-controls__pending-contexts','clear','element','files','children','updateResourceState','submitUrl','overflowChips','ck-ai-chat-context-controls__balloon-button-source','647358yCmFvH','northArrowSouthWest','icon','label','addDocumentToContext','clearConversationContextItems','removeContextItemChip','setAddContextOptions','searchInputVisibleFrom','tooltip','_setupUrlBalloonClickOutsideHandler','636935jvfDbF','isReadOnly','urls','content','827394qjgWoE','_urlBalloonPanelView','source','southArrowNorthEast','defaultPositions','_createResourcesBalloonView','_bindEventHandlers','body','addContextButtonView','isEnabled','addUrlToContext','_addUrlContent','closest','show','_addContextBalloonConfig','fire','showAddContextBalloonPanel','_setupTemplate','addResourceToContext','_showSourceResourcesBalloon','ck-ai-chat-context-controls','extendTemplate','clearCurrentContextItems','_currentContextsChips','destroy','ck-ai-chat','_addContextToCollection','locale','_createAddContextButtonView','12IoSyHs','document','remove','_setAddContextButtonEnabled','_setBalloonPanelContent','reorganizeChips','setConversationContext','showUrlBalloonPanel','removeContextItem','ck-ai-chat-context-controls__show-more-balloon-panel','createCollection','isAnyResourceBalloonVisible','ck-ai-chat-controls-button','refreshBalloon','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','_createAddContextBalloonPanelView','isVisible','AI_CHAT_CONTEXT_URL_LABEL'];_0x5cfc=function(){return _0x130e1c;};return _0x5cfc();}function _0x118a(_0x41c22a,_0x4dd91b){const _0x5cfc84=_0x5cfc();return _0x118a=function(_0x118ac2,_0x3ecc5f){_0x118ac2=_0x118ac2-0x1f0;let _0x2961c5=_0x5cfc84[_0x118ac2];return _0x2961c5;},_0x118a(_0x41c22a,_0x4dd91b);}const _0x5954e3=_0x118a;(function(_0x3ea876,_0x57141c){const _0x3b86b7=_0x118a,_0x34ebd2=_0x3ea876();while(!![]){try{const _0x3c4c2e=-parseInt(_0x3b86b7(0x268))/0x1+parseInt(_0x3b86b7(0x209))/0x2+parseInt(_0x3b86b7(0x235))/0x3*(-parseInt(_0x3b86b7(0x274))/0x4)+parseInt(_0x3b86b7(0x214))/0x5+-parseInt(_0x3b86b7(0x218))/0x6+parseInt(_0x3b86b7(0x276))/0x7+parseInt(_0x3b86b7(0x249))/0x8;if(_0x3c4c2e===_0x57141c)break;else _0x34ebd2['push'](_0x34ebd2['shift']());}catch(_0x29efab){_0x34ebd2['push'](_0x34ebd2['shift']());}}}(_0x5cfc,0x3d5c5));import{BalloonPanelView as _0x2c7ae8,ButtonView as _0x40dae2,clickOutsideHandler as _0x24dd19,FileDialogButtonView as _0x42329f,IconView as _0x543a0f,View as _0x551670}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0xd6a1b0,IconDocument as _0x2396fc,IconDocumentOutline as _0x45372a,IconDropdownArrow as _0x51f472,IconLink as _0x4ff0c6,IconPaperClip as _0x53ad40}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x25e2d8}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x3919f7}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x3ccaa9}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x245725}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x257b9a}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x5954e3(0x20d),_0x5954e3(0x1f4),_0x5954e3(0x222),_0x5954e3(0x22a),_0x5954e3(0x23d),_0x5954e3(0x26d)];const ko=_0x5954e3(0x22c),Eo=_0x5954e3(0x200),vo=_0x5954e3(0x26c),Vo=_0x5954e3(0x24f),Io=_0x5954e3(0x278),Po=_0x5954e3(0x1fb),Ro=_0x5954e3(0x208),Uo=_0x5954e3(0x241),Lo=_0x5954e3(0x24a),No=_0x5954e3(0x26b),Oo=_0x5954e3(0x23e),Mo=_0x5954e3(0x231),Ho=[_0x2c7ae8[_0x5954e3(0x21c)][_0x5954e3(0x20a)],_0x2c7ae8[_0x5954e3(0x21c)][_0x5954e3(0x251)],_0x2c7ae8[_0x5954e3(0x21c)][_0x5954e3(0x275)],_0x2c7ae8[_0x5954e3(0x21c)][_0x5954e3(0x266)],_0x2c7ae8[_0x5954e3(0x21c)][_0x5954e3(0x253)],_0x2c7ae8[_0x5954e3(0x21c)][_0x5954e3(0x21b)]];export class AIChatContextPanelView extends _0x551670{[_0x5954e3(0x220)];[_0x5954e3(0x22f)]=this[_0x5954e3(0x23f)]();[_0x5954e3(0x260)]=this[_0x5954e3(0x23f)]();[_0x5954e3(0x25c)];[_0x5954e3(0x259)];[_0x5954e3(0x219)];[_0x5954e3(0x1f7)];[_0x5954e3(0x1f6)];[_0x5954e3(0x226)];[_0x5954e3(0x262)];constructor(_0x54e1bd,_0x342c93){const _0x265983=_0x5954e3;super(_0x54e1bd),this[_0x265983(0x262)]=_0x342c93[_0x265983(0x262)],this[_0x265983(0x22f)]=this[_0x265983(0x23f)](),this[_0x265983(0x260)]=this[_0x265983(0x23f)](),this[_0x265983(0x220)]=this[_0x265983(0x234)](_0x54e1bd),this[_0x265983(0x259)]=this[_0x265983(0x244)](_0x54e1bd),this[_0x265983(0x219)]=this[_0x265983(0x267)](_0x54e1bd),this[_0x265983(0x1f6)]=this[_0x265983(0x21d)](_0x54e1bd,_0x342c93);const _0x4fa8d8={'cssClasses':{'showMoreButton':No,'showMoreBalloon':Oo,'overflowContainer':Lo,'controlsButton':Uo}};this[_0x265983(0x25c)]=new _0x3ccaa9(_0x54e1bd,this[_0x265983(0x22f)],_0x4fa8d8,this[_0x265983(0x262)],this),this[_0x265983(0x226)]={'buttonView':this[_0x265983(0x220)],'balloonView':this[_0x265983(0x259)],'hideMethod':this[_0x265983(0x247)][_0x265983(0x271)](this),'showMethod':this[_0x265983(0x228)][_0x265983(0x271)](this)},this[_0x265983(0x229)](),this[_0x265983(0x21e)]();}[_0x5954e3(0x264)](){const _0x4e3c82=_0x5954e3;super[_0x4e3c82(0x264)](),this[_0x4e3c82(0x1f3)](),this[_0x4e3c82(0x25c)][_0x4e3c82(0x252)](this[_0x4e3c82(0x202)]),this[_0x4e3c82(0x25c)][_0x4e3c82(0x23a)]();}[_0x5954e3(0x230)](){const _0xa1cabb=_0x5954e3;super[_0xa1cabb(0x230)](),this[_0xa1cabb(0x25c)][_0xa1cabb(0x230)](),this[_0xa1cabb(0x1f6)][_0xa1cabb(0x230)]();}[_0x5954e3(0x1f1)](_0xc40b61,_0x3de4e3){const _0x1a8130=_0x5954e3,_0x46a153=this[_0x1a8130(0x257)](_0xc40b61,_0x1a8130(0x265),!0x0,_0x3de4e3);this[_0x1a8130(0x232)](_0x46a153,this[_0x1a8130(0x22f)]),this[_0x1a8130(0x25c)][_0x1a8130(0x23a)]();}[_0x5954e3(0x23d)](_0x390416){const _0xa4b05c=_0x5954e3;this[_0xa4b05c(0x27c)](_0x390416,this[_0xa4b05c(0x22f)]),this[_0xa4b05c(0x27c)](_0x390416,this[_0xa4b05c(0x25c)][_0xa4b05c(0x207)]),this[_0xa4b05c(0x25c)][_0xa4b05c(0x23a)]();}[_0x5954e3(0x1f5)](_0x305d4b,_0x3ee02c){const _0x505500=_0x5954e3;let _0x2805d7=this[_0x505500(0x22f)][_0x505500(0x24d)](_0x15f993=>_0x15f993['id']===_0x305d4b);_0x2805d7||(_0x2805d7=this[_0x505500(0x25c)][_0x505500(0x207)][_0x505500(0x24d)](_0x559a60=>_0x559a60['id']===_0x305d4b)),_0x2805d7&&(_0x2805d7[_0x505500(0x269)]=_0x3ee02c);}[_0x5954e3(0x23b)](_0x51bffe){const _0x385136=_0x5954e3;this[_0x385136(0x260)][_0x385136(0x201)]();for(const _0x1fe814 of _0x51bffe){const _0x543e72=this[_0x385136(0x257)](_0x1fe814,_0x385136(0x254),!0x1,!0x1);this[_0x385136(0x232)](_0x543e72,this[_0x385136(0x260)]);}}[_0x5954e3(0x22e)](){const _0x3d09e8=_0x5954e3;this[_0x3d09e8(0x22f)][_0x3d09e8(0x201)](),this[_0x3d09e8(0x25c)][_0x3d09e8(0x201)]();}[_0x5954e3(0x20e)](){const _0x2a885a=_0x5954e3;this[_0x2a885a(0x260)][_0x2a885a(0x201)]();}[_0x5954e3(0x205)](_0x3aef0e,_0x2d05ad,_0x3efbe5){const _0x5e86dc=_0x5954e3;this[_0x5e86dc(0x1f6)][_0x5e86dc(0x205)](_0x3aef0e,_0x2d05ad,_0x3efbe5);}[_0x5954e3(0x247)](){const _0xfbd381=_0x5954e3;this[_0xfbd381(0x26f)](!0x1);}[_0x5954e3(0x228)](){const _0x12dbcc=_0x5954e3;this[_0x12dbcc(0x26f)](!0x0);}[_0x5954e3(0x1fa)](){const _0x41d111=_0x5954e3;this[_0x41d111(0x219)][_0x41d111(0x255)](),this[_0x41d111(0x220)][_0x41d111(0x270)]=!0x1,this[_0x41d111(0x1f7)]&&this[_0x41d111(0x1f7)][_0x41d111(0x201)]();}[_0x5954e3(0x23c)](){const _0xb41abe=_0x5954e3;this[_0xb41abe(0x219)][_0xb41abe(0x225)](),this[_0xb41abe(0x220)][_0xb41abe(0x270)]=!0x0;}[_0x5954e3(0x22b)](_0x41758a){const _0x45724d=_0x5954e3;this[_0x45724d(0x1f6)][_0x45724d(0x279)](_0x41758a),this[_0x45724d(0x220)][_0x45724d(0x270)]=!0x0;}[_0x5954e3(0x25f)](_0xa72282,_0x5f2ca0,_0x111afe,_0x2fdd2b){const _0x2a36e8=_0x5954e3;this[_0x2a36e8(0x1f6)][_0x2a36e8(0x25f)](_0xa72282,_0x111afe,_0x2fdd2b);}[_0x5954e3(0x272)](_0x5c9c74){const _0xbd8926=_0x5954e3;this[_0xbd8926(0x1f6)][_0xbd8926(0x272)](_0x5c9c74),this[_0xbd8926(0x220)][_0xbd8926(0x270)]=!0x1;}[_0x5954e3(0x210)](_0x255de9){const _0x1e7613=_0x5954e3;this[_0x1e7613(0x239)](this[_0x1e7613(0x259)],this[_0x1e7613(0x233)],_0x255de9),this[_0x1e7613(0x238)](_0x255de9);}[_0x5954e3(0x238)](_0x33e7d6){const _0x4be565=_0x5954e3,_0x2d68b1=!_0x33e7d6[_0x4be565(0x236)][_0x4be565(0x1fd)]&&_0x33e7d6[_0x4be565(0x236)][_0x4be565(0x1fc)],_0x517d93=_0x33e7d6[_0x4be565(0x216)][_0x4be565(0x1fc)],_0x3b6f81=_0x33e7d6[_0x4be565(0x203)][_0x4be565(0x1fc)];this[_0x4be565(0x220)][_0x4be565(0x221)]=_0x2d68b1||_0x517d93||_0x3b6f81;}[_0x5954e3(0x229)](){const _0x5d68e9=_0x5954e3;this[_0x5d68e9(0x25d)]({'tag':_0x5d68e9(0x24e),'attributes':{'class':[ko,_0x5d68e9(0x1fe)]},'children':[{'tag':_0x5d68e9(0x24e),'attributes':{'class':Eo},'children':this[_0x5d68e9(0x22f)]}]});}[_0x5954e3(0x21e)](){const _0x3c0a1b=_0x5954e3;this[_0x3c0a1b(0x220)]['on'](_0x3c0a1b(0x256),()=>{const _0x138a76=_0x3c0a1b;this[_0x138a76(0x258)]();});}[_0x5954e3(0x234)](_0x2265a3){const _0x16cfed=_0x5954e3,_0x13fc80=new _0x40dae2(_0x2265a3);return _0x13fc80[_0x16cfed(0x27d)]({'label':_0x245725(_0x2265a3,_0x16cfed(0x25a)),'class':Uo+'\x20'+Vo,'icon':_0x53ad40,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x13fc80;}[_0x5954e3(0x244)](_0x42397f){const _0x6100b5=_0x5954e3;return this[_0x6100b5(0x1f0)](_0x42397f,vo);}[_0x5954e3(0x267)](_0x1764de){const _0xad43da=_0x5954e3,_0x34ddb2=this[_0xad43da(0x1f0)](_0x1764de,Io);return this[_0xad43da(0x223)](_0x34ddb2,_0x1764de),_0x34ddb2;}[_0x5954e3(0x21d)](_0x514140,_0x47e9f2){const _0x33574d=_0x5954e3,_0x446c72={'searchInputVisibleFrom':_0x47e9f2[_0x33574d(0x211)],'onBackToContext':()=>{const _0x133a16=_0x33574d;this[_0x133a16(0x228)](),this[_0x133a16(0x259)][_0x133a16(0x263)]({'target':this[_0x133a16(0x220)][_0x133a16(0x202)],'limiter':this[_0x133a16(0x27b)](),'positions':Ho});},'onResourceSelected':(_0x5486ef,_0x258866)=>{const _0x9e79e1=_0x33574d;this[_0x9e79e1(0x227)](_0x9e79e1(0x22a),{'source':_0x5486ef,'resource':_0x258866});},'onLoadSourceResources':_0x483ba2=>{const _0x4d97a0=_0x33574d;this[_0x4d97a0(0x227)](_0x4d97a0(0x26d),_0x483ba2);},'onBalloonClosed':()=>{const _0x6c84d5=_0x33574d;this[_0x6c84d5(0x220)][_0x6c84d5(0x270)]=!0x1;},'getLimiterElement':()=>this[_0x33574d(0x27b)](),'getTargetElement':()=>this[_0x33574d(0x220)][_0x33574d(0x202)]};return new _0x257b9a(_0x514140,_0x47e9f2[_0x33574d(0x262)],_0x446c72);}[_0x5954e3(0x27b)](){const _0x2b49a5=_0x5954e3;return this[_0x2b49a5(0x202)]?.[_0x2b49a5(0x224)]('.'+Mo)||document[_0x2b49a5(0x21f)];}[_0x5954e3(0x1f0)](_0x2944d6,_0x5752f7){const _0x4a8aea=_0x5954e3,_0x10b0a8=new _0x2c7ae8(_0x2944d6);return _0x10b0a8[_0x4a8aea(0x22d)]({'attributes':{'class':_0x5752f7}}),this[_0x4a8aea(0x262)][_0x4a8aea(0x24c)](_0x10b0a8),_0x10b0a8;}[_0x5954e3(0x239)](_0x1eb030,_0x6b62a1,_0xdf5b9a){const _0x48a88c=_0x5954e3;if(_0x1eb030[_0x48a88c(0x217)][_0x48a88c(0x201)](),!_0xdf5b9a[_0x48a88c(0x236)][_0x48a88c(0x1fd)]&&_0xdf5b9a[_0x48a88c(0x236)][_0x48a88c(0x1fc)]){const _0x14e854=this[_0x48a88c(0x1f9)](_0x6b62a1,{'label':_0x245725(_0x6b62a1,_0x48a88c(0x243)),'icon':_0x2396fc});_0x14e854['on'](_0x48a88c(0x256),()=>{const _0x2d7666=_0x48a88c;this[_0x2d7666(0x227)](_0x2d7666(0x20d)),this[_0x2d7666(0x247)]();}),_0x1eb030[_0x48a88c(0x217)][_0x48a88c(0x24c)](_0x14e854);}if(_0xdf5b9a[_0x48a88c(0x216)][_0x48a88c(0x1fc)]){const _0x6cbebd=this[_0x48a88c(0x1f9)](_0x6b62a1,{'label':_0x245725(_0x6b62a1,_0x48a88c(0x246)),'icon':_0x4ff0c6});_0x6cbebd['on'](_0x48a88c(0x256),()=>{const _0x4082e4=_0x48a88c;this[_0x4082e4(0x247)](),this[_0x4082e4(0x23c)](),this[_0x4082e4(0x219)][_0x4082e4(0x263)]({'target':this[_0x4082e4(0x220)][_0x4082e4(0x202)],'limiter':this[_0x4082e4(0x27b)](),'positions':Ho}),this[_0x4082e4(0x1f7)][_0x4082e4(0x26e)]();}),_0x1eb030[_0x48a88c(0x217)][_0x48a88c(0x24c)](_0x6cbebd);}if(_0xdf5b9a[_0x48a88c(0x203)][_0x48a88c(0x1fc)]){const _0x13630d=new _0x42329f(_0x6b62a1);_0x13630d[_0x48a88c(0x27d)]({'label':_0x245725(_0x6b62a1,_0x48a88c(0x248)),'icon':_0xd6a1b0,'withText':!0x0,'tooltip':!0x0,'class':Po,'allowMultipleFiles':!0x0}),_0x13630d['on'](_0x48a88c(0x26a),(_0x340f46,_0x31d441)=>{const _0x4679f4=_0x48a88c;this[_0x4679f4(0x227)](_0x4679f4(0x1f4),_0x31d441),this[_0x4679f4(0x247)]();}),_0x13630d[_0x48a88c(0x212)]=!0x0,_0x1eb030[_0x48a88c(0x217)][_0x48a88c(0x24c)](_0x13630d);}for(const _0x44de6b of _0xdf5b9a[_0x48a88c(0x250)]){const _0x45e2a2=this[_0x48a88c(0x1f9)](_0x6b62a1,{'label':_0x44de6b[_0x48a88c(0x20c)],'icon':_0x44de6b[_0x48a88c(0x20b)]||_0x45372a,'type':_0x48a88c(0x21a)});_0x1eb030[_0x48a88c(0x217)][_0x48a88c(0x24c)](_0x45e2a2),_0x45e2a2['on'](_0x48a88c(0x256),()=>{const _0x1d7af0=_0x48a88c;this[_0x1d7af0(0x247)](),this[_0x1d7af0(0x22b)](_0x44de6b);});}}[_0x5954e3(0x223)](_0x3be987,_0x1b9eeb){const _0x17ed2c=_0x5954e3;this[_0x17ed2c(0x1f7)]=new _0x3919f7(_0x1b9eeb),this[_0x17ed2c(0x1f7)]['on'](_0x17ed2c(0x206),(_0x12d745,_0x131054)=>{const _0x3c135c=_0x17ed2c;this[_0x3c135c(0x25e)](_0x131054);}),this[_0x17ed2c(0x1f7)]['on'](_0x17ed2c(0x24b),()=>{const _0x4422ce=_0x17ed2c;this[_0x4422ce(0x1fa)](),this[_0x4422ce(0x228)](),this[_0x4422ce(0x259)][_0x4422ce(0x263)]({'target':this[_0x4422ce(0x220)][_0x4422ce(0x202)],'limiter':this[_0x4422ce(0x27b)](),'positions':Ho});}),this[_0x17ed2c(0x1f7)]['on'](_0x17ed2c(0x242),()=>{const _0x2f8ebf=_0x17ed2c;this[_0x2f8ebf(0x219)][_0x2f8ebf(0x245)]&&this[_0x2f8ebf(0x219)][_0x2f8ebf(0x263)]({'target':this[_0x2f8ebf(0x220)][_0x2f8ebf(0x202)],'limiter':this[_0x2f8ebf(0x27b)](),'positions':Ho});}),_0x3be987[_0x17ed2c(0x217)][_0x17ed2c(0x24c)](this[_0x17ed2c(0x1f7)]);}[_0x5954e3(0x1f9)](_0x5cbe0a,_0xa909b3){const _0x20ff69=_0x5954e3,_0x353809=_0x20ff69(0x21a)===_0xa909b3[_0x20ff69(0x261)]?new SourcesBalloonButtonView(_0x5cbe0a):new _0x40dae2(_0x5cbe0a);return _0x353809[_0x20ff69(0x27d)]({'label':_0xa909b3[_0x20ff69(0x20c)],'icon':_0xa909b3[_0x20ff69(0x20b)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Po}),_0x353809;}[_0x5954e3(0x1f3)](){const _0x20eb8c=_0x5954e3;this[_0x20eb8c(0x1ff)](),this[_0x20eb8c(0x213)]();}[_0x5954e3(0x213)](){const _0xadc78=_0x5954e3;_0x24dd19({'emitter':this[_0xadc78(0x219)],'contextElements':[this[_0xadc78(0x219)][_0xadc78(0x202)]],'callback':()=>{const _0x571936=_0xadc78;this[_0x571936(0x1fa)]();},'activator':()=>this[_0xadc78(0x219)][_0xadc78(0x245)]});}[_0x5954e3(0x26f)](_0x52a60a){const _0x5da277=_0x5954e3,_0x280ced=this[_0x5da277(0x226)];_0x280ced[_0x5da277(0x27a)][_0x5da277(0x270)]=_0x52a60a,_0x52a60a?_0x280ced[_0x5da277(0x273)][_0x5da277(0x225)]():_0x280ced[_0x5da277(0x273)][_0x5da277(0x255)]();}[_0x5954e3(0x1ff)](){const _0x4e55e0=_0x5954e3,{balloonView:_0x16e772,buttonView:_0x68b4bf,hideMethod:_0xce3754}=this[_0x4e55e0(0x226)];_0x24dd19({'emitter':_0x16e772,'contextElements':[_0x16e772[_0x4e55e0(0x202)],_0x68b4bf[_0x4e55e0(0x202)]],'callback':()=>{_0xce3754();},'activator':()=>_0x68b4bf[_0x4e55e0(0x270)]&&!this[_0x4e55e0(0x219)][_0x4e55e0(0x245)]&&!this[_0x4e55e0(0x1f6)][_0x4e55e0(0x240)]()});}[_0x5954e3(0x257)](_0x4a6591,_0x39c838,_0x53b430=!0x1,_0x582913=!0x1){const _0x15ecec=_0x5954e3,_0x3bdd1f=_0x15ecec(0x254)===_0x39c838||!0x0===_0x4a6591[_0x15ecec(0x215)],_0x32633f=new _0x25e2d8(this[_0x15ecec(0x233)],_0x4a6591,_0x3bdd1f,_0x53b430,_0x582913);return _0x3bdd1f||_0x32633f['on'](_0x15ecec(0x20f),()=>{const _0x4c3827=_0x15ecec;this[_0x4c3827(0x227)](_0x4c3827(0x23d),_0x32633f['id']);}),_0x32633f;}[_0x5954e3(0x232)](_0x3525c1,_0x20fa59){const _0x3dad29=_0x5954e3;_0x20fa59[_0x3dad29(0x24c)](_0x3525c1,0x0);}[_0x5954e3(0x27c)](_0x5b378f,_0x1cb47b){const _0x10c420=_0x5954e3,_0x32e3b6=_0x1cb47b[_0x10c420(0x24d)](_0x46ec0d=>_0x46ec0d['id']===_0x5b378f);_0x32e3b6&&_0x1cb47b[_0x10c420(0x237)](_0x32e3b6);}[_0x5954e3(0x258)](){const _0x1b0f4e=_0x5954e3;this[_0x1b0f4e(0x220)][_0x1b0f4e(0x270)]?this[_0x1b0f4e(0x247)]():(this[_0x1b0f4e(0x228)](),this[_0x1b0f4e(0x259)][_0x1b0f4e(0x263)]({'target':this[_0x1b0f4e(0x220)][_0x1b0f4e(0x202)],'limiter':this[_0x1b0f4e(0x27b)](),'positions':Ho}));}[_0x5954e3(0x25e)](_0x485473){const _0x37712a=_0x5954e3;this[_0x37712a(0x1f7)][_0x37712a(0x201)](),this[_0x37712a(0x1fa)](),this[_0x37712a(0x227)](_0x37712a(0x222),_0x485473);}}export class SourcesBalloonButtonView extends _0x40dae2{[_0x5954e3(0x277)];constructor(_0x5b9f56){const _0xf530f0=_0x5954e3;super(_0x5b9f56),this[_0xf530f0(0x27d)]({'withText':!0x0,'role':_0xf530f0(0x1f8)}),this[_0xf530f0(0x277)]=this[_0xf530f0(0x1f2)](),this[_0xf530f0(0x22d)]({'attributes':{'class':[Ro]}});}[_0x5954e3(0x264)](){const _0x5b9a7e=_0x5954e3;super[_0x5b9a7e(0x264)](),this[_0x5b9a7e(0x204)][_0x5b9a7e(0x24c)](this[_0x5b9a7e(0x277)]);}[_0x5954e3(0x1f2)](){const _0x11163f=_0x5954e3,_0x1dedd6=new _0x543a0f();return _0x1dedd6[_0x11163f(0x217)]=_0x51f472,_0x1dedd6[_0x11163f(0x22d)]({'attributes':{'class':Ro+_0x11163f(0x25b)}}),_0x1dedd6;}}
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;}}