@ckeditor/ckeditor5-ai 47.7.0-alpha.0 → 47.7.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (318) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +5 -5
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +15 -15
  150. package/src/aiactions/aiactions.js +1 -1
  151. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  152. package/src/aiactions/model/aiactionsreply.js +1 -1
  153. package/src/aiassistant/adapters/aiadapter.js +1 -1
  154. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  155. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  156. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  157. package/src/aiassistant/aiassistant.js +1 -1
  158. package/src/aiassistant/aiassistantediting.js +1 -1
  159. package/src/aiassistant/aiassistantui.js +1 -1
  160. package/src/aiassistant/legacyerrors.js +1 -1
  161. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  162. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  163. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  164. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  165. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  166. package/src/aiassistant/ui/form/aiformview.js +1 -1
  167. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  168. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  169. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  170. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  171. package/src/aiassistant/utils/common-translations.js +1 -1
  172. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  173. package/src/aiballoon/aiballoon.js +1 -1
  174. package/src/aiballoon/ui/aiballoonview.js +1 -1
  175. package/src/aichat/aichat.js +1 -1
  176. package/src/aichat/aichatballoon.js +1 -1
  177. package/src/aichat/aichatcontroller.js +1 -1
  178. package/src/aichat/aichatui.js +1 -1
  179. package/src/aichat/model/aichatcontext.js +1 -1
  180. package/src/aichat/model/aichatconversation.js +1 -1
  181. package/src/aichat/model/aichatinteraction.js +1 -1
  182. package/src/aichat/ui/aichatballoonview.js +1 -1
  183. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  184. package/src/aichat/ui/aichatfeedview.js +1 -1
  185. package/src/aichat/ui/aichatheaderview.js +1 -1
  186. package/src/aichat/ui/aichatview.js +1 -1
  187. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  188. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  189. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  190. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  191. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  192. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  193. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  194. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  195. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  196. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  197. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  198. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  199. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  200. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  201. package/src/aichat/ui/feed/aichatfeedcustomelementview.js +1 -1
  202. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  203. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  204. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  205. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  206. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  207. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  208. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  209. package/src/aichat/utils/eventnames.js +1 -1
  210. package/src/aichat/utils/promisequeue.js +1 -1
  211. package/src/aichathistory/aichathistory.js +1 -1
  212. package/src/aichathistory/aichathistorycontroller.js +1 -1
  213. package/src/aichathistory/aichathistoryui.js +1 -1
  214. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  215. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  216. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  217. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  218. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  219. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  220. package/src/aichatshortcuts/aichatshortcuts.js +1 -1
  221. package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
  222. package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
  223. package/src/aicore/aiconnector.js +1 -1
  224. package/src/aicore/aiediting.js +1 -1
  225. package/src/aicore/model/aicapabilities.js +1 -1
  226. package/src/aicore/model/aicontext.js +1 -1
  227. package/src/aicore/model/aiinteraction.js +1 -1
  228. package/src/aicore/model/aimodels.js +1 -1
  229. package/src/aicore/model/aireply.js +1 -1
  230. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  231. package/src/aicore/pipeline/airesponseparser.js +2 -2
  232. package/src/aicore/ui/aidisclaimerview.js +1 -1
  233. package/src/aicore/ui/aiskeleton.js +1 -1
  234. package/src/aicore/ui/aispinner.js +1 -1
  235. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  236. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  237. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  238. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
  239. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
  240. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
  241. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  242. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  243. package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
  244. package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
  245. package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
  246. package/src/aicore/utils/common-translations.js +1 -1
  247. package/src/aicore/utils/createresizebutton.js +1 -1
  248. package/src/aicore/utils/documentposition.js +1 -1
  249. package/src/aicore/utils/documentrange.js +1 -1
  250. package/src/aicore/utils/eventnames.js +1 -1
  251. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  252. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  253. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  254. package/src/aicore/utils/htmlparser.js +1 -1
  255. package/src/aicore/utils/htmlstreamer.js +1 -1
  256. package/src/aicore/utils/scrollmanager.js +1 -1
  257. package/src/aieditorintegration/aieditorintegration.js +1 -1
  258. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  259. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  260. package/src/aiquickactions/aiquickactions.js +1 -1
  261. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  262. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  263. package/src/aiquickactions/aiquickactionsui.js +1 -1
  264. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  265. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  266. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  267. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
  268. package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
  269. package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
  270. package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
  271. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  272. package/src/aireviewcore/aireviewcorecontroller.js +1 -1
  273. package/src/aireviewcore/aireviewcoreediting.js +1 -1
  274. package/src/aireviewcore/aireviewcoreui.js +1 -1
  275. package/src/aireviewcore/model/aireviewcheck.js +1 -1
  276. package/src/aireviewcore/model/aireviewchecklist.js +1 -1
  277. package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
  278. package/src/aireviewcore/model/aireviewcheckresultchange.js +1 -1
  279. package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
  280. package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
  281. package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
  282. package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
  283. package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
  284. package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
  285. package/src/aireviewcore/ui/aireviewcoregeneralerrorview.js +1 -1
  286. package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
  287. package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
  288. package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
  289. package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
  290. package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
  291. package/src/aireviewcore/ui/aireviewcoreview.js +1 -1
  292. package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
  293. package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +1 -1
  294. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  295. package/src/aireviewmode/aireviewmode.js +1 -1
  296. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  297. package/src/aireviewmode/aireviewmodeui.js +1 -1
  298. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  299. package/src/aireviewmode/model/aireviewcheckextra.js +1 -1
  300. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  301. package/src/aireviewmode/model/aireviewextracheckrun.js +1 -1
  302. package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
  303. package/src/aitabs/aitabs.js +1 -1
  304. package/src/aitabs/aitabsmainview.js +1 -1
  305. package/src/aitabs/tabs/aitabsview.js +1 -1
  306. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  307. package/src/aitabs/tabs/tabpanelview.js +1 -1
  308. package/src/aitranslate/aitranslate.js +1 -1
  309. package/src/aitranslate/aitranslatecontroller.js +1 -1
  310. package/src/aitranslate/aitranslateui.js +1 -1
  311. package/src/aitranslate/model/aitranslatecheck.js +1 -1
  312. package/src/aitranslate/model/aitranslatechecklist.js +1 -1
  313. package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
  314. package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
  315. package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
  316. package/src/errors.js +1 -1
  317. package/src/errorsmap.js +1 -1
  318. package/src/index.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x36aa(_0x24b9b5,_0x3eab99){const _0x40df5d=_0x40df();return _0x36aa=function(_0x36aabf,_0x34983a){_0x36aabf=_0x36aabf-0x1c9;let _0x598be1=_0x40df5d[_0x36aabf];return _0x598be1;},_0x36aa(_0x24b9b5,_0x3eab99);}const _0x2b22a4=_0x36aa;(function(_0x28ba3e,_0x2fde5c){const _0x1e182=_0x36aa,_0x3a7ab7=_0x28ba3e();while(!![]){try{const _0x22f6ab=-parseInt(_0x1e182(0x1e2))/0x1+-parseInt(_0x1e182(0x211))/0x2+-parseInt(_0x1e182(0x1d4))/0x3*(parseInt(_0x1e182(0x1f8))/0x4)+-parseInt(_0x1e182(0x20b))/0x5*(-parseInt(_0x1e182(0x213))/0x6)+-parseInt(_0x1e182(0x202))/0x7*(parseInt(_0x1e182(0x1f0))/0x8)+-parseInt(_0x1e182(0x1f9))/0x9*(-parseInt(_0x1e182(0x1d9))/0xa)+parseInt(_0x1e182(0x1dc))/0xb*(parseInt(_0x1e182(0x1d8))/0xc);if(_0x22f6ab===_0x2fde5c)break;else _0x3a7ab7['push'](_0x3a7ab7['shift']());}catch(_0x3ee3f4){_0x3a7ab7['push'](_0x3a7ab7['shift']());}}}(_0x40df,0xc8b53));import{FocusTracker as _0x494d07,KeystrokeHandler as _0x400e8b}from'ckeditor5/src/utils.js';import{ButtonView as _0x5bb5fd,FocusCycler as _0x9c5707,LabeledFieldView as _0x594956,View as _0x3b5c3f,FormHeaderView as _0x4afe1f,createLabeledInputText as _0x55811d,submitHandler as _0x1b231a}from'ckeditor5/src/ui.js';function _0x40df(){const _0x56ef0f=['ck-button-icon','focus','urlInputField','setTemplate','input','length','\x20ck-hidden','errorText','51wOBVOu','set','isEnabled','ck-ai-chat-context-controls__url-input-section','2999016TtahyJ','65140SyNhfw','clear','listenTo','110ZztkoY','destroy','setError','fieldView','add','_focusables','930666DiRKtt','forEach','focusCycler','_updateConfirmButtonState','AI_CHAT_CONTEXT_URL_PLACEHOLDER','refreshBalloon','ck-labeled-field-view_empty','trim','AI_CHAT_CONTEXT_URL_ADD_URL','change:withBackButton','backButton','AI_CHAT_CONTEXT_URL_INVALID_ERROR','withBackButton','execute','5928oNYWYS','_handleSubmit','stop','getValue','submitUrl','render','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','258604SxCQPl','2151GAJXYv','children','esc','locale','submit','div','form','value','ck-ai-chat-context-controls__url-form','1274VRKfvr','_createConfirmButton','_setupTemplate','cancel','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','element','clearError','_createBackButton','fire','150vaILbe','AI_CHAT_CONTEXT_URL_LABEL','_setupKeystrokes','tab','createCollection','_setupEventHandlers','2412324vANigV','_createUrlInputField','27366ahegTw','focusTracker','ck-button-icon\x20ck-button-back','_isValidUrl','keystrokes','shift+tab','confirmButton'];_0x40df=function(){return _0x56ef0f;};return _0x40df();}import{IconCheck as _0x158872,IconPreviousArrow as _0x1d5ad4}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x1e047a}from'../../../aicore/utils/common-translations.js';const oh=_0x2b22a4(0x201),ch=_0x2b22a4(0x1d7);export class AIChatContextPanelUrlInputView extends _0x3b5c3f{[_0x2b22a4(0x214)];[_0x2b22a4(0x1c9)];[_0x2b22a4(0x1e1)];[_0x2b22a4(0x1e4)];[_0x2b22a4(0x1ce)];[_0x2b22a4(0x1ec)];[_0x2b22a4(0x1cb)];constructor(_0x5700dd){const _0x2c1220=_0x2b22a4;super(_0x5700dd),this[_0x2c1220(0x214)]=new _0x494d07(),this[_0x2c1220(0x1c9)]=new _0x400e8b(),this[_0x2c1220(0x1ec)]=this[_0x2c1220(0x209)](),this[_0x2c1220(0x1ce)]=this[_0x2c1220(0x212)](),this[_0x2c1220(0x1cb)]=this[_0x2c1220(0x203)](),this[_0x2c1220(0x1e1)]=this[_0x2c1220(0x20f)]([this[_0x2c1220(0x1ec)],this[_0x2c1220(0x1ce)],this[_0x2c1220(0x1cb)]]),this[_0x2c1220(0x1e4)]=new _0x9c5707({'focusables':this[_0x2c1220(0x1e1)],'focusTracker':this[_0x2c1220(0x214)],'keystrokeHandler':this[_0x2c1220(0x1c9)],'actions':{'focusPrevious':_0x2c1220(0x1ca),'focusNext':_0x2c1220(0x20e)}}),this[_0x2c1220(0x1d5)](_0x2c1220(0x1ee),!0x0),this[_0x2c1220(0x204)](),this[_0x2c1220(0x210)](),this[_0x2c1220(0x20d)]();}[_0x2b22a4(0x1f5)](){const _0x13a41f=_0x2b22a4;super[_0x13a41f(0x1f5)](),this[_0x13a41f(0x1e1)][_0x13a41f(0x1e3)](_0x323964=>{const _0xb3b772=_0x13a41f;this[_0xb3b772(0x214)][_0xb3b772(0x1e0)](_0x323964[_0xb3b772(0x207)]),this[_0xb3b772(0x1c9)][_0xb3b772(0x1db)](_0x323964[_0xb3b772(0x207)]);}),_0x1b231a({'view':this}),this[_0x13a41f(0x1cd)]();}[_0x2b22a4(0x1dd)](){const _0x5a6d7c=_0x2b22a4;super[_0x5a6d7c(0x1dd)](),this[_0x5a6d7c(0x214)][_0x5a6d7c(0x1dd)](),this[_0x5a6d7c(0x1c9)][_0x5a6d7c(0x1dd)]();}[_0x2b22a4(0x1cd)](){const _0x150bd9=_0x2b22a4;this[_0x150bd9(0x1ce)][_0x150bd9(0x1cd)]();}[_0x2b22a4(0x1f3)](){const _0x3b1924=_0x2b22a4;return this[_0x3b1924(0x1ce)][_0x3b1924(0x1df)][_0x3b1924(0x207)]?.[_0x3b1924(0x200)]?.[_0x3b1924(0x1e9)]()||'';}[_0x2b22a4(0x1da)](){const _0x436599=_0x2b22a4;this[_0x436599(0x1ce)][_0x436599(0x1df)][_0x436599(0x207)][_0x436599(0x200)]='',this[_0x436599(0x1ce)][_0x436599(0x1d3)]=null,this[_0x436599(0x1cb)][_0x436599(0x1d6)]=!0x1;}[_0x2b22a4(0x1de)](_0x1001c0){const _0x538e86=_0x2b22a4;this[_0x538e86(0x1ce)][_0x538e86(0x1d3)]=_0x1001c0,this[_0x538e86(0x1e5)](),this[_0x538e86(0x20a)](_0x538e86(0x1e7));}[_0x2b22a4(0x208)](){const _0x50dd00=_0x2b22a4;this[_0x50dd00(0x1ce)][_0x50dd00(0x1d3)]=null,this[_0x50dd00(0x1e5)]();}[_0x2b22a4(0x209)](){const _0x16c018=_0x2b22a4,_0x1982f6=new _0x5bb5fd(this[_0x16c018(0x1fc)]);return _0x1982f6[_0x16c018(0x1d5)]({'icon':_0x1d5ad4,'tooltip':_0x1e047a(this[_0x16c018(0x1fc)],_0x16c018(0x1f7)),'tooltipPosition':'n','class':[_0x16c018(0x215)]}),this['on'](_0x16c018(0x1eb),(_0x44cc97,_0x298048,_0x46dbff)=>{const _0xb77c99=_0x16c018;_0x1982f6[_0xb77c99(0x1d5)]({'class':[_0xb77c99(0x215)+(_0x46dbff?'':_0xb77c99(0x1d2))]});}),_0x1982f6;}[_0x2b22a4(0x212)](){const _0x5498ed=_0x2b22a4,_0x2cf153=new _0x594956(this[_0x5498ed(0x1fc)],_0x55811d);return _0x2cf153[_0x5498ed(0x1d5)]({'label':_0x1e047a(this[_0x5498ed(0x1fc)],_0x5498ed(0x20c)),'class':_0x5498ed(0x1e8)}),_0x2cf153[_0x5498ed(0x1df)][_0x5498ed(0x1d5)]({'placeholder':_0x1e047a(this[_0x5498ed(0x1fc)],_0x5498ed(0x1e6))}),_0x2cf153;}[_0x2b22a4(0x203)](){const _0x8ee4d5=_0x2b22a4,_0x18ece6=new _0x5bb5fd(this[_0x8ee4d5(0x1fc)]);return _0x18ece6[_0x8ee4d5(0x1d5)]({'icon':_0x158872,'tooltip':_0x1e047a(this[_0x8ee4d5(0x1fc)],_0x8ee4d5(0x1ea)),'tooltipPosition':'n','class':_0x8ee4d5(0x1cc),'type':_0x8ee4d5(0x1fd),'isEnabled':!0x1}),_0x18ece6;}[_0x2b22a4(0x204)](){const _0x3c3474=_0x2b22a4,_0x42fe90=new _0x4afe1f(this[_0x3c3474(0x1fc)],{'label':_0x1e047a(this[_0x3c3474(0x1fc)],_0x3c3474(0x1ea)),'class':_0x3c3474(0x1f6)});_0x42fe90[_0x3c3474(0x1fa)][_0x3c3474(0x1e0)](this[_0x3c3474(0x1ec)],0x0),this[_0x3c3474(0x1cf)]({'tag':_0x3c3474(0x1ff),'attributes':{'class':oh,'tabindex':'-1'},'children':[_0x42fe90,{'tag':_0x3c3474(0x1fe),'attributes':{'class':ch},'children':[this[_0x3c3474(0x1ce)],this[_0x3c3474(0x1cb)]]}]});}[_0x2b22a4(0x210)](){const _0x168e37=_0x2b22a4;this[_0x168e37(0x1ec)]['on'](_0x168e37(0x1ef),()=>{const _0x4ea4a5=_0x168e37;this[_0x4ea4a5(0x1da)](),this[_0x4ea4a5(0x20a)](_0x4ea4a5(0x205));}),this[_0x168e37(0x1ce)][_0x168e37(0x1df)]['on'](_0x168e37(0x1d0),()=>{const _0x3ed9ac=_0x168e37;this[_0x3ed9ac(0x208)](),this[_0x3ed9ac(0x1e5)](),this[_0x3ed9ac(0x20a)](_0x3ed9ac(0x1e7));}),this['on'](_0x168e37(0x1fd),_0x104525=>{const _0x3135df=_0x168e37;_0x104525[_0x3135df(0x1f2)](),this[_0x3135df(0x1f1)]();});}[_0x2b22a4(0x20d)](){const _0x32d65f=_0x2b22a4;this[_0x32d65f(0x1c9)][_0x32d65f(0x1d5)](_0x32d65f(0x1fb),(_0x3768a1,_0x7522ba)=>{const _0x44598d=_0x32d65f;this[_0x44598d(0x1da)](),this[_0x44598d(0x20a)](_0x44598d(0x205)),_0x7522ba();});}[_0x2b22a4(0x1f1)](){const _0x20f78f=_0x2b22a4,_0x4bf9ac=this[_0x20f78f(0x1f3)]()[_0x20f78f(0x1e9)]();_0x4bf9ac?this[_0x20f78f(0x216)](_0x4bf9ac)?(this[_0x20f78f(0x208)](),this[_0x20f78f(0x20a)](_0x20f78f(0x1f4),_0x4bf9ac)):this[_0x20f78f(0x1de)](_0x1e047a(this[_0x20f78f(0x1fc)],_0x20f78f(0x1ed))):this[_0x20f78f(0x1de)](_0x1e047a(this[_0x20f78f(0x1fc)],_0x20f78f(0x206)));}[_0x2b22a4(0x1e5)](){const _0x5a04a6=_0x2b22a4,_0x837533=this[_0x5a04a6(0x1f3)]()[_0x5a04a6(0x1e9)](),_0x36af89=!!this[_0x5a04a6(0x1ce)][_0x5a04a6(0x1d3)];this[_0x5a04a6(0x1cb)][_0x5a04a6(0x1d6)]=_0x837533[_0x5a04a6(0x1d1)]>0x0&&!_0x36af89;}[_0x2b22a4(0x216)](_0x17a3fe){try{return!!new URL(_0x17a3fe);}catch{return!0x1;}}}
