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

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.js +5 -5
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +15 -15
  150. package/src/aiactions/aiactions.js +1 -1
  151. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  152. package/src/aiactions/model/aiactionsreply.js +1 -1
  153. package/src/aiassistant/adapters/aiadapter.js +1 -1
  154. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  155. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  156. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  157. package/src/aiassistant/aiassistant.js +1 -1
  158. package/src/aiassistant/aiassistantediting.js +1 -1
  159. package/src/aiassistant/aiassistantui.js +1 -1
  160. package/src/aiassistant/legacyerrors.js +1 -1
  161. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  162. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  163. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  164. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  165. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  166. package/src/aiassistant/ui/form/aiformview.js +1 -1
  167. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  168. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  169. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  170. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  171. package/src/aiassistant/utils/common-translations.js +1 -1
  172. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  173. package/src/aiballoon/aiballoon.js +1 -1
  174. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  175. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  176. package/src/aiballoon/ui/aiballoonview.js +1 -1
  177. package/src/aichat/aichat.js +1 -1
  178. package/src/aichat/aichatcontroller.js +1 -1
  179. package/src/aichat/aichatui.js +1 -1
  180. package/src/aichat/model/aichatcontext.js +1 -1
  181. package/src/aichat/model/aichatconversation.js +1 -1
  182. package/src/aichat/model/aichatinteraction.js +1 -1
  183. package/src/aichat/model/aichatmodels.js +1 -1
  184. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  185. package/src/aichat/ui/aichatfeedview.js +1 -1
  186. package/src/aichat/ui/aichatheaderview.js +1 -1
  187. package/src/aichat/ui/aichatview.js +1 -1
  188. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  189. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  190. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  191. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  192. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  193. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  194. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  195. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  196. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  197. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.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/aichatresourcessearchinputview.js +1 -1
  201. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  202. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  203. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  204. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  205. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  206. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  207. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  208. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  209. package/src/aichat/utils/eventnames.js +1 -1
  210. package/src/aichat/utils/promisequeue.js +1 -1
  211. package/src/aichat/utils/scrollmanager.js +1 -1
  212. package/src/aichathistory/aichathistory.js +1 -1
  213. package/src/aichathistory/aichathistorycontroller.js +1 -1
  214. package/src/aichathistory/aichathistoryui.js +1 -1
  215. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  216. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  217. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  218. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  219. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  220. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  221. package/src/aicore/aiconnector.js +1 -1
  222. package/src/aicore/aiediting.js +1 -1
  223. package/src/aicore/model/aicapabilities.js +1 -1
  224. package/src/aicore/model/aicontext.js +1 -1
  225. package/src/aicore/model/aiinteraction.js +1 -1
  226. package/src/aicore/model/aimodels.js +1 -1
  227. package/src/aicore/model/aireply.js +1 -1
  228. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  229. package/src/aicore/pipeline/airesponseparser.js +2 -2
  230. package/src/aicore/ui/aidisclaimerview.js +1 -1
  231. package/src/aicore/ui/aiskeleton.js +1 -1
  232. package/src/aicore/ui/aispinner.js +1 -1
  233. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  234. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  235. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  236. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  237. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  238. package/src/aicore/utils/common-translations.js +1 -1
  239. package/src/aicore/utils/createresizebutton.js +1 -1
  240. package/src/aicore/utils/documentposition.js +1 -1
  241. package/src/aicore/utils/documentrange.js +1 -1
  242. package/src/aicore/utils/eventnames.js +1 -1
  243. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  244. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  245. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  246. package/src/aicore/utils/htmlparser.js +1 -1
  247. package/src/aicore/utils/htmlstreamer.js +1 -1
  248. package/src/aieditorintegration/aieditorintegration.js +1 -1
  249. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  250. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  251. package/src/aiquickactions/aiquickactions.js +1 -1
  252. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  253. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  254. package/src/aiquickactions/aiquickactionsui.js +1 -1
  255. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  256. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  257. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  258. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  259. package/src/aireviewmode/aireviewmode.js +1 -1
  260. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  261. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  262. package/src/aireviewmode/aireviewmodeui.js +1 -1
  263. package/src/aireviewmode/model/aireviewcheck.js +1 -1
  264. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  265. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  266. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  267. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  268. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  269. package/src/aireviewmode/model/aireviewcustomcheckrun.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/aireviewmodefinishreviewbuttonview.js +1 -1
  276. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  277. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  278. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  279. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  280. package/src/aireviewmode/ui/aireviewmodeview.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/errors.js +1 -1
  289. package/src/index.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x18d755=_0x2123;(function(_0x2959d0,_0x53c798){const _0x2190d8=_0x2123,_0x379358=_0x2959d0();while(!![]){try{const _0x485b5c=parseInt(_0x2190d8(0x161))/0x1*(parseInt(_0x2190d8(0x12e))/0x2)+-parseInt(_0x2190d8(0x103))/0x3*(parseInt(_0x2190d8(0x179))/0x4)+parseInt(_0x2190d8(0x129))/0x5+parseInt(_0x2190d8(0x120))/0x6*(parseInt(_0x2190d8(0x12f))/0x7)+parseInt(_0x2190d8(0x131))/0x8+parseInt(_0x2190d8(0x14b))/0x9*(parseInt(_0x2190d8(0x147))/0xa)+-parseInt(_0x2190d8(0xf4))/0xb*(parseInt(_0x2190d8(0x11e))/0xc);if(_0x485b5c===_0x53c798)break;else _0x379358['push'](_0x379358['shift']());}catch(_0x1cd16b){_0x379358['push'](_0x379358['shift']());}}}(_0x5e26,0xbad05));import{BalloonPanelView as _0x5f5303,ButtonView as _0xa0da58,clickOutsideHandler as _0x100880,FileDialogButtonView as _0x21b043,IconView as _0x34880d,View as _0x52797c}from'ckeditor5/src/ui.js';function _0x2123(_0x4c9983,_0x32e490){const _0x5e2630=_0x5e26();return _0x2123=function(_0x2123e9,_0x413112){_0x2123e9=_0x2123e9-0xf1;let _0x2b5632=_0x5e2630[_0x2123e9];return _0x2b5632;},_0x2123(_0x4c9983,_0x32e490);}import{IconBrowseFiles as _0x3fca4b,IconDocument as _0x1fd7e2,IconDocumentOutline as _0xb7a0cd,IconDropdownArrow as _0x2938ae,IconLink as _0x5a0a9e,IconPaperClip as _0x35fc0e}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0xc1abd}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x1b4d70}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x537a19}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x533ca0}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x97b742}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x18d755(0x12d),_0x18d755(0x139),_0x18d755(0x10a),_0x18d755(0x16b),_0x18d755(0x118),_0x18d755(0x125)];const Bo=_0x18d755(0x180),bo=_0x18d755(0x158),To=_0x18d755(0x174),Ao=_0x18d755(0x111),ko=_0x18d755(0x165),Eo=_0x18d755(0xfa),vo=_0x18d755(0x11b),Vo=_0x18d755(0xfe),fo=_0x18d755(0x153),Io=_0x18d755(0x176),Po=_0x18d755(0x107),Ro=_0x18d755(0x121),So=[_0x5f5303[_0x18d755(0xfb)][_0x18d755(0x146)],_0x5f5303[_0x18d755(0xfb)][_0x18d755(0x169)],_0x5f5303[_0x18d755(0xfb)][_0x18d755(0x115)],_0x5f5303[_0x18d755(0xfb)][_0x18d755(0x145)],_0x5f5303[_0x18d755(0xfb)][_0x18d755(0xf7)],_0x5f5303[_0x18d755(0xfb)][_0x18d755(0x16a)]];export class AIChatContextPanelView extends _0x52797c{[_0x18d755(0x127)];[_0x18d755(0x114)]=this[_0x18d755(0x135)]();[_0x18d755(0x154)]=this[_0x18d755(0x135)]();[_0x18d755(0x13e)];[_0x18d755(0x11c)];[_0x18d755(0x10e)];[_0x18d755(0x15a)];[_0x18d755(0x144)];[_0x18d755(0x110)];[_0x18d755(0x159)];constructor(_0x164d82,_0x39ad2f){const _0x2154ec=_0x18d755;super(_0x164d82),this[_0x2154ec(0x159)]=_0x39ad2f[_0x2154ec(0x159)],this[_0x2154ec(0x114)]=this[_0x2154ec(0x135)](),this[_0x2154ec(0x154)]=this[_0x2154ec(0x135)](),this[_0x2154ec(0x127)]=this[_0x2154ec(0x11d)](_0x164d82),this[_0x2154ec(0x11c)]=this[_0x2154ec(0x172)](_0x164d82),this[_0x2154ec(0x10e)]=this[_0x2154ec(0x16e)](_0x164d82),this[_0x2154ec(0x144)]=this[_0x2154ec(0x152)](_0x164d82,_0x39ad2f);const _0x29589e={'cssClasses':{'showMoreButton':Io,'showMoreBalloon':Po,'overflowContainer':fo,'controlsButton':Vo}};this[_0x2154ec(0x13e)]=new _0x537a19(_0x164d82,this[_0x2154ec(0x114)],_0x29589e,this[_0x2154ec(0x159)],this),this[_0x2154ec(0x110)]={'buttonView':this[_0x2154ec(0x127)],'balloonView':this[_0x2154ec(0x11c)],'hideMethod':this[_0x2154ec(0x149)][_0x2154ec(0x143)](this),'showMethod':this[_0x2154ec(0x171)][_0x2154ec(0x143)](this)},this[_0x2154ec(0x16c)](),this[_0x2154ec(0x16d)]();}[_0x18d755(0x133)](){const _0x1a6953=_0x18d755;super[_0x1a6953(0x133)](),this[_0x1a6953(0x151)](),this[_0x1a6953(0x13e)][_0x1a6953(0x14f)](this[_0x1a6953(0x14c)]),this[_0x1a6953(0x13e)][_0x1a6953(0x14a)]();}[_0x18d755(0x162)](){const _0x122fcb=_0x18d755;super[_0x122fcb(0x162)](),this[_0x122fcb(0x13e)][_0x122fcb(0x162)](),this[_0x122fcb(0x144)][_0x122fcb(0x162)]();}[_0x18d755(0x112)](_0x556400,_0x46cd89){const _0x5e4518=_0x18d755,_0xe51e60=this[_0x5e4518(0x12c)](_0x556400,_0x5e4518(0x141),!0x0,_0x46cd89);this[_0x5e4518(0x13a)](_0xe51e60,this[_0x5e4518(0x114)]),this[_0x5e4518(0x13e)][_0x5e4518(0x14a)]();}[_0x18d755(0x118)](_0x4bb735){const _0x21e78b=_0x18d755;this[_0x21e78b(0x108)](_0x4bb735,this[_0x21e78b(0x114)]),this[_0x21e78b(0x108)](_0x4bb735,this[_0x21e78b(0x13e)][_0x21e78b(0xf5)]),this[_0x21e78b(0x13e)][_0x21e78b(0x14a)]();}[_0x18d755(0x168)](_0x5b73d2,_0x309b63){const _0x37b3c0=_0x18d755;let _0x34be6b=this[_0x37b3c0(0x114)][_0x37b3c0(0x128)](_0x2fd832=>_0x2fd832['id']===_0x5b73d2);_0x34be6b||(_0x34be6b=this[_0x37b3c0(0x13e)][_0x37b3c0(0xf5)][_0x37b3c0(0x128)](_0x324dc9=>_0x324dc9['id']===_0x5b73d2)),_0x34be6b&&(_0x34be6b[_0x37b3c0(0x137)]=_0x309b63);}[_0x18d755(0xfd)](_0x76a2aa){const _0x3bebe3=_0x18d755;this[_0x3bebe3(0x154)][_0x3bebe3(0x124)]();for(const _0x9b44bb of _0x76a2aa){const _0x1aa8b3=this[_0x3bebe3(0x12c)](_0x9b44bb,_0x3bebe3(0x182),!0x1,!0x1);this[_0x3bebe3(0x13a)](_0x1aa8b3,this[_0x3bebe3(0x154)]);}}[_0x18d755(0x10f)](){const _0x54f24f=_0x18d755;this[_0x54f24f(0x114)][_0x54f24f(0x124)](),this[_0x54f24f(0x13e)][_0x54f24f(0x124)]();}[_0x18d755(0xfc)](){const _0x1118ca=_0x18d755;this[_0x1118ca(0x154)][_0x1118ca(0x124)]();}[_0x18d755(0x10c)](_0x49f293,_0x305030,_0x266e73){const _0x380f36=_0x18d755;this[_0x380f36(0x144)][_0x380f36(0x10c)](_0x49f293,_0x305030,_0x266e73);}[_0x18d755(0x149)](){const _0x1d94c9=_0x18d755;this[_0x1d94c9(0x15f)](!0x1);}[_0x18d755(0x171)](){const _0x4fa3a4=_0x18d755;this[_0x4fa3a4(0x15f)](!0x0);}[_0x18d755(0x13b)](){const _0xb43d2a=_0x18d755;this[_0xb43d2a(0x10e)][_0xb43d2a(0x138)](),this[_0xb43d2a(0x127)][_0xb43d2a(0x12b)]=!0x1,this[_0xb43d2a(0x15a)]&&this[_0xb43d2a(0x15a)][_0xb43d2a(0x124)]();}[_0x18d755(0x117)](){const _0x51f71d=_0x18d755;this[_0x51f71d(0x10e)][_0x51f71d(0x17f)](),this[_0x51f71d(0x127)][_0x51f71d(0x12b)]=!0x0;}[_0x18d755(0x105)](_0x533976){const _0xc8a08=_0x18d755;this[_0xc8a08(0x144)][_0xc8a08(0x13c)](_0x533976),this[_0xc8a08(0x127)][_0xc8a08(0x12b)]=!0x0;}[_0x18d755(0xf9)](_0x4529ea,_0x201a04,_0x1c34aa,_0x435a88){const _0x5eec0a=_0x18d755;this[_0x5eec0a(0x144)][_0x5eec0a(0xf9)](_0x4529ea,_0x1c34aa,_0x435a88);}[_0x18d755(0x136)](_0x13efa1){const _0x3c21be=_0x18d755;this[_0x3c21be(0x144)][_0x3c21be(0x136)](_0x13efa1),this[_0x3c21be(0x127)][_0x3c21be(0x12b)]=!0x1;}[_0x18d755(0x15d)](_0x1baf2b){const _0x37f13f=_0x18d755;this[_0x37f13f(0x17c)](this[_0x37f13f(0x11c)],this[_0x37f13f(0x10d)],_0x1baf2b),this[_0x37f13f(0x181)](_0x1baf2b);}[_0x18d755(0x181)](_0x4fd4be){const _0x378c86=_0x18d755,_0x463c77=!_0x4fd4be[_0x378c86(0x170)][_0x378c86(0x166)]&&_0x4fd4be[_0x378c86(0x170)][_0x378c86(0xf8)],_0x3c1e10=_0x4fd4be[_0x378c86(0x122)][_0x378c86(0xf8)],_0x1e3c28=_0x4fd4be[_0x378c86(0x140)][_0x378c86(0xf8)];this[_0x378c86(0x127)][_0x378c86(0x10b)]=_0x463c77||_0x3c1e10||_0x1e3c28;}[_0x18d755(0x16c)](){const _0x222e37=_0x18d755;this[_0x222e37(0xf2)]({'tag':_0x222e37(0x142),'attributes':{'class':[Bo,_0x222e37(0xf3)]},'children':[{'tag':_0x222e37(0x142),'attributes':{'class':bo},'children':this[_0x222e37(0x114)]}]});}[_0x18d755(0x16d)](){const _0xbbb7cd=_0x18d755;this[_0xbbb7cd(0x127)]['on'](_0xbbb7cd(0x100),()=>{const _0x5d83a9=_0xbbb7cd;this[_0x5d83a9(0x155)]();});}[_0x18d755(0x11d)](_0x5a5627){const _0x40d276=_0x18d755,_0x394e75=new _0xa0da58(_0x5a5627);return _0x394e75[_0x40d276(0x11f)]({'label':_0x533ca0(_0x5a5627,_0x40d276(0x175)),'class':Vo+'\x20'+Ao,'icon':_0x35fc0e,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x394e75;}[_0x18d755(0x172)](_0x3ca0ab){const _0x4840ec=_0x18d755;return this[_0x4840ec(0x119)](_0x3ca0ab,To);}[_0x18d755(0x16e)](_0x21fc90){const _0x14626a=_0x18d755,_0x21717f=this[_0x14626a(0x119)](_0x21fc90,ko);return this[_0x14626a(0x178)](_0x21717f,_0x21fc90),_0x21717f;}[_0x18d755(0x152)](_0x4dce8c,_0x2ee6fa){const _0x14c855=_0x18d755,_0x4afeaa={'searchInputVisibleFrom':_0x2ee6fa[_0x14c855(0x13f)],'onBackToContext':()=>{const _0x16a2d1=_0x14c855;this[_0x16a2d1(0x171)](),this[_0x16a2d1(0x11c)][_0x16a2d1(0x134)]({'target':this[_0x16a2d1(0x127)][_0x16a2d1(0x14c)],'limiter':this[_0x16a2d1(0x163)](),'positions':So});},'onResourceSelected':(_0xf07d62,_0x5ac244)=>{const _0x3f6680=_0x14c855;this[_0x3f6680(0x177)](_0x3f6680(0x16b),{'source':_0xf07d62,'resource':_0x5ac244});},'onLoadSourceResources':_0x5a273e=>{const _0x27cc76=_0x14c855;this[_0x27cc76(0x177)](_0x27cc76(0x125),_0x5a273e);},'onBalloonClosed':()=>{const _0x57ebb7=_0x14c855;this[_0x57ebb7(0x127)][_0x57ebb7(0x12b)]=!0x1;},'getLimiterElement':()=>this[_0x14c855(0x163)](),'getTargetElement':()=>this[_0x14c855(0x127)][_0x14c855(0x14c)]};return new _0x97b742(_0x4dce8c,_0x2ee6fa[_0x14c855(0x159)],_0x4afeaa);}[_0x18d755(0x163)](){const _0xc5d1c7=_0x18d755;return this[_0xc5d1c7(0x14c)]?.[_0xc5d1c7(0x106)]('.'+Ro)||document[_0xc5d1c7(0x101)];}[_0x18d755(0x119)](_0x53b81f,_0x26141d){const _0x15a2f7=_0x18d755,_0x5968bf=new _0x5f5303(_0x53b81f);return _0x5968bf[_0x15a2f7(0x156)]({'attributes':{'class':_0x26141d}}),this[_0x15a2f7(0x159)][_0x15a2f7(0x167)](_0x5968bf),_0x5968bf;}[_0x18d755(0x17c)](_0x14a315,_0x5b9f66,_0x3d9268){const _0x3ed4ed=_0x18d755;if(_0x14a315[_0x3ed4ed(0xf1)][_0x3ed4ed(0x124)](),!_0x3d9268[_0x3ed4ed(0x170)][_0x3ed4ed(0x166)]&&_0x3d9268[_0x3ed4ed(0x170)][_0x3ed4ed(0xf8)]){const _0x49bb78=this[_0x3ed4ed(0x17a)](_0x5b9f66,{'label':_0x533ca0(_0x5b9f66,_0x3ed4ed(0x126)),'icon':_0x1fd7e2});_0x49bb78['on'](_0x3ed4ed(0x100),()=>{const _0x470ba5=_0x3ed4ed;this[_0x470ba5(0x177)](_0x470ba5(0x12d)),this[_0x470ba5(0x149)]();}),_0x14a315[_0x3ed4ed(0xf1)][_0x3ed4ed(0x167)](_0x49bb78);}if(_0x3d9268[_0x3ed4ed(0x122)][_0x3ed4ed(0xf8)]){const _0xfd4d10=this[_0x3ed4ed(0x17a)](_0x5b9f66,{'label':_0x533ca0(_0x5b9f66,_0x3ed4ed(0xff)),'icon':_0x5a0a9e});_0xfd4d10['on'](_0x3ed4ed(0x100),()=>{const _0x30257c=_0x3ed4ed;this[_0x30257c(0x149)](),this[_0x30257c(0x117)](),this[_0x30257c(0x10e)][_0x30257c(0x134)]({'target':this[_0x30257c(0x127)][_0x30257c(0x14c)],'limiter':this[_0x30257c(0x163)](),'positions':So}),this[_0x30257c(0x15a)][_0x30257c(0x14d)]();}),_0x14a315[_0x3ed4ed(0xf1)][_0x3ed4ed(0x167)](_0xfd4d10);}if(_0x3d9268[_0x3ed4ed(0x140)][_0x3ed4ed(0xf8)]){const _0x1cf1f4=new _0x21b043(_0x5b9f66);_0x1cf1f4[_0x3ed4ed(0x11f)]({'label':_0x533ca0(_0x5b9f66,_0x3ed4ed(0x17e)),'icon':_0x3fca4b,'withText':!0x0,'tooltip':!0x0,'class':Eo,'allowMultipleFiles':!0x0}),_0x1cf1f4['on'](_0x3ed4ed(0x164),(_0x192146,_0x249750)=>{const _0x2390f7=_0x3ed4ed;this[_0x2390f7(0x177)](_0x2390f7(0x139),_0x249750),this[_0x2390f7(0x149)]();}),_0x1cf1f4[_0x3ed4ed(0x102)]=!0x0,_0x14a315[_0x3ed4ed(0xf1)][_0x3ed4ed(0x167)](_0x1cf1f4);}for(const _0x57b6e1 of _0x3d9268[_0x3ed4ed(0x15b)]){const _0x43df22=this[_0x3ed4ed(0x17a)](_0x5b9f66,{'label':_0x57b6e1[_0x3ed4ed(0xf6)],'icon':_0x57b6e1[_0x3ed4ed(0x123)]||_0xb7a0cd,'type':_0x3ed4ed(0x13d)});_0x14a315[_0x3ed4ed(0xf1)][_0x3ed4ed(0x167)](_0x43df22),_0x43df22['on'](_0x3ed4ed(0x100),()=>{const _0x582f98=_0x3ed4ed;this[_0x582f98(0x149)](),this[_0x582f98(0x105)](_0x57b6e1);});}}[_0x18d755(0x178)](_0x542255,_0x504e23){const _0x46485e=_0x18d755;this[_0x46485e(0x15a)]=new _0x1b4d70(_0x504e23),this[_0x46485e(0x15a)]['on'](_0x46485e(0x12a),(_0xefebe3,_0x26248c)=>{const _0x55b5d8=_0x46485e;this[_0x55b5d8(0x16f)](_0x26248c);}),this[_0x46485e(0x15a)]['on'](_0x46485e(0x109),()=>{const _0x39aca4=_0x46485e;this[_0x39aca4(0x13b)](),this[_0x39aca4(0x171)](),this[_0x39aca4(0x11c)][_0x39aca4(0x134)]({'target':this[_0x39aca4(0x127)][_0x39aca4(0x14c)],'limiter':this[_0x39aca4(0x163)](),'positions':So});}),this[_0x46485e(0x15a)]['on'](_0x46485e(0x150),()=>{const _0x491a3f=_0x46485e;this[_0x491a3f(0x10e)][_0x491a3f(0x173)]&&this[_0x491a3f(0x10e)][_0x491a3f(0x134)]({'target':this[_0x491a3f(0x127)][_0x491a3f(0x14c)],'limiter':this[_0x491a3f(0x163)](),'positions':So});}),_0x542255[_0x46485e(0xf1)][_0x46485e(0x167)](this[_0x46485e(0x15a)]);}[_0x18d755(0x17a)](_0x31562a,_0x34634c){const _0x2e3de5=_0x18d755,_0x51fe4b=_0x2e3de5(0x13d)===_0x34634c[_0x2e3de5(0x104)]?new SourcesBalloonButtonView(_0x31562a):new _0xa0da58(_0x31562a);return _0x51fe4b[_0x2e3de5(0x11f)]({'label':_0x34634c[_0x2e3de5(0xf6)],'icon':_0x34634c[_0x2e3de5(0x123)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Eo}),_0x51fe4b;}[_0x18d755(0x151)](){const _0xe7826d=_0x18d755;this[_0xe7826d(0x11a)](),this[_0xe7826d(0x132)]();}[_0x18d755(0x132)](){const _0x16b5f8=_0x18d755;_0x100880({'emitter':this[_0x16b5f8(0x10e)],'contextElements':[this[_0x16b5f8(0x10e)][_0x16b5f8(0x14c)]],'callback':()=>{const _0x1e41af=_0x16b5f8;this[_0x1e41af(0x13b)]();},'activator':()=>this[_0x16b5f8(0x10e)][_0x16b5f8(0x173)]});}[_0x18d755(0x15f)](_0x29e269){const _0x5d33c1=_0x18d755,_0x4eef42=this[_0x5d33c1(0x110)];_0x4eef42[_0x5d33c1(0x14e)][_0x5d33c1(0x12b)]=_0x29e269,_0x29e269?_0x4eef42[_0x5d33c1(0x148)][_0x5d33c1(0x17f)]():_0x4eef42[_0x5d33c1(0x148)][_0x5d33c1(0x138)]();}[_0x18d755(0x11a)](){const _0x30cc0a=_0x18d755,{balloonView:_0x412dd9,buttonView:_0x179f36,hideMethod:_0x7bf180}=this[_0x30cc0a(0x110)];_0x100880({'emitter':_0x412dd9,'contextElements':[_0x412dd9[_0x30cc0a(0x14c)],_0x179f36[_0x30cc0a(0x14c)]],'callback':()=>{_0x7bf180();},'activator':()=>_0x179f36[_0x30cc0a(0x12b)]&&!this[_0x30cc0a(0x10e)][_0x30cc0a(0x173)]&&!this[_0x30cc0a(0x144)][_0x30cc0a(0x130)]()});}[_0x18d755(0x12c)](_0x24bf30,_0x304e78,_0x5e3457=!0x1,_0x5e4e9f=!0x1){const _0x7c32e4=_0x18d755,_0x49fe5a=_0x7c32e4(0x182)===_0x304e78||!0x0===_0x24bf30[_0x7c32e4(0x160)],_0x33c811=new _0xc1abd(this[_0x7c32e4(0x10d)],_0x24bf30,_0x49fe5a,_0x5e3457,_0x5e4e9f);return _0x49fe5a||_0x33c811['on'](_0x7c32e4(0x15c),()=>{const _0x38c643=_0x7c32e4;this[_0x38c643(0x177)](_0x38c643(0x118),_0x33c811['id']);}),_0x33c811;}[_0x18d755(0x13a)](_0x40145a,_0x3c887b){const _0x4b60bf=_0x18d755;_0x3c887b[_0x4b60bf(0x167)](_0x40145a,0x0);}[_0x18d755(0x108)](_0xf328f2,_0x29a7de){const _0x47a934=_0x18d755,_0x40eb23=_0x29a7de[_0x47a934(0x128)](_0x31181=>_0x31181['id']===_0xf328f2);_0x40eb23&&_0x29a7de[_0x47a934(0x157)](_0x40eb23);}[_0x18d755(0x155)](){const _0x3bd621=_0x18d755;this[_0x3bd621(0x127)][_0x3bd621(0x12b)]?this[_0x3bd621(0x149)]():(this[_0x3bd621(0x171)](),this[_0x3bd621(0x11c)][_0x3bd621(0x134)]({'target':this[_0x3bd621(0x127)][_0x3bd621(0x14c)],'limiter':this[_0x3bd621(0x163)](),'positions':So}));}[_0x18d755(0x16f)](_0x3d7892){const _0x1b52fb=_0x18d755;this[_0x1b52fb(0x15a)][_0x1b52fb(0x124)](),this[_0x1b52fb(0x13b)](),this[_0x1b52fb(0x177)](_0x1b52fb(0x10a),_0x3d7892);}}export class SourcesBalloonButtonView extends _0xa0da58{[_0x18d755(0x15e)];constructor(_0xd2697e){const _0x59642f=_0x18d755;super(_0xd2697e),this[_0x59642f(0x11f)]({'withText':!0x0,'role':_0x59642f(0x113)}),this[_0x59642f(0x15e)]=this[_0x59642f(0x17b)](),this[_0x59642f(0x156)]({'attributes':{'class':[vo]}});}[_0x18d755(0x133)](){const _0x2f0cb4=_0x18d755;super[_0x2f0cb4(0x133)](),this[_0x2f0cb4(0x116)][_0x2f0cb4(0x167)](this[_0x2f0cb4(0x15e)]);}[_0x18d755(0x17b)](){const _0x844f4=_0x18d755,_0x206f4d=new _0x34880d();return _0x206f4d[_0x844f4(0xf1)]=_0x2938ae,_0x206f4d[_0x844f4(0x156)]({'attributes':{'class':vo+_0x844f4(0x17d)}}),_0x206f4d;}}function _0x5e26(){const _0x4e857d=['_conversationContextsChips','_handleAddContextButtonClick','extendTemplate','remove','ck-ai-chat-context-controls__pending-contexts','bodyCollection','_urlInputView','sources','removeContextItemChip','setAddContextOptions','arrowView','_toggleAddContextBalloon','isReadOnly','4619MxWGnJ','destroy','_getLimiterElement','done','ck-ai-chat-context-controls__url-balloon-panel','isHidden','add','setContextItemLoading','northArrowSouth','southArrowNorthEast','addResourceToContext','_setupTemplate','_bindEventHandlers','_createUrlBalloonPanelView','_handleUrlSubmit','document','showAddContextBalloonPanel','_createAddContextBalloonPanelView','isVisible','ck-ai-chat-context-controls__add-context-balloon-panel','AI_CHAT_CONTEXT_ADD_CONTEXT','ck-ai-chat-controls_context_show-more-button','fire','_addUrlContent','28anyCzV','_createBalloonButton','_createArrowView','_setBalloonPanelContent','__arrow','AI_CHAT_CONTEXT_FILE_LABEL','show','ck-ai-chat-context-controls','_setAddContextButtonEnabled','conversation','content','setTemplate','ck-reset_all-excluded','11OeijDk','overflowChips','label','southArrowNorth','enabled','populateSourceResourceBalloon','ck-ai-chat-context-controls__balloon-button','defaultPositions','clearConversationContextItems','setConversationContext','ck-ai-chat-controls-button','AI_CHAT_CONTEXT_URL_LABEL','execute','body','tooltip','8787hIwMBf','type','_showSourceResourcesBalloon','closest','ck-ai-chat-context-controls__show-more-balloon-panel','_removeContextFromCollection','cancel','addUrlToContext','isEnabled','updateResourceState','locale','_urlBalloonPanelView','clearCurrentContextItems','_addContextBalloonConfig','ck-ai-chat-context-controls__add-context-button','addContextItem','menuitem','_currentContextsChips','northArrowSouthEast','children','showUrlBalloonPanel','removeContextItem','_createBaseBalloonPanel','_setupAddContextBalloonClickOutsideHandler','ck-ai-chat-context-controls__balloon-button-source','_addContextBalloonPanelView','_createAddContextButtonView','33145680zGSngo','set','2838702ZIXPkM','ck-ai-chat','urls','icon','clear','loadSourceResources','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','addContextButtonView','find','6893145soQkuT','submitUrl','isOn','_createContextButton','addDocumentToContext','74GcNReO','7prMOiZ','isAnyResourceBalloonVisible','10943936aKraiz','_setupUrlBalloonClickOutsideHandler','render','pin','createCollection','closeSourceResourceBalloon','isLoading','hide','addFileToContext','_addContextToCollection','hideUrlBalloonPanel','showSourceResourcesBalloon','source','_overflowManager','searchInputVisibleFrom','files','current','div','bind','_resourcesBalloonView','southArrowNorthWest','northArrowSouthWest','1510ouEqKZ','balloonView','hideAddContextBalloonPanel','reorganizeChips','9369xfIKjR','element','focus','buttonView','setContainerElement','refreshBalloon','_setupAllBalloonClickOutsideHandlers','_createResourcesBalloonView','ck-ai-chat-context-chips-wrapper-balloon'];_0x5e26=function(){return _0x4e857d;};return _0x5e26();}
23
+ const _0x66d25d=_0x4933;(function(_0x412217,_0x147062){const _0x180294=_0x4933,_0x1fd92d=_0x412217();while(!![]){try{const _0x1da71d=parseInt(_0x180294(0x1c4))/0x1+parseInt(_0x180294(0x1f0))/0x2*(parseInt(_0x180294(0x24d))/0x3)+-parseInt(_0x180294(0x244))/0x4*(-parseInt(_0x180294(0x209))/0x5)+parseInt(_0x180294(0x1e4))/0x6+parseInt(_0x180294(0x1e0))/0x7+parseInt(_0x180294(0x204))/0x8+-parseInt(_0x180294(0x21b))/0x9*(parseInt(_0x180294(0x217))/0xa);if(_0x1da71d===_0x147062)break;else _0x1fd92d['push'](_0x1fd92d['shift']());}catch(_0x3bcb06){_0x1fd92d['push'](_0x1fd92d['shift']());}}}(_0x1e0a,0xe3e77));import{BalloonPanelView as _0x38dd0c,ButtonView as _0x32271a,clickOutsideHandler as _0x3804d1,FileDialogButtonView as _0xfe914d,IconView as _0x467315,View as _0x48db45}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x30f871,IconDocument as _0x23444e,IconDocumentOutline as _0x3eacf7,IconDropdownArrow as _0x2c5389,IconLink as _0x283c67,IconPaperClip as _0x21b213}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x5ee0c6}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x59abb1}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0xc51911}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x196db6}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x3ce06d}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x66d25d(0x1fb),_0x66d25d(0x232),_0x66d25d(0x240),_0x66d25d(0x223),_0x66d25d(0x1c8),_0x66d25d(0x228)];const Eo=_0x66d25d(0x235),vo=_0x66d25d(0x1f4),Vo=_0x66d25d(0x1f5),Io=_0x66d25d(0x1c2),Po=_0x66d25d(0x224),Ro=_0x66d25d(0x1e3),Uo=_0x66d25d(0x1ef),Lo=_0x66d25d(0x1ca),No=_0x66d25d(0x1cc),Oo=_0x66d25d(0x1d7),Mo=_0x66d25d(0x246),Ho=_0x66d25d(0x243),jo=[_0x38dd0c[_0x66d25d(0x1f1)][_0x66d25d(0x222)],_0x38dd0c[_0x66d25d(0x1f1)][_0x66d25d(0x24e)],_0x38dd0c[_0x66d25d(0x1f1)][_0x66d25d(0x238)],_0x38dd0c[_0x66d25d(0x1f1)][_0x66d25d(0x23e)],_0x38dd0c[_0x66d25d(0x1f1)][_0x66d25d(0x214)],_0x38dd0c[_0x66d25d(0x1f1)][_0x66d25d(0x1dc)]];function _0x1e0a(){const _0x23a726=['fire','updateResourceState','addContextButtonView','submitUrl','conversation','addFileToContext','enabled','body','ck-ai-chat-context-controls','type','isAnyResourceBalloonVisible','northArrowSouthEast','_createArrowView','hideUrlBalloonPanel','showAddContextBalloonPanel','element','setTemplate','southArrowNorthWest','isVisible','addUrlToContext','setContainerElement','closest','ck-ai-chat','75996FGuigc','showSourceResourcesBalloon','ck-ai-chat-context-controls__show-more-balloon-panel','populateSourceResourceBalloon','_createAddContextBalloonPanelView','_resourcesBalloonView','_urlBalloonPanelView','_bindEventHandlers','refreshBalloon','281487EQRsBH','northArrowSouth','done','urls','clearConversationContextItems','ck-ai-chat-context-controls__add-context-button','showUrlBalloonPanel','204298snrUfn','_setupAllBalloonClickOutsideHandlers','buttonView','isOn','removeContextItem','_addContextBalloonPanelView','ck-ai-chat-controls-button','source','ck-ai-chat-context-chips-wrapper-balloon','_createAddContextButtonView','__arrow','label','_removeContextFromCollection','pin','_createBaseBalloonPanel','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','div','show','_createResourcesBalloonView','ck-ai-chat-controls_context_show-more-button','destroy','remove','_setAddContextButtonEnabled','ck-reset_all-excluded','southArrowNorthEast','setContextItemLoading','_handleUrlSubmit','_setBalloonPanelContent','3786867VQGODp','_toggleAddContextBalloon','_setupUrlBalloonClickOutsideHandler','ck-ai-chat-context-controls__balloon-button','5572008rkXQOD','add','_createBalloonButton','isLoading','arrowView','setConversationContext','overflowChips','hideAddContextBalloonPanel','document','focus','isEnabled','ck-ai-chat-context-controls__balloon-button-source','22NcfSkp','defaultPositions','children','icon','ck-ai-chat-context-controls__pending-contexts','ck-ai-chat-context-controls__add-context-balloon-panel','locale','_handleAddContextButtonClick','_createUrlBalloonPanelView','find','AI_CHAT_CONTEXT_FILE_LABEL','addDocumentToContext','isReadOnly','setAddContextOptions','closeSourceResourceBalloon','addContextItem','files','_addContextToCollection','content','_setupTemplate','4315072sDSWtX','_addUrlContent','_getLimiterElement','execute','AI_CHAT_CONTEXT_ADD_CONTEXT','205Uankxn','_setupAddContextBalloonClickOutsideHandler','sources','clearCurrentContextItems','_overflowManager','isHidden','balloonView','removeContextItemChip','render','createCollection','_createContextButton','southArrowNorth','_showSourceResourcesBalloon','cancel','1420aCUcIf','AI_CHAT_CONTEXT_URL_LABEL','current','_urlInputView','195903DDfEWJ','_conversationContextsChips','set','_addContextBalloonConfig','reorganizeChips','bind','tooltip','northArrowSouthWest','addResourceToContext','ck-ai-chat-context-controls__url-balloon-panel','_currentContextsChips','bodyCollection','menuitem','loadSourceResources','clear','extendTemplate','searchInputVisibleFrom','hide'];_0x1e0a=function(){return _0x23a726;};return _0x1e0a();}function _0x4933(_0x1cf67d,_0x5dbde0){const _0x1e0a75=_0x1e0a();return _0x4933=function(_0x493364,_0x182285){_0x493364=_0x493364-0x1c1;let _0x5809cd=_0x1e0a75[_0x493364];return _0x5809cd;},_0x4933(_0x1cf67d,_0x5dbde0);}export class AIChatContextPanelView extends _0x48db45{[_0x66d25d(0x22f)];[_0x66d25d(0x225)]=this[_0x66d25d(0x212)]();[_0x66d25d(0x21c)]=this[_0x66d25d(0x212)]();[_0x66d25d(0x20d)];[_0x66d25d(0x1c9)];[_0x66d25d(0x24a)];[_0x66d25d(0x21a)];[_0x66d25d(0x249)];[_0x66d25d(0x21e)];[_0x66d25d(0x226)];constructor(_0x586fd0,_0x58c11c){const _0x3da699=_0x66d25d;super(_0x586fd0),this[_0x3da699(0x226)]=_0x58c11c[_0x3da699(0x226)],this[_0x3da699(0x225)]=this[_0x3da699(0x212)](),this[_0x3da699(0x21c)]=this[_0x3da699(0x212)](),this[_0x3da699(0x22f)]=this[_0x3da699(0x1cd)](_0x586fd0),this[_0x3da699(0x1c9)]=this[_0x3da699(0x248)](_0x586fd0),this[_0x3da699(0x24a)]=this[_0x3da699(0x1f8)](_0x586fd0),this[_0x3da699(0x249)]=this[_0x3da699(0x1d6)](_0x586fd0,_0x58c11c);const _0x432036={'cssClasses':{'showMoreButton':Oo,'showMoreBalloon':Mo,'overflowContainer':No,'controlsButton':Lo}};this[_0x3da699(0x20d)]=new _0xc51911(_0x586fd0,this[_0x3da699(0x225)],_0x432036,this[_0x3da699(0x226)],this),this[_0x3da699(0x21e)]={'buttonView':this[_0x3da699(0x22f)],'balloonView':this[_0x3da699(0x1c9)],'hideMethod':this[_0x3da699(0x1eb)][_0x3da699(0x220)](this),'showMethod':this[_0x3da699(0x23b)][_0x3da699(0x220)](this)},this[_0x3da699(0x203)](),this[_0x3da699(0x24b)]();}[_0x66d25d(0x211)](){const _0x40042d=_0x66d25d;super[_0x40042d(0x211)](),this[_0x40042d(0x1c5)](),this[_0x40042d(0x20d)][_0x40042d(0x241)](this[_0x40042d(0x23c)]),this[_0x40042d(0x20d)][_0x40042d(0x21f)]();}[_0x66d25d(0x1d8)](){const _0x2e8d81=_0x66d25d;super[_0x2e8d81(0x1d8)](),this[_0x2e8d81(0x20d)][_0x2e8d81(0x1d8)](),this[_0x2e8d81(0x249)][_0x2e8d81(0x1d8)]();}[_0x66d25d(0x1ff)](_0x270e15,_0xf0a5d5){const _0x10a8e3=_0x66d25d,_0x7cc3ef=this[_0x10a8e3(0x213)](_0x270e15,_0x10a8e3(0x219),!0x0,_0xf0a5d5);this[_0x10a8e3(0x201)](_0x7cc3ef,this[_0x10a8e3(0x225)]),this[_0x10a8e3(0x20d)][_0x10a8e3(0x21f)]();}[_0x66d25d(0x1c8)](_0x11bd54){const _0x545096=_0x66d25d;this[_0x545096(0x1d0)](_0x11bd54,this[_0x545096(0x225)]),this[_0x545096(0x1d0)](_0x11bd54,this[_0x545096(0x20d)][_0x545096(0x1ea)]),this[_0x545096(0x20d)][_0x545096(0x21f)]();}[_0x66d25d(0x1dd)](_0x5b317f,_0x4bf80e){const _0x37bdbd=_0x66d25d;let _0x27117b=this[_0x37bdbd(0x225)][_0x37bdbd(0x1f9)](_0x2568d3=>_0x2568d3['id']===_0x5b317f);_0x27117b||(_0x27117b=this[_0x37bdbd(0x20d)][_0x37bdbd(0x1ea)][_0x37bdbd(0x1f9)](_0x197d9a=>_0x197d9a['id']===_0x5b317f)),_0x27117b&&(_0x27117b[_0x37bdbd(0x1e7)]=_0x4bf80e);}[_0x66d25d(0x1e9)](_0x237e7b){const _0x1c033d=_0x66d25d;this[_0x1c033d(0x21c)][_0x1c033d(0x229)]();for(const _0x3dd7f1 of _0x237e7b){const _0x29593a=this[_0x1c033d(0x213)](_0x3dd7f1,_0x1c033d(0x231),!0x1,!0x1);this[_0x1c033d(0x201)](_0x29593a,this[_0x1c033d(0x21c)]);}}[_0x66d25d(0x20c)](){const _0x2d5018=_0x66d25d;this[_0x2d5018(0x225)][_0x2d5018(0x229)](),this[_0x2d5018(0x20d)][_0x2d5018(0x229)]();}[_0x66d25d(0x1c1)](){const _0x1cccba=_0x66d25d;this[_0x1cccba(0x21c)][_0x1cccba(0x229)]();}[_0x66d25d(0x22e)](_0xd51a9c,_0x4e9308,_0x44681f){const _0x3c4e0f=_0x66d25d;this[_0x3c4e0f(0x249)][_0x3c4e0f(0x22e)](_0xd51a9c,_0x4e9308,_0x44681f);}[_0x66d25d(0x1eb)](){const _0x26fc7e=_0x66d25d;this[_0x26fc7e(0x1e1)](!0x1);}[_0x66d25d(0x23b)](){const _0x456c56=_0x66d25d;this[_0x456c56(0x1e1)](!0x0);}[_0x66d25d(0x23a)](){const _0x140923=_0x66d25d;this[_0x140923(0x24a)][_0x140923(0x22c)](),this[_0x140923(0x22f)][_0x140923(0x1c7)]=!0x1,this[_0x140923(0x21a)]&&this[_0x140923(0x21a)][_0x140923(0x229)]();}[_0x66d25d(0x1c3)](){const _0x542e59=_0x66d25d;this[_0x542e59(0x24a)][_0x542e59(0x1d5)](),this[_0x542e59(0x22f)][_0x542e59(0x1c7)]=!0x0;}[_0x66d25d(0x215)](_0x3dd8ea){const _0x1e293a=_0x66d25d;this[_0x1e293a(0x249)][_0x1e293a(0x245)](_0x3dd8ea),this[_0x1e293a(0x22f)][_0x1e293a(0x1c7)]=!0x0;}[_0x66d25d(0x247)](_0x5b9766,_0x1ff624,_0x335cbf,_0x352024){const _0x9b075a=_0x66d25d;this[_0x9b075a(0x249)][_0x9b075a(0x247)](_0x5b9766,_0x335cbf,_0x352024);}[_0x66d25d(0x1fe)](_0x3e7d43){const _0x4f68b0=_0x66d25d;this[_0x4f68b0(0x249)][_0x4f68b0(0x1fe)](_0x3e7d43),this[_0x4f68b0(0x22f)][_0x4f68b0(0x1c7)]=!0x1;}[_0x66d25d(0x1fd)](_0x426164){const _0x52fed9=_0x66d25d;this[_0x52fed9(0x1df)](this[_0x52fed9(0x1c9)],this[_0x52fed9(0x1f6)],_0x426164),this[_0x52fed9(0x1da)](_0x426164);}[_0x66d25d(0x1da)](_0xecad32){const _0x35705e=_0x66d25d,_0x1d1a9c=!_0xecad32[_0x35705e(0x1ec)][_0x35705e(0x20e)]&&_0xecad32[_0x35705e(0x1ec)][_0x35705e(0x233)],_0x5233fd=_0xecad32[_0x35705e(0x250)][_0x35705e(0x233)],_0x4327c7=_0xecad32[_0x35705e(0x200)][_0x35705e(0x233)];this[_0x35705e(0x22f)][_0x35705e(0x1ee)]=_0x1d1a9c||_0x5233fd||_0x4327c7;}[_0x66d25d(0x203)](){const _0x5a66b4=_0x66d25d;this[_0x5a66b4(0x23d)]({'tag':_0x5a66b4(0x1d4),'attributes':{'class':[Eo,_0x5a66b4(0x1db)]},'children':[{'tag':_0x5a66b4(0x1d4),'attributes':{'class':vo},'children':this[_0x5a66b4(0x225)]}]});}[_0x66d25d(0x24b)](){const _0x2e1efe=_0x66d25d;this[_0x2e1efe(0x22f)]['on'](_0x2e1efe(0x207),()=>{const _0x2ab349=_0x2e1efe;this[_0x2ab349(0x1f7)]();});}[_0x66d25d(0x1cd)](_0x18f6bd){const _0x111aa3=_0x66d25d,_0x41ca6a=new _0x32271a(_0x18f6bd);return _0x41ca6a[_0x111aa3(0x21d)]({'label':_0x196db6(_0x18f6bd,_0x111aa3(0x208)),'class':Lo+'\x20'+Io,'icon':_0x21b213,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x41ca6a;}[_0x66d25d(0x248)](_0x20f7d3){const _0x10e6ed=_0x66d25d;return this[_0x10e6ed(0x1d2)](_0x20f7d3,Vo);}[_0x66d25d(0x1f8)](_0x525974){const _0xa252af=_0x66d25d,_0x314fe4=this[_0xa252af(0x1d2)](_0x525974,Po);return this[_0xa252af(0x205)](_0x314fe4,_0x525974),_0x314fe4;}[_0x66d25d(0x1d6)](_0x4095d9,_0x415ba9){const _0xf6ad27=_0x66d25d,_0x425a39={'searchInputVisibleFrom':_0x415ba9[_0xf6ad27(0x22b)],'onBackToContext':()=>{const _0x17d1e5=_0xf6ad27;this[_0x17d1e5(0x23b)](),this[_0x17d1e5(0x1c9)][_0x17d1e5(0x1d1)]({'target':this[_0x17d1e5(0x22f)][_0x17d1e5(0x23c)],'limiter':this[_0x17d1e5(0x206)](),'positions':jo});},'onResourceSelected':(_0x4a3584,_0x170810)=>{const _0x153328=_0xf6ad27;this[_0x153328(0x22d)](_0x153328(0x223),{'source':_0x4a3584,'resource':_0x170810});},'onLoadSourceResources':_0x35e059=>{const _0x4d2f57=_0xf6ad27;this[_0x4d2f57(0x22d)](_0x4d2f57(0x228),_0x35e059);},'onBalloonClosed':()=>{const _0x539814=_0xf6ad27;this[_0x539814(0x22f)][_0x539814(0x1c7)]=!0x1;},'getLimiterElement':()=>this[_0xf6ad27(0x206)](),'getTargetElement':()=>this[_0xf6ad27(0x22f)][_0xf6ad27(0x23c)]};return new _0x3ce06d(_0x4095d9,_0x415ba9[_0xf6ad27(0x226)],_0x425a39);}[_0x66d25d(0x206)](){const _0x14c553=_0x66d25d;return this[_0x14c553(0x23c)]?.[_0x14c553(0x242)]('.'+Ho)||document[_0x14c553(0x234)];}[_0x66d25d(0x1d2)](_0x94f09d,_0xe77a73){const _0x4a138d=_0x66d25d,_0x1cb132=new _0x38dd0c(_0x94f09d);return _0x1cb132[_0x4a138d(0x22a)]({'attributes':{'class':_0xe77a73}}),this[_0x4a138d(0x226)][_0x4a138d(0x1e5)](_0x1cb132),_0x1cb132;}[_0x66d25d(0x1df)](_0x3c7c1f,_0x2e5161,_0x451506){const _0x482fef=_0x66d25d;if(_0x3c7c1f[_0x482fef(0x202)][_0x482fef(0x229)](),!_0x451506[_0x482fef(0x1ec)][_0x482fef(0x20e)]&&_0x451506[_0x482fef(0x1ec)][_0x482fef(0x233)]){const _0x1527df=this[_0x482fef(0x1e6)](_0x2e5161,{'label':_0x196db6(_0x2e5161,_0x482fef(0x1d3)),'icon':_0x23444e});_0x1527df['on'](_0x482fef(0x207),()=>{const _0x180ebb=_0x482fef;this[_0x180ebb(0x22d)](_0x180ebb(0x1fb)),this[_0x180ebb(0x1eb)]();}),_0x3c7c1f[_0x482fef(0x202)][_0x482fef(0x1e5)](_0x1527df);}if(_0x451506[_0x482fef(0x250)][_0x482fef(0x233)]){const _0x121794=this[_0x482fef(0x1e6)](_0x2e5161,{'label':_0x196db6(_0x2e5161,_0x482fef(0x218)),'icon':_0x283c67});_0x121794['on'](_0x482fef(0x207),()=>{const _0x4d8f5b=_0x482fef;this[_0x4d8f5b(0x1eb)](),this[_0x4d8f5b(0x1c3)](),this[_0x4d8f5b(0x24a)][_0x4d8f5b(0x1d1)]({'target':this[_0x4d8f5b(0x22f)][_0x4d8f5b(0x23c)],'limiter':this[_0x4d8f5b(0x206)](),'positions':jo}),this[_0x4d8f5b(0x21a)][_0x4d8f5b(0x1ed)]();}),_0x3c7c1f[_0x482fef(0x202)][_0x482fef(0x1e5)](_0x121794);}if(_0x451506[_0x482fef(0x200)][_0x482fef(0x233)]){const _0x28789e=new _0xfe914d(_0x2e5161);_0x28789e[_0x482fef(0x21d)]({'label':_0x196db6(_0x2e5161,_0x482fef(0x1fa)),'icon':_0x30f871,'withText':!0x0,'tooltip':!0x0,'class':Ro,'allowMultipleFiles':!0x0}),_0x28789e['on'](_0x482fef(0x24f),(_0xc2f87a,_0x56adf3)=>{const _0x38e034=_0x482fef;this[_0x38e034(0x22d)](_0x38e034(0x232),_0x56adf3),this[_0x38e034(0x1eb)]();}),_0x28789e[_0x482fef(0x221)]=!0x0,_0x3c7c1f[_0x482fef(0x202)][_0x482fef(0x1e5)](_0x28789e);}for(const _0x41f980 of _0x451506[_0x482fef(0x20b)]){const _0x6a759f=this[_0x482fef(0x1e6)](_0x2e5161,{'label':_0x41f980[_0x482fef(0x1cf)],'icon':_0x41f980[_0x482fef(0x1f3)]||_0x3eacf7,'type':_0x482fef(0x1cb)});_0x3c7c1f[_0x482fef(0x202)][_0x482fef(0x1e5)](_0x6a759f),_0x6a759f['on'](_0x482fef(0x207),()=>{const _0x12c2c8=_0x482fef;this[_0x12c2c8(0x1eb)](),this[_0x12c2c8(0x215)](_0x41f980);});}}[_0x66d25d(0x205)](_0x29ee26,_0x1a1a9d){const _0x4688ea=_0x66d25d;this[_0x4688ea(0x21a)]=new _0x59abb1(_0x1a1a9d),this[_0x4688ea(0x21a)]['on'](_0x4688ea(0x230),(_0x11982c,_0x49422f)=>{const _0x40921b=_0x4688ea;this[_0x40921b(0x1de)](_0x49422f);}),this[_0x4688ea(0x21a)]['on'](_0x4688ea(0x216),()=>{const _0x2afc2a=_0x4688ea;this[_0x2afc2a(0x23a)](),this[_0x2afc2a(0x23b)](),this[_0x2afc2a(0x1c9)][_0x2afc2a(0x1d1)]({'target':this[_0x2afc2a(0x22f)][_0x2afc2a(0x23c)],'limiter':this[_0x2afc2a(0x206)](),'positions':jo});}),this[_0x4688ea(0x21a)]['on'](_0x4688ea(0x24c),()=>{const _0x12287f=_0x4688ea;this[_0x12287f(0x24a)][_0x12287f(0x23f)]&&this[_0x12287f(0x24a)][_0x12287f(0x1d1)]({'target':this[_0x12287f(0x22f)][_0x12287f(0x23c)],'limiter':this[_0x12287f(0x206)](),'positions':jo});}),_0x29ee26[_0x4688ea(0x202)][_0x4688ea(0x1e5)](this[_0x4688ea(0x21a)]);}[_0x66d25d(0x1e6)](_0x180991,_0x163cdc){const _0x222a7c=_0x66d25d,_0x1e0adc=_0x222a7c(0x1cb)===_0x163cdc[_0x222a7c(0x236)]?new SourcesBalloonButtonView(_0x180991):new _0x32271a(_0x180991);return _0x1e0adc[_0x222a7c(0x21d)]({'label':_0x163cdc[_0x222a7c(0x1cf)],'icon':_0x163cdc[_0x222a7c(0x1f3)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Ro}),_0x1e0adc;}[_0x66d25d(0x1c5)](){const _0x3834de=_0x66d25d;this[_0x3834de(0x20a)](),this[_0x3834de(0x1e2)]();}[_0x66d25d(0x1e2)](){const _0x3a5a31=_0x66d25d;_0x3804d1({'emitter':this[_0x3a5a31(0x24a)],'contextElements':[this[_0x3a5a31(0x24a)][_0x3a5a31(0x23c)]],'callback':()=>{const _0x5df030=_0x3a5a31;this[_0x5df030(0x23a)]();},'activator':()=>this[_0x3a5a31(0x24a)][_0x3a5a31(0x23f)]});}[_0x66d25d(0x1e1)](_0x369ee9){const _0x2f6f65=_0x66d25d,_0x90b511=this[_0x2f6f65(0x21e)];_0x90b511[_0x2f6f65(0x1c6)][_0x2f6f65(0x1c7)]=_0x369ee9,_0x369ee9?_0x90b511[_0x2f6f65(0x20f)][_0x2f6f65(0x1d5)]():_0x90b511[_0x2f6f65(0x20f)][_0x2f6f65(0x22c)]();}[_0x66d25d(0x20a)](){const _0x531a56=_0x66d25d,{balloonView:_0x2e4368,buttonView:_0x3106e7,hideMethod:_0x335a01}=this[_0x531a56(0x21e)];_0x3804d1({'emitter':_0x2e4368,'contextElements':[_0x2e4368[_0x531a56(0x23c)],_0x3106e7[_0x531a56(0x23c)]],'callback':()=>{_0x335a01();},'activator':()=>_0x3106e7[_0x531a56(0x1c7)]&&!this[_0x531a56(0x24a)][_0x531a56(0x23f)]&&!this[_0x531a56(0x249)][_0x531a56(0x237)]()});}[_0x66d25d(0x213)](_0x5e9715,_0x54276c,_0x2613cd=!0x1,_0x5cc1b4=!0x1){const _0x5197cc=_0x66d25d,_0x30329d=_0x5197cc(0x231)===_0x54276c||!0x0===_0x5e9715[_0x5197cc(0x1fc)],_0x210644=new _0x5ee0c6(this[_0x5197cc(0x1f6)],_0x5e9715,_0x30329d,_0x2613cd,_0x5cc1b4);return _0x30329d||_0x210644['on'](_0x5197cc(0x210),()=>{const _0x37db22=_0x5197cc;this[_0x37db22(0x22d)](_0x37db22(0x1c8),_0x210644['id']);}),_0x210644;}[_0x66d25d(0x201)](_0x100f9c,_0x463114){const _0xaa5781=_0x66d25d;_0x463114[_0xaa5781(0x1e5)](_0x100f9c,0x0);}[_0x66d25d(0x1d0)](_0x45ddb3,_0x3ad126){const _0x1978bd=_0x66d25d,_0x2cb864=_0x3ad126[_0x1978bd(0x1f9)](_0x1c0426=>_0x1c0426['id']===_0x45ddb3);_0x2cb864&&_0x3ad126[_0x1978bd(0x1d9)](_0x2cb864);}[_0x66d25d(0x1f7)](){const _0x290b2c=_0x66d25d;this[_0x290b2c(0x22f)][_0x290b2c(0x1c7)]?this[_0x290b2c(0x1eb)]():(this[_0x290b2c(0x23b)](),this[_0x290b2c(0x1c9)][_0x290b2c(0x1d1)]({'target':this[_0x290b2c(0x22f)][_0x290b2c(0x23c)],'limiter':this[_0x290b2c(0x206)](),'positions':jo}));}[_0x66d25d(0x1de)](_0xef25af){const _0x2fa412=_0x66d25d;this[_0x2fa412(0x21a)][_0x2fa412(0x229)](),this[_0x2fa412(0x23a)](),this[_0x2fa412(0x22d)](_0x2fa412(0x240),_0xef25af);}}export class SourcesBalloonButtonView extends _0x32271a{[_0x66d25d(0x1e8)];constructor(_0x1580fc){const _0x6fa46=_0x66d25d;super(_0x1580fc),this[_0x6fa46(0x21d)]({'withText':!0x0,'role':_0x6fa46(0x227)}),this[_0x6fa46(0x1e8)]=this[_0x6fa46(0x239)](),this[_0x6fa46(0x22a)]({'attributes':{'class':[Uo]}});}[_0x66d25d(0x211)](){const _0x45fecc=_0x66d25d;super[_0x45fecc(0x211)](),this[_0x45fecc(0x1f2)][_0x45fecc(0x1e5)](this[_0x45fecc(0x1e8)]);}[_0x66d25d(0x239)](){const _0x443f37=_0x66d25d,_0x350219=new _0x467315();return _0x350219[_0x443f37(0x202)]=_0x2c5389,_0x350219[_0x443f37(0x22a)]({'attributes':{'class':Uo+_0x443f37(0x1ce)}}),_0x350219;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x3ea4(){const _0x4e52d6=['312704JCuWwD','2716YrUKkG','_loaderView','293491gIbdfw','abortPromptStream','ck-ai-button-secondary\x20ck-ai-button-stop-generating','238KlfCJL','ck-ai-chat-controls-loader-icon-dot','ck-ai-chat-controls-loader-wrapper','set','2177451jDexFQ','_cancelButtonView','ck-ai-chat-controls-loader-icon','20076830wtxzic','92406sxvCuf','execute','8OPJaDc','ck-ai-chat-controls-loader','_createCancelButtonView','4007106oWxwJg','_createLoaderView','locale','fire','ck-reset_all','9215TNkBzk','setTemplate','AI_CHAT_IS_WRITING','div','AI_CHAT_STOP_GENERATING'];_0x3ea4=function(){return _0x4e52d6;};return _0x3ea4();}const _0x3ac2ff=_0x7895;(function(_0x3c7f73,_0x4e12b5){const _0x58a809=_0x7895,_0x50e632=_0x3c7f73();while(!![]){try{const _0x405c55=-parseInt(_0x58a809(0xef))/0x1+-parseInt(_0x58a809(0xec))/0x2+parseInt(_0x58a809(0xe2))/0x3+parseInt(_0x58a809(0xed))/0x4*(parseInt(_0x58a809(0xe7))/0x5)+-parseInt(_0x58a809(0xdd))/0x6*(-parseInt(_0x58a809(0xf2))/0x7)+parseInt(_0x58a809(0xdf))/0x8*(parseInt(_0x58a809(0xf6))/0x9)+-parseInt(_0x58a809(0xdc))/0xa;if(_0x405c55===_0x4e12b5)break;else _0x50e632['push'](_0x50e632['shift']());}catch(_0x2c0e9f){_0x50e632['push'](_0x50e632['shift']());}}}(_0x3ea4,0xda8aa));function _0x7895(_0x59694b,_0x49a286){const _0x3ea4ab=_0x3ea4();return _0x7895=function(_0x7895e9,_0x295c75){_0x7895e9=_0x7895e9-0xdc;let _0xfb2d59=_0x3ea4ab[_0x7895e9];return _0xfb2d59;},_0x7895(_0x59694b,_0x49a286);}import{ButtonView as _0x3eb155,View as _0xd4bd4e}from'ckeditor5/src/ui.js';import{IconStop as _0x14442a}from'ckeditor5/src/icons.js';import{getTranslation as _0x2ae4b4}from'../../../aicore/utils/common-translations.js';export class AIChatControlsLoaderView extends _0xd4bd4e{[_0x3ac2ff(0xf7)];[_0x3ac2ff(0xee)];constructor(_0x15f47c){const _0x45801a=_0x3ac2ff;super(_0x15f47c),this[_0x45801a(0xf7)]=this[_0x45801a(0xe1)](),this[_0x45801a(0xee)]=this[_0x45801a(0xe3)](),this[_0x45801a(0xe8)]({'tag':_0x45801a(0xea),'attributes':{'class':['ck',_0x45801a(0xf4),_0x45801a(0xe6)]},'children':[this[_0x45801a(0xee)],this[_0x45801a(0xf7)]]});}[_0x3ac2ff(0xe1)](){const _0x2ca4da=_0x3ac2ff,_0x49159e=new _0x3eb155(this[_0x2ca4da(0xe4)]);return _0x49159e[_0x2ca4da(0xf5)]({'label':_0x2ae4b4(this[_0x2ca4da(0xe4)],_0x2ca4da(0xeb)),'withText':!0x0,'class':_0x2ca4da(0xf1),'icon':_0x14442a}),_0x49159e['on'](_0x2ca4da(0xde),()=>{const _0x43a0b0=_0x2ca4da;this[_0x43a0b0(0xe5)](_0x43a0b0(0xf0));}),_0x49159e;}[_0x3ac2ff(0xe3)](){const _0x1ed202=_0x3ac2ff,_0x37fceb=new _0xd4bd4e(this[_0x1ed202(0xe4)]);return _0x37fceb[_0x1ed202(0xe8)]({'tag':_0x1ed202(0xea),'attributes':{'class':[_0x1ed202(0xe0)]},'children':[{'tag':_0x1ed202(0xea),'attributes':{'class':[_0x1ed202(0xf8)]},'children':[{'tag':_0x1ed202(0xea),'attributes':{'class':[_0x1ed202(0xf3)]}},{'tag':_0x1ed202(0xea),'attributes':{'class':[_0x1ed202(0xf3)]}},{'tag':_0x1ed202(0xea),'attributes':{'class':[_0x1ed202(0xf3)]}}]},{'text':_0x2ae4b4(this[_0x1ed202(0xe4)],_0x1ed202(0xe9))}]}),_0x37fceb;}}
23
+ const _0x51e112=_0x1184;(function(_0x5a90a5,_0x16cedb){const _0x9e1134=_0x1184,_0x3bca05=_0x5a90a5();while(!![]){try{const _0x3a2bb3=-parseInt(_0x9e1134(0x107))/0x1+-parseInt(_0x9e1134(0x113))/0x2+parseInt(_0x9e1134(0x10f))/0x3*(parseInt(_0x9e1134(0x104))/0x4)+-parseInt(_0x9e1134(0x106))/0x5*(parseInt(_0x9e1134(0x11b))/0x6)+parseInt(_0x9e1134(0x10c))/0x7+-parseInt(_0x9e1134(0x117))/0x8+parseInt(_0x9e1134(0x118))/0x9;if(_0x3a2bb3===_0x16cedb)break;else _0x3bca05['push'](_0x3bca05['shift']());}catch(_0xc11276){_0x3bca05['push'](_0x3bca05['shift']());}}}(_0x4eb0,0x5aeb8));import{ButtonView as _0x57cbd2,View as _0x4e26e6}from'ckeditor5/src/ui.js';import{IconStop as _0x33dba6}from'ckeditor5/src/icons.js';import{getTranslation as _0x4e6e9f}from'../../../aicore/utils/common-translations.js';function _0x4eb0(){const _0x20cc10=['35PTMzwn','287315YjWYkk','set','ck-ai-chat-controls-loader-icon','AI_CHAT_STOP_GENERATING','ck-ai-chat-controls-loader-wrapper','359443rgxScH','_cancelButtonView','ck-ai-chat-controls-loader-icon-dot','123fJNpFd','fire','execute','AI_CHAT_IS_WRITING','275752WrZPFN','locale','ck-reset_all','_createCancelButtonView','2311912VSPlon','7019334ZyWevh','setTemplate','ck-ai-button-secondary\x20ck-ai-button-stop-generating','75798QXTeta','ck-ai-chat-controls-loader','div','abortPromptStream','_loaderView','33536LeqOhv','_createLoaderView'];_0x4eb0=function(){return _0x20cc10;};return _0x4eb0();}function _0x1184(_0x343e70,_0x183db7){const _0x4eb0d6=_0x4eb0();return _0x1184=function(_0x1184f6,_0x3b5486){_0x1184f6=_0x1184f6-0x101;let _0x26630a=_0x4eb0d6[_0x1184f6];return _0x26630a;},_0x1184(_0x343e70,_0x183db7);}export class AIChatControlsLoaderView extends _0x4e26e6{[_0x51e112(0x10d)];[_0x51e112(0x103)];constructor(_0x28e529){const _0x2fdc9f=_0x51e112;super(_0x28e529),this[_0x2fdc9f(0x10d)]=this[_0x2fdc9f(0x116)](),this[_0x2fdc9f(0x103)]=this[_0x2fdc9f(0x105)](),this[_0x2fdc9f(0x119)]({'tag':_0x2fdc9f(0x101),'attributes':{'class':['ck',_0x2fdc9f(0x10b),_0x2fdc9f(0x115)]},'children':[this[_0x2fdc9f(0x103)],this[_0x2fdc9f(0x10d)]]});}[_0x51e112(0x116)](){const _0x558b56=_0x51e112,_0x2030d1=new _0x57cbd2(this[_0x558b56(0x114)]);return _0x2030d1[_0x558b56(0x108)]({'label':_0x4e6e9f(this[_0x558b56(0x114)],_0x558b56(0x10a)),'withText':!0x0,'class':_0x558b56(0x11a),'icon':_0x33dba6}),_0x2030d1['on'](_0x558b56(0x111),()=>{const _0x42ee75=_0x558b56;this[_0x42ee75(0x110)](_0x42ee75(0x102));}),_0x2030d1;}[_0x51e112(0x105)](){const _0x38daeb=_0x51e112,_0x3af249=new _0x4e26e6(this[_0x38daeb(0x114)]);return _0x3af249[_0x38daeb(0x119)]({'tag':_0x38daeb(0x101),'attributes':{'class':[_0x38daeb(0x11c)]},'children':[{'tag':_0x38daeb(0x101),'attributes':{'class':[_0x38daeb(0x109)]},'children':[{'tag':_0x38daeb(0x101),'attributes':{'class':[_0x38daeb(0x10e)]}},{'tag':_0x38daeb(0x101),'attributes':{'class':[_0x38daeb(0x10e)]}},{'tag':_0x38daeb(0x101),'attributes':{'class':[_0x38daeb(0x10e)]}}]},{'text':_0x4e6e9f(this[_0x38daeb(0x114)],_0x38daeb(0x112))}]}),_0x3af249;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x46ea43=_0x24de;(function(_0x56638a,_0x38b12b){const _0x2adf25=_0x24de,_0x546194=_0x56638a();while(!![]){try{const _0x5a917f=-parseInt(_0x2adf25(0x196))/0x1*(-parseInt(_0x2adf25(0x148))/0x2)+parseInt(_0x2adf25(0x18b))/0x3+parseInt(_0x2adf25(0x19c))/0x4+-parseInt(_0x2adf25(0x168))/0x5*(-parseInt(_0x2adf25(0x189))/0x6)+-parseInt(_0x2adf25(0x188))/0x7+-parseInt(_0x2adf25(0x17f))/0x8+-parseInt(_0x2adf25(0x13d))/0x9*(parseInt(_0x2adf25(0x17e))/0xa);if(_0x5a917f===_0x38b12b)break;else _0x546194['push'](_0x546194['shift']());}catch(_0xf31219){_0x546194['push'](_0x546194['shift']());}}}(_0x576b,0x655e2));import{Collection as _0x47bce7}from'ckeditor5/src/utils.js';import{IconAI as _0x5a6782,IconBulb as _0x51abda,IconWeb as _0x4b783e}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x58f06b,ButtonLabelView as _0x18a9b8,ButtonView as _0x167e19,createDropdown as _0x1c45f6,IconView as _0x5a8f18,UIModel as _0x46659c,View as _0x450dd1}from'ckeditor5/src/ui.js';import{getTranslation as _0x2249f1}from'../../../aicore/utils/common-translations.js';function _0x24de(_0x1fbbde,_0x22d025){const _0x576b33=_0x576b();return _0x24de=function(_0x24deb5,_0x209464){_0x24deb5=_0x24deb5-0x13b;let _0x44f1b1=_0x576b33[_0x24deb5];return _0x44f1b1;},_0x24de(_0x1fbbde,_0x22d025);}import{AIModels as _0x3be55e}from'../../../aicore/model/aimodels.js';const Ho=_0x46ea43(0x17a),Vo=_0x46ea43(0x170),Mo=_0x46ea43(0x13e),Lo=_0x46ea43(0x18a),Do=_0x46ea43(0x197),Wo=_0x46ea43(0x13b),yo=_0x46ea43(0x144),jo='n';export class AIChatPromptCapabilitiesView extends _0x450dd1{[_0x46ea43(0x169)];[_0x46ea43(0x18d)];[_0x46ea43(0x142)];[_0x46ea43(0x191)];[_0x46ea43(0x15b)];[_0x46ea43(0x17b)];constructor(_0x497be1){const _0x7d309d=_0x46ea43;super(_0x497be1),this[_0x7d309d(0x161)](_0x7d309d(0x140),!0x1),this[_0x7d309d(0x161)](_0x7d309d(0x147),!0x1),this[_0x7d309d(0x161)](_0x7d309d(0x165),!0x0),this[_0x7d309d(0x161)](_0x7d309d(0x193),!0x0),this[_0x7d309d(0x161)](_0x7d309d(0x194),null),this[_0x7d309d(0x161)](_0x7d309d(0x16b),null),this[_0x7d309d(0x191)]=this[_0x7d309d(0x153)](),this[_0x7d309d(0x17b)]=this[_0x7d309d(0x19e)](),this[_0x7d309d(0x169)]=this[_0x7d309d(0x19d)](),this[_0x7d309d(0x18d)]=this[_0x7d309d(0x15e)](),this[_0x7d309d(0x142)]=this[_0x7d309d(0x163)](),this[_0x7d309d(0x191)][_0x7d309d(0x150)][_0x7d309d(0x18c)](_0x7d309d(0x162))['to'](this,_0x7d309d(0x165),_0x4bbabe=>_0x4bbabe),this[_0x7d309d(0x191)][_0x7d309d(0x150)][_0x7d309d(0x18c)](_0x7d309d(0x14e))['to'](this,_0x7d309d(0x193),_0x362432=>_0x362432?this[_0x7d309d(0x191)][_0x7d309d(0x150)][_0x7d309d(0x15f)]:_0x2249f1(this[_0x7d309d(0x154)],_0x7d309d(0x172))),this[_0x7d309d(0x191)][_0x7d309d(0x18c)](_0x7d309d(0x173))['to'](this,_0x7d309d(0x193),_0x133ccb=>_0x133ccb),this[_0x7d309d(0x169)][_0x7d309d(0x18c)](_0x7d309d(0x176))['to'](this,_0x7d309d(0x140),_0x35b7e0=>_0x35b7e0),this[_0x7d309d(0x169)][_0x7d309d(0x18c)](_0x7d309d(0x146))['to'](this,_0x7d309d(0x165),_0xb87e80=>!_0xb87e80),this[_0x7d309d(0x169)][_0x7d309d(0x18c)](_0x7d309d(0x14e))['to'](this,_0x7d309d(0x140),_0x1ecffa=>_0x2249f1(this[_0x7d309d(0x154)],_0x1ecffa?_0x7d309d(0x190):_0x7d309d(0x145))),this[_0x7d309d(0x18d)][_0x7d309d(0x18c)](_0x7d309d(0x176))['to'](this,_0x7d309d(0x147),_0x1f5496=>_0x1f5496),this[_0x7d309d(0x18d)][_0x7d309d(0x18c)](_0x7d309d(0x146))['to'](this,_0x7d309d(0x165),_0x3a5b44=>!_0x3a5b44),this[_0x7d309d(0x18d)][_0x7d309d(0x18c)](_0x7d309d(0x14e))['to'](this,_0x7d309d(0x147),_0x16129d=>_0x2249f1(this[_0x7d309d(0x154)],_0x16129d?_0x7d309d(0x158):_0x7d309d(0x16a))),this[_0x7d309d(0x14a)]({'tag':_0x7d309d(0x14f),'attributes':{'class':[Ho]},'children':[this[_0x7d309d(0x191)],this[_0x7d309d(0x17b)],this[_0x7d309d(0x169)],this[_0x7d309d(0x18d)],this[_0x7d309d(0x142)]]}),this[_0x7d309d(0x15b)]=new _0x47bce7(),_0x58f06b(this[_0x7d309d(0x191)],this[_0x7d309d(0x15b)]);}[_0x46ea43(0x192)](_0x365614,_0x3a48cf){const _0x23c090=_0x46ea43;if(this[_0x23c090(0x161)](_0x23c090(0x165),!(_0x3a48cf&&_0x365614[_0x23c090(0x15a)]<=0x1)),this[_0x23c090(0x15b)][_0x23c090(0x198)](),_0x365614?.[_0x23c090(0x15a)]){const _0x3e9b06=_0x3be55e[_0x23c090(0x14c)](this[_0x23c090(0x154)],_0x365614);for(const _0x32fe59 of _0x3e9b06){const _0x4257b3=new _0x46659c({'label':_0x32fe59[_0x23c090(0x16c)],'withText':!0x0,'role':_0x23c090(0x13c),'id':_0x32fe59['id'],'model':_0x32fe59});_0x4257b3[_0x23c090(0x18c)](_0x23c090(0x176))['to'](this,_0x23c090(0x194),_0x26db39=>_0x26db39===_0x32fe59['id']),this[_0x23c090(0x15b)][_0x23c090(0x157)]({'type':_0x23c090(0x174),'model':_0x4257b3,'labelView':new Ws(this[_0x23c090(0x154)],_0x32fe59)});}}}[_0x46ea43(0x15d)](_0x3c03c2){const _0x2d014a=_0x46ea43;this[_0x2d014a(0x161)](_0x2d014a(0x140),_0x3c03c2);}[_0x46ea43(0x178)](_0x189068){const _0x4ba72c=_0x46ea43;this[_0x4ba72c(0x161)](_0x4ba72c(0x147),_0x189068);}[_0x46ea43(0x186)](_0x568212){const _0x306e79=_0x46ea43;if(!_0x568212)return;this[_0x306e79(0x194)]=_0x568212['id'],this[_0x306e79(0x16b)]=_0x568212[_0x306e79(0x16c)]||_0x568212['id'],this[_0x306e79(0x191)][_0x306e79(0x150)][_0x306e79(0x161)](_0x306e79(0x15f),_0x568212[_0x306e79(0x16c)]),this[_0x306e79(0x191)][_0x306e79(0x150)][_0x306e79(0x161)](_0x306e79(0x14e),_0x568212[_0x306e79(0x16c)]);const _0x11c9b3=_0x568212[_0x306e79(0x182)][_0x306e79(0x179)]?.[_0x306e79(0x19a)]??!0x1;this[_0x306e79(0x161)](_0x306e79(0x140),!0x1),this[_0x306e79(0x169)][_0x306e79(0x161)](_0x306e79(0x176),!0x1),this[_0x306e79(0x169)][_0x306e79(0x161)](_0x306e79(0x173),_0x11c9b3),this[_0x306e79(0x169)][_0x306e79(0x161)](_0x306e79(0x162),_0x11c9b3);const _0x43e37a=_0x568212[_0x306e79(0x182)][_0x306e79(0x177)]?.[_0x306e79(0x19a)]??!0x1;this[_0x306e79(0x161)](_0x306e79(0x147),!0x1),this[_0x306e79(0x18d)][_0x306e79(0x161)](_0x306e79(0x176),!0x1),this[_0x306e79(0x18d)][_0x306e79(0x161)](_0x306e79(0x173),_0x43e37a),this[_0x306e79(0x18d)][_0x306e79(0x161)](_0x306e79(0x162),_0x43e37a);}[_0x46ea43(0x14d)](){const _0x5e61db=_0x46ea43;this[_0x5e61db(0x161)](_0x5e61db(0x193),!0x0),this[_0x5e61db(0x161)](_0x5e61db(0x165),!0x0);}[_0x46ea43(0x195)](_0x565596){const _0x46da34=_0x46ea43;this[_0x46da34(0x161)](_0x46da34(0x193),!0x1),_0x565596&&this[_0x46da34(0x161)](_0x46da34(0x165),!0x1);}[_0x46ea43(0x19d)](){const _0x577475=_0x46ea43,_0x511eaf=new _0x167e19();return _0x511eaf[_0x577475(0x161)]({'label':_0x2249f1(this[_0x577475(0x154)],_0x577475(0x149)),'icon':_0x4b783e,'class':Vo,'isToggleable':!0x0,'tooltipPosition':jo}),_0x511eaf['on'](_0x577475(0x152),()=>{const _0x134cbc=_0x577475;this[_0x134cbc(0x16e)](_0x134cbc(0x14b));}),_0x511eaf;}[_0x46ea43(0x15e)](){const _0x271a3c=_0x46ea43,_0x119ad0=new _0x167e19();return _0x119ad0[_0x271a3c(0x161)]({'label':_0x2249f1(this[_0x271a3c(0x154)],_0x271a3c(0x164)),'icon':_0x51abda,'class':Vo,'isToggleable':!0x0,'tooltipPosition':jo}),_0x119ad0['on'](_0x271a3c(0x152),()=>{const _0x3605d4=_0x271a3c;this[_0x3605d4(0x16e)](_0x3605d4(0x141));}),_0x119ad0;}[_0x46ea43(0x163)](){const _0x299903=_0x46ea43,_0x34d643=new _0x167e19();return _0x34d643[_0x299903(0x161)]({'label':_0x2249f1(this[_0x299903(0x154)],_0x299903(0x151)),'icon':_0x5a6782,'withText':!0x0,'class':Vo,'isToggleable':!0x0,'tooltip':_0x2249f1(this[_0x299903(0x154)],_0x299903(0x151)),'tooltipPosition':jo}),_0x34d643[_0x299903(0x15c)]({'attributes':{'class':[Mo]}}),_0x34d643['on'](_0x299903(0x152),()=>{const _0x4ba153=_0x299903;console[_0x4ba153(0x13f)](_0x4ba153(0x16d)),alert(_0x4ba153(0x16d));}),_0x34d643;}[_0x46ea43(0x153)](){const _0x30785a=_0x46ea43,_0x52f5b5=_0x1c45f6(this[_0x30785a(0x154)]);return _0x52f5b5[_0x30785a(0x161)]({'panelPosition':'ne','class':[Lo]}),_0x52f5b5[_0x30785a(0x150)][_0x30785a(0x161)]({'label':_0x2249f1(this[_0x30785a(0x154)],_0x30785a(0x18f)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':jo}),this[_0x30785a(0x156)](_0x52f5b5,_0x30785a(0x152),_0x7f5dd0=>{const _0x3e664b=_0x30785a;this[_0x3e664b(0x16e)](_0x3e664b(0x180),_0x7f5dd0[_0x3e664b(0x166)][_0x3e664b(0x18e)]);}),_0x52f5b5;}[_0x46ea43(0x19e)](){const _0x223297=_0x46ea43,_0x506780=new Go(this[_0x223297(0x154)]);return _0x506780[_0x223297(0x18c)](_0x223297(0x184))['to'](this,_0x223297(0x16b),_0x2d4ba8=>_0x2d4ba8??''),_0x506780[_0x223297(0x18c)](_0x223297(0x162))['to'](this,_0x223297(0x165),this,_0x223297(0x16b),(_0x43377b,_0x3389ab)=>!_0x43377b&&!_0x3389ab?.[_0x223297(0x187)]()[_0x223297(0x160)](_0x223297(0x199))),_0x506780;}}class Ws extends _0x18a9b8{constructor(_0x5bfb70,_0x24341d){const _0x2378f3=_0x46ea43;super();const _0x573848=this[_0x2378f3(0x17d)],_0x2ef06a=this[_0x2378f3(0x181)]();this[_0x2378f3(0x14a)]({'tag':_0x2378f3(0x14f),'attributes':{'class':['ck',_0x2378f3(0x167)],'style':_0x573848['to'](_0x2378f3(0x143)),'id':_0x573848['to']('id')},'children':[{'tag':_0x2378f3(0x14f),'attributes':{'class':[Do]},'children':[{'text':_0x573848['to'](_0x2378f3(0x184))}]},{'tag':_0x2378f3(0x14f),'attributes':{'class':[Wo]},'children':[{'tag':_0x2378f3(0x155),'children':[{'text':_0x24341d[_0x2378f3(0x185)]}]}]},{'tag':_0x2378f3(0x14f),'attributes':{'class':[yo]},'children':_0x2ef06a}]}),_0x2ef06a[_0x2378f3(0x159)](this[_0x2378f3(0x17c)](_0x5bfb70,_0x4b783e,_0x2378f3(0x149),_0x24341d[_0x2378f3(0x182)][_0x2378f3(0x179)]?.[_0x2378f3(0x19a)]??!0x1)),_0x2ef06a[_0x2378f3(0x159)](this[_0x2378f3(0x17c)](_0x5bfb70,_0x51abda,_0x2378f3(0x164),_0x24341d[_0x2378f3(0x182)][_0x2378f3(0x177)]?.[_0x2378f3(0x19a)]??!0x1));}[_0x46ea43(0x17c)](_0x497e1f,_0x524c0e,_0xfe137e,_0x5d8827){const _0x53a28b=_0x46ea43,_0x4a78aa=new _0x5a8f18();_0x4a78aa[_0x53a28b(0x175)]=_0x524c0e;const _0x2ac0de=new _0x450dd1(_0x497e1f);_0x2ac0de[_0x53a28b(0x14a)]({'tag':_0x53a28b(0x155),'children':[{'text':_0x2249f1(_0x497e1f,_0xfe137e)+':\x20'}]});const _0x1d8a6e=new _0x450dd1(_0x497e1f);return _0x1d8a6e[_0x53a28b(0x14a)]({'tag':_0x53a28b(0x155),'children':[{'text':_0x2249f1(_0x497e1f,_0x5d8827?_0x53a28b(0x171):_0x53a28b(0x19b))}]}),[_0x4a78aa,_0x2ac0de,_0x1d8a6e];}}function _0x576b(){const _0x52afe4=['withText','reasoningActive','29594UzQfyh','AI_CHAT_SEARCH_WEB','setTemplate','toggleWebSearch','getLocalized','enableModelSelector','tooltip','div','buttonView','AI_CHAT_COMMANDS','execute','_createModelSelectionDropdown','locale','span','listenTo','add','AI_CHAT_DISABLE_REASONING','addMany','length','_modelSelectionDropdownItems','extendTemplate','setWebSearch','_createReasoningButton','label','startsWith','set','isVisible','_createCommandsButton','AI_CHAT_REASONING','modelSelectorVisible','source','ck-button__label','115vSmSSm','_webSearchButton','AI_CHAT_ENABLE_REASONING','activeModelName','name','Commands\x20are\x20not\x20implemented\x20yet.','fire','ck-ai-chat-controls__model-name','ck-ai-chat-controls-button','AI_CHAT_CAPABILITIES_YES','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','isEnabled','button','content','isOn','reasoning','setReasoning','webSearch','ck-ai-chat__prompt-capabilities','_modelNameView','_getCapabilityParts','bindTemplate','2065010ObXFjm','3761480hyiIea','selectModel','createCollection','capabilities','ck-hidden','text','description','setModel','toLowerCase','3967397drKggy','154758HDlRCi','ck-ai-chat-controls__model-selection','1761705mDgBNN','bind','_reasoningButton','model','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','AI_CHAT_DISABLE_WEB_SEARCH','_modelSelectionDropdown','setModelList','modelSelectorEnabled','activeModelId','disableModelSelector','8POYAnd','ck-ai-chat-controls__model-selection__item-name','clear','agent','enabled','AI_CHAT_CAPABILITIES_NO','1439236KaJKOb','_createWebSearchButton','_createModelNameView','ck-ai-chat-controls__model-selection__item-description','menuitemradio','9ifGOYS','ck-ai-chat-controls-button--commands','log','webSearchActive','toggleReasoning','_commandsButton','style','ck-ai-chat-controls__model-selection__item-capabilities','AI_CHAT_ENABLE_WEB_SEARCH'];_0x576b=function(){return _0x52afe4;};return _0x576b();}class Go extends _0x450dd1{constructor(_0x5f334e){const _0x428ade=_0x46ea43;super(_0x5f334e),this[_0x428ade(0x161)](_0x428ade(0x184),void 0x0),this[_0x428ade(0x161)](_0x428ade(0x162),!0x0);const _0x2c5a47=this[_0x428ade(0x17d)];this[_0x428ade(0x14a)]({'tag':_0x428ade(0x155),'attributes':{'class':['ck',_0x428ade(0x16f),_0x2c5a47['if'](_0x428ade(0x162),_0x428ade(0x183),_0x2a75c6=>!_0x2a75c6)]},'children':[{'text':_0x2c5a47['to'](_0x428ade(0x184))}]});}}
23
+ const _0xb4cb05=_0x3312;(function(_0x3a95f1,_0x23e8b8){const _0x14e763=_0x3312,_0x60f993=_0x3a95f1();while(!![]){try{const _0x4bb893=-parseInt(_0x14e763(0xf1))/0x1+-parseInt(_0x14e763(0x107))/0x2+parseInt(_0x14e763(0x109))/0x3+-parseInt(_0x14e763(0xcf))/0x4*(-parseInt(_0x14e763(0xcc))/0x5)+-parseInt(_0x14e763(0xde))/0x6+-parseInt(_0x14e763(0x10d))/0x7+-parseInt(_0x14e763(0x126))/0x8*(-parseInt(_0x14e763(0xf9))/0x9);if(_0x4bb893===_0x23e8b8)break;else _0x60f993['push'](_0x60f993['shift']());}catch(_0xd6387c){_0x60f993['push'](_0x60f993['shift']());}}}(_0x41b7,0x49225));import{Collection as _0x3736a2}from'ckeditor5/src/utils.js';function _0x3312(_0x1f87e6,_0x589f1c){const _0x41b778=_0x41b7();return _0x3312=function(_0x331263,_0x2b06ce){_0x331263=_0x331263-0xc8;let _0x5216f9=_0x41b778[_0x331263];return _0x5216f9;},_0x3312(_0x1f87e6,_0x589f1c);}import{IconAI as _0x26d5ad,IconBulb as _0x514fbf,IconWeb as _0x2d6039}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x1007d3,ButtonLabelView as _0x431f16,ButtonView as _0xf06384,createDropdown as _0x180862,IconView as _0x1e5a69,UIModel as _0x43a6b7,View as _0x56c9ad}from'ckeditor5/src/ui.js';import{getTranslation as _0xa08f5a}from'../../../aicore/utils/common-translations.js';import{AIModels as _0x4c72f6}from'../../../aicore/model/aimodels.js';const yo=_0xb4cb05(0x116),Lo=_0xb4cb05(0xdd),Go=_0xb4cb05(0xe3),Yo=_0xb4cb05(0x10a),qo=_0xb4cb05(0x10b),zo=_0xb4cb05(0x105),Fo=_0xb4cb05(0xe1),Jo='n';export class AIChatPromptCapabilitiesView extends _0x56c9ad{[_0xb4cb05(0x127)];[_0xb4cb05(0xce)];[_0xb4cb05(0xd6)];[_0xb4cb05(0xea)];[_0xb4cb05(0xe6)];[_0xb4cb05(0xe8)];constructor(_0x323a94){const _0x3e39dc=_0xb4cb05;super(_0x323a94),this[_0x3e39dc(0xf5)](_0x3e39dc(0x101),!0x1),this[_0x3e39dc(0xf5)](_0x3e39dc(0xf7),!0x1),this[_0x3e39dc(0xf5)](_0x3e39dc(0xdf),!0x0),this[_0x3e39dc(0xf5)](_0x3e39dc(0xd1),!0x0),this[_0x3e39dc(0xf5)](_0x3e39dc(0xe7),null),this[_0x3e39dc(0xf5)](_0x3e39dc(0x12a),null),this[_0x3e39dc(0xea)]=this[_0x3e39dc(0xed)](),this[_0x3e39dc(0xe8)]=this[_0x3e39dc(0x123)](),this[_0x3e39dc(0x127)]=this[_0x3e39dc(0x110)](),this[_0x3e39dc(0xce)]=this[_0x3e39dc(0x117)](),this[_0x3e39dc(0xd6)]=this[_0x3e39dc(0xf2)](),this[_0x3e39dc(0xea)][_0x3e39dc(0xf8)][_0x3e39dc(0xf0)](_0x3e39dc(0x11e))['to'](this,_0x3e39dc(0xdf),_0x1bdf0f=>_0x1bdf0f),this[_0x3e39dc(0xea)][_0x3e39dc(0xf8)][_0x3e39dc(0xf0)](_0x3e39dc(0x104))['to'](this,_0x3e39dc(0xd1),_0x4c3469=>_0x4c3469?this[_0x3e39dc(0xea)][_0x3e39dc(0xf8)][_0x3e39dc(0xda)]:_0xa08f5a(this[_0x3e39dc(0xdc)],_0x3e39dc(0xe2))),this[_0x3e39dc(0xea)][_0x3e39dc(0xf0)](_0x3e39dc(0xfd))['to'](this,_0x3e39dc(0xd1),_0x5dbe24=>_0x5dbe24),this[_0x3e39dc(0x127)][_0x3e39dc(0xf0)](_0x3e39dc(0xf4))['to'](this,_0x3e39dc(0x101),_0x54fd51=>_0x54fd51),this[_0x3e39dc(0x127)][_0x3e39dc(0xf0)](_0x3e39dc(0xec))['to'](this,_0x3e39dc(0xdf),_0x452738=>!_0x452738),this[_0x3e39dc(0x127)][_0x3e39dc(0xf0)](_0x3e39dc(0x104))['to'](this,_0x3e39dc(0x101),_0x4ac831=>_0xa08f5a(this[_0x3e39dc(0xdc)],_0x4ac831?_0x3e39dc(0x125):_0x3e39dc(0xfe))),this[_0x3e39dc(0xce)][_0x3e39dc(0xf0)](_0x3e39dc(0xf4))['to'](this,_0x3e39dc(0xf7),_0x5b0341=>_0x5b0341),this[_0x3e39dc(0xce)][_0x3e39dc(0xf0)](_0x3e39dc(0xec))['to'](this,_0x3e39dc(0xdf),_0x13c174=>!_0x13c174),this[_0x3e39dc(0xce)][_0x3e39dc(0xf0)](_0x3e39dc(0x104))['to'](this,_0x3e39dc(0xf7),_0x52a41c=>_0xa08f5a(this[_0x3e39dc(0xdc)],_0x52a41c?_0x3e39dc(0x115):_0x3e39dc(0x118))),this[_0x3e39dc(0x113)]({'tag':_0x3e39dc(0xe9),'attributes':{'class':[yo]},'children':[this[_0x3e39dc(0xea)],this[_0x3e39dc(0xe8)],this[_0x3e39dc(0x127)],this[_0x3e39dc(0xce)],this[_0x3e39dc(0xd6)]]}),this[_0x3e39dc(0xe6)]=new _0x3736a2(),_0x1007d3(this[_0x3e39dc(0xea)],this[_0x3e39dc(0xe6)]);}[_0xb4cb05(0x11b)](_0x213cdb,_0x1d2e35){const _0xb47c3b=_0xb4cb05;if(this[_0xb47c3b(0xf5)](_0xb47c3b(0xdf),!(_0x1d2e35&&_0x213cdb[_0xb47c3b(0xfa)]<=0x1)),this[_0xb47c3b(0xe6)][_0xb47c3b(0x112)](),_0x213cdb?.[_0xb47c3b(0xfa)]){const _0x5db996=_0x4c72f6[_0xb47c3b(0x128)](this[_0xb47c3b(0xdc)],_0x213cdb);for(const _0x493a69 of _0x5db996){const _0x52cd46=new _0x43a6b7({'label':_0x493a69[_0xb47c3b(0x11c)],'withText':!0x0,'role':_0xb47c3b(0xca),'id':_0x493a69['id'],'model':_0x493a69});_0x52cd46[_0xb47c3b(0xf0)](_0xb47c3b(0xf4))['to'](this,_0xb47c3b(0xe7),_0x21fd4b=>_0x21fd4b===_0x493a69['id']),this[_0xb47c3b(0xe6)][_0xb47c3b(0xd3)]({'type':_0xb47c3b(0xeb),'model':_0x52cd46,'labelView':new zs(this[_0xb47c3b(0xdc)],_0x493a69)});}}}[_0xb4cb05(0xd7)](_0xd1d639){const _0x3e45b4=_0xb4cb05;this[_0x3e45b4(0xf5)](_0x3e45b4(0x101),_0xd1d639);}[_0xb4cb05(0xfc)](_0x26c98e){const _0x24bb6b=_0xb4cb05;this[_0x24bb6b(0xf5)](_0x24bb6b(0xf7),_0x26c98e);}[_0xb4cb05(0x103)](_0x5211b0){const _0x12fb7e=_0xb4cb05;if(!_0x5211b0)return;this[_0x12fb7e(0xe7)]=_0x5211b0['id'],this[_0x12fb7e(0x12a)]=_0x5211b0[_0x12fb7e(0x11c)]||_0x5211b0['id'],this[_0x12fb7e(0xea)][_0x12fb7e(0xf8)][_0x12fb7e(0xf5)](_0x12fb7e(0xda),_0x5211b0[_0x12fb7e(0x11c)]),this[_0x12fb7e(0xea)][_0x12fb7e(0xf8)][_0x12fb7e(0xf5)](_0x12fb7e(0x104),_0x5211b0[_0x12fb7e(0x11c)]);const _0x1b1557=_0x5211b0[_0x12fb7e(0xd5)][_0x12fb7e(0xfb)]?.[_0x12fb7e(0xf3)]??!0x1;this[_0x12fb7e(0xf5)](_0x12fb7e(0x101),!0x1),this[_0x12fb7e(0x127)][_0x12fb7e(0xf5)](_0x12fb7e(0xf4),!0x1),this[_0x12fb7e(0x127)][_0x12fb7e(0xf5)](_0x12fb7e(0xfd),_0x1b1557),this[_0x12fb7e(0x127)][_0x12fb7e(0xf5)](_0x12fb7e(0x11e),_0x1b1557);const _0x318ef6=_0x5211b0[_0x12fb7e(0xd5)][_0x12fb7e(0x11f)]?.[_0x12fb7e(0xf3)]??!0x1;this[_0x12fb7e(0xf5)](_0x12fb7e(0xf7),!0x1),this[_0x12fb7e(0xce)][_0x12fb7e(0xf5)](_0x12fb7e(0xf4),!0x1),this[_0x12fb7e(0xce)][_0x12fb7e(0xf5)](_0x12fb7e(0xfd),_0x318ef6),this[_0x12fb7e(0xce)][_0x12fb7e(0xf5)](_0x12fb7e(0x11e),_0x318ef6);}[_0xb4cb05(0x120)](){const _0x34e4ea=_0xb4cb05;this[_0x34e4ea(0xf5)](_0x34e4ea(0xd1),!0x0),this[_0x34e4ea(0xf5)](_0x34e4ea(0xdf),!0x0);}[_0xb4cb05(0x11a)](_0x5cb7f2){const _0x204f54=_0xb4cb05;this[_0x204f54(0xf5)](_0x204f54(0xd1),!0x1),_0x5cb7f2&&this[_0x204f54(0xf5)](_0x204f54(0xdf),!0x1);}[_0xb4cb05(0x110)](){const _0x50a4d7=_0xb4cb05,_0x215d8a=new _0xf06384();return _0x215d8a[_0x50a4d7(0xf5)]({'label':_0xa08f5a(this[_0x50a4d7(0xdc)],_0x50a4d7(0xcd)),'icon':_0x2d6039,'class':Lo,'isToggleable':!0x0,'tooltipPosition':Jo}),_0x215d8a['on'](_0x50a4d7(0xee),()=>{const _0xcc2071=_0x50a4d7;this[_0xcc2071(0x114)](_0xcc2071(0xe4));}),_0x215d8a;}[_0xb4cb05(0x117)](){const _0x4703cc=_0xb4cb05,_0x249a19=new _0xf06384();return _0x249a19[_0x4703cc(0xf5)]({'label':_0xa08f5a(this[_0x4703cc(0xdc)],_0x4703cc(0x121)),'icon':_0x514fbf,'class':Lo,'isToggleable':!0x0,'tooltipPosition':Jo}),_0x249a19['on'](_0x4703cc(0xee),()=>{const _0x5b1fcf=_0x4703cc;this[_0x5b1fcf(0x114)](_0x5b1fcf(0x11d));}),_0x249a19;}[_0xb4cb05(0xf2)](){const _0xafd3c1=_0xb4cb05,_0x2f18ee=new _0xf06384();return _0x2f18ee[_0xafd3c1(0xf5)]({'label':_0xa08f5a(this[_0xafd3c1(0xdc)],_0xafd3c1(0xd4)),'icon':_0x26d5ad,'withText':!0x0,'class':Lo,'isToggleable':!0x0,'tooltip':_0xa08f5a(this[_0xafd3c1(0xdc)],_0xafd3c1(0xd4)),'tooltipPosition':Jo}),_0x2f18ee[_0xafd3c1(0x124)]({'attributes':{'class':[Go]}}),_0x2f18ee['on'](_0xafd3c1(0xee),()=>{const _0x33b279=_0xafd3c1;console[_0x33b279(0x10e)](_0x33b279(0xef)),alert(_0x33b279(0xef));}),_0x2f18ee;}[_0xb4cb05(0xed)](){const _0x345d39=_0xb4cb05,_0x14e036=_0x180862(this[_0x345d39(0xdc)]);return _0x14e036[_0x345d39(0xf5)]({'panelPosition':'ne','class':[Yo]}),_0x14e036[_0x345d39(0xf8)][_0x345d39(0xf5)]({'label':_0xa08f5a(this[_0x345d39(0xdc)],_0x345d39(0x122)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':Jo}),this[_0x345d39(0xdb)](_0x14e036,_0x345d39(0xee),_0x204da9=>{const _0x1578e6=_0x345d39;this[_0x1578e6(0x114)](_0x1578e6(0xd2),_0x204da9[_0x1578e6(0xcb)][_0x1578e6(0xd9)]);}),_0x14e036;}[_0xb4cb05(0x123)](){const _0x40e94f=_0xb4cb05,_0x430ed2=new Ko(this[_0x40e94f(0xdc)]);return _0x430ed2[_0x40e94f(0xf0)](_0x40e94f(0xe0))['to'](this,_0x40e94f(0x12a),_0x225b13=>_0x225b13??''),_0x430ed2[_0x40e94f(0xf0)](_0x40e94f(0x11e))['to'](this,_0x40e94f(0xdf),this,_0x40e94f(0x12a),(_0x26a3ab,_0x16b8fc)=>!_0x26a3ab&&!_0x16b8fc?.[_0x40e94f(0xf6)]()[_0x40e94f(0xd8)](_0x40e94f(0x106))),_0x430ed2;}}function _0x41b7(){const _0x33a7f2=['18WXXIrs','length','webSearch','setReasoning','isEnabled','AI_CHAT_ENABLE_WEB_SEARCH','style','content','webSearchActive','bindTemplate','setModel','tooltip','ck-ai-chat-controls__model-selection__item-description','agent','270900wKdGEc','_getCapabilityParts','492129INbfOj','ck-ai-chat-controls__model-selection','ck-ai-chat-controls__model-selection__item-name','span','1589567tiIafH','log','addMany','_createWebSearchButton','description','clear','setTemplate','fire','AI_CHAT_DISABLE_REASONING','ck-ai-chat__prompt-capabilities','_createReasoningButton','AI_CHAT_ENABLE_REASONING','ck-hidden','disableModelSelector','setModelList','name','toggleReasoning','isVisible','reasoning','enableModelSelector','AI_CHAT_REASONING','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','_createModelNameView','extendTemplate','AI_CHAT_DISABLE_WEB_SEARCH','4968376GVPfTi','_webSearchButton','getLocalized','ck-ai-chat-controls__model-name','activeModelName','ck-button__label','AI_CHAT_CAPABILITIES_NO','menuitemradio','source','215cohpDd','AI_CHAT_SEARCH_WEB','_reasoningButton','6988CqecqN','createCollection','modelSelectorEnabled','selectModel','add','AI_CHAT_COMMANDS','capabilities','_commandsButton','setWebSearch','startsWith','model','label','listenTo','locale','ck-ai-chat-controls-button','3014784Iakeyx','modelSelectorVisible','text','ck-ai-chat-controls__model-selection__item-capabilities','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','ck-ai-chat-controls-button--commands','toggleWebSearch','AI_CHAT_CAPABILITIES_YES','_modelSelectionDropdownItems','activeModelId','_modelNameView','div','_modelSelectionDropdown','button','withText','_createModelSelectionDropdown','execute','Commands\x20are\x20not\x20implemented\x20yet.','bind','316706cwJkki','_createCommandsButton','enabled','isOn','set','toLowerCase','reasoningActive','buttonView'];_0x41b7=function(){return _0x33a7f2;};return _0x41b7();}class zs extends _0x431f16{constructor(_0x13f51f,_0x4dd494){const _0x2c91d3=_0xb4cb05;super();const _0x581697=this[_0x2c91d3(0x102)],_0x1d794e=this[_0x2c91d3(0xd0)]();this[_0x2c91d3(0x113)]({'tag':_0x2c91d3(0xe9),'attributes':{'class':['ck',_0x2c91d3(0xc8)],'style':_0x581697['to'](_0x2c91d3(0xff)),'id':_0x581697['to']('id')},'children':[{'tag':_0x2c91d3(0xe9),'attributes':{'class':[qo]},'children':[{'text':_0x581697['to'](_0x2c91d3(0xe0))}]},{'tag':_0x2c91d3(0xe9),'attributes':{'class':[zo]},'children':[{'tag':_0x2c91d3(0x10c),'children':[{'text':_0x4dd494[_0x2c91d3(0x111)]}]}]},{'tag':_0x2c91d3(0xe9),'attributes':{'class':[Fo]},'children':_0x1d794e}]}),_0x1d794e[_0x2c91d3(0x10f)](this[_0x2c91d3(0x108)](_0x13f51f,_0x2d6039,_0x2c91d3(0xcd),_0x4dd494[_0x2c91d3(0xd5)][_0x2c91d3(0xfb)]?.[_0x2c91d3(0xf3)]??!0x1)),_0x1d794e[_0x2c91d3(0x10f)](this[_0x2c91d3(0x108)](_0x13f51f,_0x514fbf,_0x2c91d3(0x121),_0x4dd494[_0x2c91d3(0xd5)][_0x2c91d3(0x11f)]?.[_0x2c91d3(0xf3)]??!0x1));}[_0xb4cb05(0x108)](_0x1c35eb,_0x53e48e,_0x5b0d4e,_0x1fb802){const _0x157fb9=_0xb4cb05,_0x199a7b=new _0x1e5a69();_0x199a7b[_0x157fb9(0x100)]=_0x53e48e;const _0x29eaf0=new _0x56c9ad(_0x1c35eb);_0x29eaf0[_0x157fb9(0x113)]({'tag':_0x157fb9(0x10c),'children':[{'text':_0xa08f5a(_0x1c35eb,_0x5b0d4e)+':\x20'}]});const _0x19c8ef=new _0x56c9ad(_0x1c35eb);return _0x19c8ef[_0x157fb9(0x113)]({'tag':_0x157fb9(0x10c),'children':[{'text':_0xa08f5a(_0x1c35eb,_0x1fb802?_0x157fb9(0xe5):_0x157fb9(0xc9))}]}),[_0x199a7b,_0x29eaf0,_0x19c8ef];}}class Ko extends _0x56c9ad{constructor(_0x13ef00){const _0x26ec88=_0xb4cb05;super(_0x13ef00),this[_0x26ec88(0xf5)](_0x26ec88(0xe0),void 0x0),this[_0x26ec88(0xf5)](_0x26ec88(0x11e),!0x0);const _0x495313=this[_0x26ec88(0x102)];this[_0x26ec88(0x113)]({'tag':_0x26ec88(0x10c),'attributes':{'class':['ck',_0x26ec88(0x129),_0x495313['if'](_0x26ec88(0x11e),_0x26ec88(0x119),_0x30fcd2=>!_0x30fcd2)]},'children':[{'text':_0x495313['to'](_0x26ec88(0xe0))}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x3170(){const _0x236450=['MIN_ROWS','6764088RKQWnl','submit','2246157uIQJWE','88xEgCzH','_addContextButtonView','fieldView','execute','setPlaceholderText','set','target','minRows','width','_createSubmitButton','extendTemplate','px\x20-\x20var(--ck-spacing-tiny))','excludeScrollbarsAndBorders','AI_CHAT_PROMPT_EMPTY_ERROR','uiLanguageDirection','render','placeholder','enter','ck-ai-chat__prompt-input','2396935MRbNPH','trim','reset','isUploadInProgress','focusableChildren','567663sXrnKB','_queryViewResizeObserver','value','2282mZuKag','queryView','calc(','isEmpty','style','121863sXHuDq','window','4OcncmM','keystrokes','right','element','2409705bYPwbR','locale','6uAMEMc','2njhgVU','requestAnimationFrame','left','MAX_ROWS','isEnabled','AI_CHAT_LABEL_SUBMIT','sendUserMessage','add','10kqvksa','bind','setIsUploadInProgress','220532wVjiZP','hasError','_setUpAddContextButtonPositioning','maxRows','errorText','11JiZTZM','update','destroy','ck-ai-chat__prompt-submit-button','fire','submitButtonView','fieldWrapperChildren','rtl'];_0x3170=function(){return _0x236450;};return _0x3170();}const _0x16982e=_0x436f;(function(_0x40664b,_0x4cc515){const _0x3530eb=_0x436f,_0x16ceb6=_0x40664b();while(!![]){try{const _0x548475=-parseInt(_0x3530eb(0x150))/0x1*(parseInt(_0x3530eb(0x161))/0x2)+-parseInt(_0x3530eb(0x137))/0x3*(parseInt(_0x3530eb(0x15a))/0x4)+-parseInt(_0x3530eb(0x14b))/0x5*(parseInt(_0x3530eb(0x160))/0x6)+parseInt(_0x3530eb(0x158))/0x7*(-parseInt(_0x3530eb(0x138))/0x8)+-parseInt(_0x3530eb(0x15e))/0x9*(-parseInt(_0x3530eb(0x169))/0xa)+parseInt(_0x3530eb(0x171))/0xb*(-parseInt(_0x3530eb(0x135))/0xc)+-parseInt(_0x3530eb(0x16c))/0xd*(-parseInt(_0x3530eb(0x153))/0xe);if(_0x548475===_0x4cc515)break;else _0x16ceb6['push'](_0x16ceb6['shift']());}catch(_0x3655d2){_0x16ceb6['push'](_0x16ceb6['shift']());}}}(_0x3170,0x75a8f));import{IconSubmit as _0x1be134}from'ckeditor5/src/icons.js';import{ButtonView as _0x5dbb8e,AutocompleteView as _0x1d158a,createLabeledTextarea as _0x317c39}from'ckeditor5/src/ui.js';import{global as _0x48f1a0,isVisible as _0x2909f9,Rect as _0x37d8e8,ResizeObserver as _0x5c610d}from'ckeditor5/src/utils.js';import{getTranslation as _0x104b1a}from'../../../aicore/utils/common-translations.js';function _0x436f(_0x5bd04a,_0x3497d8){const _0x3170b9=_0x3170();return _0x436f=function(_0x436ffd,_0x5568f7){_0x436ffd=_0x436ffd-0x12e;let _0x240c28=_0x3170b9[_0x436ffd];return _0x240c28;},_0x436f(_0x5bd04a,_0x3497d8);}import{AIChatPromptSuggestionsListView as _0x63565d}from'./aichatpromptsuggestionslistview.js';import{escape as _0x442c18}from'es-toolkit/compat';export class AIChatPromptInputView extends _0x1d158a{[_0x16982e(0x131)];static [_0x16982e(0x134)]=0x1;static [_0x16982e(0x164)]=0xc;[_0x16982e(0x139)];[_0x16982e(0x151)];constructor(_0x582341,_0x35d767){const _0x318be5=_0x16982e;super(_0x582341,{'queryView':{'label':'','creator':_0x317c39,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x63565d(_0x582341),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x318be5(0x13d)](_0x318be5(0x156),!0x0),this[_0x318be5(0x13d)](_0x318be5(0x14e),!0x1),this[_0x318be5(0x139)]=_0x35d767,this[_0x318be5(0x151)]=null,this[_0x318be5(0x154)][_0x318be5(0x13a)][_0x318be5(0x13f)]=AIChatPromptInputView[_0x318be5(0x134)],this[_0x318be5(0x154)][_0x318be5(0x13a)][_0x318be5(0x16f)]=AIChatPromptInputView[_0x318be5(0x164)],this[_0x318be5(0x154)][_0x318be5(0x132)][_0x318be5(0x168)](this[_0x318be5(0x139)]),this[_0x318be5(0x16e)](),this[_0x318be5(0x142)]({'attributes':{'class':['ck',_0x318be5(0x14a)]}}),this[_0x318be5(0x131)]=this[_0x318be5(0x141)](),this[_0x318be5(0x131)][_0x318be5(0x16a)](_0x318be5(0x165))['to'](this,_0x318be5(0x156),this,_0x318be5(0x14e),(_0x1d0300,_0x26dbe4)=>!_0x1d0300&&!_0x26dbe4),this[_0x318be5(0x14f)][_0x318be5(0x168)](this[_0x318be5(0x131)]);}[_0x16982e(0x147)](){const _0x14491a=_0x16982e;super[_0x14491a(0x147)](),this[_0x14491a(0x154)][_0x14491a(0x132)][_0x14491a(0x168)](this[_0x14491a(0x131)]),this[_0x14491a(0x15b)][_0x14491a(0x13d)](_0x14491a(0x149),(_0x16b793,_0x29da7c)=>{const _0x558c6f=_0x14491a;this[_0x558c6f(0x14e)]||this[_0x558c6f(0x156)]||_0x16b793[_0x558c6f(0x13e)]==this[_0x558c6f(0x154)][_0x558c6f(0x13a)][_0x558c6f(0x15d)]&&(this[_0x558c6f(0x136)](),_0x29da7c());}),this[_0x14491a(0x154)][_0x14491a(0x13a)]['on'](_0x14491a(0x172),()=>{const _0x7f4444=_0x14491a;this[_0x7f4444(0x156)]=''===this[_0x7f4444(0x154)][_0x7f4444(0x13a)][_0x7f4444(0x15d)][_0x7f4444(0x152)]?.[_0x7f4444(0x14c)]();});}[_0x16982e(0x12e)](){const _0x5c5c40=_0x16982e;super[_0x5c5c40(0x12e)](),this[_0x5c5c40(0x151)]&&this[_0x5c5c40(0x151)][_0x5c5c40(0x12e)]();}[_0x16982e(0x136)](){const _0x37c5d1=_0x16982e,_0x3c301d=this[_0x37c5d1(0x154)][_0x37c5d1(0x13a)][_0x37c5d1(0x15d)][_0x37c5d1(0x152)]?.[_0x37c5d1(0x14c)]();if(!_0x3c301d)return this[_0x37c5d1(0x154)][_0x37c5d1(0x170)]=_0x104b1a(this[_0x37c5d1(0x15f)],_0x37c5d1(0x145)),void(this[_0x37c5d1(0x154)][_0x37c5d1(0x13a)][_0x37c5d1(0x16d)]=!0x0);this[_0x37c5d1(0x154)][_0x37c5d1(0x13a)][_0x37c5d1(0x16d)]=!0x1;const _0x3ec6e1=_0x442c18(_0x3c301d);this[_0x37c5d1(0x130)](_0x37c5d1(0x167),_0x3ec6e1),this[_0x37c5d1(0x154)][_0x37c5d1(0x13a)][_0x37c5d1(0x14d)]();}[_0x16982e(0x13c)](_0x2c9059){const _0x227b94=_0x16982e;this[_0x227b94(0x154)][_0x227b94(0x13a)][_0x227b94(0x13d)](_0x227b94(0x148),_0x2c9059);}[_0x16982e(0x141)](){const _0x50fc8f=_0x16982e,_0x46a41c=new _0x5dbb8e(this[_0x50fc8f(0x15f)]);return _0x46a41c[_0x50fc8f(0x13d)]({'icon':_0x1be134,'label':_0x104b1a(this[_0x50fc8f(0x15f)],_0x50fc8f(0x166)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x50fc8f(0x12f),'isEnabled':!0x1}),_0x46a41c['on'](_0x50fc8f(0x13b),()=>{const _0x384a41=_0x50fc8f;this[_0x384a41(0x136)]();}),_0x46a41c;}[_0x16982e(0x16b)](_0x295567){const _0x389200=_0x16982e;this[_0x389200(0x14e)]=_0x295567;}[_0x16982e(0x16e)](){const _0x1c43ea=_0x16982e,_0x2ed604=this[_0x1c43ea(0x15f)],_0x106f2e=()=>{const _0x4cb530=_0x1c43ea;_0x48f1a0[_0x4cb530(0x159)][_0x4cb530(0x162)](()=>{const _0xf4ca49=_0x4cb530;if(_0x2909f9(this[_0xf4ca49(0x15d)])){const _0x2efb56=new _0x37d8e8(this[_0xf4ca49(0x154)][_0xf4ca49(0x13a)][_0xf4ca49(0x15d)]),_0x52166e=new _0x37d8e8(this[_0xf4ca49(0x139)][_0xf4ca49(0x15d)]),_0x2834b7=_0x2efb56[_0xf4ca49(0x140)],_0x16f592=_0xf4ca49(0x133)===_0x2ed604[_0xf4ca49(0x146)]?_0xf4ca49(0x15c):_0xf4ca49(0x163);_0x2efb56[_0xf4ca49(0x144)]();const _0x2c3035=_0x2834b7-_0x2efb56[_0xf4ca49(0x140)]+0x1;this[_0xf4ca49(0x139)][_0xf4ca49(0x15d)][_0xf4ca49(0x157)][_0x16f592]=_0xf4ca49(0x155)+(_0x2834b7-_0x52166e[_0xf4ca49(0x140)]-_0x2c3035)+_0xf4ca49(0x143);}});};this[_0x1c43ea(0x154)][_0x1c43ea(0x13a)]['on'](_0x1c43ea(0x172),_0x106f2e),this['on'](_0x1c43ea(0x147),()=>{const _0x1ac133=_0x1c43ea;_0x106f2e(),this[_0x1ac133(0x151)]=new _0x5c610d(this[_0x1ac133(0x154)][_0x1ac133(0x13a)][_0x1ac133(0x15d)],()=>{_0x106f2e();});});}}
23
+ function _0x1751(_0x594ea3,_0x1e754b){const _0x32ea57=_0x32ea();return _0x1751=function(_0x175180,_0x30c27b){_0x175180=_0x175180-0x18a;let _0x3a3219=_0x32ea57[_0x175180];return _0x3a3219;},_0x1751(_0x594ea3,_0x1e754b);}const _0x94143b=_0x1751;(function(_0x1cc47c,_0x547e04){const _0x583ce1=_0x1751,_0x3d6e08=_0x1cc47c();while(!![]){try{const _0x21ed7e=parseInt(_0x583ce1(0x1b4))/0x1+parseInt(_0x583ce1(0x1bf))/0x2+-parseInt(_0x583ce1(0x19c))/0x3+-parseInt(_0x583ce1(0x1c2))/0x4+-parseInt(_0x583ce1(0x1c6))/0x5*(-parseInt(_0x583ce1(0x1b8))/0x6)+parseInt(_0x583ce1(0x18b))/0x7+-parseInt(_0x583ce1(0x1ac))/0x8;if(_0x21ed7e===_0x547e04)break;else _0x3d6e08['push'](_0x3d6e08['shift']());}catch(_0x414d20){_0x3d6e08['push'](_0x3d6e08['shift']());}}}(_0x32ea,0xbad5b));import{IconSubmit as _0x2cfed6}from'ckeditor5/src/icons.js';import{ButtonView as _0x14133d,AutocompleteView as _0x26fe8a,createLabeledTextarea as _0x5129c4}from'ckeditor5/src/ui.js';import{global as _0x12c05b,isVisible as _0x5e9795,Rect as _0x4a2f58,ResizeObserver as _0x34d02b}from'ckeditor5/src/utils.js';import{getTranslation as _0x5ddc34}from'../../../aicore/utils/common-translations.js';import{AIChatPromptSuggestionsListView as _0x340484}from'./aichatpromptsuggestionslistview.js';import{escape as _0x1f1103}from'es-toolkit/compat';function _0x32ea(){const _0x117331=['_addContextButtonView','_queryViewResizeObserver','errorText','requestAnimationFrame','reset','submit','AI_CHAT_PROMPT_EMPTY_ERROR','164364yqFDmJ','sendUserMessage','setIsUploadInProgress','enter','render','MIN_ROWS','set','destroy','calc(','keystrokes','AI_CHAT_LABEL_SUBMIT','trim','bind','queryView','target','rtl','5643744zRmYhA','value','minRows','excludeScrollbarsAndBorders','fire','submitButtonView','ck-ai-chat__prompt-input','width','771394GkSBXU','placeholder','locale','extendTemplate','2608086Judyhu','_setUpAddContextButtonPositioning','add','execute','left','isUploadInProgress','fieldWrapperChildren','994150HjjOxC','maxRows','_createSubmitButton','5109572lMdZeI','style','update','uiLanguageDirection','15vJyKBZ','window','right','element','1612884iIwSyK','focusableChildren','ck-ai-chat__prompt-submit-button','setPlaceholderText','hasError','isEmpty','MAX_ROWS','isEnabled','fieldView','px\x20-\x20var(--ck-spacing-tiny))'];_0x32ea=function(){return _0x117331;};return _0x32ea();}export class AIChatPromptInputView extends _0x26fe8a{[_0x94143b(0x1b1)];static [_0x94143b(0x1a1)]=0x1;static [_0x94143b(0x191)]=0xc;[_0x94143b(0x195)];[_0x94143b(0x196)];constructor(_0x5701dc,_0x41fcdf){const _0x176bda=_0x94143b;super(_0x5701dc,{'queryView':{'label':'','creator':_0x5129c4,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x340484(_0x5701dc),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x176bda(0x1a2)](_0x176bda(0x190),!0x0),this[_0x176bda(0x1a2)](_0x176bda(0x1bd),!0x1),this[_0x176bda(0x195)]=_0x41fcdf,this[_0x176bda(0x196)]=null,this[_0x176bda(0x1a9)][_0x176bda(0x193)][_0x176bda(0x1ae)]=AIChatPromptInputView[_0x176bda(0x1a1)],this[_0x176bda(0x1a9)][_0x176bda(0x193)][_0x176bda(0x1c0)]=AIChatPromptInputView[_0x176bda(0x191)],this[_0x176bda(0x1a9)][_0x176bda(0x1be)][_0x176bda(0x1ba)](this[_0x176bda(0x195)]),this[_0x176bda(0x1b9)](),this[_0x176bda(0x1b7)]({'attributes':{'class':['ck',_0x176bda(0x1b2)]}}),this[_0x176bda(0x1b1)]=this[_0x176bda(0x1c1)](),this[_0x176bda(0x1b1)][_0x176bda(0x1a8)](_0x176bda(0x192))['to'](this,_0x176bda(0x190),this,_0x176bda(0x1bd),(_0x5078d2,_0x2f4a6d)=>!_0x5078d2&&!_0x2f4a6d),this[_0x176bda(0x18c)][_0x176bda(0x1ba)](this[_0x176bda(0x1b1)]);}[_0x94143b(0x1a0)](){const _0x1af3f6=_0x94143b;super[_0x1af3f6(0x1a0)](),this[_0x1af3f6(0x1a9)][_0x1af3f6(0x1be)][_0x1af3f6(0x1ba)](this[_0x1af3f6(0x1b1)]),this[_0x1af3f6(0x1a5)][_0x1af3f6(0x1a2)](_0x1af3f6(0x19f),(_0xf8b8b9,_0x7c1388)=>{const _0x3e2804=_0x1af3f6;this[_0x3e2804(0x1bd)]||this[_0x3e2804(0x190)]||_0xf8b8b9[_0x3e2804(0x1aa)]==this[_0x3e2804(0x1a9)][_0x3e2804(0x193)][_0x3e2804(0x18a)]&&(this[_0x3e2804(0x19a)](),_0x7c1388());}),this[_0x1af3f6(0x1a9)][_0x1af3f6(0x193)]['on'](_0x1af3f6(0x1c4),()=>{const _0x4614cc=_0x1af3f6;this[_0x4614cc(0x190)]=''===this[_0x4614cc(0x1a9)][_0x4614cc(0x193)][_0x4614cc(0x18a)][_0x4614cc(0x1ad)]?.[_0x4614cc(0x1a7)]();});}[_0x94143b(0x1a3)](){const _0x211ba7=_0x94143b;super[_0x211ba7(0x1a3)](),this[_0x211ba7(0x196)]&&this[_0x211ba7(0x196)][_0x211ba7(0x1a3)]();}[_0x94143b(0x19a)](){const _0x170227=_0x94143b,_0x416614=this[_0x170227(0x1a9)][_0x170227(0x193)][_0x170227(0x18a)][_0x170227(0x1ad)]?.[_0x170227(0x1a7)]();if(!_0x416614)return this[_0x170227(0x1a9)][_0x170227(0x197)]=_0x5ddc34(this[_0x170227(0x1b6)],_0x170227(0x19b)),void(this[_0x170227(0x1a9)][_0x170227(0x193)][_0x170227(0x18f)]=!0x0);this[_0x170227(0x1a9)][_0x170227(0x193)][_0x170227(0x18f)]=!0x1;const _0x256f28=_0x1f1103(_0x416614);this[_0x170227(0x1b0)](_0x170227(0x19d),_0x256f28),this[_0x170227(0x1a9)][_0x170227(0x193)][_0x170227(0x199)]();}[_0x94143b(0x18e)](_0x5addab){const _0x1d8fe6=_0x94143b;this[_0x1d8fe6(0x1a9)][_0x1d8fe6(0x193)][_0x1d8fe6(0x1a2)](_0x1d8fe6(0x1b5),_0x5addab);}[_0x94143b(0x1c1)](){const _0x15c7a6=_0x94143b,_0x44e892=new _0x14133d(this[_0x15c7a6(0x1b6)]);return _0x44e892[_0x15c7a6(0x1a2)]({'icon':_0x2cfed6,'label':_0x5ddc34(this[_0x15c7a6(0x1b6)],_0x15c7a6(0x1a6)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x15c7a6(0x18d),'isEnabled':!0x1}),_0x44e892['on'](_0x15c7a6(0x1bb),()=>{const _0x43dd04=_0x15c7a6;this[_0x43dd04(0x19a)]();}),_0x44e892;}[_0x94143b(0x19e)](_0x45b9b1){const _0x221037=_0x94143b;this[_0x221037(0x1bd)]=_0x45b9b1;}[_0x94143b(0x1b9)](){const _0x5e086c=_0x94143b,_0x44126b=this[_0x5e086c(0x1b6)],_0x4e640f=()=>{const _0x30bc6a=_0x5e086c;_0x12c05b[_0x30bc6a(0x1c7)][_0x30bc6a(0x198)](()=>{const _0x186c58=_0x30bc6a;if(_0x5e9795(this[_0x186c58(0x18a)])){const _0x13271d=new _0x4a2f58(this[_0x186c58(0x1a9)][_0x186c58(0x193)][_0x186c58(0x18a)]),_0x195a1c=new _0x4a2f58(this[_0x186c58(0x195)][_0x186c58(0x18a)]),_0x56b7a9=_0x13271d[_0x186c58(0x1b3)],_0x56aded=_0x186c58(0x1ab)===_0x44126b[_0x186c58(0x1c5)]?_0x186c58(0x1c8):_0x186c58(0x1bc);_0x13271d[_0x186c58(0x1af)]();const _0x57d445=_0x56b7a9-_0x13271d[_0x186c58(0x1b3)]+0x1;this[_0x186c58(0x195)][_0x186c58(0x18a)][_0x186c58(0x1c3)][_0x56aded]=_0x186c58(0x1a4)+(_0x56b7a9-_0x195a1c[_0x186c58(0x1b3)]-_0x57d445)+_0x186c58(0x194);}});};this[_0x5e086c(0x1a9)][_0x5e086c(0x193)]['on'](_0x5e086c(0x1c4),_0x4e640f),this['on'](_0x5e086c(0x1a0),()=>{const _0xdf3b=_0x5e086c;_0x4e640f(),this[_0xdf3b(0x196)]=new _0x34d02b(this[_0xdf3b(0x1a9)][_0xdf3b(0x193)][_0xdf3b(0x18a)],()=>{_0x4e640f();});});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x213a18=_0x14ab;(function(_0x4db4e5,_0x447f42){const _0x5970cd=_0x14ab,_0x443e6e=_0x4db4e5();while(!![]){try{const _0x37fb78=parseInt(_0x5970cd(0x17e))/0x1*(parseInt(_0x5970cd(0x188))/0x2)+-parseInt(_0x5970cd(0x186))/0x3+parseInt(_0x5970cd(0x184))/0x4*(parseInt(_0x5970cd(0x17c))/0x5)+parseInt(_0x5970cd(0x17f))/0x6+parseInt(_0x5970cd(0x17d))/0x7*(parseInt(_0x5970cd(0x17b))/0x8)+parseInt(_0x5970cd(0x185))/0x9*(-parseInt(_0x5970cd(0x187))/0xa)+parseInt(_0x5970cd(0x183))/0xb*(-parseInt(_0x5970cd(0x180))/0xc);if(_0x37fb78===_0x447f42)break;else _0x443e6e['push'](_0x443e6e['shift']());}catch(_0x55aba0){_0x443e6e['push'](_0x443e6e['shift']());}}}(_0x2b78,0xdd549));import{ListView as _0x2904ff}from'ckeditor5/src/ui.js';function _0x14ab(_0x22150c,_0x19297e){const _0x2b78d1=_0x2b78();return _0x14ab=function(_0x14ab15,_0x1c832b){_0x14ab15=_0x14ab15-0x17a;let _0x242d33=_0x2b78d1[_0x14ab15];return _0x242d33;},_0x14ab(_0x22150c,_0x19297e);}export class AIChatPromptSuggestionsListView extends _0x2904ff{[_0x213a18(0x182)](){const _0x54c910=_0x213a18;let _0x26dba0=0x0;for(const _0x28e208 of this[_0x54c910(0x181)])_0x26dba0+=_0x28e208[_0x54c910(0x181)][_0x54c910(0x17a)];return{'resultsCount':_0x26dba0,'totalItemsCount':_0x26dba0};}}function _0x2b78(){const _0x108cdf=['165490oMWkUJ','3299667Jovjdg','5PGLnpO','1351332VYsMHz','30893172tCDZwb','items','filter','11sUfmDt','188xNWKUs','247527fhzIQn','1193637cHvhXG','50OqtHiO','705674QSSoHe','length','8LkeiGn'];_0x2b78=function(){return _0x108cdf;};return _0x2b78();}
23
+ function _0x2a70(_0x26c2a4,_0x4fee23){const _0x1ba476=_0x1ba4();return _0x2a70=function(_0x2a70ef,_0x3eb90d){_0x2a70ef=_0x2a70ef-0x140;let _0x4580a1=_0x1ba476[_0x2a70ef];return _0x4580a1;},_0x2a70(_0x26c2a4,_0x4fee23);}const _0x13ee4d=_0x2a70;(function(_0x2a69c1,_0x38f47d){const _0x2028b3=_0x2a70,_0x494d3d=_0x2a69c1();while(!![]){try{const _0x2da17b=-parseInt(_0x2028b3(0x14b))/0x1*(parseInt(_0x2028b3(0x141))/0x2)+parseInt(_0x2028b3(0x146))/0x3*(-parseInt(_0x2028b3(0x143))/0x4)+parseInt(_0x2028b3(0x145))/0x5+parseInt(_0x2028b3(0x149))/0x6+parseInt(_0x2028b3(0x140))/0x7+-parseInt(_0x2028b3(0x14a))/0x8+-parseInt(_0x2028b3(0x14c))/0x9*(-parseInt(_0x2028b3(0x142))/0xa);if(_0x2da17b===_0x38f47d)break;else _0x494d3d['push'](_0x494d3d['shift']());}catch(_0x34ce44){_0x494d3d['push'](_0x494d3d['shift']());}}}(_0x1ba4,0x97c62));import{ListView as _0x436b58}from'ckeditor5/src/ui.js';function _0x1ba4(){const _0x59d1d3=['length','items','2792718DbVPMl','7990280KjqXQL','426507hqTTjs','3943233VcpICN','7932001BtFWkM','2ysQzlQ','10idIpLK','56564bOwTfy','filter','6202460hYnbua','261ROrLFs'];_0x1ba4=function(){return _0x59d1d3;};return _0x1ba4();}export class AIChatPromptSuggestionsListView extends _0x436b58{[_0x13ee4d(0x144)](){const _0x2a6a0c=_0x13ee4d;let _0x231d40=0x0;for(const _0x9f1f97 of this[_0x2a6a0c(0x148)])_0x231d40+=_0x9f1f97[_0x2a6a0c(0x148)][_0x2a6a0c(0x147)];return{'resultsCount':_0x231d40,'totalItemsCount':_0x231d40};}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x2ef1(){const _0x489f8e=['24SzUbYM','trim','useDefaultFiltering','clear','2RAonKs','filter','replace','138UDRkzi','label','1953238VDvjEZ','158511eZweAQ','20nMQqCw','extendTemplate','forEach','136215kAJpmo','1135593syspgs','49098972PtCsel','setResources','test','add','execute','resource','ck-ai-chat-resources__list','4440568KnxIPO','highlightText','items','\x5c$&','addResourceToContext','locale','2120760ijBeqC','88uSTrEb','fire','updateResourceState','_source','_handleResourceSelection'];_0x2ef1=function(){return _0x489f8e;};return _0x2ef1();}function _0x533e(_0x2f1629,_0x1cbeaa){const _0x2ef166=_0x2ef1();return _0x533e=function(_0x533ea0,_0x57b6ba){_0x533ea0=_0x533ea0-0xf3;let _0x3a92f8=_0x2ef166[_0x533ea0];return _0x3a92f8;},_0x533e(_0x2f1629,_0x1cbeaa);}const _0x1eeea8=_0x533e;(function(_0xe11640,_0x103946){const _0x4c2053=_0x533e,_0x2d1720=_0xe11640();while(!![]){try{const _0x3514b9=-parseInt(_0x4c2053(0x107))/0x1*(parseInt(_0x4c2053(0xfc))/0x2)+parseInt(_0x4c2053(0x102))/0x3*(-parseInt(_0x4c2053(0xf3))/0x4)+-parseInt(_0x4c2053(0x106))/0x5*(parseInt(_0x4c2053(0xff))/0x6)+-parseInt(_0x4c2053(0x101))/0x7*(parseInt(_0x4c2053(0xf8))/0x8)+-parseInt(_0x4c2053(0x115))/0x9+-parseInt(_0x4c2053(0x103))/0xa*(-parseInt(_0x4c2053(0x10f))/0xb)+parseInt(_0x4c2053(0x108))/0xc;if(_0x3514b9===_0x103946)break;else _0x2d1720['push'](_0x2d1720['shift']());}catch(_0x2a0d93){_0x2d1720['push'](_0x2d1720['shift']());}}}(_0x2ef1,0xdc1f3));import{ListView as _0x2b3846}from'ckeditor5/src/ui.js';import{AIChatResourceListItemView as _0x1ffcdb}from'./aichatresourcelistitemview.js';const tc=_0x1eeea8(0x10e);export class AIChatContextResourcesListView extends _0x2b3846{[_0x1eeea8(0xf6)];constructor(_0x181243,_0x389205){const _0x221178=_0x1eeea8;super(_0x181243),this[_0x221178(0xf6)]=_0x389205,this[_0x221178(0x104)]({'attributes':{'class':[tc]}});}[_0x1eeea8(0x109)](_0x2e893a,_0x560c62){const _0x473a0e=_0x1eeea8;this[_0x473a0e(0x111)][_0x473a0e(0xfb)]();let _0x2ea98e=_0x2e893a;if(this[_0x473a0e(0xf6)][_0x473a0e(0xfa)]&&_0x560c62&&''!==_0x560c62[_0x473a0e(0xf9)]()){const _0x580feb=new RegExp(_0x560c62[_0x473a0e(0xfe)](/[.*+?^${}()|[\]\\]/g,_0x473a0e(0x112)),'gi');_0x2ea98e=_0x2e893a[_0x473a0e(0xfd)](_0x2bf28a=>_0x580feb[_0x473a0e(0x10a)](_0x2bf28a[_0x473a0e(0x100)]));}for(const _0x57261c of _0x2ea98e){const _0x2d6b9e=new _0x1ffcdb(this[_0x473a0e(0x114)],_0x57261c);_0x2d6b9e['on'](_0x473a0e(0x10c),()=>{const _0x13345f=_0x473a0e;this[_0x13345f(0xf7)](this[_0x13345f(0xf6)],_0x57261c);}),this[_0x473a0e(0x111)][_0x473a0e(0x10b)](_0x2d6b9e);}this[_0x473a0e(0xf6)][_0x473a0e(0xfa)]&&this[_0x473a0e(0x110)](_0x560c62);}[_0x1eeea8(0x110)](_0x8ea038){const _0x11e991=_0x1eeea8;this[_0x11e991(0xf6)][_0x11e991(0xfa)]&&this[_0x11e991(0x111)][_0x11e991(0x105)](_0x2d5817=>{const _0x8d4449=_0x11e991;_0x2d5817[_0x8d4449(0x110)](_0x8ea038);});}[_0x1eeea8(0xf5)](_0x8acded,_0x54a370){const _0x1b65fa=_0x1eeea8;for(const _0x587480 of this[_0x1b65fa(0x111)]){const _0x367dc0=_0x587480;_0x367dc0[_0x1b65fa(0x10d)]['id']===_0x8acded&&_0x367dc0[_0x1b65fa(0xf5)](_0x54a370);}}[_0x1eeea8(0xf7)](_0x16d1f0,_0x5db562){const _0x48bde8=_0x1eeea8;this[_0x48bde8(0xf4)](_0x48bde8(0x113),{'source':_0x16d1f0,'resource':_0x5db562});}}
23
+ function _0x199f(_0x398b1a,_0xa2f6db){const _0x2a27d5=_0x2a27();return _0x199f=function(_0x199f04,_0x8b2d33){_0x199f04=_0x199f04-0x1ac;let _0x1467a1=_0x2a27d5[_0x199f04];return _0x1467a1;},_0x199f(_0x398b1a,_0xa2f6db);}const _0x23c31a=_0x199f;(function(_0x180537,_0x4f573c){const _0x36f8da=_0x199f,_0x555e0c=_0x180537();while(!![]){try{const _0x34be1d=-parseInt(_0x36f8da(0x1be))/0x1+-parseInt(_0x36f8da(0x1c4))/0x2+parseInt(_0x36f8da(0x1b7))/0x3*(parseInt(_0x36f8da(0x1c2))/0x4)+parseInt(_0x36f8da(0x1c6))/0x5*(-parseInt(_0x36f8da(0x1cd))/0x6)+-parseInt(_0x36f8da(0x1b6))/0x7+parseInt(_0x36f8da(0x1c9))/0x8*(-parseInt(_0x36f8da(0x1b9))/0x9)+parseInt(_0x36f8da(0x1c1))/0xa*(parseInt(_0x36f8da(0x1bf))/0xb);if(_0x34be1d===_0x4f573c)break;else _0x555e0c['push'](_0x555e0c['shift']());}catch(_0x3420ec){_0x555e0c['push'](_0x555e0c['shift']());}}}(_0x2a27,0x41248));import{ListView as _0x502b8a}from'ckeditor5/src/ui.js';import{AIChatResourceListItemView as _0x4a760a}from'./aichatresourcelistitemview.js';const sc=_0x23c31a(0x1c7);export class AIChatContextResourcesListView extends _0x502b8a{[_0x23c31a(0x1c5)];constructor(_0x343a06,_0x235277){const _0xb6a067=_0x23c31a;super(_0x343a06),this[_0xb6a067(0x1c5)]=_0x235277,this[_0xb6a067(0x1bc)]({'attributes':{'class':[sc]}});}[_0x23c31a(0x1ba)](_0xafcb28,_0x2a9927){const _0xbd5dab=_0x23c31a;this[_0xbd5dab(0x1cc)][_0xbd5dab(0x1b3)]();let _0x2db05c=_0xafcb28;if(this[_0xbd5dab(0x1c5)][_0xbd5dab(0x1af)]&&_0x2a9927&&''!==_0x2a9927[_0xbd5dab(0x1cb)]()){const _0x19426e=new RegExp(_0x2a9927[_0xbd5dab(0x1c3)](/[.*+?^${}()|[\]\\]/g,_0xbd5dab(0x1bd)),'gi');_0x2db05c=_0xafcb28[_0xbd5dab(0x1b4)](_0x3d0613=>_0x19426e[_0xbd5dab(0x1ca)](_0x3d0613[_0xbd5dab(0x1ac)]));}for(const _0x30fc95 of _0x2db05c){const _0x422351=new _0x4a760a(this[_0xbd5dab(0x1c0)],_0x30fc95);_0x422351['on'](_0xbd5dab(0x1ae),()=>{const _0x4cdb7a=_0xbd5dab;this[_0x4cdb7a(0x1b1)](this[_0x4cdb7a(0x1c5)],_0x30fc95);}),this[_0xbd5dab(0x1cc)][_0xbd5dab(0x1c8)](_0x422351);}this[_0xbd5dab(0x1c5)][_0xbd5dab(0x1af)]&&this[_0xbd5dab(0x1b0)](_0x2a9927);}[_0x23c31a(0x1b0)](_0x1aa443){const _0x3dc19f=_0x23c31a;this[_0x3dc19f(0x1c5)][_0x3dc19f(0x1af)]&&this[_0x3dc19f(0x1cc)][_0x3dc19f(0x1ad)](_0x1d46f2=>{const _0x2fbbd4=_0x3dc19f;_0x1d46f2[_0x2fbbd4(0x1b0)](_0x1aa443);});}[_0x23c31a(0x1b2)](_0x4d625d,_0x328433){const _0x120e9e=_0x23c31a;for(const _0x273577 of this[_0x120e9e(0x1cc)]){const _0x428f07=_0x273577;_0x428f07[_0x120e9e(0x1b8)]['id']===_0x4d625d&&_0x428f07[_0x120e9e(0x1b2)](_0x328433);}}[_0x23c31a(0x1b1)](_0x18ea36,_0x503c26){const _0x3ccc4f=_0x23c31a;this[_0x3ccc4f(0x1bb)](_0x3ccc4f(0x1b5),{'source':_0x18ea36,'resource':_0x503c26});}}function _0x2a27(){const _0xefd394=['useDefaultFiltering','highlightText','_handleResourceSelection','updateResourceState','clear','filter','addResourceToContext','355110yBzWEk','9096ZZNBnV','resource','1969713PwNKxm','setResources','fire','extendTemplate','\x5c$&','386598zKtxgs','4169gdJbwq','locale','32370IVumgm','376yXXKTQ','replace','732078liyrWv','_source','371305iFMXua','ck-ai-chat-resources__list','add','8PlbelN','test','trim','items','18rSCfLt','label','forEach','execute'];_0x2a27=function(){return _0xefd394;};return _0x2a27();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x479e48=_0x58f9;(function(_0xd968df,_0x273aaa){const _0x5c4262=_0x58f9,_0x1c22a0=_0xd968df();while(!![]){try{const _0x6f747c=-parseInt(_0x5c4262(0x11b))/0x1+parseInt(_0x5c4262(0x114))/0x2+-parseInt(_0x5c4262(0x131))/0x3+parseInt(_0x5c4262(0x12f))/0x4*(-parseInt(_0x5c4262(0x13c))/0x5)+parseInt(_0x5c4262(0x135))/0x6+-parseInt(_0x5c4262(0x121))/0x7*(-parseInt(_0x5c4262(0x130))/0x8)+parseInt(_0x5c4262(0x136))/0x9;if(_0x6f747c===_0x273aaa)break;else _0x1c22a0['push'](_0x1c22a0['shift']());}catch(_0x1aa3e6){_0x1c22a0['push'](_0x1c22a0['shift']());}}}(_0x5135,0xbeb7c));import{View as _0x23a6d6,ViewCollection as _0x34c363}from'ckeditor5/src/ui.js';import{uid as _0x2792c1}from'ckeditor5/src/utils.js';import{AIChatContextResourcesListView as _0x274929}from'./aichatcontextresourceslistview.js';function _0x58f9(_0x572156,_0x5e3c4d){const _0x51359b=_0x5135();return _0x58f9=function(_0x58f9d6,_0x2c31f0){_0x58f9d6=_0x58f9d6-0x10e;let _0x14b61a=_0x51359b[_0x58f9d6];return _0x14b61a;},_0x58f9(_0x572156,_0x5e3c4d);}function _0x5135(){const _0x214bd6=['643464XJoHib','_createSearchSection','ck-hidden','div','aiChatResources','loadResources','_searchSection','1412359QBQTUp','locale','render','length','_source','_latestLoadResourcesUid','98693bwriaE','set','fire','setTemplate','isLoading','extendTemplate','has','setResources','_createSearchView','getQuery','ck\x20ck-search','loadSourceResources','search','addResourceToContext','145340eAwDNh','632AdRhrV','1263945Nazrko','ck-ai-chat-resources','highlightText','add','657132znyYtu','9955026PHiFVG','_resourcesListView','_searchInputVisibleFrom','_createResourcesListView','delegate','_searchView','5XniQxW','searchInputVisibleFrom','updateResourceState','_createSkeletonView','children','_skeletonLoader','source','bindTemplate','useDefaultFiltering'];_0x5135=function(){return _0x214bd6;};return _0x5135();}import{AIChatContextResourcesSearchInputView as _0x5ee0f6}from'./aichatresourcessearchinputview.js';import{AISkeletonView as _0x1bbf29,SKELETON_DEFINITIONS as _0x1a3e8a}from'../../../../aicore/ui/aiskeleton.js';export class AIChatContextResourcesView extends _0x23a6d6{[_0x479e48(0x13b)];[_0x479e48(0x11a)];[_0x479e48(0x138)];[_0x479e48(0x137)];[_0x479e48(0x110)];[_0x479e48(0x11f)];[_0x479e48(0x10f)];[_0x479e48(0x120)]=null;constructor(_0x9dbf64,_0x10d10f){const _0x580392=_0x479e48;super(_0x9dbf64),this[_0x580392(0x11f)]=_0x10d10f[_0x580392(0x111)],this[_0x580392(0x138)]=_0x10d10f[_0x580392(0x13d)]??0x7,this[_0x580392(0x122)](_0x580392(0x125),!0x0),this[_0x580392(0x13b)]=this[_0x580392(0x129)](),this[_0x580392(0x11a)]=this[_0x580392(0x115)](),this[_0x580392(0x137)]=this[_0x580392(0x139)](),this[_0x580392(0x110)]=this[_0x580392(0x10e)](),this[_0x580392(0x10f)]=new _0x34c363([this[_0x580392(0x110)],this[_0x580392(0x137)]]),this[_0x580392(0x124)]({'tag':_0x580392(0x117),'attributes':{'class':_0x580392(0x132)},'children':this[_0x580392(0x10f)]});}[_0x479e48(0x129)](){const _0x45a345=_0x479e48;return new _0x5ee0f6(this[_0x45a345(0x11c)]);}[_0x479e48(0x115)](){const _0x488902=_0x479e48,_0x589630=new _0x23a6d6(this[_0x488902(0x11c)]);return _0x589630[_0x488902(0x124)]({'tag':_0x488902(0x117),'attributes':{'class':_0x488902(0x12b)},'children':[this[_0x488902(0x13b)]]}),this[_0x488902(0x13b)]['on'](_0x488902(0x12d),(_0x224a72,_0x3f978a)=>{const _0x4226fa=_0x488902;this[_0x4226fa(0x119)](_0x3f978a),this[_0x4226fa(0x11f)][_0x4226fa(0x113)]&&this[_0x4226fa(0x137)][_0x4226fa(0x133)](_0x3f978a);}),_0x589630;}[_0x479e48(0x139)](){const _0x5ef329=_0x479e48,_0x4c57c7=new _0x274929(this[_0x5ef329(0x11c)],this[_0x5ef329(0x11f)]);return _0x4c57c7[_0x5ef329(0x13a)](_0x5ef329(0x12e))['to'](this),_0x4c57c7[_0x5ef329(0x126)]({'attributes':{'class':this[_0x5ef329(0x112)]['if'](_0x5ef329(0x125),_0x5ef329(0x116))}}),_0x4c57c7;}[_0x479e48(0x10e)](){const _0x516ddc=_0x479e48,_0x2527ef=new _0x1bbf29(this[_0x516ddc(0x11c)],_0x1a3e8a[_0x516ddc(0x118)]);return _0x2527ef[_0x516ddc(0x126)]({'attributes':{'class':[this[_0x516ddc(0x112)]['if'](_0x516ddc(0x125),_0x516ddc(0x116),_0x6d1b00=>!_0x6d1b00)]}}),_0x2527ef;}[_0x479e48(0x11d)](){const _0x3c5021=_0x479e48;super[_0x3c5021(0x11d)](),this[_0x3c5021(0x119)]('');}[_0x479e48(0x119)](_0x29a2e5){const _0xf598b2=_0x479e48,_0x136453=_0x2792c1();this[_0xf598b2(0x120)]=_0x136453,this[_0xf598b2(0x123)](_0xf598b2(0x12c),{'sourceId':this[_0xf598b2(0x11f)]['id'],'query':_0x29a2e5,'uid':_0x136453}),this[_0xf598b2(0x125)]=!0x0;}[_0x479e48(0x128)](_0x252432,_0x1e7418){const _0x561455=_0x479e48;if(_0x1e7418&&_0x1e7418!==this[_0x561455(0x120)])return;const _0x11052c=this[_0x561455(0x11f)][_0x561455(0x113)]?this[_0x561455(0x13b)][_0x561455(0x12a)]():'';this[_0x561455(0x137)][_0x561455(0x128)](_0x252432,_0x11052c),_0x252432[_0x561455(0x11e)]>=this[_0x561455(0x138)]&&!this[_0x561455(0x10f)][_0x561455(0x127)](this[_0x561455(0x11a)])&&this[_0x561455(0x10f)][_0x561455(0x134)](this[_0x561455(0x11a)],0x0),requestAnimationFrame(()=>{const _0x32c64f=_0x561455;this[_0x32c64f(0x125)]=!0x1;});}[_0x479e48(0x13e)](_0x3c427e,_0x489a79){const _0x42484c=_0x479e48;this[_0x42484c(0x137)][_0x42484c(0x13e)](_0x3c427e,_0x489a79);}}
23
+ const _0x3552a4=_0x41b9;function _0x41b9(_0x9b893e,_0x41a429){const _0x163004=_0x1630();return _0x41b9=function(_0x41b9ff,_0x1ff78d){_0x41b9ff=_0x41b9ff-0x183;let _0x18fda1=_0x163004[_0x41b9ff];return _0x18fda1;},_0x41b9(_0x9b893e,_0x41a429);}(function(_0x19228f,_0x4aaedf){const _0x5c96e0=_0x41b9,_0x43a279=_0x19228f();while(!![]){try{const _0x61019=-parseInt(_0x5c96e0(0x188))/0x1+-parseInt(_0x5c96e0(0x1a4))/0x2+-parseInt(_0x5c96e0(0x1ab))/0x3+-parseInt(_0x5c96e0(0x18f))/0x4*(-parseInt(_0x5c96e0(0x1a9))/0x5)+-parseInt(_0x5c96e0(0x1a5))/0x6*(parseInt(_0x5c96e0(0x1a6))/0x7)+parseInt(_0x5c96e0(0x186))/0x8+-parseInt(_0x5c96e0(0x189))/0x9*(-parseInt(_0x5c96e0(0x19c))/0xa);if(_0x61019===_0x4aaedf)break;else _0x43a279['push'](_0x43a279['shift']());}catch(_0x4462f4){_0x43a279['push'](_0x43a279['shift']());}}}(_0x1630,0xdceea));import{View as _0x29902e,ViewCollection as _0x4112f8}from'ckeditor5/src/ui.js';import{uid as _0x53778e}from'ckeditor5/src/utils.js';import{AIChatContextResourcesListView as _0x2cff7e}from'./aichatcontextresourceslistview.js';import{AIChatContextResourcesSearchInputView as _0x1afb3d}from'./aichatresourcessearchinputview.js';function _0x1630(){const _0x2d24b4=['_resourcesListView','20svuzZz','length','locale','has','_source','isLoading','search','div','setTemplate','delegate','bindTemplate','add','_searchInputVisibleFrom','210110gwPfXA','updateResourceState','getQuery','setResources','aiChatResources','_createSearchView','extendTemplate','render','2333348lGLPVD','6AVzNfk','1372651iMeZhn','_createSearchSection','fire','36815QrjBim','_searchView','1876137dNuhdY','ck\x20ck-search','_latestLoadResourcesUid','useDefaultFiltering','set','ck-ai-chat-resources','loadResources','children','loadSourceResources','source','searchInputVisibleFrom','addResourceToContext','_createResourcesListView','671448zQmNtw','ck-hidden','1724016EkoQEp','1926rqFAfu','highlightText','_createSkeletonView','_searchSection','_skeletonLoader'];_0x1630=function(){return _0x2d24b4;};return _0x1630();}import{AISkeletonView as _0x198eae,SKELETON_DEFINITIONS as _0x335b03}from'../../../../aicore/ui/aiskeleton.js';export class AIChatContextResourcesView extends _0x29902e{[_0x3552a4(0x1aa)];[_0x3552a4(0x18c)];[_0x3552a4(0x19b)];[_0x3552a4(0x18e)];[_0x3552a4(0x18d)];[_0x3552a4(0x193)];[_0x3552a4(0x1b2)];[_0x3552a4(0x1ad)]=null;constructor(_0x12d3f4,_0x1b6928){const _0x262fba=_0x3552a4;super(_0x12d3f4),this[_0x262fba(0x193)]=_0x1b6928[_0x262fba(0x1b4)],this[_0x262fba(0x19b)]=_0x1b6928[_0x262fba(0x183)]??0x7,this[_0x262fba(0x1af)](_0x262fba(0x194),!0x0),this[_0x262fba(0x1aa)]=this[_0x262fba(0x1a1)](),this[_0x262fba(0x18c)]=this[_0x262fba(0x1a7)](),this[_0x262fba(0x18e)]=this[_0x262fba(0x185)](),this[_0x262fba(0x18d)]=this[_0x262fba(0x18b)](),this[_0x262fba(0x1b2)]=new _0x4112f8([this[_0x262fba(0x18d)],this[_0x262fba(0x18e)]]),this[_0x262fba(0x197)]({'tag':_0x262fba(0x196),'attributes':{'class':_0x262fba(0x1b0)},'children':this[_0x262fba(0x1b2)]});}[_0x3552a4(0x1a1)](){const _0x1955b9=_0x3552a4;return new _0x1afb3d(this[_0x1955b9(0x191)]);}[_0x3552a4(0x1a7)](){const _0x25158b=_0x3552a4,_0x2b0aad=new _0x29902e(this[_0x25158b(0x191)]);return _0x2b0aad[_0x25158b(0x197)]({'tag':_0x25158b(0x196),'attributes':{'class':_0x25158b(0x1ac)},'children':[this[_0x25158b(0x1aa)]]}),this[_0x25158b(0x1aa)]['on'](_0x25158b(0x195),(_0x5624c5,_0x5e2258)=>{const _0x38d3cd=_0x25158b;this[_0x38d3cd(0x1b1)](_0x5e2258),this[_0x38d3cd(0x193)][_0x38d3cd(0x1ae)]&&this[_0x38d3cd(0x18e)][_0x38d3cd(0x18a)](_0x5e2258);}),_0x2b0aad;}[_0x3552a4(0x185)](){const _0x4e44c1=_0x3552a4,_0x22ebc7=new _0x2cff7e(this[_0x4e44c1(0x191)],this[_0x4e44c1(0x193)]);return _0x22ebc7[_0x4e44c1(0x198)](_0x4e44c1(0x184))['to'](this),_0x22ebc7[_0x4e44c1(0x1a2)]({'attributes':{'class':this[_0x4e44c1(0x199)]['if'](_0x4e44c1(0x194),_0x4e44c1(0x187))}}),_0x22ebc7;}[_0x3552a4(0x18b)](){const _0x53b2f7=_0x3552a4,_0x522365=new _0x198eae(this[_0x53b2f7(0x191)],_0x335b03[_0x53b2f7(0x1a0)]);return _0x522365[_0x53b2f7(0x1a2)]({'attributes':{'class':[this[_0x53b2f7(0x199)]['if'](_0x53b2f7(0x194),_0x53b2f7(0x187),_0x3a386f=>!_0x3a386f)]}}),_0x522365;}[_0x3552a4(0x1a3)](){const _0x2de084=_0x3552a4;super[_0x2de084(0x1a3)](),this[_0x2de084(0x1b1)]('');}[_0x3552a4(0x1b1)](_0x227c1c){const _0x2945bc=_0x3552a4,_0x539b55=_0x53778e();this[_0x2945bc(0x1ad)]=_0x539b55,this[_0x2945bc(0x1a8)](_0x2945bc(0x1b3),{'sourceId':this[_0x2945bc(0x193)]['id'],'query':_0x227c1c,'uid':_0x539b55}),this[_0x2945bc(0x194)]=!0x0;}[_0x3552a4(0x19f)](_0x532718,_0x1e0ec4){const _0x26aa23=_0x3552a4;if(_0x1e0ec4&&_0x1e0ec4!==this[_0x26aa23(0x1ad)])return;const _0x520556=this[_0x26aa23(0x193)][_0x26aa23(0x1ae)]?this[_0x26aa23(0x1aa)][_0x26aa23(0x19e)]():'';this[_0x26aa23(0x18e)][_0x26aa23(0x19f)](_0x532718,_0x520556),_0x532718[_0x26aa23(0x190)]>=this[_0x26aa23(0x19b)]&&!this[_0x26aa23(0x1b2)][_0x26aa23(0x192)](this[_0x26aa23(0x18c)])&&this[_0x26aa23(0x1b2)][_0x26aa23(0x19a)](this[_0x26aa23(0x18c)],0x0),requestAnimationFrame(()=>{const _0x41e268=_0x26aa23;this[_0x41e268(0x194)]=!0x1;});}[_0x3552a4(0x19d)](_0x1598c6,_0x27eaa9){const _0x1cc998=_0x3552a4;this[_0x1cc998(0x18e)][_0x1cc998(0x19d)](_0x1598c6,_0x27eaa9);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x2e8d(_0xe12f68,_0x2d9b29){const _0x495a6e=_0x495a();return _0x2e8d=function(_0x2e8dae,_0x375591){_0x2e8dae=_0x2e8dae-0x19f;let _0xf97b66=_0x495a6e[_0x2e8dae];return _0xf97b66;},_0x2e8d(_0xe12f68,_0x2d9b29);}function _0x495a(){const _0x1216a6=['_setupTemplate','trim','123513OFTeqK','URL','div','label','text','DOCUMENT','updateResourceState','content','span','bindTemplate','type','40MTSDWz','ck-ai-chat-resources__item','execute','24959090Dhpeab','7801272ZptiqP','_createTitleView','getResourceIcon','1077100tVwJKb','ck-ai-chat-resources__item-title','ck-ai-chat-resources__item--in-context','extendTemplate','set','TEXT','1741912VqEtUR','_titleView','_updateIcon','30ALLLtB','325006pvPuTx','isInContext','1340465VmqAtJ','12NRlmqe','_createIconView','FILE','isVisible','setTemplate','render','resource','ck-ai-chat-resources__item__icon','highlightText','_iconView','ck-hidden'];_0x495a=function(){return _0x1216a6;};return _0x495a();}const _0xc9f214=_0x2e8d;(function(_0x567a9b,_0x3c723b){const _0x2cadd3=_0x2e8d,_0x5cf0ac=_0x567a9b();while(!![]){try{const _0x2ca89c=parseInt(_0x2cadd3(0x1ad))/0x1+-parseInt(_0x2cadd3(0x1b0))/0x2*(-parseInt(_0x2cadd3(0x1bd))/0x3)+-parseInt(_0x2cadd3(0x1a9))/0x4+-parseInt(_0x2cadd3(0x1a3))/0x5*(-parseInt(_0x2cadd3(0x1ac))/0x6)+parseInt(_0x2cadd3(0x1af))/0x7*(parseInt(_0x2cadd3(0x1c8))/0x8)+parseInt(_0x2cadd3(0x1a0))/0x9+-parseInt(_0x2cadd3(0x19f))/0xa;if(_0x2ca89c===_0x3c723b)break;else _0x5cf0ac['push'](_0x5cf0ac['shift']());}catch(_0x296256){_0x5cf0ac['push'](_0x5cf0ac['shift']());}}}(_0x495a,0x8454c));import{HighlightedTextView as _0x5d2ee8,IconView as _0x5ad1ff,ListItemView as _0x13d7bc}from'ckeditor5/src/ui.js';import{escapeRegExp as _0x23e876}from'es-toolkit/compat';import{AIContextItemType as _0x5ed649}from'../../../../aicore/model/aicontext.js';import{IconFileUpload as _0x4eb88a,IconCheck as _0x16912a,IconDocument as _0x51a832,IconDocumentOutline as _0xb5f4f2,IconLink as _0x1f97e0}from'@ckeditor/ckeditor5-icons';const zr=_0xc9f214(0x1c9),Jr=_0xc9f214(0x1a5),Kr=_0xc9f214(0x1a4),Nr=_0xc9f214(0x1b7);export class AIChatResourceListItemView extends _0x13d7bc{[_0xc9f214(0x1b6)];[_0xc9f214(0x1aa)];[_0xc9f214(0x1b9)];constructor(_0x1c3b10,_0x1842d3){const _0x4d2f96=_0xc9f214;super(_0x1c3b10),this[_0x4d2f96(0x1b6)]=_0x1842d3,this[_0x4d2f96(0x1a7)](_0x4d2f96(0x1ae),!!_0x1842d3[_0x4d2f96(0x1ae)]),this[_0x4d2f96(0x1aa)]=this[_0x4d2f96(0x1a1)](),this[_0x4d2f96(0x1b9)]=this[_0x4d2f96(0x1b1)](),this[_0x4d2f96(0x1bb)]();}[_0xc9f214(0x1b5)](){const _0x42c6d6=_0xc9f214;super[_0x42c6d6(0x1b5)]();}[_0xc9f214(0x1a2)](_0x1175a2){const _0x3ed352=_0xc9f214;if(_0x1175a2[_0x3ed352(0x1ae)])return _0x16912a;switch(_0x1175a2[_0x3ed352(0x1c7)]){case _0x5ed649[_0x3ed352(0x1c2)]:return _0x51a832;case _0x5ed649[_0x3ed352(0x1be)]:return _0x1f97e0;case _0x5ed649[_0x3ed352(0x1b2)]:case _0x5ed649[_0x3ed352(0x1a8)]:return _0x4eb88a;default:return _0xb5f4f2;}}[_0xc9f214(0x1b8)](_0x35bf0b){const _0x3bc0b4=_0xc9f214;if(!_0x35bf0b||''===_0x35bf0b[_0x3bc0b4(0x1bc)]())return void this[_0x3bc0b4(0x1aa)][_0x3bc0b4(0x1b8)](null);const _0x106b68=new RegExp(_0x23e876(_0x35bf0b),'gi');this[_0x3bc0b4(0x1aa)][_0x3bc0b4(0x1b8)](_0x106b68);}[_0xc9f214(0x1c3)](_0x375b26){const _0x5e7f47=_0xc9f214;this[_0x5e7f47(0x1b6)][_0x5e7f47(0x1ae)]=_0x375b26,this[_0x5e7f47(0x1ae)]=_0x375b26,this[_0x5e7f47(0x1ab)]();}[_0xc9f214(0x1a1)](){const _0x2fbed5=_0xc9f214,_0x2604b2=new _0x5d2ee8();return _0x2604b2[_0x2fbed5(0x1c1)]=this[_0x2fbed5(0x1b6)][_0x2fbed5(0x1c0)],_0x2604b2[_0x2fbed5(0x1a6)]({'tag':_0x2fbed5(0x1c5),'attributes':{'class':[Kr]}}),_0x2604b2;}[_0xc9f214(0x1b1)](){const _0x235302=_0xc9f214,_0x50ef88=new _0x5ad1ff();return _0x50ef88[_0x235302(0x1c4)]=this[_0x235302(0x1a2)](this[_0x235302(0x1b6)]),_0x50ef88;}[_0xc9f214(0x1bb)](){const _0x55139d=_0xc9f214,_0xe99035=this[_0x55139d(0x1c6)];this[_0x55139d(0x1b4)]({'tag':_0x55139d(0x1bf),'attributes':{'class':[zr,_0xe99035['if'](_0x55139d(0x1b3),_0x55139d(0x1ba),_0x3aeee7=>!_0x3aeee7),_0xe99035['if'](_0x55139d(0x1ae),Jr)]},'children':[{'tag':_0x55139d(0x1bf),'attributes':{'class':[Nr]},'children':[this[_0x55139d(0x1b9)]]},this[_0x55139d(0x1aa)]],'on':{'click':_0xe99035['to'](_0x55139d(0x1ca))}});}[_0xc9f214(0x1ab)](){const _0x35fbc2=_0xc9f214;this[_0x35fbc2(0x1b9)][_0x35fbc2(0x1c4)]=this[_0x35fbc2(0x1a2)](this[_0x35fbc2(0x1b6)]);}}
23
+ const _0x70f8b=_0x2847;(function(_0x7b666e,_0x164094){const _0x255251=_0x2847,_0x4097c2=_0x7b666e();while(!![]){try{const _0xa30a4b=parseInt(_0x255251(0x78))/0x1+parseInt(_0x255251(0x76))/0x2*(parseInt(_0x255251(0x8d))/0x3)+parseInt(_0x255251(0x75))/0x4+parseInt(_0x255251(0x82))/0x5+-parseInt(_0x255251(0x90))/0x6+-parseInt(_0x255251(0x7f))/0x7+parseInt(_0x255251(0x83))/0x8*(-parseInt(_0x255251(0x80))/0x9);if(_0xa30a4b===_0x164094)break;else _0x4097c2['push'](_0x4097c2['shift']());}catch(_0xc574b2){_0x4097c2['push'](_0x4097c2['shift']());}}}(_0x4940,0xe673e));import{HighlightedTextView as _0x395e1b,IconView as _0x42a534,ListItemView as _0x5c6f27}from'ckeditor5/src/ui.js';import{escapeRegExp as _0x3ead68}from'es-toolkit/compat';import{AIContextItemType as _0x361401}from'../../../../aicore/model/aicontext.js';import{IconFileUpload as _0x3a8ea3,IconCheck as _0x40e5e0,IconDocument as _0x248458,IconDocumentOutline as _0x2549b2,IconLink as _0x160655}from'@ckeditor/ckeditor5-icons';const Br=_0x70f8b(0x7e),Gr=_0x70f8b(0x7d),Hr=_0x70f8b(0x91),Jr=_0x70f8b(0x6d);function _0x4940(){const _0x3e4dba=['ck-hidden','315dXjojm','_createTitleView','updateResourceState','7223598gIDKui','ck-ai-chat-resources__item-title','_setupTemplate','highlightText','extendTemplate','render','_createIconView','div','ck-ai-chat-resources__item__icon','bindTemplate','type','setTemplate','isVisible','set','TEXT','FILE','3632296mItsge','20346GlSPPf','label','1697172jNAdIM','span','resource','URL','_titleView','ck-ai-chat-resources__item--in-context','ck-ai-chat-resources__item','8080128PPmGzO','1821870BdtqiT','DOCUMENT','9277450LDrcrb','88qoygSo','isInContext','content','_iconView','trim','text','getResourceIcon','execute','_updateIcon'];_0x4940=function(){return _0x3e4dba;};return _0x4940();}function _0x2847(_0x393c2a,_0x18fe07){const _0x49403a=_0x4940();return _0x2847=function(_0x28470d,_0x57c73c){_0x28470d=_0x28470d-0x6c;let _0x1b42fd=_0x49403a[_0x28470d];return _0x1b42fd;},_0x2847(_0x393c2a,_0x18fe07);}export class AIChatResourceListItemView extends _0x5c6f27{[_0x70f8b(0x7a)];[_0x70f8b(0x7c)];[_0x70f8b(0x86)];constructor(_0x4ee49c,_0x9756e){const _0x189c71=_0x70f8b;super(_0x4ee49c),this[_0x189c71(0x7a)]=_0x9756e,this[_0x189c71(0x72)](_0x189c71(0x84),!!_0x9756e[_0x189c71(0x84)]),this[_0x189c71(0x7c)]=this[_0x189c71(0x8e)](),this[_0x189c71(0x86)]=this[_0x189c71(0x96)](),this[_0x189c71(0x92)]();}[_0x70f8b(0x95)](){const _0x25d2a6=_0x70f8b;super[_0x25d2a6(0x95)]();}[_0x70f8b(0x89)](_0x3c60a2){const _0x4f2a77=_0x70f8b;if(_0x3c60a2[_0x4f2a77(0x84)])return _0x40e5e0;switch(_0x3c60a2[_0x4f2a77(0x6f)]){case _0x361401[_0x4f2a77(0x81)]:return _0x248458;case _0x361401[_0x4f2a77(0x7b)]:return _0x160655;case _0x361401[_0x4f2a77(0x74)]:case _0x361401[_0x4f2a77(0x73)]:return _0x3a8ea3;default:return _0x2549b2;}}[_0x70f8b(0x93)](_0xd11247){const _0x6e0f72=_0x70f8b;if(!_0xd11247||''===_0xd11247[_0x6e0f72(0x87)]())return void this[_0x6e0f72(0x7c)][_0x6e0f72(0x93)](null);const _0x2bd019=new RegExp(_0x3ead68(_0xd11247),'gi');this[_0x6e0f72(0x7c)][_0x6e0f72(0x93)](_0x2bd019);}[_0x70f8b(0x8f)](_0x456961){const _0x569ab8=_0x70f8b;this[_0x569ab8(0x7a)][_0x569ab8(0x84)]=_0x456961,this[_0x569ab8(0x84)]=_0x456961,this[_0x569ab8(0x8b)]();}[_0x70f8b(0x8e)](){const _0x4d4f70=_0x70f8b,_0x4647e9=new _0x395e1b();return _0x4647e9[_0x4d4f70(0x88)]=this[_0x4d4f70(0x7a)][_0x4d4f70(0x77)],_0x4647e9[_0x4d4f70(0x94)]({'tag':_0x4d4f70(0x79),'attributes':{'class':[Hr]}}),_0x4647e9;}[_0x70f8b(0x96)](){const _0x2f5384=_0x70f8b,_0x6604b4=new _0x42a534();return _0x6604b4[_0x2f5384(0x85)]=this[_0x2f5384(0x89)](this[_0x2f5384(0x7a)]),_0x6604b4;}[_0x70f8b(0x92)](){const _0xd50eff=_0x70f8b,_0x2f229f=this[_0xd50eff(0x6e)];this[_0xd50eff(0x70)]({'tag':_0xd50eff(0x6c),'attributes':{'class':[Br,_0x2f229f['if'](_0xd50eff(0x71),_0xd50eff(0x8c),_0x2ff7ab=>!_0x2ff7ab),_0x2f229f['if'](_0xd50eff(0x84),Gr)]},'children':[{'tag':_0xd50eff(0x6c),'attributes':{'class':[Jr]},'children':[this[_0xd50eff(0x86)]]},this[_0xd50eff(0x7c)]],'on':{'click':_0x2f229f['to'](_0xd50eff(0x8a))}});}[_0x70f8b(0x8b)](){const _0x2c38b3=_0x70f8b;this[_0x2c38b3(0x86)][_0x2c38b3(0x85)]=this[_0x2c38b3(0x89)](this[_0x2c38b3(0x7a)]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1a6872=_0x40b6;(function(_0x2a0764,_0x584289){const _0x1506f5=_0x40b6,_0x196688=_0x2a0764();while(!![]){try{const _0x28f6a5=-parseInt(_0x1506f5(0xbc))/0x1*(-parseInt(_0x1506f5(0xa6))/0x2)+-parseInt(_0x1506f5(0xd8))/0x3*(-parseInt(_0x1506f5(0xda))/0x4)+-parseInt(_0x1506f5(0xc5))/0x5*(-parseInt(_0x1506f5(0xd6))/0x6)+parseInt(_0x1506f5(0xb7))/0x7*(-parseInt(_0x1506f5(0xd4))/0x8)+-parseInt(_0x1506f5(0x9e))/0x9*(parseInt(_0x1506f5(0xbe))/0xa)+parseInt(_0x1506f5(0xc1))/0xb+-parseInt(_0x1506f5(0xcc))/0xc*(parseInt(_0x1506f5(0xc0))/0xd);if(_0x28f6a5===_0x584289)break;else _0x196688['push'](_0x196688['shift']());}catch(_0x3d0f99){_0x196688['push'](_0x196688['shift']());}}}(_0x115c,0xe6330));import{BalloonPanelView as _0x9ac417,ButtonView as _0xc09a1e,clickOutsideHandler as _0x11f890,FormHeaderView as _0x316927}from'ckeditor5/src/ui.js';import{IconPreviousArrow as _0x4147d8}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x5120c0}from'../../../../aicore/utils/common-translations.js';import{AIChatContextResourcesView as _0xfa7a2a}from'./aichatcontextresourcesview.js';const Xr=_0x1a6872(0xd3),Ur=_0x1a6872(0xb5),Qr=_0x1a6872(0xa2);function _0x115c(){const _0x3f1cda=['34860qfvfur','_config','117tSgaKA','13133087pLNshP','label','children','values','5HKwGZt','resource','onBackToContext','add','searchInputVisibleFrom','set','get','4782432gRAZqS','isVisible','updateResourceState','_createBalloonResourcesView','change:isLoading','destroy','setResources','ck-ai-chat-context-controls__source-balloon-panel','16tSPjZD','hide','7509888cwegKg','closeSourceResourceBalloon','15RuHUfZ','once','954324cqFlSn','_bodyCollection','_sourceResourceBalloons','isAnyResourceBalloonVisible','1467aDRQJa','_createBackButton','content','_createBalloonHeader','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_source','delete','extendTemplate','_locale','1823814iLvXCg','getTargetElement','execute','loadSourceResources','element','addResourceToContext','showSourceResourcesBalloon','onLoadSourceResources','populateSourceResourceBalloon','show','getLimiterElement','clear','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','onResourceSelected','_setupSingleResourceBalloonClickOutsideHandler','ck-button-icon\x20ck-button-back','_getResourcesViewFromBalloon','1275211gGLIJc','pin','_addSourceResourceContent','_createSourceResourceBalloonPanel','onBalloonClosed','2sTsyti','source'];_0x115c=function(){return _0x3f1cda;};return _0x115c();}function _0x40b6(_0xf0b18,_0x10d81b){const _0x115c93=_0x115c();return _0x40b6=function(_0x40b61f,_0x44b3b0){_0x40b61f=_0x40b61f-0x9c;let _0x27a753=_0x115c93[_0x40b61f];return _0x27a753;},_0x40b6(_0xf0b18,_0x10d81b);}export class AIChatResourcesBalloonView{[_0x1a6872(0x9c)]=new Map();[_0x1a6872(0xdb)];[_0x1a6872(0xa5)];[_0x1a6872(0xbf)];constructor(_0x19ffac,_0x29f90f,_0x4dbc4f){const _0x3d20f7=_0x1a6872;this[_0x3d20f7(0xa5)]=_0x19ffac,this[_0x3d20f7(0xdb)]=_0x29f90f,this[_0x3d20f7(0xbf)]=_0x4dbc4f;}[_0x1a6872(0xac)](_0x3d5b1a){const _0x533ca5=_0x1a6872;let _0x2a2d2c=this[_0x533ca5(0x9c)][_0x533ca5(0xcb)](_0x3d5b1a['id']);_0x2a2d2c||(_0x2a2d2c=this[_0x533ca5(0xba)](),this[_0x533ca5(0x9c)][_0x533ca5(0xca)](_0x3d5b1a['id'],_0x2a2d2c),this[_0x533ca5(0xb4)](_0x2a2d2c)),this[_0x533ca5(0xb9)](_0x2a2d2c,_0x3d5b1a),_0x2a2d2c[_0x533ca5(0xaf)]();const _0xe42b68=this[_0x533ca5(0xbf)][_0x533ca5(0xa7)]();_0xe42b68&&_0x2a2d2c[_0x533ca5(0xb8)]({'target':_0xe42b68,'limiter':this[_0x533ca5(0xbf)][_0x533ca5(0xb0)]()});}[_0x1a6872(0xae)](_0x5da24f,_0xb0b2a7,_0x285843){const _0x446d75=_0x1a6872,_0x2a3d7a=this[_0x446d75(0x9c)][_0x446d75(0xcb)](_0x5da24f);if(!_0x2a3d7a)return;const _0x4f0ece=this[_0x446d75(0xb6)](_0x2a3d7a);_0x4f0ece&&(_0x4f0ece[_0x446d75(0xd2)](_0xb0b2a7,_0x285843),_0x4f0ece[_0x446d75(0xd9)](_0x446d75(0xd0),()=>{const _0x3abff5=_0x446d75;_0x2a3d7a[_0x3abff5(0xb8)]({'target':this[_0x3abff5(0xbf)][_0x3abff5(0xa7)](),'limiter':this[_0x3abff5(0xbf)][_0x3abff5(0xb0)]()});}));}[_0x1a6872(0xd7)](_0xce6a42){const _0x542a23=_0x1a6872,_0x5af219=this[_0x542a23(0x9c)][_0x542a23(0xcb)](_0xce6a42);_0x5af219&&requestAnimationFrame(()=>{const _0x39bdf9=_0x542a23;_0x5af219[_0x39bdf9(0xd5)](),this[_0x39bdf9(0x9c)][_0x39bdf9(0xa3)](_0xce6a42),this[_0x39bdf9(0xbf)][_0x39bdf9(0xbb)]();});}[_0x1a6872(0x9d)](){const _0x172251=_0x1a6872;for(const _0x5d0e3f of this[_0x172251(0x9c)][_0x172251(0xc4)]())if(_0x5d0e3f[_0x172251(0xcd)])return!0x0;return!0x1;}[_0x1a6872(0xce)](_0x4eb778,_0x5599c4,_0x4962c7){const _0x1a7c2e=_0x1a6872,_0x1e40bf=this[_0x1a7c2e(0x9c)][_0x1a7c2e(0xcb)](_0x4eb778);if(!_0x1e40bf||!_0x1e40bf[_0x1a7c2e(0xcd)])return;const _0x592249=this[_0x1a7c2e(0xbf)][_0x1a7c2e(0xa7)]();if(!_0x592249)return;_0x1e40bf[_0x1a7c2e(0xb8)]({'target':_0x592249,'limiter':this[_0x1a7c2e(0xbf)][_0x1a7c2e(0xb0)]()});const _0x2214fd=this[_0x1a7c2e(0xb6)](_0x1e40bf);_0x2214fd&&_0x2214fd[_0x1a7c2e(0xce)](_0x5599c4,_0x4962c7);}[_0x1a6872(0xd1)](){const _0x4fa9ee=_0x1a6872;for(const _0x2a9576 of this[_0x4fa9ee(0x9c)][_0x4fa9ee(0xc4)]())_0x2a9576[_0x4fa9ee(0xd1)]();this[_0x4fa9ee(0x9c)][_0x4fa9ee(0xb1)]();}[_0x1a6872(0xba)](){const _0xfef90b=_0x1a6872,_0x16bd20=new _0x9ac417(this[_0xfef90b(0xa5)]);return _0x16bd20[_0xfef90b(0xa4)]({'attributes':{'class':Xr}}),this[_0xfef90b(0xdb)][_0xfef90b(0xc8)](_0x16bd20),_0x16bd20;}[_0x1a6872(0xb9)](_0x9a4635,_0x2715a4){const _0x2038c0=_0x1a6872;_0x9a4635[_0x2038c0(0xa0)][_0x2038c0(0xb1)]();const _0x2747f5=this[_0x2038c0(0xa1)](_0x9a4635,_0x2715a4);_0x9a4635[_0x2038c0(0xa0)][_0x2038c0(0xc8)](_0x2747f5);const _0x1b982b=this[_0x2038c0(0xcf)](_0x2715a4);_0x9a4635[_0x2038c0(0xa0)][_0x2038c0(0xc8)](_0x1b982b);}[_0x1a6872(0xa1)](_0x11e5be,_0x327319){const _0x328aad=_0x1a6872,_0x19d653=this[_0x328aad(0x9f)](_0x11e5be),_0x1066f8=new _0x316927(this[_0x328aad(0xa5)],{'label':_0x327319[_0x328aad(0xc2)],'class':Qr});return _0x1066f8[_0x328aad(0xc3)][_0x328aad(0xc8)](_0x19d653,0x0),_0x1066f8;}[_0x1a6872(0x9f)](_0x37f88d){const _0x3e5b03=_0x1a6872,_0x35d0ae=new _0xc09a1e(this[_0x3e5b03(0xa5)]);return _0x35d0ae[_0x3e5b03(0xca)]({'icon':_0x4147d8,'tooltip':_0x5120c0(this[_0x3e5b03(0xa5)],_0x3e5b03(0xb2)),'tooltipPosition':'n','class':Ur}),_0x35d0ae['on'](_0x3e5b03(0xa8),()=>{const _0xf8a2c2=_0x3e5b03;_0x37f88d[_0xf8a2c2(0xd5)](),this[_0xf8a2c2(0xbf)][_0xf8a2c2(0xc7)]();}),_0x35d0ae;}[_0x1a6872(0xcf)](_0x558e15){const _0x51e37a=_0x1a6872,_0x2624cc=new _0xfa7a2a(this[_0x51e37a(0xa5)],{'source':_0x558e15,'searchInputVisibleFrom':this[_0x51e37a(0xbf)][_0x51e37a(0xc9)]});return _0x2624cc['on'](_0x51e37a(0xa9),(_0x1f17f6,_0x8e0eaa)=>{const _0x2d4b28=_0x51e37a;this[_0x2d4b28(0xbf)][_0x2d4b28(0xad)](_0x8e0eaa);}),_0x2624cc['on'](_0x51e37a(0xab),(_0x1ebdcd,_0x2ef6d5)=>{const _0x8429d9=_0x51e37a;this[_0x8429d9(0xbf)][_0x8429d9(0xb3)](_0x2ef6d5[_0x8429d9(0xbd)],_0x2ef6d5[_0x8429d9(0xc6)]),this[_0x8429d9(0xd7)](_0x558e15['id']);}),_0x2624cc;}[_0x1a6872(0xb6)](_0x4455c8){const _0x15190b=_0x1a6872,_0x4b9a36=_0x4455c8[_0x15190b(0xa0)][_0x15190b(0xcb)](0x1);return _0x4b9a36 instanceof _0xfa7a2a?_0x4b9a36:null;}[_0x1a6872(0xb4)](_0x2b4352){const _0x39b1fd=_0x1a6872;_0x11f890({'emitter':_0x2b4352,'contextElements':[_0x2b4352[_0x39b1fd(0xaa)]],'callback':()=>{const _0x4ca065=_0x39b1fd;_0x2b4352[_0x4ca065(0xd5)](),this[_0x4ca065(0xbf)][_0x4ca065(0xbb)]();},'activator':()=>_0x2b4352[_0x39b1fd(0xcd)]});}}
23
+ const _0x3b37f1=_0x4c34;(function(_0xa7d990,_0xa5f47){const _0x46c807=_0x4c34,_0x10bfa0=_0xa7d990();while(!![]){try{const _0x356515=-parseInt(_0x46c807(0x1d2))/0x1*(-parseInt(_0x46c807(0x1fd))/0x2)+parseInt(_0x46c807(0x1e4))/0x3+-parseInt(_0x46c807(0x1cb))/0x4+-parseInt(_0x46c807(0x1e0))/0x5*(-parseInt(_0x46c807(0x1f4))/0x6)+-parseInt(_0x46c807(0x1f2))/0x7+-parseInt(_0x46c807(0x1d6))/0x8*(parseInt(_0x46c807(0x1d3))/0x9)+parseInt(_0x46c807(0x1cc))/0xa;if(_0x356515===_0xa5f47)break;else _0x10bfa0['push'](_0x10bfa0['shift']());}catch(_0x1d3aac){_0x10bfa0['push'](_0x10bfa0['shift']());}}}(_0x396e,0x73e68));import{BalloonPanelView as _0x585556,ButtonView as _0x358ac8,clickOutsideHandler as _0x492035,FormHeaderView as _0x51098f}from'ckeditor5/src/ui.js';import{IconPreviousArrow as _0x134551}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x2f5e15}from'../../../../aicore/utils/common-translations.js';import{AIChatContextResourcesView as _0x343fd1}from'./aichatcontextresourcesview.js';function _0x396e(){const _0x57d4d0=['showSourceResourcesBalloon','ck-ai-chat-context-controls__source-balloon-panel','_createSourceResourceBalloonPanel','ck-button-icon\x20ck-button-back','searchInputVisibleFrom','loadSourceResources','updateResourceState','change:isLoading','_locale','_setupSingleResourceBalloonClickOutsideHandler','children','element','set','5204598kjLgTB','_createBalloonHeader','122688ilkDHZ','delete','values','execute','destroy','closeSourceResourceBalloon','_bodyCollection','pin','onResourceSelected','2xmKIxc','get','_createBackButton','addResourceToContext','setResources','getLimiterElement','source','onBackToContext','content','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_source','_config','1569496ORmljl','14050260xaGfcm','resource','_addSourceResourceContent','onLoadSourceResources','isAnyResourceBalloonVisible','show','625208lCrOma','9rDRnkf','extendTemplate','_getResourcesViewFromBalloon','5858800GmzwVX','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','hide','label','once','add','isVisible','clear','_createBalloonResourcesView','populateSourceResourceBalloon','25gTMvNd','onBalloonClosed','getTargetElement','_sourceResourceBalloons','631476tIMrAZ'];_0x396e=function(){return _0x57d4d0;};return _0x396e();}const Nr=_0x3b37f1(0x1e6),Xr=_0x3b37f1(0x1e8),Kr=_0x3b37f1(0x206);function _0x4c34(_0x3bfe27,_0x2f9ba8){const _0x396ede=_0x396e();return _0x4c34=function(_0x4c3476,_0x514067){_0x4c3476=_0x4c3476-0x1cb;let _0x1a8ebb=_0x396ede[_0x4c3476];return _0x1a8ebb;},_0x4c34(_0x3bfe27,_0x2f9ba8);}export class AIChatResourcesBalloonView{[_0x3b37f1(0x1e3)]=new Map();[_0x3b37f1(0x1fa)];[_0x3b37f1(0x1ed)];[_0x3b37f1(0x207)];constructor(_0x3e1fa5,_0x48f0ad,_0x43181d){const _0x3f7e91=_0x3b37f1;this[_0x3f7e91(0x1ed)]=_0x3e1fa5,this[_0x3f7e91(0x1fa)]=_0x48f0ad,this[_0x3f7e91(0x207)]=_0x43181d;}[_0x3b37f1(0x1e5)](_0x3777e7){const _0x5b36fc=_0x3b37f1;let _0x4bca47=this[_0x5b36fc(0x1e3)][_0x5b36fc(0x1fe)](_0x3777e7['id']);_0x4bca47||(_0x4bca47=this[_0x5b36fc(0x1e7)](),this[_0x5b36fc(0x1e3)][_0x5b36fc(0x1f1)](_0x3777e7['id'],_0x4bca47),this[_0x5b36fc(0x1ee)](_0x4bca47)),this[_0x5b36fc(0x1ce)](_0x4bca47,_0x3777e7),_0x4bca47[_0x5b36fc(0x1d1)]();const _0x23ec5a=this[_0x5b36fc(0x207)][_0x5b36fc(0x1e2)]();_0x23ec5a&&_0x4bca47[_0x5b36fc(0x1fb)]({'target':_0x23ec5a,'limiter':this[_0x5b36fc(0x207)][_0x5b36fc(0x202)]()});}[_0x3b37f1(0x1df)](_0x1657d8,_0x2be8cf,_0x15aa15){const _0x417de2=_0x3b37f1,_0x1b060e=this[_0x417de2(0x1e3)][_0x417de2(0x1fe)](_0x1657d8);if(!_0x1b060e)return;const _0x1e18c1=this[_0x417de2(0x1d5)](_0x1b060e);_0x1e18c1&&(_0x1e18c1[_0x417de2(0x201)](_0x2be8cf,_0x15aa15),_0x1e18c1[_0x417de2(0x1da)](_0x417de2(0x1ec),()=>{const _0xc3a2f6=_0x417de2;_0x1b060e[_0xc3a2f6(0x1fb)]({'target':this[_0xc3a2f6(0x207)][_0xc3a2f6(0x1e2)](),'limiter':this[_0xc3a2f6(0x207)][_0xc3a2f6(0x202)]()});}));}[_0x3b37f1(0x1f9)](_0x4b34dd){const _0x50a304=_0x3b37f1,_0x44efe9=this[_0x50a304(0x1e3)][_0x50a304(0x1fe)](_0x4b34dd);_0x44efe9&&requestAnimationFrame(()=>{const _0x3535d3=_0x50a304;_0x44efe9[_0x3535d3(0x1d8)](),this[_0x3535d3(0x1e3)][_0x3535d3(0x1f5)](_0x4b34dd),this[_0x3535d3(0x207)][_0x3535d3(0x1e1)]();});}[_0x3b37f1(0x1d0)](){const _0x272a7e=_0x3b37f1;for(const _0x53c9ac of this[_0x272a7e(0x1e3)][_0x272a7e(0x1f6)]())if(_0x53c9ac[_0x272a7e(0x1dc)])return!0x0;return!0x1;}[_0x3b37f1(0x1eb)](_0x480488,_0x2060b2,_0x5577c0){const _0x1958a5=_0x3b37f1,_0x36f7d5=this[_0x1958a5(0x1e3)][_0x1958a5(0x1fe)](_0x480488);if(!_0x36f7d5||!_0x36f7d5[_0x1958a5(0x1dc)])return;const _0x1fde8b=this[_0x1958a5(0x207)][_0x1958a5(0x1e2)]();if(!_0x1fde8b)return;_0x36f7d5[_0x1958a5(0x1fb)]({'target':_0x1fde8b,'limiter':this[_0x1958a5(0x207)][_0x1958a5(0x202)]()});const _0x3ab854=this[_0x1958a5(0x1d5)](_0x36f7d5);_0x3ab854&&_0x3ab854[_0x1958a5(0x1eb)](_0x2060b2,_0x5577c0);}[_0x3b37f1(0x1f8)](){const _0x94dc5d=_0x3b37f1;for(const _0x5da181 of this[_0x94dc5d(0x1e3)][_0x94dc5d(0x1f6)]())_0x5da181[_0x94dc5d(0x1f8)]();this[_0x94dc5d(0x1e3)][_0x94dc5d(0x1dd)]();}[_0x3b37f1(0x1e7)](){const _0x104cef=_0x3b37f1,_0x59d958=new _0x585556(this[_0x104cef(0x1ed)]);return _0x59d958[_0x104cef(0x1d4)]({'attributes':{'class':Nr}}),this[_0x104cef(0x1fa)][_0x104cef(0x1db)](_0x59d958),_0x59d958;}[_0x3b37f1(0x1ce)](_0x351ca8,_0x49c684){const _0x537fd0=_0x3b37f1;_0x351ca8[_0x537fd0(0x205)][_0x537fd0(0x1dd)]();const _0xb32eab=this[_0x537fd0(0x1f3)](_0x351ca8,_0x49c684);_0x351ca8[_0x537fd0(0x205)][_0x537fd0(0x1db)](_0xb32eab);const _0x1597e=this[_0x537fd0(0x1de)](_0x49c684);_0x351ca8[_0x537fd0(0x205)][_0x537fd0(0x1db)](_0x1597e);}[_0x3b37f1(0x1f3)](_0x3bf977,_0x967dba){const _0x1cbbf5=_0x3b37f1,_0xb5af98=this[_0x1cbbf5(0x1ff)](_0x3bf977),_0x530588=new _0x51098f(this[_0x1cbbf5(0x1ed)],{'label':_0x967dba[_0x1cbbf5(0x1d9)],'class':Kr});return _0x530588[_0x1cbbf5(0x1ef)][_0x1cbbf5(0x1db)](_0xb5af98,0x0),_0x530588;}[_0x3b37f1(0x1ff)](_0x1fdee7){const _0x50a46c=_0x3b37f1,_0x35fee5=new _0x358ac8(this[_0x50a46c(0x1ed)]);return _0x35fee5[_0x50a46c(0x1f1)]({'icon':_0x134551,'tooltip':_0x2f5e15(this[_0x50a46c(0x1ed)],_0x50a46c(0x1d7)),'tooltipPosition':'n','class':Xr}),_0x35fee5['on'](_0x50a46c(0x1f7),()=>{const _0x320333=_0x50a46c;_0x1fdee7[_0x320333(0x1d8)](),this[_0x320333(0x207)][_0x320333(0x204)]();}),_0x35fee5;}[_0x3b37f1(0x1de)](_0xdd5e20){const _0x6b1b40=_0x3b37f1,_0x531020=new _0x343fd1(this[_0x6b1b40(0x1ed)],{'source':_0xdd5e20,'searchInputVisibleFrom':this[_0x6b1b40(0x207)][_0x6b1b40(0x1e9)]});return _0x531020['on'](_0x6b1b40(0x1ea),(_0x5a5710,_0x1d784b)=>{const _0x2572c5=_0x6b1b40;this[_0x2572c5(0x207)][_0x2572c5(0x1cf)](_0x1d784b);}),_0x531020['on'](_0x6b1b40(0x200),(_0x56cd7a,_0x4801b4)=>{const _0x11f8bc=_0x6b1b40;this[_0x11f8bc(0x207)][_0x11f8bc(0x1fc)](_0x4801b4[_0x11f8bc(0x203)],_0x4801b4[_0x11f8bc(0x1cd)]),this[_0x11f8bc(0x1f9)](_0xdd5e20['id']);}),_0x531020;}[_0x3b37f1(0x1d5)](_0x598c23){const _0x3f93cf=_0x3b37f1,_0x137a8c=_0x598c23[_0x3f93cf(0x205)][_0x3f93cf(0x1fe)](0x1);return _0x137a8c instanceof _0x343fd1?_0x137a8c:null;}[_0x3b37f1(0x1ee)](_0x238931){const _0x217660=_0x3b37f1;_0x492035({'emitter':_0x238931,'contextElements':[_0x238931[_0x217660(0x1f0)]],'callback':()=>{const _0x3371b1=_0x217660;_0x238931[_0x3371b1(0x1d8)](),this[_0x3371b1(0x207)][_0x3371b1(0x1e1)]();},'activator':()=>_0x238931[_0x217660(0x1dc)]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{ButtonView as _0x2828e0,IconView as _0x1cc4c5,LabeledFieldView as _0x539aed,createLabeledInputText as th}from'ckeditor5/src/ui.js';import{IconLoupe as _0x12761e,IconCancel as _0x11efad}from'ckeditor5/src/icons.js';import{getTranslation as _0x1aea90}from'../../../../aicore/utils/common-translations.js';export class AIChatContextResourcesSearchInputView extends _0x539aed{['iconView'];['resetButtonView'];['_viewConfig'];constructor(_0x2130b1){const t=_0x2130b1['t'],_0x1a34b2={'showResetButton':!0x0,'showIcon':!0x0,'creator':th,'label':_0x1aea90(_0x2130b1,'AI_CHAT_SEARCH_RESOURCES')};super(_0x2130b1,_0x1a34b2['creator']),this['label']=_0x1a34b2['label'],this['_viewConfig']=_0x1a34b2,this['_viewConfig']['showIcon']&&this['_setupSearchIcon'](),this['_viewConfig']['showResetButton']&&this['_setupResetButton'](_0x2130b1,t),this['_setupEventListeners']();}['reset'](){this['fieldView']['reset'](),this['_viewConfig']['showResetButton']&&this['resetButtonView']&&(this['resetButtonView']['isVisible']=!0x1),this['search']('');}['search'](_0x54327d){this['fire']('search',_0x54327d);}['getQuery'](){return this['fieldView']['element']?.['value']||'';}['_setupSearchIcon'](){this['iconView']=new _0x1cc4c5(),this['iconView']['content']=_0x12761e,this['fieldWrapperChildren']['add'](this['iconView'],0x0),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-icon'}});}['_setupResetButton'](_0x4a7f26,t){this['resetButtonView']=new _0x2828e0(_0x4a7f26),this['resetButtonView']['set']({'label':t('Clear'),'icon':_0x11efad,'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',_0x982f2=>!_0x982f2),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 _0x339225,IconView as _0xc91b46,LabeledFieldView as _0x47209b,createLabeledInputText as th}from'ckeditor5/src/ui.js';import{IconLoupe as _0x1c2b00,IconCancel as _0x56cf08}from'ckeditor5/src/icons.js';import{getTranslation as _0xf24a28}from'../../../../aicore/utils/common-translations.js';export class AIChatContextResourcesSearchInputView extends _0x47209b{['iconView'];['resetButtonView'];['_viewConfig'];constructor(_0x3cbb35){const t=_0x3cbb35['t'],_0x2fec78={'showResetButton':!0x0,'showIcon':!0x0,'creator':th,'label':_0xf24a28(_0x3cbb35,'AI_CHAT_SEARCH_RESOURCES')};super(_0x3cbb35,_0x2fec78['creator']),this['label']=_0x2fec78['label'],this['_viewConfig']=_0x2fec78,this['_viewConfig']['showIcon']&&this['_setupSearchIcon'](),this['_viewConfig']['showResetButton']&&this['_setupResetButton'](_0x3cbb35,t),this['_setupEventListeners']();}['reset'](){this['fieldView']['reset'](),this['_viewConfig']['showResetButton']&&this['resetButtonView']&&(this['resetButtonView']['isVisible']=!0x1),this['search']('');}['search'](_0x4456eb){this['fire']('search',_0x4456eb);}['getQuery'](){return this['fieldView']['element']?.['value']||'';}['_setupSearchIcon'](){this['iconView']=new _0xc91b46(),this['iconView']['content']=_0x1c2b00,this['fieldWrapperChildren']['add'](this['iconView'],0x0),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-icon'}});}['_setupResetButton'](_0x1af20b,t){this['resetButtonView']=new _0x339225(_0x1af20b),this['resetButtonView']['set']({'label':t('Clear'),'icon':_0x56cf08,'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',_0x4c3fdb=>!_0x4c3fdb),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);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x22a6(_0x38b5a,_0x485de5){const _0x1bb7cd=_0x1bb7();return _0x22a6=function(_0x22a6f6,_0x5d6b3){_0x22a6f6=_0x22a6f6-0x14f;let _0x28dd46=_0x1bb7cd[_0x22a6f6];return _0x28dd46;},_0x22a6(_0x38b5a,_0x485de5);}const _0x11a9a5=_0x22a6;(function(_0x2e7009,_0x17170e){const _0x38e496=_0x22a6,_0x5c0929=_0x2e7009();while(!![]){try{const _0x31593b=parseInt(_0x38e496(0x161))/0x1*(parseInt(_0x38e496(0x15f))/0x2)+parseInt(_0x38e496(0x164))/0x3*(-parseInt(_0x38e496(0x156))/0x4)+parseInt(_0x38e496(0x152))/0x5+parseInt(_0x38e496(0x158))/0x6*(parseInt(_0x38e496(0x167))/0x7)+parseInt(_0x38e496(0x15e))/0x8*(-parseInt(_0x38e496(0x16c))/0x9)+parseInt(_0x38e496(0x157))/0xa+-parseInt(_0x38e496(0x153))/0xb;if(_0x31593b===_0x17170e)break;else _0x5c0929['push'](_0x5c0929['shift']());}catch(_0x2117bb){_0x5c0929['push'](_0x5c0929['shift']());}}}(_0x1bb7,0x4ef45));import{View as _0x1dd381}from'ckeditor5/src/ui.js';import{AIChatContextItemButtonView as _0x59278b}from'../controls/aichatcontextitembuttonview.js';function _0x1bb7(){const _0x52d1e4=['div','ck-reset_all','1232180RkyhbL','8215284xQfDoE','element','setContainerElement','205468afBYNf','5906590MZLXvN','3349194profIs','_createContextChips','setTemplate','ck-ai-chat__feed__context-chips','render','_overflowManager','16dVqMqK','4eDROSB','querySelector','265241LGeZNI','add','ck-ai-chat-context-chips-wrapper','33pAILtx','destroy','ck-ai-chat-controls-button','7BkzcjP','ck-ai-chat-context-chips-wrapper-balloon','_bodyCollection','createCollection','locale','1307241eqcsvS','reorganizeChips','_contextChips','ck-ai-chat-controls_context_show-more-button','ck-ai-chat-context-controls__show-more-balloon-panel'];_0x1bb7=function(){return _0x52d1e4;};return _0x1bb7();}import{AIChatChipsOverflowManager as _0x23b3e5}from'../controls/aichatchipsoverflowmanager.js';const Fo=_0x11a9a5(0x15b),$o=_0x11a9a5(0x163),qo=_0x11a9a5(0x168),Vo=_0x11a9a5(0x166),Io=_0x11a9a5(0x16f),Po=_0x11a9a5(0x14f);export class AIChatFeedContextChipsView extends _0x1dd381{[_0x11a9a5(0x16e)]=this[_0x11a9a5(0x16a)]();[_0x11a9a5(0x15d)];[_0x11a9a5(0x169)];constructor(_0x27008b,_0x21e82c,_0x173121){const _0x17d16a=_0x11a9a5;super(_0x27008b),this[_0x17d16a(0x169)]=_0x173121,this[_0x17d16a(0x159)](_0x21e82c);const _0x1b724b={'cssClasses':{'showMoreButton':Io,'showMoreBalloon':Po,'overflowContainer':qo,'controlsButton':Vo}};this[_0x17d16a(0x15d)]=new _0x23b3e5(_0x27008b,this[_0x17d16a(0x16e)],_0x1b724b,this[_0x17d16a(0x169)],this),this[_0x17d16a(0x15a)]({'tag':_0x17d16a(0x150),'attributes':{'class':[Fo,'ck',_0x17d16a(0x151)]},'children':[{'tag':_0x17d16a(0x150),'attributes':{'class':$o},'children':this[_0x17d16a(0x16e)]}]});}[_0x11a9a5(0x15c)](){const _0x2c76ce=_0x11a9a5;super[_0x2c76ce(0x15c)]();const _0x43b694=this[_0x2c76ce(0x154)][_0x2c76ce(0x160)]('.'+$o);_0x43b694&&(this[_0x2c76ce(0x15d)][_0x2c76ce(0x155)](_0x43b694),this[_0x2c76ce(0x15d)][_0x2c76ce(0x16d)]());}[_0x11a9a5(0x165)](){const _0x28e658=_0x11a9a5;super[_0x28e658(0x165)](),this[_0x28e658(0x15d)][_0x28e658(0x165)]();}[_0x11a9a5(0x159)](_0x1bfcc2){const _0x34b8d9=_0x11a9a5;for(const _0x16fd81 of _0x1bfcc2){const _0x1b2f5f=new _0x59278b(this[_0x34b8d9(0x16b)],_0x16fd81,!0x0,!0x1);this[_0x34b8d9(0x16e)][_0x34b8d9(0x162)](_0x1b2f5f);}}}
23
+ function _0x5593(_0x401915,_0x5bb18d){const _0x4e0439=_0x4e04();return _0x5593=function(_0x559315,_0x335f4e){_0x559315=_0x559315-0x129;let _0x46524a=_0x4e0439[_0x559315];return _0x46524a;},_0x5593(_0x401915,_0x5bb18d);}function _0x4e04(){const _0x35e9a6=['render','setTemplate','destroy','8213513UBFlZo','1083819XzjuKG','element','_contextChips','_createContextChips','reorganizeChips','189PsNCJH','ck-ai-chat-context-chips-wrapper-balloon','6eevHjF','ck-ai-chat-controls_context_show-more-button','3187120RRoTOD','setContainerElement','ck-reset_all','_overflowManager','750192fDoeMY','ck-ai-chat-context-chips-wrapper','ck-ai-chat-controls-button','467884QDCeKZ','_bodyCollection','locale','8UpxoIf','add','div','createCollection','querySelector','65700FkDXpb','310176tOWWPd','ck-ai-chat__feed__context-chips','ck-ai-chat-context-controls__show-more-balloon-panel','4455eEDigR'];_0x4e04=function(){return _0x35e9a6;};return _0x4e04();}const _0x869b5d=_0x5593;(function(_0x576665,_0x155523){const _0x2b9f48=_0x5593,_0x1cf6cc=_0x576665();while(!![]){try{const _0x5b09ba=parseInt(_0x2b9f48(0x13a))/0x1+parseInt(_0x2b9f48(0x12c))/0x2*(parseInt(_0x2b9f48(0x147))/0x3)+-parseInt(_0x2b9f48(0x129))/0x4+parseInt(_0x2b9f48(0x143))/0x5*(-parseInt(_0x2b9f48(0x141))/0x6)+parseInt(_0x2b9f48(0x139))/0x7+parseInt(_0x2b9f48(0x132))/0x8*(parseInt(_0x2b9f48(0x13f))/0x9)+parseInt(_0x2b9f48(0x131))/0xa*(-parseInt(_0x2b9f48(0x135))/0xb);if(_0x5b09ba===_0x155523)break;else _0x1cf6cc['push'](_0x1cf6cc['shift']());}catch(_0x18ca6e){_0x1cf6cc['push'](_0x1cf6cc['shift']());}}}(_0x4e04,0xa0411));import{View as _0x308ab2}from'ckeditor5/src/ui.js';import{AIChatContextItemButtonView as _0x27785e}from'../controls/aichatcontextitembuttonview.js';import{AIChatChipsOverflowManager as _0x20fb5a}from'../controls/aichatchipsoverflowmanager.js';const $o=_0x869b5d(0x133),Qo=_0x869b5d(0x148),Xo=_0x869b5d(0x140),Lo=_0x869b5d(0x149),Oo=_0x869b5d(0x142),Mo=_0x869b5d(0x134);export class AIChatFeedContextChipsView extends _0x308ab2{[_0x869b5d(0x13c)]=this[_0x869b5d(0x12f)]();[_0x869b5d(0x146)];[_0x869b5d(0x12a)];constructor(_0x1ae891,_0x127102,_0x1cb4a1){const _0x154e06=_0x869b5d;super(_0x1ae891),this[_0x154e06(0x12a)]=_0x1cb4a1,this[_0x154e06(0x13d)](_0x127102);const _0x4e7037={'cssClasses':{'showMoreButton':Oo,'showMoreBalloon':Mo,'overflowContainer':Xo,'controlsButton':Lo}};this[_0x154e06(0x146)]=new _0x20fb5a(_0x1ae891,this[_0x154e06(0x13c)],_0x4e7037,this[_0x154e06(0x12a)],this),this[_0x154e06(0x137)]({'tag':_0x154e06(0x12e),'attributes':{'class':[$o,'ck',_0x154e06(0x145)]},'children':[{'tag':_0x154e06(0x12e),'attributes':{'class':Qo},'children':this[_0x154e06(0x13c)]}]});}[_0x869b5d(0x136)](){const _0x40ab3d=_0x869b5d;super[_0x40ab3d(0x136)]();const _0x206949=this[_0x40ab3d(0x13b)][_0x40ab3d(0x130)]('.'+Qo);_0x206949&&(this[_0x40ab3d(0x146)][_0x40ab3d(0x144)](_0x206949),this[_0x40ab3d(0x146)][_0x40ab3d(0x13e)]());}[_0x869b5d(0x138)](){const _0x59e85c=_0x869b5d;super[_0x59e85c(0x138)](),this[_0x59e85c(0x146)][_0x59e85c(0x138)]();}[_0x869b5d(0x13d)](_0x327f1b){const _0x25e151=_0x869b5d;for(const _0x309b0f of _0x327f1b){const _0x1802a6=new _0x27785e(this[_0x25e151(0x12b)],_0x309b0f,!0x0,!0x1);this[_0x25e151(0x13c)][_0x25e151(0x12d)](_0x1802a6);}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x40c6(_0x5128a2,_0x4b03a4){var _0x1aece8=_0x1aec();return _0x40c6=function(_0x40c636,_0x18d54d){_0x40c636=_0x40c636-0x160;var _0x5a99c0=_0x1aece8[_0x40c636];return _0x5a99c0;},_0x40c6(_0x5128a2,_0x4b03a4);}function _0x1aec(){var _0x1799c4=['setContent','3WWkFwv','1975328tqTEBd','level','element','1950748mHkDBI','initialContent','innerHTML','render','warning','ck-ai-chat-error_warning','1428291FHpSjW','6797555kRfacg','6631008rTWDND','ck-ai-chat-error','164427PetqVH','markAsDone','90Vgijqk','4879FDWBIP','extendTemplate','2514wKNoNS','options'];_0x1aec=function(){return _0x1799c4;};return _0x1aec();}var _0x32bb82=_0x40c6;(function(_0x26dcf7,_0x3d426d){var _0x92be52=_0x40c6,_0x4e7e38=_0x26dcf7();while(!![]){try{var _0x1438ab=parseInt(_0x92be52(0x161))/0x1+-parseInt(_0x92be52(0x16d))/0x2*(parseInt(_0x92be52(0x169))/0x3)+parseInt(_0x92be52(0x175))/0x4+-parseInt(_0x92be52(0x174))/0x5+parseInt(_0x92be52(0x166))/0x6*(-parseInt(_0x92be52(0x164))/0x7)+parseInt(_0x92be52(0x16a))/0x8+parseInt(_0x92be52(0x173))/0x9*(parseInt(_0x92be52(0x163))/0xa);if(_0x1438ab===_0x3d426d)break;else _0x4e7e38['push'](_0x4e7e38['shift']());}catch(_0x223ae6){_0x4e7e38['push'](_0x4e7e38['shift']());}}}(_0x1aec,0xd483a));import{AIChatFeedItemView as _0x232f73}from'./aichatfeeditemview.js';export class AIChatFeedErrorItemView extends _0x232f73{constructor(_0x69d9aa){var _0x2a4e79=_0x40c6;super(_0x69d9aa),this[_0x2a4e79(0x165)]({'attributes':{'class':[_0x2a4e79(0x160),_0x2a4e79(0x171)===_0x69d9aa[_0x2a4e79(0x16b)]?_0x2a4e79(0x172):'']}});}[_0x32bb82(0x170)](){var _0x4da4ac=_0x32bb82;super[_0x4da4ac(0x170)](),this[_0x4da4ac(0x168)](this[_0x4da4ac(0x167)][_0x4da4ac(0x16e)]),this[_0x4da4ac(0x162)]();}[_0x32bb82(0x168)](_0x504064){var _0x39e32a=_0x32bb82;this[_0x39e32a(0x16c)][_0x39e32a(0x16f)]=_0x504064;}}
23
+ function _0x3baa(){var _0x56d368=['ck-ai-chat-error','innerHTML','extendTemplate','14808997sDfvnw','ck-ai-chat-error_warning','element','initialContent','setContent','4170752wOuEim','warning','options','markAsDone','633722ZeALTU','6661030tnMOaM','render','1173136vyrLvD','level','6497046BdUpnl','1986597pEUJUz'];_0x3baa=function(){return _0x56d368;};return _0x3baa();}var _0x1a2bf0=_0x227b;function _0x227b(_0x4ad076,_0x5a3ec2){var _0x3baadb=_0x3baa();return _0x227b=function(_0x227b7f,_0x4b78a0){_0x227b7f=_0x227b7f-0x96;var _0x150edb=_0x3baadb[_0x227b7f];return _0x150edb;},_0x227b(_0x4ad076,_0x5a3ec2);}(function(_0x21fa6d,_0x705beb){var _0x54056a=_0x227b,_0x55972d=_0x21fa6d();while(!![]){try{var _0x5adcd3=parseInt(_0x54056a(0x9f))/0x1+-parseInt(_0x54056a(0xa2))/0x2+-parseInt(_0x54056a(0xa5))/0x3+parseInt(_0x54056a(0x9b))/0x4+parseInt(_0x54056a(0xa0))/0x5+parseInt(_0x54056a(0xa4))/0x6+-parseInt(_0x54056a(0x96))/0x7;if(_0x5adcd3===_0x705beb)break;else _0x55972d['push'](_0x55972d['shift']());}catch(_0xa5d0af){_0x55972d['push'](_0x55972d['shift']());}}}(_0x3baa,0xb184f));import{AIChatFeedItemView as _0x3abe8b}from'./aichatfeeditemview.js';export class AIChatFeedErrorItemView extends _0x3abe8b{constructor(_0x60bfa0){var _0x1d2df6=_0x227b;super(_0x60bfa0),this[_0x1d2df6(0xa8)]({'attributes':{'class':[_0x1d2df6(0xa6),_0x1d2df6(0x9c)===_0x60bfa0[_0x1d2df6(0xa3)]?_0x1d2df6(0x97):'']}});}[_0x1a2bf0(0xa1)](){var _0x5e54f2=_0x1a2bf0;super[_0x5e54f2(0xa1)](),this[_0x5e54f2(0x9a)](this[_0x5e54f2(0x9d)][_0x5e54f2(0x99)]),this[_0x5e54f2(0x9e)]();}[_0x1a2bf0(0x9a)](_0x36167b){var _0x1fb3e9=_0x1a2bf0;this[_0x1fb3e9(0x98)][_0x1fb3e9(0xa7)]=_0x36167b;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3b533b=_0x3058;(function(_0x21f58f,_0x38489a){const _0x4ca5f2=_0x3058,_0x2a5bed=_0x21f58f();while(!![]){try{const _0x5e0f61=-parseInt(_0x4ca5f2(0x17b))/0x1*(parseInt(_0x4ca5f2(0x172))/0x2)+-parseInt(_0x4ca5f2(0x176))/0x3+parseInt(_0x4ca5f2(0x170))/0x4+parseInt(_0x4ca5f2(0x182))/0x5+parseInt(_0x4ca5f2(0x186))/0x6*(-parseInt(_0x4ca5f2(0x17c))/0x7)+parseInt(_0x4ca5f2(0x16c))/0x8*(-parseInt(_0x4ca5f2(0x178))/0x9)+parseInt(_0x4ca5f2(0x17a))/0xa*(parseInt(_0x4ca5f2(0x17f))/0xb);if(_0x5e0f61===_0x38489a)break;else _0x2a5bed['push'](_0x2a5bed['shift']());}catch(_0x461356){_0x2a5bed['push'](_0x2a5bed['shift']());}}}(_0x4542,0xa64ee));function _0x4542(){const _0x21e577=['ck-hidden','push','AI_CHAT_FEED_REPLY_ITEM_USED_REASONING','2695350YWXXsv','capabilities','9PwssUu','ck-ai-chat__feed__interaction-header__capabilities__text','120WwPXZe','11831vMWWgn','619493AggNKi','div','AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH','1544532QXSmmL','setTemplate','add','4706465BcxGwY','ck-ai-chat__feed__interaction-header__capabilities','content','ck-ai-chat__feed__interaction-header','18OcjCGq','2805104qbgomC','span','AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH_REASONING','extendTemplate','3578472qGdlIq','children','224bXFlPm'];_0x4542=function(){return _0x21e577;};return _0x4542();}import{IconBulb as _0x190c29,IconWeb as _0x21a749}from'@ckeditor/ckeditor5-icons';import{IconView as _0x3785c2,View as _0xec66d6}from'ckeditor5/src/ui.js';function _0x3058(_0x213ade,_0x3d0fc0){const _0x454283=_0x4542();return _0x3058=function(_0x3058fa,_0x51d029){_0x3058fa=_0x3058fa-0x16c;let _0x5d39fb=_0x454283[_0x3058fa];return _0x5d39fb;},_0x3058(_0x213ade,_0x3d0fc0);}import{AIChatFeedItemView as _0x386946}from'./aichatfeeditemview.js';import{getTranslation as _0x445224}from'../../../aicore/utils/common-translations.js';export class AIChatFeedInteractionHeaderView extends _0x386946{[_0x3b533b(0x177)];constructor(_0x384fd2,_0x6f4492){const _0x3ff9d9=_0x3b533b;super(_0x6f4492);const {isWebSearchEnabled:_0x2d42b0,isReasoningEnabled:_0x4b78e1}=_0x6f4492[_0x3ff9d9(0x177)],_0x24ae67=[];let _0x277fad='';_0x2d42b0&&_0x4b78e1?(_0x277fad=_0x445224(_0x384fd2,_0x3ff9d9(0x16e)),_0x24ae67[_0x3ff9d9(0x174)](aa(_0x21a749)),_0x24ae67[_0x3ff9d9(0x174)](aa(_0x190c29))):_0x2d42b0?(_0x277fad=_0x445224(_0x384fd2,_0x3ff9d9(0x17e)),_0x24ae67[_0x3ff9d9(0x174)](aa(_0x21a749))):_0x4b78e1&&(_0x277fad=_0x445224(_0x384fd2,_0x3ff9d9(0x175)),_0x24ae67[_0x3ff9d9(0x174)](aa(_0x190c29))),this[_0x3ff9d9(0x16f)]({'attributes':{'class':[_0x3ff9d9(0x185),_0x277fad?'':_0x3ff9d9(0x173)]}});const _0x200893=new _0xec66d6();_0x200893[_0x3ff9d9(0x180)]({'tag':_0x3ff9d9(0x17d),'attributes':{'class':['ck',_0x3ff9d9(0x183)]},'children':[..._0x24ae67,{'tag':_0x3ff9d9(0x16d),'attributes':{'class':[_0x3ff9d9(0x179)]},'children':[_0x277fad]}]}),this[_0x3ff9d9(0x171)][_0x3ff9d9(0x181)](_0x200893),this[_0x3ff9d9(0x177)]=_0x6f4492[_0x3ff9d9(0x177)];}}function aa(_0x4db695){const _0x4dd9c1=_0x3b533b,_0x46b3b6=new _0x3785c2();return _0x46b3b6[_0x4dd9c1(0x184)]=_0x4db695,_0x46b3b6;}
23
+ const _0x32e4ac=_0x4bcc;(function(_0x169574,_0x40a980){const _0x20338f=_0x4bcc,_0x5f68f9=_0x169574();while(!![]){try{const _0x50d3a6=parseInt(_0x20338f(0xc0))/0x1*(parseInt(_0x20338f(0xc4))/0x2)+parseInt(_0x20338f(0xd5))/0x3+-parseInt(_0x20338f(0xca))/0x4+parseInt(_0x20338f(0xd0))/0x5+-parseInt(_0x20338f(0xd1))/0x6*(parseInt(_0x20338f(0xc9))/0x7)+-parseInt(_0x20338f(0xce))/0x8+parseInt(_0x20338f(0xcd))/0x9*(parseInt(_0x20338f(0xc3))/0xa);if(_0x50d3a6===_0x40a980)break;else _0x5f68f9['push'](_0x5f68f9['shift']());}catch(_0x52e360){_0x5f68f9['push'](_0x5f68f9['shift']());}}}(_0x4f83,0xdbe07));function _0x4bcc(_0x34b913,_0x213ef1){const _0x4f836b=_0x4f83();return _0x4bcc=function(_0x4bcc0a,_0x53ee9f){_0x4bcc0a=_0x4bcc0a-0xbe;let _0x35fbea=_0x4f836b[_0x4bcc0a];return _0x35fbea;},_0x4bcc(_0x34b913,_0x213ef1);}import{IconBulb as _0x548d8e,IconWeb as _0x4de2a7}from'@ckeditor/ckeditor5-icons';import{IconView as _0x22483a,View as _0x4f3901}from'ckeditor5/src/ui.js';import{AIChatFeedItemView as _0x18368a}from'./aichatfeeditemview.js';function _0x4f83(){const _0x4207b4=['550UKsCQx','setTemplate','ck-ai-chat__feed__interaction-header__capabilities__text','ck-ai-chat__feed__interaction-header','ck-hidden','77203wRBAMX','1380184iVnFcU','AI_CHAT_FEED_REPLY_ITEM_USED_REASONING','content','1062LbDNKM','8774232FiNXdE','AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH','2189475InyXYM','156TRaRoe','div','extendTemplate','AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH_REASONING','580137UKREbY','span','capabilities','ck-ai-chat__feed__interaction-header__capabilities','push','3472pvTTIJ','children','add','88400Npohjm'];_0x4f83=function(){return _0x4207b4;};return _0x4f83();}import{getTranslation as _0x38815f}from'../../../aicore/utils/common-translations.js';export class AIChatFeedInteractionHeaderView extends _0x18368a{[_0x32e4ac(0xd7)];constructor(_0x38158b,_0x509c2b){const _0x208b59=_0x32e4ac;super(_0x509c2b);const {isWebSearchEnabled:_0x4f148c,isReasoningEnabled:_0x5567ed}=_0x509c2b[_0x208b59(0xd7)],_0x26b241=[];let _0x5f4f38='';_0x4f148c&&_0x5567ed?(_0x5f4f38=_0x38815f(_0x38158b,_0x208b59(0xd4)),_0x26b241[_0x208b59(0xbf)](aa(_0x4de2a7)),_0x26b241[_0x208b59(0xbf)](aa(_0x548d8e))):_0x4f148c?(_0x5f4f38=_0x38815f(_0x38158b,_0x208b59(0xcf)),_0x26b241[_0x208b59(0xbf)](aa(_0x4de2a7))):_0x5567ed&&(_0x5f4f38=_0x38815f(_0x38158b,_0x208b59(0xcb)),_0x26b241[_0x208b59(0xbf)](aa(_0x548d8e))),this[_0x208b59(0xd3)]({'attributes':{'class':[_0x208b59(0xc7),_0x5f4f38?'':_0x208b59(0xc8)]}});const _0x349d14=new _0x4f3901();_0x349d14[_0x208b59(0xc5)]({'tag':_0x208b59(0xd2),'attributes':{'class':['ck',_0x208b59(0xbe)]},'children':[..._0x26b241,{'tag':_0x208b59(0xd6),'attributes':{'class':[_0x208b59(0xc6)]},'children':[_0x5f4f38]}]}),this[_0x208b59(0xc1)][_0x208b59(0xc2)](_0x349d14),this[_0x208b59(0xd7)]=_0x509c2b[_0x208b59(0xd7)];}}function aa(_0x54bc4e){const _0x24b26d=_0x32e4ac,_0x20e22b=new _0x22483a();return _0x20e22b[_0x24b26d(0xcc)]=_0x54bc4e,_0x20e22b;}