@ckeditor/ckeditor5-ai 47.4.0-alpha.1 → 47.4.0-alpha.2

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 (292) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +5 -5
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +15 -15
  150. package/src/aiactions/aiactions.js +1 -1
  151. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  152. package/src/aiactions/model/aiactionsreply.js +1 -1
  153. package/src/aiassistant/adapters/aiadapter.js +1 -1
  154. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  155. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  156. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  157. package/src/aiassistant/aiassistant.js +1 -1
  158. package/src/aiassistant/aiassistantediting.js +1 -1
  159. package/src/aiassistant/aiassistantui.js +1 -1
  160. package/src/aiassistant/legacyerrors.js +1 -1
  161. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  162. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  163. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  164. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  165. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  166. package/src/aiassistant/ui/form/aiformview.js +1 -1
  167. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  168. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  169. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  170. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  171. package/src/aiassistant/utils/common-translations.js +1 -1
  172. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  173. package/src/aiballoon/aiballoon.js +1 -1
  174. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  175. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  176. package/src/aiballoon/ui/aiballoonview.js +1 -1
  177. package/src/aichat/aichat.js +1 -1
  178. package/src/aichat/aichatcontroller.js +1 -1
  179. package/src/aichat/aichatui.js +1 -1
  180. package/src/aichat/model/aichatcontext.js +1 -1
  181. package/src/aichat/model/aichatconversation.js +1 -1
  182. package/src/aichat/model/aichatinteraction.js +1 -1
  183. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  184. package/src/aichat/ui/aichatfeedview.js +1 -1
  185. package/src/aichat/ui/aichatheaderview.js +1 -1
  186. package/src/aichat/ui/aichatview.js +1 -1
  187. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  188. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  189. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  190. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  191. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  192. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  193. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  194. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  195. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  196. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  197. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  198. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  199. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  200. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  201. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  202. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  203. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  204. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  205. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  206. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  207. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  208. package/src/aichat/utils/eventnames.js +1 -1
  209. package/src/aichat/utils/promisequeue.js +1 -1
  210. package/src/aichathistory/aichathistory.js +1 -1
  211. package/src/aichathistory/aichathistorycontroller.js +1 -1
  212. package/src/aichathistory/aichathistoryui.js +1 -1
  213. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  214. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  215. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  216. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  217. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  218. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  219. package/src/aicore/aiconnector.js +1 -1
  220. package/src/aicore/aiediting.js +1 -1
  221. package/src/aicore/model/aicapabilities.js +1 -1
  222. package/src/aicore/model/aicontext.js +1 -1
  223. package/src/aicore/model/aiinteraction.js +1 -1
  224. package/src/aicore/model/aimodels.js +1 -1
  225. package/src/aicore/model/aireply.js +1 -1
  226. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  227. package/src/aicore/pipeline/airesponseparser.js +2 -2
  228. package/src/aicore/ui/aidisclaimerview.js +1 -1
  229. package/src/aicore/ui/aiskeleton.js +1 -1
  230. package/src/aicore/ui/aispinner.js +1 -1
  231. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  232. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  233. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  234. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  235. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  236. package/src/aicore/utils/common-translations.js +1 -1
  237. package/src/aicore/utils/createresizebutton.js +1 -1
  238. package/src/aicore/utils/documentposition.js +1 -1
  239. package/src/aicore/utils/documentrange.js +1 -1
  240. package/src/aicore/utils/eventnames.js +1 -1
  241. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  242. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  243. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  244. package/src/aicore/utils/htmlparser.js +1 -1
  245. package/src/aicore/utils/htmlstreamer.js +1 -1
  246. package/src/aicore/utils/scrollmanager.js +1 -1
  247. package/src/aieditorintegration/aieditorintegration.js +1 -1
  248. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  249. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  250. package/src/aiquickactions/aiquickactions.js +1 -1
  251. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  252. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  253. package/src/aiquickactions/aiquickactionsui.js +1 -1
  254. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  255. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  256. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  257. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
  258. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  259. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  260. package/src/aireviewmode/aireviewmode.js +1 -1
  261. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  262. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  263. package/src/aireviewmode/aireviewmodeui.js +1 -1
  264. package/src/aireviewmode/model/aireviewcheck.js +1 -1
  265. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  266. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  267. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  268. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  269. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  270. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  271. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  272. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  273. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  274. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  275. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  276. package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
  277. package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +1 -1
  278. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  279. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  280. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  281. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  282. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  283. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  284. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  285. package/src/aitabs/aitabs.js +1 -1
  286. package/src/aitabs/aitabsmainview.js +1 -1
  287. package/src/aitabs/tabs/aitabsview.js +1 -1
  288. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  289. package/src/aitabs/tabs/tabpanelview.js +1 -1
  290. package/src/errors.js +1 -1
  291. package/src/errorsmap.js +1 -1
  292. package/src/index.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2844f7=_0x3477;(function(_0x25eb96,_0xe715be){const _0x11fbfa=_0x3477,_0x25d96d=_0x25eb96();while(!![]){try{const _0x4af2bf=parseInt(_0x11fbfa(0x89))/0x1+-parseInt(_0x11fbfa(0xad))/0x2+-parseInt(_0x11fbfa(0xc2))/0x3+parseInt(_0x11fbfa(0xb8))/0x4*(parseInt(_0x11fbfa(0xa1))/0x5)+parseInt(_0x11fbfa(0xbc))/0x6*(parseInt(_0x11fbfa(0x96))/0x7)+-parseInt(_0x11fbfa(0x85))/0x8*(-parseInt(_0x11fbfa(0x91))/0x9)+-parseInt(_0x11fbfa(0x8c))/0xa*(parseInt(_0x11fbfa(0x94))/0xb);if(_0x4af2bf===_0xe715be)break;else _0x25d96d['push'](_0x25d96d['shift']());}catch(_0x3a2669){_0x25d96d['push'](_0x25d96d['shift']());}}}(_0x232d,0x3a241));import{ButtonView as _0x507412,IconView as _0x108015}from'ckeditor5/src/ui.js';function _0x3477(_0x2cec8f,_0x215c36){const _0x232d8a=_0x232d();return _0x3477=function(_0x34778e,_0x2f9ba3){_0x34778e=_0x34778e-0x84;let _0x405ccd=_0x232d8a[_0x34778e];return _0x405ccd;},_0x3477(_0x2cec8f,_0x215c36);}import{IconClose as _0x391820,IconDocument as _0x49d1af,IconFileUpload as _0x1b6fd0,IconLink as _0x34cddd,IconSelection as _0x299a92}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x50120f}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x551689}from'../../../aicore/ui/aispinner.js';function _0x232d(){const _0x77cb6f=['bindTemplate','_createTemplateChildren','_isAnimationOnEnterEnabled','type','fire','set','disableAnimationOnEnter','ck-ai-chat-context-chip__label','div','496964OuiEsC','ck-ai-chat-context-chip_new-chip','_setupRemoveButtonEvent','isLoading','animationend','selection','small','tooltip','_initializeProperties','isVisible','addEventListener','273512HpbOUp','remove','_handleAnimationEndOnce','removeContextItemChip','564DEVIwQ','content','label','document','element','lastIndexOf','1159665wpIjip','_createRemoveButton','locale','uiId','ck-ai-chat-context-chip_document','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','4208GIguCw','ck-ai-chat-context-chip','classList','ck-ai-chat-context-chip__type-icon','474596jhpzGx','render','execute','940YiRIWi','itemType','add','webkitAnimationEnd','length','7983lkLnRj','_createTemplateAttributes','setTemplate','66561VYBaja','slice','27111duxEKT','ck-ai-chat-context-chip_wide','_createLabelElement','extendTemplate','bind','readonly','removeEventListener','span','_createLoaderIcon','_setupTemplate','_createIconView','10CjPhwp','ck-ai-chat-context-controls__chip-tooltip','ck-hidden'];_0x232d=function(){return _0x77cb6f;};return _0x232d();}const xn={'file':_0x1b6fd0,'document':_0x49d1af,'web-resource':_0x34cddd,'text':_0x1b6fd0,'selection':_0x299a92},bn=_0x2844f7(0x86),wn=_0x2844f7(0x97),Tn=_0x2844f7(0xc6),En=_0x2844f7(0xab),fn=_0x2844f7(0x88),An=_0x2844f7(0xa2),Cn='n';export class AIChatContextItemButtonView extends _0x507412{constructor(_0x1648fb,_0x12fef8,_0x492bc0,_0x82fce5,_0x2d434e=!0x1){const _0xcfc3a0=_0x2844f7;super(_0x1648fb),this[_0xcfc3a0(0xa6)]=_0x82fce5,this[_0xcfc3a0(0xb5)](_0x12fef8,_0x492bc0,_0x2d434e),this[_0xcfc3a0(0x9f)]();}[_0x2844f7(0x8a)](){const _0x95cd4e=_0x2844f7;super[_0x95cd4e(0x8a)](),this[_0x95cd4e(0xa6)]&&this[_0x95cd4e(0xc0)]&&(this[_0x95cd4e(0xc0)][_0x95cd4e(0x87)][_0x95cd4e(0x8e)](_0x95cd4e(0xae)),this[_0x95cd4e(0xba)](this[_0x95cd4e(0xc0)],()=>{const _0x9f6206=_0x95cd4e;this[_0x9f6206(0xc0)]&&this[_0x9f6206(0xc0)][_0x9f6206(0x87)][_0x9f6206(0xb9)](_0x9f6206(0xae));}));}[_0x2844f7(0xaa)](){const _0x34036e=_0x2844f7;this[_0x34036e(0xa6)]=!0x1,this[_0x34036e(0xc0)]&&this[_0x34036e(0xc0)][_0x34036e(0x87)][_0x34036e(0xb9)](_0x34036e(0xae));}[_0x2844f7(0xb5)](_0x5863b3,_0x2b3742,_0x44c6a1){const _0x280d3f=_0x2844f7;this[_0x280d3f(0xa9)](_0x280d3f(0xbe),_0x5863b3[_0x280d3f(0xbe)]),this[_0x280d3f(0xa9)](_0x280d3f(0xb4),!0x0),this[_0x280d3f(0xa9)](_0x280d3f(0x8d),_0x5863b3[_0x280d3f(0xa7)]),this[_0x280d3f(0xa9)]('id',_0x5863b3[_0x280d3f(0xc5)]),this[_0x280d3f(0xa9)](_0x280d3f(0x9b),_0x2b3742),this[_0x280d3f(0xa9)](_0x280d3f(0xb0),_0x44c6a1);}[_0x2844f7(0x9f)](){const _0x49bae6=_0x2844f7,_0x439289=this[_0x49bae6(0xa0)](),_0x52715e=this[_0x49bae6(0xc3)](),_0x226d3e=this[_0x49bae6(0xa4)];this[_0x49bae6(0x93)]({'tag':_0x49bae6(0xac),'attributes':this[_0x49bae6(0x92)](_0x226d3e),'children':this[_0x49bae6(0xa5)](_0x439289,_0x52715e,_0x226d3e)});}[_0x2844f7(0x92)](_0x53b1d2){const _0x479b09=_0x2844f7;return{'class':[bn,_0x53b1d2['if'](_0x479b09(0x8d),Tn,_0x49dee7=>_0x479b09(0xbf)==_0x49dee7),_0x53b1d2['if'](_0x479b09(0x8d),wn,_0x293811=>_0x479b09(0xb2)==_0x293811)],'data-cke-tooltip-text':_0x53b1d2['to'](_0x479b09(0xbe),In),'data-cke-tooltip-position':Cn,'data-cke-tooltip-class':An};}[_0x2844f7(0xa5)](_0x142e91,_0x510ad6,_0x36b9fa){const _0x2f6d1d=_0x2844f7,_0x440410=this[_0x2f6d1d(0x98)](_0x36b9fa),_0x1e76eb=this[_0x2f6d1d(0x9e)]();return this[_0x2f6d1d(0x9b)]?[_0x142e91,_0x440410]:[_0x142e91,_0x1e76eb,_0x440410,_0x510ad6];}[_0x2844f7(0x98)](_0x1e623a){const _0x2bdbb5=_0x2844f7;return{'tag':_0x2bdbb5(0x9d),'attributes':{'class':En},'children':[{'text':_0x1e623a['to'](_0x2bdbb5(0xbe))}]};}[_0x2844f7(0xc3)](){const _0x445393=_0x2844f7,_0x1eab5d=new _0x507412(this[_0x445393(0xc4)]);return _0x1eab5d[_0x445393(0xa9)]({'label':_0x50120f(this[_0x445393(0xc4)],_0x445393(0x84)),'icon':_0x391820}),this[_0x445393(0xaf)](_0x1eab5d),_0x1eab5d;}[_0x2844f7(0xaf)](_0x4d9b6a){const _0x2a8b8b=_0x2844f7;_0x4d9b6a['on'](_0x2a8b8b(0x8b),()=>{const _0x4690c3=_0x2a8b8b;this[_0x4690c3(0xa8)](_0x4690c3(0xbb),this['id']);});}[_0x2844f7(0xa0)](){const _0x35bc46=_0x2844f7,_0xad2b82=this[_0x35bc46(0xa4)],_0x323ee8=new _0x108015();return _0x323ee8[_0x35bc46(0xbd)]=xn[this[_0x35bc46(0x8d)]],_0x323ee8[_0x35bc46(0x99)]({'attributes':{'class':[fn,_0xad2b82['if'](_0x35bc46(0xb0),_0x35bc46(0xa3),_0x5b3458=>_0x5b3458)]}}),_0x323ee8;}[_0x2844f7(0xba)](_0x5cdb8e,_0x622a49){const _0x556cda=_0x2844f7;if(!_0x5cdb8e)return;const _0x7c0d47=()=>{const _0x1eb9a1=_0x3477;_0x622a49(),_0x5cdb8e[_0x1eb9a1(0x9c)](_0x1eb9a1(0xb1),_0x7c0d47),_0x5cdb8e[_0x1eb9a1(0x9c)](_0x1eb9a1(0x8f),_0x7c0d47);};_0x5cdb8e[_0x556cda(0xb7)](_0x556cda(0xb1),_0x7c0d47),_0x5cdb8e[_0x556cda(0xb7)](_0x556cda(0x8f),_0x7c0d47);}[_0x2844f7(0x9e)](){const _0x14315c=_0x2844f7,_0x2564e1=new _0x551689(_0x14315c(0xb3));return _0x2564e1[_0x14315c(0x9a)](_0x14315c(0xb6))['to'](this,_0x14315c(0xb0),_0x1b9ee6=>_0x1b9ee6),_0x2564e1;}}function In(_0x5c0e66){const _0x2542dc=_0x2844f7;if(!_0x5c0e66)return _0x5c0e66;if(_0x5c0e66[_0x2542dc(0x90)]<=0x78)return _0x5c0e66;const _0x348a21=_0x5c0e66[_0x2542dc(0x95)](0x0,0x78),_0x24cfc7=_0x348a21[_0x2542dc(0xc1)]('\x20');return(_0x24cfc7>0x0?_0x348a21[_0x2542dc(0x95)](0x0,_0x24cfc7):_0x348a21)+'…';}
