@ckeditor/ckeditor5-ai 47.6.2 → 47.7.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (318) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +5 -5
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +15 -15
  150. package/src/aiactions/aiactions.js +1 -1
  151. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  152. package/src/aiactions/model/aiactionsreply.js +1 -1
  153. package/src/aiassistant/adapters/aiadapter.js +1 -1
  154. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  155. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  156. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  157. package/src/aiassistant/aiassistant.js +1 -1
  158. package/src/aiassistant/aiassistantediting.js +1 -1
  159. package/src/aiassistant/aiassistantui.js +1 -1
  160. package/src/aiassistant/legacyerrors.js +1 -1
  161. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  162. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  163. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  164. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  165. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  166. package/src/aiassistant/ui/form/aiformview.js +1 -1
  167. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  168. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  169. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  170. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  171. package/src/aiassistant/utils/common-translations.js +1 -1
  172. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  173. package/src/aiballoon/aiballoon.js +1 -1
  174. package/src/aiballoon/ui/aiballoonview.js +1 -1
  175. package/src/aichat/aichat.js +1 -1
  176. package/src/aichat/aichatballoon.js +1 -1
  177. package/src/aichat/aichatcontroller.js +1 -1
  178. package/src/aichat/aichatui.js +1 -1
  179. package/src/aichat/model/aichatcontext.js +1 -1
  180. package/src/aichat/model/aichatconversation.js +1 -1
  181. package/src/aichat/model/aichatinteraction.js +1 -1
  182. package/src/aichat/ui/aichatballoonview.js +1 -1
  183. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  184. package/src/aichat/ui/aichatfeedview.js +1 -1
  185. package/src/aichat/ui/aichatheaderview.js +1 -1
  186. package/src/aichat/ui/aichatview.js +1 -1
  187. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  188. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  189. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  190. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  191. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  192. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  193. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  194. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  195. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  196. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  197. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  198. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  199. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  200. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  201. package/src/aichat/ui/feed/aichatfeedcustomelementview.js +1 -1
  202. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  203. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  204. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  205. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  206. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  207. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  208. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  209. package/src/aichat/utils/eventnames.js +1 -1
  210. package/src/aichat/utils/promisequeue.js +1 -1
  211. package/src/aichathistory/aichathistory.js +1 -1
  212. package/src/aichathistory/aichathistorycontroller.js +1 -1
  213. package/src/aichathistory/aichathistoryui.js +1 -1
  214. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  215. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  216. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  217. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  218. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  219. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  220. package/src/aichatshortcuts/aichatshortcuts.js +1 -1
  221. package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
  222. package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
  223. package/src/aicore/aiconnector.js +1 -1
  224. package/src/aicore/aiediting.js +1 -1
  225. package/src/aicore/model/aicapabilities.js +1 -1
  226. package/src/aicore/model/aicontext.js +1 -1
  227. package/src/aicore/model/aiinteraction.js +1 -1
  228. package/src/aicore/model/aimodels.js +1 -1
  229. package/src/aicore/model/aireply.js +1 -1
  230. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  231. package/src/aicore/pipeline/airesponseparser.js +2 -2
  232. package/src/aicore/ui/aidisclaimerview.js +1 -1
  233. package/src/aicore/ui/aiskeleton.js +1 -1
  234. package/src/aicore/ui/aispinner.js +1 -1
  235. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  236. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  237. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  238. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
  239. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
  240. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
  241. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  242. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  243. package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
  244. package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
  245. package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
  246. package/src/aicore/utils/common-translations.js +1 -1
  247. package/src/aicore/utils/createresizebutton.js +1 -1
  248. package/src/aicore/utils/documentposition.js +1 -1
  249. package/src/aicore/utils/documentrange.js +1 -1
  250. package/src/aicore/utils/eventnames.js +1 -1
  251. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  252. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  253. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  254. package/src/aicore/utils/htmlparser.js +1 -1
  255. package/src/aicore/utils/htmlstreamer.js +1 -1
  256. package/src/aicore/utils/scrollmanager.js +1 -1
  257. package/src/aieditorintegration/aieditorintegration.js +1 -1
  258. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  259. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  260. package/src/aiquickactions/aiquickactions.js +1 -1
  261. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  262. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  263. package/src/aiquickactions/aiquickactionsui.js +1 -1
  264. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  265. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  266. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  267. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
  268. package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
  269. package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
  270. package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
  271. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  272. package/src/aireviewcore/aireviewcorecontroller.js +1 -1
  273. package/src/aireviewcore/aireviewcoreediting.js +1 -1
  274. package/src/aireviewcore/aireviewcoreui.js +1 -1
  275. package/src/aireviewcore/model/aireviewcheck.js +1 -1
  276. package/src/aireviewcore/model/aireviewchecklist.js +1 -1
  277. package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
  278. package/src/aireviewcore/model/aireviewcheckresultchange.js +1 -1
  279. package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
  280. package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
  281. package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
  282. package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
  283. package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
  284. package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
  285. package/src/aireviewcore/ui/aireviewcoregeneralerrorview.js +1 -1
  286. package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
  287. package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
  288. package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
  289. package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
  290. package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
  291. package/src/aireviewcore/ui/aireviewcoreview.js +1 -1
  292. package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
  293. package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +1 -1
  294. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  295. package/src/aireviewmode/aireviewmode.js +1 -1
  296. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  297. package/src/aireviewmode/aireviewmodeui.js +1 -1
  298. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  299. package/src/aireviewmode/model/aireviewcheckextra.js +1 -1
  300. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  301. package/src/aireviewmode/model/aireviewextracheckrun.js +1 -1
  302. package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
  303. package/src/aitabs/aitabs.js +1 -1
  304. package/src/aitabs/aitabsmainview.js +1 -1
  305. package/src/aitabs/tabs/aitabsview.js +1 -1
  306. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  307. package/src/aitabs/tabs/tabpanelview.js +1 -1
  308. package/src/aitranslate/aitranslate.js +1 -1
  309. package/src/aitranslate/aitranslatecontroller.js +1 -1
  310. package/src/aitranslate/aitranslateui.js +1 -1
  311. package/src/aitranslate/model/aitranslatecheck.js +1 -1
  312. package/src/aitranslate/model/aitranslatechecklist.js +1 -1
  313. package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
  314. package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
  315. package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
  316. package/src/errors.js +1 -1
  317. package/src/errorsmap.js +1 -1
  318. package/src/index.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3bf3e7=_0x156e;function _0x156e(_0x194786,_0x4d3ad0){const _0x475796=_0x4757();return _0x156e=function(_0x156ed6,_0x5a17a2){_0x156ed6=_0x156ed6-0x13d;let _0x4870bb=_0x475796[_0x156ed6];return _0x4870bb;},_0x156e(_0x194786,_0x4d3ad0);}(function(_0x46d732,_0x3f9009){const _0x2f23db=_0x156e,_0x48da3c=_0x46d732();while(!![]){try{const _0x56b39f=-parseInt(_0x2f23db(0x152))/0x1+-parseInt(_0x2f23db(0x16b))/0x2*(-parseInt(_0x2f23db(0x17d))/0x3)+parseInt(_0x2f23db(0x168))/0x4*(parseInt(_0x2f23db(0x184))/0x5)+parseInt(_0x2f23db(0x171))/0x6*(parseInt(_0x2f23db(0x172))/0x7)+parseInt(_0x2f23db(0x178))/0x8+-parseInt(_0x2f23db(0x14c))/0x9+-parseInt(_0x2f23db(0x158))/0xa;if(_0x56b39f===_0x3f9009)break;else _0x48da3c['push'](_0x48da3c['shift']());}catch(_0x11f90f){_0x48da3c['push'](_0x48da3c['shift']());}}}(_0x4757,0x9105a));function _0x4757(){const _0x245e8c=['forEach','clear','210454VZIasp','length','withBackButton','_createBackButton','trim','stop','6752598wUyZiJ','7zaByuJ','_updateConfirmButtonState','setError','keystrokes','_focusables','confirmButton','7454432xTRrCO','div','add','fire','AI_CHAT_CONTEXT_URL_ADD_URL','12fzlNqi','_createUrlInputField','cancel','ck-labeled-field-view_empty','shift+tab','_createConfirmButton','ck-button-icon','25gqfmYy','focus','submit','_setupTemplate','listenTo','destroy','getValue','focusCycler','locale','isEnabled','AI_CHAT_CONTEXT_URL_PLACEHOLDER','form','input','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','_handleSubmit','setTemplate','render','element','change:withBackButton','ck-ai-chat-context-controls__url-input-section','2177865VTQfBZ','refreshBalloon','backButton','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','set','AI_CHAT_CONTEXT_URL_LABEL','70252uazaGD','createCollection','\x20ck-hidden','clearError','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','execute','17318780JuwjIe','ck-button-icon\x20ck-button-back','children','_isValidUrl','value','submitUrl','tab','ck-ai-chat-context-controls__url-form','focusTracker','_setupEventHandlers','esc','urlInputField','fieldView','AI_CHAT_CONTEXT_URL_INVALID_ERROR','_setupKeystrokes','errorText','127984JOoHtm'];_0x4757=function(){return _0x245e8c;};return _0x4757();}import{FocusTracker as _0x1eb731,KeystrokeHandler as _0x57b663}from'ckeditor5/src/utils.js';import{ButtonView as _0x15ac1a,FocusCycler as _0x2685dd,LabeledFieldView as _0x4a4011,View as _0x40d152,FormHeaderView as _0x98cf1e,createLabeledInputText as _0x1a369a,submitHandler as _0x479eeb}from'ckeditor5/src/ui.js';import{IconCheck as _0x4290db,IconPreviousArrow as _0x32c945}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x44cd3c}from'../../../aicore/utils/common-translations.js';const oh=_0x3bf3e7(0x15f),ch=_0x3bf3e7(0x14b);export class AIChatContextPanelUrlInputView extends _0x40d152{[_0x3bf3e7(0x160)];[_0x3bf3e7(0x175)];[_0x3bf3e7(0x176)];[_0x3bf3e7(0x13f)];[_0x3bf3e7(0x163)];[_0x3bf3e7(0x14e)];[_0x3bf3e7(0x177)];constructor(_0x40d338){const _0x26e837=_0x3bf3e7;super(_0x40d338),this[_0x26e837(0x160)]=new _0x1eb731(),this[_0x26e837(0x175)]=new _0x57b663(),this[_0x26e837(0x14e)]=this[_0x26e837(0x16e)](),this[_0x26e837(0x163)]=this[_0x26e837(0x17e)](),this[_0x26e837(0x177)]=this[_0x26e837(0x182)](),this[_0x26e837(0x176)]=this[_0x26e837(0x153)]([this[_0x26e837(0x14e)],this[_0x26e837(0x163)],this[_0x26e837(0x177)]]),this[_0x26e837(0x13f)]=new _0x2685dd({'focusables':this[_0x26e837(0x176)],'focusTracker':this[_0x26e837(0x160)],'keystrokeHandler':this[_0x26e837(0x175)],'actions':{'focusPrevious':_0x26e837(0x181),'focusNext':_0x26e837(0x15e)}}),this[_0x26e837(0x150)](_0x26e837(0x16d),!0x0),this[_0x26e837(0x187)](),this[_0x26e837(0x161)](),this[_0x26e837(0x166)]();}[_0x3bf3e7(0x148)](){const _0x47a556=_0x3bf3e7;super[_0x47a556(0x148)](),this[_0x47a556(0x176)][_0x47a556(0x169)](_0x11e94f=>{const _0x826dad=_0x47a556;this[_0x826dad(0x160)][_0x826dad(0x17a)](_0x11e94f[_0x826dad(0x149)]),this[_0x826dad(0x175)][_0x826dad(0x188)](_0x11e94f[_0x826dad(0x149)]);}),_0x479eeb({'view':this}),this[_0x47a556(0x185)]();}[_0x3bf3e7(0x13d)](){const _0x1adf04=_0x3bf3e7;super[_0x1adf04(0x13d)](),this[_0x1adf04(0x160)][_0x1adf04(0x13d)](),this[_0x1adf04(0x175)][_0x1adf04(0x13d)]();}[_0x3bf3e7(0x185)](){const _0x26ffe1=_0x3bf3e7;this[_0x26ffe1(0x163)][_0x26ffe1(0x185)]();}[_0x3bf3e7(0x13e)](){const _0x5942f7=_0x3bf3e7;return this[_0x5942f7(0x163)][_0x5942f7(0x164)][_0x5942f7(0x149)]?.[_0x5942f7(0x15c)]?.[_0x5942f7(0x16f)]()||'';}[_0x3bf3e7(0x16a)](){const _0x422e2c=_0x3bf3e7;this[_0x422e2c(0x163)][_0x422e2c(0x164)][_0x422e2c(0x149)][_0x422e2c(0x15c)]='',this[_0x422e2c(0x163)][_0x422e2c(0x167)]=null,this[_0x422e2c(0x177)][_0x422e2c(0x141)]=!0x1;}[_0x3bf3e7(0x174)](_0x562095){const _0x2ce202=_0x3bf3e7;this[_0x2ce202(0x163)][_0x2ce202(0x167)]=_0x562095,this[_0x2ce202(0x173)](),this[_0x2ce202(0x17b)](_0x2ce202(0x14d));}[_0x3bf3e7(0x155)](){const _0x23a016=_0x3bf3e7;this[_0x23a016(0x163)][_0x23a016(0x167)]=null,this[_0x23a016(0x173)]();}[_0x3bf3e7(0x16e)](){const _0x21d65e=_0x3bf3e7,_0x233d19=new _0x15ac1a(this[_0x21d65e(0x140)]);return _0x233d19[_0x21d65e(0x150)]({'icon':_0x32c945,'tooltip':_0x44cd3c(this[_0x21d65e(0x140)],_0x21d65e(0x156)),'tooltipPosition':'n','class':[_0x21d65e(0x159)]}),this['on'](_0x21d65e(0x14a),(_0x5ef3ce,_0x39d209,_0x53bcaf)=>{const _0x397ee5=_0x21d65e;_0x233d19[_0x397ee5(0x150)]({'class':[_0x397ee5(0x159)+(_0x53bcaf?'':_0x397ee5(0x154))]});}),_0x233d19;}[_0x3bf3e7(0x17e)](){const _0x3f8522=_0x3bf3e7,_0x14e1a6=new _0x4a4011(this[_0x3f8522(0x140)],_0x1a369a);return _0x14e1a6[_0x3f8522(0x150)]({'label':_0x44cd3c(this[_0x3f8522(0x140)],_0x3f8522(0x151)),'class':_0x3f8522(0x180)}),_0x14e1a6[_0x3f8522(0x164)][_0x3f8522(0x150)]({'placeholder':_0x44cd3c(this[_0x3f8522(0x140)],_0x3f8522(0x142))}),_0x14e1a6;}[_0x3bf3e7(0x182)](){const _0x501ce8=_0x3bf3e7,_0x307d87=new _0x15ac1a(this[_0x501ce8(0x140)]);return _0x307d87[_0x501ce8(0x150)]({'icon':_0x4290db,'tooltip':_0x44cd3c(this[_0x501ce8(0x140)],_0x501ce8(0x17c)),'tooltipPosition':'n','class':_0x501ce8(0x183),'type':_0x501ce8(0x186),'isEnabled':!0x1}),_0x307d87;}[_0x3bf3e7(0x187)](){const _0x196255=_0x3bf3e7,_0x4c2aae=new _0x98cf1e(this[_0x196255(0x140)],{'label':_0x44cd3c(this[_0x196255(0x140)],_0x196255(0x17c)),'class':_0x196255(0x145)});_0x4c2aae[_0x196255(0x15a)][_0x196255(0x17a)](this[_0x196255(0x14e)],0x0),this[_0x196255(0x147)]({'tag':_0x196255(0x143),'attributes':{'class':oh,'tabindex':'-1'},'children':[_0x4c2aae,{'tag':_0x196255(0x179),'attributes':{'class':ch},'children':[this[_0x196255(0x163)],this[_0x196255(0x177)]]}]});}[_0x3bf3e7(0x161)](){const _0x24a58c=_0x3bf3e7;this[_0x24a58c(0x14e)]['on'](_0x24a58c(0x157),()=>{const _0x3953ca=_0x24a58c;this[_0x3953ca(0x16a)](),this[_0x3953ca(0x17b)](_0x3953ca(0x17f));}),this[_0x24a58c(0x163)][_0x24a58c(0x164)]['on'](_0x24a58c(0x144),()=>{const _0x72eb20=_0x24a58c;this[_0x72eb20(0x155)](),this[_0x72eb20(0x173)](),this[_0x72eb20(0x17b)](_0x72eb20(0x14d));}),this['on'](_0x24a58c(0x186),_0x171bc0=>{const _0x190693=_0x24a58c;_0x171bc0[_0x190693(0x170)](),this[_0x190693(0x146)]();});}[_0x3bf3e7(0x166)](){const _0x11eb06=_0x3bf3e7;this[_0x11eb06(0x175)][_0x11eb06(0x150)](_0x11eb06(0x162),(_0x35a437,_0x53bc56)=>{const _0x5e94a4=_0x11eb06;this[_0x5e94a4(0x16a)](),this[_0x5e94a4(0x17b)](_0x5e94a4(0x17f)),_0x53bc56();});}[_0x3bf3e7(0x146)](){const _0x4cba9b=_0x3bf3e7,_0x480f39=this[_0x4cba9b(0x13e)]()[_0x4cba9b(0x16f)]();_0x480f39?this[_0x4cba9b(0x15b)](_0x480f39)?(this[_0x4cba9b(0x155)](),this[_0x4cba9b(0x17b)](_0x4cba9b(0x15d),_0x480f39)):this[_0x4cba9b(0x174)](_0x44cd3c(this[_0x4cba9b(0x140)],_0x4cba9b(0x165))):this[_0x4cba9b(0x174)](_0x44cd3c(this[_0x4cba9b(0x140)],_0x4cba9b(0x14f)));}[_0x3bf3e7(0x173)](){const _0x41b56c=_0x3bf3e7,_0x3d9dc4=this[_0x41b56c(0x13e)]()[_0x41b56c(0x16f)](),_0x3e2934=!!this[_0x41b56c(0x163)][_0x41b56c(0x167)];this[_0x41b56c(0x177)][_0x41b56c(0x141)]=_0x3d9dc4[_0x41b56c(0x16c)]>0x0&&!_0x3e2934;}[_0x3bf3e7(0x15b)](_0x57d2fe){try{return!!new URL(_0x57d2fe);}catch{return!0x1;}}}
