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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (289) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index-editor.css +10 -1
  3. package/dist/index.css +10 -1
  4. package/dist/index.js +4 -4
  5. package/dist/translations/af.js +1 -1
  6. package/dist/translations/af.umd.js +1 -1
  7. package/dist/translations/ar.js +1 -1
  8. package/dist/translations/ar.umd.js +1 -1
  9. package/dist/translations/ast.js +1 -1
  10. package/dist/translations/ast.umd.js +1 -1
  11. package/dist/translations/az.js +1 -1
  12. package/dist/translations/az.umd.js +1 -1
  13. package/dist/translations/be.js +1 -1
  14. package/dist/translations/be.umd.js +1 -1
  15. package/dist/translations/bg.js +1 -1
  16. package/dist/translations/bg.umd.js +1 -1
  17. package/dist/translations/bn.js +1 -1
  18. package/dist/translations/bn.umd.js +1 -1
  19. package/dist/translations/bs.js +1 -1
  20. package/dist/translations/bs.umd.js +1 -1
  21. package/dist/translations/ca.js +1 -1
  22. package/dist/translations/ca.umd.js +1 -1
  23. package/dist/translations/cs.js +1 -1
  24. package/dist/translations/cs.umd.js +1 -1
  25. package/dist/translations/da.js +1 -1
  26. package/dist/translations/da.umd.js +1 -1
  27. package/dist/translations/de-ch.js +1 -1
  28. package/dist/translations/de-ch.umd.js +1 -1
  29. package/dist/translations/de.js +1 -1
  30. package/dist/translations/de.umd.js +1 -1
  31. package/dist/translations/el.js +1 -1
  32. package/dist/translations/el.umd.js +1 -1
  33. package/dist/translations/en-au.js +1 -1
  34. package/dist/translations/en-au.umd.js +1 -1
  35. package/dist/translations/en-gb.js +1 -1
  36. package/dist/translations/en-gb.umd.js +1 -1
  37. package/dist/translations/en.js +1 -1
  38. package/dist/translations/en.umd.js +1 -1
  39. package/dist/translations/eo.js +1 -1
  40. package/dist/translations/eo.umd.js +1 -1
  41. package/dist/translations/es-co.js +1 -1
  42. package/dist/translations/es-co.umd.js +1 -1
  43. package/dist/translations/es.js +1 -1
  44. package/dist/translations/es.umd.js +1 -1
  45. package/dist/translations/et.js +1 -1
  46. package/dist/translations/et.umd.js +1 -1
  47. package/dist/translations/eu.js +1 -1
  48. package/dist/translations/eu.umd.js +1 -1
  49. package/dist/translations/fa.js +1 -1
  50. package/dist/translations/fa.umd.js +1 -1
  51. package/dist/translations/fi.js +1 -1
  52. package/dist/translations/fi.umd.js +1 -1
  53. package/dist/translations/fr.js +1 -1
  54. package/dist/translations/fr.umd.js +1 -1
  55. package/dist/translations/gl.js +1 -1
  56. package/dist/translations/gl.umd.js +1 -1
  57. package/dist/translations/gu.js +1 -1
  58. package/dist/translations/gu.umd.js +1 -1
  59. package/dist/translations/he.js +1 -1
  60. package/dist/translations/he.umd.js +1 -1
  61. package/dist/translations/hi.js +1 -1
  62. package/dist/translations/hi.umd.js +1 -1
  63. package/dist/translations/hr.js +1 -1
  64. package/dist/translations/hr.umd.js +1 -1
  65. package/dist/translations/hu.js +1 -1
  66. package/dist/translations/hu.umd.js +1 -1
  67. package/dist/translations/hy.js +1 -1
  68. package/dist/translations/hy.umd.js +1 -1
  69. package/dist/translations/id.js +1 -1
  70. package/dist/translations/id.umd.js +1 -1
  71. package/dist/translations/it.js +1 -1
  72. package/dist/translations/it.umd.js +1 -1
  73. package/dist/translations/ja.js +1 -1
  74. package/dist/translations/ja.umd.js +1 -1
  75. package/dist/translations/jv.js +1 -1
  76. package/dist/translations/jv.umd.js +1 -1
  77. package/dist/translations/kk.js +1 -1
  78. package/dist/translations/kk.umd.js +1 -1
  79. package/dist/translations/km.js +1 -1
  80. package/dist/translations/km.umd.js +1 -1
  81. package/dist/translations/kn.js +1 -1
  82. package/dist/translations/kn.umd.js +1 -1
  83. package/dist/translations/ko.js +1 -1
  84. package/dist/translations/ko.umd.js +1 -1
  85. package/dist/translations/ku.js +1 -1
  86. package/dist/translations/ku.umd.js +1 -1
  87. package/dist/translations/lt.js +1 -1
  88. package/dist/translations/lt.umd.js +1 -1
  89. package/dist/translations/lv.js +1 -1
  90. package/dist/translations/lv.umd.js +1 -1
  91. package/dist/translations/ms.js +1 -1
  92. package/dist/translations/ms.umd.js +1 -1
  93. package/dist/translations/nb.js +1 -1
  94. package/dist/translations/nb.umd.js +1 -1
  95. package/dist/translations/ne.js +1 -1
  96. package/dist/translations/ne.umd.js +1 -1
  97. package/dist/translations/nl.js +1 -1
  98. package/dist/translations/nl.umd.js +1 -1
  99. package/dist/translations/no.js +1 -1
  100. package/dist/translations/no.umd.js +1 -1
  101. package/dist/translations/oc.js +1 -1
  102. package/dist/translations/oc.umd.js +1 -1
  103. package/dist/translations/pl.js +1 -1
  104. package/dist/translations/pl.umd.js +1 -1
  105. package/dist/translations/pt-br.js +1 -1
  106. package/dist/translations/pt-br.umd.js +1 -1
  107. package/dist/translations/pt.js +1 -1
  108. package/dist/translations/pt.umd.js +1 -1
  109. package/dist/translations/ro.js +1 -1
  110. package/dist/translations/ro.umd.js +1 -1
  111. package/dist/translations/ru.js +1 -1
  112. package/dist/translations/ru.umd.js +1 -1
  113. package/dist/translations/si.js +1 -1
  114. package/dist/translations/si.umd.js +1 -1
  115. package/dist/translations/sk.js +1 -1
  116. package/dist/translations/sk.umd.js +1 -1
  117. package/dist/translations/sl.js +1 -1
  118. package/dist/translations/sl.umd.js +1 -1
  119. package/dist/translations/sq.js +1 -1
  120. package/dist/translations/sq.umd.js +1 -1
  121. package/dist/translations/sr-latn.js +1 -1
  122. package/dist/translations/sr-latn.umd.js +1 -1
  123. package/dist/translations/sr.js +1 -1
  124. package/dist/translations/sr.umd.js +1 -1
  125. package/dist/translations/sv.js +1 -1
  126. package/dist/translations/sv.umd.js +1 -1
  127. package/dist/translations/th.js +1 -1
  128. package/dist/translations/th.umd.js +1 -1
  129. package/dist/translations/ti.js +1 -1
  130. package/dist/translations/ti.umd.js +1 -1
  131. package/dist/translations/tk.js +1 -1
  132. package/dist/translations/tk.umd.js +1 -1
  133. package/dist/translations/tr.js +1 -1
  134. package/dist/translations/tr.umd.js +1 -1
  135. package/dist/translations/tt.js +1 -1
  136. package/dist/translations/tt.umd.js +1 -1
  137. package/dist/translations/ug.js +1 -1
  138. package/dist/translations/ug.umd.js +1 -1
  139. package/dist/translations/uk.js +1 -1
  140. package/dist/translations/uk.umd.js +1 -1
  141. package/dist/translations/ur.js +1 -1
  142. package/dist/translations/ur.umd.js +1 -1
  143. package/dist/translations/uz.js +1 -1
  144. package/dist/translations/uz.umd.js +1 -1
  145. package/dist/translations/vi.js +1 -1
  146. package/dist/translations/vi.umd.js +1 -1
  147. package/dist/translations/zh-cn.js +1 -1
  148. package/dist/translations/zh-cn.umd.js +1 -1
  149. package/dist/translations/zh.js +1 -1
  150. package/dist/translations/zh.umd.js +1 -1
  151. package/package.json +15 -15
  152. package/src/aiactions/aiactions.js +1 -1
  153. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  154. package/src/aiactions/model/aiactionsreply.js +1 -1
  155. package/src/aiassistant/adapters/aiadapter.js +1 -1
  156. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  157. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  158. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  159. package/src/aiassistant/aiassistant.js +1 -1
  160. package/src/aiassistant/aiassistantediting.js +1 -1
  161. package/src/aiassistant/aiassistantui.js +1 -1
  162. package/src/aiassistant/legacyerrors.js +1 -1
  163. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  164. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  165. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  166. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  167. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  168. package/src/aiassistant/ui/form/aiformview.js +1 -1
  169. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  170. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  171. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  172. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  173. package/src/aiassistant/utils/common-translations.js +1 -1
  174. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  175. package/src/aiballoon/aiballoon.js +1 -1
  176. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  177. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  178. package/src/aiballoon/ui/aiballoonview.js +1 -1
  179. package/src/aichat/aichat.js +1 -1
  180. package/src/aichat/aichatcontroller.js +1 -1
  181. package/src/aichat/aichatui.js +1 -1
  182. package/src/aichat/model/aichatcontext.js +1 -1
  183. package/src/aichat/model/aichatconversation.js +1 -1
  184. package/src/aichat/model/aichatinteraction.js +1 -1
  185. package/src/aichat/model/aichatmodels.js +1 -1
  186. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  187. package/src/aichat/ui/aichatfeedview.js +1 -1
  188. package/src/aichat/ui/aichatheaderview.js +1 -1
  189. package/src/aichat/ui/aichatview.js +1 -1
  190. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  191. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  192. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  193. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  194. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  195. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  196. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  197. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  198. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  199. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  200. package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
  201. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  202. package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
  203. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  204. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  205. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  206. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  207. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  208. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  209. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  210. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  211. package/src/aichat/utils/eventnames.js +1 -1
  212. package/src/aichat/utils/promisequeue.js +1 -1
  213. package/src/aichat/utils/scrollmanager.js +1 -1
  214. package/src/aichathistory/aichathistory.js +1 -1
  215. package/src/aichathistory/aichathistorycontroller.js +1 -1
  216. package/src/aichathistory/aichathistoryui.js +1 -1
  217. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  218. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  219. package/src/aichathistory/ui/aichathistorylistitemview.js +1 -1
  220. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  221. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  222. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  223. package/src/aicore/aiconnector.js +1 -1
  224. package/src/aicore/aiediting.js +1 -1
  225. package/src/aicore/model/aicapabilities.js +1 -1
  226. package/src/aicore/model/aicontext.js +1 -1
  227. package/src/aicore/model/aiinteraction.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/aiquickactions/aiquickactions.js +1 -1
  250. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  251. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  252. package/src/aiquickactions/aiquickactionsui.js +1 -1
  253. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  254. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  255. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  256. package/src/aiquickactions/utils/common-translations.js +1 -1
  257. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  258. package/src/aireviewmode/aireviewmode.js +1 -1
  259. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  260. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  261. package/src/aireviewmode/aireviewmodeui.js +1 -1
  262. package/src/aireviewmode/model/aireviewcheck.js +1 -1
  263. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  264. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  265. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  266. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  267. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  268. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  269. package/src/aireviewmode/model/aireviewmodels.js +1 -1
  270. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  271. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  272. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  273. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  274. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  275. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  276. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  277. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  278. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  279. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  280. package/src/aireviewmode/ui/form/aireviewmodeformamanager.js +1 -1
  281. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  282. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  283. package/src/aitabs/aitabs.js +1 -1
  284. package/src/aitabs/aitabsmainview.js +1 -1
  285. package/src/aitabs/tabs/aitabsview.js +1 -1
  286. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  287. package/src/aitabs/tabs/tabpanelview.js +1 -1
  288. package/src/index.js +1 -1
  289. package/theme/aireviewmode/aireviewmode-check-list.css +10 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x261683=_0x5ee8;(function(_0x524506,_0x1e4026){const _0x346fed=_0x5ee8,_0x100061=_0x524506();while(!![]){try{const _0x2bd5df=-parseInt(_0x346fed(0x14c))/0x1+parseInt(_0x346fed(0x117))/0x2+parseInt(_0x346fed(0x139))/0x3+-parseInt(_0x346fed(0x13b))/0x4*(-parseInt(_0x346fed(0x13e))/0x5)+parseInt(_0x346fed(0x137))/0x6+parseInt(_0x346fed(0x148))/0x7+-parseInt(_0x346fed(0x110))/0x8*(parseInt(_0x346fed(0x12d))/0x9);if(_0x2bd5df===_0x1e4026)break;else _0x100061['push'](_0x100061['shift']());}catch(_0x2d1a90){_0x100061['push'](_0x100061['shift']());}}}(_0x3ad9,0x9f4c8));import{ButtonView as _0x2983d6,IconView as _0x461926}from'ckeditor5/src/ui.js';import{IconClose as _0x5643c8,IconDocument as _0x5d0307,IconFileUpload as _0x32ae90,IconLink as _0x2ff5b5,IconSelection as _0x58535f}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0xcc101d}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x245f2b}from'../../../aicore/ui/aispinner.js';function _0x3ad9(){const _0x27947c=['setTemplate','7276350lshwPs','selection','1177710HDmrrc','animationend','1137124YXTjyb','div','disableAnimationOnEnter','5lwGmwn','ck-ai-chat-context-chip_document','_createRemoveButton','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','isLoading','fire','removeContextItemChip','_createLoaderIcon','_initializeProperties','extendTemplate','2617727duHzSl','webkitAnimationEnd','ck-hidden','document','408201hUXtCh','_setupTemplate','ck-ai-chat-context-chip__label','itemType','bindTemplate','4313416ZVwXbt','ck-ai-chat-context-chip_new-chip','ck-ai-chat-context-chip_wide','remove','isVisible','readonly','_isAnimationOnEnterEnabled','829366lnTfxj','removeEventListener','execute','length','_createTemplateAttributes','add','_setupRemoveButtonEvent','ck-ai-chat-context-chip','lastIndexOf','_createLabelElement','set','bind','uiId','ck-ai-chat-context-controls__chip-tooltip','type','addEventListener','ck-ai-chat-context-chip__type-icon','_createTemplateChildren','small','locale','classList','span','27zqzrpL','slice','render','tooltip','content','label','_handleAnimationEndOnce','element','_createIconView'];_0x3ad9=function(){return _0x27947c;};return _0x3ad9();}const kn={'file':_0x32ae90,'document':_0x5d0307,'web-resource':_0x2ff5b5,'text':_0x32ae90,'selection':_0x58535f},xn=_0x261683(0x11e),bn=_0x261683(0x112),wn=_0x261683(0x13f),Tn=_0x261683(0x14e),En=_0x261683(0x127),An=_0x261683(0x124),Cn='n';function _0x5ee8(_0x4d36a6,_0x5a30de){const _0x3ad9f9=_0x3ad9();return _0x5ee8=function(_0x5ee8bb,_0x59bda1){_0x5ee8bb=_0x5ee8bb-0x110;let _0x158a58=_0x3ad9f9[_0x5ee8bb];return _0x158a58;},_0x5ee8(_0x4d36a6,_0x5a30de);}export class AIChatContextItemButtonView extends _0x2983d6{constructor(_0x267a35,_0xc109eb,_0x23222d,_0x2318ad,_0x5731cd=!0x1){const _0x2c8141=_0x261683;super(_0x267a35),this[_0x2c8141(0x116)]=_0x2318ad,this[_0x2c8141(0x146)](_0xc109eb,_0x23222d,_0x5731cd),this[_0x2c8141(0x14d)]();}[_0x261683(0x12f)](){const _0x49d95f=_0x261683;super[_0x49d95f(0x12f)](),this[_0x49d95f(0x116)]&&this[_0x49d95f(0x134)]&&(this[_0x49d95f(0x134)][_0x49d95f(0x12b)][_0x49d95f(0x11c)](_0x49d95f(0x111)),this[_0x49d95f(0x133)](this[_0x49d95f(0x134)],()=>{const _0x3937e1=_0x49d95f;this[_0x3937e1(0x134)]&&this[_0x3937e1(0x134)][_0x3937e1(0x12b)][_0x3937e1(0x113)](_0x3937e1(0x111));}));}[_0x261683(0x13d)](){const _0x280142=_0x261683;this[_0x280142(0x116)]=!0x1,this[_0x280142(0x134)]&&this[_0x280142(0x134)][_0x280142(0x12b)][_0x280142(0x113)](_0x280142(0x111));}[_0x261683(0x146)](_0x5efb9a,_0x79ce17,_0x272b7e){const _0x1342f4=_0x261683;this[_0x1342f4(0x121)](_0x1342f4(0x132),_0x5efb9a[_0x1342f4(0x132)]),this[_0x1342f4(0x121)](_0x1342f4(0x130),!0x0),this[_0x1342f4(0x121)](_0x1342f4(0x14f),_0x5efb9a[_0x1342f4(0x125)]),this[_0x1342f4(0x121)]('id',_0x5efb9a[_0x1342f4(0x123)]),this[_0x1342f4(0x121)](_0x1342f4(0x115),_0x79ce17),this[_0x1342f4(0x121)](_0x1342f4(0x142),_0x272b7e);}[_0x261683(0x14d)](){const _0x5b48a8=_0x261683,_0x47019a=this[_0x5b48a8(0x135)](),_0x28d207=this[_0x5b48a8(0x140)](),_0x3deee7=this[_0x5b48a8(0x150)];this[_0x5b48a8(0x136)]({'tag':_0x5b48a8(0x13c),'attributes':this[_0x5b48a8(0x11b)](_0x3deee7),'children':this[_0x5b48a8(0x128)](_0x47019a,_0x28d207,_0x3deee7)});}[_0x261683(0x11b)](_0x1a4881){const _0x7d376e=_0x261683;return{'class':[xn,_0x1a4881['if'](_0x7d376e(0x14f),wn,_0x480491=>_0x7d376e(0x14b)==_0x480491),_0x1a4881['if'](_0x7d376e(0x14f),bn,_0x2bced4=>_0x7d376e(0x138)==_0x2bced4)],'data-cke-tooltip-text':_0x1a4881['to'](_0x7d376e(0x132),In),'data-cke-tooltip-position':Cn,'data-cke-tooltip-class':An};}[_0x261683(0x128)](_0x574a6e,_0x3662f3,_0x30e884){const _0x3893ed=_0x261683,_0x4a2313=this[_0x3893ed(0x120)](_0x30e884),_0x2d8b0f=this[_0x3893ed(0x145)]();return this[_0x3893ed(0x115)]?[_0x574a6e,_0x4a2313]:[_0x574a6e,_0x2d8b0f,_0x4a2313,_0x3662f3];}[_0x261683(0x120)](_0x2b25c9){const _0x4370a5=_0x261683;return{'tag':_0x4370a5(0x12c),'attributes':{'class':Tn},'children':[{'text':_0x2b25c9['to'](_0x4370a5(0x132))}]};}[_0x261683(0x140)](){const _0xa63156=_0x261683,_0x1d754a=new _0x2983d6(this[_0xa63156(0x12a)]);return _0x1d754a[_0xa63156(0x121)]({'label':_0xcc101d(this[_0xa63156(0x12a)],_0xa63156(0x141)),'icon':_0x5643c8}),this[_0xa63156(0x11d)](_0x1d754a),_0x1d754a;}[_0x261683(0x11d)](_0x3485d6){const _0x494e9d=_0x261683;_0x3485d6['on'](_0x494e9d(0x119),()=>{const _0x66ff80=_0x494e9d;this[_0x66ff80(0x143)](_0x66ff80(0x144),this['id']);});}[_0x261683(0x135)](){const _0x3f58cd=_0x261683,_0x5b0d4c=this[_0x3f58cd(0x150)],_0x51a542=new _0x461926();return _0x51a542[_0x3f58cd(0x131)]=kn[this[_0x3f58cd(0x14f)]],_0x51a542[_0x3f58cd(0x147)]({'attributes':{'class':[En,_0x5b0d4c['if'](_0x3f58cd(0x142),_0x3f58cd(0x14a),_0x52318a=>_0x52318a)]}}),_0x51a542;}[_0x261683(0x133)](_0x27142e,_0x1dc36d){const _0x4523b5=_0x261683;if(!_0x27142e)return;const _0xcdfd86=()=>{const _0x39c8f7=_0x5ee8;_0x1dc36d(),_0x27142e[_0x39c8f7(0x118)](_0x39c8f7(0x13a),_0xcdfd86),_0x27142e[_0x39c8f7(0x118)](_0x39c8f7(0x149),_0xcdfd86);};_0x27142e[_0x4523b5(0x126)](_0x4523b5(0x13a),_0xcdfd86),_0x27142e[_0x4523b5(0x126)](_0x4523b5(0x149),_0xcdfd86);}[_0x261683(0x145)](){const _0x5ac27e=_0x261683,_0x2fc1c4=new _0x245f2b(_0x5ac27e(0x129));return _0x2fc1c4[_0x5ac27e(0x122)](_0x5ac27e(0x114))['to'](this,_0x5ac27e(0x142),_0x4b8746=>_0x4b8746),_0x2fc1c4;}}function In(_0x47035b){const _0x496484=_0x261683;if(!_0x47035b)return _0x47035b;if(_0x47035b[_0x496484(0x11a)]<=0x78)return _0x47035b;const _0x305950=_0x47035b[_0x496484(0x12e)](0x0,0x78),_0x27cba2=_0x305950[_0x496484(0x11f)]('\x20');return(_0x27cba2>0x0?_0x305950[_0x496484(0x12e)](0x0,_0x27cba2):_0x305950)+'…';}
