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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (318) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +5 -5
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +15 -15
  150. package/src/aiactions/aiactions.js +1 -1
  151. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  152. package/src/aiactions/model/aiactionsreply.js +1 -1
  153. package/src/aiassistant/adapters/aiadapter.js +1 -1
  154. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  155. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  156. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  157. package/src/aiassistant/aiassistant.js +1 -1
  158. package/src/aiassistant/aiassistantediting.js +1 -1
  159. package/src/aiassistant/aiassistantui.js +1 -1
  160. package/src/aiassistant/legacyerrors.js +1 -1
  161. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  162. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  163. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  164. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  165. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  166. package/src/aiassistant/ui/form/aiformview.js +1 -1
  167. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  168. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  169. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  170. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  171. package/src/aiassistant/utils/common-translations.js +1 -1
  172. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  173. package/src/aiballoon/aiballoon.js +1 -1
  174. package/src/aiballoon/ui/aiballoonview.js +1 -1
  175. package/src/aichat/aichat.js +1 -1
  176. package/src/aichat/aichatballoon.js +1 -1
  177. package/src/aichat/aichatcontroller.js +1 -1
  178. package/src/aichat/aichatui.js +1 -1
  179. package/src/aichat/model/aichatcontext.js +1 -1
  180. package/src/aichat/model/aichatconversation.js +1 -1
  181. package/src/aichat/model/aichatinteraction.js +1 -1
  182. package/src/aichat/ui/aichatballoonview.js +1 -1
  183. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  184. package/src/aichat/ui/aichatfeedview.js +1 -1
  185. package/src/aichat/ui/aichatheaderview.js +1 -1
  186. package/src/aichat/ui/aichatview.js +1 -1
  187. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  188. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  189. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  190. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  191. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  192. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  193. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  194. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  195. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  196. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  197. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  198. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  199. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  200. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  201. package/src/aichat/ui/feed/aichatfeedcustomelementview.js +1 -1
  202. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  203. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  204. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  205. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  206. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  207. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  208. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  209. package/src/aichat/utils/eventnames.js +1 -1
  210. package/src/aichat/utils/promisequeue.js +1 -1
  211. package/src/aichathistory/aichathistory.js +1 -1
  212. package/src/aichathistory/aichathistorycontroller.js +1 -1
  213. package/src/aichathistory/aichathistoryui.js +1 -1
  214. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  215. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  216. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  217. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  218. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  219. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  220. package/src/aichatshortcuts/aichatshortcuts.js +1 -1
  221. package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
  222. package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
  223. package/src/aicore/aiconnector.js +1 -1
  224. package/src/aicore/aiediting.js +1 -1
  225. package/src/aicore/model/aicapabilities.js +1 -1
  226. package/src/aicore/model/aicontext.js +1 -1
  227. package/src/aicore/model/aiinteraction.js +1 -1
  228. package/src/aicore/model/aimodels.js +1 -1
  229. package/src/aicore/model/aireply.js +1 -1
  230. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  231. package/src/aicore/pipeline/airesponseparser.js +2 -2
  232. package/src/aicore/ui/aidisclaimerview.js +1 -1
  233. package/src/aicore/ui/aiskeleton.js +1 -1
  234. package/src/aicore/ui/aispinner.js +1 -1
  235. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  236. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  237. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  238. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
  239. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
  240. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
  241. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  242. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  243. package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
  244. package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
  245. package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
  246. package/src/aicore/utils/common-translations.js +1 -1
  247. package/src/aicore/utils/createresizebutton.js +1 -1
  248. package/src/aicore/utils/documentposition.js +1 -1
  249. package/src/aicore/utils/documentrange.js +1 -1
  250. package/src/aicore/utils/eventnames.js +1 -1
  251. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  252. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  253. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  254. package/src/aicore/utils/htmlparser.js +1 -1
  255. package/src/aicore/utils/htmlstreamer.js +1 -1
  256. package/src/aicore/utils/scrollmanager.js +1 -1
  257. package/src/aieditorintegration/aieditorintegration.js +1 -1
  258. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  259. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  260. package/src/aiquickactions/aiquickactions.js +1 -1
  261. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  262. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  263. package/src/aiquickactions/aiquickactionsui.js +1 -1
  264. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  265. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  266. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  267. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
  268. package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
  269. package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
  270. package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
  271. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  272. package/src/aireviewcore/aireviewcorecontroller.js +1 -1
  273. package/src/aireviewcore/aireviewcoreediting.js +1 -1
  274. package/src/aireviewcore/aireviewcoreui.js +1 -1
  275. package/src/aireviewcore/model/aireviewcheck.js +1 -1
  276. package/src/aireviewcore/model/aireviewchecklist.js +1 -1
  277. package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
  278. package/src/aireviewcore/model/aireviewcheckresultchange.js +1 -1
  279. package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
  280. package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
  281. package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
  282. package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
  283. package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
  284. package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
  285. package/src/aireviewcore/ui/aireviewcoregeneralerrorview.js +1 -1
  286. package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
  287. package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
  288. package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
  289. package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
  290. package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
  291. package/src/aireviewcore/ui/aireviewcoreview.js +1 -1
  292. package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
  293. package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +1 -1
  294. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  295. package/src/aireviewmode/aireviewmode.js +1 -1
  296. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  297. package/src/aireviewmode/aireviewmodeui.js +1 -1
  298. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  299. package/src/aireviewmode/model/aireviewcheckextra.js +1 -1
  300. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  301. package/src/aireviewmode/model/aireviewextracheckrun.js +1 -1
  302. package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
  303. package/src/aitabs/aitabs.js +1 -1
  304. package/src/aitabs/aitabsmainview.js +1 -1
  305. package/src/aitabs/tabs/aitabsview.js +1 -1
  306. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  307. package/src/aitabs/tabs/tabpanelview.js +1 -1
  308. package/src/aitranslate/aitranslate.js +1 -1
  309. package/src/aitranslate/aitranslatecontroller.js +1 -1
  310. package/src/aitranslate/aitranslateui.js +1 -1
  311. package/src/aitranslate/model/aitranslatecheck.js +1 -1
  312. package/src/aitranslate/model/aitranslatechecklist.js +1 -1
  313. package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
  314. package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
  315. package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
  316. package/src/errors.js +1 -1
  317. package/src/errorsmap.js +1 -1
  318. package/src/index.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x23c6(_0x38706d,_0x3d233e){const _0x187cf3=_0x187c();return _0x23c6=function(_0x23c60a,_0xd24a36){_0x23c60a=_0x23c60a-0xbc;let _0x559ab1=_0x187cf3[_0x23c60a];return _0x559ab1;},_0x23c6(_0x38706d,_0x3d233e);}function _0x187c(){const _0x3bf026=['clearError','AI_CHAT_CONTEXT_URL_INVALID_ERROR','_setupTemplate','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','ck-labeled-field-view_empty','setTemplate','fire','render','fieldView','createCollection','confirmButton','keystrokes','196eMgsPX','focus','backButton','_createBackButton','tab','withBackButton','submit','_handleSubmit','ck-button-icon','_createUrlInputField','change:withBackButton','5123544FtCGAA','cancel','_focusables','371288XxfEfm','setError','add','_setupEventHandlers','trim','set','ck-ai-chat-context-controls__url-input-section','length','ck-button-icon\x20ck-button-back','2sShYum','focusCycler','focusTracker','shift+tab','55NXNTVi','ck-ai-chat-context-controls__url-form','\x20ck-hidden','form','element','2322150ngIVod','_createConfirmButton','AI_CHAT_CONTEXT_URL_LABEL','urlInputField','errorText','submitUrl','5023125KONPwO','children','forEach','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','isEnabled','AI_CHAT_CONTEXT_URL_ADD_URL','_updateConfirmButtonState','input','_setupKeystrokes','locale','refreshBalloon','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','execute','58266lGwcsW','AI_CHAT_CONTEXT_URL_PLACEHOLDER','5cRESqo','destroy','value','listenTo','4352124BQbDbo','stop','div','getValue','_isValidUrl','esc','931137cobZMW','clear'];_0x187c=function(){return _0x3bf026;};return _0x187c();}const _0x55cb47=_0x23c6;(function(_0x17385b,_0x5ce8aa){const _0x5bb994=_0x23c6,_0x49d411=_0x17385b();while(!![]){try{const _0x36d6fd=parseInt(_0x5bb994(0xec))/0x1+-parseInt(_0x5bb994(0xf5))/0x2*(-parseInt(_0x5bb994(0xd0))/0x3)+parseInt(_0x5bb994(0xca))/0x4*(-parseInt(_0x5bb994(0xc6))/0x5)+-parseInt(_0x5bb994(0xc4))/0x6*(parseInt(_0x5bb994(0xde))/0x7)+parseInt(_0x5bb994(0xe9))/0x8+-parseInt(_0x5bb994(0x104))/0x9+-parseInt(_0x5bb994(0xfe))/0xa*(-parseInt(_0x5bb994(0xf9))/0xb);if(_0x36d6fd===_0x5ce8aa)break;else _0x49d411['push'](_0x49d411['shift']());}catch(_0x280296){_0x49d411['push'](_0x49d411['shift']());}}}(_0x187c,0x89f81));import{FocusTracker as _0x3b55c9,KeystrokeHandler as _0x4ede6f}from'ckeditor5/src/utils.js';import{ButtonView as _0x43c258,FocusCycler as _0x47b0d4,LabeledFieldView as _0x5a392f,View as _0x3b31df,FormHeaderView as _0x3f564b,createLabeledInputText as _0x48c145,submitHandler as _0x560f68}from'ckeditor5/src/ui.js';import{IconCheck as _0x458347,IconPreviousArrow as _0x45663e}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x2519a3}from'../../../aicore/utils/common-translations.js';const ch=_0x55cb47(0xfa),rh=_0x55cb47(0xf2);export class AIChatContextPanelUrlInputView extends _0x3b31df{[_0x55cb47(0xf7)];[_0x55cb47(0xdd)];[_0x55cb47(0xeb)];[_0x55cb47(0xf6)];[_0x55cb47(0x101)];[_0x55cb47(0xe0)];[_0x55cb47(0xdc)];constructor(_0x15ac9a){const _0x5d3131=_0x55cb47;super(_0x15ac9a),this[_0x5d3131(0xf7)]=new _0x3b55c9(),this[_0x5d3131(0xdd)]=new _0x4ede6f(),this[_0x5d3131(0xe0)]=this[_0x5d3131(0xe1)](),this[_0x5d3131(0x101)]=this[_0x5d3131(0xe7)](),this[_0x5d3131(0xdc)]=this[_0x5d3131(0xff)](),this[_0x5d3131(0xeb)]=this[_0x5d3131(0xdb)]([this[_0x5d3131(0xe0)],this[_0x5d3131(0x101)],this[_0x5d3131(0xdc)]]),this[_0x5d3131(0xf6)]=new _0x47b0d4({'focusables':this[_0x5d3131(0xeb)],'focusTracker':this[_0x5d3131(0xf7)],'keystrokeHandler':this[_0x5d3131(0xdd)],'actions':{'focusPrevious':_0x5d3131(0xf8),'focusNext':_0x5d3131(0xe2)}}),this[_0x5d3131(0xf1)](_0x5d3131(0xe3),!0x0),this[_0x5d3131(0xd4)](),this[_0x5d3131(0xef)](),this[_0x5d3131(0xbf)]();}[_0x55cb47(0xd9)](){const _0x597053=_0x55cb47;super[_0x597053(0xd9)](),this[_0x597053(0xeb)][_0x597053(0x106)](_0x5a3720=>{const _0x49f959=_0x597053;this[_0x49f959(0xf7)][_0x49f959(0xee)](_0x5a3720[_0x49f959(0xfd)]),this[_0x49f959(0xdd)][_0x49f959(0xc9)](_0x5a3720[_0x49f959(0xfd)]);}),_0x560f68({'view':this}),this[_0x597053(0xdf)]();}[_0x55cb47(0xc7)](){const _0x5ded0d=_0x55cb47;super[_0x5ded0d(0xc7)](),this[_0x5ded0d(0xf7)][_0x5ded0d(0xc7)](),this[_0x5ded0d(0xdd)][_0x5ded0d(0xc7)]();}[_0x55cb47(0xdf)](){const _0x1e31e3=_0x55cb47;this[_0x1e31e3(0x101)][_0x1e31e3(0xdf)]();}[_0x55cb47(0xcd)](){const _0x149812=_0x55cb47;return this[_0x149812(0x101)][_0x149812(0xda)][_0x149812(0xfd)]?.[_0x149812(0xc8)]?.[_0x149812(0xf0)]()||'';}[_0x55cb47(0xd1)](){const _0x52459d=_0x55cb47;this[_0x52459d(0x101)][_0x52459d(0xda)][_0x52459d(0xfd)][_0x52459d(0xc8)]='',this[_0x52459d(0x101)][_0x52459d(0x102)]=null,this[_0x52459d(0xdc)][_0x52459d(0x108)]=!0x1;}[_0x55cb47(0xed)](_0x1d7965){const _0x3991d8=_0x55cb47;this[_0x3991d8(0x101)][_0x3991d8(0x102)]=_0x1d7965,this[_0x3991d8(0xbd)](),this[_0x3991d8(0xd8)](_0x3991d8(0xc1));}[_0x55cb47(0xd2)](){const _0x3d16d9=_0x55cb47;this[_0x3d16d9(0x101)][_0x3d16d9(0x102)]=null,this[_0x3d16d9(0xbd)]();}[_0x55cb47(0xe1)](){const _0x2f00cd=_0x55cb47,_0x484b9a=new _0x43c258(this[_0x2f00cd(0xc0)]);return _0x484b9a[_0x2f00cd(0xf1)]({'icon':_0x45663e,'tooltip':_0x2519a3(this[_0x2f00cd(0xc0)],_0x2f00cd(0x107)),'tooltipPosition':'n','class':[_0x2f00cd(0xf4)]}),this['on'](_0x2f00cd(0xe8),(_0xa31e51,_0x420213,_0x222e2c)=>{const _0x3a8902=_0x2f00cd;_0x484b9a[_0x3a8902(0xf1)]({'class':[_0x3a8902(0xf4)+(_0x222e2c?'':_0x3a8902(0xfb))]});}),_0x484b9a;}[_0x55cb47(0xe7)](){const _0x530ecb=_0x55cb47,_0x175826=new _0x5a392f(this[_0x530ecb(0xc0)],_0x48c145);return _0x175826[_0x530ecb(0xf1)]({'label':_0x2519a3(this[_0x530ecb(0xc0)],_0x530ecb(0x100)),'class':_0x530ecb(0xd6)}),_0x175826[_0x530ecb(0xda)][_0x530ecb(0xf1)]({'placeholder':_0x2519a3(this[_0x530ecb(0xc0)],_0x530ecb(0xc5))}),_0x175826;}[_0x55cb47(0xff)](){const _0xcf3b08=_0x55cb47,_0x3fd495=new _0x43c258(this[_0xcf3b08(0xc0)]);return _0x3fd495[_0xcf3b08(0xf1)]({'icon':_0x458347,'tooltip':_0x2519a3(this[_0xcf3b08(0xc0)],_0xcf3b08(0xbc)),'tooltipPosition':'n','class':_0xcf3b08(0xe6),'type':_0xcf3b08(0xe4),'isEnabled':!0x1}),_0x3fd495;}[_0x55cb47(0xd4)](){const _0x4529c4=_0x55cb47,_0x1b8341=new _0x3f564b(this[_0x4529c4(0xc0)],{'label':_0x2519a3(this[_0x4529c4(0xc0)],_0x4529c4(0xbc)),'class':_0x4529c4(0xd5)});_0x1b8341[_0x4529c4(0x105)][_0x4529c4(0xee)](this[_0x4529c4(0xe0)],0x0),this[_0x4529c4(0xd7)]({'tag':_0x4529c4(0xfc),'attributes':{'class':ch,'tabindex':'-1'},'children':[_0x1b8341,{'tag':_0x4529c4(0xcc),'attributes':{'class':rh},'children':[this[_0x4529c4(0x101)],this[_0x4529c4(0xdc)]]}]});}[_0x55cb47(0xef)](){const _0x21ebe5=_0x55cb47;this[_0x21ebe5(0xe0)]['on'](_0x21ebe5(0xc3),()=>{const _0x157271=_0x21ebe5;this[_0x157271(0xd1)](),this[_0x157271(0xd8)](_0x157271(0xea));}),this[_0x21ebe5(0x101)][_0x21ebe5(0xda)]['on'](_0x21ebe5(0xbe),()=>{const _0x4b4741=_0x21ebe5;this[_0x4b4741(0xd2)](),this[_0x4b4741(0xbd)](),this[_0x4b4741(0xd8)](_0x4b4741(0xc1));}),this['on'](_0x21ebe5(0xe4),_0x4f8a3a=>{const _0x1d5a55=_0x21ebe5;_0x4f8a3a[_0x1d5a55(0xcb)](),this[_0x1d5a55(0xe5)]();});}[_0x55cb47(0xbf)](){const _0x23e600=_0x55cb47;this[_0x23e600(0xdd)][_0x23e600(0xf1)](_0x23e600(0xcf),(_0x1fd826,_0x497081)=>{const _0x54dbad=_0x23e600;this[_0x54dbad(0xd1)](),this[_0x54dbad(0xd8)](_0x54dbad(0xea)),_0x497081();});}[_0x55cb47(0xe5)](){const _0xf69a0=_0x55cb47,_0x581fc6=this[_0xf69a0(0xcd)]()[_0xf69a0(0xf0)]();_0x581fc6?this[_0xf69a0(0xce)](_0x581fc6)?(this[_0xf69a0(0xd2)](),this[_0xf69a0(0xd8)](_0xf69a0(0x103),_0x581fc6)):this[_0xf69a0(0xed)](_0x2519a3(this[_0xf69a0(0xc0)],_0xf69a0(0xd3))):this[_0xf69a0(0xed)](_0x2519a3(this[_0xf69a0(0xc0)],_0xf69a0(0xc2)));}[_0x55cb47(0xbd)](){const _0x44af35=_0x55cb47,_0x25d011=this[_0x44af35(0xcd)]()[_0x44af35(0xf0)](),_0x457216=!!this[_0x44af35(0x101)][_0x44af35(0x102)];this[_0x44af35(0xdc)][_0x44af35(0x108)]=_0x25d011[_0x44af35(0xf3)]>0x0&&!_0x457216;}[_0x55cb47(0xce)](_0x30cb52){try{return!!new URL(_0x30cb52);}catch{return!0x1;}}}