23
+ const _0x4b1ccc=_0x4efc;(function(_0x1ef61c,_0x73663c){const _0x4e3342=_0x4efc,_0x221571=_0x1ef61c();while(!![]){try{const _0xdc292a=parseInt(_0x4e3342(0x13c))/0x1+parseInt(_0x4e3342(0x120))/0x2+-parseInt(_0x4e3342(0x131))/0x3+-parseInt(_0x4e3342(0x156))/0x4*(parseInt(_0x4e3342(0x12a))/0x5)+parseInt(_0x4e3342(0x124))/0x6+-parseInt(_0x4e3342(0x125))/0x7*(-parseInt(_0x4e3342(0x14d))/0x8)+parseInt(_0x4e3342(0x157))/0x9*(parseInt(_0x4e3342(0x151))/0xa);if(_0xdc292a===_0x73663c)break;else _0x221571['push'](_0x221571['shift']());}catch(_0x4461b0){_0x221571['push'](_0x221571['shift']());}}}(_0x3456,0x89cb7));function _0x4efc(_0x12c7a1,_0x532a75){const _0x3456b1=_0x3456();return _0x4efc=function(_0x4efcc2,_0x9acb09){_0x4efcc2=_0x4efcc2-0x11d;let _0x3eac3f=_0x3456b1[_0x4efcc2];return _0x3eac3f;},_0x4efc(_0x12c7a1,_0x532a75);}import{FocusTracker as _0x2f4b9e,KeystrokeHandler as _0x13d192}from'ckeditor5/src/utils.js';import{ButtonView as _0x53ce50,FocusCycler as _0x29db51,LabeledFieldView as _0x4fae3b,View as _0x2208dc,FormHeaderView as _0x30e19d,createLabeledInputText as _0xae5c9,submitHandler as _0x21a0fc}from'ckeditor5/src/ui.js';function _0x3456(){const _0x50b6df=['errorText','ck-button-icon\x20ck-button-back','input','_createUrlInputField','_updateConfirmButtonState','stop','ck-ai-chat-context-controls__url-input-section','trim','forEach','720540tabJfF','_isValidUrl','change:withBackButton','fire','2718162VxihAL','4570867jSXFia','destroy','form','value','AI_CHAT_CONTEXT_URL_INVALID_ERROR','5ybLWXy','urlInputField','_setupTemplate','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','clear','length','2357712KFQXPS','submitUrl','_createConfirmButton','esc','_focusables','focusTracker','ck-ai-chat-context-controls__url-form','withBackButton','createCollection','keystrokes','\x20ck-hidden','436777CQrhVM','children','submit','refreshBalloon','set','setError','setTemplate','focusCycler','render','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','execute','AI_CHAT_CONTEXT_URL_ADD_URL','AI_CHAT_CONTEXT_URL_PLACEHOLDER','_setupEventHandlers','ck-button-icon','confirmButton','element','8XJPIyX','div','listenTo','clearError','2465990LsoOJi','AI_CHAT_CONTEXT_URL_LABEL','add','backButton','_createBackButton','3197372iEIhYV','9hSoABC','isEnabled','_setupKeystrokes','_handleSubmit','cancel','focus','fieldView','tab','locale','getValue','shift+tab','ck-labeled-field-view_empty'];_0x3456=function(){return _0x50b6df;};return _0x3456();}import{IconCheck as _0x1d988e,IconPreviousArrow as _0x46c664}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x1d7c68}from'../../../aicore/utils/common-translations.js';const oh=_0x4b1ccc(0x137),ch=_0x4b1ccc(0x11d);export class AIChatContextPanelUrlInputView extends _0x2208dc{[_0x4b1ccc(0x136)];[_0x4b1ccc(0x13a)];[_0x4b1ccc(0x135)];[_0x4b1ccc(0x143)];[_0x4b1ccc(0x12b)];[_0x4b1ccc(0x154)];[_0x4b1ccc(0x14b)];constructor(_0x1d5bbf){const _0x2ab52f=_0x4b1ccc;super(_0x1d5bbf),this[_0x2ab52f(0x136)]=new _0x2f4b9e(),this[_0x2ab52f(0x13a)]=new _0x13d192(),this[_0x2ab52f(0x154)]=this[_0x2ab52f(0x155)](),this[_0x2ab52f(0x12b)]=this[_0x2ab52f(0x166)](),this[_0x2ab52f(0x14b)]=this[_0x2ab52f(0x133)](),this[_0x2ab52f(0x135)]=this[_0x2ab52f(0x139)]([this[_0x2ab52f(0x154)],this[_0x2ab52f(0x12b)],this[_0x2ab52f(0x14b)]]),this[_0x2ab52f(0x143)]=new _0x29db51({'focusables':this[_0x2ab52f(0x135)],'focusTracker':this[_0x2ab52f(0x136)],'keystrokeHandler':this[_0x2ab52f(0x13a)],'actions':{'focusPrevious':_0x2ab52f(0x161),'focusNext':_0x2ab52f(0x15e)}}),this[_0x2ab52f(0x140)](_0x2ab52f(0x138),!0x0),this[_0x2ab52f(0x12c)](),this[_0x2ab52f(0x149)](),this[_0x2ab52f(0x159)]();}[_0x4b1ccc(0x144)](){const _0x37e994=_0x4b1ccc;super[_0x37e994(0x144)](),this[_0x37e994(0x135)][_0x37e994(0x11f)](_0x2deaee=>{const _0x452be1=_0x37e994;this[_0x452be1(0x136)][_0x452be1(0x153)](_0x2deaee[_0x452be1(0x14c)]),this[_0x452be1(0x13a)][_0x452be1(0x14f)](_0x2deaee[_0x452be1(0x14c)]);}),_0x21a0fc({'view':this}),this[_0x37e994(0x15c)]();}[_0x4b1ccc(0x126)](){const _0x5020b1=_0x4b1ccc;super[_0x5020b1(0x126)](),this[_0x5020b1(0x136)][_0x5020b1(0x126)](),this[_0x5020b1(0x13a)][_0x5020b1(0x126)]();}[_0x4b1ccc(0x15c)](){const _0x3e9214=_0x4b1ccc;this[_0x3e9214(0x12b)][_0x3e9214(0x15c)]();}[_0x4b1ccc(0x160)](){const _0x1cce2f=_0x4b1ccc;return this[_0x1cce2f(0x12b)][_0x1cce2f(0x15d)][_0x1cce2f(0x14c)]?.[_0x1cce2f(0x128)]?.[_0x1cce2f(0x11e)]()||'';}[_0x4b1ccc(0x12f)](){const _0x5ce22e=_0x4b1ccc;this[_0x5ce22e(0x12b)][_0x5ce22e(0x15d)][_0x5ce22e(0x14c)][_0x5ce22e(0x128)]='',this[_0x5ce22e(0x12b)][_0x5ce22e(0x163)]=null,this[_0x5ce22e(0x14b)][_0x5ce22e(0x158)]=!0x1;}[_0x4b1ccc(0x141)](_0x558237){const _0x14865d=_0x4b1ccc;this[_0x14865d(0x12b)][_0x14865d(0x163)]=_0x558237,this[_0x14865d(0x167)](),this[_0x14865d(0x123)](_0x14865d(0x13f));}[_0x4b1ccc(0x150)](){const _0x29e9d4=_0x4b1ccc;this[_0x29e9d4(0x12b)][_0x29e9d4(0x163)]=null,this[_0x29e9d4(0x167)]();}[_0x4b1ccc(0x155)](){const _0x322c39=_0x4b1ccc,_0x5b4e37=new _0x53ce50(this[_0x322c39(0x15f)]);return _0x5b4e37[_0x322c39(0x140)]({'icon':_0x46c664,'tooltip':_0x1d7c68(this[_0x322c39(0x15f)],_0x322c39(0x12e)),'tooltipPosition':'n','class':[_0x322c39(0x164)]}),this['on'](_0x322c39(0x122),(_0x50ea0f,_0x2654d9,_0x5e6a4e)=>{const _0xd8f542=_0x322c39;_0x5b4e37[_0xd8f542(0x140)]({'class':[_0xd8f542(0x164)+(_0x5e6a4e?'':_0xd8f542(0x13b))]});}),_0x5b4e37;}[_0x4b1ccc(0x166)](){const _0x544289=_0x4b1ccc,_0x446561=new _0x4fae3b(this[_0x544289(0x15f)],_0xae5c9);return _0x446561[_0x544289(0x140)]({'label':_0x1d7c68(this[_0x544289(0x15f)],_0x544289(0x152)),'class':_0x544289(0x162)}),_0x446561[_0x544289(0x15d)][_0x544289(0x140)]({'placeholder':_0x1d7c68(this[_0x544289(0x15f)],_0x544289(0x148))}),_0x446561;}[_0x4b1ccc(0x133)](){const _0x52ae43=_0x4b1ccc,_0x46e9bc=new _0x53ce50(this[_0x52ae43(0x15f)]);return _0x46e9bc[_0x52ae43(0x140)]({'icon':_0x1d988e,'tooltip':_0x1d7c68(this[_0x52ae43(0x15f)],_0x52ae43(0x147)),'tooltipPosition':'n','class':_0x52ae43(0x14a),'type':_0x52ae43(0x13e),'isEnabled':!0x1}),_0x46e9bc;}[_0x4b1ccc(0x12c)](){const _0x107737=_0x4b1ccc,_0x3ab9de=new _0x30e19d(this[_0x107737(0x15f)],{'label':_0x1d7c68(this[_0x107737(0x15f)],_0x107737(0x147)),'class':_0x107737(0x145)});_0x3ab9de[_0x107737(0x13d)][_0x107737(0x153)](this[_0x107737(0x154)],0x0),this[_0x107737(0x142)]({'tag':_0x107737(0x127),'attributes':{'class':oh,'tabindex':'-1'},'children':[_0x3ab9de,{'tag':_0x107737(0x14e),'attributes':{'class':ch},'children':[this[_0x107737(0x12b)],this[_0x107737(0x14b)]]}]});}[_0x4b1ccc(0x149)](){const _0x25b608=_0x4b1ccc;this[_0x25b608(0x154)]['on'](_0x25b608(0x146),()=>{const _0x1e4476=_0x25b608;this[_0x1e4476(0x12f)](),this[_0x1e4476(0x123)](_0x1e4476(0x15b));}),this[_0x25b608(0x12b)][_0x25b608(0x15d)]['on'](_0x25b608(0x165),()=>{const _0x2b2468=_0x25b608;this[_0x2b2468(0x150)](),this[_0x2b2468(0x167)](),this[_0x2b2468(0x123)](_0x2b2468(0x13f));}),this['on'](_0x25b608(0x13e),_0x13690e=>{const _0xfb7446=_0x25b608;_0x13690e[_0xfb7446(0x168)](),this[_0xfb7446(0x15a)]();});}[_0x4b1ccc(0x159)](){const _0x1f0797=_0x4b1ccc;this[_0x1f0797(0x13a)][_0x1f0797(0x140)](_0x1f0797(0x134),(_0xd8e5f3,_0xbc825d)=>{const _0x387bc0=_0x1f0797;this[_0x387bc0(0x12f)](),this[_0x387bc0(0x123)](_0x387bc0(0x15b)),_0xbc825d();});}[_0x4b1ccc(0x15a)](){const _0x428bf7=_0x4b1ccc,_0x3c6e76=this[_0x428bf7(0x160)]()[_0x428bf7(0x11e)]();_0x3c6e76?this[_0x428bf7(0x121)](_0x3c6e76)?(this[_0x428bf7(0x150)](),this[_0x428bf7(0x123)](_0x428bf7(0x132),_0x3c6e76)):this[_0x428bf7(0x141)](_0x1d7c68(this[_0x428bf7(0x15f)],_0x428bf7(0x129))):this[_0x428bf7(0x141)](_0x1d7c68(this[_0x428bf7(0x15f)],_0x428bf7(0x12d)));}[_0x4b1ccc(0x167)](){const _0x2397c7=_0x4b1ccc,_0x16e26a=this[_0x2397c7(0x160)]()[_0x2397c7(0x11e)](),_0x5c536e=!!this[_0x2397c7(0x12b)][_0x2397c7(0x163)];this[_0x2397c7(0x14b)][_0x2397c7(0x158)]=_0x16e26a[_0x2397c7(0x130)]>0x0&&!_0x5c536e;}[_0x4b1ccc(0x121)](_0x2bf98e){try{return!!new URL(_0x2bf98e);}catch{return!0x1;}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4e86c9=_0x275f;(function(_0x5a2794,_0x23c12a){const _0x448981=_0x275f,_0x2913db=_0x5a2794();while(!![]){try{const _0x2a22b5=parseInt(_0x448981(0x1ab))/0x1*(parseInt(_0x448981(0x1dd))/0x2)+-parseInt(_0x448981(0x1a5))/0x3+parseInt(_0x448981(0x1d7))/0x4+parseInt(_0x448981(0x19b))/0x5*(parseInt(_0x448981(0x16b))/0x6)+-parseInt(_0x448981(0x165))/0x7*(-parseInt(_0x448981(0x19c))/0x8)+-parseInt(_0x448981(0x1bf))/0x9+parseInt(_0x448981(0x1d3))/0xa;if(_0x2a22b5===_0x23c12a)break;else _0x2913db['push'](_0x2913db['shift']());}catch(_0x2ce027){_0x2913db['push'](_0x2913db['shift']());}}}(_0x4d35,0x62dbd));import{BalloonPanelView as _0x1d98f5,ButtonView as _0x22f368,clickOutsideHandler as _0x3c3c4f,FileDialogButtonView as _0x4f2f31,IconView as _0x5bd193,View as _0x39874e}from'ckeditor5/src/ui.js';function _0x275f(_0x4ac4b0,_0x39ef2f){const _0x4d3581=_0x4d35();return _0x275f=function(_0x275f0c,_0x238442){_0x275f0c=_0x275f0c-0x160;let _0x31fa1b=_0x4d3581[_0x275f0c];return _0x31fa1b;},_0x275f(_0x4ac4b0,_0x39ef2f);}import{IconBrowseFiles as _0x266edc,IconDocument as _0xa6dda9,IconDocumentOutline as _0x5f039d,IconDropdownArrow as _0x295eb8,IconLink as _0x392b14,IconPaperClip as _0x540b31}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x422dc7}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x3c7207}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x58a455}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x388cb3}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x455e0a}from'./resources/aichatresourcesballoonview.js';function _0x4d35(){const _0x506fbd=['ck-ai-chat-context-controls__show-more-balloon-panel','_handleUrlSubmit','AI_CHAT_CONTEXT_URL_LABEL','_createContextButton','type','clearCurrentContextItems','removeContextItemChip','createCollection','ck-ai-chat-context-controls__balloon-button-source','_createAddContextBalloonPanelView','defaultPositions','_setupAllBalloonClickOutsideHandlers','ck-ai-chat-context-controls__pending-contexts','menuitem','986500ifTKUh','128SDFAzw','updateResourceState','ck-ai-chat','AI_CHAT_CONTEXT_FILE_LABEL','find','conversation','_overflowManager','render','arrowView','1027206xFlAjx','_removeContextFromCollection','hideUrlBalloonPanel','_addContextBalloonPanelView','southArrowNorthEast','show','1kGhVKE','showUrlBalloonPanel','ck-reset_all-excluded','enabled','_setBalloonPanelContent','_setupAddContextBalloonClickOutsideHandler','showAddContextBalloonPanel','ck-ai-chat-context-controls__add-context-button','hideAddContextBalloonPanel','removeContextItem','northArrowSouthWest','destroy','cancel','southArrowNorthWest','div','closeSourceResourceBalloon','label','populateSourceResourceBalloon','clear','_currentContextsChips','4973400kVMHRO','isReadOnly','done','southArrowNorth','isLoading','execute','_addUrlContent','content','loadSourceResources','_conversationContextsChips','set','__arrow','_createBalloonButton','_bindEventHandlers','reorganizeChips','clearConversationContextItems','_addContextToCollection','balloonView','buttonView','length','991390TARnZM','northArrowSouth','_createUrlBalloonPanelView','tooltip','1472612cVeQyb','ck-ai-chat-controls_context_show-more-button','bodyCollection','_createArrowView','element','get','369102ooExyc','_showSourceResourcesBalloon','addResourceToContext','isHidden','bind','sources','document','setTemplate','fire','addContextButtonView','_toggleAddContextBalloon','addUrlToContext','_createResourcesBalloonView','_handleAddContextButtonClick','_getLimiterElement','extendTemplate','isEnabled','hide','setAddContextOptions','submitUrl','_addContextBalloonConfig','isVisible','showSourceResourcesBalloon','AI_CHAT_CONTEXT_ADD_CONTEXT','pin','_createAddContextButtonView','refreshBalloon','ck-ai-chat-context-controls__url-balloon-panel','_hasExactlyOneSource','_createBaseBalloonPanel','_setupTemplate','197218TzXnnv','urls','withBackButton','add','_urlInputView','addContextItem','6QhRgOS','executeCustomItemCallback','addDocumentToContext','source','isOn','setConversationContext','overflowChips','searchInputVisibleFrom','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','icon','_urlBalloonPanelView','addFileToContext','setContainerElement','ck-ai-chat-context-chips-wrapper-balloon','body','current','setContextItemLoading','locale','files','isAnyResourceBalloonVisible','ck-ai-chat-context-controls','remove','customItems','ck-ai-chat-context-controls__add-context-balloon-panel','focus','_setupUrlBalloonClickOutsideHandler','_setAddContextButtonEnabled','_resourcesBalloonView','northArrowSouthEast','customItem','ck-ai-chat-controls-button','children','closest','ck-ai-chat-context-controls__balloon-button'];_0x4d35=function(){return _0x506fbd;};return _0x4d35();}export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x4e86c9(0x16d),_0x4e86c9(0x176),_0x4e86c9(0x1e8),_0x4e86c9(0x1df),_0x4e86c9(0x1b4),_0x4e86c9(0x1c7),_0x4e86c9(0x16c)];const Ro=_0x4e86c9(0x17f),Oo=_0x4e86c9(0x199),Uo=_0x4e86c9(0x182),Lo=_0x4e86c9(0x1b2),No=_0x4e86c9(0x161),Mo=_0x4e86c9(0x18c),Ho=_0x4e86c9(0x195),jo=_0x4e86c9(0x189),Fo=_0x4e86c9(0x178),Xo=_0x4e86c9(0x1d8),yo=_0x4e86c9(0x18d),Do=_0x4e86c9(0x19e),$o=[_0x1d98f5[_0x4e86c9(0x197)][_0x4e86c9(0x1b5)],_0x1d98f5[_0x4e86c9(0x197)][_0x4e86c9(0x1d4)],_0x1d98f5[_0x4e86c9(0x197)][_0x4e86c9(0x187)],_0x1d98f5[_0x4e86c9(0x197)][_0x4e86c9(0x1b8)],_0x1d98f5[_0x4e86c9(0x197)][_0x4e86c9(0x1c2)],_0x1d98f5[_0x4e86c9(0x197)][_0x4e86c9(0x1a9)]];export class AIChatContextPanelView extends _0x39874e{[_0x4e86c9(0x1e6)];[_0x4e86c9(0x1be)]=this[_0x4e86c9(0x194)]();[_0x4e86c9(0x1c8)]=this[_0x4e86c9(0x194)]();[_0x4e86c9(0x1a2)];[_0x4e86c9(0x1a8)];[_0x4e86c9(0x175)];[_0x4e86c9(0x169)];[_0x4e86c9(0x186)];[_0x4e86c9(0x1f1)];[_0x4e86c9(0x162)]=!0x1;[_0x4e86c9(0x1d9)];constructor(_0x7a86dd,_0x329bbd){const _0x3f48ce=_0x4e86c9;super(_0x7a86dd),this[_0x3f48ce(0x1d9)]=_0x329bbd[_0x3f48ce(0x1d9)],this[_0x3f48ce(0x1be)]=this[_0x3f48ce(0x194)](),this[_0x3f48ce(0x1c8)]=this[_0x3f48ce(0x194)](),this[_0x3f48ce(0x1e6)]=this[_0x3f48ce(0x1f6)](_0x7a86dd),this[_0x3f48ce(0x1a8)]=this[_0x3f48ce(0x196)](_0x7a86dd),this[_0x3f48ce(0x175)]=this[_0x3f48ce(0x1d5)](_0x7a86dd),this[_0x3f48ce(0x186)]=this[_0x3f48ce(0x1e9)](_0x7a86dd,_0x329bbd);const _0x3087d4={'cssClasses':{'showMoreButton':Xo,'showMoreBalloon':yo,'overflowContainer':Fo,'controlsButton':jo}};this[_0x3f48ce(0x1a2)]=new _0x58a455(_0x7a86dd,this[_0x3f48ce(0x1be)],_0x3087d4,this[_0x3f48ce(0x1d9)],this),this[_0x3f48ce(0x1f1)]={'buttonView':this[_0x3f48ce(0x1e6)],'balloonView':this[_0x3f48ce(0x1a8)],'hideMethod':this[_0x3f48ce(0x1b3)][_0x3f48ce(0x1e1)](this),'showMethod':this[_0x3f48ce(0x1b1)][_0x3f48ce(0x1e1)](this)},this[_0x3f48ce(0x164)](),this[_0x3f48ce(0x1cc)]();}[_0x4e86c9(0x1a3)](){const _0x42739c=_0x4e86c9;super[_0x42739c(0x1a3)](),this[_0x42739c(0x198)](),this[_0x42739c(0x1a2)][_0x42739c(0x177)](this[_0x42739c(0x1db)]),this[_0x42739c(0x1a2)][_0x42739c(0x1cd)]();}[_0x4e86c9(0x1b6)](){const _0x56800e=_0x4e86c9;super[_0x56800e(0x1b6)](),this[_0x56800e(0x1a2)][_0x56800e(0x1b6)](),this[_0x56800e(0x186)][_0x56800e(0x1b6)]();}[_0x4e86c9(0x16a)](_0x48fa43,_0x1ea61d){const _0xfe307=_0x4e86c9,_0x41cec1=this[_0xfe307(0x190)](_0x48fa43,_0xfe307(0x17a),!0x0,_0x1ea61d);this[_0xfe307(0x1cf)](_0x41cec1,this[_0xfe307(0x1be)]),this[_0xfe307(0x1a2)][_0xfe307(0x1cd)]();}[_0x4e86c9(0x1b4)](_0x5bfd56){const _0x366715=_0x4e86c9;this[_0x366715(0x1a6)](_0x5bfd56,this[_0x366715(0x1be)]),this[_0x366715(0x1a6)](_0x5bfd56,this[_0x366715(0x1a2)][_0x366715(0x171)]),this[_0x366715(0x1a2)][_0x366715(0x1cd)]();}[_0x4e86c9(0x17b)](_0x44e24d,_0x395d3a){const _0x4d7c3d=_0x4e86c9;let _0x493882=this[_0x4d7c3d(0x1be)][_0x4d7c3d(0x1a0)](_0x4a1f18=>_0x4a1f18['id']===_0x44e24d);_0x493882||(_0x493882=this[_0x4d7c3d(0x1a2)][_0x4d7c3d(0x171)][_0x4d7c3d(0x1a0)](_0x414f97=>_0x414f97['id']===_0x44e24d)),_0x493882&&(_0x493882[_0x4d7c3d(0x1c3)]=_0x395d3a);}[_0x4e86c9(0x170)](_0x469d21){const _0x2c958b=_0x4e86c9;this[_0x2c958b(0x1c8)][_0x2c958b(0x1bd)]();for(const _0x88cf8e of _0x469d21){const _0x5d5753=this[_0x2c958b(0x190)](_0x88cf8e,_0x2c958b(0x1a1),!0x1,!0x1);this[_0x2c958b(0x1cf)](_0x5d5753,this[_0x2c958b(0x1c8)]);}}[_0x4e86c9(0x192)](){const _0x2cfd99=_0x4e86c9;this[_0x2cfd99(0x1be)][_0x2cfd99(0x1bd)](),this[_0x2cfd99(0x1a2)][_0x2cfd99(0x1bd)]();}[_0x4e86c9(0x1ce)](){const _0x51f7de=_0x4e86c9;this[_0x51f7de(0x1c8)][_0x51f7de(0x1bd)]();}[_0x4e86c9(0x19d)](_0xf52e9d,_0x3764e9,_0xbb945a){const _0x7ced48=_0x4e86c9;this[_0x7ced48(0x186)][_0x7ced48(0x19d)](_0xf52e9d,_0x3764e9,_0xbb945a);}[_0x4e86c9(0x1b3)](){const _0x130e3f=_0x4e86c9;this[_0x130e3f(0x1e7)](!0x1);}[_0x4e86c9(0x1b1)](){const _0x134b98=_0x4e86c9;this[_0x134b98(0x1e7)](!0x0);}[_0x4e86c9(0x1a7)](){const _0x346fdd=_0x4e86c9;this[_0x346fdd(0x175)][_0x346fdd(0x1ee)](),this[_0x346fdd(0x1e6)][_0x346fdd(0x16f)]=!0x1,this[_0x346fdd(0x169)]&&this[_0x346fdd(0x169)][_0x346fdd(0x1bd)]();}[_0x4e86c9(0x1ac)](){const _0x146c79=_0x4e86c9;this[_0x146c79(0x175)][_0x146c79(0x1aa)](),this[_0x146c79(0x1e6)][_0x146c79(0x16f)]=!0x0;}[_0x4e86c9(0x1de)]({source:_0x52c191,withBackButton:_0x1da705}){const _0x5b7f48=_0x4e86c9;this[_0x5b7f48(0x186)][_0x5b7f48(0x1f3)]({'source':_0x52c191,'withBackButton':_0x1da705}),this[_0x5b7f48(0x1e6)][_0x5b7f48(0x16f)]=!0x0;}[_0x4e86c9(0x1bc)](_0x31745a,_0x57313b,_0x12dc8e,_0x2f3816){const _0x292e7f=_0x4e86c9;this[_0x292e7f(0x186)][_0x292e7f(0x1bc)](_0x31745a,_0x12dc8e,_0x2f3816);}[_0x4e86c9(0x1ba)](_0xce3d11){const _0x5ea956=_0x4e86c9;this[_0x5ea956(0x186)][_0x5ea956(0x1ba)](_0xce3d11),this[_0x5ea956(0x1e6)][_0x5ea956(0x16f)]=!0x1;}[_0x4e86c9(0x1ef)](_0x3fa3e1){const _0x30ba7f=_0x4e86c9;this[_0x30ba7f(0x1af)](this[_0x30ba7f(0x1a8)],this[_0x30ba7f(0x17c)],_0x3fa3e1),this[_0x30ba7f(0x185)](_0x3fa3e1);}[_0x4e86c9(0x185)](_0x37b322){const _0x3580aa=_0x4e86c9,_0x40d483=!_0x37b322[_0x3580aa(0x1e3)][_0x3580aa(0x1e0)]&&_0x37b322[_0x3580aa(0x1e3)][_0x3580aa(0x1ae)],_0x3f9ee5=_0x37b322[_0x3580aa(0x166)][_0x3580aa(0x1ae)],_0x2f367d=_0x37b322[_0x3580aa(0x17d)][_0x3580aa(0x1ae)],_0xf9606a=_0x37b322[_0x3580aa(0x1e2)][_0x3580aa(0x1d2)]>0x0,_0x13b95c=_0x37b322[_0x3580aa(0x181)]&&_0x37b322[_0x3580aa(0x181)][_0x3580aa(0x1d2)]>0x0;this[_0x3580aa(0x1e6)][_0x3580aa(0x1ed)]=_0x40d483||_0x3f9ee5||_0x2f367d||_0xf9606a||_0x13b95c;}[_0x4e86c9(0x164)](){const _0x1b063e=_0x4e86c9;this[_0x1b063e(0x1e4)]({'tag':_0x1b063e(0x1b9),'attributes':{'class':[Ro,_0x1b063e(0x1ad)]},'children':[{'tag':_0x1b063e(0x1b9),'attributes':{'class':Oo},'children':this[_0x1b063e(0x1be)]}]});}[_0x4e86c9(0x1cc)](){const _0x28e2f6=_0x4e86c9;this[_0x28e2f6(0x1e6)]['on'](_0x28e2f6(0x1c4),()=>{const _0x45a32d=_0x28e2f6;this[_0x45a32d(0x1ea)]();});}[_0x4e86c9(0x1f6)](_0x2f982b){const _0x18de2c=_0x4e86c9,_0x44553a=new _0x22f368(_0x2f982b);return _0x44553a[_0x18de2c(0x1c9)]({'label':_0x388cb3(_0x2f982b,_0x18de2c(0x1f4)),'class':jo+'\x20'+Lo,'icon':_0x540b31,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x44553a;}[_0x4e86c9(0x196)](_0x3e0416){const _0x43704d=_0x4e86c9;return this[_0x43704d(0x163)](_0x3e0416,Uo);}[_0x4e86c9(0x1d5)](_0x255bf7){const _0x18bc16=_0x4e86c9,_0x3df444=this[_0x18bc16(0x163)](_0x255bf7,No);return this[_0x18bc16(0x1c5)](_0x3df444,_0x255bf7),_0x3df444;}[_0x4e86c9(0x1e9)](_0xe1341b,_0x5a9033){const _0x12987f=_0x4e86c9,_0x118850={'searchInputVisibleFrom':_0x5a9033[_0x12987f(0x172)],'onBackToContext':()=>{const _0x1b1c56=_0x12987f;this[_0x1b1c56(0x1b1)](),this[_0x1b1c56(0x1a8)][_0x1b1c56(0x1f5)]({'target':this[_0x1b1c56(0x1e6)][_0x1b1c56(0x1db)],'limiter':this[_0x1b1c56(0x1eb)](),'positions':$o});},'onResourceSelected':(_0x388aa3,_0x2391d4)=>{const _0x2a9c76=_0x12987f;this[_0x2a9c76(0x1e5)](_0x2a9c76(0x1df),{'source':_0x388aa3,'resource':_0x2391d4});},'onLoadSourceResources':_0x1cd346=>{const _0x1b3db8=_0x12987f;this[_0x1b3db8(0x1e5)](_0x1b3db8(0x1c7),_0x1cd346);},'onBalloonClosed':()=>{const _0x5148f1=_0x12987f;this[_0x5148f1(0x1e6)][_0x5148f1(0x16f)]=!0x1;},'getLimiterElement':()=>this[_0x12987f(0x1eb)](),'getTargetElement':()=>this[_0x12987f(0x1e6)][_0x12987f(0x1db)]};return new _0x455e0a(_0xe1341b,_0x5a9033[_0x12987f(0x1d9)],_0x118850);}[_0x4e86c9(0x1eb)](){const _0x14f390=_0x4e86c9;return this[_0x14f390(0x1db)]?.[_0x14f390(0x18b)]('.'+Do)||document[_0x14f390(0x179)];}[_0x4e86c9(0x163)](_0xd1bda5,_0x222efa){const _0x5a6345=_0x4e86c9,_0x32b156=new _0x1d98f5(_0xd1bda5);return _0x32b156[_0x5a6345(0x1ec)]({'attributes':{'class':_0x222efa}}),this[_0x5a6345(0x1d9)][_0x5a6345(0x168)](_0x32b156),_0x32b156;}[_0x4e86c9(0x1af)](_0x28e485,_0x3c9b43,_0x14ff94){const _0x223449=_0x4e86c9;if(_0x28e485[_0x223449(0x1c6)][_0x223449(0x1bd)](),!_0x14ff94[_0x223449(0x1e3)][_0x223449(0x1e0)]&&_0x14ff94[_0x223449(0x1e3)][_0x223449(0x1ae)]){const _0x4deba2=this[_0x223449(0x1cb)](_0x3c9b43,{'label':_0x388cb3(_0x3c9b43,_0x223449(0x173)),'icon':_0xa6dda9});_0x4deba2['on'](_0x223449(0x1c4),()=>{const _0x5202b7=_0x223449;this[_0x5202b7(0x1e5)](_0x5202b7(0x16d)),this[_0x5202b7(0x1b3)]();}),_0x28e485[_0x223449(0x1c6)][_0x223449(0x168)](_0x4deba2);}if(_0x14ff94[_0x223449(0x166)][_0x223449(0x1ae)]){const _0x1b257a=this[_0x223449(0x1cb)](_0x3c9b43,{'label':_0x388cb3(_0x3c9b43,_0x223449(0x18f)),'icon':_0x392b14});_0x1b257a['on'](_0x223449(0x1c4),()=>{const _0x699361=_0x223449;this[_0x699361(0x1b3)](),this[_0x699361(0x1ac)](),this[_0x699361(0x175)][_0x699361(0x1f5)]({'target':this[_0x699361(0x1e6)][_0x699361(0x1db)],'limiter':this[_0x699361(0x1eb)](),'positions':$o}),this[_0x699361(0x169)][_0x699361(0x183)]();}),_0x28e485[_0x223449(0x1c6)][_0x223449(0x168)](_0x1b257a);}if(_0x14ff94[_0x223449(0x17d)][_0x223449(0x1ae)]){const _0x52726f=new _0x4f2f31(_0x3c9b43);_0x52726f[_0x223449(0x1c9)]({'label':_0x388cb3(_0x3c9b43,_0x223449(0x19f)),'icon':_0x266edc,'withText':!0x0,'tooltip':!0x0,'class':Mo,'allowMultipleFiles':!0x0}),_0x52726f['on'](_0x223449(0x1c4),()=>{const _0x2c26da=_0x223449;this[_0x2c26da(0x1b3)]();}),_0x52726f['on'](_0x223449(0x1c1),(_0xeb7d0a,_0x46ab27)=>{const _0x22ba9a=_0x223449;this[_0x22ba9a(0x1e5)](_0x22ba9a(0x176),_0x46ab27);}),_0x52726f[_0x223449(0x1d6)]=!0x0,_0x28e485[_0x223449(0x1c6)][_0x223449(0x168)](_0x52726f);}for(const _0x1ff33a of _0x14ff94[_0x223449(0x1e2)]){const _0x2fa8a9=this[_0x223449(0x1cb)](_0x3c9b43,{'label':_0x1ff33a[_0x223449(0x1bb)],'icon':_0x1ff33a[_0x223449(0x174)]||_0x5f039d,'type':_0x223449(0x16e)});_0x28e485[_0x223449(0x1c6)][_0x223449(0x168)](_0x2fa8a9),_0x2fa8a9['on'](_0x223449(0x1c4),()=>{const _0x4ec821=_0x223449;this[_0x4ec821(0x1b3)](),this[_0x4ec821(0x1de)]({'source':_0x1ff33a,'withBackButton':!this[_0x4ec821(0x162)]});});}for(const _0x4ebb80 of _0x14ff94[_0x223449(0x181)]||[]){const _0x39f43d=this[_0x223449(0x1cb)](_0x3c9b43,{'label':_0x4ebb80[_0x223449(0x1bb)],'icon':_0x4ebb80[_0x223449(0x174)]||_0x5f039d,'type':_0x223449(0x188)});_0x28e485[_0x223449(0x1c6)][_0x223449(0x168)](_0x39f43d),_0x39f43d['on'](_0x223449(0x1c4),()=>{const _0x1acc2f=_0x223449;this[_0x1acc2f(0x1b3)](),this[_0x1acc2f(0x1e5)](_0x1acc2f(0x16c),_0x4ebb80);});}this[_0x223449(0x162)]=0x1===_0x28e485[_0x223449(0x1c6)][_0x223449(0x1d2)],this[_0x223449(0x169)][_0x223449(0x167)]=!this[_0x223449(0x162)];}[_0x4e86c9(0x1c5)](_0x2c75e0,_0x556ca8){const _0x48d8cc=_0x4e86c9;this[_0x48d8cc(0x169)]=new _0x3c7207(_0x556ca8),this[_0x48d8cc(0x169)]['on'](_0x48d8cc(0x1f0),(_0x5202b2,_0x102e1b)=>{const _0x37c6bd=_0x48d8cc;this[_0x37c6bd(0x18e)](_0x102e1b);}),this[_0x48d8cc(0x169)]['on'](_0x48d8cc(0x1b7),()=>{const _0x236850=_0x48d8cc;this[_0x236850(0x1a7)](),this[_0x236850(0x162)]||(this[_0x236850(0x1b1)](),this[_0x236850(0x1a8)][_0x236850(0x1f5)]({'target':this[_0x236850(0x1e6)][_0x236850(0x1db)],'limiter':this[_0x236850(0x1eb)](),'positions':$o}));}),this[_0x48d8cc(0x169)]['on'](_0x48d8cc(0x160),()=>{const _0x35c7b9=_0x48d8cc;this[_0x35c7b9(0x175)][_0x35c7b9(0x1f2)]&&this[_0x35c7b9(0x175)][_0x35c7b9(0x1f5)]({'target':this[_0x35c7b9(0x1e6)][_0x35c7b9(0x1db)],'limiter':this[_0x35c7b9(0x1eb)](),'positions':$o});}),_0x2c75e0[_0x48d8cc(0x1c6)][_0x48d8cc(0x168)](this[_0x48d8cc(0x169)]);}[_0x4e86c9(0x1cb)](_0x1b114e,_0x3ab9cc){const _0x10e970=_0x4e86c9,_0x36eb8f=_0x10e970(0x16e)===_0x3ab9cc[_0x10e970(0x191)]?new SourcesBalloonButtonView(_0x1b114e):new _0x22f368(_0x1b114e);return _0x36eb8f[_0x10e970(0x1c9)]({'label':_0x3ab9cc[_0x10e970(0x1bb)],'icon':_0x3ab9cc[_0x10e970(0x174)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Mo}),_0x36eb8f;}[_0x4e86c9(0x198)](){const _0x58768d=_0x4e86c9;this[_0x58768d(0x1b0)](),this[_0x58768d(0x184)]();}[_0x4e86c9(0x184)](){const _0x49f0ba=_0x4e86c9;_0x3c3c4f({'emitter':this[_0x49f0ba(0x175)],'contextElements':[this[_0x49f0ba(0x175)][_0x49f0ba(0x1db)]],'callback':()=>{const _0x1e7fe4=_0x49f0ba;this[_0x1e7fe4(0x1a7)]();},'activator':()=>this[_0x49f0ba(0x175)][_0x49f0ba(0x1f2)]});}[_0x4e86c9(0x1e7)](_0x117eb9){const _0x2e53d1=_0x4e86c9,_0x18435a=this[_0x2e53d1(0x1f1)];_0x18435a[_0x2e53d1(0x1d1)][_0x2e53d1(0x16f)]=_0x117eb9,_0x117eb9?_0x18435a[_0x2e53d1(0x1d0)][_0x2e53d1(0x1aa)]():_0x18435a[_0x2e53d1(0x1d0)][_0x2e53d1(0x1ee)]();}[_0x4e86c9(0x1b0)](){const _0x32fb63=_0x4e86c9,{balloonView:_0x1e3ef5,buttonView:_0x3b501c,hideMethod:_0x3e1efb}=this[_0x32fb63(0x1f1)];_0x3c3c4f({'emitter':_0x1e3ef5,'contextElements':[_0x1e3ef5[_0x32fb63(0x1db)],_0x3b501c[_0x32fb63(0x1db)]],'callback':()=>{_0x3e1efb();},'activator':()=>_0x3b501c[_0x32fb63(0x16f)]&&!this[_0x32fb63(0x175)][_0x32fb63(0x1f2)]&&!this[_0x32fb63(0x186)][_0x32fb63(0x17e)]()});}[_0x4e86c9(0x190)](_0x478310,_0x175e43,_0x217bbf=!0x1,_0x3aa63d=!0x1){const _0x140975=_0x4e86c9,_0x192c5a=_0x140975(0x1a1)===_0x175e43||!0x0===_0x478310[_0x140975(0x1c0)],_0x2f3cae=new _0x422dc7(this[_0x140975(0x17c)],_0x478310,_0x192c5a,_0x217bbf,_0x3aa63d);return _0x192c5a||_0x2f3cae['on'](_0x140975(0x193),()=>{const _0x34fddc=_0x140975;this[_0x34fddc(0x1e5)](_0x34fddc(0x1b4),_0x2f3cae['id']);}),_0x2f3cae;}[_0x4e86c9(0x1cf)](_0x5d0908,_0x58b798){const _0x2d214a=_0x4e86c9;_0x58b798[_0x2d214a(0x168)](_0x5d0908,0x0);}[_0x4e86c9(0x1a6)](_0x5d6ea2,_0x32f0a1){const _0x14f6ad=_0x4e86c9,_0x473aea=_0x32f0a1[_0x14f6ad(0x1a0)](_0x50e798=>_0x50e798['id']===_0x5d6ea2);_0x473aea&&_0x32f0a1[_0x14f6ad(0x180)](_0x473aea);}[_0x4e86c9(0x1ea)](){const _0x50c1ac=_0x4e86c9;this[_0x50c1ac(0x1e6)][_0x50c1ac(0x16f)]?this[_0x50c1ac(0x1b3)]():(this[_0x50c1ac(0x1b1)](),this[_0x50c1ac(0x1a8)][_0x50c1ac(0x1f5)]({'target':this[_0x50c1ac(0x1e6)][_0x50c1ac(0x1db)],'limiter':this[_0x50c1ac(0x1eb)](),'positions':$o}),this[_0x50c1ac(0x162)]&&this[_0x50c1ac(0x1a8)][_0x50c1ac(0x1c6)][_0x50c1ac(0x1dc)](0x0)?.[_0x50c1ac(0x1e5)](_0x50c1ac(0x1c4)));}[_0x4e86c9(0x18e)](_0x2de80b){const _0x15ea24=_0x4e86c9;this[_0x15ea24(0x169)][_0x15ea24(0x1bd)](),this[_0x15ea24(0x1a7)](),this[_0x15ea24(0x1e5)](_0x15ea24(0x1e8),_0x2de80b);}}export class SourcesBalloonButtonView extends _0x22f368{[_0x4e86c9(0x1a4)];constructor(_0x3bc324){const _0x5696a9=_0x4e86c9;super(_0x3bc324),this[_0x5696a9(0x1c9)]({'withText':!0x0,'role':_0x5696a9(0x19a)}),this[_0x5696a9(0x1a4)]=this[_0x5696a9(0x1da)](),this[_0x5696a9(0x1ec)]({'attributes':{'class':[Ho]}});}[_0x4e86c9(0x1a3)](){const _0xae0e87=_0x4e86c9;super[_0xae0e87(0x1a3)](),this[_0xae0e87(0x18a)][_0xae0e87(0x168)](this[_0xae0e87(0x1a4)]);}[_0x4e86c9(0x1da)](){const _0x452c1c=_0x4e86c9,_0xffcec=new _0x5bd193();return _0xffcec[_0x452c1c(0x1c6)]=_0x295eb8,_0xffcec[_0x452c1c(0x1ec)]({'attributes':{'class':Ho+_0x452c1c(0x1ca)}}),_0xffcec;}}
23
+ const _0x5aa4aa=_0x170e;(function(_0x5e5632,_0x537dca){const _0x6d5ad5=_0x170e,_0x3ca345=_0x5e5632();while(!![]){try{const _0x1ee7a6=parseInt(_0x6d5ad5(0x146))/0x1+parseInt(_0x6d5ad5(0x16a))/0x2+parseInt(_0x6d5ad5(0x1bb))/0x3*(-parseInt(_0x6d5ad5(0x13d))/0x4)+parseInt(_0x6d5ad5(0x1c3))/0x5+parseInt(_0x6d5ad5(0x1bd))/0x6*(-parseInt(_0x6d5ad5(0x1c0))/0x7)+-parseInt(_0x6d5ad5(0x18c))/0x8*(-parseInt(_0x6d5ad5(0x151))/0x9)+-parseInt(_0x6d5ad5(0x15f))/0xa;if(_0x1ee7a6===_0x537dca)break;else _0x3ca345['push'](_0x3ca345['shift']());}catch(_0x212433){_0x3ca345['push'](_0x3ca345['shift']());}}}(_0x5138,0x59975));import{BalloonPanelView as _0x188dc9,ButtonView as _0x3f1ab6,clickOutsideHandler as _0xbe59cf,FileDialogButtonView as _0x5b8dd7,IconView as _0x14e21f,View as _0x44cff2}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x130f20,IconDocument as _0x30e002,IconDocumentOutline as _0x3c8f62,IconDropdownArrow as _0x4a6f43,IconLink as _0x4e8400,IconPaperClip as _0x28516a}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x393f94}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x98802e}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0xfc1d85}from'./aichatchipsoverflowmanager.js';function _0x170e(_0x21427e,_0x340e9c){const _0x5138bc=_0x5138();return _0x170e=function(_0x170eff,_0x286227){_0x170eff=_0x170eff-0x133;let _0x5a8b41=_0x5138bc[_0x170eff];return _0x5a8b41;},_0x170e(_0x21427e,_0x340e9c);}import{getTranslation as _0x330cce}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x5468b9}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x5aa4aa(0x160),_0x5aa4aa(0x18e),_0x5aa4aa(0x158),_0x5aa4aa(0x159),_0x5aa4aa(0x135),_0x5aa4aa(0x144),_0x5aa4aa(0x1a6)];function _0x5138(){const _0x47ccc9=['_addUrlContent','closeSourceResourceBalloon','setConversationContext','children','12YwfyYX','ck-ai-chat','6UbdvsQ','isLoading','_createContextButton','554029uPVmQY','ck-ai-chat-context-controls__balloon-button-source','add','822700jtUSHg','_createBaseBalloonPanel','_hasExactlyOneSource','_setBalloonPanelContent','sources','extendTemplate','fire','customItem','submitUrl','removeContextItem','setContextItemLoading','createCollection','clearConversationContextItems','AI_CHAT_CONTEXT_FILE_LABEL','ck-ai-chat-controls-button','ck-ai-chat-context-controls__url-balloon-panel','ck-ai-chat-context-controls__add-context-balloon-panel','37420czOzHp','_setupTemplate','ck-ai-chat-context-controls__pending-contexts','refreshBalloon','remove','icon','closest','loadSourceResources','ck-ai-chat-context-controls__add-context-button','352197SnBiJl','_overflowManager','_urlBalloonPanelView','_handleAddContextButtonClick','ck-ai-chat-controls_context_show-more-button','AI_CHAT_CONTEXT_ADD_CONTEXT','southArrowNorthWest','_getLimiterElement','execute','_conversationContextsChips','hide','2795553pWQqfZ','overflowChips','balloonView','northArrowSouthWest','setContainerElement','pin','southArrowNorthEast','addUrlToContext','addResourceToContext','bodyCollection','source','_createBalloonButton','_removeContextFromCollection','updateResourceState','7736020DThFzP','addDocumentToContext','defaultPositions','locale','_showSourceResourcesBalloon','AI_CHAT_CONTEXT_URL_LABEL','_createAddContextButtonView','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','_bindEventHandlers','setAddContextOptions','withBackButton','238326NgLIqt','menuitem','northArrowSouthEast','enabled','__arrow','_addContextBalloonPanelView','_handleUrlSubmit','isHidden','reorganizeChips','_setupAddContextBalloonClickOutsideHandler','customItems','addContextItem','find','isReadOnly','ck-ai-chat-context-controls__show-more-balloon-panel','_setupAllBalloonClickOutsideHandlers','hideUrlBalloonPanel','isVisible','clearCurrentContextItems','_addContextToCollection','element','urls','cancel','southArrowNorth','body','_setupUrlBalloonClickOutsideHandler','_resourcesBalloonView','done','_createArrowView','addContextButtonView','_createAddContextBalloonPanelView','showSourceResourcesBalloon','render','bind','16dGVIyo','label','addFileToContext','_currentContextsChips','ck-ai-chat-context-chips-wrapper-balloon','content','removeContextItemChip','_setAddContextButtonEnabled','ck-reset_all-excluded','div','files','_addContextBalloonConfig','setTemplate','destroy','_createResourcesBalloonView','populateSourceResourceBalloon','buttonView','length','isOn','isEnabled','showAddContextBalloonPanel','focus','hideAddContextBalloonPanel','type','tooltip','isAnyResourceBalloonVisible','executeCustomItemCallback','document','ck-ai-chat-context-controls__balloon-button','northArrowSouth','ck-ai-chat-context-controls','clear','_urlInputView','_toggleAddContextBalloon','get','searchInputVisibleFrom','show','_createUrlBalloonPanelView','arrowView','showUrlBalloonPanel','conversation','current','set'];_0x5138=function(){return _0x47ccc9;};return _0x5138();}const Uo=_0x5aa4aa(0x1aa),Lo=_0x5aa4aa(0x13f),No=_0x5aa4aa(0x13c),Mo=_0x5aa4aa(0x145),Ho=_0x5aa4aa(0x13b),jo=_0x5aa4aa(0x1a8),Fo=_0x5aa4aa(0x1c1),Xo=_0x5aa4aa(0x13a),Do=_0x5aa4aa(0x190),$o=_0x5aa4aa(0x14a),Wo=_0x5aa4aa(0x178),qo=_0x5aa4aa(0x1bc),zo=[_0x188dc9[_0x5aa4aa(0x161)][_0x5aa4aa(0x154)],_0x188dc9[_0x5aa4aa(0x161)][_0x5aa4aa(0x1a9)],_0x188dc9[_0x5aa4aa(0x161)][_0x5aa4aa(0x16c)],_0x188dc9[_0x5aa4aa(0x161)][_0x5aa4aa(0x14c)],_0x188dc9[_0x5aa4aa(0x161)][_0x5aa4aa(0x181)],_0x188dc9[_0x5aa4aa(0x161)][_0x5aa4aa(0x157)]];export class AIChatContextPanelView extends _0x44cff2{[_0x5aa4aa(0x187)];[_0x5aa4aa(0x18f)]=this[_0x5aa4aa(0x137)]();[_0x5aa4aa(0x14f)]=this[_0x5aa4aa(0x137)]();[_0x5aa4aa(0x147)];[_0x5aa4aa(0x16f)];[_0x5aa4aa(0x148)];[_0x5aa4aa(0x1ac)];[_0x5aa4aa(0x184)];[_0x5aa4aa(0x197)];[_0x5aa4aa(0x1c5)]=!0x1;[_0x5aa4aa(0x15a)];constructor(_0x5b48fe,_0x117375){const _0xe0f155=_0x5aa4aa;super(_0x5b48fe),this[_0xe0f155(0x15a)]=_0x117375[_0xe0f155(0x15a)],this[_0xe0f155(0x18f)]=this[_0xe0f155(0x137)](),this[_0xe0f155(0x14f)]=this[_0xe0f155(0x137)](),this[_0xe0f155(0x187)]=this[_0xe0f155(0x165)](_0x5b48fe),this[_0xe0f155(0x16f)]=this[_0xe0f155(0x188)](_0x5b48fe),this[_0xe0f155(0x148)]=this[_0xe0f155(0x1b1)](_0x5b48fe),this[_0xe0f155(0x184)]=this[_0xe0f155(0x19a)](_0x5b48fe,_0x117375);const _0x307345={'cssClasses':{'showMoreButton':$o,'showMoreBalloon':Wo,'overflowContainer':Do,'controlsButton':Xo}};this[_0xe0f155(0x147)]=new _0xfc1d85(_0x5b48fe,this[_0xe0f155(0x18f)],_0x307345,this[_0xe0f155(0x15a)],this),this[_0xe0f155(0x197)]={'buttonView':this[_0xe0f155(0x187)],'balloonView':this[_0xe0f155(0x16f)],'hideMethod':this[_0xe0f155(0x1a2)][_0xe0f155(0x18b)](this),'showMethod':this[_0xe0f155(0x1a0)][_0xe0f155(0x18b)](this)},this[_0xe0f155(0x13e)](),this[_0xe0f155(0x167)]();}[_0x5aa4aa(0x18a)](){const _0x5ef417=_0x5aa4aa;super[_0x5ef417(0x18a)](),this[_0x5ef417(0x179)](),this[_0x5ef417(0x147)][_0x5ef417(0x155)](this[_0x5ef417(0x17e)]),this[_0x5ef417(0x147)][_0x5ef417(0x172)]();}[_0x5aa4aa(0x199)](){const _0x65d9a=_0x5aa4aa;super[_0x65d9a(0x199)](),this[_0x65d9a(0x147)][_0x65d9a(0x199)](),this[_0x65d9a(0x184)][_0x65d9a(0x199)]();}[_0x5aa4aa(0x175)](_0x474df1,_0x3b8d0e){const _0x5badb2=_0x5aa4aa,_0x1fe178=this[_0x5badb2(0x1bf)](_0x474df1,_0x5badb2(0x1b5),!0x0,_0x3b8d0e);this[_0x5badb2(0x17d)](_0x1fe178,this[_0x5badb2(0x18f)]),this[_0x5badb2(0x147)][_0x5badb2(0x172)]();}[_0x5aa4aa(0x135)](_0x318170){const _0x6cc64b=_0x5aa4aa;this[_0x6cc64b(0x15d)](_0x318170,this[_0x6cc64b(0x18f)]),this[_0x6cc64b(0x15d)](_0x318170,this[_0x6cc64b(0x147)][_0x6cc64b(0x152)]),this[_0x6cc64b(0x147)][_0x6cc64b(0x172)]();}[_0x5aa4aa(0x136)](_0x2c2a57,_0x23abee){const _0x455492=_0x5aa4aa;let _0x3855c6=this[_0x455492(0x18f)][_0x455492(0x176)](_0x3266a0=>_0x3266a0['id']===_0x2c2a57);_0x3855c6||(_0x3855c6=this[_0x455492(0x147)][_0x455492(0x152)][_0x455492(0x176)](_0x4132ba=>_0x4132ba['id']===_0x2c2a57)),_0x3855c6&&(_0x3855c6[_0x455492(0x1be)]=_0x23abee);}[_0x5aa4aa(0x1b9)](_0x34949b){const _0x5abccb=_0x5aa4aa;this[_0x5abccb(0x14f)][_0x5abccb(0x1ab)]();for(const _0x3f38ff of _0x34949b){const _0x43f72f=this[_0x5abccb(0x1bf)](_0x3f38ff,_0x5abccb(0x1b4),!0x1,!0x1);this[_0x5abccb(0x17d)](_0x43f72f,this[_0x5abccb(0x14f)]);}}[_0x5aa4aa(0x17c)](){const _0x560150=_0x5aa4aa;this[_0x560150(0x18f)][_0x560150(0x1ab)](),this[_0x560150(0x147)][_0x560150(0x1ab)]();}[_0x5aa4aa(0x138)](){const _0x3186af=_0x5aa4aa;this[_0x3186af(0x14f)][_0x3186af(0x1ab)]();}[_0x5aa4aa(0x15e)](_0x5e67fb,_0x4c1415,_0x5069f5){const _0x33cb26=_0x5aa4aa;this[_0x33cb26(0x184)][_0x33cb26(0x15e)](_0x5e67fb,_0x4c1415,_0x5069f5);}[_0x5aa4aa(0x1a2)](){const _0x788766=_0x5aa4aa;this[_0x788766(0x1ad)](!0x1);}[_0x5aa4aa(0x1a0)](){const _0x33e9cb=_0x5aa4aa;this[_0x33e9cb(0x1ad)](!0x0);}[_0x5aa4aa(0x17a)](){const _0x4e3b42=_0x5aa4aa;this[_0x4e3b42(0x148)][_0x4e3b42(0x150)](),this[_0x4e3b42(0x187)][_0x4e3b42(0x19e)]=!0x1,this[_0x4e3b42(0x1ac)]&&this[_0x4e3b42(0x1ac)][_0x4e3b42(0x1ab)]();}[_0x5aa4aa(0x1b3)](){const _0x4c4898=_0x5aa4aa;this[_0x4c4898(0x148)][_0x4c4898(0x1b0)](),this[_0x4c4898(0x187)][_0x4c4898(0x19e)]=!0x0;}[_0x5aa4aa(0x163)]({source:_0xb0b1ec,withBackButton:_0x230052}){const _0x1ee97b=_0x5aa4aa;this[_0x1ee97b(0x184)][_0x1ee97b(0x189)]({'source':_0xb0b1ec,'withBackButton':_0x230052}),this[_0x1ee97b(0x187)][_0x1ee97b(0x19e)]=!0x0;}[_0x5aa4aa(0x19b)](_0x22c4a6,_0x28fc1c,_0x4aea69,_0x1df71d){const _0x22efa1=_0x5aa4aa;this[_0x22efa1(0x184)][_0x22efa1(0x19b)](_0x22c4a6,_0x4aea69,_0x1df71d);}[_0x5aa4aa(0x1b8)](_0x3136d7){const _0x1afefc=_0x5aa4aa;this[_0x1afefc(0x184)][_0x1afefc(0x1b8)](_0x3136d7),this[_0x1afefc(0x187)][_0x1afefc(0x19e)]=!0x1;}[_0x5aa4aa(0x168)](_0x4cad6f){const _0x44e773=_0x5aa4aa;this[_0x44e773(0x1c6)](this[_0x44e773(0x16f)],this[_0x44e773(0x162)],_0x4cad6f),this[_0x44e773(0x193)](_0x4cad6f);}[_0x5aa4aa(0x193)](_0x5241cc){const _0x550ebf=_0x5aa4aa,_0x5eb210=!_0x5241cc[_0x550ebf(0x1a7)][_0x550ebf(0x171)]&&_0x5241cc[_0x550ebf(0x1a7)][_0x550ebf(0x16d)],_0x20dddf=_0x5241cc[_0x550ebf(0x17f)][_0x550ebf(0x16d)],_0x5ca415=_0x5241cc[_0x550ebf(0x196)][_0x550ebf(0x16d)],_0x5881c3=_0x5241cc[_0x550ebf(0x1c7)][_0x550ebf(0x19d)]>0x0,_0x4fdb0d=_0x5241cc[_0x550ebf(0x174)]&&_0x5241cc[_0x550ebf(0x174)][_0x550ebf(0x19d)]>0x0;this[_0x550ebf(0x187)][_0x550ebf(0x19f)]=_0x5eb210||_0x20dddf||_0x5ca415||_0x5881c3||_0x4fdb0d;}[_0x5aa4aa(0x13e)](){const _0x55b6d9=_0x5aa4aa;this[_0x55b6d9(0x198)]({'tag':_0x55b6d9(0x195),'attributes':{'class':[Uo,_0x55b6d9(0x194)]},'children':[{'tag':_0x55b6d9(0x195),'attributes':{'class':Lo},'children':this[_0x55b6d9(0x18f)]}]});}[_0x5aa4aa(0x167)](){const _0x49a811=_0x5aa4aa;this[_0x49a811(0x187)]['on'](_0x49a811(0x14e),()=>{const _0x3b4ca8=_0x49a811;this[_0x3b4ca8(0x149)]();});}[_0x5aa4aa(0x165)](_0x4871b6){const _0x204765=_0x5aa4aa,_0x48ca0e=new _0x3f1ab6(_0x4871b6);return _0x48ca0e[_0x204765(0x1b6)]({'label':_0x330cce(_0x4871b6,_0x204765(0x14b)),'class':Xo+'\x20'+Mo,'icon':_0x28516a,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x48ca0e;}[_0x5aa4aa(0x188)](_0x4ea810){const _0x3e0f73=_0x5aa4aa;return this[_0x3e0f73(0x1c4)](_0x4ea810,No);}[_0x5aa4aa(0x1b1)](_0x3ecff6){const _0x915725=_0x5aa4aa,_0x51cf43=this[_0x915725(0x1c4)](_0x3ecff6,Ho);return this[_0x915725(0x1b7)](_0x51cf43,_0x3ecff6),_0x51cf43;}[_0x5aa4aa(0x19a)](_0x2b1387,_0xfc47bc){const _0x513852=_0x5aa4aa,_0x37ab96={'searchInputVisibleFrom':_0xfc47bc[_0x513852(0x1af)],'onBackToContext':()=>{const _0x3357e7=_0x513852;this[_0x3357e7(0x1a0)](),this[_0x3357e7(0x16f)][_0x3357e7(0x156)]({'target':this[_0x3357e7(0x187)][_0x3357e7(0x17e)],'limiter':this[_0x3357e7(0x14d)](),'positions':zo});},'onResourceSelected':(_0x389eb4,_0x21602e)=>{const _0x169647=_0x513852;this[_0x169647(0x1c9)](_0x169647(0x159),{'source':_0x389eb4,'resource':_0x21602e});},'onLoadSourceResources':_0x3051ec=>{const _0x497eca=_0x513852;this[_0x497eca(0x1c9)](_0x497eca(0x144),_0x3051ec);},'onBalloonClosed':()=>{const _0x3beba3=_0x513852;this[_0x3beba3(0x187)][_0x3beba3(0x19e)]=!0x1;},'getLimiterElement':()=>this[_0x513852(0x14d)](),'getTargetElement':()=>this[_0x513852(0x187)][_0x513852(0x17e)]};return new _0x5468b9(_0x2b1387,_0xfc47bc[_0x513852(0x15a)],_0x37ab96);}[_0x5aa4aa(0x14d)](){const _0x2dceff=_0x5aa4aa;return this[_0x2dceff(0x17e)]?.[_0x2dceff(0x143)]('.'+qo)||document[_0x2dceff(0x182)];}[_0x5aa4aa(0x1c4)](_0x4ef5e9,_0x4be51c){const _0x53a815=_0x5aa4aa,_0x3135c1=new _0x188dc9(_0x4ef5e9);return _0x3135c1[_0x53a815(0x1c8)]({'attributes':{'class':_0x4be51c}}),this[_0x53a815(0x15a)][_0x53a815(0x1c2)](_0x3135c1),_0x3135c1;}[_0x5aa4aa(0x1c6)](_0x2ee558,_0x6d1e00,_0x285bb8){const _0x357f96=_0x5aa4aa;if(_0x2ee558[_0x357f96(0x191)][_0x357f96(0x1ab)](),!_0x285bb8[_0x357f96(0x1a7)][_0x357f96(0x171)]&&_0x285bb8[_0x357f96(0x1a7)][_0x357f96(0x16d)]){const _0x4cda68=this[_0x357f96(0x15c)](_0x6d1e00,{'label':_0x330cce(_0x6d1e00,_0x357f96(0x166)),'icon':_0x30e002});_0x4cda68['on'](_0x357f96(0x14e),()=>{const _0x5e9c38=_0x357f96;this[_0x5e9c38(0x1c9)](_0x5e9c38(0x160)),this[_0x5e9c38(0x1a2)]();}),_0x2ee558[_0x357f96(0x191)][_0x357f96(0x1c2)](_0x4cda68);}if(_0x285bb8[_0x357f96(0x17f)][_0x357f96(0x16d)]){const _0x5d8528=this[_0x357f96(0x15c)](_0x6d1e00,{'label':_0x330cce(_0x6d1e00,_0x357f96(0x164)),'icon':_0x4e8400});_0x5d8528['on'](_0x357f96(0x14e),()=>{const _0x259448=_0x357f96;this[_0x259448(0x1a2)](),this[_0x259448(0x1b3)](),this[_0x259448(0x148)][_0x259448(0x156)]({'target':this[_0x259448(0x187)][_0x259448(0x17e)],'limiter':this[_0x259448(0x14d)](),'positions':zo}),this[_0x259448(0x1ac)][_0x259448(0x1a1)]();}),_0x2ee558[_0x357f96(0x191)][_0x357f96(0x1c2)](_0x5d8528);}if(_0x285bb8[_0x357f96(0x196)][_0x357f96(0x16d)]){const _0x33814b=new _0x5b8dd7(_0x6d1e00);_0x33814b[_0x357f96(0x1b6)]({'label':_0x330cce(_0x6d1e00,_0x357f96(0x139)),'icon':_0x130f20,'withText':!0x0,'tooltip':!0x0,'class':jo,'allowMultipleFiles':!0x0}),_0x33814b['on'](_0x357f96(0x14e),()=>{const _0x514195=_0x357f96;this[_0x514195(0x1a2)]();}),_0x33814b['on'](_0x357f96(0x185),(_0x380056,_0x42e64f)=>{const _0x52c0e0=_0x357f96;this[_0x52c0e0(0x1c9)](_0x52c0e0(0x18e),_0x42e64f);}),_0x33814b[_0x357f96(0x1a4)]=!0x0,_0x2ee558[_0x357f96(0x191)][_0x357f96(0x1c2)](_0x33814b);}for(const _0x21df9d of _0x285bb8[_0x357f96(0x1c7)]){const _0x46e4d7=this[_0x357f96(0x15c)](_0x6d1e00,{'label':_0x21df9d[_0x357f96(0x18d)],'icon':_0x21df9d[_0x357f96(0x142)]||_0x3c8f62,'type':_0x357f96(0x15b)});_0x2ee558[_0x357f96(0x191)][_0x357f96(0x1c2)](_0x46e4d7),_0x46e4d7['on'](_0x357f96(0x14e),()=>{const _0x50cbe9=_0x357f96;this[_0x50cbe9(0x1a2)](),this[_0x50cbe9(0x163)]({'source':_0x21df9d,'withBackButton':!this[_0x50cbe9(0x1c5)]});});}for(const _0x2dea4c of _0x285bb8[_0x357f96(0x174)]||[]){const _0x11cf12=this[_0x357f96(0x15c)](_0x6d1e00,{'label':_0x2dea4c[_0x357f96(0x18d)],'icon':_0x2dea4c[_0x357f96(0x142)]||_0x3c8f62,'type':_0x357f96(0x133)});_0x2ee558[_0x357f96(0x191)][_0x357f96(0x1c2)](_0x11cf12),_0x11cf12['on'](_0x357f96(0x14e),()=>{const _0x17ff4d=_0x357f96;this[_0x17ff4d(0x1a2)](),this[_0x17ff4d(0x1c9)](_0x17ff4d(0x1a6),_0x2dea4c);});}this[_0x357f96(0x1c5)]=0x1===_0x2ee558[_0x357f96(0x191)][_0x357f96(0x19d)],this[_0x357f96(0x1ac)][_0x357f96(0x169)]=!this[_0x357f96(0x1c5)];}[_0x5aa4aa(0x1b7)](_0x1b1e98,_0x56aca7){const _0xbf5023=_0x5aa4aa;this[_0xbf5023(0x1ac)]=new _0x98802e(_0x56aca7),this[_0xbf5023(0x1ac)]['on'](_0xbf5023(0x134),(_0xa8dd32,_0x1a479c)=>{const _0x4adf93=_0xbf5023;this[_0x4adf93(0x170)](_0x1a479c);}),this[_0xbf5023(0x1ac)]['on'](_0xbf5023(0x180),()=>{const _0x604506=_0xbf5023;this[_0x604506(0x17a)](),this[_0x604506(0x1c5)]||(this[_0x604506(0x1a0)](),this[_0x604506(0x16f)][_0x604506(0x156)]({'target':this[_0x604506(0x187)][_0x604506(0x17e)],'limiter':this[_0x604506(0x14d)](),'positions':zo}));}),this[_0xbf5023(0x1ac)]['on'](_0xbf5023(0x140),()=>{const _0x5ba16b=_0xbf5023;this[_0x5ba16b(0x148)][_0x5ba16b(0x17b)]&&this[_0x5ba16b(0x148)][_0x5ba16b(0x156)]({'target':this[_0x5ba16b(0x187)][_0x5ba16b(0x17e)],'limiter':this[_0x5ba16b(0x14d)](),'positions':zo});}),_0x1b1e98[_0xbf5023(0x191)][_0xbf5023(0x1c2)](this[_0xbf5023(0x1ac)]);}[_0x5aa4aa(0x15c)](_0x3d74fc,_0x18a54a){const _0x467f01=_0x5aa4aa,_0x74b9db=_0x467f01(0x15b)===_0x18a54a[_0x467f01(0x1a3)]?new SourcesBalloonButtonView(_0x3d74fc):new _0x3f1ab6(_0x3d74fc);return _0x74b9db[_0x467f01(0x1b6)]({'label':_0x18a54a[_0x467f01(0x18d)],'icon':_0x18a54a[_0x467f01(0x142)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':jo}),_0x74b9db;}[_0x5aa4aa(0x179)](){const _0x315fa6=_0x5aa4aa;this[_0x315fa6(0x173)](),this[_0x315fa6(0x183)]();}[_0x5aa4aa(0x183)](){const _0x1bf279=_0x5aa4aa;_0xbe59cf({'emitter':this[_0x1bf279(0x148)],'contextElements':[this[_0x1bf279(0x148)][_0x1bf279(0x17e)]],'callback':()=>{const _0x8d6407=_0x1bf279;this[_0x8d6407(0x17a)]();},'activator':()=>this[_0x1bf279(0x148)][_0x1bf279(0x17b)]});}[_0x5aa4aa(0x1ad)](_0x3261b1){const _0xa6cbf1=_0x5aa4aa,_0x4f3234=this[_0xa6cbf1(0x197)];_0x4f3234[_0xa6cbf1(0x19c)][_0xa6cbf1(0x19e)]=_0x3261b1,_0x3261b1?_0x4f3234[_0xa6cbf1(0x153)][_0xa6cbf1(0x1b0)]():_0x4f3234[_0xa6cbf1(0x153)][_0xa6cbf1(0x150)]();}[_0x5aa4aa(0x173)](){const _0x515a02=_0x5aa4aa,{balloonView:_0x2fb522,buttonView:_0x3e4c9a,hideMethod:_0x371cdb}=this[_0x515a02(0x197)];_0xbe59cf({'emitter':_0x2fb522,'contextElements':[_0x2fb522[_0x515a02(0x17e)],_0x3e4c9a[_0x515a02(0x17e)]],'callback':()=>{_0x371cdb();},'activator':()=>_0x3e4c9a[_0x515a02(0x19e)]&&!this[_0x515a02(0x148)][_0x515a02(0x17b)]&&!this[_0x515a02(0x184)][_0x515a02(0x1a5)]()});}[_0x5aa4aa(0x1bf)](_0x20eb1f,_0x1c22a0,_0x44e45c=!0x1,_0x4106c4=!0x1){const _0x30cd09=_0x5aa4aa,_0x22b1be=_0x30cd09(0x1b4)===_0x1c22a0||!0x0===_0x20eb1f[_0x30cd09(0x177)],_0x43f3a7=new _0x393f94(this[_0x30cd09(0x162)],_0x20eb1f,_0x22b1be,_0x44e45c,_0x4106c4);return _0x22b1be||_0x43f3a7['on'](_0x30cd09(0x192),()=>{const _0x4f532e=_0x30cd09;this[_0x4f532e(0x1c9)](_0x4f532e(0x135),_0x43f3a7['id']);}),_0x43f3a7;}[_0x5aa4aa(0x17d)](_0xf31c8f,_0x42d835){const _0x3b5988=_0x5aa4aa;_0x42d835[_0x3b5988(0x1c2)](_0xf31c8f,0x0);}[_0x5aa4aa(0x15d)](_0x2184b8,_0x3e221d){const _0x598f7f=_0x5aa4aa,_0x257a1a=_0x3e221d[_0x598f7f(0x176)](_0x35ae56=>_0x35ae56['id']===_0x2184b8);_0x257a1a&&_0x3e221d[_0x598f7f(0x141)](_0x257a1a);}[_0x5aa4aa(0x149)](){const _0x580cd3=_0x5aa4aa;this[_0x580cd3(0x187)][_0x580cd3(0x19e)]?this[_0x580cd3(0x1a2)]():(this[_0x580cd3(0x1a0)](),this[_0x580cd3(0x16f)][_0x580cd3(0x156)]({'target':this[_0x580cd3(0x187)][_0x580cd3(0x17e)],'limiter':this[_0x580cd3(0x14d)](),'positions':zo}),this[_0x580cd3(0x1c5)]&&this[_0x580cd3(0x16f)][_0x580cd3(0x191)][_0x580cd3(0x1ae)](0x0)?.[_0x580cd3(0x1c9)](_0x580cd3(0x14e)));}[_0x5aa4aa(0x170)](_0x55fd07){const _0x54443f=_0x5aa4aa;this[_0x54443f(0x1ac)][_0x54443f(0x1ab)](),this[_0x54443f(0x17a)](),this[_0x54443f(0x1c9)](_0x54443f(0x158),_0x55fd07);}}export class SourcesBalloonButtonView extends _0x3f1ab6{[_0x5aa4aa(0x1b2)];constructor(_0x562082){const _0x3a8c84=_0x5aa4aa;super(_0x562082),this[_0x3a8c84(0x1b6)]({'withText':!0x0,'role':_0x3a8c84(0x16b)}),this[_0x3a8c84(0x1b2)]=this[_0x3a8c84(0x186)](),this[_0x3a8c84(0x1c8)]({'attributes':{'class':[Fo]}});}[_0x5aa4aa(0x18a)](){const _0x5db28d=_0x5aa4aa;super[_0x5db28d(0x18a)](),this[_0x5db28d(0x1ba)][_0x5db28d(0x1c2)](this[_0x5db28d(0x1b2)]);}[_0x5aa4aa(0x186)](){const _0x5858a6=_0x5aa4aa,_0x2b5b97=new _0x14e21f();return _0x2b5b97[_0x5858a6(0x191)]=_0x4a6f43,_0x2b5b97[_0x5858a6(0x1c8)]({'attributes':{'class':Fo+_0x5858a6(0x16e)}}),_0x2b5b97;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x16fe4d=_0x53e0;(function(_0x5a7d26,_0x278787){const _0x54a786=_0x53e0,_0x4874bb=_0x5a7d26();while(!![]){try{const _0x35bd14=parseInt(_0x54a786(0x101))/0x1+-parseInt(_0x54a786(0xff))/0x2*(-parseInt(_0x54a786(0x111))/0x3)+parseInt(_0x54a786(0x107))/0x4*(-parseInt(_0x54a786(0x10a))/0x5)+-parseInt(_0x54a786(0x10f))/0x6*(parseInt(_0x54a786(0x102))/0x7)+parseInt(_0x54a786(0x115))/0x8+-parseInt(_0x54a786(0x108))/0x9*(-parseInt(_0x54a786(0x10b))/0xa)+parseInt(_0x54a786(0x109))/0xb*(parseInt(_0x54a786(0x11b))/0xc);if(_0x35bd14===_0x278787)break;else _0x4874bb['push'](_0x4874bb['shift']());}catch(_0x4f4b7f){_0x4874bb['push'](_0x4874bb['shift']());}}}(_0x2da8,0xcd854));function _0x53e0(_0x2ca4a1,_0x2254c8){const _0x2da86f=_0x2da8();return _0x53e0=function(_0x53e0ae,_0xe6cada){_0x53e0ae=_0x53e0ae-0xfd;let _0x10240f=_0x2da86f[_0x53e0ae];return _0x10240f;},_0x53e0(_0x2ca4a1,_0x2254c8);}import{ButtonView as _0x2b71d6,View as _0x33eede}from'ckeditor5/src/ui.js';import{IconStop as _0x188743}from'ckeditor5/src/icons.js';import{getTranslation as _0x1cbdac}from'../../../aicore/utils/common-translations.js';function _0x2da8(){const _0x3c54ec=['ck-ai-chat-controls-loader-wrapper','setTemplate','ck-ai-button-secondary\x20ck-ai-button-stop-generating','4drGwGq','3186ZsVAKF','242bDWheC','2236790etuiSx','26630wTKgIu','ck-reset_all','AI_CHAT_IS_WRITING','AI_CHAT_STOP_GENERATING','306444lPebcY','_loaderView','3dbGtfu','locale','ck-ai-chat-controls-loader-icon-dot','_createLoaderView','2073744oCACxY','execute','_cancelButtonView','_createCancelButtonView','abortPromptStream','ck-ai-chat-controls-loader-icon','10308zSRLBg','fire','set','538066NgIfev','ck-ai-chat-controls-loader','565429LrlZwO','105eMAcDH','div'];_0x2da8=function(){return _0x3c54ec;};return _0x2da8();}export class AIChatControlsLoaderView extends _0x33eede{[_0x16fe4d(0x117)];[_0x16fe4d(0x110)];constructor(_0x11b72f){const _0x29173a=_0x16fe4d;super(_0x11b72f),this[_0x29173a(0x117)]=this[_0x29173a(0x118)](),this[_0x29173a(0x110)]=this[_0x29173a(0x114)](),this[_0x29173a(0x105)]({'tag':_0x29173a(0x103),'attributes':{'class':['ck',_0x29173a(0x104),_0x29173a(0x10c)]},'children':[this[_0x29173a(0x110)],this[_0x29173a(0x117)]]});}[_0x16fe4d(0x118)](){const _0x57d823=_0x16fe4d,_0x105848=new _0x2b71d6(this[_0x57d823(0x112)]);return _0x105848[_0x57d823(0xfe)]({'label':_0x1cbdac(this[_0x57d823(0x112)],_0x57d823(0x10e)),'withText':!0x0,'class':_0x57d823(0x106),'icon':_0x188743}),_0x105848['on'](_0x57d823(0x116),()=>{const _0x1af040=_0x57d823;this[_0x1af040(0xfd)](_0x1af040(0x119));}),_0x105848;}[_0x16fe4d(0x114)](){const _0x2d9d66=_0x16fe4d,_0x414539=new _0x33eede(this[_0x2d9d66(0x112)]);return _0x414539[_0x2d9d66(0x105)]({'tag':_0x2d9d66(0x103),'attributes':{'class':[_0x2d9d66(0x100)]},'children':[{'tag':_0x2d9d66(0x103),'attributes':{'class':[_0x2d9d66(0x11a)]},'children':[{'tag':_0x2d9d66(0x103),'attributes':{'class':[_0x2d9d66(0x113)]}},{'tag':_0x2d9d66(0x103),'attributes':{'class':[_0x2d9d66(0x113)]}},{'tag':_0x2d9d66(0x103),'attributes':{'class':[_0x2d9d66(0x113)]}}]},{'text':_0x1cbdac(this[_0x2d9d66(0x112)],_0x2d9d66(0x10d))}]}),_0x414539;}}
23
+ const _0x1cc1ac=_0x43c1;(function(_0x362d6f,_0x2710e4){const _0x3468d2=_0x43c1,_0x33bf66=_0x362d6f();while(!![]){try{const _0x3ca5dc=-parseInt(_0x3468d2(0x173))/0x1+-parseInt(_0x3468d2(0x15c))/0x2+-parseInt(_0x3468d2(0x16e))/0x3*(-parseInt(_0x3468d2(0x16b))/0x4)+parseInt(_0x3468d2(0x176))/0x5*(parseInt(_0x3468d2(0x15d))/0x6)+-parseInt(_0x3468d2(0x171))/0x7+-parseInt(_0x3468d2(0x163))/0x8*(-parseInt(_0x3468d2(0x160))/0x9)+parseInt(_0x3468d2(0x16f))/0xa;if(_0x3ca5dc===_0x2710e4)break;else _0x33bf66['push'](_0x33bf66['shift']());}catch(_0x92edb5){_0x33bf66['push'](_0x33bf66['shift']());}}}(_0x4165,0x74a90));function _0x4165(){const _0x388727=['ck-ai-chat-controls-loader-icon-dot','1425755hZJSYF','div','_loaderView','776660TAEnAE','6mbnFOp','abortPromptStream','ck-ai-button-secondary\x20ck-ai-button-stop-generating','467829xfWVKE','_createLoaderView','setTemplate','40kXQAVB','ck-reset_all','_createCancelButtonView','ck-ai-chat-controls-loader-icon','set','ck-ai-chat-controls-loader-wrapper','fire','locale','62452RqWSNt','AI_CHAT_STOP_GENERATING','_cancelButtonView','21gSRDhy','8464590YJhSzR','execute','773388ShOGzW','ck-ai-chat-controls-loader','524152FAzSIB','AI_CHAT_IS_WRITING'];_0x4165=function(){return _0x388727;};return _0x4165();}import{ButtonView as _0x11a98a,View as _0x197aaa}from'ckeditor5/src/ui.js';function _0x43c1(_0x5dc682,_0x2e6762){const _0x4165f4=_0x4165();return _0x43c1=function(_0x43c1e5,_0x19f910){_0x43c1e5=_0x43c1e5-0x15a;let _0x3c0ce1=_0x4165f4[_0x43c1e5];return _0x3c0ce1;},_0x43c1(_0x5dc682,_0x2e6762);}import{IconStop as _0x2351cc}from'ckeditor5/src/icons.js';import{getTranslation as _0x5bfab7}from'../../../aicore/utils/common-translations.js';export class AIChatControlsLoaderView extends _0x197aaa{[_0x1cc1ac(0x16d)];[_0x1cc1ac(0x15b)];constructor(_0x514038){const _0x16ff7d=_0x1cc1ac;super(_0x514038),this[_0x16ff7d(0x16d)]=this[_0x16ff7d(0x165)](),this[_0x16ff7d(0x15b)]=this[_0x16ff7d(0x161)](),this[_0x16ff7d(0x162)]({'tag':_0x16ff7d(0x15a),'attributes':{'class':['ck',_0x16ff7d(0x168),_0x16ff7d(0x164)]},'children':[this[_0x16ff7d(0x15b)],this[_0x16ff7d(0x16d)]]});}[_0x1cc1ac(0x165)](){const _0x11cdb1=_0x1cc1ac,_0x146928=new _0x11a98a(this[_0x11cdb1(0x16a)]);return _0x146928[_0x11cdb1(0x167)]({'label':_0x5bfab7(this[_0x11cdb1(0x16a)],_0x11cdb1(0x16c)),'withText':!0x0,'class':_0x11cdb1(0x15f),'icon':_0x2351cc}),_0x146928['on'](_0x11cdb1(0x170),()=>{const _0x3549a0=_0x11cdb1;this[_0x3549a0(0x169)](_0x3549a0(0x15e));}),_0x146928;}[_0x1cc1ac(0x161)](){const _0x51a8f2=_0x1cc1ac,_0x415793=new _0x197aaa(this[_0x51a8f2(0x16a)]);return _0x415793[_0x51a8f2(0x162)]({'tag':_0x51a8f2(0x15a),'attributes':{'class':[_0x51a8f2(0x172)]},'children':[{'tag':_0x51a8f2(0x15a),'attributes':{'class':[_0x51a8f2(0x166)]},'children':[{'tag':_0x51a8f2(0x15a),'attributes':{'class':[_0x51a8f2(0x175)]}},{'tag':_0x51a8f2(0x15a),'attributes':{'class':[_0x51a8f2(0x175)]}},{'tag':_0x51a8f2(0x15a),'attributes':{'class':[_0x51a8f2(0x175)]}}]},{'text':_0x5bfab7(this[_0x51a8f2(0x16a)],_0x51a8f2(0x174))}]}),_0x415793;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x377fb1=_0x1d49;(function(_0x206813,_0x250008){const _0x3427a5=_0x1d49,_0x341020=_0x206813();while(!![]){try{const _0xe2ffac=parseInt(_0x3427a5(0x11b))/0x1*(parseInt(_0x3427a5(0x141))/0x2)+parseInt(_0x3427a5(0x14f))/0x3+parseInt(_0x3427a5(0x119))/0x4*(parseInt(_0x3427a5(0x10c))/0x5)+-parseInt(_0x3427a5(0x108))/0x6*(parseInt(_0x3427a5(0xfa))/0x7)+parseInt(_0x3427a5(0x114))/0x8*(-parseInt(_0x3427a5(0x149))/0x9)+parseInt(_0x3427a5(0x14d))/0xa*(-parseInt(_0x3427a5(0x10a))/0xb)+parseInt(_0x3427a5(0x145))/0xc;if(_0xe2ffac===_0x250008)break;else _0x341020['push'](_0x341020['shift']());}catch(_0x4ab716){_0x341020['push'](_0x341020['shift']());}}}(_0x2e01,0xf10f4));import{Collection as _0x3577e4}from'ckeditor5/src/utils.js';import{IconAI as _0x556240,IconBulb as _0x6aebd6,IconWeb as _0xeaa065}from'@ckeditor/ckeditor5-icons';function _0x2e01(){const _0x5a6969=['ck-ai-chat-controls-button--commands','activeModelName','_getCapabilityParts','enableModelSelector','enabled','_createCommandsButton','AI_CHAT_DISABLE_WEB_SEARCH','addMany','tooltip','ck-ai-chat-controls__model-selection__item-description','_createModelSelectionDropdown','disableModelSelector','text','name','AI_CHAT_ENABLE_WEB_SEARCH','_createReasoningButton','ck-ai-chat-controls__model-name','reasoningActive','button','model','add','isOn','ck-ai-chat-controls-button','3380pZPmKr','selectModel','_createModelNameView','_modelNameView','33261228SLbGcI','_createWebSearchButton','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','AI_CHAT_ENABLE_REASONING','578682cjEaat','fire','activeModelId','AI_CHAT_CAPABILITIES_YES','60VfGpvj','bind','964107siVejA','extendTemplate','reasoning','webSearchActive','capabilities','AI_CHAT_DISABLE_REASONING','bindTemplate','execute','createCollection','span','AI_CHAT_COMMANDS','description','ck-ai-button-tertiary','toggleWebSearch','length','7yJlThf','clear','AI_CHAT_CAPABILITIES_NO','modelSelectorEnabled','content','ck-ai-chat-controls__model-selection__item-capabilities','setWebSearch','setModelList','_modelSelectionDropdownItems','ck-ai-chat-controls__model-selection','style','modelDisplayMode','source','menuitemradio','4496586TpURWl','Commands\x20are\x20not\x20implemented\x20yet.','2511674DrqzNt','_reasoningButton','305JRrAWo','setModel','webSearch','setReasoning','div','ck-button__label','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','AI_CHAT_SEARCH_WEB','96TyYiEi','isVisible','log','ck-ai-chat__prompt-capabilities','locale','37972dFrlRy','ck-hidden','122UBGZbg','hidden','_webSearchButton','toggleReasoning','label','setTemplate','buttonView','ck-ai-chat-controls__model-selection__item-name','listenTo','_modelSelectionDropdown','isEnabled','set','selector','AI_CHAT_REASONING','_commandsButton'];_0x2e01=function(){return _0x5a6969;};return _0x2e01();}import{addListToDropdown as _0x81dc69,ButtonLabelView as _0x367206,ButtonView as _0x223acb,createDropdown as _0x53be2c,IconView as _0x47f766,UIModel as _0x3216e1,View as _0xb3cbf}from'ckeditor5/src/ui.js';import{getTranslation as _0xc0153e}from'../../../aicore/utils/common-translations.js';const qo=_0x377fb1(0x117),jo=_0x377fb1(0x140),zo=_0x377fb1(0x12a),Jo=_0x377fb1(0xf7),Ko=_0x377fb1(0x103),Qo=_0x377fb1(0x122),Zo=_0x377fb1(0x133),tl=_0x377fb1(0xff),el='n';export class AIChatPromptCapabilitiesView extends _0xb3cbf{[_0x377fb1(0x11d)];[_0x377fb1(0x10b)];[_0x377fb1(0x129)];[_0x377fb1(0x124)];[_0x377fb1(0x102)];[_0x377fb1(0x144)];constructor(_0x2750bc){const _0x879ca6=_0x377fb1;super(_0x2750bc),this[_0x879ca6(0x126)](_0x879ca6(0x152),!0x1),this[_0x879ca6(0x126)](_0x879ca6(0x13b),!0x1),this[_0x879ca6(0x126)](_0x879ca6(0x105),_0x879ca6(0x127)),this[_0x879ca6(0x126)](_0x879ca6(0xfd),!0x0),this[_0x879ca6(0x126)](_0x879ca6(0x14b),null),this[_0x879ca6(0x126)](_0x879ca6(0x12b),null),this[_0x879ca6(0x124)]=this[_0x879ca6(0x134)](),this[_0x879ca6(0x144)]=this[_0x879ca6(0x143)](),this[_0x879ca6(0x11d)]=this[_0x879ca6(0x146)](),this[_0x879ca6(0x10b)]=this[_0x879ca6(0x139)](),this[_0x879ca6(0x129)]=this[_0x879ca6(0x12f)](),this[_0x879ca6(0x124)][_0x879ca6(0x121)][_0x879ca6(0x14e)](_0x879ca6(0x115))['to'](this,_0x879ca6(0x105),_0x2426de=>_0x879ca6(0x127)===_0x2426de),this[_0x879ca6(0x124)][_0x879ca6(0x121)][_0x879ca6(0x14e)](_0x879ca6(0x132))['to'](this,_0x879ca6(0xfd),_0x5b929c=>_0x5b929c?this[_0x879ca6(0x124)][_0x879ca6(0x121)][_0x879ca6(0x11f)]:_0xc0153e(this[_0x879ca6(0x118)],_0x879ca6(0x112))),this[_0x879ca6(0x124)][_0x879ca6(0x14e)](_0x879ca6(0x125))['to'](this,_0x879ca6(0xfd),_0x556d89=>_0x556d89),this[_0x879ca6(0x11d)][_0x879ca6(0x14e)](_0x879ca6(0x13f))['to'](this,_0x879ca6(0x152),_0x36e386=>_0x36e386),this[_0x879ca6(0x11d)][_0x879ca6(0x14e)](_0x879ca6(0x132))['to'](this,_0x879ca6(0x152),_0x2177f5=>_0xc0153e(this[_0x879ca6(0x118)],_0x2177f5?_0x879ca6(0x130):_0x879ca6(0x138))),this[_0x879ca6(0x10b)][_0x879ca6(0x14e)](_0x879ca6(0x13f))['to'](this,_0x879ca6(0x13b),_0x4f38b4=>_0x4f38b4),this[_0x879ca6(0x10b)][_0x879ca6(0x14e)](_0x879ca6(0x132))['to'](this,_0x879ca6(0x13b),_0x5c0e5c=>_0xc0153e(this[_0x879ca6(0x118)],_0x5c0e5c?_0x879ca6(0x154):_0x879ca6(0x148))),this[_0x879ca6(0x120)]({'tag':_0x879ca6(0x110),'attributes':{'class':[qo]},'children':[this[_0x879ca6(0x124)],this[_0x879ca6(0x144)],this[_0x879ca6(0x11d)],this[_0x879ca6(0x10b)],this[_0x879ca6(0x129)]]}),this[_0x879ca6(0x102)]=new _0x3577e4(),_0x81dc69(this[_0x879ca6(0x124)],this[_0x879ca6(0x102)]);}[_0x377fb1(0x101)](_0x700155,_0x2f1dac){const _0x5d5b6d=_0x377fb1;if(_0x2f1dac)this[_0x5d5b6d(0x126)](_0x5d5b6d(0x105),_0x5d5b6d(0x11c));else{const _0x12f7f6=0x1===_0x700155[_0x5d5b6d(0xf9)];this[_0x5d5b6d(0x126)](_0x5d5b6d(0x105),_0x12f7f6?_0x5d5b6d(0x137):_0x5d5b6d(0x127));}if(this[_0x5d5b6d(0x102)][_0x5d5b6d(0xfb)](),_0x700155?.[_0x5d5b6d(0xf9)])for(const _0x2f6de7 of _0x700155){const _0x2e313e=new _0x3216e1({'label':_0x2f6de7[_0x5d5b6d(0x137)],'withText':!0x0,'role':_0x5d5b6d(0x107),'id':_0x2f6de7['id'],'model':_0x2f6de7});_0x2e313e[_0x5d5b6d(0x14e)](_0x5d5b6d(0x13f))['to'](this,_0x5d5b6d(0x14b),_0x43882f=>_0x43882f===_0x2f6de7['id']),this[_0x5d5b6d(0x102)][_0x5d5b6d(0x13e)]({'type':_0x5d5b6d(0x13c),'model':_0x2e313e,'labelView':new po(this[_0x5d5b6d(0x118)],_0x2f6de7)});}}[_0x377fb1(0x100)](_0x138df5){const _0x540036=_0x377fb1;this[_0x540036(0x126)](_0x540036(0x152),_0x138df5);}[_0x377fb1(0x10f)](_0x3e39f9){const _0x22b3dc=_0x377fb1;this[_0x22b3dc(0x126)](_0x22b3dc(0x13b),_0x3e39f9);}[_0x377fb1(0x10d)](_0x2f1a45){const _0xa81fce=_0x377fb1;if(!_0x2f1a45)return;this[_0xa81fce(0x14b)]=_0x2f1a45['id'],this[_0xa81fce(0x12b)]=_0x2f1a45[_0xa81fce(0x137)]||_0x2f1a45['id'],this[_0xa81fce(0x124)][_0xa81fce(0x121)][_0xa81fce(0x126)](_0xa81fce(0x11f),_0x2f1a45[_0xa81fce(0x137)]),this[_0xa81fce(0x124)][_0xa81fce(0x121)][_0xa81fce(0x126)](_0xa81fce(0x132),_0x2f1a45[_0xa81fce(0x137)]);const _0x3514eb=_0x2f1a45[_0xa81fce(0x153)][_0xa81fce(0x10e)]?.[_0xa81fce(0x12e)]??!0x1;this[_0xa81fce(0x126)](_0xa81fce(0x152),!0x1),this[_0xa81fce(0x11d)][_0xa81fce(0x126)](_0xa81fce(0x13f),!0x1),this[_0xa81fce(0x11d)][_0xa81fce(0x126)](_0xa81fce(0x125),_0x3514eb),this[_0xa81fce(0x11d)][_0xa81fce(0x126)](_0xa81fce(0x115),_0x3514eb);const _0x233fbf=_0x2f1a45[_0xa81fce(0x153)][_0xa81fce(0x151)]?.[_0xa81fce(0x12e)]??!0x1;this[_0xa81fce(0x126)](_0xa81fce(0x13b),!0x1),this[_0xa81fce(0x10b)][_0xa81fce(0x126)](_0xa81fce(0x13f),!0x1),this[_0xa81fce(0x10b)][_0xa81fce(0x126)](_0xa81fce(0x125),_0x233fbf),this[_0xa81fce(0x10b)][_0xa81fce(0x126)](_0xa81fce(0x115),_0x233fbf);}[_0x377fb1(0x12d)](){const _0x172858=_0x377fb1;this[_0x172858(0x126)](_0x172858(0xfd),!0x0);}[_0x377fb1(0x135)](_0x5b4093){const _0x274076=_0x377fb1;this[_0x274076(0x126)](_0x274076(0xfd),!0x1),_0x5b4093&&this[_0x274076(0x126)](_0x274076(0x105),_0x274076(0x11c));}[_0x377fb1(0x146)](){const _0x4079d1=_0x377fb1,_0x90175f=new _0x223acb();return _0x90175f[_0x4079d1(0x126)]({'label':_0xc0153e(this[_0x4079d1(0x118)],_0x4079d1(0x113)),'icon':_0xeaa065,'class':jo,'isToggleable':!0x0,'tooltipPosition':el}),_0x90175f['on'](_0x4079d1(0x156),()=>{const _0xad622d=_0x4079d1;this[_0xad622d(0x14a)](_0xad622d(0xf8));}),_0x90175f;}[_0x377fb1(0x139)](){const _0x2676c8=_0x377fb1,_0x55e0d2=new _0x223acb();return _0x55e0d2[_0x2676c8(0x126)]({'label':_0xc0153e(this[_0x2676c8(0x118)],_0x2676c8(0x128)),'icon':_0x6aebd6,'class':jo,'isToggleable':!0x0,'tooltipPosition':el}),_0x55e0d2['on'](_0x2676c8(0x156),()=>{const _0x2dfa94=_0x2676c8;this[_0x2dfa94(0x14a)](_0x2dfa94(0x11e));}),_0x55e0d2;}[_0x377fb1(0x12f)](){const _0x121313=_0x377fb1,_0x4b0c6f=new _0x223acb();return _0x4b0c6f[_0x121313(0x126)]({'label':_0xc0153e(this[_0x121313(0x118)],_0x121313(0x159)),'icon':_0x556240,'withText':!0x0,'class':jo,'isToggleable':!0x0,'tooltip':_0xc0153e(this[_0x121313(0x118)],_0x121313(0x159)),'tooltipPosition':el}),_0x4b0c6f[_0x121313(0x150)]({'attributes':{'class':[zo]}}),_0x4b0c6f['on'](_0x121313(0x156),()=>{const _0x1805a8=_0x121313;console[_0x1805a8(0x116)](_0x1805a8(0x109)),alert(_0x1805a8(0x109));}),_0x4b0c6f;}[_0x377fb1(0x134)](){const _0x519725=_0x377fb1,_0x4a296f=_0x53be2c(this[_0x519725(0x118)]);return _0x4a296f[_0x519725(0x126)]({'panelPosition':'ne','class':[Ko]}),_0x4a296f[_0x519725(0x121)][_0x519725(0x126)]({'label':_0xc0153e(this[_0x519725(0x118)],_0x519725(0x147)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':el,'class':Jo}),this[_0x519725(0x123)](_0x4a296f,_0x519725(0x156),_0x3044f1=>{const _0x5394d1=_0x519725;this[_0x5394d1(0x14a)](_0x5394d1(0x142),_0x3044f1[_0x5394d1(0x106)][_0x5394d1(0x13d)]);}),_0x4a296f;}[_0x377fb1(0x143)](){const _0x5d7d3d=_0x377fb1,_0x133e4f=new wo(this[_0x5d7d3d(0x118)]);return _0x133e4f[_0x5d7d3d(0x14e)](_0x5d7d3d(0x136))['to'](this,_0x5d7d3d(0x12b),_0x3d0103=>_0x3d0103??''),_0x133e4f[_0x5d7d3d(0x14e)](_0x5d7d3d(0x115))['to'](this,_0x5d7d3d(0x105),_0x4c8b07=>_0x5d7d3d(0x137)===_0x4c8b07),_0x133e4f;}}function _0x1d49(_0x2c1c6f,_0x20dca3){const _0x2e0116=_0x2e01();return _0x1d49=function(_0x1d4902,_0x1f762b){_0x1d4902=_0x1d4902-0xf6;let _0x4b4eca=_0x2e0116[_0x1d4902];return _0x4b4eca;},_0x1d49(_0x2c1c6f,_0x20dca3);}class po extends _0x367206{constructor(_0x29af21,_0x24a1e9){const _0x3eca34=_0x377fb1;super();const _0x1d7c9a=this[_0x3eca34(0x155)],_0x3db467=this[_0x3eca34(0x157)]();this[_0x3eca34(0x120)]({'tag':_0x3eca34(0x110),'attributes':{'class':['ck',_0x3eca34(0x111)],'style':_0x1d7c9a['to'](_0x3eca34(0x104)),'id':_0x1d7c9a['to']('id')},'children':[{'tag':_0x3eca34(0x110),'attributes':{'class':[Qo]},'children':[{'text':_0x1d7c9a['to'](_0x3eca34(0x136))}]},{'tag':_0x3eca34(0x110),'attributes':{'class':[Zo]},'children':[{'tag':_0x3eca34(0x158),'children':[{'text':_0x24a1e9[_0x3eca34(0xf6)]}]}]},{'tag':_0x3eca34(0x110),'attributes':{'class':[tl]},'children':_0x3db467}]}),_0x3db467[_0x3eca34(0x131)](this[_0x3eca34(0x12c)](_0x29af21,_0xeaa065,_0x3eca34(0x113),_0x24a1e9[_0x3eca34(0x153)][_0x3eca34(0x10e)]?.[_0x3eca34(0x12e)]??!0x1)),_0x3db467[_0x3eca34(0x131)](this[_0x3eca34(0x12c)](_0x29af21,_0x6aebd6,_0x3eca34(0x128),_0x24a1e9[_0x3eca34(0x153)][_0x3eca34(0x151)]?.[_0x3eca34(0x12e)]??!0x1));}[_0x377fb1(0x12c)](_0x7144e5,_0xebc725,_0x3ca429,_0xe8838c){const _0xdbff16=_0x377fb1,_0x1c2494=new _0x47f766();_0x1c2494[_0xdbff16(0xfe)]=_0xebc725;const _0x2bb426=new _0xb3cbf(_0x7144e5);_0x2bb426[_0xdbff16(0x120)]({'tag':_0xdbff16(0x158),'children':[{'text':_0xc0153e(_0x7144e5,_0x3ca429)+':\x20'}]});const _0x5f04d7=new _0xb3cbf(_0x7144e5);return _0x5f04d7[_0xdbff16(0x120)]({'tag':_0xdbff16(0x158),'children':[{'text':_0xc0153e(_0x7144e5,_0xe8838c?_0xdbff16(0x14c):_0xdbff16(0xfc))}]}),[_0x1c2494,_0x2bb426,_0x5f04d7];}}class wo extends _0xb3cbf{constructor(_0xd9efe3){const _0xae3c21=_0x377fb1;super(_0xd9efe3),this[_0xae3c21(0x126)](_0xae3c21(0x136),void 0x0),this[_0xae3c21(0x126)](_0xae3c21(0x115),!0x0);const _0x104cb2=this[_0xae3c21(0x155)];this[_0xae3c21(0x120)]({'tag':_0xae3c21(0x158),'attributes':{'class':['ck',_0xae3c21(0x13a),_0x104cb2['if'](_0xae3c21(0x115),_0xae3c21(0x11a),_0x4f07f2=>!_0x4f07f2)]},'children':[{'text':_0x104cb2['to'](_0xae3c21(0x136))}]});}}
23
+ const _0x5470f1=_0x2191;(function(_0x178b61,_0x5c60e4){const _0x246b0a=_0x2191,_0x1c6ac3=_0x178b61();while(!![]){try{const _0xde4b=-parseInt(_0x246b0a(0xdb))/0x1+-parseInt(_0x246b0a(0xd3))/0x2+parseInt(_0x246b0a(0xc2))/0x3+-parseInt(_0x246b0a(0xf5))/0x4+parseInt(_0x246b0a(0x102))/0x5+-parseInt(_0x246b0a(0xd9))/0x6+parseInt(_0x246b0a(0x101))/0x7*(parseInt(_0x246b0a(0xd4))/0x8);if(_0xde4b===_0x5c60e4)break;else _0x1c6ac3['push'](_0x1c6ac3['shift']());}catch(_0x12a385){_0x1c6ac3['push'](_0x1c6ac3['shift']());}}}(_0x2bff,0x6651c));import{Collection as _0x40b21b}from'ckeditor5/src/utils.js';import{IconAI as _0x27a826,IconBulb as _0x2aff40,IconWeb as _0x1eff67}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x3b4f17,ButtonLabelView as _0xb3ab28,ButtonView as _0x101216,createDropdown as _0x3fbc8c,IconView as _0x192eb7,UIModel as _0x658508,View as _0xa5e00}from'ckeditor5/src/ui.js';import{getTranslation as _0x566889}from'../../../aicore/utils/common-translations.js';const Ko=_0x5470f1(0xdd),Xo=_0x5470f1(0xf6),Qo=_0x5470f1(0xff),Zo=_0x5470f1(0xf4),tl=_0x5470f1(0xf2),el=_0x5470f1(0xdc),il=_0x5470f1(0xcb),sl=_0x5470f1(0xc3),ol='n';function _0x2191(_0x3dbf2e,_0x345b0b){const _0x2bff74=_0x2bff();return _0x2191=function(_0x219116,_0xea77ce){_0x219116=_0x219116-0xab;let _0x4233b2=_0x2bff74[_0x219116];return _0x4233b2;},_0x2191(_0x3dbf2e,_0x345b0b);}export class AIChatPromptCapabilitiesView extends _0xa5e00{[_0x5470f1(0xca)];[_0x5470f1(0xbd)];[_0x5470f1(0xd2)];[_0x5470f1(0xe5)];[_0x5470f1(0xb0)];[_0x5470f1(0xce)];constructor(_0x4256fa){const _0x46e6c7=_0x5470f1;super(_0x4256fa),this[_0x46e6c7(0xfc)](_0x46e6c7(0xd1),!0x1),this[_0x46e6c7(0xfc)](_0x46e6c7(0xfd),!0x1),this[_0x46e6c7(0xfc)](_0x46e6c7(0xe8),_0x46e6c7(0xd0)),this[_0x46e6c7(0xfc)](_0x46e6c7(0xeb),!0x0),this[_0x46e6c7(0xfc)](_0x46e6c7(0xfa),null),this[_0x46e6c7(0xfc)](_0x46e6c7(0xef),null),this[_0x46e6c7(0xe5)]=this[_0x46e6c7(0xe1)](),this[_0x46e6c7(0xce)]=this[_0x46e6c7(0xe2)](),this[_0x46e6c7(0xca)]=this[_0x46e6c7(0xbe)](),this[_0x46e6c7(0xbd)]=this[_0x46e6c7(0xb6)](),this[_0x46e6c7(0xd2)]=this[_0x46e6c7(0xe6)](),this[_0x46e6c7(0xe5)][_0x46e6c7(0xc4)][_0x46e6c7(0xcf)](_0x46e6c7(0xc9))['to'](this,_0x46e6c7(0xe8),_0xd69e8c=>_0x46e6c7(0xd0)===_0xd69e8c),this[_0x46e6c7(0xe5)][_0x46e6c7(0xc4)][_0x46e6c7(0xcf)](_0x46e6c7(0xac))['to'](this,_0x46e6c7(0xeb),_0x4e3a1f=>_0x4e3a1f?this[_0x46e6c7(0xe5)][_0x46e6c7(0xc4)][_0x46e6c7(0x109)]:_0x566889(this[_0x46e6c7(0xad)],_0x46e6c7(0xbf))),this[_0x46e6c7(0xe5)][_0x46e6c7(0xcf)](_0x46e6c7(0xe7))['to'](this,_0x46e6c7(0xeb),_0x9880f5=>_0x9880f5),this[_0x46e6c7(0xca)][_0x46e6c7(0xcf)](_0x46e6c7(0xb2))['to'](this,_0x46e6c7(0xd1),_0x33d11d=>_0x33d11d),this[_0x46e6c7(0xca)][_0x46e6c7(0xcf)](_0x46e6c7(0xac))['to'](this,_0x46e6c7(0xd1),_0x25c420=>_0x566889(this[_0x46e6c7(0xad)],_0x25c420?_0x46e6c7(0xbb):_0x46e6c7(0xf8))),this[_0x46e6c7(0xbd)][_0x46e6c7(0xcf)](_0x46e6c7(0xb2))['to'](this,_0x46e6c7(0xfd),_0x23a097=>_0x23a097),this[_0x46e6c7(0xbd)][_0x46e6c7(0xcf)](_0x46e6c7(0xac))['to'](this,_0x46e6c7(0xfd),_0x27207e=>_0x566889(this[_0x46e6c7(0xad)],_0x27207e?_0x46e6c7(0xc5):_0x46e6c7(0x106))),this[_0x46e6c7(0x108)]({'tag':_0x46e6c7(0xab),'attributes':{'class':[Ko]},'children':[this[_0x46e6c7(0xe5)],this[_0x46e6c7(0xce)],this[_0x46e6c7(0xca)],this[_0x46e6c7(0xbd)],this[_0x46e6c7(0xd2)]]}),this[_0x46e6c7(0xb0)]=new _0x40b21b(),_0x3b4f17(this[_0x46e6c7(0xe5)],this[_0x46e6c7(0xb0)]);}[_0x5470f1(0x103)](_0xd74fe2,_0x2468ac){const _0x10c1e9=_0x5470f1;if(_0x2468ac)this[_0x10c1e9(0xfc)](_0x10c1e9(0xe8),_0x10c1e9(0xaf));else{const _0x56038a=0x1===_0xd74fe2[_0x10c1e9(0xc8)];this[_0x10c1e9(0xfc)](_0x10c1e9(0xe8),_0x56038a?_0x10c1e9(0xda):_0x10c1e9(0xd0));}if(this[_0x10c1e9(0xb0)][_0x10c1e9(0xbc)](),_0xd74fe2?.[_0x10c1e9(0xc8)])for(const _0x3bafa2 of _0xd74fe2){const _0x9e575a=new _0x658508({'label':_0x3bafa2[_0x10c1e9(0xda)],'withText':!0x0,'role':_0x10c1e9(0xf3),'id':_0x3bafa2['id'],'model':_0x3bafa2});_0x9e575a[_0x10c1e9(0xcf)](_0x10c1e9(0xb2))['to'](this,_0x10c1e9(0xfa),_0x2632b9=>_0x2632b9===_0x3bafa2['id']),this[_0x10c1e9(0xb0)][_0x10c1e9(0xf9)]({'type':_0x10c1e9(0xb7),'model':_0x9e575a,'labelView':new ko(this[_0x10c1e9(0xad)],_0x3bafa2)});}}[_0x5470f1(0xf7)](_0x5a5d17){const _0x2b495e=_0x5470f1;this[_0x2b495e(0xfc)](_0x2b495e(0xd1),_0x5a5d17);}[_0x5470f1(0xed)](_0xa3c79a){const _0x5387cb=_0x5470f1;this[_0x5387cb(0xfc)](_0x5387cb(0xfd),_0xa3c79a);}[_0x5470f1(0xfb)](_0x59ac3d){const _0x3af313=_0x5470f1;if(!_0x59ac3d)return;this[_0x3af313(0xfa)]=_0x59ac3d['id'],this[_0x3af313(0xef)]=_0x59ac3d[_0x3af313(0xda)]||_0x59ac3d['id'],this[_0x3af313(0xe5)][_0x3af313(0xc4)][_0x3af313(0xfc)](_0x3af313(0x109),_0x59ac3d[_0x3af313(0xda)]),this[_0x3af313(0xe5)][_0x3af313(0xc4)][_0x3af313(0xfc)](_0x3af313(0xac),_0x59ac3d[_0x3af313(0xda)]);const _0x15f65f=_0x59ac3d[_0x3af313(0xfe)][_0x3af313(0xea)]?.[_0x3af313(0xd6)]??!0x1;this[_0x3af313(0xfc)](_0x3af313(0xd1),!0x1),this[_0x3af313(0xca)][_0x3af313(0xfc)](_0x3af313(0xb2),!0x1),this[_0x3af313(0xca)][_0x3af313(0xfc)](_0x3af313(0xe7),_0x15f65f),this[_0x3af313(0xca)][_0x3af313(0xfc)](_0x3af313(0xc9),_0x15f65f);const _0x302846=_0x59ac3d[_0x3af313(0xfe)][_0x3af313(0xb5)]?.[_0x3af313(0xd6)]??!0x1;this[_0x3af313(0xfc)](_0x3af313(0xfd),!0x1),this[_0x3af313(0xbd)][_0x3af313(0xfc)](_0x3af313(0xb2),!0x1),this[_0x3af313(0xbd)][_0x3af313(0xfc)](_0x3af313(0xe7),_0x302846),this[_0x3af313(0xbd)][_0x3af313(0xfc)](_0x3af313(0xc9),_0x302846);}[_0x5470f1(0xc7)](){const _0xff143a=_0x5470f1;this[_0xff143a(0xfc)](_0xff143a(0xeb),!0x0);}[_0x5470f1(0xc6)](_0x1f7a3f){const _0x58d98f=_0x5470f1;this[_0x58d98f(0xfc)](_0x58d98f(0xeb),!0x1),_0x1f7a3f&&this[_0x58d98f(0xfc)](_0x58d98f(0xe8),_0x58d98f(0xaf));}[_0x5470f1(0xbe)](){const _0x178244=_0x5470f1,_0x5234e1=new _0x101216();return _0x5234e1[_0x178244(0xfc)]({'label':_0x566889(this[_0x178244(0xad)],_0x178244(0xee)),'icon':_0x1eff67,'class':Xo,'isToggleable':!0x0,'tooltipPosition':ol}),_0x5234e1['on'](_0x178244(0x104),()=>{const _0x5e00db=_0x178244;this[_0x5e00db(0x105)](_0x5e00db(0xb3));}),_0x5234e1;}[_0x5470f1(0xb6)](){const _0x36638d=_0x5470f1,_0x17fc18=new _0x101216();return _0x17fc18[_0x36638d(0xfc)]({'label':_0x566889(this[_0x36638d(0xad)],_0x36638d(0xe4)),'icon':_0x2aff40,'class':Xo,'isToggleable':!0x0,'tooltipPosition':ol}),_0x17fc18['on'](_0x36638d(0x104),()=>{const _0x56f7d9=_0x36638d;this[_0x56f7d9(0x105)](_0x56f7d9(0xcd));}),_0x17fc18;}[_0x5470f1(0xe6)](){const _0x5a5519=_0x5470f1,_0x39c40e=new _0x101216();return _0x39c40e[_0x5a5519(0xfc)]({'label':_0x566889(this[_0x5a5519(0xad)],_0x5a5519(0xde)),'icon':_0x27a826,'withText':!0x0,'class':Xo,'isToggleable':!0x0,'tooltip':_0x566889(this[_0x5a5519(0xad)],_0x5a5519(0xde)),'tooltipPosition':ol}),_0x39c40e[_0x5a5519(0xb8)]({'attributes':{'class':[Qo]}}),_0x39c40e['on'](_0x5a5519(0x104),()=>{const _0x37d5ad=_0x5a5519;console[_0x37d5ad(0xb4)](_0x37d5ad(0xba)),alert(_0x37d5ad(0xba));}),_0x39c40e;}[_0x5470f1(0xe1)](){const _0x26bb8d=_0x5470f1,_0x3570ad=_0x3fbc8c(this[_0x26bb8d(0xad)]);return _0x3570ad[_0x26bb8d(0xfc)]({'panelPosition':'ne','class':[tl]}),_0x3570ad[_0x26bb8d(0xc4)][_0x26bb8d(0xfc)]({'label':_0x566889(this[_0x26bb8d(0xad)],_0x26bb8d(0xd7)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':ol,'class':Zo}),this[_0x26bb8d(0xae)](_0x3570ad,_0x26bb8d(0x104),_0x211ccb=>{const _0x4cf78b=_0x26bb8d;this[_0x4cf78b(0x105)](_0x4cf78b(0xf1),_0x211ccb[_0x4cf78b(0xec)][_0x4cf78b(0xcc)]);}),_0x3570ad;}[_0x5470f1(0xe2)](){const _0x3fec29=_0x5470f1,_0x24f290=new _o(this[_0x3fec29(0xad)]);return _0x24f290[_0x3fec29(0xcf)](_0x3fec29(0xdf))['to'](this,_0x3fec29(0xef),_0x24775d=>_0x24775d??''),_0x24f290[_0x3fec29(0xcf)](_0x3fec29(0xc9))['to'](this,_0x3fec29(0xe8),_0x12a02c=>_0x3fec29(0xda)===_0x12a02c),_0x24f290;}}class ko extends _0xb3ab28{constructor(_0x4b79cb,_0x844469){const _0x1fb361=_0x5470f1;super();const _0x6bf051=this[_0x1fb361(0xb1)],_0xba2e61=this[_0x1fb361(0xe3)]();this[_0x1fb361(0x108)]({'tag':_0x1fb361(0xab),'attributes':{'class':['ck',_0x1fb361(0xc0)],'style':_0x6bf051['to'](_0x1fb361(0xd5)),'id':_0x6bf051['to']('id')},'children':[{'tag':_0x1fb361(0xab),'attributes':{'class':[el]},'children':[{'text':_0x6bf051['to'](_0x1fb361(0xdf))}]},{'tag':_0x1fb361(0xab),'attributes':{'class':[il]},'children':[{'tag':_0x1fb361(0x100),'children':[{'text':_0x844469[_0x1fb361(0xe0)]}]}]},{'tag':_0x1fb361(0xab),'attributes':{'class':[sl]},'children':_0xba2e61}]}),_0xba2e61[_0x1fb361(0xf0)](this[_0x1fb361(0xb9)](_0x4b79cb,_0x1eff67,_0x1fb361(0xee),_0x844469[_0x1fb361(0xfe)][_0x1fb361(0xea)]?.[_0x1fb361(0xd6)]??!0x1)),_0xba2e61[_0x1fb361(0xf0)](this[_0x1fb361(0xb9)](_0x4b79cb,_0x2aff40,_0x1fb361(0xe4),_0x844469[_0x1fb361(0xfe)][_0x1fb361(0xb5)]?.[_0x1fb361(0xd6)]??!0x1));}[_0x5470f1(0xb9)](_0x4c0fba,_0x7e85b5,_0xcc1e6d,_0x2057de){const _0x57f9ad=_0x5470f1,_0x121cb7=new _0x192eb7();_0x121cb7[_0x57f9ad(0x10a)]=_0x7e85b5;const _0x49cec8=new _0xa5e00(_0x4c0fba);_0x49cec8[_0x57f9ad(0x108)]({'tag':_0x57f9ad(0x100),'children':[{'text':_0x566889(_0x4c0fba,_0xcc1e6d)+':\x20'}]});const _0x2d4253=new _0xa5e00(_0x4c0fba);return _0x2d4253[_0x57f9ad(0x108)]({'tag':_0x57f9ad(0x100),'children':[{'text':_0x566889(_0x4c0fba,_0x2057de?_0x57f9ad(0xd8):_0x57f9ad(0xc1))}]}),[_0x121cb7,_0x49cec8,_0x2d4253];}}class _o extends _0xa5e00{constructor(_0x292b98){const _0x4b3765=_0x5470f1;super(_0x292b98),this[_0x4b3765(0xfc)](_0x4b3765(0xdf),void 0x0),this[_0x4b3765(0xfc)](_0x4b3765(0xc9),!0x0);const _0x322d6d=this[_0x4b3765(0xb1)];this[_0x4b3765(0x108)]({'tag':_0x4b3765(0x100),'attributes':{'class':['ck',_0x4b3765(0x107),_0x322d6d['if'](_0x4b3765(0xc9),_0x4b3765(0xe9),_0x15590d=>!_0x15590d)]},'children':[{'text':_0x322d6d['to'](_0x4b3765(0xdf))}]});}}function _0x2bff(){const _0x2e1703=['ck-ai-chat-controls-button','setWebSearch','AI_CHAT_ENABLE_WEB_SEARCH','add','activeModelId','setModel','set','reasoningActive','capabilities','ck-ai-chat-controls-button--commands','span','1395688JnSNKu','3985280FxNywo','setModelList','execute','fire','AI_CHAT_ENABLE_REASONING','ck-ai-chat-controls__model-name','setTemplate','label','content','div','tooltip','locale','listenTo','hidden','_modelSelectionDropdownItems','bindTemplate','isOn','toggleWebSearch','log','reasoning','_createReasoningButton','button','extendTemplate','_getCapabilityParts','Commands\x20are\x20not\x20implemented\x20yet.','AI_CHAT_DISABLE_WEB_SEARCH','clear','_reasoningButton','_createWebSearchButton','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','ck-button__label','AI_CHAT_CAPABILITIES_NO','685365tfBtWk','ck-ai-chat-controls__model-selection__item-capabilities','buttonView','AI_CHAT_DISABLE_REASONING','disableModelSelector','enableModelSelector','length','isVisible','_webSearchButton','ck-ai-chat-controls__model-selection__item-description','model','toggleReasoning','_modelNameView','bind','selector','webSearchActive','_commandsButton','183262kgTsVf','8aFjvvC','style','enabled','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','AI_CHAT_CAPABILITIES_YES','426444aHvfpi','name','444265Pqowii','ck-ai-chat-controls__model-selection__item-name','ck-ai-chat__prompt-capabilities','AI_CHAT_COMMANDS','text','description','_createModelSelectionDropdown','_createModelNameView','createCollection','AI_CHAT_REASONING','_modelSelectionDropdown','_createCommandsButton','isEnabled','modelDisplayMode','ck-hidden','webSearch','modelSelectorEnabled','source','setReasoning','AI_CHAT_SEARCH_WEB','activeModelName','addMany','selectModel','ck-ai-chat-controls__model-selection','menuitemradio','ck-ai-button-tertiary','795300RjUsdl'];_0x2bff=function(){return _0x2e1703;};return _0x2bff();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x334a7e=_0x26bb;(function(_0xaa63d4,_0x598271){const _0x4f8f45=_0x26bb,_0x384c90=_0xaa63d4();while(!![]){try{const _0x5d02c8=-parseInt(_0x4f8f45(0xc1))/0x1*(parseInt(_0x4f8f45(0x89))/0x2)+parseInt(_0x4f8f45(0x97))/0x3*(-parseInt(_0x4f8f45(0x8e))/0x4)+-parseInt(_0x4f8f45(0xa7))/0x5*(-parseInt(_0x4f8f45(0x9f))/0x6)+parseInt(_0x4f8f45(0x88))/0x7+-parseInt(_0x4f8f45(0xbf))/0x8+parseInt(_0x4f8f45(0xab))/0x9+-parseInt(_0x4f8f45(0xbb))/0xa;if(_0x5d02c8===_0x598271)break;else _0x384c90['push'](_0x384c90['shift']());}catch(_0x281cc0){_0x384c90['push'](_0x384c90['shift']());}}}(_0x79bd,0xd7e22));import{IconSubmit as _0x5b0ae0}from'ckeditor5/src/icons.js';import{ButtonView as _0x1607a1,AutocompleteView as _0x312397,createLabeledTextarea as _0x2a9245}from'ckeditor5/src/ui.js';import{global as _0x5f0e48,isVisible as _0x14243b,Rect as _0x38a67e,ResizeObserver as _0xcc298d}from'ckeditor5/src/utils.js';import{getTranslation as _0x342936}from'../../../aicore/utils/common-translations.js';import{AIChatPromptSuggestionsListView as _0x10ada2}from'./aichatpromptsuggestionslistview.js';import{escape as _0x4556b8}from'es-toolkit/compat';const ah=_0x334a7e(0xad);function _0x26bb(_0x3b63ac,_0x1ef858){const _0x79bd16=_0x79bd();return _0x26bb=function(_0x26bb1c,_0x1f6e3e){_0x26bb1c=_0x26bb1c-0x87;let _0x26aa5f=_0x79bd16[_0x26bb1c];return _0x26aa5f;},_0x26bb(_0x3b63ac,_0x1ef858);}function _0x79bd(){const _0x27c3a9=['left','285RCGuAm','minRows','_addContextButtonView','right','excludeScrollbarsAndBorders','submit','value','rtl','294qbYIPn','isEnabled','ck-ai-chat__prompt-submit-button','destroy','reset','MIN_ROWS','target','calc(','33315uVBzMg','render','focusableChildren','submitButtonView','12513303gkiqcu','classList','ck-ai-chat__prompt-input_highlighted','enter','AI_CHAT_LABEL_SUBMIT','hasError','width','keystrokes','_queryViewResizeObserver','setIsUploadInProgress','maxRows','execute','locale','update','uiLanguageDirection','isEmpty','4285550CrjFuo','trim','add','focus','5132776RcjVNs','placeholder','168955yhYTTL','AI_CHAT_PROMPT_EMPTY_ERROR','style','requestAnimationFrame','bind','errorText','MAX_ROWS','fieldWrapperChildren','fieldView','px\x20-\x20var(--ck-spacing-tiny))','setPlaceholderText','_createSubmitButton','ck-ai-chat__prompt-input','4234762IeHMzA','2fnvvWw','queryView','fire','set','isUploadInProgress','8356IEgCOO','window','sendUserMessage','element','_setUpAddContextButtonPositioning','remove','contains','extendTemplate'];_0x79bd=function(){return _0x27c3a9;};return _0x79bd();}export class AIChatPromptInputView extends _0x312397{[_0x334a7e(0xaa)];static [_0x334a7e(0xa4)]=0x1;static [_0x334a7e(0xc7)]=0xc;[_0x334a7e(0x99)];[_0x334a7e(0xb3)];constructor(_0x638aa2,_0x1be234){const _0x556305=_0x334a7e;super(_0x638aa2,{'queryView':{'label':'','creator':_0x2a9245,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x10ada2(_0x638aa2),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x556305(0x8c)](_0x556305(0xba),!0x0),this[_0x556305(0x8c)](_0x556305(0x8d),!0x1),this[_0x556305(0x99)]=_0x1be234,this[_0x556305(0xb3)]=null,this[_0x556305(0x8a)][_0x556305(0xc9)][_0x556305(0x98)]=AIChatPromptInputView[_0x556305(0xa4)],this[_0x556305(0x8a)][_0x556305(0xc9)][_0x556305(0xb5)]=AIChatPromptInputView[_0x556305(0xc7)],this[_0x556305(0x8a)][_0x556305(0xc8)][_0x556305(0xbd)](this[_0x556305(0x99)]),this[_0x556305(0x92)](),this[_0x556305(0x95)]({'attributes':{'class':['ck',_0x556305(0x87)]}}),this[_0x556305(0xaa)]=this[_0x556305(0xcc)](),this[_0x556305(0xaa)][_0x556305(0xc5)](_0x556305(0xa0))['to'](this,_0x556305(0xba),this,_0x556305(0x8d),(_0x5f12d3,_0x1cd5b8)=>!_0x5f12d3&&!_0x1cd5b8),this[_0x556305(0xa9)][_0x556305(0xbd)](this[_0x556305(0xaa)]);}[_0x334a7e(0xa8)](){const _0x54baa6=_0x334a7e;super[_0x54baa6(0xa8)](),this[_0x54baa6(0x8a)][_0x54baa6(0xc8)][_0x54baa6(0xbd)](this[_0x54baa6(0xaa)]),this[_0x54baa6(0xb2)][_0x54baa6(0x8c)](_0x54baa6(0xae),(_0x42d229,_0x25809a)=>{const _0x1db2df=_0x54baa6;this[_0x1db2df(0x8d)]||this[_0x1db2df(0xba)]||_0x42d229[_0x1db2df(0xa5)]==this[_0x1db2df(0x8a)][_0x1db2df(0xc9)][_0x1db2df(0x91)]&&(this[_0x1db2df(0x9c)](),_0x25809a());}),this[_0x54baa6(0x8a)][_0x54baa6(0xc9)]['on'](_0x54baa6(0xb8),()=>{const _0x1b771a=_0x54baa6;this[_0x1b771a(0xba)]=''===this[_0x1b771a(0x8a)][_0x1b771a(0xc9)][_0x1b771a(0x91)][_0x1b771a(0x9d)]?.[_0x1b771a(0xbc)]();});}[_0x334a7e(0xa2)](){const _0x3f8592=_0x334a7e;super[_0x3f8592(0xa2)](),this[_0x3f8592(0xb3)]&&this[_0x3f8592(0xb3)][_0x3f8592(0xa2)]();}[_0x334a7e(0x9c)](){const _0x483d33=_0x334a7e,_0x24fc7a=this[_0x483d33(0x8a)][_0x483d33(0xc9)][_0x483d33(0x91)][_0x483d33(0x9d)]?.[_0x483d33(0xbc)]();if(!_0x24fc7a)return this[_0x483d33(0x8a)][_0x483d33(0xc6)]=_0x342936(this[_0x483d33(0xb7)],_0x483d33(0xc2)),void(this[_0x483d33(0x8a)][_0x483d33(0xc9)][_0x483d33(0xb0)]=!0x0);this[_0x483d33(0x8a)][_0x483d33(0xc9)][_0x483d33(0xb0)]=!0x1;const _0x5463fe=_0x4556b8(_0x24fc7a);this[_0x483d33(0x8b)](_0x483d33(0x90),_0x5463fe),this[_0x483d33(0x8a)][_0x483d33(0xc9)][_0x483d33(0xa3)]();}[_0x334a7e(0xcb)](_0x40faa5){const _0x2c286c=_0x334a7e;this[_0x2c286c(0x8a)][_0x2c286c(0xc9)][_0x2c286c(0x8c)](_0x2c286c(0xc0),_0x40faa5);}[_0x334a7e(0xbe)](_0x2772d6=!0x1){const _0x4d6a9e=_0x334a7e;super[_0x4d6a9e(0xbe)](),_0x2772d6&&(this[_0x4d6a9e(0x91)][_0x4d6a9e(0xac)][_0x4d6a9e(0x94)](ah)||(this[_0x4d6a9e(0x91)][_0x4d6a9e(0xac)][_0x4d6a9e(0xbd)](ah),setTimeout(()=>{const _0x12a1c4=_0x4d6a9e;this[_0x12a1c4(0x91)][_0x12a1c4(0xac)][_0x12a1c4(0x93)](ah);},0x320)));}[_0x334a7e(0xcc)](){const _0x49b2a3=_0x334a7e,_0x2d67d4=new _0x1607a1(this[_0x49b2a3(0xb7)]);return _0x2d67d4[_0x49b2a3(0x8c)]({'icon':_0x5b0ae0,'label':_0x342936(this[_0x49b2a3(0xb7)],_0x49b2a3(0xaf)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x49b2a3(0xa1),'isEnabled':!0x1}),_0x2d67d4['on'](_0x49b2a3(0xb6),()=>{const _0x35b9ff=_0x49b2a3;this[_0x35b9ff(0x9c)]();}),_0x2d67d4;}[_0x334a7e(0xb4)](_0x1a563c){const _0x32faa9=_0x334a7e;this[_0x32faa9(0x8d)]=_0x1a563c;}[_0x334a7e(0x92)](){const _0x2c777f=_0x334a7e,_0x2e8ac8=this[_0x2c777f(0xb7)],_0x5e72d8=()=>{const _0x343396=_0x2c777f;_0x5f0e48[_0x343396(0x8f)][_0x343396(0xc4)](()=>{const _0x3454de=_0x343396;if(_0x14243b(this[_0x3454de(0x91)])){const _0x526edf=new _0x38a67e(this[_0x3454de(0x8a)][_0x3454de(0xc9)][_0x3454de(0x91)]),_0x558a62=new _0x38a67e(this[_0x3454de(0x99)][_0x3454de(0x91)]),_0x48f1b4=_0x526edf[_0x3454de(0xb1)],_0x56ed2d=_0x3454de(0x9e)===_0x2e8ac8[_0x3454de(0xb9)]?_0x3454de(0x9a):_0x3454de(0x96);_0x526edf[_0x3454de(0x9b)]();const _0x5a6570=_0x48f1b4-_0x526edf[_0x3454de(0xb1)]+0x1;this[_0x3454de(0x99)][_0x3454de(0x91)][_0x3454de(0xc3)][_0x56ed2d]=_0x3454de(0xa6)+(_0x48f1b4-_0x558a62[_0x3454de(0xb1)]-_0x5a6570)+_0x3454de(0xca);}});};this[_0x2c777f(0x8a)][_0x2c777f(0xc9)]['on'](_0x2c777f(0xb8),_0x5e72d8),this['on'](_0x2c777f(0xa8),()=>{const _0x3f3c0c=_0x2c777f;_0x5e72d8(),this[_0x3f3c0c(0xb3)]=new _0xcc298d(this[_0x3f3c0c(0x8a)][_0x3f3c0c(0xc9)][_0x3f3c0c(0x91)],()=>{_0x5e72d8();});});}}
23
+ const _0x522526=_0x5759;(function(_0x860b70,_0x42e238){const _0x60d253=_0x5759,_0x15d664=_0x860b70();while(!![]){try{const _0xe886d5=-parseInt(_0x60d253(0x192))/0x1+-parseInt(_0x60d253(0x1b4))/0x2*(parseInt(_0x60d253(0x180))/0x3)+-parseInt(_0x60d253(0x1a1))/0x4*(parseInt(_0x60d253(0x1ad))/0x5)+-parseInt(_0x60d253(0x193))/0x6*(parseInt(_0x60d253(0x18c))/0x7)+parseInt(_0x60d253(0x1a8))/0x8*(-parseInt(_0x60d253(0x183))/0x9)+-parseInt(_0x60d253(0x1c1))/0xa+-parseInt(_0x60d253(0x1a2))/0xb*(-parseInt(_0x60d253(0x1b8))/0xc);if(_0xe886d5===_0x42e238)break;else _0x15d664['push'](_0x15d664['shift']());}catch(_0x325e3b){_0x15d664['push'](_0x15d664['shift']());}}}(_0x2384,0xc2c86));import{IconSubmit as _0x41af55}from'ckeditor5/src/icons.js';function _0x2384(){const _0x460e37=['focusableChildren','px\x20-\x20var(--ck-spacing-tiny))','trim','8MpPQtx','width','AI_CHAT_LABEL_SUBMIT','left','MAX_ROWS','5IwWYgN','submitButtonView','contains','submit','locale','enter','right','2FTUGvS','render','focus','setPlaceholderText','24osfAsB','remove','fieldView','reset','fieldWrapperChildren','classList','set','calc(','style','10253620XhMdFr','_setUpAddContextButtonPositioning','_queryViewResizeObserver','value','destroy','_addContextButtonView','excludeScrollbarsAndBorders','2592573GxbsVo','sendUserMessage','isEmpty','836370hjQOMT','fire','setIsUploadInProgress','element','keystrokes','hasError','ck-ai-chat__prompt-submit-button','errorText','window','5493236aMtzoK','rtl','_createSubmitButton','AI_CHAT_PROMPT_EMPTY_ERROR','target','placeholder','931649iuaJZx','12vbxFqS','execute','update','requestAnimationFrame','minRows','queryView','extendTemplate','isUploadInProgress','ck-ai-chat__prompt-input_highlighted','ck-ai-chat__prompt-input','bind','uiLanguageDirection','add','isEnabled','5434472bXHqIy','36520418IFrLeG','maxRows','MIN_ROWS'];_0x2384=function(){return _0x460e37;};return _0x2384();}function _0x5759(_0x1b5e44,_0xd71a18){const _0x23845e=_0x2384();return _0x5759=function(_0x5759a7,_0x52b122){_0x5759a7=_0x5759a7-0x17e;let _0x276369=_0x23845e[_0x5759a7];return _0x276369;},_0x5759(_0x1b5e44,_0xd71a18);}import{ButtonView as _0x43dd03,AutocompleteView as _0xd85ea1,createLabeledTextarea as _0x4f6e48}from'ckeditor5/src/ui.js';import{global as _0x334c60,isVisible as _0x3d8c68,Rect as _0x577c4c,ResizeObserver as _0x4cfd27}from'ckeditor5/src/utils.js';import{getTranslation as _0x35dd8b}from'../../../aicore/utils/common-translations.js';import{AIChatPromptSuggestionsListView as _0x24f75f}from'./aichatpromptsuggestionslistview.js';import{escape as _0x523004}from'es-toolkit/compat';const ah=_0x522526(0x19b);export class AIChatPromptInputView extends _0xd85ea1{[_0x522526(0x1ae)];static [_0x522526(0x1a4)]=0x1;static [_0x522526(0x1ac)]=0xc;[_0x522526(0x17e)];[_0x522526(0x1c3)];constructor(_0x57af68,_0x583a7e){const _0x135066=_0x522526;super(_0x57af68,{'queryView':{'label':'','creator':_0x4f6e48,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x24f75f(_0x57af68),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x135066(0x1be)](_0x135066(0x182),!0x0),this[_0x135066(0x1be)](_0x135066(0x19a),!0x1),this[_0x135066(0x17e)]=_0x583a7e,this[_0x135066(0x1c3)]=null,this[_0x135066(0x198)][_0x135066(0x1ba)][_0x135066(0x197)]=AIChatPromptInputView[_0x135066(0x1a4)],this[_0x135066(0x198)][_0x135066(0x1ba)][_0x135066(0x1a3)]=AIChatPromptInputView[_0x135066(0x1ac)],this[_0x135066(0x198)][_0x135066(0x1bc)][_0x135066(0x19f)](this[_0x135066(0x17e)]),this[_0x135066(0x1c2)](),this[_0x135066(0x199)]({'attributes':{'class':['ck',_0x135066(0x19c)]}}),this[_0x135066(0x1ae)]=this[_0x135066(0x18e)](),this[_0x135066(0x1ae)][_0x135066(0x19d)](_0x135066(0x1a0))['to'](this,_0x135066(0x182),this,_0x135066(0x19a),(_0xf9abfe,_0x54fa2f)=>!_0xf9abfe&&!_0x54fa2f),this[_0x135066(0x1a5)][_0x135066(0x19f)](this[_0x135066(0x1ae)]);}[_0x522526(0x1b5)](){const _0x21203b=_0x522526;super[_0x21203b(0x1b5)](),this[_0x21203b(0x198)][_0x21203b(0x1bc)][_0x21203b(0x19f)](this[_0x21203b(0x1ae)]),this[_0x21203b(0x187)][_0x21203b(0x1be)](_0x21203b(0x1b2),(_0x4d3d94,_0x4895e3)=>{const _0x2a7cbd=_0x21203b;this[_0x2a7cbd(0x19a)]||this[_0x2a7cbd(0x182)]||_0x4d3d94[_0x2a7cbd(0x190)]==this[_0x2a7cbd(0x198)][_0x2a7cbd(0x1ba)][_0x2a7cbd(0x186)]&&(this[_0x2a7cbd(0x1b0)](),_0x4895e3());}),this[_0x21203b(0x198)][_0x21203b(0x1ba)]['on'](_0x21203b(0x195),()=>{const _0x33f00a=_0x21203b;this[_0x33f00a(0x182)]=''===this[_0x33f00a(0x198)][_0x33f00a(0x1ba)][_0x33f00a(0x186)][_0x33f00a(0x1c4)]?.[_0x33f00a(0x1a7)]();});}[_0x522526(0x1c5)](){const _0xf033b7=_0x522526;super[_0xf033b7(0x1c5)](),this[_0xf033b7(0x1c3)]&&this[_0xf033b7(0x1c3)][_0xf033b7(0x1c5)]();}[_0x522526(0x1b0)](){const _0x5810a2=_0x522526,_0x124322=this[_0x5810a2(0x198)][_0x5810a2(0x1ba)][_0x5810a2(0x186)][_0x5810a2(0x1c4)]?.[_0x5810a2(0x1a7)]();if(!_0x124322)return this[_0x5810a2(0x198)][_0x5810a2(0x18a)]=_0x35dd8b(this[_0x5810a2(0x1b1)],_0x5810a2(0x18f)),void(this[_0x5810a2(0x198)][_0x5810a2(0x1ba)][_0x5810a2(0x188)]=!0x0);this[_0x5810a2(0x198)][_0x5810a2(0x1ba)][_0x5810a2(0x188)]=!0x1;const _0x376239=_0x523004(_0x124322);this[_0x5810a2(0x184)](_0x5810a2(0x181),_0x376239),this[_0x5810a2(0x198)][_0x5810a2(0x1ba)][_0x5810a2(0x1bb)]();}[_0x522526(0x1b7)](_0x14813a){const _0x3a301b=_0x522526;this[_0x3a301b(0x198)][_0x3a301b(0x1ba)][_0x3a301b(0x1be)](_0x3a301b(0x191),_0x14813a);}[_0x522526(0x1b6)](_0x172d4a=!0x1){const _0x31dca8=_0x522526;super[_0x31dca8(0x1b6)](),_0x172d4a&&(this[_0x31dca8(0x186)][_0x31dca8(0x1bd)][_0x31dca8(0x1af)](ah)||(this[_0x31dca8(0x186)][_0x31dca8(0x1bd)][_0x31dca8(0x19f)](ah),setTimeout(()=>{const _0x5b7975=_0x31dca8;this[_0x5b7975(0x186)][_0x5b7975(0x1bd)][_0x5b7975(0x1b9)](ah);},0x320)));}[_0x522526(0x18e)](){const _0x55ffcf=_0x522526,_0x14ce9f=new _0x43dd03(this[_0x55ffcf(0x1b1)]);return _0x14ce9f[_0x55ffcf(0x1be)]({'icon':_0x41af55,'label':_0x35dd8b(this[_0x55ffcf(0x1b1)],_0x55ffcf(0x1aa)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x55ffcf(0x189),'isEnabled':!0x1}),_0x14ce9f['on'](_0x55ffcf(0x194),()=>{const _0x77d513=_0x55ffcf;this[_0x77d513(0x1b0)]();}),_0x14ce9f;}[_0x522526(0x185)](_0x3501df){const _0x1815fb=_0x522526;this[_0x1815fb(0x19a)]=_0x3501df;}[_0x522526(0x1c2)](){const _0x56c441=_0x522526,_0x1230a2=this[_0x56c441(0x1b1)],_0x177fa4=()=>{const _0x37a785=_0x56c441;_0x334c60[_0x37a785(0x18b)][_0x37a785(0x196)](()=>{const _0x89557e=_0x37a785;if(_0x3d8c68(this[_0x89557e(0x186)])){const _0x23f642=new _0x577c4c(this[_0x89557e(0x198)][_0x89557e(0x1ba)][_0x89557e(0x186)]),_0xbee4ba=new _0x577c4c(this[_0x89557e(0x17e)][_0x89557e(0x186)]),_0x79857e=_0x23f642[_0x89557e(0x1a9)],_0x4bfdaf=_0x89557e(0x18d)===_0x1230a2[_0x89557e(0x19e)]?_0x89557e(0x1b3):_0x89557e(0x1ab);_0x23f642[_0x89557e(0x17f)]();const _0x75aeca=_0x79857e-_0x23f642[_0x89557e(0x1a9)]+0x1;this[_0x89557e(0x17e)][_0x89557e(0x186)][_0x89557e(0x1c0)][_0x4bfdaf]=_0x89557e(0x1bf)+(_0x79857e-_0xbee4ba[_0x89557e(0x1a9)]-_0x75aeca)+_0x89557e(0x1a6);}});};this[_0x56c441(0x198)][_0x56c441(0x1ba)]['on'](_0x56c441(0x195),_0x177fa4),this['on'](_0x56c441(0x1b5),()=>{const _0x1dd623=_0x56c441;_0x177fa4(),this[_0x1dd623(0x1c3)]=new _0x4cfd27(this[_0x1dd623(0x198)][_0x1dd623(0x1ba)][_0x1dd623(0x186)],()=>{_0x177fa4();});});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x281f(_0x500598,_0x5c3ec9){const _0x3fbd66=_0x3fbd();return _0x281f=function(_0x281f94,_0x3d1229){_0x281f94=_0x281f94-0x72;let _0x3c77a0=_0x3fbd66[_0x281f94];return _0x3c77a0;},_0x281f(_0x500598,_0x5c3ec9);}const _0x559817=_0x281f;(function(_0xa0eeaf,_0x128c83){const _0x2331ac=_0x281f,_0x4b2515=_0xa0eeaf();while(!![]){try{const _0x311e87=-parseInt(_0x2331ac(0x7b))/0x1*(parseInt(_0x2331ac(0x7d))/0x2)+-parseInt(_0x2331ac(0x79))/0x3*(-parseInt(_0x2331ac(0x77))/0x4)+parseInt(_0x2331ac(0x75))/0x5+-parseInt(_0x2331ac(0x7e))/0x6+-parseInt(_0x2331ac(0x73))/0x7*(-parseInt(_0x2331ac(0x7c))/0x8)+parseInt(_0x2331ac(0x76))/0x9+parseInt(_0x2331ac(0x7a))/0xa;if(_0x311e87===_0x128c83)break;else _0x4b2515['push'](_0x4b2515['shift']());}catch(_0x19c2ab){_0x4b2515['push'](_0x4b2515['shift']());}}}(_0x3fbd,0x66097));import{ListView as _0x31e443}from'ckeditor5/src/ui.js';function _0x3fbd(){const _0x5d3ffc=['4138146zuZMzr','length','14uQLJTi','items','243460ylzAhD','3203901SstVjZ','3252544AZjQKU','filter','3SwPlDB','773420lSEdsM','1AQFOpH','1369896ZtHRBa','1059998GYNYyW'];_0x3fbd=function(){return _0x5d3ffc;};return _0x3fbd();}export class AIChatPromptSuggestionsListView extends _0x31e443{[_0x559817(0x78)](){const _0x4dbfb0=_0x559817;let _0x124fe3=0x0;for(const _0xd3b234 of this[_0x4dbfb0(0x74)])_0x124fe3+=_0xd3b234[_0x4dbfb0(0x74)][_0x4dbfb0(0x72)];return{'resultsCount':_0x124fe3,'totalItemsCount':_0x124fe3};}}
23
+ const _0x5c393=_0x1ddb;(function(_0x23d01f,_0x16837b){const _0x67234e=_0x1ddb,_0x2c5557=_0x23d01f();while(!![]){try{const _0xf87cc9=parseInt(_0x67234e(0x9c))/0x1+parseInt(_0x67234e(0x93))/0x2*(parseInt(_0x67234e(0x94))/0x3)+parseInt(_0x67234e(0x9d))/0x4*(parseInt(_0x67234e(0x95))/0x5)+parseInt(_0x67234e(0x91))/0x6*(-parseInt(_0x67234e(0x99))/0x7)+parseInt(_0x67234e(0x9a))/0x8+-parseInt(_0x67234e(0x9b))/0x9+-parseInt(_0x67234e(0x97))/0xa;if(_0xf87cc9===_0x16837b)break;else _0x2c5557['push'](_0x2c5557['shift']());}catch(_0x2981bf){_0x2c5557['push'](_0x2c5557['shift']());}}}(_0x3ebf,0xa33d1));function _0x3ebf(){const _0x9dbe29=['items','268219sdTgFM','3626040RexOFs','2122254ceXtWN','908861QYCBvV','3636008AwKrst','42vruDUe','length','137648rYzuJK','54fZVqds','5oQWYJu','filter','23373000tiQxZV'];_0x3ebf=function(){return _0x9dbe29;};return _0x3ebf();}import{ListView as _0x1524f6}from'ckeditor5/src/ui.js';function _0x1ddb(_0x1b245b,_0x1949a0){const _0x3ebfb6=_0x3ebf();return _0x1ddb=function(_0x1ddbea,_0x5d2075){_0x1ddbea=_0x1ddbea-0x91;let _0x5d95b1=_0x3ebfb6[_0x1ddbea];return _0x5d95b1;},_0x1ddb(_0x1b245b,_0x1949a0);}export class AIChatPromptSuggestionsListView extends _0x1524f6{[_0x5c393(0x96)](){const _0x5c975f=_0x5c393;let _0x1b8826=0x0;for(const _0x5aae53 of this[_0x5c975f(0x98)])_0x1b8826+=_0x5aae53[_0x5c975f(0x98)][_0x5c975f(0x92)];return{'resultsCount':_0x1b8826,'totalItemsCount':_0x1b8826};}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4df27f=_0x3a33;(function(_0x5c6a4d,_0x554e2b){const _0x4e90ce=_0x3a33,_0x5110bb=_0x5c6a4d();while(!![]){try{const _0x53495a=parseInt(_0x4e90ce(0xaf))/0x1*(parseInt(_0x4e90ce(0xa7))/0x2)+parseInt(_0x4e90ce(0xa9))/0x3+parseInt(_0x4e90ce(0xb4))/0x4+parseInt(_0x4e90ce(0xb1))/0x5*(-parseInt(_0x4e90ce(0xad))/0x6)+parseInt(_0x4e90ce(0xba))/0x7+parseInt(_0x4e90ce(0xa1))/0x8*(-parseInt(_0x4e90ce(0x9f))/0x9)+-parseInt(_0x4e90ce(0xaa))/0xa;if(_0x53495a===_0x554e2b)break;else _0x5110bb['push'](_0x5110bb['shift']());}catch(_0xafb154){_0x5110bb['push'](_0x5110bb['shift']());}}}(_0x5f56,0xd20b4));function _0x3a33(_0x997756,_0xfb8777){const _0x5f5632=_0x5f56();return _0x3a33=function(_0x3a33c1,_0x262707){_0x3a33c1=_0x3a33c1-0x9c;let _0x53495e=_0x5f5632[_0x3a33c1];return _0x53495e;},_0x3a33(_0x997756,_0xfb8777);}import{ListView as _0x558c04}from'ckeditor5/src/ui.js';function _0x5f56(){const _0x21d7dd=['clear','replace','execute','ck-ai-chat-resources__list','forEach','29331EENtOU','highlightText','3560wnEfRU','items','label','test','trim','addResourceToContext','2bJSAbn','extendTemplate','950619bEPKNn','12093660oxmDVv','fire','add','149964EsSjfa','setResources','1456251bVxyFh','\x5c$&','15JrrRNm','updateResourceState','locale','4451444QmkFwl','_source','resource','_handleResourceSelection','filter','useDefaultFiltering','4962706kPYBIb'];_0x5f56=function(){return _0x21d7dd;};return _0x5f56();}import{AIChatResourceListItemView as _0x55d5e1}from'./aichatresourcelistitemview.js';const uc=_0x4df27f(0x9d);export class AIChatContextResourcesListView extends _0x558c04{[_0x4df27f(0xb5)];constructor(_0x243bb5,_0x2a5db0){const _0x185556=_0x4df27f;super(_0x243bb5),this[_0x185556(0xb5)]=_0x2a5db0,this[_0x185556(0xa8)]({'attributes':{'class':[uc]}});}[_0x4df27f(0xae)](_0x34bb19,_0x2ab00c){const _0xe95d52=_0x4df27f;this[_0xe95d52(0xa2)][_0xe95d52(0xbb)]();let _0x18619e=_0x34bb19;if(this[_0xe95d52(0xb5)][_0xe95d52(0xb9)]&&_0x2ab00c&&''!==_0x2ab00c[_0xe95d52(0xa5)]()){const _0x3c8837=new RegExp(_0x2ab00c[_0xe95d52(0xbc)](/[.*+?^${}()|[\]\\]/g,_0xe95d52(0xb0)),'gi');_0x18619e=_0x34bb19[_0xe95d52(0xb8)](_0x3dc83c=>_0x3c8837[_0xe95d52(0xa4)](_0x3dc83c[_0xe95d52(0xa3)]));}for(const _0x3346d6 of _0x18619e){const _0x214fb3=new _0x55d5e1(this[_0xe95d52(0xb3)],_0x3346d6);_0x214fb3['on'](_0xe95d52(0x9c),()=>{const _0x27da2d=_0xe95d52;this[_0x27da2d(0xb7)](this[_0x27da2d(0xb5)],_0x3346d6);}),this[_0xe95d52(0xa2)][_0xe95d52(0xac)](_0x214fb3);}this[_0xe95d52(0xb5)][_0xe95d52(0xb9)]&&this[_0xe95d52(0xa0)](_0x2ab00c);}[_0x4df27f(0xa0)](_0x537c65){const _0x25a770=_0x4df27f;this[_0x25a770(0xb5)][_0x25a770(0xb9)]&&this[_0x25a770(0xa2)][_0x25a770(0x9e)](_0x57d24d=>{const _0x3a3334=_0x25a770;_0x57d24d[_0x3a3334(0xa0)](_0x537c65);});}[_0x4df27f(0xb2)](_0x543af7,_0x2144e1){const _0x5ecd5d=_0x4df27f;for(const _0x535288 of this[_0x5ecd5d(0xa2)]){const _0x262717=_0x535288;_0x262717[_0x5ecd5d(0xb6)]['id']===_0x543af7&&_0x262717[_0x5ecd5d(0xb2)](_0x2144e1);}}[_0x4df27f(0xb7)](_0xb0eae0,_0x52ec7f){const _0x5183ce=_0x4df27f;this[_0x5183ce(0xab)](_0x5183ce(0xa6),{'source':_0xb0eae0,'resource':_0x52ec7f});}}
23
+ function _0x3da0(_0x1e7305,_0x5d1027){const _0x5d6b4a=_0x5d6b();return _0x3da0=function(_0x3da0e2,_0x2348a2){_0x3da0e2=_0x3da0e2-0x19f;let _0x56d589=_0x5d6b4a[_0x3da0e2];return _0x56d589;},_0x3da0(_0x1e7305,_0x5d1027);}const _0x35b4e5=_0x3da0;function _0x5d6b(){const _0xe04669=['useDefaultFiltering','highlightText','\x5c$&','1bwwlfI','trim','addResourceToContext','7010127NRaTcZ','items','extendTemplate','498aQUIro','clear','7yFmScz','setResources','updateResourceState','_source','30230gfLTnQ','filter','121jjnoMF','13440DvZqMI','fire','140424oBeLDO','_handleResourceSelection','960708FIaZNe','label','ck-ai-chat-resources__list','test','4500904kaPlEh','resource','205644anmCmn','replace','10FmrSrm','add','execute','forEach','locale'];_0x5d6b=function(){return _0xe04669;};return _0x5d6b();}(function(_0x2ac96f,_0x195bae){const _0x1dc1a3=_0x3da0,_0x236077=_0x2ac96f();while(!![]){try{const _0x3cd14e=parseInt(_0x1dc1a3(0x1b2))/0x1*(parseInt(_0x1dc1a3(0x1a2))/0x2)+-parseInt(_0x1dc1a3(0x1a0))/0x3+parseInt(_0x1dc1a3(0x1c1))/0x4+parseInt(_0x1dc1a3(0x1be))/0x5*(parseInt(_0x1dc1a3(0x1b8))/0x6)+-parseInt(_0x1dc1a3(0x1ba))/0x7*(-parseInt(_0x1dc1a3(0x1a6))/0x8)+parseInt(_0x1dc1a3(0x1b5))/0x9*(-parseInt(_0x1dc1a3(0x1aa))/0xa)+parseInt(_0x1dc1a3(0x1c0))/0xb*(-parseInt(_0x1dc1a3(0x1a8))/0xc);if(_0x3cd14e===_0x195bae)break;else _0x236077['push'](_0x236077['shift']());}catch(_0x1489c3){_0x236077['push'](_0x236077['shift']());}}}(_0x5d6b,0x825a7));import{ListView as _0x1143ec}from'ckeditor5/src/ui.js';import{AIChatResourceListItemView as _0xe89060}from'./aichatresourcelistitemview.js';const uc=_0x35b4e5(0x1a4);export class AIChatContextResourcesListView extends _0x1143ec{[_0x35b4e5(0x1bd)];constructor(_0x50e8d4,_0x496a2d){const _0x4ab4eb=_0x35b4e5;super(_0x50e8d4),this[_0x4ab4eb(0x1bd)]=_0x496a2d,this[_0x4ab4eb(0x1b7)]({'attributes':{'class':[uc]}});}[_0x35b4e5(0x1bb)](_0x5711f3,_0x17f8dd){const _0x6256c5=_0x35b4e5;this[_0x6256c5(0x1b6)][_0x6256c5(0x1b9)]();let _0x5ddc50=_0x5711f3;if(this[_0x6256c5(0x1bd)][_0x6256c5(0x1af)]&&_0x17f8dd&&''!==_0x17f8dd[_0x6256c5(0x1b3)]()){const _0x3a3f1d=new RegExp(_0x17f8dd[_0x6256c5(0x1a9)](/[.*+?^${}()|[\]\\]/g,_0x6256c5(0x1b1)),'gi');_0x5ddc50=_0x5711f3[_0x6256c5(0x1bf)](_0x108b27=>_0x3a3f1d[_0x6256c5(0x1a5)](_0x108b27[_0x6256c5(0x1a3)]));}for(const _0x582062 of _0x5ddc50){const _0x39076f=new _0xe89060(this[_0x6256c5(0x1ae)],_0x582062);_0x39076f['on'](_0x6256c5(0x1ac),()=>{const _0x213a3a=_0x6256c5;this[_0x213a3a(0x1a1)](this[_0x213a3a(0x1bd)],_0x582062);}),this[_0x6256c5(0x1b6)][_0x6256c5(0x1ab)](_0x39076f);}this[_0x6256c5(0x1bd)][_0x6256c5(0x1af)]&&this[_0x6256c5(0x1b0)](_0x17f8dd);}[_0x35b4e5(0x1b0)](_0x52f8b1){const _0x56e74e=_0x35b4e5;this[_0x56e74e(0x1bd)][_0x56e74e(0x1af)]&&this[_0x56e74e(0x1b6)][_0x56e74e(0x1ad)](_0x5b2301=>{const _0x2a35c4=_0x56e74e;_0x5b2301[_0x2a35c4(0x1b0)](_0x52f8b1);});}[_0x35b4e5(0x1bc)](_0x275315,_0x133f64){const _0x33c465=_0x35b4e5;for(const _0x4d8ada of this[_0x33c465(0x1b6)]){const _0x155267=_0x4d8ada;_0x155267[_0x33c465(0x1a7)]['id']===_0x275315&&_0x155267[_0x33c465(0x1bc)](_0x133f64);}}[_0x35b4e5(0x1a1)](_0x515f87,_0x3c3c95){const _0x10ff93=_0x35b4e5;this[_0x10ff93(0x19f)](_0x10ff93(0x1b4),{'source':_0x515f87,'resource':_0x3c3c95});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4fce34=_0x2af5;(function(_0x10aa4a,_0x5d9632){const _0x33e8bd=_0x2af5,_0x5c606e=_0x10aa4a();while(!![]){try{const _0xc04c67=parseInt(_0x33e8bd(0x1a0))/0x1+-parseInt(_0x33e8bd(0x1a8))/0x2*(-parseInt(_0x33e8bd(0x19d))/0x3)+parseInt(_0x33e8bd(0x1ab))/0x4*(parseInt(_0x33e8bd(0x193))/0x5)+-parseInt(_0x33e8bd(0x1b0))/0x6+parseInt(_0x33e8bd(0x18c))/0x7*(-parseInt(_0x33e8bd(0x183))/0x8)+parseInt(_0x33e8bd(0x187))/0x9+-parseInt(_0x33e8bd(0x1a1))/0xa;if(_0xc04c67===_0x5d9632)break;else _0x5c606e['push'](_0x5c606e['shift']());}catch(_0x7f8920){_0x5c606e['push'](_0x5c606e['shift']());}}}(_0x29b4,0xc5cfc));function _0x2af5(_0x5e5cb0,_0x1e6fe7){const _0x29b481=_0x29b4();return _0x2af5=function(_0x2af5e0,_0xffd73a){_0x2af5e0=_0x2af5e0-0x183;let _0x5c1816=_0x29b481[_0x2af5e0];return _0x5c1816;},_0x2af5(_0x5e5cb0,_0x1e6fe7);}import{View as _0x11cab5,ViewCollection as _0x59c633}from'ckeditor5/src/ui.js';import{uid as _0x360468}from'ckeditor5/src/utils.js';import{AIChatContextResourcesListView as _0x53b965}from'./aichatcontextresourceslistview.js';import{AIChatContextResourcesSearchInputView as _0x21bfdf}from'./aichatresourcessearchinputview.js';import{AISkeletonView as _0x16dfc3,SKELETON_DEFINITIONS as _0x2c0570}from'../../../../aicore/ui/aiskeleton.js';function _0x29b4(){const _0x6bea18=['aiChatResources','95980SPWecd','setTemplate','updateResourceState','delegate','searchInputVisibleFrom','highlightText','search','loadResources','_skeletonLoader','_searchSection','28011txWZMz','locale','render','901321IGbnvc','20449680fSYsgC','_createSearchSection','bindTemplate','ck-hidden','_resourcesListView','source','setResources','10egRwZq','_createSearchView','_source','324WBjsMp','_createResourcesListView','ck-ai-chat-resources','children','_latestLoadResourcesUid','147738YEAbrj','div','ck\x20ck-search','add','_searchInputVisibleFrom','4616IgBFve','getQuery','_searchView','addResourceToContext','7188588eqhTYS','set','length','_createSkeletonView','useDefaultFiltering','5117Ecwyxr','has','isLoading','extendTemplate','fire','loadSourceResources'];_0x29b4=function(){return _0x6bea18;};return _0x29b4();}export class AIChatContextResourcesView extends _0x11cab5{[_0x4fce34(0x185)];[_0x4fce34(0x19c)];[_0x4fce34(0x1b4)];[_0x4fce34(0x1a5)];[_0x4fce34(0x19b)];[_0x4fce34(0x1aa)];[_0x4fce34(0x1ae)];[_0x4fce34(0x1af)]=null;constructor(_0x2c039a,_0x2d7b76){const _0x48183c=_0x4fce34;super(_0x2c039a),this[_0x48183c(0x1aa)]=_0x2d7b76[_0x48183c(0x1a6)],this[_0x48183c(0x1b4)]=_0x2d7b76[_0x48183c(0x197)]??0x7,this[_0x48183c(0x188)](_0x48183c(0x18e),!0x0),this[_0x48183c(0x185)]=this[_0x48183c(0x1a9)](),this[_0x48183c(0x19c)]=this[_0x48183c(0x1a2)](),this[_0x48183c(0x1a5)]=this[_0x48183c(0x1ac)](),this[_0x48183c(0x19b)]=this[_0x48183c(0x18a)](),this[_0x48183c(0x1ae)]=new _0x59c633([this[_0x48183c(0x19b)],this[_0x48183c(0x1a5)]]),this[_0x48183c(0x194)]({'tag':_0x48183c(0x1b1),'attributes':{'class':_0x48183c(0x1ad)},'children':this[_0x48183c(0x1ae)]});}[_0x4fce34(0x1a9)](){const _0x1885c2=_0x4fce34;return new _0x21bfdf(this[_0x1885c2(0x19e)]);}[_0x4fce34(0x1a2)](){const _0xb4282c=_0x4fce34,_0x4b5efc=new _0x11cab5(this[_0xb4282c(0x19e)]);return _0x4b5efc[_0xb4282c(0x194)]({'tag':_0xb4282c(0x1b1),'attributes':{'class':_0xb4282c(0x1b2)},'children':[this[_0xb4282c(0x185)]]}),this[_0xb4282c(0x185)]['on'](_0xb4282c(0x199),(_0x5a6747,_0x64aa4)=>{const _0x5b3be0=_0xb4282c;this[_0x5b3be0(0x19a)](_0x64aa4),this[_0x5b3be0(0x1aa)][_0x5b3be0(0x18b)]&&this[_0x5b3be0(0x1a5)][_0x5b3be0(0x198)](_0x64aa4);}),_0x4b5efc;}[_0x4fce34(0x1ac)](){const _0x4c684e=_0x4fce34,_0x57e45a=new _0x53b965(this[_0x4c684e(0x19e)],this[_0x4c684e(0x1aa)]);return _0x57e45a[_0x4c684e(0x196)](_0x4c684e(0x186))['to'](this),_0x57e45a[_0x4c684e(0x18f)]({'attributes':{'class':this[_0x4c684e(0x1a3)]['if'](_0x4c684e(0x18e),_0x4c684e(0x1a4))}}),_0x57e45a;}[_0x4fce34(0x18a)](){const _0x33e790=_0x4fce34,_0x5e5d49=new _0x16dfc3(this[_0x33e790(0x19e)],_0x2c0570[_0x33e790(0x192)]);return _0x5e5d49[_0x33e790(0x18f)]({'attributes':{'class':[this[_0x33e790(0x1a3)]['if'](_0x33e790(0x18e),_0x33e790(0x1a4),_0x3306d2=>!_0x3306d2)]}}),_0x5e5d49;}[_0x4fce34(0x19f)](){const _0x335a2f=_0x4fce34;super[_0x335a2f(0x19f)](),this[_0x335a2f(0x19a)]('');}[_0x4fce34(0x19a)](_0x30bee0){const _0x513010=_0x4fce34,_0x12a8a9=_0x360468();this[_0x513010(0x1af)]=_0x12a8a9,this[_0x513010(0x190)](_0x513010(0x191),{'sourceId':this[_0x513010(0x1aa)]['id'],'query':_0x30bee0,'uid':_0x12a8a9}),this[_0x513010(0x18e)]=!0x0;}[_0x4fce34(0x1a7)](_0x4a9012,_0x345fbf){const _0x32ffec=_0x4fce34;if(_0x345fbf&&_0x345fbf!==this[_0x32ffec(0x1af)])return;const _0x4c782c=this[_0x32ffec(0x1aa)][_0x32ffec(0x18b)]?this[_0x32ffec(0x185)][_0x32ffec(0x184)]():'';this[_0x32ffec(0x1a5)][_0x32ffec(0x1a7)](_0x4a9012,_0x4c782c),_0x4a9012[_0x32ffec(0x189)]>=this[_0x32ffec(0x1b4)]&&!this[_0x32ffec(0x1ae)][_0x32ffec(0x18d)](this[_0x32ffec(0x19c)])&&this[_0x32ffec(0x1ae)][_0x32ffec(0x1b3)](this[_0x32ffec(0x19c)],0x0),requestAnimationFrame(()=>{const _0x309e71=_0x32ffec;this[_0x309e71(0x18e)]=!0x1;});}[_0x4fce34(0x195)](_0x5add24,_0x2102e4){const _0x897919=_0x4fce34;this[_0x897919(0x1a5)][_0x897919(0x195)](_0x5add24,_0x2102e4);}}
23
+ const _0x18ecf7=_0x26cb;(function(_0xf633b7,_0x13df75){const _0xef9656=_0x26cb,_0x1462bf=_0xf633b7();while(!![]){try{const _0x474a2e=-parseInt(_0xef9656(0xd5))/0x1+-parseInt(_0xef9656(0xb1))/0x2+parseInt(_0xef9656(0xdf))/0x3+-parseInt(_0xef9656(0xbb))/0x4*(-parseInt(_0xef9656(0xbe))/0x5)+-parseInt(_0xef9656(0xca))/0x6*(-parseInt(_0xef9656(0xcc))/0x7)+parseInt(_0xef9656(0xaf))/0x8+-parseInt(_0xef9656(0xcb))/0x9*(parseInt(_0xef9656(0xd6))/0xa);if(_0x474a2e===_0x13df75)break;else _0x1462bf['push'](_0x1462bf['shift']());}catch(_0x355c58){_0x1462bf['push'](_0x1462bf['shift']());}}}(_0x140f,0xc6828));import{View as _0x25bcbf,ViewCollection as _0x22c8d1}from'ckeditor5/src/ui.js';import{uid as _0x2d4775}from'ckeditor5/src/utils.js';function _0x26cb(_0x513a7d,_0x434284){const _0x140ff8=_0x140f();return _0x26cb=function(_0x26cbc1,_0x259b9c){_0x26cbc1=_0x26cbc1-0xae;let _0x537e57=_0x140ff8[_0x26cbc1];return _0x537e57;},_0x26cb(_0x513a7d,_0x434284);}function _0x140f(){const _0x34a0da=['search','locale','bindTemplate','set','_createResourcesListView','source','54OfsQUW','43182Chnbeb','121303DtSNnN','ck\x20ck-search','add','setResources','searchInputVisibleFrom','highlightText','_latestLoadResourcesUid','render','children','664809JbGhjl','4790iMdvnk','addResourceToContext','_source','_searchSection','div','fire','length','ck-ai-chat-resources','extendTemplate','4260720xBGOWv','_skeletonLoader','10154568PLWEbJ','useDefaultFiltering','396280WBzZsm','_searchInputVisibleFrom','has','getQuery','isLoading','delegate','_searchView','loadSourceResources','ck-hidden','_createSearchView','4515060sGrGSR','_resourcesListView','loadResources','5xZJJSX','updateResourceState','setTemplate','aiChatResources','_createSkeletonView','_createSearchSection'];_0x140f=function(){return _0x34a0da;};return _0x140f();}import{AIChatContextResourcesListView as _0x2c03ec}from'./aichatcontextresourceslistview.js';import{AIChatContextResourcesSearchInputView as _0x3ea8fd}from'./aichatresourcessearchinputview.js';import{AISkeletonView as _0x1728f8,SKELETON_DEFINITIONS as _0x7337e0}from'../../../../aicore/ui/aiskeleton.js';export class AIChatContextResourcesView extends _0x25bcbf{[_0x18ecf7(0xb7)];[_0x18ecf7(0xd9)];[_0x18ecf7(0xb2)];[_0x18ecf7(0xbc)];[_0x18ecf7(0xae)];[_0x18ecf7(0xd8)];[_0x18ecf7(0xd4)];[_0x18ecf7(0xd2)]=null;constructor(_0x3fbe2a,_0x5eb565){const _0x296ca0=_0x18ecf7;super(_0x3fbe2a),this[_0x296ca0(0xd8)]=_0x5eb565[_0x296ca0(0xc9)],this[_0x296ca0(0xb2)]=_0x5eb565[_0x296ca0(0xd0)]??0x7,this[_0x296ca0(0xc7)](_0x296ca0(0xb5),!0x0),this[_0x296ca0(0xb7)]=this[_0x296ca0(0xba)](),this[_0x296ca0(0xd9)]=this[_0x296ca0(0xc3)](),this[_0x296ca0(0xbc)]=this[_0x296ca0(0xc8)](),this[_0x296ca0(0xae)]=this[_0x296ca0(0xc2)](),this[_0x296ca0(0xd4)]=new _0x22c8d1([this[_0x296ca0(0xae)],this[_0x296ca0(0xbc)]]),this[_0x296ca0(0xc0)]({'tag':_0x296ca0(0xda),'attributes':{'class':_0x296ca0(0xdd)},'children':this[_0x296ca0(0xd4)]});}[_0x18ecf7(0xba)](){const _0xb74eb2=_0x18ecf7;return new _0x3ea8fd(this[_0xb74eb2(0xc5)]);}[_0x18ecf7(0xc3)](){const _0x13c698=_0x18ecf7,_0x9a7b79=new _0x25bcbf(this[_0x13c698(0xc5)]);return _0x9a7b79[_0x13c698(0xc0)]({'tag':_0x13c698(0xda),'attributes':{'class':_0x13c698(0xcd)},'children':[this[_0x13c698(0xb7)]]}),this[_0x13c698(0xb7)]['on'](_0x13c698(0xc4),(_0x527bee,_0x511239)=>{const _0x3b660e=_0x13c698;this[_0x3b660e(0xbd)](_0x511239),this[_0x3b660e(0xd8)][_0x3b660e(0xb0)]&&this[_0x3b660e(0xbc)][_0x3b660e(0xd1)](_0x511239);}),_0x9a7b79;}[_0x18ecf7(0xc8)](){const _0x511822=_0x18ecf7,_0x200d91=new _0x2c03ec(this[_0x511822(0xc5)],this[_0x511822(0xd8)]);return _0x200d91[_0x511822(0xb6)](_0x511822(0xd7))['to'](this),_0x200d91[_0x511822(0xde)]({'attributes':{'class':this[_0x511822(0xc6)]['if'](_0x511822(0xb5),_0x511822(0xb9))}}),_0x200d91;}[_0x18ecf7(0xc2)](){const _0x5eabf5=_0x18ecf7,_0x52f104=new _0x1728f8(this[_0x5eabf5(0xc5)],_0x7337e0[_0x5eabf5(0xc1)]);return _0x52f104[_0x5eabf5(0xde)]({'attributes':{'class':[this[_0x5eabf5(0xc6)]['if'](_0x5eabf5(0xb5),_0x5eabf5(0xb9),_0x1a3a26=>!_0x1a3a26)]}}),_0x52f104;}[_0x18ecf7(0xd3)](){const _0xf880b1=_0x18ecf7;super[_0xf880b1(0xd3)](),this[_0xf880b1(0xbd)]('');}[_0x18ecf7(0xbd)](_0x7ac9d){const _0x5d44bf=_0x18ecf7,_0x342f8f=_0x2d4775();this[_0x5d44bf(0xd2)]=_0x342f8f,this[_0x5d44bf(0xdb)](_0x5d44bf(0xb8),{'sourceId':this[_0x5d44bf(0xd8)]['id'],'query':_0x7ac9d,'uid':_0x342f8f}),this[_0x5d44bf(0xb5)]=!0x0;}[_0x18ecf7(0xcf)](_0x1d7f15,_0x53ca34){const _0xc766da=_0x18ecf7;if(_0x53ca34&&_0x53ca34!==this[_0xc766da(0xd2)])return;const _0x496680=this[_0xc766da(0xd8)][_0xc766da(0xb0)]?this[_0xc766da(0xb7)][_0xc766da(0xb4)]():'';this[_0xc766da(0xbc)][_0xc766da(0xcf)](_0x1d7f15,_0x496680),_0x1d7f15[_0xc766da(0xdc)]>=this[_0xc766da(0xb2)]&&!this[_0xc766da(0xd4)][_0xc766da(0xb3)](this[_0xc766da(0xd9)])&&this[_0xc766da(0xd4)][_0xc766da(0xce)](this[_0xc766da(0xd9)],0x0),requestAnimationFrame(()=>{const _0x437cbf=_0xc766da;this[_0x437cbf(0xb5)]=!0x1;});}[_0x18ecf7(0xbf)](_0x548702,_0x37602b){const _0x1f4d5f=_0x18ecf7;this[_0x1f4d5f(0xbc)][_0x1f4d5f(0xbf)](_0x548702,_0x37602b);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x4cf8(_0x28dd05,_0x480a1a){const _0x29a120=_0x29a1();return _0x4cf8=function(_0x4cf8b1,_0x3819f6){_0x4cf8b1=_0x4cf8b1-0x7c;let _0x516d15=_0x29a120[_0x4cf8b1];return _0x516d15;},_0x4cf8(_0x28dd05,_0x480a1a);}const _0x3c39f7=_0x4cf8;(function(_0x41d222,_0x504df9){const _0x8ebfc3=_0x4cf8,_0x52734c=_0x41d222();while(!![]){try{const _0x4fcac9=parseInt(_0x8ebfc3(0xa3))/0x1*(parseInt(_0x8ebfc3(0x91))/0x2)+-parseInt(_0x8ebfc3(0xa6))/0x3+parseInt(_0x8ebfc3(0xa4))/0x4+parseInt(_0x8ebfc3(0x83))/0x5+-parseInt(_0x8ebfc3(0xa1))/0x6+-parseInt(_0x8ebfc3(0x95))/0x7+parseInt(_0x8ebfc3(0x7e))/0x8*(parseInt(_0x8ebfc3(0x9a))/0x9);if(_0x4fcac9===_0x504df9)break;else _0x52734c['push'](_0x52734c['shift']());}catch(_0x49c8b2){_0x52734c['push'](_0x52734c['shift']());}}}(_0x29a1,0x8bdfd));import{HighlightedTextView as _0x2e5f3c,IconView as _0x13cb03,ListItemView as _0x58bb56}from'ckeditor5/src/ui.js';import{escapeRegExp as _0x34fedc}from'es-toolkit/compat';function _0x29a1(){const _0x49473b=['TEXT','set','DOCUMENT','6382218ijKJkv','span','1NrGMad','2629836rbcXqE','trim','1172760kJVheB','isInContext','_iconView','146024zCqrRz','_titleView','_setupTemplate','_createIconView','content','2661400xCJxow','ck-ai-chat-resources__item__icon','setTemplate','execute','label','render','div','highlightText','FILE','type','updateResourceState','ck-ai-chat-resources__item','text','resource','2171212CeIePl','isVisible','ck-ai-chat-resources__item-title','_createTitleView','3267831OZPUUA','getResourceIcon','extendTemplate','ck-ai-chat-resources__item--in-context','ck-hidden','108bZNEGy','bindTemplate','URL','_updateIcon'];_0x29a1=function(){return _0x49473b;};return _0x29a1();}import{AIContextItemType as _0x3a0950}from'../../../../aicore/model/aicontext.js';import{IconFileUpload as _0x204db3,IconCheck as _0x167978,IconDocument as _0x4b8643,IconDocumentOutline as _0x2c5b4a,IconLink as _0x2e58ca}from'@ckeditor/ckeditor5-icons';const Jr=_0x3c39f7(0x8e),Kr=_0x3c39f7(0x98),Mr=_0x3c39f7(0x93),Nr=_0x3c39f7(0x84);export class AIChatResourceListItemView extends _0x58bb56{[_0x3c39f7(0x90)];[_0x3c39f7(0x7f)];[_0x3c39f7(0x7d)];constructor(_0x1fc77e,_0x1e9ff3){const _0x4f2831=_0x3c39f7;super(_0x1fc77e),this[_0x4f2831(0x90)]=_0x1e9ff3,this[_0x4f2831(0x9f)](_0x4f2831(0x7c),!!_0x1e9ff3[_0x4f2831(0x7c)]),this[_0x4f2831(0x7f)]=this[_0x4f2831(0x94)](),this[_0x4f2831(0x7d)]=this[_0x4f2831(0x81)](),this[_0x4f2831(0x80)]();}[_0x3c39f7(0x88)](){const _0x3bbe5f=_0x3c39f7;super[_0x3bbe5f(0x88)]();}[_0x3c39f7(0x96)](_0x4e402d){const _0xa5cd09=_0x3c39f7;if(_0x4e402d[_0xa5cd09(0x7c)])return _0x167978;switch(_0x4e402d[_0xa5cd09(0x8c)]){case _0x3a0950[_0xa5cd09(0xa0)]:return _0x4b8643;case _0x3a0950[_0xa5cd09(0x9c)]:return _0x2e58ca;case _0x3a0950[_0xa5cd09(0x8b)]:case _0x3a0950[_0xa5cd09(0x9e)]:return _0x204db3;default:return _0x2c5b4a;}}[_0x3c39f7(0x8a)](_0x36ad48){const _0x48fe4d=_0x3c39f7;if(!_0x36ad48||''===_0x36ad48[_0x48fe4d(0xa5)]())return void this[_0x48fe4d(0x7f)][_0x48fe4d(0x8a)](null);const _0x2d870f=new RegExp(_0x34fedc(_0x36ad48),'gi');this[_0x48fe4d(0x7f)][_0x48fe4d(0x8a)](_0x2d870f);}[_0x3c39f7(0x8d)](_0x12894c){const _0x4710d3=_0x3c39f7;this[_0x4710d3(0x90)][_0x4710d3(0x7c)]=_0x12894c,this[_0x4710d3(0x7c)]=_0x12894c,this[_0x4710d3(0x9d)]();}[_0x3c39f7(0x94)](){const _0x248a71=_0x3c39f7,_0x198810=new _0x2e5f3c();return _0x198810[_0x248a71(0x8f)]=this[_0x248a71(0x90)][_0x248a71(0x87)],_0x198810[_0x248a71(0x97)]({'tag':_0x248a71(0xa2),'attributes':{'class':[Mr]}}),_0x198810;}[_0x3c39f7(0x81)](){const _0x4abff7=_0x3c39f7,_0x379a67=new _0x13cb03();return _0x379a67[_0x4abff7(0x82)]=this[_0x4abff7(0x96)](this[_0x4abff7(0x90)]),_0x379a67;}[_0x3c39f7(0x80)](){const _0x55bc41=_0x3c39f7,_0x55d926=this[_0x55bc41(0x9b)];this[_0x55bc41(0x85)]({'tag':_0x55bc41(0x89),'attributes':{'class':[Jr,_0x55d926['if'](_0x55bc41(0x92),_0x55bc41(0x99),_0x12952a=>!_0x12952a),_0x55d926['if'](_0x55bc41(0x7c),Kr)]},'children':[{'tag':_0x55bc41(0x89),'attributes':{'class':[Nr]},'children':[this[_0x55bc41(0x7d)]]},this[_0x55bc41(0x7f)]],'on':{'click':_0x55d926['to'](_0x55bc41(0x86))}});}[_0x3c39f7(0x9d)](){const _0x4f551c=_0x3c39f7;this[_0x4f551c(0x7d)][_0x4f551c(0x82)]=this[_0x4f551c(0x96)](this[_0x4f551c(0x90)]);}}
23
+ const _0x4dc520=_0x2731;(function(_0x50b25d,_0x518595){const _0x5ec45b=_0x2731,_0x444360=_0x50b25d();while(!![]){try{const _0x4e263d=parseInt(_0x5ec45b(0xd0))/0x1+-parseInt(_0x5ec45b(0xc1))/0x2*(-parseInt(_0x5ec45b(0xba))/0x3)+parseInt(_0x5ec45b(0xab))/0x4*(-parseInt(_0x5ec45b(0xce))/0x5)+parseInt(_0x5ec45b(0xc8))/0x6+parseInt(_0x5ec45b(0xb8))/0x7*(parseInt(_0x5ec45b(0xad))/0x8)+parseInt(_0x5ec45b(0xd3))/0x9*(parseInt(_0x5ec45b(0xbd))/0xa)+-parseInt(_0x5ec45b(0xbc))/0xb;if(_0x4e263d===_0x518595)break;else _0x444360['push'](_0x444360['shift']());}catch(_0x26afd0){_0x444360['push'](_0x444360['shift']());}}}(_0x3ccd,0xa4ea6));import{HighlightedTextView as _0x50cc34,IconView as _0x4a839a,ListItemView as _0x52e94a}from'ckeditor5/src/ui.js';import{escapeRegExp as _0xdf715b}from'es-toolkit/compat';import{AIContextItemType as _0x2e455f}from'../../../../aicore/model/aicontext.js';import{IconFileUpload as _0x496138,IconCheck as _0x7ad3ae,IconDocument as _0x826e23,IconDocumentOutline as _0x6c49de,IconLink as _0x5d9038}from'@ckeditor/ckeditor5-icons';function _0x3ccd(){const _0x413c61=['DOCUMENT','isInContext','5404fEOhZO','text','268200WpENkI','type','label','trim','ck-ai-chat-resources__item__icon','ck-ai-chat-resources__item-title','extendTemplate','FILE','setTemplate','div','ck-hidden','154AxZKOi','ck-ai-chat-resources__item','3UWrvIx','content','21620786YTMRIn','1980rGNdut','_setupTemplate','resource','getResourceIcon','622442cfrNyZ','_createTitleView','_updateIcon','highlightText','TEXT','_iconView','_createIconView','6121212hoffNj','updateResourceState','URL','render','set','ck-ai-chat-resources__item--in-context','265HxfyQR','execute','519108VwUgLl','_titleView','bindTemplate','5661EcKmYE','isVisible','span'];_0x3ccd=function(){return _0x413c61;};return _0x3ccd();}const zr=_0x4dc520(0xb9),Gr=_0x4dc520(0xcd),Jr=_0x4dc520(0xb2),Kr=_0x4dc520(0xb1);function _0x2731(_0x5718b7,_0x229b6c){const _0x3ccd30=_0x3ccd();return _0x2731=function(_0x2731d2,_0x3adecd){_0x2731d2=_0x2731d2-0xab;let _0x3ae4f5=_0x3ccd30[_0x2731d2];return _0x3ae4f5;},_0x2731(_0x5718b7,_0x229b6c);}export class AIChatResourceListItemView extends _0x52e94a{[_0x4dc520(0xbf)];[_0x4dc520(0xd1)];[_0x4dc520(0xc6)];constructor(_0x368643,_0x2b0048){const _0x1981c2=_0x4dc520;super(_0x368643),this[_0x1981c2(0xbf)]=_0x2b0048,this[_0x1981c2(0xcc)](_0x1981c2(0xd7),!!_0x2b0048[_0x1981c2(0xd7)]),this[_0x1981c2(0xd1)]=this[_0x1981c2(0xc2)](),this[_0x1981c2(0xc6)]=this[_0x1981c2(0xc7)](),this[_0x1981c2(0xbe)]();}[_0x4dc520(0xcb)](){const _0x44acf1=_0x4dc520;super[_0x44acf1(0xcb)]();}[_0x4dc520(0xc0)](_0x2f4757){const _0x374539=_0x4dc520;if(_0x2f4757[_0x374539(0xd7)])return _0x7ad3ae;switch(_0x2f4757[_0x374539(0xae)]){case _0x2e455f[_0x374539(0xd6)]:return _0x826e23;case _0x2e455f[_0x374539(0xca)]:return _0x5d9038;case _0x2e455f[_0x374539(0xb4)]:case _0x2e455f[_0x374539(0xc5)]:return _0x496138;default:return _0x6c49de;}}[_0x4dc520(0xc4)](_0x12c314){const _0x6ca599=_0x4dc520;if(!_0x12c314||''===_0x12c314[_0x6ca599(0xb0)]())return void this[_0x6ca599(0xd1)][_0x6ca599(0xc4)](null);const _0x5ef1ba=new RegExp(_0xdf715b(_0x12c314),'gi');this[_0x6ca599(0xd1)][_0x6ca599(0xc4)](_0x5ef1ba);}[_0x4dc520(0xc9)](_0x1d8993){const _0x138b50=_0x4dc520;this[_0x138b50(0xbf)][_0x138b50(0xd7)]=_0x1d8993,this[_0x138b50(0xd7)]=_0x1d8993,this[_0x138b50(0xc3)]();}[_0x4dc520(0xc2)](){const _0x2f514f=_0x4dc520,_0x5f303d=new _0x50cc34();return _0x5f303d[_0x2f514f(0xac)]=this[_0x2f514f(0xbf)][_0x2f514f(0xaf)],_0x5f303d[_0x2f514f(0xb3)]({'tag':_0x2f514f(0xd5),'attributes':{'class':[Jr]}}),_0x5f303d;}[_0x4dc520(0xc7)](){const _0x415706=_0x4dc520,_0x31e9d9=new _0x4a839a();return _0x31e9d9[_0x415706(0xbb)]=this[_0x415706(0xc0)](this[_0x415706(0xbf)]),_0x31e9d9;}[_0x4dc520(0xbe)](){const _0x14caac=_0x4dc520,_0x3a463c=this[_0x14caac(0xd2)];this[_0x14caac(0xb5)]({'tag':_0x14caac(0xb6),'attributes':{'class':[zr,_0x3a463c['if'](_0x14caac(0xd4),_0x14caac(0xb7),_0x52f474=>!_0x52f474),_0x3a463c['if'](_0x14caac(0xd7),Gr)]},'children':[{'tag':_0x14caac(0xb6),'attributes':{'class':[Kr]},'children':[this[_0x14caac(0xc6)]]},this[_0x14caac(0xd1)]],'on':{'click':_0x3a463c['to'](_0x14caac(0xcf))}});}[_0x4dc520(0xc3)](){const _0x3775cf=_0x4dc520;this[_0x3775cf(0xc6)][_0x3775cf(0xbb)]=this[_0x3775cf(0xc0)](this[_0x3775cf(0xbf)]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3ca2d7=_0x2ff4;(function(_0x6bfdc6,_0x33ef6c){const _0x5b2838=_0x2ff4,_0x7482e3=_0x6bfdc6();while(!![]){try{const _0x425404=-parseInt(_0x5b2838(0x8a))/0x1*(parseInt(_0x5b2838(0xb5))/0x2)+-parseInt(_0x5b2838(0xa2))/0x3+parseInt(_0x5b2838(0x82))/0x4*(parseInt(_0x5b2838(0x8c))/0x5)+-parseInt(_0x5b2838(0xa8))/0x6*(parseInt(_0x5b2838(0x92))/0x7)+parseInt(_0x5b2838(0x99))/0x8*(-parseInt(_0x5b2838(0xa5))/0x9)+parseInt(_0x5b2838(0xb4))/0xa*(-parseInt(_0x5b2838(0x96))/0xb)+parseInt(_0x5b2838(0xbc))/0xc;if(_0x425404===_0x33ef6c)break;else _0x7482e3['push'](_0x7482e3['shift']());}catch(_0x2026c9){_0x7482e3['push'](_0x7482e3['shift']());}}}(_0x1e8e,0xc37a0));function _0x2ff4(_0x207792,_0x896e1c){const _0x1e8ed1=_0x1e8e();return _0x2ff4=function(_0x2ff429,_0x3a302c){_0x2ff429=_0x2ff429-0x7f;let _0x36286e=_0x1e8ed1[_0x2ff429];return _0x36286e;},_0x2ff4(_0x207792,_0x896e1c);}import{BalloonPanelView as _0x41cb41,ButtonView as _0x40e39f,clickOutsideHandler as _0x159e80,FormHeaderView as _0x58724f}from'ckeditor5/src/ui.js';function _0x1e8e(){const _0x624781=['_config','_getResourcesViewFromBalloon','11nHKLvL','_locale','_addSourceResourceContent','6992wmfrei','clear','once','ck-button-icon\x20ck-button-back','setResources','_createSourceResourceBalloonPanel','hide','onResourceSelected','isAnyResourceBalloonVisible','3840492ikUdgs','values','pin','1161RHGkwi','show','set','78FWHRzF','content','getTargetElement','getLimiterElement','loadSourceResources','updateResourceState','showSourceResourcesBalloon','change:isLoading','populateSourceResourceBalloon','element','add','addResourceToContext','249770nmoEyg','6lesIaf','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','destroy','delete','ck-ai-chat-context-controls__source-balloon-panel','_createBackButton','get','41293848OAcAoT','_createBalloonHeader','execute','onBalloonClosed','label','9916BZSjIM','_setupSingleResourceBalloonClickOutsideHandler','closeSourceResourceBalloon','searchInputVisibleFrom','onBackToContext','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_source','_sourceResourceBalloons','_createBalloonResourcesView','117721KjcqUf','onLoadSourceResources','185JzEcEd','isVisible','children','resource','extendTemplate','_bodyCollection','517545JnNjQv','source'];_0x1e8e=function(){return _0x624781;};return _0x1e8e();}import{IconPreviousArrow as _0x1257fe}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x5d83e3}from'../../../../aicore/utils/common-translations.js';import{AIChatContextResourcesView as _0x36a544}from'./aichatcontextresourcesview.js';const Bc=_0x3ca2d7(0xb9),mc=_0x3ca2d7(0x9c),dc=_0x3ca2d7(0x87);export class AIChatResourcesBalloonView{[_0x3ca2d7(0x88)]=new Map();[_0x3ca2d7(0x91)];[_0x3ca2d7(0x97)];[_0x3ca2d7(0x94)];constructor(_0x31adce,_0x450d33,_0x5a5b7e){const _0x5e4daa=_0x3ca2d7;this[_0x5e4daa(0x97)]=_0x31adce,this[_0x5e4daa(0x91)]=_0x450d33,this[_0x5e4daa(0x94)]=_0x5a5b7e;}[_0x3ca2d7(0xae)]({source:_0x261ea5,withBackButton:_0x4c78bf}){const _0x38fbd3=_0x3ca2d7;let _0x5dfb79=this[_0x38fbd3(0x88)][_0x38fbd3(0xbb)](_0x261ea5['id']);_0x5dfb79||(_0x5dfb79=this[_0x38fbd3(0x9e)](),this[_0x38fbd3(0x88)][_0x38fbd3(0xa7)](_0x261ea5['id'],_0x5dfb79),this[_0x38fbd3(0x83)](_0x5dfb79)),this[_0x38fbd3(0x98)]({'balloonPanel':_0x5dfb79,'source':_0x261ea5,'withBackButton':_0x4c78bf}),_0x5dfb79[_0x38fbd3(0xa6)]();const _0x18cdc7=this[_0x38fbd3(0x94)][_0x38fbd3(0xaa)]();_0x18cdc7&&_0x5dfb79[_0x38fbd3(0xa4)]({'target':_0x18cdc7,'limiter':this[_0x38fbd3(0x94)][_0x38fbd3(0xab)]()});}[_0x3ca2d7(0xb0)](_0x198f47,_0x2ae68c,_0x89a494){const _0x1d9055=_0x3ca2d7,_0x1f6c2b=this[_0x1d9055(0x88)][_0x1d9055(0xbb)](_0x198f47);if(!_0x1f6c2b)return;const _0x256a34=this[_0x1d9055(0x95)](_0x1f6c2b);_0x256a34&&(_0x256a34[_0x1d9055(0x9d)](_0x2ae68c,_0x89a494),_0x256a34[_0x1d9055(0x9b)](_0x1d9055(0xaf),()=>{const _0xc6c93a=_0x1d9055;_0x1f6c2b[_0xc6c93a(0xa4)]({'target':this[_0xc6c93a(0x94)][_0xc6c93a(0xaa)](),'limiter':this[_0xc6c93a(0x94)][_0xc6c93a(0xab)]()});}));}[_0x3ca2d7(0x84)](_0x47bec2){const _0x5836ce=_0x3ca2d7,_0x3c9582=this[_0x5836ce(0x88)][_0x5836ce(0xbb)](_0x47bec2);_0x3c9582&&requestAnimationFrame(()=>{const _0x423700=_0x5836ce;_0x3c9582[_0x423700(0x9f)](),this[_0x423700(0x88)][_0x423700(0xb8)](_0x47bec2),this[_0x423700(0x94)][_0x423700(0x80)]();});}[_0x3ca2d7(0xa1)](){const _0x55121b=_0x3ca2d7;for(const _0x4f6949 of this[_0x55121b(0x88)][_0x55121b(0xa3)]())if(_0x4f6949[_0x55121b(0x8d)])return!0x0;return!0x1;}[_0x3ca2d7(0xad)](_0x2d0cb1,_0x5c024e,_0x4cd4ce){const _0x550eeb=_0x3ca2d7,_0x1f6d1b=this[_0x550eeb(0x88)][_0x550eeb(0xbb)](_0x2d0cb1);if(!_0x1f6d1b||!_0x1f6d1b[_0x550eeb(0x8d)])return;const _0x26f460=this[_0x550eeb(0x94)][_0x550eeb(0xaa)]();if(!_0x26f460)return;_0x1f6d1b[_0x550eeb(0xa4)]({'target':_0x26f460,'limiter':this[_0x550eeb(0x94)][_0x550eeb(0xab)]()});const _0x5d5900=this[_0x550eeb(0x95)](_0x1f6d1b);_0x5d5900&&_0x5d5900[_0x550eeb(0xad)](_0x5c024e,_0x4cd4ce);}[_0x3ca2d7(0xb7)](){const _0x2eb4c9=_0x3ca2d7;for(const _0x235a69 of this[_0x2eb4c9(0x88)][_0x2eb4c9(0xa3)]())_0x235a69[_0x2eb4c9(0xb7)]();this[_0x2eb4c9(0x88)][_0x2eb4c9(0x9a)]();}[_0x3ca2d7(0x9e)](){const _0x255aaf=_0x3ca2d7,_0x58c9f9=new _0x41cb41(this[_0x255aaf(0x97)]);return _0x58c9f9[_0x255aaf(0x90)]({'attributes':{'class':Bc}}),this[_0x255aaf(0x91)][_0x255aaf(0xb2)](_0x58c9f9),_0x58c9f9;}[_0x3ca2d7(0x98)]({balloonPanel:_0x1a0298,source:_0x4c2bb1,withBackButton:_0x3212fa}){const _0x1148d1=_0x3ca2d7;_0x1a0298[_0x1148d1(0xa9)][_0x1148d1(0x9a)]();const _0x4644cd=this[_0x1148d1(0xbd)]({'balloonPanel':_0x1a0298,'source':_0x4c2bb1,'withBackButton':_0x3212fa});_0x1a0298[_0x1148d1(0xa9)][_0x1148d1(0xb2)](_0x4644cd);const _0x407c2a=this[_0x1148d1(0x89)](_0x4c2bb1);_0x1a0298[_0x1148d1(0xa9)][_0x1148d1(0xb2)](_0x407c2a);}[_0x3ca2d7(0xbd)]({balloonPanel:_0x12a105,source:_0x412b49,withBackButton:_0x30eb20}){const _0x27dbcf=_0x3ca2d7,_0x15bb04=new _0x58724f(this[_0x27dbcf(0x97)],{'label':_0x412b49[_0x27dbcf(0x81)],'class':dc});return _0x30eb20&&_0x15bb04[_0x27dbcf(0x8e)][_0x27dbcf(0xb2)](this[_0x27dbcf(0xba)](_0x12a105),0x0),_0x15bb04;}[_0x3ca2d7(0xba)](_0x4b05ff){const _0x4db626=_0x3ca2d7,_0x27d07a=new _0x40e39f(this[_0x4db626(0x97)]);return _0x27d07a[_0x4db626(0xa7)]({'icon':_0x1257fe,'tooltip':_0x5d83e3(this[_0x4db626(0x97)],_0x4db626(0xb6)),'tooltipPosition':'n','class':mc}),_0x27d07a['on'](_0x4db626(0x7f),()=>{const _0x384745=_0x4db626;_0x4b05ff[_0x384745(0x9f)](),this[_0x384745(0x94)][_0x384745(0x86)]();}),_0x27d07a;}[_0x3ca2d7(0x89)](_0x2001b9){const _0x196a1a=_0x3ca2d7,_0xf92185=new _0x36a544(this[_0x196a1a(0x97)],{'source':_0x2001b9,'searchInputVisibleFrom':this[_0x196a1a(0x94)][_0x196a1a(0x85)]});return _0xf92185['on'](_0x196a1a(0xac),(_0x57104c,_0x55c6e0)=>{const _0x681cbf=_0x196a1a;this[_0x681cbf(0x94)][_0x681cbf(0x8b)](_0x55c6e0);}),_0xf92185['on'](_0x196a1a(0xb3),(_0x1c05b8,_0x5c742a)=>{const _0xdb40a1=_0x196a1a;this[_0xdb40a1(0x94)][_0xdb40a1(0xa0)](_0x5c742a[_0xdb40a1(0x93)],_0x5c742a[_0xdb40a1(0x8f)]),this[_0xdb40a1(0x84)](_0x2001b9['id']);}),_0xf92185;}[_0x3ca2d7(0x95)](_0x27ff58){const _0x518c18=_0x3ca2d7,_0x2d805f=_0x27ff58[_0x518c18(0xa9)][_0x518c18(0xbb)](0x1);return _0x2d805f instanceof _0x36a544?_0x2d805f:null;}[_0x3ca2d7(0x83)](_0x2b9df5){const _0x1f1ac5=_0x3ca2d7;_0x159e80({'emitter':_0x2b9df5,'contextElements':[_0x2b9df5[_0x1f1ac5(0xb1)]],'callback':()=>{const _0x1a4dff=_0x1f1ac5;_0x2b9df5[_0x1a4dff(0x9f)](),this[_0x1a4dff(0x94)][_0x1a4dff(0x80)]();},'activator':()=>_0x2b9df5[_0x1f1ac5(0x8d)]});}}
23
+ const _0x330fa5=_0xcfc5;function _0xcfc5(_0x1912b9,_0x109dcb){const _0x4570fe=_0x4570();return _0xcfc5=function(_0xcfc5e3,_0xa730fa){_0xcfc5e3=_0xcfc5e3-0x128;let _0x578981=_0x4570fe[_0xcfc5e3];return _0x578981;},_0xcfc5(_0x1912b9,_0x109dcb);}(function(_0x27b2d6,_0x2539b8){const _0xbfa75c=_0xcfc5,_0x1c5fb0=_0x27b2d6();while(!![]){try{const _0x4f8988=-parseInt(_0xbfa75c(0x12a))/0x1+-parseInt(_0xbfa75c(0x139))/0x2*(parseInt(_0xbfa75c(0x147))/0x3)+parseInt(_0xbfa75c(0x14c))/0x4+parseInt(_0xbfa75c(0x133))/0x5*(-parseInt(_0xbfa75c(0x13a))/0x6)+-parseInt(_0xbfa75c(0x13d))/0x7*(-parseInt(_0xbfa75c(0x13e))/0x8)+-parseInt(_0xbfa75c(0x12f))/0x9*(-parseInt(_0xbfa75c(0x162))/0xa)+parseInt(_0xbfa75c(0x164))/0xb;if(_0x4f8988===_0x2539b8)break;else _0x1c5fb0['push'](_0x1c5fb0['shift']());}catch(_0x23130c){_0x1c5fb0['push'](_0x1c5fb0['shift']());}}}(_0x4570,0x92f7b));import{BalloonPanelView as _0x216f9e,ButtonView as _0x403c8c,clickOutsideHandler as _0x4325ee,FormHeaderView as _0x294a70}from'ckeditor5/src/ui.js';import{IconPreviousArrow as _0x22e332}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x583227}from'../../../../aicore/utils/common-translations.js';import{AIChatContextResourcesView as _0x26b5ef}from'./aichatcontextresourcesview.js';const Bc=_0x330fa5(0x165),mc=_0x330fa5(0x138),dc=_0x330fa5(0x163);function _0x4570(){const _0x225f92=['onBackToContext','onBalloonClosed','224086WSAOBB','onLoadSourceResources','values','_addSourceResourceContent','_getResourcesViewFromBalloon','36OVQRNe','show','getLimiterElement','searchInputVisibleFrom','45610NSOGfV','change:isLoading','delete','_createBalloonResourcesView','hide','ck-button-icon\x20ck-button-back','446TTwgoL','276ziHESO','get','_config','7OnJjzZ','7208912NEIUsJ','addResourceToContext','showSourceResourcesBalloon','add','extendTemplate','clear','updateResourceState','isVisible','children','10539fKsmnr','isAnyResourceBalloonVisible','setResources','label','_createSourceResourceBalloonPanel','1105228OGMQBr','onResourceSelected','content','destroy','_sourceResourceBalloons','element','_locale','set','loadSourceResources','resource','source','_createBackButton','once','populateSourceResourceBalloon','_bodyCollection','getTargetElement','pin','execute','closeSourceResourceBalloon','_createBalloonHeader','_setupSingleResourceBalloonClickOutsideHandler','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','173810UkJoIQ','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_source','8603441iMUOrK','ck-ai-chat-context-controls__source-balloon-panel'];_0x4570=function(){return _0x225f92;};return _0x4570();}export class AIChatResourcesBalloonView{[_0x330fa5(0x150)]=new Map();[_0x330fa5(0x15a)];[_0x330fa5(0x152)];[_0x330fa5(0x13c)];constructor(_0x5c29ec,_0xbc9477,_0x47c4a8){const _0x3be467=_0x330fa5;this[_0x3be467(0x152)]=_0x5c29ec,this[_0x3be467(0x15a)]=_0xbc9477,this[_0x3be467(0x13c)]=_0x47c4a8;}[_0x330fa5(0x140)]({source:_0x414619,withBackButton:_0x2990fb}){const _0x413f44=_0x330fa5;let _0xf5f604=this[_0x413f44(0x150)][_0x413f44(0x13b)](_0x414619['id']);_0xf5f604||(_0xf5f604=this[_0x413f44(0x14b)](),this[_0x413f44(0x150)][_0x413f44(0x153)](_0x414619['id'],_0xf5f604),this[_0x413f44(0x160)](_0xf5f604)),this[_0x413f44(0x12d)]({'balloonPanel':_0xf5f604,'source':_0x414619,'withBackButton':_0x2990fb}),_0xf5f604[_0x413f44(0x130)]();const _0x509fa1=this[_0x413f44(0x13c)][_0x413f44(0x15b)]();_0x509fa1&&_0xf5f604[_0x413f44(0x15c)]({'target':_0x509fa1,'limiter':this[_0x413f44(0x13c)][_0x413f44(0x131)]()});}[_0x330fa5(0x159)](_0xe036c8,_0x2269d5,_0x492c3f){const _0x35bcab=_0x330fa5,_0x5617db=this[_0x35bcab(0x150)][_0x35bcab(0x13b)](_0xe036c8);if(!_0x5617db)return;const _0x12b4b7=this[_0x35bcab(0x12e)](_0x5617db);_0x12b4b7&&(_0x12b4b7[_0x35bcab(0x149)](_0x2269d5,_0x492c3f),_0x12b4b7[_0x35bcab(0x158)](_0x35bcab(0x134),()=>{const _0x74a8a6=_0x35bcab;_0x5617db[_0x74a8a6(0x15c)]({'target':this[_0x74a8a6(0x13c)][_0x74a8a6(0x15b)](),'limiter':this[_0x74a8a6(0x13c)][_0x74a8a6(0x131)]()});}));}[_0x330fa5(0x15e)](_0x31e870){const _0x4b7e95=_0x330fa5,_0x4b6891=this[_0x4b7e95(0x150)][_0x4b7e95(0x13b)](_0x31e870);_0x4b6891&&requestAnimationFrame(()=>{const _0x3c8367=_0x4b7e95;_0x4b6891[_0x3c8367(0x137)](),this[_0x3c8367(0x150)][_0x3c8367(0x135)](_0x31e870),this[_0x3c8367(0x13c)][_0x3c8367(0x129)]();});}[_0x330fa5(0x148)](){const _0x535f3a=_0x330fa5;for(const _0x190840 of this[_0x535f3a(0x150)][_0x535f3a(0x12c)]())if(_0x190840[_0x535f3a(0x145)])return!0x0;return!0x1;}[_0x330fa5(0x144)](_0x484a8e,_0x16c3f8,_0x38ad0c){const _0x34993f=_0x330fa5,_0x5dddeb=this[_0x34993f(0x150)][_0x34993f(0x13b)](_0x484a8e);if(!_0x5dddeb||!_0x5dddeb[_0x34993f(0x145)])return;const _0x15f569=this[_0x34993f(0x13c)][_0x34993f(0x15b)]();if(!_0x15f569)return;_0x5dddeb[_0x34993f(0x15c)]({'target':_0x15f569,'limiter':this[_0x34993f(0x13c)][_0x34993f(0x131)]()});const _0x531e9c=this[_0x34993f(0x12e)](_0x5dddeb);_0x531e9c&&_0x531e9c[_0x34993f(0x144)](_0x16c3f8,_0x38ad0c);}[_0x330fa5(0x14f)](){const _0xc145da=_0x330fa5;for(const _0x1d5f59 of this[_0xc145da(0x150)][_0xc145da(0x12c)]())_0x1d5f59[_0xc145da(0x14f)]();this[_0xc145da(0x150)][_0xc145da(0x143)]();}[_0x330fa5(0x14b)](){const _0x3b5b47=_0x330fa5,_0x42968f=new _0x216f9e(this[_0x3b5b47(0x152)]);return _0x42968f[_0x3b5b47(0x142)]({'attributes':{'class':Bc}}),this[_0x3b5b47(0x15a)][_0x3b5b47(0x141)](_0x42968f),_0x42968f;}[_0x330fa5(0x12d)]({balloonPanel:_0x2ce67b,source:_0x485625,withBackButton:_0x4e4aef}){const _0x23b4ae=_0x330fa5;_0x2ce67b[_0x23b4ae(0x14e)][_0x23b4ae(0x143)]();const _0x494bdd=this[_0x23b4ae(0x15f)]({'balloonPanel':_0x2ce67b,'source':_0x485625,'withBackButton':_0x4e4aef});_0x2ce67b[_0x23b4ae(0x14e)][_0x23b4ae(0x141)](_0x494bdd);const _0x37b5d2=this[_0x23b4ae(0x136)](_0x485625);_0x2ce67b[_0x23b4ae(0x14e)][_0x23b4ae(0x141)](_0x37b5d2);}[_0x330fa5(0x15f)]({balloonPanel:_0x1f0c4a,source:_0x162236,withBackButton:_0x52d4a2}){const _0x20e2a8=_0x330fa5,_0x5d6868=new _0x294a70(this[_0x20e2a8(0x152)],{'label':_0x162236[_0x20e2a8(0x14a)],'class':dc});return _0x52d4a2&&_0x5d6868[_0x20e2a8(0x146)][_0x20e2a8(0x141)](this[_0x20e2a8(0x157)](_0x1f0c4a),0x0),_0x5d6868;}[_0x330fa5(0x157)](_0x28dc6){const _0x3ced91=_0x330fa5,_0x5737cf=new _0x403c8c(this[_0x3ced91(0x152)]);return _0x5737cf[_0x3ced91(0x153)]({'icon':_0x22e332,'tooltip':_0x583227(this[_0x3ced91(0x152)],_0x3ced91(0x161)),'tooltipPosition':'n','class':mc}),_0x5737cf['on'](_0x3ced91(0x15d),()=>{const _0x489e7b=_0x3ced91;_0x28dc6[_0x489e7b(0x137)](),this[_0x489e7b(0x13c)][_0x489e7b(0x128)]();}),_0x5737cf;}[_0x330fa5(0x136)](_0xcc8e4c){const _0x182638=_0x330fa5,_0x1eba18=new _0x26b5ef(this[_0x182638(0x152)],{'source':_0xcc8e4c,'searchInputVisibleFrom':this[_0x182638(0x13c)][_0x182638(0x132)]});return _0x1eba18['on'](_0x182638(0x154),(_0x56a50e,_0x6c45f)=>{const _0x20d424=_0x182638;this[_0x20d424(0x13c)][_0x20d424(0x12b)](_0x6c45f);}),_0x1eba18['on'](_0x182638(0x13f),(_0x3ab84f,_0x24d968)=>{const _0x4060ac=_0x182638;this[_0x4060ac(0x13c)][_0x4060ac(0x14d)](_0x24d968[_0x4060ac(0x156)],_0x24d968[_0x4060ac(0x155)]),this[_0x4060ac(0x15e)](_0xcc8e4c['id']);}),_0x1eba18;}[_0x330fa5(0x12e)](_0x3076f3){const _0x10954b=_0x330fa5,_0x5cd67e=_0x3076f3[_0x10954b(0x14e)][_0x10954b(0x13b)](0x1);return _0x5cd67e instanceof _0x26b5ef?_0x5cd67e:null;}[_0x330fa5(0x160)](_0x553f06){const _0x7dfa10=_0x330fa5;_0x4325ee({'emitter':_0x553f06,'contextElements':[_0x553f06[_0x7dfa10(0x151)]],'callback':()=>{const _0x3deb9a=_0x7dfa10;_0x553f06[_0x3deb9a(0x137)](),this[_0x3deb9a(0x13c)][_0x3deb9a(0x129)]();},'activator':()=>_0x553f06[_0x7dfa10(0x145)]});}}