@ckeditor/ckeditor5-ai 47.7.4 → 47.7.5-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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
- const _0x5a6483=_0x3724;function _0x1236(){const _0x353f94=['_updateConfirmButtonState','setTemplate','ck-ai-chat-context-controls__url-input-section','div','backButton','errorText','keystrokes','set','ck-button-icon\x20ck-button-back','locale','_isValidUrl','setError','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','fire','AI_CHAT_CONTEXT_URL_INVALID_ERROR','input','3622644UEeClM','30nTWcjC','_setupKeystrokes','fieldView','33VlUajs','6672sPWDMm','element','confirmButton','_handleSubmit','trim','value','\x20ck-hidden','ck-labeled-field-view_empty','ck-ai-chat-context-controls__url-form','urlInputField','add','585012JDYsrU','getValue','7bnIjpq','focusCycler','AI_CHAT_CONTEXT_URL_PLACEHOLDER','refreshBalloon','_createBackButton','1073224gLlGIr','AI_CHAT_CONTEXT_URL_LABEL','forEach','168230CHvund','stop','_setupTemplate','clearError','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','submitUrl','shift+tab','createCollection','change:withBackButton','_focusables','listenTo','7uuaidG','destroy','_createConfirmButton','form','1252FeHdpm','_createUrlInputField','cancel','3891114WHtHSw','isEnabled','clear','focusTracker','ck-button-icon','execute','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','withBackButton','AI_CHAT_CONTEXT_URL_ADD_URL','tab','length','focus','render','children','_setupEventHandlers','esc','8974490MZQQkg','submit'];_0x1236=function(){return _0x353f94;};return _0x1236();}(function(_0x286ddf,_0x1d70f1){const _0x58d216=_0x3724,_0x3e160c=_0x286ddf();while(!![]){try{const _0x3b8004=-parseInt(_0x58d216(0x18e))/0x1*(parseInt(_0x58d216(0x196))/0x2)+-parseInt(_0x58d216(0x181))/0x3*(parseInt(_0x58d216(0x1a5))/0x4)+-parseInt(_0x58d216(0x17d))/0x5*(parseInt(_0x58d216(0x18c))/0x6)+-parseInt(_0x58d216(0x1a1))/0x7*(-parseInt(_0x58d216(0x193))/0x8)+parseInt(_0x58d216(0x1a8))/0x9+parseInt(_0x58d216(0x16a))/0xa+-parseInt(_0x58d216(0x180))/0xb*(-parseInt(_0x58d216(0x17c))/0xc);if(_0x3b8004===_0x1d70f1)break;else _0x3e160c['push'](_0x3e160c['shift']());}catch(_0x5604c3){_0x3e160c['push'](_0x3e160c['shift']());}}}(_0x1236,0x79fe0));import{FocusTracker as _0x26170d,KeystrokeHandler as _0x103d3e}from'ckeditor5/src/utils.js';import{ButtonView as _0xf60fe9,FocusCycler as _0x269f42,LabeledFieldView as _0x1f91d0,View as _0x149901,FormHeaderView as _0x26ad26,createLabeledInputText as _0x3e1ff2,submitHandler as _0x5c9b78}from'ckeditor5/src/ui.js';function _0x3724(_0x593fad,_0x377028){const _0x123675=_0x1236();return _0x3724=function(_0x3724a0,_0x51d6d9){_0x3724a0=_0x3724a0-0x16a;let _0x2fe3ee=_0x123675[_0x3724a0];return _0x2fe3ee;},_0x3724(_0x593fad,_0x377028);}import{IconCheck as _0x3028e1,IconPreviousArrow as _0x2f491e}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x55b03e}from'../../../aicore/utils/common-translations.js';const oh=_0x5a6483(0x189),ch=_0x5a6483(0x16e);export class AIChatContextPanelUrlInputView extends _0x149901{[_0x5a6483(0x1ab)];[_0x5a6483(0x172)];[_0x5a6483(0x19f)];[_0x5a6483(0x18f)];[_0x5a6483(0x18a)];[_0x5a6483(0x170)];[_0x5a6483(0x183)];constructor(_0x457c4b){const _0x6959f1=_0x5a6483;super(_0x457c4b),this[_0x6959f1(0x1ab)]=new _0x26170d(),this[_0x6959f1(0x172)]=new _0x103d3e(),this[_0x6959f1(0x170)]=this[_0x6959f1(0x192)](),this[_0x6959f1(0x18a)]=this[_0x6959f1(0x1a6)](),this[_0x6959f1(0x183)]=this[_0x6959f1(0x1a3)](),this[_0x6959f1(0x19f)]=this[_0x6959f1(0x19d)]([this[_0x6959f1(0x170)],this[_0x6959f1(0x18a)],this[_0x6959f1(0x183)]]),this[_0x6959f1(0x18f)]=new _0x269f42({'focusables':this[_0x6959f1(0x19f)],'focusTracker':this[_0x6959f1(0x1ab)],'keystrokeHandler':this[_0x6959f1(0x172)],'actions':{'focusPrevious':_0x6959f1(0x19c),'focusNext':_0x6959f1(0x1b1)}}),this[_0x6959f1(0x173)](_0x6959f1(0x1af),!0x0),this[_0x6959f1(0x198)](),this[_0x6959f1(0x1b6)](),this[_0x6959f1(0x17e)]();}[_0x5a6483(0x1b4)](){const _0x50fa9a=_0x5a6483;super[_0x50fa9a(0x1b4)](),this[_0x50fa9a(0x19f)][_0x50fa9a(0x195)](_0x59bf21=>{const _0x5b9873=_0x50fa9a;this[_0x5b9873(0x1ab)][_0x5b9873(0x18b)](_0x59bf21[_0x5b9873(0x182)]),this[_0x5b9873(0x172)][_0x5b9873(0x1a0)](_0x59bf21[_0x5b9873(0x182)]);}),_0x5c9b78({'view':this}),this[_0x50fa9a(0x1b3)]();}[_0x5a6483(0x1a2)](){const _0x2751d4=_0x5a6483;super[_0x2751d4(0x1a2)](),this[_0x2751d4(0x1ab)][_0x2751d4(0x1a2)](),this[_0x2751d4(0x172)][_0x2751d4(0x1a2)]();}[_0x5a6483(0x1b3)](){const _0x5816a4=_0x5a6483;this[_0x5816a4(0x18a)][_0x5816a4(0x1b3)]();}[_0x5a6483(0x18d)](){const _0x3a10a6=_0x5a6483;return this[_0x3a10a6(0x18a)][_0x3a10a6(0x17f)][_0x3a10a6(0x182)]?.[_0x3a10a6(0x186)]?.[_0x3a10a6(0x185)]()||'';}[_0x5a6483(0x1aa)](){const _0x498a6f=_0x5a6483;this[_0x498a6f(0x18a)][_0x498a6f(0x17f)][_0x498a6f(0x182)][_0x498a6f(0x186)]='',this[_0x498a6f(0x18a)][_0x498a6f(0x171)]=null,this[_0x498a6f(0x183)][_0x498a6f(0x1a9)]=!0x1;}[_0x5a6483(0x177)](_0x15c349){const _0x53f1a9=_0x5a6483;this[_0x53f1a9(0x18a)][_0x53f1a9(0x171)]=_0x15c349,this[_0x53f1a9(0x16c)](),this[_0x53f1a9(0x179)](_0x53f1a9(0x191));}[_0x5a6483(0x199)](){const _0x1223f9=_0x5a6483;this[_0x1223f9(0x18a)][_0x1223f9(0x171)]=null,this[_0x1223f9(0x16c)]();}[_0x5a6483(0x192)](){const _0x97ff9b=_0x5a6483,_0x45ce0a=new _0xf60fe9(this[_0x97ff9b(0x175)]);return _0x45ce0a[_0x97ff9b(0x173)]({'icon':_0x2f491e,'tooltip':_0x55b03e(this[_0x97ff9b(0x175)],_0x97ff9b(0x178)),'tooltipPosition':'n','class':[_0x97ff9b(0x174)]}),this['on'](_0x97ff9b(0x19e),(_0x3b716e,_0x322d6e,_0x560e33)=>{const _0x1f50e0=_0x97ff9b;_0x45ce0a[_0x1f50e0(0x173)]({'class':[_0x1f50e0(0x174)+(_0x560e33?'':_0x1f50e0(0x187))]});}),_0x45ce0a;}[_0x5a6483(0x1a6)](){const _0x4c24f1=_0x5a6483,_0x4512ba=new _0x1f91d0(this[_0x4c24f1(0x175)],_0x3e1ff2);return _0x4512ba[_0x4c24f1(0x173)]({'label':_0x55b03e(this[_0x4c24f1(0x175)],_0x4c24f1(0x194)),'class':_0x4c24f1(0x188)}),_0x4512ba[_0x4c24f1(0x17f)][_0x4c24f1(0x173)]({'placeholder':_0x55b03e(this[_0x4c24f1(0x175)],_0x4c24f1(0x190))}),_0x4512ba;}[_0x5a6483(0x1a3)](){const _0xc9247f=_0x5a6483,_0x928154=new _0xf60fe9(this[_0xc9247f(0x175)]);return _0x928154[_0xc9247f(0x173)]({'icon':_0x3028e1,'tooltip':_0x55b03e(this[_0xc9247f(0x175)],_0xc9247f(0x1b0)),'tooltipPosition':'n','class':_0xc9247f(0x1ac),'type':_0xc9247f(0x16b),'isEnabled':!0x1}),_0x928154;}[_0x5a6483(0x198)](){const _0x22cf4e=_0x5a6483,_0x3ef0c3=new _0x26ad26(this[_0x22cf4e(0x175)],{'label':_0x55b03e(this[_0x22cf4e(0x175)],_0x22cf4e(0x1b0)),'class':_0x22cf4e(0x1ae)});_0x3ef0c3[_0x22cf4e(0x1b5)][_0x22cf4e(0x18b)](this[_0x22cf4e(0x170)],0x0),this[_0x22cf4e(0x16d)]({'tag':_0x22cf4e(0x1a4),'attributes':{'class':oh,'tabindex':'-1'},'children':[_0x3ef0c3,{'tag':_0x22cf4e(0x16f),'attributes':{'class':ch},'children':[this[_0x22cf4e(0x18a)],this[_0x22cf4e(0x183)]]}]});}[_0x5a6483(0x1b6)](){const _0x528d37=_0x5a6483;this[_0x528d37(0x170)]['on'](_0x528d37(0x1ad),()=>{const _0x207d40=_0x528d37;this[_0x207d40(0x1aa)](),this[_0x207d40(0x179)](_0x207d40(0x1a7));}),this[_0x528d37(0x18a)][_0x528d37(0x17f)]['on'](_0x528d37(0x17b),()=>{const _0x54f659=_0x528d37;this[_0x54f659(0x199)](),this[_0x54f659(0x16c)](),this[_0x54f659(0x179)](_0x54f659(0x191));}),this['on'](_0x528d37(0x16b),_0x35dec7=>{const _0x48a79a=_0x528d37;_0x35dec7[_0x48a79a(0x197)](),this[_0x48a79a(0x184)]();});}[_0x5a6483(0x17e)](){const _0x5609fa=_0x5a6483;this[_0x5609fa(0x172)][_0x5609fa(0x173)](_0x5609fa(0x1b7),(_0x2f4d8c,_0x32d42c)=>{const _0x254c4f=_0x5609fa;this[_0x254c4f(0x1aa)](),this[_0x254c4f(0x179)](_0x254c4f(0x1a7)),_0x32d42c();});}[_0x5a6483(0x184)](){const _0x161136=_0x5a6483,_0x14647a=this[_0x161136(0x18d)]()[_0x161136(0x185)]();_0x14647a?this[_0x161136(0x176)](_0x14647a)?(this[_0x161136(0x199)](),this[_0x161136(0x179)](_0x161136(0x19b),_0x14647a)):this[_0x161136(0x177)](_0x55b03e(this[_0x161136(0x175)],_0x161136(0x17a))):this[_0x161136(0x177)](_0x55b03e(this[_0x161136(0x175)],_0x161136(0x19a)));}[_0x5a6483(0x16c)](){const _0x192320=_0x5a6483,_0x3a0572=this[_0x192320(0x18d)]()[_0x192320(0x185)](),_0x2c5fcd=!!this[_0x192320(0x18a)][_0x192320(0x171)];this[_0x192320(0x183)][_0x192320(0x1a9)]=_0x3a0572[_0x192320(0x1b2)]>0x0&&!_0x2c5fcd;}[_0x5a6483(0x176)](_0x6a832a){try{return!!new URL(_0x6a832a);}catch{return!0x1;}}}
23
+ const _0x234af1=_0x4baa;(function(_0x3267f8,_0x398622){const _0x5c5092=_0x4baa,_0x1d8c8e=_0x3267f8();while(!![]){try{const _0x4fe12b=parseInt(_0x5c5092(0x202))/0x1*(-parseInt(_0x5c5092(0x1ca))/0x2)+-parseInt(_0x5c5092(0x200))/0x3+-parseInt(_0x5c5092(0x1e1))/0x4+parseInt(_0x5c5092(0x1c9))/0x5*(-parseInt(_0x5c5092(0x1f2))/0x6)+-parseInt(_0x5c5092(0x1ef))/0x7+parseInt(_0x5c5092(0x1ee))/0x8+parseInt(_0x5c5092(0x1de))/0x9*(parseInt(_0x5c5092(0x1cb))/0xa);if(_0x4fe12b===_0x398622)break;else _0x1d8c8e['push'](_0x1d8c8e['shift']());}catch(_0x4d6239){_0x1d8c8e['push'](_0x1d8c8e['shift']());}}}(_0x198d,0x71dd6));function _0x4baa(_0x36c608,_0x301aea){const _0x198d89=_0x198d();return _0x4baa=function(_0x4baa48,_0xfd1ee2){_0x4baa48=_0x4baa48-0x1b7;let _0x5a182c=_0x198d89[_0x4baa48];return _0x5a182c;},_0x4baa(_0x36c608,_0x301aea);}function _0x198d(){const _0x42c6d9=['stop','_createUrlInputField','tab','urlInputField','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','ck-ai-chat-context-controls__url-input-section','submitUrl','render','input','18lBYTif','_updateConfirmButtonState','execute','1882276LVZFwa','ck-ai-chat-context-controls__url-form','value','children','locale','clear','ck-button-icon','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','clearError','AI_CHAT_CONTEXT_URL_ADD_URL','shift+tab','cancel','withBackButton','2246696YxwWTC','4673844ZRxnmY','div','_handleSubmit','978DwEVwz','ck-button-icon\x20ck-button-back','_setupTemplate','AI_CHAT_CONTEXT_URL_PLACEHOLDER','AI_CHAT_CONTEXT_URL_INVALID_ERROR','forEach','_isValidUrl','length','setTemplate','_createBackButton','confirmButton','createCollection','listenTo','refreshBalloon','1801086jLMOjM','\x20ck-hidden','19059pAguXm','submit','getValue','_focusables','focusTracker','change:withBackButton','focusCycler','keystrokes','errorText','focus','set','add','isEnabled','backButton','ck-labeled-field-view_empty','fieldView','AI_CHAT_CONTEXT_URL_LABEL','destroy','element','1075vRHDly','70NOcpQE','13131430OjJjrj','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','trim','_setupKeystrokes','esc','form','setError','_createConfirmButton','_setupEventHandlers','fire'];_0x198d=function(){return _0x42c6d9;};return _0x198d();}import{FocusTracker as _0x3fbdb8,KeystrokeHandler as _0x1e6787}from'ckeditor5/src/utils.js';import{ButtonView as _0x27c405,FocusCycler as _0x3f1888,LabeledFieldView as _0x1be240,View as _0x259f0e,FormHeaderView as _0x57114d,createLabeledInputText as _0xd9e52d,submitHandler as _0x59e43e}from'ckeditor5/src/ui.js';import{IconCheck as _0x1b52ea,IconPreviousArrow as _0x301f34}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x13e2b2}from'../../../aicore/utils/common-translations.js';const ch=_0x234af1(0x1e2),rh=_0x234af1(0x1da);export class AIChatContextPanelUrlInputView extends _0x259f0e{[_0x234af1(0x1ba)];[_0x234af1(0x1bd)];[_0x234af1(0x1b9)];[_0x234af1(0x1bc)];[_0x234af1(0x1d8)];[_0x234af1(0x1c3)];[_0x234af1(0x1fc)];constructor(_0x4db551){const _0x419ad2=_0x234af1;super(_0x4db551),this[_0x419ad2(0x1ba)]=new _0x3fbdb8(),this[_0x419ad2(0x1bd)]=new _0x1e6787(),this[_0x419ad2(0x1c3)]=this[_0x419ad2(0x1fb)](),this[_0x419ad2(0x1d8)]=this[_0x419ad2(0x1d6)](),this[_0x419ad2(0x1fc)]=this[_0x419ad2(0x1d2)](),this[_0x419ad2(0x1b9)]=this[_0x419ad2(0x1fd)]([this[_0x419ad2(0x1c3)],this[_0x419ad2(0x1d8)],this[_0x419ad2(0x1fc)]]),this[_0x419ad2(0x1bc)]=new _0x3f1888({'focusables':this[_0x419ad2(0x1b9)],'focusTracker':this[_0x419ad2(0x1ba)],'keystrokeHandler':this[_0x419ad2(0x1bd)],'actions':{'focusPrevious':_0x419ad2(0x1eb),'focusNext':_0x419ad2(0x1d7)}}),this[_0x419ad2(0x1c0)](_0x419ad2(0x1ed),!0x0),this[_0x419ad2(0x1f4)](),this[_0x419ad2(0x1d3)](),this[_0x419ad2(0x1ce)]();}[_0x234af1(0x1dc)](){const _0x22068f=_0x234af1;super[_0x22068f(0x1dc)](),this[_0x22068f(0x1b9)][_0x22068f(0x1f7)](_0x1b3524=>{const _0x3ccd69=_0x22068f;this[_0x3ccd69(0x1ba)][_0x3ccd69(0x1c1)](_0x1b3524[_0x3ccd69(0x1c8)]),this[_0x3ccd69(0x1bd)][_0x3ccd69(0x1fe)](_0x1b3524[_0x3ccd69(0x1c8)]);}),_0x59e43e({'view':this}),this[_0x22068f(0x1bf)]();}[_0x234af1(0x1c7)](){const _0x379275=_0x234af1;super[_0x379275(0x1c7)](),this[_0x379275(0x1ba)][_0x379275(0x1c7)](),this[_0x379275(0x1bd)][_0x379275(0x1c7)]();}[_0x234af1(0x1bf)](){const _0x5c725c=_0x234af1;this[_0x5c725c(0x1d8)][_0x5c725c(0x1bf)]();}[_0x234af1(0x1b8)](){const _0x2934b0=_0x234af1;return this[_0x2934b0(0x1d8)][_0x2934b0(0x1c5)][_0x2934b0(0x1c8)]?.[_0x2934b0(0x1e3)]?.[_0x2934b0(0x1cd)]()||'';}[_0x234af1(0x1e6)](){const _0x69e811=_0x234af1;this[_0x69e811(0x1d8)][_0x69e811(0x1c5)][_0x69e811(0x1c8)][_0x69e811(0x1e3)]='',this[_0x69e811(0x1d8)][_0x69e811(0x1be)]=null,this[_0x69e811(0x1fc)][_0x69e811(0x1c2)]=!0x1;}[_0x234af1(0x1d1)](_0x5c30b7){const _0xb9b5b=_0x234af1;this[_0xb9b5b(0x1d8)][_0xb9b5b(0x1be)]=_0x5c30b7,this[_0xb9b5b(0x1df)](),this[_0xb9b5b(0x1d4)](_0xb9b5b(0x1ff));}[_0x234af1(0x1e9)](){const _0x2ac5f8=_0x234af1;this[_0x2ac5f8(0x1d8)][_0x2ac5f8(0x1be)]=null,this[_0x2ac5f8(0x1df)]();}[_0x234af1(0x1fb)](){const _0x4a7f51=_0x234af1,_0x46579d=new _0x27c405(this[_0x4a7f51(0x1e5)]);return _0x46579d[_0x4a7f51(0x1c0)]({'icon':_0x301f34,'tooltip':_0x13e2b2(this[_0x4a7f51(0x1e5)],_0x4a7f51(0x1e8)),'tooltipPosition':'n','class':[_0x4a7f51(0x1f3)]}),this['on'](_0x4a7f51(0x1bb),(_0x115d4e,_0x26eed3,_0x19f157)=>{const _0x2ecc3f=_0x4a7f51;_0x46579d[_0x2ecc3f(0x1c0)]({'class':[_0x2ecc3f(0x1f3)+(_0x19f157?'':_0x2ecc3f(0x201))]});}),_0x46579d;}[_0x234af1(0x1d6)](){const _0x4940eb=_0x234af1,_0x13add4=new _0x1be240(this[_0x4940eb(0x1e5)],_0xd9e52d);return _0x13add4[_0x4940eb(0x1c0)]({'label':_0x13e2b2(this[_0x4940eb(0x1e5)],_0x4940eb(0x1c6)),'class':_0x4940eb(0x1c4)}),_0x13add4[_0x4940eb(0x1c5)][_0x4940eb(0x1c0)]({'placeholder':_0x13e2b2(this[_0x4940eb(0x1e5)],_0x4940eb(0x1f5))}),_0x13add4;}[_0x234af1(0x1d2)](){const _0x107eeb=_0x234af1,_0x2a70f5=new _0x27c405(this[_0x107eeb(0x1e5)]);return _0x2a70f5[_0x107eeb(0x1c0)]({'icon':_0x1b52ea,'tooltip':_0x13e2b2(this[_0x107eeb(0x1e5)],_0x107eeb(0x1ea)),'tooltipPosition':'n','class':_0x107eeb(0x1e7),'type':_0x107eeb(0x1b7),'isEnabled':!0x1}),_0x2a70f5;}[_0x234af1(0x1f4)](){const _0x33281d=_0x234af1,_0x33c4e3=new _0x57114d(this[_0x33281d(0x1e5)],{'label':_0x13e2b2(this[_0x33281d(0x1e5)],_0x33281d(0x1ea)),'class':_0x33281d(0x1cc)});_0x33c4e3[_0x33281d(0x1e4)][_0x33281d(0x1c1)](this[_0x33281d(0x1c3)],0x0),this[_0x33281d(0x1fa)]({'tag':_0x33281d(0x1d0),'attributes':{'class':ch,'tabindex':'-1'},'children':[_0x33c4e3,{'tag':_0x33281d(0x1f0),'attributes':{'class':rh},'children':[this[_0x33281d(0x1d8)],this[_0x33281d(0x1fc)]]}]});}[_0x234af1(0x1d3)](){const _0x2fb3e8=_0x234af1;this[_0x2fb3e8(0x1c3)]['on'](_0x2fb3e8(0x1e0),()=>{const _0x44c2da=_0x2fb3e8;this[_0x44c2da(0x1e6)](),this[_0x44c2da(0x1d4)](_0x44c2da(0x1ec));}),this[_0x2fb3e8(0x1d8)][_0x2fb3e8(0x1c5)]['on'](_0x2fb3e8(0x1dd),()=>{const _0x4664e5=_0x2fb3e8;this[_0x4664e5(0x1e9)](),this[_0x4664e5(0x1df)](),this[_0x4664e5(0x1d4)](_0x4664e5(0x1ff));}),this['on'](_0x2fb3e8(0x1b7),_0x202b0f=>{const _0x49a547=_0x2fb3e8;_0x202b0f[_0x49a547(0x1d5)](),this[_0x49a547(0x1f1)]();});}[_0x234af1(0x1ce)](){const _0x48da99=_0x234af1;this[_0x48da99(0x1bd)][_0x48da99(0x1c0)](_0x48da99(0x1cf),(_0xf254aa,_0x5a7104)=>{const _0x1d3a64=_0x48da99;this[_0x1d3a64(0x1e6)](),this[_0x1d3a64(0x1d4)](_0x1d3a64(0x1ec)),_0x5a7104();});}[_0x234af1(0x1f1)](){const _0x37189c=_0x234af1,_0x5aefa9=this[_0x37189c(0x1b8)]()[_0x37189c(0x1cd)]();_0x5aefa9?this[_0x37189c(0x1f8)](_0x5aefa9)?(this[_0x37189c(0x1e9)](),this[_0x37189c(0x1d4)](_0x37189c(0x1db),_0x5aefa9)):this[_0x37189c(0x1d1)](_0x13e2b2(this[_0x37189c(0x1e5)],_0x37189c(0x1f6))):this[_0x37189c(0x1d1)](_0x13e2b2(this[_0x37189c(0x1e5)],_0x37189c(0x1d9)));}[_0x234af1(0x1df)](){const _0x1d60d1=_0x234af1,_0x36ff7a=this[_0x1d60d1(0x1b8)]()[_0x1d60d1(0x1cd)](),_0x5ea8b1=!!this[_0x1d60d1(0x1d8)][_0x1d60d1(0x1be)];this[_0x1d60d1(0x1fc)][_0x1d60d1(0x1c2)]=_0x36ff7a[_0x1d60d1(0x1f9)]>0x0&&!_0x5ea8b1;}[_0x234af1(0x1f8)](_0x3bfb00){try{return!!new URL(_0x3bfb00);}catch{return!0x1;}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3f867c=_0x6e7c;(function(_0x110210,_0x49e7b3){const _0x3b53f8=_0x6e7c,_0x32d5b2=_0x110210();while(!![]){try{const _0x2b7c89=-parseInt(_0x3b53f8(0x178))/0x1+-parseInt(_0x3b53f8(0x187))/0x2+-parseInt(_0x3b53f8(0x13a))/0x3*(-parseInt(_0x3b53f8(0x149))/0x4)+parseInt(_0x3b53f8(0x189))/0x5*(-parseInt(_0x3b53f8(0x15d))/0x6)+parseInt(_0x3b53f8(0x121))/0x7*(parseInt(_0x3b53f8(0x10e))/0x8)+-parseInt(_0x3b53f8(0x10d))/0x9+parseInt(_0x3b53f8(0x12c))/0xa;if(_0x2b7c89===_0x49e7b3)break;else _0x32d5b2['push'](_0x32d5b2['shift']());}catch(_0xbcbe4f){_0x32d5b2['push'](_0x32d5b2['shift']());}}}(_0x5aa8,0xa925b));function _0x5aa8(){const _0x5150e5=['searchInputVisibleFrom','697836JkpUYR','closest','length','_addUrlContent','_createArrowView','overflowChips','show','element','ck-ai-chat-context-chips-wrapper-balloon','_setupTemplate','arrowView','addContextItem','execute','urls','_currentContextsChips','hideUrlBalloonPanel','addFileToContext','showAddContextBalloonPanel','_addContextBalloonPanelView','isReadOnly','1473006byqImF','removeContextItem','locale','ck-ai-chat-context-controls__balloon-button-source','executeCustomItemCallback','addUrlToContext','label','ck-ai-chat-context-controls__pending-contexts','ck-reset_all-excluded','_createAddContextButtonView','addResourceToContext','ck-ai-chat-context-controls__url-balloon-panel','document','AI_CHAT_CONTEXT_URL_LABEL','sources','updateResourceState','balloonView','isEnabled','_addContextBalloonConfig','_createContextButton','clearCurrentContextItems','done','refreshBalloon','set','_removeContextFromCollection','setContextItemLoading','ck-ai-chat','478552aJDKkA','defaultPositions','_bindEventHandlers','current','ck-ai-chat-context-controls__add-context-button','createCollection','addDocumentToContext','_hasExactlyOneSource','_setupAddContextBalloonClickOutsideHandler','_createAddContextBalloonPanelView','clear','reorganizeChips','_resourcesBalloonView','populateSourceResourceBalloon','northArrowSouthEast','1310168KSHIDf','_urlBalloonPanelView','5PUtwJd','isLoading','_handleAddContextButtonClick','content','isHidden','closeSourceResourceBalloon','add','cancel','_showSourceResourcesBalloon','enabled','menuitem','__arrow','buttonView','icon','_addContextToCollection','ck-ai-chat-context-controls__balloon-button','find','_getLimiterElement','_handleUrlSubmit','render','_overflowManager','northArrowSouth','children','_urlInputView','bind','get','southArrowNorthEast','5315481NAUzsp','26584uEDqvC','destroy','isAnyResourceBalloonVisible','ck-ai-chat-controls-button','setConversationContext','_setupUrlBalloonClickOutsideHandler','isVisible','fire','southArrowNorth','_toggleAddContextBalloon','_createResourcesBalloonView','_conversationContextsChips','hide','customItems','_setupAllBalloonClickOutsideHandlers','_setBalloonPanelContent','clearConversationContextItems','remove','ck-ai-chat-context-controls__add-context-balloon-panel','1939YyUZrj','source','isOn','AI_CHAT_CONTEXT_ADD_CONTEXT','body','conversation','southArrowNorthWest','loadSourceResources','extendTemplate','focus','showUrlBalloonPanel','15676430mQOmFl','northArrowSouthWest','ck-ai-chat-context-controls__show-more-balloon-panel','tooltip','files','div','customItem','addContextButtonView','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','type','withBackButton','showSourceResourcesBalloon','_createBaseBalloonPanel','setTemplate','3ikuSKd','removeContextItemChip','setAddContextOptions','submitUrl','_setAddContextButtonEnabled','setContainerElement','bodyCollection','hideAddContextBalloonPanel','_createBalloonButton','AI_CHAT_CONTEXT_FILE_LABEL','ck-ai-chat-context-controls','ck-ai-chat-controls_context_show-more-button','pin','_createUrlBalloonPanelView'];_0x5aa8=function(){return _0x5150e5;};return _0x5aa8();}import{BalloonPanelView as _0x82bce3,ButtonView as _0x3a60ba,clickOutsideHandler as _0x19e289,FileDialogButtonView as _0x22be8d,IconView as _0x5e5ad1,View as _0x32bf15}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x190117,IconDocument as _0x5d1f56,IconDocumentOutline as _0x5402cd,IconDropdownArrow as _0x2d8b63,IconLink as _0x39f0b6,IconPaperClip as _0x35dbf5}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x521dee}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x16c38d}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x3f1ac2}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x3f377c}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x254e1e}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x3f867c(0x17e),_0x3f867c(0x159),_0x3f867c(0x162),_0x3f867c(0x167),_0x3f867c(0x15e),_0x3f867c(0x128),_0x3f867c(0x161)];const Ro=_0x3f867c(0x144),Oo=_0x3f867c(0x164),Uo=_0x3f867c(0x120),Lo=_0x3f867c(0x17c),No=_0x3f867c(0x168),Mo=_0x3f867c(0x101),Ho=_0x3f867c(0x160),jo=_0x3f867c(0x111),Fo=_0x3f867c(0x151),Xo=_0x3f867c(0x145),yo=_0x3f867c(0x12e),Do=_0x3f867c(0x177),$o=[_0x82bce3[_0x3f867c(0x179)][_0x3f867c(0x12d)],_0x82bce3[_0x3f867c(0x179)][_0x3f867c(0x107)],_0x82bce3[_0x3f867c(0x179)][_0x3f867c(0x186)],_0x82bce3[_0x3f867c(0x179)][_0x3f867c(0x127)],_0x82bce3[_0x3f867c(0x179)][_0x3f867c(0x116)],_0x82bce3[_0x3f867c(0x179)][_0x3f867c(0x10c)]];export class AIChatContextPanelView extends _0x32bf15{[_0x3f867c(0x133)];[_0x3f867c(0x157)]=this[_0x3f867c(0x17d)]();[_0x3f867c(0x119)]=this[_0x3f867c(0x17d)]();[_0x3f867c(0x106)];[_0x3f867c(0x15b)];[_0x3f867c(0x188)];[_0x3f867c(0x109)];[_0x3f867c(0x184)];[_0x3f867c(0x16f)];[_0x3f867c(0x17f)]=!0x1;[_0x3f867c(0x140)];constructor(_0x19779a,_0x460f82){const _0xa195a=_0x3f867c;super(_0x19779a),this[_0xa195a(0x140)]=_0x460f82[_0xa195a(0x140)],this[_0xa195a(0x157)]=this[_0xa195a(0x17d)](),this[_0xa195a(0x119)]=this[_0xa195a(0x17d)](),this[_0xa195a(0x133)]=this[_0xa195a(0x166)](_0x19779a),this[_0xa195a(0x15b)]=this[_0xa195a(0x181)](_0x19779a),this[_0xa195a(0x188)]=this[_0xa195a(0x147)](_0x19779a),this[_0xa195a(0x184)]=this[_0xa195a(0x118)](_0x19779a,_0x460f82);const _0x16891d={'cssClasses':{'showMoreButton':Xo,'showMoreBalloon':yo,'overflowContainer':Fo,'controlsButton':jo}};this[_0xa195a(0x106)]=new _0x3f1ac2(_0x19779a,this[_0xa195a(0x157)],_0x16891d,this[_0xa195a(0x140)],this),this[_0xa195a(0x16f)]={'buttonView':this[_0xa195a(0x133)],'balloonView':this[_0xa195a(0x15b)],'hideMethod':this[_0xa195a(0x141)][_0xa195a(0x10a)](this),'showMethod':this[_0xa195a(0x15a)][_0xa195a(0x10a)](this)},this[_0xa195a(0x152)](),this[_0xa195a(0x17a)]();}[_0x3f867c(0x105)](){const _0x5180d6=_0x3f867c;super[_0x5180d6(0x105)](),this[_0x5180d6(0x11c)](),this[_0x5180d6(0x106)][_0x5180d6(0x13f)](this[_0x5180d6(0x150)]),this[_0x5180d6(0x106)][_0x5180d6(0x183)]();}[_0x3f867c(0x10f)](){const _0x496020=_0x3f867c;super[_0x496020(0x10f)](),this[_0x496020(0x106)][_0x496020(0x10f)](),this[_0x496020(0x184)][_0x496020(0x10f)]();}[_0x3f867c(0x154)](_0x5b6e44,_0x3d1133){const _0x1a3573=_0x3f867c,_0x1a3568=this[_0x1a3573(0x170)](_0x5b6e44,_0x1a3573(0x17b),!0x0,_0x3d1133);this[_0x1a3573(0x100)](_0x1a3568,this[_0x1a3573(0x157)]),this[_0x1a3573(0x106)][_0x1a3573(0x183)]();}[_0x3f867c(0x15e)](_0x4c5db4){const _0x19f068=_0x3f867c;this[_0x19f068(0x175)](_0x4c5db4,this[_0x19f068(0x157)]),this[_0x19f068(0x175)](_0x4c5db4,this[_0x19f068(0x106)][_0x19f068(0x14e)]),this[_0x19f068(0x106)][_0x19f068(0x183)]();}[_0x3f867c(0x176)](_0x3740f4,_0xd464b2){const _0x3506ec=_0x3f867c;let _0x555fea=this[_0x3506ec(0x157)][_0x3506ec(0x102)](_0x1a0b1a=>_0x1a0b1a['id']===_0x3740f4);_0x555fea||(_0x555fea=this[_0x3506ec(0x106)][_0x3506ec(0x14e)][_0x3506ec(0x102)](_0x47ca21=>_0x47ca21['id']===_0x3740f4)),_0x555fea&&(_0x555fea[_0x3506ec(0x18a)]=_0xd464b2);}[_0x3f867c(0x112)](_0x288af0){const _0xa0bcb0=_0x3f867c;this[_0xa0bcb0(0x119)][_0xa0bcb0(0x182)]();for(const _0x3a322d of _0x288af0){const _0x6f40f6=this[_0xa0bcb0(0x170)](_0x3a322d,_0xa0bcb0(0x126),!0x1,!0x1);this[_0xa0bcb0(0x100)](_0x6f40f6,this[_0xa0bcb0(0x119)]);}}[_0x3f867c(0x171)](){const _0x5a4f26=_0x3f867c;this[_0x5a4f26(0x157)][_0x5a4f26(0x182)](),this[_0x5a4f26(0x106)][_0x5a4f26(0x182)]();}[_0x3f867c(0x11e)](){const _0x2d9bf1=_0x3f867c;this[_0x2d9bf1(0x119)][_0x2d9bf1(0x182)]();}[_0x3f867c(0x16c)](_0x1d80cf,_0x4b04f1,_0x2e543f){const _0x255ac3=_0x3f867c;this[_0x255ac3(0x184)][_0x255ac3(0x16c)](_0x1d80cf,_0x4b04f1,_0x2e543f);}[_0x3f867c(0x141)](){const _0x41c22f=_0x3f867c;this[_0x41c22f(0x117)](!0x1);}[_0x3f867c(0x15a)](){const _0x504efb=_0x3f867c;this[_0x504efb(0x117)](!0x0);}[_0x3f867c(0x158)](){const _0x1b9958=_0x3f867c;this[_0x1b9958(0x188)][_0x1b9958(0x11a)](),this[_0x1b9958(0x133)][_0x1b9958(0x123)]=!0x1,this[_0x1b9958(0x109)]&&this[_0x1b9958(0x109)][_0x1b9958(0x182)]();}[_0x3f867c(0x12b)](){const _0x211d12=_0x3f867c;this[_0x211d12(0x188)][_0x211d12(0x14f)](),this[_0x211d12(0x133)][_0x211d12(0x123)]=!0x0;}[_0x3f867c(0x191)]({source:_0x184396,withBackButton:_0x1e12f2}){const _0x511f32=_0x3f867c;this[_0x511f32(0x184)][_0x511f32(0x137)]({'source':_0x184396,'withBackButton':_0x1e12f2}),this[_0x511f32(0x133)][_0x511f32(0x123)]=!0x0;}[_0x3f867c(0x185)](_0x3f4043,_0xbebe5c,_0x5d7fdb,_0x458ca8){const _0x37fcd6=_0x3f867c;this[_0x37fcd6(0x184)][_0x37fcd6(0x185)](_0x3f4043,_0x5d7fdb,_0x458ca8);}[_0x3f867c(0x18e)](_0x4cc1d7){const _0x4fbc0f=_0x3f867c;this[_0x4fbc0f(0x184)][_0x4fbc0f(0x18e)](_0x4cc1d7),this[_0x4fbc0f(0x133)][_0x4fbc0f(0x123)]=!0x1;}[_0x3f867c(0x13c)](_0x25c254){const _0x4c6b25=_0x3f867c;this[_0x4c6b25(0x11d)](this[_0x4c6b25(0x15b)],this[_0x4c6b25(0x15f)],_0x25c254),this[_0x4c6b25(0x13e)](_0x25c254);}[_0x3f867c(0x13e)](_0x120339){const _0x94f5e9=_0x3f867c,_0x2210f5=!_0x120339[_0x94f5e9(0x169)][_0x94f5e9(0x18d)]&&_0x120339[_0x94f5e9(0x169)][_0x94f5e9(0x192)],_0x7de0de=_0x120339[_0x94f5e9(0x156)][_0x94f5e9(0x192)],_0x162cc0=_0x120339[_0x94f5e9(0x130)][_0x94f5e9(0x192)],_0x38d54c=_0x120339[_0x94f5e9(0x16b)][_0x94f5e9(0x14b)]>0x0,_0x702fb2=_0x120339[_0x94f5e9(0x11b)]&&_0x120339[_0x94f5e9(0x11b)][_0x94f5e9(0x14b)]>0x0;this[_0x94f5e9(0x133)][_0x94f5e9(0x16e)]=_0x2210f5||_0x7de0de||_0x162cc0||_0x38d54c||_0x702fb2;}[_0x3f867c(0x152)](){const _0x3debd2=_0x3f867c;this[_0x3debd2(0x139)]({'tag':_0x3debd2(0x131),'attributes':{'class':[Ro,_0x3debd2(0x165)]},'children':[{'tag':_0x3debd2(0x131),'attributes':{'class':Oo},'children':this[_0x3debd2(0x157)]}]});}[_0x3f867c(0x17a)](){const _0x1f9a98=_0x3f867c;this[_0x1f9a98(0x133)]['on'](_0x1f9a98(0x155),()=>{const _0x1e7b67=_0x1f9a98;this[_0x1e7b67(0x18b)]();});}[_0x3f867c(0x166)](_0x17445f){const _0x1e22ec=_0x3f867c,_0x216ce4=new _0x3a60ba(_0x17445f);return _0x216ce4[_0x1e22ec(0x174)]({'label':_0x3f377c(_0x17445f,_0x1e22ec(0x124)),'class':jo+'\x20'+Lo,'icon':_0x35dbf5,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x216ce4;}[_0x3f867c(0x181)](_0xf017ee){const _0xbd1b77=_0x3f867c;return this[_0xbd1b77(0x138)](_0xf017ee,Uo);}[_0x3f867c(0x147)](_0x279fc2){const _0x5726bc=_0x3f867c,_0x3b1dfd=this[_0x5726bc(0x138)](_0x279fc2,No);return this[_0x5726bc(0x14c)](_0x3b1dfd,_0x279fc2),_0x3b1dfd;}[_0x3f867c(0x118)](_0x452c97,_0x5058b4){const _0x25f35d=_0x3f867c,_0x11df69={'searchInputVisibleFrom':_0x5058b4[_0x25f35d(0x148)],'onBackToContext':()=>{const _0x398be3=_0x25f35d;this[_0x398be3(0x15a)](),this[_0x398be3(0x15b)][_0x398be3(0x146)]({'target':this[_0x398be3(0x133)][_0x398be3(0x150)],'limiter':this[_0x398be3(0x103)](),'positions':$o});},'onResourceSelected':(_0x506413,_0x481e9b)=>{const _0x5726ef=_0x25f35d;this[_0x5726ef(0x115)](_0x5726ef(0x167),{'source':_0x506413,'resource':_0x481e9b});},'onLoadSourceResources':_0x59f39e=>{const _0x2be9e7=_0x25f35d;this[_0x2be9e7(0x115)](_0x2be9e7(0x128),_0x59f39e);},'onBalloonClosed':()=>{const _0x4e7943=_0x25f35d;this[_0x4e7943(0x133)][_0x4e7943(0x123)]=!0x1;},'getLimiterElement':()=>this[_0x25f35d(0x103)](),'getTargetElement':()=>this[_0x25f35d(0x133)][_0x25f35d(0x150)]};return new _0x254e1e(_0x452c97,_0x5058b4[_0x25f35d(0x140)],_0x11df69);}[_0x3f867c(0x103)](){const _0x5f3082=_0x3f867c;return this[_0x5f3082(0x150)]?.[_0x5f3082(0x14a)]('.'+Do)||document[_0x5f3082(0x125)];}[_0x3f867c(0x138)](_0x10dd7e,_0x54c210){const _0xb226cf=_0x3f867c,_0x530aec=new _0x82bce3(_0x10dd7e);return _0x530aec[_0xb226cf(0x129)]({'attributes':{'class':_0x54c210}}),this[_0xb226cf(0x140)][_0xb226cf(0x18f)](_0x530aec),_0x530aec;}[_0x3f867c(0x11d)](_0x3a1204,_0x4908d5,_0x5ffd17){const _0xcef6f9=_0x3f867c;if(_0x3a1204[_0xcef6f9(0x18c)][_0xcef6f9(0x182)](),!_0x5ffd17[_0xcef6f9(0x169)][_0xcef6f9(0x18d)]&&_0x5ffd17[_0xcef6f9(0x169)][_0xcef6f9(0x192)]){const _0x2ba8ba=this[_0xcef6f9(0x142)](_0x4908d5,{'label':_0x3f377c(_0x4908d5,_0xcef6f9(0x134)),'icon':_0x5d1f56});_0x2ba8ba['on'](_0xcef6f9(0x155),()=>{const _0x202a2a=_0xcef6f9;this[_0x202a2a(0x115)](_0x202a2a(0x17e)),this[_0x202a2a(0x141)]();}),_0x3a1204[_0xcef6f9(0x18c)][_0xcef6f9(0x18f)](_0x2ba8ba);}if(_0x5ffd17[_0xcef6f9(0x156)][_0xcef6f9(0x192)]){const _0x46c90b=this[_0xcef6f9(0x142)](_0x4908d5,{'label':_0x3f377c(_0x4908d5,_0xcef6f9(0x16a)),'icon':_0x39f0b6});_0x46c90b['on'](_0xcef6f9(0x155),()=>{const _0x5d6d10=_0xcef6f9;this[_0x5d6d10(0x141)](),this[_0x5d6d10(0x12b)](),this[_0x5d6d10(0x188)][_0x5d6d10(0x146)]({'target':this[_0x5d6d10(0x133)][_0x5d6d10(0x150)],'limiter':this[_0x5d6d10(0x103)](),'positions':$o}),this[_0x5d6d10(0x109)][_0x5d6d10(0x12a)]();}),_0x3a1204[_0xcef6f9(0x18c)][_0xcef6f9(0x18f)](_0x46c90b);}if(_0x5ffd17[_0xcef6f9(0x130)][_0xcef6f9(0x192)]){const _0x53cde6=new _0x22be8d(_0x4908d5);_0x53cde6[_0xcef6f9(0x174)]({'label':_0x3f377c(_0x4908d5,_0xcef6f9(0x143)),'icon':_0x190117,'withText':!0x0,'tooltip':!0x0,'class':Mo,'allowMultipleFiles':!0x0}),_0x53cde6['on'](_0xcef6f9(0x155),()=>{const _0x4aef1e=_0xcef6f9;this[_0x4aef1e(0x141)]();}),_0x53cde6['on'](_0xcef6f9(0x172),(_0x4d96d9,_0xb2f974)=>{const _0x2a3212=_0xcef6f9;this[_0x2a3212(0x115)](_0x2a3212(0x159),_0xb2f974);}),_0x53cde6[_0xcef6f9(0x12f)]=!0x0,_0x3a1204[_0xcef6f9(0x18c)][_0xcef6f9(0x18f)](_0x53cde6);}for(const _0x14f19b of _0x5ffd17[_0xcef6f9(0x16b)]){const _0xba4d26=this[_0xcef6f9(0x142)](_0x4908d5,{'label':_0x14f19b[_0xcef6f9(0x163)],'icon':_0x14f19b[_0xcef6f9(0xff)]||_0x5402cd,'type':_0xcef6f9(0x122)});_0x3a1204[_0xcef6f9(0x18c)][_0xcef6f9(0x18f)](_0xba4d26),_0xba4d26['on'](_0xcef6f9(0x155),()=>{const _0xb9bb6a=_0xcef6f9;this[_0xb9bb6a(0x141)](),this[_0xb9bb6a(0x191)]({'source':_0x14f19b,'withBackButton':!this[_0xb9bb6a(0x17f)]});});}for(const _0x554271 of _0x5ffd17[_0xcef6f9(0x11b)]||[]){const _0x59a396=this[_0xcef6f9(0x142)](_0x4908d5,{'label':_0x554271[_0xcef6f9(0x163)],'icon':_0x554271[_0xcef6f9(0xff)]||_0x5402cd,'type':_0xcef6f9(0x132)});_0x3a1204[_0xcef6f9(0x18c)][_0xcef6f9(0x18f)](_0x59a396),_0x59a396['on'](_0xcef6f9(0x155),()=>{const _0x13deae=_0xcef6f9;this[_0x13deae(0x141)](),this[_0x13deae(0x115)](_0x13deae(0x161),_0x554271);});}this[_0xcef6f9(0x17f)]=0x1===_0x3a1204[_0xcef6f9(0x18c)][_0xcef6f9(0x14b)],this[_0xcef6f9(0x109)][_0xcef6f9(0x136)]=!this[_0xcef6f9(0x17f)];}[_0x3f867c(0x14c)](_0xed2c69,_0x30081c){const _0x49b7f3=_0x3f867c;this[_0x49b7f3(0x109)]=new _0x16c38d(_0x30081c),this[_0x49b7f3(0x109)]['on'](_0x49b7f3(0x13d),(_0x2e9265,_0xe0beac)=>{const _0x25b73c=_0x49b7f3;this[_0x25b73c(0x104)](_0xe0beac);}),this[_0x49b7f3(0x109)]['on'](_0x49b7f3(0x190),()=>{const _0x4a0edd=_0x49b7f3;this[_0x4a0edd(0x158)](),this[_0x4a0edd(0x17f)]||(this[_0x4a0edd(0x15a)](),this[_0x4a0edd(0x15b)][_0x4a0edd(0x146)]({'target':this[_0x4a0edd(0x133)][_0x4a0edd(0x150)],'limiter':this[_0x4a0edd(0x103)](),'positions':$o}));}),this[_0x49b7f3(0x109)]['on'](_0x49b7f3(0x173),()=>{const _0x55630c=_0x49b7f3;this[_0x55630c(0x188)][_0x55630c(0x114)]&&this[_0x55630c(0x188)][_0x55630c(0x146)]({'target':this[_0x55630c(0x133)][_0x55630c(0x150)],'limiter':this[_0x55630c(0x103)](),'positions':$o});}),_0xed2c69[_0x49b7f3(0x18c)][_0x49b7f3(0x18f)](this[_0x49b7f3(0x109)]);}[_0x3f867c(0x142)](_0x120885,_0x39a8d3){const _0x25ebe8=_0x3f867c,_0x26b61f=_0x25ebe8(0x122)===_0x39a8d3[_0x25ebe8(0x135)]?new SourcesBalloonButtonView(_0x120885):new _0x3a60ba(_0x120885);return _0x26b61f[_0x25ebe8(0x174)]({'label':_0x39a8d3[_0x25ebe8(0x163)],'icon':_0x39a8d3[_0x25ebe8(0xff)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Mo}),_0x26b61f;}[_0x3f867c(0x11c)](){const _0x3d08b3=_0x3f867c;this[_0x3d08b3(0x180)](),this[_0x3d08b3(0x113)]();}[_0x3f867c(0x113)](){const _0x21aa30=_0x3f867c;_0x19e289({'emitter':this[_0x21aa30(0x188)],'contextElements':[this[_0x21aa30(0x188)][_0x21aa30(0x150)]],'callback':()=>{const _0x5557ec=_0x21aa30;this[_0x5557ec(0x158)]();},'activator':()=>this[_0x21aa30(0x188)][_0x21aa30(0x114)]});}[_0x3f867c(0x117)](_0x1322f0){const _0x46c9b4=_0x3f867c,_0x4dd467=this[_0x46c9b4(0x16f)];_0x4dd467[_0x46c9b4(0xfe)][_0x46c9b4(0x123)]=_0x1322f0,_0x1322f0?_0x4dd467[_0x46c9b4(0x16d)][_0x46c9b4(0x14f)]():_0x4dd467[_0x46c9b4(0x16d)][_0x46c9b4(0x11a)]();}[_0x3f867c(0x180)](){const _0x544170=_0x3f867c,{balloonView:_0x41779f,buttonView:_0x14b109,hideMethod:_0x4cca5d}=this[_0x544170(0x16f)];_0x19e289({'emitter':_0x41779f,'contextElements':[_0x41779f[_0x544170(0x150)],_0x14b109[_0x544170(0x150)]],'callback':()=>{_0x4cca5d();},'activator':()=>_0x14b109[_0x544170(0x123)]&&!this[_0x544170(0x188)][_0x544170(0x114)]&&!this[_0x544170(0x184)][_0x544170(0x110)]()});}[_0x3f867c(0x170)](_0x2d5bae,_0x4131a2,_0x141287=!0x1,_0x5deccc=!0x1){const _0x1e9784=_0x3f867c,_0x26285d=_0x1e9784(0x126)===_0x4131a2||!0x0===_0x2d5bae[_0x1e9784(0x15c)],_0x5c27f8=new _0x521dee(this[_0x1e9784(0x15f)],_0x2d5bae,_0x26285d,_0x141287,_0x5deccc);return _0x26285d||_0x5c27f8['on'](_0x1e9784(0x13b),()=>{const _0x636c78=_0x1e9784;this[_0x636c78(0x115)](_0x636c78(0x15e),_0x5c27f8['id']);}),_0x5c27f8;}[_0x3f867c(0x100)](_0x5e4145,_0x21ea4e){const _0x167ea7=_0x3f867c;_0x21ea4e[_0x167ea7(0x18f)](_0x5e4145,0x0);}[_0x3f867c(0x175)](_0x45ed1e,_0x1001e7){const _0x28e454=_0x3f867c,_0x38966c=_0x1001e7[_0x28e454(0x102)](_0x2bcae4=>_0x2bcae4['id']===_0x45ed1e);_0x38966c&&_0x1001e7[_0x28e454(0x11f)](_0x38966c);}[_0x3f867c(0x18b)](){const _0x40502f=_0x3f867c;this[_0x40502f(0x133)][_0x40502f(0x123)]?this[_0x40502f(0x141)]():(this[_0x40502f(0x15a)](),this[_0x40502f(0x15b)][_0x40502f(0x146)]({'target':this[_0x40502f(0x133)][_0x40502f(0x150)],'limiter':this[_0x40502f(0x103)](),'positions':$o}),this[_0x40502f(0x17f)]&&this[_0x40502f(0x15b)][_0x40502f(0x18c)][_0x40502f(0x10b)](0x0)?.[_0x40502f(0x115)](_0x40502f(0x155)));}[_0x3f867c(0x104)](_0x231748){const _0x508ccc=_0x3f867c;this[_0x508ccc(0x109)][_0x508ccc(0x182)](),this[_0x508ccc(0x158)](),this[_0x508ccc(0x115)](_0x508ccc(0x162),_0x231748);}}function _0x6e7c(_0x1bf95e,_0x35f76c){const _0x5aa8cb=_0x5aa8();return _0x6e7c=function(_0x6e7c59,_0x19f6de){_0x6e7c59=_0x6e7c59-0xfc;let _0x5831b0=_0x5aa8cb[_0x6e7c59];return _0x5831b0;},_0x6e7c(_0x1bf95e,_0x35f76c);}export class SourcesBalloonButtonView extends _0x3a60ba{[_0x3f867c(0x153)];constructor(_0x15fc7a){const _0x3467ba=_0x3f867c;super(_0x15fc7a),this[_0x3467ba(0x174)]({'withText':!0x0,'role':_0x3467ba(0xfc)}),this[_0x3467ba(0x153)]=this[_0x3467ba(0x14d)](),this[_0x3467ba(0x129)]({'attributes':{'class':[Ho]}});}[_0x3f867c(0x105)](){const _0x3783b9=_0x3f867c;super[_0x3783b9(0x105)](),this[_0x3783b9(0x108)][_0x3783b9(0x18f)](this[_0x3783b9(0x153)]);}[_0x3f867c(0x14d)](){const _0x5288c3=_0x3f867c,_0x455389=new _0x5e5ad1();return _0x455389[_0x5288c3(0x18c)]=_0x2d8b63,_0x455389[_0x5288c3(0x129)]({'attributes':{'class':Ho+_0x5288c3(0xfd)}}),_0x455389;}}
23
+ const _0x4a22ca=_0x13cd;(function(_0x23e75d,_0x2df4e8){const _0x3a1b52=_0x13cd,_0x375734=_0x23e75d();while(!![]){try{const _0x3743b7=parseInt(_0x3a1b52(0x1ff))/0x1*(-parseInt(_0x3a1b52(0x23a))/0x2)+parseInt(_0x3a1b52(0x214))/0x3*(parseInt(_0x3a1b52(0x1b1))/0x4)+-parseInt(_0x3a1b52(0x234))/0x5+parseInt(_0x3a1b52(0x22b))/0x6+-parseInt(_0x3a1b52(0x209))/0x7+parseInt(_0x3a1b52(0x1c4))/0x8+parseInt(_0x3a1b52(0x1e6))/0x9;if(_0x3743b7===_0x2df4e8)break;else _0x375734['push'](_0x375734['shift']());}catch(_0x202d2a){_0x375734['push'](_0x375734['shift']());}}}(_0x3bd2,0x36beb));import{BalloonPanelView as _0x39381f,ButtonView as _0x1242df,clickOutsideHandler as _0x3e17bd,FileDialogButtonView as _0x128ebe,IconView as _0x1a723d,View as _0x1b8fce}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x32bf20,IconDocument as _0x264981,IconDocumentOutline as _0x16a989,IconDropdownArrow as _0x304388,IconLink as _0x1a77ea,IconPaperClip as _0x586e26}from'@ckeditor/ckeditor5-icons';function _0x13cd(_0xe864d,_0xde6cd7){const _0x3bd28e=_0x3bd2();return _0x13cd=function(_0x13cd73,_0x2ca566){_0x13cd73=_0x13cd73-0x1ac;let _0x117c8c=_0x3bd28e[_0x13cd73];return _0x117c8c;},_0x13cd(_0xe864d,_0xde6cd7);}import{AIChatContextItemButtonView as _0x437d2a}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x28b039}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0xe75392}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0xd65d29}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x17598}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x4a22ca(0x1c6),_0x4a22ca(0x1fa),_0x4a22ca(0x1c8),_0x4a22ca(0x1e2),_0x4a22ca(0x21c),_0x4a22ca(0x1d9),_0x4a22ca(0x205)];function _0x3bd2(){const _0x51d3c0=['southArrowNorth','remove','_urlInputView','_handleAddContextButtonClick','icon','current','861550rhtEdB','_removeContextFromCollection','setContainerElement','tooltip','closeSourceResourceBalloon','add','214gTajGI','isReadOnly','ck-reset_all-excluded','hideUrlBalloonPanel','_currentContextsChips','extendTemplate','ck-ai-chat-controls-button','_createArrowView','isOn','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','northArrowSouthWest','isAnyResourceBalloonVisible','body','7660OWgcJy','_createBalloonButton','isHidden','clearConversationContextItems','_setBalloonPanelContent','_setupAddContextBalloonClickOutsideHandler','_handleUrlSubmit','_bindEventHandlers','label','children','northArrowSouthEast','submitUrl','length','_setupTemplate','bodyCollection','document','set','ck-ai-chat-context-controls__add-context-button','ck-ai-chat','2759400iEmPMR','_createContextButton','addDocumentToContext','element','addUrlToContext','setConversationContext','AI_CHAT_CONTEXT_FILE_LABEL','ck-ai-chat-context-controls__show-more-balloon-panel','searchInputVisibleFrom','balloonView','ck-ai-chat-context-controls__pending-contexts','find','updateResourceState','showAddContextBalloonPanel','_overflowManager','conversation','setAddContextOptions','buttonView','execute','ck-ai-chat-context-controls__url-balloon-panel','done','loadSourceResources','get','defaultPositions','removeContextItemChip','_resourcesBalloonView','_urlBalloonPanelView','bind','files','addContextButtonView','addResourceToContext','ck-ai-chat-context-controls__add-context-balloon-panel','render','_showSourceResourcesBalloon','1358172CtDUCl','pin','destroy','show','locale','showSourceResourcesBalloon','isVisible','clearCurrentContextItems','urls','AI_CHAT_CONTEXT_URL_LABEL','AI_CHAT_CONTEXT_ADD_CONTEXT','_getLimiterElement','menuitem','populateSourceResourceBalloon','clear','showUrlBalloonPanel','customItems','setTemplate','_addContextToCollection','_setupUrlBalloonClickOutsideHandler','addFileToContext','div','enabled','__arrow','arrowView','3539PvlDhr','isEnabled','_conversationContextsChips','setContextItemLoading','hide','_setupAllBalloonClickOutsideHandlers','executeCustomItemCallback','_addContextBalloonConfig','focus','_createAddContextBalloonPanelView','702002TraVar','_createResourcesBalloonView','refreshBalloon','reorganizeChips','hideAddContextBalloonPanel','source','_addContextBalloonPanelView','_createBaseBalloonPanel','ck-ai-chat-controls_context_show-more-button','_setAddContextButtonEnabled','fire','36JcGfvu','overflowChips','type','addContextItem','ck-ai-chat-context-controls__balloon-button','northArrowSouth','ck-ai-chat-context-chips-wrapper-balloon','_hasExactlyOneSource','removeContextItem','ck-ai-chat-context-controls','sources','content','closest','cancel','isLoading','ck-ai-chat-context-controls__balloon-button-source','southArrowNorthWest','_createUrlBalloonPanelView','_addUrlContent','createCollection','_createAddContextButtonView','_toggleAddContextBalloon','southArrowNorthEast','2140146OEnskM','customItem','withBackButton'];_0x3bd2=function(){return _0x51d3c0;};return _0x3bd2();}const Po=_0x4a22ca(0x21d),Ro=_0x4a22ca(0x1ce),So=_0x4a22ca(0x1e3),Oo=_0x4a22ca(0x1c2),Uo=_0x4a22ca(0x1d7),Lo=_0x4a22ca(0x218),No=_0x4a22ca(0x223),bo=_0x4a22ca(0x240),Mo=_0x4a22ca(0x21a),go=_0x4a22ca(0x211),jo=_0x4a22ca(0x1cb),Ho=_0x4a22ca(0x1c3),Fo=[_0x39381f[_0x4a22ca(0x1db)][_0x4a22ca(0x1ae)],_0x39381f[_0x4a22ca(0x1db)][_0x4a22ca(0x219)],_0x39381f[_0x4a22ca(0x1db)][_0x4a22ca(0x1bb)],_0x39381f[_0x4a22ca(0x1db)][_0x4a22ca(0x224)],_0x39381f[_0x4a22ca(0x1db)][_0x4a22ca(0x22e)],_0x39381f[_0x4a22ca(0x1db)][_0x4a22ca(0x22a)]];export class AIChatContextPanelView extends _0x1b8fce{[_0x4a22ca(0x1e1)];[_0x4a22ca(0x23e)]=this[_0x4a22ca(0x227)]();[_0x4a22ca(0x201)]=this[_0x4a22ca(0x227)]();[_0x4a22ca(0x1d2)];[_0x4a22ca(0x20f)];[_0x4a22ca(0x1de)];[_0x4a22ca(0x230)];[_0x4a22ca(0x1dd)];[_0x4a22ca(0x206)];[_0x4a22ca(0x21b)]=!0x1;[_0x4a22ca(0x1bf)];constructor(_0x91976c,_0x6597d3){const _0x173a68=_0x4a22ca;super(_0x91976c),this[_0x173a68(0x1bf)]=_0x6597d3[_0x173a68(0x1bf)],this[_0x173a68(0x23e)]=this[_0x173a68(0x227)](),this[_0x173a68(0x201)]=this[_0x173a68(0x227)](),this[_0x173a68(0x1e1)]=this[_0x173a68(0x228)](_0x91976c),this[_0x173a68(0x20f)]=this[_0x173a68(0x208)](_0x91976c),this[_0x173a68(0x1de)]=this[_0x173a68(0x225)](_0x91976c),this[_0x173a68(0x1dd)]=this[_0x173a68(0x20a)](_0x91976c,_0x6597d3);const _0x4f460c={'cssClasses':{'showMoreButton':go,'showMoreBalloon':jo,'overflowContainer':Mo,'controlsButton':bo}};this[_0x173a68(0x1d2)]=new _0xe75392(_0x91976c,this[_0x173a68(0x23e)],_0x4f460c,this[_0x173a68(0x1bf)],this),this[_0x173a68(0x206)]={'buttonView':this[_0x173a68(0x1e1)],'balloonView':this[_0x173a68(0x20f)],'hideMethod':this[_0x173a68(0x20d)][_0x173a68(0x1df)](this),'showMethod':this[_0x173a68(0x1d1)][_0x173a68(0x1df)](this)},this[_0x173a68(0x1be)](),this[_0x173a68(0x1b8)]();}[_0x4a22ca(0x1e4)](){const _0x599554=_0x4a22ca;super[_0x599554(0x1e4)](),this[_0x599554(0x204)](),this[_0x599554(0x1d2)][_0x599554(0x236)](this[_0x599554(0x1c7)]),this[_0x599554(0x1d2)][_0x599554(0x20c)]();}[_0x4a22ca(0x1e8)](){const _0x22aa2d=_0x4a22ca;super[_0x22aa2d(0x1e8)](),this[_0x22aa2d(0x1d2)][_0x22aa2d(0x1e8)](),this[_0x22aa2d(0x1dd)][_0x22aa2d(0x1e8)]();}[_0x4a22ca(0x217)](_0x25a958,_0x38d9bd){const _0x56f490=_0x4a22ca,_0x5e63d4=this[_0x56f490(0x1c5)](_0x25a958,_0x56f490(0x233),!0x0,_0x38d9bd);this[_0x56f490(0x1f8)](_0x5e63d4,this[_0x56f490(0x23e)]),this[_0x56f490(0x1d2)][_0x56f490(0x20c)]();}[_0x4a22ca(0x21c)](_0x247833){const _0x411598=_0x4a22ca;this[_0x411598(0x235)](_0x247833,this[_0x411598(0x23e)]),this[_0x411598(0x235)](_0x247833,this[_0x411598(0x1d2)][_0x411598(0x215)]),this[_0x411598(0x1d2)][_0x411598(0x20c)]();}[_0x4a22ca(0x202)](_0x5d8429,_0xbff15c){const _0x46d6c6=_0x4a22ca;let _0x509b4f=this[_0x46d6c6(0x23e)][_0x46d6c6(0x1cf)](_0x10c9b6=>_0x10c9b6['id']===_0x5d8429);_0x509b4f||(_0x509b4f=this[_0x46d6c6(0x1d2)][_0x46d6c6(0x215)][_0x46d6c6(0x1cf)](_0x467bcc=>_0x467bcc['id']===_0x5d8429)),_0x509b4f&&(_0x509b4f[_0x46d6c6(0x222)]=_0xbff15c);}[_0x4a22ca(0x1c9)](_0x1ba5e7){const _0x415203=_0x4a22ca;this[_0x415203(0x201)][_0x415203(0x1f4)]();for(const _0x4d6a2f of _0x1ba5e7){const _0x221fb8=this[_0x415203(0x1c5)](_0x4d6a2f,_0x415203(0x1d3),!0x1,!0x1);this[_0x415203(0x1f8)](_0x221fb8,this[_0x415203(0x201)]);}}[_0x4a22ca(0x1ed)](){const _0x4492ff=_0x4a22ca;this[_0x4492ff(0x23e)][_0x4492ff(0x1f4)](),this[_0x4492ff(0x1d2)][_0x4492ff(0x1f4)]();}[_0x4a22ca(0x1b4)](){const _0x414911=_0x4a22ca;this[_0x414911(0x201)][_0x414911(0x1f4)]();}[_0x4a22ca(0x1d0)](_0x5b2149,_0x2e75d6,_0x269d0d){const _0x288299=_0x4a22ca;this[_0x288299(0x1dd)][_0x288299(0x1d0)](_0x5b2149,_0x2e75d6,_0x269d0d);}[_0x4a22ca(0x20d)](){const _0x397f73=_0x4a22ca;this[_0x397f73(0x229)](!0x1);}[_0x4a22ca(0x1d1)](){const _0x52a7cb=_0x4a22ca;this[_0x52a7cb(0x229)](!0x0);}[_0x4a22ca(0x23d)](){const _0x559413=_0x4a22ca;this[_0x559413(0x1de)][_0x559413(0x203)](),this[_0x559413(0x1e1)][_0x559413(0x1ac)]=!0x1,this[_0x559413(0x230)]&&this[_0x559413(0x230)][_0x559413(0x1f4)]();}[_0x4a22ca(0x1f5)](){const _0x57df70=_0x4a22ca;this[_0x57df70(0x1de)][_0x57df70(0x1e9)](),this[_0x57df70(0x1e1)][_0x57df70(0x1ac)]=!0x0;}[_0x4a22ca(0x1e5)]({source:_0x2ecf3b,withBackButton:_0xce398a}){const _0x522f30=_0x4a22ca;this[_0x522f30(0x1dd)][_0x522f30(0x1eb)]({'source':_0x2ecf3b,'withBackButton':_0xce398a}),this[_0x522f30(0x1e1)][_0x522f30(0x1ac)]=!0x0;}[_0x4a22ca(0x1f3)](_0x2d98a7,_0x557f4e,_0x28f3b8,_0x1a1d79){const _0x510ba5=_0x4a22ca;this[_0x510ba5(0x1dd)][_0x510ba5(0x1f3)](_0x2d98a7,_0x28f3b8,_0x1a1d79);}[_0x4a22ca(0x238)](_0x6204ec){const _0x3ab544=_0x4a22ca;this[_0x3ab544(0x1dd)][_0x3ab544(0x238)](_0x6204ec),this[_0x3ab544(0x1e1)][_0x3ab544(0x1ac)]=!0x1;}[_0x4a22ca(0x1d4)](_0x4e3f1f){const _0x5d07f5=_0x4a22ca;this[_0x5d07f5(0x1b5)](this[_0x5d07f5(0x20f)],this[_0x5d07f5(0x1ea)],_0x4e3f1f),this[_0x5d07f5(0x212)](_0x4e3f1f);}[_0x4a22ca(0x212)](_0x34a7eb){const _0x23197b=_0x4a22ca,_0x596efd=!_0x34a7eb[_0x23197b(0x1c0)][_0x23197b(0x1b3)]&&_0x34a7eb[_0x23197b(0x1c0)][_0x23197b(0x1fc)],_0x346b72=_0x34a7eb[_0x23197b(0x1ee)][_0x23197b(0x1fc)],_0x60581c=_0x34a7eb[_0x23197b(0x1e0)][_0x23197b(0x1fc)],_0x203068=_0x34a7eb[_0x23197b(0x21e)][_0x23197b(0x1bd)]>0x0,_0x426b59=_0x34a7eb[_0x23197b(0x1f6)]&&_0x34a7eb[_0x23197b(0x1f6)][_0x23197b(0x1bd)]>0x0;this[_0x23197b(0x1e1)][_0x23197b(0x200)]=_0x596efd||_0x346b72||_0x60581c||_0x203068||_0x426b59;}[_0x4a22ca(0x1be)](){const _0x3bfd7c=_0x4a22ca;this[_0x3bfd7c(0x1f7)]({'tag':_0x3bfd7c(0x1fb),'attributes':{'class':[Po,_0x3bfd7c(0x23c)]},'children':[{'tag':_0x3bfd7c(0x1fb),'attributes':{'class':Ro},'children':this[_0x3bfd7c(0x23e)]}]});}[_0x4a22ca(0x1b8)](){const _0x6a9708=_0x4a22ca;this[_0x6a9708(0x1e1)]['on'](_0x6a9708(0x1d6),()=>{const _0x322f2f=_0x6a9708;this[_0x322f2f(0x231)]();});}[_0x4a22ca(0x228)](_0x48e192){const _0x416f01=_0x4a22ca,_0x17109f=new _0x1242df(_0x48e192);return _0x17109f[_0x416f01(0x1c1)]({'label':_0xd65d29(_0x48e192,_0x416f01(0x1f0)),'class':bo+'\x20'+Oo,'icon':_0x586e26,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x17109f;}[_0x4a22ca(0x208)](_0x6ec73a){const _0x49da63=_0x4a22ca;return this[_0x49da63(0x210)](_0x6ec73a,So);}[_0x4a22ca(0x225)](_0x208acb){const _0x250a40=_0x4a22ca,_0x44061d=this[_0x250a40(0x210)](_0x208acb,Uo);return this[_0x250a40(0x226)](_0x44061d,_0x208acb),_0x44061d;}[_0x4a22ca(0x20a)](_0x2b4ef2,_0x392b14){const _0x5504e4=_0x4a22ca,_0x3a09b9={'searchInputVisibleFrom':_0x392b14[_0x5504e4(0x1cc)],'onBackToContext':()=>{const _0x5e05a9=_0x5504e4;this[_0x5e05a9(0x1d1)](),this[_0x5e05a9(0x20f)][_0x5e05a9(0x1e7)]({'target':this[_0x5e05a9(0x1e1)][_0x5e05a9(0x1c7)],'limiter':this[_0x5e05a9(0x1f1)](),'positions':Fo});},'onResourceSelected':(_0x381d3d,_0x29e4c8)=>{const _0x69f3d=_0x5504e4;this[_0x69f3d(0x213)](_0x69f3d(0x1e2),{'source':_0x381d3d,'resource':_0x29e4c8});},'onLoadSourceResources':_0x113514=>{const _0x5b4645=_0x5504e4;this[_0x5b4645(0x213)](_0x5b4645(0x1d9),_0x113514);},'onBalloonClosed':()=>{const _0x5726f=_0x5504e4;this[_0x5726f(0x1e1)][_0x5726f(0x1ac)]=!0x1;},'getLimiterElement':()=>this[_0x5504e4(0x1f1)](),'getTargetElement':()=>this[_0x5504e4(0x1e1)][_0x5504e4(0x1c7)]};return new _0x17598(_0x2b4ef2,_0x392b14[_0x5504e4(0x1bf)],_0x3a09b9);}[_0x4a22ca(0x1f1)](){const _0x3131b7=_0x4a22ca;return this[_0x3131b7(0x1c7)]?.[_0x3131b7(0x220)]('.'+Ho)||document[_0x3131b7(0x1b0)];}[_0x4a22ca(0x210)](_0x1f9392,_0x4b905c){const _0x5087a7=_0x4a22ca,_0x14cf2c=new _0x39381f(_0x1f9392);return _0x14cf2c[_0x5087a7(0x23f)]({'attributes':{'class':_0x4b905c}}),this[_0x5087a7(0x1bf)][_0x5087a7(0x239)](_0x14cf2c),_0x14cf2c;}[_0x4a22ca(0x1b5)](_0x1f75d6,_0x2714fc,_0x20cc99){const _0x2005ba=_0x4a22ca;if(_0x1f75d6[_0x2005ba(0x21f)][_0x2005ba(0x1f4)](),!_0x20cc99[_0x2005ba(0x1c0)][_0x2005ba(0x1b3)]&&_0x20cc99[_0x2005ba(0x1c0)][_0x2005ba(0x1fc)]){const _0x27b140=this[_0x2005ba(0x1b2)](_0x2714fc,{'label':_0xd65d29(_0x2714fc,_0x2005ba(0x1ad)),'icon':_0x264981});_0x27b140['on'](_0x2005ba(0x1d6),()=>{const _0x4d7537=_0x2005ba;this[_0x4d7537(0x213)](_0x4d7537(0x1c6)),this[_0x4d7537(0x20d)]();}),_0x1f75d6[_0x2005ba(0x21f)][_0x2005ba(0x239)](_0x27b140);}if(_0x20cc99[_0x2005ba(0x1ee)][_0x2005ba(0x1fc)]){const _0x2076a4=this[_0x2005ba(0x1b2)](_0x2714fc,{'label':_0xd65d29(_0x2714fc,_0x2005ba(0x1ef)),'icon':_0x1a77ea});_0x2076a4['on'](_0x2005ba(0x1d6),()=>{const _0x1bf0ac=_0x2005ba;this[_0x1bf0ac(0x20d)](),this[_0x1bf0ac(0x1f5)](),this[_0x1bf0ac(0x1de)][_0x1bf0ac(0x1e7)]({'target':this[_0x1bf0ac(0x1e1)][_0x1bf0ac(0x1c7)],'limiter':this[_0x1bf0ac(0x1f1)](),'positions':Fo}),this[_0x1bf0ac(0x230)][_0x1bf0ac(0x207)]();}),_0x1f75d6[_0x2005ba(0x21f)][_0x2005ba(0x239)](_0x2076a4);}if(_0x20cc99[_0x2005ba(0x1e0)][_0x2005ba(0x1fc)]){const _0x35f2e8=new _0x128ebe(_0x2714fc);_0x35f2e8[_0x2005ba(0x1c1)]({'label':_0xd65d29(_0x2714fc,_0x2005ba(0x1ca)),'icon':_0x32bf20,'withText':!0x0,'tooltip':!0x0,'class':Lo,'allowMultipleFiles':!0x0}),_0x35f2e8['on'](_0x2005ba(0x1d6),()=>{const _0xc313f2=_0x2005ba;this[_0xc313f2(0x20d)]();}),_0x35f2e8['on'](_0x2005ba(0x1d8),(_0x57c141,_0x26b21a)=>{const _0x579a3b=_0x2005ba;this[_0x579a3b(0x213)](_0x579a3b(0x1fa),_0x26b21a);}),_0x35f2e8[_0x2005ba(0x237)]=!0x0,_0x1f75d6[_0x2005ba(0x21f)][_0x2005ba(0x239)](_0x35f2e8);}for(const _0x514699 of _0x20cc99[_0x2005ba(0x21e)]){const _0x3a0ed5=this[_0x2005ba(0x1b2)](_0x2714fc,{'label':_0x514699[_0x2005ba(0x1b9)],'icon':_0x514699[_0x2005ba(0x232)]||_0x16a989,'type':_0x2005ba(0x20e)});_0x1f75d6[_0x2005ba(0x21f)][_0x2005ba(0x239)](_0x3a0ed5),_0x3a0ed5['on'](_0x2005ba(0x1d6),()=>{const _0x5715d4=_0x2005ba;this[_0x5715d4(0x20d)](),this[_0x5715d4(0x1e5)]({'source':_0x514699,'withBackButton':!this[_0x5715d4(0x21b)]});});}for(const _0x228126 of _0x20cc99[_0x2005ba(0x1f6)]||[]){const _0x3f5970=this[_0x2005ba(0x1b2)](_0x2714fc,{'label':_0x228126[_0x2005ba(0x1b9)],'icon':_0x228126[_0x2005ba(0x232)]||_0x16a989,'type':_0x2005ba(0x22c)});_0x1f75d6[_0x2005ba(0x21f)][_0x2005ba(0x239)](_0x3f5970),_0x3f5970['on'](_0x2005ba(0x1d6),()=>{const _0x8be7be=_0x2005ba;this[_0x8be7be(0x20d)](),this[_0x8be7be(0x213)](_0x8be7be(0x205),_0x228126);});}this[_0x2005ba(0x21b)]=0x1===_0x1f75d6[_0x2005ba(0x21f)][_0x2005ba(0x1bd)],this[_0x2005ba(0x230)][_0x2005ba(0x22d)]=!this[_0x2005ba(0x21b)];}[_0x4a22ca(0x226)](_0xf5e476,_0xb90f98){const _0x349ef2=_0x4a22ca;this[_0x349ef2(0x230)]=new _0x28b039(_0xb90f98),this[_0x349ef2(0x230)]['on'](_0x349ef2(0x1bc),(_0x1b5112,_0x582686)=>{const _0x3d3182=_0x349ef2;this[_0x3d3182(0x1b7)](_0x582686);}),this[_0x349ef2(0x230)]['on'](_0x349ef2(0x221),()=>{const _0x88f57f=_0x349ef2;this[_0x88f57f(0x23d)](),this[_0x88f57f(0x21b)]||(this[_0x88f57f(0x1d1)](),this[_0x88f57f(0x20f)][_0x88f57f(0x1e7)]({'target':this[_0x88f57f(0x1e1)][_0x88f57f(0x1c7)],'limiter':this[_0x88f57f(0x1f1)](),'positions':Fo}));}),this[_0x349ef2(0x230)]['on'](_0x349ef2(0x20b),()=>{const _0x489d6c=_0x349ef2;this[_0x489d6c(0x1de)][_0x489d6c(0x1ec)]&&this[_0x489d6c(0x1de)][_0x489d6c(0x1e7)]({'target':this[_0x489d6c(0x1e1)][_0x489d6c(0x1c7)],'limiter':this[_0x489d6c(0x1f1)](),'positions':Fo});}),_0xf5e476[_0x349ef2(0x21f)][_0x349ef2(0x239)](this[_0x349ef2(0x230)]);}[_0x4a22ca(0x1b2)](_0x5d0fc7,_0x8a9e5){const _0x221212=_0x4a22ca,_0xa299d6=_0x221212(0x20e)===_0x8a9e5[_0x221212(0x216)]?new SourcesBalloonButtonView(_0x5d0fc7):new _0x1242df(_0x5d0fc7);return _0xa299d6[_0x221212(0x1c1)]({'label':_0x8a9e5[_0x221212(0x1b9)],'icon':_0x8a9e5[_0x221212(0x232)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Lo}),_0xa299d6;}[_0x4a22ca(0x204)](){const _0x538e72=_0x4a22ca;this[_0x538e72(0x1b6)](),this[_0x538e72(0x1f9)]();}[_0x4a22ca(0x1f9)](){const _0x47724d=_0x4a22ca;_0x3e17bd({'emitter':this[_0x47724d(0x1de)],'contextElements':[this[_0x47724d(0x1de)][_0x47724d(0x1c7)]],'callback':()=>{const _0x30bf79=_0x47724d;this[_0x30bf79(0x23d)]();},'activator':()=>this[_0x47724d(0x1de)][_0x47724d(0x1ec)]});}[_0x4a22ca(0x229)](_0x5c0db3){const _0x3f773d=_0x4a22ca,_0x501983=this[_0x3f773d(0x206)];_0x501983[_0x3f773d(0x1d5)][_0x3f773d(0x1ac)]=_0x5c0db3,_0x5c0db3?_0x501983[_0x3f773d(0x1cd)][_0x3f773d(0x1e9)]():_0x501983[_0x3f773d(0x1cd)][_0x3f773d(0x203)]();}[_0x4a22ca(0x1b6)](){const _0x397903=_0x4a22ca,{balloonView:_0x38ccf1,buttonView:_0x4b8ad4,hideMethod:_0x58519e}=this[_0x397903(0x206)];_0x3e17bd({'emitter':_0x38ccf1,'contextElements':[_0x38ccf1[_0x397903(0x1c7)],_0x4b8ad4[_0x397903(0x1c7)]],'callback':()=>{_0x58519e();},'activator':()=>_0x4b8ad4[_0x397903(0x1ac)]&&!this[_0x397903(0x1de)][_0x397903(0x1ec)]&&!this[_0x397903(0x1dd)][_0x397903(0x1af)]()});}[_0x4a22ca(0x1c5)](_0x423541,_0x5b79f6,_0x505fbf=!0x1,_0x366626=!0x1){const _0x13001c=_0x4a22ca,_0x9e5da7=_0x13001c(0x1d3)===_0x5b79f6||!0x0===_0x423541[_0x13001c(0x23b)],_0x18db1e=new _0x437d2a(this[_0x13001c(0x1ea)],_0x423541,_0x9e5da7,_0x505fbf,_0x366626);return _0x9e5da7||_0x18db1e['on'](_0x13001c(0x1dc),()=>{const _0x40d718=_0x13001c;this[_0x40d718(0x213)](_0x40d718(0x21c),_0x18db1e['id']);}),_0x18db1e;}[_0x4a22ca(0x1f8)](_0x48914f,_0x4b17e8){const _0x491feb=_0x4a22ca;_0x4b17e8[_0x491feb(0x239)](_0x48914f,0x0);}[_0x4a22ca(0x235)](_0x36a706,_0x17b018){const _0x598420=_0x4a22ca,_0x267a8b=_0x17b018[_0x598420(0x1cf)](_0x8b3a53=>_0x8b3a53['id']===_0x36a706);_0x267a8b&&_0x17b018[_0x598420(0x22f)](_0x267a8b);}[_0x4a22ca(0x231)](){const _0x3de305=_0x4a22ca;this[_0x3de305(0x1e1)][_0x3de305(0x1ac)]?this[_0x3de305(0x20d)]():(this[_0x3de305(0x1d1)](),this[_0x3de305(0x20f)][_0x3de305(0x1e7)]({'target':this[_0x3de305(0x1e1)][_0x3de305(0x1c7)],'limiter':this[_0x3de305(0x1f1)](),'positions':Fo}),this[_0x3de305(0x21b)]&&this[_0x3de305(0x20f)][_0x3de305(0x21f)][_0x3de305(0x1da)](0x0)?.[_0x3de305(0x213)](_0x3de305(0x1d6)));}[_0x4a22ca(0x1b7)](_0x1922be){const _0x3c039a=_0x4a22ca;this[_0x3c039a(0x230)][_0x3c039a(0x1f4)](),this[_0x3c039a(0x23d)](),this[_0x3c039a(0x213)](_0x3c039a(0x1c8),_0x1922be);}}export class SourcesBalloonButtonView extends _0x1242df{[_0x4a22ca(0x1fe)];constructor(_0x272661){const _0x2c0c55=_0x4a22ca;super(_0x272661),this[_0x2c0c55(0x1c1)]({'withText':!0x0,'role':_0x2c0c55(0x1f2)}),this[_0x2c0c55(0x1fe)]=this[_0x2c0c55(0x241)](),this[_0x2c0c55(0x23f)]({'attributes':{'class':[No]}});}[_0x4a22ca(0x1e4)](){const _0x105aaf=_0x4a22ca;super[_0x105aaf(0x1e4)](),this[_0x105aaf(0x1ba)][_0x105aaf(0x239)](this[_0x105aaf(0x1fe)]);}[_0x4a22ca(0x241)](){const _0x1f1261=_0x4a22ca,_0x5b8a2c=new _0x1a723d();return _0x5b8a2c[_0x1f1261(0x21f)]=_0x304388,_0x5b8a2c[_0x1f1261(0x23f)]({'attributes':{'class':No+_0x1f1261(0x1fd)}}),_0x5b8a2c;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x72516f=_0x2b5c;function _0x2b5c(_0x3dd61d,_0x34d994){const _0x267a2c=_0x267a();return _0x2b5c=function(_0x2b5c47,_0xc91212){_0x2b5c47=_0x2b5c47-0x1c1;let _0x2926ed=_0x267a2c[_0x2b5c47];return _0x2926ed;},_0x2b5c(_0x3dd61d,_0x34d994);}(function(_0x393712,_0x47e378){const _0x44ad0e=_0x2b5c,_0x3642f6=_0x393712();while(!![]){try{const _0x3164dc=-parseInt(_0x44ad0e(0x1c4))/0x1+parseInt(_0x44ad0e(0x1d0))/0x2+parseInt(_0x44ad0e(0x1d9))/0x3+parseInt(_0x44ad0e(0x1c7))/0x4+parseInt(_0x44ad0e(0x1d1))/0x5*(parseInt(_0x44ad0e(0x1dd))/0x6)+-parseInt(_0x44ad0e(0x1d5))/0x7*(parseInt(_0x44ad0e(0x1d8))/0x8)+parseInt(_0x44ad0e(0x1cf))/0x9*(-parseInt(_0x44ad0e(0x1d4))/0xa);if(_0x3164dc===_0x47e378)break;else _0x3642f6['push'](_0x3642f6['shift']());}catch(_0x1a31f7){_0x3642f6['push'](_0x3642f6['shift']());}}}(_0x267a,0xda77b));import{ButtonView as _0x43f340,View as _0x244706}from'ckeditor5/src/ui.js';import{IconStop as _0x227bc9}from'ckeditor5/src/icons.js';function _0x267a(){const _0x210861=['ck-ai-chat-controls-loader','522710QRELwL','ck-ai-button-secondary\x20ck-ai-button-stop-generating','_createCancelButtonView','799188bnagAC','_loaderView','_createLoaderView','ck-reset_all','setTemplate','ck-ai-chat-controls-loader-icon-dot','execute','ck-ai-chat-controls-loader-wrapper','32391OCzKpj','808578RsVchH','275BaXSyI','set','locale','410qBTiae','42vSPzof','fire','_cancelButtonView','1487904wmZRRb','4482357pLgRRk','AI_CHAT_IS_WRITING','AI_CHAT_STOP_GENERATING','ck-ai-chat-controls-loader-icon','63582qpWyqw','abortPromptStream','div'];_0x267a=function(){return _0x210861;};return _0x267a();}import{getTranslation as _0x1b8e5a}from'../../../aicore/utils/common-translations.js';export class AIChatControlsLoaderView extends _0x244706{[_0x72516f(0x1d7)];[_0x72516f(0x1c8)];constructor(_0x3c8012){const _0x45b1a9=_0x72516f;super(_0x3c8012),this[_0x45b1a9(0x1d7)]=this[_0x45b1a9(0x1c6)](),this[_0x45b1a9(0x1c8)]=this[_0x45b1a9(0x1c9)](),this[_0x45b1a9(0x1cb)]({'tag':_0x45b1a9(0x1c2),'attributes':{'class':['ck',_0x45b1a9(0x1ce),_0x45b1a9(0x1ca)]},'children':[this[_0x45b1a9(0x1c8)],this[_0x45b1a9(0x1d7)]]});}[_0x72516f(0x1c6)](){const _0x4288b6=_0x72516f,_0x1f88c5=new _0x43f340(this[_0x4288b6(0x1d3)]);return _0x1f88c5[_0x4288b6(0x1d2)]({'label':_0x1b8e5a(this[_0x4288b6(0x1d3)],_0x4288b6(0x1db)),'withText':!0x0,'class':_0x4288b6(0x1c5),'icon':_0x227bc9}),_0x1f88c5['on'](_0x4288b6(0x1cd),()=>{const _0x5f0106=_0x4288b6;this[_0x5f0106(0x1d6)](_0x5f0106(0x1c1));}),_0x1f88c5;}[_0x72516f(0x1c9)](){const _0x3b8227=_0x72516f,_0x2ee181=new _0x244706(this[_0x3b8227(0x1d3)]);return _0x2ee181[_0x3b8227(0x1cb)]({'tag':_0x3b8227(0x1c2),'attributes':{'class':[_0x3b8227(0x1c3)]},'children':[{'tag':_0x3b8227(0x1c2),'attributes':{'class':[_0x3b8227(0x1dc)]},'children':[{'tag':_0x3b8227(0x1c2),'attributes':{'class':[_0x3b8227(0x1cc)]}},{'tag':_0x3b8227(0x1c2),'attributes':{'class':[_0x3b8227(0x1cc)]}},{'tag':_0x3b8227(0x1c2),'attributes':{'class':[_0x3b8227(0x1cc)]}}]},{'text':_0x1b8e5a(this[_0x3b8227(0x1d3)],_0x3b8227(0x1da))}]}),_0x2ee181;}}
23
+ function _0x5c48(){const _0x189a09=['_createCancelButtonView','ck-ai-chat-controls-loader','ck-ai-button-secondary\x20ck-ai-button-stop-generating','locale','div','fire','12PaRsHs','47390stwPrx','4757648LSqxki','execute','_loaderView','718659QRfxNB','_cancelButtonView','_createLoaderView','342IBuFwF','243DlVURL','ck-ai-chat-controls-loader-icon','202100uGzEVR','ck-reset_all','ck-ai-chat-controls-loader-wrapper','ck-ai-chat-controls-loader-icon-dot','AI_CHAT_STOP_GENERATING','abortPromptStream','841910NFyxsR','180510ouDrcD','409002JDWGRJ','set','AI_CHAT_IS_WRITING','setTemplate'];_0x5c48=function(){return _0x189a09;};return _0x5c48();}const _0x59f1c6=_0x1d80;(function(_0x4ccfe0,_0xca1c8c){const _0x5f48bf=_0x1d80,_0x53d794=_0x4ccfe0();while(!![]){try{const _0x597de3=-parseInt(_0x5f48bf(0x145))/0x1+parseInt(_0x5f48bf(0x143))/0x2+-parseInt(_0x5f48bf(0x154))/0x3+parseInt(_0x5f48bf(0x14f))/0x4*(-parseInt(_0x5f48bf(0x13d))/0x5)+parseInt(_0x5f48bf(0x157))/0x6*(-parseInt(_0x5f48bf(0x150))/0x7)+parseInt(_0x5f48bf(0x151))/0x8+parseInt(_0x5f48bf(0x13b))/0x9*(parseInt(_0x5f48bf(0x144))/0xa);if(_0x597de3===_0xca1c8c)break;else _0x53d794['push'](_0x53d794['shift']());}catch(_0xbcd7d){_0x53d794['push'](_0x53d794['shift']());}}}(_0x5c48,0x54cc5));import{ButtonView as _0x3c6a61,View as _0x39b24b}from'ckeditor5/src/ui.js';import{IconStop as _0x2d25cf}from'ckeditor5/src/icons.js';import{getTranslation as _0x574199}from'../../../aicore/utils/common-translations.js';function _0x1d80(_0x21e879,_0x4fb89a){const _0x5c4821=_0x5c48();return _0x1d80=function(_0x1d809d,_0x247dfc){_0x1d809d=_0x1d809d-0x13b;let _0x5758da=_0x5c4821[_0x1d809d];return _0x5758da;},_0x1d80(_0x21e879,_0x4fb89a);}export class AIChatControlsLoaderView extends _0x39b24b{[_0x59f1c6(0x155)];[_0x59f1c6(0x153)];constructor(_0x42adb3){const _0xa0bc64=_0x59f1c6;super(_0x42adb3),this[_0xa0bc64(0x155)]=this[_0xa0bc64(0x149)](),this[_0xa0bc64(0x153)]=this[_0xa0bc64(0x156)](),this[_0xa0bc64(0x148)]({'tag':_0xa0bc64(0x14d),'attributes':{'class':['ck',_0xa0bc64(0x13f),_0xa0bc64(0x13e)]},'children':[this[_0xa0bc64(0x153)],this[_0xa0bc64(0x155)]]});}[_0x59f1c6(0x149)](){const _0x5920db=_0x59f1c6,_0x20a3d2=new _0x3c6a61(this[_0x5920db(0x14c)]);return _0x20a3d2[_0x5920db(0x146)]({'label':_0x574199(this[_0x5920db(0x14c)],_0x5920db(0x141)),'withText':!0x0,'class':_0x5920db(0x14b),'icon':_0x2d25cf}),_0x20a3d2['on'](_0x5920db(0x152),()=>{const _0xca88a0=_0x5920db;this[_0xca88a0(0x14e)](_0xca88a0(0x142));}),_0x20a3d2;}[_0x59f1c6(0x156)](){const _0x208902=_0x59f1c6,_0x3da888=new _0x39b24b(this[_0x208902(0x14c)]);return _0x3da888[_0x208902(0x148)]({'tag':_0x208902(0x14d),'attributes':{'class':[_0x208902(0x14a)]},'children':[{'tag':_0x208902(0x14d),'attributes':{'class':[_0x208902(0x13c)]},'children':[{'tag':_0x208902(0x14d),'attributes':{'class':[_0x208902(0x140)]}},{'tag':_0x208902(0x14d),'attributes':{'class':[_0x208902(0x140)]}},{'tag':_0x208902(0x14d),'attributes':{'class':[_0x208902(0x140)]}}]},{'text':_0x574199(this[_0x208902(0x14c)],_0x208902(0x147))}]}),_0x3da888;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x427645=_0x2e95;(function(_0x5bd3e9,_0x8bc86d){const _0xb95983=_0x2e95,_0x120e48=_0x5bd3e9();while(!![]){try{const _0x271cdb=-parseInt(_0xb95983(0x111))/0x1*(-parseInt(_0xb95983(0x101))/0x2)+-parseInt(_0xb95983(0x114))/0x3+-parseInt(_0xb95983(0xe8))/0x4*(parseInt(_0xb95983(0xf9))/0x5)+-parseInt(_0xb95983(0x108))/0x6*(parseInt(_0xb95983(0xb7))/0x7)+-parseInt(_0xb95983(0xfa))/0x8+-parseInt(_0xb95983(0xc1))/0x9*(parseInt(_0xb95983(0x113))/0xa)+parseInt(_0xb95983(0xc2))/0xb*(parseInt(_0xb95983(0xc7))/0xc);if(_0x271cdb===_0x8bc86d)break;else _0x120e48['push'](_0x120e48['shift']());}catch(_0x5e01a8){_0x120e48['push'](_0x120e48['shift']());}}}(_0x5ef2,0x6f6e8));import{Collection as _0x4a28f9}from'ckeditor5/src/utils.js';import{IconAI as _0xaa003e,IconBulb as _0x54189e,IconWeb as _0x4d660a}from'@ckeditor/ckeditor5-icons';function _0x2e95(_0x469b74,_0x3520fc){const _0x5ef24b=_0x5ef2();return _0x2e95=function(_0x2e95ed,_0x427e54){_0x2e95ed=_0x2e95ed-0xb4;let _0x43a129=_0x5ef24b[_0x2e95ed];return _0x43a129;},_0x2e95(_0x469b74,_0x3520fc);}function _0x5ef2(){const _0x52846c=['isVisible','AI_CHAT_COMMANDS','span','execute','_getCapabilityParts','enabled','5nQjSdl','setWebSearch','3502270toNBbQ','427395BfbYqj','addMany','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','webSearchActive','setReasoning','AI_CHAT_CAPABILITIES_YES','bind','1512028nJjSCV','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','buttonView','listenTo','content','_createWebSearchButton','toggleReasoning','isOn','description','ck-ai-chat-controls__model-selection__item-description','9KufHOJ','6391jtfvYg','AI_CHAT_SEARCH_WEB','isEnabled','clear','_modelNameView','37236BSkvjK','reasoningActive','_createCommandsButton','_commandsButton','div','ck-ai-chat-controls__model-selection__item-name','AI_CHAT_CAPABILITIES_NO','add','_createModelNameView','enableModelSelector','toggleWebSearch','_createReasoningButton','name','text','button','menuitemradio','model','modelSelectorEnabled','ck-ai-chat-controls__model-selection__item-capabilities','length','selector','source','_reasoningButton','setModel','set','extendTemplate','ck-ai-button-tertiary','ck-ai-chat-controls__model-name','locale','reasoning','AI_CHAT_ENABLE_WEB_SEARCH','createCollection','capabilities','1003388QTYquB','log','webSearch','AI_CHAT_ENABLE_REASONING','ck-ai-chat__prompt-capabilities','_modelSelectionDropdown','activeModelId','_modelSelectionDropdownItems','label','style','ck-hidden','setTemplate','selectModel','ck-button__label','AI_CHAT_DISABLE_REASONING','ck-ai-chat-controls-button','hidden','10CKnXEw','2167792BpVGPY','ck-ai-chat-controls__model-selection','setModelList','_createModelSelectionDropdown','AI_CHAT_DISABLE_WEB_SEARCH','tooltip','modelDisplayMode','53978qMNMlI','AI_CHAT_REASONING','_webSearchButton','ck-ai-chat-controls-button--commands','activeModelName','fire','bindTemplate','6Slfbzn','Commands\x20are\x20not\x20implemented\x20yet.','disableModelSelector'];_0x5ef2=function(){return _0x52846c;};return _0x5ef2();}import{addListToDropdown as _0x5cdd72,ButtonLabelView as _0x26e6a6,ButtonView as _0x4ec2be,createDropdown as _0x546b23,IconView as _0x428619,UIModel as _0x437b08,View as _0x3fe407}from'ckeditor5/src/ui.js';import{getTranslation as _0x346fbb}from'../../../aicore/utils/common-translations.js';const qo=_0x427645(0xec),jo=_0x427645(0xf7),zo=_0x427645(0x104),Jo=_0x427645(0xe1),Ko=_0x427645(0xfb),Qo=_0x427645(0xcc),Zo=_0x427645(0xc0),tl=_0x427645(0xd9),el='n';export class AIChatPromptCapabilitiesView extends _0x3fe407{[_0x427645(0x103)];[_0x427645(0xdd)];[_0x427645(0xca)];[_0x427645(0xed)];[_0x427645(0xef)];[_0x427645(0xc6)];constructor(_0x5c9441){const _0x5df12d=_0x427645;super(_0x5c9441),this[_0x5df12d(0xdf)](_0x5df12d(0x117),!0x1),this[_0x5df12d(0xdf)](_0x5df12d(0xc8),!0x1),this[_0x5df12d(0xdf)](_0x5df12d(0x100),_0x5df12d(0xdb)),this[_0x5df12d(0xdf)](_0x5df12d(0xd8),!0x0),this[_0x5df12d(0xdf)](_0x5df12d(0xee),null),this[_0x5df12d(0xdf)](_0x5df12d(0x105),null),this[_0x5df12d(0xed)]=this[_0x5df12d(0xfd)](),this[_0x5df12d(0xc6)]=this[_0x5df12d(0xcf)](),this[_0x5df12d(0x103)]=this[_0x5df12d(0xbc)](),this[_0x5df12d(0xdd)]=this[_0x5df12d(0xd2)](),this[_0x5df12d(0xca)]=this[_0x5df12d(0xc9)](),this[_0x5df12d(0xed)][_0x5df12d(0xb9)][_0x5df12d(0xb6)](_0x5df12d(0x10b))['to'](this,_0x5df12d(0x100),_0x16deb9=>_0x5df12d(0xdb)===_0x16deb9),this[_0x5df12d(0xed)][_0x5df12d(0xb9)][_0x5df12d(0xb6)](_0x5df12d(0xff))['to'](this,_0x5df12d(0xd8),_0x901e8d=>_0x901e8d?this[_0x5df12d(0xed)][_0x5df12d(0xb9)][_0x5df12d(0xf0)]:_0x346fbb(this[_0x5df12d(0xe3)],_0x5df12d(0xb8))),this[_0x5df12d(0xed)][_0x5df12d(0xb6)](_0x5df12d(0xc4))['to'](this,_0x5df12d(0xd8),_0x32b2b8=>_0x32b2b8),this[_0x5df12d(0x103)][_0x5df12d(0xb6)](_0x5df12d(0xbe))['to'](this,_0x5df12d(0x117),_0x16e2c0=>_0x16e2c0),this[_0x5df12d(0x103)][_0x5df12d(0xb6)](_0x5df12d(0xff))['to'](this,_0x5df12d(0x117),_0x348dc3=>_0x346fbb(this[_0x5df12d(0xe3)],_0x348dc3?_0x5df12d(0xfe):_0x5df12d(0xe5))),this[_0x5df12d(0xdd)][_0x5df12d(0xb6)](_0x5df12d(0xbe))['to'](this,_0x5df12d(0xc8),_0x5d8bf3=>_0x5d8bf3),this[_0x5df12d(0xdd)][_0x5df12d(0xb6)](_0x5df12d(0xff))['to'](this,_0x5df12d(0xc8),_0x2e1ce0=>_0x346fbb(this[_0x5df12d(0xe3)],_0x2e1ce0?_0x5df12d(0xf6):_0x5df12d(0xeb))),this[_0x5df12d(0xf3)]({'tag':_0x5df12d(0xcb),'attributes':{'class':[qo]},'children':[this[_0x5df12d(0xed)],this[_0x5df12d(0xc6)],this[_0x5df12d(0x103)],this[_0x5df12d(0xdd)],this[_0x5df12d(0xca)]]}),this[_0x5df12d(0xef)]=new _0x4a28f9(),_0x5cdd72(this[_0x5df12d(0xed)],this[_0x5df12d(0xef)]);}[_0x427645(0xfc)](_0x154828,_0x2b4eda){const _0x333e60=_0x427645;if(_0x2b4eda)this[_0x333e60(0xdf)](_0x333e60(0x100),_0x333e60(0xf8));else{const _0x1d8af5=0x1===_0x154828[_0x333e60(0xda)];this[_0x333e60(0xdf)](_0x333e60(0x100),_0x1d8af5?_0x333e60(0xd3):_0x333e60(0xdb));}if(this[_0x333e60(0xef)][_0x333e60(0xc5)](),_0x154828?.[_0x333e60(0xda)])for(const _0x33d64a of _0x154828){const _0x3f62dd=new _0x437b08({'label':_0x33d64a[_0x333e60(0xd3)],'withText':!0x0,'role':_0x333e60(0xd6),'id':_0x33d64a['id'],'model':_0x33d64a});_0x3f62dd[_0x333e60(0xb6)](_0x333e60(0xbe))['to'](this,_0x333e60(0xee),_0x3754cf=>_0x3754cf===_0x33d64a['id']),this[_0x333e60(0xef)][_0x333e60(0xce)]({'type':_0x333e60(0xd5),'model':_0x3f62dd,'labelView':new ModelButtonLabelView(this[_0x333e60(0xe3)],_0x33d64a)});}}[_0x427645(0x112)](_0x594674){const _0x21275a=_0x427645;this[_0x21275a(0xdf)](_0x21275a(0x117),_0x594674);}[_0x427645(0xb4)](_0x3fef4d){const _0xd00bfa=_0x427645;this[_0xd00bfa(0xdf)](_0xd00bfa(0xc8),_0x3fef4d);}[_0x427645(0xde)](_0x128004){const _0x2c790b=_0x427645;if(!_0x128004)return;this[_0x2c790b(0xee)]=_0x128004['id'],this[_0x2c790b(0x105)]=_0x128004[_0x2c790b(0xd3)]||_0x128004['id'],this[_0x2c790b(0xed)][_0x2c790b(0xb9)][_0x2c790b(0xdf)](_0x2c790b(0xf0),_0x128004[_0x2c790b(0xd3)]),this[_0x2c790b(0xed)][_0x2c790b(0xb9)][_0x2c790b(0xdf)](_0x2c790b(0xff),_0x128004[_0x2c790b(0xd3)]);const _0x246f02=_0x128004[_0x2c790b(0xe7)][_0x2c790b(0xea)]?.[_0x2c790b(0x110)]??!0x1;this[_0x2c790b(0xdf)](_0x2c790b(0x117),!0x1),this[_0x2c790b(0x103)][_0x2c790b(0xdf)](_0x2c790b(0xbe),!0x1),this[_0x2c790b(0x103)][_0x2c790b(0xdf)](_0x2c790b(0xc4),_0x246f02),this[_0x2c790b(0x103)][_0x2c790b(0xdf)](_0x2c790b(0x10b),_0x246f02);const _0x43185c=_0x128004[_0x2c790b(0xe7)][_0x2c790b(0xe4)]?.[_0x2c790b(0x110)]??!0x1;this[_0x2c790b(0xdf)](_0x2c790b(0xc8),!0x1),this[_0x2c790b(0xdd)][_0x2c790b(0xdf)](_0x2c790b(0xbe),!0x1),this[_0x2c790b(0xdd)][_0x2c790b(0xdf)](_0x2c790b(0xc4),_0x43185c),this[_0x2c790b(0xdd)][_0x2c790b(0xdf)](_0x2c790b(0x10b),_0x43185c);}[_0x427645(0xd0)](){const _0xaeb7c6=_0x427645;this[_0xaeb7c6(0xdf)](_0xaeb7c6(0xd8),!0x0);}[_0x427645(0x10a)](_0x482946){const _0x4c4a8e=_0x427645;this[_0x4c4a8e(0xdf)](_0x4c4a8e(0xd8),!0x1),_0x482946&&this[_0x4c4a8e(0xdf)](_0x4c4a8e(0x100),_0x4c4a8e(0xf8));}[_0x427645(0xbc)](){const _0x5795fb=_0x427645,_0x185481=new _0x4ec2be();return _0x185481[_0x5795fb(0xdf)]({'label':_0x346fbb(this[_0x5795fb(0xe3)],_0x5795fb(0xc3)),'icon':_0x4d660a,'class':jo,'isToggleable':!0x0,'tooltipPosition':el}),_0x185481['on'](_0x5795fb(0x10e),()=>{const _0x344b72=_0x5795fb;this[_0x344b72(0x106)](_0x344b72(0xd1));}),_0x185481;}[_0x427645(0xd2)](){const _0x5e2977=_0x427645,_0x2404e8=new _0x4ec2be();return _0x2404e8[_0x5e2977(0xdf)]({'label':_0x346fbb(this[_0x5e2977(0xe3)],_0x5e2977(0x102)),'icon':_0x54189e,'class':jo,'isToggleable':!0x0,'tooltipPosition':el}),_0x2404e8['on'](_0x5e2977(0x10e),()=>{const _0x5c5ebc=_0x5e2977;this[_0x5c5ebc(0x106)](_0x5c5ebc(0xbd));}),_0x2404e8;}[_0x427645(0xc9)](){const _0x27b81a=_0x427645,_0x5d6db4=new _0x4ec2be();return _0x5d6db4[_0x27b81a(0xdf)]({'label':_0x346fbb(this[_0x27b81a(0xe3)],_0x27b81a(0x10c)),'icon':_0xaa003e,'withText':!0x0,'class':jo,'isToggleable':!0x0,'tooltip':_0x346fbb(this[_0x27b81a(0xe3)],_0x27b81a(0x10c)),'tooltipPosition':el}),_0x5d6db4[_0x27b81a(0xe0)]({'attributes':{'class':[zo]}}),_0x5d6db4['on'](_0x27b81a(0x10e),()=>{const _0x26ca64=_0x27b81a;console[_0x26ca64(0xe9)](_0x26ca64(0x109)),alert(_0x26ca64(0x109));}),_0x5d6db4;}[_0x427645(0xfd)](){const _0x2f20e7=_0x427645,_0x519ebe=_0x546b23(this[_0x2f20e7(0xe3)]);return _0x519ebe[_0x2f20e7(0xdf)]({'panelPosition':'ne','class':[Ko]}),_0x519ebe[_0x2f20e7(0xb9)][_0x2f20e7(0xdf)]({'label':_0x346fbb(this[_0x2f20e7(0xe3)],_0x2f20e7(0x116)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':el,'class':Jo}),this[_0x2f20e7(0xba)](_0x519ebe,_0x2f20e7(0x10e),_0x1fa764=>{const _0x2ed387=_0x2f20e7;this[_0x2ed387(0x106)](_0x2ed387(0xf4),_0x1fa764[_0x2ed387(0xdc)][_0x2ed387(0xd7)]);}),_0x519ebe;}[_0x427645(0xcf)](){const _0x9ffa35=_0x427645,_0x5f3d4d=new ModelNameView(this[_0x9ffa35(0xe3)]);return _0x5f3d4d[_0x9ffa35(0xb6)](_0x9ffa35(0xd4))['to'](this,_0x9ffa35(0x105),_0x212b7c=>_0x212b7c??''),_0x5f3d4d[_0x9ffa35(0xb6)](_0x9ffa35(0x10b))['to'](this,_0x9ffa35(0x100),_0x5d22a7=>_0x9ffa35(0xd3)===_0x5d22a7),_0x5f3d4d;}}class ModelButtonLabelView extends _0x26e6a6{constructor(_0x583fff,_0x46f66a){const _0x5bead5=_0x427645;super();const _0x1f5175=this[_0x5bead5(0x107)],_0x15245b=this[_0x5bead5(0xe6)]();this[_0x5bead5(0xf3)]({'tag':_0x5bead5(0xcb),'attributes':{'class':['ck',_0x5bead5(0xf5)],'style':_0x1f5175['to'](_0x5bead5(0xf1)),'id':_0x1f5175['to']('id')},'children':[{'tag':_0x5bead5(0xcb),'attributes':{'class':[Qo]},'children':[{'text':_0x1f5175['to'](_0x5bead5(0xd4))}]},{'tag':_0x5bead5(0xcb),'attributes':{'class':[Zo]},'children':[{'tag':_0x5bead5(0x10d),'children':[{'text':_0x46f66a[_0x5bead5(0xbf)]}]}]},{'tag':_0x5bead5(0xcb),'attributes':{'class':[tl]},'children':_0x15245b}]}),_0x15245b[_0x5bead5(0x115)](this[_0x5bead5(0x10f)](_0x583fff,_0x4d660a,_0x5bead5(0xc3),_0x46f66a[_0x5bead5(0xe7)][_0x5bead5(0xea)]?.[_0x5bead5(0x110)]??!0x1)),_0x15245b[_0x5bead5(0x115)](this[_0x5bead5(0x10f)](_0x583fff,_0x54189e,_0x5bead5(0x102),_0x46f66a[_0x5bead5(0xe7)][_0x5bead5(0xe4)]?.[_0x5bead5(0x110)]??!0x1));}[_0x427645(0x10f)](_0x86759d,_0x57b6ed,_0x132fb8,_0xac793b){const _0x1c69e3=_0x427645,_0x5d847d=new _0x428619();_0x5d847d[_0x1c69e3(0xbb)]=_0x57b6ed;const _0x11db73=new _0x3fe407(_0x86759d);_0x11db73[_0x1c69e3(0xf3)]({'tag':_0x1c69e3(0x10d),'children':[{'text':_0x346fbb(_0x86759d,_0x132fb8)+':\x20'}]});const _0x1d4e34=new _0x3fe407(_0x86759d);return _0x1d4e34[_0x1c69e3(0xf3)]({'tag':_0x1c69e3(0x10d),'children':[{'text':_0x346fbb(_0x86759d,_0xac793b?_0x1c69e3(0xb5):_0x1c69e3(0xcd))}]}),[_0x5d847d,_0x11db73,_0x1d4e34];}}class ModelNameView extends _0x3fe407{constructor(_0x227171){const _0x4863b6=_0x427645;super(_0x227171),this[_0x4863b6(0xdf)](_0x4863b6(0xd4),void 0x0),this[_0x4863b6(0xdf)](_0x4863b6(0x10b),!0x0);const _0x379c72=this[_0x4863b6(0x107)];this[_0x4863b6(0xf3)]({'tag':_0x4863b6(0x10d),'attributes':{'class':['ck',_0x4863b6(0xe2),_0x379c72['if'](_0x4863b6(0x10b),_0x4863b6(0xf2),_0x126b6b=>!_0x126b6b)]},'children':[{'text':_0x379c72['to'](_0x4863b6(0xd4))}]});}}
23
+ const _0x3231f9=_0x2915;(function(_0x55f76f,_0x33284c){const _0x2ab30b=_0x2915,_0x48d272=_0x55f76f();while(!![]){try{const _0x31d551=-parseInt(_0x2ab30b(0x1f6))/0x1+parseInt(_0x2ab30b(0x23d))/0x2*(-parseInt(_0x2ab30b(0x21c))/0x3)+parseInt(_0x2ab30b(0x1e5))/0x4*(parseInt(_0x2ab30b(0x22e))/0x5)+-parseInt(_0x2ab30b(0x1ef))/0x6*(-parseInt(_0x2ab30b(0x1e6))/0x7)+-parseInt(_0x2ab30b(0x238))/0x8*(parseInt(_0x2ab30b(0x229))/0x9)+parseInt(_0x2ab30b(0x22c))/0xa+-parseInt(_0x2ab30b(0x1fa))/0xb;if(_0x31d551===_0x33284c)break;else _0x48d272['push'](_0x48d272['shift']());}catch(_0x1cd935){_0x48d272['push'](_0x48d272['shift']());}}}(_0x26ab,0x4da7c));import{Collection as _0x1d25de}from'ckeditor5/src/utils.js';import{IconAI as _0x55620b,IconBulb as _0xf7ff4c,IconWeb as _0xdd30cf}from'@ckeditor/ckeditor5-icons';function _0x26ab(){const _0x20f824=['reasoning','span','1207230LGdmmp','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','addMany','AI_CHAT_ENABLE_REASONING','AI_CHAT_DISABLE_WEB_SEARCH','bindTemplate','AI_CHAT_REASONING','45398SFasJa','toggleWebSearch','ck-ai-chat-controls__model-selection__item-name','reasoningActive','6755903lnUnyz','text','_createModelNameView','_createCommandsButton','description','listenTo','disableModelSelector','execute','div','_createWebSearchButton','webSearchActive','setModel','isEnabled','label','ck-ai-chat__prompt-capabilities','ck-button__label','ck-ai-chat-controls__model-selection','tooltip','createCollection','menuitemradio','selectModel','_getCapabilityParts','enableModelSelector','activeModelName','add','activeModelId','set','ck-ai-chat-controls__model-name','_modelSelectionDropdownItems','selector','buttonView','clear','_modelSelectionDropdown','length','165354rgOwaf','extendTemplate','enabled','AI_CHAT_CAPABILITIES_NO','bind','_createModelSelectionDropdown','setReasoning','ck-ai-chat-controls-button','ck-hidden','setTemplate','locale','name','content','18mXlrMZ','webSearch','style','5960660Jfezaf','ck-ai-chat-controls__model-selection__item-description','1283270RuuZMZ','hidden','AI_CHAT_COMMANDS','ck-ai-button-tertiary','AI_CHAT_ENABLE_WEB_SEARCH','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','toggleReasoning','_commandsButton','AI_CHAT_DISABLE_REASONING','model','84640SaDrpB','modelSelectorEnabled','_reasoningButton','ck-ai-chat-controls-button--commands','log','2qKrHNE','ck-ai-chat-controls__model-selection__item-capabilities','AI_CHAT_CAPABILITIES_YES','button','_modelNameView','setWebSearch','capabilities','_webSearchButton','isVisible','modelDisplayMode','AI_CHAT_SEARCH_WEB','4njyfGT','7jfSkMe','source','setModelList','isOn','fire','_createReasoningButton','Commands\x20are\x20not\x20implemented\x20yet.'];_0x26ab=function(){return _0x20f824;};return _0x26ab();}import{addListToDropdown as _0x7fd97f,ButtonLabelView as _0x1b3383,ButtonView as _0x3583de,createDropdown as _0x418167,IconView as _0x588ab0,UIModel as _0x2dc850,View as _0x41a30c}from'ckeditor5/src/ui.js';import{getTranslation as _0x265872}from'../../../aicore/utils/common-translations.js';function _0x2915(_0x16dcc1,_0x1d1a7c){const _0x26abaa=_0x26ab();return _0x2915=function(_0x291507,_0xe2ac9b){_0x291507=_0x291507-0x1e4;let _0x784c29=_0x26abaa[_0x291507];return _0x784c29;},_0x2915(_0x16dcc1,_0x1d1a7c);}const yo=_0x3231f9(0x208),bo=_0x3231f9(0x223),Wo=_0x3231f9(0x23b),Go=_0x3231f9(0x231),Yo=_0x3231f9(0x20a),qo=_0x3231f9(0x1f8),zo=_0x3231f9(0x22d),Jo=_0x3231f9(0x23e),Ko='n';export class AIChatPromptCapabilitiesView extends _0x41a30c{[_0x3231f9(0x244)];[_0x3231f9(0x23a)];[_0x3231f9(0x235)];[_0x3231f9(0x21a)];[_0x3231f9(0x216)];[_0x3231f9(0x241)];constructor(_0x1fa346){const _0x142c97=_0x3231f9;super(_0x1fa346),this[_0x142c97(0x214)](_0x142c97(0x204),!0x1),this[_0x142c97(0x214)](_0x142c97(0x1f9),!0x1),this[_0x142c97(0x214)](_0x142c97(0x246),_0x142c97(0x217)),this[_0x142c97(0x214)](_0x142c97(0x239),!0x0),this[_0x142c97(0x214)](_0x142c97(0x213),null),this[_0x142c97(0x214)](_0x142c97(0x211),null),this[_0x142c97(0x21a)]=this[_0x142c97(0x221)](),this[_0x142c97(0x241)]=this[_0x142c97(0x1fc)](),this[_0x142c97(0x244)]=this[_0x142c97(0x203)](),this[_0x142c97(0x23a)]=this[_0x142c97(0x1eb)](),this[_0x142c97(0x235)]=this[_0x142c97(0x1fd)](),this[_0x142c97(0x21a)][_0x142c97(0x218)][_0x142c97(0x220)](_0x142c97(0x245))['to'](this,_0x142c97(0x246),_0x4d3f05=>_0x142c97(0x217)===_0x4d3f05),this[_0x142c97(0x21a)][_0x142c97(0x218)][_0x142c97(0x220)](_0x142c97(0x20b))['to'](this,_0x142c97(0x239),_0xfff781=>_0xfff781?this[_0x142c97(0x21a)][_0x142c97(0x218)][_0x142c97(0x207)]:_0x265872(this[_0x142c97(0x226)],_0x142c97(0x1f0))),this[_0x142c97(0x21a)][_0x142c97(0x220)](_0x142c97(0x206))['to'](this,_0x142c97(0x239),_0x1810d2=>_0x1810d2),this[_0x142c97(0x244)][_0x142c97(0x220)](_0x142c97(0x1e9))['to'](this,_0x142c97(0x204),_0x3e67f8=>_0x3e67f8),this[_0x142c97(0x244)][_0x142c97(0x220)](_0x142c97(0x20b))['to'](this,_0x142c97(0x204),_0x55d786=>_0x265872(this[_0x142c97(0x226)],_0x55d786?_0x142c97(0x1f3):_0x142c97(0x232))),this[_0x142c97(0x23a)][_0x142c97(0x220)](_0x142c97(0x1e9))['to'](this,_0x142c97(0x1f9),_0x59acff=>_0x59acff),this[_0x142c97(0x23a)][_0x142c97(0x220)](_0x142c97(0x20b))['to'](this,_0x142c97(0x1f9),_0x2b018d=>_0x265872(this[_0x142c97(0x226)],_0x2b018d?_0x142c97(0x236):_0x142c97(0x1f2))),this[_0x142c97(0x225)]({'tag':_0x142c97(0x202),'attributes':{'class':[yo]},'children':[this[_0x142c97(0x21a)],this[_0x142c97(0x241)],this[_0x142c97(0x244)],this[_0x142c97(0x23a)],this[_0x142c97(0x235)]]}),this[_0x142c97(0x216)]=new _0x1d25de(),_0x7fd97f(this[_0x142c97(0x21a)],this[_0x142c97(0x216)]);}[_0x3231f9(0x1e8)](_0x8931e2,_0x389dd0){const _0x1a2a44=_0x3231f9;if(_0x389dd0)this[_0x1a2a44(0x214)](_0x1a2a44(0x246),_0x1a2a44(0x22f));else{const _0x135d67=0x1===_0x8931e2[_0x1a2a44(0x21b)];this[_0x1a2a44(0x214)](_0x1a2a44(0x246),_0x135d67?_0x1a2a44(0x227):_0x1a2a44(0x217));}if(this[_0x1a2a44(0x216)][_0x1a2a44(0x219)](),_0x8931e2?.[_0x1a2a44(0x21b)])for(const _0x292ef0 of _0x8931e2){const _0x46f5b1=new _0x2dc850({'label':_0x292ef0[_0x1a2a44(0x227)],'withText':!0x0,'role':_0x1a2a44(0x20d),'id':_0x292ef0['id'],'model':_0x292ef0});_0x46f5b1[_0x1a2a44(0x220)](_0x1a2a44(0x1e9))['to'](this,_0x1a2a44(0x213),_0x567d1c=>_0x567d1c===_0x292ef0['id']),this[_0x1a2a44(0x216)][_0x1a2a44(0x212)]({'type':_0x1a2a44(0x240),'model':_0x46f5b1,'labelView':new ModelButtonLabelView(this[_0x1a2a44(0x226)],_0x292ef0)});}}[_0x3231f9(0x242)](_0x5cd2aa){const _0x1718f2=_0x3231f9;this[_0x1718f2(0x214)](_0x1718f2(0x204),_0x5cd2aa);}[_0x3231f9(0x222)](_0x4c9520){const _0x57fa0f=_0x3231f9;this[_0x57fa0f(0x214)](_0x57fa0f(0x1f9),_0x4c9520);}[_0x3231f9(0x205)](_0x4efbad){const _0x102a19=_0x3231f9;if(!_0x4efbad)return;this[_0x102a19(0x213)]=_0x4efbad['id'],this[_0x102a19(0x211)]=_0x4efbad[_0x102a19(0x227)]||_0x4efbad['id'],this[_0x102a19(0x21a)][_0x102a19(0x218)][_0x102a19(0x214)](_0x102a19(0x207),_0x4efbad[_0x102a19(0x227)]),this[_0x102a19(0x21a)][_0x102a19(0x218)][_0x102a19(0x214)](_0x102a19(0x20b),_0x4efbad[_0x102a19(0x227)]);const _0x2260b4=_0x4efbad[_0x102a19(0x243)][_0x102a19(0x22a)]?.[_0x102a19(0x21e)]??!0x1;this[_0x102a19(0x214)](_0x102a19(0x204),!0x1),this[_0x102a19(0x244)][_0x102a19(0x214)](_0x102a19(0x1e9),!0x1),this[_0x102a19(0x244)][_0x102a19(0x214)](_0x102a19(0x206),_0x2260b4),this[_0x102a19(0x244)][_0x102a19(0x214)](_0x102a19(0x245),_0x2260b4);const _0xebf718=_0x4efbad[_0x102a19(0x243)][_0x102a19(0x1ed)]?.[_0x102a19(0x21e)]??!0x1;this[_0x102a19(0x214)](_0x102a19(0x1f9),!0x1),this[_0x102a19(0x23a)][_0x102a19(0x214)](_0x102a19(0x1e9),!0x1),this[_0x102a19(0x23a)][_0x102a19(0x214)](_0x102a19(0x206),_0xebf718),this[_0x102a19(0x23a)][_0x102a19(0x214)](_0x102a19(0x245),_0xebf718);}[_0x3231f9(0x210)](){const _0x4de104=_0x3231f9;this[_0x4de104(0x214)](_0x4de104(0x239),!0x0);}[_0x3231f9(0x200)](_0x25f8fb){const _0x46b640=_0x3231f9;this[_0x46b640(0x214)](_0x46b640(0x239),!0x1),_0x25f8fb&&this[_0x46b640(0x214)](_0x46b640(0x246),_0x46b640(0x22f));}[_0x3231f9(0x203)](){const _0xd48815=_0x3231f9,_0x4d9356=new _0x3583de();return _0x4d9356[_0xd48815(0x214)]({'label':_0x265872(this[_0xd48815(0x226)],_0xd48815(0x1e4)),'icon':_0xdd30cf,'class':bo,'isToggleable':!0x0,'tooltipPosition':Ko}),_0x4d9356['on'](_0xd48815(0x201),()=>{const _0x1f4eb5=_0xd48815;this[_0x1f4eb5(0x1ea)](_0x1f4eb5(0x1f7));}),_0x4d9356;}[_0x3231f9(0x1eb)](){const _0x1336bc=_0x3231f9,_0x18a92f=new _0x3583de();return _0x18a92f[_0x1336bc(0x214)]({'label':_0x265872(this[_0x1336bc(0x226)],_0x1336bc(0x1f5)),'icon':_0xf7ff4c,'class':bo,'isToggleable':!0x0,'tooltipPosition':Ko}),_0x18a92f['on'](_0x1336bc(0x201),()=>{const _0x541fc0=_0x1336bc;this[_0x541fc0(0x1ea)](_0x541fc0(0x234));}),_0x18a92f;}[_0x3231f9(0x1fd)](){const _0x440fbd=_0x3231f9,_0x4a0c47=new _0x3583de();return _0x4a0c47[_0x440fbd(0x214)]({'label':_0x265872(this[_0x440fbd(0x226)],_0x440fbd(0x230)),'icon':_0x55620b,'withText':!0x0,'class':bo,'isToggleable':!0x0,'tooltip':_0x265872(this[_0x440fbd(0x226)],_0x440fbd(0x230)),'tooltipPosition':Ko}),_0x4a0c47[_0x440fbd(0x21d)]({'attributes':{'class':[Wo]}}),_0x4a0c47['on'](_0x440fbd(0x201),()=>{const _0x495e2c=_0x440fbd;console[_0x495e2c(0x23c)](_0x495e2c(0x1ec)),alert(_0x495e2c(0x1ec));}),_0x4a0c47;}[_0x3231f9(0x221)](){const _0x3ef679=_0x3231f9,_0x40cea7=_0x418167(this[_0x3ef679(0x226)]);return _0x40cea7[_0x3ef679(0x214)]({'panelPosition':'ne','class':[Yo]}),_0x40cea7[_0x3ef679(0x218)][_0x3ef679(0x214)]({'label':_0x265872(this[_0x3ef679(0x226)],_0x3ef679(0x233)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':Ko,'class':Go}),this[_0x3ef679(0x1ff)](_0x40cea7,_0x3ef679(0x201),_0x240e10=>{const _0x3326ca=_0x3ef679;this[_0x3326ca(0x1ea)](_0x3326ca(0x20e),_0x240e10[_0x3326ca(0x1e7)][_0x3326ca(0x237)]);}),_0x40cea7;}[_0x3231f9(0x1fc)](){const _0x239c7e=_0x3231f9,_0x3c41c1=new ModelNameView(this[_0x239c7e(0x226)]);return _0x3c41c1[_0x239c7e(0x220)](_0x239c7e(0x1fb))['to'](this,_0x239c7e(0x211),_0x37dde5=>_0x37dde5??''),_0x3c41c1[_0x239c7e(0x220)](_0x239c7e(0x245))['to'](this,_0x239c7e(0x246),_0xf963f6=>_0x239c7e(0x227)===_0xf963f6),_0x3c41c1;}}class ModelButtonLabelView extends _0x1b3383{constructor(_0x15bc83,_0x4f7f6e){const _0x2f949a=_0x3231f9;super();const _0x49e2a7=this[_0x2f949a(0x1f4)],_0x38edfd=this[_0x2f949a(0x20c)]();this[_0x2f949a(0x225)]({'tag':_0x2f949a(0x202),'attributes':{'class':['ck',_0x2f949a(0x209)],'style':_0x49e2a7['to'](_0x2f949a(0x22b)),'id':_0x49e2a7['to']('id')},'children':[{'tag':_0x2f949a(0x202),'attributes':{'class':[qo]},'children':[{'text':_0x49e2a7['to'](_0x2f949a(0x1fb))}]},{'tag':_0x2f949a(0x202),'attributes':{'class':[zo]},'children':[{'tag':_0x2f949a(0x1ee),'children':[{'text':_0x4f7f6e[_0x2f949a(0x1fe)]}]}]},{'tag':_0x2f949a(0x202),'attributes':{'class':[Jo]},'children':_0x38edfd}]}),_0x38edfd[_0x2f949a(0x1f1)](this[_0x2f949a(0x20f)](_0x15bc83,_0xdd30cf,_0x2f949a(0x1e4),_0x4f7f6e[_0x2f949a(0x243)][_0x2f949a(0x22a)]?.[_0x2f949a(0x21e)]??!0x1)),_0x38edfd[_0x2f949a(0x1f1)](this[_0x2f949a(0x20f)](_0x15bc83,_0xf7ff4c,_0x2f949a(0x1f5),_0x4f7f6e[_0x2f949a(0x243)][_0x2f949a(0x1ed)]?.[_0x2f949a(0x21e)]??!0x1));}[_0x3231f9(0x20f)](_0xe215ad,_0x181e8f,_0x1d892,_0x4add0f){const _0x32366b=_0x3231f9,_0x27b5a3=new _0x588ab0();_0x27b5a3[_0x32366b(0x228)]=_0x181e8f;const _0x5c6bf8=new _0x41a30c(_0xe215ad);_0x5c6bf8[_0x32366b(0x225)]({'tag':_0x32366b(0x1ee),'children':[{'text':_0x265872(_0xe215ad,_0x1d892)+':\x20'}]});const _0x4f8cf4=new _0x41a30c(_0xe215ad);return _0x4f8cf4[_0x32366b(0x225)]({'tag':_0x32366b(0x1ee),'children':[{'text':_0x265872(_0xe215ad,_0x4add0f?_0x32366b(0x23f):_0x32366b(0x21f))}]}),[_0x27b5a3,_0x5c6bf8,_0x4f8cf4];}}class ModelNameView extends _0x41a30c{constructor(_0xe050c4){const _0xa1603d=_0x3231f9;super(_0xe050c4),this[_0xa1603d(0x214)](_0xa1603d(0x1fb),void 0x0),this[_0xa1603d(0x214)](_0xa1603d(0x245),!0x0);const _0x45ae4b=this[_0xa1603d(0x1f4)];this[_0xa1603d(0x225)]({'tag':_0xa1603d(0x1ee),'attributes':{'class':['ck',_0xa1603d(0x215),_0x45ae4b['if'](_0xa1603d(0x245),_0xa1603d(0x224),_0x1f67f8=>!_0x1f67f8)]},'children':[{'text':_0x45ae4b['to'](_0xa1603d(0x1fb))}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5e16ec=_0x1e9e;(function(_0x5100f2,_0x8b5cdb){const _0x5b38a8=_0x1e9e,_0x2b25fc=_0x5100f2();while(!![]){try{const _0x13be1b=-parseInt(_0x5b38a8(0x118))/0x1+-parseInt(_0x5b38a8(0x12d))/0x2*(parseInt(_0x5b38a8(0x13c))/0x3)+-parseInt(_0x5b38a8(0x13b))/0x4*(parseInt(_0x5b38a8(0x117))/0x5)+parseInt(_0x5b38a8(0x145))/0x6*(parseInt(_0x5b38a8(0x146))/0x7)+parseInt(_0x5b38a8(0x122))/0x8+parseInt(_0x5b38a8(0x128))/0x9*(-parseInt(_0x5b38a8(0x149))/0xa)+-parseInt(_0x5b38a8(0x148))/0xb*(parseInt(_0x5b38a8(0x11e))/0xc);if(_0x13be1b===_0x8b5cdb)break;else _0x2b25fc['push'](_0x2b25fc['shift']());}catch(_0x156f2d){_0x2b25fc['push'](_0x2b25fc['shift']());}}}(_0x4645,0xae732));import{IconSubmit as _0x53de79}from'ckeditor5/src/icons.js';import{ButtonView as _0x493575,AutocompleteView as _0x5d2ece,createLabeledTextarea as _0x13fc31}from'ckeditor5/src/ui.js';import{global as _0x5139e7,isVisible as _0x4af7ef,Rect as _0x1993f2,ResizeObserver as _0x257192}from'ckeditor5/src/utils.js';function _0x4645(){const _0xa58eee=['hasError','uiLanguageDirection','_queryViewResizeObserver','isEmpty','focusableChildren','submit','target','contains','locale','placeholder','13052WFdoQS','3ZOILPq','_createSubmitButton','calc(','MAX_ROWS','AI_CHAT_PROMPT_EMPTY_ERROR','style','AI_CHAT_LABEL_SUBMIT','trim','excludeScrollbarsAndBorders','6JWPQln','7475412diLlXj','destroy','22rVjXuU','410BLrzXE','ck-ai-chat__prompt-input','setIsUploadInProgress','bind','submitButtonView','set','width','left','isEnabled','queryView','maxRows','enter','focus','ck-ai-chat__prompt-input_highlighted','_addContextButtonView','fire','sendUserMessage','add','reset','remove','px\x20-\x20var(--ck-spacing-tiny))','classList','155WUpcbW','352949MuTFNI','_setUpAddContextButtonPositioning','fieldView','setPlaceholderText','execute','window','612012jMgMai','value','ck-ai-chat__prompt-submit-button','MIN_ROWS','8924736MgAaOU','update','isUploadInProgress','minRows','errorText','right','91305LuIzCL','rtl','extendTemplate','keystrokes','render','993826bIrVLu','requestAnimationFrame','fieldWrapperChildren','element'];_0x4645=function(){return _0xa58eee;};return _0x4645();}import{getTranslation as _0x5ed497}from'../../../aicore/utils/common-translations.js';function _0x1e9e(_0x523b0e,_0x494784){const _0x4645ed=_0x4645();return _0x1e9e=function(_0x1e9eff,_0x1ae6cc){_0x1e9eff=_0x1e9eff-0x10e;let _0x475875=_0x4645ed[_0x1e9eff];return _0x475875;},_0x1e9e(_0x523b0e,_0x494784);}import{AIChatPromptSuggestionsListView as _0xb67a60}from'./aichatpromptsuggestionslistview.js';import{escape as _0x1f3330}from'es-toolkit/compat';const ah=_0x5e16ec(0x10e);export class AIChatPromptInputView extends _0x5d2ece{[_0x5e16ec(0x14d)];static [_0x5e16ec(0x121)]=0x1;static [_0x5e16ec(0x13f)]=0xc;[_0x5e16ec(0x10f)];[_0x5e16ec(0x133)];constructor(_0x142cfe,_0x40c030){const _0x199ee1=_0x5e16ec;super(_0x142cfe,{'queryView':{'label':'','creator':_0x13fc31,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0xb67a60(_0x142cfe),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x199ee1(0x14e)](_0x199ee1(0x134),!0x0),this[_0x199ee1(0x14e)](_0x199ee1(0x124),!0x1),this[_0x199ee1(0x10f)]=_0x40c030,this[_0x199ee1(0x133)]=null,this[_0x199ee1(0x152)][_0x199ee1(0x11a)][_0x199ee1(0x125)]=AIChatPromptInputView[_0x199ee1(0x121)],this[_0x199ee1(0x152)][_0x199ee1(0x11a)][_0x199ee1(0x153)]=AIChatPromptInputView[_0x199ee1(0x13f)],this[_0x199ee1(0x152)][_0x199ee1(0x12f)][_0x199ee1(0x112)](this[_0x199ee1(0x10f)]),this[_0x199ee1(0x119)](),this[_0x199ee1(0x12a)]({'attributes':{'class':['ck',_0x199ee1(0x14a)]}}),this[_0x199ee1(0x14d)]=this[_0x199ee1(0x13d)](),this[_0x199ee1(0x14d)][_0x199ee1(0x14c)](_0x199ee1(0x151))['to'](this,_0x199ee1(0x134),this,_0x199ee1(0x124),(_0xb056b3,_0x2608d6)=>!_0xb056b3&&!_0x2608d6),this[_0x199ee1(0x135)][_0x199ee1(0x112)](this[_0x199ee1(0x14d)]);}[_0x5e16ec(0x12c)](){const _0xac8a70=_0x5e16ec;super[_0xac8a70(0x12c)](),this[_0xac8a70(0x152)][_0xac8a70(0x12f)][_0xac8a70(0x112)](this[_0xac8a70(0x14d)]),this[_0xac8a70(0x12b)][_0xac8a70(0x14e)](_0xac8a70(0x154),(_0xa2b27d,_0x251fcc)=>{const _0x25b4ba=_0xac8a70;this[_0x25b4ba(0x124)]||this[_0x25b4ba(0x134)]||_0xa2b27d[_0x25b4ba(0x137)]==this[_0x25b4ba(0x152)][_0x25b4ba(0x11a)][_0x25b4ba(0x130)]&&(this[_0x25b4ba(0x136)](),_0x251fcc());}),this[_0xac8a70(0x152)][_0xac8a70(0x11a)]['on'](_0xac8a70(0x123),()=>{const _0x171e37=_0xac8a70;this[_0x171e37(0x134)]=''===this[_0x171e37(0x152)][_0x171e37(0x11a)][_0x171e37(0x130)][_0x171e37(0x11f)]?.[_0x171e37(0x143)]();});}[_0x5e16ec(0x147)](){const _0x3dfa5e=_0x5e16ec;super[_0x3dfa5e(0x147)](),this[_0x3dfa5e(0x133)]&&this[_0x3dfa5e(0x133)][_0x3dfa5e(0x147)]();}[_0x5e16ec(0x136)](){const _0x2622dc=_0x5e16ec,_0x4098e3=this[_0x2622dc(0x152)][_0x2622dc(0x11a)][_0x2622dc(0x130)][_0x2622dc(0x11f)]?.[_0x2622dc(0x143)]();if(!_0x4098e3)return this[_0x2622dc(0x152)][_0x2622dc(0x126)]=_0x5ed497(this[_0x2622dc(0x139)],_0x2622dc(0x140)),void(this[_0x2622dc(0x152)][_0x2622dc(0x11a)][_0x2622dc(0x131)]=!0x0);this[_0x2622dc(0x152)][_0x2622dc(0x11a)][_0x2622dc(0x131)]=!0x1;const _0x3bf478=_0x1f3330(_0x4098e3);this[_0x2622dc(0x110)](_0x2622dc(0x111),_0x3bf478),this[_0x2622dc(0x152)][_0x2622dc(0x11a)][_0x2622dc(0x113)]();}[_0x5e16ec(0x11b)](_0x3a6a0f){const _0x4560ee=_0x5e16ec;this[_0x4560ee(0x152)][_0x4560ee(0x11a)][_0x4560ee(0x14e)](_0x4560ee(0x13a),_0x3a6a0f);}[_0x5e16ec(0x155)](_0x162e4c=!0x1){const _0x5a76f1=_0x5e16ec;super[_0x5a76f1(0x155)](),_0x162e4c&&(this[_0x5a76f1(0x130)][_0x5a76f1(0x116)][_0x5a76f1(0x138)](ah)||(this[_0x5a76f1(0x130)][_0x5a76f1(0x116)][_0x5a76f1(0x112)](ah),setTimeout(()=>{const _0x42865c=_0x5a76f1;this[_0x42865c(0x130)][_0x42865c(0x116)][_0x42865c(0x114)](ah);},0x320)));}[_0x5e16ec(0x13d)](){const _0xe33693=_0x5e16ec,_0x1c9468=new _0x493575(this[_0xe33693(0x139)]);return _0x1c9468[_0xe33693(0x14e)]({'icon':_0x53de79,'label':_0x5ed497(this[_0xe33693(0x139)],_0xe33693(0x142)),'isVisible':!0x0,'tooltip':!0x0,'class':_0xe33693(0x120),'isEnabled':!0x1}),_0x1c9468['on'](_0xe33693(0x11c),()=>{const _0x72a54=_0xe33693;this[_0x72a54(0x136)]();}),_0x1c9468;}[_0x5e16ec(0x14b)](_0x2cd199){const _0x48eced=_0x5e16ec;this[_0x48eced(0x124)]=_0x2cd199;}[_0x5e16ec(0x119)](){const _0x3e780d=_0x5e16ec,_0x34e632=this[_0x3e780d(0x139)],_0x53e7a6=()=>{const _0x5da8de=_0x3e780d;_0x5139e7[_0x5da8de(0x11d)][_0x5da8de(0x12e)](()=>{const _0x542922=_0x5da8de;if(_0x4af7ef(this[_0x542922(0x130)])){const _0x53b3cb=new _0x1993f2(this[_0x542922(0x152)][_0x542922(0x11a)][_0x542922(0x130)]),_0x284f7b=new _0x1993f2(this[_0x542922(0x10f)][_0x542922(0x130)]),_0x4a3c32=_0x53b3cb[_0x542922(0x14f)],_0x1cd63b=_0x542922(0x129)===_0x34e632[_0x542922(0x132)]?_0x542922(0x127):_0x542922(0x150);_0x53b3cb[_0x542922(0x144)]();const _0x14fbf5=_0x4a3c32-_0x53b3cb[_0x542922(0x14f)]+0x1;this[_0x542922(0x10f)][_0x542922(0x130)][_0x542922(0x141)][_0x1cd63b]=_0x542922(0x13e)+(_0x4a3c32-_0x284f7b[_0x542922(0x14f)]-_0x14fbf5)+_0x542922(0x115);}});};this[_0x3e780d(0x152)][_0x3e780d(0x11a)]['on'](_0x3e780d(0x123),_0x53e7a6),this['on'](_0x3e780d(0x12c),()=>{const _0x69297=_0x3e780d;_0x53e7a6(),this[_0x69297(0x133)]=new _0x257192(this[_0x69297(0x152)][_0x69297(0x11a)][_0x69297(0x130)],()=>{_0x53e7a6();});});}}
23
+ const _0x508dff=_0x3c0a;(function(_0x17f986,_0x168e2f){const _0x5d2efd=_0x3c0a,_0x4a8572=_0x17f986();while(!![]){try{const _0x174787=parseInt(_0x5d2efd(0x13a))/0x1+parseInt(_0x5d2efd(0x174))/0x2+-parseInt(_0x5d2efd(0x167))/0x3+-parseInt(_0x5d2efd(0x16a))/0x4*(parseInt(_0x5d2efd(0x13e))/0x5)+-parseInt(_0x5d2efd(0x142))/0x6+parseInt(_0x5d2efd(0x16c))/0x7+-parseInt(_0x5d2efd(0x15f))/0x8;if(_0x174787===_0x168e2f)break;else _0x4a8572['push'](_0x4a8572['shift']());}catch(_0x3e51f9){_0x4a8572['push'](_0x4a8572['shift']());}}}(_0x490d,0x9adb2));import{IconSubmit as _0x530052}from'ckeditor5/src/icons.js';import{ButtonView as _0x2d0630,AutocompleteView as _0x307991,createLabeledTextarea as _0x4a7a5b}from'ckeditor5/src/ui.js';function _0x3c0a(_0x184823,_0x47219d){const _0x490d91=_0x490d();return _0x3c0a=function(_0x3c0a21,_0x51f566){_0x3c0a21=_0x3c0a21-0x133;let _0x37f9b9=_0x490d91[_0x3c0a21];return _0x37f9b9;},_0x3c0a(_0x184823,_0x47219d);}function _0x490d(){const _0x4a1067=['target','window','_queryViewResizeObserver','remove','keystrokes','fire','style','isEmpty','trim','extendTemplate','ck-ai-chat__prompt-input','placeholder','MIN_ROWS','add','AI_CHAT_LABEL_SUBMIT','locale','_setUpAddContextButtonPositioning','classList','ck-ai-chat__prompt-input_highlighted','rtl','excludeScrollbarsAndBorders','MAX_ROWS','execute','hasError','527032FUfJHN','isEnabled','left','minRows','calc(','set','setIsUploadInProgress','_createSubmitButton','134727wZaQIg','sendUserMessage','value','4slDKcD','fieldView','6266764ObQVtF','uiLanguageDirection','requestAnimationFrame','isUploadInProgress','reset','right','fieldWrapperChildren','px\x20-\x20var(--ck-spacing-tiny))','858580cZHEuh','width','AI_CHAT_PROMPT_EMPTY_ERROR','focus','setPlaceholderText','_addContextButtonView','contains','bind','errorText','submit','895117xiwqnU','focusableChildren','queryView','submitButtonView','2532615ESOrGD','render','enter','ck-ai-chat__prompt-submit-button','5808348acZyCH','destroy','update','maxRows','element'];_0x490d=function(){return _0x4a1067;};return _0x490d();}import{global as _0x3cb3fd,isVisible as _0x5cb12e,Rect as _0x51f28e,ResizeObserver as _0x19c5c7}from'ckeditor5/src/utils.js';import{getTranslation as _0x3b1437}from'../../../aicore/utils/common-translations.js';import{AIChatPromptSuggestionsListView as _0x1e26f6}from'./aichatpromptsuggestionslistview.js';import{escape as _0x5784f6}from'es-toolkit/compat';const ph=_0x508dff(0x159);export class AIChatPromptInputView extends _0x307991{[_0x508dff(0x13d)];static [_0x508dff(0x153)]=0x1;static [_0x508dff(0x15c)]=0xc;[_0x508dff(0x135)];[_0x508dff(0x149)];constructor(_0x56b850,_0x4be5d1){const _0x475122=_0x508dff;super(_0x56b850,{'queryView':{'label':'','creator':_0x4a7a5b,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x1e26f6(_0x56b850),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x475122(0x164)](_0x475122(0x14e),!0x0),this[_0x475122(0x164)](_0x475122(0x16f),!0x1),this[_0x475122(0x135)]=_0x4be5d1,this[_0x475122(0x149)]=null,this[_0x475122(0x13c)][_0x475122(0x16b)][_0x475122(0x162)]=AIChatPromptInputView[_0x475122(0x153)],this[_0x475122(0x13c)][_0x475122(0x16b)][_0x475122(0x145)]=AIChatPromptInputView[_0x475122(0x15c)],this[_0x475122(0x13c)][_0x475122(0x172)][_0x475122(0x154)](this[_0x475122(0x135)]),this[_0x475122(0x157)](),this[_0x475122(0x150)]({'attributes':{'class':['ck',_0x475122(0x151)]}}),this[_0x475122(0x13d)]=this[_0x475122(0x166)](),this[_0x475122(0x13d)][_0x475122(0x137)](_0x475122(0x160))['to'](this,_0x475122(0x14e),this,_0x475122(0x16f),(_0x2af126,_0x109dca)=>!_0x2af126&&!_0x109dca),this[_0x475122(0x13b)][_0x475122(0x154)](this[_0x475122(0x13d)]);}[_0x508dff(0x13f)](){const _0x4fc418=_0x508dff;super[_0x4fc418(0x13f)](),this[_0x4fc418(0x13c)][_0x4fc418(0x172)][_0x4fc418(0x154)](this[_0x4fc418(0x13d)]),this[_0x4fc418(0x14b)][_0x4fc418(0x164)](_0x4fc418(0x140),(_0x546bc7,_0x37e4ff)=>{const _0x44a2ef=_0x4fc418;this[_0x44a2ef(0x16f)]||this[_0x44a2ef(0x14e)]||_0x546bc7[_0x44a2ef(0x147)]==this[_0x44a2ef(0x13c)][_0x44a2ef(0x16b)][_0x44a2ef(0x146)]&&(this[_0x44a2ef(0x139)](),_0x37e4ff());}),this[_0x4fc418(0x13c)][_0x4fc418(0x16b)]['on'](_0x4fc418(0x144),()=>{const _0x35bda5=_0x4fc418;this[_0x35bda5(0x14e)]=''===this[_0x35bda5(0x13c)][_0x35bda5(0x16b)][_0x35bda5(0x146)][_0x35bda5(0x169)]?.[_0x35bda5(0x14f)]();});}[_0x508dff(0x143)](){const _0x1dac50=_0x508dff;super[_0x1dac50(0x143)](),this[_0x1dac50(0x149)]&&this[_0x1dac50(0x149)][_0x1dac50(0x143)]();}[_0x508dff(0x139)](){const _0x146c5b=_0x508dff,_0x36ba96=this[_0x146c5b(0x13c)][_0x146c5b(0x16b)][_0x146c5b(0x146)][_0x146c5b(0x169)]?.[_0x146c5b(0x14f)]();if(!_0x36ba96)return this[_0x146c5b(0x13c)][_0x146c5b(0x138)]=_0x3b1437(this[_0x146c5b(0x156)],_0x146c5b(0x176)),void(this[_0x146c5b(0x13c)][_0x146c5b(0x16b)][_0x146c5b(0x15e)]=!0x0);this[_0x146c5b(0x13c)][_0x146c5b(0x16b)][_0x146c5b(0x15e)]=!0x1;const _0x425995=_0x5784f6(_0x36ba96);this[_0x146c5b(0x14c)](_0x146c5b(0x168),_0x425995),this[_0x146c5b(0x13c)][_0x146c5b(0x16b)][_0x146c5b(0x170)]();}[_0x508dff(0x134)](_0x2f34f4){const _0x1d73de=_0x508dff;this[_0x1d73de(0x13c)][_0x1d73de(0x16b)][_0x1d73de(0x164)](_0x1d73de(0x152),_0x2f34f4);}[_0x508dff(0x133)](_0x2dfde0=!0x1){const _0x4dd88c=_0x508dff;super[_0x4dd88c(0x133)](),_0x2dfde0&&(this[_0x4dd88c(0x146)][_0x4dd88c(0x158)][_0x4dd88c(0x136)](ph)||(this[_0x4dd88c(0x146)][_0x4dd88c(0x158)][_0x4dd88c(0x154)](ph),setTimeout(()=>{const _0x5df04a=_0x4dd88c;this[_0x5df04a(0x146)][_0x5df04a(0x158)][_0x5df04a(0x14a)](ph);},0x320)));}[_0x508dff(0x166)](){const _0x3d8554=_0x508dff,_0x2674ff=new _0x2d0630(this[_0x3d8554(0x156)]);return _0x2674ff[_0x3d8554(0x164)]({'icon':_0x530052,'label':_0x3b1437(this[_0x3d8554(0x156)],_0x3d8554(0x155)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x3d8554(0x141),'isEnabled':!0x1}),_0x2674ff['on'](_0x3d8554(0x15d),()=>{const _0x39b988=_0x3d8554;this[_0x39b988(0x139)]();}),_0x2674ff;}[_0x508dff(0x165)](_0x305091){const _0x3fa7bf=_0x508dff;this[_0x3fa7bf(0x16f)]=_0x305091;}[_0x508dff(0x157)](){const _0x2539a2=_0x508dff,_0xa87009=this[_0x2539a2(0x156)],_0x414107=()=>{const _0x269a04=_0x2539a2;_0x3cb3fd[_0x269a04(0x148)][_0x269a04(0x16e)](()=>{const _0x9f7e12=_0x269a04;if(_0x5cb12e(this[_0x9f7e12(0x146)])){const _0x3497a8=new _0x51f28e(this[_0x9f7e12(0x13c)][_0x9f7e12(0x16b)][_0x9f7e12(0x146)]),_0x54b2d9=new _0x51f28e(this[_0x9f7e12(0x135)][_0x9f7e12(0x146)]),_0x3b281b=_0x3497a8[_0x9f7e12(0x175)],_0x51bf0c=_0x9f7e12(0x15a)===_0xa87009[_0x9f7e12(0x16d)]?_0x9f7e12(0x171):_0x9f7e12(0x161);_0x3497a8[_0x9f7e12(0x15b)]();const _0x3fc4f0=_0x3b281b-_0x3497a8[_0x9f7e12(0x175)]+0x1;this[_0x9f7e12(0x135)][_0x9f7e12(0x146)][_0x9f7e12(0x14d)][_0x51bf0c]=_0x9f7e12(0x163)+(_0x3b281b-_0x54b2d9[_0x9f7e12(0x175)]-_0x3fc4f0)+_0x9f7e12(0x173);}});};this[_0x2539a2(0x13c)][_0x2539a2(0x16b)]['on'](_0x2539a2(0x144),_0x414107),this['on'](_0x2539a2(0x13f),()=>{const _0x1477ac=_0x2539a2;_0x414107(),this[_0x1477ac(0x149)]=new _0x19c5c7(this[_0x1477ac(0x13c)][_0x1477ac(0x16b)][_0x1477ac(0x146)],()=>{_0x414107();});});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x442f(_0x1d625c,_0x42c38b){const _0x2cc639=_0x2cc6();return _0x442f=function(_0x442f33,_0x57a03f){_0x442f33=_0x442f33-0x1be;let _0x2f881a=_0x2cc639[_0x442f33];return _0x2f881a;},_0x442f(_0x1d625c,_0x42c38b);}const _0xf7314a=_0x442f;function _0x2cc6(){const _0x29ee46=['5osjMEA','2793584pvNlpY','filter','1034711GAYJBJ','6837021KxYRGr','487984bUYwJV','119147GtdUiM','length','807018dYZARx','items','1064492tNuVEJ','138wjRHdr'];_0x2cc6=function(){return _0x29ee46;};return _0x2cc6();}(function(_0x25651f,_0x197d75){const _0x187318=_0x442f,_0x34e04d=_0x25651f();while(!![]){try{const _0x1a3483=parseInt(_0x187318(0x1c1))/0x1+-parseInt(_0x187318(0x1c3))/0x2+-parseInt(_0x187318(0x1c6))/0x3+-parseInt(_0x187318(0x1c8))/0x4*(-parseInt(_0x187318(0x1be))/0x5)+parseInt(_0x187318(0x1c9))/0x6*(-parseInt(_0x187318(0x1c4))/0x7)+-parseInt(_0x187318(0x1bf))/0x8+parseInt(_0x187318(0x1c2))/0x9;if(_0x1a3483===_0x197d75)break;else _0x34e04d['push'](_0x34e04d['shift']());}catch(_0x293334){_0x34e04d['push'](_0x34e04d['shift']());}}}(_0x2cc6,0xc4fa8));import{ListView as _0x50b384}from'ckeditor5/src/ui.js';export class AIChatPromptSuggestionsListView extends _0x50b384{[_0xf7314a(0x1c0)](){const _0x121d1f=_0xf7314a;let _0x2bce83=0x0;for(const _0x3b1d01 of this[_0x121d1f(0x1c7)])_0x2bce83+=_0x3b1d01[_0x121d1f(0x1c7)][_0x121d1f(0x1c5)];return{'resultsCount':_0x2bce83,'totalItemsCount':_0x2bce83};}}
23
+ function _0xc54b(_0x248dac,_0x102682){const _0x450d75=_0x450d();return _0xc54b=function(_0xc54b8f,_0x4f55fb){_0xc54b8f=_0xc54b8f-0xab;let _0x5b7f8f=_0x450d75[_0xc54b8f];return _0x5b7f8f;},_0xc54b(_0x248dac,_0x102682);}function _0x450d(){const _0x5e1b92=['3264696DUVvQT','12qScQSK','1150440PwGYkm','23666ktarbO','4912400ugDEMO','9gmdXMu','length','65220fGkvPC','711655BUcLnn','filter','583177ALnztp','items','78UMHmTx','418YlwFQW'];_0x450d=function(){return _0x5e1b92;};return _0x450d();}const _0x18b1c2=_0xc54b;(function(_0x42de63,_0x5a0ee7){const _0x24ca8e=_0xc54b,_0x5bbfa1=_0x42de63();while(!![]){try{const _0x30eed7=parseInt(_0x24ca8e(0xb6))/0x1+-parseInt(_0x24ca8e(0xb7))/0x2*(-parseInt(_0x24ca8e(0xab))/0x3)+-parseInt(_0x24ca8e(0xb5))/0x4*(parseInt(_0x24ca8e(0xae))/0x5)+parseInt(_0x24ca8e(0xb2))/0x6*(parseInt(_0x24ca8e(0xb0))/0x7)+-parseInt(_0x24ca8e(0xb8))/0x8+-parseInt(_0x24ca8e(0xb4))/0x9+parseInt(_0x24ca8e(0xad))/0xa*(-parseInt(_0x24ca8e(0xb3))/0xb);if(_0x30eed7===_0x5a0ee7)break;else _0x5bbfa1['push'](_0x5bbfa1['shift']());}catch(_0x13dff6){_0x5bbfa1['push'](_0x5bbfa1['shift']());}}}(_0x450d,0x96b8f));import{ListView as _0x5e4f2b}from'ckeditor5/src/ui.js';export class AIChatPromptSuggestionsListView extends _0x5e4f2b{[_0x18b1c2(0xaf)](){const _0x3db355=_0x18b1c2;let _0x4743d8=0x0;for(const _0x3503c2 of this[_0x3db355(0xb1)])_0x4743d8+=_0x3503c2[_0x3db355(0xb1)][_0x3db355(0xac)];return{'resultsCount':_0x4743d8,'totalItemsCount':_0x4743d8};}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x420e(){const _0x2f5bf5=['6448855dJVRxR','clear','13581pwDOpt','fire','execute','addResourceToContext','add','13690540SgMbvk','6vHsZrU','ck-ai-chat-resources__list','setResources','items','updateResourceState','2884868MYCcyA','3182298XCSaYE','test','resource','label','214023eJWsqe','1672WfWGoi','extendTemplate','5uKWdaE','\x5c$&','filter','trim','locale','replace','forEach','443045psemuU','_source','highlightText','_handleResourceSelection','useDefaultFiltering'];_0x420e=function(){return _0x2f5bf5;};return _0x420e();}const _0x487395=_0x8c35;(function(_0x24eb56,_0x2789c9){const _0x549d28=_0x8c35,_0x2dd509=_0x24eb56();while(!![]){try{const _0x25a3dd=-parseInt(_0x549d28(0x1b9))/0x1+-parseInt(_0x549d28(0x1c6))/0x2*(parseInt(_0x549d28(0x1af))/0x3)+parseInt(_0x549d28(0x1aa))/0x4+parseInt(_0x549d28(0x1b2))/0x5*(parseInt(_0x549d28(0x1ab))/0x6)+parseInt(_0x549d28(0x1be))/0x7+-parseInt(_0x549d28(0x1b0))/0x8*(-parseInt(_0x549d28(0x1c0))/0x9)+-parseInt(_0x549d28(0x1c5))/0xa;if(_0x25a3dd===_0x2789c9)break;else _0x2dd509['push'](_0x2dd509['shift']());}catch(_0x1bb1be){_0x2dd509['push'](_0x2dd509['shift']());}}}(_0x420e,0x70d2c));import{ListView as _0x37db68}from'ckeditor5/src/ui.js';import{AIChatResourceListItemView as _0x16b2bb}from'./aichatresourcelistitemview.js';const uc=_0x487395(0x1c7);function _0x8c35(_0xcd37a3,_0x2f1a44){const _0x420eb2=_0x420e();return _0x8c35=function(_0x8c359e,_0x230f7e){_0x8c359e=_0x8c359e-0x1aa;let _0x4e5897=_0x420eb2[_0x8c359e];return _0x4e5897;},_0x8c35(_0xcd37a3,_0x2f1a44);}export class AIChatContextResourcesListView extends _0x37db68{[_0x487395(0x1ba)];constructor(_0x4f0d3c,_0x167052){const _0x4284b0=_0x487395;super(_0x4f0d3c),this[_0x4284b0(0x1ba)]=_0x167052,this[_0x4284b0(0x1b1)]({'attributes':{'class':[uc]}});}[_0x487395(0x1c8)](_0x275f79,_0x305566){const _0x5d453c=_0x487395;this[_0x5d453c(0x1c9)][_0x5d453c(0x1bf)]();let _0xdfaef6=_0x275f79;if(this[_0x5d453c(0x1ba)][_0x5d453c(0x1bd)]&&_0x305566&&''!==_0x305566[_0x5d453c(0x1b5)]()){const _0x548f42=new RegExp(_0x305566[_0x5d453c(0x1b7)](/[.*+?^${}()|[\]\\]/g,_0x5d453c(0x1b3)),'gi');_0xdfaef6=_0x275f79[_0x5d453c(0x1b4)](_0x3a0074=>_0x548f42[_0x5d453c(0x1ac)](_0x3a0074[_0x5d453c(0x1ae)]));}for(const _0x516349 of _0xdfaef6){const _0x326559=new _0x16b2bb(this[_0x5d453c(0x1b6)],_0x516349);_0x326559['on'](_0x5d453c(0x1c2),()=>{const _0x422a9f=_0x5d453c;this[_0x422a9f(0x1bc)](this[_0x422a9f(0x1ba)],_0x516349);}),this[_0x5d453c(0x1c9)][_0x5d453c(0x1c4)](_0x326559);}this[_0x5d453c(0x1ba)][_0x5d453c(0x1bd)]&&this[_0x5d453c(0x1bb)](_0x305566);}[_0x487395(0x1bb)](_0x16fe49){const _0x22c4c0=_0x487395;this[_0x22c4c0(0x1ba)][_0x22c4c0(0x1bd)]&&this[_0x22c4c0(0x1c9)][_0x22c4c0(0x1b8)](_0x418103=>{const _0x2c02a2=_0x22c4c0;_0x418103[_0x2c02a2(0x1bb)](_0x16fe49);});}[_0x487395(0x1ca)](_0x3f035d,_0x19cf8a){const _0x2d77a7=_0x487395;for(const _0x3e88b8 of this[_0x2d77a7(0x1c9)]){const _0x658d5f=_0x3e88b8;_0x658d5f[_0x2d77a7(0x1ad)]['id']===_0x3f035d&&_0x658d5f[_0x2d77a7(0x1ca)](_0x19cf8a);}}[_0x487395(0x1bc)](_0x27966d,_0x1f70cc){const _0x1c8e63=_0x487395;this[_0x1c8e63(0x1c1)](_0x1c8e63(0x1c3),{'source':_0x27966d,'resource':_0x1f70cc});}}
23
+ function _0x2abe(){const _0x4f9c34=['test','1254310bLiMas','6IiUCuZ','items','updateResourceState','_handleResourceSelection','9oQswgh','102438nahVFo','locale','forEach','highlightText','extendTemplate','useDefaultFiltering','432588DXFNAQ','986070LkABcU','label','clear','fire','execute','3584416nFaiHb','237796SOnXtc','setResources','filter','addResourceToContext','3SkILuV','resource','\x5c$&','trim','_source','add','ck-ai-chat-resources__list','1295028NbHxnW','replace'];_0x2abe=function(){return _0x4f9c34;};return _0x2abe();}const _0x5189eb=_0x9b97;(function(_0x1cc884,_0x595b27){const _0x375b01=_0x9b97,_0x38ea37=_0x1cc884();while(!![]){try{const _0x30b0ca=-parseInt(_0x375b01(0x131))/0x1+-parseInt(_0x375b01(0x137))/0x2+-parseInt(_0x375b01(0x142))/0x3*(parseInt(_0x375b01(0x13e))/0x4)+parseInt(_0x375b01(0x12b))/0x5*(parseInt(_0x375b01(0x12c))/0x6)+-parseInt(_0x375b01(0x149))/0x7+parseInt(_0x375b01(0x13d))/0x8+-parseInt(_0x375b01(0x130))/0x9*(-parseInt(_0x375b01(0x138))/0xa);if(_0x30b0ca===_0x595b27)break;else _0x38ea37['push'](_0x38ea37['shift']());}catch(_0x168e32){_0x38ea37['push'](_0x38ea37['shift']());}}}(_0x2abe,0x39360));import{ListView as _0x48df26}from'ckeditor5/src/ui.js';function _0x9b97(_0x5bae50,_0xf9759f){const _0x2abe42=_0x2abe();return _0x9b97=function(_0x9b976,_0x190c2a){_0x9b976=_0x9b976-0x12a;let _0x345ae3=_0x2abe42[_0x9b976];return _0x345ae3;},_0x9b97(_0x5bae50,_0xf9759f);}import{AIChatResourceListItemView as _0xae1c91}from'./aichatresourcelistitemview.js';const uc=_0x5189eb(0x148);export class AIChatContextResourcesListView extends _0x48df26{[_0x5189eb(0x146)];constructor(_0x15530f,_0x28bc20){const _0x1c8049=_0x5189eb;super(_0x15530f),this[_0x1c8049(0x146)]=_0x28bc20,this[_0x1c8049(0x135)]({'attributes':{'class':[uc]}});}[_0x5189eb(0x13f)](_0x16dd43,_0x3c8c69){const _0x55bbf1=_0x5189eb;this[_0x55bbf1(0x12d)][_0x55bbf1(0x13a)]();let _0x4c2e91=_0x16dd43;if(this[_0x55bbf1(0x146)][_0x55bbf1(0x136)]&&_0x3c8c69&&''!==_0x3c8c69[_0x55bbf1(0x145)]()){const _0x524322=new RegExp(_0x3c8c69[_0x55bbf1(0x14a)](/[.*+?^${}()|[\]\\]/g,_0x55bbf1(0x144)),'gi');_0x4c2e91=_0x16dd43[_0x55bbf1(0x140)](_0x2d2926=>_0x524322[_0x55bbf1(0x12a)](_0x2d2926[_0x55bbf1(0x139)]));}for(const _0x5ef5c9 of _0x4c2e91){const _0x2a8f5a=new _0xae1c91(this[_0x55bbf1(0x132)],_0x5ef5c9);_0x2a8f5a['on'](_0x55bbf1(0x13c),()=>{const _0x2f7eb4=_0x55bbf1;this[_0x2f7eb4(0x12f)](this[_0x2f7eb4(0x146)],_0x5ef5c9);}),this[_0x55bbf1(0x12d)][_0x55bbf1(0x147)](_0x2a8f5a);}this[_0x55bbf1(0x146)][_0x55bbf1(0x136)]&&this[_0x55bbf1(0x134)](_0x3c8c69);}[_0x5189eb(0x134)](_0x469a3c){const _0x1a88f9=_0x5189eb;this[_0x1a88f9(0x146)][_0x1a88f9(0x136)]&&this[_0x1a88f9(0x12d)][_0x1a88f9(0x133)](_0x1b60a3=>{const _0x3d4e2d=_0x1a88f9;_0x1b60a3[_0x3d4e2d(0x134)](_0x469a3c);});}[_0x5189eb(0x12e)](_0x5a201e,_0x468992){const _0x4c61a1=_0x5189eb;for(const _0x13bc8c of this[_0x4c61a1(0x12d)]){const _0x67b45b=_0x13bc8c;_0x67b45b[_0x4c61a1(0x143)]['id']===_0x5a201e&&_0x67b45b[_0x4c61a1(0x12e)](_0x468992);}}[_0x5189eb(0x12f)](_0xc127ba,_0x55d65f){const _0x2fbfd1=_0x5189eb;this[_0x2fbfd1(0x13b)](_0x2fbfd1(0x141),{'source':_0xc127ba,'resource':_0x55d65f});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1ebc74=_0x59e4;function _0x59e4(_0x2d8aa8,_0x8cf527){const _0x51d550=_0x51d5();return _0x59e4=function(_0x59e49f,_0x2c93f6){_0x59e49f=_0x59e49f-0x1b2;let _0x44cea9=_0x51d550[_0x59e49f];return _0x44cea9;},_0x59e4(_0x2d8aa8,_0x8cf527);}(function(_0x2ef688,_0x58c0b9){const _0x39f794=_0x59e4,_0x3cd244=_0x2ef688();while(!![]){try{const _0x581ace=parseInt(_0x39f794(0x1bb))/0x1*(-parseInt(_0x39f794(0x1da))/0x2)+-parseInt(_0x39f794(0x1e0))/0x3*(parseInt(_0x39f794(0x1c0))/0x4)+parseInt(_0x39f794(0x1d1))/0x5+parseInt(_0x39f794(0x1b7))/0x6+parseInt(_0x39f794(0x1c3))/0x7+-parseInt(_0x39f794(0x1d9))/0x8+parseInt(_0x39f794(0x1e2))/0x9;if(_0x581ace===_0x58c0b9)break;else _0x3cd244['push'](_0x3cd244['shift']());}catch(_0x31bf0a){_0x3cd244['push'](_0x3cd244['shift']());}}}(_0x51d5,0x81bae));import{View as _0x469975,ViewCollection as _0x19234d}from'ckeditor5/src/ui.js';import{uid as _0x4f0dfe}from'ckeditor5/src/utils.js';import{AIChatContextResourcesListView as _0x5b5b31}from'./aichatcontextresourceslistview.js';import{AIChatContextResourcesSearchInputView as _0x48e770}from'./aichatresourcessearchinputview.js';import{AISkeletonView as _0x40b2f1,SKELETON_DEFINITIONS as _0x3c92c2}from'../../../../aicore/ui/aiskeleton.js';function _0x51d5(){const _0x53cd0a=['4896704LbyiVL','2IWMYnD','_searchInputVisibleFrom','source','addResourceToContext','set','_createSearchView','21558AgibbQ','highlightText','12775527dJIOMJ','delegate','div','_createSkeletonView','fire','_source','2298114ukxEym','setResources','locale','ck-hidden','259846ThGaJp','children','bindTemplate','_searchSection','_searchView','464OOhUiF','render','setTemplate','1954015TMozvK','isLoading','updateResourceState','loadSourceResources','loadResources','_resourcesListView','_createResourcesListView','_skeletonLoader','searchInputVisibleFrom','ck\x20ck-search','length','useDefaultFiltering','has','getQuery','776085soYEIW','extendTemplate','ck-ai-chat-resources','aiChatResources','_createSearchSection','add','search','_latestLoadResourcesUid'];_0x51d5=function(){return _0x53cd0a;};return _0x51d5();}export class AIChatContextResourcesView extends _0x469975{[_0x1ebc74(0x1bf)];[_0x1ebc74(0x1be)];[_0x1ebc74(0x1db)];[_0x1ebc74(0x1c8)];[_0x1ebc74(0x1ca)];[_0x1ebc74(0x1b6)];[_0x1ebc74(0x1bc)];[_0x1ebc74(0x1d8)]=null;constructor(_0x3b56bf,_0x4bd868){const _0x19087a=_0x1ebc74;super(_0x3b56bf),this[_0x19087a(0x1b6)]=_0x4bd868[_0x19087a(0x1dc)],this[_0x19087a(0x1db)]=_0x4bd868[_0x19087a(0x1cb)]??0x7,this[_0x19087a(0x1de)](_0x19087a(0x1c4),!0x0),this[_0x19087a(0x1bf)]=this[_0x19087a(0x1df)](),this[_0x19087a(0x1be)]=this[_0x19087a(0x1d5)](),this[_0x19087a(0x1c8)]=this[_0x19087a(0x1c9)](),this[_0x19087a(0x1ca)]=this[_0x19087a(0x1b4)](),this[_0x19087a(0x1bc)]=new _0x19234d([this[_0x19087a(0x1ca)],this[_0x19087a(0x1c8)]]),this[_0x19087a(0x1c2)]({'tag':_0x19087a(0x1b3),'attributes':{'class':_0x19087a(0x1d3)},'children':this[_0x19087a(0x1bc)]});}[_0x1ebc74(0x1df)](){const _0x27f8ae=_0x1ebc74;return new _0x48e770(this[_0x27f8ae(0x1b9)]);}[_0x1ebc74(0x1d5)](){const _0x4f28db=_0x1ebc74,_0x190c2e=new _0x469975(this[_0x4f28db(0x1b9)]);return _0x190c2e[_0x4f28db(0x1c2)]({'tag':_0x4f28db(0x1b3),'attributes':{'class':_0x4f28db(0x1cc)},'children':[this[_0x4f28db(0x1bf)]]}),this[_0x4f28db(0x1bf)]['on'](_0x4f28db(0x1d7),(_0xd06535,_0x22949d)=>{const _0x436468=_0x4f28db;this[_0x436468(0x1c7)](_0x22949d),this[_0x436468(0x1b6)][_0x436468(0x1ce)]&&this[_0x436468(0x1c8)][_0x436468(0x1e1)](_0x22949d);}),_0x190c2e;}[_0x1ebc74(0x1c9)](){const _0xfb26d4=_0x1ebc74,_0x58e655=new _0x5b5b31(this[_0xfb26d4(0x1b9)],this[_0xfb26d4(0x1b6)]);return _0x58e655[_0xfb26d4(0x1b2)](_0xfb26d4(0x1dd))['to'](this),_0x58e655[_0xfb26d4(0x1d2)]({'attributes':{'class':this[_0xfb26d4(0x1bd)]['if'](_0xfb26d4(0x1c4),_0xfb26d4(0x1ba))}}),_0x58e655;}[_0x1ebc74(0x1b4)](){const _0x4a9219=_0x1ebc74,_0x5634c7=new _0x40b2f1(this[_0x4a9219(0x1b9)],_0x3c92c2[_0x4a9219(0x1d4)]);return _0x5634c7[_0x4a9219(0x1d2)]({'attributes':{'class':[this[_0x4a9219(0x1bd)]['if'](_0x4a9219(0x1c4),_0x4a9219(0x1ba),_0xa359b7=>!_0xa359b7)]}}),_0x5634c7;}[_0x1ebc74(0x1c1)](){const _0x2a0965=_0x1ebc74;super[_0x2a0965(0x1c1)](),this[_0x2a0965(0x1c7)]('');}[_0x1ebc74(0x1c7)](_0x33e586){const _0x26ef03=_0x1ebc74,_0x4b1648=_0x4f0dfe();this[_0x26ef03(0x1d8)]=_0x4b1648,this[_0x26ef03(0x1b5)](_0x26ef03(0x1c6),{'sourceId':this[_0x26ef03(0x1b6)]['id'],'query':_0x33e586,'uid':_0x4b1648}),this[_0x26ef03(0x1c4)]=!0x0;}[_0x1ebc74(0x1b8)](_0x4deabc,_0x37ff7f){const _0x4cb02d=_0x1ebc74;if(_0x37ff7f&&_0x37ff7f!==this[_0x4cb02d(0x1d8)])return;const _0x4cbe92=this[_0x4cb02d(0x1b6)][_0x4cb02d(0x1ce)]?this[_0x4cb02d(0x1bf)][_0x4cb02d(0x1d0)]():'';this[_0x4cb02d(0x1c8)][_0x4cb02d(0x1b8)](_0x4deabc,_0x4cbe92),_0x4deabc[_0x4cb02d(0x1cd)]>=this[_0x4cb02d(0x1db)]&&!this[_0x4cb02d(0x1bc)][_0x4cb02d(0x1cf)](this[_0x4cb02d(0x1be)])&&this[_0x4cb02d(0x1bc)][_0x4cb02d(0x1d6)](this[_0x4cb02d(0x1be)],0x0),requestAnimationFrame(()=>{const _0x377474=_0x4cb02d;this[_0x377474(0x1c4)]=!0x1;});}[_0x1ebc74(0x1c5)](_0x190729,_0x27e12d){const _0x156de5=_0x1ebc74;this[_0x156de5(0x1c8)][_0x156de5(0x1c5)](_0x190729,_0x27e12d);}}
23
+ function _0x45e7(_0x1ce795,_0x525a94){const _0x5c86ef=_0x5c86();return _0x45e7=function(_0x45e71b,_0x4ce919){_0x45e71b=_0x45e71b-0x157;let _0x2d6c3a=_0x5c86ef[_0x45e71b];return _0x2d6c3a;},_0x45e7(_0x1ce795,_0x525a94);}const _0x884291=_0x45e7;(function(_0xa0344c,_0x458ab1){const _0x5b501e=_0x45e7,_0x2152d3=_0xa0344c();while(!![]){try{const _0x466528=parseInt(_0x5b501e(0x17b))/0x1+parseInt(_0x5b501e(0x157))/0x2*(parseInt(_0x5b501e(0x159))/0x3)+-parseInt(_0x5b501e(0x16e))/0x4*(-parseInt(_0x5b501e(0x178))/0x5)+parseInt(_0x5b501e(0x173))/0x6+-parseInt(_0x5b501e(0x162))/0x7+parseInt(_0x5b501e(0x17a))/0x8*(-parseInt(_0x5b501e(0x177))/0x9)+-parseInt(_0x5b501e(0x16d))/0xa;if(_0x466528===_0x458ab1)break;else _0x2152d3['push'](_0x2152d3['shift']());}catch(_0x536f30){_0x2152d3['push'](_0x2152d3['shift']());}}}(_0x5c86,0x5a0a6));import{View as _0x5c54ba,ViewCollection as _0x43f056}from'ckeditor5/src/ui.js';import{uid as _0x7c2956}from'ckeditor5/src/utils.js';import{AIChatContextResourcesListView as _0x156022}from'./aichatcontextresourceslistview.js';function _0x5c86(){const _0x3cd6a2=['1965404czfIEA','highlightText','_resourcesListView','_searchSection','bindTemplate','setTemplate','delegate','getQuery','isLoading','useDefaultFiltering','has','2393650smwErQ','4bxrfTc','extendTemplate','_createResourcesListView','length','_skeletonLoader','3001590RUmtJH','ck\x20ck-search','set','_searchView','1599237vyVrKd','209795fLyGtx','loadResources','32Xlmeab','515342MNLoDi','search','updateResourceState','ck-ai-chat-resources','children','_source','addResourceToContext','fire','div','ck-hidden','_createSearchView','locale','_createSearchSection','render','2Ylxavu','searchInputVisibleFrom','1626447xbsRkr','setResources','source','_latestLoadResourcesUid','aiChatResources','add','_createSkeletonView','_searchInputVisibleFrom','loadSourceResources'];_0x5c86=function(){return _0x3cd6a2;};return _0x5c86();}import{AIChatContextResourcesSearchInputView as _0x56c4a4}from'./aichatresourcessearchinputview.js';import{AISkeletonView as _0xf31ea4,SKELETON_DEFINITIONS as _0x12ffdf}from'../../../../aicore/ui/aiskeleton.js';export class AIChatContextResourcesView extends _0x5c54ba{[_0x884291(0x176)];[_0x884291(0x165)];[_0x884291(0x160)];[_0x884291(0x164)];[_0x884291(0x172)];[_0x884291(0x180)];[_0x884291(0x17f)];[_0x884291(0x15c)]=null;constructor(_0x25dbd4,_0x11887b){const _0x197e4a=_0x884291;super(_0x25dbd4),this[_0x197e4a(0x180)]=_0x11887b[_0x197e4a(0x15b)],this[_0x197e4a(0x160)]=_0x11887b[_0x197e4a(0x158)]??0x7,this[_0x197e4a(0x175)](_0x197e4a(0x16a),!0x0),this[_0x197e4a(0x176)]=this[_0x197e4a(0x185)](),this[_0x197e4a(0x165)]=this[_0x197e4a(0x187)](),this[_0x197e4a(0x164)]=this[_0x197e4a(0x170)](),this[_0x197e4a(0x172)]=this[_0x197e4a(0x15f)](),this[_0x197e4a(0x17f)]=new _0x43f056([this[_0x197e4a(0x172)],this[_0x197e4a(0x164)]]),this[_0x197e4a(0x167)]({'tag':_0x197e4a(0x183),'attributes':{'class':_0x197e4a(0x17e)},'children':this[_0x197e4a(0x17f)]});}[_0x884291(0x185)](){const _0x5f1105=_0x884291;return new _0x56c4a4(this[_0x5f1105(0x186)]);}[_0x884291(0x187)](){const _0x3100e1=_0x884291,_0x559501=new _0x5c54ba(this[_0x3100e1(0x186)]);return _0x559501[_0x3100e1(0x167)]({'tag':_0x3100e1(0x183),'attributes':{'class':_0x3100e1(0x174)},'children':[this[_0x3100e1(0x176)]]}),this[_0x3100e1(0x176)]['on'](_0x3100e1(0x17c),(_0x57cfa1,_0x1439c9)=>{const _0x4b27be=_0x3100e1;this[_0x4b27be(0x179)](_0x1439c9),this[_0x4b27be(0x180)][_0x4b27be(0x16b)]&&this[_0x4b27be(0x164)][_0x4b27be(0x163)](_0x1439c9);}),_0x559501;}[_0x884291(0x170)](){const _0x1f6b5f=_0x884291,_0x361bd5=new _0x156022(this[_0x1f6b5f(0x186)],this[_0x1f6b5f(0x180)]);return _0x361bd5[_0x1f6b5f(0x168)](_0x1f6b5f(0x181))['to'](this),_0x361bd5[_0x1f6b5f(0x16f)]({'attributes':{'class':this[_0x1f6b5f(0x166)]['if'](_0x1f6b5f(0x16a),_0x1f6b5f(0x184))}}),_0x361bd5;}[_0x884291(0x15f)](){const _0x5654b5=_0x884291,_0x19ea74=new _0xf31ea4(this[_0x5654b5(0x186)],_0x12ffdf[_0x5654b5(0x15d)]);return _0x19ea74[_0x5654b5(0x16f)]({'attributes':{'class':[this[_0x5654b5(0x166)]['if'](_0x5654b5(0x16a),_0x5654b5(0x184),_0x400a14=>!_0x400a14)]}}),_0x19ea74;}[_0x884291(0x188)](){const _0xfc1209=_0x884291;super[_0xfc1209(0x188)](),this[_0xfc1209(0x179)]('');}[_0x884291(0x179)](_0x296c01){const _0x364685=_0x884291,_0x1fb03b=_0x7c2956();this[_0x364685(0x15c)]=_0x1fb03b,this[_0x364685(0x182)](_0x364685(0x161),{'sourceId':this[_0x364685(0x180)]['id'],'query':_0x296c01,'uid':_0x1fb03b}),this[_0x364685(0x16a)]=!0x0;}[_0x884291(0x15a)](_0x33cb1a,_0x3914cc){const _0x1ff8cc=_0x884291;if(_0x3914cc&&_0x3914cc!==this[_0x1ff8cc(0x15c)])return;const _0x1124ca=this[_0x1ff8cc(0x180)][_0x1ff8cc(0x16b)]?this[_0x1ff8cc(0x176)][_0x1ff8cc(0x169)]():'';this[_0x1ff8cc(0x164)][_0x1ff8cc(0x15a)](_0x33cb1a,_0x1124ca),_0x33cb1a[_0x1ff8cc(0x171)]>=this[_0x1ff8cc(0x160)]&&!this[_0x1ff8cc(0x17f)][_0x1ff8cc(0x16c)](this[_0x1ff8cc(0x165)])&&this[_0x1ff8cc(0x17f)][_0x1ff8cc(0x15e)](this[_0x1ff8cc(0x165)],0x0),requestAnimationFrame(()=>{const _0x496018=_0x1ff8cc;this[_0x496018(0x16a)]=!0x1;});}[_0x884291(0x17d)](_0x369b79,_0x33f36f){const _0x58b388=_0x884291;this[_0x58b388(0x164)][_0x58b388(0x17d)](_0x369b79,_0x33f36f);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x125da6=_0x4fd8;(function(_0x2c09a0,_0x461284){const _0x52f7ca=_0x4fd8,_0x26409b=_0x2c09a0();while(!![]){try{const _0x1f11a9=parseInt(_0x52f7ca(0x147))/0x1+-parseInt(_0x52f7ca(0x138))/0x2+-parseInt(_0x52f7ca(0x12b))/0x3*(parseInt(_0x52f7ca(0x151))/0x4)+parseInt(_0x52f7ca(0x12d))/0x5+-parseInt(_0x52f7ca(0x153))/0x6*(-parseInt(_0x52f7ca(0x13b))/0x7)+-parseInt(_0x52f7ca(0x144))/0x8*(parseInt(_0x52f7ca(0x13e))/0x9)+parseInt(_0x52f7ca(0x130))/0xa;if(_0x1f11a9===_0x461284)break;else _0x26409b['push'](_0x26409b['shift']());}catch(_0x4dbf76){_0x26409b['push'](_0x26409b['shift']());}}}(_0xf041,0x5e13f));function _0xf041(){const _0x21cf42=['7637LzwkzV','bindTemplate','URL','1350tZAtEI','ck-ai-chat-resources__item-title','setTemplate','_createTitleView','TEXT','isInContext','32040navtZk','_setupTemplate','DOCUMENT','149967pDYsdr','getResourceIcon','set','render','ck-ai-chat-resources__item--in-context','span','ck-ai-chat-resources__item__icon','label','extendTemplate','ck-ai-chat-resources__item','32372uopfyN','trim','2730qaJsaK','execute','isVisible','_createIconView','210aOUkHu','_titleView','2496400kWkTnC','div','highlightText','4909970stvXKR','content','text','FILE','ck-hidden','_updateIcon','_iconView','resource','168092qVrvDd','updateResourceState','type'];_0xf041=function(){return _0x21cf42;};return _0xf041();}import{HighlightedTextView as _0x45054b,IconView as _0xd608a5,ListItemView as _0x1bb6bc}from'ckeditor5/src/ui.js';import{escapeRegExp as _0x897156}from'es-toolkit/compat';import{AIContextItemType as _0x525d79}from'../../../../aicore/model/aicontext.js';function _0x4fd8(_0x22fcea,_0x41c3af){const _0xf041eb=_0xf041();return _0x4fd8=function(_0x4fd865,_0x50f3a2){_0x4fd865=_0x4fd865-0x128;let _0x175588=_0xf041eb[_0x4fd865];return _0x175588;},_0x4fd8(_0x22fcea,_0x41c3af);}import{IconFileUpload as _0x2af022,IconCheck as _0x125c2c,IconDocument as _0xebdc60,IconDocumentOutline as _0x9b6566,IconLink as _0xb76202}from'@ckeditor/ckeditor5-icons';const zr=_0x125da6(0x150),Jr=_0x125da6(0x14b),Kr=_0x125da6(0x13f),Mr=_0x125da6(0x14d);export class AIChatResourceListItemView extends _0x1bb6bc{[_0x125da6(0x137)];[_0x125da6(0x12c)];[_0x125da6(0x136)];constructor(_0xd29e74,_0x5068e0){const _0x3b8a4a=_0x125da6;super(_0xd29e74),this[_0x3b8a4a(0x137)]=_0x5068e0,this[_0x3b8a4a(0x149)](_0x3b8a4a(0x143),!!_0x5068e0[_0x3b8a4a(0x143)]),this[_0x3b8a4a(0x12c)]=this[_0x3b8a4a(0x141)](),this[_0x3b8a4a(0x136)]=this[_0x3b8a4a(0x12a)](),this[_0x3b8a4a(0x145)]();}[_0x125da6(0x14a)](){const _0xf5aa24=_0x125da6;super[_0xf5aa24(0x14a)]();}[_0x125da6(0x148)](_0x431a15){const _0x4e711d=_0x125da6;if(_0x431a15[_0x4e711d(0x143)])return _0x125c2c;switch(_0x431a15[_0x4e711d(0x13a)]){case _0x525d79[_0x4e711d(0x146)]:return _0xebdc60;case _0x525d79[_0x4e711d(0x13d)]:return _0xb76202;case _0x525d79[_0x4e711d(0x133)]:case _0x525d79[_0x4e711d(0x142)]:return _0x2af022;default:return _0x9b6566;}}[_0x125da6(0x12f)](_0x5bae5e){const _0x5b8626=_0x125da6;if(!_0x5bae5e||''===_0x5bae5e[_0x5b8626(0x152)]())return void this[_0x5b8626(0x12c)][_0x5b8626(0x12f)](null);const _0x5e8ac1=new RegExp(_0x897156(_0x5bae5e),'gi');this[_0x5b8626(0x12c)][_0x5b8626(0x12f)](_0x5e8ac1);}[_0x125da6(0x139)](_0x3a0649){const _0x3bb892=_0x125da6;this[_0x3bb892(0x137)][_0x3bb892(0x143)]=_0x3a0649,this[_0x3bb892(0x143)]=_0x3a0649,this[_0x3bb892(0x135)]();}[_0x125da6(0x141)](){const _0x3b6e1b=_0x125da6,_0x3ca00d=new _0x45054b();return _0x3ca00d[_0x3b6e1b(0x132)]=this[_0x3b6e1b(0x137)][_0x3b6e1b(0x14e)],_0x3ca00d[_0x3b6e1b(0x14f)]({'tag':_0x3b6e1b(0x14c),'attributes':{'class':[Kr]}}),_0x3ca00d;}[_0x125da6(0x12a)](){const _0x3287ea=_0x125da6,_0x1ef126=new _0xd608a5();return _0x1ef126[_0x3287ea(0x131)]=this[_0x3287ea(0x148)](this[_0x3287ea(0x137)]),_0x1ef126;}[_0x125da6(0x145)](){const _0x402b86=_0x125da6,_0x573454=this[_0x402b86(0x13c)];this[_0x402b86(0x140)]({'tag':_0x402b86(0x12e),'attributes':{'class':[zr,_0x573454['if'](_0x402b86(0x129),_0x402b86(0x134),_0x1834aa=>!_0x1834aa),_0x573454['if'](_0x402b86(0x143),Jr)]},'children':[{'tag':_0x402b86(0x12e),'attributes':{'class':[Mr]},'children':[this[_0x402b86(0x136)]]},this[_0x402b86(0x12c)]],'on':{'click':_0x573454['to'](_0x402b86(0x128))}});}[_0x125da6(0x135)](){const _0x238b14=_0x125da6;this[_0x238b14(0x136)][_0x238b14(0x131)]=this[_0x238b14(0x148)](this[_0x238b14(0x137)]);}}
23
+ const _0xdbcf73=_0x208d;function _0x208d(_0x2644eb,_0x4f1b34){const _0x61ffde=_0x61ff();return _0x208d=function(_0x208d05,_0x949788){_0x208d05=_0x208d05-0xc1;let _0x405147=_0x61ffde[_0x208d05];return _0x405147;},_0x208d(_0x2644eb,_0x4f1b34);}(function(_0x2d68f3,_0x3e8f4e){const _0x4393aa=_0x208d,_0x1c5e23=_0x2d68f3();while(!![]){try{const _0x344091=-parseInt(_0x4393aa(0xca))/0x1+-parseInt(_0x4393aa(0xd1))/0x2+parseInt(_0x4393aa(0xc5))/0x3+-parseInt(_0x4393aa(0xe8))/0x4+-parseInt(_0x4393aa(0xde))/0x5+parseInt(_0x4393aa(0xc6))/0x6*(parseInt(_0x4393aa(0xdb))/0x7)+parseInt(_0x4393aa(0xe3))/0x8;if(_0x344091===_0x3e8f4e)break;else _0x1c5e23['push'](_0x1c5e23['shift']());}catch(_0x24113b){_0x1c5e23['push'](_0x1c5e23['shift']());}}}(_0x61ff,0x5e584));import{HighlightedTextView as _0x428d00,IconView as _0x1a309a,ListItemView as _0x1a852a}from'ckeditor5/src/ui.js';import{escapeRegExp as _0x5252cb}from'es-toolkit/compat';import{AIContextItemType as _0x4adf98}from'../../../../aicore/model/aicontext.js';import{IconFileUpload as _0xb59cf0,IconCheck as _0x39faf1,IconDocument as _0x5157fa,IconDocumentOutline as _0x19ce33,IconLink as _0x2a025e}from'@ckeditor/ckeditor5-icons';const zr=_0xdbcf73(0xd9),Jr=_0xdbcf73(0xe5),Kr=_0xdbcf73(0xce),Mr=_0xdbcf73(0xe1);export class AIChatResourceListItemView extends _0x1a852a{[_0xdbcf73(0xea)];[_0xdbcf73(0xe7)];[_0xdbcf73(0xc8)];constructor(_0x4692db,_0x1f027e){const _0x35d678=_0xdbcf73;super(_0x4692db),this[_0x35d678(0xea)]=_0x1f027e,this[_0x35d678(0xe4)](_0x35d678(0xdd),!!_0x1f027e[_0x35d678(0xdd)]),this[_0x35d678(0xe7)]=this[_0x35d678(0xc3)](),this[_0x35d678(0xc8)]=this[_0x35d678(0xd3)](),this[_0x35d678(0xd0)]();}[_0xdbcf73(0xd5)](){const _0x5cf6bd=_0xdbcf73;super[_0x5cf6bd(0xd5)]();}[_0xdbcf73(0xc2)](_0x5828b5){const _0x18c904=_0xdbcf73;if(_0x5828b5[_0x18c904(0xdd)])return _0x39faf1;switch(_0x5828b5[_0x18c904(0xe2)]){case _0x4adf98[_0x18c904(0xe9)]:return _0x5157fa;case _0x4adf98[_0x18c904(0xdf)]:return _0x2a025e;case _0x4adf98[_0x18c904(0xcc)]:case _0x4adf98[_0x18c904(0xd2)]:return _0xb59cf0;default:return _0x19ce33;}}[_0xdbcf73(0xc7)](_0x2a1b06){const _0x3d2e27=_0xdbcf73;if(!_0x2a1b06||''===_0x2a1b06[_0x3d2e27(0xd4)]())return void this[_0x3d2e27(0xe7)][_0x3d2e27(0xc7)](null);const _0x1c12cb=new RegExp(_0x5252cb(_0x2a1b06),'gi');this[_0x3d2e27(0xe7)][_0x3d2e27(0xc7)](_0x1c12cb);}[_0xdbcf73(0xc4)](_0x514379){const _0x5c2444=_0xdbcf73;this[_0x5c2444(0xea)][_0x5c2444(0xdd)]=_0x514379,this[_0x5c2444(0xdd)]=_0x514379,this[_0x5c2444(0xd8)]();}[_0xdbcf73(0xc3)](){const _0x2326d9=_0xdbcf73,_0x35a449=new _0x428d00();return _0x35a449[_0x2326d9(0xcd)]=this[_0x2326d9(0xea)][_0x2326d9(0xd7)],_0x35a449[_0x2326d9(0xcb)]({'tag':_0x2326d9(0xcf),'attributes':{'class':[Kr]}}),_0x35a449;}[_0xdbcf73(0xd3)](){const _0x1ad13d=_0xdbcf73,_0x4119fb=new _0x1a309a();return _0x4119fb[_0x1ad13d(0xe6)]=this[_0x1ad13d(0xc2)](this[_0x1ad13d(0xea)]),_0x4119fb;}[_0xdbcf73(0xd0)](){const _0x44ec83=_0xdbcf73,_0x2fd86e=this[_0x44ec83(0xd6)];this[_0x44ec83(0xc9)]({'tag':_0x44ec83(0xc1),'attributes':{'class':[zr,_0x2fd86e['if'](_0x44ec83(0xdc),_0x44ec83(0xda),_0x3eaefa=>!_0x3eaefa),_0x2fd86e['if'](_0x44ec83(0xdd),Jr)]},'children':[{'tag':_0x44ec83(0xc1),'attributes':{'class':[Mr]},'children':[this[_0x44ec83(0xc8)]]},this[_0x44ec83(0xe7)]],'on':{'click':_0x2fd86e['to'](_0x44ec83(0xe0))}});}[_0xdbcf73(0xd8)](){const _0x3627e8=_0xdbcf73;this[_0x3627e8(0xc8)][_0x3627e8(0xe6)]=this[_0x3627e8(0xc2)](this[_0x3627e8(0xea)]);}}function _0x61ff(){const _0x49a044=['execute','ck-ai-chat-resources__item__icon','type','6147272XdZYab','set','ck-ai-chat-resources__item--in-context','content','_titleView','1234692lLHUOc','DOCUMENT','resource','div','getResourceIcon','_createTitleView','updateResourceState','789231LlRfWX','1504530GBDfUr','highlightText','_iconView','setTemplate','474743cPxuVs','extendTemplate','FILE','text','ck-ai-chat-resources__item-title','span','_setupTemplate','748902nOJuAL','TEXT','_createIconView','trim','render','bindTemplate','label','_updateIcon','ck-ai-chat-resources__item','ck-hidden','21DgCkxJ','isVisible','isInContext','1197240izIQWZ','URL'];_0x61ff=function(){return _0x49a044;};return _0x61ff();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xccd0d1=_0x3af5;(function(_0x4139ca,_0x2ecb19){const _0x584e97=_0x3af5,_0x2f215d=_0x4139ca();while(!![]){try{const _0x5631e3=-parseInt(_0x584e97(0xa3))/0x1*(-parseInt(_0x584e97(0xa2))/0x2)+parseInt(_0x584e97(0xc5))/0x3*(-parseInt(_0x584e97(0xc4))/0x4)+parseInt(_0x584e97(0xb7))/0x5+-parseInt(_0x584e97(0xa8))/0x6*(parseInt(_0x584e97(0xaa))/0x7)+parseInt(_0x584e97(0xcd))/0x8+parseInt(_0x584e97(0xca))/0x9+-parseInt(_0x584e97(0xd5))/0xa*(-parseInt(_0x584e97(0xcc))/0xb);if(_0x5631e3===_0x2ecb19)break;else _0x2f215d['push'](_0x2f215d['shift']());}catch(_0x18bd9f){_0x2f215d['push'](_0x2f215d['shift']());}}}(_0x45c2,0x199ba));import{BalloonPanelView as _0x2c342e,ButtonView as _0x4e0290,clickOutsideHandler as _0x50699f,FormHeaderView as _0x581ff5}from'ckeditor5/src/ui.js';import{IconPreviousArrow as _0x10d09b}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x4cec26}from'../../../../aicore/utils/common-translations.js';import{AIChatContextResourcesView as _0x556978}from'./aichatcontextresourcesview.js';function _0x3af5(_0x5d5659,_0x1df769){const _0x45c2e9=_0x45c2();return _0x3af5=function(_0x3af530,_0x4cb634){_0x3af530=_0x3af530-0x98;let _0x454ed7=_0x45c2e9[_0x3af530];return _0x454ed7;},_0x3af5(_0x5d5659,_0x1df769);}function _0x45c2(){const _0x478a98=['_sourceResourceBalloons','source','isVisible','delete','element','onBalloonClosed','label','7258SncEst','34KhlldO','add','updateResourceState','clear','hide','1055382zVOvUv','_getResourcesViewFromBalloon','7QBaRJH','showSourceResourcesBalloon','addResourceToContext','ck-ai-chat-context-controls__source-balloon-panel','setResources','_createBalloonResourcesView','_locale','resource','once','isAnyResourceBalloonVisible','_bodyCollection','_createSourceResourceBalloonPanel','_addSourceResourceContent','433525pbpVuO','_createBalloonHeader','set','closeSourceResourceBalloon','_createBackButton','populateSourceResourceBalloon','values','get','content','show','execute','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_source','getLimiterElement','4912DguYfu','246xuyFtf','onLoadSourceResources','destroy','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','extendTemplate','152307AKTrrg','onBackToContext','2552TcCFcR','1090984QEeoNL','getTargetElement','onResourceSelected','children','_setupSingleResourceBalloonClickOutsideHandler','ck-button-icon\x20ck-button-back','searchInputVisibleFrom','loadSourceResources','780esdeJA','change:isLoading','_config','pin'];_0x45c2=function(){return _0x478a98;};return _0x45c2();}const Bc=_0xccd0d1(0xad),_c=_0xccd0d1(0xd2),mc=_0xccd0d1(0xc2);export class AIChatResourcesBalloonView{[_0xccd0d1(0x9b)]=new Map();[_0xccd0d1(0xb4)];[_0xccd0d1(0xb0)];[_0xccd0d1(0x99)];constructor(_0x4b5efe,_0x48f462,_0x297a91){const _0x5dd37c=_0xccd0d1;this[_0x5dd37c(0xb0)]=_0x4b5efe,this[_0x5dd37c(0xb4)]=_0x48f462,this[_0x5dd37c(0x99)]=_0x297a91;}[_0xccd0d1(0xab)]({source:_0x346e69,withBackButton:_0x2c9b5a}){const _0xb14fdb=_0xccd0d1;let _0xd2d827=this[_0xb14fdb(0x9b)][_0xb14fdb(0xbe)](_0x346e69['id']);_0xd2d827||(_0xd2d827=this[_0xb14fdb(0xb5)](),this[_0xb14fdb(0x9b)][_0xb14fdb(0xb9)](_0x346e69['id'],_0xd2d827),this[_0xb14fdb(0xd1)](_0xd2d827)),this[_0xb14fdb(0xb6)]({'balloonPanel':_0xd2d827,'source':_0x346e69,'withBackButton':_0x2c9b5a}),_0xd2d827[_0xb14fdb(0xc0)]();const _0x4bbf42=this[_0xb14fdb(0x99)][_0xb14fdb(0xce)]();_0x4bbf42&&_0xd2d827[_0xb14fdb(0x9a)]({'target':_0x4bbf42,'limiter':this[_0xb14fdb(0x99)][_0xb14fdb(0xc3)]()});}[_0xccd0d1(0xbc)](_0xd720d,_0x2b2c16,_0x1896cd){const _0x1a58db=_0xccd0d1,_0x399a7f=this[_0x1a58db(0x9b)][_0x1a58db(0xbe)](_0xd720d);if(!_0x399a7f)return;const _0x2fab12=this[_0x1a58db(0xa9)](_0x399a7f);_0x2fab12&&(_0x2fab12[_0x1a58db(0xae)](_0x2b2c16,_0x1896cd),_0x2fab12[_0x1a58db(0xb2)](_0x1a58db(0x98),()=>{const _0x4a6dd2=_0x1a58db;_0x399a7f[_0x4a6dd2(0x9a)]({'target':this[_0x4a6dd2(0x99)][_0x4a6dd2(0xce)](),'limiter':this[_0x4a6dd2(0x99)][_0x4a6dd2(0xc3)]()});}));}[_0xccd0d1(0xba)](_0x3dafaa){const _0xef58ea=_0xccd0d1,_0x48a9ec=this[_0xef58ea(0x9b)][_0xef58ea(0xbe)](_0x3dafaa);_0x48a9ec&&requestAnimationFrame(()=>{const _0x4dea3e=_0xef58ea;_0x48a9ec[_0x4dea3e(0xa7)](),this[_0x4dea3e(0x9b)][_0x4dea3e(0x9e)](_0x3dafaa),this[_0x4dea3e(0x99)][_0x4dea3e(0xa0)]();});}[_0xccd0d1(0xb3)](){const _0x1dbe51=_0xccd0d1;for(const _0x5c881d of this[_0x1dbe51(0x9b)][_0x1dbe51(0xbd)]())if(_0x5c881d[_0x1dbe51(0x9d)])return!0x0;return!0x1;}[_0xccd0d1(0xa5)](_0x5d7ede,_0x54bfc8,_0x520b8f){const _0x7d22ac=_0xccd0d1,_0x146779=this[_0x7d22ac(0x9b)][_0x7d22ac(0xbe)](_0x5d7ede);if(!_0x146779||!_0x146779[_0x7d22ac(0x9d)])return;const _0x594f96=this[_0x7d22ac(0x99)][_0x7d22ac(0xce)]();if(!_0x594f96)return;_0x146779[_0x7d22ac(0x9a)]({'target':_0x594f96,'limiter':this[_0x7d22ac(0x99)][_0x7d22ac(0xc3)]()});const _0x4f5e34=this[_0x7d22ac(0xa9)](_0x146779);_0x4f5e34&&_0x4f5e34[_0x7d22ac(0xa5)](_0x54bfc8,_0x520b8f);}[_0xccd0d1(0xc7)](){const _0x1f140b=_0xccd0d1;for(const _0x4309ae of this[_0x1f140b(0x9b)][_0x1f140b(0xbd)]())_0x4309ae[_0x1f140b(0xc7)]();this[_0x1f140b(0x9b)][_0x1f140b(0xa6)]();}[_0xccd0d1(0xb5)](){const _0x56ea8f=_0xccd0d1,_0x20b6bf=new _0x2c342e(this[_0x56ea8f(0xb0)]);return _0x20b6bf[_0x56ea8f(0xc9)]({'attributes':{'class':Bc}}),this[_0x56ea8f(0xb4)][_0x56ea8f(0xa4)](_0x20b6bf),_0x20b6bf;}[_0xccd0d1(0xb6)]({balloonPanel:_0x8fe5a8,source:_0x434182,withBackButton:_0x252a23}){const _0x46cc4d=_0xccd0d1;_0x8fe5a8[_0x46cc4d(0xbf)][_0x46cc4d(0xa6)]();const _0x329ad7=this[_0x46cc4d(0xb8)]({'balloonPanel':_0x8fe5a8,'source':_0x434182,'withBackButton':_0x252a23});_0x8fe5a8[_0x46cc4d(0xbf)][_0x46cc4d(0xa4)](_0x329ad7);const _0x10de6c=this[_0x46cc4d(0xaf)](_0x434182);_0x8fe5a8[_0x46cc4d(0xbf)][_0x46cc4d(0xa4)](_0x10de6c);}[_0xccd0d1(0xb8)]({balloonPanel:_0x26bd1d,source:_0x240666,withBackButton:_0xade74}){const _0x3005a4=_0xccd0d1,_0x400e08=new _0x581ff5(this[_0x3005a4(0xb0)],{'label':_0x240666[_0x3005a4(0xa1)],'class':mc});return _0xade74&&_0x400e08[_0x3005a4(0xd0)][_0x3005a4(0xa4)](this[_0x3005a4(0xbb)](_0x26bd1d),0x0),_0x400e08;}[_0xccd0d1(0xbb)](_0x51ad6c){const _0x4e3f34=_0xccd0d1,_0x40cde2=new _0x4e0290(this[_0x4e3f34(0xb0)]);return _0x40cde2[_0x4e3f34(0xb9)]({'icon':_0x10d09b,'tooltip':_0x4cec26(this[_0x4e3f34(0xb0)],_0x4e3f34(0xc8)),'tooltipPosition':'n','class':_c}),_0x40cde2['on'](_0x4e3f34(0xc1),()=>{const _0xdfa6f0=_0x4e3f34;_0x51ad6c[_0xdfa6f0(0xa7)](),this[_0xdfa6f0(0x99)][_0xdfa6f0(0xcb)]();}),_0x40cde2;}[_0xccd0d1(0xaf)](_0x239d9f){const _0x2fe316=_0xccd0d1,_0x557a1a=new _0x556978(this[_0x2fe316(0xb0)],{'source':_0x239d9f,'searchInputVisibleFrom':this[_0x2fe316(0x99)][_0x2fe316(0xd3)]});return _0x557a1a['on'](_0x2fe316(0xd4),(_0x4b69aa,_0x471b86)=>{const _0x146fda=_0x2fe316;this[_0x146fda(0x99)][_0x146fda(0xc6)](_0x471b86);}),_0x557a1a['on'](_0x2fe316(0xac),(_0x1164a7,_0x4e4066)=>{const _0x4fae3a=_0x2fe316;this[_0x4fae3a(0x99)][_0x4fae3a(0xcf)](_0x4e4066[_0x4fae3a(0x9c)],_0x4e4066[_0x4fae3a(0xb1)]),this[_0x4fae3a(0xba)](_0x239d9f['id']);}),_0x557a1a;}[_0xccd0d1(0xa9)](_0x375f24){const _0xe5444=_0xccd0d1,_0x1bcdc4=_0x375f24[_0xe5444(0xbf)][_0xe5444(0xbe)](0x1);return _0x1bcdc4 instanceof _0x556978?_0x1bcdc4:null;}[_0xccd0d1(0xd1)](_0xdc62da){const _0x57bef2=_0xccd0d1;_0x50699f({'emitter':_0xdc62da,'contextElements':[_0xdc62da[_0x57bef2(0x9f)]],'callback':()=>{const _0x332c21=_0x57bef2;_0xdc62da[_0x332c21(0xa7)](),this[_0x332c21(0x99)][_0x332c21(0xa0)]();},'activator':()=>_0xdc62da[_0x57bef2(0x9d)]});}}
23
+ const _0x3f9884=_0x1ff5;function _0x444f(){const _0x17d2ae=['_sourceResourceBalloons','getTargetElement','get','values','_config','label','onLoadSourceResources','_createBalloonHeader','475704IBnIpF','_locale','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_source','7McRxkr','extendTemplate','closeSourceResourceBalloon','destroy','_createBalloonResourcesView','updateResourceState','onResourceSelected','1034406DTqeZB','onBalloonClosed','searchInputVisibleFrom','6361952bvFIym','onBackToContext','resource','ck-ai-chat-context-controls__source-balloon-panel','_setupSingleResourceBalloonClickOutsideHandler','setResources','9043750WDCppB','pin','_bodyCollection','execute','_createBackButton','1449981HyTOod','showSourceResourcesBalloon','36VZaVXd','source','_getResourcesViewFromBalloon','addResourceToContext','isVisible','4086255lgyhEV','change:isLoading','add','_createSourceResourceBalloonPanel','content','isAnyResourceBalloonVisible','children','hide','show','element','_addSourceResourceContent','once','getLimiterElement','clear','loadSourceResources','32ELuyPw','ck-button-icon\x20ck-button-back','19119hHvGrn','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','populateSourceResourceBalloon','delete','set'];_0x444f=function(){return _0x17d2ae;};return _0x444f();}(function(_0x4fd673,_0x4011fa){const _0x3b6c8a=_0x1ff5,_0x9d4256=_0x4fd673();while(!![]){try{const _0x14394f=parseInt(_0x3b6c8a(0xed))/0x1+-parseInt(_0x3b6c8a(0xef))/0x2*(parseInt(_0x3b6c8a(0xc8))/0x3)+parseInt(_0x3b6c8a(0xe2))/0x4+-parseInt(_0x3b6c8a(0xb7))/0x5+-parseInt(_0x3b6c8a(0xd5))/0x6*(-parseInt(_0x3b6c8a(0xd8))/0x7)+-parseInt(_0x3b6c8a(0xc6))/0x8*(parseInt(_0x3b6c8a(0xdf))/0x9)+-parseInt(_0x3b6c8a(0xe8))/0xa;if(_0x14394f===_0x4011fa)break;else _0x9d4256['push'](_0x9d4256['shift']());}catch(_0x459534){_0x9d4256['push'](_0x9d4256['shift']());}}}(_0x444f,0xc917d));import{BalloonPanelView as _0x1047f5,ButtonView as _0x4debf7,clickOutsideHandler as _0x35934d,FormHeaderView as _0x10815b}from'ckeditor5/src/ui.js';import{IconPreviousArrow as _0x525938}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x3811b4}from'../../../../aicore/utils/common-translations.js';function _0x1ff5(_0x32e755,_0x2a7f4f){const _0x444f1d=_0x444f();return _0x1ff5=function(_0x1ff583,_0x36fab3){_0x1ff583=_0x1ff583-0xb3;let _0x1960c6=_0x444f1d[_0x1ff583];return _0x1960c6;},_0x1ff5(_0x32e755,_0x2a7f4f);}import{AIChatContextResourcesView as _0xf20241}from'./aichatcontextresourcesview.js';const lc=_0x3f9884(0xe5),Bc=_0x3f9884(0xc7),_c=_0x3f9884(0xd7);export class AIChatResourcesBalloonView{[_0x3f9884(0xcd)]=new Map();[_0x3f9884(0xea)];[_0x3f9884(0xd6)];[_0x3f9884(0xd1)];constructor(_0x41cc9a,_0x59dd31,_0xef623a){const _0x44aace=_0x3f9884;this[_0x44aace(0xd6)]=_0x41cc9a,this[_0x44aace(0xea)]=_0x59dd31,this[_0x44aace(0xd1)]=_0xef623a;}[_0x3f9884(0xee)]({source:_0x2b3077,withBackButton:_0x39e071}){const _0x151bed=_0x3f9884;let _0x5d67ba=this[_0x151bed(0xcd)][_0x151bed(0xcf)](_0x2b3077['id']);_0x5d67ba||(_0x5d67ba=this[_0x151bed(0xba)](),this[_0x151bed(0xcd)][_0x151bed(0xcc)](_0x2b3077['id'],_0x5d67ba),this[_0x151bed(0xe6)](_0x5d67ba)),this[_0x151bed(0xc1)]({'balloonPanel':_0x5d67ba,'source':_0x2b3077,'withBackButton':_0x39e071}),_0x5d67ba[_0x151bed(0xbf)]();const _0xaf4b76=this[_0x151bed(0xd1)][_0x151bed(0xce)]();_0xaf4b76&&_0x5d67ba[_0x151bed(0xe9)]({'target':_0xaf4b76,'limiter':this[_0x151bed(0xd1)][_0x151bed(0xc3)]()});}[_0x3f9884(0xca)](_0x24ee08,_0x54c56b,_0x128ea1){const _0x340ea9=_0x3f9884,_0x2fe7c5=this[_0x340ea9(0xcd)][_0x340ea9(0xcf)](_0x24ee08);if(!_0x2fe7c5)return;const _0x5ea0ff=this[_0x340ea9(0xb4)](_0x2fe7c5);_0x5ea0ff&&(_0x5ea0ff[_0x340ea9(0xe7)](_0x54c56b,_0x128ea1),_0x5ea0ff[_0x340ea9(0xc2)](_0x340ea9(0xb8),()=>{const _0x175634=_0x340ea9;_0x2fe7c5[_0x175634(0xe9)]({'target':this[_0x175634(0xd1)][_0x175634(0xce)](),'limiter':this[_0x175634(0xd1)][_0x175634(0xc3)]()});}));}[_0x3f9884(0xda)](_0x1bb34f){const _0x327de4=_0x3f9884,_0x3d3c9f=this[_0x327de4(0xcd)][_0x327de4(0xcf)](_0x1bb34f);_0x3d3c9f&&requestAnimationFrame(()=>{const _0x9a4ddd=_0x327de4;_0x3d3c9f[_0x9a4ddd(0xbe)](),this[_0x9a4ddd(0xcd)][_0x9a4ddd(0xcb)](_0x1bb34f),this[_0x9a4ddd(0xd1)][_0x9a4ddd(0xe0)]();});}[_0x3f9884(0xbc)](){const _0x280c4b=_0x3f9884;for(const _0x1e66b3 of this[_0x280c4b(0xcd)][_0x280c4b(0xd0)]())if(_0x1e66b3[_0x280c4b(0xb6)])return!0x0;return!0x1;}[_0x3f9884(0xdd)](_0x2e19ba,_0x2ae047,_0x58f80f){const _0x491b6b=_0x3f9884,_0x1cb4c2=this[_0x491b6b(0xcd)][_0x491b6b(0xcf)](_0x2e19ba);if(!_0x1cb4c2||!_0x1cb4c2[_0x491b6b(0xb6)])return;const _0x207abc=this[_0x491b6b(0xd1)][_0x491b6b(0xce)]();if(!_0x207abc)return;_0x1cb4c2[_0x491b6b(0xe9)]({'target':_0x207abc,'limiter':this[_0x491b6b(0xd1)][_0x491b6b(0xc3)]()});const _0x327538=this[_0x491b6b(0xb4)](_0x1cb4c2);_0x327538&&_0x327538[_0x491b6b(0xdd)](_0x2ae047,_0x58f80f);}[_0x3f9884(0xdb)](){const _0x52a24e=_0x3f9884;for(const _0x4ba3c9 of this[_0x52a24e(0xcd)][_0x52a24e(0xd0)]())_0x4ba3c9[_0x52a24e(0xdb)]();this[_0x52a24e(0xcd)][_0x52a24e(0xc4)]();}[_0x3f9884(0xba)](){const _0x16bc20=_0x3f9884,_0x43c0a5=new _0x1047f5(this[_0x16bc20(0xd6)]);return _0x43c0a5[_0x16bc20(0xd9)]({'attributes':{'class':lc}}),this[_0x16bc20(0xea)][_0x16bc20(0xb9)](_0x43c0a5),_0x43c0a5;}[_0x3f9884(0xc1)]({balloonPanel:_0xa0353,source:_0x2a2598,withBackButton:_0x521d7d}){const _0x13ebf2=_0x3f9884;_0xa0353[_0x13ebf2(0xbb)][_0x13ebf2(0xc4)]();const _0x27918a=this[_0x13ebf2(0xd4)]({'balloonPanel':_0xa0353,'source':_0x2a2598,'withBackButton':_0x521d7d});_0xa0353[_0x13ebf2(0xbb)][_0x13ebf2(0xb9)](_0x27918a);const _0x40351b=this[_0x13ebf2(0xdc)](_0x2a2598);_0xa0353[_0x13ebf2(0xbb)][_0x13ebf2(0xb9)](_0x40351b);}[_0x3f9884(0xd4)]({balloonPanel:_0xd8f252,source:_0x512090,withBackButton:_0x1dc303}){const _0x543c29=_0x3f9884,_0x37fbb8=new _0x10815b(this[_0x543c29(0xd6)],{'label':_0x512090[_0x543c29(0xd2)],'class':_c});return _0x1dc303&&_0x37fbb8[_0x543c29(0xbd)][_0x543c29(0xb9)](this[_0x543c29(0xec)](_0xd8f252),0x0),_0x37fbb8;}[_0x3f9884(0xec)](_0x2c051d){const _0x399db2=_0x3f9884,_0x37f621=new _0x4debf7(this[_0x399db2(0xd6)]);return _0x37f621[_0x399db2(0xcc)]({'icon':_0x525938,'tooltip':_0x3811b4(this[_0x399db2(0xd6)],_0x399db2(0xc9)),'tooltipPosition':'n','class':Bc}),_0x37f621['on'](_0x399db2(0xeb),()=>{const _0x10b284=_0x399db2;_0x2c051d[_0x10b284(0xbe)](),this[_0x10b284(0xd1)][_0x10b284(0xe3)]();}),_0x37f621;}[_0x3f9884(0xdc)](_0x275be4){const _0xf36d07=_0x3f9884,_0x1701a1=new _0xf20241(this[_0xf36d07(0xd6)],{'source':_0x275be4,'searchInputVisibleFrom':this[_0xf36d07(0xd1)][_0xf36d07(0xe1)]});return _0x1701a1['on'](_0xf36d07(0xc5),(_0x411fe8,_0x11f47e)=>{const _0x4cb9b1=_0xf36d07;this[_0x4cb9b1(0xd1)][_0x4cb9b1(0xd3)](_0x11f47e);}),_0x1701a1['on'](_0xf36d07(0xb5),(_0x2d31c4,_0x86b267)=>{const _0x29634b=_0xf36d07;this[_0x29634b(0xd1)][_0x29634b(0xde)](_0x86b267[_0x29634b(0xb3)],_0x86b267[_0x29634b(0xe4)]),this[_0x29634b(0xda)](_0x275be4['id']);}),_0x1701a1;}[_0x3f9884(0xb4)](_0x22fd44){const _0x337dc0=_0x3f9884,_0x376327=_0x22fd44[_0x337dc0(0xbb)][_0x337dc0(0xcf)](0x1);return _0x376327 instanceof _0xf20241?_0x376327:null;}[_0x3f9884(0xe6)](_0x49cc4e){const _0x39c33c=_0x3f9884;_0x35934d({'emitter':_0x49cc4e,'contextElements':[_0x49cc4e[_0x39c33c(0xc0)]],'callback':()=>{const _0x409479=_0x39c33c;_0x49cc4e[_0x409479(0xbe)](),this[_0x409479(0xd1)][_0x409479(0xe0)]();},'activator':()=>_0x49cc4e[_0x39c33c(0xb6)]});}}