@ckeditor/ckeditor5-ai 47.6.2-alpha.0 → 47.6.2-alpha.1

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 (318) 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/aiballoonview.js +1 -1
  175. package/src/aichat/aichat.js +1 -1
  176. package/src/aichat/aichatballoon.js +1 -1
  177. package/src/aichat/aichatcontroller.js +1 -1
  178. package/src/aichat/aichatui.js +1 -1
  179. package/src/aichat/model/aichatcontext.js +1 -1
  180. package/src/aichat/model/aichatconversation.js +1 -1
  181. package/src/aichat/model/aichatinteraction.js +1 -1
  182. package/src/aichat/ui/aichatballoonview.js +1 -1
  183. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  184. package/src/aichat/ui/aichatfeedview.js +1 -1
  185. package/src/aichat/ui/aichatheaderview.js +1 -1
  186. package/src/aichat/ui/aichatview.js +1 -1
  187. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  188. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  189. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  190. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  191. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  192. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  193. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  194. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  195. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  196. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  197. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  198. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  199. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  200. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  201. package/src/aichat/ui/feed/aichatfeedcustomelementview.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/aichathistory/aichathistory.js +1 -1
  212. package/src/aichathistory/aichathistorycontroller.js +1 -1
  213. package/src/aichathistory/aichathistoryui.js +1 -1
  214. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  215. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  216. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  217. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  218. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  219. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  220. package/src/aichatshortcuts/aichatshortcuts.js +1 -1
  221. package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
  222. package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
  223. package/src/aicore/aiconnector.js +1 -1
  224. package/src/aicore/aiediting.js +1 -1
  225. package/src/aicore/model/aicapabilities.js +1 -1
  226. package/src/aicore/model/aicontext.js +1 -1
  227. package/src/aicore/model/aiinteraction.js +1 -1
  228. package/src/aicore/model/aimodels.js +1 -1
  229. package/src/aicore/model/aireply.js +1 -1
  230. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  231. package/src/aicore/pipeline/airesponseparser.js +2 -2
  232. package/src/aicore/ui/aidisclaimerview.js +1 -1
  233. package/src/aicore/ui/aiskeleton.js +1 -1
  234. package/src/aicore/ui/aispinner.js +1 -1
  235. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  236. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  237. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  238. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
  239. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
  240. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
  241. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  242. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  243. package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
  244. package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
  245. package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
  246. package/src/aicore/utils/common-translations.js +1 -1
  247. package/src/aicore/utils/createresizebutton.js +1 -1
  248. package/src/aicore/utils/documentposition.js +1 -1
  249. package/src/aicore/utils/documentrange.js +1 -1
  250. package/src/aicore/utils/eventnames.js +1 -1
  251. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  252. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  253. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  254. package/src/aicore/utils/htmlparser.js +1 -1
  255. package/src/aicore/utils/htmlstreamer.js +1 -1
  256. package/src/aicore/utils/scrollmanager.js +1 -1
  257. package/src/aieditorintegration/aieditorintegration.js +1 -1
  258. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  259. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  260. package/src/aiquickactions/aiquickactions.js +1 -1
  261. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  262. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  263. package/src/aiquickactions/aiquickactionsui.js +1 -1
  264. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  265. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  266. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  267. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
  268. package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
  269. package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
  270. package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
  271. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  272. package/src/aireviewcore/aireviewcorecontroller.js +1 -1
  273. package/src/aireviewcore/aireviewcoreediting.js +1 -1
  274. package/src/aireviewcore/aireviewcoreui.js +1 -1
  275. package/src/aireviewcore/model/aireviewcheck.js +1 -1
  276. package/src/aireviewcore/model/aireviewchecklist.js +1 -1
  277. package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
  278. package/src/aireviewcore/model/aireviewcheckresultchange.js +1 -1
  279. package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
  280. package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
  281. package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
  282. package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
  283. package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
  284. package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
  285. package/src/aireviewcore/ui/aireviewcoregeneralerrorview.js +1 -1
  286. package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
  287. package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
  288. package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
  289. package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
  290. package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
  291. package/src/aireviewcore/ui/aireviewcoreview.js +1 -1
  292. package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
  293. package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +1 -1
  294. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  295. package/src/aireviewmode/aireviewmode.js +1 -1
  296. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  297. package/src/aireviewmode/aireviewmodeui.js +1 -1
  298. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  299. package/src/aireviewmode/model/aireviewcheckextra.js +1 -1
  300. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  301. package/src/aireviewmode/model/aireviewextracheckrun.js +1 -1
  302. package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
  303. package/src/aitabs/aitabs.js +1 -1
  304. package/src/aitabs/aitabsmainview.js +1 -1
  305. package/src/aitabs/tabs/aitabsview.js +1 -1
  306. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  307. package/src/aitabs/tabs/tabpanelview.js +1 -1
  308. package/src/aitranslate/aitranslate.js +1 -1
  309. package/src/aitranslate/aitranslatecontroller.js +1 -1
  310. package/src/aitranslate/aitranslateui.js +1 -1
  311. package/src/aitranslate/model/aitranslatecheck.js +1 -1
  312. package/src/aitranslate/model/aitranslatechecklist.js +1 -1
  313. package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
  314. package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
  315. package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
  316. package/src/errors.js +1 -1
  317. package/src/errorsmap.js +1 -1
  318. package/src/index.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x1d2f(){const _0x5dd49f=['_createBackButton','focus','_focusables','destroy','submitUrl','ck-labeled-field-view_empty','clearError','focusTracker','isEnabled','confirmButton','input','execute','_setupKeystrokes','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','ck-button-icon','element','submit','errorText','fire','focusCycler','_isValidUrl','esc','1341oNWKfy','locale','826010MdqTsD','\x20ck-hidden','set','setError','createCollection','fieldView','AI_CHAT_CONTEXT_URL_PLACEHOLDER','keystrokes','trim','_createUrlInputField','clear','setTemplate','AI_CHAT_CONTEXT_URL_INVALID_ERROR','12dbSKBR','change:withBackButton','cancel','refreshBalloon','1cNmyuW','_updateConfirmButtonState','add','backButton','17106oQlLaC','length','428TNNHVa','_handleSubmit','children','listenTo','forEach','163298eVsfxw','_setupTemplate','render','ck-ai-chat-context-controls__url-form','getValue','327360rkUMla','2095961XZbBVP','AI_CHAT_CONTEXT_URL_ADD_URL','urlInputField','form','stop','AI_CHAT_CONTEXT_URL_LABEL','687335iwSQnC','ck-ai-chat-context-controls__url-input-section','ck-button-icon\x20ck-button-back','tab','value','div','_setupEventHandlers','withBackButton','shift+tab','_createConfirmButton','20390qEAwMy','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url'];_0x1d2f=function(){return _0x5dd49f;};return _0x1d2f();}const _0x3c7c3c=_0x4774;function _0x4774(_0x416b8f,_0x3bdaca){const _0x1d2fcd=_0x1d2f();return _0x4774=function(_0x4774fe,_0xc4e539){_0x4774fe=_0x4774fe-0x9e;let _0xe824fd=_0x1d2fcd[_0x4774fe];return _0xe824fd;},_0x4774(_0x416b8f,_0x3bdaca);}(function(_0x2e0c27,_0x92a75c){const _0xc17770=_0x4774,_0x4f6129=_0x2e0c27();while(!![]){try{const _0x200234=parseInt(_0xc17770(0xbb))/0x1*(parseInt(_0xc17770(0xc6))/0x2)+parseInt(_0xc17770(0xbf))/0x3*(-parseInt(_0xc17770(0xc1))/0x4)+-parseInt(_0xc17770(0xaa))/0x5+-parseInt(_0xc17770(0xb7))/0x6*(-parseInt(_0xc17770(0xcc))/0x7)+parseInt(_0xc17770(0xcb))/0x8+parseInt(_0xc17770(0xa8))/0x9*(parseInt(_0xc17770(0xdc))/0xa)+parseInt(_0xc17770(0xd2))/0xb;if(_0x200234===_0x92a75c)break;else _0x4f6129['push'](_0x4f6129['shift']());}catch(_0x5a1158){_0x4f6129['push'](_0x4f6129['shift']());}}}(_0x1d2f,0x4c44b));import{FocusTracker as _0x46b314,KeystrokeHandler as _0x45d2e1}from'ckeditor5/src/utils.js';import{ButtonView as _0x8a2dad,FocusCycler as _0x1efe2b,LabeledFieldView as _0x2a1494,View as _0x4fa4ae,FormHeaderView as _0x18103a,createLabeledInputText as _0x41a4c1,submitHandler as _0x4539c8}from'ckeditor5/src/ui.js';import{IconCheck as _0x447b07,IconPreviousArrow as _0x16ef79}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x2024bb}from'../../../aicore/utils/common-translations.js';const oh=_0x3c7c3c(0xc9),ch=_0x3c7c3c(0xd3);export class AIChatContextPanelUrlInputView extends _0x4fa4ae{[_0x3c7c3c(0xe6)];[_0x3c7c3c(0xb1)];[_0x3c7c3c(0xe1)];[_0x3c7c3c(0xa5)];[_0x3c7c3c(0xce)];[_0x3c7c3c(0xbe)];[_0x3c7c3c(0xe8)];constructor(_0x369251){const _0x49dcbb=_0x3c7c3c;super(_0x369251),this[_0x49dcbb(0xe6)]=new _0x46b314(),this[_0x49dcbb(0xb1)]=new _0x45d2e1(),this[_0x49dcbb(0xbe)]=this[_0x49dcbb(0xdf)](),this[_0x49dcbb(0xce)]=this[_0x49dcbb(0xb3)](),this[_0x49dcbb(0xe8)]=this[_0x49dcbb(0xdb)](),this[_0x49dcbb(0xe1)]=this[_0x49dcbb(0xae)]([this[_0x49dcbb(0xbe)],this[_0x49dcbb(0xce)],this[_0x49dcbb(0xe8)]]),this[_0x49dcbb(0xa5)]=new _0x1efe2b({'focusables':this[_0x49dcbb(0xe1)],'focusTracker':this[_0x49dcbb(0xe6)],'keystrokeHandler':this[_0x49dcbb(0xb1)],'actions':{'focusPrevious':_0x49dcbb(0xda),'focusNext':_0x49dcbb(0xd5)}}),this[_0x49dcbb(0xac)](_0x49dcbb(0xd9),!0x0),this[_0x49dcbb(0xc7)](),this[_0x49dcbb(0xd8)](),this[_0x49dcbb(0x9e)]();}[_0x3c7c3c(0xc8)](){const _0x651885=_0x3c7c3c;super[_0x651885(0xc8)](),this[_0x651885(0xe1)][_0x651885(0xc5)](_0x168a3e=>{const _0x2cac77=_0x651885;this[_0x2cac77(0xe6)][_0x2cac77(0xbd)](_0x168a3e[_0x2cac77(0xa1)]),this[_0x2cac77(0xb1)][_0x2cac77(0xc4)](_0x168a3e[_0x2cac77(0xa1)]);}),_0x4539c8({'view':this}),this[_0x651885(0xe0)]();}[_0x3c7c3c(0xe2)](){const _0xaadda2=_0x3c7c3c;super[_0xaadda2(0xe2)](),this[_0xaadda2(0xe6)][_0xaadda2(0xe2)](),this[_0xaadda2(0xb1)][_0xaadda2(0xe2)]();}[_0x3c7c3c(0xe0)](){const _0x5c92bb=_0x3c7c3c;this[_0x5c92bb(0xce)][_0x5c92bb(0xe0)]();}[_0x3c7c3c(0xca)](){const _0x2f277e=_0x3c7c3c;return this[_0x2f277e(0xce)][_0x2f277e(0xaf)][_0x2f277e(0xa1)]?.[_0x2f277e(0xd6)]?.[_0x2f277e(0xb2)]()||'';}[_0x3c7c3c(0xb4)](){const _0x349ab5=_0x3c7c3c;this[_0x349ab5(0xce)][_0x349ab5(0xaf)][_0x349ab5(0xa1)][_0x349ab5(0xd6)]='',this[_0x349ab5(0xce)][_0x349ab5(0xa3)]=null,this[_0x349ab5(0xe8)][_0x349ab5(0xe7)]=!0x1;}[_0x3c7c3c(0xad)](_0x46966a){const _0x2f544c=_0x3c7c3c;this[_0x2f544c(0xce)][_0x2f544c(0xa3)]=_0x46966a,this[_0x2f544c(0xbc)](),this[_0x2f544c(0xa4)](_0x2f544c(0xba));}[_0x3c7c3c(0xe5)](){const _0x2613e6=_0x3c7c3c;this[_0x2613e6(0xce)][_0x2613e6(0xa3)]=null,this[_0x2613e6(0xbc)]();}[_0x3c7c3c(0xdf)](){const _0x16a7cd=_0x3c7c3c,_0x4a457b=new _0x8a2dad(this[_0x16a7cd(0xa9)]);return _0x4a457b[_0x16a7cd(0xac)]({'icon':_0x16ef79,'tooltip':_0x2024bb(this[_0x16a7cd(0xa9)],_0x16a7cd(0x9f)),'tooltipPosition':'n','class':[_0x16a7cd(0xd4)]}),this['on'](_0x16a7cd(0xb8),(_0x24037e,_0x21fe02,_0x14e756)=>{const _0x55768e=_0x16a7cd;_0x4a457b[_0x55768e(0xac)]({'class':[_0x55768e(0xd4)+(_0x14e756?'':_0x55768e(0xab))]});}),_0x4a457b;}[_0x3c7c3c(0xb3)](){const _0x442894=_0x3c7c3c,_0xbffc4e=new _0x2a1494(this[_0x442894(0xa9)],_0x41a4c1);return _0xbffc4e[_0x442894(0xac)]({'label':_0x2024bb(this[_0x442894(0xa9)],_0x442894(0xd1)),'class':_0x442894(0xe4)}),_0xbffc4e[_0x442894(0xaf)][_0x442894(0xac)]({'placeholder':_0x2024bb(this[_0x442894(0xa9)],_0x442894(0xb0))}),_0xbffc4e;}[_0x3c7c3c(0xdb)](){const _0x2b61e3=_0x3c7c3c,_0x3829e1=new _0x8a2dad(this[_0x2b61e3(0xa9)]);return _0x3829e1[_0x2b61e3(0xac)]({'icon':_0x447b07,'tooltip':_0x2024bb(this[_0x2b61e3(0xa9)],_0x2b61e3(0xcd)),'tooltipPosition':'n','class':_0x2b61e3(0xa0),'type':_0x2b61e3(0xa2),'isEnabled':!0x1}),_0x3829e1;}[_0x3c7c3c(0xc7)](){const _0xc6d9ea=_0x3c7c3c,_0x19cef3=new _0x18103a(this[_0xc6d9ea(0xa9)],{'label':_0x2024bb(this[_0xc6d9ea(0xa9)],_0xc6d9ea(0xcd)),'class':_0xc6d9ea(0xde)});_0x19cef3[_0xc6d9ea(0xc3)][_0xc6d9ea(0xbd)](this[_0xc6d9ea(0xbe)],0x0),this[_0xc6d9ea(0xb5)]({'tag':_0xc6d9ea(0xcf),'attributes':{'class':oh,'tabindex':'-1'},'children':[_0x19cef3,{'tag':_0xc6d9ea(0xd7),'attributes':{'class':ch},'children':[this[_0xc6d9ea(0xce)],this[_0xc6d9ea(0xe8)]]}]});}[_0x3c7c3c(0xd8)](){const _0x41d58d=_0x3c7c3c;this[_0x41d58d(0xbe)]['on'](_0x41d58d(0xea),()=>{const _0x496ff4=_0x41d58d;this[_0x496ff4(0xb4)](),this[_0x496ff4(0xa4)](_0x496ff4(0xb9));}),this[_0x41d58d(0xce)][_0x41d58d(0xaf)]['on'](_0x41d58d(0xe9),()=>{const _0x1b249b=_0x41d58d;this[_0x1b249b(0xe5)](),this[_0x1b249b(0xbc)](),this[_0x1b249b(0xa4)](_0x1b249b(0xba));}),this['on'](_0x41d58d(0xa2),_0x4b054f=>{const _0x5b7eb1=_0x41d58d;_0x4b054f[_0x5b7eb1(0xd0)](),this[_0x5b7eb1(0xc2)]();});}[_0x3c7c3c(0x9e)](){const _0x4876b1=_0x3c7c3c;this[_0x4876b1(0xb1)][_0x4876b1(0xac)](_0x4876b1(0xa7),(_0x340aa9,_0x4f9739)=>{const _0xf72678=_0x4876b1;this[_0xf72678(0xb4)](),this[_0xf72678(0xa4)](_0xf72678(0xb9)),_0x4f9739();});}[_0x3c7c3c(0xc2)](){const _0xe12aa1=_0x3c7c3c,_0x4a731e=this[_0xe12aa1(0xca)]()[_0xe12aa1(0xb2)]();_0x4a731e?this[_0xe12aa1(0xa6)](_0x4a731e)?(this[_0xe12aa1(0xe5)](),this[_0xe12aa1(0xa4)](_0xe12aa1(0xe3),_0x4a731e)):this[_0xe12aa1(0xad)](_0x2024bb(this[_0xe12aa1(0xa9)],_0xe12aa1(0xb6))):this[_0xe12aa1(0xad)](_0x2024bb(this[_0xe12aa1(0xa9)],_0xe12aa1(0xdd)));}[_0x3c7c3c(0xbc)](){const _0x1f642f=_0x3c7c3c,_0x3d450e=this[_0x1f642f(0xca)]()[_0x1f642f(0xb2)](),_0x43a950=!!this[_0x1f642f(0xce)][_0x1f642f(0xa3)];this[_0x1f642f(0xe8)][_0x1f642f(0xe7)]=_0x3d450e[_0x1f642f(0xc0)]>0x0&&!_0x43a950;}[_0x3c7c3c(0xa6)](_0x3546ba){try{return!!new URL(_0x3546ba);}catch{return!0x1;}}}