23
+ const _0x348208=_0xf51f;function _0xf51f(_0x432470,_0x53cb71){const _0x3e8542=_0x3e85();return _0xf51f=function(_0xf51f3f,_0x2f9e7f){_0xf51f3f=_0xf51f3f-0x19a;let _0x5730ae=_0x3e8542[_0xf51f3f];return _0x5730ae;},_0xf51f(_0x432470,_0x53cb71);}(function(_0x4c5b8f,_0x5c7a41){const _0x464b76=_0xf51f,_0x58424e=_0x4c5b8f();while(!![]){try{const _0x2f4748=-parseInt(_0x464b76(0x1dc))/0x1*(-parseInt(_0x464b76(0x1ba))/0x2)+parseInt(_0x464b76(0x1a1))/0x3+parseInt(_0x464b76(0x1bd))/0x4*(parseInt(_0x464b76(0x1b1))/0x5)+parseInt(_0x464b76(0x1d0))/0x6+parseInt(_0x464b76(0x1b3))/0x7*(parseInt(_0x464b76(0x1a0))/0x8)+-parseInt(_0x464b76(0x1d6))/0x9*(parseInt(_0x464b76(0x1d1))/0xa)+-parseInt(_0x464b76(0x1d7))/0xb;if(_0x2f4748===_0x5c7a41)break;else _0x58424e['push'](_0x58424e['shift']());}catch(_0x34b376){_0x58424e['push'](_0x58424e['shift']());}}}(_0x3e85,0x4f7f2));import{ButtonView as _0x24c2b2,IconView as _0x597881}from'ckeditor5/src/ui.js';import{IconClose as _0x1db0d3,IconDocument as _0x309671,IconFileUpload as _0x4b9e31,IconLink as _0x55cf73,IconSelection as _0x162163}from'@ckeditor/ckeditor5-icons';function _0x3e85(){const _0x1470bb=['remove','_createTemplateAttributes','span','_createLoaderIcon','ck-ai-chat-context-chip__label','length','15798xBweyj','tooltip','removeEventListener','335556ASyCvx','removeContextItemChip','_initializeProperties','execute','set','ck-ai-chat-context-chip_new-chip','element','setTemplate','isLoading','isVisible','ck-ai-chat-context-controls__chip-tooltip','_setupRemoveButtonEvent','label','_handleAnimationEndOnce','_createTemplateChildren','locale','bind','ck-ai-chat-context-chip','ck-ai-chat-context-chip_document','1955706lfzrIO','4388880DoEkOO','ck-ai-chat-context-chip__type-icon','slice','bindTemplate','_createRemoveButton','9ElVPhd','11888756uRCEMj','_createIconView','readonly','webkitAnimationEnd','_createLabelElement','69PeIwJD','type','fire','uiId','_isAnimationOnEnterEnabled','lastIndexOf','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','16DWtXhG','840615EcNuar','ck-ai-chat-context-chip_wide','ck-hidden','content','_setupTemplate','addEventListener','document','classList','small','disableAnimationOnEnter','add','render','selection','animationend','itemType','div','15DlgLiK','extendTemplate','1548568yvJHLh'];_0x3e85=function(){return _0x1470bb;};return _0x3e85();}import{getTranslation as _0x59a000}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x33bae3}from'../../../aicore/ui/aispinner.js';const xn={'file':_0x4b9e31,'document':_0x309671,'web-resource':_0x55cf73,'text':_0x4b9e31,'selection':_0x162163},bn=_0x348208(0x1ce),wn=_0x348208(0x1a2),Tn=_0x348208(0x1cf),En=_0x348208(0x1b8),fn=_0x348208(0x1d2),An=_0x348208(0x1c7),Cn='n';export class AIChatContextItemButtonView extends _0x24c2b2{constructor(_0x5117af,_0x14aae5,_0x34f3df,_0x2ee7b0,_0x393cd1=!0x1){const _0xb428d1=_0x348208;super(_0x5117af),this[_0xb428d1(0x19d)]=_0x2ee7b0,this[_0xb428d1(0x1bf)](_0x14aae5,_0x34f3df,_0x393cd1),this[_0xb428d1(0x1a5)]();}[_0x348208(0x1ac)](){const _0x2934db=_0x348208;super[_0x2934db(0x1ac)](),this[_0x2934db(0x19d)]&&this[_0x2934db(0x1c3)]&&(this[_0x2934db(0x1c3)][_0x2934db(0x1a8)][_0x2934db(0x1ab)](_0x2934db(0x1c2)),this[_0x2934db(0x1ca)](this[_0x2934db(0x1c3)],()=>{const _0x266341=_0x2934db;this[_0x266341(0x1c3)]&&this[_0x266341(0x1c3)][_0x266341(0x1a8)][_0x266341(0x1b4)](_0x266341(0x1c2));}));}[_0x348208(0x1aa)](){const _0x593b2d=_0x348208;this[_0x593b2d(0x19d)]=!0x1,this[_0x593b2d(0x1c3)]&&this[_0x593b2d(0x1c3)][_0x593b2d(0x1a8)][_0x593b2d(0x1b4)](_0x593b2d(0x1c2));}[_0x348208(0x1bf)](_0x18d1e0,_0xba3634,_0x2a2240){const _0x407f1b=_0x348208;this[_0x407f1b(0x1c1)](_0x407f1b(0x1c9),_0x18d1e0[_0x407f1b(0x1c9)]),this[_0x407f1b(0x1c1)](_0x407f1b(0x1bb),!0x0),this[_0x407f1b(0x1c1)](_0x407f1b(0x1af),_0x18d1e0[_0x407f1b(0x19a)]),this[_0x407f1b(0x1c1)]('id',_0x18d1e0[_0x407f1b(0x19c)]),this[_0x407f1b(0x1c1)](_0x407f1b(0x1d9),_0xba3634),this[_0x407f1b(0x1c1)](_0x407f1b(0x1c5),_0x2a2240);}[_0x348208(0x1a5)](){const _0x4464a4=_0x348208,_0x1e3080=this[_0x4464a4(0x1d8)](),_0x33dedd=this[_0x4464a4(0x1d5)](),_0x360219=this[_0x4464a4(0x1d4)];this[_0x4464a4(0x1c4)]({'tag':_0x4464a4(0x1b0),'attributes':this[_0x4464a4(0x1b5)](_0x360219),'children':this[_0x4464a4(0x1cb)](_0x1e3080,_0x33dedd,_0x360219)});}[_0x348208(0x1b5)](_0x1daa1e){const _0x2b1f9b=_0x348208;return{'class':[bn,_0x1daa1e['if'](_0x2b1f9b(0x1af),Tn,_0x1a8b15=>_0x2b1f9b(0x1a7)==_0x1a8b15),_0x1daa1e['if'](_0x2b1f9b(0x1af),wn,_0x4a9cc0=>_0x2b1f9b(0x1ad)==_0x4a9cc0)],'data-cke-tooltip-text':_0x1daa1e['to'](_0x2b1f9b(0x1c9),In),'data-cke-tooltip-position':Cn,'data-cke-tooltip-class':An};}[_0x348208(0x1cb)](_0x15a7a1,_0x3b5f66,_0x244661){const _0x10e255=_0x348208,_0x43a202=this[_0x10e255(0x1db)](_0x244661),_0x1ea701=this[_0x10e255(0x1b7)]();return this[_0x10e255(0x1d9)]?[_0x15a7a1,_0x43a202]:[_0x15a7a1,_0x1ea701,_0x43a202,_0x3b5f66];}[_0x348208(0x1db)](_0x5dd5fb){const _0x46fe63=_0x348208;return{'tag':_0x46fe63(0x1b6),'attributes':{'class':En},'children':[{'text':_0x5dd5fb['to'](_0x46fe63(0x1c9))}]};}[_0x348208(0x1d5)](){const _0x28891d=_0x348208,_0x5d27a0=new _0x24c2b2(this[_0x28891d(0x1cc)]);return _0x5d27a0[_0x28891d(0x1c1)]({'label':_0x59a000(this[_0x28891d(0x1cc)],_0x28891d(0x19f)),'icon':_0x1db0d3}),this[_0x28891d(0x1c8)](_0x5d27a0),_0x5d27a0;}[_0x348208(0x1c8)](_0x56b6ed){const _0x183185=_0x348208;_0x56b6ed['on'](_0x183185(0x1c0),()=>{const _0x470e5b=_0x183185;this[_0x470e5b(0x19b)](_0x470e5b(0x1be),this['id']);});}[_0x348208(0x1d8)](){const _0x506f7f=_0x348208,_0x2c8a20=this[_0x506f7f(0x1d4)],_0x19f325=new _0x597881();return _0x19f325[_0x506f7f(0x1a4)]=xn[this[_0x506f7f(0x1af)]],_0x19f325[_0x506f7f(0x1b2)]({'attributes':{'class':[fn,_0x2c8a20['if'](_0x506f7f(0x1c5),_0x506f7f(0x1a3),_0x3e823a=>_0x3e823a)]}}),_0x19f325;}[_0x348208(0x1ca)](_0x1f0176,_0x3898c2){const _0x41c879=_0x348208;if(!_0x1f0176)return;const _0xb57e7b=()=>{const _0x3f9e32=_0xf51f;_0x3898c2(),_0x1f0176[_0x3f9e32(0x1bc)](_0x3f9e32(0x1ae),_0xb57e7b),_0x1f0176[_0x3f9e32(0x1bc)](_0x3f9e32(0x1da),_0xb57e7b);};_0x1f0176[_0x41c879(0x1a6)](_0x41c879(0x1ae),_0xb57e7b),_0x1f0176[_0x41c879(0x1a6)](_0x41c879(0x1da),_0xb57e7b);}[_0x348208(0x1b7)](){const _0x93e567=_0x348208,_0x16ec5f=new _0x33bae3(_0x93e567(0x1a9));return _0x16ec5f[_0x93e567(0x1cd)](_0x93e567(0x1c6))['to'](this,_0x93e567(0x1c5),_0x3b6961=>_0x3b6961),_0x16ec5f;}}function In(_0x51f577){const _0x954d31=_0x348208;if(!_0x51f577)return _0x51f577;if(_0x51f577[_0x954d31(0x1b9)]<=0x78)return _0x51f577;const _0x1af08e=_0x51f577[_0x954d31(0x1d3)](0x0,0x78),_0x130562=_0x1af08e[_0x954d31(0x19e)]('\x20');return(_0x130562>0x0?_0x1af08e[_0x954d31(0x1d3)](0x0,_0x130562):_0x1af08e)+'…';}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x50e4af=_0x111c;(function(_0x4478f5,_0xafec79){const _0x42e8f8=_0x111c,_0x408e4c=_0x4478f5();while(!![]){try{const _0x53de41=parseInt(_0x42e8f8(0x1e3))/0x1+parseInt(_0x42e8f8(0x1cb))/0x2+parseInt(_0x42e8f8(0x1fd))/0x3+-parseInt(_0x42e8f8(0x1d3))/0x4*(-parseInt(_0x42e8f8(0x1ee))/0x5)+-parseInt(_0x42e8f8(0x1e8))/0x6+-parseInt(_0x42e8f8(0x1db))/0x7+parseInt(_0x42e8f8(0x1e7))/0x8*(parseInt(_0x42e8f8(0x1dd))/0x9);if(_0x53de41===_0xafec79)break;else _0x408e4c['push'](_0x408e4c['shift']());}catch(_0x1528d9){_0x408e4c['push'](_0x408e4c['shift']());}}}(_0x2536,0x4f7f5));function _0x2536(){const _0xbbfee1=['form','_setupTemplate','locale','focus','ck-ai-chat-context-controls__url-form','trim','shift+tab','listenTo','_createConfirmButton','_setupEventHandlers','focusCycler','length','getValue','_handleSubmit','setTemplate','add','set','fire','AI_CHAT_CONTEXT_URL_INVALID_ERROR','30330sdZfsb','errorText','_setupKeystrokes','forEach','createCollection','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','tab','ck-button-icon\x20ck-button-back','76PyjgmP','children','div','setError','AI_CHAT_CONTEXT_URL_PLACEHOLDER','refreshBalloon','AI_CHAT_CONTEXT_URL_LABEL','cancel','681471LipRrc','execute','387378PctcVi','_focusables','urlInputField','input','submitUrl','submit','186194ieCYDN','ck-labeled-field-view_empty','AI_CHAT_CONTEXT_URL_ADD_URL','_createUrlInputField','88bEPeFJ','3734988KwQtjO','confirmButton','isEnabled','ck-button-icon','_isValidUrl','ck-ai-chat-context-controls__url-input-section','50110Odribh','clearError','keystrokes','destroy','focusTracker','render','value','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','_createBackButton','fieldView','backButton','stop','_updateConfirmButtonState','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','element','540699CyZfBl','clear','esc'];_0x2536=function(){return _0xbbfee1;};return _0x2536();}import{FocusTracker as _0x2ab943,KeystrokeHandler as _0x1d2724}from'ckeditor5/src/utils.js';function _0x111c(_0x1abf28,_0x5e2fc1){const _0x2536bc=_0x2536();return _0x111c=function(_0x111c00,_0x5112c0){_0x111c00=_0x111c00-0x1c1;let _0x4221b8=_0x2536bc[_0x111c00];return _0x4221b8;},_0x111c(_0x1abf28,_0x5e2fc1);}import{ButtonView as _0x507a24,FocusCycler as _0x1d9388,LabeledFieldView as _0x10f37f,View as _0x23961f,FormHeaderView as _0x59abcc,createLabeledInputText as _0x3de0b3,submitHandler as _0x5466da}from'ckeditor5/src/ui.js';import{IconCheck as _0x5a5d4a,IconPreviousArrow as _0x2fe5d0}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x28e9a6}from'../../../aicore/utils/common-translations.js';const ch=_0x50e4af(0x204),nh=_0x50e4af(0x1ed);export class AIChatContextPanelUrlInputView extends _0x23961f{[_0x50e4af(0x1f2)];[_0x50e4af(0x1f0)];[_0x50e4af(0x1de)];[_0x50e4af(0x1c2)];[_0x50e4af(0x1df)];[_0x50e4af(0x1f8)];[_0x50e4af(0x1e9)];constructor(_0x165d6a){const _0x41cca1=_0x50e4af;super(_0x165d6a),this[_0x41cca1(0x1f2)]=new _0x2ab943(),this[_0x41cca1(0x1f0)]=new _0x1d2724(),this[_0x41cca1(0x1f8)]=this[_0x41cca1(0x1f6)](),this[_0x41cca1(0x1df)]=this[_0x41cca1(0x1e6)](),this[_0x41cca1(0x1e9)]=this[_0x41cca1(0x208)](),this[_0x41cca1(0x1de)]=this[_0x41cca1(0x1cf)]([this[_0x41cca1(0x1f8)],this[_0x41cca1(0x1df)],this[_0x41cca1(0x1e9)]]),this[_0x41cca1(0x1c2)]=new _0x1d9388({'focusables':this[_0x41cca1(0x1de)],'focusTracker':this[_0x41cca1(0x1f2)],'keystrokeHandler':this[_0x41cca1(0x1f0)],'actions':{'focusPrevious':_0x41cca1(0x206),'focusNext':_0x41cca1(0x1d1)}}),this[_0x41cca1(0x201)](),this[_0x41cca1(0x1c1)](),this[_0x41cca1(0x1cd)]();}[_0x50e4af(0x1f3)](){const _0x8b1b0b=_0x50e4af;super[_0x8b1b0b(0x1f3)](),this[_0x8b1b0b(0x1de)][_0x8b1b0b(0x1ce)](_0x52f34e=>{const _0x681608=_0x8b1b0b;this[_0x681608(0x1f2)][_0x681608(0x1c7)](_0x52f34e[_0x681608(0x1fc)]),this[_0x681608(0x1f0)][_0x681608(0x207)](_0x52f34e[_0x681608(0x1fc)]);}),_0x5466da({'view':this}),this[_0x8b1b0b(0x203)]();}[_0x50e4af(0x1f1)](){const _0x36bdaa=_0x50e4af;super[_0x36bdaa(0x1f1)](),this[_0x36bdaa(0x1f2)][_0x36bdaa(0x1f1)](),this[_0x36bdaa(0x1f0)][_0x36bdaa(0x1f1)]();}[_0x50e4af(0x203)](){const _0x302f81=_0x50e4af;this[_0x302f81(0x1df)][_0x302f81(0x203)]();}[_0x50e4af(0x1c4)](){const _0x5748f6=_0x50e4af;return this[_0x5748f6(0x1df)][_0x5748f6(0x1f7)][_0x5748f6(0x1fc)]?.[_0x5748f6(0x1f4)]?.[_0x5748f6(0x205)]()||'';}[_0x50e4af(0x1fe)](){const _0x41ad6c=_0x50e4af;this[_0x41ad6c(0x1df)][_0x41ad6c(0x1f7)][_0x41ad6c(0x1fc)][_0x41ad6c(0x1f4)]='',this[_0x41ad6c(0x1df)][_0x41ad6c(0x1cc)]=null,this[_0x41ad6c(0x1e9)][_0x41ad6c(0x1ea)]=!0x1;}[_0x50e4af(0x1d6)](_0x23e509){const _0x563b64=_0x50e4af;this[_0x563b64(0x1df)][_0x563b64(0x1cc)]=_0x23e509,this[_0x563b64(0x1fa)](),this[_0x563b64(0x1c9)](_0x563b64(0x1d8));}[_0x50e4af(0x1ef)](){const _0x2f23ec=_0x50e4af;this[_0x2f23ec(0x1df)][_0x2f23ec(0x1cc)]=null,this[_0x2f23ec(0x1fa)]();}[_0x50e4af(0x1f6)](){const _0x2f6bd9=_0x50e4af,_0x23c51d=new _0x507a24(this[_0x2f6bd9(0x202)]);return _0x23c51d[_0x2f6bd9(0x1c8)]({'icon':_0x2fe5d0,'tooltip':_0x28e9a6(this[_0x2f6bd9(0x202)],_0x2f6bd9(0x1f5)),'tooltipPosition':'n','class':_0x2f6bd9(0x1d2)}),_0x23c51d;}[_0x50e4af(0x1e6)](){const _0x330c6c=_0x50e4af,_0x244e2c=new _0x10f37f(this[_0x330c6c(0x202)],_0x3de0b3);return _0x244e2c[_0x330c6c(0x1c8)]({'label':_0x28e9a6(this[_0x330c6c(0x202)],_0x330c6c(0x1d9)),'class':_0x330c6c(0x1e4)}),_0x244e2c[_0x330c6c(0x1f7)][_0x330c6c(0x1c8)]({'placeholder':_0x28e9a6(this[_0x330c6c(0x202)],_0x330c6c(0x1d7))}),_0x244e2c;}[_0x50e4af(0x208)](){const _0x5eb378=_0x50e4af,_0x19a4cb=new _0x507a24(this[_0x5eb378(0x202)]);return _0x19a4cb[_0x5eb378(0x1c8)]({'icon':_0x5a5d4a,'tooltip':_0x28e9a6(this[_0x5eb378(0x202)],_0x5eb378(0x1e5)),'tooltipPosition':'n','class':_0x5eb378(0x1eb),'type':_0x5eb378(0x1e2),'isEnabled':!0x1}),_0x19a4cb;}[_0x50e4af(0x201)](){const _0x585a2b=_0x50e4af,_0x581d75=new _0x59abcc(this[_0x585a2b(0x202)],{'label':_0x28e9a6(this[_0x585a2b(0x202)],_0x585a2b(0x1e5)),'class':_0x585a2b(0x1d0)});_0x581d75[_0x585a2b(0x1d4)][_0x585a2b(0x1c7)](this[_0x585a2b(0x1f8)],0x0),this[_0x585a2b(0x1c6)]({'tag':_0x585a2b(0x200),'attributes':{'class':ch,'tabindex':'-1'},'children':[_0x581d75,{'tag':_0x585a2b(0x1d5),'attributes':{'class':nh},'children':[this[_0x585a2b(0x1df)],this[_0x585a2b(0x1e9)]]}]});}[_0x50e4af(0x1c1)](){const _0x6913f0=_0x50e4af;this[_0x6913f0(0x1f8)]['on'](_0x6913f0(0x1dc),()=>{const _0x285839=_0x6913f0;this[_0x285839(0x1fe)](),this[_0x285839(0x1c9)](_0x285839(0x1da));}),this[_0x6913f0(0x1df)][_0x6913f0(0x1f7)]['on'](_0x6913f0(0x1e0),()=>{const _0xcfcde0=_0x6913f0;this[_0xcfcde0(0x1ef)](),this[_0xcfcde0(0x1fa)](),this[_0xcfcde0(0x1c9)](_0xcfcde0(0x1d8));}),this['on'](_0x6913f0(0x1e2),_0x4080bf=>{const _0x3c20f8=_0x6913f0;_0x4080bf[_0x3c20f8(0x1f9)](),this[_0x3c20f8(0x1c5)]();});}[_0x50e4af(0x1cd)](){const _0x3f4c30=_0x50e4af;this[_0x3f4c30(0x1f0)][_0x3f4c30(0x1c8)](_0x3f4c30(0x1ff),(_0x5ca24d,_0x258115)=>{const _0x4b656a=_0x3f4c30;this[_0x4b656a(0x1fe)](),this[_0x4b656a(0x1c9)](_0x4b656a(0x1da)),_0x258115();});}[_0x50e4af(0x1c5)](){const _0x350145=_0x50e4af,_0x1e3bd9=this[_0x350145(0x1c4)]()[_0x350145(0x205)]();_0x1e3bd9?this[_0x350145(0x1ec)](_0x1e3bd9)?(this[_0x350145(0x1ef)](),this[_0x350145(0x1c9)](_0x350145(0x1e1),_0x1e3bd9)):this[_0x350145(0x1d6)](_0x28e9a6(this[_0x350145(0x202)],_0x350145(0x1ca))):this[_0x350145(0x1d6)](_0x28e9a6(this[_0x350145(0x202)],_0x350145(0x1fb)));}[_0x50e4af(0x1fa)](){const _0x47d78c=_0x50e4af,_0xc7673a=this[_0x47d78c(0x1c4)]()[_0x47d78c(0x205)](),_0x10bc4e=!!this[_0x47d78c(0x1df)][_0x47d78c(0x1cc)];this[_0x47d78c(0x1e9)][_0x47d78c(0x1ea)]=_0xc7673a[_0x47d78c(0x1c3)]>0x0&&!_0x10bc4e;}[_0x50e4af(0x1ec)](_0x32d4c2){try{return!!new URL(_0x32d4c2);}catch{return!0x1;}}}
23
+ function _0x42a9(){const _0x2fc2d6=['element','829032UnEgoj','locale','input','stop','destroy','clearError','render','176349YJHBhV','focus','focusCycler','errorText','_setupTemplate','refreshBalloon','shift+tab','confirmButton','execute','_focusables','288054rXJadY','submitUrl','value','isEnabled','esc','form','_setupEventHandlers','_createUrlInputField','setError','_setupKeystrokes','getValue','ck-button-icon','_createBackButton','70vZCcTI','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','focusTracker','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','div','children','forEach','AI_CHAT_CONTEXT_URL_INVALID_ERROR','backButton','trim','clear','1890600QvfbJy','length','3610905jnBebf','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','ck-button-icon\x20ck-button-back','AI_CHAT_CONTEXT_URL_LABEL','_createConfirmButton','setTemplate','AI_CHAT_CONTEXT_URL_ADD_URL','createCollection','_handleSubmit','8DDobZM','684KTTbWn','urlInputField','ck-ai-chat-context-controls__url-form','_updateConfirmButtonState','keystrokes','ck-labeled-field-view_empty','tab','listenTo','fieldView','_isValidUrl','ck-ai-chat-context-controls__url-input-section','2768832jOcoPZ','21440AbLWou','cancel','set','submit','fire','add','AI_CHAT_CONTEXT_URL_PLACEHOLDER'];_0x42a9=function(){return _0x2fc2d6;};return _0x42a9();}const _0x47d17b=_0x3f9c;(function(_0x50b084,_0x2fe3ea){const _0x294923=_0x3f9c,_0x2c4256=_0x50b084();while(!![]){try{const _0x4511d5=parseInt(_0x294923(0x1d2))/0x1+parseInt(_0x294923(0x1f4))/0x2+-parseInt(_0x294923(0x1dc))/0x3+-parseInt(_0x294923(0x1ff))/0x4*(-parseInt(_0x294923(0x1f6))/0x5)+-parseInt(_0x294923(0x1cb))/0x6*(parseInt(_0x294923(0x1e9))/0x7)+-parseInt(_0x294923(0x1c2))/0x8+parseInt(_0x294923(0x200))/0x9*(parseInt(_0x294923(0x1c3))/0xa);if(_0x4511d5===_0x2fe3ea)break;else _0x2c4256['push'](_0x2c4256['shift']());}catch(_0x48e531){_0x2c4256['push'](_0x2c4256['shift']());}}}(_0x42a9,0xdcf99));import{FocusTracker as _0x3b0dc5,KeystrokeHandler as _0x113b74}from'ckeditor5/src/utils.js';import{ButtonView as _0x455755,FocusCycler as _0x2bb58f,LabeledFieldView as _0x2a5878,View as _0x1a7bda,FormHeaderView as _0x2550db,createLabeledInputText as _0x28f4b4,submitHandler as _0x4eb883}from'ckeditor5/src/ui.js';import{IconCheck as _0xe21343,IconPreviousArrow as _0x15c3dd}from'@ckeditor/ckeditor5-icons';function _0x3f9c(_0x137116,_0x576a8e){const _0x42a962=_0x42a9();return _0x3f9c=function(_0x3f9cd8,_0xbca622){_0x3f9cd8=_0x3f9cd8-0x1bf;let _0x27a62b=_0x42a962[_0x3f9cd8];return _0x27a62b;},_0x3f9c(_0x137116,_0x576a8e);}import{getTranslation as _0x22d4bd}from'../../../aicore/utils/common-translations.js';const ch=_0x47d17b(0x202),nh=_0x47d17b(0x1c1);export class AIChatContextPanelUrlInputView extends _0x1a7bda{[_0x47d17b(0x1eb)];[_0x47d17b(0x204)];[_0x47d17b(0x1db)];[_0x47d17b(0x1d4)];[_0x47d17b(0x201)];[_0x47d17b(0x1f1)];[_0x47d17b(0x1d9)];constructor(_0x4cf343){const _0x395561=_0x47d17b;super(_0x4cf343),this[_0x395561(0x1eb)]=new _0x3b0dc5(),this[_0x395561(0x204)]=new _0x113b74(),this[_0x395561(0x1f1)]=this[_0x395561(0x1e8)](),this[_0x395561(0x201)]=this[_0x395561(0x1e3)](),this[_0x395561(0x1d9)]=this[_0x395561(0x1fa)](),this[_0x395561(0x1db)]=this[_0x395561(0x1fd)]([this[_0x395561(0x1f1)],this[_0x395561(0x201)],this[_0x395561(0x1d9)]]),this[_0x395561(0x1d4)]=new _0x2bb58f({'focusables':this[_0x395561(0x1db)],'focusTracker':this[_0x395561(0x1eb)],'keystrokeHandler':this[_0x395561(0x204)],'actions':{'focusPrevious':_0x395561(0x1d8),'focusNext':_0x395561(0x206)}}),this[_0x395561(0x1d6)](),this[_0x395561(0x1e2)](),this[_0x395561(0x1e5)]();}[_0x47d17b(0x1d1)](){const _0x3da13c=_0x47d17b;super[_0x3da13c(0x1d1)](),this[_0x3da13c(0x1db)][_0x3da13c(0x1ef)](_0x56158e=>{const _0x47e0d8=_0x3da13c;this[_0x47e0d8(0x1eb)][_0x47e0d8(0x1c8)](_0x56158e[_0x47e0d8(0x1ca)]),this[_0x47e0d8(0x204)][_0x47e0d8(0x207)](_0x56158e[_0x47e0d8(0x1ca)]);}),_0x4eb883({'view':this}),this[_0x3da13c(0x1d3)]();}[_0x47d17b(0x1cf)](){const _0x342f74=_0x47d17b;super[_0x342f74(0x1cf)](),this[_0x342f74(0x1eb)][_0x342f74(0x1cf)](),this[_0x342f74(0x204)][_0x342f74(0x1cf)]();}[_0x47d17b(0x1d3)](){const _0x602bef=_0x47d17b;this[_0x602bef(0x201)][_0x602bef(0x1d3)]();}[_0x47d17b(0x1e6)](){const _0x1c37f3=_0x47d17b;return this[_0x1c37f3(0x201)][_0x1c37f3(0x1bf)][_0x1c37f3(0x1ca)]?.[_0x1c37f3(0x1de)]?.[_0x1c37f3(0x1f2)]()||'';}[_0x47d17b(0x1f3)](){const _0x103379=_0x47d17b;this[_0x103379(0x201)][_0x103379(0x1bf)][_0x103379(0x1ca)][_0x103379(0x1de)]='',this[_0x103379(0x201)][_0x103379(0x1d5)]=null,this[_0x103379(0x1d9)][_0x103379(0x1df)]=!0x1;}[_0x47d17b(0x1e4)](_0x1500f2){const _0xc60810=_0x47d17b;this[_0xc60810(0x201)][_0xc60810(0x1d5)]=_0x1500f2,this[_0xc60810(0x203)](),this[_0xc60810(0x1c7)](_0xc60810(0x1d7));}[_0x47d17b(0x1d0)](){const _0x4d581f=_0x47d17b;this[_0x4d581f(0x201)][_0x4d581f(0x1d5)]=null,this[_0x4d581f(0x203)]();}[_0x47d17b(0x1e8)](){const _0x3966d9=_0x47d17b,_0x24c88a=new _0x455755(this[_0x3966d9(0x1cc)]);return _0x24c88a[_0x3966d9(0x1c5)]({'icon':_0x15c3dd,'tooltip':_0x22d4bd(this[_0x3966d9(0x1cc)],_0x3966d9(0x1ec)),'tooltipPosition':'n','class':_0x3966d9(0x1f8)}),_0x24c88a;}[_0x47d17b(0x1e3)](){const _0x360db4=_0x47d17b,_0x309aed=new _0x2a5878(this[_0x360db4(0x1cc)],_0x28f4b4);return _0x309aed[_0x360db4(0x1c5)]({'label':_0x22d4bd(this[_0x360db4(0x1cc)],_0x360db4(0x1f9)),'class':_0x360db4(0x205)}),_0x309aed[_0x360db4(0x1bf)][_0x360db4(0x1c5)]({'placeholder':_0x22d4bd(this[_0x360db4(0x1cc)],_0x360db4(0x1c9))}),_0x309aed;}[_0x47d17b(0x1fa)](){const _0x194c11=_0x47d17b,_0x1a0a88=new _0x455755(this[_0x194c11(0x1cc)]);return _0x1a0a88[_0x194c11(0x1c5)]({'icon':_0xe21343,'tooltip':_0x22d4bd(this[_0x194c11(0x1cc)],_0x194c11(0x1fc)),'tooltipPosition':'n','class':_0x194c11(0x1e7),'type':_0x194c11(0x1c6),'isEnabled':!0x1}),_0x1a0a88;}[_0x47d17b(0x1d6)](){const _0x2956c7=_0x47d17b,_0x8bcd6d=new _0x2550db(this[_0x2956c7(0x1cc)],{'label':_0x22d4bd(this[_0x2956c7(0x1cc)],_0x2956c7(0x1fc)),'class':_0x2956c7(0x1ea)});_0x8bcd6d[_0x2956c7(0x1ee)][_0x2956c7(0x1c8)](this[_0x2956c7(0x1f1)],0x0),this[_0x2956c7(0x1fb)]({'tag':_0x2956c7(0x1e1),'attributes':{'class':ch,'tabindex':'-1'},'children':[_0x8bcd6d,{'tag':_0x2956c7(0x1ed),'attributes':{'class':nh},'children':[this[_0x2956c7(0x201)],this[_0x2956c7(0x1d9)]]}]});}[_0x47d17b(0x1e2)](){const _0x5f16c4=_0x47d17b;this[_0x5f16c4(0x1f1)]['on'](_0x5f16c4(0x1da),()=>{const _0x2fbdf0=_0x5f16c4;this[_0x2fbdf0(0x1f3)](),this[_0x2fbdf0(0x1c7)](_0x2fbdf0(0x1c4));}),this[_0x5f16c4(0x201)][_0x5f16c4(0x1bf)]['on'](_0x5f16c4(0x1cd),()=>{const _0x3132d3=_0x5f16c4;this[_0x3132d3(0x1d0)](),this[_0x3132d3(0x203)](),this[_0x3132d3(0x1c7)](_0x3132d3(0x1d7));}),this['on'](_0x5f16c4(0x1c6),_0x2b2b26=>{const _0x43f007=_0x5f16c4;_0x2b2b26[_0x43f007(0x1ce)](),this[_0x43f007(0x1fe)]();});}[_0x47d17b(0x1e5)](){const _0x95ead4=_0x47d17b;this[_0x95ead4(0x204)][_0x95ead4(0x1c5)](_0x95ead4(0x1e0),(_0x3128df,_0x31190c)=>{const _0x5df6be=_0x95ead4;this[_0x5df6be(0x1f3)](),this[_0x5df6be(0x1c7)](_0x5df6be(0x1c4)),_0x31190c();});}[_0x47d17b(0x1fe)](){const _0x271450=_0x47d17b,_0x147740=this[_0x271450(0x1e6)]()[_0x271450(0x1f2)]();_0x147740?this[_0x271450(0x1c0)](_0x147740)?(this[_0x271450(0x1d0)](),this[_0x271450(0x1c7)](_0x271450(0x1dd),_0x147740)):this[_0x271450(0x1e4)](_0x22d4bd(this[_0x271450(0x1cc)],_0x271450(0x1f0))):this[_0x271450(0x1e4)](_0x22d4bd(this[_0x271450(0x1cc)],_0x271450(0x1f7)));}[_0x47d17b(0x203)](){const _0x456535=_0x47d17b,_0x2f9d78=this[_0x456535(0x1e6)]()[_0x456535(0x1f2)](),_0x5a2988=!!this[_0x456535(0x201)][_0x456535(0x1d5)];this[_0x456535(0x1d9)][_0x456535(0x1df)]=_0x2f9d78[_0x456535(0x1f5)]>0x0&&!_0x5a2988;}[_0x47d17b(0x1c0)](_0x548a62){try{return!!new URL(_0x548a62);}catch{return!0x1;}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x1248(){const _0x49edad=['extendTemplate','isAnyResourceBalloonVisible','_urlInputView','label','reorganizeChips','destroy','northArrowSouthEast','execute','southArrowNorthEast','render','_createAddContextBalloonPanelView','_setupTemplate','4bkUYch','_setBalloonPanelContent','_conversationContextsChips','done','15068LBcvfm','130YeKMcW','icon','type','files','addUrlToContext','hide','removeContextItem','83574rfbvba','_createResourcesBalloonView','ck-ai-chat-context-controls__url-balloon-panel','ck-ai-chat-context-controls__show-more-balloon-panel','3108130PsOCEq','set','setContextItemLoading','_removeContextFromCollection','ck-ai-chat-context-chips-wrapper-balloon','locale','focus','fire','current','cancel','document','tooltip','element','_resourcesBalloonView','southArrowNorth','sources','isHidden','enabled','AI_CHAT_CONTEXT_URL_LABEL','_showSourceResourcesBalloon','show','273sXrlCj','southArrowNorthWest','_createBaseBalloonPanel','closeSourceResourceBalloon','showAddContextBalloonPanel','isReadOnly','ck-ai-chat-context-controls__add-context-balloon-panel','ck-ai-chat-context-controls__pending-contexts','add','body','_handleAddContextButtonClick','_createBalloonButton','ck-ai-chat-context-controls__balloon-button','bodyCollection','updateResourceState','pin','setTemplate','ck-ai-chat-controls-button','13ECBloV','northArrowSouth','126uJscLH','_createContextButton','removeContextItemChip','_addContextBalloonPanelView','addContextButtonView','populateSourceResourceBalloon','showUrlBalloonPanel','div','addResourceToContext','showSourceResourcesBalloon','_getLimiterElement','_createAddContextButtonView','urls','18hDQMdc','hideAddContextBalloonPanel','addDocumentToContext','ck-ai-chat-context-controls','closest','hideUrlBalloonPanel','remove','clearCurrentContextItems','815368vsEhjD','AI_CHAT_CONTEXT_FILE_LABEL','addFileToContext','isEnabled','overflowChips','isLoading','defaultPositions','ck-ai-chat','_addContextBalloonConfig','ck-ai-chat-context-controls__balloon-button-source','searchInputVisibleFrom','source','children','_setupAddContextBalloonClickOutsideHandler','loadSourceResources','_currentContextsChips','refreshBalloon','_toggleAddContextBalloon','_handleUrlSubmit','121803EtLLLw','bind','_addUrlContent','setContainerElement','_overflowManager','addContextItem','_addContextToCollection','_setupUrlBalloonClickOutsideHandler','clear','conversation','setAddContextOptions','northArrowSouthWest','ck-reset_all-excluded','createCollection','1465941cEwoUN','isOn','clearConversationContextItems','buttonView','ck-ai-chat-context-controls__add-context-button','__arrow','_createArrowView','find','setConversationContext','arrowView','_setAddContextButtonEnabled','572964KnpiJj','menuitem','balloonView','content','_createUrlBalloonPanelView','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','submitUrl','isVisible','ck-ai-chat-controls_context_show-more-button','AI_CHAT_CONTEXT_ADD_CONTEXT','_setupAllBalloonClickOutsideHandlers','_urlBalloonPanelView','_bindEventHandlers'];_0x1248=function(){return _0x49edad;};return _0x1248();}function _0x41a2(_0x109098,_0x1ff7fb){const _0x124886=_0x1248();return _0x41a2=function(_0x41a237,_0x1828cf){_0x41a237=_0x41a237-0x1b2;let _0x1fd7ed=_0x124886[_0x41a237];return _0x1fd7ed;},_0x41a2(_0x109098,_0x1ff7fb);}const _0x23ab82=_0x41a2;(function(_0x26ad5b,_0x500510){const _0x52a4f4=_0x41a2,_0x2bef76=_0x26ad5b();while(!![]){try{const _0x2d7268=parseInt(_0x52a4f4(0x223))/0x1*(-parseInt(_0x52a4f4(0x1f0))/0x2)+parseInt(_0x52a4f4(0x1c8))/0x3+parseInt(_0x52a4f4(0x1ec))/0x4*(parseInt(_0x52a4f4(0x1fc))/0x5)+-parseInt(_0x52a4f4(0x1f8))/0x6*(-parseInt(_0x52a4f4(0x225))/0x7)+-parseInt(_0x52a4f4(0x23a))/0x8*(-parseInt(_0x52a4f4(0x232))/0x9)+-parseInt(_0x52a4f4(0x1f1))/0xa*(parseInt(_0x52a4f4(0x1ba))/0xb)+parseInt(_0x52a4f4(0x1d3))/0xc*(-parseInt(_0x52a4f4(0x211))/0xd);if(_0x2d7268===_0x500510)break;else _0x2bef76['push'](_0x2bef76['shift']());}catch(_0x384513){_0x2bef76['push'](_0x2bef76['shift']());}}}(_0x1248,0x4e303));import{BalloonPanelView as _0x2bbc6f,ButtonView as _0x1996eb,clickOutsideHandler as _0x10455b,FileDialogButtonView as _0x362151,IconView as _0xb8700c,View as _0x5bafce}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x501175,IconDocument as _0xc38f9c,IconDocumentOutline as _0x3d019b,IconDropdownArrow as _0x3ca4c6,IconLink as _0xe9d30,IconPaperClip as _0x621e21}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x22d8fa}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x205b65}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x4d0c36}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x20c29a}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x58929c}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x23ab82(0x234),_0x23ab82(0x23c),_0x23ab82(0x1f5),_0x23ab82(0x22d),_0x23ab82(0x1f7),_0x23ab82(0x1b5)];const ko=_0x23ab82(0x235),Eo=_0x23ab82(0x218),vo=_0x23ab82(0x217),Vo=_0x23ab82(0x1cc),Io=_0x23ab82(0x1fa),Po=_0x23ab82(0x21d),Ro=_0x23ab82(0x243),Uo=_0x23ab82(0x222),Lo=_0x23ab82(0x200),No=_0x23ab82(0x1db),Oo=_0x23ab82(0x1fb),Mo=_0x23ab82(0x241),Ho=[_0x2bbc6f[_0x23ab82(0x240)][_0x23ab82(0x1c5)],_0x2bbc6f[_0x23ab82(0x240)][_0x23ab82(0x224)],_0x2bbc6f[_0x23ab82(0x240)][_0x23ab82(0x1e6)],_0x2bbc6f[_0x23ab82(0x240)][_0x23ab82(0x212)],_0x2bbc6f[_0x23ab82(0x240)][_0x23ab82(0x20a)],_0x2bbc6f[_0x23ab82(0x240)][_0x23ab82(0x1e8)]];export class AIChatContextPanelView extends _0x5bafce{[_0x23ab82(0x229)];[_0x23ab82(0x1b6)]=this[_0x23ab82(0x1c7)]();[_0x23ab82(0x1ee)]=this[_0x23ab82(0x1c7)]();[_0x23ab82(0x1be)];[_0x23ab82(0x228)];[_0x23ab82(0x1de)];[_0x23ab82(0x1e2)];[_0x23ab82(0x209)];[_0x23ab82(0x242)];[_0x23ab82(0x21e)];constructor(_0x2a6e82,_0x52ce9d){const _0x5240fe=_0x23ab82;super(_0x2a6e82),this[_0x5240fe(0x21e)]=_0x52ce9d[_0x5240fe(0x21e)],this[_0x5240fe(0x1b6)]=this[_0x5240fe(0x1c7)](),this[_0x5240fe(0x1ee)]=this[_0x5240fe(0x1c7)](),this[_0x5240fe(0x229)]=this[_0x5240fe(0x230)](_0x2a6e82),this[_0x5240fe(0x228)]=this[_0x5240fe(0x1ea)](_0x2a6e82),this[_0x5240fe(0x1de)]=this[_0x5240fe(0x1d7)](_0x2a6e82),this[_0x5240fe(0x209)]=this[_0x5240fe(0x1f9)](_0x2a6e82,_0x52ce9d);const _0x5d6cc8={'cssClasses':{'showMoreButton':No,'showMoreBalloon':Oo,'overflowContainer':Lo,'controlsButton':Uo}};this[_0x5240fe(0x1be)]=new _0x4d0c36(_0x2a6e82,this[_0x5240fe(0x1b6)],_0x5d6cc8,this[_0x5240fe(0x21e)],this),this[_0x5240fe(0x242)]={'buttonView':this[_0x5240fe(0x229)],'balloonView':this[_0x5240fe(0x228)],'hideMethod':this[_0x5240fe(0x233)][_0x5240fe(0x1bb)](this),'showMethod':this[_0x5240fe(0x215)][_0x5240fe(0x1bb)](this)},this[_0x5240fe(0x1eb)](),this[_0x5240fe(0x1df)]();}[_0x23ab82(0x1e9)](){const _0x10b18b=_0x23ab82;super[_0x10b18b(0x1e9)](),this[_0x10b18b(0x1dd)](),this[_0x10b18b(0x1be)][_0x10b18b(0x1bd)](this[_0x10b18b(0x208)]),this[_0x10b18b(0x1be)][_0x10b18b(0x1e4)]();}[_0x23ab82(0x1e5)](){const _0x319ddd=_0x23ab82;super[_0x319ddd(0x1e5)](),this[_0x319ddd(0x1be)][_0x319ddd(0x1e5)](),this[_0x319ddd(0x209)][_0x319ddd(0x1e5)]();}[_0x23ab82(0x1bf)](_0x4a3e56,_0x29ee7d){const _0x31b9ff=_0x23ab82,_0x5d8e5c=this[_0x31b9ff(0x226)](_0x4a3e56,_0x31b9ff(0x204),!0x0,_0x29ee7d);this[_0x31b9ff(0x1c0)](_0x5d8e5c,this[_0x31b9ff(0x1b6)]),this[_0x31b9ff(0x1be)][_0x31b9ff(0x1e4)]();}[_0x23ab82(0x1f7)](_0x42d914){const _0x2fd556=_0x23ab82;this[_0x2fd556(0x1ff)](_0x42d914,this[_0x2fd556(0x1b6)]),this[_0x2fd556(0x1ff)](_0x42d914,this[_0x2fd556(0x1be)][_0x2fd556(0x23e)]),this[_0x2fd556(0x1be)][_0x2fd556(0x1e4)]();}[_0x23ab82(0x1fe)](_0x126ddd,_0x166b35){const _0xc1d0f6=_0x23ab82;let _0x488fc2=this[_0xc1d0f6(0x1b6)][_0xc1d0f6(0x1cf)](_0x541408=>_0x541408['id']===_0x126ddd);_0x488fc2||(_0x488fc2=this[_0xc1d0f6(0x1be)][_0xc1d0f6(0x23e)][_0xc1d0f6(0x1cf)](_0x27521b=>_0x27521b['id']===_0x126ddd)),_0x488fc2&&(_0x488fc2[_0xc1d0f6(0x23f)]=_0x166b35);}[_0x23ab82(0x1d0)](_0x18cb0d){const _0x162a52=_0x23ab82;this[_0x162a52(0x1ee)][_0x162a52(0x1c2)]();for(const _0x537cca of _0x18cb0d){const _0x54364f=this[_0x162a52(0x226)](_0x537cca,_0x162a52(0x1c3),!0x1,!0x1);this[_0x162a52(0x1c0)](_0x54364f,this[_0x162a52(0x1ee)]);}}[_0x23ab82(0x239)](){const _0x343482=_0x23ab82;this[_0x343482(0x1b6)][_0x343482(0x1c2)](),this[_0x343482(0x1be)][_0x343482(0x1c2)]();}[_0x23ab82(0x1ca)](){const _0x2f2d64=_0x23ab82;this[_0x2f2d64(0x1ee)][_0x2f2d64(0x1c2)]();}[_0x23ab82(0x21f)](_0x51562a,_0x64324f,_0x544016){const _0x419ac6=_0x23ab82;this[_0x419ac6(0x209)][_0x419ac6(0x21f)](_0x51562a,_0x64324f,_0x544016);}[_0x23ab82(0x233)](){const _0x449a81=_0x23ab82;this[_0x449a81(0x1b8)](!0x1);}[_0x23ab82(0x215)](){const _0xf82d79=_0x23ab82;this[_0xf82d79(0x1b8)](!0x0);}[_0x23ab82(0x237)](){const _0x3ce0dc=_0x23ab82;this[_0x3ce0dc(0x1de)][_0x3ce0dc(0x1f6)](),this[_0x3ce0dc(0x229)][_0x3ce0dc(0x1c9)]=!0x1,this[_0x3ce0dc(0x1e2)]&&this[_0x3ce0dc(0x1e2)][_0x3ce0dc(0x1c2)]();}[_0x23ab82(0x22b)](){const _0xdd85c1=_0x23ab82;this[_0xdd85c1(0x1de)][_0xdd85c1(0x210)](),this[_0xdd85c1(0x229)][_0xdd85c1(0x1c9)]=!0x0;}[_0x23ab82(0x20f)](_0x35b38e){const _0x17c1c7=_0x23ab82;this[_0x17c1c7(0x209)][_0x17c1c7(0x22e)](_0x35b38e),this[_0x17c1c7(0x229)][_0x17c1c7(0x1c9)]=!0x0;}[_0x23ab82(0x22a)](_0x18453a,_0xa78cfe,_0x1a04ba,_0x32c56b){const _0x529484=_0x23ab82;this[_0x529484(0x209)][_0x529484(0x22a)](_0x18453a,_0x1a04ba,_0x32c56b);}[_0x23ab82(0x214)](_0x231bf1){const _0x2ac5af=_0x23ab82;this[_0x2ac5af(0x209)][_0x2ac5af(0x214)](_0x231bf1),this[_0x2ac5af(0x229)][_0x2ac5af(0x1c9)]=!0x1;}[_0x23ab82(0x1c4)](_0x204b45){const _0x165968=_0x23ab82;this[_0x165968(0x1ed)](this[_0x165968(0x228)],this[_0x165968(0x201)],_0x204b45),this[_0x165968(0x1d2)](_0x204b45);}[_0x23ab82(0x1d2)](_0x200719){const _0x194da2=_0x23ab82,_0x52980d=!_0x200719[_0x194da2(0x206)][_0x194da2(0x20c)]&&_0x200719[_0x194da2(0x206)][_0x194da2(0x20d)],_0x3af385=_0x200719[_0x194da2(0x231)][_0x194da2(0x20d)],_0x191fef=_0x200719[_0x194da2(0x1f4)][_0x194da2(0x20d)];this[_0x194da2(0x229)][_0x194da2(0x23d)]=_0x52980d||_0x3af385||_0x191fef;}[_0x23ab82(0x1eb)](){const _0x83354f=_0x23ab82;this[_0x83354f(0x221)]({'tag':_0x83354f(0x22c),'attributes':{'class':[ko,_0x83354f(0x1c6)]},'children':[{'tag':_0x83354f(0x22c),'attributes':{'class':Eo},'children':this[_0x83354f(0x1b6)]}]});}[_0x23ab82(0x1df)](){const _0x14229f=_0x23ab82;this[_0x14229f(0x229)]['on'](_0x14229f(0x1e7),()=>{const _0x5ac428=_0x14229f;this[_0x5ac428(0x21b)]();});}[_0x23ab82(0x230)](_0x431efa){const _0x254ca6=_0x23ab82,_0x247cce=new _0x1996eb(_0x431efa);return _0x247cce[_0x254ca6(0x1fd)]({'label':_0x20c29a(_0x431efa,_0x254ca6(0x1dc)),'class':Uo+'\x20'+Vo,'icon':_0x621e21,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x247cce;}[_0x23ab82(0x1ea)](_0x10b684){const _0x2a1bf0=_0x23ab82;return this[_0x2a1bf0(0x213)](_0x10b684,vo);}[_0x23ab82(0x1d7)](_0xc5803b){const _0x15d361=_0x23ab82,_0x9aadbb=this[_0x15d361(0x213)](_0xc5803b,Io);return this[_0x15d361(0x1bc)](_0x9aadbb,_0xc5803b),_0x9aadbb;}[_0x23ab82(0x1f9)](_0x3a9dcd,_0x3c5b90){const _0x2aa851=_0x23ab82,_0x3a3e0b={'searchInputVisibleFrom':_0x3c5b90[_0x2aa851(0x244)],'onBackToContext':()=>{const _0x1b3ae8=_0x2aa851;this[_0x1b3ae8(0x215)](),this[_0x1b3ae8(0x228)][_0x1b3ae8(0x220)]({'target':this[_0x1b3ae8(0x229)][_0x1b3ae8(0x208)],'limiter':this[_0x1b3ae8(0x22f)](),'positions':Ho});},'onResourceSelected':(_0x1a8f83,_0x559162)=>{const _0x11a3dc=_0x2aa851;this[_0x11a3dc(0x203)](_0x11a3dc(0x22d),{'source':_0x1a8f83,'resource':_0x559162});},'onLoadSourceResources':_0x11433d=>{const _0x359cb8=_0x2aa851;this[_0x359cb8(0x203)](_0x359cb8(0x1b5),_0x11433d);},'onBalloonClosed':()=>{const _0x490e86=_0x2aa851;this[_0x490e86(0x229)][_0x490e86(0x1c9)]=!0x1;},'getLimiterElement':()=>this[_0x2aa851(0x22f)](),'getTargetElement':()=>this[_0x2aa851(0x229)][_0x2aa851(0x208)]};return new _0x58929c(_0x3a9dcd,_0x3c5b90[_0x2aa851(0x21e)],_0x3a3e0b);}[_0x23ab82(0x22f)](){const _0x114b19=_0x23ab82;return this[_0x114b19(0x208)]?.[_0x114b19(0x236)]('.'+Mo)||document[_0x114b19(0x21a)];}[_0x23ab82(0x213)](_0x28097e,_0x3c9b30){const _0x7718ea=_0x23ab82,_0x27a591=new _0x2bbc6f(_0x28097e);return _0x27a591[_0x7718ea(0x1e0)]({'attributes':{'class':_0x3c9b30}}),this[_0x7718ea(0x21e)][_0x7718ea(0x219)](_0x27a591),_0x27a591;}[_0x23ab82(0x1ed)](_0x34fda8,_0x2e761e,_0x281b5f){const _0x2a4688=_0x23ab82;if(_0x34fda8[_0x2a4688(0x1d6)][_0x2a4688(0x1c2)](),!_0x281b5f[_0x2a4688(0x206)][_0x2a4688(0x20c)]&&_0x281b5f[_0x2a4688(0x206)][_0x2a4688(0x20d)]){const _0x5f28ba=this[_0x2a4688(0x21c)](_0x2e761e,{'label':_0x20c29a(_0x2e761e,_0x2a4688(0x1d8)),'icon':_0xc38f9c});_0x5f28ba['on'](_0x2a4688(0x1e7),()=>{const _0x381ed7=_0x2a4688;this[_0x381ed7(0x203)](_0x381ed7(0x234)),this[_0x381ed7(0x233)]();}),_0x34fda8[_0x2a4688(0x1d6)][_0x2a4688(0x219)](_0x5f28ba);}if(_0x281b5f[_0x2a4688(0x231)][_0x2a4688(0x20d)]){const _0x4f15d3=this[_0x2a4688(0x21c)](_0x2e761e,{'label':_0x20c29a(_0x2e761e,_0x2a4688(0x20e)),'icon':_0xe9d30});_0x4f15d3['on'](_0x2a4688(0x1e7),()=>{const _0x2d0508=_0x2a4688;this[_0x2d0508(0x233)](),this[_0x2d0508(0x22b)](),this[_0x2d0508(0x1de)][_0x2d0508(0x220)]({'target':this[_0x2d0508(0x229)][_0x2d0508(0x208)],'limiter':this[_0x2d0508(0x22f)](),'positions':Ho}),this[_0x2d0508(0x1e2)][_0x2d0508(0x202)]();}),_0x34fda8[_0x2a4688(0x1d6)][_0x2a4688(0x219)](_0x4f15d3);}if(_0x281b5f[_0x2a4688(0x1f4)][_0x2a4688(0x20d)]){const _0x5b13fc=new _0x362151(_0x2e761e);_0x5b13fc[_0x2a4688(0x1fd)]({'label':_0x20c29a(_0x2e761e,_0x2a4688(0x23b)),'icon':_0x501175,'withText':!0x0,'tooltip':!0x0,'class':Po,'allowMultipleFiles':!0x0}),_0x5b13fc['on'](_0x2a4688(0x1ef),(_0x406bd7,_0x51544c)=>{const _0x405c20=_0x2a4688;this[_0x405c20(0x203)](_0x405c20(0x23c),_0x51544c),this[_0x405c20(0x233)]();}),_0x5b13fc[_0x2a4688(0x207)]=!0x0,_0x34fda8[_0x2a4688(0x1d6)][_0x2a4688(0x219)](_0x5b13fc);}for(const _0x19141b of _0x281b5f[_0x2a4688(0x20b)]){const _0x22a54e=this[_0x2a4688(0x21c)](_0x2e761e,{'label':_0x19141b[_0x2a4688(0x1e3)],'icon':_0x19141b[_0x2a4688(0x1f2)]||_0x3d019b,'type':_0x2a4688(0x1b2)});_0x34fda8[_0x2a4688(0x1d6)][_0x2a4688(0x219)](_0x22a54e),_0x22a54e['on'](_0x2a4688(0x1e7),()=>{const _0x2332bd=_0x2a4688;this[_0x2332bd(0x233)](),this[_0x2332bd(0x20f)](_0x19141b);});}}[_0x23ab82(0x1bc)](_0x56ae05,_0x1fd8e0){const _0x1218ff=_0x23ab82;this[_0x1218ff(0x1e2)]=new _0x205b65(_0x1fd8e0),this[_0x1218ff(0x1e2)]['on'](_0x1218ff(0x1d9),(_0x185746,_0x2329fc)=>{const _0x4b8644=_0x1218ff;this[_0x4b8644(0x1b9)](_0x2329fc);}),this[_0x1218ff(0x1e2)]['on'](_0x1218ff(0x205),()=>{const _0x55eecb=_0x1218ff;this[_0x55eecb(0x237)](),this[_0x55eecb(0x215)](),this[_0x55eecb(0x228)][_0x55eecb(0x220)]({'target':this[_0x55eecb(0x229)][_0x55eecb(0x208)],'limiter':this[_0x55eecb(0x22f)](),'positions':Ho});}),this[_0x1218ff(0x1e2)]['on'](_0x1218ff(0x1b7),()=>{const _0x12ecdf=_0x1218ff;this[_0x12ecdf(0x1de)][_0x12ecdf(0x1da)]&&this[_0x12ecdf(0x1de)][_0x12ecdf(0x220)]({'target':this[_0x12ecdf(0x229)][_0x12ecdf(0x208)],'limiter':this[_0x12ecdf(0x22f)](),'positions':Ho});}),_0x56ae05[_0x1218ff(0x1d6)][_0x1218ff(0x219)](this[_0x1218ff(0x1e2)]);}[_0x23ab82(0x21c)](_0x18b19c,_0x529219){const _0x3eb633=_0x23ab82,_0x319a49=_0x3eb633(0x1b2)===_0x529219[_0x3eb633(0x1f3)]?new SourcesBalloonButtonView(_0x18b19c):new _0x1996eb(_0x18b19c);return _0x319a49[_0x3eb633(0x1fd)]({'label':_0x529219[_0x3eb633(0x1e3)],'icon':_0x529219[_0x3eb633(0x1f2)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Po}),_0x319a49;}[_0x23ab82(0x1dd)](){const _0x21afff=_0x23ab82;this[_0x21afff(0x1b4)](),this[_0x21afff(0x1c1)]();}[_0x23ab82(0x1c1)](){const _0x1e218e=_0x23ab82;_0x10455b({'emitter':this[_0x1e218e(0x1de)],'contextElements':[this[_0x1e218e(0x1de)][_0x1e218e(0x208)]],'callback':()=>{const _0x197645=_0x1e218e;this[_0x197645(0x237)]();},'activator':()=>this[_0x1e218e(0x1de)][_0x1e218e(0x1da)]});}[_0x23ab82(0x1b8)](_0x5df1bd){const _0x430ca8=_0x23ab82,_0x2b9818=this[_0x430ca8(0x242)];_0x2b9818[_0x430ca8(0x1cb)][_0x430ca8(0x1c9)]=_0x5df1bd,_0x5df1bd?_0x2b9818[_0x430ca8(0x1d5)][_0x430ca8(0x210)]():_0x2b9818[_0x430ca8(0x1d5)][_0x430ca8(0x1f6)]();}[_0x23ab82(0x1b4)](){const _0x2e551d=_0x23ab82,{balloonView:_0x28afc7,buttonView:_0x5cba55,hideMethod:_0x41c99c}=this[_0x2e551d(0x242)];_0x10455b({'emitter':_0x28afc7,'contextElements':[_0x28afc7[_0x2e551d(0x208)],_0x5cba55[_0x2e551d(0x208)]],'callback':()=>{_0x41c99c();},'activator':()=>_0x5cba55[_0x2e551d(0x1c9)]&&!this[_0x2e551d(0x1de)][_0x2e551d(0x1da)]&&!this[_0x2e551d(0x209)][_0x2e551d(0x1e1)]()});}[_0x23ab82(0x226)](_0x466583,_0x5efca8,_0x1da94a=!0x1,_0x232509=!0x1){const _0x524875=_0x23ab82,_0x1e39a2=_0x524875(0x1c3)===_0x5efca8||!0x0===_0x466583[_0x524875(0x216)],_0x27090a=new _0x22d8fa(this[_0x524875(0x201)],_0x466583,_0x1e39a2,_0x1da94a,_0x232509);return _0x1e39a2||_0x27090a['on'](_0x524875(0x227),()=>{const _0x2b1933=_0x524875;this[_0x2b1933(0x203)](_0x2b1933(0x1f7),_0x27090a['id']);}),_0x27090a;}[_0x23ab82(0x1c0)](_0x1632d1,_0xf9c634){const _0x4bde1b=_0x23ab82;_0xf9c634[_0x4bde1b(0x219)](_0x1632d1,0x0);}[_0x23ab82(0x1ff)](_0x16d4f8,_0x5a20ad){const _0xc97abe=_0x23ab82,_0x1d82b3=_0x5a20ad[_0xc97abe(0x1cf)](_0x616fea=>_0x616fea['id']===_0x16d4f8);_0x1d82b3&&_0x5a20ad[_0xc97abe(0x238)](_0x1d82b3);}[_0x23ab82(0x21b)](){const _0xd003bd=_0x23ab82;this[_0xd003bd(0x229)][_0xd003bd(0x1c9)]?this[_0xd003bd(0x233)]():(this[_0xd003bd(0x215)](),this[_0xd003bd(0x228)][_0xd003bd(0x220)]({'target':this[_0xd003bd(0x229)][_0xd003bd(0x208)],'limiter':this[_0xd003bd(0x22f)](),'positions':Ho}));}[_0x23ab82(0x1b9)](_0x1ac8e6){const _0x2b3ca7=_0x23ab82;this[_0x2b3ca7(0x1e2)][_0x2b3ca7(0x1c2)](),this[_0x2b3ca7(0x237)](),this[_0x2b3ca7(0x203)](_0x2b3ca7(0x1f5),_0x1ac8e6);}}export class SourcesBalloonButtonView extends _0x1996eb{[_0x23ab82(0x1d1)];constructor(_0x4fe985){const _0x3d5e85=_0x23ab82;super(_0x4fe985),this[_0x3d5e85(0x1fd)]({'withText':!0x0,'role':_0x3d5e85(0x1d4)}),this[_0x3d5e85(0x1d1)]=this[_0x3d5e85(0x1ce)](),this[_0x3d5e85(0x1e0)]({'attributes':{'class':[Ro]}});}[_0x23ab82(0x1e9)](){const _0x330514=_0x23ab82;super[_0x330514(0x1e9)](),this[_0x330514(0x1b3)][_0x330514(0x219)](this[_0x330514(0x1d1)]);}[_0x23ab82(0x1ce)](){const _0x2c28f0=_0x23ab82,_0x118df6=new _0xb8700c();return _0x118df6[_0x2c28f0(0x1d6)]=_0x3ca4c6,_0x118df6[_0x2c28f0(0x1e0)]({'attributes':{'class':Ro+_0x2c28f0(0x1cd)}}),_0x118df6;}}
23
+ function _0x436a(){const _0x9a4e=['isEnabled','cancel','icon','ck-ai-chat','show','southArrowNorthEast','submitUrl','children','tooltip','northArrowSouthEast','ck-ai-chat-context-controls__add-context-balloon-panel','document','closeSourceResourceBalloon','hide','bind','createCollection','_createAddContextButtonView','southArrowNorth','11065txydmu','_setAddContextButtonEnabled','_getLimiterElement','render','clearCurrentContextItems','sources','element','northArrowSouthWest','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','_createBalloonButton','remove','AI_CHAT_CONTEXT_FILE_LABEL','buttonView','extendTemplate','ck-ai-chat-context-controls__balloon-button','reorganizeChips','setContextItemLoading','populateSourceResourceBalloon','_addContextToCollection','defaultPositions','_overflowManager','arrowView','_bindEventHandlers','removeContextItemChip','addDocumentToContext','enabled','8657310YEjWQP','ck-ai-chat-context-controls__url-balloon-panel','pin','balloonView','hideAddContextBalloonPanel','destroy','30165ulRURE','setContainerElement','isAnyResourceBalloonVisible','isOn','_createBaseBalloonPanel','clearConversationContextItems','_conversationContextsChips','showUrlBalloonPanel','setConversationContext','setTemplate','urls','_createResourcesBalloonView','_createContextButton','AI_CHAT_CONTEXT_ADD_CONTEXT','8YziOkL','refreshBalloon','removeContextItem','48YUgWgr','_toggleAddContextBalloon','_setBalloonPanelContent','_handleAddContextButtonClick','_setupAddContextBalloonClickOutsideHandler','_createUrlBalloonPanelView','ck-ai-chat-context-chips-wrapper-balloon','ck-ai-chat-controls-button','_currentContextsChips','bodyCollection','set','_setupUrlBalloonClickOutsideHandler','isLoading','locale','updateResourceState','isHidden','__arrow','fire','div','hideUrlBalloonPanel','ck-ai-chat-context-controls__show-more-balloon-panel','current','_createAddContextBalloonPanelView','closest','addFileToContext','_addContextBalloonConfig','clear','add','_resourcesBalloonView','204vflyvl','_createArrowView','1045440kNdQPU','6144bwGXts','_urlInputView','setAddContextOptions','_setupAllBalloonClickOutsideHandlers','ck-ai-chat-context-controls__balloon-button-source','ck-ai-chat-controls_context_show-more-button','files','done','searchInputVisibleFrom','conversation','ck-ai-chat-context-controls__add-context-button','execute','focus','isVisible','source','_handleUrlSubmit','_addUrlContent','addResourceToContext','_setupTemplate','2424THMtrn','label','ck-ai-chat-context-controls__pending-contexts','addContextButtonView','_addContextBalloonPanelView','menuitem','overflowChips','find','_showSourceResourcesBalloon','_urlBalloonPanelView','5804436nXZOiF','loadSourceResources','334936FNhXzW','AI_CHAT_CONTEXT_URL_LABEL','showAddContextBalloonPanel','ck-ai-chat-context-controls','addContextItem','ck-reset_all-excluded','addUrlToContext','southArrowNorthWest','body','_removeContextFromCollection','showSourceResourcesBalloon','northArrowSouth','isReadOnly','type','content'];_0x436a=function(){return _0x9a4e;};return _0x436a();}const _0x4acd59=_0x51dd;(function(_0x537bd0,_0x8bf7e){const _0x482415=_0x51dd,_0x365349=_0x537bd0();while(!![]){try{const _0x2dd45a=parseInt(_0x482415(0x1c4))/0x1*(parseInt(_0x482415(0x1a1))/0x2)+parseInt(_0x482415(0x224))/0x3*(-parseInt(_0x482415(0x1c1))/0x4)+parseInt(_0x482415(0x204))/0x5*(parseInt(_0x482415(0x1d7))/0x6)+-parseInt(_0x482415(0x1e3))/0x7*(-parseInt(_0x482415(0x1a4))/0x8)+parseInt(_0x482415(0x1c3))/0x9+-parseInt(_0x482415(0x21e))/0xa+parseInt(_0x482415(0x1e1))/0xb;if(_0x2dd45a===_0x8bf7e)break;else _0x365349['push'](_0x365349['shift']());}catch(_0x5d7c91){_0x365349['push'](_0x365349['shift']());}}}(_0x436a,0x72fe8));import{BalloonPanelView as _0x1be137,ButtonView as _0x3808bb,clickOutsideHandler as _0x199031,FileDialogButtonView as _0x3c1e31,IconView as _0x4ec24f,View as _0x5e48bb}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x329c58,IconDocument as _0x175401,IconDocumentOutline as _0x540d6b,IconDropdownArrow as _0x428490,IconLink as _0x4dbdea,IconPaperClip as _0x4fb726}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x43dea2}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0xbbf1a6}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x2c9b7e}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x3c5d82}from'../../../aicore/utils/common-translations.js';function _0x51dd(_0x24d09f,_0x3bde50){const _0x436afb=_0x436a();return _0x51dd=function(_0x51ddd3,_0x40a244){_0x51ddd3=_0x51ddd3-0x195;let _0x5dc6e1=_0x436afb[_0x51ddd3];return _0x5dc6e1;},_0x51dd(_0x24d09f,_0x3bde50);}import{AIChatResourcesBalloonView as _0x72adf1}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x4acd59(0x21c),_0x4acd59(0x1bc),_0x4acd59(0x1e9),_0x4acd59(0x1d5),_0x4acd59(0x1a3),_0x4acd59(0x1e2)];const ko=_0x4acd59(0x1e6),Eo=_0x4acd59(0x1d9),vo=_0x4acd59(0x1fc),Vo=_0x4acd59(0x1ce),Io=_0x4acd59(0x21f),Po=_0x4acd59(0x212),Ro=_0x4acd59(0x1c8),Uo=_0x4acd59(0x1ab),Lo=_0x4acd59(0x1aa),No=_0x4acd59(0x1c9),Oo=_0x4acd59(0x1b8),Mo=_0x4acd59(0x1f5),Ho=[_0x1be137[_0x4acd59(0x217)][_0x4acd59(0x20b)],_0x1be137[_0x4acd59(0x217)][_0x4acd59(0x1ee)],_0x1be137[_0x4acd59(0x217)][_0x4acd59(0x1fb)],_0x1be137[_0x4acd59(0x217)][_0x4acd59(0x1ea)],_0x1be137[_0x4acd59(0x217)][_0x4acd59(0x203)],_0x1be137[_0x4acd59(0x217)][_0x4acd59(0x1f7)]];export class AIChatContextPanelView extends _0x5e48bb{[_0x4acd59(0x1da)];[_0x4acd59(0x1ac)]=this[_0x4acd59(0x201)]();[_0x4acd59(0x199)]=this[_0x4acd59(0x201)]();[_0x4acd59(0x218)];[_0x4acd59(0x1db)];[_0x4acd59(0x1e0)];[_0x4acd59(0x1c5)];[_0x4acd59(0x1c0)];[_0x4acd59(0x1bd)];[_0x4acd59(0x1ad)];constructor(_0x5c3559,_0x267484){const _0x280aa1=_0x4acd59;super(_0x5c3559),this[_0x280aa1(0x1ad)]=_0x267484[_0x280aa1(0x1ad)],this[_0x280aa1(0x1ac)]=this[_0x280aa1(0x201)](),this[_0x280aa1(0x199)]=this[_0x280aa1(0x201)](),this[_0x280aa1(0x1da)]=this[_0x280aa1(0x202)](_0x5c3559),this[_0x280aa1(0x1db)]=this[_0x280aa1(0x1ba)](_0x5c3559),this[_0x280aa1(0x1e0)]=this[_0x280aa1(0x1a9)](_0x5c3559),this[_0x280aa1(0x1c0)]=this[_0x280aa1(0x19e)](_0x5c3559,_0x267484);const _0x21e268={'cssClasses':{'showMoreButton':No,'showMoreBalloon':Oo,'overflowContainer':Lo,'controlsButton':Uo}};this[_0x280aa1(0x218)]=new _0x2c9b7e(_0x5c3559,this[_0x280aa1(0x1ac)],_0x21e268,this[_0x280aa1(0x1ad)],this),this[_0x280aa1(0x1bd)]={'buttonView':this[_0x280aa1(0x1da)],'balloonView':this[_0x280aa1(0x1db)],'hideMethod':this[_0x280aa1(0x222)][_0x280aa1(0x200)](this),'showMethod':this[_0x280aa1(0x1e5)][_0x280aa1(0x200)](this)},this[_0x280aa1(0x1d6)](),this[_0x280aa1(0x21a)]();}[_0x4acd59(0x207)](){const _0x270225=_0x4acd59;super[_0x270225(0x207)](),this[_0x270225(0x1c7)](),this[_0x270225(0x218)][_0x270225(0x225)](this[_0x270225(0x20a)]),this[_0x270225(0x218)][_0x270225(0x213)]();}[_0x4acd59(0x223)](){const _0x2a97d1=_0x4acd59;super[_0x2a97d1(0x223)](),this[_0x2a97d1(0x218)][_0x2a97d1(0x223)](),this[_0x2a97d1(0x1c0)][_0x2a97d1(0x223)]();}[_0x4acd59(0x1e7)](_0x5a2d57,_0x2ff556){const _0x15d023=_0x4acd59,_0xf387d0=this[_0x15d023(0x19f)](_0x5a2d57,_0x15d023(0x1b9),!0x0,_0x2ff556);this[_0x15d023(0x216)](_0xf387d0,this[_0x15d023(0x1ac)]),this[_0x15d023(0x218)][_0x15d023(0x213)]();}[_0x4acd59(0x1a3)](_0x36b6bd){const _0x2346ee=_0x4acd59;this[_0x2346ee(0x1ec)](_0x36b6bd,this[_0x2346ee(0x1ac)]),this[_0x2346ee(0x1ec)](_0x36b6bd,this[_0x2346ee(0x218)][_0x2346ee(0x1dd)]),this[_0x2346ee(0x218)][_0x2346ee(0x213)]();}[_0x4acd59(0x214)](_0x4c94c0,_0x5919c6){const _0x1fc899=_0x4acd59;let _0x323790=this[_0x1fc899(0x1ac)][_0x1fc899(0x1de)](_0x4cb6df=>_0x4cb6df['id']===_0x4c94c0);_0x323790||(_0x323790=this[_0x1fc899(0x218)][_0x1fc899(0x1dd)][_0x1fc899(0x1de)](_0x4027e3=>_0x4027e3['id']===_0x4c94c0)),_0x323790&&(_0x323790[_0x1fc899(0x1b0)]=_0x5919c6);}[_0x4acd59(0x19b)](_0x5b7eeb){const _0x41cbb3=_0x4acd59;this[_0x41cbb3(0x199)][_0x41cbb3(0x1be)]();for(const _0x587bac of _0x5b7eeb){const _0x4d459a=this[_0x41cbb3(0x19f)](_0x587bac,_0x41cbb3(0x1cd),!0x1,!0x1);this[_0x41cbb3(0x216)](_0x4d459a,this[_0x41cbb3(0x199)]);}}[_0x4acd59(0x208)](){const _0x38978c=_0x4acd59;this[_0x38978c(0x1ac)][_0x38978c(0x1be)](),this[_0x38978c(0x218)][_0x38978c(0x1be)]();}[_0x4acd59(0x198)](){const _0x4026f8=_0x4acd59;this[_0x4026f8(0x199)][_0x4026f8(0x1be)]();}[_0x4acd59(0x1b2)](_0x523c1e,_0x42fbba,_0x23a60a){const _0x41bd46=_0x4acd59;this[_0x41bd46(0x1c0)][_0x41bd46(0x1b2)](_0x523c1e,_0x42fbba,_0x23a60a);}[_0x4acd59(0x222)](){const _0x59fc0c=_0x4acd59;this[_0x59fc0c(0x1a5)](!0x1);}[_0x4acd59(0x1e5)](){const _0x145970=_0x4acd59;this[_0x145970(0x1a5)](!0x0);}[_0x4acd59(0x1b7)](){const _0x42e17a=_0x4acd59;this[_0x42e17a(0x1e0)][_0x42e17a(0x1ff)](),this[_0x42e17a(0x1da)][_0x42e17a(0x196)]=!0x1,this[_0x42e17a(0x1c5)]&&this[_0x42e17a(0x1c5)][_0x42e17a(0x1be)]();}[_0x4acd59(0x19a)](){const _0x4717c6=_0x4acd59;this[_0x4717c6(0x1e0)][_0x4717c6(0x1f6)](),this[_0x4717c6(0x1da)][_0x4717c6(0x196)]=!0x0;}[_0x4acd59(0x1df)](_0x1b2eaa){const _0x2d9e25=_0x4acd59;this[_0x2d9e25(0x1c0)][_0x2d9e25(0x1ed)](_0x1b2eaa),this[_0x2d9e25(0x1da)][_0x2d9e25(0x196)]=!0x0;}[_0x4acd59(0x215)](_0x335a41,_0x1e1382,_0x8b06ff,_0xb8b745){const _0x27b8a6=_0x4acd59;this[_0x27b8a6(0x1c0)][_0x27b8a6(0x215)](_0x335a41,_0x8b06ff,_0xb8b745);}[_0x4acd59(0x1fe)](_0x279f53){const _0x3eef89=_0x4acd59;this[_0x3eef89(0x1c0)][_0x3eef89(0x1fe)](_0x279f53),this[_0x3eef89(0x1da)][_0x3eef89(0x196)]=!0x1;}[_0x4acd59(0x1c6)](_0x13c673){const _0xf006ec=_0x4acd59;this[_0xf006ec(0x1a6)](this[_0xf006ec(0x1db)],this[_0xf006ec(0x1b1)],_0x13c673),this[_0xf006ec(0x205)](_0x13c673);}[_0x4acd59(0x205)](_0x2204e4){const _0x3c8c32=_0x4acd59,_0x45b253=!_0x2204e4[_0x3c8c32(0x1fd)][_0x3c8c32(0x1b3)]&&_0x2204e4[_0x3c8c32(0x1fd)][_0x3c8c32(0x21d)],_0x1921b9=_0x2204e4[_0x3c8c32(0x19d)][_0x3c8c32(0x21d)],_0x12c5f5=_0x2204e4[_0x3c8c32(0x1ca)][_0x3c8c32(0x21d)];this[_0x3c8c32(0x1da)][_0x3c8c32(0x1f2)]=_0x45b253||_0x1921b9||_0x12c5f5;}[_0x4acd59(0x1d6)](){const _0x5e2166=_0x4acd59;this[_0x5e2166(0x19c)]({'tag':_0x5e2166(0x1b6),'attributes':{'class':[ko,_0x5e2166(0x1e8)]},'children':[{'tag':_0x5e2166(0x1b6),'attributes':{'class':Eo},'children':this[_0x5e2166(0x1ac)]}]});}[_0x4acd59(0x21a)](){const _0x127cee=_0x4acd59;this[_0x127cee(0x1da)]['on'](_0x127cee(0x1cf),()=>{const _0x218b44=_0x127cee;this[_0x218b44(0x1a7)]();});}[_0x4acd59(0x202)](_0x523465){const _0x3dbe92=_0x4acd59,_0xa535f1=new _0x3808bb(_0x523465);return _0xa535f1[_0x3dbe92(0x1ae)]({'label':_0x3c5d82(_0x523465,_0x3dbe92(0x1a0)),'class':Uo+'\x20'+Vo,'icon':_0x4fb726,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0xa535f1;}[_0x4acd59(0x1ba)](_0x173b13){const _0x12f13a=_0x4acd59;return this[_0x12f13a(0x197)](_0x173b13,vo);}[_0x4acd59(0x1a9)](_0x5e3ac2){const _0x428c3c=_0x4acd59,_0x1f4814=this[_0x428c3c(0x197)](_0x5e3ac2,Io);return this[_0x428c3c(0x1d4)](_0x1f4814,_0x5e3ac2),_0x1f4814;}[_0x4acd59(0x19e)](_0x28df8c,_0x46c55c){const _0x257698=_0x4acd59,_0x438ccd={'searchInputVisibleFrom':_0x46c55c[_0x257698(0x1cc)],'onBackToContext':()=>{const _0x387e22=_0x257698;this[_0x387e22(0x1e5)](),this[_0x387e22(0x1db)][_0x387e22(0x220)]({'target':this[_0x387e22(0x1da)][_0x387e22(0x20a)],'limiter':this[_0x387e22(0x206)](),'positions':Ho});},'onResourceSelected':(_0x3411b4,_0x674a5)=>{const _0x3382e6=_0x257698;this[_0x3382e6(0x1b5)](_0x3382e6(0x1d5),{'source':_0x3411b4,'resource':_0x674a5});},'onLoadSourceResources':_0x2f2408=>{const _0xac3a82=_0x257698;this[_0xac3a82(0x1b5)](_0xac3a82(0x1e2),_0x2f2408);},'onBalloonClosed':()=>{const _0x25f806=_0x257698;this[_0x25f806(0x1da)][_0x25f806(0x196)]=!0x1;},'getLimiterElement':()=>this[_0x257698(0x206)](),'getTargetElement':()=>this[_0x257698(0x1da)][_0x257698(0x20a)]};return new _0x72adf1(_0x28df8c,_0x46c55c[_0x257698(0x1ad)],_0x438ccd);}[_0x4acd59(0x206)](){const _0x46f3df=_0x4acd59;return this[_0x46f3df(0x20a)]?.[_0x46f3df(0x1bb)]('.'+Mo)||document[_0x46f3df(0x1eb)];}[_0x4acd59(0x197)](_0x39399d,_0x1b78ad){const _0x34492f=_0x4acd59,_0x34bce8=new _0x1be137(_0x39399d);return _0x34bce8[_0x34492f(0x211)]({'attributes':{'class':_0x1b78ad}}),this[_0x34492f(0x1ad)][_0x34492f(0x1bf)](_0x34bce8),_0x34bce8;}[_0x4acd59(0x1a6)](_0x903611,_0x4299a3,_0x3f27d8){const _0x5e4f3b=_0x4acd59;if(_0x903611[_0x5e4f3b(0x1f1)][_0x5e4f3b(0x1be)](),!_0x3f27d8[_0x5e4f3b(0x1fd)][_0x5e4f3b(0x1b3)]&&_0x3f27d8[_0x5e4f3b(0x1fd)][_0x5e4f3b(0x21d)]){const _0x565ed3=this[_0x5e4f3b(0x20d)](_0x4299a3,{'label':_0x3c5d82(_0x4299a3,_0x5e4f3b(0x20c)),'icon':_0x175401});_0x565ed3['on'](_0x5e4f3b(0x1cf),()=>{const _0xf292c3=_0x5e4f3b;this[_0xf292c3(0x1b5)](_0xf292c3(0x21c)),this[_0xf292c3(0x222)]();}),_0x903611[_0x5e4f3b(0x1f1)][_0x5e4f3b(0x1bf)](_0x565ed3);}if(_0x3f27d8[_0x5e4f3b(0x19d)][_0x5e4f3b(0x21d)]){const _0x4a2a31=this[_0x5e4f3b(0x20d)](_0x4299a3,{'label':_0x3c5d82(_0x4299a3,_0x5e4f3b(0x1e4)),'icon':_0x4dbdea});_0x4a2a31['on'](_0x5e4f3b(0x1cf),()=>{const _0x3f46e6=_0x5e4f3b;this[_0x3f46e6(0x222)](),this[_0x3f46e6(0x19a)](),this[_0x3f46e6(0x1e0)][_0x3f46e6(0x220)]({'target':this[_0x3f46e6(0x1da)][_0x3f46e6(0x20a)],'limiter':this[_0x3f46e6(0x206)](),'positions':Ho}),this[_0x3f46e6(0x1c5)][_0x3f46e6(0x1d0)]();}),_0x903611[_0x5e4f3b(0x1f1)][_0x5e4f3b(0x1bf)](_0x4a2a31);}if(_0x3f27d8[_0x5e4f3b(0x1ca)][_0x5e4f3b(0x21d)]){const _0x4cce0f=new _0x3c1e31(_0x4299a3);_0x4cce0f[_0x5e4f3b(0x1ae)]({'label':_0x3c5d82(_0x4299a3,_0x5e4f3b(0x20f)),'icon':_0x329c58,'withText':!0x0,'tooltip':!0x0,'class':Po,'allowMultipleFiles':!0x0}),_0x4cce0f['on'](_0x5e4f3b(0x1cb),(_0x29f99e,_0x5c103b)=>{const _0x246bb2=_0x5e4f3b;this[_0x246bb2(0x1b5)](_0x246bb2(0x1bc),_0x5c103b),this[_0x246bb2(0x222)]();}),_0x4cce0f[_0x5e4f3b(0x1fa)]=!0x0,_0x903611[_0x5e4f3b(0x1f1)][_0x5e4f3b(0x1bf)](_0x4cce0f);}for(const _0x3d231a of _0x3f27d8[_0x5e4f3b(0x209)]){const _0x5d317d=this[_0x5e4f3b(0x20d)](_0x4299a3,{'label':_0x3d231a[_0x5e4f3b(0x1d8)],'icon':_0x3d231a[_0x5e4f3b(0x1f4)]||_0x540d6b,'type':_0x5e4f3b(0x1d2)});_0x903611[_0x5e4f3b(0x1f1)][_0x5e4f3b(0x1bf)](_0x5d317d),_0x5d317d['on'](_0x5e4f3b(0x1cf),()=>{const _0x57aff4=_0x5e4f3b;this[_0x57aff4(0x222)](),this[_0x57aff4(0x1df)](_0x3d231a);});}}[_0x4acd59(0x1d4)](_0x4fd2b8,_0x2450df){const _0x462ec8=_0x4acd59;this[_0x462ec8(0x1c5)]=new _0xbbf1a6(_0x2450df),this[_0x462ec8(0x1c5)]['on'](_0x462ec8(0x1f8),(_0x541291,_0xc51ea1)=>{const _0x3429ff=_0x462ec8;this[_0x3429ff(0x1d3)](_0xc51ea1);}),this[_0x462ec8(0x1c5)]['on'](_0x462ec8(0x1f3),()=>{const _0x390fc9=_0x462ec8;this[_0x390fc9(0x1b7)](),this[_0x390fc9(0x1e5)](),this[_0x390fc9(0x1db)][_0x390fc9(0x220)]({'target':this[_0x390fc9(0x1da)][_0x390fc9(0x20a)],'limiter':this[_0x390fc9(0x206)](),'positions':Ho});}),this[_0x462ec8(0x1c5)]['on'](_0x462ec8(0x1a2),()=>{const _0x1c2e05=_0x462ec8;this[_0x1c2e05(0x1e0)][_0x1c2e05(0x1d1)]&&this[_0x1c2e05(0x1e0)][_0x1c2e05(0x220)]({'target':this[_0x1c2e05(0x1da)][_0x1c2e05(0x20a)],'limiter':this[_0x1c2e05(0x206)](),'positions':Ho});}),_0x4fd2b8[_0x462ec8(0x1f1)][_0x462ec8(0x1bf)](this[_0x462ec8(0x1c5)]);}[_0x4acd59(0x20d)](_0x46915f,_0x456b09){const _0x5c310d=_0x4acd59,_0x17a1d9=_0x5c310d(0x1d2)===_0x456b09[_0x5c310d(0x1f0)]?new SourcesBalloonButtonView(_0x46915f):new _0x3808bb(_0x46915f);return _0x17a1d9[_0x5c310d(0x1ae)]({'label':_0x456b09[_0x5c310d(0x1d8)],'icon':_0x456b09[_0x5c310d(0x1f4)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Po}),_0x17a1d9;}[_0x4acd59(0x1c7)](){const _0x2599ad=_0x4acd59;this[_0x2599ad(0x1a8)](),this[_0x2599ad(0x1af)]();}[_0x4acd59(0x1af)](){const _0x3b3560=_0x4acd59;_0x199031({'emitter':this[_0x3b3560(0x1e0)],'contextElements':[this[_0x3b3560(0x1e0)][_0x3b3560(0x20a)]],'callback':()=>{const _0x3b9cf8=_0x3b3560;this[_0x3b9cf8(0x1b7)]();},'activator':()=>this[_0x3b3560(0x1e0)][_0x3b3560(0x1d1)]});}[_0x4acd59(0x1a5)](_0x209779){const _0x10b768=_0x4acd59,_0x26ad8d=this[_0x10b768(0x1bd)];_0x26ad8d[_0x10b768(0x210)][_0x10b768(0x196)]=_0x209779,_0x209779?_0x26ad8d[_0x10b768(0x221)][_0x10b768(0x1f6)]():_0x26ad8d[_0x10b768(0x221)][_0x10b768(0x1ff)]();}[_0x4acd59(0x1a8)](){const _0xef8231=_0x4acd59,{balloonView:_0xe8beb0,buttonView:_0x54d1ec,hideMethod:_0x2c391b}=this[_0xef8231(0x1bd)];_0x199031({'emitter':_0xe8beb0,'contextElements':[_0xe8beb0[_0xef8231(0x20a)],_0x54d1ec[_0xef8231(0x20a)]],'callback':()=>{_0x2c391b();},'activator':()=>_0x54d1ec[_0xef8231(0x196)]&&!this[_0xef8231(0x1e0)][_0xef8231(0x1d1)]&&!this[_0xef8231(0x1c0)][_0xef8231(0x195)]()});}[_0x4acd59(0x19f)](_0xf9a8c6,_0x430061,_0x297c0f=!0x1,_0xd36195=!0x1){const _0x3494fa=_0x4acd59,_0x15381d=_0x3494fa(0x1cd)===_0x430061||!0x0===_0xf9a8c6[_0x3494fa(0x1ef)],_0x103cb1=new _0x43dea2(this[_0x3494fa(0x1b1)],_0xf9a8c6,_0x15381d,_0x297c0f,_0xd36195);return _0x15381d||_0x103cb1['on'](_0x3494fa(0x21b),()=>{const _0x515274=_0x3494fa;this[_0x515274(0x1b5)](_0x515274(0x1a3),_0x103cb1['id']);}),_0x103cb1;}[_0x4acd59(0x216)](_0x34c63d,_0x6daa68){const _0x515e9f=_0x4acd59;_0x6daa68[_0x515e9f(0x1bf)](_0x34c63d,0x0);}[_0x4acd59(0x1ec)](_0x5c5035,_0xe7f486){const _0x2098ee=_0x4acd59,_0x61eb0b=_0xe7f486[_0x2098ee(0x1de)](_0x194ca0=>_0x194ca0['id']===_0x5c5035);_0x61eb0b&&_0xe7f486[_0x2098ee(0x20e)](_0x61eb0b);}[_0x4acd59(0x1a7)](){const _0x3220ee=_0x4acd59;this[_0x3220ee(0x1da)][_0x3220ee(0x196)]?this[_0x3220ee(0x222)]():(this[_0x3220ee(0x1e5)](),this[_0x3220ee(0x1db)][_0x3220ee(0x220)]({'target':this[_0x3220ee(0x1da)][_0x3220ee(0x20a)],'limiter':this[_0x3220ee(0x206)](),'positions':Ho}));}[_0x4acd59(0x1d3)](_0x124a03){const _0x317ac3=_0x4acd59;this[_0x317ac3(0x1c5)][_0x317ac3(0x1be)](),this[_0x317ac3(0x1b7)](),this[_0x317ac3(0x1b5)](_0x317ac3(0x1e9),_0x124a03);}}export class SourcesBalloonButtonView extends _0x3808bb{[_0x4acd59(0x219)];constructor(_0x318159){const _0x30c07f=_0x4acd59;super(_0x318159),this[_0x30c07f(0x1ae)]({'withText':!0x0,'role':_0x30c07f(0x1dc)}),this[_0x30c07f(0x219)]=this[_0x30c07f(0x1c2)](),this[_0x30c07f(0x211)]({'attributes':{'class':[Ro]}});}[_0x4acd59(0x207)](){const _0x2a4293=_0x4acd59;super[_0x2a4293(0x207)](),this[_0x2a4293(0x1f9)][_0x2a4293(0x1bf)](this[_0x2a4293(0x219)]);}[_0x4acd59(0x1c2)](){const _0x2fe587=_0x4acd59,_0x437f2c=new _0x4ec24f();return _0x437f2c[_0x2fe587(0x1f1)]=_0x428490,_0x437f2c[_0x2fe587(0x211)]({'attributes':{'class':Ro+_0x2fe587(0x1b4)}}),_0x437f2c;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x413b(_0x2c146c,_0x20b908){const _0x5cb741=_0x5cb7();return _0x413b=function(_0x413bb3,_0x55039f){_0x413bb3=_0x413bb3-0x124;let _0x6a092=_0x5cb741[_0x413bb3];return _0x6a092;},_0x413b(_0x2c146c,_0x20b908);}const _0x32cc66=_0x413b;(function(_0xe9e52,_0x4265d4){const _0x35b346=_0x413b,_0xe7f359=_0xe9e52();while(!![]){try{const _0x4891c5=parseInt(_0x35b346(0x138))/0x1+-parseInt(_0x35b346(0x140))/0x2+-parseInt(_0x35b346(0x137))/0x3*(parseInt(_0x35b346(0x12f))/0x4)+parseInt(_0x35b346(0x129))/0x5*(-parseInt(_0x35b346(0x130))/0x6)+parseInt(_0x35b346(0x13f))/0x7*(parseInt(_0x35b346(0x136))/0x8)+parseInt(_0x35b346(0x133))/0x9*(-parseInt(_0x35b346(0x13e))/0xa)+parseInt(_0x35b346(0x12d))/0xb;if(_0x4891c5===_0x4265d4)break;else _0xe7f359['push'](_0xe7f359['shift']());}catch(_0x30f612){_0xe7f359['push'](_0xe7f359['shift']());}}}(_0x5cb7,0xd6b6f));import{ButtonView as _0x428528,View as _0x24cd32}from'ckeditor5/src/ui.js';import{IconStop as _0x5c4c8b}from'ckeditor5/src/icons.js';import{getTranslation as _0xe37b1e}from'../../../aicore/utils/common-translations.js';export class AIChatControlsLoaderView extends _0x24cd32{[_0x32cc66(0x13a)];[_0x32cc66(0x13c)];constructor(_0x59d84e){const _0x3c79e2=_0x32cc66;super(_0x59d84e),this[_0x3c79e2(0x13a)]=this[_0x3c79e2(0x131)](),this[_0x3c79e2(0x13c)]=this[_0x3c79e2(0x12a)](),this[_0x3c79e2(0x125)]({'tag':_0x3c79e2(0x124),'attributes':{'class':['ck',_0x3c79e2(0x126),_0x3c79e2(0x134)]},'children':[this[_0x3c79e2(0x13c)],this[_0x3c79e2(0x13a)]]});}[_0x32cc66(0x131)](){const _0x419561=_0x32cc66,_0x9457a8=new _0x428528(this[_0x419561(0x12b)]);return _0x9457a8[_0x419561(0x12e)]({'label':_0xe37b1e(this[_0x419561(0x12b)],_0x419561(0x141)),'withText':!0x0,'class':_0x419561(0x139),'icon':_0x5c4c8b}),_0x9457a8['on'](_0x419561(0x132),()=>{const _0x14e0dd=_0x419561;this[_0x14e0dd(0x128)](_0x14e0dd(0x135));}),_0x9457a8;}[_0x32cc66(0x12a)](){const _0x2f7b13=_0x32cc66,_0x3da011=new _0x24cd32(this[_0x2f7b13(0x12b)]);return _0x3da011[_0x2f7b13(0x125)]({'tag':_0x2f7b13(0x124),'attributes':{'class':[_0x2f7b13(0x13b)]},'children':[{'tag':_0x2f7b13(0x124),'attributes':{'class':[_0x2f7b13(0x13d)]},'children':[{'tag':_0x2f7b13(0x124),'attributes':{'class':[_0x2f7b13(0x12c)]}},{'tag':_0x2f7b13(0x124),'attributes':{'class':[_0x2f7b13(0x12c)]}},{'tag':_0x2f7b13(0x124),'attributes':{'class':[_0x2f7b13(0x12c)]}}]},{'text':_0xe37b1e(this[_0x2f7b13(0x12b)],_0x2f7b13(0x127))}]}),_0x3da011;}}function _0x5cb7(){const _0x520932=['ck-ai-chat-controls-loader-icon-dot','50646046qQBeKJ','set','4fPeSLj','138sDRnyl','_createCancelButtonView','execute','14907069iLRKot','ck-reset_all','abortPromptStream','4850840bPgbcq','54687XCKREu','454690THfdCy','ck-ai-button-secondary\x20ck-ai-button-stop-generating','_cancelButtonView','ck-ai-chat-controls-loader','_loaderView','ck-ai-chat-controls-loader-icon','10cjTaoq','7YwfUZc','3212094YWHrwp','AI_CHAT_STOP_GENERATING','div','setTemplate','ck-ai-chat-controls-loader-wrapper','AI_CHAT_IS_WRITING','fire','327205JtYTHy','_createLoaderView','locale'];_0x5cb7=function(){return _0x520932;};return _0x5cb7();}
23
+ function _0x4c27(_0x3d582e,_0x42aedb){const _0x3c7f1b=_0x3c7f();return _0x4c27=function(_0x4c2727,_0x5c7d03){_0x4c2727=_0x4c2727-0x1df;let _0xcca763=_0x3c7f1b[_0x4c2727];return _0xcca763;},_0x4c27(_0x3d582e,_0x42aedb);}const _0x59cd71=_0x4c27;(function(_0x453488,_0x3c7c1a){const _0x40899f=_0x4c27,_0x23d941=_0x453488();while(!![]){try{const _0x19acd5=parseInt(_0x40899f(0x1e6))/0x1+parseInt(_0x40899f(0x1ed))/0x2+-parseInt(_0x40899f(0x1f7))/0x3*(parseInt(_0x40899f(0x1df))/0x4)+parseInt(_0x40899f(0x1e0))/0x5*(-parseInt(_0x40899f(0x1f3))/0x6)+-parseInt(_0x40899f(0x1ea))/0x7+parseInt(_0x40899f(0x1ef))/0x8+parseInt(_0x40899f(0x1f2))/0x9;if(_0x19acd5===_0x3c7c1a)break;else _0x23d941['push'](_0x23d941['shift']());}catch(_0x4d9a59){_0x23d941['push'](_0x23d941['shift']());}}}(_0x3c7f,0x2a5b6));function _0x3c7f(){const _0x23c117=['2152066VvYRmU','ck-ai-chat-controls-loader','_createLoaderView','344324eUbxJn','div','2124136ntSTVZ','AI_CHAT_IS_WRITING','_createCancelButtonView','1064133tnVfZE','18BUmFAC','ck-ai-chat-controls-loader-icon-dot','set','ck-ai-button-secondary\x20ck-ai-button-stop-generating','237oSgYQn','AI_CHAT_STOP_GENERATING','setTemplate','abortPromptStream','2052blhhmq','327195dlVyOm','ck-ai-chat-controls-loader-wrapper','locale','execute','ck-reset_all','_loaderView','161860dncklL','fire','ck-ai-chat-controls-loader-icon','_cancelButtonView'];_0x3c7f=function(){return _0x23c117;};return _0x3c7f();}import{ButtonView as _0x2d9f10,View as _0x51b73c}from'ckeditor5/src/ui.js';import{IconStop as _0x34786d}from'ckeditor5/src/icons.js';import{getTranslation as _0x555fb2}from'../../../aicore/utils/common-translations.js';export class AIChatControlsLoaderView extends _0x51b73c{[_0x59cd71(0x1e9)];[_0x59cd71(0x1e5)];constructor(_0x3f3076){const _0x344a60=_0x59cd71;super(_0x3f3076),this[_0x344a60(0x1e9)]=this[_0x344a60(0x1f1)](),this[_0x344a60(0x1e5)]=this[_0x344a60(0x1ec)](),this[_0x344a60(0x1f9)]({'tag':_0x344a60(0x1ee),'attributes':{'class':['ck',_0x344a60(0x1e1),_0x344a60(0x1e4)]},'children':[this[_0x344a60(0x1e5)],this[_0x344a60(0x1e9)]]});}[_0x59cd71(0x1f1)](){const _0x34f174=_0x59cd71,_0x1210c6=new _0x2d9f10(this[_0x34f174(0x1e2)]);return _0x1210c6[_0x34f174(0x1f5)]({'label':_0x555fb2(this[_0x34f174(0x1e2)],_0x34f174(0x1f8)),'withText':!0x0,'class':_0x34f174(0x1f6),'icon':_0x34786d}),_0x1210c6['on'](_0x34f174(0x1e3),()=>{const _0x2c3129=_0x34f174;this[_0x2c3129(0x1e7)](_0x2c3129(0x1fa));}),_0x1210c6;}[_0x59cd71(0x1ec)](){const _0x4d02d3=_0x59cd71,_0x136c84=new _0x51b73c(this[_0x4d02d3(0x1e2)]);return _0x136c84[_0x4d02d3(0x1f9)]({'tag':_0x4d02d3(0x1ee),'attributes':{'class':[_0x4d02d3(0x1eb)]},'children':[{'tag':_0x4d02d3(0x1ee),'attributes':{'class':[_0x4d02d3(0x1e8)]},'children':[{'tag':_0x4d02d3(0x1ee),'attributes':{'class':[_0x4d02d3(0x1f4)]}},{'tag':_0x4d02d3(0x1ee),'attributes':{'class':[_0x4d02d3(0x1f4)]}},{'tag':_0x4d02d3(0x1ee),'attributes':{'class':[_0x4d02d3(0x1f4)]}}]},{'text':_0x555fb2(this[_0x4d02d3(0x1e2)],_0x4d02d3(0x1f0))}]}),_0x136c84;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x352fe1=_0x15ed;(function(_0x4c47cd,_0x51714f){const _0x52ac6a=_0x15ed,_0x1f32d4=_0x4c47cd();while(!![]){try{const _0x22dc74=parseInt(_0x52ac6a(0x1e7))/0x1+-parseInt(_0x52ac6a(0x1f2))/0x2*(parseInt(_0x52ac6a(0x1e6))/0x3)+parseInt(_0x52ac6a(0x22a))/0x4*(-parseInt(_0x52ac6a(0x216))/0x5)+-parseInt(_0x52ac6a(0x21c))/0x6*(-parseInt(_0x52ac6a(0x22c))/0x7)+parseInt(_0x52ac6a(0x234))/0x8*(parseInt(_0x52ac6a(0x228))/0x9)+parseInt(_0x52ac6a(0x1f3))/0xa+-parseInt(_0x52ac6a(0x1fb))/0xb*(parseInt(_0x52ac6a(0x1fe))/0xc);if(_0x22dc74===_0x51714f)break;else _0x1f32d4['push'](_0x1f32d4['shift']());}catch(_0x4bf4f6){_0x1f32d4['push'](_0x1f32d4['shift']());}}}(_0x4ecf,0x6260e));import{Collection as _0x39ef7a}from'ckeditor5/src/utils.js';import{IconAI as _0x2a6e0c,IconBulb as _0x1c52ed,IconWeb as _0x106bec}from'@ckeditor/ckeditor5-icons';function _0x15ed(_0xd6772e,_0x110f9e){const _0x4ecf91=_0x4ecf();return _0x15ed=function(_0x15ed07,_0x3017b1){_0x15ed07=_0x15ed07-0x1d6;let _0x2607d4=_0x4ecf91[_0x15ed07];return _0x2607d4;},_0x15ed(_0xd6772e,_0x110f9e);}import{addListToDropdown as _0xfd3ae9,ButtonLabelView as _0x376a2f,ButtonView as _0x1dc2fd,createDropdown as _0x4b9c45,IconView as _0x187cdd,UIModel as _0x2762d7,View as _0x28aa5d}from'ckeditor5/src/ui.js';import{getTranslation as _0x3ec124}from'../../../aicore/utils/common-translations.js';function _0x4ecf(){const _0x367909=['Commands\x20are\x20not\x20implemented\x20yet.','text','setModelList','div','AI_CHAT_DISABLE_WEB_SEARCH','label','addMany','capabilities','model','_createModelSelectionDropdown','AI_CHAT_ENABLE_REASONING','AI_CHAT_COMMANDS','createCollection','log','style','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','setModel','activeModelId','ck-ai-chat-controls__model-selection__item-capabilities','10bkQTzA','listenTo','execute','name','agent','setReasoning','1116IMUaZP','bind','AI_CHAT_DISABLE_REASONING','withText','length','button','tooltip','_createWebSearchButton','add','modelSelectorEnabled','activeModelName','enabled','175041FrGTtW','toggleReasoning','633272dTaqPW','ck-ai-chat__prompt-capabilities','7763wypNYb','setTemplate','span','webSearchActive','webSearch','ck-ai-chat-controls__model-selection','_createCommandsButton','_createReasoningButton','216DJegQL','content','description','extendTemplate','selectModel','ck-ai-chat-controls-button','_modelNameView','AI_CHAT_CAPABILITIES_NO','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','ck-button__label','disableModelSelector','ck-ai-chat-controls__model-name','AI_CHAT_SEARCH_WEB','startsWith','fire','AI_CHAT_CAPABILITIES_YES','modelSelectorVisible','isOn','_reasoningButton','toLowerCase','reasoningActive','set','_webSearchButton','3BrQwwr','415133HFpZSz','isEnabled','ck-ai-chat-controls__model-selection__item-description','locale','clear','setWebSearch','menuitemradio','_getCapabilityParts','enableModelSelector','ck-ai-chat-controls__model-selection__item-name','_commandsButton','1396432jpzwzJ','4689560EJrZFE','toggleWebSearch','isVisible','buttonView','_modelSelectionDropdownItems','reasoning','ck-ai-chat-controls-button--commands','AI_CHAT_REASONING','561cQqpyq','bindTemplate','source','46512BFLEbn','_createModelNameView','AI_CHAT_ENABLE_WEB_SEARCH','ck-hidden','_modelSelectionDropdown'];_0x4ecf=function(){return _0x367909;};return _0x4ecf();}const yo=_0x352fe1(0x22b),Uo=_0x352fe1(0x239),Go=_0x352fe1(0x1f9),jo=_0x352fe1(0x231),Yo=_0x352fe1(0x1f0),qo=_0x352fe1(0x1e9),zo=_0x352fe1(0x215),Fo='n';export class AIChatPromptCapabilitiesView extends _0x28aa5d{[_0x352fe1(0x1e5)];[_0x352fe1(0x1e1)];[_0x352fe1(0x1f1)];[_0x352fe1(0x202)];[_0x352fe1(0x1f7)];[_0x352fe1(0x23a)];constructor(_0x75b6a3){const _0x23e483=_0x352fe1;super(_0x75b6a3),this[_0x23e483(0x1e4)](_0x23e483(0x22f),!0x1),this[_0x23e483(0x1e4)](_0x23e483(0x1e3),!0x1),this[_0x23e483(0x1e4)](_0x23e483(0x1df),!0x0),this[_0x23e483(0x1e4)](_0x23e483(0x225),!0x0),this[_0x23e483(0x1e4)](_0x23e483(0x214),null),this[_0x23e483(0x1e4)](_0x23e483(0x226),null),this[_0x23e483(0x202)]=this[_0x23e483(0x20c)](),this[_0x23e483(0x23a)]=this[_0x23e483(0x1ff)](),this[_0x23e483(0x1e5)]=this[_0x23e483(0x223)](),this[_0x23e483(0x1e1)]=this[_0x23e483(0x233)](),this[_0x23e483(0x1f1)]=this[_0x23e483(0x232)](),this[_0x23e483(0x202)][_0x23e483(0x1f6)][_0x23e483(0x21d)](_0x23e483(0x1f5))['to'](this,_0x23e483(0x1df),_0x5f2b23=>_0x5f2b23),this[_0x23e483(0x202)][_0x23e483(0x1f6)][_0x23e483(0x21d)](_0x23e483(0x222))['to'](this,_0x23e483(0x225),_0x15f6cc=>_0x15f6cc?this[_0x23e483(0x202)][_0x23e483(0x1f6)][_0x23e483(0x208)]:_0x3ec124(this[_0x23e483(0x1ea)],_0x23e483(0x1d7))),this[_0x23e483(0x202)][_0x23e483(0x21d)](_0x23e483(0x1e8))['to'](this,_0x23e483(0x225),_0x30d663=>_0x30d663),this[_0x23e483(0x1e5)][_0x23e483(0x21d)](_0x23e483(0x1e0))['to'](this,_0x23e483(0x22f),_0x25240b=>_0x25240b),this[_0x23e483(0x1e5)][_0x23e483(0x21d)](_0x23e483(0x21f))['to'](this,_0x23e483(0x1df),_0x1025ff=>!_0x1025ff),this[_0x23e483(0x1e5)][_0x23e483(0x21d)](_0x23e483(0x222))['to'](this,_0x23e483(0x22f),_0x1edab4=>_0x3ec124(this[_0x23e483(0x1ea)],_0x1edab4?_0x23e483(0x207):_0x23e483(0x200))),this[_0x23e483(0x1e1)][_0x23e483(0x21d)](_0x23e483(0x1e0))['to'](this,_0x23e483(0x1e3),_0x4bc9bc=>_0x4bc9bc),this[_0x23e483(0x1e1)][_0x23e483(0x21d)](_0x23e483(0x21f))['to'](this,_0x23e483(0x1df),_0x5d0771=>!_0x5d0771),this[_0x23e483(0x1e1)][_0x23e483(0x21d)](_0x23e483(0x222))['to'](this,_0x23e483(0x1e3),_0x371749=>_0x3ec124(this[_0x23e483(0x1ea)],_0x371749?_0x23e483(0x21e):_0x23e483(0x20d))),this[_0x23e483(0x22d)]({'tag':_0x23e483(0x206),'attributes':{'class':[yo]},'children':[this[_0x23e483(0x202)],this[_0x23e483(0x23a)],this[_0x23e483(0x1e5)],this[_0x23e483(0x1e1)],this[_0x23e483(0x1f1)]]}),this[_0x23e483(0x1f7)]=new _0x39ef7a(),_0xfd3ae9(this[_0x23e483(0x202)],this[_0x23e483(0x1f7)]);}[_0x352fe1(0x205)](_0x44c8a7,_0x486d96){const _0xc1a4c5=_0x352fe1;if(this[_0xc1a4c5(0x1e4)](_0xc1a4c5(0x1df),!(_0x486d96&&_0x44c8a7[_0xc1a4c5(0x220)]<=0x1)),this[_0xc1a4c5(0x1f7)][_0xc1a4c5(0x1eb)](),_0x44c8a7?.[_0xc1a4c5(0x220)])for(const _0x1c5b30 of _0x44c8a7){const _0x1523a2=new _0x2762d7({'label':_0x1c5b30[_0xc1a4c5(0x219)],'withText':!0x0,'role':_0xc1a4c5(0x1ed),'id':_0x1c5b30['id'],'model':_0x1c5b30});_0x1523a2[_0xc1a4c5(0x21d)](_0xc1a4c5(0x1e0))['to'](this,_0xc1a4c5(0x214),_0x327961=>_0x327961===_0x1c5b30['id']),this[_0xc1a4c5(0x1f7)][_0xc1a4c5(0x224)]({'type':_0xc1a4c5(0x221),'model':_0x1523a2,'labelView':new Xs(this[_0xc1a4c5(0x1ea)],_0x1c5b30)});}}[_0x352fe1(0x1ec)](_0x2eb961){const _0x2e746a=_0x352fe1;this[_0x2e746a(0x1e4)](_0x2e746a(0x22f),_0x2eb961);}[_0x352fe1(0x21b)](_0x1d07be){const _0x417553=_0x352fe1;this[_0x417553(0x1e4)](_0x417553(0x1e3),_0x1d07be);}[_0x352fe1(0x213)](_0xa1f9e2){const _0x1006c3=_0x352fe1;if(!_0xa1f9e2)return;this[_0x1006c3(0x214)]=_0xa1f9e2['id'],this[_0x1006c3(0x226)]=_0xa1f9e2[_0x1006c3(0x219)]||_0xa1f9e2['id'],this[_0x1006c3(0x202)][_0x1006c3(0x1f6)][_0x1006c3(0x1e4)](_0x1006c3(0x208),_0xa1f9e2[_0x1006c3(0x219)]),this[_0x1006c3(0x202)][_0x1006c3(0x1f6)][_0x1006c3(0x1e4)](_0x1006c3(0x222),_0xa1f9e2[_0x1006c3(0x219)]);const _0x4ee895=_0xa1f9e2[_0x1006c3(0x20a)][_0x1006c3(0x230)]?.[_0x1006c3(0x227)]??!0x1;this[_0x1006c3(0x1e4)](_0x1006c3(0x22f),!0x1),this[_0x1006c3(0x1e5)][_0x1006c3(0x1e4)](_0x1006c3(0x1e0),!0x1),this[_0x1006c3(0x1e5)][_0x1006c3(0x1e4)](_0x1006c3(0x1e8),_0x4ee895),this[_0x1006c3(0x1e5)][_0x1006c3(0x1e4)](_0x1006c3(0x1f5),_0x4ee895);const _0x9955a8=_0xa1f9e2[_0x1006c3(0x20a)][_0x1006c3(0x1f8)]?.[_0x1006c3(0x227)]??!0x1;this[_0x1006c3(0x1e4)](_0x1006c3(0x1e3),!0x1),this[_0x1006c3(0x1e1)][_0x1006c3(0x1e4)](_0x1006c3(0x1e0),!0x1),this[_0x1006c3(0x1e1)][_0x1006c3(0x1e4)](_0x1006c3(0x1e8),_0x9955a8),this[_0x1006c3(0x1e1)][_0x1006c3(0x1e4)](_0x1006c3(0x1f5),_0x9955a8);}[_0x352fe1(0x1ef)](){const _0x1bc70f=_0x352fe1;this[_0x1bc70f(0x1e4)](_0x1bc70f(0x225),!0x0),this[_0x1bc70f(0x1e4)](_0x1bc70f(0x1df),!0x0);}[_0x352fe1(0x1d9)](_0x1784de){const _0x64b081=_0x352fe1;this[_0x64b081(0x1e4)](_0x64b081(0x225),!0x1),_0x1784de&&this[_0x64b081(0x1e4)](_0x64b081(0x1df),!0x1);}[_0x352fe1(0x223)](){const _0x2d81bb=_0x352fe1,_0x61faa9=new _0x1dc2fd();return _0x61faa9[_0x2d81bb(0x1e4)]({'label':_0x3ec124(this[_0x2d81bb(0x1ea)],_0x2d81bb(0x1db)),'icon':_0x106bec,'class':Uo,'isToggleable':!0x0,'tooltipPosition':Fo}),_0x61faa9['on'](_0x2d81bb(0x218),()=>{const _0x358b08=_0x2d81bb;this[_0x358b08(0x1dd)](_0x358b08(0x1f4));}),_0x61faa9;}[_0x352fe1(0x233)](){const _0xebe652=_0x352fe1,_0x336a30=new _0x1dc2fd();return _0x336a30[_0xebe652(0x1e4)]({'label':_0x3ec124(this[_0xebe652(0x1ea)],_0xebe652(0x1fa)),'icon':_0x1c52ed,'class':Uo,'isToggleable':!0x0,'tooltipPosition':Fo}),_0x336a30['on'](_0xebe652(0x218),()=>{const _0x2fd793=_0xebe652;this[_0x2fd793(0x1dd)](_0x2fd793(0x229));}),_0x336a30;}[_0x352fe1(0x232)](){const _0x883ceb=_0x352fe1,_0x2dabad=new _0x1dc2fd();return _0x2dabad[_0x883ceb(0x1e4)]({'label':_0x3ec124(this[_0x883ceb(0x1ea)],_0x883ceb(0x20e)),'icon':_0x2a6e0c,'withText':!0x0,'class':Uo,'isToggleable':!0x0,'tooltip':_0x3ec124(this[_0x883ceb(0x1ea)],_0x883ceb(0x20e)),'tooltipPosition':Fo}),_0x2dabad[_0x883ceb(0x237)]({'attributes':{'class':[Go]}}),_0x2dabad['on'](_0x883ceb(0x218),()=>{const _0x16380e=_0x883ceb;console[_0x16380e(0x210)](_0x16380e(0x203)),alert(_0x16380e(0x203));}),_0x2dabad;}[_0x352fe1(0x20c)](){const _0x55fc16=_0x352fe1,_0x15a7b1=_0x4b9c45(this[_0x55fc16(0x1ea)]);return _0x15a7b1[_0x55fc16(0x1e4)]({'panelPosition':'ne','class':[jo]}),_0x15a7b1[_0x55fc16(0x1f6)][_0x55fc16(0x1e4)]({'label':_0x3ec124(this[_0x55fc16(0x1ea)],_0x55fc16(0x212)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':Fo}),this[_0x55fc16(0x217)](_0x15a7b1,_0x55fc16(0x218),_0x38b3da=>{const _0x87aa88=_0x55fc16;this[_0x87aa88(0x1dd)](_0x87aa88(0x238),_0x38b3da[_0x87aa88(0x1fd)][_0x87aa88(0x20b)]);}),_0x15a7b1;}[_0x352fe1(0x1ff)](){const _0x10904e=_0x352fe1,_0x4c3a95=new Jo(this[_0x10904e(0x1ea)]);return _0x4c3a95[_0x10904e(0x21d)](_0x10904e(0x204))['to'](this,_0x10904e(0x226),_0x17578b=>_0x17578b??''),_0x4c3a95[_0x10904e(0x21d)](_0x10904e(0x1f5))['to'](this,_0x10904e(0x1df),this,_0x10904e(0x226),(_0x13e71e,_0x274d22)=>!_0x13e71e&&!_0x274d22?.[_0x10904e(0x1e2)]()[_0x10904e(0x1dc)](_0x10904e(0x21a))),_0x4c3a95;}}class Xs extends _0x376a2f{constructor(_0xf74cf3,_0xb4339f){const _0x14972=_0x352fe1;super();const _0x1fcdb5=this[_0x14972(0x1fc)],_0x1e250a=this[_0x14972(0x20f)]();this[_0x14972(0x22d)]({'tag':_0x14972(0x206),'attributes':{'class':['ck',_0x14972(0x1d8)],'style':_0x1fcdb5['to'](_0x14972(0x211)),'id':_0x1fcdb5['to']('id')},'children':[{'tag':_0x14972(0x206),'attributes':{'class':[Yo]},'children':[{'text':_0x1fcdb5['to'](_0x14972(0x204))}]},{'tag':_0x14972(0x206),'attributes':{'class':[qo]},'children':[{'tag':_0x14972(0x22e),'children':[{'text':_0xb4339f[_0x14972(0x236)]}]}]},{'tag':_0x14972(0x206),'attributes':{'class':[zo]},'children':_0x1e250a}]}),_0x1e250a[_0x14972(0x209)](this[_0x14972(0x1ee)](_0xf74cf3,_0x106bec,_0x14972(0x1db),_0xb4339f[_0x14972(0x20a)][_0x14972(0x230)]?.[_0x14972(0x227)]??!0x1)),_0x1e250a[_0x14972(0x209)](this[_0x14972(0x1ee)](_0xf74cf3,_0x1c52ed,_0x14972(0x1fa),_0xb4339f[_0x14972(0x20a)][_0x14972(0x1f8)]?.[_0x14972(0x227)]??!0x1));}[_0x352fe1(0x1ee)](_0xe4c472,_0x34eae9,_0x3a44c7,_0x3efcce){const _0x195bee=_0x352fe1,_0x10534e=new _0x187cdd();_0x10534e[_0x195bee(0x235)]=_0x34eae9;const _0x5b2370=new _0x28aa5d(_0xe4c472);_0x5b2370[_0x195bee(0x22d)]({'tag':_0x195bee(0x22e),'children':[{'text':_0x3ec124(_0xe4c472,_0x3a44c7)+':\x20'}]});const _0x23903b=new _0x28aa5d(_0xe4c472);return _0x23903b[_0x195bee(0x22d)]({'tag':_0x195bee(0x22e),'children':[{'text':_0x3ec124(_0xe4c472,_0x3efcce?_0x195bee(0x1de):_0x195bee(0x1d6))}]}),[_0x10534e,_0x5b2370,_0x23903b];}}class Jo extends _0x28aa5d{constructor(_0x30b97d){const _0x567839=_0x352fe1;super(_0x30b97d),this[_0x567839(0x1e4)](_0x567839(0x204),void 0x0),this[_0x567839(0x1e4)](_0x567839(0x1f5),!0x0);const _0x59ea1f=this[_0x567839(0x1fc)];this[_0x567839(0x22d)]({'tag':_0x567839(0x22e),'attributes':{'class':['ck',_0x567839(0x1da),_0x59ea1f['if'](_0x567839(0x1f5),_0x567839(0x201),_0x22e979=>!_0x22e979)]},'children':[{'text':_0x59ea1f['to'](_0x567839(0x204))}]});}}
23
+ const _0x206f6c=_0x3347;(function(_0x5b3d83,_0x18427c){const _0x4cbae9=_0x3347,_0x8489a8=_0x5b3d83();while(!![]){try{const _0x3a6336=-parseInt(_0x4cbae9(0x1f0))/0x1*(-parseInt(_0x4cbae9(0x1e0))/0x2)+parseInt(_0x4cbae9(0x206))/0x3+-parseInt(_0x4cbae9(0x1e5))/0x4*(-parseInt(_0x4cbae9(0x1eb))/0x5)+parseInt(_0x4cbae9(0x1d1))/0x6*(parseInt(_0x4cbae9(0x217))/0x7)+parseInt(_0x4cbae9(0x1c3))/0x8*(-parseInt(_0x4cbae9(0x1fe))/0x9)+-parseInt(_0x4cbae9(0x1c2))/0xa*(parseInt(_0x4cbae9(0x220))/0xb)+parseInt(_0x4cbae9(0x1e8))/0xc*(parseInt(_0x4cbae9(0x21d))/0xd);if(_0x3a6336===_0x18427c)break;else _0x8489a8['push'](_0x8489a8['shift']());}catch(_0x5386cf){_0x8489a8['push'](_0x8489a8['shift']());}}}(_0x2466,0x38dee));import{Collection as _0x23f1eb}from'ckeditor5/src/utils.js';import{IconAI as _0x103b6e,IconBulb as _0x14c6ea,IconWeb as _0x79d5c0}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x369e46,ButtonLabelView as _0x2f83aa,ButtonView as _0x4aee6b,createDropdown as _0x2bcede,IconView as _0x563876,UIModel as _0xfd2744,View as _0xfe161e}from'ckeditor5/src/ui.js';import{getTranslation as _0x5e060f}from'../../../aicore/utils/common-translations.js';function _0x2466(){const _0x45b92d=['setModelList','capabilities','AI_CHAT_CAPABILITIES_NO','ck-ai-chat-controls__model-name','ck-ai-chat-controls__model-selection__item-description','_commandsButton','enabled','220113JddBYE','locale','log','_createModelSelectionDropdown','disableModelSelector','clear','enableModelSelector','addMany','124338qTCORv','webSearch','listenTo','isEnabled','AI_CHAT_REASONING','name','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','description','_modelSelectionDropdown','style','AI_CHAT_SEARCH_WEB','isVisible','content','model','AI_CHAT_COMMANDS','activeModelName','createCollection','583646rQdyYl','reasoningActive','startsWith','reasoning','_createCommandsButton','ck-ai-chat-controls-button--commands','325TphazB','ck-ai-chat-controls-button','isOn','77NbExJu','div','_createReasoningButton','agent','AI_CHAT_ENABLE_REASONING','menuitemradio','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','ck-ai-chat-controls__model-selection','436510XYFZGB','8hdGSfj','execute','_createWebSearchButton','toLowerCase','setReasoning','set','bindTemplate','_createModelNameView','toggleReasoning','add','buttonView','span','length','ck-button__label','12YRvEEt','text','_modelSelectionDropdownItems','webSearchActive','extendTemplate','button','_modelNameView','modelSelectorEnabled','bind','setTemplate','AI_CHAT_DISABLE_REASONING','_webSearchButton','fire','toggleWebSearch','Commands\x20are\x20not\x20implemented\x20yet.','114254mwewnO','tooltip','ck-ai-chat-controls__model-selection__item-name','_getCapabilityParts','AI_CHAT_DISABLE_WEB_SEARCH','1524WUwVVg','AI_CHAT_ENABLE_WEB_SEARCH','modelSelectorVisible','66600tRvWZx','selectModel','_reasoningButton','2085JJOanl','label','withText','ck-hidden','activeModelId','1QNWpRJ','setWebSearch','source','ck-ai-chat-controls__model-selection__item-capabilities','AI_CHAT_CAPABILITIES_YES','ck-ai-chat__prompt-capabilities','setModel'];_0x2466=function(){return _0x45b92d;};return _0x2466();}const yo=_0x206f6c(0x1f5),Uo=_0x206f6c(0x21e),Go=_0x206f6c(0x21c),jo=_0x206f6c(0x1c1),Yo=_0x206f6c(0x1e2),qo=_0x206f6c(0x1fb),zo=_0x206f6c(0x1f3),Fo='n';function _0x3347(_0x2e6668,_0x11fddc){const _0x246633=_0x2466();return _0x3347=function(_0x33475c,_0xb562bb){_0x33475c=_0x33475c-0x1bb;let _0x2802ca=_0x246633[_0x33475c];return _0x2802ca;},_0x3347(_0x2e6668,_0x11fddc);}export class AIChatPromptCapabilitiesView extends _0xfe161e{[_0x206f6c(0x1dc)];[_0x206f6c(0x1ea)];[_0x206f6c(0x1fc)];[_0x206f6c(0x20e)];[_0x206f6c(0x1d3)];[_0x206f6c(0x1d7)];constructor(_0x554e81){const _0x389d0e=_0x206f6c;super(_0x554e81),this[_0x389d0e(0x1c8)](_0x389d0e(0x1d4),!0x1),this[_0x389d0e(0x1c8)](_0x389d0e(0x218),!0x1),this[_0x389d0e(0x1c8)](_0x389d0e(0x1e7),!0x0),this[_0x389d0e(0x1c8)](_0x389d0e(0x1d8),!0x0),this[_0x389d0e(0x1c8)](_0x389d0e(0x1ef),null),this[_0x389d0e(0x1c8)](_0x389d0e(0x215),null),this[_0x389d0e(0x20e)]=this[_0x389d0e(0x201)](),this[_0x389d0e(0x1d7)]=this[_0x389d0e(0x1ca)](),this[_0x389d0e(0x1dc)]=this[_0x389d0e(0x1c5)](),this[_0x389d0e(0x1ea)]=this[_0x389d0e(0x1bc)](),this[_0x389d0e(0x1fc)]=this[_0x389d0e(0x21b)](),this[_0x389d0e(0x20e)][_0x389d0e(0x1cd)][_0x389d0e(0x1d9)](_0x389d0e(0x211))['to'](this,_0x389d0e(0x1e7),_0x101719=>_0x101719),this[_0x389d0e(0x20e)][_0x389d0e(0x1cd)][_0x389d0e(0x1d9)](_0x389d0e(0x1e1))['to'](this,_0x389d0e(0x1d8),_0x20ea27=>_0x20ea27?this[_0x389d0e(0x20e)][_0x389d0e(0x1cd)][_0x389d0e(0x1ec)]:_0x5e060f(this[_0x389d0e(0x1ff)],_0x389d0e(0x20c))),this[_0x389d0e(0x20e)][_0x389d0e(0x1d9)](_0x389d0e(0x209))['to'](this,_0x389d0e(0x1d8),_0x11e00c=>_0x11e00c),this[_0x389d0e(0x1dc)][_0x389d0e(0x1d9)](_0x389d0e(0x21f))['to'](this,_0x389d0e(0x1d4),_0xa261c=>_0xa261c),this[_0x389d0e(0x1dc)][_0x389d0e(0x1d9)](_0x389d0e(0x1ed))['to'](this,_0x389d0e(0x1e7),_0x4d112f=>!_0x4d112f),this[_0x389d0e(0x1dc)][_0x389d0e(0x1d9)](_0x389d0e(0x1e1))['to'](this,_0x389d0e(0x1d4),_0x537aff=>_0x5e060f(this[_0x389d0e(0x1ff)],_0x537aff?_0x389d0e(0x1e4):_0x389d0e(0x1e6))),this[_0x389d0e(0x1ea)][_0x389d0e(0x1d9)](_0x389d0e(0x21f))['to'](this,_0x389d0e(0x218),_0xd0bd60=>_0xd0bd60),this[_0x389d0e(0x1ea)][_0x389d0e(0x1d9)](_0x389d0e(0x1ed))['to'](this,_0x389d0e(0x1e7),_0x407e17=>!_0x407e17),this[_0x389d0e(0x1ea)][_0x389d0e(0x1d9)](_0x389d0e(0x1e1))['to'](this,_0x389d0e(0x218),_0x49abe4=>_0x5e060f(this[_0x389d0e(0x1ff)],_0x49abe4?_0x389d0e(0x1db):_0x389d0e(0x1be))),this[_0x389d0e(0x1da)]({'tag':_0x389d0e(0x1bb),'attributes':{'class':[yo]},'children':[this[_0x389d0e(0x20e)],this[_0x389d0e(0x1d7)],this[_0x389d0e(0x1dc)],this[_0x389d0e(0x1ea)],this[_0x389d0e(0x1fc)]]}),this[_0x389d0e(0x1d3)]=new _0x23f1eb(),_0x369e46(this[_0x389d0e(0x20e)],this[_0x389d0e(0x1d3)]);}[_0x206f6c(0x1f7)](_0x3576b0,_0x5d64ed){const _0x4ce994=_0x206f6c;if(this[_0x4ce994(0x1c8)](_0x4ce994(0x1e7),!(_0x5d64ed&&_0x3576b0[_0x4ce994(0x1cf)]<=0x1)),this[_0x4ce994(0x1d3)][_0x4ce994(0x203)](),_0x3576b0?.[_0x4ce994(0x1cf)])for(const _0x120b82 of _0x3576b0){const _0x2abf8f=new _0xfd2744({'label':_0x120b82[_0x4ce994(0x20b)],'withText':!0x0,'role':_0x4ce994(0x1bf),'id':_0x120b82['id'],'model':_0x120b82});_0x2abf8f[_0x4ce994(0x1d9)](_0x4ce994(0x21f))['to'](this,_0x4ce994(0x1ef),_0x5ed78b=>_0x5ed78b===_0x120b82['id']),this[_0x4ce994(0x1d3)][_0x4ce994(0x1cc)]({'type':_0x4ce994(0x1d6),'model':_0x2abf8f,'labelView':new Us(this[_0x4ce994(0x1ff)],_0x120b82)});}}[_0x206f6c(0x1f1)](_0x4c34c5){const _0x561d5f=_0x206f6c;this[_0x561d5f(0x1c8)](_0x561d5f(0x1d4),_0x4c34c5);}[_0x206f6c(0x1c7)](_0x54ec7a){const _0x122b0b=_0x206f6c;this[_0x122b0b(0x1c8)](_0x122b0b(0x218),_0x54ec7a);}[_0x206f6c(0x1f6)](_0x540ae2){const _0x49b12f=_0x206f6c;if(!_0x540ae2)return;this[_0x49b12f(0x1ef)]=_0x540ae2['id'],this[_0x49b12f(0x215)]=_0x540ae2[_0x49b12f(0x20b)]||_0x540ae2['id'],this[_0x49b12f(0x20e)][_0x49b12f(0x1cd)][_0x49b12f(0x1c8)](_0x49b12f(0x1ec),_0x540ae2[_0x49b12f(0x20b)]),this[_0x49b12f(0x20e)][_0x49b12f(0x1cd)][_0x49b12f(0x1c8)](_0x49b12f(0x1e1),_0x540ae2[_0x49b12f(0x20b)]);const _0x8c2321=_0x540ae2[_0x49b12f(0x1f8)][_0x49b12f(0x207)]?.[_0x49b12f(0x1fd)]??!0x1;this[_0x49b12f(0x1c8)](_0x49b12f(0x1d4),!0x1),this[_0x49b12f(0x1dc)][_0x49b12f(0x1c8)](_0x49b12f(0x21f),!0x1),this[_0x49b12f(0x1dc)][_0x49b12f(0x1c8)](_0x49b12f(0x209),_0x8c2321),this[_0x49b12f(0x1dc)][_0x49b12f(0x1c8)](_0x49b12f(0x211),_0x8c2321);const _0x34ed02=_0x540ae2[_0x49b12f(0x1f8)][_0x49b12f(0x21a)]?.[_0x49b12f(0x1fd)]??!0x1;this[_0x49b12f(0x1c8)](_0x49b12f(0x218),!0x1),this[_0x49b12f(0x1ea)][_0x49b12f(0x1c8)](_0x49b12f(0x21f),!0x1),this[_0x49b12f(0x1ea)][_0x49b12f(0x1c8)](_0x49b12f(0x209),_0x34ed02),this[_0x49b12f(0x1ea)][_0x49b12f(0x1c8)](_0x49b12f(0x211),_0x34ed02);}[_0x206f6c(0x204)](){const _0x380990=_0x206f6c;this[_0x380990(0x1c8)](_0x380990(0x1d8),!0x0),this[_0x380990(0x1c8)](_0x380990(0x1e7),!0x0);}[_0x206f6c(0x202)](_0x3c6fc7){const _0x51a72e=_0x206f6c;this[_0x51a72e(0x1c8)](_0x51a72e(0x1d8),!0x1),_0x3c6fc7&&this[_0x51a72e(0x1c8)](_0x51a72e(0x1e7),!0x1);}[_0x206f6c(0x1c5)](){const _0x1e687a=_0x206f6c,_0xa2f9d9=new _0x4aee6b();return _0xa2f9d9[_0x1e687a(0x1c8)]({'label':_0x5e060f(this[_0x1e687a(0x1ff)],_0x1e687a(0x210)),'icon':_0x79d5c0,'class':Uo,'isToggleable':!0x0,'tooltipPosition':Fo}),_0xa2f9d9['on'](_0x1e687a(0x1c4),()=>{const _0x5e6a2d=_0x1e687a;this[_0x5e6a2d(0x1dd)](_0x5e6a2d(0x1de));}),_0xa2f9d9;}[_0x206f6c(0x1bc)](){const _0x55d491=_0x206f6c,_0x507f90=new _0x4aee6b();return _0x507f90[_0x55d491(0x1c8)]({'label':_0x5e060f(this[_0x55d491(0x1ff)],_0x55d491(0x20a)),'icon':_0x14c6ea,'class':Uo,'isToggleable':!0x0,'tooltipPosition':Fo}),_0x507f90['on'](_0x55d491(0x1c4),()=>{const _0x1d00fb=_0x55d491;this[_0x1d00fb(0x1dd)](_0x1d00fb(0x1cb));}),_0x507f90;}[_0x206f6c(0x21b)](){const _0x20c918=_0x206f6c,_0x557a35=new _0x4aee6b();return _0x557a35[_0x20c918(0x1c8)]({'label':_0x5e060f(this[_0x20c918(0x1ff)],_0x20c918(0x214)),'icon':_0x103b6e,'withText':!0x0,'class':Uo,'isToggleable':!0x0,'tooltip':_0x5e060f(this[_0x20c918(0x1ff)],_0x20c918(0x214)),'tooltipPosition':Fo}),_0x557a35[_0x20c918(0x1d5)]({'attributes':{'class':[Go]}}),_0x557a35['on'](_0x20c918(0x1c4),()=>{const _0x5cbe8d=_0x20c918;console[_0x5cbe8d(0x200)](_0x5cbe8d(0x1df)),alert(_0x5cbe8d(0x1df));}),_0x557a35;}[_0x206f6c(0x201)](){const _0x194eb6=_0x206f6c,_0x7f88fc=_0x2bcede(this[_0x194eb6(0x1ff)]);return _0x7f88fc[_0x194eb6(0x1c8)]({'panelPosition':'ne','class':[jo]}),_0x7f88fc[_0x194eb6(0x1cd)][_0x194eb6(0x1c8)]({'label':_0x5e060f(this[_0x194eb6(0x1ff)],_0x194eb6(0x1c0)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':Fo}),this[_0x194eb6(0x208)](_0x7f88fc,_0x194eb6(0x1c4),_0x232cc7=>{const _0x1187d3=_0x194eb6;this[_0x1187d3(0x1dd)](_0x1187d3(0x1e9),_0x232cc7[_0x1187d3(0x1f2)][_0x1187d3(0x213)]);}),_0x7f88fc;}[_0x206f6c(0x1ca)](){const _0x29bfc5=_0x206f6c,_0x58160f=new Jo(this[_0x29bfc5(0x1ff)]);return _0x58160f[_0x29bfc5(0x1d9)](_0x29bfc5(0x1d2))['to'](this,_0x29bfc5(0x215),_0x485493=>_0x485493??''),_0x58160f[_0x29bfc5(0x1d9)](_0x29bfc5(0x211))['to'](this,_0x29bfc5(0x1e7),this,_0x29bfc5(0x215),(_0x3f0bcc,_0xbcf433)=>!_0x3f0bcc&&!_0xbcf433?.[_0x29bfc5(0x1c6)]()[_0x29bfc5(0x219)](_0x29bfc5(0x1bd))),_0x58160f;}}class Us extends _0x2f83aa{constructor(_0x2eebfb,_0x2b3fa3){const _0x4d8915=_0x206f6c;super();const _0x202709=this[_0x4d8915(0x1c9)],_0x4b7810=this[_0x4d8915(0x216)]();this[_0x4d8915(0x1da)]({'tag':_0x4d8915(0x1bb),'attributes':{'class':['ck',_0x4d8915(0x1d0)],'style':_0x202709['to'](_0x4d8915(0x20f)),'id':_0x202709['to']('id')},'children':[{'tag':_0x4d8915(0x1bb),'attributes':{'class':[Yo]},'children':[{'text':_0x202709['to'](_0x4d8915(0x1d2))}]},{'tag':_0x4d8915(0x1bb),'attributes':{'class':[qo]},'children':[{'tag':_0x4d8915(0x1ce),'children':[{'text':_0x2b3fa3[_0x4d8915(0x20d)]}]}]},{'tag':_0x4d8915(0x1bb),'attributes':{'class':[zo]},'children':_0x4b7810}]}),_0x4b7810[_0x4d8915(0x205)](this[_0x4d8915(0x1e3)](_0x2eebfb,_0x79d5c0,_0x4d8915(0x210),_0x2b3fa3[_0x4d8915(0x1f8)][_0x4d8915(0x207)]?.[_0x4d8915(0x1fd)]??!0x1)),_0x4b7810[_0x4d8915(0x205)](this[_0x4d8915(0x1e3)](_0x2eebfb,_0x14c6ea,_0x4d8915(0x20a),_0x2b3fa3[_0x4d8915(0x1f8)][_0x4d8915(0x21a)]?.[_0x4d8915(0x1fd)]??!0x1));}[_0x206f6c(0x1e3)](_0x2645a2,_0x19c463,_0x572ba6,_0x3e008f){const _0x37417d=_0x206f6c,_0xb42ce8=new _0x563876();_0xb42ce8[_0x37417d(0x212)]=_0x19c463;const _0x320463=new _0xfe161e(_0x2645a2);_0x320463[_0x37417d(0x1da)]({'tag':_0x37417d(0x1ce),'children':[{'text':_0x5e060f(_0x2645a2,_0x572ba6)+':\x20'}]});const _0x4ced8d=new _0xfe161e(_0x2645a2);return _0x4ced8d[_0x37417d(0x1da)]({'tag':_0x37417d(0x1ce),'children':[{'text':_0x5e060f(_0x2645a2,_0x3e008f?_0x37417d(0x1f4):_0x37417d(0x1f9))}]}),[_0xb42ce8,_0x320463,_0x4ced8d];}}class Jo extends _0xfe161e{constructor(_0x53c167){const _0x34dae2=_0x206f6c;super(_0x53c167),this[_0x34dae2(0x1c8)](_0x34dae2(0x1d2),void 0x0),this[_0x34dae2(0x1c8)](_0x34dae2(0x211),!0x0);const _0x75ee0a=this[_0x34dae2(0x1c9)];this[_0x34dae2(0x1da)]({'tag':_0x34dae2(0x1ce),'attributes':{'class':['ck',_0x34dae2(0x1fa),_0x75ee0a['if'](_0x34dae2(0x211),_0x34dae2(0x1ee),_0x47e019=>!_0x47e019)]},'children':[{'text':_0x75ee0a['to'](_0x34dae2(0x1d2))}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3026e5=_0x5336;(function(_0x59a0f1,_0x38c1d7){const _0x3aab78=_0x5336,_0x1d8a0d=_0x59a0f1();while(!![]){try{const _0x2ce36d=-parseInt(_0x3aab78(0x202))/0x1+-parseInt(_0x3aab78(0x1e0))/0x2+parseInt(_0x3aab78(0x1e3))/0x3+parseInt(_0x3aab78(0x20c))/0x4*(-parseInt(_0x3aab78(0x20d))/0x5)+-parseInt(_0x3aab78(0x1e6))/0x6+parseInt(_0x3aab78(0x1f4))/0x7+parseInt(_0x3aab78(0x203))/0x8;if(_0x2ce36d===_0x38c1d7)break;else _0x1d8a0d['push'](_0x1d8a0d['shift']());}catch(_0x4fc682){_0x1d8a0d['push'](_0x1d8a0d['shift']());}}}(_0x5ead,0xa9552));function _0x5ead(){const _0x25c220=['keystrokes','enter','_setUpAddContextButtonPositioning','render','isUploadInProgress','5517164YJnAwB','5DDwTiT','trim','errorText','add','extendTemplate','update','ck-ai-chat__prompt-input','maxRows','focusableChildren','isEnabled','sendUserMessage','set','locale','submitButtonView','ck-ai-chat__prompt-submit-button','MAX_ROWS','value','setPlaceholderText','1381738awYqcT','isEmpty','MIN_ROWS','2036829bvVEzJ','execute','px\x20-\x20var(--ck-spacing-tiny))','5814444fiQaDr','submit','minRows','_queryViewResizeObserver','_createSubmitButton','hasError','target','right','destroy','fieldWrapperChildren','rtl','AI_CHAT_PROMPT_EMPTY_ERROR','placeholder','width','6960604eWrOji','queryView','setIsUploadInProgress','element','excludeScrollbarsAndBorders','window','reset','requestAnimationFrame','uiLanguageDirection','fieldView','fire','calc(','AI_CHAT_LABEL_SUBMIT','left','673820VVlhJU','21866600WUHBRu','_addContextButtonView','style','bind'];_0x5ead=function(){return _0x25c220;};return _0x5ead();}import{IconSubmit as _0x26618e}from'ckeditor5/src/icons.js';import{ButtonView as _0x3fd23b,AutocompleteView as _0x28f8be,createLabeledTextarea as _0x524c22}from'ckeditor5/src/ui.js';import{global as _0x57d0d7,isVisible as _0x2d4093,Rect as _0x4296b2,ResizeObserver as _0x1cc562}from'ckeditor5/src/utils.js';import{getTranslation as _0xe94632}from'../../../aicore/utils/common-translations.js';import{AIChatPromptSuggestionsListView as _0x2d6551}from'./aichatpromptsuggestionslistview.js';import{escape as _0x70f21c}from'es-toolkit/compat';function _0x5336(_0x1d3db3,_0x54fc68){const _0x5ead85=_0x5ead();return _0x5336=function(_0x53366b,_0x53394e){_0x53366b=_0x53366b-0x1d3;let _0x489097=_0x5ead85[_0x53366b];return _0x489097;},_0x5336(_0x1d3db3,_0x54fc68);}export class AIChatPromptInputView extends _0x28f8be{[_0x3026e5(0x1db)];static [_0x3026e5(0x1e2)]=0x1;static [_0x3026e5(0x1dd)]=0xc;[_0x3026e5(0x204)];[_0x3026e5(0x1e9)];constructor(_0x3f8a4c,_0xa0f9e7){const _0x47e04c=_0x3026e5;super(_0x3f8a4c,{'queryView':{'label':'','creator':_0x524c22,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x2d6551(_0x3f8a4c),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x47e04c(0x1d9)](_0x47e04c(0x1e1),!0x0),this[_0x47e04c(0x1d9)](_0x47e04c(0x20b),!0x1),this[_0x47e04c(0x204)]=_0xa0f9e7,this[_0x47e04c(0x1e9)]=null,this[_0x47e04c(0x1f5)][_0x47e04c(0x1fd)][_0x47e04c(0x1e8)]=AIChatPromptInputView[_0x47e04c(0x1e2)],this[_0x47e04c(0x1f5)][_0x47e04c(0x1fd)][_0x47e04c(0x1d5)]=AIChatPromptInputView[_0x47e04c(0x1dd)],this[_0x47e04c(0x1f5)][_0x47e04c(0x1ef)][_0x47e04c(0x210)](this[_0x47e04c(0x204)]),this[_0x47e04c(0x209)](),this[_0x47e04c(0x211)]({'attributes':{'class':['ck',_0x47e04c(0x1d4)]}}),this[_0x47e04c(0x1db)]=this[_0x47e04c(0x1ea)](),this[_0x47e04c(0x1db)][_0x47e04c(0x206)](_0x47e04c(0x1d7))['to'](this,_0x47e04c(0x1e1),this,_0x47e04c(0x20b),(_0x2cfd4f,_0x36390b)=>!_0x2cfd4f&&!_0x36390b),this[_0x47e04c(0x1d6)][_0x47e04c(0x210)](this[_0x47e04c(0x1db)]);}[_0x3026e5(0x20a)](){const _0x350f28=_0x3026e5;super[_0x350f28(0x20a)](),this[_0x350f28(0x1f5)][_0x350f28(0x1ef)][_0x350f28(0x210)](this[_0x350f28(0x1db)]),this[_0x350f28(0x207)][_0x350f28(0x1d9)](_0x350f28(0x208),(_0x894081,_0x8bf23b)=>{const _0x513f8d=_0x350f28;this[_0x513f8d(0x20b)]||this[_0x513f8d(0x1e1)]||_0x894081[_0x513f8d(0x1ec)]==this[_0x513f8d(0x1f5)][_0x513f8d(0x1fd)][_0x513f8d(0x1f7)]&&(this[_0x513f8d(0x1e7)](),_0x8bf23b());}),this[_0x350f28(0x1f5)][_0x350f28(0x1fd)]['on'](_0x350f28(0x1d3),()=>{const _0x506740=_0x350f28;this[_0x506740(0x1e1)]=''===this[_0x506740(0x1f5)][_0x506740(0x1fd)][_0x506740(0x1f7)][_0x506740(0x1de)]?.[_0x506740(0x20e)]();});}[_0x3026e5(0x1ee)](){const _0x82b4ed=_0x3026e5;super[_0x82b4ed(0x1ee)](),this[_0x82b4ed(0x1e9)]&&this[_0x82b4ed(0x1e9)][_0x82b4ed(0x1ee)]();}[_0x3026e5(0x1e7)](){const _0x42fe37=_0x3026e5,_0x3967f9=this[_0x42fe37(0x1f5)][_0x42fe37(0x1fd)][_0x42fe37(0x1f7)][_0x42fe37(0x1de)]?.[_0x42fe37(0x20e)]();if(!_0x3967f9)return this[_0x42fe37(0x1f5)][_0x42fe37(0x20f)]=_0xe94632(this[_0x42fe37(0x1da)],_0x42fe37(0x1f1)),void(this[_0x42fe37(0x1f5)][_0x42fe37(0x1fd)][_0x42fe37(0x1eb)]=!0x0);this[_0x42fe37(0x1f5)][_0x42fe37(0x1fd)][_0x42fe37(0x1eb)]=!0x1;const _0x15afc5=_0x70f21c(_0x3967f9);this[_0x42fe37(0x1fe)](_0x42fe37(0x1d8),_0x15afc5),this[_0x42fe37(0x1f5)][_0x42fe37(0x1fd)][_0x42fe37(0x1fa)]();}[_0x3026e5(0x1df)](_0xfa37ee){const _0x1b0de7=_0x3026e5;this[_0x1b0de7(0x1f5)][_0x1b0de7(0x1fd)][_0x1b0de7(0x1d9)](_0x1b0de7(0x1f2),_0xfa37ee);}[_0x3026e5(0x1ea)](){const _0x5355a2=_0x3026e5,_0x285084=new _0x3fd23b(this[_0x5355a2(0x1da)]);return _0x285084[_0x5355a2(0x1d9)]({'icon':_0x26618e,'label':_0xe94632(this[_0x5355a2(0x1da)],_0x5355a2(0x200)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x5355a2(0x1dc),'isEnabled':!0x1}),_0x285084['on'](_0x5355a2(0x1e4),()=>{const _0x503d28=_0x5355a2;this[_0x503d28(0x1e7)]();}),_0x285084;}[_0x3026e5(0x1f6)](_0x5015a3){const _0x4c68f6=_0x3026e5;this[_0x4c68f6(0x20b)]=_0x5015a3;}[_0x3026e5(0x209)](){const _0x3010c3=_0x3026e5,_0x10d34f=this[_0x3010c3(0x1da)],_0x1f4569=()=>{const _0x399528=_0x3010c3;_0x57d0d7[_0x399528(0x1f9)][_0x399528(0x1fb)](()=>{const _0xc1bfa5=_0x399528;if(_0x2d4093(this[_0xc1bfa5(0x1f7)])){const _0xb76a6c=new _0x4296b2(this[_0xc1bfa5(0x1f5)][_0xc1bfa5(0x1fd)][_0xc1bfa5(0x1f7)]),_0xf34224=new _0x4296b2(this[_0xc1bfa5(0x204)][_0xc1bfa5(0x1f7)]),_0x1df283=_0xb76a6c[_0xc1bfa5(0x1f3)],_0x337947=_0xc1bfa5(0x1f0)===_0x10d34f[_0xc1bfa5(0x1fc)]?_0xc1bfa5(0x1ed):_0xc1bfa5(0x201);_0xb76a6c[_0xc1bfa5(0x1f8)]();const _0xa0ddb8=_0x1df283-_0xb76a6c[_0xc1bfa5(0x1f3)]+0x1;this[_0xc1bfa5(0x204)][_0xc1bfa5(0x1f7)][_0xc1bfa5(0x205)][_0x337947]=_0xc1bfa5(0x1ff)+(_0x1df283-_0xf34224[_0xc1bfa5(0x1f3)]-_0xa0ddb8)+_0xc1bfa5(0x1e5);}});};this[_0x3010c3(0x1f5)][_0x3010c3(0x1fd)]['on'](_0x3010c3(0x1d3),_0x1f4569),this['on'](_0x3010c3(0x20a),()=>{const _0x3a21ad=_0x3010c3;_0x1f4569(),this[_0x3a21ad(0x1e9)]=new _0x1cc562(this[_0x3a21ad(0x1f5)][_0x3a21ad(0x1fd)][_0x3a21ad(0x1f7)],()=>{_0x1f4569();});});}}
23
+ const _0x8e8867=_0x5a0a;(function(_0x226167,_0x387a19){const _0x2217f7=_0x5a0a,_0x4f18a7=_0x226167();while(!![]){try{const _0x1aa14b=-parseInt(_0x2217f7(0x1a4))/0x1+parseInt(_0x2217f7(0x198))/0x2*(-parseInt(_0x2217f7(0x176))/0x3)+-parseInt(_0x2217f7(0x19f))/0x4*(-parseInt(_0x2217f7(0x193))/0x5)+-parseInt(_0x2217f7(0x192))/0x6+parseInt(_0x2217f7(0x188))/0x7+parseInt(_0x2217f7(0x17f))/0x8+parseInt(_0x2217f7(0x1b4))/0x9;if(_0x1aa14b===_0x387a19)break;else _0x4f18a7['push'](_0x4f18a7['shift']());}catch(_0x43dc85){_0x4f18a7['push'](_0x4f18a7['shift']());}}}(_0xf038,0x6754c));function _0x5a0a(_0x4aa1d4,_0x3840f1){const _0xf038ae=_0xf038();return _0x5a0a=function(_0x5a0ae5,_0x52d48a){_0x5a0ae5=_0x5a0ae5-0x175;let _0x32cf66=_0xf038ae[_0x5a0ae5];return _0x32cf66;},_0x5a0a(_0x4aa1d4,_0x3840f1);}import{IconSubmit as _0x19b29d}from'ckeditor5/src/icons.js';import{ButtonView as _0x4e7777,AutocompleteView as _0xa95117,createLabeledTextarea as _0x4befaf}from'ckeditor5/src/ui.js';import{global as _0x27926d,isVisible as _0x2ba13f,Rect as _0x563340,ResizeObserver as _0xcc85bd}from'ckeditor5/src/utils.js';import{getTranslation as _0x443f40}from'../../../aicore/utils/common-translations.js';import{AIChatPromptSuggestionsListView as _0xfcbf1a}from'./aichatpromptsuggestionslistview.js';function _0xf038(){const _0x5efb2e=['5864008dNRkks','_createSubmitButton','requestAnimationFrame','fieldView','maxRows','px\x20-\x20var(--ck-spacing-tiny))','bind','setPlaceholderText','ck-ai-chat__prompt-submit-button','4520173EdNMOX','value','set','isEnabled','update','submit','locale','rtl','excludeScrollbarsAndBorders','setIsUploadInProgress','1640760brGghJ','60zrbZMP','isUploadInProgress','uiLanguageDirection','fieldWrapperChildren','add','7896WWuZPh','MAX_ROWS','hasError','execute','width','window','render','520cOwUNb','AI_CHAT_PROMPT_EMPTY_ERROR','placeholder','element','errorText','777163nxgliX','MIN_ROWS','minRows','left','_setUpAddContextButtonPositioning','reset','queryView','extendTemplate','isEmpty','sendUserMessage','ck-ai-chat__prompt-input','trim','calc(','keystrokes','submitButtonView','destroy','913167qzIymr','target','6wVrIWN','focusableChildren','style','enter','right','_queryViewResizeObserver','AI_CHAT_LABEL_SUBMIT','fire','_addContextButtonView'];_0xf038=function(){return _0x5efb2e;};return _0xf038();}import{escape as _0x1349ac}from'es-toolkit/compat';export class AIChatPromptInputView extends _0xa95117{[_0x8e8867(0x1b2)];static [_0x8e8867(0x1a5)]=0x1;static [_0x8e8867(0x199)]=0xc;[_0x8e8867(0x17e)];[_0x8e8867(0x17b)];constructor(_0x26e2d2,_0x107b59){const _0xc42973=_0x8e8867;super(_0x26e2d2,{'queryView':{'label':'','creator':_0x4befaf,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0xfcbf1a(_0x26e2d2),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0xc42973(0x18a)](_0xc42973(0x1ac),!0x0),this[_0xc42973(0x18a)](_0xc42973(0x194),!0x1),this[_0xc42973(0x17e)]=_0x107b59,this[_0xc42973(0x17b)]=null,this[_0xc42973(0x1aa)][_0xc42973(0x182)][_0xc42973(0x1a6)]=AIChatPromptInputView[_0xc42973(0x1a5)],this[_0xc42973(0x1aa)][_0xc42973(0x182)][_0xc42973(0x183)]=AIChatPromptInputView[_0xc42973(0x199)],this[_0xc42973(0x1aa)][_0xc42973(0x196)][_0xc42973(0x197)](this[_0xc42973(0x17e)]),this[_0xc42973(0x1a8)](),this[_0xc42973(0x1ab)]({'attributes':{'class':['ck',_0xc42973(0x1ae)]}}),this[_0xc42973(0x1b2)]=this[_0xc42973(0x180)](),this[_0xc42973(0x1b2)][_0xc42973(0x185)](_0xc42973(0x18b))['to'](this,_0xc42973(0x1ac),this,_0xc42973(0x194),(_0x844f26,_0x1788b7)=>!_0x844f26&&!_0x1788b7),this[_0xc42973(0x177)][_0xc42973(0x197)](this[_0xc42973(0x1b2)]);}[_0x8e8867(0x19e)](){const _0x26aaa9=_0x8e8867;super[_0x26aaa9(0x19e)](),this[_0x26aaa9(0x1aa)][_0x26aaa9(0x196)][_0x26aaa9(0x197)](this[_0x26aaa9(0x1b2)]),this[_0x26aaa9(0x1b1)][_0x26aaa9(0x18a)](_0x26aaa9(0x179),(_0x1b7554,_0x57e905)=>{const _0x57e8b2=_0x26aaa9;this[_0x57e8b2(0x194)]||this[_0x57e8b2(0x1ac)]||_0x1b7554[_0x57e8b2(0x175)]==this[_0x57e8b2(0x1aa)][_0x57e8b2(0x182)][_0x57e8b2(0x1a2)]&&(this[_0x57e8b2(0x18d)](),_0x57e905());}),this[_0x26aaa9(0x1aa)][_0x26aaa9(0x182)]['on'](_0x26aaa9(0x18c),()=>{const _0x2d9b4e=_0x26aaa9;this[_0x2d9b4e(0x1ac)]=''===this[_0x2d9b4e(0x1aa)][_0x2d9b4e(0x182)][_0x2d9b4e(0x1a2)][_0x2d9b4e(0x189)]?.[_0x2d9b4e(0x1af)]();});}[_0x8e8867(0x1b3)](){const _0x3fd134=_0x8e8867;super[_0x3fd134(0x1b3)](),this[_0x3fd134(0x17b)]&&this[_0x3fd134(0x17b)][_0x3fd134(0x1b3)]();}[_0x8e8867(0x18d)](){const _0x5cd299=_0x8e8867,_0x1fb9b4=this[_0x5cd299(0x1aa)][_0x5cd299(0x182)][_0x5cd299(0x1a2)][_0x5cd299(0x189)]?.[_0x5cd299(0x1af)]();if(!_0x1fb9b4)return this[_0x5cd299(0x1aa)][_0x5cd299(0x1a3)]=_0x443f40(this[_0x5cd299(0x18e)],_0x5cd299(0x1a0)),void(this[_0x5cd299(0x1aa)][_0x5cd299(0x182)][_0x5cd299(0x19a)]=!0x0);this[_0x5cd299(0x1aa)][_0x5cd299(0x182)][_0x5cd299(0x19a)]=!0x1;const _0x2c34c8=_0x1349ac(_0x1fb9b4);this[_0x5cd299(0x17d)](_0x5cd299(0x1ad),_0x2c34c8),this[_0x5cd299(0x1aa)][_0x5cd299(0x182)][_0x5cd299(0x1a9)]();}[_0x8e8867(0x186)](_0x221f2b){const _0x16480f=_0x8e8867;this[_0x16480f(0x1aa)][_0x16480f(0x182)][_0x16480f(0x18a)](_0x16480f(0x1a1),_0x221f2b);}[_0x8e8867(0x180)](){const _0x55f3e3=_0x8e8867,_0x4d73ba=new _0x4e7777(this[_0x55f3e3(0x18e)]);return _0x4d73ba[_0x55f3e3(0x18a)]({'icon':_0x19b29d,'label':_0x443f40(this[_0x55f3e3(0x18e)],_0x55f3e3(0x17c)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x55f3e3(0x187),'isEnabled':!0x1}),_0x4d73ba['on'](_0x55f3e3(0x19b),()=>{const _0x483a83=_0x55f3e3;this[_0x483a83(0x18d)]();}),_0x4d73ba;}[_0x8e8867(0x191)](_0x410dba){const _0x179867=_0x8e8867;this[_0x179867(0x194)]=_0x410dba;}[_0x8e8867(0x1a8)](){const _0x5c8965=_0x8e8867,_0x12aee3=this[_0x5c8965(0x18e)],_0x4cc246=()=>{const _0x348a46=_0x5c8965;_0x27926d[_0x348a46(0x19d)][_0x348a46(0x181)](()=>{const _0x590185=_0x348a46;if(_0x2ba13f(this[_0x590185(0x1a2)])){const _0xc49d57=new _0x563340(this[_0x590185(0x1aa)][_0x590185(0x182)][_0x590185(0x1a2)]),_0xa48613=new _0x563340(this[_0x590185(0x17e)][_0x590185(0x1a2)]),_0x37aa0f=_0xc49d57[_0x590185(0x19c)],_0x4cf52d=_0x590185(0x18f)===_0x12aee3[_0x590185(0x195)]?_0x590185(0x17a):_0x590185(0x1a7);_0xc49d57[_0x590185(0x190)]();const _0x4d6274=_0x37aa0f-_0xc49d57[_0x590185(0x19c)]+0x1;this[_0x590185(0x17e)][_0x590185(0x1a2)][_0x590185(0x178)][_0x4cf52d]=_0x590185(0x1b0)+(_0x37aa0f-_0xa48613[_0x590185(0x19c)]-_0x4d6274)+_0x590185(0x184);}});};this[_0x5c8965(0x1aa)][_0x5c8965(0x182)]['on'](_0x5c8965(0x18c),_0x4cc246),this['on'](_0x5c8965(0x19e),()=>{const _0x3602f5=_0x5c8965;_0x4cc246(),this[_0x3602f5(0x17b)]=new _0xcc85bd(this[_0x3602f5(0x1aa)][_0x3602f5(0x182)][_0x3602f5(0x1a2)],()=>{_0x4cc246();});});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xf6c3a6=_0x5469;function _0x2fd5(){const _0x226942=['9820cRqvXp','87892BSgpDa','length','1708047zZqIxp','8982450KLgQLa','38hbNcox','33763169cZcABj','filter','12PrcpMb','15130zOHPHX','items','1784seCARH','33635WqAjZT','3528lCdFUY','1268ZKmsGw'];_0x2fd5=function(){return _0x226942;};return _0x2fd5();}function _0x5469(_0x3ed7de,_0x54f073){const _0x2fd507=_0x2fd5();return _0x5469=function(_0x546980,_0x2745ac){_0x546980=_0x546980-0x1b6;let _0x18366b=_0x2fd507[_0x546980];return _0x18366b;},_0x5469(_0x3ed7de,_0x54f073);}(function(_0x30e4a0,_0xfbee1b){const _0x52ae62=_0x5469,_0x44b659=_0x30e4a0();while(!![]){try{const _0x174573=parseInt(_0x52ae62(0x1be))/0x1*(-parseInt(_0x52ae62(0x1c2))/0x2)+parseInt(_0x52ae62(0x1c0))/0x3+-parseInt(_0x52ae62(0x1bc))/0x4*(parseInt(_0x52ae62(0x1b7))/0x5)+-parseInt(_0x52ae62(0x1c1))/0x6+parseInt(_0x52ae62(0x1ba))/0x7*(parseInt(_0x52ae62(0x1b9))/0x8)+parseInt(_0x52ae62(0x1bb))/0x9*(parseInt(_0x52ae62(0x1bd))/0xa)+parseInt(_0x52ae62(0x1c3))/0xb*(parseInt(_0x52ae62(0x1b6))/0xc);if(_0x174573===_0xfbee1b)break;else _0x44b659['push'](_0x44b659['shift']());}catch(_0x3749b4){_0x44b659['push'](_0x44b659['shift']());}}}(_0x2fd5,0xec8da));import{ListView as _0xdb8c}from'ckeditor5/src/ui.js';export class AIChatPromptSuggestionsListView extends _0xdb8c{[_0xf6c3a6(0x1c4)](){const _0x26d96e=_0xf6c3a6;let _0x3b1aa7=0x0;for(const _0x277bf8 of this[_0x26d96e(0x1b8)])_0x3b1aa7+=_0x277bf8[_0x26d96e(0x1b8)][_0x26d96e(0x1bf)];return{'resultsCount':_0x3b1aa7,'totalItemsCount':_0x3b1aa7};}}
23
+ const _0x1672cc=_0xd13b;function _0xd13b(_0x5f0822,_0x3df0d7){const _0x5c0c41=_0x5c0c();return _0xd13b=function(_0xd13ba1,_0x3ff8ad){_0xd13ba1=_0xd13ba1-0x183;let _0x415c3b=_0x5c0c41[_0xd13ba1];return _0x415c3b;},_0xd13b(_0x5f0822,_0x3df0d7);}(function(_0x1c8f0f,_0x26b098){const _0x100e5e=_0xd13b,_0x40f1d4=_0x1c8f0f();while(!![]){try{const _0x2f9f0a=parseInt(_0x100e5e(0x18d))/0x1+parseInt(_0x100e5e(0x187))/0x2*(parseInt(_0x100e5e(0x183))/0x3)+-parseInt(_0x100e5e(0x186))/0x4*(parseInt(_0x100e5e(0x18c))/0x5)+-parseInt(_0x100e5e(0x184))/0x6+parseInt(_0x100e5e(0x189))/0x7+parseInt(_0x100e5e(0x18b))/0x8+-parseInt(_0x100e5e(0x18a))/0x9;if(_0x2f9f0a===_0x26b098)break;else _0x40f1d4['push'](_0x40f1d4['shift']());}catch(_0x22e2bc){_0x40f1d4['push'](_0x40f1d4['shift']());}}}(_0x5c0c,0xd2023));import{ListView as _0x40a19c}from'ckeditor5/src/ui.js';function _0x5c0c(){const _0x5b8968=['689510LZMKjb','filter','4897980rWdCZp','9190452PAYfDg','length','4ZRCDJU','2KyZHJC','items','7343084YjETRB','9230040QxijRL','516624XWoces','91315GCOkGc'];_0x5c0c=function(){return _0x5b8968;};return _0x5c0c();}export class AIChatPromptSuggestionsListView extends _0x40a19c{[_0x1672cc(0x18e)](){const _0x2ecffc=_0x1672cc;let _0x1a768d=0x0;for(const _0x3a84ca of this[_0x2ecffc(0x188)])_0x1a768d+=_0x3a84ca[_0x2ecffc(0x188)][_0x2ecffc(0x185)];return{'resultsCount':_0x1a768d,'totalItemsCount':_0x1a768d};}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2b21de=_0x6688;function _0x6688(_0x35daa4,_0x26d7e5){const _0x2ae0ed=_0x2ae0();return _0x6688=function(_0x6688e5,_0x2eedf5){_0x6688e5=_0x6688e5-0xe3;let _0x1458ed=_0x2ae0ed[_0x6688e5];return _0x1458ed;},_0x6688(_0x35daa4,_0x26d7e5);}(function(_0x1e2b5c,_0xd7e179){const _0x2dff4f=_0x6688,_0x151645=_0x1e2b5c();while(!![]){try{const _0x43e52c=parseInt(_0x2dff4f(0x102))/0x1*(parseInt(_0x2dff4f(0xfa))/0x2)+-parseInt(_0x2dff4f(0xee))/0x3*(-parseInt(_0x2dff4f(0xf1))/0x4)+parseInt(_0x2dff4f(0x101))/0x5*(-parseInt(_0x2dff4f(0xeb))/0x6)+parseInt(_0x2dff4f(0xea))/0x7+-parseInt(_0x2dff4f(0xf5))/0x8*(-parseInt(_0x2dff4f(0xed))/0x9)+parseInt(_0x2dff4f(0xf0))/0xa+-parseInt(_0x2dff4f(0xfe))/0xb;if(_0x43e52c===_0xd7e179)break;else _0x151645['push'](_0x151645['shift']());}catch(_0x25ca1b){_0x151645['push'](_0x151645['shift']());}}}(_0x2ae0,0x9df5e));import{ListView as _0x55fe19}from'ckeditor5/src/ui.js';function _0x2ae0(){const _0x4978d6=['318yzgLrH','_source','add','updateResourceState','37663769oRBNTY','addResourceToContext','clear','10vsZpwp','6751zyttcx','_handleResourceSelection','setResources','forEach','highlightText','label','resource','extendTemplate','items','\x5c$&','8931741qbQzYy','1223436lvtHMX','test','18KlJxsZ','597wsbYmq','execute','4574100relOwi','25748RNhugv','locale','filter','ck-ai-chat-resources__list','1564208btQagY','trim','fire','replace','useDefaultFiltering'];_0x2ae0=function(){return _0x4978d6;};return _0x2ae0();}import{AIChatResourceListItemView as _0x47e3dc}from'./aichatresourcelistitemview.js';const oc=_0x2b21de(0xf4);export class AIChatContextResourcesListView extends _0x55fe19{[_0x2b21de(0xfb)];constructor(_0x5353b3,_0x53d4e3){const _0x56aa84=_0x2b21de;super(_0x5353b3),this[_0x56aa84(0xfb)]=_0x53d4e3,this[_0x56aa84(0xe7)]({'attributes':{'class':[oc]}});}[_0x2b21de(0x104)](_0x31132e,_0x299505){const _0x3a98cd=_0x2b21de;this[_0x3a98cd(0xe8)][_0x3a98cd(0x100)]();let _0x48be4e=_0x31132e;if(this[_0x3a98cd(0xfb)][_0x3a98cd(0xf9)]&&_0x299505&&''!==_0x299505[_0x3a98cd(0xf6)]()){const _0x5b62dd=new RegExp(_0x299505[_0x3a98cd(0xf8)](/[.*+?^${}()|[\]\\]/g,_0x3a98cd(0xe9)),'gi');_0x48be4e=_0x31132e[_0x3a98cd(0xf3)](_0x1e875d=>_0x5b62dd[_0x3a98cd(0xec)](_0x1e875d[_0x3a98cd(0xe5)]));}for(const _0x22749f of _0x48be4e){const _0x8f0efe=new _0x47e3dc(this[_0x3a98cd(0xf2)],_0x22749f);_0x8f0efe['on'](_0x3a98cd(0xef),()=>{const _0xd8fd69=_0x3a98cd;this[_0xd8fd69(0x103)](this[_0xd8fd69(0xfb)],_0x22749f);}),this[_0x3a98cd(0xe8)][_0x3a98cd(0xfc)](_0x8f0efe);}this[_0x3a98cd(0xfb)][_0x3a98cd(0xf9)]&&this[_0x3a98cd(0xe4)](_0x299505);}[_0x2b21de(0xe4)](_0x589ffa){const _0x2a7a64=_0x2b21de;this[_0x2a7a64(0xfb)][_0x2a7a64(0xf9)]&&this[_0x2a7a64(0xe8)][_0x2a7a64(0xe3)](_0x4fb367=>{const _0x5cf1b7=_0x2a7a64;_0x4fb367[_0x5cf1b7(0xe4)](_0x589ffa);});}[_0x2b21de(0xfd)](_0x30607c,_0x1de901){const _0x44cb70=_0x2b21de;for(const _0x27189c of this[_0x44cb70(0xe8)]){const _0x3a50d3=_0x27189c;_0x3a50d3[_0x44cb70(0xe6)]['id']===_0x30607c&&_0x3a50d3[_0x44cb70(0xfd)](_0x1de901);}}[_0x2b21de(0x103)](_0x217b42,_0x44aba2){const _0x12f0dc=_0x2b21de;this[_0x12f0dc(0xf7)](_0x12f0dc(0xff),{'source':_0x217b42,'resource':_0x44aba2});}}
23
+ const _0x5108cc=_0x59cb;function _0x59cb(_0x295055,_0x573266){const _0x12733f=_0x1273();return _0x59cb=function(_0x59cb54,_0x404e90){_0x59cb54=_0x59cb54-0xd5;let _0x1546b0=_0x12733f[_0x59cb54];return _0x1546b0;},_0x59cb(_0x295055,_0x573266);}(function(_0x342a29,_0x377856){const _0x2cc776=_0x59cb,_0x1c096d=_0x342a29();while(!![]){try{const _0x16891b=parseInt(_0x2cc776(0xdb))/0x1+parseInt(_0x2cc776(0xd6))/0x2+-parseInt(_0x2cc776(0xef))/0x3*(parseInt(_0x2cc776(0xda))/0x4)+-parseInt(_0x2cc776(0xd8))/0x5+parseInt(_0x2cc776(0xdc))/0x6*(-parseInt(_0x2cc776(0xe1))/0x7)+parseInt(_0x2cc776(0xe0))/0x8+parseInt(_0x2cc776(0xf5))/0x9*(parseInt(_0x2cc776(0xe4))/0xa);if(_0x16891b===_0x377856)break;else _0x1c096d['push'](_0x1c096d['shift']());}catch(_0x18683e){_0x1c096d['push'](_0x1c096d['shift']());}}}(_0x1273,0x48dc4));import{ListView as _0x58096c}from'ckeditor5/src/ui.js';import{AIChatResourceListItemView as _0x3f809d}from'./aichatresourcelistitemview.js';const oc=_0x5108cc(0xd5);export class AIChatContextResourcesListView extends _0x58096c{[_0x5108cc(0xd7)];constructor(_0x3d6d6a,_0x4ed576){const _0x247477=_0x5108cc;super(_0x3d6d6a),this[_0x247477(0xd7)]=_0x4ed576,this[_0x247477(0xf4)]({'attributes':{'class':[oc]}});}[_0x5108cc(0xf3)](_0x21fe29,_0x545528){const _0x39982b=_0x5108cc;this[_0x39982b(0xe2)][_0x39982b(0xe3)]();let _0x122712=_0x21fe29;if(this[_0x39982b(0xd7)][_0x39982b(0xee)]&&_0x545528&&''!==_0x545528[_0x39982b(0xf0)]()){const _0x26ba70=new RegExp(_0x545528[_0x39982b(0xed)](/[.*+?^${}()|[\]\\]/g,_0x39982b(0xe9)),'gi');_0x122712=_0x21fe29[_0x39982b(0xe6)](_0xf1407a=>_0x26ba70[_0x39982b(0xdd)](_0xf1407a[_0x39982b(0xe7)]));}for(const _0x24e391 of _0x122712){const _0x137665=new _0x3f809d(this[_0x39982b(0xf1)],_0x24e391);_0x137665['on'](_0x39982b(0xd9),()=>{const _0x1163d4=_0x39982b;this[_0x1163d4(0xec)](this[_0x1163d4(0xd7)],_0x24e391);}),this[_0x39982b(0xe2)][_0x39982b(0xe5)](_0x137665);}this[_0x39982b(0xd7)][_0x39982b(0xee)]&&this[_0x39982b(0xde)](_0x545528);}[_0x5108cc(0xde)](_0x527a00){const _0x118c61=_0x5108cc;this[_0x118c61(0xd7)][_0x118c61(0xee)]&&this[_0x118c61(0xe2)][_0x118c61(0xf2)](_0x3f8b52=>{const _0x4a6bb0=_0x118c61;_0x3f8b52[_0x4a6bb0(0xde)](_0x527a00);});}[_0x5108cc(0xe8)](_0x5afeba,_0x1d99bd){const _0x5b2636=_0x5108cc;for(const _0x344f8e of this[_0x5b2636(0xe2)]){const _0x5e68bc=_0x344f8e;_0x5e68bc[_0x5b2636(0xdf)]['id']===_0x5afeba&&_0x5e68bc[_0x5b2636(0xe8)](_0x1d99bd);}}[_0x5108cc(0xec)](_0x39b5c5,_0x9c96fa){const _0x30752c=_0x5108cc;this[_0x30752c(0xea)](_0x30752c(0xeb),{'source':_0x39b5c5,'resource':_0x9c96fa});}}function _0x1273(){const _0x68805f=['135hAmFmL','ck-ai-chat-resources__list','602692PPGKbL','_source','2744820wgHpmz','execute','8nBNChS','486367vgdblX','41988mrHsoj','test','highlightText','resource','700568ESGzvQ','483hIjWIE','items','clear','327160UxXZWP','add','filter','label','updateResourceState','\x5c$&','fire','addResourceToContext','_handleResourceSelection','replace','useDefaultFiltering','53643IqJGtJ','trim','locale','forEach','setResources','extendTemplate'];_0x1273=function(){return _0x68805f;};return _0x1273();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x322efa=_0x47b5;function _0x2f25(){const _0x4d2225=['2172525ltMeNF','ck-hidden','1959627YQHDon','setResources','delegate','fire','highlightText','_resourcesListView','search','_latestLoadResourcesUid','4152UwaUIJ','isLoading','set','1142240RUCcAb','locale','extendTemplate','_searchView','useDefaultFiltering','_source','_createSkeletonView','_createSearchSection','710412PCeMOn','addResourceToContext','4337739sOVkKR','children','ck\x20ck-search','_searchInputVisibleFrom','searchInputVisibleFrom','add','loadResources','render','length','ck-ai-chat-resources','896NYAioE','div','updateResourceState','2pivxhT','setTemplate','source','_createSearchView','loadSourceResources','has','1675720FxUdgk','aiChatResources','getQuery','_searchSection','bindTemplate','_createResourcesListView','_skeletonLoader'];_0x2f25=function(){return _0x4d2225;};return _0x2f25();}(function(_0x350337,_0x53e4e1){const _0x58cc12=_0x47b5,_0x45312e=_0x350337();while(!![]){try{const _0x4e7164=parseInt(_0x58cc12(0x17e))/0x1*(parseInt(_0x58cc12(0x16f))/0x2)+-parseInt(_0x58cc12(0x15c))/0x3+parseInt(_0x58cc12(0x184))/0x4+-parseInt(_0x58cc12(0x18b))/0x5+parseInt(_0x58cc12(0x164))/0x6*(-parseInt(_0x58cc12(0x17b))/0x7)+parseInt(_0x58cc12(0x167))/0x8+parseInt(_0x58cc12(0x171))/0x9;if(_0x4e7164===_0x53e4e1)break;else _0x45312e['push'](_0x45312e['shift']());}catch(_0x3cf58d){_0x45312e['push'](_0x45312e['shift']());}}}(_0x2f25,0x8d10b));import{View as _0x37367f,ViewCollection as _0x4481a6}from'ckeditor5/src/ui.js';import{uid as _0x55a025}from'ckeditor5/src/utils.js';import{AIChatContextResourcesListView as _0x482635}from'./aichatcontextresourceslistview.js';function _0x47b5(_0x5e9e3b,_0x5a807f){const _0x2f2583=_0x2f25();return _0x47b5=function(_0x47b5be,_0x47bb44){_0x47b5be=_0x47b5be-0x15b;let _0x2dfe06=_0x2f2583[_0x47b5be];return _0x2dfe06;},_0x47b5(_0x5e9e3b,_0x5a807f);}import{AIChatContextResourcesSearchInputView as _0x24c4f2}from'./aichatresourcessearchinputview.js';import{AISkeletonView as _0x3616e4,SKELETON_DEFINITIONS as _0x5808a4}from'../../../../aicore/ui/aiskeleton.js';export class AIChatContextResourcesView extends _0x37367f{[_0x322efa(0x16a)];[_0x322efa(0x187)];[_0x322efa(0x174)];[_0x322efa(0x161)];[_0x322efa(0x18a)];[_0x322efa(0x16c)];[_0x322efa(0x172)];[_0x322efa(0x163)]=null;constructor(_0x503d72,_0xa23514){const _0x2efbb3=_0x322efa;super(_0x503d72),this[_0x2efbb3(0x16c)]=_0xa23514[_0x2efbb3(0x180)],this[_0x2efbb3(0x174)]=_0xa23514[_0x2efbb3(0x175)]??0x7,this[_0x2efbb3(0x166)](_0x2efbb3(0x165),!0x0),this[_0x2efbb3(0x16a)]=this[_0x2efbb3(0x181)](),this[_0x2efbb3(0x187)]=this[_0x2efbb3(0x16e)](),this[_0x2efbb3(0x161)]=this[_0x2efbb3(0x189)](),this[_0x2efbb3(0x18a)]=this[_0x2efbb3(0x16d)](),this[_0x2efbb3(0x172)]=new _0x4481a6([this[_0x2efbb3(0x18a)],this[_0x2efbb3(0x161)]]),this[_0x2efbb3(0x17f)]({'tag':_0x2efbb3(0x17c),'attributes':{'class':_0x2efbb3(0x17a)},'children':this[_0x2efbb3(0x172)]});}[_0x322efa(0x181)](){const _0x4f36de=_0x322efa;return new _0x24c4f2(this[_0x4f36de(0x168)]);}[_0x322efa(0x16e)](){const _0x202df0=_0x322efa,_0x2071a2=new _0x37367f(this[_0x202df0(0x168)]);return _0x2071a2[_0x202df0(0x17f)]({'tag':_0x202df0(0x17c),'attributes':{'class':_0x202df0(0x173)},'children':[this[_0x202df0(0x16a)]]}),this[_0x202df0(0x16a)]['on'](_0x202df0(0x162),(_0x522d90,_0x48f8d0)=>{const _0x699b73=_0x202df0;this[_0x699b73(0x177)](_0x48f8d0),this[_0x699b73(0x16c)][_0x699b73(0x16b)]&&this[_0x699b73(0x161)][_0x699b73(0x160)](_0x48f8d0);}),_0x2071a2;}[_0x322efa(0x189)](){const _0x265fdf=_0x322efa,_0x2ca0f4=new _0x482635(this[_0x265fdf(0x168)],this[_0x265fdf(0x16c)]);return _0x2ca0f4[_0x265fdf(0x15e)](_0x265fdf(0x170))['to'](this),_0x2ca0f4[_0x265fdf(0x169)]({'attributes':{'class':this[_0x265fdf(0x188)]['if'](_0x265fdf(0x165),_0x265fdf(0x15b))}}),_0x2ca0f4;}[_0x322efa(0x16d)](){const _0x3b656e=_0x322efa,_0x3dc979=new _0x3616e4(this[_0x3b656e(0x168)],_0x5808a4[_0x3b656e(0x185)]);return _0x3dc979[_0x3b656e(0x169)]({'attributes':{'class':[this[_0x3b656e(0x188)]['if'](_0x3b656e(0x165),_0x3b656e(0x15b),_0x4dfb5a=>!_0x4dfb5a)]}}),_0x3dc979;}[_0x322efa(0x178)](){const _0xbc9a5f=_0x322efa;super[_0xbc9a5f(0x178)](),this[_0xbc9a5f(0x177)]('');}[_0x322efa(0x177)](_0x46ed5f){const _0x328d91=_0x322efa,_0xa43789=_0x55a025();this[_0x328d91(0x163)]=_0xa43789,this[_0x328d91(0x15f)](_0x328d91(0x182),{'sourceId':this[_0x328d91(0x16c)]['id'],'query':_0x46ed5f,'uid':_0xa43789}),this[_0x328d91(0x165)]=!0x0;}[_0x322efa(0x15d)](_0x45d770,_0x92ed2){const _0x3c564c=_0x322efa;if(_0x92ed2&&_0x92ed2!==this[_0x3c564c(0x163)])return;const _0x3097f2=this[_0x3c564c(0x16c)][_0x3c564c(0x16b)]?this[_0x3c564c(0x16a)][_0x3c564c(0x186)]():'';this[_0x3c564c(0x161)][_0x3c564c(0x15d)](_0x45d770,_0x3097f2),_0x45d770[_0x3c564c(0x179)]>=this[_0x3c564c(0x174)]&&!this[_0x3c564c(0x172)][_0x3c564c(0x183)](this[_0x3c564c(0x187)])&&this[_0x3c564c(0x172)][_0x3c564c(0x176)](this[_0x3c564c(0x187)],0x0),requestAnimationFrame(()=>{const _0x3f8946=_0x3c564c;this[_0x3f8946(0x165)]=!0x1;});}[_0x322efa(0x17d)](_0x762693,_0x85ec8d){const _0x20b297=_0x322efa;this[_0x20b297(0x161)][_0x20b297(0x17d)](_0x762693,_0x85ec8d);}}
23
+ const _0x53cfe9=_0x51f3;(function(_0x3e7646,_0x47b5dd){const _0x4bb16a=_0x51f3,_0x5613c4=_0x3e7646();while(!![]){try{const _0x425325=-parseInt(_0x4bb16a(0x19a))/0x1+parseInt(_0x4bb16a(0x171))/0x2*(parseInt(_0x4bb16a(0x172))/0x3)+parseInt(_0x4bb16a(0x192))/0x4*(parseInt(_0x4bb16a(0x183))/0x5)+-parseInt(_0x4bb16a(0x18b))/0x6*(-parseInt(_0x4bb16a(0x174))/0x7)+-parseInt(_0x4bb16a(0x189))/0x8+parseInt(_0x4bb16a(0x18e))/0x9+parseInt(_0x4bb16a(0x191))/0xa*(parseInt(_0x4bb16a(0x173))/0xb);if(_0x425325===_0x47b5dd)break;else _0x5613c4['push'](_0x5613c4['shift']());}catch(_0x4ee029){_0x5613c4['push'](_0x5613c4['shift']());}}}(_0x3e8d,0x61b1e));function _0x51f3(_0x342e1a,_0x10f9e6){const _0x3e8d31=_0x3e8d();return _0x51f3=function(_0x51f369,_0x47a2a1){_0x51f369=_0x51f369-0x169;let _0x5d1b1d=_0x3e8d31[_0x51f369];return _0x5d1b1d;},_0x51f3(_0x342e1a,_0x10f9e6);}function _0x3e8d(){const _0x1b9f31=['aiChatResources','useDefaultFiltering','650336xLphjP','_searchInputVisibleFrom','setTemplate','source','fire','_resourcesListView','div','add','loadResources','has','4ESqhVu','671856hbuEfN','3267869FBhrrY','3183313XHZvQG','delegate','_source','length','_latestLoadResourcesUid','ck-hidden','_createSearchSection','isLoading','children','_createSearchView','highlightText','render','getQuery','addResourceToContext','set','20RrOHkA','ck-ai-chat-resources','extendTemplate','ck\x20ck-search','searchInputVisibleFrom','locale','5900152PxbuxD','_searchSection','6MSHcjn','updateResourceState','loadSourceResources','3782259XGXECi','bindTemplate','_createResourcesListView','10TLdRDG','168020ODeTKt','search','_createSkeletonView','setResources','_skeletonLoader','_searchView'];_0x3e8d=function(){return _0x1b9f31;};return _0x3e8d();}import{View as _0x4dda43,ViewCollection as _0x20d2e5}from'ckeditor5/src/ui.js';import{uid as _0x313b0b}from'ckeditor5/src/utils.js';import{AIChatContextResourcesListView as _0x34c3b0}from'./aichatcontextresourceslistview.js';import{AIChatContextResourcesSearchInputView as _0x24c0e4}from'./aichatresourcessearchinputview.js';import{AISkeletonView as _0x36616b,SKELETON_DEFINITIONS as _0x547e30}from'../../../../aicore/ui/aiskeleton.js';export class AIChatContextResourcesView extends _0x4dda43{[_0x53cfe9(0x197)];[_0x53cfe9(0x18a)];[_0x53cfe9(0x19b)];[_0x53cfe9(0x16c)];[_0x53cfe9(0x196)];[_0x53cfe9(0x176)];[_0x53cfe9(0x17c)];[_0x53cfe9(0x178)]=null;constructor(_0x3edecb,_0xbafbe8){const _0x2f3347=_0x53cfe9;super(_0x3edecb),this[_0x2f3347(0x176)]=_0xbafbe8[_0x2f3347(0x16a)],this[_0x2f3347(0x19b)]=_0xbafbe8[_0x2f3347(0x187)]??0x7,this[_0x2f3347(0x182)](_0x2f3347(0x17b),!0x0),this[_0x2f3347(0x197)]=this[_0x2f3347(0x17d)](),this[_0x2f3347(0x18a)]=this[_0x2f3347(0x17a)](),this[_0x2f3347(0x16c)]=this[_0x2f3347(0x190)](),this[_0x2f3347(0x196)]=this[_0x2f3347(0x194)](),this[_0x2f3347(0x17c)]=new _0x20d2e5([this[_0x2f3347(0x196)],this[_0x2f3347(0x16c)]]),this[_0x2f3347(0x169)]({'tag':_0x2f3347(0x16d),'attributes':{'class':_0x2f3347(0x184)},'children':this[_0x2f3347(0x17c)]});}[_0x53cfe9(0x17d)](){const _0x6ed254=_0x53cfe9;return new _0x24c0e4(this[_0x6ed254(0x188)]);}[_0x53cfe9(0x17a)](){const _0xcafa5f=_0x53cfe9,_0x5ec893=new _0x4dda43(this[_0xcafa5f(0x188)]);return _0x5ec893[_0xcafa5f(0x169)]({'tag':_0xcafa5f(0x16d),'attributes':{'class':_0xcafa5f(0x186)},'children':[this[_0xcafa5f(0x197)]]}),this[_0xcafa5f(0x197)]['on'](_0xcafa5f(0x193),(_0x5b1c7f,_0x21159e)=>{const _0x5b8385=_0xcafa5f;this[_0x5b8385(0x16f)](_0x21159e),this[_0x5b8385(0x176)][_0x5b8385(0x199)]&&this[_0x5b8385(0x16c)][_0x5b8385(0x17e)](_0x21159e);}),_0x5ec893;}[_0x53cfe9(0x190)](){const _0x5ea7a3=_0x53cfe9,_0x4c9ab6=new _0x34c3b0(this[_0x5ea7a3(0x188)],this[_0x5ea7a3(0x176)]);return _0x4c9ab6[_0x5ea7a3(0x175)](_0x5ea7a3(0x181))['to'](this),_0x4c9ab6[_0x5ea7a3(0x185)]({'attributes':{'class':this[_0x5ea7a3(0x18f)]['if'](_0x5ea7a3(0x17b),_0x5ea7a3(0x179))}}),_0x4c9ab6;}[_0x53cfe9(0x194)](){const _0x3ecfcc=_0x53cfe9,_0x3fb4eb=new _0x36616b(this[_0x3ecfcc(0x188)],_0x547e30[_0x3ecfcc(0x198)]);return _0x3fb4eb[_0x3ecfcc(0x185)]({'attributes':{'class':[this[_0x3ecfcc(0x18f)]['if'](_0x3ecfcc(0x17b),_0x3ecfcc(0x179),_0x5b22c8=>!_0x5b22c8)]}}),_0x3fb4eb;}[_0x53cfe9(0x17f)](){const _0x4179bd=_0x53cfe9;super[_0x4179bd(0x17f)](),this[_0x4179bd(0x16f)]('');}[_0x53cfe9(0x16f)](_0x2350a7){const _0x2a6be9=_0x53cfe9,_0x352592=_0x313b0b();this[_0x2a6be9(0x178)]=_0x352592,this[_0x2a6be9(0x16b)](_0x2a6be9(0x18d),{'sourceId':this[_0x2a6be9(0x176)]['id'],'query':_0x2350a7,'uid':_0x352592}),this[_0x2a6be9(0x17b)]=!0x0;}[_0x53cfe9(0x195)](_0x1f5f71,_0x382819){const _0x445539=_0x53cfe9;if(_0x382819&&_0x382819!==this[_0x445539(0x178)])return;const _0x14b0e6=this[_0x445539(0x176)][_0x445539(0x199)]?this[_0x445539(0x197)][_0x445539(0x180)]():'';this[_0x445539(0x16c)][_0x445539(0x195)](_0x1f5f71,_0x14b0e6),_0x1f5f71[_0x445539(0x177)]>=this[_0x445539(0x19b)]&&!this[_0x445539(0x17c)][_0x445539(0x170)](this[_0x445539(0x18a)])&&this[_0x445539(0x17c)][_0x445539(0x16e)](this[_0x445539(0x18a)],0x0),requestAnimationFrame(()=>{const _0x26c4a9=_0x445539;this[_0x26c4a9(0x17b)]=!0x1;});}[_0x53cfe9(0x18c)](_0x1eb269,_0x52cd2e){const _0x2d0098=_0x53cfe9;this[_0x2d0098(0x16c)][_0x2d0098(0x18c)](_0x1eb269,_0x52cd2e);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x31c3(_0x405995,_0x44659d){const _0x3c4e44=_0x3c4e();return _0x31c3=function(_0x31c3cc,_0x58703f){_0x31c3cc=_0x31c3cc-0x1a8;let _0x520f88=_0x3c4e44[_0x31c3cc];return _0x520f88;},_0x31c3(_0x405995,_0x44659d);}const _0x3dc1b6=_0x31c3;(function(_0x12936e,_0x45d1a6){const _0x196906=_0x31c3,_0x173351=_0x12936e();while(!![]){try{const _0x3b9800=-parseInt(_0x196906(0x1c0))/0x1+-parseInt(_0x196906(0x1b1))/0x2+parseInt(_0x196906(0x1c1))/0x3*(-parseInt(_0x196906(0x1af))/0x4)+-parseInt(_0x196906(0x1ba))/0x5+-parseInt(_0x196906(0x1be))/0x6+-parseInt(_0x196906(0x1cd))/0x7*(-parseInt(_0x196906(0x1ab))/0x8)+parseInt(_0x196906(0x1b7))/0x9;if(_0x3b9800===_0x45d1a6)break;else _0x173351['push'](_0x173351['shift']());}catch(_0x102db7){_0x173351['push'](_0x173351['shift']());}}}(_0x3c4e,0x752d0));function _0x3c4e(){const _0x58788a=['294292AHoKuE','div','getResourceIcon','trim','ck-ai-chat-resources__item-title','ck-hidden','16008399RZAHyK','updateResourceState','DOCUMENT','1112445NVnesZ','_titleView','resource','span','3180330WAlUII','ck-ai-chat-resources__item__icon','549243aUGmfu','10788bPsUjZ','content','_createIconView','set','ck-ai-chat-resources__item','highlightText','setTemplate','isVisible','type','FILE','URL','_createTitleView','14neFPJz','ck-ai-chat-resources__item--in-context','label','text','isInContext','_updateIcon','execute','_setupTemplate','render','2600072GhLRyj','bindTemplate','TEXT','extendTemplate','556UenBzV','_iconView'];_0x3c4e=function(){return _0x58788a;};return _0x3c4e();}import{HighlightedTextView as _0x485a6e,IconView as _0x27effe,ListItemView as _0x4e1133}from'ckeditor5/src/ui.js';import{escapeRegExp as _0x214334}from'es-toolkit/compat';import{AIContextItemType as _0x153725}from'../../../../aicore/model/aicontext.js';import{IconFileUpload as _0x252367,IconCheck as _0x2dd5de,IconDocument as _0x221cd7,IconDocumentOutline as _0x103485,IconLink as _0x4789f5}from'@ckeditor/ckeditor5-icons';const zr=_0x3dc1b6(0x1c5),Gr=_0x3dc1b6(0x1ce),Hr=_0x3dc1b6(0x1b5),Jr=_0x3dc1b6(0x1bf);export class AIChatResourceListItemView extends _0x4e1133{[_0x3dc1b6(0x1bc)];[_0x3dc1b6(0x1bb)];[_0x3dc1b6(0x1b0)];constructor(_0x57474e,_0x350714){const _0x5f005a=_0x3dc1b6;super(_0x57474e),this[_0x5f005a(0x1bc)]=_0x350714,this[_0x5f005a(0x1c4)](_0x5f005a(0x1d1),!!_0x350714[_0x5f005a(0x1d1)]),this[_0x5f005a(0x1bb)]=this[_0x5f005a(0x1cc)](),this[_0x5f005a(0x1b0)]=this[_0x5f005a(0x1c3)](),this[_0x5f005a(0x1a9)]();}[_0x3dc1b6(0x1aa)](){const _0x153e80=_0x3dc1b6;super[_0x153e80(0x1aa)]();}[_0x3dc1b6(0x1b3)](_0xb38c89){const _0x2770bc=_0x3dc1b6;if(_0xb38c89[_0x2770bc(0x1d1)])return _0x2dd5de;switch(_0xb38c89[_0x2770bc(0x1c9)]){case _0x153725[_0x2770bc(0x1b9)]:return _0x221cd7;case _0x153725[_0x2770bc(0x1cb)]:return _0x4789f5;case _0x153725[_0x2770bc(0x1ca)]:case _0x153725[_0x2770bc(0x1ad)]:return _0x252367;default:return _0x103485;}}[_0x3dc1b6(0x1c6)](_0x2495ee){const _0x1e71b2=_0x3dc1b6;if(!_0x2495ee||''===_0x2495ee[_0x1e71b2(0x1b4)]())return void this[_0x1e71b2(0x1bb)][_0x1e71b2(0x1c6)](null);const _0x24cd58=new RegExp(_0x214334(_0x2495ee),'gi');this[_0x1e71b2(0x1bb)][_0x1e71b2(0x1c6)](_0x24cd58);}[_0x3dc1b6(0x1b8)](_0x1a80f0){const _0x4768ec=_0x3dc1b6;this[_0x4768ec(0x1bc)][_0x4768ec(0x1d1)]=_0x1a80f0,this[_0x4768ec(0x1d1)]=_0x1a80f0,this[_0x4768ec(0x1d2)]();}[_0x3dc1b6(0x1cc)](){const _0x14347f=_0x3dc1b6,_0x43b379=new _0x485a6e();return _0x43b379[_0x14347f(0x1d0)]=this[_0x14347f(0x1bc)][_0x14347f(0x1cf)],_0x43b379[_0x14347f(0x1ae)]({'tag':_0x14347f(0x1bd),'attributes':{'class':[Hr]}}),_0x43b379;}[_0x3dc1b6(0x1c3)](){const _0x6bba04=_0x3dc1b6,_0xc30460=new _0x27effe();return _0xc30460[_0x6bba04(0x1c2)]=this[_0x6bba04(0x1b3)](this[_0x6bba04(0x1bc)]),_0xc30460;}[_0x3dc1b6(0x1a9)](){const _0x7fb2bd=_0x3dc1b6,_0x241192=this[_0x7fb2bd(0x1ac)];this[_0x7fb2bd(0x1c7)]({'tag':_0x7fb2bd(0x1b2),'attributes':{'class':[zr,_0x241192['if'](_0x7fb2bd(0x1c8),_0x7fb2bd(0x1b6),_0x50142c=>!_0x50142c),_0x241192['if'](_0x7fb2bd(0x1d1),Gr)]},'children':[{'tag':_0x7fb2bd(0x1b2),'attributes':{'class':[Jr]},'children':[this[_0x7fb2bd(0x1b0)]]},this[_0x7fb2bd(0x1bb)]],'on':{'click':_0x241192['to'](_0x7fb2bd(0x1a8))}});}[_0x3dc1b6(0x1d2)](){const _0x288cbc=_0x3dc1b6;this[_0x288cbc(0x1b0)][_0x288cbc(0x1c2)]=this[_0x288cbc(0x1b3)](this[_0x288cbc(0x1bc)]);}}
23
+ const _0x211927=_0x21d6;function _0x21d6(_0x415f20,_0x400fa3){const _0x176fa=_0x176f();return _0x21d6=function(_0x21d6e8,_0x5e1ebf){_0x21d6e8=_0x21d6e8-0x78;let _0x34b5ef=_0x176fa[_0x21d6e8];return _0x34b5ef;},_0x21d6(_0x415f20,_0x400fa3);}(function(_0x5cda4f,_0x723149){const _0x4f53c6=_0x21d6,_0x5c81e4=_0x5cda4f();while(!![]){try{const _0x4c89b3=-parseInt(_0x4f53c6(0x78))/0x1+parseInt(_0x4f53c6(0xa3))/0x2+-parseInt(_0x4f53c6(0x9f))/0x3*(parseInt(_0x4f53c6(0x7c))/0x4)+-parseInt(_0x4f53c6(0x7a))/0x5+-parseInt(_0x4f53c6(0x85))/0x6*(parseInt(_0x4f53c6(0x9c))/0x7)+-parseInt(_0x4f53c6(0x8a))/0x8*(parseInt(_0x4f53c6(0x94))/0x9)+-parseInt(_0x4f53c6(0x79))/0xa*(-parseInt(_0x4f53c6(0x9b))/0xb);if(_0x4c89b3===_0x723149)break;else _0x5c81e4['push'](_0x5c81e4['shift']());}catch(_0x7bb737){_0x5c81e4['push'](_0x5c81e4['shift']());}}}(_0x176f,0x428c2));import{HighlightedTextView as _0x19ba3a,IconView as _0x3b06eb,ListItemView as _0x475400}from'ckeditor5/src/ui.js';import{escapeRegExp as _0x3f9d15}from'es-toolkit/compat';import{AIContextItemType as _0xd446c4}from'../../../../aicore/model/aicontext.js';import{IconFileUpload as _0x1105d2,IconCheck as _0x2f206c,IconDocument as _0x5b636f,IconDocumentOutline as _0x3d1106,IconLink as _0x113820}from'@ckeditor/ckeditor5-icons';function _0x176f(){const _0x2ec515=['ck-ai-chat-resources__item-title','1903HmUxxq','10661tAnMVA','DOCUMENT','isVisible','12wnoMLJ','resource','label','_setupTemplate','94568XhJDdQ','execute','492635bRtPPW','112870FFNabT','2006500uIpdgK','div','370192fOpySY','_createIconView','_iconView','ck-ai-chat-resources__item--in-context','highlightText','render','TEXT','bindTemplate','span','870ZbIggS','text','content','isInContext','ck-ai-chat-resources__item__icon','40AGgBMB','getResourceIcon','ck-ai-chat-resources__item','URL','_updateIcon','_titleView','_createTitleView','extendTemplate','type','trim','436311rmbows','set','FILE','updateResourceState','ck-hidden','setTemplate'];_0x176f=function(){return _0x2ec515;};return _0x176f();}const zr=_0x211927(0x8c),Gr=_0x211927(0x7f),Hr=_0x211927(0x9a),Jr=_0x211927(0x89);export class AIChatResourceListItemView extends _0x475400{[_0x211927(0xa0)];[_0x211927(0x8f)];[_0x211927(0x7e)];constructor(_0x1dfd8a,_0x3eda91){const _0x2bf1bb=_0x211927;super(_0x1dfd8a),this[_0x2bf1bb(0xa0)]=_0x3eda91,this[_0x2bf1bb(0x95)](_0x2bf1bb(0x88),!!_0x3eda91[_0x2bf1bb(0x88)]),this[_0x2bf1bb(0x8f)]=this[_0x2bf1bb(0x90)](),this[_0x2bf1bb(0x7e)]=this[_0x2bf1bb(0x7d)](),this[_0x2bf1bb(0xa2)]();}[_0x211927(0x81)](){const _0x58b669=_0x211927;super[_0x58b669(0x81)]();}[_0x211927(0x8b)](_0x5f16fe){const _0xf797bc=_0x211927;if(_0x5f16fe[_0xf797bc(0x88)])return _0x2f206c;switch(_0x5f16fe[_0xf797bc(0x92)]){case _0xd446c4[_0xf797bc(0x9d)]:return _0x5b636f;case _0xd446c4[_0xf797bc(0x8d)]:return _0x113820;case _0xd446c4[_0xf797bc(0x96)]:case _0xd446c4[_0xf797bc(0x82)]:return _0x1105d2;default:return _0x3d1106;}}[_0x211927(0x80)](_0x276bc5){const _0x41961e=_0x211927;if(!_0x276bc5||''===_0x276bc5[_0x41961e(0x93)]())return void this[_0x41961e(0x8f)][_0x41961e(0x80)](null);const _0x4b4422=new RegExp(_0x3f9d15(_0x276bc5),'gi');this[_0x41961e(0x8f)][_0x41961e(0x80)](_0x4b4422);}[_0x211927(0x97)](_0x3c7213){const _0x290e84=_0x211927;this[_0x290e84(0xa0)][_0x290e84(0x88)]=_0x3c7213,this[_0x290e84(0x88)]=_0x3c7213,this[_0x290e84(0x8e)]();}[_0x211927(0x90)](){const _0x287cd5=_0x211927,_0x19e667=new _0x19ba3a();return _0x19e667[_0x287cd5(0x86)]=this[_0x287cd5(0xa0)][_0x287cd5(0xa1)],_0x19e667[_0x287cd5(0x91)]({'tag':_0x287cd5(0x84),'attributes':{'class':[Hr]}}),_0x19e667;}[_0x211927(0x7d)](){const _0xa2bd64=_0x211927,_0x2e37fb=new _0x3b06eb();return _0x2e37fb[_0xa2bd64(0x87)]=this[_0xa2bd64(0x8b)](this[_0xa2bd64(0xa0)]),_0x2e37fb;}[_0x211927(0xa2)](){const _0x4a6b45=_0x211927,_0x32458f=this[_0x4a6b45(0x83)];this[_0x4a6b45(0x99)]({'tag':_0x4a6b45(0x7b),'attributes':{'class':[zr,_0x32458f['if'](_0x4a6b45(0x9e),_0x4a6b45(0x98),_0x19c99f=>!_0x19c99f),_0x32458f['if'](_0x4a6b45(0x88),Gr)]},'children':[{'tag':_0x4a6b45(0x7b),'attributes':{'class':[Jr]},'children':[this[_0x4a6b45(0x7e)]]},this[_0x4a6b45(0x8f)]],'on':{'click':_0x32458f['to'](_0x4a6b45(0xa4))}});}[_0x211927(0x8e)](){const _0x34b0fa=_0x211927;this[_0x34b0fa(0x7e)][_0x34b0fa(0x87)]=this[_0x34b0fa(0x8b)](this[_0x34b0fa(0xa0)]);}}