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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (295) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index-editor.css +105 -11
  3. package/dist/index.css +105 -11
  4. package/dist/index.js +4 -4
  5. package/dist/translations/af.js +1 -1
  6. package/dist/translations/af.umd.js +1 -1
  7. package/dist/translations/ar.js +1 -1
  8. package/dist/translations/ar.umd.js +1 -1
  9. package/dist/translations/ast.js +1 -1
  10. package/dist/translations/ast.umd.js +1 -1
  11. package/dist/translations/az.js +1 -1
  12. package/dist/translations/az.umd.js +1 -1
  13. package/dist/translations/be.js +1 -1
  14. package/dist/translations/be.umd.js +1 -1
  15. package/dist/translations/bg.js +1 -1
  16. package/dist/translations/bg.umd.js +1 -1
  17. package/dist/translations/bn.js +1 -1
  18. package/dist/translations/bn.umd.js +1 -1
  19. package/dist/translations/bs.js +1 -1
  20. package/dist/translations/bs.umd.js +1 -1
  21. package/dist/translations/ca.js +1 -1
  22. package/dist/translations/ca.umd.js +1 -1
  23. package/dist/translations/cs.js +1 -1
  24. package/dist/translations/cs.umd.js +1 -1
  25. package/dist/translations/da.js +1 -1
  26. package/dist/translations/da.umd.js +1 -1
  27. package/dist/translations/de-ch.js +1 -1
  28. package/dist/translations/de-ch.umd.js +1 -1
  29. package/dist/translations/de.js +1 -1
  30. package/dist/translations/de.umd.js +1 -1
  31. package/dist/translations/el.js +1 -1
  32. package/dist/translations/el.umd.js +1 -1
  33. package/dist/translations/en-au.js +1 -1
  34. package/dist/translations/en-au.umd.js +1 -1
  35. package/dist/translations/en-gb.js +1 -1
  36. package/dist/translations/en-gb.umd.js +1 -1
  37. package/dist/translations/en.js +1 -1
  38. package/dist/translations/en.umd.js +1 -1
  39. package/dist/translations/eo.js +1 -1
  40. package/dist/translations/eo.umd.js +1 -1
  41. package/dist/translations/es-co.js +1 -1
  42. package/dist/translations/es-co.umd.js +1 -1
  43. package/dist/translations/es.js +1 -1
  44. package/dist/translations/es.umd.js +1 -1
  45. package/dist/translations/et.js +1 -1
  46. package/dist/translations/et.umd.js +1 -1
  47. package/dist/translations/eu.js +1 -1
  48. package/dist/translations/eu.umd.js +1 -1
  49. package/dist/translations/fa.js +1 -1
  50. package/dist/translations/fa.umd.js +1 -1
  51. package/dist/translations/fi.js +1 -1
  52. package/dist/translations/fi.umd.js +1 -1
  53. package/dist/translations/fr.js +1 -1
  54. package/dist/translations/fr.umd.js +1 -1
  55. package/dist/translations/gl.js +1 -1
  56. package/dist/translations/gl.umd.js +1 -1
  57. package/dist/translations/gu.js +1 -1
  58. package/dist/translations/gu.umd.js +1 -1
  59. package/dist/translations/he.js +1 -1
  60. package/dist/translations/he.umd.js +1 -1
  61. package/dist/translations/hi.js +1 -1
  62. package/dist/translations/hi.umd.js +1 -1
  63. package/dist/translations/hr.js +1 -1
  64. package/dist/translations/hr.umd.js +1 -1
  65. package/dist/translations/hu.js +1 -1
  66. package/dist/translations/hu.umd.js +1 -1
  67. package/dist/translations/hy.js +1 -1
  68. package/dist/translations/hy.umd.js +1 -1
  69. package/dist/translations/id.js +1 -1
  70. package/dist/translations/id.umd.js +1 -1
  71. package/dist/translations/it.js +1 -1
  72. package/dist/translations/it.umd.js +1 -1
  73. package/dist/translations/ja.js +1 -1
  74. package/dist/translations/ja.umd.js +1 -1
  75. package/dist/translations/jv.js +1 -1
  76. package/dist/translations/jv.umd.js +1 -1
  77. package/dist/translations/kk.js +1 -1
  78. package/dist/translations/kk.umd.js +1 -1
  79. package/dist/translations/km.js +1 -1
  80. package/dist/translations/km.umd.js +1 -1
  81. package/dist/translations/kn.js +1 -1
  82. package/dist/translations/kn.umd.js +1 -1
  83. package/dist/translations/ko.js +1 -1
  84. package/dist/translations/ko.umd.js +1 -1
  85. package/dist/translations/ku.js +1 -1
  86. package/dist/translations/ku.umd.js +1 -1
  87. package/dist/translations/lt.js +1 -1
  88. package/dist/translations/lt.umd.js +1 -1
  89. package/dist/translations/lv.js +1 -1
  90. package/dist/translations/lv.umd.js +1 -1
  91. package/dist/translations/ms.js +1 -1
  92. package/dist/translations/ms.umd.js +1 -1
  93. package/dist/translations/nb.js +1 -1
  94. package/dist/translations/nb.umd.js +1 -1
  95. package/dist/translations/ne.js +1 -1
  96. package/dist/translations/ne.umd.js +1 -1
  97. package/dist/translations/nl.js +1 -1
  98. package/dist/translations/nl.umd.js +1 -1
  99. package/dist/translations/no.js +1 -1
  100. package/dist/translations/no.umd.js +1 -1
  101. package/dist/translations/oc.js +1 -1
  102. package/dist/translations/oc.umd.js +1 -1
  103. package/dist/translations/pl.js +1 -1
  104. package/dist/translations/pl.umd.js +1 -1
  105. package/dist/translations/pt-br.js +1 -1
  106. package/dist/translations/pt-br.umd.js +1 -1
  107. package/dist/translations/pt.js +1 -1
  108. package/dist/translations/pt.umd.js +1 -1
  109. package/dist/translations/ro.js +1 -1
  110. package/dist/translations/ro.umd.js +1 -1
  111. package/dist/translations/ru.js +1 -1
  112. package/dist/translations/ru.umd.js +1 -1
  113. package/dist/translations/si.js +1 -1
  114. package/dist/translations/si.umd.js +1 -1
  115. package/dist/translations/sk.js +1 -1
  116. package/dist/translations/sk.umd.js +1 -1
  117. package/dist/translations/sl.js +1 -1
  118. package/dist/translations/sl.umd.js +1 -1
  119. package/dist/translations/sq.js +1 -1
  120. package/dist/translations/sq.umd.js +1 -1
  121. package/dist/translations/sr-latn.js +1 -1
  122. package/dist/translations/sr-latn.umd.js +1 -1
  123. package/dist/translations/sr.js +1 -1
  124. package/dist/translations/sr.umd.js +1 -1
  125. package/dist/translations/sv.js +1 -1
  126. package/dist/translations/sv.umd.js +1 -1
  127. package/dist/translations/th.js +1 -1
  128. package/dist/translations/th.umd.js +1 -1
  129. package/dist/translations/ti.js +1 -1
  130. package/dist/translations/ti.umd.js +1 -1
  131. package/dist/translations/tk.js +1 -1
  132. package/dist/translations/tk.umd.js +1 -1
  133. package/dist/translations/tr.js +1 -1
  134. package/dist/translations/tr.umd.js +1 -1
  135. package/dist/translations/tt.js +1 -1
  136. package/dist/translations/tt.umd.js +1 -1
  137. package/dist/translations/ug.js +1 -1
  138. package/dist/translations/ug.umd.js +1 -1
  139. package/dist/translations/uk.js +1 -1
  140. package/dist/translations/uk.umd.js +1 -1
  141. package/dist/translations/ur.js +1 -1
  142. package/dist/translations/ur.umd.js +1 -1
  143. package/dist/translations/uz.js +1 -1
  144. package/dist/translations/uz.umd.js +1 -1
  145. package/dist/translations/vi.js +1 -1
  146. package/dist/translations/vi.umd.js +1 -1
  147. package/dist/translations/zh-cn.js +1 -1
  148. package/dist/translations/zh-cn.umd.js +1 -1
  149. package/dist/translations/zh.js +1 -1
  150. package/dist/translations/zh.umd.js +1 -1
  151. package/lang/contexts.json +1 -0
  152. package/package.json +15 -15
  153. package/src/aiactions/aiactions.js +1 -1
  154. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  155. package/src/aiactions/model/aiactionsreply.js +1 -1
  156. package/src/aiassistant/adapters/aiadapter.js +1 -1
  157. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  158. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  159. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  160. package/src/aiassistant/aiassistant.js +1 -1
  161. package/src/aiassistant/aiassistantediting.js +1 -1
  162. package/src/aiassistant/aiassistantui.js +1 -1
  163. package/src/aiassistant/legacyerrors.js +1 -1
  164. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  165. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  166. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  167. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  168. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  169. package/src/aiassistant/ui/form/aiformview.js +1 -1
  170. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  171. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  172. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  173. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  174. package/src/aiassistant/utils/common-translations.js +1 -1
  175. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  176. package/src/aiballoon/aiballoon.js +1 -1
  177. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  178. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  179. package/src/aiballoon/ui/aiballoonview.js +1 -1
  180. package/src/aichat/aichat.js +1 -1
  181. package/src/aichat/aichatcontroller.js +1 -1
  182. package/src/aichat/aichatui.js +1 -1
  183. package/src/aichat/model/aichatcontext.js +1 -1
  184. package/src/aichat/model/aichatconversation.js +1 -1
  185. package/src/aichat/model/aichatinteraction.js +1 -1
  186. package/src/aichat/model/aichatmodels.js +1 -1
  187. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  188. package/src/aichat/ui/aichatfeedview.js +1 -1
  189. package/src/aichat/ui/aichatheaderview.js +1 -1
  190. package/src/aichat/ui/aichatview.js +1 -1
  191. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  192. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  193. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  194. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  195. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  196. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  197. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  198. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  199. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  200. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  201. package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
  202. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  203. package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
  204. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  205. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  206. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  207. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  208. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  209. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  210. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  211. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  212. package/src/aichat/utils/eventnames.js +1 -1
  213. package/src/aichat/utils/promisequeue.js +1 -1
  214. package/src/aichat/utils/scrollmanager.js +1 -1
  215. package/src/aichathistory/aichathistory.js +1 -1
  216. package/src/aichathistory/aichathistorycontroller.js +1 -1
  217. package/src/aichathistory/aichathistoryui.js +1 -1
  218. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  219. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  220. package/src/aichathistory/ui/aichathistorylistitemview.js +1 -1
  221. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  222. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  223. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  224. package/src/aiconfig.d.ts +11 -0
  225. package/src/aicore/aiconnector.js +1 -1
  226. package/src/aicore/aiediting.js +1 -1
  227. package/src/aicore/model/aicapabilities.js +1 -1
  228. package/src/aicore/model/aicontext.js +1 -1
  229. package/src/aicore/model/aiinteraction.js +1 -1
  230. package/src/aicore/model/aireply.js +1 -1
  231. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  232. package/src/aicore/pipeline/airesponseparser.js +2 -2
  233. package/src/aicore/ui/aidisclaimerview.js +1 -1
  234. package/src/aicore/ui/aiskeleton.js +1 -1
  235. package/src/aicore/ui/aispinner.js +1 -1
  236. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  237. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  238. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.d.ts +1 -1
  239. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  240. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  241. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  242. package/src/aicore/utils/common-translations.js +1 -1
  243. package/src/aicore/utils/createresizebutton.js +1 -1
  244. package/src/aicore/utils/documentposition.js +1 -1
  245. package/src/aicore/utils/documentrange.js +1 -1
  246. package/src/aicore/utils/eventnames.js +1 -1
  247. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  248. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  249. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  250. package/src/aicore/utils/htmlparser.js +1 -1
  251. package/src/aicore/utils/htmlstreamer.js +1 -1
  252. package/src/aiquickactions/aiquickactions.js +1 -1
  253. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  254. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  255. package/src/aiquickactions/aiquickactionsui.js +1 -1
  256. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  257. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  258. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  259. package/src/aiquickactions/utils/common-translations.js +1 -1
  260. package/src/aireviewmode/aireviewmode.js +1 -1
  261. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  262. package/src/aireviewmode/aireviewmodeediting.d.ts +1 -1
  263. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  264. package/src/aireviewmode/aireviewmodeui.d.ts +1 -1
  265. package/src/aireviewmode/aireviewmodeui.js +1 -1
  266. package/src/aireviewmode/model/aireviewcheck.js +1 -1
  267. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  268. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  269. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  270. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  271. package/src/aireviewmode/model/aireviewcheckrun.d.ts +1 -0
  272. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  273. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  274. package/src/aireviewmode/model/aireviewmodels.js +1 -1
  275. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  276. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  277. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  278. package/src/aireviewmode/ui/aireviewmodecustomcheckview.d.ts +4 -0
  279. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  280. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  281. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  282. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  283. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  284. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  285. package/src/aireviewmode/ui/form/aireviewmodeformamanager.js +1 -1
  286. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  287. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  288. package/src/aireviewmode/utils/common-translations.js +1 -1
  289. package/src/aitabs/aitabs.js +1 -1
  290. package/src/aitabs/aitabsmainview.js +1 -1
  291. package/src/aitabs/tabs/aitabsview.js +1 -1
  292. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  293. package/src/aitabs/tabs/tabpanelview.js +1 -1
  294. package/src/index.js +1 -1
  295. package/theme/aireviewmode/aireviewmode-check-list.css +112 -11
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x393d38=_0x13c1;(function(_0x3e9626,_0x3ce4a1){const _0x473f3d=_0x13c1,_0x1bed0f=_0x3e9626();while(!![]){try{const _0x23e662=parseInt(_0x473f3d(0x169))/0x1+parseInt(_0x473f3d(0x180))/0x2*(parseInt(_0x473f3d(0x16e))/0x3)+parseInt(_0x473f3d(0x144))/0x4*(-parseInt(_0x473f3d(0x14f))/0x5)+-parseInt(_0x473f3d(0x171))/0x6+-parseInt(_0x473f3d(0x162))/0x7+parseInt(_0x473f3d(0x170))/0x8*(parseInt(_0x473f3d(0x178))/0x9)+-parseInt(_0x473f3d(0x15d))/0xa;if(_0x23e662===_0x3ce4a1)break;else _0x1bed0f['push'](_0x1bed0f['shift']());}catch(_0x132289){_0x1bed0f['push'](_0x1bed0f['shift']());}}}(_0x1f11,0xc3cfc));import{clickOutsideHandler as _0x469e32,View as _0x53645f}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x39ec6b}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x13f221}from'./controls/aichatpromptcapabilitiesview.js';function _0x1f11(){const _0x31d94d=['_promptCapabilitiesView','ck-hidden','_handlePromptInputFocus','form','492957aGeIVC','setAddContextOptions','112GHThfU','477354zjrrel','removeContextItem','_shouldRestorePromptInputFocus','updateResourceState','isLoading','change:isLoading','setConversationContext','589086XtjnKf','populateSourceResourceBalloon','setReasoning','abortPromptStream','_createContextPanelView','focus','setWebSearch','clearConversationContextItems','16YwYAuC','ck-ai-chat-controls','220BzaeJS','div','delegate','sendUserMessage','setModel','resetMessageInput','_createLoaderView','clearPendingContextUI','setModelList','element','setPlaceholderText','20165bVczud','toggleReasoning','setInputPlaceholder','setContextItemLoading','closeSourceResourceBalloon','clearConversationContextUI','disableModelSelector','bindTemplate','enableModelSelector','selectModel','toggleWebSearch','reset','setIsUploadInProgress','focusPromptInput','20923200HyEgal','addContextItem','low','addContextButtonView','_createPromptCapabilitiesView','2091523QkXqqT','_createPromptInputView','_promptInputView','setTemplate','_loaderView','clearCurrentContextItems','_contextPanelView','1263619jBLEwv'];_0x1f11=function(){return _0x31d94d;};return _0x1f11();}import{AIChatContextPanelView as _0x3badc1,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x3da139}from'./controls/aichatcontextpanelview.js';function _0x13c1(_0x3339c,_0x2ea74d){const _0x1f11ab=_0x1f11();return _0x13c1=function(_0x13c1d,_0x2824aa){_0x13c1d=_0x13c1d-0x143;let _0x542a17=_0x1f11ab[_0x13c1d];return _0x542a17;},_0x13c1(_0x3339c,_0x2ea74d);}import{AIChatControlsLoaderView as _0x210523}from'./controls/aichatcontrolsloaderview.js';export class AIChatControlsView extends _0x53645f{[_0x393d38(0x168)];[_0x393d38(0x164)];[_0x393d38(0x16a)];[_0x393d38(0x166)];[_0x393d38(0x173)];constructor(_0x3c3e34,_0x40790f){const _0x33d73c=_0x393d38;super(_0x3c3e34),this[_0x33d73c(0x168)]=this[_0x33d73c(0x17c)](_0x3c3e34,_0x40790f),this[_0x33d73c(0x164)]=this[_0x33d73c(0x163)](_0x3c3e34),this[_0x33d73c(0x16a)]=this[_0x33d73c(0x161)](_0x3c3e34),this[_0x33d73c(0x166)]=this[_0x33d73c(0x14a)](_0x3c3e34),this[_0x33d73c(0x173)]=!0x1,this[_0x33d73c(0x164)][_0x33d73c(0x146)](_0x33d73c(0x147))['to'](this),this[_0x33d73c(0x166)][_0x33d73c(0x146)](_0x33d73c(0x17b))['to'](this),this[_0x33d73c(0x16a)][_0x33d73c(0x146)](_0x33d73c(0x159))['to'](this),this[_0x33d73c(0x16a)][_0x33d73c(0x146)](_0x33d73c(0x150))['to'](this),this[_0x33d73c(0x16a)][_0x33d73c(0x146)](_0x33d73c(0x158))['to'](this),this[_0x33d73c(0x168)][_0x33d73c(0x146)](..._0x3da139)['to'](this);const _0xa8a2a=this[_0x33d73c(0x156)];this[_0x33d73c(0x165)]({'tag':_0x33d73c(0x16d),'attributes':{'class':['ck',_0x33d73c(0x143)]},'children':[{'tag':_0x33d73c(0x145),'attributes':{'class':[_0xa8a2a['if'](_0x33d73c(0x175),_0x33d73c(0x16b))]},'children':[this[_0x33d73c(0x168)],this[_0x33d73c(0x164)],this[_0x33d73c(0x16a)]]},{'tag':_0x33d73c(0x145),'attributes':{'class':[_0xa8a2a['if'](_0x33d73c(0x175),_0x33d73c(0x16b),_0x5c46be=>!_0x5c46be)]},'children':[this[_0x33d73c(0x166)]]}]}),_0x469e32({'emitter':this[_0x33d73c(0x164)],'activator':()=>this[_0x33d73c(0x175)],'contextElements':()=>[this[_0x33d73c(0x14d)]],'callback':()=>{const _0x4b45dd=_0x33d73c;this[_0x4b45dd(0x173)]=!0x1;}}),this['on'](_0x33d73c(0x176),this[_0x33d73c(0x16c)],{'priority':_0x33d73c(0x15f)});}[_0x393d38(0x17c)](_0x140797,_0x4c615a){return new _0x3badc1(_0x140797,_0x4c615a);}[_0x393d38(0x163)](_0x454fa4){const _0x2488dd=_0x393d38;return new _0x39ec6b(_0x454fa4,this[_0x2488dd(0x168)][_0x2488dd(0x160)]);}[_0x393d38(0x161)](_0x1bb110){return new _0x13f221(_0x1bb110);}[_0x393d38(0x14a)](_0x1d3e43){return new _0x210523(_0x1d3e43);}[_0x393d38(0x16c)](_0x57d5aa,_0x2a034d,_0x454a26){const _0x4ed2f3=_0x393d38;_0x454a26?this[_0x4ed2f3(0x173)]=!0x0:this[_0x4ed2f3(0x173)]&&this[_0x4ed2f3(0x164)][_0x4ed2f3(0x17d)]();}[_0x393d38(0x15e)](_0x4cce97,_0x550833){const _0x5f4c1c=_0x393d38;this[_0x5f4c1c(0x168)][_0x5f4c1c(0x15e)](_0x4cce97,_0x550833);}[_0x393d38(0x172)](_0x5d0e6){const _0x55a727=_0x393d38;this[_0x55a727(0x168)][_0x55a727(0x172)](_0x5d0e6);}[_0x393d38(0x152)](_0x58208e,_0x105443){const _0x59ee50=_0x393d38;this[_0x59ee50(0x168)][_0x59ee50(0x152)](_0x58208e,_0x105443);}[_0x393d38(0x15b)](_0x3e3d24){const _0xe3356b=_0x393d38;this[_0xe3356b(0x164)][_0xe3356b(0x15b)](_0x3e3d24);}[_0x393d38(0x177)](_0x384a9d){const _0xdbd22a=_0x393d38;this[_0xdbd22a(0x168)][_0xdbd22a(0x177)](_0x384a9d);}[_0x393d38(0x14b)](){const _0x5c838b=_0x393d38;this[_0x5c838b(0x168)][_0x5c838b(0x167)]();}[_0x393d38(0x154)](){const _0x445624=_0x393d38;this[_0x445624(0x168)][_0x445624(0x17f)]();}[_0x393d38(0x174)](_0x25c139,_0x3d4f76,_0x49decd){const _0x43f645=_0x393d38;this[_0x43f645(0x168)][_0x43f645(0x174)](_0x25c139,_0x3d4f76,_0x49decd);}[_0x393d38(0x17e)](_0x3d4c6f){const _0x4c7c93=_0x393d38;this[_0x4c7c93(0x16a)][_0x4c7c93(0x17e)](_0x3d4c6f);}[_0x393d38(0x17a)](_0x29950e){const _0x12c723=_0x393d38;this[_0x12c723(0x16a)][_0x12c723(0x17a)](_0x29950e);}[_0x393d38(0x149)](){const _0xda3ebc=_0x393d38;this[_0xda3ebc(0x164)][_0xda3ebc(0x15a)]();}[_0x393d38(0x16f)](_0x4f0517){const _0x24b09c=_0x393d38;this[_0x24b09c(0x168)][_0x24b09c(0x16f)](_0x4f0517);}[_0x393d38(0x151)](_0xffdef){const _0x19f6f4=_0x393d38;this[_0x19f6f4(0x164)][_0x19f6f4(0x14e)](_0xffdef);}[_0x393d38(0x14c)](_0x2fa087,_0x8b2401){const _0x2ad966=_0x393d38;this[_0x2ad966(0x16a)][_0x2ad966(0x14c)](_0x2fa087,_0x8b2401);}[_0x393d38(0x148)](_0x43c567){const _0x48e83c=_0x393d38;this[_0x48e83c(0x16a)][_0x48e83c(0x148)](_0x43c567);}[_0x393d38(0x157)](){const _0x322d64=_0x393d38;this[_0x322d64(0x16a)][_0x322d64(0x157)]();}[_0x393d38(0x155)](_0x5b9e33){const _0x4c6da8=_0x393d38;this[_0x4c6da8(0x16a)][_0x4c6da8(0x155)](_0x5b9e33);}[_0x393d38(0x179)](_0x2de7cc,_0x33c461,_0x212514,_0x72cb2b){const _0xbd16fe=_0x393d38;this[_0xbd16fe(0x168)][_0xbd16fe(0x179)](_0x2de7cc,_0x33c461,_0x212514,_0x72cb2b);}[_0x393d38(0x153)](_0x11020d){const _0x31c205=_0x393d38;this[_0x31c205(0x168)][_0x31c205(0x153)](_0x11020d);}[_0x393d38(0x15c)](){const _0x5af9e8=_0x393d38;this[_0x5af9e8(0x164)][_0x5af9e8(0x17d)]();}}
23
+ function _0x132e(_0xc9655c,_0x4145e4){const _0x413b78=_0x413b();return _0x132e=function(_0x132e78,_0x2bb0ab){_0x132e78=_0x132e78-0x1b4;let _0x7aab8b=_0x413b78[_0x132e78];return _0x7aab8b;},_0x132e(_0xc9655c,_0x4145e4);}const _0x4f094f=_0x132e;function _0x413b(){const _0x399253=['sendUserMessage','28507790bWUFbU','32LAsTGL','addContextButtonView','_createLoaderView','_createPromptCapabilitiesView','focusPromptInput','321211ZywmXr','disableModelSelector','closeSourceResourceBalloon','setWebSearch','form','focus','setContextItemLoading','element','_promptCapabilitiesView','clearPendingContextUI','clearConversationContextItems','enableModelSelector','210Rnmolr','bindTemplate','toggleReasoning','setReasoning','addContextItem','div','setInputPlaceholder','removeContextItem','_handlePromptInputFocus','_createPromptInputView','ck-hidden','isLoading','selectModel','populateSourceResourceBalloon','low','setTemplate','5143869ANRxHV','52IlJXZn','1234280oNTYVA','692258XaSmSL','clearConversationContextUI','_promptInputView','toggleWebSearch','resetMessageInput','_contextPanelView','clearCurrentContextItems','setModelList','_shouldRestorePromptInputFocus','updateResourceState','setPlaceholderText','setIsUploadInProgress','setConversationContext','delegate','105333sAIukS','setModel','_createContextPanelView','94135hlNdKf','change:isLoading','abortPromptStream','_loaderView','ck-ai-chat-controls','reset','setAddContextOptions'];_0x413b=function(){return _0x399253;};return _0x413b();}(function(_0x357682,_0x3018fb){const _0x30e859=_0x132e,_0x12547b=_0x357682();while(!![]){try{const _0x529af3=-parseInt(_0x30e859(0x1ce))/0x1+-parseInt(_0x30e859(0x1eb))/0x2*(parseInt(_0x30e859(0x1bd))/0x3)+-parseInt(_0x30e859(0x1ec))/0x4+parseInt(_0x30e859(0x1c0))/0x5*(-parseInt(_0x30e859(0x1da))/0x6)+-parseInt(_0x30e859(0x1ed))/0x7*(-parseInt(_0x30e859(0x1c9))/0x8)+-parseInt(_0x30e859(0x1ea))/0x9+parseInt(_0x30e859(0x1c8))/0xa;if(_0x529af3===_0x3018fb)break;else _0x12547b['push'](_0x12547b['shift']());}catch(_0xfd041a){_0x12547b['push'](_0x12547b['shift']());}}}(_0x413b,0x73872));import{clickOutsideHandler as _0x4d27e3,View as _0x41dc7d}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x2e9817}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x483a44}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x3f94c5,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x37e228}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x1e7103}from'./controls/aichatcontrolsloaderview.js';export class AIChatControlsView extends _0x41dc7d{[_0x4f094f(0x1b4)];[_0x4f094f(0x1ef)];[_0x4f094f(0x1d6)];[_0x4f094f(0x1c3)];[_0x4f094f(0x1b7)];constructor(_0x134c51,_0x5dee83){const _0x54d1bc=_0x4f094f;super(_0x134c51),this[_0x54d1bc(0x1b4)]=this[_0x54d1bc(0x1bf)](_0x134c51,_0x5dee83),this[_0x54d1bc(0x1ef)]=this[_0x54d1bc(0x1e3)](_0x134c51),this[_0x54d1bc(0x1d6)]=this[_0x54d1bc(0x1cc)](_0x134c51),this[_0x54d1bc(0x1c3)]=this[_0x54d1bc(0x1cb)](_0x134c51),this[_0x54d1bc(0x1b7)]=!0x1,this[_0x54d1bc(0x1ef)][_0x54d1bc(0x1bc)](_0x54d1bc(0x1c7))['to'](this),this[_0x54d1bc(0x1c3)][_0x54d1bc(0x1bc)](_0x54d1bc(0x1c2))['to'](this),this[_0x54d1bc(0x1d6)][_0x54d1bc(0x1bc)](_0x54d1bc(0x1f0))['to'](this),this[_0x54d1bc(0x1d6)][_0x54d1bc(0x1bc)](_0x54d1bc(0x1dc))['to'](this),this[_0x54d1bc(0x1d6)][_0x54d1bc(0x1bc)](_0x54d1bc(0x1e6))['to'](this),this[_0x54d1bc(0x1b4)][_0x54d1bc(0x1bc)](..._0x37e228)['to'](this);const _0x67b693=this[_0x54d1bc(0x1db)];this[_0x54d1bc(0x1e9)]({'tag':_0x54d1bc(0x1d2),'attributes':{'class':['ck',_0x54d1bc(0x1c4)]},'children':[{'tag':_0x54d1bc(0x1df),'attributes':{'class':[_0x67b693['if'](_0x54d1bc(0x1e5),_0x54d1bc(0x1e4))]},'children':[this[_0x54d1bc(0x1b4)],this[_0x54d1bc(0x1ef)],this[_0x54d1bc(0x1d6)]]},{'tag':_0x54d1bc(0x1df),'attributes':{'class':[_0x67b693['if'](_0x54d1bc(0x1e5),_0x54d1bc(0x1e4),_0x300b72=>!_0x300b72)]},'children':[this[_0x54d1bc(0x1c3)]]}]}),_0x4d27e3({'emitter':this[_0x54d1bc(0x1ef)],'activator':()=>this[_0x54d1bc(0x1e5)],'contextElements':()=>[this[_0x54d1bc(0x1d5)]],'callback':()=>{const _0x3eeeda=_0x54d1bc;this[_0x3eeeda(0x1b7)]=!0x1;}}),this['on'](_0x54d1bc(0x1c1),this[_0x54d1bc(0x1e2)],{'priority':_0x54d1bc(0x1e8)});}[_0x4f094f(0x1bf)](_0x2e934d,_0x91c8d0){return new _0x3f94c5(_0x2e934d,_0x91c8d0);}[_0x4f094f(0x1e3)](_0x4b142b){const _0xff6e28=_0x4f094f;return new _0x2e9817(_0x4b142b,this[_0xff6e28(0x1b4)][_0xff6e28(0x1ca)]);}[_0x4f094f(0x1cc)](_0x2810f5){return new _0x483a44(_0x2810f5);}[_0x4f094f(0x1cb)](_0x5a18bf){return new _0x1e7103(_0x5a18bf);}[_0x4f094f(0x1e2)](_0x174db0,_0x2e1d3a,_0x2f73b9){const _0x5a0176=_0x4f094f;_0x2f73b9?this[_0x5a0176(0x1b7)]=!0x0:this[_0x5a0176(0x1b7)]&&this[_0x5a0176(0x1ef)][_0x5a0176(0x1d3)]();}[_0x4f094f(0x1de)](_0x3e69f4,_0x67570e){const _0x52a676=_0x4f094f;this[_0x52a676(0x1b4)][_0x52a676(0x1de)](_0x3e69f4,_0x67570e);}[_0x4f094f(0x1e1)](_0x264170){const _0x16dbd9=_0x4f094f;this[_0x16dbd9(0x1b4)][_0x16dbd9(0x1e1)](_0x264170);}[_0x4f094f(0x1d4)](_0x1d75e2,_0xd7b540){const _0x2a09d3=_0x4f094f;this[_0x2a09d3(0x1b4)][_0x2a09d3(0x1d4)](_0x1d75e2,_0xd7b540);}[_0x4f094f(0x1ba)](_0x58579d){const _0x4c0e64=_0x4f094f;this[_0x4c0e64(0x1ef)][_0x4c0e64(0x1ba)](_0x58579d);}[_0x4f094f(0x1bb)](_0x4633fb){const _0x5ee38a=_0x4f094f;this[_0x5ee38a(0x1b4)][_0x5ee38a(0x1bb)](_0x4633fb);}[_0x4f094f(0x1d7)](){const _0x259350=_0x4f094f;this[_0x259350(0x1b4)][_0x259350(0x1b5)]();}[_0x4f094f(0x1ee)](){const _0x56476c=_0x4f094f;this[_0x56476c(0x1b4)][_0x56476c(0x1d8)]();}[_0x4f094f(0x1b8)](_0x59d502,_0x365a50,_0xf442ee){const _0x26d7d5=_0x4f094f;this[_0x26d7d5(0x1b4)][_0x26d7d5(0x1b8)](_0x59d502,_0x365a50,_0xf442ee);}[_0x4f094f(0x1d1)](_0x18eedc){const _0x35827f=_0x4f094f;this[_0x35827f(0x1d6)][_0x35827f(0x1d1)](_0x18eedc);}[_0x4f094f(0x1dd)](_0x49b4ef){const _0x3a67db=_0x4f094f;this[_0x3a67db(0x1d6)][_0x3a67db(0x1dd)](_0x49b4ef);}[_0x4f094f(0x1f1)](){const _0x4c9cfc=_0x4f094f;this[_0x4c9cfc(0x1ef)][_0x4c9cfc(0x1c5)]();}[_0x4f094f(0x1c6)](_0x417296){const _0x4bb37a=_0x4f094f;this[_0x4bb37a(0x1b4)][_0x4bb37a(0x1c6)](_0x417296);}[_0x4f094f(0x1e0)](_0x1ca5fc){const _0x40cfbe=_0x4f094f;this[_0x40cfbe(0x1ef)][_0x40cfbe(0x1b9)](_0x1ca5fc);}[_0x4f094f(0x1b6)](_0x3586f9,_0x10a564){const _0x2b8123=_0x4f094f;this[_0x2b8123(0x1d6)][_0x2b8123(0x1b6)](_0x3586f9,_0x10a564);}[_0x4f094f(0x1be)](_0x1988a1){const _0x52589e=_0x4f094f;this[_0x52589e(0x1d6)][_0x52589e(0x1be)](_0x1988a1);}[_0x4f094f(0x1d9)](){const _0x5380c9=_0x4f094f;this[_0x5380c9(0x1d6)][_0x5380c9(0x1d9)]();}[_0x4f094f(0x1cf)](_0x49f891){const _0x446687=_0x4f094f;this[_0x446687(0x1d6)][_0x446687(0x1cf)](_0x49f891);}[_0x4f094f(0x1e7)](_0x2733c1,_0x2e4962,_0xf746fb,_0x3f82c6){const _0xfe5f64=_0x4f094f;this[_0xfe5f64(0x1b4)][_0xfe5f64(0x1e7)](_0x2733c1,_0x2e4962,_0xf746fb,_0x3f82c6);}[_0x4f094f(0x1d0)](_0x2416f6){const _0x8fc1e3=_0x4f094f;this[_0x8fc1e3(0x1b4)][_0x8fc1e3(0x1d0)](_0x2416f6);}[_0x4f094f(0x1cd)](){const _0x4f9164=_0x4f094f;this[_0x4f9164(0x1ef)][_0x4f9164(0x1d3)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x4737(_0x54711e,_0x47c3bd){const _0x5ead8c=_0x5ead();return _0x4737=function(_0x4737fc,_0x2500fa){_0x4737fc=_0x4737fc-0x112;let _0x509559=_0x5ead8c[_0x4737fc];return _0x509559;},_0x4737(_0x54711e,_0x47c3bd);}const _0x46a822=_0x4737;(function(_0x19540d,_0x593ad7){const _0x1e3cff=_0x4737,_0x5c150b=_0x19540d();while(!![]){try{const _0x4ba439=parseInt(_0x1e3cff(0x130))/0x1+-parseInt(_0x1e3cff(0x13c))/0x2+parseInt(_0x1e3cff(0x159))/0x3+-parseInt(_0x1e3cff(0x129))/0x4*(parseInt(_0x1e3cff(0x125))/0x5)+-parseInt(_0x1e3cff(0x11e))/0x6*(parseInt(_0x1e3cff(0x154))/0x7)+parseInt(_0x1e3cff(0x12a))/0x8+parseInt(_0x1e3cff(0x116))/0x9*(-parseInt(_0x1e3cff(0x11d))/0xa);if(_0x4ba439===_0x593ad7)break;else _0x5c150b['push'](_0x5c150b['shift']());}catch(_0x4d50c1){_0x5c150b['push'](_0x5c150b['shift']());}}}(_0x5ead,0xd36c5));import{CKEditorError as _0x1da49c,logWarning as _0x194603,scrollViewportToShowTarget as _0x356a20}from'ckeditor5/src/utils.js';import{View as _0x31bfd2}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x8529a2}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x4b63b9}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x299ba5}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x5ef5b3}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x15caea}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x23a6d1}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x5a47a2}from'../utils/scrollmanager.js';import{AISkeletonView as _0x5af346,SKELETON_DEFINITIONS as _0xf9e360}from'../../aicore/ui/aiskeleton.js';function _0x5ead(){const _0x15a99e=['5352nBhrNY','updateSuggestionPartState','updateContent','map','add','_createTemplateChildren','includes','27425LeiOKQ','markItemAsDone','updateSources','addItem','20sHehoQ','7900808pwXDBe','startAutoScroll','ai-chat-feed-view-item-not-a-suggestion-item','start','updateSuggestionItem','updateReplyItem','1367517ngnkCR','ck-hidden','scrollManager','extendTemplate','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','ai-reply','element','ck-ai-chat__feed__items','ck-ai-chat__loader-text','loadingMessage','_bodyCollection','markAsDone','179430UUKzrg','getItemIds','toggleLoadingSkeleton','aiFeed','ai-suggestion-reply','interaction-header','ai-chat-feed-view-item-not-found','stop','delegate','removeItem','createCollection','stopAutoScroll','clear','find','bindTemplate','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','set','isLoadingSkeletonVisible','_createFeedItems','span','isVisible','_createLoaderChildren','destroy','render','966vWgyez','user-message','setLoadingMessage','isPending','getItemById','2571051YrRmUH','ck-ai-chat__feed','updatePartState','updateWebSources','options','ck-ai-chat__loader','setTemplate','div','_setupTemplate','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','children','getPartView','90SlTHmq','_createFeedLoader','remove','locale','scrollToSuggestion','ai-chat-feed-view-item-not-a-reply-item','_createSkeletonLoader','2105910uraoJf'];_0x5ead=function(){return _0x15a99e;};return _0x5ead();}import{AISpinnerView as _0x2f3429}from'../../aicore/ui/aispinner.js';export class AIChatFeedView extends _0x31bfd2{[_0x46a822(0x114)];[_0x46a822(0x132)];[_0x46a822(0x13a)];constructor(_0x307a7c,_0x193eef){const _0x34044d=_0x46a822;super(_0x307a7c),this[_0x34044d(0x13a)]=_0x193eef,this[_0x34044d(0x14c)](_0x34044d(0x157),!0x1),this[_0x34044d(0x14c)](_0x34044d(0x139),''),this[_0x34044d(0x14c)](_0x34044d(0x14d),!0x1),this[_0x34044d(0x114)]=this[_0x34044d(0x146)](),this[_0x34044d(0x114)][_0x34044d(0x144)](..._0x8529a2)['to'](this),this[_0x34044d(0x112)]();}[_0x46a822(0x153)](){const _0x532c95=_0x46a822;super[_0x532c95(0x153)](),this[_0x532c95(0x132)]=new _0x5a47a2(this[_0x532c95(0x136)]);}[_0x46a822(0x152)](){const _0x43b394=_0x46a822;super[_0x43b394(0x152)](),this[_0x43b394(0x132)][_0x43b394(0x152)]();}[_0x46a822(0x148)](){const _0x4269e7=_0x46a822;this[_0x4269e7(0x114)][_0x4269e7(0x148)]();}[_0x46a822(0x128)](_0x2afc54,_0x448dc2){const _0x21aca1=_0x46a822;let _0x208a82;_0x208a82=_0x21aca1(0x135)===_0x2afc54?new _0x299ba5(_0x448dc2):_0x21aca1(0x140)===_0x2afc54?new _0x4b63b9(this[_0x21aca1(0x119)],_0x448dc2):_0x21aca1(0x155)===_0x2afc54?new _0x5ef5b3(this[_0x21aca1(0x119)],_0x448dc2,this[_0x21aca1(0x13a)]):_0x21aca1(0x141)===_0x2afc54?new _0x23a6d1(this[_0x21aca1(0x119)],_0x448dc2):new _0x15caea(_0x448dc2),this[_0x21aca1(0x114)][_0x21aca1(0x122)](_0x208a82);}async[_0x46a822(0x12f)]({id:_0x52ff6a,parsedContent:_0x30449f,renderingStrategy:_0x35b6c3,abortSignal:_0xcc068e}){const _0x5b7735=_0x46a822,_0x5e4ebe=this[_0x5b7735(0x158)](_0x52ff6a);if(!(_0x5e4ebe instanceof _0x299ba5))throw new _0x1da49c(_0x5b7735(0x11b),null,{'itemView':_0x5e4ebe,'id':_0x52ff6a,'parsedContent':_0x30449f});await _0x5e4ebe[_0x5b7735(0x120)]({'parsedContent':_0x30449f,'renderingStrategy':_0x35b6c3,'abortSignal':_0xcc068e});}async[_0x46a822(0x15c)](_0x5aae00,_0x238630){const _0x52705b=_0x46a822,_0x1678ee=this[_0x52705b(0x158)](_0x5aae00);if(_0x1678ee instanceof _0x4b63b9)_0x1678ee[_0x52705b(0x127)](_0x238630);else{if(!(_0x1678ee instanceof _0x299ba5))throw new _0x1da49c(_0x52705b(0x134),null,{'itemView':_0x1678ee,'id':_0x5aae00,'sources':_0x238630});_0x1678ee[_0x52705b(0x127)](_0x238630);}}async[_0x46a822(0x12e)]({id:_0x523113,parts:_0x20b283,renderingStrategy:_0x400d93,abortSignal:_0x58ce9c}){const _0x1f4dc2=_0x46a822,_0x2e92ec=this[_0x1f4dc2(0x158)](_0x523113);if(!(_0x2e92ec instanceof _0x4b63b9))throw new _0x1da49c(_0x1f4dc2(0x12c),null,{'itemView':_0x2e92ec,'id':_0x523113,'parts':_0x20b283});await _0x2e92ec[_0x1f4dc2(0x120)]({'parts':_0x20b283,'renderingStrategy':_0x400d93,'abortSignal':_0x58ce9c});}[_0x46a822(0x11f)]({id:_0x1452be,index:_0xe7bb53,state:_0x599440}){const _0x11c9f0=_0x46a822,_0x2e8624=this[_0x11c9f0(0x158)](_0x1452be);if(!(_0x2e8624 instanceof _0x4b63b9))throw new _0x1da49c(_0x11c9f0(0x12c),this,{'id':_0x1452be});_0x2e8624[_0x11c9f0(0x15b)](_0xe7bb53,_0x599440);}[_0x46a822(0x126)](_0x3b8858){const _0x207d36=_0x46a822;this[_0x207d36(0x158)](_0x3b8858)[_0x207d36(0x13b)]();}[_0x46a822(0x13d)](){const _0x5aa7d6=_0x46a822;return this[_0x5aa7d6(0x114)][_0x5aa7d6(0x121)](_0x165395=>_0x165395[_0x5aa7d6(0x15d)]['id']);}[_0x46a822(0x145)](_0x5a93d0){const _0x34ec1f=_0x46a822;this[_0x34ec1f(0x114)][_0x34ec1f(0x118)](this[_0x34ec1f(0x158)](_0x5a93d0));}[_0x46a822(0x11a)](_0x401436,_0x21d69d){const _0x2f6588=_0x46a822,_0x678b0a=this[_0x2f6588(0x158)](_0x401436);if(!(_0x678b0a instanceof _0x4b63b9))return void _0x194603(_0x2f6588(0x113),{'replyId':_0x401436,'partIndex':_0x21d69d});const _0xf338da=_0x678b0a[_0x2f6588(0x115)](_0x21d69d);_0xf338da?_0x356a20({'target':_0xf338da[_0x2f6588(0x136)],'ancestorOffset':0x14,'alignToTop':!0x0,'forceScroll':!0x0}):_0x194603(_0x2f6588(0x14b),{'replyId':_0x401436,'partIndex':_0x21d69d});}[_0x46a822(0x112)](){const _0x278ecd=_0x46a822;this[_0x278ecd(0x15f)]({'tag':_0x278ecd(0x160),'attributes':{'class':['ck',_0x278ecd(0x15a)]},'children':this[_0x278ecd(0x123)]()});}[_0x46a822(0x123)](){const _0x104e40=_0x46a822,_0x1800cc=this[_0x104e40(0x11c)]();return[this[_0x104e40(0x14e)](),_0x1800cc,this[_0x104e40(0x117)]()];}[_0x46a822(0x11c)](){const _0x2e0dc8=_0x46a822,_0x546d08=new _0x5af346(this[_0x2e0dc8(0x119)],_0xf9e360[_0x2e0dc8(0x13f)]);return _0x546d08[_0x2e0dc8(0x133)]({'attributes':{'class':[this[_0x2e0dc8(0x14a)]['if'](_0x2e0dc8(0x14d),_0x2e0dc8(0x131),_0x19c2d7=>!_0x19c2d7)]}}),_0x546d08;}[_0x46a822(0x14e)](){const _0x1780c6=_0x46a822,_0x3cefde=new _0x31bfd2(this[_0x1780c6(0x119)]);return _0x3cefde[_0x1780c6(0x15f)]({'tag':_0x1780c6(0x160),'attributes':{'class':['ck',_0x1780c6(0x137),this[_0x1780c6(0x14a)]['if'](_0x1780c6(0x14d),_0x1780c6(0x131))]},'children':this[_0x1780c6(0x114)]}),_0x3cefde;}[_0x46a822(0x117)](){const _0x390a88=_0x46a822,_0x432bc1=new _0x31bfd2(this[_0x390a88(0x119)]);return _0x432bc1[_0x390a88(0x15f)]({'tag':_0x390a88(0x160),'attributes':{'class':['ck',_0x390a88(0x15e),this[_0x390a88(0x14a)]['if'](_0x390a88(0x157),_0x390a88(0x131),_0x3f5243=>!_0x3f5243)]},'children':this[_0x390a88(0x151)]()}),_0x432bc1;}[_0x46a822(0x151)](){const _0x40e857=_0x46a822,_0x4489ab=new _0x2f3429();return _0x4489ab[_0x40e857(0x150)]=!0x0,[_0x4489ab,{'tag':_0x40e857(0x14f),'attributes':{'class':['ck',_0x40e857(0x138)]},'children':[{'text':this[_0x40e857(0x14a)]['to'](_0x40e857(0x139))}]}];}[_0x46a822(0x158)](_0x36b535){const _0x1924be=_0x46a822,_0xb4c1f1=this[_0x1924be(0x114)][_0x1924be(0x149)](_0x10b7bb=>_0x10b7bb[_0x1924be(0x15d)]['id'][_0x1924be(0x124)](_0x36b535));if(!_0xb4c1f1)throw new _0x1da49c(_0x1924be(0x142),this,{'id':_0x36b535});return _0xb4c1f1;}[_0x46a822(0x156)](_0x14df50){const _0x131d0b=_0x46a822;this[_0x131d0b(0x14c)](_0x131d0b(0x139),_0x14df50);}[_0x46a822(0x13e)](_0x35b7d1){const _0x29700b=_0x46a822;this[_0x29700b(0x14c)](_0x29700b(0x14d),_0x35b7d1);}[_0x46a822(0x12b)](){const _0x4c9593=_0x46a822;this[_0x4c9593(0x132)][_0x4c9593(0x12d)]();}[_0x46a822(0x147)](){const _0x2acd8d=_0x46a822;this[_0x2acd8d(0x132)][_0x2acd8d(0x143)]();}}
23
+ const _0x4735fa=_0x8d8a;(function(_0x3715c8,_0x1968ab){const _0x456924=_0x8d8a,_0x3abe21=_0x3715c8();while(!![]){try{const _0x20a193=-parseInt(_0x456924(0xa7))/0x1*(parseInt(_0x456924(0xc6))/0x2)+-parseInt(_0x456924(0xd0))/0x3+-parseInt(_0x456924(0xd8))/0x4*(parseInt(_0x456924(0xde))/0x5)+-parseInt(_0x456924(0xb7))/0x6*(parseInt(_0x456924(0xd1))/0x7)+-parseInt(_0x456924(0xcb))/0x8+-parseInt(_0x456924(0xca))/0x9*(parseInt(_0x456924(0xe5))/0xa)+-parseInt(_0x456924(0xab))/0xb*(-parseInt(_0x456924(0xd2))/0xc);if(_0x20a193===_0x1968ab)break;else _0x3abe21['push'](_0x3abe21['shift']());}catch(_0x2133fb){_0x3abe21['push'](_0x3abe21['shift']());}}}(_0x49d1,0x41e41));import{CKEditorError as _0x2239e4,logWarning as _0x51f28f,scrollViewportToShowTarget as _0x3ee015}from'ckeditor5/src/utils.js';function _0x8d8a(_0x2b38c2,_0xe7eda6){const _0x49d1f7=_0x49d1();return _0x8d8a=function(_0x8d8ad1,_0x1de524){_0x8d8ad1=_0x8d8ad1-0xa2;let _0x4208fc=_0x49d1f7[_0x8d8ad1];return _0x4208fc;},_0x8d8a(_0x2b38c2,_0xe7eda6);}import{View as _0x99fc4d}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x1b82df}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x53b9f4}from'./feed/aichatfeedsuggestionitemview.js';function _0x49d1(){const _0x566418=['isVisible','188170HdeIdm','ai-chat-feed-view-item-not-a-reply-item','startAutoScroll','getItemIds','_createTemplateChildren','ck-ai-chat__loader','bindTemplate','addItem','ai-suggestion-reply','span','_createLoaderChildren','setTemplate','start','locale','updateWebSources','scrollManager','stop','_createFeedItems','set','77SULhNd','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','loadingMessage','delegate','11806454cvDcLz','isPending','ai-reply','removeItem','_bodyCollection','getPartView','interaction-header','ai-chat-feed-view-item-not-a-suggestion-item','isLoadingSkeletonVisible','remove','children','_setupTemplate','6YvixoA','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','includes','ck-ai-chat__loader-text','updatePartState','options','getItemById','updateSuggestionPartState','extendTemplate','ck-ai-chat__feed__items','updateReplyItem','updateContent','ai-chat-feed-view-item-not-found','find','ck-hidden','394wCDrVD','toggleLoadingSkeleton','add','_createSkeletonLoader','9VJCRvs','2735192ruEtUa','markAsDone','updateSuggestionItem','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','aiFeed','317088KROAXj','2089178UybRsd','12idwNRc','clear','setLoadingMessage','stopAutoScroll','destroy','render','18712jeVZRp','scrollToSuggestion','div','ck-ai-chat__feed','map','createCollection','25FYFaUt','updateSources','user-message','markItemAsDone','element','_createFeedLoader'];_0x49d1=function(){return _0x566418;};return _0x49d1();}import{AIChatFeedReplyItemView as _0x509064}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x3b59ca}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x4f8506}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x3966ea}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x388c35}from'../utils/scrollmanager.js';import{AISkeletonView as _0x280495,SKELETON_DEFINITIONS as _0x30469a}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x4908e5}from'../../aicore/ui/aispinner.js';export class AIChatFeedView extends _0x99fc4d{[_0x4735fa(0xb5)];[_0x4735fa(0xa3)];[_0x4735fa(0xaf)];constructor(_0x1e8e68,_0x7ff7b8){const _0x5f2f53=_0x4735fa;super(_0x1e8e68),this[_0x5f2f53(0xaf)]=_0x7ff7b8,this[_0x5f2f53(0xa6)](_0x5f2f53(0xac),!0x1),this[_0x5f2f53(0xa6)](_0x5f2f53(0xa9),''),this[_0x5f2f53(0xa6)](_0x5f2f53(0xb3),!0x1),this[_0x5f2f53(0xb5)]=this[_0x5f2f53(0xdd)](),this[_0x5f2f53(0xb5)][_0x5f2f53(0xaa)](..._0x1b82df)['to'](this),this[_0x5f2f53(0xb6)]();}[_0x4735fa(0xd7)](){const _0x4902e9=_0x4735fa;super[_0x4902e9(0xd7)](),this[_0x4902e9(0xa3)]=new _0x388c35(this[_0x4902e9(0xe2)]);}[_0x4735fa(0xd6)](){const _0x16fdce=_0x4735fa;super[_0x16fdce(0xd6)](),this[_0x16fdce(0xa3)][_0x16fdce(0xd6)]();}[_0x4735fa(0xd3)](){const _0x3ec6ab=_0x4735fa;this[_0x3ec6ab(0xb5)][_0x3ec6ab(0xd3)]();}[_0x4735fa(0xec)](_0x24fc4b,_0x8e7233){const _0xc987a4=_0x4735fa;let _0x589ce8;_0x589ce8=_0xc987a4(0xad)===_0x24fc4b?new _0x509064(_0x8e7233):_0xc987a4(0xed)===_0x24fc4b?new _0x53b9f4(this[_0xc987a4(0xf2)],_0x8e7233):_0xc987a4(0xe0)===_0x24fc4b?new _0x3b59ca(this[_0xc987a4(0xf2)],_0x8e7233,this[_0xc987a4(0xaf)]):_0xc987a4(0xb1)===_0x24fc4b?new _0x3966ea(this[_0xc987a4(0xf2)],_0x8e7233):new _0x4f8506(_0x8e7233),this[_0xc987a4(0xb5)][_0xc987a4(0xc8)](_0x589ce8);}async[_0x4735fa(0xc1)]({id:_0x2e306c,parsedContent:_0x20b4d,renderingStrategy:_0x54841a,abortSignal:_0x417879}){const _0x7e1c1a=_0x4735fa,_0x9fc2a0=this[_0x7e1c1a(0xbd)](_0x2e306c);if(!(_0x9fc2a0 instanceof _0x509064))throw new _0x2239e4(_0x7e1c1a(0xe6),null,{'itemView':_0x9fc2a0,'id':_0x2e306c,'parsedContent':_0x20b4d});await _0x9fc2a0[_0x7e1c1a(0xc2)]({'parsedContent':_0x20b4d,'renderingStrategy':_0x54841a,'abortSignal':_0x417879});}async[_0x4735fa(0xa2)](_0x4b3f5f,_0x3bfe1d){const _0x2d9b3b=_0x4735fa,_0x42d569=this[_0x2d9b3b(0xbd)](_0x4b3f5f);if(_0x42d569 instanceof _0x53b9f4)_0x42d569[_0x2d9b3b(0xdf)](_0x3bfe1d);else{if(!(_0x42d569 instanceof _0x509064))throw new _0x2239e4(_0x2d9b3b(0xce),null,{'itemView':_0x42d569,'id':_0x4b3f5f,'sources':_0x3bfe1d});_0x42d569[_0x2d9b3b(0xdf)](_0x3bfe1d);}}async[_0x4735fa(0xcd)]({id:_0x3ecabd,parts:_0x11bf8f,renderingStrategy:_0x381e0e,abortSignal:_0x4cb70b}){const _0x40688c=_0x4735fa,_0x5cfdcd=this[_0x40688c(0xbd)](_0x3ecabd);if(!(_0x5cfdcd instanceof _0x53b9f4))throw new _0x2239e4(_0x40688c(0xb2),null,{'itemView':_0x5cfdcd,'id':_0x3ecabd,'parts':_0x11bf8f});await _0x5cfdcd[_0x40688c(0xc2)]({'parts':_0x11bf8f,'renderingStrategy':_0x381e0e,'abortSignal':_0x4cb70b});}[_0x4735fa(0xbe)]({id:_0x91c5b5,index:_0x566a31,state:_0x3e1ce9}){const _0x5ea86e=_0x4735fa,_0x2f932a=this[_0x5ea86e(0xbd)](_0x91c5b5);if(!(_0x2f932a instanceof _0x53b9f4))throw new _0x2239e4(_0x5ea86e(0xb2),this,{'id':_0x91c5b5});_0x2f932a[_0x5ea86e(0xbb)](_0x566a31,_0x3e1ce9);}[_0x4735fa(0xe1)](_0x3c1e86){const _0x518770=_0x4735fa;this[_0x518770(0xbd)](_0x3c1e86)[_0x518770(0xcc)]();}[_0x4735fa(0xe8)](){const _0x5b4b37=_0x4735fa;return this[_0x5b4b37(0xb5)][_0x5b4b37(0xdc)](_0x32e6e1=>_0x32e6e1[_0x5b4b37(0xbc)]['id']);}[_0x4735fa(0xae)](_0x256d6e){const _0x5bfd5c=_0x4735fa;this[_0x5bfd5c(0xb5)][_0x5bfd5c(0xb4)](this[_0x5bfd5c(0xbd)](_0x256d6e));}[_0x4735fa(0xd9)](_0x2925b8,_0x8ce4df){const _0x58481e=_0x4735fa,_0x220c1a=this[_0x58481e(0xbd)](_0x2925b8);if(!(_0x220c1a instanceof _0x53b9f4))return void _0x51f28f(_0x58481e(0xa8),{'replyId':_0x2925b8,'partIndex':_0x8ce4df});const _0x108064=_0x220c1a[_0x58481e(0xb0)](_0x8ce4df);_0x108064?_0x3ee015({'target':_0x108064[_0x58481e(0xe2)],'ancestorOffset':0x14,'alignToTop':!0x0,'forceScroll':!0x0}):_0x51f28f(_0x58481e(0xb8),{'replyId':_0x2925b8,'partIndex':_0x8ce4df});}[_0x4735fa(0xb6)](){const _0x3707e4=_0x4735fa;this[_0x3707e4(0xf0)]({'tag':_0x3707e4(0xda),'attributes':{'class':['ck',_0x3707e4(0xdb)]},'children':this[_0x3707e4(0xe9)]()});}[_0x4735fa(0xe9)](){const _0x409159=_0x4735fa,_0x402540=this[_0x409159(0xc9)]();return[this[_0x409159(0xa5)](),_0x402540,this[_0x409159(0xe3)]()];}[_0x4735fa(0xc9)](){const _0x219446=_0x4735fa,_0x4efc56=new _0x280495(this[_0x219446(0xf2)],_0x30469a[_0x219446(0xcf)]);return _0x4efc56[_0x219446(0xbf)]({'attributes':{'class':[this[_0x219446(0xeb)]['if'](_0x219446(0xb3),_0x219446(0xc5),_0x309d1a=>!_0x309d1a)]}}),_0x4efc56;}[_0x4735fa(0xa5)](){const _0x308a7c=_0x4735fa,_0x39aba9=new _0x99fc4d(this[_0x308a7c(0xf2)]);return _0x39aba9[_0x308a7c(0xf0)]({'tag':_0x308a7c(0xda),'attributes':{'class':['ck',_0x308a7c(0xc0),this[_0x308a7c(0xeb)]['if'](_0x308a7c(0xb3),_0x308a7c(0xc5))]},'children':this[_0x308a7c(0xb5)]}),_0x39aba9;}[_0x4735fa(0xe3)](){const _0x5631bf=_0x4735fa,_0x3379c5=new _0x99fc4d(this[_0x5631bf(0xf2)]);return _0x3379c5[_0x5631bf(0xf0)]({'tag':_0x5631bf(0xda),'attributes':{'class':['ck',_0x5631bf(0xea),this[_0x5631bf(0xeb)]['if'](_0x5631bf(0xac),_0x5631bf(0xc5),_0x4b54e8=>!_0x4b54e8)]},'children':this[_0x5631bf(0xef)]()}),_0x3379c5;}[_0x4735fa(0xef)](){const _0x44a3c4=_0x4735fa,_0x5d05cd=new _0x4908e5();return _0x5d05cd[_0x44a3c4(0xe4)]=!0x0,[_0x5d05cd,{'tag':_0x44a3c4(0xee),'attributes':{'class':['ck',_0x44a3c4(0xba)]},'children':[{'text':this[_0x44a3c4(0xeb)]['to'](_0x44a3c4(0xa9))}]}];}[_0x4735fa(0xbd)](_0x561cbd){const _0x2c2854=_0x4735fa,_0x549fbb=this[_0x2c2854(0xb5)][_0x2c2854(0xc4)](_0xaf26cf=>_0xaf26cf[_0x2c2854(0xbc)]['id'][_0x2c2854(0xb9)](_0x561cbd));if(!_0x549fbb)throw new _0x2239e4(_0x2c2854(0xc3),this,{'id':_0x561cbd});return _0x549fbb;}[_0x4735fa(0xd4)](_0x353e50){const _0x14d2ba=_0x4735fa;this[_0x14d2ba(0xa6)](_0x14d2ba(0xa9),_0x353e50);}[_0x4735fa(0xc7)](_0x4a0f34){const _0x1802de=_0x4735fa;this[_0x1802de(0xa6)](_0x1802de(0xb3),_0x4a0f34);}[_0x4735fa(0xe7)](){const _0x52f617=_0x4735fa;this[_0x52f617(0xa3)][_0x52f617(0xf1)]();}[_0x4735fa(0xd5)](){const _0x587e65=_0x4735fa;this[_0x587e65(0xa3)][_0x587e65(0xa4)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x161b55=_0x1e24;function _0x1e24(_0x277e25,_0x2c5097){const _0x2b9ead=_0x2b9e();return _0x1e24=function(_0x1e2424,_0x44258c){_0x1e2424=_0x1e2424-0xd8;let _0x1243c5=_0x2b9ead[_0x1e2424];return _0x1243c5;},_0x1e24(_0x277e25,_0x2c5097);}(function(_0x4f6b62,_0x9d0037){const _0x9e072a=_0x1e24,_0x12243b=_0x4f6b62();while(!![]){try{const _0x518d7c=-parseInt(_0x9e072a(0xe1))/0x1+-parseInt(_0x9e072a(0xeb))/0x2*(-parseInt(_0x9e072a(0xdd))/0x3)+-parseInt(_0x9e072a(0xda))/0x4*(parseInt(_0x9e072a(0xd8))/0x5)+parseInt(_0x9e072a(0xe5))/0x6+parseInt(_0x9e072a(0xd9))/0x7+parseInt(_0x9e072a(0xed))/0x8+-parseInt(_0x9e072a(0xee))/0x9;if(_0x518d7c===_0x9d0037)break;else _0x12243b['push'](_0x12243b['shift']());}catch(_0x248449){_0x12243b['push'](_0x12243b['shift']());}}}(_0x2b9e,0xee133));import{ButtonView as _0x2a94ed,FormHeaderView as _0xf0ace}from'ckeditor5/src/ui.js';import{IconPlus as _0x1e30eb,IconAIChat as _0x236ec4}from'ckeditor5/src/icons.js';function _0x2b9e(){const _0x303a50=['132976sjARLi','ck-ai-header\x20ck-ai-header_chat','ck-ai-chat__start-conversation','execute','11529744XybrXI','add','isMaximized','children','AI_CHAT_HEADING','resizeButton','604652ALlplk','startConversation','2599800NyNJJA','40371651VmReVW','_createStartConversationButton','120UVuDpT','11897277tzdnef','27716uteADU','locale','fire','18LIRBtK','set','conversationStartButton','AI_CHAT_LABEL_NEW_CHAT'];_0x2b9e=function(){return _0x303a50;};return _0x2b9e();}import{getTranslation as _0x1f0520}from'../../aicore/utils/common-translations.js';import{createResizeButton as _0x5ead87}from'../../aicore/utils/createresizebutton.js';export class AIChatHeaderView extends _0xf0ace{[_0x161b55(0xdf)];[_0x161b55(0xea)];constructor(_0x3d8854,_0x1c31e4){const _0x531ae0=_0x161b55;super(_0x3d8854,{'label':_0x1f0520(_0x3d8854,_0x531ae0(0xe9)),'class':_0x531ae0(0xe2),'icon':_0x236ec4}),this[_0x531ae0(0xde)](_0x531ae0(0xe7),!0x1),this[_0x531ae0(0xdf)]=this[_0x531ae0(0xef)](_0x3d8854),this[_0x531ae0(0xe8)][_0x531ae0(0xe6)](this[_0x531ae0(0xdf)]),_0x1c31e4&&(this[_0x531ae0(0xea)]=_0x5ead87(_0x3d8854,this),this[_0x531ae0(0xe8)][_0x531ae0(0xe6)](this[_0x531ae0(0xea)]));}[_0x161b55(0xef)](_0x2e811f){const _0x5a610=_0x161b55,_0x59f68a=new _0x2a94ed(_0x2e811f);return _0x59f68a[_0x5a610(0xde)]({'label':_0x1f0520(this[_0x5a610(0xdb)],_0x5a610(0xe0)),'withText':!0x0,'icon':_0x1e30eb,'class':_0x5a610(0xe3)}),_0x59f68a['on'](_0x5a610(0xe4),()=>{const _0x100a53=_0x5a610;this[_0x100a53(0xdc)](_0x100a53(0xec));}),_0x59f68a;}}
23
+ const _0x4d9ebe=_0x168c;function _0x351c(){const _0x4a2416=['30jUfrcb','AI_CHAT_HEADING','ck-ai-header\x20ck-ai-header_chat','1773EsRBRJ','fire','1238784ObzNdk','startConversation','add','conversationStartButton','188596OUEDEB','24177caapnM','locale','_createStartConversationButton','120KIEiEg','isMaximized','ck-ai-chat__start-conversation','16AyLtXG','48IiOoSG','set','children','resizeButton','1658489XoPezg','execute','AI_CHAT_LABEL_NEW_CHAT','21950KOpmZK','430793Vjudpj','667645ssenhN'];_0x351c=function(){return _0x4a2416;};return _0x351c();}(function(_0x25ffd6,_0x5e0512){const _0x34729f=_0x168c,_0x59256c=_0x25ffd6();while(!![]){try{const _0x32d30d=-parseInt(_0x34729f(0x1be))/0x1+parseInt(_0x34729f(0x1b5))/0x2*(parseInt(_0x34729f(0x1c9))/0x3)+-parseInt(_0x34729f(0x1c8))/0x4*(parseInt(_0x34729f(0x1bf))/0x5)+-parseInt(_0x34729f(0x1c4))/0x6+-parseInt(_0x34729f(0x1b9))/0x7*(-parseInt(_0x34729f(0x1b4))/0x8)+parseInt(_0x34729f(0x1c2))/0x9*(parseInt(_0x34729f(0x1bc))/0xa)+parseInt(_0x34729f(0x1bd))/0xb*(parseInt(_0x34729f(0x1cc))/0xc);if(_0x32d30d===_0x5e0512)break;else _0x59256c['push'](_0x59256c['shift']());}catch(_0x409923){_0x59256c['push'](_0x59256c['shift']());}}}(_0x351c,0x519e8));import{ButtonView as _0x2f849b,FormHeaderView as _0x273e0e}from'ckeditor5/src/ui.js';import{IconPlus as _0x3fb06c,IconAIChat as _0x5a8eb0}from'ckeditor5/src/icons.js';import{getTranslation as _0x38b562}from'../../aicore/utils/common-translations.js';function _0x168c(_0x44432e,_0x437602){const _0x351c5f=_0x351c();return _0x168c=function(_0x168c67,_0x35bc42){_0x168c67=_0x168c67-0x1b3;let _0x2921a5=_0x351c5f[_0x168c67];return _0x2921a5;},_0x168c(_0x44432e,_0x437602);}import{createResizeButton as _0x3331c9}from'../../aicore/utils/createresizebutton.js';export class AIChatHeaderView extends _0x273e0e{[_0x4d9ebe(0x1c7)];[_0x4d9ebe(0x1b8)];constructor(_0x446619,_0x3fcd12){const _0x359ff6=_0x4d9ebe;super(_0x446619,{'label':_0x38b562(_0x446619,_0x359ff6(0x1c0)),'class':_0x359ff6(0x1c1),'icon':_0x5a8eb0}),this[_0x359ff6(0x1b6)](_0x359ff6(0x1cd),!0x1),this[_0x359ff6(0x1c7)]=this[_0x359ff6(0x1cb)](_0x446619),this[_0x359ff6(0x1b7)][_0x359ff6(0x1c6)](this[_0x359ff6(0x1c7)]),_0x3fcd12&&(this[_0x359ff6(0x1b8)]=_0x3331c9(_0x446619,this),this[_0x359ff6(0x1b7)][_0x359ff6(0x1c6)](this[_0x359ff6(0x1b8)]));}[_0x4d9ebe(0x1cb)](_0xc45d34){const _0x53a62f=_0x4d9ebe,_0x495edd=new _0x2f849b(_0xc45d34);return _0x495edd[_0x53a62f(0x1b6)]({'label':_0x38b562(this[_0x53a62f(0x1ca)],_0x53a62f(0x1bb)),'withText':!0x0,'icon':_0x3fb06c,'class':_0x53a62f(0x1b3)}),_0x495edd['on'](_0x53a62f(0x1ba),()=>{const _0x51a233=_0x53a62f;this[_0x51a233(0x1c3)](_0x51a233(0x1c5));}),_0x495edd;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x22eb44=_0x5bd6;(function(_0x7dd357,_0xfef7d7){var _0x33098c=_0x5bd6,_0x2093b2=_0x7dd357();while(!![]){try{var _0x3e4550=-parseInt(_0x33098c(0xa2))/0x1*(-parseInt(_0x33098c(0x95))/0x2)+parseInt(_0x33098c(0x90))/0x3*(-parseInt(_0x33098c(0x93))/0x4)+-parseInt(_0x33098c(0x9e))/0x5+parseInt(_0x33098c(0x8b))/0x6+-parseInt(_0x33098c(0x96))/0x7*(parseInt(_0x33098c(0x9b))/0x8)+parseInt(_0x33098c(0x9c))/0x9+parseInt(_0x33098c(0x8e))/0xa;if(_0x3e4550===_0xfef7d7)break;else _0x2093b2['push'](_0x2093b2['shift']());}catch(_0x923688){_0x2093b2['push'](_0x2093b2['shift']());}}}(_0x1cd3,0x821ce));import{View as _0x31b3b6,BodyCollection as _0x4b8750}from'ckeditor5/src/ui.js';function _0x1cd3(){var _0x1a18b6=['66682UZQFME','36190BKOdOY','ck-rounded-corners','div','ck-ai-chat','chatHeader','1016NojyyG','2966274cJkGJB','uiLanguageDirection','636085bECBxi','chatDisclaimer','_bodyCollection','destroy','29GzSfnd','chatControls','attachToDom','chatFeed','3383328OJfbzS','ck-reset_all','setTemplate','4126030jhSyNV','closeSourceResourceBalloon','3JHCzfO','detachFromDom','populateSourceResourceBalloon','3824868BaYoRf','delegate'];_0x1cd3=function(){return _0x1a18b6;};return _0x1cd3();}import{AI_CHAT_UI_EVENT_NAMES as _0x15a5eb}from'../utils/eventnames.js';function _0x5bd6(_0x10fe4b,_0x313792){var _0x1cd335=_0x1cd3();return _0x5bd6=function(_0x5bd65a,_0x2d5d68){_0x5bd65a=_0x5bd65a-0x89;var _0x3ce662=_0x1cd335[_0x5bd65a];return _0x3ce662;},_0x5bd6(_0x10fe4b,_0x313792);}import{AIChatFeedView as _0x833b79}from'./aichatfeedview.js';import{AIChatControlsView as _0x371674}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x2a6b42}from'./aichatheaderview.js';import{AIDisclaimerView as _0x317a45}from'../../aicore/ui/aidisclaimerview.js';export class AIChatView extends _0x31b3b6{[_0x22eb44(0x9a)];[_0x22eb44(0x8a)];[_0x22eb44(0xa3)];[_0x22eb44(0x9f)];[_0x22eb44(0xa0)];constructor(_0x2a3118,_0x5af588){var _0x13d6c=_0x22eb44;super(_0x2a3118),this[_0x13d6c(0xa0)]=new _0x4b8750(_0x2a3118),this[_0x13d6c(0xa0)][_0x13d6c(0x89)](),this[_0x13d6c(0x9a)]=new _0x2a6b42(_0x2a3118,_0x5af588),this[_0x13d6c(0x9a)][_0x13d6c(0x94)](..._0x15a5eb)['to'](this),this[_0x13d6c(0x8a)]=new _0x833b79(_0x2a3118,this[_0x13d6c(0xa0)]),this[_0x13d6c(0x8a)][_0x13d6c(0x94)](..._0x15a5eb)['to'](this),this[_0x13d6c(0xa3)]=new _0x371674(_0x2a3118,this[_0x13d6c(0xa0)]),this[_0x13d6c(0xa3)][_0x13d6c(0x94)](..._0x15a5eb)['to'](this),this[_0x13d6c(0x9f)]=new _0x317a45(_0x2a3118),this[_0x13d6c(0x8d)]({'tag':_0x13d6c(0x98),'attributes':{'class':['ck',_0x13d6c(0x8c),_0x13d6c(0x99),_0x13d6c(0x97)],'dir':_0x2a3118[_0x13d6c(0x9d)]},'children':[this[_0x13d6c(0x9a)],this[_0x13d6c(0x8a)],this[_0x13d6c(0xa3)],this[_0x13d6c(0x9f)]]});}[_0x22eb44(0x92)](_0x225a73,_0x4a8292,_0x940d4e,_0x551f31){var _0x2254e5=_0x22eb44;this[_0x2254e5(0xa3)][_0x2254e5(0x92)](_0x225a73,_0x4a8292,_0x940d4e,_0x551f31);}[_0x22eb44(0x8f)](_0x1e2633){var _0x1ee417=_0x22eb44;this[_0x1ee417(0xa3)][_0x1ee417(0x8f)](_0x1e2633);}[_0x22eb44(0xa1)](){var _0x530d9f=_0x22eb44;this[_0x530d9f(0xa0)][_0x530d9f(0x91)](),super[_0x530d9f(0xa1)]();}}
23
+ function _0x5ed0(){var _0x106659=['_bodyCollection','1565139hFIcBU','detachFromDom','3304KzvXdF','div','setTemplate','closeSourceResourceBalloon','ck-rounded-corners','chatHeader','destroy','2DTofOH','ck-reset_all','chatFeed','120686NNPIsc','delegate','3364695GcEOIi','ck-ai-chat','194260BnqnGx','385KgrpSK','1147165GxiKWL','4353400FqNlGm','chatDisclaimer','chatControls','populateSourceResourceBalloon','8PLTMyx','attachToDom','uiLanguageDirection','3732FNKuLh'];_0x5ed0=function(){return _0x106659;};return _0x5ed0();}var _0x5971e0=_0x1ce6;(function(_0xab0ee9,_0x4e59ec){var _0x37bd09=_0x1ce6,_0x402590=_0xab0ee9();while(!![]){try{var _0x315b15=-parseInt(_0x37bd09(0x93))/0x1+-parseInt(_0x37bd09(0x90))/0x2*(-parseInt(_0x37bd09(0x87))/0x3)+parseInt(_0x37bd09(0x82))/0x4*(parseInt(_0x37bd09(0x7d))/0x5)+parseInt(_0x37bd09(0x85))/0x6*(-parseInt(_0x37bd09(0x89))/0x7)+-parseInt(_0x37bd09(0x7e))/0x8+-parseInt(_0x37bd09(0x95))/0x9+-parseInt(_0x37bd09(0x97))/0xa*(-parseInt(_0x37bd09(0x7c))/0xb);if(_0x315b15===_0x4e59ec)break;else _0x402590['push'](_0x402590['shift']());}catch(_0x15b38d){_0x402590['push'](_0x402590['shift']());}}}(_0x5ed0,0x501fd));import{View as _0x45f1ea,BodyCollection as _0x38e94c}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x5d939e}from'../utils/eventnames.js';import{AIChatFeedView as _0x10fb45}from'./aichatfeedview.js';import{AIChatControlsView as _0x121c0b}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x24c51b}from'./aichatheaderview.js';import{AIDisclaimerView as _0x60b820}from'../../aicore/ui/aidisclaimerview.js';function _0x1ce6(_0x524898,_0x64d142){var _0x5ed0f8=_0x5ed0();return _0x1ce6=function(_0x1ce603,_0x45aee5){_0x1ce603=_0x1ce603-0x7c;var _0x136ed6=_0x5ed0f8[_0x1ce603];return _0x136ed6;},_0x1ce6(_0x524898,_0x64d142);}export class AIChatView extends _0x45f1ea{[_0x5971e0(0x8e)];[_0x5971e0(0x92)];[_0x5971e0(0x80)];[_0x5971e0(0x7f)];[_0x5971e0(0x86)];constructor(_0x3bfc75,_0x536452){var _0x46e439=_0x5971e0;super(_0x3bfc75),this[_0x46e439(0x86)]=new _0x38e94c(_0x3bfc75),this[_0x46e439(0x86)][_0x46e439(0x83)](),this[_0x46e439(0x8e)]=new _0x24c51b(_0x3bfc75,_0x536452),this[_0x46e439(0x8e)][_0x46e439(0x94)](..._0x5d939e)['to'](this),this[_0x46e439(0x92)]=new _0x10fb45(_0x3bfc75,this[_0x46e439(0x86)]),this[_0x46e439(0x92)][_0x46e439(0x94)](..._0x5d939e)['to'](this),this[_0x46e439(0x80)]=new _0x121c0b(_0x3bfc75,this[_0x46e439(0x86)]),this[_0x46e439(0x80)][_0x46e439(0x94)](..._0x5d939e)['to'](this),this[_0x46e439(0x7f)]=new _0x60b820(_0x3bfc75),this[_0x46e439(0x8b)]({'tag':_0x46e439(0x8a),'attributes':{'class':['ck',_0x46e439(0x91),_0x46e439(0x96),_0x46e439(0x8d)],'dir':_0x3bfc75[_0x46e439(0x84)]},'children':[this[_0x46e439(0x8e)],this[_0x46e439(0x92)],this[_0x46e439(0x80)],this[_0x46e439(0x7f)]]});}[_0x5971e0(0x81)](_0x2cf99b,_0x250b5f,_0x133b19,_0x404812){var _0x4eea96=_0x5971e0;this[_0x4eea96(0x80)][_0x4eea96(0x81)](_0x2cf99b,_0x250b5f,_0x133b19,_0x404812);}[_0x5971e0(0x8c)](_0x483dea){var _0x47c335=_0x5971e0;this[_0x47c335(0x80)][_0x47c335(0x8c)](_0x483dea);}[_0x5971e0(0x8f)](){var _0x4b552f=_0x5971e0;this[_0x4b552f(0x86)][_0x4b552f(0x88)](),super[_0x4b552f(0x8f)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x52093d=_0x30f1;(function(_0x13a249,_0x13a305){const _0x763ce0=_0x30f1,_0x31e9e4=_0x13a249();while(!![]){try{const _0x4a2041=-parseInt(_0x763ce0(0x1e9))/0x1+parseInt(_0x763ce0(0x1cf))/0x2+parseInt(_0x763ce0(0x245))/0x3+parseInt(_0x763ce0(0x22a))/0x4*(parseInt(_0x763ce0(0x23c))/0x5)+-parseInt(_0x763ce0(0x21e))/0x6*(parseInt(_0x763ce0(0x225))/0x7)+-parseInt(_0x763ce0(0x20a))/0x8*(parseInt(_0x763ce0(0x24e))/0x9)+parseInt(_0x763ce0(0x1dc))/0xa;if(_0x4a2041===_0x13a305)break;else _0x31e9e4['push'](_0x31e9e4['shift']());}catch(_0x594798){_0x31e9e4['push'](_0x31e9e4['shift']());}}}(_0x2ced,0x7b6de));function _0x2ced(){const _0x39a80a=['textContent','_calculateContainerWidth','_createShowMoreButton','show','documentElement','element','0px','createElement','from','innerHTML','_createContainerElements','bottom','_createShowMoreButtonView','slice','6936yJYxBu','includes','_renderChipsAndCountRows','_bodyCollection','opacity','none','remove','4711qhMvqx','_restoreAncestorVisibility','zIndex','right','_checkAndHandleOverflow','424FZWGeT','disableAnimationOnEnter','execute','_parentView','block','cloneNode','innerHeight','_handleShowMoreButtonClick','ck-calculation-container','overflowChips','display','set','auto','_calculateOverflowInContainer','_createShowMoreBalloonPanelView','_visibleChips','label','innerWidth','32685ijpjBH','render','_targetContainer','_createMockButton','div','_makeAncestorsVisible','_locale','undefined','position','307221DjPNUz','top','content','maxVisibleRows','body','cssClasses','overflowContainer','block\x20!important','300px','68967yaUpVV','_setupVisibilityObserver','classList','children','length','showMoreButtonView','some','50px','showBalloonPanel','calculationContainer','_distributeChips','_overflowChips','destroy','visible\x20!important','parentElement','className','forEach','width','_config','pop','_intersectionObserver','583610SJAEeD','boxSizing','filter','border-box','style','.ck-ai-chat','_applyCalculationStyles','appendChild','-9999px','abs','_containerElement','_findTargetContainer','reorganizeChips','11183290ePLLhj','getComputedStyle','_updateBalloonContent','_updateOverflowUI','_showMoreButtonView','_ancestorsToRestore','setContainerElement','setTemplate','controlsButton','absolute','observe','left','tagName','439140EKjNMt','isVisible','querySelector','_createCalculationContainer','clientWidth','clear','isIntersecting','_showMoreBalloonPanelView','toLowerCase','_updateShowMoreButtonVisibility','hide','pointerEvents','height','_isContainerVisible','pin','isOn','showMoreLabelPrefix','add','_testButtonFit','visibility','showMoreButton','showMoreBalloon','button','push','isConnected','offsetWidth','+\x201','visible','rowDetectionTolerance','_applyOverflowResults','hideBalloonPanel','clientHeight','hidden','504hIOlbM','_repinBalloonPanel','getBoundingClientRect','_pendingCalculation','extendTemplate','disconnect'];_0x2ced=function(){return _0x39a80a;};return _0x2ced();}import{View as _0x399537,BalloonPanelView as _0x4fec26,ButtonView as _0x2bc9c6,clickOutsideHandler as _0x5a7999}from'ckeditor5/src/ui.js';import{Collection as _0x43f663}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},ln=_0x52093d(0x24d);function _0x30f1(_0x1c89ee,_0x48874b){const _0x2ced1=_0x2ced();return _0x30f1=function(_0x30f180,_0xd26c9f){_0x30f180=_0x30f180-0x1c3;let _0x49437e=_0x2ced1[_0x30f180];return _0x49437e;},_0x30f1(_0x1c89ee,_0x48874b);}export class AIChatChipsOverflowManager{[_0x52093d(0x242)];[_0x52093d(0x1cc)];[_0x52093d(0x239)];[_0x52093d(0x1c5)];[_0x52093d(0x1e0)]=null;[_0x52093d(0x1f0)]=null;[_0x52093d(0x1d9)]=null;[_0x52093d(0x221)];[_0x52093d(0x22d)]=null;[_0x52093d(0x1ce)]=null;[_0x52093d(0x20d)]=!0x1;constructor(_0x225cdc,_0x496564,_0x1e288b,_0x572fcc,_0x48b430){const _0x20b6de=_0x52093d;this[_0x20b6de(0x242)]=_0x225cdc,this[_0x20b6de(0x239)]=_0x496564,this[_0x20b6de(0x1cc)]={...hn,..._0x1e288b,'cssClasses':{'controlsButton':'','calculationContainer':_0x20b6de(0x232),..._0x1e288b[_0x20b6de(0x24a)]}},this[_0x20b6de(0x1c5)]=new _0x43f663(),this[_0x20b6de(0x221)]=_0x572fcc,this[_0x20b6de(0x22d)]=_0x48b430||null;}[_0x52093d(0x1e2)](_0x50fdb3){const _0x198cac=_0x52093d;this[_0x198cac(0x1ce)]&&(this[_0x198cac(0x1ce)][_0x198cac(0x20f)](),this[_0x198cac(0x1ce)]=null),this[_0x198cac(0x1d9)]=_0x50fdb3,this[_0x198cac(0x24f)]();}get[_0x52093d(0x253)](){const _0x1fff9c=_0x52093d;return this[_0x1fff9c(0x1e0)];}get[_0x52093d(0x233)](){const _0x4373a3=_0x52093d;return this[_0x4373a3(0x1c5)];}[_0x52093d(0x1db)](){requestAnimationFrame(()=>{const _0x5be6a8=_0x30f1;this[_0x5be6a8(0x229)]();});}[_0x52093d(0x256)](){const _0x59caee=_0x52093d;this[_0x59caee(0x1e0)]&&this[_0x59caee(0x1f0)]&&(this[_0x59caee(0x1de)](),this[_0x59caee(0x1e0)][_0x59caee(0x1f8)]=!0x0,this[_0x59caee(0x1f0)][_0x59caee(0x213)](),this[_0x59caee(0x1f0)][_0x59caee(0x1f7)]({'target':this[_0x59caee(0x1e0)][_0x59caee(0x215)],'limiter':document[_0x59caee(0x1eb)](_0x59caee(0x1d4))}));}[_0x52093d(0x207)](){const _0x5f5a3e=_0x52093d;this[_0x5f5a3e(0x1e0)]&&this[_0x5f5a3e(0x1f0)]&&(this[_0x5f5a3e(0x1e0)][_0x5f5a3e(0x1f8)]=!0x1,this[_0x5f5a3e(0x1f0)][_0x5f5a3e(0x1f3)]());}[_0x52093d(0x1ee)](){const _0x515d51=_0x52093d;this[_0x515d51(0x1c5)][_0x515d51(0x1ee)](),this[_0x515d51(0x207)](),this[_0x515d51(0x1f2)](),this[_0x515d51(0x1e0)]&&(this[_0x515d51(0x1e0)][_0x515d51(0x23a)]=''),this[_0x515d51(0x1f0)]&&this[_0x515d51(0x1f0)][_0x515d51(0x247)][_0x515d51(0x1ee)]();}[_0x52093d(0x1c6)](){const _0x120d59=_0x52093d;this[_0x120d59(0x1ce)]&&(this[_0x120d59(0x1ce)][_0x120d59(0x20f)](),this[_0x120d59(0x1ce)]=null),this[_0x120d59(0x1e0)]&&(this[_0x120d59(0x1e0)][_0x120d59(0x1c6)](),this[_0x120d59(0x1e0)]=null),this[_0x120d59(0x1f0)]&&(this[_0x120d59(0x1f0)][_0x120d59(0x1c6)](),this[_0x120d59(0x1f0)]=null);}[_0x52093d(0x229)](){const _0x1c2b7c=_0x52093d;if(!this[_0x1c2b7c(0x1d9)])return;if(!this[_0x1c2b7c(0x1f6)]())return void(this[_0x1c2b7c(0x20d)]=!0x0);this[_0x1c2b7c(0x20d)]=!0x1;const _0x6e59f=[...this[_0x1c2b7c(0x239)],...this[_0x1c2b7c(0x1c5)]],_0xe3e55f=this[_0x1c2b7c(0x1ec)](),_0x5df374=this[_0x1c2b7c(0x237)](_0xe3e55f,_0x6e59f),_0x15d8f6=_0xe3e55f[_0x1c2b7c(0x1e1)];_0x15d8f6&&this[_0x1c2b7c(0x226)](_0x15d8f6),_0xe3e55f[_0x1c2b7c(0x224)](),this[_0x1c2b7c(0x206)](_0x6e59f,_0x5df374);}[_0x52093d(0x212)](){const _0x44c747=_0x52093d;this[_0x44c747(0x1e0)]=this[_0x44c747(0x21c)](),this[_0x44c747(0x1f0)]=this[_0x44c747(0x238)](),this[_0x44c747(0x1e0)][_0x44c747(0x23d)](),this[_0x44c747(0x1d9)][_0x44c747(0x1d6)](this[_0x44c747(0x1e0)][_0x44c747(0x215)]),this[_0x44c747(0x1e0)]['on'](_0x44c747(0x22c),()=>{const _0x54d195=_0x44c747;this[_0x54d195(0x231)]();}),_0x5a7999({'emitter':this[_0x44c747(0x1f0)],'contextElements':[this[_0x44c747(0x1f0)][_0x44c747(0x215)],this[_0x44c747(0x1e0)][_0x44c747(0x215)]],'callback':()=>this[_0x44c747(0x207)](),'activator':()=>this[_0x44c747(0x1e0)][_0x44c747(0x1f8)]});}[_0x52093d(0x21c)](){const _0x382927=_0x52093d,_0x3443cc=new _0x2bc9c6(this[_0x382927(0x242)]);_0x3443cc[_0x382927(0x235)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x17b7b6=[this[_0x382927(0x1cc)][_0x382927(0x24a)][_0x382927(0x1fd)]];return this[_0x382927(0x1cc)][_0x382927(0x24a)][_0x382927(0x1e4)]&&_0x17b7b6[_0x382927(0x200)](this[_0x382927(0x1cc)][_0x382927(0x24a)][_0x382927(0x1e4)]),_0x3443cc[_0x382927(0x20e)]({'attributes':{'class':_0x17b7b6}}),_0x3443cc;}[_0x52093d(0x238)](){const _0x2fb34f=_0x52093d,_0x4a7df3=new _0x4fec26(this[_0x2fb34f(0x242)]);return _0x4a7df3[_0x2fb34f(0x20e)]({'attributes':{'class':this[_0x2fb34f(0x1cc)][_0x2fb34f(0x24a)][_0x2fb34f(0x1fe)]}}),this[_0x2fb34f(0x221)][_0x2fb34f(0x1fa)](_0x4a7df3),_0x4a7df3;}[_0x52093d(0x1de)](){const _0x317793=_0x52093d;if(this[_0x317793(0x1f0)]&&(this[_0x317793(0x1f0)][_0x317793(0x247)][_0x317793(0x1ee)](),this[_0x317793(0x1c5)][_0x317793(0x252)]>0x0)){this[_0x317793(0x1c5)][_0x317793(0x1ca)](_0x5e40fb=>{const _0x30ebb7=_0x317793;_0x5e40fb[_0x30ebb7(0x22b)]();});const _0x1e90f4=new _0x399537(this[_0x317793(0x242)]);_0x1e90f4[_0x317793(0x1e3)]({'tag':_0x317793(0x240),'attributes':{'class':this[_0x317793(0x1cc)][_0x317793(0x24a)][_0x317793(0x24b)]},'children':this[_0x317793(0x1c5)]}),this[_0x317793(0x1f0)][_0x317793(0x247)][_0x317793(0x1fa)](_0x1e90f4);}}[_0x52093d(0x231)](){const _0x56feb6=_0x52093d;this[_0x56feb6(0x1e0)][_0x56feb6(0x1f8)]?this[_0x56feb6(0x207)]():this[_0x56feb6(0x256)]();}[_0x52093d(0x1f2)](){const _0x504d85=_0x52093d,_0x1b04f9=this[_0x504d85(0x1c5)][_0x504d85(0x252)]>0x0;this[_0x504d85(0x1e0)]?.[_0x504d85(0x215)]&&(this[_0x504d85(0x1e0)][_0x504d85(0x215)][_0x504d85(0x1d3)][_0x504d85(0x234)]=_0x1b04f9?'':_0x504d85(0x223));}[_0x52093d(0x20b)](){const _0x34a51c=_0x52093d;this[_0x34a51c(0x1e0)]?.[_0x34a51c(0x1f8)]&&this[_0x34a51c(0x1f0)]?.[_0x34a51c(0x1ea)]&&this[_0x34a51c(0x1e0)][_0x34a51c(0x215)]&&this[_0x34a51c(0x1f0)][_0x34a51c(0x1f7)]({'target':this[_0x34a51c(0x1e0)][_0x34a51c(0x215)],'limiter':document[_0x34a51c(0x1eb)](_0x34a51c(0x1d4))});}[_0x52093d(0x1da)](_0xccd6ad){const _0x3d8c49=_0x52093d,_0x216771=this[_0x3d8c49(0x1d9)]?.[_0x3d8c49(0x1e8)][_0x3d8c49(0x1f1)]()||_0x3d8c49(0x240),_0x4000e9=this[_0x3d8c49(0x1d9)]?.[_0x3d8c49(0x250)];if(_0x4000e9){const _0x4000ee=_0x4000e9[0x0]||'',_0x28bc8c=_0xccd6ad[_0x3d8c49(0x1eb)]('.'+_0x4000ee),_0x1c393b=_0xccd6ad[_0x3d8c49(0x1eb)](_0x216771);return _0x28bc8c||_0x1c393b||_0xccd6ad;}return _0xccd6ad[_0x3d8c49(0x1eb)](_0x216771)||_0xccd6ad;}[_0x52093d(0x211)](){const _0x1686c6=_0x52093d,_0x3df4fa=this[_0x1686c6(0x22d)]?.[_0x1686c6(0x215)]||this[_0x1686c6(0x1d9)];if(!_0x3df4fa)return ln;const _0x5c6663=window[_0x1686c6(0x1dd)](_0x3df4fa)[_0x1686c6(0x1cb)];if(_0x1686c6(0x236)===_0x5c6663||_0x1686c6(0x216)===_0x5c6663||!_0x5c6663){const _0x427a44=_0x3df4fa[_0x1686c6(0x1c8)];if(_0x427a44){const _0x3b865b=window[_0x1686c6(0x1dd)](_0x427a44);return _0x1686c6(0x236)!==_0x3b865b[_0x1686c6(0x1cb)]?_0x3b865b[_0x1686c6(0x1cb)]:ln;}return ln;}return _0x5c6663;}[_0x52093d(0x1d5)](_0x342421,_0x596307){const _0xe2cf49=_0x52093d;this[_0xe2cf49(0x1cc)][_0xe2cf49(0x24a)][_0xe2cf49(0x1c3)]&&_0x342421[_0xe2cf49(0x250)][_0xe2cf49(0x1fa)](this[_0xe2cf49(0x1cc)][_0xe2cf49(0x24a)][_0xe2cf49(0x1c3)]),_0x342421[_0xe2cf49(0x1d3)][_0xe2cf49(0x1cb)]=_0x596307,_0x342421[_0xe2cf49(0x1d3)][_0xe2cf49(0x244)]=_0xe2cf49(0x1e5),_0x342421[_0xe2cf49(0x1d3)][_0xe2cf49(0x246)]=_0xe2cf49(0x1d7),_0x342421[_0xe2cf49(0x1d3)][_0xe2cf49(0x1e7)]=_0xe2cf49(0x1d7),_0x342421[_0xe2cf49(0x1d3)][_0xe2cf49(0x222)]='0',_0x342421[_0xe2cf49(0x1d3)][_0xe2cf49(0x1f4)]=_0xe2cf49(0x223),_0x342421[_0xe2cf49(0x1d3)][_0xe2cf49(0x227)]='-1',_0x342421[_0xe2cf49(0x1d3)][_0xe2cf49(0x1fc)]=_0xe2cf49(0x1c7),_0x342421[_0xe2cf49(0x1d3)][_0xe2cf49(0x234)]=_0xe2cf49(0x24c),_0x342421[_0xe2cf49(0x1d3)][_0xe2cf49(0x1d0)]=_0xe2cf49(0x1d2);}[_0x52093d(0x226)](_0x294d86){const _0x43175f=_0x52093d;_0x294d86[_0x43175f(0x1ca)](({element:_0xfb307c,originalDisplay:_0x4b86a8,originalVisibility:_0x14d3c2})=>{const _0x10d69b=_0x43175f;_0xfb307c[_0x10d69b(0x1d3)][_0x10d69b(0x234)]=_0x4b86a8,_0xfb307c[_0x10d69b(0x1d3)][_0x10d69b(0x1fc)]=_0x14d3c2;});}[_0x52093d(0x241)](_0xb25956){const _0x3ed018=_0x52093d,_0x5043c8=[];let _0xdc40be=_0xb25956;for(;_0xdc40be&&_0xdc40be!==document[_0x3ed018(0x249)];){const _0x3adf0f=window[_0x3ed018(0x1dd)](_0xdc40be);_0x3ed018(0x223)!==_0x3adf0f[_0x3ed018(0x234)]&&_0x3ed018(0x209)!==_0x3adf0f[_0x3ed018(0x1fc)]||(_0x5043c8[_0x3ed018(0x200)]({'element':_0xdc40be,'originalDisplay':_0xdc40be[_0x3ed018(0x1d3)][_0x3ed018(0x234)],'originalVisibility':_0xdc40be[_0x3ed018(0x1d3)][_0x3ed018(0x1fc)]}),_0xdc40be[_0x3ed018(0x1d3)][_0x3ed018(0x234)]=_0x3ed018(0x22e),_0xdc40be[_0x3ed018(0x1d3)][_0x3ed018(0x1fc)]=_0x3ed018(0x204)),_0xdc40be=_0xdc40be[_0x3ed018(0x1c8)];}return _0x5043c8;}[_0x52093d(0x21a)](){const _0x32236e=_0x52093d;let _0x5dbc75,_0x5b90f7;return this[_0x32236e(0x22d)]?.[_0x32236e(0x215)]?(_0x5dbc75=this[_0x32236e(0x22d)][_0x32236e(0x215)][_0x32236e(0x22f)](!0x0),_0x5b90f7=this[_0x32236e(0x1da)](_0x5dbc75)):(_0x5dbc75=document[_0x32236e(0x217)](_0x32236e(0x240)),_0x5b90f7=_0x5dbc75),{'calculationContainer':_0x5dbc75,'targetContainer':_0x5b90f7};}[_0x52093d(0x1ec)](){const _0x3c95c2=_0x52093d,{calculationContainer:_0x37d365,targetContainer:_0x451019}=this[_0x3c95c2(0x21a)](),_0x7bdabe=this[_0x3c95c2(0x211)]();this[_0x3c95c2(0x1d5)](_0x37d365,_0x7bdabe);const _0x96f152=this[_0x3c95c2(0x22d)]?.[_0x3c95c2(0x215)]||this[_0x3c95c2(0x1d9)],_0x420ab4=_0x96f152?.[_0x3c95c2(0x1c8)];_0x420ab4?_0x420ab4[_0x3c95c2(0x1d6)](_0x37d365):document[_0x3c95c2(0x249)][_0x3c95c2(0x1d6)](_0x37d365),_0x37d365[_0x3c95c2(0x23e)]=_0x451019;const _0x3a247a=this[_0x3c95c2(0x241)](_0x420ab4||null);return _0x37d365[_0x3c95c2(0x202)],_0x37d365[_0x3c95c2(0x1e1)]=_0x3a247a,_0x37d365;}[_0x52093d(0x237)](_0x5bddff,_0x334429){const _0x5e931f=_0x52093d,_0x1d08f3=_0x5bddff[_0x5e931f(0x23e)]||_0x5bddff,_0x13e171=[],{rowCount:_0x59bcba}=this[_0x5e931f(0x220)](_0x1d08f3,_0x334429);if(_0x59bcba<=this[_0x5e931f(0x1cc)][_0x5e931f(0x248)])return _0x13e171;const _0x1a8c36=_0x334429[_0x5e931f(0x21d)]();for(;_0x1a8c36[_0x5e931f(0x252)]>0x0;){if(this[_0x5e931f(0x1fb)](_0x5bddff,_0x1d08f3,_0x1a8c36)){const _0x3d10bf=_0x334429[_0x5e931f(0x1d1)](_0x238d23=>!_0x1a8c36[_0x5e931f(0x21f)](_0x238d23));_0x13e171[_0x5e931f(0x200)](..._0x3d10bf);break;}if(!_0x1a8c36[_0x5e931f(0x1cd)]())break;}return _0x13e171;}[_0x52093d(0x220)](_0x6023da,_0x36beb3){const _0x1263ee=_0x52093d;_0x6023da[_0x1263ee(0x219)]='',_0x36beb3[_0x1263ee(0x1ca)](_0x51df27=>{const _0x1b7f41=_0x1263ee;if(_0x51df27[_0x1b7f41(0x215)]){const _0x3a3c53=_0x51df27[_0x1b7f41(0x215)][_0x1b7f41(0x22f)](!0x0);_0x6023da[_0x1b7f41(0x1d6)](_0x3a3c53);}}),_0x6023da[_0x1263ee(0x202)];const _0x5e6fa2=_0x6023da[_0x1263ee(0x251)],_0x52fb9b=[];return Array[_0x1263ee(0x218)](_0x5e6fa2)[_0x1263ee(0x1ca)](_0x17ba88=>{const _0x415f6d=_0x1263ee,_0x582741=_0x17ba88[_0x415f6d(0x20c)]()[_0x415f6d(0x246)];_0x52fb9b[_0x415f6d(0x254)](_0x40e392=>Math[_0x415f6d(0x1d8)](_0x40e392-_0x582741)<this[_0x415f6d(0x1cc)][_0x415f6d(0x205)])||_0x52fb9b[_0x415f6d(0x200)](_0x582741);}),{'rowCount':_0x52fb9b[_0x1263ee(0x252)]};}[_0x52093d(0x23f)](){const _0x58345b=_0x52093d,_0x1b24e8=document[_0x58345b(0x217)](_0x58345b(0x1ff));return _0x1b24e8[_0x58345b(0x1c9)]=this[_0x58345b(0x1cc)][_0x58345b(0x24a)][_0x58345b(0x1fd)],this[_0x58345b(0x1cc)][_0x58345b(0x24a)][_0x58345b(0x1e4)]&&_0x1b24e8[_0x58345b(0x250)][_0x58345b(0x1fa)](this[_0x58345b(0x1cc)][_0x58345b(0x24a)][_0x58345b(0x1e4)]),_0x1b24e8[_0x58345b(0x210)]=_0x58345b(0x203),_0x1b24e8;}[_0x52093d(0x1fb)](_0x354ac0,_0x468a16,_0x2f307c){const _0x5339e2=_0x52093d;this[_0x5339e2(0x220)](_0x468a16,_0x2f307c);const _0x1d8f14=this[_0x5339e2(0x23f)]();_0x354ac0[_0x5339e2(0x1d6)](_0x1d8f14),_0x354ac0[_0x5339e2(0x202)];const _0x2f977b=[..._0x468a16[_0x5339e2(0x251)],_0x1d8f14],_0x5ec0ba=[];_0x2f977b[_0x5339e2(0x1ca)](_0x1415fa=>{const _0x151ade=_0x5339e2,_0x212df2=_0x1415fa[_0x151ade(0x20c)]()[_0x151ade(0x246)];_0x5ec0ba[_0x151ade(0x254)](_0x1a1bb4=>Math[_0x151ade(0x1d8)](_0x1a1bb4-_0x212df2)<this[_0x151ade(0x1cc)][_0x151ade(0x205)])||_0x5ec0ba[_0x151ade(0x200)](_0x212df2);});const _0x20660c=_0x5ec0ba[_0x5339e2(0x252)];return _0x1d8f14[_0x5339e2(0x224)](),_0x20660c<=this[_0x5339e2(0x1cc)][_0x5339e2(0x248)];}[_0x52093d(0x1c4)](_0x3c81a4,_0x46400b){const _0x571f2a=_0x52093d;this[_0x571f2a(0x239)][_0x571f2a(0x1ee)](),this[_0x571f2a(0x1c5)][_0x571f2a(0x1ee)](),_0x3c81a4[_0x571f2a(0x1ca)](_0x466a5d=>{const _0x544ad6=_0x571f2a;_0x46400b[_0x544ad6(0x21f)](_0x466a5d)?this[_0x544ad6(0x1c5)][_0x544ad6(0x1fa)](_0x466a5d):this[_0x544ad6(0x239)][_0x544ad6(0x1fa)](_0x466a5d);});}[_0x52093d(0x1df)](_0x46ba04){const _0x5f0c4e=_0x52093d;if(_0x46ba04>0x0&&!this[_0x5f0c4e(0x1e0)]&&this[_0x5f0c4e(0x212)](),_0x46ba04>0x0&&this[_0x5f0c4e(0x1e0)]){const _0x5610b9=''+this[_0x5f0c4e(0x1cc)][_0x5f0c4e(0x1f9)]+(_0x46ba04<0x63?_0x46ba04:'99');this[_0x5f0c4e(0x1e0)][_0x5f0c4e(0x23a)]=_0x5610b9;}this[_0x5f0c4e(0x1de)](),this[_0x5f0c4e(0x1f2)](),this[_0x5f0c4e(0x20b)]();}[_0x52093d(0x206)](_0x39d5e4,_0x5462a0){const _0x28ae6c=_0x52093d;this[_0x28ae6c(0x1c4)](_0x39d5e4,_0x5462a0),this[_0x28ae6c(0x1df)](_0x5462a0[_0x28ae6c(0x252)]);}[_0x52093d(0x24f)](){const _0x423c5e=_0x52093d;this[_0x423c5e(0x1d9)]&&_0x423c5e(0x243)!=typeof IntersectionObserver&&(this[_0x423c5e(0x1ce)]=new IntersectionObserver(_0x1d38ff=>{const _0x1cb38f=_0x423c5e;_0x1d38ff[0x0][_0x1cb38f(0x1ef)]&&this[_0x1cb38f(0x20d)]&&requestAnimationFrame(()=>{const _0x3526d8=_0x1cb38f;this[_0x3526d8(0x229)]();});},{'threshold':0.01,'rootMargin':_0x423c5e(0x255)}),this[_0x423c5e(0x1ce)][_0x423c5e(0x1e6)](this[_0x423c5e(0x1d9)]));}[_0x52093d(0x1f6)](){const _0x3eaf3c=_0x52093d;if(!this[_0x3eaf3c(0x1d9)])return!0x1;if(!this[_0x3eaf3c(0x1d9)][_0x3eaf3c(0x201)])return!0x1;const _0x265ec4=this[_0x3eaf3c(0x1d9)][_0x3eaf3c(0x20c)]();if(0x0===_0x265ec4[_0x3eaf3c(0x1cb)]||0x0===_0x265ec4[_0x3eaf3c(0x1f5)])return!0x1;const _0x4220c3=window[_0x3eaf3c(0x230)]||document[_0x3eaf3c(0x214)][_0x3eaf3c(0x208)],_0x5bd1c9=window[_0x3eaf3c(0x23b)]||document[_0x3eaf3c(0x214)][_0x3eaf3c(0x1ed)],_0x1417ff=0xc8;return _0x265ec4[_0x3eaf3c(0x21b)]>=-0xc8&&_0x265ec4[_0x3eaf3c(0x246)]<=_0x4220c3+_0x1417ff&&_0x265ec4[_0x3eaf3c(0x228)]>=-0xc8&&_0x265ec4[_0x3eaf3c(0x1e7)]<=_0x5bd1c9+_0x1417ff;}}
23
+ const _0x172429=_0x7c74;function _0x7c74(_0x40661d,_0x16c7e3){const _0x168b3a=_0x168b();return _0x7c74=function(_0x7c7446,_0x5919b7){_0x7c7446=_0x7c7446-0x7f;let _0x1134a3=_0x168b3a[_0x7c7446];return _0x1134a3;},_0x7c74(_0x40661d,_0x16c7e3);}(function(_0x5d0e1e,_0x1a094f){const _0x3ec130=_0x7c74,_0x2d83e8=_0x5d0e1e();while(!![]){try{const _0x572872=parseInt(_0x3ec130(0x109))/0x1*(parseInt(_0x3ec130(0x102))/0x2)+parseInt(_0x3ec130(0xba))/0x3+parseInt(_0x3ec130(0xe4))/0x4+-parseInt(_0x3ec130(0xc3))/0x5+parseInt(_0x3ec130(0xa1))/0x6*(-parseInt(_0x3ec130(0xc5))/0x7)+-parseInt(_0x3ec130(0xee))/0x8+-parseInt(_0x3ec130(0xdd))/0x9;if(_0x572872===_0x1a094f)break;else _0x2d83e8['push'](_0x2d83e8['shift']());}catch(_0x337c7b){_0x2d83e8['push'](_0x2d83e8['shift']());}}}(_0x168b,0xf0a64));import{View as _0x42d6e2,BalloonPanelView as _0x34f352,ButtonView as _0x41e6de,clickOutsideHandler as _0x7fa681}from'ckeditor5/src/ui.js';import{Collection as _0x20b120}from'ckeditor5/src/utils.js';function _0x168b(){const _0x4275b8=['clear','height','setContainerElement','abs','cloneNode','_updateOverflowUI','innerWidth','_config','6613792PAhtyM','button','div','querySelector','extendTemplate','showMoreButtonView','_targetContainer','body','_restoreAncestorVisibility','_intersectionObserver','observe','slice','left','getBoundingClientRect','block\x20!important','from','_createContainerElements','opacity','isConnected','destroy','10130bhdaAK','bottom','parentElement','_containerElement','_createShowMoreButtonView','style','_renderChipsAndCountRows','289iGMqud','_overflowChips','push','_testButtonFit','_findTargetContainer','display','label','visible','_createShowMoreButton','_bodyCollection','50px','clientWidth','execute','pointerEvents','clientHeight','isVisible','showMoreButton','_showMoreBalloonPanelView','show','includes','overflowChips','_locale','_showMoreButtonView','disableAnimationOnEnter','position','pin','_calculateOverflowInContainer','_applyCalculationStyles','boxSizing','visibility','children','_pendingCalculation','visible\x20!important','isOn','innerHTML','_ancestorsToRestore','zIndex','undefined','_calculateContainerWidth','border-box','isIntersecting','classList','none','6WDTUId','0px','innerHeight','_updateShowMoreButtonVisibility','showMoreBalloon','disconnect','filter','absolute','toLowerCase','_visibleChips','_createCalculationContainer','_handleShowMoreButtonClick','.ck-ai-chat','_checkAndHandleOverflow','300px','_createShowMoreBalloonPanelView','some','forEach','showMoreLabelPrefix','maxVisibleRows','_isContainerVisible','appendChild','pop','hideBalloonPanel','_makeAncestorsVisible','5307621ZNPhaL','overflowContainer','_distributeChips','offsetWidth','set','block','-9999px','textContent','reorganizeChips','3221730FsMOXh','setTemplate','10298652HggtsX','rowDetectionTolerance','showBalloonPanel','_createMockButton','controlsButton','className','render','cssClasses','_parentView','content','top','add','documentElement','hidden','remove','auto','_repinBalloonPanel','createElement','tagName','width','right','calculationContainer','element','_updateBalloonContent','9653247IGopaQ','+\x201','getComputedStyle','hide','_setupVisibilityObserver','_applyOverflowResults','ck-calculation-container','7070388CDnuEv','length'];_0x168b=function(){return _0x4275b8;};return _0x168b();}const sn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},hn=_0x172429(0xaf);export class AIChatChipsOverflowManager{[_0x172429(0x8b)];[_0x172429(0xed)];[_0x172429(0xaa)];[_0x172429(0x10a)];[_0x172429(0x8c)]=null;[_0x172429(0x87)]=null;[_0x172429(0x105)]=null;[_0x172429(0x7f)];[_0x172429(0xcd)]=null;[_0x172429(0xf7)]=null;[_0x172429(0x95)]=!0x1;constructor(_0x178dff,_0x513c85,_0x3a4c7f,_0x95b876,_0x5b9844){const _0x142f59=_0x172429;this[_0x142f59(0x8b)]=_0x178dff,this[_0x142f59(0xaa)]=_0x513c85,this[_0x142f59(0xed)]={...sn,..._0x3a4c7f,'cssClasses':{'controlsButton':'','calculationContainer':_0x142f59(0xe3),..._0x3a4c7f[_0x142f59(0xcc)]}},this[_0x142f59(0x10a)]=new _0x20b120(),this[_0x142f59(0x7f)]=_0x95b876,this[_0x142f59(0xcd)]=_0x5b9844||null;}[_0x172429(0xe8)](_0x95c30f){const _0x10720e=_0x172429;this[_0x10720e(0xf7)]&&(this[_0x10720e(0xf7)][_0x10720e(0xa6)](),this[_0x10720e(0xf7)]=null),this[_0x10720e(0x105)]=_0x95c30f,this[_0x10720e(0xe1)]();}get[_0x172429(0xf3)](){const _0xf09d5b=_0x172429;return this[_0xf09d5b(0x8c)];}get[_0x172429(0x8a)](){const _0x539b45=_0x172429;return this[_0x539b45(0x10a)];}[_0x172429(0xc2)](){requestAnimationFrame(()=>{const _0x957568=_0x7c74;this[_0x957568(0xae)]();});}[_0x172429(0xc7)](){const _0x54de79=_0x172429;this[_0x54de79(0x8c)]&&this[_0x54de79(0x87)]&&(this[_0x54de79(0xdc)](),this[_0x54de79(0x8c)][_0x54de79(0x97)]=!0x0,this[_0x54de79(0x87)][_0x54de79(0x88)](),this[_0x54de79(0x87)][_0x54de79(0x8f)]({'target':this[_0x54de79(0x8c)][_0x54de79(0xdb)],'limiter':document[_0x54de79(0xf1)](_0x54de79(0xad))}));}[_0x172429(0xb8)](){const _0x2c4078=_0x172429;this[_0x2c4078(0x8c)]&&this[_0x2c4078(0x87)]&&(this[_0x2c4078(0x8c)][_0x2c4078(0x97)]=!0x1,this[_0x2c4078(0x87)][_0x2c4078(0xe0)]());}[_0x172429(0xe6)](){const _0x2e61e4=_0x172429;this[_0x2e61e4(0x10a)][_0x2e61e4(0xe6)](),this[_0x2e61e4(0xb8)](),this[_0x2e61e4(0xa4)](),this[_0x2e61e4(0x8c)]&&(this[_0x2e61e4(0x8c)][_0x2e61e4(0x10f)]=''),this[_0x2e61e4(0x87)]&&this[_0x2e61e4(0x87)][_0x2e61e4(0xce)][_0x2e61e4(0xe6)]();}[_0x172429(0x101)](){const _0x380f0d=_0x172429;this[_0x380f0d(0xf7)]&&(this[_0x380f0d(0xf7)][_0x380f0d(0xa6)](),this[_0x380f0d(0xf7)]=null),this[_0x380f0d(0x8c)]&&(this[_0x380f0d(0x8c)][_0x380f0d(0x101)](),this[_0x380f0d(0x8c)]=null),this[_0x380f0d(0x87)]&&(this[_0x380f0d(0x87)][_0x380f0d(0x101)](),this[_0x380f0d(0x87)]=null);}[_0x172429(0xae)](){const _0x3969ce=_0x172429;if(!this[_0x3969ce(0x105)])return;if(!this[_0x3969ce(0xb5)]())return void(this[_0x3969ce(0x95)]=!0x0);this[_0x3969ce(0x95)]=!0x1;const _0x5ccf26=[...this[_0x3969ce(0xaa)],...this[_0x3969ce(0x10a)]],_0x1b7fb3=this[_0x3969ce(0xab)](),_0x1e4857=this[_0x3969ce(0x90)](_0x1b7fb3,_0x5ccf26),_0xc910c6=_0x1b7fb3[_0x3969ce(0x99)];_0xc910c6&&this[_0x3969ce(0xf6)](_0xc910c6),_0x1b7fb3[_0x3969ce(0xd3)](),this[_0x3969ce(0xe2)](_0x5ccf26,_0x1e4857);}[_0x172429(0x111)](){const _0x540455=_0x172429;this[_0x540455(0x8c)]=this[_0x540455(0x106)](),this[_0x540455(0x87)]=this[_0x540455(0xb0)](),this[_0x540455(0x8c)][_0x540455(0xcb)](),this[_0x540455(0x105)][_0x540455(0xb6)](this[_0x540455(0x8c)][_0x540455(0xdb)]),this[_0x540455(0x8c)]['on'](_0x540455(0x82),()=>{const _0x34c5ad=_0x540455;this[_0x34c5ad(0xac)]();}),_0x7fa681({'emitter':this[_0x540455(0x87)],'contextElements':[this[_0x540455(0x87)][_0x540455(0xdb)],this[_0x540455(0x8c)][_0x540455(0xdb)]],'callback':()=>this[_0x540455(0xb8)](),'activator':()=>this[_0x540455(0x8c)][_0x540455(0x97)]});}[_0x172429(0x106)](){const _0x1e08e1=_0x172429,_0x249b16=new _0x41e6de(this[_0x1e08e1(0x8b)]);_0x249b16[_0x1e08e1(0xbe)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x497d4b=[this[_0x1e08e1(0xed)][_0x1e08e1(0xcc)][_0x1e08e1(0x86)]];return this[_0x1e08e1(0xed)][_0x1e08e1(0xcc)][_0x1e08e1(0xc9)]&&_0x497d4b[_0x1e08e1(0x10b)](this[_0x1e08e1(0xed)][_0x1e08e1(0xcc)][_0x1e08e1(0xc9)]),_0x249b16[_0x1e08e1(0xf2)]({'attributes':{'class':_0x497d4b}}),_0x249b16;}[_0x172429(0xb0)](){const _0x176720=_0x172429,_0x19d39c=new _0x34f352(this[_0x176720(0x8b)]);return _0x19d39c[_0x176720(0xf2)]({'attributes':{'class':this[_0x176720(0xed)][_0x176720(0xcc)][_0x176720(0xa5)]}}),this[_0x176720(0x7f)][_0x176720(0xd0)](_0x19d39c),_0x19d39c;}[_0x172429(0xdc)](){const _0x4e9aea=_0x172429;if(this[_0x4e9aea(0x87)]&&(this[_0x4e9aea(0x87)][_0x4e9aea(0xce)][_0x4e9aea(0xe6)](),this[_0x4e9aea(0x10a)][_0x4e9aea(0xe5)]>0x0)){this[_0x4e9aea(0x10a)][_0x4e9aea(0xb2)](_0x54b788=>{const _0x306408=_0x4e9aea;_0x54b788[_0x306408(0x8d)]();});const _0x4a3c6b=new _0x42d6e2(this[_0x4e9aea(0x8b)]);_0x4a3c6b[_0x4e9aea(0xc4)]({'tag':_0x4e9aea(0xf0),'attributes':{'class':this[_0x4e9aea(0xed)][_0x4e9aea(0xcc)][_0x4e9aea(0xbb)]},'children':this[_0x4e9aea(0x10a)]}),this[_0x4e9aea(0x87)][_0x4e9aea(0xce)][_0x4e9aea(0xd0)](_0x4a3c6b);}}[_0x172429(0xac)](){const _0x3a0f22=_0x172429;this[_0x3a0f22(0x8c)][_0x3a0f22(0x97)]?this[_0x3a0f22(0xb8)]():this[_0x3a0f22(0xc7)]();}[_0x172429(0xa4)](){const _0x2c1c1d=_0x172429,_0x336093=this[_0x2c1c1d(0x10a)][_0x2c1c1d(0xe5)]>0x0;this[_0x2c1c1d(0x8c)]?.[_0x2c1c1d(0xdb)]&&(this[_0x2c1c1d(0x8c)][_0x2c1c1d(0xdb)][_0x2c1c1d(0x107)][_0x2c1c1d(0x10e)]=_0x336093?'':_0x2c1c1d(0xa0));}[_0x172429(0xd5)](){const _0x27d917=_0x172429;this[_0x27d917(0x8c)]?.[_0x27d917(0x97)]&&this[_0x27d917(0x87)]?.[_0x27d917(0x85)]&&this[_0x27d917(0x8c)][_0x27d917(0xdb)]&&this[_0x27d917(0x87)][_0x27d917(0x8f)]({'target':this[_0x27d917(0x8c)][_0x27d917(0xdb)],'limiter':document[_0x27d917(0xf1)](_0x27d917(0xad))});}[_0x172429(0x10d)](_0x3decd2){const _0x322a8f=_0x172429,_0x3c3291=this[_0x322a8f(0x105)]?.[_0x322a8f(0xd7)][_0x322a8f(0xa9)]()||_0x322a8f(0xf0),_0x93454a=this[_0x322a8f(0x105)]?.[_0x322a8f(0x9f)];if(_0x93454a){const _0x3ca3dc=_0x93454a[0x0]||'',_0x2e39f0=_0x3decd2[_0x322a8f(0xf1)]('.'+_0x3ca3dc),_0x5bd241=_0x3decd2[_0x322a8f(0xf1)](_0x3c3291);return _0x2e39f0||_0x5bd241||_0x3decd2;}return _0x3decd2[_0x322a8f(0xf1)](_0x3c3291)||_0x3decd2;}[_0x172429(0x9c)](){const _0x94477d=_0x172429,_0x1e8f66=this[_0x94477d(0xcd)]?.[_0x94477d(0xdb)]||this[_0x94477d(0x105)];if(!_0x1e8f66)return hn;const _0x88f5f7=window[_0x94477d(0xdf)](_0x1e8f66)[_0x94477d(0xd8)];if(_0x94477d(0xd4)===_0x88f5f7||_0x94477d(0xa2)===_0x88f5f7||!_0x88f5f7){const _0x47b033=_0x1e8f66[_0x94477d(0x104)];if(_0x47b033){const _0x140d6e=window[_0x94477d(0xdf)](_0x47b033);return _0x94477d(0xd4)!==_0x140d6e[_0x94477d(0xd8)]?_0x140d6e[_0x94477d(0xd8)]:hn;}return hn;}return _0x88f5f7;}[_0x172429(0x91)](_0x35f4b0,_0x182ec6){const _0x5f4c25=_0x172429;this[_0x5f4c25(0xed)][_0x5f4c25(0xcc)][_0x5f4c25(0xda)]&&_0x35f4b0[_0x5f4c25(0x9f)][_0x5f4c25(0xd0)](this[_0x5f4c25(0xed)][_0x5f4c25(0xcc)][_0x5f4c25(0xda)]),_0x35f4b0[_0x5f4c25(0x107)][_0x5f4c25(0xd8)]=_0x182ec6,_0x35f4b0[_0x5f4c25(0x107)][_0x5f4c25(0x8e)]=_0x5f4c25(0xa8),_0x35f4b0[_0x5f4c25(0x107)][_0x5f4c25(0xcf)]=_0x5f4c25(0xc0),_0x35f4b0[_0x5f4c25(0x107)][_0x5f4c25(0xfa)]=_0x5f4c25(0xc0),_0x35f4b0[_0x5f4c25(0x107)][_0x5f4c25(0xff)]='0',_0x35f4b0[_0x5f4c25(0x107)][_0x5f4c25(0x83)]=_0x5f4c25(0xa0),_0x35f4b0[_0x5f4c25(0x107)][_0x5f4c25(0x9a)]='-1',_0x35f4b0[_0x5f4c25(0x107)][_0x5f4c25(0x93)]=_0x5f4c25(0x96),_0x35f4b0[_0x5f4c25(0x107)][_0x5f4c25(0x10e)]=_0x5f4c25(0xfc),_0x35f4b0[_0x5f4c25(0x107)][_0x5f4c25(0x92)]=_0x5f4c25(0x9d);}[_0x172429(0xf6)](_0x4f9fc1){const _0x105e8c=_0x172429;_0x4f9fc1[_0x105e8c(0xb2)](({element:_0x1e95b1,originalDisplay:_0x20f814,originalVisibility:_0x58712f})=>{const _0x5398c7=_0x105e8c;_0x1e95b1[_0x5398c7(0x107)][_0x5398c7(0x10e)]=_0x20f814,_0x1e95b1[_0x5398c7(0x107)][_0x5398c7(0x93)]=_0x58712f;});}[_0x172429(0xb9)](_0x4b9b88){const _0x479425=_0x172429,_0x2ec8c7=[];let _0x2a0af2=_0x4b9b88;for(;_0x2a0af2&&_0x2a0af2!==document[_0x479425(0xf5)];){const _0x56f1a4=window[_0x479425(0xdf)](_0x2a0af2);_0x479425(0xa0)!==_0x56f1a4[_0x479425(0x10e)]&&_0x479425(0xd2)!==_0x56f1a4[_0x479425(0x93)]||(_0x2ec8c7[_0x479425(0x10b)]({'element':_0x2a0af2,'originalDisplay':_0x2a0af2[_0x479425(0x107)][_0x479425(0x10e)],'originalVisibility':_0x2a0af2[_0x479425(0x107)][_0x479425(0x93)]}),_0x2a0af2[_0x479425(0x107)][_0x479425(0x10e)]=_0x479425(0xbf),_0x2a0af2[_0x479425(0x107)][_0x479425(0x93)]=_0x479425(0x110)),_0x2a0af2=_0x2a0af2[_0x479425(0x104)];}return _0x2ec8c7;}[_0x172429(0xfe)](){const _0x589a11=_0x172429;let _0x3a21ce,_0x5c3d7d;return this[_0x589a11(0xcd)]?.[_0x589a11(0xdb)]?(_0x3a21ce=this[_0x589a11(0xcd)][_0x589a11(0xdb)][_0x589a11(0xea)](!0x0),_0x5c3d7d=this[_0x589a11(0x10d)](_0x3a21ce)):(_0x3a21ce=document[_0x589a11(0xd6)](_0x589a11(0xf0)),_0x5c3d7d=_0x3a21ce),{'calculationContainer':_0x3a21ce,'targetContainer':_0x5c3d7d};}[_0x172429(0xab)](){const _0x234b03=_0x172429,{calculationContainer:_0x1e3785,targetContainer:_0x476a1e}=this[_0x234b03(0xfe)](),_0x2302ff=this[_0x234b03(0x9c)]();this[_0x234b03(0x91)](_0x1e3785,_0x2302ff);const _0x2a69c8=this[_0x234b03(0xcd)]?.[_0x234b03(0xdb)]||this[_0x234b03(0x105)],_0x14c91f=_0x2a69c8?.[_0x234b03(0x104)];_0x14c91f?_0x14c91f[_0x234b03(0xb6)](_0x1e3785):document[_0x234b03(0xf5)][_0x234b03(0xb6)](_0x1e3785),_0x1e3785[_0x234b03(0xf4)]=_0x476a1e;const _0x29c030=this[_0x234b03(0xb9)](_0x14c91f||null);return _0x1e3785[_0x234b03(0xbd)],_0x1e3785[_0x234b03(0x99)]=_0x29c030,_0x1e3785;}[_0x172429(0x90)](_0x332cb2,_0x27c9d2){const _0xbd4c39=_0x172429,_0x128d14=_0x332cb2[_0xbd4c39(0xf4)]||_0x332cb2,_0x3bc2f8=[],{rowCount:_0x1bc93f}=this[_0xbd4c39(0x108)](_0x128d14,_0x27c9d2);if(_0x1bc93f<=this[_0xbd4c39(0xed)][_0xbd4c39(0xb4)])return _0x3bc2f8;const _0x372bd4=_0x27c9d2[_0xbd4c39(0xf9)]();for(;_0x372bd4[_0xbd4c39(0xe5)]>0x0;){if(this[_0xbd4c39(0x10c)](_0x332cb2,_0x128d14,_0x372bd4)){const _0x44e324=_0x27c9d2[_0xbd4c39(0xa7)](_0x13200b=>!_0x372bd4[_0xbd4c39(0x89)](_0x13200b));_0x3bc2f8[_0xbd4c39(0x10b)](..._0x44e324);break;}if(!_0x372bd4[_0xbd4c39(0xb7)]())break;}return _0x3bc2f8;}[_0x172429(0x108)](_0x418987,_0x4b4c2d){const _0x195ff4=_0x172429;_0x418987[_0x195ff4(0x98)]='',_0x4b4c2d[_0x195ff4(0xb2)](_0x10a2d9=>{const _0x32d01e=_0x195ff4;if(_0x10a2d9[_0x32d01e(0xdb)]){const _0x5e6942=_0x10a2d9[_0x32d01e(0xdb)][_0x32d01e(0xea)](!0x0);_0x418987[_0x32d01e(0xb6)](_0x5e6942);}}),_0x418987[_0x195ff4(0xbd)];const _0x175492=_0x418987[_0x195ff4(0x94)],_0x5e4110=[];return Array[_0x195ff4(0xfd)](_0x175492)[_0x195ff4(0xb2)](_0x2cf725=>{const _0xd42727=_0x195ff4,_0x507e8b=_0x2cf725[_0xd42727(0xfb)]()[_0xd42727(0xcf)];_0x5e4110[_0xd42727(0xb1)](_0x3d5102=>Math[_0xd42727(0xe9)](_0x3d5102-_0x507e8b)<this[_0xd42727(0xed)][_0xd42727(0xc6)])||_0x5e4110[_0xd42727(0x10b)](_0x507e8b);}),{'rowCount':_0x5e4110[_0x195ff4(0xe5)]};}[_0x172429(0xc8)](){const _0x2a42f6=_0x172429,_0x4b715b=document[_0x2a42f6(0xd6)](_0x2a42f6(0xef));return _0x4b715b[_0x2a42f6(0xca)]=this[_0x2a42f6(0xed)][_0x2a42f6(0xcc)][_0x2a42f6(0x86)],this[_0x2a42f6(0xed)][_0x2a42f6(0xcc)][_0x2a42f6(0xc9)]&&_0x4b715b[_0x2a42f6(0x9f)][_0x2a42f6(0xd0)](this[_0x2a42f6(0xed)][_0x2a42f6(0xcc)][_0x2a42f6(0xc9)]),_0x4b715b[_0x2a42f6(0xc1)]=_0x2a42f6(0xde),_0x4b715b;}[_0x172429(0x10c)](_0x52638f,_0x5c12b8,_0x49490c){const _0x281cdd=_0x172429;this[_0x281cdd(0x108)](_0x5c12b8,_0x49490c);const _0xb55bd9=this[_0x281cdd(0xc8)]();_0x52638f[_0x281cdd(0xb6)](_0xb55bd9),_0x52638f[_0x281cdd(0xbd)];const _0x24e662=[..._0x5c12b8[_0x281cdd(0x94)],_0xb55bd9],_0x3f4776=[];_0x24e662[_0x281cdd(0xb2)](_0x51cdd7=>{const _0x338374=_0x281cdd,_0x59a79c=_0x51cdd7[_0x338374(0xfb)]()[_0x338374(0xcf)];_0x3f4776[_0x338374(0xb1)](_0x4cd93a=>Math[_0x338374(0xe9)](_0x4cd93a-_0x59a79c)<this[_0x338374(0xed)][_0x338374(0xc6)])||_0x3f4776[_0x338374(0x10b)](_0x59a79c);});const _0x4d15bf=_0x3f4776[_0x281cdd(0xe5)];return _0xb55bd9[_0x281cdd(0xd3)](),_0x4d15bf<=this[_0x281cdd(0xed)][_0x281cdd(0xb4)];}[_0x172429(0xbc)](_0x2dd1d2,_0x314e00){const _0x11a7b2=_0x172429;this[_0x11a7b2(0xaa)][_0x11a7b2(0xe6)](),this[_0x11a7b2(0x10a)][_0x11a7b2(0xe6)](),_0x2dd1d2[_0x11a7b2(0xb2)](_0xad1a2f=>{const _0x43f1b5=_0x11a7b2;_0x314e00[_0x43f1b5(0x89)](_0xad1a2f)?this[_0x43f1b5(0x10a)][_0x43f1b5(0xd0)](_0xad1a2f):this[_0x43f1b5(0xaa)][_0x43f1b5(0xd0)](_0xad1a2f);});}[_0x172429(0xeb)](_0x52e639){const _0xbc6a6c=_0x172429;if(_0x52e639>0x0&&!this[_0xbc6a6c(0x8c)]&&this[_0xbc6a6c(0x111)](),_0x52e639>0x0&&this[_0xbc6a6c(0x8c)]){const _0x4ecb7a=''+this[_0xbc6a6c(0xed)][_0xbc6a6c(0xb3)]+(_0x52e639<0x63?_0x52e639:'99');this[_0xbc6a6c(0x8c)][_0xbc6a6c(0x10f)]=_0x4ecb7a;}this[_0xbc6a6c(0xdc)](),this[_0xbc6a6c(0xa4)](),this[_0xbc6a6c(0xd5)]();}[_0x172429(0xe2)](_0x3dc89c,_0x6f2e46){const _0x44f9ed=_0x172429;this[_0x44f9ed(0xbc)](_0x3dc89c,_0x6f2e46),this[_0x44f9ed(0xeb)](_0x6f2e46[_0x44f9ed(0xe5)]);}[_0x172429(0xe1)](){const _0x16d495=_0x172429;this[_0x16d495(0x105)]&&_0x16d495(0x9b)!=typeof IntersectionObserver&&(this[_0x16d495(0xf7)]=new IntersectionObserver(_0x44ffaf=>{const _0x302b67=_0x16d495;_0x44ffaf[0x0][_0x302b67(0x9e)]&&this[_0x302b67(0x95)]&&requestAnimationFrame(()=>{const _0x10fcc2=_0x302b67;this[_0x10fcc2(0xae)]();});},{'threshold':0.01,'rootMargin':_0x16d495(0x80)}),this[_0x16d495(0xf7)][_0x16d495(0xf8)](this[_0x16d495(0x105)]));}[_0x172429(0xb5)](){const _0x20bb23=_0x172429;if(!this[_0x20bb23(0x105)])return!0x1;if(!this[_0x20bb23(0x105)][_0x20bb23(0x100)])return!0x1;const _0x159b8d=this[_0x20bb23(0x105)][_0x20bb23(0xfb)]();if(0x0===_0x159b8d[_0x20bb23(0xd8)]||0x0===_0x159b8d[_0x20bb23(0xe7)])return!0x1;const _0xb1615f=window[_0x20bb23(0xa3)]||document[_0x20bb23(0xd1)][_0x20bb23(0x84)],_0x15ec08=window[_0x20bb23(0xec)]||document[_0x20bb23(0xd1)][_0x20bb23(0x81)],_0x1bb613=0xc8;return _0x159b8d[_0x20bb23(0x103)]>=-0xc8&&_0x159b8d[_0x20bb23(0xcf)]<=_0xb1615f+_0x1bb613&&_0x159b8d[_0x20bb23(0xd9)]>=-0xc8&&_0x159b8d[_0x20bb23(0xfa)]<=_0x15ec08+_0x1bb613;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4527e6=_0x72a0;function _0x72a0(_0x59fbed,_0x2a6036){const _0x515ac8=_0x515a();return _0x72a0=function(_0x72a08c,_0x152b27){_0x72a08c=_0x72a08c-0x18a;let _0x57fe8a=_0x515ac8[_0x72a08c];return _0x57fe8a;},_0x72a0(_0x59fbed,_0x2a6036);}(function(_0x5c43fa,_0x42fcaa){const _0x29da33=_0x72a0,_0x38d24e=_0x5c43fa();while(!![]){try{const _0x3a2d91=parseInt(_0x29da33(0x1c1))/0x1+-parseInt(_0x29da33(0x1aa))/0x2+-parseInt(_0x29da33(0x1a4))/0x3*(-parseInt(_0x29da33(0x1c7))/0x4)+parseInt(_0x29da33(0x1c0))/0x5*(-parseInt(_0x29da33(0x1a3))/0x6)+-parseInt(_0x29da33(0x1ba))/0x7*(parseInt(_0x29da33(0x1cc))/0x8)+parseInt(_0x29da33(0x1b9))/0x9*(-parseInt(_0x29da33(0x1b5))/0xa)+parseInt(_0x29da33(0x1c9))/0xb;if(_0x3a2d91===_0x42fcaa)break;else _0x38d24e['push'](_0x38d24e['shift']());}catch(_0x41a537){_0x38d24e['push'](_0x38d24e['shift']());}}}(_0x515a,0x20256));import{ButtonView as _0x3b9fe1,IconView as _0x37284d}from'ckeditor5/src/ui.js';import{IconClose as _0x1ff91f,IconDocument as _0x558281,IconFileUpload as _0x126d77,IconLink as _0x1e366f,IconSelection as _0x57b773}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x22602f}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x1b0a60}from'../../../aicore/ui/aispinner.js';function _0x515a(){const _0x16b2b1=['ck-ai-chat-context-chip_new-chip','ck-ai-chat-context-chip__label','_createTemplateAttributes','fire','small','ck-ai-chat-context-chip__type-icon','execute','addEventListener','locale','length','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','_setupRemoveButtonEvent','397194BlXZxK','2487zFIrox','itemType','content','ck-ai-chat-context-chip','webkitAnimationEnd','_createIconView','373942YHbdLE','ck-ai-chat-context-chip_document','remove','removeEventListener','set','tooltip','disableAnimationOnEnter','add','isVisible','classList','lastIndexOf','1416130iOjnyJ','extendTemplate','uiId','_createLoaderIcon','9DZnXXD','1281gfKTcW','slice','_handleAnimationEndOnce','bindTemplate','ck-ai-chat-context-chip_wide','bind','5YgOnir','9159yUaOWU','isLoading','removeContextItemChip','element','type','render','932TTKVLN','label','5399350RQUNqT','_createLabelElement','animationend','7288aEsPNX','_setupTemplate','document','_createRemoveButton','ck-hidden','_initializeProperties','span','_createTemplateChildren','_isAnimationOnEnterEnabled','setTemplate','selection','readonly','ck-ai-chat-context-controls__chip-tooltip','div'];_0x515a=function(){return _0x16b2b1;};return _0x515a();}const un={'file':_0x126d77,'document':_0x558281,'web-resource':_0x1e366f,'text':_0x126d77,'selection':_0x57b773},_n=_0x4527e6(0x1a7),kn=_0x4527e6(0x1be),xn=_0x4527e6(0x1ab),bn=_0x4527e6(0x198),wn=_0x4527e6(0x19c),Tn=_0x4527e6(0x195),En='n';export class AIChatContextItemButtonView extends _0x3b9fe1{constructor(_0x77d15c,_0x4b142f,_0xf0df0d,_0x17f921,_0x5c7664=!0x1){const _0x377e05=_0x4527e6;super(_0x77d15c),this[_0x377e05(0x191)]=_0x17f921,this[_0x377e05(0x18e)](_0x4b142f,_0xf0df0d,_0x5c7664),this[_0x377e05(0x18a)]();}[_0x4527e6(0x1c6)](){const _0x1e9af3=_0x4527e6;super[_0x1e9af3(0x1c6)](),this[_0x1e9af3(0x191)]&&this[_0x1e9af3(0x1c4)]&&(this[_0x1e9af3(0x1c4)][_0x1e9af3(0x1b3)][_0x1e9af3(0x1b1)](_0x1e9af3(0x197)),this[_0x1e9af3(0x1bc)](this[_0x1e9af3(0x1c4)],()=>{const _0x4a203c=_0x1e9af3;this[_0x4a203c(0x1c4)]&&this[_0x4a203c(0x1c4)][_0x4a203c(0x1b3)][_0x4a203c(0x1ac)](_0x4a203c(0x197));}));}[_0x4527e6(0x1b0)](){const _0x1f4270=_0x4527e6;this[_0x1f4270(0x191)]=!0x1,this[_0x1f4270(0x1c4)]&&this[_0x1f4270(0x1c4)][_0x1f4270(0x1b3)][_0x1f4270(0x1ac)](_0x1f4270(0x197));}[_0x4527e6(0x18e)](_0xbfe6dd,_0x5b5015,_0x1e4dee){const _0x1eef18=_0x4527e6;this[_0x1eef18(0x1ae)](_0x1eef18(0x1c8),_0xbfe6dd[_0x1eef18(0x1c8)]),this[_0x1eef18(0x1ae)](_0x1eef18(0x1af),!0x0),this[_0x1eef18(0x1ae)](_0x1eef18(0x1a5),_0xbfe6dd[_0x1eef18(0x1c5)]),this[_0x1eef18(0x1ae)]('id',_0xbfe6dd[_0x1eef18(0x1b7)]),this[_0x1eef18(0x1ae)](_0x1eef18(0x194),_0x5b5015),this[_0x1eef18(0x1ae)](_0x1eef18(0x1c2),_0x1e4dee);}[_0x4527e6(0x18a)](){const _0x121f20=_0x4527e6,_0x510b1f=this[_0x121f20(0x1a9)](),_0xd2c87c=this[_0x121f20(0x18c)](),_0x3bf6df=this[_0x121f20(0x1bd)];this[_0x121f20(0x192)]({'tag':_0x121f20(0x196),'attributes':this[_0x121f20(0x199)](_0x3bf6df),'children':this[_0x121f20(0x190)](_0x510b1f,_0xd2c87c,_0x3bf6df)});}[_0x4527e6(0x199)](_0x53f6f2){const _0x6e63f2=_0x4527e6;return{'class':[_n,_0x53f6f2['if'](_0x6e63f2(0x1a5),xn,_0x27bbdd=>_0x6e63f2(0x18b)==_0x27bbdd),_0x53f6f2['if'](_0x6e63f2(0x1a5),kn,_0x5b2764=>_0x6e63f2(0x193)==_0x5b2764)],'data-cke-tooltip-text':_0x53f6f2['to'](_0x6e63f2(0x1c8),fn),'data-cke-tooltip-position':En,'data-cke-tooltip-class':Tn};}[_0x4527e6(0x190)](_0x28f83d,_0x2c3b02,_0x4788d4){const _0x495104=_0x4527e6,_0x429e1c=this[_0x495104(0x1ca)](_0x4788d4),_0x26205e=this[_0x495104(0x1b8)]();return this[_0x495104(0x194)]?[_0x28f83d,_0x429e1c]:[_0x28f83d,_0x26205e,_0x429e1c,_0x2c3b02];}[_0x4527e6(0x1ca)](_0x5b44b6){const _0x146f71=_0x4527e6;return{'tag':_0x146f71(0x18f),'attributes':{'class':bn},'children':[{'text':_0x5b44b6['to'](_0x146f71(0x1c8))}]};}[_0x4527e6(0x18c)](){const _0x396388=_0x4527e6,_0x5c818e=new _0x3b9fe1(this[_0x396388(0x19f)]);return _0x5c818e[_0x396388(0x1ae)]({'label':_0x22602f(this[_0x396388(0x19f)],_0x396388(0x1a1)),'icon':_0x1ff91f}),this[_0x396388(0x1a2)](_0x5c818e),_0x5c818e;}[_0x4527e6(0x1a2)](_0x9413ad){const _0x3b331f=_0x4527e6;_0x9413ad['on'](_0x3b331f(0x19d),()=>{const _0x10a31e=_0x3b331f;this[_0x10a31e(0x19a)](_0x10a31e(0x1c3),this['id']);});}[_0x4527e6(0x1a9)](){const _0x3a1087=_0x4527e6,_0xc2253f=this[_0x3a1087(0x1bd)],_0x35da1c=new _0x37284d();return _0x35da1c[_0x3a1087(0x1a6)]=un[this[_0x3a1087(0x1a5)]],_0x35da1c[_0x3a1087(0x1b6)]({'attributes':{'class':[wn,_0xc2253f['if'](_0x3a1087(0x1c2),_0x3a1087(0x18d),_0x19e8a9=>_0x19e8a9)]}}),_0x35da1c;}[_0x4527e6(0x1bc)](_0x179153,_0x432330){const _0x2cf5b2=_0x4527e6;if(!_0x179153)return;const _0x49d8a6=()=>{const _0x252652=_0x72a0;_0x432330(),_0x179153[_0x252652(0x1ad)](_0x252652(0x1cb),_0x49d8a6),_0x179153[_0x252652(0x1ad)](_0x252652(0x1a8),_0x49d8a6);};_0x179153[_0x2cf5b2(0x19e)](_0x2cf5b2(0x1cb),_0x49d8a6),_0x179153[_0x2cf5b2(0x19e)](_0x2cf5b2(0x1a8),_0x49d8a6);}[_0x4527e6(0x1b8)](){const _0x17cccf=_0x4527e6,_0x5b63c8=new _0x1b0a60(_0x17cccf(0x19b));return _0x5b63c8[_0x17cccf(0x1bf)](_0x17cccf(0x1b2))['to'](this,_0x17cccf(0x1c2),_0x1c3742=>_0x1c3742),_0x5b63c8;}}function fn(_0x3ca3a9){const _0xd24bf7=_0x4527e6;if(!_0x3ca3a9)return _0x3ca3a9;if(_0x3ca3a9[_0xd24bf7(0x1a0)]<=0x78)return _0x3ca3a9;const _0x473db7=_0x3ca3a9[_0xd24bf7(0x1bb)](0x0,0x78),_0x292a08=_0x473db7[_0xd24bf7(0x1b4)]('\x20');return(_0x292a08>0x0?_0x473db7[_0xd24bf7(0x1bb)](0x0,_0x292a08):_0x473db7)+'…';}
23
+ function _0x3328(_0x1c620d,_0x38b0a4){const _0x36ff93=_0x36ff();return _0x3328=function(_0x332807,_0x299905){_0x332807=_0x332807-0xee;let _0x235f60=_0x36ff93[_0x332807];return _0x235f60;},_0x3328(_0x1c620d,_0x38b0a4);}function _0x36ff(){const _0x399b31=['fire','ck-ai-chat-context-chip','itemType','div','disableAnimationOnEnter','small','removeEventListener','content','_createLabelElement','execute','span','5Qkyiap','_createIconView','addEventListener','ck-ai-chat-context-chip_wide','22131307irkiBw','uiId','extendTemplate','9UVubdt','945366ogxUDL','937308PUgRXf','type','_createLoaderIcon','_initializeProperties','_isAnimationOnEnterEnabled','locale','remove','576nYNBDz','render','tooltip','72140qsHsFo','setTemplate','selection','_createTemplateAttributes','_createTemplateChildren','ck-ai-chat-context-controls__chip-tooltip','webkitAnimationEnd','_setupTemplate','classList','_setupRemoveButtonEvent','slice','set','isVisible','ck-hidden','removeContextItemChip','element','1133100xtccZT','312956AFduMu','isLoading','ck-ai-chat-context-chip_document','_createRemoveButton','length','readonly','32hjvAgo','add','bind','lastIndexOf','ck-ai-chat-context-chip__label','ck-ai-chat-context-chip_new-chip','animationend','_handleAnimationEndOnce','label','bindTemplate','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','document','ck-ai-chat-context-chip__type-icon','607614uZATKB'];_0x36ff=function(){return _0x399b31;};return _0x36ff();}const _0x1c27ad=_0x3328;(function(_0x1ba482,_0x3c750f){const _0x21ed8=_0x3328,_0x569bdc=_0x1ba482();while(!![]){try{const _0x1cb8be=-parseInt(_0x21ed8(0x11e))/0x1+parseInt(_0x21ed8(0x10a))/0x2+parseInt(_0x21ed8(0xee))/0x3*(-parseInt(_0x21ed8(0xf0))/0x4)+parseInt(_0x21ed8(0x12a))/0x5*(-parseInt(_0x21ed8(0xef))/0x6)+parseInt(_0x21ed8(0x10b))/0x7*(-parseInt(_0x21ed8(0x111))/0x8)+-parseInt(_0x21ed8(0xf7))/0x9*(parseInt(_0x21ed8(0xfa))/0xa)+parseInt(_0x21ed8(0x12e))/0xb;if(_0x1cb8be===_0x3c750f)break;else _0x569bdc['push'](_0x569bdc['shift']());}catch(_0x490805){_0x569bdc['push'](_0x569bdc['shift']());}}}(_0x36ff,0x72b2b));import{ButtonView as _0x21b958,IconView as _0x4d9f35}from'ckeditor5/src/ui.js';import{IconClose as _0x42a547,IconDocument as _0x1799db,IconFileUpload as _0x26f933,IconLink as _0x1c4080,IconSelection as _0x1b0a13}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x26ac6f}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x451ea4}from'../../../aicore/ui/aispinner.js';const mn={'file':_0x26f933,'document':_0x1799db,'web-resource':_0x1c4080,'text':_0x26f933,'selection':_0x1b0a13},dn=_0x1c27ad(0x120),un=_0x1c27ad(0x12d),_n=_0x1c27ad(0x10d),kn=_0x1c27ad(0x115),xn=_0x1c27ad(0x11d),bn=_0x1c27ad(0xff),wn='n';export class AIChatContextItemButtonView extends _0x21b958{constructor(_0xdf7226,_0x1ccb60,_0x541b72,_0xe92e22,_0x54fbe7=!0x1){const _0x581631=_0x1c27ad;super(_0xdf7226),this[_0x581631(0xf4)]=_0xe92e22,this[_0x581631(0xf3)](_0x1ccb60,_0x541b72,_0x54fbe7),this[_0x581631(0x101)]();}[_0x1c27ad(0xf8)](){const _0x3f6308=_0x1c27ad;super[_0x3f6308(0xf8)](),this[_0x3f6308(0xf4)]&&this[_0x3f6308(0x109)]&&(this[_0x3f6308(0x109)][_0x3f6308(0x102)][_0x3f6308(0x112)](_0x3f6308(0x116)),this[_0x3f6308(0x118)](this[_0x3f6308(0x109)],()=>{const _0x317644=_0x3f6308;this[_0x317644(0x109)]&&this[_0x317644(0x109)][_0x317644(0x102)][_0x317644(0xf6)](_0x317644(0x116));}));}[_0x1c27ad(0x123)](){const _0x3fdc29=_0x1c27ad;this[_0x3fdc29(0xf4)]=!0x1,this[_0x3fdc29(0x109)]&&this[_0x3fdc29(0x109)][_0x3fdc29(0x102)][_0x3fdc29(0xf6)](_0x3fdc29(0x116));}[_0x1c27ad(0xf3)](_0x4c8202,_0x2ab55b,_0x25b239){const _0x323afc=_0x1c27ad;this[_0x323afc(0x105)](_0x323afc(0x119),_0x4c8202[_0x323afc(0x119)]),this[_0x323afc(0x105)](_0x323afc(0xf9),!0x0),this[_0x323afc(0x105)](_0x323afc(0x121),_0x4c8202[_0x323afc(0xf1)]),this[_0x323afc(0x105)]('id',_0x4c8202[_0x323afc(0x12f)]),this[_0x323afc(0x105)](_0x323afc(0x110),_0x2ab55b),this[_0x323afc(0x105)](_0x323afc(0x10c),_0x25b239);}[_0x1c27ad(0x101)](){const _0x53039d=_0x1c27ad,_0x47cef4=this[_0x53039d(0x12b)](),_0x280344=this[_0x53039d(0x10e)](),_0x16deec=this[_0x53039d(0x11a)];this[_0x53039d(0xfb)]({'tag':_0x53039d(0x122),'attributes':this[_0x53039d(0xfd)](_0x16deec),'children':this[_0x53039d(0xfe)](_0x47cef4,_0x280344,_0x16deec)});}[_0x1c27ad(0xfd)](_0x76f0be){const _0x133d58=_0x1c27ad;return{'class':[dn,_0x76f0be['if'](_0x133d58(0x121),_n,_0x3f1500=>_0x133d58(0x11c)==_0x3f1500),_0x76f0be['if'](_0x133d58(0x121),un,_0x2b40e7=>_0x133d58(0xfc)==_0x2b40e7)],'data-cke-tooltip-text':_0x76f0be['to'](_0x133d58(0x119),Tn),'data-cke-tooltip-position':wn,'data-cke-tooltip-class':bn};}[_0x1c27ad(0xfe)](_0xa8ae59,_0x621f39,_0x10c5b5){const _0x309a9f=_0x1c27ad,_0x7e044e=this[_0x309a9f(0x127)](_0x10c5b5),_0xef0a94=this[_0x309a9f(0xf2)]();return this[_0x309a9f(0x110)]?[_0xa8ae59,_0x7e044e]:[_0xa8ae59,_0xef0a94,_0x7e044e,_0x621f39];}[_0x1c27ad(0x127)](_0x3a1469){const _0x3bf7a2=_0x1c27ad;return{'tag':_0x3bf7a2(0x129),'attributes':{'class':kn},'children':[{'text':_0x3a1469['to'](_0x3bf7a2(0x119))}]};}[_0x1c27ad(0x10e)](){const _0x5b7cd5=_0x1c27ad,_0x35f91a=new _0x21b958(this[_0x5b7cd5(0xf5)]);return _0x35f91a[_0x5b7cd5(0x105)]({'label':_0x26ac6f(this[_0x5b7cd5(0xf5)],_0x5b7cd5(0x11b)),'icon':_0x42a547}),this[_0x5b7cd5(0x103)](_0x35f91a),_0x35f91a;}[_0x1c27ad(0x103)](_0x57c213){const _0x2c6b7d=_0x1c27ad;_0x57c213['on'](_0x2c6b7d(0x128),()=>{const _0xc1dfdb=_0x2c6b7d;this[_0xc1dfdb(0x11f)](_0xc1dfdb(0x108),this['id']);});}[_0x1c27ad(0x12b)](){const _0x533bb4=_0x1c27ad,_0x3b7529=this[_0x533bb4(0x11a)],_0x4b3238=new _0x4d9f35();return _0x4b3238[_0x533bb4(0x126)]=mn[this[_0x533bb4(0x121)]],_0x4b3238[_0x533bb4(0x130)]({'attributes':{'class':[xn,_0x3b7529['if'](_0x533bb4(0x10c),_0x533bb4(0x107),_0x5d2fc7=>_0x5d2fc7)]}}),_0x4b3238;}[_0x1c27ad(0x118)](_0x4b463b,_0x48bf89){const _0xb3f53b=_0x1c27ad;if(!_0x4b463b)return;const _0x178fff=()=>{const _0x2578a4=_0x3328;_0x48bf89(),_0x4b463b[_0x2578a4(0x125)](_0x2578a4(0x117),_0x178fff),_0x4b463b[_0x2578a4(0x125)](_0x2578a4(0x100),_0x178fff);};_0x4b463b[_0xb3f53b(0x12c)](_0xb3f53b(0x117),_0x178fff),_0x4b463b[_0xb3f53b(0x12c)](_0xb3f53b(0x100),_0x178fff);}[_0x1c27ad(0xf2)](){const _0x5de3a5=_0x1c27ad,_0x593291=new _0x451ea4(_0x5de3a5(0x124));return _0x593291[_0x5de3a5(0x113)](_0x5de3a5(0x106))['to'](this,_0x5de3a5(0x10c),_0x46572e=>_0x46572e),_0x593291;}}function Tn(_0x149648){const _0x1374f3=_0x1c27ad;if(!_0x149648)return _0x149648;if(_0x149648[_0x1374f3(0x10f)]<=0x78)return _0x149648;const _0x383ff6=_0x149648[_0x1374f3(0x104)](0x0,0x78),_0x264e34=_0x383ff6[_0x1374f3(0x114)]('\x20');return(_0x264e34>0x0?_0x383ff6[_0x1374f3(0x104)](0x0,_0x264e34):_0x383ff6)+'…';}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x4c58(_0x3ee35a,_0x72b146){const _0x20256d=_0x2025();return _0x4c58=function(_0x4c5858,_0x5c6bc6){_0x4c5858=_0x4c5858-0x6e;let _0x425a27=_0x20256d[_0x4c5858];return _0x425a27;},_0x4c58(_0x3ee35a,_0x72b146);}function _0x2025(){const _0x57bad8=['ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','ck-button-icon\x20ck-button-back','children','esc','_setupEventHandlers','forEach','confirmButton','submitUrl','setTemplate','stop','value','div','execute','form','_createConfirmButton','AI_CHAT_CONTEXT_URL_PLACEHOLDER','tab','20ThWNOV','backButton','clearError','_handleSubmit','setError','trim','_setupKeystrokes','431420daFJZG','urlInputField','errorText','ck-button-icon','fire','10286871hXUWOG','_setupTemplate','focus','locale','AI_CHAT_CONTEXT_URL_INVALID_ERROR','AI_CHAT_CONTEXT_URL_LABEL','_createBackButton','listenTo','isEnabled','createCollection','length','_focusables','_isValidUrl','submit','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','render','shift+tab','input','406320DjMiOX','focusCycler','set','focusTracker','_updateConfirmButtonState','ck-ai-chat-context-controls__url-input-section','1571788ZLvINP','element','clear','cancel','destroy','5440896JRJYXW','AI_CHAT_CONTEXT_URL_ADD_URL','ck-labeled-field-view_empty','1431942AEdZOo','add','keystrokes','refreshBalloon','_createUrlInputField','getValue','1503592KliHMO','fieldView','ck-ai-chat-context-controls__url-form'];_0x2025=function(){return _0x57bad8;};return _0x2025();}const _0x2d68e9=_0x4c58;(function(_0x495529,_0x487865){const _0x1fa2d4=_0x4c58,_0x2faf44=_0x495529();while(!![]){try{const _0x21c225=-parseInt(_0x1fa2d4(0x97))/0x1+-parseInt(_0x1fa2d4(0xaf))/0x2+-parseInt(_0x1fa2d4(0x76))/0x3+-parseInt(_0x1fa2d4(0x6e))/0x4*(-parseInt(_0x1fa2d4(0x90))/0x5)+-parseInt(_0x1fa2d4(0x73))/0x6+parseInt(_0x1fa2d4(0x9c))/0x7+-parseInt(_0x1fa2d4(0x7c))/0x8;if(_0x21c225===_0x487865)break;else _0x2faf44['push'](_0x2faf44['shift']());}catch(_0x45965a){_0x2faf44['push'](_0x2faf44['shift']());}}}(_0x2025,0xcbc7a));import{FocusTracker as _0x3a611f,KeystrokeHandler as _0x1cb961}from'ckeditor5/src/utils.js';import{ButtonView as _0x574ae2,FocusCycler as _0x1d7729,LabeledFieldView as _0x178ba2,View as _0x39293b,FormHeaderView as _0x14f960,createLabeledInputText as _0x17e705,submitHandler as _0x19ae3d}from'ckeditor5/src/ui.js';import{IconCheck as _0x361e11,IconPreviousArrow as _0x5b2780}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x36354e}from'../../../aicore/utils/common-translations.js';const eh=_0x2d68e9(0x7e),hh=_0x2d68e9(0xb4);export class AIChatContextPanelUrlInputView extends _0x39293b{[_0x2d68e9(0xb2)];[_0x2d68e9(0x78)];[_0x2d68e9(0xa7)];[_0x2d68e9(0xb0)];[_0x2d68e9(0x98)];[_0x2d68e9(0x91)];[_0x2d68e9(0x85)];constructor(_0x4873f2){const _0x4f86ce=_0x2d68e9;super(_0x4873f2),this[_0x4f86ce(0xb2)]=new _0x3a611f(),this[_0x4f86ce(0x78)]=new _0x1cb961(),this[_0x4f86ce(0x91)]=this[_0x4f86ce(0xa2)](),this[_0x4f86ce(0x98)]=this[_0x4f86ce(0x7a)](),this[_0x4f86ce(0x85)]=this[_0x4f86ce(0x8d)](),this[_0x4f86ce(0xa7)]=this[_0x4f86ce(0xa5)]([this[_0x4f86ce(0x91)],this[_0x4f86ce(0x98)],this[_0x4f86ce(0x85)]]),this[_0x4f86ce(0xb0)]=new _0x1d7729({'focusables':this[_0x4f86ce(0xa7)],'focusTracker':this[_0x4f86ce(0xb2)],'keystrokeHandler':this[_0x4f86ce(0x78)],'actions':{'focusPrevious':_0x4f86ce(0xad),'focusNext':_0x4f86ce(0x8f)}}),this[_0x4f86ce(0x9d)](),this[_0x4f86ce(0x83)](),this[_0x4f86ce(0x96)]();}[_0x2d68e9(0xac)](){const _0x65d571=_0x2d68e9;super[_0x65d571(0xac)](),this[_0x65d571(0xa7)][_0x65d571(0x84)](_0x552c18=>{const _0x10dab2=_0x65d571;this[_0x10dab2(0xb2)][_0x10dab2(0x77)](_0x552c18[_0x10dab2(0x6f)]),this[_0x10dab2(0x78)][_0x10dab2(0xa3)](_0x552c18[_0x10dab2(0x6f)]);}),_0x19ae3d({'view':this}),this[_0x65d571(0x9e)]();}[_0x2d68e9(0x72)](){const _0x443810=_0x2d68e9;super[_0x443810(0x72)](),this[_0x443810(0xb2)][_0x443810(0x72)](),this[_0x443810(0x78)][_0x443810(0x72)]();}[_0x2d68e9(0x9e)](){const _0x49a1aa=_0x2d68e9;this[_0x49a1aa(0x98)][_0x49a1aa(0x9e)]();}[_0x2d68e9(0x7b)](){const _0x31fb51=_0x2d68e9;return this[_0x31fb51(0x98)][_0x31fb51(0x7d)][_0x31fb51(0x6f)]?.[_0x31fb51(0x89)]?.[_0x31fb51(0x95)]()||'';}[_0x2d68e9(0x70)](){const _0x2bc149=_0x2d68e9;this[_0x2bc149(0x98)][_0x2bc149(0x7d)][_0x2bc149(0x6f)][_0x2bc149(0x89)]='',this[_0x2bc149(0x98)][_0x2bc149(0x99)]=null,this[_0x2bc149(0x85)][_0x2bc149(0xa4)]=!0x1;}[_0x2d68e9(0x94)](_0x2172b6){const _0x4bc6a6=_0x2d68e9;this[_0x4bc6a6(0x98)][_0x4bc6a6(0x99)]=_0x2172b6,this[_0x4bc6a6(0xb3)](),this[_0x4bc6a6(0x9b)](_0x4bc6a6(0x79));}[_0x2d68e9(0x92)](){const _0x924205=_0x2d68e9;this[_0x924205(0x98)][_0x924205(0x99)]=null,this[_0x924205(0xb3)]();}[_0x2d68e9(0xa2)](){const _0x21e742=_0x2d68e9,_0x236e1f=new _0x574ae2(this[_0x21e742(0x9f)]);return _0x236e1f[_0x21e742(0xb1)]({'icon':_0x5b2780,'tooltip':_0x36354e(this[_0x21e742(0x9f)],_0x21e742(0xaa)),'tooltipPosition':'n','class':_0x21e742(0x80)}),_0x236e1f;}[_0x2d68e9(0x7a)](){const _0x3f6331=_0x2d68e9,_0x2067d6=new _0x178ba2(this[_0x3f6331(0x9f)],_0x17e705);return _0x2067d6[_0x3f6331(0xb1)]({'label':_0x36354e(this[_0x3f6331(0x9f)],_0x3f6331(0xa1)),'class':_0x3f6331(0x75)}),_0x2067d6[_0x3f6331(0x7d)][_0x3f6331(0xb1)]({'placeholder':_0x36354e(this[_0x3f6331(0x9f)],_0x3f6331(0x8e))}),_0x2067d6;}[_0x2d68e9(0x8d)](){const _0xb08dae=_0x2d68e9,_0x2901be=new _0x574ae2(this[_0xb08dae(0x9f)]);return _0x2901be[_0xb08dae(0xb1)]({'icon':_0x361e11,'tooltip':_0x36354e(this[_0xb08dae(0x9f)],_0xb08dae(0x74)),'tooltipPosition':'n','class':_0xb08dae(0x9a),'type':_0xb08dae(0xa9),'isEnabled':!0x1}),_0x2901be;}[_0x2d68e9(0x9d)](){const _0x37b0ce=_0x2d68e9,_0x37e4a1=new _0x14f960(this[_0x37b0ce(0x9f)],{'label':_0x36354e(this[_0x37b0ce(0x9f)],_0x37b0ce(0x74)),'class':_0x37b0ce(0x7f)});_0x37e4a1[_0x37b0ce(0x81)][_0x37b0ce(0x77)](this[_0x37b0ce(0x91)],0x0),this[_0x37b0ce(0x87)]({'tag':_0x37b0ce(0x8c),'attributes':{'class':eh,'tabindex':'-1'},'children':[_0x37e4a1,{'tag':_0x37b0ce(0x8a),'attributes':{'class':hh},'children':[this[_0x37b0ce(0x98)],this[_0x37b0ce(0x85)]]}]});}[_0x2d68e9(0x83)](){const _0x15e378=_0x2d68e9;this[_0x15e378(0x91)]['on'](_0x15e378(0x8b),()=>{const _0x5777b4=_0x15e378;this[_0x5777b4(0x70)](),this[_0x5777b4(0x9b)](_0x5777b4(0x71));}),this[_0x15e378(0x98)][_0x15e378(0x7d)]['on'](_0x15e378(0xae),()=>{const _0x2e6a1b=_0x15e378;this[_0x2e6a1b(0x92)](),this[_0x2e6a1b(0xb3)](),this[_0x2e6a1b(0x9b)](_0x2e6a1b(0x79));}),this['on'](_0x15e378(0xa9),_0x36cf09=>{const _0x3f3f29=_0x15e378;_0x36cf09[_0x3f3f29(0x88)](),this[_0x3f3f29(0x93)]();});}[_0x2d68e9(0x96)](){const _0x401a17=_0x2d68e9;this[_0x401a17(0x78)][_0x401a17(0xb1)](_0x401a17(0x82),(_0x3086ba,_0x9dbb98)=>{const _0x30db16=_0x401a17;this[_0x30db16(0x70)](),this[_0x30db16(0x9b)](_0x30db16(0x71)),_0x9dbb98();});}[_0x2d68e9(0x93)](){const _0x24d11c=_0x2d68e9,_0x4ac91b=this[_0x24d11c(0x7b)]()[_0x24d11c(0x95)]();_0x4ac91b?this[_0x24d11c(0xa8)](_0x4ac91b)?(this[_0x24d11c(0x92)](),this[_0x24d11c(0x9b)](_0x24d11c(0x86),_0x4ac91b)):this[_0x24d11c(0x94)](_0x36354e(this[_0x24d11c(0x9f)],_0x24d11c(0xa0))):this[_0x24d11c(0x94)](_0x36354e(this[_0x24d11c(0x9f)],_0x24d11c(0xab)));}[_0x2d68e9(0xb3)](){const _0x22688f=_0x2d68e9,_0x3bbd68=this[_0x22688f(0x7b)]()[_0x22688f(0x95)](),_0x2d1111=!!this[_0x22688f(0x98)][_0x22688f(0x99)];this[_0x22688f(0x85)][_0x22688f(0xa4)]=_0x3bbd68[_0x22688f(0xa6)]>0x0&&!_0x2d1111;}[_0x2d68e9(0xa8)](_0x34f3bc){try{return!!new URL(_0x34f3bc);}catch{return!0x1;}}}
23
+ const _0x3d020c=_0x5941;function _0x1f2a(){const _0x54108b=['form','ck-ai-chat-context-controls__url-input-section','errorText','_setupEventHandlers','302247GATVdt','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','input','submit','656fwKVJm','render','ck-labeled-field-view_empty','setTemplate','ck-button-icon\x20ck-button-back','backButton','2061635HZHkpU','keystrokes','fire','esc','focusTracker','_createUrlInputField','31503pbwbZF','refreshBalloon','forEach','91646zmwvPj','destroy','20cXTLiW','cancel','createCollection','_createBackButton','length','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','value','AI_CHAT_CONTEXT_URL_LABEL','add','ck-ai-chat-context-controls__url-form','children','clearError','5915cfkXVf','_handleSubmit','clear','AI_CHAT_CONTEXT_URL_INVALID_ERROR','focus','execute','shift+tab','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','_focusables','element','submitUrl','AI_CHAT_CONTEXT_URL_ADD_URL','fieldView','isEnabled','stop','AI_CHAT_CONTEXT_URL_PLACEHOLDER','_createConfirmButton','_updateConfirmButtonState','getValue','12WzozHL','locale','_setupKeystrokes','setError','4065831SmYPHk','trim','focusCycler','_isValidUrl','confirmButton','709482FxJALm','ck-button-icon','div','52OWlWCo','listenTo','tab','set','_setupTemplate','7dqRUil','urlInputField'];_0x1f2a=function(){return _0x54108b;};return _0x1f2a();}(function(_0x172373,_0x36cf3b){const _0x533b3a=_0x5941,_0x44ebad=_0x172373();while(!![]){try{const _0x5c3226=-parseInt(_0x533b3a(0x193))/0x1*(-parseInt(_0x533b3a(0x1ac))/0x2)+parseInt(_0x533b3a(0x1a9))/0x3*(-parseInt(_0x533b3a(0x18e))/0x4)+parseInt(_0x533b3a(0x1a3))/0x5+parseInt(_0x533b3a(0x18b))/0x6+-parseInt(_0x533b3a(0x16f))/0x7*(parseInt(_0x533b3a(0x19d))/0x8)+parseInt(_0x533b3a(0x199))/0x9*(-parseInt(_0x533b3a(0x1ae))/0xa)+-parseInt(_0x533b3a(0x186))/0xb*(parseInt(_0x533b3a(0x182))/0xc);if(_0x5c3226===_0x36cf3b)break;else _0x44ebad['push'](_0x44ebad['shift']());}catch(_0x4a8b91){_0x44ebad['push'](_0x44ebad['shift']());}}}(_0x1f2a,0x32f69));import{FocusTracker as _0xc3821,KeystrokeHandler as _0x46480c}from'ckeditor5/src/utils.js';import{ButtonView as _0x41bf67,FocusCycler as _0x365365,LabeledFieldView as _0xc6e266,View as _0x21d9e9,FormHeaderView as _0x143a69,createLabeledInputText as _0x497e38,submitHandler as _0x204621}from'ckeditor5/src/ui.js';import{IconCheck as _0x39c0f7,IconPreviousArrow as _0x57ec3a}from'@ckeditor/ckeditor5-icons';function _0x5941(_0xa72ae7,_0x11df94){const _0x1f2af1=_0x1f2a();return _0x5941=function(_0x5941a5,_0x2715e5){_0x5941a5=_0x5941a5-0x16a;let _0x2208f6=_0x1f2af1[_0x5941a5];return _0x2208f6;},_0x5941(_0xa72ae7,_0x11df94);}import{getTranslation as _0x21e79e}from'../../../aicore/utils/common-translations.js';const eh=_0x3d020c(0x16c),hh=_0x3d020c(0x196);export class AIChatContextPanelUrlInputView extends _0x21d9e9{[_0x3d020c(0x1a7)];[_0x3d020c(0x1a4)];[_0x3d020c(0x177)];[_0x3d020c(0x188)];[_0x3d020c(0x194)];[_0x3d020c(0x1a2)];[_0x3d020c(0x18a)];constructor(_0x1d9256){const _0x3c14fa=_0x3d020c;super(_0x1d9256),this[_0x3c14fa(0x1a7)]=new _0xc3821(),this[_0x3c14fa(0x1a4)]=new _0x46480c(),this[_0x3c14fa(0x1a2)]=this[_0x3c14fa(0x1b1)](),this[_0x3c14fa(0x194)]=this[_0x3c14fa(0x1a8)](),this[_0x3c14fa(0x18a)]=this[_0x3c14fa(0x17f)](),this[_0x3c14fa(0x177)]=this[_0x3c14fa(0x1b0)]([this[_0x3c14fa(0x1a2)],this[_0x3c14fa(0x194)],this[_0x3c14fa(0x18a)]]),this[_0x3c14fa(0x188)]=new _0x365365({'focusables':this[_0x3c14fa(0x177)],'focusTracker':this[_0x3c14fa(0x1a7)],'keystrokeHandler':this[_0x3c14fa(0x1a4)],'actions':{'focusPrevious':_0x3c14fa(0x175),'focusNext':_0x3c14fa(0x190)}}),this[_0x3c14fa(0x192)](),this[_0x3c14fa(0x198)](),this[_0x3c14fa(0x184)]();}[_0x3d020c(0x19e)](){const _0x32ff8f=_0x3d020c;super[_0x32ff8f(0x19e)](),this[_0x32ff8f(0x177)][_0x32ff8f(0x1ab)](_0xbb337e=>{const _0x3ed3a0=_0x32ff8f;this[_0x3ed3a0(0x1a7)][_0x3ed3a0(0x16b)](_0xbb337e[_0x3ed3a0(0x178)]),this[_0x3ed3a0(0x1a4)][_0x3ed3a0(0x18f)](_0xbb337e[_0x3ed3a0(0x178)]);}),_0x204621({'view':this}),this[_0x32ff8f(0x173)]();}[_0x3d020c(0x1ad)](){const _0xff83e0=_0x3d020c;super[_0xff83e0(0x1ad)](),this[_0xff83e0(0x1a7)][_0xff83e0(0x1ad)](),this[_0xff83e0(0x1a4)][_0xff83e0(0x1ad)]();}[_0x3d020c(0x173)](){const _0x1633e9=_0x3d020c;this[_0x1633e9(0x194)][_0x1633e9(0x173)]();}[_0x3d020c(0x181)](){const _0x3f9cbb=_0x3d020c;return this[_0x3f9cbb(0x194)][_0x3f9cbb(0x17b)][_0x3f9cbb(0x178)]?.[_0x3f9cbb(0x1b4)]?.[_0x3f9cbb(0x187)]()||'';}[_0x3d020c(0x171)](){const _0x3bd353=_0x3d020c;this[_0x3bd353(0x194)][_0x3bd353(0x17b)][_0x3bd353(0x178)][_0x3bd353(0x1b4)]='',this[_0x3bd353(0x194)][_0x3bd353(0x197)]=null,this[_0x3bd353(0x18a)][_0x3bd353(0x17c)]=!0x1;}[_0x3d020c(0x185)](_0x30814a){const _0x50879a=_0x3d020c;this[_0x50879a(0x194)][_0x50879a(0x197)]=_0x30814a,this[_0x50879a(0x180)](),this[_0x50879a(0x1a5)](_0x50879a(0x1aa));}[_0x3d020c(0x16e)](){const _0x4abf77=_0x3d020c;this[_0x4abf77(0x194)][_0x4abf77(0x197)]=null,this[_0x4abf77(0x180)]();}[_0x3d020c(0x1b1)](){const _0x50d447=_0x3d020c,_0x2c0e36=new _0x41bf67(this[_0x50d447(0x183)]);return _0x2c0e36[_0x50d447(0x191)]({'icon':_0x57ec3a,'tooltip':_0x21e79e(this[_0x50d447(0x183)],_0x50d447(0x176)),'tooltipPosition':'n','class':_0x50d447(0x1a1)}),_0x2c0e36;}[_0x3d020c(0x1a8)](){const _0x461138=_0x3d020c,_0x529426=new _0xc6e266(this[_0x461138(0x183)],_0x497e38);return _0x529426[_0x461138(0x191)]({'label':_0x21e79e(this[_0x461138(0x183)],_0x461138(0x16a)),'class':_0x461138(0x19f)}),_0x529426[_0x461138(0x17b)][_0x461138(0x191)]({'placeholder':_0x21e79e(this[_0x461138(0x183)],_0x461138(0x17e))}),_0x529426;}[_0x3d020c(0x17f)](){const _0x50902a=_0x3d020c,_0x492e08=new _0x41bf67(this[_0x50902a(0x183)]);return _0x492e08[_0x50902a(0x191)]({'icon':_0x39c0f7,'tooltip':_0x21e79e(this[_0x50902a(0x183)],_0x50902a(0x17a)),'tooltipPosition':'n','class':_0x50902a(0x18c),'type':_0x50902a(0x19c),'isEnabled':!0x1}),_0x492e08;}[_0x3d020c(0x192)](){const _0x586935=_0x3d020c,_0x5cc035=new _0x143a69(this[_0x586935(0x183)],{'label':_0x21e79e(this[_0x586935(0x183)],_0x586935(0x17a)),'class':_0x586935(0x1b3)});_0x5cc035[_0x586935(0x16d)][_0x586935(0x16b)](this[_0x586935(0x1a2)],0x0),this[_0x586935(0x1a0)]({'tag':_0x586935(0x195),'attributes':{'class':eh,'tabindex':'-1'},'children':[_0x5cc035,{'tag':_0x586935(0x18d),'attributes':{'class':hh},'children':[this[_0x586935(0x194)],this[_0x586935(0x18a)]]}]});}[_0x3d020c(0x198)](){const _0x298775=_0x3d020c;this[_0x298775(0x1a2)]['on'](_0x298775(0x174),()=>{const _0x94d92a=_0x298775;this[_0x94d92a(0x171)](),this[_0x94d92a(0x1a5)](_0x94d92a(0x1af));}),this[_0x298775(0x194)][_0x298775(0x17b)]['on'](_0x298775(0x19b),()=>{const _0x8a49d0=_0x298775;this[_0x8a49d0(0x16e)](),this[_0x8a49d0(0x180)](),this[_0x8a49d0(0x1a5)](_0x8a49d0(0x1aa));}),this['on'](_0x298775(0x19c),_0x237b7d=>{const _0x30502d=_0x298775;_0x237b7d[_0x30502d(0x17d)](),this[_0x30502d(0x170)]();});}[_0x3d020c(0x184)](){const _0x4cd8d5=_0x3d020c;this[_0x4cd8d5(0x1a4)][_0x4cd8d5(0x191)](_0x4cd8d5(0x1a6),(_0x585219,_0x484a44)=>{const _0x4cbb31=_0x4cd8d5;this[_0x4cbb31(0x171)](),this[_0x4cbb31(0x1a5)](_0x4cbb31(0x1af)),_0x484a44();});}[_0x3d020c(0x170)](){const _0x41c24d=_0x3d020c,_0x35ef11=this[_0x41c24d(0x181)]()[_0x41c24d(0x187)]();_0x35ef11?this[_0x41c24d(0x189)](_0x35ef11)?(this[_0x41c24d(0x16e)](),this[_0x41c24d(0x1a5)](_0x41c24d(0x179),_0x35ef11)):this[_0x41c24d(0x185)](_0x21e79e(this[_0x41c24d(0x183)],_0x41c24d(0x172))):this[_0x41c24d(0x185)](_0x21e79e(this[_0x41c24d(0x183)],_0x41c24d(0x19a)));}[_0x3d020c(0x180)](){const _0x52dfa5=_0x3d020c,_0x564c20=this[_0x52dfa5(0x181)]()[_0x52dfa5(0x187)](),_0x2ca0a0=!!this[_0x52dfa5(0x194)][_0x52dfa5(0x197)];this[_0x52dfa5(0x18a)][_0x52dfa5(0x17c)]=_0x564c20[_0x52dfa5(0x1b2)]>0x0&&!_0x2ca0a0;}[_0x3d020c(0x189)](_0x115171){try{return!!new URL(_0x115171);}catch{return!0x1;}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x443f7a=_0x44d2;function _0x44d2(_0x33075f,_0x558e38){const _0x2d1236=_0x2d12();return _0x44d2=function(_0x44d2ba,_0x40b23b){_0x44d2ba=_0x44d2ba-0x1cb;let _0x5d800c=_0x2d1236[_0x44d2ba];return _0x5d800c;},_0x44d2(_0x33075f,_0x558e38);}(function(_0x5e4908,_0x79059e){const _0x1f9137=_0x44d2,_0x3951b8=_0x5e4908();while(!![]){try{const _0x5b2178=parseInt(_0x1f9137(0x204))/0x1*(-parseInt(_0x1f9137(0x206))/0x2)+parseInt(_0x1f9137(0x216))/0x3+parseInt(_0x1f9137(0x22e))/0x4*(-parseInt(_0x1f9137(0x257))/0x5)+parseInt(_0x1f9137(0x237))/0x6+parseInt(_0x1f9137(0x246))/0x7*(-parseInt(_0x1f9137(0x1ed))/0x8)+-parseInt(_0x1f9137(0x21f))/0x9*(-parseInt(_0x1f9137(0x219))/0xa)+parseInt(_0x1f9137(0x20e))/0xb;if(_0x5b2178===_0x79059e)break;else _0x3951b8['push'](_0x3951b8['shift']());}catch(_0x464487){_0x3951b8['push'](_0x3951b8['shift']());}}}(_0x2d12,0x49120));import{BalloonPanelView as _0x551729,ButtonView as _0x39c52e,clickOutsideHandler as _0x5ef739,FileDialogButtonView as _0x3228c0,IconView as _0x41a391,View as _0x3e2b4a}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x1caa61,IconDocument as _0x1a80e0,IconDocumentOutline as _0x519699,IconDropdownArrow as _0x12a1f5,IconLink as _0x34dbd4,IconPaperClip as _0x8b38f1}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x1ec021}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x241762}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x4101cd}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x1f398a}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x3d6395}from'./resources/aichatresourcesballoonview.js';function _0x2d12(){const _0xdb4cd9=['_setupAddContextBalloonClickOutsideHandler','isAnyResourceBalloonVisible','add','hide','_createBalloonButton','2960888Jmnytq','submitUrl','addContextItem','ck-ai-chat-context-chips-wrapper-balloon','document','div','__arrow','addUrlToContext','current','children','southArrowNorthWest','ck-ai-chat-context-controls__add-context-balloon-panel','urls','isVisible','southArrowNorthEast','clearConversationContextItems','reorganizeChips','locale','clearCurrentContextItems','northArrowSouthWest','updateResourceState','icon','_bindEventHandlers','5YsmKik','find','208252MGDFJx','arrowView','render','cancel','_overflowManager','_showSourceResourcesBalloon','northArrowSouthEast','_resourcesBalloonView','5081285aKCIAn','ck-ai-chat-controls-button','AI_CHAT_CONTEXT_ADD_CONTEXT','_createBaseBalloonPanel','_setupAllBalloonClickOutsideHandlers','_addContextToCollection','_currentContextsChips','addFileToContext','1318566ziasBJ','ck-ai-chat','addDocumentToContext','10ibUQMv','_toggleAddContextBalloon','ck-ai-chat-context-controls__balloon-button','_handleAddContextButtonClick','hideAddContextBalloonPanel','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','4816431BfGoEt','populateSourceResourceBalloon','addContextButtonView','southArrowNorth','bodyCollection','tooltip','isReadOnly','closeSourceResourceBalloon','_addContextBalloonPanelView','fire','ck-ai-chat-controls_context_show-more-button','removeContextItemChip','defaultPositions','_urlInputView','ck-ai-chat-context-controls__add-context-button','2363356sCidOc','showAddContextBalloonPanel','_createResourcesBalloonView','pin','setConversationContext','setContainerElement','_getLimiterElement','_createAddContextButtonView','_createArrowView','2065560VikAQa','bind','_addUrlContent','body','show','_setAddContextButtonEnabled','addResourceToContext','AI_CHAT_CONTEXT_URL_LABEL','northArrowSouth','_createUrlBalloonPanelView','ck-ai-chat-context-controls__url-balloon-panel','_createContextButton','menuitem','isEnabled','_handleUrlSubmit','7XaeefW','loadSourceResources','setTemplate','_conversationContextsChips','content','_urlBalloonPanelView','overflowChips','ck-ai-chat-context-controls','buttonView','setContextItemLoading','remove','label','AI_CHAT_CONTEXT_FILE_LABEL','source','isHidden','execute','sources','5GkZvoJ','setAddContextOptions','_addContextBalloonConfig','closest','isOn','_setBalloonPanelContent','_setupUrlBalloonClickOutsideHandler','ck-ai-chat-context-controls__balloon-button-source','ck-reset_all-excluded','_createAddContextBalloonPanelView','enabled','_removeContextFromCollection','ck-ai-chat-context-controls__pending-contexts','extendTemplate','hideUrlBalloonPanel','done','element','destroy','ck-ai-chat-context-controls__show-more-balloon-panel','conversation','createCollection','focus','showUrlBalloonPanel','removeContextItem','type','showSourceResourcesBalloon','balloonView','_setupTemplate','isLoading','files','refreshBalloon','set','clear'];_0x2d12=function(){return _0xdb4cd9;};return _0x2d12();}export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x443f7a(0x218),_0x443f7a(0x215),_0x443f7a(0x1f4),_0x443f7a(0x23d),_0x443f7a(0x1de),_0x443f7a(0x247)];const wo=_0x443f7a(0x24d),po=_0x443f7a(0x1d3),Bo=_0x443f7a(0x1f8),bo=_0x443f7a(0x22d),To=_0x443f7a(0x241),Ao=_0x443f7a(0x21b),ko=_0x443f7a(0x1ce),Eo=_0x443f7a(0x20f),vo=_0x443f7a(0x1f0),go=_0x443f7a(0x229),Vo=_0x443f7a(0x1d9),fo=_0x443f7a(0x217),Io=[_0x551729[_0x443f7a(0x22b)][_0x443f7a(0x200)],_0x551729[_0x443f7a(0x22b)][_0x443f7a(0x23f)],_0x551729[_0x443f7a(0x22b)][_0x443f7a(0x20c)],_0x551729[_0x443f7a(0x22b)][_0x443f7a(0x1f7)],_0x551729[_0x443f7a(0x22b)][_0x443f7a(0x222)],_0x551729[_0x443f7a(0x22b)][_0x443f7a(0x1fb)]];export class AIChatContextPanelView extends _0x3e2b4a{[_0x443f7a(0x221)];[_0x443f7a(0x214)]=this[_0x443f7a(0x1db)]();[_0x443f7a(0x249)]=this[_0x443f7a(0x1db)]();[_0x443f7a(0x20a)];[_0x443f7a(0x227)];[_0x443f7a(0x24b)];[_0x443f7a(0x22c)];[_0x443f7a(0x20d)];[_0x443f7a(0x259)];[_0x443f7a(0x223)];constructor(_0x2005f8,_0x19ee30){const _0xd2972b=_0x443f7a;super(_0x2005f8),this[_0xd2972b(0x223)]=_0x19ee30,this[_0xd2972b(0x214)]=this[_0xd2972b(0x1db)](),this[_0xd2972b(0x249)]=this[_0xd2972b(0x1db)](),this[_0xd2972b(0x221)]=this[_0xd2972b(0x235)](_0x2005f8),this[_0xd2972b(0x227)]=this[_0xd2972b(0x1d0)](_0x2005f8),this[_0xd2972b(0x24b)]=this[_0xd2972b(0x240)](_0x2005f8),this[_0xd2972b(0x20d)]=this[_0xd2972b(0x230)](_0x2005f8,_0x19ee30);const _0x4b745a={'cssClasses':{'showMoreButton':go,'showMoreBalloon':Vo,'overflowContainer':vo,'controlsButton':Eo}};this[_0xd2972b(0x20a)]=new _0x4101cd(_0x2005f8,this[_0xd2972b(0x214)],_0x4b745a,this[_0xd2972b(0x223)],this),this[_0xd2972b(0x259)]={'buttonView':this[_0xd2972b(0x221)],'balloonView':this[_0xd2972b(0x227)],'hideMethod':this[_0xd2972b(0x21d)][_0xd2972b(0x238)](this),'showMethod':this[_0xd2972b(0x22f)][_0xd2972b(0x238)](this)},this[_0xd2972b(0x1e2)](),this[_0xd2972b(0x203)]();}[_0x443f7a(0x208)](){const _0x2d0f1c=_0x443f7a;super[_0x2d0f1c(0x208)](),this[_0x2d0f1c(0x212)](),this[_0x2d0f1c(0x20a)][_0x2d0f1c(0x233)](this[_0x2d0f1c(0x1d7)]),this[_0x2d0f1c(0x20a)][_0x2d0f1c(0x1fd)]();}[_0x443f7a(0x1d8)](){const _0x423c02=_0x443f7a;super[_0x423c02(0x1d8)](),this[_0x423c02(0x20a)][_0x423c02(0x1d8)](),this[_0x423c02(0x20d)][_0x423c02(0x1d8)]();}[_0x443f7a(0x1ef)](_0x4635e2,_0x24121b){const _0x234d79=_0x443f7a,_0x13494e=this[_0x234d79(0x242)](_0x4635e2,_0x234d79(0x1f5),!0x0,_0x24121b);this[_0x234d79(0x213)](_0x13494e,this[_0x234d79(0x214)]),this[_0x234d79(0x20a)][_0x234d79(0x1fd)]();}[_0x443f7a(0x1de)](_0x365ac8){const _0x2ff639=_0x443f7a;this[_0x2ff639(0x1d2)](_0x365ac8,this[_0x2ff639(0x214)]),this[_0x2ff639(0x1d2)](_0x365ac8,this[_0x2ff639(0x20a)][_0x2ff639(0x24c)]),this[_0x2ff639(0x20a)][_0x2ff639(0x1fd)]();}[_0x443f7a(0x24f)](_0x26f7aa,_0x324c08){const _0x26803a=_0x443f7a;let _0x5ac392=this[_0x26803a(0x214)][_0x26803a(0x205)](_0x22d7cf=>_0x22d7cf['id']===_0x26f7aa);_0x5ac392||(_0x5ac392=this[_0x26803a(0x20a)][_0x26803a(0x24c)][_0x26803a(0x205)](_0x4ca773=>_0x4ca773['id']===_0x26f7aa)),_0x5ac392&&(_0x5ac392[_0x26803a(0x1e3)]=_0x324c08);}[_0x443f7a(0x232)](_0x342817){const _0x169417=_0x443f7a;this[_0x169417(0x249)][_0x169417(0x1e7)]();for(const _0x38802c of _0x342817){const _0x3243dd=this[_0x169417(0x242)](_0x38802c,_0x169417(0x1da),!0x1,!0x1);this[_0x169417(0x213)](_0x3243dd,this[_0x169417(0x249)]);}}[_0x443f7a(0x1ff)](){const _0xb8580f=_0x443f7a;this[_0xb8580f(0x214)][_0xb8580f(0x1e7)](),this[_0xb8580f(0x20a)][_0xb8580f(0x1e7)]();}[_0x443f7a(0x1fc)](){const _0x2d91db=_0x443f7a;this[_0x2d91db(0x249)][_0x2d91db(0x1e7)]();}[_0x443f7a(0x201)](_0x1aa368,_0x1dd363,_0x132eb4){const _0x4d0c62=_0x443f7a;this[_0x4d0c62(0x20d)][_0x4d0c62(0x201)](_0x1aa368,_0x1dd363,_0x132eb4);}[_0x443f7a(0x21d)](){const _0xdc6f2d=_0x443f7a;this[_0xdc6f2d(0x21a)](!0x1);}[_0x443f7a(0x22f)](){const _0x1ba07a=_0x443f7a;this[_0x1ba07a(0x21a)](!0x0);}[_0x443f7a(0x1d5)](){const _0x1452c0=_0x443f7a;this[_0x1452c0(0x24b)][_0x1452c0(0x1eb)](),this[_0x1452c0(0x221)][_0x1452c0(0x1cb)]=!0x1,this[_0x1452c0(0x22c)]&&this[_0x1452c0(0x22c)][_0x1452c0(0x1e7)]();}[_0x443f7a(0x1dd)](){const _0x35396c=_0x443f7a;this[_0x35396c(0x24b)][_0x35396c(0x23b)](),this[_0x35396c(0x221)][_0x35396c(0x1cb)]=!0x0;}[_0x443f7a(0x20b)](_0xefafc2){const _0x204223=_0x443f7a;this[_0x204223(0x20d)][_0x204223(0x1e0)](_0xefafc2),this[_0x204223(0x221)][_0x204223(0x1cb)]=!0x0;}[_0x443f7a(0x220)](_0x4fa908,_0x1a3cad,_0x438ee7,_0x131572){const _0x2606d4=_0x443f7a;this[_0x2606d4(0x20d)][_0x2606d4(0x220)](_0x4fa908,_0x438ee7,_0x131572);}[_0x443f7a(0x226)](_0x5d955b){const _0x234648=_0x443f7a;this[_0x234648(0x20d)][_0x234648(0x226)](_0x5d955b),this[_0x234648(0x221)][_0x234648(0x1cb)]=!0x1;}[_0x443f7a(0x258)](_0xcb884c){const _0x176e79=_0x443f7a;this[_0x176e79(0x1cc)](this[_0x176e79(0x227)],this[_0x176e79(0x1fe)],_0xcb884c),this[_0x176e79(0x23c)](_0xcb884c);}[_0x443f7a(0x23c)](_0x5808d1){const _0x44d083=_0x443f7a,_0x2354b3=!_0x5808d1[_0x44d083(0x1f1)][_0x44d083(0x254)]&&_0x5808d1[_0x44d083(0x1f1)][_0x44d083(0x1d1)],_0x4abcf9=_0x5808d1[_0x44d083(0x1f9)][_0x44d083(0x1d1)],_0x53754c=_0x5808d1[_0x44d083(0x1e4)][_0x44d083(0x1d1)];this[_0x44d083(0x221)][_0x44d083(0x244)]=_0x2354b3||_0x4abcf9||_0x53754c;}[_0x443f7a(0x1e2)](){const _0x359ca4=_0x443f7a;this[_0x359ca4(0x248)]({'tag':_0x359ca4(0x1f2),'attributes':{'class':[wo,_0x359ca4(0x1cf)]},'children':[{'tag':_0x359ca4(0x1f2),'attributes':{'class':po},'children':this[_0x359ca4(0x214)]}]});}[_0x443f7a(0x203)](){const _0x36fd09=_0x443f7a;this[_0x36fd09(0x221)]['on'](_0x36fd09(0x255),()=>{const _0x58a60f=_0x36fd09;this[_0x58a60f(0x21c)]();});}[_0x443f7a(0x235)](_0x18975e){const _0x360984=_0x443f7a,_0x11ce3b=new _0x39c52e(_0x18975e);return _0x11ce3b[_0x360984(0x1e6)]({'label':_0x1f398a(_0x18975e,_0x360984(0x210)),'class':Eo+'\x20'+bo,'icon':_0x8b38f1,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x11ce3b;}[_0x443f7a(0x1d0)](_0x5a2d67){const _0x2192f6=_0x443f7a;return this[_0x2192f6(0x211)](_0x5a2d67,Bo);}[_0x443f7a(0x240)](_0x14763f){const _0x241afd=_0x443f7a,_0x3f1ce7=this[_0x241afd(0x211)](_0x14763f,To);return this[_0x241afd(0x239)](_0x3f1ce7,_0x14763f),_0x3f1ce7;}[_0x443f7a(0x230)](_0x989b36,_0x5ef135){const _0x4d89ea=_0x443f7a;return new _0x3d6395(_0x989b36,_0x5ef135,{'onBackToContext':()=>{const _0x3f84ec=_0x44d2;this[_0x3f84ec(0x22f)](),this[_0x3f84ec(0x227)][_0x3f84ec(0x231)]({'target':this[_0x3f84ec(0x221)][_0x3f84ec(0x1d7)],'limiter':this[_0x3f84ec(0x234)](),'positions':Io});},'onResourceSelected':(_0x522a3c,_0x514da4)=>{const _0x2faec8=_0x44d2;this[_0x2faec8(0x228)](_0x2faec8(0x23d),{'source':_0x522a3c,'resource':_0x514da4});},'onLoadSourceResources':_0x7fd72b=>{const _0x22b34d=_0x44d2;this[_0x22b34d(0x228)](_0x22b34d(0x247),_0x7fd72b);},'onBalloonClosed':()=>{const _0x3a3cd1=_0x44d2;this[_0x3a3cd1(0x221)][_0x3a3cd1(0x1cb)]=!0x1;},'getLimiterElement':()=>this[_0x4d89ea(0x234)](),'getTargetElement':()=>this[_0x4d89ea(0x221)][_0x4d89ea(0x1d7)]});}[_0x443f7a(0x234)](){const _0x56c25e=_0x443f7a;return this[_0x56c25e(0x1d7)]?.[_0x56c25e(0x25a)]('.'+fo)||document[_0x56c25e(0x23a)];}[_0x443f7a(0x211)](_0x34b89a,_0x1db755){const _0x538332=_0x443f7a,_0x34352b=new _0x551729(_0x34b89a);return _0x34352b[_0x538332(0x1d4)]({'attributes':{'class':_0x1db755}}),this[_0x538332(0x223)][_0x538332(0x1ea)](_0x34352b),_0x34352b;}[_0x443f7a(0x1cc)](_0x191f7d,_0x1ee00a,_0x407008){const _0x5763a1=_0x443f7a;if(_0x191f7d[_0x5763a1(0x24a)][_0x5763a1(0x1e7)](),!_0x407008[_0x5763a1(0x1f1)][_0x5763a1(0x254)]&&_0x407008[_0x5763a1(0x1f1)][_0x5763a1(0x1d1)]){const _0x3eb004=this[_0x5763a1(0x1ec)](_0x1ee00a,{'label':_0x1f398a(_0x1ee00a,_0x5763a1(0x21e)),'icon':_0x1a80e0});_0x3eb004['on'](_0x5763a1(0x255),()=>{const _0x3f213b=_0x5763a1;this[_0x3f213b(0x228)](_0x3f213b(0x218)),this[_0x3f213b(0x21d)]();}),_0x191f7d[_0x5763a1(0x24a)][_0x5763a1(0x1ea)](_0x3eb004);}if(_0x407008[_0x5763a1(0x1f9)][_0x5763a1(0x1d1)]){const _0xb46c4a=this[_0x5763a1(0x1ec)](_0x1ee00a,{'label':_0x1f398a(_0x1ee00a,_0x5763a1(0x23e)),'icon':_0x34dbd4});_0xb46c4a['on'](_0x5763a1(0x255),()=>{const _0x5253d5=_0x5763a1;this[_0x5253d5(0x21d)](),this[_0x5253d5(0x1dd)](),this[_0x5253d5(0x24b)][_0x5253d5(0x231)]({'target':this[_0x5253d5(0x221)][_0x5253d5(0x1d7)],'limiter':this[_0x5253d5(0x234)](),'positions':Io}),this[_0x5253d5(0x22c)][_0x5253d5(0x1dc)]();}),_0x191f7d[_0x5763a1(0x24a)][_0x5763a1(0x1ea)](_0xb46c4a);}if(_0x407008[_0x5763a1(0x1e4)][_0x5763a1(0x1d1)]){const _0x126038=new _0x3228c0(_0x1ee00a);_0x126038[_0x5763a1(0x1e6)]({'label':_0x1f398a(_0x1ee00a,_0x5763a1(0x252)),'icon':_0x1caa61,'withText':!0x0,'tooltip':!0x0,'class':Ao,'allowMultipleFiles':!0x0}),_0x126038['on'](_0x5763a1(0x1d6),(_0x26ea77,_0x510b20)=>{const _0x272a20=_0x5763a1;this[_0x272a20(0x228)](_0x272a20(0x215),_0x510b20),this[_0x272a20(0x21d)]();}),_0x126038[_0x5763a1(0x224)]=!0x0,_0x191f7d[_0x5763a1(0x24a)][_0x5763a1(0x1ea)](_0x126038);}for(const _0x48a8ff of _0x407008[_0x5763a1(0x256)]){const _0x439926=this[_0x5763a1(0x1ec)](_0x1ee00a,{'label':_0x48a8ff[_0x5763a1(0x251)],'icon':_0x48a8ff[_0x5763a1(0x202)]||_0x519699,'type':_0x5763a1(0x253)});_0x191f7d[_0x5763a1(0x24a)][_0x5763a1(0x1ea)](_0x439926),_0x439926['on'](_0x5763a1(0x255),()=>{const _0x2573f5=_0x5763a1;this[_0x2573f5(0x21d)](),this[_0x2573f5(0x20b)](_0x48a8ff);});}}[_0x443f7a(0x239)](_0x152f6c,_0x63d446){const _0x5cf71c=_0x443f7a;this[_0x5cf71c(0x22c)]=new _0x241762(_0x63d446),this[_0x5cf71c(0x22c)]['on'](_0x5cf71c(0x1ee),(_0x176e3a,_0x1c93af)=>{const _0x4ed0fa=_0x5cf71c;this[_0x4ed0fa(0x245)](_0x1c93af);}),this[_0x5cf71c(0x22c)]['on'](_0x5cf71c(0x209),()=>{const _0x3ad18c=_0x5cf71c;this[_0x3ad18c(0x1d5)](),this[_0x3ad18c(0x22f)](),this[_0x3ad18c(0x227)][_0x3ad18c(0x231)]({'target':this[_0x3ad18c(0x221)][_0x3ad18c(0x1d7)],'limiter':this[_0x3ad18c(0x234)](),'positions':Io});}),this[_0x5cf71c(0x22c)]['on'](_0x5cf71c(0x1e5),()=>{const _0x297d9f=_0x5cf71c;this[_0x297d9f(0x24b)][_0x297d9f(0x1fa)]&&this[_0x297d9f(0x24b)][_0x297d9f(0x231)]({'target':this[_0x297d9f(0x221)][_0x297d9f(0x1d7)],'limiter':this[_0x297d9f(0x234)](),'positions':Io});}),_0x152f6c[_0x5cf71c(0x24a)][_0x5cf71c(0x1ea)](this[_0x5cf71c(0x22c)]);}[_0x443f7a(0x1ec)](_0x12fc1c,_0x1d093c){const _0x14ce06=_0x443f7a,_0x223981=_0x14ce06(0x253)===_0x1d093c[_0x14ce06(0x1df)]?new SourcesBalloonButtonView(_0x12fc1c):new _0x39c52e(_0x12fc1c);return _0x223981[_0x14ce06(0x1e6)]({'label':_0x1d093c[_0x14ce06(0x251)],'icon':_0x1d093c[_0x14ce06(0x202)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Ao}),_0x223981;}[_0x443f7a(0x212)](){const _0x37b083=_0x443f7a;this[_0x37b083(0x1e8)](),this[_0x37b083(0x1cd)]();}[_0x443f7a(0x1cd)](){const _0x38939f=_0x443f7a;_0x5ef739({'emitter':this[_0x38939f(0x24b)],'contextElements':[this[_0x38939f(0x24b)][_0x38939f(0x1d7)]],'callback':()=>{const _0x48ce95=_0x38939f;this[_0x48ce95(0x1d5)]();},'activator':()=>this[_0x38939f(0x24b)][_0x38939f(0x1fa)]});}[_0x443f7a(0x21a)](_0x5a8c0a){const _0x5e9f74=_0x443f7a,_0x3d349c=this[_0x5e9f74(0x259)];_0x3d349c[_0x5e9f74(0x24e)][_0x5e9f74(0x1cb)]=_0x5a8c0a,_0x5a8c0a?_0x3d349c[_0x5e9f74(0x1e1)][_0x5e9f74(0x23b)]():_0x3d349c[_0x5e9f74(0x1e1)][_0x5e9f74(0x1eb)]();}[_0x443f7a(0x1e8)](){const _0x5a21e1=_0x443f7a,{balloonView:_0x234d0e,buttonView:_0x53f4e1,hideMethod:_0x5ce334}=this[_0x5a21e1(0x259)];_0x5ef739({'emitter':_0x234d0e,'contextElements':[_0x234d0e[_0x5a21e1(0x1d7)],_0x53f4e1[_0x5a21e1(0x1d7)]],'callback':()=>{_0x5ce334();},'activator':()=>_0x53f4e1[_0x5a21e1(0x1cb)]&&!this[_0x5a21e1(0x24b)][_0x5a21e1(0x1fa)]&&!this[_0x5a21e1(0x20d)][_0x5a21e1(0x1e9)]()});}[_0x443f7a(0x242)](_0x31544f,_0x3efc0e,_0x2c8c09=!0x1,_0x4f58d0=!0x1){const _0xc01937=_0x443f7a,_0xf41e0c=_0xc01937(0x1da)===_0x3efc0e||!0x0===_0x31544f[_0xc01937(0x225)],_0x16bda1=new _0x1ec021(this[_0xc01937(0x1fe)],_0x31544f,_0xf41e0c,_0x2c8c09,_0x4f58d0);return _0xf41e0c||_0x16bda1['on'](_0xc01937(0x22a),()=>{const _0x427cfd=_0xc01937;this[_0x427cfd(0x228)](_0x427cfd(0x1de),_0x16bda1['id']);}),_0x16bda1;}[_0x443f7a(0x213)](_0x916199,_0x405cb6){const _0x1c7806=_0x443f7a;_0x405cb6[_0x1c7806(0x1ea)](_0x916199,0x0);}[_0x443f7a(0x1d2)](_0x4a0a8a,_0x251b28){const _0x4c2c12=_0x443f7a,_0x316b39=_0x251b28[_0x4c2c12(0x205)](_0x24a26b=>_0x24a26b['id']===_0x4a0a8a);_0x316b39&&_0x251b28[_0x4c2c12(0x250)](_0x316b39);}[_0x443f7a(0x21c)](){const _0x121734=_0x443f7a;this[_0x121734(0x221)][_0x121734(0x1cb)]?this[_0x121734(0x21d)]():(this[_0x121734(0x22f)](),this[_0x121734(0x227)][_0x121734(0x231)]({'target':this[_0x121734(0x221)][_0x121734(0x1d7)],'limiter':this[_0x121734(0x234)](),'positions':Io}));}[_0x443f7a(0x245)](_0x32492d){const _0x416b64=_0x443f7a;this[_0x416b64(0x22c)][_0x416b64(0x1e7)](),this[_0x416b64(0x1d5)](),this[_0x416b64(0x228)](_0x416b64(0x1f4),_0x32492d);}}export class SourcesBalloonButtonView extends _0x39c52e{[_0x443f7a(0x207)];constructor(_0x2857fd){const _0x45376a=_0x443f7a;super(_0x2857fd),this[_0x45376a(0x1e6)]({'withText':!0x0,'role':_0x45376a(0x243)}),this[_0x45376a(0x207)]=this[_0x45376a(0x236)](),this[_0x45376a(0x1d4)]({'attributes':{'class':[ko]}});}[_0x443f7a(0x208)](){const _0x1c8110=_0x443f7a;super[_0x1c8110(0x208)](),this[_0x1c8110(0x1f6)][_0x1c8110(0x1ea)](this[_0x1c8110(0x207)]);}[_0x443f7a(0x236)](){const _0x5e06d6=_0x443f7a,_0x54b338=new _0x41a391();return _0x54b338[_0x5e06d6(0x24a)]=_0x12a1f5,_0x54b338[_0x5e06d6(0x1d4)]({'attributes':{'class':ko+_0x5e06d6(0x1f3)}}),_0x54b338;}}
23
+ const _0x34cbe6=_0x4498;function _0x2a99(){const _0x40b1eb=['bodyCollection','ck-ai-chat-context-controls','_urlInputView','conversation','southArrowNorthWest','addFileToContext','source','ck-ai-chat-context-controls__balloon-button','northArrowSouthEast','refreshBalloon','addContextButtonView','overflowChips','_setupTemplate','ck-ai-chat-controls-button','locale','fire','southArrowNorthEast','balloonView','focus','content','element','_addContextBalloonPanelView','setContextItemLoading','submitUrl','addUrlToContext','__arrow','_handleAddContextButtonClick','isEnabled','_resourcesBalloonView','label','defaultPositions','children','done','setTemplate','setAddContextOptions','southArrowNorth','set','_createUrlBalloonPanelView','showSourceResourcesBalloon','_createBaseBalloonPanel','AI_CHAT_CONTEXT_URL_LABEL','document','type','_createContextButton','_toggleAddContextBalloon','16XtePJW','removeContextItemChip','_createAddContextBalloonPanelView','_createBalloonButton','_addUrlContent','isAnyResourceBalloonVisible','_currentContextsChips','execute','closest','isLoading','_setBalloonPanelContent','hideUrlBalloonPanel','showAddContextBalloonPanel','find','addResourceToContext','buttonView','ck-ai-chat-controls_context_show-more-button','clear','ck-ai-chat','updateResourceState','clearConversationContextItems','_bindEventHandlers','_handleUrlSubmit','sources','_createResourcesBalloonView','6656184ttEvCx','ck-reset_all-excluded','cancel','14hnSVYf','setConversationContext','69730bLqEaA','loadSourceResources','enabled','ck-ai-chat-context-controls__pending-contexts','711PeBHcF','isVisible','ck-ai-chat-context-controls__show-more-balloon-panel','hide','_getLimiterElement','ck-ai-chat-context-controls__balloon-button-source','isOn','_setupAddContextBalloonClickOutsideHandler','ck-ai-chat-context-chips-wrapper-balloon','removeContextItem','setContainerElement','populateSourceResourceBalloon','96862EjZFUP','ck-ai-chat-context-controls__url-balloon-panel','tooltip','northArrowSouth','remove','_createArrowView','6046821GaktGZ','current','_showSourceResourcesBalloon','showUrlBalloonPanel','hideAddContextBalloonPanel','isHidden','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','body','urls','8QMrNAj','_conversationContextsChips','6747140lriVuq','_addContextBalloonConfig','menuitem','_overflowManager','extendTemplate','reorganizeChips','pin','northArrowSouthWest','arrowView','destroy','_createAddContextButtonView','ck-ai-chat-context-controls__add-context-balloon-panel','createCollection','addDocumentToContext','clearCurrentContextItems','closeSourceResourceBalloon','AI_CHAT_CONTEXT_FILE_LABEL','_setAddContextButtonEnabled','10878896aEUOSy','_urlBalloonPanelView','addContextItem','ck-ai-chat-context-controls__add-context-button','files','_removeContextFromCollection','_setupAllBalloonClickOutsideHandlers','render','_setupUrlBalloonClickOutsideHandler','div','_addContextToCollection','icon','1131459VZEhHW','show','isReadOnly','AI_CHAT_CONTEXT_ADD_CONTEXT','add','bind'];_0x2a99=function(){return _0x40b1eb;};return _0x2a99();}(function(_0x202cd5,_0x1aa023){const _0x7bdb17=_0x4498,_0x5df414=_0x202cd5();while(!![]){try{const _0x22f0e5=-parseInt(_0x7bdb17(0x1fe))/0x1*(-parseInt(_0x7bdb17(0x210))/0x2)+-parseInt(_0x7bdb17(0x23f))/0x3*(parseInt(_0x7bdb17(0x1e2))/0x4)+parseInt(_0x7bdb17(0x221))/0x5+-parseInt(_0x7bdb17(0x1fb))/0x6+-parseInt(_0x7bdb17(0x233))/0x7*(-parseInt(_0x7bdb17(0x21f))/0x8)+-parseInt(_0x7bdb17(0x204))/0x9*(-parseInt(_0x7bdb17(0x200))/0xa)+-parseInt(_0x7bdb17(0x216))/0xb;if(_0x22f0e5===_0x1aa023)break;else _0x5df414['push'](_0x5df414['shift']());}catch(_0x415fdd){_0x5df414['push'](_0x5df414['shift']());}}}(_0x2a99,0xeb8a2));function _0x4498(_0x3cbcd7,_0x3f4277){const _0x2a995e=_0x2a99();return _0x4498=function(_0x449823,_0x1e684b){_0x449823=_0x449823-0x1b6;let _0x4cb3a2=_0x2a995e[_0x449823];return _0x4cb3a2;},_0x4498(_0x3cbcd7,_0x3f4277);}import{BalloonPanelView as _0x10e7f5,ButtonView as _0x586562,clickOutsideHandler as _0x3bc392,FileDialogButtonView as _0x1721e2,IconView as _0x4d10cf,View as _0x1384c2}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x3abdc6,IconDocument as _0x24c9c6,IconDocumentOutline as _0x1544b9,IconDropdownArrow as _0x5ecd7c,IconLink as _0x2667f0,IconPaperClip as _0x256e27}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x3b1f6d}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x57bde9}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x2c13e0}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x117226}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x2a47b8}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x34cbe6(0x22e),_0x34cbe6(0x1ba),_0x34cbe6(0x1cd),_0x34cbe6(0x1f0),_0x34cbe6(0x20d),_0x34cbe6(0x201)];const bo=_0x34cbe6(0x1b6),To=_0x34cbe6(0x203),Ao=_0x34cbe6(0x22c),ko=_0x34cbe6(0x236),Eo=_0x34cbe6(0x211),vo=_0x34cbe6(0x1bc),go=_0x34cbe6(0x209),Vo=_0x34cbe6(0x1c2),fo=_0x34cbe6(0x20c),Io=_0x34cbe6(0x1f2),Po=_0x34cbe6(0x206),Ro=_0x34cbe6(0x1f4),So=[_0x10e7f5[_0x34cbe6(0x1d3)][_0x34cbe6(0x228)],_0x10e7f5[_0x34cbe6(0x1d3)][_0x34cbe6(0x213)],_0x10e7f5[_0x34cbe6(0x1d3)][_0x34cbe6(0x1bd)],_0x10e7f5[_0x34cbe6(0x1d3)][_0x34cbe6(0x1b9)],_0x10e7f5[_0x34cbe6(0x1d3)][_0x34cbe6(0x1d8)],_0x10e7f5[_0x34cbe6(0x1d3)][_0x34cbe6(0x1c5)]];export class AIChatContextPanelView extends _0x1384c2{[_0x34cbe6(0x1bf)];[_0x34cbe6(0x1e8)]=this[_0x34cbe6(0x22d)]();[_0x34cbe6(0x220)]=this[_0x34cbe6(0x22d)]();[_0x34cbe6(0x224)];[_0x34cbe6(0x1ca)];[_0x34cbe6(0x234)];[_0x34cbe6(0x1b7)];[_0x34cbe6(0x1d1)];[_0x34cbe6(0x222)];[_0x34cbe6(0x245)];constructor(_0x2f8b59,_0x562c34){const _0x931278=_0x34cbe6;super(_0x2f8b59),this[_0x931278(0x245)]=_0x562c34,this[_0x931278(0x1e8)]=this[_0x931278(0x22d)](),this[_0x931278(0x220)]=this[_0x931278(0x22d)](),this[_0x931278(0x1bf)]=this[_0x931278(0x22b)](_0x2f8b59),this[_0x931278(0x1ca)]=this[_0x931278(0x1e4)](_0x2f8b59),this[_0x931278(0x234)]=this[_0x931278(0x1da)](_0x2f8b59),this[_0x931278(0x1d1)]=this[_0x931278(0x1fa)](_0x2f8b59,_0x562c34);const _0x5f5afd={'cssClasses':{'showMoreButton':Io,'showMoreBalloon':Po,'overflowContainer':fo,'controlsButton':Vo}};this[_0x931278(0x224)]=new _0x2c13e0(_0x2f8b59,this[_0x931278(0x1e8)],_0x5f5afd,this[_0x931278(0x245)],this),this[_0x931278(0x222)]={'buttonView':this[_0x931278(0x1bf)],'balloonView':this[_0x931278(0x1ca)],'hideMethod':this[_0x931278(0x21a)][_0x931278(0x244)](this),'showMethod':this[_0x931278(0x1ee)][_0x931278(0x244)](this)},this[_0x931278(0x1c1)](),this[_0x931278(0x1f7)]();}[_0x34cbe6(0x23a)](){const _0x31ad22=_0x34cbe6;super[_0x31ad22(0x23a)](),this[_0x31ad22(0x239)](),this[_0x31ad22(0x224)][_0x31ad22(0x20e)](this[_0x31ad22(0x1c9)]),this[_0x31ad22(0x224)][_0x31ad22(0x226)]();}[_0x34cbe6(0x22a)](){const _0x5a449e=_0x34cbe6;super[_0x5a449e(0x22a)](),this[_0x5a449e(0x224)][_0x5a449e(0x22a)](),this[_0x5a449e(0x1d1)][_0x5a449e(0x22a)]();}[_0x34cbe6(0x235)](_0x3652b7,_0x2ef2ab){const _0x204c27=_0x34cbe6,_0x50fe73=this[_0x204c27(0x1e0)](_0x3652b7,_0x204c27(0x217),!0x0,_0x2ef2ab);this[_0x204c27(0x23d)](_0x50fe73,this[_0x204c27(0x1e8)]),this[_0x204c27(0x224)][_0x204c27(0x226)]();}[_0x34cbe6(0x20d)](_0x29fa9f){const _0x31eb43=_0x34cbe6;this[_0x31eb43(0x238)](_0x29fa9f,this[_0x31eb43(0x1e8)]),this[_0x31eb43(0x238)](_0x29fa9f,this[_0x31eb43(0x224)][_0x31eb43(0x1c0)]),this[_0x31eb43(0x224)][_0x31eb43(0x226)]();}[_0x34cbe6(0x1cb)](_0x4aa0a2,_0x81003c){const _0x40cf1a=_0x34cbe6;let _0x29e309=this[_0x40cf1a(0x1e8)][_0x40cf1a(0x1ef)](_0x3a2230=>_0x3a2230['id']===_0x4aa0a2);_0x29e309||(_0x29e309=this[_0x40cf1a(0x224)][_0x40cf1a(0x1c0)][_0x40cf1a(0x1ef)](_0x1a036d=>_0x1a036d['id']===_0x4aa0a2)),_0x29e309&&(_0x29e309[_0x40cf1a(0x1eb)]=_0x81003c);}[_0x34cbe6(0x1ff)](_0x56dcd5){const _0x2a932c=_0x34cbe6;this[_0x2a932c(0x220)][_0x2a932c(0x1f3)]();for(const _0xa0141b of _0x56dcd5){const _0x1c0e47=this[_0x2a932c(0x1e0)](_0xa0141b,_0x2a932c(0x1b8),!0x1,!0x1);this[_0x2a932c(0x23d)](_0x1c0e47,this[_0x2a932c(0x220)]);}}[_0x34cbe6(0x22f)](){const _0x3399e0=_0x34cbe6;this[_0x3399e0(0x1e8)][_0x3399e0(0x1f3)](),this[_0x3399e0(0x224)][_0x3399e0(0x1f3)]();}[_0x34cbe6(0x1f6)](){const _0x16bb73=_0x34cbe6;this[_0x16bb73(0x220)][_0x16bb73(0x1f3)]();}[_0x34cbe6(0x1f5)](_0xfc0a8e,_0x3b2177,_0x19e48b){const _0x187c1c=_0x34cbe6;this[_0x187c1c(0x1d1)][_0x187c1c(0x1f5)](_0xfc0a8e,_0x3b2177,_0x19e48b);}[_0x34cbe6(0x21a)](){const _0x185f2f=_0x34cbe6;this[_0x185f2f(0x1e1)](!0x1);}[_0x34cbe6(0x1ee)](){const _0x53fe19=_0x34cbe6;this[_0x53fe19(0x1e1)](!0x0);}[_0x34cbe6(0x1ed)](){const _0x590674=_0x34cbe6;this[_0x590674(0x234)][_0x590674(0x207)](),this[_0x590674(0x1bf)][_0x590674(0x20a)]=!0x1,this[_0x590674(0x1b7)]&&this[_0x590674(0x1b7)][_0x590674(0x1f3)]();}[_0x34cbe6(0x219)](){const _0x2420ea=_0x34cbe6;this[_0x2420ea(0x234)][_0x2420ea(0x240)](),this[_0x2420ea(0x1bf)][_0x2420ea(0x20a)]=!0x0;}[_0x34cbe6(0x218)](_0x59a7f0){const _0xabedba=_0x34cbe6;this[_0xabedba(0x1d1)][_0xabedba(0x1db)](_0x59a7f0),this[_0xabedba(0x1bf)][_0xabedba(0x20a)]=!0x0;}[_0x34cbe6(0x20f)](_0x1f03ce,_0x235631,_0x2e0cd9,_0x462dd9){const _0x62c6ee=_0x34cbe6;this[_0x62c6ee(0x1d1)][_0x62c6ee(0x20f)](_0x1f03ce,_0x2e0cd9,_0x462dd9);}[_0x34cbe6(0x230)](_0x54b2b4){const _0x206d0e=_0x34cbe6;this[_0x206d0e(0x1d1)][_0x206d0e(0x230)](_0x54b2b4),this[_0x206d0e(0x1bf)][_0x206d0e(0x20a)]=!0x1;}[_0x34cbe6(0x1d7)](_0x464746){const _0x1d2053=_0x34cbe6;this[_0x1d2053(0x1ec)](this[_0x1d2053(0x1ca)],this[_0x1d2053(0x1c3)],_0x464746),this[_0x1d2053(0x232)](_0x464746);}[_0x34cbe6(0x232)](_0x292e1e){const _0x42875c=_0x34cbe6,_0x5b4167=!_0x292e1e[_0x42875c(0x1de)][_0x42875c(0x21b)]&&_0x292e1e[_0x42875c(0x1de)][_0x42875c(0x202)],_0x3dabe9=_0x292e1e[_0x42875c(0x21e)][_0x42875c(0x202)],_0x498b89=_0x292e1e[_0x42875c(0x237)][_0x42875c(0x202)];this[_0x42875c(0x1bf)][_0x42875c(0x1d0)]=_0x5b4167||_0x3dabe9||_0x498b89;}[_0x34cbe6(0x1c1)](){const _0x59abf6=_0x34cbe6;this[_0x59abf6(0x1d6)]({'tag':_0x59abf6(0x23c),'attributes':{'class':[bo,_0x59abf6(0x1fc)]},'children':[{'tag':_0x59abf6(0x23c),'attributes':{'class':To},'children':this[_0x59abf6(0x1e8)]}]});}[_0x34cbe6(0x1f7)](){const _0x1d2a1b=_0x34cbe6;this[_0x1d2a1b(0x1bf)]['on'](_0x1d2a1b(0x1e9),()=>{const _0x5243e1=_0x1d2a1b;this[_0x5243e1(0x1cf)]();});}[_0x34cbe6(0x22b)](_0x17298c){const _0x2d88ca=_0x34cbe6,_0x82ab88=new _0x586562(_0x17298c);return _0x82ab88[_0x2d88ca(0x1d9)]({'label':_0x117226(_0x17298c,_0x2d88ca(0x242)),'class':Vo+'\x20'+ko,'icon':_0x256e27,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x82ab88;}[_0x34cbe6(0x1e4)](_0x3ddbd2){const _0x52bd8e=_0x34cbe6;return this[_0x52bd8e(0x1dc)](_0x3ddbd2,Ao);}[_0x34cbe6(0x1da)](_0x36d0db){const _0xdb6533=_0x34cbe6,_0x1576c3=this[_0xdb6533(0x1dc)](_0x36d0db,Eo);return this[_0xdb6533(0x1e6)](_0x1576c3,_0x36d0db),_0x1576c3;}[_0x34cbe6(0x1fa)](_0x58d3d2,_0x1bafa1){const _0x14c4b7=_0x34cbe6;return new _0x2a47b8(_0x58d3d2,_0x1bafa1,{'onBackToContext':()=>{const _0x346d7a=_0x4498;this[_0x346d7a(0x1ee)](),this[_0x346d7a(0x1ca)][_0x346d7a(0x227)]({'target':this[_0x346d7a(0x1bf)][_0x346d7a(0x1c9)],'limiter':this[_0x346d7a(0x208)](),'positions':So});},'onResourceSelected':(_0x4ea88d,_0x32368a)=>{const _0x4a131c=_0x4498;this[_0x4a131c(0x1c4)](_0x4a131c(0x1f0),{'source':_0x4ea88d,'resource':_0x32368a});},'onLoadSourceResources':_0x3c96de=>{const _0x3de4ce=_0x4498;this[_0x3de4ce(0x1c4)](_0x3de4ce(0x201),_0x3c96de);},'onBalloonClosed':()=>{const _0x4c5c8b=_0x4498;this[_0x4c5c8b(0x1bf)][_0x4c5c8b(0x20a)]=!0x1;},'getLimiterElement':()=>this[_0x14c4b7(0x208)](),'getTargetElement':()=>this[_0x14c4b7(0x1bf)][_0x14c4b7(0x1c9)]});}[_0x34cbe6(0x208)](){const _0x28a920=_0x34cbe6;return this[_0x28a920(0x1c9)]?.[_0x28a920(0x1ea)]('.'+Ro)||document[_0x28a920(0x21d)];}[_0x34cbe6(0x1dc)](_0x2f5317,_0x17d15c){const _0x3da32a=_0x34cbe6,_0x9d623b=new _0x10e7f5(_0x2f5317);return _0x9d623b[_0x3da32a(0x225)]({'attributes':{'class':_0x17d15c}}),this[_0x3da32a(0x245)][_0x3da32a(0x243)](_0x9d623b),_0x9d623b;}[_0x34cbe6(0x1ec)](_0x2d70c2,_0x5849cb,_0xbde76d){const _0x185c23=_0x34cbe6;if(_0x2d70c2[_0x185c23(0x1c8)][_0x185c23(0x1f3)](),!_0xbde76d[_0x185c23(0x1de)][_0x185c23(0x21b)]&&_0xbde76d[_0x185c23(0x1de)][_0x185c23(0x202)]){const _0x536a40=this[_0x185c23(0x1e5)](_0x5849cb,{'label':_0x117226(_0x5849cb,_0x185c23(0x21c)),'icon':_0x24c9c6});_0x536a40['on'](_0x185c23(0x1e9),()=>{const _0x36ae35=_0x185c23;this[_0x36ae35(0x1c4)](_0x36ae35(0x22e)),this[_0x36ae35(0x21a)]();}),_0x2d70c2[_0x185c23(0x1c8)][_0x185c23(0x243)](_0x536a40);}if(_0xbde76d[_0x185c23(0x21e)][_0x185c23(0x202)]){const _0x5bb3b5=this[_0x185c23(0x1e5)](_0x5849cb,{'label':_0x117226(_0x5849cb,_0x185c23(0x1dd)),'icon':_0x2667f0});_0x5bb3b5['on'](_0x185c23(0x1e9),()=>{const _0x1ecdb8=_0x185c23;this[_0x1ecdb8(0x21a)](),this[_0x1ecdb8(0x219)](),this[_0x1ecdb8(0x234)][_0x1ecdb8(0x227)]({'target':this[_0x1ecdb8(0x1bf)][_0x1ecdb8(0x1c9)],'limiter':this[_0x1ecdb8(0x208)](),'positions':So}),this[_0x1ecdb8(0x1b7)][_0x1ecdb8(0x1c7)]();}),_0x2d70c2[_0x185c23(0x1c8)][_0x185c23(0x243)](_0x5bb3b5);}if(_0xbde76d[_0x185c23(0x237)][_0x185c23(0x202)]){const _0xd5031d=new _0x1721e2(_0x5849cb);_0xd5031d[_0x185c23(0x1d9)]({'label':_0x117226(_0x5849cb,_0x185c23(0x231)),'icon':_0x3abdc6,'withText':!0x0,'tooltip':!0x0,'class':vo,'allowMultipleFiles':!0x0}),_0xd5031d['on'](_0x185c23(0x1d5),(_0x28c2a5,_0x395349)=>{const _0x4c563d=_0x185c23;this[_0x4c563d(0x1c4)](_0x4c563d(0x1ba),_0x395349),this[_0x4c563d(0x21a)]();}),_0xd5031d[_0x185c23(0x212)]=!0x0,_0x2d70c2[_0x185c23(0x1c8)][_0x185c23(0x243)](_0xd5031d);}for(const _0x1af35b of _0xbde76d[_0x185c23(0x1f9)]){const _0x23d49d=this[_0x185c23(0x1e5)](_0x5849cb,{'label':_0x1af35b[_0x185c23(0x1d2)],'icon':_0x1af35b[_0x185c23(0x23e)]||_0x1544b9,'type':_0x185c23(0x1bb)});_0x2d70c2[_0x185c23(0x1c8)][_0x185c23(0x243)](_0x23d49d),_0x23d49d['on'](_0x185c23(0x1e9),()=>{const _0x482e90=_0x185c23;this[_0x482e90(0x21a)](),this[_0x482e90(0x218)](_0x1af35b);});}}[_0x34cbe6(0x1e6)](_0x13cf41,_0x11737a){const _0x8599cf=_0x34cbe6;this[_0x8599cf(0x1b7)]=new _0x57bde9(_0x11737a),this[_0x8599cf(0x1b7)]['on'](_0x8599cf(0x1cc),(_0x31dd4f,_0xd585a0)=>{const _0x239a61=_0x8599cf;this[_0x239a61(0x1f8)](_0xd585a0);}),this[_0x8599cf(0x1b7)]['on'](_0x8599cf(0x1fd),()=>{const _0x56182d=_0x8599cf;this[_0x56182d(0x1ed)](),this[_0x56182d(0x1ee)](),this[_0x56182d(0x1ca)][_0x56182d(0x227)]({'target':this[_0x56182d(0x1bf)][_0x56182d(0x1c9)],'limiter':this[_0x56182d(0x208)](),'positions':So});}),this[_0x8599cf(0x1b7)]['on'](_0x8599cf(0x1be),()=>{const _0x122fdd=_0x8599cf;this[_0x122fdd(0x234)][_0x122fdd(0x205)]&&this[_0x122fdd(0x234)][_0x122fdd(0x227)]({'target':this[_0x122fdd(0x1bf)][_0x122fdd(0x1c9)],'limiter':this[_0x122fdd(0x208)](),'positions':So});}),_0x13cf41[_0x8599cf(0x1c8)][_0x8599cf(0x243)](this[_0x8599cf(0x1b7)]);}[_0x34cbe6(0x1e5)](_0x4f90e1,_0x615d8f){const _0x1cca1d=_0x34cbe6,_0x25ab7f=_0x1cca1d(0x1bb)===_0x615d8f[_0x1cca1d(0x1df)]?new SourcesBalloonButtonView(_0x4f90e1):new _0x586562(_0x4f90e1);return _0x25ab7f[_0x1cca1d(0x1d9)]({'label':_0x615d8f[_0x1cca1d(0x1d2)],'icon':_0x615d8f[_0x1cca1d(0x23e)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':vo}),_0x25ab7f;}[_0x34cbe6(0x239)](){const _0x5bc383=_0x34cbe6;this[_0x5bc383(0x20b)](),this[_0x5bc383(0x23b)]();}[_0x34cbe6(0x23b)](){const _0x4f3b59=_0x34cbe6;_0x3bc392({'emitter':this[_0x4f3b59(0x234)],'contextElements':[this[_0x4f3b59(0x234)][_0x4f3b59(0x1c9)]],'callback':()=>{const _0x115131=_0x4f3b59;this[_0x115131(0x1ed)]();},'activator':()=>this[_0x4f3b59(0x234)][_0x4f3b59(0x205)]});}[_0x34cbe6(0x1e1)](_0x50b1ef){const _0x1d66bb=_0x34cbe6,_0x8fa729=this[_0x1d66bb(0x222)];_0x8fa729[_0x1d66bb(0x1f1)][_0x1d66bb(0x20a)]=_0x50b1ef,_0x50b1ef?_0x8fa729[_0x1d66bb(0x1c6)][_0x1d66bb(0x240)]():_0x8fa729[_0x1d66bb(0x1c6)][_0x1d66bb(0x207)]();}[_0x34cbe6(0x20b)](){const _0x3c16c1=_0x34cbe6,{balloonView:_0x2846e1,buttonView:_0x1f3e0c,hideMethod:_0x36d6ea}=this[_0x3c16c1(0x222)];_0x3bc392({'emitter':_0x2846e1,'contextElements':[_0x2846e1[_0x3c16c1(0x1c9)],_0x1f3e0c[_0x3c16c1(0x1c9)]],'callback':()=>{_0x36d6ea();},'activator':()=>_0x1f3e0c[_0x3c16c1(0x20a)]&&!this[_0x3c16c1(0x234)][_0x3c16c1(0x205)]&&!this[_0x3c16c1(0x1d1)][_0x3c16c1(0x1e7)]()});}[_0x34cbe6(0x1e0)](_0x5d8122,_0x3667df,_0x37f1a9=!0x1,_0x187196=!0x1){const _0x122541=_0x34cbe6,_0x49a0b6=_0x122541(0x1b8)===_0x3667df||!0x0===_0x5d8122[_0x122541(0x241)],_0x578337=new _0x3b1f6d(this[_0x122541(0x1c3)],_0x5d8122,_0x49a0b6,_0x37f1a9,_0x187196);return _0x49a0b6||_0x578337['on'](_0x122541(0x1e3),()=>{const _0x5ea3c4=_0x122541;this[_0x5ea3c4(0x1c4)](_0x5ea3c4(0x20d),_0x578337['id']);}),_0x578337;}[_0x34cbe6(0x23d)](_0x4ef329,_0xcfdb8b){const _0x146dea=_0x34cbe6;_0xcfdb8b[_0x146dea(0x243)](_0x4ef329,0x0);}[_0x34cbe6(0x238)](_0x3f0f4d,_0xec7837){const _0x3518db=_0x34cbe6,_0x2c3392=_0xec7837[_0x3518db(0x1ef)](_0x305a99=>_0x305a99['id']===_0x3f0f4d);_0x2c3392&&_0xec7837[_0x3518db(0x214)](_0x2c3392);}[_0x34cbe6(0x1cf)](){const _0xf68163=_0x34cbe6;this[_0xf68163(0x1bf)][_0xf68163(0x20a)]?this[_0xf68163(0x21a)]():(this[_0xf68163(0x1ee)](),this[_0xf68163(0x1ca)][_0xf68163(0x227)]({'target':this[_0xf68163(0x1bf)][_0xf68163(0x1c9)],'limiter':this[_0xf68163(0x208)](),'positions':So}));}[_0x34cbe6(0x1f8)](_0x1f676c){const _0x47618c=_0x34cbe6;this[_0x47618c(0x1b7)][_0x47618c(0x1f3)](),this[_0x47618c(0x1ed)](),this[_0x47618c(0x1c4)](_0x47618c(0x1cd),_0x1f676c);}}export class SourcesBalloonButtonView extends _0x586562{[_0x34cbe6(0x229)];constructor(_0x529378){const _0x48c1a4=_0x34cbe6;super(_0x529378),this[_0x48c1a4(0x1d9)]({'withText':!0x0,'role':_0x48c1a4(0x223)}),this[_0x48c1a4(0x229)]=this[_0x48c1a4(0x215)](),this[_0x48c1a4(0x225)]({'attributes':{'class':[go]}});}[_0x34cbe6(0x23a)](){const _0x6e57d4=_0x34cbe6;super[_0x6e57d4(0x23a)](),this[_0x6e57d4(0x1d4)][_0x6e57d4(0x243)](this[_0x6e57d4(0x229)]);}[_0x34cbe6(0x215)](){const _0x23333c=_0x34cbe6,_0x52764c=new _0x4d10cf();return _0x52764c[_0x23333c(0x1c8)]=_0x5ecd7c,_0x52764c[_0x23333c(0x225)]({'attributes':{'class':go+_0x23333c(0x1ce)}}),_0x52764c;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x29b4(_0x50d9a9,_0x45ac4a){const _0x5873f2=_0x5873();return _0x29b4=function(_0x29b42f,_0x4f18ae){_0x29b42f=_0x29b42f-0xa1;let _0x113821=_0x5873f2[_0x29b42f];return _0x113821;},_0x29b4(_0x50d9a9,_0x45ac4a);}const _0x2d96fb=_0x29b4;(function(_0x3a50f5,_0x172609){const _0x1a86c3=_0x29b4,_0x241682=_0x3a50f5();while(!![]){try{const _0xe113c4=parseInt(_0x1a86c3(0xaa))/0x1+parseInt(_0x1a86c3(0xbb))/0x2*(parseInt(_0x1a86c3(0xa4))/0x3)+-parseInt(_0x1a86c3(0xb5))/0x4+parseInt(_0x1a86c3(0xb4))/0x5*(-parseInt(_0x1a86c3(0xa8))/0x6)+parseInt(_0x1a86c3(0xb6))/0x7*(parseInt(_0x1a86c3(0xb8))/0x8)+parseInt(_0x1a86c3(0xad))/0x9*(parseInt(_0x1a86c3(0xbe))/0xa)+-parseInt(_0x1a86c3(0xa2))/0xb*(parseInt(_0x1a86c3(0xa6))/0xc);if(_0xe113c4===_0x172609)break;else _0x241682['push'](_0x241682['shift']());}catch(_0x488e19){_0x241682['push'](_0x241682['shift']());}}}(_0x5873,0x67402));import{ButtonView as _0x58a143,View as _0x9950c8}from'ckeditor5/src/ui.js';import{IconStop as _0x1196a5}from'ckeditor5/src/icons.js';import{getTranslation as _0xbadec}from'../../../aicore/utils/common-translations.js';export class AIChatControlsLoaderView extends _0x9950c8{[_0x2d96fb(0xbd)];[_0x2d96fb(0xa1)];constructor(_0x3a481c){const _0x531663=_0x2d96fb;super(_0x3a481c),this[_0x531663(0xbd)]=this[_0x531663(0xb7)](),this[_0x531663(0xa1)]=this[_0x531663(0xb1)](),this[_0x531663(0xb0)]({'tag':_0x531663(0xa5),'attributes':{'class':['ck',_0x531663(0xba),_0x531663(0xa3)]},'children':[this[_0x531663(0xa1)],this[_0x531663(0xbd)]]});}[_0x2d96fb(0xb7)](){const _0x516c98=_0x2d96fb,_0x383029=new _0x58a143(this[_0x516c98(0xa7)]);return _0x383029[_0x516c98(0xaf)]({'label':_0xbadec(this[_0x516c98(0xa7)],_0x516c98(0xb3)),'withText':!0x0,'class':_0x516c98(0xbc),'icon':_0x1196a5}),_0x383029['on'](_0x516c98(0xb9),()=>{const _0x20afc7=_0x516c98;this[_0x20afc7(0xa9)](_0x20afc7(0xae));}),_0x383029;}[_0x2d96fb(0xb1)](){const _0x498e0d=_0x2d96fb,_0x23f2c3=new _0x9950c8(this[_0x498e0d(0xa7)]);return _0x23f2c3[_0x498e0d(0xb0)]({'tag':_0x498e0d(0xa5),'attributes':{'class':[_0x498e0d(0xab)]},'children':[{'tag':_0x498e0d(0xa5),'attributes':{'class':[_0x498e0d(0xbf)]},'children':[{'tag':_0x498e0d(0xa5),'attributes':{'class':[_0x498e0d(0xac)]}},{'tag':_0x498e0d(0xa5),'attributes':{'class':[_0x498e0d(0xac)]}},{'tag':_0x498e0d(0xa5),'attributes':{'class':[_0x498e0d(0xac)]}}]},{'text':_0xbadec(this[_0x498e0d(0xa7)],_0x498e0d(0xb2))}]}),_0x23f2c3;}}function _0x5873(){const _0x1af62a=['5SGKyaa','500916NVBTaL','7uuqWLk','_createCancelButtonView','6638200uAxkOD','execute','ck-ai-chat-controls-loader-wrapper','372PBNDMN','ai-chat-controls-loader__cancel-button','_cancelButtonView','266080TVisfk','ck-ai-chat-controls-loader-icon','_loaderView','329021xDgxlS','ck-reset_all','204dznoGF','div','168Sqkvoo','locale','4382526PhvTwI','fire','429167DEEBRJ','ck-ai-chat-controls-loader','ck-ai-chat-controls-loader-icon-dot','144ZVhSLc','abortPromptStream','set','setTemplate','_createLoaderView','AI_CHAT_IS_WRITING','AI_CHAT_STOP_GENERATING'];_0x5873=function(){return _0x1af62a;};return _0x5873();}
23
+ const _0x21a3bb=_0x3715;(function(_0x373586,_0x4029ab){const _0x3cf6e6=_0x3715,_0x1c74c6=_0x373586();while(!![]){try{const _0xd2dbb9=-parseInt(_0x3cf6e6(0xec))/0x1*(-parseInt(_0x3cf6e6(0xef))/0x2)+parseInt(_0x3cf6e6(0xed))/0x3+-parseInt(_0x3cf6e6(0xf7))/0x4+parseInt(_0x3cf6e6(0x102))/0x5*(parseInt(_0x3cf6e6(0x104))/0x6)+-parseInt(_0x3cf6e6(0xf9))/0x7*(parseInt(_0x3cf6e6(0x101))/0x8)+-parseInt(_0x3cf6e6(0xfc))/0x9*(-parseInt(_0x3cf6e6(0xfa))/0xa)+parseInt(_0x3cf6e6(0x100))/0xb*(-parseInt(_0x3cf6e6(0x106))/0xc);if(_0xd2dbb9===_0x4029ab)break;else _0x1c74c6['push'](_0x1c74c6['shift']());}catch(_0x2f6a15){_0x1c74c6['push'](_0x1c74c6['shift']());}}}(_0x1748,0x976ad));function _0x1748(){const _0xf5490e=['_cancelButtonView','fire','AI_CHAT_IS_WRITING','setTemplate','1346456gEXESb','_loaderView','91STQJUT','1130ElzCIg','ck-ai-chat-controls-loader-wrapper','32220kyYRHX','ck-ai-chat-controls-loader-icon-dot','set','AI_CHAT_STOP_GENERATING','77ZBdRTg','650344WIRvzT','50zCYEsn','execute','712482vNtRaH','abortPromptStream','1757292wMkBfa','ck-reset_all','ck-ai-chat-controls-loader-icon','_createLoaderView','locale','856353VKhLwv','1771056pCHvgF','ck-ai-chat-controls-loader','2UEyWJY','div','ai-chat-controls-loader__cancel-button','_createCancelButtonView'];_0x1748=function(){return _0xf5490e;};return _0x1748();}import{ButtonView as _0x3842c0,View as _0x171ec8}from'ckeditor5/src/ui.js';function _0x3715(_0x21d949,_0x2ce2bf){const _0x1748c3=_0x1748();return _0x3715=function(_0x3715ef,_0x436c31){_0x3715ef=_0x3715ef-0xec;let _0x52878a=_0x1748c3[_0x3715ef];return _0x52878a;},_0x3715(_0x21d949,_0x2ce2bf);}import{IconStop as _0x4971f5}from'ckeditor5/src/icons.js';import{getTranslation as _0x29bed1}from'../../../aicore/utils/common-translations.js';export class AIChatControlsLoaderView extends _0x171ec8{[_0x21a3bb(0xf3)];[_0x21a3bb(0xf8)];constructor(_0x569986){const _0x510815=_0x21a3bb;super(_0x569986),this[_0x510815(0xf3)]=this[_0x510815(0xf2)](),this[_0x510815(0xf8)]=this[_0x510815(0x109)](),this[_0x510815(0xf6)]({'tag':_0x510815(0xf0),'attributes':{'class':['ck',_0x510815(0xfb),_0x510815(0x107)]},'children':[this[_0x510815(0xf8)],this[_0x510815(0xf3)]]});}[_0x21a3bb(0xf2)](){const _0x4d8d17=_0x21a3bb,_0x304c32=new _0x3842c0(this[_0x4d8d17(0x10a)]);return _0x304c32[_0x4d8d17(0xfe)]({'label':_0x29bed1(this[_0x4d8d17(0x10a)],_0x4d8d17(0xff)),'withText':!0x0,'class':_0x4d8d17(0xf1),'icon':_0x4971f5}),_0x304c32['on'](_0x4d8d17(0x103),()=>{const _0x5ccf82=_0x4d8d17;this[_0x5ccf82(0xf4)](_0x5ccf82(0x105));}),_0x304c32;}[_0x21a3bb(0x109)](){const _0x2dd805=_0x21a3bb,_0xd1cbe1=new _0x171ec8(this[_0x2dd805(0x10a)]);return _0xd1cbe1[_0x2dd805(0xf6)]({'tag':_0x2dd805(0xf0),'attributes':{'class':[_0x2dd805(0xee)]},'children':[{'tag':_0x2dd805(0xf0),'attributes':{'class':[_0x2dd805(0x108)]},'children':[{'tag':_0x2dd805(0xf0),'attributes':{'class':[_0x2dd805(0xfd)]}},{'tag':_0x2dd805(0xf0),'attributes':{'class':[_0x2dd805(0xfd)]}},{'tag':_0x2dd805(0xf0),'attributes':{'class':[_0x2dd805(0xfd)]}}]},{'text':_0x29bed1(this[_0x2dd805(0x10a)],_0x2dd805(0xf5))}]}),_0xd1cbe1;}}