@ckeditor/ckeditor5-ai 47.7.0-alpha.3 → 47.7.0-alpha.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (318) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +5 -5
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +15 -15
  150. package/src/aiactions/aiactions.js +1 -1
  151. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  152. package/src/aiactions/model/aiactionsreply.js +1 -1
  153. package/src/aiassistant/adapters/aiadapter.js +1 -1
  154. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  155. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  156. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  157. package/src/aiassistant/aiassistant.js +1 -1
  158. package/src/aiassistant/aiassistantediting.js +1 -1
  159. package/src/aiassistant/aiassistantui.js +1 -1
  160. package/src/aiassistant/legacyerrors.js +1 -1
  161. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  162. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  163. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  164. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  165. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  166. package/src/aiassistant/ui/form/aiformview.js +1 -1
  167. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  168. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  169. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  170. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  171. package/src/aiassistant/utils/common-translations.js +1 -1
  172. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  173. package/src/aiballoon/aiballoon.js +1 -1
  174. package/src/aiballoon/ui/aiballoonview.js +1 -1
  175. package/src/aichat/aichat.js +1 -1
  176. package/src/aichat/aichatballoon.js +1 -1
  177. package/src/aichat/aichatcontroller.js +1 -1
  178. package/src/aichat/aichatui.js +1 -1
  179. package/src/aichat/model/aichatcontext.js +1 -1
  180. package/src/aichat/model/aichatconversation.js +1 -1
  181. package/src/aichat/model/aichatinteraction.js +1 -1
  182. package/src/aichat/ui/aichatballoonview.js +1 -1
  183. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  184. package/src/aichat/ui/aichatfeedview.js +1 -1
  185. package/src/aichat/ui/aichatheaderview.js +1 -1
  186. package/src/aichat/ui/aichatview.js +1 -1
  187. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  188. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  189. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  190. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  191. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  192. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  193. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  194. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  195. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  196. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  197. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  198. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  199. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  200. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  201. package/src/aichat/ui/feed/aichatfeedcustomelementview.js +1 -1
  202. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  203. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  204. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  205. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  206. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  207. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  208. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  209. package/src/aichat/utils/eventnames.js +1 -1
  210. package/src/aichat/utils/promisequeue.js +1 -1
  211. package/src/aichathistory/aichathistory.js +1 -1
  212. package/src/aichathistory/aichathistorycontroller.js +1 -1
  213. package/src/aichathistory/aichathistoryui.js +1 -1
  214. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  215. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  216. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  217. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  218. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  219. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  220. package/src/aichatshortcuts/aichatshortcuts.js +1 -1
  221. package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
  222. package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
  223. package/src/aicore/aiconnector.js +1 -1
  224. package/src/aicore/aiediting.js +1 -1
  225. package/src/aicore/model/aicapabilities.js +1 -1
  226. package/src/aicore/model/aicontext.js +1 -1
  227. package/src/aicore/model/aiinteraction.js +1 -1
  228. package/src/aicore/model/aimodels.js +1 -1
  229. package/src/aicore/model/aireply.js +1 -1
  230. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  231. package/src/aicore/pipeline/airesponseparser.js +2 -2
  232. package/src/aicore/ui/aidisclaimerview.js +1 -1
  233. package/src/aicore/ui/aiskeleton.js +1 -1
  234. package/src/aicore/ui/aispinner.js +1 -1
  235. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  236. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  237. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  238. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
  239. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
  240. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
  241. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  242. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  243. package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
  244. package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
  245. package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
  246. package/src/aicore/utils/common-translations.js +1 -1
  247. package/src/aicore/utils/createresizebutton.js +1 -1
  248. package/src/aicore/utils/documentposition.js +1 -1
  249. package/src/aicore/utils/documentrange.js +1 -1
  250. package/src/aicore/utils/eventnames.js +1 -1
  251. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  252. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  253. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  254. package/src/aicore/utils/htmlparser.js +1 -1
  255. package/src/aicore/utils/htmlstreamer.js +1 -1
  256. package/src/aicore/utils/scrollmanager.js +1 -1
  257. package/src/aieditorintegration/aieditorintegration.js +1 -1
  258. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  259. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  260. package/src/aiquickactions/aiquickactions.js +1 -1
  261. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  262. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  263. package/src/aiquickactions/aiquickactionsui.js +1 -1
  264. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  265. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  266. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  267. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
  268. package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
  269. package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
  270. package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
  271. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  272. package/src/aireviewcore/aireviewcorecontroller.js +1 -1
  273. package/src/aireviewcore/aireviewcoreediting.js +1 -1
  274. package/src/aireviewcore/aireviewcoreui.js +1 -1
  275. package/src/aireviewcore/model/aireviewcheck.js +1 -1
  276. package/src/aireviewcore/model/aireviewchecklist.js +1 -1
  277. package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
  278. package/src/aireviewcore/model/aireviewcheckresultchange.js +1 -1
  279. package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
  280. package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
  281. package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
  282. package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
  283. package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
  284. package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
  285. package/src/aireviewcore/ui/aireviewcoregeneralerrorview.js +1 -1
  286. package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
  287. package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
  288. package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
  289. package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
  290. package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
  291. package/src/aireviewcore/ui/aireviewcoreview.js +1 -1
  292. package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
  293. package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +1 -1
  294. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  295. package/src/aireviewmode/aireviewmode.js +1 -1
  296. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  297. package/src/aireviewmode/aireviewmodeui.js +1 -1
  298. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  299. package/src/aireviewmode/model/aireviewcheckextra.js +1 -1
  300. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  301. package/src/aireviewmode/model/aireviewextracheckrun.js +1 -1
  302. package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
  303. package/src/aitabs/aitabs.js +1 -1
  304. package/src/aitabs/aitabsmainview.js +1 -1
  305. package/src/aitabs/tabs/aitabsview.js +1 -1
  306. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  307. package/src/aitabs/tabs/tabpanelview.js +1 -1
  308. package/src/aitranslate/aitranslate.js +1 -1
  309. package/src/aitranslate/aitranslatecontroller.js +1 -1
  310. package/src/aitranslate/aitranslateui.js +1 -1
  311. package/src/aitranslate/model/aitranslatecheck.js +1 -1
  312. package/src/aitranslate/model/aitranslatechecklist.js +1 -1
  313. package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
  314. package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
  315. package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
  316. package/src/errors.js +1 -1
  317. package/src/errorsmap.js +1 -1
  318. package/src/index.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _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;}}}
