@ckeditor/ckeditor5-ai 47.4.0-alpha.4 → 47.4.0-alpha.5

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
- function _0x4d18(_0x147616,_0x278eb8){const _0x4d6bc4=_0x4d6b();return _0x4d18=function(_0x4d184b,_0x3b5dc6){_0x4d184b=_0x4d184b-0x140;let _0x10c73a=_0x4d6bc4[_0x4d184b];return _0x10c73a;},_0x4d18(_0x147616,_0x278eb8);}const _0x519279=_0x4d18;(function(_0x3c37f8,_0x3b63fb){const _0xfed1d=_0x4d18,_0x463f40=_0x3c37f8();while(!![]){try{const _0x176147=parseInt(_0xfed1d(0x144))/0x1+-parseInt(_0xfed1d(0x159))/0x2+-parseInt(_0xfed1d(0x175))/0x3+-parseInt(_0xfed1d(0x155))/0x4*(-parseInt(_0xfed1d(0x15b))/0x5)+-parseInt(_0xfed1d(0x179))/0x6+-parseInt(_0xfed1d(0x150))/0x7*(parseInt(_0xfed1d(0x16d))/0x8)+parseInt(_0xfed1d(0x154))/0x9;if(_0x176147===_0x3b63fb)break;else _0x463f40['push'](_0x463f40['shift']());}catch(_0x241684){_0x463f40['push'](_0x463f40['shift']());}}}(_0x4d6b,0xb75c1));import{ButtonView as _0x70aff3,IconView as _0x23b33a}from'ckeditor5/src/ui.js';import{IconClose as _0x2b92b1,IconDocument as _0x38203e,IconFileUpload as _0x4bc4ab,IconLink as _0x25c0a5,IconSelection as _0x1d5304}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x2b357f}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x1034b5}from'../../../aicore/ui/aispinner.js';function _0x4d6b(){const _0x1d9317=['disableAnimationOnEnter','remove','_createTemplateAttributes','tooltip','889924hEIbhG','_createLabelElement','addEventListener','div','25064037SOjUYx','4ZZzJDf','uiId','bindTemplate','isLoading','2360150ASqUsz','itemType','781710kksItj','content','locale','removeEventListener','_initializeProperties','animationend','setTemplate','add','type','bind','ck-ai-chat-context-chip_document','ck-ai-chat-context-chip__type-icon','_createTemplateChildren','classList','span','set','_createRemoveButton','readonly','24RgWOLD','execute','ck-ai-chat-context-controls__chip-tooltip','isVisible','document','small','ck-ai-chat-context-chip','label','2353431sywjtt','removeContextItemChip','_createLoaderIcon','_setupTemplate','3874224zbbvAY','slice','webkitAnimationEnd','_setupRemoveButtonEvent','ck-ai-chat-context-chip_wide','render','lastIndexOf','extendTemplate','ck-hidden','element','_handleAnimationEndOnce','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','801458BsmKWY','length','_isAnimationOnEnterEnabled','ck-ai-chat-context-chip_new-chip','selection','_createIconView','fire','ck-ai-chat-context-chip__label'];_0x4d6b=function(){return _0x1d9317;};return _0x4d6b();}const bn={'file':_0x4bc4ab,'document':_0x38203e,'web-resource':_0x25c0a5,'text':_0x4bc4ab,'selection':_0x1d5304},Tn=_0x519279(0x173),En=_0x519279(0x17d),fn=_0x519279(0x165),An=_0x519279(0x14b),Cn=_0x519279(0x166),In=_0x519279(0x16f),On='n';export class AIChatContextItemButtonView extends _0x70aff3{constructor(_0x5c7ba1,_0x11bb89,_0x3fc0d4,_0x5ab330,_0x25ff12=!0x1){const _0x53eef9=_0x519279;super(_0x5c7ba1),this[_0x53eef9(0x146)]=_0x5ab330,this[_0x53eef9(0x15f)](_0x11bb89,_0x3fc0d4,_0x25ff12),this[_0x53eef9(0x178)]();}[_0x519279(0x17e)](){const _0x12b9c8=_0x519279;super[_0x12b9c8(0x17e)](),this[_0x12b9c8(0x146)]&&this[_0x12b9c8(0x141)]&&(this[_0x12b9c8(0x141)][_0x12b9c8(0x168)][_0x12b9c8(0x162)](_0x12b9c8(0x147)),this[_0x12b9c8(0x142)](this[_0x12b9c8(0x141)],()=>{const _0x533650=_0x12b9c8;this[_0x533650(0x141)]&&this[_0x533650(0x141)][_0x533650(0x168)][_0x533650(0x14d)](_0x533650(0x147));}));}[_0x519279(0x14c)](){const _0x22b4b1=_0x519279;this[_0x22b4b1(0x146)]=!0x1,this[_0x22b4b1(0x141)]&&this[_0x22b4b1(0x141)][_0x22b4b1(0x168)][_0x22b4b1(0x14d)](_0x22b4b1(0x147));}[_0x519279(0x15f)](_0x3b52ca,_0x2725ae,_0xb0899d){const _0x13115b=_0x519279;this[_0x13115b(0x16a)](_0x13115b(0x174),_0x3b52ca[_0x13115b(0x174)]),this[_0x13115b(0x16a)](_0x13115b(0x14f),!0x0),this[_0x13115b(0x16a)](_0x13115b(0x15a),_0x3b52ca[_0x13115b(0x163)]),this[_0x13115b(0x16a)]('id',_0x3b52ca[_0x13115b(0x156)]),this[_0x13115b(0x16a)](_0x13115b(0x16c),_0x2725ae),this[_0x13115b(0x16a)](_0x13115b(0x158),_0xb0899d);}[_0x519279(0x178)](){const _0x5af127=_0x519279,_0x5d7bcc=this[_0x5af127(0x149)](),_0x2259c5=this[_0x5af127(0x16b)](),_0x5a2b53=this[_0x5af127(0x157)];this[_0x5af127(0x161)]({'tag':_0x5af127(0x153),'attributes':this[_0x5af127(0x14e)](_0x5a2b53),'children':this[_0x5af127(0x167)](_0x5d7bcc,_0x2259c5,_0x5a2b53)});}[_0x519279(0x14e)](_0x59ee1b){const _0x198e93=_0x519279;return{'class':[Tn,_0x59ee1b['if'](_0x198e93(0x15a),fn,_0x26caee=>_0x198e93(0x171)==_0x26caee),_0x59ee1b['if'](_0x198e93(0x15a),En,_0x38870e=>_0x198e93(0x148)==_0x38870e)],'data-cke-tooltip-text':_0x59ee1b['to'](_0x198e93(0x174),gn),'data-cke-tooltip-position':On,'data-cke-tooltip-class':In};}[_0x519279(0x167)](_0x3f3b0d,_0x3b5a49,_0x2eb351){const _0x3b1b74=_0x519279,_0x2bb2ef=this[_0x3b1b74(0x151)](_0x2eb351),_0x430a85=this[_0x3b1b74(0x177)]();return this[_0x3b1b74(0x16c)]?[_0x3f3b0d,_0x2bb2ef]:[_0x3f3b0d,_0x430a85,_0x2bb2ef,_0x3b5a49];}[_0x519279(0x151)](_0x4a67aa){const _0x57ad8d=_0x519279;return{'tag':_0x57ad8d(0x169),'attributes':{'class':An},'children':[{'text':_0x4a67aa['to'](_0x57ad8d(0x174))}]};}[_0x519279(0x16b)](){const _0x551ccd=_0x519279,_0x8e7d04=new _0x70aff3(this[_0x551ccd(0x15d)]);return _0x8e7d04[_0x551ccd(0x16a)]({'label':_0x2b357f(this[_0x551ccd(0x15d)],_0x551ccd(0x143)),'icon':_0x2b92b1}),this[_0x551ccd(0x17c)](_0x8e7d04),_0x8e7d04;}[_0x519279(0x17c)](_0x43d9ec){const _0x1dfe09=_0x519279;_0x43d9ec['on'](_0x1dfe09(0x16e),()=>{const _0x7df151=_0x1dfe09;this[_0x7df151(0x14a)](_0x7df151(0x176),this['id']);});}[_0x519279(0x149)](){const _0x111fd2=_0x519279,_0x3ef0ed=this[_0x111fd2(0x157)],_0x294d00=new _0x23b33a();return _0x294d00[_0x111fd2(0x15c)]=bn[this[_0x111fd2(0x15a)]],_0x294d00[_0x111fd2(0x180)]({'attributes':{'class':[Cn,_0x3ef0ed['if'](_0x111fd2(0x158),_0x111fd2(0x140),_0x48173c=>_0x48173c)]}}),_0x294d00;}[_0x519279(0x142)](_0x285636,_0x34d9f6){const _0x407185=_0x519279;if(!_0x285636)return;const _0x829b86=()=>{const _0x3c8985=_0x4d18;_0x34d9f6(),_0x285636[_0x3c8985(0x15e)](_0x3c8985(0x160),_0x829b86),_0x285636[_0x3c8985(0x15e)](_0x3c8985(0x17b),_0x829b86);};_0x285636[_0x407185(0x152)](_0x407185(0x160),_0x829b86),_0x285636[_0x407185(0x152)](_0x407185(0x17b),_0x829b86);}[_0x519279(0x177)](){const _0x4efb84=_0x519279,_0x44fdc0=new _0x1034b5(_0x4efb84(0x172));return _0x44fdc0[_0x4efb84(0x164)](_0x4efb84(0x170))['to'](this,_0x4efb84(0x158),_0x5919eb=>_0x5919eb),_0x44fdc0;}}function gn(_0x125adb){const _0x2758ae=_0x519279;if(!_0x125adb)return _0x125adb;if(_0x125adb[_0x2758ae(0x145)]<=0x78)return _0x125adb;const _0x6c474f=_0x125adb[_0x2758ae(0x17a)](0x0,0x78),_0xe1bead=_0x6c474f[_0x2758ae(0x17f)]('\x20');return(_0xe1bead>0x0?_0x6c474f[_0x2758ae(0x17a)](0x0,_0xe1bead):_0x6c474f)+'…';}
23
+ const _0x4f5eb8=_0x2bea;(function(_0x1b79f4,_0x5d068a){const _0x2aba4f=_0x2bea,_0x29cf9c=_0x1b79f4();while(!![]){try{const _0x4c6a16=-parseInt(_0x2aba4f(0x148))/0x1*(parseInt(_0x2aba4f(0x162))/0x2)+parseInt(_0x2aba4f(0x172))/0x3+-parseInt(_0x2aba4f(0x158))/0x4+-parseInt(_0x2aba4f(0x14b))/0x5+-parseInt(_0x2aba4f(0x146))/0x6+parseInt(_0x2aba4f(0x174))/0x7*(parseInt(_0x2aba4f(0x157))/0x8)+parseInt(_0x2aba4f(0x17d))/0x9;if(_0x4c6a16===_0x5d068a)break;else _0x29cf9c['push'](_0x29cf9c['shift']());}catch(_0x4e1c24){_0x29cf9c['push'](_0x29cf9c['shift']());}}}(_0x4661,0xe3d11));import{ButtonView as _0x4b3327,IconView as _0xfea080}from'ckeditor5/src/ui.js';import{IconClose as _0xa8e0f3,IconDocument as _0xc85fe9,IconFileUpload as _0xcfd578,IconLink as _0x189708,IconSelection as _0x52ab52}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0xe41f29}from'../../../aicore/utils/common-translations.js';function _0x2bea(_0x12f5e4,_0x43c909){const _0x46612c=_0x4661();return _0x2bea=function(_0x2beae9,_0x141813){_0x2beae9=_0x2beae9-0x140;let _0x29d478=_0x46612c[_0x2beae9];return _0x29d478;},_0x2bea(_0x12f5e4,_0x43c909);}import{AISpinnerView as _0x5386c6}from'../../../aicore/ui/aispinner.js';const xn={'file':_0xcfd578,'document':_0xc85fe9,'web-resource':_0x189708,'text':_0xcfd578,'selection':_0x52ab52},bn=_0x4f5eb8(0x16f),wn=_0x4f5eb8(0x175),Tn=_0x4f5eb8(0x147),En=_0x4f5eb8(0x142),fn=_0x4f5eb8(0x14a),An=_0x4f5eb8(0x149),Cn='n';function _0x4661(){const _0x4c3301=['_isAnimationOnEnterEnabled','webkitAnimationEnd','uiId','ck-ai-chat-context-chip__label','_createLabelElement','addEventListener','readonly','6231612ehAdlK','ck-ai-chat-context-chip_document','50256lsxxsb','ck-ai-chat-context-controls__chip-tooltip','ck-ai-chat-context-chip__type-icon','1171290oXpYSH','div','execute','lastIndexOf','disableAnimationOnEnter','element','length','isVisible','ck-hidden','set','_createIconView','isLoading','381520XJWyKm','5241756FkzSsW','tooltip','extendTemplate','removeEventListener','locale','slice','selection','removeContextItemChip','ck-ai-chat-context-chip_new-chip','remove','12EDiJjQ','add','span','document','render','fire','itemType','_setupRemoveButtonEvent','_initializeProperties','bind','_createTemplateAttributes','_createTemplateChildren','label','ck-ai-chat-context-chip','small','animationend','3706917Iippcc','_setupTemplate','7OkGggP','ck-ai-chat-context-chip_wide','type','content','_createRemoveButton','bindTemplate','_handleAnimationEndOnce','setTemplate','_createLoaderIcon','22811787BhNmhq','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','classList'];_0x4661=function(){return _0x4c3301;};return _0x4661();}export class AIChatContextItemButtonView extends _0x4b3327{constructor(_0x235b48,_0x51f12c,_0x521e66,_0x38fa6d,_0x2c5b87=!0x1){const _0x4f06b1=_0x4f5eb8;super(_0x235b48),this[_0x4f06b1(0x180)]=_0x38fa6d,this[_0x4f06b1(0x16a)](_0x51f12c,_0x521e66,_0x2c5b87),this[_0x4f06b1(0x173)]();}[_0x4f5eb8(0x166)](){const _0x4c8811=_0x4f5eb8;super[_0x4c8811(0x166)](),this[_0x4c8811(0x180)]&&this[_0x4c8811(0x150)]&&(this[_0x4c8811(0x150)][_0x4c8811(0x17f)][_0x4c8811(0x163)](_0x4c8811(0x160)),this[_0x4c8811(0x17a)](this[_0x4c8811(0x150)],()=>{const _0x27bddf=_0x4c8811;this[_0x27bddf(0x150)]&&this[_0x27bddf(0x150)][_0x27bddf(0x17f)][_0x27bddf(0x161)](_0x27bddf(0x160));}));}[_0x4f5eb8(0x14f)](){const _0x3a0aea=_0x4f5eb8;this[_0x3a0aea(0x180)]=!0x1,this[_0x3a0aea(0x150)]&&this[_0x3a0aea(0x150)][_0x3a0aea(0x17f)][_0x3a0aea(0x161)](_0x3a0aea(0x160));}[_0x4f5eb8(0x16a)](_0x352194,_0x3551f5,_0x1b52d9){const _0x34123f=_0x4f5eb8;this[_0x34123f(0x154)](_0x34123f(0x16e),_0x352194[_0x34123f(0x16e)]),this[_0x34123f(0x154)](_0x34123f(0x159),!0x0),this[_0x34123f(0x154)](_0x34123f(0x168),_0x352194[_0x34123f(0x176)]),this[_0x34123f(0x154)]('id',_0x352194[_0x34123f(0x141)]),this[_0x34123f(0x154)](_0x34123f(0x145),_0x3551f5),this[_0x34123f(0x154)](_0x34123f(0x156),_0x1b52d9);}[_0x4f5eb8(0x173)](){const _0x4f9ee3=_0x4f5eb8,_0x2f2c57=this[_0x4f9ee3(0x155)](),_0x24bd50=this[_0x4f9ee3(0x178)](),_0x7d8127=this[_0x4f9ee3(0x179)];this[_0x4f9ee3(0x17b)]({'tag':_0x4f9ee3(0x14c),'attributes':this[_0x4f9ee3(0x16c)](_0x7d8127),'children':this[_0x4f9ee3(0x16d)](_0x2f2c57,_0x24bd50,_0x7d8127)});}[_0x4f5eb8(0x16c)](_0x18a114){const _0x489719=_0x4f5eb8;return{'class':[bn,_0x18a114['if'](_0x489719(0x168),Tn,_0x4d5ebc=>_0x489719(0x165)==_0x4d5ebc),_0x18a114['if'](_0x489719(0x168),wn,_0xf0f5b8=>_0x489719(0x15e)==_0xf0f5b8)],'data-cke-tooltip-text':_0x18a114['to'](_0x489719(0x16e),In),'data-cke-tooltip-position':Cn,'data-cke-tooltip-class':An};}[_0x4f5eb8(0x16d)](_0x19864c,_0x3d6c0a,_0x4ce849){const _0x5f44ef=_0x4f5eb8,_0x1fb13e=this[_0x5f44ef(0x143)](_0x4ce849),_0x2b9128=this[_0x5f44ef(0x17c)]();return this[_0x5f44ef(0x145)]?[_0x19864c,_0x1fb13e]:[_0x19864c,_0x2b9128,_0x1fb13e,_0x3d6c0a];}[_0x4f5eb8(0x143)](_0x13bd5b){const _0x560b32=_0x4f5eb8;return{'tag':_0x560b32(0x164),'attributes':{'class':En},'children':[{'text':_0x13bd5b['to'](_0x560b32(0x16e))}]};}[_0x4f5eb8(0x178)](){const _0x49e201=_0x4f5eb8,_0x379e9b=new _0x4b3327(this[_0x49e201(0x15c)]);return _0x379e9b[_0x49e201(0x154)]({'label':_0xe41f29(this[_0x49e201(0x15c)],_0x49e201(0x17e)),'icon':_0xa8e0f3}),this[_0x49e201(0x169)](_0x379e9b),_0x379e9b;}[_0x4f5eb8(0x169)](_0x4cc13c){const _0x198107=_0x4f5eb8;_0x4cc13c['on'](_0x198107(0x14d),()=>{const _0x22b1fd=_0x198107;this[_0x22b1fd(0x167)](_0x22b1fd(0x15f),this['id']);});}[_0x4f5eb8(0x155)](){const _0xd6f877=_0x4f5eb8,_0xe776f6=this[_0xd6f877(0x179)],_0x267615=new _0xfea080();return _0x267615[_0xd6f877(0x177)]=xn[this[_0xd6f877(0x168)]],_0x267615[_0xd6f877(0x15a)]({'attributes':{'class':[fn,_0xe776f6['if'](_0xd6f877(0x156),_0xd6f877(0x153),_0x141c1e=>_0x141c1e)]}}),_0x267615;}[_0x4f5eb8(0x17a)](_0x54a9c9,_0x5df5da){const _0x1dd0d0=_0x4f5eb8;if(!_0x54a9c9)return;const _0x585a50=()=>{const _0x5d70d0=_0x2bea;_0x5df5da(),_0x54a9c9[_0x5d70d0(0x15b)](_0x5d70d0(0x171),_0x585a50),_0x54a9c9[_0x5d70d0(0x15b)](_0x5d70d0(0x140),_0x585a50);};_0x54a9c9[_0x1dd0d0(0x144)](_0x1dd0d0(0x171),_0x585a50),_0x54a9c9[_0x1dd0d0(0x144)](_0x1dd0d0(0x140),_0x585a50);}[_0x4f5eb8(0x17c)](){const _0x3ba8f7=_0x4f5eb8,_0x2ec079=new _0x5386c6(_0x3ba8f7(0x170));return _0x2ec079[_0x3ba8f7(0x16b)](_0x3ba8f7(0x152))['to'](this,_0x3ba8f7(0x156),_0x2aca0b=>_0x2aca0b),_0x2ec079;}}function In(_0x412be4){const _0x54c330=_0x4f5eb8;if(!_0x412be4)return _0x412be4;if(_0x412be4[_0x54c330(0x151)]<=0x78)return _0x412be4;const _0x540b26=_0x412be4[_0x54c330(0x15d)](0x0,0x78),_0x5eb9e3=_0x540b26[_0x54c330(0x14e)]('\x20');return(_0x5eb9e3>0x0?_0x540b26[_0x54c330(0x15d)](0x0,_0x5eb9e3):_0x540b26)+'…';}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x55bc2f=_0xc7d6;(function(_0x3f51ac,_0x440673){const _0x35b1cf=_0xc7d6,_0x38d6a2=_0x3f51ac();while(!![]){try{const _0x28a39b=parseInt(_0x35b1cf(0x147))/0x1*(parseInt(_0x35b1cf(0x158))/0x2)+parseInt(_0x35b1cf(0x12e))/0x3*(parseInt(_0x35b1cf(0x121))/0x4)+-parseInt(_0x35b1cf(0x133))/0x5+parseInt(_0x35b1cf(0x168))/0x6*(parseInt(_0x35b1cf(0x15d))/0x7)+parseInt(_0x35b1cf(0x163))/0x8*(-parseInt(_0x35b1cf(0x127))/0x9)+parseInt(_0x35b1cf(0x15a))/0xa*(parseInt(_0x35b1cf(0x140))/0xb)+parseInt(_0x35b1cf(0x135))/0xc*(-parseInt(_0x35b1cf(0x159))/0xd);if(_0x28a39b===_0x440673)break;else _0x38d6a2['push'](_0x38d6a2['shift']());}catch(_0x2b83e1){_0x38d6a2['push'](_0x38d6a2['shift']());}}}(_0x1408,0x720af));import{FocusTracker as _0x2e164e,KeystrokeHandler as _0x5c4ab6}from'ckeditor5/src/utils.js';function _0x1408(){const _0x44a765=['2744esCJiO','set','ck-button-icon\x20ck-button-back','tab','focusTracker','12ABnxcb','_handleSubmit','ck-labeled-field-view_empty','fieldView','AI_CHAT_CONTEXT_URL_INVALID_ERROR','8URJrdA','stop','ck-button-icon','div','AI_CHAT_CONTEXT_URL_ADD_URL','refreshBalloon','16704WiZdLc','execute','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','form','AI_CHAT_CONTEXT_URL_PLACEHOLDER','_setupKeystrokes','_focusables','1097859aMAvga','createCollection','submitUrl','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','input','647360REwuBX','_updateConfirmButtonState','12YgqlWW','focus','_createConfirmButton','trim','_createBackButton','setTemplate','submit','_setupEventHandlers','getValue','urlInputField','clearError','6018892FMOoLm','element','errorText','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','cancel','length','locale','2WvATIA','AI_CHAT_CONTEXT_URL_LABEL','fire','destroy','_createUrlInputField','isEnabled','listenTo','confirmButton','add','ck-ai-chat-context-controls__url-form','keystrokes','render','shift+tab','children','value','setError','ck-ai-chat-context-controls__url-input-section','681916IwzPzG','18944861rbwFFF','10QAMLxg','forEach','backButton','2553257KocJjT','focusCycler','_isValidUrl','esc','_setupTemplate','clear'];_0x1408=function(){return _0x44a765;};return _0x1408();}import{ButtonView as _0x525a96,FocusCycler as _0x209504,LabeledFieldView as _0x59f884,View as _0x59fc57,FormHeaderView as _0x379b4b,createLabeledInputText as _0x5d8fdb,submitHandler as _0x4b2d54}from'ckeditor5/src/ui.js';import{IconCheck as _0x5a71dd,IconPreviousArrow as _0x1f38d1}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x455522}from'../../../aicore/utils/common-translations.js';function _0xc7d6(_0x31977b,_0x145a20){const _0x140808=_0x1408();return _0xc7d6=function(_0xc7d649,_0x3ada0a){_0xc7d649=_0xc7d649-0x11e;let _0x5729a6=_0x140808[_0xc7d649];return _0x5729a6;},_0xc7d6(_0x31977b,_0x145a20);}const ch=_0x55bc2f(0x150),nh=_0x55bc2f(0x157);export class AIChatContextPanelUrlInputView extends _0x59fc57{[_0x55bc2f(0x167)];[_0x55bc2f(0x151)];[_0x55bc2f(0x12d)];[_0x55bc2f(0x15e)];[_0x55bc2f(0x13e)];[_0x55bc2f(0x15c)];[_0x55bc2f(0x14e)];constructor(_0x5c99a9){const _0x1f00cc=_0x55bc2f;super(_0x5c99a9),this[_0x1f00cc(0x167)]=new _0x2e164e(),this[_0x1f00cc(0x151)]=new _0x5c4ab6(),this[_0x1f00cc(0x15c)]=this[_0x1f00cc(0x139)](),this[_0x1f00cc(0x13e)]=this[_0x1f00cc(0x14b)](),this[_0x1f00cc(0x14e)]=this[_0x1f00cc(0x137)](),this[_0x1f00cc(0x12d)]=this[_0x1f00cc(0x12f)]([this[_0x1f00cc(0x15c)],this[_0x1f00cc(0x13e)],this[_0x1f00cc(0x14e)]]),this[_0x1f00cc(0x15e)]=new _0x209504({'focusables':this[_0x1f00cc(0x12d)],'focusTracker':this[_0x1f00cc(0x167)],'keystrokeHandler':this[_0x1f00cc(0x151)],'actions':{'focusPrevious':_0x1f00cc(0x153),'focusNext':_0x1f00cc(0x166)}}),this[_0x1f00cc(0x161)](),this[_0x1f00cc(0x13c)](),this[_0x1f00cc(0x12c)]();}[_0x55bc2f(0x152)](){const _0x554d34=_0x55bc2f;super[_0x554d34(0x152)](),this[_0x554d34(0x12d)][_0x554d34(0x15b)](_0x25fd26=>{const _0x1df416=_0x554d34;this[_0x1df416(0x167)][_0x1df416(0x14f)](_0x25fd26[_0x1df416(0x141)]),this[_0x1df416(0x151)][_0x1df416(0x14d)](_0x25fd26[_0x1df416(0x141)]);}),_0x4b2d54({'view':this}),this[_0x554d34(0x136)]();}[_0x55bc2f(0x14a)](){const _0x4b2010=_0x55bc2f;super[_0x4b2010(0x14a)](),this[_0x4b2010(0x167)][_0x4b2010(0x14a)](),this[_0x4b2010(0x151)][_0x4b2010(0x14a)]();}[_0x55bc2f(0x136)](){const _0x1d5396=_0x55bc2f;this[_0x1d5396(0x13e)][_0x1d5396(0x136)]();}[_0x55bc2f(0x13d)](){const _0x3ce01c=_0x55bc2f;return this[_0x3ce01c(0x13e)][_0x3ce01c(0x11f)][_0x3ce01c(0x141)]?.[_0x3ce01c(0x155)]?.[_0x3ce01c(0x138)]()||'';}[_0x55bc2f(0x162)](){const _0x2c0233=_0x55bc2f;this[_0x2c0233(0x13e)][_0x2c0233(0x11f)][_0x2c0233(0x141)][_0x2c0233(0x155)]='',this[_0x2c0233(0x13e)][_0x2c0233(0x142)]=null,this[_0x2c0233(0x14e)][_0x2c0233(0x14c)]=!0x1;}[_0x55bc2f(0x156)](_0x53a47c){const _0x20f08d=_0x55bc2f;this[_0x20f08d(0x13e)][_0x20f08d(0x142)]=_0x53a47c,this[_0x20f08d(0x134)](),this[_0x20f08d(0x149)](_0x20f08d(0x126));}[_0x55bc2f(0x13f)](){const _0x38ebd1=_0x55bc2f;this[_0x38ebd1(0x13e)][_0x38ebd1(0x142)]=null,this[_0x38ebd1(0x134)]();}[_0x55bc2f(0x139)](){const _0x1b5763=_0x55bc2f,_0x38d3f5=new _0x525a96(this[_0x1b5763(0x146)]);return _0x38d3f5[_0x1b5763(0x164)]({'icon':_0x1f38d1,'tooltip':_0x455522(this[_0x1b5763(0x146)],_0x1b5763(0x131)),'tooltipPosition':'n','class':_0x1b5763(0x165)}),_0x38d3f5;}[_0x55bc2f(0x14b)](){const _0x5f5512=_0x55bc2f,_0x4158bb=new _0x59f884(this[_0x5f5512(0x146)],_0x5d8fdb);return _0x4158bb[_0x5f5512(0x164)]({'label':_0x455522(this[_0x5f5512(0x146)],_0x5f5512(0x148)),'class':_0x5f5512(0x11e)}),_0x4158bb[_0x5f5512(0x11f)][_0x5f5512(0x164)]({'placeholder':_0x455522(this[_0x5f5512(0x146)],_0x5f5512(0x12b))}),_0x4158bb;}[_0x55bc2f(0x137)](){const _0x11988e=_0x55bc2f,_0x5538fd=new _0x525a96(this[_0x11988e(0x146)]);return _0x5538fd[_0x11988e(0x164)]({'icon':_0x5a71dd,'tooltip':_0x455522(this[_0x11988e(0x146)],_0x11988e(0x125)),'tooltipPosition':'n','class':_0x11988e(0x123),'type':_0x11988e(0x13b),'isEnabled':!0x1}),_0x5538fd;}[_0x55bc2f(0x161)](){const _0xba15d1=_0x55bc2f,_0x55dc15=new _0x379b4b(this[_0xba15d1(0x146)],{'label':_0x455522(this[_0xba15d1(0x146)],_0xba15d1(0x125)),'class':_0xba15d1(0x129)});_0x55dc15[_0xba15d1(0x154)][_0xba15d1(0x14f)](this[_0xba15d1(0x15c)],0x0),this[_0xba15d1(0x13a)]({'tag':_0xba15d1(0x12a),'attributes':{'class':ch,'tabindex':'-1'},'children':[_0x55dc15,{'tag':_0xba15d1(0x124),'attributes':{'class':nh},'children':[this[_0xba15d1(0x13e)],this[_0xba15d1(0x14e)]]}]});}[_0x55bc2f(0x13c)](){const _0x15f1ef=_0x55bc2f;this[_0x15f1ef(0x15c)]['on'](_0x15f1ef(0x128),()=>{const _0x570132=_0x15f1ef;this[_0x570132(0x162)](),this[_0x570132(0x149)](_0x570132(0x144));}),this[_0x15f1ef(0x13e)][_0x15f1ef(0x11f)]['on'](_0x15f1ef(0x132),()=>{const _0x3cc853=_0x15f1ef;this[_0x3cc853(0x13f)](),this[_0x3cc853(0x134)](),this[_0x3cc853(0x149)](_0x3cc853(0x126));}),this['on'](_0x15f1ef(0x13b),_0x25ba5d=>{const _0x599eba=_0x15f1ef;_0x25ba5d[_0x599eba(0x122)](),this[_0x599eba(0x169)]();});}[_0x55bc2f(0x12c)](){const _0x91efd2=_0x55bc2f;this[_0x91efd2(0x151)][_0x91efd2(0x164)](_0x91efd2(0x160),(_0x1031d3,_0x486ead)=>{const _0x18112b=_0x91efd2;this[_0x18112b(0x162)](),this[_0x18112b(0x149)](_0x18112b(0x144)),_0x486ead();});}[_0x55bc2f(0x169)](){const _0xb0667f=_0x55bc2f,_0x41f83a=this[_0xb0667f(0x13d)]()[_0xb0667f(0x138)]();_0x41f83a?this[_0xb0667f(0x15f)](_0x41f83a)?(this[_0xb0667f(0x13f)](),this[_0xb0667f(0x149)](_0xb0667f(0x130),_0x41f83a)):this[_0xb0667f(0x156)](_0x455522(this[_0xb0667f(0x146)],_0xb0667f(0x120))):this[_0xb0667f(0x156)](_0x455522(this[_0xb0667f(0x146)],_0xb0667f(0x143)));}[_0x55bc2f(0x134)](){const _0x5ba0b9=_0x55bc2f,_0x47436a=this[_0x5ba0b9(0x13d)]()[_0x5ba0b9(0x138)](),_0x500a37=!!this[_0x5ba0b9(0x13e)][_0x5ba0b9(0x142)];this[_0x5ba0b9(0x14e)][_0x5ba0b9(0x14c)]=_0x47436a[_0x5ba0b9(0x145)]>0x0&&!_0x500a37;}[_0x55bc2f(0x15f)](_0x28c202){try{return!!new URL(_0x28c202);}catch{return!0x1;}}}
23
+ const _0x3152aa=_0x455c;(function(_0x5c13b2,_0x23c8c0){const _0x14d23a=_0x455c,_0x3d4c21=_0x5c13b2();while(!![]){try{const _0x4d43ef=-parseInt(_0x14d23a(0xdd))/0x1*(-parseInt(_0x14d23a(0xe2))/0x2)+-parseInt(_0x14d23a(0x101))/0x3*(parseInt(_0x14d23a(0xe9))/0x4)+parseInt(_0x14d23a(0xfc))/0x5*(-parseInt(_0x14d23a(0xde))/0x6)+parseInt(_0x14d23a(0x11f))/0x7+parseInt(_0x14d23a(0xfd))/0x8*(-parseInt(_0x14d23a(0x10c))/0x9)+-parseInt(_0x14d23a(0x104))/0xa*(parseInt(_0x14d23a(0x117))/0xb)+parseInt(_0x14d23a(0x107))/0xc*(parseInt(_0x14d23a(0x11c))/0xd);if(_0x4d43ef===_0x23c8c0)break;else _0x3d4c21['push'](_0x3d4c21['shift']());}catch(_0x47794c){_0x3d4c21['push'](_0x3d4c21['shift']());}}}(_0x35f0,0x33ac5));import{FocusTracker as _0xd16163,KeystrokeHandler as _0x1516fe}from'ckeditor5/src/utils.js';function _0x35f0(){const _0x525510=['esc','div','ck-button-icon\x20ck-button-back','input','38DeLJMj','6ZrExvU','shift+tab','value','ck-ai-chat-context-controls__url-input-section','13582zJejip','ck-labeled-field-view_empty','refreshBalloon','add','_setupEventHandlers','_focusables','createCollection','67012OYGScd','destroy','trim','locale','AI_CHAT_CONTEXT_URL_LABEL','_setupTemplate','fire','execute','isEnabled','AI_CHAT_CONTEXT_URL_INVALID_ERROR','tab','element','setError','render','ck-ai-chat-context-controls__url-form','focusTracker','_isValidUrl','urlInputField','_createConfirmButton','1089060BUdyPZ','112mVyhRB','_handleSubmit','focusCycler','children','27RCdGjD','errorText','cancel','3274030CYrXAO','AI_CHAT_CONTEXT_URL_PLACEHOLDER','forEach','12DbmwyG','submit','_setupKeystrokes','getValue','clear','190395DYGfrv','setTemplate','stop','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','_createBackButton','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','set','AI_CHAT_CONTEXT_URL_ADD_URL','confirmButton','clearError','11SUXVPX','focus','form','length','keystrokes','11968645HxMuDA','ck-button-icon','fieldView','175644WzcInE','backButton','_updateConfirmButtonState','submitUrl','_createUrlInputField','listenTo'];_0x35f0=function(){return _0x525510;};return _0x35f0();}import{ButtonView as _0x37182c,FocusCycler as _0x3cd621,LabeledFieldView as _0x4ab98d,View as _0x9e09e9,FormHeaderView as _0x536608,createLabeledInputText as _0x1fe988,submitHandler as _0x260afa}from'ckeditor5/src/ui.js';import{IconCheck as _0x530cca,IconPreviousArrow as _0x3fea9d}from'@ckeditor/ckeditor5-icons';function _0x455c(_0x51f86c,_0xcaa993){const _0x35f029=_0x35f0();return _0x455c=function(_0x455cc8,_0x1d8d99){_0x455cc8=_0x455cc8-0xd5;let _0x105d0c=_0x35f029[_0x455cc8];return _0x105d0c;},_0x455c(_0x51f86c,_0xcaa993);}import{getTranslation as _0x2edd7a}from'../../../aicore/utils/common-translations.js';const ch=_0x3152aa(0xf7),nh=_0x3152aa(0xe1);export class AIChatContextPanelUrlInputView extends _0x9e09e9{[_0x3152aa(0xf8)];[_0x3152aa(0x11b)];[_0x3152aa(0xe7)];[_0x3152aa(0xff)];[_0x3152aa(0xfa)];[_0x3152aa(0x120)];[_0x3152aa(0x115)];constructor(_0xa04ca5){const _0x5c84fd=_0x3152aa;super(_0xa04ca5),this[_0x5c84fd(0xf8)]=new _0xd16163(),this[_0x5c84fd(0x11b)]=new _0x1516fe(),this[_0x5c84fd(0x120)]=this[_0x5c84fd(0x110)](),this[_0x5c84fd(0xfa)]=this[_0x5c84fd(0xd7)](),this[_0x5c84fd(0x115)]=this[_0x5c84fd(0xfb)](),this[_0x5c84fd(0xe7)]=this[_0x5c84fd(0xe8)]([this[_0x5c84fd(0x120)],this[_0x5c84fd(0xfa)],this[_0x5c84fd(0x115)]]),this[_0x5c84fd(0xff)]=new _0x3cd621({'focusables':this[_0x5c84fd(0xe7)],'focusTracker':this[_0x5c84fd(0xf8)],'keystrokeHandler':this[_0x5c84fd(0x11b)],'actions':{'focusPrevious':_0x5c84fd(0xdf),'focusNext':_0x5c84fd(0xf3)}}),this[_0x5c84fd(0xee)](),this[_0x5c84fd(0xe6)](),this[_0x5c84fd(0x109)]();}[_0x3152aa(0xf6)](){const _0x3695f8=_0x3152aa;super[_0x3695f8(0xf6)](),this[_0x3695f8(0xe7)][_0x3695f8(0x106)](_0x12e7e0=>{const _0x4a6a88=_0x3695f8;this[_0x4a6a88(0xf8)][_0x4a6a88(0xe5)](_0x12e7e0[_0x4a6a88(0xf4)]),this[_0x4a6a88(0x11b)][_0x4a6a88(0xd8)](_0x12e7e0[_0x4a6a88(0xf4)]);}),_0x260afa({'view':this}),this[_0x3695f8(0x118)]();}[_0x3152aa(0xea)](){const _0x14bc43=_0x3152aa;super[_0x14bc43(0xea)](),this[_0x14bc43(0xf8)][_0x14bc43(0xea)](),this[_0x14bc43(0x11b)][_0x14bc43(0xea)]();}[_0x3152aa(0x118)](){const _0x100c0d=_0x3152aa;this[_0x100c0d(0xfa)][_0x100c0d(0x118)]();}[_0x3152aa(0x10a)](){const _0x4f3737=_0x3152aa;return this[_0x4f3737(0xfa)][_0x4f3737(0x11e)][_0x4f3737(0xf4)]?.[_0x4f3737(0xe0)]?.[_0x4f3737(0xeb)]()||'';}[_0x3152aa(0x10b)](){const _0x540e28=_0x3152aa;this[_0x540e28(0xfa)][_0x540e28(0x11e)][_0x540e28(0xf4)][_0x540e28(0xe0)]='',this[_0x540e28(0xfa)][_0x540e28(0x102)]=null,this[_0x540e28(0x115)][_0x540e28(0xf1)]=!0x1;}[_0x3152aa(0xf5)](_0x2829a7){const _0x212636=_0x3152aa;this[_0x212636(0xfa)][_0x212636(0x102)]=_0x2829a7,this[_0x212636(0xd5)](),this[_0x212636(0xef)](_0x212636(0xe4));}[_0x3152aa(0x116)](){const _0x41c306=_0x3152aa;this[_0x41c306(0xfa)][_0x41c306(0x102)]=null,this[_0x41c306(0xd5)]();}[_0x3152aa(0x110)](){const _0x452c78=_0x3152aa,_0xefaf2a=new _0x37182c(this[_0x452c78(0xec)]);return _0xefaf2a[_0x452c78(0x113)]({'icon':_0x3fea9d,'tooltip':_0x2edd7a(this[_0x452c78(0xec)],_0x452c78(0x112)),'tooltipPosition':'n','class':_0x452c78(0xdb)}),_0xefaf2a;}[_0x3152aa(0xd7)](){const _0x287049=_0x3152aa,_0x3de3bb=new _0x4ab98d(this[_0x287049(0xec)],_0x1fe988);return _0x3de3bb[_0x287049(0x113)]({'label':_0x2edd7a(this[_0x287049(0xec)],_0x287049(0xed)),'class':_0x287049(0xe3)}),_0x3de3bb[_0x287049(0x11e)][_0x287049(0x113)]({'placeholder':_0x2edd7a(this[_0x287049(0xec)],_0x287049(0x105))}),_0x3de3bb;}[_0x3152aa(0xfb)](){const _0x354ea5=_0x3152aa,_0x51bf05=new _0x37182c(this[_0x354ea5(0xec)]);return _0x51bf05[_0x354ea5(0x113)]({'icon':_0x530cca,'tooltip':_0x2edd7a(this[_0x354ea5(0xec)],_0x354ea5(0x114)),'tooltipPosition':'n','class':_0x354ea5(0x11d),'type':_0x354ea5(0x108),'isEnabled':!0x1}),_0x51bf05;}[_0x3152aa(0xee)](){const _0x47710e=_0x3152aa,_0x1a02e3=new _0x536608(this[_0x47710e(0xec)],{'label':_0x2edd7a(this[_0x47710e(0xec)],_0x47710e(0x114)),'class':_0x47710e(0x111)});_0x1a02e3[_0x47710e(0x100)][_0x47710e(0xe5)](this[_0x47710e(0x120)],0x0),this[_0x47710e(0x10d)]({'tag':_0x47710e(0x119),'attributes':{'class':ch,'tabindex':'-1'},'children':[_0x1a02e3,{'tag':_0x47710e(0xda),'attributes':{'class':nh},'children':[this[_0x47710e(0xfa)],this[_0x47710e(0x115)]]}]});}[_0x3152aa(0xe6)](){const _0x4b05c7=_0x3152aa;this[_0x4b05c7(0x120)]['on'](_0x4b05c7(0xf0),()=>{const _0x35f46e=_0x4b05c7;this[_0x35f46e(0x10b)](),this[_0x35f46e(0xef)](_0x35f46e(0x103));}),this[_0x4b05c7(0xfa)][_0x4b05c7(0x11e)]['on'](_0x4b05c7(0xdc),()=>{const _0x2df79a=_0x4b05c7;this[_0x2df79a(0x116)](),this[_0x2df79a(0xd5)](),this[_0x2df79a(0xef)](_0x2df79a(0xe4));}),this['on'](_0x4b05c7(0x108),_0x4ed79d=>{const _0x2585f5=_0x4b05c7;_0x4ed79d[_0x2585f5(0x10e)](),this[_0x2585f5(0xfe)]();});}[_0x3152aa(0x109)](){const _0x5e3cdd=_0x3152aa;this[_0x5e3cdd(0x11b)][_0x5e3cdd(0x113)](_0x5e3cdd(0xd9),(_0x6eb85e,_0x4f7e98)=>{const _0x3e2158=_0x5e3cdd;this[_0x3e2158(0x10b)](),this[_0x3e2158(0xef)](_0x3e2158(0x103)),_0x4f7e98();});}[_0x3152aa(0xfe)](){const _0x89cd6a=_0x3152aa,_0x333091=this[_0x89cd6a(0x10a)]()[_0x89cd6a(0xeb)]();_0x333091?this[_0x89cd6a(0xf9)](_0x333091)?(this[_0x89cd6a(0x116)](),this[_0x89cd6a(0xef)](_0x89cd6a(0xd6),_0x333091)):this[_0x89cd6a(0xf5)](_0x2edd7a(this[_0x89cd6a(0xec)],_0x89cd6a(0xf2))):this[_0x89cd6a(0xf5)](_0x2edd7a(this[_0x89cd6a(0xec)],_0x89cd6a(0x10f)));}[_0x3152aa(0xd5)](){const _0x50b421=_0x3152aa,_0x1a15d2=this[_0x50b421(0x10a)]()[_0x50b421(0xeb)](),_0x32e52c=!!this[_0x50b421(0xfa)][_0x50b421(0x102)];this[_0x50b421(0x115)][_0x50b421(0xf1)]=_0x1a15d2[_0x50b421(0x11a)]>0x0&&!_0x32e52c;}[_0x3152aa(0xf9)](_0x2ca6c3){try{return!!new URL(_0x2ca6c3);}catch{return!0x1;}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4adc52=_0x212e;(function(_0x4da68d,_0x43bbf0){const _0x431752=_0x212e,_0x4534f4=_0x4da68d();while(!![]){try{const _0x369c27=parseInt(_0x431752(0xba))/0x1+-parseInt(_0x431752(0xfc))/0x2+parseInt(_0x431752(0xa8))/0x3+parseInt(_0x431752(0x7e))/0x4+parseInt(_0x431752(0xaa))/0x5*(parseInt(_0x431752(0xf9))/0x6)+parseInt(_0x431752(0xc4))/0x7+parseInt(_0x431752(0xd8))/0x8*(-parseInt(_0x431752(0x105))/0x9);if(_0x369c27===_0x43bbf0)break;else _0x4534f4['push'](_0x4534f4['shift']());}catch(_0x51d6b9){_0x4534f4['push'](_0x4534f4['shift']());}}}(_0x2b38,0x29ecb));import{BalloonPanelView as _0x48f9f5,ButtonView as _0x1e96b6,clickOutsideHandler as _0xf40a8b,FileDialogButtonView as _0xf7735a,IconView as _0x5c74f8,View as _0x10363f}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x2f67bd,IconDocument as _0x366f67,IconDocumentOutline as _0x44bf07,IconDropdownArrow as _0x3f56cb,IconLink as _0x2bb478,IconPaperClip as _0x20c5fc}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x2fbe32}from'./aichatcontextitembuttonview.js';function _0x2b38(){const _0x7a4dec=['locale','submitUrl','setContainerElement','_createResourcesBalloonView','children','_setupUrlBalloonClickOutsideHandler','_bindEventHandlers','addDocumentToContext','isOn','ck-ai-chat-context-controls__pending-contexts','updateResourceState','document','refreshBalloon','render','conversation','southArrowNorthEast','ck-ai-chat-context-controls__balloon-button','northArrowSouthWest','_handleUrlSubmit','content','ck-ai-chat-context-controls__add-context-balloon-panel','_toggleAddContextBalloon','reorganizeChips','ck-ai-chat-context-controls__add-context-button','AI_CHAT_CONTEXT_URL_LABEL','945105HVTXuG','_createBalloonButton','45UzPXrp','execute','current','enabled','clearCurrentContextItems','_getLimiterElement','setConversationContext','isLoading','ck-ai-chat-controls_context_show-more-button','hideAddContextBalloonPanel','type','_createContextButton','_addContextBalloonConfig','_resourcesBalloonView','hide','defaultPositions','150493QHeRcu','sources','showSourceResourcesBalloon','destroy','removeContextItemChip','southArrowNorth','_removeContextFromCollection','addFileToContext','_conversationContextsChips','_createAddContextBalloonPanelView','2253517XZqYlB','_overflowManager','ck-ai-chat-context-controls','isAnyResourceBalloonVisible','ck-ai-chat','tooltip','body','showUrlBalloonPanel','isReadOnly','overflowChips','element','source','setContextItemLoading','addUrlToContext','_setupAddContextBalloonClickOutsideHandler','_createBaseBalloonPanel','populateSourceResourceBalloon','addContextButtonView','find','files','288qPYzfu','_urlInputView','addResourceToContext','div','removeContextItem','fire','AI_CHAT_CONTEXT_ADD_CONTEXT','balloonView','pin','ck-ai-chat-context-controls__balloon-button-source','__arrow','focus','hideUrlBalloonPanel','ck-ai-chat-context-controls__url-balloon-panel','northArrowSouth','_setBalloonPanelContent','_handleAddContextButtonClick','closeSourceResourceBalloon','ck-ai-chat-controls-button','_addContextToCollection','createCollection','buttonView','menuitem','arrowView','AI_CHAT_CONTEXT_FILE_LABEL','setTemplate','label','loadSourceResources','setAddContextOptions','_setAddContextButtonEnabled','_setupTemplate','cancel','_createArrowView','223386Xijrem','add','northArrowSouthEast','403308krSupT','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','icon','ck-ai-chat-context-controls__show-more-balloon-panel','_urlBalloonPanelView','extendTemplate','addContextItem','bind','ck-ai-chat-context-chips-wrapper-balloon','205830NKXGhi','done','_createAddContextButtonView','closest','isHidden','searchInputVisibleFrom','urls','ck-reset_all-excluded','296636RhdqLN','clear','_setupAllBalloonClickOutsideHandlers','southArrowNorthWest','_addContextBalloonPanelView','_createUrlBalloonPanelView','bodyCollection','showAddContextBalloonPanel','_showSourceResourcesBalloon','_addUrlContent','set','_currentContextsChips','show','remove','clearConversationContextItems','isEnabled','isVisible'];_0x2b38=function(){return _0x7a4dec;};return _0x2b38();}import{AIChatContextPanelUrlInputView as _0x26d493}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x47e753}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x3b3cc5}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x5ef869}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x4adc52(0x96),_0x4adc52(0xc1),_0x4adc52(0xd1),_0x4adc52(0xda),_0x4adc52(0xdc),_0x4adc52(0xf3)];const ko=_0x4adc52(0xc6),Eo=_0x4adc52(0x98),vo=_0x4adc52(0xa3),Vo=_0x4adc52(0xa6),Io=_0x4adc52(0xe5),Po=_0x4adc52(0x9f),Ro=_0x4adc52(0xe1),Uo=_0x4adc52(0xea),Lo=_0x4adc52(0x104),No=_0x4adc52(0xb2),Oo=_0x4adc52(0xff),Mo=_0x4adc52(0xc8),Ho=[_0x48f9f5[_0x4adc52(0xb9)][_0x4adc52(0xa0)],_0x48f9f5[_0x4adc52(0xb9)][_0x4adc52(0xe6)],_0x48f9f5[_0x4adc52(0xb9)][_0x4adc52(0xfb)],_0x48f9f5[_0x4adc52(0xb9)][_0x4adc52(0x81)],_0x48f9f5[_0x4adc52(0xb9)][_0x4adc52(0xbf)],_0x48f9f5[_0x4adc52(0xb9)][_0x4adc52(0x9e)]];export class AIChatContextPanelView extends _0x10363f{[_0x4adc52(0xd5)];[_0x4adc52(0x89)]=this[_0x4adc52(0xec)]();[_0x4adc52(0xc2)]=this[_0x4adc52(0xec)]();[_0x4adc52(0xc5)];[_0x4adc52(0x82)];[_0x4adc52(0x100)];[_0x4adc52(0xd9)];[_0x4adc52(0xb7)];[_0x4adc52(0xb6)];[_0x4adc52(0x84)];constructor(_0x4c5b78,_0x2684b5){const _0x1a09d5=_0x4adc52;super(_0x4c5b78),this[_0x1a09d5(0x84)]=_0x2684b5[_0x1a09d5(0x84)],this[_0x1a09d5(0x89)]=this[_0x1a09d5(0xec)](),this[_0x1a09d5(0xc2)]=this[_0x1a09d5(0xec)](),this[_0x1a09d5(0xd5)]=this[_0x1a09d5(0x107)](_0x4c5b78),this[_0x1a09d5(0x82)]=this[_0x1a09d5(0xc3)](_0x4c5b78),this[_0x1a09d5(0x100)]=this[_0x1a09d5(0x83)](_0x4c5b78),this[_0x1a09d5(0xb7)]=this[_0x1a09d5(0x92)](_0x4c5b78,_0x2684b5);const _0x10a60b={'cssClasses':{'showMoreButton':No,'showMoreBalloon':Oo,'overflowContainer':Lo,'controlsButton':Uo}};this[_0x1a09d5(0xc5)]=new _0x47e753(_0x4c5b78,this[_0x1a09d5(0x89)],_0x10a60b,this[_0x1a09d5(0x84)],this),this[_0x1a09d5(0xb6)]={'buttonView':this[_0x1a09d5(0xd5)],'balloonView':this[_0x1a09d5(0x82)],'hideMethod':this[_0x1a09d5(0xb3)][_0x1a09d5(0x103)](this),'showMethod':this[_0x1a09d5(0x85)][_0x1a09d5(0x103)](this)},this[_0x1a09d5(0xf6)](),this[_0x1a09d5(0x95)]();}[_0x4adc52(0x9c)](){const _0x2f8dff=_0x4adc52;super[_0x2f8dff(0x9c)](),this[_0x2f8dff(0x80)](),this[_0x2f8dff(0xc5)][_0x2f8dff(0x91)](this[_0x2f8dff(0xce)]),this[_0x2f8dff(0xc5)][_0x2f8dff(0xa5)]();}[_0x4adc52(0xbd)](){const _0x3b34a0=_0x4adc52;super[_0x3b34a0(0xbd)](),this[_0x3b34a0(0xc5)][_0x3b34a0(0xbd)](),this[_0x3b34a0(0xb7)][_0x3b34a0(0xbd)]();}[_0x4adc52(0x102)](_0x34073b,_0x4f2374){const _0x4eb496=_0x4adc52,_0x4d74c6=this[_0x4eb496(0xb5)](_0x34073b,_0x4eb496(0xac),!0x0,_0x4f2374);this[_0x4eb496(0xeb)](_0x4d74c6,this[_0x4eb496(0x89)]),this[_0x4eb496(0xc5)][_0x4eb496(0xa5)]();}[_0x4adc52(0xdc)](_0xef998b){const _0x4bdcdc=_0x4adc52;this[_0x4bdcdc(0xc0)](_0xef998b,this[_0x4bdcdc(0x89)]),this[_0x4bdcdc(0xc0)](_0xef998b,this[_0x4bdcdc(0xc5)][_0x4bdcdc(0xcd)]),this[_0x4bdcdc(0xc5)][_0x4bdcdc(0xa5)]();}[_0x4adc52(0xd0)](_0x55469e,_0x572730){const _0x3e2c2d=_0x4adc52;let _0x1a602f=this[_0x3e2c2d(0x89)][_0x3e2c2d(0xd6)](_0x574935=>_0x574935['id']===_0x55469e);_0x1a602f||(_0x1a602f=this[_0x3e2c2d(0xc5)][_0x3e2c2d(0xcd)][_0x3e2c2d(0xd6)](_0x5840f5=>_0x5840f5['id']===_0x55469e)),_0x1a602f&&(_0x1a602f[_0x3e2c2d(0xb1)]=_0x572730);}[_0x4adc52(0xb0)](_0x528c26){const _0x4de052=_0x4adc52;this[_0x4de052(0xc2)][_0x4de052(0x7f)]();for(const _0x1a17ce of _0x528c26){const _0x50fbf2=this[_0x4de052(0xb5)](_0x1a17ce,_0x4de052(0x9d),!0x1,!0x1);this[_0x4de052(0xeb)](_0x50fbf2,this[_0x4de052(0xc2)]);}}[_0x4adc52(0xae)](){const _0x4e670a=_0x4adc52;this[_0x4e670a(0x89)][_0x4e670a(0x7f)](),this[_0x4e670a(0xc5)][_0x4e670a(0x7f)]();}[_0x4adc52(0x8c)](){const _0x1c935a=_0x4adc52;this[_0x1c935a(0xc2)][_0x1c935a(0x7f)]();}[_0x4adc52(0x99)](_0x171843,_0x2e9782,_0x7ffbf7){const _0x4657f5=_0x4adc52;this[_0x4657f5(0xb7)][_0x4657f5(0x99)](_0x171843,_0x2e9782,_0x7ffbf7);}[_0x4adc52(0xb3)](){const _0x5c2677=_0x4adc52;this[_0x5c2677(0xa4)](!0x1);}[_0x4adc52(0x85)](){const _0x1e16a3=_0x4adc52;this[_0x1e16a3(0xa4)](!0x0);}[_0x4adc52(0xe4)](){const _0x27bf64=_0x4adc52;this[_0x27bf64(0x100)][_0x27bf64(0xb8)](),this[_0x27bf64(0xd5)][_0x27bf64(0x97)]=!0x1,this[_0x27bf64(0xd9)]&&this[_0x27bf64(0xd9)][_0x27bf64(0x7f)]();}[_0x4adc52(0xcb)](){const _0xc942be=_0x4adc52;this[_0xc942be(0x100)][_0xc942be(0x8a)](),this[_0xc942be(0xd5)][_0xc942be(0x97)]=!0x0;}[_0x4adc52(0x86)](_0x58617d){const _0x5e806d=_0x4adc52;this[_0x5e806d(0xb7)][_0x5e806d(0xbc)](_0x58617d),this[_0x5e806d(0xd5)][_0x5e806d(0x97)]=!0x0;}[_0x4adc52(0xd4)](_0x3e7939,_0x1e3355,_0x42af75,_0x22d2f2){const _0x563dff=_0x4adc52;this[_0x563dff(0xb7)][_0x563dff(0xd4)](_0x3e7939,_0x42af75,_0x22d2f2);}[_0x4adc52(0xe9)](_0x4c0faf){const _0x3fdc2b=_0x4adc52;this[_0x3fdc2b(0xb7)][_0x3fdc2b(0xe9)](_0x4c0faf),this[_0x3fdc2b(0xd5)][_0x3fdc2b(0x97)]=!0x1;}[_0x4adc52(0xf4)](_0x55474e){const _0x4aa1af=_0x4adc52;this[_0x4aa1af(0xe7)](this[_0x4aa1af(0x82)],this[_0x4aa1af(0x8f)],_0x55474e),this[_0x4aa1af(0xf5)](_0x55474e);}[_0x4adc52(0xf5)](_0x3c74bf){const _0x1060d7=_0x4adc52,_0x12cf9a=!_0x3c74bf[_0x1060d7(0x9a)][_0x1060d7(0x109)]&&_0x3c74bf[_0x1060d7(0x9a)][_0x1060d7(0xad)],_0x3f684e=_0x3c74bf[_0x1060d7(0x10b)][_0x1060d7(0xad)],_0x52a283=_0x3c74bf[_0x1060d7(0xd7)][_0x1060d7(0xad)];this[_0x1060d7(0xd5)][_0x1060d7(0x8d)]=_0x12cf9a||_0x3f684e||_0x52a283;}[_0x4adc52(0xf6)](){const _0x1172f6=_0x4adc52;this[_0x1172f6(0xf1)]({'tag':_0x1172f6(0xdb),'attributes':{'class':[ko,_0x1172f6(0x10c)]},'children':[{'tag':_0x1172f6(0xdb),'attributes':{'class':Eo},'children':this[_0x1172f6(0x89)]}]});}[_0x4adc52(0x95)](){const _0x52b1fd=_0x4adc52;this[_0x52b1fd(0xd5)]['on'](_0x52b1fd(0xab),()=>{const _0x1ca7d1=_0x52b1fd;this[_0x1ca7d1(0xe8)]();});}[_0x4adc52(0x107)](_0x31155e){const _0x50b62d=_0x4adc52,_0xdd8b13=new _0x1e96b6(_0x31155e);return _0xdd8b13[_0x50b62d(0x88)]({'label':_0x3b3cc5(_0x31155e,_0x50b62d(0xde)),'class':Uo+'\x20'+Vo,'icon':_0x20c5fc,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0xdd8b13;}[_0x4adc52(0xc3)](_0x49f196){const _0x56cc94=_0x4adc52;return this[_0x56cc94(0xd3)](_0x49f196,vo);}[_0x4adc52(0x83)](_0x424675){const _0x1f228c=_0x4adc52,_0x336635=this[_0x1f228c(0xd3)](_0x424675,Io);return this[_0x1f228c(0x87)](_0x336635,_0x424675),_0x336635;}[_0x4adc52(0x92)](_0x2f1ccf,_0x4ad403){const _0x90720c=_0x4adc52,_0x1e00f1={'searchInputVisibleFrom':_0x4ad403[_0x90720c(0x10a)],'onBackToContext':()=>{const _0x49e7c5=_0x90720c;this[_0x49e7c5(0x85)](),this[_0x49e7c5(0x82)][_0x49e7c5(0xe0)]({'target':this[_0x49e7c5(0xd5)][_0x49e7c5(0xce)],'limiter':this[_0x49e7c5(0xaf)](),'positions':Ho});},'onResourceSelected':(_0x45f631,_0x2866eb)=>{const _0x1a4466=_0x90720c;this[_0x1a4466(0xdd)](_0x1a4466(0xda),{'source':_0x45f631,'resource':_0x2866eb});},'onLoadSourceResources':_0x29624e=>{const _0x3b99c2=_0x90720c;this[_0x3b99c2(0xdd)](_0x3b99c2(0xf3),_0x29624e);},'onBalloonClosed':()=>{const _0x2cfd9d=_0x90720c;this[_0x2cfd9d(0xd5)][_0x2cfd9d(0x97)]=!0x1;},'getLimiterElement':()=>this[_0x90720c(0xaf)](),'getTargetElement':()=>this[_0x90720c(0xd5)][_0x90720c(0xce)]};return new _0x5ef869(_0x2f1ccf,_0x4ad403[_0x90720c(0x84)],_0x1e00f1);}[_0x4adc52(0xaf)](){const _0x4b3519=_0x4adc52;return this[_0x4b3519(0xce)]?.[_0x4b3519(0x108)]('.'+Mo)||document[_0x4b3519(0xca)];}[_0x4adc52(0xd3)](_0x43261a,_0x34b94e){const _0x296aba=_0x4adc52,_0xd69494=new _0x48f9f5(_0x43261a);return _0xd69494[_0x296aba(0x101)]({'attributes':{'class':_0x34b94e}}),this[_0x296aba(0x84)][_0x296aba(0xfa)](_0xd69494),_0xd69494;}[_0x4adc52(0xe7)](_0x367520,_0x1336a3,_0x2e2da8){const _0x36d014=_0x4adc52;if(_0x367520[_0x36d014(0xa2)][_0x36d014(0x7f)](),!_0x2e2da8[_0x36d014(0x9a)][_0x36d014(0x109)]&&_0x2e2da8[_0x36d014(0x9a)][_0x36d014(0xad)]){const _0x432ec1=this[_0x36d014(0xa9)](_0x1336a3,{'label':_0x3b3cc5(_0x1336a3,_0x36d014(0xfd)),'icon':_0x366f67});_0x432ec1['on'](_0x36d014(0xab),()=>{const _0x4e0cc8=_0x36d014;this[_0x4e0cc8(0xdd)](_0x4e0cc8(0x96)),this[_0x4e0cc8(0xb3)]();}),_0x367520[_0x36d014(0xa2)][_0x36d014(0xfa)](_0x432ec1);}if(_0x2e2da8[_0x36d014(0x10b)][_0x36d014(0xad)]){const _0x11f647=this[_0x36d014(0xa9)](_0x1336a3,{'label':_0x3b3cc5(_0x1336a3,_0x36d014(0xa7)),'icon':_0x2bb478});_0x11f647['on'](_0x36d014(0xab),()=>{const _0x874e04=_0x36d014;this[_0x874e04(0xb3)](),this[_0x874e04(0xcb)](),this[_0x874e04(0x100)][_0x874e04(0xe0)]({'target':this[_0x874e04(0xd5)][_0x874e04(0xce)],'limiter':this[_0x874e04(0xaf)](),'positions':Ho}),this[_0x874e04(0xd9)][_0x874e04(0xe3)]();}),_0x367520[_0x36d014(0xa2)][_0x36d014(0xfa)](_0x11f647);}if(_0x2e2da8[_0x36d014(0xd7)][_0x36d014(0xad)]){const _0x4199d7=new _0xf7735a(_0x1336a3);_0x4199d7[_0x36d014(0x88)]({'label':_0x3b3cc5(_0x1336a3,_0x36d014(0xf0)),'icon':_0x2f67bd,'withText':!0x0,'tooltip':!0x0,'class':Po,'allowMultipleFiles':!0x0}),_0x4199d7['on'](_0x36d014(0x106),(_0x542dcc,_0x5ea601)=>{const _0x15d996=_0x36d014;this[_0x15d996(0xdd)](_0x15d996(0xc1),_0x5ea601),this[_0x15d996(0xb3)]();}),_0x4199d7[_0x36d014(0xc9)]=!0x0,_0x367520[_0x36d014(0xa2)][_0x36d014(0xfa)](_0x4199d7);}for(const _0x861d6f of _0x2e2da8[_0x36d014(0xbb)]){const _0x5d6f83=this[_0x36d014(0xa9)](_0x1336a3,{'label':_0x861d6f[_0x36d014(0xf2)],'icon':_0x861d6f[_0x36d014(0xfe)]||_0x44bf07,'type':_0x36d014(0xcf)});_0x367520[_0x36d014(0xa2)][_0x36d014(0xfa)](_0x5d6f83),_0x5d6f83['on'](_0x36d014(0xab),()=>{const _0x2efdf1=_0x36d014;this[_0x2efdf1(0xb3)](),this[_0x2efdf1(0x86)](_0x861d6f);});}}[_0x4adc52(0x87)](_0x527f53,_0x5348ab){const _0x1f8e4f=_0x4adc52;this[_0x1f8e4f(0xd9)]=new _0x26d493(_0x5348ab),this[_0x1f8e4f(0xd9)]['on'](_0x1f8e4f(0x90),(_0x50d735,_0x1b1b4f)=>{const _0x568ec6=_0x1f8e4f;this[_0x568ec6(0xa1)](_0x1b1b4f);}),this[_0x1f8e4f(0xd9)]['on'](_0x1f8e4f(0xf7),()=>{const _0x336ea6=_0x1f8e4f;this[_0x336ea6(0xe4)](),this[_0x336ea6(0x85)](),this[_0x336ea6(0x82)][_0x336ea6(0xe0)]({'target':this[_0x336ea6(0xd5)][_0x336ea6(0xce)],'limiter':this[_0x336ea6(0xaf)](),'positions':Ho});}),this[_0x1f8e4f(0xd9)]['on'](_0x1f8e4f(0x9b),()=>{const _0x594794=_0x1f8e4f;this[_0x594794(0x100)][_0x594794(0x8e)]&&this[_0x594794(0x100)][_0x594794(0xe0)]({'target':this[_0x594794(0xd5)][_0x594794(0xce)],'limiter':this[_0x594794(0xaf)](),'positions':Ho});}),_0x527f53[_0x1f8e4f(0xa2)][_0x1f8e4f(0xfa)](this[_0x1f8e4f(0xd9)]);}[_0x4adc52(0xa9)](_0x11a0c0,_0x289a81){const _0x4301d8=_0x4adc52,_0x1088b3=_0x4301d8(0xcf)===_0x289a81[_0x4301d8(0xb4)]?new SourcesBalloonButtonView(_0x11a0c0):new _0x1e96b6(_0x11a0c0);return _0x1088b3[_0x4301d8(0x88)]({'label':_0x289a81[_0x4301d8(0xf2)],'icon':_0x289a81[_0x4301d8(0xfe)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Po}),_0x1088b3;}[_0x4adc52(0x80)](){const _0x67dcc=_0x4adc52;this[_0x67dcc(0xd2)](),this[_0x67dcc(0x94)]();}[_0x4adc52(0x94)](){const _0x3c4799=_0x4adc52;_0xf40a8b({'emitter':this[_0x3c4799(0x100)],'contextElements':[this[_0x3c4799(0x100)][_0x3c4799(0xce)]],'callback':()=>{const _0x509195=_0x3c4799;this[_0x509195(0xe4)]();},'activator':()=>this[_0x3c4799(0x100)][_0x3c4799(0x8e)]});}[_0x4adc52(0xa4)](_0x457374){const _0x12a027=_0x4adc52,_0xada094=this[_0x12a027(0xb6)];_0xada094[_0x12a027(0xed)][_0x12a027(0x97)]=_0x457374,_0x457374?_0xada094[_0x12a027(0xdf)][_0x12a027(0x8a)]():_0xada094[_0x12a027(0xdf)][_0x12a027(0xb8)]();}[_0x4adc52(0xd2)](){const _0x47a477=_0x4adc52,{balloonView:_0x506c9d,buttonView:_0x234e90,hideMethod:_0x4e286e}=this[_0x47a477(0xb6)];_0xf40a8b({'emitter':_0x506c9d,'contextElements':[_0x506c9d[_0x47a477(0xce)],_0x234e90[_0x47a477(0xce)]],'callback':()=>{_0x4e286e();},'activator':()=>_0x234e90[_0x47a477(0x97)]&&!this[_0x47a477(0x100)][_0x47a477(0x8e)]&&!this[_0x47a477(0xb7)][_0x47a477(0xc7)]()});}[_0x4adc52(0xb5)](_0x2e2c10,_0x442932,_0x3d7903=!0x1,_0x29654d=!0x1){const _0x24c8d5=_0x4adc52,_0x519dc2=_0x24c8d5(0x9d)===_0x442932||!0x0===_0x2e2c10[_0x24c8d5(0xcc)],_0x47841b=new _0x2fbe32(this[_0x24c8d5(0x8f)],_0x2e2c10,_0x519dc2,_0x3d7903,_0x29654d);return _0x519dc2||_0x47841b['on'](_0x24c8d5(0xbe),()=>{const _0x3b8b0b=_0x24c8d5;this[_0x3b8b0b(0xdd)](_0x3b8b0b(0xdc),_0x47841b['id']);}),_0x47841b;}[_0x4adc52(0xeb)](_0x1774a3,_0x51489f){const _0xc1e2fc=_0x4adc52;_0x51489f[_0xc1e2fc(0xfa)](_0x1774a3,0x0);}[_0x4adc52(0xc0)](_0x3a6022,_0x3d4b91){const _0x3f79d8=_0x4adc52,_0x55cab0=_0x3d4b91[_0x3f79d8(0xd6)](_0x53b284=>_0x53b284['id']===_0x3a6022);_0x55cab0&&_0x3d4b91[_0x3f79d8(0x8b)](_0x55cab0);}[_0x4adc52(0xe8)](){const _0x111663=_0x4adc52;this[_0x111663(0xd5)][_0x111663(0x97)]?this[_0x111663(0xb3)]():(this[_0x111663(0x85)](),this[_0x111663(0x82)][_0x111663(0xe0)]({'target':this[_0x111663(0xd5)][_0x111663(0xce)],'limiter':this[_0x111663(0xaf)](),'positions':Ho}));}[_0x4adc52(0xa1)](_0x8a9c5b){const _0x549946=_0x4adc52;this[_0x549946(0xd9)][_0x549946(0x7f)](),this[_0x549946(0xe4)](),this[_0x549946(0xdd)](_0x549946(0xd1),_0x8a9c5b);}}function _0x212e(_0x1ccb41,_0x32c7f1){const _0x2b38bd=_0x2b38();return _0x212e=function(_0x212e69,_0x2682c2){_0x212e69=_0x212e69-0x7e;let _0x2776c5=_0x2b38bd[_0x212e69];return _0x2776c5;},_0x212e(_0x1ccb41,_0x32c7f1);}export class SourcesBalloonButtonView extends _0x1e96b6{[_0x4adc52(0xef)];constructor(_0xfc7598){const _0x36024d=_0x4adc52;super(_0xfc7598),this[_0x36024d(0x88)]({'withText':!0x0,'role':_0x36024d(0xee)}),this[_0x36024d(0xef)]=this[_0x36024d(0xf8)](),this[_0x36024d(0x101)]({'attributes':{'class':[Ro]}});}[_0x4adc52(0x9c)](){const _0x17584e=_0x4adc52;super[_0x17584e(0x9c)](),this[_0x17584e(0x93)][_0x17584e(0xfa)](this[_0x17584e(0xef)]);}[_0x4adc52(0xf8)](){const _0x51eac2=_0x4adc52,_0x41be35=new _0x5c74f8();return _0x41be35[_0x51eac2(0xa2)]=_0x3f56cb,_0x41be35[_0x51eac2(0x101)]({'attributes':{'class':Ro+_0x51eac2(0xe2)}}),_0x41be35;}}
23
+ const _0x50aa3b=_0x44f6;function _0x1c38(){const _0x561109=['element','northArrowSouthWest','extendTemplate','_urlInputView','setContextItemLoading','enabled','urls','buttonView','_createResourcesBalloonView','bind','setAddContextOptions','current','removeContextItemChip','cancel','balloonView','showUrlBalloonPanel','showSourceResourcesBalloon','reorganizeChips','searchInputVisibleFrom','_addContextBalloonConfig','_setupTemplate','remove','execute','_createContextButton','ck-ai-chat-context-controls__add-context-button','_bindEventHandlers','20414664fthoDb','ck-ai-chat-context-controls__add-context-balloon-panel','defaultPositions','ck-ai-chat-context-controls__url-balloon-panel','pin','_conversationContextsChips','showAddContextBalloonPanel','addContextButtonView','submitUrl','_setupAllBalloonClickOutsideHandlers','done','removeContextItem','setContainerElement','addUrlToContext','createCollection','_currentContextsChips','isLoading','icon','2263935IosoTZ','_toggleAddContextBalloon','updateResourceState','menuitem','_addContextToCollection','clearCurrentContextItems','clear','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','addDocumentToContext','conversation','southArrowNorth','_handleUrlSubmit','_createBalloonButton','_setBalloonPanelContent','addFileToContext','_resourcesBalloonView','div','overflowChips','_createAddContextBalloonPanelView','northArrowSouth','document','setConversationContext','isVisible','_setAddContextButtonEnabled','arrowView','5229364ODEnCG','addContextItem','fire','ck-ai-chat-context-controls__show-more-balloon-panel','ck-ai-chat','locale','1368340eUwwAG','ck-ai-chat-controls-button','_setupAddContextBalloonClickOutsideHandler','AI_CHAT_CONTEXT_ADD_CONTEXT','set','add','closeSourceResourceBalloon','_getLimiterElement','ck-reset_all-excluded','_addContextBalloonPanelView','children','hide','focus','render','populateSourceResourceBalloon','_showSourceResourcesBalloon','tooltip','closest','southArrowNorthEast','2508762jeDmft','isOn','source','body','_setupUrlBalloonClickOutsideHandler','_createUrlBalloonPanelView','_createArrowView','_createAddContextButtonView','loadSourceResources','995094HNsNKL','ck-ai-chat-controls_context_show-more-button','files','type','hideAddContextBalloonPanel','10687313VhYQMB','_overflowManager','refreshBalloon','__arrow','hideUrlBalloonPanel','ck-ai-chat-context-controls','show','_handleAddContextButtonClick','_removeContextFromCollection','_urlBalloonPanelView','bodyCollection','label','isAnyResourceBalloonVisible','sources','content','ck-ai-chat-context-controls__pending-contexts','AI_CHAT_CONTEXT_URL_LABEL','southArrowNorthWest','destroy','find','clearConversationContextItems','_createBaseBalloonPanel','isEnabled','northArrowSouthEast','ck-ai-chat-context-chips-wrapper-balloon','addResourceToContext','setTemplate','_addUrlContent','isHidden','ck-ai-chat-context-controls__balloon-button-source','ck-ai-chat-context-controls__balloon-button','25bwkKQR','AI_CHAT_CONTEXT_FILE_LABEL','isReadOnly'];_0x1c38=function(){return _0x561109;};return _0x1c38();}(function(_0x44f480,_0x218049){const _0x463f1b=_0x44f6,_0x1afcb4=_0x44f480();while(!![]){try{const _0x530172=parseInt(_0x463f1b(0xfc))/0x1+-parseInt(_0x463f1b(0x10f))/0x2+-parseInt(_0x463f1b(0x16b))/0x3+parseInt(_0x463f1b(0xf6))/0x4+parseInt(_0x463f1b(0x13c))/0x5*(-parseInt(_0x463f1b(0x118))/0x6)+-parseInt(_0x463f1b(0x11d))/0x7+parseInt(_0x463f1b(0x159))/0x8;if(_0x530172===_0x218049)break;else _0x1afcb4['push'](_0x1afcb4['shift']());}catch(_0x4e59be){_0x1afcb4['push'](_0x1afcb4['shift']());}}}(_0x1c38,0xd2914));import{BalloonPanelView as _0x1c9cbe,ButtonView as _0x314fe6,clickOutsideHandler as _0x323c3c,FileDialogButtonView as _0x283fcb,IconView as _0x14ed84,View as _0x313c89}from'ckeditor5/src/ui.js';function _0x44f6(_0x188b7a,_0x455f63){const _0x1c3808=_0x1c38();return _0x44f6=function(_0x44f63a,_0x5e9914){_0x44f63a=_0x44f63a-0xf3;let _0x29ee83=_0x1c3808[_0x44f63a];return _0x29ee83;},_0x44f6(_0x188b7a,_0x455f63);}import{IconBrowseFiles as _0x44a71f,IconDocument as _0x29d693,IconDocumentOutline as _0x186b14,IconDropdownArrow as _0xe95710,IconLink as _0x3e19cf,IconPaperClip as _0x1caf9f}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x39520d}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x42ee9b}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x1b0994}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x1fb0bb}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x47334c}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x50aa3b(0x173),_0x50aa3b(0x179),_0x50aa3b(0x166),_0x50aa3b(0x136),_0x50aa3b(0x164),_0x50aa3b(0x117)];const ko=_0x50aa3b(0x122),Eo=_0x50aa3b(0x12c),vo=_0x50aa3b(0x15a),Vo=_0x50aa3b(0x157),Io=_0x50aa3b(0x15c),Po=_0x50aa3b(0x13b),Ro=_0x50aa3b(0x13a),Uo=_0x50aa3b(0xfd),Lo=_0x50aa3b(0x135),No=_0x50aa3b(0x119),Oo=_0x50aa3b(0xf9),Mo=_0x50aa3b(0xfa),Ho=[_0x1c9cbe[_0x50aa3b(0x15b)][_0x50aa3b(0x140)],_0x1c9cbe[_0x50aa3b(0x15b)][_0x50aa3b(0x17e)],_0x1c9cbe[_0x50aa3b(0x15b)][_0x50aa3b(0x134)],_0x1c9cbe[_0x50aa3b(0x15b)][_0x50aa3b(0x12e)],_0x1c9cbe[_0x50aa3b(0x15b)][_0x50aa3b(0x175)],_0x1c9cbe[_0x50aa3b(0x15b)][_0x50aa3b(0x10e)]];export class AIChatContextPanelView extends _0x313c89{[_0x50aa3b(0x160)];[_0x50aa3b(0x168)]=this[_0x50aa3b(0x167)]();[_0x50aa3b(0x15e)]=this[_0x50aa3b(0x167)]();[_0x50aa3b(0x11e)];[_0x50aa3b(0x105)];[_0x50aa3b(0x126)];[_0x50aa3b(0x142)];[_0x50aa3b(0x17a)];[_0x50aa3b(0x152)];[_0x50aa3b(0x127)];constructor(_0x1bd29c,_0x1c4dea){const _0x1e4f60=_0x50aa3b;super(_0x1bd29c),this[_0x1e4f60(0x127)]=_0x1c4dea[_0x1e4f60(0x127)],this[_0x1e4f60(0x168)]=this[_0x1e4f60(0x167)](),this[_0x1e4f60(0x15e)]=this[_0x1e4f60(0x167)](),this[_0x1e4f60(0x160)]=this[_0x1e4f60(0x116)](_0x1bd29c),this[_0x1e4f60(0x105)]=this[_0x1e4f60(0x17d)](_0x1bd29c),this[_0x1e4f60(0x126)]=this[_0x1e4f60(0x114)](_0x1bd29c),this[_0x1e4f60(0x17a)]=this[_0x1e4f60(0x147)](_0x1bd29c,_0x1c4dea);const _0x177362={'cssClasses':{'showMoreButton':No,'showMoreBalloon':Oo,'overflowContainer':Lo,'controlsButton':Uo}};this[_0x1e4f60(0x11e)]=new _0x1b0994(_0x1bd29c,this[_0x1e4f60(0x168)],_0x177362,this[_0x1e4f60(0x127)],this),this[_0x1e4f60(0x152)]={'buttonView':this[_0x1e4f60(0x160)],'balloonView':this[_0x1e4f60(0x105)],'hideMethod':this[_0x1e4f60(0x11c)][_0x1e4f60(0x148)](this),'showMethod':this[_0x1e4f60(0x15f)][_0x1e4f60(0x148)](this)},this[_0x1e4f60(0x153)](),this[_0x1e4f60(0x158)]();}[_0x50aa3b(0x109)](){const _0x4fc124=_0x50aa3b;super[_0x4fc124(0x109)](),this[_0x4fc124(0x162)](),this[_0x4fc124(0x11e)][_0x4fc124(0x165)](this[_0x4fc124(0x13f)]),this[_0x4fc124(0x11e)][_0x4fc124(0x150)]();}[_0x50aa3b(0x12f)](){const _0x58fa80=_0x50aa3b;super[_0x58fa80(0x12f)](),this[_0x58fa80(0x11e)][_0x58fa80(0x12f)](),this[_0x58fa80(0x17a)][_0x58fa80(0x12f)]();}[_0x50aa3b(0xf7)](_0x4707d9,_0x749ced){const _0x152883=_0x50aa3b,_0x895c29=this[_0x152883(0x156)](_0x4707d9,_0x152883(0x14a),!0x0,_0x749ced);this[_0x152883(0x16f)](_0x895c29,this[_0x152883(0x168)]),this[_0x152883(0x11e)][_0x152883(0x150)]();}[_0x50aa3b(0x164)](_0x412bb9){const _0xb591e9=_0x50aa3b;this[_0xb591e9(0x125)](_0x412bb9,this[_0xb591e9(0x168)]),this[_0xb591e9(0x125)](_0x412bb9,this[_0xb591e9(0x11e)][_0xb591e9(0x17c)]),this[_0xb591e9(0x11e)][_0xb591e9(0x150)]();}[_0x50aa3b(0x143)](_0x15907b,_0x54dbca){const _0x252c2e=_0x50aa3b;let _0x158954=this[_0x252c2e(0x168)][_0x252c2e(0x130)](_0x979143=>_0x979143['id']===_0x15907b);_0x158954||(_0x158954=this[_0x252c2e(0x11e)][_0x252c2e(0x17c)][_0x252c2e(0x130)](_0x1e6be6=>_0x1e6be6['id']===_0x15907b)),_0x158954&&(_0x158954[_0x252c2e(0x169)]=_0x54dbca);}[_0x50aa3b(0x180)](_0x5bf8d8){const _0x5f3a06=_0x50aa3b;this[_0x5f3a06(0x15e)][_0x5f3a06(0x171)]();for(const _0x3fcfc4 of _0x5bf8d8){const _0x5f0cc1=this[_0x5f3a06(0x156)](_0x3fcfc4,_0x5f3a06(0x174),!0x1,!0x1);this[_0x5f3a06(0x16f)](_0x5f0cc1,this[_0x5f3a06(0x15e)]);}}[_0x50aa3b(0x170)](){const _0x18d821=_0x50aa3b;this[_0x18d821(0x168)][_0x18d821(0x171)](),this[_0x18d821(0x11e)][_0x18d821(0x171)]();}[_0x50aa3b(0x131)](){const _0x1f6741=_0x50aa3b;this[_0x1f6741(0x15e)][_0x1f6741(0x171)]();}[_0x50aa3b(0x16d)](_0x1a136b,_0x1337b0,_0xe51e09){const _0x3bd277=_0x50aa3b;this[_0x3bd277(0x17a)][_0x3bd277(0x16d)](_0x1a136b,_0x1337b0,_0xe51e09);}[_0x50aa3b(0x11c)](){const _0x77ddd9=_0x50aa3b;this[_0x77ddd9(0x16c)](!0x1);}[_0x50aa3b(0x15f)](){const _0x272810=_0x50aa3b;this[_0x272810(0x16c)](!0x0);}[_0x50aa3b(0x121)](){const _0x2d2052=_0x50aa3b;this[_0x2d2052(0x126)][_0x2d2052(0x107)](),this[_0x2d2052(0x160)][_0x2d2052(0x110)]=!0x1,this[_0x2d2052(0x142)]&&this[_0x2d2052(0x142)][_0x2d2052(0x171)]();}[_0x50aa3b(0x14e)](){const _0xd9e229=_0x50aa3b;this[_0xd9e229(0x126)][_0xd9e229(0x123)](),this[_0xd9e229(0x160)][_0xd9e229(0x110)]=!0x0;}[_0x50aa3b(0x10b)](_0xb3c101){const _0x54c867=_0x50aa3b;this[_0x54c867(0x17a)][_0x54c867(0x14f)](_0xb3c101),this[_0x54c867(0x160)][_0x54c867(0x110)]=!0x0;}[_0x50aa3b(0x10a)](_0x1db187,_0x412b41,_0x4f5262,_0x4b3a57){const _0x5f0fe2=_0x50aa3b;this[_0x5f0fe2(0x17a)][_0x5f0fe2(0x10a)](_0x1db187,_0x4f5262,_0x4b3a57);}[_0x50aa3b(0x102)](_0x349546){const _0xcc158e=_0x50aa3b;this[_0xcc158e(0x17a)][_0xcc158e(0x102)](_0x349546),this[_0xcc158e(0x160)][_0xcc158e(0x110)]=!0x1;}[_0x50aa3b(0x149)](_0x34cc00){const _0x34dcdb=_0x50aa3b;this[_0x34dcdb(0x178)](this[_0x34dcdb(0x105)],this[_0x34dcdb(0xfb)],_0x34cc00),this[_0x34dcdb(0xf4)](_0x34cc00);}[_0x50aa3b(0xf4)](_0x480a1e){const _0xceafa9=_0x50aa3b,_0x5963be=!_0x480a1e[_0xceafa9(0x17f)][_0xceafa9(0x139)]&&_0x480a1e[_0xceafa9(0x17f)][_0xceafa9(0x144)],_0x980089=_0x480a1e[_0xceafa9(0x145)][_0xceafa9(0x144)],_0x25d585=_0x480a1e[_0xceafa9(0x11a)][_0xceafa9(0x144)];this[_0xceafa9(0x160)][_0xceafa9(0x133)]=_0x5963be||_0x980089||_0x25d585;}[_0x50aa3b(0x153)](){const _0x2aea55=_0x50aa3b;this[_0x2aea55(0x137)]({'tag':_0x2aea55(0x17b),'attributes':{'class':[ko,_0x2aea55(0x104)]},'children':[{'tag':_0x2aea55(0x17b),'attributes':{'class':Eo},'children':this[_0x2aea55(0x168)]}]});}[_0x50aa3b(0x158)](){const _0x1c1cb1=_0x50aa3b;this[_0x1c1cb1(0x160)]['on'](_0x1c1cb1(0x155),()=>{const _0x3e0798=_0x1c1cb1;this[_0x3e0798(0x124)]();});}[_0x50aa3b(0x116)](_0x27e5a1){const _0xa57a76=_0x50aa3b,_0x5922c1=new _0x314fe6(_0x27e5a1);return _0x5922c1[_0xa57a76(0x100)]({'label':_0x1fb0bb(_0x27e5a1,_0xa57a76(0xff)),'class':Uo+'\x20'+Vo,'icon':_0x1caf9f,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x5922c1;}[_0x50aa3b(0x17d)](_0xb8a6ba){const _0x48c061=_0x50aa3b;return this[_0x48c061(0x132)](_0xb8a6ba,vo);}[_0x50aa3b(0x114)](_0x345afa){const _0x549982=_0x50aa3b,_0x5f15d1=this[_0x549982(0x132)](_0x345afa,Io);return this[_0x549982(0x138)](_0x5f15d1,_0x345afa),_0x5f15d1;}[_0x50aa3b(0x147)](_0x9fa319,_0x1aaaad){const _0x13c721=_0x50aa3b,_0xcd2eb2={'searchInputVisibleFrom':_0x1aaaad[_0x13c721(0x151)],'onBackToContext':()=>{const _0x6c92a4=_0x13c721;this[_0x6c92a4(0x15f)](),this[_0x6c92a4(0x105)][_0x6c92a4(0x15d)]({'target':this[_0x6c92a4(0x160)][_0x6c92a4(0x13f)],'limiter':this[_0x6c92a4(0x103)](),'positions':Ho});},'onResourceSelected':(_0x463a34,_0x583958)=>{const _0xa05ad2=_0x13c721;this[_0xa05ad2(0xf8)](_0xa05ad2(0x136),{'source':_0x463a34,'resource':_0x583958});},'onLoadSourceResources':_0x4a61a8=>{const _0x4ed3fc=_0x13c721;this[_0x4ed3fc(0xf8)](_0x4ed3fc(0x117),_0x4a61a8);},'onBalloonClosed':()=>{const _0x3ab139=_0x13c721;this[_0x3ab139(0x160)][_0x3ab139(0x110)]=!0x1;},'getLimiterElement':()=>this[_0x13c721(0x103)](),'getTargetElement':()=>this[_0x13c721(0x160)][_0x13c721(0x13f)]};return new _0x47334c(_0x9fa319,_0x1aaaad[_0x13c721(0x127)],_0xcd2eb2);}[_0x50aa3b(0x103)](){const _0x113cc6=_0x50aa3b;return this[_0x113cc6(0x13f)]?.[_0x113cc6(0x10d)]('.'+Mo)||document[_0x113cc6(0x112)];}[_0x50aa3b(0x132)](_0x366f40,_0x33eae4){const _0x4517c6=_0x50aa3b,_0x4ac0b6=new _0x1c9cbe(_0x366f40);return _0x4ac0b6[_0x4517c6(0x141)]({'attributes':{'class':_0x33eae4}}),this[_0x4517c6(0x127)][_0x4517c6(0x101)](_0x4ac0b6),_0x4ac0b6;}[_0x50aa3b(0x178)](_0x5d1473,_0xd71d79,_0x4ff088){const _0x183ff0=_0x50aa3b;if(_0x5d1473[_0x183ff0(0x12b)][_0x183ff0(0x171)](),!_0x4ff088[_0x183ff0(0x17f)][_0x183ff0(0x139)]&&_0x4ff088[_0x183ff0(0x17f)][_0x183ff0(0x144)]){const _0x13f26a=this[_0x183ff0(0x177)](_0xd71d79,{'label':_0x1fb0bb(_0xd71d79,_0x183ff0(0x172)),'icon':_0x29d693});_0x13f26a['on'](_0x183ff0(0x155),()=>{const _0x3f2be5=_0x183ff0;this[_0x3f2be5(0xf8)](_0x3f2be5(0x173)),this[_0x3f2be5(0x11c)]();}),_0x5d1473[_0x183ff0(0x12b)][_0x183ff0(0x101)](_0x13f26a);}if(_0x4ff088[_0x183ff0(0x145)][_0x183ff0(0x144)]){const _0x561c0b=this[_0x183ff0(0x177)](_0xd71d79,{'label':_0x1fb0bb(_0xd71d79,_0x183ff0(0x12d)),'icon':_0x3e19cf});_0x561c0b['on'](_0x183ff0(0x155),()=>{const _0x5a5317=_0x183ff0;this[_0x5a5317(0x11c)](),this[_0x5a5317(0x14e)](),this[_0x5a5317(0x126)][_0x5a5317(0x15d)]({'target':this[_0x5a5317(0x160)][_0x5a5317(0x13f)],'limiter':this[_0x5a5317(0x103)](),'positions':Ho}),this[_0x5a5317(0x142)][_0x5a5317(0x108)]();}),_0x5d1473[_0x183ff0(0x12b)][_0x183ff0(0x101)](_0x561c0b);}if(_0x4ff088[_0x183ff0(0x11a)][_0x183ff0(0x144)]){const _0x221f9a=new _0x283fcb(_0xd71d79);_0x221f9a[_0x183ff0(0x100)]({'label':_0x1fb0bb(_0xd71d79,_0x183ff0(0x13d)),'icon':_0x44a71f,'withText':!0x0,'tooltip':!0x0,'class':Po,'allowMultipleFiles':!0x0}),_0x221f9a['on'](_0x183ff0(0x163),(_0x46c28b,_0x57dc48)=>{const _0x5ed8d8=_0x183ff0;this[_0x5ed8d8(0xf8)](_0x5ed8d8(0x179),_0x57dc48),this[_0x5ed8d8(0x11c)]();}),_0x221f9a[_0x183ff0(0x10c)]=!0x0,_0x5d1473[_0x183ff0(0x12b)][_0x183ff0(0x101)](_0x221f9a);}for(const _0x110180 of _0x4ff088[_0x183ff0(0x12a)]){const _0x5da222=this[_0x183ff0(0x177)](_0xd71d79,{'label':_0x110180[_0x183ff0(0x128)],'icon':_0x110180[_0x183ff0(0x16a)]||_0x186b14,'type':_0x183ff0(0x111)});_0x5d1473[_0x183ff0(0x12b)][_0x183ff0(0x101)](_0x5da222),_0x5da222['on'](_0x183ff0(0x155),()=>{const _0x494d49=_0x183ff0;this[_0x494d49(0x11c)](),this[_0x494d49(0x10b)](_0x110180);});}}[_0x50aa3b(0x138)](_0x44e142,_0x510dc0){const _0x339e56=_0x50aa3b;this[_0x339e56(0x142)]=new _0x42ee9b(_0x510dc0),this[_0x339e56(0x142)]['on'](_0x339e56(0x161),(_0x5f48e6,_0x2611ac)=>{const _0x5bbee9=_0x339e56;this[_0x5bbee9(0x176)](_0x2611ac);}),this[_0x339e56(0x142)]['on'](_0x339e56(0x14c),()=>{const _0x2c6f52=_0x339e56;this[_0x2c6f52(0x121)](),this[_0x2c6f52(0x15f)](),this[_0x2c6f52(0x105)][_0x2c6f52(0x15d)]({'target':this[_0x2c6f52(0x160)][_0x2c6f52(0x13f)],'limiter':this[_0x2c6f52(0x103)](),'positions':Ho});}),this[_0x339e56(0x142)]['on'](_0x339e56(0x11f),()=>{const _0x2e75e9=_0x339e56;this[_0x2e75e9(0x126)][_0x2e75e9(0xf3)]&&this[_0x2e75e9(0x126)][_0x2e75e9(0x15d)]({'target':this[_0x2e75e9(0x160)][_0x2e75e9(0x13f)],'limiter':this[_0x2e75e9(0x103)](),'positions':Ho});}),_0x44e142[_0x339e56(0x12b)][_0x339e56(0x101)](this[_0x339e56(0x142)]);}[_0x50aa3b(0x177)](_0x3603fc,_0x5684e6){const _0x1b128d=_0x50aa3b,_0x312bd6=_0x1b128d(0x111)===_0x5684e6[_0x1b128d(0x11b)]?new SourcesBalloonButtonView(_0x3603fc):new _0x314fe6(_0x3603fc);return _0x312bd6[_0x1b128d(0x100)]({'label':_0x5684e6[_0x1b128d(0x128)],'icon':_0x5684e6[_0x1b128d(0x16a)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Po}),_0x312bd6;}[_0x50aa3b(0x162)](){const _0x28dd63=_0x50aa3b;this[_0x28dd63(0xfe)](),this[_0x28dd63(0x113)]();}[_0x50aa3b(0x113)](){const _0x2b866c=_0x50aa3b;_0x323c3c({'emitter':this[_0x2b866c(0x126)],'contextElements':[this[_0x2b866c(0x126)][_0x2b866c(0x13f)]],'callback':()=>{const _0x4d9d84=_0x2b866c;this[_0x4d9d84(0x121)]();},'activator':()=>this[_0x2b866c(0x126)][_0x2b866c(0xf3)]});}[_0x50aa3b(0x16c)](_0x402cc1){const _0x2830b8=_0x50aa3b,_0x5ef567=this[_0x2830b8(0x152)];_0x5ef567[_0x2830b8(0x146)][_0x2830b8(0x110)]=_0x402cc1,_0x402cc1?_0x5ef567[_0x2830b8(0x14d)][_0x2830b8(0x123)]():_0x5ef567[_0x2830b8(0x14d)][_0x2830b8(0x107)]();}[_0x50aa3b(0xfe)](){const _0xd8b80c=_0x50aa3b,{balloonView:_0x292585,buttonView:_0x54397a,hideMethod:_0x5e37bc}=this[_0xd8b80c(0x152)];_0x323c3c({'emitter':_0x292585,'contextElements':[_0x292585[_0xd8b80c(0x13f)],_0x54397a[_0xd8b80c(0x13f)]],'callback':()=>{_0x5e37bc();},'activator':()=>_0x54397a[_0xd8b80c(0x110)]&&!this[_0xd8b80c(0x126)][_0xd8b80c(0xf3)]&&!this[_0xd8b80c(0x17a)][_0xd8b80c(0x129)]()});}[_0x50aa3b(0x156)](_0x168339,_0x4b41a6,_0x49ef6a=!0x1,_0x2218ca=!0x1){const _0x14e5c5=_0x50aa3b,_0x3a2b25=_0x14e5c5(0x174)===_0x4b41a6||!0x0===_0x168339[_0x14e5c5(0x13e)],_0x45f2cd=new _0x39520d(this[_0x14e5c5(0xfb)],_0x168339,_0x3a2b25,_0x49ef6a,_0x2218ca);return _0x3a2b25||_0x45f2cd['on'](_0x14e5c5(0x14b),()=>{const _0x341c2d=_0x14e5c5;this[_0x341c2d(0xf8)](_0x341c2d(0x164),_0x45f2cd['id']);}),_0x45f2cd;}[_0x50aa3b(0x16f)](_0x25bab5,_0x324e8f){const _0xf2af35=_0x50aa3b;_0x324e8f[_0xf2af35(0x101)](_0x25bab5,0x0);}[_0x50aa3b(0x125)](_0x4e9c9f,_0x58c3dc){const _0x466616=_0x50aa3b,_0x260aa4=_0x58c3dc[_0x466616(0x130)](_0x41c5e7=>_0x41c5e7['id']===_0x4e9c9f);_0x260aa4&&_0x58c3dc[_0x466616(0x154)](_0x260aa4);}[_0x50aa3b(0x124)](){const _0x39a1d5=_0x50aa3b;this[_0x39a1d5(0x160)][_0x39a1d5(0x110)]?this[_0x39a1d5(0x11c)]():(this[_0x39a1d5(0x15f)](),this[_0x39a1d5(0x105)][_0x39a1d5(0x15d)]({'target':this[_0x39a1d5(0x160)][_0x39a1d5(0x13f)],'limiter':this[_0x39a1d5(0x103)](),'positions':Ho}));}[_0x50aa3b(0x176)](_0x5f57d5){const _0x1e0e46=_0x50aa3b;this[_0x1e0e46(0x142)][_0x1e0e46(0x171)](),this[_0x1e0e46(0x121)](),this[_0x1e0e46(0xf8)](_0x1e0e46(0x166),_0x5f57d5);}}export class SourcesBalloonButtonView extends _0x314fe6{[_0x50aa3b(0xf5)];constructor(_0x5d2071){const _0x15fe35=_0x50aa3b;super(_0x5d2071),this[_0x15fe35(0x100)]({'withText':!0x0,'role':_0x15fe35(0x16e)}),this[_0x15fe35(0xf5)]=this[_0x15fe35(0x115)](),this[_0x15fe35(0x141)]({'attributes':{'class':[Ro]}});}[_0x50aa3b(0x109)](){const _0x1b83e0=_0x50aa3b;super[_0x1b83e0(0x109)](),this[_0x1b83e0(0x106)][_0x1b83e0(0x101)](this[_0x1b83e0(0xf5)]);}[_0x50aa3b(0x115)](){const _0x5679e8=_0x50aa3b,_0x44115e=new _0x14ed84();return _0x44115e[_0x5679e8(0x12b)]=_0xe95710,_0x44115e[_0x5679e8(0x141)]({'attributes':{'class':Ro+_0x5679e8(0x120)}}),_0x44115e;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x39c0ad=_0x26d9;(function(_0x3c76d0,_0x36b867){const _0x58a445=_0x26d9,_0x173d0e=_0x3c76d0();while(!![]){try{const _0xbad45=parseInt(_0x58a445(0x11f))/0x1*(parseInt(_0x58a445(0x10c))/0x2)+parseInt(_0x58a445(0x117))/0x3*(parseInt(_0x58a445(0x115))/0x4)+parseInt(_0x58a445(0x103))/0x5+parseInt(_0x58a445(0x104))/0x6*(parseInt(_0x58a445(0x11e))/0x7)+-parseInt(_0x58a445(0x110))/0x8*(parseInt(_0x58a445(0x116))/0x9)+-parseInt(_0x58a445(0x114))/0xa+-parseInt(_0x58a445(0x105))/0xb;if(_0xbad45===_0x36b867)break;else _0x173d0e['push'](_0x173d0e['shift']());}catch(_0x33d31c){_0x173d0e['push'](_0x173d0e['shift']());}}}(_0x4563,0xd2cdd));import{ButtonView as _0x2eb9a8,View as _0xa776fd}from'ckeditor5/src/ui.js';import{IconStop as _0x17f73c}from'ckeditor5/src/icons.js';import{getTranslation as _0x23e169}from'../../../aicore/utils/common-translations.js';export class AIChatControlsLoaderView extends _0xa776fd{[_0x39c0ad(0x118)];[_0x39c0ad(0x119)];constructor(_0x39c106){const _0xb8f99f=_0x39c0ad;super(_0x39c106),this[_0xb8f99f(0x118)]=this[_0xb8f99f(0x11b)](),this[_0xb8f99f(0x119)]=this[_0xb8f99f(0x11d)](),this[_0xb8f99f(0x106)]({'tag':_0xb8f99f(0x111),'attributes':{'class':['ck',_0xb8f99f(0x112),_0xb8f99f(0x10b)]},'children':[this[_0xb8f99f(0x119)],this[_0xb8f99f(0x118)]]});}[_0x39c0ad(0x11b)](){const _0x1eeb5f=_0x39c0ad,_0x17f15b=new _0x2eb9a8(this[_0x1eeb5f(0x11a)]);return _0x17f15b[_0x1eeb5f(0x113)]({'label':_0x23e169(this[_0x1eeb5f(0x11a)],_0x1eeb5f(0x10e)),'withText':!0x0,'class':_0x1eeb5f(0x107),'icon':_0x17f73c}),_0x17f15b['on'](_0x1eeb5f(0x11c),()=>{const _0x4e8316=_0x1eeb5f;this[_0x4e8316(0x10d)](_0x4e8316(0x10f));}),_0x17f15b;}[_0x39c0ad(0x11d)](){const _0x14efdd=_0x39c0ad,_0x31a39b=new _0xa776fd(this[_0x14efdd(0x11a)]);return _0x31a39b[_0x14efdd(0x106)]({'tag':_0x14efdd(0x111),'attributes':{'class':[_0x14efdd(0x10a)]},'children':[{'tag':_0x14efdd(0x111),'attributes':{'class':[_0x14efdd(0x109)]},'children':[{'tag':_0x14efdd(0x111),'attributes':{'class':[_0x14efdd(0x108)]}},{'tag':_0x14efdd(0x111),'attributes':{'class':[_0x14efdd(0x108)]}},{'tag':_0x14efdd(0x111),'attributes':{'class':[_0x14efdd(0x108)]}}]},{'text':_0x23e169(this[_0x14efdd(0x11a)],_0x14efdd(0x102))}]}),_0x31a39b;}}function _0x26d9(_0x100eaf,_0x7235d7){const _0x456328=_0x4563();return _0x26d9=function(_0x26d9e5,_0x11fe08){_0x26d9e5=_0x26d9e5-0x102;let _0x232102=_0x456328[_0x26d9e5];return _0x232102;},_0x26d9(_0x100eaf,_0x7235d7);}function _0x4563(){const _0x511f93=['AI_CHAT_IS_WRITING','5855530uwkDpM','4640334qVgPoj','13434575cWARdG','setTemplate','ck-ai-button-secondary\x20ck-ai-button-stop-generating','ck-ai-chat-controls-loader-icon-dot','ck-ai-chat-controls-loader-icon','ck-ai-chat-controls-loader','ck-reset_all','578uLSJeL','fire','AI_CHAT_STOP_GENERATING','abortPromptStream','284792upcbfm','div','ck-ai-chat-controls-loader-wrapper','set','257090juapHg','68QghYyM','270LlATHM','214647OUmyAG','_cancelButtonView','_loaderView','locale','_createCancelButtonView','execute','_createLoaderView','7cWcLbA','61JWmoNT'];_0x4563=function(){return _0x511f93;};return _0x4563();}
23
+ const _0x253e5a=_0x3eb2;(function(_0xfc5c27,_0x3f972c){const _0x17896d=_0x3eb2,_0x5090e7=_0xfc5c27();while(!![]){try{const _0x5eafb5=-parseInt(_0x17896d(0x1e7))/0x1*(parseInt(_0x17896d(0x1f1))/0x2)+parseInt(_0x17896d(0x1dc))/0x3*(parseInt(_0x17896d(0x1e0))/0x4)+-parseInt(_0x17896d(0x1d7))/0x5*(parseInt(_0x17896d(0x1ea))/0x6)+-parseInt(_0x17896d(0x1d9))/0x7*(-parseInt(_0x17896d(0x1ed))/0x8)+parseInt(_0x17896d(0x1d8))/0x9*(-parseInt(_0x17896d(0x1f5))/0xa)+-parseInt(_0x17896d(0x1ec))/0xb+parseInt(_0x17896d(0x1e5))/0xc*(parseInt(_0x17896d(0x1da))/0xd);if(_0x5eafb5===_0x3f972c)break;else _0x5090e7['push'](_0x5090e7['shift']());}catch(_0x386509){_0x5090e7['push'](_0x5090e7['shift']());}}}(_0x5a73,0x5bf33));import{ButtonView as _0x474b9e,View as _0x136fb6}from'ckeditor5/src/ui.js';import{IconStop as _0x1b7a9b}from'ckeditor5/src/icons.js';function _0x3eb2(_0x4a6a6f,_0x27969d){const _0x5a73e9=_0x5a73();return _0x3eb2=function(_0x3eb2b9,_0x204d37){_0x3eb2b9=_0x3eb2b9-0x1d6;let _0x1aba08=_0x5a73e9[_0x3eb2b9];return _0x1aba08;},_0x3eb2(_0x4a6a6f,_0x27969d);}import{getTranslation as _0x4ddd59}from'../../../aicore/utils/common-translations.js';export class AIChatControlsLoaderView extends _0x136fb6{[_0x253e5a(0x1e1)];[_0x253e5a(0x1e9)];constructor(_0x13b53c){const _0x18098d=_0x253e5a;super(_0x13b53c),this[_0x18098d(0x1e1)]=this[_0x18098d(0x1e8)](),this[_0x18098d(0x1e9)]=this[_0x18098d(0x1d6)](),this[_0x18098d(0x1e3)]({'tag':_0x18098d(0x1eb),'attributes':{'class':['ck',_0x18098d(0x1e2),_0x18098d(0x1f2)]},'children':[this[_0x18098d(0x1e9)],this[_0x18098d(0x1e1)]]});}[_0x253e5a(0x1e8)](){const _0x3b61d6=_0x253e5a,_0x428976=new _0x474b9e(this[_0x3b61d6(0x1de)]);return _0x428976[_0x3b61d6(0x1dd)]({'label':_0x4ddd59(this[_0x3b61d6(0x1de)],_0x3b61d6(0x1df)),'withText':!0x0,'class':_0x3b61d6(0x1ee),'icon':_0x1b7a9b}),_0x428976['on'](_0x3b61d6(0x1f0),()=>{const _0xafe744=_0x3b61d6;this[_0xafe744(0x1ef)](_0xafe744(0x1e4));}),_0x428976;}[_0x253e5a(0x1d6)](){const _0x4a9c84=_0x253e5a,_0x242c16=new _0x136fb6(this[_0x4a9c84(0x1de)]);return _0x242c16[_0x4a9c84(0x1e3)]({'tag':_0x4a9c84(0x1eb),'attributes':{'class':[_0x4a9c84(0x1f4)]},'children':[{'tag':_0x4a9c84(0x1eb),'attributes':{'class':[_0x4a9c84(0x1f3)]},'children':[{'tag':_0x4a9c84(0x1eb),'attributes':{'class':[_0x4a9c84(0x1e6)]}},{'tag':_0x4a9c84(0x1eb),'attributes':{'class':[_0x4a9c84(0x1e6)]}},{'tag':_0x4a9c84(0x1eb),'attributes':{'class':[_0x4a9c84(0x1e6)]}}]},{'text':_0x4ddd59(this[_0x4a9c84(0x1de)],_0x4a9c84(0x1db))}]}),_0x242c16;}}function _0x5a73(){const _0x4e70ba=['14601574EwyVHi','AI_CHAT_IS_WRITING','3ywpXxa','set','locale','AI_CHAT_STOP_GENERATING','1722976rUahew','_cancelButtonView','ck-ai-chat-controls-loader-wrapper','setTemplate','abortPromptStream','12oviFMD','ck-ai-chat-controls-loader-icon-dot','5329ghUUDN','_createCancelButtonView','_loaderView','118824GTPZze','div','4513872VWMeyA','243888NXlInZ','ck-ai-button-secondary\x20ck-ai-button-stop-generating','fire','execute','164peQsgq','ck-reset_all','ck-ai-chat-controls-loader-icon','ck-ai-chat-controls-loader','190hQeugV','_createLoaderView','160hRdTfJ','116055qRcpor','126bdlhHV'];_0x5a73=function(){return _0x4e70ba;};return _0x5a73();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x23067d=_0x3f97;(function(_0x153316,_0x2ef88b){const _0xd3f95e=_0x3f97,_0x53be0f=_0x153316();while(!![]){try{const _0x2aa56f=-parseInt(_0xd3f95e(0x17a))/0x1*(parseInt(_0xd3f95e(0x11f))/0x2)+-parseInt(_0xd3f95e(0x149))/0x3+parseInt(_0xd3f95e(0x143))/0x4+-parseInt(_0xd3f95e(0x16d))/0x5*(-parseInt(_0xd3f95e(0x16b))/0x6)+-parseInt(_0xd3f95e(0x16e))/0x7+parseInt(_0xd3f95e(0x17c))/0x8+-parseInt(_0xd3f95e(0x12a))/0x9*(-parseInt(_0xd3f95e(0x144))/0xa);if(_0x2aa56f===_0x2ef88b)break;else _0x53be0f['push'](_0x53be0f['shift']());}catch(_0x2e0176){_0x53be0f['push'](_0x53be0f['shift']());}}}(_0x7d38,0x97dab));import{Collection as _0x536faf}from'ckeditor5/src/utils.js';import{IconAI as _0x54d5a5,IconBulb as _0x5e110f,IconWeb as _0x50c83b}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x276fc9,ButtonLabelView as _0x5aa600,ButtonView as _0x4e05d0,createDropdown as _0x3ba751,IconView as _0x1f8dd1,UIModel as _0x1241d6,View as _0x421a9a}from'ckeditor5/src/ui.js';import{getTranslation as _0x987e38}from'../../../aicore/utils/common-translations.js';function _0x7d38(){const _0x56dc4b=['_createReasoningButton','webSearchActive','model','isOn','AI_CHAT_DISABLE_REASONING','_modelSelectionDropdown','setReasoning','webSearch','1053612wHMwJb','10lHDujW','tooltip','_modelNameView','span','AI_CHAT_REASONING','2800803lMpXFk','AI_CHAT_ENABLE_REASONING','clear','isVisible','ck-ai-chat-controls-button','enabled','activeModelName','_createCommandsButton','selectModel','listenTo','_reasoningButton','_commandsButton','name','AI_CHAT_ENABLE_WEB_SEARCH','bind','_createWebSearchButton','ck-ai-chat-controls__model-selection__item-description','setWebSearch','toLowerCase','log','extendTemplate','set','activeModelId','setModel','setTemplate','AI_CHAT_CAPABILITIES_NO','label','AI_CHAT_COMMANDS','_createModelNameView','Commands\x20are\x20not\x20implemented\x20yet.','AI_CHAT_DISABLE_WEB_SEARCH','reasoningActive','button','ck-ai-chat-controls__model-selection','102lKMspB','AI_CHAT_CAPABILITIES_YES','169610gIZoBG','7333578VucBFQ','ck-button__label','_createModelSelectionDropdown','locale','buttonView','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','withText','description','fire','setModelList','ck-ai-chat-controls__model-name','_modelSelectionDropdownItems','64618bwLGHB','modelSelectorVisible','1660944vSOyiG','ck-ai-chat-controls__model-selection__item-name','execute','enableModelSelector','reasoning','startsWith','2ROkZqQ','addMany','ck-ai-chat-controls-button--commands','isEnabled','createCollection','disableModelSelector','toggleReasoning','_webSearchButton','bindTemplate','text','source','14581557CBNTLW','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','modelSelectorEnabled','ck-hidden','agent','div','ck-ai-chat-controls__model-selection__item-capabilities','content','add','menuitemradio','toggleWebSearch','style','ck-ai-chat__prompt-capabilities','capabilities','AI_CHAT_SEARCH_WEB','length','_getCapabilityParts'];_0x7d38=function(){return _0x56dc4b;};return _0x7d38();}function _0x3f97(_0xc82fba,_0x149811){const _0x7d3883=_0x7d38();return _0x3f97=function(_0x3f97d7,_0x36116b){_0x3f97d7=_0x3f97d7-0x11f;let _0x21aaef=_0x7d3883[_0x3f97d7];return _0x21aaef;},_0x3f97(_0xc82fba,_0x149811);}const yo=_0x23067d(0x136),Uo=_0x23067d(0x14d),Go=_0x23067d(0x121),jo=_0x23067d(0x16a),Yo=_0x23067d(0x17d),qo=_0x23067d(0x159),zo=_0x23067d(0x130),Fo='n';export class AIChatPromptCapabilitiesView extends _0x421a9a{[_0x23067d(0x126)];[_0x23067d(0x153)];[_0x23067d(0x154)];[_0x23067d(0x140)];[_0x23067d(0x179)];[_0x23067d(0x146)];constructor(_0x5b1c48){const _0x29f3fd=_0x23067d;super(_0x5b1c48),this[_0x29f3fd(0x15e)](_0x29f3fd(0x13c),!0x1),this[_0x29f3fd(0x15e)](_0x29f3fd(0x168),!0x1),this[_0x29f3fd(0x15e)](_0x29f3fd(0x17b),!0x0),this[_0x29f3fd(0x15e)](_0x29f3fd(0x12c),!0x0),this[_0x29f3fd(0x15e)](_0x29f3fd(0x15f),null),this[_0x29f3fd(0x15e)](_0x29f3fd(0x14f),null),this[_0x29f3fd(0x140)]=this[_0x29f3fd(0x170)](),this[_0x29f3fd(0x146)]=this[_0x29f3fd(0x165)](),this[_0x29f3fd(0x126)]=this[_0x29f3fd(0x158)](),this[_0x29f3fd(0x153)]=this[_0x29f3fd(0x13b)](),this[_0x29f3fd(0x154)]=this[_0x29f3fd(0x150)](),this[_0x29f3fd(0x140)][_0x29f3fd(0x172)][_0x29f3fd(0x157)](_0x29f3fd(0x14c))['to'](this,_0x29f3fd(0x17b),_0xe6de17=>_0xe6de17),this[_0x29f3fd(0x140)][_0x29f3fd(0x172)][_0x29f3fd(0x157)](_0x29f3fd(0x145))['to'](this,_0x29f3fd(0x12c),_0x2acaeb=>_0x2acaeb?this[_0x29f3fd(0x140)][_0x29f3fd(0x172)][_0x29f3fd(0x163)]:_0x987e38(this[_0x29f3fd(0x171)],_0x29f3fd(0x173))),this[_0x29f3fd(0x140)][_0x29f3fd(0x157)](_0x29f3fd(0x122))['to'](this,_0x29f3fd(0x12c),_0x5abafa=>_0x5abafa),this[_0x29f3fd(0x126)][_0x29f3fd(0x157)](_0x29f3fd(0x13e))['to'](this,_0x29f3fd(0x13c),_0x5c5f86=>_0x5c5f86),this[_0x29f3fd(0x126)][_0x29f3fd(0x157)](_0x29f3fd(0x174))['to'](this,_0x29f3fd(0x17b),_0x4f3cb3=>!_0x4f3cb3),this[_0x29f3fd(0x126)][_0x29f3fd(0x157)](_0x29f3fd(0x145))['to'](this,_0x29f3fd(0x13c),_0x349592=>_0x987e38(this[_0x29f3fd(0x171)],_0x349592?_0x29f3fd(0x167):_0x29f3fd(0x156))),this[_0x29f3fd(0x153)][_0x29f3fd(0x157)](_0x29f3fd(0x13e))['to'](this,_0x29f3fd(0x168),_0x4c9769=>_0x4c9769),this[_0x29f3fd(0x153)][_0x29f3fd(0x157)](_0x29f3fd(0x174))['to'](this,_0x29f3fd(0x17b),_0x297ed4=>!_0x297ed4),this[_0x29f3fd(0x153)][_0x29f3fd(0x157)](_0x29f3fd(0x145))['to'](this,_0x29f3fd(0x168),_0x204ca9=>_0x987e38(this[_0x29f3fd(0x171)],_0x204ca9?_0x29f3fd(0x13f):_0x29f3fd(0x14a))),this[_0x29f3fd(0x161)]({'tag':_0x29f3fd(0x12f),'attributes':{'class':[yo]},'children':[this[_0x29f3fd(0x140)],this[_0x29f3fd(0x146)],this[_0x29f3fd(0x126)],this[_0x29f3fd(0x153)],this[_0x29f3fd(0x154)]]}),this[_0x29f3fd(0x179)]=new _0x536faf(),_0x276fc9(this[_0x29f3fd(0x140)],this[_0x29f3fd(0x179)]);}[_0x23067d(0x177)](_0x4c190f,_0x20f00e){const _0x40501c=_0x23067d;if(this[_0x40501c(0x15e)](_0x40501c(0x17b),!(_0x20f00e&&_0x4c190f[_0x40501c(0x139)]<=0x1)),this[_0x40501c(0x179)][_0x40501c(0x14b)](),_0x4c190f?.[_0x40501c(0x139)])for(const _0xc58aff of _0x4c190f){const _0x449c58=new _0x1241d6({'label':_0xc58aff[_0x40501c(0x155)],'withText':!0x0,'role':_0x40501c(0x133),'id':_0xc58aff['id'],'model':_0xc58aff});_0x449c58[_0x40501c(0x157)](_0x40501c(0x13e))['to'](this,_0x40501c(0x15f),_0x6d64e1=>_0x6d64e1===_0xc58aff['id']),this[_0x40501c(0x179)][_0x40501c(0x132)]({'type':_0x40501c(0x169),'model':_0x449c58,'labelView':new Js(this[_0x40501c(0x171)],_0xc58aff)});}}[_0x23067d(0x15a)](_0x3a322e){const _0xcbc7ea=_0x23067d;this[_0xcbc7ea(0x15e)](_0xcbc7ea(0x13c),_0x3a322e);}[_0x23067d(0x141)](_0x56b59a){const _0x45c722=_0x23067d;this[_0x45c722(0x15e)](_0x45c722(0x168),_0x56b59a);}[_0x23067d(0x160)](_0x1a73a7){const _0x64640e=_0x23067d;if(!_0x1a73a7)return;this[_0x64640e(0x15f)]=_0x1a73a7['id'],this[_0x64640e(0x14f)]=_0x1a73a7[_0x64640e(0x155)]||_0x1a73a7['id'],this[_0x64640e(0x140)][_0x64640e(0x172)][_0x64640e(0x15e)](_0x64640e(0x163),_0x1a73a7[_0x64640e(0x155)]),this[_0x64640e(0x140)][_0x64640e(0x172)][_0x64640e(0x15e)](_0x64640e(0x145),_0x1a73a7[_0x64640e(0x155)]);const _0x4200c0=_0x1a73a7[_0x64640e(0x137)][_0x64640e(0x142)]?.[_0x64640e(0x14e)]??!0x1;this[_0x64640e(0x15e)](_0x64640e(0x13c),!0x1),this[_0x64640e(0x126)][_0x64640e(0x15e)](_0x64640e(0x13e),!0x1),this[_0x64640e(0x126)][_0x64640e(0x15e)](_0x64640e(0x122),_0x4200c0),this[_0x64640e(0x126)][_0x64640e(0x15e)](_0x64640e(0x14c),_0x4200c0);const _0x5b4561=_0x1a73a7[_0x64640e(0x137)][_0x64640e(0x180)]?.[_0x64640e(0x14e)]??!0x1;this[_0x64640e(0x15e)](_0x64640e(0x168),!0x1),this[_0x64640e(0x153)][_0x64640e(0x15e)](_0x64640e(0x13e),!0x1),this[_0x64640e(0x153)][_0x64640e(0x15e)](_0x64640e(0x122),_0x5b4561),this[_0x64640e(0x153)][_0x64640e(0x15e)](_0x64640e(0x14c),_0x5b4561);}[_0x23067d(0x17f)](){const _0x3bd0f6=_0x23067d;this[_0x3bd0f6(0x15e)](_0x3bd0f6(0x12c),!0x0),this[_0x3bd0f6(0x15e)](_0x3bd0f6(0x17b),!0x0);}[_0x23067d(0x124)](_0x1fe4b1){const _0x136264=_0x23067d;this[_0x136264(0x15e)](_0x136264(0x12c),!0x1),_0x1fe4b1&&this[_0x136264(0x15e)](_0x136264(0x17b),!0x1);}[_0x23067d(0x158)](){const _0x4f8a99=_0x23067d,_0x2ca694=new _0x4e05d0();return _0x2ca694[_0x4f8a99(0x15e)]({'label':_0x987e38(this[_0x4f8a99(0x171)],_0x4f8a99(0x138)),'icon':_0x50c83b,'class':Uo,'isToggleable':!0x0,'tooltipPosition':Fo}),_0x2ca694['on'](_0x4f8a99(0x17e),()=>{const _0x4870ec=_0x4f8a99;this[_0x4870ec(0x176)](_0x4870ec(0x134));}),_0x2ca694;}[_0x23067d(0x13b)](){const _0x5ad203=_0x23067d,_0x476310=new _0x4e05d0();return _0x476310[_0x5ad203(0x15e)]({'label':_0x987e38(this[_0x5ad203(0x171)],_0x5ad203(0x148)),'icon':_0x5e110f,'class':Uo,'isToggleable':!0x0,'tooltipPosition':Fo}),_0x476310['on'](_0x5ad203(0x17e),()=>{const _0x47d5bf=_0x5ad203;this[_0x47d5bf(0x176)](_0x47d5bf(0x125));}),_0x476310;}[_0x23067d(0x150)](){const _0x87a658=_0x23067d,_0x1ec238=new _0x4e05d0();return _0x1ec238[_0x87a658(0x15e)]({'label':_0x987e38(this[_0x87a658(0x171)],_0x87a658(0x164)),'icon':_0x54d5a5,'withText':!0x0,'class':Uo,'isToggleable':!0x0,'tooltip':_0x987e38(this[_0x87a658(0x171)],_0x87a658(0x164)),'tooltipPosition':Fo}),_0x1ec238[_0x87a658(0x15d)]({'attributes':{'class':[Go]}}),_0x1ec238['on'](_0x87a658(0x17e),()=>{const _0x458c25=_0x87a658;console[_0x458c25(0x15c)](_0x458c25(0x166)),alert(_0x458c25(0x166));}),_0x1ec238;}[_0x23067d(0x170)](){const _0x412f81=_0x23067d,_0x28188c=_0x3ba751(this[_0x412f81(0x171)]);return _0x28188c[_0x412f81(0x15e)]({'panelPosition':'ne','class':[jo]}),_0x28188c[_0x412f81(0x172)][_0x412f81(0x15e)]({'label':_0x987e38(this[_0x412f81(0x171)],_0x412f81(0x12b)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':Fo}),this[_0x412f81(0x152)](_0x28188c,_0x412f81(0x17e),_0x4cd2c8=>{const _0x138a66=_0x412f81;this[_0x138a66(0x176)](_0x138a66(0x151),_0x4cd2c8[_0x138a66(0x129)][_0x138a66(0x13d)]);}),_0x28188c;}[_0x23067d(0x165)](){const _0x145082=_0x23067d,_0x136105=new Jo(this[_0x145082(0x171)]);return _0x136105[_0x145082(0x157)](_0x145082(0x128))['to'](this,_0x145082(0x14f),_0x479a94=>_0x479a94??''),_0x136105[_0x145082(0x157)](_0x145082(0x14c))['to'](this,_0x145082(0x17b),this,_0x145082(0x14f),(_0x1d8a55,_0x894ccb)=>!_0x1d8a55&&!_0x894ccb?.[_0x145082(0x15b)]()[_0x145082(0x181)](_0x145082(0x12e))),_0x136105;}}class Js extends _0x5aa600{constructor(_0x3d5f4a,_0x4b0e62){const _0x3527a0=_0x23067d;super();const _0x211c91=this[_0x3527a0(0x127)],_0x267164=this[_0x3527a0(0x123)]();this[_0x3527a0(0x161)]({'tag':_0x3527a0(0x12f),'attributes':{'class':['ck',_0x3527a0(0x16f)],'style':_0x211c91['to'](_0x3527a0(0x135)),'id':_0x211c91['to']('id')},'children':[{'tag':_0x3527a0(0x12f),'attributes':{'class':[Yo]},'children':[{'text':_0x211c91['to'](_0x3527a0(0x128))}]},{'tag':_0x3527a0(0x12f),'attributes':{'class':[qo]},'children':[{'tag':_0x3527a0(0x147),'children':[{'text':_0x4b0e62[_0x3527a0(0x175)]}]}]},{'tag':_0x3527a0(0x12f),'attributes':{'class':[zo]},'children':_0x267164}]}),_0x267164[_0x3527a0(0x120)](this[_0x3527a0(0x13a)](_0x3d5f4a,_0x50c83b,_0x3527a0(0x138),_0x4b0e62[_0x3527a0(0x137)][_0x3527a0(0x142)]?.[_0x3527a0(0x14e)]??!0x1)),_0x267164[_0x3527a0(0x120)](this[_0x3527a0(0x13a)](_0x3d5f4a,_0x5e110f,_0x3527a0(0x148),_0x4b0e62[_0x3527a0(0x137)][_0x3527a0(0x180)]?.[_0x3527a0(0x14e)]??!0x1));}[_0x23067d(0x13a)](_0x4badd6,_0xd51b6c,_0x4ad453,_0x3efd45){const _0x578c53=_0x23067d,_0x47aa48=new _0x1f8dd1();_0x47aa48[_0x578c53(0x131)]=_0xd51b6c;const _0x537001=new _0x421a9a(_0x4badd6);_0x537001[_0x578c53(0x161)]({'tag':_0x578c53(0x147),'children':[{'text':_0x987e38(_0x4badd6,_0x4ad453)+':\x20'}]});const _0x45ebfb=new _0x421a9a(_0x4badd6);return _0x45ebfb[_0x578c53(0x161)]({'tag':_0x578c53(0x147),'children':[{'text':_0x987e38(_0x4badd6,_0x3efd45?_0x578c53(0x16c):_0x578c53(0x162))}]}),[_0x47aa48,_0x537001,_0x45ebfb];}}class Jo extends _0x421a9a{constructor(_0x21a1c5){const _0x2d9735=_0x23067d;super(_0x21a1c5),this[_0x2d9735(0x15e)](_0x2d9735(0x128),void 0x0),this[_0x2d9735(0x15e)](_0x2d9735(0x14c),!0x0);const _0x4c2eba=this[_0x2d9735(0x127)];this[_0x2d9735(0x161)]({'tag':_0x2d9735(0x147),'attributes':{'class':['ck',_0x2d9735(0x178),_0x4c2eba['if'](_0x2d9735(0x14c),_0x2d9735(0x12d),_0x502f05=>!_0x502f05)]},'children':[{'text':_0x4c2eba['to'](_0x2d9735(0x128))}]});}}
23
+ const _0x40fa94=_0x466d;(function(_0x49fab8,_0x2eec26){const _0x19becf=_0x466d,_0x1cebee=_0x49fab8();while(!![]){try{const _0x85838=-parseInt(_0x19becf(0x12a))/0x1+parseInt(_0x19becf(0x12c))/0x2+parseInt(_0x19becf(0xe3))/0x3*(parseInt(_0x19becf(0xd2))/0x4)+parseInt(_0x19becf(0x107))/0x5+parseInt(_0x19becf(0xd5))/0x6+parseInt(_0x19becf(0x105))/0x7*(-parseInt(_0x19becf(0xe5))/0x8)+-parseInt(_0x19becf(0xef))/0x9;if(_0x85838===_0x2eec26)break;else _0x1cebee['push'](_0x1cebee['shift']());}catch(_0x2e9d6c){_0x1cebee['push'](_0x1cebee['shift']());}}}(_0x4ed7,0xe2ad3));import{Collection as _0x20e192}from'ckeditor5/src/utils.js';import{IconAI as _0x34c174,IconBulb as _0x16fd0e,IconWeb as _0x294338}from'@ckeditor/ckeditor5-icons';function _0x4ed7(){const _0x6da2ee=['reasoning','startsWith','locale','ck-hidden','27QUGDCQ','_modelSelectionDropdown','970336nJiLgU','modelSelectorEnabled','content','_getCapabilityParts','AI_CHAT_CAPABILITIES_NO','_webSearchButton','setModel','webSearch','_createModelSelectionDropdown','setTemplate','1386783xhwVpF','_modelSelectionDropdownItems','style','length','_commandsButton','disableModelSelector','capabilities','buttonView','agent','AI_CHAT_REASONING','execute','ck-ai-chat-controls__model-selection__item-name','source','activeModelId','webSearchActive','_reasoningButton','description','selectModel','isEnabled','toggleReasoning','AI_CHAT_SEARCH_WEB','model','56IxVzTr','add','5682735IzwAmj','isVisible','ck-ai-chat-controls__model-name','bindTemplate','ck-ai-chat-controls__model-selection__item-description','_createModelNameView','setModelList','createCollection','setWebSearch','addMany','AI_CHAT_DISABLE_REASONING','bind','_createWebSearchButton','enableModelSelector','ck-ai-chat-controls-button--commands','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','text','toLowerCase','_modelNameView','name','_createReasoningButton','_createCommandsButton','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','isOn','ck-ai-chat-controls__model-selection__item-capabilities','AI_CHAT_CAPABILITIES_YES','AI_CHAT_COMMANDS','div','AI_CHAT_ENABLE_WEB_SEARCH','toggleWebSearch','button','listenTo','reasoningActive','extendTemplate','ck-ai-chat__prompt-capabilities','1747126YTQNlp','ck-ai-chat-controls__model-selection','3657384gOUjRg','withText','span','AI_CHAT_ENABLE_REASONING','Commands\x20are\x20not\x20implemented\x20yet.','setReasoning','enabled','ck-button__label','24844dJjZub','fire','clear','4673268scBUwW','set','modelSelectorVisible','activeModelName','log','tooltip','menuitemradio','ck-ai-chat-controls-button','label','AI_CHAT_DISABLE_WEB_SEARCH'];_0x4ed7=function(){return _0x6da2ee;};return _0x4ed7();}import{addListToDropdown as _0x492efe,ButtonLabelView as _0x52aa41,ButtonView as _0x3bae8a,createDropdown as _0x913079,IconView as _0x58437a,UIModel as _0x2ab8ec,View as _0x4c3299}from'ckeditor5/src/ui.js';import{getTranslation as _0x3b7772}from'../../../aicore/utils/common-translations.js';function _0x466d(_0x298772,_0x3c6045){const _0x4ed7b9=_0x4ed7();return _0x466d=function(_0x466d8f,_0x553a5c){_0x466d8f=_0x466d8f-0xcb;let _0x43206d=_0x4ed7b9[_0x466d8f];return _0x43206d;},_0x466d(_0x298772,_0x3c6045);}const yo=_0x40fa94(0x129),Uo=_0x40fa94(0xdc),Go=_0x40fa94(0x115),jo=_0x40fa94(0x12b),Yo=_0x40fa94(0xfa),qo=_0x40fa94(0x10b),zo=_0x40fa94(0x11f),Fo='n';export class AIChatPromptCapabilitiesView extends _0x4c3299{[_0x40fa94(0xea)];[_0x40fa94(0xfe)];[_0x40fa94(0xf3)];[_0x40fa94(0xe4)];[_0x40fa94(0xf0)];[_0x40fa94(0x119)];constructor(_0x5667d9){const _0x1bc049=_0x40fa94;super(_0x5667d9),this[_0x1bc049(0xd6)](_0x1bc049(0xfd),!0x1),this[_0x1bc049(0xd6)](_0x1bc049(0x127),!0x1),this[_0x1bc049(0xd6)](_0x1bc049(0xd7),!0x0),this[_0x1bc049(0xd6)](_0x1bc049(0xe6),!0x0),this[_0x1bc049(0xd6)](_0x1bc049(0xfc),null),this[_0x1bc049(0xd6)](_0x1bc049(0xd8),null),this[_0x1bc049(0xe4)]=this[_0x1bc049(0xed)](),this[_0x1bc049(0x119)]=this[_0x1bc049(0x10c)](),this[_0x1bc049(0xea)]=this[_0x1bc049(0x113)](),this[_0x1bc049(0xfe)]=this[_0x1bc049(0x11b)](),this[_0x1bc049(0xf3)]=this[_0x1bc049(0x11c)](),this[_0x1bc049(0xe4)][_0x1bc049(0xf6)][_0x1bc049(0x112)](_0x1bc049(0x108))['to'](this,_0x1bc049(0xd7),_0x28751e=>_0x28751e),this[_0x1bc049(0xe4)][_0x1bc049(0xf6)][_0x1bc049(0x112)](_0x1bc049(0xda))['to'](this,_0x1bc049(0xe6),_0xe7f657=>_0xe7f657?this[_0x1bc049(0xe4)][_0x1bc049(0xf6)][_0x1bc049(0xdd)]:_0x3b7772(this[_0x1bc049(0xe1)],_0x1bc049(0x116))),this[_0x1bc049(0xe4)][_0x1bc049(0x112)](_0x1bc049(0x101))['to'](this,_0x1bc049(0xe6),_0x304a57=>_0x304a57),this[_0x1bc049(0xea)][_0x1bc049(0x112)](_0x1bc049(0x11e))['to'](this,_0x1bc049(0xfd),_0x4ac01d=>_0x4ac01d),this[_0x1bc049(0xea)][_0x1bc049(0x112)](_0x1bc049(0xcb))['to'](this,_0x1bc049(0xd7),_0x40afd5=>!_0x40afd5),this[_0x1bc049(0xea)][_0x1bc049(0x112)](_0x1bc049(0xda))['to'](this,_0x1bc049(0xfd),_0x46f7d3=>_0x3b7772(this[_0x1bc049(0xe1)],_0x46f7d3?_0x1bc049(0xde):_0x1bc049(0x123))),this[_0x1bc049(0xfe)][_0x1bc049(0x112)](_0x1bc049(0x11e))['to'](this,_0x1bc049(0x127),_0x5842d9=>_0x5842d9),this[_0x1bc049(0xfe)][_0x1bc049(0x112)](_0x1bc049(0xcb))['to'](this,_0x1bc049(0xd7),_0x5f0939=>!_0x5f0939),this[_0x1bc049(0xfe)][_0x1bc049(0x112)](_0x1bc049(0xda))['to'](this,_0x1bc049(0x127),_0x72cc3b=>_0x3b7772(this[_0x1bc049(0xe1)],_0x72cc3b?_0x1bc049(0x111):_0x1bc049(0xcd))),this[_0x1bc049(0xee)]({'tag':_0x1bc049(0x122),'attributes':{'class':[yo]},'children':[this[_0x1bc049(0xe4)],this[_0x1bc049(0x119)],this[_0x1bc049(0xea)],this[_0x1bc049(0xfe)],this[_0x1bc049(0xf3)]]}),this[_0x1bc049(0xf0)]=new _0x20e192(),_0x492efe(this[_0x1bc049(0xe4)],this[_0x1bc049(0xf0)]);}[_0x40fa94(0x10d)](_0x21da8a,_0x44c964){const _0x5688da=_0x40fa94;if(this[_0x5688da(0xd6)](_0x5688da(0xd7),!(_0x44c964&&_0x21da8a[_0x5688da(0xf2)]<=0x1)),this[_0x5688da(0xf0)][_0x5688da(0xd4)](),_0x21da8a?.[_0x5688da(0xf2)])for(const _0x281f35 of _0x21da8a){const _0x33fda5=new _0x2ab8ec({'label':_0x281f35[_0x5688da(0x11a)],'withText':!0x0,'role':_0x5688da(0xdb),'id':_0x281f35['id'],'model':_0x281f35});_0x33fda5[_0x5688da(0x112)](_0x5688da(0x11e))['to'](this,_0x5688da(0xfc),_0x23f744=>_0x23f744===_0x281f35['id']),this[_0x5688da(0xf0)][_0x5688da(0x106)]({'type':_0x5688da(0x125),'model':_0x33fda5,'labelView':new Us(this[_0x5688da(0xe1)],_0x281f35)});}}[_0x40fa94(0x10f)](_0x2e4a18){const _0x448237=_0x40fa94;this[_0x448237(0xd6)](_0x448237(0xfd),_0x2e4a18);}[_0x40fa94(0xcf)](_0xd85c84){const _0x10952b=_0x40fa94;this[_0x10952b(0xd6)](_0x10952b(0x127),_0xd85c84);}[_0x40fa94(0xeb)](_0x20ead0){const _0x5e8ee2=_0x40fa94;if(!_0x20ead0)return;this[_0x5e8ee2(0xfc)]=_0x20ead0['id'],this[_0x5e8ee2(0xd8)]=_0x20ead0[_0x5e8ee2(0x11a)]||_0x20ead0['id'],this[_0x5e8ee2(0xe4)][_0x5e8ee2(0xf6)][_0x5e8ee2(0xd6)](_0x5e8ee2(0xdd),_0x20ead0[_0x5e8ee2(0x11a)]),this[_0x5e8ee2(0xe4)][_0x5e8ee2(0xf6)][_0x5e8ee2(0xd6)](_0x5e8ee2(0xda),_0x20ead0[_0x5e8ee2(0x11a)]);const _0x85a768=_0x20ead0[_0x5e8ee2(0xf5)][_0x5e8ee2(0xec)]?.[_0x5e8ee2(0xd0)]??!0x1;this[_0x5e8ee2(0xd6)](_0x5e8ee2(0xfd),!0x1),this[_0x5e8ee2(0xea)][_0x5e8ee2(0xd6)](_0x5e8ee2(0x11e),!0x1),this[_0x5e8ee2(0xea)][_0x5e8ee2(0xd6)](_0x5e8ee2(0x101),_0x85a768),this[_0x5e8ee2(0xea)][_0x5e8ee2(0xd6)](_0x5e8ee2(0x108),_0x85a768);const _0x219608=_0x20ead0[_0x5e8ee2(0xf5)][_0x5e8ee2(0xdf)]?.[_0x5e8ee2(0xd0)]??!0x1;this[_0x5e8ee2(0xd6)](_0x5e8ee2(0x127),!0x1),this[_0x5e8ee2(0xfe)][_0x5e8ee2(0xd6)](_0x5e8ee2(0x11e),!0x1),this[_0x5e8ee2(0xfe)][_0x5e8ee2(0xd6)](_0x5e8ee2(0x101),_0x219608),this[_0x5e8ee2(0xfe)][_0x5e8ee2(0xd6)](_0x5e8ee2(0x108),_0x219608);}[_0x40fa94(0x114)](){const _0xc53ab3=_0x40fa94;this[_0xc53ab3(0xd6)](_0xc53ab3(0xe6),!0x0),this[_0xc53ab3(0xd6)](_0xc53ab3(0xd7),!0x0);}[_0x40fa94(0xf4)](_0x589a3b){const _0x18f5a9=_0x40fa94;this[_0x18f5a9(0xd6)](_0x18f5a9(0xe6),!0x1),_0x589a3b&&this[_0x18f5a9(0xd6)](_0x18f5a9(0xd7),!0x1);}[_0x40fa94(0x113)](){const _0x4be035=_0x40fa94,_0xcbfc39=new _0x3bae8a();return _0xcbfc39[_0x4be035(0xd6)]({'label':_0x3b7772(this[_0x4be035(0xe1)],_0x4be035(0x103)),'icon':_0x294338,'class':Uo,'isToggleable':!0x0,'tooltipPosition':Fo}),_0xcbfc39['on'](_0x4be035(0xf9),()=>{const _0x2c80a7=_0x4be035;this[_0x2c80a7(0xd3)](_0x2c80a7(0x124));}),_0xcbfc39;}[_0x40fa94(0x11b)](){const _0x5ec8a8=_0x40fa94,_0x813eed=new _0x3bae8a();return _0x813eed[_0x5ec8a8(0xd6)]({'label':_0x3b7772(this[_0x5ec8a8(0xe1)],_0x5ec8a8(0xf8)),'icon':_0x16fd0e,'class':Uo,'isToggleable':!0x0,'tooltipPosition':Fo}),_0x813eed['on'](_0x5ec8a8(0xf9),()=>{const _0x3bf48e=_0x5ec8a8;this[_0x3bf48e(0xd3)](_0x3bf48e(0x102));}),_0x813eed;}[_0x40fa94(0x11c)](){const _0x3480be=_0x40fa94,_0x4ff296=new _0x3bae8a();return _0x4ff296[_0x3480be(0xd6)]({'label':_0x3b7772(this[_0x3480be(0xe1)],_0x3480be(0x121)),'icon':_0x34c174,'withText':!0x0,'class':Uo,'isToggleable':!0x0,'tooltip':_0x3b7772(this[_0x3480be(0xe1)],_0x3480be(0x121)),'tooltipPosition':Fo}),_0x4ff296[_0x3480be(0x128)]({'attributes':{'class':[Go]}}),_0x4ff296['on'](_0x3480be(0xf9),()=>{const _0x320d92=_0x3480be;console[_0x320d92(0xd9)](_0x320d92(0xce)),alert(_0x320d92(0xce));}),_0x4ff296;}[_0x40fa94(0xed)](){const _0x2c8c98=_0x40fa94,_0x391a61=_0x913079(this[_0x2c8c98(0xe1)]);return _0x391a61[_0x2c8c98(0xd6)]({'panelPosition':'ne','class':[jo]}),_0x391a61[_0x2c8c98(0xf6)][_0x2c8c98(0xd6)]({'label':_0x3b7772(this[_0x2c8c98(0xe1)],_0x2c8c98(0x11d)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':Fo}),this[_0x2c8c98(0x126)](_0x391a61,_0x2c8c98(0xf9),_0x2fbdbc=>{const _0x241c99=_0x2c8c98;this[_0x241c99(0xd3)](_0x241c99(0x100),_0x2fbdbc[_0x241c99(0xfb)][_0x241c99(0x104)]);}),_0x391a61;}[_0x40fa94(0x10c)](){const _0x4480fe=_0x40fa94,_0x3aa7eb=new Jo(this[_0x4480fe(0xe1)]);return _0x3aa7eb[_0x4480fe(0x112)](_0x4480fe(0x117))['to'](this,_0x4480fe(0xd8),_0x2b33d1=>_0x2b33d1??''),_0x3aa7eb[_0x4480fe(0x112)](_0x4480fe(0x108))['to'](this,_0x4480fe(0xd7),this,_0x4480fe(0xd8),(_0x87a588,_0x21f6c2)=>!_0x87a588&&!_0x21f6c2?.[_0x4480fe(0x118)]()[_0x4480fe(0xe0)](_0x4480fe(0xf7))),_0x3aa7eb;}}class Us extends _0x52aa41{constructor(_0x32ab17,_0x276cfe){const _0x28026d=_0x40fa94;super();const _0x2a3632=this[_0x28026d(0x10a)],_0x5e0fde=this[_0x28026d(0x10e)]();this[_0x28026d(0xee)]({'tag':_0x28026d(0x122),'attributes':{'class':['ck',_0x28026d(0xd1)],'style':_0x2a3632['to'](_0x28026d(0xf1)),'id':_0x2a3632['to']('id')},'children':[{'tag':_0x28026d(0x122),'attributes':{'class':[Yo]},'children':[{'text':_0x2a3632['to'](_0x28026d(0x117))}]},{'tag':_0x28026d(0x122),'attributes':{'class':[qo]},'children':[{'tag':_0x28026d(0xcc),'children':[{'text':_0x276cfe[_0x28026d(0xff)]}]}]},{'tag':_0x28026d(0x122),'attributes':{'class':[zo]},'children':_0x5e0fde}]}),_0x5e0fde[_0x28026d(0x110)](this[_0x28026d(0xe8)](_0x32ab17,_0x294338,_0x28026d(0x103),_0x276cfe[_0x28026d(0xf5)][_0x28026d(0xec)]?.[_0x28026d(0xd0)]??!0x1)),_0x5e0fde[_0x28026d(0x110)](this[_0x28026d(0xe8)](_0x32ab17,_0x16fd0e,_0x28026d(0xf8),_0x276cfe[_0x28026d(0xf5)][_0x28026d(0xdf)]?.[_0x28026d(0xd0)]??!0x1));}[_0x40fa94(0xe8)](_0x575fb7,_0x4deff5,_0x91c535,_0x12d71a){const _0x4ba3db=_0x40fa94,_0x2321cd=new _0x58437a();_0x2321cd[_0x4ba3db(0xe7)]=_0x4deff5;const _0x7d130f=new _0x4c3299(_0x575fb7);_0x7d130f[_0x4ba3db(0xee)]({'tag':_0x4ba3db(0xcc),'children':[{'text':_0x3b7772(_0x575fb7,_0x91c535)+':\x20'}]});const _0x501d5b=new _0x4c3299(_0x575fb7);return _0x501d5b[_0x4ba3db(0xee)]({'tag':_0x4ba3db(0xcc),'children':[{'text':_0x3b7772(_0x575fb7,_0x12d71a?_0x4ba3db(0x120):_0x4ba3db(0xe9))}]}),[_0x2321cd,_0x7d130f,_0x501d5b];}}class Jo extends _0x4c3299{constructor(_0x572858){const _0x591d1e=_0x40fa94;super(_0x572858),this[_0x591d1e(0xd6)](_0x591d1e(0x117),void 0x0),this[_0x591d1e(0xd6)](_0x591d1e(0x108),!0x0);const _0x1df650=this[_0x591d1e(0x10a)];this[_0x591d1e(0xee)]({'tag':_0x591d1e(0xcc),'attributes':{'class':['ck',_0x591d1e(0x109),_0x1df650['if'](_0x591d1e(0x108),_0x591d1e(0xe2),_0x34b86c=>!_0x34b86c)]},'children':[{'text':_0x1df650['to'](_0x591d1e(0x117))}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x29c8a2=_0x18cd;(function(_0x29f4ea,_0x3c39bb){const _0x747b2c=_0x18cd,_0x29a8c7=_0x29f4ea();while(!![]){try{const _0x30fc8e=-parseInt(_0x747b2c(0x12c))/0x1*(-parseInt(_0x747b2c(0x139))/0x2)+parseInt(_0x747b2c(0x132))/0x3+parseInt(_0x747b2c(0x120))/0x4+parseInt(_0x747b2c(0x140))/0x5+parseInt(_0x747b2c(0x113))/0x6+parseInt(_0x747b2c(0x13a))/0x7*(parseInt(_0x747b2c(0x12b))/0x8)+parseInt(_0x747b2c(0x13d))/0x9*(-parseInt(_0x747b2c(0x123))/0xa);if(_0x30fc8e===_0x3c39bb)break;else _0x29a8c7['push'](_0x29a8c7['shift']());}catch(_0x2d20e8){_0x29a8c7['push'](_0x29a8c7['shift']());}}}(_0x4ff3,0xd286d));import{IconSubmit as _0x4dd20c}from'ckeditor5/src/icons.js';import{ButtonView as _0xac7471,AutocompleteView as _0x362bd1,createLabeledTextarea as _0x195b8b}from'ckeditor5/src/ui.js';import{global as _0x421589,isVisible as _0x71a642,Rect as _0x459d62,ResizeObserver as _0x3ca444}from'ckeditor5/src/utils.js';import{getTranslation as _0x24f55f}from'../../../aicore/utils/common-translations.js';function _0x4ff3(){const _0x140cc3=['update','isEnabled','uiLanguageDirection','_addContextButtonView','submit','2838778nseRbs','161QUQbuB','fieldView','focusableChildren','28040094fFugoJ','isEmpty','calc(','2022340LGRijh','minRows','extendTemplate','maxRows','render','AI_CHAT_LABEL_SUBMIT','keystrokes','submitButtonView','MIN_ROWS','style','AI_CHAT_PROMPT_EMPTY_ERROR','window','destroy','enter','setIsUploadInProgress','bind','setPlaceholderText','excludeScrollbarsAndBorders','_createSubmitButton','element','6844590KbvWyF','requestAnimationFrame','placeholder','set','_queryViewResizeObserver','sendUserMessage','right','trim','fire','_setUpAddContextButtonPositioning','execute','rtl','errorText','1609376owFkOX','width','ck-ai-chat__prompt-input','10eMmRyz','value','add','MAX_ROWS','queryView','left','reset','target','155952QkIvnx','1yfTjHg','px\x20-\x20var(--ck-spacing-tiny))','locale','hasError','ck-ai-chat__prompt-submit-button','fieldWrapperChildren','487665eJimnq','isUploadInProgress'];_0x4ff3=function(){return _0x140cc3;};return _0x4ff3();}function _0x18cd(_0x4616ec,_0x2dd9b9){const _0x4ff39f=_0x4ff3();return _0x18cd=function(_0x18cd6e,_0x500afe){_0x18cd6e=_0x18cd6e-0x105;let _0x1a735d=_0x4ff39f[_0x18cd6e];return _0x1a735d;},_0x18cd(_0x4616ec,_0x2dd9b9);}import{AIChatPromptSuggestionsListView as _0x333bb5}from'./aichatpromptsuggestionslistview.js';import{escape as _0x25687d}from'es-toolkit/compat';export class AIChatPromptInputView extends _0x362bd1{[_0x29c8a2(0x106)];static [_0x29c8a2(0x107)]=0x1;static [_0x29c8a2(0x126)]=0xc;[_0x29c8a2(0x137)];[_0x29c8a2(0x117)];constructor(_0x30e488,_0xf75216){const _0x3fac03=_0x29c8a2;super(_0x30e488,{'queryView':{'label':'','creator':_0x195b8b,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x333bb5(_0x30e488),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x3fac03(0x116)](_0x3fac03(0x13e),!0x0),this[_0x3fac03(0x116)](_0x3fac03(0x133),!0x1),this[_0x3fac03(0x137)]=_0xf75216,this[_0x3fac03(0x117)]=null,this[_0x3fac03(0x127)][_0x3fac03(0x13b)][_0x3fac03(0x141)]=AIChatPromptInputView[_0x3fac03(0x107)],this[_0x3fac03(0x127)][_0x3fac03(0x13b)][_0x3fac03(0x143)]=AIChatPromptInputView[_0x3fac03(0x126)],this[_0x3fac03(0x127)][_0x3fac03(0x131)][_0x3fac03(0x125)](this[_0x3fac03(0x137)]),this[_0x3fac03(0x11c)](),this[_0x3fac03(0x142)]({'attributes':{'class':['ck',_0x3fac03(0x122)]}}),this[_0x3fac03(0x106)]=this[_0x3fac03(0x111)](),this[_0x3fac03(0x106)][_0x3fac03(0x10e)](_0x3fac03(0x135))['to'](this,_0x3fac03(0x13e),this,_0x3fac03(0x133),(_0xd1f294,_0x20746d)=>!_0xd1f294&&!_0x20746d),this[_0x3fac03(0x13c)][_0x3fac03(0x125)](this[_0x3fac03(0x106)]);}[_0x29c8a2(0x144)](){const _0x3934c5=_0x29c8a2;super[_0x3934c5(0x144)](),this[_0x3934c5(0x127)][_0x3934c5(0x131)][_0x3934c5(0x125)](this[_0x3934c5(0x106)]),this[_0x3934c5(0x105)][_0x3934c5(0x116)](_0x3934c5(0x10c),(_0x30248a,_0x58de50)=>{const _0x172bab=_0x3934c5;this[_0x172bab(0x133)]||this[_0x172bab(0x13e)]||_0x30248a[_0x172bab(0x12a)]==this[_0x172bab(0x127)][_0x172bab(0x13b)][_0x172bab(0x112)]&&(this[_0x172bab(0x138)](),_0x58de50());}),this[_0x3934c5(0x127)][_0x3934c5(0x13b)]['on'](_0x3934c5(0x134),()=>{const _0x3ec347=_0x3934c5;this[_0x3ec347(0x13e)]=''===this[_0x3ec347(0x127)][_0x3ec347(0x13b)][_0x3ec347(0x112)][_0x3ec347(0x124)]?.[_0x3ec347(0x11a)]();});}[_0x29c8a2(0x10b)](){const _0x403bb7=_0x29c8a2;super[_0x403bb7(0x10b)](),this[_0x403bb7(0x117)]&&this[_0x403bb7(0x117)][_0x403bb7(0x10b)]();}[_0x29c8a2(0x138)](){const _0x2f2ba5=_0x29c8a2,_0x3735dd=this[_0x2f2ba5(0x127)][_0x2f2ba5(0x13b)][_0x2f2ba5(0x112)][_0x2f2ba5(0x124)]?.[_0x2f2ba5(0x11a)]();if(!_0x3735dd)return this[_0x2f2ba5(0x127)][_0x2f2ba5(0x11f)]=_0x24f55f(this[_0x2f2ba5(0x12e)],_0x2f2ba5(0x109)),void(this[_0x2f2ba5(0x127)][_0x2f2ba5(0x13b)][_0x2f2ba5(0x12f)]=!0x0);this[_0x2f2ba5(0x127)][_0x2f2ba5(0x13b)][_0x2f2ba5(0x12f)]=!0x1;const _0x220d47=_0x25687d(_0x3735dd);this[_0x2f2ba5(0x11b)](_0x2f2ba5(0x118),_0x220d47),this[_0x2f2ba5(0x127)][_0x2f2ba5(0x13b)][_0x2f2ba5(0x129)]();}[_0x29c8a2(0x10f)](_0x5ae705){const _0x17511c=_0x29c8a2;this[_0x17511c(0x127)][_0x17511c(0x13b)][_0x17511c(0x116)](_0x17511c(0x115),_0x5ae705);}[_0x29c8a2(0x111)](){const _0x37a215=_0x29c8a2,_0xf6587a=new _0xac7471(this[_0x37a215(0x12e)]);return _0xf6587a[_0x37a215(0x116)]({'icon':_0x4dd20c,'label':_0x24f55f(this[_0x37a215(0x12e)],_0x37a215(0x145)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x37a215(0x130),'isEnabled':!0x1}),_0xf6587a['on'](_0x37a215(0x11d),()=>{const _0x22badf=_0x37a215;this[_0x22badf(0x138)]();}),_0xf6587a;}[_0x29c8a2(0x10d)](_0x25af99){const _0x648640=_0x29c8a2;this[_0x648640(0x133)]=_0x25af99;}[_0x29c8a2(0x11c)](){const _0x4f1ab2=_0x29c8a2,_0x5e0f8b=this[_0x4f1ab2(0x12e)],_0x52e2cb=()=>{const _0x46795=_0x4f1ab2;_0x421589[_0x46795(0x10a)][_0x46795(0x114)](()=>{const _0x2c0880=_0x46795;if(_0x71a642(this[_0x2c0880(0x112)])){const _0x4b07df=new _0x459d62(this[_0x2c0880(0x127)][_0x2c0880(0x13b)][_0x2c0880(0x112)]),_0x3a513f=new _0x459d62(this[_0x2c0880(0x137)][_0x2c0880(0x112)]),_0x20b219=_0x4b07df[_0x2c0880(0x121)],_0x5a0040=_0x2c0880(0x11e)===_0x5e0f8b[_0x2c0880(0x136)]?_0x2c0880(0x119):_0x2c0880(0x128);_0x4b07df[_0x2c0880(0x110)]();const _0x2125f4=_0x20b219-_0x4b07df[_0x2c0880(0x121)]+0x1;this[_0x2c0880(0x137)][_0x2c0880(0x112)][_0x2c0880(0x108)][_0x5a0040]=_0x2c0880(0x13f)+(_0x20b219-_0x3a513f[_0x2c0880(0x121)]-_0x2125f4)+_0x2c0880(0x12d);}});};this[_0x4f1ab2(0x127)][_0x4f1ab2(0x13b)]['on'](_0x4f1ab2(0x134),_0x52e2cb),this['on'](_0x4f1ab2(0x144),()=>{const _0x57ece6=_0x4f1ab2;_0x52e2cb(),this[_0x57ece6(0x117)]=new _0x3ca444(this[_0x57ece6(0x127)][_0x57ece6(0x13b)][_0x57ece6(0x112)],()=>{_0x52e2cb();});});}}
23
+ const _0x5bf497=_0x2cbb;function _0x4ccc(){const _0x3cfc99=['374lmpTke','8dIEwNQ','isUploadInProgress','add','minRows','target','3295gVEdEi','update','destroy','submit','focusableChildren','left','rtl','uiLanguageDirection','_queryViewResizeObserver','placeholder','submitButtonView','enter','MAX_ROWS','fieldView','setIsUploadInProgress','3431043LnKqez','isEmpty','2845533puPhEN','locale','requestAnimationFrame','excludeScrollbarsAndBorders','element','ck-ai-chat__prompt-submit-button','488pdCDLL','calc(','2875974mLvrLv','fire','render','value','style','_setUpAddContextButtonPositioning','set','_addContextButtonView','3317PnyUwT','reset','sendUserMessage','isEnabled','bind','3778137vUZSlT','errorText','queryView','MIN_ROWS','trim','px\x20-\x20var(--ck-spacing-tiny))','extendTemplate','hasError','AI_CHAT_LABEL_SUBMIT','window','ck-ai-chat__prompt-input','fieldWrapperChildren','_createSubmitButton','right','width','16189360bgTXmF','execute','keystrokes','maxRows','AI_CHAT_PROMPT_EMPTY_ERROR','setPlaceholderText'];_0x4ccc=function(){return _0x3cfc99;};return _0x4ccc();}function _0x2cbb(_0x8e85f2,_0x43e484){const _0x4cccf9=_0x4ccc();return _0x2cbb=function(_0x2cbb17,_0x53995f){_0x2cbb17=_0x2cbb17-0x145;let _0x284282=_0x4cccf9[_0x2cbb17];return _0x284282;},_0x2cbb(_0x8e85f2,_0x43e484);}(function(_0x57482b,_0x22c283){const _0x4ba31d=_0x2cbb,_0x196a4f=_0x57482b();while(!![]){try{const _0x27880b=-parseInt(_0x4ba31d(0x16d))/0x1*(parseInt(_0x4ba31d(0x146))/0x2)+-parseInt(_0x4ba31d(0x15d))/0x3+parseInt(_0x4ba31d(0x163))/0x4*(-parseInt(_0x4ba31d(0x14c))/0x5)+parseInt(_0x4ba31d(0x165))/0x6+parseInt(_0x4ba31d(0x15b))/0x7+-parseInt(_0x4ba31d(0x147))/0x8*(parseInt(_0x4ba31d(0x172))/0x9)+parseInt(_0x4ba31d(0x181))/0xa;if(_0x27880b===_0x22c283)break;else _0x196a4f['push'](_0x196a4f['shift']());}catch(_0x4fc523){_0x196a4f['push'](_0x196a4f['shift']());}}}(_0x4ccc,0x7ed09));import{IconSubmit as _0x520e82}from'ckeditor5/src/icons.js';import{ButtonView as _0x382d99,AutocompleteView as _0x96fa83,createLabeledTextarea as _0x5e046a}from'ckeditor5/src/ui.js';import{global as _0x122af6,isVisible as _0x156477,Rect as _0x12727d,ResizeObserver as _0x2aaca3}from'ckeditor5/src/utils.js';import{getTranslation as _0x3de0fc}from'../../../aicore/utils/common-translations.js';import{AIChatPromptSuggestionsListView as _0x3ae167}from'./aichatpromptsuggestionslistview.js';import{escape as _0xd018c0}from'es-toolkit/compat';export class AIChatPromptInputView extends _0x96fa83{[_0x5bf497(0x156)];static [_0x5bf497(0x175)]=0x1;static [_0x5bf497(0x158)]=0xc;[_0x5bf497(0x16c)];[_0x5bf497(0x154)];constructor(_0x4b0d34,_0x45d5db){const _0x1dc6b7=_0x5bf497;super(_0x4b0d34,{'queryView':{'label':'','creator':_0x5e046a,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x3ae167(_0x4b0d34),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x1dc6b7(0x16b)](_0x1dc6b7(0x15c),!0x0),this[_0x1dc6b7(0x16b)](_0x1dc6b7(0x148),!0x1),this[_0x1dc6b7(0x16c)]=_0x45d5db,this[_0x1dc6b7(0x154)]=null,this[_0x1dc6b7(0x174)][_0x1dc6b7(0x159)][_0x1dc6b7(0x14a)]=AIChatPromptInputView[_0x1dc6b7(0x175)],this[_0x1dc6b7(0x174)][_0x1dc6b7(0x159)][_0x1dc6b7(0x184)]=AIChatPromptInputView[_0x1dc6b7(0x158)],this[_0x1dc6b7(0x174)][_0x1dc6b7(0x17d)][_0x1dc6b7(0x149)](this[_0x1dc6b7(0x16c)]),this[_0x1dc6b7(0x16a)](),this[_0x1dc6b7(0x178)]({'attributes':{'class':['ck',_0x1dc6b7(0x17c)]}}),this[_0x1dc6b7(0x156)]=this[_0x1dc6b7(0x17e)](),this[_0x1dc6b7(0x156)][_0x1dc6b7(0x171)](_0x1dc6b7(0x170))['to'](this,_0x1dc6b7(0x15c),this,_0x1dc6b7(0x148),(_0x3a7104,_0x5471d8)=>!_0x3a7104&&!_0x5471d8),this[_0x1dc6b7(0x150)][_0x1dc6b7(0x149)](this[_0x1dc6b7(0x156)]);}[_0x5bf497(0x167)](){const _0x59d26f=_0x5bf497;super[_0x59d26f(0x167)](),this[_0x59d26f(0x174)][_0x59d26f(0x17d)][_0x59d26f(0x149)](this[_0x59d26f(0x156)]),this[_0x59d26f(0x183)][_0x59d26f(0x16b)](_0x59d26f(0x157),(_0x281c76,_0x53bda7)=>{const _0x577b71=_0x59d26f;this[_0x577b71(0x148)]||this[_0x577b71(0x15c)]||_0x281c76[_0x577b71(0x14b)]==this[_0x577b71(0x174)][_0x577b71(0x159)][_0x577b71(0x161)]&&(this[_0x577b71(0x14f)](),_0x53bda7());}),this[_0x59d26f(0x174)][_0x59d26f(0x159)]['on'](_0x59d26f(0x14d),()=>{const _0x4857e6=_0x59d26f;this[_0x4857e6(0x15c)]=''===this[_0x4857e6(0x174)][_0x4857e6(0x159)][_0x4857e6(0x161)][_0x4857e6(0x168)]?.[_0x4857e6(0x176)]();});}[_0x5bf497(0x14e)](){const _0x2b42dd=_0x5bf497;super[_0x2b42dd(0x14e)](),this[_0x2b42dd(0x154)]&&this[_0x2b42dd(0x154)][_0x2b42dd(0x14e)]();}[_0x5bf497(0x14f)](){const _0x2b97f3=_0x5bf497,_0x2b3c7f=this[_0x2b97f3(0x174)][_0x2b97f3(0x159)][_0x2b97f3(0x161)][_0x2b97f3(0x168)]?.[_0x2b97f3(0x176)]();if(!_0x2b3c7f)return this[_0x2b97f3(0x174)][_0x2b97f3(0x173)]=_0x3de0fc(this[_0x2b97f3(0x15e)],_0x2b97f3(0x185)),void(this[_0x2b97f3(0x174)][_0x2b97f3(0x159)][_0x2b97f3(0x179)]=!0x0);this[_0x2b97f3(0x174)][_0x2b97f3(0x159)][_0x2b97f3(0x179)]=!0x1;const _0x1154df=_0xd018c0(_0x2b3c7f);this[_0x2b97f3(0x166)](_0x2b97f3(0x16f),_0x1154df),this[_0x2b97f3(0x174)][_0x2b97f3(0x159)][_0x2b97f3(0x16e)]();}[_0x5bf497(0x145)](_0x47186b){const _0x17e933=_0x5bf497;this[_0x17e933(0x174)][_0x17e933(0x159)][_0x17e933(0x16b)](_0x17e933(0x155),_0x47186b);}[_0x5bf497(0x17e)](){const _0x2536b8=_0x5bf497,_0x14b2e6=new _0x382d99(this[_0x2536b8(0x15e)]);return _0x14b2e6[_0x2536b8(0x16b)]({'icon':_0x520e82,'label':_0x3de0fc(this[_0x2536b8(0x15e)],_0x2536b8(0x17a)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x2536b8(0x162),'isEnabled':!0x1}),_0x14b2e6['on'](_0x2536b8(0x182),()=>{const _0x1a4183=_0x2536b8;this[_0x1a4183(0x14f)]();}),_0x14b2e6;}[_0x5bf497(0x15a)](_0x6efc33){const _0x208151=_0x5bf497;this[_0x208151(0x148)]=_0x6efc33;}[_0x5bf497(0x16a)](){const _0xf411fe=_0x5bf497,_0x27930b=this[_0xf411fe(0x15e)],_0x1363ea=()=>{const _0x46aedd=_0xf411fe;_0x122af6[_0x46aedd(0x17b)][_0x46aedd(0x15f)](()=>{const _0x11be10=_0x46aedd;if(_0x156477(this[_0x11be10(0x161)])){const _0x3fee49=new _0x12727d(this[_0x11be10(0x174)][_0x11be10(0x159)][_0x11be10(0x161)]),_0x5f5a7a=new _0x12727d(this[_0x11be10(0x16c)][_0x11be10(0x161)]),_0x2fcd50=_0x3fee49[_0x11be10(0x180)],_0x8bc40e=_0x11be10(0x152)===_0x27930b[_0x11be10(0x153)]?_0x11be10(0x17f):_0x11be10(0x151);_0x3fee49[_0x11be10(0x160)]();const _0x26a4b8=_0x2fcd50-_0x3fee49[_0x11be10(0x180)]+0x1;this[_0x11be10(0x16c)][_0x11be10(0x161)][_0x11be10(0x169)][_0x8bc40e]=_0x11be10(0x164)+(_0x2fcd50-_0x5f5a7a[_0x11be10(0x180)]-_0x26a4b8)+_0x11be10(0x177);}});};this[_0xf411fe(0x174)][_0xf411fe(0x159)]['on'](_0xf411fe(0x14d),_0x1363ea),this['on'](_0xf411fe(0x167),()=>{const _0x567eb2=_0xf411fe;_0x1363ea(),this[_0x567eb2(0x154)]=new _0x2aaca3(this[_0x567eb2(0x174)][_0x567eb2(0x159)][_0x567eb2(0x161)],()=>{_0x1363ea();});});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3e253c=_0x4ada;(function(_0x4931eb,_0x482903){const _0x33cf18=_0x4ada,_0x505501=_0x4931eb();while(!![]){try{const _0x5a621e=parseInt(_0x33cf18(0xa5))/0x1*(parseInt(_0x33cf18(0x9d))/0x2)+-parseInt(_0x33cf18(0xa2))/0x3*(parseInt(_0x33cf18(0xa0))/0x4)+parseInt(_0x33cf18(0x9f))/0x5*(-parseInt(_0x33cf18(0xa6))/0x6)+-parseInt(_0x33cf18(0xa7))/0x7*(-parseInt(_0x33cf18(0xa4))/0x8)+-parseInt(_0x33cf18(0x9c))/0x9+-parseInt(_0x33cf18(0xa9))/0xa+parseInt(_0x33cf18(0x9e))/0xb;if(_0x5a621e===_0x482903)break;else _0x505501['push'](_0x505501['shift']());}catch(_0x2cac21){_0x505501['push'](_0x505501['shift']());}}}(_0x421b,0xb903e));function _0x421b(){const _0x5efd71=['523775seosXR','items','3916090tPwWtC','8269479MYpZwx','2lMVzGV','17765462soVLHj','3493410WYmXeb','5812LjtnMX','filter','2229UWFeES','length','136WGwOAK','959456gFkARW','6hSSblK'];_0x421b=function(){return _0x5efd71;};return _0x421b();}import{ListView as _0x9bc3d7}from'ckeditor5/src/ui.js';function _0x4ada(_0x335304,_0x308a42){const _0x421b32=_0x421b();return _0x4ada=function(_0x4ada43,_0x4517c6){_0x4ada43=_0x4ada43-0x9c;let _0xb371c=_0x421b32[_0x4ada43];return _0xb371c;},_0x4ada(_0x335304,_0x308a42);}export class AIChatPromptSuggestionsListView extends _0x9bc3d7{[_0x3e253c(0xa1)](){const _0x11204c=_0x3e253c;let _0x15bbef=0x0;for(const _0x1c5fc3 of this[_0x11204c(0xa8)])_0x15bbef+=_0x1c5fc3[_0x11204c(0xa8)][_0x11204c(0xa3)];return{'resultsCount':_0x15bbef,'totalItemsCount':_0x15bbef};}}
23
+ const _0x4b5b26=_0x5950;(function(_0x394b08,_0x155538){const _0x2e6af9=_0x5950,_0x4c0046=_0x394b08();while(!![]){try{const _0x3981ac=-parseInt(_0x2e6af9(0x8a))/0x1+parseInt(_0x2e6af9(0x8e))/0x2+-parseInt(_0x2e6af9(0x89))/0x3+-parseInt(_0x2e6af9(0x85))/0x4+-parseInt(_0x2e6af9(0x8b))/0x5*(parseInt(_0x2e6af9(0x86))/0x6)+parseInt(_0x2e6af9(0x84))/0x7+parseInt(_0x2e6af9(0x88))/0x8;if(_0x3981ac===_0x155538)break;else _0x4c0046['push'](_0x4c0046['shift']());}catch(_0x4d563b){_0x4c0046['push'](_0x4c0046['shift']());}}}(_0x4d77,0xcefc1));function _0x5950(_0x5ccb47,_0x15f15f){const _0x4d779e=_0x4d77();return _0x5950=function(_0x595058,_0x52b7b1){_0x595058=_0x595058-0x84;let _0x3a1aa6=_0x4d779e[_0x595058];return _0x3a1aa6;},_0x5950(_0x5ccb47,_0x15f15f);}import{ListView as _0x579386}from'ckeditor5/src/ui.js';export class AIChatPromptSuggestionsListView extends _0x579386{[_0x4b5b26(0x87)](){const _0x36bc8b=_0x4b5b26;let _0x173845=0x0;for(const _0x36318e of this[_0x36bc8b(0x8c)])_0x173845+=_0x36318e[_0x36bc8b(0x8c)][_0x36bc8b(0x8d)];return{'resultsCount':_0x173845,'totalItemsCount':_0x173845};}}function _0x4d77(){const _0x4133ac=['11548112sbhMON','2443539UBVKMl','1163447nQmcoP','25NQKhYp','items','length','2385062ZtyoLR','6582282AknPGq','1213648YDcAgN','536628QQkCNQ','filter'];_0x4d77=function(){return _0x4133ac;};return _0x4d77();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x547e6b=_0x2fb4;function _0x513c(){const _0x51f4d0=['addResourceToContext','setResources','forEach','test','703326EWQprA','useDefaultFiltering','fire','8443860PAqYTz','replace','14191240rxuEYD','\x5c$&','execute','label','_handleResourceSelection','extendTemplate','add','5368005DatJea','filter','1975388yJIRsV','highlightText','resource','7WfYjhZ','_source','1281073sFlwZq','items','updateResourceState','ck-ai-chat-resources__list','locale','clear','trim','3266754Fafrgr'];_0x513c=function(){return _0x51f4d0;};return _0x513c();}(function(_0x329e4c,_0x3f1834){const _0x53a353=_0x2fb4,_0x4cef1d=_0x329e4c();while(!![]){try{const _0xe0b99f=parseInt(_0x53a353(0x1d7))/0x1+-parseInt(_0x53a353(0x1e3))/0x2+parseInt(_0x53a353(0x1de))/0x3+-parseInt(_0x53a353(0x1d2))/0x4+-parseInt(_0x53a353(0x1d0))/0x5+-parseInt(_0x53a353(0x1e6))/0x6*(parseInt(_0x53a353(0x1d5))/0x7)+parseInt(_0x53a353(0x1e8))/0x8;if(_0xe0b99f===_0x3f1834)break;else _0x4cef1d['push'](_0x4cef1d['shift']());}catch(_0x542d7a){_0x4cef1d['push'](_0x4cef1d['shift']());}}}(_0x513c,0xc7943));function _0x2fb4(_0x1e889d,_0x14c1d0){const _0x513c65=_0x513c();return _0x2fb4=function(_0x2fb493,_0x561475){_0x2fb493=_0x2fb493-0x1cd;let _0x4d7907=_0x513c65[_0x2fb493];return _0x4d7907;},_0x2fb4(_0x1e889d,_0x14c1d0);}import{ListView as _0x4027d2}from'ckeditor5/src/ui.js';import{AIChatResourceListItemView as _0x32f35b}from'./aichatresourcelistitemview.js';const sc=_0x547e6b(0x1da);export class AIChatContextResourcesListView extends _0x4027d2{[_0x547e6b(0x1d6)];constructor(_0x3b3113,_0x10a5dc){const _0x3f4906=_0x547e6b;super(_0x3b3113),this[_0x3f4906(0x1d6)]=_0x10a5dc,this[_0x3f4906(0x1ce)]({'attributes':{'class':[sc]}});}[_0x547e6b(0x1e0)](_0x32a115,_0x52a433){const _0x1a658f=_0x547e6b;this[_0x1a658f(0x1d8)][_0x1a658f(0x1dc)]();let _0x2badfa=_0x32a115;if(this[_0x1a658f(0x1d6)][_0x1a658f(0x1e4)]&&_0x52a433&&''!==_0x52a433[_0x1a658f(0x1dd)]()){const _0x3664fc=new RegExp(_0x52a433[_0x1a658f(0x1e7)](/[.*+?^${}()|[\]\\]/g,_0x1a658f(0x1e9)),'gi');_0x2badfa=_0x32a115[_0x1a658f(0x1d1)](_0x4e5213=>_0x3664fc[_0x1a658f(0x1e2)](_0x4e5213[_0x1a658f(0x1eb)]));}for(const _0x10413a of _0x2badfa){const _0x1fe557=new _0x32f35b(this[_0x1a658f(0x1db)],_0x10413a);_0x1fe557['on'](_0x1a658f(0x1ea),()=>{const _0x7be742=_0x1a658f;this[_0x7be742(0x1cd)](this[_0x7be742(0x1d6)],_0x10413a);}),this[_0x1a658f(0x1d8)][_0x1a658f(0x1cf)](_0x1fe557);}this[_0x1a658f(0x1d6)][_0x1a658f(0x1e4)]&&this[_0x1a658f(0x1d3)](_0x52a433);}[_0x547e6b(0x1d3)](_0x5a1bbb){const _0x24db2f=_0x547e6b;this[_0x24db2f(0x1d6)][_0x24db2f(0x1e4)]&&this[_0x24db2f(0x1d8)][_0x24db2f(0x1e1)](_0x417187=>{const _0x29f118=_0x24db2f;_0x417187[_0x29f118(0x1d3)](_0x5a1bbb);});}[_0x547e6b(0x1d9)](_0x398210,_0x123571){const _0x42bb1e=_0x547e6b;for(const _0x2991f4 of this[_0x42bb1e(0x1d8)]){const _0x122b72=_0x2991f4;_0x122b72[_0x42bb1e(0x1d4)]['id']===_0x398210&&_0x122b72[_0x42bb1e(0x1d9)](_0x123571);}}[_0x547e6b(0x1cd)](_0x31b869,_0x1542db){const _0x320851=_0x547e6b;this[_0x320851(0x1e5)](_0x320851(0x1df),{'source':_0x31b869,'resource':_0x1542db});}}
23
+ const _0x2b66b6=_0x35cd;(function(_0x173570,_0x5b8d99){const _0x2d8c08=_0x35cd,_0x48af9c=_0x173570();while(!![]){try{const _0x7271ba=-parseInt(_0x2d8c08(0x153))/0x1*(parseInt(_0x2d8c08(0x141))/0x2)+-parseInt(_0x2d8c08(0x157))/0x3*(parseInt(_0x2d8c08(0x15a))/0x4)+parseInt(_0x2d8c08(0x14c))/0x5*(parseInt(_0x2d8c08(0x14b))/0x6)+-parseInt(_0x2d8c08(0x15d))/0x7+parseInt(_0x2d8c08(0x149))/0x8+-parseInt(_0x2d8c08(0x15f))/0x9+parseInt(_0x2d8c08(0x150))/0xa;if(_0x7271ba===_0x5b8d99)break;else _0x48af9c['push'](_0x48af9c['shift']());}catch(_0x1845f3){_0x48af9c['push'](_0x48af9c['shift']());}}}(_0xd658,0xf12ec));function _0xd658(){const _0x771861=['setResources','113057qoqGWr','filter','resource','label','153117hpDiOK','highlightText','execute','52iljkem','useDefaultFiltering','addResourceToContext','1481200FZYBfC','trim','6069132MpSBBO','replace','test','6NzmsPv','extendTemplate','updateResourceState','items','clear','add','\x5c$&','forEach','15376416ZVhWZH','_handleResourceSelection','7062Dhjhoh','340UzLMHs','_source','ck-ai-chat-resources__list','fire','8744220QkxjQR','locale'];_0xd658=function(){return _0x771861;};return _0xd658();}function _0x35cd(_0x2ef2ae,_0x479bc3){const _0xd6587f=_0xd658();return _0x35cd=function(_0x35cd8b,_0x462d62){_0x35cd8b=_0x35cd8b-0x141;let _0xdda121=_0xd6587f[_0x35cd8b];return _0xdda121;},_0x35cd(_0x2ef2ae,_0x479bc3);}import{ListView as _0x269735}from'ckeditor5/src/ui.js';import{AIChatResourceListItemView as _0x132204}from'./aichatresourcelistitemview.js';const oc=_0x2b66b6(0x14e);export class AIChatContextResourcesListView extends _0x269735{[_0x2b66b6(0x14d)];constructor(_0x3f031e,_0x368c5a){const _0x1b7d1a=_0x2b66b6;super(_0x3f031e),this[_0x1b7d1a(0x14d)]=_0x368c5a,this[_0x1b7d1a(0x142)]({'attributes':{'class':[oc]}});}[_0x2b66b6(0x152)](_0x14d98d,_0x1bb8b3){const _0x34febe=_0x2b66b6;this[_0x34febe(0x144)][_0x34febe(0x145)]();let _0x1bcabb=_0x14d98d;if(this[_0x34febe(0x14d)][_0x34febe(0x15b)]&&_0x1bb8b3&&''!==_0x1bb8b3[_0x34febe(0x15e)]()){const _0x3ae36d=new RegExp(_0x1bb8b3[_0x34febe(0x160)](/[.*+?^${}()|[\]\\]/g,_0x34febe(0x147)),'gi');_0x1bcabb=_0x14d98d[_0x34febe(0x154)](_0x119a7d=>_0x3ae36d[_0x34febe(0x161)](_0x119a7d[_0x34febe(0x156)]));}for(const _0x1ad5b8 of _0x1bcabb){const _0x3a8b8f=new _0x132204(this[_0x34febe(0x151)],_0x1ad5b8);_0x3a8b8f['on'](_0x34febe(0x159),()=>{const _0x46b936=_0x34febe;this[_0x46b936(0x14a)](this[_0x46b936(0x14d)],_0x1ad5b8);}),this[_0x34febe(0x144)][_0x34febe(0x146)](_0x3a8b8f);}this[_0x34febe(0x14d)][_0x34febe(0x15b)]&&this[_0x34febe(0x158)](_0x1bb8b3);}[_0x2b66b6(0x158)](_0x822f36){const _0x12d2b8=_0x2b66b6;this[_0x12d2b8(0x14d)][_0x12d2b8(0x15b)]&&this[_0x12d2b8(0x144)][_0x12d2b8(0x148)](_0x1f2427=>{const _0x350503=_0x12d2b8;_0x1f2427[_0x350503(0x158)](_0x822f36);});}[_0x2b66b6(0x143)](_0x339935,_0x1f43b6){const _0x8b15e0=_0x2b66b6;for(const _0x3c0465 of this[_0x8b15e0(0x144)]){const _0x581e93=_0x3c0465;_0x581e93[_0x8b15e0(0x155)]['id']===_0x339935&&_0x581e93[_0x8b15e0(0x143)](_0x1f43b6);}}[_0x2b66b6(0x14a)](_0x445af7,_0x39f3ac){const _0x221763=_0x2b66b6;this[_0x221763(0x14f)](_0x221763(0x15c),{'source':_0x445af7,'resource':_0x39f3ac});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x3742(_0x3c1c85,_0x489ae4){const _0x4922f1=_0x4922();return _0x3742=function(_0x37422e,_0x445cfa){_0x37422e=_0x37422e-0xc0;let _0x203175=_0x4922f1[_0x37422e];return _0x203175;},_0x3742(_0x3c1c85,_0x489ae4);}const _0x58c736=_0x3742;(function(_0x4a3212,_0x52783e){const _0x2effe3=_0x3742,_0x18e3c9=_0x4a3212();while(!![]){try{const _0x5187c3=-parseInt(_0x2effe3(0xd8))/0x1*(parseInt(_0x2effe3(0xe6))/0x2)+-parseInt(_0x2effe3(0xe8))/0x3*(parseInt(_0x2effe3(0xeb))/0x4)+parseInt(_0x2effe3(0xdc))/0x5+-parseInt(_0x2effe3(0xe0))/0x6+parseInt(_0x2effe3(0xc1))/0x7*(parseInt(_0x2effe3(0xd1))/0x8)+-parseInt(_0x2effe3(0xe1))/0x9+parseInt(_0x2effe3(0xe3))/0xa*(parseInt(_0x2effe3(0xdf))/0xb);if(_0x5187c3===_0x52783e)break;else _0x18e3c9['push'](_0x18e3c9['shift']());}catch(_0x32c386){_0x18e3c9['push'](_0x18e3c9['shift']());}}}(_0x4922,0x66ad1));import{View as _0x56155f,ViewCollection as _0x3b6364}from'ckeditor5/src/ui.js';import{uid as _0x19647f}from'ckeditor5/src/utils.js';import{AIChatContextResourcesListView as _0x2fe15b}from'./aichatcontextresourceslistview.js';import{AIChatContextResourcesSearchInputView as _0x5d18ae}from'./aichatresourcessearchinputview.js';function _0x4922(){const _0xcd5b59=['extendTemplate','div','length','children','loadSourceResources','3856KRVraH','delegate','useDefaultFiltering','add','set','_skeletonLoader','aiChatResources','1nvlgbj','search','ck-hidden','updateResourceState','3146795miuMAK','_source','_latestLoadResourcesUid','209WvHlVe','2345292smkbRv','5684688nFhlPg','_searchView','1279970spQdHO','has','loadResources','1654262qPkPrh','setTemplate','831102rbOIFK','addResourceToContext','source','12KIBrvW','locale','fire','render','ck\x20ck-search','isLoading','highlightText','_searchInputVisibleFrom','_createSearchSection','581CVBxpn','setResources','_createSkeletonView','_createSearchView','_resourcesListView','bindTemplate','_createResourcesListView','ck-ai-chat-resources','searchInputVisibleFrom','getQuery','_searchSection'];_0x4922=function(){return _0xcd5b59;};return _0x4922();}import{AISkeletonView as _0x372882,SKELETON_DEFINITIONS as _0x437f6e}from'../../../../aicore/ui/aiskeleton.js';export class AIChatContextResourcesView extends _0x56155f{[_0x58c736(0xe2)];[_0x58c736(0xcb)];[_0x58c736(0xf2)];[_0x58c736(0xc5)];[_0x58c736(0xd6)];[_0x58c736(0xdd)];[_0x58c736(0xcf)];[_0x58c736(0xde)]=null;constructor(_0x54860c,_0x4aafd1){const _0x3f043b=_0x58c736;super(_0x54860c),this[_0x3f043b(0xdd)]=_0x4aafd1[_0x3f043b(0xea)],this[_0x3f043b(0xf2)]=_0x4aafd1[_0x3f043b(0xc9)]??0x7,this[_0x3f043b(0xd5)](_0x3f043b(0xf0),!0x0),this[_0x3f043b(0xe2)]=this[_0x3f043b(0xc4)](),this[_0x3f043b(0xcb)]=this[_0x3f043b(0xc0)](),this[_0x3f043b(0xc5)]=this[_0x3f043b(0xc7)](),this[_0x3f043b(0xd6)]=this[_0x3f043b(0xc3)](),this[_0x3f043b(0xcf)]=new _0x3b6364([this[_0x3f043b(0xd6)],this[_0x3f043b(0xc5)]]),this[_0x3f043b(0xe7)]({'tag':_0x3f043b(0xcd),'attributes':{'class':_0x3f043b(0xc8)},'children':this[_0x3f043b(0xcf)]});}[_0x58c736(0xc4)](){const _0x4bb248=_0x58c736;return new _0x5d18ae(this[_0x4bb248(0xec)]);}[_0x58c736(0xc0)](){const _0x134b33=_0x58c736,_0x4b8a73=new _0x56155f(this[_0x134b33(0xec)]);return _0x4b8a73[_0x134b33(0xe7)]({'tag':_0x134b33(0xcd),'attributes':{'class':_0x134b33(0xef)},'children':[this[_0x134b33(0xe2)]]}),this[_0x134b33(0xe2)]['on'](_0x134b33(0xd9),(_0x4fc127,_0x283f74)=>{const _0xfcdbf4=_0x134b33;this[_0xfcdbf4(0xe5)](_0x283f74),this[_0xfcdbf4(0xdd)][_0xfcdbf4(0xd3)]&&this[_0xfcdbf4(0xc5)][_0xfcdbf4(0xf1)](_0x283f74);}),_0x4b8a73;}[_0x58c736(0xc7)](){const _0xb463a0=_0x58c736,_0x1d8a06=new _0x2fe15b(this[_0xb463a0(0xec)],this[_0xb463a0(0xdd)]);return _0x1d8a06[_0xb463a0(0xd2)](_0xb463a0(0xe9))['to'](this),_0x1d8a06[_0xb463a0(0xcc)]({'attributes':{'class':this[_0xb463a0(0xc6)]['if'](_0xb463a0(0xf0),_0xb463a0(0xda))}}),_0x1d8a06;}[_0x58c736(0xc3)](){const _0x3f0919=_0x58c736,_0x3a5c30=new _0x372882(this[_0x3f0919(0xec)],_0x437f6e[_0x3f0919(0xd7)]);return _0x3a5c30[_0x3f0919(0xcc)]({'attributes':{'class':[this[_0x3f0919(0xc6)]['if'](_0x3f0919(0xf0),_0x3f0919(0xda),_0x283524=>!_0x283524)]}}),_0x3a5c30;}[_0x58c736(0xee)](){const _0x4d7439=_0x58c736;super[_0x4d7439(0xee)](),this[_0x4d7439(0xe5)]('');}[_0x58c736(0xe5)](_0x50ea29){const _0x36e740=_0x58c736,_0x126aac=_0x19647f();this[_0x36e740(0xde)]=_0x126aac,this[_0x36e740(0xed)](_0x36e740(0xd0),{'sourceId':this[_0x36e740(0xdd)]['id'],'query':_0x50ea29,'uid':_0x126aac}),this[_0x36e740(0xf0)]=!0x0;}[_0x58c736(0xc2)](_0x4f61ee,_0x36cc49){const _0xd0ebd9=_0x58c736;if(_0x36cc49&&_0x36cc49!==this[_0xd0ebd9(0xde)])return;const _0x555f78=this[_0xd0ebd9(0xdd)][_0xd0ebd9(0xd3)]?this[_0xd0ebd9(0xe2)][_0xd0ebd9(0xca)]():'';this[_0xd0ebd9(0xc5)][_0xd0ebd9(0xc2)](_0x4f61ee,_0x555f78),_0x4f61ee[_0xd0ebd9(0xce)]>=this[_0xd0ebd9(0xf2)]&&!this[_0xd0ebd9(0xcf)][_0xd0ebd9(0xe4)](this[_0xd0ebd9(0xcb)])&&this[_0xd0ebd9(0xcf)][_0xd0ebd9(0xd4)](this[_0xd0ebd9(0xcb)],0x0),requestAnimationFrame(()=>{const _0x3b600d=_0xd0ebd9;this[_0x3b600d(0xf0)]=!0x1;});}[_0x58c736(0xdb)](_0x3c824a,_0x4175cc){const _0x447f89=_0x58c736;this[_0x447f89(0xc5)][_0x447f89(0xdb)](_0x3c824a,_0x4175cc);}}
23
+ const _0x1d1074=_0xda47;function _0xda47(_0x42208b,_0x83019b){const _0x3161aa=_0x3161();return _0xda47=function(_0xda4753,_0xaab11f){_0xda4753=_0xda4753-0x178;let _0x498e8e=_0x3161aa[_0xda4753];return _0x498e8e;},_0xda47(_0x42208b,_0x83019b);}(function(_0x36c4d5,_0x51967f){const _0x307a35=_0xda47,_0x349648=_0x36c4d5();while(!![]){try{const _0x4dba17=parseInt(_0x307a35(0x196))/0x1+-parseInt(_0x307a35(0x17c))/0x2+-parseInt(_0x307a35(0x17a))/0x3*(parseInt(_0x307a35(0x197))/0x4)+-parseInt(_0x307a35(0x193))/0x5+-parseInt(_0x307a35(0x194))/0x6+-parseInt(_0x307a35(0x1a4))/0x7+parseInt(_0x307a35(0x199))/0x8;if(_0x4dba17===_0x51967f)break;else _0x349648['push'](_0x349648['shift']());}catch(_0x260453){_0x349648['push'](_0x349648['shift']());}}}(_0x3161,0x28b5b));import{View as _0x4a0a05,ViewCollection as _0x29f2b5}from'ckeditor5/src/ui.js';function _0x3161(){const _0x597d81=['20chArQJ','length','10957016uoXOUg','search','_resourcesListView','aiChatResources','bindTemplate','_latestLoadResourcesUid','searchInputVisibleFrom','useDefaultFiltering','add','ck-hidden','delegate','2024911FNjLOX','ck-ai-chat-resources','getQuery','_createSkeletonView','_skeletonLoader','_source','166485mKZYTl','updateResourceState','658476OKggbl','_createSearchView','loadSourceResources','children','_searchInputVisibleFrom','_createSearchSection','highlightText','_searchView','ck\x20ck-search','set','locale','fire','setTemplate','addResourceToContext','isLoading','setResources','render','div','extendTemplate','source','has','loadResources','_searchSection','751775IquaRv','1464156JMKiBH','_createResourcesListView','87487KqtdyK'];_0x3161=function(){return _0x597d81;};return _0x3161();}import{uid as _0x4d6ef8}from'ckeditor5/src/utils.js';import{AIChatContextResourcesListView as _0x23eefb}from'./aichatcontextresourceslistview.js';import{AIChatContextResourcesSearchInputView as _0x152749}from'./aichatresourcessearchinputview.js';import{AISkeletonView as _0x20eb25,SKELETON_DEFINITIONS as _0x466139}from'../../../../aicore/ui/aiskeleton.js';export class AIChatContextResourcesView extends _0x4a0a05{[_0x1d1074(0x183)];[_0x1d1074(0x192)];[_0x1d1074(0x180)];[_0x1d1074(0x19b)];[_0x1d1074(0x178)];[_0x1d1074(0x179)];[_0x1d1074(0x17f)];[_0x1d1074(0x19e)]=null;constructor(_0x59b4d6,_0x5888cf){const _0x2fb336=_0x1d1074;super(_0x59b4d6),this[_0x2fb336(0x179)]=_0x5888cf[_0x2fb336(0x18f)],this[_0x2fb336(0x180)]=_0x5888cf[_0x2fb336(0x19f)]??0x7,this[_0x2fb336(0x185)](_0x2fb336(0x18a),!0x0),this[_0x2fb336(0x183)]=this[_0x2fb336(0x17d)](),this[_0x2fb336(0x192)]=this[_0x2fb336(0x181)](),this[_0x2fb336(0x19b)]=this[_0x2fb336(0x195)](),this[_0x2fb336(0x178)]=this[_0x2fb336(0x1a7)](),this[_0x2fb336(0x17f)]=new _0x29f2b5([this[_0x2fb336(0x178)],this[_0x2fb336(0x19b)]]),this[_0x2fb336(0x188)]({'tag':_0x2fb336(0x18d),'attributes':{'class':_0x2fb336(0x1a5)},'children':this[_0x2fb336(0x17f)]});}[_0x1d1074(0x17d)](){const _0x54ecc1=_0x1d1074;return new _0x152749(this[_0x54ecc1(0x186)]);}[_0x1d1074(0x181)](){const _0x29acb8=_0x1d1074,_0x279a60=new _0x4a0a05(this[_0x29acb8(0x186)]);return _0x279a60[_0x29acb8(0x188)]({'tag':_0x29acb8(0x18d),'attributes':{'class':_0x29acb8(0x184)},'children':[this[_0x29acb8(0x183)]]}),this[_0x29acb8(0x183)]['on'](_0x29acb8(0x19a),(_0x37c90d,_0x350b72)=>{const _0x1777c7=_0x29acb8;this[_0x1777c7(0x191)](_0x350b72),this[_0x1777c7(0x179)][_0x1777c7(0x1a0)]&&this[_0x1777c7(0x19b)][_0x1777c7(0x182)](_0x350b72);}),_0x279a60;}[_0x1d1074(0x195)](){const _0x26d056=_0x1d1074,_0x226f62=new _0x23eefb(this[_0x26d056(0x186)],this[_0x26d056(0x179)]);return _0x226f62[_0x26d056(0x1a3)](_0x26d056(0x189))['to'](this),_0x226f62[_0x26d056(0x18e)]({'attributes':{'class':this[_0x26d056(0x19d)]['if'](_0x26d056(0x18a),_0x26d056(0x1a2))}}),_0x226f62;}[_0x1d1074(0x1a7)](){const _0x367b75=_0x1d1074,_0x23a1de=new _0x20eb25(this[_0x367b75(0x186)],_0x466139[_0x367b75(0x19c)]);return _0x23a1de[_0x367b75(0x18e)]({'attributes':{'class':[this[_0x367b75(0x19d)]['if'](_0x367b75(0x18a),_0x367b75(0x1a2),_0x1d380b=>!_0x1d380b)]}}),_0x23a1de;}[_0x1d1074(0x18c)](){const _0x30f7e8=_0x1d1074;super[_0x30f7e8(0x18c)](),this[_0x30f7e8(0x191)]('');}[_0x1d1074(0x191)](_0x38afba){const _0x2f3cc6=_0x1d1074,_0xf45474=_0x4d6ef8();this[_0x2f3cc6(0x19e)]=_0xf45474,this[_0x2f3cc6(0x187)](_0x2f3cc6(0x17e),{'sourceId':this[_0x2f3cc6(0x179)]['id'],'query':_0x38afba,'uid':_0xf45474}),this[_0x2f3cc6(0x18a)]=!0x0;}[_0x1d1074(0x18b)](_0x338775,_0x5eec1e){const _0x5994b=_0x1d1074;if(_0x5eec1e&&_0x5eec1e!==this[_0x5994b(0x19e)])return;const _0x5c4ba6=this[_0x5994b(0x179)][_0x5994b(0x1a0)]?this[_0x5994b(0x183)][_0x5994b(0x1a6)]():'';this[_0x5994b(0x19b)][_0x5994b(0x18b)](_0x338775,_0x5c4ba6),_0x338775[_0x5994b(0x198)]>=this[_0x5994b(0x180)]&&!this[_0x5994b(0x17f)][_0x5994b(0x190)](this[_0x5994b(0x192)])&&this[_0x5994b(0x17f)][_0x5994b(0x1a1)](this[_0x5994b(0x192)],0x0),requestAnimationFrame(()=>{const _0x5950a4=_0x5994b;this[_0x5950a4(0x18a)]=!0x1;});}[_0x1d1074(0x17b)](_0xaafb63,_0x24c437){const _0x1053e8=_0x1d1074;this[_0x1053e8(0x19b)][_0x1053e8(0x17b)](_0xaafb63,_0x24c437);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2328d6=_0x2a09;(function(_0x51c686,_0x274024){const _0x579f74=_0x2a09,_0x474201=_0x51c686();while(!![]){try{const _0x2bdd2a=parseInt(_0x579f74(0xa3))/0x1+parseInt(_0x579f74(0xa9))/0x2+-parseInt(_0x579f74(0xa5))/0x3+parseInt(_0x579f74(0x93))/0x4*(-parseInt(_0x579f74(0x8d))/0x5)+parseInt(_0x579f74(0xa7))/0x6+parseInt(_0x579f74(0x8e))/0x7*(parseInt(_0x579f74(0x96))/0x8)+-parseInt(_0x579f74(0x95))/0x9;if(_0x2bdd2a===_0x274024)break;else _0x474201['push'](_0x474201['shift']());}catch(_0xea05ab){_0x474201['push'](_0x474201['shift']());}}}(_0x1f9f,0x36212));function _0x1f9f(){const _0x579b97=['DOCUMENT','_iconView','updateResourceState','_setupTemplate','ck-ai-chat-resources__item','338917XwZXEu','render','18459YCaSuX','type','2561106CcIGoK','set','753254OOOBmA','text','_titleView','span','div','getResourceIcon','ck-ai-chat-resources__item--in-context','isInContext','trim','setTemplate','_updateIcon','isVisible','ck-ai-chat-resources__item-title','content','URL','1285TsjrLN','154IHAfYB','_createIconView','extendTemplate','ck-hidden','execute','1924ZOZJCD','label','8256105msHVug','45976XuGScQ','TEXT','_createTitleView','highlightText','FILE','resource','ck-ai-chat-resources__item__icon','bindTemplate'];_0x1f9f=function(){return _0x579b97;};return _0x1f9f();}import{HighlightedTextView as _0x5ef791,IconView as _0x4e0c84,ListItemView as _0x21003b}from'ckeditor5/src/ui.js';import{escapeRegExp as _0x3b806f}from'es-toolkit/compat';function _0x2a09(_0x4560e5,_0x441781){const _0x1f9f3e=_0x1f9f();return _0x2a09=function(_0x2a09df,_0x4d91b1){_0x2a09df=_0x2a09df-0x8b;let _0x45ecb0=_0x1f9f3e[_0x2a09df];return _0x45ecb0;},_0x2a09(_0x4560e5,_0x441781);}import{AIContextItemType as _0x36340d}from'../../../../aicore/model/aicontext.js';import{IconFileUpload as _0x330473,IconCheck as _0x5313a8,IconDocument as _0x43c29f,IconDocumentOutline as _0x266783,IconLink as _0x1e953b}from'@ckeditor/ckeditor5-icons';const zr=_0x2328d6(0xa2),Br=_0x2328d6(0xaf),Gr=_0x2328d6(0xb5),Hr=_0x2328d6(0x9c);export class AIChatResourceListItemView extends _0x21003b{[_0x2328d6(0x9b)];[_0x2328d6(0xab)];[_0x2328d6(0x9f)];constructor(_0x48bdb0,_0x3b5814){const _0x34e7c1=_0x2328d6;super(_0x48bdb0),this[_0x34e7c1(0x9b)]=_0x3b5814,this[_0x34e7c1(0xa8)](_0x34e7c1(0xb0),!!_0x3b5814[_0x34e7c1(0xb0)]),this[_0x34e7c1(0xab)]=this[_0x34e7c1(0x98)](),this[_0x34e7c1(0x9f)]=this[_0x34e7c1(0x8f)](),this[_0x34e7c1(0xa1)]();}[_0x2328d6(0xa4)](){const _0x7a839c=_0x2328d6;super[_0x7a839c(0xa4)]();}[_0x2328d6(0xae)](_0x2b7cd1){const _0x3f1714=_0x2328d6;if(_0x2b7cd1[_0x3f1714(0xb0)])return _0x5313a8;switch(_0x2b7cd1[_0x3f1714(0xa6)]){case _0x36340d[_0x3f1714(0x9e)]:return _0x43c29f;case _0x36340d[_0x3f1714(0x8c)]:return _0x1e953b;case _0x36340d[_0x3f1714(0x9a)]:case _0x36340d[_0x3f1714(0x97)]:return _0x330473;default:return _0x266783;}}[_0x2328d6(0x99)](_0x8787ff){const _0x3f603a=_0x2328d6;if(!_0x8787ff||''===_0x8787ff[_0x3f603a(0xb1)]())return void this[_0x3f603a(0xab)][_0x3f603a(0x99)](null);const _0x558c36=new RegExp(_0x3b806f(_0x8787ff),'gi');this[_0x3f603a(0xab)][_0x3f603a(0x99)](_0x558c36);}[_0x2328d6(0xa0)](_0x41a515){const _0x30dcb4=_0x2328d6;this[_0x30dcb4(0x9b)][_0x30dcb4(0xb0)]=_0x41a515,this[_0x30dcb4(0xb0)]=_0x41a515,this[_0x30dcb4(0xb3)]();}[_0x2328d6(0x98)](){const _0x1b8e64=_0x2328d6,_0x2cfd65=new _0x5ef791();return _0x2cfd65[_0x1b8e64(0xaa)]=this[_0x1b8e64(0x9b)][_0x1b8e64(0x94)],_0x2cfd65[_0x1b8e64(0x90)]({'tag':_0x1b8e64(0xac),'attributes':{'class':[Gr]}}),_0x2cfd65;}[_0x2328d6(0x8f)](){const _0x7f073f=_0x2328d6,_0x46cf3e=new _0x4e0c84();return _0x46cf3e[_0x7f073f(0x8b)]=this[_0x7f073f(0xae)](this[_0x7f073f(0x9b)]),_0x46cf3e;}[_0x2328d6(0xa1)](){const _0x21c9a3=_0x2328d6,_0xd0861f=this[_0x21c9a3(0x9d)];this[_0x21c9a3(0xb2)]({'tag':_0x21c9a3(0xad),'attributes':{'class':[zr,_0xd0861f['if'](_0x21c9a3(0xb4),_0x21c9a3(0x91),_0x55824c=>!_0x55824c),_0xd0861f['if'](_0x21c9a3(0xb0),Br)]},'children':[{'tag':_0x21c9a3(0xad),'attributes':{'class':[Hr]},'children':[this[_0x21c9a3(0x9f)]]},this[_0x21c9a3(0xab)]],'on':{'click':_0xd0861f['to'](_0x21c9a3(0x92))}});}[_0x2328d6(0xb3)](){const _0x387eae=_0x2328d6;this[_0x387eae(0x9f)][_0x387eae(0x8b)]=this[_0x387eae(0xae)](this[_0x387eae(0x9b)]);}}
23
+ const _0x20071b=_0x2042;(function(_0x2e626b,_0x43d5da){const _0x3bbc86=_0x2042,_0x53c02c=_0x2e626b();while(!![]){try{const _0x3d6a99=-parseInt(_0x3bbc86(0x1cc))/0x1+-parseInt(_0x3bbc86(0x1b2))/0x2*(parseInt(_0x3bbc86(0x1ac))/0x3)+parseInt(_0x3bbc86(0x1ba))/0x4+parseInt(_0x3bbc86(0x1b6))/0x5*(-parseInt(_0x3bbc86(0x1b4))/0x6)+parseInt(_0x3bbc86(0x1ab))/0x7+-parseInt(_0x3bbc86(0x1ca))/0x8*(parseInt(_0x3bbc86(0x1ce))/0x9)+parseInt(_0x3bbc86(0x1d7))/0xa*(parseInt(_0x3bbc86(0x1bb))/0xb);if(_0x3d6a99===_0x43d5da)break;else _0x53c02c['push'](_0x53c02c['shift']());}catch(_0x3ce09d){_0x53c02c['push'](_0x53c02c['shift']());}}}(_0x57b9,0xc8d1e));import{HighlightedTextView as _0xaa21b3,IconView as _0x5afdc1,ListItemView as _0x597d32}from'ckeditor5/src/ui.js';import{escapeRegExp as _0x2848d4}from'es-toolkit/compat';import{AIContextItemType as _0x558001}from'../../../../aicore/model/aicontext.js';function _0x2042(_0x44f73c,_0x380d94){const _0x57b973=_0x57b9();return _0x2042=function(_0x20421f,_0x2fffa3){_0x20421f=_0x20421f-0x1ab;let _0x785eb4=_0x57b973[_0x20421f];return _0x785eb4;},_0x2042(_0x44f73c,_0x380d94);}function _0x57b9(){const _0x26a763=['updateResourceState','isVisible','6472664neMxjc','11BeUcgb','isInContext','getResourceIcon','_createIconView','FILE','highlightText','resource','content','URL','bindTemplate','TEXT','_iconView','span','_titleView','ck-ai-chat-resources__item','104jbXwGr','ck-hidden','844832OaIuXE','_updateIcon','822348QVpXvv','_createTitleView','extendTemplate','text','ck-ai-chat-resources__item-title','ck-ai-chat-resources__item__icon','set','_setupTemplate','label','40267880QlcaAi','289898QPBlvX','3PbvAhb','setTemplate','render','div','trim','ck-ai-chat-resources__item--in-context','3239398ecyrQy','execute','7268658LzZdcM','type','5blpbdr','DOCUMENT'];_0x57b9=function(){return _0x26a763;};return _0x57b9();}import{IconFileUpload as _0x528b53,IconCheck as _0x42ba94,IconDocument as _0x3c5ad7,IconDocumentOutline as _0x5b1342,IconLink as _0x3ebf1f}from'@ckeditor/ckeditor5-icons';const zr=_0x20071b(0x1c9),Gr=_0x20071b(0x1b1),Hr=_0x20071b(0x1d2),Jr=_0x20071b(0x1d3);export class AIChatResourceListItemView extends _0x597d32{[_0x20071b(0x1c1)];[_0x20071b(0x1c8)];[_0x20071b(0x1c6)];constructor(_0x23efc8,_0x42dc06){const _0x3e5843=_0x20071b;super(_0x23efc8),this[_0x3e5843(0x1c1)]=_0x42dc06,this[_0x3e5843(0x1d4)](_0x3e5843(0x1bc),!!_0x42dc06[_0x3e5843(0x1bc)]),this[_0x3e5843(0x1c8)]=this[_0x3e5843(0x1cf)](),this[_0x3e5843(0x1c6)]=this[_0x3e5843(0x1be)](),this[_0x3e5843(0x1d5)]();}[_0x20071b(0x1ae)](){const _0x58cf73=_0x20071b;super[_0x58cf73(0x1ae)]();}[_0x20071b(0x1bd)](_0x21dd8e){const _0x1573e1=_0x20071b;if(_0x21dd8e[_0x1573e1(0x1bc)])return _0x42ba94;switch(_0x21dd8e[_0x1573e1(0x1b5)]){case _0x558001[_0x1573e1(0x1b7)]:return _0x3c5ad7;case _0x558001[_0x1573e1(0x1c3)]:return _0x3ebf1f;case _0x558001[_0x1573e1(0x1bf)]:case _0x558001[_0x1573e1(0x1c5)]:return _0x528b53;default:return _0x5b1342;}}[_0x20071b(0x1c0)](_0x208071){const _0x4d6adc=_0x20071b;if(!_0x208071||''===_0x208071[_0x4d6adc(0x1b0)]())return void this[_0x4d6adc(0x1c8)][_0x4d6adc(0x1c0)](null);const _0x138daf=new RegExp(_0x2848d4(_0x208071),'gi');this[_0x4d6adc(0x1c8)][_0x4d6adc(0x1c0)](_0x138daf);}[_0x20071b(0x1b8)](_0x2ca34c){const _0x35cd11=_0x20071b;this[_0x35cd11(0x1c1)][_0x35cd11(0x1bc)]=_0x2ca34c,this[_0x35cd11(0x1bc)]=_0x2ca34c,this[_0x35cd11(0x1cd)]();}[_0x20071b(0x1cf)](){const _0x44f070=_0x20071b,_0x1bfcfe=new _0xaa21b3();return _0x1bfcfe[_0x44f070(0x1d1)]=this[_0x44f070(0x1c1)][_0x44f070(0x1d6)],_0x1bfcfe[_0x44f070(0x1d0)]({'tag':_0x44f070(0x1c7),'attributes':{'class':[Hr]}}),_0x1bfcfe;}[_0x20071b(0x1be)](){const _0x2f2120=_0x20071b,_0x1c39b6=new _0x5afdc1();return _0x1c39b6[_0x2f2120(0x1c2)]=this[_0x2f2120(0x1bd)](this[_0x2f2120(0x1c1)]),_0x1c39b6;}[_0x20071b(0x1d5)](){const _0x5a0f9a=_0x20071b,_0x5764cb=this[_0x5a0f9a(0x1c4)];this[_0x5a0f9a(0x1ad)]({'tag':_0x5a0f9a(0x1af),'attributes':{'class':[zr,_0x5764cb['if'](_0x5a0f9a(0x1b9),_0x5a0f9a(0x1cb),_0x227840=>!_0x227840),_0x5764cb['if'](_0x5a0f9a(0x1bc),Gr)]},'children':[{'tag':_0x5a0f9a(0x1af),'attributes':{'class':[Jr]},'children':[this[_0x5a0f9a(0x1c6)]]},this[_0x5a0f9a(0x1c8)]],'on':{'click':_0x5764cb['to'](_0x5a0f9a(0x1b3))}});}[_0x20071b(0x1cd)](){const _0x359915=_0x20071b;this[_0x359915(0x1c6)][_0x359915(0x1c2)]=this[_0x359915(0x1bd)](this[_0x359915(0x1c1)]);}}