23
+ const _0x502bda=_0x22a1;(function(_0xdf51fd,_0x3f18d1){const _0x35ae3c=_0x22a1,_0x5928d9=_0xdf51fd();while(!![]){try{const _0x1b654a=parseInt(_0x35ae3c(0x153))/0x1*(parseInt(_0x35ae3c(0x117))/0x2)+-parseInt(_0x35ae3c(0x121))/0x3+parseInt(_0x35ae3c(0x14a))/0x4*(-parseInt(_0x35ae3c(0x118))/0x5)+-parseInt(_0x35ae3c(0x154))/0x6+parseInt(_0x35ae3c(0x10b))/0x7+parseInt(_0x35ae3c(0x12c))/0x8*(-parseInt(_0x35ae3c(0x10c))/0x9)+parseInt(_0x35ae3c(0x137))/0xa;if(_0x1b654a===_0x3f18d1)break;else _0x5928d9['push'](_0x5928d9['shift']());}catch(_0x3df693){_0x5928d9['push'](_0x5928d9['shift']());}}}(_0x2a1e,0x3a62c));import{FocusTracker as _0x2b5338,KeystrokeHandler as _0x471f61}from'ckeditor5/src/utils.js';import{ButtonView as _0x51e6ee,FocusCycler as _0x42a872,LabeledFieldView as _0xa210cc,View as _0x34ce41,FormHeaderView as _0x42a103,createLabeledInputText as _0x4268a2,submitHandler as _0xc4f8f1}from'ckeditor5/src/ui.js';function _0x2a1e(){const _0x117c3d=['AI_CHAT_CONTEXT_URL_PLACEHOLDER','listenTo','clearError','refreshBalloon','_setupTemplate','stop','_isValidUrl','_createBackButton','167280IAoJQT','ck-labeled-field-view_empty','ck-ai-chat-context-controls__url-form','add','_createUrlInputField','urlInputField','errorText','isEnabled','ck-ai-chat-context-controls__url-input-section','keystrokes','tab','24IQfyvL','set','AI_CHAT_CONTEXT_URL_INVALID_ERROR','withBackButton','setTemplate','AI_CHAT_CONTEXT_URL_LABEL','getValue','length','_handleSubmit','shift+tab','createCollection','2677120ZAFowZ','locale','focusCycler','input','fieldView','_setupEventHandlers','div','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','render','focus','backButton','children','value','submitUrl','submit','esc','fire','forEach','cancel','39456CdyaGl','\x20ck-hidden','_focusables','form','ck-button-icon','destroy','trim','setError','change:withBackButton','4kFnzRt','1134216BtdbnC','AI_CHAT_CONTEXT_URL_ADD_URL','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','2783081jsQIQx','236385ioFUvV','confirmButton','execute','_createConfirmButton','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','clear','_setupKeystrokes','focusTracker','_updateConfirmButtonState','element','ck-button-icon\x20ck-button-back','160798GEThoI','215pWxWDp'];_0x2a1e=function(){return _0x117c3d;};return _0x2a1e();}import{IconCheck as _0x349a2f,IconPreviousArrow as _0x12633f}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x4f0233}from'../../../aicore/utils/common-translations.js';const oh=_0x502bda(0x123),ch=_0x502bda(0x129);function _0x22a1(_0x2750fc,_0x238c71){const _0x2a1e66=_0x2a1e();return _0x22a1=function(_0x22a125,_0x17764a){_0x22a125=_0x22a125-0x10b;let _0x32a75d=_0x2a1e66[_0x22a125];return _0x32a75d;},_0x22a1(_0x2750fc,_0x238c71);}export class AIChatContextPanelUrlInputView extends _0x34ce41{[_0x502bda(0x113)];[_0x502bda(0x12a)];[_0x502bda(0x14c)];[_0x502bda(0x139)];[_0x502bda(0x126)];[_0x502bda(0x141)];[_0x502bda(0x10d)];constructor(_0x2d88ba){const _0x4e05e4=_0x502bda;super(_0x2d88ba),this[_0x4e05e4(0x113)]=new _0x2b5338(),this[_0x4e05e4(0x12a)]=new _0x471f61(),this[_0x4e05e4(0x141)]=this[_0x4e05e4(0x120)](),this[_0x4e05e4(0x126)]=this[_0x4e05e4(0x125)](),this[_0x4e05e4(0x10d)]=this[_0x4e05e4(0x10f)](),this[_0x4e05e4(0x14c)]=this[_0x4e05e4(0x136)]([this[_0x4e05e4(0x141)],this[_0x4e05e4(0x126)],this[_0x4e05e4(0x10d)]]),this[_0x4e05e4(0x139)]=new _0x42a872({'focusables':this[_0x4e05e4(0x14c)],'focusTracker':this[_0x4e05e4(0x113)],'keystrokeHandler':this[_0x4e05e4(0x12a)],'actions':{'focusPrevious':_0x4e05e4(0x135),'focusNext':_0x4e05e4(0x12b)}}),this[_0x4e05e4(0x12d)](_0x4e05e4(0x12f),!0x0),this[_0x4e05e4(0x11d)](),this[_0x4e05e4(0x13c)](),this[_0x4e05e4(0x112)]();}[_0x502bda(0x13f)](){const _0x23430c=_0x502bda;super[_0x23430c(0x13f)](),this[_0x23430c(0x14c)][_0x23430c(0x148)](_0x297864=>{const _0x356913=_0x23430c;this[_0x356913(0x113)][_0x356913(0x124)](_0x297864[_0x356913(0x115)]),this[_0x356913(0x12a)][_0x356913(0x11a)](_0x297864[_0x356913(0x115)]);}),_0xc4f8f1({'view':this}),this[_0x23430c(0x140)]();}[_0x502bda(0x14f)](){const _0x2ee457=_0x502bda;super[_0x2ee457(0x14f)](),this[_0x2ee457(0x113)][_0x2ee457(0x14f)](),this[_0x2ee457(0x12a)][_0x2ee457(0x14f)]();}[_0x502bda(0x140)](){const _0x48ee9f=_0x502bda;this[_0x48ee9f(0x126)][_0x48ee9f(0x140)]();}[_0x502bda(0x132)](){const _0x552d73=_0x502bda;return this[_0x552d73(0x126)][_0x552d73(0x13b)][_0x552d73(0x115)]?.[_0x552d73(0x143)]?.[_0x552d73(0x150)]()||'';}[_0x502bda(0x111)](){const _0x3a85ed=_0x502bda;this[_0x3a85ed(0x126)][_0x3a85ed(0x13b)][_0x3a85ed(0x115)][_0x3a85ed(0x143)]='',this[_0x3a85ed(0x126)][_0x3a85ed(0x127)]=null,this[_0x3a85ed(0x10d)][_0x3a85ed(0x128)]=!0x1;}[_0x502bda(0x151)](_0x19937c){const _0x4f5999=_0x502bda;this[_0x4f5999(0x126)][_0x4f5999(0x127)]=_0x19937c,this[_0x4f5999(0x114)](),this[_0x4f5999(0x147)](_0x4f5999(0x11c));}[_0x502bda(0x11b)](){const _0x5f09a2=_0x502bda;this[_0x5f09a2(0x126)][_0x5f09a2(0x127)]=null,this[_0x5f09a2(0x114)]();}[_0x502bda(0x120)](){const _0x1b186b=_0x502bda,_0xcc776d=new _0x51e6ee(this[_0x1b186b(0x138)]);return _0xcc776d[_0x1b186b(0x12d)]({'icon':_0x12633f,'tooltip':_0x4f0233(this[_0x1b186b(0x138)],_0x1b186b(0x110)),'tooltipPosition':'n','class':[_0x1b186b(0x116)]}),this['on'](_0x1b186b(0x152),(_0x362d0b,_0x3c5f25,_0x3c6f50)=>{const _0x257e8b=_0x1b186b;_0xcc776d[_0x257e8b(0x12d)]({'class':[_0x257e8b(0x116)+(_0x3c6f50?'':_0x257e8b(0x14b))]});}),_0xcc776d;}[_0x502bda(0x125)](){const _0x233fb9=_0x502bda,_0x95c424=new _0xa210cc(this[_0x233fb9(0x138)],_0x4268a2);return _0x95c424[_0x233fb9(0x12d)]({'label':_0x4f0233(this[_0x233fb9(0x138)],_0x233fb9(0x131)),'class':_0x233fb9(0x122)}),_0x95c424[_0x233fb9(0x13b)][_0x233fb9(0x12d)]({'placeholder':_0x4f0233(this[_0x233fb9(0x138)],_0x233fb9(0x119))}),_0x95c424;}[_0x502bda(0x10f)](){const _0x2e006f=_0x502bda,_0x1b498d=new _0x51e6ee(this[_0x2e006f(0x138)]);return _0x1b498d[_0x2e006f(0x12d)]({'icon':_0x349a2f,'tooltip':_0x4f0233(this[_0x2e006f(0x138)],_0x2e006f(0x155)),'tooltipPosition':'n','class':_0x2e006f(0x14e),'type':_0x2e006f(0x145),'isEnabled':!0x1}),_0x1b498d;}[_0x502bda(0x11d)](){const _0x26ce50=_0x502bda,_0x4fcd6b=new _0x42a103(this[_0x26ce50(0x138)],{'label':_0x4f0233(this[_0x26ce50(0x138)],_0x26ce50(0x155)),'class':_0x26ce50(0x156)});_0x4fcd6b[_0x26ce50(0x142)][_0x26ce50(0x124)](this[_0x26ce50(0x141)],0x0),this[_0x26ce50(0x130)]({'tag':_0x26ce50(0x14d),'attributes':{'class':oh,'tabindex':'-1'},'children':[_0x4fcd6b,{'tag':_0x26ce50(0x13d),'attributes':{'class':ch},'children':[this[_0x26ce50(0x126)],this[_0x26ce50(0x10d)]]}]});}[_0x502bda(0x13c)](){const _0x4217db=_0x502bda;this[_0x4217db(0x141)]['on'](_0x4217db(0x10e),()=>{const _0x45ee51=_0x4217db;this[_0x45ee51(0x111)](),this[_0x45ee51(0x147)](_0x45ee51(0x149));}),this[_0x4217db(0x126)][_0x4217db(0x13b)]['on'](_0x4217db(0x13a),()=>{const _0x4f610d=_0x4217db;this[_0x4f610d(0x11b)](),this[_0x4f610d(0x114)](),this[_0x4f610d(0x147)](_0x4f610d(0x11c));}),this['on'](_0x4217db(0x145),_0x7dcbf8=>{const _0x4e6d93=_0x4217db;_0x7dcbf8[_0x4e6d93(0x11e)](),this[_0x4e6d93(0x134)]();});}[_0x502bda(0x112)](){const _0x1db51d=_0x502bda;this[_0x1db51d(0x12a)][_0x1db51d(0x12d)](_0x1db51d(0x146),(_0x5791c6,_0x356ef8)=>{const _0x2f7bff=_0x1db51d;this[_0x2f7bff(0x111)](),this[_0x2f7bff(0x147)](_0x2f7bff(0x149)),_0x356ef8();});}[_0x502bda(0x134)](){const _0x12b55b=_0x502bda,_0xa7b9f7=this[_0x12b55b(0x132)]()[_0x12b55b(0x150)]();_0xa7b9f7?this[_0x12b55b(0x11f)](_0xa7b9f7)?(this[_0x12b55b(0x11b)](),this[_0x12b55b(0x147)](_0x12b55b(0x144),_0xa7b9f7)):this[_0x12b55b(0x151)](_0x4f0233(this[_0x12b55b(0x138)],_0x12b55b(0x12e))):this[_0x12b55b(0x151)](_0x4f0233(this[_0x12b55b(0x138)],_0x12b55b(0x13e)));}[_0x502bda(0x114)](){const _0x199ed1=_0x502bda,_0x4ceec5=this[_0x199ed1(0x132)]()[_0x199ed1(0x150)](),_0x285dc3=!!this[_0x199ed1(0x126)][_0x199ed1(0x127)];this[_0x199ed1(0x10d)][_0x199ed1(0x128)]=_0x4ceec5[_0x199ed1(0x133)]>0x0&&!_0x285dc3;}[_0x502bda(0x11f)](_0x4beb9b){try{return!!new URL(_0x4beb9b);}catch{return!0x1;}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x332a5a=_0x337a;(function(_0x16d5fa,_0x17423b){const _0x38b984=_0x337a,_0x1f431f=_0x16d5fa();while(!![]){try{const _0x493da2=-parseInt(_0x38b984(0xd6))/0x1*(parseInt(_0x38b984(0xc9))/0x2)+-parseInt(_0x38b984(0xaa))/0x3+-parseInt(_0x38b984(0x115))/0x4*(parseInt(_0x38b984(0xf9))/0x5)+-parseInt(_0x38b984(0xce))/0x6*(parseInt(_0x38b984(0x113))/0x7)+-parseInt(_0x38b984(0xfd))/0x8+parseInt(_0x38b984(0x8c))/0x9+parseInt(_0x38b984(0x118))/0xa*(parseInt(_0x38b984(0xdc))/0xb);if(_0x493da2===_0x17423b)break;else _0x1f431f['push'](_0x1f431f['shift']());}catch(_0x34cebe){_0x1f431f['push'](_0x1f431f['shift']());}}}(_0x588e,0x706a0));function _0x337a(_0x5f21ef,_0x447b3d){const _0x588e33=_0x588e();return _0x337a=function(_0x337a9d,_0x3d86d6){_0x337a9d=_0x337a9d-0x8c;let _0x50dbe2=_0x588e33[_0x337a9d];return _0x50dbe2;},_0x337a(_0x5f21ef,_0x447b3d);}import{BalloonPanelView as _0x326ad9,ButtonView as _0x1aaae2,clickOutsideHandler as _0x2bc39a,FileDialogButtonView as _0x53301e,IconView as _0x2591a5,View as _0x1d9dd9}from'ckeditor5/src/ui.js';function _0x588e(){const _0x510e46=['show','_createContextButton','addResourceToContext','ck-ai-chat-context-controls__add-context-balloon-panel','southArrowNorth','submitUrl','_handleUrlSubmit','addFileToContext','urls','AI_CHAT_CONTEXT_URL_LABEL','icon','_currentContextsChips','ck-ai-chat-context-controls__balloon-button-source','overflowChips','createCollection','hideAddContextBalloonPanel','set','showAddContextBalloonPanel','_urlBalloonPanelView','_urlInputView','ck-ai-chat-controls-button','AI_CHAT_CONTEXT_FILE_LABEL','setContainerElement','_setBalloonPanelContent','balloonView','remove','pin','1831713LmdtaH','isLoading','buttonView','isOn','_setupAllBalloonClickOutsideHandlers','removeContextItemChip','content','length','_addUrlContent','element','cancel','ck-ai-chat-context-controls','destroy','_setupAddContextBalloonClickOutsideHandler','isHidden','menuitem','setTemplate','updateResourceState','ck-reset_all-excluded','addDocumentToContext','fire','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','northArrowSouth','children','hide','arrowView','ck-ai-chat-context-controls__url-balloon-panel','loadSourceResources','isVisible','ck-ai-chat-context-chips-wrapper-balloon','_addContextBalloonConfig','68558QjoXdV','withBackButton','_showSourceResourcesBalloon','removeContextItem','isEnabled','2208bLVPaA','_getLimiterElement','done','bind','clearConversationContextItems','render','div','focus','19NfrNIK','_createAddContextButtonView','northArrowSouthWest','_overflowManager','addContextItem','closest','8904302BQmTVt','addUrlToContext','_createAddContextBalloonPanelView','_setupTemplate','ck-ai-chat-controls_context_show-more-button','__arrow','label','showSourceResourcesBalloon','ck-ai-chat-context-controls__show-more-balloon-panel','ck-ai-chat','AI_CHAT_CONTEXT_ADD_CONTEXT','_createArrowView','execute','isReadOnly','ck-ai-chat-context-controls__pending-contexts','reorganizeChips','southArrowNorthWest','showUrlBalloonPanel','_setAddContextButtonEnabled','_hasExactlyOneSource','_conversationContextsChips','northArrowSouthEast','sources','find','ck-ai-chat-context-controls__add-context-button','_toggleAddContextBalloon','_addContextBalloonPanelView','defaultPositions','conversation','5GBAXnC','setContextItemLoading','_createBaseBalloonPanel','_removeContextFromCollection','4225984ZXiEZj','locale','_createUrlBalloonPanelView','clearCurrentContextItems','_handleAddContextButtonClick','southArrowNorthEast','_createResourcesBalloonView','get','_addContextToCollection','type','searchInputVisibleFrom','source','customItems','body','_resourcesBalloonView','setConversationContext','_createBalloonButton','_setupUrlBalloonClickOutsideHandler','customItem','populateSourceResourceBalloon','executeCustomItemCallback','bodyCollection','4046PfXAxU','clear','81964ftUpis','tooltip','extendTemplate','20FmHbnd','ck-ai-chat-context-controls__balloon-button','document','files','current','_bindEventHandlers','hideUrlBalloonPanel','setAddContextOptions','isAnyResourceBalloonVisible','closeSourceResourceBalloon','enabled','addContextButtonView','7783191iLkXZW','refreshBalloon','add'];_0x588e=function(){return _0x510e46;};return _0x588e();}import{IconBrowseFiles as _0x1b2325,IconDocument as _0x26f362,IconDocumentOutline as _0x24336e,IconDropdownArrow as _0x51b208,IconLink as _0x49e023,IconPaperClip as _0x467c86}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0xc213b7}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0xcb4a00}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x5b4784}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0xb471ff}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x1d0400}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x332a5a(0xbd),_0x332a5a(0x96),_0x332a5a(0xdd),_0x332a5a(0x91),_0x332a5a(0xcc),_0x332a5a(0xc5),_0x332a5a(0x111)];const Vo=_0x332a5a(0xb5),go=_0x332a5a(0xea),Io=_0x332a5a(0x92),Po=_0x332a5a(0xf4),Ro=_0x332a5a(0xc4),So=_0x332a5a(0x119),Oo=_0x332a5a(0x9b),Uo=_0x332a5a(0xa3),Lo=_0x332a5a(0xc7),No=_0x332a5a(0xe0),Mo=_0x332a5a(0xe4),Ho=_0x332a5a(0xe5),jo=[_0x326ad9[_0x332a5a(0xf7)][_0x332a5a(0xd8)],_0x326ad9[_0x332a5a(0xf7)][_0x332a5a(0xc0)],_0x326ad9[_0x332a5a(0xf7)][_0x332a5a(0xf1)],_0x326ad9[_0x332a5a(0xf7)][_0x332a5a(0xec)],_0x326ad9[_0x332a5a(0xf7)][_0x332a5a(0x93)],_0x326ad9[_0x332a5a(0xf7)][_0x332a5a(0x102)]];export class AIChatContextPanelView extends _0x1d9dd9{[_0x332a5a(0x123)];[_0x332a5a(0x9a)]=this[_0x332a5a(0x9d)]();[_0x332a5a(0xf0)]=this[_0x332a5a(0x9d)]();[_0x332a5a(0xd9)];[_0x332a5a(0xf6)];[_0x332a5a(0xa1)];[_0x332a5a(0xa2)];[_0x332a5a(0x10b)];[_0x332a5a(0xc8)];[_0x332a5a(0xef)]=!0x1;[_0x332a5a(0x112)];constructor(_0x29baee,_0x455fbc){const _0xc26b36=_0x332a5a;super(_0x29baee),this[_0xc26b36(0x112)]=_0x455fbc[_0xc26b36(0x112)],this[_0xc26b36(0x9a)]=this[_0xc26b36(0x9d)](),this[_0xc26b36(0xf0)]=this[_0xc26b36(0x9d)](),this[_0xc26b36(0x123)]=this[_0xc26b36(0xd7)](_0x29baee),this[_0xc26b36(0xf6)]=this[_0xc26b36(0xde)](_0x29baee),this[_0xc26b36(0xa1)]=this[_0xc26b36(0xff)](_0x29baee),this[_0xc26b36(0x10b)]=this[_0xc26b36(0x103)](_0x29baee,_0x455fbc);const _0x2cd852={'cssClasses':{'showMoreButton':No,'showMoreBalloon':Mo,'overflowContainer':Lo,'controlsButton':Uo}};this[_0xc26b36(0xd9)]=new _0x5b4784(_0x29baee,this[_0xc26b36(0x9a)],_0x2cd852,this[_0xc26b36(0x112)],this),this[_0xc26b36(0xc8)]={'buttonView':this[_0xc26b36(0x123)],'balloonView':this[_0xc26b36(0xf6)],'hideMethod':this[_0xc26b36(0x9e)][_0xc26b36(0xd1)](this),'showMethod':this[_0xc26b36(0xa0)][_0xc26b36(0xd1)](this)},this[_0xc26b36(0xdf)](),this[_0xc26b36(0x11d)]();}[_0x332a5a(0xd3)](){const _0x587b8e=_0x332a5a;super[_0x587b8e(0xd3)](),this[_0x587b8e(0xae)](),this[_0x587b8e(0xd9)][_0x587b8e(0xa5)](this[_0x587b8e(0xb3)]),this[_0x587b8e(0xd9)][_0x587b8e(0xeb)]();}[_0x332a5a(0xb6)](){const _0x3e3750=_0x332a5a;super[_0x3e3750(0xb6)](),this[_0x3e3750(0xd9)][_0x3e3750(0xb6)](),this[_0x3e3750(0x10b)][_0x3e3750(0xb6)]();}[_0x332a5a(0xda)](_0x50d434,_0x5c2bd5){const _0x7250f9=_0x332a5a,_0x53c305=this[_0x7250f9(0x90)](_0x50d434,_0x7250f9(0x11c),!0x0,_0x5c2bd5);this[_0x7250f9(0x105)](_0x53c305,this[_0x7250f9(0x9a)]),this[_0x7250f9(0xd9)][_0x7250f9(0xeb)]();}[_0x332a5a(0xcc)](_0x388e35){const _0x3ff062=_0x332a5a;this[_0x3ff062(0xfc)](_0x388e35,this[_0x3ff062(0x9a)]),this[_0x3ff062(0xfc)](_0x388e35,this[_0x3ff062(0xd9)][_0x3ff062(0x9c)]),this[_0x3ff062(0xd9)][_0x3ff062(0xeb)]();}[_0x332a5a(0xfa)](_0x563b13,_0x3f0b49){const _0x48985a=_0x332a5a;let _0xa61190=this[_0x48985a(0x9a)][_0x48985a(0xf3)](_0x47aada=>_0x47aada['id']===_0x563b13);_0xa61190||(_0xa61190=this[_0x48985a(0xd9)][_0x48985a(0x9c)][_0x48985a(0xf3)](_0x255d74=>_0x255d74['id']===_0x563b13)),_0xa61190&&(_0xa61190[_0x48985a(0xab)]=_0x3f0b49);}[_0x332a5a(0x10c)](_0x38cb96){const _0x109276=_0x332a5a;this[_0x109276(0xf0)][_0x109276(0x114)]();for(const _0x371b41 of _0x38cb96){const _0xdfbb86=this[_0x109276(0x90)](_0x371b41,_0x109276(0xf8),!0x1,!0x1);this[_0x109276(0x105)](_0xdfbb86,this[_0x109276(0xf0)]);}}[_0x332a5a(0x100)](){const _0x15727f=_0x332a5a;this[_0x15727f(0x9a)][_0x15727f(0x114)](),this[_0x15727f(0xd9)][_0x15727f(0x114)]();}[_0x332a5a(0xd2)](){const _0x84bca0=_0x332a5a;this[_0x84bca0(0xf0)][_0x84bca0(0x114)]();}[_0x332a5a(0xbb)](_0x361cfb,_0x5f0bc2,_0x2b23cd){const _0x2552a9=_0x332a5a;this[_0x2552a9(0x10b)][_0x2552a9(0xbb)](_0x361cfb,_0x5f0bc2,_0x2b23cd);}[_0x332a5a(0x9e)](){const _0x5e9e40=_0x332a5a;this[_0x5e9e40(0xf5)](!0x1);}[_0x332a5a(0xa0)](){const _0x126222=_0x332a5a;this[_0x126222(0xf5)](!0x0);}[_0x332a5a(0x11e)](){const _0x491af2=_0x332a5a;this[_0x491af2(0xa1)][_0x491af2(0xc2)](),this[_0x491af2(0x123)][_0x491af2(0xad)]=!0x1,this[_0x491af2(0xa2)]&&this[_0x491af2(0xa2)][_0x491af2(0x114)]();}[_0x332a5a(0xed)](){const _0x31a820=_0x332a5a;this[_0x31a820(0xa1)][_0x31a820(0x8f)](),this[_0x31a820(0x123)][_0x31a820(0xad)]=!0x0;}[_0x332a5a(0xcb)]({source:_0x453094,withBackButton:_0x2e1ca5}){const _0x4cafe2=_0x332a5a;this[_0x4cafe2(0x10b)][_0x4cafe2(0xe3)]({'source':_0x453094,'withBackButton':_0x2e1ca5}),this[_0x4cafe2(0x123)][_0x4cafe2(0xad)]=!0x0;}[_0x332a5a(0x110)](_0x2c2f43,_0x24c336,_0x14d6cf,_0x57d8c3){const _0x6e0fe4=_0x332a5a;this[_0x6e0fe4(0x10b)][_0x6e0fe4(0x110)](_0x2c2f43,_0x14d6cf,_0x57d8c3);}[_0x332a5a(0x121)](_0x1467a1){const _0x386326=_0x332a5a;this[_0x386326(0x10b)][_0x386326(0x121)](_0x1467a1),this[_0x386326(0x123)][_0x386326(0xad)]=!0x1;}[_0x332a5a(0x11f)](_0x13a53e){const _0x10d3f8=_0x332a5a;this[_0x10d3f8(0xa6)](this[_0x10d3f8(0xf6)],this[_0x10d3f8(0xfe)],_0x13a53e),this[_0x10d3f8(0xee)](_0x13a53e);}[_0x332a5a(0xee)](_0x3a86f9){const _0x5b9e91=_0x332a5a,_0x416df1=!_0x3a86f9[_0x5b9e91(0x11a)][_0x5b9e91(0xb8)]&&_0x3a86f9[_0x5b9e91(0x11a)][_0x5b9e91(0x122)],_0x1c3d75=_0x3a86f9[_0x5b9e91(0x97)][_0x5b9e91(0x122)],_0x4ac197=_0x3a86f9[_0x5b9e91(0x11b)][_0x5b9e91(0x122)],_0x3e1d82=_0x3a86f9[_0x5b9e91(0xf2)][_0x5b9e91(0xb1)]>0x0,_0x2b6c6c=_0x3a86f9[_0x5b9e91(0x109)]&&_0x3a86f9[_0x5b9e91(0x109)][_0x5b9e91(0xb1)]>0x0;this[_0x5b9e91(0x123)][_0x5b9e91(0xcd)]=_0x416df1||_0x1c3d75||_0x4ac197||_0x3e1d82||_0x2b6c6c;}[_0x332a5a(0xdf)](){const _0x4f7154=_0x332a5a;this[_0x4f7154(0xba)]({'tag':_0x4f7154(0xd4),'attributes':{'class':[Vo,_0x4f7154(0xbc)]},'children':[{'tag':_0x4f7154(0xd4),'attributes':{'class':go},'children':this[_0x4f7154(0x9a)]}]});}[_0x332a5a(0x11d)](){const _0x940656=_0x332a5a;this[_0x940656(0x123)]['on'](_0x940656(0xe8),()=>{const _0x7d307b=_0x940656;this[_0x7d307b(0x101)]();});}[_0x332a5a(0xd7)](_0x1e8b20){const _0x488a68=_0x332a5a,_0x26acf4=new _0x1aaae2(_0x1e8b20);return _0x26acf4[_0x488a68(0x9f)]({'label':_0xb471ff(_0x1e8b20,_0x488a68(0xe6)),'class':Uo+'\x20'+Po,'icon':_0x467c86,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x26acf4;}[_0x332a5a(0xde)](_0x50109e){const _0x96e1fe=_0x332a5a;return this[_0x96e1fe(0xfb)](_0x50109e,Io);}[_0x332a5a(0xff)](_0xfe931f){const _0xf6f97b=_0x332a5a,_0x1ccbfc=this[_0xf6f97b(0xfb)](_0xfe931f,Ro);return this[_0xf6f97b(0xb2)](_0x1ccbfc,_0xfe931f),_0x1ccbfc;}[_0x332a5a(0x103)](_0x4806b4,_0x5d9c3c){const _0x3e2612=_0x332a5a,_0x19285d={'searchInputVisibleFrom':_0x5d9c3c[_0x3e2612(0x107)],'onBackToContext':()=>{const _0x41502f=_0x3e2612;this[_0x41502f(0xa0)](),this[_0x41502f(0xf6)][_0x41502f(0xa9)]({'target':this[_0x41502f(0x123)][_0x41502f(0xb3)],'limiter':this[_0x41502f(0xcf)](),'positions':jo});},'onResourceSelected':(_0x270cfb,_0x5bb3d4)=>{const _0x49a8a6=_0x3e2612;this[_0x49a8a6(0xbe)](_0x49a8a6(0x91),{'source':_0x270cfb,'resource':_0x5bb3d4});},'onLoadSourceResources':_0x5d2d61=>{const _0x38604d=_0x3e2612;this[_0x38604d(0xbe)](_0x38604d(0xc5),_0x5d2d61);},'onBalloonClosed':()=>{const _0x2c8cae=_0x3e2612;this[_0x2c8cae(0x123)][_0x2c8cae(0xad)]=!0x1;},'getLimiterElement':()=>this[_0x3e2612(0xcf)](),'getTargetElement':()=>this[_0x3e2612(0x123)][_0x3e2612(0xb3)]};return new _0x1d0400(_0x4806b4,_0x5d9c3c[_0x3e2612(0x112)],_0x19285d);}[_0x332a5a(0xcf)](){const _0x2af1c7=_0x332a5a;return this[_0x2af1c7(0xb3)]?.[_0x2af1c7(0xdb)]('.'+Ho)||document[_0x2af1c7(0x10a)];}[_0x332a5a(0xfb)](_0x1f2a6a,_0x2cf631){const _0x23facf=_0x332a5a,_0x44013b=new _0x326ad9(_0x1f2a6a);return _0x44013b[_0x23facf(0x117)]({'attributes':{'class':_0x2cf631}}),this[_0x23facf(0x112)][_0x23facf(0x8e)](_0x44013b),_0x44013b;}[_0x332a5a(0xa6)](_0x2ad8b3,_0x529f92,_0x5a1a70){const _0x1b2ec9=_0x332a5a;if(_0x2ad8b3[_0x1b2ec9(0xb0)][_0x1b2ec9(0x114)](),!_0x5a1a70[_0x1b2ec9(0x11a)][_0x1b2ec9(0xb8)]&&_0x5a1a70[_0x1b2ec9(0x11a)][_0x1b2ec9(0x122)]){const _0x49574f=this[_0x1b2ec9(0x10d)](_0x529f92,{'label':_0xb471ff(_0x529f92,_0x1b2ec9(0xbf)),'icon':_0x26f362});_0x49574f['on'](_0x1b2ec9(0xe8),()=>{const _0x8d9bdf=_0x1b2ec9;this[_0x8d9bdf(0xbe)](_0x8d9bdf(0xbd)),this[_0x8d9bdf(0x9e)]();}),_0x2ad8b3[_0x1b2ec9(0xb0)][_0x1b2ec9(0x8e)](_0x49574f);}if(_0x5a1a70[_0x1b2ec9(0x97)][_0x1b2ec9(0x122)]){const _0x541b05=this[_0x1b2ec9(0x10d)](_0x529f92,{'label':_0xb471ff(_0x529f92,_0x1b2ec9(0x98)),'icon':_0x49e023});_0x541b05['on'](_0x1b2ec9(0xe8),()=>{const _0x360df6=_0x1b2ec9;this[_0x360df6(0x9e)](),this[_0x360df6(0xed)](),this[_0x360df6(0xa1)][_0x360df6(0xa9)]({'target':this[_0x360df6(0x123)][_0x360df6(0xb3)],'limiter':this[_0x360df6(0xcf)](),'positions':jo}),this[_0x360df6(0xa2)][_0x360df6(0xd5)]();}),_0x2ad8b3[_0x1b2ec9(0xb0)][_0x1b2ec9(0x8e)](_0x541b05);}if(_0x5a1a70[_0x1b2ec9(0x11b)][_0x1b2ec9(0x122)]){const _0x2c2527=new _0x53301e(_0x529f92);_0x2c2527[_0x1b2ec9(0x9f)]({'label':_0xb471ff(_0x529f92,_0x1b2ec9(0xa4)),'icon':_0x1b2325,'withText':!0x0,'tooltip':!0x0,'class':So,'allowMultipleFiles':!0x0}),_0x2c2527['on'](_0x1b2ec9(0xe8),()=>{const _0x2b0515=_0x1b2ec9;this[_0x2b0515(0x9e)]();}),_0x2c2527['on'](_0x1b2ec9(0xd0),(_0x225de1,_0x4179c3)=>{const _0x53f033=_0x1b2ec9;this[_0x53f033(0xbe)](_0x53f033(0x96),_0x4179c3);}),_0x2c2527[_0x1b2ec9(0x116)]=!0x0,_0x2ad8b3[_0x1b2ec9(0xb0)][_0x1b2ec9(0x8e)](_0x2c2527);}for(const _0x15b0e1 of _0x5a1a70[_0x1b2ec9(0xf2)]){const _0x207cec=this[_0x1b2ec9(0x10d)](_0x529f92,{'label':_0x15b0e1[_0x1b2ec9(0xe2)],'icon':_0x15b0e1[_0x1b2ec9(0x99)]||_0x24336e,'type':_0x1b2ec9(0x108)});_0x2ad8b3[_0x1b2ec9(0xb0)][_0x1b2ec9(0x8e)](_0x207cec),_0x207cec['on'](_0x1b2ec9(0xe8),()=>{const _0x521b69=_0x1b2ec9;this[_0x521b69(0x9e)](),this[_0x521b69(0xcb)]({'source':_0x15b0e1,'withBackButton':!this[_0x521b69(0xef)]});});}for(const _0x6b8a14 of _0x5a1a70[_0x1b2ec9(0x109)]||[]){const _0x154045=this[_0x1b2ec9(0x10d)](_0x529f92,{'label':_0x6b8a14[_0x1b2ec9(0xe2)],'icon':_0x6b8a14[_0x1b2ec9(0x99)]||_0x24336e,'type':_0x1b2ec9(0x10f)});_0x2ad8b3[_0x1b2ec9(0xb0)][_0x1b2ec9(0x8e)](_0x154045),_0x154045['on'](_0x1b2ec9(0xe8),()=>{const _0x273b33=_0x1b2ec9;this[_0x273b33(0x9e)](),this[_0x273b33(0xbe)](_0x273b33(0x111),_0x6b8a14);});}this[_0x1b2ec9(0xef)]=0x1===_0x2ad8b3[_0x1b2ec9(0xb0)][_0x1b2ec9(0xb1)],this[_0x1b2ec9(0xa2)][_0x1b2ec9(0xca)]=!this[_0x1b2ec9(0xef)];}[_0x332a5a(0xb2)](_0x269661,_0x346ecf){const _0xdb14d5=_0x332a5a;this[_0xdb14d5(0xa2)]=new _0xcb4a00(_0x346ecf),this[_0xdb14d5(0xa2)]['on'](_0xdb14d5(0x94),(_0x42619f,_0x1dd5e2)=>{const _0x243a94=_0xdb14d5;this[_0x243a94(0x95)](_0x1dd5e2);}),this[_0xdb14d5(0xa2)]['on'](_0xdb14d5(0xb4),()=>{const _0x42532e=_0xdb14d5;this[_0x42532e(0x11e)](),this[_0x42532e(0xef)]||(this[_0x42532e(0xa0)](),this[_0x42532e(0xf6)][_0x42532e(0xa9)]({'target':this[_0x42532e(0x123)][_0x42532e(0xb3)],'limiter':this[_0x42532e(0xcf)](),'positions':jo}));}),this[_0xdb14d5(0xa2)]['on'](_0xdb14d5(0x8d),()=>{const _0x598350=_0xdb14d5;this[_0x598350(0xa1)][_0x598350(0xc6)]&&this[_0x598350(0xa1)][_0x598350(0xa9)]({'target':this[_0x598350(0x123)][_0x598350(0xb3)],'limiter':this[_0x598350(0xcf)](),'positions':jo});}),_0x269661[_0xdb14d5(0xb0)][_0xdb14d5(0x8e)](this[_0xdb14d5(0xa2)]);}[_0x332a5a(0x10d)](_0xce181a,_0x227068){const _0x3157dc=_0x332a5a,_0x4257fc=_0x3157dc(0x108)===_0x227068[_0x3157dc(0x106)]?new SourcesBalloonButtonView(_0xce181a):new _0x1aaae2(_0xce181a);return _0x4257fc[_0x3157dc(0x9f)]({'label':_0x227068[_0x3157dc(0xe2)],'icon':_0x227068[_0x3157dc(0x99)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':So}),_0x4257fc;}[_0x332a5a(0xae)](){const _0x3f06a7=_0x332a5a;this[_0x3f06a7(0xb7)](),this[_0x3f06a7(0x10e)]();}[_0x332a5a(0x10e)](){const _0x5e1f0e=_0x332a5a;_0x2bc39a({'emitter':this[_0x5e1f0e(0xa1)],'contextElements':[this[_0x5e1f0e(0xa1)][_0x5e1f0e(0xb3)]],'callback':()=>{const _0x208533=_0x5e1f0e;this[_0x208533(0x11e)]();},'activator':()=>this[_0x5e1f0e(0xa1)][_0x5e1f0e(0xc6)]});}[_0x332a5a(0xf5)](_0x368546){const _0x5b9bac=_0x332a5a,_0x3842e0=this[_0x5b9bac(0xc8)];_0x3842e0[_0x5b9bac(0xac)][_0x5b9bac(0xad)]=_0x368546,_0x368546?_0x3842e0[_0x5b9bac(0xa7)][_0x5b9bac(0x8f)]():_0x3842e0[_0x5b9bac(0xa7)][_0x5b9bac(0xc2)]();}[_0x332a5a(0xb7)](){const _0x3fcfc9=_0x332a5a,{balloonView:_0x986d06,buttonView:_0x465810,hideMethod:_0x5d8a9c}=this[_0x3fcfc9(0xc8)];_0x2bc39a({'emitter':_0x986d06,'contextElements':[_0x986d06[_0x3fcfc9(0xb3)],_0x465810[_0x3fcfc9(0xb3)]],'callback':()=>{_0x5d8a9c();},'activator':()=>_0x465810[_0x3fcfc9(0xad)]&&!this[_0x3fcfc9(0xa1)][_0x3fcfc9(0xc6)]&&!this[_0x3fcfc9(0x10b)][_0x3fcfc9(0x120)]()});}[_0x332a5a(0x90)](_0x4c2962,_0x5e2d5e,_0x200fb7=!0x1,_0x2acbd5=!0x1){const _0x4da69c=_0x332a5a,_0x1b2ffa=_0x4da69c(0xf8)===_0x5e2d5e||!0x0===_0x4c2962[_0x4da69c(0xe9)],_0x1dc260=new _0xc213b7(this[_0x4da69c(0xfe)],_0x4c2962,_0x1b2ffa,_0x200fb7,_0x2acbd5);return _0x1b2ffa||_0x1dc260['on'](_0x4da69c(0xaf),()=>{const _0x2b93b8=_0x4da69c;this[_0x2b93b8(0xbe)](_0x2b93b8(0xcc),_0x1dc260['id']);}),_0x1dc260;}[_0x332a5a(0x105)](_0x489f9c,_0x2bd692){const _0x20d064=_0x332a5a;_0x2bd692[_0x20d064(0x8e)](_0x489f9c,0x0);}[_0x332a5a(0xfc)](_0x11dd3a,_0x2b60bd){const _0x3d6cdf=_0x332a5a,_0x3dfaee=_0x2b60bd[_0x3d6cdf(0xf3)](_0x3ed6a5=>_0x3ed6a5['id']===_0x11dd3a);_0x3dfaee&&_0x2b60bd[_0x3d6cdf(0xa8)](_0x3dfaee);}[_0x332a5a(0x101)](){const _0x4941e3=_0x332a5a;this[_0x4941e3(0x123)][_0x4941e3(0xad)]?this[_0x4941e3(0x9e)]():(this[_0x4941e3(0xa0)](),this[_0x4941e3(0xf6)][_0x4941e3(0xa9)]({'target':this[_0x4941e3(0x123)][_0x4941e3(0xb3)],'limiter':this[_0x4941e3(0xcf)](),'positions':jo}),this[_0x4941e3(0xef)]&&this[_0x4941e3(0xf6)][_0x4941e3(0xb0)][_0x4941e3(0x104)](0x0)?.[_0x4941e3(0xbe)](_0x4941e3(0xe8)));}[_0x332a5a(0x95)](_0x407d89){const _0x43c920=_0x332a5a;this[_0x43c920(0xa2)][_0x43c920(0x114)](),this[_0x43c920(0x11e)](),this[_0x43c920(0xbe)](_0x43c920(0xdd),_0x407d89);}}export class SourcesBalloonButtonView extends _0x1aaae2{[_0x332a5a(0xc3)];constructor(_0x12fe44){const _0xb8c17d=_0x332a5a;super(_0x12fe44),this[_0xb8c17d(0x9f)]({'withText':!0x0,'role':_0xb8c17d(0xb9)}),this[_0xb8c17d(0xc3)]=this[_0xb8c17d(0xe7)](),this[_0xb8c17d(0x117)]({'attributes':{'class':[Oo]}});}[_0x332a5a(0xd3)](){const _0xd2db03=_0x332a5a;super[_0xd2db03(0xd3)](),this[_0xd2db03(0xc1)][_0xd2db03(0x8e)](this[_0xd2db03(0xc3)]);}[_0x332a5a(0xe7)](){const _0x23bd2c=_0x332a5a,_0x5d90b=new _0x2591a5();return _0x5d90b[_0x23bd2c(0xb0)]=_0x51b208,_0x5d90b[_0x23bd2c(0x117)]({'attributes':{'class':Oo+_0x23bd2c(0xe1)}}),_0x5d90b;}}
23
+ const _0x30541b=_0xf516;(function(_0x454a75,_0x986fb1){const _0x4c1b27=_0xf516,_0x3225be=_0x454a75();while(!![]){try{const _0x4332b4=parseInt(_0x4c1b27(0x112))/0x1*(-parseInt(_0x4c1b27(0x11a))/0x2)+-parseInt(_0x4c1b27(0xe5))/0x3+-parseInt(_0x4c1b27(0xe3))/0x4*(-parseInt(_0x4c1b27(0x11e))/0x5)+parseInt(_0x4c1b27(0x153))/0x6*(parseInt(_0x4c1b27(0x133))/0x7)+-parseInt(_0x4c1b27(0xea))/0x8+parseInt(_0x4c1b27(0x151))/0x9+-parseInt(_0x4c1b27(0xdb))/0xa*(-parseInt(_0x4c1b27(0x159))/0xb);if(_0x4332b4===_0x986fb1)break;else _0x3225be['push'](_0x3225be['shift']());}catch(_0x5ad668){_0x3225be['push'](_0x3225be['shift']());}}}(_0x19af,0x5fe46));import{BalloonPanelView as _0xf9fa58,ButtonView as _0x4c7741,clickOutsideHandler as _0xd2f7b7,FileDialogButtonView as _0x116ed9,IconView as _0x4847c5,View as _0x32680b}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x5df7bd,IconDocument as _0x280b25,IconDocumentOutline as _0x2fa54e,IconDropdownArrow as _0x2bf361,IconLink as _0x3520ae,IconPaperClip as _0x5642b9}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x5cf874}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x2f60a3}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x2ace20}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x9ffd38}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x5a2bb1}from'./resources/aichatresourcesballoonview.js';function _0xf516(_0x484d99,_0x5b7385){const _0x19afa6=_0x19af();return _0xf516=function(_0xf5168c,_0x272785){_0xf5168c=_0xf5168c-0xd7;let _0x504d77=_0x19afa6[_0xf5168c];return _0x504d77;},_0xf516(_0x484d99,_0x5b7385);}export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x30541b(0x163),_0x30541b(0x106),_0x30541b(0x116),_0x30541b(0xdf),_0x30541b(0x157),_0x30541b(0x160),_0x30541b(0x15a)];const Uo=_0x30541b(0xfd),Lo=_0x30541b(0xe0),No=_0x30541b(0x16d),Mo=_0x30541b(0x164),Ho=_0x30541b(0xd9),jo=_0x30541b(0x123),Fo=_0x30541b(0x144),Xo=_0x30541b(0xee),Do=_0x30541b(0xe1),$o=_0x30541b(0x15d),Wo=_0x30541b(0xdc),qo=_0x30541b(0x104),zo=[_0xf9fa58[_0x30541b(0xf8)][_0x30541b(0x12f)],_0xf9fa58[_0x30541b(0xf8)][_0x30541b(0x114)],_0xf9fa58[_0x30541b(0xf8)][_0x30541b(0x129)],_0xf9fa58[_0x30541b(0xf8)][_0x30541b(0x12e)],_0xf9fa58[_0x30541b(0xf8)][_0x30541b(0x119)],_0xf9fa58[_0x30541b(0xf8)][_0x30541b(0x148)]];export class AIChatContextPanelView extends _0x32680b{[_0x30541b(0xe6)];[_0x30541b(0x15c)]=this[_0x30541b(0x11f)]();[_0x30541b(0xfe)]=this[_0x30541b(0x11f)]();[_0x30541b(0xeb)];[_0x30541b(0x10d)];[_0x30541b(0x122)];[_0x30541b(0x128)];[_0x30541b(0xf5)];[_0x30541b(0x15e)];[_0x30541b(0x125)]=!0x1;[_0x30541b(0xff)];constructor(_0x33f6ff,_0x2e0878){const _0x161fb9=_0x30541b;super(_0x33f6ff),this[_0x161fb9(0xff)]=_0x2e0878[_0x161fb9(0xff)],this[_0x161fb9(0x15c)]=this[_0x161fb9(0x11f)](),this[_0x161fb9(0xfe)]=this[_0x161fb9(0x11f)](),this[_0x161fb9(0xe6)]=this[_0x161fb9(0x110)](_0x33f6ff),this[_0x161fb9(0x10d)]=this[_0x161fb9(0x155)](_0x33f6ff),this[_0x161fb9(0x122)]=this[_0x161fb9(0x131)](_0x33f6ff),this[_0x161fb9(0xf5)]=this[_0x161fb9(0xfb)](_0x33f6ff,_0x2e0878);const _0x10962c={'cssClasses':{'showMoreButton':$o,'showMoreBalloon':Wo,'overflowContainer':Do,'controlsButton':Xo}};this[_0x161fb9(0xeb)]=new _0x2ace20(_0x33f6ff,this[_0x161fb9(0x15c)],_0x10962c,this[_0x161fb9(0xff)],this),this[_0x161fb9(0x15e)]={'buttonView':this[_0x161fb9(0xe6)],'balloonView':this[_0x161fb9(0x10d)],'hideMethod':this[_0x161fb9(0xf1)][_0x161fb9(0x12a)](this),'showMethod':this[_0x161fb9(0xe7)][_0x161fb9(0x12a)](this)},this[_0x161fb9(0x13d)](),this[_0x161fb9(0xf7)]();}[_0x30541b(0x16a)](){const _0xdeb614=_0x30541b;super[_0xdeb614(0x16a)](),this[_0xdeb614(0x105)](),this[_0xdeb614(0xeb)][_0xdeb614(0x12c)](this[_0xdeb614(0x14d)]),this[_0xdeb614(0xeb)][_0xdeb614(0x11b)]();}[_0x30541b(0x12d)](){const _0x4d3237=_0x30541b;super[_0x4d3237(0x12d)](),this[_0x4d3237(0xeb)][_0x4d3237(0x12d)](),this[_0x4d3237(0xf5)][_0x4d3237(0x12d)]();}[_0x30541b(0x13e)](_0x5681c3,_0xe71a2b){const _0x4c631f=_0x30541b,_0x2c82f5=this[_0x4c631f(0xda)](_0x5681c3,_0x4c631f(0x167),!0x0,_0xe71a2b);this[_0x4c631f(0x10a)](_0x2c82f5,this[_0x4c631f(0x15c)]),this[_0x4c631f(0xeb)][_0x4c631f(0x11b)]();}[_0x30541b(0x157)](_0x50308c){const _0x5a6140=_0x30541b;this[_0x5a6140(0x13f)](_0x50308c,this[_0x5a6140(0x15c)]),this[_0x5a6140(0x13f)](_0x50308c,this[_0x5a6140(0xeb)][_0x5a6140(0x118)]),this[_0x5a6140(0xeb)][_0x5a6140(0x11b)]();}[_0x30541b(0x139)](_0x5cb0fa,_0x561947){const _0x1669cc=_0x30541b;let _0x274348=this[_0x1669cc(0x15c)][_0x1669cc(0x101)](_0x10022c=>_0x10022c['id']===_0x5cb0fa);_0x274348||(_0x274348=this[_0x1669cc(0xeb)][_0x1669cc(0x118)][_0x1669cc(0x101)](_0x499fdd=>_0x499fdd['id']===_0x5cb0fa)),_0x274348&&(_0x274348[_0x1669cc(0x15b)]=_0x561947);}[_0x30541b(0x111)](_0x41a3b2){const _0x1afec4=_0x30541b;this[_0x1afec4(0xfe)][_0x1afec4(0xf9)]();for(const _0x4ef3a1 of _0x41a3b2){const _0x257c4c=this[_0x1afec4(0xda)](_0x4ef3a1,_0x1afec4(0x14b),!0x1,!0x1);this[_0x1afec4(0x10a)](_0x257c4c,this[_0x1afec4(0xfe)]);}}[_0x30541b(0x115)](){const _0x179d1d=_0x30541b;this[_0x179d1d(0x15c)][_0x179d1d(0xf9)](),this[_0x179d1d(0xeb)][_0x179d1d(0xf9)]();}[_0x30541b(0x142)](){const _0x163aa1=_0x30541b;this[_0x163aa1(0xfe)][_0x163aa1(0xf9)]();}[_0x30541b(0x14a)](_0x19fcb6,_0x4945fb,_0x3b4764){const _0x1cbff7=_0x30541b;this[_0x1cbff7(0xf5)][_0x1cbff7(0x14a)](_0x19fcb6,_0x4945fb,_0x3b4764);}[_0x30541b(0xf1)](){const _0x2861b4=_0x30541b;this[_0x2861b4(0x156)](!0x1);}[_0x30541b(0xe7)](){const _0xecbbc5=_0x30541b;this[_0xecbbc5(0x156)](!0x0);}[_0x30541b(0x166)](){const _0x231933=_0x30541b;this[_0x231933(0x122)][_0x231933(0x113)](),this[_0x231933(0xe6)][_0x231933(0x162)]=!0x1,this[_0x231933(0x128)]&&this[_0x231933(0x128)][_0x231933(0xf9)]();}[_0x30541b(0x10b)](){const _0x22a86c=_0x30541b;this[_0x22a86c(0x122)][_0x22a86c(0x158)](),this[_0x22a86c(0xe6)][_0x22a86c(0x162)]=!0x0;}[_0x30541b(0x109)]({source:_0x38ba00,withBackButton:_0xf56932}){const _0x309eb3=_0x30541b;this[_0x309eb3(0xf5)][_0x309eb3(0x102)]({'source':_0x38ba00,'withBackButton':_0xf56932}),this[_0x309eb3(0xe6)][_0x309eb3(0x162)]=!0x0;}[_0x30541b(0xf6)](_0x255e4d,_0x35bc05,_0x1d6603,_0x52bd43){const _0x3c7fcf=_0x30541b;this[_0x3c7fcf(0xf5)][_0x3c7fcf(0xf6)](_0x255e4d,_0x1d6603,_0x52bd43);}[_0x30541b(0xd8)](_0xfa035a){const _0x4a9d7d=_0x30541b;this[_0x4a9d7d(0xf5)][_0x4a9d7d(0xd8)](_0xfa035a),this[_0x4a9d7d(0xe6)][_0x4a9d7d(0x162)]=!0x1;}[_0x30541b(0x13b)](_0xc068b1){const _0x722fc0=_0x30541b;this[_0x722fc0(0x140)](this[_0x722fc0(0x10d)],this[_0x722fc0(0xe2)],_0xc068b1),this[_0x722fc0(0x11c)](_0xc068b1);}[_0x30541b(0x11c)](_0x32ae09){const _0x4c4f0f=_0x30541b,_0x447920=!_0x32ae09[_0x4c4f0f(0x169)][_0x4c4f0f(0x165)]&&_0x32ae09[_0x4c4f0f(0x169)][_0x4c4f0f(0x127)],_0xc847a=_0x32ae09[_0x4c4f0f(0x10f)][_0x4c4f0f(0x127)],_0x198141=_0x32ae09[_0x4c4f0f(0x13c)][_0x4c4f0f(0x127)],_0x578a4f=_0x32ae09[_0x4c4f0f(0xf0)][_0x4c4f0f(0x12b)]>0x0,_0x5455ee=_0x32ae09[_0x4c4f0f(0xf4)]&&_0x32ae09[_0x4c4f0f(0xf4)][_0x4c4f0f(0x12b)]>0x0;this[_0x4c4f0f(0xe6)][_0x4c4f0f(0x108)]=_0x447920||_0xc847a||_0x198141||_0x578a4f||_0x5455ee;}[_0x30541b(0x13d)](){const _0x58b683=_0x30541b;this[_0x58b683(0xd7)]({'tag':_0x58b683(0xec),'attributes':{'class':[Uo,_0x58b683(0x138)]},'children':[{'tag':_0x58b683(0xec),'attributes':{'class':Lo},'children':this[_0x58b683(0x15c)]}]});}[_0x30541b(0xf7)](){const _0x3607de=_0x30541b;this[_0x3607de(0xe6)]['on'](_0x3607de(0xe8),()=>{const _0x69dc30=_0x3607de;this[_0x69dc30(0x143)]();});}[_0x30541b(0x110)](_0x2ead3e){const _0x322aed=_0x30541b,_0x5090e5=new _0x4c7741(_0x2ead3e);return _0x5090e5[_0x322aed(0x10c)]({'label':_0x9ffd38(_0x2ead3e,_0x322aed(0x147)),'class':Xo+'\x20'+Mo,'icon':_0x5642b9,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x5090e5;}[_0x30541b(0x155)](_0x549456){const _0x2291b1=_0x30541b;return this[_0x2291b1(0x154)](_0x549456,No);}[_0x30541b(0x131)](_0x58ff59){const _0xe7209f=_0x30541b,_0x1858d8=this[_0xe7209f(0x154)](_0x58ff59,Ho);return this[_0xe7209f(0x117)](_0x1858d8,_0x58ff59),_0x1858d8;}[_0x30541b(0xfb)](_0xc2533a,_0x13d730){const _0x31cc32=_0x30541b,_0x1c1f18={'searchInputVisibleFrom':_0x13d730[_0x31cc32(0x16b)],'onBackToContext':()=>{const _0x3f908f=_0x31cc32;this[_0x3f908f(0xe7)](),this[_0x3f908f(0x10d)][_0x3f908f(0x134)]({'target':this[_0x3f908f(0xe6)][_0x3f908f(0x14d)],'limiter':this[_0x3f908f(0xe9)](),'positions':zo});},'onResourceSelected':(_0x4877aa,_0x24b759)=>{const _0x25462a=_0x31cc32;this[_0x25462a(0x152)](_0x25462a(0xdf),{'source':_0x4877aa,'resource':_0x24b759});},'onLoadSourceResources':_0x2fd3cf=>{const _0x173e6d=_0x31cc32;this[_0x173e6d(0x152)](_0x173e6d(0x160),_0x2fd3cf);},'onBalloonClosed':()=>{const _0x373261=_0x31cc32;this[_0x373261(0xe6)][_0x373261(0x162)]=!0x1;},'getLimiterElement':()=>this[_0x31cc32(0xe9)](),'getTargetElement':()=>this[_0x31cc32(0xe6)][_0x31cc32(0x14d)]};return new _0x5a2bb1(_0xc2533a,_0x13d730[_0x31cc32(0xff)],_0x1c1f18);}[_0x30541b(0xe9)](){const _0x48affb=_0x30541b;return this[_0x48affb(0x14d)]?.[_0x48affb(0x146)]('.'+qo)||document[_0x48affb(0x137)];}[_0x30541b(0x154)](_0x4379ea,_0x4258bb){const _0x2d0623=_0x30541b,_0x537adf=new _0xf9fa58(_0x4379ea);return _0x537adf[_0x2d0623(0x136)]({'attributes':{'class':_0x4258bb}}),this[_0x2d0623(0xff)][_0x2d0623(0x11d)](_0x537adf),_0x537adf;}[_0x30541b(0x140)](_0x2d254d,_0x43a646,_0x5e1246){const _0x1f71cf=_0x30541b;if(_0x2d254d[_0x1f71cf(0x121)][_0x1f71cf(0xf9)](),!_0x5e1246[_0x1f71cf(0x169)][_0x1f71cf(0x165)]&&_0x5e1246[_0x1f71cf(0x169)][_0x1f71cf(0x127)]){const _0x21ccab=this[_0x1f71cf(0x135)](_0x43a646,{'label':_0x9ffd38(_0x43a646,_0x1f71cf(0x14e)),'icon':_0x280b25});_0x21ccab['on'](_0x1f71cf(0xe8),()=>{const _0x5cd097=_0x1f71cf;this[_0x5cd097(0x152)](_0x5cd097(0x163)),this[_0x5cd097(0xf1)]();}),_0x2d254d[_0x1f71cf(0x121)][_0x1f71cf(0x11d)](_0x21ccab);}if(_0x5e1246[_0x1f71cf(0x10f)][_0x1f71cf(0x127)]){const _0xb16495=this[_0x1f71cf(0x135)](_0x43a646,{'label':_0x9ffd38(_0x43a646,_0x1f71cf(0xfc)),'icon':_0x3520ae});_0xb16495['on'](_0x1f71cf(0xe8),()=>{const _0x1dc30d=_0x1f71cf;this[_0x1dc30d(0xf1)](),this[_0x1dc30d(0x10b)](),this[_0x1dc30d(0x122)][_0x1dc30d(0x134)]({'target':this[_0x1dc30d(0xe6)][_0x1dc30d(0x14d)],'limiter':this[_0x1dc30d(0xe9)](),'positions':zo}),this[_0x1dc30d(0x128)][_0x1dc30d(0xdd)]();}),_0x2d254d[_0x1f71cf(0x121)][_0x1f71cf(0x11d)](_0xb16495);}if(_0x5e1246[_0x1f71cf(0x13c)][_0x1f71cf(0x127)]){const _0x552d54=new _0x116ed9(_0x43a646);_0x552d54[_0x1f71cf(0x10c)]({'label':_0x9ffd38(_0x43a646,_0x1f71cf(0x161)),'icon':_0x5df7bd,'withText':!0x0,'tooltip':!0x0,'class':jo,'allowMultipleFiles':!0x0}),_0x552d54['on'](_0x1f71cf(0xe8),()=>{const _0x14c381=_0x1f71cf;this[_0x14c381(0xf1)]();}),_0x552d54['on'](_0x1f71cf(0x14f),(_0x1aacdd,_0x59527f)=>{const _0x4239a7=_0x1f71cf;this[_0x4239a7(0x152)](_0x4239a7(0x106),_0x59527f);}),_0x552d54[_0x1f71cf(0x168)]=!0x0,_0x2d254d[_0x1f71cf(0x121)][_0x1f71cf(0x11d)](_0x552d54);}for(const _0x4369d5 of _0x5e1246[_0x1f71cf(0xf0)]){const _0x28b36c=this[_0x1f71cf(0x135)](_0x43a646,{'label':_0x4369d5[_0x1f71cf(0xef)],'icon':_0x4369d5[_0x1f71cf(0xe4)]||_0x2fa54e,'type':_0x1f71cf(0x107)});_0x2d254d[_0x1f71cf(0x121)][_0x1f71cf(0x11d)](_0x28b36c),_0x28b36c['on'](_0x1f71cf(0xe8),()=>{const _0x49797b=_0x1f71cf;this[_0x49797b(0xf1)](),this[_0x49797b(0x109)]({'source':_0x4369d5,'withBackButton':!this[_0x49797b(0x125)]});});}for(const _0x220f64 of _0x5e1246[_0x1f71cf(0xf4)]||[]){const _0x299d0c=this[_0x1f71cf(0x135)](_0x43a646,{'label':_0x220f64[_0x1f71cf(0xef)],'icon':_0x220f64[_0x1f71cf(0xe4)]||_0x2fa54e,'type':_0x1f71cf(0xf3)});_0x2d254d[_0x1f71cf(0x121)][_0x1f71cf(0x11d)](_0x299d0c),_0x299d0c['on'](_0x1f71cf(0xe8),()=>{const _0x45825b=_0x1f71cf;this[_0x45825b(0xf1)](),this[_0x45825b(0x152)](_0x45825b(0x15a),_0x220f64);});}this[_0x1f71cf(0x125)]=0x1===_0x2d254d[_0x1f71cf(0x121)][_0x1f71cf(0x12b)],this[_0x1f71cf(0x128)][_0x1f71cf(0x141)]=!this[_0x1f71cf(0x125)];}[_0x30541b(0x117)](_0x2f737f,_0x4e5400){const _0x44cbd2=_0x30541b;this[_0x44cbd2(0x128)]=new _0x2f60a3(_0x4e5400),this[_0x44cbd2(0x128)]['on'](_0x44cbd2(0x120),(_0x546c72,_0x5d8c53)=>{const _0x222e46=_0x44cbd2;this[_0x222e46(0x10e)](_0x5d8c53);}),this[_0x44cbd2(0x128)]['on'](_0x44cbd2(0xed),()=>{const _0x4ee7fc=_0x44cbd2;this[_0x4ee7fc(0x166)](),this[_0x4ee7fc(0x125)]||(this[_0x4ee7fc(0xe7)](),this[_0x4ee7fc(0x10d)][_0x4ee7fc(0x134)]({'target':this[_0x4ee7fc(0xe6)][_0x4ee7fc(0x14d)],'limiter':this[_0x4ee7fc(0xe9)](),'positions':zo}));}),this[_0x44cbd2(0x128)]['on'](_0x44cbd2(0xf2),()=>{const _0x297e1f=_0x44cbd2;this[_0x297e1f(0x122)][_0x297e1f(0x103)]&&this[_0x297e1f(0x122)][_0x297e1f(0x134)]({'target':this[_0x297e1f(0xe6)][_0x297e1f(0x14d)],'limiter':this[_0x297e1f(0xe9)](),'positions':zo});}),_0x2f737f[_0x44cbd2(0x121)][_0x44cbd2(0x11d)](this[_0x44cbd2(0x128)]);}[_0x30541b(0x135)](_0x1da230,_0x2daaef){const _0x60ad05=_0x30541b,_0x145466=_0x60ad05(0x107)===_0x2daaef[_0x60ad05(0x16c)]?new SourcesBalloonButtonView(_0x1da230):new _0x4c7741(_0x1da230);return _0x145466[_0x60ad05(0x10c)]({'label':_0x2daaef[_0x60ad05(0xef)],'icon':_0x2daaef[_0x60ad05(0xe4)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':jo}),_0x145466;}[_0x30541b(0x105)](){const _0xde0c52=_0x30541b;this[_0xde0c52(0x132)](),this[_0xde0c52(0xde)]();}[_0x30541b(0xde)](){const _0x31632a=_0x30541b;_0xd2f7b7({'emitter':this[_0x31632a(0x122)],'contextElements':[this[_0x31632a(0x122)][_0x31632a(0x14d)]],'callback':()=>{const _0x275fc5=_0x31632a;this[_0x275fc5(0x166)]();},'activator':()=>this[_0x31632a(0x122)][_0x31632a(0x103)]});}[_0x30541b(0x156)](_0x5683e9){const _0x474997=_0x30541b,_0x57e043=this[_0x474997(0x15e)];_0x57e043[_0x474997(0x126)][_0x474997(0x162)]=_0x5683e9,_0x5683e9?_0x57e043[_0x474997(0x16e)][_0x474997(0x158)]():_0x57e043[_0x474997(0x16e)][_0x474997(0x113)]();}[_0x30541b(0x132)](){const _0x4d7c06=_0x30541b,{balloonView:_0x2a7060,buttonView:_0x46acc6,hideMethod:_0x39a7a7}=this[_0x4d7c06(0x15e)];_0xd2f7b7({'emitter':_0x2a7060,'contextElements':[_0x2a7060[_0x4d7c06(0x14d)],_0x46acc6[_0x4d7c06(0x14d)]],'callback':()=>{_0x39a7a7();},'activator':()=>_0x46acc6[_0x4d7c06(0x162)]&&!this[_0x4d7c06(0x122)][_0x4d7c06(0x103)]&&!this[_0x4d7c06(0xf5)][_0x4d7c06(0x145)]()});}[_0x30541b(0xda)](_0x30ff73,_0x2226e5,_0x13c6c2=!0x1,_0x8bdb15=!0x1){const _0x53d6d5=_0x30541b,_0x4753ff=_0x53d6d5(0x14b)===_0x2226e5||!0x0===_0x30ff73[_0x53d6d5(0x100)],_0x2ecf0c=new _0x5cf874(this[_0x53d6d5(0xe2)],_0x30ff73,_0x4753ff,_0x13c6c2,_0x8bdb15);return _0x4753ff||_0x2ecf0c['on'](_0x53d6d5(0x130),()=>{const _0x531be4=_0x53d6d5;this[_0x531be4(0x152)](_0x531be4(0x157),_0x2ecf0c['id']);}),_0x2ecf0c;}[_0x30541b(0x10a)](_0x1ee5b1,_0x8ede10){const _0x380c4b=_0x30541b;_0x8ede10[_0x380c4b(0x11d)](_0x1ee5b1,0x0);}[_0x30541b(0x13f)](_0x3e98fa,_0x8622e4){const _0x24e754=_0x30541b,_0x2bcce5=_0x8622e4[_0x24e754(0x101)](_0x390bc4=>_0x390bc4['id']===_0x3e98fa);_0x2bcce5&&_0x8622e4[_0x24e754(0xfa)](_0x2bcce5);}[_0x30541b(0x143)](){const _0x2cfd5e=_0x30541b;this[_0x2cfd5e(0xe6)][_0x2cfd5e(0x162)]?this[_0x2cfd5e(0xf1)]():(this[_0x2cfd5e(0xe7)](),this[_0x2cfd5e(0x10d)][_0x2cfd5e(0x134)]({'target':this[_0x2cfd5e(0xe6)][_0x2cfd5e(0x14d)],'limiter':this[_0x2cfd5e(0xe9)](),'positions':zo}),this[_0x2cfd5e(0x125)]&&this[_0x2cfd5e(0x10d)][_0x2cfd5e(0x121)][_0x2cfd5e(0x15f)](0x0)?.[_0x2cfd5e(0x152)](_0x2cfd5e(0xe8)));}[_0x30541b(0x10e)](_0x279732){const _0x3e943d=_0x30541b;this[_0x3e943d(0x128)][_0x3e943d(0xf9)](),this[_0x3e943d(0x166)](),this[_0x3e943d(0x152)](_0x3e943d(0x116),_0x279732);}}function _0x19af(){const _0xb9392c=['197603WExuoW','pin','_createBalloonButton','extendTemplate','body','ck-reset_all-excluded','setContextItemLoading','__arrow','setAddContextOptions','files','_setupTemplate','addContextItem','_removeContextFromCollection','_setBalloonPanelContent','withBackButton','clearConversationContextItems','_handleAddContextButtonClick','ck-ai-chat-context-controls__balloon-button-source','isAnyResourceBalloonVisible','closest','AI_CHAT_CONTEXT_ADD_CONTEXT','southArrowNorthEast','children','updateResourceState','conversation','menuitem','element','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','done','_createArrowView','2932236ieEMHP','fire','6gPFZHk','_createBaseBalloonPanel','_createAddContextBalloonPanelView','_toggleAddContextBalloon','removeContextItem','show','6380KcxYmu','executeCustomItemCallback','isLoading','_currentContextsChips','ck-ai-chat-controls_context_show-more-button','_addContextBalloonConfig','get','loadSourceResources','AI_CHAT_CONTEXT_FILE_LABEL','isOn','addDocumentToContext','ck-ai-chat-context-controls__add-context-button','isHidden','hideUrlBalloonPanel','current','tooltip','document','render','searchInputVisibleFrom','type','ck-ai-chat-context-controls__add-context-balloon-panel','balloonView','setTemplate','closeSourceResourceBalloon','ck-ai-chat-context-controls__url-balloon-panel','_createContextButton','30670xssMDS','ck-ai-chat-context-controls__show-more-balloon-panel','focus','_setupUrlBalloonClickOutsideHandler','addResourceToContext','ck-ai-chat-context-controls__pending-contexts','ck-ai-chat-context-chips-wrapper-balloon','locale','46356LhkHDB','icon','2059830NuVEHr','addContextButtonView','showAddContextBalloonPanel','execute','_getLimiterElement','2402032ytQzyB','_overflowManager','div','cancel','ck-ai-chat-controls-button','label','sources','hideAddContextBalloonPanel','refreshBalloon','customItem','customItems','_resourcesBalloonView','populateSourceResourceBalloon','_bindEventHandlers','defaultPositions','clear','remove','_createResourcesBalloonView','AI_CHAT_CONTEXT_URL_LABEL','ck-ai-chat-context-controls','_conversationContextsChips','bodyCollection','isReadOnly','find','showSourceResourcesBalloon','isVisible','ck-ai-chat','_setupAllBalloonClickOutsideHandlers','addFileToContext','source','isEnabled','_showSourceResourcesBalloon','_addContextToCollection','showUrlBalloonPanel','set','_addContextBalloonPanelView','_handleUrlSubmit','urls','_createAddContextButtonView','setConversationContext','3JMwoas','hide','northArrowSouth','clearCurrentContextItems','addUrlToContext','_addUrlContent','overflowChips','southArrowNorth','509896NMVnhP','reorganizeChips','_setAddContextButtonEnabled','add','5wHiGKz','createCollection','submitUrl','content','_urlBalloonPanelView','ck-ai-chat-context-controls__balloon-button','arrowView','_hasExactlyOneSource','buttonView','enabled','_urlInputView','northArrowSouthEast','bind','length','setContainerElement','destroy','southArrowNorthWest','northArrowSouthWest','removeContextItemChip','_createUrlBalloonPanelView','_setupAddContextBalloonClickOutsideHandler'];_0x19af=function(){return _0xb9392c;};return _0x19af();}export class SourcesBalloonButtonView extends _0x4c7741{[_0x30541b(0x124)];constructor(_0x334377){const _0x4c7607=_0x30541b;super(_0x334377),this[_0x4c7607(0x10c)]({'withText':!0x0,'role':_0x4c7607(0x14c)}),this[_0x4c7607(0x124)]=this[_0x4c7607(0x150)](),this[_0x4c7607(0x136)]({'attributes':{'class':[Fo]}});}[_0x30541b(0x16a)](){const _0x54ed89=_0x30541b;super[_0x54ed89(0x16a)](),this[_0x54ed89(0x149)][_0x54ed89(0x11d)](this[_0x54ed89(0x124)]);}[_0x30541b(0x150)](){const _0x3374bf=_0x30541b,_0x2abf68=new _0x4847c5();return _0x2abf68[_0x3374bf(0x121)]=_0x2bf361,_0x2abf68[_0x3374bf(0x136)]({'attributes':{'class':Fo+_0x3374bf(0x13a)}}),_0x2abf68;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5e590e=_0x1227;(function(_0x4779c5,_0x17efb9){const _0x30f452=_0x1227,_0x1ae6c2=_0x4779c5();while(!![]){try{const _0x2f5248=parseInt(_0x30f452(0xde))/0x1*(-parseInt(_0x30f452(0xe0))/0x2)+-parseInt(_0x30f452(0xe4))/0x3*(parseInt(_0x30f452(0xda))/0x4)+-parseInt(_0x30f452(0xe1))/0x5+parseInt(_0x30f452(0xf0))/0x6+-parseInt(_0x30f452(0xf2))/0x7*(-parseInt(_0x30f452(0xed))/0x8)+-parseInt(_0x30f452(0xe9))/0x9+parseInt(_0x30f452(0xe7))/0xa*(parseInt(_0x30f452(0xf1))/0xb);if(_0x2f5248===_0x17efb9)break;else _0x1ae6c2['push'](_0x1ae6c2['shift']());}catch(_0x1019e){_0x1ae6c2['push'](_0x1ae6c2['shift']());}}}(_0x3aa8,0xa9cc3));import{ButtonView as _0x40075d,View as _0x5f3248}from'ckeditor5/src/ui.js';import{IconStop as _0x5e955e}from'ckeditor5/src/icons.js';import{getTranslation as _0x494abb}from'../../../aicore/utils/common-translations.js';function _0x1227(_0x5ba08e,_0x18c9f5){const _0x3aa8b1=_0x3aa8();return _0x1227=function(_0x122719,_0x143c6a){_0x122719=_0x122719-0xd6;let _0x591da7=_0x3aa8b1[_0x122719];return _0x591da7;},_0x1227(_0x5ba08e,_0x18c9f5);}function _0x3aa8(){const _0x2a8ab0=['ck-ai-chat-controls-loader-icon-dot','ck-ai-chat-controls-loader-wrapper','7228248hbrkQp','74932BbOZKN','336RQPChw','set','_createLoaderView','locale','AI_CHAT_IS_WRITING','fire','114128ZlOIYt','ck-ai-chat-controls-loader-icon','abortPromptStream','execute','11PJmnAG','div','153394bTHFSL','6738560PkegEZ','_createCancelButtonView','_cancelButtonView','12pUaVLO','ck-ai-button-secondary\x20ck-ai-button-stop-generating','AI_CHAT_STOP_GENERATING','4310scbADC','ck-ai-chat-controls-loader','10615266VlXSCX','ck-reset_all','setTemplate','_loaderView','6632xDRZDA'];_0x3aa8=function(){return _0x2a8ab0;};return _0x3aa8();}export class AIChatControlsLoaderView extends _0x5f3248{[_0x5e590e(0xe3)];[_0x5e590e(0xec)];constructor(_0x2e5450){const _0x4bb242=_0x5e590e;super(_0x2e5450),this[_0x4bb242(0xe3)]=this[_0x4bb242(0xe2)](),this[_0x4bb242(0xec)]=this[_0x4bb242(0xd6)](),this[_0x4bb242(0xeb)]({'tag':_0x4bb242(0xdf),'attributes':{'class':['ck',_0x4bb242(0xef),_0x4bb242(0xea)]},'children':[this[_0x4bb242(0xec)],this[_0x4bb242(0xe3)]]});}[_0x5e590e(0xe2)](){const _0x7fa70=_0x5e590e,_0x7674f1=new _0x40075d(this[_0x7fa70(0xd7)]);return _0x7674f1[_0x7fa70(0xf3)]({'label':_0x494abb(this[_0x7fa70(0xd7)],_0x7fa70(0xe6)),'withText':!0x0,'class':_0x7fa70(0xe5),'icon':_0x5e955e}),_0x7674f1['on'](_0x7fa70(0xdd),()=>{const _0x5850bc=_0x7fa70;this[_0x5850bc(0xd9)](_0x5850bc(0xdc));}),_0x7674f1;}[_0x5e590e(0xd6)](){const _0x18b222=_0x5e590e,_0x306203=new _0x5f3248(this[_0x18b222(0xd7)]);return _0x306203[_0x18b222(0xeb)]({'tag':_0x18b222(0xdf),'attributes':{'class':[_0x18b222(0xe8)]},'children':[{'tag':_0x18b222(0xdf),'attributes':{'class':[_0x18b222(0xdb)]},'children':[{'tag':_0x18b222(0xdf),'attributes':{'class':[_0x18b222(0xee)]}},{'tag':_0x18b222(0xdf),'attributes':{'class':[_0x18b222(0xee)]}},{'tag':_0x18b222(0xdf),'attributes':{'class':[_0x18b222(0xee)]}}]},{'text':_0x494abb(this[_0x18b222(0xd7)],_0x18b222(0xd8))}]}),_0x306203;}}
23
+ const _0x128099=_0x4fd2;(function(_0x3b6784,_0x922045){const _0xc0743=_0x4fd2,_0x46475d=_0x3b6784();while(!![]){try{const _0x733cb=parseInt(_0xc0743(0x209))/0x1+parseInt(_0xc0743(0x202))/0x2*(parseInt(_0xc0743(0x203))/0x3)+-parseInt(_0xc0743(0x1f3))/0x4*(parseInt(_0xc0743(0x208))/0x5)+parseInt(_0xc0743(0x1ee))/0x6+-parseInt(_0xc0743(0x1ed))/0x7+parseInt(_0xc0743(0x206))/0x8+parseInt(_0xc0743(0x1f4))/0x9*(-parseInt(_0xc0743(0x1fc))/0xa);if(_0x733cb===_0x922045)break;else _0x46475d['push'](_0x46475d['shift']());}catch(_0x49032d){_0x46475d['push'](_0x46475d['shift']());}}}(_0x44d0,0x61936));import{ButtonView as _0x1a37b2,View as _0x402d89}from'ckeditor5/src/ui.js';import{IconStop as _0x1860cc}from'ckeditor5/src/icons.js';function _0x4fd2(_0x437622,_0x11bc34){const _0x44d067=_0x44d0();return _0x4fd2=function(_0x4fd286,_0x23da3c){_0x4fd286=_0x4fd286-0x1ed;let _0x2bb8f5=_0x44d067[_0x4fd286];return _0x2bb8f5;},_0x4fd2(_0x437622,_0x11bc34);}import{getTranslation as _0x5abac7}from'../../../aicore/utils/common-translations.js';function _0x44d0(){const _0x549e5a=['36BKUtYh','set','_createLoaderView','fire','setTemplate','execute','ck-ai-chat-controls-loader-icon-dot','AI_CHAT_IS_WRITING','4814790bSLUBp','locale','ck-ai-chat-controls-loader-wrapper','ck-reset_all','abortPromptStream','_createCancelButtonView','1368704bqRVVp','3EgrVmY','AI_CHAT_STOP_GENERATING','div','5070376PGxouj','ck-ai-chat-controls-loader-icon','5xtNeXN','624598GWkfIp','1517054IUtvzc','3809052ksdBOm','_loaderView','ck-ai-chat-controls-loader','_cancelButtonView','ck-ai-button-secondary\x20ck-ai-button-stop-generating','141124esPXcP'];_0x44d0=function(){return _0x549e5a;};return _0x44d0();}export class AIChatControlsLoaderView extends _0x402d89{[_0x128099(0x1f1)];[_0x128099(0x1ef)];constructor(_0x10253d){const _0x37c153=_0x128099;super(_0x10253d),this[_0x37c153(0x1f1)]=this[_0x37c153(0x201)](),this[_0x37c153(0x1ef)]=this[_0x37c153(0x1f6)](),this[_0x37c153(0x1f8)]({'tag':_0x37c153(0x205),'attributes':{'class':['ck',_0x37c153(0x1fe),_0x37c153(0x1ff)]},'children':[this[_0x37c153(0x1ef)],this[_0x37c153(0x1f1)]]});}[_0x128099(0x201)](){const _0x5e04cf=_0x128099,_0x36d930=new _0x1a37b2(this[_0x5e04cf(0x1fd)]);return _0x36d930[_0x5e04cf(0x1f5)]({'label':_0x5abac7(this[_0x5e04cf(0x1fd)],_0x5e04cf(0x204)),'withText':!0x0,'class':_0x5e04cf(0x1f2),'icon':_0x1860cc}),_0x36d930['on'](_0x5e04cf(0x1f9),()=>{const _0x57f964=_0x5e04cf;this[_0x57f964(0x1f7)](_0x57f964(0x200));}),_0x36d930;}[_0x128099(0x1f6)](){const _0x437234=_0x128099,_0x2d739e=new _0x402d89(this[_0x437234(0x1fd)]);return _0x2d739e[_0x437234(0x1f8)]({'tag':_0x437234(0x205),'attributes':{'class':[_0x437234(0x1f0)]},'children':[{'tag':_0x437234(0x205),'attributes':{'class':[_0x437234(0x207)]},'children':[{'tag':_0x437234(0x205),'attributes':{'class':[_0x437234(0x1fa)]}},{'tag':_0x437234(0x205),'attributes':{'class':[_0x437234(0x1fa)]}},{'tag':_0x437234(0x205),'attributes':{'class':[_0x437234(0x1fa)]}}]},{'text':_0x5abac7(this[_0x437234(0x1fd)],_0x437234(0x1fb))}]}),_0x2d739e;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x4103(){const _0x3f98fb=['source','_createWebSearchButton','10MTeynP','reasoningActive','_reasoningButton','1727696MAcWiL','addMany','ck-ai-button-tertiary','modelDisplayMode','clear','text','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','AI_CHAT_DISABLE_REASONING','130JjUmSK','activeModelId','span','model','selectModel','AI_CHAT_COMMANDS','_modelSelectionDropdown','toggleWebSearch','name','webSearch','log','ck-ai-chat-controls__model-selection__item-capabilities','activeModelName','toggleReasoning','ck-ai-chat-controls-button--commands','set','isOn','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','locale','enabled','Commands\x20are\x20not\x20implemented\x20yet.','webSearchActive','setModel','AI_CHAT_ENABLE_WEB_SEARCH','ck-ai-chat-controls__model-selection__item-description','execute','length','add','capabilities','bind','ck-ai-chat__prompt-capabilities','ck-ai-chat-controls__model-selection__item-name','AI_CHAT_SEARCH_WEB','bindTemplate','setTemplate','tooltip','label','ck-button__label','createCollection','AI_CHAT_CAPABILITIES_YES','6197118gXcMZA','ck-ai-chat-controls__model-name','content','fire','reasoning','enableModelSelector','_createModelSelectionDropdown','selector','_getCapabilityParts','54948oyJbkR','_modelNameView','_createCommandsButton','isVisible','24776541OXsejx','disableModelSelector','3074502ZTaXdT','listenTo','setWebSearch','_webSearchButton','modelSelectorEnabled','14ieacFO','description','style','AI_CHAT_ENABLE_REASONING','AI_CHAT_CAPABILITIES_NO','hidden','_createModelNameView','div','_commandsButton','button','_createReasoningButton','buttonView','extendTemplate','ck-hidden','isEnabled','setModelList','setReasoning','AI_CHAT_REASONING','2284366lqjfUh','menuitemradio','_modelSelectionDropdownItems','ck-ai-chat-controls-button','1157628IWKOtX','ck-ai-chat-controls__model-selection','AI_CHAT_DISABLE_WEB_SEARCH'];_0x4103=function(){return _0x3f98fb;};return _0x4103();}const _0x4ca1c8=_0x107f;(function(_0x4b88e,_0x40d3c6){const _0x96d785=_0x107f,_0x24b0f7=_0x4b88e();while(!![]){try{const _0x499b0d=parseInt(_0x96d785(0x125))/0x1+-parseInt(_0x96d785(0x121))/0x2+-parseInt(_0x96d785(0x16c))/0x3+parseInt(_0x96d785(0x166))/0x4*(parseInt(_0x96d785(0x135))/0x5)+-parseInt(_0x96d785(0x15d))/0x6+parseInt(_0x96d785(0x10f))/0x7*(-parseInt(_0x96d785(0x12d))/0x8)+-parseInt(_0x96d785(0x16a))/0x9*(-parseInt(_0x96d785(0x12a))/0xa);if(_0x499b0d===_0x40d3c6)break;else _0x24b0f7['push'](_0x24b0f7['shift']());}catch(_0x378515){_0x24b0f7['push'](_0x24b0f7['shift']());}}}(_0x4103,0x9b429));import{Collection as _0x13dfd8}from'ckeditor5/src/utils.js';function _0x107f(_0xf4a7b1,_0x459752){const _0x410384=_0x4103();return _0x107f=function(_0x107f52,_0x5c6434){_0x107f52=_0x107f52-0x10e;let _0x60e051=_0x410384[_0x107f52];return _0x60e051;},_0x107f(_0xf4a7b1,_0x459752);}import{IconAI as _0x2829b5,IconBulb as _0x17013f,IconWeb as _0x199264}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x304a35,ButtonLabelView as _0x473e2b,ButtonView as _0xe26c3e,createDropdown as _0x1997a0,IconView as _0x4bb74a,UIModel as _0x5622a7,View as _0x11c665}from'ckeditor5/src/ui.js';import{getTranslation as _0x13c993}from'../../../aicore/utils/common-translations.js';const Go=_0x4ca1c8(0x153),Uo=_0x4ca1c8(0x124),Yo=_0x4ca1c8(0x143),qo=_0x4ca1c8(0x12f),zo=_0x4ca1c8(0x126),Fo=_0x4ca1c8(0x154),Jo=_0x4ca1c8(0x14d),Ko=_0x4ca1c8(0x140),Qo='n';export class AIChatPromptCapabilitiesView extends _0x11c665{[_0x4ca1c8(0x16f)];[_0x4ca1c8(0x12c)];[_0x4ca1c8(0x117)];[_0x4ca1c8(0x13b)];[_0x4ca1c8(0x123)];[_0x4ca1c8(0x167)];constructor(_0x6a13b0){const _0x385d74=_0x4ca1c8;super(_0x6a13b0),this[_0x385d74(0x144)](_0x385d74(0x14a),!0x1),this[_0x385d74(0x144)](_0x385d74(0x12b),!0x1),this[_0x385d74(0x144)](_0x385d74(0x130),_0x385d74(0x164)),this[_0x385d74(0x144)](_0x385d74(0x10e),!0x0),this[_0x385d74(0x144)](_0x385d74(0x136),null),this[_0x385d74(0x144)](_0x385d74(0x141),null),this[_0x385d74(0x13b)]=this[_0x385d74(0x163)](),this[_0x385d74(0x167)]=this[_0x385d74(0x115)](),this[_0x385d74(0x16f)]=this[_0x385d74(0x129)](),this[_0x385d74(0x12c)]=this[_0x385d74(0x119)](),this[_0x385d74(0x117)]=this[_0x385d74(0x168)](),this[_0x385d74(0x13b)][_0x385d74(0x11a)][_0x385d74(0x152)](_0x385d74(0x169))['to'](this,_0x385d74(0x130),_0x23b9aa=>_0x385d74(0x164)===_0x23b9aa),this[_0x385d74(0x13b)][_0x385d74(0x11a)][_0x385d74(0x152)](_0x385d74(0x158))['to'](this,_0x385d74(0x10e),_0x1253ab=>_0x1253ab?this[_0x385d74(0x13b)][_0x385d74(0x11a)][_0x385d74(0x159)]:_0x13c993(this[_0x385d74(0x147)],_0x385d74(0x133))),this[_0x385d74(0x13b)][_0x385d74(0x152)](_0x385d74(0x11d))['to'](this,_0x385d74(0x10e),_0x549111=>_0x549111),this[_0x385d74(0x16f)][_0x385d74(0x152)](_0x385d74(0x145))['to'](this,_0x385d74(0x14a),_0x26e775=>_0x26e775),this[_0x385d74(0x16f)][_0x385d74(0x152)](_0x385d74(0x158))['to'](this,_0x385d74(0x14a),_0x49956b=>_0x13c993(this[_0x385d74(0x147)],_0x49956b?_0x385d74(0x127):_0x385d74(0x14c))),this[_0x385d74(0x12c)][_0x385d74(0x152)](_0x385d74(0x145))['to'](this,_0x385d74(0x12b),_0x43d72d=>_0x43d72d),this[_0x385d74(0x12c)][_0x385d74(0x152)](_0x385d74(0x158))['to'](this,_0x385d74(0x12b),_0x3728bc=>_0x13c993(this[_0x385d74(0x147)],_0x3728bc?_0x385d74(0x134):_0x385d74(0x112))),this[_0x385d74(0x157)]({'tag':_0x385d74(0x116),'attributes':{'class':[Go]},'children':[this[_0x385d74(0x13b)],this[_0x385d74(0x167)],this[_0x385d74(0x16f)],this[_0x385d74(0x12c)],this[_0x385d74(0x117)]]}),this[_0x385d74(0x123)]=new _0x13dfd8(),_0x304a35(this[_0x385d74(0x13b)],this[_0x385d74(0x123)]);}[_0x4ca1c8(0x11e)](_0x156eb8,_0x25fcca){const _0x3dd0ac=_0x4ca1c8;if(_0x25fcca)this[_0x3dd0ac(0x144)](_0x3dd0ac(0x130),_0x3dd0ac(0x114));else{const _0x222369=0x1===_0x156eb8[_0x3dd0ac(0x14f)];this[_0x3dd0ac(0x144)](_0x3dd0ac(0x130),_0x222369?_0x3dd0ac(0x13d):_0x3dd0ac(0x164));}if(this[_0x3dd0ac(0x123)][_0x3dd0ac(0x131)](),_0x156eb8?.[_0x3dd0ac(0x14f)])for(const _0x3e3b97 of _0x156eb8){const _0x70e7c0=new _0x5622a7({'label':_0x3e3b97[_0x3dd0ac(0x13d)],'withText':!0x0,'role':_0x3dd0ac(0x122),'id':_0x3e3b97['id'],'model':_0x3e3b97});_0x70e7c0[_0x3dd0ac(0x152)](_0x3dd0ac(0x145))['to'](this,_0x3dd0ac(0x136),_0x2e480c=>_0x2e480c===_0x3e3b97['id']),this[_0x3dd0ac(0x123)][_0x3dd0ac(0x150)]({'type':_0x3dd0ac(0x118),'model':_0x70e7c0,'labelView':new ko(this[_0x3dd0ac(0x147)],_0x3e3b97)});}}[_0x4ca1c8(0x16e)](_0x56c5ea){const _0x44a700=_0x4ca1c8;this[_0x44a700(0x144)](_0x44a700(0x14a),_0x56c5ea);}[_0x4ca1c8(0x11f)](_0x31fc3c){const _0x11c4af=_0x4ca1c8;this[_0x11c4af(0x144)](_0x11c4af(0x12b),_0x31fc3c);}[_0x4ca1c8(0x14b)](_0x394b21){const _0x3d76c9=_0x4ca1c8;if(!_0x394b21)return;this[_0x3d76c9(0x136)]=_0x394b21['id'],this[_0x3d76c9(0x141)]=_0x394b21[_0x3d76c9(0x13d)]||_0x394b21['id'],this[_0x3d76c9(0x13b)][_0x3d76c9(0x11a)][_0x3d76c9(0x144)](_0x3d76c9(0x159),_0x394b21[_0x3d76c9(0x13d)]),this[_0x3d76c9(0x13b)][_0x3d76c9(0x11a)][_0x3d76c9(0x144)](_0x3d76c9(0x158),_0x394b21[_0x3d76c9(0x13d)]);const _0x2949ac=_0x394b21[_0x3d76c9(0x151)][_0x3d76c9(0x13e)]?.[_0x3d76c9(0x148)]??!0x1;this[_0x3d76c9(0x144)](_0x3d76c9(0x14a),!0x1),this[_0x3d76c9(0x16f)][_0x3d76c9(0x144)](_0x3d76c9(0x145),!0x1),this[_0x3d76c9(0x16f)][_0x3d76c9(0x144)](_0x3d76c9(0x11d),_0x2949ac),this[_0x3d76c9(0x16f)][_0x3d76c9(0x144)](_0x3d76c9(0x169),_0x2949ac);const _0x5c95ed=_0x394b21[_0x3d76c9(0x151)][_0x3d76c9(0x161)]?.[_0x3d76c9(0x148)]??!0x1;this[_0x3d76c9(0x144)](_0x3d76c9(0x12b),!0x1),this[_0x3d76c9(0x12c)][_0x3d76c9(0x144)](_0x3d76c9(0x145),!0x1),this[_0x3d76c9(0x12c)][_0x3d76c9(0x144)](_0x3d76c9(0x11d),_0x5c95ed),this[_0x3d76c9(0x12c)][_0x3d76c9(0x144)](_0x3d76c9(0x169),_0x5c95ed);}[_0x4ca1c8(0x162)](){const _0x35834e=_0x4ca1c8;this[_0x35834e(0x144)](_0x35834e(0x10e),!0x0);}[_0x4ca1c8(0x16b)](_0x3ffd65){const _0x37e2dd=_0x4ca1c8;this[_0x37e2dd(0x144)](_0x37e2dd(0x10e),!0x1),_0x3ffd65&&this[_0x37e2dd(0x144)](_0x37e2dd(0x130),_0x37e2dd(0x114));}[_0x4ca1c8(0x129)](){const _0x2617a3=_0x4ca1c8,_0x19d0c2=new _0xe26c3e();return _0x19d0c2[_0x2617a3(0x144)]({'label':_0x13c993(this[_0x2617a3(0x147)],_0x2617a3(0x155)),'icon':_0x199264,'class':Uo,'isToggleable':!0x0,'tooltipPosition':Qo}),_0x19d0c2['on'](_0x2617a3(0x14e),()=>{const _0x7b4fa1=_0x2617a3;this[_0x7b4fa1(0x160)](_0x7b4fa1(0x13c));}),_0x19d0c2;}[_0x4ca1c8(0x119)](){const _0x497461=_0x4ca1c8,_0x46adc4=new _0xe26c3e();return _0x46adc4[_0x497461(0x144)]({'label':_0x13c993(this[_0x497461(0x147)],_0x497461(0x120)),'icon':_0x17013f,'class':Uo,'isToggleable':!0x0,'tooltipPosition':Qo}),_0x46adc4['on'](_0x497461(0x14e),()=>{const _0x145581=_0x497461;this[_0x145581(0x160)](_0x145581(0x142));}),_0x46adc4;}[_0x4ca1c8(0x168)](){const _0x51ef77=_0x4ca1c8,_0x4a7a86=new _0xe26c3e();return _0x4a7a86[_0x51ef77(0x144)]({'label':_0x13c993(this[_0x51ef77(0x147)],_0x51ef77(0x13a)),'icon':_0x2829b5,'withText':!0x0,'class':Uo,'isToggleable':!0x0,'tooltip':_0x13c993(this[_0x51ef77(0x147)],_0x51ef77(0x13a)),'tooltipPosition':Qo}),_0x4a7a86[_0x51ef77(0x11b)]({'attributes':{'class':[Yo]}}),_0x4a7a86['on'](_0x51ef77(0x14e),()=>{const _0x3318ed=_0x51ef77;console[_0x3318ed(0x13f)](_0x3318ed(0x149)),alert(_0x3318ed(0x149));}),_0x4a7a86;}[_0x4ca1c8(0x163)](){const _0x549b87=_0x4ca1c8,_0x23b0ed=_0x1997a0(this[_0x549b87(0x147)]);return _0x23b0ed[_0x549b87(0x144)]({'panelPosition':'ne','class':[zo]}),_0x23b0ed[_0x549b87(0x11a)][_0x549b87(0x144)]({'label':_0x13c993(this[_0x549b87(0x147)],_0x549b87(0x146)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':Qo,'class':qo}),this[_0x549b87(0x16d)](_0x23b0ed,_0x549b87(0x14e),_0x2f7a01=>{const _0x5884ae=_0x549b87;this[_0x5884ae(0x160)](_0x5884ae(0x139),_0x2f7a01[_0x5884ae(0x128)][_0x5884ae(0x138)]);}),_0x23b0ed;}[_0x4ca1c8(0x115)](){const _0x524439=_0x4ca1c8,_0x595710=new _o(this[_0x524439(0x147)]);return _0x595710[_0x524439(0x152)](_0x524439(0x132))['to'](this,_0x524439(0x141),_0x4c5d0b=>_0x4c5d0b??''),_0x595710[_0x524439(0x152)](_0x524439(0x169))['to'](this,_0x524439(0x130),_0x1d2104=>_0x524439(0x13d)===_0x1d2104),_0x595710;}}class ko extends _0x473e2b{constructor(_0x475472,_0x55e59d){const _0x5a785f=_0x4ca1c8;super();const _0x24b6d1=this[_0x5a785f(0x156)],_0x33cd42=this[_0x5a785f(0x15b)]();this[_0x5a785f(0x157)]({'tag':_0x5a785f(0x116),'attributes':{'class':['ck',_0x5a785f(0x15a)],'style':_0x24b6d1['to'](_0x5a785f(0x111)),'id':_0x24b6d1['to']('id')},'children':[{'tag':_0x5a785f(0x116),'attributes':{'class':[Fo]},'children':[{'text':_0x24b6d1['to'](_0x5a785f(0x132))}]},{'tag':_0x5a785f(0x116),'attributes':{'class':[Jo]},'children':[{'tag':_0x5a785f(0x137),'children':[{'text':_0x55e59d[_0x5a785f(0x110)]}]}]},{'tag':_0x5a785f(0x116),'attributes':{'class':[Ko]},'children':_0x33cd42}]}),_0x33cd42[_0x5a785f(0x12e)](this[_0x5a785f(0x165)](_0x475472,_0x199264,_0x5a785f(0x155),_0x55e59d[_0x5a785f(0x151)][_0x5a785f(0x13e)]?.[_0x5a785f(0x148)]??!0x1)),_0x33cd42[_0x5a785f(0x12e)](this[_0x5a785f(0x165)](_0x475472,_0x17013f,_0x5a785f(0x120),_0x55e59d[_0x5a785f(0x151)][_0x5a785f(0x161)]?.[_0x5a785f(0x148)]??!0x1));}[_0x4ca1c8(0x165)](_0x24253c,_0x51b423,_0x311da9,_0x3a5aa9){const _0x4afe3c=_0x4ca1c8,_0x5f20ca=new _0x4bb74a();_0x5f20ca[_0x4afe3c(0x15f)]=_0x51b423;const _0x3f558a=new _0x11c665(_0x24253c);_0x3f558a[_0x4afe3c(0x157)]({'tag':_0x4afe3c(0x137),'children':[{'text':_0x13c993(_0x24253c,_0x311da9)+':\x20'}]});const _0x31ebc6=new _0x11c665(_0x24253c);return _0x31ebc6[_0x4afe3c(0x157)]({'tag':_0x4afe3c(0x137),'children':[{'text':_0x13c993(_0x24253c,_0x3a5aa9?_0x4afe3c(0x15c):_0x4afe3c(0x113))}]}),[_0x5f20ca,_0x3f558a,_0x31ebc6];}}class _o extends _0x11c665{constructor(_0x1693f1){const _0x1c5ad2=_0x4ca1c8;super(_0x1693f1),this[_0x1c5ad2(0x144)](_0x1c5ad2(0x132),void 0x0),this[_0x1c5ad2(0x144)](_0x1c5ad2(0x169),!0x0);const _0xeaf68f=this[_0x1c5ad2(0x156)];this[_0x1c5ad2(0x157)]({'tag':_0x1c5ad2(0x137),'attributes':{'class':['ck',_0x1c5ad2(0x15e),_0xeaf68f['if'](_0x1c5ad2(0x169),_0x1c5ad2(0x11c),_0x35512c=>!_0x35512c)]},'children':[{'text':_0xeaf68f['to'](_0x1c5ad2(0x132))}]});}}
23
+ const _0x217d88=_0x23b8;(function(_0x415a5d,_0x2a29b1){const _0x27101c=_0x23b8,_0xab948=_0x415a5d();while(!![]){try{const _0xae57c4=-parseInt(_0x27101c(0x106))/0x1*(-parseInt(_0x27101c(0x15e))/0x2)+parseInt(_0x27101c(0x15c))/0x3+-parseInt(_0x27101c(0x14f))/0x4*(-parseInt(_0x27101c(0x111))/0x5)+-parseInt(_0x27101c(0x15f))/0x6+-parseInt(_0x27101c(0x153))/0x7+-parseInt(_0x27101c(0x11c))/0x8+-parseInt(_0x27101c(0x128))/0x9*(parseInt(_0x27101c(0x157))/0xa);if(_0xae57c4===_0x2a29b1)break;else _0xab948['push'](_0xab948['shift']());}catch(_0x19b513){_0xab948['push'](_0xab948['shift']());}}}(_0x2084,0xe8d63));import{Collection as _0x14a2f2}from'ckeditor5/src/utils.js';import{IconAI as _0x583dc6,IconBulb as _0x43c4c5,IconWeb as _0xfcef9}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x243f26,ButtonLabelView as _0x3293c8,ButtonView as _0x27bfc6,createDropdown as _0x4d9fd0,IconView as _0x5d0298,UIModel as _0x4f4391,View as _0x483ce1}from'ckeditor5/src/ui.js';import{getTranslation as _0x3a5052}from'../../../aicore/utils/common-translations.js';function _0x23b8(_0x199f9f,_0x52541){const _0x20845a=_0x2084();return _0x23b8=function(_0x23b8f1,_0x120d57){_0x23b8f1=_0x23b8f1-0xfe;let _0x4ffdde=_0x20845a[_0x23b8f1];return _0x4ffdde;},_0x23b8(_0x199f9f,_0x52541);}function _0x2084(){const _0x235183=['AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','add','ck-ai-chat-controls__model-selection__item-capabilities','_modelNameView','_createWebSearchButton','ck-ai-chat__prompt-capabilities','button','ck-ai-chat-controls__model-selection__item-name','bind','clear','141415avitGm','_modelSelectionDropdownItems','span','setReasoning','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','AI_CHAT_ENABLE_REASONING','createCollection','enabled','isOn','div','listenTo','718288LYxsxq','AI_CHAT_DISABLE_REASONING','description','content','toggleReasoning','activeModelName','setTemplate','ck-ai-chat-controls__model-selection__item-description','ck-ai-chat-controls__model-name','set','_commandsButton','capabilities','1678257FtbbDa','fire','AI_CHAT_COMMANDS','_createModelSelectionDropdown','setWebSearch','_modelSelectionDropdown','locale','_createModelNameView','ck-ai-chat-controls__model-selection','hidden','webSearch','setModelList','model','isEnabled','enableModelSelector','addMany','style','log','Commands\x20are\x20not\x20implemented\x20yet.','AI_CHAT_CAPABILITIES_NO','ck-ai-chat-controls-button--commands','length','reasoning','isVisible','text','webSearchActive','_reasoningButton','label','ck-ai-chat-controls-button','_createReasoningButton','_getCapabilityParts','ck-ai-button-tertiary','menuitemradio','activeModelId','modelDisplayMode','name','setModel','_webSearchButton','execute','268EfmnNQ','modelSelectorEnabled','_createCommandsButton','ck-hidden','11427661qBEhAX','AI_CHAT_DISABLE_WEB_SEARCH','selectModel','AI_CHAT_SEARCH_WEB','10eTuwIn','toggleWebSearch','AI_CHAT_REASONING','selector','reasoningActive','3017277KjvCbX','tooltip','4moOMLg','6801390ywcHNd','extendTemplate','source','buttonView','AI_CHAT_CAPABILITIES_YES','AI_CHAT_ENABLE_WEB_SEARCH','disableModelSelector','ck-button__label','bindTemplate','547663ICdHGr'];_0x2084=function(){return _0x235183;};return _0x2084();}const Ko=_0x217d88(0x10c),Xo=_0x217d88(0x144),Qo=_0x217d88(0x13c),Zo=_0x217d88(0x147),tl=_0x217d88(0x130),el=_0x217d88(0x10e),il=_0x217d88(0x123),sl=_0x217d88(0x109),ol='n';export class AIChatPromptCapabilitiesView extends _0x483ce1{[_0x217d88(0x14d)];[_0x217d88(0x142)];[_0x217d88(0x126)];[_0x217d88(0x12d)];[_0x217d88(0x112)];[_0x217d88(0x10a)];constructor(_0x1697a8){const _0x5118d1=_0x217d88;super(_0x1697a8),this[_0x5118d1(0x125)](_0x5118d1(0x141),!0x1),this[_0x5118d1(0x125)](_0x5118d1(0x15b),!0x1),this[_0x5118d1(0x125)](_0x5118d1(0x14a),_0x5118d1(0x15a)),this[_0x5118d1(0x125)](_0x5118d1(0x150),!0x0),this[_0x5118d1(0x125)](_0x5118d1(0x149),null),this[_0x5118d1(0x125)](_0x5118d1(0x121),null),this[_0x5118d1(0x12d)]=this[_0x5118d1(0x12b)](),this[_0x5118d1(0x10a)]=this[_0x5118d1(0x12f)](),this[_0x5118d1(0x14d)]=this[_0x5118d1(0x10b)](),this[_0x5118d1(0x142)]=this[_0x5118d1(0x145)](),this[_0x5118d1(0x126)]=this[_0x5118d1(0x151)](),this[_0x5118d1(0x12d)][_0x5118d1(0x100)][_0x5118d1(0x10f)](_0x5118d1(0x13f))['to'](this,_0x5118d1(0x14a),_0x12dbcb=>_0x5118d1(0x15a)===_0x12dbcb),this[_0x5118d1(0x12d)][_0x5118d1(0x100)][_0x5118d1(0x10f)](_0x5118d1(0x15d))['to'](this,_0x5118d1(0x150),_0x51abb6=>_0x51abb6?this[_0x5118d1(0x12d)][_0x5118d1(0x100)][_0x5118d1(0x143)]:_0x3a5052(this[_0x5118d1(0x12e)],_0x5118d1(0x115))),this[_0x5118d1(0x12d)][_0x5118d1(0x10f)](_0x5118d1(0x135))['to'](this,_0x5118d1(0x150),_0x39ab92=>_0x39ab92),this[_0x5118d1(0x14d)][_0x5118d1(0x10f)](_0x5118d1(0x119))['to'](this,_0x5118d1(0x141),_0x4e2907=>_0x4e2907),this[_0x5118d1(0x14d)][_0x5118d1(0x10f)](_0x5118d1(0x15d))['to'](this,_0x5118d1(0x141),_0x1885a5=>_0x3a5052(this[_0x5118d1(0x12e)],_0x1885a5?_0x5118d1(0x154):_0x5118d1(0x102))),this[_0x5118d1(0x142)][_0x5118d1(0x10f)](_0x5118d1(0x119))['to'](this,_0x5118d1(0x15b),_0x577427=>_0x577427),this[_0x5118d1(0x142)][_0x5118d1(0x10f)](_0x5118d1(0x15d))['to'](this,_0x5118d1(0x15b),_0x544d3=>_0x3a5052(this[_0x5118d1(0x12e)],_0x544d3?_0x5118d1(0x11d):_0x5118d1(0x116))),this[_0x5118d1(0x122)]({'tag':_0x5118d1(0x11a),'attributes':{'class':[Ko]},'children':[this[_0x5118d1(0x12d)],this[_0x5118d1(0x10a)],this[_0x5118d1(0x14d)],this[_0x5118d1(0x142)],this[_0x5118d1(0x126)]]}),this[_0x5118d1(0x112)]=new _0x14a2f2(),_0x243f26(this[_0x5118d1(0x12d)],this[_0x5118d1(0x112)]);}[_0x217d88(0x133)](_0x3bc70a,_0x4e90c7){const _0x2202d1=_0x217d88;if(_0x4e90c7)this[_0x2202d1(0x125)](_0x2202d1(0x14a),_0x2202d1(0x131));else{const _0x3f48fa=0x1===_0x3bc70a[_0x2202d1(0x13d)];this[_0x2202d1(0x125)](_0x2202d1(0x14a),_0x3f48fa?_0x2202d1(0x14b):_0x2202d1(0x15a));}if(this[_0x2202d1(0x112)][_0x2202d1(0x110)](),_0x3bc70a?.[_0x2202d1(0x13d)])for(const _0x4e3073 of _0x3bc70a){const _0x3aa9ac=new _0x4f4391({'label':_0x4e3073[_0x2202d1(0x14b)],'withText':!0x0,'role':_0x2202d1(0x148),'id':_0x4e3073['id'],'model':_0x4e3073});_0x3aa9ac[_0x2202d1(0x10f)](_0x2202d1(0x119))['to'](this,_0x2202d1(0x149),_0x4603df=>_0x4603df===_0x4e3073['id']),this[_0x2202d1(0x112)][_0x2202d1(0x108)]({'type':_0x2202d1(0x10d),'model':_0x3aa9ac,'labelView':new ko(this[_0x2202d1(0x12e)],_0x4e3073)});}}[_0x217d88(0x12c)](_0x12b375){const _0x25e5c8=_0x217d88;this[_0x25e5c8(0x125)](_0x25e5c8(0x141),_0x12b375);}[_0x217d88(0x114)](_0x3ec31a){const _0x7810ed=_0x217d88;this[_0x7810ed(0x125)](_0x7810ed(0x15b),_0x3ec31a);}[_0x217d88(0x14c)](_0x4e7eea){const _0x52c739=_0x217d88;if(!_0x4e7eea)return;this[_0x52c739(0x149)]=_0x4e7eea['id'],this[_0x52c739(0x121)]=_0x4e7eea[_0x52c739(0x14b)]||_0x4e7eea['id'],this[_0x52c739(0x12d)][_0x52c739(0x100)][_0x52c739(0x125)](_0x52c739(0x143),_0x4e7eea[_0x52c739(0x14b)]),this[_0x52c739(0x12d)][_0x52c739(0x100)][_0x52c739(0x125)](_0x52c739(0x15d),_0x4e7eea[_0x52c739(0x14b)]);const _0x291bf8=_0x4e7eea[_0x52c739(0x127)][_0x52c739(0x132)]?.[_0x52c739(0x118)]??!0x1;this[_0x52c739(0x125)](_0x52c739(0x141),!0x1),this[_0x52c739(0x14d)][_0x52c739(0x125)](_0x52c739(0x119),!0x1),this[_0x52c739(0x14d)][_0x52c739(0x125)](_0x52c739(0x135),_0x291bf8),this[_0x52c739(0x14d)][_0x52c739(0x125)](_0x52c739(0x13f),_0x291bf8);const _0x5a3b90=_0x4e7eea[_0x52c739(0x127)][_0x52c739(0x13e)]?.[_0x52c739(0x118)]??!0x1;this[_0x52c739(0x125)](_0x52c739(0x15b),!0x1),this[_0x52c739(0x142)][_0x52c739(0x125)](_0x52c739(0x119),!0x1),this[_0x52c739(0x142)][_0x52c739(0x125)](_0x52c739(0x135),_0x5a3b90),this[_0x52c739(0x142)][_0x52c739(0x125)](_0x52c739(0x13f),_0x5a3b90);}[_0x217d88(0x136)](){const _0x430a4c=_0x217d88;this[_0x430a4c(0x125)](_0x430a4c(0x150),!0x0);}[_0x217d88(0x103)](_0x395a1e){const _0x201d6e=_0x217d88;this[_0x201d6e(0x125)](_0x201d6e(0x150),!0x1),_0x395a1e&&this[_0x201d6e(0x125)](_0x201d6e(0x14a),_0x201d6e(0x131));}[_0x217d88(0x10b)](){const _0x2fe11=_0x217d88,_0x341e26=new _0x27bfc6();return _0x341e26[_0x2fe11(0x125)]({'label':_0x3a5052(this[_0x2fe11(0x12e)],_0x2fe11(0x156)),'icon':_0xfcef9,'class':Xo,'isToggleable':!0x0,'tooltipPosition':ol}),_0x341e26['on'](_0x2fe11(0x14e),()=>{const _0x185d3c=_0x2fe11;this[_0x185d3c(0x129)](_0x185d3c(0x158));}),_0x341e26;}[_0x217d88(0x145)](){const _0x102738=_0x217d88,_0x4e57ab=new _0x27bfc6();return _0x4e57ab[_0x102738(0x125)]({'label':_0x3a5052(this[_0x102738(0x12e)],_0x102738(0x159)),'icon':_0x43c4c5,'class':Xo,'isToggleable':!0x0,'tooltipPosition':ol}),_0x4e57ab['on'](_0x102738(0x14e),()=>{const _0x221b56=_0x102738;this[_0x221b56(0x129)](_0x221b56(0x120));}),_0x4e57ab;}[_0x217d88(0x151)](){const _0x24b7b6=_0x217d88,_0xc6f75e=new _0x27bfc6();return _0xc6f75e[_0x24b7b6(0x125)]({'label':_0x3a5052(this[_0x24b7b6(0x12e)],_0x24b7b6(0x12a)),'icon':_0x583dc6,'withText':!0x0,'class':Xo,'isToggleable':!0x0,'tooltip':_0x3a5052(this[_0x24b7b6(0x12e)],_0x24b7b6(0x12a)),'tooltipPosition':ol}),_0xc6f75e[_0x24b7b6(0xfe)]({'attributes':{'class':[Qo]}}),_0xc6f75e['on'](_0x24b7b6(0x14e),()=>{const _0x588af0=_0x24b7b6;console[_0x588af0(0x139)](_0x588af0(0x13a)),alert(_0x588af0(0x13a));}),_0xc6f75e;}[_0x217d88(0x12b)](){const _0x5a1d08=_0x217d88,_0x5a8790=_0x4d9fd0(this[_0x5a1d08(0x12e)]);return _0x5a8790[_0x5a1d08(0x125)]({'panelPosition':'ne','class':[tl]}),_0x5a8790[_0x5a1d08(0x100)][_0x5a1d08(0x125)]({'label':_0x3a5052(this[_0x5a1d08(0x12e)],_0x5a1d08(0x107)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':ol,'class':Zo}),this[_0x5a1d08(0x11b)](_0x5a8790,_0x5a1d08(0x14e),_0x1a2c5a=>{const _0x53e5df=_0x5a1d08;this[_0x53e5df(0x129)](_0x53e5df(0x155),_0x1a2c5a[_0x53e5df(0xff)][_0x53e5df(0x134)]);}),_0x5a8790;}[_0x217d88(0x12f)](){const _0x4cffde=_0x217d88,_0x4c8736=new _o(this[_0x4cffde(0x12e)]);return _0x4c8736[_0x4cffde(0x10f)](_0x4cffde(0x140))['to'](this,_0x4cffde(0x121),_0x4c17e2=>_0x4c17e2??''),_0x4c8736[_0x4cffde(0x10f)](_0x4cffde(0x13f))['to'](this,_0x4cffde(0x14a),_0x3849e4=>_0x4cffde(0x14b)===_0x3849e4),_0x4c8736;}}class ko extends _0x3293c8{constructor(_0x2a444c,_0x55a9ce){const _0x1efb52=_0x217d88;super();const _0x4cd995=this[_0x1efb52(0x105)],_0x2baa21=this[_0x1efb52(0x117)]();this[_0x1efb52(0x122)]({'tag':_0x1efb52(0x11a),'attributes':{'class':['ck',_0x1efb52(0x104)],'style':_0x4cd995['to'](_0x1efb52(0x138)),'id':_0x4cd995['to']('id')},'children':[{'tag':_0x1efb52(0x11a),'attributes':{'class':[el]},'children':[{'text':_0x4cd995['to'](_0x1efb52(0x140))}]},{'tag':_0x1efb52(0x11a),'attributes':{'class':[il]},'children':[{'tag':_0x1efb52(0x113),'children':[{'text':_0x55a9ce[_0x1efb52(0x11e)]}]}]},{'tag':_0x1efb52(0x11a),'attributes':{'class':[sl]},'children':_0x2baa21}]}),_0x2baa21[_0x1efb52(0x137)](this[_0x1efb52(0x146)](_0x2a444c,_0xfcef9,_0x1efb52(0x156),_0x55a9ce[_0x1efb52(0x127)][_0x1efb52(0x132)]?.[_0x1efb52(0x118)]??!0x1)),_0x2baa21[_0x1efb52(0x137)](this[_0x1efb52(0x146)](_0x2a444c,_0x43c4c5,_0x1efb52(0x159),_0x55a9ce[_0x1efb52(0x127)][_0x1efb52(0x13e)]?.[_0x1efb52(0x118)]??!0x1));}[_0x217d88(0x146)](_0x7b6bfc,_0x186e35,_0x5ec8e6,_0xfb96ac){const _0x523e8c=_0x217d88,_0x27ea2b=new _0x5d0298();_0x27ea2b[_0x523e8c(0x11f)]=_0x186e35;const _0x253828=new _0x483ce1(_0x7b6bfc);_0x253828[_0x523e8c(0x122)]({'tag':_0x523e8c(0x113),'children':[{'text':_0x3a5052(_0x7b6bfc,_0x5ec8e6)+':\x20'}]});const _0x2fb182=new _0x483ce1(_0x7b6bfc);return _0x2fb182[_0x523e8c(0x122)]({'tag':_0x523e8c(0x113),'children':[{'text':_0x3a5052(_0x7b6bfc,_0xfb96ac?_0x523e8c(0x101):_0x523e8c(0x13b))}]}),[_0x27ea2b,_0x253828,_0x2fb182];}}class _o extends _0x483ce1{constructor(_0x445303){const _0x581e80=_0x217d88;super(_0x445303),this[_0x581e80(0x125)](_0x581e80(0x140),void 0x0),this[_0x581e80(0x125)](_0x581e80(0x13f),!0x0);const _0x9482b1=this[_0x581e80(0x105)];this[_0x581e80(0x122)]({'tag':_0x581e80(0x113),'attributes':{'class':['ck',_0x581e80(0x124),_0x9482b1['if'](_0x581e80(0x13f),_0x581e80(0x152),_0xa88867=>!_0xa88867)]},'children':[{'text':_0x9482b1['to'](_0x581e80(0x140))}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x253037=_0x20df;function _0x20df(_0x445ba5,_0x58ef44){const _0x3f0041=_0x3f00();return _0x20df=function(_0x20dfc8,_0x2832de){_0x20dfc8=_0x20dfc8-0x19f;let _0x54c275=_0x3f0041[_0x20dfc8];return _0x54c275;},_0x20df(_0x445ba5,_0x58ef44);}(function(_0x33592c,_0x34e18f){const _0x3b7826=_0x20df,_0x19504d=_0x33592c();while(!![]){try{const _0x481bfd=-parseInt(_0x3b7826(0x1cf))/0x1+parseInt(_0x3b7826(0x1a4))/0x2+-parseInt(_0x3b7826(0x1ba))/0x3*(-parseInt(_0x3b7826(0x1de))/0x4)+-parseInt(_0x3b7826(0x1b1))/0x5+-parseInt(_0x3b7826(0x1a5))/0x6*(parseInt(_0x3b7826(0x1ce))/0x7)+parseInt(_0x3b7826(0x1c4))/0x8*(parseInt(_0x3b7826(0x1d4))/0x9)+parseInt(_0x3b7826(0x1bc))/0xa;if(_0x481bfd===_0x34e18f)break;else _0x19504d['push'](_0x19504d['shift']());}catch(_0x25505e){_0x19504d['push'](_0x19504d['shift']());}}}(_0x3f00,0x46f1d));import{IconSubmit as _0x437c7a}from'ckeditor5/src/icons.js';import{ButtonView as _0x16cf98,AutocompleteView as _0x3fb9cc,createLabeledTextarea as _0x3f34e2}from'ckeditor5/src/ui.js';function _0x3f00(){const _0x47f3d6=['excludeScrollbarsAndBorders','value','classList','keystrokes','sendUserMessage','window','_addContextButtonView','execute','MAX_ROWS','setIsUploadInProgress','style','406536wZanMF','162wmCWIe','update','bind','reset','fieldWrapperChildren','errorText','submit','maxRows','destroy','requestAnimationFrame','uiLanguageDirection','locale','1009610wXijpK','setPlaceholderText','fire','target','ck-ai-chat__prompt-input_highlighted','right','remove','_setUpAddContextButtonPositioning','isEnabled','306759NNlkjM','MIN_ROWS','6574600doQAlt','hasError','minRows','fieldView','left','element','px\x20-\x20var(--ck-spacing-tiny))','calc(','1108328uzKmHU','ck-ai-chat__prompt-submit-button','_createSubmitButton','trim','queryView','AI_CHAT_LABEL_SUBMIT','add','isEmpty','submitButtonView','width','35462mObUzi','472229ZPNNLA','placeholder','isUploadInProgress','focusableChildren','AI_CHAT_PROMPT_EMPTY_ERROR','9bxzlPI','focus','_queryViewResizeObserver','rtl','contains','render','set','enter','ck-ai-chat__prompt-input','extendTemplate','4VIRbwX'];_0x3f00=function(){return _0x47f3d6;};return _0x3f00();}import{global as _0x43b93c,isVisible as _0x1841e6,Rect as _0x2daca7,ResizeObserver as _0x1d6c69}from'ckeditor5/src/utils.js';import{getTranslation as _0xb9745c}from'../../../aicore/utils/common-translations.js';import{AIChatPromptSuggestionsListView as _0x2b5d70}from'./aichatpromptsuggestionslistview.js';import{escape as _0xfc7925}from'es-toolkit/compat';const ph=_0x253037(0x1b5);export class AIChatPromptInputView extends _0x3fb9cc{[_0x253037(0x1cc)];static [_0x253037(0x1bb)]=0x1;static [_0x253037(0x1a1)]=0xc;[_0x253037(0x19f)];[_0x253037(0x1d6)];constructor(_0x22440f,_0x151c17){const _0x2add68=_0x253037;super(_0x22440f,{'queryView':{'label':'','creator':_0x3f34e2,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x2b5d70(_0x22440f),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x2add68(0x1da)](_0x2add68(0x1cb),!0x0),this[_0x2add68(0x1da)](_0x2add68(0x1d1),!0x1),this[_0x2add68(0x19f)]=_0x151c17,this[_0x2add68(0x1d6)]=null,this[_0x2add68(0x1c8)][_0x2add68(0x1bf)][_0x2add68(0x1be)]=AIChatPromptInputView[_0x2add68(0x1bb)],this[_0x2add68(0x1c8)][_0x2add68(0x1bf)][_0x2add68(0x1ac)]=AIChatPromptInputView[_0x2add68(0x1a1)],this[_0x2add68(0x1c8)][_0x2add68(0x1a9)][_0x2add68(0x1ca)](this[_0x2add68(0x19f)]),this[_0x2add68(0x1b8)](),this[_0x2add68(0x1dd)]({'attributes':{'class':['ck',_0x2add68(0x1dc)]}}),this[_0x2add68(0x1cc)]=this[_0x2add68(0x1c6)](),this[_0x2add68(0x1cc)][_0x2add68(0x1a7)](_0x2add68(0x1b9))['to'](this,_0x2add68(0x1cb),this,_0x2add68(0x1d1),(_0x5ca5e3,_0x3f2f87)=>!_0x5ca5e3&&!_0x3f2f87),this[_0x2add68(0x1d2)][_0x2add68(0x1ca)](this[_0x2add68(0x1cc)]);}[_0x253037(0x1d9)](){const _0x25ccea=_0x253037;super[_0x25ccea(0x1d9)](),this[_0x25ccea(0x1c8)][_0x25ccea(0x1a9)][_0x25ccea(0x1ca)](this[_0x25ccea(0x1cc)]),this[_0x25ccea(0x1e2)][_0x25ccea(0x1da)](_0x25ccea(0x1db),(_0x4deef7,_0x1f2368)=>{const _0x2b8845=_0x25ccea;this[_0x2b8845(0x1d1)]||this[_0x2b8845(0x1cb)]||_0x4deef7[_0x2b8845(0x1b4)]==this[_0x2b8845(0x1c8)][_0x2b8845(0x1bf)][_0x2b8845(0x1c1)]&&(this[_0x2b8845(0x1ab)](),_0x1f2368());}),this[_0x25ccea(0x1c8)][_0x25ccea(0x1bf)]['on'](_0x25ccea(0x1a6),()=>{const _0x4cc9ad=_0x25ccea;this[_0x4cc9ad(0x1cb)]=''===this[_0x4cc9ad(0x1c8)][_0x4cc9ad(0x1bf)][_0x4cc9ad(0x1c1)][_0x4cc9ad(0x1e0)]?.[_0x4cc9ad(0x1c7)]();});}[_0x253037(0x1ad)](){const _0x15a299=_0x253037;super[_0x15a299(0x1ad)](),this[_0x15a299(0x1d6)]&&this[_0x15a299(0x1d6)][_0x15a299(0x1ad)]();}[_0x253037(0x1ab)](){const _0x3f2e1e=_0x253037,_0xf1bd4f=this[_0x3f2e1e(0x1c8)][_0x3f2e1e(0x1bf)][_0x3f2e1e(0x1c1)][_0x3f2e1e(0x1e0)]?.[_0x3f2e1e(0x1c7)]();if(!_0xf1bd4f)return this[_0x3f2e1e(0x1c8)][_0x3f2e1e(0x1aa)]=_0xb9745c(this[_0x3f2e1e(0x1b0)],_0x3f2e1e(0x1d3)),void(this[_0x3f2e1e(0x1c8)][_0x3f2e1e(0x1bf)][_0x3f2e1e(0x1bd)]=!0x0);this[_0x3f2e1e(0x1c8)][_0x3f2e1e(0x1bf)][_0x3f2e1e(0x1bd)]=!0x1;const _0x119b1d=_0xfc7925(_0xf1bd4f);this[_0x3f2e1e(0x1b3)](_0x3f2e1e(0x1e3),_0x119b1d),this[_0x3f2e1e(0x1c8)][_0x3f2e1e(0x1bf)][_0x3f2e1e(0x1a8)]();}[_0x253037(0x1b2)](_0x5dc05f){const _0x530040=_0x253037;this[_0x530040(0x1c8)][_0x530040(0x1bf)][_0x530040(0x1da)](_0x530040(0x1d0),_0x5dc05f);}[_0x253037(0x1d5)](_0x1241b4=!0x1){const _0x17e9ae=_0x253037;super[_0x17e9ae(0x1d5)](),_0x1241b4&&(this[_0x17e9ae(0x1c1)][_0x17e9ae(0x1e1)][_0x17e9ae(0x1d8)](ph)||(this[_0x17e9ae(0x1c1)][_0x17e9ae(0x1e1)][_0x17e9ae(0x1ca)](ph),setTimeout(()=>{const _0x3cf4ae=_0x17e9ae;this[_0x3cf4ae(0x1c1)][_0x3cf4ae(0x1e1)][_0x3cf4ae(0x1b7)](ph);},0x320)));}[_0x253037(0x1c6)](){const _0x33a86f=_0x253037,_0x4f39e9=new _0x16cf98(this[_0x33a86f(0x1b0)]);return _0x4f39e9[_0x33a86f(0x1da)]({'icon':_0x437c7a,'label':_0xb9745c(this[_0x33a86f(0x1b0)],_0x33a86f(0x1c9)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x33a86f(0x1c5),'isEnabled':!0x1}),_0x4f39e9['on'](_0x33a86f(0x1a0),()=>{const _0x3b1e84=_0x33a86f;this[_0x3b1e84(0x1ab)]();}),_0x4f39e9;}[_0x253037(0x1a2)](_0x2d7402){const _0x307583=_0x253037;this[_0x307583(0x1d1)]=_0x2d7402;}[_0x253037(0x1b8)](){const _0x1aab54=_0x253037,_0x518129=this[_0x1aab54(0x1b0)],_0x1f46ad=()=>{const _0x9240b3=_0x1aab54;_0x43b93c[_0x9240b3(0x1e4)][_0x9240b3(0x1ae)](()=>{const _0x27f358=_0x9240b3;if(_0x1841e6(this[_0x27f358(0x1c1)])){const _0x5dc7c5=new _0x2daca7(this[_0x27f358(0x1c8)][_0x27f358(0x1bf)][_0x27f358(0x1c1)]),_0x37b3d4=new _0x2daca7(this[_0x27f358(0x19f)][_0x27f358(0x1c1)]),_0x2b15ab=_0x5dc7c5[_0x27f358(0x1cd)],_0x489e2d=_0x27f358(0x1d7)===_0x518129[_0x27f358(0x1af)]?_0x27f358(0x1b6):_0x27f358(0x1c0);_0x5dc7c5[_0x27f358(0x1df)]();const _0x3ff51d=_0x2b15ab-_0x5dc7c5[_0x27f358(0x1cd)]+0x1;this[_0x27f358(0x19f)][_0x27f358(0x1c1)][_0x27f358(0x1a3)][_0x489e2d]=_0x27f358(0x1c3)+(_0x2b15ab-_0x37b3d4[_0x27f358(0x1cd)]-_0x3ff51d)+_0x27f358(0x1c2);}});};this[_0x1aab54(0x1c8)][_0x1aab54(0x1bf)]['on'](_0x1aab54(0x1a6),_0x1f46ad),this['on'](_0x1aab54(0x1d9),()=>{const _0x936b80=_0x1aab54;_0x1f46ad(),this[_0x936b80(0x1d6)]=new _0x1d6c69(this[_0x936b80(0x1c8)][_0x936b80(0x1bf)][_0x936b80(0x1c1)],()=>{_0x1f46ad();});});}}
23
+ const _0x2fe531=_0x1451;(function(_0x27f7b2,_0x3267a1){const _0x4a9b2f=_0x1451,_0x2871ca=_0x27f7b2();while(!![]){try{const _0x5d6f44=parseInt(_0x4a9b2f(0x14d))/0x1*(-parseInt(_0x4a9b2f(0x160))/0x2)+-parseInt(_0x4a9b2f(0x170))/0x3+parseInt(_0x4a9b2f(0x171))/0x4+parseInt(_0x4a9b2f(0x158))/0x5+-parseInt(_0x4a9b2f(0x15f))/0x6*(-parseInt(_0x4a9b2f(0x156))/0x7)+-parseInt(_0x4a9b2f(0x159))/0x8*(parseInt(_0x4a9b2f(0x14b))/0x9)+parseInt(_0x4a9b2f(0x14c))/0xa;if(_0x5d6f44===_0x3267a1)break;else _0x2871ca['push'](_0x2871ca['shift']());}catch(_0x4446b2){_0x2871ca['push'](_0x2871ca['shift']());}}}(_0x3757,0xcb1e8));import{IconSubmit as _0x5ee1af}from'ckeditor5/src/icons.js';import{ButtonView as _0x45bfd0,AutocompleteView as _0x5688d5,createLabeledTextarea as _0x1468ee}from'ckeditor5/src/ui.js';import{global as _0x1df315,isVisible as _0x100af6,Rect as _0x3b398c,ResizeObserver as _0x549b0e}from'ckeditor5/src/utils.js';import{getTranslation as _0x1b671f}from'../../../aicore/utils/common-translations.js';function _0x3757(){const _0x27eceb=['MIN_ROWS','uiLanguageDirection','errorText','_addContextButtonView','target','contains','placeholder','set','713741YNDnbB','focus','1519040LhHVuG','10679304DNSylf','remove','reset','sendUserMessage','ck-ai-chat__prompt-submit-button','ck-ai-chat__prompt-input','42jvEVni','304294dtqpfk','maxRows','fieldWrapperChildren','fire','MAX_ROWS','render','left','rtl','update','excludeScrollbarsAndBorders','width','queryView','isUploadInProgress','_queryViewResizeObserver','enter','window','3603576rzggSD','3092064XokOpZ','isEmpty','setIsUploadInProgress','_setUpAddContextButtonPositioning','ck-ai-chat__prompt-input_highlighted','right','calc(','add','submitButtonView','hasError','trim','element','style','destroy','classList','execute','extendTemplate','AI_CHAT_PROMPT_EMPTY_ERROR','keystrokes','value','isEnabled','AI_CHAT_LABEL_SUBMIT','requestAnimationFrame','bind','_createSubmitButton','minRows','setPlaceholderText','focusableChildren','submit','locale','px\x20-\x20var(--ck-spacing-tiny))','fieldView','9VtDXfA','24903980wiOKKk','6lSZZHz'];_0x3757=function(){return _0x27eceb;};return _0x3757();}import{AIChatPromptSuggestionsListView as _0x1c3ba7}from'./aichatpromptsuggestionslistview.js';function _0x1451(_0x482615,_0x4b4dcc){const _0x375763=_0x3757();return _0x1451=function(_0x14516f,_0x4bfc8d){_0x14516f=_0x14516f-0x13f;let _0x454aa1=_0x375763[_0x14516f];return _0x454aa1;},_0x1451(_0x482615,_0x4b4dcc);}import{escape as _0x4a47d9}from'es-toolkit/compat';const ah=_0x2fe531(0x175);export class AIChatPromptInputView extends _0x5688d5{[_0x2fe531(0x179)];static [_0x2fe531(0x14e)]=0x1;static [_0x2fe531(0x164)]=0xc;[_0x2fe531(0x151)];[_0x2fe531(0x16d)];constructor(_0x4166a4,_0x21ce1f){const _0x342e2c=_0x2fe531;super(_0x4166a4,{'queryView':{'label':'','creator':_0x1468ee,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x1c3ba7(_0x4166a4),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x342e2c(0x155)](_0x342e2c(0x172),!0x0),this[_0x342e2c(0x155)](_0x342e2c(0x16c),!0x1),this[_0x342e2c(0x151)]=_0x21ce1f,this[_0x342e2c(0x16d)]=null,this[_0x342e2c(0x16b)][_0x342e2c(0x14a)][_0x342e2c(0x144)]=AIChatPromptInputView[_0x342e2c(0x14e)],this[_0x342e2c(0x16b)][_0x342e2c(0x14a)][_0x342e2c(0x161)]=AIChatPromptInputView[_0x342e2c(0x164)],this[_0x342e2c(0x16b)][_0x342e2c(0x162)][_0x342e2c(0x178)](this[_0x342e2c(0x151)]),this[_0x342e2c(0x174)](),this[_0x342e2c(0x181)]({'attributes':{'class':['ck',_0x342e2c(0x15e)]}}),this[_0x342e2c(0x179)]=this[_0x342e2c(0x143)](),this[_0x342e2c(0x179)][_0x342e2c(0x142)](_0x342e2c(0x13f))['to'](this,_0x342e2c(0x172),this,_0x342e2c(0x16c),(_0x4ad8b5,_0x46581f)=>!_0x4ad8b5&&!_0x46581f),this[_0x342e2c(0x146)][_0x342e2c(0x178)](this[_0x342e2c(0x179)]);}[_0x2fe531(0x165)](){const _0x46abcc=_0x2fe531;super[_0x46abcc(0x165)](),this[_0x46abcc(0x16b)][_0x46abcc(0x162)][_0x46abcc(0x178)](this[_0x46abcc(0x179)]),this[_0x46abcc(0x183)][_0x46abcc(0x155)](_0x46abcc(0x16e),(_0x5e00aa,_0x243e0d)=>{const _0xb4b0f7=_0x46abcc;this[_0xb4b0f7(0x16c)]||this[_0xb4b0f7(0x172)]||_0x5e00aa[_0xb4b0f7(0x152)]==this[_0xb4b0f7(0x16b)][_0xb4b0f7(0x14a)][_0xb4b0f7(0x17c)]&&(this[_0xb4b0f7(0x147)](),_0x243e0d());}),this[_0x46abcc(0x16b)][_0x46abcc(0x14a)]['on'](_0x46abcc(0x168),()=>{const _0x26e1bc=_0x46abcc;this[_0x26e1bc(0x172)]=''===this[_0x26e1bc(0x16b)][_0x26e1bc(0x14a)][_0x26e1bc(0x17c)][_0x26e1bc(0x184)]?.[_0x26e1bc(0x17b)]();});}[_0x2fe531(0x17e)](){const _0x1e6e31=_0x2fe531;super[_0x1e6e31(0x17e)](),this[_0x1e6e31(0x16d)]&&this[_0x1e6e31(0x16d)][_0x1e6e31(0x17e)]();}[_0x2fe531(0x147)](){const _0x462198=_0x2fe531,_0x5c5caf=this[_0x462198(0x16b)][_0x462198(0x14a)][_0x462198(0x17c)][_0x462198(0x184)]?.[_0x462198(0x17b)]();if(!_0x5c5caf)return this[_0x462198(0x16b)][_0x462198(0x150)]=_0x1b671f(this[_0x462198(0x148)],_0x462198(0x182)),void(this[_0x462198(0x16b)][_0x462198(0x14a)][_0x462198(0x17a)]=!0x0);this[_0x462198(0x16b)][_0x462198(0x14a)][_0x462198(0x17a)]=!0x1;const _0x489833=_0x4a47d9(_0x5c5caf);this[_0x462198(0x163)](_0x462198(0x15c),_0x489833),this[_0x462198(0x16b)][_0x462198(0x14a)][_0x462198(0x15b)]();}[_0x2fe531(0x145)](_0x2b1c92){const _0x2b1697=_0x2fe531;this[_0x2b1697(0x16b)][_0x2b1697(0x14a)][_0x2b1697(0x155)](_0x2b1697(0x154),_0x2b1c92);}[_0x2fe531(0x157)](_0x3f143d=!0x1){const _0x289e08=_0x2fe531;super[_0x289e08(0x157)](),_0x3f143d&&(this[_0x289e08(0x17c)][_0x289e08(0x17f)][_0x289e08(0x153)](ah)||(this[_0x289e08(0x17c)][_0x289e08(0x17f)][_0x289e08(0x178)](ah),setTimeout(()=>{const _0x43ab1e=_0x289e08;this[_0x43ab1e(0x17c)][_0x43ab1e(0x17f)][_0x43ab1e(0x15a)](ah);},0x320)));}[_0x2fe531(0x143)](){const _0x5f0b0d=_0x2fe531,_0x29d6a2=new _0x45bfd0(this[_0x5f0b0d(0x148)]);return _0x29d6a2[_0x5f0b0d(0x155)]({'icon':_0x5ee1af,'label':_0x1b671f(this[_0x5f0b0d(0x148)],_0x5f0b0d(0x140)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x5f0b0d(0x15d),'isEnabled':!0x1}),_0x29d6a2['on'](_0x5f0b0d(0x180),()=>{const _0x4e0b26=_0x5f0b0d;this[_0x4e0b26(0x147)]();}),_0x29d6a2;}[_0x2fe531(0x173)](_0x40f1a7){const _0x39c30d=_0x2fe531;this[_0x39c30d(0x16c)]=_0x40f1a7;}[_0x2fe531(0x174)](){const _0x4ff8f3=_0x2fe531,_0x4d913c=this[_0x4ff8f3(0x148)],_0x33efd8=()=>{const _0x2c3ac0=_0x4ff8f3;_0x1df315[_0x2c3ac0(0x16f)][_0x2c3ac0(0x141)](()=>{const _0x420603=_0x2c3ac0;if(_0x100af6(this[_0x420603(0x17c)])){const _0x426acb=new _0x3b398c(this[_0x420603(0x16b)][_0x420603(0x14a)][_0x420603(0x17c)]),_0x4a8ba1=new _0x3b398c(this[_0x420603(0x151)][_0x420603(0x17c)]),_0x188848=_0x426acb[_0x420603(0x16a)],_0x397b3a=_0x420603(0x167)===_0x4d913c[_0x420603(0x14f)]?_0x420603(0x176):_0x420603(0x166);_0x426acb[_0x420603(0x169)]();const _0x1b123b=_0x188848-_0x426acb[_0x420603(0x16a)]+0x1;this[_0x420603(0x151)][_0x420603(0x17c)][_0x420603(0x17d)][_0x397b3a]=_0x420603(0x177)+(_0x188848-_0x4a8ba1[_0x420603(0x16a)]-_0x1b123b)+_0x420603(0x149);}});};this[_0x4ff8f3(0x16b)][_0x4ff8f3(0x14a)]['on'](_0x4ff8f3(0x168),_0x33efd8),this['on'](_0x4ff8f3(0x165),()=>{const _0x19337d=_0x4ff8f3;_0x33efd8(),this[_0x19337d(0x16d)]=new _0x549b0e(this[_0x19337d(0x16b)][_0x19337d(0x14a)][_0x19337d(0x17c)],()=>{_0x33efd8();});});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x38f81c=_0x4c2d;(function(_0x3a6b69,_0x188afe){const _0x264e7f=_0x4c2d,_0xfa015e=_0x3a6b69();while(!![]){try{const _0x5967bb=parseInt(_0x264e7f(0x14a))/0x1+parseInt(_0x264e7f(0x14c))/0x2*(-parseInt(_0x264e7f(0x14f))/0x3)+parseInt(_0x264e7f(0x153))/0x4*(-parseInt(_0x264e7f(0x14d))/0x5)+parseInt(_0x264e7f(0x147))/0x6+-parseInt(_0x264e7f(0x154))/0x7*(-parseInt(_0x264e7f(0x151))/0x8)+parseInt(_0x264e7f(0x146))/0x9*(-parseInt(_0x264e7f(0x149))/0xa)+parseInt(_0x264e7f(0x152))/0xb*(parseInt(_0x264e7f(0x148))/0xc);if(_0x5967bb===_0x188afe)break;else _0xfa015e['push'](_0xfa015e['shift']());}catch(_0x2a77bc){_0xfa015e['push'](_0xfa015e['shift']());}}}(_0x313e,0x1c579));function _0x313e(){const _0x385214=['22YeVoeu','28BPaGEq','186361bXiTeP','127845KfGWlQ','379032wtfGsk','470388tcFjkN','40yPWYDj','217480fGKjlG','items','4bvIVDP','140330TRiZSj','filter','24453XkcgfA','length','8XkuAHG'];_0x313e=function(){return _0x385214;};return _0x313e();}import{ListView as _0x5631d8}from'ckeditor5/src/ui.js';function _0x4c2d(_0x227a86,_0x258346){const _0x313e57=_0x313e();return _0x4c2d=function(_0x4c2dc1,_0x544f0f){_0x4c2dc1=_0x4c2dc1-0x146;let _0x9753c5=_0x313e57[_0x4c2dc1];return _0x9753c5;},_0x4c2d(_0x227a86,_0x258346);}export class AIChatPromptSuggestionsListView extends _0x5631d8{[_0x38f81c(0x14e)](){const _0x3f209a=_0x38f81c;let _0x2b9564=0x0;for(const _0x4422d9 of this[_0x3f209a(0x14b)])_0x2b9564+=_0x4422d9[_0x3f209a(0x14b)][_0x3f209a(0x150)];return{'resultsCount':_0x2b9564,'totalItemsCount':_0x2b9564};}}
23
+ function _0x5211(){const _0x24f93d=['3514ugBUkR','1730556RbeiTA','11140yPpJZT','2800809INfqfU','780600pwZVVM','9790eSMrIO','6448hSPVBS','items','7220230zmtLKL','filter','31nIkqjs','588soyORt','length'];_0x5211=function(){return _0x24f93d;};return _0x5211();}function _0x3ad1(_0x3a7da5,_0x33cbc4){const _0x521126=_0x5211();return _0x3ad1=function(_0x3ad1f3,_0x633ac6){_0x3ad1f3=_0x3ad1f3-0xae;let _0x4d3c3b=_0x521126[_0x3ad1f3];return _0x4d3c3b;},_0x3ad1(_0x3a7da5,_0x33cbc4);}const _0xc3d582=_0x3ad1;(function(_0x454dbf,_0xab7c80){const _0x27b170=_0x3ad1,_0x213ffd=_0x454dbf();while(!![]){try{const _0x221560=-parseInt(_0x27b170(0xb1))/0x1*(parseInt(_0x27b170(0xb9))/0x2)+parseInt(_0x27b170(0xb8))/0x3+-parseInt(_0x27b170(0xb5))/0x4+-parseInt(_0x27b170(0xb6))/0x5*(parseInt(_0x27b170(0xb2))/0x6)+parseInt(_0x27b170(0xb4))/0x7*(parseInt(_0x27b170(0xba))/0x8)+-parseInt(_0x27b170(0xb7))/0x9+parseInt(_0x27b170(0xaf))/0xa;if(_0x221560===_0xab7c80)break;else _0x213ffd['push'](_0x213ffd['shift']());}catch(_0x18be12){_0x213ffd['push'](_0x213ffd['shift']());}}}(_0x5211,0x42a0a));import{ListView as _0x166b56}from'ckeditor5/src/ui.js';export class AIChatPromptSuggestionsListView extends _0x166b56{[_0xc3d582(0xb0)](){const _0x539a0f=_0xc3d582;let _0x5e8363=0x0;for(const _0x4e1f0f of this[_0x539a0f(0xae)])_0x5e8363+=_0x4e1f0f[_0x539a0f(0xae)][_0x539a0f(0xb3)];return{'resultsCount':_0x5e8363,'totalItemsCount':_0x5e8363};}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x3ae6(_0x4bcbe0,_0x3a3dc2){const _0x5cf9e4=_0x5cf9();return _0x3ae6=function(_0x3ae6b5,_0x300d22){_0x3ae6b5=_0x3ae6b5-0x172;let _0x29d633=_0x5cf9e4[_0x3ae6b5];return _0x29d633;},_0x3ae6(_0x4bcbe0,_0x3a3dc2);}const _0x4d6cdf=_0x3ae6;function _0x5cf9(){const _0x1d676d=['_source','_handleResourceSelection','967884KSGIsU','forEach','\x5c$&','3FXTgPA','3769040VEHtBv','filter','add','updateResourceState','replace','useDefaultFiltering','resource','trim','1780800tMIZYb','fire','addResourceToContext','ck-ai-chat-resources__list','execute','extendTemplate','highlightText','locale','19407752WIjgYP','clear','setResources','2708574VLAIcE','test','1936322sAwmVe','label','5391995omrxTD','items'];_0x5cf9=function(){return _0x1d676d;};return _0x5cf9();}(function(_0x385ce6,_0x2f71bc){const _0xe3db6=_0x3ae6,_0x1f4d49=_0x385ce6();while(!![]){try{const _0x1b86e4=-parseInt(_0xe3db6(0x187))/0x1+-parseInt(_0xe3db6(0x181))/0x2*(parseInt(_0xe3db6(0x18a))/0x3)+parseInt(_0xe3db6(0x18b))/0x4+parseInt(_0xe3db6(0x174))/0x5+-parseInt(_0xe3db6(0x17f))/0x6+-parseInt(_0xe3db6(0x183))/0x7+parseInt(_0xe3db6(0x17c))/0x8;if(_0x1b86e4===_0x2f71bc)break;else _0x1f4d49['push'](_0x1f4d49['shift']());}catch(_0x25ea25){_0x1f4d49['push'](_0x1f4d49['shift']());}}}(_0x5cf9,0x8a566));import{ListView as _0x618957}from'ckeditor5/src/ui.js';import{AIChatResourceListItemView as _0x171eaf}from'./aichatresourcelistitemview.js';const uc=_0x4d6cdf(0x177);export class AIChatContextResourcesListView extends _0x618957{[_0x4d6cdf(0x185)];constructor(_0x2bdef9,_0x222cb6){const _0x386d77=_0x4d6cdf;super(_0x2bdef9),this[_0x386d77(0x185)]=_0x222cb6,this[_0x386d77(0x179)]({'attributes':{'class':[uc]}});}[_0x4d6cdf(0x17e)](_0x3c8557,_0x9f9c7d){const _0x42f966=_0x4d6cdf;this[_0x42f966(0x184)][_0x42f966(0x17d)]();let _0x3545de=_0x3c8557;if(this[_0x42f966(0x185)][_0x42f966(0x190)]&&_0x9f9c7d&&''!==_0x9f9c7d[_0x42f966(0x173)]()){const _0x3d3b82=new RegExp(_0x9f9c7d[_0x42f966(0x18f)](/[.*+?^${}()|[\]\\]/g,_0x42f966(0x189)),'gi');_0x3545de=_0x3c8557[_0x42f966(0x18c)](_0x3bdf64=>_0x3d3b82[_0x42f966(0x180)](_0x3bdf64[_0x42f966(0x182)]));}for(const _0x1e6e5d of _0x3545de){const _0x4ca2c9=new _0x171eaf(this[_0x42f966(0x17b)],_0x1e6e5d);_0x4ca2c9['on'](_0x42f966(0x178),()=>{const _0x46431f=_0x42f966;this[_0x46431f(0x186)](this[_0x46431f(0x185)],_0x1e6e5d);}),this[_0x42f966(0x184)][_0x42f966(0x18d)](_0x4ca2c9);}this[_0x42f966(0x185)][_0x42f966(0x190)]&&this[_0x42f966(0x17a)](_0x9f9c7d);}[_0x4d6cdf(0x17a)](_0x593dc8){const _0x1c3e0d=_0x4d6cdf;this[_0x1c3e0d(0x185)][_0x1c3e0d(0x190)]&&this[_0x1c3e0d(0x184)][_0x1c3e0d(0x188)](_0x147ae3=>{const _0x4e352=_0x1c3e0d;_0x147ae3[_0x4e352(0x17a)](_0x593dc8);});}[_0x4d6cdf(0x18e)](_0x59baaf,_0x2a4dea){const _0x323b83=_0x4d6cdf;for(const _0x5377c8 of this[_0x323b83(0x184)]){const _0x35dc22=_0x5377c8;_0x35dc22[_0x323b83(0x172)]['id']===_0x59baaf&&_0x35dc22[_0x323b83(0x18e)](_0x2a4dea);}}[_0x4d6cdf(0x186)](_0xf77a71,_0x4bb78d){const _0x575820=_0x4d6cdf;this[_0x575820(0x175)](_0x575820(0x176),{'source':_0xf77a71,'resource':_0x4bb78d});}}
23
+ const _0x36a158=_0x73a6;function _0x73a6(_0x84af91,_0x1926a9){const _0x5885e3=_0x5885();return _0x73a6=function(_0x73a69b,_0x598d68){_0x73a69b=_0x73a69b-0xaf;let _0x4db8f3=_0x5885e3[_0x73a69b];return _0x4db8f3;},_0x73a6(_0x84af91,_0x1926a9);}(function(_0x12f818,_0x218de2){const _0x4a291c=_0x73a6,_0x45b842=_0x12f818();while(!![]){try{const _0x4bcbfb=-parseInt(_0x4a291c(0xb6))/0x1+-parseInt(_0x4a291c(0xc9))/0x2+-parseInt(_0x4a291c(0xc0))/0x3*(parseInt(_0x4a291c(0xc6))/0x4)+parseInt(_0x4a291c(0xc5))/0x5+-parseInt(_0x4a291c(0xcd))/0x6*(-parseInt(_0x4a291c(0xcb))/0x7)+parseInt(_0x4a291c(0xb4))/0x8+parseInt(_0x4a291c(0xb7))/0x9*(parseInt(_0x4a291c(0xb0))/0xa);if(_0x4bcbfb===_0x218de2)break;else _0x45b842['push'](_0x45b842['shift']());}catch(_0x17926f){_0x45b842['push'](_0x45b842['shift']());}}}(_0x5885,0x3801e));import{ListView as _0x2b24b8}from'ckeditor5/src/ui.js';function _0x5885(){const _0x2201c3=['trim','211112JCfqrg','extendTemplate','254189HvLeFD','1863bBCgQp','clear','updateResourceState','setResources','fire','resource','forEach','locale','execute','222HVTGhI','addResourceToContext','items','add','_source','1778120oKXvhA','11364miscSv','filter','test','458740FZIlgs','\x5c$&','584563wbARFc','highlightText','6AUzZbz','_handleResourceSelection','label','replace','22110ktZTjF','ck-ai-chat-resources__list','useDefaultFiltering'];_0x5885=function(){return _0x2201c3;};return _0x5885();}import{AIChatResourceListItemView as _0x1766a1}from'./aichatresourcelistitemview.js';const uc=_0x36a158(0xb1);export class AIChatContextResourcesListView extends _0x2b24b8{[_0x36a158(0xc4)];constructor(_0x41cd56,_0x698e45){const _0x150e8b=_0x36a158;super(_0x41cd56),this[_0x150e8b(0xc4)]=_0x698e45,this[_0x150e8b(0xb5)]({'attributes':{'class':[uc]}});}[_0x36a158(0xba)](_0x1b74cd,_0x4b6a9f){const _0x5cfec7=_0x36a158;this[_0x5cfec7(0xc2)][_0x5cfec7(0xb8)]();let _0x5bb702=_0x1b74cd;if(this[_0x5cfec7(0xc4)][_0x5cfec7(0xb2)]&&_0x4b6a9f&&''!==_0x4b6a9f[_0x5cfec7(0xb3)]()){const _0x55beef=new RegExp(_0x4b6a9f[_0x5cfec7(0xaf)](/[.*+?^${}()|[\]\\]/g,_0x5cfec7(0xca)),'gi');_0x5bb702=_0x1b74cd[_0x5cfec7(0xc7)](_0x1b7286=>_0x55beef[_0x5cfec7(0xc8)](_0x1b7286[_0x5cfec7(0xcf)]));}for(const _0x4d8594 of _0x5bb702){const _0x237128=new _0x1766a1(this[_0x5cfec7(0xbe)],_0x4d8594);_0x237128['on'](_0x5cfec7(0xbf),()=>{const _0x3fc62b=_0x5cfec7;this[_0x3fc62b(0xce)](this[_0x3fc62b(0xc4)],_0x4d8594);}),this[_0x5cfec7(0xc2)][_0x5cfec7(0xc3)](_0x237128);}this[_0x5cfec7(0xc4)][_0x5cfec7(0xb2)]&&this[_0x5cfec7(0xcc)](_0x4b6a9f);}[_0x36a158(0xcc)](_0x12c0b6){const _0x434961=_0x36a158;this[_0x434961(0xc4)][_0x434961(0xb2)]&&this[_0x434961(0xc2)][_0x434961(0xbd)](_0x11e990=>{const _0x5ee3bd=_0x434961;_0x11e990[_0x5ee3bd(0xcc)](_0x12c0b6);});}[_0x36a158(0xb9)](_0x253838,_0x3562cc){const _0xb8e0fd=_0x36a158;for(const _0x2e987e of this[_0xb8e0fd(0xc2)]){const _0xf92e45=_0x2e987e;_0xf92e45[_0xb8e0fd(0xbc)]['id']===_0x253838&&_0xf92e45[_0xb8e0fd(0xb9)](_0x3562cc);}}[_0x36a158(0xce)](_0x4f6a72,_0x253c8d){const _0x219447=_0x36a158;this[_0x219447(0xbb)](_0x219447(0xc1),{'source':_0x4f6a72,'resource':_0x253c8d});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x463842=_0x5895;function _0x5895(_0x2fe2aa,_0x5724b9){const _0x1c2673=_0x1c26();return _0x5895=function(_0x589509,_0x52b833){_0x589509=_0x589509-0x149;let _0x38369d=_0x1c2673[_0x589509];return _0x38369d;},_0x5895(_0x2fe2aa,_0x5724b9);}(function(_0x22354e,_0x1322d4){const _0xae0ddd=_0x5895,_0x486a73=_0x22354e();while(!![]){try{const _0x25b195=-parseInt(_0xae0ddd(0x154))/0x1+-parseInt(_0xae0ddd(0x157))/0x2+parseInt(_0xae0ddd(0x170))/0x3*(-parseInt(_0xae0ddd(0x168))/0x4)+-parseInt(_0xae0ddd(0x16a))/0x5+-parseInt(_0xae0ddd(0x17a))/0x6*(-parseInt(_0xae0ddd(0x160))/0x7)+-parseInt(_0xae0ddd(0x166))/0x8*(-parseInt(_0xae0ddd(0x15b))/0x9)+parseInt(_0xae0ddd(0x169))/0xa;if(_0x25b195===_0x1322d4)break;else _0x486a73['push'](_0x486a73['shift']());}catch(_0x882a58){_0x486a73['push'](_0x486a73['shift']());}}}(_0x1c26,0xb1304));import{View as _0x532be0,ViewCollection as _0x5b1eb2}from'ckeditor5/src/ui.js';function _0x1c26(){const _0x21aae1=['_createResourcesListView','_createSkeletonView','searchInputVisibleFrom','_skeletonLoader','fire','354HregJc','div','_latestLoadResourcesUid','_searchSection','length','aiChatResources','_searchView','_resourcesListView','set','search','source','bindTemplate','145361daQHqs','setTemplate','render','1945296fVyeiG','ck\x20ck-search','ck-ai-chat-resources','children','6759FWiHgq','has','useDefaultFiltering','loadSourceResources','loadResources','83818iwGZVg','add','_searchInputVisibleFrom','highlightText','addResourceToContext','_createSearchView','8472swJcfJ','extendTemplate','2408824oNbTdc','28094160LTWXfT','6315030vFsAQs','delegate','_createSearchSection','isLoading','_source','getQuery','6uqAOSA','ck-hidden','locale','setResources','updateResourceState'];_0x1c26=function(){return _0x21aae1;};return _0x1c26();}import{uid as _0xec64b1}from'ckeditor5/src/utils.js';import{AIChatContextResourcesListView as _0x36d0fa}from'./aichatcontextresourceslistview.js';import{AIChatContextResourcesSearchInputView as _0x23b8e4}from'./aichatresourcessearchinputview.js';import{AISkeletonView as _0x2ccedc,SKELETON_DEFINITIONS as _0x55f888}from'../../../../aicore/ui/aiskeleton.js';export class AIChatContextResourcesView extends _0x532be0{[_0x463842(0x14e)];[_0x463842(0x14b)];[_0x463842(0x162)];[_0x463842(0x14f)];[_0x463842(0x178)];[_0x463842(0x16e)];[_0x463842(0x15a)];[_0x463842(0x14a)]=null;constructor(_0x31e767,_0x15e4e9){const _0x58cdee=_0x463842;super(_0x31e767),this[_0x58cdee(0x16e)]=_0x15e4e9[_0x58cdee(0x152)],this[_0x58cdee(0x162)]=_0x15e4e9[_0x58cdee(0x177)]??0x7,this[_0x58cdee(0x150)](_0x58cdee(0x16d),!0x0),this[_0x58cdee(0x14e)]=this[_0x58cdee(0x165)](),this[_0x58cdee(0x14b)]=this[_0x58cdee(0x16c)](),this[_0x58cdee(0x14f)]=this[_0x58cdee(0x175)](),this[_0x58cdee(0x178)]=this[_0x58cdee(0x176)](),this[_0x58cdee(0x15a)]=new _0x5b1eb2([this[_0x58cdee(0x178)],this[_0x58cdee(0x14f)]]),this[_0x58cdee(0x155)]({'tag':_0x58cdee(0x149),'attributes':{'class':_0x58cdee(0x159)},'children':this[_0x58cdee(0x15a)]});}[_0x463842(0x165)](){const _0x29549b=_0x463842;return new _0x23b8e4(this[_0x29549b(0x172)]);}[_0x463842(0x16c)](){const _0x4180ae=_0x463842,_0x4447dd=new _0x532be0(this[_0x4180ae(0x172)]);return _0x4447dd[_0x4180ae(0x155)]({'tag':_0x4180ae(0x149),'attributes':{'class':_0x4180ae(0x158)},'children':[this[_0x4180ae(0x14e)]]}),this[_0x4180ae(0x14e)]['on'](_0x4180ae(0x151),(_0x4b63ce,_0xeeaae8)=>{const _0x225ccc=_0x4180ae;this[_0x225ccc(0x15f)](_0xeeaae8),this[_0x225ccc(0x16e)][_0x225ccc(0x15d)]&&this[_0x225ccc(0x14f)][_0x225ccc(0x163)](_0xeeaae8);}),_0x4447dd;}[_0x463842(0x175)](){const _0xe8433=_0x463842,_0x5eafe7=new _0x36d0fa(this[_0xe8433(0x172)],this[_0xe8433(0x16e)]);return _0x5eafe7[_0xe8433(0x16b)](_0xe8433(0x164))['to'](this),_0x5eafe7[_0xe8433(0x167)]({'attributes':{'class':this[_0xe8433(0x153)]['if'](_0xe8433(0x16d),_0xe8433(0x171))}}),_0x5eafe7;}[_0x463842(0x176)](){const _0x552662=_0x463842,_0x41237e=new _0x2ccedc(this[_0x552662(0x172)],_0x55f888[_0x552662(0x14d)]);return _0x41237e[_0x552662(0x167)]({'attributes':{'class':[this[_0x552662(0x153)]['if'](_0x552662(0x16d),_0x552662(0x171),_0x163189=>!_0x163189)]}}),_0x41237e;}[_0x463842(0x156)](){const _0x1ecf76=_0x463842;super[_0x1ecf76(0x156)](),this[_0x1ecf76(0x15f)]('');}[_0x463842(0x15f)](_0x5dcdf5){const _0x2e6723=_0x463842,_0x3247a1=_0xec64b1();this[_0x2e6723(0x14a)]=_0x3247a1,this[_0x2e6723(0x179)](_0x2e6723(0x15e),{'sourceId':this[_0x2e6723(0x16e)]['id'],'query':_0x5dcdf5,'uid':_0x3247a1}),this[_0x2e6723(0x16d)]=!0x0;}[_0x463842(0x173)](_0x5e182f,_0x48cd64){const _0xf451d8=_0x463842;if(_0x48cd64&&_0x48cd64!==this[_0xf451d8(0x14a)])return;const _0x4bf3a9=this[_0xf451d8(0x16e)][_0xf451d8(0x15d)]?this[_0xf451d8(0x14e)][_0xf451d8(0x16f)]():'';this[_0xf451d8(0x14f)][_0xf451d8(0x173)](_0x5e182f,_0x4bf3a9),_0x5e182f[_0xf451d8(0x14c)]>=this[_0xf451d8(0x162)]&&!this[_0xf451d8(0x15a)][_0xf451d8(0x15c)](this[_0xf451d8(0x14b)])&&this[_0xf451d8(0x15a)][_0xf451d8(0x161)](this[_0xf451d8(0x14b)],0x0),requestAnimationFrame(()=>{const _0x2dac93=_0xf451d8;this[_0x2dac93(0x16d)]=!0x1;});}[_0x463842(0x174)](_0x472c37,_0x153ef9){const _0x45d46f=_0x463842;this[_0x45d46f(0x14f)][_0x45d46f(0x174)](_0x472c37,_0x153ef9);}}
23
+ function _0x4f00(){const _0x5d252c=['109841WXrIcd','bindTemplate','source','getQuery','_searchInputVisibleFrom','361732HMCWcU','highlightText','aiChatResources','length','render','locale','_createSearchView','_source','children','_skeletonLoader','527835CGEqUZ','1275690mInZoN','setResources','loadResources','delegate','ck-ai-chat-resources','11334bFOlyO','searchInputVisibleFrom','setTemplate','extendTemplate','isLoading','has','add','ck\x20ck-search','search','_searchSection','addResourceToContext','_createResourcesListView','updateResourceState','_resourcesListView','_latestLoadResourcesUid','2037kxvaML','_searchView','3767770sCRZjZ','274581MqnnrE','ck-hidden','_createSkeletonView','loadSourceResources','10rJstUm','div','112PVOZYn','_createSearchSection','set','fire','useDefaultFiltering'];_0x4f00=function(){return _0x5d252c;};return _0x4f00();}function _0x40de(_0x3826be,_0x4ab2f9){const _0x4f00b2=_0x4f00();return _0x40de=function(_0x40deac,_0x102c2a){_0x40deac=_0x40deac-0x65;let _0x2e82d6=_0x4f00b2[_0x40deac];return _0x2e82d6;},_0x40de(_0x3826be,_0x4ab2f9);}const _0x532644=_0x40de;(function(_0x18314b,_0x5cd1e4){const _0x54ccdf=_0x40de,_0x1dac97=_0x18314b();while(!![]){try{const _0x4bf385=parseInt(_0x54ccdf(0x86))/0x1*(parseInt(_0x54ccdf(0x7f))/0x2)+parseInt(_0x54ccdf(0x96))/0x3+-parseInt(_0x54ccdf(0x8b))/0x4+parseInt(_0x54ccdf(0x95))/0x5+-parseInt(_0x54ccdf(0x69))/0x6*(parseInt(_0x54ccdf(0x78))/0x7)+-parseInt(_0x54ccdf(0x81))/0x8*(parseInt(_0x54ccdf(0x7b))/0x9)+parseInt(_0x54ccdf(0x7a))/0xa;if(_0x4bf385===_0x5cd1e4)break;else _0x1dac97['push'](_0x1dac97['shift']());}catch(_0x24309f){_0x1dac97['push'](_0x1dac97['shift']());}}}(_0x4f00,0x5f191));import{View as _0x2e0742,ViewCollection as _0x484c2a}from'ckeditor5/src/ui.js';import{uid as _0x41d6bd}from'ckeditor5/src/utils.js';import{AIChatContextResourcesListView as _0x5de61c}from'./aichatcontextresourceslistview.js';import{AIChatContextResourcesSearchInputView as _0x33c3e2}from'./aichatresourcessearchinputview.js';import{AISkeletonView as _0x4b2dc9,SKELETON_DEFINITIONS as _0x3c88a5}from'../../../../aicore/ui/aiskeleton.js';export class AIChatContextResourcesView extends _0x2e0742{[_0x532644(0x79)];[_0x532644(0x72)];[_0x532644(0x8a)];[_0x532644(0x76)];[_0x532644(0x94)];[_0x532644(0x92)];[_0x532644(0x93)];[_0x532644(0x77)]=null;constructor(_0x1b2589,_0xcee7d3){const _0x260776=_0x532644;super(_0x1b2589),this[_0x260776(0x92)]=_0xcee7d3[_0x260776(0x88)],this[_0x260776(0x8a)]=_0xcee7d3[_0x260776(0x6a)]??0x7,this[_0x260776(0x83)](_0x260776(0x6d),!0x0),this[_0x260776(0x79)]=this[_0x260776(0x91)](),this[_0x260776(0x72)]=this[_0x260776(0x82)](),this[_0x260776(0x76)]=this[_0x260776(0x74)](),this[_0x260776(0x94)]=this[_0x260776(0x7d)](),this[_0x260776(0x93)]=new _0x484c2a([this[_0x260776(0x94)],this[_0x260776(0x76)]]),this[_0x260776(0x6b)]({'tag':_0x260776(0x80),'attributes':{'class':_0x260776(0x68)},'children':this[_0x260776(0x93)]});}[_0x532644(0x91)](){const _0x22d5f1=_0x532644;return new _0x33c3e2(this[_0x22d5f1(0x90)]);}[_0x532644(0x82)](){const _0x339bca=_0x532644,_0x1e7b86=new _0x2e0742(this[_0x339bca(0x90)]);return _0x1e7b86[_0x339bca(0x6b)]({'tag':_0x339bca(0x80),'attributes':{'class':_0x339bca(0x70)},'children':[this[_0x339bca(0x79)]]}),this[_0x339bca(0x79)]['on'](_0x339bca(0x71),(_0x2d957a,_0x3d99f7)=>{const _0x426335=_0x339bca;this[_0x426335(0x66)](_0x3d99f7),this[_0x426335(0x92)][_0x426335(0x85)]&&this[_0x426335(0x76)][_0x426335(0x8c)](_0x3d99f7);}),_0x1e7b86;}[_0x532644(0x74)](){const _0xa58dab=_0x532644,_0x30cda7=new _0x5de61c(this[_0xa58dab(0x90)],this[_0xa58dab(0x92)]);return _0x30cda7[_0xa58dab(0x67)](_0xa58dab(0x73))['to'](this),_0x30cda7[_0xa58dab(0x6c)]({'attributes':{'class':this[_0xa58dab(0x87)]['if'](_0xa58dab(0x6d),_0xa58dab(0x7c))}}),_0x30cda7;}[_0x532644(0x7d)](){const _0x4ab96f=_0x532644,_0xd1a8f3=new _0x4b2dc9(this[_0x4ab96f(0x90)],_0x3c88a5[_0x4ab96f(0x8d)]);return _0xd1a8f3[_0x4ab96f(0x6c)]({'attributes':{'class':[this[_0x4ab96f(0x87)]['if'](_0x4ab96f(0x6d),_0x4ab96f(0x7c),_0x1acd82=>!_0x1acd82)]}}),_0xd1a8f3;}[_0x532644(0x8f)](){const _0x251d8b=_0x532644;super[_0x251d8b(0x8f)](),this[_0x251d8b(0x66)]('');}[_0x532644(0x66)](_0x26183e){const _0x365028=_0x532644,_0x4559cc=_0x41d6bd();this[_0x365028(0x77)]=_0x4559cc,this[_0x365028(0x84)](_0x365028(0x7e),{'sourceId':this[_0x365028(0x92)]['id'],'query':_0x26183e,'uid':_0x4559cc}),this[_0x365028(0x6d)]=!0x0;}[_0x532644(0x65)](_0x5eb237,_0x554eb0){const _0x169dec=_0x532644;if(_0x554eb0&&_0x554eb0!==this[_0x169dec(0x77)])return;const _0x43522d=this[_0x169dec(0x92)][_0x169dec(0x85)]?this[_0x169dec(0x79)][_0x169dec(0x89)]():'';this[_0x169dec(0x76)][_0x169dec(0x65)](_0x5eb237,_0x43522d),_0x5eb237[_0x169dec(0x8e)]>=this[_0x169dec(0x8a)]&&!this[_0x169dec(0x93)][_0x169dec(0x6e)](this[_0x169dec(0x72)])&&this[_0x169dec(0x93)][_0x169dec(0x6f)](this[_0x169dec(0x72)],0x0),requestAnimationFrame(()=>{const _0x2878c3=_0x169dec;this[_0x2878c3(0x6d)]=!0x1;});}[_0x532644(0x75)](_0x31c139,_0x4ed0a3){const _0x3189c8=_0x532644;this[_0x3189c8(0x76)][_0x3189c8(0x75)](_0x31c139,_0x4ed0a3);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x59df93=_0x5455;(function(_0x5c212f,_0xb9a51a){const _0x45d606=_0x5455,_0x15c9ab=_0x5c212f();while(!![]){try{const _0x2ccadd=parseInt(_0x45d606(0x16b))/0x1*(parseInt(_0x45d606(0x158))/0x2)+parseInt(_0x45d606(0x165))/0x3*(parseInt(_0x45d606(0x16a))/0x4)+parseInt(_0x45d606(0x15b))/0x5+-parseInt(_0x45d606(0x16f))/0x6+-parseInt(_0x45d606(0x15e))/0x7+-parseInt(_0x45d606(0x15f))/0x8+parseInt(_0x45d606(0x155))/0x9*(-parseInt(_0x45d606(0x17a))/0xa);if(_0x2ccadd===_0xb9a51a)break;else _0x15c9ab['push'](_0x15c9ab['shift']());}catch(_0x596417){_0x15c9ab['push'](_0x15c9ab['shift']());}}}(_0x2008,0xe9d89));function _0x2008(){const _0x3069ca=['_titleView','_createIconView','getResourceIcon','6040302muSijS','execute','extendTemplate','render','ck-ai-chat-resources__item--in-context','updateResourceState','trim','_createTitleView','URL','ck-ai-chat-resources__item','ck-ai-chat-resources__item__icon','10XGhSxF','ck-hidden','TEXT','text','isVisible','FILE','DOCUMENT','12145779aBiEfC','highlightText','_setupTemplate','1518Kppqgb','span','ck-ai-chat-resources__item-title','9527740KmRQeW','isInContext','resource','7141113HxrGQz','3571480xUFWaO','div','type','setTemplate','_updateIcon','bindTemplate','3jWhJWj','content','label','set','_iconView','6506288BHBxYG','1645niKOld'];_0x2008=function(){return _0x3069ca;};return _0x2008();}import{HighlightedTextView as _0x25e92f,IconView as _0x1e15e2,ListItemView as _0x33abe9}from'ckeditor5/src/ui.js';import{escapeRegExp as _0xc7b5ae}from'es-toolkit/compat';function _0x5455(_0x16dcbb,_0x5b3413){const _0x20081a=_0x2008();return _0x5455=function(_0x54554e,_0x5ca1e0){_0x54554e=_0x54554e-0x14f;let _0x32d13d=_0x20081a[_0x54554e];return _0x32d13d;},_0x5455(_0x16dcbb,_0x5b3413);}import{AIContextItemType as _0x4b54c0}from'../../../../aicore/model/aicontext.js';import{IconFileUpload as _0x38fad0,IconCheck as _0x47bfa5,IconDocument as _0x3f5f23,IconDocumentOutline as _0x4e61a8,IconLink as _0x2daf71}from'@ckeditor/ckeditor5-icons';const Jr=_0x59df93(0x178),Kr=_0x59df93(0x173),Mr=_0x59df93(0x15a),Nr=_0x59df93(0x179);export class AIChatResourceListItemView extends _0x33abe9{[_0x59df93(0x15d)];[_0x59df93(0x16c)];[_0x59df93(0x169)];constructor(_0x28ec65,_0x2c55f7){const _0x655bcf=_0x59df93;super(_0x28ec65),this[_0x655bcf(0x15d)]=_0x2c55f7,this[_0x655bcf(0x168)](_0x655bcf(0x15c),!!_0x2c55f7[_0x655bcf(0x15c)]),this[_0x655bcf(0x16c)]=this[_0x655bcf(0x176)](),this[_0x655bcf(0x169)]=this[_0x655bcf(0x16d)](),this[_0x655bcf(0x157)]();}[_0x59df93(0x172)](){const _0x527260=_0x59df93;super[_0x527260(0x172)]();}[_0x59df93(0x16e)](_0x1c40b6){const _0x305802=_0x59df93;if(_0x1c40b6[_0x305802(0x15c)])return _0x47bfa5;switch(_0x1c40b6[_0x305802(0x161)]){case _0x4b54c0[_0x305802(0x154)]:return _0x3f5f23;case _0x4b54c0[_0x305802(0x177)]:return _0x2daf71;case _0x4b54c0[_0x305802(0x153)]:case _0x4b54c0[_0x305802(0x150)]:return _0x38fad0;default:return _0x4e61a8;}}[_0x59df93(0x156)](_0x4a3384){const _0x431de9=_0x59df93;if(!_0x4a3384||''===_0x4a3384[_0x431de9(0x175)]())return void this[_0x431de9(0x16c)][_0x431de9(0x156)](null);const _0x45005e=new RegExp(_0xc7b5ae(_0x4a3384),'gi');this[_0x431de9(0x16c)][_0x431de9(0x156)](_0x45005e);}[_0x59df93(0x174)](_0x19588b){const _0x55e5f1=_0x59df93;this[_0x55e5f1(0x15d)][_0x55e5f1(0x15c)]=_0x19588b,this[_0x55e5f1(0x15c)]=_0x19588b,this[_0x55e5f1(0x163)]();}[_0x59df93(0x176)](){const _0x42007d=_0x59df93,_0x4d6510=new _0x25e92f();return _0x4d6510[_0x42007d(0x151)]=this[_0x42007d(0x15d)][_0x42007d(0x167)],_0x4d6510[_0x42007d(0x171)]({'tag':_0x42007d(0x159),'attributes':{'class':[Mr]}}),_0x4d6510;}[_0x59df93(0x16d)](){const _0x4f37b5=_0x59df93,_0x20fdee=new _0x1e15e2();return _0x20fdee[_0x4f37b5(0x166)]=this[_0x4f37b5(0x16e)](this[_0x4f37b5(0x15d)]),_0x20fdee;}[_0x59df93(0x157)](){const _0x450344=_0x59df93,_0x649dbc=this[_0x450344(0x164)];this[_0x450344(0x162)]({'tag':_0x450344(0x160),'attributes':{'class':[Jr,_0x649dbc['if'](_0x450344(0x152),_0x450344(0x14f),_0x1c2e4b=>!_0x1c2e4b),_0x649dbc['if'](_0x450344(0x15c),Kr)]},'children':[{'tag':_0x450344(0x160),'attributes':{'class':[Nr]},'children':[this[_0x450344(0x169)]]},this[_0x450344(0x16c)]],'on':{'click':_0x649dbc['to'](_0x450344(0x170))}});}[_0x59df93(0x163)](){const _0x2449a3=_0x59df93;this[_0x2449a3(0x169)][_0x2449a3(0x166)]=this[_0x2449a3(0x16e)](this[_0x2449a3(0x15d)]);}}
23
+ const _0x54497b=_0x4dab;(function(_0x1bf65b,_0x232eb5){const _0x3459f6=_0x4dab,_0x278ef3=_0x1bf65b();while(!![]){try{const _0x5ed6b8=-parseInt(_0x3459f6(0x1be))/0x1*(-parseInt(_0x3459f6(0x1d0))/0x2)+-parseInt(_0x3459f6(0x1dc))/0x3+parseInt(_0x3459f6(0x1de))/0x4+parseInt(_0x3459f6(0x1ce))/0x5+parseInt(_0x3459f6(0x1d6))/0x6*(-parseInt(_0x3459f6(0x1c3))/0x7)+parseInt(_0x3459f6(0x1d3))/0x8+-parseInt(_0x3459f6(0x1cc))/0x9;if(_0x5ed6b8===_0x232eb5)break;else _0x278ef3['push'](_0x278ef3['shift']());}catch(_0x4eaa0a){_0x278ef3['push'](_0x278ef3['shift']());}}}(_0x24f2,0x87bfe));import{HighlightedTextView as _0xf9cd12,IconView as _0x41149c,ListItemView as _0x3ba7e1}from'ckeditor5/src/ui.js';import{escapeRegExp as _0x41d2db}from'es-toolkit/compat';function _0x4dab(_0x4be913,_0x4d6871){const _0x24f2d=_0x24f2();return _0x4dab=function(_0x4dab98,_0x2de3a0){_0x4dab98=_0x4dab98-0x1b6;let _0x2e0b49=_0x24f2d[_0x4dab98];return _0x2e0b49;},_0x4dab(_0x4be913,_0x4d6871);}function _0x24f2(){const _0x4c7010=['4689515dgLKWR','execute','2zGmnCJ','ck-hidden','type','8543456AVrCAZ','setTemplate','updateResourceState','30cNjwEd','trim','bindTemplate','label','render','set','1127391hjbMlZ','getResourceIcon','2365176nxiGGQ','resource','URL','ck-ai-chat-resources__item__icon','content','isInContext','_createTitleView','ck-ai-chat-resources__item--in-context','_titleView','extendTemplate','text','81574wKrgJG','_setupTemplate','DOCUMENT','div','isVisible','1135183KBJerN','TEXT','_iconView','_updateIcon','highlightText','ck-ai-chat-resources__item-title','FILE','_createIconView','ck-ai-chat-resources__item','8424279MqgTRX','span'];_0x24f2=function(){return _0x4c7010;};return _0x24f2();}import{AIContextItemType as _0x3a7816}from'../../../../aicore/model/aicontext.js';import{IconFileUpload as _0x155b6a,IconCheck as _0x283564,IconDocument as _0x38e62c,IconDocumentOutline as _0xd94c30,IconLink as _0x116df5}from'@ckeditor/ckeditor5-icons';const zr=_0x54497b(0x1cb),Jr=_0x54497b(0x1ba),Kr=_0x54497b(0x1c8),Mr=_0x54497b(0x1b6);export class AIChatResourceListItemView extends _0x3ba7e1{[_0x54497b(0x1df)];[_0x54497b(0x1bb)];[_0x54497b(0x1c5)];constructor(_0x2a0cc8,_0x531d25){const _0x41a966=_0x54497b;super(_0x2a0cc8),this[_0x41a966(0x1df)]=_0x531d25,this[_0x41a966(0x1db)](_0x41a966(0x1b8),!!_0x531d25[_0x41a966(0x1b8)]),this[_0x41a966(0x1bb)]=this[_0x41a966(0x1b9)](),this[_0x41a966(0x1c5)]=this[_0x41a966(0x1ca)](),this[_0x41a966(0x1bf)]();}[_0x54497b(0x1da)](){const _0x3cf2a8=_0x54497b;super[_0x3cf2a8(0x1da)]();}[_0x54497b(0x1dd)](_0x2168db){const _0x42a6ae=_0x54497b;if(_0x2168db[_0x42a6ae(0x1b8)])return _0x283564;switch(_0x2168db[_0x42a6ae(0x1d2)]){case _0x3a7816[_0x42a6ae(0x1c0)]:return _0x38e62c;case _0x3a7816[_0x42a6ae(0x1e0)]:return _0x116df5;case _0x3a7816[_0x42a6ae(0x1c9)]:case _0x3a7816[_0x42a6ae(0x1c4)]:return _0x155b6a;default:return _0xd94c30;}}[_0x54497b(0x1c7)](_0x11a2cd){const _0x27683a=_0x54497b;if(!_0x11a2cd||''===_0x11a2cd[_0x27683a(0x1d7)]())return void this[_0x27683a(0x1bb)][_0x27683a(0x1c7)](null);const _0x3a3088=new RegExp(_0x41d2db(_0x11a2cd),'gi');this[_0x27683a(0x1bb)][_0x27683a(0x1c7)](_0x3a3088);}[_0x54497b(0x1d5)](_0x6e623d){const _0x6c0acf=_0x54497b;this[_0x6c0acf(0x1df)][_0x6c0acf(0x1b8)]=_0x6e623d,this[_0x6c0acf(0x1b8)]=_0x6e623d,this[_0x6c0acf(0x1c6)]();}[_0x54497b(0x1b9)](){const _0x3f34be=_0x54497b,_0xc04087=new _0xf9cd12();return _0xc04087[_0x3f34be(0x1bd)]=this[_0x3f34be(0x1df)][_0x3f34be(0x1d9)],_0xc04087[_0x3f34be(0x1bc)]({'tag':_0x3f34be(0x1cd),'attributes':{'class':[Kr]}}),_0xc04087;}[_0x54497b(0x1ca)](){const _0x5dc407=_0x54497b,_0x1360de=new _0x41149c();return _0x1360de[_0x5dc407(0x1b7)]=this[_0x5dc407(0x1dd)](this[_0x5dc407(0x1df)]),_0x1360de;}[_0x54497b(0x1bf)](){const _0x4acc56=_0x54497b,_0x5ada63=this[_0x4acc56(0x1d8)];this[_0x4acc56(0x1d4)]({'tag':_0x4acc56(0x1c1),'attributes':{'class':[zr,_0x5ada63['if'](_0x4acc56(0x1c2),_0x4acc56(0x1d1),_0x559cd9=>!_0x559cd9),_0x5ada63['if'](_0x4acc56(0x1b8),Jr)]},'children':[{'tag':_0x4acc56(0x1c1),'attributes':{'class':[Mr]},'children':[this[_0x4acc56(0x1c5)]]},this[_0x4acc56(0x1bb)]],'on':{'click':_0x5ada63['to'](_0x4acc56(0x1cf))}});}[_0x54497b(0x1c6)](){const _0x1134c3=_0x54497b;this[_0x1134c3(0x1c5)][_0x1134c3(0x1b7)]=this[_0x1134c3(0x1dd)](this[_0x1134c3(0x1df)]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x42f84c=_0xd90a;(function(_0x308af2,_0x524683){const _0x2401e6=_0xd90a,_0x16ea08=_0x308af2();while(!![]){try{const _0x370e1d=parseInt(_0x2401e6(0xf6))/0x1+parseInt(_0x2401e6(0x113))/0x2+parseInt(_0x2401e6(0x10a))/0x3*(-parseInt(_0x2401e6(0x114))/0x4)+-parseInt(_0x2401e6(0xeb))/0x5+-parseInt(_0x2401e6(0x104))/0x6*(parseInt(_0x2401e6(0xfe))/0x7)+-parseInt(_0x2401e6(0x103))/0x8*(parseInt(_0x2401e6(0xfc))/0x9)+parseInt(_0x2401e6(0x11c))/0xa;if(_0x370e1d===_0x524683)break;else _0x16ea08['push'](_0x16ea08['shift']());}catch(_0x35c8a4){_0x16ea08['push'](_0x16ea08['shift']());}}}(_0xf7fa,0x21ad2));function _0xf7fa(){const _0x3d79b=['add','5996390rsclWG','execute','_config','updateResourceState','children','show','_sourceResourceBalloons','_getResourcesViewFromBalloon','resource','extendTemplate','get','_createSourceResourceBalloonPanel','1077155lRjDLJ','change:isLoading','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','clear','closeSourceResourceBalloon','_createBalloonHeader','delete','source','pin','_createBalloonResourcesView','onBalloonClosed','178285ZFcwrN','values','ck-ai-chat-context-controls__source-balloon-panel','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_source','destroy','onBackToContext','1814391PtTFIP','_setupSingleResourceBalloonClickOutsideHandler','7WkINRP','isAnyResourceBalloonVisible','_bodyCollection','onResourceSelected','once','8PfdUXj','567564tuquYG','loadSourceResources','element','getTargetElement','addResourceToContext','showSourceResourcesBalloon','3IIauoo','set','_locale','searchInputVisibleFrom','populateSourceResourceBalloon','_addSourceResourceContent','_createBackButton','ck-button-icon\x20ck-button-back','isVisible','11496qILkVC','536440tDsNYH','onLoadSourceResources','label','setResources','getLimiterElement','hide','content'];_0xf7fa=function(){return _0x3d79b;};return _0xf7fa();}import{BalloonPanelView as _0x1f3273,ButtonView as _0x5bd67b,clickOutsideHandler as _0xf1c866,FormHeaderView as _0x2ba1b3}from'ckeditor5/src/ui.js';import{IconPreviousArrow as _0x1c9898}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x14900d}from'../../../../aicore/utils/common-translations.js';function _0xd90a(_0x1268c8,_0x2b9a3f){const _0xf7faf6=_0xf7fa();return _0xd90a=function(_0xd90a44,_0x4a59ab){_0xd90a44=_0xd90a44-0xe1;let _0x405449=_0xf7faf6[_0xd90a44];return _0x405449;},_0xd90a(_0x1268c8,_0x2b9a3f);}import{AIChatContextResourcesView as _0x5cb427}from'./aichatcontextresourcesview.js';const Bc=_0x42f84c(0xf8),mc=_0x42f84c(0x111),dc=_0x42f84c(0xf9);export class AIChatResourcesBalloonView{[_0x42f84c(0xe5)]=new Map();[_0x42f84c(0x100)];[_0x42f84c(0x10c)];[_0x42f84c(0xe1)];constructor(_0x41cc25,_0x2ba32f,_0xce3e80){const _0x17fd1f=_0x42f84c;this[_0x17fd1f(0x10c)]=_0x41cc25,this[_0x17fd1f(0x100)]=_0x2ba32f,this[_0x17fd1f(0xe1)]=_0xce3e80;}[_0x42f84c(0x109)]({source:_0x4a82a1,withBackButton:_0x206f90}){const _0x4bf75e=_0x42f84c;let _0xd4c825=this[_0x4bf75e(0xe5)][_0x4bf75e(0xe9)](_0x4a82a1['id']);_0xd4c825||(_0xd4c825=this[_0x4bf75e(0xea)](),this[_0x4bf75e(0xe5)][_0x4bf75e(0x10b)](_0x4a82a1['id'],_0xd4c825),this[_0x4bf75e(0xfd)](_0xd4c825)),this[_0x4bf75e(0x10f)]({'balloonPanel':_0xd4c825,'source':_0x4a82a1,'withBackButton':_0x206f90}),_0xd4c825[_0x4bf75e(0xe4)]();const _0x36960e=this[_0x4bf75e(0xe1)][_0x4bf75e(0x107)]();_0x36960e&&_0xd4c825[_0x4bf75e(0xf3)]({'target':_0x36960e,'limiter':this[_0x4bf75e(0xe1)][_0x4bf75e(0x118)]()});}[_0x42f84c(0x10e)](_0x3aabeb,_0x5b1a47,_0x3cd7a8){const _0x5b7743=_0x42f84c,_0x35e44a=this[_0x5b7743(0xe5)][_0x5b7743(0xe9)](_0x3aabeb);if(!_0x35e44a)return;const _0x3f56ea=this[_0x5b7743(0xe6)](_0x35e44a);_0x3f56ea&&(_0x3f56ea[_0x5b7743(0x117)](_0x5b1a47,_0x3cd7a8),_0x3f56ea[_0x5b7743(0x102)](_0x5b7743(0xec),()=>{const _0x44a278=_0x5b7743;_0x35e44a[_0x44a278(0xf3)]({'target':this[_0x44a278(0xe1)][_0x44a278(0x107)](),'limiter':this[_0x44a278(0xe1)][_0x44a278(0x118)]()});}));}[_0x42f84c(0xef)](_0x3ffaf6){const _0x6ef6c0=_0x42f84c,_0x40408e=this[_0x6ef6c0(0xe5)][_0x6ef6c0(0xe9)](_0x3ffaf6);_0x40408e&&requestAnimationFrame(()=>{const _0x1cc54e=_0x6ef6c0;_0x40408e[_0x1cc54e(0x119)](),this[_0x1cc54e(0xe5)][_0x1cc54e(0xf1)](_0x3ffaf6),this[_0x1cc54e(0xe1)][_0x1cc54e(0xf5)]();});}[_0x42f84c(0xff)](){const _0x31f152=_0x42f84c;for(const _0x2ac6e2 of this[_0x31f152(0xe5)][_0x31f152(0xf7)]())if(_0x2ac6e2[_0x31f152(0x112)])return!0x0;return!0x1;}[_0x42f84c(0xe2)](_0x285e56,_0x3126c2,_0x32a38e){const _0x54d69f=_0x42f84c,_0x444120=this[_0x54d69f(0xe5)][_0x54d69f(0xe9)](_0x285e56);if(!_0x444120||!_0x444120[_0x54d69f(0x112)])return;const _0xb33705=this[_0x54d69f(0xe1)][_0x54d69f(0x107)]();if(!_0xb33705)return;_0x444120[_0x54d69f(0xf3)]({'target':_0xb33705,'limiter':this[_0x54d69f(0xe1)][_0x54d69f(0x118)]()});const _0x2cf53c=this[_0x54d69f(0xe6)](_0x444120);_0x2cf53c&&_0x2cf53c[_0x54d69f(0xe2)](_0x3126c2,_0x32a38e);}[_0x42f84c(0xfa)](){const _0x2034fa=_0x42f84c;for(const _0x392f0b of this[_0x2034fa(0xe5)][_0x2034fa(0xf7)]())_0x392f0b[_0x2034fa(0xfa)]();this[_0x2034fa(0xe5)][_0x2034fa(0xee)]();}[_0x42f84c(0xea)](){const _0x393aa5=_0x42f84c,_0x3e3956=new _0x1f3273(this[_0x393aa5(0x10c)]);return _0x3e3956[_0x393aa5(0xe8)]({'attributes':{'class':Bc}}),this[_0x393aa5(0x100)][_0x393aa5(0x11b)](_0x3e3956),_0x3e3956;}[_0x42f84c(0x10f)]({balloonPanel:_0x4c18f9,source:_0x556ff6,withBackButton:_0x5f139b}){const _0x547d0c=_0x42f84c;_0x4c18f9[_0x547d0c(0x11a)][_0x547d0c(0xee)]();const _0x4406a9=this[_0x547d0c(0xf0)]({'balloonPanel':_0x4c18f9,'source':_0x556ff6,'withBackButton':_0x5f139b});_0x4c18f9[_0x547d0c(0x11a)][_0x547d0c(0x11b)](_0x4406a9);const _0x419a0a=this[_0x547d0c(0xf4)](_0x556ff6);_0x4c18f9[_0x547d0c(0x11a)][_0x547d0c(0x11b)](_0x419a0a);}[_0x42f84c(0xf0)]({balloonPanel:_0x811266,source:_0x4e757b,withBackButton:_0x483dda}){const _0x55ef46=_0x42f84c,_0x51af5f=new _0x2ba1b3(this[_0x55ef46(0x10c)],{'label':_0x4e757b[_0x55ef46(0x116)],'class':dc});return _0x483dda&&_0x51af5f[_0x55ef46(0xe3)][_0x55ef46(0x11b)](this[_0x55ef46(0x110)](_0x811266),0x0),_0x51af5f;}[_0x42f84c(0x110)](_0x19a720){const _0xdbdc2a=_0x42f84c,_0x3819c8=new _0x5bd67b(this[_0xdbdc2a(0x10c)]);return _0x3819c8[_0xdbdc2a(0x10b)]({'icon':_0x1c9898,'tooltip':_0x14900d(this[_0xdbdc2a(0x10c)],_0xdbdc2a(0xed)),'tooltipPosition':'n','class':mc}),_0x3819c8['on'](_0xdbdc2a(0x11d),()=>{const _0x5ead4c=_0xdbdc2a;_0x19a720[_0x5ead4c(0x119)](),this[_0x5ead4c(0xe1)][_0x5ead4c(0xfb)]();}),_0x3819c8;}[_0x42f84c(0xf4)](_0xd2019){const _0x356f3d=_0x42f84c,_0x36419b=new _0x5cb427(this[_0x356f3d(0x10c)],{'source':_0xd2019,'searchInputVisibleFrom':this[_0x356f3d(0xe1)][_0x356f3d(0x10d)]});return _0x36419b['on'](_0x356f3d(0x105),(_0x88253e,_0x3faf05)=>{const _0x10e4de=_0x356f3d;this[_0x10e4de(0xe1)][_0x10e4de(0x115)](_0x3faf05);}),_0x36419b['on'](_0x356f3d(0x108),(_0x466fa4,_0x267e36)=>{const _0x5a2a31=_0x356f3d;this[_0x5a2a31(0xe1)][_0x5a2a31(0x101)](_0x267e36[_0x5a2a31(0xf2)],_0x267e36[_0x5a2a31(0xe7)]),this[_0x5a2a31(0xef)](_0xd2019['id']);}),_0x36419b;}[_0x42f84c(0xe6)](_0x3fe6ab){const _0x2084d2=_0x42f84c,_0x1093ae=_0x3fe6ab[_0x2084d2(0x11a)][_0x2084d2(0xe9)](0x1);return _0x1093ae instanceof _0x5cb427?_0x1093ae:null;}[_0x42f84c(0xfd)](_0xe5d24e){const _0x2b0ee3=_0x42f84c;_0xf1c866({'emitter':_0xe5d24e,'contextElements':[_0xe5d24e[_0x2b0ee3(0x106)]],'callback':()=>{const _0x51257a=_0x2b0ee3;_0xe5d24e[_0x51257a(0x119)](),this[_0x51257a(0xe1)][_0x51257a(0xf5)]();},'activator':()=>_0xe5d24e[_0x2b0ee3(0x112)]});}}
23
+ const _0x4a5f47=_0x5ddb;(function(_0x3bddbe,_0x2ba374){const _0x388095=_0x5ddb,_0x72ff8c=_0x3bddbe();while(!![]){try{const _0x58d4d8=-parseInt(_0x388095(0x1ed))/0x1+-parseInt(_0x388095(0x1c9))/0x2+-parseInt(_0x388095(0x1e8))/0x3+parseInt(_0x388095(0x1e0))/0x4+parseInt(_0x388095(0x1eb))/0x5+-parseInt(_0x388095(0x1e5))/0x6*(-parseInt(_0x388095(0x1cc))/0x7)+-parseInt(_0x388095(0x1d3))/0x8;if(_0x58d4d8===_0x2ba374)break;else _0x72ff8c['push'](_0x72ff8c['shift']());}catch(_0x2c1f2f){_0x72ff8c['push'](_0x72ff8c['shift']());}}}(_0x997c,0x36035));import{BalloonPanelView as _0x5df6de,ButtonView as _0x553596,clickOutsideHandler as _0x54c4b3,FormHeaderView as _0x4995c3}from'ckeditor5/src/ui.js';import{IconPreviousArrow as _0x4e115b}from'@ckeditor/ckeditor5-icons';function _0x5ddb(_0x6ca707,_0x3062a6){const _0x997c90=_0x997c();return _0x5ddb=function(_0x5ddb5a,_0xb6d139){_0x5ddb5a=_0x5ddb5a-0x1c9;let _0x1c177c=_0x997c90[_0x5ddb5a];return _0x1c177c;},_0x5ddb(_0x6ca707,_0x3062a6);}import{getTranslation as _0x118a73}from'../../../../aicore/utils/common-translations.js';import{AIChatContextResourcesView as _0x456ab5}from'./aichatcontextresourcesview.js';const Bc=_0x4a5f47(0x1dd),mc=_0x4a5f47(0x1e6),dc=_0x4a5f47(0x1e7);export class AIChatResourcesBalloonView{[_0x4a5f47(0x1fa)]=new Map();[_0x4a5f47(0x1dc)];[_0x4a5f47(0x1e3)];[_0x4a5f47(0x1fd)];constructor(_0x5ca6f8,_0xd0a72e,_0x393802){const _0xbc0974=_0x4a5f47;this[_0xbc0974(0x1e3)]=_0x5ca6f8,this[_0xbc0974(0x1dc)]=_0xd0a72e,this[_0xbc0974(0x1fd)]=_0x393802;}[_0x4a5f47(0x1d7)]({source:_0x441231,withBackButton:_0x458ffb}){const _0x1cdd8d=_0x4a5f47;let _0x25f647=this[_0x1cdd8d(0x1fa)][_0x1cdd8d(0x1ce)](_0x441231['id']);_0x25f647||(_0x25f647=this[_0x1cdd8d(0x1e4)](),this[_0x1cdd8d(0x1fa)][_0x1cdd8d(0x1d5)](_0x441231['id'],_0x25f647),this[_0x1cdd8d(0x1f8)](_0x25f647)),this[_0x1cdd8d(0x1f6)]({'balloonPanel':_0x25f647,'source':_0x441231,'withBackButton':_0x458ffb}),_0x25f647[_0x1cdd8d(0x1d4)]();const _0x315bbc=this[_0x1cdd8d(0x1fd)][_0x1cdd8d(0x1ff)]();_0x315bbc&&_0x25f647[_0x1cdd8d(0x1ee)]({'target':_0x315bbc,'limiter':this[_0x1cdd8d(0x1fd)][_0x1cdd8d(0x1fb)]()});}[_0x4a5f47(0x201)](_0x1bfe06,_0x131bf2,_0x7b7171){const _0x44bcee=_0x4a5f47,_0x321d2c=this[_0x44bcee(0x1fa)][_0x44bcee(0x1ce)](_0x1bfe06);if(!_0x321d2c)return;const _0x59bdb8=this[_0x44bcee(0x1ef)](_0x321d2c);_0x59bdb8&&(_0x59bdb8[_0x44bcee(0x1de)](_0x131bf2,_0x7b7171),_0x59bdb8[_0x44bcee(0x1d0)](_0x44bcee(0x1f7),()=>{const _0x2dcc3e=_0x44bcee;_0x321d2c[_0x2dcc3e(0x1ee)]({'target':this[_0x2dcc3e(0x1fd)][_0x2dcc3e(0x1ff)](),'limiter':this[_0x2dcc3e(0x1fd)][_0x2dcc3e(0x1fb)]()});}));}[_0x4a5f47(0x1cf)](_0xa3d5b9){const _0x2d801c=_0x4a5f47,_0x55937e=this[_0x2d801c(0x1fa)][_0x2d801c(0x1ce)](_0xa3d5b9);_0x55937e&&requestAnimationFrame(()=>{const _0x210a14=_0x2d801c;_0x55937e[_0x210a14(0x1fc)](),this[_0x210a14(0x1fa)][_0x210a14(0x1d6)](_0xa3d5b9),this[_0x210a14(0x1fd)][_0x210a14(0x1f0)]();});}[_0x4a5f47(0x1e2)](){const _0x468bb0=_0x4a5f47;for(const _0x4dfa69 of this[_0x468bb0(0x1fa)][_0x468bb0(0x1e9)]())if(_0x4dfa69[_0x468bb0(0x1f4)])return!0x0;return!0x1;}[_0x4a5f47(0x202)](_0x2afb52,_0x1952ab,_0x557450){const _0x1c441d=_0x4a5f47,_0x10abe7=this[_0x1c441d(0x1fa)][_0x1c441d(0x1ce)](_0x2afb52);if(!_0x10abe7||!_0x10abe7[_0x1c441d(0x1f4)])return;const _0x4bfae3=this[_0x1c441d(0x1fd)][_0x1c441d(0x1ff)]();if(!_0x4bfae3)return;_0x10abe7[_0x1c441d(0x1ee)]({'target':_0x4bfae3,'limiter':this[_0x1c441d(0x1fd)][_0x1c441d(0x1fb)]()});const _0x5b449f=this[_0x1c441d(0x1ef)](_0x10abe7);_0x5b449f&&_0x5b449f[_0x1c441d(0x202)](_0x1952ab,_0x557450);}[_0x4a5f47(0x1f2)](){const _0xbba2bb=_0x4a5f47;for(const _0x1c2a34 of this[_0xbba2bb(0x1fa)][_0xbba2bb(0x1e9)]())_0x1c2a34[_0xbba2bb(0x1f2)]();this[_0xbba2bb(0x1fa)][_0xbba2bb(0x1cd)]();}[_0x4a5f47(0x1e4)](){const _0x253524=_0x4a5f47,_0x242696=new _0x5df6de(this[_0x253524(0x1e3)]);return _0x242696[_0x253524(0x1f5)]({'attributes':{'class':Bc}}),this[_0x253524(0x1dc)][_0x253524(0x1db)](_0x242696),_0x242696;}[_0x4a5f47(0x1f6)]({balloonPanel:_0x4521be,source:_0x414428,withBackButton:_0x514808}){const _0x56d5ce=_0x4a5f47;_0x4521be[_0x56d5ce(0x1d9)][_0x56d5ce(0x1cd)]();const _0x5cb207=this[_0x56d5ce(0x1cb)]({'balloonPanel':_0x4521be,'source':_0x414428,'withBackButton':_0x514808});_0x4521be[_0x56d5ce(0x1d9)][_0x56d5ce(0x1db)](_0x5cb207);const _0x25c220=this[_0x56d5ce(0x1fe)](_0x414428);_0x4521be[_0x56d5ce(0x1d9)][_0x56d5ce(0x1db)](_0x25c220);}[_0x4a5f47(0x1cb)]({balloonPanel:_0x354cfc,source:_0x5095a1,withBackButton:_0x4b09fa}){const _0x105989=_0x4a5f47,_0x33686f=new _0x4995c3(this[_0x105989(0x1e3)],{'label':_0x5095a1[_0x105989(0x1f9)],'class':dc});return _0x4b09fa&&_0x33686f[_0x105989(0x1ec)][_0x105989(0x1db)](this[_0x105989(0x1d8)](_0x354cfc),0x0),_0x33686f;}[_0x4a5f47(0x1d8)](_0x6a919a){const _0x5ab5b2=_0x4a5f47,_0x1ecd4d=new _0x553596(this[_0x5ab5b2(0x1e3)]);return _0x1ecd4d[_0x5ab5b2(0x1d5)]({'icon':_0x4e115b,'tooltip':_0x118a73(this[_0x5ab5b2(0x1e3)],_0x5ab5b2(0x1d1)),'tooltipPosition':'n','class':mc}),_0x1ecd4d['on'](_0x5ab5b2(0x200),()=>{const _0x4d4dbc=_0x5ab5b2;_0x6a919a[_0x4d4dbc(0x1fc)](),this[_0x4d4dbc(0x1fd)][_0x4d4dbc(0x1f3)]();}),_0x1ecd4d;}[_0x4a5f47(0x1fe)](_0x232455){const _0x172a02=_0x4a5f47,_0x471896=new _0x456ab5(this[_0x172a02(0x1e3)],{'source':_0x232455,'searchInputVisibleFrom':this[_0x172a02(0x1fd)][_0x172a02(0x1f1)]});return _0x471896['on'](_0x172a02(0x1e1),(_0x57400c,_0x5a0aaf)=>{const _0x4357e=_0x172a02;this[_0x4357e(0x1fd)][_0x4357e(0x1df)](_0x5a0aaf);}),_0x471896['on'](_0x172a02(0x1da),(_0x5e8af8,_0x159a15)=>{const _0x56b002=_0x172a02;this[_0x56b002(0x1fd)][_0x56b002(0x203)](_0x159a15[_0x56b002(0x1d2)],_0x159a15[_0x56b002(0x1ea)]),this[_0x56b002(0x1cf)](_0x232455['id']);}),_0x471896;}[_0x4a5f47(0x1ef)](_0x7404d6){const _0x19c391=_0x4a5f47,_0x53d0fd=_0x7404d6[_0x19c391(0x1d9)][_0x19c391(0x1ce)](0x1);return _0x53d0fd instanceof _0x456ab5?_0x53d0fd:null;}[_0x4a5f47(0x1f8)](_0x2ded60){const _0x3abd0b=_0x4a5f47;_0x54c4b3({'emitter':_0x2ded60,'contextElements':[_0x2ded60[_0x3abd0b(0x1ca)]],'callback':()=>{const _0x64f70b=_0x3abd0b;_0x2ded60[_0x64f70b(0x1fc)](),this[_0x64f70b(0x1fd)][_0x64f70b(0x1f0)]();},'activator':()=>_0x2ded60[_0x3abd0b(0x1f4)]});}}function _0x997c(){const _0x4008af=['change:isLoading','_setupSingleResourceBalloonClickOutsideHandler','label','_sourceResourceBalloons','getLimiterElement','hide','_config','_createBalloonResourcesView','getTargetElement','execute','populateSourceResourceBalloon','updateResourceState','onResourceSelected','754026ccVnZw','element','_createBalloonHeader','1050pqAfYv','clear','get','closeSourceResourceBalloon','once','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','source','962968pQetBl','show','set','delete','showSourceResourcesBalloon','_createBackButton','content','addResourceToContext','add','_bodyCollection','ck-ai-chat-context-controls__source-balloon-panel','setResources','onLoadSourceResources','1333888YFRuqJ','loadSourceResources','isAnyResourceBalloonVisible','_locale','_createSourceResourceBalloonPanel','10284llWWVN','ck-button-icon\x20ck-button-back','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_source','233319LrPcmH','values','resource','1408715CitHDB','children','75921SGLcHc','pin','_getResourcesViewFromBalloon','onBalloonClosed','searchInputVisibleFrom','destroy','onBackToContext','isVisible','extendTemplate','_addSourceResourceContent'];_0x997c=function(){return _0x4008af;};return _0x997c();}