23
+ const _0xd7f0aa=_0x6542;(function(_0x3f4a21,_0x480d93){const _0x36980b=_0x6542,_0x1b4695=_0x3f4a21();while(!![]){try{const _0x21d0e4=-parseInt(_0x36980b(0x194))/0x1*(-parseInt(_0x36980b(0x19e))/0x2)+parseInt(_0x36980b(0x165))/0x3*(-parseInt(_0x36980b(0x1a8))/0x4)+parseInt(_0x36980b(0x1a3))/0x5*(parseInt(_0x36980b(0x193))/0x6)+parseInt(_0x36980b(0x1ac))/0x7+parseInt(_0x36980b(0x19f))/0x8+parseInt(_0x36980b(0x186))/0x9*(-parseInt(_0x36980b(0x188))/0xa)+-parseInt(_0x36980b(0x17c))/0xb;if(_0x21d0e4===_0x480d93)break;else _0x1b4695['push'](_0x1b4695['shift']());}catch(_0x59dbd3){_0x1b4695['push'](_0x1b4695['shift']());}}}(_0x3c58,0x7ead8));function _0x6542(_0xc843c8,_0x4e145e){const _0x3c58e6=_0x3c58();return _0x6542=function(_0x65423f,_0x1794c7){_0x65423f=_0x65423f-0x163;let _0x57c947=_0x3c58e6[_0x65423f];return _0x57c947;},_0x6542(_0xc843c8,_0x4e145e);}import{FocusTracker as _0x3e7dbc,KeystrokeHandler as _0x2b547a}from'ckeditor5/src/utils.js';function _0x3c58(){const _0x1281bf=['_focusables','20504814wsjUyG','clearError','AI_CHAT_CONTEXT_URL_LABEL','form','_updateConfirmButtonState','setTemplate','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','refreshBalloon','AI_CHAT_CONTEXT_URL_ADD_URL','AI_CHAT_CONTEXT_URL_INVALID_ERROR','9LnyDsC','length','4029460wTFzEh','withBackButton','ck-labeled-field-view_empty','tab','input','submitUrl','_createUrlInputField','destroy','submit','clear','add','5581698iZbOzX','5201xpqxug','urlInputField','ck-ai-chat-context-controls__url-form','getValue','\x20ck-hidden','_handleSubmit','render','AI_CHAT_CONTEXT_URL_PLACEHOLDER','_setupTemplate','_createBackButton','322RSeuDb','5124088DNlAAJ','_setupKeystrokes','errorText','_setupEventHandlers','5upALlz','element','fire','isEnabled','focus','40PDzVLe','shift+tab','locale','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','3193029UAsvZy','createCollection','forEach','fieldView','execute','children','23523clWZDW','focusCycler','confirmButton','esc','ck-ai-chat-context-controls__url-input-section','setError','change:withBackButton','ck-button-icon\x20ck-button-back','div','stop','value','trim','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','ck-button-icon','listenTo','focusTracker','_isValidUrl','_createConfirmButton','keystrokes','cancel','set','backButton'];_0x3c58=function(){return _0x1281bf;};return _0x3c58();}import{ButtonView as _0x5d51ef,FocusCycler as _0x4f5fa0,LabeledFieldView as _0xa10207,View as _0x4bc70c,FormHeaderView as _0x339567,createLabeledInputText as _0x1f2c08,submitHandler as _0x28221b}from'ckeditor5/src/ui.js';import{IconCheck as _0x225947,IconPreviousArrow as _0x29f2c1}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x311306}from'../../../aicore/utils/common-translations.js';const oh=_0xd7f0aa(0x196),ch=_0xd7f0aa(0x169);export class AIChatContextPanelUrlInputView extends _0x4bc70c{[_0xd7f0aa(0x174)];[_0xd7f0aa(0x177)];[_0xd7f0aa(0x17b)];[_0xd7f0aa(0x166)];[_0xd7f0aa(0x195)];[_0xd7f0aa(0x17a)];[_0xd7f0aa(0x167)];constructor(_0x309075){const _0x3f6776=_0xd7f0aa;super(_0x309075),this[_0x3f6776(0x174)]=new _0x3e7dbc(),this[_0x3f6776(0x177)]=new _0x2b547a(),this[_0x3f6776(0x17a)]=this[_0x3f6776(0x19d)](),this[_0x3f6776(0x195)]=this[_0x3f6776(0x18e)](),this[_0x3f6776(0x167)]=this[_0x3f6776(0x176)](),this[_0x3f6776(0x17b)]=this[_0x3f6776(0x1ad)]([this[_0x3f6776(0x17a)],this[_0x3f6776(0x195)],this[_0x3f6776(0x167)]]),this[_0x3f6776(0x166)]=new _0x4f5fa0({'focusables':this[_0x3f6776(0x17b)],'focusTracker':this[_0x3f6776(0x174)],'keystrokeHandler':this[_0x3f6776(0x177)],'actions':{'focusPrevious':_0x3f6776(0x1a9),'focusNext':_0x3f6776(0x18b)}}),this[_0x3f6776(0x179)](_0x3f6776(0x189),!0x0),this[_0x3f6776(0x19c)](),this[_0x3f6776(0x1a2)](),this[_0x3f6776(0x1a0)]();}[_0xd7f0aa(0x19a)](){const _0x3adf19=_0xd7f0aa;super[_0x3adf19(0x19a)](),this[_0x3adf19(0x17b)][_0x3adf19(0x1ae)](_0x7c8ab3=>{const _0x3d6b02=_0x3adf19;this[_0x3d6b02(0x174)][_0x3d6b02(0x192)](_0x7c8ab3[_0x3d6b02(0x1a4)]),this[_0x3d6b02(0x177)][_0x3d6b02(0x173)](_0x7c8ab3[_0x3d6b02(0x1a4)]);}),_0x28221b({'view':this}),this[_0x3adf19(0x1a7)]();}[_0xd7f0aa(0x18f)](){const _0x435970=_0xd7f0aa;super[_0x435970(0x18f)](),this[_0x435970(0x174)][_0x435970(0x18f)](),this[_0x435970(0x177)][_0x435970(0x18f)]();}[_0xd7f0aa(0x1a7)](){const _0x36721b=_0xd7f0aa;this[_0x36721b(0x195)][_0x36721b(0x1a7)]();}[_0xd7f0aa(0x197)](){const _0x5ed6a7=_0xd7f0aa;return this[_0x5ed6a7(0x195)][_0x5ed6a7(0x1af)][_0x5ed6a7(0x1a4)]?.[_0x5ed6a7(0x16f)]?.[_0x5ed6a7(0x170)]()||'';}[_0xd7f0aa(0x191)](){const _0x5bd425=_0xd7f0aa;this[_0x5bd425(0x195)][_0x5bd425(0x1af)][_0x5bd425(0x1a4)][_0x5bd425(0x16f)]='',this[_0x5bd425(0x195)][_0x5bd425(0x1a1)]=null,this[_0x5bd425(0x167)][_0x5bd425(0x1a6)]=!0x1;}[_0xd7f0aa(0x16a)](_0x424215){const _0x31fe23=_0xd7f0aa;this[_0x31fe23(0x195)][_0x31fe23(0x1a1)]=_0x424215,this[_0x31fe23(0x180)](),this[_0x31fe23(0x1a5)](_0x31fe23(0x183));}[_0xd7f0aa(0x17d)](){const _0x55427e=_0xd7f0aa;this[_0x55427e(0x195)][_0x55427e(0x1a1)]=null,this[_0x55427e(0x180)]();}[_0xd7f0aa(0x19d)](){const _0x1a673c=_0xd7f0aa,_0x326101=new _0x5d51ef(this[_0x1a673c(0x1aa)]);return _0x326101[_0x1a673c(0x179)]({'icon':_0x29f2c1,'tooltip':_0x311306(this[_0x1a673c(0x1aa)],_0x1a673c(0x171)),'tooltipPosition':'n','class':[_0x1a673c(0x16c)]}),this['on'](_0x1a673c(0x16b),(_0x465b55,_0x2725fb,_0x19c8a4)=>{const _0x5565d0=_0x1a673c;_0x326101[_0x5565d0(0x179)]({'class':[_0x5565d0(0x16c)+(_0x19c8a4?'':_0x5565d0(0x198))]});}),_0x326101;}[_0xd7f0aa(0x18e)](){const _0x206bcf=_0xd7f0aa,_0x287b4e=new _0xa10207(this[_0x206bcf(0x1aa)],_0x1f2c08);return _0x287b4e[_0x206bcf(0x179)]({'label':_0x311306(this[_0x206bcf(0x1aa)],_0x206bcf(0x17e)),'class':_0x206bcf(0x18a)}),_0x287b4e[_0x206bcf(0x1af)][_0x206bcf(0x179)]({'placeholder':_0x311306(this[_0x206bcf(0x1aa)],_0x206bcf(0x19b))}),_0x287b4e;}[_0xd7f0aa(0x176)](){const _0x195ae1=_0xd7f0aa,_0x5b3680=new _0x5d51ef(this[_0x195ae1(0x1aa)]);return _0x5b3680[_0x195ae1(0x179)]({'icon':_0x225947,'tooltip':_0x311306(this[_0x195ae1(0x1aa)],_0x195ae1(0x184)),'tooltipPosition':'n','class':_0x195ae1(0x172),'type':_0x195ae1(0x190),'isEnabled':!0x1}),_0x5b3680;}[_0xd7f0aa(0x19c)](){const _0x1f7012=_0xd7f0aa,_0x302559=new _0x339567(this[_0x1f7012(0x1aa)],{'label':_0x311306(this[_0x1f7012(0x1aa)],_0x1f7012(0x184)),'class':_0x1f7012(0x1ab)});_0x302559[_0x1f7012(0x164)][_0x1f7012(0x192)](this[_0x1f7012(0x17a)],0x0),this[_0x1f7012(0x181)]({'tag':_0x1f7012(0x17f),'attributes':{'class':oh,'tabindex':'-1'},'children':[_0x302559,{'tag':_0x1f7012(0x16d),'attributes':{'class':ch},'children':[this[_0x1f7012(0x195)],this[_0x1f7012(0x167)]]}]});}[_0xd7f0aa(0x1a2)](){const _0x457436=_0xd7f0aa;this[_0x457436(0x17a)]['on'](_0x457436(0x163),()=>{const _0x2ba986=_0x457436;this[_0x2ba986(0x191)](),this[_0x2ba986(0x1a5)](_0x2ba986(0x178));}),this[_0x457436(0x195)][_0x457436(0x1af)]['on'](_0x457436(0x18c),()=>{const _0x292267=_0x457436;this[_0x292267(0x17d)](),this[_0x292267(0x180)](),this[_0x292267(0x1a5)](_0x292267(0x183));}),this['on'](_0x457436(0x190),_0x530e47=>{const _0x5bbc81=_0x457436;_0x530e47[_0x5bbc81(0x16e)](),this[_0x5bbc81(0x199)]();});}[_0xd7f0aa(0x1a0)](){const _0x3971a7=_0xd7f0aa;this[_0x3971a7(0x177)][_0x3971a7(0x179)](_0x3971a7(0x168),(_0x54b7ae,_0x47649f)=>{const _0x1e9550=_0x3971a7;this[_0x1e9550(0x191)](),this[_0x1e9550(0x1a5)](_0x1e9550(0x178)),_0x47649f();});}[_0xd7f0aa(0x199)](){const _0x40b7ab=_0xd7f0aa,_0x1f01da=this[_0x40b7ab(0x197)]()[_0x40b7ab(0x170)]();_0x1f01da?this[_0x40b7ab(0x175)](_0x1f01da)?(this[_0x40b7ab(0x17d)](),this[_0x40b7ab(0x1a5)](_0x40b7ab(0x18d),_0x1f01da)):this[_0x40b7ab(0x16a)](_0x311306(this[_0x40b7ab(0x1aa)],_0x40b7ab(0x185))):this[_0x40b7ab(0x16a)](_0x311306(this[_0x40b7ab(0x1aa)],_0x40b7ab(0x182)));}[_0xd7f0aa(0x180)](){const _0x231cab=_0xd7f0aa,_0x4030ff=this[_0x231cab(0x197)]()[_0x231cab(0x170)](),_0x3e71a6=!!this[_0x231cab(0x195)][_0x231cab(0x1a1)];this[_0x231cab(0x167)][_0x231cab(0x1a6)]=_0x4030ff[_0x231cab(0x187)]>0x0&&!_0x3e71a6;}[_0xd7f0aa(0x175)](_0x4144eb){try{return!!new URL(_0x4144eb);}catch{return!0x1;}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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;}}
23
+ const _0xc9e2af=_0x12e9;(function(_0x5e94ce,_0x2a2720){const _0xbdc567=_0x12e9,_0x30fa27=_0x5e94ce();while(!![]){try{const _0x457612=-parseInt(_0xbdc567(0x176))/0x1+-parseInt(_0xbdc567(0x106))/0x2+parseInt(_0xbdc567(0x101))/0x3*(parseInt(_0xbdc567(0x142))/0x4)+-parseInt(_0xbdc567(0x167))/0x5*(parseInt(_0xbdc567(0x174))/0x6)+parseInt(_0xbdc567(0x150))/0x7*(-parseInt(_0xbdc567(0x11a))/0x8)+parseInt(_0xbdc567(0x138))/0x9*(parseInt(_0xbdc567(0x132))/0xa)+parseInt(_0xbdc567(0x12f))/0xb;if(_0x457612===_0x2a2720)break;else _0x30fa27['push'](_0x30fa27['shift']());}catch(_0x1c72a2){_0x30fa27['push'](_0x30fa27['shift']());}}}(_0x2698,0x28743));function _0x2698(){const _0x157dec=['pin','cancel','isLoading','locale','showAddContextBalloonPanel','icon','files','819enQupu','_createAddContextButtonView','isOn','_createContextButton','find','set','type','_setupTemplate','executeCustomItemCallback','setContextItemLoading','get','_addContextToCollection','_addContextBalloonConfig','submitUrl','_setupUrlBalloonClickOutsideHandler','clearConversationContextItems','_showSourceResourcesBalloon','setAddContextOptions','removeContextItemChip','AI_CHAT_CONTEXT_FILE_LABEL','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','loadSourceResources','northArrowSouth','5NwPQzt','ck-ai-chat-context-controls__pending-contexts','ck-ai-chat-controls_context_show-more-button','label','_setupAddContextBalloonClickOutsideHandler','_bindEventHandlers','customItem','menuitem','hide','defaultPositions','ck-ai-chat-context-controls__balloon-button','_conversationContextsChips','enabled','1147698uYunHV','arrowView','162400JmybWB','createCollection','ck-ai-chat-context-chips-wrapper-balloon','fire','focus','_urlInputView','addContextItem','_urlBalloonPanelView','closest','conversation','hideUrlBalloonPanel','__arrow','customItems','bodyCollection','_setupAllBalloonClickOutsideHandlers','setConversationContext','ck-ai-chat-context-controls__add-context-balloon-panel','body','ck-ai-chat-controls-button','source','_createBaseBalloonPanel','addDocumentToContext','execute','element','_createResourcesBalloonView','balloonView','showUrlBalloonPanel','tooltip','_createAddContextBalloonPanelView','addResourceToContext','_addContextBalloonPanelView','current','_createArrowView','ck-ai-chat-context-controls__balloon-button-source','_setBalloonPanelContent','127557PIicyr','urls','done','populateSourceResourceBalloon','sources','290828lGPVHl','addUrlToContext','_overflowManager','isVisible','isAnyResourceBalloonVisible','closeSourceResourceBalloon','_removeContextFromCollection','refreshBalloon','bind','document','isHidden','extendTemplate','overflowChips','addFileToContext','_handleAddContextButtonClick','_createBalloonButton','northArrowSouthWest','ck-ai-chat-context-controls','showSourceResourcesBalloon','isEnabled','8384AxiAiA','ck-ai-chat-context-controls__url-balloon-panel','northArrowSouthEast','_setAddContextButtonEnabled','clear','setTemplate','length','hideAddContextBalloonPanel','withBackButton','ck-ai-chat-context-controls__show-more-balloon-panel','_currentContextsChips','addContextButtonView','ck-reset_all-excluded','children','destroy','_handleUrlSubmit','_getLimiterElement','remove','buttonView','clearCurrentContextItems','AI_CHAT_CONTEXT_ADD_CONTEXT','5168383jyxoKf','searchInputVisibleFrom','show','120zpKkae','_addUrlContent','reorganizeChips','southArrowNorth','div','add','78723frSxzz','isReadOnly','ck-ai-chat','_createUrlBalloonPanelView','content','southArrowNorthWest','_hasExactlyOneSource','southArrowNorthEast','AI_CHAT_CONTEXT_URL_LABEL','removeContextItem','20uyWdfq','_toggleAddContextBalloon','updateResourceState','ck-ai-chat-context-controls__add-context-button','_resourcesBalloonView','render','setContainerElement'];_0x2698=function(){return _0x157dec;};return _0x2698();}import{BalloonPanelView as _0x383475,ButtonView as _0x3b0686,clickOutsideHandler as _0x59f10d,FileDialogButtonView as _0x2f5c69,IconView as _0xee0d64,View as _0x2ae63e}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x41d776,IconDocument as _0x598448,IconDocumentOutline as _0x2f3fbf,IconDropdownArrow as _0xbe5854,IconLink as _0x2a2771,IconPaperClip as _0x3a64be}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0xf97f7a}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x52daff}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x242ca9}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x20b15e}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x2c663f}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0xc9e2af(0xf3),_0xc9e2af(0x113),_0xc9e2af(0x107),_0xc9e2af(0xfb),_0xc9e2af(0x141),_0xc9e2af(0x165),_0xc9e2af(0x158)];const Uo=_0xc9e2af(0x117),Lo=_0xc9e2af(0x168),No=_0xc9e2af(0x186),Mo=_0xc9e2af(0x145),Ho=_0xc9e2af(0x11b),jo=_0xc9e2af(0x171),Fo=_0xc9e2af(0xff),Xo=_0xc9e2af(0xf0),Do=_0xc9e2af(0x178),$o=_0xc9e2af(0x169),Wo=_0xc9e2af(0x123),qo=_0xc9e2af(0x13a),zo=[_0x383475[_0xc9e2af(0x170)][_0xc9e2af(0x116)],_0x383475[_0xc9e2af(0x170)][_0xc9e2af(0x166)],_0x383475[_0xc9e2af(0x170)][_0xc9e2af(0x11c)],_0x383475[_0xc9e2af(0x170)][_0xc9e2af(0x13d)],_0x383475[_0xc9e2af(0x170)][_0xc9e2af(0x135)],_0x383475[_0xc9e2af(0x170)][_0xc9e2af(0x13f)]];export class AIChatContextPanelView extends _0x2ae63e{[_0xc9e2af(0x125)];[_0xc9e2af(0x124)]=this[_0xc9e2af(0x177)]();[_0xc9e2af(0x172)]=this[_0xc9e2af(0x177)]();[_0xc9e2af(0x108)];[_0xc9e2af(0xfc)];[_0xc9e2af(0x17d)];[_0xc9e2af(0x17b)];[_0xc9e2af(0x146)];[_0xc9e2af(0x15c)];[_0xc9e2af(0x13e)]=!0x1;[_0xc9e2af(0x183)];constructor(_0x528af5,_0x3929fb){const _0x52e931=_0xc9e2af;super(_0x528af5),this[_0x52e931(0x183)]=_0x3929fb[_0x52e931(0x183)],this[_0x52e931(0x124)]=this[_0x52e931(0x177)](),this[_0x52e931(0x172)]=this[_0x52e931(0x177)](),this[_0x52e931(0x125)]=this[_0x52e931(0x151)](_0x528af5),this[_0x52e931(0xfc)]=this[_0x52e931(0xfa)](_0x528af5),this[_0x52e931(0x17d)]=this[_0x52e931(0x13b)](_0x528af5),this[_0x52e931(0x146)]=this[_0x52e931(0xf6)](_0x528af5,_0x3929fb);const _0x1e7f5d={'cssClasses':{'showMoreButton':$o,'showMoreBalloon':Wo,'overflowContainer':Do,'controlsButton':Xo}};this[_0x52e931(0x108)]=new _0x242ca9(_0x528af5,this[_0x52e931(0x124)],_0x1e7f5d,this[_0x52e931(0x183)],this),this[_0x52e931(0x15c)]={'buttonView':this[_0x52e931(0x125)],'balloonView':this[_0x52e931(0xfc)],'hideMethod':this[_0x52e931(0x121)][_0x52e931(0x10e)](this),'showMethod':this[_0x52e931(0x14d)][_0x52e931(0x10e)](this)},this[_0x52e931(0x157)](),this[_0x52e931(0x16c)]();}[_0xc9e2af(0x147)](){const _0x1e47c2=_0xc9e2af;super[_0x1e47c2(0x147)](),this[_0x1e47c2(0x184)](),this[_0x1e47c2(0x108)][_0x1e47c2(0x148)](this[_0x1e47c2(0xf5)]),this[_0x1e47c2(0x108)][_0x1e47c2(0x134)]();}[_0xc9e2af(0x128)](){const _0x1ac5f5=_0xc9e2af;super[_0x1ac5f5(0x128)](),this[_0x1ac5f5(0x108)][_0x1ac5f5(0x128)](),this[_0x1ac5f5(0x146)][_0x1ac5f5(0x128)]();}[_0xc9e2af(0x17c)](_0xef0262,_0x29f318){const _0x1d26f1=_0xc9e2af,_0x347870=this[_0x1d26f1(0x153)](_0xef0262,_0x1d26f1(0xfd),!0x0,_0x29f318);this[_0x1d26f1(0x15b)](_0x347870,this[_0x1d26f1(0x124)]),this[_0x1d26f1(0x108)][_0x1d26f1(0x134)]();}[_0xc9e2af(0x141)](_0x281e10){const _0x3f8497=_0xc9e2af;this[_0x3f8497(0x10c)](_0x281e10,this[_0x3f8497(0x124)]),this[_0x3f8497(0x10c)](_0x281e10,this[_0x3f8497(0x108)][_0x3f8497(0x112)]),this[_0x3f8497(0x108)][_0x3f8497(0x134)]();}[_0xc9e2af(0x159)](_0x5bb867,_0x2c9b6d){const _0x238305=_0xc9e2af;let _0x51fa46=this[_0x238305(0x124)][_0x238305(0x154)](_0x20e70d=>_0x20e70d['id']===_0x5bb867);_0x51fa46||(_0x51fa46=this[_0x238305(0x108)][_0x238305(0x112)][_0x238305(0x154)](_0x53b507=>_0x53b507['id']===_0x5bb867)),_0x51fa46&&(_0x51fa46[_0x238305(0x14b)]=_0x2c9b6d);}[_0xc9e2af(0x185)](_0x18e2b3){const _0xb73e27=_0xc9e2af;this[_0xb73e27(0x172)][_0xb73e27(0x11e)]();for(const _0x2e7edd of _0x18e2b3){const _0x51ceb6=this[_0xb73e27(0x153)](_0x2e7edd,_0xb73e27(0x17f),!0x1,!0x1);this[_0xb73e27(0x15b)](_0x51ceb6,this[_0xb73e27(0x172)]);}}[_0xc9e2af(0x12d)](){const _0x142640=_0xc9e2af;this[_0x142640(0x124)][_0x142640(0x11e)](),this[_0x142640(0x108)][_0x142640(0x11e)]();}[_0xc9e2af(0x15f)](){const _0x4ce895=_0xc9e2af;this[_0x4ce895(0x172)][_0x4ce895(0x11e)]();}[_0xc9e2af(0x144)](_0x45780d,_0x2eac98,_0x2c685b){const _0x3057fd=_0xc9e2af;this[_0x3057fd(0x146)][_0x3057fd(0x144)](_0x45780d,_0x2eac98,_0x2c685b);}[_0xc9e2af(0x121)](){const _0x4d6cfb=_0xc9e2af;this[_0x4d6cfb(0x143)](!0x1);}[_0xc9e2af(0x14d)](){const _0x3c6600=_0xc9e2af;this[_0x3c6600(0x143)](!0x0);}[_0xc9e2af(0x180)](){const _0x4005b6=_0xc9e2af;this[_0x4005b6(0x17d)][_0x4005b6(0x16f)](),this[_0x4005b6(0x125)][_0x4005b6(0x152)]=!0x1,this[_0x4005b6(0x17b)]&&this[_0x4005b6(0x17b)][_0x4005b6(0x11e)]();}[_0xc9e2af(0xf8)](){const _0x143f90=_0xc9e2af;this[_0x143f90(0x17d)][_0x143f90(0x131)](),this[_0x143f90(0x125)][_0x143f90(0x152)]=!0x0;}[_0xc9e2af(0x160)]({source:_0x1ba09d,withBackButton:_0x19c20f}){const _0x4ce893=_0xc9e2af;this[_0x4ce893(0x146)][_0x4ce893(0x118)]({'source':_0x1ba09d,'withBackButton':_0x19c20f}),this[_0x4ce893(0x125)][_0x4ce893(0x152)]=!0x0;}[_0xc9e2af(0x104)](_0xd7150a,_0x37f270,_0x15baff,_0x2cdfa9){const _0x1a3045=_0xc9e2af;this[_0x1a3045(0x146)][_0x1a3045(0x104)](_0xd7150a,_0x15baff,_0x2cdfa9);}[_0xc9e2af(0x10b)](_0x42e061){const _0x3ea1=_0xc9e2af;this[_0x3ea1(0x146)][_0x3ea1(0x10b)](_0x42e061),this[_0x3ea1(0x125)][_0x3ea1(0x152)]=!0x1;}[_0xc9e2af(0x161)](_0x46384b){const _0x390344=_0xc9e2af;this[_0x390344(0x100)](this[_0x390344(0xfc)],this[_0x390344(0x14c)],_0x46384b),this[_0x390344(0x11d)](_0x46384b);}[_0xc9e2af(0x11d)](_0x3f5a1b){const _0xd5c96e=_0xc9e2af,_0x53d488=!_0x3f5a1b[_0xd5c96e(0x10f)][_0xd5c96e(0x110)]&&_0x3f5a1b[_0xd5c96e(0x10f)][_0xd5c96e(0x173)],_0x5726f2=_0x3f5a1b[_0xd5c96e(0x102)][_0xd5c96e(0x173)],_0x53063b=_0x3f5a1b[_0xd5c96e(0x14f)][_0xd5c96e(0x173)],_0x252a34=_0x3f5a1b[_0xd5c96e(0x105)][_0xd5c96e(0x120)]>0x0,_0x5cc85b=_0x3f5a1b[_0xd5c96e(0x182)]&&_0x3f5a1b[_0xd5c96e(0x182)][_0xd5c96e(0x120)]>0x0;this[_0xd5c96e(0x125)][_0xd5c96e(0x119)]=_0x53d488||_0x5726f2||_0x53063b||_0x252a34||_0x5cc85b;}[_0xc9e2af(0x157)](){const _0x5cc917=_0xc9e2af;this[_0x5cc917(0x11f)]({'tag':_0x5cc917(0x136),'attributes':{'class':[Uo,_0x5cc917(0x126)]},'children':[{'tag':_0x5cc917(0x136),'attributes':{'class':Lo},'children':this[_0x5cc917(0x124)]}]});}[_0xc9e2af(0x16c)](){const _0xde9563=_0xc9e2af;this[_0xde9563(0x125)]['on'](_0xde9563(0xf4),()=>{const _0x3c7d69=_0xde9563;this[_0x3c7d69(0x114)]();});}[_0xc9e2af(0x151)](_0x4cf82e){const _0x2bcd32=_0xc9e2af,_0x57a567=new _0x3b0686(_0x4cf82e);return _0x57a567[_0x2bcd32(0x155)]({'label':_0x20b15e(_0x4cf82e,_0x2bcd32(0x12e)),'class':Xo+'\x20'+Mo,'icon':_0x3a64be,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x57a567;}[_0xc9e2af(0xfa)](_0x5cb4b9){const _0x4a5f09=_0xc9e2af;return this[_0x4a5f09(0xf2)](_0x5cb4b9,No);}[_0xc9e2af(0x13b)](_0x231a7b){const _0x417976=_0xc9e2af,_0x441f59=this[_0x417976(0xf2)](_0x231a7b,Ho);return this[_0x417976(0x133)](_0x441f59,_0x231a7b),_0x441f59;}[_0xc9e2af(0xf6)](_0x337a2f,_0x5f216c){const _0x3d2249=_0xc9e2af,_0x350704={'searchInputVisibleFrom':_0x5f216c[_0x3d2249(0x130)],'onBackToContext':()=>{const _0x4d41f3=_0x3d2249;this[_0x4d41f3(0x14d)](),this[_0x4d41f3(0xfc)][_0x4d41f3(0x149)]({'target':this[_0x4d41f3(0x125)][_0x4d41f3(0xf5)],'limiter':this[_0x4d41f3(0x12a)](),'positions':zo});},'onResourceSelected':(_0x17332b,_0x28a44c)=>{const _0x3059a6=_0x3d2249;this[_0x3059a6(0x179)](_0x3059a6(0xfb),{'source':_0x17332b,'resource':_0x28a44c});},'onLoadSourceResources':_0x52ac8b=>{const _0x514e98=_0x3d2249;this[_0x514e98(0x179)](_0x514e98(0x165),_0x52ac8b);},'onBalloonClosed':()=>{const _0x26cbb2=_0x3d2249;this[_0x26cbb2(0x125)][_0x26cbb2(0x152)]=!0x1;},'getLimiterElement':()=>this[_0x3d2249(0x12a)](),'getTargetElement':()=>this[_0x3d2249(0x125)][_0x3d2249(0xf5)]};return new _0x2c663f(_0x337a2f,_0x5f216c[_0x3d2249(0x183)],_0x350704);}[_0xc9e2af(0x12a)](){const _0x1e4ab5=_0xc9e2af;return this[_0x1e4ab5(0xf5)]?.[_0x1e4ab5(0x17e)]('.'+qo)||document[_0x1e4ab5(0x187)];}[_0xc9e2af(0xf2)](_0x53ffc1,_0x1db371){const _0x3170fd=_0xc9e2af,_0x2a4c36=new _0x383475(_0x53ffc1);return _0x2a4c36[_0x3170fd(0x111)]({'attributes':{'class':_0x1db371}}),this[_0x3170fd(0x183)][_0x3170fd(0x137)](_0x2a4c36),_0x2a4c36;}[_0xc9e2af(0x100)](_0x3289b3,_0x115486,_0xaf6217){const _0x535d73=_0xc9e2af;if(_0x3289b3[_0x535d73(0x13c)][_0x535d73(0x11e)](),!_0xaf6217[_0x535d73(0x10f)][_0x535d73(0x110)]&&_0xaf6217[_0x535d73(0x10f)][_0x535d73(0x173)]){const _0x5d4fe6=this[_0x535d73(0x115)](_0x115486,{'label':_0x20b15e(_0x115486,_0x535d73(0x164)),'icon':_0x598448});_0x5d4fe6['on'](_0x535d73(0xf4),()=>{const _0x92d74e=_0x535d73;this[_0x92d74e(0x179)](_0x92d74e(0xf3)),this[_0x92d74e(0x121)]();}),_0x3289b3[_0x535d73(0x13c)][_0x535d73(0x137)](_0x5d4fe6);}if(_0xaf6217[_0x535d73(0x102)][_0x535d73(0x173)]){const _0x3e833c=this[_0x535d73(0x115)](_0x115486,{'label':_0x20b15e(_0x115486,_0x535d73(0x140)),'icon':_0x2a2771});_0x3e833c['on'](_0x535d73(0xf4),()=>{const _0x110e40=_0x535d73;this[_0x110e40(0x121)](),this[_0x110e40(0xf8)](),this[_0x110e40(0x17d)][_0x110e40(0x149)]({'target':this[_0x110e40(0x125)][_0x110e40(0xf5)],'limiter':this[_0x110e40(0x12a)](),'positions':zo}),this[_0x110e40(0x17b)][_0x110e40(0x17a)]();}),_0x3289b3[_0x535d73(0x13c)][_0x535d73(0x137)](_0x3e833c);}if(_0xaf6217[_0x535d73(0x14f)][_0x535d73(0x173)]){const _0xf7124b=new _0x2f5c69(_0x115486);_0xf7124b[_0x535d73(0x155)]({'label':_0x20b15e(_0x115486,_0x535d73(0x163)),'icon':_0x41d776,'withText':!0x0,'tooltip':!0x0,'class':jo,'allowMultipleFiles':!0x0}),_0xf7124b['on'](_0x535d73(0xf4),()=>{const _0x29b8e3=_0x535d73;this[_0x29b8e3(0x121)]();}),_0xf7124b['on'](_0x535d73(0x103),(_0x3d7f63,_0x35d4a6)=>{const _0x1b917c=_0x535d73;this[_0x1b917c(0x179)](_0x1b917c(0x113),_0x35d4a6);}),_0xf7124b[_0x535d73(0xf9)]=!0x0,_0x3289b3[_0x535d73(0x13c)][_0x535d73(0x137)](_0xf7124b);}for(const _0x20cb51 of _0xaf6217[_0x535d73(0x105)]){const _0x3742e8=this[_0x535d73(0x115)](_0x115486,{'label':_0x20cb51[_0x535d73(0x16a)],'icon':_0x20cb51[_0x535d73(0x14e)]||_0x2f3fbf,'type':_0x535d73(0xf1)});_0x3289b3[_0x535d73(0x13c)][_0x535d73(0x137)](_0x3742e8),_0x3742e8['on'](_0x535d73(0xf4),()=>{const _0x665771=_0x535d73;this[_0x665771(0x121)](),this[_0x665771(0x160)]({'source':_0x20cb51,'withBackButton':!this[_0x665771(0x13e)]});});}for(const _0x19abf7 of _0xaf6217[_0x535d73(0x182)]||[]){const _0x39a680=this[_0x535d73(0x115)](_0x115486,{'label':_0x19abf7[_0x535d73(0x16a)],'icon':_0x19abf7[_0x535d73(0x14e)]||_0x2f3fbf,'type':_0x535d73(0x16d)});_0x3289b3[_0x535d73(0x13c)][_0x535d73(0x137)](_0x39a680),_0x39a680['on'](_0x535d73(0xf4),()=>{const _0x1f7f39=_0x535d73;this[_0x1f7f39(0x121)](),this[_0x1f7f39(0x179)](_0x1f7f39(0x158),_0x19abf7);});}this[_0x535d73(0x13e)]=0x1===_0x3289b3[_0x535d73(0x13c)][_0x535d73(0x120)],this[_0x535d73(0x17b)][_0x535d73(0x122)]=!this[_0x535d73(0x13e)];}[_0xc9e2af(0x133)](_0x178bf9,_0x2044e1){const _0x527488=_0xc9e2af;this[_0x527488(0x17b)]=new _0x52daff(_0x2044e1),this[_0x527488(0x17b)]['on'](_0x527488(0x15d),(_0x51b87a,_0x105fd8)=>{const _0x5b859e=_0x527488;this[_0x5b859e(0x129)](_0x105fd8);}),this[_0x527488(0x17b)]['on'](_0x527488(0x14a),()=>{const _0x5b4458=_0x527488;this[_0x5b4458(0x180)](),this[_0x5b4458(0x13e)]||(this[_0x5b4458(0x14d)](),this[_0x5b4458(0xfc)][_0x5b4458(0x149)]({'target':this[_0x5b4458(0x125)][_0x5b4458(0xf5)],'limiter':this[_0x5b4458(0x12a)](),'positions':zo}));}),this[_0x527488(0x17b)]['on'](_0x527488(0x10d),()=>{const _0x5c46aa=_0x527488;this[_0x5c46aa(0x17d)][_0x5c46aa(0x109)]&&this[_0x5c46aa(0x17d)][_0x5c46aa(0x149)]({'target':this[_0x5c46aa(0x125)][_0x5c46aa(0xf5)],'limiter':this[_0x5c46aa(0x12a)](),'positions':zo});}),_0x178bf9[_0x527488(0x13c)][_0x527488(0x137)](this[_0x527488(0x17b)]);}[_0xc9e2af(0x115)](_0x87a001,_0x2e345f){const _0x3fd1cf=_0xc9e2af,_0x134ed5=_0x3fd1cf(0xf1)===_0x2e345f[_0x3fd1cf(0x156)]?new SourcesBalloonButtonView(_0x87a001):new _0x3b0686(_0x87a001);return _0x134ed5[_0x3fd1cf(0x155)]({'label':_0x2e345f[_0x3fd1cf(0x16a)],'icon':_0x2e345f[_0x3fd1cf(0x14e)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':jo}),_0x134ed5;}[_0xc9e2af(0x184)](){const _0xa226a=_0xc9e2af;this[_0xa226a(0x16b)](),this[_0xa226a(0x15e)]();}[_0xc9e2af(0x15e)](){const _0x51031a=_0xc9e2af;_0x59f10d({'emitter':this[_0x51031a(0x17d)],'contextElements':[this[_0x51031a(0x17d)][_0x51031a(0xf5)]],'callback':()=>{const _0x1f4f87=_0x51031a;this[_0x1f4f87(0x180)]();},'activator':()=>this[_0x51031a(0x17d)][_0x51031a(0x109)]});}[_0xc9e2af(0x143)](_0x4d4f02){const _0x1d5de2=_0xc9e2af,_0x4eeebd=this[_0x1d5de2(0x15c)];_0x4eeebd[_0x1d5de2(0x12c)][_0x1d5de2(0x152)]=_0x4d4f02,_0x4d4f02?_0x4eeebd[_0x1d5de2(0xf7)][_0x1d5de2(0x131)]():_0x4eeebd[_0x1d5de2(0xf7)][_0x1d5de2(0x16f)]();}[_0xc9e2af(0x16b)](){const _0xade1bd=_0xc9e2af,{balloonView:_0x470d45,buttonView:_0x354945,hideMethod:_0x35f214}=this[_0xade1bd(0x15c)];_0x59f10d({'emitter':_0x470d45,'contextElements':[_0x470d45[_0xade1bd(0xf5)],_0x354945[_0xade1bd(0xf5)]],'callback':()=>{_0x35f214();},'activator':()=>_0x354945[_0xade1bd(0x152)]&&!this[_0xade1bd(0x17d)][_0xade1bd(0x109)]&&!this[_0xade1bd(0x146)][_0xade1bd(0x10a)]()});}[_0xc9e2af(0x153)](_0x42746f,_0x3f5deb,_0xbf9bde=!0x1,_0x2df2fd=!0x1){const _0x7697e3=_0xc9e2af,_0x565a19=_0x7697e3(0x17f)===_0x3f5deb||!0x0===_0x42746f[_0x7697e3(0x139)],_0x6b6e9f=new _0xf97f7a(this[_0x7697e3(0x14c)],_0x42746f,_0x565a19,_0xbf9bde,_0x2df2fd);return _0x565a19||_0x6b6e9f['on'](_0x7697e3(0x162),()=>{const _0x28cf6f=_0x7697e3;this[_0x28cf6f(0x179)](_0x28cf6f(0x141),_0x6b6e9f['id']);}),_0x6b6e9f;}[_0xc9e2af(0x15b)](_0x444bb1,_0x360693){const _0x98a86c=_0xc9e2af;_0x360693[_0x98a86c(0x137)](_0x444bb1,0x0);}[_0xc9e2af(0x10c)](_0x3d83dc,_0x622be8){const _0xc200aa=_0xc9e2af,_0x39977d=_0x622be8[_0xc200aa(0x154)](_0x504ff1=>_0x504ff1['id']===_0x3d83dc);_0x39977d&&_0x622be8[_0xc200aa(0x12b)](_0x39977d);}[_0xc9e2af(0x114)](){const _0xa989d8=_0xc9e2af;this[_0xa989d8(0x125)][_0xa989d8(0x152)]?this[_0xa989d8(0x121)]():(this[_0xa989d8(0x14d)](),this[_0xa989d8(0xfc)][_0xa989d8(0x149)]({'target':this[_0xa989d8(0x125)][_0xa989d8(0xf5)],'limiter':this[_0xa989d8(0x12a)](),'positions':zo}),this[_0xa989d8(0x13e)]&&this[_0xa989d8(0xfc)][_0xa989d8(0x13c)][_0xa989d8(0x15a)](0x0)?.[_0xa989d8(0x179)](_0xa989d8(0xf4)));}[_0xc9e2af(0x129)](_0xdf1783){const _0x2c82ee=_0xc9e2af;this[_0x2c82ee(0x17b)][_0x2c82ee(0x11e)](),this[_0x2c82ee(0x180)](),this[_0x2c82ee(0x179)](_0x2c82ee(0x107),_0xdf1783);}}function _0x12e9(_0x2da827,_0x3865b2){const _0x269878=_0x2698();return _0x12e9=function(_0x12e98a,_0x16f0f5){_0x12e98a=_0x12e98a-0xf0;let _0x2e9b1c=_0x269878[_0x12e98a];return _0x2e9b1c;},_0x12e9(_0x2da827,_0x3865b2);}export class SourcesBalloonButtonView extends _0x3b0686{[_0xc9e2af(0x175)];constructor(_0x5ec39e){const _0x531f86=_0xc9e2af;super(_0x5ec39e),this[_0x531f86(0x155)]({'withText':!0x0,'role':_0x531f86(0x16e)}),this[_0x531f86(0x175)]=this[_0x531f86(0xfe)](),this[_0x531f86(0x111)]({'attributes':{'class':[Fo]}});}[_0xc9e2af(0x147)](){const _0x57ef38=_0xc9e2af;super[_0x57ef38(0x147)](),this[_0x57ef38(0x127)][_0x57ef38(0x137)](this[_0x57ef38(0x175)]);}[_0xc9e2af(0xfe)](){const _0x4a5693=_0xc9e2af,_0x14b5c5=new _0xee0d64();return _0x14b5c5[_0x4a5693(0x13c)]=_0xbe5854,_0x14b5c5[_0x4a5693(0x111)]({'attributes':{'class':Fo+_0x4a5693(0x181)}}),_0x14b5c5;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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;}}
23
+ const _0x4bc57e=_0x111e;(function(_0x884fbd,_0xa772ad){const _0x1d6399=_0x111e,_0x5dbd6b=_0x884fbd();while(!![]){try{const _0x41940d=-parseInt(_0x1d6399(0x148))/0x1*(-parseInt(_0x1d6399(0x13f))/0x2)+-parseInt(_0x1d6399(0x150))/0x3+parseInt(_0x1d6399(0x13e))/0x4+-parseInt(_0x1d6399(0x14a))/0x5*(-parseInt(_0x1d6399(0x140))/0x6)+-parseInt(_0x1d6399(0x152))/0x7+-parseInt(_0x1d6399(0x142))/0x8*(-parseInt(_0x1d6399(0x156))/0x9)+-parseInt(_0x1d6399(0x14d))/0xa*(parseInt(_0x1d6399(0x14b))/0xb);if(_0x41940d===_0xa772ad)break;else _0x5dbd6b['push'](_0x5dbd6b['shift']());}catch(_0x3051b5){_0x5dbd6b['push'](_0x5dbd6b['shift']());}}}(_0x22f6,0x68f5c));import{ButtonView as _0x434c07,View as _0x4a2fe2}from'ckeditor5/src/ui.js';import{IconStop as _0x4b738c}from'ckeditor5/src/icons.js';function _0x22f6(){const _0x3c4fac=['fire','ck-ai-chat-controls-loader-icon','_createCancelButtonView','72804NVsbHv','2kZKopB','84bvUxAU','AI_CHAT_STOP_GENERATING','2604232nQuruU','locale','ck-ai-button-secondary\x20ck-ai-button-stop-generating','set','AI_CHAT_IS_WRITING','execute','716279HpJPCl','_loaderView','109185pCwqbz','93302YDZkTX','ck-ai-chat-controls-loader-wrapper','380dcRezn','div','_cancelButtonView','1510149jocuzv','setTemplate','770784ODhxhr','ck-reset_all','abortPromptStream','_createLoaderView','9vzgXdB','ck-ai-chat-controls-loader-icon-dot','ck-ai-chat-controls-loader'];_0x22f6=function(){return _0x3c4fac;};return _0x22f6();}import{getTranslation as _0x2bf0b4}from'../../../aicore/utils/common-translations.js';function _0x111e(_0x3c2cb0,_0x40bb50){const _0x22f6ee=_0x22f6();return _0x111e=function(_0x111e1c,_0x4ba02d){_0x111e1c=_0x111e1c-0x13d;let _0x30aefc=_0x22f6ee[_0x111e1c];return _0x30aefc;},_0x111e(_0x3c2cb0,_0x40bb50);}export class AIChatControlsLoaderView extends _0x4a2fe2{[_0x4bc57e(0x14f)];[_0x4bc57e(0x149)];constructor(_0x15f0ed){const _0x21ec22=_0x4bc57e;super(_0x15f0ed),this[_0x21ec22(0x14f)]=this[_0x21ec22(0x13d)](),this[_0x21ec22(0x149)]=this[_0x21ec22(0x155)](),this[_0x21ec22(0x151)]({'tag':_0x21ec22(0x14e),'attributes':{'class':['ck',_0x21ec22(0x14c),_0x21ec22(0x153)]},'children':[this[_0x21ec22(0x149)],this[_0x21ec22(0x14f)]]});}[_0x4bc57e(0x13d)](){const _0x3807f6=_0x4bc57e,_0x461036=new _0x434c07(this[_0x3807f6(0x143)]);return _0x461036[_0x3807f6(0x145)]({'label':_0x2bf0b4(this[_0x3807f6(0x143)],_0x3807f6(0x141)),'withText':!0x0,'class':_0x3807f6(0x144),'icon':_0x4b738c}),_0x461036['on'](_0x3807f6(0x147),()=>{const _0x1b5a2a=_0x3807f6;this[_0x1b5a2a(0x159)](_0x1b5a2a(0x154));}),_0x461036;}[_0x4bc57e(0x155)](){const _0x3ea403=_0x4bc57e,_0x4a6b46=new _0x4a2fe2(this[_0x3ea403(0x143)]);return _0x4a6b46[_0x3ea403(0x151)]({'tag':_0x3ea403(0x14e),'attributes':{'class':[_0x3ea403(0x158)]},'children':[{'tag':_0x3ea403(0x14e),'attributes':{'class':[_0x3ea403(0x15a)]},'children':[{'tag':_0x3ea403(0x14e),'attributes':{'class':[_0x3ea403(0x157)]}},{'tag':_0x3ea403(0x14e),'attributes':{'class':[_0x3ea403(0x157)]}},{'tag':_0x3ea403(0x14e),'attributes':{'class':[_0x3ea403(0x157)]}}]},{'text':_0x2bf0b4(this[_0x3ea403(0x143)],_0x3ea403(0x146))}]}),_0x4a6b46;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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))}]});}}
23
+ function _0x1c2e(_0x210067,_0x24bb87){const _0x435066=_0x4350();return _0x1c2e=function(_0x1c2ede,_0x22a048){_0x1c2ede=_0x1c2ede-0x68;let _0x46ce39=_0x435066[_0x1c2ede];return _0x46ce39;},_0x1c2e(_0x210067,_0x24bb87);}const _0xb650=_0x1c2e;(function(_0x245efd,_0x2c65ba){const _0x579c7e=_0x1c2e,_0x9969eb=_0x245efd();while(!![]){try{const _0x4faa4f=parseInt(_0x579c7e(0x86))/0x1*(parseInt(_0x579c7e(0x7e))/0x2)+parseInt(_0x579c7e(0xb8))/0x3+-parseInt(_0x579c7e(0xac))/0x4*(parseInt(_0x579c7e(0xa1))/0x5)+parseInt(_0x579c7e(0x71))/0x6+parseInt(_0x579c7e(0xbe))/0x7+parseInt(_0x579c7e(0x6c))/0x8+parseInt(_0x579c7e(0x85))/0x9*(-parseInt(_0x579c7e(0x92))/0xa);if(_0x4faa4f===_0x2c65ba)break;else _0x9969eb['push'](_0x9969eb['shift']());}catch(_0x119307){_0x9969eb['push'](_0x9969eb['shift']());}}}(_0x4350,0xed89f));function _0x4350(){const _0x1dc54c=['_reasoningButton','ck-button__label','_getCapabilityParts','_modelNameView','335016RXXivs','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','addMany','name','description','10155264UBGkhq','bindTemplate','ck-hidden','execute','setTemplate','buttonView','bind','source','content','AI_CHAT_SEARCH_WEB','ck-ai-chat-controls-button--commands','length','hidden','70pgtTgp','toggleWebSearch','webSearch','model','ck-ai-chat__prompt-capabilities','createCollection','tooltip','1983717mQurRn','39233Zuwtsd','_commandsButton','setModelList','setWebSearch','capabilities','log','ck-ai-chat-controls-button','locale','add','AI_CHAT_CAPABILITIES_YES','ck-ai-chat-controls__model-selection__item-name','_modelSelectionDropdownItems','130rPbRNJ','_createModelSelectionDropdown','_webSearchButton','activeModelId','_createCommandsButton','listenTo','isOn','extendTemplate','selectModel','modelDisplayMode','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','ck-ai-chat-controls__model-selection__item-description','text','modelSelectorEnabled','set','7995725dWIxcW','AI_CHAT_ENABLE_REASONING','Commands\x20are\x20not\x20implemented\x20yet.','label','style','webSearchActive','disableModelSelector','AI_CHAT_COMMANDS','toggleReasoning','_modelSelectionDropdown','ck-ai-button-tertiary','4vDkqWd','reasoningActive','AI_CHAT_REASONING','selector','isVisible','span','reasoning','_createReasoningButton','_createModelNameView','AI_CHAT_DISABLE_REASONING','div','AI_CHAT_DISABLE_WEB_SEARCH','2671116jxeCgq','setModel','ck-ai-chat-controls__model-selection__item-capabilities','button','enableModelSelector','menuitemradio','10076675hyPZMT','ck-ai-chat-controls__model-selection','isEnabled','enabled','fire','_createWebSearchButton','AI_CHAT_ENABLE_WEB_SEARCH','setReasoning','AI_CHAT_CAPABILITIES_NO','activeModelName','clear','ck-ai-chat-controls__model-name'];_0x4350=function(){return _0x1dc54c;};return _0x4350();}import{Collection as _0x743e24}from'ckeditor5/src/utils.js';import{IconAI as _0x6c17fd,IconBulb as _0x49b1bc,IconWeb as _0x525b78}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x15eeca,ButtonLabelView as _0x15fae0,ButtonView as _0x12b567,createDropdown as _0x55bec8,IconView as _0x1bbe68,UIModel as _0x4ce1c0,View as _0x59e499}from'ckeditor5/src/ui.js';import{getTranslation as _0x5da615}from'../../../aicore/utils/common-translations.js';const Ko=_0xb650(0x82),Xo=_0xb650(0x8c),Qo=_0xb650(0x7b),Zo=_0xb650(0xab),tl=_0xb650(0xbf),el=_0xb650(0x90),il=_0xb650(0x9d),sl=_0xb650(0xba),ol='n';export class AIChatPromptCapabilitiesView extends _0x59e499{[_0xb650(0x94)];[_0xb650(0x68)];[_0xb650(0x87)];[_0xb650(0xaa)];[_0xb650(0x91)];[_0xb650(0x6b)];constructor(_0x325cf2){const _0x5e1dde=_0xb650;super(_0x325cf2),this[_0x5e1dde(0xa0)](_0x5e1dde(0xa6),!0x1),this[_0x5e1dde(0xa0)](_0x5e1dde(0xad),!0x1),this[_0x5e1dde(0xa0)](_0x5e1dde(0x9b),_0x5e1dde(0xaf)),this[_0x5e1dde(0xa0)](_0x5e1dde(0x9f),!0x0),this[_0x5e1dde(0xa0)](_0x5e1dde(0x95),null),this[_0x5e1dde(0xa0)](_0x5e1dde(0xc7),null),this[_0x5e1dde(0xaa)]=this[_0x5e1dde(0x93)](),this[_0x5e1dde(0x6b)]=this[_0x5e1dde(0xb4)](),this[_0x5e1dde(0x94)]=this[_0x5e1dde(0xc3)](),this[_0x5e1dde(0x68)]=this[_0x5e1dde(0xb3)](),this[_0x5e1dde(0x87)]=this[_0x5e1dde(0x96)](),this[_0x5e1dde(0xaa)][_0x5e1dde(0x76)][_0x5e1dde(0x77)](_0x5e1dde(0xb0))['to'](this,_0x5e1dde(0x9b),_0x4ffc44=>_0x5e1dde(0xaf)===_0x4ffc44),this[_0x5e1dde(0xaa)][_0x5e1dde(0x76)][_0x5e1dde(0x77)](_0x5e1dde(0x84))['to'](this,_0x5e1dde(0x9f),_0x338d00=>_0x338d00?this[_0x5e1dde(0xaa)][_0x5e1dde(0x76)][_0x5e1dde(0xa4)]:_0x5da615(this[_0x5e1dde(0x8d)],_0x5e1dde(0x6d))),this[_0x5e1dde(0xaa)][_0x5e1dde(0x77)](_0x5e1dde(0xc0))['to'](this,_0x5e1dde(0x9f),_0x443467=>_0x443467),this[_0x5e1dde(0x94)][_0x5e1dde(0x77)](_0x5e1dde(0x98))['to'](this,_0x5e1dde(0xa6),_0x45bac4=>_0x45bac4),this[_0x5e1dde(0x94)][_0x5e1dde(0x77)](_0x5e1dde(0x84))['to'](this,_0x5e1dde(0xa6),_0x1d2782=>_0x5da615(this[_0x5e1dde(0x8d)],_0x1d2782?_0x5e1dde(0xb7):_0x5e1dde(0xc4))),this[_0x5e1dde(0x68)][_0x5e1dde(0x77)](_0x5e1dde(0x98))['to'](this,_0x5e1dde(0xad),_0x39c237=>_0x39c237),this[_0x5e1dde(0x68)][_0x5e1dde(0x77)](_0x5e1dde(0x84))['to'](this,_0x5e1dde(0xad),_0x3bf18e=>_0x5da615(this[_0x5e1dde(0x8d)],_0x3bf18e?_0x5e1dde(0xb5):_0x5e1dde(0xa2))),this[_0x5e1dde(0x75)]({'tag':_0x5e1dde(0xb6),'attributes':{'class':[Ko]},'children':[this[_0x5e1dde(0xaa)],this[_0x5e1dde(0x6b)],this[_0x5e1dde(0x94)],this[_0x5e1dde(0x68)],this[_0x5e1dde(0x87)]]}),this[_0x5e1dde(0x91)]=new _0x743e24(),_0x15eeca(this[_0x5e1dde(0xaa)],this[_0x5e1dde(0x91)]);}[_0xb650(0x88)](_0x2ee787,_0x366224){const _0x2c62d2=_0xb650;if(_0x366224)this[_0x2c62d2(0xa0)](_0x2c62d2(0x9b),_0x2c62d2(0x7d));else{const _0x3ff91d=0x1===_0x2ee787[_0x2c62d2(0x7c)];this[_0x2c62d2(0xa0)](_0x2c62d2(0x9b),_0x3ff91d?_0x2c62d2(0x6f):_0x2c62d2(0xaf));}if(this[_0x2c62d2(0x91)][_0x2c62d2(0xc8)](),_0x2ee787?.[_0x2c62d2(0x7c)])for(const _0x20cca9 of _0x2ee787){const _0x440408=new _0x4ce1c0({'label':_0x20cca9[_0x2c62d2(0x6f)],'withText':!0x0,'role':_0x2c62d2(0xbd),'id':_0x20cca9['id'],'model':_0x20cca9});_0x440408[_0x2c62d2(0x77)](_0x2c62d2(0x98))['to'](this,_0x2c62d2(0x95),_0x2d5d83=>_0x2d5d83===_0x20cca9['id']),this[_0x2c62d2(0x91)][_0x2c62d2(0x8e)]({'type':_0x2c62d2(0xbb),'model':_0x440408,'labelView':new ko(this[_0x2c62d2(0x8d)],_0x20cca9)});}}[_0xb650(0x89)](_0x241f3a){const _0x3cddc1=_0xb650;this[_0x3cddc1(0xa0)](_0x3cddc1(0xa6),_0x241f3a);}[_0xb650(0xc5)](_0x22b11b){const _0x2b7670=_0xb650;this[_0x2b7670(0xa0)](_0x2b7670(0xad),_0x22b11b);}[_0xb650(0xb9)](_0x5ab588){const _0x377b4a=_0xb650;if(!_0x5ab588)return;this[_0x377b4a(0x95)]=_0x5ab588['id'],this[_0x377b4a(0xc7)]=_0x5ab588[_0x377b4a(0x6f)]||_0x5ab588['id'],this[_0x377b4a(0xaa)][_0x377b4a(0x76)][_0x377b4a(0xa0)](_0x377b4a(0xa4),_0x5ab588[_0x377b4a(0x6f)]),this[_0x377b4a(0xaa)][_0x377b4a(0x76)][_0x377b4a(0xa0)](_0x377b4a(0x84),_0x5ab588[_0x377b4a(0x6f)]);const _0x3dbed0=_0x5ab588[_0x377b4a(0x8a)][_0x377b4a(0x80)]?.[_0x377b4a(0xc1)]??!0x1;this[_0x377b4a(0xa0)](_0x377b4a(0xa6),!0x1),this[_0x377b4a(0x94)][_0x377b4a(0xa0)](_0x377b4a(0x98),!0x1),this[_0x377b4a(0x94)][_0x377b4a(0xa0)](_0x377b4a(0xc0),_0x3dbed0),this[_0x377b4a(0x94)][_0x377b4a(0xa0)](_0x377b4a(0xb0),_0x3dbed0);const _0x5801c8=_0x5ab588[_0x377b4a(0x8a)][_0x377b4a(0xb2)]?.[_0x377b4a(0xc1)]??!0x1;this[_0x377b4a(0xa0)](_0x377b4a(0xad),!0x1),this[_0x377b4a(0x68)][_0x377b4a(0xa0)](_0x377b4a(0x98),!0x1),this[_0x377b4a(0x68)][_0x377b4a(0xa0)](_0x377b4a(0xc0),_0x5801c8),this[_0x377b4a(0x68)][_0x377b4a(0xa0)](_0x377b4a(0xb0),_0x5801c8);}[_0xb650(0xbc)](){const _0x146bb4=_0xb650;this[_0x146bb4(0xa0)](_0x146bb4(0x9f),!0x0);}[_0xb650(0xa7)](_0x30c0ba){const _0x2493d4=_0xb650;this[_0x2493d4(0xa0)](_0x2493d4(0x9f),!0x1),_0x30c0ba&&this[_0x2493d4(0xa0)](_0x2493d4(0x9b),_0x2493d4(0x7d));}[_0xb650(0xc3)](){const _0xc79fe8=_0xb650,_0x7a9b61=new _0x12b567();return _0x7a9b61[_0xc79fe8(0xa0)]({'label':_0x5da615(this[_0xc79fe8(0x8d)],_0xc79fe8(0x7a)),'icon':_0x525b78,'class':Xo,'isToggleable':!0x0,'tooltipPosition':ol}),_0x7a9b61['on'](_0xc79fe8(0x74),()=>{const _0x3488f0=_0xc79fe8;this[_0x3488f0(0xc2)](_0x3488f0(0x7f));}),_0x7a9b61;}[_0xb650(0xb3)](){const _0x367cfb=_0xb650,_0x2615a3=new _0x12b567();return _0x2615a3[_0x367cfb(0xa0)]({'label':_0x5da615(this[_0x367cfb(0x8d)],_0x367cfb(0xae)),'icon':_0x49b1bc,'class':Xo,'isToggleable':!0x0,'tooltipPosition':ol}),_0x2615a3['on'](_0x367cfb(0x74),()=>{const _0x518853=_0x367cfb;this[_0x518853(0xc2)](_0x518853(0xa9));}),_0x2615a3;}[_0xb650(0x96)](){const _0x4b99c7=_0xb650,_0xa2834a=new _0x12b567();return _0xa2834a[_0x4b99c7(0xa0)]({'label':_0x5da615(this[_0x4b99c7(0x8d)],_0x4b99c7(0xa8)),'icon':_0x6c17fd,'withText':!0x0,'class':Xo,'isToggleable':!0x0,'tooltip':_0x5da615(this[_0x4b99c7(0x8d)],_0x4b99c7(0xa8)),'tooltipPosition':ol}),_0xa2834a[_0x4b99c7(0x99)]({'attributes':{'class':[Qo]}}),_0xa2834a['on'](_0x4b99c7(0x74),()=>{const _0x55f701=_0x4b99c7;console[_0x55f701(0x8b)](_0x55f701(0xa3)),alert(_0x55f701(0xa3));}),_0xa2834a;}[_0xb650(0x93)](){const _0x57b9b9=_0xb650,_0x2bb686=_0x55bec8(this[_0x57b9b9(0x8d)]);return _0x2bb686[_0x57b9b9(0xa0)]({'panelPosition':'ne','class':[tl]}),_0x2bb686[_0x57b9b9(0x76)][_0x57b9b9(0xa0)]({'label':_0x5da615(this[_0x57b9b9(0x8d)],_0x57b9b9(0x9c)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':ol,'class':Zo}),this[_0x57b9b9(0x97)](_0x2bb686,_0x57b9b9(0x74),_0x9fe0ab=>{const _0x74270d=_0x57b9b9;this[_0x74270d(0xc2)](_0x74270d(0x9a),_0x9fe0ab[_0x74270d(0x78)][_0x74270d(0x81)]);}),_0x2bb686;}[_0xb650(0xb4)](){const _0xb3732d=_0xb650,_0x5a1678=new _o(this[_0xb3732d(0x8d)]);return _0x5a1678[_0xb3732d(0x77)](_0xb3732d(0x9e))['to'](this,_0xb3732d(0xc7),_0x4ebe08=>_0x4ebe08??''),_0x5a1678[_0xb3732d(0x77)](_0xb3732d(0xb0))['to'](this,_0xb3732d(0x9b),_0x1d8121=>_0xb3732d(0x6f)===_0x1d8121),_0x5a1678;}}class ko extends _0x15fae0{constructor(_0x492ed6,_0x4f37b2){const _0x54b242=_0xb650;super();const _0x2ee01b=this[_0x54b242(0x72)],_0x5185d8=this[_0x54b242(0x83)]();this[_0x54b242(0x75)]({'tag':_0x54b242(0xb6),'attributes':{'class':['ck',_0x54b242(0x69)],'style':_0x2ee01b['to'](_0x54b242(0xa5)),'id':_0x2ee01b['to']('id')},'children':[{'tag':_0x54b242(0xb6),'attributes':{'class':[el]},'children':[{'text':_0x2ee01b['to'](_0x54b242(0x9e))}]},{'tag':_0x54b242(0xb6),'attributes':{'class':[il]},'children':[{'tag':_0x54b242(0xb1),'children':[{'text':_0x4f37b2[_0x54b242(0x70)]}]}]},{'tag':_0x54b242(0xb6),'attributes':{'class':[sl]},'children':_0x5185d8}]}),_0x5185d8[_0x54b242(0x6e)](this[_0x54b242(0x6a)](_0x492ed6,_0x525b78,_0x54b242(0x7a),_0x4f37b2[_0x54b242(0x8a)][_0x54b242(0x80)]?.[_0x54b242(0xc1)]??!0x1)),_0x5185d8[_0x54b242(0x6e)](this[_0x54b242(0x6a)](_0x492ed6,_0x49b1bc,_0x54b242(0xae),_0x4f37b2[_0x54b242(0x8a)][_0x54b242(0xb2)]?.[_0x54b242(0xc1)]??!0x1));}[_0xb650(0x6a)](_0x2ca241,_0x46161e,_0x48f304,_0x4d764a){const _0x22b916=_0xb650,_0xaae0ce=new _0x1bbe68();_0xaae0ce[_0x22b916(0x79)]=_0x46161e;const _0x40ce30=new _0x59e499(_0x2ca241);_0x40ce30[_0x22b916(0x75)]({'tag':_0x22b916(0xb1),'children':[{'text':_0x5da615(_0x2ca241,_0x48f304)+':\x20'}]});const _0x2cb0e0=new _0x59e499(_0x2ca241);return _0x2cb0e0[_0x22b916(0x75)]({'tag':_0x22b916(0xb1),'children':[{'text':_0x5da615(_0x2ca241,_0x4d764a?_0x22b916(0x8f):_0x22b916(0xc6))}]}),[_0xaae0ce,_0x40ce30,_0x2cb0e0];}}class _o extends _0x59e499{constructor(_0x344fc8){const _0x43fc40=_0xb650;super(_0x344fc8),this[_0x43fc40(0xa0)](_0x43fc40(0x9e),void 0x0),this[_0x43fc40(0xa0)](_0x43fc40(0xb0),!0x0);const _0x553f54=this[_0x43fc40(0x72)];this[_0x43fc40(0x75)]({'tag':_0x43fc40(0xb1),'attributes':{'class':['ck',_0x43fc40(0xc9),_0x553f54['if'](_0x43fc40(0xb0),_0x43fc40(0x73),_0x39bb39=>!_0x39bb39)]},'children':[{'text':_0x553f54['to'](_0x43fc40(0x9e))}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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();});});}}
23
+ const _0x111e3e=_0x28d0;(function(_0x124311,_0xbbc2a){const _0x4b3897=_0x28d0,_0x56269e=_0x124311();while(!![]){try{const _0x2db2cd=-parseInt(_0x4b3897(0x198))/0x1+parseInt(_0x4b3897(0x184))/0x2*(-parseInt(_0x4b3897(0x194))/0x3)+-parseInt(_0x4b3897(0x199))/0x4+-parseInt(_0x4b3897(0x1ba))/0x5+-parseInt(_0x4b3897(0x1b6))/0x6+-parseInt(_0x4b3897(0x1b7))/0x7*(parseInt(_0x4b3897(0x1b8))/0x8)+parseInt(_0x4b3897(0x1b3))/0x9;if(_0x2db2cd===_0xbbc2a)break;else _0x56269e['push'](_0x56269e['shift']());}catch(_0x370d7d){_0x56269e['push'](_0x56269e['shift']());}}}(_0x177a,0x5197d));import{IconSubmit as _0x186ee6}from'ckeditor5/src/icons.js';import{ButtonView as _0x346c1,AutocompleteView as _0x36a35e,createLabeledTextarea as _0x1a096e}from'ckeditor5/src/ui.js';import{global as _0x1ae4c2,isVisible as _0x2480bf,Rect as _0x47b730,ResizeObserver as _0x1c3039}from'ckeditor5/src/utils.js';import{getTranslation as _0x46aae8}from'../../../aicore/utils/common-translations.js';import{AIChatPromptSuggestionsListView as _0x128d8f}from'./aichatpromptsuggestionslistview.js';function _0x28d0(_0x2f1b86,_0x265a24){const _0x177ad6=_0x177a();return _0x28d0=function(_0x28d0c7,_0x100421){_0x28d0c7=_0x28d0c7-0x17d;let _0x51a251=_0x177ad6[_0x28d0c7];return _0x51a251;},_0x28d0(_0x2f1b86,_0x265a24);}import{escape as _0x2f1300}from'es-toolkit/compat';const ah=_0x111e3e(0x193);function _0x177a(){const _0x1e9839=['focus','fieldWrapperChildren','errorText','fire','_createSubmitButton','target','focusableChildren','ck-ai-chat__prompt-submit-button','maxRows','isEnabled','uiLanguageDirection','contains','extendTemplate','sendUserMessage','window','_setUpAddContextButtonPositioning','execute','submit','_queryViewResizeObserver','isEmpty','locale','isUploadInProgress','right','setPlaceholderText','25915905IafoYL','calc(','remove','1389774WLbtPK','4108643vuvAxW','8CUDDjB','classList','1417935OKoaLH','enter','set','destroy','requestAnimationFrame','hasError','MIN_ROWS','MAX_ROWS','AI_CHAT_LABEL_SUBMIT','placeholder','bind','width','_addContextButtonView','AI_CHAT_PROMPT_EMPTY_ERROR','setIsUploadInProgress','2lwnKLL','submitButtonView','queryView','render','value','trim','reset','update','add','keystrokes','fieldView','minRows','excludeScrollbarsAndBorders','ck-ai-chat__prompt-input','rtl','ck-ai-chat__prompt-input_highlighted','1496559RNkbXT','px\x20-\x20var(--ck-spacing-tiny))','left','element','543324cmEanp','1603992kyfbxj','style'];_0x177a=function(){return _0x1e9839;};return _0x177a();}export class AIChatPromptInputView extends _0x36a35e{[_0x111e3e(0x185)];static [_0x111e3e(0x1c0)]=0x1;static [_0x111e3e(0x1c1)]=0xc;[_0x111e3e(0x181)];[_0x111e3e(0x1ad)];constructor(_0x4262f2,_0x3a338f){const _0x16d8d7=_0x111e3e;super(_0x4262f2,{'queryView':{'label':'','creator':_0x1a096e,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x128d8f(_0x4262f2),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x16d8d7(0x1bc)](_0x16d8d7(0x1ae),!0x0),this[_0x16d8d7(0x1bc)](_0x16d8d7(0x1b0),!0x1),this[_0x16d8d7(0x181)]=_0x3a338f,this[_0x16d8d7(0x1ad)]=null,this[_0x16d8d7(0x186)][_0x16d8d7(0x18e)][_0x16d8d7(0x18f)]=AIChatPromptInputView[_0x16d8d7(0x1c0)],this[_0x16d8d7(0x186)][_0x16d8d7(0x18e)][_0x16d8d7(0x1a3)]=AIChatPromptInputView[_0x16d8d7(0x1c1)],this[_0x16d8d7(0x186)][_0x16d8d7(0x19c)][_0x16d8d7(0x18c)](this[_0x16d8d7(0x181)]),this[_0x16d8d7(0x1aa)](),this[_0x16d8d7(0x1a7)]({'attributes':{'class':['ck',_0x16d8d7(0x191)]}}),this[_0x16d8d7(0x185)]=this[_0x16d8d7(0x19f)](),this[_0x16d8d7(0x185)][_0x16d8d7(0x17f)](_0x16d8d7(0x1a4))['to'](this,_0x16d8d7(0x1ae),this,_0x16d8d7(0x1b0),(_0x33aed5,_0x3ef75a)=>!_0x33aed5&&!_0x3ef75a),this[_0x16d8d7(0x1a1)][_0x16d8d7(0x18c)](this[_0x16d8d7(0x185)]);}[_0x111e3e(0x187)](){const _0x14f492=_0x111e3e;super[_0x14f492(0x187)](),this[_0x14f492(0x186)][_0x14f492(0x19c)][_0x14f492(0x18c)](this[_0x14f492(0x185)]),this[_0x14f492(0x18d)][_0x14f492(0x1bc)](_0x14f492(0x1bb),(_0x43c172,_0x174ad7)=>{const _0x25ba3c=_0x14f492;this[_0x25ba3c(0x1b0)]||this[_0x25ba3c(0x1ae)]||_0x43c172[_0x25ba3c(0x1a0)]==this[_0x25ba3c(0x186)][_0x25ba3c(0x18e)][_0x25ba3c(0x197)]&&(this[_0x25ba3c(0x1ac)](),_0x174ad7());}),this[_0x14f492(0x186)][_0x14f492(0x18e)]['on'](_0x14f492(0x18b),()=>{const _0x349836=_0x14f492;this[_0x349836(0x1ae)]=''===this[_0x349836(0x186)][_0x349836(0x18e)][_0x349836(0x197)][_0x349836(0x188)]?.[_0x349836(0x189)]();});}[_0x111e3e(0x1bd)](){const _0x3e61d8=_0x111e3e;super[_0x3e61d8(0x1bd)](),this[_0x3e61d8(0x1ad)]&&this[_0x3e61d8(0x1ad)][_0x3e61d8(0x1bd)]();}[_0x111e3e(0x1ac)](){const _0x5c0635=_0x111e3e,_0x3add22=this[_0x5c0635(0x186)][_0x5c0635(0x18e)][_0x5c0635(0x197)][_0x5c0635(0x188)]?.[_0x5c0635(0x189)]();if(!_0x3add22)return this[_0x5c0635(0x186)][_0x5c0635(0x19d)]=_0x46aae8(this[_0x5c0635(0x1af)],_0x5c0635(0x182)),void(this[_0x5c0635(0x186)][_0x5c0635(0x18e)][_0x5c0635(0x1bf)]=!0x0);this[_0x5c0635(0x186)][_0x5c0635(0x18e)][_0x5c0635(0x1bf)]=!0x1;const _0x2e0960=_0x2f1300(_0x3add22);this[_0x5c0635(0x19e)](_0x5c0635(0x1a8),_0x2e0960),this[_0x5c0635(0x186)][_0x5c0635(0x18e)][_0x5c0635(0x18a)]();}[_0x111e3e(0x1b2)](_0x4bb23e){const _0x556e00=_0x111e3e;this[_0x556e00(0x186)][_0x556e00(0x18e)][_0x556e00(0x1bc)](_0x556e00(0x17e),_0x4bb23e);}[_0x111e3e(0x19b)](_0x731c32=!0x1){const _0x171949=_0x111e3e;super[_0x171949(0x19b)](),_0x731c32&&(this[_0x171949(0x197)][_0x171949(0x1b9)][_0x171949(0x1a6)](ah)||(this[_0x171949(0x197)][_0x171949(0x1b9)][_0x171949(0x18c)](ah),setTimeout(()=>{const _0x16c0b7=_0x171949;this[_0x16c0b7(0x197)][_0x16c0b7(0x1b9)][_0x16c0b7(0x1b5)](ah);},0x320)));}[_0x111e3e(0x19f)](){const _0x334dc0=_0x111e3e,_0x2ebb7c=new _0x346c1(this[_0x334dc0(0x1af)]);return _0x2ebb7c[_0x334dc0(0x1bc)]({'icon':_0x186ee6,'label':_0x46aae8(this[_0x334dc0(0x1af)],_0x334dc0(0x17d)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x334dc0(0x1a2),'isEnabled':!0x1}),_0x2ebb7c['on'](_0x334dc0(0x1ab),()=>{const _0x46b1e5=_0x334dc0;this[_0x46b1e5(0x1ac)]();}),_0x2ebb7c;}[_0x111e3e(0x183)](_0x58c5b3){const _0x79eb91=_0x111e3e;this[_0x79eb91(0x1b0)]=_0x58c5b3;}[_0x111e3e(0x1aa)](){const _0x41b5c9=_0x111e3e,_0xb0b82b=this[_0x41b5c9(0x1af)],_0x4b4b37=()=>{const _0x56956d=_0x41b5c9;_0x1ae4c2[_0x56956d(0x1a9)][_0x56956d(0x1be)](()=>{const _0x2397c1=_0x56956d;if(_0x2480bf(this[_0x2397c1(0x197)])){const _0x3b369c=new _0x47b730(this[_0x2397c1(0x186)][_0x2397c1(0x18e)][_0x2397c1(0x197)]),_0x39dce8=new _0x47b730(this[_0x2397c1(0x181)][_0x2397c1(0x197)]),_0x562721=_0x3b369c[_0x2397c1(0x180)],_0x4a8dc3=_0x2397c1(0x192)===_0xb0b82b[_0x2397c1(0x1a5)]?_0x2397c1(0x1b1):_0x2397c1(0x196);_0x3b369c[_0x2397c1(0x190)]();const _0x1bd916=_0x562721-_0x3b369c[_0x2397c1(0x180)]+0x1;this[_0x2397c1(0x181)][_0x2397c1(0x197)][_0x2397c1(0x19a)][_0x4a8dc3]=_0x2397c1(0x1b4)+(_0x562721-_0x39dce8[_0x2397c1(0x180)]-_0x1bd916)+_0x2397c1(0x195);}});};this[_0x41b5c9(0x186)][_0x41b5c9(0x18e)]['on'](_0x41b5c9(0x18b),_0x4b4b37),this['on'](_0x41b5c9(0x187),()=>{const _0x9ed750=_0x41b5c9;_0x4b4b37(),this[_0x9ed750(0x1ad)]=new _0x1c3039(this[_0x9ed750(0x186)][_0x9ed750(0x18e)][_0x9ed750(0x197)],()=>{_0x4b4b37();});});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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};}}
23
+ function _0x2b45(){const _0x16b954=['135258beSKSM','752927oRYYOV','552072rVlcBR','1710cYShHG','5UbXBcH','122916prjHMs','412256CBZfLO','items','233636CNuNNu','3RvchuO','10737BpYUwz','filter','length'];_0x2b45=function(){return _0x16b954;};return _0x2b45();}const _0x5b7d6e=_0x2746;(function(_0x30be1a,_0x5d3eda){const _0x83664a=_0x2746,_0x3ad9f6=_0x30be1a();while(!![]){try{const _0xf8234d=parseInt(_0x83664a(0x1ce))/0x1*(parseInt(_0x83664a(0x1d2))/0x2)+-parseInt(_0x83664a(0x1d4))/0x3+parseInt(_0x83664a(0x1cd))/0x4+-parseInt(_0x83664a(0x1d6))/0x5*(parseInt(_0x83664a(0x1d7))/0x6)+-parseInt(_0x83664a(0x1d3))/0x7+-parseInt(_0x83664a(0x1d8))/0x8+parseInt(_0x83664a(0x1cf))/0x9*(parseInt(_0x83664a(0x1d5))/0xa);if(_0xf8234d===_0x5d3eda)break;else _0x3ad9f6['push'](_0x3ad9f6['shift']());}catch(_0x3d22a0){_0x3ad9f6['push'](_0x3ad9f6['shift']());}}}(_0x2b45,0x18d40));import{ListView as _0x320b84}from'ckeditor5/src/ui.js';function _0x2746(_0x4dc213,_0x1bb109){const _0x2b450a=_0x2b45();return _0x2746=function(_0x27462c,_0x53acc7){_0x27462c=_0x27462c-0x1cd;let _0x1b0143=_0x2b450a[_0x27462c];return _0x1b0143;},_0x2746(_0x4dc213,_0x1bb109);}export class AIChatPromptSuggestionsListView extends _0x320b84{[_0x5b7d6e(0x1d0)](){const _0x14e316=_0x5b7d6e;let _0x448277=0x0;for(const _0x186ce0 of this[_0x14e316(0x1d9)])_0x448277+=_0x186ce0[_0x14e316(0x1d9)][_0x14e316(0x1d1)];return{'resultsCount':_0x448277,'totalItemsCount':_0x448277};}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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});}}
23
+ const _0xcae7f4=_0x5095;function _0x1766(){const _0x52178a=['label','extendTemplate','1417336gPCWBL','1575720EFPhFj','105fHtRYZ','highlightText','_source','items','useDefaultFiltering','addResourceToContext','execute','82430PYXYCK','10269545PgjWrL','\x5c$&','ck-ai-chat-resources__list','forEach','resource','47228rcVzaS','7rrnTOH','14qXfJGa','setResources','filter','locale','140991EokmgR','fire','clear','124129iWsEWr','test','updateResourceState','replace','add','9ugGjaa','trim','_handleResourceSelection'];_0x1766=function(){return _0x52178a;};return _0x1766();}(function(_0x2094af,_0x159916){const _0x3c4933=_0x5095,_0x1db552=_0x2094af();while(!![]){try{const _0x326346=parseInt(_0x3c4933(0x16c))/0x1+parseInt(_0x3c4933(0x165))/0x2*(parseInt(_0x3c4933(0x169))/0x3)+parseInt(_0x3c4933(0x163))/0x4*(parseInt(_0x3c4933(0x178))/0x5)+parseInt(_0x3c4933(0x177))/0x6+parseInt(_0x3c4933(0x164))/0x7*(parseInt(_0x3c4933(0x176))/0x8)+-parseInt(_0x3c4933(0x171))/0x9*(-parseInt(_0x3c4933(0x17f))/0xa)+-parseInt(_0x3c4933(0x15e))/0xb;if(_0x326346===_0x159916)break;else _0x1db552['push'](_0x1db552['shift']());}catch(_0x356dc1){_0x1db552['push'](_0x1db552['shift']());}}}(_0x1766,0x349c2));import{ListView as _0xd1d52f}from'ckeditor5/src/ui.js';import{AIChatResourceListItemView as _0x3a9df6}from'./aichatresourcelistitemview.js';function _0x5095(_0x4ed380,_0x566af9){const _0x17667a=_0x1766();return _0x5095=function(_0x5095f3,_0x1895a0){_0x5095f3=_0x5095f3-0x15e;let _0x51628e=_0x17667a[_0x5095f3];return _0x51628e;},_0x5095(_0x4ed380,_0x566af9);}const uc=_0xcae7f4(0x160);export class AIChatContextResourcesListView extends _0xd1d52f{[_0xcae7f4(0x17a)];constructor(_0x126d4e,_0x551855){const _0x3c1c38=_0xcae7f4;super(_0x126d4e),this[_0x3c1c38(0x17a)]=_0x551855,this[_0x3c1c38(0x175)]({'attributes':{'class':[uc]}});}[_0xcae7f4(0x166)](_0x38d538,_0x5f208a){const _0x12c677=_0xcae7f4;this[_0x12c677(0x17b)][_0x12c677(0x16b)]();let _0x71be28=_0x38d538;if(this[_0x12c677(0x17a)][_0x12c677(0x17c)]&&_0x5f208a&&''!==_0x5f208a[_0x12c677(0x172)]()){const _0x3a0540=new RegExp(_0x5f208a[_0x12c677(0x16f)](/[.*+?^${}()|[\]\\]/g,_0x12c677(0x15f)),'gi');_0x71be28=_0x38d538[_0x12c677(0x167)](_0xfe4028=>_0x3a0540[_0x12c677(0x16d)](_0xfe4028[_0x12c677(0x174)]));}for(const _0x5ba026 of _0x71be28){const _0x33a612=new _0x3a9df6(this[_0x12c677(0x168)],_0x5ba026);_0x33a612['on'](_0x12c677(0x17e),()=>{const _0x1aba71=_0x12c677;this[_0x1aba71(0x173)](this[_0x1aba71(0x17a)],_0x5ba026);}),this[_0x12c677(0x17b)][_0x12c677(0x170)](_0x33a612);}this[_0x12c677(0x17a)][_0x12c677(0x17c)]&&this[_0x12c677(0x179)](_0x5f208a);}[_0xcae7f4(0x179)](_0x4bfdfb){const _0x45dc50=_0xcae7f4;this[_0x45dc50(0x17a)][_0x45dc50(0x17c)]&&this[_0x45dc50(0x17b)][_0x45dc50(0x161)](_0x2efed1=>{const _0x1ad98b=_0x45dc50;_0x2efed1[_0x1ad98b(0x179)](_0x4bfdfb);});}[_0xcae7f4(0x16e)](_0x592dfb,_0x168cde){const _0x1c6bc2=_0xcae7f4;for(const _0x990f94 of this[_0x1c6bc2(0x17b)]){const _0x114df5=_0x990f94;_0x114df5[_0x1c6bc2(0x162)]['id']===_0x592dfb&&_0x114df5[_0x1c6bc2(0x16e)](_0x168cde);}}[_0xcae7f4(0x173)](_0x3c0d06,_0x4868ec){const _0x272875=_0xcae7f4;this[_0x272875(0x16a)](_0x272875(0x17d),{'source':_0x3c0d06,'resource':_0x4868ec});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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);}}
23
+ const _0x12cc73=_0x81cd;(function(_0x3528e8,_0x48a760){const _0x2f2c98=_0x81cd,_0x5b43fb=_0x3528e8();while(!![]){try{const _0x5899c8=parseInt(_0x2f2c98(0x198))/0x1*(-parseInt(_0x2f2c98(0x18a))/0x2)+-parseInt(_0x2f2c98(0x179))/0x3*(parseInt(_0x2f2c98(0x17f))/0x4)+parseInt(_0x2f2c98(0x194))/0x5+parseInt(_0x2f2c98(0x182))/0x6*(parseInt(_0x2f2c98(0x195))/0x7)+-parseInt(_0x2f2c98(0x17c))/0x8*(parseInt(_0x2f2c98(0x18f))/0x9)+parseInt(_0x2f2c98(0x183))/0xa+parseInt(_0x2f2c98(0x17b))/0xb*(parseInt(_0x2f2c98(0x17d))/0xc);if(_0x5899c8===_0x48a760)break;else _0x5b43fb['push'](_0x5b43fb['shift']());}catch(_0x176628){_0x5b43fb['push'](_0x5b43fb['shift']());}}}(_0x5dad,0x2a21c));function _0x81cd(_0x63190b,_0x397e28){const _0x5dad8f=_0x5dad();return _0x81cd=function(_0x81cd03,_0x1d49c9){_0x81cd03=_0x81cd03-0x165;let _0x2c4f3d=_0x5dad8f[_0x81cd03];return _0x2c4f3d;},_0x81cd(_0x63190b,_0x397e28);}import{View as _0x1c07ee,ViewCollection as _0x367d2d}from'ckeditor5/src/ui.js';import{uid as _0x94a300}from'ckeditor5/src/utils.js';import{AIChatContextResourcesListView as _0x372dfd}from'./aichatcontextresourceslistview.js';function _0x5dad(){const _0x4839fd=['length','add','314hdjbWK','_resourcesListView','_createSearchSection','_createSkeletonView','_skeletonLoader','34821VNHsXO','searchInputVisibleFrom','div','set','render','637775pTEXKT','21MKROFA','locale','ck\x20ck-search','1820AdEAGF','setResources','fire','updateResourceState','loadSourceResources','_createSearchView','extendTemplate','useDefaultFiltering','_searchInputVisibleFrom','aiChatResources','ck-hidden','delegate','highlightText','getQuery','loadResources','children','source','addResourceToContext','_source','isLoading','search','9AbpkKI','_searchSection','292688pJhtRX','280PnQxRn','192NXLRPi','_latestLoadResourcesUid','210612slHHpN','_createResourcesListView','setTemplate','242742raHMEy','770320eVRZGQ','ck-ai-chat-resources','_searchView','has','bindTemplate'];_0x5dad=function(){return _0x4839fd;};return _0x5dad();}import{AIChatContextResourcesSearchInputView as _0x54e1b9}from'./aichatresourcessearchinputview.js';import{AISkeletonView as _0x114b69,SKELETON_DEFINITIONS as _0x57ebec}from'../../../../aicore/ui/aiskeleton.js';export class AIChatContextResourcesView extends _0x1c07ee{[_0x12cc73(0x185)];[_0x12cc73(0x17a)];[_0x12cc73(0x16c)];[_0x12cc73(0x18b)];[_0x12cc73(0x18e)];[_0x12cc73(0x176)];[_0x12cc73(0x173)];[_0x12cc73(0x17e)]=null;constructor(_0x21f39c,_0x108384){const _0x34bfdf=_0x12cc73;super(_0x21f39c),this[_0x34bfdf(0x176)]=_0x108384[_0x34bfdf(0x174)],this[_0x34bfdf(0x16c)]=_0x108384[_0x34bfdf(0x190)]??0x7,this[_0x34bfdf(0x192)](_0x34bfdf(0x177),!0x0),this[_0x34bfdf(0x185)]=this[_0x34bfdf(0x169)](),this[_0x34bfdf(0x17a)]=this[_0x34bfdf(0x18c)](),this[_0x34bfdf(0x18b)]=this[_0x34bfdf(0x180)](),this[_0x34bfdf(0x18e)]=this[_0x34bfdf(0x18d)](),this[_0x34bfdf(0x173)]=new _0x367d2d([this[_0x34bfdf(0x18e)],this[_0x34bfdf(0x18b)]]),this[_0x34bfdf(0x181)]({'tag':_0x34bfdf(0x191),'attributes':{'class':_0x34bfdf(0x184)},'children':this[_0x34bfdf(0x173)]});}[_0x12cc73(0x169)](){const _0x3a0701=_0x12cc73;return new _0x54e1b9(this[_0x3a0701(0x196)]);}[_0x12cc73(0x18c)](){const _0x547417=_0x12cc73,_0x2ced90=new _0x1c07ee(this[_0x547417(0x196)]);return _0x2ced90[_0x547417(0x181)]({'tag':_0x547417(0x191),'attributes':{'class':_0x547417(0x197)},'children':[this[_0x547417(0x185)]]}),this[_0x547417(0x185)]['on'](_0x547417(0x178),(_0x1ef487,_0x44153c)=>{const _0x3c877d=_0x547417;this[_0x3c877d(0x172)](_0x44153c),this[_0x3c877d(0x176)][_0x3c877d(0x16b)]&&this[_0x3c877d(0x18b)][_0x3c877d(0x170)](_0x44153c);}),_0x2ced90;}[_0x12cc73(0x180)](){const _0x323a5d=_0x12cc73,_0x30aed7=new _0x372dfd(this[_0x323a5d(0x196)],this[_0x323a5d(0x176)]);return _0x30aed7[_0x323a5d(0x16f)](_0x323a5d(0x175))['to'](this),_0x30aed7[_0x323a5d(0x16a)]({'attributes':{'class':this[_0x323a5d(0x187)]['if'](_0x323a5d(0x177),_0x323a5d(0x16e))}}),_0x30aed7;}[_0x12cc73(0x18d)](){const _0x1836d2=_0x12cc73,_0x24d9dc=new _0x114b69(this[_0x1836d2(0x196)],_0x57ebec[_0x1836d2(0x16d)]);return _0x24d9dc[_0x1836d2(0x16a)]({'attributes':{'class':[this[_0x1836d2(0x187)]['if'](_0x1836d2(0x177),_0x1836d2(0x16e),_0x57e1be=>!_0x57e1be)]}}),_0x24d9dc;}[_0x12cc73(0x193)](){const _0x5b8932=_0x12cc73;super[_0x5b8932(0x193)](),this[_0x5b8932(0x172)]('');}[_0x12cc73(0x172)](_0x1b77fc){const _0x31e132=_0x12cc73,_0xe9a60c=_0x94a300();this[_0x31e132(0x17e)]=_0xe9a60c,this[_0x31e132(0x166)](_0x31e132(0x168),{'sourceId':this[_0x31e132(0x176)]['id'],'query':_0x1b77fc,'uid':_0xe9a60c}),this[_0x31e132(0x177)]=!0x0;}[_0x12cc73(0x165)](_0x5bb415,_0x1f0ff1){const _0x11e0dc=_0x12cc73;if(_0x1f0ff1&&_0x1f0ff1!==this[_0x11e0dc(0x17e)])return;const _0x5910bb=this[_0x11e0dc(0x176)][_0x11e0dc(0x16b)]?this[_0x11e0dc(0x185)][_0x11e0dc(0x171)]():'';this[_0x11e0dc(0x18b)][_0x11e0dc(0x165)](_0x5bb415,_0x5910bb),_0x5bb415[_0x11e0dc(0x188)]>=this[_0x11e0dc(0x16c)]&&!this[_0x11e0dc(0x173)][_0x11e0dc(0x186)](this[_0x11e0dc(0x17a)])&&this[_0x11e0dc(0x173)][_0x11e0dc(0x189)](this[_0x11e0dc(0x17a)],0x0),requestAnimationFrame(()=>{const _0x57b721=_0x11e0dc;this[_0x57b721(0x177)]=!0x1;});}[_0x12cc73(0x167)](_0x1c6608,_0x3c4198){const _0x1c5c39=_0x12cc73;this[_0x1c5c39(0x18b)][_0x1c5c39(0x167)](_0x1c6608,_0x3c4198);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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)]);}}
23
+ const _0x286078=_0x2694;(function(_0x41a090,_0x4d7e1d){const _0x33b2a=_0x2694,_0x163c30=_0x41a090();while(!![]){try{const _0x37c911=parseInt(_0x33b2a(0x1da))/0x1*(-parseInt(_0x33b2a(0x1cc))/0x2)+-parseInt(_0x33b2a(0x1df))/0x3*(-parseInt(_0x33b2a(0x1c5))/0x4)+parseInt(_0x33b2a(0x1e9))/0x5*(-parseInt(_0x33b2a(0x1db))/0x6)+parseInt(_0x33b2a(0x1c8))/0x7*(-parseInt(_0x33b2a(0x1c7))/0x8)+-parseInt(_0x33b2a(0x1dd))/0x9+-parseInt(_0x33b2a(0x1e5))/0xa+parseInt(_0x33b2a(0x1ed))/0xb;if(_0x37c911===_0x4d7e1d)break;else _0x163c30['push'](_0x163c30['shift']());}catch(_0x49ce69){_0x163c30['push'](_0x163c30['shift']());}}}(_0x58e3,0xd0465));import{HighlightedTextView as _0x25cffd,IconView as _0x5130a7,ListItemView as _0x1f38f8}from'ckeditor5/src/ui.js';function _0x58e3(){const _0x3d88c0=['5407311dCQUeO','_titleView','_iconView','highlightText','362fODrlD','TEXT','content','label','URL','FILE','ck-ai-chat-resources__item','getResourceIcon','_setupTemplate','set','_createIconView','span','isInContext','resource','3506dnuzgH','817434SjBpbe','_createTitleView','5998779nwHKVs','DOCUMENT','3273eXNbsI','ck-ai-chat-resources__item--in-context','updateResourceState','ck-ai-chat-resources__item__icon','extendTemplate','ck-hidden','6768740gQQkFN','div','_updateIcon','text','55MvzKls','bindTemplate','type','trim','48287393pMtsys','ck-ai-chat-resources__item-title','execute','isVisible','render','2612hlgsla','setTemplate','8lmHuJC'];_0x58e3=function(){return _0x3d88c0;};return _0x58e3();}import{escapeRegExp as _0x583c68}from'es-toolkit/compat';import{AIContextItemType as _0x86ab0}from'../../../../aicore/model/aicontext.js';function _0x2694(_0x1a44e4,_0x456aab){const _0x58e356=_0x58e3();return _0x2694=function(_0x269482,_0x13bd18){_0x269482=_0x269482-0x1c2;let _0x5028fa=_0x58e356[_0x269482];return _0x5028fa;},_0x2694(_0x1a44e4,_0x456aab);}import{IconFileUpload as _0x5dc1cb,IconCheck as _0x223816,IconDocument as _0x3c1514,IconDocumentOutline as _0xbb2de,IconLink as _0x393dfa}from'@ckeditor/ckeditor5-icons';const zr=_0x286078(0x1d2),Jr=_0x286078(0x1e0),Kr=_0x286078(0x1ee),Mr=_0x286078(0x1e2);export class AIChatResourceListItemView extends _0x1f38f8{[_0x286078(0x1d9)];[_0x286078(0x1c9)];[_0x286078(0x1ca)];constructor(_0x36b592,_0x15641b){const _0x20700e=_0x286078;super(_0x36b592),this[_0x20700e(0x1d9)]=_0x15641b,this[_0x20700e(0x1d5)](_0x20700e(0x1d8),!!_0x15641b[_0x20700e(0x1d8)]),this[_0x20700e(0x1c9)]=this[_0x20700e(0x1dc)](),this[_0x20700e(0x1ca)]=this[_0x20700e(0x1d6)](),this[_0x20700e(0x1d4)]();}[_0x286078(0x1c4)](){const _0x42f534=_0x286078;super[_0x42f534(0x1c4)]();}[_0x286078(0x1d3)](_0x4010c8){const _0x5a8441=_0x286078;if(_0x4010c8[_0x5a8441(0x1d8)])return _0x223816;switch(_0x4010c8[_0x5a8441(0x1eb)]){case _0x86ab0[_0x5a8441(0x1de)]:return _0x3c1514;case _0x86ab0[_0x5a8441(0x1d0)]:return _0x393dfa;case _0x86ab0[_0x5a8441(0x1d1)]:case _0x86ab0[_0x5a8441(0x1cd)]:return _0x5dc1cb;default:return _0xbb2de;}}[_0x286078(0x1cb)](_0x3759ac){const _0x3453fa=_0x286078;if(!_0x3759ac||''===_0x3759ac[_0x3453fa(0x1ec)]())return void this[_0x3453fa(0x1c9)][_0x3453fa(0x1cb)](null);const _0x1ec47c=new RegExp(_0x583c68(_0x3759ac),'gi');this[_0x3453fa(0x1c9)][_0x3453fa(0x1cb)](_0x1ec47c);}[_0x286078(0x1e1)](_0x217b7c){const _0x3042a5=_0x286078;this[_0x3042a5(0x1d9)][_0x3042a5(0x1d8)]=_0x217b7c,this[_0x3042a5(0x1d8)]=_0x217b7c,this[_0x3042a5(0x1e7)]();}[_0x286078(0x1dc)](){const _0x1a3b25=_0x286078,_0x2b7411=new _0x25cffd();return _0x2b7411[_0x1a3b25(0x1e8)]=this[_0x1a3b25(0x1d9)][_0x1a3b25(0x1cf)],_0x2b7411[_0x1a3b25(0x1e3)]({'tag':_0x1a3b25(0x1d7),'attributes':{'class':[Kr]}}),_0x2b7411;}[_0x286078(0x1d6)](){const _0x20b7f7=_0x286078,_0x5e9841=new _0x5130a7();return _0x5e9841[_0x20b7f7(0x1ce)]=this[_0x20b7f7(0x1d3)](this[_0x20b7f7(0x1d9)]),_0x5e9841;}[_0x286078(0x1d4)](){const _0x218186=_0x286078,_0x337886=this[_0x218186(0x1ea)];this[_0x218186(0x1c6)]({'tag':_0x218186(0x1e6),'attributes':{'class':[zr,_0x337886['if'](_0x218186(0x1c3),_0x218186(0x1e4),_0x224f49=>!_0x224f49),_0x337886['if'](_0x218186(0x1d8),Jr)]},'children':[{'tag':_0x218186(0x1e6),'attributes':{'class':[Mr]},'children':[this[_0x218186(0x1ca)]]},this[_0x218186(0x1c9)]],'on':{'click':_0x337886['to'](_0x218186(0x1c2))}});}[_0x286078(0x1e7)](){const _0x3d93ee=_0x286078;this[_0x3d93ee(0x1ca)][_0x3d93ee(0x1ce)]=this[_0x3d93ee(0x1d3)](this[_0x3d93ee(0x1d9)]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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();}
23
+ const _0x39d01e=_0x28a1;(function(_0x21aa92,_0x9d9b3c){const _0x180ffb=_0x28a1,_0x10af36=_0x21aa92();while(!![]){try{const _0x52a061=parseInt(_0x180ffb(0x94))/0x1*(parseInt(_0x180ffb(0xa9))/0x2)+-parseInt(_0x180ffb(0x9a))/0x3*(parseInt(_0x180ffb(0x98))/0x4)+parseInt(_0x180ffb(0xaa))/0x5*(-parseInt(_0x180ffb(0x9f))/0x6)+-parseInt(_0x180ffb(0x8b))/0x7+-parseInt(_0x180ffb(0xbd))/0x8+-parseInt(_0x180ffb(0xc3))/0x9+parseInt(_0x180ffb(0xad))/0xa*(parseInt(_0x180ffb(0xba))/0xb);if(_0x52a061===_0x9d9b3c)break;else _0x10af36['push'](_0x10af36['shift']());}catch(_0x30b6c5){_0x10af36['push'](_0x10af36['shift']());}}}(_0x1daf,0xb7754));import{BalloonPanelView as _0x202eef,ButtonView as _0x4e3e17,clickOutsideHandler as _0x78ebe1,FormHeaderView as _0x1eb221}from'ckeditor5/src/ui.js';import{IconPreviousArrow as _0x33e5e9}from'@ckeditor/ckeditor5-icons';function _0x1daf(){const _0x3a78d4=['_createBalloonHeader','once','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_source','closeSourceResourceBalloon','2921490bbWvvK','_createBackButton','pin','onBackToContext','onBalloonClosed','searchInputVisibleFrom','8479590YYWBlh','_getResourcesViewFromBalloon','isVisible','execute','set','add','extendTemplate','populateSourceResourceBalloon','setResources','1qgjVkD','_createSourceResourceBalloonPanel','destroy','onResourceSelected','12orYycp','getTargetElement','1476396mnvbOk','content','_setupSingleResourceBalloonClickOutsideHandler','ck-button-icon\x20ck-button-back','_config','6akJBtW','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','children','_sourceResourceBalloons','source','getLimiterElement','element','addResourceToContext','label','loadSourceResources','2120746LfSbHl','6327545TtXnNa','_createBalloonResourcesView','showSourceResourcesBalloon','2277190SPAdzv','updateResourceState','resource','get','_locale','hide','ck-ai-chat-context-controls__source-balloon-panel','onLoadSourceResources','clear','_bodyCollection','values','change:isLoading','show','231dcxJhv','delete','_addSourceResourceContent','6505144FCbtNA','isAnyResourceBalloonVisible'];_0x1daf=function(){return _0x3a78d4;};return _0x1daf();}import{getTranslation as _0x34fb0d}from'../../../../aicore/utils/common-translations.js';function _0x28a1(_0x31923d,_0x455ebb){const _0x1dafcc=_0x1daf();return _0x28a1=function(_0x28a1bf,_0x4093cf){_0x28a1bf=_0x28a1bf-0x8a;let _0x494726=_0x1dafcc[_0x28a1bf];return _0x494726;},_0x28a1(_0x31923d,_0x455ebb);}import{AIChatContextResourcesView as _0x2fcc67}from'./aichatcontextresourcesview.js';const Bc=_0x39d01e(0xb3),mc=_0x39d01e(0x9d),dc=_0x39d01e(0xc1);export class AIChatResourcesBalloonView{[_0x39d01e(0xa2)]=new Map();[_0x39d01e(0xb6)];[_0x39d01e(0xb1)];[_0x39d01e(0x9e)];constructor(_0x363ec9,_0x3a442d,_0x23d8a7){const _0x40717e=_0x39d01e;this[_0x40717e(0xb1)]=_0x363ec9,this[_0x40717e(0xb6)]=_0x3a442d,this[_0x40717e(0x9e)]=_0x23d8a7;}[_0x39d01e(0xac)]({source:_0x46e8f3,withBackButton:_0x585340}){const _0x275b7e=_0x39d01e;let _0x552277=this[_0x275b7e(0xa2)][_0x275b7e(0xb0)](_0x46e8f3['id']);_0x552277||(_0x552277=this[_0x275b7e(0x95)](),this[_0x275b7e(0xa2)][_0x275b7e(0x8f)](_0x46e8f3['id'],_0x552277),this[_0x275b7e(0x9c)](_0x552277)),this[_0x275b7e(0xbc)]({'balloonPanel':_0x552277,'source':_0x46e8f3,'withBackButton':_0x585340}),_0x552277[_0x275b7e(0xb9)]();const _0x43413e=this[_0x275b7e(0x9e)][_0x275b7e(0x99)]();_0x43413e&&_0x552277[_0x275b7e(0xc5)]({'target':_0x43413e,'limiter':this[_0x275b7e(0x9e)][_0x275b7e(0xa4)]()});}[_0x39d01e(0x92)](_0x43e95d,_0x520b56,_0x34d1d8){const _0x35c35e=_0x39d01e,_0x20b52b=this[_0x35c35e(0xa2)][_0x35c35e(0xb0)](_0x43e95d);if(!_0x20b52b)return;const _0x58e038=this[_0x35c35e(0x8c)](_0x20b52b);_0x58e038&&(_0x58e038[_0x35c35e(0x93)](_0x520b56,_0x34d1d8),_0x58e038[_0x35c35e(0xc0)](_0x35c35e(0xb8),()=>{const _0x2c1a25=_0x35c35e;_0x20b52b[_0x2c1a25(0xc5)]({'target':this[_0x2c1a25(0x9e)][_0x2c1a25(0x99)](),'limiter':this[_0x2c1a25(0x9e)][_0x2c1a25(0xa4)]()});}));}[_0x39d01e(0xc2)](_0x4a8ecf){const _0x440886=_0x39d01e,_0x240be4=this[_0x440886(0xa2)][_0x440886(0xb0)](_0x4a8ecf);_0x240be4&&requestAnimationFrame(()=>{const _0x3d345a=_0x440886;_0x240be4[_0x3d345a(0xb2)](),this[_0x3d345a(0xa2)][_0x3d345a(0xbb)](_0x4a8ecf),this[_0x3d345a(0x9e)][_0x3d345a(0xc7)]();});}[_0x39d01e(0xbe)](){const _0x415d86=_0x39d01e;for(const _0x4bd76 of this[_0x415d86(0xa2)][_0x415d86(0xb7)]())if(_0x4bd76[_0x415d86(0x8d)])return!0x0;return!0x1;}[_0x39d01e(0xae)](_0x350d0e,_0x46772e,_0x33f039){const _0x5d6d3f=_0x39d01e,_0x3207f8=this[_0x5d6d3f(0xa2)][_0x5d6d3f(0xb0)](_0x350d0e);if(!_0x3207f8||!_0x3207f8[_0x5d6d3f(0x8d)])return;const _0x389309=this[_0x5d6d3f(0x9e)][_0x5d6d3f(0x99)]();if(!_0x389309)return;_0x3207f8[_0x5d6d3f(0xc5)]({'target':_0x389309,'limiter':this[_0x5d6d3f(0x9e)][_0x5d6d3f(0xa4)]()});const _0x3c50c2=this[_0x5d6d3f(0x8c)](_0x3207f8);_0x3c50c2&&_0x3c50c2[_0x5d6d3f(0xae)](_0x46772e,_0x33f039);}[_0x39d01e(0x96)](){const _0x3952f0=_0x39d01e;for(const _0x532586 of this[_0x3952f0(0xa2)][_0x3952f0(0xb7)]())_0x532586[_0x3952f0(0x96)]();this[_0x3952f0(0xa2)][_0x3952f0(0xb5)]();}[_0x39d01e(0x95)](){const _0x1ad479=_0x39d01e,_0x1a07e7=new _0x202eef(this[_0x1ad479(0xb1)]);return _0x1a07e7[_0x1ad479(0x91)]({'attributes':{'class':Bc}}),this[_0x1ad479(0xb6)][_0x1ad479(0x90)](_0x1a07e7),_0x1a07e7;}[_0x39d01e(0xbc)]({balloonPanel:_0x311d8b,source:_0x5dd0ad,withBackButton:_0x2bddda}){const _0x3b1cdb=_0x39d01e;_0x311d8b[_0x3b1cdb(0x9b)][_0x3b1cdb(0xb5)]();const _0x179fe5=this[_0x3b1cdb(0xbf)]({'balloonPanel':_0x311d8b,'source':_0x5dd0ad,'withBackButton':_0x2bddda});_0x311d8b[_0x3b1cdb(0x9b)][_0x3b1cdb(0x90)](_0x179fe5);const _0x1b688f=this[_0x3b1cdb(0xab)](_0x5dd0ad);_0x311d8b[_0x3b1cdb(0x9b)][_0x3b1cdb(0x90)](_0x1b688f);}[_0x39d01e(0xbf)]({balloonPanel:_0x1ccde3,source:_0x4e26c3,withBackButton:_0x832a81}){const _0x3a986a=_0x39d01e,_0x4885a8=new _0x1eb221(this[_0x3a986a(0xb1)],{'label':_0x4e26c3[_0x3a986a(0xa7)],'class':dc});return _0x832a81&&_0x4885a8[_0x3a986a(0xa1)][_0x3a986a(0x90)](this[_0x3a986a(0xc4)](_0x1ccde3),0x0),_0x4885a8;}[_0x39d01e(0xc4)](_0x464e1f){const _0x1c1b4c=_0x39d01e,_0x5e293a=new _0x4e3e17(this[_0x1c1b4c(0xb1)]);return _0x5e293a[_0x1c1b4c(0x8f)]({'icon':_0x33e5e9,'tooltip':_0x34fb0d(this[_0x1c1b4c(0xb1)],_0x1c1b4c(0xa0)),'tooltipPosition':'n','class':mc}),_0x5e293a['on'](_0x1c1b4c(0x8e),()=>{const _0x3c36a7=_0x1c1b4c;_0x464e1f[_0x3c36a7(0xb2)](),this[_0x3c36a7(0x9e)][_0x3c36a7(0xc6)]();}),_0x5e293a;}[_0x39d01e(0xab)](_0x5570a2){const _0x43cb76=_0x39d01e,_0x383605=new _0x2fcc67(this[_0x43cb76(0xb1)],{'source':_0x5570a2,'searchInputVisibleFrom':this[_0x43cb76(0x9e)][_0x43cb76(0x8a)]});return _0x383605['on'](_0x43cb76(0xa8),(_0x1e7b80,_0xa25bee)=>{const _0x35afb7=_0x43cb76;this[_0x35afb7(0x9e)][_0x35afb7(0xb4)](_0xa25bee);}),_0x383605['on'](_0x43cb76(0xa6),(_0x5028f0,_0x226935)=>{const _0x5c5610=_0x43cb76;this[_0x5c5610(0x9e)][_0x5c5610(0x97)](_0x226935[_0x5c5610(0xa3)],_0x226935[_0x5c5610(0xaf)]),this[_0x5c5610(0xc2)](_0x5570a2['id']);}),_0x383605;}[_0x39d01e(0x8c)](_0xf47c53){const _0x2f90c0=_0x39d01e,_0x548e38=_0xf47c53[_0x2f90c0(0x9b)][_0x2f90c0(0xb0)](0x1);return _0x548e38 instanceof _0x2fcc67?_0x548e38:null;}[_0x39d01e(0x9c)](_0x3285b6){const _0x218dea=_0x39d01e;_0x78ebe1({'emitter':_0x3285b6,'contextElements':[_0x3285b6[_0x218dea(0xa5)]],'callback':()=>{const _0x3dff4e=_0x218dea;_0x3285b6[_0x3dff4e(0xb2)](),this[_0x3dff4e(0x9e)][_0x3dff4e(0xc7)]();},'activator':()=>_0x3285b6[_0x218dea(0x8d)]});}}