23
+ function _0x23c6(_0x38706d,_0x3d233e){const _0x187cf3=_0x187c();return _0x23c6=function(_0x23c60a,_0xd24a36){_0x23c60a=_0x23c60a-0xbc;let _0x559ab1=_0x187cf3[_0x23c60a];return _0x559ab1;},_0x23c6(_0x38706d,_0x3d233e);}function _0x187c(){const _0x3bf026=['clearError','AI_CHAT_CONTEXT_URL_INVALID_ERROR','_setupTemplate','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','ck-labeled-field-view_empty','setTemplate','fire','render','fieldView','createCollection','confirmButton','keystrokes','196eMgsPX','focus','backButton','_createBackButton','tab','withBackButton','submit','_handleSubmit','ck-button-icon','_createUrlInputField','change:withBackButton','5123544FtCGAA','cancel','_focusables','371288XxfEfm','setError','add','_setupEventHandlers','trim','set','ck-ai-chat-context-controls__url-input-section','length','ck-button-icon\x20ck-button-back','2sShYum','focusCycler','focusTracker','shift+tab','55NXNTVi','ck-ai-chat-context-controls__url-form','\x20ck-hidden','form','element','2322150ngIVod','_createConfirmButton','AI_CHAT_CONTEXT_URL_LABEL','urlInputField','errorText','submitUrl','5023125KONPwO','children','forEach','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','isEnabled','AI_CHAT_CONTEXT_URL_ADD_URL','_updateConfirmButtonState','input','_setupKeystrokes','locale','refreshBalloon','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','execute','58266lGwcsW','AI_CHAT_CONTEXT_URL_PLACEHOLDER','5cRESqo','destroy','value','listenTo','4352124BQbDbo','stop','div','getValue','_isValidUrl','esc','931137cobZMW','clear'];_0x187c=function(){return _0x3bf026;};return _0x187c();}const _0x55cb47=_0x23c6;(function(_0x17385b,_0x5ce8aa){const _0x5bb994=_0x23c6,_0x49d411=_0x17385b();while(!![]){try{const _0x36d6fd=parseInt(_0x5bb994(0xec))/0x1+-parseInt(_0x5bb994(0xf5))/0x2*(-parseInt(_0x5bb994(0xd0))/0x3)+parseInt(_0x5bb994(0xca))/0x4*(-parseInt(_0x5bb994(0xc6))/0x5)+-parseInt(_0x5bb994(0xc4))/0x6*(parseInt(_0x5bb994(0xde))/0x7)+parseInt(_0x5bb994(0xe9))/0x8+-parseInt(_0x5bb994(0x104))/0x9+-parseInt(_0x5bb994(0xfe))/0xa*(-parseInt(_0x5bb994(0xf9))/0xb);if(_0x36d6fd===_0x5ce8aa)break;else _0x49d411['push'](_0x49d411['shift']());}catch(_0x280296){_0x49d411['push'](_0x49d411['shift']());}}}(_0x187c,0x89f81));import{FocusTracker as _0x3b55c9,KeystrokeHandler as _0x4ede6f}from'ckeditor5/src/utils.js';import{ButtonView as _0x43c258,FocusCycler as _0x47b0d4,LabeledFieldView as _0x5a392f,View as _0x3b31df,FormHeaderView as _0x3f564b,createLabeledInputText as _0x48c145,submitHandler as _0x560f68}from'ckeditor5/src/ui.js';import{IconCheck as _0x458347,IconPreviousArrow as _0x45663e}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x2519a3}from'../../../aicore/utils/common-translations.js';const ch=_0x55cb47(0xfa),rh=_0x55cb47(0xf2);export class AIChatContextPanelUrlInputView extends _0x3b31df{[_0x55cb47(0xf7)];[_0x55cb47(0xdd)];[_0x55cb47(0xeb)];[_0x55cb47(0xf6)];[_0x55cb47(0x101)];[_0x55cb47(0xe0)];[_0x55cb47(0xdc)];constructor(_0x15ac9a){const _0x5d3131=_0x55cb47;super(_0x15ac9a),this[_0x5d3131(0xf7)]=new _0x3b55c9(),this[_0x5d3131(0xdd)]=new _0x4ede6f(),this[_0x5d3131(0xe0)]=this[_0x5d3131(0xe1)](),this[_0x5d3131(0x101)]=this[_0x5d3131(0xe7)](),this[_0x5d3131(0xdc)]=this[_0x5d3131(0xff)](),this[_0x5d3131(0xeb)]=this[_0x5d3131(0xdb)]([this[_0x5d3131(0xe0)],this[_0x5d3131(0x101)],this[_0x5d3131(0xdc)]]),this[_0x5d3131(0xf6)]=new _0x47b0d4({'focusables':this[_0x5d3131(0xeb)],'focusTracker':this[_0x5d3131(0xf7)],'keystrokeHandler':this[_0x5d3131(0xdd)],'actions':{'focusPrevious':_0x5d3131(0xf8),'focusNext':_0x5d3131(0xe2)}}),this[_0x5d3131(0xf1)](_0x5d3131(0xe3),!0x0),this[_0x5d3131(0xd4)](),this[_0x5d3131(0xef)](),this[_0x5d3131(0xbf)]();}[_0x55cb47(0xd9)](){const _0x597053=_0x55cb47;super[_0x597053(0xd9)](),this[_0x597053(0xeb)][_0x597053(0x106)](_0x5a3720=>{const _0x49f959=_0x597053;this[_0x49f959(0xf7)][_0x49f959(0xee)](_0x5a3720[_0x49f959(0xfd)]),this[_0x49f959(0xdd)][_0x49f959(0xc9)](_0x5a3720[_0x49f959(0xfd)]);}),_0x560f68({'view':this}),this[_0x597053(0xdf)]();}[_0x55cb47(0xc7)](){const _0x5ded0d=_0x55cb47;super[_0x5ded0d(0xc7)](),this[_0x5ded0d(0xf7)][_0x5ded0d(0xc7)](),this[_0x5ded0d(0xdd)][_0x5ded0d(0xc7)]();}[_0x55cb47(0xdf)](){const _0x1e31e3=_0x55cb47;this[_0x1e31e3(0x101)][_0x1e31e3(0xdf)]();}[_0x55cb47(0xcd)](){const _0x149812=_0x55cb47;return this[_0x149812(0x101)][_0x149812(0xda)][_0x149812(0xfd)]?.[_0x149812(0xc8)]?.[_0x149812(0xf0)]()||'';}[_0x55cb47(0xd1)](){const _0x52459d=_0x55cb47;this[_0x52459d(0x101)][_0x52459d(0xda)][_0x52459d(0xfd)][_0x52459d(0xc8)]='',this[_0x52459d(0x101)][_0x52459d(0x102)]=null,this[_0x52459d(0xdc)][_0x52459d(0x108)]=!0x1;}[_0x55cb47(0xed)](_0x1d7965){const _0x3991d8=_0x55cb47;this[_0x3991d8(0x101)][_0x3991d8(0x102)]=_0x1d7965,this[_0x3991d8(0xbd)](),this[_0x3991d8(0xd8)](_0x3991d8(0xc1));}[_0x55cb47(0xd2)](){const _0x3d16d9=_0x55cb47;this[_0x3d16d9(0x101)][_0x3d16d9(0x102)]=null,this[_0x3d16d9(0xbd)]();}[_0x55cb47(0xe1)](){const _0x2f00cd=_0x55cb47,_0x484b9a=new _0x43c258(this[_0x2f00cd(0xc0)]);return _0x484b9a[_0x2f00cd(0xf1)]({'icon':_0x45663e,'tooltip':_0x2519a3(this[_0x2f00cd(0xc0)],_0x2f00cd(0x107)),'tooltipPosition':'n','class':[_0x2f00cd(0xf4)]}),this['on'](_0x2f00cd(0xe8),(_0xa31e51,_0x420213,_0x222e2c)=>{const _0x3a8902=_0x2f00cd;_0x484b9a[_0x3a8902(0xf1)]({'class':[_0x3a8902(0xf4)+(_0x222e2c?'':_0x3a8902(0xfb))]});}),_0x484b9a;}[_0x55cb47(0xe7)](){const _0x530ecb=_0x55cb47,_0x175826=new _0x5a392f(this[_0x530ecb(0xc0)],_0x48c145);return _0x175826[_0x530ecb(0xf1)]({'label':_0x2519a3(this[_0x530ecb(0xc0)],_0x530ecb(0x100)),'class':_0x530ecb(0xd6)}),_0x175826[_0x530ecb(0xda)][_0x530ecb(0xf1)]({'placeholder':_0x2519a3(this[_0x530ecb(0xc0)],_0x530ecb(0xc5))}),_0x175826;}[_0x55cb47(0xff)](){const _0xcf3b08=_0x55cb47,_0x3fd495=new _0x43c258(this[_0xcf3b08(0xc0)]);return _0x3fd495[_0xcf3b08(0xf1)]({'icon':_0x458347,'tooltip':_0x2519a3(this[_0xcf3b08(0xc0)],_0xcf3b08(0xbc)),'tooltipPosition':'n','class':_0xcf3b08(0xe6),'type':_0xcf3b08(0xe4),'isEnabled':!0x1}),_0x3fd495;}[_0x55cb47(0xd4)](){const _0x4529c4=_0x55cb47,_0x1b8341=new _0x3f564b(this[_0x4529c4(0xc0)],{'label':_0x2519a3(this[_0x4529c4(0xc0)],_0x4529c4(0xbc)),'class':_0x4529c4(0xd5)});_0x1b8341[_0x4529c4(0x105)][_0x4529c4(0xee)](this[_0x4529c4(0xe0)],0x0),this[_0x4529c4(0xd7)]({'tag':_0x4529c4(0xfc),'attributes':{'class':ch,'tabindex':'-1'},'children':[_0x1b8341,{'tag':_0x4529c4(0xcc),'attributes':{'class':rh},'children':[this[_0x4529c4(0x101)],this[_0x4529c4(0xdc)]]}]});}[_0x55cb47(0xef)](){const _0x21ebe5=_0x55cb47;this[_0x21ebe5(0xe0)]['on'](_0x21ebe5(0xc3),()=>{const _0x157271=_0x21ebe5;this[_0x157271(0xd1)](),this[_0x157271(0xd8)](_0x157271(0xea));}),this[_0x21ebe5(0x101)][_0x21ebe5(0xda)]['on'](_0x21ebe5(0xbe),()=>{const _0x4b4741=_0x21ebe5;this[_0x4b4741(0xd2)](),this[_0x4b4741(0xbd)](),this[_0x4b4741(0xd8)](_0x4b4741(0xc1));}),this['on'](_0x21ebe5(0xe4),_0x4f8a3a=>{const _0x1d5a55=_0x21ebe5;_0x4f8a3a[_0x1d5a55(0xcb)](),this[_0x1d5a55(0xe5)]();});}[_0x55cb47(0xbf)](){const _0x23e600=_0x55cb47;this[_0x23e600(0xdd)][_0x23e600(0xf1)](_0x23e600(0xcf),(_0x1fd826,_0x497081)=>{const _0x54dbad=_0x23e600;this[_0x54dbad(0xd1)](),this[_0x54dbad(0xd8)](_0x54dbad(0xea)),_0x497081();});}[_0x55cb47(0xe5)](){const _0xf69a0=_0x55cb47,_0x581fc6=this[_0xf69a0(0xcd)]()[_0xf69a0(0xf0)]();_0x581fc6?this[_0xf69a0(0xce)](_0x581fc6)?(this[_0xf69a0(0xd2)](),this[_0xf69a0(0xd8)](_0xf69a0(0x103),_0x581fc6)):this[_0xf69a0(0xed)](_0x2519a3(this[_0xf69a0(0xc0)],_0xf69a0(0xd3))):this[_0xf69a0(0xed)](_0x2519a3(this[_0xf69a0(0xc0)],_0xf69a0(0xc2)));}[_0x55cb47(0xbd)](){const _0x44af35=_0x55cb47,_0x25d011=this[_0x44af35(0xcd)]()[_0x44af35(0xf0)](),_0x457216=!!this[_0x44af35(0x101)][_0x44af35(0x102)];this[_0x44af35(0xdc)][_0x44af35(0x108)]=_0x25d011[_0x44af35(0xf3)]>0x0&&!_0x457216;}[_0x55cb47(0xce)](_0x30cb52){try{return!!new URL(_0x30cb52);}catch{return!0x1;}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x217c82=_0x3c64;(function(_0x584a02,_0xdb7014){const _0x433660=_0x3c64,_0x2e83a9=_0x584a02();while(!![]){try{const _0x463c6f=-parseInt(_0x433660(0x236))/0x1*(-parseInt(_0x433660(0x1e7))/0x2)+parseInt(_0x433660(0x256))/0x3+parseInt(_0x433660(0x24b))/0x4*(-parseInt(_0x433660(0x216))/0x5)+parseInt(_0x433660(0x266))/0x6+-parseInt(_0x433660(0x23a))/0x7+-parseInt(_0x433660(0x237))/0x8+-parseInt(_0x433660(0x220))/0x9*(parseInt(_0x433660(0x26c))/0xa);if(_0x463c6f===_0xdb7014)break;else _0x2e83a9['push'](_0x2e83a9['shift']());}catch(_0x5c961d){_0x2e83a9['push'](_0x2e83a9['shift']());}}}(_0x1569,0x4c299));function _0x1569(){const _0x18ead8=['extendTemplate','addResourceToContext','loadSourceResources','southArrowNorthEast','destroy','2918988tncgmt','closest','cancel','length','_handleUrlSubmit','clearConversationContextItems','800yizDmH','label','get','remove','addFileToContext','setConversationContext','southArrowNorthWest','overflowChips','children','createCollection','balloonView','northArrowSouthWest','setContainerElement','hideAddContextBalloonPanel','ck-ai-chat-controls-button','_setupAllBalloonClickOutsideHandlers','_createUrlBalloonPanelView','ck-ai-chat-context-controls__url-balloon-panel','65874iHnwWT','defaultPositions','_getLimiterElement','closeSourceResourceBalloon','addContextItem','_addContextBalloonConfig','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','_urlBalloonPanelView','_overflowManager','ck-ai-chat-controls_context_show-more-button','_createContextButton','focus','isEnabled','__arrow','_createBaseBalloonPanel','northArrowSouthEast','_showSourceResourcesBalloon','populateSourceResourceBalloon','addContextButtonView','isVisible','ck-ai-chat','_conversationContextsChips','_createArrowView','addUrlToContext','locale','_setupAddContextBalloonClickOutsideHandler','ck-ai-chat-context-controls__add-context-button','div','render','withBackButton','_setupUrlBalloonClickOutsideHandler','files','done','pin','customItems','_createAddContextButtonView','AI_CHAT_CONTEXT_ADD_CONTEXT','removeContextItem','isAnyResourceBalloonVisible','hide','_currentContextsChips','showAddContextBalloonPanel','_setupTemplate','ck-ai-chat-context-chips-wrapper-balloon','type','isOn','icon','1958545likEOV','hideUrlBalloonPanel','ck-ai-chat-context-controls__balloon-button-source','_resourcesBalloonView','_hasExactlyOneSource','_addContextBalloonPanelView','_createAddContextBalloonPanelView','execute','bind','AI_CHAT_CONTEXT_URL_LABEL','35901cYzMPS','find','menuitem','body','_urlInputView','current','removeContextItemChip','_handleAddContextButtonClick','reorganizeChips','ck-ai-chat-context-controls','southArrowNorth','refreshBalloon','set','bodyCollection','_toggleAddContextBalloon','_createBalloonButton','addDocumentToContext','document','customItem','submitUrl','_addUrlContent','setTemplate','17BOfUSu','1252304TEDURq','sources','source','1475201AyxMqw','isReadOnly','conversation','urls','isLoading','updateResourceState','content','showUrlBalloonPanel','northArrowSouth','_bindEventHandlers','executeCustomItemCallback','_setAddContextButtonEnabled','_addContextToCollection','clear','showSourceResourcesBalloon','searchInputVisibleFrom','add','4cbAaVh','_setBalloonPanelContent','_removeContextFromCollection','setContextItemLoading','ck-ai-chat-context-controls__balloon-button','isHidden','fire','arrowView','buttonView','clearCurrentContextItems','setAddContextOptions','1030932cmCiUb','enabled','show','element','ck-reset_all-excluded','tooltip','_createResourcesBalloonView','ck-ai-chat-context-controls__show-more-balloon-panel','ck-ai-chat-context-controls__pending-contexts','ck-ai-chat-context-controls__add-context-balloon-panel','AI_CHAT_CONTEXT_FILE_LABEL'];_0x1569=function(){return _0x18ead8;};return _0x1569();}function _0x3c64(_0x5e4452,_0x25dba8){const _0x1569ee=_0x1569();return _0x3c64=function(_0x3c6407,_0x46fcd6){_0x3c6407=_0x3c6407-0x1e6;let _0x321747=_0x1569ee[_0x3c6407];return _0x321747;},_0x3c64(_0x5e4452,_0x25dba8);}import{BalloonPanelView as _0x36b04d,ButtonView as _0x4e50af,clickOutsideHandler as _0xc03999,FileDialogButtonView as _0x4ac669,IconView as _0x47381a,View as _0x155e76}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x2a0d0e,IconDocument as _0x54248c,IconDocumentOutline as _0x446af9,IconDropdownArrow as _0x3f18fa,IconLink as _0x4de35c,IconPaperClip as _0x2d100c}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x4f11f6}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x532c2e}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x4a18be}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x20dcc2}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x5b73cc}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x217c82(0x230),_0x217c82(0x270),_0x217c82(0x1fe),_0x217c82(0x262),_0x217c82(0x20c),_0x217c82(0x263),_0x217c82(0x244)];const Oo=_0x217c82(0x229),Uo=_0x217c82(0x25e),Lo=_0x217c82(0x25f),No=_0x217c82(0x201),Mo=_0x217c82(0x1e6),Ho=_0x217c82(0x24f),jo=_0x217c82(0x218),Fo=_0x217c82(0x27a),Xo=_0x217c82(0x212),Do=_0x217c82(0x1f0),$o=_0x217c82(0x25d),Wo=_0x217c82(0x1fb),qo=[_0x36b04d[_0x217c82(0x1e8)][_0x217c82(0x277)],_0x36b04d[_0x217c82(0x1e8)][_0x217c82(0x242)],_0x36b04d[_0x217c82(0x1e8)][_0x217c82(0x1f6)],_0x36b04d[_0x217c82(0x1e8)][_0x217c82(0x272)],_0x36b04d[_0x217c82(0x1e8)][_0x217c82(0x22a)],_0x36b04d[_0x217c82(0x1e8)][_0x217c82(0x264)]];export class AIChatContextPanelView extends _0x155e76{[_0x217c82(0x1f9)];[_0x217c82(0x20f)]=this[_0x217c82(0x275)]();[_0x217c82(0x1fc)]=this[_0x217c82(0x275)]();[_0x217c82(0x1ef)];[_0x217c82(0x21b)];[_0x217c82(0x1ee)];[_0x217c82(0x224)];[_0x217c82(0x219)];[_0x217c82(0x1ec)];[_0x217c82(0x21a)]=!0x1;[_0x217c82(0x22d)];constructor(_0x1d0299,_0x536a2a){const _0x4539ab=_0x217c82;super(_0x1d0299),this[_0x4539ab(0x22d)]=_0x536a2a[_0x4539ab(0x22d)],this[_0x4539ab(0x20f)]=this[_0x4539ab(0x275)](),this[_0x4539ab(0x1fc)]=this[_0x4539ab(0x275)](),this[_0x4539ab(0x1f9)]=this[_0x4539ab(0x20a)](_0x1d0299),this[_0x4539ab(0x21b)]=this[_0x4539ab(0x21c)](_0x1d0299),this[_0x4539ab(0x1ee)]=this[_0x4539ab(0x27c)](_0x1d0299),this[_0x4539ab(0x219)]=this[_0x4539ab(0x25c)](_0x1d0299,_0x536a2a);const _0x298bbd={'cssClasses':{'showMoreButton':Do,'showMoreBalloon':$o,'overflowContainer':Xo,'controlsButton':Fo}};this[_0x4539ab(0x1ef)]=new _0x4a18be(_0x1d0299,this[_0x4539ab(0x20f)],_0x298bbd,this[_0x4539ab(0x22d)],this),this[_0x4539ab(0x1ec)]={'buttonView':this[_0x4539ab(0x1f9)],'balloonView':this[_0x4539ab(0x21b)],'hideMethod':this[_0x4539ab(0x279)][_0x4539ab(0x21e)](this),'showMethod':this[_0x4539ab(0x210)][_0x4539ab(0x21e)](this)},this[_0x4539ab(0x211)](),this[_0x4539ab(0x243)]();}[_0x217c82(0x203)](){const _0x1499d4=_0x217c82;super[_0x1499d4(0x203)](),this[_0x1499d4(0x27b)](),this[_0x1499d4(0x1ef)][_0x1499d4(0x278)](this[_0x1499d4(0x259)]),this[_0x1499d4(0x1ef)][_0x1499d4(0x228)]();}[_0x217c82(0x265)](){const _0x391c59=_0x217c82;super[_0x391c59(0x265)](),this[_0x391c59(0x1ef)][_0x391c59(0x265)](),this[_0x391c59(0x219)][_0x391c59(0x265)]();}[_0x217c82(0x1eb)](_0x561043,_0x4b6250){const _0x3866fc=_0x217c82,_0x1ec36f=this[_0x3866fc(0x1f1)](_0x561043,_0x3866fc(0x225),!0x0,_0x4b6250);this[_0x3866fc(0x246)](_0x1ec36f,this[_0x3866fc(0x20f)]),this[_0x3866fc(0x1ef)][_0x3866fc(0x228)]();}[_0x217c82(0x20c)](_0x274f6b){const _0x3b95c6=_0x217c82;this[_0x3b95c6(0x24d)](_0x274f6b,this[_0x3b95c6(0x20f)]),this[_0x3b95c6(0x24d)](_0x274f6b,this[_0x3b95c6(0x1ef)][_0x3b95c6(0x273)]),this[_0x3b95c6(0x1ef)][_0x3b95c6(0x228)]();}[_0x217c82(0x24e)](_0x12ca48,_0x2805cf){const _0x448bc5=_0x217c82;let _0x2bf6e9=this[_0x448bc5(0x20f)][_0x448bc5(0x221)](_0x3a45e7=>_0x3a45e7['id']===_0x12ca48);_0x2bf6e9||(_0x2bf6e9=this[_0x448bc5(0x1ef)][_0x448bc5(0x273)][_0x448bc5(0x221)](_0x2a01be=>_0x2a01be['id']===_0x12ca48)),_0x2bf6e9&&(_0x2bf6e9[_0x448bc5(0x23e)]=_0x2805cf);}[_0x217c82(0x271)](_0x313556){const _0x32c6bf=_0x217c82;this[_0x32c6bf(0x1fc)][_0x32c6bf(0x247)]();for(const _0x425027 of _0x313556){const _0x45408c=this[_0x32c6bf(0x1f1)](_0x425027,_0x32c6bf(0x23c),!0x1,!0x1);this[_0x32c6bf(0x246)](_0x45408c,this[_0x32c6bf(0x1fc)]);}}[_0x217c82(0x254)](){const _0x85334d=_0x217c82;this[_0x85334d(0x20f)][_0x85334d(0x247)](),this[_0x85334d(0x1ef)][_0x85334d(0x247)]();}[_0x217c82(0x26b)](){const _0x42c4e3=_0x217c82;this[_0x42c4e3(0x1fc)][_0x42c4e3(0x247)]();}[_0x217c82(0x23f)](_0x4bc5d5,_0x4f828a,_0x5e0bc0){const _0x475e7b=_0x217c82;this[_0x475e7b(0x219)][_0x475e7b(0x23f)](_0x4bc5d5,_0x4f828a,_0x5e0bc0);}[_0x217c82(0x279)](){const _0x543acd=_0x217c82;this[_0x543acd(0x22e)](!0x1);}[_0x217c82(0x210)](){const _0x33043d=_0x217c82;this[_0x33043d(0x22e)](!0x0);}[_0x217c82(0x217)](){const _0x16f7f9=_0x217c82;this[_0x16f7f9(0x1ee)][_0x16f7f9(0x20e)](),this[_0x16f7f9(0x1f9)][_0x16f7f9(0x214)]=!0x1,this[_0x16f7f9(0x224)]&&this[_0x16f7f9(0x224)][_0x16f7f9(0x247)]();}[_0x217c82(0x241)](){const _0x234607=_0x217c82;this[_0x234607(0x1ee)][_0x234607(0x258)](),this[_0x234607(0x1f9)][_0x234607(0x214)]=!0x0;}[_0x217c82(0x1f7)]({source:_0x47af61,withBackButton:_0x224de0}){const _0x406c78=_0x217c82;this[_0x406c78(0x219)][_0x406c78(0x248)]({'source':_0x47af61,'withBackButton':_0x224de0}),this[_0x406c78(0x1f9)][_0x406c78(0x214)]=!0x0;}[_0x217c82(0x1f8)](_0x2003cb,_0x41b496,_0x4c183f,_0x1d4082){const _0x4587ce=_0x217c82;this[_0x4587ce(0x219)][_0x4587ce(0x1f8)](_0x2003cb,_0x4c183f,_0x1d4082);}[_0x217c82(0x1ea)](_0xe19ca1){const _0x5bd9a1=_0x217c82;this[_0x5bd9a1(0x219)][_0x5bd9a1(0x1ea)](_0xe19ca1),this[_0x5bd9a1(0x1f9)][_0x5bd9a1(0x214)]=!0x1;}[_0x217c82(0x255)](_0x8c3be4){const _0x5311fa=_0x217c82;this[_0x5311fa(0x24c)](this[_0x5311fa(0x21b)],this[_0x5311fa(0x1ff)],_0x8c3be4),this[_0x5311fa(0x245)](_0x8c3be4);}[_0x217c82(0x245)](_0x124ce8){const _0x3e7a94=_0x217c82,_0x27d9e2=!_0x124ce8[_0x3e7a94(0x231)][_0x3e7a94(0x250)]&&_0x124ce8[_0x3e7a94(0x231)][_0x3e7a94(0x257)],_0x22e423=_0x124ce8[_0x3e7a94(0x23d)][_0x3e7a94(0x257)],_0x9a6a4c=_0x124ce8[_0x3e7a94(0x206)][_0x3e7a94(0x257)],_0x5ec949=_0x124ce8[_0x3e7a94(0x238)][_0x3e7a94(0x269)]>0x0,_0x508b4c=_0x124ce8[_0x3e7a94(0x209)]&&_0x124ce8[_0x3e7a94(0x209)][_0x3e7a94(0x269)]>0x0;this[_0x3e7a94(0x1f9)][_0x3e7a94(0x1f3)]=_0x27d9e2||_0x22e423||_0x9a6a4c||_0x5ec949||_0x508b4c;}[_0x217c82(0x211)](){const _0x47e9cf=_0x217c82;this[_0x47e9cf(0x235)]({'tag':_0x47e9cf(0x202),'attributes':{'class':[Oo,_0x47e9cf(0x25a)]},'children':[{'tag':_0x47e9cf(0x202),'attributes':{'class':Uo},'children':this[_0x47e9cf(0x20f)]}]});}[_0x217c82(0x243)](){const _0x56bc2d=_0x217c82;this[_0x56bc2d(0x1f9)]['on'](_0x56bc2d(0x21d),()=>{const _0x392c92=_0x56bc2d;this[_0x392c92(0x227)]();});}[_0x217c82(0x20a)](_0x2d4216){const _0x2328ce=_0x217c82,_0x18bd8a=new _0x4e50af(_0x2d4216);return _0x18bd8a[_0x2328ce(0x22c)]({'label':_0x20dcc2(_0x2d4216,_0x2328ce(0x20b)),'class':Fo+'\x20'+No,'icon':_0x2d100c,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x18bd8a;}[_0x217c82(0x21c)](_0x461c3b){const _0x2dd4b1=_0x217c82;return this[_0x2dd4b1(0x1f5)](_0x461c3b,Lo);}[_0x217c82(0x27c)](_0x3e726b){const _0x174dc7=_0x217c82,_0x111130=this[_0x174dc7(0x1f5)](_0x3e726b,Mo);return this[_0x174dc7(0x234)](_0x111130,_0x3e726b),_0x111130;}[_0x217c82(0x25c)](_0x436bde,_0x240a33){const _0x253e54=_0x217c82,_0x85111c={'searchInputVisibleFrom':_0x240a33[_0x253e54(0x249)],'onBackToContext':()=>{const _0x4fcc75=_0x253e54;this[_0x4fcc75(0x210)](),this[_0x4fcc75(0x21b)][_0x4fcc75(0x208)]({'target':this[_0x4fcc75(0x1f9)][_0x4fcc75(0x259)],'limiter':this[_0x4fcc75(0x1e9)](),'positions':qo});},'onResourceSelected':(_0xe72231,_0x492d77)=>{const _0x54b6bb=_0x253e54;this[_0x54b6bb(0x251)](_0x54b6bb(0x262),{'source':_0xe72231,'resource':_0x492d77});},'onLoadSourceResources':_0x2a8a71=>{const _0x3a3663=_0x253e54;this[_0x3a3663(0x251)](_0x3a3663(0x263),_0x2a8a71);},'onBalloonClosed':()=>{const _0x38448c=_0x253e54;this[_0x38448c(0x1f9)][_0x38448c(0x214)]=!0x1;},'getLimiterElement':()=>this[_0x253e54(0x1e9)](),'getTargetElement':()=>this[_0x253e54(0x1f9)][_0x253e54(0x259)]};return new _0x5b73cc(_0x436bde,_0x240a33[_0x253e54(0x22d)],_0x85111c);}[_0x217c82(0x1e9)](){const _0x3056fe=_0x217c82;return this[_0x3056fe(0x259)]?.[_0x3056fe(0x267)]('.'+Wo)||document[_0x3056fe(0x223)];}[_0x217c82(0x1f5)](_0x3b9aba,_0x31ceb1){const _0x3393f7=_0x217c82,_0x1929b6=new _0x36b04d(_0x3b9aba);return _0x1929b6[_0x3393f7(0x261)]({'attributes':{'class':_0x31ceb1}}),this[_0x3393f7(0x22d)][_0x3393f7(0x24a)](_0x1929b6),_0x1929b6;}[_0x217c82(0x24c)](_0x1fa190,_0x44c21b,_0x32a8d5){const _0x4c8825=_0x217c82;if(_0x1fa190[_0x4c8825(0x240)][_0x4c8825(0x247)](),!_0x32a8d5[_0x4c8825(0x231)][_0x4c8825(0x250)]&&_0x32a8d5[_0x4c8825(0x231)][_0x4c8825(0x257)]){const _0x327415=this[_0x4c8825(0x22f)](_0x44c21b,{'label':_0x20dcc2(_0x44c21b,_0x4c8825(0x1ed)),'icon':_0x54248c});_0x327415['on'](_0x4c8825(0x21d),()=>{const _0x17086b=_0x4c8825;this[_0x17086b(0x251)](_0x17086b(0x230)),this[_0x17086b(0x279)]();}),_0x1fa190[_0x4c8825(0x240)][_0x4c8825(0x24a)](_0x327415);}if(_0x32a8d5[_0x4c8825(0x23d)][_0x4c8825(0x257)]){const _0x40e4ab=this[_0x4c8825(0x22f)](_0x44c21b,{'label':_0x20dcc2(_0x44c21b,_0x4c8825(0x21f)),'icon':_0x4de35c});_0x40e4ab['on'](_0x4c8825(0x21d),()=>{const _0x48633f=_0x4c8825;this[_0x48633f(0x279)](),this[_0x48633f(0x241)](),this[_0x48633f(0x1ee)][_0x48633f(0x208)]({'target':this[_0x48633f(0x1f9)][_0x48633f(0x259)],'limiter':this[_0x48633f(0x1e9)](),'positions':qo}),this[_0x48633f(0x224)][_0x48633f(0x1f2)]();}),_0x1fa190[_0x4c8825(0x240)][_0x4c8825(0x24a)](_0x40e4ab);}if(_0x32a8d5[_0x4c8825(0x206)][_0x4c8825(0x257)]){const _0x3e4ceb=new _0x4ac669(_0x44c21b);_0x3e4ceb[_0x4c8825(0x22c)]({'label':_0x20dcc2(_0x44c21b,_0x4c8825(0x260)),'icon':_0x2a0d0e,'withText':!0x0,'tooltip':!0x0,'class':Ho,'allowMultipleFiles':!0x0}),_0x3e4ceb['on'](_0x4c8825(0x21d),()=>{const _0x1f84b7=_0x4c8825;this[_0x1f84b7(0x279)]();}),_0x3e4ceb['on'](_0x4c8825(0x207),(_0x453e9f,_0x2897a1)=>{const _0x34033c=_0x4c8825;this[_0x34033c(0x251)](_0x34033c(0x270),_0x2897a1);}),_0x3e4ceb[_0x4c8825(0x25b)]=!0x0,_0x1fa190[_0x4c8825(0x240)][_0x4c8825(0x24a)](_0x3e4ceb);}for(const _0x14b97f of _0x32a8d5[_0x4c8825(0x238)]){const _0x4d0bc5=this[_0x4c8825(0x22f)](_0x44c21b,{'label':_0x14b97f[_0x4c8825(0x26d)],'icon':_0x14b97f[_0x4c8825(0x215)]||_0x446af9,'type':_0x4c8825(0x239)});_0x1fa190[_0x4c8825(0x240)][_0x4c8825(0x24a)](_0x4d0bc5),_0x4d0bc5['on'](_0x4c8825(0x21d),()=>{const _0x7889d1=_0x4c8825;this[_0x7889d1(0x279)](),this[_0x7889d1(0x1f7)]({'source':_0x14b97f,'withBackButton':!this[_0x7889d1(0x21a)]});});}for(const _0xa0648c of _0x32a8d5[_0x4c8825(0x209)]||[]){const _0xc312c9=this[_0x4c8825(0x22f)](_0x44c21b,{'label':_0xa0648c[_0x4c8825(0x26d)],'icon':_0xa0648c[_0x4c8825(0x215)]||_0x446af9,'type':_0x4c8825(0x232)});_0x1fa190[_0x4c8825(0x240)][_0x4c8825(0x24a)](_0xc312c9),_0xc312c9['on'](_0x4c8825(0x21d),()=>{const _0x5636a5=_0x4c8825;this[_0x5636a5(0x279)](),this[_0x5636a5(0x251)](_0x5636a5(0x244),_0xa0648c);});}this[_0x4c8825(0x21a)]=0x1===_0x1fa190[_0x4c8825(0x240)][_0x4c8825(0x269)],this[_0x4c8825(0x224)][_0x4c8825(0x204)]=!this[_0x4c8825(0x21a)];}[_0x217c82(0x234)](_0x49571e,_0x25058f){const _0xf780a2=_0x217c82;this[_0xf780a2(0x224)]=new _0x532c2e(_0x25058f),this[_0xf780a2(0x224)]['on'](_0xf780a2(0x233),(_0x20879f,_0x5334de)=>{const _0x2f77b8=_0xf780a2;this[_0x2f77b8(0x26a)](_0x5334de);}),this[_0xf780a2(0x224)]['on'](_0xf780a2(0x268),()=>{const _0x8a20f=_0xf780a2;this[_0x8a20f(0x217)](),this[_0x8a20f(0x21a)]||(this[_0x8a20f(0x210)](),this[_0x8a20f(0x21b)][_0x8a20f(0x208)]({'target':this[_0x8a20f(0x1f9)][_0x8a20f(0x259)],'limiter':this[_0x8a20f(0x1e9)](),'positions':qo}));}),this[_0xf780a2(0x224)]['on'](_0xf780a2(0x22b),()=>{const _0x22366e=_0xf780a2;this[_0x22366e(0x1ee)][_0x22366e(0x1fa)]&&this[_0x22366e(0x1ee)][_0x22366e(0x208)]({'target':this[_0x22366e(0x1f9)][_0x22366e(0x259)],'limiter':this[_0x22366e(0x1e9)](),'positions':qo});}),_0x49571e[_0xf780a2(0x240)][_0xf780a2(0x24a)](this[_0xf780a2(0x224)]);}[_0x217c82(0x22f)](_0x361f54,_0x5ae04b){const _0x26aa26=_0x217c82,_0x2ee7ab=_0x26aa26(0x239)===_0x5ae04b[_0x26aa26(0x213)]?new SourcesBalloonButtonView(_0x361f54):new _0x4e50af(_0x361f54);return _0x2ee7ab[_0x26aa26(0x22c)]({'label':_0x5ae04b[_0x26aa26(0x26d)],'icon':_0x5ae04b[_0x26aa26(0x215)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Ho}),_0x2ee7ab;}[_0x217c82(0x27b)](){const _0xd3d2f0=_0x217c82;this[_0xd3d2f0(0x200)](),this[_0xd3d2f0(0x205)]();}[_0x217c82(0x205)](){const _0x5f364c=_0x217c82;_0xc03999({'emitter':this[_0x5f364c(0x1ee)],'contextElements':[this[_0x5f364c(0x1ee)][_0x5f364c(0x259)]],'callback':()=>{const _0x3fff4a=_0x5f364c;this[_0x3fff4a(0x217)]();},'activator':()=>this[_0x5f364c(0x1ee)][_0x5f364c(0x1fa)]});}[_0x217c82(0x22e)](_0x54ccd6){const _0x7cd67b=_0x217c82,_0x5384cb=this[_0x7cd67b(0x1ec)];_0x5384cb[_0x7cd67b(0x253)][_0x7cd67b(0x214)]=_0x54ccd6,_0x54ccd6?_0x5384cb[_0x7cd67b(0x276)][_0x7cd67b(0x258)]():_0x5384cb[_0x7cd67b(0x276)][_0x7cd67b(0x20e)]();}[_0x217c82(0x200)](){const _0x3c8822=_0x217c82,{balloonView:_0x521874,buttonView:_0x564642,hideMethod:_0xe0dcb5}=this[_0x3c8822(0x1ec)];_0xc03999({'emitter':_0x521874,'contextElements':[_0x521874[_0x3c8822(0x259)],_0x564642[_0x3c8822(0x259)]],'callback':()=>{_0xe0dcb5();},'activator':()=>_0x564642[_0x3c8822(0x214)]&&!this[_0x3c8822(0x1ee)][_0x3c8822(0x1fa)]&&!this[_0x3c8822(0x219)][_0x3c8822(0x20d)]()});}[_0x217c82(0x1f1)](_0x1eb368,_0x142f4c,_0x4cae4b=!0x1,_0xfe5d19=!0x1){const _0x2ea3b2=_0x217c82,_0x4f56ce=_0x2ea3b2(0x23c)===_0x142f4c||!0x0===_0x1eb368[_0x2ea3b2(0x23b)],_0x5a88b7=new _0x4f11f6(this[_0x2ea3b2(0x1ff)],_0x1eb368,_0x4f56ce,_0x4cae4b,_0xfe5d19);return _0x4f56ce||_0x5a88b7['on'](_0x2ea3b2(0x226),()=>{const _0x4289f0=_0x2ea3b2;this[_0x4289f0(0x251)](_0x4289f0(0x20c),_0x5a88b7['id']);}),_0x5a88b7;}[_0x217c82(0x246)](_0x4888ce,_0xc52681){const _0x3e2962=_0x217c82;_0xc52681[_0x3e2962(0x24a)](_0x4888ce,0x0);}[_0x217c82(0x24d)](_0x2240ec,_0x4cceeb){const _0x430d79=_0x217c82,_0x1ec788=_0x4cceeb[_0x430d79(0x221)](_0x2a92fb=>_0x2a92fb['id']===_0x2240ec);_0x1ec788&&_0x4cceeb[_0x430d79(0x26f)](_0x1ec788);}[_0x217c82(0x227)](){const _0x3fb66c=_0x217c82;this[_0x3fb66c(0x1f9)][_0x3fb66c(0x214)]?this[_0x3fb66c(0x279)]():(this[_0x3fb66c(0x210)](),this[_0x3fb66c(0x21b)][_0x3fb66c(0x208)]({'target':this[_0x3fb66c(0x1f9)][_0x3fb66c(0x259)],'limiter':this[_0x3fb66c(0x1e9)](),'positions':qo}),this[_0x3fb66c(0x21a)]&&this[_0x3fb66c(0x21b)][_0x3fb66c(0x240)][_0x3fb66c(0x26e)](0x0)?.[_0x3fb66c(0x251)](_0x3fb66c(0x21d)));}[_0x217c82(0x26a)](_0x1e654e){const _0x4dcb70=_0x217c82;this[_0x4dcb70(0x224)][_0x4dcb70(0x247)](),this[_0x4dcb70(0x217)](),this[_0x4dcb70(0x251)](_0x4dcb70(0x1fe),_0x1e654e);}}export class SourcesBalloonButtonView extends _0x4e50af{[_0x217c82(0x252)];constructor(_0xe0ffcb){const _0x347a36=_0x217c82;super(_0xe0ffcb),this[_0x347a36(0x22c)]({'withText':!0x0,'role':_0x347a36(0x222)}),this[_0x347a36(0x252)]=this[_0x347a36(0x1fd)](),this[_0x347a36(0x261)]({'attributes':{'class':[jo]}});}[_0x217c82(0x203)](){const _0x34e576=_0x217c82;super[_0x34e576(0x203)](),this[_0x34e576(0x274)][_0x34e576(0x24a)](this[_0x34e576(0x252)]);}[_0x217c82(0x1fd)](){const _0xf94a3b=_0x217c82,_0x25ed35=new _0x47381a();return _0x25ed35[_0xf94a3b(0x240)]=_0x3f18fa,_0x25ed35[_0xf94a3b(0x261)]({'attributes':{'class':jo+_0xf94a3b(0x1f4)}}),_0x25ed35;}}
23
+ const _0x126b13=_0x1e4d;(function(_0x1645aa,_0x21ff50){const _0x5ba070=_0x1e4d,_0x18b90e=_0x1645aa();while(!![]){try{const _0x2490ac=parseInt(_0x5ba070(0x15a))/0x1+parseInt(_0x5ba070(0x172))/0x2+-parseInt(_0x5ba070(0x15b))/0x3*(parseInt(_0x5ba070(0x13d))/0x4)+parseInt(_0x5ba070(0x16b))/0x5+-parseInt(_0x5ba070(0x187))/0x6+-parseInt(_0x5ba070(0x14d))/0x7*(parseInt(_0x5ba070(0x1a3))/0x8)+parseInt(_0x5ba070(0x148))/0x9*(parseInt(_0x5ba070(0x10e))/0xa);if(_0x2490ac===_0x21ff50)break;else _0x18b90e['push'](_0x18b90e['shift']());}catch(_0x10901d){_0x18b90e['push'](_0x18b90e['shift']());}}}(_0x6df4,0x6d8fd));import{BalloonPanelView as _0x170763,ButtonView as _0x5af6c8,clickOutsideHandler as _0x2fca71,FileDialogButtonView as _0x48a3ba,IconView as _0x2d0952,View as _0x17e978}from'ckeditor5/src/ui.js';function _0x1e4d(_0x3cadb7,_0x32da12){const _0x6df4a4=_0x6df4();return _0x1e4d=function(_0x1e4d3a,_0x4e8254){_0x1e4d3a=_0x1e4d3a-0x10e;let _0x2eb9fa=_0x6df4a4[_0x1e4d3a];return _0x2eb9fa;},_0x1e4d(_0x3cadb7,_0x32da12);}import{IconBrowseFiles as _0x4f1fed,IconDocument as _0x4ae223,IconDocumentOutline as _0x17362d,IconDropdownArrow as _0x46553d,IconLink as _0x2cd11b,IconPaperClip as _0x51545c}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x375ef0}from'./aichatcontextitembuttonview.js';function _0x6df4(){const _0x55f6ed=['removeContextItemChip','addUrlToContext','63gvTbrC','_setBalloonPanelContent','closeSourceResourceBalloon','pin','isAnyResourceBalloonVisible','7RNtTCc','loadSourceResources','setTemplate','ck-ai-chat-controls-button','ck-ai-chat-context-controls__show-more-balloon-panel','refreshBalloon','_bindEventHandlers','menuitem','show','ck-ai-chat-context-chips-wrapper-balloon','hideUrlBalloonPanel','clearCurrentContextItems','bind','221127RtzVMr','6QrpckL','_currentContextsChips','type','tooltip','southArrowNorth','_setupAddContextBalloonClickOutsideHandler','render','source','_showSourceResourcesBalloon','northArrowSouthWest','AI_CHAT_CONTEXT_ADD_CONTEXT','clear','_addContextBalloonConfig','_handleAddContextButtonClick','ck-ai-chat','enabled','4440750KkVcAS','conversation','submitUrl','buttonView','removeContextItem','label','cancel','1182210nsRfnp','bodyCollection','element','ck-ai-chat-context-controls__add-context-button','_urlInputView','showAddContextBalloonPanel','addContextItem','set','ck-reset_all-excluded','ck-ai-chat-context-controls__balloon-button','createCollection','_getLimiterElement','_createBalloonButton','__arrow','div','_createResourcesBalloonView','_conversationContextsChips','add','body','_setupUrlBalloonClickOutsideHandler','reorganizeChips','4135824xaOSih','addFileToContext','content','ck-ai-chat-context-controls__pending-contexts','_toggleAddContextBalloon','_hasExactlyOneSource','searchInputVisibleFrom','document','focus','clearConversationContextItems','southArrowNorthEast','updateResourceState','populateSourceResourceBalloon','ck-ai-chat-context-controls__balloon-button-source','customItems','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','locale','urls','_createContextButton','showSourceResourcesBalloon','addResourceToContext','ck-ai-chat-context-controls__add-context-balloon-panel','northArrowSouthEast','extendTemplate','remove','setConversationContext','length','closest','1911824oablNY','setContextItemLoading','406690SwnJXt','setContainerElement','ck-ai-chat-controls_context_show-more-button','isHidden','find','_handleUrlSubmit','AI_CHAT_CONTEXT_FILE_LABEL','_setupTemplate','hide','_resourcesBalloonView','ck-ai-chat-context-controls','addDocumentToContext','hideAddContextBalloonPanel','AI_CHAT_CONTEXT_URL_LABEL','icon','_overflowManager','files','isVisible','balloonView','_createBaseBalloonPanel','northArrowSouth','withBackButton','customItem','_addUrlContent','done','southArrowNorthWest','isOn','overflowChips','defaultPositions','destroy','_createAddContextBalloonPanelView','get','children','_addContextBalloonPanelView','current','addContextButtonView','showUrlBalloonPanel','_setAddContextButtonEnabled','isLoading','fire','_urlBalloonPanelView','isReadOnly','_removeContextFromCollection','_addContextToCollection','_createArrowView','ck-ai-chat-context-controls__url-balloon-panel','executeCustomItemCallback','1216036jQCtzt','execute','arrowView','_createAddContextButtonView','_createUrlBalloonPanelView','_setupAllBalloonClickOutsideHandlers','isEnabled','sources','setAddContextOptions'];_0x6df4=function(){return _0x55f6ed;};return _0x6df4();}import{AIChatContextPanelUrlInputView as _0x1b616f}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x30cb17}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x32f8fa}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x2de60c}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x126b13(0x119),_0x126b13(0x188),_0x126b13(0x147),_0x126b13(0x19b),_0x126b13(0x16f),_0x126b13(0x14e),_0x126b13(0x13c)];const Lo=_0x126b13(0x118),No=_0x126b13(0x18a),Ho=_0x126b13(0x19c),Xo=_0x126b13(0x175),Do=_0x126b13(0x13b),$o=_0x126b13(0x17b),Wo=_0x126b13(0x194),Fo=_0x126b13(0x150),qo=_0x126b13(0x156),Io=_0x126b13(0x110),Vo=_0x126b13(0x151),zo=_0x126b13(0x169),Go=[_0x170763[_0x126b13(0x12a)][_0x126b13(0x164)],_0x170763[_0x126b13(0x12a)][_0x126b13(0x122)],_0x170763[_0x126b13(0x12a)][_0x126b13(0x19d)],_0x170763[_0x126b13(0x12a)][_0x126b13(0x127)],_0x170763[_0x126b13(0x12a)][_0x126b13(0x15f)],_0x170763[_0x126b13(0x12a)][_0x126b13(0x191)]];export class AIChatContextPanelView extends _0x17e978{[_0x126b13(0x131)];[_0x126b13(0x15c)]=this[_0x126b13(0x17c)]();[_0x126b13(0x182)]=this[_0x126b13(0x17c)]();[_0x126b13(0x11d)];[_0x126b13(0x12f)];[_0x126b13(0x136)];[_0x126b13(0x176)];[_0x126b13(0x117)];[_0x126b13(0x167)];[_0x126b13(0x18c)]=!0x1;[_0x126b13(0x173)];constructor(_0x37dc39,_0x48d649){const _0x66b0b7=_0x126b13;super(_0x37dc39),this[_0x66b0b7(0x173)]=_0x48d649[_0x66b0b7(0x173)],this[_0x66b0b7(0x15c)]=this[_0x66b0b7(0x17c)](),this[_0x66b0b7(0x182)]=this[_0x66b0b7(0x17c)](),this[_0x66b0b7(0x131)]=this[_0x66b0b7(0x140)](_0x37dc39),this[_0x66b0b7(0x12f)]=this[_0x66b0b7(0x12c)](_0x37dc39),this[_0x66b0b7(0x136)]=this[_0x66b0b7(0x141)](_0x37dc39),this[_0x66b0b7(0x117)]=this[_0x66b0b7(0x181)](_0x37dc39,_0x48d649);const _0x59d7f8={'cssClasses':{'showMoreButton':Io,'showMoreBalloon':Vo,'overflowContainer':qo,'controlsButton':Fo}};this[_0x66b0b7(0x11d)]=new _0x30cb17(_0x37dc39,this[_0x66b0b7(0x15c)],_0x59d7f8,this[_0x66b0b7(0x173)],this),this[_0x66b0b7(0x167)]={'buttonView':this[_0x66b0b7(0x131)],'balloonView':this[_0x66b0b7(0x12f)],'hideMethod':this[_0x66b0b7(0x11a)][_0x66b0b7(0x159)](this),'showMethod':this[_0x66b0b7(0x177)][_0x66b0b7(0x159)](this)},this[_0x66b0b7(0x115)](),this[_0x66b0b7(0x153)]();}[_0x126b13(0x161)](){const _0xde28d3=_0x126b13;super[_0xde28d3(0x161)](),this[_0xde28d3(0x142)](),this[_0xde28d3(0x11d)][_0xde28d3(0x10f)](this[_0xde28d3(0x174)]),this[_0xde28d3(0x11d)][_0xde28d3(0x186)]();}[_0x126b13(0x12b)](){const _0x27dda4=_0x126b13;super[_0x27dda4(0x12b)](),this[_0x27dda4(0x11d)][_0x27dda4(0x12b)](),this[_0x27dda4(0x117)][_0x27dda4(0x12b)]();}[_0x126b13(0x178)](_0x315691,_0x438c08){const _0x4c6973=_0x126b13,_0x4c0edf=this[_0x4c6973(0x199)](_0x315691,_0x4c6973(0x130),!0x0,_0x438c08);this[_0x4c6973(0x139)](_0x4c0edf,this[_0x4c6973(0x15c)]),this[_0x4c6973(0x11d)][_0x4c6973(0x186)]();}[_0x126b13(0x16f)](_0x317a90){const _0x59cef2=_0x126b13;this[_0x59cef2(0x138)](_0x317a90,this[_0x59cef2(0x15c)]),this[_0x59cef2(0x138)](_0x317a90,this[_0x59cef2(0x11d)][_0x59cef2(0x129)]),this[_0x59cef2(0x11d)][_0x59cef2(0x186)]();}[_0x126b13(0x1a4)](_0x3dc6a1,_0x17ea46){const _0x8affc2=_0x126b13;let _0x102b30=this[_0x8affc2(0x15c)][_0x8affc2(0x112)](_0xdd512=>_0xdd512['id']===_0x3dc6a1);_0x102b30||(_0x102b30=this[_0x8affc2(0x11d)][_0x8affc2(0x129)][_0x8affc2(0x112)](_0x89d834=>_0x89d834['id']===_0x3dc6a1)),_0x102b30&&(_0x102b30[_0x8affc2(0x134)]=_0x17ea46);}[_0x126b13(0x1a0)](_0x187dc6){const _0x234fde=_0x126b13;this[_0x234fde(0x182)][_0x234fde(0x166)]();for(const _0x36c353 of _0x187dc6){const _0x3949de=this[_0x234fde(0x199)](_0x36c353,_0x234fde(0x16c),!0x1,!0x1);this[_0x234fde(0x139)](_0x3949de,this[_0x234fde(0x182)]);}}[_0x126b13(0x158)](){const _0x2b537f=_0x126b13;this[_0x2b537f(0x15c)][_0x2b537f(0x166)](),this[_0x2b537f(0x11d)][_0x2b537f(0x166)]();}[_0x126b13(0x190)](){const _0x316c76=_0x126b13;this[_0x316c76(0x182)][_0x316c76(0x166)]();}[_0x126b13(0x192)](_0x37e7a5,_0x1acc22,_0x1d3ba7){const _0x2d5826=_0x126b13;this[_0x2d5826(0x117)][_0x2d5826(0x192)](_0x37e7a5,_0x1acc22,_0x1d3ba7);}[_0x126b13(0x11a)](){const _0x11b396=_0x126b13;this[_0x11b396(0x18b)](!0x1);}[_0x126b13(0x177)](){const _0x2c6887=_0x126b13;this[_0x2c6887(0x18b)](!0x0);}[_0x126b13(0x157)](){const _0x347e7b=_0x126b13;this[_0x347e7b(0x136)][_0x347e7b(0x116)](),this[_0x347e7b(0x131)][_0x347e7b(0x128)]=!0x1,this[_0x347e7b(0x176)]&&this[_0x347e7b(0x176)][_0x347e7b(0x166)]();}[_0x126b13(0x132)](){const _0x346dbf=_0x126b13;this[_0x346dbf(0x136)][_0x346dbf(0x155)](),this[_0x346dbf(0x131)][_0x346dbf(0x128)]=!0x0;}[_0x126b13(0x163)]({source:_0x14fd9e,withBackButton:_0x457747}){const _0x10db71=_0x126b13;this[_0x10db71(0x117)][_0x10db71(0x19a)]({'source':_0x14fd9e,'withBackButton':_0x457747}),this[_0x10db71(0x131)][_0x10db71(0x128)]=!0x0;}[_0x126b13(0x193)](_0x5249dc,_0x4a7e47,_0x38e9c4,_0x249f33){const _0x48161c=_0x126b13;this[_0x48161c(0x117)][_0x48161c(0x193)](_0x5249dc,_0x38e9c4,_0x249f33);}[_0x126b13(0x14a)](_0x506b82){const _0x4854ca=_0x126b13;this[_0x4854ca(0x117)][_0x4854ca(0x14a)](_0x506b82),this[_0x4854ca(0x131)][_0x4854ca(0x128)]=!0x1;}[_0x126b13(0x145)](_0x163de2){const _0x4dbe3b=_0x126b13;this[_0x4dbe3b(0x149)](this[_0x4dbe3b(0x12f)],this[_0x4dbe3b(0x197)],_0x163de2),this[_0x4dbe3b(0x133)](_0x163de2);}[_0x126b13(0x133)](_0x312534){const _0xa94575=_0x126b13,_0x5c4d20=!_0x312534[_0xa94575(0x18e)][_0xa94575(0x111)]&&_0x312534[_0xa94575(0x18e)][_0xa94575(0x16a)],_0x5294da=_0x312534[_0xa94575(0x198)][_0xa94575(0x16a)],_0x42cedb=_0x312534[_0xa94575(0x11e)][_0xa94575(0x16a)],_0x4e9cb6=_0x312534[_0xa94575(0x144)][_0xa94575(0x1a1)]>0x0,_0xbc4686=_0x312534[_0xa94575(0x195)]&&_0x312534[_0xa94575(0x195)][_0xa94575(0x1a1)]>0x0;this[_0xa94575(0x131)][_0xa94575(0x143)]=_0x5c4d20||_0x5294da||_0x42cedb||_0x4e9cb6||_0xbc4686;}[_0x126b13(0x115)](){const _0x273135=_0x126b13;this[_0x273135(0x14f)]({'tag':_0x273135(0x180),'attributes':{'class':[Lo,_0x273135(0x17a)]},'children':[{'tag':_0x273135(0x180),'attributes':{'class':No},'children':this[_0x273135(0x15c)]}]});}[_0x126b13(0x153)](){const _0x47f7ad=_0x126b13;this[_0x47f7ad(0x131)]['on'](_0x47f7ad(0x13e),()=>{const _0x534738=_0x47f7ad;this[_0x534738(0x168)]();});}[_0x126b13(0x140)](_0x5b607a){const _0x2e2f62=_0x126b13,_0xecad26=new _0x5af6c8(_0x5b607a);return _0xecad26[_0x2e2f62(0x179)]({'label':_0x32f8fa(_0x5b607a,_0x2e2f62(0x165)),'class':Fo+'\x20'+Xo,'icon':_0x51545c,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0xecad26;}[_0x126b13(0x12c)](_0x5df48c){const _0x221e48=_0x126b13;return this[_0x221e48(0x121)](_0x5df48c,Ho);}[_0x126b13(0x141)](_0x4eb271){const _0x1e29b7=_0x126b13,_0xdd9222=this[_0x1e29b7(0x121)](_0x4eb271,Do);return this[_0x1e29b7(0x125)](_0xdd9222,_0x4eb271),_0xdd9222;}[_0x126b13(0x181)](_0x1f2f2a,_0x154595){const _0x28e916=_0x126b13,_0x3a4603={'searchInputVisibleFrom':_0x154595[_0x28e916(0x18d)],'onBackToContext':()=>{const _0x5d02be=_0x28e916;this[_0x5d02be(0x177)](),this[_0x5d02be(0x12f)][_0x5d02be(0x14b)]({'target':this[_0x5d02be(0x131)][_0x5d02be(0x174)],'limiter':this[_0x5d02be(0x17d)](),'positions':Go});},'onResourceSelected':(_0x2041dd,_0x585f45)=>{const _0x24d4c1=_0x28e916;this[_0x24d4c1(0x135)](_0x24d4c1(0x19b),{'source':_0x2041dd,'resource':_0x585f45});},'onLoadSourceResources':_0x84a1c9=>{const _0x2f40e5=_0x28e916;this[_0x2f40e5(0x135)](_0x2f40e5(0x14e),_0x84a1c9);},'onBalloonClosed':()=>{const _0x264e13=_0x28e916;this[_0x264e13(0x131)][_0x264e13(0x128)]=!0x1;},'getLimiterElement':()=>this[_0x28e916(0x17d)](),'getTargetElement':()=>this[_0x28e916(0x131)][_0x28e916(0x174)]};return new _0x2de60c(_0x1f2f2a,_0x154595[_0x28e916(0x173)],_0x3a4603);}[_0x126b13(0x17d)](){const _0x1df66a=_0x126b13;return this[_0x1df66a(0x174)]?.[_0x1df66a(0x1a2)]('.'+zo)||document[_0x1df66a(0x184)];}[_0x126b13(0x121)](_0x55bbfe,_0x497236){const _0x390a95=_0x126b13,_0x4df60a=new _0x170763(_0x55bbfe);return _0x4df60a[_0x390a95(0x19e)]({'attributes':{'class':_0x497236}}),this[_0x390a95(0x173)][_0x390a95(0x183)](_0x4df60a),_0x4df60a;}[_0x126b13(0x149)](_0x1de692,_0x660144,_0x5aaf57){const _0x3b958f=_0x126b13;if(_0x1de692[_0x3b958f(0x189)][_0x3b958f(0x166)](),!_0x5aaf57[_0x3b958f(0x18e)][_0x3b958f(0x111)]&&_0x5aaf57[_0x3b958f(0x18e)][_0x3b958f(0x16a)]){const _0x148848=this[_0x3b958f(0x17e)](_0x660144,{'label':_0x32f8fa(_0x660144,_0x3b958f(0x196)),'icon':_0x4ae223});_0x148848['on'](_0x3b958f(0x13e),()=>{const _0x476d54=_0x3b958f;this[_0x476d54(0x135)](_0x476d54(0x119)),this[_0x476d54(0x11a)]();}),_0x1de692[_0x3b958f(0x189)][_0x3b958f(0x183)](_0x148848);}if(_0x5aaf57[_0x3b958f(0x198)][_0x3b958f(0x16a)]){const _0xbfcf45=this[_0x3b958f(0x17e)](_0x660144,{'label':_0x32f8fa(_0x660144,_0x3b958f(0x11b)),'icon':_0x2cd11b});_0xbfcf45['on'](_0x3b958f(0x13e),()=>{const _0x4967a5=_0x3b958f;this[_0x4967a5(0x11a)](),this[_0x4967a5(0x132)](),this[_0x4967a5(0x136)][_0x4967a5(0x14b)]({'target':this[_0x4967a5(0x131)][_0x4967a5(0x174)],'limiter':this[_0x4967a5(0x17d)](),'positions':Go}),this[_0x4967a5(0x176)][_0x4967a5(0x18f)]();}),_0x1de692[_0x3b958f(0x189)][_0x3b958f(0x183)](_0xbfcf45);}if(_0x5aaf57[_0x3b958f(0x11e)][_0x3b958f(0x16a)]){const _0xd843b0=new _0x48a3ba(_0x660144);_0xd843b0[_0x3b958f(0x179)]({'label':_0x32f8fa(_0x660144,_0x3b958f(0x114)),'icon':_0x4f1fed,'withText':!0x0,'tooltip':!0x0,'class':$o,'allowMultipleFiles':!0x0}),_0xd843b0['on'](_0x3b958f(0x13e),()=>{const _0x42c817=_0x3b958f;this[_0x42c817(0x11a)]();}),_0xd843b0['on'](_0x3b958f(0x126),(_0x472145,_0x1fe646)=>{const _0x270983=_0x3b958f;this[_0x270983(0x135)](_0x270983(0x188),_0x1fe646);}),_0xd843b0[_0x3b958f(0x15e)]=!0x0,_0x1de692[_0x3b958f(0x189)][_0x3b958f(0x183)](_0xd843b0);}for(const _0x5890c2 of _0x5aaf57[_0x3b958f(0x144)]){const _0x12c945=this[_0x3b958f(0x17e)](_0x660144,{'label':_0x5890c2[_0x3b958f(0x170)],'icon':_0x5890c2[_0x3b958f(0x11c)]||_0x17362d,'type':_0x3b958f(0x162)});_0x1de692[_0x3b958f(0x189)][_0x3b958f(0x183)](_0x12c945),_0x12c945['on'](_0x3b958f(0x13e),()=>{const _0x149536=_0x3b958f;this[_0x149536(0x11a)](),this[_0x149536(0x163)]({'source':_0x5890c2,'withBackButton':!this[_0x149536(0x18c)]});});}for(const _0x4603b3 of _0x5aaf57[_0x3b958f(0x195)]||[]){const _0x4791b2=this[_0x3b958f(0x17e)](_0x660144,{'label':_0x4603b3[_0x3b958f(0x170)],'icon':_0x4603b3[_0x3b958f(0x11c)]||_0x17362d,'type':_0x3b958f(0x124)});_0x1de692[_0x3b958f(0x189)][_0x3b958f(0x183)](_0x4791b2),_0x4791b2['on'](_0x3b958f(0x13e),()=>{const _0x4a1b2d=_0x3b958f;this[_0x4a1b2d(0x11a)](),this[_0x4a1b2d(0x135)](_0x4a1b2d(0x13c),_0x4603b3);});}this[_0x3b958f(0x18c)]=0x1===_0x1de692[_0x3b958f(0x189)][_0x3b958f(0x1a1)],this[_0x3b958f(0x176)][_0x3b958f(0x123)]=!this[_0x3b958f(0x18c)];}[_0x126b13(0x125)](_0x51fe63,_0xab4245){const _0x3fa368=_0x126b13;this[_0x3fa368(0x176)]=new _0x1b616f(_0xab4245),this[_0x3fa368(0x176)]['on'](_0x3fa368(0x16d),(_0x5620e4,_0x1c2070)=>{const _0x7b7576=_0x3fa368;this[_0x7b7576(0x113)](_0x1c2070);}),this[_0x3fa368(0x176)]['on'](_0x3fa368(0x171),()=>{const _0x3be3ed=_0x3fa368;this[_0x3be3ed(0x157)](),this[_0x3be3ed(0x18c)]||(this[_0x3be3ed(0x177)](),this[_0x3be3ed(0x12f)][_0x3be3ed(0x14b)]({'target':this[_0x3be3ed(0x131)][_0x3be3ed(0x174)],'limiter':this[_0x3be3ed(0x17d)](),'positions':Go}));}),this[_0x3fa368(0x176)]['on'](_0x3fa368(0x152),()=>{const _0x17346b=_0x3fa368;this[_0x17346b(0x136)][_0x17346b(0x11f)]&&this[_0x17346b(0x136)][_0x17346b(0x14b)]({'target':this[_0x17346b(0x131)][_0x17346b(0x174)],'limiter':this[_0x17346b(0x17d)](),'positions':Go});}),_0x51fe63[_0x3fa368(0x189)][_0x3fa368(0x183)](this[_0x3fa368(0x176)]);}[_0x126b13(0x17e)](_0x5bfc61,_0x1bf80e){const _0x436420=_0x126b13,_0x24d058=_0x436420(0x162)===_0x1bf80e[_0x436420(0x15d)]?new SourcesBalloonButtonView(_0x5bfc61):new _0x5af6c8(_0x5bfc61);return _0x24d058[_0x436420(0x179)]({'label':_0x1bf80e[_0x436420(0x170)],'icon':_0x1bf80e[_0x436420(0x11c)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':$o}),_0x24d058;}[_0x126b13(0x142)](){const _0x1fa372=_0x126b13;this[_0x1fa372(0x160)](),this[_0x1fa372(0x185)]();}[_0x126b13(0x185)](){const _0x2a8247=_0x126b13;_0x2fca71({'emitter':this[_0x2a8247(0x136)],'contextElements':[this[_0x2a8247(0x136)][_0x2a8247(0x174)]],'callback':()=>{const _0x48e290=_0x2a8247;this[_0x48e290(0x157)]();},'activator':()=>this[_0x2a8247(0x136)][_0x2a8247(0x11f)]});}[_0x126b13(0x18b)](_0x5a5752){const _0x495bfd=_0x126b13,_0x4e1e0f=this[_0x495bfd(0x167)];_0x4e1e0f[_0x495bfd(0x16e)][_0x495bfd(0x128)]=_0x5a5752,_0x5a5752?_0x4e1e0f[_0x495bfd(0x120)][_0x495bfd(0x155)]():_0x4e1e0f[_0x495bfd(0x120)][_0x495bfd(0x116)]();}[_0x126b13(0x160)](){const _0x545fa6=_0x126b13,{balloonView:_0x2170fb,buttonView:_0x18c807,hideMethod:_0x11493b}=this[_0x545fa6(0x167)];_0x2fca71({'emitter':_0x2170fb,'contextElements':[_0x2170fb[_0x545fa6(0x174)],_0x18c807[_0x545fa6(0x174)]],'callback':()=>{_0x11493b();},'activator':()=>_0x18c807[_0x545fa6(0x128)]&&!this[_0x545fa6(0x136)][_0x545fa6(0x11f)]&&!this[_0x545fa6(0x117)][_0x545fa6(0x14c)]()});}[_0x126b13(0x199)](_0x5c2923,_0x4209fb,_0x42bcd7=!0x1,_0x2de44e=!0x1){const _0x83a67f=_0x126b13,_0x1197ec=_0x83a67f(0x16c)===_0x4209fb||!0x0===_0x5c2923[_0x83a67f(0x137)],_0x14134c=new _0x375ef0(this[_0x83a67f(0x197)],_0x5c2923,_0x1197ec,_0x42bcd7,_0x2de44e);return _0x1197ec||_0x14134c['on'](_0x83a67f(0x146),()=>{const _0x1877af=_0x83a67f;this[_0x1877af(0x135)](_0x1877af(0x16f),_0x14134c['id']);}),_0x14134c;}[_0x126b13(0x139)](_0x4549ae,_0x2a1dae){const _0x3a002d=_0x126b13;_0x2a1dae[_0x3a002d(0x183)](_0x4549ae,0x0);}[_0x126b13(0x138)](_0x17b869,_0x547d2a){const _0x1030a3=_0x126b13,_0x522a13=_0x547d2a[_0x1030a3(0x112)](_0x54ac73=>_0x54ac73['id']===_0x17b869);_0x522a13&&_0x547d2a[_0x1030a3(0x19f)](_0x522a13);}[_0x126b13(0x168)](){const _0x7b6f33=_0x126b13;this[_0x7b6f33(0x131)][_0x7b6f33(0x128)]?this[_0x7b6f33(0x11a)]():(this[_0x7b6f33(0x177)](),this[_0x7b6f33(0x12f)][_0x7b6f33(0x14b)]({'target':this[_0x7b6f33(0x131)][_0x7b6f33(0x174)],'limiter':this[_0x7b6f33(0x17d)](),'positions':Go}),this[_0x7b6f33(0x18c)]&&this[_0x7b6f33(0x12f)][_0x7b6f33(0x189)][_0x7b6f33(0x12d)](0x0)?.[_0x7b6f33(0x135)](_0x7b6f33(0x13e)));}[_0x126b13(0x113)](_0x43a05f){const _0x4604f4=_0x126b13;this[_0x4604f4(0x176)][_0x4604f4(0x166)](),this[_0x4604f4(0x157)](),this[_0x4604f4(0x135)](_0x4604f4(0x147),_0x43a05f);}}export class SourcesBalloonButtonView extends _0x5af6c8{[_0x126b13(0x13f)];constructor(_0x1cb759){const _0x1dda3c=_0x126b13;super(_0x1cb759),this[_0x1dda3c(0x179)]({'withText':!0x0,'role':_0x1dda3c(0x154)}),this[_0x1dda3c(0x13f)]=this[_0x1dda3c(0x13a)](),this[_0x1dda3c(0x19e)]({'attributes':{'class':[Wo]}});}[_0x126b13(0x161)](){const _0x419bce=_0x126b13;super[_0x419bce(0x161)](),this[_0x419bce(0x12e)][_0x419bce(0x183)](this[_0x419bce(0x13f)]);}[_0x126b13(0x13a)](){const _0x32a232=_0x126b13,_0xdbae7f=new _0x2d0952();return _0xdbae7f[_0x32a232(0x189)]=_0x46553d,_0xdbae7f[_0x32a232(0x19e)]({'attributes':{'class':Wo+_0x32a232(0x17f)}}),_0xdbae7f;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x49a4c0=_0x2f06;function _0x2f06(_0x1c5fdc,_0x4fe98e){const _0x1c2c9f=_0x1c2c();return _0x2f06=function(_0x2f06c1,_0x102a5f){_0x2f06c1=_0x2f06c1-0x1a8;let _0x5e5f03=_0x1c2c9f[_0x2f06c1];return _0x5e5f03;},_0x2f06(_0x1c5fdc,_0x4fe98e);}(function(_0x4cf656,_0x986da0){const _0x35ea63=_0x2f06,_0x54ee37=_0x4cf656();while(!![]){try{const _0x2b0864=-parseInt(_0x35ea63(0x1b4))/0x1*(parseInt(_0x35ea63(0x1c3))/0x2)+parseInt(_0x35ea63(0x1c0))/0x3+-parseInt(_0x35ea63(0x1b9))/0x4*(-parseInt(_0x35ea63(0x1b5))/0x5)+-parseInt(_0x35ea63(0x1be))/0x6+-parseInt(_0x35ea63(0x1c5))/0x7*(-parseInt(_0x35ea63(0x1bc))/0x8)+-parseInt(_0x35ea63(0x1ba))/0x9*(parseInt(_0x35ea63(0x1bf))/0xa)+-parseInt(_0x35ea63(0x1ad))/0xb;if(_0x2b0864===_0x986da0)break;else _0x54ee37['push'](_0x54ee37['shift']());}catch(_0x5cba8c){_0x54ee37['push'](_0x54ee37['shift']());}}}(_0x1c2c,0x61ad5));import{ButtonView as _0x41ef58,View as _0xb8fcd}from'ckeditor5/src/ui.js';function _0x1c2c(){const _0x9355a5=['_createLoaderView','ck-ai-chat-controls-loader-wrapper','_loaderView','4069xJGnJB','40JMJNzZ','AI_CHAT_IS_WRITING','fire','locale','371064sHofQi','47367GHXixn','div','184otELHV','ck-reset_all','4390554wYyaHB','730hTVllF','2049453UIkzmE','setTemplate','_createCancelButtonView','180kXSvrN','abortPromptStream','172851nMVUMY','ck-ai-chat-controls-loader','_cancelButtonView','ck-ai-chat-controls-loader-icon','ck-ai-chat-controls-loader-icon-dot','set','1220615GIgqBD','execute','ck-ai-button-secondary\x20ck-ai-button-stop-generating','AI_CHAT_STOP_GENERATING'];_0x1c2c=function(){return _0x9355a5;};return _0x1c2c();}import{IconStop as _0x52ebe9}from'ckeditor5/src/icons.js';import{getTranslation as _0x5ddbe2}from'../../../aicore/utils/common-translations.js';export class AIChatControlsLoaderView extends _0xb8fcd{[_0x49a4c0(0x1a9)];[_0x49a4c0(0x1b3)];constructor(_0xfc7db8){const _0x22dfd4=_0x49a4c0;super(_0xfc7db8),this[_0x22dfd4(0x1a9)]=this[_0x22dfd4(0x1c2)](),this[_0x22dfd4(0x1b3)]=this[_0x22dfd4(0x1b1)](),this[_0x22dfd4(0x1c1)]({'tag':_0x22dfd4(0x1bb),'attributes':{'class':['ck',_0x22dfd4(0x1b2),_0x22dfd4(0x1bd)]},'children':[this[_0x22dfd4(0x1b3)],this[_0x22dfd4(0x1a9)]]});}[_0x49a4c0(0x1c2)](){const _0x3b1cbe=_0x49a4c0,_0x557243=new _0x41ef58(this[_0x3b1cbe(0x1b8)]);return _0x557243[_0x3b1cbe(0x1ac)]({'label':_0x5ddbe2(this[_0x3b1cbe(0x1b8)],_0x3b1cbe(0x1b0)),'withText':!0x0,'class':_0x3b1cbe(0x1af),'icon':_0x52ebe9}),_0x557243['on'](_0x3b1cbe(0x1ae),()=>{const _0x188dcc=_0x3b1cbe;this[_0x188dcc(0x1b7)](_0x188dcc(0x1c4));}),_0x557243;}[_0x49a4c0(0x1b1)](){const _0x177954=_0x49a4c0,_0x22b52a=new _0xb8fcd(this[_0x177954(0x1b8)]);return _0x22b52a[_0x177954(0x1c1)]({'tag':_0x177954(0x1bb),'attributes':{'class':[_0x177954(0x1a8)]},'children':[{'tag':_0x177954(0x1bb),'attributes':{'class':[_0x177954(0x1aa)]},'children':[{'tag':_0x177954(0x1bb),'attributes':{'class':[_0x177954(0x1ab)]}},{'tag':_0x177954(0x1bb),'attributes':{'class':[_0x177954(0x1ab)]}},{'tag':_0x177954(0x1bb),'attributes':{'class':[_0x177954(0x1ab)]}}]},{'text':_0x5ddbe2(this[_0x177954(0x1b8)],_0x177954(0x1b6))}]}),_0x22b52a;}}
23
+ const _0x4212bf=_0x5f0c;(function(_0x4a78f,_0x95b30e){const _0x12c57d=_0x5f0c,_0x4ef234=_0x4a78f();while(!![]){try{const _0x33780e=parseInt(_0x12c57d(0x104))/0x1+parseInt(_0x12c57d(0x10e))/0x2*(parseInt(_0x12c57d(0x112))/0x3)+-parseInt(_0x12c57d(0xfc))/0x4*(parseInt(_0x12c57d(0xf7))/0x5)+parseInt(_0x12c57d(0x110))/0x6+parseInt(_0x12c57d(0x100))/0x7*(-parseInt(_0x12c57d(0x10c))/0x8)+parseInt(_0x12c57d(0x10a))/0x9*(-parseInt(_0x12c57d(0xfb))/0xa)+parseInt(_0x12c57d(0x105))/0xb;if(_0x33780e===_0x95b30e)break;else _0x4ef234['push'](_0x4ef234['shift']());}catch(_0x59d61f){_0x4ef234['push'](_0x4ef234['shift']());}}}(_0x1421,0x681f2));import{ButtonView as _0x4d496b,View as _0x147691}from'ckeditor5/src/ui.js';import{IconStop as _0x5bb2a9}from'ckeditor5/src/icons.js';import{getTranslation as _0x39d3f7}from'../../../aicore/utils/common-translations.js';export class AIChatControlsLoaderView extends _0x147691{[_0x4212bf(0x106)];[_0x4212bf(0x109)];constructor(_0x39df8a){const _0x21db7d=_0x4212bf;super(_0x39df8a),this[_0x21db7d(0x106)]=this[_0x21db7d(0x103)](),this[_0x21db7d(0x109)]=this[_0x21db7d(0x10d)](),this[_0x21db7d(0xfe)]({'tag':_0x21db7d(0x101),'attributes':{'class':['ck',_0x21db7d(0xfa),_0x21db7d(0xf8)]},'children':[this[_0x21db7d(0x109)],this[_0x21db7d(0x106)]]});}[_0x4212bf(0x103)](){const _0x3e6ca8=_0x4212bf,_0x52d20e=new _0x4d496b(this[_0x3e6ca8(0x111)]);return _0x52d20e[_0x3e6ca8(0x108)]({'label':_0x39d3f7(this[_0x3e6ca8(0x111)],_0x3e6ca8(0xf6)),'withText':!0x0,'class':_0x3e6ca8(0x113),'icon':_0x5bb2a9}),_0x52d20e['on'](_0x3e6ca8(0xff),()=>{const _0x36fe45=_0x3e6ca8;this[_0x36fe45(0xfd)](_0x36fe45(0x102));}),_0x52d20e;}[_0x4212bf(0x10d)](){const _0x1b430f=_0x4212bf,_0x5b4dac=new _0x147691(this[_0x1b430f(0x111)]);return _0x5b4dac[_0x1b430f(0xfe)]({'tag':_0x1b430f(0x101),'attributes':{'class':[_0x1b430f(0x107)]},'children':[{'tag':_0x1b430f(0x101),'attributes':{'class':[_0x1b430f(0xf9)]},'children':[{'tag':_0x1b430f(0x101),'attributes':{'class':[_0x1b430f(0x10b)]}},{'tag':_0x1b430f(0x101),'attributes':{'class':[_0x1b430f(0x10b)]}},{'tag':_0x1b430f(0x101),'attributes':{'class':[_0x1b430f(0x10b)]}}]},{'text':_0x39d3f7(this[_0x1b430f(0x111)],_0x1b430f(0x10f))}]}),_0x5b4dac;}}function _0x5f0c(_0x19205c,_0x126ca1){const _0x1421e6=_0x1421();return _0x5f0c=function(_0x5f0c98,_0x1486d2){_0x5f0c98=_0x5f0c98-0xf6;let _0x55adf4=_0x1421e6[_0x5f0c98];return _0x55adf4;},_0x5f0c(_0x19205c,_0x126ca1);}function _0x1421(){const _0x4b1daa=['fire','setTemplate','execute','891709ptuHhq','div','abortPromptStream','_createCancelButtonView','628468HYMoqM','8002115XYEndN','_cancelButtonView','ck-ai-chat-controls-loader','set','_loaderView','135CIGtsG','ck-ai-chat-controls-loader-icon-dot','8Mcnwis','_createLoaderView','4vGlcxt','AI_CHAT_IS_WRITING','669534VJnGqI','locale','453555vuiQVH','ck-ai-button-secondary\x20ck-ai-button-stop-generating','AI_CHAT_STOP_GENERATING','2076540ZvBvcd','ck-reset_all','ck-ai-chat-controls-loader-icon','ck-ai-chat-controls-loader-wrapper','533810vgAebB','4bXukhz'];_0x1421=function(){return _0x4b1daa;};return _0x1421();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1c71f6=_0x54ea;(function(_0xcf876d,_0x23047b){const _0x921e30=_0x54ea,_0x12a256=_0xcf876d();while(!![]){try{const _0x461c11=-parseInt(_0x921e30(0xc8))/0x1*(-parseInt(_0x921e30(0xe3))/0x2)+parseInt(_0x921e30(0xdc))/0x3*(-parseInt(_0x921e30(0xb6))/0x4)+parseInt(_0x921e30(0xc3))/0x5+parseInt(_0x921e30(0xb3))/0x6+-parseInt(_0x921e30(0xcb))/0x7+-parseInt(_0x921e30(0x9f))/0x8*(-parseInt(_0x921e30(0xff))/0x9)+-parseInt(_0x921e30(0xd4))/0xa;if(_0x461c11===_0x23047b)break;else _0x12a256['push'](_0x12a256['shift']());}catch(_0x351780){_0x12a256['push'](_0x12a256['shift']());}}}(_0x5a9c,0x31500));import{Collection as _0x4ed9f1}from'ckeditor5/src/utils.js';import{IconAI as _0x5032f6,IconBulb as _0x161bfa,IconWeb as _0x2e0bf3}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x3b1adf,ButtonLabelView as _0x531149,ButtonView as _0x23af47,createDropdown as _0x8910c6,IconView as _0x1d8823,UIModel as _0x53e80d,View as _0x4d4a85}from'ckeditor5/src/ui.js';import{getTranslation as _0x45f806}from'../../../aicore/utils/common-translations.js';const Jo=_0x1c71f6(0xd0),Fo=_0x1c71f6(0xf3),Ko=_0x1c71f6(0xa4),Qo=_0x1c71f6(0xe5),Zo=_0x1c71f6(0xa7),tl=_0x1c71f6(0xaa),el=_0x1c71f6(0xfb),il=_0x1c71f6(0xbe),sl='n';function _0x5a9c(){const _0x256358=['button','3aXwyvf','setWebSearch','selectModel','label','ck-ai-chat-controls__model-name','ck-hidden','_modelNameView','2282ujiIKZ','execute','ck-ai-button-tertiary','text','addMany','hidden','setReasoning','AI_CHAT_COMMANDS','_modelSelectionDropdown','span','description','source','AI_CHAT_DISABLE_REASONING','Commands\x20are\x20not\x20implemented\x20yet.','AI_CHAT_CAPABILITIES_YES','setModelList','ck-ai-chat-controls-button','bind','name','ck-button__label','reasoningActive','bindTemplate','_webSearchButton','buttonView','ck-ai-chat-controls__model-selection__item-description','toggleReasoning','_commandsButton','AI_CHAT_CAPABILITIES_NO','3501CZWfme','isVisible','7048VuPZGF','setModel','selector','model','toggleWebSearch','ck-ai-chat-controls-button--commands','isOn','isEnabled','ck-ai-chat-controls__model-selection','extendTemplate','listenTo','ck-ai-chat-controls__model-selection__item-name','set','AI_CHAT_ENABLE_REASONING','content','log','enabled','_createReasoningButton','_modelSelectionDropdownItems','_createModelSelectionDropdown','891300gXrRoy','menuitemradio','tooltip','1377108QBzdnS','_createWebSearchButton','style','AI_CHAT_SEARCH_WEB','webSearch','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','div','activeModelName','ck-ai-chat-controls__model-selection__item-capabilities','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','disableModelSelector','_createModelNameView','add','1870515voudfF','fire','_reasoningButton','length','AI_CHAT_DISABLE_WEB_SEARCH','277mNCsVb','_createCommandsButton','_getCapabilityParts','1403808oaxvbD','capabilities','clear','createCollection','AI_CHAT_ENABLE_WEB_SEARCH','ck-ai-chat__prompt-capabilities','modelDisplayMode','AI_CHAT_REASONING','modelSelectorEnabled','4346140EJtIXS','locale','enableModelSelector','setTemplate','activeModelId','reasoning','webSearchActive'];_0x5a9c=function(){return _0x256358;};return _0x5a9c();}export class AIChatPromptCapabilitiesView extends _0x4d4a85{[_0x1c71f6(0xf9)];[_0x1c71f6(0xc5)];[_0x1c71f6(0xfd)];[_0x1c71f6(0xeb)];[_0x1c71f6(0xb1)];[_0x1c71f6(0xe2)];constructor(_0x169efb){const _0x4f3dba=_0x1c71f6;super(_0x169efb),this[_0x4f3dba(0xab)](_0x4f3dba(0xda),!0x1),this[_0x4f3dba(0xab)](_0x4f3dba(0xf7),!0x1),this[_0x4f3dba(0xab)](_0x4f3dba(0xd1),_0x4f3dba(0xa1)),this[_0x4f3dba(0xab)](_0x4f3dba(0xd3),!0x0),this[_0x4f3dba(0xab)](_0x4f3dba(0xd8),null),this[_0x4f3dba(0xab)](_0x4f3dba(0xbd),null),this[_0x4f3dba(0xeb)]=this[_0x4f3dba(0xb2)](),this[_0x4f3dba(0xe2)]=this[_0x4f3dba(0xc1)](),this[_0x4f3dba(0xf9)]=this[_0x4f3dba(0xb7)](),this[_0x4f3dba(0xc5)]=this[_0x4f3dba(0xb0)](),this[_0x4f3dba(0xfd)]=this[_0x4f3dba(0xc9)](),this[_0x4f3dba(0xeb)][_0x4f3dba(0xfa)][_0x4f3dba(0xf4)](_0x4f3dba(0x100))['to'](this,_0x4f3dba(0xd1),_0x3c2b58=>_0x4f3dba(0xa1)===_0x3c2b58),this[_0x4f3dba(0xeb)][_0x4f3dba(0xfa)][_0x4f3dba(0xf4)](_0x4f3dba(0xb5))['to'](this,_0x4f3dba(0xd3),_0x54ff42=>_0x54ff42?this[_0x4f3dba(0xeb)][_0x4f3dba(0xfa)][_0x4f3dba(0xdf)]:_0x45f806(this[_0x4f3dba(0xd5)],_0x4f3dba(0xbf))),this[_0x4f3dba(0xeb)][_0x4f3dba(0xf4)](_0x4f3dba(0xa6))['to'](this,_0x4f3dba(0xd3),_0x58ddba=>_0x58ddba),this[_0x4f3dba(0xf9)][_0x4f3dba(0xf4)](_0x4f3dba(0xa5))['to'](this,_0x4f3dba(0xda),_0x3a1d37=>_0x3a1d37),this[_0x4f3dba(0xf9)][_0x4f3dba(0xf4)](_0x4f3dba(0xb5))['to'](this,_0x4f3dba(0xda),_0x3cd4aa=>_0x45f806(this[_0x4f3dba(0xd5)],_0x3cd4aa?_0x4f3dba(0xc7):_0x4f3dba(0xcf))),this[_0x4f3dba(0xc5)][_0x4f3dba(0xf4)](_0x4f3dba(0xa5))['to'](this,_0x4f3dba(0xf7),_0xc7ed5=>_0xc7ed5),this[_0x4f3dba(0xc5)][_0x4f3dba(0xf4)](_0x4f3dba(0xb5))['to'](this,_0x4f3dba(0xf7),_0x3a604e=>_0x45f806(this[_0x4f3dba(0xd5)],_0x3a604e?_0x4f3dba(0xef):_0x4f3dba(0xac))),this[_0x4f3dba(0xd7)]({'tag':_0x4f3dba(0xbc),'attributes':{'class':[Jo]},'children':[this[_0x4f3dba(0xeb)],this[_0x4f3dba(0xe2)],this[_0x4f3dba(0xf9)],this[_0x4f3dba(0xc5)],this[_0x4f3dba(0xfd)]]}),this[_0x4f3dba(0xb1)]=new _0x4ed9f1(),_0x3b1adf(this[_0x4f3dba(0xeb)],this[_0x4f3dba(0xb1)]);}[_0x1c71f6(0xf2)](_0x3dc0bc,_0x47319f){const _0x41ef0a=_0x1c71f6;if(_0x47319f)this[_0x41ef0a(0xab)](_0x41ef0a(0xd1),_0x41ef0a(0xe8));else{const _0x3c1439=0x1===_0x3dc0bc[_0x41ef0a(0xc6)];this[_0x41ef0a(0xab)](_0x41ef0a(0xd1),_0x3c1439?_0x41ef0a(0xf5):_0x41ef0a(0xa1));}if(this[_0x41ef0a(0xb1)][_0x41ef0a(0xcd)](),_0x3dc0bc?.[_0x41ef0a(0xc6)])for(const _0x529b4c of _0x3dc0bc){const _0x1f6185=new _0x53e80d({'label':_0x529b4c[_0x41ef0a(0xf5)],'withText':!0x0,'role':_0x41ef0a(0xb4),'id':_0x529b4c['id'],'model':_0x529b4c});_0x1f6185[_0x41ef0a(0xf4)](_0x41ef0a(0xa5))['to'](this,_0x41ef0a(0xd8),_0x5d19b7=>_0x5d19b7===_0x529b4c['id']),this[_0x41ef0a(0xb1)][_0x41ef0a(0xc2)]({'type':_0x41ef0a(0xdb),'model':_0x1f6185,'labelView':new ko(this[_0x41ef0a(0xd5)],_0x529b4c)});}}[_0x1c71f6(0xdd)](_0x41f82b){const _0x22b1a7=_0x1c71f6;this[_0x22b1a7(0xab)](_0x22b1a7(0xda),_0x41f82b);}[_0x1c71f6(0xe9)](_0x34b9af){const _0x4aed25=_0x1c71f6;this[_0x4aed25(0xab)](_0x4aed25(0xf7),_0x34b9af);}[_0x1c71f6(0xa0)](_0x195e86){const _0x4fd6aa=_0x1c71f6;if(!_0x195e86)return;this[_0x4fd6aa(0xd8)]=_0x195e86['id'],this[_0x4fd6aa(0xbd)]=_0x195e86[_0x4fd6aa(0xf5)]||_0x195e86['id'],this[_0x4fd6aa(0xeb)][_0x4fd6aa(0xfa)][_0x4fd6aa(0xab)](_0x4fd6aa(0xdf),_0x195e86[_0x4fd6aa(0xf5)]),this[_0x4fd6aa(0xeb)][_0x4fd6aa(0xfa)][_0x4fd6aa(0xab)](_0x4fd6aa(0xb5),_0x195e86[_0x4fd6aa(0xf5)]);const _0x243543=_0x195e86[_0x4fd6aa(0xcc)][_0x4fd6aa(0xba)]?.[_0x4fd6aa(0xaf)]??!0x1;this[_0x4fd6aa(0xab)](_0x4fd6aa(0xda),!0x1),this[_0x4fd6aa(0xf9)][_0x4fd6aa(0xab)](_0x4fd6aa(0xa5),!0x1),this[_0x4fd6aa(0xf9)][_0x4fd6aa(0xab)](_0x4fd6aa(0xa6),_0x243543),this[_0x4fd6aa(0xf9)][_0x4fd6aa(0xab)](_0x4fd6aa(0x100),_0x243543);const _0x26d297=_0x195e86[_0x4fd6aa(0xcc)][_0x4fd6aa(0xd9)]?.[_0x4fd6aa(0xaf)]??!0x1;this[_0x4fd6aa(0xab)](_0x4fd6aa(0xf7),!0x1),this[_0x4fd6aa(0xc5)][_0x4fd6aa(0xab)](_0x4fd6aa(0xa5),!0x1),this[_0x4fd6aa(0xc5)][_0x4fd6aa(0xab)](_0x4fd6aa(0xa6),_0x26d297),this[_0x4fd6aa(0xc5)][_0x4fd6aa(0xab)](_0x4fd6aa(0x100),_0x26d297);}[_0x1c71f6(0xd6)](){const _0x31bf62=_0x1c71f6;this[_0x31bf62(0xab)](_0x31bf62(0xd3),!0x0);}[_0x1c71f6(0xc0)](_0x2bac89){const _0x264af6=_0x1c71f6;this[_0x264af6(0xab)](_0x264af6(0xd3),!0x1),_0x2bac89&&this[_0x264af6(0xab)](_0x264af6(0xd1),_0x264af6(0xe8));}[_0x1c71f6(0xb7)](){const _0x4b4bbe=_0x1c71f6,_0x236c11=new _0x23af47();return _0x236c11[_0x4b4bbe(0xab)]({'label':_0x45f806(this[_0x4b4bbe(0xd5)],_0x4b4bbe(0xb9)),'icon':_0x2e0bf3,'class':Fo,'isToggleable':!0x0,'tooltipPosition':sl}),_0x236c11['on'](_0x4b4bbe(0xe4),()=>{const _0x59606e=_0x4b4bbe;this[_0x59606e(0xc4)](_0x59606e(0xa3));}),_0x236c11;}[_0x1c71f6(0xb0)](){const _0x53a12e=_0x1c71f6,_0x592109=new _0x23af47();return _0x592109[_0x53a12e(0xab)]({'label':_0x45f806(this[_0x53a12e(0xd5)],_0x53a12e(0xd2)),'icon':_0x161bfa,'class':Fo,'isToggleable':!0x0,'tooltipPosition':sl}),_0x592109['on'](_0x53a12e(0xe4),()=>{const _0xd10c99=_0x53a12e;this[_0xd10c99(0xc4)](_0xd10c99(0xfc));}),_0x592109;}[_0x1c71f6(0xc9)](){const _0x448559=_0x1c71f6,_0x1e9940=new _0x23af47();return _0x1e9940[_0x448559(0xab)]({'label':_0x45f806(this[_0x448559(0xd5)],_0x448559(0xea)),'icon':_0x5032f6,'withText':!0x0,'class':Fo,'isToggleable':!0x0,'tooltip':_0x45f806(this[_0x448559(0xd5)],_0x448559(0xea)),'tooltipPosition':sl}),_0x1e9940[_0x448559(0xa8)]({'attributes':{'class':[Ko]}}),_0x1e9940['on'](_0x448559(0xe4),()=>{const _0x45b206=_0x448559;console[_0x45b206(0xae)](_0x45b206(0xf0)),alert(_0x45b206(0xf0));}),_0x1e9940;}[_0x1c71f6(0xb2)](){const _0x305ca1=_0x1c71f6,_0x14b0ca=_0x8910c6(this[_0x305ca1(0xd5)]);return _0x14b0ca[_0x305ca1(0xab)]({'panelPosition':'ne','class':[Zo]}),_0x14b0ca[_0x305ca1(0xfa)][_0x305ca1(0xab)]({'label':_0x45f806(this[_0x305ca1(0xd5)],_0x305ca1(0xbb)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':sl,'class':Qo}),this[_0x305ca1(0xa9)](_0x14b0ca,_0x305ca1(0xe4),_0x218125=>{const _0x4780ce=_0x305ca1;this[_0x4780ce(0xc4)](_0x4780ce(0xde),_0x218125[_0x4780ce(0xee)][_0x4780ce(0xa2)]);}),_0x14b0ca;}[_0x1c71f6(0xc1)](){const _0x358876=_0x1c71f6,_0x1beb9c=new _o(this[_0x358876(0xd5)]);return _0x1beb9c[_0x358876(0xf4)](_0x358876(0xe6))['to'](this,_0x358876(0xbd),_0x3f950e=>_0x3f950e??''),_0x1beb9c[_0x358876(0xf4)](_0x358876(0x100))['to'](this,_0x358876(0xd1),_0xd04ab6=>_0x358876(0xf5)===_0xd04ab6),_0x1beb9c;}}class ko extends _0x531149{constructor(_0x686a95,_0x27f1bd){const _0x38f328=_0x1c71f6;super();const _0x10f2f5=this[_0x38f328(0xf8)],_0x53e725=this[_0x38f328(0xce)]();this[_0x38f328(0xd7)]({'tag':_0x38f328(0xbc),'attributes':{'class':['ck',_0x38f328(0xf6)],'style':_0x10f2f5['to'](_0x38f328(0xb8)),'id':_0x10f2f5['to']('id')},'children':[{'tag':_0x38f328(0xbc),'attributes':{'class':[tl]},'children':[{'text':_0x10f2f5['to'](_0x38f328(0xe6))}]},{'tag':_0x38f328(0xbc),'attributes':{'class':[el]},'children':[{'tag':_0x38f328(0xec),'children':[{'text':_0x27f1bd[_0x38f328(0xed)]}]}]},{'tag':_0x38f328(0xbc),'attributes':{'class':[il]},'children':_0x53e725}]}),_0x53e725[_0x38f328(0xe7)](this[_0x38f328(0xca)](_0x686a95,_0x2e0bf3,_0x38f328(0xb9),_0x27f1bd[_0x38f328(0xcc)][_0x38f328(0xba)]?.[_0x38f328(0xaf)]??!0x1)),_0x53e725[_0x38f328(0xe7)](this[_0x38f328(0xca)](_0x686a95,_0x161bfa,_0x38f328(0xd2),_0x27f1bd[_0x38f328(0xcc)][_0x38f328(0xd9)]?.[_0x38f328(0xaf)]??!0x1));}[_0x1c71f6(0xca)](_0x11395a,_0x39bc7c,_0x44c415,_0x12eb5a){const _0x59cb70=_0x1c71f6,_0x2d525a=new _0x1d8823();_0x2d525a[_0x59cb70(0xad)]=_0x39bc7c;const _0xab616d=new _0x4d4a85(_0x11395a);_0xab616d[_0x59cb70(0xd7)]({'tag':_0x59cb70(0xec),'children':[{'text':_0x45f806(_0x11395a,_0x44c415)+':\x20'}]});const _0x450b4e=new _0x4d4a85(_0x11395a);return _0x450b4e[_0x59cb70(0xd7)]({'tag':_0x59cb70(0xec),'children':[{'text':_0x45f806(_0x11395a,_0x12eb5a?_0x59cb70(0xf1):_0x59cb70(0xfe))}]}),[_0x2d525a,_0xab616d,_0x450b4e];}}function _0x54ea(_0x2c63d5,_0x1544e9){const _0x5a9ccb=_0x5a9c();return _0x54ea=function(_0x54ea42,_0x2c7756){_0x54ea42=_0x54ea42-0x9f;let _0x30f0d9=_0x5a9ccb[_0x54ea42];return _0x30f0d9;},_0x54ea(_0x2c63d5,_0x1544e9);}class _o extends _0x4d4a85{constructor(_0x503438){const _0x4feb63=_0x1c71f6;super(_0x503438),this[_0x4feb63(0xab)](_0x4feb63(0xe6),void 0x0),this[_0x4feb63(0xab)](_0x4feb63(0x100),!0x0);const _0x49b5fe=this[_0x4feb63(0xf8)];this[_0x4feb63(0xd7)]({'tag':_0x4feb63(0xec),'attributes':{'class':['ck',_0x4feb63(0xe0),_0x49b5fe['if'](_0x4feb63(0x100),_0x4feb63(0xe1),_0x37e677=>!_0x37e677)]},'children':[{'text':_0x49b5fe['to'](_0x4feb63(0xe6))}]});}}
23
+ function _0x190d(_0x5e655b,_0x1fccb1){const _0x591860=_0x5918();return _0x190d=function(_0x190d8b,_0x1be992){_0x190d8b=_0x190d8b-0x144;let _0x1f9ad7=_0x591860[_0x190d8b];return _0x1f9ad7;},_0x190d(_0x5e655b,_0x1fccb1);}const _0x52b17d=_0x190d;(function(_0x603b70,_0x486938){const _0x49abf0=_0x190d,_0x795d73=_0x603b70();while(!![]){try{const _0x4d88f5=parseInt(_0x49abf0(0x172))/0x1*(-parseInt(_0x49abf0(0x188))/0x2)+-parseInt(_0x49abf0(0x18b))/0x3*(-parseInt(_0x49abf0(0x17d))/0x4)+parseInt(_0x49abf0(0x18c))/0x5*(-parseInt(_0x49abf0(0x154))/0x6)+parseInt(_0x49abf0(0x187))/0x7*(-parseInt(_0x49abf0(0x14b))/0x8)+parseInt(_0x49abf0(0x17e))/0x9*(-parseInt(_0x49abf0(0x152))/0xa)+-parseInt(_0x49abf0(0x14d))/0xb*(-parseInt(_0x49abf0(0x15f))/0xc)+-parseInt(_0x49abf0(0x17c))/0xd*(-parseInt(_0x49abf0(0x177))/0xe);if(_0x4d88f5===_0x486938)break;else _0x795d73['push'](_0x795d73['shift']());}catch(_0x1227f2){_0x795d73['push'](_0x795d73['shift']());}}}(_0x5918,0x991a2));import{Collection as _0x5d7bf5}from'ckeditor5/src/utils.js';import{IconAI as _0x3e6d2a,IconBulb as _0x29701c,IconWeb as _0x9b2f07}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x1f4ef6,ButtonLabelView as _0x986aad,ButtonView as _0x2a8d10,createDropdown as _0x2945b8,IconView as _0xad1c17,UIModel as _0x18902f,View as _0x1d814e}from'ckeditor5/src/ui.js';import{getTranslation as _0x3b0c3f}from'../../../aicore/utils/common-translations.js';const Jo=_0x52b17d(0x192),Fo=_0x52b17d(0x170),Ko=_0x52b17d(0x174),Qo=_0x52b17d(0x185),Zo=_0x52b17d(0x19f),tl=_0x52b17d(0x15b),el=_0x52b17d(0x198),il=_0x52b17d(0x16d),sl='n';export class AIChatPromptCapabilitiesView extends _0x1d814e{[_0x52b17d(0x16e)];[_0x52b17d(0x1a2)];[_0x52b17d(0x16f)];[_0x52b17d(0x15c)];[_0x52b17d(0x19a)];[_0x52b17d(0x159)];constructor(_0x5683e8){const _0x4a478e=_0x52b17d;super(_0x5683e8),this[_0x4a478e(0x190)](_0x4a478e(0x1a4),!0x1),this[_0x4a478e(0x190)](_0x4a478e(0x166),!0x1),this[_0x4a478e(0x190)](_0x4a478e(0x1a8),_0x4a478e(0x167)),this[_0x4a478e(0x190)](_0x4a478e(0x173),!0x0),this[_0x4a478e(0x190)](_0x4a478e(0x163),null),this[_0x4a478e(0x190)](_0x4a478e(0x18e),null),this[_0x4a478e(0x15c)]=this[_0x4a478e(0x151)](),this[_0x4a478e(0x159)]=this[_0x4a478e(0x194)](),this[_0x4a478e(0x16e)]=this[_0x4a478e(0x145)](),this[_0x4a478e(0x1a2)]=this[_0x4a478e(0x146)](),this[_0x4a478e(0x16f)]=this[_0x4a478e(0x157)](),this[_0x4a478e(0x15c)][_0x4a478e(0x160)][_0x4a478e(0x199)](_0x4a478e(0x148))['to'](this,_0x4a478e(0x1a8),_0x109bb5=>_0x4a478e(0x167)===_0x109bb5),this[_0x4a478e(0x15c)][_0x4a478e(0x160)][_0x4a478e(0x199)](_0x4a478e(0x156))['to'](this,_0x4a478e(0x173),_0xe171f6=>_0xe171f6?this[_0x4a478e(0x15c)][_0x4a478e(0x160)][_0x4a478e(0x16b)]:_0x3b0c3f(this[_0x4a478e(0x168)],_0x4a478e(0x1a1))),this[_0x4a478e(0x15c)][_0x4a478e(0x199)](_0x4a478e(0x180))['to'](this,_0x4a478e(0x173),_0x2ad04c=>_0x2ad04c),this[_0x4a478e(0x16e)][_0x4a478e(0x199)](_0x4a478e(0x1a6))['to'](this,_0x4a478e(0x1a4),_0x352dbd=>_0x352dbd),this[_0x4a478e(0x16e)][_0x4a478e(0x199)](_0x4a478e(0x156))['to'](this,_0x4a478e(0x1a4),_0x4594f0=>_0x3b0c3f(this[_0x4a478e(0x168)],_0x4594f0?_0x4a478e(0x164):_0x4a478e(0x150))),this[_0x4a478e(0x1a2)][_0x4a478e(0x199)](_0x4a478e(0x1a6))['to'](this,_0x4a478e(0x166),_0xc9e9fa=>_0xc9e9fa),this[_0x4a478e(0x1a2)][_0x4a478e(0x199)](_0x4a478e(0x156))['to'](this,_0x4a478e(0x166),_0x2ce8ae=>_0x3b0c3f(this[_0x4a478e(0x168)],_0x2ce8ae?_0x4a478e(0x19d):_0x4a478e(0x149))),this[_0x4a478e(0x17f)]({'tag':_0x4a478e(0x161),'attributes':{'class':[Jo]},'children':[this[_0x4a478e(0x15c)],this[_0x4a478e(0x159)],this[_0x4a478e(0x16e)],this[_0x4a478e(0x1a2)],this[_0x4a478e(0x16f)]]}),this[_0x4a478e(0x19a)]=new _0x5d7bf5(),_0x1f4ef6(this[_0x4a478e(0x15c)],this[_0x4a478e(0x19a)]);}[_0x52b17d(0x14e)](_0x1d1ba5,_0x1b6ec6){const _0x9f03dc=_0x52b17d;if(_0x1b6ec6)this[_0x9f03dc(0x190)](_0x9f03dc(0x1a8),_0x9f03dc(0x18f));else{const _0x1851a4=0x1===_0x1d1ba5[_0x9f03dc(0x178)];this[_0x9f03dc(0x190)](_0x9f03dc(0x1a8),_0x1851a4?_0x9f03dc(0x162):_0x9f03dc(0x167));}if(this[_0x9f03dc(0x19a)][_0x9f03dc(0x147)](),_0x1d1ba5?.[_0x9f03dc(0x178)])for(const _0x3c80a2 of _0x1d1ba5){const _0x4fa91b=new _0x18902f({'label':_0x3c80a2[_0x9f03dc(0x162)],'withText':!0x0,'role':_0x9f03dc(0x153),'id':_0x3c80a2['id'],'model':_0x3c80a2});_0x4fa91b[_0x9f03dc(0x199)](_0x9f03dc(0x1a6))['to'](this,_0x9f03dc(0x163),_0x29ea54=>_0x29ea54===_0x3c80a2['id']),this[_0x9f03dc(0x19a)][_0x9f03dc(0x17b)]({'type':_0x9f03dc(0x16a),'model':_0x4fa91b,'labelView':new po(this[_0x9f03dc(0x168)],_0x3c80a2)});}}[_0x52b17d(0x179)](_0x4d7ab1){const _0x4ff678=_0x52b17d;this[_0x4ff678(0x190)](_0x4ff678(0x1a4),_0x4d7ab1);}[_0x52b17d(0x158)](_0x5bf0cf){const _0xf55d6a=_0x52b17d;this[_0xf55d6a(0x190)](_0xf55d6a(0x166),_0x5bf0cf);}[_0x52b17d(0x193)](_0x5b45f4){const _0x45e963=_0x52b17d;if(!_0x5b45f4)return;this[_0x45e963(0x163)]=_0x5b45f4['id'],this[_0x45e963(0x18e)]=_0x5b45f4[_0x45e963(0x162)]||_0x5b45f4['id'],this[_0x45e963(0x15c)][_0x45e963(0x160)][_0x45e963(0x190)](_0x45e963(0x16b),_0x5b45f4[_0x45e963(0x162)]),this[_0x45e963(0x15c)][_0x45e963(0x160)][_0x45e963(0x190)](_0x45e963(0x156),_0x5b45f4[_0x45e963(0x162)]);const _0x260277=_0x5b45f4[_0x45e963(0x176)][_0x45e963(0x191)]?.[_0x45e963(0x14f)]??!0x1;this[_0x45e963(0x190)](_0x45e963(0x1a4),!0x1),this[_0x45e963(0x16e)][_0x45e963(0x190)](_0x45e963(0x1a6),!0x1),this[_0x45e963(0x16e)][_0x45e963(0x190)](_0x45e963(0x180),_0x260277),this[_0x45e963(0x16e)][_0x45e963(0x190)](_0x45e963(0x148),_0x260277);const _0x4ab6fb=_0x5b45f4[_0x45e963(0x176)][_0x45e963(0x195)]?.[_0x45e963(0x14f)]??!0x1;this[_0x45e963(0x190)](_0x45e963(0x166),!0x1),this[_0x45e963(0x1a2)][_0x45e963(0x190)](_0x45e963(0x1a6),!0x1),this[_0x45e963(0x1a2)][_0x45e963(0x190)](_0x45e963(0x180),_0x4ab6fb),this[_0x45e963(0x1a2)][_0x45e963(0x190)](_0x45e963(0x148),_0x4ab6fb);}[_0x52b17d(0x175)](){const _0x1b6b78=_0x52b17d;this[_0x1b6b78(0x190)](_0x1b6b78(0x173),!0x0);}[_0x52b17d(0x165)](_0x4aee53){const _0x55b113=_0x52b17d;this[_0x55b113(0x190)](_0x55b113(0x173),!0x1),_0x4aee53&&this[_0x55b113(0x190)](_0x55b113(0x1a8),_0x55b113(0x18f));}[_0x52b17d(0x145)](){const _0x1243eb=_0x52b17d,_0x2a33ee=new _0x2a8d10();return _0x2a33ee[_0x1243eb(0x190)]({'label':_0x3b0c3f(this[_0x1243eb(0x168)],_0x1243eb(0x144)),'icon':_0x9b2f07,'class':Fo,'isToggleable':!0x0,'tooltipPosition':sl}),_0x2a33ee['on'](_0x1243eb(0x1a7),()=>{const _0x5eb904=_0x1243eb;this[_0x5eb904(0x189)](_0x5eb904(0x18d));}),_0x2a33ee;}[_0x52b17d(0x146)](){const _0x5d2d9d=_0x52b17d,_0x7074c=new _0x2a8d10();return _0x7074c[_0x5d2d9d(0x190)]({'label':_0x3b0c3f(this[_0x5d2d9d(0x168)],_0x5d2d9d(0x183)),'icon':_0x29701c,'class':Fo,'isToggleable':!0x0,'tooltipPosition':sl}),_0x7074c['on'](_0x5d2d9d(0x1a7),()=>{const _0x2c3b2a=_0x5d2d9d;this[_0x2c3b2a(0x189)](_0x2c3b2a(0x18a));}),_0x7074c;}[_0x52b17d(0x157)](){const _0x2eb000=_0x52b17d,_0x574ad3=new _0x2a8d10();return _0x574ad3[_0x2eb000(0x190)]({'label':_0x3b0c3f(this[_0x2eb000(0x168)],_0x2eb000(0x16c)),'icon':_0x3e6d2a,'withText':!0x0,'class':Fo,'isToggleable':!0x0,'tooltip':_0x3b0c3f(this[_0x2eb000(0x168)],_0x2eb000(0x16c)),'tooltipPosition':sl}),_0x574ad3[_0x2eb000(0x15e)]({'attributes':{'class':[Ko]}}),_0x574ad3['on'](_0x2eb000(0x1a7),()=>{const _0x4e4982=_0x2eb000;console[_0x4e4982(0x197)](_0x4e4982(0x196)),alert(_0x4e4982(0x196));}),_0x574ad3;}[_0x52b17d(0x151)](){const _0x1a5e1c=_0x52b17d,_0x11e44b=_0x2945b8(this[_0x1a5e1c(0x168)]);return _0x11e44b[_0x1a5e1c(0x190)]({'panelPosition':'ne','class':[Zo]}),_0x11e44b[_0x1a5e1c(0x160)][_0x1a5e1c(0x190)]({'label':_0x3b0c3f(this[_0x1a5e1c(0x168)],_0x1a5e1c(0x171)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':sl,'class':Qo}),this[_0x1a5e1c(0x184)](_0x11e44b,_0x1a5e1c(0x1a7),_0x152a19=>{const _0x5b07d7=_0x1a5e1c;this[_0x5b07d7(0x189)](_0x5b07d7(0x14a),_0x152a19[_0x5b07d7(0x15a)][_0x5b07d7(0x19c)]);}),_0x11e44b;}[_0x52b17d(0x194)](){const _0x561a0f=_0x52b17d,_0x42faf6=new wo(this[_0x561a0f(0x168)]);return _0x42faf6[_0x561a0f(0x199)](_0x561a0f(0x1a9))['to'](this,_0x561a0f(0x18e),_0x1d42cb=>_0x1d42cb??''),_0x42faf6[_0x561a0f(0x199)](_0x561a0f(0x148))['to'](this,_0x561a0f(0x1a8),_0x10d539=>_0x561a0f(0x162)===_0x10d539),_0x42faf6;}}class po extends _0x986aad{constructor(_0x2ef157,_0x97d762){const _0x4982e7=_0x52b17d;super();const _0x5b6301=this[_0x4982e7(0x15d)],_0x1dfd83=this[_0x4982e7(0x19b)]();this[_0x4982e7(0x17f)]({'tag':_0x4982e7(0x161),'attributes':{'class':['ck',_0x4982e7(0x155)],'style':_0x5b6301['to'](_0x4982e7(0x14c)),'id':_0x5b6301['to']('id')},'children':[{'tag':_0x4982e7(0x161),'attributes':{'class':[tl]},'children':[{'text':_0x5b6301['to'](_0x4982e7(0x1a9))}]},{'tag':_0x4982e7(0x161),'attributes':{'class':[el]},'children':[{'tag':_0x4982e7(0x169),'children':[{'text':_0x97d762[_0x4982e7(0x186)]}]}]},{'tag':_0x4982e7(0x161),'attributes':{'class':[il]},'children':_0x1dfd83}]}),_0x1dfd83[_0x4982e7(0x181)](this[_0x4982e7(0x1a3)](_0x2ef157,_0x9b2f07,_0x4982e7(0x144),_0x97d762[_0x4982e7(0x176)][_0x4982e7(0x191)]?.[_0x4982e7(0x14f)]??!0x1)),_0x1dfd83[_0x4982e7(0x181)](this[_0x4982e7(0x1a3)](_0x2ef157,_0x29701c,_0x4982e7(0x183),_0x97d762[_0x4982e7(0x176)][_0x4982e7(0x195)]?.[_0x4982e7(0x14f)]??!0x1));}[_0x52b17d(0x1a3)](_0x221d95,_0xc58c96,_0x28163d,_0x16d575){const _0x101d2c=_0x52b17d,_0x5c98c2=new _0xad1c17();_0x5c98c2[_0x101d2c(0x1a0)]=_0xc58c96;const _0x8e4ed=new _0x1d814e(_0x221d95);_0x8e4ed[_0x101d2c(0x17f)]({'tag':_0x101d2c(0x169),'children':[{'text':_0x3b0c3f(_0x221d95,_0x28163d)+':\x20'}]});const _0x5033c2=new _0x1d814e(_0x221d95);return _0x5033c2[_0x101d2c(0x17f)]({'tag':_0x101d2c(0x169),'children':[{'text':_0x3b0c3f(_0x221d95,_0x16d575?_0x101d2c(0x182):_0x101d2c(0x19e))}]}),[_0x5c98c2,_0x8e4ed,_0x5033c2];}}function _0x5918(){const _0x3fc568=['_commandsButton','ck-ai-chat-controls-button','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','2eAToGs','modelSelectorEnabled','ck-ai-chat-controls-button--commands','enableModelSelector','capabilities','56GncqbM','length','setWebSearch','ck-ai-chat-controls__model-name','add','7679555XXtyVO','241572IkuwxU','3843AehbnX','setTemplate','isEnabled','addMany','AI_CHAT_CAPABILITIES_YES','AI_CHAT_REASONING','listenTo','ck-ai-button-tertiary','description','434OHKqeD','1018790TaeIgX','fire','toggleReasoning','51CudySg','177085XMeBwH','toggleWebSearch','activeModelName','hidden','set','webSearch','ck-ai-chat__prompt-capabilities','setModel','_createModelNameView','reasoning','Commands\x20are\x20not\x20implemented\x20yet.','log','ck-ai-chat-controls__model-selection__item-description','bind','_modelSelectionDropdownItems','createCollection','model','AI_CHAT_DISABLE_REASONING','AI_CHAT_CAPABILITIES_NO','ck-ai-chat-controls__model-selection','content','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','_reasoningButton','_getCapabilityParts','webSearchActive','ck-hidden','isOn','execute','modelDisplayMode','text','AI_CHAT_SEARCH_WEB','_createWebSearchButton','_createReasoningButton','clear','isVisible','AI_CHAT_ENABLE_REASONING','selectModel','149312yvKpIk','style','1749NIsSTs','setModelList','enabled','AI_CHAT_ENABLE_WEB_SEARCH','_createModelSelectionDropdown','14880TPTYtc','menuitemradio','144fbpvLb','ck-button__label','tooltip','_createCommandsButton','setReasoning','_modelNameView','source','ck-ai-chat-controls__model-selection__item-name','_modelSelectionDropdown','bindTemplate','extendTemplate','67836RLZgAG','buttonView','div','name','activeModelId','AI_CHAT_DISABLE_WEB_SEARCH','disableModelSelector','reasoningActive','selector','locale','span','button','label','AI_CHAT_COMMANDS','ck-ai-chat-controls__model-selection__item-capabilities','_webSearchButton'];_0x5918=function(){return _0x3fc568;};return _0x5918();}class wo extends _0x1d814e{constructor(_0x533e6e){const _0x58872d=_0x52b17d;super(_0x533e6e),this[_0x58872d(0x190)](_0x58872d(0x1a9),void 0x0),this[_0x58872d(0x190)](_0x58872d(0x148),!0x0);const _0x247876=this[_0x58872d(0x15d)];this[_0x58872d(0x17f)]({'tag':_0x58872d(0x169),'attributes':{'class':['ck',_0x58872d(0x17a),_0x247876['if'](_0x58872d(0x148),_0x58872d(0x1a5),_0x8a69ae=>!_0x8a69ae)]},'children':[{'text':_0x247876['to'](_0x58872d(0x1a9))}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0xa88d(_0x3c9086,_0x1263b1){const _0x518e19=_0x518e();return _0xa88d=function(_0xa88da3,_0x6464cf){_0xa88da3=_0xa88da3-0xda;let _0x4e7323=_0x518e19[_0xa88da3];return _0x4e7323;},_0xa88d(_0x3c9086,_0x1263b1);}const _0x3948bd=_0xa88d;(function(_0x5a7a8f,_0x159148){const _0x3cee96=_0xa88d,_0x48cadd=_0x5a7a8f();while(!![]){try{const _0x50974a=-parseInt(_0x3cee96(0xf2))/0x1+-parseInt(_0x3cee96(0x113))/0x2*(parseInt(_0x3cee96(0xe9))/0x3)+-parseInt(_0x3cee96(0x114))/0x4*(-parseInt(_0x3cee96(0x10b))/0x5)+parseInt(_0x3cee96(0x112))/0x6*(parseInt(_0x3cee96(0xdf))/0x7)+parseInt(_0x3cee96(0xe6))/0x8+parseInt(_0x3cee96(0x118))/0x9*(parseInt(_0x3cee96(0xf7))/0xa)+-parseInt(_0x3cee96(0x108))/0xb*(parseInt(_0x3cee96(0x106))/0xc);if(_0x50974a===_0x159148)break;else _0x48cadd['push'](_0x48cadd['shift']());}catch(_0x1c9525){_0x48cadd['push'](_0x48cadd['shift']());}}}(_0x518e,0xeb736));import{IconSubmit as _0x2cd8a7}from'ckeditor5/src/icons.js';import{ButtonView as _0x244f08,AutocompleteView as _0x23682e,createLabeledTextarea as _0xd6241e}from'ckeditor5/src/ui.js';function _0x518e(){const _0x566b50=['value','requestAnimationFrame','242588GlPnhm','isEmpty','locale','element','hasError','427580eEUegO','_queryViewResizeObserver','AI_CHAT_LABEL_SUBMIT','style','errorText','target','enter','contains','fire','focus','fieldView','ck-ai-chat__prompt-input_highlighted','keystrokes','width','MIN_ROWS','12suYYVj','reset','6172309YURrLO','submitButtonView','bind','1285375SnhThw','minRows','ck-ai-chat__prompt-input','MAX_ROWS','placeholder','isEnabled','isUploadInProgress','2395134WqlkZr','66238RWEBqk','4vJcEUc','setIsUploadInProgress','px\x20-\x20var(--ck-spacing-tiny))','rtl','216JTRtyq','_createSubmitButton','uiLanguageDirection','_addContextButtonView','left','fieldWrapperChildren','queryView','set','render','ck-ai-chat__prompt-submit-button','setPlaceholderText','add','excludeScrollbarsAndBorders','destroy','submit','7iLDhQM','classList','trim','right','update','sendUserMessage','_setUpAddContextButtonPositioning','7309056zSNvvr','execute','maxRows','75ofPomA','remove','calc(','focusableChildren','extendTemplate','window','AI_CHAT_PROMPT_EMPTY_ERROR'];_0x518e=function(){return _0x566b50;};return _0x518e();}import{global as _0x562797,isVisible as _0x352b85,Rect as _0x1ee1a6,ResizeObserver as _0x12709d}from'ckeditor5/src/utils.js';import{getTranslation as _0x1a6ba0}from'../../../aicore/utils/common-translations.js';import{AIChatPromptSuggestionsListView as _0x117c59}from'./aichatpromptsuggestionslistview.js';import{escape as _0x13a4ad}from'es-toolkit/compat';const ah=_0x3948bd(0x102);export class AIChatPromptInputView extends _0x23682e{[_0x3948bd(0x109)];static [_0x3948bd(0x105)]=0x1;static [_0x3948bd(0x10e)]=0xc;[_0x3948bd(0x11b)];[_0x3948bd(0xf8)];constructor(_0x2dd5b8,_0x5dd60c){const _0x149bd8=_0x3948bd;super(_0x2dd5b8,{'queryView':{'label':'','creator':_0xd6241e,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x117c59(_0x2dd5b8),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x149bd8(0x11f)](_0x149bd8(0xf3),!0x0),this[_0x149bd8(0x11f)](_0x149bd8(0x111),!0x1),this[_0x149bd8(0x11b)]=_0x5dd60c,this[_0x149bd8(0xf8)]=null,this[_0x149bd8(0x11e)][_0x149bd8(0x101)][_0x149bd8(0x10c)]=AIChatPromptInputView[_0x149bd8(0x105)],this[_0x149bd8(0x11e)][_0x149bd8(0x101)][_0x149bd8(0xe8)]=AIChatPromptInputView[_0x149bd8(0x10e)],this[_0x149bd8(0x11e)][_0x149bd8(0x11d)][_0x149bd8(0xdb)](this[_0x149bd8(0x11b)]),this[_0x149bd8(0xe5)](),this[_0x149bd8(0xed)]({'attributes':{'class':['ck',_0x149bd8(0x10d)]}}),this[_0x149bd8(0x109)]=this[_0x149bd8(0x119)](),this[_0x149bd8(0x109)][_0x149bd8(0x10a)](_0x149bd8(0x110))['to'](this,_0x149bd8(0xf3),this,_0x149bd8(0x111),(_0x18889c,_0x586ce3)=>!_0x18889c&&!_0x586ce3),this[_0x149bd8(0xec)][_0x149bd8(0xdb)](this[_0x149bd8(0x109)]);}[_0x3948bd(0x120)](){const _0x32bd79=_0x3948bd;super[_0x32bd79(0x120)](),this[_0x32bd79(0x11e)][_0x32bd79(0x11d)][_0x32bd79(0xdb)](this[_0x32bd79(0x109)]),this[_0x32bd79(0x103)][_0x32bd79(0x11f)](_0x32bd79(0xfd),(_0x32c426,_0x244d1e)=>{const _0x27991f=_0x32bd79;this[_0x27991f(0x111)]||this[_0x27991f(0xf3)]||_0x32c426[_0x27991f(0xfc)]==this[_0x27991f(0x11e)][_0x27991f(0x101)][_0x27991f(0xf5)]&&(this[_0x27991f(0xde)](),_0x244d1e());}),this[_0x32bd79(0x11e)][_0x32bd79(0x101)]['on'](_0x32bd79(0xe3),()=>{const _0x2b3b26=_0x32bd79;this[_0x2b3b26(0xf3)]=''===this[_0x2b3b26(0x11e)][_0x2b3b26(0x101)][_0x2b3b26(0xf5)][_0x2b3b26(0xf0)]?.[_0x2b3b26(0xe1)]();});}[_0x3948bd(0xdd)](){const _0x462481=_0x3948bd;super[_0x462481(0xdd)](),this[_0x462481(0xf8)]&&this[_0x462481(0xf8)][_0x462481(0xdd)]();}[_0x3948bd(0xde)](){const _0x1f6b8f=_0x3948bd,_0x485595=this[_0x1f6b8f(0x11e)][_0x1f6b8f(0x101)][_0x1f6b8f(0xf5)][_0x1f6b8f(0xf0)]?.[_0x1f6b8f(0xe1)]();if(!_0x485595)return this[_0x1f6b8f(0x11e)][_0x1f6b8f(0xfb)]=_0x1a6ba0(this[_0x1f6b8f(0xf4)],_0x1f6b8f(0xef)),void(this[_0x1f6b8f(0x11e)][_0x1f6b8f(0x101)][_0x1f6b8f(0xf6)]=!0x0);this[_0x1f6b8f(0x11e)][_0x1f6b8f(0x101)][_0x1f6b8f(0xf6)]=!0x1;const _0x174da6=_0x13a4ad(_0x485595);this[_0x1f6b8f(0xff)](_0x1f6b8f(0xe4),_0x174da6),this[_0x1f6b8f(0x11e)][_0x1f6b8f(0x101)][_0x1f6b8f(0x107)]();}[_0x3948bd(0xda)](_0x5c3bdc){const _0x56370b=_0x3948bd;this[_0x56370b(0x11e)][_0x56370b(0x101)][_0x56370b(0x11f)](_0x56370b(0x10f),_0x5c3bdc);}[_0x3948bd(0x100)](_0x3e08c7=!0x1){const _0x5e8ff6=_0x3948bd;super[_0x5e8ff6(0x100)](),_0x3e08c7&&(this[_0x5e8ff6(0xf5)][_0x5e8ff6(0xe0)][_0x5e8ff6(0xfe)](ah)||(this[_0x5e8ff6(0xf5)][_0x5e8ff6(0xe0)][_0x5e8ff6(0xdb)](ah),setTimeout(()=>{const _0x3632f0=_0x5e8ff6;this[_0x3632f0(0xf5)][_0x3632f0(0xe0)][_0x3632f0(0xea)](ah);},0x320)));}[_0x3948bd(0x119)](){const _0x4ca62a=_0x3948bd,_0x2366ca=new _0x244f08(this[_0x4ca62a(0xf4)]);return _0x2366ca[_0x4ca62a(0x11f)]({'icon':_0x2cd8a7,'label':_0x1a6ba0(this[_0x4ca62a(0xf4)],_0x4ca62a(0xf9)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x4ca62a(0x121),'isEnabled':!0x1}),_0x2366ca['on'](_0x4ca62a(0xe7),()=>{const _0x327316=_0x4ca62a;this[_0x327316(0xde)]();}),_0x2366ca;}[_0x3948bd(0x115)](_0x36c9ee){const _0x41772b=_0x3948bd;this[_0x41772b(0x111)]=_0x36c9ee;}[_0x3948bd(0xe5)](){const _0x388a36=_0x3948bd,_0x509b97=this[_0x388a36(0xf4)],_0x3956a8=()=>{const _0x5dc6f8=_0x388a36;_0x562797[_0x5dc6f8(0xee)][_0x5dc6f8(0xf1)](()=>{const _0xe8f725=_0x5dc6f8;if(_0x352b85(this[_0xe8f725(0xf5)])){const _0x13c0c6=new _0x1ee1a6(this[_0xe8f725(0x11e)][_0xe8f725(0x101)][_0xe8f725(0xf5)]),_0x1f66a=new _0x1ee1a6(this[_0xe8f725(0x11b)][_0xe8f725(0xf5)]),_0x55c4d5=_0x13c0c6[_0xe8f725(0x104)],_0x358683=_0xe8f725(0x117)===_0x509b97[_0xe8f725(0x11a)]?_0xe8f725(0xe2):_0xe8f725(0x11c);_0x13c0c6[_0xe8f725(0xdc)]();const _0x52dddb=_0x55c4d5-_0x13c0c6[_0xe8f725(0x104)]+0x1;this[_0xe8f725(0x11b)][_0xe8f725(0xf5)][_0xe8f725(0xfa)][_0x358683]=_0xe8f725(0xeb)+(_0x55c4d5-_0x1f66a[_0xe8f725(0x104)]-_0x52dddb)+_0xe8f725(0x116);}});};this[_0x388a36(0x11e)][_0x388a36(0x101)]['on'](_0x388a36(0xe3),_0x3956a8),this['on'](_0x388a36(0x120),()=>{const _0x524b3e=_0x388a36;_0x3956a8(),this[_0x524b3e(0xf8)]=new _0x12709d(this[_0x524b3e(0x11e)][_0x524b3e(0x101)][_0x524b3e(0xf5)],()=>{_0x3956a8();});});}}
23
+ const _0x2389e6=_0x2da4;(function(_0x2cfe69,_0x5ef816){const _0x46dfa5=_0x2da4,_0x28f463=_0x2cfe69();while(!![]){try{const _0x101769=parseInt(_0x46dfa5(0x9c))/0x1*(-parseInt(_0x46dfa5(0xb8))/0x2)+-parseInt(_0x46dfa5(0x93))/0x3*(-parseInt(_0x46dfa5(0xb7))/0x4)+-parseInt(_0x46dfa5(0xc9))/0x5*(parseInt(_0x46dfa5(0xba))/0x6)+-parseInt(_0x46dfa5(0xc1))/0x7+-parseInt(_0x46dfa5(0xd2))/0x8*(-parseInt(_0x46dfa5(0xab))/0x9)+parseInt(_0x46dfa5(0xae))/0xa*(parseInt(_0x46dfa5(0xb5))/0xb)+parseInt(_0x46dfa5(0x9d))/0xc;if(_0x101769===_0x5ef816)break;else _0x28f463['push'](_0x28f463['shift']());}catch(_0x271b19){_0x28f463['push'](_0x28f463['shift']());}}}(_0x4b4d,0x2c1c7));import{IconSubmit as _0x4ec8ae}from'ckeditor5/src/icons.js';import{ButtonView as _0x5546d8,AutocompleteView as _0x10488e,createLabeledTextarea as _0x5c7cfb}from'ckeditor5/src/ui.js';import{global as _0x2a10de,isVisible as _0x24f744,Rect as _0x480d54,ResizeObserver as _0x943605}from'ckeditor5/src/utils.js';import{getTranslation as _0x807f00}from'../../../aicore/utils/common-translations.js';import{AIChatPromptSuggestionsListView as _0x3b855c}from'./aichatpromptsuggestionslistview.js';import{escape as _0x55f9d7}from'es-toolkit/compat';function _0x2da4(_0x41b153,_0x26aa48){const _0x4b4d36=_0x4b4d();return _0x2da4=function(_0x2da496,_0x297469){_0x2da496=_0x2da496-0x8c;let _0x2e09ca=_0x4b4d36[_0x2da496];return _0x2e09ca;},_0x2da4(_0x41b153,_0x26aa48);}const ph=_0x2389e6(0xcd);function _0x4b4d(){const _0x57feca=['1348XVqZvI','2VFLfqO','window','18kwBBms','fieldView','remove','hasError','ck-ai-chat__prompt-input','left','element','381206EMrnWn','isEmpty','uiLanguageDirection','isUploadInProgress','_queryViewResizeObserver','destroy','execute','errorText','587885rfopwD','AI_CHAT_PROMPT_EMPTY_ERROR','value','AI_CHAT_LABEL_SUBMIT','ck-ai-chat__prompt-input_highlighted','excludeScrollbarsAndBorders','extendTemplate','render','enter','120tInRal','keystrokes','bind','queryView','MIN_ROWS','MAX_ROWS','submitButtonView','locale','_setUpAddContextButtonPositioning','1212ygShmu','calc(','update','setIsUploadInProgress','fire','classList','requestAnimationFrame','style','setPlaceholderText','271537vEsQbe','1646580RvoVye','right','contains','width','sendUserMessage','reset','set','_addContextButtonView','px\x20-\x20var(--ck-spacing-tiny))','add','minRows','fieldWrapperChildren','rtl','target','174177gxGtvy','focusableChildren','_createSubmitButton','10nLUTMy','focus','isEnabled','placeholder','maxRows','submit','ck-ai-chat__prompt-submit-button','3253217BAVVOy','trim'];_0x4b4d=function(){return _0x57feca;};return _0x4b4d();}export class AIChatPromptInputView extends _0x10488e{[_0x2389e6(0x90)];static [_0x2389e6(0x8e)]=0x1;static [_0x2389e6(0x8f)]=0xc;[_0x2389e6(0xa4)];[_0x2389e6(0xc5)];constructor(_0x1e6c78,_0x16851f){const _0x4824ec=_0x2389e6;super(_0x1e6c78,{'queryView':{'label':'','creator':_0x5c7cfb,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x3b855c(_0x1e6c78),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x4824ec(0xa3)](_0x4824ec(0xc2),!0x0),this[_0x4824ec(0xa3)](_0x4824ec(0xc4),!0x1),this[_0x4824ec(0xa4)]=_0x16851f,this[_0x4824ec(0xc5)]=null,this[_0x4824ec(0x8d)][_0x4824ec(0xbb)][_0x4824ec(0xa7)]=AIChatPromptInputView[_0x4824ec(0x8e)],this[_0x4824ec(0x8d)][_0x4824ec(0xbb)][_0x4824ec(0xb2)]=AIChatPromptInputView[_0x4824ec(0x8f)],this[_0x4824ec(0x8d)][_0x4824ec(0xa8)][_0x4824ec(0xa6)](this[_0x4824ec(0xa4)]),this[_0x4824ec(0x92)](),this[_0x4824ec(0xcf)]({'attributes':{'class':['ck',_0x4824ec(0xbe)]}}),this[_0x4824ec(0x90)]=this[_0x4824ec(0xad)](),this[_0x4824ec(0x90)][_0x4824ec(0x8c)](_0x4824ec(0xb0))['to'](this,_0x4824ec(0xc2),this,_0x4824ec(0xc4),(_0x5baa72,_0x22e53e)=>!_0x5baa72&&!_0x22e53e),this[_0x4824ec(0xac)][_0x4824ec(0xa6)](this[_0x4824ec(0x90)]);}[_0x2389e6(0xd0)](){const _0x2654b2=_0x2389e6;super[_0x2654b2(0xd0)](),this[_0x2654b2(0x8d)][_0x2654b2(0xa8)][_0x2654b2(0xa6)](this[_0x2654b2(0x90)]),this[_0x2654b2(0xd3)][_0x2654b2(0xa3)](_0x2654b2(0xd1),(_0x10222b,_0x252654)=>{const _0x3777ec=_0x2654b2;this[_0x3777ec(0xc4)]||this[_0x3777ec(0xc2)]||_0x10222b[_0x3777ec(0xaa)]==this[_0x3777ec(0x8d)][_0x3777ec(0xbb)][_0x3777ec(0xc0)]&&(this[_0x3777ec(0xb3)](),_0x252654());}),this[_0x2654b2(0x8d)][_0x2654b2(0xbb)]['on'](_0x2654b2(0x95),()=>{const _0x5f1e4d=_0x2654b2;this[_0x5f1e4d(0xc2)]=''===this[_0x5f1e4d(0x8d)][_0x5f1e4d(0xbb)][_0x5f1e4d(0xc0)][_0x5f1e4d(0xcb)]?.[_0x5f1e4d(0xb6)]();});}[_0x2389e6(0xc6)](){const _0x2fce2e=_0x2389e6;super[_0x2fce2e(0xc6)](),this[_0x2fce2e(0xc5)]&&this[_0x2fce2e(0xc5)][_0x2fce2e(0xc6)]();}[_0x2389e6(0xb3)](){const _0x54d0ca=_0x2389e6,_0x2341e3=this[_0x54d0ca(0x8d)][_0x54d0ca(0xbb)][_0x54d0ca(0xc0)][_0x54d0ca(0xcb)]?.[_0x54d0ca(0xb6)]();if(!_0x2341e3)return this[_0x54d0ca(0x8d)][_0x54d0ca(0xc8)]=_0x807f00(this[_0x54d0ca(0x91)],_0x54d0ca(0xca)),void(this[_0x54d0ca(0x8d)][_0x54d0ca(0xbb)][_0x54d0ca(0xbd)]=!0x0);this[_0x54d0ca(0x8d)][_0x54d0ca(0xbb)][_0x54d0ca(0xbd)]=!0x1;const _0x514974=_0x55f9d7(_0x2341e3);this[_0x54d0ca(0x97)](_0x54d0ca(0xa1),_0x514974),this[_0x54d0ca(0x8d)][_0x54d0ca(0xbb)][_0x54d0ca(0xa2)]();}[_0x2389e6(0x9b)](_0x2bd310){const _0x48dd58=_0x2389e6;this[_0x48dd58(0x8d)][_0x48dd58(0xbb)][_0x48dd58(0xa3)](_0x48dd58(0xb1),_0x2bd310);}[_0x2389e6(0xaf)](_0xc0e18f=!0x1){const _0x39a756=_0x2389e6;super[_0x39a756(0xaf)](),_0xc0e18f&&(this[_0x39a756(0xc0)][_0x39a756(0x98)][_0x39a756(0x9f)](ph)||(this[_0x39a756(0xc0)][_0x39a756(0x98)][_0x39a756(0xa6)](ph),setTimeout(()=>{const _0x25f508=_0x39a756;this[_0x25f508(0xc0)][_0x25f508(0x98)][_0x25f508(0xbc)](ph);},0x320)));}[_0x2389e6(0xad)](){const _0x576ec7=_0x2389e6,_0x120719=new _0x5546d8(this[_0x576ec7(0x91)]);return _0x120719[_0x576ec7(0xa3)]({'icon':_0x4ec8ae,'label':_0x807f00(this[_0x576ec7(0x91)],_0x576ec7(0xcc)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x576ec7(0xb4),'isEnabled':!0x1}),_0x120719['on'](_0x576ec7(0xc7),()=>{const _0x2c69df=_0x576ec7;this[_0x2c69df(0xb3)]();}),_0x120719;}[_0x2389e6(0x96)](_0x37d824){const _0x50c485=_0x2389e6;this[_0x50c485(0xc4)]=_0x37d824;}[_0x2389e6(0x92)](){const _0x423819=_0x2389e6,_0x38e08c=this[_0x423819(0x91)],_0x20d646=()=>{const _0x5e97ed=_0x423819;_0x2a10de[_0x5e97ed(0xb9)][_0x5e97ed(0x99)](()=>{const _0x34a844=_0x5e97ed;if(_0x24f744(this[_0x34a844(0xc0)])){const _0x548c2b=new _0x480d54(this[_0x34a844(0x8d)][_0x34a844(0xbb)][_0x34a844(0xc0)]),_0x3a0a54=new _0x480d54(this[_0x34a844(0xa4)][_0x34a844(0xc0)]),_0x135486=_0x548c2b[_0x34a844(0xa0)],_0x372c9c=_0x34a844(0xa9)===_0x38e08c[_0x34a844(0xc3)]?_0x34a844(0x9e):_0x34a844(0xbf);_0x548c2b[_0x34a844(0xce)]();const _0x2ea2e9=_0x135486-_0x548c2b[_0x34a844(0xa0)]+0x1;this[_0x34a844(0xa4)][_0x34a844(0xc0)][_0x34a844(0x9a)][_0x372c9c]=_0x34a844(0x94)+(_0x135486-_0x3a0a54[_0x34a844(0xa0)]-_0x2ea2e9)+_0x34a844(0xa5);}});};this[_0x423819(0x8d)][_0x423819(0xbb)]['on'](_0x423819(0x95),_0x20d646),this['on'](_0x423819(0xd0),()=>{const _0x48479d=_0x423819;_0x20d646(),this[_0x48479d(0xc5)]=new _0x943605(this[_0x48479d(0x8d)][_0x48479d(0xbb)][_0x48479d(0xc0)],()=>{_0x20d646();});});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x281f(_0x500598,_0x5c3ec9){const _0x3fbd66=_0x3fbd();return _0x281f=function(_0x281f94,_0x3d1229){_0x281f94=_0x281f94-0x72;let _0x3c77a0=_0x3fbd66[_0x281f94];return _0x3c77a0;},_0x281f(_0x500598,_0x5c3ec9);}const _0x559817=_0x281f;(function(_0xa0eeaf,_0x128c83){const _0x2331ac=_0x281f,_0x4b2515=_0xa0eeaf();while(!![]){try{const _0x311e87=-parseInt(_0x2331ac(0x7b))/0x1*(parseInt(_0x2331ac(0x7d))/0x2)+-parseInt(_0x2331ac(0x79))/0x3*(-parseInt(_0x2331ac(0x77))/0x4)+parseInt(_0x2331ac(0x75))/0x5+-parseInt(_0x2331ac(0x7e))/0x6+-parseInt(_0x2331ac(0x73))/0x7*(-parseInt(_0x2331ac(0x7c))/0x8)+parseInt(_0x2331ac(0x76))/0x9+parseInt(_0x2331ac(0x7a))/0xa;if(_0x311e87===_0x128c83)break;else _0x4b2515['push'](_0x4b2515['shift']());}catch(_0x19c2ab){_0x4b2515['push'](_0x4b2515['shift']());}}}(_0x3fbd,0x66097));import{ListView as _0x31e443}from'ckeditor5/src/ui.js';function _0x3fbd(){const _0x5d3ffc=['4138146zuZMzr','length','14uQLJTi','items','243460ylzAhD','3203901SstVjZ','3252544AZjQKU','filter','3SwPlDB','773420lSEdsM','1AQFOpH','1369896ZtHRBa','1059998GYNYyW'];_0x3fbd=function(){return _0x5d3ffc;};return _0x3fbd();}export class AIChatPromptSuggestionsListView extends _0x31e443{[_0x559817(0x78)](){const _0x4dbfb0=_0x559817;let _0x124fe3=0x0;for(const _0xd3b234 of this[_0x4dbfb0(0x74)])_0x124fe3+=_0xd3b234[_0x4dbfb0(0x74)][_0x4dbfb0(0x72)];return{'resultsCount':_0x124fe3,'totalItemsCount':_0x124fe3};}}
23
+ const _0x49a2a9=_0x2f73;(function(_0x1a64ad,_0x35905b){const _0x5990ab=_0x2f73,_0x4dafa8=_0x1a64ad();while(!![]){try{const _0x182f57=-parseInt(_0x5990ab(0xe7))/0x1*(-parseInt(_0x5990ab(0xe6))/0x2)+parseInt(_0x5990ab(0xeb))/0x3+parseInt(_0x5990ab(0xe4))/0x4*(-parseInt(_0x5990ab(0xe2))/0x5)+parseInt(_0x5990ab(0xe0))/0x6+parseInt(_0x5990ab(0xdf))/0x7*(-parseInt(_0x5990ab(0xea))/0x8)+-parseInt(_0x5990ab(0xe3))/0x9*(parseInt(_0x5990ab(0xe9))/0xa)+-parseInt(_0x5990ab(0xec))/0xb*(-parseInt(_0x5990ab(0xe8))/0xc);if(_0x182f57===_0x35905b)break;else _0x4dafa8['push'](_0x4dafa8['shift']());}catch(_0x5c7c33){_0x4dafa8['push'](_0x4dafa8['shift']());}}}(_0x429a,0x61d4a));function _0x2f73(_0x21f3e7,_0x5cfa91){const _0x429af8=_0x429a();return _0x2f73=function(_0x2f7337,_0x10d398){_0x2f7337=_0x2f7337-0xde;let _0x15a448=_0x429af8[_0x2f7337];return _0x15a448;},_0x2f73(_0x21f3e7,_0x5cfa91);}function _0x429a(){const _0x1881c7=['955913GMjSvQ','4532556lEykKl','length','1830PnUNtS','27711FLnOsc','8324jXpbhP','items','524xPzgig','2453QwUFxo','12ukUxzt','610rmlWHS','40RKDqty','239427ApcZYl','6105583GRPsbW','filter'];_0x429a=function(){return _0x1881c7;};return _0x429a();}import{ListView as _0x56759a}from'ckeditor5/src/ui.js';export class AIChatPromptSuggestionsListView extends _0x56759a{[_0x49a2a9(0xde)](){const _0x6e0a44=_0x49a2a9;let _0x393e7a=0x0;for(const _0x4594f9 of this[_0x6e0a44(0xe5)])_0x393e7a+=_0x4594f9[_0x6e0a44(0xe5)][_0x6e0a44(0xe1)];return{'resultsCount':_0x393e7a,'totalItemsCount':_0x393e7a};}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4df27f=_0x3a33;(function(_0x5c6a4d,_0x554e2b){const _0x4e90ce=_0x3a33,_0x5110bb=_0x5c6a4d();while(!![]){try{const _0x53495a=parseInt(_0x4e90ce(0xaf))/0x1*(parseInt(_0x4e90ce(0xa7))/0x2)+parseInt(_0x4e90ce(0xa9))/0x3+parseInt(_0x4e90ce(0xb4))/0x4+parseInt(_0x4e90ce(0xb1))/0x5*(-parseInt(_0x4e90ce(0xad))/0x6)+parseInt(_0x4e90ce(0xba))/0x7+parseInt(_0x4e90ce(0xa1))/0x8*(-parseInt(_0x4e90ce(0x9f))/0x9)+-parseInt(_0x4e90ce(0xaa))/0xa;if(_0x53495a===_0x554e2b)break;else _0x5110bb['push'](_0x5110bb['shift']());}catch(_0xafb154){_0x5110bb['push'](_0x5110bb['shift']());}}}(_0x5f56,0xd20b4));function _0x3a33(_0x997756,_0xfb8777){const _0x5f5632=_0x5f56();return _0x3a33=function(_0x3a33c1,_0x262707){_0x3a33c1=_0x3a33c1-0x9c;let _0x53495e=_0x5f5632[_0x3a33c1];return _0x53495e;},_0x3a33(_0x997756,_0xfb8777);}import{ListView as _0x558c04}from'ckeditor5/src/ui.js';function _0x5f56(){const _0x21d7dd=['clear','replace','execute','ck-ai-chat-resources__list','forEach','29331EENtOU','highlightText','3560wnEfRU','items','label','test','trim','addResourceToContext','2bJSAbn','extendTemplate','950619bEPKNn','12093660oxmDVv','fire','add','149964EsSjfa','setResources','1456251bVxyFh','\x5c$&','15JrrRNm','updateResourceState','locale','4451444QmkFwl','_source','resource','_handleResourceSelection','filter','useDefaultFiltering','4962706kPYBIb'];_0x5f56=function(){return _0x21d7dd;};return _0x5f56();}import{AIChatResourceListItemView as _0x55d5e1}from'./aichatresourcelistitemview.js';const uc=_0x4df27f(0x9d);export class AIChatContextResourcesListView extends _0x558c04{[_0x4df27f(0xb5)];constructor(_0x243bb5,_0x2a5db0){const _0x185556=_0x4df27f;super(_0x243bb5),this[_0x185556(0xb5)]=_0x2a5db0,this[_0x185556(0xa8)]({'attributes':{'class':[uc]}});}[_0x4df27f(0xae)](_0x34bb19,_0x2ab00c){const _0xe95d52=_0x4df27f;this[_0xe95d52(0xa2)][_0xe95d52(0xbb)]();let _0x18619e=_0x34bb19;if(this[_0xe95d52(0xb5)][_0xe95d52(0xb9)]&&_0x2ab00c&&''!==_0x2ab00c[_0xe95d52(0xa5)]()){const _0x3c8837=new RegExp(_0x2ab00c[_0xe95d52(0xbc)](/[.*+?^${}()|[\]\\]/g,_0xe95d52(0xb0)),'gi');_0x18619e=_0x34bb19[_0xe95d52(0xb8)](_0x3dc83c=>_0x3c8837[_0xe95d52(0xa4)](_0x3dc83c[_0xe95d52(0xa3)]));}for(const _0x3346d6 of _0x18619e){const _0x214fb3=new _0x55d5e1(this[_0xe95d52(0xb3)],_0x3346d6);_0x214fb3['on'](_0xe95d52(0x9c),()=>{const _0x27da2d=_0xe95d52;this[_0x27da2d(0xb7)](this[_0x27da2d(0xb5)],_0x3346d6);}),this[_0xe95d52(0xa2)][_0xe95d52(0xac)](_0x214fb3);}this[_0xe95d52(0xb5)][_0xe95d52(0xb9)]&&this[_0xe95d52(0xa0)](_0x2ab00c);}[_0x4df27f(0xa0)](_0x537c65){const _0x25a770=_0x4df27f;this[_0x25a770(0xb5)][_0x25a770(0xb9)]&&this[_0x25a770(0xa2)][_0x25a770(0x9e)](_0x57d24d=>{const _0x3a3334=_0x25a770;_0x57d24d[_0x3a3334(0xa0)](_0x537c65);});}[_0x4df27f(0xb2)](_0x543af7,_0x2144e1){const _0x5ecd5d=_0x4df27f;for(const _0x535288 of this[_0x5ecd5d(0xa2)]){const _0x262717=_0x535288;_0x262717[_0x5ecd5d(0xb6)]['id']===_0x543af7&&_0x262717[_0x5ecd5d(0xb2)](_0x2144e1);}}[_0x4df27f(0xb7)](_0xb0eae0,_0x52ec7f){const _0x5183ce=_0x4df27f;this[_0x5183ce(0xab)](_0x5183ce(0xa6),{'source':_0xb0eae0,'resource':_0x52ec7f});}}
23
+ const _0x241493=_0x22cd;function _0x22cd(_0x253152,_0x1923d8){const _0x40295d=_0x4029();return _0x22cd=function(_0x22cd58,_0x33da2d){_0x22cd58=_0x22cd58-0x9e;let _0x2f6c06=_0x40295d[_0x22cd58];return _0x2f6c06;},_0x22cd(_0x253152,_0x1923d8);}(function(_0x4b0fa5,_0x2fd41b){const _0x465432=_0x22cd,_0xf6cce2=_0x4b0fa5();while(!![]){try{const _0x244982=-parseInt(_0x465432(0xa3))/0x1*(-parseInt(_0x465432(0xa5))/0x2)+parseInt(_0x465432(0xb8))/0x3*(parseInt(_0x465432(0xa6))/0x4)+parseInt(_0x465432(0xa7))/0x5*(-parseInt(_0x465432(0xb0))/0x6)+-parseInt(_0x465432(0xbb))/0x7+-parseInt(_0x465432(0xad))/0x8+-parseInt(_0x465432(0x9f))/0x9+parseInt(_0x465432(0xa1))/0xa;if(_0x244982===_0x2fd41b)break;else _0xf6cce2['push'](_0xf6cce2['shift']());}catch(_0x15be41){_0xf6cce2['push'](_0xf6cce2['shift']());}}}(_0x4029,0x379e3));import{ListView as _0x15445c}from'ckeditor5/src/ui.js';function _0x4029(){const _0x4c951a=['fire','1051190kkTpkQ','test','useDefaultFiltering','trim','_source','1409571uHScrd','\x5c$&','6634840bTmRar','replace','16meBZdt','items','11038WdUDyP','688ZlgwWt','545VCechb','resource','clear','locale','_handleResourceSelection','ck-ai-chat-resources__list','1099072wEcTZH','execute','label','23376vEtVPz','extendTemplate','highlightText','filter','add','forEach','addResourceToContext','updateResourceState','6015RUnGZg','setResources'];_0x4029=function(){return _0x4c951a;};return _0x4029();}import{AIChatResourceListItemView as _0x286e7f}from'./aichatresourcelistitemview.js';const rc=_0x241493(0xac);export class AIChatContextResourcesListView extends _0x15445c{[_0x241493(0x9e)];constructor(_0x1a2cc5,_0x1bd682){const _0x4ed3cb=_0x241493;super(_0x1a2cc5),this[_0x4ed3cb(0x9e)]=_0x1bd682,this[_0x4ed3cb(0xb1)]({'attributes':{'class':[rc]}});}[_0x241493(0xb9)](_0x3dc06e,_0x1e59fc){const _0x2f5b4a=_0x241493;this[_0x2f5b4a(0xa4)][_0x2f5b4a(0xa9)]();let _0xf115f3=_0x3dc06e;if(this[_0x2f5b4a(0x9e)][_0x2f5b4a(0xbd)]&&_0x1e59fc&&''!==_0x1e59fc[_0x2f5b4a(0xbe)]()){const _0x446c04=new RegExp(_0x1e59fc[_0x2f5b4a(0xa2)](/[.*+?^${}()|[\]\\]/g,_0x2f5b4a(0xa0)),'gi');_0xf115f3=_0x3dc06e[_0x2f5b4a(0xb3)](_0x1a027b=>_0x446c04[_0x2f5b4a(0xbc)](_0x1a027b[_0x2f5b4a(0xaf)]));}for(const _0x32db43 of _0xf115f3){const _0x2cb541=new _0x286e7f(this[_0x2f5b4a(0xaa)],_0x32db43);_0x2cb541['on'](_0x2f5b4a(0xae),()=>{const _0x5fb3bb=_0x2f5b4a;this[_0x5fb3bb(0xab)](this[_0x5fb3bb(0x9e)],_0x32db43);}),this[_0x2f5b4a(0xa4)][_0x2f5b4a(0xb4)](_0x2cb541);}this[_0x2f5b4a(0x9e)][_0x2f5b4a(0xbd)]&&this[_0x2f5b4a(0xb2)](_0x1e59fc);}[_0x241493(0xb2)](_0x1a92f4){const _0x318d73=_0x241493;this[_0x318d73(0x9e)][_0x318d73(0xbd)]&&this[_0x318d73(0xa4)][_0x318d73(0xb5)](_0x19a4d1=>{const _0x33d137=_0x318d73;_0x19a4d1[_0x33d137(0xb2)](_0x1a92f4);});}[_0x241493(0xb7)](_0x2985cb,_0x2caa36){const _0x38bb3c=_0x241493;for(const _0x4fc9ec of this[_0x38bb3c(0xa4)]){const _0x4c0fad=_0x4fc9ec;_0x4c0fad[_0x38bb3c(0xa8)]['id']===_0x2985cb&&_0x4c0fad[_0x38bb3c(0xb7)](_0x2caa36);}}[_0x241493(0xab)](_0x2659da,_0xd5dcdb){const _0x24f856=_0x241493;this[_0x24f856(0xba)](_0x24f856(0xb6),{'source':_0x2659da,'resource':_0xd5dcdb});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5348ee=_0x3966;function _0x3966(_0x11f281,_0x23e833){const _0x1b721e=_0x1b72();return _0x3966=function(_0x3966da,_0x560f56){_0x3966da=_0x3966da-0x115;let _0x4d1a4e=_0x1b721e[_0x3966da];return _0x4d1a4e;},_0x3966(_0x11f281,_0x23e833);}(function(_0x5f5cf2,_0x3e0e37){const _0x5bb88f=_0x3966,_0xa91325=_0x5f5cf2();while(!![]){try{const _0x5bbb7d=-parseInt(_0x5bb88f(0x12e))/0x1+-parseInt(_0x5bb88f(0x129))/0x2*(parseInt(_0x5bb88f(0x138))/0x3)+parseInt(_0x5bb88f(0x135))/0x4+parseInt(_0x5bb88f(0x118))/0x5+parseInt(_0x5bb88f(0x12b))/0x6*(parseInt(_0x5bb88f(0x130))/0x7)+parseInt(_0x5bb88f(0x133))/0x8*(parseInt(_0x5bb88f(0x12a))/0x9)+parseInt(_0x5bb88f(0x13a))/0xa;if(_0x5bbb7d===_0x3e0e37)break;else _0xa91325['push'](_0xa91325['shift']());}catch(_0x3ea17d){_0xa91325['push'](_0xa91325['shift']());}}}(_0x1b72,0x4ec24));import{View as _0xfdd9c4,ViewCollection as _0x1e9f80}from'ckeditor5/src/ui.js';import{uid as _0x3d08c2}from'ckeditor5/src/utils.js';import{AIChatContextResourcesListView as _0x57ccc8}from'./aichatcontextresourceslistview.js';function _0x1b72(){const _0x144e63=['_resourcesListView','set','819075GhVmuG','bindTemplate','4708410EFmdjQ','loadResources','_createResourcesListView','_skeletonLoader','search','has','_createSkeletonView','_searchSection','locale','_source','addResourceToContext','extendTemplate','length','aiChatResources','_createSearchView','useDefaultFiltering','1785415SPodqe','render','ck-hidden','children','searchInputVisibleFrom','_searchView','_searchInputVisibleFrom','div','highlightText','ck-ai-chat-resources','updateResourceState','source','setResources','_createSearchSection','setTemplate','_latestLoadResourcesUid','delegate','4fxvgUI','97029KZPiQW','126708EhZgpv','fire','getQuery','564937KrgDBv','ck\x20ck-search','133KQgTAq','loadSourceResources','add','48pbeGfK','isLoading','558924NAGlnG'];_0x1b72=function(){return _0x144e63;};return _0x1b72();}import{AIChatContextResourcesSearchInputView as _0x34b624}from'./aichatresourcessearchinputview.js';import{AISkeletonView as _0x16e8bf,SKELETON_DEFINITIONS as _0x24b4af}from'../../../../aicore/ui/aiskeleton.js';export class AIChatContextResourcesView extends _0xfdd9c4{[_0x5348ee(0x11d)];[_0x5348ee(0x141)];[_0x5348ee(0x11e)];[_0x5348ee(0x136)];[_0x5348ee(0x13d)];[_0x5348ee(0x143)];[_0x5348ee(0x11b)];[_0x5348ee(0x127)]=null;constructor(_0x33da31,_0x232054){const _0x490b72=_0x5348ee;super(_0x33da31),this[_0x490b72(0x143)]=_0x232054[_0x490b72(0x123)],this[_0x490b72(0x11e)]=_0x232054[_0x490b72(0x11c)]??0x7,this[_0x490b72(0x137)](_0x490b72(0x134),!0x0),this[_0x490b72(0x11d)]=this[_0x490b72(0x116)](),this[_0x490b72(0x141)]=this[_0x490b72(0x125)](),this[_0x490b72(0x136)]=this[_0x490b72(0x13c)](),this[_0x490b72(0x13d)]=this[_0x490b72(0x140)](),this[_0x490b72(0x11b)]=new _0x1e9f80([this[_0x490b72(0x13d)],this[_0x490b72(0x136)]]),this[_0x490b72(0x126)]({'tag':_0x490b72(0x11f),'attributes':{'class':_0x490b72(0x121)},'children':this[_0x490b72(0x11b)]});}[_0x5348ee(0x116)](){const _0x228a40=_0x5348ee;return new _0x34b624(this[_0x228a40(0x142)]);}[_0x5348ee(0x125)](){const _0x5c1498=_0x5348ee,_0x41392b=new _0xfdd9c4(this[_0x5c1498(0x142)]);return _0x41392b[_0x5c1498(0x126)]({'tag':_0x5c1498(0x11f),'attributes':{'class':_0x5c1498(0x12f)},'children':[this[_0x5c1498(0x11d)]]}),this[_0x5c1498(0x11d)]['on'](_0x5c1498(0x13e),(_0x3fccdf,_0x517cb6)=>{const _0x42a1cc=_0x5c1498;this[_0x42a1cc(0x13b)](_0x517cb6),this[_0x42a1cc(0x143)][_0x42a1cc(0x117)]&&this[_0x42a1cc(0x136)][_0x42a1cc(0x120)](_0x517cb6);}),_0x41392b;}[_0x5348ee(0x13c)](){const _0x40c18a=_0x5348ee,_0x24340d=new _0x57ccc8(this[_0x40c18a(0x142)],this[_0x40c18a(0x143)]);return _0x24340d[_0x40c18a(0x128)](_0x40c18a(0x144))['to'](this),_0x24340d[_0x40c18a(0x145)]({'attributes':{'class':this[_0x40c18a(0x139)]['if'](_0x40c18a(0x134),_0x40c18a(0x11a))}}),_0x24340d;}[_0x5348ee(0x140)](){const _0x356795=_0x5348ee,_0x11d2ad=new _0x16e8bf(this[_0x356795(0x142)],_0x24b4af[_0x356795(0x115)]);return _0x11d2ad[_0x356795(0x145)]({'attributes':{'class':[this[_0x356795(0x139)]['if'](_0x356795(0x134),_0x356795(0x11a),_0x4b2711=>!_0x4b2711)]}}),_0x11d2ad;}[_0x5348ee(0x119)](){const _0x494f47=_0x5348ee;super[_0x494f47(0x119)](),this[_0x494f47(0x13b)]('');}[_0x5348ee(0x13b)](_0x3c8fd9){const _0x2860e0=_0x5348ee,_0x5e2b98=_0x3d08c2();this[_0x2860e0(0x127)]=_0x5e2b98,this[_0x2860e0(0x12c)](_0x2860e0(0x131),{'sourceId':this[_0x2860e0(0x143)]['id'],'query':_0x3c8fd9,'uid':_0x5e2b98}),this[_0x2860e0(0x134)]=!0x0;}[_0x5348ee(0x124)](_0x52e63e,_0xd98c91){const _0x1ddc24=_0x5348ee;if(_0xd98c91&&_0xd98c91!==this[_0x1ddc24(0x127)])return;const _0x346d63=this[_0x1ddc24(0x143)][_0x1ddc24(0x117)]?this[_0x1ddc24(0x11d)][_0x1ddc24(0x12d)]():'';this[_0x1ddc24(0x136)][_0x1ddc24(0x124)](_0x52e63e,_0x346d63),_0x52e63e[_0x1ddc24(0x146)]>=this[_0x1ddc24(0x11e)]&&!this[_0x1ddc24(0x11b)][_0x1ddc24(0x13f)](this[_0x1ddc24(0x141)])&&this[_0x1ddc24(0x11b)][_0x1ddc24(0x132)](this[_0x1ddc24(0x141)],0x0),requestAnimationFrame(()=>{const _0x175a1e=_0x1ddc24;this[_0x175a1e(0x134)]=!0x1;});}[_0x5348ee(0x122)](_0x5b5c27,_0x2c8faa){const _0x5152ce=_0x5348ee;this[_0x5152ce(0x136)][_0x5152ce(0x122)](_0x5b5c27,_0x2c8faa);}}
23
+ const _0x2131d0=_0x3c17;function _0x269d(){const _0x2c7488=['extendTemplate','add','2CtFKnz','source','length','21302hHQglD','updateResourceState','loadSourceResources','useDefaultFiltering','children','search','_createSearchSection','_searchSection','1301520FmVxLA','ck\x20ck-search','addResourceToContext','327245seFtZh','has','313884oxXVuw','_source','setTemplate','_latestLoadResourcesUid','_searchView','getQuery','locale','_skeletonLoader','bindTemplate','fire','_resourcesListView','searchInputVisibleFrom','_createResourcesListView','isLoading','_createSkeletonView','295314aimBov','highlightText','setResources','div','ck-ai-chat-resources','_searchInputVisibleFrom','delegate','4vWJtok','loadResources','_createSearchView','render','ck-hidden','254954VNHLZv','aiChatResources','2340054OzAgTd','set'];_0x269d=function(){return _0x2c7488;};return _0x269d();}(function(_0x403b20,_0x3254db){const _0x28abc0=_0x3c17,_0xcb0896=_0x403b20();while(!![]){try{const _0x40b0ed=parseInt(_0x28abc0(0x9c))/0x1*(parseInt(_0x28abc0(0x99))/0x2)+-parseInt(_0x28abc0(0xb8))/0x3+-parseInt(_0x28abc0(0xbf))/0x4*(-parseInt(_0x28abc0(0xa7))/0x5)+parseInt(_0x28abc0(0xa9))/0x6+-parseInt(_0x28abc0(0x93))/0x7+-parseInt(_0x28abc0(0xa4))/0x8+parseInt(_0x28abc0(0x95))/0x9;if(_0x40b0ed===_0x3254db)break;else _0xcb0896['push'](_0xcb0896['shift']());}catch(_0x2c98c2){_0xcb0896['push'](_0xcb0896['shift']());}}}(_0x269d,0x18c91));import{View as _0x421f44,ViewCollection as _0x36f10c}from'ckeditor5/src/ui.js';import{uid as _0xfe807b}from'ckeditor5/src/utils.js';import{AIChatContextResourcesListView as _0x54d672}from'./aichatcontextresourceslistview.js';function _0x3c17(_0xaaf30e,_0x2cef61){const _0x269dcb=_0x269d();return _0x3c17=function(_0x3c17ea,_0x5cfd23){_0x3c17ea=_0x3c17ea-0x90;let _0x2e9651=_0x269dcb[_0x3c17ea];return _0x2e9651;},_0x3c17(_0xaaf30e,_0x2cef61);}import{AIChatContextResourcesSearchInputView as _0x1031de}from'./aichatresourcessearchinputview.js';import{AISkeletonView as _0x2eec57,SKELETON_DEFINITIONS as _0x1ac2c4}from'../../../../aicore/ui/aiskeleton.js';export class AIChatContextResourcesView extends _0x421f44{[_0x2131d0(0xad)];[_0x2131d0(0xa3)];[_0x2131d0(0xbd)];[_0x2131d0(0xb3)];[_0x2131d0(0xb0)];[_0x2131d0(0xaa)];[_0x2131d0(0xa0)];[_0x2131d0(0xac)]=null;constructor(_0x1a6499,_0x2e6fa6){const _0x52f600=_0x2131d0;super(_0x1a6499),this[_0x52f600(0xaa)]=_0x2e6fa6[_0x52f600(0x9a)],this[_0x52f600(0xbd)]=_0x2e6fa6[_0x52f600(0xb4)]??0x7,this[_0x52f600(0x96)](_0x52f600(0xb6),!0x0),this[_0x52f600(0xad)]=this[_0x52f600(0x90)](),this[_0x52f600(0xa3)]=this[_0x52f600(0xa2)](),this[_0x52f600(0xb3)]=this[_0x52f600(0xb5)](),this[_0x52f600(0xb0)]=this[_0x52f600(0xb7)](),this[_0x52f600(0xa0)]=new _0x36f10c([this[_0x52f600(0xb0)],this[_0x52f600(0xb3)]]),this[_0x52f600(0xab)]({'tag':_0x52f600(0xbb),'attributes':{'class':_0x52f600(0xbc)},'children':this[_0x52f600(0xa0)]});}[_0x2131d0(0x90)](){const _0x514c4c=_0x2131d0;return new _0x1031de(this[_0x514c4c(0xaf)]);}[_0x2131d0(0xa2)](){const _0x13e799=_0x2131d0,_0x3b2efe=new _0x421f44(this[_0x13e799(0xaf)]);return _0x3b2efe[_0x13e799(0xab)]({'tag':_0x13e799(0xbb),'attributes':{'class':_0x13e799(0xa5)},'children':[this[_0x13e799(0xad)]]}),this[_0x13e799(0xad)]['on'](_0x13e799(0xa1),(_0x2dc36e,_0xc41e83)=>{const _0x653187=_0x13e799;this[_0x653187(0xc0)](_0xc41e83),this[_0x653187(0xaa)][_0x653187(0x9f)]&&this[_0x653187(0xb3)][_0x653187(0xb9)](_0xc41e83);}),_0x3b2efe;}[_0x2131d0(0xb5)](){const _0x2b1c0b=_0x2131d0,_0x34f04f=new _0x54d672(this[_0x2b1c0b(0xaf)],this[_0x2b1c0b(0xaa)]);return _0x34f04f[_0x2b1c0b(0xbe)](_0x2b1c0b(0xa6))['to'](this),_0x34f04f[_0x2b1c0b(0x97)]({'attributes':{'class':this[_0x2b1c0b(0xb1)]['if'](_0x2b1c0b(0xb6),_0x2b1c0b(0x92))}}),_0x34f04f;}[_0x2131d0(0xb7)](){const _0xeac8f2=_0x2131d0,_0x200672=new _0x2eec57(this[_0xeac8f2(0xaf)],_0x1ac2c4[_0xeac8f2(0x94)]);return _0x200672[_0xeac8f2(0x97)]({'attributes':{'class':[this[_0xeac8f2(0xb1)]['if'](_0xeac8f2(0xb6),_0xeac8f2(0x92),_0x50feb6=>!_0x50feb6)]}}),_0x200672;}[_0x2131d0(0x91)](){const _0x41fb1e=_0x2131d0;super[_0x41fb1e(0x91)](),this[_0x41fb1e(0xc0)]('');}[_0x2131d0(0xc0)](_0x4a555a){const _0x242336=_0x2131d0,_0x3f50c6=_0xfe807b();this[_0x242336(0xac)]=_0x3f50c6,this[_0x242336(0xb2)](_0x242336(0x9e),{'sourceId':this[_0x242336(0xaa)]['id'],'query':_0x4a555a,'uid':_0x3f50c6}),this[_0x242336(0xb6)]=!0x0;}[_0x2131d0(0xba)](_0x246669,_0x28559d){const _0x467ec5=_0x2131d0;if(_0x28559d&&_0x28559d!==this[_0x467ec5(0xac)])return;const _0x4252da=this[_0x467ec5(0xaa)][_0x467ec5(0x9f)]?this[_0x467ec5(0xad)][_0x467ec5(0xae)]():'';this[_0x467ec5(0xb3)][_0x467ec5(0xba)](_0x246669,_0x4252da),_0x246669[_0x467ec5(0x9b)]>=this[_0x467ec5(0xbd)]&&!this[_0x467ec5(0xa0)][_0x467ec5(0xa8)](this[_0x467ec5(0xa3)])&&this[_0x467ec5(0xa0)][_0x467ec5(0x98)](this[_0x467ec5(0xa3)],0x0),requestAnimationFrame(()=>{const _0x19ba3c=_0x467ec5;this[_0x19ba3c(0xb6)]=!0x1;});}[_0x2131d0(0x9d)](_0x8a3220,_0x5216c9){const _0x557fb5=_0x2131d0;this[_0x557fb5(0xb3)][_0x557fb5(0x9d)](_0x8a3220,_0x5216c9);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x450d28=_0x4771;(function(_0x16f120,_0x4aaadd){const _0x5406ca=_0x4771,_0x68e4b1=_0x16f120();while(!![]){try{const _0x333b59=parseInt(_0x5406ca(0x7f))/0x1*(parseInt(_0x5406ca(0x9e))/0x2)+-parseInt(_0x5406ca(0x97))/0x3+-parseInt(_0x5406ca(0x7e))/0x4+-parseInt(_0x5406ca(0x85))/0x5*(-parseInt(_0x5406ca(0x93))/0x6)+parseInt(_0x5406ca(0x83))/0x7*(parseInt(_0x5406ca(0xa7))/0x8)+-parseInt(_0x5406ca(0xa6))/0x9+-parseInt(_0x5406ca(0x91))/0xa*(-parseInt(_0x5406ca(0xa0))/0xb);if(_0x333b59===_0x4aaadd)break;else _0x68e4b1['push'](_0x68e4b1['shift']());}catch(_0x44d408){_0x68e4b1['push'](_0x68e4b1['shift']());}}}(_0x21f2,0x6011e));function _0x21f2(){const _0x3db7d1=['63334GukMOe','extendTemplate','115478OQLEDu','resource','isVisible','_updateIcon','ck-ai-chat-resources__item','set','6031836tRfCle','1160SbpuCz','ck-ai-chat-resources__item-title','trim','span','1225348Iuiqnb','7dXijfU','_createTitleView','TEXT','_createIconView','8708zcbUoj','URL','10WcbUIm','_iconView','ck-hidden','_setupTemplate','bindTemplate','div','render','setTemplate','FILE','ck-ai-chat-resources__item--in-context','_titleView','execute','1260VzIJXc','label','253482uEkpVm','content','ck-ai-chat-resources__item__icon','type','1317744mDwPYt','DOCUMENT','updateResourceState','isInContext','text','highlightText','getResourceIcon'];_0x21f2=function(){return _0x3db7d1;};return _0x21f2();}import{HighlightedTextView as _0x371900,IconView as _0x29f257,ListItemView as _0x33baa4}from'ckeditor5/src/ui.js';import{escapeRegExp as _0x3b0ee7}from'es-toolkit/compat';import{AIContextItemType as _0x4ab826}from'../../../../aicore/model/aicontext.js';import{IconFileUpload as _0x4f74c2,IconCheck as _0x12d077,IconDocument as _0x413e51,IconDocumentOutline as _0xd49a4a,IconLink as _0x542db5}from'@ckeditor/ckeditor5-icons';function _0x4771(_0x48ad25,_0x7a2db2){const _0x21f25f=_0x21f2();return _0x4771=function(_0x47717c,_0x4f0803){_0x47717c=_0x47717c-0x7c;let _0x22120e=_0x21f25f[_0x47717c];return _0x22120e;},_0x4771(_0x48ad25,_0x7a2db2);}const Jr=_0x450d28(0xa4),Kr=_0x450d28(0x8e),Mr=_0x450d28(0xa8),Nr=_0x450d28(0x95);export class AIChatResourceListItemView extends _0x33baa4{[_0x450d28(0xa1)];[_0x450d28(0x8f)];[_0x450d28(0x86)];constructor(_0x3d5852,_0x48f7ae){const _0x18862f=_0x450d28;super(_0x3d5852),this[_0x18862f(0xa1)]=_0x48f7ae,this[_0x18862f(0xa5)](_0x18862f(0x9a),!!_0x48f7ae[_0x18862f(0x9a)]),this[_0x18862f(0x8f)]=this[_0x18862f(0x80)](),this[_0x18862f(0x86)]=this[_0x18862f(0x82)](),this[_0x18862f(0x88)]();}[_0x450d28(0x8b)](){const _0x55d09c=_0x450d28;super[_0x55d09c(0x8b)]();}[_0x450d28(0x9d)](_0x23b509){const _0x1591a6=_0x450d28;if(_0x23b509[_0x1591a6(0x9a)])return _0x12d077;switch(_0x23b509[_0x1591a6(0x96)]){case _0x4ab826[_0x1591a6(0x98)]:return _0x413e51;case _0x4ab826[_0x1591a6(0x84)]:return _0x542db5;case _0x4ab826[_0x1591a6(0x8d)]:case _0x4ab826[_0x1591a6(0x81)]:return _0x4f74c2;default:return _0xd49a4a;}}[_0x450d28(0x9c)](_0x3845ad){const _0x3e5d50=_0x450d28;if(!_0x3845ad||''===_0x3845ad[_0x3e5d50(0x7c)]())return void this[_0x3e5d50(0x8f)][_0x3e5d50(0x9c)](null);const _0x3710c3=new RegExp(_0x3b0ee7(_0x3845ad),'gi');this[_0x3e5d50(0x8f)][_0x3e5d50(0x9c)](_0x3710c3);}[_0x450d28(0x99)](_0x2fe5d0){const _0x49ef6b=_0x450d28;this[_0x49ef6b(0xa1)][_0x49ef6b(0x9a)]=_0x2fe5d0,this[_0x49ef6b(0x9a)]=_0x2fe5d0,this[_0x49ef6b(0xa3)]();}[_0x450d28(0x80)](){const _0x56b56e=_0x450d28,_0x4eed65=new _0x371900();return _0x4eed65[_0x56b56e(0x9b)]=this[_0x56b56e(0xa1)][_0x56b56e(0x92)],_0x4eed65[_0x56b56e(0x9f)]({'tag':_0x56b56e(0x7d),'attributes':{'class':[Mr]}}),_0x4eed65;}[_0x450d28(0x82)](){const _0x37c477=_0x450d28,_0x48a6bc=new _0x29f257();return _0x48a6bc[_0x37c477(0x94)]=this[_0x37c477(0x9d)](this[_0x37c477(0xa1)]),_0x48a6bc;}[_0x450d28(0x88)](){const _0x55f754=_0x450d28,_0x3a6a56=this[_0x55f754(0x89)];this[_0x55f754(0x8c)]({'tag':_0x55f754(0x8a),'attributes':{'class':[Jr,_0x3a6a56['if'](_0x55f754(0xa2),_0x55f754(0x87),_0x197872=>!_0x197872),_0x3a6a56['if'](_0x55f754(0x9a),Kr)]},'children':[{'tag':_0x55f754(0x8a),'attributes':{'class':[Nr]},'children':[this[_0x55f754(0x86)]]},this[_0x55f754(0x8f)]],'on':{'click':_0x3a6a56['to'](_0x55f754(0x90))}});}[_0x450d28(0xa3)](){const _0x428200=_0x450d28;this[_0x428200(0x86)][_0x428200(0x94)]=this[_0x428200(0x9d)](this[_0x428200(0xa1)]);}}
23
+ function _0x1e8f(){const _0x2c2792=['326994EcWaYY','highlightText','extendTemplate','6604236nstOmX','2724240kqOudB','set','label','FILE','_createIconView','2133220FcYjIZ','content','TEXT','ck-ai-chat-resources__item','_createTitleView','ck-ai-chat-resources__item-title','execute','8hXXcHt','resource','isVisible','10812886wXXxzW','225383dAKlhw','updateResourceState','179796ywtjed','URL','_titleView','div','ck-hidden','type','span','trim','_setupTemplate','isInContext','text','2SOuaBU','bindTemplate','DOCUMENT','getResourceIcon','_updateIcon','ck-ai-chat-resources__item--in-context','setTemplate','render','ck-ai-chat-resources__item__icon','_iconView'];_0x1e8f=function(){return _0x2c2792;};return _0x1e8f();}function _0x4720(_0xa63aa8,_0x1c7ff6){const _0x1e8f27=_0x1e8f();return _0x4720=function(_0x472098,_0x5453dc){_0x472098=_0x472098-0x76;let _0x2b9e45=_0x1e8f27[_0x472098];return _0x2b9e45;},_0x4720(_0xa63aa8,_0x1c7ff6);}const _0x1d14a6=_0x4720;(function(_0x3cf4d8,_0x525cb5){const _0x403f23=_0x4720,_0xfd87c1=_0x3cf4d8();while(!![]){try{const _0x82ad0a=parseInt(_0x403f23(0x80))/0x1*(parseInt(_0x403f23(0x8d))/0x2)+parseInt(_0x403f23(0x82))/0x3+-parseInt(_0x403f23(0x9b))/0x4+parseInt(_0x403f23(0xa0))/0x5+-parseInt(_0x403f23(0x97))/0x6+-parseInt(_0x403f23(0x7f))/0x7*(-parseInt(_0x403f23(0x7c))/0x8)+-parseInt(_0x403f23(0x9a))/0x9;if(_0x82ad0a===_0x525cb5)break;else _0xfd87c1['push'](_0xfd87c1['shift']());}catch(_0x1f91e9){_0xfd87c1['push'](_0xfd87c1['shift']());}}}(_0x1e8f,0xc035e));import{HighlightedTextView as _0x3fddab,IconView as _0xdcadf,ListItemView as _0x4cd798}from'ckeditor5/src/ui.js';import{escapeRegExp as _0x5e81f2}from'es-toolkit/compat';import{AIContextItemType as _0x55e73d}from'../../../../aicore/model/aicontext.js';import{IconFileUpload as _0x3e4a48,IconCheck as _0x2e21f2,IconDocument as _0x54eadb,IconDocumentOutline as _0x12dbef,IconLink as _0x5f4622}from'@ckeditor/ckeditor5-icons';const zr=_0x1d14a6(0x78),Jr=_0x1d14a6(0x92),Kr=_0x1d14a6(0x7a),Mr=_0x1d14a6(0x95);export class AIChatResourceListItemView extends _0x4cd798{[_0x1d14a6(0x7d)];[_0x1d14a6(0x84)];[_0x1d14a6(0x96)];constructor(_0x2489f0,_0x3cd270){const _0x4b0814=_0x1d14a6;super(_0x2489f0),this[_0x4b0814(0x7d)]=_0x3cd270,this[_0x4b0814(0x9c)](_0x4b0814(0x8b),!!_0x3cd270[_0x4b0814(0x8b)]),this[_0x4b0814(0x84)]=this[_0x4b0814(0x79)](),this[_0x4b0814(0x96)]=this[_0x4b0814(0x9f)](),this[_0x4b0814(0x8a)]();}[_0x1d14a6(0x94)](){const _0x12d768=_0x1d14a6;super[_0x12d768(0x94)]();}[_0x1d14a6(0x90)](_0x130f38){const _0x33baa9=_0x1d14a6;if(_0x130f38[_0x33baa9(0x8b)])return _0x2e21f2;switch(_0x130f38[_0x33baa9(0x87)]){case _0x55e73d[_0x33baa9(0x8f)]:return _0x54eadb;case _0x55e73d[_0x33baa9(0x83)]:return _0x5f4622;case _0x55e73d[_0x33baa9(0x9e)]:case _0x55e73d[_0x33baa9(0x77)]:return _0x3e4a48;default:return _0x12dbef;}}[_0x1d14a6(0x98)](_0x431a7a){const _0x41bda8=_0x1d14a6;if(!_0x431a7a||''===_0x431a7a[_0x41bda8(0x89)]())return void this[_0x41bda8(0x84)][_0x41bda8(0x98)](null);const _0x251d36=new RegExp(_0x5e81f2(_0x431a7a),'gi');this[_0x41bda8(0x84)][_0x41bda8(0x98)](_0x251d36);}[_0x1d14a6(0x81)](_0x469285){const _0x485456=_0x1d14a6;this[_0x485456(0x7d)][_0x485456(0x8b)]=_0x469285,this[_0x485456(0x8b)]=_0x469285,this[_0x485456(0x91)]();}[_0x1d14a6(0x79)](){const _0x8c278d=_0x1d14a6,_0x2db1c2=new _0x3fddab();return _0x2db1c2[_0x8c278d(0x8c)]=this[_0x8c278d(0x7d)][_0x8c278d(0x9d)],_0x2db1c2[_0x8c278d(0x99)]({'tag':_0x8c278d(0x88),'attributes':{'class':[Kr]}}),_0x2db1c2;}[_0x1d14a6(0x9f)](){const _0x1afe0e=_0x1d14a6,_0x19e660=new _0xdcadf();return _0x19e660[_0x1afe0e(0x76)]=this[_0x1afe0e(0x90)](this[_0x1afe0e(0x7d)]),_0x19e660;}[_0x1d14a6(0x8a)](){const _0x299f1d=_0x1d14a6,_0x999117=this[_0x299f1d(0x8e)];this[_0x299f1d(0x93)]({'tag':_0x299f1d(0x85),'attributes':{'class':[zr,_0x999117['if'](_0x299f1d(0x7e),_0x299f1d(0x86),_0x210238=>!_0x210238),_0x999117['if'](_0x299f1d(0x8b),Jr)]},'children':[{'tag':_0x299f1d(0x85),'attributes':{'class':[Mr]},'children':[this[_0x299f1d(0x96)]]},this[_0x299f1d(0x84)]],'on':{'click':_0x999117['to'](_0x299f1d(0x7b))}});}[_0x1d14a6(0x91)](){const _0x2c2c52=_0x1d14a6;this[_0x2c2c52(0x96)][_0x2c2c52(0x76)]=this[_0x2c2c52(0x90)](this[_0x2c2c52(0x7d)]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2ab050=_0x5932;function _0x5932(_0x2c47e8,_0x4cb8de){const _0x2ca2e2=_0x2ca2();return _0x5932=function(_0x59321b,_0x54a18f){_0x59321b=_0x59321b-0xf8;let _0x28bae6=_0x2ca2e2[_0x59321b];return _0x28bae6;},_0x5932(_0x2c47e8,_0x4cb8de);}(function(_0x6616fb,_0x540eae){const _0x29d413=_0x5932,_0x4c2a32=_0x6616fb();while(!![]){try{const _0xb1f4bd=-parseInt(_0x29d413(0x10f))/0x1*(parseInt(_0x29d413(0x10d))/0x2)+-parseInt(_0x29d413(0x127))/0x3*(-parseInt(_0x29d413(0x131))/0x4)+parseInt(_0x29d413(0x104))/0x5+parseInt(_0x29d413(0xfa))/0x6*(-parseInt(_0x29d413(0x11c))/0x7)+parseInt(_0x29d413(0x12b))/0x8+parseInt(_0x29d413(0x128))/0x9+-parseInt(_0x29d413(0x118))/0xa;if(_0xb1f4bd===_0x540eae)break;else _0x4c2a32['push'](_0x4c2a32['shift']());}catch(_0x47bec2){_0x4c2a32['push'](_0x4c2a32['shift']());}}}(_0x2ca2,0xd7b0f));import{BalloonPanelView as _0x4236ec,ButtonView as _0x5a37a2,clickOutsideHandler as _0x544055,FormHeaderView as _0x1f0fd7}from'ckeditor5/src/ui.js';import{IconPreviousArrow as _0xb6f0ac}from'@ckeditor/ckeditor5-icons';function _0x2ca2(){const _0x52dd62=['once','_bodyCollection','execute','getLimiterElement','change:isLoading','onLoadSourceResources','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','destroy','1594983MjfuXd','3468744SHpmMs','content','searchInputVisibleFrom','12910456hIitbD','updateResourceState','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_source','set','resource','_addSourceResourceContent','8ljLhTw','pin','values','ck-ai-chat-context-controls__source-balloon-panel','_sourceResourceBalloons','hide','724044CgqvlY','get','children','_createBackButton','onBackToContext','label','_createBalloonResourcesView','closeSourceResourceBalloon','_config','addResourceToContext','5696780SxlAew','delete','loadSourceResources','onBalloonClosed','isVisible','show','_createSourceResourceBalloonPanel','_getResourcesViewFromBalloon','onResourceSelected','23198MsggBt','_locale','62yWoNsE','showSourceResourcesBalloon','setResources','element','source','_createBalloonHeader','isAnyResourceBalloonVisible','_setupSingleResourceBalloonClickOutsideHandler','add','18752480NKkwnZ','populateSourceResourceBalloon','ck-button-icon\x20ck-button-back','clear','42letaIc','getTargetElement','extendTemplate'];_0x2ca2=function(){return _0x52dd62;};return _0x2ca2();}import{getTranslation as _0x33d0ef}from'../../../../aicore/utils/common-translations.js';import{AIChatContextResourcesView as _0x3f39aa}from'./aichatcontextresourcesview.js';const Bc=_0x2ab050(0x134),mc=_0x2ab050(0x11a),dc=_0x2ab050(0x12d);export class AIChatResourcesBalloonView{[_0x2ab050(0xf8)]=new Map();[_0x2ab050(0x120)];[_0x2ab050(0x10e)];[_0x2ab050(0x102)];constructor(_0x43bf93,_0x2b0bfe,_0x315a31){const _0x5dfe2e=_0x2ab050;this[_0x5dfe2e(0x10e)]=_0x43bf93,this[_0x5dfe2e(0x120)]=_0x2b0bfe,this[_0x5dfe2e(0x102)]=_0x315a31;}[_0x2ab050(0x110)]({source:_0x589e57,withBackButton:_0x14b220}){const _0x48bf05=_0x2ab050;let _0x4347f=this[_0x48bf05(0xf8)][_0x48bf05(0xfb)](_0x589e57['id']);_0x4347f||(_0x4347f=this[_0x48bf05(0x10a)](),this[_0x48bf05(0xf8)][_0x48bf05(0x12e)](_0x589e57['id'],_0x4347f),this[_0x48bf05(0x116)](_0x4347f)),this[_0x48bf05(0x130)]({'balloonPanel':_0x4347f,'source':_0x589e57,'withBackButton':_0x14b220}),_0x4347f[_0x48bf05(0x109)]();const _0xefa438=this[_0x48bf05(0x102)][_0x48bf05(0x11d)]();_0xefa438&&_0x4347f[_0x48bf05(0x132)]({'target':_0xefa438,'limiter':this[_0x48bf05(0x102)][_0x48bf05(0x122)]()});}[_0x2ab050(0x119)](_0x2aa6a8,_0x4d352f,_0x5abc54){const _0x5a9c67=_0x2ab050,_0x236a9a=this[_0x5a9c67(0xf8)][_0x5a9c67(0xfb)](_0x2aa6a8);if(!_0x236a9a)return;const _0x2cbe7=this[_0x5a9c67(0x10b)](_0x236a9a);_0x2cbe7&&(_0x2cbe7[_0x5a9c67(0x111)](_0x4d352f,_0x5abc54),_0x2cbe7[_0x5a9c67(0x11f)](_0x5a9c67(0x123),()=>{const _0x320def=_0x5a9c67;_0x236a9a[_0x320def(0x132)]({'target':this[_0x320def(0x102)][_0x320def(0x11d)](),'limiter':this[_0x320def(0x102)][_0x320def(0x122)]()});}));}[_0x2ab050(0x101)](_0x353929){const _0x1883f7=_0x2ab050,_0x56d5d3=this[_0x1883f7(0xf8)][_0x1883f7(0xfb)](_0x353929);_0x56d5d3&&requestAnimationFrame(()=>{const _0xb893bb=_0x1883f7;_0x56d5d3[_0xb893bb(0xf9)](),this[_0xb893bb(0xf8)][_0xb893bb(0x105)](_0x353929),this[_0xb893bb(0x102)][_0xb893bb(0x107)]();});}[_0x2ab050(0x115)](){const _0x286e7f=_0x2ab050;for(const _0x54b330 of this[_0x286e7f(0xf8)][_0x286e7f(0x133)]())if(_0x54b330[_0x286e7f(0x108)])return!0x0;return!0x1;}[_0x2ab050(0x12c)](_0x4c0012,_0x2708ef,_0x283181){const _0x323af6=_0x2ab050,_0xe1369=this[_0x323af6(0xf8)][_0x323af6(0xfb)](_0x4c0012);if(!_0xe1369||!_0xe1369[_0x323af6(0x108)])return;const _0x457840=this[_0x323af6(0x102)][_0x323af6(0x11d)]();if(!_0x457840)return;_0xe1369[_0x323af6(0x132)]({'target':_0x457840,'limiter':this[_0x323af6(0x102)][_0x323af6(0x122)]()});const _0x16e2ca=this[_0x323af6(0x10b)](_0xe1369);_0x16e2ca&&_0x16e2ca[_0x323af6(0x12c)](_0x2708ef,_0x283181);}[_0x2ab050(0x126)](){const _0x132d8e=_0x2ab050;for(const _0x3396fc of this[_0x132d8e(0xf8)][_0x132d8e(0x133)]())_0x3396fc[_0x132d8e(0x126)]();this[_0x132d8e(0xf8)][_0x132d8e(0x11b)]();}[_0x2ab050(0x10a)](){const _0x5f5d0a=_0x2ab050,_0x2d482d=new _0x4236ec(this[_0x5f5d0a(0x10e)]);return _0x2d482d[_0x5f5d0a(0x11e)]({'attributes':{'class':Bc}}),this[_0x5f5d0a(0x120)][_0x5f5d0a(0x117)](_0x2d482d),_0x2d482d;}[_0x2ab050(0x130)]({balloonPanel:_0x599dac,source:_0x5d1605,withBackButton:_0x250954}){const _0x4e348d=_0x2ab050;_0x599dac[_0x4e348d(0x129)][_0x4e348d(0x11b)]();const _0x156cf7=this[_0x4e348d(0x114)]({'balloonPanel':_0x599dac,'source':_0x5d1605,'withBackButton':_0x250954});_0x599dac[_0x4e348d(0x129)][_0x4e348d(0x117)](_0x156cf7);const _0x304cc9=this[_0x4e348d(0x100)](_0x5d1605);_0x599dac[_0x4e348d(0x129)][_0x4e348d(0x117)](_0x304cc9);}[_0x2ab050(0x114)]({balloonPanel:_0x2d69d6,source:_0x16b35a,withBackButton:_0x3cfee0}){const _0x3cf775=_0x2ab050,_0x46ec1b=new _0x1f0fd7(this[_0x3cf775(0x10e)],{'label':_0x16b35a[_0x3cf775(0xff)],'class':dc});return _0x3cfee0&&_0x46ec1b[_0x3cf775(0xfc)][_0x3cf775(0x117)](this[_0x3cf775(0xfd)](_0x2d69d6),0x0),_0x46ec1b;}[_0x2ab050(0xfd)](_0x17dde5){const _0x22f2c0=_0x2ab050,_0x168b4d=new _0x5a37a2(this[_0x22f2c0(0x10e)]);return _0x168b4d[_0x22f2c0(0x12e)]({'icon':_0xb6f0ac,'tooltip':_0x33d0ef(this[_0x22f2c0(0x10e)],_0x22f2c0(0x125)),'tooltipPosition':'n','class':mc}),_0x168b4d['on'](_0x22f2c0(0x121),()=>{const _0x20fbee=_0x22f2c0;_0x17dde5[_0x20fbee(0xf9)](),this[_0x20fbee(0x102)][_0x20fbee(0xfe)]();}),_0x168b4d;}[_0x2ab050(0x100)](_0x135c78){const _0x211339=_0x2ab050,_0x3fe832=new _0x3f39aa(this[_0x211339(0x10e)],{'source':_0x135c78,'searchInputVisibleFrom':this[_0x211339(0x102)][_0x211339(0x12a)]});return _0x3fe832['on'](_0x211339(0x106),(_0x29c886,_0x1418f7)=>{const _0x1aef4b=_0x211339;this[_0x1aef4b(0x102)][_0x1aef4b(0x124)](_0x1418f7);}),_0x3fe832['on'](_0x211339(0x103),(_0x33307d,_0x1d225a)=>{const _0x467fa1=_0x211339;this[_0x467fa1(0x102)][_0x467fa1(0x10c)](_0x1d225a[_0x467fa1(0x113)],_0x1d225a[_0x467fa1(0x12f)]),this[_0x467fa1(0x101)](_0x135c78['id']);}),_0x3fe832;}[_0x2ab050(0x10b)](_0xe06a9d){const _0x48f897=_0x2ab050,_0x2e6a59=_0xe06a9d[_0x48f897(0x129)][_0x48f897(0xfb)](0x1);return _0x2e6a59 instanceof _0x3f39aa?_0x2e6a59:null;}[_0x2ab050(0x116)](_0x2eda74){const _0xac308e=_0x2ab050;_0x544055({'emitter':_0x2eda74,'contextElements':[_0x2eda74[_0xac308e(0x112)]],'callback':()=>{const _0x583a17=_0xac308e;_0x2eda74[_0x583a17(0xf9)](),this[_0x583a17(0x102)][_0x583a17(0x107)]();},'activator':()=>_0x2eda74[_0xac308e(0x108)]});}}
23
+ const _0x3fca81=_0x230c;(function(_0x409ca1,_0x5816d6){const _0xb7a1a9=_0x230c,_0x85fdfc=_0x409ca1();while(!![]){try{const _0x24328c=-parseInt(_0xb7a1a9(0x12c))/0x1*(parseInt(_0xb7a1a9(0x140))/0x2)+-parseInt(_0xb7a1a9(0x15b))/0x3*(parseInt(_0xb7a1a9(0x161))/0x4)+-parseInt(_0xb7a1a9(0x14f))/0x5*(parseInt(_0xb7a1a9(0x15d))/0x6)+-parseInt(_0xb7a1a9(0x131))/0x7*(parseInt(_0xb7a1a9(0x15c))/0x8)+parseInt(_0xb7a1a9(0x156))/0x9*(parseInt(_0xb7a1a9(0x133))/0xa)+-parseInt(_0xb7a1a9(0x148))/0xb+parseInt(_0xb7a1a9(0x159))/0xc;if(_0x24328c===_0x5816d6)break;else _0x85fdfc['push'](_0x85fdfc['shift']());}catch(_0x41e087){_0x85fdfc['push'](_0x85fdfc['shift']());}}}(_0x56f3,0x39180));function _0x230c(_0x493314,_0x217714){const _0x56f3d5=_0x56f3();return _0x230c=function(_0x230ce3,_0x5d3902){_0x230ce3=_0x230ce3-0x124;let _0x202a35=_0x56f3d5[_0x230ce3];return _0x202a35;},_0x230c(_0x493314,_0x217714);}function _0x56f3(){const _0x1849bd=['closeSourceResourceBalloon','onBackToContext','10ZCzlLF','delete','extendTemplate','loadSourceResources','onBalloonClosed','_getResourcesViewFromBalloon','hide','_config','2309021MwaKvH','set','_addSourceResourceContent','source','clear','children','isAnyResourceBalloonVisible','415noLInq','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_source','get','_locale','_sourceResourceBalloons','getLimiterElement','once','1107CMJQwj','showSourceResourcesBalloon','add','11469360XEcITO','change:isLoading','3rHmjmd','3034504hhuoqB','8826ZlIaFW','ck-ai-chat-context-controls__source-balloon-panel','_createBalloonHeader','execute','1046872nwpndx','searchInputVisibleFrom','_createSourceResourceBalloonPanel','onResourceSelected','values','_createBackButton','getTargetElement','element','onLoadSourceResources','resource','9974QQHxyq','setResources','show','isVisible','content','7DliLdK','destroy','24470cSwRyR','_bodyCollection','ck-button-icon\x20ck-button-back','addResourceToContext','label','pin','updateResourceState','_setupSingleResourceBalloonClickOutsideHandler','_createBalloonResourcesView','populateSourceResourceBalloon','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT'];_0x56f3=function(){return _0x1849bd;};return _0x56f3();}import{BalloonPanelView as _0x366743,ButtonView as _0x2bcc9e,clickOutsideHandler as _0x2d9c06,FormHeaderView as _0x57a68f}from'ckeditor5/src/ui.js';import{IconPreviousArrow as _0x41f984}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x3d72ef}from'../../../../aicore/utils/common-translations.js';import{AIChatContextResourcesView as _0x425149}from'./aichatcontextresourcesview.js';const lc=_0x3fca81(0x15e),uc=_0x3fca81(0x135),hc=_0x3fca81(0x150);export class AIChatResourcesBalloonView{[_0x3fca81(0x153)]=new Map();[_0x3fca81(0x134)];[_0x3fca81(0x152)];[_0x3fca81(0x147)];constructor(_0x4b8f32,_0x12e026,_0x50f15f){const _0x537dae=_0x3fca81;this[_0x537dae(0x152)]=_0x4b8f32,this[_0x537dae(0x134)]=_0x12e026,this[_0x537dae(0x147)]=_0x50f15f;}[_0x3fca81(0x157)]({source:_0x45854b,withBackButton:_0x2e3f2a}){const _0x471003=_0x3fca81;let _0x5acb39=this[_0x471003(0x153)][_0x471003(0x151)](_0x45854b['id']);_0x5acb39||(_0x5acb39=this[_0x471003(0x124)](),this[_0x471003(0x153)][_0x471003(0x149)](_0x45854b['id'],_0x5acb39),this[_0x471003(0x13a)](_0x5acb39)),this[_0x471003(0x14a)]({'balloonPanel':_0x5acb39,'source':_0x45854b,'withBackButton':_0x2e3f2a}),_0x5acb39[_0x471003(0x12e)]();const _0x5e1a55=this[_0x471003(0x147)][_0x471003(0x128)]();_0x5e1a55&&_0x5acb39[_0x471003(0x138)]({'target':_0x5e1a55,'limiter':this[_0x471003(0x147)][_0x471003(0x154)]()});}[_0x3fca81(0x13c)](_0x3dfb5d,_0x360504,_0x5cb0fd){const _0x46252e=_0x3fca81,_0x45d819=this[_0x46252e(0x153)][_0x46252e(0x151)](_0x3dfb5d);if(!_0x45d819)return;const _0x5e07a5=this[_0x46252e(0x145)](_0x45d819);_0x5e07a5&&(_0x5e07a5[_0x46252e(0x12d)](_0x360504,_0x5cb0fd),_0x5e07a5[_0x46252e(0x155)](_0x46252e(0x15a),()=>{const _0x49fa18=_0x46252e;_0x45d819[_0x49fa18(0x138)]({'target':this[_0x49fa18(0x147)][_0x49fa18(0x128)](),'limiter':this[_0x49fa18(0x147)][_0x49fa18(0x154)]()});}));}[_0x3fca81(0x13e)](_0x5d3f6c){const _0x14a89c=_0x3fca81,_0x45d89d=this[_0x14a89c(0x153)][_0x14a89c(0x151)](_0x5d3f6c);_0x45d89d&&requestAnimationFrame(()=>{const _0xcf097e=_0x14a89c;_0x45d89d[_0xcf097e(0x146)](),this[_0xcf097e(0x153)][_0xcf097e(0x141)](_0x5d3f6c),this[_0xcf097e(0x147)][_0xcf097e(0x144)]();});}[_0x3fca81(0x14e)](){const _0x303174=_0x3fca81;for(const _0x369534 of this[_0x303174(0x153)][_0x303174(0x126)]())if(_0x369534[_0x303174(0x12f)])return!0x0;return!0x1;}[_0x3fca81(0x139)](_0x53b8b7,_0x275dde,_0x24e672){const _0xa57db1=_0x3fca81,_0x3f261c=this[_0xa57db1(0x153)][_0xa57db1(0x151)](_0x53b8b7);if(!_0x3f261c||!_0x3f261c[_0xa57db1(0x12f)])return;const _0x380c99=this[_0xa57db1(0x147)][_0xa57db1(0x128)]();if(!_0x380c99)return;_0x3f261c[_0xa57db1(0x138)]({'target':_0x380c99,'limiter':this[_0xa57db1(0x147)][_0xa57db1(0x154)]()});const _0x712cc8=this[_0xa57db1(0x145)](_0x3f261c);_0x712cc8&&_0x712cc8[_0xa57db1(0x139)](_0x275dde,_0x24e672);}[_0x3fca81(0x132)](){const _0x40a518=_0x3fca81;for(const _0x17f462 of this[_0x40a518(0x153)][_0x40a518(0x126)]())_0x17f462[_0x40a518(0x132)]();this[_0x40a518(0x153)][_0x40a518(0x14c)]();}[_0x3fca81(0x124)](){const _0x19f7bc=_0x3fca81,_0x248006=new _0x366743(this[_0x19f7bc(0x152)]);return _0x248006[_0x19f7bc(0x142)]({'attributes':{'class':lc}}),this[_0x19f7bc(0x134)][_0x19f7bc(0x158)](_0x248006),_0x248006;}[_0x3fca81(0x14a)]({balloonPanel:_0xbb4d78,source:_0x1bdabf,withBackButton:_0x1682dd}){const _0x36eeb7=_0x3fca81;_0xbb4d78[_0x36eeb7(0x130)][_0x36eeb7(0x14c)]();const _0x44f3db=this[_0x36eeb7(0x15f)]({'balloonPanel':_0xbb4d78,'source':_0x1bdabf,'withBackButton':_0x1682dd});_0xbb4d78[_0x36eeb7(0x130)][_0x36eeb7(0x158)](_0x44f3db);const _0x557558=this[_0x36eeb7(0x13b)](_0x1bdabf);_0xbb4d78[_0x36eeb7(0x130)][_0x36eeb7(0x158)](_0x557558);}[_0x3fca81(0x15f)]({balloonPanel:_0xadc9fb,source:_0x417579,withBackButton:_0x530076}){const _0x6c3de8=_0x3fca81,_0x8c8d99=new _0x57a68f(this[_0x6c3de8(0x152)],{'label':_0x417579[_0x6c3de8(0x137)],'class':hc});return _0x530076&&_0x8c8d99[_0x6c3de8(0x14d)][_0x6c3de8(0x158)](this[_0x6c3de8(0x127)](_0xadc9fb),0x0),_0x8c8d99;}[_0x3fca81(0x127)](_0x4e7d50){const _0x9fad6a=_0x3fca81,_0x53eb05=new _0x2bcc9e(this[_0x9fad6a(0x152)]);return _0x53eb05[_0x9fad6a(0x149)]({'icon':_0x41f984,'tooltip':_0x3d72ef(this[_0x9fad6a(0x152)],_0x9fad6a(0x13d)),'tooltipPosition':'n','class':uc}),_0x53eb05['on'](_0x9fad6a(0x160),()=>{const _0x2ef7f3=_0x9fad6a;_0x4e7d50[_0x2ef7f3(0x146)](),this[_0x2ef7f3(0x147)][_0x2ef7f3(0x13f)]();}),_0x53eb05;}[_0x3fca81(0x13b)](_0x139084){const _0x29c1f3=_0x3fca81,_0x38bfec=new _0x425149(this[_0x29c1f3(0x152)],{'source':_0x139084,'searchInputVisibleFrom':this[_0x29c1f3(0x147)][_0x29c1f3(0x162)]});return _0x38bfec['on'](_0x29c1f3(0x143),(_0x5173e2,_0x2dc936)=>{const _0xf0c90f=_0x29c1f3;this[_0xf0c90f(0x147)][_0xf0c90f(0x12a)](_0x2dc936);}),_0x38bfec['on'](_0x29c1f3(0x136),(_0x1c26e8,_0x182730)=>{const _0x5e75fc=_0x29c1f3;this[_0x5e75fc(0x147)][_0x5e75fc(0x125)](_0x182730[_0x5e75fc(0x14b)],_0x182730[_0x5e75fc(0x12b)]),this[_0x5e75fc(0x13e)](_0x139084['id']);}),_0x38bfec;}[_0x3fca81(0x145)](_0x54517e){const _0x55dc5c=_0x3fca81,_0x272382=_0x54517e[_0x55dc5c(0x130)][_0x55dc5c(0x151)](0x1);return _0x272382 instanceof _0x425149?_0x272382:null;}[_0x3fca81(0x13a)](_0x2ba04e){const _0xfa379c=_0x3fca81;_0x2d9c06({'emitter':_0x2ba04e,'contextElements':[_0x2ba04e[_0xfa379c(0x129)]],'callback':()=>{const _0x35d8e2=_0xfa379c;_0x2ba04e[_0x35d8e2(0x146)](),this[_0x35d8e2(0x147)][_0x35d8e2(0x144)]();},'activator':()=>_0x2ba04e[_0xfa379c(0x12f)]});}}