@ckeditor/ckeditor5-ai 47.2.0-alpha.6 → 47.2.0

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 (290) 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.d.ts +10 -2
  181. package/src/aichat/model/aichatcontext.js +1 -1
  182. package/src/aichat/model/aichatconversation.js +1 -1
  183. package/src/aichat/model/aichatinteraction.js +1 -1
  184. package/src/aichat/model/aichatmodels.js +1 -1
  185. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  186. package/src/aichat/ui/aichatfeedview.js +1 -1
  187. package/src/aichat/ui/aichatheaderview.js +1 -1
  188. package/src/aichat/ui/aichatview.js +1 -1
  189. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  190. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  191. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  192. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  193. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  194. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  195. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  196. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  197. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  198. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  199. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  200. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  201. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  202. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  203. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  204. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  205. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  206. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  207. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  208. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  209. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  210. package/src/aichat/utils/eventnames.js +1 -1
  211. package/src/aichat/utils/promisequeue.js +1 -1
  212. package/src/aichat/utils/scrollmanager.js +1 -1
  213. package/src/aichathistory/aichathistory.js +1 -1
  214. package/src/aichathistory/aichathistorycontroller.js +1 -1
  215. package/src/aichathistory/aichathistoryui.js +1 -1
  216. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  217. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  218. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  219. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  220. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  221. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  222. package/src/aicore/aiconnector.js +1 -1
  223. package/src/aicore/aiediting.js +1 -1
  224. package/src/aicore/model/aicapabilities.js +1 -1
  225. package/src/aicore/model/aicontext.js +1 -1
  226. package/src/aicore/model/aiinteraction.js +1 -1
  227. package/src/aicore/model/aimodels.js +1 -1
  228. package/src/aicore/model/aireply.js +1 -1
  229. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  230. package/src/aicore/pipeline/airesponseparser.js +2 -2
  231. package/src/aicore/ui/aidisclaimerview.js +1 -1
  232. package/src/aicore/ui/aiskeleton.js +1 -1
  233. package/src/aicore/ui/aispinner.js +1 -1
  234. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  235. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  236. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  237. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  238. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  239. package/src/aicore/utils/common-translations.js +1 -1
  240. package/src/aicore/utils/createresizebutton.js +1 -1
  241. package/src/aicore/utils/documentposition.js +1 -1
  242. package/src/aicore/utils/documentrange.js +1 -1
  243. package/src/aicore/utils/eventnames.js +1 -1
  244. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  245. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  246. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  247. package/src/aicore/utils/htmlparser.js +1 -1
  248. package/src/aicore/utils/htmlstreamer.js +1 -1
  249. package/src/aieditorintegration/aieditorintegration.js +1 -1
  250. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  251. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  252. package/src/aiquickactions/aiquickactions.js +1 -1
  253. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  254. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  255. package/src/aiquickactions/aiquickactionsui.js +1 -1
  256. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  257. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  258. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  259. package/src/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/aireviewmodereviewchecklistview.js +1 -1
  278. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  279. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  280. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  281. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  282. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  283. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  284. package/src/aitabs/aitabs.js +1 -1
  285. package/src/aitabs/aitabsmainview.js +1 -1
  286. package/src/aitabs/tabs/aitabsview.js +1 -1
  287. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  288. package/src/aitabs/tabs/tabpanelview.js +1 -1
  289. package/src/errors.js +1 -1
  290. package/src/index.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x599e41=_0x34ae;(function(_0x558006,_0xc58b55){const _0x365768=_0x34ae,_0x9132a5=_0x558006();while(!![]){try{const _0x3b0a70=parseInt(_0x365768(0x1a8))/0x1+-parseInt(_0x365768(0x17a))/0x2*(parseInt(_0x365768(0x193))/0x3)+-parseInt(_0x365768(0x19f))/0x4*(-parseInt(_0x365768(0x16e))/0x5)+-parseInt(_0x365768(0x185))/0x6+parseInt(_0x365768(0x16d))/0x7*(-parseInt(_0x365768(0x17d))/0x8)+parseInt(_0x365768(0x17c))/0x9*(parseInt(_0x365768(0x1ab))/0xa)+-parseInt(_0x365768(0x1aa))/0xb*(parseInt(_0x365768(0x19a))/0xc);if(_0x3b0a70===_0xc58b55)break;else _0x9132a5['push'](_0x9132a5['shift']());}catch(_0x5a6570){_0x9132a5['push'](_0x9132a5['shift']());}}}(_0x234d,0x4174e));import{ButtonView as _0x20f651,IconView as _0x582240}from'ckeditor5/src/ui.js';import{IconClose as _0x210a6f,IconDocument as _0x1efdd0,IconFileUpload as _0x1de95a,IconLink as _0x5af7cc,IconSelection as _0x3ddcf2}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x469726}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x5bc1e2}from'../../../aicore/ui/aispinner.js';function _0x234d(){const _0x341dc1=['3qrNvPl','span','addEventListener','ck-ai-chat-context-chip__type-icon','bindTemplate','type','_createTemplateAttributes','12IlSLRA','_createLoaderIcon','length','isVisible','_createLabelElement','28CqeFZU','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','webkitAnimationEnd','fire','setTemplate','label','locale','_setupRemoveButtonEvent','ck-ai-chat-context-chip__label','501363BzPbYm','removeEventListener','2683428lwOJVx','305190xQEzrc','_handleAnimationEndOnce','_initializeProperties','bind','_setupTemplate','div','42qXIoJJ','297265Rjkymk','_createIconView','_isAnimationOnEnterEnabled','content','tooltip','disableAnimationOnEnter','ck-ai-chat-context-controls__chip-tooltip','slice','execute','_createRemoveButton','ck-ai-chat-context-chip_new-chip','remove','714208CcNquS','add','45YKhkfw','51456ElbVQj','extendTemplate','ck-hidden','_createTemplateChildren','readonly','animationend','removeContextItemChip','uiId','974250YKHzoR','small','selection','ck-ai-chat-context-chip_wide','ck-ai-chat-context-chip','element','document','itemType','ck-ai-chat-context-chip_document','render','set','classList','lastIndexOf','isLoading'];_0x234d=function(){return _0x341dc1;};return _0x234d();}const bn={'file':_0x1de95a,'document':_0x1efdd0,'web-resource':_0x5af7cc,'text':_0x1de95a,'selection':_0x3ddcf2},Tn=_0x599e41(0x189),En=_0x599e41(0x188),fn=_0x599e41(0x18d),An=_0x599e41(0x1a7),Cn=_0x599e41(0x196),In=_0x599e41(0x174),On='n';export class AIChatContextItemButtonView extends _0x20f651{constructor(_0x3510c3,_0x75cc73,_0x1c79ec,_0x184c08,_0x36e777=!0x1){const _0x50220a=_0x599e41;super(_0x3510c3),this[_0x50220a(0x170)]=_0x184c08,this[_0x50220a(0x1ad)](_0x75cc73,_0x1c79ec,_0x36e777),this[_0x50220a(0x16b)]();}[_0x599e41(0x18e)](){const _0x4f3755=_0x599e41;super[_0x4f3755(0x18e)](),this[_0x4f3755(0x170)]&&this[_0x4f3755(0x18a)]&&(this[_0x4f3755(0x18a)][_0x4f3755(0x190)][_0x4f3755(0x17b)](_0x4f3755(0x178)),this[_0x4f3755(0x1ac)](this[_0x4f3755(0x18a)],()=>{const _0x5edb92=_0x4f3755;this[_0x5edb92(0x18a)]&&this[_0x5edb92(0x18a)][_0x5edb92(0x190)][_0x5edb92(0x179)](_0x5edb92(0x178));}));}[_0x599e41(0x173)](){const _0x48a75a=_0x599e41;this[_0x48a75a(0x170)]=!0x1,this[_0x48a75a(0x18a)]&&this[_0x48a75a(0x18a)][_0x48a75a(0x190)][_0x48a75a(0x179)](_0x48a75a(0x178));}[_0x599e41(0x1ad)](_0x199d33,_0x24142c,_0x5b837c){const _0x14a008=_0x599e41;this[_0x14a008(0x18f)](_0x14a008(0x1a4),_0x199d33[_0x14a008(0x1a4)]),this[_0x14a008(0x18f)](_0x14a008(0x172),!0x0),this[_0x14a008(0x18f)](_0x14a008(0x18c),_0x199d33[_0x14a008(0x198)]),this[_0x14a008(0x18f)]('id',_0x199d33[_0x14a008(0x184)]),this[_0x14a008(0x18f)](_0x14a008(0x181),_0x24142c),this[_0x14a008(0x18f)](_0x14a008(0x192),_0x5b837c);}[_0x599e41(0x16b)](){const _0x37960=_0x599e41,_0x2a74f9=this[_0x37960(0x16f)](),_0x3e2108=this[_0x37960(0x177)](),_0x1c3515=this[_0x37960(0x197)];this[_0x37960(0x1a3)]({'tag':_0x37960(0x16c),'attributes':this[_0x37960(0x199)](_0x1c3515),'children':this[_0x37960(0x180)](_0x2a74f9,_0x3e2108,_0x1c3515)});}[_0x599e41(0x199)](_0x2c85ab){const _0x250a34=_0x599e41;return{'class':[Tn,_0x2c85ab['if'](_0x250a34(0x18c),fn,_0x172689=>_0x250a34(0x18b)==_0x172689),_0x2c85ab['if'](_0x250a34(0x18c),En,_0x4b4d80=>_0x250a34(0x187)==_0x4b4d80)],'data-cke-tooltip-text':_0x2c85ab['to'](_0x250a34(0x1a4),gn),'data-cke-tooltip-position':On,'data-cke-tooltip-class':In};}[_0x599e41(0x180)](_0x3c77b4,_0x51c904,_0x4a395e){const _0x4207e0=_0x599e41,_0x5ed870=this[_0x4207e0(0x19e)](_0x4a395e),_0x3fa8cd=this[_0x4207e0(0x19b)]();return this[_0x4207e0(0x181)]?[_0x3c77b4,_0x5ed870]:[_0x3c77b4,_0x3fa8cd,_0x5ed870,_0x51c904];}[_0x599e41(0x19e)](_0x57baf6){const _0x39f8a9=_0x599e41;return{'tag':_0x39f8a9(0x194),'attributes':{'class':An},'children':[{'text':_0x57baf6['to'](_0x39f8a9(0x1a4))}]};}[_0x599e41(0x177)](){const _0x28ec7c=_0x599e41,_0xefb8de=new _0x20f651(this[_0x28ec7c(0x1a5)]);return _0xefb8de[_0x28ec7c(0x18f)]({'label':_0x469726(this[_0x28ec7c(0x1a5)],_0x28ec7c(0x1a0)),'icon':_0x210a6f}),this[_0x28ec7c(0x1a6)](_0xefb8de),_0xefb8de;}[_0x599e41(0x1a6)](_0x2aed76){const _0x5d683c=_0x599e41;_0x2aed76['on'](_0x5d683c(0x176),()=>{const _0x359f07=_0x5d683c;this[_0x359f07(0x1a2)](_0x359f07(0x183),this['id']);});}[_0x599e41(0x16f)](){const _0x3b241d=_0x599e41,_0x4eb7b8=this[_0x3b241d(0x197)],_0x2fc0d2=new _0x582240();return _0x2fc0d2[_0x3b241d(0x171)]=bn[this[_0x3b241d(0x18c)]],_0x2fc0d2[_0x3b241d(0x17e)]({'attributes':{'class':[Cn,_0x4eb7b8['if'](_0x3b241d(0x192),_0x3b241d(0x17f),_0xe0d5bc=>_0xe0d5bc)]}}),_0x2fc0d2;}[_0x599e41(0x1ac)](_0x5607a4,_0x2cb07f){const _0x1f5fcb=_0x599e41;if(!_0x5607a4)return;const _0x33ec97=()=>{const _0x5bb8c6=_0x34ae;_0x2cb07f(),_0x5607a4[_0x5bb8c6(0x1a9)](_0x5bb8c6(0x182),_0x33ec97),_0x5607a4[_0x5bb8c6(0x1a9)](_0x5bb8c6(0x1a1),_0x33ec97);};_0x5607a4[_0x1f5fcb(0x195)](_0x1f5fcb(0x182),_0x33ec97),_0x5607a4[_0x1f5fcb(0x195)](_0x1f5fcb(0x1a1),_0x33ec97);}[_0x599e41(0x19b)](){const _0x153deb=_0x599e41,_0x259ed1=new _0x5bc1e2(_0x153deb(0x186));return _0x259ed1[_0x153deb(0x1ae)](_0x153deb(0x19d))['to'](this,_0x153deb(0x192),_0xcb9023=>_0xcb9023),_0x259ed1;}}function _0x34ae(_0x1fce65,_0x52e7fd){const _0x234d87=_0x234d();return _0x34ae=function(_0x34aebc,_0x5a97a5){_0x34aebc=_0x34aebc-0x16b;let _0x57f915=_0x234d87[_0x34aebc];return _0x57f915;},_0x34ae(_0x1fce65,_0x52e7fd);}function gn(_0x32a067){const _0x5eb285=_0x599e41;if(!_0x32a067)return _0x32a067;if(_0x32a067[_0x5eb285(0x19c)]<=0x78)return _0x32a067;const _0x1d1afc=_0x32a067[_0x5eb285(0x175)](0x0,0x78),_0x57140f=_0x1d1afc[_0x5eb285(0x191)]('\x20');return(_0x57140f>0x0?_0x1d1afc[_0x5eb285(0x175)](0x0,_0x57140f):_0x1d1afc)+'…';}
