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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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 _0x234af1=_0x4baa;(function(_0x3267f8,_0x398622){const _0x5c5092=_0x4baa,_0x1d8c8e=_0x3267f8();while(!![]){try{const _0x4fe12b=parseInt(_0x5c5092(0x202))/0x1*(-parseInt(_0x5c5092(0x1ca))/0x2)+-parseInt(_0x5c5092(0x200))/0x3+-parseInt(_0x5c5092(0x1e1))/0x4+parseInt(_0x5c5092(0x1c9))/0x5*(-parseInt(_0x5c5092(0x1f2))/0x6)+-parseInt(_0x5c5092(0x1ef))/0x7+parseInt(_0x5c5092(0x1ee))/0x8+parseInt(_0x5c5092(0x1de))/0x9*(parseInt(_0x5c5092(0x1cb))/0xa);if(_0x4fe12b===_0x398622)break;else _0x1d8c8e['push'](_0x1d8c8e['shift']());}catch(_0x4d6239){_0x1d8c8e['push'](_0x1d8c8e['shift']());}}}(_0x198d,0x71dd6));function _0x4baa(_0x36c608,_0x301aea){const _0x198d89=_0x198d();return _0x4baa=function(_0x4baa48,_0xfd1ee2){_0x4baa48=_0x4baa48-0x1b7;let _0x5a182c=_0x198d89[_0x4baa48];return _0x5a182c;},_0x4baa(_0x36c608,_0x301aea);}function _0x198d(){const _0x42c6d9=['stop','_createUrlInputField','tab','urlInputField','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','ck-ai-chat-context-controls__url-input-section','submitUrl','render','input','18lBYTif','_updateConfirmButtonState','execute','1882276LVZFwa','ck-ai-chat-context-controls__url-form','value','children','locale','clear','ck-button-icon','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','clearError','AI_CHAT_CONTEXT_URL_ADD_URL','shift+tab','cancel','withBackButton','2246696YxwWTC','4673844ZRxnmY','div','_handleSubmit','978DwEVwz','ck-button-icon\x20ck-button-back','_setupTemplate','AI_CHAT_CONTEXT_URL_PLACEHOLDER','AI_CHAT_CONTEXT_URL_INVALID_ERROR','forEach','_isValidUrl','length','setTemplate','_createBackButton','confirmButton','createCollection','listenTo','refreshBalloon','1801086jLMOjM','\x20ck-hidden','19059pAguXm','submit','getValue','_focusables','focusTracker','change:withBackButton','focusCycler','keystrokes','errorText','focus','set','add','isEnabled','backButton','ck-labeled-field-view_empty','fieldView','AI_CHAT_CONTEXT_URL_LABEL','destroy','element','1075vRHDly','70NOcpQE','13131430OjJjrj','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','trim','_setupKeystrokes','esc','form','setError','_createConfirmButton','_setupEventHandlers','fire'];_0x198d=function(){return _0x42c6d9;};return _0x198d();}import{FocusTracker as _0x3fbdb8,KeystrokeHandler as _0x1e6787}from'ckeditor5/src/utils.js';import{ButtonView as _0x27c405,FocusCycler as _0x3f1888,LabeledFieldView as _0x1be240,View as _0x259f0e,FormHeaderView as _0x57114d,createLabeledInputText as _0xd9e52d,submitHandler as _0x59e43e}from'ckeditor5/src/ui.js';import{IconCheck as _0x1b52ea,IconPreviousArrow as _0x301f34}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x13e2b2}from'../../../aicore/utils/common-translations.js';const ch=_0x234af1(0x1e2),rh=_0x234af1(0x1da);export class AIChatContextPanelUrlInputView extends _0x259f0e{[_0x234af1(0x1ba)];[_0x234af1(0x1bd)];[_0x234af1(0x1b9)];[_0x234af1(0x1bc)];[_0x234af1(0x1d8)];[_0x234af1(0x1c3)];[_0x234af1(0x1fc)];constructor(_0x4db551){const _0x419ad2=_0x234af1;super(_0x4db551),this[_0x419ad2(0x1ba)]=new _0x3fbdb8(),this[_0x419ad2(0x1bd)]=new _0x1e6787(),this[_0x419ad2(0x1c3)]=this[_0x419ad2(0x1fb)](),this[_0x419ad2(0x1d8)]=this[_0x419ad2(0x1d6)](),this[_0x419ad2(0x1fc)]=this[_0x419ad2(0x1d2)](),this[_0x419ad2(0x1b9)]=this[_0x419ad2(0x1fd)]([this[_0x419ad2(0x1c3)],this[_0x419ad2(0x1d8)],this[_0x419ad2(0x1fc)]]),this[_0x419ad2(0x1bc)]=new _0x3f1888({'focusables':this[_0x419ad2(0x1b9)],'focusTracker':this[_0x419ad2(0x1ba)],'keystrokeHandler':this[_0x419ad2(0x1bd)],'actions':{'focusPrevious':_0x419ad2(0x1eb),'focusNext':_0x419ad2(0x1d7)}}),this[_0x419ad2(0x1c0)](_0x419ad2(0x1ed),!0x0),this[_0x419ad2(0x1f4)](),this[_0x419ad2(0x1d3)](),this[_0x419ad2(0x1ce)]();}[_0x234af1(0x1dc)](){const _0x22068f=_0x234af1;super[_0x22068f(0x1dc)](),this[_0x22068f(0x1b9)][_0x22068f(0x1f7)](_0x1b3524=>{const _0x3ccd69=_0x22068f;this[_0x3ccd69(0x1ba)][_0x3ccd69(0x1c1)](_0x1b3524[_0x3ccd69(0x1c8)]),this[_0x3ccd69(0x1bd)][_0x3ccd69(0x1fe)](_0x1b3524[_0x3ccd69(0x1c8)]);}),_0x59e43e({'view':this}),this[_0x22068f(0x1bf)]();}[_0x234af1(0x1c7)](){const _0x379275=_0x234af1;super[_0x379275(0x1c7)](),this[_0x379275(0x1ba)][_0x379275(0x1c7)](),this[_0x379275(0x1bd)][_0x379275(0x1c7)]();}[_0x234af1(0x1bf)](){const _0x5c725c=_0x234af1;this[_0x5c725c(0x1d8)][_0x5c725c(0x1bf)]();}[_0x234af1(0x1b8)](){const _0x2934b0=_0x234af1;return this[_0x2934b0(0x1d8)][_0x2934b0(0x1c5)][_0x2934b0(0x1c8)]?.[_0x2934b0(0x1e3)]?.[_0x2934b0(0x1cd)]()||'';}[_0x234af1(0x1e6)](){const _0x69e811=_0x234af1;this[_0x69e811(0x1d8)][_0x69e811(0x1c5)][_0x69e811(0x1c8)][_0x69e811(0x1e3)]='',this[_0x69e811(0x1d8)][_0x69e811(0x1be)]=null,this[_0x69e811(0x1fc)][_0x69e811(0x1c2)]=!0x1;}[_0x234af1(0x1d1)](_0x5c30b7){const _0xb9b5b=_0x234af1;this[_0xb9b5b(0x1d8)][_0xb9b5b(0x1be)]=_0x5c30b7,this[_0xb9b5b(0x1df)](),this[_0xb9b5b(0x1d4)](_0xb9b5b(0x1ff));}[_0x234af1(0x1e9)](){const _0x2ac5f8=_0x234af1;this[_0x2ac5f8(0x1d8)][_0x2ac5f8(0x1be)]=null,this[_0x2ac5f8(0x1df)]();}[_0x234af1(0x1fb)](){const _0x4a7f51=_0x234af1,_0x46579d=new _0x27c405(this[_0x4a7f51(0x1e5)]);return _0x46579d[_0x4a7f51(0x1c0)]({'icon':_0x301f34,'tooltip':_0x13e2b2(this[_0x4a7f51(0x1e5)],_0x4a7f51(0x1e8)),'tooltipPosition':'n','class':[_0x4a7f51(0x1f3)]}),this['on'](_0x4a7f51(0x1bb),(_0x115d4e,_0x26eed3,_0x19f157)=>{const _0x2ecc3f=_0x4a7f51;_0x46579d[_0x2ecc3f(0x1c0)]({'class':[_0x2ecc3f(0x1f3)+(_0x19f157?'':_0x2ecc3f(0x201))]});}),_0x46579d;}[_0x234af1(0x1d6)](){const _0x4940eb=_0x234af1,_0x13add4=new _0x1be240(this[_0x4940eb(0x1e5)],_0xd9e52d);return _0x13add4[_0x4940eb(0x1c0)]({'label':_0x13e2b2(this[_0x4940eb(0x1e5)],_0x4940eb(0x1c6)),'class':_0x4940eb(0x1c4)}),_0x13add4[_0x4940eb(0x1c5)][_0x4940eb(0x1c0)]({'placeholder':_0x13e2b2(this[_0x4940eb(0x1e5)],_0x4940eb(0x1f5))}),_0x13add4;}[_0x234af1(0x1d2)](){const _0x107eeb=_0x234af1,_0x2a70f5=new _0x27c405(this[_0x107eeb(0x1e5)]);return _0x2a70f5[_0x107eeb(0x1c0)]({'icon':_0x1b52ea,'tooltip':_0x13e2b2(this[_0x107eeb(0x1e5)],_0x107eeb(0x1ea)),'tooltipPosition':'n','class':_0x107eeb(0x1e7),'type':_0x107eeb(0x1b7),'isEnabled':!0x1}),_0x2a70f5;}[_0x234af1(0x1f4)](){const _0x33281d=_0x234af1,_0x33c4e3=new _0x57114d(this[_0x33281d(0x1e5)],{'label':_0x13e2b2(this[_0x33281d(0x1e5)],_0x33281d(0x1ea)),'class':_0x33281d(0x1cc)});_0x33c4e3[_0x33281d(0x1e4)][_0x33281d(0x1c1)](this[_0x33281d(0x1c3)],0x0),this[_0x33281d(0x1fa)]({'tag':_0x33281d(0x1d0),'attributes':{'class':ch,'tabindex':'-1'},'children':[_0x33c4e3,{'tag':_0x33281d(0x1f0),'attributes':{'class':rh},'children':[this[_0x33281d(0x1d8)],this[_0x33281d(0x1fc)]]}]});}[_0x234af1(0x1d3)](){const _0x2fb3e8=_0x234af1;this[_0x2fb3e8(0x1c3)]['on'](_0x2fb3e8(0x1e0),()=>{const _0x44c2da=_0x2fb3e8;this[_0x44c2da(0x1e6)](),this[_0x44c2da(0x1d4)](_0x44c2da(0x1ec));}),this[_0x2fb3e8(0x1d8)][_0x2fb3e8(0x1c5)]['on'](_0x2fb3e8(0x1dd),()=>{const _0x4664e5=_0x2fb3e8;this[_0x4664e5(0x1e9)](),this[_0x4664e5(0x1df)](),this[_0x4664e5(0x1d4)](_0x4664e5(0x1ff));}),this['on'](_0x2fb3e8(0x1b7),_0x202b0f=>{const _0x49a547=_0x2fb3e8;_0x202b0f[_0x49a547(0x1d5)](),this[_0x49a547(0x1f1)]();});}[_0x234af1(0x1ce)](){const _0x48da99=_0x234af1;this[_0x48da99(0x1bd)][_0x48da99(0x1c0)](_0x48da99(0x1cf),(_0xf254aa,_0x5a7104)=>{const _0x1d3a64=_0x48da99;this[_0x1d3a64(0x1e6)](),this[_0x1d3a64(0x1d4)](_0x1d3a64(0x1ec)),_0x5a7104();});}[_0x234af1(0x1f1)](){const _0x37189c=_0x234af1,_0x5aefa9=this[_0x37189c(0x1b8)]()[_0x37189c(0x1cd)]();_0x5aefa9?this[_0x37189c(0x1f8)](_0x5aefa9)?(this[_0x37189c(0x1e9)](),this[_0x37189c(0x1d4)](_0x37189c(0x1db),_0x5aefa9)):this[_0x37189c(0x1d1)](_0x13e2b2(this[_0x37189c(0x1e5)],_0x37189c(0x1f6))):this[_0x37189c(0x1d1)](_0x13e2b2(this[_0x37189c(0x1e5)],_0x37189c(0x1d9)));}[_0x234af1(0x1df)](){const _0x1d60d1=_0x234af1,_0x36ff7a=this[_0x1d60d1(0x1b8)]()[_0x1d60d1(0x1cd)](),_0x5ea8b1=!!this[_0x1d60d1(0x1d8)][_0x1d60d1(0x1be)];this[_0x1d60d1(0x1fc)][_0x1d60d1(0x1c2)]=_0x36ff7a[_0x1d60d1(0x1f9)]>0x0&&!_0x5ea8b1;}[_0x234af1(0x1f8)](_0x3bfb00){try{return!!new URL(_0x3bfb00);}catch{return!0x1;}}}
23
+ const _0x2d7277=_0x1cbb;(function(_0x59ff34,_0x56c3d6){const _0x46ac83=_0x1cbb,_0x456b2b=_0x59ff34();while(!![]){try{const _0x52b800=parseInt(_0x46ac83(0xfb))/0x1+-parseInt(_0x46ac83(0x116))/0x2*(-parseInt(_0x46ac83(0xf4))/0x3)+parseInt(_0x46ac83(0x11a))/0x4*(-parseInt(_0x46ac83(0x105))/0x5)+parseInt(_0x46ac83(0x102))/0x6+parseInt(_0x46ac83(0xeb))/0x7+-parseInt(_0x46ac83(0x131))/0x8+parseInt(_0x46ac83(0x119))/0x9*(-parseInt(_0x46ac83(0x113))/0xa);if(_0x52b800===_0x56c3d6)break;else _0x456b2b['push'](_0x456b2b['shift']());}catch(_0x334c6e){_0x456b2b['push'](_0x456b2b['shift']());}}}(_0x1923,0x87e85));function _0x1cbb(_0x2bdcd6,_0x43ea07){const _0x1923ba=_0x1923();return _0x1cbb=function(_0x1cbb30,_0x42a9d3){_0x1cbb30=_0x1cbb30-0xeb;let _0x24ffa0=_0x1923ba[_0x1cbb30];return _0x24ffa0;},_0x1cbb(_0x2bdcd6,_0x43ea07);}import{FocusTracker as _0x294042,KeystrokeHandler as _0x3f098c}from'ckeditor5/src/utils.js';import{ButtonView as _0x26cd10,FocusCycler as _0x4fbcae,LabeledFieldView as _0x440bd1,View as _0x1364a6,FormHeaderView as _0x41d6f8,createLabeledInputText as _0x7b2649,submitHandler as _0x3af3ec}from'ckeditor5/src/ui.js';import{IconCheck as _0x56434d,IconPreviousArrow as _0x50e38c}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x30c3df}from'../../../aicore/utils/common-translations.js';function _0x1923(){const _0x24113c=['forEach','_setupEventHandlers','_focusables','810850cOuBAK','_createUrlInputField','set','64324VJPybF','esc','AI_CHAT_CONTEXT_URL_LABEL','45GsmgmR','111380pYayBr','ck-ai-chat-context-controls__url-form','_updateConfirmButtonState','withBackButton','ck-ai-chat-context-controls__url-input-section','clearError','focusCycler','add','listenTo','form','shift+tab','trim','isEnabled','backButton','_handleSubmit','_setupKeystrokes','AI_CHAT_CONTEXT_URL_INVALID_ERROR','clear','element','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','errorText','fire','div','2091120aOBNxJ','\x20ck-hidden','change:withBackButton','submitUrl','setTemplate','_setupTemplate','5575780YVWipZ','ck-labeled-field-view_empty','refreshBalloon','_createBackButton','submit','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','destroy','AI_CHAT_CONTEXT_URL_PLACEHOLDER','setError','18oEfUma','urlInputField','AI_CHAT_CONTEXT_URL_ADD_URL','focus','focusTracker','render','fieldView','803203pJRWUp','children','_isValidUrl','tab','locale','stop','_createConfirmButton','1429692lyqkiv','getValue','value','145HhsugE','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','ck-button-icon','confirmButton','ck-button-icon\x20ck-button-back','length','cancel','input','keystrokes','execute','createCollection'];_0x1923=function(){return _0x24113c;};return _0x1923();}const oh=_0x2d7277(0x11b),ch=_0x2d7277(0x11e);export class AIChatContextPanelUrlInputView extends _0x1364a6{[_0x2d7277(0xf8)];[_0x2d7277(0x10d)];[_0x2d7277(0x112)];[_0x2d7277(0x120)];[_0x2d7277(0xf5)];[_0x2d7277(0x127)];[_0x2d7277(0x108)];constructor(_0x556dbf){const _0xeb113e=_0x2d7277;super(_0x556dbf),this[_0xeb113e(0xf8)]=new _0x294042(),this[_0xeb113e(0x10d)]=new _0x3f098c(),this[_0xeb113e(0x127)]=this[_0xeb113e(0xee)](),this[_0xeb113e(0xf5)]=this[_0xeb113e(0x114)](),this[_0xeb113e(0x108)]=this[_0xeb113e(0x101)](),this[_0xeb113e(0x112)]=this[_0xeb113e(0x10f)]([this[_0xeb113e(0x127)],this[_0xeb113e(0xf5)],this[_0xeb113e(0x108)]]),this[_0xeb113e(0x120)]=new _0x4fbcae({'focusables':this[_0xeb113e(0x112)],'focusTracker':this[_0xeb113e(0xf8)],'keystrokeHandler':this[_0xeb113e(0x10d)],'actions':{'focusPrevious':_0xeb113e(0x124),'focusNext':_0xeb113e(0xfe)}}),this[_0xeb113e(0x115)](_0xeb113e(0x11d),!0x0),this[_0xeb113e(0x136)](),this[_0xeb113e(0x111)](),this[_0xeb113e(0x129)]();}[_0x2d7277(0xf9)](){const _0x43cb81=_0x2d7277;super[_0x43cb81(0xf9)](),this[_0x43cb81(0x112)][_0x43cb81(0x110)](_0x3ff850=>{const _0x5c0516=_0x43cb81;this[_0x5c0516(0xf8)][_0x5c0516(0x121)](_0x3ff850[_0x5c0516(0x12c)]),this[_0x5c0516(0x10d)][_0x5c0516(0x122)](_0x3ff850[_0x5c0516(0x12c)]);}),_0x3af3ec({'view':this}),this[_0x43cb81(0xf7)]();}[_0x2d7277(0xf1)](){const _0x251467=_0x2d7277;super[_0x251467(0xf1)](),this[_0x251467(0xf8)][_0x251467(0xf1)](),this[_0x251467(0x10d)][_0x251467(0xf1)]();}[_0x2d7277(0xf7)](){const _0x996863=_0x2d7277;this[_0x996863(0xf5)][_0x996863(0xf7)]();}[_0x2d7277(0x103)](){const _0x460ca9=_0x2d7277;return this[_0x460ca9(0xf5)][_0x460ca9(0xfa)][_0x460ca9(0x12c)]?.[_0x460ca9(0x104)]?.[_0x460ca9(0x125)]()||'';}[_0x2d7277(0x12b)](){const _0x3ed3b2=_0x2d7277;this[_0x3ed3b2(0xf5)][_0x3ed3b2(0xfa)][_0x3ed3b2(0x12c)][_0x3ed3b2(0x104)]='',this[_0x3ed3b2(0xf5)][_0x3ed3b2(0x12e)]=null,this[_0x3ed3b2(0x108)][_0x3ed3b2(0x126)]=!0x1;}[_0x2d7277(0xf3)](_0x5db8bd){const _0x3fd1c5=_0x2d7277;this[_0x3fd1c5(0xf5)][_0x3fd1c5(0x12e)]=_0x5db8bd,this[_0x3fd1c5(0x11c)](),this[_0x3fd1c5(0x12f)](_0x3fd1c5(0xed));}[_0x2d7277(0x11f)](){const _0x19838f=_0x2d7277;this[_0x19838f(0xf5)][_0x19838f(0x12e)]=null,this[_0x19838f(0x11c)]();}[_0x2d7277(0xee)](){const _0x9bbb1f=_0x2d7277,_0xaae337=new _0x26cd10(this[_0x9bbb1f(0xff)]);return _0xaae337[_0x9bbb1f(0x115)]({'icon':_0x50e38c,'tooltip':_0x30c3df(this[_0x9bbb1f(0xff)],_0x9bbb1f(0x106)),'tooltipPosition':'n','class':[_0x9bbb1f(0x109)]}),this['on'](_0x9bbb1f(0x133),(_0x2d5e90,_0x3f5f40,_0x536a0e)=>{const _0x5f2a4b=_0x9bbb1f;_0xaae337[_0x5f2a4b(0x115)]({'class':[_0x5f2a4b(0x109)+(_0x536a0e?'':_0x5f2a4b(0x132))]});}),_0xaae337;}[_0x2d7277(0x114)](){const _0x2a602c=_0x2d7277,_0x595cbc=new _0x440bd1(this[_0x2a602c(0xff)],_0x7b2649);return _0x595cbc[_0x2a602c(0x115)]({'label':_0x30c3df(this[_0x2a602c(0xff)],_0x2a602c(0x118)),'class':_0x2a602c(0xec)}),_0x595cbc[_0x2a602c(0xfa)][_0x2a602c(0x115)]({'placeholder':_0x30c3df(this[_0x2a602c(0xff)],_0x2a602c(0xf2))}),_0x595cbc;}[_0x2d7277(0x101)](){const _0x4f7fd3=_0x2d7277,_0x50c69e=new _0x26cd10(this[_0x4f7fd3(0xff)]);return _0x50c69e[_0x4f7fd3(0x115)]({'icon':_0x56434d,'tooltip':_0x30c3df(this[_0x4f7fd3(0xff)],_0x4f7fd3(0xf6)),'tooltipPosition':'n','class':_0x4f7fd3(0x107),'type':_0x4f7fd3(0xef),'isEnabled':!0x1}),_0x50c69e;}[_0x2d7277(0x136)](){const _0x177fe8=_0x2d7277,_0xc5629e=new _0x41d6f8(this[_0x177fe8(0xff)],{'label':_0x30c3df(this[_0x177fe8(0xff)],_0x177fe8(0xf6)),'class':_0x177fe8(0x12d)});_0xc5629e[_0x177fe8(0xfc)][_0x177fe8(0x121)](this[_0x177fe8(0x127)],0x0),this[_0x177fe8(0x135)]({'tag':_0x177fe8(0x123),'attributes':{'class':oh,'tabindex':'-1'},'children':[_0xc5629e,{'tag':_0x177fe8(0x130),'attributes':{'class':ch},'children':[this[_0x177fe8(0xf5)],this[_0x177fe8(0x108)]]}]});}[_0x2d7277(0x111)](){const _0x7ae409=_0x2d7277;this[_0x7ae409(0x127)]['on'](_0x7ae409(0x10e),()=>{const _0x255391=_0x7ae409;this[_0x255391(0x12b)](),this[_0x255391(0x12f)](_0x255391(0x10b));}),this[_0x7ae409(0xf5)][_0x7ae409(0xfa)]['on'](_0x7ae409(0x10c),()=>{const _0x4da946=_0x7ae409;this[_0x4da946(0x11f)](),this[_0x4da946(0x11c)](),this[_0x4da946(0x12f)](_0x4da946(0xed));}),this['on'](_0x7ae409(0xef),_0x2b2161=>{const _0x458d91=_0x7ae409;_0x2b2161[_0x458d91(0x100)](),this[_0x458d91(0x128)]();});}[_0x2d7277(0x129)](){const _0x153200=_0x2d7277;this[_0x153200(0x10d)][_0x153200(0x115)](_0x153200(0x117),(_0x1fe8b2,_0x12b77e)=>{const _0x1c4efd=_0x153200;this[_0x1c4efd(0x12b)](),this[_0x1c4efd(0x12f)](_0x1c4efd(0x10b)),_0x12b77e();});}[_0x2d7277(0x128)](){const _0x4e2c65=_0x2d7277,_0x3fefc8=this[_0x4e2c65(0x103)]()[_0x4e2c65(0x125)]();_0x3fefc8?this[_0x4e2c65(0xfd)](_0x3fefc8)?(this[_0x4e2c65(0x11f)](),this[_0x4e2c65(0x12f)](_0x4e2c65(0x134),_0x3fefc8)):this[_0x4e2c65(0xf3)](_0x30c3df(this[_0x4e2c65(0xff)],_0x4e2c65(0x12a))):this[_0x4e2c65(0xf3)](_0x30c3df(this[_0x4e2c65(0xff)],_0x4e2c65(0xf0)));}[_0x2d7277(0x11c)](){const _0x3d0ce4=_0x2d7277,_0x32532c=this[_0x3d0ce4(0x103)]()[_0x3d0ce4(0x125)](),_0x2593e2=!!this[_0x3d0ce4(0xf5)][_0x3d0ce4(0x12e)];this[_0x3d0ce4(0x108)][_0x3d0ce4(0x126)]=_0x32532c[_0x3d0ce4(0x10a)]>0x0&&!_0x2593e2;}[_0x2d7277(0xfd)](_0xcb2104){try{return!!new URL(_0xcb2104);}catch{return!0x1;}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4a22ca=_0x13cd;(function(_0x23e75d,_0x2df4e8){const _0x3a1b52=_0x13cd,_0x375734=_0x23e75d();while(!![]){try{const _0x3743b7=parseInt(_0x3a1b52(0x1ff))/0x1*(-parseInt(_0x3a1b52(0x23a))/0x2)+parseInt(_0x3a1b52(0x214))/0x3*(parseInt(_0x3a1b52(0x1b1))/0x4)+-parseInt(_0x3a1b52(0x234))/0x5+parseInt(_0x3a1b52(0x22b))/0x6+-parseInt(_0x3a1b52(0x209))/0x7+parseInt(_0x3a1b52(0x1c4))/0x8+parseInt(_0x3a1b52(0x1e6))/0x9;if(_0x3743b7===_0x2df4e8)break;else _0x375734['push'](_0x375734['shift']());}catch(_0x202d2a){_0x375734['push'](_0x375734['shift']());}}}(_0x3bd2,0x36beb));import{BalloonPanelView as _0x39381f,ButtonView as _0x1242df,clickOutsideHandler as _0x3e17bd,FileDialogButtonView as _0x128ebe,IconView as _0x1a723d,View as _0x1b8fce}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x32bf20,IconDocument as _0x264981,IconDocumentOutline as _0x16a989,IconDropdownArrow as _0x304388,IconLink as _0x1a77ea,IconPaperClip as _0x586e26}from'@ckeditor/ckeditor5-icons';function _0x13cd(_0xe864d,_0xde6cd7){const _0x3bd28e=_0x3bd2();return _0x13cd=function(_0x13cd73,_0x2ca566){_0x13cd73=_0x13cd73-0x1ac;let _0x117c8c=_0x3bd28e[_0x13cd73];return _0x117c8c;},_0x13cd(_0xe864d,_0xde6cd7);}import{AIChatContextItemButtonView as _0x437d2a}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x28b039}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0xe75392}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0xd65d29}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x17598}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x4a22ca(0x1c6),_0x4a22ca(0x1fa),_0x4a22ca(0x1c8),_0x4a22ca(0x1e2),_0x4a22ca(0x21c),_0x4a22ca(0x1d9),_0x4a22ca(0x205)];function _0x3bd2(){const _0x51d3c0=['southArrowNorth','remove','_urlInputView','_handleAddContextButtonClick','icon','current','861550rhtEdB','_removeContextFromCollection','setContainerElement','tooltip','closeSourceResourceBalloon','add','214gTajGI','isReadOnly','ck-reset_all-excluded','hideUrlBalloonPanel','_currentContextsChips','extendTemplate','ck-ai-chat-controls-button','_createArrowView','isOn','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','northArrowSouthWest','isAnyResourceBalloonVisible','body','7660OWgcJy','_createBalloonButton','isHidden','clearConversationContextItems','_setBalloonPanelContent','_setupAddContextBalloonClickOutsideHandler','_handleUrlSubmit','_bindEventHandlers','label','children','northArrowSouthEast','submitUrl','length','_setupTemplate','bodyCollection','document','set','ck-ai-chat-context-controls__add-context-button','ck-ai-chat','2759400iEmPMR','_createContextButton','addDocumentToContext','element','addUrlToContext','setConversationContext','AI_CHAT_CONTEXT_FILE_LABEL','ck-ai-chat-context-controls__show-more-balloon-panel','searchInputVisibleFrom','balloonView','ck-ai-chat-context-controls__pending-contexts','find','updateResourceState','showAddContextBalloonPanel','_overflowManager','conversation','setAddContextOptions','buttonView','execute','ck-ai-chat-context-controls__url-balloon-panel','done','loadSourceResources','get','defaultPositions','removeContextItemChip','_resourcesBalloonView','_urlBalloonPanelView','bind','files','addContextButtonView','addResourceToContext','ck-ai-chat-context-controls__add-context-balloon-panel','render','_showSourceResourcesBalloon','1358172CtDUCl','pin','destroy','show','locale','showSourceResourcesBalloon','isVisible','clearCurrentContextItems','urls','AI_CHAT_CONTEXT_URL_LABEL','AI_CHAT_CONTEXT_ADD_CONTEXT','_getLimiterElement','menuitem','populateSourceResourceBalloon','clear','showUrlBalloonPanel','customItems','setTemplate','_addContextToCollection','_setupUrlBalloonClickOutsideHandler','addFileToContext','div','enabled','__arrow','arrowView','3539PvlDhr','isEnabled','_conversationContextsChips','setContextItemLoading','hide','_setupAllBalloonClickOutsideHandlers','executeCustomItemCallback','_addContextBalloonConfig','focus','_createAddContextBalloonPanelView','702002TraVar','_createResourcesBalloonView','refreshBalloon','reorganizeChips','hideAddContextBalloonPanel','source','_addContextBalloonPanelView','_createBaseBalloonPanel','ck-ai-chat-controls_context_show-more-button','_setAddContextButtonEnabled','fire','36JcGfvu','overflowChips','type','addContextItem','ck-ai-chat-context-controls__balloon-button','northArrowSouth','ck-ai-chat-context-chips-wrapper-balloon','_hasExactlyOneSource','removeContextItem','ck-ai-chat-context-controls','sources','content','closest','cancel','isLoading','ck-ai-chat-context-controls__balloon-button-source','southArrowNorthWest','_createUrlBalloonPanelView','_addUrlContent','createCollection','_createAddContextButtonView','_toggleAddContextBalloon','southArrowNorthEast','2140146OEnskM','customItem','withBackButton'];_0x3bd2=function(){return _0x51d3c0;};return _0x3bd2();}const Po=_0x4a22ca(0x21d),Ro=_0x4a22ca(0x1ce),So=_0x4a22ca(0x1e3),Oo=_0x4a22ca(0x1c2),Uo=_0x4a22ca(0x1d7),Lo=_0x4a22ca(0x218),No=_0x4a22ca(0x223),bo=_0x4a22ca(0x240),Mo=_0x4a22ca(0x21a),go=_0x4a22ca(0x211),jo=_0x4a22ca(0x1cb),Ho=_0x4a22ca(0x1c3),Fo=[_0x39381f[_0x4a22ca(0x1db)][_0x4a22ca(0x1ae)],_0x39381f[_0x4a22ca(0x1db)][_0x4a22ca(0x219)],_0x39381f[_0x4a22ca(0x1db)][_0x4a22ca(0x1bb)],_0x39381f[_0x4a22ca(0x1db)][_0x4a22ca(0x224)],_0x39381f[_0x4a22ca(0x1db)][_0x4a22ca(0x22e)],_0x39381f[_0x4a22ca(0x1db)][_0x4a22ca(0x22a)]];export class AIChatContextPanelView extends _0x1b8fce{[_0x4a22ca(0x1e1)];[_0x4a22ca(0x23e)]=this[_0x4a22ca(0x227)]();[_0x4a22ca(0x201)]=this[_0x4a22ca(0x227)]();[_0x4a22ca(0x1d2)];[_0x4a22ca(0x20f)];[_0x4a22ca(0x1de)];[_0x4a22ca(0x230)];[_0x4a22ca(0x1dd)];[_0x4a22ca(0x206)];[_0x4a22ca(0x21b)]=!0x1;[_0x4a22ca(0x1bf)];constructor(_0x91976c,_0x6597d3){const _0x173a68=_0x4a22ca;super(_0x91976c),this[_0x173a68(0x1bf)]=_0x6597d3[_0x173a68(0x1bf)],this[_0x173a68(0x23e)]=this[_0x173a68(0x227)](),this[_0x173a68(0x201)]=this[_0x173a68(0x227)](),this[_0x173a68(0x1e1)]=this[_0x173a68(0x228)](_0x91976c),this[_0x173a68(0x20f)]=this[_0x173a68(0x208)](_0x91976c),this[_0x173a68(0x1de)]=this[_0x173a68(0x225)](_0x91976c),this[_0x173a68(0x1dd)]=this[_0x173a68(0x20a)](_0x91976c,_0x6597d3);const _0x4f460c={'cssClasses':{'showMoreButton':go,'showMoreBalloon':jo,'overflowContainer':Mo,'controlsButton':bo}};this[_0x173a68(0x1d2)]=new _0xe75392(_0x91976c,this[_0x173a68(0x23e)],_0x4f460c,this[_0x173a68(0x1bf)],this),this[_0x173a68(0x206)]={'buttonView':this[_0x173a68(0x1e1)],'balloonView':this[_0x173a68(0x20f)],'hideMethod':this[_0x173a68(0x20d)][_0x173a68(0x1df)](this),'showMethod':this[_0x173a68(0x1d1)][_0x173a68(0x1df)](this)},this[_0x173a68(0x1be)](),this[_0x173a68(0x1b8)]();}[_0x4a22ca(0x1e4)](){const _0x599554=_0x4a22ca;super[_0x599554(0x1e4)](),this[_0x599554(0x204)](),this[_0x599554(0x1d2)][_0x599554(0x236)](this[_0x599554(0x1c7)]),this[_0x599554(0x1d2)][_0x599554(0x20c)]();}[_0x4a22ca(0x1e8)](){const _0x22aa2d=_0x4a22ca;super[_0x22aa2d(0x1e8)](),this[_0x22aa2d(0x1d2)][_0x22aa2d(0x1e8)](),this[_0x22aa2d(0x1dd)][_0x22aa2d(0x1e8)]();}[_0x4a22ca(0x217)](_0x25a958,_0x38d9bd){const _0x56f490=_0x4a22ca,_0x5e63d4=this[_0x56f490(0x1c5)](_0x25a958,_0x56f490(0x233),!0x0,_0x38d9bd);this[_0x56f490(0x1f8)](_0x5e63d4,this[_0x56f490(0x23e)]),this[_0x56f490(0x1d2)][_0x56f490(0x20c)]();}[_0x4a22ca(0x21c)](_0x247833){const _0x411598=_0x4a22ca;this[_0x411598(0x235)](_0x247833,this[_0x411598(0x23e)]),this[_0x411598(0x235)](_0x247833,this[_0x411598(0x1d2)][_0x411598(0x215)]),this[_0x411598(0x1d2)][_0x411598(0x20c)]();}[_0x4a22ca(0x202)](_0x5d8429,_0xbff15c){const _0x46d6c6=_0x4a22ca;let _0x509b4f=this[_0x46d6c6(0x23e)][_0x46d6c6(0x1cf)](_0x10c9b6=>_0x10c9b6['id']===_0x5d8429);_0x509b4f||(_0x509b4f=this[_0x46d6c6(0x1d2)][_0x46d6c6(0x215)][_0x46d6c6(0x1cf)](_0x467bcc=>_0x467bcc['id']===_0x5d8429)),_0x509b4f&&(_0x509b4f[_0x46d6c6(0x222)]=_0xbff15c);}[_0x4a22ca(0x1c9)](_0x1ba5e7){const _0x415203=_0x4a22ca;this[_0x415203(0x201)][_0x415203(0x1f4)]();for(const _0x4d6a2f of _0x1ba5e7){const _0x221fb8=this[_0x415203(0x1c5)](_0x4d6a2f,_0x415203(0x1d3),!0x1,!0x1);this[_0x415203(0x1f8)](_0x221fb8,this[_0x415203(0x201)]);}}[_0x4a22ca(0x1ed)](){const _0x4492ff=_0x4a22ca;this[_0x4492ff(0x23e)][_0x4492ff(0x1f4)](),this[_0x4492ff(0x1d2)][_0x4492ff(0x1f4)]();}[_0x4a22ca(0x1b4)](){const _0x414911=_0x4a22ca;this[_0x414911(0x201)][_0x414911(0x1f4)]();}[_0x4a22ca(0x1d0)](_0x5b2149,_0x2e75d6,_0x269d0d){const _0x288299=_0x4a22ca;this[_0x288299(0x1dd)][_0x288299(0x1d0)](_0x5b2149,_0x2e75d6,_0x269d0d);}[_0x4a22ca(0x20d)](){const _0x397f73=_0x4a22ca;this[_0x397f73(0x229)](!0x1);}[_0x4a22ca(0x1d1)](){const _0x52a7cb=_0x4a22ca;this[_0x52a7cb(0x229)](!0x0);}[_0x4a22ca(0x23d)](){const _0x559413=_0x4a22ca;this[_0x559413(0x1de)][_0x559413(0x203)](),this[_0x559413(0x1e1)][_0x559413(0x1ac)]=!0x1,this[_0x559413(0x230)]&&this[_0x559413(0x230)][_0x559413(0x1f4)]();}[_0x4a22ca(0x1f5)](){const _0x57df70=_0x4a22ca;this[_0x57df70(0x1de)][_0x57df70(0x1e9)](),this[_0x57df70(0x1e1)][_0x57df70(0x1ac)]=!0x0;}[_0x4a22ca(0x1e5)]({source:_0x2ecf3b,withBackButton:_0xce398a}){const _0x522f30=_0x4a22ca;this[_0x522f30(0x1dd)][_0x522f30(0x1eb)]({'source':_0x2ecf3b,'withBackButton':_0xce398a}),this[_0x522f30(0x1e1)][_0x522f30(0x1ac)]=!0x0;}[_0x4a22ca(0x1f3)](_0x2d98a7,_0x557f4e,_0x28f3b8,_0x1a1d79){const _0x510ba5=_0x4a22ca;this[_0x510ba5(0x1dd)][_0x510ba5(0x1f3)](_0x2d98a7,_0x28f3b8,_0x1a1d79);}[_0x4a22ca(0x238)](_0x6204ec){const _0x3ab544=_0x4a22ca;this[_0x3ab544(0x1dd)][_0x3ab544(0x238)](_0x6204ec),this[_0x3ab544(0x1e1)][_0x3ab544(0x1ac)]=!0x1;}[_0x4a22ca(0x1d4)](_0x4e3f1f){const _0x5d07f5=_0x4a22ca;this[_0x5d07f5(0x1b5)](this[_0x5d07f5(0x20f)],this[_0x5d07f5(0x1ea)],_0x4e3f1f),this[_0x5d07f5(0x212)](_0x4e3f1f);}[_0x4a22ca(0x212)](_0x34a7eb){const _0x23197b=_0x4a22ca,_0x596efd=!_0x34a7eb[_0x23197b(0x1c0)][_0x23197b(0x1b3)]&&_0x34a7eb[_0x23197b(0x1c0)][_0x23197b(0x1fc)],_0x346b72=_0x34a7eb[_0x23197b(0x1ee)][_0x23197b(0x1fc)],_0x60581c=_0x34a7eb[_0x23197b(0x1e0)][_0x23197b(0x1fc)],_0x203068=_0x34a7eb[_0x23197b(0x21e)][_0x23197b(0x1bd)]>0x0,_0x426b59=_0x34a7eb[_0x23197b(0x1f6)]&&_0x34a7eb[_0x23197b(0x1f6)][_0x23197b(0x1bd)]>0x0;this[_0x23197b(0x1e1)][_0x23197b(0x200)]=_0x596efd||_0x346b72||_0x60581c||_0x203068||_0x426b59;}[_0x4a22ca(0x1be)](){const _0x3bfd7c=_0x4a22ca;this[_0x3bfd7c(0x1f7)]({'tag':_0x3bfd7c(0x1fb),'attributes':{'class':[Po,_0x3bfd7c(0x23c)]},'children':[{'tag':_0x3bfd7c(0x1fb),'attributes':{'class':Ro},'children':this[_0x3bfd7c(0x23e)]}]});}[_0x4a22ca(0x1b8)](){const _0x6a9708=_0x4a22ca;this[_0x6a9708(0x1e1)]['on'](_0x6a9708(0x1d6),()=>{const _0x322f2f=_0x6a9708;this[_0x322f2f(0x231)]();});}[_0x4a22ca(0x228)](_0x48e192){const _0x416f01=_0x4a22ca,_0x17109f=new _0x1242df(_0x48e192);return _0x17109f[_0x416f01(0x1c1)]({'label':_0xd65d29(_0x48e192,_0x416f01(0x1f0)),'class':bo+'\x20'+Oo,'icon':_0x586e26,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x17109f;}[_0x4a22ca(0x208)](_0x6ec73a){const _0x49da63=_0x4a22ca;return this[_0x49da63(0x210)](_0x6ec73a,So);}[_0x4a22ca(0x225)](_0x208acb){const _0x250a40=_0x4a22ca,_0x44061d=this[_0x250a40(0x210)](_0x208acb,Uo);return this[_0x250a40(0x226)](_0x44061d,_0x208acb),_0x44061d;}[_0x4a22ca(0x20a)](_0x2b4ef2,_0x392b14){const _0x5504e4=_0x4a22ca,_0x3a09b9={'searchInputVisibleFrom':_0x392b14[_0x5504e4(0x1cc)],'onBackToContext':()=>{const _0x5e05a9=_0x5504e4;this[_0x5e05a9(0x1d1)](),this[_0x5e05a9(0x20f)][_0x5e05a9(0x1e7)]({'target':this[_0x5e05a9(0x1e1)][_0x5e05a9(0x1c7)],'limiter':this[_0x5e05a9(0x1f1)](),'positions':Fo});},'onResourceSelected':(_0x381d3d,_0x29e4c8)=>{const _0x69f3d=_0x5504e4;this[_0x69f3d(0x213)](_0x69f3d(0x1e2),{'source':_0x381d3d,'resource':_0x29e4c8});},'onLoadSourceResources':_0x113514=>{const _0x5b4645=_0x5504e4;this[_0x5b4645(0x213)](_0x5b4645(0x1d9),_0x113514);},'onBalloonClosed':()=>{const _0x5726f=_0x5504e4;this[_0x5726f(0x1e1)][_0x5726f(0x1ac)]=!0x1;},'getLimiterElement':()=>this[_0x5504e4(0x1f1)](),'getTargetElement':()=>this[_0x5504e4(0x1e1)][_0x5504e4(0x1c7)]};return new _0x17598(_0x2b4ef2,_0x392b14[_0x5504e4(0x1bf)],_0x3a09b9);}[_0x4a22ca(0x1f1)](){const _0x3131b7=_0x4a22ca;return this[_0x3131b7(0x1c7)]?.[_0x3131b7(0x220)]('.'+Ho)||document[_0x3131b7(0x1b0)];}[_0x4a22ca(0x210)](_0x1f9392,_0x4b905c){const _0x5087a7=_0x4a22ca,_0x14cf2c=new _0x39381f(_0x1f9392);return _0x14cf2c[_0x5087a7(0x23f)]({'attributes':{'class':_0x4b905c}}),this[_0x5087a7(0x1bf)][_0x5087a7(0x239)](_0x14cf2c),_0x14cf2c;}[_0x4a22ca(0x1b5)](_0x1f75d6,_0x2714fc,_0x20cc99){const _0x2005ba=_0x4a22ca;if(_0x1f75d6[_0x2005ba(0x21f)][_0x2005ba(0x1f4)](),!_0x20cc99[_0x2005ba(0x1c0)][_0x2005ba(0x1b3)]&&_0x20cc99[_0x2005ba(0x1c0)][_0x2005ba(0x1fc)]){const _0x27b140=this[_0x2005ba(0x1b2)](_0x2714fc,{'label':_0xd65d29(_0x2714fc,_0x2005ba(0x1ad)),'icon':_0x264981});_0x27b140['on'](_0x2005ba(0x1d6),()=>{const _0x4d7537=_0x2005ba;this[_0x4d7537(0x213)](_0x4d7537(0x1c6)),this[_0x4d7537(0x20d)]();}),_0x1f75d6[_0x2005ba(0x21f)][_0x2005ba(0x239)](_0x27b140);}if(_0x20cc99[_0x2005ba(0x1ee)][_0x2005ba(0x1fc)]){const _0x2076a4=this[_0x2005ba(0x1b2)](_0x2714fc,{'label':_0xd65d29(_0x2714fc,_0x2005ba(0x1ef)),'icon':_0x1a77ea});_0x2076a4['on'](_0x2005ba(0x1d6),()=>{const _0x1bf0ac=_0x2005ba;this[_0x1bf0ac(0x20d)](),this[_0x1bf0ac(0x1f5)](),this[_0x1bf0ac(0x1de)][_0x1bf0ac(0x1e7)]({'target':this[_0x1bf0ac(0x1e1)][_0x1bf0ac(0x1c7)],'limiter':this[_0x1bf0ac(0x1f1)](),'positions':Fo}),this[_0x1bf0ac(0x230)][_0x1bf0ac(0x207)]();}),_0x1f75d6[_0x2005ba(0x21f)][_0x2005ba(0x239)](_0x2076a4);}if(_0x20cc99[_0x2005ba(0x1e0)][_0x2005ba(0x1fc)]){const _0x35f2e8=new _0x128ebe(_0x2714fc);_0x35f2e8[_0x2005ba(0x1c1)]({'label':_0xd65d29(_0x2714fc,_0x2005ba(0x1ca)),'icon':_0x32bf20,'withText':!0x0,'tooltip':!0x0,'class':Lo,'allowMultipleFiles':!0x0}),_0x35f2e8['on'](_0x2005ba(0x1d6),()=>{const _0xc313f2=_0x2005ba;this[_0xc313f2(0x20d)]();}),_0x35f2e8['on'](_0x2005ba(0x1d8),(_0x57c141,_0x26b21a)=>{const _0x579a3b=_0x2005ba;this[_0x579a3b(0x213)](_0x579a3b(0x1fa),_0x26b21a);}),_0x35f2e8[_0x2005ba(0x237)]=!0x0,_0x1f75d6[_0x2005ba(0x21f)][_0x2005ba(0x239)](_0x35f2e8);}for(const _0x514699 of _0x20cc99[_0x2005ba(0x21e)]){const _0x3a0ed5=this[_0x2005ba(0x1b2)](_0x2714fc,{'label':_0x514699[_0x2005ba(0x1b9)],'icon':_0x514699[_0x2005ba(0x232)]||_0x16a989,'type':_0x2005ba(0x20e)});_0x1f75d6[_0x2005ba(0x21f)][_0x2005ba(0x239)](_0x3a0ed5),_0x3a0ed5['on'](_0x2005ba(0x1d6),()=>{const _0x5715d4=_0x2005ba;this[_0x5715d4(0x20d)](),this[_0x5715d4(0x1e5)]({'source':_0x514699,'withBackButton':!this[_0x5715d4(0x21b)]});});}for(const _0x228126 of _0x20cc99[_0x2005ba(0x1f6)]||[]){const _0x3f5970=this[_0x2005ba(0x1b2)](_0x2714fc,{'label':_0x228126[_0x2005ba(0x1b9)],'icon':_0x228126[_0x2005ba(0x232)]||_0x16a989,'type':_0x2005ba(0x22c)});_0x1f75d6[_0x2005ba(0x21f)][_0x2005ba(0x239)](_0x3f5970),_0x3f5970['on'](_0x2005ba(0x1d6),()=>{const _0x8be7be=_0x2005ba;this[_0x8be7be(0x20d)](),this[_0x8be7be(0x213)](_0x8be7be(0x205),_0x228126);});}this[_0x2005ba(0x21b)]=0x1===_0x1f75d6[_0x2005ba(0x21f)][_0x2005ba(0x1bd)],this[_0x2005ba(0x230)][_0x2005ba(0x22d)]=!this[_0x2005ba(0x21b)];}[_0x4a22ca(0x226)](_0xf5e476,_0xb90f98){const _0x349ef2=_0x4a22ca;this[_0x349ef2(0x230)]=new _0x28b039(_0xb90f98),this[_0x349ef2(0x230)]['on'](_0x349ef2(0x1bc),(_0x1b5112,_0x582686)=>{const _0x3d3182=_0x349ef2;this[_0x3d3182(0x1b7)](_0x582686);}),this[_0x349ef2(0x230)]['on'](_0x349ef2(0x221),()=>{const _0x88f57f=_0x349ef2;this[_0x88f57f(0x23d)](),this[_0x88f57f(0x21b)]||(this[_0x88f57f(0x1d1)](),this[_0x88f57f(0x20f)][_0x88f57f(0x1e7)]({'target':this[_0x88f57f(0x1e1)][_0x88f57f(0x1c7)],'limiter':this[_0x88f57f(0x1f1)](),'positions':Fo}));}),this[_0x349ef2(0x230)]['on'](_0x349ef2(0x20b),()=>{const _0x489d6c=_0x349ef2;this[_0x489d6c(0x1de)][_0x489d6c(0x1ec)]&&this[_0x489d6c(0x1de)][_0x489d6c(0x1e7)]({'target':this[_0x489d6c(0x1e1)][_0x489d6c(0x1c7)],'limiter':this[_0x489d6c(0x1f1)](),'positions':Fo});}),_0xf5e476[_0x349ef2(0x21f)][_0x349ef2(0x239)](this[_0x349ef2(0x230)]);}[_0x4a22ca(0x1b2)](_0x5d0fc7,_0x8a9e5){const _0x221212=_0x4a22ca,_0xa299d6=_0x221212(0x20e)===_0x8a9e5[_0x221212(0x216)]?new SourcesBalloonButtonView(_0x5d0fc7):new _0x1242df(_0x5d0fc7);return _0xa299d6[_0x221212(0x1c1)]({'label':_0x8a9e5[_0x221212(0x1b9)],'icon':_0x8a9e5[_0x221212(0x232)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Lo}),_0xa299d6;}[_0x4a22ca(0x204)](){const _0x538e72=_0x4a22ca;this[_0x538e72(0x1b6)](),this[_0x538e72(0x1f9)]();}[_0x4a22ca(0x1f9)](){const _0x47724d=_0x4a22ca;_0x3e17bd({'emitter':this[_0x47724d(0x1de)],'contextElements':[this[_0x47724d(0x1de)][_0x47724d(0x1c7)]],'callback':()=>{const _0x30bf79=_0x47724d;this[_0x30bf79(0x23d)]();},'activator':()=>this[_0x47724d(0x1de)][_0x47724d(0x1ec)]});}[_0x4a22ca(0x229)](_0x5c0db3){const _0x3f773d=_0x4a22ca,_0x501983=this[_0x3f773d(0x206)];_0x501983[_0x3f773d(0x1d5)][_0x3f773d(0x1ac)]=_0x5c0db3,_0x5c0db3?_0x501983[_0x3f773d(0x1cd)][_0x3f773d(0x1e9)]():_0x501983[_0x3f773d(0x1cd)][_0x3f773d(0x203)]();}[_0x4a22ca(0x1b6)](){const _0x397903=_0x4a22ca,{balloonView:_0x38ccf1,buttonView:_0x4b8ad4,hideMethod:_0x58519e}=this[_0x397903(0x206)];_0x3e17bd({'emitter':_0x38ccf1,'contextElements':[_0x38ccf1[_0x397903(0x1c7)],_0x4b8ad4[_0x397903(0x1c7)]],'callback':()=>{_0x58519e();},'activator':()=>_0x4b8ad4[_0x397903(0x1ac)]&&!this[_0x397903(0x1de)][_0x397903(0x1ec)]&&!this[_0x397903(0x1dd)][_0x397903(0x1af)]()});}[_0x4a22ca(0x1c5)](_0x423541,_0x5b79f6,_0x505fbf=!0x1,_0x366626=!0x1){const _0x13001c=_0x4a22ca,_0x9e5da7=_0x13001c(0x1d3)===_0x5b79f6||!0x0===_0x423541[_0x13001c(0x23b)],_0x18db1e=new _0x437d2a(this[_0x13001c(0x1ea)],_0x423541,_0x9e5da7,_0x505fbf,_0x366626);return _0x9e5da7||_0x18db1e['on'](_0x13001c(0x1dc),()=>{const _0x40d718=_0x13001c;this[_0x40d718(0x213)](_0x40d718(0x21c),_0x18db1e['id']);}),_0x18db1e;}[_0x4a22ca(0x1f8)](_0x48914f,_0x4b17e8){const _0x491feb=_0x4a22ca;_0x4b17e8[_0x491feb(0x239)](_0x48914f,0x0);}[_0x4a22ca(0x235)](_0x36a706,_0x17b018){const _0x598420=_0x4a22ca,_0x267a8b=_0x17b018[_0x598420(0x1cf)](_0x8b3a53=>_0x8b3a53['id']===_0x36a706);_0x267a8b&&_0x17b018[_0x598420(0x22f)](_0x267a8b);}[_0x4a22ca(0x231)](){const _0x3de305=_0x4a22ca;this[_0x3de305(0x1e1)][_0x3de305(0x1ac)]?this[_0x3de305(0x20d)]():(this[_0x3de305(0x1d1)](),this[_0x3de305(0x20f)][_0x3de305(0x1e7)]({'target':this[_0x3de305(0x1e1)][_0x3de305(0x1c7)],'limiter':this[_0x3de305(0x1f1)](),'positions':Fo}),this[_0x3de305(0x21b)]&&this[_0x3de305(0x20f)][_0x3de305(0x21f)][_0x3de305(0x1da)](0x0)?.[_0x3de305(0x213)](_0x3de305(0x1d6)));}[_0x4a22ca(0x1b7)](_0x1922be){const _0x3c039a=_0x4a22ca;this[_0x3c039a(0x230)][_0x3c039a(0x1f4)](),this[_0x3c039a(0x23d)](),this[_0x3c039a(0x213)](_0x3c039a(0x1c8),_0x1922be);}}export class SourcesBalloonButtonView extends _0x1242df{[_0x4a22ca(0x1fe)];constructor(_0x272661){const _0x2c0c55=_0x4a22ca;super(_0x272661),this[_0x2c0c55(0x1c1)]({'withText':!0x0,'role':_0x2c0c55(0x1f2)}),this[_0x2c0c55(0x1fe)]=this[_0x2c0c55(0x241)](),this[_0x2c0c55(0x23f)]({'attributes':{'class':[No]}});}[_0x4a22ca(0x1e4)](){const _0x105aaf=_0x4a22ca;super[_0x105aaf(0x1e4)](),this[_0x105aaf(0x1ba)][_0x105aaf(0x239)](this[_0x105aaf(0x1fe)]);}[_0x4a22ca(0x241)](){const _0x1f1261=_0x4a22ca,_0x5b8a2c=new _0x1a723d();return _0x5b8a2c[_0x1f1261(0x21f)]=_0x304388,_0x5b8a2c[_0x1f1261(0x23f)]({'attributes':{'class':No+_0x1f1261(0x1fd)}}),_0x5b8a2c;}}
23
+ function _0x536b(_0x223d75,_0x3cb389){const _0x3b1882=_0x3b18();return _0x536b=function(_0x536bd9,_0xa98282){_0x536bd9=_0x536bd9-0x134;let _0x2b91a5=_0x3b1882[_0x536bd9];return _0x2b91a5;},_0x536b(_0x223d75,_0x3cb389);}const _0x194ffa=_0x536b;(function(_0x4c4bab,_0x2864cc){const _0x11bb75=_0x536b,_0x3582b7=_0x4c4bab();while(!![]){try{const _0x1276bd=parseInt(_0x11bb75(0x1c2))/0x1+parseInt(_0x11bb75(0x189))/0x2*(parseInt(_0x11bb75(0x15e))/0x3)+-parseInt(_0x11bb75(0x139))/0x4+parseInt(_0x11bb75(0x17b))/0x5+-parseInt(_0x11bb75(0x194))/0x6+parseInt(_0x11bb75(0x18b))/0x7*(-parseInt(_0x11bb75(0x1b8))/0x8)+-parseInt(_0x11bb75(0x16c))/0x9;if(_0x1276bd===_0x2864cc)break;else _0x3582b7['push'](_0x3582b7['shift']());}catch(_0x4ff178){_0x3582b7['push'](_0x3582b7['shift']());}}}(_0x3b18,0xe80b7));import{BalloonPanelView as _0x3ee44c,ButtonView as _0x3ba104,clickOutsideHandler as _0x1ba5d4,FileDialogButtonView as _0x36463b,IconView as _0x3c7a35,View as _0x413c53}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x522d81,IconDocument as _0x54593e,IconDocumentOutline as _0xd336f8,IconDropdownArrow as _0x26f323,IconLink as _0x9c14fe,IconPaperClip as _0x10dc40}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x5c780e}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x5f32e7}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x2a535e}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x32305a}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x309f2c}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x194ffa(0x169),_0x194ffa(0x1c4),_0x194ffa(0x14f),_0x194ffa(0x156),_0x194ffa(0x177),_0x194ffa(0x1b5),_0x194ffa(0x150)];const Oo=_0x194ffa(0x134),Uo=_0x194ffa(0x16e),Lo=_0x194ffa(0x137),No=_0x194ffa(0x171),Mo=_0x194ffa(0x175),Ho=_0x194ffa(0x15f),jo=_0x194ffa(0x1b1),Fo=_0x194ffa(0x173),Xo=_0x194ffa(0x17f),yo=_0x194ffa(0x1b4),Do=_0x194ffa(0x1a3),$o=_0x194ffa(0x166),Wo=[_0x3ee44c[_0x194ffa(0x1bb)][_0x194ffa(0x159)],_0x3ee44c[_0x194ffa(0x1bb)][_0x194ffa(0x1bf)],_0x3ee44c[_0x194ffa(0x1bb)][_0x194ffa(0x172)],_0x3ee44c[_0x194ffa(0x1bb)][_0x194ffa(0x142)],_0x3ee44c[_0x194ffa(0x1bb)][_0x194ffa(0x135)],_0x3ee44c[_0x194ffa(0x1bb)][_0x194ffa(0x140)]];export class AIChatContextPanelView extends _0x413c53{[_0x194ffa(0x182)];[_0x194ffa(0x1c6)]=this[_0x194ffa(0x13e)]();[_0x194ffa(0x167)]=this[_0x194ffa(0x13e)]();[_0x194ffa(0x180)];[_0x194ffa(0x1bc)];[_0x194ffa(0x188)];[_0x194ffa(0x157)];[_0x194ffa(0x154)];[_0x194ffa(0x14a)];[_0x194ffa(0x19b)]=!0x1;[_0x194ffa(0x168)];constructor(_0x309332,_0x4e79f3){const _0x3ed7f5=_0x194ffa;super(_0x309332),this[_0x3ed7f5(0x168)]=_0x4e79f3[_0x3ed7f5(0x168)],this[_0x3ed7f5(0x1c6)]=this[_0x3ed7f5(0x13e)](),this[_0x3ed7f5(0x167)]=this[_0x3ed7f5(0x13e)](),this[_0x3ed7f5(0x182)]=this[_0x3ed7f5(0x185)](_0x309332),this[_0x3ed7f5(0x1bc)]=this[_0x3ed7f5(0x14c)](_0x309332),this[_0x3ed7f5(0x188)]=this[_0x3ed7f5(0x146)](_0x309332),this[_0x3ed7f5(0x154)]=this[_0x3ed7f5(0x1b9)](_0x309332,_0x4e79f3);const _0xae6e20={'cssClasses':{'showMoreButton':yo,'showMoreBalloon':Do,'overflowContainer':Xo,'controlsButton':Fo}};this[_0x3ed7f5(0x180)]=new _0x2a535e(_0x309332,this[_0x3ed7f5(0x1c6)],_0xae6e20,this[_0x3ed7f5(0x168)],this),this[_0x3ed7f5(0x14a)]={'buttonView':this[_0x3ed7f5(0x182)],'balloonView':this[_0x3ed7f5(0x1bc)],'hideMethod':this[_0x3ed7f5(0x16a)][_0x3ed7f5(0x138)](this),'showMethod':this[_0x3ed7f5(0x17c)][_0x3ed7f5(0x138)](this)},this[_0x3ed7f5(0x17a)](),this[_0x3ed7f5(0x18c)]();}[_0x194ffa(0x176)](){const _0x26d07d=_0x194ffa;super[_0x26d07d(0x176)](),this[_0x26d07d(0x1c0)](),this[_0x26d07d(0x180)][_0x26d07d(0x183)](this[_0x26d07d(0x1c3)]),this[_0x26d07d(0x180)][_0x26d07d(0x1b7)]();}[_0x194ffa(0x174)](){const _0x37fce2=_0x194ffa;super[_0x37fce2(0x174)](),this[_0x37fce2(0x180)][_0x37fce2(0x174)](),this[_0x37fce2(0x154)][_0x37fce2(0x174)]();}[_0x194ffa(0x179)](_0x172450,_0xa2439b){const _0x2de97a=_0x194ffa,_0x3e2c01=this[_0x2de97a(0x19a)](_0x172450,_0x2de97a(0x1b2),!0x0,_0xa2439b);this[_0x2de97a(0x1aa)](_0x3e2c01,this[_0x2de97a(0x1c6)]),this[_0x2de97a(0x180)][_0x2de97a(0x1b7)]();}[_0x194ffa(0x177)](_0x5d4b01){const _0x2282fc=_0x194ffa;this[_0x2282fc(0x1bd)](_0x5d4b01,this[_0x2282fc(0x1c6)]),this[_0x2282fc(0x1bd)](_0x5d4b01,this[_0x2282fc(0x180)][_0x2282fc(0x196)]),this[_0x2282fc(0x180)][_0x2282fc(0x1b7)]();}[_0x194ffa(0x195)](_0x187dfd,_0x26cb63){const _0x533af2=_0x194ffa;let _0x569979=this[_0x533af2(0x1c6)][_0x533af2(0x1af)](_0x1c8247=>_0x1c8247['id']===_0x187dfd);_0x569979||(_0x569979=this[_0x533af2(0x180)][_0x533af2(0x196)][_0x533af2(0x1af)](_0x4c2fdf=>_0x4c2fdf['id']===_0x187dfd)),_0x569979&&(_0x569979[_0x533af2(0x14e)]=_0x26cb63);}[_0x194ffa(0x144)](_0x5cc0e8){const _0x50a088=_0x194ffa;this[_0x50a088(0x167)][_0x50a088(0x13d)]();for(const _0x21da32 of _0x5cc0e8){const _0x13014a=this[_0x50a088(0x19a)](_0x21da32,_0x50a088(0x193),!0x1,!0x1);this[_0x50a088(0x1aa)](_0x13014a,this[_0x50a088(0x167)]);}}[_0x194ffa(0x18f)](){const _0x289c2e=_0x194ffa;this[_0x289c2e(0x1c6)][_0x289c2e(0x13d)](),this[_0x289c2e(0x180)][_0x289c2e(0x13d)]();}[_0x194ffa(0x165)](){const _0x1eab3a=_0x194ffa;this[_0x1eab3a(0x167)][_0x1eab3a(0x13d)]();}[_0x194ffa(0x197)](_0x466d4f,_0x2d0958,_0x2829bb){const _0x1fc154=_0x194ffa;this[_0x1fc154(0x154)][_0x1fc154(0x197)](_0x466d4f,_0x2d0958,_0x2829bb);}[_0x194ffa(0x16a)](){const _0x6527b8=_0x194ffa;this[_0x6527b8(0x1ae)](!0x1);}[_0x194ffa(0x17c)](){const _0x5b0f70=_0x194ffa;this[_0x5b0f70(0x1ae)](!0x0);}[_0x194ffa(0x1b3)](){const _0x21c96e=_0x194ffa;this[_0x21c96e(0x188)][_0x21c96e(0x16b)](),this[_0x21c96e(0x182)][_0x21c96e(0x186)]=!0x1,this[_0x21c96e(0x157)]&&this[_0x21c96e(0x157)][_0x21c96e(0x13d)]();}[_0x194ffa(0x1ac)](){const _0x2e59ea=_0x194ffa;this[_0x2e59ea(0x188)][_0x2e59ea(0x16d)](),this[_0x2e59ea(0x182)][_0x2e59ea(0x186)]=!0x0;}[_0x194ffa(0x1ad)]({source:_0x3cb3b3,withBackButton:_0x1f175b}){const _0x485b3c=_0x194ffa;this[_0x485b3c(0x154)][_0x485b3c(0x15a)]({'source':_0x3cb3b3,'withBackButton':_0x1f175b}),this[_0x485b3c(0x182)][_0x485b3c(0x186)]=!0x0;}[_0x194ffa(0x1c1)](_0x292d73,_0x5ce3b3,_0x42220c,_0x5e394b){const _0x1be9b1=_0x194ffa;this[_0x1be9b1(0x154)][_0x1be9b1(0x1c1)](_0x292d73,_0x42220c,_0x5e394b);}[_0x194ffa(0x148)](_0x156e5a){const _0x3e0921=_0x194ffa;this[_0x3e0921(0x154)][_0x3e0921(0x148)](_0x156e5a),this[_0x3e0921(0x182)][_0x3e0921(0x186)]=!0x1;}[_0x194ffa(0x160)](_0x3f7765){const _0x1d5e97=_0x194ffa;this[_0x1d5e97(0x14b)](this[_0x1d5e97(0x1bc)],this[_0x1d5e97(0x1b6)],_0x3f7765),this[_0x1d5e97(0x163)](_0x3f7765);}[_0x194ffa(0x163)](_0xa3ef13){const _0x2619b2=_0x194ffa,_0x5abc5b=!_0xa3ef13[_0x2619b2(0x13f)][_0x2619b2(0x17d)]&&_0xa3ef13[_0x2619b2(0x13f)][_0x2619b2(0x198)],_0x373bac=_0xa3ef13[_0x2619b2(0x1a0)][_0x2619b2(0x198)],_0x157c04=_0xa3ef13[_0x2619b2(0x1a7)][_0x2619b2(0x198)],_0x414910=_0xa3ef13[_0x2619b2(0x13a)][_0x2619b2(0x191)]>0x0,_0x44be5e=_0xa3ef13[_0x2619b2(0x1a2)]&&_0xa3ef13[_0x2619b2(0x1a2)][_0x2619b2(0x191)]>0x0;this[_0x2619b2(0x182)][_0x2619b2(0x1a1)]=_0x5abc5b||_0x373bac||_0x157c04||_0x414910||_0x44be5e;}[_0x194ffa(0x17a)](){const _0x574b4f=_0x194ffa;this[_0x574b4f(0x164)]({'tag':_0x574b4f(0x162),'attributes':{'class':[Oo,_0x574b4f(0x190)]},'children':[{'tag':_0x574b4f(0x162),'attributes':{'class':Uo},'children':this[_0x574b4f(0x1c6)]}]});}[_0x194ffa(0x18c)](){const _0x253532=_0x194ffa;this[_0x253532(0x182)]['on'](_0x253532(0x15c),()=>{const _0x29954f=_0x253532;this[_0x29954f(0x18a)]();});}[_0x194ffa(0x185)](_0x2e479e){const _0xa94ee9=_0x194ffa,_0x455342=new _0x3ba104(_0x2e479e);return _0x455342[_0xa94ee9(0x16f)]({'label':_0x32305a(_0x2e479e,_0xa94ee9(0x1c8)),'class':Fo+'\x20'+No,'icon':_0x10dc40,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x455342;}[_0x194ffa(0x14c)](_0x1e7804){const _0x3c2b44=_0x194ffa;return this[_0x3c2b44(0x155)](_0x1e7804,Lo);}[_0x194ffa(0x146)](_0x1a97fd){const _0xc734d4=_0x194ffa,_0x64d086=this[_0xc734d4(0x155)](_0x1a97fd,Mo);return this[_0xc734d4(0x1be)](_0x64d086,_0x1a97fd),_0x64d086;}[_0x194ffa(0x1b9)](_0x2533c6,_0x4e4b3c){const _0x10b2ef=_0x194ffa,_0x28b4ad={'searchInputVisibleFrom':_0x4e4b3c[_0x10b2ef(0x1c5)],'onBackToContext':()=>{const _0x103126=_0x10b2ef;this[_0x103126(0x17c)](),this[_0x103126(0x1bc)][_0x103126(0x147)]({'target':this[_0x103126(0x182)][_0x103126(0x1c3)],'limiter':this[_0x103126(0x1ba)](),'positions':Wo});},'onResourceSelected':(_0x597da8,_0x275ac3)=>{const _0x517721=_0x10b2ef;this[_0x517721(0x18e)](_0x517721(0x156),{'source':_0x597da8,'resource':_0x275ac3});},'onLoadSourceResources':_0x135ea3=>{const _0x44be77=_0x10b2ef;this[_0x44be77(0x18e)](_0x44be77(0x1b5),_0x135ea3);},'onBalloonClosed':()=>{const _0xed9e7a=_0x10b2ef;this[_0xed9e7a(0x182)][_0xed9e7a(0x186)]=!0x1;},'getLimiterElement':()=>this[_0x10b2ef(0x1ba)](),'getTargetElement':()=>this[_0x10b2ef(0x182)][_0x10b2ef(0x1c3)]};return new _0x309f2c(_0x2533c6,_0x4e4b3c[_0x10b2ef(0x168)],_0x28b4ad);}[_0x194ffa(0x1ba)](){const _0x3ff5c6=_0x194ffa;return this[_0x3ff5c6(0x1c3)]?.[_0x3ff5c6(0x192)]('.'+$o)||document[_0x3ff5c6(0x13c)];}[_0x194ffa(0x155)](_0x26fb95,_0xe3e731){const _0x17fb40=_0x194ffa,_0x44a9eb=new _0x3ee44c(_0x26fb95);return _0x44a9eb[_0x17fb40(0x19e)]({'attributes':{'class':_0xe3e731}}),this[_0x17fb40(0x168)][_0x17fb40(0x1a9)](_0x44a9eb),_0x44a9eb;}[_0x194ffa(0x14b)](_0x9245b0,_0x5616f2,_0x4a59b0){const _0x1e1c95=_0x194ffa;if(_0x9245b0[_0x1e1c95(0x141)][_0x1e1c95(0x13d)](),!_0x4a59b0[_0x1e1c95(0x13f)][_0x1e1c95(0x17d)]&&_0x4a59b0[_0x1e1c95(0x13f)][_0x1e1c95(0x198)]){const _0x14436b=this[_0x1e1c95(0x1a5)](_0x5616f2,{'label':_0x32305a(_0x5616f2,_0x1e1c95(0x184)),'icon':_0x54593e});_0x14436b['on'](_0x1e1c95(0x15c),()=>{const _0x30e6c9=_0x1e1c95;this[_0x30e6c9(0x18e)](_0x30e6c9(0x169)),this[_0x30e6c9(0x16a)]();}),_0x9245b0[_0x1e1c95(0x141)][_0x1e1c95(0x1a9)](_0x14436b);}if(_0x4a59b0[_0x1e1c95(0x1a0)][_0x1e1c95(0x198)]){const _0x34fca0=this[_0x1e1c95(0x1a5)](_0x5616f2,{'label':_0x32305a(_0x5616f2,_0x1e1c95(0x15b)),'icon':_0x9c14fe});_0x34fca0['on'](_0x1e1c95(0x15c),()=>{const _0x1d8e10=_0x1e1c95;this[_0x1d8e10(0x16a)](),this[_0x1d8e10(0x1ac)](),this[_0x1d8e10(0x188)][_0x1d8e10(0x147)]({'target':this[_0x1d8e10(0x182)][_0x1d8e10(0x1c3)],'limiter':this[_0x1d8e10(0x1ba)](),'positions':Wo}),this[_0x1d8e10(0x157)][_0x1d8e10(0x15d)]();}),_0x9245b0[_0x1e1c95(0x141)][_0x1e1c95(0x1a9)](_0x34fca0);}if(_0x4a59b0[_0x1e1c95(0x1a7)][_0x1e1c95(0x198)]){const _0x537a42=new _0x36463b(_0x5616f2);_0x537a42[_0x1e1c95(0x16f)]({'label':_0x32305a(_0x5616f2,_0x1e1c95(0x14d)),'icon':_0x522d81,'withText':!0x0,'tooltip':!0x0,'class':Ho,'allowMultipleFiles':!0x0}),_0x537a42['on'](_0x1e1c95(0x15c),()=>{const _0x2f49dd=_0x1e1c95;this[_0x2f49dd(0x16a)]();}),_0x537a42['on'](_0x1e1c95(0x1a4),(_0x401b00,_0x1d5644)=>{const _0x497b28=_0x1e1c95;this[_0x497b28(0x18e)](_0x497b28(0x1c4),_0x1d5644);}),_0x537a42[_0x1e1c95(0x143)]=!0x0,_0x9245b0[_0x1e1c95(0x141)][_0x1e1c95(0x1a9)](_0x537a42);}for(const _0x76362b of _0x4a59b0[_0x1e1c95(0x13a)]){const _0x98f06=this[_0x1e1c95(0x1a5)](_0x5616f2,{'label':_0x76362b[_0x1e1c95(0x1ab)],'icon':_0x76362b[_0x1e1c95(0x18d)]||_0xd336f8,'type':_0x1e1c95(0x1c7)});_0x9245b0[_0x1e1c95(0x141)][_0x1e1c95(0x1a9)](_0x98f06),_0x98f06['on'](_0x1e1c95(0x15c),()=>{const _0x3402a6=_0x1e1c95;this[_0x3402a6(0x16a)](),this[_0x3402a6(0x1ad)]({'source':_0x76362b,'withBackButton':!this[_0x3402a6(0x19b)]});});}for(const _0x33476e of _0x4a59b0[_0x1e1c95(0x1a2)]||[]){const _0x3c43f1=this[_0x1e1c95(0x1a5)](_0x5616f2,{'label':_0x33476e[_0x1e1c95(0x1ab)],'icon':_0x33476e[_0x1e1c95(0x18d)]||_0xd336f8,'type':_0x1e1c95(0x149)});_0x9245b0[_0x1e1c95(0x141)][_0x1e1c95(0x1a9)](_0x3c43f1),_0x3c43f1['on'](_0x1e1c95(0x15c),()=>{const _0x59e253=_0x1e1c95;this[_0x59e253(0x16a)](),this[_0x59e253(0x18e)](_0x59e253(0x150),_0x33476e);});}this[_0x1e1c95(0x19b)]=0x1===_0x9245b0[_0x1e1c95(0x141)][_0x1e1c95(0x191)],this[_0x1e1c95(0x157)][_0x1e1c95(0x152)]=!this[_0x1e1c95(0x19b)];}[_0x194ffa(0x1be)](_0xf038cc,_0x5bf276){const _0x337df7=_0x194ffa;this[_0x337df7(0x157)]=new _0x5f32e7(_0x5bf276),this[_0x337df7(0x157)]['on'](_0x337df7(0x1a6),(_0x91000,_0x4819d0)=>{const _0x2236f3=_0x337df7;this[_0x2236f3(0x13b)](_0x4819d0);}),this[_0x337df7(0x157)]['on'](_0x337df7(0x1b0),()=>{const _0x12d9df=_0x337df7;this[_0x12d9df(0x1b3)](),this[_0x12d9df(0x19b)]||(this[_0x12d9df(0x17c)](),this[_0x12d9df(0x1bc)][_0x12d9df(0x147)]({'target':this[_0x12d9df(0x182)][_0x12d9df(0x1c3)],'limiter':this[_0x12d9df(0x1ba)](),'positions':Wo}));}),this[_0x337df7(0x157)]['on'](_0x337df7(0x153),()=>{const _0xce32a9=_0x337df7;this[_0xce32a9(0x188)][_0xce32a9(0x1c9)]&&this[_0xce32a9(0x188)][_0xce32a9(0x147)]({'target':this[_0xce32a9(0x182)][_0xce32a9(0x1c3)],'limiter':this[_0xce32a9(0x1ba)](),'positions':Wo});}),_0xf038cc[_0x337df7(0x141)][_0x337df7(0x1a9)](this[_0x337df7(0x157)]);}[_0x194ffa(0x1a5)](_0x40799e,_0x3e2300){const _0xc091e0=_0x194ffa,_0x584615=_0xc091e0(0x1c7)===_0x3e2300[_0xc091e0(0x151)]?new SourcesBalloonButtonView(_0x40799e):new _0x3ba104(_0x40799e);return _0x584615[_0xc091e0(0x16f)]({'label':_0x3e2300[_0xc091e0(0x1ab)],'icon':_0x3e2300[_0xc091e0(0x18d)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Ho}),_0x584615;}[_0x194ffa(0x1c0)](){const _0x3cc0c8=_0x194ffa;this[_0x3cc0c8(0x181)](),this[_0x3cc0c8(0x178)]();}[_0x194ffa(0x178)](){const _0x3568cd=_0x194ffa;_0x1ba5d4({'emitter':this[_0x3568cd(0x188)],'contextElements':[this[_0x3568cd(0x188)][_0x3568cd(0x1c3)]],'callback':()=>{const _0x30d003=_0x3568cd;this[_0x30d003(0x1b3)]();},'activator':()=>this[_0x3568cd(0x188)][_0x3568cd(0x1c9)]});}[_0x194ffa(0x1ae)](_0x2c3694){const _0x5b6970=_0x194ffa,_0x11d43b=this[_0x5b6970(0x14a)];_0x11d43b[_0x5b6970(0x158)][_0x5b6970(0x186)]=_0x2c3694,_0x2c3694?_0x11d43b[_0x5b6970(0x170)][_0x5b6970(0x16d)]():_0x11d43b[_0x5b6970(0x170)][_0x5b6970(0x16b)]();}[_0x194ffa(0x181)](){const _0x42506c=_0x194ffa,{balloonView:_0x6625c8,buttonView:_0x4b7a95,hideMethod:_0x502e4f}=this[_0x42506c(0x14a)];_0x1ba5d4({'emitter':_0x6625c8,'contextElements':[_0x6625c8[_0x42506c(0x1c3)],_0x4b7a95[_0x42506c(0x1c3)]],'callback':()=>{_0x502e4f();},'activator':()=>_0x4b7a95[_0x42506c(0x186)]&&!this[_0x42506c(0x188)][_0x42506c(0x1c9)]&&!this[_0x42506c(0x154)][_0x42506c(0x1a8)]()});}[_0x194ffa(0x19a)](_0x734b65,_0xc3dddd,_0x28d853=!0x1,_0x6fa5d1=!0x1){const _0x3b909c=_0x194ffa,_0x301b2f=_0x3b909c(0x193)===_0xc3dddd||!0x0===_0x734b65[_0x3b909c(0x199)],_0x280dd7=new _0x5c780e(this[_0x3b909c(0x1b6)],_0x734b65,_0x301b2f,_0x28d853,_0x6fa5d1);return _0x301b2f||_0x280dd7['on'](_0x3b909c(0x187),()=>{const _0x32c043=_0x3b909c;this[_0x32c043(0x18e)](_0x32c043(0x177),_0x280dd7['id']);}),_0x280dd7;}[_0x194ffa(0x1aa)](_0x3a3180,_0x5659ad){const _0xba19f0=_0x194ffa;_0x5659ad[_0xba19f0(0x1a9)](_0x3a3180,0x0);}[_0x194ffa(0x1bd)](_0x414224,_0x13c665){const _0x2b52d6=_0x194ffa,_0x49a2f6=_0x13c665[_0x2b52d6(0x1af)](_0x23878d=>_0x23878d['id']===_0x414224);_0x49a2f6&&_0x13c665[_0x2b52d6(0x17e)](_0x49a2f6);}[_0x194ffa(0x18a)](){const _0x3d702f=_0x194ffa;this[_0x3d702f(0x182)][_0x3d702f(0x186)]?this[_0x3d702f(0x16a)]():(this[_0x3d702f(0x17c)](),this[_0x3d702f(0x1bc)][_0x3d702f(0x147)]({'target':this[_0x3d702f(0x182)][_0x3d702f(0x1c3)],'limiter':this[_0x3d702f(0x1ba)](),'positions':Wo}),this[_0x3d702f(0x19b)]&&this[_0x3d702f(0x1bc)][_0x3d702f(0x141)][_0x3d702f(0x19f)](0x0)?.[_0x3d702f(0x18e)](_0x3d702f(0x15c)));}[_0x194ffa(0x13b)](_0x214d79){const _0x51b146=_0x194ffa;this[_0x51b146(0x157)][_0x51b146(0x13d)](),this[_0x51b146(0x1b3)](),this[_0x51b146(0x18e)](_0x51b146(0x14f),_0x214d79);}}function _0x3b18(){const _0xabe450=['isVisible','ck-ai-chat-context-controls','southArrowNorth','__arrow','ck-ai-chat-context-controls__add-context-balloon-panel','bind','1649456MfoAKN','sources','_handleUrlSubmit','body','clear','createCollection','document','southArrowNorthEast','content','southArrowNorthWest','tooltip','setConversationContext','arrowView','_createUrlBalloonPanelView','pin','closeSourceResourceBalloon','customItem','_addContextBalloonConfig','_setBalloonPanelContent','_createAddContextBalloonPanelView','AI_CHAT_CONTEXT_FILE_LABEL','isLoading','addUrlToContext','executeCustomItemCallback','type','withBackButton','refreshBalloon','_resourcesBalloonView','_createBaseBalloonPanel','addResourceToContext','_urlInputView','buttonView','northArrowSouthWest','showSourceResourcesBalloon','AI_CHAT_CONTEXT_URL_LABEL','execute','focus','822519qktZgi','ck-ai-chat-context-controls__balloon-button','setAddContextOptions','children','div','_setAddContextButtonEnabled','setTemplate','clearConversationContextItems','ck-ai-chat','_conversationContextsChips','bodyCollection','addDocumentToContext','hideAddContextBalloonPanel','hide','9041841wNIdyL','show','ck-ai-chat-context-controls__pending-contexts','set','balloonView','ck-ai-chat-context-controls__add-context-button','northArrowSouthEast','ck-ai-chat-controls-button','destroy','ck-ai-chat-context-controls__url-balloon-panel','render','removeContextItem','_setupUrlBalloonClickOutsideHandler','addContextItem','_setupTemplate','4500890cteWXf','showAddContextBalloonPanel','isHidden','remove','ck-ai-chat-context-chips-wrapper-balloon','_overflowManager','_setupAddContextBalloonClickOutsideHandler','addContextButtonView','setContainerElement','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','_createAddContextButtonView','isOn','removeContextItemChip','_urlBalloonPanelView','12gwDXQY','_handleAddContextButtonClick','600922VQDGDl','_bindEventHandlers','icon','fire','clearCurrentContextItems','ck-reset_all-excluded','length','closest','conversation','3218088CByNmr','setContextItemLoading','overflowChips','updateResourceState','enabled','isReadOnly','_createContextButton','_hasExactlyOneSource','menuitem','_createArrowView','extendTemplate','get','urls','isEnabled','customItems','ck-ai-chat-context-controls__show-more-balloon-panel','done','_createBalloonButton','submitUrl','files','isAnyResourceBalloonVisible','add','_addContextToCollection','label','showUrlBalloonPanel','_showSourceResourcesBalloon','_toggleAddContextBalloon','find','cancel','ck-ai-chat-context-controls__balloon-button-source','current','hideUrlBalloonPanel','ck-ai-chat-controls_context_show-more-button','loadSourceResources','locale','reorganizeChips','56LtUSzc','_createResourcesBalloonView','_getLimiterElement','defaultPositions','_addContextBalloonPanelView','_removeContextFromCollection','_addUrlContent','northArrowSouth','_setupAllBalloonClickOutsideHandlers','populateSourceResourceBalloon','959522IUElrg','element','addFileToContext','searchInputVisibleFrom','_currentContextsChips','source','AI_CHAT_CONTEXT_ADD_CONTEXT'];_0x3b18=function(){return _0xabe450;};return _0x3b18();}export class SourcesBalloonButtonView extends _0x3ba104{[_0x194ffa(0x145)];constructor(_0x3cec63){const _0x590b55=_0x194ffa;super(_0x3cec63),this[_0x590b55(0x16f)]({'withText':!0x0,'role':_0x590b55(0x19c)}),this[_0x590b55(0x145)]=this[_0x590b55(0x19d)](),this[_0x590b55(0x19e)]({'attributes':{'class':[jo]}});}[_0x194ffa(0x176)](){const _0x1f3733=_0x194ffa;super[_0x1f3733(0x176)](),this[_0x1f3733(0x161)][_0x1f3733(0x1a9)](this[_0x1f3733(0x145)]);}[_0x194ffa(0x19d)](){const _0x590968=_0x194ffa,_0x40a284=new _0x3c7a35();return _0x40a284[_0x590968(0x141)]=_0x26f323,_0x40a284[_0x590968(0x19e)]({'attributes':{'class':jo+_0x590968(0x136)}}),_0x40a284;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x5c48(){const _0x189a09=['_createCancelButtonView','ck-ai-chat-controls-loader','ck-ai-button-secondary\x20ck-ai-button-stop-generating','locale','div','fire','12PaRsHs','47390stwPrx','4757648LSqxki','execute','_loaderView','718659QRfxNB','_cancelButtonView','_createLoaderView','342IBuFwF','243DlVURL','ck-ai-chat-controls-loader-icon','202100uGzEVR','ck-reset_all','ck-ai-chat-controls-loader-wrapper','ck-ai-chat-controls-loader-icon-dot','AI_CHAT_STOP_GENERATING','abortPromptStream','841910NFyxsR','180510ouDrcD','409002JDWGRJ','set','AI_CHAT_IS_WRITING','setTemplate'];_0x5c48=function(){return _0x189a09;};return _0x5c48();}const _0x59f1c6=_0x1d80;(function(_0x4ccfe0,_0xca1c8c){const _0x5f48bf=_0x1d80,_0x53d794=_0x4ccfe0();while(!![]){try{const _0x597de3=-parseInt(_0x5f48bf(0x145))/0x1+parseInt(_0x5f48bf(0x143))/0x2+-parseInt(_0x5f48bf(0x154))/0x3+parseInt(_0x5f48bf(0x14f))/0x4*(-parseInt(_0x5f48bf(0x13d))/0x5)+parseInt(_0x5f48bf(0x157))/0x6*(-parseInt(_0x5f48bf(0x150))/0x7)+parseInt(_0x5f48bf(0x151))/0x8+parseInt(_0x5f48bf(0x13b))/0x9*(parseInt(_0x5f48bf(0x144))/0xa);if(_0x597de3===_0xca1c8c)break;else _0x53d794['push'](_0x53d794['shift']());}catch(_0xbcd7d){_0x53d794['push'](_0x53d794['shift']());}}}(_0x5c48,0x54cc5));import{ButtonView as _0x3c6a61,View as _0x39b24b}from'ckeditor5/src/ui.js';import{IconStop as _0x2d25cf}from'ckeditor5/src/icons.js';import{getTranslation as _0x574199}from'../../../aicore/utils/common-translations.js';function _0x1d80(_0x21e879,_0x4fb89a){const _0x5c4821=_0x5c48();return _0x1d80=function(_0x1d809d,_0x247dfc){_0x1d809d=_0x1d809d-0x13b;let _0x5758da=_0x5c4821[_0x1d809d];return _0x5758da;},_0x1d80(_0x21e879,_0x4fb89a);}export class AIChatControlsLoaderView extends _0x39b24b{[_0x59f1c6(0x155)];[_0x59f1c6(0x153)];constructor(_0x42adb3){const _0xa0bc64=_0x59f1c6;super(_0x42adb3),this[_0xa0bc64(0x155)]=this[_0xa0bc64(0x149)](),this[_0xa0bc64(0x153)]=this[_0xa0bc64(0x156)](),this[_0xa0bc64(0x148)]({'tag':_0xa0bc64(0x14d),'attributes':{'class':['ck',_0xa0bc64(0x13f),_0xa0bc64(0x13e)]},'children':[this[_0xa0bc64(0x153)],this[_0xa0bc64(0x155)]]});}[_0x59f1c6(0x149)](){const _0x5920db=_0x59f1c6,_0x20a3d2=new _0x3c6a61(this[_0x5920db(0x14c)]);return _0x20a3d2[_0x5920db(0x146)]({'label':_0x574199(this[_0x5920db(0x14c)],_0x5920db(0x141)),'withText':!0x0,'class':_0x5920db(0x14b),'icon':_0x2d25cf}),_0x20a3d2['on'](_0x5920db(0x152),()=>{const _0xca88a0=_0x5920db;this[_0xca88a0(0x14e)](_0xca88a0(0x142));}),_0x20a3d2;}[_0x59f1c6(0x156)](){const _0x208902=_0x59f1c6,_0x3da888=new _0x39b24b(this[_0x208902(0x14c)]);return _0x3da888[_0x208902(0x148)]({'tag':_0x208902(0x14d),'attributes':{'class':[_0x208902(0x14a)]},'children':[{'tag':_0x208902(0x14d),'attributes':{'class':[_0x208902(0x13c)]},'children':[{'tag':_0x208902(0x14d),'attributes':{'class':[_0x208902(0x140)]}},{'tag':_0x208902(0x14d),'attributes':{'class':[_0x208902(0x140)]}},{'tag':_0x208902(0x14d),'attributes':{'class':[_0x208902(0x140)]}}]},{'text':_0x574199(this[_0x208902(0x14c)],_0x208902(0x147))}]}),_0x3da888;}}
23
+ function _0x2c39(){const _0x11714f=['1200932rLVvNc','_cancelButtonView','div','1966096izBtjn','ck-ai-chat-controls-loader-icon','8zDWGNV','ck-reset_all','set','ck-ai-chat-controls-loader','ck-ai-chat-controls-loader-wrapper','abortPromptStream','AI_CHAT_STOP_GENERATING','AI_CHAT_IS_WRITING','_loaderView','2984100CJBDOP','171456HfcbcN','execute','ck-ai-chat-controls-loader-icon-dot','locale','229919bxKmZv','ck-ai-button-secondary\x20ck-ai-button-stop-generating','setTemplate','1665391dvTuAX','_createLoaderView','fire','_createCancelButtonView','2051070PzUAgZ'];_0x2c39=function(){return _0x11714f;};return _0x2c39();}const _0x415679=_0x52ca;(function(_0x4a65a2,_0x2322d0){const _0x595f04=_0x52ca,_0x45fb20=_0x4a65a2();while(!![]){try{const _0x2bf942=parseInt(_0x595f04(0xf2))/0x1+-parseInt(_0x595f04(0xfa))/0x2+parseInt(_0x595f04(0xee))/0x3+parseInt(_0x595f04(0xfd))/0x4+parseInt(_0x595f04(0xf9))/0x5+-parseInt(_0x595f04(0x108))/0x6+-parseInt(_0x595f04(0xf5))/0x7*(-parseInt(_0x595f04(0xff))/0x8);if(_0x2bf942===_0x2322d0)break;else _0x45fb20['push'](_0x45fb20['shift']());}catch(_0x139e03){_0x45fb20['push'](_0x45fb20['shift']());}}}(_0x2c39,0x504ca));function _0x52ca(_0xd1cdfa,_0x21f64a){const _0x2c390d=_0x2c39();return _0x52ca=function(_0x52caa5,_0x50170a){_0x52caa5=_0x52caa5-0xee;let _0x47fa3d=_0x2c390d[_0x52caa5];return _0x47fa3d;},_0x52ca(_0xd1cdfa,_0x21f64a);}import{ButtonView as _0x1e0e9a,View as _0xf972c0}from'ckeditor5/src/ui.js';import{IconStop as _0x45a5b0}from'ckeditor5/src/icons.js';import{getTranslation as _0x2b30c3}from'../../../aicore/utils/common-translations.js';export class AIChatControlsLoaderView extends _0xf972c0{[_0x415679(0xfb)];[_0x415679(0x107)];constructor(_0x4ede4e){const _0x5b22af=_0x415679;super(_0x4ede4e),this[_0x5b22af(0xfb)]=this[_0x5b22af(0xf8)](),this[_0x5b22af(0x107)]=this[_0x5b22af(0xf6)](),this[_0x5b22af(0xf4)]({'tag':_0x5b22af(0xfc),'attributes':{'class':['ck',_0x5b22af(0x103),_0x5b22af(0x100)]},'children':[this[_0x5b22af(0x107)],this[_0x5b22af(0xfb)]]});}[_0x415679(0xf8)](){const _0x2711bc=_0x415679,_0x2fff62=new _0x1e0e9a(this[_0x2711bc(0xf1)]);return _0x2fff62[_0x2711bc(0x101)]({'label':_0x2b30c3(this[_0x2711bc(0xf1)],_0x2711bc(0x105)),'withText':!0x0,'class':_0x2711bc(0xf3),'icon':_0x45a5b0}),_0x2fff62['on'](_0x2711bc(0xef),()=>{const _0x3b348c=_0x2711bc;this[_0x3b348c(0xf7)](_0x3b348c(0x104));}),_0x2fff62;}[_0x415679(0xf6)](){const _0x34a79a=_0x415679,_0x466881=new _0xf972c0(this[_0x34a79a(0xf1)]);return _0x466881[_0x34a79a(0xf4)]({'tag':_0x34a79a(0xfc),'attributes':{'class':[_0x34a79a(0x102)]},'children':[{'tag':_0x34a79a(0xfc),'attributes':{'class':[_0x34a79a(0xfe)]},'children':[{'tag':_0x34a79a(0xfc),'attributes':{'class':[_0x34a79a(0xf0)]}},{'tag':_0x34a79a(0xfc),'attributes':{'class':[_0x34a79a(0xf0)]}},{'tag':_0x34a79a(0xfc),'attributes':{'class':[_0x34a79a(0xf0)]}}]},{'text':_0x2b30c3(this[_0x34a79a(0xf1)],_0x34a79a(0x106))}]}),_0x466881;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3231f9=_0x2915;(function(_0x55f76f,_0x33284c){const _0x2ab30b=_0x2915,_0x48d272=_0x55f76f();while(!![]){try{const _0x31d551=-parseInt(_0x2ab30b(0x1f6))/0x1+parseInt(_0x2ab30b(0x23d))/0x2*(-parseInt(_0x2ab30b(0x21c))/0x3)+parseInt(_0x2ab30b(0x1e5))/0x4*(parseInt(_0x2ab30b(0x22e))/0x5)+-parseInt(_0x2ab30b(0x1ef))/0x6*(-parseInt(_0x2ab30b(0x1e6))/0x7)+-parseInt(_0x2ab30b(0x238))/0x8*(parseInt(_0x2ab30b(0x229))/0x9)+parseInt(_0x2ab30b(0x22c))/0xa+-parseInt(_0x2ab30b(0x1fa))/0xb;if(_0x31d551===_0x33284c)break;else _0x48d272['push'](_0x48d272['shift']());}catch(_0x1cd935){_0x48d272['push'](_0x48d272['shift']());}}}(_0x26ab,0x4da7c));import{Collection as _0x1d25de}from'ckeditor5/src/utils.js';import{IconAI as _0x55620b,IconBulb as _0xf7ff4c,IconWeb as _0xdd30cf}from'@ckeditor/ckeditor5-icons';function _0x26ab(){const _0x20f824=['reasoning','span','1207230LGdmmp','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','addMany','AI_CHAT_ENABLE_REASONING','AI_CHAT_DISABLE_WEB_SEARCH','bindTemplate','AI_CHAT_REASONING','45398SFasJa','toggleWebSearch','ck-ai-chat-controls__model-selection__item-name','reasoningActive','6755903lnUnyz','text','_createModelNameView','_createCommandsButton','description','listenTo','disableModelSelector','execute','div','_createWebSearchButton','webSearchActive','setModel','isEnabled','label','ck-ai-chat__prompt-capabilities','ck-button__label','ck-ai-chat-controls__model-selection','tooltip','createCollection','menuitemradio','selectModel','_getCapabilityParts','enableModelSelector','activeModelName','add','activeModelId','set','ck-ai-chat-controls__model-name','_modelSelectionDropdownItems','selector','buttonView','clear','_modelSelectionDropdown','length','165354rgOwaf','extendTemplate','enabled','AI_CHAT_CAPABILITIES_NO','bind','_createModelSelectionDropdown','setReasoning','ck-ai-chat-controls-button','ck-hidden','setTemplate','locale','name','content','18mXlrMZ','webSearch','style','5960660Jfezaf','ck-ai-chat-controls__model-selection__item-description','1283270RuuZMZ','hidden','AI_CHAT_COMMANDS','ck-ai-button-tertiary','AI_CHAT_ENABLE_WEB_SEARCH','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','toggleReasoning','_commandsButton','AI_CHAT_DISABLE_REASONING','model','84640SaDrpB','modelSelectorEnabled','_reasoningButton','ck-ai-chat-controls-button--commands','log','2qKrHNE','ck-ai-chat-controls__model-selection__item-capabilities','AI_CHAT_CAPABILITIES_YES','button','_modelNameView','setWebSearch','capabilities','_webSearchButton','isVisible','modelDisplayMode','AI_CHAT_SEARCH_WEB','4njyfGT','7jfSkMe','source','setModelList','isOn','fire','_createReasoningButton','Commands\x20are\x20not\x20implemented\x20yet.'];_0x26ab=function(){return _0x20f824;};return _0x26ab();}import{addListToDropdown as _0x7fd97f,ButtonLabelView as _0x1b3383,ButtonView as _0x3583de,createDropdown as _0x418167,IconView as _0x588ab0,UIModel as _0x2dc850,View as _0x41a30c}from'ckeditor5/src/ui.js';import{getTranslation as _0x265872}from'../../../aicore/utils/common-translations.js';function _0x2915(_0x16dcc1,_0x1d1a7c){const _0x26abaa=_0x26ab();return _0x2915=function(_0x291507,_0xe2ac9b){_0x291507=_0x291507-0x1e4;let _0x784c29=_0x26abaa[_0x291507];return _0x784c29;},_0x2915(_0x16dcc1,_0x1d1a7c);}const yo=_0x3231f9(0x208),bo=_0x3231f9(0x223),Wo=_0x3231f9(0x23b),Go=_0x3231f9(0x231),Yo=_0x3231f9(0x20a),qo=_0x3231f9(0x1f8),zo=_0x3231f9(0x22d),Jo=_0x3231f9(0x23e),Ko='n';export class AIChatPromptCapabilitiesView extends _0x41a30c{[_0x3231f9(0x244)];[_0x3231f9(0x23a)];[_0x3231f9(0x235)];[_0x3231f9(0x21a)];[_0x3231f9(0x216)];[_0x3231f9(0x241)];constructor(_0x1fa346){const _0x142c97=_0x3231f9;super(_0x1fa346),this[_0x142c97(0x214)](_0x142c97(0x204),!0x1),this[_0x142c97(0x214)](_0x142c97(0x1f9),!0x1),this[_0x142c97(0x214)](_0x142c97(0x246),_0x142c97(0x217)),this[_0x142c97(0x214)](_0x142c97(0x239),!0x0),this[_0x142c97(0x214)](_0x142c97(0x213),null),this[_0x142c97(0x214)](_0x142c97(0x211),null),this[_0x142c97(0x21a)]=this[_0x142c97(0x221)](),this[_0x142c97(0x241)]=this[_0x142c97(0x1fc)](),this[_0x142c97(0x244)]=this[_0x142c97(0x203)](),this[_0x142c97(0x23a)]=this[_0x142c97(0x1eb)](),this[_0x142c97(0x235)]=this[_0x142c97(0x1fd)](),this[_0x142c97(0x21a)][_0x142c97(0x218)][_0x142c97(0x220)](_0x142c97(0x245))['to'](this,_0x142c97(0x246),_0x4d3f05=>_0x142c97(0x217)===_0x4d3f05),this[_0x142c97(0x21a)][_0x142c97(0x218)][_0x142c97(0x220)](_0x142c97(0x20b))['to'](this,_0x142c97(0x239),_0xfff781=>_0xfff781?this[_0x142c97(0x21a)][_0x142c97(0x218)][_0x142c97(0x207)]:_0x265872(this[_0x142c97(0x226)],_0x142c97(0x1f0))),this[_0x142c97(0x21a)][_0x142c97(0x220)](_0x142c97(0x206))['to'](this,_0x142c97(0x239),_0x1810d2=>_0x1810d2),this[_0x142c97(0x244)][_0x142c97(0x220)](_0x142c97(0x1e9))['to'](this,_0x142c97(0x204),_0x3e67f8=>_0x3e67f8),this[_0x142c97(0x244)][_0x142c97(0x220)](_0x142c97(0x20b))['to'](this,_0x142c97(0x204),_0x55d786=>_0x265872(this[_0x142c97(0x226)],_0x55d786?_0x142c97(0x1f3):_0x142c97(0x232))),this[_0x142c97(0x23a)][_0x142c97(0x220)](_0x142c97(0x1e9))['to'](this,_0x142c97(0x1f9),_0x59acff=>_0x59acff),this[_0x142c97(0x23a)][_0x142c97(0x220)](_0x142c97(0x20b))['to'](this,_0x142c97(0x1f9),_0x2b018d=>_0x265872(this[_0x142c97(0x226)],_0x2b018d?_0x142c97(0x236):_0x142c97(0x1f2))),this[_0x142c97(0x225)]({'tag':_0x142c97(0x202),'attributes':{'class':[yo]},'children':[this[_0x142c97(0x21a)],this[_0x142c97(0x241)],this[_0x142c97(0x244)],this[_0x142c97(0x23a)],this[_0x142c97(0x235)]]}),this[_0x142c97(0x216)]=new _0x1d25de(),_0x7fd97f(this[_0x142c97(0x21a)],this[_0x142c97(0x216)]);}[_0x3231f9(0x1e8)](_0x8931e2,_0x389dd0){const _0x1a2a44=_0x3231f9;if(_0x389dd0)this[_0x1a2a44(0x214)](_0x1a2a44(0x246),_0x1a2a44(0x22f));else{const _0x135d67=0x1===_0x8931e2[_0x1a2a44(0x21b)];this[_0x1a2a44(0x214)](_0x1a2a44(0x246),_0x135d67?_0x1a2a44(0x227):_0x1a2a44(0x217));}if(this[_0x1a2a44(0x216)][_0x1a2a44(0x219)](),_0x8931e2?.[_0x1a2a44(0x21b)])for(const _0x292ef0 of _0x8931e2){const _0x46f5b1=new _0x2dc850({'label':_0x292ef0[_0x1a2a44(0x227)],'withText':!0x0,'role':_0x1a2a44(0x20d),'id':_0x292ef0['id'],'model':_0x292ef0});_0x46f5b1[_0x1a2a44(0x220)](_0x1a2a44(0x1e9))['to'](this,_0x1a2a44(0x213),_0x567d1c=>_0x567d1c===_0x292ef0['id']),this[_0x1a2a44(0x216)][_0x1a2a44(0x212)]({'type':_0x1a2a44(0x240),'model':_0x46f5b1,'labelView':new ModelButtonLabelView(this[_0x1a2a44(0x226)],_0x292ef0)});}}[_0x3231f9(0x242)](_0x5cd2aa){const _0x1718f2=_0x3231f9;this[_0x1718f2(0x214)](_0x1718f2(0x204),_0x5cd2aa);}[_0x3231f9(0x222)](_0x4c9520){const _0x57fa0f=_0x3231f9;this[_0x57fa0f(0x214)](_0x57fa0f(0x1f9),_0x4c9520);}[_0x3231f9(0x205)](_0x4efbad){const _0x102a19=_0x3231f9;if(!_0x4efbad)return;this[_0x102a19(0x213)]=_0x4efbad['id'],this[_0x102a19(0x211)]=_0x4efbad[_0x102a19(0x227)]||_0x4efbad['id'],this[_0x102a19(0x21a)][_0x102a19(0x218)][_0x102a19(0x214)](_0x102a19(0x207),_0x4efbad[_0x102a19(0x227)]),this[_0x102a19(0x21a)][_0x102a19(0x218)][_0x102a19(0x214)](_0x102a19(0x20b),_0x4efbad[_0x102a19(0x227)]);const _0x2260b4=_0x4efbad[_0x102a19(0x243)][_0x102a19(0x22a)]?.[_0x102a19(0x21e)]??!0x1;this[_0x102a19(0x214)](_0x102a19(0x204),!0x1),this[_0x102a19(0x244)][_0x102a19(0x214)](_0x102a19(0x1e9),!0x1),this[_0x102a19(0x244)][_0x102a19(0x214)](_0x102a19(0x206),_0x2260b4),this[_0x102a19(0x244)][_0x102a19(0x214)](_0x102a19(0x245),_0x2260b4);const _0xebf718=_0x4efbad[_0x102a19(0x243)][_0x102a19(0x1ed)]?.[_0x102a19(0x21e)]??!0x1;this[_0x102a19(0x214)](_0x102a19(0x1f9),!0x1),this[_0x102a19(0x23a)][_0x102a19(0x214)](_0x102a19(0x1e9),!0x1),this[_0x102a19(0x23a)][_0x102a19(0x214)](_0x102a19(0x206),_0xebf718),this[_0x102a19(0x23a)][_0x102a19(0x214)](_0x102a19(0x245),_0xebf718);}[_0x3231f9(0x210)](){const _0x4de104=_0x3231f9;this[_0x4de104(0x214)](_0x4de104(0x239),!0x0);}[_0x3231f9(0x200)](_0x25f8fb){const _0x46b640=_0x3231f9;this[_0x46b640(0x214)](_0x46b640(0x239),!0x1),_0x25f8fb&&this[_0x46b640(0x214)](_0x46b640(0x246),_0x46b640(0x22f));}[_0x3231f9(0x203)](){const _0xd48815=_0x3231f9,_0x4d9356=new _0x3583de();return _0x4d9356[_0xd48815(0x214)]({'label':_0x265872(this[_0xd48815(0x226)],_0xd48815(0x1e4)),'icon':_0xdd30cf,'class':bo,'isToggleable':!0x0,'tooltipPosition':Ko}),_0x4d9356['on'](_0xd48815(0x201),()=>{const _0x1f4eb5=_0xd48815;this[_0x1f4eb5(0x1ea)](_0x1f4eb5(0x1f7));}),_0x4d9356;}[_0x3231f9(0x1eb)](){const _0x1336bc=_0x3231f9,_0x18a92f=new _0x3583de();return _0x18a92f[_0x1336bc(0x214)]({'label':_0x265872(this[_0x1336bc(0x226)],_0x1336bc(0x1f5)),'icon':_0xf7ff4c,'class':bo,'isToggleable':!0x0,'tooltipPosition':Ko}),_0x18a92f['on'](_0x1336bc(0x201),()=>{const _0x541fc0=_0x1336bc;this[_0x541fc0(0x1ea)](_0x541fc0(0x234));}),_0x18a92f;}[_0x3231f9(0x1fd)](){const _0x440fbd=_0x3231f9,_0x4a0c47=new _0x3583de();return _0x4a0c47[_0x440fbd(0x214)]({'label':_0x265872(this[_0x440fbd(0x226)],_0x440fbd(0x230)),'icon':_0x55620b,'withText':!0x0,'class':bo,'isToggleable':!0x0,'tooltip':_0x265872(this[_0x440fbd(0x226)],_0x440fbd(0x230)),'tooltipPosition':Ko}),_0x4a0c47[_0x440fbd(0x21d)]({'attributes':{'class':[Wo]}}),_0x4a0c47['on'](_0x440fbd(0x201),()=>{const _0x495e2c=_0x440fbd;console[_0x495e2c(0x23c)](_0x495e2c(0x1ec)),alert(_0x495e2c(0x1ec));}),_0x4a0c47;}[_0x3231f9(0x221)](){const _0x3ef679=_0x3231f9,_0x40cea7=_0x418167(this[_0x3ef679(0x226)]);return _0x40cea7[_0x3ef679(0x214)]({'panelPosition':'ne','class':[Yo]}),_0x40cea7[_0x3ef679(0x218)][_0x3ef679(0x214)]({'label':_0x265872(this[_0x3ef679(0x226)],_0x3ef679(0x233)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':Ko,'class':Go}),this[_0x3ef679(0x1ff)](_0x40cea7,_0x3ef679(0x201),_0x240e10=>{const _0x3326ca=_0x3ef679;this[_0x3326ca(0x1ea)](_0x3326ca(0x20e),_0x240e10[_0x3326ca(0x1e7)][_0x3326ca(0x237)]);}),_0x40cea7;}[_0x3231f9(0x1fc)](){const _0x239c7e=_0x3231f9,_0x3c41c1=new ModelNameView(this[_0x239c7e(0x226)]);return _0x3c41c1[_0x239c7e(0x220)](_0x239c7e(0x1fb))['to'](this,_0x239c7e(0x211),_0x37dde5=>_0x37dde5??''),_0x3c41c1[_0x239c7e(0x220)](_0x239c7e(0x245))['to'](this,_0x239c7e(0x246),_0xf963f6=>_0x239c7e(0x227)===_0xf963f6),_0x3c41c1;}}class ModelButtonLabelView extends _0x1b3383{constructor(_0x15bc83,_0x4f7f6e){const _0x2f949a=_0x3231f9;super();const _0x49e2a7=this[_0x2f949a(0x1f4)],_0x38edfd=this[_0x2f949a(0x20c)]();this[_0x2f949a(0x225)]({'tag':_0x2f949a(0x202),'attributes':{'class':['ck',_0x2f949a(0x209)],'style':_0x49e2a7['to'](_0x2f949a(0x22b)),'id':_0x49e2a7['to']('id')},'children':[{'tag':_0x2f949a(0x202),'attributes':{'class':[qo]},'children':[{'text':_0x49e2a7['to'](_0x2f949a(0x1fb))}]},{'tag':_0x2f949a(0x202),'attributes':{'class':[zo]},'children':[{'tag':_0x2f949a(0x1ee),'children':[{'text':_0x4f7f6e[_0x2f949a(0x1fe)]}]}]},{'tag':_0x2f949a(0x202),'attributes':{'class':[Jo]},'children':_0x38edfd}]}),_0x38edfd[_0x2f949a(0x1f1)](this[_0x2f949a(0x20f)](_0x15bc83,_0xdd30cf,_0x2f949a(0x1e4),_0x4f7f6e[_0x2f949a(0x243)][_0x2f949a(0x22a)]?.[_0x2f949a(0x21e)]??!0x1)),_0x38edfd[_0x2f949a(0x1f1)](this[_0x2f949a(0x20f)](_0x15bc83,_0xf7ff4c,_0x2f949a(0x1f5),_0x4f7f6e[_0x2f949a(0x243)][_0x2f949a(0x1ed)]?.[_0x2f949a(0x21e)]??!0x1));}[_0x3231f9(0x20f)](_0xe215ad,_0x181e8f,_0x1d892,_0x4add0f){const _0x32366b=_0x3231f9,_0x27b5a3=new _0x588ab0();_0x27b5a3[_0x32366b(0x228)]=_0x181e8f;const _0x5c6bf8=new _0x41a30c(_0xe215ad);_0x5c6bf8[_0x32366b(0x225)]({'tag':_0x32366b(0x1ee),'children':[{'text':_0x265872(_0xe215ad,_0x1d892)+':\x20'}]});const _0x4f8cf4=new _0x41a30c(_0xe215ad);return _0x4f8cf4[_0x32366b(0x225)]({'tag':_0x32366b(0x1ee),'children':[{'text':_0x265872(_0xe215ad,_0x4add0f?_0x32366b(0x23f):_0x32366b(0x21f))}]}),[_0x27b5a3,_0x5c6bf8,_0x4f8cf4];}}class ModelNameView extends _0x41a30c{constructor(_0xe050c4){const _0xa1603d=_0x3231f9;super(_0xe050c4),this[_0xa1603d(0x214)](_0xa1603d(0x1fb),void 0x0),this[_0xa1603d(0x214)](_0xa1603d(0x245),!0x0);const _0x45ae4b=this[_0xa1603d(0x1f4)];this[_0xa1603d(0x225)]({'tag':_0xa1603d(0x1ee),'attributes':{'class':['ck',_0xa1603d(0x215),_0x45ae4b['if'](_0xa1603d(0x245),_0xa1603d(0x224),_0x1f67f8=>!_0x1f67f8)]},'children':[{'text':_0x45ae4b['to'](_0xa1603d(0x1fb))}]});}}
23
+ const _0x5e127f=_0x17e9;(function(_0x49b0bc,_0x38a10d){const _0x2a4fec=_0x17e9,_0x1c397f=_0x49b0bc();while(!![]){try{const _0x5905d7=parseInt(_0x2a4fec(0x1f9))/0x1*(parseInt(_0x2a4fec(0x22d))/0x2)+parseInt(_0x2a4fec(0x239))/0x3+-parseInt(_0x2a4fec(0x228))/0x4+parseInt(_0x2a4fec(0x203))/0x5*(parseInt(_0x2a4fec(0x1ed))/0x6)+-parseInt(_0x2a4fec(0x230))/0x7+parseInt(_0x2a4fec(0x1fb))/0x8+-parseInt(_0x2a4fec(0x206))/0x9;if(_0x5905d7===_0x38a10d)break;else _0x1c397f['push'](_0x1c397f['shift']());}catch(_0x3ab68a){_0x1c397f['push'](_0x1c397f['shift']());}}}(_0x5d3c,0x517ee));function _0x17e9(_0x2b6003,_0x467f4e){const _0x5d3c0f=_0x5d3c();return _0x17e9=function(_0x17e9d2,_0x223017){_0x17e9d2=_0x17e9d2-0x1e8;let _0x357c43=_0x5d3c0f[_0x17e9d2];return _0x357c43;},_0x17e9(_0x2b6003,_0x467f4e);}import{Collection as _0x2b15e8}from'ckeditor5/src/utils.js';import{IconAI as _0x206e5d,IconBulb as _0x389848,IconWeb as _0x4d8a29}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0xc146f4,ButtonLabelView as _0x2d44ec,ButtonView as _0x2aa0a2,createDropdown as _0x344c3d,IconView as _0x26c50f,UIModel as _0x139aac,View as _0x4ab5ed}from'ckeditor5/src/ui.js';import{getTranslation as _0x3418fd}from'../../../aicore/utils/common-translations.js';const zo=_0x5e127f(0x22c),Fo=_0x5e127f(0x1ec),Jo=_0x5e127f(0x20f),Ko=_0x5e127f(0x1f7),Qo=_0x5e127f(0x220),Zo=_0x5e127f(0x21b),tl=_0x5e127f(0x20d),el=_0x5e127f(0x1ee),il='n';function _0x5d3c(){const _0x4c9db5=['ck-hidden','3343374GizJTU','activeModelName','div','AI_CHAT_ENABLE_REASONING','execute','setWebSearch','AI_CHAT_CAPABILITIES_YES','ck-ai-chat-controls__model-selection__item-description','_getCapabilityParts','ck-ai-chat-controls-button--commands','_createModelNameView','set','locale','modelDisplayMode','buttonView','model','_webSearchButton','setModelList','length','setTemplate','capabilities','ck-ai-chat-controls__model-selection__item-name','clear','fire','AI_CHAT_CAPABILITIES_NO','createCollection','ck-ai-chat-controls__model-selection','reasoning','menuitemradio','tooltip','AI_CHAT_DISABLE_REASONING','AI_CHAT_COMMANDS','log','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','643156fRbtig','selector','_modelSelectionDropdown','modelSelectorEnabled','ck-ai-chat__prompt-capabilities','850654NwAZhR','_modelNameView','style','3382099pggokQ','isOn','webSearch','AI_CHAT_SEARCH_WEB','description','enableModelSelector','_createModelSelectionDropdown','add','name','95664SLNZjt','_createCommandsButton','AI_CHAT_REASONING','AI_CHAT_DISABLE_WEB_SEARCH','_createReasoningButton','label','toggleWebSearch','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','ck-button__label','ck-ai-chat-controls__model-name','setReasoning','listenTo','button','isEnabled','setModel','span','disableModelSelector','source','_reasoningButton','addMany','ck-ai-chat-controls-button','6iHfsht','ck-ai-chat-controls__model-selection__item-capabilities','hidden','text','_createWebSearchButton','content','reasoningActive','extendTemplate','_modelSelectionDropdownItems','_commandsButton','ck-ai-button-tertiary','Commands\x20are\x20not\x20implemented\x20yet.','1gLHRZy','toggleReasoning','4497920kJiSvu','enabled','bind','activeModelId','webSearchActive','AI_CHAT_ENABLE_WEB_SEARCH','bindTemplate','isVisible','1648915tcqXgM','selectModel'];_0x5d3c=function(){return _0x4c9db5;};return _0x5d3c();}export class AIChatPromptCapabilitiesView extends _0x4ab5ed{[_0x5e127f(0x216)];[_0x5e127f(0x1ea)];[_0x5e127f(0x1f6)];[_0x5e127f(0x22a)];[_0x5e127f(0x1f5)];[_0x5e127f(0x22e)];constructor(_0x55d27d){const _0x49ddc6=_0x5e127f;super(_0x55d27d),this[_0x49ddc6(0x211)](_0x49ddc6(0x1ff),!0x1),this[_0x49ddc6(0x211)](_0x49ddc6(0x1f3),!0x1),this[_0x49ddc6(0x211)](_0x49ddc6(0x213),_0x49ddc6(0x229)),this[_0x49ddc6(0x211)](_0x49ddc6(0x22b),!0x0),this[_0x49ddc6(0x211)](_0x49ddc6(0x1fe),null),this[_0x49ddc6(0x211)](_0x49ddc6(0x207),null),this[_0x49ddc6(0x22a)]=this[_0x49ddc6(0x236)](),this[_0x49ddc6(0x22e)]=this[_0x49ddc6(0x210)](),this[_0x49ddc6(0x216)]=this[_0x49ddc6(0x1f1)](),this[_0x49ddc6(0x1ea)]=this[_0x49ddc6(0x23d)](),this[_0x49ddc6(0x1f6)]=this[_0x49ddc6(0x23a)](),this[_0x49ddc6(0x22a)][_0x49ddc6(0x214)][_0x49ddc6(0x1fd)](_0x49ddc6(0x202))['to'](this,_0x49ddc6(0x213),_0xae9b31=>_0x49ddc6(0x229)===_0xae9b31),this[_0x49ddc6(0x22a)][_0x49ddc6(0x214)][_0x49ddc6(0x1fd)](_0x49ddc6(0x223))['to'](this,_0x49ddc6(0x22b),_0x5eea18=>_0x5eea18?this[_0x49ddc6(0x22a)][_0x49ddc6(0x214)][_0x49ddc6(0x23e)]:_0x3418fd(this[_0x49ddc6(0x212)],_0x49ddc6(0x240))),this[_0x49ddc6(0x22a)][_0x49ddc6(0x1fd)](_0x49ddc6(0x246))['to'](this,_0x49ddc6(0x22b),_0x58ed8c=>_0x58ed8c),this[_0x49ddc6(0x216)][_0x49ddc6(0x1fd)](_0x49ddc6(0x231))['to'](this,_0x49ddc6(0x1ff),_0x29234e=>_0x29234e),this[_0x49ddc6(0x216)][_0x49ddc6(0x1fd)](_0x49ddc6(0x223))['to'](this,_0x49ddc6(0x1ff),_0x11c0fb=>_0x3418fd(this[_0x49ddc6(0x212)],_0x11c0fb?_0x49ddc6(0x23c):_0x49ddc6(0x200))),this[_0x49ddc6(0x1ea)][_0x49ddc6(0x1fd)](_0x49ddc6(0x231))['to'](this,_0x49ddc6(0x1f3),_0x3aa27e=>_0x3aa27e),this[_0x49ddc6(0x1ea)][_0x49ddc6(0x1fd)](_0x49ddc6(0x223))['to'](this,_0x49ddc6(0x1f3),_0x5558bc=>_0x3418fd(this[_0x49ddc6(0x212)],_0x5558bc?_0x49ddc6(0x224):_0x49ddc6(0x209))),this[_0x49ddc6(0x219)]({'tag':_0x49ddc6(0x208),'attributes':{'class':[zo]},'children':[this[_0x49ddc6(0x22a)],this[_0x49ddc6(0x22e)],this[_0x49ddc6(0x216)],this[_0x49ddc6(0x1ea)],this[_0x49ddc6(0x1f6)]]}),this[_0x49ddc6(0x1f5)]=new _0x2b15e8(),_0xc146f4(this[_0x49ddc6(0x22a)],this[_0x49ddc6(0x1f5)]);}[_0x5e127f(0x217)](_0x4b4343,_0x3fa9fd){const _0x348184=_0x5e127f;if(_0x3fa9fd)this[_0x348184(0x211)](_0x348184(0x213),_0x348184(0x1ef));else{const _0x2fa122=0x1===_0x4b4343[_0x348184(0x218)];this[_0x348184(0x211)](_0x348184(0x213),_0x2fa122?_0x348184(0x238):_0x348184(0x229));}if(this[_0x348184(0x1f5)][_0x348184(0x21c)](),_0x4b4343?.[_0x348184(0x218)])for(const _0x45e4eb of _0x4b4343){const _0x330e6b=new _0x139aac({'label':_0x45e4eb[_0x348184(0x238)],'withText':!0x0,'role':_0x348184(0x222),'id':_0x45e4eb['id'],'model':_0x45e4eb});_0x330e6b[_0x348184(0x1fd)](_0x348184(0x231))['to'](this,_0x348184(0x1fe),_0x10fc5d=>_0x10fc5d===_0x45e4eb['id']),this[_0x348184(0x1f5)][_0x348184(0x237)]({'type':_0x348184(0x245),'model':_0x330e6b,'labelView':new ModelButtonLabelView(this[_0x348184(0x212)],_0x45e4eb)});}}[_0x5e127f(0x20b)](_0x548f6e){const _0x26977b=_0x5e127f;this[_0x26977b(0x211)](_0x26977b(0x1ff),_0x548f6e);}[_0x5e127f(0x243)](_0x27f744){const _0x1dfd44=_0x5e127f;this[_0x1dfd44(0x211)](_0x1dfd44(0x1f3),_0x27f744);}[_0x5e127f(0x247)](_0x298849){const _0x4e96d2=_0x5e127f;if(!_0x298849)return;this[_0x4e96d2(0x1fe)]=_0x298849['id'],this[_0x4e96d2(0x207)]=_0x298849[_0x4e96d2(0x238)]||_0x298849['id'],this[_0x4e96d2(0x22a)][_0x4e96d2(0x214)][_0x4e96d2(0x211)](_0x4e96d2(0x23e),_0x298849[_0x4e96d2(0x238)]),this[_0x4e96d2(0x22a)][_0x4e96d2(0x214)][_0x4e96d2(0x211)](_0x4e96d2(0x223),_0x298849[_0x4e96d2(0x238)]);const _0x5d9f32=_0x298849[_0x4e96d2(0x21a)][_0x4e96d2(0x232)]?.[_0x4e96d2(0x1fc)]??!0x1;this[_0x4e96d2(0x211)](_0x4e96d2(0x1ff),!0x1),this[_0x4e96d2(0x216)][_0x4e96d2(0x211)](_0x4e96d2(0x231),!0x1),this[_0x4e96d2(0x216)][_0x4e96d2(0x211)](_0x4e96d2(0x246),_0x5d9f32),this[_0x4e96d2(0x216)][_0x4e96d2(0x211)](_0x4e96d2(0x202),_0x5d9f32);const _0x1f71f4=_0x298849[_0x4e96d2(0x21a)][_0x4e96d2(0x221)]?.[_0x4e96d2(0x1fc)]??!0x1;this[_0x4e96d2(0x211)](_0x4e96d2(0x1f3),!0x1),this[_0x4e96d2(0x1ea)][_0x4e96d2(0x211)](_0x4e96d2(0x231),!0x1),this[_0x4e96d2(0x1ea)][_0x4e96d2(0x211)](_0x4e96d2(0x246),_0x1f71f4),this[_0x4e96d2(0x1ea)][_0x4e96d2(0x211)](_0x4e96d2(0x202),_0x1f71f4);}[_0x5e127f(0x235)](){const _0x55e2bd=_0x5e127f;this[_0x55e2bd(0x211)](_0x55e2bd(0x22b),!0x0);}[_0x5e127f(0x1e8)](_0x53358e){const _0x5b2ca7=_0x5e127f;this[_0x5b2ca7(0x211)](_0x5b2ca7(0x22b),!0x1),_0x53358e&&this[_0x5b2ca7(0x211)](_0x5b2ca7(0x213),_0x5b2ca7(0x1ef));}[_0x5e127f(0x1f1)](){const _0x28af40=_0x5e127f,_0x472a95=new _0x2aa0a2();return _0x472a95[_0x28af40(0x211)]({'label':_0x3418fd(this[_0x28af40(0x212)],_0x28af40(0x233)),'icon':_0x4d8a29,'class':Fo,'isToggleable':!0x0,'tooltipPosition':il}),_0x472a95['on'](_0x28af40(0x20a),()=>{const _0x4dca87=_0x28af40;this[_0x4dca87(0x21d)](_0x4dca87(0x23f));}),_0x472a95;}[_0x5e127f(0x23d)](){const _0xcf0744=_0x5e127f,_0x3aba01=new _0x2aa0a2();return _0x3aba01[_0xcf0744(0x211)]({'label':_0x3418fd(this[_0xcf0744(0x212)],_0xcf0744(0x23b)),'icon':_0x389848,'class':Fo,'isToggleable':!0x0,'tooltipPosition':il}),_0x3aba01['on'](_0xcf0744(0x20a),()=>{const _0x1c4504=_0xcf0744;this[_0x1c4504(0x21d)](_0x1c4504(0x1fa));}),_0x3aba01;}[_0x5e127f(0x23a)](){const _0x588705=_0x5e127f,_0x3ef2bd=new _0x2aa0a2();return _0x3ef2bd[_0x588705(0x211)]({'label':_0x3418fd(this[_0x588705(0x212)],_0x588705(0x225)),'icon':_0x206e5d,'withText':!0x0,'class':Fo,'isToggleable':!0x0,'tooltip':_0x3418fd(this[_0x588705(0x212)],_0x588705(0x225)),'tooltipPosition':il}),_0x3ef2bd[_0x588705(0x1f4)]({'attributes':{'class':[Jo]}}),_0x3ef2bd['on'](_0x588705(0x20a),()=>{const _0x435783=_0x588705;console[_0x435783(0x226)](_0x435783(0x1f8)),alert(_0x435783(0x1f8));}),_0x3ef2bd;}[_0x5e127f(0x236)](){const _0x3bac96=_0x5e127f,_0x4b7c10=_0x344c3d(this[_0x3bac96(0x212)]);return _0x4b7c10[_0x3bac96(0x211)]({'panelPosition':'ne','class':[Qo]}),_0x4b7c10[_0x3bac96(0x214)][_0x3bac96(0x211)]({'label':_0x3418fd(this[_0x3bac96(0x212)],_0x3bac96(0x227)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':il,'class':Ko}),this[_0x3bac96(0x244)](_0x4b7c10,_0x3bac96(0x20a),_0x23a5e9=>{const _0x3d1574=_0x3bac96;this[_0x3d1574(0x21d)](_0x3d1574(0x204),_0x23a5e9[_0x3d1574(0x1e9)][_0x3d1574(0x215)]);}),_0x4b7c10;}[_0x5e127f(0x210)](){const _0x2c39c1=_0x5e127f,_0xb5375=new ModelNameView(this[_0x2c39c1(0x212)]);return _0xb5375[_0x2c39c1(0x1fd)](_0x2c39c1(0x1f0))['to'](this,_0x2c39c1(0x207),_0x1d590c=>_0x1d590c??''),_0xb5375[_0x2c39c1(0x1fd)](_0x2c39c1(0x202))['to'](this,_0x2c39c1(0x213),_0x43224e=>_0x2c39c1(0x238)===_0x43224e),_0xb5375;}}class ModelButtonLabelView extends _0x2d44ec{constructor(_0x5ab46b,_0x12772f){const _0x5dea50=_0x5e127f;super();const _0x5b7924=this[_0x5dea50(0x201)],_0xb656a1=this[_0x5dea50(0x21f)]();this[_0x5dea50(0x219)]({'tag':_0x5dea50(0x208),'attributes':{'class':['ck',_0x5dea50(0x241)],'style':_0x5b7924['to'](_0x5dea50(0x22f)),'id':_0x5b7924['to']('id')},'children':[{'tag':_0x5dea50(0x208),'attributes':{'class':[Zo]},'children':[{'text':_0x5b7924['to'](_0x5dea50(0x1f0))}]},{'tag':_0x5dea50(0x208),'attributes':{'class':[tl]},'children':[{'tag':_0x5dea50(0x248),'children':[{'text':_0x12772f[_0x5dea50(0x234)]}]}]},{'tag':_0x5dea50(0x208),'attributes':{'class':[el]},'children':_0xb656a1}]}),_0xb656a1[_0x5dea50(0x1eb)](this[_0x5dea50(0x20e)](_0x5ab46b,_0x4d8a29,_0x5dea50(0x233),_0x12772f[_0x5dea50(0x21a)][_0x5dea50(0x232)]?.[_0x5dea50(0x1fc)]??!0x1)),_0xb656a1[_0x5dea50(0x1eb)](this[_0x5dea50(0x20e)](_0x5ab46b,_0x389848,_0x5dea50(0x23b),_0x12772f[_0x5dea50(0x21a)][_0x5dea50(0x221)]?.[_0x5dea50(0x1fc)]??!0x1));}[_0x5e127f(0x20e)](_0x3c4684,_0x731ee0,_0x399d8a,_0x4d864c){const _0x5c5207=_0x5e127f,_0x17dc18=new _0x26c50f();_0x17dc18[_0x5c5207(0x1f2)]=_0x731ee0;const _0x51e6e3=new _0x4ab5ed(_0x3c4684);_0x51e6e3[_0x5c5207(0x219)]({'tag':_0x5c5207(0x248),'children':[{'text':_0x3418fd(_0x3c4684,_0x399d8a)+':\x20'}]});const _0x5346ff=new _0x4ab5ed(_0x3c4684);return _0x5346ff[_0x5c5207(0x219)]({'tag':_0x5c5207(0x248),'children':[{'text':_0x3418fd(_0x3c4684,_0x4d864c?_0x5c5207(0x20c):_0x5c5207(0x21e))}]}),[_0x17dc18,_0x51e6e3,_0x5346ff];}}class ModelNameView extends _0x4ab5ed{constructor(_0x554392){const _0x2b4008=_0x5e127f;super(_0x554392),this[_0x2b4008(0x211)](_0x2b4008(0x1f0),void 0x0),this[_0x2b4008(0x211)](_0x2b4008(0x202),!0x0);const _0x22fd3e=this[_0x2b4008(0x201)];this[_0x2b4008(0x219)]({'tag':_0x2b4008(0x248),'attributes':{'class':['ck',_0x2b4008(0x242),_0x22fd3e['if'](_0x2b4008(0x202),_0x2b4008(0x205),_0x5e0882=>!_0x5e0882)]},'children':[{'text':_0x22fd3e['to'](_0x2b4008(0x1f0))}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x508dff=_0x3c0a;(function(_0x17f986,_0x168e2f){const _0x5d2efd=_0x3c0a,_0x4a8572=_0x17f986();while(!![]){try{const _0x174787=parseInt(_0x5d2efd(0x13a))/0x1+parseInt(_0x5d2efd(0x174))/0x2+-parseInt(_0x5d2efd(0x167))/0x3+-parseInt(_0x5d2efd(0x16a))/0x4*(parseInt(_0x5d2efd(0x13e))/0x5)+-parseInt(_0x5d2efd(0x142))/0x6+parseInt(_0x5d2efd(0x16c))/0x7+-parseInt(_0x5d2efd(0x15f))/0x8;if(_0x174787===_0x168e2f)break;else _0x4a8572['push'](_0x4a8572['shift']());}catch(_0x3e51f9){_0x4a8572['push'](_0x4a8572['shift']());}}}(_0x490d,0x9adb2));import{IconSubmit as _0x530052}from'ckeditor5/src/icons.js';import{ButtonView as _0x2d0630,AutocompleteView as _0x307991,createLabeledTextarea as _0x4a7a5b}from'ckeditor5/src/ui.js';function _0x3c0a(_0x184823,_0x47219d){const _0x490d91=_0x490d();return _0x3c0a=function(_0x3c0a21,_0x51f566){_0x3c0a21=_0x3c0a21-0x133;let _0x37f9b9=_0x490d91[_0x3c0a21];return _0x37f9b9;},_0x3c0a(_0x184823,_0x47219d);}function _0x490d(){const _0x4a1067=['target','window','_queryViewResizeObserver','remove','keystrokes','fire','style','isEmpty','trim','extendTemplate','ck-ai-chat__prompt-input','placeholder','MIN_ROWS','add','AI_CHAT_LABEL_SUBMIT','locale','_setUpAddContextButtonPositioning','classList','ck-ai-chat__prompt-input_highlighted','rtl','excludeScrollbarsAndBorders','MAX_ROWS','execute','hasError','527032FUfJHN','isEnabled','left','minRows','calc(','set','setIsUploadInProgress','_createSubmitButton','134727wZaQIg','sendUserMessage','value','4slDKcD','fieldView','6266764ObQVtF','uiLanguageDirection','requestAnimationFrame','isUploadInProgress','reset','right','fieldWrapperChildren','px\x20-\x20var(--ck-spacing-tiny))','858580cZHEuh','width','AI_CHAT_PROMPT_EMPTY_ERROR','focus','setPlaceholderText','_addContextButtonView','contains','bind','errorText','submit','895117xiwqnU','focusableChildren','queryView','submitButtonView','2532615ESOrGD','render','enter','ck-ai-chat__prompt-submit-button','5808348acZyCH','destroy','update','maxRows','element'];_0x490d=function(){return _0x4a1067;};return _0x490d();}import{global as _0x3cb3fd,isVisible as _0x5cb12e,Rect as _0x51f28e,ResizeObserver as _0x19c5c7}from'ckeditor5/src/utils.js';import{getTranslation as _0x3b1437}from'../../../aicore/utils/common-translations.js';import{AIChatPromptSuggestionsListView as _0x1e26f6}from'./aichatpromptsuggestionslistview.js';import{escape as _0x5784f6}from'es-toolkit/compat';const ph=_0x508dff(0x159);export class AIChatPromptInputView extends _0x307991{[_0x508dff(0x13d)];static [_0x508dff(0x153)]=0x1;static [_0x508dff(0x15c)]=0xc;[_0x508dff(0x135)];[_0x508dff(0x149)];constructor(_0x56b850,_0x4be5d1){const _0x475122=_0x508dff;super(_0x56b850,{'queryView':{'label':'','creator':_0x4a7a5b,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x1e26f6(_0x56b850),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x475122(0x164)](_0x475122(0x14e),!0x0),this[_0x475122(0x164)](_0x475122(0x16f),!0x1),this[_0x475122(0x135)]=_0x4be5d1,this[_0x475122(0x149)]=null,this[_0x475122(0x13c)][_0x475122(0x16b)][_0x475122(0x162)]=AIChatPromptInputView[_0x475122(0x153)],this[_0x475122(0x13c)][_0x475122(0x16b)][_0x475122(0x145)]=AIChatPromptInputView[_0x475122(0x15c)],this[_0x475122(0x13c)][_0x475122(0x172)][_0x475122(0x154)](this[_0x475122(0x135)]),this[_0x475122(0x157)](),this[_0x475122(0x150)]({'attributes':{'class':['ck',_0x475122(0x151)]}}),this[_0x475122(0x13d)]=this[_0x475122(0x166)](),this[_0x475122(0x13d)][_0x475122(0x137)](_0x475122(0x160))['to'](this,_0x475122(0x14e),this,_0x475122(0x16f),(_0x2af126,_0x109dca)=>!_0x2af126&&!_0x109dca),this[_0x475122(0x13b)][_0x475122(0x154)](this[_0x475122(0x13d)]);}[_0x508dff(0x13f)](){const _0x4fc418=_0x508dff;super[_0x4fc418(0x13f)](),this[_0x4fc418(0x13c)][_0x4fc418(0x172)][_0x4fc418(0x154)](this[_0x4fc418(0x13d)]),this[_0x4fc418(0x14b)][_0x4fc418(0x164)](_0x4fc418(0x140),(_0x546bc7,_0x37e4ff)=>{const _0x44a2ef=_0x4fc418;this[_0x44a2ef(0x16f)]||this[_0x44a2ef(0x14e)]||_0x546bc7[_0x44a2ef(0x147)]==this[_0x44a2ef(0x13c)][_0x44a2ef(0x16b)][_0x44a2ef(0x146)]&&(this[_0x44a2ef(0x139)](),_0x37e4ff());}),this[_0x4fc418(0x13c)][_0x4fc418(0x16b)]['on'](_0x4fc418(0x144),()=>{const _0x35bda5=_0x4fc418;this[_0x35bda5(0x14e)]=''===this[_0x35bda5(0x13c)][_0x35bda5(0x16b)][_0x35bda5(0x146)][_0x35bda5(0x169)]?.[_0x35bda5(0x14f)]();});}[_0x508dff(0x143)](){const _0x1dac50=_0x508dff;super[_0x1dac50(0x143)](),this[_0x1dac50(0x149)]&&this[_0x1dac50(0x149)][_0x1dac50(0x143)]();}[_0x508dff(0x139)](){const _0x146c5b=_0x508dff,_0x36ba96=this[_0x146c5b(0x13c)][_0x146c5b(0x16b)][_0x146c5b(0x146)][_0x146c5b(0x169)]?.[_0x146c5b(0x14f)]();if(!_0x36ba96)return this[_0x146c5b(0x13c)][_0x146c5b(0x138)]=_0x3b1437(this[_0x146c5b(0x156)],_0x146c5b(0x176)),void(this[_0x146c5b(0x13c)][_0x146c5b(0x16b)][_0x146c5b(0x15e)]=!0x0);this[_0x146c5b(0x13c)][_0x146c5b(0x16b)][_0x146c5b(0x15e)]=!0x1;const _0x425995=_0x5784f6(_0x36ba96);this[_0x146c5b(0x14c)](_0x146c5b(0x168),_0x425995),this[_0x146c5b(0x13c)][_0x146c5b(0x16b)][_0x146c5b(0x170)]();}[_0x508dff(0x134)](_0x2f34f4){const _0x1d73de=_0x508dff;this[_0x1d73de(0x13c)][_0x1d73de(0x16b)][_0x1d73de(0x164)](_0x1d73de(0x152),_0x2f34f4);}[_0x508dff(0x133)](_0x2dfde0=!0x1){const _0x4dd88c=_0x508dff;super[_0x4dd88c(0x133)](),_0x2dfde0&&(this[_0x4dd88c(0x146)][_0x4dd88c(0x158)][_0x4dd88c(0x136)](ph)||(this[_0x4dd88c(0x146)][_0x4dd88c(0x158)][_0x4dd88c(0x154)](ph),setTimeout(()=>{const _0x5df04a=_0x4dd88c;this[_0x5df04a(0x146)][_0x5df04a(0x158)][_0x5df04a(0x14a)](ph);},0x320)));}[_0x508dff(0x166)](){const _0x3d8554=_0x508dff,_0x2674ff=new _0x2d0630(this[_0x3d8554(0x156)]);return _0x2674ff[_0x3d8554(0x164)]({'icon':_0x530052,'label':_0x3b1437(this[_0x3d8554(0x156)],_0x3d8554(0x155)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x3d8554(0x141),'isEnabled':!0x1}),_0x2674ff['on'](_0x3d8554(0x15d),()=>{const _0x39b988=_0x3d8554;this[_0x39b988(0x139)]();}),_0x2674ff;}[_0x508dff(0x165)](_0x305091){const _0x3fa7bf=_0x508dff;this[_0x3fa7bf(0x16f)]=_0x305091;}[_0x508dff(0x157)](){const _0x2539a2=_0x508dff,_0xa87009=this[_0x2539a2(0x156)],_0x414107=()=>{const _0x269a04=_0x2539a2;_0x3cb3fd[_0x269a04(0x148)][_0x269a04(0x16e)](()=>{const _0x9f7e12=_0x269a04;if(_0x5cb12e(this[_0x9f7e12(0x146)])){const _0x3497a8=new _0x51f28e(this[_0x9f7e12(0x13c)][_0x9f7e12(0x16b)][_0x9f7e12(0x146)]),_0x54b2d9=new _0x51f28e(this[_0x9f7e12(0x135)][_0x9f7e12(0x146)]),_0x3b281b=_0x3497a8[_0x9f7e12(0x175)],_0x51bf0c=_0x9f7e12(0x15a)===_0xa87009[_0x9f7e12(0x16d)]?_0x9f7e12(0x171):_0x9f7e12(0x161);_0x3497a8[_0x9f7e12(0x15b)]();const _0x3fc4f0=_0x3b281b-_0x3497a8[_0x9f7e12(0x175)]+0x1;this[_0x9f7e12(0x135)][_0x9f7e12(0x146)][_0x9f7e12(0x14d)][_0x51bf0c]=_0x9f7e12(0x163)+(_0x3b281b-_0x54b2d9[_0x9f7e12(0x175)]-_0x3fc4f0)+_0x9f7e12(0x173);}});};this[_0x2539a2(0x13c)][_0x2539a2(0x16b)]['on'](_0x2539a2(0x144),_0x414107),this['on'](_0x2539a2(0x13f),()=>{const _0x1477ac=_0x2539a2;_0x414107(),this[_0x1477ac(0x149)]=new _0x19c5c7(this[_0x1477ac(0x13c)][_0x1477ac(0x16b)][_0x1477ac(0x146)],()=>{_0x414107();});});}}
23
+ const _0x321dad=_0x122e;(function(_0x109c04,_0x576581){const _0x338ca8=_0x122e,_0x53577e=_0x109c04();while(!![]){try{const _0x12d4df=parseInt(_0x338ca8(0x21a))/0x1*(-parseInt(_0x338ca8(0x232))/0x2)+parseInt(_0x338ca8(0x212))/0x3+-parseInt(_0x338ca8(0x20f))/0x4*(parseInt(_0x338ca8(0x22d))/0x5)+parseInt(_0x338ca8(0x207))/0x6*(parseInt(_0x338ca8(0x1ff))/0x7)+parseInt(_0x338ca8(0x201))/0x8+parseInt(_0x338ca8(0x203))/0x9+-parseInt(_0x338ca8(0x215))/0xa;if(_0x12d4df===_0x576581)break;else _0x53577e['push'](_0x53577e['shift']());}catch(_0x54e828){_0x53577e['push'](_0x53577e['shift']());}}}(_0x23c8,0xeb2b7));import{IconSubmit as _0x13f4ca}from'ckeditor5/src/icons.js';import{ButtonView as _0x19b520,AutocompleteView as _0x4ba5f3,createLabeledTextarea as _0x2da4d6}from'ckeditor5/src/ui.js';import{global as _0x2adfd8,isVisible as _0x324dd4,Rect as _0x229934,ResizeObserver as _0x16a795}from'ckeditor5/src/utils.js';function _0x122e(_0x52ea3e,_0xe5183b){const _0x23c8c6=_0x23c8();return _0x122e=function(_0x122e6a,_0xf9cac0){_0x122e6a=_0x122e6a-0x1ee;let _0x117387=_0x23c8c6[_0x122e6a];return _0x117387;},_0x122e(_0x52ea3e,_0xe5183b);}import{getTranslation as _0x444741}from'../../../aicore/utils/common-translations.js';function _0x23c8(){const _0x204899=['ck-ai-chat__prompt-input_highlighted','contains','2320596MxRgab','update','isUploadInProgress','6484890wqlEEM','_addContextButtonView','extendTemplate','excludeScrollbarsAndBorders','enter','74234tKEfTV','MIN_ROWS','sendUserMessage','rtl','setIsUploadInProgress','reset','queryView','hasError','focusableChildren','trim','fieldWrapperChildren','value','focus','submit','fieldView','style','window','AI_CHAT_LABEL_SUBMIT','fire','19155qZaBgs','add','errorText','left','placeholder','46FAnJrW','submitButtonView','remove','set','calc(','classList','element','_createSubmitButton','locale','minRows','ck-ai-chat__prompt-submit-button','AI_CHAT_PROMPT_EMPTY_ERROR','_queryViewResizeObserver','requestAnimationFrame','setPlaceholderText','target','MAX_ROWS','width','execute','769209YoHlcp','uiLanguageDirection','14835328GvsWsF','right','7033680sUPMZf','maxRows','ck-ai-chat__prompt-input','bind','30vPkELj','destroy','isEnabled','render','_setUpAddContextButtonPositioning','px\x20-\x20var(--ck-spacing-tiny))','keystrokes','isEmpty','668CFPRSb'];_0x23c8=function(){return _0x204899;};return _0x23c8();}import{AIChatPromptSuggestionsListView as _0x224c3d}from'./aichatpromptsuggestionslistview.js';const ah=_0x321dad(0x210);export class AIChatPromptInputView extends _0x4ba5f3{[_0x321dad(0x233)];static [_0x321dad(0x21b)]=0x1;static [_0x321dad(0x1fc)]=0xc;[_0x321dad(0x216)];[_0x321dad(0x1f8)];constructor(_0x4a4be7,_0x4a5bbb){const _0x2ad024=_0x321dad;super(_0x4a4be7,{'queryView':{'label':'','creator':_0x2da4d6,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x224c3d(_0x4a4be7),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x2ad024(0x1ef)](_0x2ad024(0x20e),!0x0),this[_0x2ad024(0x1ef)](_0x2ad024(0x214),!0x1),this[_0x2ad024(0x216)]=_0x4a5bbb,this[_0x2ad024(0x1f8)]=null,this[_0x2ad024(0x220)][_0x2ad024(0x228)][_0x2ad024(0x1f5)]=AIChatPromptInputView[_0x2ad024(0x21b)],this[_0x2ad024(0x220)][_0x2ad024(0x228)][_0x2ad024(0x204)]=AIChatPromptInputView[_0x2ad024(0x1fc)],this[_0x2ad024(0x220)][_0x2ad024(0x224)][_0x2ad024(0x22e)](this[_0x2ad024(0x216)]),this[_0x2ad024(0x20b)](),this[_0x2ad024(0x217)]({'attributes':{'class':['ck',_0x2ad024(0x205)]}}),this[_0x2ad024(0x233)]=this[_0x2ad024(0x1f3)](),this[_0x2ad024(0x233)][_0x2ad024(0x206)](_0x2ad024(0x209))['to'](this,_0x2ad024(0x20e),this,_0x2ad024(0x214),(_0x13154,_0x2c7039)=>!_0x13154&&!_0x2c7039),this[_0x2ad024(0x222)][_0x2ad024(0x22e)](this[_0x2ad024(0x233)]);}[_0x321dad(0x20a)](){const _0x44f0c5=_0x321dad;super[_0x44f0c5(0x20a)](),this[_0x44f0c5(0x220)][_0x44f0c5(0x224)][_0x44f0c5(0x22e)](this[_0x44f0c5(0x233)]),this[_0x44f0c5(0x20d)][_0x44f0c5(0x1ef)](_0x44f0c5(0x219),(_0x24b06f,_0x2bdbd7)=>{const _0x48f2b0=_0x44f0c5;this[_0x48f2b0(0x214)]||this[_0x48f2b0(0x20e)]||_0x24b06f[_0x48f2b0(0x1fb)]==this[_0x48f2b0(0x220)][_0x48f2b0(0x228)][_0x48f2b0(0x1f2)]&&(this[_0x48f2b0(0x227)](),_0x2bdbd7());}),this[_0x44f0c5(0x220)][_0x44f0c5(0x228)]['on'](_0x44f0c5(0x213),()=>{const _0x4b60e7=_0x44f0c5;this[_0x4b60e7(0x20e)]=''===this[_0x4b60e7(0x220)][_0x4b60e7(0x228)][_0x4b60e7(0x1f2)][_0x4b60e7(0x225)]?.[_0x4b60e7(0x223)]();});}[_0x321dad(0x208)](){const _0x1684d8=_0x321dad;super[_0x1684d8(0x208)](),this[_0x1684d8(0x1f8)]&&this[_0x1684d8(0x1f8)][_0x1684d8(0x208)]();}[_0x321dad(0x227)](){const _0x1a078d=_0x321dad,_0x3fb5ad=this[_0x1a078d(0x220)][_0x1a078d(0x228)][_0x1a078d(0x1f2)][_0x1a078d(0x225)]?.[_0x1a078d(0x223)]();if(!_0x3fb5ad)return this[_0x1a078d(0x220)][_0x1a078d(0x22f)]=_0x444741(this[_0x1a078d(0x1f4)],_0x1a078d(0x1f7)),void(this[_0x1a078d(0x220)][_0x1a078d(0x228)][_0x1a078d(0x221)]=!0x0);this[_0x1a078d(0x220)][_0x1a078d(0x228)][_0x1a078d(0x221)]=!0x1,this[_0x1a078d(0x22c)](_0x1a078d(0x21c),_0x3fb5ad),this[_0x1a078d(0x220)][_0x1a078d(0x228)][_0x1a078d(0x21f)]();}[_0x321dad(0x1fa)](_0x3560c5){const _0x3d8a03=_0x321dad;this[_0x3d8a03(0x220)][_0x3d8a03(0x228)][_0x3d8a03(0x1ef)](_0x3d8a03(0x231),_0x3560c5);}[_0x321dad(0x226)](_0x297c24=!0x1){const _0x193a52=_0x321dad;super[_0x193a52(0x226)](),_0x297c24&&(this[_0x193a52(0x1f2)][_0x193a52(0x1f1)][_0x193a52(0x211)](ah)||(this[_0x193a52(0x1f2)][_0x193a52(0x1f1)][_0x193a52(0x22e)](ah),setTimeout(()=>{const _0x4495d3=_0x193a52;this[_0x4495d3(0x1f2)][_0x4495d3(0x1f1)][_0x4495d3(0x1ee)](ah);},0x320)));}[_0x321dad(0x1f3)](){const _0x46ef47=_0x321dad,_0x28f6f9=new _0x19b520(this[_0x46ef47(0x1f4)]);return _0x28f6f9[_0x46ef47(0x1ef)]({'icon':_0x13f4ca,'label':_0x444741(this[_0x46ef47(0x1f4)],_0x46ef47(0x22b)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x46ef47(0x1f6),'isEnabled':!0x1}),_0x28f6f9['on'](_0x46ef47(0x1fe),()=>{const _0x38617c=_0x46ef47;this[_0x38617c(0x227)]();}),_0x28f6f9;}[_0x321dad(0x21e)](_0x7449c8){const _0x15dd25=_0x321dad;this[_0x15dd25(0x214)]=_0x7449c8;}[_0x321dad(0x20b)](){const _0x59d635=_0x321dad,_0x341a97=this[_0x59d635(0x1f4)],_0x18e11b=()=>{const _0x5ec5dd=_0x59d635;_0x2adfd8[_0x5ec5dd(0x22a)][_0x5ec5dd(0x1f9)](()=>{const _0x3781e7=_0x5ec5dd;if(_0x324dd4(this[_0x3781e7(0x1f2)])){const _0x42a207=new _0x229934(this[_0x3781e7(0x220)][_0x3781e7(0x228)][_0x3781e7(0x1f2)]),_0x5e96fe=new _0x229934(this[_0x3781e7(0x216)][_0x3781e7(0x1f2)]),_0x1a0a55=_0x42a207[_0x3781e7(0x1fd)],_0x4e82da=_0x3781e7(0x21d)===_0x341a97[_0x3781e7(0x200)]?_0x3781e7(0x202):_0x3781e7(0x230);_0x42a207[_0x3781e7(0x218)]();const _0x2cd38c=_0x1a0a55-_0x42a207[_0x3781e7(0x1fd)]+0x1;this[_0x3781e7(0x216)][_0x3781e7(0x1f2)][_0x3781e7(0x229)][_0x4e82da]=_0x3781e7(0x1f0)+(_0x1a0a55-_0x5e96fe[_0x3781e7(0x1fd)]-_0x2cd38c)+_0x3781e7(0x20c);}});};this[_0x59d635(0x220)][_0x59d635(0x228)]['on'](_0x59d635(0x213),_0x18e11b),this['on'](_0x59d635(0x20a),()=>{const _0x273964=_0x59d635;_0x18e11b(),this[_0x273964(0x1f8)]=new _0x16a795(this[_0x273964(0x220)][_0x273964(0x228)][_0x273964(0x1f2)],()=>{_0x18e11b();});});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0xc54b(_0x248dac,_0x102682){const _0x450d75=_0x450d();return _0xc54b=function(_0xc54b8f,_0x4f55fb){_0xc54b8f=_0xc54b8f-0xab;let _0x5b7f8f=_0x450d75[_0xc54b8f];return _0x5b7f8f;},_0xc54b(_0x248dac,_0x102682);}function _0x450d(){const _0x5e1b92=['3264696DUVvQT','12qScQSK','1150440PwGYkm','23666ktarbO','4912400ugDEMO','9gmdXMu','length','65220fGkvPC','711655BUcLnn','filter','583177ALnztp','items','78UMHmTx','418YlwFQW'];_0x450d=function(){return _0x5e1b92;};return _0x450d();}const _0x18b1c2=_0xc54b;(function(_0x42de63,_0x5a0ee7){const _0x24ca8e=_0xc54b,_0x5bbfa1=_0x42de63();while(!![]){try{const _0x30eed7=parseInt(_0x24ca8e(0xb6))/0x1+-parseInt(_0x24ca8e(0xb7))/0x2*(-parseInt(_0x24ca8e(0xab))/0x3)+-parseInt(_0x24ca8e(0xb5))/0x4*(parseInt(_0x24ca8e(0xae))/0x5)+parseInt(_0x24ca8e(0xb2))/0x6*(parseInt(_0x24ca8e(0xb0))/0x7)+-parseInt(_0x24ca8e(0xb8))/0x8+-parseInt(_0x24ca8e(0xb4))/0x9+parseInt(_0x24ca8e(0xad))/0xa*(-parseInt(_0x24ca8e(0xb3))/0xb);if(_0x30eed7===_0x5a0ee7)break;else _0x5bbfa1['push'](_0x5bbfa1['shift']());}catch(_0x13dff6){_0x5bbfa1['push'](_0x5bbfa1['shift']());}}}(_0x450d,0x96b8f));import{ListView as _0x5e4f2b}from'ckeditor5/src/ui.js';export class AIChatPromptSuggestionsListView extends _0x5e4f2b{[_0x18b1c2(0xaf)](){const _0x3db355=_0x18b1c2;let _0x4743d8=0x0;for(const _0x3503c2 of this[_0x3db355(0xb1)])_0x4743d8+=_0x3503c2[_0x3db355(0xb1)][_0x3db355(0xac)];return{'resultsCount':_0x4743d8,'totalItemsCount':_0x4743d8};}}
23
+ const _0x429463=_0x3a24;(function(_0x359e12,_0x286434){const _0x327de0=_0x3a24,_0x57716e=_0x359e12();while(!![]){try{const _0x42f704=-parseInt(_0x327de0(0x19f))/0x1*(parseInt(_0x327de0(0x19b))/0x2)+-parseInt(_0x327de0(0x19d))/0x3*(-parseInt(_0x327de0(0x1a4))/0x4)+-parseInt(_0x327de0(0x1a5))/0x5*(parseInt(_0x327de0(0x19e))/0x6)+-parseInt(_0x327de0(0x1a1))/0x7*(-parseInt(_0x327de0(0x199))/0x8)+parseInt(_0x327de0(0x19a))/0x9+-parseInt(_0x327de0(0x1a3))/0xa+parseInt(_0x327de0(0x1a2))/0xb;if(_0x42f704===_0x286434)break;else _0x57716e['push'](_0x57716e['shift']());}catch(_0x2dff79){_0x57716e['push'](_0x57716e['shift']());}}}(_0x1fa3,0xe78db));function _0x3a24(_0x194395,_0xd0f618){const _0x1fa311=_0x1fa3();return _0x3a24=function(_0x3a2444,_0x92fd74){_0x3a2444=_0x3a2444-0x199;let _0x16f42d=_0x1fa311[_0x3a2444];return _0x16f42d;},_0x3a24(_0x194395,_0xd0f618);}import{ListView as _0x3a9257}from'ckeditor5/src/ui.js';function _0x1fa3(){const _0xa00783=['6TujfvN','18WyeYWZ','filter','1589JBiUbD','23474517chBDUb','10352100YvbMBa','11252WMNVti','9397435prQFIx','items','4688kZqMtA','8284968agbtPK','44026MUZfCY','length','1143wlqkDk'];_0x1fa3=function(){return _0xa00783;};return _0x1fa3();}export class AIChatPromptSuggestionsListView extends _0x3a9257{[_0x429463(0x1a0)](){const _0x237a33=_0x429463;let _0xa187d8=0x0;for(const _0x4f00f2 of this[_0x237a33(0x1a6)])_0xa187d8+=_0x4f00f2[_0x237a33(0x1a6)][_0x237a33(0x19c)];return{'resultsCount':_0xa187d8,'totalItemsCount':_0xa187d8};}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x2abe(){const _0x4f9c34=['test','1254310bLiMas','6IiUCuZ','items','updateResourceState','_handleResourceSelection','9oQswgh','102438nahVFo','locale','forEach','highlightText','extendTemplate','useDefaultFiltering','432588DXFNAQ','986070LkABcU','label','clear','fire','execute','3584416nFaiHb','237796SOnXtc','setResources','filter','addResourceToContext','3SkILuV','resource','\x5c$&','trim','_source','add','ck-ai-chat-resources__list','1295028NbHxnW','replace'];_0x2abe=function(){return _0x4f9c34;};return _0x2abe();}const _0x5189eb=_0x9b97;(function(_0x1cc884,_0x595b27){const _0x375b01=_0x9b97,_0x38ea37=_0x1cc884();while(!![]){try{const _0x30b0ca=-parseInt(_0x375b01(0x131))/0x1+-parseInt(_0x375b01(0x137))/0x2+-parseInt(_0x375b01(0x142))/0x3*(parseInt(_0x375b01(0x13e))/0x4)+parseInt(_0x375b01(0x12b))/0x5*(parseInt(_0x375b01(0x12c))/0x6)+-parseInt(_0x375b01(0x149))/0x7+parseInt(_0x375b01(0x13d))/0x8+-parseInt(_0x375b01(0x130))/0x9*(-parseInt(_0x375b01(0x138))/0xa);if(_0x30b0ca===_0x595b27)break;else _0x38ea37['push'](_0x38ea37['shift']());}catch(_0x168e32){_0x38ea37['push'](_0x38ea37['shift']());}}}(_0x2abe,0x39360));import{ListView as _0x48df26}from'ckeditor5/src/ui.js';function _0x9b97(_0x5bae50,_0xf9759f){const _0x2abe42=_0x2abe();return _0x9b97=function(_0x9b976,_0x190c2a){_0x9b976=_0x9b976-0x12a;let _0x345ae3=_0x2abe42[_0x9b976];return _0x345ae3;},_0x9b97(_0x5bae50,_0xf9759f);}import{AIChatResourceListItemView as _0xae1c91}from'./aichatresourcelistitemview.js';const uc=_0x5189eb(0x148);export class AIChatContextResourcesListView extends _0x48df26{[_0x5189eb(0x146)];constructor(_0x15530f,_0x28bc20){const _0x1c8049=_0x5189eb;super(_0x15530f),this[_0x1c8049(0x146)]=_0x28bc20,this[_0x1c8049(0x135)]({'attributes':{'class':[uc]}});}[_0x5189eb(0x13f)](_0x16dd43,_0x3c8c69){const _0x55bbf1=_0x5189eb;this[_0x55bbf1(0x12d)][_0x55bbf1(0x13a)]();let _0x4c2e91=_0x16dd43;if(this[_0x55bbf1(0x146)][_0x55bbf1(0x136)]&&_0x3c8c69&&''!==_0x3c8c69[_0x55bbf1(0x145)]()){const _0x524322=new RegExp(_0x3c8c69[_0x55bbf1(0x14a)](/[.*+?^${}()|[\]\\]/g,_0x55bbf1(0x144)),'gi');_0x4c2e91=_0x16dd43[_0x55bbf1(0x140)](_0x2d2926=>_0x524322[_0x55bbf1(0x12a)](_0x2d2926[_0x55bbf1(0x139)]));}for(const _0x5ef5c9 of _0x4c2e91){const _0x2a8f5a=new _0xae1c91(this[_0x55bbf1(0x132)],_0x5ef5c9);_0x2a8f5a['on'](_0x55bbf1(0x13c),()=>{const _0x2f7eb4=_0x55bbf1;this[_0x2f7eb4(0x12f)](this[_0x2f7eb4(0x146)],_0x5ef5c9);}),this[_0x55bbf1(0x12d)][_0x55bbf1(0x147)](_0x2a8f5a);}this[_0x55bbf1(0x146)][_0x55bbf1(0x136)]&&this[_0x55bbf1(0x134)](_0x3c8c69);}[_0x5189eb(0x134)](_0x469a3c){const _0x1a88f9=_0x5189eb;this[_0x1a88f9(0x146)][_0x1a88f9(0x136)]&&this[_0x1a88f9(0x12d)][_0x1a88f9(0x133)](_0x1b60a3=>{const _0x3d4e2d=_0x1a88f9;_0x1b60a3[_0x3d4e2d(0x134)](_0x469a3c);});}[_0x5189eb(0x12e)](_0x5a201e,_0x468992){const _0x4c61a1=_0x5189eb;for(const _0x13bc8c of this[_0x4c61a1(0x12d)]){const _0x67b45b=_0x13bc8c;_0x67b45b[_0x4c61a1(0x143)]['id']===_0x5a201e&&_0x67b45b[_0x4c61a1(0x12e)](_0x468992);}}[_0x5189eb(0x12f)](_0xc127ba,_0x55d65f){const _0x2fbfd1=_0x5189eb;this[_0x2fbfd1(0x13b)](_0x2fbfd1(0x141),{'source':_0xc127ba,'resource':_0x55d65f});}}
23
+ const _0x2b2d54=_0x20e6;(function(_0x201c88,_0x29a9e0){const _0x113ad4=_0x20e6,_0x371434=_0x201c88();while(!![]){try{const _0x85d245=parseInt(_0x113ad4(0xa0))/0x1*(-parseInt(_0x113ad4(0xa5))/0x2)+-parseInt(_0x113ad4(0x9b))/0x3+parseInt(_0x113ad4(0xa3))/0x4*(-parseInt(_0x113ad4(0x8d))/0x5)+parseInt(_0x113ad4(0x9a))/0x6*(parseInt(_0x113ad4(0x90))/0x7)+parseInt(_0x113ad4(0xa2))/0x8*(parseInt(_0x113ad4(0xa4))/0x9)+-parseInt(_0x113ad4(0x9e))/0xa+-parseInt(_0x113ad4(0xa1))/0xb*(-parseInt(_0x113ad4(0xa7))/0xc);if(_0x85d245===_0x29a9e0)break;else _0x371434['push'](_0x371434['shift']());}catch(_0x4f1eaa){_0x371434['push'](_0x371434['shift']());}}}(_0x98ad,0x80c56));function _0x20e6(_0x4fa8c8,_0x184426){const _0x98ad44=_0x98ad();return _0x20e6=function(_0x20e699,_0x20cbaf){_0x20e699=_0x20e699-0x85;let _0x13acb9=_0x98ad44[_0x20e699];return _0x13acb9;},_0x20e6(_0x4fa8c8,_0x184426);}import{ListView as _0x51ec75}from'ckeditor5/src/ui.js';import{AIChatResourceListItemView as _0x3e39d4}from'./aichatresourcelistitemview.js';function _0x98ad(){const _0x254f91=['useDefaultFiltering','label','315OGnkfy','replace','setResources','add','highlightText','extendTemplate','updateResourceState','locale','test','resource','136386tnIJyl','2018118cuySiz','_source','trim','4124440hncaBc','clear','11gUixOt','704QAXwPW','8ewkQsc','977016SyqrXf','4746402WvbWzr','3238OMIzPM','execute','106620ByIQqa','fire','_handleResourceSelection','items','\x5c$&','ck-ai-chat-resources__list','filter','forEach','addResourceToContext','10zDzJJs'];_0x98ad=function(){return _0x254f91;};return _0x98ad();}const uc=_0x2b2d54(0x89);export class AIChatContextResourcesListView extends _0x51ec75{[_0x2b2d54(0x9c)];constructor(_0x33d21b,_0x494e1b){const _0x529b29=_0x2b2d54;super(_0x33d21b),this[_0x529b29(0x9c)]=_0x494e1b,this[_0x529b29(0x95)]({'attributes':{'class':[uc]}});}[_0x2b2d54(0x92)](_0x19486f,_0x260622){const _0x4acf01=_0x2b2d54;this[_0x4acf01(0x87)][_0x4acf01(0x9f)]();let _0x513c05=_0x19486f;if(this[_0x4acf01(0x9c)][_0x4acf01(0x8e)]&&_0x260622&&''!==_0x260622[_0x4acf01(0x9d)]()){const _0x369172=new RegExp(_0x260622[_0x4acf01(0x91)](/[.*+?^${}()|[\]\\]/g,_0x4acf01(0x88)),'gi');_0x513c05=_0x19486f[_0x4acf01(0x8a)](_0x176f09=>_0x369172[_0x4acf01(0x98)](_0x176f09[_0x4acf01(0x8f)]));}for(const _0x3b69a1 of _0x513c05){const _0x57cc60=new _0x3e39d4(this[_0x4acf01(0x97)],_0x3b69a1);_0x57cc60['on'](_0x4acf01(0xa6),()=>{const _0x238a21=_0x4acf01;this[_0x238a21(0x86)](this[_0x238a21(0x9c)],_0x3b69a1);}),this[_0x4acf01(0x87)][_0x4acf01(0x93)](_0x57cc60);}this[_0x4acf01(0x9c)][_0x4acf01(0x8e)]&&this[_0x4acf01(0x94)](_0x260622);}[_0x2b2d54(0x94)](_0x5412e9){const _0xecf4de=_0x2b2d54;this[_0xecf4de(0x9c)][_0xecf4de(0x8e)]&&this[_0xecf4de(0x87)][_0xecf4de(0x8b)](_0x2c1d25=>{const _0x4c0972=_0xecf4de;_0x2c1d25[_0x4c0972(0x94)](_0x5412e9);});}[_0x2b2d54(0x96)](_0x13a47b,_0x44cbc2){const _0x3dc7d2=_0x2b2d54;for(const _0x3136a2 of this[_0x3dc7d2(0x87)]){const _0x3bbdca=_0x3136a2;_0x3bbdca[_0x3dc7d2(0x99)]['id']===_0x13a47b&&_0x3bbdca[_0x3dc7d2(0x96)](_0x44cbc2);}}[_0x2b2d54(0x86)](_0x2876e9,_0x3d730b){const _0x28fb93=_0x2b2d54;this[_0x28fb93(0x85)](_0x28fb93(0x8c),{'source':_0x2876e9,'resource':_0x3d730b});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x45e7(_0x1ce795,_0x525a94){const _0x5c86ef=_0x5c86();return _0x45e7=function(_0x45e71b,_0x4ce919){_0x45e71b=_0x45e71b-0x157;let _0x2d6c3a=_0x5c86ef[_0x45e71b];return _0x2d6c3a;},_0x45e7(_0x1ce795,_0x525a94);}const _0x884291=_0x45e7;(function(_0xa0344c,_0x458ab1){const _0x5b501e=_0x45e7,_0x2152d3=_0xa0344c();while(!![]){try{const _0x466528=parseInt(_0x5b501e(0x17b))/0x1+parseInt(_0x5b501e(0x157))/0x2*(parseInt(_0x5b501e(0x159))/0x3)+-parseInt(_0x5b501e(0x16e))/0x4*(-parseInt(_0x5b501e(0x178))/0x5)+parseInt(_0x5b501e(0x173))/0x6+-parseInt(_0x5b501e(0x162))/0x7+parseInt(_0x5b501e(0x17a))/0x8*(-parseInt(_0x5b501e(0x177))/0x9)+-parseInt(_0x5b501e(0x16d))/0xa;if(_0x466528===_0x458ab1)break;else _0x2152d3['push'](_0x2152d3['shift']());}catch(_0x536f30){_0x2152d3['push'](_0x2152d3['shift']());}}}(_0x5c86,0x5a0a6));import{View as _0x5c54ba,ViewCollection as _0x43f056}from'ckeditor5/src/ui.js';import{uid as _0x7c2956}from'ckeditor5/src/utils.js';import{AIChatContextResourcesListView as _0x156022}from'./aichatcontextresourceslistview.js';function _0x5c86(){const _0x3cd6a2=['1965404czfIEA','highlightText','_resourcesListView','_searchSection','bindTemplate','setTemplate','delegate','getQuery','isLoading','useDefaultFiltering','has','2393650smwErQ','4bxrfTc','extendTemplate','_createResourcesListView','length','_skeletonLoader','3001590RUmtJH','ck\x20ck-search','set','_searchView','1599237vyVrKd','209795fLyGtx','loadResources','32Xlmeab','515342MNLoDi','search','updateResourceState','ck-ai-chat-resources','children','_source','addResourceToContext','fire','div','ck-hidden','_createSearchView','locale','_createSearchSection','render','2Ylxavu','searchInputVisibleFrom','1626447xbsRkr','setResources','source','_latestLoadResourcesUid','aiChatResources','add','_createSkeletonView','_searchInputVisibleFrom','loadSourceResources'];_0x5c86=function(){return _0x3cd6a2;};return _0x5c86();}import{AIChatContextResourcesSearchInputView as _0x56c4a4}from'./aichatresourcessearchinputview.js';import{AISkeletonView as _0xf31ea4,SKELETON_DEFINITIONS as _0x12ffdf}from'../../../../aicore/ui/aiskeleton.js';export class AIChatContextResourcesView extends _0x5c54ba{[_0x884291(0x176)];[_0x884291(0x165)];[_0x884291(0x160)];[_0x884291(0x164)];[_0x884291(0x172)];[_0x884291(0x180)];[_0x884291(0x17f)];[_0x884291(0x15c)]=null;constructor(_0x25dbd4,_0x11887b){const _0x197e4a=_0x884291;super(_0x25dbd4),this[_0x197e4a(0x180)]=_0x11887b[_0x197e4a(0x15b)],this[_0x197e4a(0x160)]=_0x11887b[_0x197e4a(0x158)]??0x7,this[_0x197e4a(0x175)](_0x197e4a(0x16a),!0x0),this[_0x197e4a(0x176)]=this[_0x197e4a(0x185)](),this[_0x197e4a(0x165)]=this[_0x197e4a(0x187)](),this[_0x197e4a(0x164)]=this[_0x197e4a(0x170)](),this[_0x197e4a(0x172)]=this[_0x197e4a(0x15f)](),this[_0x197e4a(0x17f)]=new _0x43f056([this[_0x197e4a(0x172)],this[_0x197e4a(0x164)]]),this[_0x197e4a(0x167)]({'tag':_0x197e4a(0x183),'attributes':{'class':_0x197e4a(0x17e)},'children':this[_0x197e4a(0x17f)]});}[_0x884291(0x185)](){const _0x5f1105=_0x884291;return new _0x56c4a4(this[_0x5f1105(0x186)]);}[_0x884291(0x187)](){const _0x3100e1=_0x884291,_0x559501=new _0x5c54ba(this[_0x3100e1(0x186)]);return _0x559501[_0x3100e1(0x167)]({'tag':_0x3100e1(0x183),'attributes':{'class':_0x3100e1(0x174)},'children':[this[_0x3100e1(0x176)]]}),this[_0x3100e1(0x176)]['on'](_0x3100e1(0x17c),(_0x57cfa1,_0x1439c9)=>{const _0x4b27be=_0x3100e1;this[_0x4b27be(0x179)](_0x1439c9),this[_0x4b27be(0x180)][_0x4b27be(0x16b)]&&this[_0x4b27be(0x164)][_0x4b27be(0x163)](_0x1439c9);}),_0x559501;}[_0x884291(0x170)](){const _0x1f6b5f=_0x884291,_0x361bd5=new _0x156022(this[_0x1f6b5f(0x186)],this[_0x1f6b5f(0x180)]);return _0x361bd5[_0x1f6b5f(0x168)](_0x1f6b5f(0x181))['to'](this),_0x361bd5[_0x1f6b5f(0x16f)]({'attributes':{'class':this[_0x1f6b5f(0x166)]['if'](_0x1f6b5f(0x16a),_0x1f6b5f(0x184))}}),_0x361bd5;}[_0x884291(0x15f)](){const _0x5654b5=_0x884291,_0x19ea74=new _0xf31ea4(this[_0x5654b5(0x186)],_0x12ffdf[_0x5654b5(0x15d)]);return _0x19ea74[_0x5654b5(0x16f)]({'attributes':{'class':[this[_0x5654b5(0x166)]['if'](_0x5654b5(0x16a),_0x5654b5(0x184),_0x400a14=>!_0x400a14)]}}),_0x19ea74;}[_0x884291(0x188)](){const _0xfc1209=_0x884291;super[_0xfc1209(0x188)](),this[_0xfc1209(0x179)]('');}[_0x884291(0x179)](_0x296c01){const _0x364685=_0x884291,_0x1fb03b=_0x7c2956();this[_0x364685(0x15c)]=_0x1fb03b,this[_0x364685(0x182)](_0x364685(0x161),{'sourceId':this[_0x364685(0x180)]['id'],'query':_0x296c01,'uid':_0x1fb03b}),this[_0x364685(0x16a)]=!0x0;}[_0x884291(0x15a)](_0x33cb1a,_0x3914cc){const _0x1ff8cc=_0x884291;if(_0x3914cc&&_0x3914cc!==this[_0x1ff8cc(0x15c)])return;const _0x1124ca=this[_0x1ff8cc(0x180)][_0x1ff8cc(0x16b)]?this[_0x1ff8cc(0x176)][_0x1ff8cc(0x169)]():'';this[_0x1ff8cc(0x164)][_0x1ff8cc(0x15a)](_0x33cb1a,_0x1124ca),_0x33cb1a[_0x1ff8cc(0x171)]>=this[_0x1ff8cc(0x160)]&&!this[_0x1ff8cc(0x17f)][_0x1ff8cc(0x16c)](this[_0x1ff8cc(0x165)])&&this[_0x1ff8cc(0x17f)][_0x1ff8cc(0x15e)](this[_0x1ff8cc(0x165)],0x0),requestAnimationFrame(()=>{const _0x496018=_0x1ff8cc;this[_0x496018(0x16a)]=!0x1;});}[_0x884291(0x17d)](_0x369b79,_0x33f36f){const _0x58b388=_0x884291;this[_0x58b388(0x164)][_0x58b388(0x17d)](_0x369b79,_0x33f36f);}}
23
+ const _0x1b627e=_0xf5b3;(function(_0x488f5e,_0x87b326){const _0x31c77d=_0xf5b3,_0x106b3a=_0x488f5e();while(!![]){try{const _0x59940e=parseInt(_0x31c77d(0xf4))/0x1*(-parseInt(_0x31c77d(0x10e))/0x2)+parseInt(_0x31c77d(0x10c))/0x3+-parseInt(_0x31c77d(0xf7))/0x4+parseInt(_0x31c77d(0xfd))/0x5*(-parseInt(_0x31c77d(0x104))/0x6)+-parseInt(_0x31c77d(0x11f))/0x7+parseInt(_0x31c77d(0x103))/0x8+-parseInt(_0x31c77d(0x11d))/0x9*(-parseInt(_0x31c77d(0x11b))/0xa);if(_0x59940e===_0x87b326)break;else _0x106b3a['push'](_0x106b3a['shift']());}catch(_0x3cedba){_0x106b3a['push'](_0x106b3a['shift']());}}}(_0xa90f,0x26b9f));import{View as _0x17b3fa,ViewCollection as _0xc3cba8}from'ckeditor5/src/ui.js';function _0xa90f(){const _0xaec632=['282145DgbqVj','_searchSection','getQuery','193920qIwZrj','fire','_searchView','set','_createResourcesListView','locale','5yVCcUy','highlightText','loadResources','extendTemplate','_createSearchView','_createSearchSection','1731496hbXkCf','1647426KqjiVk','searchInputVisibleFrom','add','render','_latestLoadResourcesUid','_source','ck-ai-chat-resources','has','581430iBHQGK','search','2EtXmly','_resourcesListView','source','bindTemplate','setResources','delegate','ck-hidden','loadSourceResources','_skeletonLoader','length','setTemplate','ck\x20ck-search','useDefaultFiltering','10FxbLaA','div','3636594hqFfhr','aiChatResources','353458xjiOBp','isLoading','addResourceToContext','_searchInputVisibleFrom','children','_createSkeletonView','updateResourceState'];_0xa90f=function(){return _0xaec632;};return _0xa90f();}function _0xf5b3(_0x114a68,_0x4fd6bc){const _0xa90f49=_0xa90f();return _0xf5b3=function(_0xf5b3e7,_0x3289f7){_0xf5b3e7=_0xf5b3e7-0xee;let _0x1cf6eb=_0xa90f49[_0xf5b3e7];return _0x1cf6eb;},_0xf5b3(_0x114a68,_0x4fd6bc);}import{uid as _0x3c10cc}from'ckeditor5/src/utils.js';import{AIChatContextResourcesListView as _0x445f5f}from'./aichatcontextresourceslistview.js';import{AIChatContextResourcesSearchInputView as _0x30bc2f}from'./aichatresourcessearchinputview.js';import{AISkeletonView as _0x3b6205,SKELETON_DEFINITIONS as _0x2261dd}from'../../../../aicore/ui/aiskeleton.js';export class AIChatContextResourcesView extends _0x17b3fa{[_0x1b627e(0xf9)];[_0x1b627e(0xf5)];[_0x1b627e(0xf0)];[_0x1b627e(0x10f)];[_0x1b627e(0x116)];[_0x1b627e(0x109)];[_0x1b627e(0xf1)];[_0x1b627e(0x108)]=null;constructor(_0x285822,_0x52a1f4){const _0xe97cff=_0x1b627e;super(_0x285822),this[_0xe97cff(0x109)]=_0x52a1f4[_0xe97cff(0x110)],this[_0xe97cff(0xf0)]=_0x52a1f4[_0xe97cff(0x105)]??0x7,this[_0xe97cff(0xfa)](_0xe97cff(0xee),!0x0),this[_0xe97cff(0xf9)]=this[_0xe97cff(0x101)](),this[_0xe97cff(0xf5)]=this[_0xe97cff(0x102)](),this[_0xe97cff(0x10f)]=this[_0xe97cff(0xfb)](),this[_0xe97cff(0x116)]=this[_0xe97cff(0xf2)](),this[_0xe97cff(0xf1)]=new _0xc3cba8([this[_0xe97cff(0x116)],this[_0xe97cff(0x10f)]]),this[_0xe97cff(0x118)]({'tag':_0xe97cff(0x11c),'attributes':{'class':_0xe97cff(0x10a)},'children':this[_0xe97cff(0xf1)]});}[_0x1b627e(0x101)](){const _0x230389=_0x1b627e;return new _0x30bc2f(this[_0x230389(0xfc)]);}[_0x1b627e(0x102)](){const _0x3963c2=_0x1b627e,_0x8bea74=new _0x17b3fa(this[_0x3963c2(0xfc)]);return _0x8bea74[_0x3963c2(0x118)]({'tag':_0x3963c2(0x11c),'attributes':{'class':_0x3963c2(0x119)},'children':[this[_0x3963c2(0xf9)]]}),this[_0x3963c2(0xf9)]['on'](_0x3963c2(0x10d),(_0x122b94,_0x394e7a)=>{const _0x592a67=_0x3963c2;this[_0x592a67(0xff)](_0x394e7a),this[_0x592a67(0x109)][_0x592a67(0x11a)]&&this[_0x592a67(0x10f)][_0x592a67(0xfe)](_0x394e7a);}),_0x8bea74;}[_0x1b627e(0xfb)](){const _0x37cf15=_0x1b627e,_0x12a1b1=new _0x445f5f(this[_0x37cf15(0xfc)],this[_0x37cf15(0x109)]);return _0x12a1b1[_0x37cf15(0x113)](_0x37cf15(0xef))['to'](this),_0x12a1b1[_0x37cf15(0x100)]({'attributes':{'class':this[_0x37cf15(0x111)]['if'](_0x37cf15(0xee),_0x37cf15(0x114))}}),_0x12a1b1;}[_0x1b627e(0xf2)](){const _0x1e1fb3=_0x1b627e,_0x431a82=new _0x3b6205(this[_0x1e1fb3(0xfc)],_0x2261dd[_0x1e1fb3(0x11e)]);return _0x431a82[_0x1e1fb3(0x100)]({'attributes':{'class':[this[_0x1e1fb3(0x111)]['if'](_0x1e1fb3(0xee),_0x1e1fb3(0x114),_0x26d89c=>!_0x26d89c)]}}),_0x431a82;}[_0x1b627e(0x107)](){const _0x359a72=_0x1b627e;super[_0x359a72(0x107)](),this[_0x359a72(0xff)]('');}[_0x1b627e(0xff)](_0x1652c3){const _0xef3c0a=_0x1b627e,_0x49f760=_0x3c10cc();this[_0xef3c0a(0x108)]=_0x49f760,this[_0xef3c0a(0xf8)](_0xef3c0a(0x115),{'sourceId':this[_0xef3c0a(0x109)]['id'],'query':_0x1652c3,'uid':_0x49f760}),this[_0xef3c0a(0xee)]=!0x0;}[_0x1b627e(0x112)](_0x23f80a,_0x1dc51f){const _0x419d5e=_0x1b627e;if(_0x1dc51f&&_0x1dc51f!==this[_0x419d5e(0x108)])return;const _0x324db2=this[_0x419d5e(0x109)][_0x419d5e(0x11a)]?this[_0x419d5e(0xf9)][_0x419d5e(0xf6)]():'';this[_0x419d5e(0x10f)][_0x419d5e(0x112)](_0x23f80a,_0x324db2),_0x23f80a[_0x419d5e(0x117)]>=this[_0x419d5e(0xf0)]&&!this[_0x419d5e(0xf1)][_0x419d5e(0x10b)](this[_0x419d5e(0xf5)])&&this[_0x419d5e(0xf1)][_0x419d5e(0x106)](this[_0x419d5e(0xf5)],0x0),requestAnimationFrame(()=>{const _0x34b62e=_0x419d5e;this[_0x34b62e(0xee)]=!0x1;});}[_0x1b627e(0xf3)](_0x2de58d,_0x53968c){const _0xb4c353=_0x1b627e;this[_0xb4c353(0x10f)][_0xb4c353(0xf3)](_0x2de58d,_0x53968c);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xdbcf73=_0x208d;function _0x208d(_0x2644eb,_0x4f1b34){const _0x61ffde=_0x61ff();return _0x208d=function(_0x208d05,_0x949788){_0x208d05=_0x208d05-0xc1;let _0x405147=_0x61ffde[_0x208d05];return _0x405147;},_0x208d(_0x2644eb,_0x4f1b34);}(function(_0x2d68f3,_0x3e8f4e){const _0x4393aa=_0x208d,_0x1c5e23=_0x2d68f3();while(!![]){try{const _0x344091=-parseInt(_0x4393aa(0xca))/0x1+-parseInt(_0x4393aa(0xd1))/0x2+parseInt(_0x4393aa(0xc5))/0x3+-parseInt(_0x4393aa(0xe8))/0x4+-parseInt(_0x4393aa(0xde))/0x5+parseInt(_0x4393aa(0xc6))/0x6*(parseInt(_0x4393aa(0xdb))/0x7)+parseInt(_0x4393aa(0xe3))/0x8;if(_0x344091===_0x3e8f4e)break;else _0x1c5e23['push'](_0x1c5e23['shift']());}catch(_0x24113b){_0x1c5e23['push'](_0x1c5e23['shift']());}}}(_0x61ff,0x5e584));import{HighlightedTextView as _0x428d00,IconView as _0x1a309a,ListItemView as _0x1a852a}from'ckeditor5/src/ui.js';import{escapeRegExp as _0x5252cb}from'es-toolkit/compat';import{AIContextItemType as _0x4adf98}from'../../../../aicore/model/aicontext.js';import{IconFileUpload as _0xb59cf0,IconCheck as _0x39faf1,IconDocument as _0x5157fa,IconDocumentOutline as _0x19ce33,IconLink as _0x2a025e}from'@ckeditor/ckeditor5-icons';const zr=_0xdbcf73(0xd9),Jr=_0xdbcf73(0xe5),Kr=_0xdbcf73(0xce),Mr=_0xdbcf73(0xe1);export class AIChatResourceListItemView extends _0x1a852a{[_0xdbcf73(0xea)];[_0xdbcf73(0xe7)];[_0xdbcf73(0xc8)];constructor(_0x4692db,_0x1f027e){const _0x35d678=_0xdbcf73;super(_0x4692db),this[_0x35d678(0xea)]=_0x1f027e,this[_0x35d678(0xe4)](_0x35d678(0xdd),!!_0x1f027e[_0x35d678(0xdd)]),this[_0x35d678(0xe7)]=this[_0x35d678(0xc3)](),this[_0x35d678(0xc8)]=this[_0x35d678(0xd3)](),this[_0x35d678(0xd0)]();}[_0xdbcf73(0xd5)](){const _0x5cf6bd=_0xdbcf73;super[_0x5cf6bd(0xd5)]();}[_0xdbcf73(0xc2)](_0x5828b5){const _0x18c904=_0xdbcf73;if(_0x5828b5[_0x18c904(0xdd)])return _0x39faf1;switch(_0x5828b5[_0x18c904(0xe2)]){case _0x4adf98[_0x18c904(0xe9)]:return _0x5157fa;case _0x4adf98[_0x18c904(0xdf)]:return _0x2a025e;case _0x4adf98[_0x18c904(0xcc)]:case _0x4adf98[_0x18c904(0xd2)]:return _0xb59cf0;default:return _0x19ce33;}}[_0xdbcf73(0xc7)](_0x2a1b06){const _0x3d2e27=_0xdbcf73;if(!_0x2a1b06||''===_0x2a1b06[_0x3d2e27(0xd4)]())return void this[_0x3d2e27(0xe7)][_0x3d2e27(0xc7)](null);const _0x1c12cb=new RegExp(_0x5252cb(_0x2a1b06),'gi');this[_0x3d2e27(0xe7)][_0x3d2e27(0xc7)](_0x1c12cb);}[_0xdbcf73(0xc4)](_0x514379){const _0x5c2444=_0xdbcf73;this[_0x5c2444(0xea)][_0x5c2444(0xdd)]=_0x514379,this[_0x5c2444(0xdd)]=_0x514379,this[_0x5c2444(0xd8)]();}[_0xdbcf73(0xc3)](){const _0x2326d9=_0xdbcf73,_0x35a449=new _0x428d00();return _0x35a449[_0x2326d9(0xcd)]=this[_0x2326d9(0xea)][_0x2326d9(0xd7)],_0x35a449[_0x2326d9(0xcb)]({'tag':_0x2326d9(0xcf),'attributes':{'class':[Kr]}}),_0x35a449;}[_0xdbcf73(0xd3)](){const _0x1ad13d=_0xdbcf73,_0x4119fb=new _0x1a309a();return _0x4119fb[_0x1ad13d(0xe6)]=this[_0x1ad13d(0xc2)](this[_0x1ad13d(0xea)]),_0x4119fb;}[_0xdbcf73(0xd0)](){const _0x44ec83=_0xdbcf73,_0x2fd86e=this[_0x44ec83(0xd6)];this[_0x44ec83(0xc9)]({'tag':_0x44ec83(0xc1),'attributes':{'class':[zr,_0x2fd86e['if'](_0x44ec83(0xdc),_0x44ec83(0xda),_0x3eaefa=>!_0x3eaefa),_0x2fd86e['if'](_0x44ec83(0xdd),Jr)]},'children':[{'tag':_0x44ec83(0xc1),'attributes':{'class':[Mr]},'children':[this[_0x44ec83(0xc8)]]},this[_0x44ec83(0xe7)]],'on':{'click':_0x2fd86e['to'](_0x44ec83(0xe0))}});}[_0xdbcf73(0xd8)](){const _0x3627e8=_0xdbcf73;this[_0x3627e8(0xc8)][_0x3627e8(0xe6)]=this[_0x3627e8(0xc2)](this[_0x3627e8(0xea)]);}}function _0x61ff(){const _0x49a044=['execute','ck-ai-chat-resources__item__icon','type','6147272XdZYab','set','ck-ai-chat-resources__item--in-context','content','_titleView','1234692lLHUOc','DOCUMENT','resource','div','getResourceIcon','_createTitleView','updateResourceState','789231LlRfWX','1504530GBDfUr','highlightText','_iconView','setTemplate','474743cPxuVs','extendTemplate','FILE','text','ck-ai-chat-resources__item-title','span','_setupTemplate','748902nOJuAL','TEXT','_createIconView','trim','render','bindTemplate','label','_updateIcon','ck-ai-chat-resources__item','ck-hidden','21DgCkxJ','isVisible','isInContext','1197240izIQWZ','URL'];_0x61ff=function(){return _0x49a044;};return _0x61ff();}
23
+ const _0xc2b2d0=_0x107c;function _0x107c(_0x3fb443,_0x3a41dc){const _0x4f8d9d=_0x4f8d();return _0x107c=function(_0x107ca5,_0x1c9964){_0x107ca5=_0x107ca5-0xc4;let _0x1cadbf=_0x4f8d9d[_0x107ca5];return _0x1cadbf;},_0x107c(_0x3fb443,_0x3a41dc);}(function(_0x570900,_0x1f8f7a){const _0x5ebd96=_0x107c,_0x424b6b=_0x570900();while(!![]){try{const _0x38cfaf=-parseInt(_0x5ebd96(0xe6))/0x1+parseInt(_0x5ebd96(0xc7))/0x2+parseInt(_0x5ebd96(0xcd))/0x3*(parseInt(_0x5ebd96(0xd5))/0x4)+-parseInt(_0x5ebd96(0xdd))/0x5+-parseInt(_0x5ebd96(0xde))/0x6*(-parseInt(_0x5ebd96(0xda))/0x7)+parseInt(_0x5ebd96(0xe3))/0x8*(-parseInt(_0x5ebd96(0xe5))/0x9)+parseInt(_0x5ebd96(0xca))/0xa*(parseInt(_0x5ebd96(0xdc))/0xb);if(_0x38cfaf===_0x1f8f7a)break;else _0x424b6b['push'](_0x424b6b['shift']());}catch(_0x449aef){_0x424b6b['push'](_0x424b6b['shift']());}}}(_0x4f8d,0x9b445));import{HighlightedTextView as _0x3e5f9d,IconView as _0x4c3b0d,ListItemView as _0x7a3b5b}from'ckeditor5/src/ui.js';import{escapeRegExp as _0x27f4c5}from'es-toolkit/compat';import{AIContextItemType as _0x481652}from'../../../../aicore/model/aicontext.js';import{IconFileUpload as _0x1db3c2,IconCheck as _0x394b82,IconDocument as _0x397df3,IconDocumentOutline as _0x25c270,IconLink as _0x599036}from'@ckeditor/ckeditor5-icons';const zr=_0xc2b2d0(0xdb),Jr=_0xc2b2d0(0xc9),Kr=_0xc2b2d0(0xeb),Mr=_0xc2b2d0(0xc5);export class AIChatResourceListItemView extends _0x7a3b5b{[_0xc2b2d0(0xd2)];[_0xc2b2d0(0xe2)];[_0xc2b2d0(0xd3)];constructor(_0xffb86e,_0x3c28e3){const _0x3ce18d=_0xc2b2d0;super(_0xffb86e),this[_0x3ce18d(0xd2)]=_0x3c28e3,this[_0x3ce18d(0xe4)](_0x3ce18d(0xe1),!!_0x3c28e3[_0x3ce18d(0xe1)]),this[_0x3ce18d(0xe2)]=this[_0x3ce18d(0xd1)](),this[_0x3ce18d(0xd3)]=this[_0x3ce18d(0xc6)](),this[_0x3ce18d(0xee)]();}[_0xc2b2d0(0xed)](){const _0x5ae4dc=_0xc2b2d0;super[_0x5ae4dc(0xed)]();}[_0xc2b2d0(0xd7)](_0x14b96c){const _0x49bd55=_0xc2b2d0;if(_0x14b96c[_0x49bd55(0xe1)])return _0x394b82;switch(_0x14b96c[_0x49bd55(0xcc)]){case _0x481652[_0x49bd55(0xd8)]:return _0x397df3;case _0x481652[_0x49bd55(0xec)]:return _0x599036;case _0x481652[_0x49bd55(0xe7)]:case _0x481652[_0x49bd55(0xcb)]:return _0x1db3c2;default:return _0x25c270;}}[_0xc2b2d0(0xd6)](_0x586954){const _0x4d22ef=_0xc2b2d0;if(!_0x586954||''===_0x586954[_0x4d22ef(0xef)]())return void this[_0x4d22ef(0xe2)][_0x4d22ef(0xd6)](null);const _0x3a8a7c=new RegExp(_0x27f4c5(_0x586954),'gi');this[_0x4d22ef(0xe2)][_0x4d22ef(0xd6)](_0x3a8a7c);}[_0xc2b2d0(0xc4)](_0x329f57){const _0x13f1b6=_0xc2b2d0;this[_0x13f1b6(0xd2)][_0x13f1b6(0xe1)]=_0x329f57,this[_0x13f1b6(0xe1)]=_0x329f57,this[_0x13f1b6(0xe9)]();}[_0xc2b2d0(0xd1)](){const _0x54a571=_0xc2b2d0,_0x544c65=new _0x3e5f9d();return _0x544c65[_0x54a571(0xd0)]=this[_0x54a571(0xd2)][_0x54a571(0xce)],_0x544c65[_0x54a571(0xf0)]({'tag':_0x54a571(0xd4),'attributes':{'class':[Kr]}}),_0x544c65;}[_0xc2b2d0(0xc6)](){const _0x58de47=_0xc2b2d0,_0x4f2470=new _0x4c3b0d();return _0x4f2470[_0x58de47(0xe0)]=this[_0x58de47(0xd7)](this[_0x58de47(0xd2)]),_0x4f2470;}[_0xc2b2d0(0xee)](){const _0x2a430c=_0xc2b2d0,_0x4877f2=this[_0x2a430c(0xdf)];this[_0x2a430c(0xea)]({'tag':_0x2a430c(0xd9),'attributes':{'class':[zr,_0x4877f2['if'](_0x2a430c(0xe8),_0x2a430c(0xc8),_0x281875=>!_0x281875),_0x4877f2['if'](_0x2a430c(0xe1),Jr)]},'children':[{'tag':_0x2a430c(0xd9),'attributes':{'class':[Mr]},'children':[this[_0x2a430c(0xd3)]]},this[_0x2a430c(0xe2)]],'on':{'click':_0x4877f2['to'](_0x2a430c(0xcf))}});}[_0xc2b2d0(0xe9)](){const _0x26116d=_0xc2b2d0;this[_0x26116d(0xd3)][_0x26116d(0xe0)]=this[_0x26116d(0xd7)](this[_0x26116d(0xd2)]);}}function _0x4f8d(){const _0x5d8600=['ck-ai-chat-resources__item__icon','_createIconView','538046pBIwkK','ck-hidden','ck-ai-chat-resources__item--in-context','202330GDDZxf','TEXT','type','3651IrLazg','label','execute','text','_createTitleView','resource','_iconView','span','2996oseRcn','highlightText','getResourceIcon','DOCUMENT','div','3014984bMCBwO','ck-ai-chat-resources__item','187wCMkXD','379745eWBYCW','6UNmijy','bindTemplate','content','isInContext','_titleView','488328WdZEVU','set','9WTbjzd','1182266DruzfO','FILE','isVisible','_updateIcon','setTemplate','ck-ai-chat-resources__item-title','URL','render','_setupTemplate','trim','extendTemplate','updateResourceState'];_0x4f8d=function(){return _0x5d8600;};return _0x4f8d();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3f9884=_0x1ff5;function _0x444f(){const _0x17d2ae=['_sourceResourceBalloons','getTargetElement','get','values','_config','label','onLoadSourceResources','_createBalloonHeader','475704IBnIpF','_locale','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_source','7McRxkr','extendTemplate','closeSourceResourceBalloon','destroy','_createBalloonResourcesView','updateResourceState','onResourceSelected','1034406DTqeZB','onBalloonClosed','searchInputVisibleFrom','6361952bvFIym','onBackToContext','resource','ck-ai-chat-context-controls__source-balloon-panel','_setupSingleResourceBalloonClickOutsideHandler','setResources','9043750WDCppB','pin','_bodyCollection','execute','_createBackButton','1449981HyTOod','showSourceResourcesBalloon','36VZaVXd','source','_getResourcesViewFromBalloon','addResourceToContext','isVisible','4086255lgyhEV','change:isLoading','add','_createSourceResourceBalloonPanel','content','isAnyResourceBalloonVisible','children','hide','show','element','_addSourceResourceContent','once','getLimiterElement','clear','loadSourceResources','32ELuyPw','ck-button-icon\x20ck-button-back','19119hHvGrn','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','populateSourceResourceBalloon','delete','set'];_0x444f=function(){return _0x17d2ae;};return _0x444f();}(function(_0x4fd673,_0x4011fa){const _0x3b6c8a=_0x1ff5,_0x9d4256=_0x4fd673();while(!![]){try{const _0x14394f=parseInt(_0x3b6c8a(0xed))/0x1+-parseInt(_0x3b6c8a(0xef))/0x2*(parseInt(_0x3b6c8a(0xc8))/0x3)+parseInt(_0x3b6c8a(0xe2))/0x4+-parseInt(_0x3b6c8a(0xb7))/0x5+-parseInt(_0x3b6c8a(0xd5))/0x6*(-parseInt(_0x3b6c8a(0xd8))/0x7)+-parseInt(_0x3b6c8a(0xc6))/0x8*(parseInt(_0x3b6c8a(0xdf))/0x9)+-parseInt(_0x3b6c8a(0xe8))/0xa;if(_0x14394f===_0x4011fa)break;else _0x9d4256['push'](_0x9d4256['shift']());}catch(_0x459534){_0x9d4256['push'](_0x9d4256['shift']());}}}(_0x444f,0xc917d));import{BalloonPanelView as _0x1047f5,ButtonView as _0x4debf7,clickOutsideHandler as _0x35934d,FormHeaderView as _0x10815b}from'ckeditor5/src/ui.js';import{IconPreviousArrow as _0x525938}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x3811b4}from'../../../../aicore/utils/common-translations.js';function _0x1ff5(_0x32e755,_0x2a7f4f){const _0x444f1d=_0x444f();return _0x1ff5=function(_0x1ff583,_0x36fab3){_0x1ff583=_0x1ff583-0xb3;let _0x1960c6=_0x444f1d[_0x1ff583];return _0x1960c6;},_0x1ff5(_0x32e755,_0x2a7f4f);}import{AIChatContextResourcesView as _0xf20241}from'./aichatcontextresourcesview.js';const lc=_0x3f9884(0xe5),Bc=_0x3f9884(0xc7),_c=_0x3f9884(0xd7);export class AIChatResourcesBalloonView{[_0x3f9884(0xcd)]=new Map();[_0x3f9884(0xea)];[_0x3f9884(0xd6)];[_0x3f9884(0xd1)];constructor(_0x41cc9a,_0x59dd31,_0xef623a){const _0x44aace=_0x3f9884;this[_0x44aace(0xd6)]=_0x41cc9a,this[_0x44aace(0xea)]=_0x59dd31,this[_0x44aace(0xd1)]=_0xef623a;}[_0x3f9884(0xee)]({source:_0x2b3077,withBackButton:_0x39e071}){const _0x151bed=_0x3f9884;let _0x5d67ba=this[_0x151bed(0xcd)][_0x151bed(0xcf)](_0x2b3077['id']);_0x5d67ba||(_0x5d67ba=this[_0x151bed(0xba)](),this[_0x151bed(0xcd)][_0x151bed(0xcc)](_0x2b3077['id'],_0x5d67ba),this[_0x151bed(0xe6)](_0x5d67ba)),this[_0x151bed(0xc1)]({'balloonPanel':_0x5d67ba,'source':_0x2b3077,'withBackButton':_0x39e071}),_0x5d67ba[_0x151bed(0xbf)]();const _0xaf4b76=this[_0x151bed(0xd1)][_0x151bed(0xce)]();_0xaf4b76&&_0x5d67ba[_0x151bed(0xe9)]({'target':_0xaf4b76,'limiter':this[_0x151bed(0xd1)][_0x151bed(0xc3)]()});}[_0x3f9884(0xca)](_0x24ee08,_0x54c56b,_0x128ea1){const _0x340ea9=_0x3f9884,_0x2fe7c5=this[_0x340ea9(0xcd)][_0x340ea9(0xcf)](_0x24ee08);if(!_0x2fe7c5)return;const _0x5ea0ff=this[_0x340ea9(0xb4)](_0x2fe7c5);_0x5ea0ff&&(_0x5ea0ff[_0x340ea9(0xe7)](_0x54c56b,_0x128ea1),_0x5ea0ff[_0x340ea9(0xc2)](_0x340ea9(0xb8),()=>{const _0x175634=_0x340ea9;_0x2fe7c5[_0x175634(0xe9)]({'target':this[_0x175634(0xd1)][_0x175634(0xce)](),'limiter':this[_0x175634(0xd1)][_0x175634(0xc3)]()});}));}[_0x3f9884(0xda)](_0x1bb34f){const _0x327de4=_0x3f9884,_0x3d3c9f=this[_0x327de4(0xcd)][_0x327de4(0xcf)](_0x1bb34f);_0x3d3c9f&&requestAnimationFrame(()=>{const _0x9a4ddd=_0x327de4;_0x3d3c9f[_0x9a4ddd(0xbe)](),this[_0x9a4ddd(0xcd)][_0x9a4ddd(0xcb)](_0x1bb34f),this[_0x9a4ddd(0xd1)][_0x9a4ddd(0xe0)]();});}[_0x3f9884(0xbc)](){const _0x280c4b=_0x3f9884;for(const _0x1e66b3 of this[_0x280c4b(0xcd)][_0x280c4b(0xd0)]())if(_0x1e66b3[_0x280c4b(0xb6)])return!0x0;return!0x1;}[_0x3f9884(0xdd)](_0x2e19ba,_0x2ae047,_0x58f80f){const _0x491b6b=_0x3f9884,_0x1cb4c2=this[_0x491b6b(0xcd)][_0x491b6b(0xcf)](_0x2e19ba);if(!_0x1cb4c2||!_0x1cb4c2[_0x491b6b(0xb6)])return;const _0x207abc=this[_0x491b6b(0xd1)][_0x491b6b(0xce)]();if(!_0x207abc)return;_0x1cb4c2[_0x491b6b(0xe9)]({'target':_0x207abc,'limiter':this[_0x491b6b(0xd1)][_0x491b6b(0xc3)]()});const _0x327538=this[_0x491b6b(0xb4)](_0x1cb4c2);_0x327538&&_0x327538[_0x491b6b(0xdd)](_0x2ae047,_0x58f80f);}[_0x3f9884(0xdb)](){const _0x52a24e=_0x3f9884;for(const _0x4ba3c9 of this[_0x52a24e(0xcd)][_0x52a24e(0xd0)]())_0x4ba3c9[_0x52a24e(0xdb)]();this[_0x52a24e(0xcd)][_0x52a24e(0xc4)]();}[_0x3f9884(0xba)](){const _0x16bc20=_0x3f9884,_0x43c0a5=new _0x1047f5(this[_0x16bc20(0xd6)]);return _0x43c0a5[_0x16bc20(0xd9)]({'attributes':{'class':lc}}),this[_0x16bc20(0xea)][_0x16bc20(0xb9)](_0x43c0a5),_0x43c0a5;}[_0x3f9884(0xc1)]({balloonPanel:_0xa0353,source:_0x2a2598,withBackButton:_0x521d7d}){const _0x13ebf2=_0x3f9884;_0xa0353[_0x13ebf2(0xbb)][_0x13ebf2(0xc4)]();const _0x27918a=this[_0x13ebf2(0xd4)]({'balloonPanel':_0xa0353,'source':_0x2a2598,'withBackButton':_0x521d7d});_0xa0353[_0x13ebf2(0xbb)][_0x13ebf2(0xb9)](_0x27918a);const _0x40351b=this[_0x13ebf2(0xdc)](_0x2a2598);_0xa0353[_0x13ebf2(0xbb)][_0x13ebf2(0xb9)](_0x40351b);}[_0x3f9884(0xd4)]({balloonPanel:_0xd8f252,source:_0x512090,withBackButton:_0x1dc303}){const _0x543c29=_0x3f9884,_0x37fbb8=new _0x10815b(this[_0x543c29(0xd6)],{'label':_0x512090[_0x543c29(0xd2)],'class':_c});return _0x1dc303&&_0x37fbb8[_0x543c29(0xbd)][_0x543c29(0xb9)](this[_0x543c29(0xec)](_0xd8f252),0x0),_0x37fbb8;}[_0x3f9884(0xec)](_0x2c051d){const _0x399db2=_0x3f9884,_0x37f621=new _0x4debf7(this[_0x399db2(0xd6)]);return _0x37f621[_0x399db2(0xcc)]({'icon':_0x525938,'tooltip':_0x3811b4(this[_0x399db2(0xd6)],_0x399db2(0xc9)),'tooltipPosition':'n','class':Bc}),_0x37f621['on'](_0x399db2(0xeb),()=>{const _0x10b284=_0x399db2;_0x2c051d[_0x10b284(0xbe)](),this[_0x10b284(0xd1)][_0x10b284(0xe3)]();}),_0x37f621;}[_0x3f9884(0xdc)](_0x275be4){const _0xf36d07=_0x3f9884,_0x1701a1=new _0xf20241(this[_0xf36d07(0xd6)],{'source':_0x275be4,'searchInputVisibleFrom':this[_0xf36d07(0xd1)][_0xf36d07(0xe1)]});return _0x1701a1['on'](_0xf36d07(0xc5),(_0x411fe8,_0x11f47e)=>{const _0x4cb9b1=_0xf36d07;this[_0x4cb9b1(0xd1)][_0x4cb9b1(0xd3)](_0x11f47e);}),_0x1701a1['on'](_0xf36d07(0xb5),(_0x2d31c4,_0x86b267)=>{const _0x29634b=_0xf36d07;this[_0x29634b(0xd1)][_0x29634b(0xde)](_0x86b267[_0x29634b(0xb3)],_0x86b267[_0x29634b(0xe4)]),this[_0x29634b(0xda)](_0x275be4['id']);}),_0x1701a1;}[_0x3f9884(0xb4)](_0x22fd44){const _0x337dc0=_0x3f9884,_0x376327=_0x22fd44[_0x337dc0(0xbb)][_0x337dc0(0xcf)](0x1);return _0x376327 instanceof _0xf20241?_0x376327:null;}[_0x3f9884(0xe6)](_0x49cc4e){const _0x39c33c=_0x3f9884;_0x35934d({'emitter':_0x49cc4e,'contextElements':[_0x49cc4e[_0x39c33c(0xc0)]],'callback':()=>{const _0x409479=_0x39c33c;_0x49cc4e[_0x409479(0xbe)](),this[_0x409479(0xd1)][_0x409479(0xe0)]();},'activator':()=>_0x49cc4e[_0x39c33c(0xb6)]});}}
23
+ function _0x3035(_0x56aa6e,_0x4dbf29){const _0x3a65ff=_0x3a65();return _0x3035=function(_0x303572,_0xfccdab){_0x303572=_0x303572-0x135;let _0x42f83b=_0x3a65ff[_0x303572];return _0x42f83b;},_0x3035(_0x56aa6e,_0x4dbf29);}const _0xe48a92=_0x3035;(function(_0x5e7bdd,_0x3463ec){const _0x2f8a4c=_0x3035,_0x12bdc7=_0x5e7bdd();while(!![]){try{const _0x533dbd=-parseInt(_0x2f8a4c(0x16d))/0x1*(parseInt(_0x2f8a4c(0x14d))/0x2)+parseInt(_0x2f8a4c(0x153))/0x3+-parseInt(_0x2f8a4c(0x15a))/0x4*(parseInt(_0x2f8a4c(0x148))/0x5)+parseInt(_0x2f8a4c(0x168))/0x6*(parseInt(_0x2f8a4c(0x16f))/0x7)+parseInt(_0x2f8a4c(0x147))/0x8*(-parseInt(_0x2f8a4c(0x157))/0x9)+-parseInt(_0x2f8a4c(0x14f))/0xa+parseInt(_0x2f8a4c(0x143))/0xb*(parseInt(_0x2f8a4c(0x158))/0xc);if(_0x533dbd===_0x3463ec)break;else _0x12bdc7['push'](_0x12bdc7['shift']());}catch(_0x84820d){_0x12bdc7['push'](_0x12bdc7['shift']());}}}(_0x3a65,0x1df41));import{BalloonPanelView as _0x74d05e,ButtonView as _0x1f35b2,clickOutsideHandler as _0x504e9a,FormHeaderView as _0x3134ee}from'ckeditor5/src/ui.js';import{IconPreviousArrow as _0x10f688}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x158a16}from'../../../../aicore/utils/common-translations.js';import{AIChatContextResourcesView as _0x59630e}from'./aichatcontextresourcesview.js';function _0x3a65(){const _0x457ae6=['execute','_getResourcesViewFromBalloon','4cfcAxC','add','1946590hCDQWE','closeSourceResourceBalloon','onBackToContext','_sourceResourceBalloons','365466mptgNf','_createBalloonHeader','hide','onBalloonClosed','117VtcJPP','145212qezHcP','getLimiterElement','8VzoYPr','loadSourceResources','clear','onResourceSelected','getTargetElement','setResources','ck-button-icon\x20ck-button-back','destroy','delete','_createSourceResourceBalloonPanel','_setupSingleResourceBalloonClickOutsideHandler','_addSourceResourceContent','resource','pin','1182CfTXvn','label','once','onLoadSourceResources','populateSourceResourceBalloon','15112YcOKqw','extendTemplate','3010ljQpNo','show','isAnyResourceBalloonVisible','updateResourceState','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_source','element','children','source','addResourceToContext','get','_locale','set','_createBalloonResourcesView','_bodyCollection','change:isLoading','content','isVisible','_createBackButton','_config','319HeyeVV','showSourceResourcesBalloon','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','ck-ai-chat-context-controls__source-balloon-panel','112232oGvUdj','68780SysQxK','values','searchInputVisibleFrom'];_0x3a65=function(){return _0x457ae6;};return _0x3a65();}const Bc=_0xe48a92(0x146),_c=_0xe48a92(0x160),mc=_0xe48a92(0x173);export class AIChatResourcesBalloonView{[_0xe48a92(0x152)]=new Map();[_0xe48a92(0x13d)];[_0xe48a92(0x13a)];[_0xe48a92(0x142)];constructor(_0x293a5a,_0x5e9090,_0x475057){const _0x232b0c=_0xe48a92;this[_0x232b0c(0x13a)]=_0x293a5a,this[_0x232b0c(0x13d)]=_0x5e9090,this[_0x232b0c(0x142)]=_0x475057;}[_0xe48a92(0x144)]({source:_0x2022d2,withBackButton:_0x2969c5}){const _0x5e4306=_0xe48a92;let _0x3519f9=this[_0x5e4306(0x152)][_0x5e4306(0x139)](_0x2022d2['id']);_0x3519f9||(_0x3519f9=this[_0x5e4306(0x163)](),this[_0x5e4306(0x152)][_0x5e4306(0x13b)](_0x2022d2['id'],_0x3519f9),this[_0x5e4306(0x164)](_0x3519f9)),this[_0x5e4306(0x165)]({'balloonPanel':_0x3519f9,'source':_0x2022d2,'withBackButton':_0x2969c5}),_0x3519f9[_0x5e4306(0x170)]();const _0x564814=this[_0x5e4306(0x142)][_0x5e4306(0x15e)]();_0x564814&&_0x3519f9[_0x5e4306(0x167)]({'target':_0x564814,'limiter':this[_0x5e4306(0x142)][_0x5e4306(0x159)]()});}[_0xe48a92(0x16c)](_0x5001f,_0x3e4b24,_0x4f69d5){const _0x5643be=_0xe48a92,_0x529791=this[_0x5643be(0x152)][_0x5643be(0x139)](_0x5001f);if(!_0x529791)return;const _0x25a2a3=this[_0x5643be(0x14c)](_0x529791);_0x25a2a3&&(_0x25a2a3[_0x5643be(0x15f)](_0x3e4b24,_0x4f69d5),_0x25a2a3[_0x5643be(0x16a)](_0x5643be(0x13e),()=>{const _0x46cac2=_0x5643be;_0x529791[_0x46cac2(0x167)]({'target':this[_0x46cac2(0x142)][_0x46cac2(0x15e)](),'limiter':this[_0x46cac2(0x142)][_0x46cac2(0x159)]()});}));}[_0xe48a92(0x150)](_0x50e32a){const _0x4ac284=_0xe48a92,_0x38e9b1=this[_0x4ac284(0x152)][_0x4ac284(0x139)](_0x50e32a);_0x38e9b1&&requestAnimationFrame(()=>{const _0x39c4ff=_0x4ac284;_0x38e9b1[_0x39c4ff(0x155)](),this[_0x39c4ff(0x152)][_0x39c4ff(0x162)](_0x50e32a),this[_0x39c4ff(0x142)][_0x39c4ff(0x156)]();});}[_0xe48a92(0x171)](){const _0xfa4588=_0xe48a92;for(const _0x44c3ad of this[_0xfa4588(0x152)][_0xfa4588(0x149)]())if(_0x44c3ad[_0xfa4588(0x140)])return!0x0;return!0x1;}[_0xe48a92(0x172)](_0x324e4e,_0x483d4c,_0x4019cf){const _0x5130b3=_0xe48a92,_0x3dcf38=this[_0x5130b3(0x152)][_0x5130b3(0x139)](_0x324e4e);if(!_0x3dcf38||!_0x3dcf38[_0x5130b3(0x140)])return;const _0x55d1c8=this[_0x5130b3(0x142)][_0x5130b3(0x15e)]();if(!_0x55d1c8)return;_0x3dcf38[_0x5130b3(0x167)]({'target':_0x55d1c8,'limiter':this[_0x5130b3(0x142)][_0x5130b3(0x159)]()});const _0x2b065d=this[_0x5130b3(0x14c)](_0x3dcf38);_0x2b065d&&_0x2b065d[_0x5130b3(0x172)](_0x483d4c,_0x4019cf);}[_0xe48a92(0x161)](){const _0x4543cf=_0xe48a92;for(const _0x46ebb4 of this[_0x4543cf(0x152)][_0x4543cf(0x149)]())_0x46ebb4[_0x4543cf(0x161)]();this[_0x4543cf(0x152)][_0x4543cf(0x15c)]();}[_0xe48a92(0x163)](){const _0x50a787=_0xe48a92,_0x43490a=new _0x74d05e(this[_0x50a787(0x13a)]);return _0x43490a[_0x50a787(0x16e)]({'attributes':{'class':Bc}}),this[_0x50a787(0x13d)][_0x50a787(0x14e)](_0x43490a),_0x43490a;}[_0xe48a92(0x165)]({balloonPanel:_0x3e91d8,source:_0x11db31,withBackButton:_0x50f2bd}){const _0x137cb1=_0xe48a92;_0x3e91d8[_0x137cb1(0x13f)][_0x137cb1(0x15c)]();const _0x38da12=this[_0x137cb1(0x154)]({'balloonPanel':_0x3e91d8,'source':_0x11db31,'withBackButton':_0x50f2bd});_0x3e91d8[_0x137cb1(0x13f)][_0x137cb1(0x14e)](_0x38da12);const _0x1c5296=this[_0x137cb1(0x13c)](_0x11db31);_0x3e91d8[_0x137cb1(0x13f)][_0x137cb1(0x14e)](_0x1c5296);}[_0xe48a92(0x154)]({balloonPanel:_0x20f55c,source:_0x51cf6a,withBackButton:_0x2388a5}){const _0x482d7e=_0xe48a92,_0x490c2c=new _0x3134ee(this[_0x482d7e(0x13a)],{'label':_0x51cf6a[_0x482d7e(0x169)],'class':mc});return _0x2388a5&&_0x490c2c[_0x482d7e(0x136)][_0x482d7e(0x14e)](this[_0x482d7e(0x141)](_0x20f55c),0x0),_0x490c2c;}[_0xe48a92(0x141)](_0x1a6826){const _0x1baa1b=_0xe48a92,_0x41c567=new _0x1f35b2(this[_0x1baa1b(0x13a)]);return _0x41c567[_0x1baa1b(0x13b)]({'icon':_0x10f688,'tooltip':_0x158a16(this[_0x1baa1b(0x13a)],_0x1baa1b(0x145)),'tooltipPosition':'n','class':_c}),_0x41c567['on'](_0x1baa1b(0x14b),()=>{const _0x1d750a=_0x1baa1b;_0x1a6826[_0x1d750a(0x155)](),this[_0x1d750a(0x142)][_0x1d750a(0x151)]();}),_0x41c567;}[_0xe48a92(0x13c)](_0x41dc89){const _0x5a3954=_0xe48a92,_0x222a62=new _0x59630e(this[_0x5a3954(0x13a)],{'source':_0x41dc89,'searchInputVisibleFrom':this[_0x5a3954(0x142)][_0x5a3954(0x14a)]});return _0x222a62['on'](_0x5a3954(0x15b),(_0x1fa482,_0x1f72f1)=>{const _0x14ca01=_0x5a3954;this[_0x14ca01(0x142)][_0x14ca01(0x16b)](_0x1f72f1);}),_0x222a62['on'](_0x5a3954(0x138),(_0x41db98,_0x14bff2)=>{const _0x26bd07=_0x5a3954;this[_0x26bd07(0x142)][_0x26bd07(0x15d)](_0x14bff2[_0x26bd07(0x137)],_0x14bff2[_0x26bd07(0x166)]),this[_0x26bd07(0x150)](_0x41dc89['id']);}),_0x222a62;}[_0xe48a92(0x14c)](_0x1f883a){const _0x2da84c=_0xe48a92,_0x2681c8=_0x1f883a[_0x2da84c(0x13f)][_0x2da84c(0x139)](0x1);return _0x2681c8 instanceof _0x59630e?_0x2681c8:null;}[_0xe48a92(0x164)](_0x150015){const _0x9761c0=_0xe48a92;_0x504e9a({'emitter':_0x150015,'contextElements':[_0x150015[_0x9761c0(0x135)]],'callback':()=>{const _0x567879=_0x9761c0;_0x150015[_0x567879(0x155)](),this[_0x567879(0x142)][_0x567879(0x156)]();},'activator':()=>_0x150015[_0x9761c0(0x140)]});}}