@ckeditor/ckeditor5-ai 47.7.5 → 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
- function _0x4ae1(_0x11ba91,_0xcc6654){const _0x1a5a78=_0x1a5a();return _0x4ae1=function(_0x4ae1f6,_0x364265){_0x4ae1f6=_0x4ae1f6-0xbf;let _0x47e293=_0x1a5a78[_0x4ae1f6];return _0x47e293;},_0x4ae1(_0x11ba91,_0xcc6654);}const _0x5ea9c4=_0x4ae1;(function(_0x3f9427,_0x3dbcb1){const _0x7cbd16=_0x4ae1,_0x1ae3c1=_0x3f9427();while(!![]){try{const _0x2a57df=-parseInt(_0x7cbd16(0xee))/0x1+parseInt(_0x7cbd16(0xd5))/0x2*(parseInt(_0x7cbd16(0xfc))/0x3)+parseInt(_0x7cbd16(0xdb))/0x4+-parseInt(_0x7cbd16(0xd0))/0x5+parseInt(_0x7cbd16(0x105))/0x6*(-parseInt(_0x7cbd16(0xff))/0x7)+parseInt(_0x7cbd16(0x101))/0x8+parseInt(_0x7cbd16(0xdf))/0x9*(parseInt(_0x7cbd16(0xed))/0xa);if(_0x2a57df===_0x3dbcb1)break;else _0x1ae3c1['push'](_0x1ae3c1['shift']());}catch(_0x4163d4){_0x1ae3c1['push'](_0x1ae3c1['shift']());}}}(_0x1a5a,0x2f387));import{FocusTracker as _0x539a69,KeystrokeHandler as _0x521770}from'ckeditor5/src/utils.js';function _0x1a5a(){const _0x21282b=['setError','tab','ck-labeled-field-view_empty','_createBackButton','withBackButton','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','_handleSubmit','listenTo','locale','4020450UlgyOn','258727PpBHlO','element','form','errorText','fire','AI_CHAT_CONTEXT_URL_PLACEHOLDER','\x20ck-hidden','stop','_focusables','ck-ai-chat-context-controls__url-form','ck-button-icon\x20ck-button-back','AI_CHAT_CONTEXT_URL_INVALID_ERROR','_setupTemplate','children','3qhUUdz','confirmButton','value','2849XpQFkY','trim','726832jXEtiV','div','destroy','createCollection','5106Zsmmih','_createUrlInputField','ck-ai-chat-context-controls__url-input-section','execute','_updateConfirmButtonState','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','getValue','shift+tab','focusTracker','change:withBackButton','input','setTemplate','clearError','_isValidUrl','ck-button-icon','render','refreshBalloon','submitUrl','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','_createConfirmButton','forEach','submit','focus','42760wVEkeF','cancel','AI_CHAT_CONTEXT_URL_ADD_URL','esc','clear','121168FchVed','urlInputField','length','keystrokes','set','_setupEventHandlers','1014272giXdcC','AI_CHAT_CONTEXT_URL_LABEL','add','_setupKeystrokes','9KsSXUv','backButton','isEnabled','fieldView','focusCycler'];_0x1a5a=function(){return _0x21282b;};return _0x1a5a();}import{ButtonView as _0x2a7e1b,FocusCycler as _0x4b2301,LabeledFieldView as _0x365ed2,View as _0x417c02,FormHeaderView as _0x377da3,createLabeledInputText as _0x3a67b7,submitHandler as _0x892ffe}from'ckeditor5/src/ui.js';import{IconCheck as _0x409dfe,IconPreviousArrow as _0x10b4f1}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x11e33f}from'../../../aicore/utils/common-translations.js';const oh=_0x5ea9c4(0xf7),ch=_0x5ea9c4(0x107);export class AIChatContextPanelUrlInputView extends _0x417c02{[_0x5ea9c4(0xc1)];[_0x5ea9c4(0xd8)];[_0x5ea9c4(0xf6)];[_0x5ea9c4(0xe3)];[_0x5ea9c4(0xd6)];[_0x5ea9c4(0xe0)];[_0x5ea9c4(0xfd)];constructor(_0x24e153){const _0x148cbe=_0x5ea9c4;super(_0x24e153),this[_0x148cbe(0xc1)]=new _0x539a69(),this[_0x148cbe(0xd8)]=new _0x521770(),this[_0x148cbe(0xe0)]=this[_0x148cbe(0xe7)](),this[_0x148cbe(0xd6)]=this[_0x148cbe(0x106)](),this[_0x148cbe(0xfd)]=this[_0x148cbe(0xcc)](),this[_0x148cbe(0xf6)]=this[_0x148cbe(0x104)]([this[_0x148cbe(0xe0)],this[_0x148cbe(0xd6)],this[_0x148cbe(0xfd)]]),this[_0x148cbe(0xe3)]=new _0x4b2301({'focusables':this[_0x148cbe(0xf6)],'focusTracker':this[_0x148cbe(0xc1)],'keystrokeHandler':this[_0x148cbe(0xd8)],'actions':{'focusPrevious':_0x148cbe(0xc0),'focusNext':_0x148cbe(0xe5)}}),this[_0x148cbe(0xd9)](_0x148cbe(0xe8),!0x0),this[_0x148cbe(0xfa)](),this[_0x148cbe(0xda)](),this[_0x148cbe(0xde)]();}[_0x5ea9c4(0xc8)](){const _0x49ab5a=_0x5ea9c4;super[_0x49ab5a(0xc8)](),this[_0x49ab5a(0xf6)][_0x49ab5a(0xcd)](_0xde590=>{const _0x55393a=_0x49ab5a;this[_0x55393a(0xc1)][_0x55393a(0xdd)](_0xde590[_0x55393a(0xef)]),this[_0x55393a(0xd8)][_0x55393a(0xeb)](_0xde590[_0x55393a(0xef)]);}),_0x892ffe({'view':this}),this[_0x49ab5a(0xcf)]();}[_0x5ea9c4(0x103)](){const _0x3b8201=_0x5ea9c4;super[_0x3b8201(0x103)](),this[_0x3b8201(0xc1)][_0x3b8201(0x103)](),this[_0x3b8201(0xd8)][_0x3b8201(0x103)]();}[_0x5ea9c4(0xcf)](){const _0x2e1252=_0x5ea9c4;this[_0x2e1252(0xd6)][_0x2e1252(0xcf)]();}[_0x5ea9c4(0xbf)](){const _0x4a3313=_0x5ea9c4;return this[_0x4a3313(0xd6)][_0x4a3313(0xe2)][_0x4a3313(0xef)]?.[_0x4a3313(0xfe)]?.[_0x4a3313(0x100)]()||'';}[_0x5ea9c4(0xd4)](){const _0x1aab0a=_0x5ea9c4;this[_0x1aab0a(0xd6)][_0x1aab0a(0xe2)][_0x1aab0a(0xef)][_0x1aab0a(0xfe)]='',this[_0x1aab0a(0xd6)][_0x1aab0a(0xf1)]=null,this[_0x1aab0a(0xfd)][_0x1aab0a(0xe1)]=!0x1;}[_0x5ea9c4(0xe4)](_0x1e0f24){const _0x502cd5=_0x5ea9c4;this[_0x502cd5(0xd6)][_0x502cd5(0xf1)]=_0x1e0f24,this[_0x502cd5(0x109)](),this[_0x502cd5(0xf2)](_0x502cd5(0xc9));}[_0x5ea9c4(0xc5)](){const _0x242860=_0x5ea9c4;this[_0x242860(0xd6)][_0x242860(0xf1)]=null,this[_0x242860(0x109)]();}[_0x5ea9c4(0xe7)](){const _0x3aef6f=_0x5ea9c4,_0x48be93=new _0x2a7e1b(this[_0x3aef6f(0xec)]);return _0x48be93[_0x3aef6f(0xd9)]({'icon':_0x10b4f1,'tooltip':_0x11e33f(this[_0x3aef6f(0xec)],_0x3aef6f(0xcb)),'tooltipPosition':'n','class':[_0x3aef6f(0xf8)]}),this['on'](_0x3aef6f(0xc2),(_0x1f9f40,_0x2f57e4,_0x4b9807)=>{const _0x6faf4e=_0x3aef6f;_0x48be93[_0x6faf4e(0xd9)]({'class':[_0x6faf4e(0xf8)+(_0x4b9807?'':_0x6faf4e(0xf4))]});}),_0x48be93;}[_0x5ea9c4(0x106)](){const _0x20d5cc=_0x5ea9c4,_0x1edab8=new _0x365ed2(this[_0x20d5cc(0xec)],_0x3a67b7);return _0x1edab8[_0x20d5cc(0xd9)]({'label':_0x11e33f(this[_0x20d5cc(0xec)],_0x20d5cc(0xdc)),'class':_0x20d5cc(0xe6)}),_0x1edab8[_0x20d5cc(0xe2)][_0x20d5cc(0xd9)]({'placeholder':_0x11e33f(this[_0x20d5cc(0xec)],_0x20d5cc(0xf3))}),_0x1edab8;}[_0x5ea9c4(0xcc)](){const _0x387e08=_0x5ea9c4,_0x2c8553=new _0x2a7e1b(this[_0x387e08(0xec)]);return _0x2c8553[_0x387e08(0xd9)]({'icon':_0x409dfe,'tooltip':_0x11e33f(this[_0x387e08(0xec)],_0x387e08(0xd2)),'tooltipPosition':'n','class':_0x387e08(0xc7),'type':_0x387e08(0xce),'isEnabled':!0x1}),_0x2c8553;}[_0x5ea9c4(0xfa)](){const _0x1d9cd3=_0x5ea9c4,_0x1c00a9=new _0x377da3(this[_0x1d9cd3(0xec)],{'label':_0x11e33f(this[_0x1d9cd3(0xec)],_0x1d9cd3(0xd2)),'class':_0x1d9cd3(0xe9)});_0x1c00a9[_0x1d9cd3(0xfb)][_0x1d9cd3(0xdd)](this[_0x1d9cd3(0xe0)],0x0),this[_0x1d9cd3(0xc4)]({'tag':_0x1d9cd3(0xf0),'attributes':{'class':oh,'tabindex':'-1'},'children':[_0x1c00a9,{'tag':_0x1d9cd3(0x102),'attributes':{'class':ch},'children':[this[_0x1d9cd3(0xd6)],this[_0x1d9cd3(0xfd)]]}]});}[_0x5ea9c4(0xda)](){const _0x858ab8=_0x5ea9c4;this[_0x858ab8(0xe0)]['on'](_0x858ab8(0x108),()=>{const _0x3ce13e=_0x858ab8;this[_0x3ce13e(0xd4)](),this[_0x3ce13e(0xf2)](_0x3ce13e(0xd1));}),this[_0x858ab8(0xd6)][_0x858ab8(0xe2)]['on'](_0x858ab8(0xc3),()=>{const _0x59b1ba=_0x858ab8;this[_0x59b1ba(0xc5)](),this[_0x59b1ba(0x109)](),this[_0x59b1ba(0xf2)](_0x59b1ba(0xc9));}),this['on'](_0x858ab8(0xce),_0x4a31f7=>{const _0x1e6fa2=_0x858ab8;_0x4a31f7[_0x1e6fa2(0xf5)](),this[_0x1e6fa2(0xea)]();});}[_0x5ea9c4(0xde)](){const _0x2afa68=_0x5ea9c4;this[_0x2afa68(0xd8)][_0x2afa68(0xd9)](_0x2afa68(0xd3),(_0x354462,_0x337547)=>{const _0x45ff25=_0x2afa68;this[_0x45ff25(0xd4)](),this[_0x45ff25(0xf2)](_0x45ff25(0xd1)),_0x337547();});}[_0x5ea9c4(0xea)](){const _0x164d4b=_0x5ea9c4,_0x2e22fa=this[_0x164d4b(0xbf)]()[_0x164d4b(0x100)]();_0x2e22fa?this[_0x164d4b(0xc6)](_0x2e22fa)?(this[_0x164d4b(0xc5)](),this[_0x164d4b(0xf2)](_0x164d4b(0xca),_0x2e22fa)):this[_0x164d4b(0xe4)](_0x11e33f(this[_0x164d4b(0xec)],_0x164d4b(0xf9))):this[_0x164d4b(0xe4)](_0x11e33f(this[_0x164d4b(0xec)],_0x164d4b(0x10a)));}[_0x5ea9c4(0x109)](){const _0x1c3bd9=_0x5ea9c4,_0x320d70=this[_0x1c3bd9(0xbf)]()[_0x1c3bd9(0x100)](),_0x23853a=!!this[_0x1c3bd9(0xd6)][_0x1c3bd9(0xf1)];this[_0x1c3bd9(0xfd)][_0x1c3bd9(0xe1)]=_0x320d70[_0x1c3bd9(0xd7)]>0x0&&!_0x23853a;}[_0x5ea9c4(0xc6)](_0x5b94ee){try{return!!new URL(_0x5b94ee);}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 _0x2fbafa=_0x2201;(function(_0x2c22e9,_0x3deac1){const _0xffef8c=_0x2201,_0x488e92=_0x2c22e9();while(!![]){try{const _0x19fe6a=-parseInt(_0xffef8c(0x239))/0x1*(parseInt(_0xffef8c(0x22d))/0x2)+-parseInt(_0xffef8c(0x1e9))/0x3+-parseInt(_0xffef8c(0x211))/0x4+parseInt(_0xffef8c(0x23b))/0x5*(-parseInt(_0xffef8c(0x253))/0x6)+-parseInt(_0xffef8c(0x22f))/0x7*(-parseInt(_0xffef8c(0x1e0))/0x8)+-parseInt(_0xffef8c(0x233))/0x9+parseInt(_0xffef8c(0x1f4))/0xa;if(_0x19fe6a===_0x3deac1)break;else _0x488e92['push'](_0x488e92['shift']());}catch(_0x5ed5ec){_0x488e92['push'](_0x488e92['shift']());}}}(_0x4344,0xb3bdb));import{BalloonPanelView as _0x15cacd,ButtonView as _0x22c695,clickOutsideHandler as _0x210ce1,FileDialogButtonView as _0x3236c2,IconView as _0x5bc95f,View as _0x41c032}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x3ef503,IconDocument as _0x2b2a1a,IconDocumentOutline as _0x303f66,IconDropdownArrow as _0x1c092f,IconLink as _0x9d930b,IconPaperClip as _0x21bebb}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x2b8565}from'./aichatcontextitembuttonview.js';function _0x2201(_0x4c7642,_0x189e3d){const _0x43446f=_0x4344();return _0x2201=function(_0x2201c9,_0x5d4db1){_0x2201c9=_0x2201c9-0x1d4;let _0xcf378f=_0x43446f[_0x2201c9];return _0xcf378f;},_0x2201(_0x4c7642,_0x189e3d);}function _0x4344(){const _0x5e49c3=['_createBaseBalloonPanel','content','showAddContextBalloonPanel','searchInputVisibleFrom','_createResourcesBalloonView','customItems','AI_CHAT_CONTEXT_FILE_LABEL','removeContextItem','menuitem','southArrowNorthWest','bind','updateResourceState','files','conversation','_handleUrlSubmit','_addContextToCollection','_urlInputView','setTemplate','_createBalloonButton','_conversationContextsChips','_hasExactlyOneSource','24sedMLL','addResourceToContext','_setupAllBalloonClickOutsideHandlers','tooltip','ck-ai-chat-context-controls__show-more-balloon-panel','isHidden','addContextButtonView','_bindEventHandlers','urls','clearCurrentContextItems','arrowView','overflowChips','_createContextButton','__arrow','pin','remove','cancel','isAnyResourceBalloonVisible','closeSourceResourceBalloon','type','length','closest','isEnabled','show','_setupAddContextBalloonClickOutsideHandler','ck-reset_all-excluded','element','isVisible','setAddContextOptions','focus','_setAddContextButtonEnabled','removeContextItemChip','reorganizeChips','addUrlToContext','div','submitUrl','2144lYWUnc','done','hideUrlBalloonPanel','createCollection','_handleAddContextButtonClick','_overflowManager','ck-ai-chat-context-controls__add-context-button','body','setContainerElement','1490139RpvAPd','ck-ai-chat-context-controls','addContextItem','ck-ai-chat-context-chips-wrapper-balloon','_addContextBalloonPanelView','locale','extendTemplate','source','showUrlBalloonPanel','_toggleAddContextBalloon','enabled','38311090gYezDR','label','southArrowNorthEast','ck-ai-chat-context-controls__url-balloon-panel','populateSourceResourceBalloon','_setupUrlBalloonClickOutsideHandler','defaultPositions','loadSourceResources','ck-ai-chat-context-controls__balloon-button','_createAddContextBalloonPanelView','_setupTemplate','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','_showSourceResourcesBalloon','_currentContextsChips','fire','ck-ai-chat','icon','AI_CHAT_CONTEXT_URL_LABEL','add','current','document','addFileToContext','get','ck-ai-chat-controls_context_show-more-button','northArrowSouthEast','southArrowNorth','find','_addContextBalloonConfig','AI_CHAT_CONTEXT_ADD_CONTEXT','3733440aaKtNP','hide','_removeContextFromCollection','isOn','_resourcesBalloonView','_createArrowView','ck-ai-chat-controls-button','_getLimiterElement','ck-ai-chat-context-controls__balloon-button-source','_urlBalloonPanelView','hideAddContextBalloonPanel','isReadOnly','bodyCollection','setContextItemLoading','northArrowSouth','buttonView','balloonView','northArrowSouthWest','addDocumentToContext','showSourceResourcesBalloon','render','withBackButton','clearConversationContextItems','sources','execute','_createUrlBalloonPanelView','_createAddContextButtonView','ck-ai-chat-context-controls__pending-contexts','8aIuowC','clear','24808LBBmhe','setConversationContext','refreshBalloon','children','3499137bTEFzM','_setBalloonPanelContent','executeCustomItemCallback','ck-ai-chat-context-controls__add-context-balloon-panel','destroy','set','321775KmETxT','_addUrlContent','1173395pLCDrZ','customItem','isLoading'];_0x4344=function(){return _0x5e49c3;};return _0x4344();}import{AIChatContextPanelUrlInputView as _0x469aa0}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x166a1c}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x23ec44}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x12fbf7}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x2fbafa(0x223),_0x2fbafa(0x209),_0x2fbafa(0x1dd),_0x2fbafa(0x254),_0x2fbafa(0x245),_0x2fbafa(0x1fb),_0x2fbafa(0x235)];const Io=_0x2fbafa(0x1ea),Po=_0x2fbafa(0x22c),Ro=_0x2fbafa(0x236),Oo=_0x2fbafa(0x1e6),Uo=_0x2fbafa(0x1f7),Lo=_0x2fbafa(0x1fc),No=_0x2fbafa(0x219),Mo=_0x2fbafa(0x217),Ho=_0x2fbafa(0x1ec),jo=_0x2fbafa(0x20b),Fo=_0x2fbafa(0x257),Xo=_0x2fbafa(0x203),yo=[_0x15cacd[_0x2fbafa(0x1fa)][_0x2fbafa(0x222)],_0x15cacd[_0x2fbafa(0x1fa)][_0x2fbafa(0x21f)],_0x15cacd[_0x2fbafa(0x1fa)][_0x2fbafa(0x20c)],_0x15cacd[_0x2fbafa(0x1fa)][_0x2fbafa(0x247)],_0x15cacd[_0x2fbafa(0x1fa)][_0x2fbafa(0x20d)],_0x15cacd[_0x2fbafa(0x1fa)][_0x2fbafa(0x1f6)]];export class AIChatContextPanelView extends _0x41c032{[_0x2fbafa(0x259)];[_0x2fbafa(0x201)]=this[_0x2fbafa(0x1e3)]();[_0x2fbafa(0x251)]=this[_0x2fbafa(0x1e3)]();[_0x2fbafa(0x1e5)];[_0x2fbafa(0x1ed)];[_0x2fbafa(0x21a)];[_0x2fbafa(0x24e)];[_0x2fbafa(0x215)];[_0x2fbafa(0x20f)];[_0x2fbafa(0x252)]=!0x1;[_0x2fbafa(0x21d)];constructor(_0x4f1059,_0x55ccb7){const _0x2a9f32=_0x2fbafa;super(_0x4f1059),this[_0x2a9f32(0x21d)]=_0x55ccb7[_0x2a9f32(0x21d)],this[_0x2a9f32(0x201)]=this[_0x2a9f32(0x1e3)](),this[_0x2a9f32(0x251)]=this[_0x2a9f32(0x1e3)](),this[_0x2a9f32(0x259)]=this[_0x2a9f32(0x22b)](_0x4f1059),this[_0x2a9f32(0x1ed)]=this[_0x2a9f32(0x1fd)](_0x4f1059),this[_0x2a9f32(0x21a)]=this[_0x2a9f32(0x22a)](_0x4f1059),this[_0x2a9f32(0x215)]=this[_0x2a9f32(0x242)](_0x4f1059,_0x55ccb7);const _0x27e938={'cssClasses':{'showMoreButton':jo,'showMoreBalloon':Fo,'overflowContainer':Ho,'controlsButton':Mo}};this[_0x2a9f32(0x1e5)]=new _0x166a1c(_0x4f1059,this[_0x2a9f32(0x201)],_0x27e938,this[_0x2a9f32(0x21d)],this),this[_0x2a9f32(0x20f)]={'buttonView':this[_0x2a9f32(0x259)],'balloonView':this[_0x2a9f32(0x1ed)],'hideMethod':this[_0x2a9f32(0x21b)][_0x2a9f32(0x248)](this),'showMethod':this[_0x2a9f32(0x240)][_0x2a9f32(0x248)](this)},this[_0x2a9f32(0x1fe)](),this[_0x2a9f32(0x25a)]();}[_0x2fbafa(0x225)](){const _0x169592=_0x2fbafa;super[_0x169592(0x225)](),this[_0x169592(0x255)](),this[_0x169592(0x1e5)][_0x169592(0x1e8)](this[_0x169592(0x1d6)]),this[_0x169592(0x1e5)][_0x169592(0x1dc)]();}[_0x2fbafa(0x237)](){const _0x43de02=_0x2fbafa;super[_0x43de02(0x237)](),this[_0x43de02(0x1e5)][_0x43de02(0x237)](),this[_0x43de02(0x215)][_0x43de02(0x237)]();}[_0x2fbafa(0x1eb)](_0x1f18c2,_0x479cfe){const _0x1cbe6a=_0x2fbafa,_0xa4b980=this[_0x1cbe6a(0x25f)](_0x1f18c2,_0x1cbe6a(0x207),!0x0,_0x479cfe);this[_0x1cbe6a(0x24d)](_0xa4b980,this[_0x1cbe6a(0x201)]),this[_0x1cbe6a(0x1e5)][_0x1cbe6a(0x1dc)]();}[_0x2fbafa(0x245)](_0x29981e){const _0x1c04c0=_0x2fbafa;this[_0x1c04c0(0x213)](_0x29981e,this[_0x1c04c0(0x201)]),this[_0x1c04c0(0x213)](_0x29981e,this[_0x1c04c0(0x1e5)][_0x1c04c0(0x25e)]),this[_0x1c04c0(0x1e5)][_0x1c04c0(0x1dc)]();}[_0x2fbafa(0x21e)](_0x54208d,_0xbce7ea){const _0xe6c5e3=_0x2fbafa;let _0x52864f=this[_0xe6c5e3(0x201)][_0xe6c5e3(0x20e)](_0x66b80=>_0x66b80['id']===_0x54208d);_0x52864f||(_0x52864f=this[_0xe6c5e3(0x1e5)][_0xe6c5e3(0x25e)][_0xe6c5e3(0x20e)](_0x4d958c=>_0x4d958c['id']===_0x54208d)),_0x52864f&&(_0x52864f[_0xe6c5e3(0x23d)]=_0xbce7ea);}[_0x2fbafa(0x230)](_0xcd9d62){const _0xcfbd4b=_0x2fbafa;this[_0xcfbd4b(0x251)][_0xcfbd4b(0x22e)]();for(const _0xfff8c of _0xcd9d62){const _0x1e41e8=this[_0xcfbd4b(0x25f)](_0xfff8c,_0xcfbd4b(0x24b),!0x1,!0x1);this[_0xcfbd4b(0x24d)](_0x1e41e8,this[_0xcfbd4b(0x251)]);}}[_0x2fbafa(0x25c)](){const _0x5b0206=_0x2fbafa;this[_0x5b0206(0x201)][_0x5b0206(0x22e)](),this[_0x5b0206(0x1e5)][_0x5b0206(0x22e)]();}[_0x2fbafa(0x227)](){const _0x2cff77=_0x2fbafa;this[_0x2cff77(0x251)][_0x2cff77(0x22e)]();}[_0x2fbafa(0x249)](_0xf340e5,_0x36acf5,_0x308d2c){const _0x4a49af=_0x2fbafa;this[_0x4a49af(0x215)][_0x4a49af(0x249)](_0xf340e5,_0x36acf5,_0x308d2c);}[_0x2fbafa(0x21b)](){const _0x4a82b2=_0x2fbafa;this[_0x4a82b2(0x1f2)](!0x1);}[_0x2fbafa(0x240)](){const _0x514161=_0x2fbafa;this[_0x514161(0x1f2)](!0x0);}[_0x2fbafa(0x1e2)](){const _0x40860d=_0x2fbafa;this[_0x40860d(0x21a)][_0x40860d(0x212)](),this[_0x40860d(0x259)][_0x40860d(0x214)]=!0x1,this[_0x40860d(0x24e)]&&this[_0x40860d(0x24e)][_0x40860d(0x22e)]();}[_0x2fbafa(0x1f1)](){const _0x55cab8=_0x2fbafa;this[_0x55cab8(0x21a)][_0x55cab8(0x26a)](),this[_0x55cab8(0x259)][_0x55cab8(0x214)]=!0x0;}[_0x2fbafa(0x200)]({source:_0x13f4f5,withBackButton:_0x4833fa}){const _0x2a05af=_0x2fbafa;this[_0x2a05af(0x215)][_0x2a05af(0x224)]({'source':_0x13f4f5,'withBackButton':_0x4833fa}),this[_0x2a05af(0x259)][_0x2a05af(0x214)]=!0x0;}[_0x2fbafa(0x1f8)](_0x6b0b85,_0x3917cd,_0x2d98c9,_0x2d0e41){const _0x243861=_0x2fbafa;this[_0x243861(0x215)][_0x243861(0x1f8)](_0x6b0b85,_0x2d98c9,_0x2d0e41);}[_0x2fbafa(0x265)](_0x132f77){const _0x119569=_0x2fbafa;this[_0x119569(0x215)][_0x119569(0x265)](_0x132f77),this[_0x119569(0x259)][_0x119569(0x214)]=!0x1;}[_0x2fbafa(0x1d8)](_0x32a882){const _0x535ec6=_0x2fbafa;this[_0x535ec6(0x234)](this[_0x535ec6(0x1ed)],this[_0x535ec6(0x1ee)],_0x32a882),this[_0x535ec6(0x1da)](_0x32a882);}[_0x2fbafa(0x1da)](_0x57aec8){const _0x4f8ba5=_0x2fbafa,_0x926c3f=!_0x57aec8[_0x4f8ba5(0x208)][_0x4f8ba5(0x258)]&&_0x57aec8[_0x4f8ba5(0x208)][_0x4f8ba5(0x1f3)],_0x1c4672=_0x57aec8[_0x4f8ba5(0x25b)][_0x4f8ba5(0x1f3)],_0xba13f3=_0x57aec8[_0x4f8ba5(0x24a)][_0x4f8ba5(0x1f3)],_0x26e1a0=_0x57aec8[_0x4f8ba5(0x228)][_0x4f8ba5(0x267)]>0x0,_0x1f0fbe=_0x57aec8[_0x4f8ba5(0x243)]&&_0x57aec8[_0x4f8ba5(0x243)][_0x4f8ba5(0x267)]>0x0;this[_0x4f8ba5(0x259)][_0x4f8ba5(0x269)]=_0x926c3f||_0x1c4672||_0xba13f3||_0x26e1a0||_0x1f0fbe;}[_0x2fbafa(0x1fe)](){const _0x1670a6=_0x2fbafa;this[_0x1670a6(0x24f)]({'tag':_0x1670a6(0x1de),'attributes':{'class':[Io,_0x1670a6(0x1d5)]},'children':[{'tag':_0x1670a6(0x1de),'attributes':{'class':Po},'children':this[_0x1670a6(0x201)]}]});}[_0x2fbafa(0x25a)](){const _0x592e35=_0x2fbafa;this[_0x592e35(0x259)]['on'](_0x592e35(0x229),()=>{const _0x5907e2=_0x592e35;this[_0x5907e2(0x1e4)]();});}[_0x2fbafa(0x22b)](_0x2b72f8){const _0x3aac5c=_0x2fbafa,_0x3c115e=new _0x22c695(_0x2b72f8);return _0x3c115e[_0x3aac5c(0x238)]({'label':_0x23ec44(_0x2b72f8,_0x3aac5c(0x210)),'class':Mo+'\x20'+Oo,'icon':_0x21bebb,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x3c115e;}[_0x2fbafa(0x1fd)](_0x53a460){const _0x315581=_0x2fbafa;return this[_0x315581(0x23e)](_0x53a460,Ro);}[_0x2fbafa(0x22a)](_0x1872c9){const _0x373b59=_0x2fbafa,_0x36bd90=this[_0x373b59(0x23e)](_0x1872c9,Uo);return this[_0x373b59(0x23a)](_0x36bd90,_0x1872c9),_0x36bd90;}[_0x2fbafa(0x242)](_0x25e63f,_0x501000){const _0x70d68a=_0x2fbafa,_0x1e0a45={'searchInputVisibleFrom':_0x501000[_0x70d68a(0x241)],'onBackToContext':()=>{const _0x58fef6=_0x70d68a;this[_0x58fef6(0x240)](),this[_0x58fef6(0x1ed)][_0x58fef6(0x261)]({'target':this[_0x58fef6(0x259)][_0x58fef6(0x1d6)],'limiter':this[_0x58fef6(0x218)](),'positions':yo});},'onResourceSelected':(_0x14f3ce,_0x4d68a9)=>{const _0x417c84=_0x70d68a;this[_0x417c84(0x202)](_0x417c84(0x254),{'source':_0x14f3ce,'resource':_0x4d68a9});},'onLoadSourceResources':_0x280409=>{const _0x24a8d4=_0x70d68a;this[_0x24a8d4(0x202)](_0x24a8d4(0x1fb),_0x280409);},'onBalloonClosed':()=>{const _0x13d588=_0x70d68a;this[_0x13d588(0x259)][_0x13d588(0x214)]=!0x1;},'getLimiterElement':()=>this[_0x70d68a(0x218)](),'getTargetElement':()=>this[_0x70d68a(0x259)][_0x70d68a(0x1d6)]};return new _0x12fbf7(_0x25e63f,_0x501000[_0x70d68a(0x21d)],_0x1e0a45);}[_0x2fbafa(0x218)](){const _0x3f88a1=_0x2fbafa;return this[_0x3f88a1(0x1d6)]?.[_0x3f88a1(0x268)]('.'+Xo)||document[_0x3f88a1(0x1e7)];}[_0x2fbafa(0x23e)](_0x2c8b88,_0x18405a){const _0x2ebd79=_0x2fbafa,_0x552cad=new _0x15cacd(_0x2c8b88);return _0x552cad[_0x2ebd79(0x1ef)]({'attributes':{'class':_0x18405a}}),this[_0x2ebd79(0x21d)][_0x2ebd79(0x206)](_0x552cad),_0x552cad;}[_0x2fbafa(0x234)](_0x4750ed,_0x126e42,_0xa3bd30){const _0x5da325=_0x2fbafa;if(_0x4750ed[_0x5da325(0x23f)][_0x5da325(0x22e)](),!_0xa3bd30[_0x5da325(0x208)][_0x5da325(0x258)]&&_0xa3bd30[_0x5da325(0x208)][_0x5da325(0x1f3)]){const _0x3d6f1e=this[_0x5da325(0x250)](_0x126e42,{'label':_0x23ec44(_0x126e42,_0x5da325(0x1ff)),'icon':_0x2b2a1a});_0x3d6f1e['on'](_0x5da325(0x229),()=>{const _0x32ccbd=_0x5da325;this[_0x32ccbd(0x202)](_0x32ccbd(0x223)),this[_0x32ccbd(0x21b)]();}),_0x4750ed[_0x5da325(0x23f)][_0x5da325(0x206)](_0x3d6f1e);}if(_0xa3bd30[_0x5da325(0x25b)][_0x5da325(0x1f3)]){const _0x3a49f9=this[_0x5da325(0x250)](_0x126e42,{'label':_0x23ec44(_0x126e42,_0x5da325(0x205)),'icon':_0x9d930b});_0x3a49f9['on'](_0x5da325(0x229),()=>{const _0x5cf447=_0x5da325;this[_0x5cf447(0x21b)](),this[_0x5cf447(0x1f1)](),this[_0x5cf447(0x21a)][_0x5cf447(0x261)]({'target':this[_0x5cf447(0x259)][_0x5cf447(0x1d6)],'limiter':this[_0x5cf447(0x218)](),'positions':yo}),this[_0x5cf447(0x24e)][_0x5cf447(0x1d9)]();}),_0x4750ed[_0x5da325(0x23f)][_0x5da325(0x206)](_0x3a49f9);}if(_0xa3bd30[_0x5da325(0x24a)][_0x5da325(0x1f3)]){const _0x3e09b7=new _0x3236c2(_0x126e42);_0x3e09b7[_0x5da325(0x238)]({'label':_0x23ec44(_0x126e42,_0x5da325(0x244)),'icon':_0x3ef503,'withText':!0x0,'tooltip':!0x0,'class':Lo,'allowMultipleFiles':!0x0}),_0x3e09b7['on'](_0x5da325(0x229),()=>{const _0x4e8601=_0x5da325;this[_0x4e8601(0x21b)]();}),_0x3e09b7['on'](_0x5da325(0x1e1),(_0x34e062,_0x3c4e2a)=>{const _0x217fe0=_0x5da325;this[_0x217fe0(0x202)](_0x217fe0(0x209),_0x3c4e2a);}),_0x3e09b7[_0x5da325(0x256)]=!0x0,_0x4750ed[_0x5da325(0x23f)][_0x5da325(0x206)](_0x3e09b7);}for(const _0x3ffc8d of _0xa3bd30[_0x5da325(0x228)]){const _0x9b091c=this[_0x5da325(0x250)](_0x126e42,{'label':_0x3ffc8d[_0x5da325(0x1f5)],'icon':_0x3ffc8d[_0x5da325(0x204)]||_0x303f66,'type':_0x5da325(0x1f0)});_0x4750ed[_0x5da325(0x23f)][_0x5da325(0x206)](_0x9b091c),_0x9b091c['on'](_0x5da325(0x229),()=>{const _0x24013b=_0x5da325;this[_0x24013b(0x21b)](),this[_0x24013b(0x200)]({'source':_0x3ffc8d,'withBackButton':!this[_0x24013b(0x252)]});});}for(const _0x2a7146 of _0xa3bd30[_0x5da325(0x243)]||[]){const _0x274aa8=this[_0x5da325(0x250)](_0x126e42,{'label':_0x2a7146[_0x5da325(0x1f5)],'icon':_0x2a7146[_0x5da325(0x204)]||_0x303f66,'type':_0x5da325(0x23c)});_0x4750ed[_0x5da325(0x23f)][_0x5da325(0x206)](_0x274aa8),_0x274aa8['on'](_0x5da325(0x229),()=>{const _0xfd2185=_0x5da325;this[_0xfd2185(0x21b)](),this[_0xfd2185(0x202)](_0xfd2185(0x235),_0x2a7146);});}this[_0x5da325(0x252)]=0x1===_0x4750ed[_0x5da325(0x23f)][_0x5da325(0x267)],this[_0x5da325(0x24e)][_0x5da325(0x226)]=!this[_0x5da325(0x252)];}[_0x2fbafa(0x23a)](_0x41af8d,_0x1f83ae){const _0x59691f=_0x2fbafa;this[_0x59691f(0x24e)]=new _0x469aa0(_0x1f83ae),this[_0x59691f(0x24e)]['on'](_0x59691f(0x1df),(_0x353ff5,_0x3b8b72)=>{const _0x2e53d4=_0x59691f;this[_0x2e53d4(0x24c)](_0x3b8b72);}),this[_0x59691f(0x24e)]['on'](_0x59691f(0x263),()=>{const _0x37454b=_0x59691f;this[_0x37454b(0x1e2)](),this[_0x37454b(0x252)]||(this[_0x37454b(0x240)](),this[_0x37454b(0x1ed)][_0x37454b(0x261)]({'target':this[_0x37454b(0x259)][_0x37454b(0x1d6)],'limiter':this[_0x37454b(0x218)](),'positions':yo}));}),this[_0x59691f(0x24e)]['on'](_0x59691f(0x231),()=>{const _0x40f547=_0x59691f;this[_0x40f547(0x21a)][_0x40f547(0x1d7)]&&this[_0x40f547(0x21a)][_0x40f547(0x261)]({'target':this[_0x40f547(0x259)][_0x40f547(0x1d6)],'limiter':this[_0x40f547(0x218)](),'positions':yo});}),_0x41af8d[_0x59691f(0x23f)][_0x59691f(0x206)](this[_0x59691f(0x24e)]);}[_0x2fbafa(0x250)](_0x2d4f84,_0x284dd5){const _0x28f97e=_0x2fbafa,_0x208183=_0x28f97e(0x1f0)===_0x284dd5[_0x28f97e(0x266)]?new SourcesBalloonButtonView(_0x2d4f84):new _0x22c695(_0x2d4f84);return _0x208183[_0x28f97e(0x238)]({'label':_0x284dd5[_0x28f97e(0x1f5)],'icon':_0x284dd5[_0x28f97e(0x204)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Lo}),_0x208183;}[_0x2fbafa(0x255)](){const _0xd98fe0=_0x2fbafa;this[_0xd98fe0(0x1d4)](),this[_0xd98fe0(0x1f9)]();}[_0x2fbafa(0x1f9)](){const _0x1d267c=_0x2fbafa;_0x210ce1({'emitter':this[_0x1d267c(0x21a)],'contextElements':[this[_0x1d267c(0x21a)][_0x1d267c(0x1d6)]],'callback':()=>{const _0x588bc1=_0x1d267c;this[_0x588bc1(0x1e2)]();},'activator':()=>this[_0x1d267c(0x21a)][_0x1d267c(0x1d7)]});}[_0x2fbafa(0x1f2)](_0x2ae1a7){const _0x52eaa2=_0x2fbafa,_0x40887f=this[_0x52eaa2(0x20f)];_0x40887f[_0x52eaa2(0x220)][_0x52eaa2(0x214)]=_0x2ae1a7,_0x2ae1a7?_0x40887f[_0x52eaa2(0x221)][_0x52eaa2(0x26a)]():_0x40887f[_0x52eaa2(0x221)][_0x52eaa2(0x212)]();}[_0x2fbafa(0x1d4)](){const _0x3f04dc=_0x2fbafa,{balloonView:_0x35ad72,buttonView:_0xe941b4,hideMethod:_0xec735d}=this[_0x3f04dc(0x20f)];_0x210ce1({'emitter':_0x35ad72,'contextElements':[_0x35ad72[_0x3f04dc(0x1d6)],_0xe941b4[_0x3f04dc(0x1d6)]],'callback':()=>{_0xec735d();},'activator':()=>_0xe941b4[_0x3f04dc(0x214)]&&!this[_0x3f04dc(0x21a)][_0x3f04dc(0x1d7)]&&!this[_0x3f04dc(0x215)][_0x3f04dc(0x264)]()});}[_0x2fbafa(0x25f)](_0x269927,_0xaa58e2,_0x4ff67b=!0x1,_0x3334a2=!0x1){const _0x1b29cc=_0x2fbafa,_0x11bd71=_0x1b29cc(0x24b)===_0xaa58e2||!0x0===_0x269927[_0x1b29cc(0x21c)],_0x68e0f2=new _0x2b8565(this[_0x1b29cc(0x1ee)],_0x269927,_0x11bd71,_0x4ff67b,_0x3334a2);return _0x11bd71||_0x68e0f2['on'](_0x1b29cc(0x1db),()=>{const _0x484b41=_0x1b29cc;this[_0x484b41(0x202)](_0x484b41(0x245),_0x68e0f2['id']);}),_0x68e0f2;}[_0x2fbafa(0x24d)](_0x501b08,_0x5e7d9e){const _0x43e59a=_0x2fbafa;_0x5e7d9e[_0x43e59a(0x206)](_0x501b08,0x0);}[_0x2fbafa(0x213)](_0x3189ee,_0x512d37){const _0x33d1b9=_0x2fbafa,_0x808f3=_0x512d37[_0x33d1b9(0x20e)](_0x2b8e18=>_0x2b8e18['id']===_0x3189ee);_0x808f3&&_0x512d37[_0x33d1b9(0x262)](_0x808f3);}[_0x2fbafa(0x1e4)](){const _0x2125eb=_0x2fbafa;this[_0x2125eb(0x259)][_0x2125eb(0x214)]?this[_0x2125eb(0x21b)]():(this[_0x2125eb(0x240)](),this[_0x2125eb(0x1ed)][_0x2125eb(0x261)]({'target':this[_0x2125eb(0x259)][_0x2125eb(0x1d6)],'limiter':this[_0x2125eb(0x218)](),'positions':yo}),this[_0x2125eb(0x252)]&&this[_0x2125eb(0x1ed)][_0x2125eb(0x23f)][_0x2125eb(0x20a)](0x0)?.[_0x2125eb(0x202)](_0x2125eb(0x229)));}[_0x2fbafa(0x24c)](_0x2ffb18){const _0x281a3e=_0x2fbafa;this[_0x281a3e(0x24e)][_0x281a3e(0x22e)](),this[_0x281a3e(0x1e2)](),this[_0x281a3e(0x202)](_0x281a3e(0x1dd),_0x2ffb18);}}export class SourcesBalloonButtonView extends _0x22c695{[_0x2fbafa(0x25d)];constructor(_0x480339){const _0x20bd4d=_0x2fbafa;super(_0x480339),this[_0x20bd4d(0x238)]({'withText':!0x0,'role':_0x20bd4d(0x246)}),this[_0x20bd4d(0x25d)]=this[_0x20bd4d(0x216)](),this[_0x20bd4d(0x1ef)]({'attributes':{'class':[No]}});}[_0x2fbafa(0x225)](){const _0x1b8de5=_0x2fbafa;super[_0x1b8de5(0x225)](),this[_0x1b8de5(0x232)][_0x1b8de5(0x206)](this[_0x1b8de5(0x25d)]);}[_0x2fbafa(0x216)](){const _0x3bfc00=_0x2fbafa,_0x140fb6=new _0x5bc95f();return _0x140fb6[_0x3bfc00(0x23f)]=_0x1c092f,_0x140fb6[_0x3bfc00(0x1ef)]({'attributes':{'class':No+_0x3bfc00(0x260)}}),_0x140fb6;}}
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
- const _0x205b78=_0x4a84;function _0x2c33(){const _0x17bbc0=['133020GMMQIj','3zYUZkx','setTemplate','183462aJKXOY','10cgzdbw','ck-reset_all','90974IsakTu','locale','35QSrMfN','213395fzELsr','_cancelButtonView','ck-ai-chat-controls-loader-icon','11jqZQhM','_createLoaderView','execute','_loaderView','set','ck-ai-chat-controls-loader-icon-dot','329736VAOkAP','469035nKbrjd','ck-ai-chat-controls-loader-wrapper','abortPromptStream','AI_CHAT_STOP_GENERATING','fire','351192ZTpCyn','div','1StgSWV','AI_CHAT_IS_WRITING','ck-ai-button-secondary\x20ck-ai-button-stop-generating','ck-ai-chat-controls-loader','_createCancelButtonView'];_0x2c33=function(){return _0x17bbc0;};return _0x2c33();}function _0x4a84(_0x4c1686,_0x418ec8){const _0x2c334f=_0x2c33();return _0x4a84=function(_0x4a8416,_0x9cbc4d){_0x4a8416=_0x4a8416-0x164;let _0x3ae808=_0x2c334f[_0x4a8416];return _0x3ae808;},_0x4a84(_0x4c1686,_0x418ec8);}(function(_0xfa6540,_0x63b0af){const _0x29c827=_0x4a84,_0x1f04a9=_0xfa6540();while(!![]){try{const _0xd8c5dc=-parseInt(_0x29c827(0x17a))/0x1*(parseInt(_0x29c827(0x166))/0x2)+-parseInt(_0x29c827(0x180))/0x3*(parseInt(_0x29c827(0x172))/0x4)+-parseInt(_0x29c827(0x168))/0x5*(-parseInt(_0x29c827(0x182))/0x6)+parseInt(_0x29c827(0x169))/0x7+-parseInt(_0x29c827(0x178))/0x8+parseInt(_0x29c827(0x173))/0x9*(parseInt(_0x29c827(0x164))/0xa)+parseInt(_0x29c827(0x16c))/0xb*(-parseInt(_0x29c827(0x17f))/0xc);if(_0xd8c5dc===_0x63b0af)break;else _0x1f04a9['push'](_0x1f04a9['shift']());}catch(_0x53724f){_0x1f04a9['push'](_0x1f04a9['shift']());}}}(_0x2c33,0x1bc46));import{ButtonView as _0x2e3dd5,View as _0x813af4}from'ckeditor5/src/ui.js';import{IconStop as _0x26adbf}from'ckeditor5/src/icons.js';import{getTranslation as _0x42563b}from'../../../aicore/utils/common-translations.js';export class AIChatControlsLoaderView extends _0x813af4{[_0x205b78(0x16a)];[_0x205b78(0x16f)];constructor(_0x2d471d){const _0x4f827f=_0x205b78;super(_0x2d471d),this[_0x4f827f(0x16a)]=this[_0x4f827f(0x17e)](),this[_0x4f827f(0x16f)]=this[_0x4f827f(0x16d)](),this[_0x4f827f(0x181)]({'tag':_0x4f827f(0x179),'attributes':{'class':['ck',_0x4f827f(0x174),_0x4f827f(0x165)]},'children':[this[_0x4f827f(0x16f)],this[_0x4f827f(0x16a)]]});}[_0x205b78(0x17e)](){const _0x4c6f1a=_0x205b78,_0x50b333=new _0x2e3dd5(this[_0x4c6f1a(0x167)]);return _0x50b333[_0x4c6f1a(0x170)]({'label':_0x42563b(this[_0x4c6f1a(0x167)],_0x4c6f1a(0x176)),'withText':!0x0,'class':_0x4c6f1a(0x17c),'icon':_0x26adbf}),_0x50b333['on'](_0x4c6f1a(0x16e),()=>{const _0x57965d=_0x4c6f1a;this[_0x57965d(0x177)](_0x57965d(0x175));}),_0x50b333;}[_0x205b78(0x16d)](){const _0xad3764=_0x205b78,_0x5b2a85=new _0x813af4(this[_0xad3764(0x167)]);return _0x5b2a85[_0xad3764(0x181)]({'tag':_0xad3764(0x179),'attributes':{'class':[_0xad3764(0x17d)]},'children':[{'tag':_0xad3764(0x179),'attributes':{'class':[_0xad3764(0x16b)]},'children':[{'tag':_0xad3764(0x179),'attributes':{'class':[_0xad3764(0x171)]}},{'tag':_0xad3764(0x179),'attributes':{'class':[_0xad3764(0x171)]}},{'tag':_0xad3764(0x179),'attributes':{'class':[_0xad3764(0x171)]}}]},{'text':_0x42563b(this[_0xad3764(0x167)],_0xad3764(0x17b))}]}),_0x5b2a85;}}
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 _0x22b1ce=_0x559a;(function(_0x49aaba,_0x1cbf49){const _0x17383c=_0x559a,_0x1ca6b4=_0x49aaba();while(!![]){try{const _0x508619=parseInt(_0x17383c(0x111))/0x1+-parseInt(_0x17383c(0x147))/0x2*(-parseInt(_0x17383c(0x125))/0x3)+-parseInt(_0x17383c(0x134))/0x4*(-parseInt(_0x17383c(0x127))/0x5)+-parseInt(_0x17383c(0x128))/0x6*(parseInt(_0x17383c(0x116))/0x7)+-parseInt(_0x17383c(0x117))/0x8+-parseInt(_0x17383c(0x156))/0x9+parseInt(_0x17383c(0x11b))/0xa;if(_0x508619===_0x1cbf49)break;else _0x1ca6b4['push'](_0x1ca6b4['shift']());}catch(_0xe6d21e){_0x1ca6b4['push'](_0x1ca6b4['shift']());}}}(_0x163c,0x3083f));import{Collection as _0x42a881}from'ckeditor5/src/utils.js';import{IconAI as _0x5b5ee0,IconBulb as _0x4eff1a,IconWeb as _0x1e6188}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x28861b,ButtonLabelView as _0xef0f76,ButtonView as _0x178a10,createDropdown as _0x2f982b,IconView as _0x5750de,UIModel as _0x327aed,View as _0x3150f2}from'ckeditor5/src/ui.js';import{getTranslation as _0x43b123}from'../../../aicore/utils/common-translations.js';const Yo=_0x22b1ce(0x115),Mo=_0x22b1ce(0x11d),qo=_0x22b1ce(0x11e),zo=_0x22b1ce(0x12f),Jo=_0x22b1ce(0x12d),Ko=_0x22b1ce(0x10d),Qo=_0x22b1ce(0x157),Zo=_0x22b1ce(0x143),$o='n';export class AIChatPromptCapabilitiesView extends _0x3150f2{[_0x22b1ce(0x12a)];[_0x22b1ce(0x13b)];[_0x22b1ce(0x15c)];[_0x22b1ce(0x160)];[_0x22b1ce(0x106)];[_0x22b1ce(0x162)];constructor(_0x29feba){const _0x2235b9=_0x22b1ce;super(_0x29feba),this[_0x2235b9(0x109)](_0x2235b9(0x13e),!0x1),this[_0x2235b9(0x109)](_0x2235b9(0x10b),!0x1),this[_0x2235b9(0x109)](_0x2235b9(0x14f),_0x2235b9(0x11c)),this[_0x2235b9(0x109)](_0x2235b9(0x141),!0x0),this[_0x2235b9(0x109)](_0x2235b9(0x122),null),this[_0x2235b9(0x109)](_0x2235b9(0x12b),null),this[_0x2235b9(0x160)]=this[_0x2235b9(0x108)](),this[_0x2235b9(0x162)]=this[_0x2235b9(0x166)](),this[_0x2235b9(0x12a)]=this[_0x2235b9(0x14e)](),this[_0x2235b9(0x13b)]=this[_0x2235b9(0x155)](),this[_0x2235b9(0x15c)]=this[_0x2235b9(0x126)](),this[_0x2235b9(0x160)][_0x2235b9(0x154)][_0x2235b9(0x138)](_0x2235b9(0x10a))['to'](this,_0x2235b9(0x14f),_0x2a222e=>_0x2235b9(0x11c)===_0x2a222e),this[_0x2235b9(0x160)][_0x2235b9(0x154)][_0x2235b9(0x138)](_0x2235b9(0x131))['to'](this,_0x2235b9(0x141),_0x401df5=>_0x401df5?this[_0x2235b9(0x160)][_0x2235b9(0x154)][_0x2235b9(0x130)]:_0x43b123(this[_0x2235b9(0x139)],_0x2235b9(0x158))),this[_0x2235b9(0x160)][_0x2235b9(0x138)](_0x2235b9(0x10e))['to'](this,_0x2235b9(0x141),_0x560edc=>_0x560edc),this[_0x2235b9(0x12a)][_0x2235b9(0x138)](_0x2235b9(0x114))['to'](this,_0x2235b9(0x13e),_0x4679e2=>_0x4679e2),this[_0x2235b9(0x12a)][_0x2235b9(0x138)](_0x2235b9(0x131))['to'](this,_0x2235b9(0x13e),_0x22e43e=>_0x43b123(this[_0x2235b9(0x139)],_0x22e43e?_0x2235b9(0x110):_0x2235b9(0x149))),this[_0x2235b9(0x13b)][_0x2235b9(0x138)](_0x2235b9(0x114))['to'](this,_0x2235b9(0x10b),_0x21df8f=>_0x21df8f),this[_0x2235b9(0x13b)][_0x2235b9(0x138)](_0x2235b9(0x131))['to'](this,_0x2235b9(0x10b),_0x4a8107=>_0x43b123(this[_0x2235b9(0x139)],_0x4a8107?_0x2235b9(0x167):_0x2235b9(0x13f))),this[_0x2235b9(0x14b)]({'tag':_0x2235b9(0x144),'attributes':{'class':[Yo]},'children':[this[_0x2235b9(0x160)],this[_0x2235b9(0x162)],this[_0x2235b9(0x12a)],this[_0x2235b9(0x13b)],this[_0x2235b9(0x15c)]]}),this[_0x2235b9(0x106)]=new _0x42a881(),_0x28861b(this[_0x2235b9(0x160)],this[_0x2235b9(0x106)]);}[_0x22b1ce(0x11f)](_0x1f02c9,_0x4f4b5a){const _0x398474=_0x22b1ce;if(_0x4f4b5a)this[_0x398474(0x109)](_0x398474(0x14f),_0x398474(0x10f));else{const _0x6b22de=0x1===_0x1f02c9[_0x398474(0x112)];this[_0x398474(0x109)](_0x398474(0x14f),_0x6b22de?_0x398474(0x15e):_0x398474(0x11c));}if(this[_0x398474(0x106)][_0x398474(0x165)](),_0x1f02c9?.[_0x398474(0x112)])for(const _0x5da393 of _0x1f02c9){const _0x5270d8=new _0x327aed({'label':_0x5da393[_0x398474(0x15e)],'withText':!0x0,'role':_0x398474(0x15a),'id':_0x5da393['id'],'model':_0x5da393});_0x5270d8[_0x398474(0x138)](_0x398474(0x114))['to'](this,_0x398474(0x122),_0x2409ec=>_0x2409ec===_0x5da393['id']),this[_0x398474(0x106)][_0x398474(0x159)]({'type':_0x398474(0x13a),'model':_0x5270d8,'labelView':new ModelButtonLabelView(this[_0x398474(0x139)],_0x5da393)});}}[_0x22b1ce(0x145)](_0x46aadc){const _0x476be2=_0x22b1ce;this[_0x476be2(0x109)](_0x476be2(0x13e),_0x46aadc);}[_0x22b1ce(0x121)](_0x1f7f6a){const _0xe55997=_0x22b1ce;this[_0xe55997(0x109)](_0xe55997(0x10b),_0x1f7f6a);}[_0x22b1ce(0x153)](_0x16de56){const _0x2a26a0=_0x22b1ce;if(!_0x16de56)return;this[_0x2a26a0(0x122)]=_0x16de56['id'],this[_0x2a26a0(0x12b)]=_0x16de56[_0x2a26a0(0x15e)]||_0x16de56['id'],this[_0x2a26a0(0x160)][_0x2a26a0(0x154)][_0x2a26a0(0x109)](_0x2a26a0(0x130),_0x16de56[_0x2a26a0(0x15e)]),this[_0x2a26a0(0x160)][_0x2a26a0(0x154)][_0x2a26a0(0x109)](_0x2a26a0(0x131),_0x16de56[_0x2a26a0(0x15e)]);const _0x142fa9=_0x16de56[_0x2a26a0(0x119)][_0x2a26a0(0x135)]?.[_0x2a26a0(0x140)]??!0x1;this[_0x2a26a0(0x109)](_0x2a26a0(0x13e),!0x1),this[_0x2a26a0(0x12a)][_0x2a26a0(0x109)](_0x2a26a0(0x114),!0x1),this[_0x2a26a0(0x12a)][_0x2a26a0(0x109)](_0x2a26a0(0x10e),_0x142fa9),this[_0x2a26a0(0x12a)][_0x2a26a0(0x109)](_0x2a26a0(0x10a),_0x142fa9);const _0x1534fd=_0x16de56[_0x2a26a0(0x119)][_0x2a26a0(0x13d)]?.[_0x2a26a0(0x140)]??!0x1;this[_0x2a26a0(0x109)](_0x2a26a0(0x10b),!0x1),this[_0x2a26a0(0x13b)][_0x2a26a0(0x109)](_0x2a26a0(0x114),!0x1),this[_0x2a26a0(0x13b)][_0x2a26a0(0x109)](_0x2a26a0(0x10e),_0x1534fd),this[_0x2a26a0(0x13b)][_0x2a26a0(0x109)](_0x2a26a0(0x10a),_0x1534fd);}[_0x22b1ce(0x12e)](){const _0x51c05d=_0x22b1ce;this[_0x51c05d(0x109)](_0x51c05d(0x141),!0x0);}[_0x22b1ce(0x107)](_0x4a45de){const _0x1cc9a3=_0x22b1ce;this[_0x1cc9a3(0x109)](_0x1cc9a3(0x141),!0x1),_0x4a45de&&this[_0x1cc9a3(0x109)](_0x1cc9a3(0x14f),_0x1cc9a3(0x10f));}[_0x22b1ce(0x14e)](){const _0x3956d4=_0x22b1ce,_0xaaa19b=new _0x178a10();return _0xaaa19b[_0x3956d4(0x109)]({'label':_0x43b123(this[_0x3956d4(0x139)],_0x3956d4(0x133)),'icon':_0x1e6188,'class':Mo,'isToggleable':!0x0,'tooltipPosition':$o}),_0xaaa19b['on'](_0x3956d4(0x15b),()=>{const _0x34e4e0=_0x3956d4;this[_0x34e4e0(0x132)](_0x34e4e0(0x129));}),_0xaaa19b;}[_0x22b1ce(0x155)](){const _0x52eecb=_0x22b1ce,_0x537a9e=new _0x178a10();return _0x537a9e[_0x52eecb(0x109)]({'label':_0x43b123(this[_0x52eecb(0x139)],_0x52eecb(0x113)),'icon':_0x4eff1a,'class':Mo,'isToggleable':!0x0,'tooltipPosition':$o}),_0x537a9e['on'](_0x52eecb(0x15b),()=>{const _0x6b0a13=_0x52eecb;this[_0x6b0a13(0x132)](_0x6b0a13(0x151));}),_0x537a9e;}[_0x22b1ce(0x126)](){const _0x937937=_0x22b1ce,_0x24e189=new _0x178a10();return _0x24e189[_0x937937(0x109)]({'label':_0x43b123(this[_0x937937(0x139)],_0x937937(0x137)),'icon':_0x5b5ee0,'withText':!0x0,'class':Mo,'isToggleable':!0x0,'tooltip':_0x43b123(this[_0x937937(0x139)],_0x937937(0x137)),'tooltipPosition':$o}),_0x24e189[_0x937937(0x14a)]({'attributes':{'class':[qo]}}),_0x24e189['on'](_0x937937(0x15b),()=>{const _0x8383ea=_0x937937;console[_0x8383ea(0x163)](_0x8383ea(0x15d)),alert(_0x8383ea(0x15d));}),_0x24e189;}[_0x22b1ce(0x108)](){const _0x29242f=_0x22b1ce,_0x54b61c=_0x2f982b(this[_0x29242f(0x139)]);return _0x54b61c[_0x29242f(0x109)]({'panelPosition':'ne','class':[Jo]}),_0x54b61c[_0x29242f(0x154)][_0x29242f(0x109)]({'label':_0x43b123(this[_0x29242f(0x139)],_0x29242f(0x136)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':$o,'class':zo}),this[_0x29242f(0x15f)](_0x54b61c,_0x29242f(0x15b),_0x14e458=>{const _0x522671=_0x29242f;this[_0x522671(0x132)](_0x522671(0x142),_0x14e458[_0x522671(0x11a)][_0x522671(0x12c)]);}),_0x54b61c;}[_0x22b1ce(0x166)](){const _0xd3a4bc=_0x22b1ce,_0x22a496=new ModelNameView(this[_0xd3a4bc(0x139)]);return _0x22a496[_0xd3a4bc(0x138)](_0xd3a4bc(0x123))['to'](this,_0xd3a4bc(0x12b),_0x36d123=>_0x36d123??''),_0x22a496[_0xd3a4bc(0x138)](_0xd3a4bc(0x10a))['to'](this,_0xd3a4bc(0x14f),_0x332bdb=>_0xd3a4bc(0x15e)===_0x332bdb),_0x22a496;}}function _0x559a(_0x427e3f,_0x45c01c){const _0x163c54=_0x163c();return _0x559a=function(_0x559ab8,_0xf8a728){_0x559ab8=_0x559ab8-0x106;let _0x411486=_0x163c54[_0x559ab8];return _0x411486;},_0x559a(_0x427e3f,_0x45c01c);}class ModelButtonLabelView extends _0xef0f76{constructor(_0x190b66,_0xf89e60){const _0x3a2ae8=_0x22b1ce;super();const _0x4c37f4=this[_0x3a2ae8(0x120)],_0x44d66a=this[_0x3a2ae8(0x152)]();this[_0x3a2ae8(0x14b)]({'tag':_0x3a2ae8(0x144),'attributes':{'class':['ck',_0x3a2ae8(0x164)],'style':_0x4c37f4['to'](_0x3a2ae8(0x13c)),'id':_0x4c37f4['to']('id')},'children':[{'tag':_0x3a2ae8(0x144),'attributes':{'class':[Ko]},'children':[{'text':_0x4c37f4['to'](_0x3a2ae8(0x123))}]},{'tag':_0x3a2ae8(0x144),'attributes':{'class':[Qo]},'children':[{'tag':_0x3a2ae8(0x150),'children':[{'text':_0xf89e60[_0x3a2ae8(0x14c)]}]}]},{'tag':_0x3a2ae8(0x144),'attributes':{'class':[Zo]},'children':_0x44d66a}]}),_0x44d66a[_0x3a2ae8(0x10c)](this[_0x3a2ae8(0x124)](_0x190b66,_0x1e6188,_0x3a2ae8(0x133),_0xf89e60[_0x3a2ae8(0x119)][_0x3a2ae8(0x135)]?.[_0x3a2ae8(0x140)]??!0x1)),_0x44d66a[_0x3a2ae8(0x10c)](this[_0x3a2ae8(0x124)](_0x190b66,_0x4eff1a,_0x3a2ae8(0x113),_0xf89e60[_0x3a2ae8(0x119)][_0x3a2ae8(0x13d)]?.[_0x3a2ae8(0x140)]??!0x1));}[_0x22b1ce(0x124)](_0x59ddba,_0x5667ba,_0x2f2f4c,_0x15a3d4){const _0x14a90a=_0x22b1ce,_0x8ade28=new _0x5750de();_0x8ade28[_0x14a90a(0x14d)]=_0x5667ba;const _0x123c3f=new _0x3150f2(_0x59ddba);_0x123c3f[_0x14a90a(0x14b)]({'tag':_0x14a90a(0x150),'children':[{'text':_0x43b123(_0x59ddba,_0x2f2f4c)+':\x20'}]});const _0x29d762=new _0x3150f2(_0x59ddba);return _0x29d762[_0x14a90a(0x14b)]({'tag':_0x14a90a(0x150),'children':[{'text':_0x43b123(_0x59ddba,_0x15a3d4?_0x14a90a(0x148):_0x14a90a(0x161))}]}),[_0x8ade28,_0x123c3f,_0x29d762];}}class ModelNameView extends _0x3150f2{constructor(_0x2d04b2){const _0x5109c2=_0x22b1ce;super(_0x2d04b2),this[_0x5109c2(0x109)](_0x5109c2(0x123),void 0x0),this[_0x5109c2(0x109)](_0x5109c2(0x10a),!0x0);const _0x530443=this[_0x5109c2(0x120)];this[_0x5109c2(0x14b)]({'tag':_0x5109c2(0x150),'attributes':{'class':['ck',_0x5109c2(0x146),_0x530443['if'](_0x5109c2(0x10a),_0x5109c2(0x118),_0x56338d=>!_0x56338d)]},'children':[{'text':_0x530443['to'](_0x5109c2(0x123))}]});}}function _0x163c(){const _0x3b2f62=['ck-ai-chat-controls-button','ck-ai-chat-controls-button--commands','setModelList','bindTemplate','setReasoning','activeModelId','text','_getCapabilityParts','407760PAyKcX','_createCommandsButton','5zmpxKd','90714unYgfu','toggleWebSearch','_webSearchButton','activeModelName','model','ck-ai-chat-controls__model-selection','enableModelSelector','ck-ai-button-tertiary','label','tooltip','fire','AI_CHAT_SEARCH_WEB','697604UYrgux','webSearch','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','AI_CHAT_COMMANDS','bind','locale','button','_reasoningButton','style','reasoning','webSearchActive','AI_CHAT_ENABLE_REASONING','enabled','modelSelectorEnabled','selectModel','ck-ai-chat-controls__model-selection__item-capabilities','div','setWebSearch','ck-ai-chat-controls__model-name','2WyRFDo','AI_CHAT_CAPABILITIES_YES','AI_CHAT_ENABLE_WEB_SEARCH','extendTemplate','setTemplate','description','content','_createWebSearchButton','modelDisplayMode','span','toggleReasoning','createCollection','setModel','buttonView','_createReasoningButton','1936431IVQhBK','ck-ai-chat-controls__model-selection__item-description','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','add','menuitemradio','execute','_commandsButton','Commands\x20are\x20not\x20implemented\x20yet.','name','listenTo','_modelSelectionDropdown','AI_CHAT_CAPABILITIES_NO','_modelNameView','log','ck-button__label','clear','_createModelNameView','AI_CHAT_DISABLE_REASONING','_modelSelectionDropdownItems','disableModelSelector','_createModelSelectionDropdown','set','isVisible','reasoningActive','addMany','ck-ai-chat-controls__model-selection__item-name','isEnabled','hidden','AI_CHAT_DISABLE_WEB_SEARCH','215520FEbnnp','length','AI_CHAT_REASONING','isOn','ck-ai-chat__prompt-capabilities','133vneXHE','524464ZnDDPD','ck-hidden','capabilities','source','2408560XNddSO','selector'];_0x163c=function(){return _0x3b2f62;};return _0x163c();}
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 _0x34a736=_0x392a;(function(_0xdba929,_0x44274a){const _0x1b1dce=_0x392a,_0x38b00c=_0xdba929();while(!![]){try{const _0x5d4d69=-parseInt(_0x1b1dce(0xb4))/0x1*(-parseInt(_0x1b1dce(0xa8))/0x2)+-parseInt(_0x1b1dce(0xcd))/0x3+parseInt(_0x1b1dce(0xa9))/0x4*(parseInt(_0x1b1dce(0x8d))/0x5)+-parseInt(_0x1b1dce(0xbf))/0x6*(-parseInt(_0x1b1dce(0xc2))/0x7)+parseInt(_0x1b1dce(0x8e))/0x8+parseInt(_0x1b1dce(0x94))/0x9*(-parseInt(_0x1b1dce(0xb7))/0xa)+parseInt(_0x1b1dce(0xc6))/0xb*(parseInt(_0x1b1dce(0xc7))/0xc);if(_0x5d4d69===_0x44274a)break;else _0x38b00c['push'](_0x38b00c['shift']());}catch(_0x2985c5){_0x38b00c['push'](_0x38b00c['shift']());}}}(_0x537c,0x45072));import{IconSubmit as _0x431349}from'ckeditor5/src/icons.js';import{ButtonView as _0x3cbb44,AutocompleteView as _0x1aa2ac,createLabeledTextarea as _0x5d05e2}from'ckeditor5/src/ui.js';function _0x392a(_0x57e728,_0x26225e){const _0x537c12=_0x537c();return _0x392a=function(_0x392a33,_0x28c947){_0x392a33=_0x392a33-0x89;let _0x554db1=_0x537c12[_0x392a33];return _0x554db1;},_0x392a(_0x57e728,_0x26225e);}import{global as _0xf27497,isVisible as _0x46987b,Rect as _0x160041,ResizeObserver as _0x3e7b3f}from'ckeditor5/src/utils.js';import{getTranslation as _0x2900c0}from'../../../aicore/utils/common-translations.js';import{AIChatPromptSuggestionsListView as _0x2111b3}from'./aichatpromptsuggestionslistview.js';import{escape as _0x1657c5}from'es-toolkit/compat';const ah=_0x34a736(0xc8);export class AIChatPromptInputView extends _0x1aa2ac{[_0x34a736(0xb5)];static [_0x34a736(0xab)]=0x1;static [_0x34a736(0xc1)]=0xc;[_0x34a736(0x9a)];[_0x34a736(0xbd)];constructor(_0x39da8b,_0xb0300a){const _0x76b95b=_0x34a736;super(_0x39da8b,{'queryView':{'label':'','creator':_0x5d05e2,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x2111b3(_0x39da8b),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x76b95b(0xd0)](_0x76b95b(0x98),!0x0),this[_0x76b95b(0xd0)](_0x76b95b(0x8c),!0x1),this[_0x76b95b(0x9a)]=_0xb0300a,this[_0x76b95b(0xbd)]=null,this[_0x76b95b(0xae)][_0x76b95b(0xc9)][_0x76b95b(0x9b)]=AIChatPromptInputView[_0x76b95b(0xab)],this[_0x76b95b(0xae)][_0x76b95b(0xc9)][_0x76b95b(0xbe)]=AIChatPromptInputView[_0x76b95b(0xc1)],this[_0x76b95b(0xae)][_0x76b95b(0x95)][_0x76b95b(0x92)](this[_0x76b95b(0x9a)]),this[_0x76b95b(0xcb)](),this[_0x76b95b(0x89)]({'attributes':{'class':['ck',_0x76b95b(0xb9)]}}),this[_0x76b95b(0xb5)]=this[_0x76b95b(0x91)](),this[_0x76b95b(0xb5)][_0x76b95b(0xac)](_0x76b95b(0x97))['to'](this,_0x76b95b(0x98),this,_0x76b95b(0x8c),(_0x2a5b7b,_0x5db540)=>!_0x2a5b7b&&!_0x5db540),this[_0x76b95b(0xb1)][_0x76b95b(0x92)](this[_0x76b95b(0xb5)]);}[_0x34a736(0xa2)](){const _0x46a69c=_0x34a736;super[_0x46a69c(0xa2)](),this[_0x46a69c(0xae)][_0x46a69c(0x95)][_0x46a69c(0x92)](this[_0x46a69c(0xb5)]),this[_0x46a69c(0xa3)][_0x46a69c(0xd0)](_0x46a69c(0x99),(_0x4b20fe,_0x39610b)=>{const _0x3dd0f0=_0x46a69c;this[_0x3dd0f0(0x8c)]||this[_0x3dd0f0(0x98)]||_0x4b20fe[_0x3dd0f0(0x9d)]==this[_0x3dd0f0(0xae)][_0x3dd0f0(0xc9)][_0x3dd0f0(0xbb)]&&(this[_0x3dd0f0(0xb8)](),_0x39610b());}),this[_0x46a69c(0xae)][_0x46a69c(0xc9)]['on'](_0x46a69c(0x93),()=>{const _0x4fc06c=_0x46a69c;this[_0x4fc06c(0x98)]=''===this[_0x4fc06c(0xae)][_0x4fc06c(0xc9)][_0x4fc06c(0xbb)][_0x4fc06c(0x8b)]?.[_0x4fc06c(0xce)]();});}[_0x34a736(0xb6)](){const _0x4cdbd2=_0x34a736;super[_0x4cdbd2(0xb6)](),this[_0x4cdbd2(0xbd)]&&this[_0x4cdbd2(0xbd)][_0x4cdbd2(0xb6)]();}[_0x34a736(0xb8)](){const _0x571b65=_0x34a736,_0x42e500=this[_0x571b65(0xae)][_0x571b65(0xc9)][_0x571b65(0xbb)][_0x571b65(0x8b)]?.[_0x571b65(0xce)]();if(!_0x42e500)return this[_0x571b65(0xae)][_0x571b65(0xc3)]=_0x2900c0(this[_0x571b65(0xa6)],_0x571b65(0xc5)),void(this[_0x571b65(0xae)][_0x571b65(0xc9)][_0x571b65(0x8a)]=!0x0);this[_0x571b65(0xae)][_0x571b65(0xc9)][_0x571b65(0x8a)]=!0x1;const _0x140f89=_0x1657c5(_0x42e500);this[_0x571b65(0xcf)](_0x571b65(0xa1),_0x140f89),this[_0x571b65(0xae)][_0x571b65(0xc9)][_0x571b65(0xb3)]();}[_0x34a736(0xad)](_0x1a2119){const _0x408f3e=_0x34a736;this[_0x408f3e(0xae)][_0x408f3e(0xc9)][_0x408f3e(0xd0)](_0x408f3e(0xba),_0x1a2119);}[_0x34a736(0xb0)](_0x214d48=!0x1){const _0x5d3a6a=_0x34a736;super[_0x5d3a6a(0xb0)](),_0x214d48&&(this[_0x5d3a6a(0xbb)][_0x5d3a6a(0xaf)][_0x5d3a6a(0xc4)](ah)||(this[_0x5d3a6a(0xbb)][_0x5d3a6a(0xaf)][_0x5d3a6a(0x92)](ah),setTimeout(()=>{const _0x19edd6=_0x5d3a6a;this[_0x19edd6(0xbb)][_0x19edd6(0xaf)][_0x19edd6(0xaa)](ah);},0x320)));}[_0x34a736(0x91)](){const _0x56061b=_0x34a736,_0x268ed5=new _0x3cbb44(this[_0x56061b(0xa6)]);return _0x268ed5[_0x56061b(0xd0)]({'icon':_0x431349,'label':_0x2900c0(this[_0x56061b(0xa6)],_0x56061b(0x9e)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x56061b(0xbc),'isEnabled':!0x1}),_0x268ed5['on'](_0x56061b(0x8f),()=>{const _0xe051e9=_0x56061b;this[_0xe051e9(0xb8)]();}),_0x268ed5;}[_0x34a736(0xb2)](_0x252afb){const _0x255102=_0x34a736;this[_0x255102(0x8c)]=_0x252afb;}[_0x34a736(0xcb)](){const _0x374c71=_0x34a736,_0x4465b6=this[_0x374c71(0xa6)],_0x536fa9=()=>{const _0x302e9f=_0x374c71;_0xf27497[_0x302e9f(0x9c)][_0x302e9f(0x96)](()=>{const _0x112343=_0x302e9f;if(_0x46987b(this[_0x112343(0xbb)])){const _0x200838=new _0x160041(this[_0x112343(0xae)][_0x112343(0xc9)][_0x112343(0xbb)]),_0x28b0c9=new _0x160041(this[_0x112343(0x9a)][_0x112343(0xbb)]),_0x840720=_0x200838[_0x112343(0xcc)],_0x44c369=_0x112343(0xa5)===_0x4465b6[_0x112343(0xa7)]?_0x112343(0x90):_0x112343(0xa4);_0x200838[_0x112343(0xa0)]();const _0x51478a=_0x840720-_0x200838[_0x112343(0xcc)]+0x1;this[_0x112343(0x9a)][_0x112343(0xbb)][_0x112343(0x9f)][_0x44c369]=_0x112343(0xc0)+(_0x840720-_0x28b0c9[_0x112343(0xcc)]-_0x51478a)+_0x112343(0xca);}});};this[_0x374c71(0xae)][_0x374c71(0xc9)]['on'](_0x374c71(0x93),_0x536fa9),this['on'](_0x374c71(0xa2),()=>{const _0x2c52c4=_0x374c71;_0x536fa9(),this[_0x2c52c4(0xbd)]=new _0x3e7b3f(this[_0x2c52c4(0xae)][_0x2c52c4(0xc9)][_0x2c52c4(0xbb)],()=>{_0x536fa9();});});}}function _0x537c(){const _0x4466db=['trim','fire','set','extendTemplate','hasError','value','isUploadInProgress','10zPEvcr','464896YjeGkX','execute','right','_createSubmitButton','add','update','96651WKdMuj','fieldWrapperChildren','requestAnimationFrame','isEnabled','isEmpty','enter','_addContextButtonView','minRows','window','target','AI_CHAT_LABEL_SUBMIT','style','excludeScrollbarsAndBorders','sendUserMessage','render','keystrokes','left','rtl','locale','uiLanguageDirection','6FTkIQJ','59324mClQQi','remove','MIN_ROWS','bind','setPlaceholderText','queryView','classList','focus','focusableChildren','setIsUploadInProgress','reset','74797zCwdAC','submitButtonView','destroy','60ljZVSK','submit','ck-ai-chat__prompt-input','placeholder','element','ck-ai-chat__prompt-submit-button','_queryViewResizeObserver','maxRows','1002jtIqiW','calc(','MAX_ROWS','7063EBfryI','errorText','contains','AI_CHAT_PROMPT_EMPTY_ERROR','785455TyemIv','60DWNCpi','ck-ai-chat__prompt-input_highlighted','fieldView','px\x20-\x20var(--ck-spacing-tiny))','_setUpAddContextButtonPositioning','width','1471563IYxBje'];_0x537c=function(){return _0x4466db;};return _0x537c();}
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
- const _0xe81fce=_0x4225;function _0x4225(_0x540493,_0x4dd811){const _0x4f40b8=_0x4f40();return _0x4225=function(_0x42259d,_0x9ca8b5){_0x42259d=_0x42259d-0xc9;let _0x353cd5=_0x4f40b8[_0x42259d];return _0x353cd5;},_0x4225(_0x540493,_0x4dd811);}(function(_0x827e40,_0x3dc7cb){const _0x4b3e20=_0x4225,_0x284b40=_0x827e40();while(!![]){try{const _0x229e35=-parseInt(_0x4b3e20(0xd6))/0x1*(-parseInt(_0x4b3e20(0xd5))/0x2)+parseInt(_0x4b3e20(0xcc))/0x3*(-parseInt(_0x4b3e20(0xd0))/0x4)+parseInt(_0x4b3e20(0xd3))/0x5+-parseInt(_0x4b3e20(0xca))/0x6*(-parseInt(_0x4b3e20(0xcd))/0x7)+-parseInt(_0x4b3e20(0xc9))/0x8*(parseInt(_0x4b3e20(0xd4))/0x9)+parseInt(_0x4b3e20(0xcf))/0xa+-parseInt(_0x4b3e20(0xcb))/0xb;if(_0x229e35===_0x3dc7cb)break;else _0x284b40['push'](_0x284b40['shift']());}catch(_0x3bdcce){_0x284b40['push'](_0x284b40['shift']());}}}(_0x4f40,0x26cb5));import{ListView as _0x4baab5}from'ckeditor5/src/ui.js';function _0x4f40(){const _0x1f1387=['filter','1199740ZKPjdo','79479llIGnH','10vkjLqO','49457jKgWMi','128DuMsvh','114MzSpIX','4161300UAnaYJ','105ADcLYj','98014nPsXWj','items','733110yjLONw','16924ajXBDJ','length'];_0x4f40=function(){return _0x1f1387;};return _0x4f40();}export class AIChatPromptSuggestionsListView extends _0x4baab5{[_0xe81fce(0xd2)](){const _0x17a713=_0xe81fce;let _0x118a1c=0x0;for(const _0x7ed3d7 of this[_0x17a713(0xce)])_0x118a1c+=_0x7ed3d7[_0x17a713(0xce)][_0x17a713(0xd1)];return{'resultsCount':_0x118a1c,'totalItemsCount':_0x118a1c};}}
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
- const _0x43f8b2=_0x5647;(function(_0x248931,_0x48d92c){const _0x46643f=_0x5647,_0x34dbaa=_0x248931();while(!![]){try{const _0xb69e95=-parseInt(_0x46643f(0x20c))/0x1+-parseInt(_0x46643f(0x1f8))/0x2+parseInt(_0x46643f(0x20d))/0x3*(-parseInt(_0x46643f(0x200))/0x4)+-parseInt(_0x46643f(0x202))/0x5*(-parseInt(_0x46643f(0x208))/0x6)+-parseInt(_0x46643f(0x20e))/0x7+parseInt(_0x46643f(0x1fe))/0x8+parseInt(_0x46643f(0x1fd))/0x9*(parseInt(_0x46643f(0x205))/0xa);if(_0xb69e95===_0x48d92c)break;else _0x34dbaa['push'](_0x34dbaa['shift']());}catch(_0x8fa704){_0x34dbaa['push'](_0x34dbaa['shift']());}}}(_0x2b7e,0xceb89));function _0x5647(_0x568a86,_0x3617b5){const _0x2b7e90=_0x2b7e();return _0x5647=function(_0x56477e,_0x450f78){_0x56477e=_0x56477e-0x1f1;let _0x5b535a=_0x2b7e90[_0x56477e];return _0x5b535a;},_0x5647(_0x568a86,_0x3617b5);}import{ListView as _0x543a35}from'ckeditor5/src/ui.js';import{AIChatResourceListItemView as _0x5643d1}from'./aichatresourcelistitemview.js';function _0x2b7e(){const _0x43d3bf=['useDefaultFiltering','forEach','items','extendTemplate','9bHgqhS','7098360TtOYrP','fire','16jxOUQs','\x5c$&','250740zgRMRY','trim','clear','31345610ByVdPq','test','setResources','72TQIxtm','filter','ck-ai-chat-resources__list','label','1591670hQtHHD','951783eFetOl','2262288KPrgFT','addResourceToContext','_handleResourceSelection','updateResourceState','resource','highlightText','_source','add','replace','execute','locale','1186010cUeBxm'];_0x2b7e=function(){return _0x43d3bf;};return _0x2b7e();}const uc=_0x43f8b2(0x20a);export class AIChatContextResourcesListView extends _0x543a35{[_0x43f8b2(0x1f3)];constructor(_0x3cdb99,_0x18ff47){const _0x1861db=_0x43f8b2;super(_0x3cdb99),this[_0x1861db(0x1f3)]=_0x18ff47,this[_0x1861db(0x1fc)]({'attributes':{'class':[uc]}});}[_0x43f8b2(0x207)](_0x39a0aa,_0x4318cd){const _0xbf683a=_0x43f8b2;this[_0xbf683a(0x1fb)][_0xbf683a(0x204)]();let _0x2227ad=_0x39a0aa;if(this[_0xbf683a(0x1f3)][_0xbf683a(0x1f9)]&&_0x4318cd&&''!==_0x4318cd[_0xbf683a(0x203)]()){const _0x30d8c6=new RegExp(_0x4318cd[_0xbf683a(0x1f5)](/[.*+?^${}()|[\]\\]/g,_0xbf683a(0x201)),'gi');_0x2227ad=_0x39a0aa[_0xbf683a(0x209)](_0x5b3b96=>_0x30d8c6[_0xbf683a(0x206)](_0x5b3b96[_0xbf683a(0x20b)]));}for(const _0x3914d6 of _0x2227ad){const _0x4724ce=new _0x5643d1(this[_0xbf683a(0x1f7)],_0x3914d6);_0x4724ce['on'](_0xbf683a(0x1f6),()=>{const _0x375502=_0xbf683a;this[_0x375502(0x210)](this[_0x375502(0x1f3)],_0x3914d6);}),this[_0xbf683a(0x1fb)][_0xbf683a(0x1f4)](_0x4724ce);}this[_0xbf683a(0x1f3)][_0xbf683a(0x1f9)]&&this[_0xbf683a(0x1f2)](_0x4318cd);}[_0x43f8b2(0x1f2)](_0x2fd911){const _0x5d052d=_0x43f8b2;this[_0x5d052d(0x1f3)][_0x5d052d(0x1f9)]&&this[_0x5d052d(0x1fb)][_0x5d052d(0x1fa)](_0x23a2e6=>{const _0x488a56=_0x5d052d;_0x23a2e6[_0x488a56(0x1f2)](_0x2fd911);});}[_0x43f8b2(0x211)](_0x412d78,_0x331f4e){const _0x350dd5=_0x43f8b2;for(const _0x4e5274 of this[_0x350dd5(0x1fb)]){const _0x5eb4fe=_0x4e5274;_0x5eb4fe[_0x350dd5(0x1f1)]['id']===_0x412d78&&_0x5eb4fe[_0x350dd5(0x211)](_0x331f4e);}}[_0x43f8b2(0x210)](_0xf8c410,_0x109f20){const _0x39d370=_0x43f8b2;this[_0x39d370(0x1ff)](_0x39d370(0x20f),{'source':_0xf8c410,'resource':_0x109f20});}}
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
- const _0x4ad7a3=_0x5f2e;function _0x5f2e(_0xdcc99c,_0x41a6a0){const _0x483b58=_0x483b();return _0x5f2e=function(_0x5f2ede,_0x49e996){_0x5f2ede=_0x5f2ede-0x190;let _0x2b513d=_0x483b58[_0x5f2ede];return _0x2b513d;},_0x5f2e(_0xdcc99c,_0x41a6a0);}(function(_0x5bfa4f,_0x37ae70){const _0x32f0bf=_0x5f2e,_0xb33296=_0x5bfa4f();while(!![]){try{const _0x4f598d=-parseInt(_0x32f0bf(0x197))/0x1*(-parseInt(_0x32f0bf(0x1ae))/0x2)+parseInt(_0x32f0bf(0x195))/0x3*(-parseInt(_0x32f0bf(0x1a6))/0x4)+-parseInt(_0x32f0bf(0x1a4))/0x5*(-parseInt(_0x32f0bf(0x1a3))/0x6)+parseInt(_0x32f0bf(0x19a))/0x7*(-parseInt(_0x32f0bf(0x1b3))/0x8)+parseInt(_0x32f0bf(0x19b))/0x9+parseInt(_0x32f0bf(0x1b7))/0xa*(-parseInt(_0x32f0bf(0x1a0))/0xb)+parseInt(_0x32f0bf(0x19e))/0xc;if(_0x4f598d===_0x37ae70)break;else _0xb33296['push'](_0xb33296['shift']());}catch(_0x490b7f){_0xb33296['push'](_0xb33296['shift']());}}}(_0x483b,0xe6c51));import{View as _0x153dfa,ViewCollection as _0x20042d}from'ckeditor5/src/ui.js';import{uid as _0x3e6765}from'ckeditor5/src/utils.js';import{AIChatContextResourcesListView as _0x2e46ba}from'./aichatcontextresourceslistview.js';function _0x483b(){const _0x5c6342=['_source','ck-hidden','20YNJVWW','isLoading','highlightText','render','_latestLoadResourcesUid','fire','loadResources','_createResourcesListView','set','div','source','_skeletonLoader','_searchInputVisibleFrom','loadSourceResources','updateResourceState','_createSearchView','addResourceToContext','aiChatResources','3XwjQeD','has','152319eJMCtY','setResources','bindTemplate','2370515WMnbjZ','99603QbWYsh','children','useDefaultFiltering','21607692PyhpNl','delegate','6579705pIzgwl','_resourcesListView','ck-ai-chat-resources','10269474eGCcPn','5CVsgOc','length','5728168LEHMcJ','setTemplate','extendTemplate','_createSearchSection','locale','_createSkeletonView','ck\x20ck-search','searchInputVisibleFrom','14txsBcX','search','_searchSection','add','getQuery','24zYgNAB','_searchView'];_0x483b=function(){return _0x5c6342;};return _0x483b();}import{AIChatContextResourcesSearchInputView as _0x24f7ee}from'./aichatresourcessearchinputview.js';import{AISkeletonView as _0x2c6b7b,SKELETON_DEFINITIONS as _0x2b42e7}from'../../../../aicore/ui/aiskeleton.js';export class AIChatContextResourcesView extends _0x153dfa{[_0x4ad7a3(0x1b4)];[_0x4ad7a3(0x1b0)];[_0x4ad7a3(0x1c3)];[_0x4ad7a3(0x1a1)];[_0x4ad7a3(0x1c2)];[_0x4ad7a3(0x1b5)];[_0x4ad7a3(0x19c)];[_0x4ad7a3(0x1bb)]=null;constructor(_0x4ef2f4,_0x35caeb){const _0x166d2b=_0x4ad7a3;super(_0x4ef2f4),this[_0x166d2b(0x1b5)]=_0x35caeb[_0x166d2b(0x1c1)],this[_0x166d2b(0x1c3)]=_0x35caeb[_0x166d2b(0x1ad)]??0x7,this[_0x166d2b(0x1bf)](_0x166d2b(0x1b8),!0x0),this[_0x166d2b(0x1b4)]=this[_0x166d2b(0x192)](),this[_0x166d2b(0x1b0)]=this[_0x166d2b(0x1a9)](),this[_0x166d2b(0x1a1)]=this[_0x166d2b(0x1be)](),this[_0x166d2b(0x1c2)]=this[_0x166d2b(0x1ab)](),this[_0x166d2b(0x19c)]=new _0x20042d([this[_0x166d2b(0x1c2)],this[_0x166d2b(0x1a1)]]),this[_0x166d2b(0x1a7)]({'tag':_0x166d2b(0x1c0),'attributes':{'class':_0x166d2b(0x1a2)},'children':this[_0x166d2b(0x19c)]});}[_0x4ad7a3(0x192)](){const _0x104089=_0x4ad7a3;return new _0x24f7ee(this[_0x104089(0x1aa)]);}[_0x4ad7a3(0x1a9)](){const _0x3b7541=_0x4ad7a3,_0x38cbb0=new _0x153dfa(this[_0x3b7541(0x1aa)]);return _0x38cbb0[_0x3b7541(0x1a7)]({'tag':_0x3b7541(0x1c0),'attributes':{'class':_0x3b7541(0x1ac)},'children':[this[_0x3b7541(0x1b4)]]}),this[_0x3b7541(0x1b4)]['on'](_0x3b7541(0x1af),(_0x4b738d,_0x21fe20)=>{const _0x4abbba=_0x3b7541;this[_0x4abbba(0x1bd)](_0x21fe20),this[_0x4abbba(0x1b5)][_0x4abbba(0x19d)]&&this[_0x4abbba(0x1a1)][_0x4abbba(0x1b9)](_0x21fe20);}),_0x38cbb0;}[_0x4ad7a3(0x1be)](){const _0x1d8e82=_0x4ad7a3,_0x1d2c46=new _0x2e46ba(this[_0x1d8e82(0x1aa)],this[_0x1d8e82(0x1b5)]);return _0x1d2c46[_0x1d8e82(0x19f)](_0x1d8e82(0x193))['to'](this),_0x1d2c46[_0x1d8e82(0x1a8)]({'attributes':{'class':this[_0x1d8e82(0x199)]['if'](_0x1d8e82(0x1b8),_0x1d8e82(0x1b6))}}),_0x1d2c46;}[_0x4ad7a3(0x1ab)](){const _0x1d429a=_0x4ad7a3,_0x193d28=new _0x2c6b7b(this[_0x1d429a(0x1aa)],_0x2b42e7[_0x1d429a(0x194)]);return _0x193d28[_0x1d429a(0x1a8)]({'attributes':{'class':[this[_0x1d429a(0x199)]['if'](_0x1d429a(0x1b8),_0x1d429a(0x1b6),_0x507f33=>!_0x507f33)]}}),_0x193d28;}[_0x4ad7a3(0x1ba)](){const _0x3b1bb5=_0x4ad7a3;super[_0x3b1bb5(0x1ba)](),this[_0x3b1bb5(0x1bd)]('');}[_0x4ad7a3(0x1bd)](_0x77ac64){const _0x119ac4=_0x4ad7a3,_0x5a432d=_0x3e6765();this[_0x119ac4(0x1bb)]=_0x5a432d,this[_0x119ac4(0x1bc)](_0x119ac4(0x190),{'sourceId':this[_0x119ac4(0x1b5)]['id'],'query':_0x77ac64,'uid':_0x5a432d}),this[_0x119ac4(0x1b8)]=!0x0;}[_0x4ad7a3(0x198)](_0xd465f6,_0x158320){const _0x8c9ed8=_0x4ad7a3;if(_0x158320&&_0x158320!==this[_0x8c9ed8(0x1bb)])return;const _0x23b31e=this[_0x8c9ed8(0x1b5)][_0x8c9ed8(0x19d)]?this[_0x8c9ed8(0x1b4)][_0x8c9ed8(0x1b2)]():'';this[_0x8c9ed8(0x1a1)][_0x8c9ed8(0x198)](_0xd465f6,_0x23b31e),_0xd465f6[_0x8c9ed8(0x1a5)]>=this[_0x8c9ed8(0x1c3)]&&!this[_0x8c9ed8(0x19c)][_0x8c9ed8(0x196)](this[_0x8c9ed8(0x1b0)])&&this[_0x8c9ed8(0x19c)][_0x8c9ed8(0x1b1)](this[_0x8c9ed8(0x1b0)],0x0),requestAnimationFrame(()=>{const _0xe0418e=_0x8c9ed8;this[_0xe0418e(0x1b8)]=!0x1;});}[_0x4ad7a3(0x191)](_0xe5b0ef,_0x1e9c7d){const _0x26a446=_0x4ad7a3;this[_0x26a446(0x1a1)][_0x26a446(0x191)](_0xe5b0ef,_0x1e9c7d);}}
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 _0x3ddbbf=_0x16ae;(function(_0x2e1675,_0x5c135f){const _0x2d9f27=_0x16ae,_0x16ddb9=_0x2e1675();while(!![]){try{const _0x20a813=parseInt(_0x2d9f27(0xb0))/0x1+parseInt(_0x2d9f27(0xb2))/0x2*(-parseInt(_0x2d9f27(0xa2))/0x3)+parseInt(_0x2d9f27(0xab))/0x4*(parseInt(_0x2d9f27(0xb8))/0x5)+parseInt(_0x2d9f27(0xb6))/0x6+parseInt(_0x2d9f27(0xbd))/0x7+-parseInt(_0x2d9f27(0xc5))/0x8*(-parseInt(_0x2d9f27(0xb1))/0x9)+-parseInt(_0x2d9f27(0xbe))/0xa;if(_0x20a813===_0x5c135f)break;else _0x16ddb9['push'](_0x16ddb9['shift']());}catch(_0x3a324f){_0x16ddb9['push'](_0x16ddb9['shift']());}}}(_0x560e,0x7628a));import{HighlightedTextView as _0x175cd2,IconView as _0x3a0b27,ListItemView as _0x276cc2}from'ckeditor5/src/ui.js';function _0x16ae(_0x24d357,_0x1522c4){const _0x560eb1=_0x560e();return _0x16ae=function(_0x16aedb,_0x451dad){_0x16aedb=_0x16aedb-0xa0;let _0x2b5616=_0x560eb1[_0x16aedb];return _0x2b5616;},_0x16ae(_0x24d357,_0x1522c4);}import{escapeRegExp as _0x568ce1}from'es-toolkit/compat';import{AIContextItemType as _0x1e3335}from'../../../../aicore/model/aicontext.js';import{IconFileUpload as _0x324fd8,IconCheck as _0x5d4310,IconDocument as _0x45ae3b,IconDocumentOutline as _0x2027e5,IconLink as _0x2e6704}from'@ckeditor/ckeditor5-icons';const Jr=_0x3ddbbf(0xc2),Kr=_0x3ddbbf(0xb7),Mr=_0x3ddbbf(0xa6),Nr=_0x3ddbbf(0xc6);function _0x560e(){const _0xa620b8=['text','isInContext','DOCUMENT','_updateIcon','6248228DMPngi','10260410AKAmIS','highlightText','_createTitleView','FILE','ck-ai-chat-resources__item','div','ck-hidden','8bdpmpY','ck-ai-chat-resources__item__icon','trim','_titleView','_iconView','extendTemplate','type','execute','label','459BqQjxX','TEXT','updateResourceState','getResourceIcon','ck-ai-chat-resources__item-title','content','_setupTemplate','setTemplate','isVisible','40HTPkIn','span','URL','bindTemplate','_createIconView','633942TdMUXk','2488257QNThug','7702kFmZpE','resource','set','render','151038gLRvbJ','ck-ai-chat-resources__item--in-context','135515FHBYpI'];_0x560e=function(){return _0xa620b8;};return _0x560e();}export class AIChatResourceListItemView extends _0x276cc2{[_0x3ddbbf(0xb3)];[_0x3ddbbf(0xc8)];[_0x3ddbbf(0xc9)];constructor(_0x424c0e,_0x40c779){const _0x2ee34b=_0x3ddbbf;super(_0x424c0e),this[_0x2ee34b(0xb3)]=_0x40c779,this[_0x2ee34b(0xb4)](_0x2ee34b(0xba),!!_0x40c779[_0x2ee34b(0xba)]),this[_0x2ee34b(0xc8)]=this[_0x2ee34b(0xc0)](),this[_0x2ee34b(0xc9)]=this[_0x2ee34b(0xaf)](),this[_0x2ee34b(0xa8)]();}[_0x3ddbbf(0xb5)](){const _0x2f55ce=_0x3ddbbf;super[_0x2f55ce(0xb5)]();}[_0x3ddbbf(0xa5)](_0x1671f6){const _0x15bc2f=_0x3ddbbf;if(_0x1671f6[_0x15bc2f(0xba)])return _0x5d4310;switch(_0x1671f6[_0x15bc2f(0xcb)]){case _0x1e3335[_0x15bc2f(0xbb)]:return _0x45ae3b;case _0x1e3335[_0x15bc2f(0xad)]:return _0x2e6704;case _0x1e3335[_0x15bc2f(0xc1)]:case _0x1e3335[_0x15bc2f(0xa3)]:return _0x324fd8;default:return _0x2027e5;}}[_0x3ddbbf(0xbf)](_0x2da378){const _0x586e5c=_0x3ddbbf;if(!_0x2da378||''===_0x2da378[_0x586e5c(0xc7)]())return void this[_0x586e5c(0xc8)][_0x586e5c(0xbf)](null);const _0x504ddf=new RegExp(_0x568ce1(_0x2da378),'gi');this[_0x586e5c(0xc8)][_0x586e5c(0xbf)](_0x504ddf);}[_0x3ddbbf(0xa4)](_0x45f381){const _0xbe0af8=_0x3ddbbf;this[_0xbe0af8(0xb3)][_0xbe0af8(0xba)]=_0x45f381,this[_0xbe0af8(0xba)]=_0x45f381,this[_0xbe0af8(0xbc)]();}[_0x3ddbbf(0xc0)](){const _0x2dabdb=_0x3ddbbf,_0x2333ff=new _0x175cd2();return _0x2333ff[_0x2dabdb(0xb9)]=this[_0x2dabdb(0xb3)][_0x2dabdb(0xa1)],_0x2333ff[_0x2dabdb(0xca)]({'tag':_0x2dabdb(0xac),'attributes':{'class':[Mr]}}),_0x2333ff;}[_0x3ddbbf(0xaf)](){const _0x47b14d=_0x3ddbbf,_0x5c3e96=new _0x3a0b27();return _0x5c3e96[_0x47b14d(0xa7)]=this[_0x47b14d(0xa5)](this[_0x47b14d(0xb3)]),_0x5c3e96;}[_0x3ddbbf(0xa8)](){const _0x1cb02a=_0x3ddbbf,_0x2eb580=this[_0x1cb02a(0xae)];this[_0x1cb02a(0xa9)]({'tag':_0x1cb02a(0xc3),'attributes':{'class':[Jr,_0x2eb580['if'](_0x1cb02a(0xaa),_0x1cb02a(0xc4),_0x5591eb=>!_0x5591eb),_0x2eb580['if'](_0x1cb02a(0xba),Kr)]},'children':[{'tag':_0x1cb02a(0xc3),'attributes':{'class':[Nr]},'children':[this[_0x1cb02a(0xc9)]]},this[_0x1cb02a(0xc8)]],'on':{'click':_0x2eb580['to'](_0x1cb02a(0xa0))}});}[_0x3ddbbf(0xbc)](){const _0x1af440=_0x3ddbbf;this[_0x1af440(0xc9)][_0x1af440(0xa7)]=this[_0x1af440(0xa5)](this[_0x1af440(0xb3)]);}}
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 _0x13138d=_0x1917;function _0x1917(_0xb2ba97,_0x379eb9){const _0x529ca4=_0x529c();return _0x1917=function(_0x191737,_0x5bda36){_0x191737=_0x191737-0x98;let _0x238fab=_0x529ca4[_0x191737];return _0x238fab;},_0x1917(_0xb2ba97,_0x379eb9);}(function(_0x3da971,_0x33fa93){const _0x16c511=_0x1917,_0x157112=_0x3da971();while(!![]){try{const _0x2358d7=-parseInt(_0x16c511(0xb0))/0x1+-parseInt(_0x16c511(0xcf))/0x2*(parseInt(_0x16c511(0xd4))/0x3)+parseInt(_0x16c511(0xd1))/0x4*(-parseInt(_0x16c511(0xbb))/0x5)+parseInt(_0x16c511(0xac))/0x6+-parseInt(_0x16c511(0xa3))/0x7+parseInt(_0x16c511(0xc2))/0x8*(parseInt(_0x16c511(0xcb))/0x9)+parseInt(_0x16c511(0xcd))/0xa*(parseInt(_0x16c511(0xb6))/0xb);if(_0x2358d7===_0x33fa93)break;else _0x157112['push'](_0x157112['shift']());}catch(_0x413689){_0x157112['push'](_0x157112['shift']());}}}(_0x529c,0x3b137));function _0x529c(){const _0x55cb00=['isAnyResourceBalloonVisible','onBalloonClosed','81ScPSNQ','destroy','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','populateSourceResourceBalloon','_setupSingleResourceBalloonClickOutsideHandler','isVisible','_sourceResourceBalloons','getTargetElement','execute','_createBackButton','_config','onResourceSelected','show','213570frVDeU','resource','set','closeSourceResourceBalloon','addResourceToContext','once','ck-ai-chat-context-controls__source-balloon-panel','ck-button-icon\x20ck-button-back','children','605964ivwDOI','onBackToContext','delete','get','10528feiHSl','extendTemplate','showSourceResourcesBalloon','loadSourceResources','getLimiterElement','content','2660614CJwkHK','_bodyCollection','source','values','_createBalloonHeader','739190OfwIUv','add','label','searchInputVisibleFrom','element','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_source','clear','147464VEiyNH','updateResourceState','_createSourceResourceBalloonPanel','onLoadSourceResources','_addSourceResourceContent','_createBalloonResourcesView','_getResourcesViewFromBalloon','_locale','pin','9YWYBQV','change:isLoading','40iVsWPS','setResources','26696BkRUDQ','hide','12EYbIUS'];_0x529c=function(){return _0x55cb00;};return _0x529c();}import{BalloonPanelView as _0x141d2a,ButtonView as _0x559218,clickOutsideHandler as _0x2c253a,FormHeaderView as _0x470538}from'ckeditor5/src/ui.js';import{IconPreviousArrow as _0x66f9c8}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x56bf7c}from'../../../../aicore/utils/common-translations.js';import{AIChatContextResourcesView as _0x3eea45}from'./aichatcontextresourcesview.js';const Bc=_0x13138d(0xa9),_c=_0x13138d(0xaa),mc=_0x13138d(0xc0);export class AIChatResourcesBalloonView{[_0x13138d(0x9c)]=new Map();[_0x13138d(0xb7)];[_0x13138d(0xc9)];[_0x13138d(0xa0)];constructor(_0x5c4681,_0x144680,_0x17ddef){const _0x557d9f=_0x13138d;this[_0x557d9f(0xc9)]=_0x5c4681,this[_0x557d9f(0xb7)]=_0x144680,this[_0x557d9f(0xa0)]=_0x17ddef;}[_0x13138d(0xb2)]({source:_0x122728,withBackButton:_0x4ba573}){const _0x4fa21b=_0x13138d;let _0x5a1405=this[_0x4fa21b(0x9c)][_0x4fa21b(0xaf)](_0x122728['id']);_0x5a1405||(_0x5a1405=this[_0x4fa21b(0xc4)](),this[_0x4fa21b(0x9c)][_0x4fa21b(0xa5)](_0x122728['id'],_0x5a1405),this[_0x4fa21b(0x9a)](_0x5a1405)),this[_0x4fa21b(0xc6)]({'balloonPanel':_0x5a1405,'source':_0x122728,'withBackButton':_0x4ba573}),_0x5a1405[_0x4fa21b(0xa2)]();const _0x7e02c8=this[_0x4fa21b(0xa0)][_0x4fa21b(0x9d)]();_0x7e02c8&&_0x5a1405[_0x4fa21b(0xca)]({'target':_0x7e02c8,'limiter':this[_0x4fa21b(0xa0)][_0x4fa21b(0xb4)]()});}[_0x13138d(0x99)](_0x2818e2,_0x316fce,_0x17e74b){const _0x2d80d3=_0x13138d,_0x552728=this[_0x2d80d3(0x9c)][_0x2d80d3(0xaf)](_0x2818e2);if(!_0x552728)return;const _0xbec13b=this[_0x2d80d3(0xc8)](_0x552728);_0xbec13b&&(_0xbec13b[_0x2d80d3(0xce)](_0x316fce,_0x17e74b),_0xbec13b[_0x2d80d3(0xa8)](_0x2d80d3(0xcc),()=>{const _0x1b29d5=_0x2d80d3;_0x552728[_0x1b29d5(0xca)]({'target':this[_0x1b29d5(0xa0)][_0x1b29d5(0x9d)](),'limiter':this[_0x1b29d5(0xa0)][_0x1b29d5(0xb4)]()});}));}[_0x13138d(0xa6)](_0x37ba7a){const _0x16013e=_0x13138d,_0xcb78fb=this[_0x16013e(0x9c)][_0x16013e(0xaf)](_0x37ba7a);_0xcb78fb&&requestAnimationFrame(()=>{const _0x3e32d8=_0x16013e;_0xcb78fb[_0x3e32d8(0xd0)](),this[_0x3e32d8(0x9c)][_0x3e32d8(0xae)](_0x37ba7a),this[_0x3e32d8(0xa0)][_0x3e32d8(0xd3)]();});}[_0x13138d(0xd2)](){const _0x212394=_0x13138d;for(const _0x4fd4bc of this[_0x212394(0x9c)][_0x212394(0xb9)]())if(_0x4fd4bc[_0x212394(0x9b)])return!0x0;return!0x1;}[_0x13138d(0xc3)](_0x27ee3a,_0x2bc053,_0x52f300){const _0x2acb0c=_0x13138d,_0x2ed12e=this[_0x2acb0c(0x9c)][_0x2acb0c(0xaf)](_0x27ee3a);if(!_0x2ed12e||!_0x2ed12e[_0x2acb0c(0x9b)])return;const _0x164d0c=this[_0x2acb0c(0xa0)][_0x2acb0c(0x9d)]();if(!_0x164d0c)return;_0x2ed12e[_0x2acb0c(0xca)]({'target':_0x164d0c,'limiter':this[_0x2acb0c(0xa0)][_0x2acb0c(0xb4)]()});const _0x59b459=this[_0x2acb0c(0xc8)](_0x2ed12e);_0x59b459&&_0x59b459[_0x2acb0c(0xc3)](_0x2bc053,_0x52f300);}[_0x13138d(0xd5)](){const _0xb7ec34=_0x13138d;for(const _0x3d3984 of this[_0xb7ec34(0x9c)][_0xb7ec34(0xb9)]())_0x3d3984[_0xb7ec34(0xd5)]();this[_0xb7ec34(0x9c)][_0xb7ec34(0xc1)]();}[_0x13138d(0xc4)](){const _0x582a64=_0x13138d,_0x3f2412=new _0x141d2a(this[_0x582a64(0xc9)]);return _0x3f2412[_0x582a64(0xb1)]({'attributes':{'class':Bc}}),this[_0x582a64(0xb7)][_0x582a64(0xbc)](_0x3f2412),_0x3f2412;}[_0x13138d(0xc6)]({balloonPanel:_0x1fd5d2,source:_0x2794c4,withBackButton:_0x56569d}){const _0x35837b=_0x13138d;_0x1fd5d2[_0x35837b(0xb5)][_0x35837b(0xc1)]();const _0x44dd31=this[_0x35837b(0xba)]({'balloonPanel':_0x1fd5d2,'source':_0x2794c4,'withBackButton':_0x56569d});_0x1fd5d2[_0x35837b(0xb5)][_0x35837b(0xbc)](_0x44dd31);const _0x5492ce=this[_0x35837b(0xc7)](_0x2794c4);_0x1fd5d2[_0x35837b(0xb5)][_0x35837b(0xbc)](_0x5492ce);}[_0x13138d(0xba)]({balloonPanel:_0x785d75,source:_0x359c0e,withBackButton:_0x266d3f}){const _0x5cd2e9=_0x13138d,_0x163df6=new _0x470538(this[_0x5cd2e9(0xc9)],{'label':_0x359c0e[_0x5cd2e9(0xbd)],'class':mc});return _0x266d3f&&_0x163df6[_0x5cd2e9(0xab)][_0x5cd2e9(0xbc)](this[_0x5cd2e9(0x9f)](_0x785d75),0x0),_0x163df6;}[_0x13138d(0x9f)](_0x428ade){const _0x1e433a=_0x13138d,_0x299d0e=new _0x559218(this[_0x1e433a(0xc9)]);return _0x299d0e[_0x1e433a(0xa5)]({'icon':_0x66f9c8,'tooltip':_0x56bf7c(this[_0x1e433a(0xc9)],_0x1e433a(0x98)),'tooltipPosition':'n','class':_c}),_0x299d0e['on'](_0x1e433a(0x9e),()=>{const _0x9fee7e=_0x1e433a;_0x428ade[_0x9fee7e(0xd0)](),this[_0x9fee7e(0xa0)][_0x9fee7e(0xad)]();}),_0x299d0e;}[_0x13138d(0xc7)](_0x283bcc){const _0x24c619=_0x13138d,_0x2cfa02=new _0x3eea45(this[_0x24c619(0xc9)],{'source':_0x283bcc,'searchInputVisibleFrom':this[_0x24c619(0xa0)][_0x24c619(0xbe)]});return _0x2cfa02['on'](_0x24c619(0xb3),(_0x53f7b1,_0x13b6ae)=>{const _0x31deab=_0x24c619;this[_0x31deab(0xa0)][_0x31deab(0xc5)](_0x13b6ae);}),_0x2cfa02['on'](_0x24c619(0xa7),(_0x4eefe4,_0x3f60d1)=>{const _0x3830aa=_0x24c619;this[_0x3830aa(0xa0)][_0x3830aa(0xa1)](_0x3f60d1[_0x3830aa(0xb8)],_0x3f60d1[_0x3830aa(0xa4)]),this[_0x3830aa(0xa6)](_0x283bcc['id']);}),_0x2cfa02;}[_0x13138d(0xc8)](_0x2aa10c){const _0x398f33=_0x13138d,_0x338bee=_0x2aa10c[_0x398f33(0xb5)][_0x398f33(0xaf)](0x1);return _0x338bee instanceof _0x3eea45?_0x338bee:null;}[_0x13138d(0x9a)](_0x12870e){const _0x82c853=_0x13138d;_0x2c253a({'emitter':_0x12870e,'contextElements':[_0x12870e[_0x82c853(0xbf)]],'callback':()=>{const _0x36790a=_0x82c853;_0x12870e[_0x36790a(0xd0)](),this[_0x36790a(0xa0)][_0x36790a(0xd3)]();},'activator':()=>_0x12870e[_0x82c853(0x9b)]});}}
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)]});}}