23
+ const _0x19414f=_0x5f18;(function(_0x378fb8,_0x494296){const _0x4badfe=_0x5f18,_0x1686bb=_0x378fb8();while(!![]){try{const _0x27b3bf=parseInt(_0x4badfe(0xd3))/0x1+-parseInt(_0x4badfe(0xd2))/0x2*(-parseInt(_0x4badfe(0x105))/0x3)+-parseInt(_0x4badfe(0x109))/0x4*(parseInt(_0x4badfe(0x10a))/0x5)+-parseInt(_0x4badfe(0xf5))/0x6*(parseInt(_0x4badfe(0xdf))/0x7)+parseInt(_0x4badfe(0xf9))/0x8+parseInt(_0x4badfe(0xd7))/0x9*(parseInt(_0x4badfe(0xea))/0xa)+-parseInt(_0x4badfe(0xfa))/0xb;if(_0x27b3bf===_0x494296)break;else _0x1686bb['push'](_0x1686bb['shift']());}catch(_0x5d6781){_0x1686bb['push'](_0x1686bb['shift']());}}}(_0x3af6,0xe71d2));function _0x5f18(_0xd4d7c1,_0x145c65){const _0x3af64d=_0x3af6();return _0x5f18=function(_0x5f18d5,_0x1ec9f6){_0x5f18d5=_0x5f18d5-0xcc;let _0x461d1f=_0x3af64d[_0x5f18d5];return _0x461d1f;},_0x5f18(_0xd4d7c1,_0x145c65);}import{ButtonView as _0x2e1807,IconView as _0x40686d}from'ckeditor5/src/ui.js';import{IconClose as _0x1dca54,IconDocument as _0x53deef,IconFileUpload as _0x119768,IconLink as _0x2974f1,IconSelection as _0x486289}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x1452f5}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x8507b8}from'../../../aicore/ui/aispinner.js';function _0x3af6(){const _0x28f917=['small','ck-ai-chat-context-chip_new-chip','_createTemplateChildren','classList','_createLoaderIcon','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','length','span','9454MOoaSf','587895pLNRHJ','execute','locale','ck-hidden','5004hSHxtX','uiId','_handleAnimationEndOnce','itemType','extendTemplate','selection','ck-ai-chat-context-chip__label','element','7RcDrOO','document','_initializeProperties','content','slice','ck-ai-chat-context-chip','setTemplate','removeContextItemChip','render','add','ck-ai-chat-context-chip_wide','9580TDdezG','type','_setupRemoveButtonEvent','div','set','ck-ai-chat-context-chip_document','animationend','disableAnimationOnEnter','readonly','remove','bind','5431170lPECBw','webkitAnimationEnd','removeEventListener','ck-ai-chat-context-controls__chip-tooltip','8612576OGnLOv','9935871kikwYv','lastIndexOf','fire','isLoading','_createRemoveButton','ck-ai-chat-context-chip__type-icon','tooltip','isVisible','addEventListener','_createIconView','_isAnimationOnEnterEnabled','1128WzFHVi','label','_setupTemplate','_createTemplateAttributes','4877476WIXIIh','5vSskPh','bindTemplate','_createLabelElement'];_0x3af6=function(){return _0x28f917;};return _0x3af6();}const An={'file':_0x119768,'document':_0x53deef,'web-resource':_0x2974f1,'text':_0x119768,'selection':_0x486289},Cn=_0x19414f(0xe4),On=_0x19414f(0xe9),vn=_0x19414f(0xef),yn=_0x19414f(0xdd),Ln=_0x19414f(0xff),Rn=_0x19414f(0xf8),Vn='n';export class AIChatContextItemButtonView extends _0x2e1807{constructor(_0x1883fd,_0x14b2f7,_0x508d1b,_0x395b8c,_0x1d230f=!0x1){const _0x293cc6=_0x19414f;super(_0x1883fd),this[_0x293cc6(0x104)]=_0x395b8c,this[_0x293cc6(0xe1)](_0x14b2f7,_0x508d1b,_0x1d230f),this[_0x293cc6(0x107)]();}[_0x19414f(0xe7)](){const _0x3bcfac=_0x19414f;super[_0x3bcfac(0xe7)](),this[_0x3bcfac(0x104)]&&this[_0x3bcfac(0xde)]&&(this[_0x3bcfac(0xde)][_0x3bcfac(0xcd)][_0x3bcfac(0xe8)](_0x3bcfac(0x10e)),this[_0x3bcfac(0xd9)](this[_0x3bcfac(0xde)],()=>{const _0x3ffdbf=_0x3bcfac;this[_0x3ffdbf(0xde)]&&this[_0x3ffdbf(0xde)][_0x3ffdbf(0xcd)][_0x3ffdbf(0xf3)](_0x3ffdbf(0x10e));}));}[_0x19414f(0xf1)](){const _0x4e7b1b=_0x19414f;this[_0x4e7b1b(0x104)]=!0x1,this[_0x4e7b1b(0xde)]&&this[_0x4e7b1b(0xde)][_0x4e7b1b(0xcd)][_0x4e7b1b(0xf3)](_0x4e7b1b(0x10e));}[_0x19414f(0xe1)](_0xc2b412,_0x56d205,_0x6d5c14){const _0x22e288=_0x19414f;this[_0x22e288(0xee)](_0x22e288(0x106),_0xc2b412[_0x22e288(0x106)]),this[_0x22e288(0xee)](_0x22e288(0x100),!0x0),this[_0x22e288(0xee)](_0x22e288(0xda),_0xc2b412[_0x22e288(0xeb)]),this[_0x22e288(0xee)]('id',_0xc2b412[_0x22e288(0xd8)]),this[_0x22e288(0xee)](_0x22e288(0xf2),_0x56d205),this[_0x22e288(0xee)](_0x22e288(0xfd),_0x6d5c14);}[_0x19414f(0x107)](){const _0x118301=_0x19414f,_0x3cdb52=this[_0x118301(0x103)](),_0x588018=this[_0x118301(0xfe)](),_0x48010a=this[_0x118301(0x10b)];this[_0x118301(0xe5)]({'tag':_0x118301(0xed),'attributes':this[_0x118301(0x108)](_0x48010a),'children':this[_0x118301(0xcc)](_0x3cdb52,_0x588018,_0x48010a)});}[_0x19414f(0x108)](_0xf64c64){const _0x26088e=_0x19414f;return{'class':[Cn,_0xf64c64['if'](_0x26088e(0xda),vn,_0x4004d2=>_0x26088e(0xe0)==_0x4004d2),_0xf64c64['if'](_0x26088e(0xda),On,_0x3890a5=>_0x26088e(0xdc)==_0x3890a5)],'data-cke-tooltip-text':_0xf64c64['to'](_0x26088e(0x106),jn),'data-cke-tooltip-position':Vn,'data-cke-tooltip-class':Rn};}[_0x19414f(0xcc)](_0x9f15a1,_0x2c4a7a,_0x4e8ff9){const _0x226958=_0x19414f,_0x5553d7=this[_0x226958(0x10c)](_0x4e8ff9),_0x1f8984=this[_0x226958(0xce)]();return this[_0x226958(0xf2)]?[_0x9f15a1,_0x5553d7]:[_0x9f15a1,_0x1f8984,_0x5553d7,_0x2c4a7a];}[_0x19414f(0x10c)](_0x405fe3){const _0x42d390=_0x19414f;return{'tag':_0x42d390(0xd1),'attributes':{'class':yn},'children':[{'text':_0x405fe3['to'](_0x42d390(0x106))}]};}[_0x19414f(0xfe)](){const _0x52d745=_0x19414f,_0x3fca4d=new _0x2e1807(this[_0x52d745(0xd5)]);return _0x3fca4d[_0x52d745(0xee)]({'label':_0x1452f5(this[_0x52d745(0xd5)],_0x52d745(0xcf)),'icon':_0x1dca54}),this[_0x52d745(0xec)](_0x3fca4d),_0x3fca4d;}[_0x19414f(0xec)](_0x53e970){const _0x18c9e0=_0x19414f;_0x53e970['on'](_0x18c9e0(0xd4),()=>{const _0x112b97=_0x18c9e0;this[_0x112b97(0xfc)](_0x112b97(0xe6),this['id']);});}[_0x19414f(0x103)](){const _0x5d0cb9=_0x19414f,_0x3148ef=this[_0x5d0cb9(0x10b)],_0x4a315b=new _0x40686d();return _0x4a315b[_0x5d0cb9(0xe2)]=An[this[_0x5d0cb9(0xda)]],_0x4a315b[_0x5d0cb9(0xdb)]({'attributes':{'class':[Ln,_0x3148ef['if'](_0x5d0cb9(0xfd),_0x5d0cb9(0xd6),_0x275936=>_0x275936)]}}),_0x4a315b;}[_0x19414f(0xd9)](_0x1049af,_0x56e4d1){const _0x1172b0=_0x19414f;if(!_0x1049af)return;const _0x1be226=()=>{const _0x3a8ad8=_0x5f18;_0x56e4d1(),_0x1049af[_0x3a8ad8(0xf7)](_0x3a8ad8(0xf0),_0x1be226),_0x1049af[_0x3a8ad8(0xf7)](_0x3a8ad8(0xf6),_0x1be226);};_0x1049af[_0x1172b0(0x102)](_0x1172b0(0xf0),_0x1be226),_0x1049af[_0x1172b0(0x102)](_0x1172b0(0xf6),_0x1be226);}[_0x19414f(0xce)](){const _0x5019c2=_0x19414f,_0x1e8a7b=new _0x8507b8(_0x5019c2(0x10d));return _0x1e8a7b[_0x5019c2(0xf4)](_0x5019c2(0x101))['to'](this,_0x5019c2(0xfd),_0x2294a2=>_0x2294a2),_0x1e8a7b;}}function jn(_0x1eae57){const _0x4e72d6=_0x19414f;if(!_0x1eae57)return _0x1eae57;if(_0x1eae57[_0x4e72d6(0xd0)]<=0x78)return _0x1eae57;const _0x31edee=_0x1eae57[_0x4e72d6(0xe3)](0x0,0x78),_0x19fd14=_0x31edee[_0x4e72d6(0xfb)]('\x20');return(_0x19fd14>0x0?_0x31edee[_0x4e72d6(0xe3)](0x0,_0x19fd14):_0x31edee)+'…';}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x13ea(){const _0x40fc46=['10PKqgaK','children','_setupEventHandlers','AI_CHAT_CONTEXT_URL_ADD_URL','keystrokes','focusCycler','2448610zfxdmv','AI_CHAT_CONTEXT_URL_PLACEHOLDER','257838fbgRka','16sxmhHx','confirmButton','ck-button-icon\x20ck-button-back','AI_CHAT_CONTEXT_URL_LABEL','createCollection','esc','460368mUYsNv','_updateConfirmButtonState','urlInputField','set','errorText','ck-button-icon','1510890xEnHEK','_isValidUrl','submitUrl','input','fire','_createConfirmButton','focus','ck-ai-chat-context-controls__url-form','isEnabled','1186956UQOMjM','6029919TrYWys','cancel','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','add','_focusables','submit','refreshBalloon','div','_setupKeystrokes','render','form','value','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','getValue','execute','stop','destroy','ck-ai-chat-context-controls__url-input-section','setTemplate','ck-labeled-field-view_empty','setError','focusTracker','tab','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','_handleSubmit','shift+tab','trim','_setupTemplate','_createBackButton','length','1547820lgsirg','11wWlkPl','forEach','_createUrlInputField','locale','element','AI_CHAT_CONTEXT_URL_INVALID_ERROR','fieldView','clear','listenTo','backButton','3iHKLRF','clearError'];_0x13ea=function(){return _0x40fc46;};return _0x13ea();}const _0x461611=_0x2e75;(function(_0x594f3d,_0x4de59c){const _0xf9febc=_0x2e75,_0x529a45=_0x594f3d();while(!![]){try{const _0x1aa72b=-parseInt(_0xf9febc(0x106))/0x1+-parseInt(_0xf9febc(0x11c))/0x2*(-parseInt(_0xf9febc(0x146))/0x3)+parseInt(_0xf9febc(0x13b))/0x4*(parseInt(_0xf9febc(0x148))/0x5)+parseInt(_0xf9febc(0x113))/0x6+-parseInt(_0xf9febc(0x11d))/0x7+parseInt(_0xf9febc(0x107))/0x8*(-parseInt(_0xf9febc(0x10d))/0x9)+-parseInt(_0xf9febc(0x104))/0xa*(-parseInt(_0xf9febc(0x13c))/0xb);if(_0x1aa72b===_0x4de59c)break;else _0x529a45['push'](_0x529a45['shift']());}catch(_0x5bc0ce){_0x529a45['push'](_0x529a45['shift']());}}}(_0x13ea,0x9cdc9));import{FocusTracker as _0xeadbd8,KeystrokeHandler as _0x461502}from'ckeditor5/src/utils.js';function _0x2e75(_0xaa71d7,_0x111a9b){const _0x13eab6=_0x13ea();return _0x2e75=function(_0x2e759c,_0x264ecd){_0x2e759c=_0x2e759c-0x100;let _0x57d884=_0x13eab6[_0x2e759c];return _0x57d884;},_0x2e75(_0xaa71d7,_0x111a9b);}import{ButtonView as _0x35c877,FocusCycler as _0x2707da,LabeledFieldView as _0x2ad194,View as _0x58c6a1,FormHeaderView as _0x2331c7,createLabeledInputText as _0x259ae2,submitHandler as _0x26449a}from'ckeditor5/src/ui.js';import{IconCheck as _0x39af4e,IconPreviousArrow as _0x14a967}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x1443ea}from'../../../aicore/utils/common-translations.js';const ih=_0x461611(0x11a),eh=_0x461611(0x12e);export class AIChatContextPanelUrlInputView extends _0x58c6a1{[_0x461611(0x132)];[_0x461611(0x102)];[_0x461611(0x121)];[_0x461611(0x103)];[_0x461611(0x10f)];[_0x461611(0x145)];[_0x461611(0x108)];constructor(_0x3c447d){const _0x7c9d0c=_0x461611;super(_0x3c447d),this[_0x7c9d0c(0x132)]=new _0xeadbd8(),this[_0x7c9d0c(0x102)]=new _0x461502(),this[_0x7c9d0c(0x145)]=this[_0x7c9d0c(0x139)](),this[_0x7c9d0c(0x10f)]=this[_0x7c9d0c(0x13e)](),this[_0x7c9d0c(0x108)]=this[_0x7c9d0c(0x118)](),this[_0x7c9d0c(0x121)]=this[_0x7c9d0c(0x10b)]([this[_0x7c9d0c(0x145)],this[_0x7c9d0c(0x10f)],this[_0x7c9d0c(0x108)]]),this[_0x7c9d0c(0x103)]=new _0x2707da({'focusables':this[_0x7c9d0c(0x121)],'focusTracker':this[_0x7c9d0c(0x132)],'keystrokeHandler':this[_0x7c9d0c(0x102)],'actions':{'focusPrevious':_0x7c9d0c(0x136),'focusNext':_0x7c9d0c(0x133)}}),this[_0x7c9d0c(0x138)](),this[_0x7c9d0c(0x100)](),this[_0x7c9d0c(0x125)]();}[_0x461611(0x126)](){const _0x554bb5=_0x461611;super[_0x554bb5(0x126)](),this[_0x554bb5(0x121)][_0x554bb5(0x13d)](_0x87a3cc=>{const _0x420858=_0x554bb5;this[_0x420858(0x132)][_0x420858(0x120)](_0x87a3cc[_0x420858(0x140)]),this[_0x420858(0x102)][_0x420858(0x144)](_0x87a3cc[_0x420858(0x140)]);}),_0x26449a({'view':this}),this[_0x554bb5(0x119)]();}[_0x461611(0x12d)](){const _0x228e2f=_0x461611;super[_0x228e2f(0x12d)](),this[_0x228e2f(0x132)][_0x228e2f(0x12d)](),this[_0x228e2f(0x102)][_0x228e2f(0x12d)]();}[_0x461611(0x119)](){const _0x1ccf20=_0x461611;this[_0x1ccf20(0x10f)][_0x1ccf20(0x119)]();}[_0x461611(0x12a)](){const _0x20dad7=_0x461611;return this[_0x20dad7(0x10f)][_0x20dad7(0x142)][_0x20dad7(0x140)]?.[_0x20dad7(0x128)]?.[_0x20dad7(0x137)]()||'';}[_0x461611(0x143)](){const _0x4415c3=_0x461611;this[_0x4415c3(0x10f)][_0x4415c3(0x142)][_0x4415c3(0x140)][_0x4415c3(0x128)]='',this[_0x4415c3(0x10f)][_0x4415c3(0x111)]=null,this[_0x4415c3(0x108)][_0x4415c3(0x11b)]=!0x1;}[_0x461611(0x131)](_0x11c60b){const _0x335a96=_0x461611;this[_0x335a96(0x10f)][_0x335a96(0x111)]=_0x11c60b,this[_0x335a96(0x10e)](),this[_0x335a96(0x117)](_0x335a96(0x123));}[_0x461611(0x147)](){const _0x49b80e=_0x461611;this[_0x49b80e(0x10f)][_0x49b80e(0x111)]=null,this[_0x49b80e(0x10e)]();}[_0x461611(0x139)](){const _0x776a85=_0x461611,_0x73f871=new _0x35c877(this[_0x776a85(0x13f)]);return _0x73f871[_0x776a85(0x110)]({'icon':_0x14a967,'tooltip':_0x1443ea(this[_0x776a85(0x13f)],_0x776a85(0x11f)),'tooltipPosition':'n','class':_0x776a85(0x109)}),_0x73f871;}[_0x461611(0x13e)](){const _0xe6977f=_0x461611,_0x532c4c=new _0x2ad194(this[_0xe6977f(0x13f)],_0x259ae2);return _0x532c4c[_0xe6977f(0x110)]({'label':_0x1443ea(this[_0xe6977f(0x13f)],_0xe6977f(0x10a)),'class':_0xe6977f(0x130)}),_0x532c4c[_0xe6977f(0x142)][_0xe6977f(0x110)]({'placeholder':_0x1443ea(this[_0xe6977f(0x13f)],_0xe6977f(0x105))}),_0x532c4c;}[_0x461611(0x118)](){const _0x545add=_0x461611,_0x5c1e30=new _0x35c877(this[_0x545add(0x13f)]);return _0x5c1e30[_0x545add(0x110)]({'icon':_0x39af4e,'tooltip':_0x1443ea(this[_0x545add(0x13f)],_0x545add(0x101)),'tooltipPosition':'n','class':_0x545add(0x112),'type':_0x545add(0x122),'isEnabled':!0x1}),_0x5c1e30;}[_0x461611(0x138)](){const _0x40186b=_0x461611,_0x50d339=new _0x2331c7(this[_0x40186b(0x13f)],{'label':_0x1443ea(this[_0x40186b(0x13f)],_0x40186b(0x101)),'class':_0x40186b(0x129)});_0x50d339[_0x40186b(0x149)][_0x40186b(0x120)](this[_0x40186b(0x145)],0x0),this[_0x40186b(0x12f)]({'tag':_0x40186b(0x127),'attributes':{'class':ih,'tabindex':'-1'},'children':[_0x50d339,{'tag':_0x40186b(0x124),'attributes':{'class':eh},'children':[this[_0x40186b(0x10f)],this[_0x40186b(0x108)]]}]});}[_0x461611(0x100)](){const _0x5e26a1=_0x461611;this[_0x5e26a1(0x145)]['on'](_0x5e26a1(0x12b),()=>{const _0x51145b=_0x5e26a1;this[_0x51145b(0x143)](),this[_0x51145b(0x117)](_0x51145b(0x11e));}),this[_0x5e26a1(0x10f)][_0x5e26a1(0x142)]['on'](_0x5e26a1(0x116),()=>{const _0x531ac5=_0x5e26a1;this[_0x531ac5(0x147)](),this[_0x531ac5(0x10e)](),this[_0x531ac5(0x117)](_0x531ac5(0x123));}),this['on'](_0x5e26a1(0x122),_0x44d85e=>{const _0x43c73d=_0x5e26a1;_0x44d85e[_0x43c73d(0x12c)](),this[_0x43c73d(0x135)]();});}[_0x461611(0x125)](){const _0x418a3c=_0x461611;this[_0x418a3c(0x102)][_0x418a3c(0x110)](_0x418a3c(0x10c),(_0x566bcf,_0x5c4ef6)=>{const _0x1aebad=_0x418a3c;this[_0x1aebad(0x143)](),this[_0x1aebad(0x117)](_0x1aebad(0x11e)),_0x5c4ef6();});}[_0x461611(0x135)](){const _0x1407c1=_0x461611,_0x12ea6d=this[_0x1407c1(0x12a)]()[_0x1407c1(0x137)]();_0x12ea6d?this[_0x1407c1(0x114)](_0x12ea6d)?(this[_0x1407c1(0x147)](),this[_0x1407c1(0x117)](_0x1407c1(0x115),_0x12ea6d)):this[_0x1407c1(0x131)](_0x1443ea(this[_0x1407c1(0x13f)],_0x1407c1(0x141))):this[_0x1407c1(0x131)](_0x1443ea(this[_0x1407c1(0x13f)],_0x1407c1(0x134)));}[_0x461611(0x10e)](){const _0x300561=_0x461611,_0x3f56c4=this[_0x300561(0x12a)]()[_0x300561(0x137)](),_0x48acdd=!!this[_0x300561(0x10f)][_0x300561(0x111)];this[_0x300561(0x108)][_0x300561(0x11b)]=_0x3f56c4[_0x300561(0x13a)]>0x0&&!_0x48acdd;}[_0x461611(0x114)](_0x1cee3b){try{return!!new URL(_0x1cee3b);}catch{return!0x1;}}}
23
+ const _0xbaec5=_0x30ef;function _0x30ef(_0x28d6b1,_0x5b51e7){const _0x4c86e6=_0x4c86();return _0x30ef=function(_0x30efce,_0x4c9c36){_0x30efce=_0x30efce-0x6a;let _0x2ae210=_0x4c86e6[_0x30efce];return _0x2ae210;},_0x30ef(_0x28d6b1,_0x5b51e7);}(function(_0x260dd4,_0x37040f){const _0x5885f0=_0x30ef,_0x2b0c88=_0x260dd4();while(!![]){try{const _0x68c26c=parseInt(_0x5885f0(0x81))/0x1*(-parseInt(_0x5885f0(0x88))/0x2)+-parseInt(_0x5885f0(0x84))/0x3+-parseInt(_0x5885f0(0x75))/0x4*(-parseInt(_0x5885f0(0x7c))/0x5)+parseInt(_0x5885f0(0x96))/0x6+-parseInt(_0x5885f0(0x6f))/0x7*(-parseInt(_0x5885f0(0xaf))/0x8)+parseInt(_0x5885f0(0x8c))/0x9+parseInt(_0x5885f0(0x6b))/0xa*(-parseInt(_0x5885f0(0x8e))/0xb);if(_0x68c26c===_0x37040f)break;else _0x2b0c88['push'](_0x2b0c88['shift']());}catch(_0x5a08a3){_0x2b0c88['push'](_0x2b0c88['shift']());}}}(_0x4c86,0x88d9a));import{FocusTracker as _0x248499,KeystrokeHandler as _0x5fd9e}from'ckeditor5/src/utils.js';import{ButtonView as _0x380f81,FocusCycler as _0xc910f7,LabeledFieldView as _0x34c9b3,View as _0x191dee,FormHeaderView as _0x2808fb,createLabeledInputText as _0x4b3dd0,submitHandler as _0x306fa2}from'ckeditor5/src/ui.js';import{IconCheck as _0x4162e2,IconPreviousArrow as _0x3ceeb2}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x432eb9}from'../../../aicore/utils/common-translations.js';function _0x4c86(){const _0x22cad7=['_isValidUrl','setError','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','shift+tab','14156VNPsbM','listenTo','fire','keystrokes','_createUrlInputField','submit','setTemplate','695RsfNVy','render','_setupTemplate','children','AI_CHAT_CONTEXT_URL_INVALID_ERROR','329wDbZUZ','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','_setupEventHandlers','2097534QOlHHr','AI_CHAT_CONTEXT_URL_PLACEHOLDER','AI_CHAT_CONTEXT_URL_ADD_URL','ck-button-icon\x20ck-button-back','2408KbKuRO','AI_CHAT_CONTEXT_URL_LABEL','destroy','ck-labeled-field-view_empty','3932739rVWVxh','element','55xvAefz','_createConfirmButton','trim','ck-ai-chat-context-controls__url-form','execute','getValue','add','_focusables','5370174xHYjvo','_setupKeystrokes','value','clear','_handleSubmit','tab','errorText','locale','form','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','forEach','input','esc','ck-button-icon','fieldView','set','div','focusCycler','_createBackButton','_updateConfirmButtonState','isEnabled','submitUrl','confirmButton','createCollection','ck-ai-chat-context-controls__url-input-section','560672KgxkVN','focusTracker','stop','backButton','refreshBalloon','clearError','1597690KDBpgo','length','focus','cancel','63jeYBBI','urlInputField'];_0x4c86=function(){return _0x22cad7;};return _0x4c86();}const oh=_0xbaec5(0x91),ch=_0xbaec5(0xae);export class AIChatContextPanelUrlInputView extends _0x191dee{[_0xbaec5(0xb0)];[_0xbaec5(0x78)];[_0xbaec5(0x95)];[_0xbaec5(0xa7)];[_0xbaec5(0x70)];[_0xbaec5(0xb2)];[_0xbaec5(0xac)];constructor(_0x56a10e){const _0x4e862b=_0xbaec5;super(_0x56a10e),this[_0x4e862b(0xb0)]=new _0x248499(),this[_0x4e862b(0x78)]=new _0x5fd9e(),this[_0x4e862b(0xb2)]=this[_0x4e862b(0xa8)](),this[_0x4e862b(0x70)]=this[_0x4e862b(0x79)](),this[_0x4e862b(0xac)]=this[_0x4e862b(0x8f)](),this[_0x4e862b(0x95)]=this[_0x4e862b(0xad)]([this[_0x4e862b(0xb2)],this[_0x4e862b(0x70)],this[_0x4e862b(0xac)]]),this[_0x4e862b(0xa7)]=new _0xc910f7({'focusables':this[_0x4e862b(0x95)],'focusTracker':this[_0x4e862b(0xb0)],'keystrokeHandler':this[_0x4e862b(0x78)],'actions':{'focusPrevious':_0x4e862b(0x74),'focusNext':_0x4e862b(0x9b)}}),this[_0x4e862b(0x7e)](),this[_0x4e862b(0x83)](),this[_0x4e862b(0x97)]();}[_0xbaec5(0x7d)](){const _0x4ad327=_0xbaec5;super[_0x4ad327(0x7d)](),this[_0x4ad327(0x95)][_0x4ad327(0xa0)](_0x2e976d=>{const _0x18e2fd=_0x4ad327;this[_0x18e2fd(0xb0)][_0x18e2fd(0x94)](_0x2e976d[_0x18e2fd(0x8d)]),this[_0x18e2fd(0x78)][_0x18e2fd(0x76)](_0x2e976d[_0x18e2fd(0x8d)]);}),_0x306fa2({'view':this}),this[_0x4ad327(0x6d)]();}[_0xbaec5(0x8a)](){const _0x451117=_0xbaec5;super[_0x451117(0x8a)](),this[_0x451117(0xb0)][_0x451117(0x8a)](),this[_0x451117(0x78)][_0x451117(0x8a)]();}[_0xbaec5(0x6d)](){const _0x3b6c71=_0xbaec5;this[_0x3b6c71(0x70)][_0x3b6c71(0x6d)]();}[_0xbaec5(0x93)](){const _0x38b4b0=_0xbaec5;return this[_0x38b4b0(0x70)][_0x38b4b0(0xa4)][_0x38b4b0(0x8d)]?.[_0x38b4b0(0x98)]?.[_0x38b4b0(0x90)]()||'';}[_0xbaec5(0x99)](){const _0x2792e0=_0xbaec5;this[_0x2792e0(0x70)][_0x2792e0(0xa4)][_0x2792e0(0x8d)][_0x2792e0(0x98)]='',this[_0x2792e0(0x70)][_0x2792e0(0x9c)]=null,this[_0x2792e0(0xac)][_0x2792e0(0xaa)]=!0x1;}[_0xbaec5(0x72)](_0x4f4d68){const _0x55a5cf=_0xbaec5;this[_0x55a5cf(0x70)][_0x55a5cf(0x9c)]=_0x4f4d68,this[_0x55a5cf(0xa9)](),this[_0x55a5cf(0x77)](_0x55a5cf(0xb3));}[_0xbaec5(0x6a)](){const _0x5b610c=_0xbaec5;this[_0x5b610c(0x70)][_0x5b610c(0x9c)]=null,this[_0x5b610c(0xa9)]();}[_0xbaec5(0xa8)](){const _0x39abe6=_0xbaec5,_0x19e922=new _0x380f81(this[_0x39abe6(0x9d)]);return _0x19e922[_0x39abe6(0xa5)]({'icon':_0x3ceeb2,'tooltip':_0x432eb9(this[_0x39abe6(0x9d)],_0x39abe6(0x73)),'tooltipPosition':'n','class':_0x39abe6(0x87)}),_0x19e922;}[_0xbaec5(0x79)](){const _0x1a132b=_0xbaec5,_0x1591d7=new _0x34c9b3(this[_0x1a132b(0x9d)],_0x4b3dd0);return _0x1591d7[_0x1a132b(0xa5)]({'label':_0x432eb9(this[_0x1a132b(0x9d)],_0x1a132b(0x89)),'class':_0x1a132b(0x8b)}),_0x1591d7[_0x1a132b(0xa4)][_0x1a132b(0xa5)]({'placeholder':_0x432eb9(this[_0x1a132b(0x9d)],_0x1a132b(0x85))}),_0x1591d7;}[_0xbaec5(0x8f)](){const _0x2a5112=_0xbaec5,_0x2f20c3=new _0x380f81(this[_0x2a5112(0x9d)]);return _0x2f20c3[_0x2a5112(0xa5)]({'icon':_0x4162e2,'tooltip':_0x432eb9(this[_0x2a5112(0x9d)],_0x2a5112(0x86)),'tooltipPosition':'n','class':_0x2a5112(0xa3),'type':_0x2a5112(0x7a),'isEnabled':!0x1}),_0x2f20c3;}[_0xbaec5(0x7e)](){const _0x1ce277=_0xbaec5,_0x3d917e=new _0x2808fb(this[_0x1ce277(0x9d)],{'label':_0x432eb9(this[_0x1ce277(0x9d)],_0x1ce277(0x86)),'class':_0x1ce277(0x82)});_0x3d917e[_0x1ce277(0x7f)][_0x1ce277(0x94)](this[_0x1ce277(0xb2)],0x0),this[_0x1ce277(0x7b)]({'tag':_0x1ce277(0x9e),'attributes':{'class':oh,'tabindex':'-1'},'children':[_0x3d917e,{'tag':_0x1ce277(0xa6),'attributes':{'class':ch},'children':[this[_0x1ce277(0x70)],this[_0x1ce277(0xac)]]}]});}[_0xbaec5(0x83)](){const _0x49b286=_0xbaec5;this[_0x49b286(0xb2)]['on'](_0x49b286(0x92),()=>{const _0x437b42=_0x49b286;this[_0x437b42(0x99)](),this[_0x437b42(0x77)](_0x437b42(0x6e));}),this[_0x49b286(0x70)][_0x49b286(0xa4)]['on'](_0x49b286(0xa1),()=>{const _0x2aaa34=_0x49b286;this[_0x2aaa34(0x6a)](),this[_0x2aaa34(0xa9)](),this[_0x2aaa34(0x77)](_0x2aaa34(0xb3));}),this['on'](_0x49b286(0x7a),_0x36a265=>{const _0x46e677=_0x49b286;_0x36a265[_0x46e677(0xb1)](),this[_0x46e677(0x9a)]();});}[_0xbaec5(0x97)](){const _0x33d718=_0xbaec5;this[_0x33d718(0x78)][_0x33d718(0xa5)](_0x33d718(0xa2),(_0x251a84,_0x3aa259)=>{const _0x2b0daa=_0x33d718;this[_0x2b0daa(0x99)](),this[_0x2b0daa(0x77)](_0x2b0daa(0x6e)),_0x3aa259();});}[_0xbaec5(0x9a)](){const _0x3494f5=_0xbaec5,_0x4c46a5=this[_0x3494f5(0x93)]()[_0x3494f5(0x90)]();_0x4c46a5?this[_0x3494f5(0x71)](_0x4c46a5)?(this[_0x3494f5(0x6a)](),this[_0x3494f5(0x77)](_0x3494f5(0xab),_0x4c46a5)):this[_0x3494f5(0x72)](_0x432eb9(this[_0x3494f5(0x9d)],_0x3494f5(0x80))):this[_0x3494f5(0x72)](_0x432eb9(this[_0x3494f5(0x9d)],_0x3494f5(0x9f)));}[_0xbaec5(0xa9)](){const _0x27ec47=_0xbaec5,_0x25c32c=this[_0x27ec47(0x93)]()[_0x27ec47(0x90)](),_0x1032b2=!!this[_0x27ec47(0x70)][_0x27ec47(0x9c)];this[_0x27ec47(0xac)][_0x27ec47(0xaa)]=_0x25c32c[_0x27ec47(0x6c)]>0x0&&!_0x1032b2;}[_0xbaec5(0x71)](_0x2e2810){try{return!!new URL(_0x2e2810);}catch{return!0x1;}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x66d25d=_0x4933;(function(_0x412217,_0x147062){const _0x180294=_0x4933,_0x1fd92d=_0x412217();while(!![]){try{const _0x1da71d=parseInt(_0x180294(0x1c4))/0x1+parseInt(_0x180294(0x1f0))/0x2*(parseInt(_0x180294(0x24d))/0x3)+-parseInt(_0x180294(0x244))/0x4*(-parseInt(_0x180294(0x209))/0x5)+parseInt(_0x180294(0x1e4))/0x6+parseInt(_0x180294(0x1e0))/0x7+parseInt(_0x180294(0x204))/0x8+-parseInt(_0x180294(0x21b))/0x9*(parseInt(_0x180294(0x217))/0xa);if(_0x1da71d===_0x147062)break;else _0x1fd92d['push'](_0x1fd92d['shift']());}catch(_0x3bcb06){_0x1fd92d['push'](_0x1fd92d['shift']());}}}(_0x1e0a,0xe3e77));import{BalloonPanelView as _0x38dd0c,ButtonView as _0x32271a,clickOutsideHandler as _0x3804d1,FileDialogButtonView as _0xfe914d,IconView as _0x467315,View as _0x48db45}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x30f871,IconDocument as _0x23444e,IconDocumentOutline as _0x3eacf7,IconDropdownArrow as _0x2c5389,IconLink as _0x283c67,IconPaperClip as _0x21b213}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x5ee0c6}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x59abb1}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0xc51911}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x196db6}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x3ce06d}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x66d25d(0x1fb),_0x66d25d(0x232),_0x66d25d(0x240),_0x66d25d(0x223),_0x66d25d(0x1c8),_0x66d25d(0x228)];const Eo=_0x66d25d(0x235),vo=_0x66d25d(0x1f4),Vo=_0x66d25d(0x1f5),Io=_0x66d25d(0x1c2),Po=_0x66d25d(0x224),Ro=_0x66d25d(0x1e3),Uo=_0x66d25d(0x1ef),Lo=_0x66d25d(0x1ca),No=_0x66d25d(0x1cc),Oo=_0x66d25d(0x1d7),Mo=_0x66d25d(0x246),Ho=_0x66d25d(0x243),jo=[_0x38dd0c[_0x66d25d(0x1f1)][_0x66d25d(0x222)],_0x38dd0c[_0x66d25d(0x1f1)][_0x66d25d(0x24e)],_0x38dd0c[_0x66d25d(0x1f1)][_0x66d25d(0x238)],_0x38dd0c[_0x66d25d(0x1f1)][_0x66d25d(0x23e)],_0x38dd0c[_0x66d25d(0x1f1)][_0x66d25d(0x214)],_0x38dd0c[_0x66d25d(0x1f1)][_0x66d25d(0x1dc)]];function _0x1e0a(){const _0x23a726=['fire','updateResourceState','addContextButtonView','submitUrl','conversation','addFileToContext','enabled','body','ck-ai-chat-context-controls','type','isAnyResourceBalloonVisible','northArrowSouthEast','_createArrowView','hideUrlBalloonPanel','showAddContextBalloonPanel','element','setTemplate','southArrowNorthWest','isVisible','addUrlToContext','setContainerElement','closest','ck-ai-chat','75996FGuigc','showSourceResourcesBalloon','ck-ai-chat-context-controls__show-more-balloon-panel','populateSourceResourceBalloon','_createAddContextBalloonPanelView','_resourcesBalloonView','_urlBalloonPanelView','_bindEventHandlers','refreshBalloon','281487EQRsBH','northArrowSouth','done','urls','clearConversationContextItems','ck-ai-chat-context-controls__add-context-button','showUrlBalloonPanel','204298snrUfn','_setupAllBalloonClickOutsideHandlers','buttonView','isOn','removeContextItem','_addContextBalloonPanelView','ck-ai-chat-controls-button','source','ck-ai-chat-context-chips-wrapper-balloon','_createAddContextButtonView','__arrow','label','_removeContextFromCollection','pin','_createBaseBalloonPanel','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','div','show','_createResourcesBalloonView','ck-ai-chat-controls_context_show-more-button','destroy','remove','_setAddContextButtonEnabled','ck-reset_all-excluded','southArrowNorthEast','setContextItemLoading','_handleUrlSubmit','_setBalloonPanelContent','3786867VQGODp','_toggleAddContextBalloon','_setupUrlBalloonClickOutsideHandler','ck-ai-chat-context-controls__balloon-button','5572008rkXQOD','add','_createBalloonButton','isLoading','arrowView','setConversationContext','overflowChips','hideAddContextBalloonPanel','document','focus','isEnabled','ck-ai-chat-context-controls__balloon-button-source','22NcfSkp','defaultPositions','children','icon','ck-ai-chat-context-controls__pending-contexts','ck-ai-chat-context-controls__add-context-balloon-panel','locale','_handleAddContextButtonClick','_createUrlBalloonPanelView','find','AI_CHAT_CONTEXT_FILE_LABEL','addDocumentToContext','isReadOnly','setAddContextOptions','closeSourceResourceBalloon','addContextItem','files','_addContextToCollection','content','_setupTemplate','4315072sDSWtX','_addUrlContent','_getLimiterElement','execute','AI_CHAT_CONTEXT_ADD_CONTEXT','205Uankxn','_setupAddContextBalloonClickOutsideHandler','sources','clearCurrentContextItems','_overflowManager','isHidden','balloonView','removeContextItemChip','render','createCollection','_createContextButton','southArrowNorth','_showSourceResourcesBalloon','cancel','1420aCUcIf','AI_CHAT_CONTEXT_URL_LABEL','current','_urlInputView','195903DDfEWJ','_conversationContextsChips','set','_addContextBalloonConfig','reorganizeChips','bind','tooltip','northArrowSouthWest','addResourceToContext','ck-ai-chat-context-controls__url-balloon-panel','_currentContextsChips','bodyCollection','menuitem','loadSourceResources','clear','extendTemplate','searchInputVisibleFrom','hide'];_0x1e0a=function(){return _0x23a726;};return _0x1e0a();}function _0x4933(_0x1cf67d,_0x5dbde0){const _0x1e0a75=_0x1e0a();return _0x4933=function(_0x493364,_0x182285){_0x493364=_0x493364-0x1c1;let _0x5809cd=_0x1e0a75[_0x493364];return _0x5809cd;},_0x4933(_0x1cf67d,_0x5dbde0);}export class AIChatContextPanelView extends _0x48db45{[_0x66d25d(0x22f)];[_0x66d25d(0x225)]=this[_0x66d25d(0x212)]();[_0x66d25d(0x21c)]=this[_0x66d25d(0x212)]();[_0x66d25d(0x20d)];[_0x66d25d(0x1c9)];[_0x66d25d(0x24a)];[_0x66d25d(0x21a)];[_0x66d25d(0x249)];[_0x66d25d(0x21e)];[_0x66d25d(0x226)];constructor(_0x586fd0,_0x58c11c){const _0x3da699=_0x66d25d;super(_0x586fd0),this[_0x3da699(0x226)]=_0x58c11c[_0x3da699(0x226)],this[_0x3da699(0x225)]=this[_0x3da699(0x212)](),this[_0x3da699(0x21c)]=this[_0x3da699(0x212)](),this[_0x3da699(0x22f)]=this[_0x3da699(0x1cd)](_0x586fd0),this[_0x3da699(0x1c9)]=this[_0x3da699(0x248)](_0x586fd0),this[_0x3da699(0x24a)]=this[_0x3da699(0x1f8)](_0x586fd0),this[_0x3da699(0x249)]=this[_0x3da699(0x1d6)](_0x586fd0,_0x58c11c);const _0x432036={'cssClasses':{'showMoreButton':Oo,'showMoreBalloon':Mo,'overflowContainer':No,'controlsButton':Lo}};this[_0x3da699(0x20d)]=new _0xc51911(_0x586fd0,this[_0x3da699(0x225)],_0x432036,this[_0x3da699(0x226)],this),this[_0x3da699(0x21e)]={'buttonView':this[_0x3da699(0x22f)],'balloonView':this[_0x3da699(0x1c9)],'hideMethod':this[_0x3da699(0x1eb)][_0x3da699(0x220)](this),'showMethod':this[_0x3da699(0x23b)][_0x3da699(0x220)](this)},this[_0x3da699(0x203)](),this[_0x3da699(0x24b)]();}[_0x66d25d(0x211)](){const _0x40042d=_0x66d25d;super[_0x40042d(0x211)](),this[_0x40042d(0x1c5)](),this[_0x40042d(0x20d)][_0x40042d(0x241)](this[_0x40042d(0x23c)]),this[_0x40042d(0x20d)][_0x40042d(0x21f)]();}[_0x66d25d(0x1d8)](){const _0x2e8d81=_0x66d25d;super[_0x2e8d81(0x1d8)](),this[_0x2e8d81(0x20d)][_0x2e8d81(0x1d8)](),this[_0x2e8d81(0x249)][_0x2e8d81(0x1d8)]();}[_0x66d25d(0x1ff)](_0x270e15,_0xf0a5d5){const _0x10a8e3=_0x66d25d,_0x7cc3ef=this[_0x10a8e3(0x213)](_0x270e15,_0x10a8e3(0x219),!0x0,_0xf0a5d5);this[_0x10a8e3(0x201)](_0x7cc3ef,this[_0x10a8e3(0x225)]),this[_0x10a8e3(0x20d)][_0x10a8e3(0x21f)]();}[_0x66d25d(0x1c8)](_0x11bd54){const _0x545096=_0x66d25d;this[_0x545096(0x1d0)](_0x11bd54,this[_0x545096(0x225)]),this[_0x545096(0x1d0)](_0x11bd54,this[_0x545096(0x20d)][_0x545096(0x1ea)]),this[_0x545096(0x20d)][_0x545096(0x21f)]();}[_0x66d25d(0x1dd)](_0x5b317f,_0x4bf80e){const _0x37bdbd=_0x66d25d;let _0x27117b=this[_0x37bdbd(0x225)][_0x37bdbd(0x1f9)](_0x2568d3=>_0x2568d3['id']===_0x5b317f);_0x27117b||(_0x27117b=this[_0x37bdbd(0x20d)][_0x37bdbd(0x1ea)][_0x37bdbd(0x1f9)](_0x197d9a=>_0x197d9a['id']===_0x5b317f)),_0x27117b&&(_0x27117b[_0x37bdbd(0x1e7)]=_0x4bf80e);}[_0x66d25d(0x1e9)](_0x237e7b){const _0x1c033d=_0x66d25d;this[_0x1c033d(0x21c)][_0x1c033d(0x229)]();for(const _0x3dd7f1 of _0x237e7b){const _0x29593a=this[_0x1c033d(0x213)](_0x3dd7f1,_0x1c033d(0x231),!0x1,!0x1);this[_0x1c033d(0x201)](_0x29593a,this[_0x1c033d(0x21c)]);}}[_0x66d25d(0x20c)](){const _0x2d5018=_0x66d25d;this[_0x2d5018(0x225)][_0x2d5018(0x229)](),this[_0x2d5018(0x20d)][_0x2d5018(0x229)]();}[_0x66d25d(0x1c1)](){const _0x1cccba=_0x66d25d;this[_0x1cccba(0x21c)][_0x1cccba(0x229)]();}[_0x66d25d(0x22e)](_0xd51a9c,_0x4e9308,_0x44681f){const _0x3c4e0f=_0x66d25d;this[_0x3c4e0f(0x249)][_0x3c4e0f(0x22e)](_0xd51a9c,_0x4e9308,_0x44681f);}[_0x66d25d(0x1eb)](){const _0x26fc7e=_0x66d25d;this[_0x26fc7e(0x1e1)](!0x1);}[_0x66d25d(0x23b)](){const _0x456c56=_0x66d25d;this[_0x456c56(0x1e1)](!0x0);}[_0x66d25d(0x23a)](){const _0x140923=_0x66d25d;this[_0x140923(0x24a)][_0x140923(0x22c)](),this[_0x140923(0x22f)][_0x140923(0x1c7)]=!0x1,this[_0x140923(0x21a)]&&this[_0x140923(0x21a)][_0x140923(0x229)]();}[_0x66d25d(0x1c3)](){const _0x542e59=_0x66d25d;this[_0x542e59(0x24a)][_0x542e59(0x1d5)](),this[_0x542e59(0x22f)][_0x542e59(0x1c7)]=!0x0;}[_0x66d25d(0x215)](_0x3dd8ea){const _0x1e293a=_0x66d25d;this[_0x1e293a(0x249)][_0x1e293a(0x245)](_0x3dd8ea),this[_0x1e293a(0x22f)][_0x1e293a(0x1c7)]=!0x0;}[_0x66d25d(0x247)](_0x5b9766,_0x1ff624,_0x335cbf,_0x352024){const _0x9b075a=_0x66d25d;this[_0x9b075a(0x249)][_0x9b075a(0x247)](_0x5b9766,_0x335cbf,_0x352024);}[_0x66d25d(0x1fe)](_0x3e7d43){const _0x4f68b0=_0x66d25d;this[_0x4f68b0(0x249)][_0x4f68b0(0x1fe)](_0x3e7d43),this[_0x4f68b0(0x22f)][_0x4f68b0(0x1c7)]=!0x1;}[_0x66d25d(0x1fd)](_0x426164){const _0x52fed9=_0x66d25d;this[_0x52fed9(0x1df)](this[_0x52fed9(0x1c9)],this[_0x52fed9(0x1f6)],_0x426164),this[_0x52fed9(0x1da)](_0x426164);}[_0x66d25d(0x1da)](_0xecad32){const _0x35705e=_0x66d25d,_0x1d1a9c=!_0xecad32[_0x35705e(0x1ec)][_0x35705e(0x20e)]&&_0xecad32[_0x35705e(0x1ec)][_0x35705e(0x233)],_0x5233fd=_0xecad32[_0x35705e(0x250)][_0x35705e(0x233)],_0x4327c7=_0xecad32[_0x35705e(0x200)][_0x35705e(0x233)];this[_0x35705e(0x22f)][_0x35705e(0x1ee)]=_0x1d1a9c||_0x5233fd||_0x4327c7;}[_0x66d25d(0x203)](){const _0x5a66b4=_0x66d25d;this[_0x5a66b4(0x23d)]({'tag':_0x5a66b4(0x1d4),'attributes':{'class':[Eo,_0x5a66b4(0x1db)]},'children':[{'tag':_0x5a66b4(0x1d4),'attributes':{'class':vo},'children':this[_0x5a66b4(0x225)]}]});}[_0x66d25d(0x24b)](){const _0x2e1efe=_0x66d25d;this[_0x2e1efe(0x22f)]['on'](_0x2e1efe(0x207),()=>{const _0x2ab349=_0x2e1efe;this[_0x2ab349(0x1f7)]();});}[_0x66d25d(0x1cd)](_0x18f6bd){const _0x111aa3=_0x66d25d,_0x41ca6a=new _0x32271a(_0x18f6bd);return _0x41ca6a[_0x111aa3(0x21d)]({'label':_0x196db6(_0x18f6bd,_0x111aa3(0x208)),'class':Lo+'\x20'+Io,'icon':_0x21b213,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x41ca6a;}[_0x66d25d(0x248)](_0x20f7d3){const _0x10e6ed=_0x66d25d;return this[_0x10e6ed(0x1d2)](_0x20f7d3,Vo);}[_0x66d25d(0x1f8)](_0x525974){const _0xa252af=_0x66d25d,_0x314fe4=this[_0xa252af(0x1d2)](_0x525974,Po);return this[_0xa252af(0x205)](_0x314fe4,_0x525974),_0x314fe4;}[_0x66d25d(0x1d6)](_0x4095d9,_0x415ba9){const _0xf6ad27=_0x66d25d,_0x425a39={'searchInputVisibleFrom':_0x415ba9[_0xf6ad27(0x22b)],'onBackToContext':()=>{const _0x17d1e5=_0xf6ad27;this[_0x17d1e5(0x23b)](),this[_0x17d1e5(0x1c9)][_0x17d1e5(0x1d1)]({'target':this[_0x17d1e5(0x22f)][_0x17d1e5(0x23c)],'limiter':this[_0x17d1e5(0x206)](),'positions':jo});},'onResourceSelected':(_0x4a3584,_0x170810)=>{const _0x153328=_0xf6ad27;this[_0x153328(0x22d)](_0x153328(0x223),{'source':_0x4a3584,'resource':_0x170810});},'onLoadSourceResources':_0x35e059=>{const _0x4d2f57=_0xf6ad27;this[_0x4d2f57(0x22d)](_0x4d2f57(0x228),_0x35e059);},'onBalloonClosed':()=>{const _0x539814=_0xf6ad27;this[_0x539814(0x22f)][_0x539814(0x1c7)]=!0x1;},'getLimiterElement':()=>this[_0xf6ad27(0x206)](),'getTargetElement':()=>this[_0xf6ad27(0x22f)][_0xf6ad27(0x23c)]};return new _0x3ce06d(_0x4095d9,_0x415ba9[_0xf6ad27(0x226)],_0x425a39);}[_0x66d25d(0x206)](){const _0x14c553=_0x66d25d;return this[_0x14c553(0x23c)]?.[_0x14c553(0x242)]('.'+Ho)||document[_0x14c553(0x234)];}[_0x66d25d(0x1d2)](_0x94f09d,_0xe77a73){const _0x4a138d=_0x66d25d,_0x1cb132=new _0x38dd0c(_0x94f09d);return _0x1cb132[_0x4a138d(0x22a)]({'attributes':{'class':_0xe77a73}}),this[_0x4a138d(0x226)][_0x4a138d(0x1e5)](_0x1cb132),_0x1cb132;}[_0x66d25d(0x1df)](_0x3c7c1f,_0x2e5161,_0x451506){const _0x482fef=_0x66d25d;if(_0x3c7c1f[_0x482fef(0x202)][_0x482fef(0x229)](),!_0x451506[_0x482fef(0x1ec)][_0x482fef(0x20e)]&&_0x451506[_0x482fef(0x1ec)][_0x482fef(0x233)]){const _0x1527df=this[_0x482fef(0x1e6)](_0x2e5161,{'label':_0x196db6(_0x2e5161,_0x482fef(0x1d3)),'icon':_0x23444e});_0x1527df['on'](_0x482fef(0x207),()=>{const _0x180ebb=_0x482fef;this[_0x180ebb(0x22d)](_0x180ebb(0x1fb)),this[_0x180ebb(0x1eb)]();}),_0x3c7c1f[_0x482fef(0x202)][_0x482fef(0x1e5)](_0x1527df);}if(_0x451506[_0x482fef(0x250)][_0x482fef(0x233)]){const _0x121794=this[_0x482fef(0x1e6)](_0x2e5161,{'label':_0x196db6(_0x2e5161,_0x482fef(0x218)),'icon':_0x283c67});_0x121794['on'](_0x482fef(0x207),()=>{const _0x4d8f5b=_0x482fef;this[_0x4d8f5b(0x1eb)](),this[_0x4d8f5b(0x1c3)](),this[_0x4d8f5b(0x24a)][_0x4d8f5b(0x1d1)]({'target':this[_0x4d8f5b(0x22f)][_0x4d8f5b(0x23c)],'limiter':this[_0x4d8f5b(0x206)](),'positions':jo}),this[_0x4d8f5b(0x21a)][_0x4d8f5b(0x1ed)]();}),_0x3c7c1f[_0x482fef(0x202)][_0x482fef(0x1e5)](_0x121794);}if(_0x451506[_0x482fef(0x200)][_0x482fef(0x233)]){const _0x28789e=new _0xfe914d(_0x2e5161);_0x28789e[_0x482fef(0x21d)]({'label':_0x196db6(_0x2e5161,_0x482fef(0x1fa)),'icon':_0x30f871,'withText':!0x0,'tooltip':!0x0,'class':Ro,'allowMultipleFiles':!0x0}),_0x28789e['on'](_0x482fef(0x24f),(_0xc2f87a,_0x56adf3)=>{const _0x38e034=_0x482fef;this[_0x38e034(0x22d)](_0x38e034(0x232),_0x56adf3),this[_0x38e034(0x1eb)]();}),_0x28789e[_0x482fef(0x221)]=!0x0,_0x3c7c1f[_0x482fef(0x202)][_0x482fef(0x1e5)](_0x28789e);}for(const _0x41f980 of _0x451506[_0x482fef(0x20b)]){const _0x6a759f=this[_0x482fef(0x1e6)](_0x2e5161,{'label':_0x41f980[_0x482fef(0x1cf)],'icon':_0x41f980[_0x482fef(0x1f3)]||_0x3eacf7,'type':_0x482fef(0x1cb)});_0x3c7c1f[_0x482fef(0x202)][_0x482fef(0x1e5)](_0x6a759f),_0x6a759f['on'](_0x482fef(0x207),()=>{const _0x12c2c8=_0x482fef;this[_0x12c2c8(0x1eb)](),this[_0x12c2c8(0x215)](_0x41f980);});}}[_0x66d25d(0x205)](_0x29ee26,_0x1a1a9d){const _0x4688ea=_0x66d25d;this[_0x4688ea(0x21a)]=new _0x59abb1(_0x1a1a9d),this[_0x4688ea(0x21a)]['on'](_0x4688ea(0x230),(_0x11982c,_0x49422f)=>{const _0x40921b=_0x4688ea;this[_0x40921b(0x1de)](_0x49422f);}),this[_0x4688ea(0x21a)]['on'](_0x4688ea(0x216),()=>{const _0x2afc2a=_0x4688ea;this[_0x2afc2a(0x23a)](),this[_0x2afc2a(0x23b)](),this[_0x2afc2a(0x1c9)][_0x2afc2a(0x1d1)]({'target':this[_0x2afc2a(0x22f)][_0x2afc2a(0x23c)],'limiter':this[_0x2afc2a(0x206)](),'positions':jo});}),this[_0x4688ea(0x21a)]['on'](_0x4688ea(0x24c),()=>{const _0x12287f=_0x4688ea;this[_0x12287f(0x24a)][_0x12287f(0x23f)]&&this[_0x12287f(0x24a)][_0x12287f(0x1d1)]({'target':this[_0x12287f(0x22f)][_0x12287f(0x23c)],'limiter':this[_0x12287f(0x206)](),'positions':jo});}),_0x29ee26[_0x4688ea(0x202)][_0x4688ea(0x1e5)](this[_0x4688ea(0x21a)]);}[_0x66d25d(0x1e6)](_0x180991,_0x163cdc){const _0x222a7c=_0x66d25d,_0x1e0adc=_0x222a7c(0x1cb)===_0x163cdc[_0x222a7c(0x236)]?new SourcesBalloonButtonView(_0x180991):new _0x32271a(_0x180991);return _0x1e0adc[_0x222a7c(0x21d)]({'label':_0x163cdc[_0x222a7c(0x1cf)],'icon':_0x163cdc[_0x222a7c(0x1f3)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Ro}),_0x1e0adc;}[_0x66d25d(0x1c5)](){const _0x3834de=_0x66d25d;this[_0x3834de(0x20a)](),this[_0x3834de(0x1e2)]();}[_0x66d25d(0x1e2)](){const _0x3a5a31=_0x66d25d;_0x3804d1({'emitter':this[_0x3a5a31(0x24a)],'contextElements':[this[_0x3a5a31(0x24a)][_0x3a5a31(0x23c)]],'callback':()=>{const _0x5df030=_0x3a5a31;this[_0x5df030(0x23a)]();},'activator':()=>this[_0x3a5a31(0x24a)][_0x3a5a31(0x23f)]});}[_0x66d25d(0x1e1)](_0x369ee9){const _0x2f6f65=_0x66d25d,_0x90b511=this[_0x2f6f65(0x21e)];_0x90b511[_0x2f6f65(0x1c6)][_0x2f6f65(0x1c7)]=_0x369ee9,_0x369ee9?_0x90b511[_0x2f6f65(0x20f)][_0x2f6f65(0x1d5)]():_0x90b511[_0x2f6f65(0x20f)][_0x2f6f65(0x22c)]();}[_0x66d25d(0x20a)](){const _0x531a56=_0x66d25d,{balloonView:_0x2e4368,buttonView:_0x3106e7,hideMethod:_0x335a01}=this[_0x531a56(0x21e)];_0x3804d1({'emitter':_0x2e4368,'contextElements':[_0x2e4368[_0x531a56(0x23c)],_0x3106e7[_0x531a56(0x23c)]],'callback':()=>{_0x335a01();},'activator':()=>_0x3106e7[_0x531a56(0x1c7)]&&!this[_0x531a56(0x24a)][_0x531a56(0x23f)]&&!this[_0x531a56(0x249)][_0x531a56(0x237)]()});}[_0x66d25d(0x213)](_0x5e9715,_0x54276c,_0x2613cd=!0x1,_0x5cc1b4=!0x1){const _0x5197cc=_0x66d25d,_0x30329d=_0x5197cc(0x231)===_0x54276c||!0x0===_0x5e9715[_0x5197cc(0x1fc)],_0x210644=new _0x5ee0c6(this[_0x5197cc(0x1f6)],_0x5e9715,_0x30329d,_0x2613cd,_0x5cc1b4);return _0x30329d||_0x210644['on'](_0x5197cc(0x210),()=>{const _0x37db22=_0x5197cc;this[_0x37db22(0x22d)](_0x37db22(0x1c8),_0x210644['id']);}),_0x210644;}[_0x66d25d(0x201)](_0x100f9c,_0x463114){const _0xaa5781=_0x66d25d;_0x463114[_0xaa5781(0x1e5)](_0x100f9c,0x0);}[_0x66d25d(0x1d0)](_0x45ddb3,_0x3ad126){const _0x1978bd=_0x66d25d,_0x2cb864=_0x3ad126[_0x1978bd(0x1f9)](_0x1c0426=>_0x1c0426['id']===_0x45ddb3);_0x2cb864&&_0x3ad126[_0x1978bd(0x1d9)](_0x2cb864);}[_0x66d25d(0x1f7)](){const _0x290b2c=_0x66d25d;this[_0x290b2c(0x22f)][_0x290b2c(0x1c7)]?this[_0x290b2c(0x1eb)]():(this[_0x290b2c(0x23b)](),this[_0x290b2c(0x1c9)][_0x290b2c(0x1d1)]({'target':this[_0x290b2c(0x22f)][_0x290b2c(0x23c)],'limiter':this[_0x290b2c(0x206)](),'positions':jo}));}[_0x66d25d(0x1de)](_0xef25af){const _0x2fa412=_0x66d25d;this[_0x2fa412(0x21a)][_0x2fa412(0x229)](),this[_0x2fa412(0x23a)](),this[_0x2fa412(0x22d)](_0x2fa412(0x240),_0xef25af);}}export class SourcesBalloonButtonView extends _0x32271a{[_0x66d25d(0x1e8)];constructor(_0x1580fc){const _0x6fa46=_0x66d25d;super(_0x1580fc),this[_0x6fa46(0x21d)]({'withText':!0x0,'role':_0x6fa46(0x227)}),this[_0x6fa46(0x1e8)]=this[_0x6fa46(0x239)](),this[_0x6fa46(0x22a)]({'attributes':{'class':[Uo]}});}[_0x66d25d(0x211)](){const _0x45fecc=_0x66d25d;super[_0x45fecc(0x211)](),this[_0x45fecc(0x1f2)][_0x45fecc(0x1e5)](this[_0x45fecc(0x1e8)]);}[_0x66d25d(0x239)](){const _0x443f37=_0x66d25d,_0x350219=new _0x467315();return _0x350219[_0x443f37(0x202)]=_0x2c5389,_0x350219[_0x443f37(0x22a)]({'attributes':{'class':Uo+_0x443f37(0x1ce)}}),_0x350219;}}
23
+ function _0x5b5b(_0x4ba31a,_0x13b5df){const _0x3779a9=_0x3779();return _0x5b5b=function(_0x5b5bc7,_0x2ff7bd){_0x5b5bc7=_0x5b5bc7-0x10e;let _0x53a3b3=_0x3779a9[_0x5b5bc7];return _0x53a3b3;},_0x5b5b(_0x4ba31a,_0x13b5df);}const _0x21a751=_0x5b5b;(function(_0x4e9d64,_0x3610c8){const _0x16f732=_0x5b5b,_0x4a83c1=_0x4e9d64();while(!![]){try{const _0x11d369=parseInt(_0x16f732(0x151))/0x1+-parseInt(_0x16f732(0x17c))/0x2+parseInt(_0x16f732(0x131))/0x3+-parseInt(_0x16f732(0x153))/0x4+-parseInt(_0x16f732(0x192))/0x5*(parseInt(_0x16f732(0x15d))/0x6)+parseInt(_0x16f732(0x115))/0x7*(-parseInt(_0x16f732(0x19a))/0x8)+parseInt(_0x16f732(0x139))/0x9;if(_0x11d369===_0x3610c8)break;else _0x4a83c1['push'](_0x4a83c1['shift']());}catch(_0x47ffad){_0x4a83c1['push'](_0x4a83c1['shift']());}}}(_0x3779,0x8c62a));import{BalloonPanelView as _0x500f13,ButtonView as _0x5acd13,clickOutsideHandler as _0x385be2,FileDialogButtonView as _0x547be5,IconView as _0x54d274,View as _0x40a7fb}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x301489,IconDocument as _0x4bf564,IconDocumentOutline as _0x2c3dac,IconDropdownArrow as _0x36e10d,IconLink as _0x9ea0b1,IconPaperClip as _0x3520a2}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x2e68fc}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x536cda}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x430289}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x2b2b1f}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x36aaa6}from'./resources/aichatresourcesballoonview.js';function _0x3779(){const _0x7517f4=['isEnabled','ck-ai-chat-context-controls__balloon-button','ck-ai-chat-context-controls__url-balloon-panel','current','cancel','ck-ai-chat','northArrowSouthWest','hideUrlBalloonPanel','remove','1832913SdFKbU','locale','add','_createArrowView','fire','_bindEventHandlers','bodyCollection','removeContextItemChip','23443281aPeHsT','isHidden','ck-ai-chat-context-controls__pending-contexts','balloonView','isAnyResourceBalloonVisible','_showSourceResourcesBalloon','_handleUrlSubmit','setAddContextOptions','reorganizeChips','setTemplate','ck-ai-chat-context-controls','setConversationContext','extendTemplate','_addContextBalloonConfig','_addUrlContent','ck-ai-chat-controls_context_show-more-button','setContainerElement','_setupAllBalloonClickOutsideHandlers','southArrowNorthEast','addContextItem','hideAddContextBalloonPanel','_createAddContextBalloonPanelView','_createUrlBalloonPanelView','addDocumentToContext','521132nHIqup','removeContextItem','3905204oTItwS','_resourcesBalloonView','done','execute','conversation','AI_CHAT_CONTEXT_FILE_LABEL','clear','defaultPositions','overflowChips','label','19254GEwYqg','children','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','loadSourceResources','ck-ai-chat-context-chips-wrapper-balloon','_setBalloonPanelContent','isReadOnly','pin','closest','southArrowNorthWest','northArrowSouth','source','enabled','_setAddContextButtonEnabled','addFileToContext','showUrlBalloonPanel','content','type','isLoading','files','northArrowSouthEast','_setupUrlBalloonClickOutsideHandler','_conversationContextsChips','ck-ai-chat-context-controls__show-more-balloon-panel','set','isVisible','ck-ai-chat-controls-button','closeSourceResourceBalloon','_addContextToCollection','_handleAddContextButtonClick','show','2070836RHctVn','_urlBalloonPanelView','sources','AI_CHAT_CONTEXT_URL_LABEL','ck-ai-chat-context-controls__add-context-balloon-panel','_currentContextsChips','div','_overflowManager','focus','document','arrowView','hide','_createBaseBalloonPanel','_removeContextFromCollection','showSourceResourcesBalloon','updateResourceState','_addContextBalloonPanelView','populateSourceResourceBalloon','_getLimiterElement','menuitem','isOn','_setupTemplate','385NyBbXB','_createResourcesBalloonView','_createBalloonButton','find','addContextButtonView','showAddContextBalloonPanel','submitUrl','AI_CHAT_CONTEXT_ADD_CONTEXT','3612328GdvyMv','addResourceToContext','ck-ai-chat-context-controls__add-context-button','icon','tooltip','clearCurrentContextItems','render','destroy','searchInputVisibleFrom','urls','14LbjOPK','bind','ck-reset_all-excluded','_createContextButton','southArrowNorth','_setupAddContextBalloonClickOutsideHandler','ck-ai-chat-context-controls__balloon-button-source','element','body','refreshBalloon','createCollection','_toggleAddContextBalloon','buttonView','__arrow','addUrlToContext','setContextItemLoading','_createAddContextButtonView','clearConversationContextItems','_urlInputView'];_0x3779=function(){return _0x7517f4;};return _0x3779();}export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x21a751(0x150),_0x21a751(0x16b),_0x21a751(0x123),_0x21a751(0x19b),_0x21a751(0x152),_0x21a751(0x160)];const Ro=_0x21a751(0x143),Uo=_0x21a751(0x13b),Lo=_0x21a751(0x180),No=_0x21a751(0x19c),Oo=_0x21a751(0x12a),Mo=_0x21a751(0x129),Ho=_0x21a751(0x11b),bo=_0x21a751(0x177),Fo=_0x21a751(0x161),vo=_0x21a751(0x148),jo=_0x21a751(0x174),Xo=_0x21a751(0x12d),Do=[_0x500f13[_0x21a751(0x15a)][_0x21a751(0x12e)],_0x500f13[_0x21a751(0x15a)][_0x21a751(0x167)],_0x500f13[_0x21a751(0x15a)][_0x21a751(0x171)],_0x500f13[_0x21a751(0x15a)][_0x21a751(0x166)],_0x500f13[_0x21a751(0x15a)][_0x21a751(0x119)],_0x500f13[_0x21a751(0x15a)][_0x21a751(0x14b)]];export class AIChatContextPanelView extends _0x40a7fb{[_0x21a751(0x196)];[_0x21a751(0x181)]=this[_0x21a751(0x11f)]();[_0x21a751(0x173)]=this[_0x21a751(0x11f)]();[_0x21a751(0x183)];[_0x21a751(0x18c)];[_0x21a751(0x17d)];[_0x21a751(0x127)];[_0x21a751(0x154)];[_0x21a751(0x146)];[_0x21a751(0x137)];constructor(_0x10a458,_0x5788a3){const _0x4b3afd=_0x21a751;super(_0x10a458),this[_0x4b3afd(0x137)]=_0x5788a3[_0x4b3afd(0x137)],this[_0x4b3afd(0x181)]=this[_0x4b3afd(0x11f)](),this[_0x4b3afd(0x173)]=this[_0x4b3afd(0x11f)](),this[_0x4b3afd(0x196)]=this[_0x4b3afd(0x125)](_0x10a458),this[_0x4b3afd(0x18c)]=this[_0x4b3afd(0x14e)](_0x10a458),this[_0x4b3afd(0x17d)]=this[_0x4b3afd(0x14f)](_0x10a458),this[_0x4b3afd(0x154)]=this[_0x4b3afd(0x193)](_0x10a458,_0x5788a3);const _0x2599e8={'cssClasses':{'showMoreButton':vo,'showMoreBalloon':jo,'overflowContainer':Fo,'controlsButton':bo}};this[_0x4b3afd(0x183)]=new _0x430289(_0x10a458,this[_0x4b3afd(0x181)],_0x2599e8,this[_0x4b3afd(0x137)],this),this[_0x4b3afd(0x146)]={'buttonView':this[_0x4b3afd(0x196)],'balloonView':this[_0x4b3afd(0x18c)],'hideMethod':this[_0x4b3afd(0x14d)][_0x4b3afd(0x116)](this),'showMethod':this[_0x4b3afd(0x197)][_0x4b3afd(0x116)](this)},this[_0x4b3afd(0x191)](),this[_0x4b3afd(0x136)]();}[_0x21a751(0x111)](){const _0x3a035d=_0x21a751;super[_0x3a035d(0x111)](),this[_0x3a035d(0x14a)](),this[_0x3a035d(0x183)][_0x3a035d(0x149)](this[_0x3a035d(0x11c)]),this[_0x3a035d(0x183)][_0x3a035d(0x141)]();}[_0x21a751(0x112)](){const _0x1d6649=_0x21a751;super[_0x1d6649(0x112)](),this[_0x1d6649(0x183)][_0x1d6649(0x112)](),this[_0x1d6649(0x154)][_0x1d6649(0x112)]();}[_0x21a751(0x14c)](_0x1962ed,_0x5d46be){const _0x1bc594=_0x21a751,_0x4d5f16=this[_0x1bc594(0x118)](_0x1962ed,_0x1bc594(0x12b),!0x0,_0x5d46be);this[_0x1bc594(0x179)](_0x4d5f16,this[_0x1bc594(0x181)]),this[_0x1bc594(0x183)][_0x1bc594(0x141)]();}[_0x21a751(0x152)](_0xc542fb){const _0x6eb290=_0x21a751;this[_0x6eb290(0x189)](_0xc542fb,this[_0x6eb290(0x181)]),this[_0x6eb290(0x189)](_0xc542fb,this[_0x6eb290(0x183)][_0x6eb290(0x15b)]),this[_0x6eb290(0x183)][_0x6eb290(0x141)]();}[_0x21a751(0x124)](_0x4e477c,_0x5aeeed){const _0x7d7e62=_0x21a751;let _0x1b3586=this[_0x7d7e62(0x181)][_0x7d7e62(0x195)](_0x4db2fd=>_0x4db2fd['id']===_0x4e477c);_0x1b3586||(_0x1b3586=this[_0x7d7e62(0x183)][_0x7d7e62(0x15b)][_0x7d7e62(0x195)](_0x40ddc3=>_0x40ddc3['id']===_0x4e477c)),_0x1b3586&&(_0x1b3586[_0x7d7e62(0x16f)]=_0x5aeeed);}[_0x21a751(0x144)](_0x277478){const _0xe87886=_0x21a751;this[_0xe87886(0x173)][_0xe87886(0x159)]();for(const _0x20bb8c of _0x277478){const _0x59818d=this[_0xe87886(0x118)](_0x20bb8c,_0xe87886(0x157),!0x1,!0x1);this[_0xe87886(0x179)](_0x59818d,this[_0xe87886(0x173)]);}}[_0x21a751(0x110)](){const _0x788134=_0x21a751;this[_0x788134(0x181)][_0x788134(0x159)](),this[_0x788134(0x183)][_0x788134(0x159)]();}[_0x21a751(0x126)](){const _0x2a07ba=_0x21a751;this[_0x2a07ba(0x173)][_0x2a07ba(0x159)]();}[_0x21a751(0x18b)](_0x5bf947,_0xad3f5,_0x1f9d77){const _0x4632d9=_0x21a751;this[_0x4632d9(0x154)][_0x4632d9(0x18b)](_0x5bf947,_0xad3f5,_0x1f9d77);}[_0x21a751(0x14d)](){const _0x5ebe00=_0x21a751;this[_0x5ebe00(0x120)](!0x1);}[_0x21a751(0x197)](){const _0x1dc7e1=_0x21a751;this[_0x1dc7e1(0x120)](!0x0);}[_0x21a751(0x12f)](){const _0x22a1a3=_0x21a751;this[_0x22a1a3(0x17d)][_0x22a1a3(0x187)](),this[_0x22a1a3(0x196)][_0x22a1a3(0x190)]=!0x1,this[_0x22a1a3(0x127)]&&this[_0x22a1a3(0x127)][_0x22a1a3(0x159)]();}[_0x21a751(0x16c)](){const _0x46eadd=_0x21a751;this[_0x46eadd(0x17d)][_0x46eadd(0x17b)](),this[_0x46eadd(0x196)][_0x46eadd(0x190)]=!0x0;}[_0x21a751(0x13e)](_0x121fa4){const _0x493a91=_0x21a751;this[_0x493a91(0x154)][_0x493a91(0x18a)](_0x121fa4),this[_0x493a91(0x196)][_0x493a91(0x190)]=!0x0;}[_0x21a751(0x18d)](_0x1c27e7,_0x2111ee,_0x3dec81,_0x43ea9f){const _0x4ec06a=_0x21a751;this[_0x4ec06a(0x154)][_0x4ec06a(0x18d)](_0x1c27e7,_0x3dec81,_0x43ea9f);}[_0x21a751(0x178)](_0x5c2b6c){const _0x3b8a27=_0x21a751;this[_0x3b8a27(0x154)][_0x3b8a27(0x178)](_0x5c2b6c),this[_0x3b8a27(0x196)][_0x3b8a27(0x190)]=!0x1;}[_0x21a751(0x140)](_0x10f46e){const _0x357b96=_0x21a751;this[_0x357b96(0x162)](this[_0x357b96(0x18c)],this[_0x357b96(0x132)],_0x10f46e),this[_0x357b96(0x16a)](_0x10f46e);}[_0x21a751(0x16a)](_0x234fbb){const _0xe8963f=_0x21a751,_0x24f989=!_0x234fbb[_0xe8963f(0x185)][_0xe8963f(0x13a)]&&_0x234fbb[_0xe8963f(0x185)][_0xe8963f(0x169)],_0x3bb4c5=_0x234fbb[_0xe8963f(0x114)][_0xe8963f(0x169)],_0x1cdf7e=_0x234fbb[_0xe8963f(0x170)][_0xe8963f(0x169)];this[_0xe8963f(0x196)][_0xe8963f(0x128)]=_0x24f989||_0x3bb4c5||_0x1cdf7e;}[_0x21a751(0x191)](){const _0x1cbb61=_0x21a751;this[_0x1cbb61(0x142)]({'tag':_0x1cbb61(0x182),'attributes':{'class':[Ro,_0x1cbb61(0x117)]},'children':[{'tag':_0x1cbb61(0x182),'attributes':{'class':Uo},'children':this[_0x1cbb61(0x181)]}]});}[_0x21a751(0x136)](){const _0x4b5674=_0x21a751;this[_0x4b5674(0x196)]['on'](_0x4b5674(0x156),()=>{const _0xcdba33=_0x4b5674;this[_0xcdba33(0x17a)]();});}[_0x21a751(0x125)](_0x2302d4){const _0x4cd062=_0x21a751,_0x21c253=new _0x5acd13(_0x2302d4);return _0x21c253[_0x4cd062(0x175)]({'label':_0x2b2b1f(_0x2302d4,_0x4cd062(0x199)),'class':bo+'\x20'+No,'icon':_0x3520a2,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x21c253;}[_0x21a751(0x14e)](_0xbf1ff4){const _0xe198e2=_0x21a751;return this[_0xe198e2(0x188)](_0xbf1ff4,Lo);}[_0x21a751(0x14f)](_0x2a75fd){const _0x12579c=_0x21a751,_0x60f99e=this[_0x12579c(0x188)](_0x2a75fd,Oo);return this[_0x12579c(0x147)](_0x60f99e,_0x2a75fd),_0x60f99e;}[_0x21a751(0x193)](_0x332d4c,_0x5d5e5b){const _0x5acbc7=_0x21a751,_0x1898b3={'searchInputVisibleFrom':_0x5d5e5b[_0x5acbc7(0x113)],'onBackToContext':()=>{const _0x49d335=_0x5acbc7;this[_0x49d335(0x197)](),this[_0x49d335(0x18c)][_0x49d335(0x164)]({'target':this[_0x49d335(0x196)][_0x49d335(0x11c)],'limiter':this[_0x49d335(0x18e)](),'positions':Do});},'onResourceSelected':(_0x46b8da,_0x41229d)=>{const _0x5cb079=_0x5acbc7;this[_0x5cb079(0x135)](_0x5cb079(0x19b),{'source':_0x46b8da,'resource':_0x41229d});},'onLoadSourceResources':_0x3e9ea9=>{const _0x2ed585=_0x5acbc7;this[_0x2ed585(0x135)](_0x2ed585(0x160),_0x3e9ea9);},'onBalloonClosed':()=>{const _0x5c03b2=_0x5acbc7;this[_0x5c03b2(0x196)][_0x5c03b2(0x190)]=!0x1;},'getLimiterElement':()=>this[_0x5acbc7(0x18e)](),'getTargetElement':()=>this[_0x5acbc7(0x196)][_0x5acbc7(0x11c)]};return new _0x36aaa6(_0x332d4c,_0x5d5e5b[_0x5acbc7(0x137)],_0x1898b3);}[_0x21a751(0x18e)](){const _0x59c40b=_0x21a751;return this[_0x59c40b(0x11c)]?.[_0x59c40b(0x165)]('.'+Xo)||document[_0x59c40b(0x11d)];}[_0x21a751(0x188)](_0x214b3e,_0x3e86a5){const _0x4fe115=_0x21a751,_0x447c01=new _0x500f13(_0x214b3e);return _0x447c01[_0x4fe115(0x145)]({'attributes':{'class':_0x3e86a5}}),this[_0x4fe115(0x137)][_0x4fe115(0x133)](_0x447c01),_0x447c01;}[_0x21a751(0x162)](_0x3a9787,_0x556c21,_0x34fb8d){const _0x14e967=_0x21a751;if(_0x3a9787[_0x14e967(0x16d)][_0x14e967(0x159)](),!_0x34fb8d[_0x14e967(0x185)][_0x14e967(0x13a)]&&_0x34fb8d[_0x14e967(0x185)][_0x14e967(0x169)]){const _0x1f7540=this[_0x14e967(0x194)](_0x556c21,{'label':_0x2b2b1f(_0x556c21,_0x14e967(0x15f)),'icon':_0x4bf564});_0x1f7540['on'](_0x14e967(0x156),()=>{const _0x69ae50=_0x14e967;this[_0x69ae50(0x135)](_0x69ae50(0x150)),this[_0x69ae50(0x14d)]();}),_0x3a9787[_0x14e967(0x16d)][_0x14e967(0x133)](_0x1f7540);}if(_0x34fb8d[_0x14e967(0x114)][_0x14e967(0x169)]){const _0x5f1461=this[_0x14e967(0x194)](_0x556c21,{'label':_0x2b2b1f(_0x556c21,_0x14e967(0x17f)),'icon':_0x9ea0b1});_0x5f1461['on'](_0x14e967(0x156),()=>{const _0x202ca9=_0x14e967;this[_0x202ca9(0x14d)](),this[_0x202ca9(0x16c)](),this[_0x202ca9(0x17d)][_0x202ca9(0x164)]({'target':this[_0x202ca9(0x196)][_0x202ca9(0x11c)],'limiter':this[_0x202ca9(0x18e)](),'positions':Do}),this[_0x202ca9(0x127)][_0x202ca9(0x184)]();}),_0x3a9787[_0x14e967(0x16d)][_0x14e967(0x133)](_0x5f1461);}if(_0x34fb8d[_0x14e967(0x170)][_0x14e967(0x169)]){const _0xd44b91=new _0x547be5(_0x556c21);_0xd44b91[_0x14e967(0x175)]({'label':_0x2b2b1f(_0x556c21,_0x14e967(0x158)),'icon':_0x301489,'withText':!0x0,'tooltip':!0x0,'class':Mo,'allowMultipleFiles':!0x0}),_0xd44b91['on'](_0x14e967(0x155),(_0x3a8f33,_0x354a0b)=>{const _0x1ad576=_0x14e967;this[_0x1ad576(0x135)](_0x1ad576(0x16b),_0x354a0b),this[_0x1ad576(0x14d)]();}),_0xd44b91[_0x14e967(0x10f)]=!0x0,_0x3a9787[_0x14e967(0x16d)][_0x14e967(0x133)](_0xd44b91);}for(const _0x1e4588 of _0x34fb8d[_0x14e967(0x17e)]){const _0x590c63=this[_0x14e967(0x194)](_0x556c21,{'label':_0x1e4588[_0x14e967(0x15c)],'icon':_0x1e4588[_0x14e967(0x10e)]||_0x2c3dac,'type':_0x14e967(0x168)});_0x3a9787[_0x14e967(0x16d)][_0x14e967(0x133)](_0x590c63),_0x590c63['on'](_0x14e967(0x156),()=>{const _0xf42c21=_0x14e967;this[_0xf42c21(0x14d)](),this[_0xf42c21(0x13e)](_0x1e4588);});}}[_0x21a751(0x147)](_0x6a0cf1,_0x5a9457){const _0x18bdc6=_0x21a751;this[_0x18bdc6(0x127)]=new _0x536cda(_0x5a9457),this[_0x18bdc6(0x127)]['on'](_0x18bdc6(0x198),(_0x4cb99e,_0x24686d)=>{const _0x2c96a2=_0x18bdc6;this[_0x2c96a2(0x13f)](_0x24686d);}),this[_0x18bdc6(0x127)]['on'](_0x18bdc6(0x12c),()=>{const _0x130331=_0x18bdc6;this[_0x130331(0x12f)](),this[_0x130331(0x197)](),this[_0x130331(0x18c)][_0x130331(0x164)]({'target':this[_0x130331(0x196)][_0x130331(0x11c)],'limiter':this[_0x130331(0x18e)](),'positions':Do});}),this[_0x18bdc6(0x127)]['on'](_0x18bdc6(0x11e),()=>{const _0x48887c=_0x18bdc6;this[_0x48887c(0x17d)][_0x48887c(0x176)]&&this[_0x48887c(0x17d)][_0x48887c(0x164)]({'target':this[_0x48887c(0x196)][_0x48887c(0x11c)],'limiter':this[_0x48887c(0x18e)](),'positions':Do});}),_0x6a0cf1[_0x18bdc6(0x16d)][_0x18bdc6(0x133)](this[_0x18bdc6(0x127)]);}[_0x21a751(0x194)](_0x279f0d,_0x128576){const _0x55aef8=_0x21a751,_0xbf13c1=_0x55aef8(0x168)===_0x128576[_0x55aef8(0x16e)]?new SourcesBalloonButtonView(_0x279f0d):new _0x5acd13(_0x279f0d);return _0xbf13c1[_0x55aef8(0x175)]({'label':_0x128576[_0x55aef8(0x15c)],'icon':_0x128576[_0x55aef8(0x10e)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Mo}),_0xbf13c1;}[_0x21a751(0x14a)](){const _0x58cf47=_0x21a751;this[_0x58cf47(0x11a)](),this[_0x58cf47(0x172)]();}[_0x21a751(0x172)](){const _0x22adb7=_0x21a751;_0x385be2({'emitter':this[_0x22adb7(0x17d)],'contextElements':[this[_0x22adb7(0x17d)][_0x22adb7(0x11c)]],'callback':()=>{const _0x3253c4=_0x22adb7;this[_0x3253c4(0x12f)]();},'activator':()=>this[_0x22adb7(0x17d)][_0x22adb7(0x176)]});}[_0x21a751(0x120)](_0x5e63b1){const _0x594bbd=_0x21a751,_0x27fe96=this[_0x594bbd(0x146)];_0x27fe96[_0x594bbd(0x121)][_0x594bbd(0x190)]=_0x5e63b1,_0x5e63b1?_0x27fe96[_0x594bbd(0x13c)][_0x594bbd(0x17b)]():_0x27fe96[_0x594bbd(0x13c)][_0x594bbd(0x187)]();}[_0x21a751(0x11a)](){const _0x41ef23=_0x21a751,{balloonView:_0x79b01f,buttonView:_0x5e4405,hideMethod:_0x450a5e}=this[_0x41ef23(0x146)];_0x385be2({'emitter':_0x79b01f,'contextElements':[_0x79b01f[_0x41ef23(0x11c)],_0x5e4405[_0x41ef23(0x11c)]],'callback':()=>{_0x450a5e();},'activator':()=>_0x5e4405[_0x41ef23(0x190)]&&!this[_0x41ef23(0x17d)][_0x41ef23(0x176)]&&!this[_0x41ef23(0x154)][_0x41ef23(0x13d)]()});}[_0x21a751(0x118)](_0x4bab19,_0x170a15,_0x3ff5e8=!0x1,_0x386f9c=!0x1){const _0x71a4e3=_0x21a751,_0x2da78f=_0x71a4e3(0x157)===_0x170a15||!0x0===_0x4bab19[_0x71a4e3(0x163)],_0x3913a5=new _0x2e68fc(this[_0x71a4e3(0x132)],_0x4bab19,_0x2da78f,_0x3ff5e8,_0x386f9c);return _0x2da78f||_0x3913a5['on'](_0x71a4e3(0x138),()=>{const _0xfbd45a=_0x71a4e3;this[_0xfbd45a(0x135)](_0xfbd45a(0x152),_0x3913a5['id']);}),_0x3913a5;}[_0x21a751(0x179)](_0x562277,_0x338462){const _0x32efa0=_0x21a751;_0x338462[_0x32efa0(0x133)](_0x562277,0x0);}[_0x21a751(0x189)](_0x4ba073,_0xebde98){const _0x4923e2=_0x21a751,_0x5a708e=_0xebde98[_0x4923e2(0x195)](_0x216736=>_0x216736['id']===_0x4ba073);_0x5a708e&&_0xebde98[_0x4923e2(0x130)](_0x5a708e);}[_0x21a751(0x17a)](){const _0x4688a1=_0x21a751;this[_0x4688a1(0x196)][_0x4688a1(0x190)]?this[_0x4688a1(0x14d)]():(this[_0x4688a1(0x197)](),this[_0x4688a1(0x18c)][_0x4688a1(0x164)]({'target':this[_0x4688a1(0x196)][_0x4688a1(0x11c)],'limiter':this[_0x4688a1(0x18e)](),'positions':Do}));}[_0x21a751(0x13f)](_0x327b74){const _0x520cf9=_0x21a751;this[_0x520cf9(0x127)][_0x520cf9(0x159)](),this[_0x520cf9(0x12f)](),this[_0x520cf9(0x135)](_0x520cf9(0x123),_0x327b74);}}export class SourcesBalloonButtonView extends _0x5acd13{[_0x21a751(0x186)];constructor(_0x3a4758){const _0x215b55=_0x21a751;super(_0x3a4758),this[_0x215b55(0x175)]({'withText':!0x0,'role':_0x215b55(0x18f)}),this[_0x215b55(0x186)]=this[_0x215b55(0x134)](),this[_0x215b55(0x145)]({'attributes':{'class':[Ho]}});}[_0x21a751(0x111)](){const _0x22e107=_0x21a751;super[_0x22e107(0x111)](),this[_0x22e107(0x15e)][_0x22e107(0x133)](this[_0x22e107(0x186)]);}[_0x21a751(0x134)](){const _0x3360ce=_0x21a751,_0x43c70f=new _0x54d274();return _0x43c70f[_0x3360ce(0x16d)]=_0x36e10d,_0x43c70f[_0x3360ce(0x145)]({'attributes':{'class':Ho+_0x3360ce(0x122)}}),_0x43c70f;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x51e112=_0x1184;(function(_0x5a90a5,_0x16cedb){const _0x9e1134=_0x1184,_0x3bca05=_0x5a90a5();while(!![]){try{const _0x3a2bb3=-parseInt(_0x9e1134(0x107))/0x1+-parseInt(_0x9e1134(0x113))/0x2+parseInt(_0x9e1134(0x10f))/0x3*(parseInt(_0x9e1134(0x104))/0x4)+-parseInt(_0x9e1134(0x106))/0x5*(parseInt(_0x9e1134(0x11b))/0x6)+parseInt(_0x9e1134(0x10c))/0x7+-parseInt(_0x9e1134(0x117))/0x8+parseInt(_0x9e1134(0x118))/0x9;if(_0x3a2bb3===_0x16cedb)break;else _0x3bca05['push'](_0x3bca05['shift']());}catch(_0xc11276){_0x3bca05['push'](_0x3bca05['shift']());}}}(_0x4eb0,0x5aeb8));import{ButtonView as _0x57cbd2,View as _0x4e26e6}from'ckeditor5/src/ui.js';import{IconStop as _0x33dba6}from'ckeditor5/src/icons.js';import{getTranslation as _0x4e6e9f}from'../../../aicore/utils/common-translations.js';function _0x4eb0(){const _0x20cc10=['35PTMzwn','287315YjWYkk','set','ck-ai-chat-controls-loader-icon','AI_CHAT_STOP_GENERATING','ck-ai-chat-controls-loader-wrapper','359443rgxScH','_cancelButtonView','ck-ai-chat-controls-loader-icon-dot','123fJNpFd','fire','execute','AI_CHAT_IS_WRITING','275752WrZPFN','locale','ck-reset_all','_createCancelButtonView','2311912VSPlon','7019334ZyWevh','setTemplate','ck-ai-button-secondary\x20ck-ai-button-stop-generating','75798QXTeta','ck-ai-chat-controls-loader','div','abortPromptStream','_loaderView','33536LeqOhv','_createLoaderView'];_0x4eb0=function(){return _0x20cc10;};return _0x4eb0();}function _0x1184(_0x343e70,_0x183db7){const _0x4eb0d6=_0x4eb0();return _0x1184=function(_0x1184f6,_0x3b5486){_0x1184f6=_0x1184f6-0x101;let _0x26630a=_0x4eb0d6[_0x1184f6];return _0x26630a;},_0x1184(_0x343e70,_0x183db7);}export class AIChatControlsLoaderView extends _0x4e26e6{[_0x51e112(0x10d)];[_0x51e112(0x103)];constructor(_0x28e529){const _0x2fdc9f=_0x51e112;super(_0x28e529),this[_0x2fdc9f(0x10d)]=this[_0x2fdc9f(0x116)](),this[_0x2fdc9f(0x103)]=this[_0x2fdc9f(0x105)](),this[_0x2fdc9f(0x119)]({'tag':_0x2fdc9f(0x101),'attributes':{'class':['ck',_0x2fdc9f(0x10b),_0x2fdc9f(0x115)]},'children':[this[_0x2fdc9f(0x103)],this[_0x2fdc9f(0x10d)]]});}[_0x51e112(0x116)](){const _0x558b56=_0x51e112,_0x2030d1=new _0x57cbd2(this[_0x558b56(0x114)]);return _0x2030d1[_0x558b56(0x108)]({'label':_0x4e6e9f(this[_0x558b56(0x114)],_0x558b56(0x10a)),'withText':!0x0,'class':_0x558b56(0x11a),'icon':_0x33dba6}),_0x2030d1['on'](_0x558b56(0x111),()=>{const _0x42ee75=_0x558b56;this[_0x42ee75(0x110)](_0x42ee75(0x102));}),_0x2030d1;}[_0x51e112(0x105)](){const _0x38daeb=_0x51e112,_0x3af249=new _0x4e26e6(this[_0x38daeb(0x114)]);return _0x3af249[_0x38daeb(0x119)]({'tag':_0x38daeb(0x101),'attributes':{'class':[_0x38daeb(0x11c)]},'children':[{'tag':_0x38daeb(0x101),'attributes':{'class':[_0x38daeb(0x109)]},'children':[{'tag':_0x38daeb(0x101),'attributes':{'class':[_0x38daeb(0x10e)]}},{'tag':_0x38daeb(0x101),'attributes':{'class':[_0x38daeb(0x10e)]}},{'tag':_0x38daeb(0x101),'attributes':{'class':[_0x38daeb(0x10e)]}}]},{'text':_0x4e6e9f(this[_0x38daeb(0x114)],_0x38daeb(0x112))}]}),_0x3af249;}}
23
+ const _0x43ea3c=_0x3e54;(function(_0x420dae,_0x2a2932){const _0x293768=_0x3e54,_0x53e1cf=_0x420dae();while(!![]){try{const _0x509baf=-parseInt(_0x293768(0x1bb))/0x1*(parseInt(_0x293768(0x1c1))/0x2)+-parseInt(_0x293768(0x1ac))/0x3*(-parseInt(_0x293768(0x1c6))/0x4)+-parseInt(_0x293768(0x1c3))/0x5*(-parseInt(_0x293768(0x1b2))/0x6)+-parseInt(_0x293768(0x1b1))/0x7+-parseInt(_0x293768(0x1bf))/0x8*(-parseInt(_0x293768(0x1b8))/0x9)+parseInt(_0x293768(0x1c7))/0xa+parseInt(_0x293768(0x1ab))/0xb;if(_0x509baf===_0x2a2932)break;else _0x53e1cf['push'](_0x53e1cf['shift']());}catch(_0x2263fe){_0x53e1cf['push'](_0x53e1cf['shift']());}}}(_0x5d06,0x2fdf3));import{ButtonView as _0x560296,View as _0x23fcbf}from'ckeditor5/src/ui.js';function _0x5d06(){const _0x5a4cb8=['ck-ai-chat-controls-loader','_createCancelButtonView','setTemplate','269402kLBppY','6Gihcuz','abortPromptStream','ck-ai-chat-controls-loader-icon','set','fire','AI_CHAT_IS_WRITING','9EdqfOg','ck-ai-button-secondary\x20ck-ai-button-stop-generating','ck-ai-chat-controls-loader-icon-dot','142061jLVOHV','ck-reset_all','_loaderView','_createLoaderView','636344hUjDnt','ck-ai-chat-controls-loader-wrapper','2KkGFqf','locale','461860bLocbG','AI_CHAT_STOP_GENERATING','execute','20140bsViHJ','1531130dWRido','_cancelButtonView','290697kXRtBw','15rpkcVJ','div'];_0x5d06=function(){return _0x5a4cb8;};return _0x5d06();}import{IconStop as _0x4b023b}from'ckeditor5/src/icons.js';import{getTranslation as _0x2c7cda}from'../../../aicore/utils/common-translations.js';function _0x3e54(_0x3abd59,_0x374ccb){const _0x5d0609=_0x5d06();return _0x3e54=function(_0x3e54d2,_0x108749){_0x3e54d2=_0x3e54d2-0x1ab;let _0x446f31=_0x5d0609[_0x3e54d2];return _0x446f31;},_0x3e54(_0x3abd59,_0x374ccb);}export class AIChatControlsLoaderView extends _0x23fcbf{[_0x43ea3c(0x1c8)];[_0x43ea3c(0x1bd)];constructor(_0x53ddb5){const _0xe484d3=_0x43ea3c;super(_0x53ddb5),this[_0xe484d3(0x1c8)]=this[_0xe484d3(0x1af)](),this[_0xe484d3(0x1bd)]=this[_0xe484d3(0x1be)](),this[_0xe484d3(0x1b0)]({'tag':_0xe484d3(0x1ad),'attributes':{'class':['ck',_0xe484d3(0x1c0),_0xe484d3(0x1bc)]},'children':[this[_0xe484d3(0x1bd)],this[_0xe484d3(0x1c8)]]});}[_0x43ea3c(0x1af)](){const _0x29270d=_0x43ea3c,_0x3588de=new _0x560296(this[_0x29270d(0x1c2)]);return _0x3588de[_0x29270d(0x1b5)]({'label':_0x2c7cda(this[_0x29270d(0x1c2)],_0x29270d(0x1c4)),'withText':!0x0,'class':_0x29270d(0x1b9),'icon':_0x4b023b}),_0x3588de['on'](_0x29270d(0x1c5),()=>{const _0x18b936=_0x29270d;this[_0x18b936(0x1b6)](_0x18b936(0x1b3));}),_0x3588de;}[_0x43ea3c(0x1be)](){const _0x54fe99=_0x43ea3c,_0x36fb0e=new _0x23fcbf(this[_0x54fe99(0x1c2)]);return _0x36fb0e[_0x54fe99(0x1b0)]({'tag':_0x54fe99(0x1ad),'attributes':{'class':[_0x54fe99(0x1ae)]},'children':[{'tag':_0x54fe99(0x1ad),'attributes':{'class':[_0x54fe99(0x1b4)]},'children':[{'tag':_0x54fe99(0x1ad),'attributes':{'class':[_0x54fe99(0x1ba)]}},{'tag':_0x54fe99(0x1ad),'attributes':{'class':[_0x54fe99(0x1ba)]}},{'tag':_0x54fe99(0x1ad),'attributes':{'class':[_0x54fe99(0x1ba)]}}]},{'text':_0x2c7cda(this[_0x54fe99(0x1c2)],_0x54fe99(0x1b7))}]}),_0x36fb0e;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xb4cb05=_0x3312;(function(_0x3a95f1,_0x23e8b8){const _0x14e763=_0x3312,_0x60f993=_0x3a95f1();while(!![]){try{const _0x4bb893=-parseInt(_0x14e763(0xf1))/0x1+-parseInt(_0x14e763(0x107))/0x2+parseInt(_0x14e763(0x109))/0x3+-parseInt(_0x14e763(0xcf))/0x4*(-parseInt(_0x14e763(0xcc))/0x5)+-parseInt(_0x14e763(0xde))/0x6+-parseInt(_0x14e763(0x10d))/0x7+-parseInt(_0x14e763(0x126))/0x8*(-parseInt(_0x14e763(0xf9))/0x9);if(_0x4bb893===_0x23e8b8)break;else _0x60f993['push'](_0x60f993['shift']());}catch(_0xd6387c){_0x60f993['push'](_0x60f993['shift']());}}}(_0x41b7,0x49225));import{Collection as _0x3736a2}from'ckeditor5/src/utils.js';function _0x3312(_0x1f87e6,_0x589f1c){const _0x41b778=_0x41b7();return _0x3312=function(_0x331263,_0x2b06ce){_0x331263=_0x331263-0xc8;let _0x5216f9=_0x41b778[_0x331263];return _0x5216f9;},_0x3312(_0x1f87e6,_0x589f1c);}import{IconAI as _0x26d5ad,IconBulb as _0x514fbf,IconWeb as _0x2d6039}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x1007d3,ButtonLabelView as _0x431f16,ButtonView as _0xf06384,createDropdown as _0x180862,IconView as _0x1e5a69,UIModel as _0x43a6b7,View as _0x56c9ad}from'ckeditor5/src/ui.js';import{getTranslation as _0xa08f5a}from'../../../aicore/utils/common-translations.js';import{AIModels as _0x4c72f6}from'../../../aicore/model/aimodels.js';const yo=_0xb4cb05(0x116),Lo=_0xb4cb05(0xdd),Go=_0xb4cb05(0xe3),Yo=_0xb4cb05(0x10a),qo=_0xb4cb05(0x10b),zo=_0xb4cb05(0x105),Fo=_0xb4cb05(0xe1),Jo='n';export class AIChatPromptCapabilitiesView extends _0x56c9ad{[_0xb4cb05(0x127)];[_0xb4cb05(0xce)];[_0xb4cb05(0xd6)];[_0xb4cb05(0xea)];[_0xb4cb05(0xe6)];[_0xb4cb05(0xe8)];constructor(_0x323a94){const _0x3e39dc=_0xb4cb05;super(_0x323a94),this[_0x3e39dc(0xf5)](_0x3e39dc(0x101),!0x1),this[_0x3e39dc(0xf5)](_0x3e39dc(0xf7),!0x1),this[_0x3e39dc(0xf5)](_0x3e39dc(0xdf),!0x0),this[_0x3e39dc(0xf5)](_0x3e39dc(0xd1),!0x0),this[_0x3e39dc(0xf5)](_0x3e39dc(0xe7),null),this[_0x3e39dc(0xf5)](_0x3e39dc(0x12a),null),this[_0x3e39dc(0xea)]=this[_0x3e39dc(0xed)](),this[_0x3e39dc(0xe8)]=this[_0x3e39dc(0x123)](),this[_0x3e39dc(0x127)]=this[_0x3e39dc(0x110)](),this[_0x3e39dc(0xce)]=this[_0x3e39dc(0x117)](),this[_0x3e39dc(0xd6)]=this[_0x3e39dc(0xf2)](),this[_0x3e39dc(0xea)][_0x3e39dc(0xf8)][_0x3e39dc(0xf0)](_0x3e39dc(0x11e))['to'](this,_0x3e39dc(0xdf),_0x1bdf0f=>_0x1bdf0f),this[_0x3e39dc(0xea)][_0x3e39dc(0xf8)][_0x3e39dc(0xf0)](_0x3e39dc(0x104))['to'](this,_0x3e39dc(0xd1),_0x4c3469=>_0x4c3469?this[_0x3e39dc(0xea)][_0x3e39dc(0xf8)][_0x3e39dc(0xda)]:_0xa08f5a(this[_0x3e39dc(0xdc)],_0x3e39dc(0xe2))),this[_0x3e39dc(0xea)][_0x3e39dc(0xf0)](_0x3e39dc(0xfd))['to'](this,_0x3e39dc(0xd1),_0x5dbe24=>_0x5dbe24),this[_0x3e39dc(0x127)][_0x3e39dc(0xf0)](_0x3e39dc(0xf4))['to'](this,_0x3e39dc(0x101),_0x54fd51=>_0x54fd51),this[_0x3e39dc(0x127)][_0x3e39dc(0xf0)](_0x3e39dc(0xec))['to'](this,_0x3e39dc(0xdf),_0x452738=>!_0x452738),this[_0x3e39dc(0x127)][_0x3e39dc(0xf0)](_0x3e39dc(0x104))['to'](this,_0x3e39dc(0x101),_0x4ac831=>_0xa08f5a(this[_0x3e39dc(0xdc)],_0x4ac831?_0x3e39dc(0x125):_0x3e39dc(0xfe))),this[_0x3e39dc(0xce)][_0x3e39dc(0xf0)](_0x3e39dc(0xf4))['to'](this,_0x3e39dc(0xf7),_0x5b0341=>_0x5b0341),this[_0x3e39dc(0xce)][_0x3e39dc(0xf0)](_0x3e39dc(0xec))['to'](this,_0x3e39dc(0xdf),_0x13c174=>!_0x13c174),this[_0x3e39dc(0xce)][_0x3e39dc(0xf0)](_0x3e39dc(0x104))['to'](this,_0x3e39dc(0xf7),_0x52a41c=>_0xa08f5a(this[_0x3e39dc(0xdc)],_0x52a41c?_0x3e39dc(0x115):_0x3e39dc(0x118))),this[_0x3e39dc(0x113)]({'tag':_0x3e39dc(0xe9),'attributes':{'class':[yo]},'children':[this[_0x3e39dc(0xea)],this[_0x3e39dc(0xe8)],this[_0x3e39dc(0x127)],this[_0x3e39dc(0xce)],this[_0x3e39dc(0xd6)]]}),this[_0x3e39dc(0xe6)]=new _0x3736a2(),_0x1007d3(this[_0x3e39dc(0xea)],this[_0x3e39dc(0xe6)]);}[_0xb4cb05(0x11b)](_0x213cdb,_0x1d2e35){const _0xb47c3b=_0xb4cb05;if(this[_0xb47c3b(0xf5)](_0xb47c3b(0xdf),!(_0x1d2e35&&_0x213cdb[_0xb47c3b(0xfa)]<=0x1)),this[_0xb47c3b(0xe6)][_0xb47c3b(0x112)](),_0x213cdb?.[_0xb47c3b(0xfa)]){const _0x5db996=_0x4c72f6[_0xb47c3b(0x128)](this[_0xb47c3b(0xdc)],_0x213cdb);for(const _0x493a69 of _0x5db996){const _0x52cd46=new _0x43a6b7({'label':_0x493a69[_0xb47c3b(0x11c)],'withText':!0x0,'role':_0xb47c3b(0xca),'id':_0x493a69['id'],'model':_0x493a69});_0x52cd46[_0xb47c3b(0xf0)](_0xb47c3b(0xf4))['to'](this,_0xb47c3b(0xe7),_0x21fd4b=>_0x21fd4b===_0x493a69['id']),this[_0xb47c3b(0xe6)][_0xb47c3b(0xd3)]({'type':_0xb47c3b(0xeb),'model':_0x52cd46,'labelView':new zs(this[_0xb47c3b(0xdc)],_0x493a69)});}}}[_0xb4cb05(0xd7)](_0xd1d639){const _0x3e45b4=_0xb4cb05;this[_0x3e45b4(0xf5)](_0x3e45b4(0x101),_0xd1d639);}[_0xb4cb05(0xfc)](_0x26c98e){const _0x24bb6b=_0xb4cb05;this[_0x24bb6b(0xf5)](_0x24bb6b(0xf7),_0x26c98e);}[_0xb4cb05(0x103)](_0x5211b0){const _0x12fb7e=_0xb4cb05;if(!_0x5211b0)return;this[_0x12fb7e(0xe7)]=_0x5211b0['id'],this[_0x12fb7e(0x12a)]=_0x5211b0[_0x12fb7e(0x11c)]||_0x5211b0['id'],this[_0x12fb7e(0xea)][_0x12fb7e(0xf8)][_0x12fb7e(0xf5)](_0x12fb7e(0xda),_0x5211b0[_0x12fb7e(0x11c)]),this[_0x12fb7e(0xea)][_0x12fb7e(0xf8)][_0x12fb7e(0xf5)](_0x12fb7e(0x104),_0x5211b0[_0x12fb7e(0x11c)]);const _0x1b1557=_0x5211b0[_0x12fb7e(0xd5)][_0x12fb7e(0xfb)]?.[_0x12fb7e(0xf3)]??!0x1;this[_0x12fb7e(0xf5)](_0x12fb7e(0x101),!0x1),this[_0x12fb7e(0x127)][_0x12fb7e(0xf5)](_0x12fb7e(0xf4),!0x1),this[_0x12fb7e(0x127)][_0x12fb7e(0xf5)](_0x12fb7e(0xfd),_0x1b1557),this[_0x12fb7e(0x127)][_0x12fb7e(0xf5)](_0x12fb7e(0x11e),_0x1b1557);const _0x318ef6=_0x5211b0[_0x12fb7e(0xd5)][_0x12fb7e(0x11f)]?.[_0x12fb7e(0xf3)]??!0x1;this[_0x12fb7e(0xf5)](_0x12fb7e(0xf7),!0x1),this[_0x12fb7e(0xce)][_0x12fb7e(0xf5)](_0x12fb7e(0xf4),!0x1),this[_0x12fb7e(0xce)][_0x12fb7e(0xf5)](_0x12fb7e(0xfd),_0x318ef6),this[_0x12fb7e(0xce)][_0x12fb7e(0xf5)](_0x12fb7e(0x11e),_0x318ef6);}[_0xb4cb05(0x120)](){const _0x34e4ea=_0xb4cb05;this[_0x34e4ea(0xf5)](_0x34e4ea(0xd1),!0x0),this[_0x34e4ea(0xf5)](_0x34e4ea(0xdf),!0x0);}[_0xb4cb05(0x11a)](_0x5cb7f2){const _0x204f54=_0xb4cb05;this[_0x204f54(0xf5)](_0x204f54(0xd1),!0x1),_0x5cb7f2&&this[_0x204f54(0xf5)](_0x204f54(0xdf),!0x1);}[_0xb4cb05(0x110)](){const _0x50a4d7=_0xb4cb05,_0x215d8a=new _0xf06384();return _0x215d8a[_0x50a4d7(0xf5)]({'label':_0xa08f5a(this[_0x50a4d7(0xdc)],_0x50a4d7(0xcd)),'icon':_0x2d6039,'class':Lo,'isToggleable':!0x0,'tooltipPosition':Jo}),_0x215d8a['on'](_0x50a4d7(0xee),()=>{const _0xcc2071=_0x50a4d7;this[_0xcc2071(0x114)](_0xcc2071(0xe4));}),_0x215d8a;}[_0xb4cb05(0x117)](){const _0x4703cc=_0xb4cb05,_0x249a19=new _0xf06384();return _0x249a19[_0x4703cc(0xf5)]({'label':_0xa08f5a(this[_0x4703cc(0xdc)],_0x4703cc(0x121)),'icon':_0x514fbf,'class':Lo,'isToggleable':!0x0,'tooltipPosition':Jo}),_0x249a19['on'](_0x4703cc(0xee),()=>{const _0x5b1fcf=_0x4703cc;this[_0x5b1fcf(0x114)](_0x5b1fcf(0x11d));}),_0x249a19;}[_0xb4cb05(0xf2)](){const _0xafd3c1=_0xb4cb05,_0x2f18ee=new _0xf06384();return _0x2f18ee[_0xafd3c1(0xf5)]({'label':_0xa08f5a(this[_0xafd3c1(0xdc)],_0xafd3c1(0xd4)),'icon':_0x26d5ad,'withText':!0x0,'class':Lo,'isToggleable':!0x0,'tooltip':_0xa08f5a(this[_0xafd3c1(0xdc)],_0xafd3c1(0xd4)),'tooltipPosition':Jo}),_0x2f18ee[_0xafd3c1(0x124)]({'attributes':{'class':[Go]}}),_0x2f18ee['on'](_0xafd3c1(0xee),()=>{const _0x33b279=_0xafd3c1;console[_0x33b279(0x10e)](_0x33b279(0xef)),alert(_0x33b279(0xef));}),_0x2f18ee;}[_0xb4cb05(0xed)](){const _0x345d39=_0xb4cb05,_0x14e036=_0x180862(this[_0x345d39(0xdc)]);return _0x14e036[_0x345d39(0xf5)]({'panelPosition':'ne','class':[Yo]}),_0x14e036[_0x345d39(0xf8)][_0x345d39(0xf5)]({'label':_0xa08f5a(this[_0x345d39(0xdc)],_0x345d39(0x122)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':Jo}),this[_0x345d39(0xdb)](_0x14e036,_0x345d39(0xee),_0x204da9=>{const _0x1578e6=_0x345d39;this[_0x1578e6(0x114)](_0x1578e6(0xd2),_0x204da9[_0x1578e6(0xcb)][_0x1578e6(0xd9)]);}),_0x14e036;}[_0xb4cb05(0x123)](){const _0x40e94f=_0xb4cb05,_0x430ed2=new Ko(this[_0x40e94f(0xdc)]);return _0x430ed2[_0x40e94f(0xf0)](_0x40e94f(0xe0))['to'](this,_0x40e94f(0x12a),_0x225b13=>_0x225b13??''),_0x430ed2[_0x40e94f(0xf0)](_0x40e94f(0x11e))['to'](this,_0x40e94f(0xdf),this,_0x40e94f(0x12a),(_0x26a3ab,_0x16b8fc)=>!_0x26a3ab&&!_0x16b8fc?.[_0x40e94f(0xf6)]()[_0x40e94f(0xd8)](_0x40e94f(0x106))),_0x430ed2;}}function _0x41b7(){const _0x33a7f2=['18WXXIrs','length','webSearch','setReasoning','isEnabled','AI_CHAT_ENABLE_WEB_SEARCH','style','content','webSearchActive','bindTemplate','setModel','tooltip','ck-ai-chat-controls__model-selection__item-description','agent','270900wKdGEc','_getCapabilityParts','492129INbfOj','ck-ai-chat-controls__model-selection','ck-ai-chat-controls__model-selection__item-name','span','1589567tiIafH','log','addMany','_createWebSearchButton','description','clear','setTemplate','fire','AI_CHAT_DISABLE_REASONING','ck-ai-chat__prompt-capabilities','_createReasoningButton','AI_CHAT_ENABLE_REASONING','ck-hidden','disableModelSelector','setModelList','name','toggleReasoning','isVisible','reasoning','enableModelSelector','AI_CHAT_REASONING','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','_createModelNameView','extendTemplate','AI_CHAT_DISABLE_WEB_SEARCH','4968376GVPfTi','_webSearchButton','getLocalized','ck-ai-chat-controls__model-name','activeModelName','ck-button__label','AI_CHAT_CAPABILITIES_NO','menuitemradio','source','215cohpDd','AI_CHAT_SEARCH_WEB','_reasoningButton','6988CqecqN','createCollection','modelSelectorEnabled','selectModel','add','AI_CHAT_COMMANDS','capabilities','_commandsButton','setWebSearch','startsWith','model','label','listenTo','locale','ck-ai-chat-controls-button','3014784Iakeyx','modelSelectorVisible','text','ck-ai-chat-controls__model-selection__item-capabilities','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','ck-ai-chat-controls-button--commands','toggleWebSearch','AI_CHAT_CAPABILITIES_YES','_modelSelectionDropdownItems','activeModelId','_modelNameView','div','_modelSelectionDropdown','button','withText','_createModelSelectionDropdown','execute','Commands\x20are\x20not\x20implemented\x20yet.','bind','316706cwJkki','_createCommandsButton','enabled','isOn','set','toLowerCase','reasoningActive','buttonView'];_0x41b7=function(){return _0x33a7f2;};return _0x41b7();}class zs extends _0x431f16{constructor(_0x13f51f,_0x4dd494){const _0x2c91d3=_0xb4cb05;super();const _0x581697=this[_0x2c91d3(0x102)],_0x1d794e=this[_0x2c91d3(0xd0)]();this[_0x2c91d3(0x113)]({'tag':_0x2c91d3(0xe9),'attributes':{'class':['ck',_0x2c91d3(0xc8)],'style':_0x581697['to'](_0x2c91d3(0xff)),'id':_0x581697['to']('id')},'children':[{'tag':_0x2c91d3(0xe9),'attributes':{'class':[qo]},'children':[{'text':_0x581697['to'](_0x2c91d3(0xe0))}]},{'tag':_0x2c91d3(0xe9),'attributes':{'class':[zo]},'children':[{'tag':_0x2c91d3(0x10c),'children':[{'text':_0x4dd494[_0x2c91d3(0x111)]}]}]},{'tag':_0x2c91d3(0xe9),'attributes':{'class':[Fo]},'children':_0x1d794e}]}),_0x1d794e[_0x2c91d3(0x10f)](this[_0x2c91d3(0x108)](_0x13f51f,_0x2d6039,_0x2c91d3(0xcd),_0x4dd494[_0x2c91d3(0xd5)][_0x2c91d3(0xfb)]?.[_0x2c91d3(0xf3)]??!0x1)),_0x1d794e[_0x2c91d3(0x10f)](this[_0x2c91d3(0x108)](_0x13f51f,_0x514fbf,_0x2c91d3(0x121),_0x4dd494[_0x2c91d3(0xd5)][_0x2c91d3(0x11f)]?.[_0x2c91d3(0xf3)]??!0x1));}[_0xb4cb05(0x108)](_0x1c35eb,_0x53e48e,_0x5b0d4e,_0x1fb802){const _0x157fb9=_0xb4cb05,_0x199a7b=new _0x1e5a69();_0x199a7b[_0x157fb9(0x100)]=_0x53e48e;const _0x29eaf0=new _0x56c9ad(_0x1c35eb);_0x29eaf0[_0x157fb9(0x113)]({'tag':_0x157fb9(0x10c),'children':[{'text':_0xa08f5a(_0x1c35eb,_0x5b0d4e)+':\x20'}]});const _0x19c8ef=new _0x56c9ad(_0x1c35eb);return _0x19c8ef[_0x157fb9(0x113)]({'tag':_0x157fb9(0x10c),'children':[{'text':_0xa08f5a(_0x1c35eb,_0x1fb802?_0x157fb9(0xe5):_0x157fb9(0xc9))}]}),[_0x199a7b,_0x29eaf0,_0x19c8ef];}}class Ko extends _0x56c9ad{constructor(_0x13ef00){const _0x26ec88=_0xb4cb05;super(_0x13ef00),this[_0x26ec88(0xf5)](_0x26ec88(0xe0),void 0x0),this[_0x26ec88(0xf5)](_0x26ec88(0x11e),!0x0);const _0x495313=this[_0x26ec88(0x102)];this[_0x26ec88(0x113)]({'tag':_0x26ec88(0x10c),'attributes':{'class':['ck',_0x26ec88(0x129),_0x495313['if'](_0x26ec88(0x11e),_0x26ec88(0x119),_0x30fcd2=>!_0x30fcd2)]},'children':[{'text':_0x495313['to'](_0x26ec88(0xe0))}]});}}
23
+ const _0x4baa10=_0x6584;(function(_0x172313,_0x29cbe1){const _0x58f4f2=_0x6584,_0x3555b6=_0x172313();while(!![]){try{const _0x5c97c6=parseInt(_0x58f4f2(0x198))/0x1+-parseInt(_0x58f4f2(0x1a1))/0x2*(-parseInt(_0x58f4f2(0x195))/0x3)+parseInt(_0x58f4f2(0x187))/0x4*(parseInt(_0x58f4f2(0x1af))/0x5)+parseInt(_0x58f4f2(0x158))/0x6*(parseInt(_0x58f4f2(0x1a8))/0x7)+parseInt(_0x58f4f2(0x162))/0x8*(-parseInt(_0x58f4f2(0x194))/0x9)+-parseInt(_0x58f4f2(0x154))/0xa+parseInt(_0x58f4f2(0x1a2))/0xb*(parseInt(_0x58f4f2(0x17c))/0xc);if(_0x5c97c6===_0x29cbe1)break;else _0x3555b6['push'](_0x3555b6['shift']());}catch(_0x4b5d6c){_0x3555b6['push'](_0x3555b6['shift']());}}}(_0x1146,0x25ed3));import{Collection as _0xee16cc}from'ckeditor5/src/utils.js';import{IconAI as _0x56d781,IconBulb as _0x51bcbd,IconWeb as _0x17ce65}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x40c9c6,ButtonLabelView as _0x3c6aae,ButtonView as _0x4e2617,createDropdown as _0x1920f2,IconView as _0x30ffaf,UIModel as _0x5d186e,View as _0x323162}from'ckeditor5/src/ui.js';import{getTranslation as _0x3ab203}from'../../../aicore/utils/common-translations.js';function _0x6584(_0x2eaa12,_0x3c9ba7){const _0x11465e=_0x1146();return _0x6584=function(_0x6584fe,_0x357ec8){_0x6584fe=_0x6584fe-0x151;let _0x4d2b9e=_0x11465e[_0x6584fe];return _0x4d2b9e;},_0x6584(_0x2eaa12,_0x3c9ba7);}import{AIModels as _0x51d85b}from'../../../aicore/model/aimodels.js';const Wo=_0x4baa10(0x1ad),bo=_0x4baa10(0x18c),yo=_0x4baa10(0x159),Go=_0x4baa10(0x1b6),Yo=_0x4baa10(0x172),qo=_0x4baa10(0x18b),zo=_0x4baa10(0x1b2),Jo='n';export class AIChatPromptCapabilitiesView extends _0x323162{[_0x4baa10(0x165)];[_0x4baa10(0x190)];[_0x4baa10(0x1b5)];[_0x4baa10(0x19c)];[_0x4baa10(0x19e)];[_0x4baa10(0x1b4)];constructor(_0xe927d0){const _0x157f9e=_0x4baa10;super(_0xe927d0),this[_0x157f9e(0x16b)](_0x157f9e(0x16d),!0x1),this[_0x157f9e(0x16b)](_0x157f9e(0x166),!0x1),this[_0x157f9e(0x16b)](_0x157f9e(0x1a0),!0x0),this[_0x157f9e(0x16b)](_0x157f9e(0x18f),!0x0),this[_0x157f9e(0x16b)](_0x157f9e(0x197),null),this[_0x157f9e(0x16b)](_0x157f9e(0x16c),null),this[_0x157f9e(0x19c)]=this[_0x157f9e(0x169)](),this[_0x157f9e(0x1b4)]=this[_0x157f9e(0x177)](),this[_0x157f9e(0x165)]=this[_0x157f9e(0x15c)](),this[_0x157f9e(0x190)]=this[_0x157f9e(0x16a)](),this[_0x157f9e(0x1b5)]=this[_0x157f9e(0x15a)](),this[_0x157f9e(0x19c)][_0x157f9e(0x182)][_0x157f9e(0x15e)](_0x157f9e(0x157))['to'](this,_0x157f9e(0x1a0),_0x5453e2=>_0x5453e2),this[_0x157f9e(0x19c)][_0x157f9e(0x182)][_0x157f9e(0x15e)](_0x157f9e(0x183))['to'](this,_0x157f9e(0x18f),_0x60b4b9=>_0x60b4b9?this[_0x157f9e(0x19c)][_0x157f9e(0x182)][_0x157f9e(0x18e)]:_0x3ab203(this[_0x157f9e(0x184)],_0x157f9e(0x15f))),this[_0x157f9e(0x19c)][_0x157f9e(0x15e)](_0x157f9e(0x186))['to'](this,_0x157f9e(0x18f),_0x3a5f91=>_0x3a5f91),this[_0x157f9e(0x165)][_0x157f9e(0x15e)](_0x157f9e(0x16e))['to'](this,_0x157f9e(0x16d),_0x52904c=>_0x52904c),this[_0x157f9e(0x165)][_0x157f9e(0x15e)](_0x157f9e(0x176))['to'](this,_0x157f9e(0x1a0),_0x17ea41=>!_0x17ea41),this[_0x157f9e(0x165)][_0x157f9e(0x15e)](_0x157f9e(0x183))['to'](this,_0x157f9e(0x16d),_0x3c0c13=>_0x3ab203(this[_0x157f9e(0x184)],_0x3c0c13?_0x157f9e(0x17d):_0x157f9e(0x1ac))),this[_0x157f9e(0x190)][_0x157f9e(0x15e)](_0x157f9e(0x16e))['to'](this,_0x157f9e(0x166),_0x4f1631=>_0x4f1631),this[_0x157f9e(0x190)][_0x157f9e(0x15e)](_0x157f9e(0x176))['to'](this,_0x157f9e(0x1a0),_0x1827b3=>!_0x1827b3),this[_0x157f9e(0x190)][_0x157f9e(0x15e)](_0x157f9e(0x183))['to'](this,_0x157f9e(0x166),_0x5dea4a=>_0x3ab203(this[_0x157f9e(0x184)],_0x5dea4a?_0x157f9e(0x199):_0x157f9e(0x153))),this[_0x157f9e(0x1ae)]({'tag':_0x157f9e(0x173),'attributes':{'class':[Wo]},'children':[this[_0x157f9e(0x19c)],this[_0x157f9e(0x1b4)],this[_0x157f9e(0x165)],this[_0x157f9e(0x190)],this[_0x157f9e(0x1b5)]]}),this[_0x157f9e(0x19e)]=new _0xee16cc(),_0x40c9c6(this[_0x157f9e(0x19c)],this[_0x157f9e(0x19e)]);}[_0x4baa10(0x189)](_0x43b539,_0x36596c){const _0x5be7eb=_0x4baa10;if(this[_0x5be7eb(0x16b)](_0x5be7eb(0x1a0),!(_0x36596c&&_0x43b539[_0x5be7eb(0x181)]<=0x1)),this[_0x5be7eb(0x19e)][_0x5be7eb(0x188)](),_0x43b539?.[_0x5be7eb(0x181)]){const _0x4ff807=_0x51d85b[_0x5be7eb(0x17e)](this[_0x5be7eb(0x184)],_0x43b539);for(const _0x51c886 of _0x4ff807){const _0x40bba5=new _0x5d186e({'label':_0x51c886[_0x5be7eb(0x1a6)],'withText':!0x0,'role':_0x5be7eb(0x15d),'id':_0x51c886['id'],'model':_0x51c886});_0x40bba5[_0x5be7eb(0x15e)](_0x5be7eb(0x16e))['to'](this,_0x5be7eb(0x197),_0x425019=>_0x425019===_0x51c886['id']),this[_0x5be7eb(0x19e)][_0x5be7eb(0x193)]({'type':_0x5be7eb(0x156),'model':_0x40bba5,'labelView':new Fs(this[_0x5be7eb(0x184)],_0x51c886)});}}}[_0x4baa10(0x180)](_0x58ee3f){const _0x3e5bb0=_0x4baa10;this[_0x3e5bb0(0x16b)](_0x3e5bb0(0x16d),_0x58ee3f);}[_0x4baa10(0x17a)](_0x374dfd){const _0x82560d=_0x4baa10;this[_0x82560d(0x16b)](_0x82560d(0x166),_0x374dfd);}[_0x4baa10(0x175)](_0x3b0a18){const _0xe5d5bb=_0x4baa10;if(!_0x3b0a18)return;this[_0xe5d5bb(0x197)]=_0x3b0a18['id'],this[_0xe5d5bb(0x16c)]=_0x3b0a18[_0xe5d5bb(0x1a6)]||_0x3b0a18['id'],this[_0xe5d5bb(0x19c)][_0xe5d5bb(0x182)][_0xe5d5bb(0x16b)](_0xe5d5bb(0x18e),_0x3b0a18[_0xe5d5bb(0x1a6)]),this[_0xe5d5bb(0x19c)][_0xe5d5bb(0x182)][_0xe5d5bb(0x16b)](_0xe5d5bb(0x183),_0x3b0a18[_0xe5d5bb(0x1a6)]);const _0x3b0b83=_0x3b0a18[_0xe5d5bb(0x19d)][_0xe5d5bb(0x1ab)]?.[_0xe5d5bb(0x1b1)]??!0x1;this[_0xe5d5bb(0x16b)](_0xe5d5bb(0x16d),!0x1),this[_0xe5d5bb(0x165)][_0xe5d5bb(0x16b)](_0xe5d5bb(0x16e),!0x1),this[_0xe5d5bb(0x165)][_0xe5d5bb(0x16b)](_0xe5d5bb(0x186),_0x3b0b83),this[_0xe5d5bb(0x165)][_0xe5d5bb(0x16b)](_0xe5d5bb(0x157),_0x3b0b83);const _0x1ca8b8=_0x3b0a18[_0xe5d5bb(0x19d)][_0xe5d5bb(0x1a7)]?.[_0xe5d5bb(0x1b1)]??!0x1;this[_0xe5d5bb(0x16b)](_0xe5d5bb(0x166),!0x1),this[_0xe5d5bb(0x190)][_0xe5d5bb(0x16b)](_0xe5d5bb(0x16e),!0x1),this[_0xe5d5bb(0x190)][_0xe5d5bb(0x16b)](_0xe5d5bb(0x186),_0x1ca8b8),this[_0xe5d5bb(0x190)][_0xe5d5bb(0x16b)](_0xe5d5bb(0x157),_0x1ca8b8);}[_0x4baa10(0x178)](){const _0x1e5bc2=_0x4baa10;this[_0x1e5bc2(0x16b)](_0x1e5bc2(0x18f),!0x0),this[_0x1e5bc2(0x16b)](_0x1e5bc2(0x1a0),!0x0);}[_0x4baa10(0x185)](_0x16e390){const _0x5c5320=_0x4baa10;this[_0x5c5320(0x16b)](_0x5c5320(0x18f),!0x1),_0x16e390&&this[_0x5c5320(0x16b)](_0x5c5320(0x1a0),!0x1);}[_0x4baa10(0x15c)](){const _0x3c9977=_0x4baa10,_0xf58018=new _0x4e2617();return _0xf58018[_0x3c9977(0x16b)]({'label':_0x3ab203(this[_0x3c9977(0x184)],_0x3c9977(0x179)),'icon':_0x17ce65,'class':bo,'isToggleable':!0x0,'tooltipPosition':Jo}),_0xf58018['on'](_0x3c9977(0x160),()=>{const _0x4874ed=_0x3c9977;this[_0x4874ed(0x155)](_0x4874ed(0x164));}),_0xf58018;}[_0x4baa10(0x16a)](){const _0x50d6cf=_0x4baa10,_0x2d1df7=new _0x4e2617();return _0x2d1df7[_0x50d6cf(0x16b)]({'label':_0x3ab203(this[_0x50d6cf(0x184)],_0x50d6cf(0x151)),'icon':_0x51bcbd,'class':bo,'isToggleable':!0x0,'tooltipPosition':Jo}),_0x2d1df7['on'](_0x50d6cf(0x160),()=>{const _0x175ce2=_0x50d6cf;this[_0x175ce2(0x155)](_0x175ce2(0x1aa));}),_0x2d1df7;}[_0x4baa10(0x15a)](){const _0x37d822=_0x4baa10,_0x4bad8e=new _0x4e2617();return _0x4bad8e[_0x37d822(0x16b)]({'label':_0x3ab203(this[_0x37d822(0x184)],_0x37d822(0x167)),'icon':_0x56d781,'withText':!0x0,'class':bo,'isToggleable':!0x0,'tooltip':_0x3ab203(this[_0x37d822(0x184)],_0x37d822(0x167)),'tooltipPosition':Jo}),_0x4bad8e[_0x37d822(0x191)]({'attributes':{'class':[yo]}}),_0x4bad8e['on'](_0x37d822(0x160),()=>{const _0x540f56=_0x37d822;console[_0x540f56(0x19a)](_0x540f56(0x1b3)),alert(_0x540f56(0x1b3));}),_0x4bad8e;}[_0x4baa10(0x169)](){const _0x36bb99=_0x4baa10,_0x519d75=_0x1920f2(this[_0x36bb99(0x184)]);return _0x519d75[_0x36bb99(0x16b)]({'panelPosition':'ne','class':[Go]}),_0x519d75[_0x36bb99(0x182)][_0x36bb99(0x16b)]({'label':_0x3ab203(this[_0x36bb99(0x184)],_0x36bb99(0x192)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':Jo}),this[_0x36bb99(0x1a9)](_0x519d75,_0x36bb99(0x160),_0x18fc76=>{const _0x32fe95=_0x36bb99;this[_0x32fe95(0x155)](_0x32fe95(0x174),_0x18fc76[_0x32fe95(0x1a3)][_0x32fe95(0x18a)]);}),_0x519d75;}[_0x4baa10(0x177)](){const _0x2f42c6=_0x4baa10,_0x30415e=new Ko(this[_0x2f42c6(0x184)]);return _0x30415e[_0x2f42c6(0x15e)](_0x2f42c6(0x19f))['to'](this,_0x2f42c6(0x16c),_0x3a2ff5=>_0x3a2ff5??''),_0x30415e[_0x2f42c6(0x15e)](_0x2f42c6(0x157))['to'](this,_0x2f42c6(0x1a0),this,_0x2f42c6(0x16c),(_0x84838a,_0x153ef2)=>!_0x84838a&&!_0x153ef2?.[_0x2f42c6(0x171)]()[_0x2f42c6(0x1b0)](_0x2f42c6(0x17b))),_0x30415e;}}class Fs extends _0x3c6aae{constructor(_0x4ca1ee,_0x2992b1){const _0x340ffc=_0x4baa10;super();const _0x4440a2=this[_0x340ffc(0x18d)],_0x2b2ee1=this[_0x340ffc(0x1a5)]();this[_0x340ffc(0x1ae)]({'tag':_0x340ffc(0x173),'attributes':{'class':['ck',_0x340ffc(0x168)],'style':_0x4440a2['to'](_0x340ffc(0x19b)),'id':_0x4440a2['to']('id')},'children':[{'tag':_0x340ffc(0x173),'attributes':{'class':[Yo]},'children':[{'text':_0x4440a2['to'](_0x340ffc(0x19f))}]},{'tag':_0x340ffc(0x173),'attributes':{'class':[qo]},'children':[{'tag':_0x340ffc(0x163),'children':[{'text':_0x2992b1[_0x340ffc(0x17f)]}]}]},{'tag':_0x340ffc(0x173),'attributes':{'class':[zo]},'children':_0x2b2ee1}]}),_0x2b2ee1[_0x340ffc(0x161)](this[_0x340ffc(0x16f)](_0x4ca1ee,_0x17ce65,_0x340ffc(0x179),_0x2992b1[_0x340ffc(0x19d)][_0x340ffc(0x1ab)]?.[_0x340ffc(0x1b1)]??!0x1)),_0x2b2ee1[_0x340ffc(0x161)](this[_0x340ffc(0x16f)](_0x4ca1ee,_0x51bcbd,_0x340ffc(0x151),_0x2992b1[_0x340ffc(0x19d)][_0x340ffc(0x1a7)]?.[_0x340ffc(0x1b1)]??!0x1));}[_0x4baa10(0x16f)](_0x284309,_0x566d8b,_0x5774b2,_0x4163d9){const _0x58d1da=_0x4baa10,_0x25994b=new _0x30ffaf();_0x25994b[_0x58d1da(0x152)]=_0x566d8b;const _0x4ddf4d=new _0x323162(_0x284309);_0x4ddf4d[_0x58d1da(0x1ae)]({'tag':_0x58d1da(0x163),'children':[{'text':_0x3ab203(_0x284309,_0x5774b2)+':\x20'}]});const _0xc9e9d0=new _0x323162(_0x284309);return _0xc9e9d0[_0x58d1da(0x1ae)]({'tag':_0x58d1da(0x163),'children':[{'text':_0x3ab203(_0x284309,_0x4163d9?_0x58d1da(0x1a4):_0x58d1da(0x196))}]}),[_0x25994b,_0x4ddf4d,_0xc9e9d0];}}class Ko extends _0x323162{constructor(_0x2a5eae){const _0x268680=_0x4baa10;super(_0x2a5eae),this[_0x268680(0x16b)](_0x268680(0x19f),void 0x0),this[_0x268680(0x16b)](_0x268680(0x157),!0x0);const _0x2a09fc=this[_0x268680(0x18d)];this[_0x268680(0x1ae)]({'tag':_0x268680(0x163),'attributes':{'class':['ck',_0x268680(0x15b),_0x2a09fc['if'](_0x268680(0x157),_0x268680(0x170),_0x103f72=>!_0x103f72)]},'children':[{'text':_0x2a09fc['to'](_0x268680(0x19f))}]});}}function _0x1146(){const _0x3c89ae=['buttonView','tooltip','locale','disableModelSelector','isEnabled','4MnSsip','clear','setModelList','model','ck-ai-chat-controls__model-selection__item-description','ck-ai-chat-controls-button','bindTemplate','label','modelSelectorEnabled','_reasoningButton','extendTemplate','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','add','12591vxLicW','3yVEYZo','AI_CHAT_CAPABILITIES_NO','activeModelId','154382NLZUUZ','AI_CHAT_DISABLE_REASONING','log','style','_modelSelectionDropdown','capabilities','_modelSelectionDropdownItems','text','modelSelectorVisible','206468DoohNr','101871KCYRjp','source','AI_CHAT_CAPABILITIES_YES','createCollection','name','reasoning','7LWNpDR','listenTo','toggleReasoning','webSearch','AI_CHAT_ENABLE_WEB_SEARCH','ck-ai-chat__prompt-capabilities','setTemplate','620525IxTJhy','startsWith','enabled','ck-ai-chat-controls__model-selection__item-capabilities','Commands\x20are\x20not\x20implemented\x20yet.','_modelNameView','_commandsButton','ck-ai-chat-controls__model-selection','AI_CHAT_REASONING','content','AI_CHAT_ENABLE_REASONING','2142690hWNVZp','fire','button','isVisible','4098FjXQIt','ck-ai-chat-controls-button--commands','_createCommandsButton','ck-ai-chat-controls__model-name','_createWebSearchButton','menuitemradio','bind','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','execute','addMany','232oSQSHz','span','toggleWebSearch','_webSearchButton','reasoningActive','AI_CHAT_COMMANDS','ck-button__label','_createModelSelectionDropdown','_createReasoningButton','set','activeModelName','webSearchActive','isOn','_getCapabilityParts','ck-hidden','toLowerCase','ck-ai-chat-controls__model-selection__item-name','div','selectModel','setModel','withText','_createModelNameView','enableModelSelector','AI_CHAT_SEARCH_WEB','setReasoning','agent','36VpDwQF','AI_CHAT_DISABLE_WEB_SEARCH','getLocalized','description','setWebSearch','length'];_0x1146=function(){return _0x3c89ae;};return _0x1146();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x1751(_0x594ea3,_0x1e754b){const _0x32ea57=_0x32ea();return _0x1751=function(_0x175180,_0x30c27b){_0x175180=_0x175180-0x18a;let _0x3a3219=_0x32ea57[_0x175180];return _0x3a3219;},_0x1751(_0x594ea3,_0x1e754b);}const _0x94143b=_0x1751;(function(_0x1cc47c,_0x547e04){const _0x583ce1=_0x1751,_0x3d6e08=_0x1cc47c();while(!![]){try{const _0x21ed7e=parseInt(_0x583ce1(0x1b4))/0x1+parseInt(_0x583ce1(0x1bf))/0x2+-parseInt(_0x583ce1(0x19c))/0x3+-parseInt(_0x583ce1(0x1c2))/0x4+-parseInt(_0x583ce1(0x1c6))/0x5*(-parseInt(_0x583ce1(0x1b8))/0x6)+parseInt(_0x583ce1(0x18b))/0x7+-parseInt(_0x583ce1(0x1ac))/0x8;if(_0x21ed7e===_0x547e04)break;else _0x3d6e08['push'](_0x3d6e08['shift']());}catch(_0x414d20){_0x3d6e08['push'](_0x3d6e08['shift']());}}}(_0x32ea,0xbad5b));import{IconSubmit as _0x2cfed6}from'ckeditor5/src/icons.js';import{ButtonView as _0x14133d,AutocompleteView as _0x26fe8a,createLabeledTextarea as _0x5129c4}from'ckeditor5/src/ui.js';import{global as _0x12c05b,isVisible as _0x5e9795,Rect as _0x4a2f58,ResizeObserver as _0x34d02b}from'ckeditor5/src/utils.js';import{getTranslation as _0x5ddc34}from'../../../aicore/utils/common-translations.js';import{AIChatPromptSuggestionsListView as _0x340484}from'./aichatpromptsuggestionslistview.js';import{escape as _0x1f1103}from'es-toolkit/compat';function _0x32ea(){const _0x117331=['_addContextButtonView','_queryViewResizeObserver','errorText','requestAnimationFrame','reset','submit','AI_CHAT_PROMPT_EMPTY_ERROR','164364yqFDmJ','sendUserMessage','setIsUploadInProgress','enter','render','MIN_ROWS','set','destroy','calc(','keystrokes','AI_CHAT_LABEL_SUBMIT','trim','bind','queryView','target','rtl','5643744zRmYhA','value','minRows','excludeScrollbarsAndBorders','fire','submitButtonView','ck-ai-chat__prompt-input','width','771394GkSBXU','placeholder','locale','extendTemplate','2608086Judyhu','_setUpAddContextButtonPositioning','add','execute','left','isUploadInProgress','fieldWrapperChildren','994150HjjOxC','maxRows','_createSubmitButton','5109572lMdZeI','style','update','uiLanguageDirection','15vJyKBZ','window','right','element','1612884iIwSyK','focusableChildren','ck-ai-chat__prompt-submit-button','setPlaceholderText','hasError','isEmpty','MAX_ROWS','isEnabled','fieldView','px\x20-\x20var(--ck-spacing-tiny))'];_0x32ea=function(){return _0x117331;};return _0x32ea();}export class AIChatPromptInputView extends _0x26fe8a{[_0x94143b(0x1b1)];static [_0x94143b(0x1a1)]=0x1;static [_0x94143b(0x191)]=0xc;[_0x94143b(0x195)];[_0x94143b(0x196)];constructor(_0x5701dc,_0x41fcdf){const _0x176bda=_0x94143b;super(_0x5701dc,{'queryView':{'label':'','creator':_0x5129c4,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x340484(_0x5701dc),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x176bda(0x1a2)](_0x176bda(0x190),!0x0),this[_0x176bda(0x1a2)](_0x176bda(0x1bd),!0x1),this[_0x176bda(0x195)]=_0x41fcdf,this[_0x176bda(0x196)]=null,this[_0x176bda(0x1a9)][_0x176bda(0x193)][_0x176bda(0x1ae)]=AIChatPromptInputView[_0x176bda(0x1a1)],this[_0x176bda(0x1a9)][_0x176bda(0x193)][_0x176bda(0x1c0)]=AIChatPromptInputView[_0x176bda(0x191)],this[_0x176bda(0x1a9)][_0x176bda(0x1be)][_0x176bda(0x1ba)](this[_0x176bda(0x195)]),this[_0x176bda(0x1b9)](),this[_0x176bda(0x1b7)]({'attributes':{'class':['ck',_0x176bda(0x1b2)]}}),this[_0x176bda(0x1b1)]=this[_0x176bda(0x1c1)](),this[_0x176bda(0x1b1)][_0x176bda(0x1a8)](_0x176bda(0x192))['to'](this,_0x176bda(0x190),this,_0x176bda(0x1bd),(_0x5078d2,_0x2f4a6d)=>!_0x5078d2&&!_0x2f4a6d),this[_0x176bda(0x18c)][_0x176bda(0x1ba)](this[_0x176bda(0x1b1)]);}[_0x94143b(0x1a0)](){const _0x1af3f6=_0x94143b;super[_0x1af3f6(0x1a0)](),this[_0x1af3f6(0x1a9)][_0x1af3f6(0x1be)][_0x1af3f6(0x1ba)](this[_0x1af3f6(0x1b1)]),this[_0x1af3f6(0x1a5)][_0x1af3f6(0x1a2)](_0x1af3f6(0x19f),(_0xf8b8b9,_0x7c1388)=>{const _0x3e2804=_0x1af3f6;this[_0x3e2804(0x1bd)]||this[_0x3e2804(0x190)]||_0xf8b8b9[_0x3e2804(0x1aa)]==this[_0x3e2804(0x1a9)][_0x3e2804(0x193)][_0x3e2804(0x18a)]&&(this[_0x3e2804(0x19a)](),_0x7c1388());}),this[_0x1af3f6(0x1a9)][_0x1af3f6(0x193)]['on'](_0x1af3f6(0x1c4),()=>{const _0x4614cc=_0x1af3f6;this[_0x4614cc(0x190)]=''===this[_0x4614cc(0x1a9)][_0x4614cc(0x193)][_0x4614cc(0x18a)][_0x4614cc(0x1ad)]?.[_0x4614cc(0x1a7)]();});}[_0x94143b(0x1a3)](){const _0x211ba7=_0x94143b;super[_0x211ba7(0x1a3)](),this[_0x211ba7(0x196)]&&this[_0x211ba7(0x196)][_0x211ba7(0x1a3)]();}[_0x94143b(0x19a)](){const _0x170227=_0x94143b,_0x416614=this[_0x170227(0x1a9)][_0x170227(0x193)][_0x170227(0x18a)][_0x170227(0x1ad)]?.[_0x170227(0x1a7)]();if(!_0x416614)return this[_0x170227(0x1a9)][_0x170227(0x197)]=_0x5ddc34(this[_0x170227(0x1b6)],_0x170227(0x19b)),void(this[_0x170227(0x1a9)][_0x170227(0x193)][_0x170227(0x18f)]=!0x0);this[_0x170227(0x1a9)][_0x170227(0x193)][_0x170227(0x18f)]=!0x1;const _0x256f28=_0x1f1103(_0x416614);this[_0x170227(0x1b0)](_0x170227(0x19d),_0x256f28),this[_0x170227(0x1a9)][_0x170227(0x193)][_0x170227(0x199)]();}[_0x94143b(0x18e)](_0x5addab){const _0x1d8fe6=_0x94143b;this[_0x1d8fe6(0x1a9)][_0x1d8fe6(0x193)][_0x1d8fe6(0x1a2)](_0x1d8fe6(0x1b5),_0x5addab);}[_0x94143b(0x1c1)](){const _0x15c7a6=_0x94143b,_0x44e892=new _0x14133d(this[_0x15c7a6(0x1b6)]);return _0x44e892[_0x15c7a6(0x1a2)]({'icon':_0x2cfed6,'label':_0x5ddc34(this[_0x15c7a6(0x1b6)],_0x15c7a6(0x1a6)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x15c7a6(0x18d),'isEnabled':!0x1}),_0x44e892['on'](_0x15c7a6(0x1bb),()=>{const _0x43dd04=_0x15c7a6;this[_0x43dd04(0x19a)]();}),_0x44e892;}[_0x94143b(0x19e)](_0x45b9b1){const _0x221037=_0x94143b;this[_0x221037(0x1bd)]=_0x45b9b1;}[_0x94143b(0x1b9)](){const _0x5e086c=_0x94143b,_0x44126b=this[_0x5e086c(0x1b6)],_0x4e640f=()=>{const _0x30bc6a=_0x5e086c;_0x12c05b[_0x30bc6a(0x1c7)][_0x30bc6a(0x198)](()=>{const _0x186c58=_0x30bc6a;if(_0x5e9795(this[_0x186c58(0x18a)])){const _0x13271d=new _0x4a2f58(this[_0x186c58(0x1a9)][_0x186c58(0x193)][_0x186c58(0x18a)]),_0x195a1c=new _0x4a2f58(this[_0x186c58(0x195)][_0x186c58(0x18a)]),_0x56b7a9=_0x13271d[_0x186c58(0x1b3)],_0x56aded=_0x186c58(0x1ab)===_0x44126b[_0x186c58(0x1c5)]?_0x186c58(0x1c8):_0x186c58(0x1bc);_0x13271d[_0x186c58(0x1af)]();const _0x57d445=_0x56b7a9-_0x13271d[_0x186c58(0x1b3)]+0x1;this[_0x186c58(0x195)][_0x186c58(0x18a)][_0x186c58(0x1c3)][_0x56aded]=_0x186c58(0x1a4)+(_0x56b7a9-_0x195a1c[_0x186c58(0x1b3)]-_0x57d445)+_0x186c58(0x194);}});};this[_0x5e086c(0x1a9)][_0x5e086c(0x193)]['on'](_0x5e086c(0x1c4),_0x4e640f),this['on'](_0x5e086c(0x1a0),()=>{const _0xdf3b=_0x5e086c;_0x4e640f(),this[_0xdf3b(0x196)]=new _0x34d02b(this[_0xdf3b(0x1a9)][_0xdf3b(0x193)][_0xdf3b(0x18a)],()=>{_0x4e640f();});});}}
23
+ const _0x50d18e=_0x42a7;function _0x42a7(_0x13ada1,_0xf989d9){const _0x5998db=_0x5998();return _0x42a7=function(_0x42a7d6,_0x557709){_0x42a7d6=_0x42a7d6-0xdd;let _0xf98a61=_0x5998db[_0x42a7d6];return _0xf98a61;},_0x42a7(_0x13ada1,_0xf989d9);}(function(_0x1aa51b,_0x4a7833){const _0x18203e=_0x42a7,_0x204829=_0x1aa51b();while(!![]){try{const _0x507afc=parseInt(_0x18203e(0x11d))/0x1*(parseInt(_0x18203e(0xee))/0x2)+-parseInt(_0x18203e(0xfc))/0x3*(parseInt(_0x18203e(0x108))/0x4)+parseInt(_0x18203e(0x10e))/0x5*(-parseInt(_0x18203e(0xf5))/0x6)+parseInt(_0x18203e(0xe3))/0x7*(-parseInt(_0x18203e(0xdd))/0x8)+parseInt(_0x18203e(0x10d))/0x9+parseInt(_0x18203e(0xe7))/0xa+-parseInt(_0x18203e(0x113))/0xb*(-parseInt(_0x18203e(0x118))/0xc);if(_0x507afc===_0x4a7833)break;else _0x204829['push'](_0x204829['shift']());}catch(_0x8fbd56){_0x204829['push'](_0x204829['shift']());}}}(_0x5998,0x88b2c));import{IconSubmit as _0x41dc0f}from'ckeditor5/src/icons.js';import{ButtonView as _0x21f379,AutocompleteView as _0x4b5cd8,createLabeledTextarea as _0x548aff}from'ckeditor5/src/ui.js';function _0x5998(){const _0x5cf93b=['ck-ai-chat__prompt-input','value','errorText','_queryViewResizeObserver','minRows','51YGcIBa','isEnabled','destroy','width','_addContextButtonView','uiLanguageDirection','enter','excludeScrollbarsAndBorders','fire','calc(','fieldView','_createSubmitButton','230108PUrKrE','maxRows','MIN_ROWS','execute','render','172692ynlujr','14565gFuTfP','bind','left','ck-ai-chat__prompt-submit-button','rtl','1171423DkpxyO','set','sendUserMessage','submitButtonView','add','120emJnPE','queryView','locale','target','px\x20-\x20var(--ck-spacing-tiny))','284ssQITk','fieldWrapperChildren','focusableChildren','34856fdBuPI','isEmpty','extendTemplate','hasError','right','update','581qEyrsR','keystrokes','submit','trim','5882250nBwbXs','MAX_ROWS','setPlaceholderText','style','window','AI_CHAT_PROMPT_EMPTY_ERROR','placeholder','4164izAMRp','reset','isUploadInProgress','requestAnimationFrame','setIsUploadInProgress','element','_setUpAddContextButtonPositioning','750zrpFVV','AI_CHAT_LABEL_SUBMIT'];_0x5998=function(){return _0x5cf93b;};return _0x5998();}import{global as _0x25448,isVisible as _0x5ea755,Rect as _0x3c22af,ResizeObserver as _0x271811}from'ckeditor5/src/utils.js';import{getTranslation as _0x36593b}from'../../../aicore/utils/common-translations.js';import{AIChatPromptSuggestionsListView as _0x546e49}from'./aichatpromptsuggestionslistview.js';import{escape as _0x48d995}from'es-toolkit/compat';export class AIChatPromptInputView extends _0x4b5cd8{[_0x50d18e(0x116)];static [_0x50d18e(0x10a)]=0x1;static [_0x50d18e(0xe8)]=0xc;[_0x50d18e(0x100)];[_0x50d18e(0xfa)];constructor(_0x42c25c,_0xe4d6e9){const _0x4008c2=_0x50d18e;super(_0x42c25c,{'queryView':{'label':'','creator':_0x548aff,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x546e49(_0x42c25c),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x4008c2(0x114)](_0x4008c2(0xde),!0x0),this[_0x4008c2(0x114)](_0x4008c2(0xf0),!0x1),this[_0x4008c2(0x100)]=_0xe4d6e9,this[_0x4008c2(0xfa)]=null,this[_0x4008c2(0x119)][_0x4008c2(0x106)][_0x4008c2(0xfb)]=AIChatPromptInputView[_0x4008c2(0x10a)],this[_0x4008c2(0x119)][_0x4008c2(0x106)][_0x4008c2(0x109)]=AIChatPromptInputView[_0x4008c2(0xe8)],this[_0x4008c2(0x119)][_0x4008c2(0x11e)][_0x4008c2(0x117)](this[_0x4008c2(0x100)]),this[_0x4008c2(0xf4)](),this[_0x4008c2(0xdf)]({'attributes':{'class':['ck',_0x4008c2(0xf7)]}}),this[_0x4008c2(0x116)]=this[_0x4008c2(0x107)](),this[_0x4008c2(0x116)][_0x4008c2(0x10f)](_0x4008c2(0xfd))['to'](this,_0x4008c2(0xde),this,_0x4008c2(0xf0),(_0x91d495,_0x12512e)=>!_0x91d495&&!_0x12512e),this[_0x4008c2(0x11f)][_0x4008c2(0x117)](this[_0x4008c2(0x116)]);}[_0x50d18e(0x10c)](){const _0x4b41b4=_0x50d18e;super[_0x4b41b4(0x10c)](),this[_0x4b41b4(0x119)][_0x4b41b4(0x11e)][_0x4b41b4(0x117)](this[_0x4b41b4(0x116)]),this[_0x4b41b4(0xe4)][_0x4b41b4(0x114)](_0x4b41b4(0x102),(_0x26d635,_0x4d0661)=>{const _0x56eaa6=_0x4b41b4;this[_0x56eaa6(0xf0)]||this[_0x56eaa6(0xde)]||_0x26d635[_0x56eaa6(0x11b)]==this[_0x56eaa6(0x119)][_0x56eaa6(0x106)][_0x56eaa6(0xf3)]&&(this[_0x56eaa6(0xe5)](),_0x4d0661());}),this[_0x4b41b4(0x119)][_0x4b41b4(0x106)]['on'](_0x4b41b4(0xe2),()=>{const _0x5aff3b=_0x4b41b4;this[_0x5aff3b(0xde)]=''===this[_0x5aff3b(0x119)][_0x5aff3b(0x106)][_0x5aff3b(0xf3)][_0x5aff3b(0xf8)]?.[_0x5aff3b(0xe6)]();});}[_0x50d18e(0xfe)](){const _0x493f2d=_0x50d18e;super[_0x493f2d(0xfe)](),this[_0x493f2d(0xfa)]&&this[_0x493f2d(0xfa)][_0x493f2d(0xfe)]();}[_0x50d18e(0xe5)](){const _0x332091=_0x50d18e,_0xc01722=this[_0x332091(0x119)][_0x332091(0x106)][_0x332091(0xf3)][_0x332091(0xf8)]?.[_0x332091(0xe6)]();if(!_0xc01722)return this[_0x332091(0x119)][_0x332091(0xf9)]=_0x36593b(this[_0x332091(0x11a)],_0x332091(0xec)),void(this[_0x332091(0x119)][_0x332091(0x106)][_0x332091(0xe0)]=!0x0);this[_0x332091(0x119)][_0x332091(0x106)][_0x332091(0xe0)]=!0x1;const _0x1e2c55=_0x48d995(_0xc01722);this[_0x332091(0x104)](_0x332091(0x115),_0x1e2c55),this[_0x332091(0x119)][_0x332091(0x106)][_0x332091(0xef)]();}[_0x50d18e(0xe9)](_0x353757){const _0x42c4fe=_0x50d18e;this[_0x42c4fe(0x119)][_0x42c4fe(0x106)][_0x42c4fe(0x114)](_0x42c4fe(0xed),_0x353757);}[_0x50d18e(0x107)](){const _0x301e40=_0x50d18e,_0x1b6736=new _0x21f379(this[_0x301e40(0x11a)]);return _0x1b6736[_0x301e40(0x114)]({'icon':_0x41dc0f,'label':_0x36593b(this[_0x301e40(0x11a)],_0x301e40(0xf6)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x301e40(0x111),'isEnabled':!0x1}),_0x1b6736['on'](_0x301e40(0x10b),()=>{const _0x186e1d=_0x301e40;this[_0x186e1d(0xe5)]();}),_0x1b6736;}[_0x50d18e(0xf2)](_0x1d202e){const _0x614ddf=_0x50d18e;this[_0x614ddf(0xf0)]=_0x1d202e;}[_0x50d18e(0xf4)](){const _0x2de5f4=_0x50d18e,_0x56fec8=this[_0x2de5f4(0x11a)],_0x293b00=()=>{const _0x218f32=_0x2de5f4;_0x25448[_0x218f32(0xeb)][_0x218f32(0xf1)](()=>{const _0x8b5d48=_0x218f32;if(_0x5ea755(this[_0x8b5d48(0xf3)])){const _0xd560c=new _0x3c22af(this[_0x8b5d48(0x119)][_0x8b5d48(0x106)][_0x8b5d48(0xf3)]),_0x147c05=new _0x3c22af(this[_0x8b5d48(0x100)][_0x8b5d48(0xf3)]),_0x513460=_0xd560c[_0x8b5d48(0xff)],_0x44840f=_0x8b5d48(0x112)===_0x56fec8[_0x8b5d48(0x101)]?_0x8b5d48(0xe1):_0x8b5d48(0x110);_0xd560c[_0x8b5d48(0x103)]();const _0x398a83=_0x513460-_0xd560c[_0x8b5d48(0xff)]+0x1;this[_0x8b5d48(0x100)][_0x8b5d48(0xf3)][_0x8b5d48(0xea)][_0x44840f]=_0x8b5d48(0x105)+(_0x513460-_0x147c05[_0x8b5d48(0xff)]-_0x398a83)+_0x8b5d48(0x11c);}});};this[_0x2de5f4(0x119)][_0x2de5f4(0x106)]['on'](_0x2de5f4(0xe2),_0x293b00),this['on'](_0x2de5f4(0x10c),()=>{const _0x5674b5=_0x2de5f4;_0x293b00(),this[_0x5674b5(0xfa)]=new _0x271811(this[_0x5674b5(0x119)][_0x5674b5(0x106)][_0x5674b5(0xf3)],()=>{_0x293b00();});});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x2a70(_0x26c2a4,_0x4fee23){const _0x1ba476=_0x1ba4();return _0x2a70=function(_0x2a70ef,_0x3eb90d){_0x2a70ef=_0x2a70ef-0x140;let _0x4580a1=_0x1ba476[_0x2a70ef];return _0x4580a1;},_0x2a70(_0x26c2a4,_0x4fee23);}const _0x13ee4d=_0x2a70;(function(_0x2a69c1,_0x38f47d){const _0x2028b3=_0x2a70,_0x494d3d=_0x2a69c1();while(!![]){try{const _0x2da17b=-parseInt(_0x2028b3(0x14b))/0x1*(parseInt(_0x2028b3(0x141))/0x2)+parseInt(_0x2028b3(0x146))/0x3*(-parseInt(_0x2028b3(0x143))/0x4)+parseInt(_0x2028b3(0x145))/0x5+parseInt(_0x2028b3(0x149))/0x6+parseInt(_0x2028b3(0x140))/0x7+-parseInt(_0x2028b3(0x14a))/0x8+-parseInt(_0x2028b3(0x14c))/0x9*(-parseInt(_0x2028b3(0x142))/0xa);if(_0x2da17b===_0x38f47d)break;else _0x494d3d['push'](_0x494d3d['shift']());}catch(_0x34ce44){_0x494d3d['push'](_0x494d3d['shift']());}}}(_0x1ba4,0x97c62));import{ListView as _0x436b58}from'ckeditor5/src/ui.js';function _0x1ba4(){const _0x59d1d3=['length','items','2792718DbVPMl','7990280KjqXQL','426507hqTTjs','3943233VcpICN','7932001BtFWkM','2ysQzlQ','10idIpLK','56564bOwTfy','filter','6202460hYnbua','261ROrLFs'];_0x1ba4=function(){return _0x59d1d3;};return _0x1ba4();}export class AIChatPromptSuggestionsListView extends _0x436b58{[_0x13ee4d(0x144)](){const _0x2a6a0c=_0x13ee4d;let _0x231d40=0x0;for(const _0x9f1f97 of this[_0x2a6a0c(0x148)])_0x231d40+=_0x9f1f97[_0x2a6a0c(0x148)][_0x2a6a0c(0x147)];return{'resultsCount':_0x231d40,'totalItemsCount':_0x231d40};}}
23
+ function _0x2f56(){const _0x5d3a2d=['30sSAaNn','4MjvifX','filter','length','684jxABNA','1812769pmmMyU','15250420sZbQeq','7337735FMBGYD','items','135yjBflG','4289okunmT','46EREXUY','565722mSHaGd','712503PIDPuq','803752GziMDT'];_0x2f56=function(){return _0x5d3a2d;};return _0x2f56();}const _0x3bac8d=_0x228f;(function(_0x4341dc,_0x1fb8b6){const _0x5ec0c7=_0x228f,_0x17235e=_0x4341dc();while(!![]){try{const _0x43dd04=parseInt(_0x5ec0c7(0xf3))/0x1*(parseInt(_0x5ec0c7(0xf4))/0x2)+parseInt(_0x5ec0c7(0xf5))/0x3+-parseInt(_0x5ec0c7(0xea))/0x4*(parseInt(_0x5ec0c7(0xf0))/0x5)+-parseInt(_0x5ec0c7(0xe9))/0x6*(-parseInt(_0x5ec0c7(0xee))/0x7)+parseInt(_0x5ec0c7(0xf7))/0x8*(-parseInt(_0x5ec0c7(0xf2))/0x9)+-parseInt(_0x5ec0c7(0xef))/0xa+parseInt(_0x5ec0c7(0xf6))/0xb*(parseInt(_0x5ec0c7(0xed))/0xc);if(_0x43dd04===_0x1fb8b6)break;else _0x17235e['push'](_0x17235e['shift']());}catch(_0x430627){_0x17235e['push'](_0x17235e['shift']());}}}(_0x2f56,0xbd15d));function _0x228f(_0x280a0c,_0x36dfb0){const _0x2f56aa=_0x2f56();return _0x228f=function(_0x228fc5,_0x2856ee){_0x228fc5=_0x228fc5-0xe9;let _0x257681=_0x2f56aa[_0x228fc5];return _0x257681;},_0x228f(_0x280a0c,_0x36dfb0);}import{ListView as _0x386f6f}from'ckeditor5/src/ui.js';export class AIChatPromptSuggestionsListView extends _0x386f6f{[_0x3bac8d(0xeb)](){const _0x46e32f=_0x3bac8d;let _0x37d239=0x0;for(const _0x31ba8c of this[_0x46e32f(0xf1)])_0x37d239+=_0x31ba8c[_0x46e32f(0xf1)][_0x46e32f(0xec)];return{'resultsCount':_0x37d239,'totalItemsCount':_0x37d239};}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x199f(_0x398b1a,_0xa2f6db){const _0x2a27d5=_0x2a27();return _0x199f=function(_0x199f04,_0x8b2d33){_0x199f04=_0x199f04-0x1ac;let _0x1467a1=_0x2a27d5[_0x199f04];return _0x1467a1;},_0x199f(_0x398b1a,_0xa2f6db);}const _0x23c31a=_0x199f;(function(_0x180537,_0x4f573c){const _0x36f8da=_0x199f,_0x555e0c=_0x180537();while(!![]){try{const _0x34be1d=-parseInt(_0x36f8da(0x1be))/0x1+-parseInt(_0x36f8da(0x1c4))/0x2+parseInt(_0x36f8da(0x1b7))/0x3*(parseInt(_0x36f8da(0x1c2))/0x4)+parseInt(_0x36f8da(0x1c6))/0x5*(-parseInt(_0x36f8da(0x1cd))/0x6)+-parseInt(_0x36f8da(0x1b6))/0x7+parseInt(_0x36f8da(0x1c9))/0x8*(-parseInt(_0x36f8da(0x1b9))/0x9)+parseInt(_0x36f8da(0x1c1))/0xa*(parseInt(_0x36f8da(0x1bf))/0xb);if(_0x34be1d===_0x4f573c)break;else _0x555e0c['push'](_0x555e0c['shift']());}catch(_0x3420ec){_0x555e0c['push'](_0x555e0c['shift']());}}}(_0x2a27,0x41248));import{ListView as _0x502b8a}from'ckeditor5/src/ui.js';import{AIChatResourceListItemView as _0x4a760a}from'./aichatresourcelistitemview.js';const sc=_0x23c31a(0x1c7);export class AIChatContextResourcesListView extends _0x502b8a{[_0x23c31a(0x1c5)];constructor(_0x343a06,_0x235277){const _0xb6a067=_0x23c31a;super(_0x343a06),this[_0xb6a067(0x1c5)]=_0x235277,this[_0xb6a067(0x1bc)]({'attributes':{'class':[sc]}});}[_0x23c31a(0x1ba)](_0xafcb28,_0x2a9927){const _0xbd5dab=_0x23c31a;this[_0xbd5dab(0x1cc)][_0xbd5dab(0x1b3)]();let _0x2db05c=_0xafcb28;if(this[_0xbd5dab(0x1c5)][_0xbd5dab(0x1af)]&&_0x2a9927&&''!==_0x2a9927[_0xbd5dab(0x1cb)]()){const _0x19426e=new RegExp(_0x2a9927[_0xbd5dab(0x1c3)](/[.*+?^${}()|[\]\\]/g,_0xbd5dab(0x1bd)),'gi');_0x2db05c=_0xafcb28[_0xbd5dab(0x1b4)](_0x3d0613=>_0x19426e[_0xbd5dab(0x1ca)](_0x3d0613[_0xbd5dab(0x1ac)]));}for(const _0x30fc95 of _0x2db05c){const _0x422351=new _0x4a760a(this[_0xbd5dab(0x1c0)],_0x30fc95);_0x422351['on'](_0xbd5dab(0x1ae),()=>{const _0x4cdb7a=_0xbd5dab;this[_0x4cdb7a(0x1b1)](this[_0x4cdb7a(0x1c5)],_0x30fc95);}),this[_0xbd5dab(0x1cc)][_0xbd5dab(0x1c8)](_0x422351);}this[_0xbd5dab(0x1c5)][_0xbd5dab(0x1af)]&&this[_0xbd5dab(0x1b0)](_0x2a9927);}[_0x23c31a(0x1b0)](_0x1aa443){const _0x3dc19f=_0x23c31a;this[_0x3dc19f(0x1c5)][_0x3dc19f(0x1af)]&&this[_0x3dc19f(0x1cc)][_0x3dc19f(0x1ad)](_0x1d46f2=>{const _0x2fbbd4=_0x3dc19f;_0x1d46f2[_0x2fbbd4(0x1b0)](_0x1aa443);});}[_0x23c31a(0x1b2)](_0x4d625d,_0x328433){const _0x120e9e=_0x23c31a;for(const _0x273577 of this[_0x120e9e(0x1cc)]){const _0x428f07=_0x273577;_0x428f07[_0x120e9e(0x1b8)]['id']===_0x4d625d&&_0x428f07[_0x120e9e(0x1b2)](_0x328433);}}[_0x23c31a(0x1b1)](_0x18ea36,_0x503c26){const _0x3ccc4f=_0x23c31a;this[_0x3ccc4f(0x1bb)](_0x3ccc4f(0x1b5),{'source':_0x18ea36,'resource':_0x503c26});}}function _0x2a27(){const _0xefd394=['useDefaultFiltering','highlightText','_handleResourceSelection','updateResourceState','clear','filter','addResourceToContext','355110yBzWEk','9096ZZNBnV','resource','1969713PwNKxm','setResources','fire','extendTemplate','\x5c$&','386598zKtxgs','4169gdJbwq','locale','32370IVumgm','376yXXKTQ','replace','732078liyrWv','_source','371305iFMXua','ck-ai-chat-resources__list','add','8PlbelN','test','trim','items','18rSCfLt','label','forEach','execute'];_0x2a27=function(){return _0xefd394;};return _0x2a27();}
23
+ function _0x2fcd(_0x5d3fbd,_0x2b0355){const _0x551a36=_0x551a();return _0x2fcd=function(_0x2fcd60,_0x5ab842){_0x2fcd60=_0x2fcd60-0x108;let _0x215e72=_0x551a36[_0x2fcd60];return _0x215e72;},_0x2fcd(_0x5d3fbd,_0x2b0355);}const _0x1a7c20=_0x2fcd;(function(_0x556d52,_0x2294dd){const _0x3431ad=_0x2fcd,_0x27d4c7=_0x556d52();while(!![]){try{const _0x40920f=-parseInt(_0x3431ad(0x118))/0x1+-parseInt(_0x3431ad(0x119))/0x2*(parseInt(_0x3431ad(0x124))/0x3)+-parseInt(_0x3431ad(0x112))/0x4*(-parseInt(_0x3431ad(0x123))/0x5)+parseInt(_0x3431ad(0x125))/0x6+parseInt(_0x3431ad(0x122))/0x7*(-parseInt(_0x3431ad(0x11f))/0x8)+-parseInt(_0x3431ad(0x111))/0x9+parseInt(_0x3431ad(0x127))/0xa*(parseInt(_0x3431ad(0x126))/0xb);if(_0x40920f===_0x2294dd)break;else _0x27d4c7['push'](_0x27d4c7['shift']());}catch(_0x4e3f49){_0x27d4c7['push'](_0x27d4c7['shift']());}}}(_0x551a,0x8d533));import{ListView as _0x34c29d}from'ckeditor5/src/ui.js';import{AIChatResourceListItemView as _0x4e6d2b}from'./aichatresourcelistitemview.js';const sc=_0x1a7c20(0x10f);export class AIChatContextResourcesListView extends _0x34c29d{[_0x1a7c20(0x128)];constructor(_0x301842,_0x251cb4){const _0x45e9c0=_0x1a7c20;super(_0x301842),this[_0x45e9c0(0x128)]=_0x251cb4,this[_0x45e9c0(0x11a)]({'attributes':{'class':[sc]}});}[_0x1a7c20(0x110)](_0x4b9e52,_0x580cea){const _0x16abef=_0x1a7c20;this[_0x16abef(0x120)][_0x16abef(0x108)]();let _0x588c13=_0x4b9e52;if(this[_0x16abef(0x128)][_0x16abef(0x109)]&&_0x580cea&&''!==_0x580cea[_0x16abef(0x10c)]()){const _0x270823=new RegExp(_0x580cea[_0x16abef(0x129)](/[.*+?^${}()|[\]\\]/g,_0x16abef(0x10e)),'gi');_0x588c13=_0x4b9e52[_0x16abef(0x116)](_0x1ce787=>_0x270823[_0x16abef(0x11e)](_0x1ce787[_0x16abef(0x10b)]));}for(const _0x41b38e of _0x588c13){const _0x5ee3cf=new _0x4e6d2b(this[_0x16abef(0x11d)],_0x41b38e);_0x5ee3cf['on'](_0x16abef(0x121),()=>{const _0x586336=_0x16abef;this[_0x586336(0x113)](this[_0x586336(0x128)],_0x41b38e);}),this[_0x16abef(0x120)][_0x16abef(0x10a)](_0x5ee3cf);}this[_0x16abef(0x128)][_0x16abef(0x109)]&&this[_0x16abef(0x114)](_0x580cea);}[_0x1a7c20(0x114)](_0x508094){const _0x2a6976=_0x1a7c20;this[_0x2a6976(0x128)][_0x2a6976(0x109)]&&this[_0x2a6976(0x120)][_0x2a6976(0x117)](_0x2b3209=>{const _0x39c18a=_0x2a6976;_0x2b3209[_0x39c18a(0x114)](_0x508094);});}[_0x1a7c20(0x11b)](_0x523210,_0xa23590){const _0x8327b6=_0x1a7c20;for(const _0x1cb170 of this[_0x8327b6(0x120)]){const _0x40fe06=_0x1cb170;_0x40fe06[_0x8327b6(0x10d)]['id']===_0x523210&&_0x40fe06[_0x8327b6(0x11b)](_0xa23590);}}[_0x1a7c20(0x113)](_0x1d8ca0,_0x3e37dd){const _0xf6105=_0x1a7c20;this[_0xf6105(0x115)](_0xf6105(0x11c),{'source':_0x1d8ca0,'resource':_0x3e37dd});}}function _0x551a(){const _0x53d723=['4WUiHwl','extendTemplate','updateResourceState','addResourceToContext','locale','test','8xVoFNo','items','execute','2072371WnUvKL','3520885GJsNYX','1448127RNFTet','2299284eFkzOQ','3912458JYMjbI','50zBJabn','_source','replace','clear','useDefaultFiltering','add','label','trim','resource','\x5c$&','ck-ai-chat-resources__list','setResources','8118063jLwoVE','4qUgLLt','_handleResourceSelection','highlightText','fire','filter','forEach','123436QlcwOb'];_0x551a=function(){return _0x53d723;};return _0x551a();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3552a4=_0x41b9;function _0x41b9(_0x9b893e,_0x41a429){const _0x163004=_0x1630();return _0x41b9=function(_0x41b9ff,_0x1ff78d){_0x41b9ff=_0x41b9ff-0x183;let _0x18fda1=_0x163004[_0x41b9ff];return _0x18fda1;},_0x41b9(_0x9b893e,_0x41a429);}(function(_0x19228f,_0x4aaedf){const _0x5c96e0=_0x41b9,_0x43a279=_0x19228f();while(!![]){try{const _0x61019=-parseInt(_0x5c96e0(0x188))/0x1+-parseInt(_0x5c96e0(0x1a4))/0x2+-parseInt(_0x5c96e0(0x1ab))/0x3+-parseInt(_0x5c96e0(0x18f))/0x4*(-parseInt(_0x5c96e0(0x1a9))/0x5)+-parseInt(_0x5c96e0(0x1a5))/0x6*(parseInt(_0x5c96e0(0x1a6))/0x7)+parseInt(_0x5c96e0(0x186))/0x8+-parseInt(_0x5c96e0(0x189))/0x9*(-parseInt(_0x5c96e0(0x19c))/0xa);if(_0x61019===_0x4aaedf)break;else _0x43a279['push'](_0x43a279['shift']());}catch(_0x4462f4){_0x43a279['push'](_0x43a279['shift']());}}}(_0x1630,0xdceea));import{View as _0x29902e,ViewCollection as _0x4112f8}from'ckeditor5/src/ui.js';import{uid as _0x53778e}from'ckeditor5/src/utils.js';import{AIChatContextResourcesListView as _0x2cff7e}from'./aichatcontextresourceslistview.js';import{AIChatContextResourcesSearchInputView as _0x1afb3d}from'./aichatresourcessearchinputview.js';function _0x1630(){const _0x2d24b4=['_resourcesListView','20svuzZz','length','locale','has','_source','isLoading','search','div','setTemplate','delegate','bindTemplate','add','_searchInputVisibleFrom','210110gwPfXA','updateResourceState','getQuery','setResources','aiChatResources','_createSearchView','extendTemplate','render','2333348lGLPVD','6AVzNfk','1372651iMeZhn','_createSearchSection','fire','36815QrjBim','_searchView','1876137dNuhdY','ck\x20ck-search','_latestLoadResourcesUid','useDefaultFiltering','set','ck-ai-chat-resources','loadResources','children','loadSourceResources','source','searchInputVisibleFrom','addResourceToContext','_createResourcesListView','671448zQmNtw','ck-hidden','1724016EkoQEp','1926rqFAfu','highlightText','_createSkeletonView','_searchSection','_skeletonLoader'];_0x1630=function(){return _0x2d24b4;};return _0x1630();}import{AISkeletonView as _0x198eae,SKELETON_DEFINITIONS as _0x335b03}from'../../../../aicore/ui/aiskeleton.js';export class AIChatContextResourcesView extends _0x29902e{[_0x3552a4(0x1aa)];[_0x3552a4(0x18c)];[_0x3552a4(0x19b)];[_0x3552a4(0x18e)];[_0x3552a4(0x18d)];[_0x3552a4(0x193)];[_0x3552a4(0x1b2)];[_0x3552a4(0x1ad)]=null;constructor(_0x12d3f4,_0x1b6928){const _0x262fba=_0x3552a4;super(_0x12d3f4),this[_0x262fba(0x193)]=_0x1b6928[_0x262fba(0x1b4)],this[_0x262fba(0x19b)]=_0x1b6928[_0x262fba(0x183)]??0x7,this[_0x262fba(0x1af)](_0x262fba(0x194),!0x0),this[_0x262fba(0x1aa)]=this[_0x262fba(0x1a1)](),this[_0x262fba(0x18c)]=this[_0x262fba(0x1a7)](),this[_0x262fba(0x18e)]=this[_0x262fba(0x185)](),this[_0x262fba(0x18d)]=this[_0x262fba(0x18b)](),this[_0x262fba(0x1b2)]=new _0x4112f8([this[_0x262fba(0x18d)],this[_0x262fba(0x18e)]]),this[_0x262fba(0x197)]({'tag':_0x262fba(0x196),'attributes':{'class':_0x262fba(0x1b0)},'children':this[_0x262fba(0x1b2)]});}[_0x3552a4(0x1a1)](){const _0x1955b9=_0x3552a4;return new _0x1afb3d(this[_0x1955b9(0x191)]);}[_0x3552a4(0x1a7)](){const _0x25158b=_0x3552a4,_0x2b0aad=new _0x29902e(this[_0x25158b(0x191)]);return _0x2b0aad[_0x25158b(0x197)]({'tag':_0x25158b(0x196),'attributes':{'class':_0x25158b(0x1ac)},'children':[this[_0x25158b(0x1aa)]]}),this[_0x25158b(0x1aa)]['on'](_0x25158b(0x195),(_0x5624c5,_0x5e2258)=>{const _0x38d3cd=_0x25158b;this[_0x38d3cd(0x1b1)](_0x5e2258),this[_0x38d3cd(0x193)][_0x38d3cd(0x1ae)]&&this[_0x38d3cd(0x18e)][_0x38d3cd(0x18a)](_0x5e2258);}),_0x2b0aad;}[_0x3552a4(0x185)](){const _0x4e44c1=_0x3552a4,_0x22ebc7=new _0x2cff7e(this[_0x4e44c1(0x191)],this[_0x4e44c1(0x193)]);return _0x22ebc7[_0x4e44c1(0x198)](_0x4e44c1(0x184))['to'](this),_0x22ebc7[_0x4e44c1(0x1a2)]({'attributes':{'class':this[_0x4e44c1(0x199)]['if'](_0x4e44c1(0x194),_0x4e44c1(0x187))}}),_0x22ebc7;}[_0x3552a4(0x18b)](){const _0x53b2f7=_0x3552a4,_0x522365=new _0x198eae(this[_0x53b2f7(0x191)],_0x335b03[_0x53b2f7(0x1a0)]);return _0x522365[_0x53b2f7(0x1a2)]({'attributes':{'class':[this[_0x53b2f7(0x199)]['if'](_0x53b2f7(0x194),_0x53b2f7(0x187),_0x3a386f=>!_0x3a386f)]}}),_0x522365;}[_0x3552a4(0x1a3)](){const _0x2de084=_0x3552a4;super[_0x2de084(0x1a3)](),this[_0x2de084(0x1b1)]('');}[_0x3552a4(0x1b1)](_0x227c1c){const _0x2945bc=_0x3552a4,_0x539b55=_0x53778e();this[_0x2945bc(0x1ad)]=_0x539b55,this[_0x2945bc(0x1a8)](_0x2945bc(0x1b3),{'sourceId':this[_0x2945bc(0x193)]['id'],'query':_0x227c1c,'uid':_0x539b55}),this[_0x2945bc(0x194)]=!0x0;}[_0x3552a4(0x19f)](_0x532718,_0x1e0ec4){const _0x26aa23=_0x3552a4;if(_0x1e0ec4&&_0x1e0ec4!==this[_0x26aa23(0x1ad)])return;const _0x520556=this[_0x26aa23(0x193)][_0x26aa23(0x1ae)]?this[_0x26aa23(0x1aa)][_0x26aa23(0x19e)]():'';this[_0x26aa23(0x18e)][_0x26aa23(0x19f)](_0x532718,_0x520556),_0x532718[_0x26aa23(0x190)]>=this[_0x26aa23(0x19b)]&&!this[_0x26aa23(0x1b2)][_0x26aa23(0x192)](this[_0x26aa23(0x18c)])&&this[_0x26aa23(0x1b2)][_0x26aa23(0x19a)](this[_0x26aa23(0x18c)],0x0),requestAnimationFrame(()=>{const _0x41e268=_0x26aa23;this[_0x41e268(0x194)]=!0x1;});}[_0x3552a4(0x19d)](_0x1598c6,_0x27eaa9){const _0x1cc998=_0x3552a4;this[_0x1cc998(0x18e)][_0x1cc998(0x19d)](_0x1598c6,_0x27eaa9);}}
23
+ function _0x19e9(_0x4f3d6c,_0x30e950){const _0x5b5c83=_0x5b5c();return _0x19e9=function(_0x19e9a0,_0x301ab5){_0x19e9a0=_0x19e9a0-0x175;let _0x3f1cee=_0x5b5c83[_0x19e9a0];return _0x3f1cee;},_0x19e9(_0x4f3d6c,_0x30e950);}const _0x37bb11=_0x19e9;(function(_0x30fcc6,_0x131434){const _0x167f4c=_0x19e9,_0x3f2587=_0x30fcc6();while(!![]){try{const _0x57d5bd=parseInt(_0x167f4c(0x19a))/0x1*(parseInt(_0x167f4c(0x17f))/0x2)+-parseInt(_0x167f4c(0x198))/0x3*(parseInt(_0x167f4c(0x183))/0x4)+parseInt(_0x167f4c(0x184))/0x5+parseInt(_0x167f4c(0x1a5))/0x6*(parseInt(_0x167f4c(0x1a0))/0x7)+parseInt(_0x167f4c(0x199))/0x8+-parseInt(_0x167f4c(0x189))/0x9+-parseInt(_0x167f4c(0x179))/0xa;if(_0x57d5bd===_0x131434)break;else _0x3f2587['push'](_0x3f2587['shift']());}catch(_0x10c722){_0x3f2587['push'](_0x3f2587['shift']());}}}(_0x5b5c,0x8938d));import{View as _0x3fe6ef,ViewCollection as _0x23be80}from'ckeditor5/src/ui.js';import{uid as _0x509d2f}from'ckeditor5/src/utils.js';import{AIChatContextResourcesListView as _0x42f3cd}from'./aichatcontextresourceslistview.js';import{AIChatContextResourcesSearchInputView as _0x5e7010}from'./aichatresourcessearchinputview.js';import{AISkeletonView as _0x42ec4f,SKELETON_DEFINITIONS as _0x2093e5}from'../../../../aicore/ui/aiskeleton.js';export class AIChatContextResourcesView extends _0x3fe6ef{[_0x37bb11(0x197)];[_0x37bb11(0x1a4)];[_0x37bb11(0x17e)];[_0x37bb11(0x195)];[_0x37bb11(0x19e)];[_0x37bb11(0x19f)];[_0x37bb11(0x1a2)];[_0x37bb11(0x1a3)]=null;constructor(_0x4b4d43,_0xb06fd1){const _0x3aded5=_0x37bb11;super(_0x4b4d43),this[_0x3aded5(0x19f)]=_0xb06fd1[_0x3aded5(0x17a)],this[_0x3aded5(0x17e)]=_0xb06fd1[_0x3aded5(0x17d)]??0x7,this[_0x3aded5(0x178)](_0x3aded5(0x18d),!0x0),this[_0x3aded5(0x197)]=this[_0x3aded5(0x182)](),this[_0x3aded5(0x1a4)]=this[_0x3aded5(0x181)](),this[_0x3aded5(0x195)]=this[_0x3aded5(0x193)](),this[_0x3aded5(0x19e)]=this[_0x3aded5(0x190)](),this[_0x3aded5(0x1a2)]=new _0x23be80([this[_0x3aded5(0x19e)],this[_0x3aded5(0x195)]]),this[_0x3aded5(0x17b)]({'tag':_0x3aded5(0x175),'attributes':{'class':_0x3aded5(0x1a6)},'children':this[_0x3aded5(0x1a2)]});}[_0x37bb11(0x182)](){const _0x21aabe=_0x37bb11;return new _0x5e7010(this[_0x21aabe(0x191)]);}[_0x37bb11(0x181)](){const _0x50dc41=_0x37bb11,_0x53379a=new _0x3fe6ef(this[_0x50dc41(0x191)]);return _0x53379a[_0x50dc41(0x17b)]({'tag':_0x50dc41(0x175),'attributes':{'class':_0x50dc41(0x18f)},'children':[this[_0x50dc41(0x197)]]}),this[_0x50dc41(0x197)]['on'](_0x50dc41(0x194),(_0x34c795,_0x1db3d5)=>{const _0x4f403d=_0x50dc41;this[_0x4f403d(0x18c)](_0x1db3d5),this[_0x4f403d(0x19f)][_0x4f403d(0x186)]&&this[_0x4f403d(0x195)][_0x4f403d(0x188)](_0x1db3d5);}),_0x53379a;}[_0x37bb11(0x193)](){const _0x1e0a4a=_0x37bb11,_0x1dd83d=new _0x42f3cd(this[_0x1e0a4a(0x191)],this[_0x1e0a4a(0x19f)]);return _0x1dd83d[_0x1e0a4a(0x176)](_0x1e0a4a(0x19c))['to'](this),_0x1dd83d[_0x1e0a4a(0x17c)]({'attributes':{'class':this[_0x1e0a4a(0x1a1)]['if'](_0x1e0a4a(0x18d),_0x1e0a4a(0x192))}}),_0x1dd83d;}[_0x37bb11(0x190)](){const _0x16f051=_0x37bb11,_0x74652b=new _0x42ec4f(this[_0x16f051(0x191)],_0x2093e5[_0x16f051(0x19b)]);return _0x74652b[_0x16f051(0x17c)]({'attributes':{'class':[this[_0x16f051(0x1a1)]['if'](_0x16f051(0x18d),_0x16f051(0x192),_0x476903=>!_0x476903)]}}),_0x74652b;}[_0x37bb11(0x18a)](){const _0x234352=_0x37bb11;super[_0x234352(0x18a)](),this[_0x234352(0x18c)]('');}[_0x37bb11(0x18c)](_0xee7516){const _0x5c4a42=_0x37bb11,_0x1d6c84=_0x509d2f();this[_0x5c4a42(0x1a3)]=_0x1d6c84,this[_0x5c4a42(0x187)](_0x5c4a42(0x18b),{'sourceId':this[_0x5c4a42(0x19f)]['id'],'query':_0xee7516,'uid':_0x1d6c84}),this[_0x5c4a42(0x18d)]=!0x0;}[_0x37bb11(0x18e)](_0x28c203,_0x294091){const _0x297ddd=_0x37bb11;if(_0x294091&&_0x294091!==this[_0x297ddd(0x1a3)])return;const _0x3180c6=this[_0x297ddd(0x19f)][_0x297ddd(0x186)]?this[_0x297ddd(0x197)][_0x297ddd(0x196)]():'';this[_0x297ddd(0x195)][_0x297ddd(0x18e)](_0x28c203,_0x3180c6),_0x28c203[_0x297ddd(0x19d)]>=this[_0x297ddd(0x17e)]&&!this[_0x297ddd(0x1a2)][_0x297ddd(0x177)](this[_0x297ddd(0x1a4)])&&this[_0x297ddd(0x1a2)][_0x297ddd(0x180)](this[_0x297ddd(0x1a4)],0x0),requestAnimationFrame(()=>{const _0x1283a7=_0x297ddd;this[_0x1283a7(0x18d)]=!0x1;});}[_0x37bb11(0x185)](_0x38b3b0,_0x7dc9dc){const _0x5077b5=_0x37bb11;this[_0x5077b5(0x195)][_0x5077b5(0x185)](_0x38b3b0,_0x7dc9dc);}}function _0x5b5c(){const _0x49d9af=['756liKCLV','add','_createSearchSection','_createSearchView','76hrNUps','1983380eNxewQ','updateResourceState','useDefaultFiltering','fire','highlightText','5677821CpydTl','render','loadSourceResources','loadResources','isLoading','setResources','ck\x20ck-search','_createSkeletonView','locale','ck-hidden','_createResourcesListView','search','_resourcesListView','getQuery','_searchView','33192ivTGKD','6087432fnnnXB','370bVAFna','aiChatResources','addResourceToContext','length','_skeletonLoader','_source','14aNSrNp','bindTemplate','children','_latestLoadResourcesUid','_searchSection','2828898Usnuki','ck-ai-chat-resources','div','delegate','has','set','8372850upTnIh','source','setTemplate','extendTemplate','searchInputVisibleFrom','_searchInputVisibleFrom'];_0x5b5c=function(){return _0x49d9af;};return _0x5b5c();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x70f8b=_0x2847;(function(_0x7b666e,_0x164094){const _0x255251=_0x2847,_0x4097c2=_0x7b666e();while(!![]){try{const _0xa30a4b=parseInt(_0x255251(0x78))/0x1+parseInt(_0x255251(0x76))/0x2*(parseInt(_0x255251(0x8d))/0x3)+parseInt(_0x255251(0x75))/0x4+parseInt(_0x255251(0x82))/0x5+-parseInt(_0x255251(0x90))/0x6+-parseInt(_0x255251(0x7f))/0x7+parseInt(_0x255251(0x83))/0x8*(-parseInt(_0x255251(0x80))/0x9);if(_0xa30a4b===_0x164094)break;else _0x4097c2['push'](_0x4097c2['shift']());}catch(_0xc574b2){_0x4097c2['push'](_0x4097c2['shift']());}}}(_0x4940,0xe673e));import{HighlightedTextView as _0x395e1b,IconView as _0x42a534,ListItemView as _0x5c6f27}from'ckeditor5/src/ui.js';import{escapeRegExp as _0x3ead68}from'es-toolkit/compat';import{AIContextItemType as _0x361401}from'../../../../aicore/model/aicontext.js';import{IconFileUpload as _0x3a8ea3,IconCheck as _0x40e5e0,IconDocument as _0x248458,IconDocumentOutline as _0x2549b2,IconLink as _0x160655}from'@ckeditor/ckeditor5-icons';const Br=_0x70f8b(0x7e),Gr=_0x70f8b(0x7d),Hr=_0x70f8b(0x91),Jr=_0x70f8b(0x6d);function _0x4940(){const _0x3e4dba=['ck-hidden','315dXjojm','_createTitleView','updateResourceState','7223598gIDKui','ck-ai-chat-resources__item-title','_setupTemplate','highlightText','extendTemplate','render','_createIconView','div','ck-ai-chat-resources__item__icon','bindTemplate','type','setTemplate','isVisible','set','TEXT','FILE','3632296mItsge','20346GlSPPf','label','1697172jNAdIM','span','resource','URL','_titleView','ck-ai-chat-resources__item--in-context','ck-ai-chat-resources__item','8080128PPmGzO','1821870BdtqiT','DOCUMENT','9277450LDrcrb','88qoygSo','isInContext','content','_iconView','trim','text','getResourceIcon','execute','_updateIcon'];_0x4940=function(){return _0x3e4dba;};return _0x4940();}function _0x2847(_0x393c2a,_0x18fe07){const _0x49403a=_0x4940();return _0x2847=function(_0x28470d,_0x57c73c){_0x28470d=_0x28470d-0x6c;let _0x1b42fd=_0x49403a[_0x28470d];return _0x1b42fd;},_0x2847(_0x393c2a,_0x18fe07);}export class AIChatResourceListItemView extends _0x5c6f27{[_0x70f8b(0x7a)];[_0x70f8b(0x7c)];[_0x70f8b(0x86)];constructor(_0x4ee49c,_0x9756e){const _0x189c71=_0x70f8b;super(_0x4ee49c),this[_0x189c71(0x7a)]=_0x9756e,this[_0x189c71(0x72)](_0x189c71(0x84),!!_0x9756e[_0x189c71(0x84)]),this[_0x189c71(0x7c)]=this[_0x189c71(0x8e)](),this[_0x189c71(0x86)]=this[_0x189c71(0x96)](),this[_0x189c71(0x92)]();}[_0x70f8b(0x95)](){const _0x25d2a6=_0x70f8b;super[_0x25d2a6(0x95)]();}[_0x70f8b(0x89)](_0x3c60a2){const _0x4f2a77=_0x70f8b;if(_0x3c60a2[_0x4f2a77(0x84)])return _0x40e5e0;switch(_0x3c60a2[_0x4f2a77(0x6f)]){case _0x361401[_0x4f2a77(0x81)]:return _0x248458;case _0x361401[_0x4f2a77(0x7b)]:return _0x160655;case _0x361401[_0x4f2a77(0x74)]:case _0x361401[_0x4f2a77(0x73)]:return _0x3a8ea3;default:return _0x2549b2;}}[_0x70f8b(0x93)](_0xd11247){const _0x6e0f72=_0x70f8b;if(!_0xd11247||''===_0xd11247[_0x6e0f72(0x87)]())return void this[_0x6e0f72(0x7c)][_0x6e0f72(0x93)](null);const _0x2bd019=new RegExp(_0x3ead68(_0xd11247),'gi');this[_0x6e0f72(0x7c)][_0x6e0f72(0x93)](_0x2bd019);}[_0x70f8b(0x8f)](_0x456961){const _0x569ab8=_0x70f8b;this[_0x569ab8(0x7a)][_0x569ab8(0x84)]=_0x456961,this[_0x569ab8(0x84)]=_0x456961,this[_0x569ab8(0x8b)]();}[_0x70f8b(0x8e)](){const _0x4d4f70=_0x70f8b,_0x4647e9=new _0x395e1b();return _0x4647e9[_0x4d4f70(0x88)]=this[_0x4d4f70(0x7a)][_0x4d4f70(0x77)],_0x4647e9[_0x4d4f70(0x94)]({'tag':_0x4d4f70(0x79),'attributes':{'class':[Hr]}}),_0x4647e9;}[_0x70f8b(0x96)](){const _0x2f5384=_0x70f8b,_0x6604b4=new _0x42a534();return _0x6604b4[_0x2f5384(0x85)]=this[_0x2f5384(0x89)](this[_0x2f5384(0x7a)]),_0x6604b4;}[_0x70f8b(0x92)](){const _0xd50eff=_0x70f8b,_0x2f229f=this[_0xd50eff(0x6e)];this[_0xd50eff(0x70)]({'tag':_0xd50eff(0x6c),'attributes':{'class':[Br,_0x2f229f['if'](_0xd50eff(0x71),_0xd50eff(0x8c),_0x2ff7ab=>!_0x2ff7ab),_0x2f229f['if'](_0xd50eff(0x84),Gr)]},'children':[{'tag':_0xd50eff(0x6c),'attributes':{'class':[Jr]},'children':[this[_0xd50eff(0x86)]]},this[_0xd50eff(0x7c)]],'on':{'click':_0x2f229f['to'](_0xd50eff(0x8a))}});}[_0x70f8b(0x8b)](){const _0x2c38b3=_0x70f8b;this[_0x2c38b3(0x86)][_0x2c38b3(0x85)]=this[_0x2c38b3(0x89)](this[_0x2c38b3(0x7a)]);}}
23
+ const _0x12be4f=_0x1ff8;(function(_0x48f835,_0xbd9534){const _0x520263=_0x1ff8,_0x400c89=_0x48f835();while(!![]){try{const _0x47cfdc=parseInt(_0x520263(0x1eb))/0x1*(-parseInt(_0x520263(0x211))/0x2)+-parseInt(_0x520263(0x1f6))/0x3+parseInt(_0x520263(0x1fe))/0x4*(-parseInt(_0x520263(0x204))/0x5)+parseInt(_0x520263(0x20e))/0x6+-parseInt(_0x520263(0x20a))/0x7*(parseInt(_0x520263(0x1fd))/0x8)+parseInt(_0x520263(0x1f1))/0x9+parseInt(_0x520263(0x1fa))/0xa;if(_0x47cfdc===_0xbd9534)break;else _0x400c89['push'](_0x400c89['shift']());}catch(_0x8a3115){_0x400c89['push'](_0x400c89['shift']());}}}(_0x5853,0x8986c));function _0x5853(){const _0x110b96=['_titleView','ck-ai-chat-resources__item-title','isVisible','render','TEXT','7518618KSVZDj','execute','type','span','URL','2156208oDeqqB','resource','_setupTemplate','ck-ai-chat-resources__item','29368590zKfPvZ','trim','updateResourceState','8254672sstdyM','4416dQTPcj','extendTemplate','FILE','setTemplate','ck-ai-chat-resources__item--in-context','content','4920HCKTPY','getResourceIcon','div','_createIconView','text','DOCUMENT','7lfJrWi','ck-hidden','set','highlightText','1049592DimEEF','ck-ai-chat-resources__item__icon','isInContext','2yEVdbe','bindTemplate','_updateIcon','label','_iconView','_createTitleView','546979zaAHKY'];_0x5853=function(){return _0x110b96;};return _0x5853();}import{HighlightedTextView as _0xe4471a,IconView as _0x2beeab,ListItemView as _0x75dbf2}from'ckeditor5/src/ui.js';import{escapeRegExp as _0x45cff1}from'es-toolkit/compat';import{AIContextItemType as _0x4d38d3}from'../../../../aicore/model/aicontext.js';function _0x1ff8(_0x325542,_0x1342ef){const _0x58536a=_0x5853();return _0x1ff8=function(_0x1ff827,_0x752c21){_0x1ff827=_0x1ff827-0x1ea;let _0x468e29=_0x58536a[_0x1ff827];return _0x468e29;},_0x1ff8(_0x325542,_0x1342ef);}import{IconFileUpload as _0x5983d5,IconCheck as _0x52e0be,IconDocument as _0x1956c1,IconDocumentOutline as _0x4915d4,IconLink as _0x20688d}from'@ckeditor/ckeditor5-icons';const zr=_0x12be4f(0x1f9),Gr=_0x12be4f(0x202),Hr=_0x12be4f(0x1ed),Jr=_0x12be4f(0x20f);export class AIChatResourceListItemView extends _0x75dbf2{[_0x12be4f(0x1f7)];[_0x12be4f(0x1ec)];[_0x12be4f(0x215)];constructor(_0x5e8b2f,_0x4360c4){const _0x434ca6=_0x12be4f;super(_0x5e8b2f),this[_0x434ca6(0x1f7)]=_0x4360c4,this[_0x434ca6(0x20c)](_0x434ca6(0x210),!!_0x4360c4[_0x434ca6(0x210)]),this[_0x434ca6(0x1ec)]=this[_0x434ca6(0x1ea)](),this[_0x434ca6(0x215)]=this[_0x434ca6(0x207)](),this[_0x434ca6(0x1f8)]();}[_0x12be4f(0x1ef)](){const _0x54c7b6=_0x12be4f;super[_0x54c7b6(0x1ef)]();}[_0x12be4f(0x205)](_0x7d76f4){const _0xe9f8dc=_0x12be4f;if(_0x7d76f4[_0xe9f8dc(0x210)])return _0x52e0be;switch(_0x7d76f4[_0xe9f8dc(0x1f3)]){case _0x4d38d3[_0xe9f8dc(0x209)]:return _0x1956c1;case _0x4d38d3[_0xe9f8dc(0x1f5)]:return _0x20688d;case _0x4d38d3[_0xe9f8dc(0x200)]:case _0x4d38d3[_0xe9f8dc(0x1f0)]:return _0x5983d5;default:return _0x4915d4;}}[_0x12be4f(0x20d)](_0x1ed284){const _0x27cdf8=_0x12be4f;if(!_0x1ed284||''===_0x1ed284[_0x27cdf8(0x1fb)]())return void this[_0x27cdf8(0x1ec)][_0x27cdf8(0x20d)](null);const _0x4b500f=new RegExp(_0x45cff1(_0x1ed284),'gi');this[_0x27cdf8(0x1ec)][_0x27cdf8(0x20d)](_0x4b500f);}[_0x12be4f(0x1fc)](_0x3854e0){const _0x5610d3=_0x12be4f;this[_0x5610d3(0x1f7)][_0x5610d3(0x210)]=_0x3854e0,this[_0x5610d3(0x210)]=_0x3854e0,this[_0x5610d3(0x213)]();}[_0x12be4f(0x1ea)](){const _0x206134=_0x12be4f,_0x504dfe=new _0xe4471a();return _0x504dfe[_0x206134(0x208)]=this[_0x206134(0x1f7)][_0x206134(0x214)],_0x504dfe[_0x206134(0x1ff)]({'tag':_0x206134(0x1f4),'attributes':{'class':[Hr]}}),_0x504dfe;}[_0x12be4f(0x207)](){const _0x3abcc7=_0x12be4f,_0xa77150=new _0x2beeab();return _0xa77150[_0x3abcc7(0x203)]=this[_0x3abcc7(0x205)](this[_0x3abcc7(0x1f7)]),_0xa77150;}[_0x12be4f(0x1f8)](){const _0x528b67=_0x12be4f,_0x4dc9c9=this[_0x528b67(0x212)];this[_0x528b67(0x201)]({'tag':_0x528b67(0x206),'attributes':{'class':[zr,_0x4dc9c9['if'](_0x528b67(0x1ee),_0x528b67(0x20b),_0xceab0b=>!_0xceab0b),_0x4dc9c9['if'](_0x528b67(0x210),Gr)]},'children':[{'tag':_0x528b67(0x206),'attributes':{'class':[Jr]},'children':[this[_0x528b67(0x215)]]},this[_0x528b67(0x1ec)]],'on':{'click':_0x4dc9c9['to'](_0x528b67(0x1f2))}});}[_0x12be4f(0x213)](){const _0x3f998b=_0x12be4f;this[_0x3f998b(0x215)][_0x3f998b(0x203)]=this[_0x3f998b(0x205)](this[_0x3f998b(0x1f7)]);}}