23
+ const _0x48cfec=_0x1a6b;(function(_0x7426fa,_0x50a83a){const _0x3ac473=_0x1a6b,_0x5b3446=_0x7426fa();while(!![]){try{const _0x59df14=parseInt(_0x3ac473(0x17e))/0x1*(parseInt(_0x3ac473(0x183))/0x2)+-parseInt(_0x3ac473(0x159))/0x3+parseInt(_0x3ac473(0x173))/0x4+-parseInt(_0x3ac473(0x155))/0x5*(-parseInt(_0x3ac473(0x15a))/0x6)+parseInt(_0x3ac473(0x176))/0x7+parseInt(_0x3ac473(0x17b))/0x8*(parseInt(_0x3ac473(0x17c))/0x9)+-parseInt(_0x3ac473(0x160))/0xa;if(_0x59df14===_0x50a83a)break;else _0x5b3446['push'](_0x5b3446['shift']());}catch(_0x308017){_0x5b3446['push'](_0x5b3446['shift']());}}}(_0xfd18,0xea9f9));import{ButtonView as _0x1739b4,IconView as _0x3587c1}from'ckeditor5/src/ui.js';function _0xfd18(){const _0x13c2de=['4025720rHrQIE','label','_createTemplateChildren','6407289gCpKcA','_createIconView','render','ck-ai-chat-context-chip_wide','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','9496LvkHXO','12060ZTRUcE','_createRemoveButton','1PVgRfZ','addEventListener','type','set','small','3508030noyJIw','ck-ai-chat-context-chip_document','span','webkitAnimationEnd','length','lastIndexOf','content','classList','itemType','setTemplate','slice','ck-ai-chat-context-chip__type-icon','_createLoaderIcon','isVisible','removeContextItemChip','animationend','tooltip','_isAnimationOnEnterEnabled','ck-hidden','ck-ai-chat-context-chip','35TpOugs','readonly','locale','add','1481529mvMuLf','477234crpPfX','selection','fire','isLoading','bind','element','43682650AxyyMo','_initializeProperties','_setupRemoveButtonEvent','_setupTemplate','ck-ai-chat-context-chip_new-chip','uiId','_handleAnimationEndOnce','div','ck-ai-chat-context-controls__chip-tooltip','_createLabelElement','ck-ai-chat-context-chip__label','remove','removeEventListener','extendTemplate','bindTemplate','document','_createTemplateAttributes','disableAnimationOnEnter','execute'];_0xfd18=function(){return _0x13c2de;};return _0xfd18();}function _0x1a6b(_0x3f2dd8,_0x144211){const _0xfd18b9=_0xfd18();return _0x1a6b=function(_0x1a6b74,_0x32af52){_0x1a6b74=_0x1a6b74-0x150;let _0x2acffa=_0xfd18b9[_0x1a6b74];return _0x2acffa;},_0x1a6b(_0x3f2dd8,_0x144211);}import{IconClose as _0x596fe6,IconDocument as _0x2f7d88,IconFileUpload as _0x4a59b0,IconLink as _0x533b4b,IconSelection as _0x8f1b5a}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x39d8db}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x27aadd}from'../../../aicore/ui/aispinner.js';const En={'file':_0x4a59b0,'document':_0x2f7d88,'web-resource':_0x533b4b,'text':_0x4a59b0,'selection':_0x8f1b5a},An=_0x48cfec(0x154),Cn=_0x48cfec(0x179),In=_0x48cfec(0x184),On=_0x48cfec(0x16a),gn=_0x48cfec(0x18e),vn=_0x48cfec(0x168),yn='n';export class AIChatContextItemButtonView extends _0x1739b4{constructor(_0x5197d1,_0x12b831,_0x5c4562,_0x36447f,_0x4ea2c6=!0x1){const _0x227347=_0x48cfec;super(_0x5197d1),this[_0x227347(0x152)]=_0x36447f,this[_0x227347(0x161)](_0x12b831,_0x5c4562,_0x4ea2c6),this[_0x227347(0x163)]();}[_0x48cfec(0x178)](){const _0x1e277f=_0x48cfec;super[_0x1e277f(0x178)](),this[_0x1e277f(0x152)]&&this[_0x1e277f(0x15f)]&&(this[_0x1e277f(0x15f)][_0x1e277f(0x18a)][_0x1e277f(0x158)](_0x1e277f(0x164)),this[_0x1e277f(0x166)](this[_0x1e277f(0x15f)],()=>{const _0x1770e0=_0x1e277f;this[_0x1770e0(0x15f)]&&this[_0x1770e0(0x15f)][_0x1770e0(0x18a)][_0x1770e0(0x16b)](_0x1770e0(0x164));}));}[_0x48cfec(0x171)](){const _0x329afb=_0x48cfec;this[_0x329afb(0x152)]=!0x1,this[_0x329afb(0x15f)]&&this[_0x329afb(0x15f)][_0x329afb(0x18a)][_0x329afb(0x16b)](_0x329afb(0x164));}[_0x48cfec(0x161)](_0x37dc26,_0x163658,_0x37151f){const _0x506956=_0x48cfec;this[_0x506956(0x181)](_0x506956(0x174),_0x37dc26[_0x506956(0x174)]),this[_0x506956(0x181)](_0x506956(0x151),!0x0),this[_0x506956(0x181)](_0x506956(0x18b),_0x37dc26[_0x506956(0x180)]),this[_0x506956(0x181)]('id',_0x37dc26[_0x506956(0x165)]),this[_0x506956(0x181)](_0x506956(0x156),_0x163658),this[_0x506956(0x181)](_0x506956(0x15d),_0x37151f);}[_0x48cfec(0x163)](){const _0x2d0140=_0x48cfec,_0x77e6b4=this[_0x2d0140(0x177)](),_0xdd45cc=this[_0x2d0140(0x17d)](),_0x1b6aae=this[_0x2d0140(0x16e)];this[_0x2d0140(0x18c)]({'tag':_0x2d0140(0x167),'attributes':this[_0x2d0140(0x170)](_0x1b6aae),'children':this[_0x2d0140(0x175)](_0x77e6b4,_0xdd45cc,_0x1b6aae)});}[_0x48cfec(0x170)](_0x2b1d18){const _0xc6a0d1=_0x48cfec;return{'class':[An,_0x2b1d18['if'](_0xc6a0d1(0x18b),In,_0x5e05d8=>_0xc6a0d1(0x16f)==_0x5e05d8),_0x2b1d18['if'](_0xc6a0d1(0x18b),Cn,_0x4ac94b=>_0xc6a0d1(0x15b)==_0x4ac94b)],'data-cke-tooltip-text':_0x2b1d18['to'](_0xc6a0d1(0x174),Ln),'data-cke-tooltip-position':yn,'data-cke-tooltip-class':vn};}[_0x48cfec(0x175)](_0x4287bc,_0x3b0d0e,_0x18b2ba){const _0x5f5719=_0x48cfec,_0x347ed1=this[_0x5f5719(0x169)](_0x18b2ba),_0x72a465=this[_0x5f5719(0x18f)]();return this[_0x5f5719(0x156)]?[_0x4287bc,_0x347ed1]:[_0x4287bc,_0x72a465,_0x347ed1,_0x3b0d0e];}[_0x48cfec(0x169)](_0x952964){const _0x10e1c0=_0x48cfec;return{'tag':_0x10e1c0(0x185),'attributes':{'class':On},'children':[{'text':_0x952964['to'](_0x10e1c0(0x174))}]};}[_0x48cfec(0x17d)](){const _0x5a6476=_0x48cfec,_0x51aaac=new _0x1739b4(this[_0x5a6476(0x157)]);return _0x51aaac[_0x5a6476(0x181)]({'label':_0x39d8db(this[_0x5a6476(0x157)],_0x5a6476(0x17a)),'icon':_0x596fe6}),this[_0x5a6476(0x162)](_0x51aaac),_0x51aaac;}[_0x48cfec(0x162)](_0x264f9d){const _0x2e8edd=_0x48cfec;_0x264f9d['on'](_0x2e8edd(0x172),()=>{const _0x2804c4=_0x2e8edd;this[_0x2804c4(0x15c)](_0x2804c4(0x191),this['id']);});}[_0x48cfec(0x177)](){const _0x1d1426=_0x48cfec,_0x296254=this[_0x1d1426(0x16e)],_0x47cf7d=new _0x3587c1();return _0x47cf7d[_0x1d1426(0x189)]=En[this[_0x1d1426(0x18b)]],_0x47cf7d[_0x1d1426(0x16d)]({'attributes':{'class':[gn,_0x296254['if'](_0x1d1426(0x15d),_0x1d1426(0x153),_0x74057f=>_0x74057f)]}}),_0x47cf7d;}[_0x48cfec(0x166)](_0x3c8ef0,_0x3066e3){const _0x1bc3e9=_0x48cfec;if(!_0x3c8ef0)return;const _0x7cbba0=()=>{const _0x5386f0=_0x1a6b;_0x3066e3(),_0x3c8ef0[_0x5386f0(0x16c)](_0x5386f0(0x150),_0x7cbba0),_0x3c8ef0[_0x5386f0(0x16c)](_0x5386f0(0x186),_0x7cbba0);};_0x3c8ef0[_0x1bc3e9(0x17f)](_0x1bc3e9(0x150),_0x7cbba0),_0x3c8ef0[_0x1bc3e9(0x17f)](_0x1bc3e9(0x186),_0x7cbba0);}[_0x48cfec(0x18f)](){const _0x32fd45=_0x48cfec,_0x30e847=new _0x27aadd(_0x32fd45(0x182));return _0x30e847[_0x32fd45(0x15e)](_0x32fd45(0x190))['to'](this,_0x32fd45(0x15d),_0x9710a5=>_0x9710a5),_0x30e847;}}function Ln(_0x5af48a){const _0xadc45d=_0x48cfec;if(!_0x5af48a)return _0x5af48a;if(_0x5af48a[_0xadc45d(0x187)]<=0x78)return _0x5af48a;const _0x432837=_0x5af48a[_0xadc45d(0x18d)](0x0,0x78),_0x1c8a93=_0x432837[_0xadc45d(0x188)]('\x20');return(_0x1c8a93>0x0?_0x432837[_0xadc45d(0x18d)](0x0,_0x1c8a93):_0x432837)+'…';}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2ab8a=_0x3aca;(function(_0x4b8cc6,_0x1908b2){const _0x14da71=_0x3aca,_0x930438=_0x4b8cc6();while(!![]){try{const _0x8e04bd=-parseInt(_0x14da71(0xc4))/0x1+parseInt(_0x14da71(0xff))/0x2*(parseInt(_0x14da71(0xf8))/0x3)+parseInt(_0x14da71(0xe7))/0x4*(-parseInt(_0x14da71(0xde))/0x5)+parseInt(_0x14da71(0xf1))/0x6*(-parseInt(_0x14da71(0x10b))/0x7)+parseInt(_0x14da71(0xe9))/0x8*(-parseInt(_0x14da71(0xc2))/0x9)+-parseInt(_0x14da71(0xe1))/0xa*(-parseInt(_0x14da71(0xe4))/0xb)+parseInt(_0x14da71(0xf4))/0xc;if(_0x8e04bd===_0x1908b2)break;else _0x930438['push'](_0x930438['shift']());}catch(_0x42c0b4){_0x930438['push'](_0x930438['shift']());}}}(_0x5b24,0x56847));import{FocusTracker as _0x5667c0,KeystrokeHandler as _0x4251d9}from'ckeditor5/src/utils.js';import{ButtonView as _0x33f9f7,FocusCycler as _0x29a261,LabeledFieldView as _0x53b9ca,View as _0x4c392a,FormHeaderView as _0x2c5b4d,createLabeledInputText as _0x547b90,submitHandler as _0x210f00}from'ckeditor5/src/ui.js';import{IconCheck as _0x3d9671,IconPreviousArrow as _0x37a4ba}from'@ckeditor/ckeditor5-icons';function _0x5b24(){const _0x27e610=['focusCycler','backButton','_isValidUrl','confirmButton','urlInputField','focusTracker','esc','children','fieldView','keystrokes','createCollection','element','render','_createUrlInputField','AI_CHAT_CONTEXT_URL_PLACEHOLDER','listenTo','isEnabled','_createConfirmButton','set','ck-ai-chat-context-controls__url-input-section','_createBackButton','value','_updateConfirmButtonState','22180lfDBvV','fire','trim','180dRIZDe','submit','ck-ai-chat-context-controls__url-form','57365xjubDR','submitUrl','setError','572OsKxtw','AI_CHAT_CONTEXT_URL_LABEL','488LAeHrA','AI_CHAT_CONTEXT_URL_ADD_URL','_setupEventHandlers','ck-button-icon','div','locale','_setupTemplate','stop','14484BgYLhL','destroy','getValue','23852448QcLalF','shift+tab','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','303594gehtKb','form','_setupKeystrokes','errorText','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','input','_focusables','2cYslBA','focus','clear','cancel','tab','execute','setTemplate','clearError','AI_CHAT_CONTEXT_URL_INVALID_ERROR','ck-button-icon\x20ck-button-back','refreshBalloon','forEach','357ucDOSJ','_handleSubmit','76761STUjVH','ck-labeled-field-view_empty','550666RWsvbo','add','length'];_0x5b24=function(){return _0x27e610;};return _0x5b24();}function _0x3aca(_0x5e8a4a,_0x911e05){const _0x5b2472=_0x5b24();return _0x3aca=function(_0x3aca9f,_0x5ada8d){_0x3aca9f=_0x3aca9f-0xc2;let _0x331aec=_0x5b2472[_0x3aca9f];return _0x331aec;},_0x3aca(_0x5e8a4a,_0x911e05);}import{getTranslation as _0x185da1}from'../../../aicore/utils/common-translations.js';const eh=_0x2ab8a(0xe3),hh=_0x2ab8a(0xda);export class AIChatContextPanelUrlInputView extends _0x4c392a{[_0x2ab8a(0xcc)];[_0x2ab8a(0xd0)];[_0x2ab8a(0xfe)];[_0x2ab8a(0xc7)];[_0x2ab8a(0xcb)];[_0x2ab8a(0xc8)];[_0x2ab8a(0xca)];constructor(_0x2df7bb){const _0xe8da0f=_0x2ab8a;super(_0x2df7bb),this[_0xe8da0f(0xcc)]=new _0x5667c0(),this[_0xe8da0f(0xd0)]=new _0x4251d9(),this[_0xe8da0f(0xc8)]=this[_0xe8da0f(0xdb)](),this[_0xe8da0f(0xcb)]=this[_0xe8da0f(0xd4)](),this[_0xe8da0f(0xca)]=this[_0xe8da0f(0xd8)](),this[_0xe8da0f(0xfe)]=this[_0xe8da0f(0xd1)]([this[_0xe8da0f(0xc8)],this[_0xe8da0f(0xcb)],this[_0xe8da0f(0xca)]]),this[_0xe8da0f(0xc7)]=new _0x29a261({'focusables':this[_0xe8da0f(0xfe)],'focusTracker':this[_0xe8da0f(0xcc)],'keystrokeHandler':this[_0xe8da0f(0xd0)],'actions':{'focusPrevious':_0xe8da0f(0xf5),'focusNext':_0xe8da0f(0x103)}}),this[_0xe8da0f(0xef)](),this[_0xe8da0f(0xeb)](),this[_0xe8da0f(0xfa)]();}[_0x2ab8a(0xd3)](){const _0x5c3c85=_0x2ab8a;super[_0x5c3c85(0xd3)](),this[_0x5c3c85(0xfe)][_0x5c3c85(0x10a)](_0x101446=>{const _0x4a0f3c=_0x5c3c85;this[_0x4a0f3c(0xcc)][_0x4a0f3c(0xc5)](_0x101446[_0x4a0f3c(0xd2)]),this[_0x4a0f3c(0xd0)][_0x4a0f3c(0xd6)](_0x101446[_0x4a0f3c(0xd2)]);}),_0x210f00({'view':this}),this[_0x5c3c85(0x100)]();}[_0x2ab8a(0xf2)](){const _0x3c4379=_0x2ab8a;super[_0x3c4379(0xf2)](),this[_0x3c4379(0xcc)][_0x3c4379(0xf2)](),this[_0x3c4379(0xd0)][_0x3c4379(0xf2)]();}[_0x2ab8a(0x100)](){const _0x58965a=_0x2ab8a;this[_0x58965a(0xcb)][_0x58965a(0x100)]();}[_0x2ab8a(0xf3)](){const _0x121687=_0x2ab8a;return this[_0x121687(0xcb)][_0x121687(0xcf)][_0x121687(0xd2)]?.[_0x121687(0xdc)]?.[_0x121687(0xe0)]()||'';}[_0x2ab8a(0x101)](){const _0x55ff88=_0x2ab8a;this[_0x55ff88(0xcb)][_0x55ff88(0xcf)][_0x55ff88(0xd2)][_0x55ff88(0xdc)]='',this[_0x55ff88(0xcb)][_0x55ff88(0xfb)]=null,this[_0x55ff88(0xca)][_0x55ff88(0xd7)]=!0x1;}[_0x2ab8a(0xe6)](_0x4a1b96){const _0x5ae07c=_0x2ab8a;this[_0x5ae07c(0xcb)][_0x5ae07c(0xfb)]=_0x4a1b96,this[_0x5ae07c(0xdd)](),this[_0x5ae07c(0xdf)](_0x5ae07c(0x109));}[_0x2ab8a(0x106)](){const _0x18d8d8=_0x2ab8a;this[_0x18d8d8(0xcb)][_0x18d8d8(0xfb)]=null,this[_0x18d8d8(0xdd)]();}[_0x2ab8a(0xdb)](){const _0x286902=_0x2ab8a,_0x4a2097=new _0x33f9f7(this[_0x286902(0xee)]);return _0x4a2097[_0x286902(0xd9)]({'icon':_0x37a4ba,'tooltip':_0x185da1(this[_0x286902(0xee)],_0x286902(0xf6)),'tooltipPosition':'n','class':_0x286902(0x108)}),_0x4a2097;}[_0x2ab8a(0xd4)](){const _0x2eb282=_0x2ab8a,_0x3e78ac=new _0x53b9ca(this[_0x2eb282(0xee)],_0x547b90);return _0x3e78ac[_0x2eb282(0xd9)]({'label':_0x185da1(this[_0x2eb282(0xee)],_0x2eb282(0xe8)),'class':_0x2eb282(0xc3)}),_0x3e78ac[_0x2eb282(0xcf)][_0x2eb282(0xd9)]({'placeholder':_0x185da1(this[_0x2eb282(0xee)],_0x2eb282(0xd5))}),_0x3e78ac;}[_0x2ab8a(0xd8)](){const _0xf63cd1=_0x2ab8a,_0x24160b=new _0x33f9f7(this[_0xf63cd1(0xee)]);return _0x24160b[_0xf63cd1(0xd9)]({'icon':_0x3d9671,'tooltip':_0x185da1(this[_0xf63cd1(0xee)],_0xf63cd1(0xea)),'tooltipPosition':'n','class':_0xf63cd1(0xec),'type':_0xf63cd1(0xe2),'isEnabled':!0x1}),_0x24160b;}[_0x2ab8a(0xef)](){const _0x34f69f=_0x2ab8a,_0x279a05=new _0x2c5b4d(this[_0x34f69f(0xee)],{'label':_0x185da1(this[_0x34f69f(0xee)],_0x34f69f(0xea)),'class':_0x34f69f(0xfc)});_0x279a05[_0x34f69f(0xce)][_0x34f69f(0xc5)](this[_0x34f69f(0xc8)],0x0),this[_0x34f69f(0x105)]({'tag':_0x34f69f(0xf9),'attributes':{'class':eh,'tabindex':'-1'},'children':[_0x279a05,{'tag':_0x34f69f(0xed),'attributes':{'class':hh},'children':[this[_0x34f69f(0xcb)],this[_0x34f69f(0xca)]]}]});}[_0x2ab8a(0xeb)](){const _0x2caee7=_0x2ab8a;this[_0x2caee7(0xc8)]['on'](_0x2caee7(0x104),()=>{const _0x4030ea=_0x2caee7;this[_0x4030ea(0x101)](),this[_0x4030ea(0xdf)](_0x4030ea(0x102));}),this[_0x2caee7(0xcb)][_0x2caee7(0xcf)]['on'](_0x2caee7(0xfd),()=>{const _0x16d0a3=_0x2caee7;this[_0x16d0a3(0x106)](),this[_0x16d0a3(0xdd)](),this[_0x16d0a3(0xdf)](_0x16d0a3(0x109));}),this['on'](_0x2caee7(0xe2),_0x1799c8=>{const _0x346123=_0x2caee7;_0x1799c8[_0x346123(0xf0)](),this[_0x346123(0x10c)]();});}[_0x2ab8a(0xfa)](){const _0x4bcaec=_0x2ab8a;this[_0x4bcaec(0xd0)][_0x4bcaec(0xd9)](_0x4bcaec(0xcd),(_0x40d200,_0x51c3c5)=>{const _0x43f6df=_0x4bcaec;this[_0x43f6df(0x101)](),this[_0x43f6df(0xdf)](_0x43f6df(0x102)),_0x51c3c5();});}[_0x2ab8a(0x10c)](){const _0x42dcf6=_0x2ab8a,_0xd0941c=this[_0x42dcf6(0xf3)]()[_0x42dcf6(0xe0)]();_0xd0941c?this[_0x42dcf6(0xc9)](_0xd0941c)?(this[_0x42dcf6(0x106)](),this[_0x42dcf6(0xdf)](_0x42dcf6(0xe5),_0xd0941c)):this[_0x42dcf6(0xe6)](_0x185da1(this[_0x42dcf6(0xee)],_0x42dcf6(0x107))):this[_0x42dcf6(0xe6)](_0x185da1(this[_0x42dcf6(0xee)],_0x42dcf6(0xf7)));}[_0x2ab8a(0xdd)](){const _0x437a2e=_0x2ab8a,_0x361fd5=this[_0x437a2e(0xf3)]()[_0x437a2e(0xe0)](),_0x1bba4b=!!this[_0x437a2e(0xcb)][_0x437a2e(0xfb)];this[_0x437a2e(0xca)][_0x437a2e(0xd7)]=_0x361fd5[_0x437a2e(0xc6)]>0x0&&!_0x1bba4b;}[_0x2ab8a(0xc9)](_0x1000f7){try{return!!new URL(_0x1000f7);}catch{return!0x1;}}}
23
+ const _0x16ee71=_0x59cf;(function(_0x326a7f,_0x1cb456){const _0xdeb1=_0x59cf,_0x4a64d2=_0x326a7f();while(!![]){try{const _0x3dc9e4=-parseInt(_0xdeb1(0xa7))/0x1*(parseInt(_0xdeb1(0xac))/0x2)+parseInt(_0xdeb1(0x94))/0x3*(parseInt(_0xdeb1(0xaf))/0x4)+-parseInt(_0xdeb1(0x9c))/0x5*(parseInt(_0xdeb1(0xad))/0x6)+-parseInt(_0xdeb1(0xa5))/0x7*(-parseInt(_0xdeb1(0x90))/0x8)+parseInt(_0xdeb1(0xa1))/0x9*(-parseInt(_0xdeb1(0x93))/0xa)+parseInt(_0xdeb1(0xb6))/0xb+parseInt(_0xdeb1(0x92))/0xc*(-parseInt(_0xdeb1(0x8b))/0xd);if(_0x3dc9e4===_0x1cb456)break;else _0x4a64d2['push'](_0x4a64d2['shift']());}catch(_0x1d34ae){_0x4a64d2['push'](_0x4a64d2['shift']());}}}(_0x7239,0x1c244));import{FocusTracker as _0x572969,KeystrokeHandler as _0x87e96f}from'ckeditor5/src/utils.js';import{ButtonView as _0x1bb77d,FocusCycler as _0x61a953,LabeledFieldView as _0x3c157d,View as _0x442224,FormHeaderView as _0x1221ac,createLabeledInputText as _0x125936,submitHandler as _0x33b6c2}from'ckeditor5/src/ui.js';import{IconCheck as _0x12cc97,IconPreviousArrow as _0x210eea}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x4406fc}from'../../../aicore/utils/common-translations.js';function _0x7239(){const _0x4170bd=['clearError','forEach','_isValidUrl','1495659BcTEHa','esc','submit','fieldView','AI_CHAT_CONTEXT_URL_INVALID_ERROR','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','ck-button-icon','AI_CHAT_CONTEXT_URL_PLACEHOLDER','element','ck-ai-chat-context-controls__url-input-section','submitUrl','ck-labeled-field-view_empty','setTemplate','fire','form','ck-button-icon\x20ck-button-back','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','_handleSubmit','shift+tab','length','trim','input','urlInputField','focus','_focusables','_setupEventHandlers','execute','children','keystrokes','locale','_createBackButton','getValue','backButton','104OMofYL','clear','_updateConfirmButtonState','add','setError','4232ZnOJtv','_createUrlInputField','87936snhBpg','561190XaiUgY','195EMwshp','AI_CHAT_CONTEXT_URL_LABEL','_setupTemplate','refreshBalloon','ck-ai-chat-context-controls__url-form','isEnabled','render','AI_CHAT_CONTEXT_URL_ADD_URL','5qUEriQ','focusCycler','_createConfirmButton','errorText','div','9QqCqro','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','focusTracker','createCollection','308FoCvEO','stop','3TFabuf','_setupKeystrokes','value','listenTo','confirmButton','56338pqvXGF','256302oIZmcK','set','12184YipWTl','tab','destroy','cancel'];_0x7239=function(){return _0x4170bd;};return _0x7239();}function _0x59cf(_0xbcdb90,_0x2971ea){const _0x72397b=_0x7239();return _0x59cf=function(_0x59cfa0,_0x40957d){_0x59cfa0=_0x59cfa0-0x7b;let _0x27edf4=_0x72397b[_0x59cfa0];return _0x27edf4;},_0x59cf(_0xbcdb90,_0x2971ea);}const eh=_0x16ee71(0x98),hh=_0x16ee71(0xbf);export class AIChatContextPanelUrlInputView extends _0x442224{[_0x16ee71(0xa3)];[_0x16ee71(0x86)];[_0x16ee71(0x82)];[_0x16ee71(0x9d)];[_0x16ee71(0x80)];[_0x16ee71(0x8a)];[_0x16ee71(0xab)];constructor(_0xa46d35){const _0x135560=_0x16ee71;super(_0xa46d35),this[_0x135560(0xa3)]=new _0x572969(),this[_0x135560(0x86)]=new _0x87e96f(),this[_0x135560(0x8a)]=this[_0x135560(0x88)](),this[_0x135560(0x80)]=this[_0x135560(0x91)](),this[_0x135560(0xab)]=this[_0x135560(0x9e)](),this[_0x135560(0x82)]=this[_0x135560(0xa4)]([this[_0x135560(0x8a)],this[_0x135560(0x80)],this[_0x135560(0xab)]]),this[_0x135560(0x9d)]=new _0x61a953({'focusables':this[_0x135560(0x82)],'focusTracker':this[_0x135560(0xa3)],'keystrokeHandler':this[_0x135560(0x86)],'actions':{'focusPrevious':_0x135560(0x7c),'focusNext':_0x135560(0xb0)}}),this[_0x135560(0x96)](),this[_0x135560(0x83)](),this[_0x135560(0xa8)]();}[_0x16ee71(0x9a)](){const _0x3391aa=_0x16ee71;super[_0x3391aa(0x9a)](),this[_0x3391aa(0x82)][_0x3391aa(0xb4)](_0x15c89e=>{const _0x1da264=_0x3391aa;this[_0x1da264(0xa3)][_0x1da264(0x8e)](_0x15c89e[_0x1da264(0xbe)]),this[_0x1da264(0x86)][_0x1da264(0xaa)](_0x15c89e[_0x1da264(0xbe)]);}),_0x33b6c2({'view':this}),this[_0x3391aa(0x81)]();}[_0x16ee71(0xb1)](){const _0x1d11d3=_0x16ee71;super[_0x1d11d3(0xb1)](),this[_0x1d11d3(0xa3)][_0x1d11d3(0xb1)](),this[_0x1d11d3(0x86)][_0x1d11d3(0xb1)]();}[_0x16ee71(0x81)](){const _0x5243ca=_0x16ee71;this[_0x5243ca(0x80)][_0x5243ca(0x81)]();}[_0x16ee71(0x89)](){const _0x7bac86=_0x16ee71;return this[_0x7bac86(0x80)][_0x7bac86(0xb9)][_0x7bac86(0xbe)]?.[_0x7bac86(0xa9)]?.[_0x7bac86(0x7e)]()||'';}[_0x16ee71(0x8c)](){const _0x25113e=_0x16ee71;this[_0x25113e(0x80)][_0x25113e(0xb9)][_0x25113e(0xbe)][_0x25113e(0xa9)]='',this[_0x25113e(0x80)][_0x25113e(0x9f)]=null,this[_0x25113e(0xab)][_0x25113e(0x99)]=!0x1;}[_0x16ee71(0x8f)](_0x43af58){const _0x5a643a=_0x16ee71;this[_0x5a643a(0x80)][_0x5a643a(0x9f)]=_0x43af58,this[_0x5a643a(0x8d)](),this[_0x5a643a(0xc3)](_0x5a643a(0x97));}[_0x16ee71(0xb3)](){const _0x30cda0=_0x16ee71;this[_0x30cda0(0x80)][_0x30cda0(0x9f)]=null,this[_0x30cda0(0x8d)]();}[_0x16ee71(0x88)](){const _0x4a5e8d=_0x16ee71,_0x5a8038=new _0x1bb77d(this[_0x4a5e8d(0x87)]);return _0x5a8038[_0x4a5e8d(0xae)]({'icon':_0x210eea,'tooltip':_0x4406fc(this[_0x4a5e8d(0x87)],_0x4a5e8d(0xbb)),'tooltipPosition':'n','class':_0x4a5e8d(0xc5)}),_0x5a8038;}[_0x16ee71(0x91)](){const _0x2bdf79=_0x16ee71,_0x3e7a68=new _0x3c157d(this[_0x2bdf79(0x87)],_0x125936);return _0x3e7a68[_0x2bdf79(0xae)]({'label':_0x4406fc(this[_0x2bdf79(0x87)],_0x2bdf79(0x95)),'class':_0x2bdf79(0xc1)}),_0x3e7a68[_0x2bdf79(0xb9)][_0x2bdf79(0xae)]({'placeholder':_0x4406fc(this[_0x2bdf79(0x87)],_0x2bdf79(0xbd))}),_0x3e7a68;}[_0x16ee71(0x9e)](){const _0x7356fd=_0x16ee71,_0x5e5d23=new _0x1bb77d(this[_0x7356fd(0x87)]);return _0x5e5d23[_0x7356fd(0xae)]({'icon':_0x12cc97,'tooltip':_0x4406fc(this[_0x7356fd(0x87)],_0x7356fd(0x9b)),'tooltipPosition':'n','class':_0x7356fd(0xbc),'type':_0x7356fd(0xb8),'isEnabled':!0x1}),_0x5e5d23;}[_0x16ee71(0x96)](){const _0x5a240a=_0x16ee71,_0x58b76b=new _0x1221ac(this[_0x5a240a(0x87)],{'label':_0x4406fc(this[_0x5a240a(0x87)],_0x5a240a(0x9b)),'class':_0x5a240a(0xa2)});_0x58b76b[_0x5a240a(0x85)][_0x5a240a(0x8e)](this[_0x5a240a(0x8a)],0x0),this[_0x5a240a(0xc2)]({'tag':_0x5a240a(0xc4),'attributes':{'class':eh,'tabindex':'-1'},'children':[_0x58b76b,{'tag':_0x5a240a(0xa0),'attributes':{'class':hh},'children':[this[_0x5a240a(0x80)],this[_0x5a240a(0xab)]]}]});}[_0x16ee71(0x83)](){const _0x14f297=_0x16ee71;this[_0x14f297(0x8a)]['on'](_0x14f297(0x84),()=>{const _0x209f7f=_0x14f297;this[_0x209f7f(0x8c)](),this[_0x209f7f(0xc3)](_0x209f7f(0xb2));}),this[_0x14f297(0x80)][_0x14f297(0xb9)]['on'](_0x14f297(0x7f),()=>{const _0x1df67d=_0x14f297;this[_0x1df67d(0xb3)](),this[_0x1df67d(0x8d)](),this[_0x1df67d(0xc3)](_0x1df67d(0x97));}),this['on'](_0x14f297(0xb8),_0x142a29=>{const _0x34f7d8=_0x14f297;_0x142a29[_0x34f7d8(0xa6)](),this[_0x34f7d8(0x7b)]();});}[_0x16ee71(0xa8)](){const _0x20f8ff=_0x16ee71;this[_0x20f8ff(0x86)][_0x20f8ff(0xae)](_0x20f8ff(0xb7),(_0x41663e,_0x26d2be)=>{const _0x352a11=_0x20f8ff;this[_0x352a11(0x8c)](),this[_0x352a11(0xc3)](_0x352a11(0xb2)),_0x26d2be();});}[_0x16ee71(0x7b)](){const _0x57305a=_0x16ee71,_0x4aae99=this[_0x57305a(0x89)]()[_0x57305a(0x7e)]();_0x4aae99?this[_0x57305a(0xb5)](_0x4aae99)?(this[_0x57305a(0xb3)](),this[_0x57305a(0xc3)](_0x57305a(0xc0),_0x4aae99)):this[_0x57305a(0x8f)](_0x4406fc(this[_0x57305a(0x87)],_0x57305a(0xba))):this[_0x57305a(0x8f)](_0x4406fc(this[_0x57305a(0x87)],_0x57305a(0xc6)));}[_0x16ee71(0x8d)](){const _0x29244e=_0x16ee71,_0x3c8682=this[_0x29244e(0x89)]()[_0x29244e(0x7e)](),_0x30dcbe=!!this[_0x29244e(0x80)][_0x29244e(0x9f)];this[_0x29244e(0xab)][_0x29244e(0x99)]=_0x3c8682[_0x29244e(0x7d)]>0x0&&!_0x30dcbe;}[_0x16ee71(0xb5)](_0x3d3f67){try{return!!new URL(_0x3d3f67);}catch{return!0x1;}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2ca822=_0x22fc;(function(_0xcc8b7e,_0x4eb5f2){const _0x3de790=_0x22fc,_0x5051cf=_0xcc8b7e();while(!![]){try{const _0x20b21c=parseInt(_0x3de790(0x81))/0x1*(-parseInt(_0x3de790(0x86))/0x2)+-parseInt(_0x3de790(0xff))/0x3+-parseInt(_0x3de790(0xb7))/0x4+-parseInt(_0x3de790(0x92))/0x5+parseInt(_0x3de790(0xa8))/0x6+parseInt(_0x3de790(0xc4))/0x7+-parseInt(_0x3de790(0xf0))/0x8*(-parseInt(_0x3de790(0xdb))/0x9);if(_0x20b21c===_0x4eb5f2)break;else _0x5051cf['push'](_0x5051cf['shift']());}catch(_0x561444){_0x5051cf['push'](_0x5051cf['shift']());}}}(_0x1d5f,0x89782));import{BalloonPanelView as _0x401041,ButtonView as _0x273dfd,clickOutsideHandler as _0x251fd1,FileDialogButtonView as _0x13e297,IconView as _0xd14263,View as _0x6a0a2c}from'ckeditor5/src/ui.js';function _0x22fc(_0x146fd8,_0x536704){const _0x1d5f13=_0x1d5f();return _0x22fc=function(_0x22fc63,_0x18387c){_0x22fc63=_0x22fc63-0x80;let _0x3e2e19=_0x1d5f13[_0x22fc63];return _0x3e2e19;},_0x22fc(_0x146fd8,_0x536704);}import{IconBrowseFiles as _0x1c4317,IconDocument as _0xc8a123,IconDocumentOutline as _0x5eb0fb,IconDropdownArrow as _0x22a845,IconLink as _0xa0f7df,IconPaperClip as _0x55d586}from'@ckeditor/ckeditor5-icons';function _0x1d5f(){const _0x738113=['isReadOnly','_conversationContextsChips','populateSourceResourceBalloon','hide','_handleUrlSubmit','1ubIZOL','closest','_toggleAddContextBalloon','showSourceResourcesBalloon','_createAddContextBalloonPanelView','1330258EMOcFF','enabled','menuitem','clearConversationContextItems','updateResourceState','setContainerElement','_setupUrlBalloonClickOutsideHandler','show','_handleAddContextButtonClick','isVisible','reorganizeChips','refreshBalloon','4772265Umqgkn','createCollection','AI_CHAT_CONTEXT_FILE_LABEL','label','arrowView','addResourceToContext','buttonView','div','ck-ai-chat-context-controls__add-context-balloon-panel','source','current','render','addDocumentToContext','ck-ai-chat-context-controls__add-context-button','cancel','isAnyResourceBalloonVisible','children','northArrowSouthEast','addContextItem','_addContextBalloonConfig','_createResourcesBalloonView','addUrlToContext','3538980juzDgb','execute','setConversationContext','ck-ai-chat-controls_context_show-more-button','_createAddContextButtonView','files','_urlBalloonPanelView','_getLimiterElement','balloonView','removeContextItemChip','conversation','find','setContextItemLoading','destroy','_resourcesBalloonView','723224KnEyPI','southArrowNorthWest','icon','_setupTemplate','northArrowSouth','bind','southArrowNorthEast','_currentContextsChips','isHidden','_overflowManager','setTemplate','type','_setBalloonPanelContent','7655606gWDBUI','showUrlBalloonPanel','isEnabled','remove','hideUrlBalloonPanel','ck-ai-chat-context-controls__url-balloon-panel','set','hideAddContextBalloonPanel','_setupAllBalloonClickOutsideHandlers','AI_CHAT_CONTEXT_URL_LABEL','urls','clearCurrentContextItems','_createArrowView','__arrow','isOn','bodyCollection','focus','loadSourceResources','pin','ck-ai-chat-context-controls__balloon-button','defaultPositions','ck-ai-chat-context-controls','_urlInputView','5897403djiGXz','_bindEventHandlers','tooltip','ck-ai-chat','done','isLoading','_createBalloonButton','ck-ai-chat-context-controls__show-more-balloon-panel','ck-ai-chat-context-controls__pending-contexts','ck-ai-chat-controls-button','southArrowNorth','_createContextButton','ck-ai-chat-context-chips-wrapper-balloon','_removeContextFromCollection','extendTemplate','add','addFileToContext','setAddContextOptions','northArrowSouthWest','document','element','16dJWOWc','showAddContextBalloonPanel','_showSourceResourcesBalloon','sources','content','body','AI_CHAT_CONTEXT_ADD_CONTEXT','_addContextToCollection','_createBaseBalloonPanel','ck-ai-chat-context-controls__balloon-button-source','closeSourceResourceBalloon','fire','clear','addContextButtonView','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','1891680NvAcdS','submitUrl','_createUrlBalloonPanelView','overflowChips','_addContextBalloonPanelView','_setAddContextButtonEnabled','_addUrlContent','locale','ck-reset_all-excluded','_setupAddContextBalloonClickOutsideHandler','removeContextItem'];_0x1d5f=function(){return _0x738113;};return _0x1d5f();}import{AIChatContextItemButtonView as _0x1c7391}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x571f35}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x55dbab}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x22cc11}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x238d7b}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x2ca822(0x9e),_0x2ca822(0xeb),_0x2ca822(0xa7),_0x2ca822(0x97),_0x2ca822(0x109),_0x2ca822(0xd5)];const Bo=_0x2ca822(0xd9),bo=_0x2ca822(0xe3),To=_0x2ca822(0x9a),Ao=_0x2ca822(0x9f),ko=_0x2ca822(0xc9),Eo=_0x2ca822(0xd7),vo=_0x2ca822(0xf9),go=_0x2ca822(0xe4),Vo=_0x2ca822(0xe7),fo=_0x2ca822(0xab),Io=_0x2ca822(0xe2),Po=_0x2ca822(0xde),Ro=[_0x401041[_0x2ca822(0xd8)][_0x2ca822(0xed)],_0x401041[_0x2ca822(0xd8)][_0x2ca822(0xbb)],_0x401041[_0x2ca822(0xd8)][_0x2ca822(0xa3)],_0x401041[_0x2ca822(0xd8)][_0x2ca822(0xb8)],_0x401041[_0x2ca822(0xd8)][_0x2ca822(0xe5)],_0x401041[_0x2ca822(0xd8)][_0x2ca822(0xbd)]];export class AIChatContextPanelView extends _0x6a0a2c{[_0x2ca822(0xfd)];[_0x2ca822(0xbe)]=this[_0x2ca822(0x93)]();[_0x2ca822(0x10b)]=this[_0x2ca822(0x93)]();[_0x2ca822(0xc0)];[_0x2ca822(0x103)];[_0x2ca822(0xae)];[_0x2ca822(0xda)];[_0x2ca822(0xb6)];[_0x2ca822(0xa5)];[_0x2ca822(0xd3)];constructor(_0x23f24b,_0x3271c1){const _0x5eafe7=_0x2ca822;super(_0x23f24b),this[_0x5eafe7(0xd3)]=_0x3271c1,this[_0x5eafe7(0xbe)]=this[_0x5eafe7(0x93)](),this[_0x5eafe7(0x10b)]=this[_0x5eafe7(0x93)](),this[_0x5eafe7(0xfd)]=this[_0x5eafe7(0xac)](_0x23f24b),this[_0x5eafe7(0x103)]=this[_0x5eafe7(0x85)](_0x23f24b),this[_0x5eafe7(0xae)]=this[_0x5eafe7(0x101)](_0x23f24b),this[_0x5eafe7(0xb6)]=this[_0x5eafe7(0xa6)](_0x23f24b,_0x3271c1);const _0x4ffb41={'cssClasses':{'showMoreButton':fo,'showMoreBalloon':Io,'overflowContainer':Vo,'controlsButton':go}};this[_0x5eafe7(0xc0)]=new _0x55dbab(_0x23f24b,this[_0x5eafe7(0xbe)],_0x4ffb41,this[_0x5eafe7(0xd3)],this),this[_0x5eafe7(0xa5)]={'buttonView':this[_0x5eafe7(0xfd)],'balloonView':this[_0x5eafe7(0x103)],'hideMethod':this[_0x5eafe7(0xcb)][_0x5eafe7(0xbc)](this),'showMethod':this[_0x5eafe7(0xf1)][_0x5eafe7(0xbc)](this)},this[_0x5eafe7(0xba)](),this[_0x5eafe7(0xdc)]();}[_0x2ca822(0x9d)](){const _0x587ba9=_0x2ca822;super[_0x587ba9(0x9d)](),this[_0x587ba9(0xcc)](),this[_0x587ba9(0xc0)][_0x587ba9(0x8b)](this[_0x587ba9(0xef)]),this[_0x587ba9(0xc0)][_0x587ba9(0x90)]();}[_0x2ca822(0xb5)](){const _0x2e4330=_0x2ca822;super[_0x2e4330(0xb5)](),this[_0x2e4330(0xc0)][_0x2e4330(0xb5)](),this[_0x2e4330(0xb6)][_0x2e4330(0xb5)]();}[_0x2ca822(0xa4)](_0x13b33a,_0x2b2391){const _0x5ccd13=_0x2ca822,_0x57c430=this[_0x5ccd13(0xe6)](_0x13b33a,_0x5ccd13(0x9c),!0x0,_0x2b2391);this[_0x5ccd13(0xf7)](_0x57c430,this[_0x5ccd13(0xbe)]),this[_0x5ccd13(0xc0)][_0x5ccd13(0x90)]();}[_0x2ca822(0x109)](_0x1ea3f5){const _0x952cee=_0x2ca822;this[_0x952cee(0xe8)](_0x1ea3f5,this[_0x952cee(0xbe)]),this[_0x952cee(0xe8)](_0x1ea3f5,this[_0x952cee(0xc0)][_0x952cee(0x102)]),this[_0x952cee(0xc0)][_0x952cee(0x90)]();}[_0x2ca822(0xb4)](_0x3e30e0,_0x413509){const _0x1f9798=_0x2ca822;let _0x178571=this[_0x1f9798(0xbe)][_0x1f9798(0xb3)](_0xcf2192=>_0xcf2192['id']===_0x3e30e0);_0x178571||(_0x178571=this[_0x1f9798(0xc0)][_0x1f9798(0x102)][_0x1f9798(0xb3)](_0x4ad5cc=>_0x4ad5cc['id']===_0x3e30e0)),_0x178571&&(_0x178571[_0x1f9798(0xe0)]=_0x413509);}[_0x2ca822(0xaa)](_0x49f786){const _0x2404ce=_0x2ca822;this[_0x2404ce(0x10b)][_0x2404ce(0xfc)]();for(const _0x22ff5c of _0x49f786){const _0x1d229e=this[_0x2404ce(0xe6)](_0x22ff5c,_0x2404ce(0xb2),!0x1,!0x1);this[_0x2404ce(0xf7)](_0x1d229e,this[_0x2404ce(0x10b)]);}}[_0x2ca822(0xcf)](){const _0x2cd87c=_0x2ca822;this[_0x2cd87c(0xbe)][_0x2cd87c(0xfc)](),this[_0x2cd87c(0xc0)][_0x2cd87c(0xfc)]();}[_0x2ca822(0x89)](){const _0x43c8fe=_0x2ca822;this[_0x43c8fe(0x10b)][_0x43c8fe(0xfc)]();}[_0x2ca822(0x8a)](_0x129710,_0x423fe5,_0x357227){const _0x23b443=_0x2ca822;this[_0x23b443(0xb6)][_0x23b443(0x8a)](_0x129710,_0x423fe5,_0x357227);}[_0x2ca822(0xcb)](){const _0x1bd0be=_0x2ca822;this[_0x1bd0be(0x83)](!0x1);}[_0x2ca822(0xf1)](){const _0xda8dc6=_0x2ca822;this[_0xda8dc6(0x83)](!0x0);}[_0x2ca822(0xc8)](){const _0xb0ce4=_0x2ca822;this[_0xb0ce4(0xae)][_0xb0ce4(0x10d)](),this[_0xb0ce4(0xfd)][_0xb0ce4(0xd2)]=!0x1,this[_0xb0ce4(0xda)]&&this[_0xb0ce4(0xda)][_0xb0ce4(0xfc)]();}[_0x2ca822(0xc5)](){const _0x238319=_0x2ca822;this[_0x238319(0xae)][_0x238319(0x8d)](),this[_0x238319(0xfd)][_0x238319(0xd2)]=!0x0;}[_0x2ca822(0xf2)](_0xe108dd){const _0x279859=_0x2ca822;this[_0x279859(0xb6)][_0x279859(0x84)](_0xe108dd),this[_0x279859(0xfd)][_0x279859(0xd2)]=!0x0;}[_0x2ca822(0x10c)](_0x1c3d1f,_0x26ad3a,_0x598892,_0x4ca988){const _0x486ef8=_0x2ca822;this[_0x486ef8(0xb6)][_0x486ef8(0x10c)](_0x1c3d1f,_0x598892,_0x4ca988);}[_0x2ca822(0xfa)](_0x5aef9e){const _0x51c477=_0x2ca822;this[_0x51c477(0xb6)][_0x51c477(0xfa)](_0x5aef9e),this[_0x51c477(0xfd)][_0x51c477(0xd2)]=!0x1;}[_0x2ca822(0xec)](_0x5c8b72){const _0x33911a=_0x2ca822;this[_0x33911a(0xc3)](this[_0x33911a(0x103)],this[_0x33911a(0x106)],_0x5c8b72),this[_0x33911a(0x104)](_0x5c8b72);}[_0x2ca822(0x104)](_0x52f9b8){const _0x2fa272=_0x2ca822,_0x2eb34c=!_0x52f9b8[_0x2fa272(0xee)][_0x2fa272(0xbf)]&&_0x52f9b8[_0x2fa272(0xee)][_0x2fa272(0x87)],_0x5585dd=_0x52f9b8[_0x2fa272(0xce)][_0x2fa272(0x87)],_0x170e78=_0x52f9b8[_0x2fa272(0xad)][_0x2fa272(0x87)];this[_0x2fa272(0xfd)][_0x2fa272(0xc6)]=_0x2eb34c||_0x5585dd||_0x170e78;}[_0x2ca822(0xba)](){const _0x3e1fa8=_0x2ca822;this[_0x3e1fa8(0xc1)]({'tag':_0x3e1fa8(0x99),'attributes':{'class':[Bo,_0x3e1fa8(0x107)]},'children':[{'tag':_0x3e1fa8(0x99),'attributes':{'class':bo},'children':this[_0x3e1fa8(0xbe)]}]});}[_0x2ca822(0xdc)](){const _0x15ba29=_0x2ca822;this[_0x15ba29(0xfd)]['on'](_0x15ba29(0xa9),()=>{const _0x5e55ae=_0x15ba29;this[_0x5e55ae(0x8e)]();});}[_0x2ca822(0xac)](_0x554753){const _0x273739=_0x2ca822,_0x3a9adc=new _0x273dfd(_0x554753);return _0x3a9adc[_0x273739(0xca)]({'label':_0x22cc11(_0x554753,_0x273739(0xf6)),'class':go+'\x20'+Ao,'icon':_0x55d586,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x3a9adc;}[_0x2ca822(0x85)](_0x59567a){const _0x449bc2=_0x2ca822;return this[_0x449bc2(0xf8)](_0x59567a,To);}[_0x2ca822(0x101)](_0x5a8d68){const _0xb5e5bf=_0x2ca822,_0x57ffd4=this[_0xb5e5bf(0xf8)](_0x5a8d68,ko);return this[_0xb5e5bf(0x105)](_0x57ffd4,_0x5a8d68),_0x57ffd4;}[_0x2ca822(0xa6)](_0x32ad5a,_0x2f4333){const _0x555780=_0x2ca822;return new _0x238d7b(_0x32ad5a,_0x2f4333,{'onBackToContext':()=>{const _0x1c4b89=_0x22fc;this[_0x1c4b89(0xf1)](),this[_0x1c4b89(0x103)][_0x1c4b89(0xd6)]({'target':this[_0x1c4b89(0xfd)][_0x1c4b89(0xef)],'limiter':this[_0x1c4b89(0xaf)](),'positions':Ro});},'onResourceSelected':(_0x91713e,_0x19e0e5)=>{const _0x1c4ce1=_0x22fc;this[_0x1c4ce1(0xfb)](_0x1c4ce1(0x97),{'source':_0x91713e,'resource':_0x19e0e5});},'onLoadSourceResources':_0x15d2d6=>{const _0x256250=_0x22fc;this[_0x256250(0xfb)](_0x256250(0xd5),_0x15d2d6);},'onBalloonClosed':()=>{const _0x2a3019=_0x22fc;this[_0x2a3019(0xfd)][_0x2a3019(0xd2)]=!0x1;},'getLimiterElement':()=>this[_0x555780(0xaf)](),'getTargetElement':()=>this[_0x555780(0xfd)][_0x555780(0xef)]});}[_0x2ca822(0xaf)](){const _0x4a5a0c=_0x2ca822;return this[_0x4a5a0c(0xef)]?.[_0x4a5a0c(0x82)]('.'+Po)||document[_0x4a5a0c(0xf5)];}[_0x2ca822(0xf8)](_0x26ba0e,_0x145230){const _0x3ee8ac=_0x2ca822,_0xf6019f=new _0x401041(_0x26ba0e);return _0xf6019f[_0x3ee8ac(0xe9)]({'attributes':{'class':_0x145230}}),this[_0x3ee8ac(0xd3)][_0x3ee8ac(0xea)](_0xf6019f),_0xf6019f;}[_0x2ca822(0xc3)](_0x553551,_0x5c48f2,_0x167832){const _0x1a0902=_0x2ca822;if(_0x553551[_0x1a0902(0xf4)][_0x1a0902(0xfc)](),!_0x167832[_0x1a0902(0xee)][_0x1a0902(0xbf)]&&_0x167832[_0x1a0902(0xee)][_0x1a0902(0x87)]){const _0x3d006a=this[_0x1a0902(0xe1)](_0x5c48f2,{'label':_0x22cc11(_0x5c48f2,_0x1a0902(0xfe)),'icon':_0xc8a123});_0x3d006a['on'](_0x1a0902(0xa9),()=>{const _0x2d5039=_0x1a0902;this[_0x2d5039(0xfb)](_0x2d5039(0x9e)),this[_0x2d5039(0xcb)]();}),_0x553551[_0x1a0902(0xf4)][_0x1a0902(0xea)](_0x3d006a);}if(_0x167832[_0x1a0902(0xce)][_0x1a0902(0x87)]){const _0x130cdc=this[_0x1a0902(0xe1)](_0x5c48f2,{'label':_0x22cc11(_0x5c48f2,_0x1a0902(0xcd)),'icon':_0xa0f7df});_0x130cdc['on'](_0x1a0902(0xa9),()=>{const _0x50955e=_0x1a0902;this[_0x50955e(0xcb)](),this[_0x50955e(0xc5)](),this[_0x50955e(0xae)][_0x50955e(0xd6)]({'target':this[_0x50955e(0xfd)][_0x50955e(0xef)],'limiter':this[_0x50955e(0xaf)](),'positions':Ro}),this[_0x50955e(0xda)][_0x50955e(0xd4)]();}),_0x553551[_0x1a0902(0xf4)][_0x1a0902(0xea)](_0x130cdc);}if(_0x167832[_0x1a0902(0xad)][_0x1a0902(0x87)]){const _0x349696=new _0x13e297(_0x5c48f2);_0x349696[_0x1a0902(0xca)]({'label':_0x22cc11(_0x5c48f2,_0x1a0902(0x94)),'icon':_0x1c4317,'withText':!0x0,'tooltip':!0x0,'class':Eo,'allowMultipleFiles':!0x0}),_0x349696['on'](_0x1a0902(0xdf),(_0x52de69,_0x360823)=>{const _0x181d2c=_0x1a0902;this[_0x181d2c(0xfb)](_0x181d2c(0xeb),_0x360823),this[_0x181d2c(0xcb)]();}),_0x349696[_0x1a0902(0xdd)]=!0x0,_0x553551[_0x1a0902(0xf4)][_0x1a0902(0xea)](_0x349696);}for(const _0x44d14c of _0x167832[_0x1a0902(0xf3)]){const _0x216ebb=this[_0x1a0902(0xe1)](_0x5c48f2,{'label':_0x44d14c[_0x1a0902(0x95)],'icon':_0x44d14c[_0x1a0902(0xb9)]||_0x5eb0fb,'type':_0x1a0902(0x9b)});_0x553551[_0x1a0902(0xf4)][_0x1a0902(0xea)](_0x216ebb),_0x216ebb['on'](_0x1a0902(0xa9),()=>{const _0x24ceaf=_0x1a0902;this[_0x24ceaf(0xcb)](),this[_0x24ceaf(0xf2)](_0x44d14c);});}}[_0x2ca822(0x105)](_0x524494,_0x43886a){const _0x1042f0=_0x2ca822;this[_0x1042f0(0xda)]=new _0x571f35(_0x43886a),this[_0x1042f0(0xda)]['on'](_0x1042f0(0x100),(_0x39a251,_0x51785b)=>{const _0x741c28=_0x1042f0;this[_0x741c28(0x80)](_0x51785b);}),this[_0x1042f0(0xda)]['on'](_0x1042f0(0xa0),()=>{const _0x4ee6a9=_0x1042f0;this[_0x4ee6a9(0xc8)](),this[_0x4ee6a9(0xf1)](),this[_0x4ee6a9(0x103)][_0x4ee6a9(0xd6)]({'target':this[_0x4ee6a9(0xfd)][_0x4ee6a9(0xef)],'limiter':this[_0x4ee6a9(0xaf)](),'positions':Ro});}),this[_0x1042f0(0xda)]['on'](_0x1042f0(0x91),()=>{const _0x5c67c5=_0x1042f0;this[_0x5c67c5(0xae)][_0x5c67c5(0x8f)]&&this[_0x5c67c5(0xae)][_0x5c67c5(0xd6)]({'target':this[_0x5c67c5(0xfd)][_0x5c67c5(0xef)],'limiter':this[_0x5c67c5(0xaf)](),'positions':Ro});}),_0x524494[_0x1042f0(0xf4)][_0x1042f0(0xea)](this[_0x1042f0(0xda)]);}[_0x2ca822(0xe1)](_0x57e194,_0x1e7a42){const _0x409beb=_0x2ca822,_0x19a030=_0x409beb(0x9b)===_0x1e7a42[_0x409beb(0xc2)]?new SourcesBalloonButtonView(_0x57e194):new _0x273dfd(_0x57e194);return _0x19a030[_0x409beb(0xca)]({'label':_0x1e7a42[_0x409beb(0x95)],'icon':_0x1e7a42[_0x409beb(0xb9)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Eo}),_0x19a030;}[_0x2ca822(0xcc)](){const _0x55e594=_0x2ca822;this[_0x55e594(0x108)](),this[_0x55e594(0x8c)]();}[_0x2ca822(0x8c)](){const _0x2a1372=_0x2ca822;_0x251fd1({'emitter':this[_0x2a1372(0xae)],'contextElements':[this[_0x2a1372(0xae)][_0x2a1372(0xef)]],'callback':()=>{const _0x209be6=_0x2a1372;this[_0x209be6(0xc8)]();},'activator':()=>this[_0x2a1372(0xae)][_0x2a1372(0x8f)]});}[_0x2ca822(0x83)](_0x397404){const _0x3c6019=_0x2ca822,_0x45a62e=this[_0x3c6019(0xa5)];_0x45a62e[_0x3c6019(0x98)][_0x3c6019(0xd2)]=_0x397404,_0x397404?_0x45a62e[_0x3c6019(0xb0)][_0x3c6019(0x8d)]():_0x45a62e[_0x3c6019(0xb0)][_0x3c6019(0x10d)]();}[_0x2ca822(0x108)](){const _0x4f007a=_0x2ca822,{balloonView:_0x38d9bc,buttonView:_0x40cfa7,hideMethod:_0x5e3a65}=this[_0x4f007a(0xa5)];_0x251fd1({'emitter':_0x38d9bc,'contextElements':[_0x38d9bc[_0x4f007a(0xef)],_0x40cfa7[_0x4f007a(0xef)]],'callback':()=>{_0x5e3a65();},'activator':()=>_0x40cfa7[_0x4f007a(0xd2)]&&!this[_0x4f007a(0xae)][_0x4f007a(0x8f)]&&!this[_0x4f007a(0xb6)][_0x4f007a(0xa1)]()});}[_0x2ca822(0xe6)](_0x5e0cf0,_0x5d7c21,_0x1544d1=!0x1,_0xa2b390=!0x1){const _0x3fbb1f=_0x2ca822,_0x1699be=_0x3fbb1f(0xb2)===_0x5d7c21||!0x0===_0x5e0cf0[_0x3fbb1f(0x10a)],_0x3bc5a0=new _0x1c7391(this[_0x3fbb1f(0x106)],_0x5e0cf0,_0x1699be,_0x1544d1,_0xa2b390);return _0x1699be||_0x3bc5a0['on'](_0x3fbb1f(0xb1),()=>{const _0x26315c=_0x3fbb1f;this[_0x26315c(0xfb)](_0x26315c(0x109),_0x3bc5a0['id']);}),_0x3bc5a0;}[_0x2ca822(0xf7)](_0x6b2c1d,_0x5cfdc9){const _0x31be5c=_0x2ca822;_0x5cfdc9[_0x31be5c(0xea)](_0x6b2c1d,0x0);}[_0x2ca822(0xe8)](_0x2d1efb,_0x269b36){const _0x4579ce=_0x2ca822,_0x1ecb91=_0x269b36[_0x4579ce(0xb3)](_0x263585=>_0x263585['id']===_0x2d1efb);_0x1ecb91&&_0x269b36[_0x4579ce(0xc7)](_0x1ecb91);}[_0x2ca822(0x8e)](){const _0x105144=_0x2ca822;this[_0x105144(0xfd)][_0x105144(0xd2)]?this[_0x105144(0xcb)]():(this[_0x105144(0xf1)](),this[_0x105144(0x103)][_0x105144(0xd6)]({'target':this[_0x105144(0xfd)][_0x105144(0xef)],'limiter':this[_0x105144(0xaf)](),'positions':Ro}));}[_0x2ca822(0x80)](_0x5f5dce){const _0x57482b=_0x2ca822;this[_0x57482b(0xda)][_0x57482b(0xfc)](),this[_0x57482b(0xc8)](),this[_0x57482b(0xfb)](_0x57482b(0xa7),_0x5f5dce);}}export class SourcesBalloonButtonView extends _0x273dfd{[_0x2ca822(0x96)];constructor(_0xab925){const _0x3532d0=_0x2ca822;super(_0xab925),this[_0x3532d0(0xca)]({'withText':!0x0,'role':_0x3532d0(0x88)}),this[_0x3532d0(0x96)]=this[_0x3532d0(0xd0)](),this[_0x3532d0(0xe9)]({'attributes':{'class':[vo]}});}[_0x2ca822(0x9d)](){const _0x4e16ce=_0x2ca822;super[_0x4e16ce(0x9d)](),this[_0x4e16ce(0xa2)][_0x4e16ce(0xea)](this[_0x4e16ce(0x96)]);}[_0x2ca822(0xd0)](){const _0x23ccf6=_0x2ca822,_0x57142e=new _0xd14263();return _0x57142e[_0x23ccf6(0xf4)]=_0x22a845,_0x57142e[_0x23ccf6(0xe9)]({'attributes':{'class':vo+_0x23ccf6(0xd1)}}),_0x57142e;}}
23
+ function _0x1e5b(){const _0x10971c=['isHidden','set','_setAddContextButtonEnabled','_addContextBalloonConfig','updateResourceState','ck-ai-chat-context-chips-wrapper-balloon','type','3827362MJuBik','addResourceToContext','addFileToContext','addContextButtonView','addDocumentToContext','southArrowNorthWest','setTemplate','_urlInputView','document','current','79968YrXipK','createCollection','sources','enabled','_createArrowView','removeContextItemChip','ck-ai-chat-context-controls','icon','menuitem','conversation','ck-ai-chat-controls_context_show-more-button','_showSourceResourcesBalloon','hideAddContextBalloonPanel','isOn','destroy','_handleAddContextButtonClick','focus','buttonView','submitUrl','_createUrlBalloonPanelView','setConversationContext','__arrow','3028725BBIpTS','6hHFrdb','clear','ck-reset_all-excluded','southArrowNorth','add','addContextItem','ck-ai-chat-context-controls__balloon-button-source','hide','div','_setBalloonPanelContent','setAddContextOptions','_conversationContextsChips','3SfpNgu','935164YAYJqE','AI_CHAT_CONTEXT_URL_LABEL','ck-ai-chat-context-controls__pending-contexts','_getLimiterElement','execute','tooltip','4378pjxWQY','clearCurrentContextItems','_handleUrlSubmit','_urlBalloonPanelView','removeContextItem','159065gjZQjS','files','_createResourcesBalloonView','setContextItemLoading','closest','southArrowNorthEast','populateSourceResourceBalloon','bind','_overflowManager','showAddContextBalloonPanel','defaultPositions','done','locale','urls','1602265zqYDBY','northArrowSouth','northArrowSouthEast','_setupTemplate','AI_CHAT_CONTEXT_FILE_LABEL','isLoading','_addContextToCollection','setContainerElement','northArrowSouthWest','find','_addContextBalloonPanelView','isAnyResourceBalloonVisible','remove','10CuLrRC','8sNzIzB','_setupUrlBalloonClickOutsideHandler','_createAddContextBalloonPanelView','arrowView','extendTemplate','closeSourceResourceBalloon','_createContextButton','208FqdtSp','_removeContextFromCollection','balloonView','render','_toggleAddContextBalloon','refreshBalloon','content','ck-ai-chat-controls-button','show','fire','ck-ai-chat-context-controls__balloon-button','_createBaseBalloonPanel','children','_resourcesBalloonView','showSourceResourcesBalloon','ck-ai-chat-context-controls__add-context-balloon-panel','ck-ai-chat','source','isEnabled','showUrlBalloonPanel','_setupAddContextBalloonClickOutsideHandler','_currentContextsChips','hideUrlBalloonPanel','_setupAllBalloonClickOutsideHandlers','element','label','cancel','overflowChips','_createAddContextButtonView','AI_CHAT_CONTEXT_ADD_CONTEXT','reorganizeChips','addUrlToContext','_addUrlContent','_bindEventHandlers','loadSourceResources','pin','ck-ai-chat-context-controls__show-more-balloon-panel','_createBalloonButton','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','58JCkTFv','clearConversationContextItems','isReadOnly','isVisible','bodyCollection','ck-ai-chat-context-controls__add-context-button','ck-ai-chat-context-controls__url-balloon-panel','body'];_0x1e5b=function(){return _0x10971c;};return _0x1e5b();}const _0x2a1b80=_0x20f6;(function(_0x4aa0c9,_0x26ba98){const _0x39d9fa=_0x20f6,_0x2c0185=_0x4aa0c9();while(!![]){try{const _0x285601=-parseInt(_0x39d9fa(0x190))/0x1*(-parseInt(_0x39d9fa(0x1d3))/0x2)+parseInt(_0x39d9fa(0x1cc))/0x3*(-parseInt(_0x39d9fa(0x1cd))/0x4)+-parseInt(_0x39d9fa(0x1d8))/0x5*(parseInt(_0x39d9fa(0x1c0))/0x6)+-parseInt(_0x39d9fa(0x1e6))/0x7+-parseInt(_0x39d9fa(0x1f4))/0x8*(-parseInt(_0x39d9fa(0x1bf))/0x9)+-parseInt(_0x39d9fa(0x1f3))/0xa*(-parseInt(_0x39d9fa(0x19f))/0xb)+parseInt(_0x39d9fa(0x1a9))/0xc*(-parseInt(_0x39d9fa(0x1fb))/0xd);if(_0x285601===_0x26ba98)break;else _0x2c0185['push'](_0x2c0185['shift']());}catch(_0x576243){_0x2c0185['push'](_0x2c0185['shift']());}}}(_0x1e5b,0x33582));import{BalloonPanelView as _0xd97f0a,ButtonView as _0x53f213,clickOutsideHandler as _0xb7579c,FileDialogButtonView as _0x5d0e9f,IconView as _0xf2b7d4,View as _0x5c5759}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x4e693f,IconDocument as _0x5baeda,IconDocumentOutline as _0x17490f,IconDropdownArrow as _0x1b8916,IconLink as _0x3c3bb6,IconPaperClip as _0x509479}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x36aaac}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x5ffd88}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x5b307c}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x1a0bfc}from'../../../aicore/utils/common-translations.js';function _0x20f6(_0x500f39,_0x39cae4){const _0x1e5bee=_0x1e5b();return _0x20f6=function(_0x20f663,_0x2b48fc){_0x20f663=_0x20f663-0x175;let _0x33a997=_0x1e5bee[_0x20f663];return _0x33a997;},_0x20f6(_0x500f39,_0x39cae4);}import{AIChatResourcesBalloonView as _0x48750c}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x2a1b80(0x1a3),_0x2a1b80(0x1a1),_0x2a1b80(0x188),_0x2a1b80(0x1a0),_0x2a1b80(0x1d7),_0x2a1b80(0x18b)];const po=_0x2a1b80(0x1af),Bo=_0x2a1b80(0x1cf),bo=_0x2a1b80(0x178),To=_0x2a1b80(0x195),Ao=_0x2a1b80(0x196),ko=_0x2a1b80(0x205),Eo=_0x2a1b80(0x1c6),vo=_0x2a1b80(0x202),go=_0x2a1b80(0x19d),Vo=_0x2a1b80(0x1b3),fo=_0x2a1b80(0x18d),Io=_0x2a1b80(0x179),Po=[_0xd97f0a[_0x2a1b80(0x1e2)][_0x2a1b80(0x1ee)],_0xd97f0a[_0x2a1b80(0x1e2)][_0x2a1b80(0x1e7)],_0xd97f0a[_0x2a1b80(0x1e2)][_0x2a1b80(0x1e8)],_0xd97f0a[_0x2a1b80(0x1e2)][_0x2a1b80(0x1a4)],_0xd97f0a[_0x2a1b80(0x1e2)][_0x2a1b80(0x1c3)],_0xd97f0a[_0x2a1b80(0x1e2)][_0x2a1b80(0x1dd)]];export class AIChatContextPanelView extends _0x5c5759{[_0x2a1b80(0x1a2)];[_0x2a1b80(0x17e)]=this[_0x2a1b80(0x1aa)]();[_0x2a1b80(0x1cb)]=this[_0x2a1b80(0x1aa)]();[_0x2a1b80(0x1e0)];[_0x2a1b80(0x1f0)];[_0x2a1b80(0x1d6)];[_0x2a1b80(0x1a6)];[_0x2a1b80(0x176)];[_0x2a1b80(0x19b)];[_0x2a1b80(0x194)];constructor(_0x10b443,_0x157913){const _0x4500d7=_0x2a1b80;super(_0x10b443),this[_0x4500d7(0x194)]=_0x157913,this[_0x4500d7(0x17e)]=this[_0x4500d7(0x1aa)](),this[_0x4500d7(0x1cb)]=this[_0x4500d7(0x1aa)](),this[_0x4500d7(0x1a2)]=this[_0x4500d7(0x185)](_0x10b443),this[_0x4500d7(0x1f0)]=this[_0x4500d7(0x1f6)](_0x10b443),this[_0x4500d7(0x1d6)]=this[_0x4500d7(0x1bc)](_0x10b443),this[_0x4500d7(0x176)]=this[_0x4500d7(0x1da)](_0x10b443,_0x157913);const _0x49a7a6={'cssClasses':{'showMoreButton':Vo,'showMoreBalloon':fo,'overflowContainer':go,'controlsButton':vo}};this[_0x4500d7(0x1e0)]=new _0x5b307c(_0x10b443,this[_0x4500d7(0x17e)],_0x49a7a6,this[_0x4500d7(0x194)],this),this[_0x4500d7(0x19b)]={'buttonView':this[_0x4500d7(0x1a2)],'balloonView':this[_0x4500d7(0x1f0)],'hideMethod':this[_0x4500d7(0x1b5)][_0x4500d7(0x1df)](this),'showMethod':this[_0x4500d7(0x1e1)][_0x4500d7(0x1df)](this)},this[_0x4500d7(0x1e9)](),this[_0x4500d7(0x18a)]();}[_0x2a1b80(0x1fe)](){const _0x2841a1=_0x2a1b80;super[_0x2841a1(0x1fe)](),this[_0x2841a1(0x180)](),this[_0x2841a1(0x1e0)][_0x2841a1(0x1ed)](this[_0x2841a1(0x181)]),this[_0x2841a1(0x1e0)][_0x2841a1(0x187)]();}[_0x2a1b80(0x1b7)](){const _0x390068=_0x2a1b80;super[_0x390068(0x1b7)](),this[_0x390068(0x1e0)][_0x390068(0x1b7)](),this[_0x390068(0x176)][_0x390068(0x1b7)]();}[_0x2a1b80(0x1c5)](_0x9037dd,_0x503845){const _0x36eb0e=_0x2a1b80,_0x245813=this[_0x36eb0e(0x1fa)](_0x9037dd,_0x36eb0e(0x1a8),!0x0,_0x503845);this[_0x36eb0e(0x1ec)](_0x245813,this[_0x36eb0e(0x17e)]),this[_0x36eb0e(0x1e0)][_0x36eb0e(0x187)]();}[_0x2a1b80(0x1d7)](_0x2eee89){const _0x3f1f9c=_0x2a1b80;this[_0x3f1f9c(0x1fc)](_0x2eee89,this[_0x3f1f9c(0x17e)]),this[_0x3f1f9c(0x1fc)](_0x2eee89,this[_0x3f1f9c(0x1e0)][_0x3f1f9c(0x184)]),this[_0x3f1f9c(0x1e0)][_0x3f1f9c(0x187)]();}[_0x2a1b80(0x1db)](_0xd7f09c,_0xd6e52){const _0x35cdfe=_0x2a1b80;let _0x551e6f=this[_0x35cdfe(0x17e)][_0x35cdfe(0x1ef)](_0x133960=>_0x133960['id']===_0xd7f09c);_0x551e6f||(_0x551e6f=this[_0x35cdfe(0x1e0)][_0x35cdfe(0x184)][_0x35cdfe(0x1ef)](_0x5398f7=>_0x5398f7['id']===_0xd7f09c)),_0x551e6f&&(_0x551e6f[_0x35cdfe(0x1eb)]=_0xd6e52);}[_0x2a1b80(0x1bd)](_0x32bc75){const _0x4f3c35=_0x2a1b80;this[_0x4f3c35(0x1cb)][_0x4f3c35(0x1c1)]();for(const _0x4f4b0a of _0x32bc75){const _0x32ed8c=this[_0x4f3c35(0x1fa)](_0x4f4b0a,_0x4f3c35(0x1b2),!0x1,!0x1);this[_0x4f3c35(0x1ec)](_0x32ed8c,this[_0x4f3c35(0x1cb)]);}}[_0x2a1b80(0x1d4)](){const _0x30a8f3=_0x2a1b80;this[_0x30a8f3(0x17e)][_0x30a8f3(0x1c1)](),this[_0x30a8f3(0x1e0)][_0x30a8f3(0x1c1)]();}[_0x2a1b80(0x191)](){const _0x283fd0=_0x2a1b80;this[_0x283fd0(0x1cb)][_0x283fd0(0x1c1)]();}[_0x2a1b80(0x19c)](_0x1c443e,_0x4ef5be,_0x47876d){const _0x238bfb=_0x2a1b80;this[_0x238bfb(0x176)][_0x238bfb(0x19c)](_0x1c443e,_0x4ef5be,_0x47876d);}[_0x2a1b80(0x1b5)](){const _0x476cfd=_0x2a1b80;this[_0x476cfd(0x1ff)](!0x1);}[_0x2a1b80(0x1e1)](){const _0x15e7d7=_0x2a1b80;this[_0x15e7d7(0x1ff)](!0x0);}[_0x2a1b80(0x17f)](){const _0x53eff7=_0x2a1b80;this[_0x53eff7(0x1d6)][_0x53eff7(0x1c7)](),this[_0x53eff7(0x1a2)][_0x53eff7(0x1b6)]=!0x1,this[_0x53eff7(0x1a6)]&&this[_0x53eff7(0x1a6)][_0x53eff7(0x1c1)]();}[_0x2a1b80(0x17c)](){const _0x567c04=_0x2a1b80;this[_0x567c04(0x1d6)][_0x567c04(0x203)](),this[_0x567c04(0x1a2)][_0x567c04(0x1b6)]=!0x0;}[_0x2a1b80(0x1b4)](_0x25bf91){const _0x3c11b0=_0x2a1b80;this[_0x3c11b0(0x176)][_0x3c11b0(0x177)](_0x25bf91),this[_0x3c11b0(0x1a2)][_0x3c11b0(0x1b6)]=!0x0;}[_0x2a1b80(0x1de)](_0x387de9,_0x24287c,_0x790fdc,_0x901129){const _0x1579d3=_0x2a1b80;this[_0x1579d3(0x176)][_0x1579d3(0x1de)](_0x387de9,_0x790fdc,_0x901129);}[_0x2a1b80(0x1f9)](_0x89ce1e){const _0x1232d6=_0x2a1b80;this[_0x1232d6(0x176)][_0x1232d6(0x1f9)](_0x89ce1e),this[_0x1232d6(0x1a2)][_0x1232d6(0x1b6)]=!0x1;}[_0x2a1b80(0x1ca)](_0x4b5351){const _0xfafe49=_0x2a1b80;this[_0xfafe49(0x1c9)](this[_0xfafe49(0x1f0)],this[_0xfafe49(0x1e4)],_0x4b5351),this[_0xfafe49(0x19a)](_0x4b5351);}[_0x2a1b80(0x19a)](_0x100b47){const _0x553366=_0x2a1b80,_0x5e5c03=!_0x100b47[_0x553366(0x1a7)][_0x553366(0x198)]&&_0x100b47[_0x553366(0x1a7)][_0x553366(0x1ac)],_0x9cd169=_0x100b47[_0x553366(0x1e5)][_0x553366(0x1ac)],_0x49f6c1=_0x100b47[_0x553366(0x1d9)][_0x553366(0x1ac)];this[_0x553366(0x1a2)][_0x553366(0x17b)]=_0x5e5c03||_0x9cd169||_0x49f6c1;}[_0x2a1b80(0x1e9)](){const _0x501bd1=_0x2a1b80;this[_0x501bd1(0x1a5)]({'tag':_0x501bd1(0x1c8),'attributes':{'class':[po,_0x501bd1(0x1c2)]},'children':[{'tag':_0x501bd1(0x1c8),'attributes':{'class':Bo},'children':this[_0x501bd1(0x17e)]}]});}[_0x2a1b80(0x18a)](){const _0x333f07=_0x2a1b80;this[_0x333f07(0x1a2)]['on'](_0x333f07(0x1d1),()=>{const _0x598f50=_0x333f07;this[_0x598f50(0x1b8)]();});}[_0x2a1b80(0x185)](_0x19f37d){const _0x10e6ab=_0x2a1b80,_0x4e098e=new _0x53f213(_0x19f37d);return _0x4e098e[_0x10e6ab(0x199)]({'label':_0x1a0bfc(_0x19f37d,_0x10e6ab(0x186)),'class':vo+'\x20'+To,'icon':_0x509479,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x4e098e;}[_0x2a1b80(0x1f6)](_0x3e5995){const _0x1d91da=_0x2a1b80;return this[_0x1d91da(0x206)](_0x3e5995,bo);}[_0x2a1b80(0x1bc)](_0x35c282){const _0x178c1f=_0x2a1b80,_0x33d105=this[_0x178c1f(0x206)](_0x35c282,Ao);return this[_0x178c1f(0x189)](_0x33d105,_0x35c282),_0x33d105;}[_0x2a1b80(0x1da)](_0x53562e,_0x4ec004){const _0x5be9c1=_0x2a1b80;return new _0x48750c(_0x53562e,_0x4ec004,{'onBackToContext':()=>{const _0x4f22b5=_0x20f6;this[_0x4f22b5(0x1e1)](),this[_0x4f22b5(0x1f0)][_0x4f22b5(0x18c)]({'target':this[_0x4f22b5(0x1a2)][_0x4f22b5(0x181)],'limiter':this[_0x4f22b5(0x1d0)](),'positions':Po});},'onResourceSelected':(_0x5c76bc,_0x8d922a)=>{const _0x1ab08a=_0x20f6;this[_0x1ab08a(0x204)](_0x1ab08a(0x1a0),{'source':_0x5c76bc,'resource':_0x8d922a});},'onLoadSourceResources':_0x465279=>{const _0x524b20=_0x20f6;this[_0x524b20(0x204)](_0x524b20(0x18b),_0x465279);},'onBalloonClosed':()=>{const _0x288c16=_0x20f6;this[_0x288c16(0x1a2)][_0x288c16(0x1b6)]=!0x1;},'getLimiterElement':()=>this[_0x5be9c1(0x1d0)](),'getTargetElement':()=>this[_0x5be9c1(0x1a2)][_0x5be9c1(0x181)]});}[_0x2a1b80(0x1d0)](){const _0x54d3f4=_0x2a1b80;return this[_0x54d3f4(0x181)]?.[_0x54d3f4(0x1dc)]('.'+Io)||document[_0x54d3f4(0x197)];}[_0x2a1b80(0x206)](_0xa0ffbb,_0x4ce952){const _0x19f690=_0x2a1b80,_0x458097=new _0xd97f0a(_0xa0ffbb);return _0x458097[_0x19f690(0x1f8)]({'attributes':{'class':_0x4ce952}}),this[_0x19f690(0x194)][_0x19f690(0x1c4)](_0x458097),_0x458097;}[_0x2a1b80(0x1c9)](_0x293821,_0x2ca0eb,_0x15bc06){const _0x249a4c=_0x2a1b80;if(_0x293821[_0x249a4c(0x201)][_0x249a4c(0x1c1)](),!_0x15bc06[_0x249a4c(0x1a7)][_0x249a4c(0x198)]&&_0x15bc06[_0x249a4c(0x1a7)][_0x249a4c(0x1ac)]){const _0x1a4fb3=this[_0x249a4c(0x18e)](_0x2ca0eb,{'label':_0x1a0bfc(_0x2ca0eb,_0x249a4c(0x18f)),'icon':_0x5baeda});_0x1a4fb3['on'](_0x249a4c(0x1d1),()=>{const _0x23832f=_0x249a4c;this[_0x23832f(0x204)](_0x23832f(0x1a3)),this[_0x23832f(0x1b5)]();}),_0x293821[_0x249a4c(0x201)][_0x249a4c(0x1c4)](_0x1a4fb3);}if(_0x15bc06[_0x249a4c(0x1e5)][_0x249a4c(0x1ac)]){const _0x141eb3=this[_0x249a4c(0x18e)](_0x2ca0eb,{'label':_0x1a0bfc(_0x2ca0eb,_0x249a4c(0x1ce)),'icon':_0x3c3bb6});_0x141eb3['on'](_0x249a4c(0x1d1),()=>{const _0x5c7f4f=_0x249a4c;this[_0x5c7f4f(0x1b5)](),this[_0x5c7f4f(0x17c)](),this[_0x5c7f4f(0x1d6)][_0x5c7f4f(0x18c)]({'target':this[_0x5c7f4f(0x1a2)][_0x5c7f4f(0x181)],'limiter':this[_0x5c7f4f(0x1d0)](),'positions':Po}),this[_0x5c7f4f(0x1a6)][_0x5c7f4f(0x1b9)]();}),_0x293821[_0x249a4c(0x201)][_0x249a4c(0x1c4)](_0x141eb3);}if(_0x15bc06[_0x249a4c(0x1d9)][_0x249a4c(0x1ac)]){const _0x35777c=new _0x5d0e9f(_0x2ca0eb);_0x35777c[_0x249a4c(0x199)]({'label':_0x1a0bfc(_0x2ca0eb,_0x249a4c(0x1ea)),'icon':_0x4e693f,'withText':!0x0,'tooltip':!0x0,'class':ko,'allowMultipleFiles':!0x0}),_0x35777c['on'](_0x249a4c(0x1e3),(_0x4c0484,_0x2be06b)=>{const _0x354b9a=_0x249a4c;this[_0x354b9a(0x204)](_0x354b9a(0x1a1),_0x2be06b),this[_0x354b9a(0x1b5)]();}),_0x35777c[_0x249a4c(0x1d2)]=!0x0,_0x293821[_0x249a4c(0x201)][_0x249a4c(0x1c4)](_0x35777c);}for(const _0x41cd4b of _0x15bc06[_0x249a4c(0x1ab)]){const _0x427d56=this[_0x249a4c(0x18e)](_0x2ca0eb,{'label':_0x41cd4b[_0x249a4c(0x182)],'icon':_0x41cd4b[_0x249a4c(0x1b0)]||_0x17490f,'type':_0x249a4c(0x17a)});_0x293821[_0x249a4c(0x201)][_0x249a4c(0x1c4)](_0x427d56),_0x427d56['on'](_0x249a4c(0x1d1),()=>{const _0x5bb7c5=_0x249a4c;this[_0x5bb7c5(0x1b5)](),this[_0x5bb7c5(0x1b4)](_0x41cd4b);});}}[_0x2a1b80(0x189)](_0x260d5a,_0x36d75a){const _0x3811f6=_0x2a1b80;this[_0x3811f6(0x1a6)]=new _0x5ffd88(_0x36d75a),this[_0x3811f6(0x1a6)]['on'](_0x3811f6(0x1bb),(_0x2edd61,_0x4e27c1)=>{const _0x4a2199=_0x3811f6;this[_0x4a2199(0x1d5)](_0x4e27c1);}),this[_0x3811f6(0x1a6)]['on'](_0x3811f6(0x183),()=>{const _0x8538d8=_0x3811f6;this[_0x8538d8(0x17f)](),this[_0x8538d8(0x1e1)](),this[_0x8538d8(0x1f0)][_0x8538d8(0x18c)]({'target':this[_0x8538d8(0x1a2)][_0x8538d8(0x181)],'limiter':this[_0x8538d8(0x1d0)](),'positions':Po});}),this[_0x3811f6(0x1a6)]['on'](_0x3811f6(0x200),()=>{const _0x51b051=_0x3811f6;this[_0x51b051(0x1d6)][_0x51b051(0x193)]&&this[_0x51b051(0x1d6)][_0x51b051(0x18c)]({'target':this[_0x51b051(0x1a2)][_0x51b051(0x181)],'limiter':this[_0x51b051(0x1d0)](),'positions':Po});}),_0x260d5a[_0x3811f6(0x201)][_0x3811f6(0x1c4)](this[_0x3811f6(0x1a6)]);}[_0x2a1b80(0x18e)](_0x4a95b6,_0x28c627){const _0x4170d1=_0x2a1b80,_0x2a2716=_0x4170d1(0x17a)===_0x28c627[_0x4170d1(0x19e)]?new SourcesBalloonButtonView(_0x4a95b6):new _0x53f213(_0x4a95b6);return _0x2a2716[_0x4170d1(0x199)]({'label':_0x28c627[_0x4170d1(0x182)],'icon':_0x28c627[_0x4170d1(0x1b0)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':ko}),_0x2a2716;}[_0x2a1b80(0x180)](){const _0x414004=_0x2a1b80;this[_0x414004(0x17d)](),this[_0x414004(0x1f5)]();}[_0x2a1b80(0x1f5)](){const _0x4da4df=_0x2a1b80;_0xb7579c({'emitter':this[_0x4da4df(0x1d6)],'contextElements':[this[_0x4da4df(0x1d6)][_0x4da4df(0x181)]],'callback':()=>{const _0x478cc3=_0x4da4df;this[_0x478cc3(0x17f)]();},'activator':()=>this[_0x4da4df(0x1d6)][_0x4da4df(0x193)]});}[_0x2a1b80(0x1ff)](_0x563d21){const _0x24d741=_0x2a1b80,_0xed96d6=this[_0x24d741(0x19b)];_0xed96d6[_0x24d741(0x1ba)][_0x24d741(0x1b6)]=_0x563d21,_0x563d21?_0xed96d6[_0x24d741(0x1fd)][_0x24d741(0x203)]():_0xed96d6[_0x24d741(0x1fd)][_0x24d741(0x1c7)]();}[_0x2a1b80(0x17d)](){const _0x487763=_0x2a1b80,{balloonView:_0x31ec94,buttonView:_0x384993,hideMethod:_0xd7771e}=this[_0x487763(0x19b)];_0xb7579c({'emitter':_0x31ec94,'contextElements':[_0x31ec94[_0x487763(0x181)],_0x384993[_0x487763(0x181)]],'callback':()=>{_0xd7771e();},'activator':()=>_0x384993[_0x487763(0x1b6)]&&!this[_0x487763(0x1d6)][_0x487763(0x193)]&&!this[_0x487763(0x176)][_0x487763(0x1f1)]()});}[_0x2a1b80(0x1fa)](_0x4ac952,_0x3b65e7,_0x53b6b1=!0x1,_0x830b05=!0x1){const _0x13431c=_0x2a1b80,_0x4724f2=_0x13431c(0x1b2)===_0x3b65e7||!0x0===_0x4ac952[_0x13431c(0x192)],_0x538925=new _0x36aaac(this[_0x13431c(0x1e4)],_0x4ac952,_0x4724f2,_0x53b6b1,_0x830b05);return _0x4724f2||_0x538925['on'](_0x13431c(0x1ae),()=>{const _0x247828=_0x13431c;this[_0x247828(0x204)](_0x247828(0x1d7),_0x538925['id']);}),_0x538925;}[_0x2a1b80(0x1ec)](_0x231e4a,_0x2307f4){const _0x8bc736=_0x2a1b80;_0x2307f4[_0x8bc736(0x1c4)](_0x231e4a,0x0);}[_0x2a1b80(0x1fc)](_0x49746f,_0x4fa8c7){const _0x486f50=_0x2a1b80,_0x214332=_0x4fa8c7[_0x486f50(0x1ef)](_0x423902=>_0x423902['id']===_0x49746f);_0x214332&&_0x4fa8c7[_0x486f50(0x1f2)](_0x214332);}[_0x2a1b80(0x1b8)](){const _0x55a4e0=_0x2a1b80;this[_0x55a4e0(0x1a2)][_0x55a4e0(0x1b6)]?this[_0x55a4e0(0x1b5)]():(this[_0x55a4e0(0x1e1)](),this[_0x55a4e0(0x1f0)][_0x55a4e0(0x18c)]({'target':this[_0x55a4e0(0x1a2)][_0x55a4e0(0x181)],'limiter':this[_0x55a4e0(0x1d0)](),'positions':Po}));}[_0x2a1b80(0x1d5)](_0x2e5329){const _0xd2f881=_0x2a1b80;this[_0xd2f881(0x1a6)][_0xd2f881(0x1c1)](),this[_0xd2f881(0x17f)](),this[_0xd2f881(0x204)](_0xd2f881(0x188),_0x2e5329);}}export class SourcesBalloonButtonView extends _0x53f213{[_0x2a1b80(0x1f7)];constructor(_0x3c39df){const _0x38cccc=_0x2a1b80;super(_0x3c39df),this[_0x38cccc(0x199)]({'withText':!0x0,'role':_0x38cccc(0x1b1)}),this[_0x38cccc(0x1f7)]=this[_0x38cccc(0x1ad)](),this[_0x38cccc(0x1f8)]({'attributes':{'class':[Eo]}});}[_0x2a1b80(0x1fe)](){const _0x13157e=_0x2a1b80;super[_0x13157e(0x1fe)](),this[_0x13157e(0x175)][_0x13157e(0x1c4)](this[_0x13157e(0x1f7)]);}[_0x2a1b80(0x1ad)](){const _0x27657b=_0x2a1b80,_0x31937e=new _0xf2b7d4();return _0x31937e[_0x27657b(0x201)]=_0x1b8916,_0x31937e[_0x27657b(0x1f8)]({'attributes':{'class':Eo+_0x27657b(0x1be)}}),_0x31937e;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x5606(){const _0x316036=['abortPromptStream','3292slaVvj','ck-reset_all','609065LKKGPz','ai-chat-controls-loader__cancel-button','set','fire','ck-ai-chat-controls-loader-icon','4199922bckszR','587480HSGaKY','div','execute','ck-ai-chat-controls-loader-icon-dot','ck-ai-chat-controls-loader','AI_CHAT_IS_WRITING','33832gmBQeK','AI_CHAT_STOP_GENERATING','_loaderView','_cancelButtonView','_createLoaderView','2SizgJg','1408068oveUAe','231MIyEsm','152957KXHbzy','_createCancelButtonView','ck-ai-chat-controls-loader-wrapper','setTemplate','locale'];_0x5606=function(){return _0x316036;};return _0x5606();}const _0x5ef391=_0x6b6b;(function(_0x243840,_0x13e913){const _0x263dcc=_0x6b6b,_0x45aeac=_0x243840();while(!![]){try{const _0x47f206=parseInt(_0x263dcc(0x1fd))/0x1*(-parseInt(_0x263dcc(0x1f8))/0x2)+parseInt(_0x263dcc(0x1ff))/0x3*(-parseInt(_0x263dcc(0x1ea))/0x4)+parseInt(_0x263dcc(0x1ec))/0x5+-parseInt(_0x263dcc(0x1fe))/0x6+-parseInt(_0x263dcc(0x200))/0x7+-parseInt(_0x263dcc(0x1f2))/0x8+parseInt(_0x263dcc(0x1f1))/0x9;if(_0x47f206===_0x13e913)break;else _0x45aeac['push'](_0x45aeac['shift']());}catch(_0x31b544){_0x45aeac['push'](_0x45aeac['shift']());}}}(_0x5606,0x27618));function _0x6b6b(_0x1990dd,_0x44f77f){const _0x560652=_0x5606();return _0x6b6b=function(_0x6b6bda,_0x255e2f){_0x6b6bda=_0x6b6bda-0x1e6;let _0x324330=_0x560652[_0x6b6bda];return _0x324330;},_0x6b6b(_0x1990dd,_0x44f77f);}import{ButtonView as _0x1560e0,View as _0x1eafdb}from'ckeditor5/src/ui.js';import{IconStop as _0x15c2ee}from'ckeditor5/src/icons.js';import{getTranslation as _0x4398c9}from'../../../aicore/utils/common-translations.js';export class AIChatControlsLoaderView extends _0x1eafdb{[_0x5ef391(0x1fb)];[_0x5ef391(0x1fa)];constructor(_0x38f98e){const _0x30f0ca=_0x5ef391;super(_0x38f98e),this[_0x30f0ca(0x1fb)]=this[_0x30f0ca(0x201)](),this[_0x30f0ca(0x1fa)]=this[_0x30f0ca(0x1fc)](),this[_0x30f0ca(0x1e7)]({'tag':_0x30f0ca(0x1f3),'attributes':{'class':['ck',_0x30f0ca(0x1e6),_0x30f0ca(0x1eb)]},'children':[this[_0x30f0ca(0x1fa)],this[_0x30f0ca(0x1fb)]]});}[_0x5ef391(0x201)](){const _0x3cc278=_0x5ef391,_0x424674=new _0x1560e0(this[_0x3cc278(0x1e8)]);return _0x424674[_0x3cc278(0x1ee)]({'label':_0x4398c9(this[_0x3cc278(0x1e8)],_0x3cc278(0x1f9)),'withText':!0x0,'class':_0x3cc278(0x1ed),'icon':_0x15c2ee}),_0x424674['on'](_0x3cc278(0x1f4),()=>{const _0x48dc12=_0x3cc278;this[_0x48dc12(0x1ef)](_0x48dc12(0x1e9));}),_0x424674;}[_0x5ef391(0x1fc)](){const _0x3db077=_0x5ef391,_0x4b5c63=new _0x1eafdb(this[_0x3db077(0x1e8)]);return _0x4b5c63[_0x3db077(0x1e7)]({'tag':_0x3db077(0x1f3),'attributes':{'class':[_0x3db077(0x1f6)]},'children':[{'tag':_0x3db077(0x1f3),'attributes':{'class':[_0x3db077(0x1f0)]},'children':[{'tag':_0x3db077(0x1f3),'attributes':{'class':[_0x3db077(0x1f5)]}},{'tag':_0x3db077(0x1f3),'attributes':{'class':[_0x3db077(0x1f5)]}},{'tag':_0x3db077(0x1f3),'attributes':{'class':[_0x3db077(0x1f5)]}}]},{'text':_0x4398c9(this[_0x3db077(0x1e8)],_0x3db077(0x1f7))}]}),_0x4b5c63;}}
23
+ const _0xb5d69b=_0x1d91;function _0x1d91(_0x1e80f6,_0x46931b){const _0x4bdbba=_0x4bdb();return _0x1d91=function(_0x1d91f4,_0x1ec4f7){_0x1d91f4=_0x1d91f4-0x15e;let _0x14cbfc=_0x4bdbba[_0x1d91f4];return _0x14cbfc;},_0x1d91(_0x1e80f6,_0x46931b);}(function(_0x188c2d,_0x42b7c8){const _0x48f645=_0x1d91,_0x781c15=_0x188c2d();while(!![]){try{const _0x8a279e=-parseInt(_0x48f645(0x167))/0x1+-parseInt(_0x48f645(0x15f))/0x2+-parseInt(_0x48f645(0x179))/0x3*(-parseInt(_0x48f645(0x16e))/0x4)+-parseInt(_0x48f645(0x177))/0x5+-parseInt(_0x48f645(0x171))/0x6*(parseInt(_0x48f645(0x172))/0x7)+parseInt(_0x48f645(0x166))/0x8+parseInt(_0x48f645(0x174))/0x9;if(_0x8a279e===_0x42b7c8)break;else _0x781c15['push'](_0x781c15['shift']());}catch(_0x4c67c3){_0x781c15['push'](_0x781c15['shift']());}}}(_0x4bdb,0xdce28));function _0x4bdb(){const _0x368ebc=['ck-ai-chat-controls-loader-icon','ai-chat-controls-loader__cancel-button','_createCancelButtonView','ck-ai-chat-controls-loader-icon-dot','_loaderView','ck-ai-chat-controls-loader-wrapper','53916MEXsjl','AI_CHAT_STOP_GENERATING','ck-ai-chat-controls-loader','6QfjymA','5493082QjsusN','abortPromptStream','18341226LsVpOK','div','fire','7849850atqZNX','setTemplate','369OPwiqY','_createLoaderView','207568XYiFqw','_cancelButtonView','AI_CHAT_IS_WRITING','execute','set','ck-reset_all','locale','9756976WfXfDg','1552229DNrXMP'];_0x4bdb=function(){return _0x368ebc;};return _0x4bdb();}import{ButtonView as _0x1ea2ee,View as _0x510501}from'ckeditor5/src/ui.js';import{IconStop as _0xdf7d69}from'ckeditor5/src/icons.js';import{getTranslation as _0x3d9cff}from'../../../aicore/utils/common-translations.js';export class AIChatControlsLoaderView extends _0x510501{[_0xb5d69b(0x160)];[_0xb5d69b(0x16c)];constructor(_0x4aa64a){const _0x599643=_0xb5d69b;super(_0x4aa64a),this[_0x599643(0x160)]=this[_0x599643(0x16a)](),this[_0x599643(0x16c)]=this[_0x599643(0x15e)](),this[_0x599643(0x178)]({'tag':_0x599643(0x175),'attributes':{'class':['ck',_0x599643(0x16d),_0x599643(0x164)]},'children':[this[_0x599643(0x16c)],this[_0x599643(0x160)]]});}[_0xb5d69b(0x16a)](){const _0x3f7ca5=_0xb5d69b,_0x4d22c4=new _0x1ea2ee(this[_0x3f7ca5(0x165)]);return _0x4d22c4[_0x3f7ca5(0x163)]({'label':_0x3d9cff(this[_0x3f7ca5(0x165)],_0x3f7ca5(0x16f)),'withText':!0x0,'class':_0x3f7ca5(0x169),'icon':_0xdf7d69}),_0x4d22c4['on'](_0x3f7ca5(0x162),()=>{const _0x3a99d2=_0x3f7ca5;this[_0x3a99d2(0x176)](_0x3a99d2(0x173));}),_0x4d22c4;}[_0xb5d69b(0x15e)](){const _0xc73dd9=_0xb5d69b,_0x30740f=new _0x510501(this[_0xc73dd9(0x165)]);return _0x30740f[_0xc73dd9(0x178)]({'tag':_0xc73dd9(0x175),'attributes':{'class':[_0xc73dd9(0x170)]},'children':[{'tag':_0xc73dd9(0x175),'attributes':{'class':[_0xc73dd9(0x168)]},'children':[{'tag':_0xc73dd9(0x175),'attributes':{'class':[_0xc73dd9(0x16b)]}},{'tag':_0xc73dd9(0x175),'attributes':{'class':[_0xc73dd9(0x16b)]}},{'tag':_0xc73dd9(0x175),'attributes':{'class':[_0xc73dd9(0x16b)]}}]},{'text':_0x3d9cff(this[_0xc73dd9(0x165)],_0xc73dd9(0x161))}]}),_0x30740f;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2242ef=_0x1ff3;(function(_0x3d69b0,_0x39090d){const _0x48c78e=_0x1ff3,_0x30d515=_0x3d69b0();while(!![]){try{const _0x92d2f0=parseInt(_0x48c78e(0x1c9))/0x1*(-parseInt(_0x48c78e(0x1c0))/0x2)+parseInt(_0x48c78e(0x20a))/0x3+-parseInt(_0x48c78e(0x213))/0x4*(parseInt(_0x48c78e(0x214))/0x5)+parseInt(_0x48c78e(0x1d6))/0x6+parseInt(_0x48c78e(0x203))/0x7*(-parseInt(_0x48c78e(0x1e9))/0x8)+parseInt(_0x48c78e(0x1db))/0x9*(-parseInt(_0x48c78e(0x202))/0xa)+parseInt(_0x48c78e(0x1f8))/0xb*(parseInt(_0x48c78e(0x217))/0xc);if(_0x92d2f0===_0x39090d)break;else _0x30d515['push'](_0x30d515['shift']());}catch(_0x5887f8){_0x30d515['push'](_0x30d515['shift']());}}}(_0x4fae,0x76c43));import{Collection as _0x3e031e}from'ckeditor5/src/utils.js';import{IconAI as _0x35f4af,IconBulb as _0x29d7ee,IconWeb as _0x38e249}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x19b59e,ButtonLabelView as _0x23afc2,ButtonView as _0x55fa44,createDropdown as _0x37a2c,IconView as _0x36aa5a,UIModel as _0x125c51,View as _0x434618}from'ckeditor5/src/ui.js';import{getTranslation as _0x340a55}from'../../../aicore/utils/common-translations.js';const No=_0x2242ef(0x1eb),go=_0x2242ef(0x1fc),Ho=_0x2242ef(0x212),Mo=_0x2242ef(0x1fe),Lo=_0x2242ef(0x1c7),Do=_0x2242ef(0x210),Wo=_0x2242ef(0x1df),yo='n';function _0x4fae(){const _0x36e28e=['AI_CHAT_ENABLE_REASONING','name','27kbMwSl','AI_CHAT_DISABLE_REASONING','log','capabilities','ck-ai-chat-controls__model-selection__item-capabilities','addMany','length','clear','AI_CHAT_REASONING','set','Commands\x20are\x20not\x20implemented\x20yet.','label','ck-ai-chat-controls__model-name','execute','28568HCUhPV','_modelNameView','ck-ai-chat__prompt-capabilities','isVisible','ck-button__label','_getCapabilityParts','AI_CHAT_CAPABILITIES_YES','span','activeModelId','extendTemplate','_createModelSelectionDropdown','reasoningActive','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','fire','selectModel','22KFQeRD','_createReasoningButton','listenTo','AI_CHAT_CAPABILITIES_NO','ck-ai-chat-controls-button','enableModelSelector','ck-ai-chat-controls__model-selection','ck-hidden','_createWebSearchButton','setReasoning','886220OBxsdG','259pcuOJz','tooltip','_webSearchButton','button','source','_commandsButton','AI_CHAT_COMMANDS','272859hLqium','setModelList','AI_CHAT_SEARCH_WEB','AI_CHAT_ENABLE_WEB_SEARCH','withText','toLowerCase','ck-ai-chat-controls__model-selection__item-description','modelSelectorVisible','ck-ai-chat-controls-button--commands','4gxYgzu','3683955xCbSBl','_createModelNameView','content','6875412EGOSpK','enabled','createCollection','startsWith','activeModelName','AI_CHAT_DISABLE_WEB_SEARCH','bind','modelSelectorEnabled','isOn','locale','setTemplate','text','div','toggleWebSearch','1878itQdZz','setModel','_createCommandsButton','agent','style','webSearch','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','ck-ai-chat-controls__model-selection__item-name','add','112aNCQXg','toggleReasoning','buttonView','description','isEnabled','webSearchActive','setWebSearch','reasoning','_modelSelectionDropdown','_modelSelectionDropdownItems','disableModelSelector','_reasoningButton','menuitemradio','2937384bQehkq','model','bindTemplate'];_0x4fae=function(){return _0x36e28e;};return _0x4fae();}export class AIChatPromptCapabilitiesView extends _0x434618{[_0x2242ef(0x205)];[_0x2242ef(0x1d4)];[_0x2242ef(0x208)];[_0x2242ef(0x1d1)];[_0x2242ef(0x1d2)];[_0x2242ef(0x1ea)];constructor(_0x13f84d){const _0xdfb209=_0x2242ef;super(_0x13f84d),this[_0xdfb209(0x1e4)](_0xdfb209(0x1ce),!0x1),this[_0xdfb209(0x1e4)](_0xdfb209(0x1f4),!0x1),this[_0xdfb209(0x1e4)](_0xdfb209(0x211),!0x0),this[_0xdfb209(0x1e4)](_0xdfb209(0x21e),!0x0),this[_0xdfb209(0x1e4)](_0xdfb209(0x1f1),''),this[_0xdfb209(0x1e4)](_0xdfb209(0x21b),''),this[_0xdfb209(0x1d1)]=this[_0xdfb209(0x1f3)](),this[_0xdfb209(0x1ea)]=this[_0xdfb209(0x215)](),this[_0xdfb209(0x205)]=this[_0xdfb209(0x200)](),this[_0xdfb209(0x1d4)]=this[_0xdfb209(0x1f9)](),this[_0xdfb209(0x208)]=this[_0xdfb209(0x1c2)](),this[_0xdfb209(0x1d1)][_0xdfb209(0x1cb)][_0xdfb209(0x21d)](_0xdfb209(0x1ec))['to'](this,_0xdfb209(0x211),_0x36f61c=>_0x36f61c),this[_0xdfb209(0x1d1)][_0xdfb209(0x1cb)][_0xdfb209(0x21d)](_0xdfb209(0x204))['to'](this,_0xdfb209(0x21e),_0x29cabd=>_0x29cabd?this[_0xdfb209(0x1d1)][_0xdfb209(0x1cb)][_0xdfb209(0x1e6)]:_0x340a55(this[_0xdfb209(0x220)],_0xdfb209(0x1c6))),this[_0xdfb209(0x1d1)][_0xdfb209(0x21d)](_0xdfb209(0x1cd))['to'](this,_0xdfb209(0x21e),_0x4047c4=>_0x4047c4),this[_0xdfb209(0x205)][_0xdfb209(0x21d)](_0xdfb209(0x21f))['to'](this,_0xdfb209(0x1ce),_0xd14fb1=>_0xd14fb1),this[_0xdfb209(0x205)][_0xdfb209(0x21d)](_0xdfb209(0x20e))['to'](this,_0xdfb209(0x211),_0x2301c0=>!_0x2301c0),this[_0xdfb209(0x205)][_0xdfb209(0x21d)](_0xdfb209(0x204))['to'](this,_0xdfb209(0x1ce),_0x5ccd0e=>_0x340a55(this[_0xdfb209(0x220)],_0x5ccd0e?_0xdfb209(0x21c):_0xdfb209(0x20d))),this[_0xdfb209(0x1d4)][_0xdfb209(0x21d)](_0xdfb209(0x21f))['to'](this,_0xdfb209(0x1f4),_0x4d7676=>_0x4d7676),this[_0xdfb209(0x1d4)][_0xdfb209(0x21d)](_0xdfb209(0x20e))['to'](this,_0xdfb209(0x211),_0x582454=>!_0x582454),this[_0xdfb209(0x1d4)][_0xdfb209(0x21d)](_0xdfb209(0x204))['to'](this,_0xdfb209(0x1f4),_0x16b597=>_0x340a55(this[_0xdfb209(0x220)],_0x16b597?_0xdfb209(0x1dc):_0xdfb209(0x1d9))),this[_0xdfb209(0x221)]({'tag':_0xdfb209(0x223),'attributes':{'class':[No]},'children':[this[_0xdfb209(0x1d1)],this[_0xdfb209(0x1ea)],this[_0xdfb209(0x205)],this[_0xdfb209(0x1d4)],this[_0xdfb209(0x208)]]}),this[_0xdfb209(0x1d2)]=new _0x3e031e(),_0x19b59e(this[_0xdfb209(0x1d1)],this[_0xdfb209(0x1d2)]);}[_0x2242ef(0x20b)](_0x14ab35,_0x13ead2){const _0x492ad7=_0x2242ef;if(this[_0x492ad7(0x1e4)](_0x492ad7(0x211),!(_0x13ead2&&_0x14ab35[_0x492ad7(0x1e1)]<=0x1)),this[_0x492ad7(0x1d2)][_0x492ad7(0x1e2)](),_0x14ab35?.[_0x492ad7(0x1e1)])for(const _0x56db86 of _0x14ab35){const _0x3e0f22=new _0x125c51({'label':_0x56db86[_0x492ad7(0x1da)],'withText':!0x0,'role':_0x492ad7(0x1d5),'id':_0x56db86['id'],'model':_0x56db86});_0x3e0f22[_0x492ad7(0x21d)](_0x492ad7(0x21f))['to'](this,_0x492ad7(0x1f1),_0x59e3d8=>_0x59e3d8===_0x56db86['id']),this[_0x492ad7(0x1d2)][_0x492ad7(0x1c8)]({'type':_0x492ad7(0x206),'model':_0x3e0f22,'labelView':new Ms(this[_0x492ad7(0x220)],_0x56db86)});}}[_0x2242ef(0x1cf)](_0x572db0){const _0x85770b=_0x2242ef;this[_0x85770b(0x1e4)](_0x85770b(0x1ce),_0x572db0);}[_0x2242ef(0x201)](_0x4f7dee){const _0x2ae705=_0x2242ef;this[_0x2ae705(0x1e4)](_0x2ae705(0x1f4),_0x4f7dee);}[_0x2242ef(0x1c1)](_0x21718d){const _0x4e4385=_0x2242ef;if(!_0x21718d)return;this[_0x4e4385(0x1f1)]=_0x21718d['id'],this[_0x4e4385(0x21b)]=_0x21718d[_0x4e4385(0x1da)]||_0x21718d['id'],this[_0x4e4385(0x1d1)][_0x4e4385(0x1cb)][_0x4e4385(0x1e4)](_0x4e4385(0x1e6),_0x21718d[_0x4e4385(0x1da)]),this[_0x4e4385(0x1d1)][_0x4e4385(0x1cb)][_0x4e4385(0x1e4)](_0x4e4385(0x204),_0x21718d[_0x4e4385(0x1da)]);const _0x46d17f=_0x21718d[_0x4e4385(0x1de)][_0x4e4385(0x1c5)]?.[_0x4e4385(0x218)]??!0x1;this[_0x4e4385(0x1e4)](_0x4e4385(0x1ce),!0x1),this[_0x4e4385(0x205)][_0x4e4385(0x1e4)](_0x4e4385(0x21f),!0x1),this[_0x4e4385(0x205)][_0x4e4385(0x1e4)](_0x4e4385(0x1cd),_0x46d17f),this[_0x4e4385(0x205)][_0x4e4385(0x1e4)](_0x4e4385(0x1ec),_0x46d17f);const _0x90f404=_0x21718d[_0x4e4385(0x1de)][_0x4e4385(0x1d0)]?.[_0x4e4385(0x218)]??!0x1;this[_0x4e4385(0x1e4)](_0x4e4385(0x1f4),!0x1),this[_0x4e4385(0x1d4)][_0x4e4385(0x1e4)](_0x4e4385(0x21f),!0x1),this[_0x4e4385(0x1d4)][_0x4e4385(0x1e4)](_0x4e4385(0x1cd),_0x90f404),this[_0x4e4385(0x1d4)][_0x4e4385(0x1e4)](_0x4e4385(0x1ec),_0x90f404);}[_0x2242ef(0x1fd)](){const _0x437ea6=_0x2242ef;this[_0x437ea6(0x1e4)](_0x437ea6(0x21e),!0x0),this[_0x437ea6(0x1e4)](_0x437ea6(0x211),!0x0);}[_0x2242ef(0x1d3)](_0x43d6ea){const _0x48c0f4=_0x2242ef;this[_0x48c0f4(0x1e4)](_0x48c0f4(0x21e),!0x1),_0x43d6ea&&this[_0x48c0f4(0x1e4)](_0x48c0f4(0x211),!0x1);}[_0x2242ef(0x200)](){const _0x2c7e8a=_0x2242ef,_0x2be7f2=new _0x55fa44();return _0x2be7f2[_0x2c7e8a(0x1e4)]({'label':_0x340a55(this[_0x2c7e8a(0x220)],_0x2c7e8a(0x20c)),'icon':_0x38e249,'class':go,'isToggleable':!0x0,'tooltipPosition':yo}),_0x2be7f2['on'](_0x2c7e8a(0x1e8),()=>{const _0x3aba47=_0x2c7e8a;this[_0x3aba47(0x1f6)](_0x3aba47(0x1bf));}),_0x2be7f2;}[_0x2242ef(0x1f9)](){const _0x4008c9=_0x2242ef,_0x2d13a5=new _0x55fa44();return _0x2d13a5[_0x4008c9(0x1e4)]({'label':_0x340a55(this[_0x4008c9(0x220)],_0x4008c9(0x1e3)),'icon':_0x29d7ee,'class':go,'isToggleable':!0x0,'tooltipPosition':yo}),_0x2d13a5['on'](_0x4008c9(0x1e8),()=>{const _0x2fe8b8=_0x4008c9;this[_0x2fe8b8(0x1f6)](_0x2fe8b8(0x1ca));}),_0x2d13a5;}[_0x2242ef(0x1c2)](){const _0x5c6fd7=_0x2242ef,_0x2a70dc=new _0x55fa44();return _0x2a70dc[_0x5c6fd7(0x1e4)]({'label':_0x340a55(this[_0x5c6fd7(0x220)],_0x5c6fd7(0x209)),'icon':_0x35f4af,'withText':!0x0,'class':go,'isToggleable':!0x0,'tooltip':_0x340a55(this[_0x5c6fd7(0x220)],_0x5c6fd7(0x209)),'tooltipPosition':yo}),_0x2a70dc[_0x5c6fd7(0x1f2)]({'attributes':{'class':[Ho]}}),_0x2a70dc['on'](_0x5c6fd7(0x1e8),()=>{const _0x14b6b9=_0x5c6fd7;console[_0x14b6b9(0x1dd)](_0x14b6b9(0x1e5)),alert(_0x14b6b9(0x1e5));}),_0x2a70dc;}[_0x2242ef(0x1f3)](){const _0x5d7f17=_0x2242ef,_0x5d7673=_0x37a2c(this[_0x5d7f17(0x220)]);return _0x5d7673[_0x5d7f17(0x1e4)]({'panelPosition':'ne','class':[Mo]}),_0x5d7673[_0x5d7f17(0x1cb)][_0x5d7f17(0x1e4)]({'label':_0x340a55(this[_0x5d7f17(0x220)],_0x5d7f17(0x1f5)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':yo}),this[_0x5d7f17(0x1fa)](_0x5d7673,_0x5d7f17(0x1e8),_0x3206e2=>{const _0x4579d1=_0x5d7f17;this[_0x4579d1(0x1f6)](_0x4579d1(0x1f7),_0x3206e2[_0x4579d1(0x207)][_0x4579d1(0x1d7)]);}),_0x5d7673;}[_0x2242ef(0x215)](){const _0x362342=_0x2242ef,_0x1d427c=new Go(this[_0x362342(0x220)]);return _0x1d427c[_0x362342(0x21d)](_0x362342(0x222))['to'](this,_0x362342(0x21b),_0x53253b=>_0x53253b??''),_0x1d427c[_0x362342(0x21d)](_0x362342(0x1ec))['to'](this,_0x362342(0x211),this,_0x362342(0x21b),(_0x4b73b4,_0x1d1e6b)=>!_0x4b73b4&&!_0x1d1e6b?.[_0x362342(0x20f)]()[_0x362342(0x21a)](_0x362342(0x1c3))),_0x1d427c;}}function _0x1ff3(_0x9e5ffe,_0x558559){const _0x4fae49=_0x4fae();return _0x1ff3=function(_0x1ff363,_0x54f3d5){_0x1ff363=_0x1ff363-0x1bf;let _0x41a100=_0x4fae49[_0x1ff363];return _0x41a100;},_0x1ff3(_0x9e5ffe,_0x558559);}class Ms extends _0x23afc2{constructor(_0x2a05b8,_0x2f1647){const _0x3d9c41=_0x2242ef;super();const _0x376976=this[_0x3d9c41(0x1d8)],_0x5f3bf4=this[_0x3d9c41(0x219)]();this[_0x3d9c41(0x221)]({'tag':_0x3d9c41(0x223),'attributes':{'class':['ck',_0x3d9c41(0x1ed)],'style':_0x376976['to'](_0x3d9c41(0x1c4)),'id':_0x376976['to']('id')},'children':[{'tag':_0x3d9c41(0x223),'attributes':{'class':[Lo]},'children':[{'text':_0x376976['to'](_0x3d9c41(0x222))}]},{'tag':_0x3d9c41(0x223),'attributes':{'class':[Do]},'children':[{'tag':_0x3d9c41(0x1f0),'children':[{'text':_0x2f1647[_0x3d9c41(0x1cc)]}]}]},{'tag':_0x3d9c41(0x223),'attributes':{'class':[Wo]},'children':_0x5f3bf4}]}),_0x5f3bf4[_0x3d9c41(0x1e0)](this[_0x3d9c41(0x1ee)](_0x2a05b8,_0x38e249,_0x3d9c41(0x20c),_0x2f1647[_0x3d9c41(0x1de)][_0x3d9c41(0x1c5)]?.[_0x3d9c41(0x218)]??!0x1)),_0x5f3bf4[_0x3d9c41(0x1e0)](this[_0x3d9c41(0x1ee)](_0x2a05b8,_0x29d7ee,_0x3d9c41(0x1e3),_0x2f1647[_0x3d9c41(0x1de)][_0x3d9c41(0x1d0)]?.[_0x3d9c41(0x218)]??!0x1));}[_0x2242ef(0x1ee)](_0x57de56,_0x2aee58,_0x459592,_0x2d0080){const _0x416e44=_0x2242ef,_0x201fa5=new _0x36aa5a();_0x201fa5[_0x416e44(0x216)]=_0x2aee58;const _0x337ccf=new _0x434618(_0x57de56);_0x337ccf[_0x416e44(0x221)]({'tag':_0x416e44(0x1f0),'children':[{'text':_0x340a55(_0x57de56,_0x459592)+':\x20'}]});const _0x3c76ba=new _0x434618(_0x57de56);return _0x3c76ba[_0x416e44(0x221)]({'tag':_0x416e44(0x1f0),'children':[{'text':_0x340a55(_0x57de56,_0x2d0080?_0x416e44(0x1ef):_0x416e44(0x1fb))}]}),[_0x201fa5,_0x337ccf,_0x3c76ba];}}class Go extends _0x434618{constructor(_0x1b4323){const _0x1277ad=_0x2242ef;super(_0x1b4323),this[_0x1277ad(0x1e4)](_0x1277ad(0x222),void 0x0),this[_0x1277ad(0x1e4)](_0x1277ad(0x1ec),!0x0);const _0x4b4ac6=this[_0x1277ad(0x1d8)];this[_0x1277ad(0x221)]({'tag':_0x1277ad(0x1f0),'attributes':{'class':['ck',_0x1277ad(0x1e7),_0x4b4ac6['if'](_0x1277ad(0x1ec),_0x1277ad(0x1ff),_0xa1d8e5=>!_0xa1d8e5)]},'children':[{'text':_0x4b4ac6['to'](_0x1277ad(0x222))}]});}}
23
+ const _0x568fbf=_0xeb28;(function(_0x190f09,_0x19d67b){const _0x1dea34=_0xeb28,_0xa69c35=_0x190f09();while(!![]){try{const _0x8514fd=-parseInt(_0x1dea34(0x201))/0x1+parseInt(_0x1dea34(0x216))/0x2*(parseInt(_0x1dea34(0x24e))/0x3)+-parseInt(_0x1dea34(0x245))/0x4*(-parseInt(_0x1dea34(0x21a))/0x5)+parseInt(_0x1dea34(0x225))/0x6*(parseInt(_0x1dea34(0x237))/0x7)+-parseInt(_0x1dea34(0x250))/0x8+-parseInt(_0x1dea34(0x23f))/0x9*(parseInt(_0x1dea34(0x23a))/0xa)+parseInt(_0x1dea34(0x206))/0xb*(parseInt(_0x1dea34(0x1f6))/0xc);if(_0x8514fd===_0x19d67b)break;else _0xa69c35['push'](_0xa69c35['shift']());}catch(_0x58a5a5){_0xa69c35['push'](_0xa69c35['shift']());}}}(_0x4466,0xb9c6e));import{Collection as _0x1afed0}from'ckeditor5/src/utils.js';import{IconAI as _0x2cc2fe,IconBulb as _0x408f87,IconWeb as _0x5cad2a}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x4c904c,ButtonLabelView as _0x2429f2,ButtonView as _0x947e8a,createDropdown as _0xc7f222,IconView as _0xf93f4f,UIModel as _0xd809ca,View as _0x1033b4}from'ckeditor5/src/ui.js';import{getTranslation as _0x4b8cb1}from'../../../aicore/utils/common-translations.js';function _0xeb28(_0x6ca4df,_0x9ca6bf){const _0x446642=_0x4466();return _0xeb28=function(_0xeb282f,_0xefa24a){_0xeb282f=_0xeb282f-0x1f4;let _0x397242=_0x446642[_0xeb282f];return _0x397242;},_0xeb28(_0x6ca4df,_0x9ca6bf);}const No=_0x568fbf(0x1fa),vo=_0x568fbf(0x210),Ho=_0x568fbf(0x1f8),Mo=_0x568fbf(0x22d),Lo=_0x568fbf(0x20a),Ro=_0x568fbf(0x20e),Do=_0x568fbf(0x226),Wo='n';export class AIChatPromptCapabilitiesView extends _0x1033b4{[_0x568fbf(0x221)];[_0x568fbf(0x252)];[_0x568fbf(0x24d)];[_0x568fbf(0x227)];[_0x568fbf(0x22e)];[_0x568fbf(0x228)];constructor(_0x27869){const _0x526b84=_0x568fbf;super(_0x27869),this[_0x526b84(0x235)](_0x526b84(0x247),!0x1),this[_0x526b84(0x235)](_0x526b84(0x1f7),!0x1),this[_0x526b84(0x235)](_0x526b84(0x234),!0x0),this[_0x526b84(0x235)](_0x526b84(0x1fd),!0x0),this[_0x526b84(0x235)](_0x526b84(0x21d),''),this[_0x526b84(0x235)](_0x526b84(0x240),''),this[_0x526b84(0x227)]=this[_0x526b84(0x1fb)](),this[_0x526b84(0x228)]=this[_0x526b84(0x241)](),this[_0x526b84(0x221)]=this[_0x526b84(0x24f)](),this[_0x526b84(0x252)]=this[_0x526b84(0x239)](),this[_0x526b84(0x24d)]=this[_0x526b84(0x236)](),this[_0x526b84(0x227)][_0x526b84(0x23c)][_0x526b84(0x24b)](_0x526b84(0x20f))['to'](this,_0x526b84(0x234),_0xd360d9=>_0xd360d9),this[_0x526b84(0x227)][_0x526b84(0x23c)][_0x526b84(0x24b)](_0x526b84(0x255))['to'](this,_0x526b84(0x1fd),_0x1390f5=>_0x1390f5?this[_0x526b84(0x227)][_0x526b84(0x23c)][_0x526b84(0x22b)]:_0x4b8cb1(this[_0x526b84(0x246)],_0x526b84(0x23b))),this[_0x526b84(0x227)][_0x526b84(0x24b)](_0x526b84(0x21e))['to'](this,_0x526b84(0x1fd),_0x24879b=>_0x24879b),this[_0x526b84(0x221)][_0x526b84(0x24b)](_0x526b84(0x233))['to'](this,_0x526b84(0x247),_0x224365=>_0x224365),this[_0x526b84(0x221)][_0x526b84(0x24b)](_0x526b84(0x244))['to'](this,_0x526b84(0x234),_0x392fa5=>!_0x392fa5),this[_0x526b84(0x221)][_0x526b84(0x24b)](_0x526b84(0x255))['to'](this,_0x526b84(0x247),_0x375dc4=>_0x4b8cb1(this[_0x526b84(0x246)],_0x375dc4?_0x526b84(0x23e):_0x526b84(0x22c))),this[_0x526b84(0x252)][_0x526b84(0x24b)](_0x526b84(0x233))['to'](this,_0x526b84(0x1f7),_0x1816ca=>_0x1816ca),this[_0x526b84(0x252)][_0x526b84(0x24b)](_0x526b84(0x244))['to'](this,_0x526b84(0x234),_0x50a652=>!_0x50a652),this[_0x526b84(0x252)][_0x526b84(0x24b)](_0x526b84(0x255))['to'](this,_0x526b84(0x1f7),_0x35c544=>_0x4b8cb1(this[_0x526b84(0x246)],_0x35c544?_0x526b84(0x211):_0x526b84(0x217))),this[_0x526b84(0x248)]({'tag':_0x526b84(0x215),'attributes':{'class':[No]},'children':[this[_0x526b84(0x227)],this[_0x526b84(0x228)],this[_0x526b84(0x221)],this[_0x526b84(0x252)],this[_0x526b84(0x24d)]]}),this[_0x526b84(0x22e)]=new _0x1afed0(),_0x4c904c(this[_0x526b84(0x227)],this[_0x526b84(0x22e)]);}[_0x568fbf(0x214)](_0x11c9b1,_0xdb27a){const _0x3afce0=_0x568fbf;if(this[_0x3afce0(0x235)](_0x3afce0(0x234),!(_0xdb27a&&_0x11c9b1[_0x3afce0(0x220)]<=0x1)),this[_0x3afce0(0x22e)][_0x3afce0(0x21f)](),_0x11c9b1?.[_0x3afce0(0x220)])for(const _0x290603 of _0x11c9b1){const _0x1b8cd9=new _0xd809ca({'label':_0x290603[_0x3afce0(0x254)],'withText':!0x0,'role':_0x3afce0(0x207),'id':_0x290603['id'],'model':_0x290603});_0x1b8cd9[_0x3afce0(0x24b)](_0x3afce0(0x233))['to'](this,_0x3afce0(0x21d),_0x1098ac=>_0x1098ac===_0x290603['id']),this[_0x3afce0(0x22e)][_0x3afce0(0x200)]({'type':_0x3afce0(0x21c),'model':_0x1b8cd9,'labelView':new Ts(this[_0x3afce0(0x246)],_0x290603)});}}[_0x568fbf(0x256)](_0x18e874){const _0xe00a07=_0x568fbf;this[_0xe00a07(0x235)](_0xe00a07(0x247),_0x18e874);}[_0x568fbf(0x224)](_0x24c477){const _0x39b7c5=_0x568fbf;this[_0x39b7c5(0x235)](_0x39b7c5(0x1f7),_0x24c477);}[_0x568fbf(0x203)](_0x4ed216){const _0x5ca631=_0x568fbf;if(!_0x4ed216)return;this[_0x5ca631(0x21d)]=_0x4ed216['id'],this[_0x5ca631(0x240)]=_0x4ed216[_0x5ca631(0x254)]||_0x4ed216['id'],this[_0x5ca631(0x227)][_0x5ca631(0x23c)][_0x5ca631(0x235)](_0x5ca631(0x22b),_0x4ed216[_0x5ca631(0x254)]),this[_0x5ca631(0x227)][_0x5ca631(0x23c)][_0x5ca631(0x235)](_0x5ca631(0x255),_0x4ed216[_0x5ca631(0x254)]);const _0x57b779=_0x4ed216[_0x5ca631(0x243)][_0x5ca631(0x213)]?.[_0x5ca631(0x1fe)]??!0x1;this[_0x5ca631(0x235)](_0x5ca631(0x247),!0x1),this[_0x5ca631(0x221)][_0x5ca631(0x235)](_0x5ca631(0x233),!0x1),this[_0x5ca631(0x221)][_0x5ca631(0x235)](_0x5ca631(0x21e),_0x57b779),this[_0x5ca631(0x221)][_0x5ca631(0x235)](_0x5ca631(0x20f),_0x57b779);const _0x4307e2=_0x4ed216[_0x5ca631(0x243)][_0x5ca631(0x251)]?.[_0x5ca631(0x1fe)]??!0x1;this[_0x5ca631(0x235)](_0x5ca631(0x1f7),!0x1),this[_0x5ca631(0x252)][_0x5ca631(0x235)](_0x5ca631(0x233),!0x1),this[_0x5ca631(0x252)][_0x5ca631(0x235)](_0x5ca631(0x21e),_0x4307e2),this[_0x5ca631(0x252)][_0x5ca631(0x235)](_0x5ca631(0x20f),_0x4307e2);}[_0x568fbf(0x238)](){const _0x2e503f=_0x568fbf;this[_0x2e503f(0x235)](_0x2e503f(0x1fd),!0x0),this[_0x2e503f(0x235)](_0x2e503f(0x234),!0x0);}[_0x568fbf(0x1f9)](_0x5c8d22){const _0x114484=_0x568fbf;this[_0x114484(0x235)](_0x114484(0x1fd),!0x1),_0x5c8d22&&this[_0x114484(0x235)](_0x114484(0x234),!0x1);}[_0x568fbf(0x24f)](){const _0x1610c3=_0x568fbf,_0x3b2998=new _0x947e8a();return _0x3b2998[_0x1610c3(0x235)]({'label':_0x4b8cb1(this[_0x1610c3(0x246)],_0x1610c3(0x232)),'icon':_0x5cad2a,'class':vo,'isToggleable':!0x0,'tooltipPosition':Wo}),_0x3b2998['on'](_0x1610c3(0x231),()=>{const _0x496532=_0x1610c3;this[_0x496532(0x24a)](_0x496532(0x1f4));}),_0x3b2998;}[_0x568fbf(0x239)](){const _0x47fe12=_0x568fbf,_0x54c37c=new _0x947e8a();return _0x54c37c[_0x47fe12(0x235)]({'label':_0x4b8cb1(this[_0x47fe12(0x246)],_0x47fe12(0x257)),'icon':_0x408f87,'class':vo,'isToggleable':!0x0,'tooltipPosition':Wo}),_0x54c37c['on'](_0x47fe12(0x231),()=>{const _0x87f9d0=_0x47fe12;this[_0x87f9d0(0x24a)](_0x87f9d0(0x1ff));}),_0x54c37c;}[_0x568fbf(0x236)](){const _0x3fa89a=_0x568fbf,_0x4264fd=new _0x947e8a();return _0x4264fd[_0x3fa89a(0x235)]({'label':_0x4b8cb1(this[_0x3fa89a(0x246)],_0x3fa89a(0x222)),'icon':_0x2cc2fe,'withText':!0x0,'class':vo,'isToggleable':!0x0,'tooltip':_0x4b8cb1(this[_0x3fa89a(0x246)],_0x3fa89a(0x222)),'tooltipPosition':Wo}),_0x4264fd[_0x3fa89a(0x22f)]({'attributes':{'class':[Ho]}}),_0x4264fd['on'](_0x3fa89a(0x231),()=>{const _0x44c64a=_0x3fa89a;console[_0x44c64a(0x212)](_0x44c64a(0x205)),alert(_0x44c64a(0x205));}),_0x4264fd;}[_0x568fbf(0x1fb)](){const _0x4714f4=_0x568fbf,_0x8a13e7=_0xc7f222(this[_0x4714f4(0x246)]);return _0x8a13e7[_0x4714f4(0x235)]({'panelPosition':'ne','class':[Mo]}),_0x8a13e7[_0x4714f4(0x23c)][_0x4714f4(0x235)]({'label':_0x4b8cb1(this[_0x4714f4(0x246)],_0x4714f4(0x22a)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':Wo}),this[_0x4714f4(0x258)](_0x8a13e7,_0x4714f4(0x231),_0x590bc6=>{const _0x536f73=_0x4714f4;this[_0x536f73(0x24a)](_0x536f73(0x204),_0x590bc6[_0x536f73(0x223)][_0x536f73(0x209)]);}),_0x8a13e7;}[_0x568fbf(0x241)](){const _0x359209=_0x568fbf,_0x378b9f=new yo(this[_0x359209(0x246)]);return _0x378b9f[_0x359209(0x24b)](_0x359209(0x253))['to'](this,_0x359209(0x240),_0x168211=>_0x168211??''),_0x378b9f[_0x359209(0x24b)](_0x359209(0x20f))['to'](this,_0x359209(0x234),this,_0x359209(0x240),(_0x3aedd6,_0x5e7a7d)=>!_0x3aedd6&&!_0x5e7a7d?.[_0x359209(0x230)]()[_0x359209(0x218)](_0x359209(0x242))),_0x378b9f;}}function _0x4466(){const _0x4d16b3=['isOn','modelSelectorVisible','set','_createCommandsButton','35ljXzAH','enableModelSelector','_createReasoningButton','6350TAVzxz','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','buttonView','AI_CHAT_CAPABILITIES_YES','AI_CHAT_DISABLE_WEB_SEARCH','8523dDEFxi','activeModelName','_createModelNameView','agent','capabilities','withText','20BQfgdt','locale','webSearchActive','setTemplate','ck-button__label','fire','bind','span','_commandsButton','30LsCJzy','_createWebSearchButton','4573840UfiJbh','reasoning','_reasoningButton','text','name','tooltip','setWebSearch','AI_CHAT_REASONING','listenTo','toggleWebSearch','_getCapabilityParts','60qrmsNG','reasoningActive','ck-ai-chat-controls-button--commands','disableModelSelector','ck-ai-chat__prompt-capabilities','_createModelSelectionDropdown','style','modelSelectorEnabled','enabled','toggleReasoning','add','471543qoaWHV','description','setModel','selectModel','Commands\x20are\x20not\x20implemented\x20yet.','787534vHiHOk','menuitemradio','addMany','model','ck-ai-chat-controls__model-selection__item-name','AI_CHAT_CAPABILITIES_NO','content','bindTemplate','ck-ai-chat-controls__model-selection__item-description','isVisible','ck-ai-chat-controls-button','AI_CHAT_DISABLE_REASONING','log','webSearch','setModelList','div','2218SRBUHH','AI_CHAT_ENABLE_REASONING','startsWith','ck-ai-chat-controls__model-name','741835qmDsRw','createCollection','button','activeModelId','isEnabled','clear','length','_webSearchButton','AI_CHAT_COMMANDS','source','setReasoning','1553598soMutr','ck-ai-chat-controls__model-selection__item-capabilities','_modelSelectionDropdown','_modelNameView','ck-hidden','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','label','AI_CHAT_ENABLE_WEB_SEARCH','ck-ai-chat-controls__model-selection','_modelSelectionDropdownItems','extendTemplate','toLowerCase','execute','AI_CHAT_SEARCH_WEB'];_0x4466=function(){return _0x4d16b3;};return _0x4466();}class Ts extends _0x2429f2{constructor(_0x16b380,_0x3affb8){const _0x394804=_0x568fbf;super();const _0x2f67da=this[_0x394804(0x20d)],_0x586f8e=this[_0x394804(0x21b)]();this[_0x394804(0x248)]({'tag':_0x394804(0x215),'attributes':{'class':['ck',_0x394804(0x249)],'style':_0x2f67da['to'](_0x394804(0x1fc)),'id':_0x2f67da['to']('id')},'children':[{'tag':_0x394804(0x215),'attributes':{'class':[Lo]},'children':[{'text':_0x2f67da['to'](_0x394804(0x253))}]},{'tag':_0x394804(0x215),'attributes':{'class':[Ro]},'children':[{'tag':_0x394804(0x24c),'children':[{'text':_0x3affb8[_0x394804(0x202)]}]}]},{'tag':_0x394804(0x215),'attributes':{'class':[Do]},'children':_0x586f8e}]}),_0x586f8e[_0x394804(0x208)](this[_0x394804(0x1f5)](_0x16b380,_0x5cad2a,_0x394804(0x232),_0x3affb8[_0x394804(0x243)][_0x394804(0x213)]?.[_0x394804(0x1fe)]??!0x1)),_0x586f8e[_0x394804(0x208)](this[_0x394804(0x1f5)](_0x16b380,_0x408f87,_0x394804(0x257),_0x3affb8[_0x394804(0x243)][_0x394804(0x251)]?.[_0x394804(0x1fe)]??!0x1));}[_0x568fbf(0x1f5)](_0x47280b,_0x47d6a7,_0x2d6587,_0x2951f0){const _0x2f4988=_0x568fbf,_0x41e126=new _0xf93f4f();_0x41e126[_0x2f4988(0x20c)]=_0x47d6a7;const _0x1a0390=new _0x1033b4(_0x47280b);_0x1a0390[_0x2f4988(0x248)]({'tag':_0x2f4988(0x24c),'children':[{'text':_0x4b8cb1(_0x47280b,_0x2d6587)+':\x20'}]});const _0x442635=new _0x1033b4(_0x47280b);return _0x442635[_0x2f4988(0x248)]({'tag':_0x2f4988(0x24c),'children':[{'text':_0x4b8cb1(_0x47280b,_0x2951f0?_0x2f4988(0x23d):_0x2f4988(0x20b))}]}),[_0x41e126,_0x1a0390,_0x442635];}}class yo extends _0x1033b4{constructor(_0x5e0036){const _0x4bbd6e=_0x568fbf;super(_0x5e0036),this[_0x4bbd6e(0x235)](_0x4bbd6e(0x253),void 0x0),this[_0x4bbd6e(0x235)](_0x4bbd6e(0x20f),!0x0);const _0x25608f=this[_0x4bbd6e(0x20d)];this[_0x4bbd6e(0x248)]({'tag':_0x4bbd6e(0x24c),'attributes':{'class':['ck',_0x4bbd6e(0x219),_0x25608f['if'](_0x4bbd6e(0x20f),_0x4bbd6e(0x229),_0x708eaa=>!_0x708eaa)]},'children':[{'text':_0x25608f['to'](_0x4bbd6e(0x253))}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x156c48=_0x10bd;(function(_0x53212a,_0x4159c8){const _0x3dffd8=_0x10bd,_0x2dd649=_0x53212a();while(!![]){try{const _0x38613a=-parseInt(_0x3dffd8(0xe3))/0x1*(parseInt(_0x3dffd8(0x102))/0x2)+-parseInt(_0x3dffd8(0xdd))/0x3+-parseInt(_0x3dffd8(0xf9))/0x4+-parseInt(_0x3dffd8(0xf3))/0x5*(-parseInt(_0x3dffd8(0xd4))/0x6)+-parseInt(_0x3dffd8(0xff))/0x7+parseInt(_0x3dffd8(0xf6))/0x8*(parseInt(_0x3dffd8(0xdf))/0x9)+parseInt(_0x3dffd8(0xfa))/0xa*(parseInt(_0x3dffd8(0xfd))/0xb);if(_0x38613a===_0x4159c8)break;else _0x2dd649['push'](_0x2dd649['shift']());}catch(_0x2c47c0){_0x2dd649['push'](_0x2dd649['shift']());}}}(_0x4785,0xee14b));import{IconSubmit as _0x3fc4cd}from'ckeditor5/src/icons.js';function _0x4785(){const _0x161c88=['set','14602621GBvXbu','update','13510245HavcAY','errorText','bind','7298MWrNQq','MAX_ROWS','trim','maxRows','isEnabled','isEmpty','fieldWrapperChildren','submit','reset','right','keystrokes','AI_CHAT_LABEL_SUBMIT','_setUpAddContextButtonPositioning','ck-ai-chat__prompt-submit-button','_createSubmitButton','isUploadInProgress','setIsUploadInProgress','AI_CHAT_PROMPT_EMPTY_ERROR','extendTemplate','_addContextButtonView','1833702TZKdQa','requestAnimationFrame','execute','px\x20-\x20var(--ck-spacing-tiny))','fire','width','uiLanguageDirection','add','rtl','2961030TzIxkp','style','3072663NNBEve','left','enter','submitButtonView','88yeYmOw','fieldView','element','calc(','ck-ai-chat__prompt-input','destroy','sendUserMessage','setPlaceholderText','target','hasError','minRows','MIN_ROWS','locale','placeholder','value','_queryViewResizeObserver','30XMoaQA','render','queryView','32CHRpza','window','excludeScrollbarsAndBorders','1254020yxvupw','10uVgULA','focusableChildren'];_0x4785=function(){return _0x161c88;};return _0x4785();}import{ButtonView as _0x44194d,AutocompleteView as _0x597bff,createLabeledTextarea as _0x96a0b3}from'ckeditor5/src/ui.js';import{global as _0x1ae48a,isVisible as _0x511c13,Rect as _0x5c38bd,ResizeObserver as _0x22d46a}from'ckeditor5/src/utils.js';import{getTranslation as _0x398ab7}from'../../../aicore/utils/common-translations.js';import{AIChatPromptSuggestionsListView as _0x32f8a0}from'./aichatpromptsuggestionslistview.js';function _0x10bd(_0x2e5477,_0x3088c4){const _0x4785e1=_0x4785();return _0x10bd=function(_0x10bde1,_0x4e6540){_0x10bde1=_0x10bde1-0xc5;let _0x529abd=_0x4785e1[_0x10bde1];return _0x529abd;},_0x10bd(_0x2e5477,_0x3088c4);}import{escape as _0x1c053f}from'es-toolkit/compat';export class AIChatPromptInputView extends _0x597bff{[_0x156c48(0xe2)];static [_0x156c48(0xee)]=0x1;static [_0x156c48(0x103)]=0xc;[_0x156c48(0xd3)];[_0x156c48(0xf2)];constructor(_0x2f9d0a,_0x25995a){const _0x4533f9=_0x156c48;super(_0x2f9d0a,{'queryView':{'label':'','creator':_0x96a0b3,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x32f8a0(_0x2f9d0a),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x4533f9(0xfc)](_0x4533f9(0xc5),!0x0),this[_0x4533f9(0xfc)](_0x4533f9(0xcf),!0x1),this[_0x4533f9(0xd3)]=_0x25995a,this[_0x4533f9(0xf2)]=null,this[_0x4533f9(0xf5)][_0x4533f9(0xe4)][_0x4533f9(0xed)]=AIChatPromptInputView[_0x4533f9(0xee)],this[_0x4533f9(0xf5)][_0x4533f9(0xe4)][_0x4533f9(0x105)]=AIChatPromptInputView[_0x4533f9(0x103)],this[_0x4533f9(0xf5)][_0x4533f9(0xc6)][_0x4533f9(0xdb)](this[_0x4533f9(0xd3)]),this[_0x4533f9(0xcc)](),this[_0x4533f9(0xd2)]({'attributes':{'class':['ck',_0x4533f9(0xe7)]}}),this[_0x4533f9(0xe2)]=this[_0x4533f9(0xce)](),this[_0x4533f9(0xe2)][_0x4533f9(0x101)](_0x4533f9(0x106))['to'](this,_0x4533f9(0xc5),this,_0x4533f9(0xcf),(_0x40cc27,_0x5c03ef)=>!_0x40cc27&&!_0x5c03ef),this[_0x4533f9(0xfb)][_0x4533f9(0xdb)](this[_0x4533f9(0xe2)]);}[_0x156c48(0xf4)](){const _0x27530f=_0x156c48;super[_0x27530f(0xf4)](),this[_0x27530f(0xf5)][_0x27530f(0xc6)][_0x27530f(0xdb)](this[_0x27530f(0xe2)]),this[_0x27530f(0xca)][_0x27530f(0xfc)](_0x27530f(0xe1),(_0x375e7c,_0x37b6a2)=>{const _0xf04eb9=_0x27530f;this[_0xf04eb9(0xcf)]||this[_0xf04eb9(0xc5)]||_0x375e7c[_0xf04eb9(0xeb)]==this[_0xf04eb9(0xf5)][_0xf04eb9(0xe4)][_0xf04eb9(0xe5)]&&(this[_0xf04eb9(0xc7)](),_0x37b6a2());}),this[_0x27530f(0xf5)][_0x27530f(0xe4)]['on'](_0x27530f(0xfe),()=>{const _0x29414a=_0x27530f;this[_0x29414a(0xc5)]=''===this[_0x29414a(0xf5)][_0x29414a(0xe4)][_0x29414a(0xe5)][_0x29414a(0xf1)]?.[_0x29414a(0x104)]();});}[_0x156c48(0xe8)](){const _0x52fe3c=_0x156c48;super[_0x52fe3c(0xe8)](),this[_0x52fe3c(0xf2)]&&this[_0x52fe3c(0xf2)][_0x52fe3c(0xe8)]();}[_0x156c48(0xc7)](){const _0xb3a437=_0x156c48,_0x11abed=this[_0xb3a437(0xf5)][_0xb3a437(0xe4)][_0xb3a437(0xe5)][_0xb3a437(0xf1)]?.[_0xb3a437(0x104)]();if(!_0x11abed)return this[_0xb3a437(0xf5)][_0xb3a437(0x100)]=_0x398ab7(this[_0xb3a437(0xef)],_0xb3a437(0xd1)),void(this[_0xb3a437(0xf5)][_0xb3a437(0xe4)][_0xb3a437(0xec)]=!0x0);this[_0xb3a437(0xf5)][_0xb3a437(0xe4)][_0xb3a437(0xec)]=!0x1;const _0x4d758e=_0x1c053f(_0x11abed);this[_0xb3a437(0xd8)](_0xb3a437(0xe9),_0x4d758e),this[_0xb3a437(0xf5)][_0xb3a437(0xe4)][_0xb3a437(0xc8)]();}[_0x156c48(0xea)](_0x4c2eb7){const _0x25a425=_0x156c48;this[_0x25a425(0xf5)][_0x25a425(0xe4)][_0x25a425(0xfc)](_0x25a425(0xf0),_0x4c2eb7);}[_0x156c48(0xce)](){const _0x223981=_0x156c48,_0x443ddd=new _0x44194d(this[_0x223981(0xef)]);return _0x443ddd[_0x223981(0xfc)]({'icon':_0x3fc4cd,'label':_0x398ab7(this[_0x223981(0xef)],_0x223981(0xcb)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x223981(0xcd),'isEnabled':!0x1}),_0x443ddd['on'](_0x223981(0xd6),()=>{const _0x5637aa=_0x223981;this[_0x5637aa(0xc7)]();}),_0x443ddd;}[_0x156c48(0xd0)](_0x28ccad){const _0x9a3112=_0x156c48;this[_0x9a3112(0xcf)]=_0x28ccad;}[_0x156c48(0xcc)](){const _0x23cb86=_0x156c48,_0x2e8ce0=this[_0x23cb86(0xef)],_0x5bc3ce=()=>{const _0x30fcc6=_0x23cb86;_0x1ae48a[_0x30fcc6(0xf7)][_0x30fcc6(0xd5)](()=>{const _0x417bef=_0x30fcc6;if(_0x511c13(this[_0x417bef(0xe5)])){const _0x388910=new _0x5c38bd(this[_0x417bef(0xf5)][_0x417bef(0xe4)][_0x417bef(0xe5)]),_0x494bd4=new _0x5c38bd(this[_0x417bef(0xd3)][_0x417bef(0xe5)]),_0x5c57bf=_0x388910[_0x417bef(0xd9)],_0x38db02=_0x417bef(0xdc)===_0x2e8ce0[_0x417bef(0xda)]?_0x417bef(0xc9):_0x417bef(0xe0);_0x388910[_0x417bef(0xf8)]();const _0x4ee558=_0x5c57bf-_0x388910[_0x417bef(0xd9)]+0x1;this[_0x417bef(0xd3)][_0x417bef(0xe5)][_0x417bef(0xde)][_0x38db02]=_0x417bef(0xe6)+(_0x5c57bf-_0x494bd4[_0x417bef(0xd9)]-_0x4ee558)+_0x417bef(0xd7);}});};this[_0x23cb86(0xf5)][_0x23cb86(0xe4)]['on'](_0x23cb86(0xfe),_0x5bc3ce),this['on'](_0x23cb86(0xf4),()=>{const _0x43a8f9=_0x23cb86;_0x5bc3ce(),this[_0x43a8f9(0xf2)]=new _0x22d46a(this[_0x43a8f9(0xf5)][_0x43a8f9(0xe4)][_0x43a8f9(0xe5)],()=>{_0x5bc3ce();});});}}
23
+ const _0x4b0ff3=_0x5cca;(function(_0x530cfb,_0x562ef9){const _0x32ca8f=_0x5cca,_0x68b726=_0x530cfb();while(!![]){try{const _0x17b54a=-parseInt(_0x32ca8f(0x212))/0x1*(parseInt(_0x32ca8f(0x224))/0x2)+parseInt(_0x32ca8f(0x225))/0x3*(-parseInt(_0x32ca8f(0x20a))/0x4)+-parseInt(_0x32ca8f(0x1f7))/0x5+-parseInt(_0x32ca8f(0x20f))/0x6*(-parseInt(_0x32ca8f(0x1f4))/0x7)+-parseInt(_0x32ca8f(0x22e))/0x8+parseInt(_0x32ca8f(0x1fe))/0x9+parseInt(_0x32ca8f(0x20d))/0xa;if(_0x17b54a===_0x562ef9)break;else _0x68b726['push'](_0x68b726['shift']());}catch(_0x361884){_0x68b726['push'](_0x68b726['shift']());}}}(_0x23d9,0xb6bee));import{IconSubmit as _0x2c17cd}from'ckeditor5/src/icons.js';import{ButtonView as _0x5d2e73,AutocompleteView as _0x2f237d,createLabeledTextarea as _0x3896db}from'ckeditor5/src/ui.js';function _0x5cca(_0x3a333b,_0x55796a){const _0x23d9f7=_0x23d9();return _0x5cca=function(_0x5cca5f,_0x479bf3){_0x5cca5f=_0x5cca5f-0x1f4;let _0x5c5db4=_0x23d9f7[_0x5cca5f];return _0x5c5db4;},_0x5cca(_0x3a333b,_0x55796a);}import{global as _0x2c5e28,isVisible as _0x19dbe4,Rect as _0x536464,ResizeObserver as _0x45c33c}from'ckeditor5/src/utils.js';import{getTranslation as _0x38758a}from'../../../aicore/utils/common-translations.js';import{AIChatPromptSuggestionsListView as _0x5ba0ab}from'./aichatpromptsuggestionslistview.js';import{escape as _0x322687}from'es-toolkit/compat';export class AIChatPromptInputView extends _0x2f237d{[_0x4b0ff3(0x1f5)];static [_0x4b0ff3(0x214)]=0x1;static [_0x4b0ff3(0x216)]=0xc;[_0x4b0ff3(0x206)];[_0x4b0ff3(0x1f6)];constructor(_0x21b4ce,_0x42349f){const _0x1875d4=_0x4b0ff3;super(_0x21b4ce,{'queryView':{'label':'','creator':_0x3896db,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x5ba0ab(_0x21b4ce),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x1875d4(0x21c)](_0x1875d4(0x203),!0x0),this[_0x1875d4(0x21c)](_0x1875d4(0x221),!0x1),this[_0x1875d4(0x206)]=_0x42349f,this[_0x1875d4(0x1f6)]=null,this[_0x1875d4(0x201)][_0x1875d4(0x222)][_0x1875d4(0x204)]=AIChatPromptInputView[_0x1875d4(0x214)],this[_0x1875d4(0x201)][_0x1875d4(0x222)][_0x1875d4(0x22f)]=AIChatPromptInputView[_0x1875d4(0x216)],this[_0x1875d4(0x201)][_0x1875d4(0x233)][_0x1875d4(0x217)](this[_0x1875d4(0x206)]),this[_0x1875d4(0x227)](),this[_0x1875d4(0x232)]({'attributes':{'class':['ck',_0x1875d4(0x205)]}}),this[_0x1875d4(0x1f5)]=this[_0x1875d4(0x210)](),this[_0x1875d4(0x1f5)][_0x1875d4(0x208)](_0x1875d4(0x229))['to'](this,_0x1875d4(0x203),this,_0x1875d4(0x221),(_0x551e95,_0x513c90)=>!_0x551e95&&!_0x513c90),this[_0x1875d4(0x223)][_0x1875d4(0x217)](this[_0x1875d4(0x1f5)]);}[_0x4b0ff3(0x1fb)](){const _0x15c1f7=_0x4b0ff3;super[_0x15c1f7(0x1fb)](),this[_0x15c1f7(0x201)][_0x15c1f7(0x233)][_0x15c1f7(0x217)](this[_0x15c1f7(0x1f5)]),this[_0x15c1f7(0x211)][_0x15c1f7(0x21c)](_0x15c1f7(0x219),(_0x28afdb,_0x176ebf)=>{const _0xf7dd15=_0x15c1f7;this[_0xf7dd15(0x221)]||this[_0xf7dd15(0x203)]||_0x28afdb[_0xf7dd15(0x231)]==this[_0xf7dd15(0x201)][_0xf7dd15(0x222)][_0xf7dd15(0x220)]&&(this[_0xf7dd15(0x22a)](),_0x176ebf());}),this[_0x15c1f7(0x201)][_0x15c1f7(0x222)]['on'](_0x15c1f7(0x21d),()=>{const _0x586c6f=_0x15c1f7;this[_0x586c6f(0x203)]=''===this[_0x586c6f(0x201)][_0x586c6f(0x222)][_0x586c6f(0x220)][_0x586c6f(0x209)]?.[_0x586c6f(0x213)]();});}[_0x4b0ff3(0x230)](){const _0x3433df=_0x4b0ff3;super[_0x3433df(0x230)](),this[_0x3433df(0x1f6)]&&this[_0x3433df(0x1f6)][_0x3433df(0x230)]();}[_0x4b0ff3(0x22a)](){const _0x2ab4ed=_0x4b0ff3,_0x484b14=this[_0x2ab4ed(0x201)][_0x2ab4ed(0x222)][_0x2ab4ed(0x220)][_0x2ab4ed(0x209)]?.[_0x2ab4ed(0x213)]();if(!_0x484b14)return this[_0x2ab4ed(0x201)][_0x2ab4ed(0x22c)]=_0x38758a(this[_0x2ab4ed(0x215)],_0x2ab4ed(0x20b)),void(this[_0x2ab4ed(0x201)][_0x2ab4ed(0x222)][_0x2ab4ed(0x234)]=!0x0);this[_0x2ab4ed(0x201)][_0x2ab4ed(0x222)][_0x2ab4ed(0x234)]=!0x1;const _0x3e2173=_0x322687(_0x484b14);this[_0x2ab4ed(0x1fc)](_0x2ab4ed(0x21b),_0x3e2173),this[_0x2ab4ed(0x201)][_0x2ab4ed(0x222)][_0x2ab4ed(0x22b)]();}[_0x4b0ff3(0x1fa)](_0x53c1ac){const _0x216b41=_0x4b0ff3;this[_0x216b41(0x201)][_0x216b41(0x222)][_0x216b41(0x21c)](_0x216b41(0x202),_0x53c1ac);}[_0x4b0ff3(0x210)](){const _0x1d6cc3=_0x4b0ff3,_0x342e14=new _0x5d2e73(this[_0x1d6cc3(0x215)]);return _0x342e14[_0x1d6cc3(0x21c)]({'icon':_0x2c17cd,'label':_0x38758a(this[_0x1d6cc3(0x215)],_0x1d6cc3(0x21e)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x1d6cc3(0x22d),'isEnabled':!0x1}),_0x342e14['on'](_0x1d6cc3(0x20e),()=>{const _0x2d40ee=_0x1d6cc3;this[_0x2d40ee(0x22a)]();}),_0x342e14;}[_0x4b0ff3(0x207)](_0x1ca7d8){const _0x12048d=_0x4b0ff3;this[_0x12048d(0x221)]=_0x1ca7d8;}[_0x4b0ff3(0x227)](){const _0xbf62a3=_0x4b0ff3,_0x27ac75=this[_0xbf62a3(0x215)],_0x18028a=()=>{const _0x3233ed=_0xbf62a3;_0x2c5e28[_0x3233ed(0x1ff)][_0x3233ed(0x218)](()=>{const _0x4e5d93=_0x3233ed;if(_0x19dbe4(this[_0x4e5d93(0x220)])){const _0xa0444b=new _0x536464(this[_0x4e5d93(0x201)][_0x4e5d93(0x222)][_0x4e5d93(0x220)]),_0x124ef9=new _0x536464(this[_0x4e5d93(0x206)][_0x4e5d93(0x220)]),_0xd075c0=_0xa0444b[_0x4e5d93(0x20c)],_0x23c3e0=_0x4e5d93(0x1fd)===_0x27ac75[_0x4e5d93(0x1f8)]?_0x4e5d93(0x226):_0x4e5d93(0x200);_0xa0444b[_0x4e5d93(0x228)]();const _0x86d52e=_0xd075c0-_0xa0444b[_0x4e5d93(0x20c)]+0x1;this[_0x4e5d93(0x206)][_0x4e5d93(0x220)][_0x4e5d93(0x1f9)][_0x23c3e0]=_0x4e5d93(0x21f)+(_0xd075c0-_0x124ef9[_0x4e5d93(0x20c)]-_0x86d52e)+_0x4e5d93(0x21a);}});};this[_0xbf62a3(0x201)][_0xbf62a3(0x222)]['on'](_0xbf62a3(0x21d),_0x18028a),this['on'](_0xbf62a3(0x1fb),()=>{const _0x2e79e4=_0xbf62a3;_0x18028a(),this[_0x2e79e4(0x1f6)]=new _0x45c33c(this[_0x2e79e4(0x201)][_0x2e79e4(0x222)][_0x2e79e4(0x220)],()=>{_0x18028a();});});}}function _0x23d9(){const _0x236a10=['extendTemplate','fieldWrapperChildren','hasError','91YlEsJH','submitButtonView','_queryViewResizeObserver','6668310RPWRQp','uiLanguageDirection','style','setPlaceholderText','render','fire','rtl','9471807nScvHQ','window','left','queryView','placeholder','isEmpty','minRows','ck-ai-chat__prompt-input','_addContextButtonView','setIsUploadInProgress','bind','value','1243876fDtxOD','AI_CHAT_PROMPT_EMPTY_ERROR','width','21780770dJDiId','execute','666876WtPtVg','_createSubmitButton','keystrokes','2tykHaV','trim','MIN_ROWS','locale','MAX_ROWS','add','requestAnimationFrame','enter','px\x20-\x20var(--ck-spacing-tiny))','sendUserMessage','set','update','AI_CHAT_LABEL_SUBMIT','calc(','element','isUploadInProgress','fieldView','focusableChildren','432010paCqUO','9nMegkG','right','_setUpAddContextButtonPositioning','excludeScrollbarsAndBorders','isEnabled','submit','reset','errorText','ck-ai-chat__prompt-submit-button','9826344VvYnnG','maxRows','destroy','target'];_0x23d9=function(){return _0x236a10;};return _0x23d9();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x541f(_0x579a09,_0x7b1c6){const _0x1e8e07=_0x1e8e();return _0x541f=function(_0x541f35,_0x311de8){_0x541f35=_0x541f35-0x176;let _0x5982c3=_0x1e8e07[_0x541f35];return _0x5982c3;},_0x541f(_0x579a09,_0x7b1c6);}const _0x576f0b=_0x541f;(function(_0x19297d,_0xf42c91){const _0x166cba=_0x541f,_0x38424f=_0x19297d();while(!![]){try{const _0x2b3b79=-parseInt(_0x166cba(0x179))/0x1+parseInt(_0x166cba(0x17e))/0x2+parseInt(_0x166cba(0x176))/0x3+parseInt(_0x166cba(0x180))/0x4*(parseInt(_0x166cba(0x17b))/0x5)+parseInt(_0x166cba(0x17f))/0x6*(-parseInt(_0x166cba(0x178))/0x7)+parseInt(_0x166cba(0x17d))/0x8+-parseInt(_0x166cba(0x182))/0x9*(parseInt(_0x166cba(0x181))/0xa);if(_0x2b3b79===_0xf42c91)break;else _0x38424f['push'](_0x38424f['shift']());}catch(_0x12a4de){_0x38424f['push'](_0x38424f['shift']());}}}(_0x1e8e,0x4bbc3));import{ListView as _0x1d52cc}from'ckeditor5/src/ui.js';function _0x1e8e(){const _0x51e114=['5eosYnQ','filter','290056njmLAk','841570mzTakq','6sjWjVz','403556TWsMst','118280eCCnqv','261jiRGTP','1434099JVwedj','length','2490061cRTLQQ','27018ZBsplZ','items'];_0x1e8e=function(){return _0x51e114;};return _0x1e8e();}export class AIChatPromptSuggestionsListView extends _0x1d52cc{[_0x576f0b(0x17c)](){const _0x2c49bd=_0x576f0b;let _0x147255=0x0;for(const _0x58c19b of this[_0x2c49bd(0x17a)])_0x147255+=_0x58c19b[_0x2c49bd(0x17a)][_0x2c49bd(0x177)];return{'resultsCount':_0x147255,'totalItemsCount':_0x147255};}}
23
+ const _0x428bc3=_0xe611;(function(_0x2e7d72,_0x2cbac5){const _0x1ea22d=_0xe611,_0x3d56b0=_0x2e7d72();while(!![]){try{const _0x396e87=-parseInt(_0x1ea22d(0x105))/0x1+-parseInt(_0x1ea22d(0x10c))/0x2+parseInt(_0x1ea22d(0x10b))/0x3*(-parseInt(_0x1ea22d(0x10f))/0x4)+-parseInt(_0x1ea22d(0x107))/0x5*(parseInt(_0x1ea22d(0x102))/0x6)+parseInt(_0x1ea22d(0x10a))/0x7+parseInt(_0x1ea22d(0x10d))/0x8*(-parseInt(_0x1ea22d(0x108))/0x9)+-parseInt(_0x1ea22d(0x109))/0xa*(-parseInt(_0x1ea22d(0x104))/0xb);if(_0x396e87===_0x2cbac5)break;else _0x3d56b0['push'](_0x3d56b0['shift']());}catch(_0x4fdee4){_0x3d56b0['push'](_0x3d56b0['shift']());}}}(_0x536c,0x9b1c2));function _0xe611(_0x5de038,_0x42da96){const _0x536cc9=_0x536c();return _0xe611=function(_0xe6117b,_0x508492){_0xe6117b=_0xe6117b-0x102;let _0x5d8eb6=_0x536cc9[_0xe6117b];return _0x5d8eb6;},_0xe611(_0x5de038,_0x42da96);}import{ListView as _0x355f65}from'ckeditor5/src/ui.js';export class AIChatPromptSuggestionsListView extends _0x355f65{[_0x428bc3(0x106)](){const _0x3d73a1=_0x428bc3;let _0x5b669d=0x0;for(const _0x49ccd4 of this[_0x3d73a1(0x103)])_0x5b669d+=_0x49ccd4[_0x3d73a1(0x103)][_0x3d73a1(0x10e)];return{'resultsCount':_0x5b669d,'totalItemsCount':_0x5b669d};}}function _0x536c(){const _0x560c6e=['2514ykLKmC','items','88JnOfkQ','1078944tBKSqK','filter','6485kwwMve','3499065EjThoo','4565620GFwYix','7383894apqeZL','6WAvFnK','1967026VTTMgM','16GXIkvw','length','1377076BDdCVk'];_0x536c=function(){return _0x560c6e;};return _0x536c();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2bcbf9=_0x1254;(function(_0x420b60,_0x4eaa19){const _0x510549=_0x1254,_0x11fbfa=_0x420b60();while(!![]){try{const _0xefc6e0=-parseInt(_0x510549(0x98))/0x1*(-parseInt(_0x510549(0xa4))/0x2)+-parseInt(_0x510549(0x95))/0x3*(-parseInt(_0x510549(0xb5))/0x4)+parseInt(_0x510549(0xb3))/0x5+-parseInt(_0x510549(0x97))/0x6*(-parseInt(_0x510549(0xae))/0x7)+-parseInt(_0x510549(0xac))/0x8+parseInt(_0x510549(0x96))/0x9+-parseInt(_0x510549(0x9d))/0xa;if(_0xefc6e0===_0x4eaa19)break;else _0x11fbfa['push'](_0x11fbfa['shift']());}catch(_0x337126){_0x11fbfa['push'](_0x11fbfa['shift']());}}}(_0x55c9,0x86596));import{HighlightedTextView as _0x29f162,IconView as _0x22ff3c,ListItemView as _0x1298e9}from'ckeditor5/src/ui.js';import{escapeRegExp as _0x394b2d}from'es-toolkit/compat';import{AIContextItemType as _0x10a073}from'../../../../aicore/model/aicontext.js';import{IconFileUpload as _0x480905,IconCheck as _0x4f33ca,IconDocument as _0x11fdd7,IconDocumentOutline as _0x140786,IconLink as _0xbbf8e1}from'@ckeditor/ckeditor5-icons';function _0x55c9(){const _0x798174=['resource','FILE','_createTitleView','label','180975vmANky','ck-ai-chat-resources__item','148ZZALFt','text','set','type','setTemplate','extendTemplate','isInContext','_titleView','_setupTemplate','trim','content','execute','70365FamPQP','8657253NWpszk','49404tYAbtG','15993FfpCzN','highlightText','ck-ai-chat-resources__item--in-context','ck-ai-chat-resources__item-title','span','6308810CNwlHV','updateResourceState','bindTemplate','TEXT','DOCUMENT','_updateIcon','_iconView','4UTrtpG','getResourceIcon','render','_createIconView','URL','ck-ai-chat-resources__item__icon','ck-hidden','div','8566560EzLPjx','isVisible','301QpSEsY'];_0x55c9=function(){return _0x798174;};return _0x55c9();}const Rr=_0x2bcbf9(0xb4),Tr=_0x2bcbf9(0x9a),Lr=_0x2bcbf9(0x9b),qr=_0x2bcbf9(0xa9);function _0x1254(_0x5274bc,_0x51e9ea){const _0x55c925=_0x55c9();return _0x1254=function(_0x1254cd,_0x1a78b4){_0x1254cd=_0x1254cd-0x8d;let _0x4d511a=_0x55c925[_0x1254cd];return _0x4d511a;},_0x1254(_0x5274bc,_0x51e9ea);}export class AIChatResourceListItemView extends _0x1298e9{[_0x2bcbf9(0xaf)];[_0x2bcbf9(0x90)];[_0x2bcbf9(0xa3)];constructor(_0x5cdc00,_0x3827c2){const _0x2d08c9=_0x2bcbf9;super(_0x5cdc00),this[_0x2d08c9(0xaf)]=_0x3827c2,this[_0x2d08c9(0xb7)](_0x2d08c9(0x8f),!!_0x3827c2[_0x2d08c9(0x8f)]),this[_0x2d08c9(0x90)]=this[_0x2d08c9(0xb1)](),this[_0x2d08c9(0xa3)]=this[_0x2d08c9(0xa7)](),this[_0x2d08c9(0x91)]();}[_0x2bcbf9(0xa6)](){const _0x41cab8=_0x2bcbf9;super[_0x41cab8(0xa6)]();}[_0x2bcbf9(0xa5)](_0x1d95bf){const _0x4b55f4=_0x2bcbf9;if(_0x1d95bf[_0x4b55f4(0x8f)])return _0x4f33ca;switch(_0x1d95bf[_0x4b55f4(0xb8)]){case _0x10a073[_0x4b55f4(0xa1)]:return _0x11fdd7;case _0x10a073[_0x4b55f4(0xa8)]:return _0xbbf8e1;case _0x10a073[_0x4b55f4(0xb0)]:case _0x10a073[_0x4b55f4(0xa0)]:return _0x480905;default:return _0x140786;}}[_0x2bcbf9(0x99)](_0x16d4c0){const _0xd4b699=_0x2bcbf9;if(!_0x16d4c0||''===_0x16d4c0[_0xd4b699(0x92)]())return void this[_0xd4b699(0x90)][_0xd4b699(0x99)](null);const _0x5ca58c=new RegExp(_0x394b2d(_0x16d4c0),'gi');this[_0xd4b699(0x90)][_0xd4b699(0x99)](_0x5ca58c);}[_0x2bcbf9(0x9e)](_0x1cc93f){const _0x5e4b23=_0x2bcbf9;this[_0x5e4b23(0xaf)][_0x5e4b23(0x8f)]=_0x1cc93f,this[_0x5e4b23(0x8f)]=_0x1cc93f,this[_0x5e4b23(0xa2)]();}[_0x2bcbf9(0xb1)](){const _0x4d0d53=_0x2bcbf9,_0x284dd5=new _0x29f162();return _0x284dd5[_0x4d0d53(0xb6)]=this[_0x4d0d53(0xaf)][_0x4d0d53(0xb2)],_0x284dd5[_0x4d0d53(0x8e)]({'tag':_0x4d0d53(0x9c),'attributes':{'class':[Lr]}}),_0x284dd5;}[_0x2bcbf9(0xa7)](){const _0x2a044f=_0x2bcbf9,_0x30f388=new _0x22ff3c();return _0x30f388[_0x2a044f(0x93)]=this[_0x2a044f(0xa5)](this[_0x2a044f(0xaf)]),_0x30f388;}[_0x2bcbf9(0x91)](){const _0x190f99=_0x2bcbf9,_0x3a4844=this[_0x190f99(0x9f)];this[_0x190f99(0x8d)]({'tag':_0x190f99(0xab),'attributes':{'class':[Rr,_0x3a4844['if'](_0x190f99(0xad),_0x190f99(0xaa),_0x1ce861=>!_0x1ce861),_0x3a4844['if'](_0x190f99(0x8f),Tr)]},'children':[{'tag':_0x190f99(0xab),'attributes':{'class':[qr]},'children':[this[_0x190f99(0xa3)]]},this[_0x190f99(0x90)]],'on':{'click':_0x3a4844['to'](_0x190f99(0x94))}});}[_0x2bcbf9(0xa2)](){const _0x579458=_0x2bcbf9;this[_0x579458(0xa3)][_0x579458(0x93)]=this[_0x579458(0xa5)](this[_0x579458(0xaf)]);}}
23
+ function _0x1233(_0x59c6c1,_0x1bae5f){const _0x102673=_0x1026();return _0x1233=function(_0x12333a,_0x2bc1c3){_0x12333a=_0x12333a-0x198;let _0x5623a0=_0x102673[_0x12333a];return _0x5623a0;},_0x1233(_0x59c6c1,_0x1bae5f);}const _0x16dbf3=_0x1233;(function(_0x1e06c3,_0x54bf17){const _0x24ddcc=_0x1233,_0x2fffa3=_0x1e06c3();while(!![]){try{const _0x4c0f43=parseInt(_0x24ddcc(0x19a))/0x1+parseInt(_0x24ddcc(0x1c3))/0x2+-parseInt(_0x24ddcc(0x1c2))/0x3*(-parseInt(_0x24ddcc(0x1a7))/0x4)+parseInt(_0x24ddcc(0x198))/0x5*(-parseInt(_0x24ddcc(0x1a1))/0x6)+-parseInt(_0x24ddcc(0x1af))/0x7*(parseInt(_0x24ddcc(0x1b0))/0x8)+parseInt(_0x24ddcc(0x1ba))/0x9+-parseInt(_0x24ddcc(0x1ac))/0xa;if(_0x4c0f43===_0x54bf17)break;else _0x2fffa3['push'](_0x2fffa3['shift']());}catch(_0x27733c){_0x2fffa3['push'](_0x2fffa3['shift']());}}}(_0x1026,0x344ce));import{HighlightedTextView as _0x2680ed,IconView as _0x377670,ListItemView as _0x1c8265}from'ckeditor5/src/ui.js';import{escapeRegExp as _0x24a264}from'es-toolkit/compat';function _0x1026(){const _0x551311=['ck-hidden','_iconView','_updateIcon','span','6KQEYAD','extendTemplate','ck-ai-chat-resources__item--in-context','type','isVisible','URL','10228osmkSw','set','render','text','ck-ai-chat-resources__item__icon','5576640IzJyIW','TEXT','FILE','1093253qTLeTy','8VLqaGT','content','resource','_titleView','isInContext','_createTitleView','setTemplate','DOCUMENT','execute','div','3575259VJzeJN','updateResourceState','ck-ai-chat-resources__item-title','label','_createIconView','bindTemplate','highlightText','ck-ai-chat-resources__item','501tkBNUz','417254rGSTJD','1383630DtYZyz','getResourceIcon','171894XIcUYe','_setupTemplate','trim'];_0x1026=function(){return _0x551311;};return _0x1026();}import{AIContextItemType as _0x38b44d}from'../../../../aicore/model/aicontext.js';import{IconFileUpload as _0x159058,IconCheck as _0x3f8512,IconDocument as _0xab1b32,IconDocumentOutline as _0x1f2089,IconLink as _0x285984}from'@ckeditor/ckeditor5-icons';const Rr=_0x16dbf3(0x1c1),Tr=_0x16dbf3(0x1a3),Ar=_0x16dbf3(0x1bc),Er=_0x16dbf3(0x1ab);export class AIChatResourceListItemView extends _0x1c8265{[_0x16dbf3(0x1b2)];[_0x16dbf3(0x1b3)];[_0x16dbf3(0x19e)];constructor(_0x13747d,_0x58bf06){const _0x52c26e=_0x16dbf3;super(_0x13747d),this[_0x52c26e(0x1b2)]=_0x58bf06,this[_0x52c26e(0x1a8)](_0x52c26e(0x1b4),!!_0x58bf06[_0x52c26e(0x1b4)]),this[_0x52c26e(0x1b3)]=this[_0x52c26e(0x1b5)](),this[_0x52c26e(0x19e)]=this[_0x52c26e(0x1be)](),this[_0x52c26e(0x19b)]();}[_0x16dbf3(0x1a9)](){const _0x329d7e=_0x16dbf3;super[_0x329d7e(0x1a9)]();}[_0x16dbf3(0x199)](_0x523a76){const _0x93ecb7=_0x16dbf3;if(_0x523a76[_0x93ecb7(0x1b4)])return _0x3f8512;switch(_0x523a76[_0x93ecb7(0x1a4)]){case _0x38b44d[_0x93ecb7(0x1b7)]:return _0xab1b32;case _0x38b44d[_0x93ecb7(0x1a6)]:return _0x285984;case _0x38b44d[_0x93ecb7(0x1ae)]:case _0x38b44d[_0x93ecb7(0x1ad)]:return _0x159058;default:return _0x1f2089;}}[_0x16dbf3(0x1c0)](_0x35b00f){const _0x22662e=_0x16dbf3;if(!_0x35b00f||''===_0x35b00f[_0x22662e(0x19c)]())return void this[_0x22662e(0x1b3)][_0x22662e(0x1c0)](null);const _0x234d0d=new RegExp(_0x24a264(_0x35b00f),'gi');this[_0x22662e(0x1b3)][_0x22662e(0x1c0)](_0x234d0d);}[_0x16dbf3(0x1bb)](_0x5f0af2){const _0x234b46=_0x16dbf3;this[_0x234b46(0x1b2)][_0x234b46(0x1b4)]=_0x5f0af2,this[_0x234b46(0x1b4)]=_0x5f0af2,this[_0x234b46(0x19f)]();}[_0x16dbf3(0x1b5)](){const _0x2a704e=_0x16dbf3,_0x2648cf=new _0x2680ed();return _0x2648cf[_0x2a704e(0x1aa)]=this[_0x2a704e(0x1b2)][_0x2a704e(0x1bd)],_0x2648cf[_0x2a704e(0x1a2)]({'tag':_0x2a704e(0x1a0),'attributes':{'class':[Ar]}}),_0x2648cf;}[_0x16dbf3(0x1be)](){const _0x56dd2c=_0x16dbf3,_0x5b0102=new _0x377670();return _0x5b0102[_0x56dd2c(0x1b1)]=this[_0x56dd2c(0x199)](this[_0x56dd2c(0x1b2)]),_0x5b0102;}[_0x16dbf3(0x19b)](){const _0x2b3e3f=_0x16dbf3,_0x5046cb=this[_0x2b3e3f(0x1bf)];this[_0x2b3e3f(0x1b6)]({'tag':_0x2b3e3f(0x1b9),'attributes':{'class':[Rr,_0x5046cb['if'](_0x2b3e3f(0x1a5),_0x2b3e3f(0x19d),_0x350765=>!_0x350765),_0x5046cb['if'](_0x2b3e3f(0x1b4),Tr)]},'children':[{'tag':_0x2b3e3f(0x1b9),'attributes':{'class':[Er]},'children':[this[_0x2b3e3f(0x19e)]]},this[_0x2b3e3f(0x1b3)]],'on':{'click':_0x5046cb['to'](_0x2b3e3f(0x1b8))}});}[_0x16dbf3(0x19f)](){const _0xcb259b=_0x16dbf3;this[_0xcb259b(0x19e)][_0xcb259b(0x1b1)]=this[_0xcb259b(0x199)](this[_0xcb259b(0x1b2)]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5ef738=_0x14ab;(function(_0x276f41,_0x1b1587){const _0x1562ee=_0x14ab,_0x50b0fc=_0x276f41();while(!![]){try{const _0x33eb20=-parseInt(_0x1562ee(0x13f))/0x1*(-parseInt(_0x1562ee(0x156))/0x2)+parseInt(_0x1562ee(0x123))/0x3*(-parseInt(_0x1562ee(0x13b))/0x4)+-parseInt(_0x1562ee(0x154))/0x5*(parseInt(_0x1562ee(0x13c))/0x6)+parseInt(_0x1562ee(0x14a))/0x7*(-parseInt(_0x1562ee(0x155))/0x8)+parseInt(_0x1562ee(0x128))/0x9+parseInt(_0x1562ee(0x141))/0xa+parseInt(_0x1562ee(0x135))/0xb;if(_0x33eb20===_0x1b1587)break;else _0x50b0fc['push'](_0x50b0fc['shift']());}catch(_0x8a1ea3){_0x50b0fc['push'](_0x50b0fc['shift']());}}}(_0x1aa8,0xb05c0));function _0x14ab(_0x1044a6,_0x1e9bf5){const _0x1aa867=_0x1aa8();return _0x14ab=function(_0x14ab06,_0x3e7a39){_0x14ab06=_0x14ab06-0x121;let _0x376ce1=_0x1aa867[_0x14ab06];return _0x376ce1;},_0x14ab(_0x1044a6,_0x1e9bf5);}import{BalloonPanelView as _0x566c93,ButtonView as _0x4cb224,clickOutsideHandler as _0x255d9f,FormHeaderView as _0x3b4fb9}from'ckeditor5/src/ui.js';function _0x1aa8(){const _0x4aa5b1=['114DAJcyd','children','delete','2rphnxt','_bodyCollection','2147190Pqbvmh','pin','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_source','ck-button-icon\x20ck-button-back','element','_config','populateSourceResourceBalloon','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','onBackToContext','14TkisTU','_setupSingleResourceBalloonClickOutsideHandler','values','addResourceToContext','label','_createBalloonHeader','getTargetElement','_locale','extendTemplate','get','207185qIpUlw','5541176ffgqTC','412054NJxZhu','source','_addSourceResourceContent','show','add','isAnyResourceBalloonVisible','updateResourceState','showSourceResourcesBalloon','1859937nQRefD','_createSourceResourceBalloonPanel','onBalloonClosed','_createBalloonResourcesView','execute','2214414UNqPHW','_sourceResourceBalloons','clear','isVisible','onResourceSelected','ck-ai-chat-context-controls__source-balloon-panel','setResources','getLimiterElement','destroy','hide','_getResourcesViewFromBalloon','onLoadSourceResources','_createBackButton','29063375zquayr','content','set','closeSourceResourceBalloon','resource','loadSourceResources','4LhEwWE'];_0x1aa8=function(){return _0x4aa5b1;};return _0x1aa8();}import{IconPreviousArrow as _0x4bf1c9}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x3a65de}from'../../../../aicore/utils/common-translations.js';import{AIChatContextResourcesView as _0x4cf05c}from'./aichatresourcesview.js';const Or=_0x5ef738(0x12d),Hr=_0x5ef738(0x144),Fr=_0x5ef738(0x143);export class AIChatResourcesBalloonView{[_0x5ef738(0x129)]=new Map();[_0x5ef738(0x140)];[_0x5ef738(0x151)];[_0x5ef738(0x146)];constructor(_0x48f02,_0x26da21,_0x583e8d){const _0x39ca8b=_0x5ef738;this[_0x39ca8b(0x151)]=_0x48f02,this[_0x39ca8b(0x140)]=_0x26da21,this[_0x39ca8b(0x146)]=_0x583e8d;}[_0x5ef738(0x122)](_0x5ddd59){const _0x993041=_0x5ef738;let _0x35afc5=this[_0x993041(0x129)][_0x993041(0x153)](_0x5ddd59['id']);_0x35afc5||(_0x35afc5=this[_0x993041(0x124)](),this[_0x993041(0x129)][_0x993041(0x137)](_0x5ddd59['id'],_0x35afc5),this[_0x993041(0x14b)](_0x35afc5)),this[_0x993041(0x158)](_0x35afc5,_0x5ddd59),_0x35afc5[_0x993041(0x159)]();const _0x443a33=this[_0x993041(0x146)][_0x993041(0x150)]();_0x443a33&&_0x35afc5[_0x993041(0x142)]({'target':_0x443a33,'limiter':this[_0x993041(0x146)][_0x993041(0x12f)]()});}[_0x5ef738(0x147)](_0x5cba20,_0x3dc0f2,_0x524fc5){const _0x236fbd=_0x5ef738,_0x49d6bd=this[_0x236fbd(0x129)][_0x236fbd(0x153)](_0x5cba20);if(!_0x49d6bd)return;const _0x1df4ee=this[_0x236fbd(0x132)](_0x49d6bd);_0x1df4ee&&_0x1df4ee[_0x236fbd(0x12e)](_0x3dc0f2,_0x524fc5);}[_0x5ef738(0x138)](_0xbae285){const _0x43606b=_0x5ef738,_0x5b8efe=this[_0x43606b(0x129)][_0x43606b(0x153)](_0xbae285);_0x5b8efe&&requestAnimationFrame(()=>{const _0x2734f1=_0x43606b;_0x5b8efe[_0x2734f1(0x131)](),this[_0x2734f1(0x129)][_0x2734f1(0x13e)](_0xbae285),this[_0x2734f1(0x146)][_0x2734f1(0x125)]();});}[_0x5ef738(0x15b)](){const _0x324a2e=_0x5ef738;for(const _0x178a1f of this[_0x324a2e(0x129)][_0x324a2e(0x14c)]())if(_0x178a1f[_0x324a2e(0x12b)])return!0x0;return!0x1;}[_0x5ef738(0x121)](_0x549842,_0x1d2bdf,_0x117cd7){const _0x19174f=_0x5ef738,_0x4af784=this[_0x19174f(0x129)][_0x19174f(0x153)](_0x549842);if(!_0x4af784||!_0x4af784[_0x19174f(0x12b)])return;const _0x1472eb=this[_0x19174f(0x146)][_0x19174f(0x150)]();if(!_0x1472eb)return;_0x4af784[_0x19174f(0x142)]({'target':_0x1472eb,'limiter':this[_0x19174f(0x146)][_0x19174f(0x12f)]()});const _0x3f2b1d=this[_0x19174f(0x132)](_0x4af784);_0x3f2b1d&&_0x3f2b1d[_0x19174f(0x121)](_0x1d2bdf,_0x117cd7);}[_0x5ef738(0x130)](){const _0x37c132=_0x5ef738;for(const _0x2686dd of this[_0x37c132(0x129)][_0x37c132(0x14c)]())_0x2686dd[_0x37c132(0x130)]();this[_0x37c132(0x129)][_0x37c132(0x12a)]();}[_0x5ef738(0x124)](){const _0x53f9cb=_0x5ef738,_0x3504a1=new _0x566c93(this[_0x53f9cb(0x151)]);return _0x3504a1[_0x53f9cb(0x152)]({'attributes':{'class':Or}}),this[_0x53f9cb(0x140)][_0x53f9cb(0x15a)](_0x3504a1),_0x3504a1;}[_0x5ef738(0x158)](_0x5da35b,_0x153495){const _0x26e167=_0x5ef738;_0x5da35b[_0x26e167(0x136)][_0x26e167(0x12a)]();const _0x4e5064=this[_0x26e167(0x14f)](_0x5da35b,_0x153495);_0x5da35b[_0x26e167(0x136)][_0x26e167(0x15a)](_0x4e5064);const _0x5087bd=this[_0x26e167(0x126)](_0x153495);_0x5da35b[_0x26e167(0x136)][_0x26e167(0x15a)](_0x5087bd);}[_0x5ef738(0x14f)](_0x1a1f62,_0x23b646){const _0xd280da=_0x5ef738,_0x95891d=this[_0xd280da(0x134)](_0x1a1f62),_0x3f733a=new _0x3b4fb9(this[_0xd280da(0x151)],{'label':_0x23b646[_0xd280da(0x14e)],'class':Fr});return _0x3f733a[_0xd280da(0x13d)][_0xd280da(0x15a)](_0x95891d,0x0),_0x3f733a;}[_0x5ef738(0x134)](_0x56f053){const _0x2e8c7e=_0x5ef738,_0x1434db=new _0x4cb224(this[_0x2e8c7e(0x151)]);return _0x1434db[_0x2e8c7e(0x137)]({'icon':_0x4bf1c9,'tooltip':_0x3a65de(this[_0x2e8c7e(0x151)],_0x2e8c7e(0x148)),'tooltipPosition':'n','class':Hr}),_0x1434db['on'](_0x2e8c7e(0x127),()=>{const _0xd3d011=_0x2e8c7e;_0x56f053[_0xd3d011(0x131)](),this[_0xd3d011(0x146)][_0xd3d011(0x149)]();}),_0x1434db;}[_0x5ef738(0x126)](_0x4b34ff){const _0x23ea45=_0x5ef738,_0xf948b5=new _0x4cf05c(this[_0x23ea45(0x151)],_0x4b34ff);return _0xf948b5['on'](_0x23ea45(0x13a),(_0x54b1b5,_0x449bf6)=>{const _0x33ed76=_0x23ea45;this[_0x33ed76(0x146)][_0x33ed76(0x133)](_0x449bf6);}),_0xf948b5['on'](_0x23ea45(0x14d),(_0x522ed,_0x1ab26a)=>{const _0x6a4cba=_0x23ea45;this[_0x6a4cba(0x146)][_0x6a4cba(0x12c)](_0x1ab26a[_0x6a4cba(0x157)],_0x1ab26a[_0x6a4cba(0x139)]),this[_0x6a4cba(0x138)](_0x4b34ff['id']);}),_0xf948b5;}[_0x5ef738(0x132)](_0x178894){const _0x3186ae=_0x5ef738,_0x4608d3=_0x178894[_0x3186ae(0x136)][_0x3186ae(0x153)](0x1);return _0x4608d3 instanceof _0x4cf05c?_0x4608d3:null;}[_0x5ef738(0x14b)](_0xbf7b11){const _0x39003a=_0x5ef738;_0x255d9f({'emitter':_0xbf7b11,'contextElements':[_0xbf7b11[_0x39003a(0x145)]],'callback':()=>{const _0x2ab3a7=_0x39003a;_0xbf7b11[_0x2ab3a7(0x131)](),this[_0x2ab3a7(0x146)][_0x2ab3a7(0x125)]();},'activator':()=>_0xbf7b11[_0x39003a(0x12b)]});}}
23
+ const _0xee422b=_0x55f3;(function(_0x477c93,_0xaf5ea1){const _0x2a53b7=_0x55f3,_0x4d80b9=_0x477c93();while(!![]){try{const _0x69ecd4=parseInt(_0x2a53b7(0x137))/0x1*(parseInt(_0x2a53b7(0x131))/0x2)+parseInt(_0x2a53b7(0x125))/0x3*(parseInt(_0x2a53b7(0x110))/0x4)+parseInt(_0x2a53b7(0x123))/0x5+parseInt(_0x2a53b7(0x143))/0x6+parseInt(_0x2a53b7(0x13c))/0x7*(-parseInt(_0x2a53b7(0x136))/0x8)+-parseInt(_0x2a53b7(0x10f))/0x9*(-parseInt(_0x2a53b7(0x12a))/0xa)+parseInt(_0x2a53b7(0x148))/0xb*(-parseInt(_0x2a53b7(0x129))/0xc);if(_0x69ecd4===_0xaf5ea1)break;else _0x4d80b9['push'](_0x4d80b9['shift']());}catch(_0x501ec6){_0x4d80b9['push'](_0x4d80b9['shift']());}}}(_0x13fc,0x59583));import{BalloonPanelView as _0x4171b9,ButtonView as _0x3731aa,clickOutsideHandler as _0x33870e,FormHeaderView as _0x5095c8}from'ckeditor5/src/ui.js';function _0x13fc(){const _0x1a04f0=['delete','clear','pin','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','444922aYQKRq','_setupSingleResourceBalloonClickOutsideHandler','content','ck-button-icon\x20ck-button-back','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_source','2856DWKaEC','2coHpPx','resource','set','ck-ai-chat-context-controls__source-balloon-panel','get','3157sVzEAj','getTargetElement','_createBalloonHeader','showSourceResourcesBalloon','element','_config','destroy','3430410HzKnCg','values','onLoadSourceResources','execute','_locale','3577409sFlRvc','closeSourceResourceBalloon','children','2637eIZyXp','32winFTK','source','getLimiterElement','populateSourceResourceBalloon','_sourceResourceBalloons','onBalloonClosed','_createSourceResourceBalloonPanel','_createBalloonResourcesView','updateResourceState','loadSourceResources','onBackToContext','setResources','_addSourceResourceContent','isVisible','onResourceSelected','_getResourcesViewFromBalloon','extendTemplate','show','label','2885840bXwFij','add','131367rnJamR','hide','_bodyCollection','isAnyResourceBalloonVisible','72DnCEuZ','18230sZnjhp','_createBackButton','addResourceToContext'];_0x13fc=function(){return _0x1a04f0;};return _0x13fc();}function _0x55f3(_0x3ffe90,_0x43eb02){const _0x13fc01=_0x13fc();return _0x55f3=function(_0x55f3a6,_0x34a822){_0x55f3a6=_0x55f3a6-0x10e;let _0x48aea8=_0x13fc01[_0x55f3a6];return _0x48aea8;},_0x55f3(_0x3ffe90,_0x43eb02);}import{IconPreviousArrow as _0x531ccc}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x2c1179}from'../../../../aicore/utils/common-translations.js';import{AIChatContextResourcesView as _0x501d5c}from'./aichatresourcesview.js';const Or=_0xee422b(0x13a),Hr=_0xee422b(0x134),Fr=_0xee422b(0x135);export class AIChatResourcesBalloonView{[_0xee422b(0x114)]=new Map();[_0xee422b(0x127)];[_0xee422b(0x147)];[_0xee422b(0x141)];constructor(_0x48ad1a,_0x3cfa82,_0x40347d){const _0x1a47e3=_0xee422b;this[_0x1a47e3(0x147)]=_0x48ad1a,this[_0x1a47e3(0x127)]=_0x3cfa82,this[_0x1a47e3(0x141)]=_0x40347d;}[_0xee422b(0x13f)](_0x2ba663){const _0x280d9f=_0xee422b;let _0x29604d=this[_0x280d9f(0x114)][_0x280d9f(0x13b)](_0x2ba663['id']);_0x29604d||(_0x29604d=this[_0x280d9f(0x116)](),this[_0x280d9f(0x114)][_0x280d9f(0x139)](_0x2ba663['id'],_0x29604d),this[_0x280d9f(0x132)](_0x29604d)),this[_0x280d9f(0x11c)](_0x29604d,_0x2ba663),_0x29604d[_0x280d9f(0x121)]();const _0x55a511=this[_0x280d9f(0x141)][_0x280d9f(0x13d)]();_0x55a511&&_0x29604d[_0x280d9f(0x12f)]({'target':_0x55a511,'limiter':this[_0x280d9f(0x141)][_0x280d9f(0x112)]()});}[_0xee422b(0x113)](_0x4b4268,_0x5a7675,_0x2b5d64){const _0x3554e5=_0xee422b,_0x1fc274=this[_0x3554e5(0x114)][_0x3554e5(0x13b)](_0x4b4268);if(!_0x1fc274)return;const _0x355834=this[_0x3554e5(0x11f)](_0x1fc274);_0x355834&&_0x355834[_0x3554e5(0x11b)](_0x5a7675,_0x2b5d64);}[_0xee422b(0x149)](_0x18daa5){const _0x51ce5d=_0xee422b,_0x1c4a57=this[_0x51ce5d(0x114)][_0x51ce5d(0x13b)](_0x18daa5);_0x1c4a57&&requestAnimationFrame(()=>{const _0x30d347=_0x51ce5d;_0x1c4a57[_0x30d347(0x126)](),this[_0x30d347(0x114)][_0x30d347(0x12d)](_0x18daa5),this[_0x30d347(0x141)][_0x30d347(0x115)]();});}[_0xee422b(0x128)](){const _0x219f38=_0xee422b;for(const _0x179c13 of this[_0x219f38(0x114)][_0x219f38(0x144)]())if(_0x179c13[_0x219f38(0x11d)])return!0x0;return!0x1;}[_0xee422b(0x118)](_0x4f994a,_0x5f2c9a,_0x19d622){const _0x998f33=_0xee422b,_0x492666=this[_0x998f33(0x114)][_0x998f33(0x13b)](_0x4f994a);if(!_0x492666||!_0x492666[_0x998f33(0x11d)])return;const _0x14207f=this[_0x998f33(0x141)][_0x998f33(0x13d)]();if(!_0x14207f)return;_0x492666[_0x998f33(0x12f)]({'target':_0x14207f,'limiter':this[_0x998f33(0x141)][_0x998f33(0x112)]()});const _0x4399c8=this[_0x998f33(0x11f)](_0x492666);_0x4399c8&&_0x4399c8[_0x998f33(0x118)](_0x5f2c9a,_0x19d622);}[_0xee422b(0x142)](){const _0x404161=_0xee422b;for(const _0x19e341 of this[_0x404161(0x114)][_0x404161(0x144)]())_0x19e341[_0x404161(0x142)]();this[_0x404161(0x114)][_0x404161(0x12e)]();}[_0xee422b(0x116)](){const _0x291880=_0xee422b,_0x5d874b=new _0x4171b9(this[_0x291880(0x147)]);return _0x5d874b[_0x291880(0x120)]({'attributes':{'class':Or}}),this[_0x291880(0x127)][_0x291880(0x124)](_0x5d874b),_0x5d874b;}[_0xee422b(0x11c)](_0x37dedf,_0x34411a){const _0x24e1b8=_0xee422b;_0x37dedf[_0x24e1b8(0x133)][_0x24e1b8(0x12e)]();const _0x11cb3d=this[_0x24e1b8(0x13e)](_0x37dedf,_0x34411a);_0x37dedf[_0x24e1b8(0x133)][_0x24e1b8(0x124)](_0x11cb3d);const _0x45740e=this[_0x24e1b8(0x117)](_0x34411a);_0x37dedf[_0x24e1b8(0x133)][_0x24e1b8(0x124)](_0x45740e);}[_0xee422b(0x13e)](_0x2afbad,_0x183be7){const _0x47a22c=_0xee422b,_0x33e20e=this[_0x47a22c(0x12b)](_0x2afbad),_0x51dcfb=new _0x5095c8(this[_0x47a22c(0x147)],{'label':_0x183be7[_0x47a22c(0x122)],'class':Fr});return _0x51dcfb[_0x47a22c(0x10e)][_0x47a22c(0x124)](_0x33e20e,0x0),_0x51dcfb;}[_0xee422b(0x12b)](_0x34f296){const _0x3a9bfd=_0xee422b,_0x409a8f=new _0x3731aa(this[_0x3a9bfd(0x147)]);return _0x409a8f[_0x3a9bfd(0x139)]({'icon':_0x531ccc,'tooltip':_0x2c1179(this[_0x3a9bfd(0x147)],_0x3a9bfd(0x130)),'tooltipPosition':'n','class':Hr}),_0x409a8f['on'](_0x3a9bfd(0x146),()=>{const _0x223b45=_0x3a9bfd;_0x34f296[_0x223b45(0x126)](),this[_0x223b45(0x141)][_0x223b45(0x11a)]();}),_0x409a8f;}[_0xee422b(0x117)](_0x5652c0){const _0x1ae005=_0xee422b,_0x1867f8=new _0x501d5c(this[_0x1ae005(0x147)],_0x5652c0);return _0x1867f8['on'](_0x1ae005(0x119),(_0x431997,_0x3e86f7)=>{const _0x47346a=_0x1ae005;this[_0x47346a(0x141)][_0x47346a(0x145)](_0x3e86f7);}),_0x1867f8['on'](_0x1ae005(0x12c),(_0x349c02,_0x37afd2)=>{const _0x1b0904=_0x1ae005;this[_0x1b0904(0x141)][_0x1b0904(0x11e)](_0x37afd2[_0x1b0904(0x111)],_0x37afd2[_0x1b0904(0x138)]),this[_0x1b0904(0x149)](_0x5652c0['id']);}),_0x1867f8;}[_0xee422b(0x11f)](_0x3186a0){const _0xb54e21=_0xee422b,_0xe3ef26=_0x3186a0[_0xb54e21(0x133)][_0xb54e21(0x13b)](0x1);return _0xe3ef26 instanceof _0x501d5c?_0xe3ef26:null;}[_0xee422b(0x132)](_0x3d81b5){const _0x2cf5de=_0xee422b;_0x33870e({'emitter':_0x3d81b5,'contextElements':[_0x3d81b5[_0x2cf5de(0x140)]],'callback':()=>{const _0x1d0578=_0x2cf5de;_0x3d81b5[_0x1d0578(0x126)](),this[_0x1d0578(0x141)][_0x1d0578(0x115)]();},'activator':()=>_0x3d81b5[_0x2cf5de(0x11d)]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1d4a3b=_0xed7b;(function(_0x22d45e,_0x5e114a){const _0x10b1ea=_0xed7b,_0x493263=_0x22d45e();while(!![]){try{const _0x57fd08=parseInt(_0x10b1ea(0x175))/0x1+parseInt(_0x10b1ea(0x16f))/0x2+parseInt(_0x10b1ea(0x167))/0x3*(-parseInt(_0x10b1ea(0x16d))/0x4)+-parseInt(_0x10b1ea(0x15a))/0x5+-parseInt(_0x10b1ea(0x174))/0x6+-parseInt(_0x10b1ea(0x15f))/0x7*(parseInt(_0x10b1ea(0x166))/0x8)+-parseInt(_0x10b1ea(0x16c))/0x9*(-parseInt(_0x10b1ea(0x158))/0xa);if(_0x57fd08===_0x5e114a)break;else _0x493263['push'](_0x493263['shift']());}catch(_0x51ce59){_0x493263['push'](_0x493263['shift']());}}}(_0x3569,0xa92f3));import{ListView as _0x24b3a8}from'ckeditor5/src/ui.js';import{AIChatResourceListItemView as _0x34da0b}from'./aichatresourcelistitemview.js';function _0x3569(){const _0x5f1d5d=['4259170gwcbvl','locale','forEach','clear','add','7KqRONi','trim','updateResourceState','useDefaultFiltering','test','_handleResourceSelection','extendTemplate','1510800Hleykk','9RQHVlf','_source','\x5c$&','items','filter','7013295TxhfMU','909628AwiUyG','highlightText','1899056fNvVMx','resource','fire','setResources','ck-ai-chat-resources__list','3438546lWeqek','1260192YngkHI','addResourceToContext','label','execute','10BkKJoI','replace'];_0x3569=function(){return _0x5f1d5d;};return _0x3569();}const sc=_0x1d4a3b(0x173);function _0xed7b(_0xa2dc53,_0x1b352f){const _0x3569c9=_0x3569();return _0xed7b=function(_0xed7be,_0x7db79d){_0xed7be=_0xed7be-0x156;let _0x1c942f=_0x3569c9[_0xed7be];return _0x1c942f;},_0xed7b(_0xa2dc53,_0x1b352f);}export class AIChatContextResourcesListView extends _0x24b3a8{[_0x1d4a3b(0x168)];constructor(_0x1a0e51,_0x2ce189){const _0x6d86aa=_0x1d4a3b;super(_0x1a0e51),this[_0x6d86aa(0x168)]=_0x2ce189,this[_0x6d86aa(0x165)]({'attributes':{'class':[sc]}});}[_0x1d4a3b(0x172)](_0x2f184b,_0x56a599){const _0x191c3f=_0x1d4a3b;this[_0x191c3f(0x16a)][_0x191c3f(0x15d)]();let _0xd5195f=_0x2f184b;if(this[_0x191c3f(0x168)][_0x191c3f(0x162)]&&_0x56a599&&''!==_0x56a599[_0x191c3f(0x160)]()){const _0x149d5d=new RegExp(_0x56a599[_0x191c3f(0x159)](/[.*+?^${}()|[\]\\]/g,_0x191c3f(0x169)),'gi');_0xd5195f=_0x2f184b[_0x191c3f(0x16b)](_0x5e1ef6=>_0x149d5d[_0x191c3f(0x163)](_0x5e1ef6[_0x191c3f(0x156)]));}for(const _0x459590 of _0xd5195f){const _0x1847e0=new _0x34da0b(this[_0x191c3f(0x15b)],_0x459590);_0x1847e0['on'](_0x191c3f(0x157),()=>{const _0x26df0d=_0x191c3f;this[_0x26df0d(0x164)](this[_0x26df0d(0x168)],_0x459590);}),this[_0x191c3f(0x16a)][_0x191c3f(0x15e)](_0x1847e0);}this[_0x191c3f(0x168)][_0x191c3f(0x162)]&&this[_0x191c3f(0x16e)](_0x56a599);}[_0x1d4a3b(0x16e)](_0x4c3882){const _0x4bcc15=_0x1d4a3b;this[_0x4bcc15(0x168)][_0x4bcc15(0x162)]&&this[_0x4bcc15(0x16a)][_0x4bcc15(0x15c)](_0x5699d5=>{const _0x618e6b=_0x4bcc15;_0x5699d5[_0x618e6b(0x16e)](_0x4c3882);});}[_0x1d4a3b(0x161)](_0x198f02,_0x17e6f9){const _0x39438a=_0x1d4a3b;for(const _0x5657bf of this[_0x39438a(0x16a)]){const _0x903bc5=_0x5657bf;_0x903bc5[_0x39438a(0x170)]['id']===_0x198f02&&_0x903bc5[_0x39438a(0x161)](_0x17e6f9);}}[_0x1d4a3b(0x164)](_0x56c312,_0x50bd3a){const _0x56f377=_0x1d4a3b;this[_0x56f377(0x171)](_0x56f377(0x176),{'source':_0x56c312,'resource':_0x50bd3a});}}
23
+ const _0x20c90f=_0x4f8c;(function(_0xda969d,_0xed7fb7){const _0x4da83c=_0x4f8c,_0x2e7cd8=_0xda969d();while(!![]){try{const _0x7ff140=parseInt(_0x4da83c(0x16c))/0x1+parseInt(_0x4da83c(0x167))/0x2*(-parseInt(_0x4da83c(0x163))/0x3)+-parseInt(_0x4da83c(0x15e))/0x4+-parseInt(_0x4da83c(0x15b))/0x5*(parseInt(_0x4da83c(0x164))/0x6)+parseInt(_0x4da83c(0x166))/0x7+-parseInt(_0x4da83c(0x16d))/0x8*(parseInt(_0x4da83c(0x15c))/0x9)+parseInt(_0x4da83c(0x165))/0xa;if(_0x7ff140===_0xed7fb7)break;else _0x2e7cd8['push'](_0x2e7cd8['shift']());}catch(_0x360a2f){_0x2e7cd8['push'](_0x2e7cd8['shift']());}}}(_0x727a,0x4f82b));function _0x4f8c(_0x545c95,_0x501fd1){const _0x727a4a=_0x727a();return _0x4f8c=function(_0x4f8c3b,_0x58d7ce){_0x4f8c3b=_0x4f8c3b-0x158;let _0x1b0197=_0x727a4a[_0x4f8c3b];return _0x1b0197;},_0x4f8c(_0x545c95,_0x501fd1);}import{ListView as _0x1f27dd}from'ckeditor5/src/ui.js';import{AIChatResourceListItemView as _0x36a3b6}from'./aichatresourcelistitemview.js';const sc=_0x20c90f(0x158);export class AIChatContextResourcesListView extends _0x1f27dd{[_0x20c90f(0x178)];constructor(_0x2ac345,_0x8854d3){const _0x185db2=_0x20c90f;super(_0x2ac345),this[_0x185db2(0x178)]=_0x8854d3,this[_0x185db2(0x175)]({'attributes':{'class':[sc]}});}[_0x20c90f(0x170)](_0x268425,_0x44af8e){const _0x1dcf23=_0x20c90f;this[_0x1dcf23(0x159)][_0x1dcf23(0x162)]();let _0x5ab71b=_0x268425;if(this[_0x1dcf23(0x178)][_0x1dcf23(0x176)]&&_0x44af8e&&''!==_0x44af8e[_0x1dcf23(0x174)]()){const _0x3a54eb=new RegExp(_0x44af8e[_0x1dcf23(0x173)](/[.*+?^${}()|[\]\\]/g,_0x1dcf23(0x16a)),'gi');_0x5ab71b=_0x268425[_0x1dcf23(0x15f)](_0x6485f0=>_0x3a54eb[_0x1dcf23(0x171)](_0x6485f0[_0x1dcf23(0x161)]));}for(const _0x18fe76 of _0x5ab71b){const _0x2c0107=new _0x36a3b6(this[_0x1dcf23(0x169)],_0x18fe76);_0x2c0107['on'](_0x1dcf23(0x160),()=>{const _0x5925f2=_0x1dcf23;this[_0x5925f2(0x16b)](this[_0x5925f2(0x178)],_0x18fe76);}),this[_0x1dcf23(0x159)][_0x1dcf23(0x16f)](_0x2c0107);}this[_0x1dcf23(0x178)][_0x1dcf23(0x176)]&&this[_0x1dcf23(0x168)](_0x44af8e);}[_0x20c90f(0x168)](_0x1dadfd){const _0x507a87=_0x20c90f;this[_0x507a87(0x178)][_0x507a87(0x176)]&&this[_0x507a87(0x159)][_0x507a87(0x177)](_0x3ba7c7=>{const _0xc8d06=_0x507a87;_0x3ba7c7[_0xc8d06(0x168)](_0x1dadfd);});}[_0x20c90f(0x172)](_0x1c48b2,_0x215501){const _0x776a2b=_0x20c90f;for(const _0x314ca4 of this[_0x776a2b(0x159)]){const _0xa1d606=_0x314ca4;_0xa1d606[_0x776a2b(0x16e)]['id']===_0x1c48b2&&_0xa1d606[_0x776a2b(0x172)](_0x215501);}}[_0x20c90f(0x16b)](_0x192938,_0x2ea504){const _0x253cae=_0x20c90f;this[_0x253cae(0x15d)](_0x253cae(0x15a),{'source':_0x192938,'resource':_0x2ea504});}}function _0x727a(){const _0x3848df=['18YKqvQE','fire','2593084teYUiN','filter','execute','label','clear','6MhMwmn','156672CaZBmK','20158800hgsXOZ','809662sKEZxM','616570fEqEgJ','highlightText','locale','\x5c$&','_handleResourceSelection','296580buyYtY','1052584awvJxf','resource','add','setResources','test','updateResourceState','replace','trim','extendTemplate','useDefaultFiltering','forEach','_source','ck-ai-chat-resources__list','items','addResourceToContext','110xEtEkD'];_0x727a=function(){return _0x3848df;};return _0x727a();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{ButtonView as _0x3a9028,IconView as _0x4e47f1,LabeledFieldView as th,createLabeledInputText as _0x261473}from'ckeditor5/src/ui.js';import{IconLoupe as _0x57bb8d,IconCancel as _0x57539e}from'ckeditor5/src/icons.js';import{getTranslation as _0x41298a}from'../../../../aicore/utils/common-translations.js';export class AIChatContextResourcesSearchInputView extends th{['iconView'];['resetButtonView'];['_viewConfig'];constructor(_0x556236){const t=_0x556236['t'],_0x4c9d66={'showResetButton':!0x0,'showIcon':!0x0,'creator':_0x261473,'label':_0x41298a(_0x556236,'AI_CHAT_SEARCH_RESOURCES')};super(_0x556236,_0x4c9d66['creator']),this['label']=_0x4c9d66['label'],this['_viewConfig']=_0x4c9d66,this['_viewConfig']['showIcon']&&this['_setupSearchIcon'](),this['_viewConfig']['showResetButton']&&this['_setupResetButton'](_0x556236,t),this['_setupEventListeners']();}['reset'](){this['fieldView']['reset'](),this['_viewConfig']['showResetButton']&&this['resetButtonView']&&(this['resetButtonView']['isVisible']=!0x1),this['search']('');}['search'](_0x439b9e){this['fire']('search',_0x439b9e);}['getQuery'](){return this['fieldView']['element']?.['value']||'';}['_setupSearchIcon'](){this['iconView']=new _0x4e47f1(),this['iconView']['content']=_0x57bb8d,this['fieldWrapperChildren']['add'](this['iconView'],0x0),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-icon'}});}['_setupResetButton'](_0x59d72f,t){this['resetButtonView']=new _0x3a9028(_0x59d72f),this['resetButtonView']['set']({'label':t('Clear'),'icon':_0x57539e,'class':'ck-search__reset','isVisible':!0x1,'tooltip':!0x0}),this['resetButtonView']['on']('execute',()=>{this['reset'](),this['focus'](),this['fire']('reset');}),this['resetButtonView']['bind']('isVisible')['to'](this['fieldView'],'isEmpty',_0x340b52=>!_0x340b52),this['fieldWrapperChildren']['add'](this['resetButtonView']),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-reset'}});}['_setupEventListeners'](){this['listenTo'](this['fieldView'],'input',()=>{this['search'](this['fieldView']['element']['value']);}),this['bind']('isEnabled')['to'](this);}}
23
+ import{ButtonView as _0x18513c,IconView as _0x34b3f7,LabeledFieldView as th,createLabeledInputText as _0x4b1424}from'ckeditor5/src/ui.js';import{IconLoupe as _0x82b206,IconCancel as _0x5ce12f}from'ckeditor5/src/icons.js';import{getTranslation as _0x3c73fd}from'../../../../aicore/utils/common-translations.js';export class AIChatContextResourcesSearchInputView extends th{['iconView'];['resetButtonView'];['_viewConfig'];constructor(_0x73f847){const t=_0x73f847['t'],_0x5766f2={'showResetButton':!0x0,'showIcon':!0x0,'creator':_0x4b1424,'label':_0x3c73fd(_0x73f847,'AI_CHAT_SEARCH_RESOURCES')};super(_0x73f847,_0x5766f2['creator']),this['label']=_0x5766f2['label'],this['_viewConfig']=_0x5766f2,this['_viewConfig']['showIcon']&&this['_setupSearchIcon'](),this['_viewConfig']['showResetButton']&&this['_setupResetButton'](_0x73f847,t),this['_setupEventListeners']();}['reset'](){this['fieldView']['reset'](),this['_viewConfig']['showResetButton']&&this['resetButtonView']&&(this['resetButtonView']['isVisible']=!0x1),this['search']('');}['search'](_0x5e383b){this['fire']('search',_0x5e383b);}['getQuery'](){return this['fieldView']['element']?.['value']||'';}['_setupSearchIcon'](){this['iconView']=new _0x34b3f7(),this['iconView']['content']=_0x82b206,this['fieldWrapperChildren']['add'](this['iconView'],0x0),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-icon'}});}['_setupResetButton'](_0x15ff7f,t){this['resetButtonView']=new _0x18513c(_0x15ff7f),this['resetButtonView']['set']({'label':t('Clear'),'icon':_0x5ce12f,'class':'ck-search__reset','isVisible':!0x1,'tooltip':!0x0}),this['resetButtonView']['on']('execute',()=>{this['reset'](),this['focus'](),this['fire']('reset');}),this['resetButtonView']['bind']('isVisible')['to'](this['fieldView'],'isEmpty',_0x3b92b4=>!_0x3b92b4),this['fieldWrapperChildren']['add'](this['resetButtonView']),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-reset'}});}['_setupEventListeners'](){this['listenTo'](this['fieldView'],'input',()=>{this['search'](this['fieldView']['element']['value']);}),this['bind']('isEnabled')['to'](this);}}