23
+ function _0x36aa(_0x24b9b5,_0x3eab99){const _0x40df5d=_0x40df();return _0x36aa=function(_0x36aabf,_0x34983a){_0x36aabf=_0x36aabf-0x1c9;let _0x598be1=_0x40df5d[_0x36aabf];return _0x598be1;},_0x36aa(_0x24b9b5,_0x3eab99);}const _0x2b22a4=_0x36aa;(function(_0x28ba3e,_0x2fde5c){const _0x1e182=_0x36aa,_0x3a7ab7=_0x28ba3e();while(!![]){try{const _0x22f6ab=-parseInt(_0x1e182(0x1e2))/0x1+-parseInt(_0x1e182(0x211))/0x2+-parseInt(_0x1e182(0x1d4))/0x3*(parseInt(_0x1e182(0x1f8))/0x4)+-parseInt(_0x1e182(0x20b))/0x5*(-parseInt(_0x1e182(0x213))/0x6)+-parseInt(_0x1e182(0x202))/0x7*(parseInt(_0x1e182(0x1f0))/0x8)+-parseInt(_0x1e182(0x1f9))/0x9*(-parseInt(_0x1e182(0x1d9))/0xa)+parseInt(_0x1e182(0x1dc))/0xb*(parseInt(_0x1e182(0x1d8))/0xc);if(_0x22f6ab===_0x2fde5c)break;else _0x3a7ab7['push'](_0x3a7ab7['shift']());}catch(_0x3ee3f4){_0x3a7ab7['push'](_0x3a7ab7['shift']());}}}(_0x40df,0xc8b53));import{FocusTracker as _0x494d07,KeystrokeHandler as _0x400e8b}from'ckeditor5/src/utils.js';import{ButtonView as _0x5bb5fd,FocusCycler as _0x9c5707,LabeledFieldView as _0x594956,View as _0x3b5c3f,FormHeaderView as _0x4afe1f,createLabeledInputText as _0x55811d,submitHandler as _0x1b231a}from'ckeditor5/src/ui.js';function _0x40df(){const _0x56ef0f=['ck-button-icon','focus','urlInputField','setTemplate','input','length','\x20ck-hidden','errorText','51wOBVOu','set','isEnabled','ck-ai-chat-context-controls__url-input-section','2999016TtahyJ','65140SyNhfw','clear','listenTo','110ZztkoY','destroy','setError','fieldView','add','_focusables','930666DiRKtt','forEach','focusCycler','_updateConfirmButtonState','AI_CHAT_CONTEXT_URL_PLACEHOLDER','refreshBalloon','ck-labeled-field-view_empty','trim','AI_CHAT_CONTEXT_URL_ADD_URL','change:withBackButton','backButton','AI_CHAT_CONTEXT_URL_INVALID_ERROR','withBackButton','execute','5928oNYWYS','_handleSubmit','stop','getValue','submitUrl','render','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','258604SxCQPl','2151GAJXYv','children','esc','locale','submit','div','form','value','ck-ai-chat-context-controls__url-form','1274VRKfvr','_createConfirmButton','_setupTemplate','cancel','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','element','clearError','_createBackButton','fire','150vaILbe','AI_CHAT_CONTEXT_URL_LABEL','_setupKeystrokes','tab','createCollection','_setupEventHandlers','2412324vANigV','_createUrlInputField','27366ahegTw','focusTracker','ck-button-icon\x20ck-button-back','_isValidUrl','keystrokes','shift+tab','confirmButton'];_0x40df=function(){return _0x56ef0f;};return _0x40df();}import{IconCheck as _0x158872,IconPreviousArrow as _0x1d5ad4}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x1e047a}from'../../../aicore/utils/common-translations.js';const oh=_0x2b22a4(0x201),ch=_0x2b22a4(0x1d7);export class AIChatContextPanelUrlInputView extends _0x3b5c3f{[_0x2b22a4(0x214)];[_0x2b22a4(0x1c9)];[_0x2b22a4(0x1e1)];[_0x2b22a4(0x1e4)];[_0x2b22a4(0x1ce)];[_0x2b22a4(0x1ec)];[_0x2b22a4(0x1cb)];constructor(_0x5700dd){const _0x2c1220=_0x2b22a4;super(_0x5700dd),this[_0x2c1220(0x214)]=new _0x494d07(),this[_0x2c1220(0x1c9)]=new _0x400e8b(),this[_0x2c1220(0x1ec)]=this[_0x2c1220(0x209)](),this[_0x2c1220(0x1ce)]=this[_0x2c1220(0x212)](),this[_0x2c1220(0x1cb)]=this[_0x2c1220(0x203)](),this[_0x2c1220(0x1e1)]=this[_0x2c1220(0x20f)]([this[_0x2c1220(0x1ec)],this[_0x2c1220(0x1ce)],this[_0x2c1220(0x1cb)]]),this[_0x2c1220(0x1e4)]=new _0x9c5707({'focusables':this[_0x2c1220(0x1e1)],'focusTracker':this[_0x2c1220(0x214)],'keystrokeHandler':this[_0x2c1220(0x1c9)],'actions':{'focusPrevious':_0x2c1220(0x1ca),'focusNext':_0x2c1220(0x20e)}}),this[_0x2c1220(0x1d5)](_0x2c1220(0x1ee),!0x0),this[_0x2c1220(0x204)](),this[_0x2c1220(0x210)](),this[_0x2c1220(0x20d)]();}[_0x2b22a4(0x1f5)](){const _0x13a41f=_0x2b22a4;super[_0x13a41f(0x1f5)](),this[_0x13a41f(0x1e1)][_0x13a41f(0x1e3)](_0x323964=>{const _0xb3b772=_0x13a41f;this[_0xb3b772(0x214)][_0xb3b772(0x1e0)](_0x323964[_0xb3b772(0x207)]),this[_0xb3b772(0x1c9)][_0xb3b772(0x1db)](_0x323964[_0xb3b772(0x207)]);}),_0x1b231a({'view':this}),this[_0x13a41f(0x1cd)]();}[_0x2b22a4(0x1dd)](){const _0x5a6d7c=_0x2b22a4;super[_0x5a6d7c(0x1dd)](),this[_0x5a6d7c(0x214)][_0x5a6d7c(0x1dd)](),this[_0x5a6d7c(0x1c9)][_0x5a6d7c(0x1dd)]();}[_0x2b22a4(0x1cd)](){const _0x150bd9=_0x2b22a4;this[_0x150bd9(0x1ce)][_0x150bd9(0x1cd)]();}[_0x2b22a4(0x1f3)](){const _0x3b1924=_0x2b22a4;return this[_0x3b1924(0x1ce)][_0x3b1924(0x1df)][_0x3b1924(0x207)]?.[_0x3b1924(0x200)]?.[_0x3b1924(0x1e9)]()||'';}[_0x2b22a4(0x1da)](){const _0x436599=_0x2b22a4;this[_0x436599(0x1ce)][_0x436599(0x1df)][_0x436599(0x207)][_0x436599(0x200)]='',this[_0x436599(0x1ce)][_0x436599(0x1d3)]=null,this[_0x436599(0x1cb)][_0x436599(0x1d6)]=!0x1;}[_0x2b22a4(0x1de)](_0x1001c0){const _0x538e86=_0x2b22a4;this[_0x538e86(0x1ce)][_0x538e86(0x1d3)]=_0x1001c0,this[_0x538e86(0x1e5)](),this[_0x538e86(0x20a)](_0x538e86(0x1e7));}[_0x2b22a4(0x208)](){const _0x50dd00=_0x2b22a4;this[_0x50dd00(0x1ce)][_0x50dd00(0x1d3)]=null,this[_0x50dd00(0x1e5)]();}[_0x2b22a4(0x209)](){const _0x16c018=_0x2b22a4,_0x1982f6=new _0x5bb5fd(this[_0x16c018(0x1fc)]);return _0x1982f6[_0x16c018(0x1d5)]({'icon':_0x1d5ad4,'tooltip':_0x1e047a(this[_0x16c018(0x1fc)],_0x16c018(0x1f7)),'tooltipPosition':'n','class':[_0x16c018(0x215)]}),this['on'](_0x16c018(0x1eb),(_0x44cc97,_0x298048,_0x46dbff)=>{const _0xb77c99=_0x16c018;_0x1982f6[_0xb77c99(0x1d5)]({'class':[_0xb77c99(0x215)+(_0x46dbff?'':_0xb77c99(0x1d2))]});}),_0x1982f6;}[_0x2b22a4(0x212)](){const _0x5498ed=_0x2b22a4,_0x2cf153=new _0x594956(this[_0x5498ed(0x1fc)],_0x55811d);return _0x2cf153[_0x5498ed(0x1d5)]({'label':_0x1e047a(this[_0x5498ed(0x1fc)],_0x5498ed(0x20c)),'class':_0x5498ed(0x1e8)}),_0x2cf153[_0x5498ed(0x1df)][_0x5498ed(0x1d5)]({'placeholder':_0x1e047a(this[_0x5498ed(0x1fc)],_0x5498ed(0x1e6))}),_0x2cf153;}[_0x2b22a4(0x203)](){const _0x8ee4d5=_0x2b22a4,_0x18ece6=new _0x5bb5fd(this[_0x8ee4d5(0x1fc)]);return _0x18ece6[_0x8ee4d5(0x1d5)]({'icon':_0x158872,'tooltip':_0x1e047a(this[_0x8ee4d5(0x1fc)],_0x8ee4d5(0x1ea)),'tooltipPosition':'n','class':_0x8ee4d5(0x1cc),'type':_0x8ee4d5(0x1fd),'isEnabled':!0x1}),_0x18ece6;}[_0x2b22a4(0x204)](){const _0x3c3474=_0x2b22a4,_0x42fe90=new _0x4afe1f(this[_0x3c3474(0x1fc)],{'label':_0x1e047a(this[_0x3c3474(0x1fc)],_0x3c3474(0x1ea)),'class':_0x3c3474(0x1f6)});_0x42fe90[_0x3c3474(0x1fa)][_0x3c3474(0x1e0)](this[_0x3c3474(0x1ec)],0x0),this[_0x3c3474(0x1cf)]({'tag':_0x3c3474(0x1ff),'attributes':{'class':oh,'tabindex':'-1'},'children':[_0x42fe90,{'tag':_0x3c3474(0x1fe),'attributes':{'class':ch},'children':[this[_0x3c3474(0x1ce)],this[_0x3c3474(0x1cb)]]}]});}[_0x2b22a4(0x210)](){const _0x168e37=_0x2b22a4;this[_0x168e37(0x1ec)]['on'](_0x168e37(0x1ef),()=>{const _0x4ea4a5=_0x168e37;this[_0x4ea4a5(0x1da)](),this[_0x4ea4a5(0x20a)](_0x4ea4a5(0x205));}),this[_0x168e37(0x1ce)][_0x168e37(0x1df)]['on'](_0x168e37(0x1d0),()=>{const _0x3ed9ac=_0x168e37;this[_0x3ed9ac(0x208)](),this[_0x3ed9ac(0x1e5)](),this[_0x3ed9ac(0x20a)](_0x3ed9ac(0x1e7));}),this['on'](_0x168e37(0x1fd),_0x104525=>{const _0x3135df=_0x168e37;_0x104525[_0x3135df(0x1f2)](),this[_0x3135df(0x1f1)]();});}[_0x2b22a4(0x20d)](){const _0x32d65f=_0x2b22a4;this[_0x32d65f(0x1c9)][_0x32d65f(0x1d5)](_0x32d65f(0x1fb),(_0x3768a1,_0x7522ba)=>{const _0x44598d=_0x32d65f;this[_0x44598d(0x1da)](),this[_0x44598d(0x20a)](_0x44598d(0x205)),_0x7522ba();});}[_0x2b22a4(0x1f1)](){const _0x20f78f=_0x2b22a4,_0x4bf9ac=this[_0x20f78f(0x1f3)]()[_0x20f78f(0x1e9)]();_0x4bf9ac?this[_0x20f78f(0x216)](_0x4bf9ac)?(this[_0x20f78f(0x208)](),this[_0x20f78f(0x20a)](_0x20f78f(0x1f4),_0x4bf9ac)):this[_0x20f78f(0x1de)](_0x1e047a(this[_0x20f78f(0x1fc)],_0x20f78f(0x1ed))):this[_0x20f78f(0x1de)](_0x1e047a(this[_0x20f78f(0x1fc)],_0x20f78f(0x206)));}[_0x2b22a4(0x1e5)](){const _0x5a04a6=_0x2b22a4,_0x837533=this[_0x5a04a6(0x1f3)]()[_0x5a04a6(0x1e9)](),_0x36af89=!!this[_0x5a04a6(0x1ce)][_0x5a04a6(0x1d3)];this[_0x5a04a6(0x1cb)][_0x5a04a6(0x1d6)]=_0x837533[_0x5a04a6(0x1d1)]>0x0&&!_0x36af89;}[_0x2b22a4(0x216)](_0x17a3fe){try{return!!new URL(_0x17a3fe);}catch{return!0x1;}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x126b13=_0x1e4d;(function(_0x1645aa,_0x21ff50){const _0x5ba070=_0x1e4d,_0x18b90e=_0x1645aa();while(!![]){try{const _0x2490ac=parseInt(_0x5ba070(0x15a))/0x1+parseInt(_0x5ba070(0x172))/0x2+-parseInt(_0x5ba070(0x15b))/0x3*(parseInt(_0x5ba070(0x13d))/0x4)+parseInt(_0x5ba070(0x16b))/0x5+-parseInt(_0x5ba070(0x187))/0x6+-parseInt(_0x5ba070(0x14d))/0x7*(parseInt(_0x5ba070(0x1a3))/0x8)+parseInt(_0x5ba070(0x148))/0x9*(parseInt(_0x5ba070(0x10e))/0xa);if(_0x2490ac===_0x21ff50)break;else _0x18b90e['push'](_0x18b90e['shift']());}catch(_0x10901d){_0x18b90e['push'](_0x18b90e['shift']());}}}(_0x6df4,0x6d8fd));import{BalloonPanelView as _0x170763,ButtonView as _0x5af6c8,clickOutsideHandler as _0x2fca71,FileDialogButtonView as _0x48a3ba,IconView as _0x2d0952,View as _0x17e978}from'ckeditor5/src/ui.js';function _0x1e4d(_0x3cadb7,_0x32da12){const _0x6df4a4=_0x6df4();return _0x1e4d=function(_0x1e4d3a,_0x4e8254){_0x1e4d3a=_0x1e4d3a-0x10e;let _0x2eb9fa=_0x6df4a4[_0x1e4d3a];return _0x2eb9fa;},_0x1e4d(_0x3cadb7,_0x32da12);}import{IconBrowseFiles as _0x4f1fed,IconDocument as _0x4ae223,IconDocumentOutline as _0x17362d,IconDropdownArrow as _0x46553d,IconLink as _0x2cd11b,IconPaperClip as _0x51545c}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x375ef0}from'./aichatcontextitembuttonview.js';function _0x6df4(){const _0x55f6ed=['removeContextItemChip','addUrlToContext','63gvTbrC','_setBalloonPanelContent','closeSourceResourceBalloon','pin','isAnyResourceBalloonVisible','7RNtTCc','loadSourceResources','setTemplate','ck-ai-chat-controls-button','ck-ai-chat-context-controls__show-more-balloon-panel','refreshBalloon','_bindEventHandlers','menuitem','show','ck-ai-chat-context-chips-wrapper-balloon','hideUrlBalloonPanel','clearCurrentContextItems','bind','221127RtzVMr','6QrpckL','_currentContextsChips','type','tooltip','southArrowNorth','_setupAddContextBalloonClickOutsideHandler','render','source','_showSourceResourcesBalloon','northArrowSouthWest','AI_CHAT_CONTEXT_ADD_CONTEXT','clear','_addContextBalloonConfig','_handleAddContextButtonClick','ck-ai-chat','enabled','4440750KkVcAS','conversation','submitUrl','buttonView','removeContextItem','label','cancel','1182210nsRfnp','bodyCollection','element','ck-ai-chat-context-controls__add-context-button','_urlInputView','showAddContextBalloonPanel','addContextItem','set','ck-reset_all-excluded','ck-ai-chat-context-controls__balloon-button','createCollection','_getLimiterElement','_createBalloonButton','__arrow','div','_createResourcesBalloonView','_conversationContextsChips','add','body','_setupUrlBalloonClickOutsideHandler','reorganizeChips','4135824xaOSih','addFileToContext','content','ck-ai-chat-context-controls__pending-contexts','_toggleAddContextBalloon','_hasExactlyOneSource','searchInputVisibleFrom','document','focus','clearConversationContextItems','southArrowNorthEast','updateResourceState','populateSourceResourceBalloon','ck-ai-chat-context-controls__balloon-button-source','customItems','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','locale','urls','_createContextButton','showSourceResourcesBalloon','addResourceToContext','ck-ai-chat-context-controls__add-context-balloon-panel','northArrowSouthEast','extendTemplate','remove','setConversationContext','length','closest','1911824oablNY','setContextItemLoading','406690SwnJXt','setContainerElement','ck-ai-chat-controls_context_show-more-button','isHidden','find','_handleUrlSubmit','AI_CHAT_CONTEXT_FILE_LABEL','_setupTemplate','hide','_resourcesBalloonView','ck-ai-chat-context-controls','addDocumentToContext','hideAddContextBalloonPanel','AI_CHAT_CONTEXT_URL_LABEL','icon','_overflowManager','files','isVisible','balloonView','_createBaseBalloonPanel','northArrowSouth','withBackButton','customItem','_addUrlContent','done','southArrowNorthWest','isOn','overflowChips','defaultPositions','destroy','_createAddContextBalloonPanelView','get','children','_addContextBalloonPanelView','current','addContextButtonView','showUrlBalloonPanel','_setAddContextButtonEnabled','isLoading','fire','_urlBalloonPanelView','isReadOnly','_removeContextFromCollection','_addContextToCollection','_createArrowView','ck-ai-chat-context-controls__url-balloon-panel','executeCustomItemCallback','1216036jQCtzt','execute','arrowView','_createAddContextButtonView','_createUrlBalloonPanelView','_setupAllBalloonClickOutsideHandlers','isEnabled','sources','setAddContextOptions'];_0x6df4=function(){return _0x55f6ed;};return _0x6df4();}import{AIChatContextPanelUrlInputView as _0x1b616f}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x30cb17}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x32f8fa}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x2de60c}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x126b13(0x119),_0x126b13(0x188),_0x126b13(0x147),_0x126b13(0x19b),_0x126b13(0x16f),_0x126b13(0x14e),_0x126b13(0x13c)];const Lo=_0x126b13(0x118),No=_0x126b13(0x18a),Ho=_0x126b13(0x19c),Xo=_0x126b13(0x175),Do=_0x126b13(0x13b),$o=_0x126b13(0x17b),Wo=_0x126b13(0x194),Fo=_0x126b13(0x150),qo=_0x126b13(0x156),Io=_0x126b13(0x110),Vo=_0x126b13(0x151),zo=_0x126b13(0x169),Go=[_0x170763[_0x126b13(0x12a)][_0x126b13(0x164)],_0x170763[_0x126b13(0x12a)][_0x126b13(0x122)],_0x170763[_0x126b13(0x12a)][_0x126b13(0x19d)],_0x170763[_0x126b13(0x12a)][_0x126b13(0x127)],_0x170763[_0x126b13(0x12a)][_0x126b13(0x15f)],_0x170763[_0x126b13(0x12a)][_0x126b13(0x191)]];export class AIChatContextPanelView extends _0x17e978{[_0x126b13(0x131)];[_0x126b13(0x15c)]=this[_0x126b13(0x17c)]();[_0x126b13(0x182)]=this[_0x126b13(0x17c)]();[_0x126b13(0x11d)];[_0x126b13(0x12f)];[_0x126b13(0x136)];[_0x126b13(0x176)];[_0x126b13(0x117)];[_0x126b13(0x167)];[_0x126b13(0x18c)]=!0x1;[_0x126b13(0x173)];constructor(_0x37dc39,_0x48d649){const _0x66b0b7=_0x126b13;super(_0x37dc39),this[_0x66b0b7(0x173)]=_0x48d649[_0x66b0b7(0x173)],this[_0x66b0b7(0x15c)]=this[_0x66b0b7(0x17c)](),this[_0x66b0b7(0x182)]=this[_0x66b0b7(0x17c)](),this[_0x66b0b7(0x131)]=this[_0x66b0b7(0x140)](_0x37dc39),this[_0x66b0b7(0x12f)]=this[_0x66b0b7(0x12c)](_0x37dc39),this[_0x66b0b7(0x136)]=this[_0x66b0b7(0x141)](_0x37dc39),this[_0x66b0b7(0x117)]=this[_0x66b0b7(0x181)](_0x37dc39,_0x48d649);const _0x59d7f8={'cssClasses':{'showMoreButton':Io,'showMoreBalloon':Vo,'overflowContainer':qo,'controlsButton':Fo}};this[_0x66b0b7(0x11d)]=new _0x30cb17(_0x37dc39,this[_0x66b0b7(0x15c)],_0x59d7f8,this[_0x66b0b7(0x173)],this),this[_0x66b0b7(0x167)]={'buttonView':this[_0x66b0b7(0x131)],'balloonView':this[_0x66b0b7(0x12f)],'hideMethod':this[_0x66b0b7(0x11a)][_0x66b0b7(0x159)](this),'showMethod':this[_0x66b0b7(0x177)][_0x66b0b7(0x159)](this)},this[_0x66b0b7(0x115)](),this[_0x66b0b7(0x153)]();}[_0x126b13(0x161)](){const _0xde28d3=_0x126b13;super[_0xde28d3(0x161)](),this[_0xde28d3(0x142)](),this[_0xde28d3(0x11d)][_0xde28d3(0x10f)](this[_0xde28d3(0x174)]),this[_0xde28d3(0x11d)][_0xde28d3(0x186)]();}[_0x126b13(0x12b)](){const _0x27dda4=_0x126b13;super[_0x27dda4(0x12b)](),this[_0x27dda4(0x11d)][_0x27dda4(0x12b)](),this[_0x27dda4(0x117)][_0x27dda4(0x12b)]();}[_0x126b13(0x178)](_0x315691,_0x438c08){const _0x4c6973=_0x126b13,_0x4c0edf=this[_0x4c6973(0x199)](_0x315691,_0x4c6973(0x130),!0x0,_0x438c08);this[_0x4c6973(0x139)](_0x4c0edf,this[_0x4c6973(0x15c)]),this[_0x4c6973(0x11d)][_0x4c6973(0x186)]();}[_0x126b13(0x16f)](_0x317a90){const _0x59cef2=_0x126b13;this[_0x59cef2(0x138)](_0x317a90,this[_0x59cef2(0x15c)]),this[_0x59cef2(0x138)](_0x317a90,this[_0x59cef2(0x11d)][_0x59cef2(0x129)]),this[_0x59cef2(0x11d)][_0x59cef2(0x186)]();}[_0x126b13(0x1a4)](_0x3dc6a1,_0x17ea46){const _0x8affc2=_0x126b13;let _0x102b30=this[_0x8affc2(0x15c)][_0x8affc2(0x112)](_0xdd512=>_0xdd512['id']===_0x3dc6a1);_0x102b30||(_0x102b30=this[_0x8affc2(0x11d)][_0x8affc2(0x129)][_0x8affc2(0x112)](_0x89d834=>_0x89d834['id']===_0x3dc6a1)),_0x102b30&&(_0x102b30[_0x8affc2(0x134)]=_0x17ea46);}[_0x126b13(0x1a0)](_0x187dc6){const _0x234fde=_0x126b13;this[_0x234fde(0x182)][_0x234fde(0x166)]();for(const _0x36c353 of _0x187dc6){const _0x3949de=this[_0x234fde(0x199)](_0x36c353,_0x234fde(0x16c),!0x1,!0x1);this[_0x234fde(0x139)](_0x3949de,this[_0x234fde(0x182)]);}}[_0x126b13(0x158)](){const _0x2b537f=_0x126b13;this[_0x2b537f(0x15c)][_0x2b537f(0x166)](),this[_0x2b537f(0x11d)][_0x2b537f(0x166)]();}[_0x126b13(0x190)](){const _0x316c76=_0x126b13;this[_0x316c76(0x182)][_0x316c76(0x166)]();}[_0x126b13(0x192)](_0x37e7a5,_0x1acc22,_0x1d3ba7){const _0x2d5826=_0x126b13;this[_0x2d5826(0x117)][_0x2d5826(0x192)](_0x37e7a5,_0x1acc22,_0x1d3ba7);}[_0x126b13(0x11a)](){const _0x11b396=_0x126b13;this[_0x11b396(0x18b)](!0x1);}[_0x126b13(0x177)](){const _0x2c6887=_0x126b13;this[_0x2c6887(0x18b)](!0x0);}[_0x126b13(0x157)](){const _0x347e7b=_0x126b13;this[_0x347e7b(0x136)][_0x347e7b(0x116)](),this[_0x347e7b(0x131)][_0x347e7b(0x128)]=!0x1,this[_0x347e7b(0x176)]&&this[_0x347e7b(0x176)][_0x347e7b(0x166)]();}[_0x126b13(0x132)](){const _0x346dbf=_0x126b13;this[_0x346dbf(0x136)][_0x346dbf(0x155)](),this[_0x346dbf(0x131)][_0x346dbf(0x128)]=!0x0;}[_0x126b13(0x163)]({source:_0x14fd9e,withBackButton:_0x457747}){const _0x10db71=_0x126b13;this[_0x10db71(0x117)][_0x10db71(0x19a)]({'source':_0x14fd9e,'withBackButton':_0x457747}),this[_0x10db71(0x131)][_0x10db71(0x128)]=!0x0;}[_0x126b13(0x193)](_0x5249dc,_0x4a7e47,_0x38e9c4,_0x249f33){const _0x48161c=_0x126b13;this[_0x48161c(0x117)][_0x48161c(0x193)](_0x5249dc,_0x38e9c4,_0x249f33);}[_0x126b13(0x14a)](_0x506b82){const _0x4854ca=_0x126b13;this[_0x4854ca(0x117)][_0x4854ca(0x14a)](_0x506b82),this[_0x4854ca(0x131)][_0x4854ca(0x128)]=!0x1;}[_0x126b13(0x145)](_0x163de2){const _0x4dbe3b=_0x126b13;this[_0x4dbe3b(0x149)](this[_0x4dbe3b(0x12f)],this[_0x4dbe3b(0x197)],_0x163de2),this[_0x4dbe3b(0x133)](_0x163de2);}[_0x126b13(0x133)](_0x312534){const _0xa94575=_0x126b13,_0x5c4d20=!_0x312534[_0xa94575(0x18e)][_0xa94575(0x111)]&&_0x312534[_0xa94575(0x18e)][_0xa94575(0x16a)],_0x5294da=_0x312534[_0xa94575(0x198)][_0xa94575(0x16a)],_0x42cedb=_0x312534[_0xa94575(0x11e)][_0xa94575(0x16a)],_0x4e9cb6=_0x312534[_0xa94575(0x144)][_0xa94575(0x1a1)]>0x0,_0xbc4686=_0x312534[_0xa94575(0x195)]&&_0x312534[_0xa94575(0x195)][_0xa94575(0x1a1)]>0x0;this[_0xa94575(0x131)][_0xa94575(0x143)]=_0x5c4d20||_0x5294da||_0x42cedb||_0x4e9cb6||_0xbc4686;}[_0x126b13(0x115)](){const _0x273135=_0x126b13;this[_0x273135(0x14f)]({'tag':_0x273135(0x180),'attributes':{'class':[Lo,_0x273135(0x17a)]},'children':[{'tag':_0x273135(0x180),'attributes':{'class':No},'children':this[_0x273135(0x15c)]}]});}[_0x126b13(0x153)](){const _0x47f7ad=_0x126b13;this[_0x47f7ad(0x131)]['on'](_0x47f7ad(0x13e),()=>{const _0x534738=_0x47f7ad;this[_0x534738(0x168)]();});}[_0x126b13(0x140)](_0x5b607a){const _0x2e2f62=_0x126b13,_0xecad26=new _0x5af6c8(_0x5b607a);return _0xecad26[_0x2e2f62(0x179)]({'label':_0x32f8fa(_0x5b607a,_0x2e2f62(0x165)),'class':Fo+'\x20'+Xo,'icon':_0x51545c,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0xecad26;}[_0x126b13(0x12c)](_0x5df48c){const _0x221e48=_0x126b13;return this[_0x221e48(0x121)](_0x5df48c,Ho);}[_0x126b13(0x141)](_0x4eb271){const _0x1e29b7=_0x126b13,_0xdd9222=this[_0x1e29b7(0x121)](_0x4eb271,Do);return this[_0x1e29b7(0x125)](_0xdd9222,_0x4eb271),_0xdd9222;}[_0x126b13(0x181)](_0x1f2f2a,_0x154595){const _0x28e916=_0x126b13,_0x3a4603={'searchInputVisibleFrom':_0x154595[_0x28e916(0x18d)],'onBackToContext':()=>{const _0x5d02be=_0x28e916;this[_0x5d02be(0x177)](),this[_0x5d02be(0x12f)][_0x5d02be(0x14b)]({'target':this[_0x5d02be(0x131)][_0x5d02be(0x174)],'limiter':this[_0x5d02be(0x17d)](),'positions':Go});},'onResourceSelected':(_0x2041dd,_0x585f45)=>{const _0x24d4c1=_0x28e916;this[_0x24d4c1(0x135)](_0x24d4c1(0x19b),{'source':_0x2041dd,'resource':_0x585f45});},'onLoadSourceResources':_0x84a1c9=>{const _0x2f40e5=_0x28e916;this[_0x2f40e5(0x135)](_0x2f40e5(0x14e),_0x84a1c9);},'onBalloonClosed':()=>{const _0x264e13=_0x28e916;this[_0x264e13(0x131)][_0x264e13(0x128)]=!0x1;},'getLimiterElement':()=>this[_0x28e916(0x17d)](),'getTargetElement':()=>this[_0x28e916(0x131)][_0x28e916(0x174)]};return new _0x2de60c(_0x1f2f2a,_0x154595[_0x28e916(0x173)],_0x3a4603);}[_0x126b13(0x17d)](){const _0x1df66a=_0x126b13;return this[_0x1df66a(0x174)]?.[_0x1df66a(0x1a2)]('.'+zo)||document[_0x1df66a(0x184)];}[_0x126b13(0x121)](_0x55bbfe,_0x497236){const _0x390a95=_0x126b13,_0x4df60a=new _0x170763(_0x55bbfe);return _0x4df60a[_0x390a95(0x19e)]({'attributes':{'class':_0x497236}}),this[_0x390a95(0x173)][_0x390a95(0x183)](_0x4df60a),_0x4df60a;}[_0x126b13(0x149)](_0x1de692,_0x660144,_0x5aaf57){const _0x3b958f=_0x126b13;if(_0x1de692[_0x3b958f(0x189)][_0x3b958f(0x166)](),!_0x5aaf57[_0x3b958f(0x18e)][_0x3b958f(0x111)]&&_0x5aaf57[_0x3b958f(0x18e)][_0x3b958f(0x16a)]){const _0x148848=this[_0x3b958f(0x17e)](_0x660144,{'label':_0x32f8fa(_0x660144,_0x3b958f(0x196)),'icon':_0x4ae223});_0x148848['on'](_0x3b958f(0x13e),()=>{const _0x476d54=_0x3b958f;this[_0x476d54(0x135)](_0x476d54(0x119)),this[_0x476d54(0x11a)]();}),_0x1de692[_0x3b958f(0x189)][_0x3b958f(0x183)](_0x148848);}if(_0x5aaf57[_0x3b958f(0x198)][_0x3b958f(0x16a)]){const _0xbfcf45=this[_0x3b958f(0x17e)](_0x660144,{'label':_0x32f8fa(_0x660144,_0x3b958f(0x11b)),'icon':_0x2cd11b});_0xbfcf45['on'](_0x3b958f(0x13e),()=>{const _0x4967a5=_0x3b958f;this[_0x4967a5(0x11a)](),this[_0x4967a5(0x132)](),this[_0x4967a5(0x136)][_0x4967a5(0x14b)]({'target':this[_0x4967a5(0x131)][_0x4967a5(0x174)],'limiter':this[_0x4967a5(0x17d)](),'positions':Go}),this[_0x4967a5(0x176)][_0x4967a5(0x18f)]();}),_0x1de692[_0x3b958f(0x189)][_0x3b958f(0x183)](_0xbfcf45);}if(_0x5aaf57[_0x3b958f(0x11e)][_0x3b958f(0x16a)]){const _0xd843b0=new _0x48a3ba(_0x660144);_0xd843b0[_0x3b958f(0x179)]({'label':_0x32f8fa(_0x660144,_0x3b958f(0x114)),'icon':_0x4f1fed,'withText':!0x0,'tooltip':!0x0,'class':$o,'allowMultipleFiles':!0x0}),_0xd843b0['on'](_0x3b958f(0x13e),()=>{const _0x42c817=_0x3b958f;this[_0x42c817(0x11a)]();}),_0xd843b0['on'](_0x3b958f(0x126),(_0x472145,_0x1fe646)=>{const _0x270983=_0x3b958f;this[_0x270983(0x135)](_0x270983(0x188),_0x1fe646);}),_0xd843b0[_0x3b958f(0x15e)]=!0x0,_0x1de692[_0x3b958f(0x189)][_0x3b958f(0x183)](_0xd843b0);}for(const _0x5890c2 of _0x5aaf57[_0x3b958f(0x144)]){const _0x12c945=this[_0x3b958f(0x17e)](_0x660144,{'label':_0x5890c2[_0x3b958f(0x170)],'icon':_0x5890c2[_0x3b958f(0x11c)]||_0x17362d,'type':_0x3b958f(0x162)});_0x1de692[_0x3b958f(0x189)][_0x3b958f(0x183)](_0x12c945),_0x12c945['on'](_0x3b958f(0x13e),()=>{const _0x149536=_0x3b958f;this[_0x149536(0x11a)](),this[_0x149536(0x163)]({'source':_0x5890c2,'withBackButton':!this[_0x149536(0x18c)]});});}for(const _0x4603b3 of _0x5aaf57[_0x3b958f(0x195)]||[]){const _0x4791b2=this[_0x3b958f(0x17e)](_0x660144,{'label':_0x4603b3[_0x3b958f(0x170)],'icon':_0x4603b3[_0x3b958f(0x11c)]||_0x17362d,'type':_0x3b958f(0x124)});_0x1de692[_0x3b958f(0x189)][_0x3b958f(0x183)](_0x4791b2),_0x4791b2['on'](_0x3b958f(0x13e),()=>{const _0x4a1b2d=_0x3b958f;this[_0x4a1b2d(0x11a)](),this[_0x4a1b2d(0x135)](_0x4a1b2d(0x13c),_0x4603b3);});}this[_0x3b958f(0x18c)]=0x1===_0x1de692[_0x3b958f(0x189)][_0x3b958f(0x1a1)],this[_0x3b958f(0x176)][_0x3b958f(0x123)]=!this[_0x3b958f(0x18c)];}[_0x126b13(0x125)](_0x51fe63,_0xab4245){const _0x3fa368=_0x126b13;this[_0x3fa368(0x176)]=new _0x1b616f(_0xab4245),this[_0x3fa368(0x176)]['on'](_0x3fa368(0x16d),(_0x5620e4,_0x1c2070)=>{const _0x7b7576=_0x3fa368;this[_0x7b7576(0x113)](_0x1c2070);}),this[_0x3fa368(0x176)]['on'](_0x3fa368(0x171),()=>{const _0x3be3ed=_0x3fa368;this[_0x3be3ed(0x157)](),this[_0x3be3ed(0x18c)]||(this[_0x3be3ed(0x177)](),this[_0x3be3ed(0x12f)][_0x3be3ed(0x14b)]({'target':this[_0x3be3ed(0x131)][_0x3be3ed(0x174)],'limiter':this[_0x3be3ed(0x17d)](),'positions':Go}));}),this[_0x3fa368(0x176)]['on'](_0x3fa368(0x152),()=>{const _0x17346b=_0x3fa368;this[_0x17346b(0x136)][_0x17346b(0x11f)]&&this[_0x17346b(0x136)][_0x17346b(0x14b)]({'target':this[_0x17346b(0x131)][_0x17346b(0x174)],'limiter':this[_0x17346b(0x17d)](),'positions':Go});}),_0x51fe63[_0x3fa368(0x189)][_0x3fa368(0x183)](this[_0x3fa368(0x176)]);}[_0x126b13(0x17e)](_0x5bfc61,_0x1bf80e){const _0x436420=_0x126b13,_0x24d058=_0x436420(0x162)===_0x1bf80e[_0x436420(0x15d)]?new SourcesBalloonButtonView(_0x5bfc61):new _0x5af6c8(_0x5bfc61);return _0x24d058[_0x436420(0x179)]({'label':_0x1bf80e[_0x436420(0x170)],'icon':_0x1bf80e[_0x436420(0x11c)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':$o}),_0x24d058;}[_0x126b13(0x142)](){const _0x1fa372=_0x126b13;this[_0x1fa372(0x160)](),this[_0x1fa372(0x185)]();}[_0x126b13(0x185)](){const _0x2a8247=_0x126b13;_0x2fca71({'emitter':this[_0x2a8247(0x136)],'contextElements':[this[_0x2a8247(0x136)][_0x2a8247(0x174)]],'callback':()=>{const _0x48e290=_0x2a8247;this[_0x48e290(0x157)]();},'activator':()=>this[_0x2a8247(0x136)][_0x2a8247(0x11f)]});}[_0x126b13(0x18b)](_0x5a5752){const _0x495bfd=_0x126b13,_0x4e1e0f=this[_0x495bfd(0x167)];_0x4e1e0f[_0x495bfd(0x16e)][_0x495bfd(0x128)]=_0x5a5752,_0x5a5752?_0x4e1e0f[_0x495bfd(0x120)][_0x495bfd(0x155)]():_0x4e1e0f[_0x495bfd(0x120)][_0x495bfd(0x116)]();}[_0x126b13(0x160)](){const _0x545fa6=_0x126b13,{balloonView:_0x2170fb,buttonView:_0x18c807,hideMethod:_0x11493b}=this[_0x545fa6(0x167)];_0x2fca71({'emitter':_0x2170fb,'contextElements':[_0x2170fb[_0x545fa6(0x174)],_0x18c807[_0x545fa6(0x174)]],'callback':()=>{_0x11493b();},'activator':()=>_0x18c807[_0x545fa6(0x128)]&&!this[_0x545fa6(0x136)][_0x545fa6(0x11f)]&&!this[_0x545fa6(0x117)][_0x545fa6(0x14c)]()});}[_0x126b13(0x199)](_0x5c2923,_0x4209fb,_0x42bcd7=!0x1,_0x2de44e=!0x1){const _0x83a67f=_0x126b13,_0x1197ec=_0x83a67f(0x16c)===_0x4209fb||!0x0===_0x5c2923[_0x83a67f(0x137)],_0x14134c=new _0x375ef0(this[_0x83a67f(0x197)],_0x5c2923,_0x1197ec,_0x42bcd7,_0x2de44e);return _0x1197ec||_0x14134c['on'](_0x83a67f(0x146),()=>{const _0x1877af=_0x83a67f;this[_0x1877af(0x135)](_0x1877af(0x16f),_0x14134c['id']);}),_0x14134c;}[_0x126b13(0x139)](_0x4549ae,_0x2a1dae){const _0x3a002d=_0x126b13;_0x2a1dae[_0x3a002d(0x183)](_0x4549ae,0x0);}[_0x126b13(0x138)](_0x17b869,_0x547d2a){const _0x1030a3=_0x126b13,_0x522a13=_0x547d2a[_0x1030a3(0x112)](_0x54ac73=>_0x54ac73['id']===_0x17b869);_0x522a13&&_0x547d2a[_0x1030a3(0x19f)](_0x522a13);}[_0x126b13(0x168)](){const _0x7b6f33=_0x126b13;this[_0x7b6f33(0x131)][_0x7b6f33(0x128)]?this[_0x7b6f33(0x11a)]():(this[_0x7b6f33(0x177)](),this[_0x7b6f33(0x12f)][_0x7b6f33(0x14b)]({'target':this[_0x7b6f33(0x131)][_0x7b6f33(0x174)],'limiter':this[_0x7b6f33(0x17d)](),'positions':Go}),this[_0x7b6f33(0x18c)]&&this[_0x7b6f33(0x12f)][_0x7b6f33(0x189)][_0x7b6f33(0x12d)](0x0)?.[_0x7b6f33(0x135)](_0x7b6f33(0x13e)));}[_0x126b13(0x113)](_0x43a05f){const _0x4604f4=_0x126b13;this[_0x4604f4(0x176)][_0x4604f4(0x166)](),this[_0x4604f4(0x157)](),this[_0x4604f4(0x135)](_0x4604f4(0x147),_0x43a05f);}}export class SourcesBalloonButtonView extends _0x5af6c8{[_0x126b13(0x13f)];constructor(_0x1cb759){const _0x1dda3c=_0x126b13;super(_0x1cb759),this[_0x1dda3c(0x179)]({'withText':!0x0,'role':_0x1dda3c(0x154)}),this[_0x1dda3c(0x13f)]=this[_0x1dda3c(0x13a)](),this[_0x1dda3c(0x19e)]({'attributes':{'class':[Wo]}});}[_0x126b13(0x161)](){const _0x419bce=_0x126b13;super[_0x419bce(0x161)](),this[_0x419bce(0x12e)][_0x419bce(0x183)](this[_0x419bce(0x13f)]);}[_0x126b13(0x13a)](){const _0x32a232=_0x126b13,_0xdbae7f=new _0x2d0952();return _0xdbae7f[_0x32a232(0x189)]=_0x46553d,_0xdbae7f[_0x32a232(0x19e)]({'attributes':{'class':Wo+_0x32a232(0x17f)}}),_0xdbae7f;}}
23
+ const _0x332a5a=_0x337a;(function(_0x16d5fa,_0x17423b){const _0x38b984=_0x337a,_0x1f431f=_0x16d5fa();while(!![]){try{const _0x493da2=-parseInt(_0x38b984(0xd6))/0x1*(parseInt(_0x38b984(0xc9))/0x2)+-parseInt(_0x38b984(0xaa))/0x3+-parseInt(_0x38b984(0x115))/0x4*(parseInt(_0x38b984(0xf9))/0x5)+-parseInt(_0x38b984(0xce))/0x6*(parseInt(_0x38b984(0x113))/0x7)+-parseInt(_0x38b984(0xfd))/0x8+parseInt(_0x38b984(0x8c))/0x9+parseInt(_0x38b984(0x118))/0xa*(parseInt(_0x38b984(0xdc))/0xb);if(_0x493da2===_0x17423b)break;else _0x1f431f['push'](_0x1f431f['shift']());}catch(_0x34cebe){_0x1f431f['push'](_0x1f431f['shift']());}}}(_0x588e,0x706a0));function _0x337a(_0x5f21ef,_0x447b3d){const _0x588e33=_0x588e();return _0x337a=function(_0x337a9d,_0x3d86d6){_0x337a9d=_0x337a9d-0x8c;let _0x50dbe2=_0x588e33[_0x337a9d];return _0x50dbe2;},_0x337a(_0x5f21ef,_0x447b3d);}import{BalloonPanelView as _0x326ad9,ButtonView as _0x1aaae2,clickOutsideHandler as _0x2bc39a,FileDialogButtonView as _0x53301e,IconView as _0x2591a5,View as _0x1d9dd9}from'ckeditor5/src/ui.js';function _0x588e(){const _0x510e46=['show','_createContextButton','addResourceToContext','ck-ai-chat-context-controls__add-context-balloon-panel','southArrowNorth','submitUrl','_handleUrlSubmit','addFileToContext','urls','AI_CHAT_CONTEXT_URL_LABEL','icon','_currentContextsChips','ck-ai-chat-context-controls__balloon-button-source','overflowChips','createCollection','hideAddContextBalloonPanel','set','showAddContextBalloonPanel','_urlBalloonPanelView','_urlInputView','ck-ai-chat-controls-button','AI_CHAT_CONTEXT_FILE_LABEL','setContainerElement','_setBalloonPanelContent','balloonView','remove','pin','1831713LmdtaH','isLoading','buttonView','isOn','_setupAllBalloonClickOutsideHandlers','removeContextItemChip','content','length','_addUrlContent','element','cancel','ck-ai-chat-context-controls','destroy','_setupAddContextBalloonClickOutsideHandler','isHidden','menuitem','setTemplate','updateResourceState','ck-reset_all-excluded','addDocumentToContext','fire','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','northArrowSouth','children','hide','arrowView','ck-ai-chat-context-controls__url-balloon-panel','loadSourceResources','isVisible','ck-ai-chat-context-chips-wrapper-balloon','_addContextBalloonConfig','68558QjoXdV','withBackButton','_showSourceResourcesBalloon','removeContextItem','isEnabled','2208bLVPaA','_getLimiterElement','done','bind','clearConversationContextItems','render','div','focus','19NfrNIK','_createAddContextButtonView','northArrowSouthWest','_overflowManager','addContextItem','closest','8904302BQmTVt','addUrlToContext','_createAddContextBalloonPanelView','_setupTemplate','ck-ai-chat-controls_context_show-more-button','__arrow','label','showSourceResourcesBalloon','ck-ai-chat-context-controls__show-more-balloon-panel','ck-ai-chat','AI_CHAT_CONTEXT_ADD_CONTEXT','_createArrowView','execute','isReadOnly','ck-ai-chat-context-controls__pending-contexts','reorganizeChips','southArrowNorthWest','showUrlBalloonPanel','_setAddContextButtonEnabled','_hasExactlyOneSource','_conversationContextsChips','northArrowSouthEast','sources','find','ck-ai-chat-context-controls__add-context-button','_toggleAddContextBalloon','_addContextBalloonPanelView','defaultPositions','conversation','5GBAXnC','setContextItemLoading','_createBaseBalloonPanel','_removeContextFromCollection','4225984ZXiEZj','locale','_createUrlBalloonPanelView','clearCurrentContextItems','_handleAddContextButtonClick','southArrowNorthEast','_createResourcesBalloonView','get','_addContextToCollection','type','searchInputVisibleFrom','source','customItems','body','_resourcesBalloonView','setConversationContext','_createBalloonButton','_setupUrlBalloonClickOutsideHandler','customItem','populateSourceResourceBalloon','executeCustomItemCallback','bodyCollection','4046PfXAxU','clear','81964ftUpis','tooltip','extendTemplate','20FmHbnd','ck-ai-chat-context-controls__balloon-button','document','files','current','_bindEventHandlers','hideUrlBalloonPanel','setAddContextOptions','isAnyResourceBalloonVisible','closeSourceResourceBalloon','enabled','addContextButtonView','7783191iLkXZW','refreshBalloon','add'];_0x588e=function(){return _0x510e46;};return _0x588e();}import{IconBrowseFiles as _0x1b2325,IconDocument as _0x26f362,IconDocumentOutline as _0x24336e,IconDropdownArrow as _0x51b208,IconLink as _0x49e023,IconPaperClip as _0x467c86}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0xc213b7}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0xcb4a00}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x5b4784}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0xb471ff}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x1d0400}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x332a5a(0xbd),_0x332a5a(0x96),_0x332a5a(0xdd),_0x332a5a(0x91),_0x332a5a(0xcc),_0x332a5a(0xc5),_0x332a5a(0x111)];const Vo=_0x332a5a(0xb5),go=_0x332a5a(0xea),Io=_0x332a5a(0x92),Po=_0x332a5a(0xf4),Ro=_0x332a5a(0xc4),So=_0x332a5a(0x119),Oo=_0x332a5a(0x9b),Uo=_0x332a5a(0xa3),Lo=_0x332a5a(0xc7),No=_0x332a5a(0xe0),Mo=_0x332a5a(0xe4),Ho=_0x332a5a(0xe5),jo=[_0x326ad9[_0x332a5a(0xf7)][_0x332a5a(0xd8)],_0x326ad9[_0x332a5a(0xf7)][_0x332a5a(0xc0)],_0x326ad9[_0x332a5a(0xf7)][_0x332a5a(0xf1)],_0x326ad9[_0x332a5a(0xf7)][_0x332a5a(0xec)],_0x326ad9[_0x332a5a(0xf7)][_0x332a5a(0x93)],_0x326ad9[_0x332a5a(0xf7)][_0x332a5a(0x102)]];export class AIChatContextPanelView extends _0x1d9dd9{[_0x332a5a(0x123)];[_0x332a5a(0x9a)]=this[_0x332a5a(0x9d)]();[_0x332a5a(0xf0)]=this[_0x332a5a(0x9d)]();[_0x332a5a(0xd9)];[_0x332a5a(0xf6)];[_0x332a5a(0xa1)];[_0x332a5a(0xa2)];[_0x332a5a(0x10b)];[_0x332a5a(0xc8)];[_0x332a5a(0xef)]=!0x1;[_0x332a5a(0x112)];constructor(_0x29baee,_0x455fbc){const _0xc26b36=_0x332a5a;super(_0x29baee),this[_0xc26b36(0x112)]=_0x455fbc[_0xc26b36(0x112)],this[_0xc26b36(0x9a)]=this[_0xc26b36(0x9d)](),this[_0xc26b36(0xf0)]=this[_0xc26b36(0x9d)](),this[_0xc26b36(0x123)]=this[_0xc26b36(0xd7)](_0x29baee),this[_0xc26b36(0xf6)]=this[_0xc26b36(0xde)](_0x29baee),this[_0xc26b36(0xa1)]=this[_0xc26b36(0xff)](_0x29baee),this[_0xc26b36(0x10b)]=this[_0xc26b36(0x103)](_0x29baee,_0x455fbc);const _0x2cd852={'cssClasses':{'showMoreButton':No,'showMoreBalloon':Mo,'overflowContainer':Lo,'controlsButton':Uo}};this[_0xc26b36(0xd9)]=new _0x5b4784(_0x29baee,this[_0xc26b36(0x9a)],_0x2cd852,this[_0xc26b36(0x112)],this),this[_0xc26b36(0xc8)]={'buttonView':this[_0xc26b36(0x123)],'balloonView':this[_0xc26b36(0xf6)],'hideMethod':this[_0xc26b36(0x9e)][_0xc26b36(0xd1)](this),'showMethod':this[_0xc26b36(0xa0)][_0xc26b36(0xd1)](this)},this[_0xc26b36(0xdf)](),this[_0xc26b36(0x11d)]();}[_0x332a5a(0xd3)](){const _0x587b8e=_0x332a5a;super[_0x587b8e(0xd3)](),this[_0x587b8e(0xae)](),this[_0x587b8e(0xd9)][_0x587b8e(0xa5)](this[_0x587b8e(0xb3)]),this[_0x587b8e(0xd9)][_0x587b8e(0xeb)]();}[_0x332a5a(0xb6)](){const _0x3e3750=_0x332a5a;super[_0x3e3750(0xb6)](),this[_0x3e3750(0xd9)][_0x3e3750(0xb6)](),this[_0x3e3750(0x10b)][_0x3e3750(0xb6)]();}[_0x332a5a(0xda)](_0x50d434,_0x5c2bd5){const _0x7250f9=_0x332a5a,_0x53c305=this[_0x7250f9(0x90)](_0x50d434,_0x7250f9(0x11c),!0x0,_0x5c2bd5);this[_0x7250f9(0x105)](_0x53c305,this[_0x7250f9(0x9a)]),this[_0x7250f9(0xd9)][_0x7250f9(0xeb)]();}[_0x332a5a(0xcc)](_0x388e35){const _0x3ff062=_0x332a5a;this[_0x3ff062(0xfc)](_0x388e35,this[_0x3ff062(0x9a)]),this[_0x3ff062(0xfc)](_0x388e35,this[_0x3ff062(0xd9)][_0x3ff062(0x9c)]),this[_0x3ff062(0xd9)][_0x3ff062(0xeb)]();}[_0x332a5a(0xfa)](_0x563b13,_0x3f0b49){const _0x48985a=_0x332a5a;let _0xa61190=this[_0x48985a(0x9a)][_0x48985a(0xf3)](_0x47aada=>_0x47aada['id']===_0x563b13);_0xa61190||(_0xa61190=this[_0x48985a(0xd9)][_0x48985a(0x9c)][_0x48985a(0xf3)](_0x255d74=>_0x255d74['id']===_0x563b13)),_0xa61190&&(_0xa61190[_0x48985a(0xab)]=_0x3f0b49);}[_0x332a5a(0x10c)](_0x38cb96){const _0x109276=_0x332a5a;this[_0x109276(0xf0)][_0x109276(0x114)]();for(const _0x371b41 of _0x38cb96){const _0xdfbb86=this[_0x109276(0x90)](_0x371b41,_0x109276(0xf8),!0x1,!0x1);this[_0x109276(0x105)](_0xdfbb86,this[_0x109276(0xf0)]);}}[_0x332a5a(0x100)](){const _0x15727f=_0x332a5a;this[_0x15727f(0x9a)][_0x15727f(0x114)](),this[_0x15727f(0xd9)][_0x15727f(0x114)]();}[_0x332a5a(0xd2)](){const _0x84bca0=_0x332a5a;this[_0x84bca0(0xf0)][_0x84bca0(0x114)]();}[_0x332a5a(0xbb)](_0x361cfb,_0x5f0bc2,_0x2b23cd){const _0x2552a9=_0x332a5a;this[_0x2552a9(0x10b)][_0x2552a9(0xbb)](_0x361cfb,_0x5f0bc2,_0x2b23cd);}[_0x332a5a(0x9e)](){const _0x5e9e40=_0x332a5a;this[_0x5e9e40(0xf5)](!0x1);}[_0x332a5a(0xa0)](){const _0x126222=_0x332a5a;this[_0x126222(0xf5)](!0x0);}[_0x332a5a(0x11e)](){const _0x491af2=_0x332a5a;this[_0x491af2(0xa1)][_0x491af2(0xc2)](),this[_0x491af2(0x123)][_0x491af2(0xad)]=!0x1,this[_0x491af2(0xa2)]&&this[_0x491af2(0xa2)][_0x491af2(0x114)]();}[_0x332a5a(0xed)](){const _0x31a820=_0x332a5a;this[_0x31a820(0xa1)][_0x31a820(0x8f)](),this[_0x31a820(0x123)][_0x31a820(0xad)]=!0x0;}[_0x332a5a(0xcb)]({source:_0x453094,withBackButton:_0x2e1ca5}){const _0x4cafe2=_0x332a5a;this[_0x4cafe2(0x10b)][_0x4cafe2(0xe3)]({'source':_0x453094,'withBackButton':_0x2e1ca5}),this[_0x4cafe2(0x123)][_0x4cafe2(0xad)]=!0x0;}[_0x332a5a(0x110)](_0x2c2f43,_0x24c336,_0x14d6cf,_0x57d8c3){const _0x6e0fe4=_0x332a5a;this[_0x6e0fe4(0x10b)][_0x6e0fe4(0x110)](_0x2c2f43,_0x14d6cf,_0x57d8c3);}[_0x332a5a(0x121)](_0x1467a1){const _0x386326=_0x332a5a;this[_0x386326(0x10b)][_0x386326(0x121)](_0x1467a1),this[_0x386326(0x123)][_0x386326(0xad)]=!0x1;}[_0x332a5a(0x11f)](_0x13a53e){const _0x10d3f8=_0x332a5a;this[_0x10d3f8(0xa6)](this[_0x10d3f8(0xf6)],this[_0x10d3f8(0xfe)],_0x13a53e),this[_0x10d3f8(0xee)](_0x13a53e);}[_0x332a5a(0xee)](_0x3a86f9){const _0x5b9e91=_0x332a5a,_0x416df1=!_0x3a86f9[_0x5b9e91(0x11a)][_0x5b9e91(0xb8)]&&_0x3a86f9[_0x5b9e91(0x11a)][_0x5b9e91(0x122)],_0x1c3d75=_0x3a86f9[_0x5b9e91(0x97)][_0x5b9e91(0x122)],_0x4ac197=_0x3a86f9[_0x5b9e91(0x11b)][_0x5b9e91(0x122)],_0x3e1d82=_0x3a86f9[_0x5b9e91(0xf2)][_0x5b9e91(0xb1)]>0x0,_0x2b6c6c=_0x3a86f9[_0x5b9e91(0x109)]&&_0x3a86f9[_0x5b9e91(0x109)][_0x5b9e91(0xb1)]>0x0;this[_0x5b9e91(0x123)][_0x5b9e91(0xcd)]=_0x416df1||_0x1c3d75||_0x4ac197||_0x3e1d82||_0x2b6c6c;}[_0x332a5a(0xdf)](){const _0x4f7154=_0x332a5a;this[_0x4f7154(0xba)]({'tag':_0x4f7154(0xd4),'attributes':{'class':[Vo,_0x4f7154(0xbc)]},'children':[{'tag':_0x4f7154(0xd4),'attributes':{'class':go},'children':this[_0x4f7154(0x9a)]}]});}[_0x332a5a(0x11d)](){const _0x940656=_0x332a5a;this[_0x940656(0x123)]['on'](_0x940656(0xe8),()=>{const _0x7d307b=_0x940656;this[_0x7d307b(0x101)]();});}[_0x332a5a(0xd7)](_0x1e8b20){const _0x488a68=_0x332a5a,_0x26acf4=new _0x1aaae2(_0x1e8b20);return _0x26acf4[_0x488a68(0x9f)]({'label':_0xb471ff(_0x1e8b20,_0x488a68(0xe6)),'class':Uo+'\x20'+Po,'icon':_0x467c86,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x26acf4;}[_0x332a5a(0xde)](_0x50109e){const _0x96e1fe=_0x332a5a;return this[_0x96e1fe(0xfb)](_0x50109e,Io);}[_0x332a5a(0xff)](_0xfe931f){const _0xf6f97b=_0x332a5a,_0x1ccbfc=this[_0xf6f97b(0xfb)](_0xfe931f,Ro);return this[_0xf6f97b(0xb2)](_0x1ccbfc,_0xfe931f),_0x1ccbfc;}[_0x332a5a(0x103)](_0x4806b4,_0x5d9c3c){const _0x3e2612=_0x332a5a,_0x19285d={'searchInputVisibleFrom':_0x5d9c3c[_0x3e2612(0x107)],'onBackToContext':()=>{const _0x41502f=_0x3e2612;this[_0x41502f(0xa0)](),this[_0x41502f(0xf6)][_0x41502f(0xa9)]({'target':this[_0x41502f(0x123)][_0x41502f(0xb3)],'limiter':this[_0x41502f(0xcf)](),'positions':jo});},'onResourceSelected':(_0x270cfb,_0x5bb3d4)=>{const _0x49a8a6=_0x3e2612;this[_0x49a8a6(0xbe)](_0x49a8a6(0x91),{'source':_0x270cfb,'resource':_0x5bb3d4});},'onLoadSourceResources':_0x5d2d61=>{const _0x38604d=_0x3e2612;this[_0x38604d(0xbe)](_0x38604d(0xc5),_0x5d2d61);},'onBalloonClosed':()=>{const _0x2c8cae=_0x3e2612;this[_0x2c8cae(0x123)][_0x2c8cae(0xad)]=!0x1;},'getLimiterElement':()=>this[_0x3e2612(0xcf)](),'getTargetElement':()=>this[_0x3e2612(0x123)][_0x3e2612(0xb3)]};return new _0x1d0400(_0x4806b4,_0x5d9c3c[_0x3e2612(0x112)],_0x19285d);}[_0x332a5a(0xcf)](){const _0x2af1c7=_0x332a5a;return this[_0x2af1c7(0xb3)]?.[_0x2af1c7(0xdb)]('.'+Ho)||document[_0x2af1c7(0x10a)];}[_0x332a5a(0xfb)](_0x1f2a6a,_0x2cf631){const _0x23facf=_0x332a5a,_0x44013b=new _0x326ad9(_0x1f2a6a);return _0x44013b[_0x23facf(0x117)]({'attributes':{'class':_0x2cf631}}),this[_0x23facf(0x112)][_0x23facf(0x8e)](_0x44013b),_0x44013b;}[_0x332a5a(0xa6)](_0x2ad8b3,_0x529f92,_0x5a1a70){const _0x1b2ec9=_0x332a5a;if(_0x2ad8b3[_0x1b2ec9(0xb0)][_0x1b2ec9(0x114)](),!_0x5a1a70[_0x1b2ec9(0x11a)][_0x1b2ec9(0xb8)]&&_0x5a1a70[_0x1b2ec9(0x11a)][_0x1b2ec9(0x122)]){const _0x49574f=this[_0x1b2ec9(0x10d)](_0x529f92,{'label':_0xb471ff(_0x529f92,_0x1b2ec9(0xbf)),'icon':_0x26f362});_0x49574f['on'](_0x1b2ec9(0xe8),()=>{const _0x8d9bdf=_0x1b2ec9;this[_0x8d9bdf(0xbe)](_0x8d9bdf(0xbd)),this[_0x8d9bdf(0x9e)]();}),_0x2ad8b3[_0x1b2ec9(0xb0)][_0x1b2ec9(0x8e)](_0x49574f);}if(_0x5a1a70[_0x1b2ec9(0x97)][_0x1b2ec9(0x122)]){const _0x541b05=this[_0x1b2ec9(0x10d)](_0x529f92,{'label':_0xb471ff(_0x529f92,_0x1b2ec9(0x98)),'icon':_0x49e023});_0x541b05['on'](_0x1b2ec9(0xe8),()=>{const _0x360df6=_0x1b2ec9;this[_0x360df6(0x9e)](),this[_0x360df6(0xed)](),this[_0x360df6(0xa1)][_0x360df6(0xa9)]({'target':this[_0x360df6(0x123)][_0x360df6(0xb3)],'limiter':this[_0x360df6(0xcf)](),'positions':jo}),this[_0x360df6(0xa2)][_0x360df6(0xd5)]();}),_0x2ad8b3[_0x1b2ec9(0xb0)][_0x1b2ec9(0x8e)](_0x541b05);}if(_0x5a1a70[_0x1b2ec9(0x11b)][_0x1b2ec9(0x122)]){const _0x2c2527=new _0x53301e(_0x529f92);_0x2c2527[_0x1b2ec9(0x9f)]({'label':_0xb471ff(_0x529f92,_0x1b2ec9(0xa4)),'icon':_0x1b2325,'withText':!0x0,'tooltip':!0x0,'class':So,'allowMultipleFiles':!0x0}),_0x2c2527['on'](_0x1b2ec9(0xe8),()=>{const _0x2b0515=_0x1b2ec9;this[_0x2b0515(0x9e)]();}),_0x2c2527['on'](_0x1b2ec9(0xd0),(_0x225de1,_0x4179c3)=>{const _0x53f033=_0x1b2ec9;this[_0x53f033(0xbe)](_0x53f033(0x96),_0x4179c3);}),_0x2c2527[_0x1b2ec9(0x116)]=!0x0,_0x2ad8b3[_0x1b2ec9(0xb0)][_0x1b2ec9(0x8e)](_0x2c2527);}for(const _0x15b0e1 of _0x5a1a70[_0x1b2ec9(0xf2)]){const _0x207cec=this[_0x1b2ec9(0x10d)](_0x529f92,{'label':_0x15b0e1[_0x1b2ec9(0xe2)],'icon':_0x15b0e1[_0x1b2ec9(0x99)]||_0x24336e,'type':_0x1b2ec9(0x108)});_0x2ad8b3[_0x1b2ec9(0xb0)][_0x1b2ec9(0x8e)](_0x207cec),_0x207cec['on'](_0x1b2ec9(0xe8),()=>{const _0x521b69=_0x1b2ec9;this[_0x521b69(0x9e)](),this[_0x521b69(0xcb)]({'source':_0x15b0e1,'withBackButton':!this[_0x521b69(0xef)]});});}for(const _0x6b8a14 of _0x5a1a70[_0x1b2ec9(0x109)]||[]){const _0x154045=this[_0x1b2ec9(0x10d)](_0x529f92,{'label':_0x6b8a14[_0x1b2ec9(0xe2)],'icon':_0x6b8a14[_0x1b2ec9(0x99)]||_0x24336e,'type':_0x1b2ec9(0x10f)});_0x2ad8b3[_0x1b2ec9(0xb0)][_0x1b2ec9(0x8e)](_0x154045),_0x154045['on'](_0x1b2ec9(0xe8),()=>{const _0x273b33=_0x1b2ec9;this[_0x273b33(0x9e)](),this[_0x273b33(0xbe)](_0x273b33(0x111),_0x6b8a14);});}this[_0x1b2ec9(0xef)]=0x1===_0x2ad8b3[_0x1b2ec9(0xb0)][_0x1b2ec9(0xb1)],this[_0x1b2ec9(0xa2)][_0x1b2ec9(0xca)]=!this[_0x1b2ec9(0xef)];}[_0x332a5a(0xb2)](_0x269661,_0x346ecf){const _0xdb14d5=_0x332a5a;this[_0xdb14d5(0xa2)]=new _0xcb4a00(_0x346ecf),this[_0xdb14d5(0xa2)]['on'](_0xdb14d5(0x94),(_0x42619f,_0x1dd5e2)=>{const _0x243a94=_0xdb14d5;this[_0x243a94(0x95)](_0x1dd5e2);}),this[_0xdb14d5(0xa2)]['on'](_0xdb14d5(0xb4),()=>{const _0x42532e=_0xdb14d5;this[_0x42532e(0x11e)](),this[_0x42532e(0xef)]||(this[_0x42532e(0xa0)](),this[_0x42532e(0xf6)][_0x42532e(0xa9)]({'target':this[_0x42532e(0x123)][_0x42532e(0xb3)],'limiter':this[_0x42532e(0xcf)](),'positions':jo}));}),this[_0xdb14d5(0xa2)]['on'](_0xdb14d5(0x8d),()=>{const _0x598350=_0xdb14d5;this[_0x598350(0xa1)][_0x598350(0xc6)]&&this[_0x598350(0xa1)][_0x598350(0xa9)]({'target':this[_0x598350(0x123)][_0x598350(0xb3)],'limiter':this[_0x598350(0xcf)](),'positions':jo});}),_0x269661[_0xdb14d5(0xb0)][_0xdb14d5(0x8e)](this[_0xdb14d5(0xa2)]);}[_0x332a5a(0x10d)](_0xce181a,_0x227068){const _0x3157dc=_0x332a5a,_0x4257fc=_0x3157dc(0x108)===_0x227068[_0x3157dc(0x106)]?new SourcesBalloonButtonView(_0xce181a):new _0x1aaae2(_0xce181a);return _0x4257fc[_0x3157dc(0x9f)]({'label':_0x227068[_0x3157dc(0xe2)],'icon':_0x227068[_0x3157dc(0x99)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':So}),_0x4257fc;}[_0x332a5a(0xae)](){const _0x3f06a7=_0x332a5a;this[_0x3f06a7(0xb7)](),this[_0x3f06a7(0x10e)]();}[_0x332a5a(0x10e)](){const _0x5e1f0e=_0x332a5a;_0x2bc39a({'emitter':this[_0x5e1f0e(0xa1)],'contextElements':[this[_0x5e1f0e(0xa1)][_0x5e1f0e(0xb3)]],'callback':()=>{const _0x208533=_0x5e1f0e;this[_0x208533(0x11e)]();},'activator':()=>this[_0x5e1f0e(0xa1)][_0x5e1f0e(0xc6)]});}[_0x332a5a(0xf5)](_0x368546){const _0x5b9bac=_0x332a5a,_0x3842e0=this[_0x5b9bac(0xc8)];_0x3842e0[_0x5b9bac(0xac)][_0x5b9bac(0xad)]=_0x368546,_0x368546?_0x3842e0[_0x5b9bac(0xa7)][_0x5b9bac(0x8f)]():_0x3842e0[_0x5b9bac(0xa7)][_0x5b9bac(0xc2)]();}[_0x332a5a(0xb7)](){const _0x3fcfc9=_0x332a5a,{balloonView:_0x986d06,buttonView:_0x465810,hideMethod:_0x5d8a9c}=this[_0x3fcfc9(0xc8)];_0x2bc39a({'emitter':_0x986d06,'contextElements':[_0x986d06[_0x3fcfc9(0xb3)],_0x465810[_0x3fcfc9(0xb3)]],'callback':()=>{_0x5d8a9c();},'activator':()=>_0x465810[_0x3fcfc9(0xad)]&&!this[_0x3fcfc9(0xa1)][_0x3fcfc9(0xc6)]&&!this[_0x3fcfc9(0x10b)][_0x3fcfc9(0x120)]()});}[_0x332a5a(0x90)](_0x4c2962,_0x5e2d5e,_0x200fb7=!0x1,_0x2acbd5=!0x1){const _0x4da69c=_0x332a5a,_0x1b2ffa=_0x4da69c(0xf8)===_0x5e2d5e||!0x0===_0x4c2962[_0x4da69c(0xe9)],_0x1dc260=new _0xc213b7(this[_0x4da69c(0xfe)],_0x4c2962,_0x1b2ffa,_0x200fb7,_0x2acbd5);return _0x1b2ffa||_0x1dc260['on'](_0x4da69c(0xaf),()=>{const _0x2b93b8=_0x4da69c;this[_0x2b93b8(0xbe)](_0x2b93b8(0xcc),_0x1dc260['id']);}),_0x1dc260;}[_0x332a5a(0x105)](_0x489f9c,_0x2bd692){const _0x20d064=_0x332a5a;_0x2bd692[_0x20d064(0x8e)](_0x489f9c,0x0);}[_0x332a5a(0xfc)](_0x11dd3a,_0x2b60bd){const _0x3d6cdf=_0x332a5a,_0x3dfaee=_0x2b60bd[_0x3d6cdf(0xf3)](_0x3ed6a5=>_0x3ed6a5['id']===_0x11dd3a);_0x3dfaee&&_0x2b60bd[_0x3d6cdf(0xa8)](_0x3dfaee);}[_0x332a5a(0x101)](){const _0x4941e3=_0x332a5a;this[_0x4941e3(0x123)][_0x4941e3(0xad)]?this[_0x4941e3(0x9e)]():(this[_0x4941e3(0xa0)](),this[_0x4941e3(0xf6)][_0x4941e3(0xa9)]({'target':this[_0x4941e3(0x123)][_0x4941e3(0xb3)],'limiter':this[_0x4941e3(0xcf)](),'positions':jo}),this[_0x4941e3(0xef)]&&this[_0x4941e3(0xf6)][_0x4941e3(0xb0)][_0x4941e3(0x104)](0x0)?.[_0x4941e3(0xbe)](_0x4941e3(0xe8)));}[_0x332a5a(0x95)](_0x407d89){const _0x43c920=_0x332a5a;this[_0x43c920(0xa2)][_0x43c920(0x114)](),this[_0x43c920(0x11e)](),this[_0x43c920(0xbe)](_0x43c920(0xdd),_0x407d89);}}export class SourcesBalloonButtonView extends _0x1aaae2{[_0x332a5a(0xc3)];constructor(_0x12fe44){const _0xb8c17d=_0x332a5a;super(_0x12fe44),this[_0xb8c17d(0x9f)]({'withText':!0x0,'role':_0xb8c17d(0xb9)}),this[_0xb8c17d(0xc3)]=this[_0xb8c17d(0xe7)](),this[_0xb8c17d(0x117)]({'attributes':{'class':[Oo]}});}[_0x332a5a(0xd3)](){const _0xd2db03=_0x332a5a;super[_0xd2db03(0xd3)](),this[_0xd2db03(0xc1)][_0xd2db03(0x8e)](this[_0xd2db03(0xc3)]);}[_0x332a5a(0xe7)](){const _0x23bd2c=_0x332a5a,_0x5d90b=new _0x2591a5();return _0x5d90b[_0x23bd2c(0xb0)]=_0x51b208,_0x5d90b[_0x23bd2c(0x117)]({'attributes':{'class':Oo+_0x23bd2c(0xe1)}}),_0x5d90b;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4212bf=_0x5f0c;(function(_0x4a78f,_0x95b30e){const _0x12c57d=_0x5f0c,_0x4ef234=_0x4a78f();while(!![]){try{const _0x33780e=parseInt(_0x12c57d(0x104))/0x1+parseInt(_0x12c57d(0x10e))/0x2*(parseInt(_0x12c57d(0x112))/0x3)+-parseInt(_0x12c57d(0xfc))/0x4*(parseInt(_0x12c57d(0xf7))/0x5)+parseInt(_0x12c57d(0x110))/0x6+parseInt(_0x12c57d(0x100))/0x7*(-parseInt(_0x12c57d(0x10c))/0x8)+parseInt(_0x12c57d(0x10a))/0x9*(-parseInt(_0x12c57d(0xfb))/0xa)+parseInt(_0x12c57d(0x105))/0xb;if(_0x33780e===_0x95b30e)break;else _0x4ef234['push'](_0x4ef234['shift']());}catch(_0x59d61f){_0x4ef234['push'](_0x4ef234['shift']());}}}(_0x1421,0x681f2));import{ButtonView as _0x4d496b,View as _0x147691}from'ckeditor5/src/ui.js';import{IconStop as _0x5bb2a9}from'ckeditor5/src/icons.js';import{getTranslation as _0x39d3f7}from'../../../aicore/utils/common-translations.js';export class AIChatControlsLoaderView extends _0x147691{[_0x4212bf(0x106)];[_0x4212bf(0x109)];constructor(_0x39df8a){const _0x21db7d=_0x4212bf;super(_0x39df8a),this[_0x21db7d(0x106)]=this[_0x21db7d(0x103)](),this[_0x21db7d(0x109)]=this[_0x21db7d(0x10d)](),this[_0x21db7d(0xfe)]({'tag':_0x21db7d(0x101),'attributes':{'class':['ck',_0x21db7d(0xfa),_0x21db7d(0xf8)]},'children':[this[_0x21db7d(0x109)],this[_0x21db7d(0x106)]]});}[_0x4212bf(0x103)](){const _0x3e6ca8=_0x4212bf,_0x52d20e=new _0x4d496b(this[_0x3e6ca8(0x111)]);return _0x52d20e[_0x3e6ca8(0x108)]({'label':_0x39d3f7(this[_0x3e6ca8(0x111)],_0x3e6ca8(0xf6)),'withText':!0x0,'class':_0x3e6ca8(0x113),'icon':_0x5bb2a9}),_0x52d20e['on'](_0x3e6ca8(0xff),()=>{const _0x36fe45=_0x3e6ca8;this[_0x36fe45(0xfd)](_0x36fe45(0x102));}),_0x52d20e;}[_0x4212bf(0x10d)](){const _0x1b430f=_0x4212bf,_0x5b4dac=new _0x147691(this[_0x1b430f(0x111)]);return _0x5b4dac[_0x1b430f(0xfe)]({'tag':_0x1b430f(0x101),'attributes':{'class':[_0x1b430f(0x107)]},'children':[{'tag':_0x1b430f(0x101),'attributes':{'class':[_0x1b430f(0xf9)]},'children':[{'tag':_0x1b430f(0x101),'attributes':{'class':[_0x1b430f(0x10b)]}},{'tag':_0x1b430f(0x101),'attributes':{'class':[_0x1b430f(0x10b)]}},{'tag':_0x1b430f(0x101),'attributes':{'class':[_0x1b430f(0x10b)]}}]},{'text':_0x39d3f7(this[_0x1b430f(0x111)],_0x1b430f(0x10f))}]}),_0x5b4dac;}}function _0x5f0c(_0x19205c,_0x126ca1){const _0x1421e6=_0x1421();return _0x5f0c=function(_0x5f0c98,_0x1486d2){_0x5f0c98=_0x5f0c98-0xf6;let _0x55adf4=_0x1421e6[_0x5f0c98];return _0x55adf4;},_0x5f0c(_0x19205c,_0x126ca1);}function _0x1421(){const _0x4b1daa=['fire','setTemplate','execute','891709ptuHhq','div','abortPromptStream','_createCancelButtonView','628468HYMoqM','8002115XYEndN','_cancelButtonView','ck-ai-chat-controls-loader','set','_loaderView','135CIGtsG','ck-ai-chat-controls-loader-icon-dot','8Mcnwis','_createLoaderView','4vGlcxt','AI_CHAT_IS_WRITING','669534VJnGqI','locale','453555vuiQVH','ck-ai-button-secondary\x20ck-ai-button-stop-generating','AI_CHAT_STOP_GENERATING','2076540ZvBvcd','ck-reset_all','ck-ai-chat-controls-loader-icon','ck-ai-chat-controls-loader-wrapper','533810vgAebB','4bXukhz'];_0x1421=function(){return _0x4b1daa;};return _0x1421();}
23
+ const _0x5e590e=_0x1227;(function(_0x4779c5,_0x17efb9){const _0x30f452=_0x1227,_0x1ae6c2=_0x4779c5();while(!![]){try{const _0x2f5248=parseInt(_0x30f452(0xde))/0x1*(-parseInt(_0x30f452(0xe0))/0x2)+-parseInt(_0x30f452(0xe4))/0x3*(parseInt(_0x30f452(0xda))/0x4)+-parseInt(_0x30f452(0xe1))/0x5+parseInt(_0x30f452(0xf0))/0x6+-parseInt(_0x30f452(0xf2))/0x7*(-parseInt(_0x30f452(0xed))/0x8)+-parseInt(_0x30f452(0xe9))/0x9+parseInt(_0x30f452(0xe7))/0xa*(parseInt(_0x30f452(0xf1))/0xb);if(_0x2f5248===_0x17efb9)break;else _0x1ae6c2['push'](_0x1ae6c2['shift']());}catch(_0x1019e){_0x1ae6c2['push'](_0x1ae6c2['shift']());}}}(_0x3aa8,0xa9cc3));import{ButtonView as _0x40075d,View as _0x5f3248}from'ckeditor5/src/ui.js';import{IconStop as _0x5e955e}from'ckeditor5/src/icons.js';import{getTranslation as _0x494abb}from'../../../aicore/utils/common-translations.js';function _0x1227(_0x5ba08e,_0x18c9f5){const _0x3aa8b1=_0x3aa8();return _0x1227=function(_0x122719,_0x143c6a){_0x122719=_0x122719-0xd6;let _0x591da7=_0x3aa8b1[_0x122719];return _0x591da7;},_0x1227(_0x5ba08e,_0x18c9f5);}function _0x3aa8(){const _0x2a8ab0=['ck-ai-chat-controls-loader-icon-dot','ck-ai-chat-controls-loader-wrapper','7228248hbrkQp','74932BbOZKN','336RQPChw','set','_createLoaderView','locale','AI_CHAT_IS_WRITING','fire','114128ZlOIYt','ck-ai-chat-controls-loader-icon','abortPromptStream','execute','11PJmnAG','div','153394bTHFSL','6738560PkegEZ','_createCancelButtonView','_cancelButtonView','12pUaVLO','ck-ai-button-secondary\x20ck-ai-button-stop-generating','AI_CHAT_STOP_GENERATING','4310scbADC','ck-ai-chat-controls-loader','10615266VlXSCX','ck-reset_all','setTemplate','_loaderView','6632xDRZDA'];_0x3aa8=function(){return _0x2a8ab0;};return _0x3aa8();}export class AIChatControlsLoaderView extends _0x5f3248{[_0x5e590e(0xe3)];[_0x5e590e(0xec)];constructor(_0x2e5450){const _0x4bb242=_0x5e590e;super(_0x2e5450),this[_0x4bb242(0xe3)]=this[_0x4bb242(0xe2)](),this[_0x4bb242(0xec)]=this[_0x4bb242(0xd6)](),this[_0x4bb242(0xeb)]({'tag':_0x4bb242(0xdf),'attributes':{'class':['ck',_0x4bb242(0xef),_0x4bb242(0xea)]},'children':[this[_0x4bb242(0xec)],this[_0x4bb242(0xe3)]]});}[_0x5e590e(0xe2)](){const _0x7fa70=_0x5e590e,_0x7674f1=new _0x40075d(this[_0x7fa70(0xd7)]);return _0x7674f1[_0x7fa70(0xf3)]({'label':_0x494abb(this[_0x7fa70(0xd7)],_0x7fa70(0xe6)),'withText':!0x0,'class':_0x7fa70(0xe5),'icon':_0x5e955e}),_0x7674f1['on'](_0x7fa70(0xdd),()=>{const _0x5850bc=_0x7fa70;this[_0x5850bc(0xd9)](_0x5850bc(0xdc));}),_0x7674f1;}[_0x5e590e(0xd6)](){const _0x18b222=_0x5e590e,_0x306203=new _0x5f3248(this[_0x18b222(0xd7)]);return _0x306203[_0x18b222(0xeb)]({'tag':_0x18b222(0xdf),'attributes':{'class':[_0x18b222(0xe8)]},'children':[{'tag':_0x18b222(0xdf),'attributes':{'class':[_0x18b222(0xdb)]},'children':[{'tag':_0x18b222(0xdf),'attributes':{'class':[_0x18b222(0xee)]}},{'tag':_0x18b222(0xdf),'attributes':{'class':[_0x18b222(0xee)]}},{'tag':_0x18b222(0xdf),'attributes':{'class':[_0x18b222(0xee)]}}]},{'text':_0x494abb(this[_0x18b222(0xd7)],_0x18b222(0xd8))}]}),_0x306203;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x190d(_0x5e655b,_0x1fccb1){const _0x591860=_0x5918();return _0x190d=function(_0x190d8b,_0x1be992){_0x190d8b=_0x190d8b-0x144;let _0x1f9ad7=_0x591860[_0x190d8b];return _0x1f9ad7;},_0x190d(_0x5e655b,_0x1fccb1);}const _0x52b17d=_0x190d;(function(_0x603b70,_0x486938){const _0x49abf0=_0x190d,_0x795d73=_0x603b70();while(!![]){try{const _0x4d88f5=parseInt(_0x49abf0(0x172))/0x1*(-parseInt(_0x49abf0(0x188))/0x2)+-parseInt(_0x49abf0(0x18b))/0x3*(-parseInt(_0x49abf0(0x17d))/0x4)+parseInt(_0x49abf0(0x18c))/0x5*(-parseInt(_0x49abf0(0x154))/0x6)+parseInt(_0x49abf0(0x187))/0x7*(-parseInt(_0x49abf0(0x14b))/0x8)+parseInt(_0x49abf0(0x17e))/0x9*(-parseInt(_0x49abf0(0x152))/0xa)+-parseInt(_0x49abf0(0x14d))/0xb*(-parseInt(_0x49abf0(0x15f))/0xc)+-parseInt(_0x49abf0(0x17c))/0xd*(-parseInt(_0x49abf0(0x177))/0xe);if(_0x4d88f5===_0x486938)break;else _0x795d73['push'](_0x795d73['shift']());}catch(_0x1227f2){_0x795d73['push'](_0x795d73['shift']());}}}(_0x5918,0x991a2));import{Collection as _0x5d7bf5}from'ckeditor5/src/utils.js';import{IconAI as _0x3e6d2a,IconBulb as _0x29701c,IconWeb as _0x9b2f07}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x1f4ef6,ButtonLabelView as _0x986aad,ButtonView as _0x2a8d10,createDropdown as _0x2945b8,IconView as _0xad1c17,UIModel as _0x18902f,View as _0x1d814e}from'ckeditor5/src/ui.js';import{getTranslation as _0x3b0c3f}from'../../../aicore/utils/common-translations.js';const Jo=_0x52b17d(0x192),Fo=_0x52b17d(0x170),Ko=_0x52b17d(0x174),Qo=_0x52b17d(0x185),Zo=_0x52b17d(0x19f),tl=_0x52b17d(0x15b),el=_0x52b17d(0x198),il=_0x52b17d(0x16d),sl='n';export class AIChatPromptCapabilitiesView extends _0x1d814e{[_0x52b17d(0x16e)];[_0x52b17d(0x1a2)];[_0x52b17d(0x16f)];[_0x52b17d(0x15c)];[_0x52b17d(0x19a)];[_0x52b17d(0x159)];constructor(_0x5683e8){const _0x4a478e=_0x52b17d;super(_0x5683e8),this[_0x4a478e(0x190)](_0x4a478e(0x1a4),!0x1),this[_0x4a478e(0x190)](_0x4a478e(0x166),!0x1),this[_0x4a478e(0x190)](_0x4a478e(0x1a8),_0x4a478e(0x167)),this[_0x4a478e(0x190)](_0x4a478e(0x173),!0x0),this[_0x4a478e(0x190)](_0x4a478e(0x163),null),this[_0x4a478e(0x190)](_0x4a478e(0x18e),null),this[_0x4a478e(0x15c)]=this[_0x4a478e(0x151)](),this[_0x4a478e(0x159)]=this[_0x4a478e(0x194)](),this[_0x4a478e(0x16e)]=this[_0x4a478e(0x145)](),this[_0x4a478e(0x1a2)]=this[_0x4a478e(0x146)](),this[_0x4a478e(0x16f)]=this[_0x4a478e(0x157)](),this[_0x4a478e(0x15c)][_0x4a478e(0x160)][_0x4a478e(0x199)](_0x4a478e(0x148))['to'](this,_0x4a478e(0x1a8),_0x109bb5=>_0x4a478e(0x167)===_0x109bb5),this[_0x4a478e(0x15c)][_0x4a478e(0x160)][_0x4a478e(0x199)](_0x4a478e(0x156))['to'](this,_0x4a478e(0x173),_0xe171f6=>_0xe171f6?this[_0x4a478e(0x15c)][_0x4a478e(0x160)][_0x4a478e(0x16b)]:_0x3b0c3f(this[_0x4a478e(0x168)],_0x4a478e(0x1a1))),this[_0x4a478e(0x15c)][_0x4a478e(0x199)](_0x4a478e(0x180))['to'](this,_0x4a478e(0x173),_0x2ad04c=>_0x2ad04c),this[_0x4a478e(0x16e)][_0x4a478e(0x199)](_0x4a478e(0x1a6))['to'](this,_0x4a478e(0x1a4),_0x352dbd=>_0x352dbd),this[_0x4a478e(0x16e)][_0x4a478e(0x199)](_0x4a478e(0x156))['to'](this,_0x4a478e(0x1a4),_0x4594f0=>_0x3b0c3f(this[_0x4a478e(0x168)],_0x4594f0?_0x4a478e(0x164):_0x4a478e(0x150))),this[_0x4a478e(0x1a2)][_0x4a478e(0x199)](_0x4a478e(0x1a6))['to'](this,_0x4a478e(0x166),_0xc9e9fa=>_0xc9e9fa),this[_0x4a478e(0x1a2)][_0x4a478e(0x199)](_0x4a478e(0x156))['to'](this,_0x4a478e(0x166),_0x2ce8ae=>_0x3b0c3f(this[_0x4a478e(0x168)],_0x2ce8ae?_0x4a478e(0x19d):_0x4a478e(0x149))),this[_0x4a478e(0x17f)]({'tag':_0x4a478e(0x161),'attributes':{'class':[Jo]},'children':[this[_0x4a478e(0x15c)],this[_0x4a478e(0x159)],this[_0x4a478e(0x16e)],this[_0x4a478e(0x1a2)],this[_0x4a478e(0x16f)]]}),this[_0x4a478e(0x19a)]=new _0x5d7bf5(),_0x1f4ef6(this[_0x4a478e(0x15c)],this[_0x4a478e(0x19a)]);}[_0x52b17d(0x14e)](_0x1d1ba5,_0x1b6ec6){const _0x9f03dc=_0x52b17d;if(_0x1b6ec6)this[_0x9f03dc(0x190)](_0x9f03dc(0x1a8),_0x9f03dc(0x18f));else{const _0x1851a4=0x1===_0x1d1ba5[_0x9f03dc(0x178)];this[_0x9f03dc(0x190)](_0x9f03dc(0x1a8),_0x1851a4?_0x9f03dc(0x162):_0x9f03dc(0x167));}if(this[_0x9f03dc(0x19a)][_0x9f03dc(0x147)](),_0x1d1ba5?.[_0x9f03dc(0x178)])for(const _0x3c80a2 of _0x1d1ba5){const _0x4fa91b=new _0x18902f({'label':_0x3c80a2[_0x9f03dc(0x162)],'withText':!0x0,'role':_0x9f03dc(0x153),'id':_0x3c80a2['id'],'model':_0x3c80a2});_0x4fa91b[_0x9f03dc(0x199)](_0x9f03dc(0x1a6))['to'](this,_0x9f03dc(0x163),_0x29ea54=>_0x29ea54===_0x3c80a2['id']),this[_0x9f03dc(0x19a)][_0x9f03dc(0x17b)]({'type':_0x9f03dc(0x16a),'model':_0x4fa91b,'labelView':new po(this[_0x9f03dc(0x168)],_0x3c80a2)});}}[_0x52b17d(0x179)](_0x4d7ab1){const _0x4ff678=_0x52b17d;this[_0x4ff678(0x190)](_0x4ff678(0x1a4),_0x4d7ab1);}[_0x52b17d(0x158)](_0x5bf0cf){const _0xf55d6a=_0x52b17d;this[_0xf55d6a(0x190)](_0xf55d6a(0x166),_0x5bf0cf);}[_0x52b17d(0x193)](_0x5b45f4){const _0x45e963=_0x52b17d;if(!_0x5b45f4)return;this[_0x45e963(0x163)]=_0x5b45f4['id'],this[_0x45e963(0x18e)]=_0x5b45f4[_0x45e963(0x162)]||_0x5b45f4['id'],this[_0x45e963(0x15c)][_0x45e963(0x160)][_0x45e963(0x190)](_0x45e963(0x16b),_0x5b45f4[_0x45e963(0x162)]),this[_0x45e963(0x15c)][_0x45e963(0x160)][_0x45e963(0x190)](_0x45e963(0x156),_0x5b45f4[_0x45e963(0x162)]);const _0x260277=_0x5b45f4[_0x45e963(0x176)][_0x45e963(0x191)]?.[_0x45e963(0x14f)]??!0x1;this[_0x45e963(0x190)](_0x45e963(0x1a4),!0x1),this[_0x45e963(0x16e)][_0x45e963(0x190)](_0x45e963(0x1a6),!0x1),this[_0x45e963(0x16e)][_0x45e963(0x190)](_0x45e963(0x180),_0x260277),this[_0x45e963(0x16e)][_0x45e963(0x190)](_0x45e963(0x148),_0x260277);const _0x4ab6fb=_0x5b45f4[_0x45e963(0x176)][_0x45e963(0x195)]?.[_0x45e963(0x14f)]??!0x1;this[_0x45e963(0x190)](_0x45e963(0x166),!0x1),this[_0x45e963(0x1a2)][_0x45e963(0x190)](_0x45e963(0x1a6),!0x1),this[_0x45e963(0x1a2)][_0x45e963(0x190)](_0x45e963(0x180),_0x4ab6fb),this[_0x45e963(0x1a2)][_0x45e963(0x190)](_0x45e963(0x148),_0x4ab6fb);}[_0x52b17d(0x175)](){const _0x1b6b78=_0x52b17d;this[_0x1b6b78(0x190)](_0x1b6b78(0x173),!0x0);}[_0x52b17d(0x165)](_0x4aee53){const _0x55b113=_0x52b17d;this[_0x55b113(0x190)](_0x55b113(0x173),!0x1),_0x4aee53&&this[_0x55b113(0x190)](_0x55b113(0x1a8),_0x55b113(0x18f));}[_0x52b17d(0x145)](){const _0x1243eb=_0x52b17d,_0x2a33ee=new _0x2a8d10();return _0x2a33ee[_0x1243eb(0x190)]({'label':_0x3b0c3f(this[_0x1243eb(0x168)],_0x1243eb(0x144)),'icon':_0x9b2f07,'class':Fo,'isToggleable':!0x0,'tooltipPosition':sl}),_0x2a33ee['on'](_0x1243eb(0x1a7),()=>{const _0x5eb904=_0x1243eb;this[_0x5eb904(0x189)](_0x5eb904(0x18d));}),_0x2a33ee;}[_0x52b17d(0x146)](){const _0x5d2d9d=_0x52b17d,_0x7074c=new _0x2a8d10();return _0x7074c[_0x5d2d9d(0x190)]({'label':_0x3b0c3f(this[_0x5d2d9d(0x168)],_0x5d2d9d(0x183)),'icon':_0x29701c,'class':Fo,'isToggleable':!0x0,'tooltipPosition':sl}),_0x7074c['on'](_0x5d2d9d(0x1a7),()=>{const _0x2c3b2a=_0x5d2d9d;this[_0x2c3b2a(0x189)](_0x2c3b2a(0x18a));}),_0x7074c;}[_0x52b17d(0x157)](){const _0x2eb000=_0x52b17d,_0x574ad3=new _0x2a8d10();return _0x574ad3[_0x2eb000(0x190)]({'label':_0x3b0c3f(this[_0x2eb000(0x168)],_0x2eb000(0x16c)),'icon':_0x3e6d2a,'withText':!0x0,'class':Fo,'isToggleable':!0x0,'tooltip':_0x3b0c3f(this[_0x2eb000(0x168)],_0x2eb000(0x16c)),'tooltipPosition':sl}),_0x574ad3[_0x2eb000(0x15e)]({'attributes':{'class':[Ko]}}),_0x574ad3['on'](_0x2eb000(0x1a7),()=>{const _0x4e4982=_0x2eb000;console[_0x4e4982(0x197)](_0x4e4982(0x196)),alert(_0x4e4982(0x196));}),_0x574ad3;}[_0x52b17d(0x151)](){const _0x1a5e1c=_0x52b17d,_0x11e44b=_0x2945b8(this[_0x1a5e1c(0x168)]);return _0x11e44b[_0x1a5e1c(0x190)]({'panelPosition':'ne','class':[Zo]}),_0x11e44b[_0x1a5e1c(0x160)][_0x1a5e1c(0x190)]({'label':_0x3b0c3f(this[_0x1a5e1c(0x168)],_0x1a5e1c(0x171)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':sl,'class':Qo}),this[_0x1a5e1c(0x184)](_0x11e44b,_0x1a5e1c(0x1a7),_0x152a19=>{const _0x5b07d7=_0x1a5e1c;this[_0x5b07d7(0x189)](_0x5b07d7(0x14a),_0x152a19[_0x5b07d7(0x15a)][_0x5b07d7(0x19c)]);}),_0x11e44b;}[_0x52b17d(0x194)](){const _0x561a0f=_0x52b17d,_0x42faf6=new wo(this[_0x561a0f(0x168)]);return _0x42faf6[_0x561a0f(0x199)](_0x561a0f(0x1a9))['to'](this,_0x561a0f(0x18e),_0x1d42cb=>_0x1d42cb??''),_0x42faf6[_0x561a0f(0x199)](_0x561a0f(0x148))['to'](this,_0x561a0f(0x1a8),_0x10d539=>_0x561a0f(0x162)===_0x10d539),_0x42faf6;}}class po extends _0x986aad{constructor(_0x2ef157,_0x97d762){const _0x4982e7=_0x52b17d;super();const _0x5b6301=this[_0x4982e7(0x15d)],_0x1dfd83=this[_0x4982e7(0x19b)]();this[_0x4982e7(0x17f)]({'tag':_0x4982e7(0x161),'attributes':{'class':['ck',_0x4982e7(0x155)],'style':_0x5b6301['to'](_0x4982e7(0x14c)),'id':_0x5b6301['to']('id')},'children':[{'tag':_0x4982e7(0x161),'attributes':{'class':[tl]},'children':[{'text':_0x5b6301['to'](_0x4982e7(0x1a9))}]},{'tag':_0x4982e7(0x161),'attributes':{'class':[el]},'children':[{'tag':_0x4982e7(0x169),'children':[{'text':_0x97d762[_0x4982e7(0x186)]}]}]},{'tag':_0x4982e7(0x161),'attributes':{'class':[il]},'children':_0x1dfd83}]}),_0x1dfd83[_0x4982e7(0x181)](this[_0x4982e7(0x1a3)](_0x2ef157,_0x9b2f07,_0x4982e7(0x144),_0x97d762[_0x4982e7(0x176)][_0x4982e7(0x191)]?.[_0x4982e7(0x14f)]??!0x1)),_0x1dfd83[_0x4982e7(0x181)](this[_0x4982e7(0x1a3)](_0x2ef157,_0x29701c,_0x4982e7(0x183),_0x97d762[_0x4982e7(0x176)][_0x4982e7(0x195)]?.[_0x4982e7(0x14f)]??!0x1));}[_0x52b17d(0x1a3)](_0x221d95,_0xc58c96,_0x28163d,_0x16d575){const _0x101d2c=_0x52b17d,_0x5c98c2=new _0xad1c17();_0x5c98c2[_0x101d2c(0x1a0)]=_0xc58c96;const _0x8e4ed=new _0x1d814e(_0x221d95);_0x8e4ed[_0x101d2c(0x17f)]({'tag':_0x101d2c(0x169),'children':[{'text':_0x3b0c3f(_0x221d95,_0x28163d)+':\x20'}]});const _0x5033c2=new _0x1d814e(_0x221d95);return _0x5033c2[_0x101d2c(0x17f)]({'tag':_0x101d2c(0x169),'children':[{'text':_0x3b0c3f(_0x221d95,_0x16d575?_0x101d2c(0x182):_0x101d2c(0x19e))}]}),[_0x5c98c2,_0x8e4ed,_0x5033c2];}}function _0x5918(){const _0x3fc568=['_commandsButton','ck-ai-chat-controls-button','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','2eAToGs','modelSelectorEnabled','ck-ai-chat-controls-button--commands','enableModelSelector','capabilities','56GncqbM','length','setWebSearch','ck-ai-chat-controls__model-name','add','7679555XXtyVO','241572IkuwxU','3843AehbnX','setTemplate','isEnabled','addMany','AI_CHAT_CAPABILITIES_YES','AI_CHAT_REASONING','listenTo','ck-ai-button-tertiary','description','434OHKqeD','1018790TaeIgX','fire','toggleReasoning','51CudySg','177085XMeBwH','toggleWebSearch','activeModelName','hidden','set','webSearch','ck-ai-chat__prompt-capabilities','setModel','_createModelNameView','reasoning','Commands\x20are\x20not\x20implemented\x20yet.','log','ck-ai-chat-controls__model-selection__item-description','bind','_modelSelectionDropdownItems','createCollection','model','AI_CHAT_DISABLE_REASONING','AI_CHAT_CAPABILITIES_NO','ck-ai-chat-controls__model-selection','content','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','_reasoningButton','_getCapabilityParts','webSearchActive','ck-hidden','isOn','execute','modelDisplayMode','text','AI_CHAT_SEARCH_WEB','_createWebSearchButton','_createReasoningButton','clear','isVisible','AI_CHAT_ENABLE_REASONING','selectModel','149312yvKpIk','style','1749NIsSTs','setModelList','enabled','AI_CHAT_ENABLE_WEB_SEARCH','_createModelSelectionDropdown','14880TPTYtc','menuitemradio','144fbpvLb','ck-button__label','tooltip','_createCommandsButton','setReasoning','_modelNameView','source','ck-ai-chat-controls__model-selection__item-name','_modelSelectionDropdown','bindTemplate','extendTemplate','67836RLZgAG','buttonView','div','name','activeModelId','AI_CHAT_DISABLE_WEB_SEARCH','disableModelSelector','reasoningActive','selector','locale','span','button','label','AI_CHAT_COMMANDS','ck-ai-chat-controls__model-selection__item-capabilities','_webSearchButton'];_0x5918=function(){return _0x3fc568;};return _0x5918();}class wo extends _0x1d814e{constructor(_0x533e6e){const _0x58872d=_0x52b17d;super(_0x533e6e),this[_0x58872d(0x190)](_0x58872d(0x1a9),void 0x0),this[_0x58872d(0x190)](_0x58872d(0x148),!0x0);const _0x247876=this[_0x58872d(0x15d)];this[_0x58872d(0x17f)]({'tag':_0x58872d(0x169),'attributes':{'class':['ck',_0x58872d(0x17a),_0x247876['if'](_0x58872d(0x148),_0x58872d(0x1a5),_0x8a69ae=>!_0x8a69ae)]},'children':[{'text':_0x247876['to'](_0x58872d(0x1a9))}]});}}
23
+ function _0x4103(){const _0x3f98fb=['source','_createWebSearchButton','10MTeynP','reasoningActive','_reasoningButton','1727696MAcWiL','addMany','ck-ai-button-tertiary','modelDisplayMode','clear','text','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','AI_CHAT_DISABLE_REASONING','130JjUmSK','activeModelId','span','model','selectModel','AI_CHAT_COMMANDS','_modelSelectionDropdown','toggleWebSearch','name','webSearch','log','ck-ai-chat-controls__model-selection__item-capabilities','activeModelName','toggleReasoning','ck-ai-chat-controls-button--commands','set','isOn','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','locale','enabled','Commands\x20are\x20not\x20implemented\x20yet.','webSearchActive','setModel','AI_CHAT_ENABLE_WEB_SEARCH','ck-ai-chat-controls__model-selection__item-description','execute','length','add','capabilities','bind','ck-ai-chat__prompt-capabilities','ck-ai-chat-controls__model-selection__item-name','AI_CHAT_SEARCH_WEB','bindTemplate','setTemplate','tooltip','label','ck-button__label','createCollection','AI_CHAT_CAPABILITIES_YES','6197118gXcMZA','ck-ai-chat-controls__model-name','content','fire','reasoning','enableModelSelector','_createModelSelectionDropdown','selector','_getCapabilityParts','54948oyJbkR','_modelNameView','_createCommandsButton','isVisible','24776541OXsejx','disableModelSelector','3074502ZTaXdT','listenTo','setWebSearch','_webSearchButton','modelSelectorEnabled','14ieacFO','description','style','AI_CHAT_ENABLE_REASONING','AI_CHAT_CAPABILITIES_NO','hidden','_createModelNameView','div','_commandsButton','button','_createReasoningButton','buttonView','extendTemplate','ck-hidden','isEnabled','setModelList','setReasoning','AI_CHAT_REASONING','2284366lqjfUh','menuitemradio','_modelSelectionDropdownItems','ck-ai-chat-controls-button','1157628IWKOtX','ck-ai-chat-controls__model-selection','AI_CHAT_DISABLE_WEB_SEARCH'];_0x4103=function(){return _0x3f98fb;};return _0x4103();}const _0x4ca1c8=_0x107f;(function(_0x4b88e,_0x40d3c6){const _0x96d785=_0x107f,_0x24b0f7=_0x4b88e();while(!![]){try{const _0x499b0d=parseInt(_0x96d785(0x125))/0x1+-parseInt(_0x96d785(0x121))/0x2+-parseInt(_0x96d785(0x16c))/0x3+parseInt(_0x96d785(0x166))/0x4*(parseInt(_0x96d785(0x135))/0x5)+-parseInt(_0x96d785(0x15d))/0x6+parseInt(_0x96d785(0x10f))/0x7*(-parseInt(_0x96d785(0x12d))/0x8)+-parseInt(_0x96d785(0x16a))/0x9*(-parseInt(_0x96d785(0x12a))/0xa);if(_0x499b0d===_0x40d3c6)break;else _0x24b0f7['push'](_0x24b0f7['shift']());}catch(_0x378515){_0x24b0f7['push'](_0x24b0f7['shift']());}}}(_0x4103,0x9b429));import{Collection as _0x13dfd8}from'ckeditor5/src/utils.js';function _0x107f(_0xf4a7b1,_0x459752){const _0x410384=_0x4103();return _0x107f=function(_0x107f52,_0x5c6434){_0x107f52=_0x107f52-0x10e;let _0x60e051=_0x410384[_0x107f52];return _0x60e051;},_0x107f(_0xf4a7b1,_0x459752);}import{IconAI as _0x2829b5,IconBulb as _0x17013f,IconWeb as _0x199264}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x304a35,ButtonLabelView as _0x473e2b,ButtonView as _0xe26c3e,createDropdown as _0x1997a0,IconView as _0x4bb74a,UIModel as _0x5622a7,View as _0x11c665}from'ckeditor5/src/ui.js';import{getTranslation as _0x13c993}from'../../../aicore/utils/common-translations.js';const Go=_0x4ca1c8(0x153),Uo=_0x4ca1c8(0x124),Yo=_0x4ca1c8(0x143),qo=_0x4ca1c8(0x12f),zo=_0x4ca1c8(0x126),Fo=_0x4ca1c8(0x154),Jo=_0x4ca1c8(0x14d),Ko=_0x4ca1c8(0x140),Qo='n';export class AIChatPromptCapabilitiesView extends _0x11c665{[_0x4ca1c8(0x16f)];[_0x4ca1c8(0x12c)];[_0x4ca1c8(0x117)];[_0x4ca1c8(0x13b)];[_0x4ca1c8(0x123)];[_0x4ca1c8(0x167)];constructor(_0x6a13b0){const _0x385d74=_0x4ca1c8;super(_0x6a13b0),this[_0x385d74(0x144)](_0x385d74(0x14a),!0x1),this[_0x385d74(0x144)](_0x385d74(0x12b),!0x1),this[_0x385d74(0x144)](_0x385d74(0x130),_0x385d74(0x164)),this[_0x385d74(0x144)](_0x385d74(0x10e),!0x0),this[_0x385d74(0x144)](_0x385d74(0x136),null),this[_0x385d74(0x144)](_0x385d74(0x141),null),this[_0x385d74(0x13b)]=this[_0x385d74(0x163)](),this[_0x385d74(0x167)]=this[_0x385d74(0x115)](),this[_0x385d74(0x16f)]=this[_0x385d74(0x129)](),this[_0x385d74(0x12c)]=this[_0x385d74(0x119)](),this[_0x385d74(0x117)]=this[_0x385d74(0x168)](),this[_0x385d74(0x13b)][_0x385d74(0x11a)][_0x385d74(0x152)](_0x385d74(0x169))['to'](this,_0x385d74(0x130),_0x23b9aa=>_0x385d74(0x164)===_0x23b9aa),this[_0x385d74(0x13b)][_0x385d74(0x11a)][_0x385d74(0x152)](_0x385d74(0x158))['to'](this,_0x385d74(0x10e),_0x1253ab=>_0x1253ab?this[_0x385d74(0x13b)][_0x385d74(0x11a)][_0x385d74(0x159)]:_0x13c993(this[_0x385d74(0x147)],_0x385d74(0x133))),this[_0x385d74(0x13b)][_0x385d74(0x152)](_0x385d74(0x11d))['to'](this,_0x385d74(0x10e),_0x549111=>_0x549111),this[_0x385d74(0x16f)][_0x385d74(0x152)](_0x385d74(0x145))['to'](this,_0x385d74(0x14a),_0x26e775=>_0x26e775),this[_0x385d74(0x16f)][_0x385d74(0x152)](_0x385d74(0x158))['to'](this,_0x385d74(0x14a),_0x49956b=>_0x13c993(this[_0x385d74(0x147)],_0x49956b?_0x385d74(0x127):_0x385d74(0x14c))),this[_0x385d74(0x12c)][_0x385d74(0x152)](_0x385d74(0x145))['to'](this,_0x385d74(0x12b),_0x43d72d=>_0x43d72d),this[_0x385d74(0x12c)][_0x385d74(0x152)](_0x385d74(0x158))['to'](this,_0x385d74(0x12b),_0x3728bc=>_0x13c993(this[_0x385d74(0x147)],_0x3728bc?_0x385d74(0x134):_0x385d74(0x112))),this[_0x385d74(0x157)]({'tag':_0x385d74(0x116),'attributes':{'class':[Go]},'children':[this[_0x385d74(0x13b)],this[_0x385d74(0x167)],this[_0x385d74(0x16f)],this[_0x385d74(0x12c)],this[_0x385d74(0x117)]]}),this[_0x385d74(0x123)]=new _0x13dfd8(),_0x304a35(this[_0x385d74(0x13b)],this[_0x385d74(0x123)]);}[_0x4ca1c8(0x11e)](_0x156eb8,_0x25fcca){const _0x3dd0ac=_0x4ca1c8;if(_0x25fcca)this[_0x3dd0ac(0x144)](_0x3dd0ac(0x130),_0x3dd0ac(0x114));else{const _0x222369=0x1===_0x156eb8[_0x3dd0ac(0x14f)];this[_0x3dd0ac(0x144)](_0x3dd0ac(0x130),_0x222369?_0x3dd0ac(0x13d):_0x3dd0ac(0x164));}if(this[_0x3dd0ac(0x123)][_0x3dd0ac(0x131)](),_0x156eb8?.[_0x3dd0ac(0x14f)])for(const _0x3e3b97 of _0x156eb8){const _0x70e7c0=new _0x5622a7({'label':_0x3e3b97[_0x3dd0ac(0x13d)],'withText':!0x0,'role':_0x3dd0ac(0x122),'id':_0x3e3b97['id'],'model':_0x3e3b97});_0x70e7c0[_0x3dd0ac(0x152)](_0x3dd0ac(0x145))['to'](this,_0x3dd0ac(0x136),_0x2e480c=>_0x2e480c===_0x3e3b97['id']),this[_0x3dd0ac(0x123)][_0x3dd0ac(0x150)]({'type':_0x3dd0ac(0x118),'model':_0x70e7c0,'labelView':new ko(this[_0x3dd0ac(0x147)],_0x3e3b97)});}}[_0x4ca1c8(0x16e)](_0x56c5ea){const _0x44a700=_0x4ca1c8;this[_0x44a700(0x144)](_0x44a700(0x14a),_0x56c5ea);}[_0x4ca1c8(0x11f)](_0x31fc3c){const _0x11c4af=_0x4ca1c8;this[_0x11c4af(0x144)](_0x11c4af(0x12b),_0x31fc3c);}[_0x4ca1c8(0x14b)](_0x394b21){const _0x3d76c9=_0x4ca1c8;if(!_0x394b21)return;this[_0x3d76c9(0x136)]=_0x394b21['id'],this[_0x3d76c9(0x141)]=_0x394b21[_0x3d76c9(0x13d)]||_0x394b21['id'],this[_0x3d76c9(0x13b)][_0x3d76c9(0x11a)][_0x3d76c9(0x144)](_0x3d76c9(0x159),_0x394b21[_0x3d76c9(0x13d)]),this[_0x3d76c9(0x13b)][_0x3d76c9(0x11a)][_0x3d76c9(0x144)](_0x3d76c9(0x158),_0x394b21[_0x3d76c9(0x13d)]);const _0x2949ac=_0x394b21[_0x3d76c9(0x151)][_0x3d76c9(0x13e)]?.[_0x3d76c9(0x148)]??!0x1;this[_0x3d76c9(0x144)](_0x3d76c9(0x14a),!0x1),this[_0x3d76c9(0x16f)][_0x3d76c9(0x144)](_0x3d76c9(0x145),!0x1),this[_0x3d76c9(0x16f)][_0x3d76c9(0x144)](_0x3d76c9(0x11d),_0x2949ac),this[_0x3d76c9(0x16f)][_0x3d76c9(0x144)](_0x3d76c9(0x169),_0x2949ac);const _0x5c95ed=_0x394b21[_0x3d76c9(0x151)][_0x3d76c9(0x161)]?.[_0x3d76c9(0x148)]??!0x1;this[_0x3d76c9(0x144)](_0x3d76c9(0x12b),!0x1),this[_0x3d76c9(0x12c)][_0x3d76c9(0x144)](_0x3d76c9(0x145),!0x1),this[_0x3d76c9(0x12c)][_0x3d76c9(0x144)](_0x3d76c9(0x11d),_0x5c95ed),this[_0x3d76c9(0x12c)][_0x3d76c9(0x144)](_0x3d76c9(0x169),_0x5c95ed);}[_0x4ca1c8(0x162)](){const _0x35834e=_0x4ca1c8;this[_0x35834e(0x144)](_0x35834e(0x10e),!0x0);}[_0x4ca1c8(0x16b)](_0x3ffd65){const _0x37e2dd=_0x4ca1c8;this[_0x37e2dd(0x144)](_0x37e2dd(0x10e),!0x1),_0x3ffd65&&this[_0x37e2dd(0x144)](_0x37e2dd(0x130),_0x37e2dd(0x114));}[_0x4ca1c8(0x129)](){const _0x2617a3=_0x4ca1c8,_0x19d0c2=new _0xe26c3e();return _0x19d0c2[_0x2617a3(0x144)]({'label':_0x13c993(this[_0x2617a3(0x147)],_0x2617a3(0x155)),'icon':_0x199264,'class':Uo,'isToggleable':!0x0,'tooltipPosition':Qo}),_0x19d0c2['on'](_0x2617a3(0x14e),()=>{const _0x7b4fa1=_0x2617a3;this[_0x7b4fa1(0x160)](_0x7b4fa1(0x13c));}),_0x19d0c2;}[_0x4ca1c8(0x119)](){const _0x497461=_0x4ca1c8,_0x46adc4=new _0xe26c3e();return _0x46adc4[_0x497461(0x144)]({'label':_0x13c993(this[_0x497461(0x147)],_0x497461(0x120)),'icon':_0x17013f,'class':Uo,'isToggleable':!0x0,'tooltipPosition':Qo}),_0x46adc4['on'](_0x497461(0x14e),()=>{const _0x145581=_0x497461;this[_0x145581(0x160)](_0x145581(0x142));}),_0x46adc4;}[_0x4ca1c8(0x168)](){const _0x51ef77=_0x4ca1c8,_0x4a7a86=new _0xe26c3e();return _0x4a7a86[_0x51ef77(0x144)]({'label':_0x13c993(this[_0x51ef77(0x147)],_0x51ef77(0x13a)),'icon':_0x2829b5,'withText':!0x0,'class':Uo,'isToggleable':!0x0,'tooltip':_0x13c993(this[_0x51ef77(0x147)],_0x51ef77(0x13a)),'tooltipPosition':Qo}),_0x4a7a86[_0x51ef77(0x11b)]({'attributes':{'class':[Yo]}}),_0x4a7a86['on'](_0x51ef77(0x14e),()=>{const _0x3318ed=_0x51ef77;console[_0x3318ed(0x13f)](_0x3318ed(0x149)),alert(_0x3318ed(0x149));}),_0x4a7a86;}[_0x4ca1c8(0x163)](){const _0x549b87=_0x4ca1c8,_0x23b0ed=_0x1997a0(this[_0x549b87(0x147)]);return _0x23b0ed[_0x549b87(0x144)]({'panelPosition':'ne','class':[zo]}),_0x23b0ed[_0x549b87(0x11a)][_0x549b87(0x144)]({'label':_0x13c993(this[_0x549b87(0x147)],_0x549b87(0x146)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':Qo,'class':qo}),this[_0x549b87(0x16d)](_0x23b0ed,_0x549b87(0x14e),_0x2f7a01=>{const _0x5884ae=_0x549b87;this[_0x5884ae(0x160)](_0x5884ae(0x139),_0x2f7a01[_0x5884ae(0x128)][_0x5884ae(0x138)]);}),_0x23b0ed;}[_0x4ca1c8(0x115)](){const _0x524439=_0x4ca1c8,_0x595710=new _o(this[_0x524439(0x147)]);return _0x595710[_0x524439(0x152)](_0x524439(0x132))['to'](this,_0x524439(0x141),_0x4c5d0b=>_0x4c5d0b??''),_0x595710[_0x524439(0x152)](_0x524439(0x169))['to'](this,_0x524439(0x130),_0x1d2104=>_0x524439(0x13d)===_0x1d2104),_0x595710;}}class ko extends _0x473e2b{constructor(_0x475472,_0x55e59d){const _0x5a785f=_0x4ca1c8;super();const _0x24b6d1=this[_0x5a785f(0x156)],_0x33cd42=this[_0x5a785f(0x15b)]();this[_0x5a785f(0x157)]({'tag':_0x5a785f(0x116),'attributes':{'class':['ck',_0x5a785f(0x15a)],'style':_0x24b6d1['to'](_0x5a785f(0x111)),'id':_0x24b6d1['to']('id')},'children':[{'tag':_0x5a785f(0x116),'attributes':{'class':[Fo]},'children':[{'text':_0x24b6d1['to'](_0x5a785f(0x132))}]},{'tag':_0x5a785f(0x116),'attributes':{'class':[Jo]},'children':[{'tag':_0x5a785f(0x137),'children':[{'text':_0x55e59d[_0x5a785f(0x110)]}]}]},{'tag':_0x5a785f(0x116),'attributes':{'class':[Ko]},'children':_0x33cd42}]}),_0x33cd42[_0x5a785f(0x12e)](this[_0x5a785f(0x165)](_0x475472,_0x199264,_0x5a785f(0x155),_0x55e59d[_0x5a785f(0x151)][_0x5a785f(0x13e)]?.[_0x5a785f(0x148)]??!0x1)),_0x33cd42[_0x5a785f(0x12e)](this[_0x5a785f(0x165)](_0x475472,_0x17013f,_0x5a785f(0x120),_0x55e59d[_0x5a785f(0x151)][_0x5a785f(0x161)]?.[_0x5a785f(0x148)]??!0x1));}[_0x4ca1c8(0x165)](_0x24253c,_0x51b423,_0x311da9,_0x3a5aa9){const _0x4afe3c=_0x4ca1c8,_0x5f20ca=new _0x4bb74a();_0x5f20ca[_0x4afe3c(0x15f)]=_0x51b423;const _0x3f558a=new _0x11c665(_0x24253c);_0x3f558a[_0x4afe3c(0x157)]({'tag':_0x4afe3c(0x137),'children':[{'text':_0x13c993(_0x24253c,_0x311da9)+':\x20'}]});const _0x31ebc6=new _0x11c665(_0x24253c);return _0x31ebc6[_0x4afe3c(0x157)]({'tag':_0x4afe3c(0x137),'children':[{'text':_0x13c993(_0x24253c,_0x3a5aa9?_0x4afe3c(0x15c):_0x4afe3c(0x113))}]}),[_0x5f20ca,_0x3f558a,_0x31ebc6];}}class _o extends _0x11c665{constructor(_0x1693f1){const _0x1c5ad2=_0x4ca1c8;super(_0x1693f1),this[_0x1c5ad2(0x144)](_0x1c5ad2(0x132),void 0x0),this[_0x1c5ad2(0x144)](_0x1c5ad2(0x169),!0x0);const _0xeaf68f=this[_0x1c5ad2(0x156)];this[_0x1c5ad2(0x157)]({'tag':_0x1c5ad2(0x137),'attributes':{'class':['ck',_0x1c5ad2(0x15e),_0xeaf68f['if'](_0x1c5ad2(0x169),_0x1c5ad2(0x11c),_0x35512c=>!_0x35512c)]},'children':[{'text':_0xeaf68f['to'](_0x1c5ad2(0x132))}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2389e6=_0x2da4;(function(_0x2cfe69,_0x5ef816){const _0x46dfa5=_0x2da4,_0x28f463=_0x2cfe69();while(!![]){try{const _0x101769=parseInt(_0x46dfa5(0x9c))/0x1*(-parseInt(_0x46dfa5(0xb8))/0x2)+-parseInt(_0x46dfa5(0x93))/0x3*(-parseInt(_0x46dfa5(0xb7))/0x4)+-parseInt(_0x46dfa5(0xc9))/0x5*(parseInt(_0x46dfa5(0xba))/0x6)+-parseInt(_0x46dfa5(0xc1))/0x7+-parseInt(_0x46dfa5(0xd2))/0x8*(-parseInt(_0x46dfa5(0xab))/0x9)+parseInt(_0x46dfa5(0xae))/0xa*(parseInt(_0x46dfa5(0xb5))/0xb)+parseInt(_0x46dfa5(0x9d))/0xc;if(_0x101769===_0x5ef816)break;else _0x28f463['push'](_0x28f463['shift']());}catch(_0x271b19){_0x28f463['push'](_0x28f463['shift']());}}}(_0x4b4d,0x2c1c7));import{IconSubmit as _0x4ec8ae}from'ckeditor5/src/icons.js';import{ButtonView as _0x5546d8,AutocompleteView as _0x10488e,createLabeledTextarea as _0x5c7cfb}from'ckeditor5/src/ui.js';import{global as _0x2a10de,isVisible as _0x24f744,Rect as _0x480d54,ResizeObserver as _0x943605}from'ckeditor5/src/utils.js';import{getTranslation as _0x807f00}from'../../../aicore/utils/common-translations.js';import{AIChatPromptSuggestionsListView as _0x3b855c}from'./aichatpromptsuggestionslistview.js';import{escape as _0x55f9d7}from'es-toolkit/compat';function _0x2da4(_0x41b153,_0x26aa48){const _0x4b4d36=_0x4b4d();return _0x2da4=function(_0x2da496,_0x297469){_0x2da496=_0x2da496-0x8c;let _0x2e09ca=_0x4b4d36[_0x2da496];return _0x2e09ca;},_0x2da4(_0x41b153,_0x26aa48);}const ph=_0x2389e6(0xcd);function _0x4b4d(){const _0x57feca=['1348XVqZvI','2VFLfqO','window','18kwBBms','fieldView','remove','hasError','ck-ai-chat__prompt-input','left','element','381206EMrnWn','isEmpty','uiLanguageDirection','isUploadInProgress','_queryViewResizeObserver','destroy','execute','errorText','587885rfopwD','AI_CHAT_PROMPT_EMPTY_ERROR','value','AI_CHAT_LABEL_SUBMIT','ck-ai-chat__prompt-input_highlighted','excludeScrollbarsAndBorders','extendTemplate','render','enter','120tInRal','keystrokes','bind','queryView','MIN_ROWS','MAX_ROWS','submitButtonView','locale','_setUpAddContextButtonPositioning','1212ygShmu','calc(','update','setIsUploadInProgress','fire','classList','requestAnimationFrame','style','setPlaceholderText','271537vEsQbe','1646580RvoVye','right','contains','width','sendUserMessage','reset','set','_addContextButtonView','px\x20-\x20var(--ck-spacing-tiny))','add','minRows','fieldWrapperChildren','rtl','target','174177gxGtvy','focusableChildren','_createSubmitButton','10nLUTMy','focus','isEnabled','placeholder','maxRows','submit','ck-ai-chat__prompt-submit-button','3253217BAVVOy','trim'];_0x4b4d=function(){return _0x57feca;};return _0x4b4d();}export class AIChatPromptInputView extends _0x10488e{[_0x2389e6(0x90)];static [_0x2389e6(0x8e)]=0x1;static [_0x2389e6(0x8f)]=0xc;[_0x2389e6(0xa4)];[_0x2389e6(0xc5)];constructor(_0x1e6c78,_0x16851f){const _0x4824ec=_0x2389e6;super(_0x1e6c78,{'queryView':{'label':'','creator':_0x5c7cfb,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x3b855c(_0x1e6c78),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x4824ec(0xa3)](_0x4824ec(0xc2),!0x0),this[_0x4824ec(0xa3)](_0x4824ec(0xc4),!0x1),this[_0x4824ec(0xa4)]=_0x16851f,this[_0x4824ec(0xc5)]=null,this[_0x4824ec(0x8d)][_0x4824ec(0xbb)][_0x4824ec(0xa7)]=AIChatPromptInputView[_0x4824ec(0x8e)],this[_0x4824ec(0x8d)][_0x4824ec(0xbb)][_0x4824ec(0xb2)]=AIChatPromptInputView[_0x4824ec(0x8f)],this[_0x4824ec(0x8d)][_0x4824ec(0xa8)][_0x4824ec(0xa6)](this[_0x4824ec(0xa4)]),this[_0x4824ec(0x92)](),this[_0x4824ec(0xcf)]({'attributes':{'class':['ck',_0x4824ec(0xbe)]}}),this[_0x4824ec(0x90)]=this[_0x4824ec(0xad)](),this[_0x4824ec(0x90)][_0x4824ec(0x8c)](_0x4824ec(0xb0))['to'](this,_0x4824ec(0xc2),this,_0x4824ec(0xc4),(_0x5baa72,_0x22e53e)=>!_0x5baa72&&!_0x22e53e),this[_0x4824ec(0xac)][_0x4824ec(0xa6)](this[_0x4824ec(0x90)]);}[_0x2389e6(0xd0)](){const _0x2654b2=_0x2389e6;super[_0x2654b2(0xd0)](),this[_0x2654b2(0x8d)][_0x2654b2(0xa8)][_0x2654b2(0xa6)](this[_0x2654b2(0x90)]),this[_0x2654b2(0xd3)][_0x2654b2(0xa3)](_0x2654b2(0xd1),(_0x10222b,_0x252654)=>{const _0x3777ec=_0x2654b2;this[_0x3777ec(0xc4)]||this[_0x3777ec(0xc2)]||_0x10222b[_0x3777ec(0xaa)]==this[_0x3777ec(0x8d)][_0x3777ec(0xbb)][_0x3777ec(0xc0)]&&(this[_0x3777ec(0xb3)](),_0x252654());}),this[_0x2654b2(0x8d)][_0x2654b2(0xbb)]['on'](_0x2654b2(0x95),()=>{const _0x5f1e4d=_0x2654b2;this[_0x5f1e4d(0xc2)]=''===this[_0x5f1e4d(0x8d)][_0x5f1e4d(0xbb)][_0x5f1e4d(0xc0)][_0x5f1e4d(0xcb)]?.[_0x5f1e4d(0xb6)]();});}[_0x2389e6(0xc6)](){const _0x2fce2e=_0x2389e6;super[_0x2fce2e(0xc6)](),this[_0x2fce2e(0xc5)]&&this[_0x2fce2e(0xc5)][_0x2fce2e(0xc6)]();}[_0x2389e6(0xb3)](){const _0x54d0ca=_0x2389e6,_0x2341e3=this[_0x54d0ca(0x8d)][_0x54d0ca(0xbb)][_0x54d0ca(0xc0)][_0x54d0ca(0xcb)]?.[_0x54d0ca(0xb6)]();if(!_0x2341e3)return this[_0x54d0ca(0x8d)][_0x54d0ca(0xc8)]=_0x807f00(this[_0x54d0ca(0x91)],_0x54d0ca(0xca)),void(this[_0x54d0ca(0x8d)][_0x54d0ca(0xbb)][_0x54d0ca(0xbd)]=!0x0);this[_0x54d0ca(0x8d)][_0x54d0ca(0xbb)][_0x54d0ca(0xbd)]=!0x1;const _0x514974=_0x55f9d7(_0x2341e3);this[_0x54d0ca(0x97)](_0x54d0ca(0xa1),_0x514974),this[_0x54d0ca(0x8d)][_0x54d0ca(0xbb)][_0x54d0ca(0xa2)]();}[_0x2389e6(0x9b)](_0x2bd310){const _0x48dd58=_0x2389e6;this[_0x48dd58(0x8d)][_0x48dd58(0xbb)][_0x48dd58(0xa3)](_0x48dd58(0xb1),_0x2bd310);}[_0x2389e6(0xaf)](_0xc0e18f=!0x1){const _0x39a756=_0x2389e6;super[_0x39a756(0xaf)](),_0xc0e18f&&(this[_0x39a756(0xc0)][_0x39a756(0x98)][_0x39a756(0x9f)](ph)||(this[_0x39a756(0xc0)][_0x39a756(0x98)][_0x39a756(0xa6)](ph),setTimeout(()=>{const _0x25f508=_0x39a756;this[_0x25f508(0xc0)][_0x25f508(0x98)][_0x25f508(0xbc)](ph);},0x320)));}[_0x2389e6(0xad)](){const _0x576ec7=_0x2389e6,_0x120719=new _0x5546d8(this[_0x576ec7(0x91)]);return _0x120719[_0x576ec7(0xa3)]({'icon':_0x4ec8ae,'label':_0x807f00(this[_0x576ec7(0x91)],_0x576ec7(0xcc)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x576ec7(0xb4),'isEnabled':!0x1}),_0x120719['on'](_0x576ec7(0xc7),()=>{const _0x2c69df=_0x576ec7;this[_0x2c69df(0xb3)]();}),_0x120719;}[_0x2389e6(0x96)](_0x37d824){const _0x50c485=_0x2389e6;this[_0x50c485(0xc4)]=_0x37d824;}[_0x2389e6(0x92)](){const _0x423819=_0x2389e6,_0x38e08c=this[_0x423819(0x91)],_0x20d646=()=>{const _0x5e97ed=_0x423819;_0x2a10de[_0x5e97ed(0xb9)][_0x5e97ed(0x99)](()=>{const _0x34a844=_0x5e97ed;if(_0x24f744(this[_0x34a844(0xc0)])){const _0x548c2b=new _0x480d54(this[_0x34a844(0x8d)][_0x34a844(0xbb)][_0x34a844(0xc0)]),_0x3a0a54=new _0x480d54(this[_0x34a844(0xa4)][_0x34a844(0xc0)]),_0x135486=_0x548c2b[_0x34a844(0xa0)],_0x372c9c=_0x34a844(0xa9)===_0x38e08c[_0x34a844(0xc3)]?_0x34a844(0x9e):_0x34a844(0xbf);_0x548c2b[_0x34a844(0xce)]();const _0x2ea2e9=_0x135486-_0x548c2b[_0x34a844(0xa0)]+0x1;this[_0x34a844(0xa4)][_0x34a844(0xc0)][_0x34a844(0x9a)][_0x372c9c]=_0x34a844(0x94)+(_0x135486-_0x3a0a54[_0x34a844(0xa0)]-_0x2ea2e9)+_0x34a844(0xa5);}});};this[_0x423819(0x8d)][_0x423819(0xbb)]['on'](_0x423819(0x95),_0x20d646),this['on'](_0x423819(0xd0),()=>{const _0x48479d=_0x423819;_0x20d646(),this[_0x48479d(0xc5)]=new _0x943605(this[_0x48479d(0x8d)][_0x48479d(0xbb)][_0x48479d(0xc0)],()=>{_0x20d646();});});}}
23
+ const _0x253037=_0x20df;function _0x20df(_0x445ba5,_0x58ef44){const _0x3f0041=_0x3f00();return _0x20df=function(_0x20dfc8,_0x2832de){_0x20dfc8=_0x20dfc8-0x19f;let _0x54c275=_0x3f0041[_0x20dfc8];return _0x54c275;},_0x20df(_0x445ba5,_0x58ef44);}(function(_0x33592c,_0x34e18f){const _0x3b7826=_0x20df,_0x19504d=_0x33592c();while(!![]){try{const _0x481bfd=-parseInt(_0x3b7826(0x1cf))/0x1+parseInt(_0x3b7826(0x1a4))/0x2+-parseInt(_0x3b7826(0x1ba))/0x3*(-parseInt(_0x3b7826(0x1de))/0x4)+-parseInt(_0x3b7826(0x1b1))/0x5+-parseInt(_0x3b7826(0x1a5))/0x6*(parseInt(_0x3b7826(0x1ce))/0x7)+parseInt(_0x3b7826(0x1c4))/0x8*(parseInt(_0x3b7826(0x1d4))/0x9)+parseInt(_0x3b7826(0x1bc))/0xa;if(_0x481bfd===_0x34e18f)break;else _0x19504d['push'](_0x19504d['shift']());}catch(_0x25505e){_0x19504d['push'](_0x19504d['shift']());}}}(_0x3f00,0x46f1d));import{IconSubmit as _0x437c7a}from'ckeditor5/src/icons.js';import{ButtonView as _0x16cf98,AutocompleteView as _0x3fb9cc,createLabeledTextarea as _0x3f34e2}from'ckeditor5/src/ui.js';function _0x3f00(){const _0x47f3d6=['excludeScrollbarsAndBorders','value','classList','keystrokes','sendUserMessage','window','_addContextButtonView','execute','MAX_ROWS','setIsUploadInProgress','style','406536wZanMF','162wmCWIe','update','bind','reset','fieldWrapperChildren','errorText','submit','maxRows','destroy','requestAnimationFrame','uiLanguageDirection','locale','1009610wXijpK','setPlaceholderText','fire','target','ck-ai-chat__prompt-input_highlighted','right','remove','_setUpAddContextButtonPositioning','isEnabled','306759NNlkjM','MIN_ROWS','6574600doQAlt','hasError','minRows','fieldView','left','element','px\x20-\x20var(--ck-spacing-tiny))','calc(','1108328uzKmHU','ck-ai-chat__prompt-submit-button','_createSubmitButton','trim','queryView','AI_CHAT_LABEL_SUBMIT','add','isEmpty','submitButtonView','width','35462mObUzi','472229ZPNNLA','placeholder','isUploadInProgress','focusableChildren','AI_CHAT_PROMPT_EMPTY_ERROR','9bxzlPI','focus','_queryViewResizeObserver','rtl','contains','render','set','enter','ck-ai-chat__prompt-input','extendTemplate','4VIRbwX'];_0x3f00=function(){return _0x47f3d6;};return _0x3f00();}import{global as _0x43b93c,isVisible as _0x1841e6,Rect as _0x2daca7,ResizeObserver as _0x1d6c69}from'ckeditor5/src/utils.js';import{getTranslation as _0xb9745c}from'../../../aicore/utils/common-translations.js';import{AIChatPromptSuggestionsListView as _0x2b5d70}from'./aichatpromptsuggestionslistview.js';import{escape as _0xfc7925}from'es-toolkit/compat';const ph=_0x253037(0x1b5);export class AIChatPromptInputView extends _0x3fb9cc{[_0x253037(0x1cc)];static [_0x253037(0x1bb)]=0x1;static [_0x253037(0x1a1)]=0xc;[_0x253037(0x19f)];[_0x253037(0x1d6)];constructor(_0x22440f,_0x151c17){const _0x2add68=_0x253037;super(_0x22440f,{'queryView':{'label':'','creator':_0x3f34e2,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x2b5d70(_0x22440f),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x2add68(0x1da)](_0x2add68(0x1cb),!0x0),this[_0x2add68(0x1da)](_0x2add68(0x1d1),!0x1),this[_0x2add68(0x19f)]=_0x151c17,this[_0x2add68(0x1d6)]=null,this[_0x2add68(0x1c8)][_0x2add68(0x1bf)][_0x2add68(0x1be)]=AIChatPromptInputView[_0x2add68(0x1bb)],this[_0x2add68(0x1c8)][_0x2add68(0x1bf)][_0x2add68(0x1ac)]=AIChatPromptInputView[_0x2add68(0x1a1)],this[_0x2add68(0x1c8)][_0x2add68(0x1a9)][_0x2add68(0x1ca)](this[_0x2add68(0x19f)]),this[_0x2add68(0x1b8)](),this[_0x2add68(0x1dd)]({'attributes':{'class':['ck',_0x2add68(0x1dc)]}}),this[_0x2add68(0x1cc)]=this[_0x2add68(0x1c6)](),this[_0x2add68(0x1cc)][_0x2add68(0x1a7)](_0x2add68(0x1b9))['to'](this,_0x2add68(0x1cb),this,_0x2add68(0x1d1),(_0x5ca5e3,_0x3f2f87)=>!_0x5ca5e3&&!_0x3f2f87),this[_0x2add68(0x1d2)][_0x2add68(0x1ca)](this[_0x2add68(0x1cc)]);}[_0x253037(0x1d9)](){const _0x25ccea=_0x253037;super[_0x25ccea(0x1d9)](),this[_0x25ccea(0x1c8)][_0x25ccea(0x1a9)][_0x25ccea(0x1ca)](this[_0x25ccea(0x1cc)]),this[_0x25ccea(0x1e2)][_0x25ccea(0x1da)](_0x25ccea(0x1db),(_0x4deef7,_0x1f2368)=>{const _0x2b8845=_0x25ccea;this[_0x2b8845(0x1d1)]||this[_0x2b8845(0x1cb)]||_0x4deef7[_0x2b8845(0x1b4)]==this[_0x2b8845(0x1c8)][_0x2b8845(0x1bf)][_0x2b8845(0x1c1)]&&(this[_0x2b8845(0x1ab)](),_0x1f2368());}),this[_0x25ccea(0x1c8)][_0x25ccea(0x1bf)]['on'](_0x25ccea(0x1a6),()=>{const _0x4cc9ad=_0x25ccea;this[_0x4cc9ad(0x1cb)]=''===this[_0x4cc9ad(0x1c8)][_0x4cc9ad(0x1bf)][_0x4cc9ad(0x1c1)][_0x4cc9ad(0x1e0)]?.[_0x4cc9ad(0x1c7)]();});}[_0x253037(0x1ad)](){const _0x15a299=_0x253037;super[_0x15a299(0x1ad)](),this[_0x15a299(0x1d6)]&&this[_0x15a299(0x1d6)][_0x15a299(0x1ad)]();}[_0x253037(0x1ab)](){const _0x3f2e1e=_0x253037,_0xf1bd4f=this[_0x3f2e1e(0x1c8)][_0x3f2e1e(0x1bf)][_0x3f2e1e(0x1c1)][_0x3f2e1e(0x1e0)]?.[_0x3f2e1e(0x1c7)]();if(!_0xf1bd4f)return this[_0x3f2e1e(0x1c8)][_0x3f2e1e(0x1aa)]=_0xb9745c(this[_0x3f2e1e(0x1b0)],_0x3f2e1e(0x1d3)),void(this[_0x3f2e1e(0x1c8)][_0x3f2e1e(0x1bf)][_0x3f2e1e(0x1bd)]=!0x0);this[_0x3f2e1e(0x1c8)][_0x3f2e1e(0x1bf)][_0x3f2e1e(0x1bd)]=!0x1;const _0x119b1d=_0xfc7925(_0xf1bd4f);this[_0x3f2e1e(0x1b3)](_0x3f2e1e(0x1e3),_0x119b1d),this[_0x3f2e1e(0x1c8)][_0x3f2e1e(0x1bf)][_0x3f2e1e(0x1a8)]();}[_0x253037(0x1b2)](_0x5dc05f){const _0x530040=_0x253037;this[_0x530040(0x1c8)][_0x530040(0x1bf)][_0x530040(0x1da)](_0x530040(0x1d0),_0x5dc05f);}[_0x253037(0x1d5)](_0x1241b4=!0x1){const _0x17e9ae=_0x253037;super[_0x17e9ae(0x1d5)](),_0x1241b4&&(this[_0x17e9ae(0x1c1)][_0x17e9ae(0x1e1)][_0x17e9ae(0x1d8)](ph)||(this[_0x17e9ae(0x1c1)][_0x17e9ae(0x1e1)][_0x17e9ae(0x1ca)](ph),setTimeout(()=>{const _0x3cf4ae=_0x17e9ae;this[_0x3cf4ae(0x1c1)][_0x3cf4ae(0x1e1)][_0x3cf4ae(0x1b7)](ph);},0x320)));}[_0x253037(0x1c6)](){const _0x33a86f=_0x253037,_0x4f39e9=new _0x16cf98(this[_0x33a86f(0x1b0)]);return _0x4f39e9[_0x33a86f(0x1da)]({'icon':_0x437c7a,'label':_0xb9745c(this[_0x33a86f(0x1b0)],_0x33a86f(0x1c9)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x33a86f(0x1c5),'isEnabled':!0x1}),_0x4f39e9['on'](_0x33a86f(0x1a0),()=>{const _0x3b1e84=_0x33a86f;this[_0x3b1e84(0x1ab)]();}),_0x4f39e9;}[_0x253037(0x1a2)](_0x2d7402){const _0x307583=_0x253037;this[_0x307583(0x1d1)]=_0x2d7402;}[_0x253037(0x1b8)](){const _0x1aab54=_0x253037,_0x518129=this[_0x1aab54(0x1b0)],_0x1f46ad=()=>{const _0x9240b3=_0x1aab54;_0x43b93c[_0x9240b3(0x1e4)][_0x9240b3(0x1ae)](()=>{const _0x27f358=_0x9240b3;if(_0x1841e6(this[_0x27f358(0x1c1)])){const _0x5dc7c5=new _0x2daca7(this[_0x27f358(0x1c8)][_0x27f358(0x1bf)][_0x27f358(0x1c1)]),_0x37b3d4=new _0x2daca7(this[_0x27f358(0x19f)][_0x27f358(0x1c1)]),_0x2b15ab=_0x5dc7c5[_0x27f358(0x1cd)],_0x489e2d=_0x27f358(0x1d7)===_0x518129[_0x27f358(0x1af)]?_0x27f358(0x1b6):_0x27f358(0x1c0);_0x5dc7c5[_0x27f358(0x1df)]();const _0x3ff51d=_0x2b15ab-_0x5dc7c5[_0x27f358(0x1cd)]+0x1;this[_0x27f358(0x19f)][_0x27f358(0x1c1)][_0x27f358(0x1a3)][_0x489e2d]=_0x27f358(0x1c3)+(_0x2b15ab-_0x37b3d4[_0x27f358(0x1cd)]-_0x3ff51d)+_0x27f358(0x1c2);}});};this[_0x1aab54(0x1c8)][_0x1aab54(0x1bf)]['on'](_0x1aab54(0x1a6),_0x1f46ad),this['on'](_0x1aab54(0x1d9),()=>{const _0x936b80=_0x1aab54;_0x1f46ad(),this[_0x936b80(0x1d6)]=new _0x1d6c69(this[_0x936b80(0x1c8)][_0x936b80(0x1bf)][_0x936b80(0x1c1)],()=>{_0x1f46ad();});});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x49a2a9=_0x2f73;(function(_0x1a64ad,_0x35905b){const _0x5990ab=_0x2f73,_0x4dafa8=_0x1a64ad();while(!![]){try{const _0x182f57=-parseInt(_0x5990ab(0xe7))/0x1*(-parseInt(_0x5990ab(0xe6))/0x2)+parseInt(_0x5990ab(0xeb))/0x3+parseInt(_0x5990ab(0xe4))/0x4*(-parseInt(_0x5990ab(0xe2))/0x5)+parseInt(_0x5990ab(0xe0))/0x6+parseInt(_0x5990ab(0xdf))/0x7*(-parseInt(_0x5990ab(0xea))/0x8)+-parseInt(_0x5990ab(0xe3))/0x9*(parseInt(_0x5990ab(0xe9))/0xa)+-parseInt(_0x5990ab(0xec))/0xb*(-parseInt(_0x5990ab(0xe8))/0xc);if(_0x182f57===_0x35905b)break;else _0x4dafa8['push'](_0x4dafa8['shift']());}catch(_0x5c7c33){_0x4dafa8['push'](_0x4dafa8['shift']());}}}(_0x429a,0x61d4a));function _0x2f73(_0x21f3e7,_0x5cfa91){const _0x429af8=_0x429a();return _0x2f73=function(_0x2f7337,_0x10d398){_0x2f7337=_0x2f7337-0xde;let _0x15a448=_0x429af8[_0x2f7337];return _0x15a448;},_0x2f73(_0x21f3e7,_0x5cfa91);}function _0x429a(){const _0x1881c7=['955913GMjSvQ','4532556lEykKl','length','1830PnUNtS','27711FLnOsc','8324jXpbhP','items','524xPzgig','2453QwUFxo','12ukUxzt','610rmlWHS','40RKDqty','239427ApcZYl','6105583GRPsbW','filter'];_0x429a=function(){return _0x1881c7;};return _0x429a();}import{ListView as _0x56759a}from'ckeditor5/src/ui.js';export class AIChatPromptSuggestionsListView extends _0x56759a{[_0x49a2a9(0xde)](){const _0x6e0a44=_0x49a2a9;let _0x393e7a=0x0;for(const _0x4594f9 of this[_0x6e0a44(0xe5)])_0x393e7a+=_0x4594f9[_0x6e0a44(0xe5)][_0x6e0a44(0xe1)];return{'resultsCount':_0x393e7a,'totalItemsCount':_0x393e7a};}}
23
+ const _0x38f81c=_0x4c2d;(function(_0x3a6b69,_0x188afe){const _0x264e7f=_0x4c2d,_0xfa015e=_0x3a6b69();while(!![]){try{const _0x5967bb=parseInt(_0x264e7f(0x14a))/0x1+parseInt(_0x264e7f(0x14c))/0x2*(-parseInt(_0x264e7f(0x14f))/0x3)+parseInt(_0x264e7f(0x153))/0x4*(-parseInt(_0x264e7f(0x14d))/0x5)+parseInt(_0x264e7f(0x147))/0x6+-parseInt(_0x264e7f(0x154))/0x7*(-parseInt(_0x264e7f(0x151))/0x8)+parseInt(_0x264e7f(0x146))/0x9*(-parseInt(_0x264e7f(0x149))/0xa)+parseInt(_0x264e7f(0x152))/0xb*(parseInt(_0x264e7f(0x148))/0xc);if(_0x5967bb===_0x188afe)break;else _0xfa015e['push'](_0xfa015e['shift']());}catch(_0x2a77bc){_0xfa015e['push'](_0xfa015e['shift']());}}}(_0x313e,0x1c579));function _0x313e(){const _0x385214=['22YeVoeu','28BPaGEq','186361bXiTeP','127845KfGWlQ','379032wtfGsk','470388tcFjkN','40yPWYDj','217480fGKjlG','items','4bvIVDP','140330TRiZSj','filter','24453XkcgfA','length','8XkuAHG'];_0x313e=function(){return _0x385214;};return _0x313e();}import{ListView as _0x5631d8}from'ckeditor5/src/ui.js';function _0x4c2d(_0x227a86,_0x258346){const _0x313e57=_0x313e();return _0x4c2d=function(_0x4c2dc1,_0x544f0f){_0x4c2dc1=_0x4c2dc1-0x146;let _0x9753c5=_0x313e57[_0x4c2dc1];return _0x9753c5;},_0x4c2d(_0x227a86,_0x258346);}export class AIChatPromptSuggestionsListView extends _0x5631d8{[_0x38f81c(0x14e)](){const _0x3f209a=_0x38f81c;let _0x2b9564=0x0;for(const _0x4422d9 of this[_0x3f209a(0x14b)])_0x2b9564+=_0x4422d9[_0x3f209a(0x14b)][_0x3f209a(0x150)];return{'resultsCount':_0x2b9564,'totalItemsCount':_0x2b9564};}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x241493=_0x22cd;function _0x22cd(_0x253152,_0x1923d8){const _0x40295d=_0x4029();return _0x22cd=function(_0x22cd58,_0x33da2d){_0x22cd58=_0x22cd58-0x9e;let _0x2f6c06=_0x40295d[_0x22cd58];return _0x2f6c06;},_0x22cd(_0x253152,_0x1923d8);}(function(_0x4b0fa5,_0x2fd41b){const _0x465432=_0x22cd,_0xf6cce2=_0x4b0fa5();while(!![]){try{const _0x244982=-parseInt(_0x465432(0xa3))/0x1*(-parseInt(_0x465432(0xa5))/0x2)+parseInt(_0x465432(0xb8))/0x3*(parseInt(_0x465432(0xa6))/0x4)+parseInt(_0x465432(0xa7))/0x5*(-parseInt(_0x465432(0xb0))/0x6)+-parseInt(_0x465432(0xbb))/0x7+-parseInt(_0x465432(0xad))/0x8+-parseInt(_0x465432(0x9f))/0x9+parseInt(_0x465432(0xa1))/0xa;if(_0x244982===_0x2fd41b)break;else _0xf6cce2['push'](_0xf6cce2['shift']());}catch(_0x15be41){_0xf6cce2['push'](_0xf6cce2['shift']());}}}(_0x4029,0x379e3));import{ListView as _0x15445c}from'ckeditor5/src/ui.js';function _0x4029(){const _0x4c951a=['fire','1051190kkTpkQ','test','useDefaultFiltering','trim','_source','1409571uHScrd','\x5c$&','6634840bTmRar','replace','16meBZdt','items','11038WdUDyP','688ZlgwWt','545VCechb','resource','clear','locale','_handleResourceSelection','ck-ai-chat-resources__list','1099072wEcTZH','execute','label','23376vEtVPz','extendTemplate','highlightText','filter','add','forEach','addResourceToContext','updateResourceState','6015RUnGZg','setResources'];_0x4029=function(){return _0x4c951a;};return _0x4029();}import{AIChatResourceListItemView as _0x286e7f}from'./aichatresourcelistitemview.js';const rc=_0x241493(0xac);export class AIChatContextResourcesListView extends _0x15445c{[_0x241493(0x9e)];constructor(_0x1a2cc5,_0x1bd682){const _0x4ed3cb=_0x241493;super(_0x1a2cc5),this[_0x4ed3cb(0x9e)]=_0x1bd682,this[_0x4ed3cb(0xb1)]({'attributes':{'class':[rc]}});}[_0x241493(0xb9)](_0x3dc06e,_0x1e59fc){const _0x2f5b4a=_0x241493;this[_0x2f5b4a(0xa4)][_0x2f5b4a(0xa9)]();let _0xf115f3=_0x3dc06e;if(this[_0x2f5b4a(0x9e)][_0x2f5b4a(0xbd)]&&_0x1e59fc&&''!==_0x1e59fc[_0x2f5b4a(0xbe)]()){const _0x446c04=new RegExp(_0x1e59fc[_0x2f5b4a(0xa2)](/[.*+?^${}()|[\]\\]/g,_0x2f5b4a(0xa0)),'gi');_0xf115f3=_0x3dc06e[_0x2f5b4a(0xb3)](_0x1a027b=>_0x446c04[_0x2f5b4a(0xbc)](_0x1a027b[_0x2f5b4a(0xaf)]));}for(const _0x32db43 of _0xf115f3){const _0x2cb541=new _0x286e7f(this[_0x2f5b4a(0xaa)],_0x32db43);_0x2cb541['on'](_0x2f5b4a(0xae),()=>{const _0x5fb3bb=_0x2f5b4a;this[_0x5fb3bb(0xab)](this[_0x5fb3bb(0x9e)],_0x32db43);}),this[_0x2f5b4a(0xa4)][_0x2f5b4a(0xb4)](_0x2cb541);}this[_0x2f5b4a(0x9e)][_0x2f5b4a(0xbd)]&&this[_0x2f5b4a(0xb2)](_0x1e59fc);}[_0x241493(0xb2)](_0x1a92f4){const _0x318d73=_0x241493;this[_0x318d73(0x9e)][_0x318d73(0xbd)]&&this[_0x318d73(0xa4)][_0x318d73(0xb5)](_0x19a4d1=>{const _0x33d137=_0x318d73;_0x19a4d1[_0x33d137(0xb2)](_0x1a92f4);});}[_0x241493(0xb7)](_0x2985cb,_0x2caa36){const _0x38bb3c=_0x241493;for(const _0x4fc9ec of this[_0x38bb3c(0xa4)]){const _0x4c0fad=_0x4fc9ec;_0x4c0fad[_0x38bb3c(0xa8)]['id']===_0x2985cb&&_0x4c0fad[_0x38bb3c(0xb7)](_0x2caa36);}}[_0x241493(0xab)](_0x2659da,_0xd5dcdb){const _0x24f856=_0x241493;this[_0x24f856(0xba)](_0x24f856(0xb6),{'source':_0x2659da,'resource':_0xd5dcdb});}}
23
+ function _0x3ae6(_0x4bcbe0,_0x3a3dc2){const _0x5cf9e4=_0x5cf9();return _0x3ae6=function(_0x3ae6b5,_0x300d22){_0x3ae6b5=_0x3ae6b5-0x172;let _0x29d633=_0x5cf9e4[_0x3ae6b5];return _0x29d633;},_0x3ae6(_0x4bcbe0,_0x3a3dc2);}const _0x4d6cdf=_0x3ae6;function _0x5cf9(){const _0x1d676d=['_source','_handleResourceSelection','967884KSGIsU','forEach','\x5c$&','3FXTgPA','3769040VEHtBv','filter','add','updateResourceState','replace','useDefaultFiltering','resource','trim','1780800tMIZYb','fire','addResourceToContext','ck-ai-chat-resources__list','execute','extendTemplate','highlightText','locale','19407752WIjgYP','clear','setResources','2708574VLAIcE','test','1936322sAwmVe','label','5391995omrxTD','items'];_0x5cf9=function(){return _0x1d676d;};return _0x5cf9();}(function(_0x385ce6,_0x2f71bc){const _0xe3db6=_0x3ae6,_0x1f4d49=_0x385ce6();while(!![]){try{const _0x1b86e4=-parseInt(_0xe3db6(0x187))/0x1+-parseInt(_0xe3db6(0x181))/0x2*(parseInt(_0xe3db6(0x18a))/0x3)+parseInt(_0xe3db6(0x18b))/0x4+parseInt(_0xe3db6(0x174))/0x5+-parseInt(_0xe3db6(0x17f))/0x6+-parseInt(_0xe3db6(0x183))/0x7+parseInt(_0xe3db6(0x17c))/0x8;if(_0x1b86e4===_0x2f71bc)break;else _0x1f4d49['push'](_0x1f4d49['shift']());}catch(_0x25ea25){_0x1f4d49['push'](_0x1f4d49['shift']());}}}(_0x5cf9,0x8a566));import{ListView as _0x618957}from'ckeditor5/src/ui.js';import{AIChatResourceListItemView as _0x171eaf}from'./aichatresourcelistitemview.js';const uc=_0x4d6cdf(0x177);export class AIChatContextResourcesListView extends _0x618957{[_0x4d6cdf(0x185)];constructor(_0x2bdef9,_0x222cb6){const _0x386d77=_0x4d6cdf;super(_0x2bdef9),this[_0x386d77(0x185)]=_0x222cb6,this[_0x386d77(0x179)]({'attributes':{'class':[uc]}});}[_0x4d6cdf(0x17e)](_0x3c8557,_0x9f9c7d){const _0x42f966=_0x4d6cdf;this[_0x42f966(0x184)][_0x42f966(0x17d)]();let _0x3545de=_0x3c8557;if(this[_0x42f966(0x185)][_0x42f966(0x190)]&&_0x9f9c7d&&''!==_0x9f9c7d[_0x42f966(0x173)]()){const _0x3d3b82=new RegExp(_0x9f9c7d[_0x42f966(0x18f)](/[.*+?^${}()|[\]\\]/g,_0x42f966(0x189)),'gi');_0x3545de=_0x3c8557[_0x42f966(0x18c)](_0x3bdf64=>_0x3d3b82[_0x42f966(0x180)](_0x3bdf64[_0x42f966(0x182)]));}for(const _0x1e6e5d of _0x3545de){const _0x4ca2c9=new _0x171eaf(this[_0x42f966(0x17b)],_0x1e6e5d);_0x4ca2c9['on'](_0x42f966(0x178),()=>{const _0x46431f=_0x42f966;this[_0x46431f(0x186)](this[_0x46431f(0x185)],_0x1e6e5d);}),this[_0x42f966(0x184)][_0x42f966(0x18d)](_0x4ca2c9);}this[_0x42f966(0x185)][_0x42f966(0x190)]&&this[_0x42f966(0x17a)](_0x9f9c7d);}[_0x4d6cdf(0x17a)](_0x593dc8){const _0x1c3e0d=_0x4d6cdf;this[_0x1c3e0d(0x185)][_0x1c3e0d(0x190)]&&this[_0x1c3e0d(0x184)][_0x1c3e0d(0x188)](_0x147ae3=>{const _0x4e352=_0x1c3e0d;_0x147ae3[_0x4e352(0x17a)](_0x593dc8);});}[_0x4d6cdf(0x18e)](_0x59baaf,_0x2a4dea){const _0x323b83=_0x4d6cdf;for(const _0x5377c8 of this[_0x323b83(0x184)]){const _0x35dc22=_0x5377c8;_0x35dc22[_0x323b83(0x172)]['id']===_0x59baaf&&_0x35dc22[_0x323b83(0x18e)](_0x2a4dea);}}[_0x4d6cdf(0x186)](_0xf77a71,_0x4bb78d){const _0x575820=_0x4d6cdf;this[_0x575820(0x175)](_0x575820(0x176),{'source':_0xf77a71,'resource':_0x4bb78d});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2131d0=_0x3c17;function _0x269d(){const _0x2c7488=['extendTemplate','add','2CtFKnz','source','length','21302hHQglD','updateResourceState','loadSourceResources','useDefaultFiltering','children','search','_createSearchSection','_searchSection','1301520FmVxLA','ck\x20ck-search','addResourceToContext','327245seFtZh','has','313884oxXVuw','_source','setTemplate','_latestLoadResourcesUid','_searchView','getQuery','locale','_skeletonLoader','bindTemplate','fire','_resourcesListView','searchInputVisibleFrom','_createResourcesListView','isLoading','_createSkeletonView','295314aimBov','highlightText','setResources','div','ck-ai-chat-resources','_searchInputVisibleFrom','delegate','4vWJtok','loadResources','_createSearchView','render','ck-hidden','254954VNHLZv','aiChatResources','2340054OzAgTd','set'];_0x269d=function(){return _0x2c7488;};return _0x269d();}(function(_0x403b20,_0x3254db){const _0x28abc0=_0x3c17,_0xcb0896=_0x403b20();while(!![]){try{const _0x40b0ed=parseInt(_0x28abc0(0x9c))/0x1*(parseInt(_0x28abc0(0x99))/0x2)+-parseInt(_0x28abc0(0xb8))/0x3+-parseInt(_0x28abc0(0xbf))/0x4*(-parseInt(_0x28abc0(0xa7))/0x5)+parseInt(_0x28abc0(0xa9))/0x6+-parseInt(_0x28abc0(0x93))/0x7+-parseInt(_0x28abc0(0xa4))/0x8+parseInt(_0x28abc0(0x95))/0x9;if(_0x40b0ed===_0x3254db)break;else _0xcb0896['push'](_0xcb0896['shift']());}catch(_0x2c98c2){_0xcb0896['push'](_0xcb0896['shift']());}}}(_0x269d,0x18c91));import{View as _0x421f44,ViewCollection as _0x36f10c}from'ckeditor5/src/ui.js';import{uid as _0xfe807b}from'ckeditor5/src/utils.js';import{AIChatContextResourcesListView as _0x54d672}from'./aichatcontextresourceslistview.js';function _0x3c17(_0xaaf30e,_0x2cef61){const _0x269dcb=_0x269d();return _0x3c17=function(_0x3c17ea,_0x5cfd23){_0x3c17ea=_0x3c17ea-0x90;let _0x2e9651=_0x269dcb[_0x3c17ea];return _0x2e9651;},_0x3c17(_0xaaf30e,_0x2cef61);}import{AIChatContextResourcesSearchInputView as _0x1031de}from'./aichatresourcessearchinputview.js';import{AISkeletonView as _0x2eec57,SKELETON_DEFINITIONS as _0x1ac2c4}from'../../../../aicore/ui/aiskeleton.js';export class AIChatContextResourcesView extends _0x421f44{[_0x2131d0(0xad)];[_0x2131d0(0xa3)];[_0x2131d0(0xbd)];[_0x2131d0(0xb3)];[_0x2131d0(0xb0)];[_0x2131d0(0xaa)];[_0x2131d0(0xa0)];[_0x2131d0(0xac)]=null;constructor(_0x1a6499,_0x2e6fa6){const _0x52f600=_0x2131d0;super(_0x1a6499),this[_0x52f600(0xaa)]=_0x2e6fa6[_0x52f600(0x9a)],this[_0x52f600(0xbd)]=_0x2e6fa6[_0x52f600(0xb4)]??0x7,this[_0x52f600(0x96)](_0x52f600(0xb6),!0x0),this[_0x52f600(0xad)]=this[_0x52f600(0x90)](),this[_0x52f600(0xa3)]=this[_0x52f600(0xa2)](),this[_0x52f600(0xb3)]=this[_0x52f600(0xb5)](),this[_0x52f600(0xb0)]=this[_0x52f600(0xb7)](),this[_0x52f600(0xa0)]=new _0x36f10c([this[_0x52f600(0xb0)],this[_0x52f600(0xb3)]]),this[_0x52f600(0xab)]({'tag':_0x52f600(0xbb),'attributes':{'class':_0x52f600(0xbc)},'children':this[_0x52f600(0xa0)]});}[_0x2131d0(0x90)](){const _0x514c4c=_0x2131d0;return new _0x1031de(this[_0x514c4c(0xaf)]);}[_0x2131d0(0xa2)](){const _0x13e799=_0x2131d0,_0x3b2efe=new _0x421f44(this[_0x13e799(0xaf)]);return _0x3b2efe[_0x13e799(0xab)]({'tag':_0x13e799(0xbb),'attributes':{'class':_0x13e799(0xa5)},'children':[this[_0x13e799(0xad)]]}),this[_0x13e799(0xad)]['on'](_0x13e799(0xa1),(_0x2dc36e,_0xc41e83)=>{const _0x653187=_0x13e799;this[_0x653187(0xc0)](_0xc41e83),this[_0x653187(0xaa)][_0x653187(0x9f)]&&this[_0x653187(0xb3)][_0x653187(0xb9)](_0xc41e83);}),_0x3b2efe;}[_0x2131d0(0xb5)](){const _0x2b1c0b=_0x2131d0,_0x34f04f=new _0x54d672(this[_0x2b1c0b(0xaf)],this[_0x2b1c0b(0xaa)]);return _0x34f04f[_0x2b1c0b(0xbe)](_0x2b1c0b(0xa6))['to'](this),_0x34f04f[_0x2b1c0b(0x97)]({'attributes':{'class':this[_0x2b1c0b(0xb1)]['if'](_0x2b1c0b(0xb6),_0x2b1c0b(0x92))}}),_0x34f04f;}[_0x2131d0(0xb7)](){const _0xeac8f2=_0x2131d0,_0x200672=new _0x2eec57(this[_0xeac8f2(0xaf)],_0x1ac2c4[_0xeac8f2(0x94)]);return _0x200672[_0xeac8f2(0x97)]({'attributes':{'class':[this[_0xeac8f2(0xb1)]['if'](_0xeac8f2(0xb6),_0xeac8f2(0x92),_0x50feb6=>!_0x50feb6)]}}),_0x200672;}[_0x2131d0(0x91)](){const _0x41fb1e=_0x2131d0;super[_0x41fb1e(0x91)](),this[_0x41fb1e(0xc0)]('');}[_0x2131d0(0xc0)](_0x4a555a){const _0x242336=_0x2131d0,_0x3f50c6=_0xfe807b();this[_0x242336(0xac)]=_0x3f50c6,this[_0x242336(0xb2)](_0x242336(0x9e),{'sourceId':this[_0x242336(0xaa)]['id'],'query':_0x4a555a,'uid':_0x3f50c6}),this[_0x242336(0xb6)]=!0x0;}[_0x2131d0(0xba)](_0x246669,_0x28559d){const _0x467ec5=_0x2131d0;if(_0x28559d&&_0x28559d!==this[_0x467ec5(0xac)])return;const _0x4252da=this[_0x467ec5(0xaa)][_0x467ec5(0x9f)]?this[_0x467ec5(0xad)][_0x467ec5(0xae)]():'';this[_0x467ec5(0xb3)][_0x467ec5(0xba)](_0x246669,_0x4252da),_0x246669[_0x467ec5(0x9b)]>=this[_0x467ec5(0xbd)]&&!this[_0x467ec5(0xa0)][_0x467ec5(0xa8)](this[_0x467ec5(0xa3)])&&this[_0x467ec5(0xa0)][_0x467ec5(0x98)](this[_0x467ec5(0xa3)],0x0),requestAnimationFrame(()=>{const _0x19ba3c=_0x467ec5;this[_0x19ba3c(0xb6)]=!0x1;});}[_0x2131d0(0x9d)](_0x8a3220,_0x5216c9){const _0x557fb5=_0x2131d0;this[_0x557fb5(0xb3)][_0x557fb5(0x9d)](_0x8a3220,_0x5216c9);}}
23
+ const _0x463842=_0x5895;function _0x5895(_0x2fe2aa,_0x5724b9){const _0x1c2673=_0x1c26();return _0x5895=function(_0x589509,_0x52b833){_0x589509=_0x589509-0x149;let _0x38369d=_0x1c2673[_0x589509];return _0x38369d;},_0x5895(_0x2fe2aa,_0x5724b9);}(function(_0x22354e,_0x1322d4){const _0xae0ddd=_0x5895,_0x486a73=_0x22354e();while(!![]){try{const _0x25b195=-parseInt(_0xae0ddd(0x154))/0x1+-parseInt(_0xae0ddd(0x157))/0x2+parseInt(_0xae0ddd(0x170))/0x3*(-parseInt(_0xae0ddd(0x168))/0x4)+-parseInt(_0xae0ddd(0x16a))/0x5+-parseInt(_0xae0ddd(0x17a))/0x6*(-parseInt(_0xae0ddd(0x160))/0x7)+-parseInt(_0xae0ddd(0x166))/0x8*(-parseInt(_0xae0ddd(0x15b))/0x9)+parseInt(_0xae0ddd(0x169))/0xa;if(_0x25b195===_0x1322d4)break;else _0x486a73['push'](_0x486a73['shift']());}catch(_0x882a58){_0x486a73['push'](_0x486a73['shift']());}}}(_0x1c26,0xb1304));import{View as _0x532be0,ViewCollection as _0x5b1eb2}from'ckeditor5/src/ui.js';function _0x1c26(){const _0x21aae1=['_createResourcesListView','_createSkeletonView','searchInputVisibleFrom','_skeletonLoader','fire','354HregJc','div','_latestLoadResourcesUid','_searchSection','length','aiChatResources','_searchView','_resourcesListView','set','search','source','bindTemplate','145361daQHqs','setTemplate','render','1945296fVyeiG','ck\x20ck-search','ck-ai-chat-resources','children','6759FWiHgq','has','useDefaultFiltering','loadSourceResources','loadResources','83818iwGZVg','add','_searchInputVisibleFrom','highlightText','addResourceToContext','_createSearchView','8472swJcfJ','extendTemplate','2408824oNbTdc','28094160LTWXfT','6315030vFsAQs','delegate','_createSearchSection','isLoading','_source','getQuery','6uqAOSA','ck-hidden','locale','setResources','updateResourceState'];_0x1c26=function(){return _0x21aae1;};return _0x1c26();}import{uid as _0xec64b1}from'ckeditor5/src/utils.js';import{AIChatContextResourcesListView as _0x36d0fa}from'./aichatcontextresourceslistview.js';import{AIChatContextResourcesSearchInputView as _0x23b8e4}from'./aichatresourcessearchinputview.js';import{AISkeletonView as _0x2ccedc,SKELETON_DEFINITIONS as _0x55f888}from'../../../../aicore/ui/aiskeleton.js';export class AIChatContextResourcesView extends _0x532be0{[_0x463842(0x14e)];[_0x463842(0x14b)];[_0x463842(0x162)];[_0x463842(0x14f)];[_0x463842(0x178)];[_0x463842(0x16e)];[_0x463842(0x15a)];[_0x463842(0x14a)]=null;constructor(_0x31e767,_0x15e4e9){const _0x58cdee=_0x463842;super(_0x31e767),this[_0x58cdee(0x16e)]=_0x15e4e9[_0x58cdee(0x152)],this[_0x58cdee(0x162)]=_0x15e4e9[_0x58cdee(0x177)]??0x7,this[_0x58cdee(0x150)](_0x58cdee(0x16d),!0x0),this[_0x58cdee(0x14e)]=this[_0x58cdee(0x165)](),this[_0x58cdee(0x14b)]=this[_0x58cdee(0x16c)](),this[_0x58cdee(0x14f)]=this[_0x58cdee(0x175)](),this[_0x58cdee(0x178)]=this[_0x58cdee(0x176)](),this[_0x58cdee(0x15a)]=new _0x5b1eb2([this[_0x58cdee(0x178)],this[_0x58cdee(0x14f)]]),this[_0x58cdee(0x155)]({'tag':_0x58cdee(0x149),'attributes':{'class':_0x58cdee(0x159)},'children':this[_0x58cdee(0x15a)]});}[_0x463842(0x165)](){const _0x29549b=_0x463842;return new _0x23b8e4(this[_0x29549b(0x172)]);}[_0x463842(0x16c)](){const _0x4180ae=_0x463842,_0x4447dd=new _0x532be0(this[_0x4180ae(0x172)]);return _0x4447dd[_0x4180ae(0x155)]({'tag':_0x4180ae(0x149),'attributes':{'class':_0x4180ae(0x158)},'children':[this[_0x4180ae(0x14e)]]}),this[_0x4180ae(0x14e)]['on'](_0x4180ae(0x151),(_0x4b63ce,_0xeeaae8)=>{const _0x225ccc=_0x4180ae;this[_0x225ccc(0x15f)](_0xeeaae8),this[_0x225ccc(0x16e)][_0x225ccc(0x15d)]&&this[_0x225ccc(0x14f)][_0x225ccc(0x163)](_0xeeaae8);}),_0x4447dd;}[_0x463842(0x175)](){const _0xe8433=_0x463842,_0x5eafe7=new _0x36d0fa(this[_0xe8433(0x172)],this[_0xe8433(0x16e)]);return _0x5eafe7[_0xe8433(0x16b)](_0xe8433(0x164))['to'](this),_0x5eafe7[_0xe8433(0x167)]({'attributes':{'class':this[_0xe8433(0x153)]['if'](_0xe8433(0x16d),_0xe8433(0x171))}}),_0x5eafe7;}[_0x463842(0x176)](){const _0x552662=_0x463842,_0x41237e=new _0x2ccedc(this[_0x552662(0x172)],_0x55f888[_0x552662(0x14d)]);return _0x41237e[_0x552662(0x167)]({'attributes':{'class':[this[_0x552662(0x153)]['if'](_0x552662(0x16d),_0x552662(0x171),_0x163189=>!_0x163189)]}}),_0x41237e;}[_0x463842(0x156)](){const _0x1ecf76=_0x463842;super[_0x1ecf76(0x156)](),this[_0x1ecf76(0x15f)]('');}[_0x463842(0x15f)](_0x5dcdf5){const _0x2e6723=_0x463842,_0x3247a1=_0xec64b1();this[_0x2e6723(0x14a)]=_0x3247a1,this[_0x2e6723(0x179)](_0x2e6723(0x15e),{'sourceId':this[_0x2e6723(0x16e)]['id'],'query':_0x5dcdf5,'uid':_0x3247a1}),this[_0x2e6723(0x16d)]=!0x0;}[_0x463842(0x173)](_0x5e182f,_0x48cd64){const _0xf451d8=_0x463842;if(_0x48cd64&&_0x48cd64!==this[_0xf451d8(0x14a)])return;const _0x4bf3a9=this[_0xf451d8(0x16e)][_0xf451d8(0x15d)]?this[_0xf451d8(0x14e)][_0xf451d8(0x16f)]():'';this[_0xf451d8(0x14f)][_0xf451d8(0x173)](_0x5e182f,_0x4bf3a9),_0x5e182f[_0xf451d8(0x14c)]>=this[_0xf451d8(0x162)]&&!this[_0xf451d8(0x15a)][_0xf451d8(0x15c)](this[_0xf451d8(0x14b)])&&this[_0xf451d8(0x15a)][_0xf451d8(0x161)](this[_0xf451d8(0x14b)],0x0),requestAnimationFrame(()=>{const _0x2dac93=_0xf451d8;this[_0x2dac93(0x16d)]=!0x1;});}[_0x463842(0x174)](_0x472c37,_0x153ef9){const _0x45d46f=_0x463842;this[_0x45d46f(0x14f)][_0x45d46f(0x174)](_0x472c37,_0x153ef9);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x1e8f(){const _0x2c2792=['326994EcWaYY','highlightText','extendTemplate','6604236nstOmX','2724240kqOudB','set','label','FILE','_createIconView','2133220FcYjIZ','content','TEXT','ck-ai-chat-resources__item','_createTitleView','ck-ai-chat-resources__item-title','execute','8hXXcHt','resource','isVisible','10812886wXXxzW','225383dAKlhw','updateResourceState','179796ywtjed','URL','_titleView','div','ck-hidden','type','span','trim','_setupTemplate','isInContext','text','2SOuaBU','bindTemplate','DOCUMENT','getResourceIcon','_updateIcon','ck-ai-chat-resources__item--in-context','setTemplate','render','ck-ai-chat-resources__item__icon','_iconView'];_0x1e8f=function(){return _0x2c2792;};return _0x1e8f();}function _0x4720(_0xa63aa8,_0x1c7ff6){const _0x1e8f27=_0x1e8f();return _0x4720=function(_0x472098,_0x5453dc){_0x472098=_0x472098-0x76;let _0x2b9e45=_0x1e8f27[_0x472098];return _0x2b9e45;},_0x4720(_0xa63aa8,_0x1c7ff6);}const _0x1d14a6=_0x4720;(function(_0x3cf4d8,_0x525cb5){const _0x403f23=_0x4720,_0xfd87c1=_0x3cf4d8();while(!![]){try{const _0x82ad0a=parseInt(_0x403f23(0x80))/0x1*(parseInt(_0x403f23(0x8d))/0x2)+parseInt(_0x403f23(0x82))/0x3+-parseInt(_0x403f23(0x9b))/0x4+parseInt(_0x403f23(0xa0))/0x5+-parseInt(_0x403f23(0x97))/0x6+-parseInt(_0x403f23(0x7f))/0x7*(-parseInt(_0x403f23(0x7c))/0x8)+-parseInt(_0x403f23(0x9a))/0x9;if(_0x82ad0a===_0x525cb5)break;else _0xfd87c1['push'](_0xfd87c1['shift']());}catch(_0x1f91e9){_0xfd87c1['push'](_0xfd87c1['shift']());}}}(_0x1e8f,0xc035e));import{HighlightedTextView as _0x3fddab,IconView as _0xdcadf,ListItemView as _0x4cd798}from'ckeditor5/src/ui.js';import{escapeRegExp as _0x5e81f2}from'es-toolkit/compat';import{AIContextItemType as _0x55e73d}from'../../../../aicore/model/aicontext.js';import{IconFileUpload as _0x3e4a48,IconCheck as _0x2e21f2,IconDocument as _0x54eadb,IconDocumentOutline as _0x12dbef,IconLink as _0x5f4622}from'@ckeditor/ckeditor5-icons';const zr=_0x1d14a6(0x78),Jr=_0x1d14a6(0x92),Kr=_0x1d14a6(0x7a),Mr=_0x1d14a6(0x95);export class AIChatResourceListItemView extends _0x4cd798{[_0x1d14a6(0x7d)];[_0x1d14a6(0x84)];[_0x1d14a6(0x96)];constructor(_0x2489f0,_0x3cd270){const _0x4b0814=_0x1d14a6;super(_0x2489f0),this[_0x4b0814(0x7d)]=_0x3cd270,this[_0x4b0814(0x9c)](_0x4b0814(0x8b),!!_0x3cd270[_0x4b0814(0x8b)]),this[_0x4b0814(0x84)]=this[_0x4b0814(0x79)](),this[_0x4b0814(0x96)]=this[_0x4b0814(0x9f)](),this[_0x4b0814(0x8a)]();}[_0x1d14a6(0x94)](){const _0x12d768=_0x1d14a6;super[_0x12d768(0x94)]();}[_0x1d14a6(0x90)](_0x130f38){const _0x33baa9=_0x1d14a6;if(_0x130f38[_0x33baa9(0x8b)])return _0x2e21f2;switch(_0x130f38[_0x33baa9(0x87)]){case _0x55e73d[_0x33baa9(0x8f)]:return _0x54eadb;case _0x55e73d[_0x33baa9(0x83)]:return _0x5f4622;case _0x55e73d[_0x33baa9(0x9e)]:case _0x55e73d[_0x33baa9(0x77)]:return _0x3e4a48;default:return _0x12dbef;}}[_0x1d14a6(0x98)](_0x431a7a){const _0x41bda8=_0x1d14a6;if(!_0x431a7a||''===_0x431a7a[_0x41bda8(0x89)]())return void this[_0x41bda8(0x84)][_0x41bda8(0x98)](null);const _0x251d36=new RegExp(_0x5e81f2(_0x431a7a),'gi');this[_0x41bda8(0x84)][_0x41bda8(0x98)](_0x251d36);}[_0x1d14a6(0x81)](_0x469285){const _0x485456=_0x1d14a6;this[_0x485456(0x7d)][_0x485456(0x8b)]=_0x469285,this[_0x485456(0x8b)]=_0x469285,this[_0x485456(0x91)]();}[_0x1d14a6(0x79)](){const _0x8c278d=_0x1d14a6,_0x2db1c2=new _0x3fddab();return _0x2db1c2[_0x8c278d(0x8c)]=this[_0x8c278d(0x7d)][_0x8c278d(0x9d)],_0x2db1c2[_0x8c278d(0x99)]({'tag':_0x8c278d(0x88),'attributes':{'class':[Kr]}}),_0x2db1c2;}[_0x1d14a6(0x9f)](){const _0x1afe0e=_0x1d14a6,_0x19e660=new _0xdcadf();return _0x19e660[_0x1afe0e(0x76)]=this[_0x1afe0e(0x90)](this[_0x1afe0e(0x7d)]),_0x19e660;}[_0x1d14a6(0x8a)](){const _0x299f1d=_0x1d14a6,_0x999117=this[_0x299f1d(0x8e)];this[_0x299f1d(0x93)]({'tag':_0x299f1d(0x85),'attributes':{'class':[zr,_0x999117['if'](_0x299f1d(0x7e),_0x299f1d(0x86),_0x210238=>!_0x210238),_0x999117['if'](_0x299f1d(0x8b),Jr)]},'children':[{'tag':_0x299f1d(0x85),'attributes':{'class':[Mr]},'children':[this[_0x299f1d(0x96)]]},this[_0x299f1d(0x84)]],'on':{'click':_0x999117['to'](_0x299f1d(0x7b))}});}[_0x1d14a6(0x91)](){const _0x2c2c52=_0x1d14a6;this[_0x2c2c52(0x96)][_0x2c2c52(0x76)]=this[_0x2c2c52(0x90)](this[_0x2c2c52(0x7d)]);}}
23
+ const _0x59df93=_0x5455;(function(_0x5c212f,_0xb9a51a){const _0x45d606=_0x5455,_0x15c9ab=_0x5c212f();while(!![]){try{const _0x2ccadd=parseInt(_0x45d606(0x16b))/0x1*(parseInt(_0x45d606(0x158))/0x2)+parseInt(_0x45d606(0x165))/0x3*(parseInt(_0x45d606(0x16a))/0x4)+parseInt(_0x45d606(0x15b))/0x5+-parseInt(_0x45d606(0x16f))/0x6+-parseInt(_0x45d606(0x15e))/0x7+-parseInt(_0x45d606(0x15f))/0x8+parseInt(_0x45d606(0x155))/0x9*(-parseInt(_0x45d606(0x17a))/0xa);if(_0x2ccadd===_0xb9a51a)break;else _0x15c9ab['push'](_0x15c9ab['shift']());}catch(_0x596417){_0x15c9ab['push'](_0x15c9ab['shift']());}}}(_0x2008,0xe9d89));function _0x2008(){const _0x3069ca=['_titleView','_createIconView','getResourceIcon','6040302muSijS','execute','extendTemplate','render','ck-ai-chat-resources__item--in-context','updateResourceState','trim','_createTitleView','URL','ck-ai-chat-resources__item','ck-ai-chat-resources__item__icon','10XGhSxF','ck-hidden','TEXT','text','isVisible','FILE','DOCUMENT','12145779aBiEfC','highlightText','_setupTemplate','1518Kppqgb','span','ck-ai-chat-resources__item-title','9527740KmRQeW','isInContext','resource','7141113HxrGQz','3571480xUFWaO','div','type','setTemplate','_updateIcon','bindTemplate','3jWhJWj','content','label','set','_iconView','6506288BHBxYG','1645niKOld'];_0x2008=function(){return _0x3069ca;};return _0x2008();}import{HighlightedTextView as _0x25e92f,IconView as _0x1e15e2,ListItemView as _0x33abe9}from'ckeditor5/src/ui.js';import{escapeRegExp as _0xc7b5ae}from'es-toolkit/compat';function _0x5455(_0x16dcbb,_0x5b3413){const _0x20081a=_0x2008();return _0x5455=function(_0x54554e,_0x5ca1e0){_0x54554e=_0x54554e-0x14f;let _0x32d13d=_0x20081a[_0x54554e];return _0x32d13d;},_0x5455(_0x16dcbb,_0x5b3413);}import{AIContextItemType as _0x4b54c0}from'../../../../aicore/model/aicontext.js';import{IconFileUpload as _0x38fad0,IconCheck as _0x47bfa5,IconDocument as _0x3f5f23,IconDocumentOutline as _0x4e61a8,IconLink as _0x2daf71}from'@ckeditor/ckeditor5-icons';const Jr=_0x59df93(0x178),Kr=_0x59df93(0x173),Mr=_0x59df93(0x15a),Nr=_0x59df93(0x179);export class AIChatResourceListItemView extends _0x33abe9{[_0x59df93(0x15d)];[_0x59df93(0x16c)];[_0x59df93(0x169)];constructor(_0x28ec65,_0x2c55f7){const _0x655bcf=_0x59df93;super(_0x28ec65),this[_0x655bcf(0x15d)]=_0x2c55f7,this[_0x655bcf(0x168)](_0x655bcf(0x15c),!!_0x2c55f7[_0x655bcf(0x15c)]),this[_0x655bcf(0x16c)]=this[_0x655bcf(0x176)](),this[_0x655bcf(0x169)]=this[_0x655bcf(0x16d)](),this[_0x655bcf(0x157)]();}[_0x59df93(0x172)](){const _0x527260=_0x59df93;super[_0x527260(0x172)]();}[_0x59df93(0x16e)](_0x1c40b6){const _0x305802=_0x59df93;if(_0x1c40b6[_0x305802(0x15c)])return _0x47bfa5;switch(_0x1c40b6[_0x305802(0x161)]){case _0x4b54c0[_0x305802(0x154)]:return _0x3f5f23;case _0x4b54c0[_0x305802(0x177)]:return _0x2daf71;case _0x4b54c0[_0x305802(0x153)]:case _0x4b54c0[_0x305802(0x150)]:return _0x38fad0;default:return _0x4e61a8;}}[_0x59df93(0x156)](_0x4a3384){const _0x431de9=_0x59df93;if(!_0x4a3384||''===_0x4a3384[_0x431de9(0x175)]())return void this[_0x431de9(0x16c)][_0x431de9(0x156)](null);const _0x45005e=new RegExp(_0xc7b5ae(_0x4a3384),'gi');this[_0x431de9(0x16c)][_0x431de9(0x156)](_0x45005e);}[_0x59df93(0x174)](_0x19588b){const _0x55e5f1=_0x59df93;this[_0x55e5f1(0x15d)][_0x55e5f1(0x15c)]=_0x19588b,this[_0x55e5f1(0x15c)]=_0x19588b,this[_0x55e5f1(0x163)]();}[_0x59df93(0x176)](){const _0x42007d=_0x59df93,_0x4d6510=new _0x25e92f();return _0x4d6510[_0x42007d(0x151)]=this[_0x42007d(0x15d)][_0x42007d(0x167)],_0x4d6510[_0x42007d(0x171)]({'tag':_0x42007d(0x159),'attributes':{'class':[Mr]}}),_0x4d6510;}[_0x59df93(0x16d)](){const _0x4f37b5=_0x59df93,_0x20fdee=new _0x1e15e2();return _0x20fdee[_0x4f37b5(0x166)]=this[_0x4f37b5(0x16e)](this[_0x4f37b5(0x15d)]),_0x20fdee;}[_0x59df93(0x157)](){const _0x450344=_0x59df93,_0x649dbc=this[_0x450344(0x164)];this[_0x450344(0x162)]({'tag':_0x450344(0x160),'attributes':{'class':[Jr,_0x649dbc['if'](_0x450344(0x152),_0x450344(0x14f),_0x1c2e4b=>!_0x1c2e4b),_0x649dbc['if'](_0x450344(0x15c),Kr)]},'children':[{'tag':_0x450344(0x160),'attributes':{'class':[Nr]},'children':[this[_0x450344(0x169)]]},this[_0x450344(0x16c)]],'on':{'click':_0x649dbc['to'](_0x450344(0x170))}});}[_0x59df93(0x163)](){const _0x2449a3=_0x59df93;this[_0x2449a3(0x169)][_0x2449a3(0x166)]=this[_0x2449a3(0x16e)](this[_0x2449a3(0x15d)]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3fca81=_0x230c;(function(_0x409ca1,_0x5816d6){const _0xb7a1a9=_0x230c,_0x85fdfc=_0x409ca1();while(!![]){try{const _0x24328c=-parseInt(_0xb7a1a9(0x12c))/0x1*(parseInt(_0xb7a1a9(0x140))/0x2)+-parseInt(_0xb7a1a9(0x15b))/0x3*(parseInt(_0xb7a1a9(0x161))/0x4)+-parseInt(_0xb7a1a9(0x14f))/0x5*(parseInt(_0xb7a1a9(0x15d))/0x6)+-parseInt(_0xb7a1a9(0x131))/0x7*(parseInt(_0xb7a1a9(0x15c))/0x8)+parseInt(_0xb7a1a9(0x156))/0x9*(parseInt(_0xb7a1a9(0x133))/0xa)+-parseInt(_0xb7a1a9(0x148))/0xb+parseInt(_0xb7a1a9(0x159))/0xc;if(_0x24328c===_0x5816d6)break;else _0x85fdfc['push'](_0x85fdfc['shift']());}catch(_0x41e087){_0x85fdfc['push'](_0x85fdfc['shift']());}}}(_0x56f3,0x39180));function _0x230c(_0x493314,_0x217714){const _0x56f3d5=_0x56f3();return _0x230c=function(_0x230ce3,_0x5d3902){_0x230ce3=_0x230ce3-0x124;let _0x202a35=_0x56f3d5[_0x230ce3];return _0x202a35;},_0x230c(_0x493314,_0x217714);}function _0x56f3(){const _0x1849bd=['closeSourceResourceBalloon','onBackToContext','10ZCzlLF','delete','extendTemplate','loadSourceResources','onBalloonClosed','_getResourcesViewFromBalloon','hide','_config','2309021MwaKvH','set','_addSourceResourceContent','source','clear','children','isAnyResourceBalloonVisible','415noLInq','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_source','get','_locale','_sourceResourceBalloons','getLimiterElement','once','1107CMJQwj','showSourceResourcesBalloon','add','11469360XEcITO','change:isLoading','3rHmjmd','3034504hhuoqB','8826ZlIaFW','ck-ai-chat-context-controls__source-balloon-panel','_createBalloonHeader','execute','1046872nwpndx','searchInputVisibleFrom','_createSourceResourceBalloonPanel','onResourceSelected','values','_createBackButton','getTargetElement','element','onLoadSourceResources','resource','9974QQHxyq','setResources','show','isVisible','content','7DliLdK','destroy','24470cSwRyR','_bodyCollection','ck-button-icon\x20ck-button-back','addResourceToContext','label','pin','updateResourceState','_setupSingleResourceBalloonClickOutsideHandler','_createBalloonResourcesView','populateSourceResourceBalloon','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT'];_0x56f3=function(){return _0x1849bd;};return _0x56f3();}import{BalloonPanelView as _0x366743,ButtonView as _0x2bcc9e,clickOutsideHandler as _0x2d9c06,FormHeaderView as _0x57a68f}from'ckeditor5/src/ui.js';import{IconPreviousArrow as _0x41f984}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x3d72ef}from'../../../../aicore/utils/common-translations.js';import{AIChatContextResourcesView as _0x425149}from'./aichatcontextresourcesview.js';const lc=_0x3fca81(0x15e),uc=_0x3fca81(0x135),hc=_0x3fca81(0x150);export class AIChatResourcesBalloonView{[_0x3fca81(0x153)]=new Map();[_0x3fca81(0x134)];[_0x3fca81(0x152)];[_0x3fca81(0x147)];constructor(_0x4b8f32,_0x12e026,_0x50f15f){const _0x537dae=_0x3fca81;this[_0x537dae(0x152)]=_0x4b8f32,this[_0x537dae(0x134)]=_0x12e026,this[_0x537dae(0x147)]=_0x50f15f;}[_0x3fca81(0x157)]({source:_0x45854b,withBackButton:_0x2e3f2a}){const _0x471003=_0x3fca81;let _0x5acb39=this[_0x471003(0x153)][_0x471003(0x151)](_0x45854b['id']);_0x5acb39||(_0x5acb39=this[_0x471003(0x124)](),this[_0x471003(0x153)][_0x471003(0x149)](_0x45854b['id'],_0x5acb39),this[_0x471003(0x13a)](_0x5acb39)),this[_0x471003(0x14a)]({'balloonPanel':_0x5acb39,'source':_0x45854b,'withBackButton':_0x2e3f2a}),_0x5acb39[_0x471003(0x12e)]();const _0x5e1a55=this[_0x471003(0x147)][_0x471003(0x128)]();_0x5e1a55&&_0x5acb39[_0x471003(0x138)]({'target':_0x5e1a55,'limiter':this[_0x471003(0x147)][_0x471003(0x154)]()});}[_0x3fca81(0x13c)](_0x3dfb5d,_0x360504,_0x5cb0fd){const _0x46252e=_0x3fca81,_0x45d819=this[_0x46252e(0x153)][_0x46252e(0x151)](_0x3dfb5d);if(!_0x45d819)return;const _0x5e07a5=this[_0x46252e(0x145)](_0x45d819);_0x5e07a5&&(_0x5e07a5[_0x46252e(0x12d)](_0x360504,_0x5cb0fd),_0x5e07a5[_0x46252e(0x155)](_0x46252e(0x15a),()=>{const _0x49fa18=_0x46252e;_0x45d819[_0x49fa18(0x138)]({'target':this[_0x49fa18(0x147)][_0x49fa18(0x128)](),'limiter':this[_0x49fa18(0x147)][_0x49fa18(0x154)]()});}));}[_0x3fca81(0x13e)](_0x5d3f6c){const _0x14a89c=_0x3fca81,_0x45d89d=this[_0x14a89c(0x153)][_0x14a89c(0x151)](_0x5d3f6c);_0x45d89d&&requestAnimationFrame(()=>{const _0xcf097e=_0x14a89c;_0x45d89d[_0xcf097e(0x146)](),this[_0xcf097e(0x153)][_0xcf097e(0x141)](_0x5d3f6c),this[_0xcf097e(0x147)][_0xcf097e(0x144)]();});}[_0x3fca81(0x14e)](){const _0x303174=_0x3fca81;for(const _0x369534 of this[_0x303174(0x153)][_0x303174(0x126)]())if(_0x369534[_0x303174(0x12f)])return!0x0;return!0x1;}[_0x3fca81(0x139)](_0x53b8b7,_0x275dde,_0x24e672){const _0xa57db1=_0x3fca81,_0x3f261c=this[_0xa57db1(0x153)][_0xa57db1(0x151)](_0x53b8b7);if(!_0x3f261c||!_0x3f261c[_0xa57db1(0x12f)])return;const _0x380c99=this[_0xa57db1(0x147)][_0xa57db1(0x128)]();if(!_0x380c99)return;_0x3f261c[_0xa57db1(0x138)]({'target':_0x380c99,'limiter':this[_0xa57db1(0x147)][_0xa57db1(0x154)]()});const _0x712cc8=this[_0xa57db1(0x145)](_0x3f261c);_0x712cc8&&_0x712cc8[_0xa57db1(0x139)](_0x275dde,_0x24e672);}[_0x3fca81(0x132)](){const _0x40a518=_0x3fca81;for(const _0x17f462 of this[_0x40a518(0x153)][_0x40a518(0x126)]())_0x17f462[_0x40a518(0x132)]();this[_0x40a518(0x153)][_0x40a518(0x14c)]();}[_0x3fca81(0x124)](){const _0x19f7bc=_0x3fca81,_0x248006=new _0x366743(this[_0x19f7bc(0x152)]);return _0x248006[_0x19f7bc(0x142)]({'attributes':{'class':lc}}),this[_0x19f7bc(0x134)][_0x19f7bc(0x158)](_0x248006),_0x248006;}[_0x3fca81(0x14a)]({balloonPanel:_0xbb4d78,source:_0x1bdabf,withBackButton:_0x1682dd}){const _0x36eeb7=_0x3fca81;_0xbb4d78[_0x36eeb7(0x130)][_0x36eeb7(0x14c)]();const _0x44f3db=this[_0x36eeb7(0x15f)]({'balloonPanel':_0xbb4d78,'source':_0x1bdabf,'withBackButton':_0x1682dd});_0xbb4d78[_0x36eeb7(0x130)][_0x36eeb7(0x158)](_0x44f3db);const _0x557558=this[_0x36eeb7(0x13b)](_0x1bdabf);_0xbb4d78[_0x36eeb7(0x130)][_0x36eeb7(0x158)](_0x557558);}[_0x3fca81(0x15f)]({balloonPanel:_0xadc9fb,source:_0x417579,withBackButton:_0x530076}){const _0x6c3de8=_0x3fca81,_0x8c8d99=new _0x57a68f(this[_0x6c3de8(0x152)],{'label':_0x417579[_0x6c3de8(0x137)],'class':hc});return _0x530076&&_0x8c8d99[_0x6c3de8(0x14d)][_0x6c3de8(0x158)](this[_0x6c3de8(0x127)](_0xadc9fb),0x0),_0x8c8d99;}[_0x3fca81(0x127)](_0x4e7d50){const _0x9fad6a=_0x3fca81,_0x53eb05=new _0x2bcc9e(this[_0x9fad6a(0x152)]);return _0x53eb05[_0x9fad6a(0x149)]({'icon':_0x41f984,'tooltip':_0x3d72ef(this[_0x9fad6a(0x152)],_0x9fad6a(0x13d)),'tooltipPosition':'n','class':uc}),_0x53eb05['on'](_0x9fad6a(0x160),()=>{const _0x2ef7f3=_0x9fad6a;_0x4e7d50[_0x2ef7f3(0x146)](),this[_0x2ef7f3(0x147)][_0x2ef7f3(0x13f)]();}),_0x53eb05;}[_0x3fca81(0x13b)](_0x139084){const _0x29c1f3=_0x3fca81,_0x38bfec=new _0x425149(this[_0x29c1f3(0x152)],{'source':_0x139084,'searchInputVisibleFrom':this[_0x29c1f3(0x147)][_0x29c1f3(0x162)]});return _0x38bfec['on'](_0x29c1f3(0x143),(_0x5173e2,_0x2dc936)=>{const _0xf0c90f=_0x29c1f3;this[_0xf0c90f(0x147)][_0xf0c90f(0x12a)](_0x2dc936);}),_0x38bfec['on'](_0x29c1f3(0x136),(_0x1c26e8,_0x182730)=>{const _0x5e75fc=_0x29c1f3;this[_0x5e75fc(0x147)][_0x5e75fc(0x125)](_0x182730[_0x5e75fc(0x14b)],_0x182730[_0x5e75fc(0x12b)]),this[_0x5e75fc(0x13e)](_0x139084['id']);}),_0x38bfec;}[_0x3fca81(0x145)](_0x54517e){const _0x55dc5c=_0x3fca81,_0x272382=_0x54517e[_0x55dc5c(0x130)][_0x55dc5c(0x151)](0x1);return _0x272382 instanceof _0x425149?_0x272382:null;}[_0x3fca81(0x13a)](_0x2ba04e){const _0xfa379c=_0x3fca81;_0x2d9c06({'emitter':_0x2ba04e,'contextElements':[_0x2ba04e[_0xfa379c(0x129)]],'callback':()=>{const _0x35d8e2=_0xfa379c;_0x2ba04e[_0x35d8e2(0x146)](),this[_0x35d8e2(0x147)][_0x35d8e2(0x144)]();},'activator':()=>_0x2ba04e[_0xfa379c(0x12f)]});}}
23
+ const _0x42f84c=_0xd90a;(function(_0x308af2,_0x524683){const _0x2401e6=_0xd90a,_0x16ea08=_0x308af2();while(!![]){try{const _0x370e1d=parseInt(_0x2401e6(0xf6))/0x1+parseInt(_0x2401e6(0x113))/0x2+parseInt(_0x2401e6(0x10a))/0x3*(-parseInt(_0x2401e6(0x114))/0x4)+-parseInt(_0x2401e6(0xeb))/0x5+-parseInt(_0x2401e6(0x104))/0x6*(parseInt(_0x2401e6(0xfe))/0x7)+-parseInt(_0x2401e6(0x103))/0x8*(parseInt(_0x2401e6(0xfc))/0x9)+parseInt(_0x2401e6(0x11c))/0xa;if(_0x370e1d===_0x524683)break;else _0x16ea08['push'](_0x16ea08['shift']());}catch(_0x35c8a4){_0x16ea08['push'](_0x16ea08['shift']());}}}(_0xf7fa,0x21ad2));function _0xf7fa(){const _0x3d79b=['add','5996390rsclWG','execute','_config','updateResourceState','children','show','_sourceResourceBalloons','_getResourcesViewFromBalloon','resource','extendTemplate','get','_createSourceResourceBalloonPanel','1077155lRjDLJ','change:isLoading','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','clear','closeSourceResourceBalloon','_createBalloonHeader','delete','source','pin','_createBalloonResourcesView','onBalloonClosed','178285ZFcwrN','values','ck-ai-chat-context-controls__source-balloon-panel','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_source','destroy','onBackToContext','1814391PtTFIP','_setupSingleResourceBalloonClickOutsideHandler','7WkINRP','isAnyResourceBalloonVisible','_bodyCollection','onResourceSelected','once','8PfdUXj','567564tuquYG','loadSourceResources','element','getTargetElement','addResourceToContext','showSourceResourcesBalloon','3IIauoo','set','_locale','searchInputVisibleFrom','populateSourceResourceBalloon','_addSourceResourceContent','_createBackButton','ck-button-icon\x20ck-button-back','isVisible','11496qILkVC','536440tDsNYH','onLoadSourceResources','label','setResources','getLimiterElement','hide','content'];_0xf7fa=function(){return _0x3d79b;};return _0xf7fa();}import{BalloonPanelView as _0x1f3273,ButtonView as _0x5bd67b,clickOutsideHandler as _0xf1c866,FormHeaderView as _0x2ba1b3}from'ckeditor5/src/ui.js';import{IconPreviousArrow as _0x1c9898}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x14900d}from'../../../../aicore/utils/common-translations.js';function _0xd90a(_0x1268c8,_0x2b9a3f){const _0xf7faf6=_0xf7fa();return _0xd90a=function(_0xd90a44,_0x4a59ab){_0xd90a44=_0xd90a44-0xe1;let _0x405449=_0xf7faf6[_0xd90a44];return _0x405449;},_0xd90a(_0x1268c8,_0x2b9a3f);}import{AIChatContextResourcesView as _0x5cb427}from'./aichatcontextresourcesview.js';const Bc=_0x42f84c(0xf8),mc=_0x42f84c(0x111),dc=_0x42f84c(0xf9);export class AIChatResourcesBalloonView{[_0x42f84c(0xe5)]=new Map();[_0x42f84c(0x100)];[_0x42f84c(0x10c)];[_0x42f84c(0xe1)];constructor(_0x41cc25,_0x2ba32f,_0xce3e80){const _0x17fd1f=_0x42f84c;this[_0x17fd1f(0x10c)]=_0x41cc25,this[_0x17fd1f(0x100)]=_0x2ba32f,this[_0x17fd1f(0xe1)]=_0xce3e80;}[_0x42f84c(0x109)]({source:_0x4a82a1,withBackButton:_0x206f90}){const _0x4bf75e=_0x42f84c;let _0xd4c825=this[_0x4bf75e(0xe5)][_0x4bf75e(0xe9)](_0x4a82a1['id']);_0xd4c825||(_0xd4c825=this[_0x4bf75e(0xea)](),this[_0x4bf75e(0xe5)][_0x4bf75e(0x10b)](_0x4a82a1['id'],_0xd4c825),this[_0x4bf75e(0xfd)](_0xd4c825)),this[_0x4bf75e(0x10f)]({'balloonPanel':_0xd4c825,'source':_0x4a82a1,'withBackButton':_0x206f90}),_0xd4c825[_0x4bf75e(0xe4)]();const _0x36960e=this[_0x4bf75e(0xe1)][_0x4bf75e(0x107)]();_0x36960e&&_0xd4c825[_0x4bf75e(0xf3)]({'target':_0x36960e,'limiter':this[_0x4bf75e(0xe1)][_0x4bf75e(0x118)]()});}[_0x42f84c(0x10e)](_0x3aabeb,_0x5b1a47,_0x3cd7a8){const _0x5b7743=_0x42f84c,_0x35e44a=this[_0x5b7743(0xe5)][_0x5b7743(0xe9)](_0x3aabeb);if(!_0x35e44a)return;const _0x3f56ea=this[_0x5b7743(0xe6)](_0x35e44a);_0x3f56ea&&(_0x3f56ea[_0x5b7743(0x117)](_0x5b1a47,_0x3cd7a8),_0x3f56ea[_0x5b7743(0x102)](_0x5b7743(0xec),()=>{const _0x44a278=_0x5b7743;_0x35e44a[_0x44a278(0xf3)]({'target':this[_0x44a278(0xe1)][_0x44a278(0x107)](),'limiter':this[_0x44a278(0xe1)][_0x44a278(0x118)]()});}));}[_0x42f84c(0xef)](_0x3ffaf6){const _0x6ef6c0=_0x42f84c,_0x40408e=this[_0x6ef6c0(0xe5)][_0x6ef6c0(0xe9)](_0x3ffaf6);_0x40408e&&requestAnimationFrame(()=>{const _0x1cc54e=_0x6ef6c0;_0x40408e[_0x1cc54e(0x119)](),this[_0x1cc54e(0xe5)][_0x1cc54e(0xf1)](_0x3ffaf6),this[_0x1cc54e(0xe1)][_0x1cc54e(0xf5)]();});}[_0x42f84c(0xff)](){const _0x31f152=_0x42f84c;for(const _0x2ac6e2 of this[_0x31f152(0xe5)][_0x31f152(0xf7)]())if(_0x2ac6e2[_0x31f152(0x112)])return!0x0;return!0x1;}[_0x42f84c(0xe2)](_0x285e56,_0x3126c2,_0x32a38e){const _0x54d69f=_0x42f84c,_0x444120=this[_0x54d69f(0xe5)][_0x54d69f(0xe9)](_0x285e56);if(!_0x444120||!_0x444120[_0x54d69f(0x112)])return;const _0xb33705=this[_0x54d69f(0xe1)][_0x54d69f(0x107)]();if(!_0xb33705)return;_0x444120[_0x54d69f(0xf3)]({'target':_0xb33705,'limiter':this[_0x54d69f(0xe1)][_0x54d69f(0x118)]()});const _0x2cf53c=this[_0x54d69f(0xe6)](_0x444120);_0x2cf53c&&_0x2cf53c[_0x54d69f(0xe2)](_0x3126c2,_0x32a38e);}[_0x42f84c(0xfa)](){const _0x2034fa=_0x42f84c;for(const _0x392f0b of this[_0x2034fa(0xe5)][_0x2034fa(0xf7)]())_0x392f0b[_0x2034fa(0xfa)]();this[_0x2034fa(0xe5)][_0x2034fa(0xee)]();}[_0x42f84c(0xea)](){const _0x393aa5=_0x42f84c,_0x3e3956=new _0x1f3273(this[_0x393aa5(0x10c)]);return _0x3e3956[_0x393aa5(0xe8)]({'attributes':{'class':Bc}}),this[_0x393aa5(0x100)][_0x393aa5(0x11b)](_0x3e3956),_0x3e3956;}[_0x42f84c(0x10f)]({balloonPanel:_0x4c18f9,source:_0x556ff6,withBackButton:_0x5f139b}){const _0x547d0c=_0x42f84c;_0x4c18f9[_0x547d0c(0x11a)][_0x547d0c(0xee)]();const _0x4406a9=this[_0x547d0c(0xf0)]({'balloonPanel':_0x4c18f9,'source':_0x556ff6,'withBackButton':_0x5f139b});_0x4c18f9[_0x547d0c(0x11a)][_0x547d0c(0x11b)](_0x4406a9);const _0x419a0a=this[_0x547d0c(0xf4)](_0x556ff6);_0x4c18f9[_0x547d0c(0x11a)][_0x547d0c(0x11b)](_0x419a0a);}[_0x42f84c(0xf0)]({balloonPanel:_0x811266,source:_0x4e757b,withBackButton:_0x483dda}){const _0x55ef46=_0x42f84c,_0x51af5f=new _0x2ba1b3(this[_0x55ef46(0x10c)],{'label':_0x4e757b[_0x55ef46(0x116)],'class':dc});return _0x483dda&&_0x51af5f[_0x55ef46(0xe3)][_0x55ef46(0x11b)](this[_0x55ef46(0x110)](_0x811266),0x0),_0x51af5f;}[_0x42f84c(0x110)](_0x19a720){const _0xdbdc2a=_0x42f84c,_0x3819c8=new _0x5bd67b(this[_0xdbdc2a(0x10c)]);return _0x3819c8[_0xdbdc2a(0x10b)]({'icon':_0x1c9898,'tooltip':_0x14900d(this[_0xdbdc2a(0x10c)],_0xdbdc2a(0xed)),'tooltipPosition':'n','class':mc}),_0x3819c8['on'](_0xdbdc2a(0x11d),()=>{const _0x5ead4c=_0xdbdc2a;_0x19a720[_0x5ead4c(0x119)](),this[_0x5ead4c(0xe1)][_0x5ead4c(0xfb)]();}),_0x3819c8;}[_0x42f84c(0xf4)](_0xd2019){const _0x356f3d=_0x42f84c,_0x36419b=new _0x5cb427(this[_0x356f3d(0x10c)],{'source':_0xd2019,'searchInputVisibleFrom':this[_0x356f3d(0xe1)][_0x356f3d(0x10d)]});return _0x36419b['on'](_0x356f3d(0x105),(_0x88253e,_0x3faf05)=>{const _0x10e4de=_0x356f3d;this[_0x10e4de(0xe1)][_0x10e4de(0x115)](_0x3faf05);}),_0x36419b['on'](_0x356f3d(0x108),(_0x466fa4,_0x267e36)=>{const _0x5a2a31=_0x356f3d;this[_0x5a2a31(0xe1)][_0x5a2a31(0x101)](_0x267e36[_0x5a2a31(0xf2)],_0x267e36[_0x5a2a31(0xe7)]),this[_0x5a2a31(0xef)](_0xd2019['id']);}),_0x36419b;}[_0x42f84c(0xe6)](_0x3fe6ab){const _0x2084d2=_0x42f84c,_0x1093ae=_0x3fe6ab[_0x2084d2(0x11a)][_0x2084d2(0xe9)](0x1);return _0x1093ae instanceof _0x5cb427?_0x1093ae:null;}[_0x42f84c(0xfd)](_0xe5d24e){const _0x2b0ee3=_0x42f84c;_0xf1c866({'emitter':_0xe5d24e,'contextElements':[_0xe5d24e[_0x2b0ee3(0x106)]],'callback':()=>{const _0x51257a=_0x2b0ee3;_0xe5d24e[_0x51257a(0x119)](),this[_0x51257a(0xe1)][_0x51257a(0xf5)]();},'activator':()=>_0xe5d24e[_0x2b0ee3(0x112)]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{ButtonView as _0x323fbc,IconView as _0x5ca3ad,LabeledFieldView as _0x40c1ed,createLabeledInputText as _0x143b3c}from'ckeditor5/src/ui.js';import{IconLoupe as _0x3a4671,IconCancel as _0x1f2e2f}from'ckeditor5/src/icons.js';import{getTranslation as _0x3e919b}from'../../../../aicore/utils/common-translations.js';export class AIChatContextResourcesSearchInputView extends _0x40c1ed{['iconView'];['resetButtonView'];['_viewConfig'];constructor(_0x4c59f6){const t=_0x4c59f6['t'],_0x40af0e={'showResetButton':!0x0,'showIcon':!0x0,'creator':_0x143b3c,'label':_0x3e919b(_0x4c59f6,'AI_CHAT_SEARCH_RESOURCES')};super(_0x4c59f6,_0x40af0e['creator']),this['label']=_0x40af0e['label'],this['_viewConfig']=_0x40af0e,this['_viewConfig']['showIcon']&&this['_setupSearchIcon'](),this['_viewConfig']['showResetButton']&&this['_setupResetButton'](_0x4c59f6,t),this['_setupEventListeners']();}['reset'](){this['fieldView']['reset'](),this['_viewConfig']['showResetButton']&&this['resetButtonView']&&(this['resetButtonView']['isVisible']=!0x1),this['search']('');}['search'](_0x1ca97e){this['fire']('search',_0x1ca97e);}['getQuery'](){return this['fieldView']['element']?.['value']||'';}['_setupSearchIcon'](){this['iconView']=new _0x5ca3ad(),this['iconView']['content']=_0x3a4671,this['fieldWrapperChildren']['add'](this['iconView'],0x0),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-icon'}});}['_setupResetButton'](_0x220682,t){this['resetButtonView']=new _0x323fbc(_0x220682),this['resetButtonView']['set']({'label':t('Clear'),'icon':_0x1f2e2f,'class':'ck-search__reset','isVisible':!0x1,'tooltip':!0x0}),this['resetButtonView']['on']('execute',()=>{this['reset'](),this['focus'](),this['fire']('reset');}),this['resetButtonView']['bind']('isVisible')['to'](this['fieldView'],'isEmpty',_0x516e75=>!_0x516e75),this['fieldWrapperChildren']['add'](this['resetButtonView']),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-reset'}});}['_setupEventListeners'](){this['listenTo'](this['fieldView'],'input',()=>{this['search'](this['fieldView']['element']['value']);}),this['bind']('isEnabled')['to'](this);}}
23
+ import{ButtonView as _0x4c1b95,IconView as _0x5802c8,LabeledFieldView as _0x338ca0,createLabeledInputText as th}from'ckeditor5/src/ui.js';import{IconLoupe as _0x1d8c9e,IconCancel as _0xeda509}from'ckeditor5/src/icons.js';import{getTranslation as _0x2a666a}from'../../../../aicore/utils/common-translations.js';export class AIChatContextResourcesSearchInputView extends _0x338ca0{['iconView'];['resetButtonView'];['_viewConfig'];constructor(_0x4df8eb){const t=_0x4df8eb['t'],_0x16f15d={'showResetButton':!0x0,'showIcon':!0x0,'creator':th,'label':_0x2a666a(_0x4df8eb,'AI_CHAT_SEARCH_RESOURCES')};super(_0x4df8eb,_0x16f15d['creator']),this['label']=_0x16f15d['label'],this['_viewConfig']=_0x16f15d,this['_viewConfig']['showIcon']&&this['_setupSearchIcon'](),this['_viewConfig']['showResetButton']&&this['_setupResetButton'](_0x4df8eb,t),this['_setupEventListeners']();}['reset'](){this['fieldView']['reset'](),this['_viewConfig']['showResetButton']&&this['resetButtonView']&&(this['resetButtonView']['isVisible']=!0x1),this['search']('');}['search'](_0x4e8079){this['fire']('search',_0x4e8079);}['getQuery'](){return this['fieldView']['element']?.['value']||'';}['_setupSearchIcon'](){this['iconView']=new _0x5802c8(),this['iconView']['content']=_0x1d8c9e,this['fieldWrapperChildren']['add'](this['iconView'],0x0),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-icon'}});}['_setupResetButton'](_0x84cd9f,t){this['resetButtonView']=new _0x4c1b95(_0x84cd9f),this['resetButtonView']['set']({'label':t('Clear'),'icon':_0xeda509,'class':'ck-search__reset','isVisible':!0x1,'tooltip':!0x0}),this['resetButtonView']['on']('execute',()=>{this['reset'](),this['focus'](),this['fire']('reset');}),this['resetButtonView']['bind']('isVisible')['to'](this['fieldView'],'isEmpty',_0x3f1f28=>!_0x3f1f28),this['fieldWrapperChildren']['add'](this['resetButtonView']),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-reset'}});}['_setupEventListeners'](){this['listenTo'](this['fieldView'],'input',()=>{this['search'](this['fieldView']['element']['value']);}),this['bind']('isEnabled')['to'](this);}}